Running as unit: rb-build-armhf_7-8054.service ==================================================================================== Sat Feb 22 17:35:46 UTC 2025 - running /srv/jenkins/bin/reproducible_build.sh (for job reproducible_builder_armhf_7) on jenkins, called using "virt64b-armhf-rb cbxi4a-armhf-rb" as arguments. Sat Feb 22 17:35:46 UTC 2025 - actually running "reproducible_build.sh" (md5sum 68e686e434c9ab7bc3ec047d8b309cbc) as "/tmp/jenkins-script-19FtBH0k" $ git clone https://salsa.debian.org/qa/jenkins.debian.net.git ; more CONTRIBUTING Sat Feb 22 17:35:46 UTC 2025 - checking /var/lib/jenkins/offline_nodes if virt64b-armhf-rb.debian.net is marked as down. Sat Feb 22 17:35:46 UTC 2025 - checking via ssh if virt64b-armhf-rb.debian.net is up. removed '/tmp/read-only-fs-test-9h1RHt' Sat Feb 22 17:35:50 UTC 2025 - checking /var/lib/jenkins/offline_nodes if cbxi4a-armhf-rb.debian.net is marked as down. Sat Feb 22 17:35:50 UTC 2025 - checking via ssh if cbxi4a-armhf-rb.debian.net is up. removed '/tmp/read-only-fs-test-rdQo9u' ok, let's check if rocksdb is building anywhere yet… ok, rocksdb is not building anywhere… UPDATE 1 ============================================================================= Initialising reproducibly build of rocksdb in trixie on armhf on jenkins now. 1st build will be done on virt64b-armhf-rb.debian.net. 2nd build will be done on cbxi4a-armhf-rb.debian.net. ============================================================================= Sat Feb 22 17:36:04 UTC 2025 I: starting to build rocksdb/trixie/armhf on jenkins on '2025-02-22 17:35' Sat Feb 22 17:36:04 UTC 2025 I: The jenkins build log is/was available at https://jenkins.debian.net/userContent/reproducible/debian/build_service/armhf_7/8054/console.log 1740245764 armhf trixie rocksdb Sat Feb 22 17:36:04 UTC 2025 I: Downloading source for trixie/rocksdb=9.10.0-1 --2025-02-22 17:36:04-- http://deb.debian.org/debian/pool/main/r/rocksdb/rocksdb_9.10.0-1.dsc Connecting to 46.16.76.132:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 2440 (2.4K) [text/prs.lines.tag] Saving to: ‘rocksdb_9.10.0-1.dsc’ 0K .. 100% 244M=0s 2025-02-22 17:36:04 (244 MB/s) - ‘rocksdb_9.10.0-1.dsc’ saved [2440/2440] --2025-02-22 17:36:04-- http://deb.debian.org/debian/pool/main/r/rocksdb/rocksdb_9.10.0-1.dsc Connecting to 46.16.76.132:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 2440 (2.4K) [text/prs.lines.tag] Saving to: ‘rocksdb_9.10.0-1.dsc’ 0K .. 100% 244M=0s 2025-02-22 17:36:04 (244 MB/s) - ‘rocksdb_9.10.0-1.dsc’ saved [2440/2440] Sat Feb 22 17:36:04 UTC 2025 I: rocksdb_9.10.0-1.dsc -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 3.0 (quilt) Source: rocksdb Binary: librocksdb-dev, librocksdb9.10, rocksdb-tools Architecture: amd64 arm64 armel armhf i386 loong64 mips mips64el mipsel ppc64el riscv64 s390x Version: 9.10.0-1 Maintainer: Laszlo Boszormenyi (GCS) Uploaders: Laszlo Boszormenyi (GCS) , Otto Kekäläinen , Homepage: https://rocksdb.org/ Standards-Version: 4.7.0 Vcs-Browser: https://salsa.debian.org/debian/rocksdb Vcs-Git: https://salsa.debian.org/debian/rocksdb.git Build-Depends: cmake, debhelper-compat (= 13), libbz2-dev, libgflags-dev, liblz4-dev, libsnappy-dev, libzstd-dev, zlib1g-dev Package-List: librocksdb-dev deb libdevel optional arch=amd64,arm64,armel,armhf,i386,loong64,mips,mips64el,mipsel,ppc64el,riscv64,s390x librocksdb9.10 deb libs optional arch=amd64,arm64,armel,armhf,i386,loong64,mips,mips64el,mipsel,ppc64el,riscv64,s390x rocksdb-tools deb database optional arch=amd64,arm64,armel,armhf,i386,loong64,mips,mips64el,mipsel,ppc64el,riscv64,s390x Checksums-Sha1: 8df53ba7303d996e9773dccccf31052b07d3b3ef 13693440 rocksdb_9.10.0.orig.tar.gz a1c6486adad47c9aaa70a93702d841d8df759150 14632 rocksdb_9.10.0-1.debian.tar.xz Checksums-Sha256: fdccab16133c9d927a183c2648bcea8d956fb41eb1df2aacaa73eb0b95e43724 13693440 rocksdb_9.10.0.orig.tar.gz bbbe9ab8e6138c958b5d8a68da917d20bf718657379dcae2de0d40324b9f64c4 14632 rocksdb_9.10.0-1.debian.tar.xz Files: 66483ba712f807e6c674c97c4dc3dcc3 13693440 rocksdb_9.10.0.orig.tar.gz 187a5d20feb7ffa7b397db932cfa7be6 14632 rocksdb_9.10.0-1.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEmbRSsR88dMO0U+RvvthEn87o2ogFAmekVeoACgkQvthEn87o 2ojovBAAjNKy3HMU/pT6mLKRLDVNP2wU5iJ5MF+kgvX0dOoUvxv9aRxyT3HdgNmz P3GJyhJ+c3emewrgm9TqXJXtPB7PGkMwDnUdGo0SGIQrmUsluTmJwL4UOs0+aMgO yiSGJOVCCWbC1kViDPU/rXyKZX6BuGIssF1p1aX1yo0E7lEwlo54/Ja3Go8UEh5H qfjkU9c7MGZ0+D4wUS1PI3p2dkKNFtyVigqye2BpCP+LfKhdcvEllYYwN/7VPMsf w+G0Ix4cdUz5qlHnqx+CvrbYMtSfa/mGKbAC2zBmTUpJnWrvHLtuB/aJ/FmXdc+J Z2dU0dbkGMCtvWe2mvPlfu8oGgqBrLyq8KA7xoaskxas8O4eDMZsA453u9f5pEmI dXmW/cXbb45G5b3GLSkbXamHLZSKUm33V3Zxcr34BFpROzEsyB8nbl0I1/lZPSbw eL8jzTOH23RSg1mhUW6BYOEO6l9Lx28ipDDp5b4H04ooqZ1KHlZdXy5ZrtfNrtFH iCGYeLfmV+6m20L4Ic6p0BnDE3GY1qtn7DNQkTHwAjV3SFrSizcC+5iKwhxZBBH0 ia1Hbu8zUXbU062qO3iBTEBEigj997REC9MSpaiqvoFC5eRKIEhWwClxHs1Afk/O 74POet+7P19kF7oU0CxeC9FrIGhjabqQ966n+z0iRfzUGdvoEE4= =O9LT -----END PGP SIGNATURE----- Sat Feb 22 17:36:04 UTC 2025 I: Checking whether the package is not for us Sat Feb 22 17:36:04 UTC 2025 I: Starting 1st build on remote node virt64b-armhf-rb.debian.net. Sat Feb 22 17:36:04 UTC 2025 I: Preparing to do remote build '1' on virt64b-armhf-rb.debian.net. Sat Feb 22 17:36:04 UTC 2025 - checking /var/lib/jenkins/offline_nodes if virt64b-armhf-rb.debian.net is marked as down. Sat Feb 22 17:36:04 UTC 2025 - checking via ssh if virt64b-armhf-rb.debian.net is up. removed '/tmp/read-only-fs-test-EDhJhD' ==================================================================================== Sat Feb 22 17:36:09 UTC 2025 - running /srv/jenkins/bin/reproducible_build.sh (for job /srv/jenkins/bin/reproducible_build.sh) on virt64b, called using "1 rocksdb trixie /srv/reproducible-results/rbuild-debian/r-b-build.dJLIIwyR 9.10.0-1" as arguments. Sat Feb 22 17:36:09 UTC 2025 - actually running "reproducible_build.sh" (md5sum 68e686e434c9ab7bc3ec047d8b309cbc) as "/tmp/jenkins-script-QJgbzA4q" $ git clone https://salsa.debian.org/qa/jenkins.debian.net.git ; more CONTRIBUTING Sat Feb 22 17:36:09 UTC 2025 I: Downloading source for trixie/rocksdb=9.10.0-1 Reading package lists... NOTICE: 'rocksdb' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/debian/rocksdb.git Please use: git clone https://salsa.debian.org/debian/rocksdb.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 13.7 MB of source archives. Get:1 http://deb.debian.org/debian trixie/main rocksdb 9.10.0-1 (dsc) [2440 B] Get:2 http://deb.debian.org/debian trixie/main rocksdb 9.10.0-1 (tar) [13.7 MB] Get:3 http://deb.debian.org/debian trixie/main rocksdb 9.10.0-1 (diff) [14.6 kB] Fetched 13.7 MB in 3s (4877 kB/s) Download complete and in download only mode Reading package lists... NOTICE: 'rocksdb' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/debian/rocksdb.git Please use: git clone https://salsa.debian.org/debian/rocksdb.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 13.7 MB of source archives. Get:1 http://deb.debian.org/debian trixie/main rocksdb 9.10.0-1 (dsc) [2440 B] Get:2 http://deb.debian.org/debian trixie/main rocksdb 9.10.0-1 (tar) [13.7 MB] Get:3 http://deb.debian.org/debian trixie/main rocksdb 9.10.0-1 (diff) [14.6 kB] Fetched 13.7 MB in 3s (4877 kB/s) Download complete and in download only mode ============================================================================= Building rocksdb in trixie on armhf on virt64b now. Date: Sat Feb 22 09:36:13 PST 2025 Date UTC: Sat Feb 22 17:36:13 UTC 2025 ============================================================================= W: /root/.pbuilderrc does not exist I: Logging to b1/build.log I: pbuilder: network access will be disabled during build I: Current time: Sat Feb 22 05:36:13 -12 2025 I: pbuilder-time-stamp: 1740245773 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration W: --override-config is not set; not updating apt.conf Read the manpage for details. I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: Copying source file I: copying [rocksdb_9.10.0-1.dsc] I: copying [./rocksdb_9.10.0.orig.tar.gz] I: copying [./rocksdb_9.10.0-1.debian.tar.xz] I: Extracting source dpkg-source: warning: cannot verify inline signature for ./rocksdb_9.10.0-1.dsc: unsupported subcommand dpkg-source: info: extracting rocksdb in rocksdb-9.10.0 dpkg-source: info: unpacking rocksdb_9.10.0.orig.tar.gz dpkg-source: info: unpacking rocksdb_9.10.0-1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying build_reproducible.patch dpkg-source: info: applying fix_db_test.patch dpkg-source: info: applying no_rpath.patch dpkg-source: info: applying library_version.patch dpkg-source: info: applying ppc64.patch dpkg-source: info: applying armv7_support.patch dpkg-source: info: applying mips.patch dpkg-source: info: applying arm.patch dpkg-source: info: applying 0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch dpkg-source: info: applying rely-on-default-for-optimization-on-Power.patch I: Not using root during the build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/26332/tmp/hooks/D02_print_environment starting I: set BUILDDIR='/build/reproducible-path' BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' BUILDUSERNAME='pbuilder1' BUILD_ARCH='armhf' DEBIAN_FRONTEND='noninteractive' DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' DISTRIBUTION='trixie' HOME='/root' HOST_ARCH='armhf' IFS=' ' INVOCATION_ID='e6b4e25db6444b728181667e011b9dc6' LANG='C' LANGUAGE='en_US:en' LC_ALL='C' MAIL='/var/mail/root' OPTIND='1' PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' PBCURRENTCOMMANDLINEOPERATION='build' PBUILDER_OPERATION='build' PBUILDER_PKGDATADIR='/usr/share/pbuilder' PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' PBUILDER_SYSCONFDIR='/etc' PPID='26332' PS1='# ' PS2='> ' PS4='+ ' PWD='/' SHELL='/bin/bash' SHLVL='2' SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.dJLIIwyR/pbuilderrc_PAUX --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.dJLIIwyR/b1 --logfile b1/build.log rocksdb_9.10.0-1.dsc' SUDO_GID='113' SUDO_UID='107' SUDO_USER='jenkins' TERM='unknown' TZ='/usr/share/zoneinfo/Etc/GMT+12' USER='root' _='/usr/bin/systemd-run' http_proxy='http://10.0.0.15:3142/' I: uname -a Linux virt64b 6.1.0-31-arm64 #1 SMP Debian 6.1.128-1 (2025-02-07) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin I: user script /srv/workspace/pbuilder/26332/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: armhf Maintainer: Debian Pbuilder Team Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: cmake, debhelper-compat (= 13), libbz2-dev, libgflags-dev, liblz4-dev, libsnappy-dev, libzstd-dev, zlib1g-dev dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 19583 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on cmake; however: Package cmake is not installed. pbuilder-satisfydepends-dummy depends on debhelper-compat (= 13); however: Package debhelper-compat is not installed. pbuilder-satisfydepends-dummy depends on libbz2-dev; however: Package libbz2-dev is not installed. pbuilder-satisfydepends-dummy depends on libgflags-dev; however: Package libgflags-dev is not installed. pbuilder-satisfydepends-dummy depends on liblz4-dev; however: Package liblz4-dev is not installed. pbuilder-satisfydepends-dummy depends on libsnappy-dev; however: Package libsnappy-dev is not installed. pbuilder-satisfydepends-dummy depends on libzstd-dev; however: Package libzstd-dev is not installed. pbuilder-satisfydepends-dummy depends on zlib1g-dev; however: Package zlib1g-dev is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdextrautils{a} cmake{a} cmake-data{a} debhelper{a} dh-autoreconf{a} dh-strip-nondeterminism{a} dwz{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libarchive13t64{a} libbrotli1{a} libbz2-dev{a} libcom-err2{a} libcurl4t64{a} libdebhelper-perl{a} libelf1t64{a} libexpat1{a} libffi8{a} libfile-stripnondeterminism-perl{a} libgflags-dev{a} libgflags2.2{a} libgnutls30t64{a} libgssapi-krb5-2{a} libicu72{a} libidn2-0{a} libjsoncpp26{a} libk5crypto3{a} libkeyutils1{a} libkrb5-3{a} libkrb5support0{a} libldap2{a} liblz4-dev{a} libmagic-mgc{a} libmagic1t64{a} libnghttp2-14{a} libnghttp3-9{a} libp11-kit0{a} libpipeline1{a} libproc2-0{a} libpsl5t64{a} librhash1{a} librtmp1{a} libsasl2-2{a} libsasl2-modules-db{a} libsnappy-dev{a} libsnappy1v5{a} libssh2-1t64{a} libtasn1-6{a} libtool{a} libuchardet0{a} libunistring5{a} libuv1t64{a} libxml2{a} libxxhash-dev{a} libzstd-dev{a} m4{a} man-db{a} po-debconf{a} procps{a} sensible-utils{a} zlib1g-dev{a} The following packages are RECOMMENDED but will NOT be installed: bzip2-doc ca-certificates curl krb5-locales libarchive-cpio-perl libldap-common libltdl-dev libmail-sendmail-perl libsasl2-modules linux-sysctl-defaults lynx psmisc publicsuffix wget 0 packages upgraded, 69 newly installed, 0 to remove and 0 not upgraded. Need to get 35.1 MB of archives. After unpacking 128 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian trixie/main armhf libproc2-0 armhf 2:4.0.4-7 [56.3 kB] Get: 2 http://deb.debian.org/debian trixie/main armhf procps armhf 2:4.0.4-7 [866 kB] Get: 3 http://deb.debian.org/debian trixie/main armhf sensible-utils all 0.0.24 [24.8 kB] Get: 4 http://deb.debian.org/debian trixie/main armhf libmagic-mgc armhf 1:5.45-3+b1 [314 kB] Get: 5 http://deb.debian.org/debian trixie/main armhf libmagic1t64 armhf 1:5.45-3+b1 [98.5 kB] Get: 6 http://deb.debian.org/debian trixie/main armhf file armhf 1:5.45-3+b1 [42.3 kB] Get: 7 http://deb.debian.org/debian trixie/main armhf gettext-base armhf 0.23.1-1 [238 kB] Get: 8 http://deb.debian.org/debian trixie/main armhf libuchardet0 armhf 0.0.8-1+b2 [65.6 kB] Get: 9 http://deb.debian.org/debian trixie/main armhf groff-base armhf 1.23.0-7 [1095 kB] Get: 10 http://deb.debian.org/debian trixie/main armhf bsdextrautils armhf 2.40.4-3 [84.6 kB] Get: 11 http://deb.debian.org/debian trixie/main armhf libpipeline1 armhf 1.5.8-1 [35.0 kB] Get: 12 http://deb.debian.org/debian trixie/main armhf man-db armhf 2.13.0-1 [1382 kB] Get: 13 http://deb.debian.org/debian trixie/main armhf m4 armhf 1.4.19-5 [272 kB] Get: 14 http://deb.debian.org/debian trixie/main armhf autoconf all 2.72-3 [493 kB] Get: 15 http://deb.debian.org/debian trixie/main armhf autotools-dev all 20220109.1 [51.6 kB] Get: 16 http://deb.debian.org/debian trixie/main armhf automake all 1:1.17-3 [862 kB] Get: 17 http://deb.debian.org/debian trixie/main armhf autopoint all 0.23.1-1 [770 kB] Get: 18 http://deb.debian.org/debian trixie/main armhf cmake-data all 3.31.5-2 [2267 kB] Get: 19 http://deb.debian.org/debian trixie/main armhf libicu72 armhf 72.1-6 [9086 kB] Get: 20 http://deb.debian.org/debian trixie/main armhf libxml2 armhf 2.12.7+dfsg+really2.9.14-0.2+b1 [605 kB] Get: 21 http://deb.debian.org/debian trixie/main armhf libarchive13t64 armhf 3.7.4-1.1 [306 kB] Get: 22 http://deb.debian.org/debian trixie/main armhf libbrotli1 armhf 1.1.0-2+b6 [282 kB] Get: 23 http://deb.debian.org/debian trixie/main armhf libkrb5support0 armhf 1.21.3-4 [30.3 kB] Get: 24 http://deb.debian.org/debian trixie/main armhf libcom-err2 armhf 1.47.2-1 [23.3 kB] Get: 25 http://deb.debian.org/debian trixie/main armhf libk5crypto3 armhf 1.21.3-4 [75.8 kB] Get: 26 http://deb.debian.org/debian trixie/main armhf libkeyutils1 armhf 1.6.3-4 [8096 B] Get: 27 http://deb.debian.org/debian trixie/main armhf libkrb5-3 armhf 1.21.3-4 [285 kB] Get: 28 http://deb.debian.org/debian trixie/main armhf libgssapi-krb5-2 armhf 1.21.3-4 [116 kB] Get: 29 http://deb.debian.org/debian trixie/main armhf libunistring5 armhf 1.3-1 [444 kB] Get: 30 http://deb.debian.org/debian trixie/main armhf libidn2-0 armhf 2.3.7-2+b1 [125 kB] Get: 31 http://deb.debian.org/debian trixie/main armhf libsasl2-modules-db armhf 2.1.28+dfsg1-8+b1 [18.6 kB] Get: 32 http://deb.debian.org/debian trixie/main armhf libsasl2-2 armhf 2.1.28+dfsg1-8+b1 [50.6 kB] Get: 33 http://deb.debian.org/debian trixie/main armhf libldap2 armhf 2.6.9+dfsg-1 [167 kB] Get: 34 http://deb.debian.org/debian trixie/main armhf libnghttp2-14 armhf 1.64.0-1 [62.9 kB] Get: 35 http://deb.debian.org/debian trixie/main armhf libnghttp3-9 armhf 1.6.0-2 [56.8 kB] Get: 36 http://deb.debian.org/debian trixie/main armhf libpsl5t64 armhf 0.21.2-1.1+b1 [55.8 kB] Get: 37 http://deb.debian.org/debian trixie/main armhf libffi8 armhf 3.4.7-1 [20.3 kB] Get: 38 http://deb.debian.org/debian trixie/main armhf libp11-kit0 armhf 0.25.5-3 [385 kB] Get: 39 http://deb.debian.org/debian trixie/main armhf libtasn1-6 armhf 4.20.0-2 [44.4 kB] Get: 40 http://deb.debian.org/debian trixie/main armhf libgnutls30t64 armhf 3.8.9-2 [1382 kB] Get: 41 http://deb.debian.org/debian trixie/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2+b5 [53.2 kB] Get: 42 http://deb.debian.org/debian trixie/main armhf libssh2-1t64 armhf 1.11.1-1 [227 kB] Get: 43 http://deb.debian.org/debian trixie/main armhf libcurl4t64 armhf 8.12.1-2 [320 kB] Get: 44 http://deb.debian.org/debian trixie/main armhf libexpat1 armhf 2.6.4-1 [83.5 kB] Get: 45 http://deb.debian.org/debian trixie/main armhf libjsoncpp26 armhf 1.9.6-3 [69.9 kB] Get: 46 http://deb.debian.org/debian trixie/main armhf librhash1 armhf 1.4.5-1 [143 kB] Get: 47 http://deb.debian.org/debian trixie/main armhf libuv1t64 armhf 1.50.0-2 [140 kB] Get: 48 http://deb.debian.org/debian trixie/main armhf cmake armhf 3.31.5-2 [5911 kB] Get: 49 http://deb.debian.org/debian trixie/main armhf libdebhelper-perl all 13.24.1 [90.9 kB] Get: 50 http://deb.debian.org/debian trixie/main armhf libtool all 2.5.4-3 [539 kB] Get: 51 http://deb.debian.org/debian trixie/main armhf dh-autoreconf all 20 [17.1 kB] Get: 52 http://deb.debian.org/debian trixie/main armhf libarchive-zip-perl all 1.68-1 [104 kB] Get: 53 http://deb.debian.org/debian trixie/main armhf libfile-stripnondeterminism-perl all 1.14.1-2 [19.7 kB] Get: 54 http://deb.debian.org/debian trixie/main armhf dh-strip-nondeterminism all 1.14.1-2 [8620 B] Get: 55 http://deb.debian.org/debian trixie/main armhf libelf1t64 armhf 0.192-4 [184 kB] Get: 56 http://deb.debian.org/debian trixie/main armhf dwz armhf 0.15-1+b2 [106 kB] Get: 57 http://deb.debian.org/debian trixie/main armhf gettext armhf 0.23.1-1 [1560 kB] Get: 58 http://deb.debian.org/debian trixie/main armhf intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 59 http://deb.debian.org/debian trixie/main armhf po-debconf all 1.0.21+nmu1 [248 kB] Get: 60 http://deb.debian.org/debian trixie/main armhf debhelper all 13.24.1 [920 kB] Get: 61 http://deb.debian.org/debian trixie/main armhf libbz2-dev armhf 1.0.8-6 [28.7 kB] Get: 62 http://deb.debian.org/debian trixie/main armhf libgflags2.2 armhf 2.2.2-2 [66.4 kB] Get: 63 http://deb.debian.org/debian trixie/main armhf libgflags-dev armhf 2.2.2-2 [88.6 kB] Get: 64 http://deb.debian.org/debian trixie/main armhf libxxhash-dev armhf 0.8.3-2 [91.2 kB] Get: 65 http://deb.debian.org/debian trixie/main armhf liblz4-dev armhf 1.10.0-3 [77.5 kB] Get: 66 http://deb.debian.org/debian trixie/main armhf libsnappy1v5 armhf 1.2.1-1+b1 [27.0 kB] Get: 67 http://deb.debian.org/debian trixie/main armhf libsnappy-dev armhf 1.2.1-1+b1 [41.9 kB] Get: 68 http://deb.debian.org/debian trixie/main armhf libzstd-dev armhf 1.5.6+dfsg-2 [326 kB] Get: 69 http://deb.debian.org/debian trixie/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1+b1 [905 kB] Fetched 35.1 MB in 1s (46.0 MB/s) Preconfiguring packages ... Selecting previously unselected package libproc2-0:armhf. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19583 files and directories currently installed.) Preparing to unpack .../00-libproc2-0_2%3a4.0.4-7_armhf.deb ... Unpacking libproc2-0:armhf (2:4.0.4-7) ... Selecting previously unselected package procps. Preparing to unpack .../01-procps_2%3a4.0.4-7_armhf.deb ... Unpacking procps (2:4.0.4-7) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../02-sensible-utils_0.0.24_all.deb ... Unpacking sensible-utils (0.0.24) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../03-libmagic-mgc_1%3a5.45-3+b1_armhf.deb ... Unpacking libmagic-mgc (1:5.45-3+b1) ... Selecting previously unselected package libmagic1t64:armhf. Preparing to unpack .../04-libmagic1t64_1%3a5.45-3+b1_armhf.deb ... Unpacking libmagic1t64:armhf (1:5.45-3+b1) ... Selecting previously unselected package file. Preparing to unpack .../05-file_1%3a5.45-3+b1_armhf.deb ... Unpacking file (1:5.45-3+b1) ... Selecting previously unselected package gettext-base. Preparing to unpack .../06-gettext-base_0.23.1-1_armhf.deb ... Unpacking gettext-base (0.23.1-1) ... Selecting previously unselected package libuchardet0:armhf. Preparing to unpack .../07-libuchardet0_0.0.8-1+b2_armhf.deb ... Unpacking libuchardet0:armhf (0.0.8-1+b2) ... Selecting previously unselected package groff-base. Preparing to unpack .../08-groff-base_1.23.0-7_armhf.deb ... Unpacking groff-base (1.23.0-7) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../09-bsdextrautils_2.40.4-3_armhf.deb ... Unpacking bsdextrautils (2.40.4-3) ... Selecting previously unselected package libpipeline1:armhf. Preparing to unpack .../10-libpipeline1_1.5.8-1_armhf.deb ... Unpacking libpipeline1:armhf (1.5.8-1) ... Selecting previously unselected package man-db. Preparing to unpack .../11-man-db_2.13.0-1_armhf.deb ... Unpacking man-db (2.13.0-1) ... Selecting previously unselected package m4. Preparing to unpack .../12-m4_1.4.19-5_armhf.deb ... Unpacking m4 (1.4.19-5) ... Selecting previously unselected package autoconf. Preparing to unpack .../13-autoconf_2.72-3_all.deb ... Unpacking autoconf (2.72-3) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../14-autotools-dev_20220109.1_all.deb ... Unpacking autotools-dev (20220109.1) ... Selecting previously unselected package automake. Preparing to unpack .../15-automake_1%3a1.17-3_all.deb ... Unpacking automake (1:1.17-3) ... Selecting previously unselected package autopoint. Preparing to unpack .../16-autopoint_0.23.1-1_all.deb ... Unpacking autopoint (0.23.1-1) ... Selecting previously unselected package cmake-data. Preparing to unpack .../17-cmake-data_3.31.5-2_all.deb ... Unpacking cmake-data (3.31.5-2) ... Selecting previously unselected package libicu72:armhf. Preparing to unpack .../18-libicu72_72.1-6_armhf.deb ... Unpacking libicu72:armhf (72.1-6) ... Selecting previously unselected package libxml2:armhf. Preparing to unpack .../19-libxml2_2.12.7+dfsg+really2.9.14-0.2+b1_armhf.deb ... Unpacking libxml2:armhf (2.12.7+dfsg+really2.9.14-0.2+b1) ... Selecting previously unselected package libarchive13t64:armhf. Preparing to unpack .../20-libarchive13t64_3.7.4-1.1_armhf.deb ... Unpacking libarchive13t64:armhf (3.7.4-1.1) ... Selecting previously unselected package libbrotli1:armhf. Preparing to unpack .../21-libbrotli1_1.1.0-2+b6_armhf.deb ... Unpacking libbrotli1:armhf (1.1.0-2+b6) ... Selecting previously unselected package libkrb5support0:armhf. Preparing to unpack .../22-libkrb5support0_1.21.3-4_armhf.deb ... Unpacking libkrb5support0:armhf (1.21.3-4) ... Selecting previously unselected package libcom-err2:armhf. Preparing to unpack .../23-libcom-err2_1.47.2-1_armhf.deb ... Unpacking libcom-err2:armhf (1.47.2-1) ... Selecting previously unselected package libk5crypto3:armhf. Preparing to unpack .../24-libk5crypto3_1.21.3-4_armhf.deb ... Unpacking libk5crypto3:armhf (1.21.3-4) ... Selecting previously unselected package libkeyutils1:armhf. Preparing to unpack .../25-libkeyutils1_1.6.3-4_armhf.deb ... Unpacking libkeyutils1:armhf (1.6.3-4) ... Selecting previously unselected package libkrb5-3:armhf. Preparing to unpack .../26-libkrb5-3_1.21.3-4_armhf.deb ... Unpacking libkrb5-3:armhf (1.21.3-4) ... Selecting previously unselected package libgssapi-krb5-2:armhf. Preparing to unpack .../27-libgssapi-krb5-2_1.21.3-4_armhf.deb ... Unpacking libgssapi-krb5-2:armhf (1.21.3-4) ... Selecting previously unselected package libunistring5:armhf. Preparing to unpack .../28-libunistring5_1.3-1_armhf.deb ... Unpacking libunistring5:armhf (1.3-1) ... Selecting previously unselected package libidn2-0:armhf. Preparing to unpack .../29-libidn2-0_2.3.7-2+b1_armhf.deb ... Unpacking libidn2-0:armhf (2.3.7-2+b1) ... Selecting previously unselected package libsasl2-modules-db:armhf. Preparing to unpack .../30-libsasl2-modules-db_2.1.28+dfsg1-8+b1_armhf.deb ... Unpacking libsasl2-modules-db:armhf (2.1.28+dfsg1-8+b1) ... Selecting previously unselected package libsasl2-2:armhf. Preparing to unpack .../31-libsasl2-2_2.1.28+dfsg1-8+b1_armhf.deb ... Unpacking libsasl2-2:armhf (2.1.28+dfsg1-8+b1) ... Selecting previously unselected package libldap2:armhf. Preparing to unpack .../32-libldap2_2.6.9+dfsg-1_armhf.deb ... Unpacking libldap2:armhf (2.6.9+dfsg-1) ... Selecting previously unselected package libnghttp2-14:armhf. Preparing to unpack .../33-libnghttp2-14_1.64.0-1_armhf.deb ... Unpacking libnghttp2-14:armhf (1.64.0-1) ... Selecting previously unselected package libnghttp3-9:armhf. Preparing to unpack .../34-libnghttp3-9_1.6.0-2_armhf.deb ... Unpacking libnghttp3-9:armhf (1.6.0-2) ... Selecting previously unselected package libpsl5t64:armhf. Preparing to unpack .../35-libpsl5t64_0.21.2-1.1+b1_armhf.deb ... Unpacking libpsl5t64:armhf (0.21.2-1.1+b1) ... Selecting previously unselected package libffi8:armhf. Preparing to unpack .../36-libffi8_3.4.7-1_armhf.deb ... Unpacking libffi8:armhf (3.4.7-1) ... Selecting previously unselected package libp11-kit0:armhf. Preparing to unpack .../37-libp11-kit0_0.25.5-3_armhf.deb ... Unpacking libp11-kit0:armhf (0.25.5-3) ... Selecting previously unselected package libtasn1-6:armhf. Preparing to unpack .../38-libtasn1-6_4.20.0-2_armhf.deb ... Unpacking libtasn1-6:armhf (4.20.0-2) ... Selecting previously unselected package libgnutls30t64:armhf. Preparing to unpack .../39-libgnutls30t64_3.8.9-2_armhf.deb ... Unpacking libgnutls30t64:armhf (3.8.9-2) ... Selecting previously unselected package librtmp1:armhf. Preparing to unpack .../40-librtmp1_2.4+20151223.gitfa8646d.1-2+b5_armhf.deb ... Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b5) ... Selecting previously unselected package libssh2-1t64:armhf. Preparing to unpack .../41-libssh2-1t64_1.11.1-1_armhf.deb ... Unpacking libssh2-1t64:armhf (1.11.1-1) ... Selecting previously unselected package libcurl4t64:armhf. Preparing to unpack .../42-libcurl4t64_8.12.1-2_armhf.deb ... Unpacking libcurl4t64:armhf (8.12.1-2) ... Selecting previously unselected package libexpat1:armhf. Preparing to unpack .../43-libexpat1_2.6.4-1_armhf.deb ... Unpacking libexpat1:armhf (2.6.4-1) ... Selecting previously unselected package libjsoncpp26:armhf. Preparing to unpack .../44-libjsoncpp26_1.9.6-3_armhf.deb ... Unpacking libjsoncpp26:armhf (1.9.6-3) ... Selecting previously unselected package librhash1:armhf. Preparing to unpack .../45-librhash1_1.4.5-1_armhf.deb ... Unpacking librhash1:armhf (1.4.5-1) ... Selecting previously unselected package libuv1t64:armhf. Preparing to unpack .../46-libuv1t64_1.50.0-2_armhf.deb ... Unpacking libuv1t64:armhf (1.50.0-2) ... Selecting previously unselected package cmake. Preparing to unpack .../47-cmake_3.31.5-2_armhf.deb ... Unpacking cmake (3.31.5-2) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../48-libdebhelper-perl_13.24.1_all.deb ... Unpacking libdebhelper-perl (13.24.1) ... Selecting previously unselected package libtool. Preparing to unpack .../49-libtool_2.5.4-3_all.deb ... Unpacking libtool (2.5.4-3) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../50-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../51-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../52-libfile-stripnondeterminism-perl_1.14.1-2_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.14.1-2) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../53-dh-strip-nondeterminism_1.14.1-2_all.deb ... Unpacking dh-strip-nondeterminism (1.14.1-2) ... Selecting previously unselected package libelf1t64:armhf. Preparing to unpack .../54-libelf1t64_0.192-4_armhf.deb ... Unpacking libelf1t64:armhf (0.192-4) ... Selecting previously unselected package dwz. Preparing to unpack .../55-dwz_0.15-1+b2_armhf.deb ... Unpacking dwz (0.15-1+b2) ... Selecting previously unselected package gettext. Preparing to unpack .../56-gettext_0.23.1-1_armhf.deb ... Unpacking gettext (0.23.1-1) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../57-intltool-debian_0.35.0+20060710.6_all.deb ... Unpacking intltool-debian (0.35.0+20060710.6) ... Selecting previously unselected package po-debconf. Preparing to unpack .../58-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../59-debhelper_13.24.1_all.deb ... Unpacking debhelper (13.24.1) ... Selecting previously unselected package libbz2-dev:armhf. Preparing to unpack .../60-libbz2-dev_1.0.8-6_armhf.deb ... Unpacking libbz2-dev:armhf (1.0.8-6) ... Selecting previously unselected package libgflags2.2. Preparing to unpack .../61-libgflags2.2_2.2.2-2_armhf.deb ... Unpacking libgflags2.2 (2.2.2-2) ... Selecting previously unselected package libgflags-dev. Preparing to unpack .../62-libgflags-dev_2.2.2-2_armhf.deb ... Unpacking libgflags-dev (2.2.2-2) ... Selecting previously unselected package libxxhash-dev:armhf. Preparing to unpack .../63-libxxhash-dev_0.8.3-2_armhf.deb ... Unpacking libxxhash-dev:armhf (0.8.3-2) ... Selecting previously unselected package liblz4-dev:armhf. Preparing to unpack .../64-liblz4-dev_1.10.0-3_armhf.deb ... Unpacking liblz4-dev:armhf (1.10.0-3) ... Selecting previously unselected package libsnappy1v5:armhf. Preparing to unpack .../65-libsnappy1v5_1.2.1-1+b1_armhf.deb ... Unpacking libsnappy1v5:armhf (1.2.1-1+b1) ... Selecting previously unselected package libsnappy-dev:armhf. Preparing to unpack .../66-libsnappy-dev_1.2.1-1+b1_armhf.deb ... Unpacking libsnappy-dev:armhf (1.2.1-1+b1) ... Selecting previously unselected package libzstd-dev:armhf. Preparing to unpack .../67-libzstd-dev_1.5.6+dfsg-2_armhf.deb ... Unpacking libzstd-dev:armhf (1.5.6+dfsg-2) ... Selecting previously unselected package zlib1g-dev:armhf. Preparing to unpack .../68-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1+b1_armhf.deb ... Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1+b1) ... Setting up libexpat1:armhf (2.6.4-1) ... Setting up libpipeline1:armhf (1.5.8-1) ... Setting up libkeyutils1:armhf (1.6.3-4) ... Setting up libicu72:armhf (72.1-6) ... Setting up libzstd-dev:armhf (1.5.6+dfsg-2) ... Setting up bsdextrautils (2.40.4-3) ... Setting up libmagic-mgc (1:5.45-3+b1) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.24.1) ... Setting up libbrotli1:armhf (1.1.0-2+b6) ... Setting up libuv1t64:armhf (1.50.0-2) ... Setting up libmagic1t64:armhf (1:5.45-3+b1) ... Setting up libnghttp2-14:armhf (1.64.0-1) ... Setting up gettext-base (0.23.1-1) ... Setting up m4 (1.4.19-5) ... Setting up libcom-err2:armhf (1.47.2-1) ... Setting up file (1:5.45-3+b1) ... Setting up libelf1t64:armhf (0.192-4) ... Setting up libsnappy1v5:armhf (1.2.1-1+b1) ... Setting up libkrb5support0:armhf (1.21.3-4) ... Setting up libsasl2-modules-db:armhf (2.1.28+dfsg1-8+b1) ... Setting up autotools-dev (20220109.1) ... Setting up libjsoncpp26:armhf (1.9.6-3) ... Setting up libproc2-0:armhf (2:4.0.4-7) ... Setting up libunistring5:armhf (1.3-1) ... Setting up autopoint (0.23.1-1) ... Setting up libk5crypto3:armhf (1.21.3-4) ... Setting up libsasl2-2:armhf (2.1.28+dfsg1-8+b1) ... Setting up autoconf (2.72-3) ... Setting up libnghttp3-9:armhf (1.6.0-2) ... Setting up libxxhash-dev:armhf (0.8.3-2) ... Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1+b1) ... Setting up libffi8:armhf (3.4.7-1) ... Setting up dwz (0.15-1+b2) ... Setting up sensible-utils (0.0.24) ... Setting up libuchardet0:armhf (0.0.8-1+b2) ... Setting up procps (2:4.0.4-7) ... Setting up libtasn1-6:armhf (4.20.0-2) ... Setting up cmake-data (3.31.5-2) ... Setting up librhash1:armhf (1.4.5-1) ... Setting up libkrb5-3:armhf (1.21.3-4) ... Setting up libssh2-1t64:armhf (1.11.1-1) ... Setting up libxml2:armhf (2.12.7+dfsg+really2.9.14-0.2+b1) ... Setting up libldap2:armhf (2.6.9+dfsg-1) ... Setting up libgflags2.2 (2.2.2-2) ... Setting up libbz2-dev:armhf (1.0.8-6) ... Setting up automake (1:1.17-3) ... update-alternatives: using /usr/bin/automake-1.17 to provide /usr/bin/automake (automake) in auto mode Setting up libfile-stripnondeterminism-perl (1.14.1-2) ... Setting up gettext (0.23.1-1) ... Setting up libtool (2.5.4-3) ... Setting up libsnappy-dev:armhf (1.2.1-1+b1) ... Setting up libidn2-0:armhf (2.3.7-2+b1) ... Setting up intltool-debian (0.35.0+20060710.6) ... Setting up dh-autoreconf (20) ... Setting up libp11-kit0:armhf (0.25.5-3) ... Setting up libgssapi-krb5-2:armhf (1.21.3-4) ... Setting up libgflags-dev (2.2.2-2) ... Setting up liblz4-dev:armhf (1.10.0-3) ... Setting up dh-strip-nondeterminism (1.14.1-2) ... Setting up groff-base (1.23.0-7) ... Setting up libarchive13t64:armhf (3.7.4-1.1) ... Setting up libgnutls30t64:armhf (3.8.9-2) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up libpsl5t64:armhf (0.21.2-1.1+b1) ... Setting up man-db (2.13.0-1) ... Not building database; man-db/auto-update is not 'true'. Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b5) ... Setting up libcurl4t64:armhf (8.12.1-2) ... Setting up debhelper (13.24.1) ... Setting up cmake (3.31.5-2) ... Processing triggers for libc-bin (2.40-7) ... Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps I: Building the package I: Running cd /build/reproducible-path/rocksdb-9.10.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../rocksdb_9.10.0-1_source.changes dpkg-buildpackage: info: source package rocksdb dpkg-buildpackage: info: source version 9.10.0-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Otto Kekäläinen dpkg-source --before-build . dpkg-buildpackage: info: host architecture armhf debian/rules clean dh clean --buildsystem=cmake dh_auto_clean -O--buildsystem=cmake dh_autoreconf_clean -O--buildsystem=cmake dh_clean -O--buildsystem=cmake debian/rules binary dh binary --buildsystem=cmake dh_update_autotools_config -O--buildsystem=cmake dh_autoreconf -O--buildsystem=cmake debian/rules override_dh_auto_configure make[1]: Entering directory '/build/reproducible-path/rocksdb-9.10.0' dh_auto_configure -O--buildsystem=cmake \ -- \ -DWITH_BZ2=ON \ -DWITH_LZ4=ON \ -DWITH_ZLIB=ON \ -DWITH_ZSTD=ON \ -DWITH_SNAPPY=ON \ -DROCKSDB_BUILD_SHARED=ON \ -DWITH_BENCHMARK_TOOLS=ON \ -DWITH_CORE_TOOLS=ON \ -DWITH_TOOLS=ON \ -DWITH_TESTS=ON \ -DPORTABLE=1 \ -DFAIL_ON_WARNINGS=OFF cd obj-arm-linux-gnueabihf && DEB_PYTHON_INSTALL_LAYOUT=deb PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/arm-linux-gnueabihf -DWITH_BZ2=ON -DWITH_LZ4=ON -DWITH_ZLIB=ON -DWITH_ZSTD=ON -DWITH_SNAPPY=ON -DROCKSDB_BUILD_SHARED=ON -DWITH_BENCHMARK_TOOLS=ON -DWITH_CORE_TOOLS=ON -DWITH_TOOLS=ON -DWITH_TESTS=ON -DPORTABLE=1 -DFAIL_ON_WARNINGS=OFF .. -- The CXX compiler identification is GNU 14.2.0 -- The C compiler identification is GNU 14.2.0 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.3.1") -- Found BZip2: /usr/lib/arm-linux-gnueabihf/libbz2.so (found version "1.0.8") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Found lz4: /usr/lib/arm-linux-gnueabihf/liblz4.so -- Found zstd: /usr/lib/arm-linux-gnueabihf/libzstd.so -- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER -- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER - Failed -- Performing Test HAS_ARMV8_CRC -- Performing Test HAS_ARMV8_CRC - Success -- HAS_ARMV8_CRC yes -- Performing Test BUILTIN_ATOMIC -- Performing Test BUILTIN_ATOMIC - Success -- Could NOT find uring (missing: uring_LIBRARIES uring_INCLUDE_DIR) -- Enabling RTTI in Debug builds only (default) -- Performing Test HAVE_FALLOCATE -- Performing Test HAVE_FALLOCATE - Success -- Performing Test HAVE_SYNC_FILE_RANGE_WRITE -- Performing Test HAVE_SYNC_FILE_RANGE_WRITE - Success -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP - Success -- Looking for malloc_usable_size -- Looking for malloc_usable_size - found -- Looking for sched_getcpu -- Looking for sched_getcpu - found -- Looking for getauxval -- Looking for getauxval - found -- Looking for F_FULLFSYNC -- Looking for F_FULLFSYNC - not found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- ROCKSDB_PLUGINS: -- ROCKSDB PLUGINS TO BUILD -- Could NOT find Git (missing: GIT_EXECUTABLE) -- JNI library is disabled -- Configuring done (5.5s) -- Generating done (0.6s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY FETCHCONTENT_FULLY_DISCONNECTED -- Build files have been written to: /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf make[1]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0' dh_auto_build -O--buildsystem=cmake cd obj-arm-linux-gnueabihf && make -j3 "INSTALL=install --strip-program=true" VERBOSE=1 make[1]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' /usr/bin/cmake -S/build/reproducible-path/rocksdb-9.10.0 -B/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/CMakeFiles /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf//CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[2]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/depend make -f CMakeFiles/rocksdb-shared.dir/build.make CMakeFiles/rocksdb-shared.dir/depend make -f third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/build.make third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/depend make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src/gtest /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/DependInfo.cmake "--color=" make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/CMakeFiles/rocksdb.dir/DependInfo.cmake "--color=" make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/CMakeFiles/rocksdb-shared.dir/DependInfo.cmake "--color=" make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make -f third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/build.make third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/build make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' [ 0%] Building CXX object third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/gtest-all.cc.o cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest && /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/gtest-all.cc.o -MF CMakeFiles/gtest.dir/gtest-all.cc.o.d -o CMakeFiles/gtest.dir/gtest-all.cc.o -c /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/build make -f CMakeFiles/rocksdb-shared.dir/build.make CMakeFiles/rocksdb-shared.dir/build make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' [ 0%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache.cc.o [ 0%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache.cc /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache.cc [ 1%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_entry_roles.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o -MF CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o.d -o CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_entry_roles.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_key.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_key.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/cache_key.cc.o -MF CMakeFiles/rocksdb.dir/cache/cache_key.cc.o.d -o CMakeFiles/rocksdb.dir/cache/cache_key.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_key.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_helpers.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/cache_helpers.cc.o -MF CMakeFiles/rocksdb.dir/cache/cache_helpers.cc.o.d -o CMakeFiles/rocksdb.dir/cache/cache_helpers.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_helpers.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_reservation_manager.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o -MF CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o.d -o CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_reservation_manager.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/charged_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/charged_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc [ 2%] Linking CXX static library libgtest.a cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest && /usr/bin/cmake -P CMakeFiles/gtest.dir/cmake_clean_target.cmake cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest && /usr/bin/cmake -E cmake_link_script CMakeFiles/gtest.dir/link.txt --verbose=1 /usr/bin/ar qc libgtest.a "CMakeFiles/gtest.dir/gtest-all.cc.o" /usr/bin/ranlib libgtest.a make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' [ 2%] Built target gtest make -f CMakeFiles/testharness.dir/build.make CMakeFiles/testharness.dir/depend make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/CMakeFiles/testharness.dir/DependInfo.cmake "--color=" make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make -f CMakeFiles/testharness.dir/build.make CMakeFiles/testharness.dir/build make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' [ 3%] Building CXX object CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o -MF CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o.d -o CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o -c /build/reproducible-path/rocksdb-9.10.0/test_util/mock_time_env.cc [ 3%] Building CXX object CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o -MF CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o.d -o CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o -c /build/reproducible-path/rocksdb-9.10.0/test_util/secondary_cache_test_util.cc In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:7, from /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.h:29, from /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:10: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = double; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:7, from /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.h:29, from /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:10: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = double; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 3%] Building CXX object CMakeFiles/testharness.dir/test_util/testharness.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/testharness.dir/test_util/testharness.cc.o -MF CMakeFiles/testharness.dir/test_util/testharness.cc.o.d -o CMakeFiles/testharness.dir/test_util/testharness.cc.o -c /build/reproducible-path/rocksdb-9.10.0/test_util/testharness.cc In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:1593:12: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:1593:12: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:1593:12: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:1593:12: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 3%] Building CXX object CMakeFiles/rocksdb.dir/cache/compressed_secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/compressed_secondary_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/compressed_secondary_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/compressed_secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/compressed_secondary_cache.cc [ 3%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/compressed_secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/compressed_secondary_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/compressed_secondary_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/compressed_secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/compressed_secondary_cache.cc [ 3%] Building CXX object CMakeFiles/rocksdb.dir/cache/lru_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/lru_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/lru_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/lru_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/lru_cache.cc [ 4%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/lru_cache.cc [ 4%] Linking CXX static library libtestharness.a /usr/bin/cmake -P CMakeFiles/testharness.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/testharness.dir/link.txt --verbose=1 /usr/bin/ar qc libtestharness.a CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o CMakeFiles/testharness.dir/test_util/testharness.cc.o /usr/bin/ranlib libtestharness.a make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' [ 4%] Built target testharness [ 4%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/secondary_cache.cc [ 4%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/secondary_cache_adapter.cc [ 5%] Building CXX object CMakeFiles/rocksdb.dir/cache/secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/secondary_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/secondary_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/secondary_cache.cc [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/sharded_cache.cc [ 5%] Building CXX object CMakeFiles/rocksdb.dir/cache/secondary_cache_adapter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/secondary_cache_adapter.cc.o -MF CMakeFiles/rocksdb.dir/cache/secondary_cache_adapter.cc.o.d -o CMakeFiles/rocksdb.dir/cache/secondary_cache_adapter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/secondary_cache_adapter.cc [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/tiered_secondary_cache.cc [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/arena_wrapped_db_iter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/arena_wrapped_db_iter.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/arena_wrapped_db_iter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/arena_wrapped_db_iter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/arena_wrapped_db_iter.cc [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/attribute_group_iterator_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/attribute_group_iterator_impl.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/attribute_group_iterator_impl.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/attribute_group_iterator_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/attribute_group_iterator_impl.cc [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_contents.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_contents.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_contents.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_contents.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_contents.cc [ 5%] Building CXX object CMakeFiles/rocksdb.dir/cache/sharded_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/sharded_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/sharded_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/sharded_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/sharded_cache.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_fetcher.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_fetcher.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_fetcher.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_fetcher.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_fetcher.cc [ 6%] Building CXX object CMakeFiles/rocksdb.dir/cache/tiered_secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/tiered_secondary_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/tiered_secondary_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/tiered_secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/tiered_secondary_cache.cc [ 6%] Building CXX object CMakeFiles/rocksdb.dir/db/arena_wrapped_db_iter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/arena_wrapped_db_iter.cc.o -MF CMakeFiles/rocksdb.dir/db/arena_wrapped_db_iter.cc.o.d -o CMakeFiles/rocksdb.dir/db/arena_wrapped_db_iter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/arena_wrapped_db_iter.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_addition.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_addition.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_addition.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_addition.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_builder.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_builder.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_builder.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_builder.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_cache.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_meta.cc [ 6%] Building CXX object CMakeFiles/rocksdb.dir/db/attribute_group_iterator_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/attribute_group_iterator_impl.cc.o -MF CMakeFiles/rocksdb.dir/db/attribute_group_iterator_impl.cc.o.d -o CMakeFiles/rocksdb.dir/db/attribute_group_iterator_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/attribute_group_iterator_impl.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_reader.cc [ 7%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_garbage_meter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_garbage_meter.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_garbage_meter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_garbage_meter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_garbage_meter.cc [ 7%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_contents.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_contents.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_contents.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_contents.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_contents.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_fetcher.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_fetcher.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_fetcher.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_fetcher.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_fetcher.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_format.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_format.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_format.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_format.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_format.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_sequential_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_sequential_reader.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_sequential_reader.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_sequential_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_sequential_reader.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_writer.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_addition.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_addition.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_addition.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_addition.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_builder.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_builder.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_builder.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_builder.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_cache.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_cache.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_cache.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_source.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_garbage.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_garbage.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_garbage.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_garbage.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_meta.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_meta.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_meta.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_meta.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_meta.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/prefetch_buffer_collection.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_reader.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_reader.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_reader.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/builder.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/builder.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/builder.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/builder.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_garbage_meter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_garbage_meter.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_garbage_meter.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_garbage_meter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_garbage_meter.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/c.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/c.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/c.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/c.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/c.cc [ 9%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_log_format.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_log_format.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_log_format.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_log_format.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_format.cc [ 9%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_log_sequential_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_log_sequential_reader.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_log_sequential_reader.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_log_sequential_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_sequential_reader.cc [ 9%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_log_writer.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_log_writer.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_log_writer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_writer.cc [ 10%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/coalescing_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/coalescing_iterator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/coalescing_iterator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/coalescing_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/coalescing_iterator.cc [ 10%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc [ 10%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_source.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_source.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_source.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_source.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_source.cc [ 10%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/prefetch_buffer_collection.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/prefetch_buffer_collection.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/prefetch_buffer_collection.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/prefetch_buffer_collection.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/prefetch_buffer_collection.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/c.cc:15: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:238:44: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::DBOptions::DBOptions(const rocksdb::DBOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:537:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.h:15, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc:10: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:238:44, inlined from 'rocksdb::ColumnFamilyOptions rocksdb::SanitizeOptions(const ImmutableDBOptions&, const ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc:356:34: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 10%] Building CXX object CMakeFiles/rocksdb.dir/db/builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/builder.cc.o -MF CMakeFiles/rocksdb.dir/db/builder.cc.o.d -o CMakeFiles/rocksdb.dir/db/builder.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/builder.cc [ 10%] Building CXX object CMakeFiles/rocksdb.dir/db/c.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/c.cc.o -MF CMakeFiles/rocksdb.dir/db/c.cc.o.d -o CMakeFiles/rocksdb.dir/db/c.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/c.cc [ 10%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/coalescing_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/coalescing_iterator.cc.o -MF CMakeFiles/rocksdb.dir/db/coalescing_iterator.cc.o.d -o CMakeFiles/rocksdb.dir/db/coalescing_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/coalescing_iterator.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/column_family.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/column_family.cc.o -MF CMakeFiles/rocksdb.dir/db/column_family.cc.o.d -o CMakeFiles/rocksdb.dir/db/column_family.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iterator.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/c.cc:15: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:238:44: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::DBOptions::DBOptions(const rocksdb::DBOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:537:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction.cc [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.h:15, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc:10: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:238:44, inlined from 'rocksdb::ColumnFamilyOptions rocksdb::SanitizeOptions(const ImmutableDBOptions&, const ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc:356:34: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_job.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_iterator.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_iterator.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iterator.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_picker.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_picker.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_picker.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_job.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_job.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_fifo.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_fifo.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_fifo.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_fifo.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_fifo.cc [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_fifo.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_level.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_level.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_level.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_level.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_level.cc [ 12%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_level.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_universal.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_universal.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_universal.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_universal.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_universal.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_service_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_service_job.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_service_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_service_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_service_job.cc [ 13%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_universal.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_state.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_state.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_state.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_state.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_state.cc [ 13%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_service_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_service_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_service_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_service_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_service_job.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_outputs.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_outputs.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_outputs.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_outputs.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_outputs.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/sst_partitioner.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/sst_partitioner.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/sst_partitioner.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/sst_partitioner.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/sst_partitioner.cc [ 13%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_state.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_state.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_state.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_state.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_state.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/subcompaction_state.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/subcompaction_state.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/subcompaction_state.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/subcompaction_state.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/subcompaction_state.cc [ 13%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_outputs.cc [ 13%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/sst_partitioner.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/convenience.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/convenience.cc.o -MF CMakeFiles/rocksdb.dir/db/convenience.cc.o.d -o CMakeFiles/rocksdb.dir/db/convenience.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/convenience.cc [ 14%] Building CXX object CMakeFiles/rocksdb.dir/db/db_filesnapshot.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_filesnapshot.cc.o -MF CMakeFiles/rocksdb.dir/db/db_filesnapshot.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_filesnapshot.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_filesnapshot.cc [ 14%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/subcompaction_state.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/subcompaction_state.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/subcompaction_state.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/subcompaction_state.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/subcompaction_state.cc [ 14%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/convenience.cc [ 14%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/compacted_db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/compacted_db_impl.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/compacted_db_impl.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/compacted_db_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_filesnapshot.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.h:8, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.cc:6: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.h:8, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.cc:6: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_write.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_write.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_write.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_write.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_write.cc In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:17, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:9: /usr/include/c++/14/bits/stl_tree.h: In function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple, std::allocator >&>, std::tuple<>}; _Key = std::__cxx11::basic_string; _Val = std::pair, long long unsigned int>; _KeyOfValue = std::_Select1st, long long unsigned int> >; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]': /usr/include/c++/14/bits/stl_tree.h:2454:7: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 2454 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:17, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:9: /usr/include/c++/14/bits/stl_tree.h: In function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple, std::allocator >&>, std::tuple<>}; _Key = std::__cxx11::basic_string; _Val = std::pair, long long unsigned int>; _KeyOfValue = std::_Select1st, long long unsigned int> >; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]': /usr/include/c++/14/bits/stl_tree.h:2454:7: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 2454 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_write.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_write.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_write.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_write.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_write.cc In file included from /usr/include/c++/14/map:63: /usr/include/c++/14/bits/stl_map.h: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]': /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/map:63: /usr/include/c++/14/bits/stl_map.h: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]': /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/deque:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:13: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _ForwardIterator = std::pair*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*; _Tp = pair]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-9.10.0/db/version_edit.h:420:7: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/deque:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:13: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _ForwardIterator = std::pair*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*; _Tp = pair]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-9.10.0/db/version_edit.h:420:7: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_compaction_flush.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_compaction_flush.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_compaction_flush.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_compaction_flush.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_compaction_flush.cc /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; _Tp = rocksdb::IngestedFileInfo]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:331:40, inlined from 'void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; = void; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:829:17, inlined from 'rocksdb::autovector& rocksdb::autovector::assign(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:370:15, inlined from 'rocksdb::autovector::autovector(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:327:47, inlined from 'rocksdb::ExternalSstFileIngestionJob::ExternalSstFileIngestionJob(const rocksdb::ExternalSstFileIngestionJob&)' at /build/reproducible-path/rocksdb-9.10.0/db/external_sst_file_ingestion_job.h:182:7, inlined from 'void std::_Construct(_Tp*, _Args&& ...) [with _Tp = rocksdb::ExternalSstFileIngestionJob; _Args = {const rocksdb::ExternalSstFileIngestionJob&}]' at /usr/include/c++/14/bits/stl_construct.h:119:7, inlined from '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const rocksdb::ExternalSstFileIngestionJob*; _ForwardIterator = rocksdb::ExternalSstFileIngestionJob*]' at /usr/include/c++/14/bits/stl_uninitialized.h:120:21: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:1080:74: /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:1080:33: /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; _Tp = rocksdb::IngestedFileInfo]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:331:40, inlined from 'void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; = void; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:829:17, inlined from 'rocksdb::autovector& rocksdb::autovector::assign(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:370:15, inlined from 'rocksdb::autovector::autovector(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:327:47, inlined from 'rocksdb::ExternalSstFileIngestionJob::ExternalSstFileIngestionJob(const rocksdb::ExternalSstFileIngestionJob&)' at /build/reproducible-path/rocksdb-9.10.0/db/external_sst_file_ingestion_job.h:182:7, inlined from 'void std::_Construct(_Tp*, _Args&& ...) [with _Tp = rocksdb::ExternalSstFileIngestionJob; _Args = {const rocksdb::ExternalSstFileIngestionJob&}]' at /usr/include/c++/14/bits/stl_construct.h:119:7, inlined from '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const rocksdb::ExternalSstFileIngestionJob*; _ForwardIterator = rocksdb::ExternalSstFileIngestionJob*]' at /usr/include/c++/14/bits/stl_uninitialized.h:120:21: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:1080:74: /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:1080:33: /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_files.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_files.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_files.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_files.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_files.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_compaction_flush.cc In file included from /usr/include/c++/14/deque:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_files.cc:13: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _ForwardIterator = std::pair*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*; _Tp = pair]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-9.10.0/db/version_edit.h:420:7: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_files.cc [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_follower.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_follower.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_follower.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_follower.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_follower.cc In file included from /usr/include/c++/14/deque:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_files.cc:13: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _ForwardIterator = std::pair*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*; _Tp = pair]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-9.10.0/db/version_edit.h:420:7: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_open.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_open.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_open.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_open.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc [ 16%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_debug.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_debug.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_debug.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_debug.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_debug.cc [ 16%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_follower.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_follower.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_follower.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_follower.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_follower.cc [ 16%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_experimental.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_experimental.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_experimental.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_experimental.cc In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/util/coding.h:19, from /build/reproducible-path/rocksdb-9.10.0/db/dbformat.h:23, from /build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h:14, from /build/reproducible-path/rocksdb-9.10.0/db/builder.h:13, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:11: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = long long unsigned int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, bool, uint64_t*, RecoveryContext*, bool*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:808:16: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, bool, uint64_t*, RecoveryContext*, bool*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:808:16: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 17%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_readonly.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_readonly.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_readonly.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_readonly.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.cc [ 17%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_secondary.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_secondary.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_secondary.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_secondary.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/util/coding.h:19, from /build/reproducible-path/rocksdb-9.10.0/db/dbformat.h:23, from /build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h:14, from /build/reproducible-path/rocksdb-9.10.0/db/builder.h:13, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:11: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = long long unsigned int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.h:10, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.cc:6: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/cache/typed_cache.h:26, from /build/reproducible-path/rocksdb-9.10.0/cache/cache_reservation_manager.h:21, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.h:17, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:24, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.h:12, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:6: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = long long unsigned int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, bool, uint64_t*, RecoveryContext*, bool*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:808:16: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, bool, uint64_t*, RecoveryContext*, bool*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:808:16: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 17%] Building CXX object CMakeFiles/rocksdb.dir/db/db_info_dumper.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_info_dumper.cc.o -MF CMakeFiles/rocksdb.dir/db/db_info_dumper.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_info_dumper.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_info_dumper.cc In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:133:14: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:133:14: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:17: /usr/include/c++/14/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2485:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2485 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = {std::pair > >}; _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2454:7: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2454 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(iterator) [with _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:1087:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:146:25: /usr/include/c++/14/bits/stl_tree.h:1206:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1206 | _M_erase_aux(__position); | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/14/map:63: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {std::pair > >}; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::__enable_if_t<((bool)std::is_constructible, _Pair>::value), std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind >::other>::iterator, bool> > std::map<_Key, _Tp, _Compare, _Alloc>::insert(_Pair&&) [with _Pair = std::pair >; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:859:27, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:175:24: /usr/include/c++/14/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map >::const_iterator' {aka 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_debug.cc [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_experimental.cc /usr/include/c++/14/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(const_iterator, const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2499:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2499 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_tree.h:2499:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(const_iterator, const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(const_iterator, const_iterator) [with _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:1138:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::RecoverLogFiles(const std::vector&, rocksdb::SequenceNumber*, std::unordered_set*, rocksdb::JobContext*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:338:23: /usr/include/c++/14/bits/stl_tree.h:1235:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1235 | _M_erase_aux(__first, __last); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ [ 17%] Building CXX object CMakeFiles/rocksdb.dir/db/db_iter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_iter.cc.o -MF CMakeFiles/rocksdb.dir/db/db_iter.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_iter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_iter.cc [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.cc [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc [ 17%] Building CXX object CMakeFiles/rocksdb.dir/db/dbformat.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/dbformat.cc.o -MF CMakeFiles/rocksdb.dir/db/dbformat.cc.o.d -o CMakeFiles/rocksdb.dir/db/dbformat.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/dbformat.cc [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/error_handler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/error_handler.cc.o -MF CMakeFiles/rocksdb.dir/db/error_handler.cc.o.d -o CMakeFiles/rocksdb.dir/db/error_handler.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/error_handler.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.h:10, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.cc:6: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/cache/typed_cache.h:26, from /build/reproducible-path/rocksdb-9.10.0/cache/cache_reservation_manager.h:21, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.h:17, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:24, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.h:12, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:6: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = long long unsigned int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_info_dumper.cc In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:133:14: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:133:14: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:17: /usr/include/c++/14/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2485:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2485 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = {std::pair > >}; _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2454:7: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2454 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(iterator) [with _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:1087:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:146:25: /usr/include/c++/14/bits/stl_tree.h:1206:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1206 | _M_erase_aux(__position); | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/14/map:63: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {std::pair > >}; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::__enable_if_t<((bool)std::is_constructible, _Pair>::value), std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind >::other>::iterator, bool> > std::map<_Key, _Tp, _Compare, _Alloc>::insert(_Pair&&) [with _Pair = std::pair >; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:859:27, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:175:24: /usr/include/c++/14/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map >::const_iterator' {aka 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(const_iterator, const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2499:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2499 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_tree.h:2499:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/event_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/event_helpers.cc.o -MF CMakeFiles/rocksdb.dir/db/event_helpers.cc.o.d -o CMakeFiles/rocksdb.dir/db/event_helpers.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/event_helpers.cc In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(const_iterator, const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(const_iterator, const_iterator) [with _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:1138:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::RecoverLogFiles(const std::vector&, rocksdb::SequenceNumber*, std::unordered_set*, rocksdb::JobContext*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:338:23: /usr/include/c++/14/bits/stl_tree.h:1235:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1235 | _M_erase_aux(__first, __last); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/experimental.cc.o -MF CMakeFiles/rocksdb.dir/db/experimental.cc.o.d -o CMakeFiles/rocksdb.dir/db/experimental.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/experimental.cc [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_iter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_iter.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_iter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_iter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_iter.cc [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o -MF CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/external_sst_file_ingestion_job.cc [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/dbformat.cc [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/file_indexer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/file_indexer.cc.o -MF CMakeFiles/rocksdb.dir/db/file_indexer.cc.o.d -o CMakeFiles/rocksdb.dir/db/file_indexer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/file_indexer.cc [ 19%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/error_handler.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/flush_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/flush_job.cc.o -MF CMakeFiles/rocksdb.dir/db/flush_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/flush_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/flush_job.cc [ 19%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/event_helpers.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/flush_scheduler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/flush_scheduler.cc.o -MF CMakeFiles/rocksdb.dir/db/flush_scheduler.cc.o.d -o CMakeFiles/rocksdb.dir/db/flush_scheduler.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/flush_scheduler.cc [ 19%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/experimental.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/forward_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/forward_iterator.cc.o -MF CMakeFiles/rocksdb.dir/db/forward_iterator.cc.o.d -o CMakeFiles/rocksdb.dir/db/forward_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/forward_iterator.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/import_column_family_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/import_column_family_job.cc.o -MF CMakeFiles/rocksdb.dir/db/import_column_family_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/import_column_family_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/import_column_family_job.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/internal_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/internal_stats.cc.o -MF CMakeFiles/rocksdb.dir/db/internal_stats.cc.o.d -o CMakeFiles/rocksdb.dir/db/internal_stats.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/internal_stats.cc [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/external_sst_file_ingestion_job.cc [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/file_indexer.cc [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/flush_job.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/logs_with_prep_tracker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/logs_with_prep_tracker.cc.o -MF CMakeFiles/rocksdb.dir/db/logs_with_prep_tracker.cc.o.d -o CMakeFiles/rocksdb.dir/db/logs_with_prep_tracker.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/logs_with_prep_tracker.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/log_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/log_reader.cc.o -MF CMakeFiles/rocksdb.dir/db/log_reader.cc.o.d -o CMakeFiles/rocksdb.dir/db/log_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/log_reader.cc [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/flush_scheduler.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/log_writer.cc.o -MF CMakeFiles/rocksdb.dir/db/log_writer.cc.o.d -o CMakeFiles/rocksdb.dir/db/log_writer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/log_writer.cc [ 21%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/forward_iterator.cc [ 21%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/import_column_family_job.cc [ 21%] Building CXX object CMakeFiles/rocksdb.dir/db/malloc_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/malloc_stats.cc.o -MF CMakeFiles/rocksdb.dir/db/malloc_stats.cc.o.d -o CMakeFiles/rocksdb.dir/db/malloc_stats.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/malloc_stats.cc [ 21%] Building CXX object CMakeFiles/rocksdb.dir/db/manifest_ops.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/manifest_ops.cc.o -MF CMakeFiles/rocksdb.dir/db/manifest_ops.cc.o.d -o CMakeFiles/rocksdb.dir/db/manifest_ops.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/manifest_ops.cc [ 22%] Building CXX object CMakeFiles/rocksdb.dir/db/memtable.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/memtable.cc.o -MF CMakeFiles/rocksdb.dir/db/memtable.cc.o.d -o CMakeFiles/rocksdb.dir/db/memtable.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/internal_stats.cc /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: error: insn does not satisfy its constraints: 269 | } | ^ (insn 271 270 272 13 (set (reg:CC_DNE 100 cc) (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) (const_int -1 [0xffffffffffffffff])) (ne:SI (reg:SI 1 r1 [+4 ]) (const_int -1 [0xffffffffffffffff]))) (const_int 0 [0]))) "/usr/include/c++/14/bits/atomic_base.h":573:36 343 {*cmp_ior} (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) (expr_list:REG_DEAD (reg:SI 0 r0 [164]) (nil)))) during RTL pass: cprop_hardreg /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 0x6a4a17 internal_error(char const*, ...) ???:0 0x6a4acd fancy_abort(char const*, int, char const*) ???:0 0x3d10f1 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x3d1123 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ???:0 0x946eb5 extract_constrain_insn(rtx_insn*) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/logs_with_prep_tracker.cc [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/log_reader.cc [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/log_writer.cc [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/malloc_stats.cc [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/manifest_ops.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/manifest_ops.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/manifest_ops.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/manifest_ops.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/manifest_ops.cc [ 23%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc [ 23%] Building CXX object CMakeFiles/rocksdb.dir/db/memtable_list.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/memtable_list.cc.o -MF CMakeFiles/rocksdb.dir/db/memtable_list.cc.o.d -o CMakeFiles/rocksdb.dir/db/memtable_list.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/memtable_list.cc /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: error: insn does not satisfy its constraints: 269 | } | ^ (insn 271 270 272 13 (set (reg:CC_DNE 100 cc) (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) (const_int -1 [0xffffffffffffffff])) (ne:SI (reg:SI 1 r1 [+4 ]) (const_int -1 [0xffffffffffffffff]))) (const_int 0 [0]))) "/usr/include/c++/14/bits/atomic_base.h":573:36 343 {*cmp_ior} (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) (expr_list:REG_DEAD (reg:SI 0 r0 [164]) (nil)))) during RTL pass: cprop_hardreg /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 0x6a4a17 internal_error(char const*, ...) ???:0 0x6a4acd fancy_abort(char const*, int, char const*) ???:0 0x3d10f1 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x3d1123 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ???:0 0x946eb5 extract_constrain_insn(rtx_insn*) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Preprocessed source stored into /tmp/ccnNfuLv.out file, please attach this to your bugreport. === BEGIN GCC DUMP === 29724: // Target: arm-linux-gnueabihf 29724: // Configured with: ../src/configure -v --with-pkgversion='Debian 14.2.0-16' --with-bugurl=file:///usr/share/doc/gcc-14/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust --prefix=/usr --with-gcc-major-version-only --program-suffix=-14 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf 29724: // Thread model: posix 29724: // Supported LTO compression algorithms: zlib zstd 29724: // gcc version 14.2.0 (Debian 14.2.0-16) 29724: // 29724: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': 29724: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: error: insn does not satisfy its constraints: 29724: // 269 | } 29724: // | ^ 29724: // (insn 271 270 272 13 (set (reg:CC_DNE 100 cc) 29724: // (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) 29724: // (const_int -1 [0xffffffffffffffff])) 29724: // (ne:SI (reg:SI 1 r1 [+4 ]) 29724: // (const_int -1 [0xffffffffffffffff]))) 29724: // (const_int 0 [0]))) "/usr/include/c++/14/bits/atomic_base.h":573:36 343 {*cmp_ior} 29724: // (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) 29724: // (expr_list:REG_DEAD (reg:SI 0 r0 [164]) 29724: // (nil)))) 29724: // during RTL pass: cprop_hardreg 29724: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 29724: // 0x6a4a17 internal_error(char const*, ...) 29724: // ???:0 29724: // 0x6a4acd fancy_abort(char const*, int, char const*) 29724: // ???:0 29724: // 0x3d10f1 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) 29724: // ???:0 29724: // 0x3d1123 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) 29724: // ???:0 29724: // 0x946eb5 extract_constrain_insn(rtx_insn*) 29724: // ???:0 29724: // Please submit a full bug report, with preprocessed source (by using -freport-bug). 29724: // Please include the complete backtrace with any bug report. 29724: // See for instructions. 29724: 29724: // /usr/libexec/gcc/arm-linux-gnueabihf/14/cc1plus -quiet -I /build/reproducible-path/rocksdb-9.10.0 -I /build/reproducible-path/rocksdb-9.10.0/include -imultilib . -imultiarch arm-linux-gnueabihf -MD CMakeFiles/rocksdb.dir/db/memtable.cc.d -MF CMakeFiles/rocksdb.dir/db/memtable.cc.o.d -MT CMakeFiles/rocksdb.dir/db/memtable.cc.o -D_GNU_SOURCE -D_REENTRANT -D BZIP2 -D GFLAGS=1 -D GFLAGS_IS_A_DLL=0 -D LZ4 -D OS_LINUX -D ROCKSDB_AUXV_GETAUXVAL_PRESENT -D ROCKSDB_FALLOCATE_PRESENT -D ROCKSDB_LIB_IO_POSIX -D ROCKSDB_MALLOC_USABLE_SIZE -D ROCKSDB_NO_DYNAMIC_EXTENSION -D ROCKSDB_PLATFORM_POSIX -D ROCKSDB_PTHREAD_ADAPTIVE_MUTEX -D ROCKSDB_RANGESYNC_PRESENT -D ROCKSDB_SCHED_GETCPU_PRESENT -D SNAPPY -D ZLIB -D ZSTD -D _LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D _TIME_BITS=64 -D _FORTIFY_SOURCE=2 -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc -quiet -dumpdir CMakeFiles/rocksdb.dir/db/ -dumpbase memtable.cc.cc -dumpbase-ext .cc -mfloat-abi=hard -mtls-dialect=gnu -mthumb -mlibarch=armv8-a+crc+crypto -march=armv8-a+crc+crypto -g -O2 -Wformat=1 -Werror=format-security -Wdate-time -Wextra -Wall -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual=2 -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -Wno-unused-function -std=gnu++17 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -fno-omit-frame-pointer -fno-builtin-memcmp -o - -frandom-seed=0 -fdump-noaddr 29724: 29724: # 0 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf//" 29724: # 0 "" 29724: # 0 "" 29724: # 1 "/usr/include/stdc-predef.h" 1 3 4 29724: # 0 "" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: 29724: # 1 "/usr/include/c++/14/atomic" 1 3 29724: # 35 "/usr/include/c++/14/atomic" 3 29724: 29724: # 36 "/usr/include/c++/14/atomic" 3 29724: # 48 "/usr/include/c++/14/atomic" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 1 3 29724: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: 29724: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: 29724: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: namespace std 29724: { 29724: typedef unsigned int size_t; 29724: typedef int ptrdiff_t; 29724: 29724: 29724: typedef decltype(nullptr) nullptr_t; 29724: 29724: 29724: #pragma GCC visibility push(default) 29724: 29724: 29724: extern "C++" __attribute__ ((__noreturn__, __always_inline__)) 29724: inline void __terminate() noexcept 29724: { 29724: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 29724: terminate(); 29724: } 29724: #pragma GCC visibility pop 29724: } 29724: # 341 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: namespace std 29724: { 29724: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 29724: } 29724: namespace __gnu_cxx 29724: { 29724: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 29724: } 29724: # 534 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: namespace std 29724: { 29724: #pragma GCC visibility push(default) 29724: 29724: 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: constexpr inline bool 29724: __is_constant_evaluated() noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: return __builtin_is_constant_evaluated(); 29724: 29724: 29724: 29724: } 29724: #pragma GCC visibility pop 29724: } 29724: # 573 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: namespace std 29724: { 29724: #pragma GCC visibility push(default) 29724: 29724: extern "C++" __attribute__ ((__noreturn__)) 29724: void 29724: __glibcxx_assert_fail 29724: (const char* __file, int __line, const char* __function, 29724: const char* __condition) 29724: noexcept; 29724: #pragma GCC visibility pop 29724: } 29724: # 604 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: namespace std 29724: { 29724: __attribute__((__always_inline__,__visibility__("default"))) 29724: inline void 29724: __glibcxx_assert_fail() 29724: { } 29724: } 29724: # 683 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 1 3 29724: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 3 29724: # 1 "/usr/include/features.h" 1 3 4 29724: # 402 "/usr/include/features.h" 3 4 29724: # 1 "/usr/include/features-time64.h" 1 3 4 29724: # 20 "/usr/include/features-time64.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 21 "/usr/include/features-time64.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 29724: # 22 "/usr/include/features-time64.h" 2 3 4 29724: # 403 "/usr/include/features.h" 2 3 4 29724: # 510 "/usr/include/features.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 1 3 4 29724: # 730 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 731 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 29724: # 732 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 29724: # 511 "/usr/include/features.h" 2 3 4 29724: # 534 "/usr/include/features.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 1 3 4 29724: # 10 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs-hard.h" 1 3 4 29724: # 11 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 2 3 4 29724: # 535 "/usr/include/features.h" 2 3 4 29724: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 2 3 29724: # 684 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/cpu_defines.h" 1 3 29724: # 687 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29724: # 890 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: # 1 "/usr/include/c++/14/pstl/pstl_config.h" 1 3 29724: # 891 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29724: # 50 "/usr/include/c++/14/bits/version.h" 2 3 29724: # 49 "/usr/include/c++/14/atomic" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/atomic_base.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/new" 1 3 29724: # 38 "/usr/include/c++/14/new" 3 29724: 29724: # 39 "/usr/include/c++/14/new" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/exception.h" 1 3 29724: # 34 "/usr/include/c++/14/bits/exception.h" 3 29724: 29724: # 35 "/usr/include/c++/14/bits/exception.h" 3 29724: 29724: 29724: 29724: extern "C++" { 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: # 59 "/usr/include/c++/14/bits/exception.h" 3 29724: class exception 29724: { 29724: public: 29724: exception() noexcept { } 29724: virtual ~exception() noexcept; 29724: 29724: exception(const exception&) = default; 29724: exception& operator=(const exception&) = default; 29724: exception(exception&&) = default; 29724: exception& operator=(exception&&) = default; 29724: 29724: 29724: 29724: 29724: virtual const char* 29724: what() const noexcept; 29724: }; 29724: 29724: 29724: 29724: } 29724: 29724: } 29724: # 42 "/usr/include/c++/14/new" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 47 "/usr/include/c++/14/new" 2 3 29724: 29724: #pragma GCC visibility push(default) 29724: 29724: extern "C++" { 29724: 29724: namespace std 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class bad_alloc : public exception 29724: { 29724: public: 29724: bad_alloc() throw() { } 29724: 29724: 29724: bad_alloc(const bad_alloc&) = default; 29724: bad_alloc& operator=(const bad_alloc&) = default; 29724: 29724: 29724: 29724: 29724: virtual ~bad_alloc() throw(); 29724: 29724: 29724: virtual const char* what() const throw(); 29724: }; 29724: 29724: 29724: class bad_array_new_length : public bad_alloc 29724: { 29724: public: 29724: bad_array_new_length() throw() { } 29724: 29724: 29724: 29724: virtual ~bad_array_new_length() throw(); 29724: 29724: 29724: virtual const char* what() const throw(); 29724: }; 29724: 29724: 29724: 29724: enum class align_val_t: size_t {}; 29724: 29724: 29724: struct nothrow_t 29724: { 29724: 29724: explicit nothrow_t() = default; 29724: 29724: }; 29724: 29724: extern const nothrow_t nothrow; 29724: 29724: 29724: 29724: typedef void (*new_handler)(); 29724: 29724: 29724: 29724: new_handler set_new_handler(new_handler) throw(); 29724: 29724: 29724: 29724: new_handler get_new_handler() noexcept; 29724: 29724: } 29724: # 131 "/usr/include/c++/14/new" 3 29724: [[__nodiscard__]] void* operator new(std::size_t) 29724: __attribute__((__externally_visible__)); 29724: [[__nodiscard__]] void* operator new[](std::size_t) 29724: __attribute__((__externally_visible__)); 29724: void operator delete(void*) noexcept 29724: __attribute__((__externally_visible__)); 29724: void operator delete[](void*) noexcept 29724: __attribute__((__externally_visible__)); 29724: 29724: void operator delete(void*, std::size_t) noexcept 29724: __attribute__((__externally_visible__)); 29724: void operator delete[](void*, std::size_t) noexcept 29724: __attribute__((__externally_visible__)); 29724: 29724: [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept 29724: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept 29724: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: void operator delete(void*, const std::nothrow_t&) noexcept 29724: __attribute__((__externally_visible__)); 29724: void operator delete[](void*, const std::nothrow_t&) noexcept 29724: __attribute__((__externally_visible__)); 29724: 29724: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) 29724: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) 29724: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: void operator delete(void*, std::align_val_t) 29724: noexcept __attribute__((__externally_visible__)); 29724: void operator delete(void*, std::align_val_t, const std::nothrow_t&) 29724: noexcept __attribute__((__externally_visible__)); 29724: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) 29724: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) 29724: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: void operator delete[](void*, std::align_val_t) 29724: noexcept __attribute__((__externally_visible__)); 29724: void operator delete[](void*, std::align_val_t, const std::nothrow_t&) 29724: noexcept __attribute__((__externally_visible__)); 29724: 29724: void operator delete(void*, std::size_t, std::align_val_t) 29724: noexcept __attribute__((__externally_visible__)); 29724: void operator delete[](void*, std::size_t, std::align_val_t) 29724: noexcept __attribute__((__externally_visible__)); 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept 29724: { return __p; } 29724: [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept 29724: { return __p; } 29724: 29724: 29724: inline void operator delete (void*, void*) noexcept { } 29724: inline void operator delete[](void*, void*) noexcept { } 29724: 29724: } 29724: 29724: 29724: namespace std 29724: { 29724: 29724: 29724: template 29724: [[nodiscard]] constexpr _Tp* 29724: launder(_Tp* __p) noexcept 29724: { return __builtin_launder(__p); } 29724: 29724: 29724: 29724: 29724: template 29724: void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; 29724: template 29724: void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; 29724: 29724: void launder(void*) = delete; 29724: void launder(const void*) = delete; 29724: void launder(volatile void*) = delete; 29724: void launder(const volatile void*) = delete; 29724: 29724: 29724: 29724: inline constexpr size_t hardware_destructive_interference_size = 64; 29724: inline constexpr size_t hardware_constructive_interference_size = 64; 29724: 29724: } 29724: # 236 "/usr/include/c++/14/new" 3 29724: #pragma GCC visibility pop 29724: # 37 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 1 3 4 29724: # 9 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 3 4 29724: # 1 "/usr/include/stdint.h" 1 3 4 29724: # 26 "/usr/include/stdint.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 27 "/usr/include/stdint.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 28 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 29724: # 29 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29724: 29724: 29724: typedef unsigned char __u_char; 29724: typedef unsigned short int __u_short; 29724: typedef unsigned int __u_int; 29724: typedef unsigned long int __u_long; 29724: 29724: 29724: typedef signed char __int8_t; 29724: typedef unsigned char __uint8_t; 29724: typedef signed short int __int16_t; 29724: typedef unsigned short int __uint16_t; 29724: typedef signed int __int32_t; 29724: typedef unsigned int __uint32_t; 29724: 29724: 29724: 29724: 29724: __extension__ typedef signed long long int __int64_t; 29724: __extension__ typedef unsigned long long int __uint64_t; 29724: 29724: 29724: 29724: typedef __int8_t __int_least8_t; 29724: typedef __uint8_t __uint_least8_t; 29724: typedef __int16_t __int_least16_t; 29724: typedef __uint16_t __uint_least16_t; 29724: typedef __int32_t __int_least32_t; 29724: typedef __uint32_t __uint_least32_t; 29724: typedef __int64_t __int_least64_t; 29724: typedef __uint64_t __uint_least64_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: __extension__ typedef long long int __quad_t; 29724: __extension__ typedef unsigned long long int __u_quad_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __extension__ typedef long long int __intmax_t; 29724: __extension__ typedef unsigned long long int __uintmax_t; 29724: # 141 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/typesizes.h" 1 3 4 29724: # 142 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/time64.h" 1 3 4 29724: # 143 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29724: 29724: 29724: __extension__ typedef __uint64_t __dev_t; 29724: __extension__ typedef unsigned int __uid_t; 29724: __extension__ typedef unsigned int __gid_t; 29724: __extension__ typedef unsigned long int __ino_t; 29724: __extension__ typedef __uint64_t __ino64_t; 29724: __extension__ typedef unsigned int __mode_t; 29724: __extension__ typedef unsigned int __nlink_t; 29724: __extension__ typedef long int __off_t; 29724: __extension__ typedef __int64_t __off64_t; 29724: __extension__ typedef int __pid_t; 29724: __extension__ typedef struct { int __val[2]; } __fsid_t; 29724: __extension__ typedef long int __clock_t; 29724: __extension__ typedef unsigned long int __rlim_t; 29724: __extension__ typedef __uint64_t __rlim64_t; 29724: __extension__ typedef unsigned int __id_t; 29724: __extension__ typedef long int __time_t; 29724: __extension__ typedef unsigned int __useconds_t; 29724: __extension__ typedef long int __suseconds_t; 29724: __extension__ typedef __int64_t __suseconds64_t; 29724: 29724: __extension__ typedef int __daddr_t; 29724: __extension__ typedef int __key_t; 29724: 29724: 29724: __extension__ typedef int __clockid_t; 29724: 29724: 29724: __extension__ typedef void * __timer_t; 29724: 29724: 29724: __extension__ typedef long int __blksize_t; 29724: 29724: 29724: 29724: 29724: __extension__ typedef long int __blkcnt_t; 29724: __extension__ typedef __int64_t __blkcnt64_t; 29724: 29724: 29724: __extension__ typedef unsigned long int __fsblkcnt_t; 29724: __extension__ typedef __uint64_t __fsblkcnt64_t; 29724: 29724: 29724: __extension__ typedef unsigned long int __fsfilcnt_t; 29724: __extension__ typedef __uint64_t __fsfilcnt64_t; 29724: 29724: 29724: __extension__ typedef int __fsword_t; 29724: 29724: __extension__ typedef int __ssize_t; 29724: 29724: 29724: __extension__ typedef long int __syscall_slong_t; 29724: 29724: __extension__ typedef unsigned long int __syscall_ulong_t; 29724: 29724: 29724: 29724: typedef __off64_t __loff_t; 29724: typedef char *__caddr_t; 29724: 29724: 29724: __extension__ typedef int __intptr_t; 29724: 29724: 29724: __extension__ typedef unsigned int __socklen_t; 29724: 29724: 29724: 29724: 29724: typedef int __sig_atomic_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __extension__ typedef __int64_t __time64_t; 29724: # 28 "/usr/include/stdint.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar.h" 1 3 4 29724: # 29 "/usr/include/stdint.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 30 "/usr/include/stdint.h" 2 3 4 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 3 4 29724: typedef __int8_t int8_t; 29724: typedef __int16_t int16_t; 29724: typedef __int32_t int32_t; 29724: typedef __int64_t int64_t; 29724: # 35 "/usr/include/stdint.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 3 4 29724: typedef __uint8_t uint8_t; 29724: typedef __uint16_t uint16_t; 29724: typedef __uint32_t uint32_t; 29724: typedef __uint64_t uint64_t; 29724: # 38 "/usr/include/stdint.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 1 3 4 29724: # 25 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 3 4 29724: typedef __int_least8_t int_least8_t; 29724: typedef __int_least16_t int_least16_t; 29724: typedef __int_least32_t int_least32_t; 29724: typedef __int_least64_t int_least64_t; 29724: 29724: 29724: typedef __uint_least8_t uint_least8_t; 29724: typedef __uint_least16_t uint_least16_t; 29724: typedef __uint_least32_t uint_least32_t; 29724: typedef __uint_least64_t uint_least64_t; 29724: # 42 "/usr/include/stdint.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: typedef signed char int_fast8_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef int int_fast16_t; 29724: typedef int int_fast32_t; 29724: __extension__ 29724: typedef long long int int_fast64_t; 29724: 29724: 29724: 29724: typedef unsigned char uint_fast8_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef unsigned int uint_fast16_t; 29724: typedef unsigned int uint_fast32_t; 29724: __extension__ 29724: typedef unsigned long long int uint_fast64_t; 29724: # 82 "/usr/include/stdint.h" 3 4 29724: typedef int intptr_t; 29724: 29724: 29724: typedef unsigned int uintptr_t; 29724: 29724: 29724: 29724: 29724: typedef __intmax_t intmax_t; 29724: typedef __uintmax_t uintmax_t; 29724: # 10 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 2 3 4 29724: # 38 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 29724: # 39 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/move.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/move.h" 3 29724: # 1 "/usr/include/c++/14/type_traits" 1 3 29724: # 32 "/usr/include/c++/14/type_traits" 3 29724: 29724: # 33 "/usr/include/c++/14/type_traits" 3 29724: # 63 "/usr/include/c++/14/type_traits" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 64 "/usr/include/c++/14/type_traits" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: class reference_wrapper; 29724: # 86 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct integral_constant 29724: { 29724: static constexpr _Tp value = __v; 29724: using value_type = _Tp; 29724: using type = integral_constant<_Tp, __v>; 29724: constexpr operator value_type() const noexcept { return value; } 29724: 29724: 29724: constexpr value_type operator()() const noexcept { return value; } 29724: 29724: }; 29724: # 106 "/usr/include/c++/14/type_traits" 3 29724: template 29724: using __bool_constant = integral_constant; 29724: 29724: 29724: 29724: using true_type = __bool_constant; 29724: 29724: 29724: using false_type = __bool_constant; 29724: 29724: 29724: 29724: 29724: template 29724: using bool_constant = __bool_constant<__v>; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct enable_if 29724: { }; 29724: 29724: 29724: template 29724: struct enable_if 29724: { using type = _Tp; }; 29724: 29724: 29724: template 29724: using __enable_if_t = typename enable_if<_Cond, _Tp>::type; 29724: 29724: template 29724: struct __conditional 29724: { 29724: template 29724: using type = _Tp; 29724: }; 29724: 29724: template<> 29724: struct __conditional 29724: { 29724: template 29724: using type = _Up; 29724: }; 29724: 29724: 29724: template 29724: using __conditional_t 29724: = typename __conditional<_Cond>::template type<_If, _Else>; 29724: 29724: 29724: template 29724: struct __type_identity 29724: { using type = _Type; }; 29724: 29724: template 29724: using __type_identity_t = typename __type_identity<_Tp>::type; 29724: 29724: namespace __detail 29724: { 29724: 29724: template 29724: using __first_t = _Tp; 29724: 29724: 29724: template 29724: auto __or_fn(int) -> __first_t...>; 29724: 29724: template 29724: auto __or_fn(...) -> true_type; 29724: 29724: template 29724: auto __and_fn(int) -> __first_t...>; 29724: 29724: template 29724: auto __and_fn(...) -> false_type; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: struct __or_ 29724: : decltype(__detail::__or_fn<_Bn...>(0)) 29724: { }; 29724: 29724: template 29724: struct __and_ 29724: : decltype(__detail::__and_fn<_Bn...>(0)) 29724: { }; 29724: 29724: template 29724: struct __not_ 29724: : __bool_constant 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool __or_v = __or_<_Bn...>::value; 29724: template 29724: inline constexpr bool __and_v = __and_<_Bn...>::value; 29724: 29724: namespace __detail 29724: { 29724: template 29724: struct __disjunction_impl 29724: { using type = _B1; }; 29724: 29724: template 29724: struct __disjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 29724: { using type = typename __disjunction_impl::type; }; 29724: 29724: template 29724: struct __conjunction_impl 29724: { using type = _B1; }; 29724: 29724: template 29724: struct __conjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 29724: { using type = typename __conjunction_impl::type; }; 29724: } 29724: 29724: 29724: template 29724: struct conjunction 29724: : __detail::__conjunction_impl::type 29724: { }; 29724: 29724: template<> 29724: struct conjunction<> 29724: : true_type 29724: { }; 29724: 29724: template 29724: struct disjunction 29724: : __detail::__disjunction_impl::type 29724: { }; 29724: 29724: template<> 29724: struct disjunction<> 29724: : false_type 29724: { }; 29724: 29724: template 29724: struct negation 29724: : __not_<_Pp>::type 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool conjunction_v = conjunction<_Bn...>::value; 29724: 29724: template 29724: inline constexpr bool disjunction_v = disjunction<_Bn...>::value; 29724: 29724: template 29724: inline constexpr bool negation_v = negation<_Pp>::value; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_reference; 29724: template 29724: struct is_function; 29724: template 29724: struct is_void; 29724: template 29724: struct remove_cv; 29724: template 29724: struct is_const; 29724: 29724: 29724: template 29724: struct __is_array_unknown_bounds; 29724: 29724: 29724: 29724: 29724: template 29724: constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) 29724: { return {}; } 29724: 29724: template 29724: constexpr typename __or_< 29724: is_reference<_NestedType>, 29724: is_function<_NestedType>, 29724: is_void<_NestedType>, 29724: __is_array_unknown_bounds<_NestedType> 29724: >::type __is_complete_or_unbounded(_TypeIdentity) 29724: { return {}; } 29724: 29724: 29724: template 29724: using __remove_cv_t = typename remove_cv<_Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_void 29724: : public false_type { }; 29724: 29724: template<> 29724: struct is_void 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_void 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_void 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_void 29724: : public true_type { }; 29724: 29724: 29724: template 29724: struct __is_integral_helper 29724: : public false_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: # 460 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_integral 29724: : public __is_integral_helper<__remove_cv_t<_Tp>>::type 29724: { }; 29724: 29724: 29724: template 29724: struct __is_floating_point_helper 29724: : public false_type { }; 29724: 29724: template<> 29724: struct __is_floating_point_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_floating_point_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_floating_point_helper 29724: : public true_type { }; 29724: # 520 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_floating_point 29724: : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_array 29724: : public __bool_constant<__is_array(_Tp)> 29724: { }; 29724: # 545 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct __is_pointer_helper 29724: : public false_type { }; 29724: 29724: template 29724: struct __is_pointer_helper<_Tp*> 29724: : public true_type { }; 29724: 29724: 29724: template 29724: struct is_pointer 29724: : public __is_pointer_helper<__remove_cv_t<_Tp>>::type 29724: { }; 29724: 29724: 29724: template 29724: struct is_lvalue_reference 29724: : public false_type { }; 29724: 29724: template 29724: struct is_lvalue_reference<_Tp&> 29724: : public true_type { }; 29724: 29724: 29724: template 29724: struct is_rvalue_reference 29724: : public false_type { }; 29724: 29724: template 29724: struct is_rvalue_reference<_Tp&&> 29724: : public true_type { }; 29724: 29724: 29724: 29724: template 29724: struct is_member_object_pointer 29724: : public __bool_constant<__is_member_object_pointer(_Tp)> 29724: { }; 29724: # 601 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_member_function_pointer 29724: : public __bool_constant<__is_member_function_pointer(_Tp)> 29724: { }; 29724: # 622 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_enum 29724: : public __bool_constant<__is_enum(_Tp)> 29724: { }; 29724: 29724: 29724: template 29724: struct is_union 29724: : public __bool_constant<__is_union(_Tp)> 29724: { }; 29724: 29724: 29724: template 29724: struct is_class 29724: : public __bool_constant<__is_class(_Tp)> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_function 29724: : public __bool_constant<__is_function(_Tp)> 29724: { }; 29724: # 661 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_null_pointer 29724: : public false_type { }; 29724: 29724: template<> 29724: struct is_null_pointer 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_null_pointer 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_null_pointer 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_null_pointer 29724: : public true_type { }; 29724: 29724: 29724: 29724: template 29724: struct __is_nullptr_t 29724: : public is_null_pointer<_Tp> 29724: { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_reference 29724: : public __bool_constant<__is_reference(_Tp)> 29724: { }; 29724: # 715 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_arithmetic 29724: : public __or_, is_floating_point<_Tp>>::type 29724: { }; 29724: 29724: 29724: template 29724: struct is_fundamental 29724: : public __or_, is_void<_Tp>, 29724: is_null_pointer<_Tp>>::type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_object 29724: : public __bool_constant<__is_object(_Tp)> 29724: { }; 29724: # 741 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_member_pointer; 29724: 29724: 29724: template 29724: struct is_scalar 29724: : public __or_, is_enum<_Tp>, is_pointer<_Tp>, 29724: is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 29724: { }; 29724: 29724: 29724: template 29724: struct is_compound 29724: : public __bool_constant::value> { }; 29724: 29724: 29724: 29724: template 29724: struct is_member_pointer 29724: : public __bool_constant<__is_member_pointer(_Tp)> 29724: { }; 29724: # 779 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_same; 29724: 29724: 29724: template 29724: using __is_one_of = __or_...>; 29724: 29724: 29724: __extension__ 29724: template 29724: using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, 29724: signed char, signed short, signed int, signed long, 29724: signed long long 29724: # 804 "/usr/include/c++/14/type_traits" 3 29724: >; 29724: 29724: 29724: __extension__ 29724: template 29724: using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, 29724: unsigned char, unsigned short, unsigned int, unsigned long, 29724: unsigned long long 29724: # 824 "/usr/include/c++/14/type_traits" 3 29724: >; 29724: 29724: 29724: template 29724: using __is_standard_integer 29724: = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; 29724: 29724: 29724: template using __void_t = void; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_const 29724: : public false_type { }; 29724: 29724: template 29724: struct is_const<_Tp const> 29724: : public true_type { }; 29724: 29724: 29724: template 29724: struct is_volatile 29724: : public false_type { }; 29724: 29724: template 29724: struct is_volatile<_Tp volatile> 29724: : public true_type { }; 29724: 29724: 29724: template 29724: struct is_trivial 29724: : public __bool_constant<__is_trivial(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_copyable 29724: : public __bool_constant<__is_trivially_copyable(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_standard_layout 29724: : public __bool_constant<__is_standard_layout(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: 29724: is_pod 29724: : public __bool_constant<__is_pod(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: [[__deprecated__]] 29724: is_literal_type 29724: : public __bool_constant<__is_literal_type(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_empty 29724: : public __bool_constant<__is_empty(_Tp)> 29724: { }; 29724: 29724: 29724: template 29724: struct is_polymorphic 29724: : public __bool_constant<__is_polymorphic(_Tp)> 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct is_final 29724: : public __bool_constant<__is_final(_Tp)> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_abstract 29724: : public __bool_constant<__is_abstract(_Tp)> 29724: { }; 29724: 29724: 29724: template::value> 29724: struct __is_signed_helper 29724: : public false_type { }; 29724: 29724: template 29724: struct __is_signed_helper<_Tp, true> 29724: : public __bool_constant<_Tp(-1) < _Tp(0)> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_signed 29724: : public __is_signed_helper<_Tp>::type 29724: { }; 29724: 29724: 29724: template 29724: struct is_unsigned 29724: : public __and_, __not_>>::type 29724: { }; 29724: 29724: 29724: template 29724: _Up 29724: __declval(int); 29724: 29724: template 29724: _Tp 29724: __declval(long); 29724: 29724: 29724: template 29724: auto declval() noexcept -> decltype(__declval<_Tp>(0)); 29724: 29724: template 29724: struct remove_all_extents; 29724: 29724: 29724: template 29724: struct __is_array_known_bounds 29724: : public false_type 29724: { }; 29724: 29724: template 29724: struct __is_array_known_bounds<_Tp[_Size]> 29724: : public true_type 29724: { }; 29724: 29724: template 29724: struct __is_array_unknown_bounds 29724: : public false_type 29724: { }; 29724: 29724: template 29724: struct __is_array_unknown_bounds<_Tp[]> 29724: : public true_type 29724: { }; 29724: # 1006 "/usr/include/c++/14/type_traits" 3 29724: struct __do_is_destructible_impl 29724: { 29724: template().~_Tp())> 29724: static true_type __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: template 29724: struct __is_destructible_impl 29724: : public __do_is_destructible_impl 29724: { 29724: using type = decltype(__test<_Tp>(0)); 29724: }; 29724: 29724: template, 29724: __is_array_unknown_bounds<_Tp>, 29724: is_function<_Tp>>::value, 29724: bool = __or_, is_scalar<_Tp>>::value> 29724: struct __is_destructible_safe; 29724: 29724: template 29724: struct __is_destructible_safe<_Tp, false, false> 29724: : public __is_destructible_impl::type>::type 29724: { }; 29724: 29724: template 29724: struct __is_destructible_safe<_Tp, true, false> 29724: : public false_type { }; 29724: 29724: template 29724: struct __is_destructible_safe<_Tp, false, true> 29724: : public true_type { }; 29724: 29724: 29724: 29724: template 29724: struct is_destructible 29724: : public __is_destructible_safe<_Tp>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct __do_is_nt_destructible_impl 29724: { 29724: template 29724: static __bool_constant().~_Tp())> 29724: __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: template 29724: struct __is_nt_destructible_impl 29724: : public __do_is_nt_destructible_impl 29724: { 29724: using type = decltype(__test<_Tp>(0)); 29724: }; 29724: 29724: template, 29724: __is_array_unknown_bounds<_Tp>, 29724: is_function<_Tp>>::value, 29724: bool = __or_, is_scalar<_Tp>>::value> 29724: struct __is_nt_destructible_safe; 29724: 29724: template 29724: struct __is_nt_destructible_safe<_Tp, false, false> 29724: : public __is_nt_destructible_impl::type>::type 29724: { }; 29724: 29724: template 29724: struct __is_nt_destructible_safe<_Tp, true, false> 29724: : public false_type { }; 29724: 29724: template 29724: struct __is_nt_destructible_safe<_Tp, false, true> 29724: : public true_type { }; 29724: 29724: 29724: 29724: template 29724: struct is_nothrow_destructible 29724: : public __is_nt_destructible_safe<_Tp>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_constructible_impl 29724: = __bool_constant<__is_constructible(_Tp, _Args...)>; 29724: 29724: 29724: 29724: template 29724: struct is_constructible 29724: : public __is_constructible_impl<_Tp, _Args...> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_default_constructible 29724: : public __is_constructible_impl<_Tp> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct __add_lvalue_reference_helper 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct __add_lvalue_reference_helper<_Tp, __void_t<_Tp&>> 29724: { using type = _Tp&; }; 29724: 29724: template 29724: using __add_lval_ref_t = typename __add_lvalue_reference_helper<_Tp>::type; 29724: 29724: 29724: 29724: template 29724: struct is_copy_constructible 29724: : public __is_constructible_impl<_Tp, __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct __add_rvalue_reference_helper 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct __add_rvalue_reference_helper<_Tp, __void_t<_Tp&&>> 29724: { using type = _Tp&&; }; 29724: 29724: template 29724: using __add_rval_ref_t = typename __add_rvalue_reference_helper<_Tp>::type; 29724: 29724: 29724: 29724: template 29724: struct is_move_constructible 29724: : public __is_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_nothrow_constructible_impl 29724: = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; 29724: 29724: 29724: 29724: template 29724: struct is_nothrow_constructible 29724: : public __is_nothrow_constructible_impl<_Tp, _Args...> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_default_constructible 29724: : public __is_nothrow_constructible_impl<_Tp> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_copy_constructible 29724: : public __is_nothrow_constructible_impl<_Tp, __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_move_constructible 29724: : public __is_nothrow_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>; 29724: 29724: 29724: 29724: template 29724: struct is_assignable 29724: : public __is_assignable_impl<_Tp, _Up> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_copy_assignable 29724: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, 29724: __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_move_assignable 29724: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_nothrow_assignable_impl 29724: = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; 29724: 29724: 29724: 29724: template 29724: struct is_nothrow_assignable 29724: : public __is_nothrow_assignable_impl<_Tp, _Up> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_copy_assignable 29724: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 29724: __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_move_assignable 29724: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 29724: __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_trivially_constructible_impl 29724: = __bool_constant<__is_trivially_constructible(_Tp, _Args...)>; 29724: 29724: 29724: 29724: template 29724: struct is_trivially_constructible 29724: : public __is_trivially_constructible_impl<_Tp, _Args...> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_default_constructible 29724: : public __is_trivially_constructible_impl<_Tp> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: # 1319 "/usr/include/c++/14/type_traits" 3 29724: struct __do_is_implicitly_default_constructible_impl 29724: { 29724: template 29724: static void __helper(const _Tp&); 29724: 29724: template 29724: static true_type __test(const _Tp&, 29724: decltype(__helper({}))* = 0); 29724: 29724: static false_type __test(...); 29724: }; 29724: 29724: template 29724: struct __is_implicitly_default_constructible_impl 29724: : public __do_is_implicitly_default_constructible_impl 29724: { 29724: using type = decltype(__test(declval<_Tp>())); 29724: }; 29724: 29724: template 29724: struct __is_implicitly_default_constructible_safe 29724: : public __is_implicitly_default_constructible_impl<_Tp>::type 29724: { }; 29724: 29724: template 29724: struct __is_implicitly_default_constructible 29724: : public __and_<__is_constructible_impl<_Tp>, 29724: __is_implicitly_default_constructible_safe<_Tp>>::type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_trivially_copy_constructible 29724: : public __is_trivially_constructible_impl<_Tp, __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_move_constructible 29724: : public __is_trivially_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_trivially_assignable_impl 29724: = __bool_constant<__is_trivially_assignable(_Tp, _Up)>; 29724: 29724: 29724: 29724: template 29724: struct is_trivially_assignable 29724: : public __is_trivially_assignable_impl<_Tp, _Up> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_copy_assignable 29724: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 29724: __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_move_assignable 29724: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 29724: __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_destructible 29724: : public __and_<__is_destructible_safe<_Tp>, 29724: __bool_constant<__has_trivial_destructor(_Tp)>>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: template 29724: struct has_virtual_destructor 29724: : public __bool_constant<__has_virtual_destructor(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct alignment_of 29724: : public integral_constant 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct rank 29724: : public integral_constant { }; 29724: 29724: template 29724: struct rank<_Tp[_Size]> 29724: : public integral_constant::value> { }; 29724: 29724: template 29724: struct rank<_Tp[]> 29724: : public integral_constant::value> { }; 29724: 29724: 29724: template 29724: struct extent 29724: : public integral_constant { }; 29724: 29724: template 29724: struct extent<_Tp[_Size], 0> 29724: : public integral_constant { }; 29724: 29724: template 29724: struct extent<_Tp[_Size], _Uint> 29724: : public extent<_Tp, _Uint - 1>::type { }; 29724: 29724: template 29724: struct extent<_Tp[], 0> 29724: : public integral_constant { }; 29724: 29724: template 29724: struct extent<_Tp[], _Uint> 29724: : public extent<_Tp, _Uint - 1>::type { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_same 29724: : public __bool_constant<__is_same(_Tp, _Up)> 29724: { }; 29724: # 1491 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_base_of 29724: : public __bool_constant<__is_base_of(_Base, _Derived)> 29724: { }; 29724: 29724: 29724: template 29724: struct is_convertible 29724: : public __bool_constant<__is_convertible(_From, _To)> 29724: { }; 29724: # 1540 "/usr/include/c++/14/type_traits" 3 29724: template 29724: using __is_array_convertible 29724: = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; 29724: # 1600 "/usr/include/c++/14/type_traits" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++14-extensions" 29724: template 29724: struct __is_nothrow_new_constructible_impl 29724: : __bool_constant< 29724: noexcept(::new(std::declval()) _Tp(std::declval<_Args>()...)) 29724: > 29724: { }; 29724: 29724: template 29724: inline constexpr bool __is_nothrow_new_constructible 29724: = __and_, 29724: __is_nothrow_new_constructible_impl<_Tp, _Args...>>::value; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: template 29724: struct remove_const 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct remove_const<_Tp const> 29724: { using type = _Tp; }; 29724: 29724: 29724: template 29724: struct remove_volatile 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct remove_volatile<_Tp volatile> 29724: { using type = _Tp; }; 29724: 29724: 29724: 29724: template 29724: struct remove_cv 29724: { using type = __remove_cv(_Tp); }; 29724: # 1659 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct add_const 29724: { using type = _Tp const; }; 29724: 29724: 29724: template 29724: struct add_volatile 29724: { using type = _Tp volatile; }; 29724: 29724: 29724: template 29724: struct add_cv 29724: { using type = _Tp const volatile; }; 29724: 29724: 29724: 29724: template 29724: using remove_const_t = typename remove_const<_Tp>::type; 29724: 29724: 29724: template 29724: using remove_volatile_t = typename remove_volatile<_Tp>::type; 29724: 29724: 29724: template 29724: using remove_cv_t = typename remove_cv<_Tp>::type; 29724: 29724: 29724: template 29724: using add_const_t = typename add_const<_Tp>::type; 29724: 29724: 29724: template 29724: using add_volatile_t = typename add_volatile<_Tp>::type; 29724: 29724: 29724: template 29724: using add_cv_t = typename add_cv<_Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct remove_reference 29724: { using type = __remove_reference(_Tp); }; 29724: # 1721 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct add_lvalue_reference 29724: { using type = __add_lval_ref_t<_Tp>; }; 29724: 29724: 29724: template 29724: struct add_rvalue_reference 29724: { using type = __add_rval_ref_t<_Tp>; }; 29724: 29724: 29724: 29724: template 29724: using remove_reference_t = typename remove_reference<_Tp>::type; 29724: 29724: 29724: template 29724: using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; 29724: 29724: 29724: template 29724: using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __cv_selector; 29724: 29724: template 29724: struct __cv_selector<_Unqualified, false, false> 29724: { using __type = _Unqualified; }; 29724: 29724: template 29724: struct __cv_selector<_Unqualified, false, true> 29724: { using __type = volatile _Unqualified; }; 29724: 29724: template 29724: struct __cv_selector<_Unqualified, true, false> 29724: { using __type = const _Unqualified; }; 29724: 29724: template 29724: struct __cv_selector<_Unqualified, true, true> 29724: { using __type = const volatile _Unqualified; }; 29724: 29724: template::value, 29724: bool _IsVol = is_volatile<_Qualified>::value> 29724: class __match_cv_qualifiers 29724: { 29724: using __match = __cv_selector<_Unqualified, _IsConst, _IsVol>; 29724: 29724: public: 29724: using __type = typename __match::__type; 29724: }; 29724: 29724: 29724: template 29724: struct __make_unsigned 29724: { using __type = _Tp; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned char; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned char; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned short; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned int; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned long; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned long long; }; 29724: # 1834 "/usr/include/c++/14/type_traits" 3 29724: template::value, 29724: bool _IsEnum = __is_enum(_Tp)> 29724: class __make_unsigned_selector; 29724: 29724: template 29724: class __make_unsigned_selector<_Tp, true, false> 29724: { 29724: using __unsigned_type 29724: = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; 29724: 29724: public: 29724: using __type 29724: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 29724: }; 29724: 29724: class __make_unsigned_selector_base 29724: { 29724: protected: 29724: template struct _List { }; 29724: 29724: template 29724: struct _List<_Tp, _Up...> : _List<_Up...> 29724: { static constexpr size_t __size = sizeof(_Tp); }; 29724: 29724: template 29724: struct __select; 29724: 29724: template 29724: struct __select<_Sz, _List<_Uint, _UInts...>, true> 29724: { using __type = _Uint; }; 29724: 29724: template 29724: struct __select<_Sz, _List<_Uint, _UInts...>, false> 29724: : __select<_Sz, _List<_UInts...>> 29724: { }; 29724: }; 29724: 29724: 29724: template 29724: class __make_unsigned_selector<_Tp, false, true> 29724: : __make_unsigned_selector_base 29724: { 29724: 29724: using _UInts = _List; 29724: 29724: using __unsigned_type = typename __select::__type; 29724: 29724: public: 29724: using __type 29724: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct __make_unsigned 29724: { 29724: using __type 29724: = typename __make_unsigned_selector::__type; 29724: }; 29724: # 1908 "/usr/include/c++/14/type_traits" 3 29724: template<> 29724: struct __make_unsigned 29724: { 29724: using __type 29724: = typename __make_unsigned_selector::__type; 29724: }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { 29724: using __type 29724: = typename __make_unsigned_selector::__type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct make_unsigned 29724: { using type = typename __make_unsigned_selector<_Tp>::__type; }; 29724: 29724: 29724: template<> struct make_unsigned; 29724: template<> struct make_unsigned; 29724: template<> struct make_unsigned; 29724: template<> struct make_unsigned; 29724: 29724: 29724: 29724: 29724: template 29724: struct __make_signed 29724: { using __type = _Tp; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed char; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed char; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed short; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed int; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed long; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed long long; }; 29724: # 1994 "/usr/include/c++/14/type_traits" 3 29724: template::value, 29724: bool _IsEnum = __is_enum(_Tp)> 29724: class __make_signed_selector; 29724: 29724: template 29724: class __make_signed_selector<_Tp, true, false> 29724: { 29724: using __signed_type 29724: = typename __make_signed<__remove_cv_t<_Tp>>::__type; 29724: 29724: public: 29724: using __type 29724: = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; 29724: }; 29724: 29724: 29724: template 29724: class __make_signed_selector<_Tp, false, true> 29724: { 29724: using __unsigned_type = typename __make_unsigned_selector<_Tp>::__type; 29724: 29724: public: 29724: using __type = typename __make_signed_selector<__unsigned_type>::__type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct __make_signed 29724: { 29724: using __type 29724: = typename __make_signed_selector::__type; 29724: }; 29724: # 2040 "/usr/include/c++/14/type_traits" 3 29724: template<> 29724: struct __make_signed 29724: { 29724: using __type 29724: = typename __make_signed_selector::__type; 29724: }; 29724: 29724: template<> 29724: struct __make_signed 29724: { 29724: using __type 29724: = typename __make_signed_selector::__type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct make_signed 29724: { using type = typename __make_signed_selector<_Tp>::__type; }; 29724: 29724: 29724: template<> struct make_signed; 29724: template<> struct make_signed; 29724: template<> struct make_signed; 29724: template<> struct make_signed; 29724: 29724: 29724: 29724: template 29724: using make_signed_t = typename make_signed<_Tp>::type; 29724: 29724: 29724: template 29724: using make_unsigned_t = typename make_unsigned<_Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct remove_extent 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct remove_extent<_Tp[_Size]> 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct remove_extent<_Tp[]> 29724: { using type = _Tp; }; 29724: 29724: 29724: template 29724: struct remove_all_extents 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct remove_all_extents<_Tp[_Size]> 29724: { using type = typename remove_all_extents<_Tp>::type; }; 29724: 29724: template 29724: struct remove_all_extents<_Tp[]> 29724: { using type = typename remove_all_extents<_Tp>::type; }; 29724: 29724: 29724: 29724: template 29724: using remove_extent_t = typename remove_extent<_Tp>::type; 29724: 29724: 29724: template 29724: using remove_all_extents_t = typename remove_all_extents<_Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct remove_pointer 29724: { using type = __remove_pointer(_Tp); }; 29724: # 2139 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct __add_pointer_helper 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct __add_pointer_helper<_Tp, __void_t<_Tp*>> 29724: { using type = _Tp*; }; 29724: 29724: 29724: template 29724: struct add_pointer 29724: : public __add_pointer_helper<_Tp> 29724: { }; 29724: 29724: template 29724: struct add_pointer<_Tp&> 29724: { using type = _Tp*; }; 29724: 29724: template 29724: struct add_pointer<_Tp&&> 29724: { using type = _Tp*; }; 29724: 29724: 29724: 29724: template 29724: using remove_pointer_t = typename remove_pointer<_Tp>::type; 29724: 29724: 29724: template 29724: using add_pointer_t = typename add_pointer<_Tp>::type; 29724: 29724: 29724: template 29724: struct __aligned_storage_msa 29724: { 29724: union __type 29724: { 29724: unsigned char __data[_Len]; 29724: struct __attribute__((__aligned__)) { } __align; 29724: }; 29724: }; 29724: # 2194 "/usr/include/c++/14/type_traits" 3 29724: template::__type)> 29724: struct 29724: 29724: aligned_storage 29724: { 29724: union type 29724: { 29724: unsigned char __data[_Len]; 29724: struct __attribute__((__aligned__((_Align)))) { } __align; 29724: }; 29724: }; 29724: 29724: template 29724: struct __strictest_alignment 29724: { 29724: static const size_t _S_alignment = 0; 29724: static const size_t _S_size = 0; 29724: }; 29724: 29724: template 29724: struct __strictest_alignment<_Tp, _Types...> 29724: { 29724: static const size_t _S_alignment = 29724: alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment 29724: ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; 29724: static const size_t _S_size = 29724: sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size 29724: ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; 29724: }; 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: # 2240 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct 29724: 29724: aligned_union 29724: { 29724: private: 29724: static_assert(sizeof...(_Types) != 0, "At least one type is required"); 29724: 29724: using __strictest = __strictest_alignment<_Types...>; 29724: static const size_t _S_len = _Len > __strictest::_S_size 29724: ? _Len : __strictest::_S_size; 29724: public: 29724: 29724: static const size_t alignment_value = __strictest::_S_alignment; 29724: 29724: using type = typename aligned_storage<_S_len, alignment_value>::type; 29724: }; 29724: 29724: template 29724: const size_t aligned_union<_Len, _Types...>::alignment_value; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __decay_selector 29724: : __conditional_t::value, 29724: remove_cv<_Up>, 29724: add_pointer<_Up>> 29724: { }; 29724: 29724: template 29724: struct __decay_selector<_Up[_Nm]> 29724: { using type = _Up*; }; 29724: 29724: template 29724: struct __decay_selector<_Up[]> 29724: { using type = _Up*; }; 29724: 29724: 29724: 29724: 29724: template 29724: struct decay 29724: { using type = typename __decay_selector<_Tp>::type; }; 29724: 29724: template 29724: struct decay<_Tp&> 29724: { using type = typename __decay_selector<_Tp>::type; }; 29724: 29724: template 29724: struct decay<_Tp&&> 29724: { using type = typename __decay_selector<_Tp>::type; }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __strip_reference_wrapper 29724: { 29724: using __type = _Tp; 29724: }; 29724: 29724: template 29724: struct __strip_reference_wrapper > 29724: { 29724: using __type = _Tp&; 29724: }; 29724: 29724: 29724: template 29724: using __decay_t = typename decay<_Tp>::type; 29724: 29724: template 29724: using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: using _Require = __enable_if_t<__and_<_Cond...>::value>; 29724: 29724: 29724: template 29724: using __remove_cvref_t 29724: = typename remove_cv::type>::type; 29724: 29724: 29724: 29724: 29724: template 29724: struct conditional 29724: { using type = _Iftrue; }; 29724: 29724: 29724: template 29724: struct conditional 29724: { using type = _Iffalse; }; 29724: 29724: 29724: template 29724: struct common_type; 29724: # 2355 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct __success_type 29724: { using type = _Tp; }; 29724: 29724: struct __failure_type 29724: { }; 29724: 29724: struct __do_common_type_impl 29724: { 29724: template 29724: using __cond_t 29724: = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); 29724: 29724: 29724: 29724: template 29724: static __success_type<__decay_t<__cond_t<_Tp, _Up>>> 29724: _S_test(int); 29724: # 2382 "/usr/include/c++/14/type_traits" 3 29724: template 29724: static __failure_type 29724: _S_test_2(...); 29724: 29724: template 29724: static decltype(_S_test_2<_Tp, _Up>(0)) 29724: _S_test(...); 29724: }; 29724: 29724: 29724: template<> 29724: struct common_type<> 29724: { }; 29724: 29724: 29724: template 29724: struct common_type<_Tp0> 29724: : public common_type<_Tp0, _Tp0> 29724: { }; 29724: 29724: 29724: template, typename _Dp2 = __decay_t<_Tp2>> 29724: struct __common_type_impl 29724: { 29724: 29724: 29724: using type = common_type<_Dp1, _Dp2>; 29724: }; 29724: 29724: template 29724: struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> 29724: : private __do_common_type_impl 29724: { 29724: 29724: 29724: using type = decltype(_S_test<_Tp1, _Tp2>(0)); 29724: }; 29724: 29724: 29724: template 29724: struct common_type<_Tp1, _Tp2> 29724: : public __common_type_impl<_Tp1, _Tp2>::type 29724: { }; 29724: 29724: template 29724: struct __common_type_pack 29724: { }; 29724: 29724: template 29724: struct __common_type_fold; 29724: 29724: 29724: template 29724: struct common_type<_Tp1, _Tp2, _Rp...> 29724: : public __common_type_fold, 29724: __common_type_pack<_Rp...>> 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, 29724: __void_t> 29724: : public common_type 29724: { }; 29724: 29724: 29724: template 29724: struct __common_type_fold<_CTp, _Rp, void> 29724: { }; 29724: 29724: template 29724: struct __underlying_type_impl 29724: { 29724: using type = __underlying_type(_Tp); 29724: }; 29724: 29724: template 29724: struct __underlying_type_impl<_Tp, false> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct underlying_type 29724: : public __underlying_type_impl<_Tp> 29724: { }; 29724: 29724: 29724: template 29724: struct __declval_protector 29724: { 29724: static const bool __stop = false; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: auto declval() noexcept -> decltype(__declval<_Tp>(0)) 29724: { 29724: static_assert(__declval_protector<_Tp>::__stop, 29724: "declval() must not be used!"); 29724: return __declval<_Tp>(0); 29724: } 29724: 29724: 29724: template 29724: struct result_of; 29724: 29724: 29724: 29724: 29724: struct __invoke_memfun_ref { }; 29724: struct __invoke_memfun_deref { }; 29724: struct __invoke_memobj_ref { }; 29724: struct __invoke_memobj_deref { }; 29724: struct __invoke_other { }; 29724: 29724: 29724: template 29724: struct __result_of_success : __success_type<_Tp> 29724: { using __invoke_type = _Tag; }; 29724: 29724: 29724: struct __result_of_memfun_ref_impl 29724: { 29724: template 29724: static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) 29724: ), __invoke_memfun_ref> _S_test(int); 29724: 29724: template 29724: static __failure_type _S_test(...); 29724: }; 29724: 29724: template 29724: struct __result_of_memfun_ref 29724: : private __result_of_memfun_ref_impl 29724: { 29724: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 29724: }; 29724: 29724: 29724: struct __result_of_memfun_deref_impl 29724: { 29724: template 29724: static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) 29724: ), __invoke_memfun_deref> _S_test(int); 29724: 29724: template 29724: static __failure_type _S_test(...); 29724: }; 29724: 29724: template 29724: struct __result_of_memfun_deref 29724: : private __result_of_memfun_deref_impl 29724: { 29724: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 29724: }; 29724: 29724: 29724: struct __result_of_memobj_ref_impl 29724: { 29724: template 29724: static __result_of_success().*std::declval<_Fp>() 29724: ), __invoke_memobj_ref> _S_test(int); 29724: 29724: template 29724: static __failure_type _S_test(...); 29724: }; 29724: 29724: template 29724: struct __result_of_memobj_ref 29724: : private __result_of_memobj_ref_impl 29724: { 29724: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 29724: }; 29724: 29724: 29724: struct __result_of_memobj_deref_impl 29724: { 29724: template 29724: static __result_of_success()).*std::declval<_Fp>() 29724: ), __invoke_memobj_deref> _S_test(int); 29724: 29724: template 29724: static __failure_type _S_test(...); 29724: }; 29724: 29724: template 29724: struct __result_of_memobj_deref 29724: : private __result_of_memobj_deref_impl 29724: { 29724: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 29724: }; 29724: 29724: template 29724: struct __result_of_memobj; 29724: 29724: template 29724: struct __result_of_memobj<_Res _Class::*, _Arg> 29724: { 29724: using _Argval = __remove_cvref_t<_Arg>; 29724: using _MemPtr = _Res _Class::*; 29724: using type = typename __conditional_t<__or_, 29724: is_base_of<_Class, _Argval>>::value, 29724: __result_of_memobj_ref<_MemPtr, _Arg>, 29724: __result_of_memobj_deref<_MemPtr, _Arg> 29724: >::type; 29724: }; 29724: 29724: template 29724: struct __result_of_memfun; 29724: 29724: template 29724: struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> 29724: { 29724: using _Argval = typename remove_reference<_Arg>::type; 29724: using _MemPtr = _Res _Class::*; 29724: using type = typename __conditional_t::value, 29724: __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, 29724: __result_of_memfun_deref<_MemPtr, _Arg, _Args...> 29724: >::type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: struct __inv_unwrap 29724: { 29724: using type = _Tp; 29724: }; 29724: 29724: template 29724: struct __inv_unwrap<_Tp, reference_wrapper<_Up>> 29724: { 29724: using type = _Up&; 29724: }; 29724: 29724: template 29724: struct __result_of_impl 29724: { 29724: using type = __failure_type; 29724: }; 29724: 29724: template 29724: struct __result_of_impl 29724: : public __result_of_memobj<__decay_t<_MemPtr>, 29724: typename __inv_unwrap<_Arg>::type> 29724: { }; 29724: 29724: template 29724: struct __result_of_impl 29724: : public __result_of_memfun<__decay_t<_MemPtr>, 29724: typename __inv_unwrap<_Arg>::type, _Args...> 29724: { }; 29724: 29724: 29724: struct __result_of_other_impl 29724: { 29724: template 29724: static __result_of_success()(std::declval<_Args>()...) 29724: ), __invoke_other> _S_test(int); 29724: 29724: template 29724: static __failure_type _S_test(...); 29724: }; 29724: 29724: template 29724: struct __result_of_impl 29724: : private __result_of_other_impl 29724: { 29724: using type = decltype(_S_test<_Functor, _ArgTypes...>(0)); 29724: }; 29724: 29724: 29724: template 29724: struct __invoke_result 29724: : public __result_of_impl< 29724: is_member_object_pointer< 29724: typename remove_reference<_Functor>::type 29724: >::value, 29724: is_member_function_pointer< 29724: typename remove_reference<_Functor>::type 29724: >::value, 29724: _Functor, _ArgTypes... 29724: >::type 29724: { }; 29724: 29724: 29724: template 29724: using __invoke_result_t = typename __invoke_result<_Fn, _Args...>::type; 29724: 29724: 29724: template 29724: struct result_of<_Functor(_ArgTypes...)> 29724: : public __invoke_result<_Functor, _ArgTypes...> 29724: { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: template::__type)> 29724: using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; 29724: 29724: template 29724: using aligned_union_t = typename aligned_union<_Len, _Types...>::type; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: template 29724: using decay_t = typename decay<_Tp>::type; 29724: 29724: 29724: template 29724: using enable_if_t = typename enable_if<_Cond, _Tp>::type; 29724: 29724: 29724: template 29724: using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; 29724: 29724: 29724: template 29724: using common_type_t = typename common_type<_Tp...>::type; 29724: 29724: 29724: template 29724: using underlying_type_t = typename underlying_type<_Tp>::type; 29724: 29724: 29724: template 29724: using result_of_t = typename result_of<_Tp>::type; 29724: 29724: 29724: 29724: 29724: template using void_t = void; 29724: # 2759 "/usr/include/c++/14/type_traits" 3 29724: template class _Op, typename... _Args> 29724: struct __detector 29724: { 29724: using type = _Default; 29724: using __is_detected = false_type; 29724: }; 29724: 29724: 29724: template class _Op, 29724: typename... _Args> 29724: struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> 29724: { 29724: using type = _Op<_Args...>; 29724: using __is_detected = true_type; 29724: }; 29724: 29724: template class _Op, 29724: typename... _Args> 29724: using __detected_or = __detector<_Default, void, _Op, _Args...>; 29724: 29724: 29724: 29724: template class _Op, 29724: typename... _Args> 29724: using __detected_or_t 29724: = typename __detected_or<_Default, _Op, _Args...>::type; 29724: # 2801 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct __is_swappable; 29724: 29724: template 29724: struct __is_nothrow_swappable; 29724: 29724: template 29724: struct __is_tuple_like_impl : false_type 29724: { }; 29724: 29724: 29724: template 29724: struct __is_tuple_like 29724: : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type 29724: { }; 29724: 29724: 29724: template 29724: 29724: inline 29724: _Require<__not_<__is_tuple_like<_Tp>>, 29724: is_move_constructible<_Tp>, 29724: is_move_assignable<_Tp>> 29724: swap(_Tp&, _Tp&) 29724: noexcept(__and_, 29724: is_nothrow_move_assignable<_Tp>>::value); 29724: 29724: template 29724: 29724: inline 29724: __enable_if_t<__is_swappable<_Tp>::value> 29724: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 29724: noexcept(__is_nothrow_swappable<_Tp>::value); 29724: 29724: 29724: namespace __swappable_details { 29724: using std::swap; 29724: 29724: struct __do_is_swappable_impl 29724: { 29724: template(), std::declval<_Tp&>()))> 29724: static true_type __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: struct __do_is_nothrow_swappable_impl 29724: { 29724: template 29724: static __bool_constant< 29724: noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) 29724: > __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: } 29724: 29724: template 29724: struct __is_swappable_impl 29724: : public __swappable_details::__do_is_swappable_impl 29724: { 29724: using type = decltype(__test<_Tp>(0)); 29724: }; 29724: 29724: template 29724: struct __is_nothrow_swappable_impl 29724: : public __swappable_details::__do_is_nothrow_swappable_impl 29724: { 29724: using type = decltype(__test<_Tp>(0)); 29724: }; 29724: 29724: template 29724: struct __is_swappable 29724: : public __is_swappable_impl<_Tp>::type 29724: { }; 29724: 29724: template 29724: struct __is_nothrow_swappable 29724: : public __is_nothrow_swappable_impl<_Tp>::type 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_swappable 29724: : public __is_swappable_impl<_Tp>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_swappable 29724: : public __is_nothrow_swappable_impl<_Tp>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_swappable_v = 29724: is_swappable<_Tp>::value; 29724: 29724: 29724: template 29724: inline constexpr bool is_nothrow_swappable_v = 29724: is_nothrow_swappable<_Tp>::value; 29724: 29724: 29724: 29724: namespace __swappable_with_details { 29724: using std::swap; 29724: 29724: struct __do_is_swappable_with_impl 29724: { 29724: template(), std::declval<_Up>())), 29724: typename 29724: = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> 29724: static true_type __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: struct __do_is_nothrow_swappable_with_impl 29724: { 29724: template 29724: static __bool_constant< 29724: noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) 29724: && 29724: noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) 29724: > __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: } 29724: 29724: template 29724: struct __is_swappable_with_impl 29724: : public __swappable_with_details::__do_is_swappable_with_impl 29724: { 29724: using type = decltype(__test<_Tp, _Up>(0)); 29724: }; 29724: 29724: 29724: template 29724: struct __is_swappable_with_impl<_Tp&, _Tp&> 29724: : public __swappable_details::__do_is_swappable_impl 29724: { 29724: using type = decltype(__test<_Tp&>(0)); 29724: }; 29724: 29724: template 29724: struct __is_nothrow_swappable_with_impl 29724: : public __swappable_with_details::__do_is_nothrow_swappable_with_impl 29724: { 29724: using type = decltype(__test<_Tp, _Up>(0)); 29724: }; 29724: 29724: 29724: template 29724: struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> 29724: : public __swappable_details::__do_is_nothrow_swappable_impl 29724: { 29724: using type = decltype(__test<_Tp&>(0)); 29724: }; 29724: 29724: 29724: 29724: template 29724: struct is_swappable_with 29724: : public __is_swappable_with_impl<_Tp, _Up>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "first template argument must be a complete class or an unbounded array"); 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 29724: "second template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_swappable_with 29724: : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "first template argument must be a complete class or an unbounded array"); 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 29724: "second template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_swappable_with_v = 29724: is_swappable_with<_Tp, _Up>::value; 29724: 29724: 29724: template 29724: inline constexpr bool is_nothrow_swappable_with_v = 29724: is_nothrow_swappable_with<_Tp, _Up>::value; 29724: # 3023 "/usr/include/c++/14/type_traits" 3 29724: template::value, typename = void> 29724: struct __is_invocable_impl 29724: : false_type 29724: { 29724: using __nothrow_conv = false_type; 29724: }; 29724: 29724: 29724: template 29724: struct __is_invocable_impl<_Result, _Ret, 29724: true, 29724: __void_t> 29724: : true_type 29724: { 29724: using __nothrow_conv = true_type; 29724: }; 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 29724: 29724: template 29724: struct __is_invocable_impl<_Result, _Ret, 29724: false, 29724: __void_t> 29724: { 29724: private: 29724: 29724: using _Res_t = typename _Result::type; 29724: 29724: 29724: 29724: static _Res_t _S_get() noexcept; 29724: 29724: 29724: template 29724: static void _S_conv(__type_identity_t<_Tp>) noexcept; 29724: 29724: 29724: template(_S_get())), 29724: typename = decltype(_S_conv<_Tp>(_S_get())), 29724: 29724: bool _Dangle = __reference_converts_from_temporary(_Tp, _Res_t) 29724: 29724: 29724: 29724: > 29724: static __bool_constant<_Nothrow && !_Dangle> 29724: _S_test(int); 29724: 29724: template 29724: static false_type 29724: _S_test(...); 29724: 29724: public: 29724: 29724: using type = decltype(_S_test<_Ret, true>(1)); 29724: 29724: 29724: using __nothrow_conv = decltype(_S_test<_Ret>(1)); 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: template 29724: struct __is_invocable 29724: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 29724: { }; 29724: 29724: template 29724: constexpr bool __call_is_nt(__invoke_memfun_ref) 29724: { 29724: using _Up = typename __inv_unwrap<_Tp>::type; 29724: return noexcept((std::declval<_Up>().*std::declval<_Fn>())( 29724: std::declval<_Args>()...)); 29724: } 29724: 29724: template 29724: constexpr bool __call_is_nt(__invoke_memfun_deref) 29724: { 29724: return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( 29724: std::declval<_Args>()...)); 29724: } 29724: 29724: template 29724: constexpr bool __call_is_nt(__invoke_memobj_ref) 29724: { 29724: using _Up = typename __inv_unwrap<_Tp>::type; 29724: return noexcept(std::declval<_Up>().*std::declval<_Fn>()); 29724: } 29724: 29724: template 29724: constexpr bool __call_is_nt(__invoke_memobj_deref) 29724: { 29724: return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); 29724: } 29724: 29724: template 29724: constexpr bool __call_is_nt(__invoke_other) 29724: { 29724: return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); 29724: } 29724: 29724: template 29724: struct __call_is_nothrow 29724: : __bool_constant< 29724: std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) 29724: > 29724: { }; 29724: 29724: template 29724: using __call_is_nothrow_ 29724: = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; 29724: 29724: 29724: template 29724: struct __is_nothrow_invocable 29724: : __and_<__is_invocable<_Fn, _Args...>, 29724: __call_is_nothrow_<_Fn, _Args...>>::type 29724: { }; 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 29724: struct __nonesuchbase {}; 29724: struct __nonesuch : private __nonesuchbase { 29724: ~__nonesuch() = delete; 29724: __nonesuch(__nonesuch const&) = delete; 29724: void operator=(__nonesuch const&) = delete; 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: template 29724: struct invoke_result 29724: : public __invoke_result<_Functor, _ArgTypes...> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), 29724: "_Functor must be a complete class or an unbounded array"); 29724: static_assert((std::__is_complete_or_unbounded( 29724: __type_identity<_ArgTypes>{}) && ...), 29724: "each argument type must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; 29724: 29724: 29724: template 29724: struct is_invocable 29724: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29724: "_Fn must be a complete class or an unbounded array"); 29724: static_assert((std::__is_complete_or_unbounded( 29724: __type_identity<_ArgTypes>{}) && ...), 29724: "each argument type must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_invocable_r 29724: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29724: "_Fn must be a complete class or an unbounded array"); 29724: static_assert((std::__is_complete_or_unbounded( 29724: __type_identity<_ArgTypes>{}) && ...), 29724: "each argument type must be a complete class or an unbounded array"); 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 29724: "_Ret must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_invocable 29724: : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, 29724: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29724: "_Fn must be a complete class or an unbounded array"); 29724: static_assert((std::__is_complete_or_unbounded( 29724: __type_identity<_ArgTypes>{}) && ...), 29724: "each argument type must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: using __is_nt_invocable_impl 29724: = typename __is_invocable_impl<_Result, _Ret>::__nothrow_conv; 29724: 29724: 29724: 29724: template 29724: struct is_nothrow_invocable_r 29724: : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, 29724: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29724: "_Fn must be a complete class or an unbounded array"); 29724: static_assert((std::__is_complete_or_unbounded( 29724: __type_identity<_ArgTypes>{}) && ...), 29724: "each argument type must be a complete class or an unbounded array"); 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 29724: "_Ret must be a complete class or an unbounded array"); 29724: }; 29724: # 3251 "/usr/include/c++/14/type_traits" 3 29724: template 29724: inline constexpr bool is_void_v = is_void<_Tp>::value; 29724: template 29724: inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; 29724: template 29724: inline constexpr bool is_integral_v = is_integral<_Tp>::value; 29724: template 29724: inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; 29724: 29724: 29724: template 29724: inline constexpr bool is_array_v = __is_array(_Tp); 29724: # 3272 "/usr/include/c++/14/type_traits" 3 29724: template 29724: inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; 29724: template 29724: inline constexpr bool is_lvalue_reference_v = false; 29724: template 29724: inline constexpr bool is_lvalue_reference_v<_Tp&> = true; 29724: template 29724: inline constexpr bool is_rvalue_reference_v = false; 29724: template 29724: inline constexpr bool is_rvalue_reference_v<_Tp&&> = true; 29724: 29724: 29724: template 29724: inline constexpr bool is_member_object_pointer_v = 29724: __is_member_object_pointer(_Tp); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_member_function_pointer_v = 29724: __is_member_function_pointer(_Tp); 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_enum_v = __is_enum(_Tp); 29724: template 29724: inline constexpr bool is_union_v = __is_union(_Tp); 29724: template 29724: inline constexpr bool is_class_v = __is_class(_Tp); 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_reference_v = __is_reference(_Tp); 29724: # 3323 "/usr/include/c++/14/type_traits" 3 29724: template 29724: inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; 29724: template 29724: inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; 29724: 29724: 29724: template 29724: inline constexpr bool is_object_v = __is_object(_Tp); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; 29724: template 29724: inline constexpr bool is_compound_v = !is_fundamental_v<_Tp>; 29724: 29724: 29724: template 29724: inline constexpr bool is_member_pointer_v = __is_member_pointer(_Tp); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_const_v = false; 29724: template 29724: inline constexpr bool is_const_v = true; 29724: 29724: 29724: template 29724: inline constexpr bool is_function_v = __is_function(_Tp); 29724: # 3366 "/usr/include/c++/14/type_traits" 3 29724: template 29724: inline constexpr bool is_volatile_v = false; 29724: template 29724: inline constexpr bool is_volatile_v = true; 29724: 29724: template 29724: inline constexpr bool is_trivial_v = __is_trivial(_Tp); 29724: template 29724: inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(_Tp); 29724: template 29724: inline constexpr bool is_standard_layout_v = __is_standard_layout(_Tp); 29724: template 29724: 29724: inline constexpr bool is_pod_v = __is_pod(_Tp); 29724: template 29724: [[__deprecated__]] 29724: inline constexpr bool is_literal_type_v = __is_literal_type(_Tp); 29724: template 29724: inline constexpr bool is_empty_v = __is_empty(_Tp); 29724: template 29724: inline constexpr bool is_polymorphic_v = __is_polymorphic(_Tp); 29724: template 29724: inline constexpr bool is_abstract_v = __is_abstract(_Tp); 29724: template 29724: inline constexpr bool is_final_v = __is_final(_Tp); 29724: 29724: template 29724: inline constexpr bool is_signed_v = is_signed<_Tp>::value; 29724: template 29724: inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; 29724: 29724: template 29724: inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); 29724: template 29724: inline constexpr bool is_default_constructible_v = __is_constructible(_Tp); 29724: template 29724: inline constexpr bool is_copy_constructible_v 29724: = __is_constructible(_Tp, __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_move_constructible_v 29724: = __is_constructible(_Tp, __add_rval_ref_t<_Tp>); 29724: 29724: template 29724: inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up); 29724: template 29724: inline constexpr bool is_copy_assignable_v 29724: = __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_move_assignable_v 29724: = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 29724: 29724: template 29724: inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; 29724: 29724: template 29724: inline constexpr bool is_trivially_constructible_v 29724: = __is_trivially_constructible(_Tp, _Args...); 29724: template 29724: inline constexpr bool is_trivially_default_constructible_v 29724: = __is_trivially_constructible(_Tp); 29724: template 29724: inline constexpr bool is_trivially_copy_constructible_v 29724: = __is_trivially_constructible(_Tp, __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_trivially_move_constructible_v 29724: = __is_trivially_constructible(_Tp, __add_rval_ref_t<_Tp>); 29724: 29724: template 29724: inline constexpr bool is_trivially_assignable_v 29724: = __is_trivially_assignable(_Tp, _Up); 29724: template 29724: inline constexpr bool is_trivially_copy_assignable_v 29724: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 29724: __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_trivially_move_assignable_v 29724: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 29724: __add_rval_ref_t<_Tp>); 29724: # 3461 "/usr/include/c++/14/type_traits" 3 29724: template 29724: inline constexpr bool is_trivially_destructible_v = 29724: is_trivially_destructible<_Tp>::value; 29724: 29724: 29724: template 29724: inline constexpr bool is_nothrow_constructible_v 29724: = __is_nothrow_constructible(_Tp, _Args...); 29724: template 29724: inline constexpr bool is_nothrow_default_constructible_v 29724: = __is_nothrow_constructible(_Tp); 29724: template 29724: inline constexpr bool is_nothrow_copy_constructible_v 29724: = __is_nothrow_constructible(_Tp, __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_nothrow_move_constructible_v 29724: = __is_nothrow_constructible(_Tp, __add_rval_ref_t<_Tp>); 29724: 29724: template 29724: inline constexpr bool is_nothrow_assignable_v 29724: = __is_nothrow_assignable(_Tp, _Up); 29724: template 29724: inline constexpr bool is_nothrow_copy_assignable_v 29724: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, 29724: __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_nothrow_move_assignable_v 29724: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 29724: 29724: template 29724: inline constexpr bool is_nothrow_destructible_v = 29724: is_nothrow_destructible<_Tp>::value; 29724: 29724: template 29724: inline constexpr bool has_virtual_destructor_v 29724: = __has_virtual_destructor(_Tp); 29724: 29724: template 29724: inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; 29724: 29724: template 29724: inline constexpr size_t rank_v = 0; 29724: template 29724: inline constexpr size_t rank_v<_Tp[_Size]> = 1 + rank_v<_Tp>; 29724: template 29724: inline constexpr size_t rank_v<_Tp[]> = 1 + rank_v<_Tp>; 29724: 29724: template 29724: inline constexpr size_t extent_v = 0; 29724: template 29724: inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size; 29724: template 29724: inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>; 29724: template 29724: inline constexpr size_t extent_v<_Tp[], 0> = 0; 29724: template 29724: inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>; 29724: 29724: 29724: template 29724: inline constexpr bool is_same_v = __is_same(_Tp, _Up); 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); 29724: 29724: template 29724: inline constexpr bool is_convertible_v = __is_convertible(_From, _To); 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; 29724: template 29724: inline constexpr bool is_nothrow_invocable_v 29724: = is_nothrow_invocable<_Fn, _Args...>::value; 29724: template 29724: inline constexpr bool is_invocable_r_v 29724: = is_invocable_r<_Ret, _Fn, _Args...>::value; 29724: template 29724: inline constexpr bool is_nothrow_invocable_r_v 29724: = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct has_unique_object_representations 29724: : bool_constant<__has_unique_object_representations( 29724: remove_cv_t> 29724: )> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: template 29724: inline constexpr bool has_unique_object_representations_v 29724: = has_unique_object_representations<_Tp>::value; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_aggregate 29724: : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<_Tp>); 29724: # 4017 "/usr/include/c++/14/type_traits" 3 29724: 29724: } 29724: # 38 "/usr/include/c++/14/bits/move.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr _Tp* 29724: __addressof(_Tp& __r) noexcept 29724: { return __builtin_addressof(__r); } 29724: # 68 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: [[__nodiscard__]] 29724: constexpr _Tp&& 29724: forward(typename std::remove_reference<_Tp>::type& __t) noexcept 29724: { return static_cast<_Tp&&>(__t); } 29724: # 81 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: [[__nodiscard__]] 29724: constexpr _Tp&& 29724: forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 29724: { 29724: static_assert(!std::is_lvalue_reference<_Tp>::value, 29724: "std::forward must not be used to convert an rvalue to an lvalue"); 29724: return static_cast<_Tp&&>(__t); 29724: } 29724: # 134 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: [[__nodiscard__]] 29724: constexpr typename std::remove_reference<_Tp>::type&& 29724: move(_Tp&& __t) noexcept 29724: { return static_cast::type&&>(__t); } 29724: 29724: 29724: template 29724: struct __move_if_noexcept_cond 29724: : public __and_<__not_>, 29724: is_copy_constructible<_Tp>>::type { }; 29724: # 155 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: [[__nodiscard__]] 29724: constexpr 29724: __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> 29724: move_if_noexcept(_Tp& __x) noexcept 29724: { return std::move(__x); } 29724: # 172 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr _Tp* 29724: addressof(_Tp& __r) noexcept 29724: { return std::__addressof(__r); } 29724: 29724: 29724: 29724: template 29724: const _Tp* addressof(const _Tp&&) = delete; 29724: 29724: 29724: template 29724: 29724: inline _Tp 29724: __exchange(_Tp& __obj, _Up&& __new_val) 29724: { 29724: _Tp __old_val = std::move(__obj); 29724: __obj = std::forward<_Up>(__new_val); 29724: return __old_val; 29724: } 29724: # 216 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: 29724: inline 29724: 29724: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 29724: is_move_constructible<_Tp>, 29724: is_move_assignable<_Tp>>::value>::type 29724: 29724: 29724: 29724: swap(_Tp& __a, _Tp& __b) 29724: noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value) 29724: 29724: { 29724: 29724: 29724: 29724: 29724: _Tp __tmp = std::move(__a); 29724: __a = std::move(__b); 29724: __b = std::move(__tmp); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline 29724: 29724: typename enable_if<__is_swappable<_Tp>::value>::type 29724: 29724: 29724: 29724: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 29724: noexcept(__is_nothrow_swappable<_Tp>::value) 29724: { 29724: for (size_t __n = 0; __n < _Nm; ++__n) 29724: swap(__a[__n], __b[__n]); 29724: } 29724: 29724: 29724: 29724: } 29724: # 40 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29724: # 49 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 50 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 81 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: enum memory_order : int 29724: { 29724: memory_order_relaxed, 29724: memory_order_consume, 29724: memory_order_acquire, 29724: memory_order_release, 29724: memory_order_acq_rel, 29724: memory_order_seq_cst 29724: }; 29724: 29724: 29724: 29724: enum __memory_order_modifier 29724: { 29724: __memory_order_mask = 0x0ffff, 29724: __memory_order_modifier_mask = 0xffff0000, 29724: __memory_order_hle_acquire = 0x10000, 29724: __memory_order_hle_release = 0x20000 29724: }; 29724: 29724: 29724: constexpr memory_order 29724: operator|(memory_order __m, __memory_order_modifier __mod) noexcept 29724: { 29724: return memory_order(int(__m) | int(__mod)); 29724: } 29724: 29724: constexpr memory_order 29724: operator&(memory_order __m, __memory_order_modifier __mod) noexcept 29724: { 29724: return memory_order(int(__m) & int(__mod)); 29724: } 29724: 29724: 29724: 29724: 29724: constexpr memory_order 29724: __cmpexch_failure_order2(memory_order __m) noexcept 29724: { 29724: return __m == memory_order_acq_rel ? memory_order_acquire 29724: : __m == memory_order_release ? memory_order_relaxed : __m; 29724: } 29724: 29724: constexpr memory_order 29724: __cmpexch_failure_order(memory_order __m) noexcept 29724: { 29724: return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) 29724: | __memory_order_modifier(__m & __memory_order_modifier_mask)); 29724: } 29724: 29724: constexpr bool 29724: __is_valid_cmpexch_failure_order(memory_order __m) noexcept 29724: { 29724: return (__m & __memory_order_mask) != memory_order_release 29724: && (__m & __memory_order_mask) != memory_order_acq_rel; 29724: } 29724: 29724: 29724: template 29724: struct __atomic_base; 29724: 29724: 29724: 29724: inline __attribute__((__always_inline__)) void 29724: atomic_thread_fence(memory_order __m) noexcept 29724: { __atomic_thread_fence(int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: atomic_signal_fence(memory_order __m) noexcept 29724: { __atomic_signal_fence(int(__m)); } 29724: 29724: 29724: template 29724: inline _Tp 29724: kill_dependency(_Tp __y) noexcept 29724: { 29724: _Tp __ret(__y); 29724: return __ret; 29724: } 29724: # 171 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: template 29724: struct atomic; 29724: 29724: template 29724: struct atomic<_Tp*>; 29724: 29724: 29724: 29724: typedef bool __atomic_flag_data_type; 29724: # 196 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: extern "C" { 29724: 29724: struct __atomic_flag_base 29724: { 29724: __atomic_flag_data_type _M_i ; 29724: }; 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct atomic_flag : public __atomic_flag_base 29724: { 29724: atomic_flag() noexcept = default; 29724: ~atomic_flag() noexcept = default; 29724: atomic_flag(const atomic_flag&) = delete; 29724: atomic_flag& operator=(const atomic_flag&) = delete; 29724: atomic_flag& operator=(const atomic_flag&) volatile = delete; 29724: 29724: 29724: constexpr atomic_flag(bool __i) noexcept 29724: : __atomic_flag_base{ _S_init(__i) } 29724: { } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: test_and_set(memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return __atomic_test_and_set (&_M_i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return __atomic_test_and_set (&_M_i, int(__m)); 29724: } 29724: # 280 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: inline __attribute__((__always_inline__)) void 29724: clear(memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_clear (&_M_i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: clear(memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_clear (&_M_i, int(__m)); 29724: } 29724: 29724: private: 29724: static constexpr __atomic_flag_data_type 29724: _S_init(bool __i) 29724: { return __i ? 1 : 0; } 29724: }; 29724: # 336 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: template 29724: struct __atomic_base 29724: { 29724: using value_type = _ITp; 29724: using difference_type = value_type; 29724: 29724: private: 29724: typedef _ITp __int_type; 29724: 29724: static constexpr int _S_alignment = 29724: sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); 29724: 29724: alignas(_S_alignment) __int_type _M_i ; 29724: 29724: public: 29724: __atomic_base() noexcept = default; 29724: ~__atomic_base() noexcept = default; 29724: __atomic_base(const __atomic_base&) = delete; 29724: __atomic_base& operator=(const __atomic_base&) = delete; 29724: __atomic_base& operator=(const __atomic_base&) volatile = delete; 29724: 29724: 29724: constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } 29724: 29724: operator __int_type() const noexcept 29724: { return load(); } 29724: 29724: operator __int_type() const volatile noexcept 29724: { return load(); } 29724: 29724: __int_type 29724: operator=(__int_type __i) noexcept 29724: { 29724: store(__i); 29724: return __i; 29724: } 29724: 29724: __int_type 29724: operator=(__int_type __i) volatile noexcept 29724: { 29724: store(__i); 29724: return __i; 29724: } 29724: 29724: __int_type 29724: operator++(int) noexcept 29724: { return fetch_add(1); } 29724: 29724: __int_type 29724: operator++(int) volatile noexcept 29724: { return fetch_add(1); } 29724: 29724: __int_type 29724: operator--(int) noexcept 29724: { return fetch_sub(1); } 29724: 29724: __int_type 29724: operator--(int) volatile noexcept 29724: { return fetch_sub(1); } 29724: 29724: __int_type 29724: operator++() noexcept 29724: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator++() volatile noexcept 29724: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator--() noexcept 29724: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator--() volatile noexcept 29724: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator+=(__int_type __i) noexcept 29724: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator+=(__int_type __i) volatile noexcept 29724: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator-=(__int_type __i) noexcept 29724: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator-=(__int_type __i) volatile noexcept 29724: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator&=(__int_type __i) noexcept 29724: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator&=(__int_type __i) volatile noexcept 29724: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator|=(__int_type __i) noexcept 29724: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator|=(__int_type __i) volatile noexcept 29724: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator^=(__int_type __i) noexcept 29724: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator^=(__int_type __i) volatile noexcept 29724: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: bool 29724: is_lock_free() const noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_i), 29724: reinterpret_cast(-_S_alignment)); 29724: } 29724: 29724: bool 29724: is_lock_free() const volatile noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_i), 29724: reinterpret_cast(-_S_alignment)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_store_n(&_M_i, __i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: store(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_store_n(&_M_i, __i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: load(memory_order __m = memory_order_seq_cst) const noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_load_n(&_M_i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_load_n(&_M_i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: exchange(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return __atomic_exchange_n(&_M_i, __i, int(__m)); 29724: } 29724: 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: exchange(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return __atomic_exchange_n(&_M_i, __i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29724: memory_order __m1, memory_order __m2) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return compare_exchange_weak(__i1, __i2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return compare_exchange_weak(__i1, __i2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29724: memory_order __m1, memory_order __m2) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return compare_exchange_strong(__i1, __i2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return compare_exchange_strong(__i1, __i2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: # 628 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_add(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_add(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_sub(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_sub(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_and(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_and(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_or(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_or(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_xor(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_xor(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __atomic_base<_PTp*> 29724: { 29724: private: 29724: typedef _PTp* __pointer_type; 29724: 29724: __pointer_type _M_p ; 29724: 29724: 29724: constexpr ptrdiff_t 29724: _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } 29724: 29724: constexpr ptrdiff_t 29724: _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } 29724: 29724: public: 29724: __atomic_base() noexcept = default; 29724: ~__atomic_base() noexcept = default; 29724: __atomic_base(const __atomic_base&) = delete; 29724: __atomic_base& operator=(const __atomic_base&) = delete; 29724: __atomic_base& operator=(const __atomic_base&) volatile = delete; 29724: 29724: 29724: constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } 29724: 29724: operator __pointer_type() const noexcept 29724: { return load(); } 29724: 29724: operator __pointer_type() const volatile noexcept 29724: { return load(); } 29724: 29724: __pointer_type 29724: operator=(__pointer_type __p) noexcept 29724: { 29724: store(__p); 29724: return __p; 29724: } 29724: 29724: __pointer_type 29724: operator=(__pointer_type __p) volatile noexcept 29724: { 29724: store(__p); 29724: return __p; 29724: } 29724: 29724: __pointer_type 29724: operator++(int) noexcept 29724: { return fetch_add(1); } 29724: 29724: __pointer_type 29724: operator++(int) volatile noexcept 29724: { return fetch_add(1); } 29724: 29724: __pointer_type 29724: operator--(int) noexcept 29724: { return fetch_sub(1); } 29724: 29724: __pointer_type 29724: operator--(int) volatile noexcept 29724: { return fetch_sub(1); } 29724: 29724: __pointer_type 29724: operator++() noexcept 29724: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator++() volatile noexcept 29724: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator--() noexcept 29724: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator--() volatile noexcept 29724: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator+=(ptrdiff_t __d) noexcept 29724: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator+=(ptrdiff_t __d) volatile noexcept 29724: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator-=(ptrdiff_t __d) noexcept 29724: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator-=(ptrdiff_t __d) volatile noexcept 29724: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 29724: int(memory_order_seq_cst)); } 29724: 29724: bool 29724: is_lock_free() const noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_p), 29724: reinterpret_cast(-__alignof(_M_p))); 29724: } 29724: 29724: bool 29724: is_lock_free() const volatile noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_p), 29724: reinterpret_cast(-__alignof(_M_p))); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: store(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_store_n(&_M_p, __p, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: store(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_store_n(&_M_p, __p, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: load(memory_order __m = memory_order_seq_cst) const noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_load_n(&_M_p, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_load_n(&_M_p, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: exchange(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return __atomic_exchange_n(&_M_p, __p, int(__m)); 29724: } 29724: 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: exchange(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return __atomic_exchange_n(&_M_p, __p, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 29724: int(__m1), int(__m2)); 29724: } 29724: # 931 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: fetch_add(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: fetch_add(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: fetch_sub(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: fetch_sub(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 29724: }; 29724: 29724: namespace __atomic_impl 29724: { 29724: 29724: 29724: template 29724: constexpr bool 29724: __maybe_has_padding() 29724: { 29724: 29724: 29724: 29724: return !__has_unique_object_representations(_Tp) 29724: && !is_same<_Tp, float>::value && !is_same<_Tp, double>::value; 29724: 29724: 29724: 29724: } 29724: 29724: template 29724: inline __attribute__((__always_inline__)) constexpr _Tp* 29724: __clear_padding(_Tp& __val) noexcept 29724: { 29724: auto* __ptr = std::__addressof(__val); 29724: 29724: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 29724: __builtin_clear_padding(__ptr); 29724: 29724: return __ptr; 29724: } 29724: 29724: 29724: template 29724: using _Val = typename remove_volatile<_Tp>::type; 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: 29724: template 29724: inline __attribute__((__always_inline__)) bool 29724: __compare_exchange(_Tp& __val, _Val<_Tp>& __e, _Val<_Tp>& __i, 29724: bool __is_weak, 29724: memory_order __s, memory_order __f) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: using _Vp = _Val<_Tp>; 29724: _Tp* const __pval = std::__addressof(__val); 29724: 29724: if constexpr (!__atomic_impl::__maybe_has_padding<_Vp>()) 29724: { 29724: return __atomic_compare_exchange(__pval, std::__addressof(__e), 29724: std::__addressof(__i), __is_weak, 29724: int(__s), int(__f)); 29724: } 29724: else if constexpr (!_AtomicRef) 29724: { 29724: 29724: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 29724: 29724: _Vp __exp = __e; 29724: 29724: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 29724: 29724: 29724: 29724: if (__atomic_compare_exchange(__pval, __pexp, __pi, 29724: __is_weak, int(__s), int(__f))) 29724: return true; 29724: 29724: __builtin_memcpy(std::__addressof(__e), __pexp, sizeof(_Vp)); 29724: return false; 29724: } 29724: else 29724: { 29724: 29724: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 29724: 29724: 29724: _Vp __exp = __e; 29724: 29724: 29724: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 29724: # 1045 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: while (true) 29724: { 29724: 29724: _Vp __orig = __exp; 29724: 29724: if (__atomic_compare_exchange(__pval, __pexp, __pi, 29724: __is_weak, int(__s), int(__f))) 29724: return true; 29724: 29724: 29724: _Vp __curr = __exp; 29724: 29724: 29724: if (__builtin_memcmp(__atomic_impl::__clear_padding(__orig), 29724: __atomic_impl::__clear_padding(__curr), 29724: sizeof(_Vp))) 29724: { 29724: 29724: __builtin_memcpy(std::__addressof(__e), __pexp, 29724: sizeof(_Vp)); 29724: return false; 29724: } 29724: } 29724: } 29724: } 29724: #pragma GCC diagnostic pop 29724: } 29724: # 2065 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: 29724: } 29724: # 51 "/usr/include/c++/14/atomic" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct atomic; 29724: 29724: 29724: 29724: template<> 29724: struct atomic 29724: { 29724: using value_type = bool; 29724: 29724: private: 29724: __atomic_base _M_base; 29724: 29724: public: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(bool __i) noexcept : _M_base(__i) { } 29724: 29724: bool 29724: operator=(bool __i) noexcept 29724: { return _M_base.operator=(__i); } 29724: 29724: bool 29724: operator=(bool __i) volatile noexcept 29724: { return _M_base.operator=(__i); } 29724: 29724: operator bool() const noexcept 29724: { return _M_base.load(); } 29724: 29724: operator bool() const volatile noexcept 29724: { return _M_base.load(); } 29724: 29724: bool 29724: is_lock_free() const noexcept { return _M_base.is_lock_free(); } 29724: 29724: bool 29724: is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: 29724: void 29724: store(bool __i, memory_order __m = memory_order_seq_cst) noexcept 29724: { _M_base.store(__i, __m); } 29724: 29724: void 29724: store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { _M_base.store(__i, __m); } 29724: 29724: bool 29724: load(memory_order __m = memory_order_seq_cst) const noexcept 29724: { return _M_base.load(__m); } 29724: 29724: bool 29724: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29724: { return _M_base.load(__m); } 29724: 29724: bool 29724: exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept 29724: { return _M_base.exchange(__i, __m); } 29724: 29724: bool 29724: exchange(bool __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return _M_base.exchange(__i, __m); } 29724: 29724: bool 29724: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_weak(bool& __i1, bool __i2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 29724: 29724: bool 29724: compare_exchange_weak(bool& __i1, bool __i2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 29724: 29724: bool 29724: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_strong(bool& __i1, bool __i2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 29724: 29724: bool 29724: compare_exchange_strong(bool& __i1, bool __i2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 29724: # 187 "/usr/include/c++/14/atomic" 3 29724: }; 29724: # 202 "/usr/include/c++/14/atomic" 3 29724: template 29724: struct atomic 29724: { 29724: using value_type = _Tp; 29724: 29724: private: 29724: 29724: static constexpr int _S_min_alignment 29724: = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 29724: ? 0 : sizeof(_Tp); 29724: 29724: static constexpr int _S_alignment 29724: = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); 29724: 29724: alignas(_S_alignment) _Tp _M_i ; 29724: 29724: static_assert(__is_trivially_copyable(_Tp), 29724: "std::atomic requires a trivially copyable type"); 29724: 29724: static_assert(sizeof(_Tp) > 0, 29724: "Incomplete or zero-sized types are not supported"); 29724: # 231 "/usr/include/c++/14/atomic" 3 29724: public: 29724: atomic() = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(_Tp __i) noexcept : _M_i(__i) 29724: { 29724: 29724: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 29724: __builtin_clear_padding(std::__addressof(_M_i)); 29724: 29724: } 29724: 29724: operator _Tp() const noexcept 29724: { return load(); } 29724: 29724: operator _Tp() const volatile noexcept 29724: { return load(); } 29724: 29724: _Tp 29724: operator=(_Tp __i) noexcept 29724: { store(__i); return __i; } 29724: 29724: _Tp 29724: operator=(_Tp __i) volatile noexcept 29724: { store(__i); return __i; } 29724: 29724: bool 29724: is_lock_free() const noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_i), 29724: reinterpret_cast(-_S_alignment)); 29724: } 29724: 29724: bool 29724: is_lock_free() const volatile noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_i), 29724: reinterpret_cast(-_S_alignment)); 29724: } 29724: 29724: 29724: static constexpr bool is_always_lock_free 29724: = __atomic_always_lock_free(sizeof(_M_i), 0); 29724: 29724: 29724: void 29724: store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: __atomic_store(std::__addressof(_M_i), 29724: __atomic_impl::__clear_padding(__i), 29724: int(__m)); 29724: } 29724: 29724: void 29724: store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: __atomic_store(std::__addressof(_M_i), 29724: __atomic_impl::__clear_padding(__i), 29724: int(__m)); 29724: } 29724: 29724: _Tp 29724: load(memory_order __m = memory_order_seq_cst) const noexcept 29724: { 29724: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29724: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29724: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 29724: return *__ptr; 29724: } 29724: 29724: _Tp 29724: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29724: { 29724: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29724: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29724: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 29724: return *__ptr; 29724: } 29724: 29724: _Tp 29724: exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29724: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29724: __atomic_exchange(std::__addressof(_M_i), 29724: __atomic_impl::__clear_padding(__i), 29724: __ptr, int(__m)); 29724: return *__ptr; 29724: } 29724: 29724: _Tp 29724: exchange(_Tp __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29724: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29724: __atomic_exchange(std::__addressof(_M_i), 29724: __atomic_impl::__clear_padding(__i), 29724: __ptr, int(__m)); 29724: return *__ptr; 29724: } 29724: 29724: bool 29724: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 29724: memory_order __f) noexcept 29724: { 29724: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 29724: __s, __f); 29724: } 29724: 29724: bool 29724: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 29724: memory_order __f) volatile noexcept 29724: { 29724: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 29724: __s, __f); 29724: } 29724: 29724: bool 29724: compare_exchange_weak(_Tp& __e, _Tp __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return compare_exchange_weak(__e, __i, __m, 29724: __cmpexch_failure_order(__m)); } 29724: 29724: bool 29724: compare_exchange_weak(_Tp& __e, _Tp __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return compare_exchange_weak(__e, __i, __m, 29724: __cmpexch_failure_order(__m)); } 29724: 29724: bool 29724: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 29724: memory_order __f) noexcept 29724: { 29724: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 29724: __s, __f); 29724: } 29724: 29724: bool 29724: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 29724: memory_order __f) volatile noexcept 29724: { 29724: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 29724: __s, __f); 29724: } 29724: 29724: bool 29724: compare_exchange_strong(_Tp& __e, _Tp __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return compare_exchange_strong(__e, __i, __m, 29724: __cmpexch_failure_order(__m)); } 29724: 29724: bool 29724: compare_exchange_strong(_Tp& __e, _Tp __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return compare_exchange_strong(__e, __i, __m, 29724: __cmpexch_failure_order(__m)); } 29724: # 413 "/usr/include/c++/14/atomic" 3 29724: }; 29724: 29724: 29724: 29724: template 29724: struct atomic<_Tp*> 29724: { 29724: using value_type = _Tp*; 29724: using difference_type = ptrdiff_t; 29724: 29724: typedef _Tp* __pointer_type; 29724: typedef __atomic_base<_Tp*> __base_type; 29724: __base_type _M_b; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } 29724: 29724: operator __pointer_type() const noexcept 29724: { return __pointer_type(_M_b); } 29724: 29724: operator __pointer_type() const volatile noexcept 29724: { return __pointer_type(_M_b); } 29724: 29724: __pointer_type 29724: operator=(__pointer_type __p) noexcept 29724: { return _M_b.operator=(__p); } 29724: 29724: __pointer_type 29724: operator=(__pointer_type __p) volatile noexcept 29724: { return _M_b.operator=(__p); } 29724: 29724: __pointer_type 29724: operator++(int) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b++; 29724: } 29724: 29724: __pointer_type 29724: operator++(int) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b++; 29724: } 29724: 29724: __pointer_type 29724: operator--(int) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b--; 29724: } 29724: 29724: __pointer_type 29724: operator--(int) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b--; 29724: } 29724: 29724: __pointer_type 29724: operator++() noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return ++_M_b; 29724: } 29724: 29724: __pointer_type 29724: operator++() volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return ++_M_b; 29724: } 29724: 29724: __pointer_type 29724: operator--() noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return --_M_b; 29724: } 29724: 29724: __pointer_type 29724: operator--() volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return --_M_b; 29724: } 29724: 29724: __pointer_type 29724: operator+=(ptrdiff_t __d) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.operator+=(__d); 29724: } 29724: 29724: __pointer_type 29724: operator+=(ptrdiff_t __d) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.operator+=(__d); 29724: } 29724: 29724: __pointer_type 29724: operator-=(ptrdiff_t __d) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.operator-=(__d); 29724: } 29724: 29724: __pointer_type 29724: operator-=(ptrdiff_t __d) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.operator-=(__d); 29724: } 29724: 29724: bool 29724: is_lock_free() const noexcept 29724: { return _M_b.is_lock_free(); } 29724: 29724: bool 29724: is_lock_free() const volatile noexcept 29724: { return _M_b.is_lock_free(); } 29724: 29724: 29724: static constexpr bool is_always_lock_free 29724: = 2 == 2; 29724: 29724: 29724: void 29724: store(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return _M_b.store(__p, __m); } 29724: 29724: void 29724: store(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return _M_b.store(__p, __m); } 29724: 29724: __pointer_type 29724: load(memory_order __m = memory_order_seq_cst) const noexcept 29724: { return _M_b.load(__m); } 29724: 29724: __pointer_type 29724: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29724: { return _M_b.load(__m); } 29724: 29724: __pointer_type 29724: exchange(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return _M_b.exchange(__p, __m); } 29724: 29724: __pointer_type 29724: exchange(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return _M_b.exchange(__p, __m); } 29724: 29724: bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, memory_order __m2) noexcept 29724: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return compare_exchange_weak(__p1, __p2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return compare_exchange_weak(__p1, __p2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, memory_order __m2) noexcept 29724: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return _M_b.compare_exchange_strong(__p1, __p2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return _M_b.compare_exchange_strong(__p1, __p2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: # 668 "/usr/include/c++/14/atomic" 3 29724: __pointer_type 29724: fetch_add(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.fetch_add(__d, __m); 29724: } 29724: 29724: __pointer_type 29724: fetch_add(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.fetch_add(__d, __m); 29724: } 29724: 29724: __pointer_type 29724: fetch_sub(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.fetch_sub(__d, __m); 29724: } 29724: 29724: __pointer_type 29724: fetch_sub(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.fetch_sub(__d, __m); 29724: } 29724: }; 29724: 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef char __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef signed char __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept= default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef unsigned char __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept= default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef short __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef unsigned short __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef int __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef unsigned int __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef long __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef unsigned long __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef long long __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef unsigned long long __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef wchar_t __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: # 1013 "/usr/include/c++/14/atomic" 3 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef char16_t __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free 29724: = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef char32_t __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free 29724: = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: 29724: typedef atomic atomic_bool; 29724: 29724: 29724: typedef atomic atomic_char; 29724: 29724: 29724: typedef atomic atomic_schar; 29724: 29724: 29724: typedef atomic atomic_uchar; 29724: 29724: 29724: typedef atomic atomic_short; 29724: 29724: 29724: typedef atomic atomic_ushort; 29724: 29724: 29724: typedef atomic atomic_int; 29724: 29724: 29724: typedef atomic atomic_uint; 29724: 29724: 29724: typedef atomic atomic_long; 29724: 29724: 29724: typedef atomic atomic_ulong; 29724: 29724: 29724: typedef atomic atomic_llong; 29724: 29724: 29724: typedef atomic atomic_ullong; 29724: 29724: 29724: typedef atomic atomic_wchar_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef atomic atomic_char16_t; 29724: 29724: 29724: typedef atomic atomic_char32_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef atomic atomic_int8_t; 29724: 29724: 29724: typedef atomic atomic_uint8_t; 29724: 29724: 29724: typedef atomic atomic_int16_t; 29724: 29724: 29724: typedef atomic atomic_uint16_t; 29724: 29724: 29724: typedef atomic atomic_int32_t; 29724: 29724: 29724: typedef atomic atomic_uint32_t; 29724: 29724: 29724: typedef atomic atomic_int64_t; 29724: 29724: 29724: typedef atomic atomic_uint64_t; 29724: 29724: 29724: 29724: typedef atomic atomic_int_least8_t; 29724: 29724: 29724: typedef atomic atomic_uint_least8_t; 29724: 29724: 29724: typedef atomic atomic_int_least16_t; 29724: 29724: 29724: typedef atomic atomic_uint_least16_t; 29724: 29724: 29724: typedef atomic atomic_int_least32_t; 29724: 29724: 29724: typedef atomic atomic_uint_least32_t; 29724: 29724: 29724: typedef atomic atomic_int_least64_t; 29724: 29724: 29724: typedef atomic atomic_uint_least64_t; 29724: 29724: 29724: 29724: typedef atomic atomic_int_fast8_t; 29724: 29724: 29724: typedef atomic atomic_uint_fast8_t; 29724: 29724: 29724: typedef atomic atomic_int_fast16_t; 29724: 29724: 29724: typedef atomic atomic_uint_fast16_t; 29724: 29724: 29724: typedef atomic atomic_int_fast32_t; 29724: 29724: 29724: typedef atomic atomic_uint_fast32_t; 29724: 29724: 29724: typedef atomic atomic_int_fast64_t; 29724: 29724: 29724: typedef atomic atomic_uint_fast64_t; 29724: 29724: 29724: 29724: typedef atomic atomic_intptr_t; 29724: 29724: 29724: typedef atomic atomic_uintptr_t; 29724: 29724: 29724: typedef atomic atomic_size_t; 29724: 29724: 29724: typedef atomic atomic_ptrdiff_t; 29724: 29724: 29724: typedef atomic atomic_intmax_t; 29724: 29724: 29724: typedef atomic atomic_uintmax_t; 29724: 29724: 29724: inline bool 29724: atomic_flag_test_and_set_explicit(atomic_flag* __a, 29724: memory_order __m) noexcept 29724: { return __a->test_and_set(__m); } 29724: 29724: inline bool 29724: atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, 29724: memory_order __m) noexcept 29724: { return __a->test_and_set(__m); } 29724: # 1239 "/usr/include/c++/14/atomic" 3 29724: inline void 29724: atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept 29724: { __a->clear(__m); } 29724: 29724: inline void 29724: atomic_flag_clear_explicit(volatile atomic_flag* __a, 29724: memory_order __m) noexcept 29724: { __a->clear(__m); } 29724: 29724: inline bool 29724: atomic_flag_test_and_set(atomic_flag* __a) noexcept 29724: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 29724: 29724: inline bool 29724: atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept 29724: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 29724: 29724: inline void 29724: atomic_flag_clear(atomic_flag* __a) noexcept 29724: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 29724: 29724: inline void 29724: atomic_flag_clear(volatile atomic_flag* __a) noexcept 29724: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 29724: # 1286 "/usr/include/c++/14/atomic" 3 29724: template 29724: using __atomic_val_t = __type_identity_t<_Tp>; 29724: template 29724: using __atomic_diff_t = typename atomic<_Tp>::difference_type; 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: atomic_is_lock_free(const atomic<_ITp>* __a) noexcept 29724: { return __a->is_lock_free(); } 29724: 29724: template 29724: inline bool 29724: atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept 29724: { return __a->is_lock_free(); } 29724: 29724: template 29724: inline void 29724: atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29724: { __a->store(__i, memory_order_relaxed); } 29724: 29724: template 29724: inline void 29724: atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29724: { __a->store(__i, memory_order_relaxed); } 29724: 29724: template 29724: inline void 29724: atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { __a->store(__i, __m); } 29724: 29724: template 29724: inline void 29724: atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { __a->store(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept 29724: { return __a->load(__m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_load_explicit(const volatile atomic<_ITp>* __a, 29724: memory_order __m) noexcept 29724: { return __a->load(__m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->exchange(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_exchange_explicit(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->exchange(__i, __m); } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 29724: 29724: 29724: template 29724: inline void 29724: atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29724: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline void 29724: atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29724: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_load(const atomic<_ITp>* __a) noexcept 29724: { return atomic_load_explicit(__a, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_load(const volatile atomic<_ITp>* __a) noexcept 29724: { return atomic_load_explicit(__a, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_exchange(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_weak(atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2) noexcept 29724: { 29724: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 29724: memory_order_seq_cst, 29724: memory_order_seq_cst); 29724: } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2) noexcept 29724: { 29724: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 29724: memory_order_seq_cst, 29724: memory_order_seq_cst); 29724: } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_strong(atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2) noexcept 29724: { 29724: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 29724: memory_order_seq_cst, 29724: memory_order_seq_cst); 29724: } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2) noexcept 29724: { 29724: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 29724: memory_order_seq_cst, 29724: memory_order_seq_cst); 29724: } 29724: # 1492 "/usr/include/c++/14/atomic" 3 29724: template 29724: inline _ITp 29724: atomic_fetch_add_explicit(atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_add(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_add(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_sub_explicit(atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_sub(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_sub(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_and(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_and(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_or(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_or(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_xor(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_xor(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_add(atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i) noexcept 29724: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_add(volatile atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i) noexcept 29724: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_sub(atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i) noexcept 29724: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_sub(volatile atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i) noexcept 29724: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_and(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_and(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_or(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_or(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_xor(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 29724: # 1793 "/usr/include/c++/14/atomic" 3 29724: 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/usr/include/c++/14/deque" 1 3 29724: # 58 "/usr/include/c++/14/deque" 3 29724: 29724: # 59 "/usr/include/c++/14/deque" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/requires_hosted.h" 1 3 29724: # 61 "/usr/include/c++/14/deque" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_algobase.h" 1 3 29724: # 60 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: # 1 "/usr/include/c++/14/bits/functexcept.h" 1 3 29724: # 40 "/usr/include/c++/14/bits/functexcept.h" 3 29724: # 1 "/usr/include/c++/14/bits/exception_defines.h" 1 3 29724: # 41 "/usr/include/c++/14/bits/functexcept.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: void 29724: __throw_bad_exception(void) __attribute__((__noreturn__)); 29724: 29724: 29724: void 29724: __throw_bad_alloc(void) __attribute__((__noreturn__)); 29724: 29724: void 29724: __throw_bad_array_new_length(void) __attribute__((__noreturn__)); 29724: 29724: 29724: void 29724: __throw_bad_cast(void) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_bad_typeid(void) __attribute__((__noreturn__,__cold__)); 29724: 29724: 29724: void 29724: __throw_logic_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_domain_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_invalid_argument(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_length_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_out_of_range(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__,__cold__)) 29724: __attribute__((__format__(__gnu_printf__, 1, 2))); 29724: 29724: void 29724: __throw_runtime_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_range_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_overflow_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_underflow_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: 29724: void 29724: __throw_ios_failure(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_ios_failure(const char*, int) __attribute__((__noreturn__,__cold__)); 29724: 29724: 29724: void 29724: __throw_system_error(int) __attribute__((__noreturn__,__cold__)); 29724: 29724: 29724: void 29724: __throw_future_error(int) __attribute__((__noreturn__,__cold__)); 29724: 29724: 29724: void 29724: __throw_bad_function_call() __attribute__((__noreturn__,__cold__)); 29724: # 140 "/usr/include/c++/14/bits/functexcept.h" 3 29724: 29724: } 29724: # 61 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/cpp_type_traits.h" 1 3 29724: # 35 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: 29724: # 36 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 39 "/usr/include/c++/14/bits/cpp_type_traits.h" 2 3 29724: # 68 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: extern "C++" { 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: struct __true_type { }; 29724: struct __false_type { }; 29724: 29724: template 29724: struct __truth_type 29724: { typedef __false_type __type; }; 29724: 29724: template<> 29724: struct __truth_type 29724: { typedef __true_type __type; }; 29724: 29724: 29724: 29724: template 29724: struct __traitor 29724: { 29724: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; 29724: typedef typename __truth_type<__value>::__type __type; 29724: }; 29724: 29724: 29724: template 29724: struct __are_same 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: template 29724: struct __are_same<_Tp, _Tp> 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: template 29724: struct __is_void 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_void 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_integer 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: # 185 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: # 290 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: template 29724: struct __is_floating 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: 29724: template<> 29724: struct __is_floating 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_floating 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_floating 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: # 367 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: template 29724: struct __is_pointer 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: template 29724: struct __is_pointer<_Tp*> 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_arithmetic 29724: : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_scalar 29724: : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_char 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_char 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: template<> 29724: struct __is_char 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: template 29724: struct __is_byte 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_byte 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_byte 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_byte 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: enum class byte : unsigned char; 29724: 29724: template<> 29724: struct __is_byte 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: # 471 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: template struct iterator_traits; 29724: 29724: 29724: template 29724: struct __is_nonvolatile_trivially_copyable 29724: { 29724: enum { __value = __is_trivially_copyable(_Tp) }; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_nonvolatile_trivially_copyable 29724: { 29724: enum { __value = 0 }; 29724: }; 29724: 29724: 29724: template 29724: struct __memcpyable 29724: { 29724: enum { __value = 0 }; 29724: }; 29724: 29724: template 29724: struct __memcpyable<_Tp*, _Tp*> 29724: : __is_nonvolatile_trivially_copyable<_Tp> 29724: { }; 29724: 29724: template 29724: struct __memcpyable<_Tp*, const _Tp*> 29724: : __is_nonvolatile_trivially_copyable<_Tp> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __memcmpable 29724: { 29724: enum { __value = 0 }; 29724: }; 29724: 29724: 29724: template 29724: struct __memcmpable<_Tp*, _Tp*> 29724: : __is_nonvolatile_trivially_copyable<_Tp> 29724: { }; 29724: 29724: template 29724: struct __memcmpable 29724: : __is_nonvolatile_trivially_copyable<_Tp> 29724: { }; 29724: 29724: template 29724: struct __memcmpable<_Tp*, const _Tp*> 29724: : __is_nonvolatile_trivially_copyable<_Tp> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template::__value 29724: 29724: > 29724: struct __is_memcmp_ordered 29724: { 29724: static const bool __value = _Tp(-1) > _Tp(1); 29724: }; 29724: 29724: template 29724: struct __is_memcmp_ordered<_Tp, false> 29724: { 29724: static const bool __value = false; 29724: }; 29724: 29724: 29724: template 29724: struct __is_memcmp_ordered_with 29724: { 29724: static const bool __value = __is_memcmp_ordered<_Tp>::__value 29724: && __is_memcmp_ordered<_Up>::__value; 29724: }; 29724: 29724: template 29724: struct __is_memcmp_ordered_with<_Tp, _Up, false> 29724: { 29724: static const bool __value = false; 29724: }; 29724: # 580 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: template<> 29724: struct __is_memcmp_ordered_with 29724: { static constexpr bool __value = true; }; 29724: 29724: template 29724: struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> 29724: { static constexpr bool __value = false; }; 29724: 29724: template 29724: struct __is_memcmp_ordered_with 29724: { static constexpr bool __value = false; }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_move_iterator 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: 29724: 29724: template 29724: 29724: inline _Iterator 29724: __miter_base(_Iterator __it) 29724: { return __it; } 29724: 29724: 29724: } 29724: } 29724: # 62 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/ext/type_traits.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/type_traits.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/type_traits.h" 3 29724: 29724: 29724: 29724: 29724: extern "C++" { 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: struct __enable_if 29724: { }; 29724: 29724: template 29724: struct __enable_if 29724: { typedef _Tp __type; }; 29724: 29724: 29724: 29724: template 29724: struct __conditional_type 29724: { typedef _Iftrue __type; }; 29724: 29724: template 29724: struct __conditional_type 29724: { typedef _Iffalse __type; }; 29724: 29724: 29724: 29724: template 29724: struct __add_unsigned 29724: { 29724: private: 29724: typedef __enable_if::__value, _Tp> __if_type; 29724: 29724: public: 29724: typedef typename __if_type::__type __type; 29724: }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned char __type; }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned char __type; }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned short __type; }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned int __type; }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned long __type; }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned long long __type; }; 29724: 29724: 29724: template<> 29724: struct __add_unsigned; 29724: 29724: template<> 29724: struct __add_unsigned; 29724: 29724: 29724: 29724: template 29724: struct __remove_unsigned 29724: { 29724: private: 29724: typedef __enable_if::__value, _Tp> __if_type; 29724: 29724: public: 29724: typedef typename __if_type::__type __type; 29724: }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef signed char __type; }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef signed char __type; }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef short __type; }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef int __type; }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef long __type; }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef long long __type; }; 29724: 29724: 29724: template<> 29724: struct __remove_unsigned; 29724: 29724: template<> 29724: struct __remove_unsigned; 29724: 29724: 29724: 29724: template 29724: constexpr 29724: inline bool 29724: __is_null_pointer(_Type* __ptr) 29724: { return __ptr == 0; } 29724: 29724: template 29724: constexpr 29724: inline bool 29724: __is_null_pointer(_Type) 29724: { return false; } 29724: 29724: 29724: constexpr bool 29724: __is_null_pointer(std::nullptr_t) 29724: { return true; } 29724: 29724: 29724: 29724: 29724: template::__value> 29724: struct __promote 29724: { typedef double __type; }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __promote<_Tp, false> 29724: { }; 29724: 29724: template<> 29724: struct __promote 29724: { typedef long double __type; }; 29724: 29724: template<> 29724: struct __promote 29724: { typedef double __type; }; 29724: 29724: template<> 29724: struct __promote 29724: { typedef float __type; }; 29724: # 225 "/usr/include/c++/14/ext/type_traits.h" 3 29724: template 29724: using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); 29724: 29724: 29724: 29724: template 29724: using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; 29724: 29724: template 29724: using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; 29724: 29724: template 29724: using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; 29724: # 269 "/usr/include/c++/14/ext/type_traits.h" 3 29724: 29724: } 29724: } 29724: # 63 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/ext/numeric_traits.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: 29724: 29724: 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 50 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: template 29724: struct __is_integer_nonstrict 29724: : public std::__is_integer<_Tp> 29724: { 29724: using std::__is_integer<_Tp>::__value; 29724: 29724: 29724: enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; 29724: }; 29724: 29724: template 29724: struct __numeric_traits_integer 29724: { 29724: 29724: static_assert(__is_integer_nonstrict<_Value>::__value, 29724: "invalid specialization"); 29724: 29724: 29724: 29724: 29724: static const bool __is_signed = (_Value)(-1) < 0; 29724: static const int __digits 29724: = __is_integer_nonstrict<_Value>::__width - __is_signed; 29724: 29724: 29724: static const _Value __max = __is_signed 29724: ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) 29724: : ~(_Value)0; 29724: static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; 29724: }; 29724: 29724: template 29724: const _Value __numeric_traits_integer<_Value>::__min; 29724: 29724: template 29724: const _Value __numeric_traits_integer<_Value>::__max; 29724: 29724: template 29724: const bool __numeric_traits_integer<_Value>::__is_signed; 29724: 29724: template 29724: const int __numeric_traits_integer<_Value>::__digits; 29724: # 137 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: template 29724: using __int_traits = __numeric_traits_integer<_Tp>; 29724: # 157 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: template 29724: struct __numeric_traits_floating 29724: { 29724: 29724: static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 53) * 643L / 2136); 29724: 29724: 29724: static const bool __is_signed = true; 29724: static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 15); 29724: static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 308); 29724: }; 29724: 29724: template 29724: const int __numeric_traits_floating<_Value>::__max_digits10; 29724: 29724: template 29724: const bool __numeric_traits_floating<_Value>::__is_signed; 29724: 29724: template 29724: const int __numeric_traits_floating<_Value>::__digits10; 29724: 29724: template 29724: const int __numeric_traits_floating<_Value>::__max_exponent10; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __numeric_traits 29724: : public __numeric_traits_integer<_Value> 29724: { }; 29724: 29724: template<> 29724: struct __numeric_traits 29724: : public __numeric_traits_floating 29724: { }; 29724: 29724: template<> 29724: struct __numeric_traits 29724: : public __numeric_traits_floating 29724: { }; 29724: 29724: template<> 29724: struct __numeric_traits 29724: : public __numeric_traits_floating 29724: { }; 29724: # 238 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: 29724: } 29724: # 64 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_pair.h" 1 3 29724: # 62 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: # 1 "/usr/include/c++/14/bits/utility.h" 1 3 29724: # 36 "/usr/include/c++/14/bits/utility.h" 3 29724: 29724: # 37 "/usr/include/c++/14/bits/utility.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: struct tuple_size; 29724: 29724: 29724: 29724: 29724: 29724: template::type, 29724: typename = typename enable_if::value>::type, 29724: size_t = tuple_size<_Tp>::value> 29724: using __enable_if_has_tuple_size = _Tp; 29724: 29724: template 29724: struct tuple_size> 29724: : public tuple_size<_Tp> { }; 29724: 29724: template 29724: struct tuple_size> 29724: : public tuple_size<_Tp> { }; 29724: 29724: template 29724: struct tuple_size> 29724: : public tuple_size<_Tp> { }; 29724: 29724: 29724: template 29724: inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; 29724: 29724: 29724: 29724: template 29724: struct tuple_element; 29724: 29724: 29724: template 29724: using __tuple_element_t = typename tuple_element<__i, _Tp>::type; 29724: 29724: template 29724: struct tuple_element<__i, const _Tp> 29724: { 29724: using type = const __tuple_element_t<__i, _Tp>; 29724: }; 29724: 29724: template 29724: struct tuple_element<__i, volatile _Tp> 29724: { 29724: using type = volatile __tuple_element_t<__i, _Tp>; 29724: }; 29724: 29724: template 29724: struct tuple_element<__i, const volatile _Tp> 29724: { 29724: using type = const volatile __tuple_element_t<__i, _Tp>; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr size_t 29724: __find_uniq_type_in_pack() 29724: { 29724: constexpr size_t __sz = sizeof...(_Types); 29724: constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; 29724: size_t __n = __sz; 29724: for (size_t __i = 0; __i < __sz; ++__i) 29724: { 29724: if (__found[__i]) 29724: { 29724: if (__n < __sz) 29724: return __sz; 29724: __n = __i; 29724: } 29724: } 29724: return __n; 29724: } 29724: # 134 "/usr/include/c++/14/bits/utility.h" 3 29724: template 29724: using tuple_element_t = typename tuple_element<__i, _Tp>::type; 29724: 29724: 29724: 29724: 29724: template struct _Index_tuple { }; 29724: 29724: 29724: template 29724: struct _Build_index_tuple 29724: { 29724: # 154 "/usr/include/c++/14/bits/utility.h" 3 29724: using __type = _Index_tuple<__integer_pack(_Num)...>; 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct integer_sequence 29724: { 29724: 29724: 29724: 29724: typedef _Tp value_type; 29724: static constexpr size_t size() noexcept { return sizeof...(_Idx); } 29724: }; 29724: 29724: 29724: template 29724: using make_integer_sequence 29724: 29724: 29724: 29724: = integer_sequence<_Tp, __integer_pack(_Num)...>; 29724: 29724: 29724: 29724: template 29724: using index_sequence = integer_sequence; 29724: 29724: 29724: template 29724: using make_index_sequence = make_integer_sequence; 29724: 29724: 29724: template 29724: using index_sequence_for = make_index_sequence; 29724: 29724: 29724: 29724: 29724: struct in_place_t { 29724: explicit in_place_t() = default; 29724: }; 29724: 29724: inline constexpr in_place_t in_place{}; 29724: 29724: template struct in_place_type_t 29724: { 29724: explicit in_place_type_t() = default; 29724: }; 29724: 29724: template 29724: inline constexpr in_place_type_t<_Tp> in_place_type{}; 29724: 29724: template struct in_place_index_t 29724: { 29724: explicit in_place_index_t() = default; 29724: }; 29724: 29724: template 29724: inline constexpr in_place_index_t<_Idx> in_place_index{}; 29724: 29724: template 29724: inline constexpr bool __is_in_place_type_v = false; 29724: 29724: template 29724: inline constexpr bool __is_in_place_type_v> = true; 29724: 29724: template 29724: using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; 29724: 29724: template 29724: inline constexpr bool __is_in_place_index_v = false; 29724: 29724: template 29724: inline constexpr bool __is_in_place_index_v> = true; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Nth_type 29724: { using type = __type_pack_element<_Np, _Types...>; }; 29724: # 283 "/usr/include/c++/14/bits/utility.h" 3 29724: 29724: } 29724: # 63 "/usr/include/c++/14/bits/stl_pair.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 79 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; 29724: 29724: 29724: inline constexpr piecewise_construct_t piecewise_construct = 29724: piecewise_construct_t(); 29724: 29724: 29724: 29724: 29724: template 29724: struct pair; 29724: 29724: template 29724: class tuple; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct array; 29724: 29724: template 29724: struct _Index_tuple; 29724: 29724: template 29724: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29724: get(pair<_Tp1, _Tp2>& __in) noexcept; 29724: 29724: template 29724: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29724: get(pair<_Tp1, _Tp2>&& __in) noexcept; 29724: 29724: template 29724: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29724: get(const pair<_Tp1, _Tp2>& __in) noexcept; 29724: 29724: template 29724: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29724: get(const pair<_Tp1, _Tp2>&& __in) noexcept; 29724: 29724: template 29724: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 29724: get(tuple<_Elements...>& __t) noexcept; 29724: 29724: template 29724: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 29724: get(const tuple<_Elements...>& __t) noexcept; 29724: 29724: template 29724: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 29724: get(tuple<_Elements...>&& __t) noexcept; 29724: 29724: template 29724: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 29724: get(const tuple<_Elements...>&& __t) noexcept; 29724: 29724: template 29724: constexpr _Tp& 29724: get(array<_Tp, _Nm>&) noexcept; 29724: 29724: template 29724: constexpr _Tp&& 29724: get(array<_Tp, _Nm>&&) noexcept; 29724: 29724: template 29724: constexpr const _Tp& 29724: get(const array<_Tp, _Nm>&) noexcept; 29724: 29724: template 29724: constexpr const _Tp&& 29724: get(const array<_Tp, _Nm>&&) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _PCC 29724: { 29724: template 29724: static constexpr bool _ConstructiblePair() 29724: { 29724: return __and_, 29724: is_constructible<_T2, const _U2&>>::value; 29724: } 29724: 29724: template 29724: static constexpr bool _ImplicitlyConvertiblePair() 29724: { 29724: return __and_, 29724: is_convertible>::value; 29724: } 29724: 29724: template 29724: static constexpr bool _MoveConstructiblePair() 29724: { 29724: return __and_, 29724: is_constructible<_T2, _U2&&>>::value; 29724: } 29724: 29724: template 29724: static constexpr bool _ImplicitlyMoveConvertiblePair() 29724: { 29724: return __and_, 29724: is_convertible<_U2&&, _T2>>::value; 29724: } 29724: }; 29724: 29724: template 29724: struct _PCC 29724: { 29724: template 29724: static constexpr bool _ConstructiblePair() 29724: { 29724: return false; 29724: } 29724: 29724: template 29724: static constexpr bool _ImplicitlyConvertiblePair() 29724: { 29724: return false; 29724: } 29724: 29724: template 29724: static constexpr bool _MoveConstructiblePair() 29724: { 29724: return false; 29724: } 29724: 29724: template 29724: static constexpr bool _ImplicitlyMoveConvertiblePair() 29724: { 29724: return false; 29724: } 29724: }; 29724: # 260 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template class __pair_base 29724: { 29724: 29724: template friend struct pair; 29724: __pair_base() = default; 29724: ~__pair_base() = default; 29724: __pair_base(const __pair_base&) = default; 29724: __pair_base& operator=(const __pair_base&) = delete; 29724: 29724: }; 29724: # 283 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: struct pair 29724: : public __pair_base<_T1, _T2> 29724: { 29724: typedef _T1 first_type; 29724: typedef _T2 second_type; 29724: 29724: _T1 first; 29724: _T2 second; 29724: 29724: 29724: constexpr pair(const pair&) = default; 29724: constexpr pair(pair&&) = default; 29724: 29724: template 29724: 29724: pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); 29724: 29724: 29724: void 29724: swap(pair& __p) 29724: noexcept(__and_<__is_nothrow_swappable<_T1>, 29724: __is_nothrow_swappable<_T2>>::value) 29724: { 29724: using std::swap; 29724: swap(first, __p.first); 29724: swap(second, __p.second); 29724: } 29724: # 331 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: private: 29724: template 29724: 29724: pair(tuple<_Args1...>&, tuple<_Args2...>&, 29724: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); 29724: public: 29724: # 719 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template , 29724: __is_implicitly_default_constructible<_U2>> 29724: ::value, bool>::type = true> 29724: constexpr pair() 29724: : first(), second() { } 29724: 29724: template , 29724: is_default_constructible<_U2>, 29724: __not_< 29724: __and_<__is_implicitly_default_constructible<_U1>, 29724: __is_implicitly_default_constructible<_U2>>>> 29724: ::value, bool>::type = false> 29724: explicit constexpr pair() 29724: : first(), second() { } 29724: 29724: 29724: 29724: using _PCCP = _PCC; 29724: 29724: 29724: 29724: template() 29724: && _PCCP::template 29724: _ImplicitlyConvertiblePair<_U1, _U2>(), 29724: bool>::type=true> 29724: constexpr pair(const _T1& __a, const _T2& __b) 29724: : first(__a), second(__b) { } 29724: 29724: 29724: template() 29724: && !_PCCP::template 29724: _ImplicitlyConvertiblePair<_U1, _U2>(), 29724: bool>::type=false> 29724: explicit constexpr pair(const _T1& __a, const _T2& __b) 29724: : first(__a), second(__b) { } 29724: 29724: 29724: 29724: template 29724: using _PCCFP = _PCC::value 29724: || !is_same<_T2, _U2>::value, 29724: _T1, _T2>; 29724: 29724: 29724: template::template 29724: _ConstructiblePair<_U1, _U2>() 29724: && _PCCFP<_U1, _U2>::template 29724: _ImplicitlyConvertiblePair<_U1, _U2>(), 29724: bool>::type=true> 29724: constexpr pair(const pair<_U1, _U2>& __p) 29724: : first(__p.first), second(__p.second) 29724: { ; } 29724: 29724: template::template 29724: _ConstructiblePair<_U1, _U2>() 29724: && !_PCCFP<_U1, _U2>::template 29724: _ImplicitlyConvertiblePair<_U1, _U2>(), 29724: bool>::type=false> 29724: explicit constexpr pair(const pair<_U1, _U2>& __p) 29724: : first(__p.first), second(__p.second) 29724: { ; } 29724: # 803 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: private: 29724: 29724: 29724: 29724: struct __zero_as_null_pointer_constant 29724: { 29724: __zero_as_null_pointer_constant(int __zero_as_null_pointer_constant::*) 29724: { } 29724: template::value>> 29724: __zero_as_null_pointer_constant(_Tp) = delete; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: template>, 29724: is_pointer<_T2>, 29724: is_constructible<_T1, _U1>, 29724: __not_>, 29724: is_convertible<_U1, _T1>>::value, 29724: bool> = true> 29724: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29724: constexpr 29724: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 29724: : first(std::forward<_U1>(__x)), second(nullptr) 29724: { ; } 29724: 29724: template>, 29724: is_pointer<_T2>, 29724: is_constructible<_T1, _U1>, 29724: __not_>, 29724: __not_>>::value, 29724: bool> = false> 29724: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29724: explicit constexpr 29724: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 29724: : first(std::forward<_U1>(__x)), second(nullptr) 29724: { ; } 29724: 29724: template, 29724: __not_>, 29724: is_constructible<_T2, _U2>, 29724: __not_>, 29724: is_convertible<_U2, _T2>>::value, 29724: bool> = true> 29724: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29724: constexpr 29724: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 29724: : first(nullptr), second(std::forward<_U2>(__y)) 29724: { ; } 29724: 29724: template, 29724: __not_>, 29724: is_constructible<_T2, _U2>, 29724: __not_>, 29724: __not_>>::value, 29724: bool> = false> 29724: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29724: explicit constexpr 29724: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 29724: : first(nullptr), second(std::forward<_U2>(__y)) 29724: { ; } 29724: 29724: 29724: 29724: template() 29724: && _PCCP::template 29724: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29724: bool>::type=true> 29724: constexpr pair(_U1&& __x, _U2&& __y) 29724: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 29724: { ; } 29724: 29724: template() 29724: && !_PCCP::template 29724: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29724: bool>::type=false> 29724: explicit constexpr pair(_U1&& __x, _U2&& __y) 29724: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 29724: { ; } 29724: 29724: 29724: template::template 29724: _MoveConstructiblePair<_U1, _U2>() 29724: && _PCCFP<_U1, _U2>::template 29724: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29724: bool>::type=true> 29724: constexpr pair(pair<_U1, _U2>&& __p) 29724: : first(std::forward<_U1>(__p.first)), 29724: second(std::forward<_U2>(__p.second)) 29724: { ; } 29724: 29724: template::template 29724: _MoveConstructiblePair<_U1, _U2>() 29724: && !_PCCFP<_U1, _U2>::template 29724: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29724: bool>::type=false> 29724: explicit constexpr pair(pair<_U1, _U2>&& __p) 29724: : first(std::forward<_U1>(__p.first)), 29724: second(std::forward<_U2>(__p.second)) 29724: { ; } 29724: 29724: 29724: 29724: pair& 29724: operator=(__conditional_t<__and_, 29724: is_copy_assignable<_T2>>::value, 29724: const pair&, const __nonesuch&> __p) 29724: { 29724: first = __p.first; 29724: second = __p.second; 29724: return *this; 29724: } 29724: 29724: pair& 29724: operator=(__conditional_t<__and_, 29724: is_move_assignable<_T2>>::value, 29724: pair&&, __nonesuch&&> __p) 29724: noexcept(__and_, 29724: is_nothrow_move_assignable<_T2>>::value) 29724: { 29724: first = std::forward(__p.first); 29724: second = std::forward(__p.second); 29724: return *this; 29724: } 29724: 29724: template 29724: typename enable_if<__and_, 29724: is_assignable<_T2&, const _U2&>>::value, 29724: pair&>::type 29724: operator=(const pair<_U1, _U2>& __p) 29724: { 29724: first = __p.first; 29724: second = __p.second; 29724: return *this; 29724: } 29724: 29724: template 29724: typename enable_if<__and_, 29724: is_assignable<_T2&, _U2&&>>::value, 29724: pair&>::type 29724: operator=(pair<_U1, _U2>&& __p) 29724: { 29724: first = std::forward<_U1>(__p.first); 29724: second = std::forward<_U2>(__p.second); 29724: return *this; 29724: } 29724: # 995 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: }; 29724: 29724: 29724: 29724: 29724: template pair(_T1, _T2) -> pair<_T1, _T2>; 29724: # 1031 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: inline constexpr bool 29724: operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return __x.first == __y.first && __x.second == __y.second; } 29724: # 1043 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: inline constexpr bool 29724: operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return __x.first < __y.first 29724: || (!(__y.first < __x.first) && __x.second < __y.second); } 29724: 29724: 29724: template 29724: inline constexpr bool 29724: operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline constexpr bool 29724: operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: inline constexpr bool 29724: operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: inline constexpr bool 29724: operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return !(__x < __y); } 29724: # 1080 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: inline 29724: 29724: 29724: typename enable_if<__and_<__is_swappable<_T1>, 29724: __is_swappable<_T2>>::value>::type 29724: 29724: 29724: 29724: swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: # 1103 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: typename enable_if, 29724: __is_swappable<_T2>>::value>::type 29724: swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; 29724: # 1129 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: constexpr pair::__type, 29724: typename __decay_and_strip<_T2>::__type> 29724: make_pair(_T1&& __x, _T2&& __y) 29724: { 29724: typedef typename __decay_and_strip<_T1>::__type __ds_type1; 29724: typedef typename __decay_and_strip<_T2>::__type __ds_type2; 29724: typedef pair<__ds_type1, __ds_type2> __pair_type; 29724: return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); 29724: } 29724: # 1152 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: struct __is_tuple_like_impl> : true_type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct tuple_size> 29724: : public integral_constant { }; 29724: 29724: 29724: template 29724: struct tuple_element<0, pair<_Tp1, _Tp2>> 29724: { typedef _Tp1 type; }; 29724: 29724: 29724: template 29724: struct tuple_element<1, pair<_Tp1, _Tp2>> 29724: { typedef _Tp2 type; }; 29724: 29724: 29724: 29724: template 29724: struct tuple_element<__i, tuple<_Types...>>; 29724: 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> = 2; 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> = 2; 29724: 29724: template 29724: inline constexpr bool __is_pair = false; 29724: 29724: template 29724: inline constexpr bool __is_pair> = true; 29724: 29724: 29724: 29724: template 29724: struct __pair_get; 29724: 29724: template<> 29724: struct __pair_get<0> 29724: { 29724: template 29724: static constexpr _Tp1& 29724: __get(pair<_Tp1, _Tp2>& __pair) noexcept 29724: { return __pair.first; } 29724: 29724: template 29724: static constexpr _Tp1&& 29724: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 29724: { return std::forward<_Tp1>(__pair.first); } 29724: 29724: template 29724: static constexpr const _Tp1& 29724: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 29724: { return __pair.first; } 29724: 29724: template 29724: static constexpr const _Tp1&& 29724: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 29724: { return std::forward(__pair.first); } 29724: }; 29724: 29724: template<> 29724: struct __pair_get<1> 29724: { 29724: template 29724: static constexpr _Tp2& 29724: __get(pair<_Tp1, _Tp2>& __pair) noexcept 29724: { return __pair.second; } 29724: 29724: template 29724: static constexpr _Tp2&& 29724: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 29724: { return std::forward<_Tp2>(__pair.second); } 29724: 29724: template 29724: static constexpr const _Tp2& 29724: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 29724: { return __pair.second; } 29724: 29724: template 29724: static constexpr const _Tp2&& 29724: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 29724: { return std::forward(__pair.second); } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29724: get(pair<_Tp1, _Tp2>& __in) noexcept 29724: { return __pair_get<_Int>::__get(__in); } 29724: 29724: template 29724: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29724: get(pair<_Tp1, _Tp2>&& __in) noexcept 29724: { return __pair_get<_Int>::__move_get(std::move(__in)); } 29724: 29724: template 29724: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29724: get(const pair<_Tp1, _Tp2>& __in) noexcept 29724: { return __pair_get<_Int>::__const_get(__in); } 29724: 29724: template 29724: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29724: get(const pair<_Tp1, _Tp2>&& __in) noexcept 29724: { return __pair_get<_Int>::__const_move_get(std::move(__in)); } 29724: 29724: 29724: 29724: template 29724: constexpr _Tp& 29724: get(pair<_Tp, _Up>& __p) noexcept 29724: { return __p.first; } 29724: 29724: template 29724: constexpr const _Tp& 29724: get(const pair<_Tp, _Up>& __p) noexcept 29724: { return __p.first; } 29724: 29724: template 29724: constexpr _Tp&& 29724: get(pair<_Tp, _Up>&& __p) noexcept 29724: { return std::move(__p.first); } 29724: 29724: template 29724: constexpr const _Tp&& 29724: get(const pair<_Tp, _Up>&& __p) noexcept 29724: { return std::move(__p.first); } 29724: 29724: template 29724: constexpr _Tp& 29724: get(pair<_Up, _Tp>& __p) noexcept 29724: { return __p.second; } 29724: 29724: template 29724: constexpr const _Tp& 29724: get(const pair<_Up, _Tp>& __p) noexcept 29724: { return __p.second; } 29724: 29724: template 29724: constexpr _Tp&& 29724: get(pair<_Up, _Tp>&& __p) noexcept 29724: { return std::move(__p.second); } 29724: 29724: template 29724: constexpr const _Tp&& 29724: get(const pair<_Up, _Tp>&& __p) noexcept 29724: { return std::move(__p.second); } 29724: # 1332 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: 29724: } 29724: # 65 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 1 3 29724: # 62 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: 29724: # 63 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: # 74 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 93 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: struct input_iterator_tag { }; 29724: 29724: 29724: struct output_iterator_tag { }; 29724: 29724: 29724: struct forward_iterator_tag : public input_iterator_tag { }; 29724: 29724: 29724: 29724: struct bidirectional_iterator_tag : public forward_iterator_tag { }; 29724: 29724: 29724: 29724: struct random_access_iterator_tag : public bidirectional_iterator_tag { }; 29724: # 125 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: template 29724: struct [[__deprecated__]] iterator 29724: { 29724: 29724: typedef _Category iterator_category; 29724: 29724: typedef _Tp value_type; 29724: 29724: typedef _Distance difference_type; 29724: 29724: typedef _Pointer pointer; 29724: 29724: typedef _Reference reference; 29724: }; 29724: # 149 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: template 29724: struct iterator_traits; 29724: 29724: 29724: 29724: 29724: template> 29724: struct __iterator_traits { }; 29724: 29724: 29724: 29724: template 29724: struct __iterator_traits<_Iterator, 29724: __void_t> 29724: { 29724: typedef typename _Iterator::iterator_category iterator_category; 29724: typedef typename _Iterator::value_type value_type; 29724: typedef typename _Iterator::difference_type difference_type; 29724: typedef typename _Iterator::pointer pointer; 29724: typedef typename _Iterator::reference reference; 29724: }; 29724: 29724: 29724: template 29724: struct iterator_traits 29724: : public __iterator_traits<_Iterator> { }; 29724: # 209 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: template 29724: struct iterator_traits<_Tp*> 29724: { 29724: typedef random_access_iterator_tag iterator_category; 29724: typedef _Tp value_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Tp* pointer; 29724: typedef _Tp& reference; 29724: }; 29724: 29724: 29724: template 29724: struct iterator_traits 29724: { 29724: typedef random_access_iterator_tag iterator_category; 29724: typedef _Tp value_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef const _Tp* pointer; 29724: typedef const _Tp& reference; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: inline constexpr 29724: typename iterator_traits<_Iter>::iterator_category 29724: __iterator_category(const _Iter&) 29724: { return typename iterator_traits<_Iter>::iterator_category(); } 29724: 29724: 29724: 29724: 29724: template 29724: using __iter_category_t 29724: = typename iterator_traits<_Iter>::iterator_category; 29724: 29724: template 29724: using _RequireInputIter = 29724: __enable_if_t, 29724: input_iterator_tag>::value>; 29724: 29724: template> 29724: struct __is_random_access_iter 29724: : is_base_of 29724: { 29724: typedef is_base_of _Base; 29724: enum { __value = _Base::value }; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 1 3 29724: # 62 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29724: 29724: # 63 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/concept_check.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/concept_check.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/concept_check.h" 3 29724: # 65 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 29724: # 1 "/usr/include/c++/14/debug/assertions.h" 1 3 29724: # 66 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template struct _List_iterator; 29724: template struct _List_const_iterator; 29724: 29724: 29724: template 29724: inline constexpr 29724: typename iterator_traits<_InputIterator>::difference_type 29724: __distance(_InputIterator __first, _InputIterator __last, 29724: input_iterator_tag) 29724: { 29724: 29724: 29724: 29724: typename iterator_traits<_InputIterator>::difference_type __n = 0; 29724: while (__first != __last) 29724: { 29724: ++__first; 29724: ++__n; 29724: } 29724: return __n; 29724: } 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: inline constexpr 29724: typename iterator_traits<_RandomAccessIterator>::difference_type 29724: __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: random_access_iterator_tag) 29724: { 29724: 29724: 29724: 29724: return __last - __first; 29724: } 29724: 29724: 29724: 29724: template 29724: ptrdiff_t 29724: __distance(std::_List_iterator<_Tp>, 29724: std::_List_iterator<_Tp>, 29724: input_iterator_tag); 29724: 29724: template 29724: ptrdiff_t 29724: __distance(std::_List_const_iterator<_Tp>, 29724: std::_List_const_iterator<_Tp>, 29724: input_iterator_tag); 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; 29724: # 144 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29724: template 29724: [[__nodiscard__]] __attribute__((__always_inline__)) 29724: inline constexpr 29724: typename iterator_traits<_InputIterator>::difference_type 29724: distance(_InputIterator __first, _InputIterator __last) 29724: { 29724: 29724: return std::__distance(__first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: template 29724: inline constexpr void 29724: __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) 29724: { 29724: 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) std::__glibcxx_assert_fail(); } while (false); 29724: while (__n--) 29724: ++__i; 29724: } 29724: 29724: template 29724: inline constexpr void 29724: __advance(_BidirectionalIterator& __i, _Distance __n, 29724: bidirectional_iterator_tag) 29724: { 29724: 29724: 29724: 29724: if (__n > 0) 29724: while (__n--) 29724: ++__i; 29724: else 29724: while (__n++) 29724: --__i; 29724: } 29724: 29724: template 29724: inline constexpr void 29724: __advance(_RandomAccessIterator& __i, _Distance __n, 29724: random_access_iterator_tag) 29724: { 29724: 29724: 29724: 29724: if (__builtin_constant_p(__n) && __n == 1) 29724: ++__i; 29724: else if (__builtin_constant_p(__n) && __n == -1) 29724: --__i; 29724: else 29724: __i += __n; 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; 29724: # 217 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29724: template 29724: __attribute__((__always_inline__)) 29724: inline constexpr void 29724: advance(_InputIterator& __i, _Distance __n) 29724: { 29724: 29724: typename iterator_traits<_InputIterator>::difference_type __d = __n; 29724: std::__advance(__i, __d, std::__iterator_category(__i)); 29724: } 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] [[__gnu__::__always_inline__]] 29724: inline constexpr _InputIterator 29724: next(_InputIterator __x, typename 29724: iterator_traits<_InputIterator>::difference_type __n = 1) 29724: { 29724: 29724: 29724: std::advance(__x, __n); 29724: return __x; 29724: } 29724: 29724: template 29724: [[__nodiscard__]] [[__gnu__::__always_inline__]] 29724: inline constexpr _BidirectionalIterator 29724: prev(_BidirectionalIterator __x, typename 29724: iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 29724: { 29724: 29724: 29724: 29724: std::advance(__x, -__n); 29724: return __x; 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 67 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_iterator.h" 1 3 29724: # 67 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: # 1 "/usr/include/c++/14/bits/ptr_traits.h" 1 3 29724: # 42 "/usr/include/c++/14/bits/ptr_traits.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: class __undefined; 29724: 29724: 29724: 29724: template 29724: struct __get_first_arg 29724: { using type = __undefined; }; 29724: 29724: template class _SomeTemplate, typename _Tp, 29724: typename... _Types> 29724: struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> 29724: { using type = _Tp; }; 29724: 29724: 29724: 29724: template 29724: struct __replace_first_arg 29724: { }; 29724: 29724: template class _SomeTemplate, typename _Up, 29724: typename _Tp, typename... _Types> 29724: struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> 29724: { using type = _SomeTemplate<_Up, _Types...>; }; 29724: 29724: 29724: template 29724: struct __ptr_traits_elem : __get_first_arg<_Ptr> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __ptr_traits_elem<_Ptr, __void_t> 29724: { using type = typename _Ptr::element_type; }; 29724: 29724: 29724: template 29724: using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; 29724: 29724: 29724: 29724: 29724: template::value> 29724: struct __ptr_traits_ptr_to 29724: { 29724: using pointer = _Ptr; 29724: using element_type = _Elt; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: static pointer 29724: pointer_to(element_type& __r) 29724: 29724: 29724: 29724: 29724: 29724: { return pointer::pointer_to(__r); } 29724: }; 29724: 29724: 29724: template 29724: struct __ptr_traits_ptr_to<_Ptr, _Elt, true> 29724: { }; 29724: 29724: 29724: template 29724: struct __ptr_traits_ptr_to<_Tp*, _Tp, false> 29724: { 29724: using pointer = _Tp*; 29724: using element_type = _Tp; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static pointer 29724: pointer_to(element_type& __r) noexcept 29724: { return std::addressof(__r); } 29724: }; 29724: 29724: template 29724: struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> 29724: { 29724: private: 29724: template 29724: using __diff_t = typename _Tp::difference_type; 29724: 29724: template 29724: using __rebind = __type_identity>; 29724: 29724: public: 29724: 29724: using pointer = _Ptr; 29724: 29724: 29724: using element_type = _Elt; 29724: 29724: 29724: using difference_type = __detected_or_t; 29724: 29724: 29724: template 29724: using rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, 29724: __rebind, _Ptr, _Up>::type; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __ptr_traits_impl<_Ptr, __undefined> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> 29724: { 29724: 29724: typedef _Tp* pointer; 29724: 29724: typedef _Tp element_type; 29724: 29724: typedef ptrdiff_t difference_type; 29724: 29724: template using rebind = _Up*; 29724: }; 29724: 29724: 29724: template 29724: using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; 29724: 29724: template 29724: constexpr _Tp* 29724: __to_address(_Tp* __ptr) noexcept 29724: { 29724: static_assert(!std::is_function<_Tp>::value, "not a function pointer"); 29724: return __ptr; 29724: } 29724: 29724: 29724: template 29724: constexpr typename std::pointer_traits<_Ptr>::element_type* 29724: __to_address(const _Ptr& __ptr) 29724: { return std::__to_address(__ptr.operator->()); } 29724: # 257 "/usr/include/c++/14/bits/ptr_traits.h" 3 29724: 29724: } 29724: # 68 "/usr/include/c++/14/bits/stl_iterator.h" 2 3 29724: # 85 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: 29724: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: # 128 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class reverse_iterator 29724: : public iterator::iterator_category, 29724: typename iterator_traits<_Iterator>::value_type, 29724: typename iterator_traits<_Iterator>::difference_type, 29724: typename iterator_traits<_Iterator>::pointer, 29724: typename iterator_traits<_Iterator>::reference> 29724: { 29724: template 29724: friend class reverse_iterator; 29724: # 147 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: protected: 29724: _Iterator current; 29724: 29724: typedef iterator_traits<_Iterator> __traits_type; 29724: 29724: public: 29724: typedef _Iterator iterator_type; 29724: typedef typename __traits_type::pointer pointer; 29724: 29724: typedef typename __traits_type::difference_type difference_type; 29724: typedef typename __traits_type::reference reference; 29724: # 178 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: constexpr 29724: reverse_iterator() 29724: noexcept(noexcept(_Iterator())) 29724: : current() 29724: { } 29724: 29724: 29724: 29724: 29724: explicit constexpr 29724: reverse_iterator(iterator_type __x) 29724: noexcept(noexcept(_Iterator(__x))) 29724: : current(__x) 29724: { } 29724: 29724: 29724: 29724: 29724: constexpr 29724: reverse_iterator(const reverse_iterator& __x) 29724: noexcept(noexcept(_Iterator(__x.current))) 29724: : current(__x.current) 29724: { } 29724: 29724: 29724: reverse_iterator& operator=(const reverse_iterator&) = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: 29724: 29724: constexpr 29724: reverse_iterator(const reverse_iterator<_Iter>& __x) 29724: noexcept(noexcept(_Iterator(__x.current))) 29724: : current(__x.current) 29724: { } 29724: 29724: 29724: template 29724: 29724: 29724: 29724: 29724: constexpr 29724: reverse_iterator& 29724: operator=(const reverse_iterator<_Iter>& __x) 29724: noexcept(noexcept(current = __x.current)) 29724: { 29724: current = __x.current; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr iterator_type 29724: base() const 29724: noexcept(noexcept(_Iterator(current))) 29724: { return current; } 29724: # 255 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: [[__nodiscard__]] 29724: constexpr reference 29724: operator*() const 29724: { 29724: _Iterator __tmp = current; 29724: return *--__tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr pointer 29724: operator->() const 29724: 29724: 29724: 29724: 29724: { 29724: 29724: 29724: _Iterator __tmp = current; 29724: --__tmp; 29724: return _S_to_pointer(__tmp); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator& 29724: operator++() 29724: { 29724: --current; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator 29724: operator++(int) 29724: { 29724: reverse_iterator __tmp = *this; 29724: --current; 29724: return __tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator& 29724: operator--() 29724: { 29724: ++current; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator 29724: operator--(int) 29724: { 29724: reverse_iterator __tmp = *this; 29724: ++current; 29724: return __tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr reverse_iterator 29724: operator+(difference_type __n) const 29724: { return reverse_iterator(current - __n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator& 29724: operator+=(difference_type __n) 29724: { 29724: current -= __n; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr reverse_iterator 29724: operator-(difference_type __n) const 29724: { return reverse_iterator(current + __n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator& 29724: operator-=(difference_type __n) 29724: { 29724: current += __n; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr reference 29724: operator[](difference_type __n) const 29724: { return *(*this + __n); } 29724: # 415 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: private: 29724: template 29724: static constexpr _Tp* 29724: _S_to_pointer(_Tp* __p) 29724: { return __p; } 29724: 29724: template 29724: static constexpr pointer 29724: _S_to_pointer(_Tp __t) 29724: { return __t.operator->(); } 29724: }; 29724: # 438 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator==(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return __x.base() == __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return __y.base() < __x.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator!=(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return __y < __x; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<=(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return !(__y < __x); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>=(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator==(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() == __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() > __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator!=(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() != __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() < __y.base(); } 29724: 29724: template 29724: inline constexpr bool 29724: operator<=(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() >= __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>=(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() <= __y.base(); } 29724: # 615 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr auto 29724: operator-(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: -> decltype(__y.base() - __x.base()) 29724: { return __y.base() - __x.base(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator<_Iterator> 29724: operator+(typename reverse_iterator<_Iterator>::difference_type __n, 29724: const reverse_iterator<_Iterator>& __x) 29724: { return reverse_iterator<_Iterator>(__x.base() - __n); } 29724: 29724: 29724: 29724: template 29724: inline constexpr reverse_iterator<_Iterator> 29724: __make_reverse_iterator(_Iterator __i) 29724: { return reverse_iterator<_Iterator>(__i); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator<_Iterator> 29724: make_reverse_iterator(_Iterator __i) 29724: { return reverse_iterator<_Iterator>(__i); } 29724: # 657 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: 29724: auto 29724: __niter_base(reverse_iterator<_Iterator> __it) 29724: -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) 29724: { return __make_reverse_iterator(__niter_base(__it.base())); } 29724: 29724: template 29724: struct __is_move_iterator > 29724: : __is_move_iterator<_Iterator> 29724: { }; 29724: 29724: template 29724: 29724: auto 29724: __miter_base(reverse_iterator<_Iterator> __it) 29724: -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) 29724: { return __make_reverse_iterator(__miter_base(__it.base())); } 29724: # 688 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class back_insert_iterator 29724: : public iterator 29724: { 29724: protected: 29724: _Container* container; 29724: 29724: public: 29724: 29724: typedef _Container container_type; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: back_insert_iterator(_Container& __x) 29724: : container(std::__addressof(__x)) { } 29724: # 726 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: 29724: back_insert_iterator& 29724: operator=(const typename _Container::value_type& __value) 29724: { 29724: container->push_back(__value); 29724: return *this; 29724: } 29724: 29724: 29724: back_insert_iterator& 29724: operator=(typename _Container::value_type&& __value) 29724: { 29724: container->push_back(std::move(__value)); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: back_insert_iterator& 29724: operator*() 29724: { return *this; } 29724: 29724: 29724: 29724: back_insert_iterator& 29724: operator++() 29724: { return *this; } 29724: 29724: 29724: 29724: back_insert_iterator 29724: operator++(int) 29724: { return *this; } 29724: }; 29724: # 773 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline back_insert_iterator<_Container> 29724: back_inserter(_Container& __x) 29724: { return back_insert_iterator<_Container>(__x); } 29724: # 789 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class front_insert_iterator 29724: : public iterator 29724: { 29724: protected: 29724: _Container* container; 29724: 29724: public: 29724: 29724: typedef _Container container_type; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: front_insert_iterator(_Container& __x) 29724: : container(std::__addressof(__x)) { } 29724: # 827 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: 29724: front_insert_iterator& 29724: operator=(const typename _Container::value_type& __value) 29724: { 29724: container->push_front(__value); 29724: return *this; 29724: } 29724: 29724: 29724: front_insert_iterator& 29724: operator=(typename _Container::value_type&& __value) 29724: { 29724: container->push_front(std::move(__value)); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: front_insert_iterator& 29724: operator*() 29724: { return *this; } 29724: 29724: 29724: 29724: front_insert_iterator& 29724: operator++() 29724: { return *this; } 29724: 29724: 29724: 29724: front_insert_iterator 29724: operator++(int) 29724: { return *this; } 29724: }; 29724: # 874 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline front_insert_iterator<_Container> 29724: front_inserter(_Container& __x) 29724: { return front_insert_iterator<_Container>(__x); } 29724: # 894 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class insert_iterator 29724: : public iterator 29724: { 29724: 29724: 29724: 29724: typedef typename _Container::iterator _Iter; 29724: 29724: protected: 29724: _Container* container; 29724: _Iter iter; 29724: 29724: public: 29724: 29724: typedef _Container container_type; 29724: # 919 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: 29724: insert_iterator(_Container& __x, _Iter __i) 29724: : container(std::__addressof(__x)), iter(__i) {} 29724: # 955 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: 29724: insert_iterator& 29724: operator=(const typename _Container::value_type& __value) 29724: { 29724: iter = container->insert(iter, __value); 29724: ++iter; 29724: return *this; 29724: } 29724: 29724: 29724: insert_iterator& 29724: operator=(typename _Container::value_type&& __value) 29724: { 29724: iter = container->insert(iter, std::move(__value)); 29724: ++iter; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: insert_iterator& 29724: operator*() 29724: { return *this; } 29724: 29724: 29724: 29724: insert_iterator& 29724: operator++() 29724: { return *this; } 29724: 29724: 29724: 29724: insert_iterator& 29724: operator++(int) 29724: { return *this; } 29724: }; 29724: 29724: #pragma GCC diagnostic pop 29724: # 1014 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline insert_iterator<_Container> 29724: inserter(_Container& __x, typename _Container::iterator __i) 29724: { return insert_iterator<_Container>(__x, __i); } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 1037 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class __normal_iterator 29724: { 29724: protected: 29724: _Iterator _M_current; 29724: 29724: typedef std::iterator_traits<_Iterator> __traits_type; 29724: 29724: 29724: template 29724: using __convertible_from 29724: = std::__enable_if_t::value>; 29724: 29724: 29724: public: 29724: typedef _Iterator iterator_type; 29724: typedef typename __traits_type::iterator_category iterator_category; 29724: typedef typename __traits_type::value_type value_type; 29724: typedef typename __traits_type::difference_type difference_type; 29724: typedef typename __traits_type::reference reference; 29724: typedef typename __traits_type::pointer pointer; 29724: 29724: 29724: 29724: 29724: 29724: constexpr __normal_iterator() noexcept 29724: : _M_current(_Iterator()) { } 29724: 29724: explicit 29724: __normal_iterator(const _Iterator& __i) noexcept 29724: : _M_current(__i) { } 29724: 29724: 29724: 29724: template> 29724: 29724: __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) 29724: noexcept 29724: # 1085 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: : _M_current(__i.base()) { } 29724: 29724: 29724: 29724: reference 29724: operator*() const noexcept 29724: { return *_M_current; } 29724: 29724: 29724: pointer 29724: operator->() const noexcept 29724: { return _M_current; } 29724: 29724: 29724: __normal_iterator& 29724: operator++() noexcept 29724: { 29724: ++_M_current; 29724: return *this; 29724: } 29724: 29724: 29724: __normal_iterator 29724: operator++(int) noexcept 29724: { return __normal_iterator(_M_current++); } 29724: 29724: 29724: 29724: __normal_iterator& 29724: operator--() noexcept 29724: { 29724: --_M_current; 29724: return *this; 29724: } 29724: 29724: 29724: __normal_iterator 29724: operator--(int) noexcept 29724: { return __normal_iterator(_M_current--); } 29724: 29724: 29724: 29724: reference 29724: operator[](difference_type __n) const noexcept 29724: { return _M_current[__n]; } 29724: 29724: 29724: __normal_iterator& 29724: operator+=(difference_type __n) noexcept 29724: { _M_current += __n; return *this; } 29724: 29724: 29724: __normal_iterator 29724: operator+(difference_type __n) const noexcept 29724: { return __normal_iterator(_M_current + __n); } 29724: 29724: 29724: __normal_iterator& 29724: operator-=(difference_type __n) noexcept 29724: { _M_current -= __n; return *this; } 29724: 29724: 29724: __normal_iterator 29724: operator-(difference_type __n) const noexcept 29724: { return __normal_iterator(_M_current - __n); } 29724: 29724: 29724: const _Iterator& 29724: base() const noexcept 29724: { return _M_current; } 29724: }; 29724: # 1205 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() == __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() == __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() != __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() != __rhs.base(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() < __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() < __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() > __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() > __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() <= __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() <= __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() >= __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() >= __rhs.base(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: 29724: [[__nodiscard__]] 29724: inline auto 29724: operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept 29724: -> decltype(__lhs.base() - __rhs.base()) 29724: 29724: 29724: 29724: 29724: 29724: { return __lhs.base() - __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline typename __normal_iterator<_Iterator, _Container>::difference_type 29724: operator-(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() - __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline __normal_iterator<_Iterator, _Container> 29724: operator+(typename __normal_iterator<_Iterator, _Container>::difference_type 29724: __n, const __normal_iterator<_Iterator, _Container>& __i) 29724: noexcept 29724: { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } 29724: 29724: 29724: } 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: 29724: _Iterator 29724: __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) 29724: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 29724: { return __it.base(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr auto 29724: __to_address(const __gnu_cxx::__normal_iterator<_Iterator, 29724: _Container>& __it) noexcept 29724: -> decltype(std::__to_address(__it.base())) 29724: { return std::__to_address(__it.base()); } 29724: # 1412 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: namespace __detail 29724: { 29724: # 1428 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: } 29724: # 1439 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class move_iterator 29724: 29724: 29724: 29724: { 29724: _Iterator _M_current; 29724: 29724: using __traits_type = iterator_traits<_Iterator>; 29724: 29724: using __base_ref = typename __traits_type::reference; 29724: 29724: 29724: template 29724: friend class move_iterator; 29724: # 1478 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: public: 29724: using iterator_type = _Iterator; 29724: # 1490 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: typedef typename __traits_type::iterator_category iterator_category; 29724: typedef typename __traits_type::value_type value_type; 29724: typedef typename __traits_type::difference_type difference_type; 29724: 29724: typedef _Iterator pointer; 29724: 29724: 29724: using reference 29724: = __conditional_t::value, 29724: typename remove_reference<__base_ref>::type&&, 29724: __base_ref>; 29724: 29724: 29724: constexpr 29724: move_iterator() 29724: : _M_current() { } 29724: 29724: explicit constexpr 29724: move_iterator(iterator_type __i) 29724: : _M_current(std::move(__i)) { } 29724: 29724: template 29724: 29724: 29724: 29724: constexpr 29724: move_iterator(const move_iterator<_Iter>& __i) 29724: : _M_current(__i._M_current) { } 29724: 29724: template 29724: 29724: 29724: 29724: 29724: constexpr 29724: move_iterator& operator=(const move_iterator<_Iter>& __i) 29724: { 29724: _M_current = __i._M_current; 29724: return *this; 29724: } 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr iterator_type 29724: base() const 29724: { return _M_current; } 29724: # 1548 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: [[__nodiscard__]] 29724: constexpr reference 29724: operator*() const 29724: 29724: 29724: 29724: { return static_cast(*_M_current); } 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr pointer 29724: operator->() const 29724: { return _M_current; } 29724: 29724: constexpr move_iterator& 29724: operator++() 29724: { 29724: ++_M_current; 29724: return *this; 29724: } 29724: 29724: constexpr move_iterator 29724: operator++(int) 29724: { 29724: move_iterator __tmp = *this; 29724: ++_M_current; 29724: return __tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr move_iterator& 29724: operator--() 29724: { 29724: --_M_current; 29724: return *this; 29724: } 29724: 29724: constexpr move_iterator 29724: operator--(int) 29724: { 29724: move_iterator __tmp = *this; 29724: --_M_current; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr move_iterator 29724: operator+(difference_type __n) const 29724: { return move_iterator(_M_current + __n); } 29724: 29724: constexpr move_iterator& 29724: operator+=(difference_type __n) 29724: { 29724: _M_current += __n; 29724: return *this; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr move_iterator 29724: operator-(difference_type __n) const 29724: { return move_iterator(_M_current - __n); } 29724: 29724: constexpr move_iterator& 29724: operator-=(difference_type __n) 29724: { 29724: _M_current -= __n; 29724: return *this; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr reference 29724: operator[](difference_type __n) const 29724: 29724: 29724: 29724: { return std::move(_M_current[__n]); } 29724: # 1662 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: }; 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator==(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: 29724: 29724: 29724: { return __x.base() == __y.base(); } 29724: # 1683 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator!=(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: 29724: 29724: 29724: { return __x.base() < __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<=(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: 29724: 29724: 29724: { return !(__y < __x); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: 29724: 29724: 29724: { return __y < __x; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>=(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: 29724: 29724: 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator==(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: 29724: { return __x.base() == __y.base(); } 29724: # 1750 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator!=(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: { return __x.base() < __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<=(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: { return !(__y < __x); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: { return __y < __x; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>=(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr auto 29724: operator-(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: -> decltype(__x.base() - __y.base()) 29724: { return __x.base() - __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr move_iterator<_Iterator> 29724: operator+(typename move_iterator<_Iterator>::difference_type __n, 29724: const move_iterator<_Iterator>& __x) 29724: 29724: 29724: 29724: { return __x + __n; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr move_iterator<_Iterator> 29724: make_move_iterator(_Iterator __i) 29724: { return move_iterator<_Iterator>(std::move(__i)); } 29724: 29724: template::value_type>::value, 29724: _Iterator, move_iterator<_Iterator>>> 29724: inline constexpr _ReturnType 29724: __make_move_if_noexcept_iterator(_Iterator __i) 29724: { return _ReturnType(__i); } 29724: 29724: 29724: 29724: template::value, 29724: const _Tp*, move_iterator<_Tp*>>> 29724: inline constexpr _ReturnType 29724: __make_move_if_noexcept_iterator(_Tp* __i) 29724: { return _ReturnType(__i); } 29724: # 2964 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: 29724: auto 29724: __niter_base(move_iterator<_Iterator> __it) 29724: -> decltype(make_move_iterator(__niter_base(__it.base()))) 29724: { return make_move_iterator(__niter_base(__it.base())); } 29724: 29724: template 29724: struct __is_move_iterator > 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template 29724: 29724: auto 29724: __miter_base(move_iterator<_Iterator> __it) 29724: -> decltype(__miter_base(__it.base())) 29724: { return __miter_base(__it.base()); } 29724: # 2996 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: using __iter_key_t = remove_const_t< 29724: 29724: 29724: 29724: typename iterator_traits<_InputIterator>::value_type::first_type>; 29724: 29724: 29724: template 29724: using __iter_val_t 29724: 29724: 29724: 29724: = typename iterator_traits<_InputIterator>::value_type::second_type; 29724: 29724: 29724: template 29724: struct pair; 29724: 29724: template 29724: using __iter_to_alloc_t 29724: = pair, __iter_val_t<_InputIterator>>; 29724: 29724: 29724: 29724: } 29724: # 68 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/debug/debug.h" 1 3 29724: # 48 "/usr/include/c++/14/debug/debug.h" 3 29724: namespace std 29724: { 29724: namespace __debug { } 29724: } 29724: 29724: 29724: 29724: 29724: namespace __gnu_debug 29724: { 29724: using namespace std::__debug; 29724: 29724: template 29724: struct _Safe_iterator; 29724: } 29724: # 70 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/predefined_ops.h" 1 3 29724: # 35 "/usr/include/c++/14/bits/predefined_ops.h" 3 29724: namespace __gnu_cxx 29724: { 29724: namespace __ops 29724: { 29724: struct _Iter_less_iter 29724: { 29724: template 29724: constexpr 29724: bool 29724: operator()(_Iterator1 __it1, _Iterator2 __it2) const 29724: { return *__it1 < *__it2; } 29724: }; 29724: 29724: constexpr 29724: inline _Iter_less_iter 29724: __iter_less_iter() 29724: { return _Iter_less_iter(); } 29724: 29724: struct _Iter_less_val 29724: { 29724: 29724: constexpr _Iter_less_val() = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: _Iter_less_val(_Iter_less_iter) { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it, _Value& __val) const 29724: { return *__it < __val; } 29724: }; 29724: 29724: 29724: inline _Iter_less_val 29724: __iter_less_val() 29724: { return _Iter_less_val(); } 29724: 29724: 29724: inline _Iter_less_val 29724: __iter_comp_val(_Iter_less_iter) 29724: { return _Iter_less_val(); } 29724: 29724: struct _Val_less_iter 29724: { 29724: 29724: constexpr _Val_less_iter() = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: _Val_less_iter(_Iter_less_iter) { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Value& __val, _Iterator __it) const 29724: { return __val < *__it; } 29724: }; 29724: 29724: 29724: inline _Val_less_iter 29724: __val_less_iter() 29724: { return _Val_less_iter(); } 29724: 29724: 29724: inline _Val_less_iter 29724: __val_comp_iter(_Iter_less_iter) 29724: { return _Val_less_iter(); } 29724: 29724: struct _Iter_equal_to_iter 29724: { 29724: template 29724: 29724: bool 29724: operator()(_Iterator1 __it1, _Iterator2 __it2) const 29724: { return *__it1 == *__it2; } 29724: }; 29724: 29724: 29724: inline _Iter_equal_to_iter 29724: __iter_equal_to_iter() 29724: { return _Iter_equal_to_iter(); } 29724: 29724: struct _Iter_equal_to_val 29724: { 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it, _Value& __val) const 29724: { return *__it == __val; } 29724: }; 29724: 29724: 29724: inline _Iter_equal_to_val 29724: __iter_equal_to_val() 29724: { return _Iter_equal_to_val(); } 29724: 29724: 29724: inline _Iter_equal_to_val 29724: __iter_comp_val(_Iter_equal_to_iter) 29724: { return _Iter_equal_to_val(); } 29724: 29724: template 29724: struct _Iter_comp_iter 29724: { 29724: _Compare _M_comp; 29724: 29724: explicit constexpr 29724: _Iter_comp_iter(_Compare __comp) 29724: : _M_comp(std::move(__comp)) 29724: { } 29724: 29724: template 29724: constexpr 29724: bool 29724: operator()(_Iterator1 __it1, _Iterator2 __it2) 29724: { return bool(_M_comp(*__it1, *__it2)); } 29724: }; 29724: 29724: template 29724: constexpr 29724: inline _Iter_comp_iter<_Compare> 29724: __iter_comp_iter(_Compare __comp) 29724: { return _Iter_comp_iter<_Compare>(std::move(__comp)); } 29724: 29724: template 29724: struct _Iter_comp_val 29724: { 29724: _Compare _M_comp; 29724: 29724: 29724: explicit 29724: _Iter_comp_val(_Compare __comp) 29724: : _M_comp(std::move(__comp)) 29724: { } 29724: 29724: 29724: explicit 29724: _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) 29724: : _M_comp(__comp._M_comp) 29724: { } 29724: 29724: 29724: 29724: explicit 29724: _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) 29724: : _M_comp(std::move(__comp._M_comp)) 29724: { } 29724: 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it, _Value& __val) 29724: { return bool(_M_comp(*__it, __val)); } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_comp_val<_Compare> 29724: __iter_comp_val(_Compare __comp) 29724: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 29724: 29724: template 29724: 29724: inline _Iter_comp_val<_Compare> 29724: __iter_comp_val(_Iter_comp_iter<_Compare> __comp) 29724: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 29724: 29724: template 29724: struct _Val_comp_iter 29724: { 29724: _Compare _M_comp; 29724: 29724: 29724: explicit 29724: _Val_comp_iter(_Compare __comp) 29724: : _M_comp(std::move(__comp)) 29724: { } 29724: 29724: 29724: explicit 29724: _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) 29724: : _M_comp(__comp._M_comp) 29724: { } 29724: 29724: 29724: 29724: explicit 29724: _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) 29724: : _M_comp(std::move(__comp._M_comp)) 29724: { } 29724: 29724: 29724: template 29724: 29724: bool 29724: operator()(_Value& __val, _Iterator __it) 29724: { return bool(_M_comp(__val, *__it)); } 29724: }; 29724: 29724: template 29724: 29724: inline _Val_comp_iter<_Compare> 29724: __val_comp_iter(_Compare __comp) 29724: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 29724: 29724: template 29724: 29724: inline _Val_comp_iter<_Compare> 29724: __val_comp_iter(_Iter_comp_iter<_Compare> __comp) 29724: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 29724: 29724: template 29724: struct _Iter_equals_val 29724: { 29724: _Value& _M_value; 29724: 29724: 29724: explicit 29724: _Iter_equals_val(_Value& __value) 29724: : _M_value(__value) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it) 29724: { return *__it == _M_value; } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_equals_val<_Value> 29724: __iter_equals_val(_Value& __val) 29724: { return _Iter_equals_val<_Value>(__val); } 29724: 29724: template 29724: struct _Iter_equals_iter 29724: { 29724: _Iterator1 _M_it1; 29724: 29724: 29724: explicit 29724: _Iter_equals_iter(_Iterator1 __it1) 29724: : _M_it1(__it1) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator2 __it2) 29724: { return *__it2 == *_M_it1; } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_equals_iter<_Iterator> 29724: __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) 29724: { return _Iter_equals_iter<_Iterator>(__it); } 29724: 29724: template 29724: struct _Iter_pred 29724: { 29724: _Predicate _M_pred; 29724: 29724: 29724: explicit 29724: _Iter_pred(_Predicate __pred) 29724: : _M_pred(std::move(__pred)) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it) 29724: { return bool(_M_pred(*__it)); } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_pred<_Predicate> 29724: __pred_iter(_Predicate __pred) 29724: { return _Iter_pred<_Predicate>(std::move(__pred)); } 29724: 29724: template 29724: struct _Iter_comp_to_val 29724: { 29724: _Compare _M_comp; 29724: _Value& _M_value; 29724: 29724: 29724: _Iter_comp_to_val(_Compare __comp, _Value& __value) 29724: : _M_comp(std::move(__comp)), _M_value(__value) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it) 29724: { return bool(_M_comp(*__it, _M_value)); } 29724: }; 29724: 29724: template 29724: _Iter_comp_to_val<_Compare, _Value> 29724: 29724: __iter_comp_val(_Compare __comp, _Value &__val) 29724: { 29724: return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); 29724: } 29724: 29724: template 29724: struct _Iter_comp_to_iter 29724: { 29724: _Compare _M_comp; 29724: _Iterator1 _M_it1; 29724: 29724: 29724: _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) 29724: : _M_comp(std::move(__comp)), _M_it1(__it1) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator2 __it2) 29724: { return bool(_M_comp(*__it2, *_M_it1)); } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_comp_to_iter<_Compare, _Iterator> 29724: __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) 29724: { 29724: return _Iter_comp_to_iter<_Compare, _Iterator>( 29724: std::move(__comp._M_comp), __it); 29724: } 29724: 29724: template 29724: struct _Iter_negate 29724: { 29724: _Predicate _M_pred; 29724: 29724: 29724: explicit 29724: _Iter_negate(_Predicate __pred) 29724: : _M_pred(std::move(__pred)) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it) 29724: { return !bool(_M_pred(*__it)); } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_negate<_Predicate> 29724: __negate(_Iter_pred<_Predicate> __pred) 29724: { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } 29724: 29724: } 29724: } 29724: # 72 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bit" 1 3 29724: # 32 "/usr/include/c++/14/bit" 3 29724: 29724: # 33 "/usr/include/c++/14/bit" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/concepts" 1 3 29724: # 33 "/usr/include/c++/14/concepts" 3 29724: 29724: # 34 "/usr/include/c++/14/concepts" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 37 "/usr/include/c++/14/concepts" 2 3 29724: # 37 "/usr/include/c++/14/bit" 2 3 29724: # 61 "/usr/include/c++/14/bit" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 62 "/usr/include/c++/14/bit" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 155 "/usr/include/c++/14/bit" 3 29724: template 29724: constexpr _Tp 29724: __rotl(_Tp __x, int __s) noexcept 29724: { 29724: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29724: if constexpr ((_Nd & (_Nd - 1)) == 0) 29724: { 29724: 29724: 29724: constexpr unsigned __uNd = _Nd; 29724: const unsigned __r = __s; 29724: return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); 29724: } 29724: const int __r = __s % _Nd; 29724: if (__r == 0) 29724: return __x; 29724: else if (__r > 0) 29724: return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); 29724: else 29724: return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); 29724: } 29724: 29724: template 29724: constexpr _Tp 29724: __rotr(_Tp __x, int __s) noexcept 29724: { 29724: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29724: if constexpr ((_Nd & (_Nd - 1)) == 0) 29724: { 29724: 29724: 29724: constexpr unsigned __uNd = _Nd; 29724: const unsigned __r = __s; 29724: return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); 29724: } 29724: const int __r = __s % _Nd; 29724: if (__r == 0) 29724: return __x; 29724: else if (__r > 0) 29724: return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); 29724: else 29724: return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); 29724: } 29724: 29724: template 29724: constexpr int 29724: __countl_zero(_Tp __x) noexcept 29724: { 29724: using __gnu_cxx::__int_traits; 29724: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29724: 29724: if (__x == 0) 29724: return _Nd; 29724: 29724: constexpr auto _Nd_ull = __int_traits::__digits; 29724: constexpr auto _Nd_ul = __int_traits::__digits; 29724: constexpr auto _Nd_u = __int_traits::__digits; 29724: 29724: if constexpr (_Nd <= _Nd_u) 29724: { 29724: constexpr int __diff = _Nd_u - _Nd; 29724: return __builtin_clz(__x) - __diff; 29724: } 29724: else if constexpr (_Nd <= _Nd_ul) 29724: { 29724: constexpr int __diff = _Nd_ul - _Nd; 29724: return __builtin_clzl(__x) - __diff; 29724: } 29724: else if constexpr (_Nd <= _Nd_ull) 29724: { 29724: constexpr int __diff = _Nd_ull - _Nd; 29724: return __builtin_clzll(__x) - __diff; 29724: } 29724: else 29724: { 29724: static_assert(_Nd <= (2 * _Nd_ull), 29724: "Maximum supported integer size is 128-bit"); 29724: 29724: unsigned long long __high = __x >> _Nd_ull; 29724: if (__high != 0) 29724: { 29724: constexpr int __diff = (2 * _Nd_ull) - _Nd; 29724: return __builtin_clzll(__high) - __diff; 29724: } 29724: constexpr auto __max_ull = __int_traits::__max; 29724: unsigned long long __low = __x & __max_ull; 29724: return (_Nd - _Nd_ull) + __builtin_clzll(__low); 29724: } 29724: } 29724: 29724: template 29724: constexpr int 29724: __countl_one(_Tp __x) noexcept 29724: { 29724: return std::__countl_zero<_Tp>((_Tp)~__x); 29724: } 29724: 29724: template 29724: constexpr int 29724: __countr_zero(_Tp __x) noexcept 29724: { 29724: using __gnu_cxx::__int_traits; 29724: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29724: 29724: if (__x == 0) 29724: return _Nd; 29724: 29724: constexpr auto _Nd_ull = __int_traits::__digits; 29724: constexpr auto _Nd_ul = __int_traits::__digits; 29724: constexpr auto _Nd_u = __int_traits::__digits; 29724: 29724: if constexpr (_Nd <= _Nd_u) 29724: return __builtin_ctz(__x); 29724: else if constexpr (_Nd <= _Nd_ul) 29724: return __builtin_ctzl(__x); 29724: else if constexpr (_Nd <= _Nd_ull) 29724: return __builtin_ctzll(__x); 29724: else 29724: { 29724: static_assert(_Nd <= (2 * _Nd_ull), 29724: "Maximum supported integer size is 128-bit"); 29724: 29724: constexpr auto __max_ull = __int_traits::__max; 29724: unsigned long long __low = __x & __max_ull; 29724: if (__low != 0) 29724: return __builtin_ctzll(__low); 29724: unsigned long long __high = __x >> _Nd_ull; 29724: return __builtin_ctzll(__high) + _Nd_ull; 29724: } 29724: } 29724: 29724: template 29724: constexpr int 29724: __countr_one(_Tp __x) noexcept 29724: { 29724: return std::__countr_zero((_Tp)~__x); 29724: } 29724: 29724: template 29724: constexpr int 29724: __popcount(_Tp __x) noexcept 29724: { 29724: using __gnu_cxx::__int_traits; 29724: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29724: 29724: constexpr auto _Nd_ull = __int_traits::__digits; 29724: constexpr auto _Nd_ul = __int_traits::__digits; 29724: constexpr auto _Nd_u = __int_traits::__digits; 29724: 29724: if constexpr (_Nd <= _Nd_u) 29724: return __builtin_popcount(__x); 29724: else if constexpr (_Nd <= _Nd_ul) 29724: return __builtin_popcountl(__x); 29724: else if constexpr (_Nd <= _Nd_ull) 29724: return __builtin_popcountll(__x); 29724: else 29724: { 29724: static_assert(_Nd <= (2 * _Nd_ull), 29724: "Maximum supported integer size is 128-bit"); 29724: 29724: constexpr auto __max_ull = __int_traits::__max; 29724: unsigned long long __low = __x & __max_ull; 29724: unsigned long long __high = __x >> _Nd_ull; 29724: return __builtin_popcountll(__low) + __builtin_popcountll(__high); 29724: } 29724: } 29724: 29724: template 29724: constexpr bool 29724: __has_single_bit(_Tp __x) noexcept 29724: { return std::__popcount(__x) == 1; } 29724: 29724: template 29724: constexpr _Tp 29724: __bit_ceil(_Tp __x) noexcept 29724: { 29724: using __gnu_cxx::__int_traits; 29724: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29724: if (__x == 0 || __x == 1) 29724: return 1; 29724: auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); 29724: 29724: 29724: 29724: 29724: if (!std::__is_constant_evaluated()) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__shift_exponent != __int_traits<_Tp>::__digits)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: using __promoted_type = decltype(__x << 1); 29724: if constexpr (!is_same<__promoted_type, _Tp>::value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; 29724: __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; 29724: } 29724: return (_Tp)1u << __shift_exponent; 29724: } 29724: 29724: template 29724: constexpr _Tp 29724: __bit_floor(_Tp __x) noexcept 29724: { 29724: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29724: if (__x == 0) 29724: return 0; 29724: return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); 29724: } 29724: 29724: template 29724: constexpr int 29724: __bit_width(_Tp __x) noexcept 29724: { 29724: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29724: return _Nd - std::__countl_zero(__x); 29724: } 29724: # 482 "/usr/include/c++/14/bit" 3 29724: 29724: } 29724: # 77 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr 29724: inline int 29724: __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) 29724: { 29724: 29724: static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); 29724: # 108 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); 29724: } 29724: # 152 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline void 29724: iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) 29724: { 29724: 29724: 29724: 29724: 29724: # 185 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: swap(*__a, *__b); 29724: 29724: } 29724: # 201 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: _ForwardIterator2 29724: swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2) 29724: std::iter_swap(__first1, __first2); 29724: return __first2; 29724: } 29724: # 230 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline const _Tp& 29724: min(const _Tp& __a, const _Tp& __b) 29724: { 29724: 29724: 29724: 29724: if (__b < __a) 29724: return __b; 29724: return __a; 29724: } 29724: # 254 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline const _Tp& 29724: max(const _Tp& __a, const _Tp& __b) 29724: { 29724: 29724: 29724: 29724: if (__a < __b) 29724: return __b; 29724: return __a; 29724: } 29724: # 278 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline const _Tp& 29724: min(const _Tp& __a, const _Tp& __b, _Compare __comp) 29724: { 29724: 29724: if (__comp(__b, __a)) 29724: return __b; 29724: return __a; 29724: } 29724: # 300 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline const _Tp& 29724: max(const _Tp& __a, const _Tp& __b, _Compare __comp) 29724: { 29724: 29724: if (__comp(__a, __b)) 29724: return __b; 29724: return __a; 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: inline _Iterator 29724: __niter_base(_Iterator __it) 29724: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 29724: { return __it; } 29724: # 332 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: decltype(std::__niter_base(std::declval<_Ite>())) 29724: __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, 29724: std::random_access_iterator_tag>&) 29724: noexcept(std::is_nothrow_copy_constructible<_Ite>::value); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline _From 29724: __niter_wrap(_From __from, _To __res) 29724: { return __from + (std::__niter_base(__res) - std::__niter_base(__from)); } 29724: 29724: 29724: template 29724: 29724: inline _Iterator 29724: __niter_wrap(const _Iterator&, _Iterator __res) 29724: { return __res; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __copy_move 29724: { 29724: template 29724: 29724: static _OI 29724: __copy_m(_II __first, _II __last, _OI __result) 29724: { 29724: for (; __first != __last; ++__result, (void)++__first) 29724: *__result = *__first; 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct __copy_move 29724: { 29724: template 29724: 29724: static _OI 29724: __copy_m(_II __first, _II __last, _OI __result) 29724: { 29724: for (; __first != __last; ++__result, (void)++__first) 29724: *__result = std::move(*__first); 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: struct __copy_move 29724: { 29724: template 29724: 29724: static _OI 29724: __copy_m(_II __first, _II __last, _OI __result) 29724: { 29724: typedef typename iterator_traits<_II>::difference_type _Distance; 29724: for(_Distance __n = __last - __first; __n > 0; --__n) 29724: { 29724: *__result = *__first; 29724: ++__first; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: static void 29724: __assign_one(_Tp* __to, _Up* __from) 29724: { *__to = *__from; } 29724: }; 29724: 29724: 29724: template<> 29724: struct __copy_move 29724: { 29724: template 29724: 29724: static _OI 29724: __copy_m(_II __first, _II __last, _OI __result) 29724: { 29724: typedef typename iterator_traits<_II>::difference_type _Distance; 29724: for(_Distance __n = __last - __first; __n > 0; --__n) 29724: { 29724: *__result = std::move(*__first); 29724: ++__first; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: static void 29724: __assign_one(_Tp* __to, _Up* __from) 29724: { *__to = std::move(*__from); } 29724: }; 29724: 29724: 29724: template 29724: struct __copy_move<_IsMove, true, random_access_iterator_tag> 29724: { 29724: template 29724: 29724: static _Up* 29724: __copy_m(_Tp* __first, _Tp* __last, _Up* __result) 29724: { 29724: const ptrdiff_t _Num = __last - __first; 29724: if (__builtin_expect(_Num > 1, true)) 29724: __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); 29724: else if (_Num == 1) 29724: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 29724: __assign_one(__result, __first); 29724: return __result + _Num; 29724: } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct _Deque_iterator; 29724: 29724: struct _Bit_iterator; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct char_traits; 29724: 29724: template 29724: class istreambuf_iterator; 29724: 29724: template 29724: class ostreambuf_iterator; 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 29724: __copy_move_a2(_CharT*, _CharT*, 29724: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 29724: __copy_move_a2(const _CharT*, const _CharT*, 29724: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: _CharT*>::__type 29724: __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, 29724: istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_char<_CharT>::__value, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29724: __copy_move_a2( 29724: istreambuf_iterator<_CharT, char_traits<_CharT> >, 29724: istreambuf_iterator<_CharT, char_traits<_CharT> >, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*>); 29724: 29724: 29724: template 29724: 29724: inline _OI 29724: __copy_move_a2(_II __first, _II __last, _OI __result) 29724: { 29724: typedef typename iterator_traits<_II>::iterator_category _Category; 29724: 29724: 29724: 29724: 29724: 29724: return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, 29724: _Category>::__copy_m(__first, __last, __result); 29724: } 29724: 29724: template 29724: _OI 29724: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: _OI); 29724: 29724: template 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29724: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29724: __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 29724: 29724: template 29724: 29724: inline _OI 29724: __copy_move_a1(_II __first, _II __last, _OI __result) 29724: { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: 29724: inline _OI 29724: __copy_move_a(_II __first, _II __last, _OI __result) 29724: { 29724: return std::__niter_wrap(__result, 29724: std::__copy_move_a1<_IsMove>(std::__niter_base(__first), 29724: std::__niter_base(__last), 29724: std::__niter_base(__result))); 29724: } 29724: 29724: template 29724: 29724: _OI 29724: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: _OI); 29724: 29724: template 29724: 29724: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29724: __copy_move_a(_II, _II, 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 29724: 29724: template 29724: 29724: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 29724: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29724: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29724: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 29724: 29724: template 29724: 29724: _OutputIterator 29724: __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, 29724: bool) 29724: { 29724: if (__n > 0) 29724: { 29724: while (true) 29724: { 29724: *__result = *__first; 29724: ++__result; 29724: if (--__n > 0) 29724: ++__first; 29724: else 29724: break; 29724: } 29724: } 29724: return __result; 29724: } 29724: 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_char<_CharT>::__value, _CharT*>::__type 29724: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, 29724: _Size, _CharT*, bool); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_char<_CharT>::__value, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29724: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*>, 29724: bool); 29724: # 639 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _OI 29724: copy(_II __first, _II __last, _OI __result) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__copy_move_a<__is_move_iterator<_II>::__value> 29724: (std::__miter_base(__first), std::__miter_base(__last), __result); 29724: } 29724: # 672 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _OI 29724: move(_II __first, _II __last, _OI __result) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__copy_move_a(std::__miter_base(__first), 29724: std::__miter_base(__last), __result); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __copy_move_backward 29724: { 29724: template 29724: 29724: static _BI2 29724: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: while (__first != __last) 29724: *--__result = *--__last; 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct __copy_move_backward 29724: { 29724: template 29724: 29724: static _BI2 29724: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: while (__first != __last) 29724: *--__result = std::move(*--__last); 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: struct __copy_move_backward 29724: { 29724: template 29724: 29724: static _BI2 29724: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: typename iterator_traits<_BI1>::difference_type 29724: __n = __last - __first; 29724: for (; __n > 0; --__n) 29724: *--__result = *--__last; 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: struct __copy_move_backward 29724: { 29724: template 29724: 29724: static _BI2 29724: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: typename iterator_traits<_BI1>::difference_type 29724: __n = __last - __first; 29724: for (; __n > 0; --__n) 29724: *--__result = std::move(*--__last); 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> 29724: { 29724: template 29724: 29724: static _Up* 29724: __copy_move_b(_Tp* __first, _Tp* __last, _Up* __result) 29724: { 29724: const ptrdiff_t _Num = __last - __first; 29724: if (__builtin_expect(_Num > 1, true)) 29724: __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); 29724: else if (_Num == 1) 29724: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 29724: __assign_one(__result - 1, __first); 29724: return __result - _Num; 29724: } 29724: }; 29724: 29724: template 29724: 29724: inline _BI2 29724: __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: typedef typename iterator_traits<_BI1>::iterator_category _Category; 29724: 29724: 29724: 29724: 29724: 29724: return std::__copy_move_backward<_IsMove, 29724: __memcpyable<_BI2, _BI1>::__value, 29724: _Category>::__copy_move_b(__first, 29724: __last, 29724: __result); 29724: } 29724: 29724: template 29724: 29724: inline _BI2 29724: __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: _OI 29724: __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: _OI); 29724: 29724: template 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29724: __copy_move_backward_a1( 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29724: __copy_move_backward_a1(_II, _II, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 29724: 29724: template 29724: 29724: inline _OI 29724: __copy_move_backward_a(_II __first, _II __last, _OI __result) 29724: { 29724: return std::__niter_wrap(__result, 29724: std::__copy_move_backward_a1<_IsMove> 29724: (std::__niter_base(__first), std::__niter_base(__last), 29724: std::__niter_base(__result))); 29724: } 29724: 29724: template 29724: 29724: _OI 29724: __copy_move_backward_a( 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: _OI); 29724: 29724: template 29724: 29724: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29724: __copy_move_backward_a(_II, _II, 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 29724: 29724: template 29724: 29724: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 29724: __copy_move_backward_a( 29724: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29724: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29724: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 29724: # 875 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _BI2 29724: copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> 29724: (std::__miter_base(__first), std::__miter_base(__last), __result); 29724: } 29724: # 910 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _BI2 29724: move_backward(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__copy_move_backward_a(std::__miter_base(__first), 29724: std::__miter_base(__last), 29724: __result); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline typename 29724: __gnu_cxx::__enable_if::__value, void>::__type 29724: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __value) 29724: { 29724: for (; __first != __last; ++__first) 29724: *__first = __value; 29724: } 29724: 29724: template 29724: 29724: inline typename 29724: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type 29724: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __value) 29724: { 29724: const _Tp __tmp = __value; 29724: for (; __first != __last; ++__first) 29724: *__first = __tmp; 29724: } 29724: 29724: 29724: template 29724: 29724: inline typename 29724: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type 29724: __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) 29724: { 29724: const _Tp __tmp = __c; 29724: # 971 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: if (const size_t __len = __last - __first) 29724: __builtin_memset(__first, static_cast(__tmp), __len); 29724: } 29724: 29724: template 29724: 29724: inline void 29724: __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, 29724: ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, 29724: const _Tp& __value) 29724: { std::__fill_a1(__first.base(), __last.base(), __value); } 29724: 29724: template 29724: void 29724: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 29724: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 29724: const _VTp&); 29724: 29724: 29724: void 29724: __fill_a1(std::_Bit_iterator, std::_Bit_iterator, 29724: const bool&); 29724: 29724: template 29724: 29724: inline void 29724: __fill_a(_FIte __first, _FIte __last, const _Tp& __value) 29724: { std::__fill_a1(__first, __last, __value); } 29724: 29724: template 29724: 29724: void 29724: __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: const _Tp&); 29724: # 1019 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline void 29724: fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: std::__fill_a(__first, __last, __value); 29724: } 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: 29724: inline constexpr int 29724: __size_to_integer(int __n) { return __n; } 29724: inline constexpr unsigned 29724: __size_to_integer(unsigned __n) { return __n; } 29724: inline constexpr long 29724: __size_to_integer(long __n) { return __n; } 29724: inline constexpr unsigned long 29724: __size_to_integer(unsigned long __n) { return __n; } 29724: inline constexpr long long 29724: __size_to_integer(long long __n) { return __n; } 29724: inline constexpr unsigned long long 29724: __size_to_integer(unsigned long long __n) { return __n; } 29724: # 1073 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: inline constexpr long long 29724: __size_to_integer(float __n) { return (long long)__n; } 29724: inline constexpr long long 29724: __size_to_integer(double __n) { return (long long)__n; } 29724: inline constexpr long long 29724: __size_to_integer(long double __n) { return (long long)__n; } 29724: 29724: 29724: 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: template 29724: 29724: inline typename 29724: __gnu_cxx::__enable_if::__value, _OutputIterator>::__type 29724: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 29724: { 29724: for (; __n > 0; --__n, (void) ++__first) 29724: *__first = __value; 29724: return __first; 29724: } 29724: 29724: template 29724: 29724: inline typename 29724: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type 29724: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 29724: { 29724: const _Tp __tmp = __value; 29724: for (; __n > 0; --__n, (void) ++__first) 29724: *__first = __tmp; 29724: return __first; 29724: } 29724: 29724: template 29724: 29724: ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29724: __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, 29724: _Size __n, const _Tp& __value, 29724: std::input_iterator_tag); 29724: 29724: template 29724: 29724: inline _OutputIterator 29724: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29724: std::output_iterator_tag) 29724: { 29724: 29724: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29724: 29724: return __fill_n_a1(__first, __n, __value); 29724: } 29724: 29724: template 29724: 29724: inline _OutputIterator 29724: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29724: std::input_iterator_tag) 29724: { 29724: 29724: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29724: 29724: return __fill_n_a1(__first, __n, __value); 29724: } 29724: 29724: template 29724: 29724: inline _OutputIterator 29724: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29724: std::random_access_iterator_tag) 29724: { 29724: 29724: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29724: 29724: if (__n <= 0) 29724: return __first; 29724: 29724: ; 29724: 29724: std::__fill_a(__first, __first + __n, __value); 29724: return __first + __n; 29724: } 29724: # 1175 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _OI 29724: fill_n(_OI __first, _Size __n, const _Tp& __value) 29724: { 29724: 29724: 29724: 29724: return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: template 29724: struct __equal 29724: { 29724: template 29724: 29724: static bool 29724: equal(_II1 __first1, _II1 __last1, _II2 __first2) 29724: { 29724: for (; __first1 != __last1; ++__first1, (void) ++__first2) 29724: if (!(*__first1 == *__first2)) 29724: return false; 29724: return true; 29724: } 29724: }; 29724: 29724: template<> 29724: struct __equal 29724: { 29724: template 29724: 29724: static bool 29724: equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) 29724: { 29724: if (const size_t __len = (__last1 - __first1)) 29724: return !std::__memcmp(__first1, __first2, __len); 29724: return true; 29724: } 29724: }; 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, bool>::__type 29724: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: _II); 29724: 29724: template 29724: bool 29724: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, bool>::__type 29724: __equal_aux1(_II, _II, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr>); 29724: 29724: template 29724: 29724: inline bool 29724: __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) 29724: { 29724: typedef typename iterator_traits<_II1>::value_type _ValueType1; 29724: const bool __simple = ((__is_integer<_ValueType1>::__value 29724: || __is_pointer<_ValueType1>::__value) 29724: && __memcmpable<_II1, _II2>::__value); 29724: return std::__equal<__simple>::equal(__first1, __last1, __first2); 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) 29724: { 29724: return std::__equal_aux1(std::__niter_base(__first1), 29724: std::__niter_base(__last1), 29724: std::__niter_base(__first2)); 29724: } 29724: 29724: template 29724: 29724: bool 29724: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29724: _II2); 29724: 29724: template 29724: 29724: bool 29724: __equal_aux(_II1, _II1, 29724: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 29724: 29724: template 29724: 29724: bool 29724: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 29724: 29724: template 29724: struct __lc_rai 29724: { 29724: template 29724: 29724: static _II1 29724: __newlast1(_II1, _II1 __last1, _II2, _II2) 29724: { return __last1; } 29724: 29724: template 29724: 29724: static bool 29724: __cnd2(_II __first, _II __last) 29724: { return __first != __last; } 29724: }; 29724: 29724: template<> 29724: struct __lc_rai 29724: { 29724: template 29724: 29724: static _RAI1 29724: __newlast1(_RAI1 __first1, _RAI1 __last1, 29724: _RAI2 __first2, _RAI2 __last2) 29724: { 29724: const typename iterator_traits<_RAI1>::difference_type 29724: __diff1 = __last1 - __first1; 29724: const typename iterator_traits<_RAI2>::difference_type 29724: __diff2 = __last2 - __first2; 29724: return __diff2 < __diff1 ? __first1 + __diff2 : __last1; 29724: } 29724: 29724: template 29724: static bool 29724: __cnd2(_RAI, _RAI) 29724: { return true; } 29724: }; 29724: 29724: template 29724: 29724: bool 29724: __lexicographical_compare_impl(_II1 __first1, _II1 __last1, 29724: _II2 __first2, _II2 __last2, 29724: _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_II1>::iterator_category _Category1; 29724: typedef typename iterator_traits<_II2>::iterator_category _Category2; 29724: typedef std::__lc_rai<_Category1, _Category2> __rai_type; 29724: 29724: __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); 29724: for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); 29724: ++__first1, (void)++__first2) 29724: { 29724: if (__comp(__first1, __first2)) 29724: return true; 29724: if (__comp(__first2, __first1)) 29724: return false; 29724: } 29724: return __first1 == __last1 && __first2 != __last2; 29724: } 29724: 29724: template 29724: struct __lexicographical_compare 29724: { 29724: template 29724: 29724: static bool 29724: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29724: { 29724: using __gnu_cxx::__ops::__iter_less_iter; 29724: return std::__lexicographical_compare_impl(__first1, __last1, 29724: __first2, __last2, 29724: __iter_less_iter()); 29724: } 29724: 29724: template 29724: 29724: static int 29724: __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29724: { 29724: while (__first1 != __last1) 29724: { 29724: if (__first2 == __last2) 29724: return +1; 29724: if (*__first1 < *__first2) 29724: return -1; 29724: if (*__first2 < *__first1) 29724: return +1; 29724: ++__first1; 29724: ++__first2; 29724: } 29724: return int(__first2 == __last2) - 1; 29724: } 29724: }; 29724: 29724: template<> 29724: struct __lexicographical_compare 29724: { 29724: template 29724: 29724: static bool 29724: __lc(const _Tp* __first1, const _Tp* __last1, 29724: const _Up* __first2, const _Up* __last2) 29724: { return __3way(__first1, __last1, __first2, __last2) < 0; } 29724: 29724: template 29724: 29724: static ptrdiff_t 29724: __3way(const _Tp* __first1, const _Tp* __last1, 29724: const _Up* __first2, const _Up* __last2) 29724: { 29724: const size_t __len1 = __last1 - __first1; 29724: const size_t __len2 = __last2 - __first2; 29724: if (const size_t __len = std::min(__len1, __len2)) 29724: if (int __result = std::__memcmp(__first1, __first2, __len)) 29724: return __result; 29724: return ptrdiff_t(__len1 - __len2); 29724: } 29724: }; 29724: 29724: template 29724: 29724: inline bool 29724: __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, 29724: _II2 __first2, _II2 __last2) 29724: { 29724: typedef typename iterator_traits<_II1>::value_type _ValueType1; 29724: typedef typename iterator_traits<_II2>::value_type _ValueType2; 29724: const bool __simple = 29724: (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value 29724: && __is_pointer<_II1>::__value 29724: && __is_pointer<_II2>::__value 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ); 29724: 29724: return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, 29724: __first2, __last2); 29724: } 29724: 29724: template 29724: bool 29724: __lexicographical_compare_aux1( 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: _Tp2*, _Tp2*); 29724: 29724: template 29724: bool 29724: __lexicographical_compare_aux1(_Tp1*, _Tp1*, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29724: 29724: template 29724: bool 29724: __lexicographical_compare_aux1( 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29724: 29724: template 29724: 29724: inline bool 29724: __lexicographical_compare_aux(_II1 __first1, _II1 __last1, 29724: _II2 __first2, _II2 __last2) 29724: { 29724: return std::__lexicographical_compare_aux1(std::__niter_base(__first1), 29724: std::__niter_base(__last1), 29724: std::__niter_base(__first2), 29724: std::__niter_base(__last2)); 29724: } 29724: 29724: template 29724: 29724: bool 29724: __lexicographical_compare_aux( 29724: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29724: _II2, _II2); 29724: 29724: template 29724: 29724: bool 29724: __lexicographical_compare_aux( 29724: _II1, _II1, 29724: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 29724: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 29724: 29724: template 29724: 29724: bool 29724: __lexicographical_compare_aux( 29724: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 29724: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::difference_type 29724: _DistanceType; 29724: 29724: _DistanceType __len = std::distance(__first, __last); 29724: 29724: while (__len > 0) 29724: { 29724: _DistanceType __half = __len >> 1; 29724: _ForwardIterator __middle = __first; 29724: std::advance(__middle, __half); 29724: if (__comp(__middle, __val)) 29724: { 29724: __first = __middle; 29724: ++__first; 29724: __len = __len - __half - 1; 29724: } 29724: else 29724: __len = __half; 29724: } 29724: return __first; 29724: } 29724: # 1527 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__lower_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_less_val()); 29724: } 29724: 29724: 29724: 29724: template 29724: inline constexpr _Tp 29724: __lg(_Tp __n) 29724: { 29724: 29724: return std::__bit_width(make_unsigned_t<_Tp>(__n)) - 1; 29724: # 1563 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: } 29724: 29724: 29724: # 1579 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: equal(_II1 __first1, _II1 __last1, _II2 __first2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__equal_aux(__first1, __last1, __first2); 29724: } 29724: # 1610 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: equal(_IIter1 __first1, _IIter1 __last1, 29724: _IIter2 __first2, _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2) 29724: if (!bool(__binary_pred(*__first1, *__first2))) 29724: return false; 29724: return true; 29724: } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: 29724: 29724: template 29724: 29724: inline bool 29724: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29724: { 29724: using _RATag = random_access_iterator_tag; 29724: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 29724: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 29724: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 29724: if constexpr (_RAIters::value) 29724: { 29724: if ((__last1 - __first1) != (__last2 - __first2)) 29724: return false; 29724: return std::equal(__first1, __last1, __first2); 29724: } 29724: else 29724: { 29724: for (; __first1 != __last1 && __first2 != __last2; 29724: ++__first1, (void)++__first2) 29724: if (!(*__first1 == *__first2)) 29724: return false; 29724: return __first1 == __last1 && __first2 == __last2; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline bool 29724: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: using _RATag = random_access_iterator_tag; 29724: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 29724: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 29724: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 29724: if constexpr (_RAIters::value) 29724: { 29724: if ((__last1 - __first1) != (__last2 - __first2)) 29724: return false; 29724: return std::equal(__first1, __last1, __first2, 29724: __binary_pred); 29724: } 29724: else 29724: { 29724: for (; __first1 != __last1 && __first2 != __last2; 29724: ++__first1, (void)++__first2) 29724: if (!bool(__binary_pred(*__first1, *__first2))) 29724: return false; 29724: return __first1 == __last1 && __first2 == __last2; 29724: } 29724: } 29724: #pragma GCC diagnostic pop 29724: # 1701 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__equal4(__first1, __last1, __first2, __last2); 29724: } 29724: # 1734 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: equal(_IIter1 __first1, _IIter1 __last1, 29724: _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__equal4(__first1, __last1, __first2, __last2, 29724: __binary_pred); 29724: } 29724: # 1766 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: lexicographical_compare(_II1 __first1, _II1 __last1, 29724: _II2 __first2, _II2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__lexicographical_compare_aux(__first1, __last1, 29724: __first2, __last2); 29724: } 29724: # 1801 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: lexicographical_compare(_II1 __first1, _II1 __last1, 29724: _II2 __first2, _II2 __last2, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__lexicographical_compare_impl 29724: (__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 1916 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: pair<_InputIterator1, _InputIterator2> 29724: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 29724: { 29724: while (__first1 != __last1 && __binary_pred(__first1, __first2)) 29724: { 29724: ++__first1; 29724: ++__first2; 29724: } 29724: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 29724: } 29724: # 1944 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_InputIterator1, _InputIterator2> 29724: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__mismatch(__first1, __last1, __first2, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 1978 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_InputIterator1, _InputIterator2> 29724: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__mismatch(__first1, __last1, __first2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29724: } 29724: 29724: 29724: template 29724: 29724: pair<_InputIterator1, _InputIterator2> 29724: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2 29724: && __binary_pred(__first1, __first2)) 29724: { 29724: ++__first1; 29724: ++__first2; 29724: } 29724: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 29724: } 29724: # 2026 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_InputIterator1, _InputIterator2> 29724: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__mismatch(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 2062 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_InputIterator1, _InputIterator2> 29724: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__mismatch(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline _InputIterator 29724: __find_if(_InputIterator __first, _InputIterator __last, 29724: _Predicate __pred, input_iterator_tag) 29724: { 29724: while (__first != __last && !__pred(__first)) 29724: ++__first; 29724: return __first; 29724: } 29724: 29724: 29724: template 29724: 29724: _RandomAccessIterator 29724: __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Predicate __pred, random_access_iterator_tag) 29724: { 29724: typename iterator_traits<_RandomAccessIterator>::difference_type 29724: __trip_count = (__last - __first) >> 2; 29724: 29724: for (; __trip_count > 0; --__trip_count) 29724: { 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: } 29724: 29724: switch (__last - __first) 29724: { 29724: case 3: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: case 2: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: case 1: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: case 0: 29724: default: 29724: return __last; 29724: } 29724: } 29724: 29724: template 29724: 29724: inline _Iterator 29724: __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) 29724: { 29724: return __find_if(__first, __last, __pred, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: template 29724: 29724: typename iterator_traits<_InputIterator>::difference_type 29724: __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29724: { 29724: typename iterator_traits<_InputIterator>::difference_type __n = 0; 29724: for (; __first != __last; ++__first) 29724: if (__pred(__first)) 29724: ++__n; 29724: return __n; 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __remove_if(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: __first = std::__find_if(__first, __last, __pred); 29724: if (__first == __last) 29724: return __first; 29724: _ForwardIterator __result = __first; 29724: ++__first; 29724: for (; __first != __last; ++__first) 29724: if (!__pred(__first)) 29724: { 29724: *__result = std::move(*__first); 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator1 29724: __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: _BinaryPredicate __predicate) 29724: { 29724: 29724: if (__first1 == __last1 || __first2 == __last2) 29724: return __first1; 29724: 29724: 29724: _ForwardIterator2 __p1(__first2); 29724: if (++__p1 == __last2) 29724: return std::__find_if(__first1, __last1, 29724: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 29724: 29724: 29724: _ForwardIterator1 __current = __first1; 29724: 29724: for (;;) 29724: { 29724: __first1 = 29724: std::__find_if(__first1, __last1, 29724: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 29724: 29724: if (__first1 == __last1) 29724: return __last1; 29724: 29724: _ForwardIterator2 __p = __p1; 29724: __current = __first1; 29724: if (++__current == __last1) 29724: return __last1; 29724: 29724: while (__predicate(__current, __p)) 29724: { 29724: if (++__p == __last2) 29724: return __first1; 29724: if (++__current == __last1) 29724: return __last1; 29724: } 29724: ++__first1; 29724: } 29724: return __first1; 29724: } 29724: 29724: 29724: template 29724: 29724: bool 29724: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _BinaryPredicate __pred) 29724: { 29724: 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2) 29724: if (!__pred(__first1, __first2)) 29724: break; 29724: 29724: if (__first1 == __last1) 29724: return true; 29724: 29724: 29724: 29724: _ForwardIterator2 __last2 = __first2; 29724: std::advance(__last2, std::distance(__first1, __last1)); 29724: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 29724: { 29724: if (__scan != std::__find_if(__first1, __scan, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 29724: continue; 29724: 29724: auto __matches 29724: = std::__count_if(__first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 29724: if (0 == __matches || 29724: std::__count_if(__scan, __last1, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 29724: != __matches) 29724: return false; 29724: } 29724: return true; 29724: } 29724: # 2286 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline bool 29724: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__is_permutation(__first1, __last1, __first2, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: 29724: 29724: 29724: # 2328 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _ForwardIterator1 29724: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: _BinaryPredicate __predicate) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__search(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__predicate)); 29724: } 29724: 29724: 29724: 29724: } 29724: # 63 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/allocator.h" 1 3 29724: # 46 "/usr/include/c++/14/bits/allocator.h" 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 1 3 29724: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 29724: # 1 "/usr/include/c++/14/bits/new_allocator.h" 1 3 29724: # 41 "/usr/include/c++/14/bits/new_allocator.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 62 "/usr/include/c++/14/bits/new_allocator.h" 3 29724: template 29724: class __new_allocator 29724: { 29724: public: 29724: typedef _Tp value_type; 29724: typedef std::size_t size_type; 29724: typedef std::ptrdiff_t difference_type; 29724: 29724: typedef _Tp* pointer; 29724: typedef const _Tp* const_pointer; 29724: typedef _Tp& reference; 29724: typedef const _Tp& const_reference; 29724: 29724: template 29724: struct rebind 29724: { typedef __new_allocator<_Tp1> other; }; 29724: 29724: 29724: 29724: 29724: 29724: typedef std::true_type propagate_on_container_move_assignment; 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: 29724: __new_allocator() noexcept { } 29724: 29724: __attribute__((__always_inline__)) 29724: 29724: __new_allocator(const __new_allocator&) noexcept { } 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: 29724: __new_allocator(const __new_allocator<_Tp1>&) noexcept { } 29724: 29724: 29724: __new_allocator& operator=(const __new_allocator&) = default; 29724: 29724: 29724: 29724: ~__new_allocator() noexcept { } 29724: 29724: pointer 29724: address(reference __x) const noexcept 29724: { return std::__addressof(__x); } 29724: 29724: const_pointer 29724: address(const_reference __x) const noexcept 29724: { return std::__addressof(__x); } 29724: # 125 "/usr/include/c++/14/bits/new_allocator.h" 3 29724: [[__nodiscard__]] _Tp* 29724: allocate(size_type __n, const void* = static_cast(0)) 29724: { 29724: 29724: 29724: 29724: static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); 29724: 29724: 29724: if (__builtin_expect(__n > this->_M_max_size(), false)) 29724: { 29724: 29724: 29724: if (__n > (std::size_t(-1) / sizeof(_Tp))) 29724: std::__throw_bad_array_new_length(); 29724: std::__throw_bad_alloc(); 29724: } 29724: 29724: 29724: if (alignof(_Tp) > 8) 29724: { 29724: std::align_val_t __al = std::align_val_t(alignof(_Tp)); 29724: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), 29724: __al)); 29724: } 29724: 29724: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 29724: } 29724: 29724: 29724: void 29724: deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (alignof(_Tp) > 8) 29724: { 29724: ::operator delete((__p), (__n) * sizeof(_Tp), 29724: std::align_val_t(alignof(_Tp))); 29724: return; 29724: } 29724: 29724: ::operator delete((__p), (__n) * sizeof(_Tp)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: size_type 29724: max_size() const noexcept 29724: { return _M_max_size(); } 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: void 29724: construct(_Up* __p, _Args&&... __args) 29724: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 29724: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: void 29724: destroy(_Up* __p) 29724: noexcept(std::is_nothrow_destructible<_Up>::value) 29724: { __p->~_Up(); } 29724: # 213 "/usr/include/c++/14/bits/new_allocator.h" 3 29724: template 29724: friend __attribute__((__always_inline__)) bool 29724: operator==(const __new_allocator&, const __new_allocator<_Up>&) 29724: noexcept 29724: { return true; } 29724: 29724: 29724: template 29724: friend __attribute__((__always_inline__)) bool 29724: operator!=(const __new_allocator&, const __new_allocator<_Up>&) 29724: noexcept 29724: { return false; } 29724: 29724: 29724: private: 29724: __attribute__((__always_inline__)) 29724: constexpr size_type 29724: _M_max_size() const noexcept 29724: { 29724: 29724: return std::size_t(0x7fffffff) / sizeof(_Tp); 29724: 29724: 29724: 29724: } 29724: }; 29724: 29724: 29724: } 29724: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 2 3 29724: 29724: 29724: namespace std 29724: { 29724: # 46 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 29724: template 29724: using __allocator_base = __new_allocator<_Tp>; 29724: } 29724: # 47 "/usr/include/c++/14/bits/allocator.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/memoryfwd.h" 1 3 29724: # 46 "/usr/include/c++/14/bits/memoryfwd.h" 3 29724: 29724: # 47 "/usr/include/c++/14/bits/memoryfwd.h" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 64 "/usr/include/c++/14/bits/memoryfwd.h" 3 29724: template 29724: class allocator; 29724: 29724: template<> 29724: class allocator; 29724: 29724: 29724: 29724: template 29724: struct uses_allocator; 29724: 29724: template 29724: struct allocator_traits; 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 48 "/usr/include/c++/14/bits/allocator.h" 2 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 72 "/usr/include/c++/14/bits/allocator.h" 3 29724: template<> 29724: class allocator 29724: { 29724: public: 29724: typedef void value_type; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: 29724: 29724: 29724: typedef void* pointer; 29724: typedef const void* const_pointer; 29724: 29724: template 29724: struct rebind 29724: { typedef allocator<_Tp1> other; }; 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_move_assignment = true_type; 29724: 29724: using is_always_equal 29724: 29724: = true_type; 29724: # 115 "/usr/include/c++/14/bits/allocator.h" 3 29724: }; 29724: # 127 "/usr/include/c++/14/bits/allocator.h" 3 29724: template 29724: class allocator : public __allocator_base<_Tp> 29724: { 29724: public: 29724: typedef _Tp value_type; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: 29724: 29724: 29724: typedef _Tp* pointer; 29724: typedef const _Tp* const_pointer; 29724: typedef _Tp& reference; 29724: typedef const _Tp& const_reference; 29724: 29724: template 29724: struct rebind 29724: { typedef allocator<_Tp1> other; }; 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_move_assignment = true_type; 29724: 29724: using is_always_equal 29724: 29724: = true_type; 29724: 29724: 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: 29724: allocator() noexcept { } 29724: 29724: __attribute__((__always_inline__)) 29724: 29724: allocator(const allocator& __a) noexcept 29724: : __allocator_base<_Tp>(__a) { } 29724: 29724: 29724: 29724: allocator& operator=(const allocator&) = default; 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: 29724: allocator(const allocator<_Tp1>&) noexcept { } 29724: 29724: __attribute__((__always_inline__)) 29724: 29724: 29724: 29724: ~allocator() noexcept { } 29724: # 212 "/usr/include/c++/14/bits/allocator.h" 3 29724: friend __attribute__((__always_inline__)) 29724: bool 29724: operator==(const allocator&, const allocator&) noexcept 29724: { return true; } 29724: 29724: 29724: friend __attribute__((__always_inline__)) 29724: bool 29724: operator!=(const allocator&, const allocator&) noexcept 29724: { return false; } 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: inline bool 29724: operator==(const allocator<_T1>&, const allocator<_T2>&) 29724: noexcept 29724: { return true; } 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: inline bool 29724: operator!=(const allocator<_T1>&, const allocator<_T2>&) 29724: noexcept 29724: { return false; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class allocator 29724: { 29724: public: 29724: typedef _Tp value_type; 29724: allocator() { } 29724: template allocator(const allocator<_Up>&) { } 29724: }; 29724: 29724: template 29724: class allocator 29724: { 29724: public: 29724: typedef _Tp value_type; 29724: allocator() { } 29724: template allocator(const allocator<_Up>&) { } 29724: }; 29724: 29724: template 29724: class allocator 29724: { 29724: public: 29724: typedef _Tp value_type; 29724: allocator() { } 29724: template allocator(const allocator<_Up>&) { } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern template class allocator; 29724: extern template class allocator; 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 64 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_construct.h" 1 3 29724: # 73 "/usr/include/c++/14/bits/stl_construct.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: inline void 29724: destroy_at(_Tp* __location) 29724: { 29724: if constexpr (201703L > 201703L && is_array_v<_Tp>) 29724: { 29724: for (auto& __x : *__location) 29724: std::destroy_at(std::__addressof(__x)); 29724: } 29724: else 29724: __location->~_Tp(); 29724: } 29724: # 106 "/usr/include/c++/14/bits/stl_construct.h" 3 29724: template 29724: 29724: inline void 29724: _Construct(_Tp* __p, _Args&&... __args) 29724: { 29724: # 119 "/usr/include/c++/14/bits/stl_construct.h" 3 29724: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 29724: } 29724: # 132 "/usr/include/c++/14/bits/stl_construct.h" 3 29724: template 29724: inline void 29724: _Construct_novalue(_T1* __p) 29724: { ::new((void*)__p) _T1; } 29724: 29724: template 29724: void 29724: _Destroy(_ForwardIterator __first, _ForwardIterator __last); 29724: 29724: 29724: 29724: 29724: template 29724: constexpr inline void 29724: _Destroy(_Tp* __pointer) 29724: { 29724: 29724: 29724: 29724: __pointer->~_Tp(); 29724: 29724: } 29724: 29724: template 29724: struct _Destroy_aux 29724: { 29724: template 29724: static void 29724: __destroy(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: for (; __first != __last; ++__first) 29724: std::_Destroy(std::__addressof(*__first)); 29724: } 29724: }; 29724: 29724: template<> 29724: struct _Destroy_aux 29724: { 29724: template 29724: static void 29724: __destroy(_ForwardIterator, _ForwardIterator) { } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: _Destroy(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _Value_type; 29724: 29724: 29724: static_assert(is_destructible<_Value_type>::value, 29724: "value type is destructible"); 29724: 29724: 29724: 29724: 29724: 29724: std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: 29724: __destroy(__first, __last); 29724: } 29724: 29724: template 29724: struct _Destroy_n_aux 29724: { 29724: template 29724: static _ForwardIterator 29724: __destroy_n(_ForwardIterator __first, _Size __count) 29724: { 29724: for (; __count > 0; (void)++__first, --__count) 29724: std::_Destroy(std::__addressof(*__first)); 29724: return __first; 29724: } 29724: }; 29724: 29724: template<> 29724: struct _Destroy_n_aux 29724: { 29724: template 29724: static _ForwardIterator 29724: __destroy_n(_ForwardIterator __first, _Size __count) 29724: { 29724: std::advance(__first, __count); 29724: return __first; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline _ForwardIterator 29724: _Destroy_n(_ForwardIterator __first, _Size __count) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _Value_type; 29724: 29724: 29724: static_assert(is_destructible<_Value_type>::value, 29724: "value type is destructible"); 29724: 29724: 29724: 29724: 29724: 29724: return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: 29724: __destroy_n(__first, __count); 29724: } 29724: 29724: 29724: template 29724: inline void 29724: destroy(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: std::_Destroy(__first, __last); 29724: } 29724: 29724: template 29724: inline _ForwardIterator 29724: destroy_n(_ForwardIterator __first, _Size __count) 29724: { 29724: return std::_Destroy_n(__first, __count); 29724: } 29724: 29724: 29724: 29724: } 29724: # 65 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_uninitialized.h" 1 3 29724: # 64 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: # 1 "/usr/include/c++/14/ext/alloc_traits.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/alloc_traits.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/alloc_traits.h" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/alloc_traits.h" 1 3 29724: # 46 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: # 52 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++14-extensions" 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: 29724: 29724: struct __allocator_traits_base 29724: { 29724: template 29724: struct __rebind : __replace_first_arg<_Tp, _Up> 29724: { 29724: static_assert(is_same< 29724: typename __replace_first_arg<_Tp, typename _Tp::value_type>::type, 29724: _Tp>::value, 29724: "allocator_traits::rebind_alloc must be A"); 29724: }; 29724: 29724: template 29724: struct __rebind<_Tp, _Up, 29724: __void_t::other>> 29724: { 29724: using type = typename _Tp::template rebind<_Up>::other; 29724: 29724: static_assert(is_same< 29724: typename _Tp::template rebind::other, 29724: _Tp>::value, 29724: "allocator_traits::rebind_alloc must be A"); 29724: }; 29724: 29724: protected: 29724: template 29724: using __pointer = typename _Tp::pointer; 29724: template 29724: using __c_pointer = typename _Tp::const_pointer; 29724: template 29724: using __v_pointer = typename _Tp::void_pointer; 29724: template 29724: using __cv_pointer = typename _Tp::const_void_pointer; 29724: template 29724: using __pocca = typename _Tp::propagate_on_container_copy_assignment; 29724: template 29724: using __pocma = typename _Tp::propagate_on_container_move_assignment; 29724: template 29724: using __pocs = typename _Tp::propagate_on_container_swap; 29724: template 29724: using __equal = __type_identity; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: using __construct_t 29724: = decltype(std::declval<_Alloc&>().construct(std::declval<_Tp*>(), 29724: std::declval<_Args>()...)); 29724: template 29724: static constexpr bool __has_construct_impl = false; 29724: template 29724: static constexpr bool 29724: __has_construct_impl<_Alloc, _Tp, 29724: __void_t<__construct_t<_Alloc, _Tp, _Args...>>, 29724: _Args...> 29724: = true; 29724: template 29724: static constexpr bool __has_construct 29724: = __has_construct_impl<_Alloc, _Tp, void, _Args...>; 29724: template 29724: using __new_expr_t 29724: = decltype(::new((void*)0) _Tp(std::declval<_Args>()...)); 29724: template 29724: static constexpr bool __has_new_expr = false; 29724: template 29724: static constexpr bool 29724: __has_new_expr<_Tp, __void_t<__new_expr_t<_Tp, _Args...>>, _Args...> 29724: = true; 29724: template 29724: static constexpr bool __can_construct 29724: = __has_construct<_Alloc, _Tp, _Args...> 29724: || __has_new_expr<_Tp, void, _Args...>; 29724: }; 29724: 29724: template 29724: using __alloc_rebind 29724: = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; 29724: # 143 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: struct allocator_traits : __allocator_traits_base 29724: { 29724: 29724: typedef _Alloc allocator_type; 29724: 29724: typedef typename _Alloc::value_type value_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: using pointer = __detected_or_t; 29724: 29724: private: 29724: 29724: template class _Func, typename _Tp, typename = void> 29724: struct _Ptr 29724: { 29724: using type = typename pointer_traits::template rebind<_Tp>; 29724: }; 29724: 29724: template class _Func, typename _Tp> 29724: struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> 29724: { 29724: using type = _Func<_Alloc>; 29724: }; 29724: 29724: 29724: template 29724: struct _Diff 29724: { using type = typename pointer_traits<_PtrT>::difference_type; }; 29724: 29724: template 29724: struct _Diff<_A2, _PtrT, __void_t> 29724: { using type = typename _A2::difference_type; }; 29724: 29724: 29724: template 29724: struct _Size : make_unsigned<_DiffT> { }; 29724: 29724: template 29724: struct _Size<_A2, _DiffT, __void_t> 29724: { using type = typename _A2::size_type; }; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using void_pointer = typename _Ptr<__v_pointer, void>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using difference_type = typename _Diff<_Alloc, pointer>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using size_type = typename _Size<_Alloc, difference_type>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_copy_assignment 29724: = __detected_or_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_move_assignment 29724: = __detected_or_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_swap 29724: = __detected_or_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using is_always_equal 29724: = typename __detected_or_t, __equal, _Alloc>::type; 29724: 29724: template 29724: using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; 29724: template 29724: using rebind_traits = allocator_traits>; 29724: 29724: private: 29724: template 29724: static constexpr auto 29724: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) 29724: -> decltype(__a.allocate(__n, __hint)) 29724: { return __a.allocate(__n, __hint); } 29724: 29724: template 29724: static constexpr pointer 29724: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) 29724: { return __a.allocate(__n); } 29724: 29724: 29724: template 29724: static constexpr auto 29724: _S_destroy(_Alloc2& __a, _Tp* __p, int) 29724: noexcept(noexcept(__a.destroy(__p))) 29724: -> decltype(__a.destroy(__p)) 29724: { __a.destroy(__p); } 29724: 29724: template 29724: static constexpr void 29724: _S_destroy(_Alloc2&, _Tp* __p, ...) 29724: noexcept(std::is_nothrow_destructible<_Tp>::value) 29724: { std::_Destroy(__p); } 29724: 29724: template 29724: static constexpr auto 29724: _S_max_size(_Alloc2& __a, int) 29724: -> decltype(__a.max_size()) 29724: { return __a.max_size(); } 29724: 29724: template 29724: static constexpr size_type 29724: _S_max_size(_Alloc2&, ...) 29724: { 29724: 29724: 29724: return __gnu_cxx::__numeric_traits::__max 29724: / sizeof(value_type); 29724: } 29724: 29724: template 29724: static constexpr auto 29724: _S_select(_Alloc2& __a, int) 29724: -> decltype(__a.select_on_container_copy_construction()) 29724: { return __a.select_on_container_copy_construction(); } 29724: 29724: template 29724: static constexpr _Alloc2 29724: _S_select(_Alloc2& __a, ...) 29724: { return __a; } 29724: 29724: public: 29724: # 333 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: [[__nodiscard__]] static pointer 29724: allocate(_Alloc& __a, size_type __n) 29724: { return __a.allocate(__n); } 29724: # 348 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: [[__nodiscard__]] static pointer 29724: allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) 29724: { return _S_allocate(__a, __n, __hint, 0); } 29724: # 360 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: static void 29724: deallocate(_Alloc& __a, pointer __p, size_type __n) 29724: { __a.deallocate(__p, __n); } 29724: # 375 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: static 29724: __enable_if_t<__can_construct<_Alloc, _Tp, _Args...>> 29724: construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 29724: noexcept(_S_nothrow_construct<_Tp, _Args...>()) 29724: { 29724: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 29724: __a.construct(__p, std::forward<_Args>(__args)...); 29724: else 29724: std::_Construct(__p, std::forward<_Args>(__args)...); 29724: } 29724: # 395 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: static void 29724: destroy(_Alloc& __a, _Tp* __p) 29724: noexcept(noexcept(_S_destroy(__a, __p, 0))) 29724: { _S_destroy(__a, __p, 0); } 29724: # 409 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: static size_type 29724: max_size(const _Alloc& __a) noexcept 29724: { return _S_max_size(__a, 0); } 29724: # 421 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: static _Alloc 29724: select_on_container_copy_construction(const _Alloc& __rhs) 29724: { return _S_select(__rhs, 0); } 29724: 29724: private: 29724: 29724: template 29724: static constexpr bool 29724: _S_nothrow_construct(_Alloc* __a = nullptr, _Tp* __p = nullptr) 29724: { 29724: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 29724: return noexcept(__a->construct(__p, std::declval<_Args>()...)); 29724: else 29724: return __is_nothrow_new_constructible<_Tp, _Args...>; 29724: } 29724: # 449 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: }; 29724: #pragma GCC diagnostic pop 29724: # 460 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: struct allocator_traits> 29724: { 29724: 29724: using allocator_type = allocator<_Tp>; 29724: 29724: 29724: using value_type = _Tp; 29724: 29724: 29724: using pointer = _Tp*; 29724: 29724: 29724: using const_pointer = const _Tp*; 29724: 29724: 29724: using void_pointer = void*; 29724: 29724: 29724: using const_void_pointer = const void*; 29724: 29724: 29724: using difference_type = std::ptrdiff_t; 29724: 29724: 29724: using size_type = std::size_t; 29724: 29724: 29724: using propagate_on_container_copy_assignment = false_type; 29724: 29724: 29724: using propagate_on_container_move_assignment = true_type; 29724: 29724: 29724: using propagate_on_container_swap = false_type; 29724: 29724: 29724: using is_always_equal = true_type; 29724: 29724: template 29724: using rebind_alloc = allocator<_Up>; 29724: 29724: template 29724: using rebind_traits = allocator_traits>; 29724: # 512 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: [[__nodiscard__,__gnu__::__always_inline__]] 29724: static pointer 29724: allocate(allocator_type& __a, size_type __n) 29724: { return __a.allocate(__n); } 29724: # 527 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: [[__nodiscard__,__gnu__::__always_inline__]] 29724: static pointer 29724: allocate(allocator_type& __a, size_type __n, 29724: [[maybe_unused]] const_void_pointer __hint) 29724: { 29724: 29724: return __a.allocate(__n, __hint); 29724: 29724: 29724: 29724: } 29724: # 547 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: [[__gnu__::__always_inline__]] 29724: static void 29724: deallocate(allocator_type& __a, pointer __p, size_type __n) 29724: { __a.deallocate(__p, __n); } 29724: # 563 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static void 29724: construct(allocator_type& __a __attribute__((__unused__)), 29724: _Up* __p, _Args&&... __args) 29724: 29724: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 29724: 29724: 29724: 29724: { 29724: 29724: __a.construct(__p, std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 590 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static void 29724: destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) 29724: noexcept(is_nothrow_destructible<_Up>::value) 29724: { 29724: 29724: __a.destroy(__p); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__gnu__::__always_inline__]] 29724: static size_type 29724: max_size(const allocator_type& __a __attribute__((__unused__))) noexcept 29724: { 29724: 29724: return __a.max_size(); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__gnu__::__always_inline__]] 29724: static allocator_type 29724: select_on_container_copy_construction(const allocator_type& __rhs) 29724: { return __rhs; } 29724: }; 29724: # 637 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template<> 29724: struct allocator_traits> 29724: { 29724: 29724: using allocator_type = allocator; 29724: 29724: 29724: using value_type = void; 29724: 29724: 29724: using pointer = void*; 29724: 29724: 29724: using const_pointer = const void*; 29724: 29724: 29724: using void_pointer = void*; 29724: 29724: 29724: using const_void_pointer = const void*; 29724: 29724: 29724: using difference_type = std::ptrdiff_t; 29724: 29724: 29724: using size_type = std::size_t; 29724: 29724: 29724: using propagate_on_container_copy_assignment = false_type; 29724: 29724: 29724: using propagate_on_container_move_assignment = true_type; 29724: 29724: 29724: using propagate_on_container_swap = false_type; 29724: 29724: 29724: using is_always_equal = true_type; 29724: 29724: template 29724: using rebind_alloc = allocator<_Up>; 29724: 29724: template 29724: using rebind_traits = allocator_traits>; 29724: 29724: 29724: static void* 29724: allocate(allocator_type&, size_type, const void* = nullptr) = delete; 29724: 29724: 29724: static void 29724: deallocate(allocator_type&, void*, size_type) = delete; 29724: # 701 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static void 29724: construct(allocator_type&, _Up* __p, _Args&&... __args) 29724: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 29724: { std::_Construct(__p, std::forward<_Args>(__args)...); } 29724: # 715 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static void 29724: destroy(allocator_type&, _Up* __p) 29724: noexcept(is_nothrow_destructible<_Up>::value) 29724: { std::_Destroy(__p); } 29724: 29724: 29724: static size_type 29724: max_size(const allocator_type&) = delete; 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__gnu__::__always_inline__]] 29724: static allocator_type 29724: select_on_container_copy_construction(const allocator_type& __rhs) 29724: { return __rhs; } 29724: }; 29724: # 753 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr inline void 29724: __alloc_on_copy(_Alloc& __one, const _Alloc& __two) 29724: { 29724: using __traits = allocator_traits<_Alloc>; 29724: using __pocca = 29724: typename __traits::propagate_on_container_copy_assignment::type; 29724: 29724: if constexpr (__pocca::value) 29724: __one = __two; 29724: 29724: 29724: 29724: } 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr _Alloc 29724: __alloc_on_copy(const _Alloc& __a) 29724: { 29724: typedef allocator_traits<_Alloc> __traits; 29724: return __traits::select_on_container_copy_construction(__a); 29724: } 29724: # 790 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr inline void 29724: __alloc_on_move(_Alloc& __one, _Alloc& __two) 29724: { 29724: using __traits = allocator_traits<_Alloc>; 29724: using __pocma 29724: = typename __traits::propagate_on_container_move_assignment::type; 29724: 29724: if constexpr (__pocma::value) 29724: __one = std::move(__two); 29724: 29724: 29724: 29724: } 29724: # 821 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr inline void 29724: __alloc_on_swap(_Alloc& __one, _Alloc& __two) 29724: { 29724: using __traits = allocator_traits<_Alloc>; 29724: using __pocs = typename __traits::propagate_on_container_swap::type; 29724: 29724: if constexpr (__pocs::value) 29724: { 29724: using std::swap; 29724: swap(__one, __two); 29724: } 29724: 29724: 29724: 29724: } 29724: 29724: template, 29724: typename = void> 29724: struct __is_alloc_insertable_impl 29724: : false_type 29724: { }; 29724: 29724: template 29724: struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, 29724: __void_t::construct( 29724: std::declval<_Alloc&>(), std::declval<_ValueT*>(), 29724: std::declval<_Tp>()))>> 29724: : true_type 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_copy_insertable 29724: : __is_alloc_insertable_impl<_Alloc, 29724: typename _Alloc::value_type const&>::type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct __is_copy_insertable> 29724: : is_copy_constructible<_Tp> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_move_insertable 29724: : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct __is_move_insertable> 29724: : is_move_constructible<_Tp> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct __is_allocator : false_type { }; 29724: 29724: template 29724: struct __is_allocator<_Alloc, 29724: __void_t().allocate(size_t{}))>> 29724: : true_type { }; 29724: 29724: template 29724: using _RequireAllocator 29724: = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; 29724: 29724: template 29724: using _RequireNotAllocator 29724: = typename enable_if::value, _Alloc>::type; 29724: # 918 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: struct __alloc_swap 29724: { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; 29724: 29724: template 29724: struct __alloc_swap<_Alloc, false> 29724: { 29724: static void 29724: _S_do_it(_Alloc& __one, _Alloc& __two) noexcept 29724: { 29724: 29724: if (__one != __two) 29724: swap(__one, __two); 29724: } 29724: }; 29724: 29724: 29724: template, 29724: is_nothrow_move_constructible>::value> 29724: struct __shrink_to_fit_aux 29724: { static bool _S_do_it(_Tp&) noexcept { return false; } }; 29724: 29724: template 29724: struct __shrink_to_fit_aux<_Tp, true> 29724: { 29724: 29724: static bool 29724: _S_do_it(_Tp& __c) noexcept 29724: { 29724: 29724: try 29724: { 29724: _Tp(__make_move_if_noexcept_iterator(__c.begin()), 29724: __make_move_if_noexcept_iterator(__c.end()), 29724: __c.get_allocator()).swap(__c); 29724: return true; 29724: } 29724: catch(...) 29724: { return false; } 29724: 29724: 29724: 29724: } 29724: }; 29724: # 971 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: 29724: void 29724: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 29724: _Allocator& __alloc) 29724: { 29724: for (; __first != __last; ++__first) 29724: 29724: 29724: 29724: allocator_traits<_Allocator>::destroy(__alloc, 29724: std::__addressof(*__first)); 29724: 29724: } 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: inline void 29724: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 29724: allocator<_Tp>&) 29724: { 29724: std::_Destroy(__first, __last); 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 35 "/usr/include/c++/14/ext/alloc_traits.h" 2 3 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __alloc_traits 29724: 29724: : std::allocator_traits<_Alloc> 29724: 29724: { 29724: typedef _Alloc allocator_type; 29724: 29724: typedef std::allocator_traits<_Alloc> _Base_type; 29724: typedef typename _Base_type::value_type value_type; 29724: typedef typename _Base_type::pointer pointer; 29724: typedef typename _Base_type::const_pointer const_pointer; 29724: typedef typename _Base_type::size_type size_type; 29724: typedef typename _Base_type::difference_type difference_type; 29724: 29724: typedef value_type& reference; 29724: typedef const value_type& const_reference; 29724: using _Base_type::allocate; 29724: using _Base_type::deallocate; 29724: using _Base_type::construct; 29724: using _Base_type::destroy; 29724: using _Base_type::max_size; 29724: 29724: private: 29724: template 29724: using __is_custom_pointer 29724: = std::__and_, 29724: std::__not_>>; 29724: 29724: public: 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static constexpr 29724: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 29724: construct(_Alloc& __a, _Ptr __p, _Args&&... __args) 29724: noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), 29724: std::forward<_Args>(__args)...))) 29724: { 29724: _Base_type::construct(__a, std::__to_address(__p), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static constexpr 29724: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 29724: destroy(_Alloc& __a, _Ptr __p) 29724: noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) 29724: { _Base_type::destroy(__a, std::__to_address(__p)); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) 29724: { return _Base_type::select_on_container_copy_construction(__a); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) 29724: { std::__alloc_on_swap(__a, __b); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr bool _S_propagate_on_copy_assign() 29724: { return _Base_type::propagate_on_container_copy_assignment::value; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr bool _S_propagate_on_move_assign() 29724: { return _Base_type::propagate_on_container_move_assignment::value; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr bool _S_propagate_on_swap() 29724: { return _Base_type::propagate_on_container_swap::value; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr bool _S_always_equal() 29724: { return _Base_type::is_always_equal::value; } 29724: 29724: __attribute__((__always_inline__)) 29724: static constexpr bool _S_nothrow_move() 29724: { return _S_propagate_on_move_assign() || _S_always_equal(); } 29724: 29724: template 29724: struct rebind 29724: { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; 29724: # 180 "/usr/include/c++/14/ext/alloc_traits.h" 3 29724: }; 29724: 29724: 29724: } 29724: # 65 "/usr/include/c++/14/bits/stl_uninitialized.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 81 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: constexpr bool 29724: __check_constructible() 29724: { 29724: 29724: 29724: 29724: 29724: 29724: static_assert(is_constructible<_ValueType, _Tp>::value, 29724: "result type must be constructible from input type"); 29724: 29724: return true; 29724: } 29724: # 110 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: 29724: _ForwardIterator 29724: __do_uninit_copy(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result) 29724: { 29724: _ForwardIterator __cur = __result; 29724: try 29724: { 29724: for (; __first != __last; ++__first, (void)++__cur) 29724: std::_Construct(std::__addressof(*__cur), *__first); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: struct __uninitialized_copy 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_copy(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result) 29724: { return std::__do_uninit_copy(__first, __last, __result); } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_copy 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_copy(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result) 29724: { return std::copy(__first, __last, __result); } 29724: }; 29724: # 161 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_copy(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type 29724: _ValueType1; 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType2; 29724: 29724: 29724: 29724: 29724: const bool __can_memmove = __is_trivial(_ValueType1); 29724: 29724: 29724: 29724: 29724: using _From = decltype(*__first); 29724: 29724: const bool __assignable 29724: = __is_trivial(_ValueType2) && __is_assignable(_ValueType2&, _From) && std::__check_constructible<_ValueType2, _From>(); 29724: 29724: return std::__uninitialized_copy<__can_memmove && __assignable>:: 29724: __uninit_copy(__first, __last, __result); 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: __do_uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __cur != __last; ++__cur) 29724: std::_Construct(std::__addressof(*__cur), __x); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: struct __uninitialized_fill 29724: { 29724: template 29724: static void 29724: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x) 29724: { std::__do_uninit_fill(__first, __last, __x); } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_fill 29724: { 29724: template 29724: static void 29724: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x) 29724: { std::fill(__first, __last, __x); } 29724: }; 29724: # 239 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline void 29724: uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: 29724: 29724: const bool __can_fill 29724: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>(); 29724: 29724: std::__uninitialized_fill<__can_fill>:: 29724: __uninit_fill(__first, __last, __x); 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __do_uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __n > 0; --__n, (void) ++__cur) 29724: std::_Construct(std::__addressof(*__cur), __x); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: struct __uninitialized_fill_n 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_fill_n(_ForwardIterator __first, _Size __n, 29724: const _Tp& __x) 29724: { return std::__do_uninit_fill_n(__first, __n, __x); } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_fill_n 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_fill_n(_ForwardIterator __first, _Size __n, 29724: const _Tp& __x) 29724: { return std::fill_n(__first, __n, __x); } 29724: }; 29724: # 310 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: 29724: 29724: const bool __can_fill 29724: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>() 29724: 29724: 29724: 29724: && __is_integer<_Size>::__value; 29724: 29724: return __uninitialized_fill_n<__can_fill>:: 29724: __uninit_fill_n(__first, __n, __x); 29724: } 29724: # 340 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: 29724: _ForwardIterator 29724: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, _Allocator& __alloc) 29724: { 29724: _ForwardIterator __cur = __result; 29724: try 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29724: for (; __first != __last; ++__first, (void)++__cur) 29724: __traits::construct(__alloc, std::__addressof(*__cur), *__first); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __cur, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, allocator<_Tp>&) 29724: { 29724: 29724: 29724: 29724: 29724: return std::uninitialized_copy(__first, __last, __result); 29724: } 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_move_a(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, _Allocator& __alloc) 29724: { 29724: return std::__uninitialized_copy_a(std::make_move_iterator(__first), 29724: std::make_move_iterator(__last), 29724: __result, __alloc); 29724: } 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_move_if_noexcept_a(_InputIterator __first, 29724: _InputIterator __last, 29724: _ForwardIterator __result, 29724: _Allocator& __alloc) 29724: { 29724: return std::__uninitialized_copy_a 29724: (std::__make_move_if_noexcept_iterator(__first), 29724: std::__make_move_if_noexcept_iterator(__last), __result, __alloc); 29724: } 29724: 29724: template 29724: 29724: void 29724: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x, _Allocator& __alloc) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29724: for (; __cur != __last; ++__cur) 29724: __traits::construct(__alloc, std::__addressof(*__cur), __x); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline void 29724: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x, allocator<_Tp2>&) 29724: { 29724: 29724: 29724: 29724: 29724: std::uninitialized_fill(__first, __last, __x); 29724: } 29724: 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 29724: const _Tp& __x, _Allocator& __alloc) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29724: for (; __n > 0; --__n, (void) ++__cur) 29724: __traits::construct(__alloc, std::__addressof(*__cur), __x); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 29724: const _Tp& __x, allocator<_Tp2>&) 29724: { 29724: 29724: 29724: 29724: 29724: return std::uninitialized_fill_n(__first, __n, __x); 29724: } 29724: # 485 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: __uninitialized_copy_move(_InputIterator1 __first1, 29724: _InputIterator1 __last1, 29724: _InputIterator2 __first2, 29724: _InputIterator2 __last2, 29724: _ForwardIterator __result, 29724: _Allocator& __alloc) 29724: { 29724: _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, 29724: __result, 29724: __alloc); 29724: try 29724: { 29724: return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __mid, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline _ForwardIterator 29724: __uninitialized_move_copy(_InputIterator1 __first1, 29724: _InputIterator1 __last1, 29724: _InputIterator2 __first2, 29724: _InputIterator2 __last2, 29724: _ForwardIterator __result, 29724: _Allocator& __alloc) 29724: { 29724: _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, 29724: __result, 29724: __alloc); 29724: try 29724: { 29724: return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __mid, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline _ForwardIterator 29724: __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, 29724: const _Tp& __x, _InputIterator __first, 29724: _InputIterator __last, _Allocator& __alloc) 29724: { 29724: std::__uninitialized_fill_a(__result, __mid, __x, __alloc); 29724: try 29724: { 29724: return std::__uninitialized_move_a(__first, __last, __mid, __alloc); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __mid, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, 29724: _ForwardIterator __first2, 29724: _ForwardIterator __last2, const _Tp& __x, 29724: _Allocator& __alloc) 29724: { 29724: _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, 29724: __first2, 29724: __alloc); 29724: try 29724: { 29724: std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first2, __mid2, __alloc); 29724: throw; 29724: } 29724: } 29724: # 592 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: struct __uninitialized_default_1 29724: { 29724: template 29724: static void 29724: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __cur != __last; ++__cur) 29724: std::_Construct(std::__addressof(*__cur)); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_default_1 29724: { 29724: template 29724: static void 29724: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: if (__first == __last) 29724: return; 29724: 29724: typename iterator_traits<_ForwardIterator>::value_type* __val 29724: = std::__addressof(*__first); 29724: std::_Construct(__val); 29724: if (++__first != __last) 29724: std::fill(__first, __last, *__val); 29724: } 29724: }; 29724: 29724: template 29724: struct __uninitialized_default_n_1 29724: { 29724: template 29724: 29724: static _ForwardIterator 29724: __uninit_default_n(_ForwardIterator __first, _Size __n) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __n > 0; --__n, (void) ++__cur) 29724: std::_Construct(std::__addressof(*__cur)); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_default_n_1 29724: { 29724: template 29724: 29724: static _ForwardIterator 29724: __uninit_default_n(_ForwardIterator __first, _Size __n) 29724: { 29724: if (__n > 0) 29724: { 29724: typename iterator_traits<_ForwardIterator>::value_type* __val 29724: = std::__addressof(*__first); 29724: std::_Construct(__val); 29724: ++__first; 29724: __first = std::fill_n(__first, __n - 1, *__val); 29724: } 29724: return __first; 29724: } 29724: }; 29724: 29724: 29724: 29724: template 29724: inline void 29724: __uninitialized_default(_ForwardIterator __first, 29724: _ForwardIterator __last) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: const bool __assignable = is_copy_assignable<_ValueType>::value; 29724: 29724: std::__uninitialized_default_1<__is_trivial(_ValueType) 29724: && __assignable>:: 29724: __uninit_default(__first, __last); 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_default_n(_ForwardIterator __first, _Size __n) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: constexpr bool __can_fill 29724: = __and_, is_copy_assignable<_ValueType>>::value; 29724: 29724: return __uninitialized_default_n_1<__is_trivial(_ValueType) 29724: && __can_fill>:: 29724: __uninit_default_n(__first, __n); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __uninitialized_default_a(_ForwardIterator __first, 29724: _ForwardIterator __last, 29724: _Allocator& __alloc) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29724: for (; __cur != __last; ++__cur) 29724: __traits::construct(__alloc, std::__addressof(*__cur)); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: inline void 29724: __uninitialized_default_a(_ForwardIterator __first, 29724: _ForwardIterator __last, 29724: allocator<_Tp>&) 29724: { std::__uninitialized_default(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _ForwardIterator 29724: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 29724: _Allocator& __alloc) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29724: for (; __n > 0; --__n, (void) ++__cur) 29724: __traits::construct(__alloc, std::__addressof(*__cur)); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 29724: allocator<_Tp>&) 29724: { return std::__uninitialized_default_n(__first, __n); } 29724: 29724: 29724: template 29724: struct __uninitialized_default_novalue_1 29724: { 29724: template 29724: static void 29724: __uninit_default_novalue(_ForwardIterator __first, 29724: _ForwardIterator __last) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __cur != __last; ++__cur) 29724: std::_Construct_novalue(std::__addressof(*__cur)); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_default_novalue_1 29724: { 29724: template 29724: static void 29724: __uninit_default_novalue(_ForwardIterator, _ForwardIterator) 29724: { 29724: } 29724: }; 29724: 29724: template 29724: struct __uninitialized_default_novalue_n_1 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __n > 0; --__n, (void) ++__cur) 29724: std::_Construct_novalue(std::__addressof(*__cur)); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_default_novalue_n_1 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 29724: { return std::next(__first, __n); } 29724: }; 29724: 29724: 29724: 29724: template 29724: inline void 29724: __uninitialized_default_novalue(_ForwardIterator __first, 29724: _ForwardIterator __last) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: std::__uninitialized_default_novalue_1< 29724: is_trivially_default_constructible<_ValueType>::value>:: 29724: __uninit_default_novalue(__first, __last); 29724: } 29724: 29724: 29724: 29724: template 29724: inline _ForwardIterator 29724: __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: return __uninitialized_default_novalue_n_1< 29724: is_trivially_default_constructible<_ValueType>::value>:: 29724: __uninit_default_novalue_n(__first, __n); 29724: } 29724: 29724: template 29724: _ForwardIterator 29724: __uninitialized_copy_n(_InputIterator __first, _Size __n, 29724: _ForwardIterator __result, input_iterator_tag) 29724: { 29724: _ForwardIterator __cur = __result; 29724: try 29724: { 29724: for (; __n > 0; --__n, (void) ++__first, ++__cur) 29724: std::_Construct(std::__addressof(*__cur), *__first); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: inline _ForwardIterator 29724: __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, 29724: _ForwardIterator __result, 29724: random_access_iterator_tag) 29724: { return std::uninitialized_copy(__first, __first + __n, __result); } 29724: 29724: template 29724: pair<_InputIterator, _ForwardIterator> 29724: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 29724: _ForwardIterator __result, input_iterator_tag) 29724: { 29724: _ForwardIterator __cur = __result; 29724: try 29724: { 29724: for (; __n > 0; --__n, (void) ++__first, ++__cur) 29724: std::_Construct(std::__addressof(*__cur), *__first); 29724: return {__first, __cur}; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: inline pair<_RandomAccessIterator, _ForwardIterator> 29724: __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, 29724: _ForwardIterator __result, 29724: random_access_iterator_tag) 29724: { 29724: auto __second_res = uninitialized_copy(__first, __first + __n, __result); 29724: auto __first_res = std::next(__first, __n); 29724: return {__first_res, __second_res}; 29724: } 29724: # 946 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_copy_n(_InputIterator __first, _Size __n, 29724: _ForwardIterator __result) 29724: { return std::__uninitialized_copy_n(__first, __n, __result, 29724: std::__iterator_category(__first)); } 29724: 29724: 29724: template 29724: inline pair<_InputIterator, _ForwardIterator> 29724: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 29724: _ForwardIterator __result) 29724: { 29724: return 29724: std::__uninitialized_copy_n_pair(__first, __n, __result, 29724: std::__iterator_category(__first)); 29724: } 29724: # 973 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline void 29724: uninitialized_default_construct(_ForwardIterator __first, 29724: _ForwardIterator __last) 29724: { 29724: __uninitialized_default_novalue(__first, __last); 29724: } 29724: # 988 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_default_construct_n(_ForwardIterator __first, _Size __count) 29724: { 29724: return __uninitialized_default_novalue_n(__first, __count); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: uninitialized_value_construct(_ForwardIterator __first, 29724: _ForwardIterator __last) 29724: { 29724: return __uninitialized_default(__first, __last); 29724: } 29724: # 1016 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_value_construct_n(_ForwardIterator __first, _Size __count) 29724: { 29724: return __uninitialized_default_n(__first, __count); 29724: } 29724: # 1031 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_move(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result) 29724: { 29724: return std::uninitialized_copy 29724: (std::make_move_iterator(__first), 29724: std::make_move_iterator(__last), __result); 29724: } 29724: # 1049 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline pair<_InputIterator, _ForwardIterator> 29724: uninitialized_move_n(_InputIterator __first, _Size __count, 29724: _ForwardIterator __result) 29724: { 29724: auto __res = std::__uninitialized_copy_n_pair 29724: (std::make_move_iterator(__first), 29724: __count, __result); 29724: return {__res.first.base(), __res.second}; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline void 29724: __relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig, 29724: _Allocator& __alloc) 29724: noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, 29724: __dest, std::move(*__orig))) 29724: && noexcept(std::allocator_traits<_Allocator>::destroy( 29724: __alloc, std::__addressof(*__orig)))) 29724: { 29724: typedef std::allocator_traits<_Allocator> __traits; 29724: __traits::construct(__alloc, __dest, std::move(*__orig)); 29724: __traits::destroy(__alloc, std::__addressof(*__orig)); 29724: } 29724: 29724: 29724: 29724: template 29724: struct __is_bitwise_relocatable 29724: : is_trivial<_Tp> { }; 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __relocate_a_1(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, _Allocator& __alloc) 29724: noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), 29724: std::addressof(*__first), 29724: __alloc))) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType2; 29724: static_assert(std::is_same<_ValueType, _ValueType2>::value, 29724: "relocation is only possible for values of the same type"); 29724: _ForwardIterator __cur = __result; 29724: for (; __first != __last; ++__first, (void)++__cur) 29724: std::__relocate_object_a(std::__addressof(*__cur), 29724: std::__addressof(*__first), __alloc); 29724: return __cur; 29724: } 29724: 29724: 29724: template 29724: 29724: inline __enable_if_t::value, _Tp*> 29724: __relocate_a_1(_Tp* __first, _Tp* __last, 29724: _Tp* __result, 29724: [[__maybe_unused__]] allocator<_Up>& __alloc) noexcept 29724: { 29724: ptrdiff_t __count = __last - __first; 29724: if (__count > 0) 29724: { 29724: # 1129 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: __builtin_memcpy(__result, __first, __count * sizeof(_Tp)); 29724: } 29724: return __result + __count; 29724: } 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __relocate_a(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, _Allocator& __alloc) 29724: noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), 29724: std::__niter_base(__last), 29724: std::__niter_base(__result), __alloc))) 29724: { 29724: return std::__relocate_a_1(std::__niter_base(__first), 29724: std::__niter_base(__last), 29724: std::__niter_base(__result), __alloc); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_deque.h" 1 3 29724: # 63 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: # 1 "/usr/include/c++/14/initializer_list" 1 3 29724: # 33 "/usr/include/c++/14/initializer_list" 3 29724: 29724: # 34 "/usr/include/c++/14/initializer_list" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: template 29724: class initializer_list 29724: { 29724: public: 29724: typedef _E value_type; 29724: typedef const _E& reference; 29724: typedef const _E& const_reference; 29724: typedef size_t size_type; 29724: typedef const _E* iterator; 29724: typedef const _E* const_iterator; 29724: 29724: private: 29724: iterator _M_array; 29724: size_type _M_len; 29724: 29724: 29724: constexpr initializer_list(const_iterator __a, size_type __l) 29724: : _M_array(__a), _M_len(__l) { } 29724: 29724: public: 29724: constexpr initializer_list() noexcept 29724: : _M_array(0), _M_len(0) { } 29724: 29724: 29724: constexpr size_type 29724: size() const noexcept { return _M_len; } 29724: 29724: 29724: constexpr const_iterator 29724: begin() const noexcept { return _M_array; } 29724: 29724: 29724: constexpr const_iterator 29724: end() const noexcept { return begin() + size(); } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr const _Tp* 29724: begin(initializer_list<_Tp> __ils) noexcept 29724: { return __ils.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr const _Tp* 29724: end(initializer_list<_Tp> __ils) noexcept 29724: { return __ils.end(); } 29724: } 29724: # 64 "/usr/include/c++/14/bits/stl_deque.h" 2 3 29724: # 72 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: # 95 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: constexpr inline size_t 29724: __deque_buf_size(size_t __size) 29724: { return (__size < 512 29724: ? size_t(512 / __size) : size_t(1)); } 29724: # 112 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: struct _Deque_iterator 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: private: 29724: template 29724: using __iter = _Deque_iterator<_Tp, _CvTp&, __ptr_rebind<_Ptr, _CvTp>>; 29724: public: 29724: typedef __iter<_Tp> iterator; 29724: typedef __iter const_iterator; 29724: typedef __ptr_rebind<_Ptr, _Tp> _Elt_pointer; 29724: typedef __ptr_rebind<_Ptr, _Elt_pointer> _Map_pointer; 29724: 29724: 29724: static size_t _S_buffer_size() noexcept 29724: { return __deque_buf_size(sizeof(_Tp)); } 29724: 29724: typedef std::random_access_iterator_tag iterator_category; 29724: typedef _Tp value_type; 29724: typedef _Ptr pointer; 29724: typedef _Ref reference; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Deque_iterator _Self; 29724: 29724: _Elt_pointer _M_cur; 29724: _Elt_pointer _M_first; 29724: _Elt_pointer _M_last; 29724: _Map_pointer _M_node; 29724: 29724: _Deque_iterator(_Elt_pointer __x, _Map_pointer __y) noexcept 29724: : _M_cur(__x), _M_first(*__y), 29724: _M_last(*__y + _S_buffer_size()), _M_node(__y) { } 29724: 29724: _Deque_iterator() noexcept 29724: : _M_cur(), _M_first(), _M_last(), _M_node() { } 29724: # 161 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template, 29724: is_same<_Iter, iterator>>> 29724: _Deque_iterator(const _Iter& __x) noexcept 29724: : _M_cur(__x._M_cur), _M_first(__x._M_first), 29724: _M_last(__x._M_last), _M_node(__x._M_node) { } 29724: 29724: _Deque_iterator(const _Deque_iterator& __x) noexcept 29724: : _M_cur(__x._M_cur), _M_first(__x._M_first), 29724: _M_last(__x._M_last), _M_node(__x._M_node) { } 29724: 29724: _Deque_iterator& operator=(const _Deque_iterator&) = default; 29724: 29724: 29724: iterator 29724: _M_const_cast() const noexcept 29724: { return iterator(_M_cur, _M_node); } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator*() const noexcept 29724: { return *_M_cur; } 29724: 29724: [[__nodiscard__]] 29724: pointer 29724: operator->() const noexcept 29724: { return _M_cur; } 29724: 29724: _Self& 29724: operator++() noexcept 29724: { 29724: ++_M_cur; 29724: if (_M_cur == _M_last) 29724: { 29724: _M_set_node(_M_node + 1); 29724: _M_cur = _M_first; 29724: } 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator++(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: ++*this; 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator--() noexcept 29724: { 29724: if (_M_cur == _M_first) 29724: { 29724: _M_set_node(_M_node - 1); 29724: _M_cur = _M_last; 29724: } 29724: --_M_cur; 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator--(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: --*this; 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator+=(difference_type __n) noexcept 29724: { 29724: const difference_type __offset = __n + (_M_cur - _M_first); 29724: if (__offset >= 0 && __offset < difference_type(_S_buffer_size())) 29724: _M_cur += __n; 29724: else 29724: { 29724: const difference_type __node_offset = 29724: __offset > 0 ? __offset / difference_type(_S_buffer_size()) 29724: : -difference_type((-__offset - 1) 29724: / _S_buffer_size()) - 1; 29724: _M_set_node(_M_node + __node_offset); 29724: _M_cur = _M_first + (__offset - __node_offset 29724: * difference_type(_S_buffer_size())); 29724: } 29724: return *this; 29724: } 29724: 29724: _Self& 29724: operator-=(difference_type __n) noexcept 29724: { return *this += -__n; } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator[](difference_type __n) const noexcept 29724: { return *(*this + __n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: _M_set_node(_Map_pointer __new_node) noexcept 29724: { 29724: _M_node = __new_node; 29724: _M_first = *__new_node; 29724: _M_last = _M_first + difference_type(_S_buffer_size()); 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_cur == __y._M_cur; } 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { return __x._M_cur == __y._M_cur; } 29724: # 296 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const _Self& __x, const _Self& __y) noexcept 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { return !(__x == __y); } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<(const _Self& __x, const _Self& __y) noexcept 29724: { 29724: return (__x._M_node == __y._M_node) 29724: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { 29724: return (__x._M_node == __y._M_node) 29724: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>(const _Self& __x, const _Self& __y) noexcept 29724: { return __y < __x; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { return __y < __x; } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<=(const _Self& __x, const _Self& __y) noexcept 29724: { return !(__y < __x); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<=(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { return !(__y < __x); } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>=(const _Self& __x, const _Self& __y) noexcept 29724: { return !(__x < __y); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>=(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { return !(__x < __y); } 29724: 29724: 29724: [[__nodiscard__]] 29724: friend difference_type 29724: operator-(const _Self& __x, const _Self& __y) noexcept 29724: { 29724: return difference_type(_S_buffer_size()) 29724: * (__x._M_node - __y._M_node - bool(__x._M_node)) 29724: + (__x._M_cur - __x._M_first) 29724: + (__y._M_last - __y._M_cur); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend difference_type 29724: operator-(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { 29724: return difference_type(_S_buffer_size()) 29724: * (__x._M_node - __y._M_node - bool(__x._M_node)) 29724: + (__x._M_cur - __x._M_first) 29724: + (__y._M_last - __y._M_cur); 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend _Self 29724: operator+(const _Self& __x, difference_type __n) noexcept 29724: { 29724: _Self __tmp = __x; 29724: __tmp += __n; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend _Self 29724: operator-(const _Self& __x, difference_type __n) noexcept 29724: { 29724: _Self __tmp = __x; 29724: __tmp -= __n; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend _Self 29724: operator+(difference_type __n, const _Self& __x) noexcept 29724: { return __x + __n; } 29724: }; 29724: # 429 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: class _Deque_base 29724: { 29724: protected: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Tp>::other _Tp_alloc_type; 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 29724: 29724: 29724: 29724: 29724: 29724: typedef typename _Alloc_traits::pointer _Ptr; 29724: typedef typename _Alloc_traits::const_pointer _Ptr_const; 29724: 29724: 29724: typedef typename _Alloc_traits::template rebind<_Ptr>::other 29724: _Map_alloc_type; 29724: typedef __gnu_cxx::__alloc_traits<_Map_alloc_type> _Map_alloc_traits; 29724: 29724: typedef _Alloc allocator_type; 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_get_Tp_allocator()); } 29724: 29724: typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator; 29724: typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator; 29724: 29724: _Deque_base() 29724: : _M_impl() 29724: { _M_initialize_map(0); } 29724: 29724: _Deque_base(size_t __num_elements) 29724: : _M_impl() 29724: { _M_initialize_map(__num_elements); } 29724: 29724: _Deque_base(const allocator_type& __a, size_t __num_elements) 29724: : _M_impl(__a) 29724: { _M_initialize_map(__num_elements); } 29724: 29724: _Deque_base(const allocator_type& __a) 29724: : _M_impl(__a) 29724: { } 29724: 29724: 29724: _Deque_base(_Deque_base&& __x) 29724: : _M_impl(std::move(__x._M_get_Tp_allocator())) 29724: { 29724: _M_initialize_map(0); 29724: if (__x._M_impl._M_map) 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: } 29724: 29724: _Deque_base(_Deque_base&& __x, const allocator_type& __a) 29724: : _M_impl(std::move(__x._M_impl), _Tp_alloc_type(__a)) 29724: { __x._M_initialize_map(0); } 29724: 29724: _Deque_base(_Deque_base&& __x, const allocator_type& __a, size_t __n) 29724: : _M_impl(__a) 29724: { 29724: if (__x.get_allocator() == __a) 29724: { 29724: if (__x._M_impl._M_map) 29724: { 29724: _M_initialize_map(0); 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: } 29724: } 29724: else 29724: { 29724: _M_initialize_map(__n); 29724: } 29724: } 29724: 29724: 29724: ~_Deque_base() noexcept; 29724: 29724: typedef typename iterator::_Map_pointer _Map_pointer; 29724: 29724: struct _Deque_impl_data 29724: { 29724: _Map_pointer _M_map; 29724: size_t _M_map_size; 29724: iterator _M_start; 29724: iterator _M_finish; 29724: 29724: _Deque_impl_data() noexcept 29724: : _M_map(), _M_map_size(), _M_start(), _M_finish() 29724: { } 29724: 29724: 29724: _Deque_impl_data(const _Deque_impl_data&) = default; 29724: _Deque_impl_data& 29724: operator=(const _Deque_impl_data&) = default; 29724: 29724: _Deque_impl_data(_Deque_impl_data&& __x) noexcept 29724: : _Deque_impl_data(__x) 29724: { __x = _Deque_impl_data(); } 29724: 29724: 29724: void 29724: _M_swap_data(_Deque_impl_data& __x) noexcept 29724: { 29724: 29724: 29724: std::swap(*this, __x); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: struct _Deque_impl 29724: : public _Tp_alloc_type, public _Deque_impl_data 29724: { 29724: _Deque_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 29724: 29724: : _Tp_alloc_type() 29724: { } 29724: 29724: _Deque_impl(const _Tp_alloc_type& __a) noexcept 29724: : _Tp_alloc_type(__a) 29724: { } 29724: 29724: 29724: _Deque_impl(_Deque_impl&&) = default; 29724: 29724: _Deque_impl(_Tp_alloc_type&& __a) noexcept 29724: : _Tp_alloc_type(std::move(__a)) 29724: { } 29724: 29724: _Deque_impl(_Deque_impl&& __d, _Tp_alloc_type&& __a) 29724: : _Tp_alloc_type(std::move(__a)), _Deque_impl_data(std::move(__d)) 29724: { } 29724: 29724: }; 29724: 29724: _Tp_alloc_type& 29724: _M_get_Tp_allocator() noexcept 29724: { return this->_M_impl; } 29724: 29724: const _Tp_alloc_type& 29724: _M_get_Tp_allocator() const noexcept 29724: { return this->_M_impl; } 29724: 29724: _Map_alloc_type 29724: _M_get_map_allocator() const noexcept 29724: { return _Map_alloc_type(_M_get_Tp_allocator()); } 29724: 29724: _Ptr 29724: _M_allocate_node() 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 29724: return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp))); 29724: } 29724: 29724: void 29724: _M_deallocate_node(_Ptr __p) noexcept 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 29724: _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp))); 29724: } 29724: 29724: _Map_pointer 29724: _M_allocate_map(size_t __n) 29724: { 29724: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 29724: return _Map_alloc_traits::allocate(__map_alloc, __n); 29724: } 29724: 29724: void 29724: _M_deallocate_map(_Map_pointer __p, size_t __n) noexcept 29724: { 29724: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 29724: _Map_alloc_traits::deallocate(__map_alloc, __p, __n); 29724: } 29724: 29724: void _M_initialize_map(size_t); 29724: void _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish); 29724: void _M_destroy_nodes(_Map_pointer __nstart, 29724: _Map_pointer __nfinish) noexcept; 29724: enum { _S_initial_map_size = 8 }; 29724: 29724: _Deque_impl _M_impl; 29724: }; 29724: 29724: template 29724: _Deque_base<_Tp, _Alloc>:: 29724: ~_Deque_base() noexcept 29724: { 29724: if (this->_M_impl._M_map) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_start._M_node, 29724: this->_M_impl._M_finish._M_node + 1); 29724: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29724: } 29724: } 29724: # 636 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: void 29724: _Deque_base<_Tp, _Alloc>:: 29724: _M_initialize_map(size_t __num_elements) 29724: { 29724: const size_t __num_nodes = (__num_elements / __deque_buf_size(sizeof(_Tp)) 29724: + 1); 29724: 29724: this->_M_impl._M_map_size = std::max((size_t) _S_initial_map_size, 29724: size_t(__num_nodes + 2)); 29724: this->_M_impl._M_map = _M_allocate_map(this->_M_impl._M_map_size); 29724: 29724: 29724: 29724: 29724: 29724: 29724: _Map_pointer __nstart = (this->_M_impl._M_map 29724: + (this->_M_impl._M_map_size - __num_nodes) / 2); 29724: _Map_pointer __nfinish = __nstart + __num_nodes; 29724: 29724: try 29724: { _M_create_nodes(__nstart, __nfinish); } 29724: catch(...) 29724: { 29724: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29724: this->_M_impl._M_map = _Map_pointer(); 29724: this->_M_impl._M_map_size = 0; 29724: throw; 29724: } 29724: 29724: this->_M_impl._M_start._M_set_node(__nstart); 29724: this->_M_impl._M_finish._M_set_node(__nfinish - 1); 29724: this->_M_impl._M_start._M_cur = _M_impl._M_start._M_first; 29724: this->_M_impl._M_finish._M_cur = (this->_M_impl._M_finish._M_first 29724: + __num_elements 29724: % __deque_buf_size(sizeof(_Tp))); 29724: } 29724: 29724: template 29724: void 29724: _Deque_base<_Tp, _Alloc>:: 29724: _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) 29724: { 29724: _Map_pointer __cur; 29724: try 29724: { 29724: for (__cur = __nstart; __cur < __nfinish; ++__cur) 29724: *__cur = this->_M_allocate_node(); 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(__nstart, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: _Deque_base<_Tp, _Alloc>:: 29724: _M_destroy_nodes(_Map_pointer __nstart, 29724: _Map_pointer __nfinish) noexcept 29724: { 29724: for (_Map_pointer __n = __nstart; __n < __nfinish; ++__n) 29724: _M_deallocate_node(*__n); 29724: } 29724: # 787 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template > 29724: class deque : protected _Deque_base<_Tp, _Alloc> 29724: { 29724: # 800 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: static_assert(is_same::type, _Tp>::value, 29724: "std::deque must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _Deque_base<_Tp, _Alloc> _Base; 29724: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29724: typedef typename _Base::_Alloc_traits _Alloc_traits; 29724: typedef typename _Base::_Map_pointer _Map_pointer; 29724: 29724: public: 29724: typedef _Tp value_type; 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: typedef typename _Base::iterator iterator; 29724: typedef typename _Base::const_iterator const_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Alloc allocator_type; 29724: 29724: private: 29724: static size_t _S_buffer_size() noexcept 29724: { return __deque_buf_size(sizeof(_Tp)); } 29724: 29724: 29724: using _Base::_M_initialize_map; 29724: using _Base::_M_create_nodes; 29724: using _Base::_M_destroy_nodes; 29724: using _Base::_M_allocate_node; 29724: using _Base::_M_deallocate_node; 29724: using _Base::_M_allocate_map; 29724: using _Base::_M_deallocate_map; 29724: using _Base::_M_get_Tp_allocator; 29724: 29724: 29724: 29724: 29724: 29724: using _Base::_M_impl; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: deque() = default; 29724: # 864 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: explicit 29724: deque(const allocator_type& __a) 29724: : _Base(__a, 0) { } 29724: # 877 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: explicit 29724: deque(size_type __n, const allocator_type& __a = allocator_type()) 29724: : _Base(__a, _S_check_init_len(__n, __a)) 29724: { _M_default_initialize(); } 29724: # 890 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque(size_type __n, const value_type& __value, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a, _S_check_init_len(__n, __a)) 29724: { _M_fill_initialize(__value); } 29724: # 917 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque(const deque& __x) 29724: : _Base(_Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator()), 29724: __x.size()) 29724: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); } 29724: # 933 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque(deque&&) = default; 29724: 29724: 29724: deque(const deque& __x, const __type_identity_t& __a) 29724: : _Base(__a, __x.size()) 29724: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); } 29724: 29724: 29724: deque(deque&& __x, const __type_identity_t& __a) 29724: : deque(std::move(__x), __a, typename _Alloc_traits::is_always_equal{}) 29724: { } 29724: 29724: private: 29724: deque(deque&& __x, const allocator_type& __a, true_type) 29724: : _Base(std::move(__x), __a) 29724: { } 29724: 29724: deque(deque&& __x, const allocator_type& __a, false_type) 29724: : _Base(std::move(__x), __a, __x.size()) 29724: { 29724: if (__x.get_allocator() != __a && !__x.empty()) 29724: { 29724: std::__uninitialized_move_a(__x.begin(), __x.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); 29724: __x.clear(); 29724: } 29724: } 29724: 29724: public: 29724: # 976 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque(initializer_list __l, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_range_initialize(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: } 29724: # 1001 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template> 29724: deque(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_range_initialize(__first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: # 1027 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: ~deque() 29724: { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } 29724: # 1039 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque& 29724: operator=(const deque& __x); 29724: # 1051 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque& 29724: operator=(deque&& __x) noexcept(_Alloc_traits::_S_always_equal()) 29724: { 29724: using __always_equal = typename _Alloc_traits::is_always_equal; 29724: _M_move_assign1(std::move(__x), __always_equal{}); 29724: return *this; 29724: } 29724: # 1070 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque& 29724: operator=(initializer_list __l) 29724: { 29724: _M_assign_aux(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: return *this; 29724: } 29724: # 1089 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: assign(size_type __n, const value_type& __val) 29724: { _M_fill_assign(__n, __val); } 29724: # 1106 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template> 29724: void 29724: assign(_InputIterator __first, _InputIterator __last) 29724: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29724: # 1133 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: assign(initializer_list __l) 29724: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _Base::get_allocator(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: begin() noexcept 29724: { return this->_M_impl._M_start; } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: begin() const noexcept 29724: { return this->_M_impl._M_start; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: end() noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: end() const noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cbegin() const noexcept 29724: { return this->_M_impl._M_start; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cend() const noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: size() const noexcept 29724: { return this->_M_impl._M_finish - this->_M_impl._M_start; } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: max_size() const noexcept 29724: { return _S_max_size(_M_get_Tp_allocator()); } 29724: # 1287 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: resize(size_type __new_size) 29724: { 29724: const size_type __len = size(); 29724: if (__new_size > __len) 29724: _M_default_append(__new_size - __len); 29724: else if (__new_size < __len) 29724: _M_erase_at_end(this->_M_impl._M_start 29724: + difference_type(__new_size)); 29724: } 29724: # 1309 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: resize(size_type __new_size, const value_type& __x) 29724: # 1326 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: { 29724: const size_type __len = size(); 29724: if (__new_size > __len) 29724: _M_fill_insert(this->_M_impl._M_finish, __new_size - __len, __x); 29724: else if (__new_size < __len) 29724: _M_erase_at_end(this->_M_impl._M_start 29724: + difference_type(__new_size)); 29724: } 29724: 29724: 29724: 29724: void 29724: shrink_to_fit() noexcept 29724: { _M_shrink_to_fit(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return this->_M_impl._M_finish == this->_M_impl._M_start; } 29724: # 1362 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: operator[](size_type __n) noexcept 29724: { 29724: ; 29724: return this->_M_impl._M_start[difference_type(__n)]; 29724: } 29724: # 1381 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: [[__nodiscard__]] 29724: const_reference 29724: operator[](size_type __n) const noexcept 29724: { 29724: ; 29724: return this->_M_impl._M_start[difference_type(__n)]; 29724: } 29724: 29724: protected: 29724: 29724: void 29724: _M_range_check(size_type __n) const 29724: { 29724: if (__n >= this->size()) 29724: __throw_out_of_range_fmt(("deque::_M_range_check: __n " "(which is %zu)>= this->size() " "(which is %zu)") 29724: 29724: , 29724: __n, this->size()); 29724: } 29724: 29724: public: 29724: # 1413 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: reference 29724: at(size_type __n) 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: # 1431 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: const_reference 29724: at(size_type __n) const 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: front() noexcept 29724: { 29724: ; 29724: return *begin(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: front() const noexcept 29724: { 29724: ; 29724: return *begin(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: back() noexcept 29724: { 29724: ; 29724: iterator __tmp = end(); 29724: --__tmp; 29724: return *__tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: back() const noexcept 29724: { 29724: ; 29724: const_iterator __tmp = end(); 29724: --__tmp; 29724: return *__tmp; 29724: } 29724: # 1500 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: push_front(const value_type& __x) 29724: { 29724: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 29724: { 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_start._M_cur - 1, 29724: __x); 29724: --this->_M_impl._M_start._M_cur; 29724: } 29724: else 29724: _M_push_front_aux(__x); 29724: } 29724: 29724: 29724: void 29724: push_front(value_type&& __x) 29724: { emplace_front(std::move(__x)); } 29724: 29724: template 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_front(_Args&&... __args); 29724: # 1537 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: push_back(const value_type& __x) 29724: { 29724: if (this->_M_impl._M_finish._M_cur 29724: != this->_M_impl._M_finish._M_last - 1) 29724: { 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_finish._M_cur, __x); 29724: ++this->_M_impl._M_finish._M_cur; 29724: } 29724: else 29724: _M_push_back_aux(__x); 29724: } 29724: 29724: 29724: void 29724: push_back(value_type&& __x) 29724: { emplace_back(std::move(__x)); } 29724: 29724: template 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_back(_Args&&... __args); 29724: # 1573 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: pop_front() noexcept 29724: { 29724: ; 29724: if (this->_M_impl._M_start._M_cur 29724: != this->_M_impl._M_start._M_last - 1) 29724: { 29724: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29724: this->_M_impl._M_start._M_cur); 29724: ++this->_M_impl._M_start._M_cur; 29724: } 29724: else 29724: _M_pop_front_aux(); 29724: } 29724: # 1596 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: pop_back() noexcept 29724: { 29724: ; 29724: if (this->_M_impl._M_finish._M_cur 29724: != this->_M_impl._M_finish._M_first) 29724: { 29724: --this->_M_impl._M_finish._M_cur; 29724: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29724: this->_M_impl._M_finish._M_cur); 29724: } 29724: else 29724: _M_pop_back_aux(); 29724: } 29724: # 1621 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: iterator 29724: emplace(const_iterator __position, _Args&&... __args); 29724: # 1634 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: insert(const_iterator __position, const value_type& __x); 29724: # 1660 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return emplace(__position, std::move(__x)); } 29724: # 1674 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: insert(const_iterator __p, initializer_list __l) 29724: { 29724: auto __offset = __p - cbegin(); 29724: _M_range_insert_aux(__p._M_const_cast(), __l.begin(), __l.end(), 29724: std::random_access_iterator_tag()); 29724: return begin() + __offset; 29724: } 29724: # 1693 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: insert(const_iterator __position, size_type __n, const value_type& __x) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_fill_insert(__position._M_const_cast(), __n, __x); 29724: return begin() + __offset; 29724: } 29724: # 1727 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template> 29724: iterator 29724: insert(const_iterator __position, _InputIterator __first, 29724: _InputIterator __last) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_range_insert_aux(__position._M_const_cast(), __first, __last, 29724: std::__iterator_category(__first)); 29724: return begin() + __offset; 29724: } 29724: # 1773 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: 29724: erase(const_iterator __position) 29724: 29724: 29724: 29724: { return _M_erase(__position._M_const_cast()); } 29724: # 1797 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: 29724: erase(const_iterator __first, const_iterator __last) 29724: 29724: 29724: 29724: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 29724: # 1816 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: swap(deque& __x) noexcept 29724: { 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) std::__glibcxx_assert_fail(); } while (false) 29724: ; 29724: 29724: _M_impl._M_swap_data(__x._M_impl); 29724: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 29724: __x._M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_erase_at_end(begin()); } 29724: 29724: protected: 29724: # 1866 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: static size_t 29724: _S_check_init_len(size_t __n, const allocator_type& __a) 29724: { 29724: if (__n > _S_max_size(__a)) 29724: __throw_length_error( 29724: ("cannot create std::deque larger than max_size()")); 29724: return __n; 29724: } 29724: 29724: static size_type 29724: _S_max_size(const _Tp_alloc_type& __a) noexcept 29724: { 29724: const size_t __diffmax = __gnu_cxx::__numeric_traits::__max; 29724: const size_t __allocmax = _Alloc_traits::max_size(__a); 29724: return (std::min)(__diffmax, __allocmax); 29724: } 29724: # 1895 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: void 29724: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag); 29724: 29724: 29724: template 29724: void 29724: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag); 29724: # 1917 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: _M_fill_initialize(const value_type& __value); 29724: 29724: 29724: 29724: void 29724: _M_default_initialize(); 29724: # 1948 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: void 29724: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag); 29724: 29724: 29724: template 29724: void 29724: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __len = std::distance(__first, __last); 29724: if (__len > size()) 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, size()); 29724: std::copy(__first, __mid, begin()); 29724: _M_range_insert_aux(end(), __mid, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: else 29724: _M_erase_at_end(std::copy(__first, __last, begin())); 29724: } 29724: 29724: 29724: 29724: void 29724: _M_fill_assign(size_type __n, const value_type& __val) 29724: { 29724: if (__n > size()) 29724: { 29724: std::fill(begin(), end(), __val); 29724: _M_fill_insert(end(), __n - size(), __val); 29724: } 29724: else 29724: { 29724: _M_erase_at_end(begin() + difference_type(__n)); 29724: std::fill(begin(), end(), __val); 29724: } 29724: } 29724: # 1996 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: void _M_push_back_aux(_Args&&... __args); 29724: 29724: template 29724: void _M_push_front_aux(_Args&&... __args); 29724: 29724: 29724: void _M_pop_back_aux(); 29724: 29724: void _M_pop_front_aux(); 29724: # 2035 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: void 29724: _M_range_insert_aux(iterator __pos, _InputIterator __first, 29724: _InputIterator __last, std::input_iterator_tag); 29724: 29724: 29724: template 29724: void 29724: _M_range_insert_aux(iterator __pos, _ForwardIterator __first, 29724: _ForwardIterator __last, std::forward_iterator_tag); 29724: 29724: 29724: 29724: 29724: void 29724: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: _M_insert_aux(iterator __pos, const value_type& __x) 29724: { return _M_emplace_aux(__pos, __x); } 29724: 29724: template 29724: iterator 29724: _M_emplace_aux(iterator __pos, _Args&&... __args); 29724: 29724: 29724: 29724: void 29724: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x); 29724: 29724: 29724: template 29724: void 29724: _M_insert_aux(iterator __pos, 29724: _ForwardIterator __first, _ForwardIterator __last, 29724: size_type __n); 29724: 29724: 29724: 29724: 29724: void 29724: _M_destroy_data_aux(iterator __first, iterator __last); 29724: 29724: 29724: 29724: template 29724: void 29724: _M_destroy_data(iterator __first, iterator __last, const _Alloc1&) 29724: { _M_destroy_data_aux(__first, __last); } 29724: 29724: void 29724: _M_destroy_data(iterator __first, iterator __last, 29724: const std::allocator<_Tp>&) 29724: { 29724: if (!__has_trivial_destructor(value_type)) 29724: _M_destroy_data_aux(__first, __last); 29724: } 29724: 29724: 29724: void 29724: _M_erase_at_begin(iterator __pos) 29724: { 29724: _M_destroy_data(begin(), __pos, _M_get_Tp_allocator()); 29724: _M_destroy_nodes(this->_M_impl._M_start._M_node, __pos._M_node); 29724: this->_M_impl._M_start = __pos; 29724: } 29724: 29724: 29724: 29724: void 29724: _M_erase_at_end(iterator __pos) 29724: { 29724: _M_destroy_data(__pos, end(), _M_get_Tp_allocator()); 29724: _M_destroy_nodes(__pos._M_node + 1, 29724: this->_M_impl._M_finish._M_node + 1); 29724: this->_M_impl._M_finish = __pos; 29724: } 29724: 29724: iterator 29724: _M_erase(iterator __pos); 29724: 29724: iterator 29724: _M_erase(iterator __first, iterator __last); 29724: 29724: 29724: 29724: void 29724: _M_default_append(size_type __n); 29724: 29724: bool 29724: _M_shrink_to_fit(); 29724: 29724: 29724: 29724: 29724: iterator 29724: _M_reserve_elements_at_front(size_type __n) 29724: { 29724: const size_type __vacancies = this->_M_impl._M_start._M_cur 29724: - this->_M_impl._M_start._M_first; 29724: if (__n > __vacancies) 29724: _M_new_elements_at_front(__n - __vacancies); 29724: return this->_M_impl._M_start - difference_type(__n); 29724: } 29724: 29724: iterator 29724: _M_reserve_elements_at_back(size_type __n) 29724: { 29724: const size_type __vacancies = (this->_M_impl._M_finish._M_last 29724: - this->_M_impl._M_finish._M_cur) - 1; 29724: if (__n > __vacancies) 29724: _M_new_elements_at_back(__n - __vacancies); 29724: return this->_M_impl._M_finish + difference_type(__n); 29724: } 29724: 29724: void 29724: _M_new_elements_at_front(size_type __new_elements); 29724: 29724: void 29724: _M_new_elements_at_back(size_type __new_elements); 29724: # 2171 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: _M_reserve_map_at_back(size_type __nodes_to_add = 1) 29724: { 29724: if (__nodes_to_add + 1 > this->_M_impl._M_map_size 29724: - (this->_M_impl._M_finish._M_node - this->_M_impl._M_map)) 29724: _M_reallocate_map(__nodes_to_add, false); 29724: } 29724: 29724: void 29724: _M_reserve_map_at_front(size_type __nodes_to_add = 1) 29724: { 29724: if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node 29724: - this->_M_impl._M_map)) 29724: _M_reallocate_map(__nodes_to_add, true); 29724: } 29724: 29724: void 29724: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front); 29724: 29724: 29724: 29724: 29724: 29724: void 29724: _M_move_assign1(deque&& __x, true_type) noexcept 29724: { 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: __x.clear(); 29724: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: _M_move_assign1(deque&& __x, false_type) 29724: { 29724: if (_M_get_Tp_allocator() == __x._M_get_Tp_allocator()) 29724: return _M_move_assign1(std::move(__x), true_type()); 29724: 29724: constexpr bool __move_storage = 29724: _Alloc_traits::_S_propagate_on_move_assign(); 29724: _M_move_assign2(std::move(__x), __bool_constant<__move_storage>()); 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: _M_replace_map(_Args&&... __args) 29724: { 29724: 29724: deque __newobj(std::forward<_Args>(__args)...); 29724: 29724: clear(); 29724: _M_deallocate_node(*begin()._M_node); 29724: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29724: this->_M_impl._M_map = nullptr; 29724: this->_M_impl._M_map_size = 0; 29724: 29724: this->_M_impl._M_swap_data(__newobj._M_impl); 29724: } 29724: 29724: 29724: void 29724: _M_move_assign2(deque&& __x, true_type) 29724: { 29724: 29724: auto __alloc = __x._M_get_Tp_allocator(); 29724: 29724: 29724: _M_replace_map(std::move(__x)); 29724: 29724: _M_get_Tp_allocator() = std::move(__alloc); 29724: } 29724: 29724: 29724: 29724: void 29724: _M_move_assign2(deque&& __x, false_type) 29724: { 29724: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 29724: { 29724: 29724: 29724: _M_replace_map(std::move(__x), __x.get_allocator()); 29724: } 29724: else 29724: { 29724: 29724: 29724: _M_assign_aux(std::make_move_iterator(__x.begin()), 29724: std::make_move_iterator(__x.end()), 29724: std::random_access_iterator_tag()); 29724: __x.clear(); 29724: } 29724: } 29724: 29724: }; 29724: 29724: 29724: template::value_type, 29724: typename _Allocator = allocator<_ValT>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireAllocator<_Allocator>> 29724: deque(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29724: -> deque<_ValT, _Allocator>; 29724: # 2291 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return __x.size() == __y.size() 29724: && std::equal(__x.begin(), __x.end(), __y.begin()); } 29724: # 2331 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return std::lexicographical_compare(__x.begin(), __x.end(), 29724: __y.begin(), __y.end()); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_bitwise_relocatable> 29724: : true_type { }; 29724: 29724: 29724: 29724: } 29724: # 67 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/refwrap.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/refwrap.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/refwrap.h" 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/invoke.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/invoke.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/invoke.h" 3 29724: # 42 "/usr/include/c++/14/bits/invoke.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 53 "/usr/include/c++/14/bits/invoke.h" 3 29724: template::type> 29724: constexpr _Up&& 29724: __invfwd(typename remove_reference<_Tp>::type& __t) noexcept 29724: { return static_cast<_Up&&>(__t); } 29724: 29724: template 29724: constexpr _Res 29724: __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) 29724: { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } 29724: 29724: template 29724: constexpr _Res 29724: __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, 29724: _Args&&... __args) 29724: { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } 29724: 29724: template 29724: constexpr _Res 29724: __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, 29724: _Args&&... __args) 29724: { 29724: return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); 29724: } 29724: 29724: template 29724: constexpr _Res 29724: __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) 29724: { return __invfwd<_Tp>(__t).*__f; } 29724: 29724: template 29724: constexpr _Res 29724: __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) 29724: { return (*std::forward<_Tp>(__t)).*__f; } 29724: 29724: 29724: template 29724: constexpr typename __invoke_result<_Callable, _Args...>::type 29724: __invoke(_Callable&& __fn, _Args&&... __args) 29724: noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) 29724: { 29724: using __result = __invoke_result<_Callable, _Args...>; 29724: using __type = typename __result::type; 29724: using __tag = typename __result::__invoke_type; 29724: return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr enable_if_t, _Res> 29724: __invoke_r(_Callable&& __fn, _Args&&... __args) 29724: noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) 29724: { 29724: using __result = __invoke_result<_Callable, _Args...>; 29724: using __type = typename __result::type; 29724: using __tag = typename __result::__invoke_type; 29724: if constexpr (is_void_v<_Res>) 29724: std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 29724: std::forward<_Args>(__args)...); 29724: else 29724: return std::__invoke_impl<__type>(__tag{}, 29724: std::forward<_Callable>(__fn), 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 155 "/usr/include/c++/14/bits/invoke.h" 3 29724: 29724: } 29724: # 39 "/usr/include/c++/14/bits/refwrap.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_function.h" 1 3 29724: # 63 "/usr/include/c++/14/bits/stl_function.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 116 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: struct unary_function 29724: { 29724: 29724: typedef _Arg argument_type; 29724: 29724: 29724: typedef _Result result_type; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct binary_function 29724: { 29724: 29724: typedef _Arg1 first_argument_type; 29724: 29724: 29724: typedef _Arg2 second_argument_type; 29724: 29724: 29724: typedef _Result result_type; 29724: } __attribute__ ((__deprecated__)); 29724: # 157 "/usr/include/c++/14/bits/stl_function.h" 3 29724: struct __is_transparent; 29724: 29724: template 29724: struct plus; 29724: 29724: template 29724: struct minus; 29724: 29724: template 29724: struct multiplies; 29724: 29724: template 29724: struct divides; 29724: 29724: template 29724: struct modulus; 29724: 29724: template 29724: struct negate; 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: struct plus : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x + __y; } 29724: }; 29724: 29724: 29724: template 29724: struct minus : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x - __y; } 29724: }; 29724: 29724: 29724: template 29724: struct multiplies : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x * __y; } 29724: }; 29724: 29724: 29724: template 29724: struct divides : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x / __y; } 29724: }; 29724: 29724: 29724: template 29724: struct modulus : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x % __y; } 29724: }; 29724: 29724: 29724: template 29724: struct negate : public unary_function<_Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x) const 29724: { return -__x; } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: template<> 29724: struct plus 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct minus 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct multiplies 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct divides 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct modulus 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct negate 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t) const 29724: noexcept(noexcept(-std::forward<_Tp>(__t))) 29724: -> decltype(-std::forward<_Tp>(__t)) 29724: { return -std::forward<_Tp>(__t); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: # 346 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: struct equal_to; 29724: 29724: template 29724: struct not_equal_to; 29724: 29724: template 29724: struct greater; 29724: 29724: template 29724: struct less; 29724: 29724: template 29724: struct greater_equal; 29724: 29724: template 29724: struct less_equal; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: struct equal_to : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x == __y; } 29724: }; 29724: 29724: 29724: template 29724: struct not_equal_to : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x != __y; } 29724: }; 29724: 29724: 29724: template 29724: struct greater : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x > __y; } 29724: }; 29724: 29724: 29724: template 29724: struct less : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x < __y; } 29724: }; 29724: 29724: 29724: template 29724: struct greater_equal : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x >= __y; } 29724: }; 29724: 29724: 29724: template 29724: struct less_equal : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x <= __y; } 29724: }; 29724: 29724: 29724: template 29724: struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29724: { 29724: constexpr bool 29724: operator()(_Tp* __x, _Tp* __y) const noexcept 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __x > __y; 29724: 29724: return (unsigned int)__x > (unsigned int)__y; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29724: { 29724: constexpr bool 29724: operator()(_Tp* __x, _Tp* __y) const noexcept 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __x < __y; 29724: 29724: return (unsigned int)__x < (unsigned int)__y; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29724: { 29724: constexpr bool 29724: operator()(_Tp* __x, _Tp* __y) const noexcept 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __x >= __y; 29724: 29724: return (unsigned int)__x >= (unsigned int)__y; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29724: { 29724: constexpr bool 29724: operator()(_Tp* __x, _Tp* __y) const noexcept 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __x <= __y; 29724: 29724: return (unsigned int)__x <= (unsigned int)__y; 29724: } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: template<> 29724: struct equal_to 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct not_equal_to 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct greater 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) 29724: { 29724: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29724: __ptr_cmp<_Tp, _Up>{}); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator()(_Tp* __t, _Up* __u) const noexcept 29724: { return greater>{}(__t, __u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: 29724: private: 29724: template 29724: static constexpr decltype(auto) 29724: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29724: { return std::forward<_Tp>(__t) > std::forward<_Up>(__u); } 29724: 29724: template 29724: static constexpr bool 29724: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29724: { 29724: return greater{}( 29724: static_cast(std::forward<_Tp>(__t)), 29724: static_cast(std::forward<_Up>(__u))); 29724: } 29724: 29724: 29724: template 29724: struct __not_overloaded2 : true_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded2<_Tp, _Up, __void_t< 29724: decltype(std::declval<_Tp>().operator>(std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29724: 29724: 29724: template 29724: struct __not_overloaded<_Tp, _Up, __void_t< 29724: decltype(operator>(std::declval<_Tp>(), std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: template 29724: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29724: is_convertible<_Tp, const volatile void*>, 29724: is_convertible<_Up, const volatile void*>>; 29724: }; 29724: 29724: 29724: template<> 29724: struct less 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) 29724: { 29724: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29724: __ptr_cmp<_Tp, _Up>{}); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator()(_Tp* __t, _Up* __u) const noexcept 29724: { return less>{}(__t, __u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: 29724: private: 29724: template 29724: static constexpr decltype(auto) 29724: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29724: { return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } 29724: 29724: template 29724: static constexpr bool 29724: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29724: { 29724: return less{}( 29724: static_cast(std::forward<_Tp>(__t)), 29724: static_cast(std::forward<_Up>(__u))); 29724: } 29724: 29724: 29724: template 29724: struct __not_overloaded2 : true_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded2<_Tp, _Up, __void_t< 29724: decltype(std::declval<_Tp>().operator<(std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29724: 29724: 29724: template 29724: struct __not_overloaded<_Tp, _Up, __void_t< 29724: decltype(operator<(std::declval<_Tp>(), std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: template 29724: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29724: is_convertible<_Tp, const volatile void*>, 29724: is_convertible<_Up, const volatile void*>>; 29724: }; 29724: 29724: 29724: template<> 29724: struct greater_equal 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) 29724: { 29724: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29724: __ptr_cmp<_Tp, _Up>{}); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator()(_Tp* __t, _Up* __u) const noexcept 29724: { return greater_equal>{}(__t, __u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: 29724: private: 29724: template 29724: static constexpr decltype(auto) 29724: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29724: { return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); } 29724: 29724: template 29724: static constexpr bool 29724: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29724: { 29724: return greater_equal{}( 29724: static_cast(std::forward<_Tp>(__t)), 29724: static_cast(std::forward<_Up>(__u))); 29724: } 29724: 29724: 29724: template 29724: struct __not_overloaded2 : true_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded2<_Tp, _Up, __void_t< 29724: decltype(std::declval<_Tp>().operator>=(std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29724: 29724: 29724: template 29724: struct __not_overloaded<_Tp, _Up, __void_t< 29724: decltype(operator>=(std::declval<_Tp>(), std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: template 29724: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29724: is_convertible<_Tp, const volatile void*>, 29724: is_convertible<_Up, const volatile void*>>; 29724: }; 29724: 29724: 29724: template<> 29724: struct less_equal 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) 29724: { 29724: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29724: __ptr_cmp<_Tp, _Up>{}); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator()(_Tp* __t, _Up* __u) const noexcept 29724: { return less_equal>{}(__t, __u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: 29724: private: 29724: template 29724: static constexpr decltype(auto) 29724: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29724: { return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); } 29724: 29724: template 29724: static constexpr bool 29724: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29724: { 29724: return less_equal{}( 29724: static_cast(std::forward<_Tp>(__t)), 29724: static_cast(std::forward<_Up>(__u))); 29724: } 29724: 29724: 29724: template 29724: struct __not_overloaded2 : true_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded2<_Tp, _Up, __void_t< 29724: decltype(std::declval<_Tp>().operator<=(std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29724: 29724: 29724: template 29724: struct __not_overloaded<_Tp, _Up, __void_t< 29724: decltype(operator<=(std::declval<_Tp>(), std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: template 29724: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29724: is_convertible<_Tp, const volatile void*>, 29724: is_convertible<_Up, const volatile void*>>; 29724: }; 29724: # 778 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: struct logical_and; 29724: 29724: template 29724: struct logical_or; 29724: 29724: template 29724: struct logical_not; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: struct logical_and : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x && __y; } 29724: }; 29724: 29724: 29724: template 29724: struct logical_or : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x || __y; } 29724: }; 29724: 29724: 29724: template 29724: struct logical_not : public unary_function<_Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x) const 29724: { return !__x; } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: template<> 29724: struct logical_and 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct logical_or 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct logical_not 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t) const 29724: noexcept(noexcept(!std::forward<_Tp>(__t))) 29724: -> decltype(!std::forward<_Tp>(__t)) 29724: { return !std::forward<_Tp>(__t); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct bit_and; 29724: 29724: template 29724: struct bit_or; 29724: 29724: template 29724: struct bit_xor; 29724: 29724: template 29724: struct bit_not; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: 29724: template 29724: struct bit_and : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x & __y; } 29724: }; 29724: 29724: template 29724: struct bit_or : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x | __y; } 29724: }; 29724: 29724: template 29724: struct bit_xor : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x ^ __y; } 29724: }; 29724: 29724: template 29724: struct bit_not : public unary_function<_Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x) const 29724: { return ~__x; } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: template <> 29724: struct bit_and 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: template <> 29724: struct bit_or 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: template <> 29724: struct bit_xor 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: template <> 29724: struct bit_not 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t) const 29724: noexcept(noexcept(~std::forward<_Tp>(__t))) 29724: -> decltype(~std::forward<_Tp>(__t)) 29724: { return ~std::forward<_Tp>(__t); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: # 1020 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: class [[__deprecated__]] unary_negate 29724: : public unary_function 29724: { 29724: protected: 29724: _Predicate _M_pred; 29724: 29724: public: 29724: constexpr 29724: explicit 29724: unary_negate(const _Predicate& __x) : _M_pred(__x) { } 29724: 29724: constexpr 29724: bool 29724: operator()(const typename _Predicate::argument_type& __x) const 29724: { return !_M_pred(__x); } 29724: }; 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 29724: constexpr 29724: inline unary_negate<_Predicate> 29724: not1(const _Predicate& __pred) 29724: { return unary_negate<_Predicate>(__pred); } 29724: 29724: 29724: template 29724: class [[__deprecated__]] binary_negate 29724: : public binary_function 29724: { 29724: protected: 29724: _Predicate _M_pred; 29724: 29724: public: 29724: constexpr 29724: explicit 29724: binary_negate(const _Predicate& __x) : _M_pred(__x) { } 29724: 29724: constexpr 29724: bool 29724: operator()(const typename _Predicate::first_argument_type& __x, 29724: const typename _Predicate::second_argument_type& __y) const 29724: { return !_M_pred(__x, __y); } 29724: }; 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 29724: constexpr 29724: inline binary_negate<_Predicate> 29724: not2(const _Predicate& __pred) 29724: { return binary_negate<_Predicate>(__pred); } 29724: # 1101 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: class pointer_to_unary_function : public unary_function<_Arg, _Result> 29724: { 29724: protected: 29724: _Result (*_M_ptr)(_Arg); 29724: 29724: public: 29724: pointer_to_unary_function() { } 29724: 29724: explicit 29724: pointer_to_unary_function(_Result (*__x)(_Arg)) 29724: : _M_ptr(__x) { } 29724: 29724: _Result 29724: operator()(_Arg __x) const 29724: { return _M_ptr(__x); } 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 29724: inline pointer_to_unary_function<_Arg, _Result> 29724: ptr_fun(_Result (*__x)(_Arg)) 29724: { return pointer_to_unary_function<_Arg, _Result>(__x); } 29724: 29724: 29724: template 29724: class pointer_to_binary_function 29724: : public binary_function<_Arg1, _Arg2, _Result> 29724: { 29724: protected: 29724: _Result (*_M_ptr)(_Arg1, _Arg2); 29724: 29724: public: 29724: pointer_to_binary_function() { } 29724: 29724: explicit 29724: pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) 29724: : _M_ptr(__x) { } 29724: 29724: _Result 29724: operator()(_Arg1 __x, _Arg2 __y) const 29724: { return _M_ptr(__x, __y); } 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 29724: inline pointer_to_binary_function<_Arg1, _Arg2, _Result> 29724: ptr_fun(_Result (*__x)(_Arg1, _Arg2)) 29724: { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } 29724: 29724: 29724: template 29724: struct _Identity 29724: : public unary_function<_Tp, _Tp> 29724: { 29724: _Tp& 29724: operator()(_Tp& __x) const 29724: { return __x; } 29724: 29724: const _Tp& 29724: operator()(const _Tp& __x) const 29724: { return __x; } 29724: }; 29724: 29724: 29724: template struct _Identity : _Identity<_Tp> { }; 29724: 29724: template 29724: struct _Select1st 29724: : public unary_function<_Pair, typename _Pair::first_type> 29724: { 29724: typename _Pair::first_type& 29724: operator()(_Pair& __x) const 29724: { return __x.first; } 29724: 29724: const typename _Pair::first_type& 29724: operator()(const _Pair& __x) const 29724: { return __x.first; } 29724: 29724: 29724: template 29724: typename _Pair2::first_type& 29724: operator()(_Pair2& __x) const 29724: { return __x.first; } 29724: 29724: template 29724: const typename _Pair2::first_type& 29724: operator()(const _Pair2& __x) const 29724: { return __x.first; } 29724: 29724: }; 29724: 29724: template 29724: struct _Select2nd 29724: : public unary_function<_Pair, typename _Pair::second_type> 29724: { 29724: typename _Pair::second_type& 29724: operator()(_Pair& __x) const 29724: { return __x.second; } 29724: 29724: const typename _Pair::second_type& 29724: operator()(const _Pair& __x) const 29724: { return __x.second; } 29724: }; 29724: # 1228 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: class mem_fun_t : public unary_function<_Tp*, _Ret> 29724: { 29724: public: 29724: explicit 29724: mem_fun_t(_Ret (_Tp::*__pf)()) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(_Tp* __p) const 29724: { return (__p->*_M_f)(); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(); 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class const_mem_fun_t : public unary_function 29724: { 29724: public: 29724: explicit 29724: const_mem_fun_t(_Ret (_Tp::*__pf)() const) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(const _Tp* __p) const 29724: { return (__p->*_M_f)(); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)() const; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class mem_fun_ref_t : public unary_function<_Tp, _Ret> 29724: { 29724: public: 29724: explicit 29724: mem_fun_ref_t(_Ret (_Tp::*__pf)()) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(_Tp& __r) const 29724: { return (__r.*_M_f)(); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(); 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> 29724: { 29724: public: 29724: explicit 29724: const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(const _Tp& __r) const 29724: { return (__r.*_M_f)(); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)() const; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> 29724: { 29724: public: 29724: explicit 29724: mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(_Tp* __p, _Arg __x) const 29724: { return (__p->*_M_f)(__x); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(_Arg); 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class const_mem_fun1_t : public binary_function 29724: { 29724: public: 29724: explicit 29724: const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(const _Tp* __p, _Arg __x) const 29724: { return (__p->*_M_f)(__x); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(_Arg) const; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 29724: { 29724: public: 29724: explicit 29724: mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(_Tp& __r, _Arg __x) const 29724: { return (__r.*_M_f)(__x); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(_Arg); 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 29724: { 29724: public: 29724: explicit 29724: const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(const _Tp& __r, _Arg __x) const 29724: { return (__r.*_M_f)(__x); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(_Arg) const; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline mem_fun_t<_Ret, _Tp> 29724: mem_fun(_Ret (_Tp::*__f)()) 29724: { return mem_fun_t<_Ret, _Tp>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline const_mem_fun_t<_Ret, _Tp> 29724: mem_fun(_Ret (_Tp::*__f)() const) 29724: { return const_mem_fun_t<_Ret, _Tp>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline mem_fun_ref_t<_Ret, _Tp> 29724: mem_fun_ref(_Ret (_Tp::*__f)()) 29724: { return mem_fun_ref_t<_Ret, _Tp>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline const_mem_fun_ref_t<_Ret, _Tp> 29724: mem_fun_ref(_Ret (_Tp::*__f)() const) 29724: { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline mem_fun1_t<_Ret, _Tp, _Arg> 29724: mem_fun(_Ret (_Tp::*__f)(_Arg)) 29724: { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline const_mem_fun1_t<_Ret, _Tp, _Arg> 29724: mem_fun(_Ret (_Tp::*__f)(_Arg) const) 29724: { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline mem_fun1_ref_t<_Ret, _Tp, _Arg> 29724: mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) 29724: { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> 29724: mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) 29724: { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: template> 29724: struct __has_is_transparent 29724: { }; 29724: 29724: template 29724: struct __has_is_transparent<_Func, _SfinaeType, 29724: __void_t> 29724: { typedef void type; }; 29724: 29724: template 29724: using __has_is_transparent_t 29724: = typename __has_is_transparent<_Func, _SfinaeType>::type; 29724: 29724: 29724: 29724: } 29724: 29724: 29724: # 1 "/usr/include/c++/14/backward/binders.h" 1 3 29724: # 60 "/usr/include/c++/14/backward/binders.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 107 "/usr/include/c++/14/backward/binders.h" 3 29724: template 29724: class binder1st 29724: : public unary_function 29724: { 29724: protected: 29724: _Operation op; 29724: typename _Operation::first_argument_type value; 29724: 29724: public: 29724: binder1st(const _Operation& __x, 29724: const typename _Operation::first_argument_type& __y) 29724: : op(__x), value(__y) { } 29724: 29724: typename _Operation::result_type 29724: operator()(const typename _Operation::second_argument_type& __x) const 29724: { return op(value, __x); } 29724: 29724: 29724: 29724: typename _Operation::result_type 29724: operator()(typename _Operation::second_argument_type& __x) const 29724: { return op(value, __x); } 29724: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 29724: inline binder1st<_Operation> 29724: bind1st(const _Operation& __fn, const _Tp& __x) 29724: { 29724: typedef typename _Operation::first_argument_type _Arg1_type; 29724: return binder1st<_Operation>(__fn, _Arg1_type(__x)); 29724: } 29724: 29724: 29724: template 29724: class binder2nd 29724: : public unary_function 29724: { 29724: protected: 29724: _Operation op; 29724: typename _Operation::second_argument_type value; 29724: 29724: public: 29724: binder2nd(const _Operation& __x, 29724: const typename _Operation::second_argument_type& __y) 29724: : op(__x), value(__y) { } 29724: 29724: typename _Operation::result_type 29724: operator()(const typename _Operation::first_argument_type& __x) const 29724: { return op(__x, value); } 29724: 29724: 29724: 29724: typename _Operation::result_type 29724: operator()(typename _Operation::first_argument_type& __x) const 29724: { return op(__x, value); } 29724: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 29724: inline binder2nd<_Operation> 29724: bind2nd(const _Operation& __fn, const _Tp& __x) 29724: { 29724: typedef typename _Operation::second_argument_type _Arg2_type; 29724: return binder2nd<_Operation>(__fn, _Arg2_type(__x)); 29724: } 29724: 29724: 29724: 29724: } 29724: 29724: #pragma GCC diagnostic pop 29724: # 1436 "/usr/include/c++/14/bits/stl_function.h" 2 3 29724: # 40 "/usr/include/c++/14/bits/refwrap.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 56 "/usr/include/c++/14/bits/refwrap.h" 3 29724: template 29724: struct _Maybe_unary_or_binary_function { }; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: struct _Maybe_unary_or_binary_function<_Res, _T1> 29724: : std::unary_function<_T1, _Res> { }; 29724: 29724: 29724: template 29724: struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> 29724: : std::binary_function<_T1, _T2, _Res> { }; 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: template 29724: struct _Mem_fn_traits; 29724: 29724: template 29724: struct _Mem_fn_traits_base 29724: { 29724: using __result_type = _Res; 29724: using __maybe_type 29724: = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; 29724: using __arity = integral_constant; 29724: }; 29724: # 107 "/usr/include/c++/14/bits/refwrap.h" 3 29724: 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; }; 29724: 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; }; 29724: 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; }; 29724: 29724: 29724: 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; }; 29724: 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; }; 29724: 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; }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: struct _Maybe_get_result_type 29724: { }; 29724: 29724: template 29724: struct _Maybe_get_result_type<_Functor, 29724: __void_t> 29724: { typedef typename _Functor::result_type result_type; }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Weak_result_type_impl 29724: : _Maybe_get_result_type<_Functor> 29724: { }; 29724: 29724: 29724: template 29724: struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> 29724: { typedef _Res result_type; }; 29724: 29724: 29724: template 29724: struct _Weak_result_type_impl<_Res(_ArgTypes......) noexcept (_NE)> 29724: { typedef _Res result_type; }; 29724: 29724: 29724: template 29724: struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> 29724: { typedef _Res result_type; }; 29724: 29724: 29724: template 29724: struct 29724: _Weak_result_type_impl<_Res(*)(_ArgTypes......) noexcept (_NE)> 29724: { typedef _Res result_type; }; 29724: 29724: 29724: template::value> 29724: struct _Weak_result_type_memfun 29724: : _Weak_result_type_impl<_Functor> 29724: { }; 29724: 29724: 29724: template 29724: struct _Weak_result_type_memfun<_MemFunPtr, true> 29724: { 29724: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 29724: }; 29724: 29724: 29724: template 29724: struct _Weak_result_type_memfun<_Func _Class::*, false> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Weak_result_type 29724: : _Weak_result_type_memfun::type> 29724: { }; 29724: 29724: 29724: 29724: template> 29724: struct _Refwrap_base_arg1 29724: { }; 29724: 29724: 29724: template 29724: struct _Refwrap_base_arg1<_Tp, 29724: __void_t> 29724: { 29724: typedef typename _Tp::argument_type argument_type; 29724: }; 29724: 29724: 29724: template> 29724: struct _Refwrap_base_arg2 29724: { }; 29724: 29724: 29724: template 29724: struct _Refwrap_base_arg2<_Tp, 29724: __void_t> 29724: { 29724: typedef typename _Tp::first_argument_type first_argument_type; 29724: typedef typename _Tp::second_argument_type second_argument_type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Reference_wrapper_base 29724: : _Weak_result_type<_Tp>, _Refwrap_base_arg1<_Tp>, _Refwrap_base_arg2<_Tp> 29724: { }; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1) noexcept (_NE)> 29724: : unary_function<_T1, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1) const> 29724: : unary_function<_T1, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1) volatile> 29724: : unary_function<_T1, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1) const volatile> 29724: : unary_function<_T1, _Res> 29724: { }; 29724: 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1, _T2) noexcept (_NE)> 29724: : binary_function<_T1, _T2, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1, _T2) const> 29724: : binary_function<_T1, _T2, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1, _T2) volatile> 29724: : binary_function<_T1, _T2, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1, _T2) const volatile> 29724: : binary_function<_T1, _T2, _Res> 29724: { }; 29724: 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(*)(_T1) noexcept (_NE)> 29724: : unary_function<_T1, _Res> 29724: { }; 29724: 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(*)(_T1, _T2) noexcept (_NE)> 29724: : binary_function<_T1, _T2, _Res> 29724: { }; 29724: 29724: template::value> 29724: struct _Reference_wrapper_base_memfun 29724: : _Reference_wrapper_base<_Tp> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base_memfun<_MemFunPtr, true> 29724: : _Mem_fn_traits<_MemFunPtr>::__maybe_type 29724: { 29724: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 29724: }; 29724: #pragma GCC diagnostic pop 29724: # 306 "/usr/include/c++/14/bits/refwrap.h" 3 29724: template 29724: class reference_wrapper 29724: 29724: 29724: 29724: : public _Reference_wrapper_base_memfun::type> 29724: 29724: { 29724: _Tp* _M_data; 29724: 29724: 29724: static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } 29724: 29724: static void _S_fun(_Tp&&) = delete; 29724: 29724: template> 29724: using __not_same 29724: = typename enable_if::value>::type; 29724: 29724: public: 29724: typedef _Tp type; 29724: 29724: 29724: 29724: 29724: template, typename 29724: = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> 29724: 29724: reference_wrapper(_Up&& __uref) 29724: noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) 29724: : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) 29724: { } 29724: 29724: reference_wrapper(const reference_wrapper&) = default; 29724: 29724: reference_wrapper& 29724: operator=(const reference_wrapper&) = default; 29724: 29724: 29724: operator _Tp&() const noexcept 29724: { return this->get(); } 29724: 29724: 29724: _Tp& 29724: get() const noexcept 29724: { return *_M_data; } 29724: 29724: template 29724: 29724: typename __invoke_result<_Tp&, _Args...>::type 29724: operator()(_Args&&... __args) const 29724: noexcept(__is_nothrow_invocable<_Tp&, _Args...>::value) 29724: { 29724: 29724: 29724: 29724: 29724: return std::__invoke(get(), std::forward<_Args>(__args)...); 29724: } 29724: # 412 "/usr/include/c++/14/bits/refwrap.h" 3 29724: }; 29724: 29724: 29724: template 29724: reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline reference_wrapper<_Tp> 29724: ref(_Tp& __t) noexcept 29724: { return reference_wrapper<_Tp>(__t); } 29724: 29724: 29724: template 29724: 29724: inline reference_wrapper 29724: cref(const _Tp& __t) noexcept 29724: { return reference_wrapper(__t); } 29724: 29724: template 29724: void ref(const _Tp&&) = delete; 29724: 29724: template 29724: void cref(const _Tp&&) = delete; 29724: 29724: 29724: template 29724: 29724: inline reference_wrapper<_Tp> 29724: ref(reference_wrapper<_Tp> __t) noexcept 29724: { return __t; } 29724: 29724: 29724: template 29724: 29724: inline reference_wrapper 29724: cref(reference_wrapper<_Tp> __t) noexcept 29724: { return { __t.get() }; } 29724: 29724: 29724: 29724: 29724: } 29724: # 68 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/range_access.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/range_access.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/range_access.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: begin(_Container& __cont) -> decltype(__cont.begin()) 29724: { return __cont.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: begin(const _Container& __cont) -> decltype(__cont.begin()) 29724: { return __cont.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: end(_Container& __cont) -> decltype(__cont.end()) 29724: { return __cont.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: end(const _Container& __cont) -> decltype(__cont.end()) 29724: { return __cont.end(); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr _Tp* 29724: begin(_Tp (&__arr)[_Nm]) noexcept 29724: { return __arr; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr _Tp* 29724: end(_Tp (&__arr)[_Nm]) noexcept 29724: { return __arr + _Nm; } 29724: 29724: 29724: 29724: template class valarray; 29724: 29724: template _Tp* begin(valarray<_Tp>&) noexcept; 29724: template const _Tp* begin(const valarray<_Tp>&) noexcept; 29724: template _Tp* end(valarray<_Tp>&) noexcept; 29724: template const _Tp* end(const valarray<_Tp>&) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: constexpr auto 29724: cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) 29724: -> decltype(std::begin(__cont)) 29724: { return std::begin(__cont); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: constexpr auto 29724: cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) 29724: -> decltype(std::end(__cont)) 29724: { return std::end(__cont); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: rbegin(_Container& __cont) -> decltype(__cont.rbegin()) 29724: { return __cont.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: rbegin(const _Container& __cont) -> decltype(__cont.rbegin()) 29724: { return __cont.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: rend(_Container& __cont) -> decltype(__cont.rend()) 29724: { return __cont.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: rend(const _Container& __cont) -> decltype(__cont.rend()) 29724: { return __cont.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator<_Tp*> 29724: rbegin(_Tp (&__arr)[_Nm]) noexcept 29724: { return reverse_iterator<_Tp*>(__arr + _Nm); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator<_Tp*> 29724: rend(_Tp (&__arr)[_Nm]) noexcept 29724: { return reverse_iterator<_Tp*>(__arr); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator 29724: rbegin(initializer_list<_Tp> __il) noexcept 29724: { return reverse_iterator(__il.end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator 29724: rend(initializer_list<_Tp> __il) noexcept 29724: { return reverse_iterator(__il.begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont)) 29724: { return std::rbegin(__cont); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: crend(const _Container& __cont) -> decltype(std::rend(__cont)) 29724: { return std::rend(__cont); } 29724: # 259 "/usr/include/c++/14/bits/range_access.h" 3 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr auto 29724: size(const _Container& __cont) noexcept(noexcept(__cont.size())) 29724: -> decltype(__cont.size()) 29724: { return __cont.size(); } 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr size_t 29724: size(const _Tp (&)[_Nm]) noexcept 29724: { return _Nm; } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr auto 29724: empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) 29724: -> decltype(__cont.empty()) 29724: { return __cont.empty(); } 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr bool 29724: empty(const _Tp (&)[_Nm]) noexcept 29724: { return false; } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr bool 29724: empty(initializer_list<_Tp> __il) noexcept 29724: { return __il.size() == 0;} 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr auto 29724: data(_Container& __cont) noexcept(noexcept(__cont.data())) 29724: -> decltype(__cont.data()) 29724: { return __cont.data(); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr auto 29724: data(const _Container& __cont) noexcept(noexcept(__cont.data())) 29724: -> decltype(__cont.data()) 29724: { return __cont.data(); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr _Tp* 29724: data(_Tp (&__array)[_Nm]) noexcept 29724: { return __array; } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr const _Tp* 29724: data(initializer_list<_Tp> __il) noexcept 29724: { return __il.begin(); } 29724: # 366 "/usr/include/c++/14/bits/range_access.h" 3 29724: 29724: } 29724: # 69 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/deque.tcc" 1 3 29724: # 61 "/usr/include/c++/14/bits/deque.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_default_initialize() 29724: { 29724: _Map_pointer __cur; 29724: try 29724: { 29724: for (__cur = this->_M_impl._M_start._M_node; 29724: __cur < this->_M_impl._M_finish._M_node; 29724: ++__cur) 29724: std::__uninitialized_default_a(*__cur, *__cur + _S_buffer_size(), 29724: _M_get_Tp_allocator()); 29724: std::__uninitialized_default_a(this->_M_impl._M_finish._M_first, 29724: this->_M_impl._M_finish._M_cur, 29724: _M_get_Tp_allocator()); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 29724: _M_get_Tp_allocator()); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: deque<_Tp, _Alloc>& 29724: deque<_Tp, _Alloc>:: 29724: operator=(const deque& __x) 29724: { 29724: if (std::__addressof(__x) != this) 29724: { 29724: 29724: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: if (!_Alloc_traits::_S_always_equal() 29724: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 29724: { 29724: 29724: 29724: _M_replace_map(__x, __x.get_allocator()); 29724: std::__alloc_on_copy(_M_get_Tp_allocator(), 29724: __x._M_get_Tp_allocator()); 29724: return *this; 29724: } 29724: std::__alloc_on_copy(_M_get_Tp_allocator(), 29724: __x._M_get_Tp_allocator()); 29724: } 29724: 29724: const size_type __len = size(); 29724: if (__len >= __x.size()) 29724: _M_erase_at_end(std::copy(__x.begin(), __x.end(), 29724: this->_M_impl._M_start)); 29724: else 29724: { 29724: const_iterator __mid = __x.begin() + difference_type(__len); 29724: std::copy(__x.begin(), __mid, this->_M_impl._M_start); 29724: _M_range_insert_aux(this->_M_impl._M_finish, __mid, __x.end(), 29724: std::random_access_iterator_tag()); 29724: } 29724: } 29724: return *this; 29724: } 29724: 29724: 29724: template 29724: template 29724: 29724: typename deque<_Tp, _Alloc>::reference 29724: 29724: 29724: 29724: deque<_Tp, _Alloc>:: 29724: emplace_front(_Args&&... __args) 29724: { 29724: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 29724: { 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_start._M_cur - 1, 29724: std::forward<_Args>(__args)...); 29724: --this->_M_impl._M_start._M_cur; 29724: } 29724: else 29724: _M_push_front_aux(std::forward<_Args>(__args)...); 29724: 29724: return front(); 29724: 29724: } 29724: 29724: template 29724: template 29724: 29724: typename deque<_Tp, _Alloc>::reference 29724: 29724: 29724: 29724: deque<_Tp, _Alloc>:: 29724: emplace_back(_Args&&... __args) 29724: { 29724: if (this->_M_impl._M_finish._M_cur 29724: != this->_M_impl._M_finish._M_last - 1) 29724: { 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_finish._M_cur, 29724: std::forward<_Args>(__args)...); 29724: ++this->_M_impl._M_finish._M_cur; 29724: } 29724: else 29724: _M_push_back_aux(std::forward<_Args>(__args)...); 29724: 29724: return back(); 29724: 29724: } 29724: 29724: 29724: 29724: template 29724: template 29724: typename deque<_Tp, _Alloc>::iterator 29724: deque<_Tp, _Alloc>:: 29724: emplace(const_iterator __position, _Args&&... __args) 29724: { 29724: if (__position._M_cur == this->_M_impl._M_start._M_cur) 29724: { 29724: emplace_front(std::forward<_Args>(__args)...); 29724: return this->_M_impl._M_start; 29724: } 29724: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 29724: { 29724: emplace_back(std::forward<_Args>(__args)...); 29724: iterator __tmp = this->_M_impl._M_finish; 29724: --__tmp; 29724: return __tmp; 29724: } 29724: else 29724: return _M_emplace_aux(__position._M_const_cast(), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: template 29724: typename deque<_Tp, _Alloc>::iterator 29724: deque<_Tp, _Alloc>:: 29724: 29724: insert(const_iterator __position, const value_type& __x) 29724: 29724: 29724: 29724: { 29724: if (__position._M_cur == this->_M_impl._M_start._M_cur) 29724: { 29724: push_front(__x); 29724: return this->_M_impl._M_start; 29724: } 29724: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 29724: { 29724: push_back(__x); 29724: iterator __tmp = this->_M_impl._M_finish; 29724: --__tmp; 29724: return __tmp; 29724: } 29724: else 29724: return _M_insert_aux(__position._M_const_cast(), __x); 29724: } 29724: 29724: template 29724: typename deque<_Tp, _Alloc>::iterator 29724: deque<_Tp, _Alloc>:: 29724: _M_erase(iterator __position) 29724: { 29724: iterator __next = __position; 29724: ++__next; 29724: const difference_type __index = __position - begin(); 29724: if (static_cast(__index) < (size() >> 1)) 29724: { 29724: if (__position != begin()) 29724: std::move_backward(begin(), __position, __next); 29724: pop_front(); 29724: } 29724: else 29724: { 29724: if (__next != end()) 29724: std::move(__next, end(), __position); 29724: pop_back(); 29724: } 29724: return begin() + __index; 29724: } 29724: 29724: template 29724: typename deque<_Tp, _Alloc>::iterator 29724: deque<_Tp, _Alloc>:: 29724: _M_erase(iterator __first, iterator __last) 29724: { 29724: if (__first == __last) 29724: return __first; 29724: else if (__first == begin() && __last == end()) 29724: { 29724: clear(); 29724: return end(); 29724: } 29724: else 29724: { 29724: const difference_type __n = __last - __first; 29724: const difference_type __elems_before = __first - begin(); 29724: if (static_cast(__elems_before) <= (size() - __n) / 2) 29724: { 29724: if (__first != begin()) 29724: std::move_backward(begin(), __first, __last); 29724: _M_erase_at_begin(begin() + __n); 29724: } 29724: else 29724: { 29724: if (__last != end()) 29724: std::move(__last, end(), __first); 29724: _M_erase_at_end(end() - __n); 29724: } 29724: return begin() + __elems_before; 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: iterator __cur = begin(); 29724: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 29724: *__cur = *__first; 29724: if (__first == __last) 29724: _M_erase_at_end(__cur); 29724: else 29724: _M_range_insert_aux(end(), __first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x) 29724: { 29724: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 29724: { 29724: iterator __new_start = _M_reserve_elements_at_front(__n); 29724: try 29724: { 29724: std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, 29724: __x, _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(__new_start._M_node, 29724: this->_M_impl._M_start._M_node); 29724: throw; 29724: } 29724: } 29724: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 29724: { 29724: iterator __new_finish = _M_reserve_elements_at_back(__n); 29724: try 29724: { 29724: std::__uninitialized_fill_a(this->_M_impl._M_finish, 29724: __new_finish, __x, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29724: __new_finish._M_node + 1); 29724: throw; 29724: } 29724: } 29724: else 29724: _M_insert_aux(__pos, __n, __x); 29724: } 29724: 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_default_append(size_type __n) 29724: { 29724: if (__n) 29724: { 29724: iterator __new_finish = _M_reserve_elements_at_back(__n); 29724: try 29724: { 29724: std::__uninitialized_default_a(this->_M_impl._M_finish, 29724: __new_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29724: __new_finish._M_node + 1); 29724: throw; 29724: } 29724: } 29724: } 29724: 29724: template 29724: bool 29724: deque<_Tp, _Alloc>:: 29724: _M_shrink_to_fit() 29724: { 29724: const difference_type __front_capacity 29724: = (this->_M_impl._M_start._M_cur - this->_M_impl._M_start._M_first); 29724: if (__front_capacity == 0) 29724: return false; 29724: 29724: const difference_type __back_capacity 29724: = (this->_M_impl._M_finish._M_last - this->_M_impl._M_finish._M_cur); 29724: if (__front_capacity + __back_capacity < _S_buffer_size()) 29724: return false; 29724: 29724: return std::__shrink_to_fit_aux::_S_do_it(*this); 29724: } 29724: 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_fill_initialize(const value_type& __value) 29724: { 29724: _Map_pointer __cur; 29724: try 29724: { 29724: for (__cur = this->_M_impl._M_start._M_node; 29724: __cur < this->_M_impl._M_finish._M_node; 29724: ++__cur) 29724: std::__uninitialized_fill_a(*__cur, *__cur + _S_buffer_size(), 29724: __value, _M_get_Tp_allocator()); 29724: std::__uninitialized_fill_a(this->_M_impl._M_finish._M_first, 29724: this->_M_impl._M_finish._M_cur, 29724: __value, _M_get_Tp_allocator()); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 29724: _M_get_Tp_allocator()); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: this->_M_initialize_map(0); 29724: try 29724: { 29724: for (; __first != __last; ++__first) 29724: 29724: emplace_back(*__first); 29724: 29724: 29724: 29724: } 29724: catch(...) 29724: { 29724: clear(); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __n = std::distance(__first, __last); 29724: this->_M_initialize_map(_S_check_init_len(__n, _M_get_Tp_allocator())); 29724: 29724: _Map_pointer __cur_node; 29724: try 29724: { 29724: for (__cur_node = this->_M_impl._M_start._M_node; 29724: __cur_node < this->_M_impl._M_finish._M_node; 29724: ++__cur_node) 29724: { 29724: if (__n < _S_buffer_size()) 29724: __builtin_unreachable(); 29724: 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, _S_buffer_size()); 29724: std::__uninitialized_copy_a(__first, __mid, *__cur_node, 29724: _M_get_Tp_allocator()); 29724: __first = __mid; 29724: } 29724: std::__uninitialized_copy_a(__first, __last, 29724: this->_M_impl._M_finish._M_first, 29724: _M_get_Tp_allocator()); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(this->_M_impl._M_start, 29724: iterator(*__cur_node, __cur_node), 29724: _M_get_Tp_allocator()); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_push_back_aux(_Args&&... __args) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: if (size() == max_size()) 29724: __throw_length_error( 29724: ("cannot create std::deque larger than max_size()")); 29724: 29724: _M_reserve_map_at_back(); 29724: *(this->_M_impl._M_finish._M_node + 1) = this->_M_allocate_node(); 29724: try 29724: { 29724: 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_finish._M_cur, 29724: std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node 29724: + 1); 29724: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_first; 29724: } 29724: catch(...) 29724: { 29724: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + 1)); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_push_front_aux(_Args&&... __args) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: if (size() == max_size()) 29724: __throw_length_error( 29724: ("cannot create std::deque larger than max_size()")); 29724: 29724: _M_reserve_map_at_front(); 29724: *(this->_M_impl._M_start._M_node - 1) = this->_M_allocate_node(); 29724: try 29724: { 29724: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node 29724: - 1); 29724: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_last - 1; 29724: 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_start._M_cur, 29724: std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: } 29724: catch(...) 29724: { 29724: ++this->_M_impl._M_start; 29724: _M_deallocate_node(*(this->_M_impl._M_start._M_node - 1)); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: void deque<_Tp, _Alloc>:: 29724: _M_pop_back_aux() 29724: { 29724: _M_deallocate_node(this->_M_impl._M_finish._M_first); 29724: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node - 1); 29724: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_last - 1; 29724: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29724: this->_M_impl._M_finish._M_cur); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void deque<_Tp, _Alloc>:: 29724: _M_pop_front_aux() 29724: { 29724: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29724: this->_M_impl._M_start._M_cur); 29724: _M_deallocate_node(this->_M_impl._M_start._M_first); 29724: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node + 1); 29724: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_first; 29724: } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_range_insert_aux(iterator __pos, 29724: _InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { std::copy(__first, __last, std::inserter(*this, __pos)); } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_range_insert_aux(iterator __pos, 29724: _ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __n = std::distance(__first, __last); 29724: if (__builtin_expect(__n == 0, 0)) 29724: return; 29724: 29724: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 29724: { 29724: iterator __new_start = _M_reserve_elements_at_front(__n); 29724: try 29724: { 29724: std::__uninitialized_copy_a(__first, __last, __new_start, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(__new_start._M_node, 29724: this->_M_impl._M_start._M_node); 29724: throw; 29724: } 29724: } 29724: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 29724: { 29724: iterator __new_finish = _M_reserve_elements_at_back(__n); 29724: try 29724: { 29724: std::__uninitialized_copy_a(__first, __last, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29724: __new_finish._M_node + 1); 29724: throw; 29724: } 29724: } 29724: else 29724: _M_insert_aux(__pos, __first, __last, __n); 29724: } 29724: 29724: template 29724: 29724: template 29724: typename deque<_Tp, _Alloc>::iterator 29724: deque<_Tp, _Alloc>:: 29724: _M_emplace_aux(iterator __pos, _Args&&... __args) 29724: { 29724: value_type __x_copy(std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: difference_type __index = __pos - this->_M_impl._M_start; 29724: if (static_cast(__index) < size() / 2) 29724: { 29724: push_front(std::move(front())); 29724: iterator __front1 = this->_M_impl._M_start; 29724: ++__front1; 29724: iterator __front2 = __front1; 29724: ++__front2; 29724: __pos = this->_M_impl._M_start + __index; 29724: iterator __pos1 = __pos; 29724: ++__pos1; 29724: std::move(__front2, __pos1, __front1); 29724: } 29724: else 29724: { 29724: push_back(std::move(back())); 29724: iterator __back1 = this->_M_impl._M_finish; 29724: --__back1; 29724: iterator __back2 = __back1; 29724: --__back2; 29724: __pos = this->_M_impl._M_start + __index; 29724: std::move_backward(__pos, __back2, __back1); 29724: } 29724: *__pos = std::move(__x_copy); 29724: return __pos; 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x) 29724: { 29724: const difference_type __elems_before = __pos - this->_M_impl._M_start; 29724: const size_type __length = this->size(); 29724: value_type __x_copy = __x; 29724: if (__elems_before < difference_type(__length / 2)) 29724: { 29724: iterator __new_start = _M_reserve_elements_at_front(__n); 29724: iterator __old_start = this->_M_impl._M_start; 29724: __pos = this->_M_impl._M_start + __elems_before; 29724: try 29724: { 29724: if (__elems_before >= difference_type(__n)) 29724: { 29724: iterator __start_n = (this->_M_impl._M_start 29724: + difference_type(__n)); 29724: std::__uninitialized_move_a(this->_M_impl._M_start, 29724: __start_n, __new_start, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: std::move(__start_n, __pos, __old_start); 29724: std::fill(__pos - difference_type(__n), __pos, __x_copy); 29724: } 29724: else 29724: { 29724: std::__uninitialized_move_fill(this->_M_impl._M_start, 29724: __pos, __new_start, 29724: this->_M_impl._M_start, 29724: __x_copy, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: std::fill(__old_start, __pos, __x_copy); 29724: } 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(__new_start._M_node, 29724: this->_M_impl._M_start._M_node); 29724: throw; 29724: } 29724: } 29724: else 29724: { 29724: iterator __new_finish = _M_reserve_elements_at_back(__n); 29724: iterator __old_finish = this->_M_impl._M_finish; 29724: const difference_type __elems_after = 29724: difference_type(__length) - __elems_before; 29724: __pos = this->_M_impl._M_finish - __elems_after; 29724: try 29724: { 29724: if (__elems_after > difference_type(__n)) 29724: { 29724: iterator __finish_n = (this->_M_impl._M_finish 29724: - difference_type(__n)); 29724: std::__uninitialized_move_a(__finish_n, 29724: this->_M_impl._M_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: std::move_backward(__pos, __finish_n, __old_finish); 29724: std::fill(__pos, __pos + difference_type(__n), __x_copy); 29724: } 29724: else 29724: { 29724: std::__uninitialized_fill_move(this->_M_impl._M_finish, 29724: __pos + difference_type(__n), 29724: __x_copy, __pos, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: std::fill(__pos, __old_finish, __x_copy); 29724: } 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29724: __new_finish._M_node + 1); 29724: throw; 29724: } 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_insert_aux(iterator __pos, 29724: _ForwardIterator __first, _ForwardIterator __last, 29724: size_type __n) 29724: { 29724: const difference_type __elemsbefore = __pos - this->_M_impl._M_start; 29724: const size_type __length = size(); 29724: if (static_cast(__elemsbefore) < __length / 2) 29724: { 29724: iterator __new_start = _M_reserve_elements_at_front(__n); 29724: iterator __old_start = this->_M_impl._M_start; 29724: __pos = this->_M_impl._M_start + __elemsbefore; 29724: try 29724: { 29724: if (__elemsbefore >= difference_type(__n)) 29724: { 29724: iterator __start_n = (this->_M_impl._M_start 29724: + difference_type(__n)); 29724: std::__uninitialized_move_a(this->_M_impl._M_start, 29724: __start_n, __new_start, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: std::move(__start_n, __pos, __old_start); 29724: std::copy(__first, __last, __pos - difference_type(__n)); 29724: } 29724: else 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, difference_type(__n) - __elemsbefore); 29724: std::__uninitialized_move_copy(this->_M_impl._M_start, 29724: __pos, __first, __mid, 29724: __new_start, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: std::copy(__mid, __last, __old_start); 29724: } 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(__new_start._M_node, 29724: this->_M_impl._M_start._M_node); 29724: throw; 29724: } 29724: } 29724: else 29724: { 29724: iterator __new_finish = _M_reserve_elements_at_back(__n); 29724: iterator __old_finish = this->_M_impl._M_finish; 29724: const difference_type __elemsafter = 29724: difference_type(__length) - __elemsbefore; 29724: __pos = this->_M_impl._M_finish - __elemsafter; 29724: try 29724: { 29724: if (__elemsafter > difference_type(__n)) 29724: { 29724: iterator __finish_n = (this->_M_impl._M_finish 29724: - difference_type(__n)); 29724: std::__uninitialized_move_a(__finish_n, 29724: this->_M_impl._M_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: std::move_backward(__pos, __finish_n, __old_finish); 29724: std::copy(__first, __last, __pos); 29724: } 29724: else 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, __elemsafter); 29724: std::__uninitialized_copy_move(__mid, __last, __pos, 29724: this->_M_impl._M_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: std::copy(__first, __mid, __pos); 29724: } 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29724: __new_finish._M_node + 1); 29724: throw; 29724: } 29724: } 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_destroy_data_aux(iterator __first, iterator __last) 29724: { 29724: for (_Map_pointer __node = __first._M_node + 1; 29724: __node < __last._M_node; ++__node) 29724: std::_Destroy(*__node, *__node + _S_buffer_size(), 29724: _M_get_Tp_allocator()); 29724: 29724: if (__first._M_node != __last._M_node) 29724: { 29724: std::_Destroy(__first._M_cur, __first._M_last, 29724: _M_get_Tp_allocator()); 29724: std::_Destroy(__last._M_first, __last._M_cur, 29724: _M_get_Tp_allocator()); 29724: } 29724: else 29724: std::_Destroy(__first._M_cur, __last._M_cur, 29724: _M_get_Tp_allocator()); 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_new_elements_at_front(size_type __new_elems) 29724: { 29724: if (this->max_size() - this->size() < __new_elems) 29724: __throw_length_error(("deque::_M_new_elements_at_front")); 29724: 29724: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 29724: / _S_buffer_size()); 29724: _M_reserve_map_at_front(__new_nodes); 29724: size_type __i; 29724: try 29724: { 29724: for (__i = 1; __i <= __new_nodes; ++__i) 29724: *(this->_M_impl._M_start._M_node - __i) = this->_M_allocate_node(); 29724: } 29724: catch(...) 29724: { 29724: for (size_type __j = 1; __j < __i; ++__j) 29724: _M_deallocate_node(*(this->_M_impl._M_start._M_node - __j)); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_new_elements_at_back(size_type __new_elems) 29724: { 29724: if (this->max_size() - this->size() < __new_elems) 29724: __throw_length_error(("deque::_M_new_elements_at_back")); 29724: 29724: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 29724: / _S_buffer_size()); 29724: _M_reserve_map_at_back(__new_nodes); 29724: size_type __i; 29724: try 29724: { 29724: for (__i = 1; __i <= __new_nodes; ++__i) 29724: *(this->_M_impl._M_finish._M_node + __i) = this->_M_allocate_node(); 29724: } 29724: catch(...) 29724: { 29724: for (size_type __j = 1; __j < __i; ++__j) 29724: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + __j)); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front) 29724: { 29724: const size_type __old_num_nodes 29724: = this->_M_impl._M_finish._M_node - this->_M_impl._M_start._M_node + 1; 29724: const size_type __new_num_nodes = __old_num_nodes + __nodes_to_add; 29724: 29724: _Map_pointer __new_nstart; 29724: if (this->_M_impl._M_map_size > 2 * __new_num_nodes) 29724: { 29724: __new_nstart = this->_M_impl._M_map + (this->_M_impl._M_map_size 29724: - __new_num_nodes) / 2 29724: + (__add_at_front ? __nodes_to_add : 0); 29724: if (__new_nstart < this->_M_impl._M_start._M_node) 29724: std::copy(this->_M_impl._M_start._M_node, 29724: this->_M_impl._M_finish._M_node + 1, 29724: __new_nstart); 29724: else 29724: std::copy_backward(this->_M_impl._M_start._M_node, 29724: this->_M_impl._M_finish._M_node + 1, 29724: __new_nstart + __old_num_nodes); 29724: } 29724: else 29724: { 29724: size_type __new_map_size = this->_M_impl._M_map_size 29724: + std::max(this->_M_impl._M_map_size, 29724: __nodes_to_add) + 2; 29724: 29724: _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); 29724: __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 29724: + (__add_at_front ? __nodes_to_add : 0); 29724: std::copy(this->_M_impl._M_start._M_node, 29724: this->_M_impl._M_finish._M_node + 1, 29724: __new_nstart); 29724: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29724: 29724: this->_M_impl._M_map = __new_map; 29724: this->_M_impl._M_map_size = __new_map_size; 29724: } 29724: 29724: this->_M_impl._M_start._M_set_node(__new_nstart); 29724: this->_M_impl._M_finish._M_set_node(__new_nstart + __old_num_nodes - 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __first, 29724: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __last, 29724: const _VTp& __value) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29724: if (__first._M_node != __last._M_node) 29724: { 29724: std::__fill_a1(__first._M_cur, __first._M_last, __value); 29724: 29724: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 29724: __node < __last._M_node; ++__node) 29724: std::__fill_a1(*__node, *__node + _Iter::_S_buffer_size(), __value); 29724: 29724: std::__fill_a1(__last._M_first, __last._M_cur, __value); 29724: } 29724: else 29724: std::__fill_a1(__first._M_cur, __last._M_cur, __value); 29724: } 29724: 29724: template 29724: _OI 29724: __copy_move_dit(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29724: _OI __result) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29724: if (__first._M_node != __last._M_node) 29724: { 29724: __result 29724: = std::__copy_move_a1<_IsMove>(__first._M_cur, __first._M_last, 29724: __result); 29724: 29724: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 29724: __node != __last._M_node; ++__node) 29724: __result 29724: = std::__copy_move_a1<_IsMove>(*__node, 29724: *__node + _Iter::_S_buffer_size(), 29724: __result); 29724: 29724: return std::__copy_move_a1<_IsMove>(__last._M_first, __last._M_cur, 29724: __result); 29724: } 29724: 29724: return std::__copy_move_a1<_IsMove>(__first._M_cur, __last._M_cur, 29724: __result); 29724: } 29724: 29724: template 29724: _OI 29724: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29724: _OI __result) 29724: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29724: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 29724: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29724: __copy_move_a1(_II __first, _II __last, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29724: typedef typename _Iter::difference_type difference_type; 29724: 29724: difference_type __len = __last - __first; 29724: while (__len > 0) 29724: { 29724: const difference_type __clen 29724: = std::min(__len, __result._M_last - __result._M_cur); 29724: std::__copy_move_a1<_IsMove>(__first, __first + __clen, 29724: __result._M_cur); 29724: 29724: __first += __clen; 29724: __result += __clen; 29724: __len -= __clen; 29724: } 29724: 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_char<_CharT>::__value, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29724: __copy_move_a2( 29724: istreambuf_iterator<_CharT, char_traits<_CharT> > __first, 29724: istreambuf_iterator<_CharT, char_traits<_CharT> > __last, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result) 29724: { 29724: if (__first == __last) 29724: return __result; 29724: 29724: for (;;) 29724: { 29724: const std::ptrdiff_t __len = __result._M_last - __result._M_cur; 29724: const std::ptrdiff_t __nb 29724: = std::__copy_n_a(__first, __len, __result._M_cur, false) 29724: - __result._M_cur; 29724: __result += __nb; 29724: 29724: if (__nb != __len) 29724: break; 29724: } 29724: 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_char<_CharT>::__value, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29724: __copy_n_a( 29724: istreambuf_iterator<_CharT, char_traits<_CharT> > __it, _Size __size, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result, 29724: bool __strict) 29724: { 29724: if (__size == 0) 29724: return __result; 29724: 29724: do 29724: { 29724: const _Size __len 29724: = std::min<_Size>(__result._M_last - __result._M_cur, __size); 29724: std::__copy_n_a(__it, __len, __result._M_cur, __strict); 29724: __result += __len; 29724: __size -= __len; 29724: } 29724: while (__size != 0); 29724: return __result; 29724: } 29724: 29724: template 29724: _OI 29724: __copy_move_backward_dit( 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29724: _OI __result) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29724: if (__first._M_node != __last._M_node) 29724: { 29724: __result = std::__copy_move_backward_a1<_IsMove>( 29724: __last._M_first, __last._M_cur, __result); 29724: 29724: for (typename _Iter::_Map_pointer __node = __last._M_node - 1; 29724: __node != __first._M_node; --__node) 29724: __result = std::__copy_move_backward_a1<_IsMove>( 29724: *__node, *__node + _Iter::_S_buffer_size(), __result); 29724: 29724: return std::__copy_move_backward_a1<_IsMove>( 29724: __first._M_cur, __first._M_last, __result); 29724: } 29724: 29724: return std::__copy_move_backward_a1<_IsMove>( 29724: __first._M_cur, __last._M_cur, __result); 29724: } 29724: 29724: template 29724: _OI 29724: __copy_move_backward_a1( 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29724: _OI __result) 29724: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29724: __copy_move_backward_a1( 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 29724: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29724: __copy_move_backward_a1(_II __first, _II __last, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29724: typedef typename _Iter::difference_type difference_type; 29724: 29724: difference_type __len = __last - __first; 29724: while (__len > 0) 29724: { 29724: difference_type __rlen = __result._M_cur - __result._M_first; 29724: _Tp* __rend = __result._M_cur; 29724: if (!__rlen) 29724: { 29724: __rlen = _Iter::_S_buffer_size(); 29724: __rend = *(__result._M_node - 1) + __rlen; 29724: } 29724: 29724: const difference_type __clen = std::min(__len, __rlen); 29724: std::__copy_move_backward_a1<_IsMove>(__last - __clen, __last, __rend); 29724: 29724: __last -= __clen; 29724: __result -= __clen; 29724: __len -= __clen; 29724: } 29724: 29724: return __result; 29724: } 29724: 29724: template 29724: bool 29724: __equal_dit( 29724: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __first1, 29724: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __last1, 29724: _II __first2) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29724: if (__first1._M_node != __last1._M_node) 29724: { 29724: if (!std::__equal_aux1(__first1._M_cur, __first1._M_last, __first2)) 29724: return false; 29724: 29724: __first2 += __first1._M_last - __first1._M_cur; 29724: for (typename _Iter::_Map_pointer __node = __first1._M_node + 1; 29724: __node != __last1._M_node; 29724: __first2 += _Iter::_S_buffer_size(), ++__node) 29724: if (!std::__equal_aux1(*__node, *__node + _Iter::_S_buffer_size(), 29724: __first2)) 29724: return false; 29724: 29724: return std::__equal_aux1(__last1._M_first, __last1._M_cur, __first2); 29724: } 29724: 29724: return std::__equal_aux1(__first1._M_cur, __last1._M_cur, __first2); 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, bool>::__type 29724: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first1, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last1, 29724: _II __first2) 29724: { return std::__equal_dit(__first1, __last1, __first2); } 29724: 29724: template 29724: bool 29724: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2) 29724: { return std::__equal_dit(__first1, __last1, __first2); } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, bool>::__type 29724: __equal_aux1(_II __first1, _II __last1, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first2) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29724: typedef typename _Iter::difference_type difference_type; 29724: 29724: difference_type __len = __last1 - __first1; 29724: while (__len > 0) 29724: { 29724: const difference_type __clen 29724: = std::min(__len, __first2._M_last - __first2._M_cur); 29724: if (!std::__equal_aux1(__first1, __first1 + __clen, __first2._M_cur)) 29724: return false; 29724: 29724: __first1 += __clen; 29724: __len -= __clen; 29724: __first2 += __clen; 29724: } 29724: 29724: return true; 29724: } 29724: 29724: template 29724: int 29724: __lex_cmp_dit( 29724: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __first1, 29724: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __last1, 29724: const _Tp2* __first2, const _Tp2* __last2) 29724: { 29724: const bool __simple = 29724: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 29724: && __is_pointer<_Ptr>::__value 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ); 29724: typedef std::__lexicographical_compare<__simple> _Lc; 29724: 29724: while (__first1._M_node != __last1._M_node) 29724: { 29724: const ptrdiff_t __len1 = __first1._M_last - __first1._M_cur; 29724: const ptrdiff_t __len2 = __last2 - __first2; 29724: const ptrdiff_t __len = std::min(__len1, __len2); 29724: 29724: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_last, 29724: __first2, __first2 + __len)) 29724: return __ret; 29724: 29724: __first1 += __len; 29724: __first2 += __len; 29724: } 29724: return _Lc::__3way(__first1._M_cur, __last1._M_cur, 29724: __first2, __last2); 29724: } 29724: 29724: template 29724: inline bool 29724: __lexicographical_compare_aux1( 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29724: _Tp2* __first2, _Tp2* __last2) 29724: { return std::__lex_cmp_dit(__first1, __last1, __first2, __last2) < 0; } 29724: 29724: template 29724: inline bool 29724: __lexicographical_compare_aux1(_Tp1* __first1, _Tp1* __last1, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 29724: { return std::__lex_cmp_dit(__first2, __last2, __first1, __last1) > 0; } 29724: 29724: template 29724: inline bool 29724: __lexicographical_compare_aux1( 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 29724: { 29724: const bool __simple = 29724: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 29724: && __is_pointer<_Ptr1>::__value 29724: && __is_pointer<_Ptr2>::__value 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ); 29724: typedef std::__lexicographical_compare<__simple> _Lc; 29724: 29724: while (__first1 != __last1) 29724: { 29724: const ptrdiff_t __len2 = __first2._M_node == __last2._M_node 29724: ? __last2._M_cur - __first2._M_cur 29724: : __first2._M_last - __first2._M_cur; 29724: if (__len2 == 0) 29724: return false; 29724: const ptrdiff_t __len1 = __first1._M_node == __last1._M_node 29724: ? __last1._M_cur - __first1._M_cur 29724: : __first1._M_last - __first1._M_cur; 29724: const ptrdiff_t __len = std::min(__len1, __len2); 29724: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_cur + __len, 29724: __first2._M_cur, __first2._M_cur + __len)) 29724: return __ret < 0; 29724: 29724: __first1 += __len; 29724: __first2 += __len; 29724: } 29724: 29724: return __last2 != __first2; 29724: } 29724: 29724: 29724: } 29724: # 70 "/usr/include/c++/14/deque" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 75 "/usr/include/c++/14/deque" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/memory_resource.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstddef" 1 3 29724: # 42 "/usr/include/c++/14/cstddef" 3 29724: 29724: # 43 "/usr/include/c++/14/cstddef" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 145 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29724: typedef int ptrdiff_t; 29724: # 214 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29724: typedef unsigned int size_t; 29724: # 425 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29724: typedef struct { 29724: long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); 29724: long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); 29724: # 436 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29724: } max_align_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef decltype(nullptr) nullptr_t; 29724: # 51 "/usr/include/c++/14/cstddef" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 54 "/usr/include/c++/14/cstddef" 2 3 29724: 29724: extern "C++" 29724: { 29724: 29724: namespace std 29724: { 29724: 29724: using ::max_align_t; 29724: } 29724: 29724: 29724: 29724: namespace std 29724: { 29724: 29724: 29724: enum class byte : unsigned char {}; 29724: 29724: template struct __byte_operand { }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: 29724: 29724: 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: # 109 "/usr/include/c++/14/cstddef" 3 29724: template 29724: struct __byte_operand 29724: : __byte_operand<_IntegerType> { }; 29724: template 29724: struct __byte_operand 29724: : __byte_operand<_IntegerType> { }; 29724: template 29724: struct __byte_operand 29724: : __byte_operand<_IntegerType> { }; 29724: 29724: template 29724: using __byte_op_t = typename __byte_operand<_IntegerType>::__type; 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr __byte_op_t<_IntegerType> 29724: operator<<(byte __b, _IntegerType __shift) noexcept 29724: { return (byte)(unsigned char)((unsigned)__b << __shift); } 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr __byte_op_t<_IntegerType> 29724: operator>>(byte __b, _IntegerType __shift) noexcept 29724: { return (byte)(unsigned char)((unsigned)__b >> __shift); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte 29724: operator|(byte __l, byte __r) noexcept 29724: { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte 29724: operator&(byte __l, byte __r) noexcept 29724: { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte 29724: operator^(byte __l, byte __r) noexcept 29724: { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte 29724: operator~(byte __b) noexcept 29724: { return (byte)(unsigned char)~(unsigned)__b; } 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr __byte_op_t<_IntegerType>& 29724: operator<<=(byte& __b, _IntegerType __shift) noexcept 29724: { return __b = __b << __shift; } 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr __byte_op_t<_IntegerType>& 29724: operator>>=(byte& __b, _IntegerType __shift) noexcept 29724: { return __b = __b >> __shift; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte& 29724: operator|=(byte& __l, byte __r) noexcept 29724: { return __l = __l | __r; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte& 29724: operator&=(byte& __l, byte __r) noexcept 29724: { return __l = __l & __r; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte& 29724: operator^=(byte& __l, byte __r) noexcept 29724: { return __l = __l ^ __r; } 29724: 29724: template 29724: [[nodiscard,__gnu__::__always_inline__]] 29724: constexpr _IntegerType 29724: to_integer(__byte_op_t<_IntegerType> __b) noexcept 29724: { return _IntegerType(__b); } 29724: 29724: 29724: } 29724: 29724: } 29724: # 39 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/uses_allocator.h" 1 3 29724: # 40 "/usr/include/c++/14/bits/uses_allocator.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: struct __erased_type { }; 29724: 29724: 29724: 29724: 29724: template 29724: using __is_erased_or_convertible 29724: = __or_, is_same<_Tp, __erased_type>>; 29724: 29724: 29724: struct allocator_arg_t { explicit allocator_arg_t() = default; }; 29724: 29724: inline constexpr allocator_arg_t allocator_arg = 29724: allocator_arg_t(); 29724: 29724: template> 29724: struct __uses_allocator_helper 29724: : false_type { }; 29724: 29724: template 29724: struct __uses_allocator_helper<_Tp, _Alloc, 29724: __void_t> 29724: : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type 29724: { }; 29724: 29724: 29724: template 29724: struct uses_allocator 29724: : __uses_allocator_helper<_Tp, _Alloc>::type 29724: { }; 29724: 29724: struct __uses_alloc_base { }; 29724: 29724: struct __uses_alloc0 : __uses_alloc_base 29724: { 29724: struct _Sink { void operator=(const void*) { } } _M_a; 29724: }; 29724: 29724: template 29724: struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; 29724: 29724: template 29724: struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; 29724: 29724: template 29724: struct __uses_alloc; 29724: 29724: template 29724: struct __uses_alloc 29724: : __conditional_t< 29724: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, 29724: __uses_alloc1<_Alloc>, 29724: __uses_alloc2<_Alloc>> 29724: { 29724: 29724: 29724: static_assert(__or_< 29724: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, 29724: is_constructible<_Tp, _Args..., const _Alloc&>>::value, 29724: "construction with an allocator must be possible" 29724: " if uses_allocator is true"); 29724: }; 29724: 29724: template 29724: struct __uses_alloc 29724: : __uses_alloc0 { }; 29724: 29724: template 29724: using __uses_alloc_t = 29724: __uses_alloc::value, _Tp, _Alloc, _Args...>; 29724: 29724: template 29724: 29724: inline __uses_alloc_t<_Tp, _Alloc, _Args...> 29724: __use_alloc(const _Alloc& __a) 29724: { 29724: __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; 29724: __ret._M_a = std::__addressof(__a); 29724: return __ret; 29724: } 29724: 29724: template 29724: void 29724: __use_alloc(const _Alloc&&) = delete; 29724: 29724: 29724: template 29724: inline constexpr bool uses_allocator_v = 29724: uses_allocator<_Tp, _Alloc>::value; 29724: 29724: 29724: template class _Predicate, 29724: typename _Tp, typename _Alloc, typename... _Args> 29724: struct __is_uses_allocator_predicate 29724: : __conditional_t::value, 29724: __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, 29724: _Predicate<_Tp, _Args..., _Alloc>>, 29724: _Predicate<_Tp, _Args...>> { }; 29724: 29724: template 29724: struct __is_uses_allocator_constructible 29724: : __is_uses_allocator_predicate 29724: { }; 29724: 29724: 29724: template 29724: inline constexpr bool __is_uses_allocator_constructible_v = 29724: __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 29724: 29724: 29724: template 29724: struct __is_nothrow_uses_allocator_constructible 29724: : __is_uses_allocator_predicate 29724: { }; 29724: 29724: 29724: 29724: template 29724: inline constexpr bool 29724: __is_nothrow_uses_allocator_constructible_v = 29724: __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 29724: 29724: 29724: template 29724: void __uses_allocator_construct_impl(__uses_alloc0, _Tp* __ptr, 29724: _Args&&... __args) 29724: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } 29724: 29724: template 29724: void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, 29724: _Args&&... __args) 29724: { 29724: ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: template 29724: void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, 29724: _Args&&... __args) 29724: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } 29724: 29724: template 29724: void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, 29724: _Args&&... __args) 29724: { 29724: std::__uses_allocator_construct_impl( 29724: std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: 29724: } 29724: # 41 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/uses_allocator_args.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 36 "/usr/include/c++/14/bits/uses_allocator_args.h" 2 3 29724: # 42 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/tuple" 1 3 29724: # 32 "/usr/include/c++/14/tuple" 3 29724: 29724: # 33 "/usr/include/c++/14/tuple" 3 29724: # 54 "/usr/include/c++/14/tuple" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 55 "/usr/include/c++/14/tuple" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class tuple; 29724: 29724: template 29724: struct __is_empty_non_tuple : is_empty<_Tp> { }; 29724: 29724: 29724: template 29724: struct __is_empty_non_tuple> : false_type { }; 29724: 29724: 29724: template 29724: using __empty_not_final 29724: = __conditional_t<__is_final(_Tp), false_type, 29724: __is_empty_non_tuple<_Tp>>; 29724: 29724: template::value> 29724: struct _Head_base; 29724: 29724: 29724: template 29724: struct _Head_base<_Idx, _Head, true> 29724: { 29724: constexpr _Head_base() 29724: : _M_head_impl() { } 29724: 29724: constexpr _Head_base(const _Head& __h) 29724: : _M_head_impl(__h) { } 29724: 29724: constexpr _Head_base(const _Head_base&) = default; 29724: constexpr _Head_base(_Head_base&&) = default; 29724: 29724: template 29724: constexpr _Head_base(_UHead&& __h) 29724: : _M_head_impl(std::forward<_UHead>(__h)) { } 29724: 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc0) 29724: : _M_head_impl() { } 29724: 29724: template 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 29724: : _M_head_impl(allocator_arg, *__a._M_a) { } 29724: 29724: template 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 29724: : _M_head_impl(*__a._M_a) { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc0, _UHead&& __uhead) 29724: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 29724: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 29724: { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 29724: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 29724: 29724: static constexpr _Head& 29724: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 29724: 29724: static constexpr const _Head& 29724: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 29724: 29724: [[__no_unique_address__]] _Head _M_head_impl; 29724: }; 29724: # 195 "/usr/include/c++/14/tuple" 3 29724: template 29724: struct _Head_base<_Idx, _Head, false> 29724: { 29724: constexpr _Head_base() 29724: : _M_head_impl() { } 29724: 29724: constexpr _Head_base(const _Head& __h) 29724: : _M_head_impl(__h) { } 29724: 29724: constexpr _Head_base(const _Head_base&) = default; 29724: constexpr _Head_base(_Head_base&&) = default; 29724: 29724: template 29724: constexpr _Head_base(_UHead&& __h) 29724: : _M_head_impl(std::forward<_UHead>(__h)) { } 29724: 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc0) 29724: : _M_head_impl() { } 29724: 29724: template 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 29724: : _M_head_impl(allocator_arg, *__a._M_a) { } 29724: 29724: template 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 29724: : _M_head_impl(*__a._M_a) { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc0, _UHead&& __uhead) 29724: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 29724: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 29724: { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 29724: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 29724: 29724: static constexpr _Head& 29724: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 29724: 29724: static constexpr const _Head& 29724: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 29724: 29724: _Head _M_head_impl; 29724: }; 29724: # 274 "/usr/include/c++/14/tuple" 3 29724: template 29724: struct _Tuple_impl; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Tuple_impl<_Idx, _Head, _Tail...> 29724: : public _Tuple_impl<_Idx + 1, _Tail...>, 29724: private _Head_base<_Idx, _Head> 29724: { 29724: template friend struct _Tuple_impl; 29724: 29724: typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; 29724: typedef _Head_base<_Idx, _Head> _Base; 29724: 29724: static constexpr _Head& 29724: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29724: 29724: static constexpr const _Head& 29724: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29724: 29724: static constexpr _Inherited& 29724: _M_tail(_Tuple_impl& __t) noexcept { return __t; } 29724: 29724: static constexpr const _Inherited& 29724: _M_tail(const _Tuple_impl& __t) noexcept { return __t; } 29724: 29724: constexpr _Tuple_impl() 29724: : _Inherited(), _Base() { } 29724: 29724: explicit constexpr 29724: _Tuple_impl(const _Head& __head, const _Tail&... __tail) 29724: : _Inherited(__tail...), _Base(__head) 29724: { } 29724: 29724: template> 29724: explicit constexpr 29724: _Tuple_impl(_UHead&& __head, _UTail&&... __tail) 29724: : _Inherited(std::forward<_UTail>(__tail)...), 29724: _Base(std::forward<_UHead>(__head)) 29724: { } 29724: 29724: constexpr _Tuple_impl(const _Tuple_impl&) = default; 29724: 29724: 29724: 29724: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 29724: 29724: _Tuple_impl(_Tuple_impl&&) = default; 29724: 29724: template 29724: constexpr 29724: _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) 29724: : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 29724: _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29724: : _Inherited(std::move 29724: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 29724: _Base(std::forward<_UHead> 29724: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 29724: { } 29724: # 370 "/usr/include/c++/14/tuple" 3 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Inherited(__tag, __a), 29724: _Base(__tag, __use_alloc<_Head>(__a)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: const _Head& __head, const _Tail&... __tail) 29724: : _Inherited(__tag, __a, __tail...), 29724: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) 29724: { } 29724: 29724: template> 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: _UHead&& __head, _UTail&&... __tail) 29724: : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), 29724: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29724: std::forward<_UHead>(__head)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: const _Tuple_impl& __in) 29724: : _Inherited(__tag, __a, _M_tail(__in)), 29724: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: _Tuple_impl&& __in) 29724: : _Inherited(__tag, __a, std::move(_M_tail(__in))), 29724: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 29724: std::forward<_Head>(_M_head(__in))) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) 29724: : _Inherited(__tag, __a, 29724: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), 29724: _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 29724: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29724: : _Inherited(__tag, __a, std::move 29724: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 29724: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29724: std::forward<_UHead> 29724: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 29724: { } 29724: # 465 "/usr/include/c++/14/tuple" 3 29724: template 29724: 29724: void 29724: _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) 29724: { 29724: _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); 29724: _M_tail(*this)._M_assign( 29724: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29724: { 29724: _M_head(*this) = std::forward<_UHead> 29724: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); 29724: _M_tail(*this)._M_assign( 29724: std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); 29724: } 29724: # 525 "/usr/include/c++/14/tuple" 3 29724: protected: 29724: 29724: void 29724: _M_swap(_Tuple_impl& __in) 29724: { 29724: using std::swap; 29724: swap(_M_head(*this), _M_head(__in)); 29724: _Inherited::_M_swap(_M_tail(__in)); 29724: } 29724: # 544 "/usr/include/c++/14/tuple" 3 29724: }; 29724: 29724: 29724: template 29724: struct _Tuple_impl<_Idx, _Head> 29724: : private _Head_base<_Idx, _Head> 29724: { 29724: template friend struct _Tuple_impl; 29724: 29724: typedef _Head_base<_Idx, _Head> _Base; 29724: 29724: static constexpr _Head& 29724: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29724: 29724: static constexpr const _Head& 29724: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29724: 29724: constexpr 29724: _Tuple_impl() 29724: : _Base() { } 29724: 29724: explicit constexpr 29724: _Tuple_impl(const _Head& __head) 29724: : _Base(__head) 29724: { } 29724: 29724: template 29724: explicit constexpr 29724: _Tuple_impl(_UHead&& __head) 29724: : _Base(std::forward<_UHead>(__head)) 29724: { } 29724: 29724: constexpr _Tuple_impl(const _Tuple_impl&) = default; 29724: 29724: 29724: 29724: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 29724: 29724: 29724: 29724: 29724: constexpr 29724: _Tuple_impl(_Tuple_impl&& __in) 29724: noexcept(is_nothrow_move_constructible<_Head>::value) 29724: : _Base(static_cast<_Base&&>(__in)) 29724: { } 29724: 29724: 29724: template 29724: constexpr 29724: _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) 29724: : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) 29724: : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 29724: { } 29724: # 626 "/usr/include/c++/14/tuple" 3 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Base(__tag, __use_alloc<_Head>(__a)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: const _Head& __head) 29724: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: _UHead&& __head) 29724: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29724: std::forward<_UHead>(__head)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: const _Tuple_impl& __in) 29724: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: _Tuple_impl&& __in) 29724: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 29724: std::forward<_Head>(_M_head(__in))) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: const _Tuple_impl<_Idx, _UHead>& __in) 29724: : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 29724: _Tuple_impl<_Idx, _UHead>::_M_head(__in)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: _Tuple_impl<_Idx, _UHead>&& __in) 29724: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29724: std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 29724: { } 29724: # 705 "/usr/include/c++/14/tuple" 3 29724: template 29724: 29724: void 29724: _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) 29724: { 29724: _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) 29724: { 29724: _M_head(*this) 29724: = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); 29724: } 29724: # 751 "/usr/include/c++/14/tuple" 3 29724: protected: 29724: 29724: void 29724: _M_swap(_Tuple_impl& __in) 29724: { 29724: using std::swap; 29724: swap(_M_head(*this), _M_head(__in)); 29724: } 29724: # 768 "/usr/include/c++/14/tuple" 3 29724: }; 29724: 29724: 29724: 29724: template 29724: struct _TupleConstraints 29724: { 29724: template 29724: using __constructible = __and_...>; 29724: 29724: template 29724: using __convertible = __and_...>; 29724: 29724: 29724: 29724: 29724: template 29724: static constexpr bool __is_implicitly_constructible() 29724: { 29724: return __and_<__constructible<_UTypes...>, 29724: __convertible<_UTypes...> 29724: >::value; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: static constexpr bool __is_explicitly_constructible() 29724: { 29724: return __and_<__constructible<_UTypes...>, 29724: __not_<__convertible<_UTypes...>> 29724: >::value; 29724: } 29724: 29724: static constexpr bool __is_implicitly_default_constructible() 29724: { 29724: return __and_... 29724: >::value; 29724: } 29724: 29724: static constexpr bool __is_explicitly_default_constructible() 29724: { 29724: return __and_..., 29724: __not_<__and_< 29724: std::__is_implicitly_default_constructible<_Types>...> 29724: >>::value; 29724: } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct _TupleConstraints 29724: { 29724: template 29724: static constexpr bool __is_implicitly_constructible() 29724: { return false; } 29724: 29724: template 29724: static constexpr bool __is_explicitly_constructible() 29724: { return false; } 29724: }; 29724: 29724: 29724: template 29724: class tuple : public _Tuple_impl<0, _Elements...> 29724: { 29724: using _Inherited = _Tuple_impl<0, _Elements...>; 29724: # 1351 "/usr/include/c++/14/tuple" 3 29724: template 29724: using _TCC = _TupleConstraints<_Cond, _Elements...>; 29724: 29724: 29724: template 29724: using _ImplicitDefaultCtor = __enable_if_t< 29724: _TCC<_Dummy>::__is_implicitly_default_constructible(), 29724: bool>; 29724: 29724: 29724: template 29724: using _ExplicitDefaultCtor = __enable_if_t< 29724: _TCC<_Dummy>::__is_explicitly_default_constructible(), 29724: bool>; 29724: 29724: 29724: template 29724: using _ImplicitCtor = __enable_if_t< 29724: _TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), 29724: bool>; 29724: 29724: 29724: template 29724: using _ExplicitCtor = __enable_if_t< 29724: _TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), 29724: bool>; 29724: 29724: 29724: template 29724: static constexpr bool __nothrow_constructible() 29724: { 29724: return 29724: __and_...>::value; 29724: } 29724: 29724: 29724: template 29724: static constexpr bool __valid_args() 29724: { 29724: return sizeof...(_Elements) == 1 29724: && !is_same>::value; 29724: } 29724: 29724: 29724: template 29724: static constexpr bool __valid_args() 29724: { return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } 29724: # 1408 "/usr/include/c++/14/tuple" 3 29724: template> 29724: struct _UseOtherCtor 29724: : false_type 29724: { }; 29724: 29724: 29724: template 29724: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> 29724: : __or_, is_constructible<_Tp, _Tuple>>::type 29724: { }; 29724: 29724: 29724: template 29724: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> 29724: : true_type 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: static constexpr bool __use_other_ctor() 29724: { return _UseOtherCtor<_Tuple>::value; } 29724: # 1454 "/usr/include/c++/14/tuple" 3 29724: public: 29724: template::value> = true> 29724: constexpr 29724: tuple() 29724: noexcept(__and_...>::value) 29724: : _Inherited() { } 29724: 29724: template::value> = false> 29724: explicit constexpr 29724: tuple() 29724: noexcept(__and_...>::value) 29724: : _Inherited() { } 29724: 29724: template= 1), 29724: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 29724: constexpr 29724: tuple(const _Elements&... __elements) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__elements...) { } 29724: 29724: template= 1), 29724: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 29724: explicit constexpr 29724: tuple(const _Elements&... __elements) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__elements...) { } 29724: 29724: template(), 29724: _ImplicitCtor<_Valid, _UElements...> = true> 29724: constexpr 29724: tuple(_UElements&&... __elements) 29724: noexcept(__nothrow_constructible<_UElements...>()) 29724: : _Inherited(std::forward<_UElements>(__elements)...) 29724: { ; } 29724: 29724: template(), 29724: _ExplicitCtor<_Valid, _UElements...> = false> 29724: explicit constexpr 29724: tuple(_UElements&&... __elements) 29724: noexcept(__nothrow_constructible<_UElements...>()) 29724: : _Inherited(std::forward<_UElements>(__elements)...) 29724: { ; } 29724: 29724: constexpr tuple(const tuple&) = default; 29724: 29724: constexpr tuple(tuple&&) = default; 29724: 29724: template&>(), 29724: _ImplicitCtor<_Valid, const _UElements&...> = true> 29724: constexpr 29724: tuple(const tuple<_UElements...>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(static_cast&>(__in)) 29724: { ; } 29724: 29724: template&>(), 29724: _ExplicitCtor<_Valid, const _UElements&...> = false> 29724: explicit constexpr 29724: tuple(const tuple<_UElements...>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(static_cast&>(__in)) 29724: { ; } 29724: 29724: template&&>(), 29724: _ImplicitCtor<_Valid, _UElements...> = true> 29724: constexpr 29724: tuple(tuple<_UElements...>&& __in) 29724: noexcept(__nothrow_constructible<_UElements...>()) 29724: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29724: { ; } 29724: 29724: template&&>(), 29724: _ExplicitCtor<_Valid, _UElements...> = false> 29724: explicit constexpr 29724: tuple(tuple<_UElements...>&& __in) 29724: noexcept(__nothrow_constructible<_UElements...>()) 29724: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29724: { ; } 29724: 29724: 29724: 29724: template::value> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Inherited(__tag, __a) { } 29724: 29724: template::value> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Inherited(__tag, __a) { } 29724: 29724: template= 1), 29724: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const _Elements&... __elements) 29724: : _Inherited(__tag, __a, __elements...) { } 29724: 29724: template= 1), 29724: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const _Elements&... __elements) 29724: : _Inherited(__tag, __a, __elements...) { } 29724: 29724: template(), 29724: _ImplicitCtor<_Valid, _UElements...> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: _UElements&&... __elements) 29724: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 29724: { ; } 29724: 29724: template(), 29724: _ExplicitCtor<_Valid, _UElements...> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: _UElements&&... __elements) 29724: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 29724: { ; } 29724: 29724: template 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 29724: : _Inherited(__tag, __a, static_cast(__in)) { } 29724: 29724: template 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 29724: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 29724: 29724: template&>(), 29724: _ImplicitCtor<_Valid, const _UElements&...> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const tuple<_UElements...>& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast&>(__in)) 29724: { ; } 29724: 29724: template&>(), 29724: _ExplicitCtor<_Valid, const _UElements&...> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const tuple<_UElements...>& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast&>(__in)) 29724: { ; } 29724: 29724: template&&>(), 29724: _ImplicitCtor<_Valid, _UElements...> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: tuple<_UElements...>&& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29724: { ; } 29724: 29724: template&&>(), 29724: _ExplicitCtor<_Valid, _UElements...> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: tuple<_UElements...>&& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29724: { ; } 29724: # 1886 "/usr/include/c++/14/tuple" 3 29724: private: 29724: template 29724: static constexpr 29724: __enable_if_t 29724: __assignable() 29724: { return __and_...>::value; } 29724: 29724: 29724: template 29724: static constexpr bool __nothrow_assignable() 29724: { 29724: return 29724: __and_...>::value; 29724: } 29724: 29724: public: 29724: 29724: 29724: tuple& 29724: operator=(__conditional_t<__assignable(), 29724: const tuple&, 29724: const __nonesuch&> __in) 29724: noexcept(__nothrow_assignable()) 29724: { 29724: this->_M_assign(__in); 29724: return *this; 29724: } 29724: 29724: 29724: tuple& 29724: operator=(__conditional_t<__assignable<_Elements...>(), 29724: tuple&&, 29724: __nonesuch&&> __in) 29724: noexcept(__nothrow_assignable<_Elements...>()) 29724: { 29724: this->_M_assign(std::move(__in)); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable(), tuple&> 29724: operator=(const tuple<_UElements...>& __in) 29724: noexcept(__nothrow_assignable()) 29724: { 29724: this->_M_assign(__in); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable<_UElements...>(), tuple&> 29724: operator=(tuple<_UElements...>&& __in) 29724: noexcept(__nothrow_assignable<_UElements...>()) 29724: { 29724: this->_M_assign(std::move(__in)); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: swap(tuple& __in) 29724: noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) 29724: { _Inherited::_M_swap(__in); } 29724: # 1966 "/usr/include/c++/14/tuple" 3 29724: }; 29724: 29724: 29724: template 29724: tuple(_UTypes...) -> tuple<_UTypes...>; 29724: template 29724: tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; 29724: template 29724: tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; 29724: template 29724: tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; 29724: template 29724: tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; 29724: 29724: 29724: 29724: template<> 29724: class tuple<> 29724: { 29724: public: 29724: 29724: void swap(tuple&) noexcept { } 29724: 29724: 29724: 29724: 29724: 29724: tuple() = default; 29724: 29724: template 29724: 29724: tuple(allocator_arg_t, const _Alloc&) noexcept { } 29724: template 29724: 29724: tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> 29724: { 29724: typedef _Tuple_impl<0, _T1, _T2> _Inherited; 29724: 29724: 29724: template 29724: using _ImplicitDefaultCtor = __enable_if_t< 29724: _TupleConstraints<_Dummy, _U1, _U2>:: 29724: __is_implicitly_default_constructible(), 29724: bool>; 29724: 29724: 29724: template 29724: using _ExplicitDefaultCtor = __enable_if_t< 29724: _TupleConstraints<_Dummy, _U1, _U2>:: 29724: __is_explicitly_default_constructible(), 29724: bool>; 29724: 29724: template 29724: using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; 29724: 29724: 29724: template 29724: using _ImplicitCtor = __enable_if_t< 29724: _TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), 29724: bool>; 29724: 29724: 29724: template 29724: using _ExplicitCtor = __enable_if_t< 29724: _TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), 29724: bool>; 29724: 29724: template 29724: static constexpr bool __assignable() 29724: { 29724: return __and_, 29724: is_assignable<_T2&, _U2>>::value; 29724: } 29724: 29724: template 29724: static constexpr bool __nothrow_assignable() 29724: { 29724: return __and_, 29724: is_nothrow_assignable<_T2&, _U2>>::value; 29724: } 29724: 29724: template 29724: static constexpr bool __nothrow_constructible() 29724: { 29724: return __and_, 29724: is_nothrow_constructible<_T2, _U2>>::value; 29724: } 29724: 29724: static constexpr bool __nothrow_default_constructible() 29724: { 29724: return __and_, 29724: is_nothrow_default_constructible<_T2>>::value; 29724: } 29724: 29724: template 29724: static constexpr bool __is_alloc_arg() 29724: { return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } 29724: # 2085 "/usr/include/c++/14/tuple" 3 29724: public: 29724: template = true> 29724: constexpr 29724: tuple() 29724: noexcept(__nothrow_default_constructible()) 29724: : _Inherited() { } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple() 29724: noexcept(__nothrow_default_constructible()) 29724: : _Inherited() { } 29724: 29724: template = true> 29724: constexpr 29724: tuple(const _T1& __a1, const _T2& __a2) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__a1, __a2) { } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple(const _T1& __a1, const _T2& __a2) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__a1, __a2) { } 29724: 29724: template(), _U1, _U2> = true> 29724: constexpr 29724: tuple(_U1&& __a1, _U2&& __a2) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 29724: { ; } 29724: 29724: template(), _U1, _U2> = false> 29724: explicit constexpr 29724: tuple(_U1&& __a1, _U2&& __a2) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 29724: { ; } 29724: 29724: constexpr tuple(const tuple&) = default; 29724: 29724: constexpr tuple(tuple&&) = default; 29724: 29724: template = true> 29724: constexpr 29724: tuple(const tuple<_U1, _U2>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(static_cast&>(__in)) 29724: { ; } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple(const tuple<_U1, _U2>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(static_cast&>(__in)) 29724: { ; } 29724: 29724: template = true> 29724: constexpr 29724: tuple(tuple<_U1, _U2>&& __in) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29724: { ; } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple(tuple<_U1, _U2>&& __in) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29724: { ; } 29724: 29724: template = true> 29724: constexpr 29724: tuple(const pair<_U1, _U2>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__in.first, __in.second) 29724: { ; } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple(const pair<_U1, _U2>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__in.first, __in.second) 29724: { ; } 29724: 29724: template = true> 29724: constexpr 29724: tuple(pair<_U1, _U2>&& __in) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(std::forward<_U1>(__in.first), 29724: std::forward<_U2>(__in.second)) 29724: { ; } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple(pair<_U1, _U2>&& __in) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(std::forward<_U1>(__in.first), 29724: std::forward<_U2>(__in.second)) 29724: { ; } 29724: 29724: 29724: 29724: template::value, _T1, _T2> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Inherited(__tag, __a) { } 29724: 29724: template::value, _T1, _T2> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Inherited(__tag, __a) { } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const _T1& __a1, const _T2& __a2) 29724: : _Inherited(__tag, __a, __a1, __a2) { } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const _T1& __a1, const _T2& __a2) 29724: : _Inherited(__tag, __a, __a1, __a2) { } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) 29724: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 29724: std::forward<_U2>(__a2)) 29724: { ; } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: _U1&& __a1, _U2&& __a2) 29724: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 29724: std::forward<_U2>(__a2)) 29724: { ; } 29724: 29724: template 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 29724: : _Inherited(__tag, __a, static_cast(__in)) { } 29724: 29724: template 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 29724: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const tuple<_U1, _U2>& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast&>(__in)) 29724: { ; } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const tuple<_U1, _U2>& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast&>(__in)) 29724: { ; } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 29724: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29724: { ; } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 29724: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29724: { ; } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const pair<_U1, _U2>& __in) 29724: : _Inherited(__tag, __a, __in.first, __in.second) 29724: { ; } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const pair<_U1, _U2>& __in) 29724: : _Inherited(__tag, __a, __in.first, __in.second) 29724: { ; } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 29724: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 29724: std::forward<_U2>(__in.second)) 29724: { ; } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 29724: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 29724: std::forward<_U2>(__in.second)) 29724: { ; } 29724: 29724: 29724: 29724: 29724: tuple& 29724: operator=(__conditional_t<__assignable(), 29724: const tuple&, 29724: const __nonesuch&> __in) 29724: noexcept(__nothrow_assignable()) 29724: { 29724: this->_M_assign(__in); 29724: return *this; 29724: } 29724: 29724: 29724: tuple& 29724: operator=(__conditional_t<__assignable<_T1, _T2>(), 29724: tuple&&, 29724: __nonesuch&&> __in) 29724: noexcept(__nothrow_assignable<_T1, _T2>()) 29724: { 29724: this->_M_assign(std::move(__in)); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable(), tuple&> 29724: operator=(const tuple<_U1, _U2>& __in) 29724: noexcept(__nothrow_assignable()) 29724: { 29724: this->_M_assign(__in); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 29724: operator=(tuple<_U1, _U2>&& __in) 29724: noexcept(__nothrow_assignable<_U1, _U2>()) 29724: { 29724: this->_M_assign(std::move(__in)); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable(), tuple&> 29724: operator=(const pair<_U1, _U2>& __in) 29724: noexcept(__nothrow_assignable()) 29724: { 29724: this->_M_head(*this) = __in.first; 29724: this->_M_tail(*this)._M_head(*this) = __in.second; 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 29724: operator=(pair<_U1, _U2>&& __in) 29724: noexcept(__nothrow_assignable<_U1, _U2>()) 29724: { 29724: this->_M_head(*this) = std::forward<_U1>(__in.first); 29724: this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); 29724: return *this; 29724: } 29724: 29724: 29724: void 29724: swap(tuple& __in) 29724: noexcept(__and_<__is_nothrow_swappable<_T1>, 29724: __is_nothrow_swappable<_T2>>::value) 29724: { _Inherited::_M_swap(__in); } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct tuple_size> 29724: : public integral_constant { }; 29724: 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> 29724: = sizeof...(_Types); 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> 29724: = sizeof...(_Types); 29724: 29724: 29724: 29724: template 29724: struct tuple_element<__i, tuple<_Types...>> 29724: { 29724: static_assert(__i < sizeof...(_Types), "tuple index must be in range"); 29724: 29724: using type = typename _Nth_type<__i, _Types...>::type; 29724: }; 29724: 29724: template 29724: constexpr _Head& 29724: __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 29724: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 29724: 29724: template 29724: constexpr const _Head& 29724: __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 29724: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 29724: 29724: 29724: template 29724: __enable_if_t<(__i >= sizeof...(_Types))> 29724: __get_helper(const tuple<_Types...>&) = delete; 29724: 29724: 29724: template 29724: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 29724: get(tuple<_Elements...>& __t) noexcept 29724: { return std::__get_helper<__i>(__t); } 29724: 29724: 29724: template 29724: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 29724: get(const tuple<_Elements...>& __t) noexcept 29724: { return std::__get_helper<__i>(__t); } 29724: 29724: 29724: template 29724: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 29724: get(tuple<_Elements...>&& __t) noexcept 29724: { 29724: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 29724: return std::forward<__element_type>(std::__get_helper<__i>(__t)); 29724: } 29724: 29724: 29724: template 29724: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 29724: get(const tuple<_Elements...>&& __t) noexcept 29724: { 29724: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 29724: return std::forward(std::__get_helper<__i>(__t)); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr __enable_if_t<(__i >= sizeof...(_Elements))> 29724: get(const tuple<_Elements...>&) = delete; 29724: 29724: 29724: 29724: 29724: template 29724: constexpr _Tp& 29724: get(tuple<_Types...>& __t) noexcept 29724: { 29724: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29724: static_assert(__idx < sizeof...(_Types), 29724: "the type T in std::get must occur exactly once in the tuple"); 29724: return std::__get_helper<__idx>(__t); 29724: } 29724: 29724: 29724: template 29724: constexpr _Tp&& 29724: get(tuple<_Types...>&& __t) noexcept 29724: { 29724: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29724: static_assert(__idx < sizeof...(_Types), 29724: "the type T in std::get must occur exactly once in the tuple"); 29724: return std::forward<_Tp>(std::__get_helper<__idx>(__t)); 29724: } 29724: 29724: 29724: template 29724: constexpr const _Tp& 29724: get(const tuple<_Types...>& __t) noexcept 29724: { 29724: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29724: static_assert(__idx < sizeof...(_Types), 29724: "the type T in std::get must occur exactly once in the tuple"); 29724: return std::__get_helper<__idx>(__t); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr const _Tp&& 29724: get(const tuple<_Types...>&& __t) noexcept 29724: { 29724: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29724: static_assert(__idx < sizeof...(_Types), 29724: "the type T in std::get must occur exactly once in the tuple"); 29724: return std::forward(std::__get_helper<__idx>(__t)); 29724: } 29724: 29724: 29724: 29724: template 29724: struct __tuple_compare 29724: { 29724: static constexpr bool 29724: __eq(const _Tp& __t, const _Up& __u) 29724: { 29724: return bool(std::get<__i>(__t) == std::get<__i>(__u)) 29724: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); 29724: } 29724: 29724: static constexpr bool 29724: __less(const _Tp& __t, const _Up& __u) 29724: { 29724: return bool(std::get<__i>(__t) < std::get<__i>(__u)) 29724: || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) 29724: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); 29724: } 29724: }; 29724: 29724: template 29724: struct __tuple_compare<_Tp, _Up, __size, __size> 29724: { 29724: static constexpr bool 29724: __eq(const _Tp&, const _Up&) { return true; } 29724: 29724: static constexpr bool 29724: __less(const _Tp&, const _Up&) { return false; } 29724: }; 29724: 29724: template 29724: constexpr bool 29724: operator==(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { 29724: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 29724: "tuple objects can only be compared if they have equal sizes."); 29724: using __compare = __tuple_compare, 29724: tuple<_UElements...>, 29724: 0, sizeof...(_TElements)>; 29724: return __compare::__eq(__t, __u); 29724: } 29724: # 2596 "/usr/include/c++/14/tuple" 3 29724: template 29724: constexpr bool 29724: operator<(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { 29724: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 29724: "tuple objects can only be compared if they have equal sizes."); 29724: using __compare = __tuple_compare, 29724: tuple<_UElements...>, 29724: 0, sizeof...(_TElements)>; 29724: return __compare::__less(__t, __u); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator!=(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { return !(__t == __u); } 29724: 29724: template 29724: constexpr bool 29724: operator>(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { return __u < __t; } 29724: 29724: template 29724: constexpr bool 29724: operator<=(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { return !(__u < __t); } 29724: 29724: template 29724: constexpr bool 29724: operator>=(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { return !(__t < __u); } 29724: 29724: 29724: 29724: 29724: template 29724: constexpr tuple::__type...> 29724: make_tuple(_Elements&&... __args) 29724: { 29724: typedef tuple::__type...> 29724: __result_type; 29724: return __result_type(std::forward<_Elements>(__args)...); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: constexpr tuple<_Elements&&...> 29724: forward_as_tuple(_Elements&&... __args) noexcept 29724: { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } 29724: 29724: 29724: template 29724: struct __make_tuple_impl; 29724: 29724: template 29724: struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> 29724: : __make_tuple_impl<_Idx + 1, 29724: tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, 29724: _Tuple, _Nm> 29724: { }; 29724: 29724: template 29724: struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> 29724: { 29724: typedef tuple<_Tp...> __type; 29724: }; 29724: 29724: template 29724: struct __do_make_tuple 29724: : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> 29724: { }; 29724: 29724: 29724: template 29724: struct __make_tuple 29724: : public __do_make_tuple<__remove_cvref_t<_Tuple>> 29724: { }; 29724: 29724: 29724: template 29724: struct __combine_tuples; 29724: 29724: template<> 29724: struct __combine_tuples<> 29724: { 29724: typedef tuple<> __type; 29724: }; 29724: 29724: template 29724: struct __combine_tuples> 29724: { 29724: typedef tuple<_Ts...> __type; 29724: }; 29724: 29724: template 29724: struct __combine_tuples, tuple<_T2s...>, _Rem...> 29724: { 29724: typedef typename __combine_tuples, 29724: _Rem...>::__type __type; 29724: }; 29724: 29724: 29724: template 29724: struct __tuple_cat_result 29724: { 29724: typedef typename __combine_tuples 29724: ::__type...>::__type __type; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __make_1st_indices; 29724: 29724: template<> 29724: struct __make_1st_indices<> 29724: { 29724: typedef _Index_tuple<> __type; 29724: }; 29724: 29724: template 29724: struct __make_1st_indices<_Tp, _Tpls...> 29724: { 29724: typedef typename _Build_index_tuple::type>::value>::__type __type; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __tuple_concater; 29724: 29724: template 29724: struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> 29724: { 29724: template 29724: static constexpr _Ret 29724: _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) 29724: { 29724: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 29724: typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; 29724: return __next::_S_do(std::forward<_Tpls>(__tps)..., 29724: std::forward<_Us>(__us)..., 29724: std::get<_Is>(std::forward<_Tp>(__tp))...); 29724: } 29724: }; 29724: 29724: template 29724: struct __tuple_concater<_Ret, _Index_tuple<>> 29724: { 29724: template 29724: static constexpr _Ret 29724: _S_do(_Us&&... __us) 29724: { 29724: return _Ret(std::forward<_Us>(__us)...); 29724: } 29724: }; 29724: 29724: template 29724: struct __is_tuple_like_impl> : true_type 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template...>::value>::type> 29724: 29724: constexpr auto 29724: tuple_cat(_Tpls&&... __tpls) 29724: -> typename __tuple_cat_result<_Tpls...>::__type 29724: { 29724: typedef typename __tuple_cat_result<_Tpls...>::__type __ret; 29724: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 29724: typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; 29724: return __concater::_S_do(std::forward<_Tpls>(__tpls)...); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: constexpr tuple<_Elements&...> 29724: tie(_Elements&... __args) noexcept 29724: { return tuple<_Elements&...>(__args...); } 29724: 29724: 29724: template 29724: 29724: inline 29724: 29724: 29724: typename enable_if<__and_<__is_swappable<_Elements>...>::value 29724: >::type 29724: 29724: 29724: 29724: swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: # 2818 "/usr/include/c++/14/tuple" 3 29724: template 29724: 29724: typename enable_if...>::value>::type 29724: swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct _Swallow_assign 29724: { 29724: template 29724: constexpr const _Swallow_assign& 29724: operator=(const _Tp&) const 29724: { return *this; } 29724: }; 29724: # 2853 "/usr/include/c++/14/tuple" 3 29724: inline constexpr _Swallow_assign ignore{}; 29724: 29724: 29724: template 29724: struct uses_allocator, _Alloc> : true_type { }; 29724: # 2868 "/usr/include/c++/14/tuple" 3 29724: template 29724: template 29724: 29724: inline 29724: pair<_T1, _T2>:: 29724: pair(piecewise_construct_t, 29724: tuple<_Args1...> __first, tuple<_Args2...> __second) 29724: : pair(__first, __second, 29724: typename _Build_index_tuple::__type(), 29724: typename _Build_index_tuple::__type()) 29724: { } 29724: 29724: template 29724: template 29724: inline 29724: pair<_T1, _T2>:: 29724: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, 29724: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) 29724: : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), 29724: second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template class _Trait, typename _Tp, typename _Tuple> 29724: inline constexpr bool __unpack_std_tuple = false; 29724: 29724: template class _Trait, typename _Tp, typename... _Up> 29724: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> 29724: = _Trait<_Tp, _Up...>::value; 29724: 29724: template class _Trait, typename _Tp, typename... _Up> 29724: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> 29724: = _Trait<_Tp, _Up&...>::value; 29724: 29724: template class _Trait, typename _Tp, typename... _Up> 29724: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> 29724: = _Trait<_Tp, const _Up...>::value; 29724: 29724: template class _Trait, typename _Tp, typename... _Up> 29724: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> 29724: = _Trait<_Tp, const _Up&...>::value; 29724: 29724: 29724: 29724: template 29724: constexpr decltype(auto) 29724: __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) 29724: { 29724: return std::__invoke(std::forward<_Fn>(__f), 29724: std::get<_Idx>(std::forward<_Tuple>(__t))...); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: constexpr decltype(auto) 29724: apply(_Fn&& __f, _Tuple&& __t) 29724: noexcept(__unpack_std_tuple) 29724: { 29724: using _Indices 29724: = make_index_sequence>>; 29724: return std::__apply_impl(std::forward<_Fn>(__f), 29724: std::forward<_Tuple>(__t), 29724: _Indices{}); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr _Tp 29724: __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) 29724: { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: constexpr _Tp 29724: make_from_tuple(_Tuple&& __t) 29724: noexcept(__unpack_std_tuple) 29724: { 29724: constexpr size_t __n = tuple_size_v>; 29724: 29724: if constexpr (__n == 1) 29724: { 29724: using _Elt = decltype(std::get<0>(std::declval<_Tuple>())); 29724: static_assert(!__reference_constructs_from_temporary(_Tp, _Elt)); 29724: } 29724: 29724: return __make_from_tuple_impl<_Tp>(std::forward<_Tuple>(__t), 29724: make_index_sequence<__n>{}); 29724: } 29724: # 3030 "/usr/include/c++/14/tuple" 3 29724: 29724: } 29724: # 48 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class memory_resource 29724: { 29724: static constexpr size_t _S_max_align = alignof(max_align_t); 29724: 29724: public: 29724: memory_resource() = default; 29724: memory_resource(const memory_resource&) = default; 29724: virtual ~memory_resource(); 29724: 29724: memory_resource& operator=(const memory_resource&) = default; 29724: 29724: [[nodiscard]] 29724: void* 29724: allocate(size_t __bytes, size_t __alignment = _S_max_align) 29724: __attribute__((__returns_nonnull__,__alloc_size__(2),__alloc_align__(3))) 29724: { return ::operator new(__bytes, do_allocate(__bytes, __alignment)); } 29724: 29724: void 29724: deallocate(void* __p, size_t __bytes, size_t __alignment = _S_max_align) 29724: __attribute__((__nonnull__)) 29724: { return do_deallocate(__p, __bytes, __alignment); } 29724: 29724: [[nodiscard]] 29724: bool 29724: is_equal(const memory_resource& __other) const noexcept 29724: { return do_is_equal(__other); } 29724: 29724: private: 29724: virtual void* 29724: do_allocate(size_t __bytes, size_t __alignment) = 0; 29724: 29724: virtual void 29724: do_deallocate(void* __p, size_t __bytes, size_t __alignment) = 0; 29724: 29724: virtual bool 29724: do_is_equal(const memory_resource& __other) const noexcept = 0; 29724: }; 29724: 29724: [[nodiscard]] 29724: inline bool 29724: operator==(const memory_resource& __a, const memory_resource& __b) noexcept 29724: { return &__a == &__b || __a.is_equal(__b); } 29724: 29724: 29724: [[nodiscard]] 29724: inline bool 29724: operator!=(const memory_resource& __a, const memory_resource& __b) noexcept 29724: { return !(__a == __b); } 29724: # 119 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: template 29724: class polymorphic_allocator 29724: { 29724: 29724: 29724: template 29724: struct __not_pair { using type = void; }; 29724: 29724: template 29724: struct __not_pair> { }; 29724: 29724: public: 29724: using value_type = _Tp; 29724: 29724: polymorphic_allocator() noexcept 29724: { 29724: extern memory_resource* get_default_resource() noexcept 29724: __attribute__((__returns_nonnull__)); 29724: _M_resource = get_default_resource(); 29724: } 29724: 29724: polymorphic_allocator(memory_resource* __r) noexcept 29724: __attribute__((__nonnull__)) 29724: : _M_resource(__r) 29724: { ; } 29724: 29724: polymorphic_allocator(const polymorphic_allocator& __other) = default; 29724: 29724: template 29724: polymorphic_allocator(const polymorphic_allocator<_Up>& __x) noexcept 29724: : _M_resource(__x.resource()) 29724: { } 29724: 29724: polymorphic_allocator& 29724: operator=(const polymorphic_allocator&) = delete; 29724: 29724: [[nodiscard]] 29724: _Tp* 29724: allocate(size_t __n) 29724: __attribute__((__returns_nonnull__)) 29724: { 29724: if ((__gnu_cxx::__int_traits::__max / sizeof(_Tp)) < __n) 29724: std::__throw_bad_array_new_length(); 29724: return static_cast<_Tp*>(_M_resource->allocate(__n * sizeof(_Tp), 29724: alignof(_Tp))); 29724: } 29724: 29724: void 29724: deallocate(_Tp* __p, size_t __n) noexcept 29724: __attribute__((__nonnull__)) 29724: { _M_resource->deallocate(__p, __n * sizeof(_Tp), alignof(_Tp)); } 29724: # 224 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: template 29724: __attribute__((__nonnull__)) 29724: typename __not_pair<_Tp1>::type 29724: construct(_Tp1* __p, _Args&&... __args) 29724: { 29724: 29724: 29724: using __use_tag 29724: = std::__uses_alloc_t<_Tp1, polymorphic_allocator, _Args...>; 29724: if constexpr (is_base_of_v<__uses_alloc0, __use_tag>) 29724: ::new(__p) _Tp1(std::forward<_Args>(__args)...); 29724: else if constexpr (is_base_of_v<__uses_alloc1_, __use_tag>) 29724: ::new(__p) _Tp1(allocator_arg, *this, 29724: std::forward<_Args>(__args)...); 29724: else 29724: ::new(__p) _Tp1(std::forward<_Args>(__args)..., *this); 29724: } 29724: 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: construct(pair<_Tp1, _Tp2>* __p, piecewise_construct_t, 29724: tuple<_Args1...> __x, tuple<_Args2...> __y) 29724: { 29724: auto __x_tag = 29724: __use_alloc<_Tp1, polymorphic_allocator, _Args1...>(*this); 29724: auto __y_tag = 29724: __use_alloc<_Tp2, polymorphic_allocator, _Args2...>(*this); 29724: index_sequence_for<_Args1...> __x_i; 29724: index_sequence_for<_Args2...> __y_i; 29724: 29724: ::new(__p) pair<_Tp1, _Tp2>(piecewise_construct, 29724: _S_construct_p(__x_tag, __x_i, __x), 29724: _S_construct_p(__y_tag, __y_i, __y)); 29724: } 29724: 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: construct(pair<_Tp1, _Tp2>* __p) 29724: { this->construct(__p, piecewise_construct, tuple<>(), tuple<>()); } 29724: 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: construct(pair<_Tp1, _Tp2>* __p, _Up&& __x, _Vp&& __y) 29724: { 29724: this->construct(__p, piecewise_construct, 29724: std::forward_as_tuple(std::forward<_Up>(__x)), 29724: std::forward_as_tuple(std::forward<_Vp>(__y))); 29724: } 29724: 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: construct(pair<_Tp1, _Tp2>* __p, const std::pair<_Up, _Vp>& __pr) 29724: { 29724: this->construct(__p, piecewise_construct, 29724: std::forward_as_tuple(__pr.first), 29724: std::forward_as_tuple(__pr.second)); 29724: } 29724: 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: construct(pair<_Tp1, _Tp2>* __p, pair<_Up, _Vp>&& __pr) 29724: { 29724: this->construct(__p, piecewise_construct, 29724: std::forward_as_tuple(std::forward<_Up>(__pr.first)), 29724: std::forward_as_tuple(std::forward<_Vp>(__pr.second))); 29724: } 29724: # 307 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: destroy(_Up* __p) 29724: { __p->~_Up(); } 29724: 29724: polymorphic_allocator 29724: select_on_container_copy_construction() const noexcept 29724: { return polymorphic_allocator(); } 29724: 29724: memory_resource* 29724: resource() const noexcept 29724: __attribute__((__returns_nonnull__)) 29724: { return _M_resource; } 29724: 29724: 29724: 29724: [[nodiscard]] 29724: friend bool 29724: operator==(const polymorphic_allocator& __a, 29724: const polymorphic_allocator& __b) noexcept 29724: { return *__a.resource() == *__b.resource(); } 29724: 29724: 29724: [[nodiscard]] 29724: friend bool 29724: operator!=(const polymorphic_allocator& __a, 29724: const polymorphic_allocator& __b) noexcept 29724: { return !(__a == __b); } 29724: 29724: 29724: private: 29724: 29724: using __uses_alloc1_ = __uses_alloc1; 29724: using __uses_alloc2_ = __uses_alloc2; 29724: 29724: template 29724: static tuple<_Args&&...> 29724: _S_construct_p(__uses_alloc0, _Ind, tuple<_Args...>& __t) 29724: { return std::move(__t); } 29724: 29724: template 29724: static tuple 29724: _S_construct_p(__uses_alloc1_ __ua, index_sequence<_Ind...>, 29724: tuple<_Args...>& __t) 29724: { 29724: return { 29724: allocator_arg, *__ua._M_a, std::get<_Ind>(std::move(__t))... 29724: }; 29724: } 29724: 29724: template 29724: static tuple<_Args&&..., polymorphic_allocator> 29724: _S_construct_p(__uses_alloc2_ __ua, index_sequence<_Ind...>, 29724: tuple<_Args...>& __t) 29724: { return { std::get<_Ind>(std::move(__t))..., *__ua._M_a }; } 29724: 29724: 29724: memory_resource* _M_resource; 29724: }; 29724: 29724: template 29724: [[nodiscard]] 29724: inline bool 29724: operator==(const polymorphic_allocator<_Tp1>& __a, 29724: const polymorphic_allocator<_Tp2>& __b) noexcept 29724: { return *__a.resource() == *__b.resource(); } 29724: 29724: 29724: template 29724: [[nodiscard]] 29724: inline bool 29724: operator!=(const polymorphic_allocator<_Tp1>& __a, 29724: const polymorphic_allocator<_Tp2>& __b) noexcept 29724: { return !(__a == __b); } 29724: 29724: 29724: } 29724: 29724: template struct allocator_traits; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct allocator_traits> 29724: { 29724: 29724: using allocator_type = pmr::polymorphic_allocator<_Tp>; 29724: 29724: 29724: using value_type = _Tp; 29724: 29724: 29724: using pointer = _Tp*; 29724: 29724: 29724: using const_pointer = const _Tp*; 29724: 29724: 29724: using void_pointer = void*; 29724: 29724: 29724: using const_void_pointer = const void*; 29724: 29724: 29724: using difference_type = std::ptrdiff_t; 29724: 29724: 29724: using size_type = std::size_t; 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_copy_assignment = false_type; 29724: using propagate_on_container_move_assignment = false_type; 29724: using propagate_on_container_swap = false_type; 29724: 29724: static allocator_type 29724: select_on_container_copy_construction(const allocator_type&) noexcept 29724: { return allocator_type(); } 29724: 29724: 29724: 29724: using is_always_equal = false_type; 29724: 29724: template 29724: using rebind_alloc = pmr::polymorphic_allocator<_Up>; 29724: 29724: template 29724: using rebind_traits = allocator_traits>; 29724: # 450 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: [[nodiscard]] static pointer 29724: allocate(allocator_type& __a, size_type __n) 29724: { return __a.allocate(__n); } 29724: # 465 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: [[nodiscard]] static pointer 29724: allocate(allocator_type& __a, size_type __n, const_void_pointer) 29724: { return __a.allocate(__n); } 29724: # 477 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: static void 29724: deallocate(allocator_type& __a, pointer __p, size_type __n) 29724: { __a.deallocate(__p, __n); } 29724: # 492 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: template 29724: static void 29724: construct(allocator_type& __a, _Up* __p, _Args&&... __args) 29724: { __a.construct(__p, std::forward<_Args>(__args)...); } 29724: # 504 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: template 29724: static void 29724: destroy(allocator_type&, _Up* __p) 29724: noexcept(is_nothrow_destructible<_Up>::value) 29724: { __p->~_Up(); } 29724: 29724: 29724: 29724: 29724: 29724: static size_type 29724: max_size(const allocator_type&) noexcept 29724: { return size_t(-1) / sizeof(value_type); } 29724: }; 29724: 29724: 29724: } 29724: # 82 "/usr/include/c++/14/deque" 2 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template 29724: using deque = std::deque<_Tp, polymorphic_allocator<_Tp>>; 29724: } 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/usr/include/c++/14/functional" 1 3 29724: # 46 "/usr/include/c++/14/functional" 3 29724: 29724: # 47 "/usr/include/c++/14/functional" 3 29724: # 55 "/usr/include/c++/14/functional" 3 29724: # 1 "/usr/include/c++/14/bits/functional_hash.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/hash_bytes.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/hash_bytes.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/hash_bytes.h" 3 29724: 29724: 29724: 29724: namespace std 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t 29724: _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); 29724: 29724: 29724: 29724: 29724: 29724: size_t 29724: _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); 29724: 29724: 29724: } 29724: # 37 "/usr/include/c++/14/bits/functional_hash.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 50 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: template 29724: struct __hash_base 29724: { 29724: typedef _Result result_type [[__deprecated__]]; 29724: typedef _Arg argument_type [[__deprecated__]]; 29724: }; 29724: 29724: 29724: template 29724: struct hash; 29724: 29724: template 29724: struct __poison_hash 29724: { 29724: static constexpr bool __enable_hash_call = false; 29724: private: 29724: 29724: __poison_hash(__poison_hash&&); 29724: ~__poison_hash(); 29724: }; 29724: 29724: template 29724: struct __poison_hash<_Tp, __void_t()(declval<_Tp>()))>> 29724: { 29724: static constexpr bool __enable_hash_call = true; 29724: }; 29724: 29724: 29724: template::value> 29724: struct __hash_enum 29724: { 29724: private: 29724: 29724: __hash_enum(__hash_enum&&); 29724: ~__hash_enum(); 29724: }; 29724: 29724: 29724: template 29724: struct __hash_enum<_Tp, true> : public __hash_base 29724: { 29724: size_t 29724: operator()(_Tp __val) const noexcept 29724: { 29724: using __type = typename underlying_type<_Tp>::type; 29724: return hash<__type>{}(static_cast<__type>(__val)); 29724: } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct hash : __hash_enum<_Tp> 29724: { }; 29724: 29724: 29724: template 29724: struct hash<_Tp*> : public __hash_base 29724: { 29724: size_t 29724: operator()(_Tp* __p) const noexcept 29724: { return reinterpret_cast(__p); } 29724: }; 29724: # 125 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; 29724: # 201 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: struct _Hash_impl 29724: { 29724: static size_t 29724: hash(const void* __ptr, size_t __clength, 29724: size_t __seed = static_cast(0xc70f6907UL)) 29724: { return _Hash_bytes(__ptr, __clength, __seed); } 29724: 29724: template 29724: static size_t 29724: hash(const _Tp& __val) 29724: { return hash(&__val, sizeof(__val)); } 29724: 29724: template 29724: static size_t 29724: __hash_combine(const _Tp& __val, size_t __hash) 29724: { return hash(&__val, sizeof(__val), __hash); } 29724: }; 29724: 29724: 29724: struct _Fnv_hash_impl 29724: { 29724: static size_t 29724: hash(const void* __ptr, size_t __clength, 29724: size_t __seed = static_cast(2166136261UL)) 29724: { return _Fnv_hash_bytes(__ptr, __clength, __seed); } 29724: 29724: template 29724: static size_t 29724: hash(const _Tp& __val) 29724: { return hash(&__val, sizeof(__val)); } 29724: 29724: template 29724: static size_t 29724: __hash_combine(const _Tp& __val, size_t __hash) 29724: { return hash(&__val, sizeof(__val), __hash); } 29724: }; 29724: 29724: 29724: template<> 29724: struct hash : public __hash_base 29724: { 29724: size_t 29724: operator()(float __val) const noexcept 29724: { 29724: 29724: return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: struct hash : public __hash_base 29724: { 29724: size_t 29724: operator()(double __val) const noexcept 29724: { 29724: 29724: return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: __attribute__ ((__pure__)) size_t 29724: operator()(long double __val) const noexcept; 29724: }; 29724: 29724: 29724: template<> 29724: struct hash : public __hash_base 29724: { 29724: size_t 29724: operator()(nullptr_t) const noexcept 29724: { return 0; } 29724: }; 29724: # 294 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: template 29724: struct __is_fast_hash : public std::true_type 29724: { }; 29724: 29724: template<> 29724: struct __is_fast_hash> : public std::false_type 29724: { }; 29724: 29724: 29724: } 29724: # 56 "/usr/include/c++/14/functional" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/std_function.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/std_function.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/std_function.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/typeinfo" 1 3 29724: # 32 "/usr/include/c++/14/typeinfo" 3 29724: 29724: # 33 "/usr/include/c++/14/typeinfo" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 41 "/usr/include/c++/14/typeinfo" 2 3 29724: 29724: #pragma GCC visibility push(default) 29724: 29724: extern "C++" { 29724: 29724: namespace __cxxabiv1 29724: { 29724: class __class_type_info; 29724: } 29724: # 83 "/usr/include/c++/14/typeinfo" 3 29724: namespace std 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class type_info 29724: { 29724: public: 29724: 29724: 29724: 29724: 29724: virtual ~type_info(); 29724: 29724: 29724: 29724: const char* name() const noexcept 29724: { return __name[0] == '*' ? __name + 1 : __name; } 29724: 29724: 29724: 29724: bool before(const type_info& __arg) const noexcept; 29724: 29724: 29724: bool operator==(const type_info& __arg) const noexcept; 29724: 29724: 29724: bool operator!=(const type_info& __arg) const noexcept 29724: { return !operator==(__arg); } 29724: 29724: 29724: 29724: size_t hash_code() const noexcept 29724: { 29724: 29724: return _Hash_bytes(name(), __builtin_strlen(name()), 29724: static_cast(0xc70f6907UL)); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: virtual bool __is_pointer_p() const; 29724: 29724: 29724: virtual bool __is_function_p() const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, 29724: unsigned __outer) const; 29724: 29724: 29724: virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, 29724: void **__obj_ptr) const; 29724: 29724: protected: 29724: const char *__name; 29724: 29724: explicit type_info(const char *__n): __name(__n) { } 29724: 29724: private: 29724: 29724: 29724: type_info& operator=(const type_info&) = delete; 29724: type_info(const type_info&) = delete; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool __equal(const type_info&) const noexcept; 29724: 29724: }; 29724: # 219 "/usr/include/c++/14/typeinfo" 3 29724: class bad_cast : public exception 29724: { 29724: public: 29724: bad_cast() noexcept { } 29724: 29724: 29724: 29724: virtual ~bad_cast() noexcept; 29724: 29724: 29724: virtual const char* what() const noexcept; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class bad_typeid : public exception 29724: { 29724: public: 29724: bad_typeid () noexcept { } 29724: 29724: 29724: 29724: virtual ~bad_typeid() noexcept; 29724: 29724: 29724: virtual const char* what() const noexcept; 29724: }; 29724: } 29724: 29724: } 29724: 29724: #pragma GCC visibility pop 29724: # 41 "/usr/include/c++/14/bits/std_function.h" 2 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class bad_function_call : public std::exception 29724: { 29724: public: 29724: virtual ~bad_function_call() noexcept; 29724: 29724: const char* what() const noexcept; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_location_invariant 29724: : is_trivially_copyable<_Tp>::type 29724: { }; 29724: 29724: class _Undefined_class; 29724: 29724: union _Nocopy_types 29724: { 29724: void* _M_object; 29724: const void* _M_const_object; 29724: void (*_M_function_pointer)(); 29724: void (_Undefined_class::*_M_member_pointer)(); 29724: }; 29724: 29724: union [[gnu::may_alias]] _Any_data 29724: { 29724: void* _M_access() noexcept { return &_M_pod_data[0]; } 29724: const void* _M_access() const noexcept { return &_M_pod_data[0]; } 29724: 29724: template 29724: _Tp& 29724: _M_access() noexcept 29724: { return *static_cast<_Tp*>(_M_access()); } 29724: 29724: template 29724: const _Tp& 29724: _M_access() const noexcept 29724: { return *static_cast(_M_access()); } 29724: 29724: _Nocopy_types _M_unused; 29724: char _M_pod_data[sizeof(_Nocopy_types)]; 29724: }; 29724: 29724: enum _Manager_operation 29724: { 29724: __get_type_info, 29724: __get_functor_ptr, 29724: __clone_functor, 29724: __destroy_functor 29724: }; 29724: 29724: template 29724: class function; 29724: 29724: 29724: class _Function_base 29724: { 29724: public: 29724: static const size_t _M_max_size = sizeof(_Nocopy_types); 29724: static const size_t _M_max_align = __alignof__(_Nocopy_types); 29724: 29724: template 29724: class _Base_manager 29724: { 29724: protected: 29724: static const bool __stored_locally = 29724: (__is_location_invariant<_Functor>::value 29724: && sizeof(_Functor) <= _M_max_size 29724: && __alignof__(_Functor) <= _M_max_align 29724: && (_M_max_align % __alignof__(_Functor) == 0)); 29724: 29724: using _Local_storage = integral_constant; 29724: 29724: 29724: static _Functor* 29724: _M_get_pointer(const _Any_data& __source) noexcept 29724: { 29724: if constexpr (__stored_locally) 29724: { 29724: const _Functor& __f = __source._M_access<_Functor>(); 29724: return const_cast<_Functor*>(std::__addressof(__f)); 29724: } 29724: else 29724: return __source._M_access<_Functor*>(); 29724: } 29724: 29724: private: 29724: 29724: 29724: template 29724: static void 29724: _M_create(_Any_data& __dest, _Fn&& __f, true_type) 29724: { 29724: ::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f)); 29724: } 29724: 29724: 29724: template 29724: static void 29724: _M_create(_Any_data& __dest, _Fn&& __f, false_type) 29724: { 29724: __dest._M_access<_Functor*>() 29724: = new _Functor(std::forward<_Fn>(__f)); 29724: } 29724: 29724: 29724: static void 29724: _M_destroy(_Any_data& __victim, true_type) 29724: { 29724: __victim._M_access<_Functor>().~_Functor(); 29724: } 29724: 29724: 29724: static void 29724: _M_destroy(_Any_data& __victim, false_type) 29724: { 29724: delete __victim._M_access<_Functor*>(); 29724: } 29724: 29724: public: 29724: static bool 29724: _M_manager(_Any_data& __dest, const _Any_data& __source, 29724: _Manager_operation __op) 29724: { 29724: switch (__op) 29724: { 29724: case __get_type_info: 29724: 29724: __dest._M_access() = &typeid(_Functor); 29724: 29724: 29724: 29724: break; 29724: 29724: case __get_functor_ptr: 29724: __dest._M_access<_Functor*>() = _M_get_pointer(__source); 29724: break; 29724: 29724: case __clone_functor: 29724: _M_init_functor(__dest, 29724: *const_cast(_M_get_pointer(__source))); 29724: break; 29724: 29724: case __destroy_functor: 29724: _M_destroy(__dest, _Local_storage()); 29724: break; 29724: } 29724: return false; 29724: } 29724: 29724: template 29724: static void 29724: _M_init_functor(_Any_data& __functor, _Fn&& __f) 29724: noexcept(__and_<_Local_storage, 29724: is_nothrow_constructible<_Functor, _Fn>>::value) 29724: { 29724: _M_create(__functor, std::forward<_Fn>(__f), _Local_storage()); 29724: } 29724: 29724: template 29724: static bool 29724: _M_not_empty_function(const function<_Signature>& __f) noexcept 29724: { return static_cast(__f); } 29724: 29724: template 29724: static bool 29724: _M_not_empty_function(_Tp* __fp) noexcept 29724: { return __fp != nullptr; } 29724: 29724: template 29724: static bool 29724: _M_not_empty_function(_Tp _Class::* __mp) noexcept 29724: { return __mp != nullptr; } 29724: 29724: template 29724: static bool 29724: _M_not_empty_function(const _Tp&) noexcept 29724: { return true; } 29724: }; 29724: 29724: _Function_base() = default; 29724: 29724: ~_Function_base() 29724: { 29724: if (_M_manager) 29724: _M_manager(_M_functor, _M_functor, __destroy_functor); 29724: } 29724: 29724: bool _M_empty() const { return !_M_manager; } 29724: 29724: using _Manager_type 29724: = bool (*)(_Any_data&, const _Any_data&, _Manager_operation); 29724: 29724: _Any_data _M_functor{}; 29724: _Manager_type _M_manager{}; 29724: }; 29724: 29724: template 29724: class _Function_handler; 29724: 29724: template 29724: class _Function_handler<_Res(_ArgTypes...), _Functor> 29724: : public _Function_base::_Base_manager<_Functor> 29724: { 29724: using _Base = _Function_base::_Base_manager<_Functor>; 29724: 29724: public: 29724: static bool 29724: _M_manager(_Any_data& __dest, const _Any_data& __source, 29724: _Manager_operation __op) 29724: { 29724: switch (__op) 29724: { 29724: 29724: case __get_type_info: 29724: __dest._M_access() = &typeid(_Functor); 29724: break; 29724: 29724: case __get_functor_ptr: 29724: __dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source); 29724: break; 29724: 29724: default: 29724: _Base::_M_manager(__dest, __source, __op); 29724: } 29724: return false; 29724: } 29724: 29724: static _Res 29724: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 29724: { 29724: return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor), 29724: std::forward<_ArgTypes>(__args)...); 29724: } 29724: 29724: template 29724: static constexpr bool 29724: _S_nothrow_init() noexcept 29724: { 29724: return __and_>::value; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: class _Function_handler 29724: { 29724: public: 29724: static bool 29724: _M_manager(_Any_data&, const _Any_data&, _Manager_operation) 29724: { return false; } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template::value> 29724: struct _Target_handler 29724: : _Function_handler<_Signature, typename remove_cv<_Functor>::type> 29724: { }; 29724: 29724: template 29724: struct _Target_handler<_Signature, _Functor, false> 29724: : _Function_handler 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class function<_Res(_ArgTypes...)> 29724: : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, 29724: private _Function_base 29724: { 29724: 29724: 29724: template, function>::value> 29724: using _Decay_t 29724: = typename __enable_if_t>::type; 29724: 29724: template, 29724: typename _Res2 = __invoke_result<_DFunc&, _ArgTypes...>> 29724: struct _Callable 29724: : __is_invocable_impl<_Res2, _Res>::type 29724: { }; 29724: 29724: template 29724: using _Requires = __enable_if_t<_Cond::value, _Tp>; 29724: 29724: template 29724: using _Handler 29724: = _Function_handler<_Res(_ArgTypes...), __decay_t<_Functor>>; 29724: 29724: public: 29724: typedef _Res result_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: function() noexcept 29724: : _Function_base() { } 29724: 29724: 29724: 29724: 29724: 29724: function(nullptr_t) noexcept 29724: : _Function_base() { } 29724: # 386 "/usr/include/c++/14/bits/std_function.h" 3 29724: function(const function& __x) 29724: : _Function_base() 29724: { 29724: if (static_cast(__x)) 29724: { 29724: __x._M_manager(_M_functor, __x._M_functor, __clone_functor); 29724: _M_invoker = __x._M_invoker; 29724: _M_manager = __x._M_manager; 29724: } 29724: } 29724: # 404 "/usr/include/c++/14/bits/std_function.h" 3 29724: function(function&& __x) noexcept 29724: : _Function_base(), _M_invoker(__x._M_invoker) 29724: { 29724: if (static_cast(__x)) 29724: { 29724: _M_functor = __x._M_functor; 29724: _M_manager = __x._M_manager; 29724: __x._M_manager = nullptr; 29724: __x._M_invoker = nullptr; 29724: } 29724: } 29724: # 433 "/usr/include/c++/14/bits/std_function.h" 3 29724: template>> 29724: function(_Functor&& __f) 29724: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 29724: : _Function_base() 29724: { 29724: static_assert(is_copy_constructible<__decay_t<_Functor>>::value, 29724: "std::function target must be copy-constructible"); 29724: static_assert(is_constructible<__decay_t<_Functor>, _Functor>::value, 29724: "std::function target must be constructible from the " 29724: "constructor argument"); 29724: 29724: using _My_handler = _Handler<_Functor>; 29724: 29724: if (_My_handler::_M_not_empty_function(__f)) 29724: { 29724: _My_handler::_M_init_functor(_M_functor, 29724: std::forward<_Functor>(__f)); 29724: _M_invoker = &_My_handler::_M_invoke; 29724: _M_manager = &_My_handler::_M_manager; 29724: } 29724: } 29724: # 468 "/usr/include/c++/14/bits/std_function.h" 3 29724: function& 29724: operator=(const function& __x) 29724: { 29724: function(__x).swap(*this); 29724: return *this; 29724: } 29724: # 486 "/usr/include/c++/14/bits/std_function.h" 3 29724: function& 29724: operator=(function&& __x) noexcept 29724: { 29724: function(std::move(__x)).swap(*this); 29724: return *this; 29724: } 29724: # 500 "/usr/include/c++/14/bits/std_function.h" 3 29724: function& 29724: operator=(nullptr_t) noexcept 29724: { 29724: if (_M_manager) 29724: { 29724: _M_manager(_M_functor, _M_functor, __destroy_functor); 29724: _M_manager = nullptr; 29724: _M_invoker = nullptr; 29724: } 29724: return *this; 29724: } 29724: # 529 "/usr/include/c++/14/bits/std_function.h" 3 29724: template 29724: _Requires<_Callable<_Functor>, function&> 29724: operator=(_Functor&& __f) 29724: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 29724: { 29724: function(std::forward<_Functor>(__f)).swap(*this); 29724: return *this; 29724: } 29724: 29724: 29724: template 29724: function& 29724: operator=(reference_wrapper<_Functor> __f) noexcept 29724: { 29724: function(__f).swap(*this); 29724: return *this; 29724: } 29724: # 556 "/usr/include/c++/14/bits/std_function.h" 3 29724: void swap(function& __x) noexcept 29724: { 29724: std::swap(_M_functor, __x._M_functor); 29724: std::swap(_M_manager, __x._M_manager); 29724: std::swap(_M_invoker, __x._M_invoker); 29724: } 29724: # 573 "/usr/include/c++/14/bits/std_function.h" 3 29724: explicit operator bool() const noexcept 29724: { return !_M_empty(); } 29724: # 586 "/usr/include/c++/14/bits/std_function.h" 3 29724: _Res 29724: operator()(_ArgTypes... __args) const 29724: { 29724: if (_M_empty()) 29724: __throw_bad_function_call(); 29724: return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); 29724: } 29724: # 605 "/usr/include/c++/14/bits/std_function.h" 3 29724: const type_info& 29724: target_type() const noexcept 29724: { 29724: if (_M_manager) 29724: { 29724: _Any_data __typeinfo_result; 29724: _M_manager(__typeinfo_result, _M_functor, __get_type_info); 29724: if (auto __ti = __typeinfo_result._M_access()) 29724: return *__ti; 29724: } 29724: return typeid(void); 29724: } 29724: # 630 "/usr/include/c++/14/bits/std_function.h" 3 29724: template 29724: _Functor* 29724: target() noexcept 29724: { 29724: const function* __const_this = this; 29724: const _Functor* __func = __const_this->template target<_Functor>(); 29724: 29724: 29724: return *const_cast<_Functor**>(&__func); 29724: } 29724: 29724: template 29724: const _Functor* 29724: target() const noexcept 29724: { 29724: if constexpr (is_object<_Functor>::value) 29724: { 29724: 29724: 29724: using _Handler = _Target_handler<_Res(_ArgTypes...), _Functor>; 29724: 29724: if (_M_manager == &_Handler::_M_manager 29724: 29724: || (_M_manager && typeid(_Functor) == target_type()) 29724: 29724: ) 29724: { 29724: _Any_data __ptr; 29724: _M_manager(__ptr, _M_functor, __get_functor_ptr); 29724: return __ptr._M_access(); 29724: } 29724: } 29724: return nullptr; 29724: } 29724: 29724: 29724: private: 29724: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); 29724: _Invoker_type _M_invoker = nullptr; 29724: }; 29724: 29724: 29724: template 29724: struct __function_guide_helper 29724: { }; 29724: 29724: template 29724: struct __function_guide_helper< 29724: _Res (_Tp::*) (_Args...) noexcept(_Nx) 29724: > 29724: { using type = _Res(_Args...); }; 29724: 29724: template 29724: struct __function_guide_helper< 29724: _Res (_Tp::*) (_Args...) & noexcept(_Nx) 29724: > 29724: { using type = _Res(_Args...); }; 29724: 29724: template 29724: struct __function_guide_helper< 29724: _Res (_Tp::*) (_Args...) const noexcept(_Nx) 29724: > 29724: { using type = _Res(_Args...); }; 29724: 29724: template 29724: struct __function_guide_helper< 29724: _Res (_Tp::*) (_Args...) const & noexcept(_Nx) 29724: > 29724: { using type = _Res(_Args...); }; 29724: # 721 "/usr/include/c++/14/bits/std_function.h" 3 29724: template 29724: using __function_guide_t = typename __function_guide_helper<_Op>::type; 29724: 29724: 29724: template 29724: function(_Res(*)(_ArgTypes...)) -> function<_Res(_ArgTypes...)>; 29724: 29724: template> 29724: function(_Fn) -> function<_Signature>; 29724: # 741 "/usr/include/c++/14/bits/std_function.h" 3 29724: template 29724: inline bool 29724: operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 29724: { return !static_cast(__f); } 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 29724: { return !static_cast(__f); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 29724: { return static_cast(__f); } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 29724: { return static_cast(__f); } 29724: # 780 "/usr/include/c++/14/bits/std_function.h" 3 29724: template 29724: inline void 29724: swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept 29724: { __x.swap(__y); } 29724: 29724: 29724: namespace __detail::__variant 29724: { 29724: template struct _Never_valueless_alt; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : std::true_type 29724: { }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 60 "/usr/include/c++/14/functional" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/unordered_map" 1 3 29724: # 32 "/usr/include/c++/14/unordered_map" 3 29724: 29724: # 33 "/usr/include/c++/14/unordered_map" 3 29724: # 41 "/usr/include/c++/14/unordered_map" 3 29724: # 1 "/usr/include/c++/14/bits/unordered_map.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: # 1 "/usr/include/c++/14/bits/hashtable.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/hashtable.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/hashtable.h" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/hashtable_policy.h" 1 3 29724: # 38 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: # 1 "/usr/include/c++/14/ext/aligned_buffer.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/aligned_buffer.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/aligned_buffer.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __gnu_cxx 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: struct __aligned_membuf 29724: { 29724: 29724: 29724: 29724: 29724: 29724: struct _Tp2 { _Tp _M_t; }; 29724: 29724: alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; 29724: 29724: __aligned_membuf() = default; 29724: 29724: 29724: __aligned_membuf(std::nullptr_t) { } 29724: 29724: void* 29724: _M_addr() noexcept 29724: { return static_cast(&_M_storage); } 29724: 29724: const void* 29724: _M_addr() const noexcept 29724: { return static_cast(&_M_storage); } 29724: 29724: _Tp* 29724: _M_ptr() noexcept 29724: { return static_cast<_Tp*>(_M_addr()); } 29724: 29724: const _Tp* 29724: _M_ptr() const noexcept 29724: { return static_cast(_M_addr()); } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __aligned_buffer 29724: : std::aligned_storage 29724: { 29724: typename 29724: std::aligned_storage::type _M_storage; 29724: 29724: __aligned_buffer() = default; 29724: 29724: 29724: __aligned_buffer(std::nullptr_t) { } 29724: 29724: void* 29724: _M_addr() noexcept 29724: { 29724: return static_cast(&_M_storage); 29724: } 29724: 29724: const void* 29724: _M_addr() const noexcept 29724: { 29724: return static_cast(&_M_storage); 29724: } 29724: 29724: _Tp* 29724: _M_ptr() noexcept 29724: { return static_cast<_Tp*>(_M_addr()); } 29724: 29724: const _Tp* 29724: _M_ptr() const noexcept 29724: { return static_cast(_M_addr()); } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: } 29724: # 39 "/usr/include/c++/14/bits/hashtable_policy.h" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class _Hashtable; 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hashtable_base; 29724: 29724: 29724: 29724: template 29724: inline typename std::iterator_traits<_Iterator>::difference_type 29724: __distance_fw(_Iterator __first, _Iterator __last, 29724: std::input_iterator_tag) 29724: { return __first != __last ? 1 : 0; } 29724: 29724: template 29724: inline typename std::iterator_traits<_Iterator>::difference_type 29724: __distance_fw(_Iterator __first, _Iterator __last, 29724: std::forward_iterator_tag) 29724: { return std::distance(__first, __last); } 29724: 29724: template 29724: inline typename std::iterator_traits<_Iterator>::difference_type 29724: __distance_fw(_Iterator __first, _Iterator __last) 29724: { return __distance_fw(__first, __last, 29724: std::__iterator_category(__first)); } 29724: 29724: struct _Identity 29724: { 29724: template 29724: _Tp&& 29724: operator()(_Tp&& __x) const noexcept 29724: { return std::forward<_Tp>(__x); } 29724: }; 29724: 29724: struct _Select1st 29724: { 29724: template 29724: struct __1st_type; 29724: 29724: template 29724: struct __1st_type> 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct __1st_type> 29724: { using type = const _Tp; }; 29724: 29724: template 29724: struct __1st_type<_Pair&> 29724: { using type = typename __1st_type<_Pair>::type&; }; 29724: 29724: template 29724: typename __1st_type<_Tp>::type&& 29724: operator()(_Tp&& __x) const noexcept 29724: { return std::forward<_Tp>(__x).first; } 29724: }; 29724: 29724: template 29724: struct _ConvertToValueType; 29724: 29724: template 29724: struct _ConvertToValueType<_Identity, _Value> 29724: { 29724: template 29724: constexpr _Kt&& 29724: operator()(_Kt&& __k) const noexcept 29724: { return std::forward<_Kt>(__k); } 29724: }; 29724: 29724: template 29724: struct _ConvertToValueType<_Select1st, _Value> 29724: { 29724: constexpr _Value&& 29724: operator()(_Value&& __x) const noexcept 29724: { return std::move(__x); } 29724: 29724: constexpr const _Value& 29724: operator()(const _Value& __x) const noexcept 29724: { return __x; } 29724: 29724: template 29724: constexpr std::pair<_Kt, _Val>&& 29724: operator()(std::pair<_Kt, _Val>&& __x) const noexcept 29724: { return std::move(__x); } 29724: 29724: template 29724: constexpr const std::pair<_Kt, _Val>& 29724: operator()(const std::pair<_Kt, _Val>& __x) const noexcept 29724: { return __x; } 29724: }; 29724: 29724: template 29724: struct _NodeBuilder; 29724: 29724: template<> 29724: struct _NodeBuilder<_Select1st> 29724: { 29724: template 29724: static auto 29724: _S_build(_Kt&& __k, _Arg&& __arg, const _NodeGenerator& __node_gen) 29724: -> typename _NodeGenerator::__node_ptr 29724: { 29724: return __node_gen(std::forward<_Kt>(__k), 29724: std::forward<_Arg>(__arg).second); 29724: } 29724: }; 29724: 29724: template<> 29724: struct _NodeBuilder<_Identity> 29724: { 29724: template 29724: static auto 29724: _S_build(_Kt&& __k, _Arg&&, const _NodeGenerator& __node_gen) 29724: -> typename _NodeGenerator::__node_ptr 29724: { return __node_gen(std::forward<_Kt>(__k)); } 29724: }; 29724: 29724: template 29724: struct _NodePtrGuard 29724: { 29724: _HashtableAlloc& _M_h; 29724: _NodePtr _M_ptr; 29724: 29724: ~_NodePtrGuard() 29724: { 29724: if (_M_ptr) 29724: _M_h._M_deallocate_node_ptr(_M_ptr); 29724: } 29724: }; 29724: 29724: template 29724: struct _Hashtable_alloc; 29724: 29724: 29724: 29724: template 29724: struct _ReuseOrAllocNode 29724: { 29724: private: 29724: using __node_alloc_type = _NodeAlloc; 29724: using __hashtable_alloc = _Hashtable_alloc<__node_alloc_type>; 29724: using __node_alloc_traits = 29724: typename __hashtable_alloc::__node_alloc_traits; 29724: 29724: public: 29724: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29724: 29724: _ReuseOrAllocNode(__node_ptr __nodes, __hashtable_alloc& __h) 29724: : _M_nodes(__nodes), _M_h(__h) { } 29724: _ReuseOrAllocNode(const _ReuseOrAllocNode&) = delete; 29724: 29724: ~_ReuseOrAllocNode() 29724: { _M_h._M_deallocate_nodes(_M_nodes); } 29724: 29724: template 29724: __node_ptr 29724: operator()(_Args&&... __args) const 29724: { 29724: if (!_M_nodes) 29724: return _M_h._M_allocate_node(std::forward<_Args>(__args)...); 29724: 29724: __node_ptr __node = _M_nodes; 29724: _M_nodes = _M_nodes->_M_next(); 29724: __node->_M_nxt = nullptr; 29724: auto& __a = _M_h._M_node_allocator(); 29724: __node_alloc_traits::destroy(__a, __node->_M_valptr()); 29724: _NodePtrGuard<__hashtable_alloc, __node_ptr> __guard { _M_h, __node }; 29724: __node_alloc_traits::construct(__a, __node->_M_valptr(), 29724: std::forward<_Args>(__args)...); 29724: __guard._M_ptr = nullptr; 29724: return __node; 29724: } 29724: 29724: private: 29724: mutable __node_ptr _M_nodes; 29724: __hashtable_alloc& _M_h; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct _AllocNode 29724: { 29724: private: 29724: using __hashtable_alloc = _Hashtable_alloc<_NodeAlloc>; 29724: 29724: public: 29724: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29724: 29724: _AllocNode(__hashtable_alloc& __h) 29724: : _M_h(__h) { } 29724: 29724: template 29724: __node_ptr 29724: operator()(_Args&&... __args) const 29724: { return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } 29724: 29724: private: 29724: __hashtable_alloc& _M_h; 29724: }; 29724: # 285 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: template 29724: struct _Hashtable_traits 29724: { 29724: using __hash_cached = __bool_constant<_Cache_hash_code>; 29724: using __constant_iterators = __bool_constant<_Constant_iterators>; 29724: using __unique_keys = __bool_constant<_Unique_keys>; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hashtable_hash_traits 29724: { 29724: static constexpr std::size_t 29724: __small_size_threshold() noexcept 29724: { return std::__is_fast_hash<_Hash>::value ? 0 : 20; } 29724: }; 29724: # 315 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: struct _Hash_node_base 29724: { 29724: _Hash_node_base* _M_nxt; 29724: 29724: _Hash_node_base() noexcept : _M_nxt() { } 29724: 29724: _Hash_node_base(_Hash_node_base* __next) noexcept : _M_nxt(__next) { } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hash_node_value_base 29724: { 29724: typedef _Value value_type; 29724: 29724: __gnu_cxx::__aligned_buffer<_Value> _M_storage; 29724: 29724: [[__gnu__::__always_inline__]] 29724: _Value* 29724: _M_valptr() noexcept 29724: { return _M_storage._M_ptr(); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: const _Value* 29724: _M_valptr() const noexcept 29724: { return _M_storage._M_ptr(); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: _Value& 29724: _M_v() noexcept 29724: { return *_M_valptr(); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: const _Value& 29724: _M_v() const noexcept 29724: { return *_M_valptr(); } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hash_node_code_cache 29724: { }; 29724: 29724: 29724: 29724: 29724: template<> 29724: struct _Hash_node_code_cache 29724: { std::size_t _M_hash_code; }; 29724: 29724: template 29724: struct _Hash_node_value 29724: : _Hash_node_value_base<_Value> 29724: , _Hash_node_code_cache<_Cache_hash_code> 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hash_node 29724: : _Hash_node_base 29724: , _Hash_node_value<_Value, _Cache_hash_code> 29724: { 29724: _Hash_node* 29724: _M_next() const noexcept 29724: { return static_cast<_Hash_node*>(this->_M_nxt); } 29724: }; 29724: 29724: 29724: template 29724: struct _Node_iterator_base 29724: { 29724: using __node_type = _Hash_node<_Value, _Cache_hash_code>; 29724: 29724: __node_type* _M_cur; 29724: 29724: _Node_iterator_base() : _M_cur(nullptr) { } 29724: _Node_iterator_base(__node_type* __p) noexcept 29724: : _M_cur(__p) { } 29724: 29724: void 29724: _M_incr() noexcept 29724: { _M_cur = _M_cur->_M_next(); } 29724: 29724: friend bool 29724: operator==(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 29724: noexcept 29724: { return __x._M_cur == __y._M_cur; } 29724: 29724: 29724: friend bool 29724: operator!=(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 29724: noexcept 29724: { return __x._M_cur != __y._M_cur; } 29724: 29724: }; 29724: 29724: 29724: template 29724: struct _Node_iterator 29724: : public _Node_iterator_base<_Value, __cache> 29724: { 29724: private: 29724: using __base_type = _Node_iterator_base<_Value, __cache>; 29724: using __node_type = typename __base_type::__node_type; 29724: 29724: public: 29724: using value_type = _Value; 29724: using difference_type = std::ptrdiff_t; 29724: using iterator_category = std::forward_iterator_tag; 29724: 29724: using pointer = __conditional_t<__constant_iterators, 29724: const value_type*, value_type*>; 29724: 29724: using reference = __conditional_t<__constant_iterators, 29724: const value_type&, value_type&>; 29724: 29724: _Node_iterator() = default; 29724: 29724: explicit 29724: _Node_iterator(__node_type* __p) noexcept 29724: : __base_type(__p) { } 29724: 29724: reference 29724: operator*() const noexcept 29724: { return this->_M_cur->_M_v(); } 29724: 29724: pointer 29724: operator->() const noexcept 29724: { return this->_M_cur->_M_valptr(); } 29724: 29724: _Node_iterator& 29724: operator++() noexcept 29724: { 29724: this->_M_incr(); 29724: return *this; 29724: } 29724: 29724: _Node_iterator 29724: operator++(int) noexcept 29724: { 29724: _Node_iterator __tmp(*this); 29724: this->_M_incr(); 29724: return __tmp; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Node_const_iterator 29724: : public _Node_iterator_base<_Value, __cache> 29724: { 29724: private: 29724: using __base_type = _Node_iterator_base<_Value, __cache>; 29724: using __node_type = typename __base_type::__node_type; 29724: 29724: public: 29724: typedef _Value value_type; 29724: typedef std::ptrdiff_t difference_type; 29724: typedef std::forward_iterator_tag iterator_category; 29724: 29724: typedef const value_type* pointer; 29724: typedef const value_type& reference; 29724: 29724: _Node_const_iterator() = default; 29724: 29724: explicit 29724: _Node_const_iterator(__node_type* __p) noexcept 29724: : __base_type(__p) { } 29724: 29724: _Node_const_iterator(const _Node_iterator<_Value, __constant_iterators, 29724: __cache>& __x) noexcept 29724: : __base_type(__x._M_cur) { } 29724: 29724: reference 29724: operator*() const noexcept 29724: { return this->_M_cur->_M_v(); } 29724: 29724: pointer 29724: operator->() const noexcept 29724: { return this->_M_cur->_M_valptr(); } 29724: 29724: _Node_const_iterator& 29724: operator++() noexcept 29724: { 29724: this->_M_incr(); 29724: return *this; 29724: } 29724: 29724: _Node_const_iterator 29724: operator++(int) noexcept 29724: { 29724: _Node_const_iterator __tmp(*this); 29724: this->_M_incr(); 29724: return __tmp; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct _Mod_range_hashing 29724: { 29724: typedef std::size_t first_argument_type; 29724: typedef std::size_t second_argument_type; 29724: typedef std::size_t result_type; 29724: 29724: result_type 29724: operator()(first_argument_type __num, 29724: second_argument_type __den) const noexcept 29724: { return __num % __den; } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct _Default_ranged_hash { }; 29724: 29724: 29724: 29724: struct _Prime_rehash_policy 29724: { 29724: using __has_load_factor = true_type; 29724: 29724: _Prime_rehash_policy(float __z = 1.0) noexcept 29724: : _M_max_load_factor(__z), _M_next_resize(0) { } 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_max_load_factor; } 29724: 29724: 29724: std::size_t 29724: _M_next_bkt(std::size_t __n) const; 29724: 29724: 29724: std::size_t 29724: _M_bkt_for_elements(std::size_t __n) const 29724: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 29724: 29724: 29724: 29724: 29724: 29724: std::pair 29724: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 29724: std::size_t __n_ins) const; 29724: 29724: typedef std::size_t _State; 29724: 29724: _State 29724: _M_state() const 29724: { return _M_next_resize; } 29724: 29724: void 29724: _M_reset() noexcept 29724: { _M_next_resize = 0; } 29724: 29724: void 29724: _M_reset(_State __state) 29724: { _M_next_resize = __state; } 29724: 29724: static const std::size_t _S_growth_factor = 2; 29724: 29724: float _M_max_load_factor; 29724: mutable std::size_t _M_next_resize; 29724: }; 29724: 29724: 29724: struct _Mask_range_hashing 29724: { 29724: typedef std::size_t first_argument_type; 29724: typedef std::size_t second_argument_type; 29724: typedef std::size_t result_type; 29724: 29724: result_type 29724: operator()(first_argument_type __num, 29724: second_argument_type __den) const noexcept 29724: { return __num & (__den - 1); } 29724: }; 29724: 29724: 29724: inline std::size_t 29724: __clp2(std::size_t __n) noexcept 29724: { 29724: using __gnu_cxx::__int_traits; 29724: 29724: if (__n < 2) 29724: return __n; 29724: const unsigned __lz = sizeof(size_t) > sizeof(long) 29724: ? __builtin_clzll(__n - 1ull) 29724: : __builtin_clzl(__n - 1ul); 29724: 29724: return (size_t(1) << (__int_traits::__digits - __lz - 1)) << 1; 29724: } 29724: 29724: 29724: 29724: struct _Power2_rehash_policy 29724: { 29724: using __has_load_factor = true_type; 29724: 29724: _Power2_rehash_policy(float __z = 1.0) noexcept 29724: : _M_max_load_factor(__z), _M_next_resize(0) { } 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_max_load_factor; } 29724: 29724: 29724: 29724: std::size_t 29724: _M_next_bkt(std::size_t __n) noexcept 29724: { 29724: if (__n == 0) 29724: 29724: 29724: 29724: return 1; 29724: 29724: const auto __max_width = std::min(sizeof(size_t), 8); 29724: const auto __max_bkt = size_t(1) << (__max_width * 8 - 1); 29724: std::size_t __res = __clp2(__n); 29724: 29724: if (__res == 0) 29724: __res = __max_bkt; 29724: else if (__res == 1) 29724: 29724: 29724: 29724: __res = 2; 29724: 29724: if (__res == __max_bkt) 29724: 29724: 29724: 29724: _M_next_resize = size_t(-1); 29724: else 29724: _M_next_resize 29724: = __builtin_floor(__res * (double)_M_max_load_factor); 29724: 29724: return __res; 29724: } 29724: 29724: 29724: std::size_t 29724: _M_bkt_for_elements(std::size_t __n) const noexcept 29724: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 29724: 29724: 29724: 29724: 29724: 29724: std::pair 29724: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 29724: std::size_t __n_ins) noexcept 29724: { 29724: if (__n_elt + __n_ins > _M_next_resize) 29724: { 29724: 29724: 29724: 29724: double __min_bkts 29724: = std::max(__n_elt + __n_ins, _M_next_resize ? 0 : 11) 29724: / (double)_M_max_load_factor; 29724: if (__min_bkts >= __n_bkt) 29724: return { true, 29724: _M_next_bkt(std::max(__builtin_floor(__min_bkts) + 1, 29724: __n_bkt * _S_growth_factor)) }; 29724: 29724: _M_next_resize 29724: = __builtin_floor(__n_bkt * (double)_M_max_load_factor); 29724: return { false, 0 }; 29724: } 29724: else 29724: return { false, 0 }; 29724: } 29724: 29724: typedef std::size_t _State; 29724: 29724: _State 29724: _M_state() const noexcept 29724: { return _M_next_resize; } 29724: 29724: void 29724: _M_reset() noexcept 29724: { _M_next_resize = 0; } 29724: 29724: void 29724: _M_reset(_State __state) noexcept 29724: { _M_next_resize = __state; } 29724: 29724: static const std::size_t _S_growth_factor = 2; 29724: 29724: float _M_max_load_factor; 29724: std::size_t _M_next_resize; 29724: }; 29724: 29724: template 29724: struct _RehashStateGuard 29724: { 29724: _RehashPolicy* _M_guarded_obj; 29724: typename _RehashPolicy::_State _M_prev_state; 29724: 29724: _RehashStateGuard(_RehashPolicy& __policy) 29724: : _M_guarded_obj(std::__addressof(__policy)) 29724: , _M_prev_state(__policy._M_state()) 29724: { } 29724: _RehashStateGuard(const _RehashStateGuard&) = delete; 29724: 29724: ~_RehashStateGuard() 29724: { 29724: if (_M_guarded_obj) 29724: _M_guarded_obj->_M_reset(_M_prev_state); 29724: } 29724: }; 29724: # 761 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: template 29724: struct _Map_base { }; 29724: 29724: 29724: template 29724: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29724: { 29724: using mapped_type = _Val; 29724: }; 29724: 29724: 29724: template 29724: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 29724: { 29724: private: 29724: using __hashtable_base = _Hashtable_base<_Key, pair, 29724: _Select1st, _Equal, _Hash, 29724: _RangeHash, _Unused, 29724: _Traits>; 29724: 29724: using __hashtable = _Hashtable<_Key, pair, _Alloc, 29724: _Select1st, _Equal, _Hash, _RangeHash, 29724: _Unused, _RehashPolicy, _Traits>; 29724: 29724: using __hash_code = typename __hashtable_base::__hash_code; 29724: 29724: public: 29724: using key_type = typename __hashtable_base::key_type; 29724: using mapped_type = _Val; 29724: 29724: mapped_type& 29724: operator[](const key_type& __k); 29724: 29724: mapped_type& 29724: operator[](key_type&& __k); 29724: 29724: 29724: 29724: mapped_type& 29724: at(const key_type& __k) 29724: { 29724: auto __ite = static_cast<__hashtable*>(this)->find(__k); 29724: if (!__ite._M_cur) 29724: __throw_out_of_range(("unordered_map::at")); 29724: return __ite->second; 29724: } 29724: 29724: const mapped_type& 29724: at(const key_type& __k) const 29724: { 29724: auto __ite = static_cast(this)->find(__k); 29724: if (!__ite._M_cur) 29724: __throw_out_of_range(("unordered_map::at")); 29724: return __ite->second; 29724: } 29724: }; 29724: 29724: template 29724: auto 29724: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29724: operator[](const key_type& __k) 29724: -> mapped_type& 29724: { 29724: __hashtable* __h = static_cast<__hashtable*>(this); 29724: __hash_code __code = __h->_M_hash_code(__k); 29724: std::size_t __bkt = __h->_M_bucket_index(__code); 29724: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 29724: return __node->_M_v().second; 29724: 29724: typename __hashtable::_Scoped_node __node { 29724: __h, 29724: std::piecewise_construct, 29724: std::tuple(__k), 29724: std::tuple<>() 29724: }; 29724: auto __pos 29724: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 29724: __node._M_node = nullptr; 29724: return __pos->second; 29724: } 29724: 29724: template 29724: auto 29724: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29724: operator[](key_type&& __k) 29724: -> mapped_type& 29724: { 29724: __hashtable* __h = static_cast<__hashtable*>(this); 29724: __hash_code __code = __h->_M_hash_code(__k); 29724: std::size_t __bkt = __h->_M_bucket_index(__code); 29724: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 29724: return __node->_M_v().second; 29724: 29724: typename __hashtable::_Scoped_node __node { 29724: __h, 29724: std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::tuple<>() 29724: }; 29724: auto __pos 29724: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 29724: __node._M_node = nullptr; 29724: return __pos->second; 29724: } 29724: 29724: 29724: template 29724: struct _Map_base, 29724: _Alloc, _Select1st, _Equal, _Hash, 29724: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 29724: : _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, _Hash, 29724: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Insert_base 29724: { 29724: protected: 29724: using __hashtable_base = _Hashtable_base<_Key, _Value, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, 29724: _Unused, _Traits>; 29724: 29724: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, 29724: _Unused, _RehashPolicy, _Traits>; 29724: 29724: using __hash_cached = typename _Traits::__hash_cached; 29724: using __constant_iterators = typename _Traits::__constant_iterators; 29724: 29724: using __hashtable_alloc = _Hashtable_alloc< 29724: __alloc_rebind<_Alloc, _Hash_node<_Value, 29724: __hash_cached::value>>>; 29724: 29724: using value_type = typename __hashtable_base::value_type; 29724: using size_type = typename __hashtable_base::size_type; 29724: 29724: using __unique_keys = typename _Traits::__unique_keys; 29724: using __node_alloc_type = typename __hashtable_alloc::__node_alloc_type; 29724: using __node_gen_type = _AllocNode<__node_alloc_type>; 29724: 29724: __hashtable& 29724: _M_conjure_hashtable() 29724: { return *(static_cast<__hashtable*>(this)); } 29724: 29724: template 29724: void 29724: _M_insert_range(_InputIterator __first, _InputIterator __last, 29724: const _NodeGetter&, true_type __uks); 29724: 29724: template 29724: void 29724: _M_insert_range(_InputIterator __first, _InputIterator __last, 29724: const _NodeGetter&, false_type __uks); 29724: 29724: public: 29724: using iterator = _Node_iterator<_Value, __constant_iterators::value, 29724: __hash_cached::value>; 29724: 29724: using const_iterator = _Node_const_iterator<_Value, 29724: __constant_iterators::value, 29724: __hash_cached::value>; 29724: 29724: using __ireturn_type = __conditional_t<__unique_keys::value, 29724: std::pair, 29724: iterator>; 29724: 29724: __ireturn_type 29724: insert(const value_type& __v) 29724: { 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: __node_gen_type __node_gen(__h); 29724: return __h._M_insert(__v, __node_gen, __unique_keys{}); 29724: } 29724: 29724: iterator 29724: insert(const_iterator __hint, const value_type& __v) 29724: { 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: __node_gen_type __node_gen(__h); 29724: return __h._M_insert(__hint, __v, __node_gen, __unique_keys{}); 29724: } 29724: 29724: 29724: template 29724: std::pair 29724: try_emplace(const_iterator, _KType&& __k, _Args&&... __args) 29724: { 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: auto __code = __h._M_hash_code(__k); 29724: std::size_t __bkt = __h._M_bucket_index(__code); 29724: if (auto __node = __h._M_find_node(__bkt, __k, __code)) 29724: return { iterator(__node), false }; 29724: 29724: typename __hashtable::_Scoped_node __node { 29724: &__h, 29724: std::piecewise_construct, 29724: std::forward_as_tuple(std::forward<_KType>(__k)), 29724: std::forward_as_tuple(std::forward<_Args>(__args)...) 29724: }; 29724: auto __it 29724: = __h._M_insert_unique_node(__bkt, __code, __node._M_node); 29724: __node._M_node = nullptr; 29724: return { __it, true }; 29724: } 29724: 29724: 29724: void 29724: insert(initializer_list __l) 29724: { this->insert(__l.begin(), __l.end()); } 29724: 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: __node_gen_type __node_gen(__h); 29724: return _M_insert_range(__first, __last, __node_gen, __unique_keys{}); 29724: } 29724: }; 29724: 29724: template 29724: template 29724: void 29724: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>:: 29724: _M_insert_range(_InputIterator __first, _InputIterator __last, 29724: const _NodeGetter& __node_gen, true_type __uks) 29724: { 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: for (; __first != __last; ++__first) 29724: __h._M_insert(*__first, __node_gen, __uks); 29724: } 29724: 29724: template 29724: template 29724: void 29724: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>:: 29724: _M_insert_range(_InputIterator __first, _InputIterator __last, 29724: const _NodeGetter& __node_gen, false_type __uks) 29724: { 29724: using __rehash_guard_t = typename __hashtable::__rehash_guard_t; 29724: using __pair_type = std::pair; 29724: 29724: size_type __n_elt = __detail::__distance_fw(__first, __last); 29724: if (__n_elt == 0) 29724: return; 29724: 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: __rehash_guard_t __rehash_guard(__h._M_rehash_policy); 29724: __pair_type __do_rehash 29724: = __h._M_rehash_policy._M_need_rehash(__h._M_bucket_count, 29724: __h._M_element_count, 29724: __n_elt); 29724: 29724: if (__do_rehash.first) 29724: __h._M_rehash(__do_rehash.second, __uks); 29724: 29724: __rehash_guard._M_guarded_obj = nullptr; 29724: for (; __first != __last; ++__first) 29724: __h._M_insert(*__first, __node_gen, __uks); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Insert; 29724: 29724: 29724: template 29724: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits, true> 29724: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 29724: { 29724: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: using value_type = typename __base_type::value_type; 29724: using iterator = typename __base_type::iterator; 29724: using const_iterator = typename __base_type::const_iterator; 29724: using __ireturn_type = typename __base_type::__ireturn_type; 29724: 29724: using __unique_keys = typename __base_type::__unique_keys; 29724: using __hashtable = typename __base_type::__hashtable; 29724: using __node_gen_type = typename __base_type::__node_gen_type; 29724: 29724: using __base_type::insert; 29724: 29724: __ireturn_type 29724: insert(value_type&& __v) 29724: { 29724: __hashtable& __h = this->_M_conjure_hashtable(); 29724: __node_gen_type __node_gen(__h); 29724: return __h._M_insert(std::move(__v), __node_gen, __unique_keys{}); 29724: } 29724: 29724: iterator 29724: insert(const_iterator __hint, value_type&& __v) 29724: { 29724: __hashtable& __h = this->_M_conjure_hashtable(); 29724: __node_gen_type __node_gen(__h); 29724: return __h._M_insert(__hint, std::move(__v), __node_gen, 29724: __unique_keys{}); 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29724: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 29724: { 29724: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: using value_type = typename __base_type::value_type; 29724: using iterator = typename __base_type::iterator; 29724: using const_iterator = typename __base_type::const_iterator; 29724: 29724: using __unique_keys = typename __base_type::__unique_keys; 29724: using __hashtable = typename __base_type::__hashtable; 29724: using __ireturn_type = typename __base_type::__ireturn_type; 29724: 29724: using __base_type::insert; 29724: 29724: template 29724: using __is_cons = std::is_constructible; 29724: 29724: template 29724: using _IFcons = std::enable_if<__is_cons<_Pair>::value>; 29724: 29724: template 29724: using _IFconsp = typename _IFcons<_Pair>::type; 29724: 29724: template> 29724: __ireturn_type 29724: insert(_Pair&& __v) 29724: { 29724: __hashtable& __h = this->_M_conjure_hashtable(); 29724: return __h._M_emplace(__unique_keys{}, std::forward<_Pair>(__v)); 29724: } 29724: 29724: template> 29724: iterator 29724: insert(const_iterator __hint, _Pair&& __v) 29724: { 29724: __hashtable& __h = this->_M_conjure_hashtable(); 29724: return __h._M_emplace(__hint, __unique_keys{}, 29724: std::forward<_Pair>(__v)); 29724: } 29724: }; 29724: 29724: template 29724: using __has_load_factor = typename _Policy::__has_load_factor; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: struct _Rehash_base; 29724: 29724: 29724: template 29724: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 29724: false_type > 29724: { 29724: }; 29724: 29724: 29724: template 29724: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 29724: true_type > 29724: { 29724: private: 29724: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: public: 29724: float 29724: max_load_factor() const noexcept 29724: { 29724: const __hashtable* __this = static_cast(this); 29724: return __this->__rehash_policy().max_load_factor(); 29724: } 29724: 29724: void 29724: max_load_factor(float __z) 29724: { 29724: __hashtable* __this = static_cast<__hashtable*>(this); 29724: __this->__rehash_policy(_RehashPolicy(__z)); 29724: } 29724: 29724: void 29724: reserve(std::size_t __n) 29724: { 29724: __hashtable* __this = static_cast<__hashtable*>(this); 29724: __this->rehash(__this->__rehash_policy()._M_bkt_for_elements(__n)); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hashtable_ebo_helper; 29724: 29724: 29724: template 29724: struct _Hashtable_ebo_helper<_Nm, _Tp, true> 29724: : private _Tp 29724: { 29724: _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } 29724: 29724: template 29724: _Hashtable_ebo_helper(_OtherTp&& __tp) 29724: : _Tp(std::forward<_OtherTp>(__tp)) 29724: { } 29724: 29724: const _Tp& _M_cget() const { return static_cast(*this); } 29724: _Tp& _M_get() { return static_cast<_Tp&>(*this); } 29724: }; 29724: 29724: 29724: template 29724: struct _Hashtable_ebo_helper<_Nm, _Tp, false> 29724: { 29724: _Hashtable_ebo_helper() = default; 29724: 29724: template 29724: _Hashtable_ebo_helper(_OtherTp&& __tp) 29724: : _M_tp(std::forward<_OtherTp>(__tp)) 29724: { } 29724: 29724: const _Tp& _M_cget() const { return _M_tp; } 29724: _Tp& _M_get() { return _M_tp; } 29724: 29724: private: 29724: _Tp _M_tp{}; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Local_iterator_base; 29724: # 1303 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: template 29724: struct _Hash_code_base 29724: : private _Hashtable_ebo_helper<1, _Hash> 29724: { 29724: private: 29724: using __ebo_hash = _Hashtable_ebo_helper<1, _Hash>; 29724: 29724: 29724: friend struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, false>; 29724: 29724: public: 29724: typedef _Hash hasher; 29724: 29724: hasher 29724: hash_function() const 29724: { return _M_hash(); } 29724: 29724: protected: 29724: typedef std::size_t __hash_code; 29724: 29724: 29724: 29724: _Hash_code_base() = default; 29724: 29724: _Hash_code_base(const _Hash& __hash) : __ebo_hash(__hash) { } 29724: 29724: __hash_code 29724: _M_hash_code(const _Key& __k) const 29724: { 29724: static_assert(__is_invocable{}, 29724: "hash function must be invocable with an argument of key type"); 29724: return _M_hash()(__k); 29724: } 29724: 29724: template 29724: __hash_code 29724: _M_hash_code_tr(const _Kt& __k) const 29724: { 29724: static_assert(__is_invocable{}, 29724: "hash function must be invocable with an argument of key type"); 29724: return _M_hash()(__k); 29724: } 29724: 29724: __hash_code 29724: _M_hash_code(const _Hash_node_value<_Value, false>& __n) const 29724: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 29724: 29724: __hash_code 29724: _M_hash_code(const _Hash_node_value<_Value, true>& __n) const 29724: { return __n._M_hash_code; } 29724: 29724: std::size_t 29724: _M_bucket_index(__hash_code __c, std::size_t __bkt_count) const 29724: { return _RangeHash{}(__c, __bkt_count); } 29724: 29724: std::size_t 29724: _M_bucket_index(const _Hash_node_value<_Value, false>& __n, 29724: std::size_t __bkt_count) const 29724: noexcept( noexcept(declval()(declval())) 29724: && noexcept(declval()((__hash_code)0, 29724: (std::size_t)0)) ) 29724: { 29724: return _RangeHash{}(_M_hash_code(_ExtractKey{}(__n._M_v())), 29724: __bkt_count); 29724: } 29724: 29724: std::size_t 29724: _M_bucket_index(const _Hash_node_value<_Value, true>& __n, 29724: std::size_t __bkt_count) const 29724: noexcept( noexcept(declval()((__hash_code)0, 29724: (std::size_t)0)) ) 29724: { return _RangeHash{}(__n._M_hash_code, __bkt_count); } 29724: 29724: void 29724: _M_store_code(_Hash_node_code_cache&, __hash_code) const 29724: { } 29724: 29724: void 29724: _M_copy_code(_Hash_node_code_cache&, 29724: const _Hash_node_code_cache&) const 29724: { } 29724: 29724: void 29724: _M_store_code(_Hash_node_code_cache& __n, __hash_code __c) const 29724: { __n._M_hash_code = __c; } 29724: 29724: void 29724: _M_copy_code(_Hash_node_code_cache& __to, 29724: const _Hash_node_code_cache& __from) const 29724: { __to._M_hash_code = __from._M_hash_code; } 29724: 29724: void 29724: _M_swap(_Hash_code_base& __x) 29724: { std::swap(__ebo_hash::_M_get(), __x.__ebo_hash::_M_get()); } 29724: 29724: const _Hash& 29724: _M_hash() const { return __ebo_hash::_M_cget(); } 29724: }; 29724: 29724: 29724: template 29724: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, true> 29724: : public _Node_iterator_base<_Value, true> 29724: { 29724: protected: 29724: using __base_node_iter = _Node_iterator_base<_Value, true>; 29724: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, true>; 29724: 29724: _Local_iterator_base() = default; 29724: _Local_iterator_base(const __hash_code_base&, 29724: _Hash_node<_Value, true>* __p, 29724: std::size_t __bkt, std::size_t __bkt_count) 29724: : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 29724: { } 29724: 29724: void 29724: _M_incr() 29724: { 29724: __base_node_iter::_M_incr(); 29724: if (this->_M_cur) 29724: { 29724: std::size_t __bkt 29724: = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count); 29724: if (__bkt != _M_bucket) 29724: this->_M_cur = nullptr; 29724: } 29724: } 29724: 29724: std::size_t _M_bucket; 29724: std::size_t _M_bucket_count; 29724: 29724: public: 29724: std::size_t 29724: _M_get_bucket() const { return _M_bucket; } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template::value> 29724: struct _Hash_code_storage 29724: { 29724: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 29724: 29724: _Tp* 29724: _M_h() { return _M_storage._M_ptr(); } 29724: 29724: const _Tp* 29724: _M_h() const { return _M_storage._M_ptr(); } 29724: }; 29724: 29724: 29724: template 29724: struct _Hash_code_storage<_Tp, true> 29724: { 29724: static_assert( std::is_empty<_Tp>::value, "Type must be empty" ); 29724: 29724: 29724: 29724: _Tp* 29724: _M_h() { return reinterpret_cast<_Tp*>(this); } 29724: 29724: const _Tp* 29724: _M_h() const { return reinterpret_cast(this); } 29724: }; 29724: 29724: template 29724: using __hash_code_for_local_iter 29724: = _Hash_code_storage<_Hash_code_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, false>>; 29724: 29724: 29724: template 29724: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, false> 29724: : __hash_code_for_local_iter<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 29724: _Unused> 29724: , _Node_iterator_base<_Value, false> 29724: { 29724: protected: 29724: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, false>; 29724: using __node_iter_base = _Node_iterator_base<_Value, false>; 29724: 29724: _Local_iterator_base() : _M_bucket_count(-1) { } 29724: 29724: _Local_iterator_base(const __hash_code_base& __base, 29724: _Hash_node<_Value, false>* __p, 29724: std::size_t __bkt, std::size_t __bkt_count) 29724: : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 29724: { _M_init(__base); } 29724: 29724: ~_Local_iterator_base() 29724: { 29724: if (_M_bucket_count != size_t(-1)) 29724: _M_destroy(); 29724: } 29724: 29724: _Local_iterator_base(const _Local_iterator_base& __iter) 29724: : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket) 29724: , _M_bucket_count(__iter._M_bucket_count) 29724: { 29724: if (_M_bucket_count != size_t(-1)) 29724: _M_init(*__iter._M_h()); 29724: } 29724: 29724: _Local_iterator_base& 29724: operator=(const _Local_iterator_base& __iter) 29724: { 29724: if (_M_bucket_count != -1) 29724: _M_destroy(); 29724: this->_M_cur = __iter._M_cur; 29724: _M_bucket = __iter._M_bucket; 29724: _M_bucket_count = __iter._M_bucket_count; 29724: if (_M_bucket_count != -1) 29724: _M_init(*__iter._M_h()); 29724: return *this; 29724: } 29724: 29724: void 29724: _M_incr() 29724: { 29724: __node_iter_base::_M_incr(); 29724: if (this->_M_cur) 29724: { 29724: std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur, 29724: _M_bucket_count); 29724: if (__bkt != _M_bucket) 29724: this->_M_cur = nullptr; 29724: } 29724: } 29724: 29724: std::size_t _M_bucket; 29724: std::size_t _M_bucket_count; 29724: 29724: void 29724: _M_init(const __hash_code_base& __base) 29724: { ::new(this->_M_h()) __hash_code_base(__base); } 29724: 29724: void 29724: _M_destroy() { this->_M_h()->~__hash_code_base(); } 29724: 29724: public: 29724: std::size_t 29724: _M_get_bucket() const { return _M_bucket; } 29724: }; 29724: 29724: 29724: template 29724: struct _Local_iterator 29724: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, __cache> 29724: { 29724: private: 29724: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, __cache>; 29724: using __hash_code_base = typename __base_type::__hash_code_base; 29724: 29724: public: 29724: using value_type = _Value; 29724: using pointer = __conditional_t<__constant_iterators, 29724: const value_type*, value_type*>; 29724: using reference = __conditional_t<__constant_iterators, 29724: const value_type&, value_type&>; 29724: using difference_type = ptrdiff_t; 29724: using iterator_category = forward_iterator_tag; 29724: 29724: _Local_iterator() = default; 29724: 29724: _Local_iterator(const __hash_code_base& __base, 29724: _Hash_node<_Value, __cache>* __n, 29724: std::size_t __bkt, std::size_t __bkt_count) 29724: : __base_type(__base, __n, __bkt, __bkt_count) 29724: { } 29724: 29724: reference 29724: operator*() const 29724: { return this->_M_cur->_M_v(); } 29724: 29724: pointer 29724: operator->() const 29724: { return this->_M_cur->_M_valptr(); } 29724: 29724: _Local_iterator& 29724: operator++() 29724: { 29724: this->_M_incr(); 29724: return *this; 29724: } 29724: 29724: _Local_iterator 29724: operator++(int) 29724: { 29724: _Local_iterator __tmp(*this); 29724: this->_M_incr(); 29724: return __tmp; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Local_const_iterator 29724: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, __cache> 29724: { 29724: private: 29724: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, __cache>; 29724: using __hash_code_base = typename __base_type::__hash_code_base; 29724: 29724: public: 29724: typedef _Value value_type; 29724: typedef const value_type* pointer; 29724: typedef const value_type& reference; 29724: typedef std::ptrdiff_t difference_type; 29724: typedef std::forward_iterator_tag iterator_category; 29724: 29724: _Local_const_iterator() = default; 29724: 29724: _Local_const_iterator(const __hash_code_base& __base, 29724: _Hash_node<_Value, __cache>* __n, 29724: std::size_t __bkt, std::size_t __bkt_count) 29724: : __base_type(__base, __n, __bkt, __bkt_count) 29724: { } 29724: 29724: _Local_const_iterator(const _Local_iterator<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, 29724: __constant_iterators, 29724: __cache>& __x) 29724: : __base_type(__x) 29724: { } 29724: 29724: reference 29724: operator*() const 29724: { return this->_M_cur->_M_v(); } 29724: 29724: pointer 29724: operator->() const 29724: { return this->_M_cur->_M_valptr(); } 29724: 29724: _Local_const_iterator& 29724: operator++() 29724: { 29724: this->_M_incr(); 29724: return *this; 29724: } 29724: 29724: _Local_const_iterator 29724: operator++(int) 29724: { 29724: _Local_const_iterator __tmp(*this); 29724: this->_M_incr(); 29724: return __tmp; 29724: } 29724: }; 29724: # 1682 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: template 29724: struct _Hashtable_base 29724: : public _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 29724: _Unused, _Traits::__hash_cached::value>, 29724: private _Hashtable_ebo_helper<0, _Equal> 29724: { 29724: public: 29724: typedef _Key key_type; 29724: typedef _Value value_type; 29724: typedef _Equal key_equal; 29724: typedef std::size_t size_type; 29724: typedef std::ptrdiff_t difference_type; 29724: 29724: using __traits_type = _Traits; 29724: using __hash_cached = typename __traits_type::__hash_cached; 29724: 29724: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, 29724: __hash_cached::value>; 29724: 29724: using __hash_code = typename __hash_code_base::__hash_code; 29724: 29724: private: 29724: using _EqualEBO = _Hashtable_ebo_helper<0, _Equal>; 29724: 29724: static bool 29724: _S_equals(__hash_code, const _Hash_node_code_cache&) 29724: { return true; } 29724: 29724: static bool 29724: _S_node_equals(const _Hash_node_code_cache&, 29724: const _Hash_node_code_cache&) 29724: { return true; } 29724: 29724: static bool 29724: _S_equals(__hash_code __c, const _Hash_node_code_cache& __n) 29724: { return __c == __n._M_hash_code; } 29724: 29724: static bool 29724: _S_node_equals(const _Hash_node_code_cache& __lhn, 29724: const _Hash_node_code_cache& __rhn) 29724: { return __lhn._M_hash_code == __rhn._M_hash_code; } 29724: 29724: protected: 29724: _Hashtable_base() = default; 29724: 29724: _Hashtable_base(const _Hash& __hash, const _Equal& __eq) 29724: : __hash_code_base(__hash), _EqualEBO(__eq) 29724: { } 29724: 29724: bool 29724: _M_key_equals(const _Key& __k, 29724: const _Hash_node_value<_Value, 29724: __hash_cached::value>& __n) const 29724: { 29724: static_assert(__is_invocable{}, 29724: "key equality predicate must be invocable with two arguments of " 29724: "key type"); 29724: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 29724: } 29724: 29724: template 29724: bool 29724: _M_key_equals_tr(const _Kt& __k, 29724: const _Hash_node_value<_Value, 29724: __hash_cached::value>& __n) const 29724: { 29724: static_assert( 29724: __is_invocable{}, 29724: "key equality predicate must be invocable with two arguments of " 29724: "key type"); 29724: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 29724: } 29724: 29724: bool 29724: _M_equals(const _Key& __k, __hash_code __c, 29724: const _Hash_node_value<_Value, __hash_cached::value>& __n) const 29724: { return _S_equals(__c, __n) && _M_key_equals(__k, __n); } 29724: 29724: template 29724: bool 29724: _M_equals_tr(const _Kt& __k, __hash_code __c, 29724: const _Hash_node_value<_Value, 29724: __hash_cached::value>& __n) const 29724: { return _S_equals(__c, __n) && _M_key_equals_tr(__k, __n); } 29724: 29724: bool 29724: _M_node_equals( 29724: const _Hash_node_value<_Value, __hash_cached::value>& __lhn, 29724: const _Hash_node_value<_Value, __hash_cached::value>& __rhn) const 29724: { 29724: return _S_node_equals(__lhn, __rhn) 29724: && _M_key_equals(_ExtractKey{}(__lhn._M_v()), __rhn); 29724: } 29724: 29724: void 29724: _M_swap(_Hashtable_base& __x) 29724: { 29724: __hash_code_base::_M_swap(__x); 29724: std::swap(_EqualEBO::_M_get(), __x._EqualEBO::_M_get()); 29724: } 29724: 29724: const _Equal& 29724: _M_eq() const { return _EqualEBO::_M_cget(); } 29724: }; 29724: # 1798 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: template 29724: struct _Equality; 29724: 29724: 29724: template 29724: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 29724: { 29724: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: bool 29724: _M_equal(const __hashtable&) const; 29724: }; 29724: 29724: template 29724: bool 29724: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29724: _M_equal(const __hashtable& __other) const 29724: { 29724: using __node_ptr = typename __hashtable::__node_ptr; 29724: const __hashtable* __this = static_cast(this); 29724: if (__this->size() != __other.size()) 29724: return false; 29724: 29724: for (auto __x_n = __this->_M_begin(); __x_n; __x_n = __x_n->_M_next()) 29724: { 29724: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 29724: auto __prev_n = __other._M_buckets[__ybkt]; 29724: if (!__prev_n) 29724: return false; 29724: 29724: for (__node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt);; 29724: __n = __n->_M_next()) 29724: { 29724: if (__n->_M_v() == __x_n->_M_v()) 29724: break; 29724: 29724: if (!__n->_M_nxt 29724: || __other._M_bucket_index(*__n->_M_next()) != __ybkt) 29724: return false; 29724: } 29724: } 29724: 29724: return true; 29724: } 29724: 29724: 29724: template 29724: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29724: { 29724: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: bool 29724: _M_equal(const __hashtable&) const; 29724: }; 29724: 29724: template 29724: bool 29724: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>:: 29724: _M_equal(const __hashtable& __other) const 29724: { 29724: using __node_ptr = typename __hashtable::__node_ptr; 29724: using const_iterator = typename __hashtable::const_iterator; 29724: const __hashtable* __this = static_cast(this); 29724: if (__this->size() != __other.size()) 29724: return false; 29724: 29724: for (auto __x_n = __this->_M_begin(); __x_n;) 29724: { 29724: std::size_t __x_count = 1; 29724: auto __x_n_end = __x_n->_M_next(); 29724: for (; __x_n_end 29724: && __this->key_eq()(_ExtractKey{}(__x_n->_M_v()), 29724: _ExtractKey{}(__x_n_end->_M_v())); 29724: __x_n_end = __x_n_end->_M_next()) 29724: ++__x_count; 29724: 29724: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 29724: auto __y_prev_n = __other._M_buckets[__ybkt]; 29724: if (!__y_prev_n) 29724: return false; 29724: 29724: __node_ptr __y_n = static_cast<__node_ptr>(__y_prev_n->_M_nxt); 29724: for (;;) 29724: { 29724: if (__this->key_eq()(_ExtractKey{}(__y_n->_M_v()), 29724: _ExtractKey{}(__x_n->_M_v()))) 29724: break; 29724: 29724: auto __y_ref_n = __y_n; 29724: for (__y_n = __y_n->_M_next(); __y_n; __y_n = __y_n->_M_next()) 29724: if (!__other._M_node_equals(*__y_ref_n, *__y_n)) 29724: break; 29724: 29724: if (!__y_n || __other._M_bucket_index(*__y_n) != __ybkt) 29724: return false; 29724: } 29724: 29724: auto __y_n_end = __y_n; 29724: for (; __y_n_end; __y_n_end = __y_n_end->_M_next()) 29724: if (--__x_count == 0) 29724: break; 29724: 29724: if (__x_count != 0) 29724: return false; 29724: 29724: const_iterator __itx(__x_n), __itx_end(__x_n_end); 29724: const_iterator __ity(__y_n); 29724: if (!std::is_permutation(__itx, __itx_end, __ity)) 29724: return false; 29724: 29724: __x_n = __x_n_end; 29724: } 29724: return true; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hashtable_alloc : private _Hashtable_ebo_helper<0, _NodeAlloc> 29724: { 29724: private: 29724: using __ebo_node_alloc = _Hashtable_ebo_helper<0, _NodeAlloc>; 29724: 29724: template 29724: struct __get_value_type; 29724: template 29724: struct __get_value_type<_Hash_node<_Val, _Cache_hash_code>> 29724: { using type = _Val; }; 29724: 29724: public: 29724: using __node_type = typename _NodeAlloc::value_type; 29724: using __node_alloc_type = _NodeAlloc; 29724: 29724: using __node_alloc_traits = __gnu_cxx::__alloc_traits<__node_alloc_type>; 29724: 29724: using __value_alloc_traits = typename __node_alloc_traits::template 29724: rebind_traits::type>; 29724: 29724: using __node_ptr = __node_type*; 29724: using __node_base = _Hash_node_base; 29724: using __node_base_ptr = __node_base*; 29724: using __buckets_alloc_type = 29724: __alloc_rebind<__node_alloc_type, __node_base_ptr>; 29724: using __buckets_alloc_traits = std::allocator_traits<__buckets_alloc_type>; 29724: using __buckets_ptr = __node_base_ptr*; 29724: 29724: _Hashtable_alloc() = default; 29724: _Hashtable_alloc(const _Hashtable_alloc&) = default; 29724: _Hashtable_alloc(_Hashtable_alloc&&) = default; 29724: 29724: template 29724: _Hashtable_alloc(_Alloc&& __a) 29724: : __ebo_node_alloc(std::forward<_Alloc>(__a)) 29724: { } 29724: 29724: __node_alloc_type& 29724: _M_node_allocator() 29724: { return __ebo_node_alloc::_M_get(); } 29724: 29724: const __node_alloc_type& 29724: _M_node_allocator() const 29724: { return __ebo_node_alloc::_M_cget(); } 29724: 29724: 29724: template 29724: __node_ptr 29724: _M_allocate_node(_Args&&... __args); 29724: 29724: 29724: void 29724: _M_deallocate_node(__node_ptr __n); 29724: 29724: 29724: void 29724: _M_deallocate_node_ptr(__node_ptr __n); 29724: 29724: 29724: 29724: void 29724: _M_deallocate_nodes(__node_ptr __n); 29724: 29724: __buckets_ptr 29724: _M_allocate_buckets(std::size_t __bkt_count); 29724: 29724: void 29724: _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count); 29724: }; 29724: 29724: 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&... __args) 29724: -> __node_ptr 29724: { 29724: auto& __alloc = _M_node_allocator(); 29724: auto __nptr = __node_alloc_traits::allocate(__alloc, 1); 29724: __node_ptr __n = std::__to_address(__nptr); 29724: try 29724: { 29724: ::new ((void*)__n) __node_type; 29724: __node_alloc_traits::construct(__alloc, __n->_M_valptr(), 29724: std::forward<_Args>(__args)...); 29724: return __n; 29724: } 29724: catch(...) 29724: { 29724: __n->~__node_type(); 29724: __node_alloc_traits::deallocate(__alloc, __nptr, 1); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_ptr __n) 29724: { 29724: __node_alloc_traits::destroy(_M_node_allocator(), __n->_M_valptr()); 29724: _M_deallocate_node_ptr(__n); 29724: } 29724: 29724: template 29724: void 29724: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node_ptr(__node_ptr __n) 29724: { 29724: typedef typename __node_alloc_traits::pointer _Ptr; 29724: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__n); 29724: __n->~__node_type(); 29724: __node_alloc_traits::deallocate(_M_node_allocator(), __ptr, 1); 29724: } 29724: 29724: template 29724: void 29724: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_nodes(__node_ptr __n) 29724: { 29724: while (__n) 29724: { 29724: __node_ptr __tmp = __n; 29724: __n = __n->_M_next(); 29724: _M_deallocate_node(__tmp); 29724: } 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count) 29724: -> __buckets_ptr 29724: { 29724: __buckets_alloc_type __alloc(_M_node_allocator()); 29724: 29724: auto __ptr = __buckets_alloc_traits::allocate(__alloc, __bkt_count); 29724: __buckets_ptr __p = std::__to_address(__ptr); 29724: __builtin_memset(__p, 0, __bkt_count * sizeof(__node_base_ptr)); 29724: return __p; 29724: } 29724: 29724: template 29724: void 29724: _Hashtable_alloc<_NodeAlloc>:: 29724: _M_deallocate_buckets(__buckets_ptr __bkts, 29724: std::size_t __bkt_count) 29724: { 29724: typedef typename __buckets_alloc_traits::pointer _Ptr; 29724: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__bkts); 29724: __buckets_alloc_type __alloc(_M_node_allocator()); 29724: __buckets_alloc_traits::deallocate(__alloc, __ptr, __bkt_count); 29724: } 29724: 29724: 29724: } 29724: 29724: 29724: } 29724: # 36 "/usr/include/c++/14/bits/hashtable.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/enable_special_members.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/enable_special_members.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/enable_special_members.h" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: struct _Enable_default_constructor_tag 29724: { 29724: explicit constexpr _Enable_default_constructor_tag() = default; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Enable_default_constructor 29724: { 29724: constexpr _Enable_default_constructor() noexcept = default; 29724: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 29724: noexcept = default; 29724: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 29724: noexcept = default; 29724: _Enable_default_constructor& 29724: operator=(_Enable_default_constructor const&) noexcept = default; 29724: _Enable_default_constructor& 29724: operator=(_Enable_default_constructor&&) noexcept = default; 29724: 29724: 29724: constexpr explicit 29724: _Enable_default_constructor(_Enable_default_constructor_tag) { } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Enable_destructor { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Enable_copy_move { }; 29724: # 96 "/usr/include/c++/14/bits/enable_special_members.h" 3 29724: template 29724: struct _Enable_special_members 29724: : private _Enable_default_constructor<_Default, _Tag>, 29724: private _Enable_destructor<_Destructor, _Tag>, 29724: private _Enable_copy_move<_Copy, _CopyAssignment, 29724: _Move, _MoveAssignment, 29724: _Tag> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct _Enable_default_constructor 29724: { 29724: constexpr _Enable_default_constructor() noexcept = delete; 29724: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 29724: noexcept = default; 29724: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 29724: noexcept = default; 29724: _Enable_default_constructor& 29724: operator=(_Enable_default_constructor const&) noexcept = default; 29724: _Enable_default_constructor& 29724: operator=(_Enable_default_constructor&&) noexcept = default; 29724: 29724: 29724: constexpr explicit 29724: _Enable_default_constructor(_Enable_default_constructor_tag) { } 29724: }; 29724: 29724: template 29724: struct _Enable_destructor 29724: { ~_Enable_destructor() noexcept = delete; }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: 29724: 29724: } 29724: # 37 "/usr/include/c++/14/bits/hashtable.h" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/node_handle.h" 1 3 29724: # 34 "/usr/include/c++/14/bits/node_handle.h" 3 29724: 29724: # 35 "/usr/include/c++/14/bits/node_handle.h" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 37 "/usr/include/c++/14/bits/node_handle.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 64 "/usr/include/c++/14/bits/node_handle.h" 3 29724: template 29724: class _Node_handle_common 29724: { 29724: using _AllocTraits = allocator_traits<_NodeAlloc>; 29724: 29724: public: 29724: using allocator_type = __alloc_rebind<_NodeAlloc, _Val>; 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return allocator_type(_M_alloc._M_alloc); 29724: } 29724: 29724: explicit operator bool() const noexcept { return _M_ptr != nullptr; } 29724: 29724: [[nodiscard]] bool empty() const noexcept { return _M_ptr == nullptr; } 29724: 29724: 29724: protected: 29724: constexpr _Node_handle_common() noexcept : _M_ptr() { } 29724: 29724: ~_Node_handle_common() 29724: { 29724: if (!empty()) 29724: _M_reset(); 29724: } 29724: 29724: _Node_handle_common(_Node_handle_common&& __nh) noexcept 29724: : _M_ptr(__nh._M_ptr) 29724: { 29724: if (_M_ptr) 29724: _M_move(std::move(__nh)); 29724: } 29724: 29724: _Node_handle_common& 29724: operator=(_Node_handle_common&& __nh) noexcept 29724: { 29724: if (empty()) 29724: { 29724: if (!__nh.empty()) 29724: _M_move(std::move(__nh)); 29724: } 29724: else if (__nh.empty()) 29724: _M_reset(); 29724: else 29724: { 29724: 29724: _AllocTraits::destroy(*_M_alloc, _M_ptr->_M_valptr()); 29724: _AllocTraits::deallocate(*_M_alloc, _M_ptr, 1); 29724: 29724: _M_alloc = __nh._M_alloc.release(); 29724: _M_ptr = __nh._M_ptr; 29724: __nh._M_ptr = nullptr; 29724: } 29724: return *this; 29724: } 29724: 29724: _Node_handle_common(typename _AllocTraits::pointer __ptr, 29724: const _NodeAlloc& __alloc) 29724: : _M_ptr(__ptr), _M_alloc(__alloc) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__ptr != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: void 29724: _M_swap(_Node_handle_common& __nh) noexcept 29724: { 29724: if (empty()) 29724: { 29724: if (!__nh.empty()) 29724: _M_move(std::move(__nh)); 29724: } 29724: else if (__nh.empty()) 29724: __nh._M_move(std::move(*this)); 29724: else 29724: { 29724: using std::swap; 29724: swap(_M_ptr, __nh._M_ptr); 29724: _M_alloc.swap(__nh._M_alloc); 29724: } 29724: } 29724: 29724: private: 29724: 29724: 29724: 29724: void 29724: _M_move(_Node_handle_common&& __nh) noexcept 29724: { 29724: ::new (std::__addressof(_M_alloc)) _NodeAlloc(__nh._M_alloc.release()); 29724: _M_ptr = __nh._M_ptr; 29724: __nh._M_ptr = nullptr; 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: _M_reset() noexcept 29724: { 29724: _NodeAlloc __alloc = _M_alloc.release(); 29724: _AllocTraits::destroy(__alloc, _M_ptr->_M_valptr()); 29724: _AllocTraits::deallocate(__alloc, _M_ptr, 1); 29724: _M_ptr = nullptr; 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: release() noexcept 29724: { 29724: _M_alloc.release(); 29724: _M_ptr = nullptr; 29724: } 29724: 29724: protected: 29724: typename _AllocTraits::pointer _M_ptr; 29724: 29724: private: 29724: 29724: 29724: union _Optional_alloc 29724: { 29724: _Optional_alloc() { } 29724: ~_Optional_alloc() { } 29724: 29724: _Optional_alloc(_Optional_alloc&&) = delete; 29724: _Optional_alloc& operator=(_Optional_alloc&&) = delete; 29724: 29724: _Optional_alloc(const _NodeAlloc& __alloc) noexcept 29724: : _M_alloc(__alloc) 29724: { } 29724: 29724: 29724: void 29724: operator=(_NodeAlloc&& __alloc) noexcept 29724: { 29724: using _ATr = _AllocTraits; 29724: if constexpr (_ATr::propagate_on_container_move_assignment::value) 29724: _M_alloc = std::move(__alloc); 29724: else if constexpr (!_AllocTraits::is_always_equal::value) 29724: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: 29724: void 29724: swap(_Optional_alloc& __other) noexcept 29724: { 29724: using std::swap; 29724: if constexpr (_AllocTraits::propagate_on_container_swap::value) 29724: swap(_M_alloc, __other._M_alloc); 29724: else if constexpr (!_AllocTraits::is_always_equal::value) 29724: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __other._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: 29724: _NodeAlloc& operator*() noexcept { return _M_alloc; } 29724: 29724: 29724: _NodeAlloc release() noexcept 29724: { 29724: _NodeAlloc __tmp = std::move(_M_alloc); 29724: _M_alloc.~_NodeAlloc(); 29724: return __tmp; 29724: } 29724: 29724: [[__no_unique_address__]] _NodeAlloc _M_alloc; 29724: }; 29724: 29724: [[__no_unique_address__]] _Optional_alloc _M_alloc; 29724: 29724: template 29724: friend class _Rb_tree; 29724: 29724: template 29724: friend class _Hashtable; 29724: 29724: 29724: }; 29724: 29724: 29724: template 29724: class _Node_handle : public _Node_handle_common<_Value, _NodeAlloc> 29724: { 29724: public: 29724: constexpr _Node_handle() noexcept = default; 29724: ~_Node_handle() = default; 29724: _Node_handle(_Node_handle&&) noexcept = default; 29724: 29724: _Node_handle& 29724: operator=(_Node_handle&&) noexcept = default; 29724: 29724: using key_type = _Key; 29724: using mapped_type = typename _Value::second_type; 29724: 29724: key_type& 29724: key() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return *_M_pkey; 29724: } 29724: 29724: mapped_type& 29724: mapped() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return *_M_pmapped; 29724: } 29724: 29724: void 29724: swap(_Node_handle& __nh) noexcept 29724: { 29724: this->_M_swap(__nh); 29724: using std::swap; 29724: swap(_M_pkey, __nh._M_pkey); 29724: swap(_M_pmapped, __nh._M_pmapped); 29724: } 29724: 29724: friend void 29724: swap(_Node_handle& __x, _Node_handle& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: private: 29724: using _AllocTraits = allocator_traits<_NodeAlloc>; 29724: 29724: _Node_handle(typename _AllocTraits::pointer __ptr, 29724: const _NodeAlloc& __alloc) 29724: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) 29724: { 29724: if (__ptr) 29724: { 29724: auto& __key = const_cast<_Key&>(__ptr->_M_valptr()->first); 29724: _M_pkey = _S_pointer_to(__key); 29724: _M_pmapped = _S_pointer_to(__ptr->_M_valptr()->second); 29724: } 29724: else 29724: { 29724: _M_pkey = nullptr; 29724: _M_pmapped = nullptr; 29724: } 29724: } 29724: 29724: template 29724: using __pointer 29724: = __ptr_rebind>; 29724: 29724: __pointer<_Key> _M_pkey = nullptr; 29724: __pointer _M_pmapped = nullptr; 29724: 29724: template 29724: __pointer<_Tp> 29724: _S_pointer_to(_Tp& __obj) 29724: { return pointer_traits<__pointer<_Tp>>::pointer_to(__obj); } 29724: 29724: const key_type& 29724: _M_key() const noexcept { return key(); } 29724: 29724: template 29724: friend class _Rb_tree; 29724: 29724: template 29724: friend class _Hashtable; 29724: }; 29724: 29724: 29724: template 29724: class _Node_handle<_Value, _Value, _NodeAlloc> 29724: : public _Node_handle_common<_Value, _NodeAlloc> 29724: { 29724: public: 29724: constexpr _Node_handle() noexcept = default; 29724: ~_Node_handle() = default; 29724: _Node_handle(_Node_handle&&) noexcept = default; 29724: 29724: _Node_handle& 29724: operator=(_Node_handle&&) noexcept = default; 29724: 29724: using value_type = _Value; 29724: 29724: value_type& 29724: value() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return *this->_M_ptr->_M_valptr(); 29724: } 29724: 29724: void 29724: swap(_Node_handle& __nh) noexcept 29724: { this->_M_swap(__nh); } 29724: 29724: friend void 29724: swap(_Node_handle& __x, _Node_handle& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: private: 29724: using _AllocTraits = allocator_traits<_NodeAlloc>; 29724: 29724: _Node_handle(typename _AllocTraits::pointer __ptr, 29724: const _NodeAlloc& __alloc) 29724: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { } 29724: 29724: const value_type& 29724: _M_key() const noexcept { return value(); } 29724: 29724: template 29724: friend class _Rb_tree; 29724: 29724: template 29724: friend class _Hashtable; 29724: }; 29724: 29724: 29724: template 29724: struct _Node_insert_return 29724: { 29724: _Iterator position = _Iterator(); 29724: bool inserted = false; 29724: _NodeHandle node; 29724: }; 29724: 29724: 29724: 29724: 29724: } 29724: # 40 "/usr/include/c++/14/bits/hashtable.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: using __cache_default 29724: = __not_<__and_< 29724: __is_fast_hash<_Hash>, 29724: 29724: __is_nothrow_invocable>>; 29724: 29724: 29724: 29724: 29724: template 29724: using _Hashtable_enable_default_ctor 29724: = _Enable_default_constructor<__and_, 29724: is_default_constructible<_Hash>, 29724: is_default_constructible<_Allocator>>{}, 29724: __detail::_Hash_node_base>; 29724: # 181 "/usr/include/c++/14/bits/hashtable.h" 3 29724: template 29724: class _Hashtable 29724: : public __detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _Traits>, 29724: public __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>, 29724: public __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>, 29724: public __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>, 29724: public __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>, 29724: private __detail::_Hashtable_alloc< 29724: __alloc_rebind<_Alloc, 29724: __detail::_Hash_node<_Value, 29724: _Traits::__hash_cached::value>>>, 29724: private _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc> 29724: { 29724: static_assert(is_same::type, _Value>::value, 29724: "unordered container must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: using __traits_type = _Traits; 29724: using __hash_cached = typename __traits_type::__hash_cached; 29724: using __constant_iterators = typename __traits_type::__constant_iterators; 29724: using __node_type = __detail::_Hash_node<_Value, __hash_cached::value>; 29724: using __node_alloc_type = __alloc_rebind<_Alloc, __node_type>; 29724: 29724: using __hashtable_alloc = __detail::_Hashtable_alloc<__node_alloc_type>; 29724: 29724: using __node_value_type = 29724: __detail::_Hash_node_value<_Value, __hash_cached::value>; 29724: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29724: using __value_alloc_traits = 29724: typename __hashtable_alloc::__value_alloc_traits; 29724: using __node_alloc_traits = 29724: typename __hashtable_alloc::__node_alloc_traits; 29724: using __node_base = typename __hashtable_alloc::__node_base; 29724: using __node_base_ptr = typename __hashtable_alloc::__node_base_ptr; 29724: using __buckets_ptr = typename __hashtable_alloc::__buckets_ptr; 29724: 29724: using __insert_base = __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, 29724: _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: using __enable_default_ctor 29724: = _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc>; 29724: using __rehash_guard_t 29724: = __detail::_RehashStateGuard<_RehashPolicy>; 29724: 29724: public: 29724: typedef _Key key_type; 29724: typedef _Value value_type; 29724: typedef _Alloc allocator_type; 29724: typedef _Equal key_equal; 29724: 29724: 29724: 29724: typedef typename __value_alloc_traits::pointer pointer; 29724: typedef typename __value_alloc_traits::const_pointer const_pointer; 29724: typedef value_type& reference; 29724: typedef const value_type& const_reference; 29724: 29724: using iterator = typename __insert_base::iterator; 29724: 29724: using const_iterator = typename __insert_base::const_iterator; 29724: 29724: using local_iterator = __detail::_Local_iterator; 29724: 29724: using const_local_iterator = __detail::_Local_const_iterator< 29724: key_type, _Value, 29724: _ExtractKey, _Hash, _RangeHash, _Unused, 29724: __constant_iterators::value, __hash_cached::value>; 29724: 29724: private: 29724: using __rehash_type = _RehashPolicy; 29724: 29724: using __unique_keys = typename __traits_type::__unique_keys; 29724: 29724: using __hashtable_base = __detail:: 29724: _Hashtable_base<_Key, _Value, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, _Traits>; 29724: 29724: using __hash_code_base = typename __hashtable_base::__hash_code_base; 29724: using __hash_code = typename __hashtable_base::__hash_code; 29724: using __ireturn_type = typename __insert_base::__ireturn_type; 29724: 29724: using __map_base = __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: using __rehash_base = __detail::_Rehash_base<_Key, _Value, _Alloc, 29724: _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: using __eq_base = __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: using __reuse_or_alloc_node_gen_t = 29724: __detail::_ReuseOrAllocNode<__node_alloc_type>; 29724: using __alloc_node_gen_t = 29724: __detail::_AllocNode<__node_alloc_type>; 29724: using __node_builder_t = 29724: __detail::_NodeBuilder<_ExtractKey>; 29724: 29724: 29724: struct _Scoped_node 29724: { 29724: 29724: _Scoped_node(__node_ptr __n, __hashtable_alloc* __h) 29724: : _M_h(__h), _M_node(__n) { } 29724: 29724: 29724: template 29724: _Scoped_node(__hashtable_alloc* __h, _Args&&... __args) 29724: : _M_h(__h), 29724: _M_node(__h->_M_allocate_node(std::forward<_Args>(__args)...)) 29724: { } 29724: 29724: 29724: ~_Scoped_node() { if (_M_node) _M_h->_M_deallocate_node(_M_node); }; 29724: 29724: _Scoped_node(const _Scoped_node&) = delete; 29724: _Scoped_node& operator=(const _Scoped_node&) = delete; 29724: 29724: __hashtable_alloc* _M_h; 29724: __node_ptr _M_node; 29724: }; 29724: 29724: template 29724: static constexpr 29724: __conditional_t::value, 29724: const value_type&, value_type&&> 29724: __fwd_value_for(value_type& __val) noexcept 29724: { return std::move(__val); } 29724: 29724: 29724: 29724: 29724: 29724: struct __hash_code_base_access : __hash_code_base 29724: { using __hash_code_base::_M_bucket_index; }; 29724: 29724: 29724: static_assert(is_nothrow_default_constructible<_RangeHash>::value, 29724: "Functor used to map hash code to bucket index" 29724: " must be nothrow default constructible"); 29724: static_assert(noexcept( 29724: std::declval()((std::size_t)0, (std::size_t)0)), 29724: "Functor used to map hash code to bucket index must be" 29724: " noexcept"); 29724: 29724: 29724: static_assert(is_nothrow_default_constructible<_ExtractKey>::value, 29724: "_ExtractKey must be nothrow default constructible"); 29724: static_assert(noexcept( 29724: std::declval()(std::declval<_Value>())), 29724: "_ExtractKey functor must be noexcept invocable"); 29724: 29724: template 29724: friend struct __detail::_Map_base; 29724: 29724: template 29724: friend struct __detail::_Insert_base; 29724: 29724: template 29724: friend struct __detail::_Insert; 29724: 29724: template 29724: friend struct __detail::_Equality; 29724: 29724: public: 29724: using size_type = typename __hashtable_base::size_type; 29724: using difference_type = typename __hashtable_base::difference_type; 29724: 29724: 29724: using node_type = _Node_handle<_Key, _Value, __node_alloc_type>; 29724: using insert_return_type = _Node_insert_return; 29724: 29724: 29724: private: 29724: __buckets_ptr _M_buckets = &_M_single_bucket; 29724: size_type _M_bucket_count = 1; 29724: __node_base _M_before_begin; 29724: size_type _M_element_count = 0; 29724: _RehashPolicy _M_rehash_policy; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __node_base_ptr _M_single_bucket = nullptr; 29724: 29724: void 29724: _M_update_bbegin() 29724: { 29724: if (auto __begin = _M_begin()) 29724: _M_buckets[_M_bucket_index(*__begin)] = &_M_before_begin; 29724: } 29724: 29724: void 29724: _M_update_bbegin(__node_ptr __n) 29724: { 29724: _M_before_begin._M_nxt = __n; 29724: _M_update_bbegin(); 29724: } 29724: 29724: bool 29724: _M_uses_single_bucket(__buckets_ptr __bkts) const 29724: { return __builtin_expect(__bkts == &_M_single_bucket, false); } 29724: 29724: bool 29724: _M_uses_single_bucket() const 29724: { return _M_uses_single_bucket(_M_buckets); } 29724: 29724: static constexpr size_t 29724: __small_size_threshold() noexcept 29724: { 29724: return 29724: __detail::_Hashtable_hash_traits<_Hash>::__small_size_threshold(); 29724: } 29724: 29724: __hashtable_alloc& 29724: _M_base_alloc() { return *this; } 29724: 29724: __buckets_ptr 29724: _M_allocate_buckets(size_type __bkt_count) 29724: { 29724: if (__builtin_expect(__bkt_count == 1, false)) 29724: { 29724: _M_single_bucket = nullptr; 29724: return &_M_single_bucket; 29724: } 29724: 29724: return __hashtable_alloc::_M_allocate_buckets(__bkt_count); 29724: } 29724: 29724: void 29724: _M_deallocate_buckets(__buckets_ptr __bkts, size_type __bkt_count) 29724: { 29724: if (_M_uses_single_bucket(__bkts)) 29724: return; 29724: 29724: __hashtable_alloc::_M_deallocate_buckets(__bkts, __bkt_count); 29724: } 29724: 29724: void 29724: _M_deallocate_buckets() 29724: { _M_deallocate_buckets(_M_buckets, _M_bucket_count); } 29724: 29724: 29724: 29724: __node_ptr 29724: _M_bucket_begin(size_type __bkt) const 29724: { 29724: __node_base_ptr __n = _M_buckets[__bkt]; 29724: return __n ? static_cast<__node_ptr>(__n->_M_nxt) : nullptr; 29724: } 29724: 29724: __node_ptr 29724: _M_begin() const 29724: { return static_cast<__node_ptr>(_M_before_begin._M_nxt); } 29724: 29724: 29724: 29724: template 29724: void 29724: _M_assign_elements(_Ht&&); 29724: 29724: template 29724: void 29724: _M_assign(_Ht&&, const _NodeGenerator&); 29724: 29724: void 29724: _M_move_assign(_Hashtable&&, true_type); 29724: 29724: void 29724: _M_move_assign(_Hashtable&&, false_type); 29724: 29724: void 29724: _M_reset() noexcept; 29724: 29724: _Hashtable(const _Hash& __h, const _Equal& __eq, 29724: const allocator_type& __a) 29724: : __hashtable_base(__h, __eq), 29724: __hashtable_alloc(__node_alloc_type(__a)), 29724: __enable_default_ctor(_Enable_default_constructor_tag{}) 29724: { } 29724: 29724: template 29724: static constexpr bool 29724: _S_nothrow_move() 29724: { 29724: 29724: 29724: 29724: 29724: 29724: if constexpr (_No_realloc) 29724: if constexpr (is_nothrow_copy_constructible<_Hash>()) 29724: return is_nothrow_copy_constructible<_Equal>(); 29724: return false; 29724: 29724: } 29724: 29724: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29724: true_type ) 29724: noexcept(_S_nothrow_move()); 29724: 29724: _Hashtable(_Hashtable&&, __node_alloc_type&&, 29724: false_type ); 29724: 29724: template 29724: _Hashtable(_InputIterator __first, _InputIterator __last, 29724: size_type __bkt_count_hint, 29724: const _Hash&, const _Equal&, const allocator_type&, 29724: true_type __uks); 29724: 29724: template 29724: _Hashtable(_InputIterator __first, _InputIterator __last, 29724: size_type __bkt_count_hint, 29724: const _Hash&, const _Equal&, const allocator_type&, 29724: false_type __uks); 29724: 29724: public: 29724: 29724: _Hashtable() = default; 29724: 29724: _Hashtable(const _Hashtable&); 29724: 29724: _Hashtable(const _Hashtable&, const allocator_type&); 29724: 29724: explicit 29724: _Hashtable(size_type __bkt_count_hint, 29724: const _Hash& __hf = _Hash(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()); 29724: 29724: 29724: _Hashtable(_Hashtable&& __ht) 29724: noexcept(_S_nothrow_move()) 29724: : _Hashtable(std::move(__ht), std::move(__ht._M_node_allocator()), 29724: true_type{}) 29724: { } 29724: 29724: _Hashtable(_Hashtable&& __ht, const allocator_type& __a) 29724: noexcept(_S_nothrow_move<__node_alloc_traits::_S_always_equal()>()) 29724: : _Hashtable(std::move(__ht), __node_alloc_type(__a), 29724: typename __node_alloc_traits::is_always_equal{}) 29724: { } 29724: 29724: explicit 29724: _Hashtable(const allocator_type& __a) 29724: : __hashtable_alloc(__node_alloc_type(__a)), 29724: __enable_default_ctor(_Enable_default_constructor_tag{}) 29724: { } 29724: 29724: template 29724: _Hashtable(_InputIterator __f, _InputIterator __l, 29724: size_type __bkt_count_hint = 0, 29724: const _Hash& __hf = _Hash(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _Hashtable(__f, __l, __bkt_count_hint, __hf, __eql, __a, 29724: __unique_keys{}) 29724: { } 29724: 29724: _Hashtable(initializer_list __l, 29724: size_type __bkt_count_hint = 0, 29724: const _Hash& __hf = _Hash(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _Hashtable(__l.begin(), __l.end(), __bkt_count_hint, 29724: __hf, __eql, __a, __unique_keys{}) 29724: { } 29724: 29724: _Hashtable& 29724: operator=(const _Hashtable& __ht); 29724: 29724: _Hashtable& 29724: operator=(_Hashtable&& __ht) 29724: noexcept(__node_alloc_traits::_S_nothrow_move() 29724: && is_nothrow_move_assignable<_Hash>::value 29724: && is_nothrow_move_assignable<_Equal>::value) 29724: { 29724: constexpr bool __move_storage = 29724: __node_alloc_traits::_S_propagate_on_move_assign() 29724: || __node_alloc_traits::_S_always_equal(); 29724: _M_move_assign(std::move(__ht), __bool_constant<__move_storage>()); 29724: return *this; 29724: } 29724: 29724: _Hashtable& 29724: operator=(initializer_list __l) 29724: { 29724: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 29724: _M_before_begin._M_nxt = nullptr; 29724: clear(); 29724: 29724: 29724: auto __l_bkt_count = _M_rehash_policy._M_bkt_for_elements(__l.size()); 29724: 29724: 29724: if (_M_bucket_count < __l_bkt_count) 29724: rehash(__l_bkt_count); 29724: 29724: this->_M_insert_range(__l.begin(), __l.end(), __roan, __unique_keys{}); 29724: return *this; 29724: } 29724: 29724: ~_Hashtable() noexcept; 29724: 29724: void 29724: swap(_Hashtable&) 29724: noexcept(__and_<__is_nothrow_swappable<_Hash>, 29724: __is_nothrow_swappable<_Equal>>::value); 29724: 29724: 29724: iterator 29724: begin() noexcept 29724: { return iterator(_M_begin()); } 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(_M_begin()); } 29724: 29724: iterator 29724: end() noexcept 29724: { return iterator(nullptr); } 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return const_iterator(nullptr); } 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(_M_begin()); } 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return const_iterator(nullptr); } 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_element_count; } 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return size() == 0; } 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(this->_M_node_allocator()); } 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return __node_alloc_traits::max_size(this->_M_node_allocator()); } 29724: 29724: 29724: key_equal 29724: key_eq() const 29724: { return this->_M_eq(); } 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_count() const noexcept 29724: { return _M_bucket_count; } 29724: 29724: size_type 29724: max_bucket_count() const noexcept 29724: { return max_size(); } 29724: 29724: size_type 29724: bucket_size(size_type __bkt) const 29724: { return std::distance(begin(__bkt), end(__bkt)); } 29724: 29724: size_type 29724: bucket(const key_type& __k) const 29724: { return _M_bucket_index(this->_M_hash_code(__k)); } 29724: 29724: local_iterator 29724: begin(size_type __bkt) 29724: { 29724: return local_iterator(*this, _M_bucket_begin(__bkt), 29724: __bkt, _M_bucket_count); 29724: } 29724: 29724: local_iterator 29724: end(size_type __bkt) 29724: { return local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29724: 29724: const_local_iterator 29724: begin(size_type __bkt) const 29724: { 29724: return const_local_iterator(*this, _M_bucket_begin(__bkt), 29724: __bkt, _M_bucket_count); 29724: } 29724: 29724: const_local_iterator 29724: end(size_type __bkt) const 29724: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29724: 29724: 29724: const_local_iterator 29724: cbegin(size_type __bkt) const 29724: { 29724: return const_local_iterator(*this, _M_bucket_begin(__bkt), 29724: __bkt, _M_bucket_count); 29724: } 29724: 29724: const_local_iterator 29724: cend(size_type __bkt) const 29724: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29724: 29724: float 29724: load_factor() const noexcept 29724: { 29724: return static_cast(size()) / static_cast(bucket_count()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const _RehashPolicy& 29724: __rehash_policy() const 29724: { return _M_rehash_policy; } 29724: 29724: void 29724: __rehash_policy(const _RehashPolicy& __pol) 29724: { _M_rehash_policy = __pol; } 29724: 29724: 29724: iterator 29724: find(const key_type& __k); 29724: 29724: const_iterator 29724: find(const key_type& __k) const; 29724: 29724: size_type 29724: count(const key_type& __k) const; 29724: 29724: std::pair 29724: equal_range(const key_type& __k); 29724: 29724: std::pair 29724: equal_range(const key_type& __k) const; 29724: # 796 "/usr/include/c++/14/bits/hashtable.h" 3 29724: private: 29724: 29724: size_type 29724: _M_bucket_index(const __node_value_type& __n) const noexcept 29724: { return __hash_code_base::_M_bucket_index(__n, _M_bucket_count); } 29724: 29724: size_type 29724: _M_bucket_index(__hash_code __c) const 29724: { return __hash_code_base::_M_bucket_index(__c, _M_bucket_count); } 29724: 29724: __node_base_ptr 29724: _M_find_before_node(const key_type&); 29724: 29724: 29724: 29724: __node_base_ptr 29724: _M_find_before_node(size_type, const key_type&, __hash_code) const; 29724: 29724: template 29724: __node_base_ptr 29724: _M_find_before_node_tr(size_type, const _Kt&, __hash_code) const; 29724: 29724: __node_ptr 29724: _M_find_node(size_type __bkt, const key_type& __key, 29724: __hash_code __c) const 29724: { 29724: __node_base_ptr __before_n = _M_find_before_node(__bkt, __key, __c); 29724: if (__before_n) 29724: return static_cast<__node_ptr>(__before_n->_M_nxt); 29724: return nullptr; 29724: } 29724: 29724: template 29724: __node_ptr 29724: _M_find_node_tr(size_type __bkt, const _Kt& __key, 29724: __hash_code __c) const 29724: { 29724: auto __before_n = _M_find_before_node_tr(__bkt, __key, __c); 29724: if (__before_n) 29724: return static_cast<__node_ptr>(__before_n->_M_nxt); 29724: return nullptr; 29724: } 29724: 29724: 29724: void 29724: _M_insert_bucket_begin(size_type __bkt, __node_ptr __node) 29724: { 29724: if (_M_buckets[__bkt]) 29724: { 29724: 29724: 29724: __node->_M_nxt = _M_buckets[__bkt]->_M_nxt; 29724: _M_buckets[__bkt]->_M_nxt = __node; 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: __node->_M_nxt = _M_before_begin._M_nxt; 29724: _M_before_begin._M_nxt = __node; 29724: 29724: if (__node->_M_nxt) 29724: 29724: 29724: _M_buckets[_M_bucket_index(*__node->_M_next())] = __node; 29724: 29724: _M_buckets[__bkt] = &_M_before_begin; 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next_n, 29724: size_type __next_bkt) 29724: { 29724: if (!__next_n) 29724: _M_buckets[__bkt] = nullptr; 29724: else if (__next_bkt != __bkt) 29724: { 29724: _M_buckets[__next_bkt] = _M_buckets[__bkt]; 29724: _M_buckets[__bkt] = nullptr; 29724: } 29724: } 29724: 29724: 29724: __node_base_ptr 29724: _M_get_previous_node(size_type __bkt, __node_ptr __n); 29724: 29724: pair<__node_ptr, __hash_code> 29724: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: _M_insert_unique_node(size_type __bkt, __hash_code, 29724: __node_ptr __n, size_type __n_elt = 1); 29724: 29724: 29724: 29724: iterator 29724: _M_insert_multi_node(__node_ptr __hint, 29724: __hash_code __code, __node_ptr __n); 29724: 29724: template 29724: std::pair 29724: _M_emplace(true_type __uks, _Args&&... __args); 29724: 29724: template 29724: iterator 29724: _M_emplace(false_type __uks, _Args&&... __args) 29724: { return _M_emplace(cend(), __uks, std::forward<_Args>(__args)...); } 29724: 29724: 29724: template 29724: iterator 29724: _M_emplace(const_iterator, true_type __uks, _Args&&... __args) 29724: { return _M_emplace(__uks, std::forward<_Args>(__args)...).first; } 29724: 29724: template 29724: iterator 29724: _M_emplace(const_iterator, false_type __uks, _Args&&... __args); 29724: 29724: template 29724: std::pair 29724: _M_insert_unique(_Kt&&, _Arg&&, const _NodeGenerator&); 29724: 29724: template 29724: static __conditional_t< 29724: __and_<__is_nothrow_invocable<_Hash&, const key_type&>, 29724: __not_<__is_nothrow_invocable<_Hash&, _Kt>>>::value, 29724: key_type, _Kt&&> 29724: _S_forward_key(_Kt&& __k) 29724: { return std::forward<_Kt>(__k); } 29724: 29724: static const key_type& 29724: _S_forward_key(const key_type& __k) 29724: { return __k; } 29724: 29724: static key_type&& 29724: _S_forward_key(key_type&& __k) 29724: { return std::move(__k); } 29724: 29724: template 29724: std::pair 29724: _M_insert_unique_aux(_Arg&& __arg, const _NodeGenerator& __node_gen) 29724: { 29724: return _M_insert_unique( 29724: _S_forward_key(_ExtractKey{}(std::forward<_Arg>(__arg))), 29724: std::forward<_Arg>(__arg), __node_gen); 29724: } 29724: 29724: template 29724: std::pair 29724: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 29724: true_type ) 29724: { 29724: using __to_value 29724: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 29724: return _M_insert_unique_aux( 29724: __to_value{}(std::forward<_Arg>(__arg)), __node_gen); 29724: } 29724: 29724: template 29724: iterator 29724: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 29724: false_type __uks) 29724: { 29724: using __to_value 29724: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 29724: return _M_insert(cend(), 29724: __to_value{}(std::forward<_Arg>(__arg)), __node_gen, __uks); 29724: } 29724: 29724: 29724: template 29724: iterator 29724: _M_insert(const_iterator, _Arg&& __arg, 29724: const _NodeGenerator& __node_gen, true_type __uks) 29724: { 29724: return 29724: _M_insert(std::forward<_Arg>(__arg), __node_gen, __uks).first; 29724: } 29724: 29724: 29724: template 29724: iterator 29724: _M_insert(const_iterator, _Arg&&, 29724: const _NodeGenerator&, false_type __uks); 29724: 29724: size_type 29724: _M_erase(true_type __uks, const key_type&); 29724: 29724: size_type 29724: _M_erase(false_type __uks, const key_type&); 29724: 29724: iterator 29724: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n); 29724: 29724: public: 29724: 29724: template 29724: __ireturn_type 29724: emplace(_Args&&... __args) 29724: { return _M_emplace(__unique_keys{}, std::forward<_Args>(__args)...); } 29724: 29724: template 29724: iterator 29724: emplace_hint(const_iterator __hint, _Args&&... __args) 29724: { 29724: return _M_emplace(__hint, __unique_keys{}, 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: 29724: 29724: iterator 29724: erase(const_iterator); 29724: 29724: 29724: 29724: iterator 29724: erase(iterator __it) 29724: { return erase(const_iterator(__it)); } 29724: 29724: size_type 29724: erase(const key_type& __k) 29724: { return _M_erase(__unique_keys{}, __k); } 29724: 29724: iterator 29724: erase(const_iterator, const_iterator); 29724: 29724: void 29724: clear() noexcept; 29724: 29724: 29724: 29724: void rehash(size_type __bkt_count); 29724: 29724: 29724: 29724: 29724: 29724: 29724: insert_return_type 29724: _M_reinsert_node(node_type&& __nh) 29724: { 29724: insert_return_type __ret; 29724: if (__nh.empty()) 29724: __ret.position = end(); 29724: else 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __node_ptr __n = nullptr; 29724: const key_type& __k = __nh._M_key(); 29724: const size_type __size = size(); 29724: if (__size <= __small_size_threshold()) 29724: { 29724: for (__n = _M_begin(); __n; __n = __n->_M_next()) 29724: if (this->_M_key_equals(__k, *__n)) 29724: break; 29724: } 29724: 29724: __hash_code __code; 29724: size_type __bkt; 29724: if (!__n) 29724: { 29724: __code = this->_M_hash_code(__k); 29724: __bkt = _M_bucket_index(__code); 29724: if (__size > __small_size_threshold()) 29724: __n = _M_find_node(__bkt, __k, __code); 29724: } 29724: 29724: if (__n) 29724: { 29724: __ret.node = std::move(__nh); 29724: __ret.position = iterator(__n); 29724: __ret.inserted = false; 29724: } 29724: else 29724: { 29724: __ret.position 29724: = _M_insert_unique_node(__bkt, __code, __nh._M_ptr); 29724: __nh.release(); 29724: __ret.inserted = true; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: iterator 29724: _M_reinsert_node_multi(const_iterator __hint, node_type&& __nh) 29724: { 29724: if (__nh.empty()) 29724: return end(); 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: const key_type& __k = __nh._M_key(); 29724: auto __code = this->_M_hash_code(__k); 29724: auto __ret 29724: = _M_insert_multi_node(__hint._M_cur, __code, __nh._M_ptr); 29724: __nh.release(); 29724: return __ret; 29724: } 29724: 29724: private: 29724: node_type 29724: _M_extract_node(size_t __bkt, __node_base_ptr __prev_n) 29724: { 29724: __node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29724: if (__prev_n == _M_buckets[__bkt]) 29724: _M_remove_bucket_begin(__bkt, __n->_M_next(), 29724: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 29724: else if (__n->_M_nxt) 29724: { 29724: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 29724: if (__next_bkt != __bkt) 29724: _M_buckets[__next_bkt] = __prev_n; 29724: } 29724: 29724: __prev_n->_M_nxt = __n->_M_nxt; 29724: __n->_M_nxt = nullptr; 29724: --_M_element_count; 29724: return { __n, this->_M_node_allocator() }; 29724: } 29724: 29724: 29724: 29724: template 29724: __hash_code 29724: _M_src_hash_code(const _H2&, const key_type& __k, 29724: const __node_value_type& __src_n) const 29724: { 29724: if constexpr (std::is_same_v<_H2, _Hash>) 29724: if constexpr (std::is_empty_v<_Hash>) 29724: return this->_M_hash_code(__src_n); 29724: 29724: return this->_M_hash_code(__k); 29724: } 29724: 29724: public: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: size_t __bkt = _M_bucket_index(*__pos._M_cur); 29724: return _M_extract_node(__bkt, 29724: _M_get_previous_node(__bkt, __pos._M_cur)); 29724: } 29724: 29724: 29724: node_type 29724: extract(const _Key& __k) 29724: { 29724: node_type __nh; 29724: __hash_code __code = this->_M_hash_code(__k); 29724: std::size_t __bkt = _M_bucket_index(__code); 29724: if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code)) 29724: __nh = _M_extract_node(__bkt, __prev_node); 29724: return __nh; 29724: } 29724: 29724: 29724: template 29724: void 29724: _M_merge_unique(_Compatible_Hashtable& __src) 29724: { 29724: static_assert(is_same_v, "Node types are compatible"); 29724: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: auto __n_elt = __src.size(); 29724: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 29724: { 29724: auto __pos = __i++; 29724: const size_type __size = size(); 29724: const key_type& __k = _ExtractKey{}(*__pos); 29724: if (__size <= __small_size_threshold()) 29724: { 29724: bool __found = false; 29724: for (auto __n = _M_begin(); __n; __n = __n->_M_next()) 29724: if (this->_M_key_equals(__k, *__n)) 29724: { 29724: __found = true; 29724: break; 29724: } 29724: 29724: if (__found) 29724: { 29724: if (__n_elt != 1) 29724: --__n_elt; 29724: continue; 29724: } 29724: } 29724: 29724: __hash_code __code 29724: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 29724: size_type __bkt = _M_bucket_index(__code); 29724: if (__size <= __small_size_threshold() 29724: || _M_find_node(__bkt, __k, __code) == nullptr) 29724: { 29724: auto __nh = __src.extract(__pos); 29724: _M_insert_unique_node(__bkt, __code, __nh._M_ptr, __n_elt); 29724: __nh.release(); 29724: __n_elt = 1; 29724: } 29724: else if (__n_elt != 1) 29724: --__n_elt; 29724: } 29724: } 29724: 29724: 29724: template 29724: void 29724: _M_merge_multi(_Compatible_Hashtable& __src) 29724: { 29724: static_assert(is_same_v, "Node types are compatible"); 29724: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __node_ptr __hint = nullptr; 29724: this->reserve(size() + __src.size()); 29724: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 29724: { 29724: auto __pos = __i++; 29724: const key_type& __k = _ExtractKey{}(*__pos); 29724: __hash_code __code 29724: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 29724: auto __nh = __src.extract(__pos); 29724: __hint = _M_insert_multi_node(__hint, __code, __nh._M_ptr)._M_cur; 29724: __nh.release(); 29724: } 29724: } 29724: 29724: 29724: private: 29724: 29724: void _M_rehash(size_type __bkt_count, true_type __uks); 29724: 29724: 29724: void _M_rehash(size_type __bkt_count, false_type __uks); 29724: }; 29724: 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(size_type __bkt_count_hint, 29724: const _Hash& __h, const _Equal& __eq, const allocator_type& __a) 29724: : _Hashtable(__h, __eq, __a) 29724: { 29724: auto __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count_hint); 29724: if (__bkt_count > _M_bucket_count) 29724: { 29724: _M_buckets = _M_allocate_buckets(__bkt_count); 29724: _M_bucket_count = __bkt_count; 29724: } 29724: } 29724: 29724: template 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(_InputIterator __f, _InputIterator __l, 29724: size_type __bkt_count_hint, 29724: const _Hash& __h, const _Equal& __eq, 29724: const allocator_type& __a, true_type ) 29724: : _Hashtable(__bkt_count_hint, __h, __eq, __a) 29724: { this->insert(__f, __l); } 29724: 29724: template 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(_InputIterator __f, _InputIterator __l, 29724: size_type __bkt_count_hint, 29724: const _Hash& __h, const _Equal& __eq, 29724: const allocator_type& __a, false_type __uks) 29724: : _Hashtable(__h, __eq, __a) 29724: { 29724: auto __nb_elems = __detail::__distance_fw(__f, __l); 29724: auto __bkt_count = 29724: _M_rehash_policy._M_next_bkt( 29724: std::max(_M_rehash_policy._M_bkt_for_elements(__nb_elems), 29724: __bkt_count_hint)); 29724: 29724: if (__bkt_count > _M_bucket_count) 29724: { 29724: _M_buckets = _M_allocate_buckets(__bkt_count); 29724: _M_bucket_count = __bkt_count; 29724: } 29724: 29724: __alloc_node_gen_t __node_gen(*this); 29724: for (; __f != __l; ++__f) 29724: _M_insert(*__f, __node_gen, __uks); 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: operator=(const _Hashtable& __ht) 29724: -> _Hashtable& 29724: { 29724: if (&__ht == this) 29724: return *this; 29724: 29724: if (__node_alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: auto& __this_alloc = this->_M_node_allocator(); 29724: auto& __that_alloc = __ht._M_node_allocator(); 29724: if (!__node_alloc_traits::_S_always_equal() 29724: && __this_alloc != __that_alloc) 29724: { 29724: 29724: this->_M_deallocate_nodes(_M_begin()); 29724: _M_before_begin._M_nxt = nullptr; 29724: _M_deallocate_buckets(); 29724: _M_buckets = nullptr; 29724: std::__alloc_on_copy(__this_alloc, __that_alloc); 29724: __hashtable_base::operator=(__ht); 29724: _M_bucket_count = __ht._M_bucket_count; 29724: _M_element_count = __ht._M_element_count; 29724: _M_rehash_policy = __ht._M_rehash_policy; 29724: __alloc_node_gen_t __alloc_node_gen(*this); 29724: try 29724: { 29724: _M_assign(__ht, __alloc_node_gen); 29724: } 29724: catch(...) 29724: { 29724: 29724: 29724: _M_reset(); 29724: throw; 29724: } 29724: return *this; 29724: } 29724: std::__alloc_on_copy(__this_alloc, __that_alloc); 29724: } 29724: 29724: 29724: _M_assign_elements(__ht); 29724: return *this; 29724: } 29724: 29724: template 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_assign_elements(_Ht&& __ht) 29724: { 29724: __buckets_ptr __former_buckets = nullptr; 29724: std::size_t __former_bucket_count = _M_bucket_count; 29724: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29724: 29724: if (_M_bucket_count != __ht._M_bucket_count) 29724: { 29724: __former_buckets = _M_buckets; 29724: _M_buckets = _M_allocate_buckets(__ht._M_bucket_count); 29724: _M_bucket_count = __ht._M_bucket_count; 29724: } 29724: else 29724: __builtin_memset(_M_buckets, 0, 29724: _M_bucket_count * sizeof(__node_base_ptr)); 29724: 29724: try 29724: { 29724: __hashtable_base::operator=(std::forward<_Ht>(__ht)); 29724: _M_element_count = __ht._M_element_count; 29724: _M_rehash_policy = __ht._M_rehash_policy; 29724: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 29724: _M_before_begin._M_nxt = nullptr; 29724: _M_assign(std::forward<_Ht>(__ht), __roan); 29724: if (__former_buckets) 29724: _M_deallocate_buckets(__former_buckets, __former_bucket_count); 29724: __rehash_guard._M_guarded_obj = nullptr; 29724: } 29724: catch(...) 29724: { 29724: if (__former_buckets) 29724: { 29724: 29724: _M_deallocate_buckets(); 29724: _M_buckets = __former_buckets; 29724: _M_bucket_count = __former_bucket_count; 29724: } 29724: __builtin_memset(_M_buckets, 0, 29724: _M_bucket_count * sizeof(__node_base_ptr)); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_assign(_Ht&& __ht, const _NodeGenerator& __node_gen) 29724: { 29724: __buckets_ptr __buckets = nullptr; 29724: if (!_M_buckets) 29724: _M_buckets = __buckets = _M_allocate_buckets(_M_bucket_count); 29724: 29724: try 29724: { 29724: if (!__ht._M_before_begin._M_nxt) 29724: return; 29724: 29724: 29724: 29724: __node_ptr __ht_n = __ht._M_begin(); 29724: __node_ptr __this_n 29724: = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 29724: this->_M_copy_code(*__this_n, *__ht_n); 29724: _M_update_bbegin(__this_n); 29724: 29724: 29724: __node_ptr __prev_n = __this_n; 29724: for (__ht_n = __ht_n->_M_next(); __ht_n; __ht_n = __ht_n->_M_next()) 29724: { 29724: __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 29724: __prev_n->_M_nxt = __this_n; 29724: this->_M_copy_code(*__this_n, *__ht_n); 29724: size_type __bkt = _M_bucket_index(*__this_n); 29724: if (!_M_buckets[__bkt]) 29724: _M_buckets[__bkt] = __prev_n; 29724: __prev_n = __this_n; 29724: } 29724: } 29724: catch(...) 29724: { 29724: clear(); 29724: if (__buckets) 29724: _M_deallocate_buckets(); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_reset() noexcept 29724: { 29724: _M_rehash_policy._M_reset(); 29724: _M_bucket_count = 1; 29724: _M_single_bucket = nullptr; 29724: _M_buckets = &_M_single_bucket; 29724: _M_before_begin._M_nxt = nullptr; 29724: _M_element_count = 0; 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_move_assign(_Hashtable&& __ht, true_type) 29724: { 29724: if (__builtin_expect(std::__addressof(__ht) == this, false)) 29724: return; 29724: 29724: this->_M_deallocate_nodes(_M_begin()); 29724: _M_deallocate_buckets(); 29724: __hashtable_base::operator=(std::move(__ht)); 29724: _M_rehash_policy = __ht._M_rehash_policy; 29724: if (!__ht._M_uses_single_bucket()) 29724: _M_buckets = __ht._M_buckets; 29724: else 29724: { 29724: _M_buckets = &_M_single_bucket; 29724: _M_single_bucket = __ht._M_single_bucket; 29724: } 29724: 29724: _M_bucket_count = __ht._M_bucket_count; 29724: _M_before_begin._M_nxt = __ht._M_before_begin._M_nxt; 29724: _M_element_count = __ht._M_element_count; 29724: std::__alloc_on_move(this->_M_node_allocator(), __ht._M_node_allocator()); 29724: 29724: 29724: _M_update_bbegin(); 29724: __ht._M_reset(); 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_move_assign(_Hashtable&& __ht, false_type) 29724: { 29724: if (__ht._M_node_allocator() == this->_M_node_allocator()) 29724: _M_move_assign(std::move(__ht), true_type{}); 29724: else 29724: { 29724: 29724: _M_assign_elements(std::move(__ht)); 29724: __ht.clear(); 29724: } 29724: } 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(const _Hashtable& __ht) 29724: : __hashtable_base(__ht), 29724: __map_base(__ht), 29724: __rehash_base(__ht), 29724: __hashtable_alloc( 29724: __node_alloc_traits::_S_select_on_copy(__ht._M_node_allocator())), 29724: __enable_default_ctor(__ht), 29724: _M_buckets(nullptr), 29724: _M_bucket_count(__ht._M_bucket_count), 29724: _M_element_count(__ht._M_element_count), 29724: _M_rehash_policy(__ht._M_rehash_policy) 29724: { 29724: __alloc_node_gen_t __alloc_node_gen(*this); 29724: _M_assign(__ht, __alloc_node_gen); 29724: } 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29724: true_type ) 29724: noexcept(_S_nothrow_move()) 29724: : __hashtable_base(__ht), 29724: __map_base(__ht), 29724: __rehash_base(__ht), 29724: __hashtable_alloc(std::move(__a)), 29724: __enable_default_ctor(__ht), 29724: _M_buckets(__ht._M_buckets), 29724: _M_bucket_count(__ht._M_bucket_count), 29724: _M_before_begin(__ht._M_before_begin._M_nxt), 29724: _M_element_count(__ht._M_element_count), 29724: _M_rehash_policy(__ht._M_rehash_policy) 29724: { 29724: 29724: if (__ht._M_uses_single_bucket()) 29724: { 29724: _M_buckets = &_M_single_bucket; 29724: _M_single_bucket = __ht._M_single_bucket; 29724: } 29724: 29724: 29724: _M_update_bbegin(); 29724: 29724: __ht._M_reset(); 29724: } 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(const _Hashtable& __ht, const allocator_type& __a) 29724: : __hashtable_base(__ht), 29724: __map_base(__ht), 29724: __rehash_base(__ht), 29724: __hashtable_alloc(__node_alloc_type(__a)), 29724: __enable_default_ctor(__ht), 29724: _M_buckets(), 29724: _M_bucket_count(__ht._M_bucket_count), 29724: _M_element_count(__ht._M_element_count), 29724: _M_rehash_policy(__ht._M_rehash_policy) 29724: { 29724: __alloc_node_gen_t __alloc_node_gen(*this); 29724: _M_assign(__ht, __alloc_node_gen); 29724: } 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29724: false_type ) 29724: : __hashtable_base(__ht), 29724: __map_base(__ht), 29724: __rehash_base(__ht), 29724: __hashtable_alloc(std::move(__a)), 29724: __enable_default_ctor(__ht), 29724: _M_buckets(nullptr), 29724: _M_bucket_count(__ht._M_bucket_count), 29724: _M_element_count(__ht._M_element_count), 29724: _M_rehash_policy(__ht._M_rehash_policy) 29724: { 29724: if (__ht._M_node_allocator() == this->_M_node_allocator()) 29724: { 29724: if (__ht._M_uses_single_bucket()) 29724: { 29724: _M_buckets = &_M_single_bucket; 29724: _M_single_bucket = __ht._M_single_bucket; 29724: } 29724: else 29724: _M_buckets = __ht._M_buckets; 29724: 29724: 29724: 29724: _M_update_bbegin(__ht._M_begin()); 29724: 29724: __ht._M_reset(); 29724: } 29724: else 29724: { 29724: __alloc_node_gen_t __alloc_gen(*this); 29724: 29724: using _Fwd_Ht = __conditional_t< 29724: __move_if_noexcept_cond::value, 29724: const _Hashtable&, _Hashtable&&>; 29724: _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen); 29724: __ht.clear(); 29724: } 29724: } 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: ~_Hashtable() noexcept 29724: { 29724: 29724: 29724: 29724: static_assert(noexcept(declval() 29724: ._M_bucket_index(declval(), 29724: (std::size_t)0)), 29724: "Cache the hash code or qualify your functors involved" 29724: " in hash code and bucket index computation with noexcept"); 29724: 29724: clear(); 29724: _M_deallocate_buckets(); 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: swap(_Hashtable& __x) 29724: noexcept(__and_<__is_nothrow_swappable<_Hash>, 29724: __is_nothrow_swappable<_Equal>>::value) 29724: { 29724: 29724: 29724: 29724: this->_M_swap(__x); 29724: 29724: std::__alloc_on_swap(this->_M_node_allocator(), __x._M_node_allocator()); 29724: std::swap(_M_rehash_policy, __x._M_rehash_policy); 29724: 29724: 29724: if (this->_M_uses_single_bucket()) 29724: { 29724: if (!__x._M_uses_single_bucket()) 29724: { 29724: _M_buckets = __x._M_buckets; 29724: __x._M_buckets = &__x._M_single_bucket; 29724: } 29724: } 29724: else if (__x._M_uses_single_bucket()) 29724: { 29724: __x._M_buckets = _M_buckets; 29724: _M_buckets = &_M_single_bucket; 29724: } 29724: else 29724: std::swap(_M_buckets, __x._M_buckets); 29724: 29724: std::swap(_M_bucket_count, __x._M_bucket_count); 29724: std::swap(_M_before_begin._M_nxt, __x._M_before_begin._M_nxt); 29724: std::swap(_M_element_count, __x._M_element_count); 29724: std::swap(_M_single_bucket, __x._M_single_bucket); 29724: 29724: 29724: 29724: _M_update_bbegin(); 29724: __x._M_update_bbegin(); 29724: } 29724: 29724: template 29724: auto inline 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: find(const key_type& __k) 29724: -> iterator 29724: { 29724: if (size() <= __small_size_threshold()) 29724: { 29724: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29724: if (this->_M_key_equals(__k, *__it)) 29724: return iterator(__it); 29724: return end(); 29724: } 29724: 29724: __hash_code __code = this->_M_hash_code(__k); 29724: std::size_t __bkt = _M_bucket_index(__code); 29724: return iterator(_M_find_node(__bkt, __k, __code)); 29724: } 29724: 29724: template 29724: auto inline 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: find(const key_type& __k) const 29724: -> const_iterator 29724: { 29724: if (size() <= __small_size_threshold()) 29724: { 29724: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29724: if (this->_M_key_equals(__k, *__it)) 29724: return const_iterator(__it); 29724: return end(); 29724: } 29724: 29724: __hash_code __code = this->_M_hash_code(__k); 29724: std::size_t __bkt = _M_bucket_index(__code); 29724: return const_iterator(_M_find_node(__bkt, __k, __code)); 29724: } 29724: # 1818 "/usr/include/c++/14/bits/hashtable.h" 3 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: count(const key_type& __k) const 29724: -> size_type 29724: { 29724: auto __it = find(__k); 29724: if (!__it._M_cur) 29724: return 0; 29724: 29724: if (__unique_keys::value) 29724: return 1; 29724: 29724: size_type __result = 1; 29724: for (auto __ref = __it++; 29724: __it._M_cur && this->_M_node_equals(*__ref._M_cur, *__it._M_cur); 29724: ++__it) 29724: ++__result; 29724: 29724: return __result; 29724: } 29724: # 1891 "/usr/include/c++/14/bits/hashtable.h" 3 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: equal_range(const key_type& __k) 29724: -> pair 29724: { 29724: auto __ite = find(__k); 29724: if (!__ite._M_cur) 29724: return { __ite, __ite }; 29724: 29724: auto __beg = __ite++; 29724: if (__unique_keys::value) 29724: return { __beg, __ite }; 29724: 29724: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 29724: ++__ite; 29724: 29724: return { __beg, __ite }; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: equal_range(const key_type& __k) const 29724: -> pair 29724: { 29724: auto __ite = find(__k); 29724: if (!__ite._M_cur) 29724: return { __ite, __ite }; 29724: 29724: auto __beg = __ite++; 29724: if (__unique_keys::value) 29724: return { __beg, __ite }; 29724: 29724: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 29724: ++__ite; 29724: 29724: return { __beg, __ite }; 29724: } 29724: # 2031 "/usr/include/c++/14/bits/hashtable.h" 3 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_find_before_node(const key_type& __k) 29724: -> __node_base_ptr 29724: { 29724: __node_base_ptr __prev_p = &_M_before_begin; 29724: if (!__prev_p->_M_nxt) 29724: return nullptr; 29724: 29724: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt); 29724: __p != nullptr; 29724: __p = __p->_M_next()) 29724: { 29724: if (this->_M_key_equals(__k, *__p)) 29724: return __prev_p; 29724: 29724: __prev_p = __p; 29724: } 29724: 29724: return nullptr; 29724: } 29724: 29724: 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_find_before_node(size_type __bkt, const key_type& __k, 29724: __hash_code __code) const 29724: -> __node_base_ptr 29724: { 29724: __node_base_ptr __prev_p = _M_buckets[__bkt]; 29724: if (!__prev_p) 29724: return nullptr; 29724: 29724: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 29724: __p = __p->_M_next()) 29724: { 29724: if (this->_M_equals(__k, __code, *__p)) 29724: return __prev_p; 29724: 29724: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 29724: break; 29724: __prev_p = __p; 29724: } 29724: 29724: return nullptr; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_find_before_node_tr(size_type __bkt, const _Kt& __k, 29724: __hash_code __code) const 29724: -> __node_base_ptr 29724: { 29724: __node_base_ptr __prev_p = _M_buckets[__bkt]; 29724: if (!__prev_p) 29724: return nullptr; 29724: 29724: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 29724: __p = __p->_M_next()) 29724: { 29724: if (this->_M_equals_tr(__k, __code, *__p)) 29724: return __prev_p; 29724: 29724: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 29724: break; 29724: __prev_p = __p; 29724: } 29724: 29724: return nullptr; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_get_previous_node(size_type __bkt, __node_ptr __n) 29724: -> __node_base_ptr 29724: { 29724: __node_base_ptr __prev_n = _M_buckets[__bkt]; 29724: while (__prev_n->_M_nxt != __n) 29724: __prev_n = __prev_n->_M_nxt; 29724: return __prev_n; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_emplace(true_type , _Args&&... __args) 29724: -> pair 29724: { 29724: 29724: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 29724: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 29724: const size_type __size = size(); 29724: if (__size <= __small_size_threshold()) 29724: { 29724: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29724: if (this->_M_key_equals(__k, *__it)) 29724: 29724: return { iterator(__it), false }; 29724: } 29724: 29724: __hash_code __code = this->_M_hash_code(__k); 29724: size_type __bkt = _M_bucket_index(__code); 29724: if (__size > __small_size_threshold()) 29724: if (__node_ptr __p = _M_find_node(__bkt, __k, __code)) 29724: 29724: return { iterator(__p), false }; 29724: 29724: 29724: auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); 29724: __node._M_node = nullptr; 29724: return { __pos, true }; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_emplace(const_iterator __hint, false_type , 29724: _Args&&... __args) 29724: -> iterator 29724: { 29724: 29724: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 29724: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 29724: 29724: auto __res = this->_M_compute_hash_code(__hint._M_cur, __k); 29724: auto __pos 29724: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 29724: __node._M_node = nullptr; 29724: return __pos; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const 29724: -> pair<__node_ptr, __hash_code> 29724: { 29724: if (size() <= __small_size_threshold()) 29724: { 29724: if (__hint) 29724: { 29724: for (auto __it = __hint; __it; __it = __it->_M_next()) 29724: if (this->_M_key_equals(__k, *__it)) 29724: return { __it, this->_M_hash_code(*__it) }; 29724: } 29724: 29724: for (auto __it = _M_begin(); __it != __hint; __it = __it->_M_next()) 29724: if (this->_M_key_equals(__k, *__it)) 29724: return { __it, this->_M_hash_code(*__it) }; 29724: 29724: __hint = nullptr; 29724: } 29724: 29724: return { __hint, this->_M_hash_code(__k) }; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_insert_unique_node(size_type __bkt, __hash_code __code, 29724: __node_ptr __node, size_type __n_elt) 29724: -> iterator 29724: { 29724: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29724: std::pair __do_rehash 29724: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 29724: __n_elt); 29724: 29724: if (__do_rehash.first) 29724: { 29724: _M_rehash(__do_rehash.second, true_type{}); 29724: __bkt = _M_bucket_index(__code); 29724: } 29724: 29724: __rehash_guard._M_guarded_obj = nullptr; 29724: this->_M_store_code(*__node, __code); 29724: 29724: 29724: _M_insert_bucket_begin(__bkt, __node); 29724: ++_M_element_count; 29724: return iterator(__node); 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_insert_multi_node(__node_ptr __hint, 29724: __hash_code __code, __node_ptr __node) 29724: -> iterator 29724: { 29724: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29724: std::pair __do_rehash 29724: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 1); 29724: 29724: if (__do_rehash.first) 29724: _M_rehash(__do_rehash.second, false_type{}); 29724: 29724: __rehash_guard._M_guarded_obj = nullptr; 29724: this->_M_store_code(*__node, __code); 29724: const key_type& __k = _ExtractKey{}(__node->_M_v()); 29724: size_type __bkt = _M_bucket_index(__code); 29724: 29724: 29724: 29724: __node_base_ptr __prev 29724: = __builtin_expect(__hint != nullptr, false) 29724: && this->_M_equals(__k, __code, *__hint) 29724: ? __hint 29724: : _M_find_before_node(__bkt, __k, __code); 29724: 29724: if (__prev) 29724: { 29724: 29724: __node->_M_nxt = __prev->_M_nxt; 29724: __prev->_M_nxt = __node; 29724: if (__builtin_expect(__prev == __hint, false)) 29724: 29724: 29724: if (__node->_M_nxt 29724: && !this->_M_equals(__k, __code, *__node->_M_next())) 29724: { 29724: size_type __next_bkt = _M_bucket_index(*__node->_M_next()); 29724: if (__next_bkt != __bkt) 29724: _M_buckets[__next_bkt] = __node; 29724: } 29724: } 29724: else 29724: 29724: 29724: 29724: _M_insert_bucket_begin(__bkt, __node); 29724: ++_M_element_count; 29724: return iterator(__node); 29724: } 29724: 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_insert_unique(_Kt&& __k, _Arg&& __v, 29724: const _NodeGenerator& __node_gen) 29724: -> pair 29724: { 29724: const size_type __size = size(); 29724: if (__size <= __small_size_threshold()) 29724: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29724: if (this->_M_key_equals_tr(__k, *__it)) 29724: return { iterator(__it), false }; 29724: 29724: __hash_code __code = this->_M_hash_code_tr(__k); 29724: size_type __bkt = _M_bucket_index(__code); 29724: 29724: if (__size > __small_size_threshold()) 29724: if (__node_ptr __node = _M_find_node_tr(__bkt, __k, __code)) 29724: return { iterator(__node), false }; 29724: 29724: _Scoped_node __node { 29724: __node_builder_t::_S_build(std::forward<_Kt>(__k), 29724: std::forward<_Arg>(__v), 29724: __node_gen), 29724: this 29724: }; 29724: auto __pos 29724: = _M_insert_unique_node(__bkt, __code, __node._M_node); 29724: __node._M_node = nullptr; 29724: return { __pos, true }; 29724: } 29724: 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_insert(const_iterator __hint, _Arg&& __v, 29724: const _NodeGenerator& __node_gen, 29724: false_type ) 29724: -> iterator 29724: { 29724: 29724: _Scoped_node __node{ __node_gen(std::forward<_Arg>(__v)), this }; 29724: 29724: 29724: auto __res = this->_M_compute_hash_code( 29724: __hint._M_cur, _ExtractKey{}(__node._M_node->_M_v())); 29724: 29724: auto __pos 29724: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 29724: __node._M_node = nullptr; 29724: return __pos; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: erase(const_iterator __it) 29724: -> iterator 29724: { 29724: __node_ptr __n = __it._M_cur; 29724: std::size_t __bkt = _M_bucket_index(*__n); 29724: 29724: 29724: 29724: 29724: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 29724: return _M_erase(__bkt, __prev_n, __n); 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n) 29724: -> iterator 29724: { 29724: if (__prev_n == _M_buckets[__bkt]) 29724: _M_remove_bucket_begin(__bkt, __n->_M_next(), 29724: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 29724: else if (__n->_M_nxt) 29724: { 29724: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 29724: if (__next_bkt != __bkt) 29724: _M_buckets[__next_bkt] = __prev_n; 29724: } 29724: 29724: __prev_n->_M_nxt = __n->_M_nxt; 29724: iterator __result(__n->_M_next()); 29724: this->_M_deallocate_node(__n); 29724: --_M_element_count; 29724: 29724: return __result; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_erase(true_type , const key_type& __k) 29724: -> size_type 29724: { 29724: __node_base_ptr __prev_n; 29724: __node_ptr __n; 29724: std::size_t __bkt; 29724: if (size() <= __small_size_threshold()) 29724: { 29724: __prev_n = _M_find_before_node(__k); 29724: if (!__prev_n) 29724: return 0; 29724: 29724: 29724: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29724: __bkt = _M_bucket_index(*__n); 29724: } 29724: else 29724: { 29724: __hash_code __code = this->_M_hash_code(__k); 29724: __bkt = _M_bucket_index(__code); 29724: 29724: 29724: __prev_n = _M_find_before_node(__bkt, __k, __code); 29724: if (!__prev_n) 29724: return 0; 29724: 29724: 29724: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29724: } 29724: 29724: _M_erase(__bkt, __prev_n, __n); 29724: return 1; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_erase(false_type , const key_type& __k) 29724: -> size_type 29724: { 29724: std::size_t __bkt; 29724: __node_base_ptr __prev_n; 29724: __node_ptr __n; 29724: if (size() <= __small_size_threshold()) 29724: { 29724: __prev_n = _M_find_before_node(__k); 29724: if (!__prev_n) 29724: return 0; 29724: 29724: 29724: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29724: __bkt = _M_bucket_index(*__n); 29724: } 29724: else 29724: { 29724: __hash_code __code = this->_M_hash_code(__k); 29724: __bkt = _M_bucket_index(__code); 29724: 29724: 29724: __prev_n = _M_find_before_node(__bkt, __k, __code); 29724: if (!__prev_n) 29724: return 0; 29724: 29724: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __node_ptr __n_last = __n->_M_next(); 29724: while (__n_last && this->_M_node_equals(*__n, *__n_last)) 29724: __n_last = __n_last->_M_next(); 29724: 29724: std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt; 29724: 29724: 29724: size_type __result = 0; 29724: do 29724: { 29724: __node_ptr __p = __n->_M_next(); 29724: this->_M_deallocate_node(__n); 29724: __n = __p; 29724: ++__result; 29724: } 29724: while (__n != __n_last); 29724: 29724: _M_element_count -= __result; 29724: if (__prev_n == _M_buckets[__bkt]) 29724: _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt); 29724: else if (__n_last_bkt != __bkt) 29724: _M_buckets[__n_last_bkt] = __prev_n; 29724: __prev_n->_M_nxt = __n_last; 29724: return __result; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: erase(const_iterator __first, const_iterator __last) 29724: -> iterator 29724: { 29724: __node_ptr __n = __first._M_cur; 29724: __node_ptr __last_n = __last._M_cur; 29724: if (__n == __last_n) 29724: return iterator(__n); 29724: 29724: std::size_t __bkt = _M_bucket_index(*__n); 29724: 29724: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 29724: bool __is_bucket_begin = __n == _M_bucket_begin(__bkt); 29724: std::size_t __n_bkt = __bkt; 29724: for (;;) 29724: { 29724: do 29724: { 29724: __node_ptr __tmp = __n; 29724: __n = __n->_M_next(); 29724: this->_M_deallocate_node(__tmp); 29724: --_M_element_count; 29724: if (!__n) 29724: break; 29724: __n_bkt = _M_bucket_index(*__n); 29724: } 29724: while (__n != __last_n && __n_bkt == __bkt); 29724: if (__is_bucket_begin) 29724: _M_remove_bucket_begin(__bkt, __n, __n_bkt); 29724: if (__n == __last_n) 29724: break; 29724: __is_bucket_begin = true; 29724: __bkt = __n_bkt; 29724: } 29724: 29724: if (__n && (__n_bkt != __bkt || __is_bucket_begin)) 29724: _M_buckets[__n_bkt] = __prev_n; 29724: __prev_n->_M_nxt = __n; 29724: return iterator(__n); 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: clear() noexcept 29724: { 29724: this->_M_deallocate_nodes(_M_begin()); 29724: __builtin_memset(_M_buckets, 0, 29724: _M_bucket_count * sizeof(__node_base_ptr)); 29724: _M_element_count = 0; 29724: _M_before_begin._M_nxt = nullptr; 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: rehash(size_type __bkt_count) 29724: { 29724: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29724: __bkt_count 29724: = std::max(_M_rehash_policy._M_bkt_for_elements(_M_element_count + 1), 29724: __bkt_count); 29724: __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count); 29724: 29724: if (__bkt_count != _M_bucket_count) 29724: { 29724: _M_rehash(__bkt_count, __unique_keys{}); 29724: __rehash_guard._M_guarded_obj = nullptr; 29724: } 29724: } 29724: 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_rehash(size_type __bkt_count, true_type ) 29724: { 29724: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 29724: __node_ptr __p = _M_begin(); 29724: _M_before_begin._M_nxt = nullptr; 29724: std::size_t __bbegin_bkt = 0; 29724: while (__p) 29724: { 29724: __node_ptr __next = __p->_M_next(); 29724: std::size_t __bkt 29724: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 29724: if (!__new_buckets[__bkt]) 29724: { 29724: __p->_M_nxt = _M_before_begin._M_nxt; 29724: _M_before_begin._M_nxt = __p; 29724: __new_buckets[__bkt] = &_M_before_begin; 29724: if (__p->_M_nxt) 29724: __new_buckets[__bbegin_bkt] = __p; 29724: __bbegin_bkt = __bkt; 29724: } 29724: else 29724: { 29724: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 29724: __new_buckets[__bkt]->_M_nxt = __p; 29724: } 29724: 29724: __p = __next; 29724: } 29724: 29724: _M_deallocate_buckets(); 29724: _M_bucket_count = __bkt_count; 29724: _M_buckets = __new_buckets; 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_rehash(size_type __bkt_count, false_type ) 29724: { 29724: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 29724: __node_ptr __p = _M_begin(); 29724: _M_before_begin._M_nxt = nullptr; 29724: std::size_t __bbegin_bkt = 0; 29724: std::size_t __prev_bkt = 0; 29724: __node_ptr __prev_p = nullptr; 29724: bool __check_bucket = false; 29724: 29724: while (__p) 29724: { 29724: __node_ptr __next = __p->_M_next(); 29724: std::size_t __bkt 29724: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 29724: 29724: if (__prev_p && __prev_bkt == __bkt) 29724: { 29724: 29724: 29724: 29724: __p->_M_nxt = __prev_p->_M_nxt; 29724: __prev_p->_M_nxt = __p; 29724: 29724: 29724: 29724: 29724: 29724: 29724: __check_bucket = true; 29724: } 29724: else 29724: { 29724: if (__check_bucket) 29724: { 29724: 29724: 29724: if (__prev_p->_M_nxt) 29724: { 29724: std::size_t __next_bkt 29724: = __hash_code_base::_M_bucket_index( 29724: *__prev_p->_M_next(), __bkt_count); 29724: if (__next_bkt != __prev_bkt) 29724: __new_buckets[__next_bkt] = __prev_p; 29724: } 29724: __check_bucket = false; 29724: } 29724: 29724: if (!__new_buckets[__bkt]) 29724: { 29724: __p->_M_nxt = _M_before_begin._M_nxt; 29724: _M_before_begin._M_nxt = __p; 29724: __new_buckets[__bkt] = &_M_before_begin; 29724: if (__p->_M_nxt) 29724: __new_buckets[__bbegin_bkt] = __p; 29724: __bbegin_bkt = __bkt; 29724: } 29724: else 29724: { 29724: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 29724: __new_buckets[__bkt]->_M_nxt = __p; 29724: } 29724: } 29724: __prev_p = __p; 29724: __prev_bkt = __bkt; 29724: __p = __next; 29724: } 29724: 29724: if (__check_bucket && __prev_p->_M_nxt) 29724: { 29724: std::size_t __next_bkt 29724: = __hash_code_base::_M_bucket_index(*__prev_p->_M_next(), 29724: __bkt_count); 29724: if (__next_bkt != __prev_bkt) 29724: __new_buckets[__next_bkt] = __prev_p; 29724: } 29724: 29724: _M_deallocate_buckets(); 29724: _M_bucket_count = __bkt_count; 29724: _M_buckets = __new_buckets; 29724: } 29724: 29724: 29724: template class _Hash_merge_helper { }; 29724: 29724: 29724: 29724: 29724: template 29724: using _RequireNotAllocatorOrIntegral 29724: = __enable_if_t, __is_allocator<_Hash>>::value>; 29724: 29724: 29724: 29724: 29724: } 29724: # 34 "/usr/include/c++/14/bits/unordered_map.h" 2 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>; 29724: 29724: template, 29724: typename _Pred = std::equal_to<_Key>, 29724: typename _Alloc = std::allocator >, 29724: typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>> 29724: using __umap_hashtable = _Hashtable<_Key, std::pair, 29724: _Alloc, __detail::_Select1st, 29724: _Pred, _Hash, 29724: __detail::_Mod_range_hashing, 29724: __detail::_Default_ranged_hash, 29724: __detail::_Prime_rehash_policy, _Tr>; 29724: 29724: 29724: template 29724: using __ummap_traits = __detail::_Hashtable_traits<_Cache, false, false>; 29724: 29724: template, 29724: typename _Pred = std::equal_to<_Key>, 29724: typename _Alloc = std::allocator >, 29724: typename _Tr = __ummap_traits<__cache_default<_Key, _Hash>::value>> 29724: using __ummap_hashtable = _Hashtable<_Key, std::pair, 29724: _Alloc, __detail::_Select1st, 29724: _Pred, _Hash, 29724: __detail::_Mod_range_hashing, 29724: __detail::_Default_ranged_hash, 29724: __detail::_Prime_rehash_policy, _Tr>; 29724: 29724: template 29724: class unordered_multimap; 29724: # 105 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template, 29724: typename _Pred = equal_to<_Key>, 29724: typename _Alloc = allocator>> 29724: class unordered_map 29724: { 29724: typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 29724: _Hashtable _M_h; 29724: 29724: public: 29724: 29724: 29724: 29724: typedef typename _Hashtable::key_type key_type; 29724: typedef typename _Hashtable::value_type value_type; 29724: typedef typename _Hashtable::mapped_type mapped_type; 29724: typedef typename _Hashtable::hasher hasher; 29724: typedef typename _Hashtable::key_equal key_equal; 29724: typedef typename _Hashtable::allocator_type allocator_type; 29724: 29724: 29724: 29724: 29724: typedef typename _Hashtable::pointer pointer; 29724: typedef typename _Hashtable::const_pointer const_pointer; 29724: typedef typename _Hashtable::reference reference; 29724: typedef typename _Hashtable::const_reference const_reference; 29724: typedef typename _Hashtable::iterator iterator; 29724: typedef typename _Hashtable::const_iterator const_iterator; 29724: typedef typename _Hashtable::local_iterator local_iterator; 29724: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29724: typedef typename _Hashtable::size_type size_type; 29724: typedef typename _Hashtable::difference_type difference_type; 29724: 29724: 29724: 29724: using node_type = typename _Hashtable::node_type; 29724: using insert_return_type = typename _Hashtable::insert_return_type; 29724: 29724: 29724: 29724: 29724: 29724: unordered_map() = default; 29724: # 157 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: explicit 29724: unordered_map(size_type __n, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__n, __hf, __eql, __a) 29724: { } 29724: # 178 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: unordered_map(_InputIterator __first, _InputIterator __last, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__first, __last, __n, __hf, __eql, __a) 29724: { } 29724: 29724: 29724: unordered_map(const unordered_map&) = default; 29724: 29724: 29724: unordered_map(unordered_map&&) = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: unordered_map(const allocator_type& __a) 29724: : _M_h(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_map(const unordered_map& __umap, 29724: const allocator_type& __a) 29724: : _M_h(__umap._M_h, __a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_map(unordered_map&& __umap, 29724: const allocator_type& __a) 29724: noexcept( noexcept(_Hashtable(std::move(__umap._M_h), __a)) ) 29724: : _M_h(std::move(__umap._M_h), __a) 29724: { } 29724: # 234 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: unordered_map(initializer_list __l, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__l, __n, __hf, __eql, __a) 29724: { } 29724: 29724: unordered_map(size_type __n, const allocator_type& __a) 29724: : unordered_map(__n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_map(size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_map(__n, __hf, key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_map(_InputIterator __first, _InputIterator __last, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_map(__first, __last, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_map(_InputIterator __first, _InputIterator __last, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_map(__first, __last, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: unordered_map(initializer_list __l, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_map(__l, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_map(initializer_list __l, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_map(__l, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: 29724: unordered_map& 29724: operator=(const unordered_map&) = default; 29724: 29724: 29724: unordered_map& 29724: operator=(unordered_map&&) = default; 29724: # 296 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: unordered_map& 29724: operator=(initializer_list __l) 29724: { 29724: _M_h = __l; 29724: return *this; 29724: } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _M_h.get_allocator(); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_h.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_h.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_h.max_size(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_h.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_h.end(); } 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_h.end(); } 29724: # 393 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: std::pair 29724: emplace(_Args&&... __args) 29724: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29724: # 424 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_h.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __key) 29724: { return _M_h.extract(__key); } 29724: 29724: 29724: insert_return_type 29724: insert(node_type&& __nh) 29724: { return _M_h._M_reinsert_node(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator, node_type&& __nh) 29724: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 29724: # 477 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: pair 29724: try_emplace(const key_type& __k, _Args&&... __args) 29724: { 29724: return _M_h.try_emplace(cend(), __k, std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: template 29724: pair 29724: try_emplace(key_type&& __k, _Args&&... __args) 29724: { 29724: return _M_h.try_emplace(cend(), std::move(__k), 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 521 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: iterator 29724: try_emplace(const_iterator __hint, const key_type& __k, 29724: _Args&&... __args) 29724: { 29724: return _M_h.try_emplace(__hint, __k, 29724: std::forward<_Args>(__args)...).first; 29724: } 29724: 29724: 29724: template 29724: iterator 29724: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 29724: { 29724: return _M_h.try_emplace(__hint, std::move(__k), 29724: std::forward<_Args>(__args)...).first; 29724: } 29724: # 558 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: std::pair 29724: insert(const value_type& __x) 29724: { return _M_h.insert(__x); } 29724: 29724: 29724: 29724: std::pair 29724: insert(value_type&& __x) 29724: { return _M_h.insert(std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, 29724: pair> 29724: insert(_Pair&& __x) 29724: { return _M_h.emplace(std::forward<_Pair>(__x)); } 29724: # 597 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: insert(const_iterator __hint, const value_type& __x) 29724: { return _M_h.insert(__hint, __x); } 29724: 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, value_type&& __x) 29724: { return _M_h.insert(__hint, std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(const_iterator __hint, _Pair&& __x) 29724: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 29724: # 622 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_h.insert(__first, __last); } 29724: # 634 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { _M_h.insert(__l); } 29724: # 660 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: pair 29724: insert_or_assign(const key_type& __k, _Obj&& __obj) 29724: { 29724: auto __ret = _M_h.try_emplace(cend(), __k, 29724: std::forward<_Obj>(__obj)); 29724: if (!__ret.second) 29724: __ret.first->second = std::forward<_Obj>(__obj); 29724: return __ret; 29724: } 29724: 29724: 29724: template 29724: pair 29724: insert_or_assign(key_type&& __k, _Obj&& __obj) 29724: { 29724: auto __ret = _M_h.try_emplace(cend(), std::move(__k), 29724: std::forward<_Obj>(__obj)); 29724: if (!__ret.second) 29724: __ret.first->second = std::forward<_Obj>(__obj); 29724: return __ret; 29724: } 29724: # 709 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: iterator 29724: insert_or_assign(const_iterator __hint, const key_type& __k, 29724: _Obj&& __obj) 29724: { 29724: auto __ret = _M_h.try_emplace(__hint, __k, std::forward<_Obj>(__obj)); 29724: if (!__ret.second) 29724: __ret.first->second = std::forward<_Obj>(__obj); 29724: return __ret.first; 29724: } 29724: 29724: 29724: template 29724: iterator 29724: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 29724: { 29724: auto __ret = _M_h.try_emplace(__hint, std::move(__k), 29724: std::forward<_Obj>(__obj)); 29724: if (!__ret.second) 29724: __ret.first->second = std::forward<_Obj>(__obj); 29724: return __ret.first; 29724: } 29724: # 747 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_h.erase(__position); } 29724: 29724: 29724: iterator 29724: erase(iterator __position) 29724: { return _M_h.erase(__position); } 29724: # 769 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_h.erase(__x); } 29724: # 787 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_h.erase(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_h.clear(); } 29724: # 811 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: swap(unordered_map& __x) 29724: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29724: { _M_h.swap(__x._M_h); } 29724: 29724: 29724: template 29724: friend class std::_Hash_merge_helper; 29724: 29724: template 29724: void 29724: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Hash_merge_helper; 29724: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Hash_merge_helper; 29724: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: hasher 29724: hash_function() const 29724: { return _M_h.hash_function(); } 29724: 29724: 29724: 29724: key_equal 29724: key_eq() const 29724: { return _M_h.key_eq(); } 29724: # 875 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_h.find(__x); } 29724: # 886 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_h.find(__x); } 29724: # 908 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_h.count(__x); } 29724: # 948 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_h.equal_range(__x); } 29724: # 960 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_h.equal_range(__x); } 29724: # 986 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: mapped_type& 29724: operator[](const key_type& __k) 29724: { return _M_h[__k]; } 29724: 29724: mapped_type& 29724: operator[](key_type&& __k) 29724: { return _M_h[std::move(__k)]; } 29724: # 1003 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: mapped_type& 29724: at(const key_type& __k) 29724: { return _M_h.at(__k); } 29724: 29724: const mapped_type& 29724: at(const key_type& __k) const 29724: { return _M_h.at(__k); } 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_count() const noexcept 29724: { return _M_h.bucket_count(); } 29724: 29724: 29724: size_type 29724: max_bucket_count() const noexcept 29724: { return _M_h.max_bucket_count(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_size(size_type __n) const 29724: { return _M_h.bucket_size(__n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket(const key_type& __key) const 29724: { return _M_h.bucket(__key); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: local_iterator 29724: begin(size_type __n) 29724: { return _M_h.begin(__n); } 29724: # 1059 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_local_iterator 29724: begin(size_type __n) const 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: cbegin(size_type __n) const 29724: { return _M_h.cbegin(__n); } 29724: # 1074 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: local_iterator 29724: end(size_type __n) 29724: { return _M_h.end(__n); } 29724: # 1085 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_local_iterator 29724: end(size_type __n) const 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: cend(size_type __n) const 29724: { return _M_h.cend(__n); } 29724: 29724: 29724: 29724: 29724: 29724: float 29724: load_factor() const noexcept 29724: { return _M_h.load_factor(); } 29724: 29724: 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_h.max_load_factor(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: max_load_factor(float __z) 29724: { _M_h.max_load_factor(__z); } 29724: # 1122 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: rehash(size_type __n) 29724: { _M_h.rehash(__n); } 29724: # 1133 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: reserve(size_type __n) 29724: { _M_h.reserve(__n); } 29724: 29724: template 29724: friend bool 29724: operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, 29724: const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); 29724: }; 29724: 29724: 29724: 29724: template>, 29724: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 29724: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(_InputIterator, _InputIterator, 29724: typename unordered_map::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29724: -> unordered_map<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, 29724: _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename _Pred = equal_to<_Key>, 29724: typename _Allocator = allocator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(initializer_list>, 29724: typename unordered_map::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29724: -> unordered_map<_Key, _Tp, _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(_InputIterator, _InputIterator, 29724: typename unordered_map::size_type, _Allocator) 29724: -> unordered_map<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, 29724: hash<__iter_key_t<_InputIterator>>, 29724: equal_to<__iter_key_t<_InputIterator>>, 29724: _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(_InputIterator, _InputIterator, _Allocator) 29724: -> unordered_map<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, 29724: hash<__iter_key_t<_InputIterator>>, 29724: equal_to<__iter_key_t<_InputIterator>>, 29724: _Allocator>; 29724: 29724: template, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(_InputIterator, _InputIterator, 29724: typename unordered_map::size_type, 29724: _Hash, _Allocator) 29724: -> unordered_map<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, _Hash, 29724: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template> 29724: unordered_map(initializer_list>, 29724: typename unordered_map::size_type, 29724: _Allocator) 29724: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29724: 29724: template> 29724: unordered_map(initializer_list>, _Allocator) 29724: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(initializer_list>, 29724: typename unordered_map::size_type, 29724: _Hash, _Allocator) 29724: -> unordered_map<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 29724: # 1251 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template, 29724: typename _Pred = equal_to<_Key>, 29724: typename _Alloc = allocator>> 29724: class unordered_multimap 29724: { 29724: typedef __ummap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 29724: _Hashtable _M_h; 29724: 29724: public: 29724: 29724: 29724: 29724: typedef typename _Hashtable::key_type key_type; 29724: typedef typename _Hashtable::value_type value_type; 29724: typedef typename _Hashtable::mapped_type mapped_type; 29724: typedef typename _Hashtable::hasher hasher; 29724: typedef typename _Hashtable::key_equal key_equal; 29724: typedef typename _Hashtable::allocator_type allocator_type; 29724: 29724: 29724: 29724: 29724: typedef typename _Hashtable::pointer pointer; 29724: typedef typename _Hashtable::const_pointer const_pointer; 29724: typedef typename _Hashtable::reference reference; 29724: typedef typename _Hashtable::const_reference const_reference; 29724: typedef typename _Hashtable::iterator iterator; 29724: typedef typename _Hashtable::const_iterator const_iterator; 29724: typedef typename _Hashtable::local_iterator local_iterator; 29724: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29724: typedef typename _Hashtable::size_type size_type; 29724: typedef typename _Hashtable::difference_type difference_type; 29724: 29724: 29724: 29724: using node_type = typename _Hashtable::node_type; 29724: 29724: 29724: 29724: 29724: 29724: unordered_multimap() = default; 29724: # 1302 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: explicit 29724: unordered_multimap(size_type __n, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__n, __hf, __eql, __a) 29724: { } 29724: # 1323 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: unordered_multimap(_InputIterator __first, _InputIterator __last, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__first, __last, __n, __hf, __eql, __a) 29724: { } 29724: 29724: 29724: unordered_multimap(const unordered_multimap&) = default; 29724: 29724: 29724: unordered_multimap(unordered_multimap&&) = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: unordered_multimap(const allocator_type& __a) 29724: : _M_h(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_multimap(const unordered_multimap& __ummap, 29724: const allocator_type& __a) 29724: : _M_h(__ummap._M_h, __a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_multimap(unordered_multimap&& __ummap, 29724: const allocator_type& __a) 29724: noexcept( noexcept(_Hashtable(std::move(__ummap._M_h), __a)) ) 29724: : _M_h(std::move(__ummap._M_h), __a) 29724: { } 29724: # 1379 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: unordered_multimap(initializer_list __l, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__l, __n, __hf, __eql, __a) 29724: { } 29724: 29724: unordered_multimap(size_type __n, const allocator_type& __a) 29724: : unordered_multimap(__n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_multimap(size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multimap(__n, __hf, key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_multimap(_InputIterator __first, _InputIterator __last, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_multimap(__first, __last, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_multimap(_InputIterator __first, _InputIterator __last, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multimap(__first, __last, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: unordered_multimap(initializer_list __l, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_multimap(__l, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_multimap(initializer_list __l, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multimap(__l, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: 29724: unordered_multimap& 29724: operator=(const unordered_multimap&) = default; 29724: 29724: 29724: unordered_multimap& 29724: operator=(unordered_multimap&&) = default; 29724: # 1441 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: unordered_multimap& 29724: operator=(initializer_list __l) 29724: { 29724: _M_h = __l; 29724: return *this; 29724: } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _M_h.get_allocator(); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_h.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_h.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_h.max_size(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_h.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_h.end(); } 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_h.end(); } 29724: # 1533 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: iterator 29724: emplace(_Args&&... __args) 29724: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29724: # 1560 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29724: # 1575 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: insert(const value_type& __x) 29724: { return _M_h.insert(__x); } 29724: 29724: iterator 29724: insert(value_type&& __x) 29724: { return _M_h.insert(std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(_Pair&& __x) 29724: { return _M_h.emplace(std::forward<_Pair>(__x)); } 29724: # 1609 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: insert(const_iterator __hint, const value_type& __x) 29724: { return _M_h.insert(__hint, __x); } 29724: 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, value_type&& __x) 29724: { return _M_h.insert(__hint, std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(const_iterator __hint, _Pair&& __x) 29724: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 29724: # 1634 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_h.insert(__first, __last); } 29724: # 1647 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { _M_h.insert(__l); } 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_h.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __key) 29724: { return _M_h.extract(__key); } 29724: 29724: 29724: iterator 29724: insert(node_type&& __nh) 29724: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 29724: # 1690 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_h.erase(__position); } 29724: 29724: 29724: iterator 29724: erase(iterator __position) 29724: { return _M_h.erase(__position); } 29724: # 1711 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_h.erase(__x); } 29724: # 1730 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_h.erase(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_h.clear(); } 29724: # 1754 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: swap(unordered_multimap& __x) 29724: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29724: { _M_h.swap(__x._M_h); } 29724: 29724: 29724: template 29724: friend class std::_Hash_merge_helper; 29724: 29724: template 29724: void 29724: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper 29724: = _Hash_merge_helper; 29724: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper 29724: = _Hash_merge_helper; 29724: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: hasher 29724: hash_function() const 29724: { return _M_h.hash_function(); } 29724: 29724: 29724: 29724: key_equal 29724: key_eq() const 29724: { return _M_h.key_eq(); } 29724: # 1820 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_h.find(__x); } 29724: # 1831 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_h.find(__x); } 29724: # 1849 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_h.count(__x); } 29724: # 1887 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_h.equal_range(__x); } 29724: # 1899 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_h.equal_range(__x); } 29724: # 1915 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: size_type 29724: bucket_count() const noexcept 29724: { return _M_h.bucket_count(); } 29724: 29724: 29724: size_type 29724: max_bucket_count() const noexcept 29724: { return _M_h.max_bucket_count(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_size(size_type __n) const 29724: { return _M_h.bucket_size(__n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket(const key_type& __key) const 29724: { return _M_h.bucket(__key); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: local_iterator 29724: begin(size_type __n) 29724: { return _M_h.begin(__n); } 29724: # 1959 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_local_iterator 29724: begin(size_type __n) const 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: cbegin(size_type __n) const 29724: { return _M_h.cbegin(__n); } 29724: # 1974 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: local_iterator 29724: end(size_type __n) 29724: { return _M_h.end(__n); } 29724: # 1985 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_local_iterator 29724: end(size_type __n) const 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: cend(size_type __n) const 29724: { return _M_h.cend(__n); } 29724: 29724: 29724: 29724: 29724: 29724: float 29724: load_factor() const noexcept 29724: { return _M_h.load_factor(); } 29724: 29724: 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_h.max_load_factor(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: max_load_factor(float __z) 29724: { _M_h.max_load_factor(__z); } 29724: # 2022 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: rehash(size_type __n) 29724: { _M_h.rehash(__n); } 29724: # 2033 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: reserve(size_type __n) 29724: { _M_h.reserve(__n); } 29724: 29724: template 29724: friend bool 29724: operator==(const unordered_multimap<_Key1, _Tp1, 29724: _Hash1, _Pred1, _Alloc1>&, 29724: const unordered_multimap<_Key1, _Tp1, 29724: _Hash1, _Pred1, _Alloc1>&); 29724: }; 29724: 29724: 29724: 29724: template>, 29724: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 29724: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(_InputIterator, _InputIterator, 29724: unordered_multimap::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), 29724: _Allocator = _Allocator()) 29724: -> unordered_multimap<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, _Hash, _Pred, 29724: _Allocator>; 29724: 29724: template, 29724: typename _Pred = equal_to<_Key>, 29724: typename _Allocator = allocator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(initializer_list>, 29724: unordered_multimap::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), 29724: _Allocator = _Allocator()) 29724: -> unordered_multimap<_Key, _Tp, _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(_InputIterator, _InputIterator, 29724: unordered_multimap::size_type, _Allocator) 29724: -> unordered_multimap<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, 29724: hash<__iter_key_t<_InputIterator>>, 29724: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(_InputIterator, _InputIterator, _Allocator) 29724: -> unordered_multimap<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, 29724: hash<__iter_key_t<_InputIterator>>, 29724: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(_InputIterator, _InputIterator, 29724: unordered_multimap::size_type, _Hash, 29724: _Allocator) 29724: -> unordered_multimap<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, _Hash, 29724: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template> 29724: unordered_multimap(initializer_list>, 29724: unordered_multimap::size_type, 29724: _Allocator) 29724: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29724: 29724: template> 29724: unordered_multimap(initializer_list>, _Allocator) 29724: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(initializer_list>, 29724: unordered_multimap::size_type, 29724: _Hash, _Allocator) 29724: -> unordered_multimap<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: template 29724: inline void 29724: swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: template 29724: inline bool 29724: operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: { return __x._M_h._M_equal(__y._M_h); } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: { return __x._M_h._M_equal(__y._M_h); } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hash_merge_helper< 29724: std::unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>, 29724: _Hash2, _Eq2> 29724: { 29724: private: 29724: template 29724: using unordered_map = std::unordered_map<_Tp...>; 29724: template 29724: using unordered_multimap = std::unordered_multimap<_Tp...>; 29724: 29724: friend unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29724: { return __map._M_h; } 29724: 29724: static auto& 29724: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29724: { return __map._M_h; } 29724: }; 29724: 29724: 29724: template 29724: struct _Hash_merge_helper< 29724: std::unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>, 29724: _Hash2, _Eq2> 29724: { 29724: private: 29724: template 29724: using unordered_map = std::unordered_map<_Tp...>; 29724: template 29724: using unordered_multimap = std::unordered_multimap<_Tp...>; 29724: 29724: friend unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29724: { return __map._M_h; } 29724: 29724: static auto& 29724: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29724: { return __map._M_h; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 42 "/usr/include/c++/14/unordered_map" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/erase_if.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/erase_if.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/erase_if.h" 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std 29724: { 29724: 29724: 29724: namespace __detail 29724: { 29724: template 29724: typename _Container::size_type 29724: __erase_nodes_if(_Container& __cont, _UnsafeContainer& __ucont, 29724: _Predicate __pred) 29724: { 29724: typename _Container::size_type __num = 0; 29724: for (auto __iter = __ucont.begin(), __last = __ucont.end(); 29724: __iter != __last;) 29724: { 29724: if (__pred(*__iter)) 29724: { 29724: __iter = __cont.erase(__iter); 29724: ++__num; 29724: } 29724: else 29724: ++__iter; 29724: } 29724: return __num; 29724: } 29724: } 29724: 29724: 29724: } 29724: # 44 "/usr/include/c++/14/unordered_map" 2 3 29724: # 56 "/usr/include/c++/14/unordered_map" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 57 "/usr/include/c++/14/unordered_map" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template, 29724: typename _Pred = std::equal_to<_Key>> 29724: using unordered_map 29724: = std::unordered_map<_Key, _Tp, _Hash, _Pred, 29724: polymorphic_allocator>>; 29724: template, 29724: typename _Pred = std::equal_to<_Key>> 29724: using unordered_multimap 29724: = std::unordered_multimap<_Key, _Tp, _Hash, _Pred, 29724: polymorphic_allocator>>; 29724: } 29724: 29724: } 29724: # 64 "/usr/include/c++/14/functional" 2 3 29724: # 1 "/usr/include/c++/14/vector" 1 3 29724: # 58 "/usr/include/c++/14/vector" 3 29724: 29724: # 59 "/usr/include/c++/14/vector" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_vector.h" 1 3 29724: # 77 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: struct _Vector_base 29724: { 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Tp>::other _Tp_alloc_type; 29724: typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer 29724: pointer; 29724: 29724: struct _Vector_impl_data 29724: { 29724: pointer _M_start; 29724: pointer _M_finish; 29724: pointer _M_end_of_storage; 29724: 29724: 29724: _Vector_impl_data() noexcept 29724: : _M_start(), _M_finish(), _M_end_of_storage() 29724: { } 29724: 29724: 29724: 29724: _Vector_impl_data(_Vector_impl_data&& __x) noexcept 29724: : _M_start(__x._M_start), _M_finish(__x._M_finish), 29724: _M_end_of_storage(__x._M_end_of_storage) 29724: { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } 29724: 29724: 29724: 29724: void 29724: _M_copy_data(_Vector_impl_data const& __x) noexcept 29724: { 29724: _M_start = __x._M_start; 29724: _M_finish = __x._M_finish; 29724: _M_end_of_storage = __x._M_end_of_storage; 29724: } 29724: 29724: 29724: void 29724: _M_swap_data(_Vector_impl_data& __x) noexcept 29724: { 29724: 29724: 29724: _Vector_impl_data __tmp; 29724: __tmp._M_copy_data(*this); 29724: _M_copy_data(__x); 29724: __x._M_copy_data(__tmp); 29724: } 29724: }; 29724: 29724: struct _Vector_impl 29724: : public _Tp_alloc_type, public _Vector_impl_data 29724: { 29724: 29724: _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 29724: 29724: 29724: 29724: 29724: : _Tp_alloc_type() 29724: { } 29724: 29724: 29724: _Vector_impl(_Tp_alloc_type const& __a) noexcept 29724: : _Tp_alloc_type(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: _Vector_impl(_Vector_impl&& __x) noexcept 29724: : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) 29724: { } 29724: 29724: 29724: _Vector_impl(_Tp_alloc_type&& __a) noexcept 29724: : _Tp_alloc_type(std::move(__a)) 29724: { } 29724: 29724: 29724: _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept 29724: : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) 29724: { } 29724: # 293 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: }; 29724: 29724: public: 29724: typedef _Alloc allocator_type; 29724: 29724: 29724: _Tp_alloc_type& 29724: _M_get_Tp_allocator() noexcept 29724: { return this->_M_impl; } 29724: 29724: 29724: const _Tp_alloc_type& 29724: _M_get_Tp_allocator() const noexcept 29724: { return this->_M_impl; } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_get_Tp_allocator()); } 29724: 29724: 29724: _Vector_base() = default; 29724: 29724: 29724: 29724: 29724: 29724: _Vector_base(const allocator_type& __a) noexcept 29724: : _M_impl(__a) { } 29724: 29724: 29724: 29724: 29724: _Vector_base(size_t __n) 29724: : _M_impl() 29724: { _M_create_storage(__n); } 29724: 29724: 29724: 29724: _Vector_base(size_t __n, const allocator_type& __a) 29724: : _M_impl(__a) 29724: { _M_create_storage(__n); } 29724: 29724: 29724: _Vector_base(_Vector_base&&) = default; 29724: 29724: 29724: 29724: 29724: _Vector_base(_Tp_alloc_type&& __a) noexcept 29724: : _M_impl(std::move(__a)) { } 29724: 29724: 29724: _Vector_base(_Vector_base&& __x, const allocator_type& __a) 29724: : _M_impl(__a) 29724: { 29724: if (__x.get_allocator() == __a) 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: else 29724: { 29724: size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; 29724: _M_create_storage(__n); 29724: } 29724: } 29724: 29724: 29724: 29724: _Vector_base(const allocator_type& __a, _Vector_base&& __x) 29724: : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) 29724: { } 29724: 29724: 29724: 29724: ~_Vector_base() noexcept 29724: { 29724: _M_deallocate(_M_impl._M_start, 29724: _M_impl._M_end_of_storage - _M_impl._M_start); 29724: } 29724: 29724: public: 29724: _Vector_impl _M_impl; 29724: 29724: 29724: pointer 29724: _M_allocate(size_t __n) 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 29724: return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); 29724: } 29724: 29724: 29724: void 29724: _M_deallocate(pointer __p, size_t __n) 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 29724: if (__p) 29724: _Tr::deallocate(_M_impl, __p, __n); 29724: } 29724: 29724: protected: 29724: 29724: 29724: void 29724: _M_create_storage(size_t __n) 29724: { 29724: this->_M_impl._M_start = this->_M_allocate(__n); 29724: this->_M_impl._M_finish = this->_M_impl._M_start; 29724: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29724: } 29724: }; 29724: # 427 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template > 29724: class vector : protected _Vector_base<_Tp, _Alloc> 29724: { 29724: # 440 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: static_assert(is_same::type, _Tp>::value, 29724: "std::vector must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _Vector_base<_Tp, _Alloc> _Base; 29724: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 29724: 29724: public: 29724: typedef _Tp value_type; 29724: typedef typename _Base::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: typedef __gnu_cxx::__normal_iterator iterator; 29724: typedef __gnu_cxx::__normal_iterator 29724: const_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Alloc allocator_type; 29724: 29724: private: 29724: 29724: static constexpr bool 29724: _S_nothrow_relocate(true_type) 29724: { 29724: return noexcept(std::__relocate_a(std::declval(), 29724: std::declval(), 29724: std::declval(), 29724: std::declval<_Tp_alloc_type&>())); 29724: } 29724: 29724: static constexpr bool 29724: _S_nothrow_relocate(false_type) 29724: { return false; } 29724: 29724: static constexpr bool 29724: _S_use_relocate() 29724: { 29724: 29724: 29724: 29724: return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); 29724: } 29724: 29724: static pointer 29724: _S_do_relocate(pointer __first, pointer __last, pointer __result, 29724: _Tp_alloc_type& __alloc, true_type) noexcept 29724: { 29724: return std::__relocate_a(__first, __last, __result, __alloc); 29724: } 29724: 29724: static pointer 29724: _S_do_relocate(pointer, pointer, pointer __result, 29724: _Tp_alloc_type&, false_type) noexcept 29724: { return __result; } 29724: 29724: static pointer 29724: _S_relocate(pointer __first, pointer __last, pointer __result, 29724: _Tp_alloc_type& __alloc) noexcept 29724: { 29724: 29724: 29724: return std::__relocate_a(__first, __last, __result, __alloc); 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: protected: 29724: using _Base::_M_allocate; 29724: using _Base::_M_deallocate; 29724: using _Base::_M_impl; 29724: using _Base::_M_get_Tp_allocator; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: vector() = default; 29724: # 540 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: explicit 29724: 29724: vector(const allocator_type& __a) noexcept 29724: : _Base(__a) { } 29724: # 554 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: explicit 29724: 29724: vector(size_type __n, const allocator_type& __a = allocator_type()) 29724: : _Base(_S_check_init_len(__n, __a), __a) 29724: { _M_default_initialize(__n); } 29724: # 568 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector(size_type __n, const value_type& __value, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(_S_check_init_len(__n, __a), __a) 29724: { _M_fill_initialize(__n, __value); } 29724: # 600 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector(const vector& __x) 29724: : _Base(__x.size(), 29724: _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) 29724: { 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_copy_a(__x.begin(), __x.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); 29724: } 29724: # 620 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: vector(vector&&) noexcept = default; 29724: 29724: 29724: 29724: vector(const vector& __x, const __type_identity_t& __a) 29724: : _Base(__x.size(), __a) 29724: { 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_copy_a(__x.begin(), __x.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); 29724: } 29724: 29724: private: 29724: 29724: vector(vector&& __rv, const allocator_type& __m, true_type) noexcept 29724: : _Base(__m, std::move(__rv)) 29724: { } 29724: 29724: 29724: vector(vector&& __rv, const allocator_type& __m, false_type) 29724: : _Base(__m) 29724: { 29724: if (__rv.get_allocator() == __m) 29724: this->_M_impl._M_swap_data(__rv._M_impl); 29724: else if (!__rv.empty()) 29724: { 29724: this->_M_create_storage(__rv.size()); 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_move_a(__rv.begin(), __rv.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); 29724: __rv.clear(); 29724: } 29724: } 29724: 29724: public: 29724: 29724: 29724: vector(vector&& __rv, const __type_identity_t& __m) 29724: noexcept( noexcept( 29724: vector(std::declval(), std::declval(), 29724: std::declval())) ) 29724: : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) 29724: { } 29724: # 677 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector(initializer_list __l, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_range_initialize(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: } 29724: # 704 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template> 29724: 29724: vector(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_range_initialize(__first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: # 732 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: ~vector() noexcept 29724: { 29724: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: ; 29724: } 29724: # 749 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector& 29724: operator=(const vector& __x); 29724: # 764 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector& 29724: operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) 29724: { 29724: constexpr bool __move_storage = 29724: _Alloc_traits::_S_propagate_on_move_assign() 29724: || _Alloc_traits::_S_always_equal(); 29724: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 29724: return *this; 29724: } 29724: # 786 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector& 29724: operator=(initializer_list __l) 29724: { 29724: this->_M_assign_aux(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: return *this; 29724: } 29724: # 806 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: assign(size_type __n, const value_type& __val) 29724: { _M_fill_assign(__n, __val); } 29724: # 824 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template> 29724: 29724: void 29724: assign(_InputIterator __first, _InputIterator __last) 29724: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29724: # 853 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: assign(initializer_list __l) 29724: { 29724: this->_M_assign_aux(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: } 29724: 29724: 29724: 29724: using _Base::get_allocator; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: begin() noexcept 29724: { return iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: end() noexcept 29724: { return iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: end() const noexcept 29724: { return const_iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cend() const noexcept 29724: { return const_iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: size() const noexcept 29724: { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: max_size() const noexcept 29724: { return _S_max_size(_M_get_Tp_allocator()); } 29724: # 1011 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: resize(size_type __new_size) 29724: { 29724: if (__new_size > size()) 29724: _M_default_append(__new_size - size()); 29724: else if (__new_size < size()) 29724: _M_erase_at_end(this->_M_impl._M_start + __new_size); 29724: } 29724: # 1032 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: resize(size_type __new_size, const value_type& __x) 29724: { 29724: if (__new_size > size()) 29724: _M_fill_insert(end(), __new_size - size(), __x); 29724: else if (__new_size < size()) 29724: _M_erase_at_end(this->_M_impl._M_start + __new_size); 29724: } 29724: # 1066 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: shrink_to_fit() 29724: { _M_shrink_to_fit(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: capacity() const noexcept 29724: { 29724: return size_type(this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_start); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: bool 29724: empty() const noexcept 29724: { return begin() == end(); } 29724: # 1110 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: reserve(size_type __n); 29724: # 1126 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: operator[](size_type __n) noexcept 29724: { 29724: ; 29724: return *(this->_M_impl._M_start + __n); 29724: } 29724: # 1145 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: [[__nodiscard__]] 29724: const_reference 29724: operator[](size_type __n) const noexcept 29724: { 29724: ; 29724: return *(this->_M_impl._M_start + __n); 29724: } 29724: 29724: protected: 29724: 29724: 29724: void 29724: _M_range_check(size_type __n) const 29724: { 29724: if (__n >= this->size()) 29724: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29724: 29724: , 29724: __n, this->size()); 29724: } 29724: 29724: public: 29724: # 1178 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: at(size_type __n) 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: # 1197 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: [[__nodiscard__]] 29724: const_reference 29724: at(size_type __n) const 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: front() noexcept 29724: { 29724: ; 29724: return *begin(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: front() const noexcept 29724: { 29724: ; 29724: return *begin(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: back() noexcept 29724: { 29724: ; 29724: return *(end() - 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: back() const noexcept 29724: { 29724: ; 29724: return *(end() - 1); 29724: } 29724: # 1260 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: [[__nodiscard__]] 29724: _Tp* 29724: data() noexcept 29724: { return _M_data_ptr(this->_M_impl._M_start); } 29724: 29724: [[__nodiscard__]] 29724: const _Tp* 29724: data() const noexcept 29724: { return _M_data_ptr(this->_M_impl._M_start); } 29724: # 1281 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: push_back(const value_type& __x) 29724: { 29724: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: __x); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: } 29724: else 29724: _M_realloc_append(__x); 29724: } 29724: 29724: 29724: 29724: void 29724: push_back(value_type&& __x) 29724: { emplace_back(std::move(__x)); } 29724: 29724: template 29724: 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_back(_Args&&... __args); 29724: # 1322 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: pop_back() noexcept 29724: { 29724: ; 29724: --this->_M_impl._M_finish; 29724: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 29724: ; 29724: } 29724: # 1345 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template 29724: 29724: iterator 29724: emplace(const_iterator __position, _Args&&... __args) 29724: { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } 29724: # 1362 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: insert(const_iterator __position, const value_type& __x); 29724: # 1393 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return _M_insert_rval(__position, std::move(__x)); } 29724: # 1411 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: insert(const_iterator __position, initializer_list __l) 29724: { 29724: auto __offset = __position - cbegin(); 29724: _M_range_insert(begin() + __offset, __l.begin(), __l.end(), 29724: std::random_access_iterator_tag()); 29724: return begin() + __offset; 29724: } 29724: # 1437 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: insert(const_iterator __position, size_type __n, const value_type& __x) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_fill_insert(begin() + __offset, __n, __x); 29724: return begin() + __offset; 29724: } 29724: # 1480 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template> 29724: 29724: iterator 29724: insert(const_iterator __position, _InputIterator __first, 29724: _InputIterator __last) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_range_insert(begin() + __offset, __first, __last, 29724: std::__iterator_category(__first)); 29724: return begin() + __offset; 29724: } 29724: # 1533 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: 29724: erase(const_iterator __position) 29724: { return _M_erase(begin() + (__position - cbegin())); } 29724: # 1561 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: 29724: erase(const_iterator __first, const_iterator __last) 29724: { 29724: const auto __beg = begin(); 29724: const auto __cbeg = cbegin(); 29724: return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); 29724: } 29724: # 1586 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: swap(vector& __x) noexcept 29724: { 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) std::__glibcxx_assert_fail(); } while (false) 29724: ; 29724: 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 29724: __x._M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_erase_at_end(this->_M_impl._M_start); } 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: pointer 29724: _M_allocate_and_copy(size_type __n, 29724: _ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: pointer __result = this->_M_allocate(__n); 29724: try 29724: { 29724: std::__uninitialized_copy_a(__first, __last, __result, 29724: _M_get_Tp_allocator()); 29724: return __result; 29724: } 29724: catch(...) 29724: { 29724: _M_deallocate(__result, __n); 29724: throw; 29724: } 29724: } 29724: # 1666 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template 29724: 29724: void 29724: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: try { 29724: for (; __first != __last; ++__first) 29724: 29724: emplace_back(*__first); 29724: 29724: 29724: 29724: } catch(...) { 29724: clear(); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: void 29724: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __n = std::distance(__first, __last); 29724: this->_M_impl._M_start 29724: = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); 29724: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_copy_a(__first, __last, 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: _M_fill_initialize(size_type __n, const value_type& __value) 29724: { 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, 29724: _M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: _M_default_initialize(size_type __n) 29724: { 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, 29724: _M_get_Tp_allocator()); 29724: } 29724: # 1732 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template 29724: 29724: void 29724: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 29724: { _M_fill_assign(__n, __val); } 29724: 29724: 29724: template 29724: 29724: void 29724: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 29724: __false_type) 29724: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29724: 29724: 29724: template 29724: 29724: void 29724: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag); 29724: 29724: 29724: template 29724: 29724: void 29724: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag); 29724: 29724: 29724: 29724: 29724: void 29724: _M_fill_assign(size_type __n, const value_type& __val); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, 29724: __true_type) 29724: { _M_fill_insert(__pos, __n, __val); } 29724: 29724: 29724: template 29724: 29724: void 29724: _M_insert_dispatch(iterator __pos, _InputIterator __first, 29724: _InputIterator __last, __false_type) 29724: { 29724: _M_range_insert(__pos, __first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: 29724: template 29724: 29724: void 29724: _M_range_insert(iterator __pos, _InputIterator __first, 29724: _InputIterator __last, std::input_iterator_tag); 29724: 29724: 29724: template 29724: 29724: void 29724: _M_range_insert(iterator __pos, _ForwardIterator __first, 29724: _ForwardIterator __last, std::forward_iterator_tag); 29724: 29724: 29724: 29724: 29724: void 29724: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 29724: 29724: 29724: 29724: 29724: void 29724: _M_default_append(size_type __n); 29724: 29724: 29724: bool 29724: _M_shrink_to_fit(); 29724: # 1834 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: struct _Temporary_value 29724: { 29724: template 29724: explicit 29724: _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) 29724: { 29724: _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: ~_Temporary_value() 29724: { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } 29724: 29724: value_type& 29724: _M_val() noexcept { return _M_storage._M_val; } 29724: 29724: private: 29724: _Tp* 29724: _M_ptr() noexcept { return std::__addressof(_M_storage._M_val); } 29724: 29724: union _Storage 29724: { 29724: constexpr _Storage() : _M_byte() { } 29724: ~_Storage() { } 29724: _Storage& operator=(const _Storage&) = delete; 29724: unsigned char _M_byte; 29724: _Tp _M_val; 29724: }; 29724: 29724: vector* _M_this; 29724: _Storage _M_storage; 29724: }; 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: _M_insert_aux(iterator __position, _Arg&& __arg); 29724: 29724: template 29724: 29724: void 29724: _M_realloc_insert(iterator __position, _Args&&... __args); 29724: 29724: template 29724: 29724: void 29724: _M_realloc_append(_Args&&... __args); 29724: 29724: 29724: 29724: iterator 29724: _M_insert_rval(const_iterator __position, value_type&& __v); 29724: 29724: 29724: template 29724: 29724: iterator 29724: _M_emplace_aux(const_iterator __position, _Args&&... __args); 29724: 29724: 29724: 29724: iterator 29724: _M_emplace_aux(const_iterator __position, value_type&& __v) 29724: { return _M_insert_rval(__position, std::move(__v)); } 29724: 29724: 29724: 29724: 29724: size_type 29724: _M_check_len(size_type __n, const char* __s) const 29724: { 29724: if (max_size() - size() < __n) 29724: __throw_length_error((__s)); 29724: 29724: const size_type __len = size() + (std::max)(size(), __n); 29724: return (__len < size() || __len > max_size()) ? max_size() : __len; 29724: } 29724: 29724: 29724: static size_type 29724: _S_check_init_len(size_type __n, const allocator_type& __a) 29724: { 29724: if (__n > _S_max_size(_Tp_alloc_type(__a))) 29724: __throw_length_error( 29724: ("cannot create std::vector larger than max_size()")); 29724: return __n; 29724: } 29724: 29724: static size_type 29724: _S_max_size(const _Tp_alloc_type& __a) noexcept 29724: { 29724: 29724: 29724: 29724: const size_t __diffmax 29724: = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 29724: const size_t __allocmax = _Alloc_traits::max_size(__a); 29724: return (std::min)(__diffmax, __allocmax); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: _M_erase_at_end(pointer __pos) noexcept 29724: { 29724: if (size_type __n = this->_M_impl._M_finish - __pos) 29724: { 29724: std::_Destroy(__pos, this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __pos; 29724: ; 29724: } 29724: } 29724: 29724: 29724: iterator 29724: _M_erase(iterator __position); 29724: 29724: 29724: iterator 29724: _M_erase(iterator __first, iterator __last); 29724: 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: void 29724: _M_move_assign(vector&& __x, true_type) noexcept 29724: { 29724: vector __tmp(get_allocator()); 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: __tmp._M_impl._M_swap_data(__x._M_impl); 29724: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: _M_move_assign(vector&& __x, false_type) 29724: { 29724: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 29724: _M_move_assign(std::move(__x), true_type()); 29724: else 29724: { 29724: 29724: 29724: this->_M_assign_aux(std::make_move_iterator(__x.begin()), 29724: std::make_move_iterator(__x.end()), 29724: std::random_access_iterator_tag()); 29724: __x.clear(); 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: _Up* 29724: _M_data_ptr(_Up* __ptr) const noexcept 29724: { return __ptr; } 29724: 29724: 29724: template 29724: 29724: typename std::pointer_traits<_Ptr>::element_type* 29724: _M_data_ptr(_Ptr __ptr) const 29724: { return empty() ? nullptr : std::__to_address(__ptr); } 29724: # 2025 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: }; 29724: 29724: 29724: template::value_type, 29724: typename _Allocator = allocator<_ValT>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireAllocator<_Allocator>> 29724: vector(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29724: -> vector<_ValT, _Allocator>; 29724: # 2047 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return (__x.size() == __y.size() 29724: && std::equal(__x.begin(), __x.end(), __y.begin())); } 29724: # 2087 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return std::lexicographical_compare(__x.begin(), __x.end(), 29724: __y.begin(), __y.end()); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: 29724: inline void 29724: swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: namespace __detail::__variant 29724: { 29724: template struct _Never_valueless_alt; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : std::is_nothrow_move_assignable> 29724: { }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 67 "/usr/include/c++/14/vector" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_bvector.h" 1 3 29724: # 68 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: typedef unsigned long _Bit_type; 29724: enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; 29724: 29724: __attribute__((__nonnull__)) 29724: 29724: void 29724: __fill_bvector_n(_Bit_type*, size_t, bool) noexcept; 29724: 29724: 29724: 29724: struct _Bit_reference 29724: { 29724: _Bit_type * _M_p; 29724: _Bit_type _M_mask; 29724: 29724: 29724: _Bit_reference(_Bit_type * __x, _Bit_type __y) 29724: : _M_p(__x), _M_mask(__y) { } 29724: 29724: 29724: _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } 29724: 29724: 29724: _Bit_reference(const _Bit_reference&) = default; 29724: 29724: 29724: [[__nodiscard__]] 29724: operator bool() const noexcept 29724: { return !!(*_M_p & _M_mask); } 29724: 29724: 29724: _Bit_reference& 29724: operator=(bool __x) noexcept 29724: { 29724: if (__x) 29724: *_M_p |= _M_mask; 29724: else 29724: *_M_p &= ~_M_mask; 29724: return *this; 29724: } 29724: # 125 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: _Bit_reference& 29724: operator=(const _Bit_reference& __x) noexcept 29724: { return *this = bool(__x); } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: operator==(const _Bit_reference& __x) const 29724: { return bool(*this) == bool(__x); } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: operator<(const _Bit_reference& __x) const 29724: { return !bool(*this) && bool(__x); } 29724: 29724: 29724: void 29724: flip() noexcept 29724: { *_M_p ^= _M_mask; } 29724: 29724: 29724: 29724: friend void 29724: swap(_Bit_reference __x, _Bit_reference __y) noexcept 29724: { 29724: bool __tmp = __x; 29724: __x = __y; 29724: __y = __tmp; 29724: } 29724: 29724: 29724: friend void 29724: swap(_Bit_reference __x, bool& __y) noexcept 29724: { 29724: bool __tmp = __x; 29724: __x = __y; 29724: __y = __tmp; 29724: } 29724: 29724: 29724: friend void 29724: swap(bool& __x, _Bit_reference __y) noexcept 29724: { 29724: bool __tmp = __x; 29724: __x = __y; 29724: __y = __tmp; 29724: } 29724: 29724: }; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: struct _Bit_iterator_base 29724: : public std::iterator 29724: { 29724: _Bit_type * _M_p; 29724: unsigned int _M_offset; 29724: 29724: inline __attribute__((__always_inline__)) 29724: void 29724: _M_assume_normalized() const 29724: { 29724: 29724: unsigned int __ofst = _M_offset; 29724: __attribute__ ((__assume__ (__ofst < unsigned(_S_word_bit)))); 29724: 29724: } 29724: 29724: 29724: _Bit_iterator_base(_Bit_type * __x, unsigned int __y) 29724: : _M_p(__x), _M_offset(__y) { } 29724: 29724: 29724: void 29724: _M_bump_up() 29724: { 29724: _M_assume_normalized(); 29724: if (_M_offset++ == int(_S_word_bit) - 1) 29724: { 29724: _M_offset = 0; 29724: ++_M_p; 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_bump_down() 29724: { 29724: _M_assume_normalized(); 29724: if (_M_offset-- == 0) 29724: { 29724: _M_offset = int(_S_word_bit) - 1; 29724: --_M_p; 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_incr(ptrdiff_t __i) 29724: { 29724: _M_assume_normalized(); 29724: difference_type __n = __i + _M_offset; 29724: _M_p += __n / int(_S_word_bit); 29724: __n = __n % int(_S_word_bit); 29724: if (__n < 0) 29724: { 29724: __n += int(_S_word_bit); 29724: --_M_p; 29724: } 29724: _M_offset = static_cast(__n); 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { 29724: __x._M_assume_normalized(); 29724: __y._M_assume_normalized(); 29724: return __x._M_p == __y._M_p && __x._M_offset == __y._M_offset; 29724: } 29724: # 260 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { 29724: __x._M_assume_normalized(); 29724: __y._M_assume_normalized(); 29724: return __x._M_p < __y._M_p 29724: || (__x._M_p == __y._M_p && __x._M_offset < __y._M_offset); 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { return !(__x == __y); } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { return __y < __x; } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { return !(__y < __x); } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: friend ptrdiff_t 29724: operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { 29724: __x._M_assume_normalized(); 29724: __y._M_assume_normalized(); 29724: return (int(_S_word_bit) * (__x._M_p - __y._M_p) 29724: + __x._M_offset - __y._M_offset); 29724: } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: struct _Bit_iterator : public _Bit_iterator_base 29724: { 29724: typedef _Bit_reference reference; 29724: 29724: 29724: 29724: typedef _Bit_reference* pointer; 29724: 29724: typedef _Bit_iterator iterator; 29724: 29724: 29724: _Bit_iterator() : _Bit_iterator_base(0, 0) { } 29724: 29724: 29724: _Bit_iterator(_Bit_type * __x, unsigned int __y) 29724: : _Bit_iterator_base(__x, __y) { } 29724: 29724: 29724: iterator 29724: _M_const_cast() const 29724: { return *this; } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator*() const 29724: { 29724: _M_assume_normalized(); 29724: return reference(_M_p, 1UL << _M_offset); 29724: } 29724: 29724: 29724: iterator& 29724: operator++() 29724: { 29724: _M_bump_up(); 29724: return *this; 29724: } 29724: 29724: 29724: iterator 29724: operator++(int) 29724: { 29724: iterator __tmp = *this; 29724: _M_bump_up(); 29724: return __tmp; 29724: } 29724: 29724: 29724: iterator& 29724: operator--() 29724: { 29724: _M_bump_down(); 29724: return *this; 29724: } 29724: 29724: 29724: iterator 29724: operator--(int) 29724: { 29724: iterator __tmp = *this; 29724: _M_bump_down(); 29724: return __tmp; 29724: } 29724: 29724: 29724: iterator& 29724: operator+=(difference_type __i) 29724: { 29724: _M_incr(__i); 29724: return *this; 29724: } 29724: 29724: 29724: iterator& 29724: operator-=(difference_type __i) 29724: { 29724: *this += -__i; 29724: return *this; 29724: } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator[](difference_type __i) const 29724: { return *(*this + __i); } 29724: 29724: [[__nodiscard__]] 29724: friend iterator 29724: operator+(const iterator& __x, difference_type __n) 29724: { 29724: iterator __tmp = __x; 29724: __tmp += __n; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend iterator 29724: operator+(difference_type __n, const iterator& __x) 29724: { return __x + __n; } 29724: 29724: [[__nodiscard__]] 29724: friend iterator 29724: operator-(const iterator& __x, difference_type __n) 29724: { 29724: iterator __tmp = __x; 29724: __tmp -= __n; 29724: return __tmp; 29724: } 29724: }; 29724: 29724: struct _Bit_const_iterator : public _Bit_iterator_base 29724: { 29724: typedef bool reference; 29724: typedef bool const_reference; 29724: 29724: 29724: 29724: typedef const bool* pointer; 29724: 29724: typedef _Bit_const_iterator const_iterator; 29724: 29724: 29724: _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } 29724: 29724: 29724: _Bit_const_iterator(_Bit_type * __x, unsigned int __y) 29724: : _Bit_iterator_base(__x, __y) { } 29724: 29724: 29724: _Bit_const_iterator(const _Bit_iterator& __x) 29724: : _Bit_iterator_base(__x._M_p, __x._M_offset) { } 29724: 29724: 29724: _Bit_iterator 29724: _M_const_cast() const 29724: { return _Bit_iterator(_M_p, _M_offset); } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: operator*() const 29724: { 29724: _M_assume_normalized(); 29724: return _Bit_reference(_M_p, 1UL << _M_offset); 29724: } 29724: 29724: 29724: const_iterator& 29724: operator++() 29724: { 29724: _M_bump_up(); 29724: return *this; 29724: } 29724: 29724: 29724: const_iterator 29724: operator++(int) 29724: { 29724: const_iterator __tmp = *this; 29724: _M_bump_up(); 29724: return __tmp; 29724: } 29724: 29724: 29724: const_iterator& 29724: operator--() 29724: { 29724: _M_bump_down(); 29724: return *this; 29724: } 29724: 29724: 29724: const_iterator 29724: operator--(int) 29724: { 29724: const_iterator __tmp = *this; 29724: _M_bump_down(); 29724: return __tmp; 29724: } 29724: 29724: 29724: const_iterator& 29724: operator+=(difference_type __i) 29724: { 29724: _M_incr(__i); 29724: return *this; 29724: } 29724: 29724: 29724: const_iterator& 29724: operator-=(difference_type __i) 29724: { 29724: *this += -__i; 29724: return *this; 29724: } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: operator[](difference_type __i) const 29724: { return *(*this + __i); } 29724: 29724: [[__nodiscard__]] 29724: friend const_iterator 29724: operator+(const const_iterator& __x, difference_type __n) 29724: { 29724: const_iterator __tmp = __x; 29724: __tmp += __n; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend const_iterator 29724: operator-(const const_iterator& __x, difference_type __n) 29724: { 29724: const_iterator __tmp = __x; 29724: __tmp -= __n; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend const_iterator 29724: operator+(difference_type __n, const const_iterator& __x) 29724: { return __x + __n; } 29724: }; 29724: 29724: template 29724: struct _Bvector_base 29724: { 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Bit_type>::other _Bit_alloc_type; 29724: typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> 29724: _Bit_alloc_traits; 29724: typedef typename _Bit_alloc_traits::pointer _Bit_pointer; 29724: 29724: struct _Bvector_impl_data 29724: { 29724: 29724: _Bit_iterator _M_start; 29724: # 547 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: _Bit_iterator _M_finish; 29724: _Bit_pointer _M_end_of_storage; 29724: 29724: 29724: _Bvector_impl_data() noexcept 29724: : _M_start(), _M_finish(), _M_end_of_storage() 29724: { } 29724: 29724: 29724: _Bvector_impl_data(const _Bvector_impl_data&) = default; 29724: 29724: _Bvector_impl_data& 29724: operator=(const _Bvector_impl_data&) = default; 29724: 29724: 29724: _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept 29724: : _Bvector_impl_data(__x) 29724: { __x._M_reset(); } 29724: 29724: 29724: void 29724: _M_move_data(_Bvector_impl_data&& __x) noexcept 29724: { 29724: *this = __x; 29724: __x._M_reset(); 29724: } 29724: 29724: 29724: 29724: void 29724: _M_reset() noexcept 29724: { *this = _Bvector_impl_data(); } 29724: 29724: 29724: void 29724: _M_swap_data(_Bvector_impl_data& __x) noexcept 29724: { 29724: 29724: 29724: std::swap(*this, __x); 29724: } 29724: }; 29724: 29724: struct _Bvector_impl 29724: : public _Bit_alloc_type, public _Bvector_impl_data 29724: { 29724: 29724: _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) 29724: 29724: 29724: 29724: 29724: : _Bit_alloc_type() 29724: { } 29724: 29724: 29724: _Bvector_impl(const _Bit_alloc_type& __a) noexcept 29724: : _Bit_alloc_type(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: _Bvector_impl(_Bvector_impl&& __x) noexcept 29724: : _Bit_alloc_type(std::move(__x)), _Bvector_impl_data(std::move(__x)) 29724: { } 29724: 29724: 29724: _Bvector_impl(_Bit_alloc_type&& __a, _Bvector_impl&& __x) noexcept 29724: : _Bit_alloc_type(std::move(__a)), _Bvector_impl_data(std::move(__x)) 29724: { } 29724: 29724: 29724: 29724: _Bit_type* 29724: _M_end_addr() const noexcept 29724: { 29724: if (this->_M_end_of_storage) 29724: return std::__addressof(this->_M_end_of_storage[-1]) + 1; 29724: return 0; 29724: } 29724: }; 29724: 29724: public: 29724: typedef _Alloc allocator_type; 29724: 29724: 29724: _Bit_alloc_type& 29724: _M_get_Bit_allocator() noexcept 29724: { return this->_M_impl; } 29724: 29724: 29724: const _Bit_alloc_type& 29724: _M_get_Bit_allocator() const noexcept 29724: { return this->_M_impl; } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_get_Bit_allocator()); } 29724: 29724: 29724: _Bvector_base() = default; 29724: 29724: 29724: 29724: 29724: 29724: _Bvector_base(const allocator_type& __a) 29724: : _M_impl(_Bit_alloc_type(__a)) { } 29724: 29724: 29724: _Bvector_base(_Bvector_base&&) = default; 29724: 29724: 29724: _Bvector_base(_Bvector_base&& __x, const allocator_type& __a) noexcept 29724: : _M_impl(_Bit_alloc_type(__a), std::move(__x._M_impl)) 29724: { } 29724: 29724: 29724: 29724: ~_Bvector_base() 29724: { this->_M_deallocate(); } 29724: 29724: protected: 29724: _Bvector_impl _M_impl; 29724: 29724: 29724: _Bit_pointer 29724: _M_allocate(size_t __n) 29724: { 29724: _Bit_pointer __p = _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); 29724: # 688 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: return __p; 29724: } 29724: 29724: 29724: void 29724: _M_deallocate() 29724: { 29724: if (_M_impl._M_start._M_p) 29724: { 29724: const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; 29724: _Bit_alloc_traits::deallocate(_M_impl, 29724: _M_impl._M_end_of_storage - __n, 29724: __n); 29724: _M_impl._M_reset(); 29724: } 29724: } 29724: 29724: 29724: 29724: void 29724: _M_move_data(_Bvector_base&& __x) noexcept 29724: { _M_impl._M_move_data(std::move(__x._M_impl)); } 29724: 29724: 29724: constexpr 29724: static size_t 29724: _S_nword(size_t __n) 29724: { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } 29724: }; 29724: # 739 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: template 29724: class vector : protected _Bvector_base<_Alloc> 29724: { 29724: typedef _Bvector_base<_Alloc> _Base; 29724: typedef typename _Base::_Bit_pointer _Bit_pointer; 29724: typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; 29724: 29724: 29724: friend struct std::hash; 29724: 29724: 29724: public: 29724: typedef bool value_type; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Bit_reference reference; 29724: typedef bool const_reference; 29724: typedef _Bit_reference* pointer; 29724: typedef const bool* const_pointer; 29724: typedef _Bit_iterator iterator; 29724: typedef _Bit_const_iterator const_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef _Alloc allocator_type; 29724: 29724: 29724: allocator_type 29724: get_allocator() const 29724: { return _Base::get_allocator(); } 29724: 29724: protected: 29724: using _Base::_M_allocate; 29724: using _Base::_M_deallocate; 29724: using _Base::_S_nword; 29724: using _Base::_M_get_Bit_allocator; 29724: 29724: public: 29724: 29724: vector() = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: vector(const allocator_type& __a) 29724: : _Base(__a) { } 29724: 29724: 29724: 29724: explicit 29724: vector(size_type __n, const allocator_type& __a = allocator_type()) 29724: : vector(__n, false, __a) 29724: { } 29724: 29724: 29724: vector(size_type __n, const bool& __value, 29724: const allocator_type& __a = allocator_type()) 29724: 29724: 29724: 29724: 29724: 29724: : _Base(__a) 29724: { 29724: _M_initialize(__n); 29724: _M_initialize_value(__value); 29724: } 29724: 29724: 29724: vector(const vector& __x) 29724: : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) 29724: { 29724: const_iterator __xbegin = __x.begin(), __xend = __x.end(); 29724: _M_initialize(__x.size()); 29724: _M_copy_aligned(__xbegin, __xend, begin()); 29724: } 29724: 29724: 29724: vector(vector&&) = default; 29724: 29724: private: 29724: 29724: vector(vector&& __x, const allocator_type& __a, true_type) noexcept 29724: : _Base(std::move(__x), __a) 29724: { } 29724: 29724: 29724: vector(vector&& __x, const allocator_type& __a, false_type) 29724: : _Base(__a) 29724: { 29724: if (__x.get_allocator() == __a) 29724: this->_M_move_data(std::move(__x)); 29724: else 29724: { 29724: _M_initialize(__x.size()); 29724: _M_copy_aligned(__x.begin(), __x.end(), begin()); 29724: __x.clear(); 29724: } 29724: } 29724: 29724: public: 29724: 29724: vector(vector&& __x, const __type_identity_t& __a) 29724: noexcept(_Bit_alloc_traits::_S_always_equal()) 29724: : vector(std::move(__x), __a, 29724: typename _Bit_alloc_traits::is_always_equal{}) 29724: { } 29724: 29724: 29724: vector(const vector& __x, const __type_identity_t& __a) 29724: : _Base(__a) 29724: { 29724: _M_initialize(__x.size()); 29724: _M_copy_aligned(__x.begin(), __x.end(), begin()); 29724: } 29724: 29724: 29724: vector(initializer_list __l, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_initialize_range(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: } 29724: 29724: 29724: 29724: template> 29724: 29724: vector(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_initialize_range(__first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: # 889 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: ~vector() noexcept { } 29724: 29724: 29724: vector& 29724: operator=(const vector& __x) 29724: { 29724: if (&__x == this) 29724: return *this; 29724: 29724: if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) 29724: { 29724: this->_M_deallocate(); 29724: std::__alloc_on_copy(_M_get_Bit_allocator(), 29724: __x._M_get_Bit_allocator()); 29724: _M_initialize(__x.size()); 29724: } 29724: else 29724: std::__alloc_on_copy(_M_get_Bit_allocator(), 29724: __x._M_get_Bit_allocator()); 29724: } 29724: 29724: if (__x.size() > capacity()) 29724: { 29724: this->_M_deallocate(); 29724: _M_initialize(__x.size()); 29724: } 29724: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 29724: begin()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: vector& 29724: operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) 29724: { 29724: if (_Bit_alloc_traits::_S_propagate_on_move_assign() 29724: || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) 29724: { 29724: this->_M_deallocate(); 29724: this->_M_move_data(std::move(__x)); 29724: std::__alloc_on_move(_M_get_Bit_allocator(), 29724: __x._M_get_Bit_allocator()); 29724: } 29724: else 29724: { 29724: if (__x.size() > capacity()) 29724: { 29724: this->_M_deallocate(); 29724: _M_initialize(__x.size()); 29724: } 29724: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 29724: begin()); 29724: __x.clear(); 29724: } 29724: return *this; 29724: } 29724: 29724: 29724: vector& 29724: operator=(initializer_list __l) 29724: { 29724: this->assign(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: assign(size_type __n, const bool& __x) 29724: { _M_fill_assign(__n, __x); } 29724: 29724: 29724: template> 29724: 29724: void 29724: assign(_InputIterator __first, _InputIterator __last) 29724: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29724: # 987 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: void 29724: assign(initializer_list __l) 29724: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: begin() noexcept 29724: { return iterator(this->_M_impl._M_start._M_p, 0); } 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: end() noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: end() const noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(end()); } 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(begin()); } 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cend() const noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: size() const noexcept 29724: { return size_type(end() - begin()); } 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: max_size() const noexcept 29724: { 29724: const size_type __isize = 29724: __gnu_cxx::__numeric_traits::__max 29724: - int(_S_word_bit) + 1; 29724: const size_type __asize 29724: = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); 29724: return (__asize <= __isize / int(_S_word_bit) 29724: ? __asize * int(_S_word_bit) : __isize); 29724: } 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: capacity() const noexcept 29724: { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) 29724: - begin()); } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: empty() const noexcept 29724: { return begin() == end(); } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator[](size_type __n) 29724: { return begin()[__n]; } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: operator[](size_type __n) const 29724: { return begin()[__n]; } 29724: 29724: protected: 29724: 29724: void 29724: _M_range_check(size_type __n) const 29724: { 29724: if (__n >= this->size()) 29724: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29724: 29724: , 29724: __n, this->size()); 29724: } 29724: 29724: public: 29724: [[__nodiscard__]] 29724: reference 29724: at(size_type __n) 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: at(size_type __n) const 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: 29724: 29724: void 29724: reserve(size_type __n) 29724: { 29724: if (__n > max_size()) 29724: __throw_length_error(("vector::reserve")); 29724: if (capacity() < __n) 29724: _M_reallocate(__n); 29724: } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: front() 29724: { return *begin(); } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: front() const 29724: { return *begin(); } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: back() 29724: { return *(end() - 1); } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: back() const 29724: { return *(end() - 1); } 29724: 29724: 29724: void 29724: push_back(bool __x) 29724: { 29724: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 29724: *this->_M_impl._M_finish++ = __x; 29724: else 29724: _M_insert_aux(end(), __x); 29724: } 29724: 29724: 29724: void 29724: swap(vector& __x) noexcept 29724: { 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(_Bit_alloc_traits::propagate_on_container_swap::value || _M_get_Bit_allocator() == __x._M_get_Bit_allocator())) std::__glibcxx_assert_fail(); } while (false) 29724: ; 29724: 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), 29724: __x._M_get_Bit_allocator()); 29724: } 29724: 29724: 29724: 29724: static void 29724: swap(reference __x, reference __y) noexcept 29724: { 29724: bool __tmp = __x; 29724: __x = __y; 29724: __y = __tmp; 29724: } 29724: 29724: 29724: iterator 29724: 29724: insert(const_iterator __position, const bool& __x) 29724: 29724: 29724: 29724: { 29724: const difference_type __n = __position - begin(); 29724: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() 29724: && __position == end()) 29724: *this->_M_impl._M_finish++ = __x; 29724: else 29724: _M_insert_aux(__position._M_const_cast(), __x); 29724: return begin() + __n; 29724: } 29724: 29724: 29724: __attribute__ ((__deprecated__ ("use '" "insert(position, false)" "' instead"))) 29724: iterator 29724: insert(const_iterator __position) 29724: { return this->insert(__position._M_const_cast(), false); } 29724: 29724: 29724: 29724: template> 29724: 29724: iterator 29724: insert(const_iterator __position, 29724: _InputIterator __first, _InputIterator __last) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_insert_range(__position._M_const_cast(), 29724: __first, __last, 29724: std::__iterator_category(__first)); 29724: return begin() + __offset; 29724: } 29724: # 1237 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: iterator 29724: insert(const_iterator __position, size_type __n, const bool& __x) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_fill_insert(__position._M_const_cast(), __n, __x); 29724: return begin() + __offset; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: insert(const_iterator __p, initializer_list __l) 29724: { return this->insert(__p, __l.begin(), __l.end()); } 29724: 29724: 29724: 29724: void 29724: pop_back() 29724: { --this->_M_impl._M_finish; } 29724: 29724: 29724: iterator 29724: 29724: erase(const_iterator __position) 29724: 29724: 29724: 29724: { return _M_erase(__position._M_const_cast()); } 29724: 29724: 29724: iterator 29724: 29724: erase(const_iterator __first, const_iterator __last) 29724: 29724: 29724: 29724: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 29724: 29724: 29724: void 29724: resize(size_type __new_size, bool __x = bool()) 29724: { 29724: if (__new_size < size()) 29724: _M_erase_at_end(begin() + difference_type(__new_size)); 29724: else 29724: insert(end(), __new_size - size(), __x); 29724: } 29724: 29724: 29724: 29724: void 29724: shrink_to_fit() 29724: { _M_shrink_to_fit(); } 29724: 29724: 29724: 29724: void 29724: flip() noexcept 29724: { 29724: _Bit_type * const __end = this->_M_impl._M_end_addr(); 29724: for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) 29724: *__p = ~*__p; 29724: } 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_erase_at_end(begin()); } 29724: 29724: 29724: template 29724: 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_back(_Args&&... __args) 29724: { 29724: push_back(bool(std::forward<_Args>(__args)...)); 29724: 29724: return back(); 29724: 29724: } 29724: 29724: template 29724: 29724: iterator 29724: emplace(const_iterator __pos, _Args&&... __args) 29724: { return insert(__pos, bool(std::forward<_Args>(__args)...)); } 29724: 29724: 29724: protected: 29724: 29724: 29724: iterator 29724: _M_copy_aligned(const_iterator __first, const_iterator __last, 29724: iterator __result) 29724: { 29724: _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); 29724: return std::copy(const_iterator(__last._M_p, 0), __last, 29724: iterator(__q, 0)); 29724: } 29724: 29724: 29724: void 29724: _M_initialize(size_type __n) 29724: { 29724: if (__n) 29724: { 29724: _Bit_pointer __q = this->_M_allocate(__n); 29724: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 29724: iterator __start = iterator(std::__addressof(*__q), 0); 29724: this->_M_impl._M_start = __start; 29724: this->_M_impl._M_finish = __start + difference_type(__n); 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_initialize_value(bool __x) noexcept 29724: { 29724: if (_Bit_type* __p = this->_M_impl._M_start._M_p) 29724: __fill_bvector_n(__p, this->_M_impl._M_end_addr() - __p, __x); 29724: } 29724: 29724: 29724: void 29724: _M_reallocate(size_type __n); 29724: 29724: 29724: 29724: bool 29724: _M_shrink_to_fit(); 29724: # 1398 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: template 29724: 29724: void 29724: _M_initialize_range(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: for (; __first != __last; ++__first) 29724: push_back(*__first); 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __n = std::distance(__first, __last); 29724: _M_initialize(__n); 29724: std::copy(__first, __last, begin()); 29724: } 29724: # 1434 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: void 29724: _M_fill_assign(size_t __n, bool __x) 29724: { 29724: if (__n > size()) 29724: { 29724: _M_initialize_value(__x); 29724: insert(end(), __n - size(), __x); 29724: } 29724: else 29724: { 29724: _M_erase_at_end(begin() + __n); 29724: _M_initialize_value(__x); 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: iterator __cur = begin(); 29724: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 29724: *__cur = *__first; 29724: if (__first == __last) 29724: _M_erase_at_end(__cur); 29724: else 29724: insert(end(), __first, __last); 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __len = std::distance(__first, __last); 29724: if (__len < size()) 29724: _M_erase_at_end(std::copy(__first, __last, begin())); 29724: else 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, size()); 29724: std::copy(__first, __mid, begin()); 29724: insert(end(), __mid, __last); 29724: } 29724: } 29724: # 1501 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: void 29724: _M_fill_insert(iterator __position, size_type __n, bool __x); 29724: 29724: template 29724: 29724: void 29724: _M_insert_range(iterator __pos, _InputIterator __first, 29724: _InputIterator __last, std::input_iterator_tag) 29724: { 29724: for (; __first != __last; ++__first) 29724: { 29724: __pos = insert(__pos, *__first); 29724: ++__pos; 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_insert_range(iterator __position, _ForwardIterator __first, 29724: _ForwardIterator __last, std::forward_iterator_tag); 29724: 29724: 29724: void 29724: _M_insert_aux(iterator __position, bool __x); 29724: 29724: 29724: size_type 29724: _M_check_len(size_type __n, const char* __s) const 29724: { 29724: if (max_size() - size() < __n) 29724: __throw_length_error((__s)); 29724: 29724: const size_type __len = size() + std::max(size(), __n); 29724: return (__len < size() || __len > max_size()) ? max_size() : __len; 29724: } 29724: 29724: 29724: void 29724: _M_erase_at_end(iterator __pos) 29724: { this->_M_impl._M_finish = __pos; } 29724: 29724: 29724: iterator 29724: _M_erase(iterator __pos); 29724: 29724: 29724: iterator 29724: _M_erase(iterator __first, iterator __last); 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void data() = delete; 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: inline void 29724: __fill_bvector(_Bit_type* __v, unsigned int __first, unsigned int __last, 29724: bool __x) noexcept 29724: { 29724: const _Bit_type __fmask = ~0ul << __first; 29724: const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); 29724: const _Bit_type __mask = __fmask & __lmask; 29724: 29724: if (__x) 29724: *__v |= __mask; 29724: else 29724: *__v &= ~__mask; 29724: } 29724: 29724: 29724: __attribute__((__nonnull__)) 29724: 29724: inline void 29724: __fill_bvector_n(_Bit_type* __p, size_t __n, bool __x) noexcept 29724: { 29724: # 1597 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: __builtin_memset(__p, __x ? ~0 : 0, __n * sizeof(_Bit_type)); 29724: } 29724: 29724: 29724: 29724: inline void 29724: __fill_a1(std::_Bit_iterator __first, 29724: std::_Bit_iterator __last, const bool& __x) 29724: { 29724: if (__first._M_p != __last._M_p) 29724: { 29724: _Bit_type* __first_p = __first._M_p; 29724: if (__first._M_offset != 0) 29724: __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); 29724: 29724: __fill_bvector_n(__first_p, __last._M_p - __first_p, __x); 29724: 29724: if (__last._M_offset != 0) 29724: __fill_bvector(__last._M_p, 0, __last._M_offset, __x); 29724: } 29724: else if (__first._M_offset != __last._M_offset) 29724: __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: struct hash> 29724: : public __hash_base> 29724: { 29724: size_t 29724: operator()(const std::vector&) const noexcept; 29724: }; 29724: 29724: 29724: 29724: } 29724: # 68 "/usr/include/c++/14/vector" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/vector.tcc" 1 3 29724: # 59 "/usr/include/c++/14/bits/vector.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: reserve(size_type __n) 29724: { 29724: if (__n > this->max_size()) 29724: __throw_length_error(("vector::reserve")); 29724: if (this->capacity() < __n) 29724: { 29724: const size_type __old_size = size(); 29724: pointer __tmp; 29724: 29724: if constexpr (_S_use_relocate()) 29724: { 29724: __tmp = this->_M_allocate(__n); 29724: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 29724: __tmp, _M_get_Tp_allocator()); 29724: } 29724: else 29724: 29724: { 29724: __tmp = _M_allocate_and_copy(__n, 29724: std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), 29724: std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); 29724: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: } 29724: ; 29724: _M_deallocate(this->_M_impl._M_start, 29724: this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_start); 29724: this->_M_impl._M_start = __tmp; 29724: this->_M_impl._M_finish = __tmp + __old_size; 29724: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29724: } 29724: } 29724: 29724: 29724: template 29724: template 29724: 29724: 29724: typename vector<_Tp, _Alloc>::reference 29724: 29724: 29724: 29724: vector<_Tp, _Alloc>:: 29724: emplace_back(_Args&&... __args) 29724: { 29724: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: std::forward<_Args>(__args)...); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: } 29724: else 29724: _M_realloc_append(std::forward<_Args>(__args)...); 29724: 29724: return back(); 29724: 29724: } 29724: 29724: 29724: template 29724: 29724: typename vector<_Tp, _Alloc>::iterator 29724: vector<_Tp, _Alloc>:: 29724: 29724: insert(const_iterator __position, const value_type& __x) 29724: 29724: 29724: 29724: { 29724: const size_type __n = __position - begin(); 29724: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__position != const_iterator())) std::__glibcxx_assert_fail(); } while (false); 29724: if (!(__position != const_iterator())) 29724: __builtin_unreachable(); 29724: 29724: if (__position == end()) 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: __x); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: } 29724: else 29724: { 29724: 29724: const auto __pos = begin() + (__position - cbegin()); 29724: 29724: 29724: _Temporary_value __x_copy(this, __x); 29724: _M_insert_aux(__pos, std::move(__x_copy._M_val())); 29724: 29724: 29724: 29724: } 29724: } 29724: else 29724: 29724: _M_realloc_insert(begin() + (__position - cbegin()), __x); 29724: 29724: 29724: 29724: 29724: return iterator(this->_M_impl._M_start + __n); 29724: } 29724: 29724: template 29724: 29724: typename vector<_Tp, _Alloc>::iterator 29724: vector<_Tp, _Alloc>:: 29724: _M_erase(iterator __position) 29724: { 29724: if (__position + 1 != end()) 29724: std::move(__position + 1, end(), __position); 29724: --this->_M_impl._M_finish; 29724: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 29724: ; 29724: return __position; 29724: } 29724: 29724: template 29724: 29724: typename vector<_Tp, _Alloc>::iterator 29724: vector<_Tp, _Alloc>:: 29724: _M_erase(iterator __first, iterator __last) 29724: { 29724: if (__first != __last) 29724: { 29724: if (__last != end()) 29724: std::move(__last, end(), __first); 29724: _M_erase_at_end(__first.base() + (end() - __last)); 29724: } 29724: return __first; 29724: } 29724: 29724: template 29724: 29724: vector<_Tp, _Alloc>& 29724: vector<_Tp, _Alloc>:: 29724: operator=(const vector<_Tp, _Alloc>& __x) 29724: { 29724: if (std::__addressof(__x) != this) 29724: { 29724: ; 29724: 29724: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: if (!_Alloc_traits::_S_always_equal() 29724: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 29724: { 29724: 29724: this->clear(); 29724: _M_deallocate(this->_M_impl._M_start, 29724: this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_start); 29724: this->_M_impl._M_start = nullptr; 29724: this->_M_impl._M_finish = nullptr; 29724: this->_M_impl._M_end_of_storage = nullptr; 29724: } 29724: std::__alloc_on_copy(_M_get_Tp_allocator(), 29724: __x._M_get_Tp_allocator()); 29724: } 29724: 29724: const size_type __xlen = __x.size(); 29724: if (__xlen > capacity()) 29724: { 29724: pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), 29724: __x.end()); 29724: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: _M_deallocate(this->_M_impl._M_start, 29724: this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_start); 29724: this->_M_impl._M_start = __tmp; 29724: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; 29724: } 29724: else if (size() >= __xlen) 29724: { 29724: std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), 29724: end(), _M_get_Tp_allocator()); 29724: } 29724: else 29724: { 29724: std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), 29724: this->_M_impl._M_start); 29724: std::__uninitialized_copy_a(__x._M_impl._M_start + size(), 29724: __x._M_impl._M_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: } 29724: this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_fill_assign(size_t __n, const value_type& __val) 29724: { 29724: const size_type __sz = size(); 29724: if (__n > capacity()) 29724: { 29724: if (__n <= __sz) 29724: __builtin_unreachable(); 29724: vector __tmp(__n, __val, _M_get_Tp_allocator()); 29724: __tmp._M_impl._M_swap_data(this->_M_impl); 29724: } 29724: else if (__n > __sz) 29724: { 29724: std::fill(begin(), end(), __val); 29724: const size_type __add = __n - __sz; 29724: ; 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 29724: __add, __val, _M_get_Tp_allocator()); 29724: ; 29724: } 29724: else 29724: _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: pointer __cur(this->_M_impl._M_start); 29724: for (; __first != __last && __cur != this->_M_impl._M_finish; 29724: ++__cur, (void)++__first) 29724: *__cur = *__first; 29724: if (__first == __last) 29724: _M_erase_at_end(__cur); 29724: else 29724: _M_range_insert(end(), __first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __sz = size(); 29724: const size_type __len = std::distance(__first, __last); 29724: 29724: if (__len > capacity()) 29724: { 29724: if (__len <= __sz) 29724: __builtin_unreachable(); 29724: 29724: _S_check_init_len(__len, _M_get_Tp_allocator()); 29724: pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); 29724: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: ; 29724: _M_deallocate(this->_M_impl._M_start, 29724: this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_start); 29724: this->_M_impl._M_start = __tmp; 29724: this->_M_impl._M_finish = this->_M_impl._M_start + __len; 29724: this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; 29724: } 29724: else if (__sz >= __len) 29724: _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); 29724: else 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, __sz); 29724: std::copy(__first, __mid, this->_M_impl._M_start); 29724: const size_type __attribute__((__unused__)) __n = __len - __sz; 29724: ; 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_copy_a(__mid, __last, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: ; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: auto 29724: vector<_Tp, _Alloc>:: 29724: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator 29724: { 29724: const auto __n = __position - cbegin(); 29724: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29724: if (__position == cend()) 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: std::move(__v)); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: } 29724: else 29724: _M_insert_aux(begin() + __n, std::move(__v)); 29724: else 29724: _M_realloc_insert(begin() + __n, std::move(__v)); 29724: 29724: return iterator(this->_M_impl._M_start + __n); 29724: } 29724: 29724: template 29724: template 29724: 29724: auto 29724: vector<_Tp, _Alloc>:: 29724: _M_emplace_aux(const_iterator __position, _Args&&... __args) 29724: -> iterator 29724: { 29724: const auto __n = __position - cbegin(); 29724: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29724: if (__position == cend()) 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: std::forward<_Args>(__args)...); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: _Temporary_value __tmp(this, std::forward<_Args>(__args)...); 29724: _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); 29724: } 29724: else 29724: _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); 29724: 29724: return iterator(this->_M_impl._M_start + __n); 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_insert_aux(iterator __position, _Arg&& __arg) 29724: 29724: 29724: 29724: 29724: 29724: 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: std::move(*(this->_M_impl._M_finish - 1))); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: 29724: 29724: 29724: std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) 29724: 29724: ; 29724: 29724: 29724: 29724: *__position = std::forward<_Arg>(__arg); 29724: 29724: } 29724: 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_realloc_insert(iterator __position, _Args&&... __args) 29724: 29724: 29724: 29724: 29724: 29724: 29724: { 29724: const size_type __len = _M_check_len(1u, "vector::_M_realloc_insert"); 29724: if (__len <= 0) 29724: __builtin_unreachable (); 29724: pointer __old_start = this->_M_impl._M_start; 29724: pointer __old_finish = this->_M_impl._M_finish; 29724: const size_type __elems_before = __position - begin(); 29724: pointer __new_start(this->_M_allocate(__len)); 29724: pointer __new_finish(__new_start); 29724: 29724: 29724: struct _Guard 29724: { 29724: pointer _M_storage; 29724: size_type _M_len; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29724: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard() 29724: { 29724: if (_M_storage) 29724: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29724: deallocate(_M_alloc, _M_storage, _M_len); 29724: } 29724: 29724: private: 29724: _Guard(const _Guard&); 29724: }; 29724: 29724: { 29724: _Guard __guard(__new_start, __len, _M_impl); 29724: # 505 "/usr/include/c++/14/bits/vector.tcc" 3 29724: _Alloc_traits::construct(this->_M_impl, 29724: std::__to_address(__new_start + __elems_before), 29724: std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if constexpr (_S_use_relocate()) 29724: { 29724: 29724: __new_finish = _S_relocate(__old_start, __position.base(), 29724: __new_start, _M_get_Tp_allocator()); 29724: ++__new_finish; 29724: __new_finish = _S_relocate(__position.base(), __old_finish, 29724: __new_finish, _M_get_Tp_allocator()); 29724: } 29724: else 29724: 29724: { 29724: 29724: struct _Guard_elts 29724: { 29724: pointer _M_first, _M_last; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 29724: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard_elts() 29724: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29724: 29724: private: 29724: _Guard_elts(const _Guard_elts&); 29724: }; 29724: 29724: 29724: _Guard_elts __guard_elts(__new_start + __elems_before, _M_impl); 29724: 29724: __new_finish = std::__uninitialized_move_if_noexcept_a( 29724: __old_start, __position.base(), 29724: __new_start, _M_get_Tp_allocator()); 29724: 29724: ++__new_finish; 29724: 29724: __guard_elts._M_first = __new_start; 29724: 29724: __new_finish = std::__uninitialized_move_if_noexcept_a( 29724: __position.base(), __old_finish, 29724: __new_finish, _M_get_Tp_allocator()); 29724: 29724: 29724: __guard_elts._M_first = __old_start; 29724: __guard_elts._M_last = __old_finish; 29724: } 29724: __guard._M_storage = __old_start; 29724: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29724: } 29724: 29724: 29724: 29724: this->_M_impl._M_start = __new_start; 29724: this->_M_impl._M_finish = __new_finish; 29724: this->_M_impl._M_end_of_storage = __new_start + __len; 29724: } 29724: 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_realloc_append(_Args&&... __args) 29724: 29724: 29724: 29724: 29724: 29724: 29724: { 29724: const size_type __len = _M_check_len(1u, "vector::_M_realloc_append"); 29724: if (__len <= 0) 29724: __builtin_unreachable (); 29724: pointer __old_start = this->_M_impl._M_start; 29724: pointer __old_finish = this->_M_impl._M_finish; 29724: const size_type __elems = end() - begin(); 29724: pointer __new_start(this->_M_allocate(__len)); 29724: pointer __new_finish(__new_start); 29724: 29724: 29724: struct _Guard 29724: { 29724: pointer _M_storage; 29724: size_type _M_len; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29724: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard() 29724: { 29724: if (_M_storage) 29724: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29724: deallocate(_M_alloc, _M_storage, _M_len); 29724: } 29724: 29724: private: 29724: _Guard(const _Guard&); 29724: }; 29724: 29724: { 29724: _Guard __guard(__new_start, __len, _M_impl); 29724: # 634 "/usr/include/c++/14/bits/vector.tcc" 3 29724: _Alloc_traits::construct(this->_M_impl, 29724: std::__to_address(__new_start + __elems), 29724: std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if constexpr (_S_use_relocate()) 29724: { 29724: 29724: __new_finish = _S_relocate(__old_start, __old_finish, 29724: __new_start, _M_get_Tp_allocator()); 29724: ++__new_finish; 29724: } 29724: else 29724: 29724: { 29724: 29724: struct _Guard_elts 29724: { 29724: pointer _M_first, _M_last; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 29724: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard_elts() 29724: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29724: 29724: private: 29724: _Guard_elts(const _Guard_elts&); 29724: }; 29724: 29724: 29724: _Guard_elts __guard_elts(__new_start + __elems, _M_impl); 29724: 29724: __new_finish = std::__uninitialized_move_if_noexcept_a( 29724: __old_start, __old_finish, 29724: __new_start, _M_get_Tp_allocator()); 29724: 29724: ++__new_finish; 29724: 29724: 29724: __guard_elts._M_first = __old_start; 29724: __guard_elts._M_last = __old_finish; 29724: } 29724: __guard._M_storage = __old_start; 29724: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29724: } 29724: 29724: 29724: 29724: this->_M_impl._M_start = __new_start; 29724: this->_M_impl._M_finish = __new_finish; 29724: this->_M_impl._M_end_of_storage = __new_start + __len; 29724: } 29724: 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) 29724: { 29724: if (__n != 0) 29724: { 29724: if (size_type(this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_finish) >= __n) 29724: { 29724: 29724: 29724: 29724: _Temporary_value __tmp(this, __x); 29724: value_type& __x_copy = __tmp._M_val(); 29724: 29724: const size_type __elems_after = end() - __position; 29724: pointer __old_finish(this->_M_impl._M_finish); 29724: if (__elems_after > __n) 29724: { 29724: ; 29724: std::__uninitialized_move_a(__old_finish - __n, 29724: __old_finish, 29724: __old_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish += __n; 29724: ; 29724: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 29724: ; 29724: std::fill(__position.base(), __position.base() + __n, 29724: __x_copy); 29724: } 29724: else 29724: { 29724: ; 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_fill_n_a(__old_finish, 29724: __n - __elems_after, 29724: __x_copy, 29724: _M_get_Tp_allocator()); 29724: ; 29724: std::__uninitialized_move_a(__position.base(), __old_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish += __elems_after; 29724: ; 29724: std::fill(__position.base(), __old_finish, __x_copy); 29724: } 29724: } 29724: else 29724: { 29724: 29724: 29724: pointer __old_start = this->_M_impl._M_start; 29724: pointer __old_finish = this->_M_impl._M_finish; 29724: const pointer __pos = __position.base(); 29724: 29724: const size_type __len = 29724: _M_check_len(__n, "vector::_M_fill_insert"); 29724: const size_type __elems_before = __pos - __old_start; 29724: pointer __new_start(this->_M_allocate(__len)); 29724: pointer __new_finish(__new_start); 29724: try 29724: { 29724: 29724: std::__uninitialized_fill_n_a(__new_start + __elems_before, 29724: __n, __x, 29724: _M_get_Tp_allocator()); 29724: __new_finish = pointer(); 29724: 29724: __new_finish 29724: = std::__uninitialized_move_if_noexcept_a 29724: (__old_start, __pos, __new_start, _M_get_Tp_allocator()); 29724: 29724: __new_finish += __n; 29724: 29724: __new_finish 29724: = std::__uninitialized_move_if_noexcept_a 29724: (__pos, __old_finish, __new_finish, _M_get_Tp_allocator()); 29724: } 29724: catch(...) 29724: { 29724: if (!__new_finish) 29724: std::_Destroy(__new_start + __elems_before, 29724: __new_start + __elems_before + __n, 29724: _M_get_Tp_allocator()); 29724: else 29724: std::_Destroy(__new_start, __new_finish, 29724: _M_get_Tp_allocator()); 29724: _M_deallocate(__new_start, __len); 29724: throw; 29724: } 29724: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 29724: ; 29724: _M_deallocate(__old_start, 29724: this->_M_impl._M_end_of_storage - __old_start); 29724: this->_M_impl._M_start = __new_start; 29724: this->_M_impl._M_finish = __new_finish; 29724: this->_M_impl._M_end_of_storage = __new_start + __len; 29724: } 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_default_append(size_type __n) 29724: { 29724: if (__n != 0) 29724: { 29724: const size_type __size = size(); 29724: size_type __navail = size_type(this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_finish); 29724: 29724: if (__size > max_size() || __navail > max_size() - __size) 29724: __builtin_unreachable(); 29724: 29724: if (__navail >= __n) 29724: { 29724: ; 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_default_n_a(this->_M_impl._M_finish, 29724: __n, _M_get_Tp_allocator()); 29724: ; 29724: } 29724: else 29724: { 29724: 29724: 29724: pointer __old_start = this->_M_impl._M_start; 29724: pointer __old_finish = this->_M_impl._M_finish; 29724: 29724: const size_type __len = 29724: _M_check_len(__n, "vector::_M_default_append"); 29724: pointer __new_start(this->_M_allocate(__len)); 29724: 29724: 29724: struct _Guard 29724: { 29724: pointer _M_storage; 29724: size_type _M_len; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29724: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard() 29724: { 29724: if (_M_storage) 29724: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29724: deallocate(_M_alloc, _M_storage, _M_len); 29724: } 29724: 29724: private: 29724: _Guard(const _Guard&); 29724: }; 29724: 29724: { 29724: _Guard __guard(__new_start, __len, _M_impl); 29724: 29724: std::__uninitialized_default_n_a(__new_start + __size, __n, 29724: _M_get_Tp_allocator()); 29724: 29724: if constexpr (_S_use_relocate()) 29724: { 29724: _S_relocate(__old_start, __old_finish, 29724: __new_start, _M_get_Tp_allocator()); 29724: } 29724: else 29724: { 29724: 29724: struct _Guard_elts 29724: { 29724: pointer _M_first, _M_last; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard_elts(pointer __first, size_type __n, 29724: _Tp_alloc_type& __a) 29724: : _M_first(__first), _M_last(__first + __n), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard_elts() 29724: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29724: 29724: private: 29724: _Guard_elts(const _Guard_elts&); 29724: }; 29724: _Guard_elts __guard_elts(__new_start + __size, __n, _M_impl); 29724: 29724: std::__uninitialized_move_if_noexcept_a( 29724: __old_start, __old_finish, __new_start, 29724: _M_get_Tp_allocator()); 29724: 29724: __guard_elts._M_first = __old_start; 29724: __guard_elts._M_last = __old_finish; 29724: } 29724: ; 29724: __guard._M_storage = __old_start; 29724: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29724: } 29724: 29724: 29724: 29724: this->_M_impl._M_start = __new_start; 29724: this->_M_impl._M_finish = __new_start + __size + __n; 29724: this->_M_impl._M_end_of_storage = __new_start + __len; 29724: } 29724: } 29724: } 29724: 29724: template 29724: 29724: bool 29724: vector<_Tp, _Alloc>:: 29724: _M_shrink_to_fit() 29724: { 29724: if (capacity() == size()) 29724: return false; 29724: ; 29724: return std::__shrink_to_fit_aux::_S_do_it(*this); 29724: } 29724: 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_range_insert(iterator __pos, _InputIterator __first, 29724: _InputIterator __last, std::input_iterator_tag) 29724: { 29724: if (__pos == end()) 29724: { 29724: for (; __first != __last; ++__first) 29724: insert(end(), *__first); 29724: } 29724: else if (__first != __last) 29724: { 29724: vector __tmp(__first, __last, _M_get_Tp_allocator()); 29724: insert(__pos, 29724: std::make_move_iterator(__tmp.begin()), 29724: std::make_move_iterator(__tmp.end())); 29724: } 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_range_insert(iterator __position, _ForwardIterator __first, 29724: _ForwardIterator __last, std::forward_iterator_tag) 29724: { 29724: if (__first != __last) 29724: { 29724: const size_type __n = std::distance(__first, __last); 29724: if (size_type(this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_finish) >= __n) 29724: { 29724: const size_type __elems_after = end() - __position; 29724: pointer __old_finish(this->_M_impl._M_finish); 29724: if (__elems_after > __n) 29724: { 29724: ; 29724: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 29724: this->_M_impl._M_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish += __n; 29724: ; 29724: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 29724: ; 29724: std::copy(__first, __last, __position); 29724: } 29724: else 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, __elems_after); 29724: ; 29724: std::__uninitialized_copy_a(__mid, __last, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish += __n - __elems_after; 29724: ; 29724: std::__uninitialized_move_a(__position.base(), 29724: __old_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish += __elems_after; 29724: ; 29724: std::copy(__first, __mid, __position); 29724: } 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: pointer __old_start = this->_M_impl._M_start; 29724: pointer __old_finish = this->_M_impl._M_finish; 29724: 29724: const size_type __len = 29724: _M_check_len(__n, "vector::_M_range_insert"); 29724: 29724: 29724: 29724: 29724: 29724: pointer __new_start(this->_M_allocate(__len)); 29724: pointer __new_finish(__new_start); 29724: try 29724: { 29724: __new_finish 29724: = std::__uninitialized_move_if_noexcept_a 29724: (__old_start, __position.base(), 29724: __new_start, _M_get_Tp_allocator()); 29724: __new_finish 29724: = std::__uninitialized_copy_a(__first, __last, 29724: __new_finish, 29724: _M_get_Tp_allocator()); 29724: __new_finish 29724: = std::__uninitialized_move_if_noexcept_a 29724: (__position.base(), __old_finish, 29724: __new_finish, _M_get_Tp_allocator()); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__new_start, __new_finish, 29724: _M_get_Tp_allocator()); 29724: _M_deallocate(__new_start, __len); 29724: throw; 29724: } 29724: std::_Destroy(__old_start, __old_finish, 29724: _M_get_Tp_allocator()); 29724: ; 29724: _M_deallocate(__old_start, 29724: this->_M_impl._M_end_of_storage - __old_start); 29724: this->_M_impl._M_start = __new_start; 29724: this->_M_impl._M_finish = __new_finish; 29724: this->_M_impl._M_end_of_storage = __new_start + __len; 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: vector:: 29724: _M_reallocate(size_type __n) 29724: { 29724: _Bit_pointer __q = this->_M_allocate(__n); 29724: iterator __start(std::__addressof(*__q), 0); 29724: iterator __finish(_M_copy_aligned(begin(), end(), __start)); 29724: this->_M_deallocate(); 29724: this->_M_impl._M_start = __start; 29724: this->_M_impl._M_finish = __finish; 29724: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 29724: } 29724: 29724: template 29724: 29724: void 29724: vector:: 29724: _M_fill_insert(iterator __position, size_type __n, bool __x) 29724: { 29724: if (__n == 0) 29724: return; 29724: if (capacity() - size() >= __n) 29724: { 29724: std::copy_backward(__position, end(), 29724: this->_M_impl._M_finish + difference_type(__n)); 29724: std::fill(__position, __position + difference_type(__n), __x); 29724: this->_M_impl._M_finish += difference_type(__n); 29724: } 29724: else 29724: { 29724: const size_type __len = 29724: _M_check_len(__n, "vector::_M_fill_insert"); 29724: _Bit_pointer __q = this->_M_allocate(__len); 29724: iterator __start(std::__addressof(*__q), 0); 29724: iterator __i = _M_copy_aligned(begin(), __position, __start); 29724: std::fill(__i, __i + difference_type(__n), __x); 29724: iterator __finish = std::copy(__position, end(), 29724: __i + difference_type(__n)); 29724: this->_M_deallocate(); 29724: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29724: this->_M_impl._M_start = __start; 29724: this->_M_impl._M_finish = __finish; 29724: } 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: vector:: 29724: _M_insert_range(iterator __position, _ForwardIterator __first, 29724: _ForwardIterator __last, std::forward_iterator_tag) 29724: { 29724: if (__first != __last) 29724: { 29724: size_type __n = std::distance(__first, __last); 29724: if (capacity() - size() >= __n) 29724: { 29724: std::copy_backward(__position, end(), 29724: this->_M_impl._M_finish 29724: + difference_type(__n)); 29724: std::copy(__first, __last, __position); 29724: this->_M_impl._M_finish += difference_type(__n); 29724: } 29724: else 29724: { 29724: const size_type __len = 29724: _M_check_len(__n, "vector::_M_insert_range"); 29724: const iterator __begin = begin(), __end = end(); 29724: _Bit_pointer __q = this->_M_allocate(__len); 29724: iterator __start(std::__addressof(*__q), 0); 29724: iterator __i = _M_copy_aligned(__begin, __position, __start); 29724: __i = std::copy(__first, __last, __i); 29724: iterator __finish = std::copy(__position, __end, __i); 29724: this->_M_deallocate(); 29724: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29724: this->_M_impl._M_start = __start; 29724: this->_M_impl._M_finish = __finish; 29724: } 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: vector:: 29724: _M_insert_aux(iterator __position, bool __x) 29724: { 29724: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 29724: { 29724: std::copy_backward(__position, this->_M_impl._M_finish, 29724: this->_M_impl._M_finish + 1); 29724: *__position = __x; 29724: ++this->_M_impl._M_finish; 29724: } 29724: else 29724: { 29724: const size_type __len = 29724: _M_check_len(size_type(1), "vector::_M_insert_aux"); 29724: _Bit_pointer __q = this->_M_allocate(__len); 29724: iterator __start(std::__addressof(*__q), 0); 29724: iterator __i = _M_copy_aligned(begin(), __position, __start); 29724: *__i++ = __x; 29724: iterator __finish = std::copy(__position, end(), __i); 29724: this->_M_deallocate(); 29724: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29724: this->_M_impl._M_start = __start; 29724: this->_M_impl._M_finish = __finish; 29724: } 29724: } 29724: 29724: template 29724: 29724: typename vector::iterator 29724: vector:: 29724: _M_erase(iterator __position) 29724: { 29724: if (__position + 1 != end()) 29724: std::copy(__position + 1, end(), __position); 29724: --this->_M_impl._M_finish; 29724: return __position; 29724: } 29724: 29724: template 29724: 29724: typename vector::iterator 29724: vector:: 29724: _M_erase(iterator __first, iterator __last) 29724: { 29724: if (__first != __last) 29724: _M_erase_at_end(std::copy(__last, end(), __first)); 29724: return __first; 29724: } 29724: 29724: 29724: template 29724: 29724: bool 29724: vector:: 29724: _M_shrink_to_fit() 29724: { 29724: if (capacity() - size() < int(_S_word_bit)) 29724: return false; 29724: try 29724: { 29724: if (size_type __n = size()) 29724: _M_reallocate(__n); 29724: else 29724: { 29724: this->_M_deallocate(); 29724: this->_M_impl._M_reset(); 29724: } 29724: return true; 29724: } 29724: catch(...) 29724: { return false; } 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: size_t 29724: hash>:: 29724: operator()(const std::vector& __b) const noexcept 29724: { 29724: size_t __hash = 0; 29724: const size_t __words = __b.size() / _S_word_bit; 29724: if (__words) 29724: { 29724: const size_t __clength = __words * sizeof(_Bit_type); 29724: __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); 29724: } 29724: 29724: const size_t __extrabits = __b.size() % _S_word_bit; 29724: if (__extrabits) 29724: { 29724: _Bit_type __hiword = *__b._M_impl._M_finish._M_p; 29724: __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); 29724: 29724: const size_t __clength 29724: = (__extrabits + 8 - 1) / 8; 29724: if (__words) 29724: __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); 29724: else 29724: __hash = std::_Hash_impl::hash(&__hiword, __clength); 29724: } 29724: 29724: return __hash; 29724: } 29724: 29724: 29724: } 29724: # 73 "/usr/include/c++/14/vector" 2 3 29724: # 84 "/usr/include/c++/14/vector" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 85 "/usr/include/c++/14/vector" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr { 29724: template 29724: using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 65 "/usr/include/c++/14/functional" 2 3 29724: # 1 "/usr/include/c++/14/array" 1 3 29724: # 32 "/usr/include/c++/14/array" 3 29724: 29724: # 33 "/usr/include/c++/14/array" 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/compare" 1 3 29724: # 33 "/usr/include/c++/14/compare" 3 29724: 29724: # 34 "/usr/include/c++/14/compare" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 37 "/usr/include/c++/14/compare" 2 3 29724: # 39 "/usr/include/c++/14/array" 2 3 29724: # 52 "/usr/include/c++/14/array" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 53 "/usr/include/c++/14/array" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: struct __array_traits 29724: { 29724: using _Type = _Tp[_Nm]; 29724: using _Is_swappable = __is_swappable<_Tp>; 29724: using _Is_nothrow_swappable = __is_nothrow_swappable<_Tp>; 29724: }; 29724: 29724: template 29724: struct __array_traits<_Tp, 0> 29724: { 29724: 29724: struct _Type 29724: { 29724: 29724: __attribute__((__always_inline__,__noreturn__)) 29724: _Tp& operator[](size_t) const noexcept { __builtin_trap(); } 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: constexpr explicit operator _Tp*() const noexcept { return nullptr; } 29724: }; 29724: 29724: using _Is_swappable = true_type; 29724: using _Is_nothrow_swappable = true_type; 29724: }; 29724: # 99 "/usr/include/c++/14/array" 3 29724: template 29724: struct array 29724: { 29724: typedef _Tp value_type; 29724: typedef value_type* pointer; 29724: typedef const value_type* const_pointer; 29724: typedef value_type& reference; 29724: typedef const value_type& const_reference; 29724: typedef value_type* iterator; 29724: typedef const value_type* const_iterator; 29724: typedef std::size_t size_type; 29724: typedef std::ptrdiff_t difference_type; 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: 29724: 29724: typename __array_traits<_Tp, _Nm>::_Type _M_elems; 29724: 29724: 29724: 29724: 29724: void 29724: fill(const value_type& __u) 29724: { std::fill_n(begin(), size(), __u); } 29724: 29724: void 29724: swap(array& __other) 29724: noexcept(__array_traits<_Tp, _Nm>::_Is_nothrow_swappable::value) 29724: { std::swap_ranges(begin(), end(), __other.begin()); } 29724: 29724: 29724: [[__gnu__::__const__, __nodiscard__]] 29724: constexpr iterator 29724: begin() noexcept 29724: { return iterator(data()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_iterator 29724: begin() const noexcept 29724: { return const_iterator(data()); } 29724: 29724: [[__gnu__::__const__, __nodiscard__]] 29724: constexpr iterator 29724: end() noexcept 29724: { return iterator(data() + _Nm); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_iterator 29724: end() const noexcept 29724: { return const_iterator(data() + _Nm); } 29724: 29724: [[__gnu__::__const__, __nodiscard__]] 29724: constexpr reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(end()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: [[__gnu__::__const__, __nodiscard__]] 29724: constexpr reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(begin()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(data()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_iterator 29724: cend() const noexcept 29724: { return const_iterator(data() + _Nm); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29724: constexpr size_type 29724: size() const noexcept { return _Nm; } 29724: 29724: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29724: constexpr size_type 29724: max_size() const noexcept { return _Nm; } 29724: 29724: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29724: constexpr bool 29724: empty() const noexcept { return size() == 0; } 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr reference 29724: operator[](size_type __n) noexcept 29724: { 29724: ; 29724: return _M_elems[__n]; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reference 29724: operator[](size_type __n) const noexcept 29724: { 29724: 29724: ; 29724: 29724: return _M_elems[__n]; 29724: } 29724: 29724: constexpr reference 29724: at(size_type __n) 29724: { 29724: if (__n >= _Nm) 29724: std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 29724: , 29724: __n, _Nm); 29724: return _M_elems[__n]; 29724: } 29724: 29724: constexpr const_reference 29724: at(size_type __n) const 29724: { 29724: 29724: 29724: return __n < _Nm ? _M_elems[__n] 29724: : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 29724: , 29724: __n, _Nm), 29724: _M_elems[__n]); 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr reference 29724: front() noexcept 29724: { 29724: ; 29724: return _M_elems[(size_type)0]; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reference 29724: front() const noexcept 29724: { 29724: 29724: ; 29724: 29724: return _M_elems[(size_type)0]; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr reference 29724: back() noexcept 29724: { 29724: ; 29724: return _M_elems[_Nm - 1]; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reference 29724: back() const noexcept 29724: { 29724: 29724: ; 29724: 29724: return _M_elems[_Nm - 1]; 29724: } 29724: 29724: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29724: constexpr pointer 29724: data() noexcept 29724: { return static_cast(_M_elems); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_pointer 29724: data() const noexcept 29724: { return static_cast(_M_elems); } 29724: }; 29724: 29724: 29724: template 29724: array(_Tp, _Up...) 29724: -> array && ...), _Tp>, 29724: 1 + sizeof...(_Up)>; 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29724: { return std::__equal_aux1(__one.begin(), __one.end(), __two.begin()); } 29724: # 328 "/usr/include/c++/14/array" 3 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29724: { return !(__one == __two); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 29724: { 29724: return std::lexicographical_compare(__a.begin(), __a.end(), 29724: __b.begin(), __b.end()); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29724: { return __two < __one; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29724: { return !(__one > __two); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29724: { return !(__one < __two); } 29724: 29724: 29724: 29724: template 29724: 29724: inline 29724: 29724: 29724: __enable_if_t<__array_traits<_Tp, _Nm>::_Is_swappable::value> 29724: 29724: 29724: 29724: swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) 29724: noexcept(noexcept(__one.swap(__two))) 29724: { __one.swap(__two); } 29724: 29724: 29724: template 29724: __enable_if_t::_Is_swappable::value> 29724: swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: constexpr _Tp& 29724: get(array<_Tp, _Nm>& __arr) noexcept 29724: { 29724: static_assert(_Int < _Nm, "array index is within bounds"); 29724: return __arr._M_elems[_Int]; 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: constexpr _Tp&& 29724: get(array<_Tp, _Nm>&& __arr) noexcept 29724: { 29724: static_assert(_Int < _Nm, "array index is within bounds"); 29724: return std::move(std::get<_Int>(__arr)); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: constexpr const _Tp& 29724: get(const array<_Tp, _Nm>& __arr) noexcept 29724: { 29724: static_assert(_Int < _Nm, "array index is within bounds"); 29724: return __arr._M_elems[_Int]; 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: constexpr const _Tp&& 29724: get(const array<_Tp, _Nm>&& __arr) noexcept 29724: { 29724: static_assert(_Int < _Nm, "array index is within bounds"); 29724: return std::move(std::get<_Int>(__arr)); 29724: } 29724: # 490 "/usr/include/c++/14/array" 3 29724: template 29724: struct tuple_size> 29724: : public integral_constant { }; 29724: 29724: 29724: template 29724: struct tuple_element<_Ind, array<_Tp, _Nm>> 29724: { 29724: static_assert(_Ind < _Nm, "array index is in range"); 29724: using type = _Tp; 29724: }; 29724: 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> = _Nm; 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> = _Nm; 29724: 29724: 29724: template 29724: struct __is_tuple_like_impl> : true_type 29724: { }; 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/functional" 2 3 29724: # 88 "/usr/include/c++/14/functional" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 89 "/usr/include/c++/14/functional" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template struct _Placeholder { }; 29724: # 115 "/usr/include/c++/14/functional" 3 29724: template 29724: inline invoke_result_t<_Callable, _Args...> 29724: invoke(_Callable&& __fn, _Args&&... __args) 29724: noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 29724: { 29724: return std::__invoke(std::forward<_Callable>(__fn), 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 148 "/usr/include/c++/14/functional" 3 29724: template::value> 29724: class _Mem_fn_base 29724: : public _Mem_fn_traits<_MemFunPtr>::__maybe_type 29724: { 29724: using _Traits = _Mem_fn_traits<_MemFunPtr>; 29724: 29724: using _Arity = typename _Traits::__arity; 29724: using _Varargs = typename _Traits::__vararg; 29724: 29724: template 29724: friend struct _Bind_check_arity; 29724: 29724: _MemFunPtr _M_pmf; 29724: 29724: public: 29724: 29724: using result_type = typename _Traits::__result_type; 29724: 29724: explicit constexpr 29724: _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } 29724: 29724: template 29724: 29724: auto 29724: operator()(_Args&&... __args) const 29724: noexcept(noexcept( 29724: std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) 29724: -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) 29724: { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } 29724: }; 29724: 29724: 29724: template 29724: class _Mem_fn_base<_MemObjPtr, false> 29724: { 29724: using _Arity = integral_constant; 29724: using _Varargs = false_type; 29724: 29724: template 29724: friend struct _Bind_check_arity; 29724: 29724: _MemObjPtr _M_pm; 29724: 29724: public: 29724: explicit constexpr 29724: _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } 29724: 29724: template 29724: 29724: auto 29724: operator()(_Tp&& __obj) const 29724: noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) 29724: -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) 29724: { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } 29724: }; 29724: 29724: template 29724: struct _Mem_fn; 29724: 29724: template 29724: struct _Mem_fn<_Res _Class::*> 29724: : _Mem_fn_base<_Res _Class::*> 29724: { 29724: using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; 29724: }; 29724: # 241 "/usr/include/c++/14/functional" 3 29724: template 29724: 29724: inline _Mem_fn<_Tp _Class::*> 29724: mem_fn(_Tp _Class::* __pm) noexcept 29724: { 29724: return _Mem_fn<_Tp _Class::*>(__pm); 29724: } 29724: # 260 "/usr/include/c++/14/functional" 3 29724: template 29724: struct is_bind_expression 29724: : public false_type { }; 29724: # 272 "/usr/include/c++/14/functional" 3 29724: template 29724: struct is_placeholder 29724: : public integral_constant 29724: { }; 29724: 29724: 29724: template inline constexpr bool is_bind_expression_v 29724: = is_bind_expression<_Tp>::value; 29724: template inline constexpr int is_placeholder_v 29724: = is_placeholder<_Tp>::value; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace placeholders 29724: { 29724: # 301 "/usr/include/c++/14/functional" 3 29724: inline const _Placeholder<1> _1; 29724: inline const _Placeholder<2> _2; 29724: inline const _Placeholder<3> _3; 29724: inline const _Placeholder<4> _4; 29724: inline const _Placeholder<5> _5; 29724: inline const _Placeholder<6> _6; 29724: inline const _Placeholder<7> _7; 29724: inline const _Placeholder<8> _8; 29724: inline const _Placeholder<9> _9; 29724: inline const _Placeholder<10> _10; 29724: inline const _Placeholder<11> _11; 29724: inline const _Placeholder<12> _12; 29724: inline const _Placeholder<13> _13; 29724: inline const _Placeholder<14> _14; 29724: inline const _Placeholder<15> _15; 29724: inline const _Placeholder<16> _16; 29724: inline const _Placeholder<17> _17; 29724: inline const _Placeholder<18> _18; 29724: inline const _Placeholder<19> _19; 29724: inline const _Placeholder<20> _20; 29724: inline const _Placeholder<21> _21; 29724: inline const _Placeholder<22> _22; 29724: inline const _Placeholder<23> _23; 29724: inline const _Placeholder<24> _24; 29724: inline const _Placeholder<25> _25; 29724: inline const _Placeholder<26> _26; 29724: inline const _Placeholder<27> _27; 29724: inline const _Placeholder<28> _28; 29724: inline const _Placeholder<29> _29; 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_placeholder<_Placeholder<_Num> > 29724: : public integral_constant 29724: { }; 29724: 29724: template 29724: struct is_placeholder > 29724: : public integral_constant 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: using _Safe_tuple_element_t 29724: = typename enable_if<(__i < tuple_size<_Tuple>::value), 29724: tuple_element<__i, _Tuple>>::type::type; 29724: # 369 "/usr/include/c++/14/functional" 3 29724: template::value, 29724: bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> 29724: class _Mu; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Mu, false, false> 29724: { 29724: public: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _Tp& 29724: operator()(_CVRef& __arg, _Tuple&) const volatile 29724: { return __arg.get(); } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Mu<_Arg, true, false> 29724: { 29724: public: 29724: template 29724: 29724: auto 29724: operator()(_CVArg& __arg, 29724: tuple<_Args...>& __tuple) const volatile 29724: -> decltype(__arg(declval<_Args>()...)) 29724: { 29724: 29724: typedef typename _Build_index_tuple::__type 29724: _Indexes; 29724: return this->__call(__arg, __tuple, _Indexes()); 29724: } 29724: 29724: private: 29724: 29724: 29724: template 29724: 29724: auto 29724: __call(_CVArg& __arg, tuple<_Args...>& __tuple, 29724: const _Index_tuple<_Indexes...>&) const volatile 29724: -> decltype(__arg(declval<_Args>()...)) 29724: { 29724: return __arg(std::get<_Indexes>(std::move(__tuple))...); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Mu<_Arg, false, true> 29724: { 29724: public: 29724: template 29724: 29724: _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& 29724: operator()(const volatile _Arg&, _Tuple& __tuple) const volatile 29724: { 29724: return 29724: ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Mu<_Arg, false, false> 29724: { 29724: public: 29724: template 29724: 29724: _CVArg&& 29724: operator()(_CVArg&& __arg, _Tuple&) const volatile 29724: { return std::forward<_CVArg>(__arg); } 29724: }; 29724: 29724: 29724: template 29724: inline auto 29724: __volget(volatile tuple<_Tp...>& __tuple) 29724: -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& 29724: { return std::get<_Ind>(const_cast&>(__tuple)); } 29724: 29724: 29724: template 29724: inline auto 29724: __volget(const volatile tuple<_Tp...>& __tuple) 29724: -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& 29724: { return std::get<_Ind>(const_cast&>(__tuple)); } 29724: # 494 "/usr/include/c++/14/functional" 3 29724: template 29724: class _Bind; 29724: 29724: template 29724: class _Bind<_Functor(_Bound_args...)> 29724: : public _Weak_result_type<_Functor> 29724: { 29724: typedef typename _Build_index_tuple::__type 29724: _Bound_indexes; 29724: 29724: _Functor _M_f; 29724: tuple<_Bound_args...> _M_bound_args; 29724: 29724: 29724: template 29724: 29724: _Result 29724: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 29724: { 29724: return std::__invoke(_M_f, 29724: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 29724: ); 29724: } 29724: 29724: 29724: template 29724: 29724: _Result 29724: __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 29724: { 29724: return std::__invoke(_M_f, 29724: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 29724: ); 29724: } 29724: 29724: 29724: 29724: template 29724: _Result 29724: __call_v(tuple<_Args...>&& __args, 29724: _Index_tuple<_Indexes...>) volatile 29724: { 29724: return std::__invoke(_M_f, 29724: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 29724: ); 29724: } 29724: 29724: 29724: template 29724: _Result 29724: __call_c_v(tuple<_Args...>&& __args, 29724: _Index_tuple<_Indexes...>) const volatile 29724: { 29724: return std::__invoke(_M_f, 29724: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 29724: ); 29724: } 29724: 29724: 29724: template 29724: using _Mu_type = decltype( 29724: _Mu::type>()( 29724: std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); 29724: 29724: template 29724: using _Res_type_impl 29724: = __invoke_result_t<_Fn&, _Mu_type<_BArgs, _CallArgs>&&...>; 29724: 29724: template 29724: using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; 29724: 29724: template 29724: using __dependent = typename 29724: enable_if::value+1), _Functor>::type; 29724: 29724: template class __cv_quals> 29724: using _Res_type_cv = _Res_type_impl< 29724: typename __cv_quals<__dependent<_CallArgs>>::type, 29724: _CallArgs, 29724: typename __cv_quals<_Bound_args>::type...>; 29724: 29724: public: 29724: template 29724: explicit 29724: _Bind(const _Functor& __f, _Args&&... __args) 29724: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: explicit 29724: _Bind(_Functor&& __f, _Args&&... __args) 29724: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: _Bind(const _Bind&) = default; 29724: _Bind(_Bind&&) = default; 29724: 29724: 29724: template>> 29724: 29724: _Result 29724: operator()(_Args&&... __args) 29724: { 29724: return this->__call<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: template, add_const>> 29724: 29724: _Result 29724: operator()(_Args&&... __args) const 29724: { 29724: return this->__call_c<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: 29724: template, add_volatile>> 29724: [[deprecated("std::bind does not support volatile in C++17")]] 29724: _Result 29724: operator()(_Args&&... __args) volatile 29724: { 29724: return this->__call_v<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: template, add_cv>> 29724: [[deprecated("std::bind does not support volatile in C++17")]] 29724: _Result 29724: operator()(_Args&&... __args) const volatile 29724: { 29724: return this->__call_c_v<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: }; 29724: 29724: 29724: template 29724: class _Bind_result; 29724: 29724: template 29724: class _Bind_result<_Result, _Functor(_Bound_args...)> 29724: { 29724: typedef typename _Build_index_tuple::__type 29724: _Bound_indexes; 29724: 29724: _Functor _M_f; 29724: tuple<_Bound_args...> _M_bound_args; 29724: 29724: 29724: template 29724: 29724: _Res 29724: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 29724: { 29724: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29724: (std::get<_Indexes>(_M_bound_args), __args)...); 29724: } 29724: 29724: 29724: template 29724: 29724: _Res 29724: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 29724: { 29724: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29724: (std::get<_Indexes>(_M_bound_args), __args)...); 29724: } 29724: 29724: 29724: 29724: template 29724: _Res 29724: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 29724: { 29724: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29724: (__volget<_Indexes>(_M_bound_args), __args)...); 29724: } 29724: 29724: 29724: template 29724: _Res 29724: __call(tuple<_Args...>&& __args, 29724: _Index_tuple<_Indexes...>) const volatile 29724: { 29724: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29724: (__volget<_Indexes>(_M_bound_args), __args)...); 29724: } 29724: 29724: 29724: public: 29724: typedef _Result result_type; 29724: 29724: template 29724: explicit 29724: _Bind_result(const _Functor& __f, _Args&&... __args) 29724: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: explicit 29724: _Bind_result(_Functor&& __f, _Args&&... __args) 29724: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: _Bind_result(const _Bind_result&) = default; 29724: _Bind_result(_Bind_result&&) = default; 29724: 29724: 29724: template 29724: 29724: result_type 29724: operator()(_Args&&... __args) 29724: { 29724: return this->__call<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: template 29724: 29724: result_type 29724: operator()(_Args&&... __args) const 29724: { 29724: return this->__call<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: 29724: template 29724: [[deprecated("std::bind does not support volatile in C++17")]] 29724: result_type 29724: operator()(_Args&&... __args) volatile 29724: { 29724: return this->__call<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: template 29724: [[deprecated("std::bind does not support volatile in C++17")]] 29724: result_type 29724: operator()(_Args&&... __args) const volatile 29724: { 29724: return this->__call<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: 29724: 29724: }; 29724: # 771 "/usr/include/c++/14/functional" 3 29724: template 29724: struct is_bind_expression<_Bind<_Signature> > 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression > 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression > 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression> 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression<_Bind_result<_Result, _Signature>> 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression> 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression> 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression> 29724: : public true_type { }; 29724: 29724: template 29724: struct _Bind_check_arity { }; 29724: 29724: template 29724: struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> 29724: { 29724: static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), 29724: "Wrong number of arguments for function"); 29724: }; 29724: 29724: template 29724: struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> 29724: { 29724: static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), 29724: "Wrong number of arguments for function"); 29724: }; 29724: 29724: template 29724: struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> 29724: { 29724: using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; 29724: using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; 29724: static_assert(_Varargs::value 29724: ? sizeof...(_BoundArgs) >= _Arity::value + 1 29724: : sizeof...(_BoundArgs) == _Arity::value + 1, 29724: "Wrong number of arguments for pointer-to-member"); 29724: }; 29724: 29724: 29724: 29724: 29724: template::type> 29724: using __is_socketlike = __or_, is_enum<_Tp2>>; 29724: 29724: template 29724: struct _Bind_helper 29724: : _Bind_check_arity::type, _BoundArgs...> 29724: { 29724: typedef typename decay<_Func>::type __func_type; 29724: typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Bind_helper 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline typename 29724: _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type 29724: bind(_Func&& __f, _BoundArgs&&... __args) 29724: { 29724: typedef _Bind_helper __helper_type; 29724: return typename __helper_type::type(std::forward<_Func>(__f), 29724: std::forward<_BoundArgs>(__args)...); 29724: } 29724: 29724: template 29724: struct _Bindres_helper 29724: : _Bind_check_arity::type, _BoundArgs...> 29724: { 29724: typedef typename decay<_Func>::type __functor_type; 29724: typedef _Bind_result<_Result, 29724: __functor_type(typename decay<_BoundArgs>::type...)> 29724: type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline 29724: typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type 29724: bind(_Func&& __f, _BoundArgs&&... __args) 29724: { 29724: typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; 29724: return typename __helper_type::type(std::forward<_Func>(__f), 29724: std::forward<_BoundArgs>(__args)...); 29724: } 29724: # 1121 "/usr/include/c++/14/functional" 3 29724: template 29724: class _Not_fn 29724: { 29724: template 29724: using __inv_res_t = typename __invoke_result<_Fn2, _Args...>::type; 29724: 29724: template 29724: static decltype(!std::declval<_Tp>()) 29724: _S_not() noexcept(noexcept(!std::declval<_Tp>())); 29724: 29724: public: 29724: template 29724: constexpr 29724: _Not_fn(_Fn2&& __fn, int) 29724: : _M_fn(std::forward<_Fn2>(__fn)) { } 29724: 29724: _Not_fn(const _Not_fn& __fn) = default; 29724: _Not_fn(_Not_fn&& __fn) = default; 29724: ~_Not_fn() = default; 29724: # 1161 "/usr/include/c++/14/functional" 3 29724: template::value>> decltype(_S_not<__inv_res_t<_Fn &, _Args...>>()) operator()(_Args&&... __args) & noexcept(__is_nothrow_invocable<_Fn &, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn &, _Args...>>())) { return !std::__invoke(std::forward< _Fn & >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) & = delete; 29724: template::value>> decltype(_S_not<__inv_res_t<_Fn const &, _Args...>>()) operator()(_Args&&... __args) const & noexcept(__is_nothrow_invocable<_Fn const &, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn const &, _Args...>>())) { return !std::__invoke(std::forward< _Fn const & >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) const & = delete; 29724: template::value>> decltype(_S_not<__inv_res_t<_Fn &&, _Args...>>()) operator()(_Args&&... __args) && noexcept(__is_nothrow_invocable<_Fn &&, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn &&, _Args...>>())) { return !std::__invoke(std::forward< _Fn && >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) && = delete; 29724: template::value>> decltype(_S_not<__inv_res_t<_Fn const &&, _Args...>>()) operator()(_Args&&... __args) const && noexcept(__is_nothrow_invocable<_Fn const &&, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn const &&, _Args...>>())) { return !std::__invoke(std::forward< _Fn const && >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) const && = delete; 29724: 29724: 29724: private: 29724: _Fn _M_fn; 29724: }; 29724: 29724: template 29724: struct __is_byte_like : false_type { }; 29724: 29724: template 29724: struct __is_byte_like<_Tp, equal_to<_Tp>> 29724: : __bool_constant::value> { }; 29724: 29724: template 29724: struct __is_byte_like<_Tp, equal_to> 29724: : __bool_constant::value> { }; 29724: 29724: 29724: 29724: enum class byte : unsigned char; 29724: 29724: template<> 29724: struct __is_byte_like> 29724: : true_type { }; 29724: 29724: template<> 29724: struct __is_byte_like> 29724: : true_type { }; 29724: # 1209 "/usr/include/c++/14/functional" 3 29724: template 29724: 29724: inline auto 29724: not_fn(_Fn&& __fn) 29724: noexcept(std::is_nothrow_constructible, _Fn&&>::value) 29724: { 29724: return _Not_fn>{std::forward<_Fn>(__fn), 0}; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: class default_searcher 29724: { 29724: public: 29724: 29724: default_searcher(_ForwardIterator1 __pat_first, 29724: _ForwardIterator1 __pat_last, 29724: _BinaryPredicate __pred = _BinaryPredicate()) 29724: : _M_m(__pat_first, __pat_last, std::move(__pred)) 29724: { } 29724: 29724: template 29724: 29724: pair<_ForwardIterator2, _ForwardIterator2> 29724: operator()(_ForwardIterator2 __first, _ForwardIterator2 __last) const 29724: { 29724: _ForwardIterator2 __first_ret = 29724: std::search(__first, __last, std::get<0>(_M_m), std::get<1>(_M_m), 29724: std::get<2>(_M_m)); 29724: auto __ret = std::make_pair(__first_ret, __first_ret); 29724: if (__ret.first != __last) 29724: std::advance(__ret.second, std::distance(std::get<0>(_M_m), 29724: std::get<1>(_M_m))); 29724: return __ret; 29724: } 29724: 29724: private: 29724: tuple<_ForwardIterator1, _ForwardIterator1, _BinaryPredicate> _M_m; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __boyer_moore_map_base 29724: { 29724: template 29724: __boyer_moore_map_base(_RAIter __pat, size_t __patlen, 29724: _Hash&& __hf, _Pred&& __pred) 29724: : _M_bad_char{ __patlen, std::move(__hf), std::move(__pred) } 29724: { 29724: if (__patlen > 0) 29724: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 29724: _M_bad_char[__pat[__i]] = __patlen - 1 - __i; 29724: } 29724: 29724: using __diff_type = _Tp; 29724: 29724: __diff_type 29724: _M_lookup(_Key __key, __diff_type __not_found) const 29724: { 29724: auto __iter = _M_bad_char.find(__key); 29724: if (__iter == _M_bad_char.end()) 29724: return __not_found; 29724: return __iter->second; 29724: } 29724: 29724: _Pred 29724: _M_pred() const { return _M_bad_char.key_eq(); } 29724: 29724: std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; 29724: }; 29724: 29724: template 29724: struct __boyer_moore_array_base 29724: { 29724: template 29724: __boyer_moore_array_base(_RAIter __pat, size_t __patlen, 29724: _Unused&&, _Pred&& __pred) 29724: : _M_bad_char{ array<_Tp, _Len>{}, std::move(__pred) } 29724: { 29724: std::get<0>(_M_bad_char).fill(__patlen); 29724: if (__patlen > 0) 29724: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 29724: { 29724: auto __ch = __pat[__i]; 29724: using _UCh = make_unsigned_t; 29724: auto __uch = static_cast<_UCh>(__ch); 29724: std::get<0>(_M_bad_char)[__uch] = __patlen - 1 - __i; 29724: } 29724: } 29724: 29724: using __diff_type = _Tp; 29724: 29724: template 29724: __diff_type 29724: _M_lookup(_Key __key, __diff_type __not_found) const 29724: { 29724: auto __ukey = static_cast>(__key); 29724: if (__ukey >= _Len) 29724: return __not_found; 29724: return std::get<0>(_M_bad_char)[__ukey]; 29724: } 29724: 29724: const _Pred& 29724: _M_pred() const { return std::get<1>(_M_bad_char); } 29724: 29724: tuple, _Pred> _M_bad_char; 29724: }; 29724: 29724: 29724: 29724: template::value_type, 29724: typename _Diff = typename iterator_traits<_RAIter>::difference_type> 29724: using __boyer_moore_base_t 29724: = __conditional_t<__is_byte_like<_Val, _Pred>::value, 29724: __boyer_moore_array_base<_Diff, 256, _Pred>, 29724: __boyer_moore_map_base<_Val, _Diff, _Hash, _Pred>>; 29724: 29724: template::value_type>, 29724: typename _BinaryPredicate = equal_to<>> 29724: class boyer_moore_searcher 29724: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 29724: { 29724: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 29724: using typename _Base::__diff_type; 29724: 29724: public: 29724: boyer_moore_searcher(_RAIter __pat_first, _RAIter __pat_last, 29724: _Hash __hf = _Hash(), 29724: _BinaryPredicate __pred = _BinaryPredicate()); 29724: 29724: template 29724: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29724: operator()(_RandomAccessIterator2 __first, 29724: _RandomAccessIterator2 __last) const; 29724: 29724: private: 29724: bool 29724: _M_is_prefix(_RAIter __word, __diff_type __len, 29724: __diff_type __pos) 29724: { 29724: const auto& __pred = this->_M_pred(); 29724: __diff_type __suffixlen = __len - __pos; 29724: for (__diff_type __i = 0; __i < __suffixlen; ++__i) 29724: if (!__pred(__word[__i], __word[__pos + __i])) 29724: return false; 29724: return true; 29724: } 29724: 29724: __diff_type 29724: _M_suffix_length(_RAIter __word, __diff_type __len, 29724: __diff_type __pos) 29724: { 29724: const auto& __pred = this->_M_pred(); 29724: __diff_type __i = 0; 29724: while (__pred(__word[__pos - __i], __word[__len - 1 - __i]) 29724: && __i < __pos) 29724: { 29724: ++__i; 29724: } 29724: return __i; 29724: } 29724: 29724: template 29724: __diff_type 29724: _M_bad_char_shift(_Tp __c) const 29724: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 29724: 29724: _RAIter _M_pat; 29724: _RAIter _M_pat_end; 29724: std::vector<__diff_type> _M_good_suffix; 29724: }; 29724: 29724: template::value_type>, 29724: typename _BinaryPredicate = equal_to<>> 29724: class boyer_moore_horspool_searcher 29724: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 29724: { 29724: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 29724: using typename _Base::__diff_type; 29724: 29724: public: 29724: boyer_moore_horspool_searcher(_RAIter __pat, 29724: _RAIter __pat_end, 29724: _Hash __hf = _Hash(), 29724: _BinaryPredicate __pred 29724: = _BinaryPredicate()) 29724: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 29724: _M_pat(__pat), _M_pat_end(__pat_end) 29724: { } 29724: 29724: template 29724: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29724: operator()(_RandomAccessIterator2 __first, 29724: _RandomAccessIterator2 __last) const 29724: { 29724: const auto& __pred = this->_M_pred(); 29724: auto __patlen = _M_pat_end - _M_pat; 29724: if (__patlen == 0) 29724: return std::make_pair(__first, __first); 29724: auto __len = __last - __first; 29724: while (__len >= __patlen) 29724: { 29724: for (auto __scan = __patlen - 1; 29724: __pred(__first[__scan], _M_pat[__scan]); --__scan) 29724: if (__scan == 0) 29724: return std::make_pair(__first, __first + __patlen); 29724: auto __shift = _M_bad_char_shift(__first[__patlen - 1]); 29724: __len -= __shift; 29724: __first += __shift; 29724: } 29724: return std::make_pair(__last, __last); 29724: } 29724: 29724: private: 29724: template 29724: __diff_type 29724: _M_bad_char_shift(_Tp __c) const 29724: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 29724: 29724: _RAIter _M_pat; 29724: _RAIter _M_pat_end; 29724: }; 29724: 29724: template 29724: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 29724: boyer_moore_searcher(_RAIter __pat, _RAIter __pat_end, 29724: _Hash __hf, _BinaryPredicate __pred) 29724: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 29724: _M_pat(__pat), _M_pat_end(__pat_end), _M_good_suffix(__pat_end - __pat) 29724: { 29724: auto __patlen = __pat_end - __pat; 29724: if (__patlen == 0) 29724: return; 29724: __diff_type __last_prefix = __patlen - 1; 29724: for (__diff_type __p = __patlen - 1; __p >= 0; --__p) 29724: { 29724: if (_M_is_prefix(__pat, __patlen, __p + 1)) 29724: __last_prefix = __p + 1; 29724: _M_good_suffix[__p] = __last_prefix + (__patlen - 1 - __p); 29724: } 29724: for (__diff_type __p = 0; __p < __patlen - 1; ++__p) 29724: { 29724: auto __slen = _M_suffix_length(__pat, __patlen, __p); 29724: auto __pos = __patlen - 1 - __slen; 29724: if (!__pred(__pat[__p - __slen], __pat[__pos])) 29724: _M_good_suffix[__pos] = __patlen - 1 - __p + __slen; 29724: } 29724: } 29724: 29724: template 29724: template 29724: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29724: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 29724: operator()(_RandomAccessIterator2 __first, 29724: _RandomAccessIterator2 __last) const 29724: { 29724: auto __patlen = _M_pat_end - _M_pat; 29724: if (__patlen == 0) 29724: return std::make_pair(__first, __first); 29724: const auto& __pred = this->_M_pred(); 29724: __diff_type __i = __patlen - 1; 29724: auto __stringlen = __last - __first; 29724: while (__i < __stringlen) 29724: { 29724: __diff_type __j = __patlen - 1; 29724: while (__j >= 0 && __pred(__first[__i], _M_pat[__j])) 29724: { 29724: --__i; 29724: --__j; 29724: } 29724: if (__j < 0) 29724: { 29724: const auto __match = __first + __i + 1; 29724: return std::make_pair(__match, __match + __patlen); 29724: } 29724: __i += std::max(_M_bad_char_shift(__first[__i]), 29724: _M_good_suffix[__j]); 29724: } 29724: return std::make_pair(__last, __last); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/usr/include/c++/14/memory" 1 3 29724: # 47 "/usr/include/c++/14/memory" 3 29724: 29724: # 48 "/usr/include/c++/14/memory" 3 29724: # 66 "/usr/include/c++/14/memory" 3 29724: # 1 "/usr/include/c++/14/bits/stl_tempbuf.h" 1 3 29724: # 65 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: namespace __detail 29724: { 29724: template 29724: inline void 29724: __return_temporary_buffer(_Tp* __p, 29724: size_t __len __attribute__((__unused__))) 29724: { 29724: 29724: ::operator delete(__p, __len * sizeof(_Tp)); 29724: 29724: 29724: 29724: } 29724: } 29724: # 101 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29724: template 29724: [[__deprecated__]] 29724: pair<_Tp*, ptrdiff_t> 29724: get_temporary_buffer(ptrdiff_t __len) noexcept 29724: { 29724: const ptrdiff_t __max = 29724: __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 29724: if (__len > __max) 29724: __len = __max; 29724: 29724: while (__len > 0) 29724: { 29724: _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), 29724: std::nothrow)); 29724: if (__tmp != 0) 29724: return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); 29724: __len = __len == 1 ? 0 : ((__len + 1) / 2); 29724: } 29724: return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); 29724: } 29724: # 129 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29724: template 29724: inline void 29724: return_temporary_buffer(_Tp* __p) 29724: { ::operator delete(__p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Temporary_buffer 29724: { 29724: 29724: 29724: 29724: public: 29724: typedef _Tp value_type; 29724: typedef value_type* pointer; 29724: typedef pointer iterator; 29724: typedef ptrdiff_t size_type; 29724: 29724: protected: 29724: size_type _M_original_len; 29724: size_type _M_len; 29724: pointer _M_buffer; 29724: 29724: public: 29724: 29724: size_type 29724: size() const 29724: { return _M_len; } 29724: 29724: 29724: size_type 29724: requested_size() const 29724: { return _M_original_len; } 29724: 29724: 29724: iterator 29724: begin() 29724: { return _M_buffer; } 29724: 29724: 29724: iterator 29724: end() 29724: { return _M_buffer + _M_len; } 29724: 29724: 29724: 29724: 29724: 29724: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); 29724: 29724: ~_Temporary_buffer() 29724: { 29724: std::_Destroy(_M_buffer, _M_buffer + _M_len); 29724: std::__detail::__return_temporary_buffer(_M_buffer, _M_len); 29724: } 29724: 29724: private: 29724: 29724: _Temporary_buffer(const _Temporary_buffer&); 29724: 29724: void 29724: operator=(const _Temporary_buffer&); 29724: }; 29724: 29724: 29724: template 29724: struct __uninitialized_construct_buf_dispatch 29724: { 29724: template 29724: static void 29724: __ucr(_Pointer __first, _Pointer __last, 29724: _ForwardIterator __seed) 29724: { 29724: if (__first == __last) 29724: return; 29724: 29724: _Pointer __cur = __first; 29724: try 29724: { 29724: std::_Construct(std::__addressof(*__first), 29724: std::move(*__seed)); 29724: _Pointer __prev = __cur; 29724: ++__cur; 29724: for(; __cur != __last; ++__cur, ++__prev) 29724: std::_Construct(std::__addressof(*__cur), 29724: std::move(*__prev)); 29724: *__seed = std::move(*__prev); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_construct_buf_dispatch 29724: { 29724: template 29724: static void 29724: __ucr(_Pointer, _Pointer, _ForwardIterator) { } 29724: }; 29724: # 247 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29724: template 29724: inline void 29724: __uninitialized_construct_buf(_Pointer __first, _Pointer __last, 29724: _ForwardIterator __seed) 29724: { 29724: typedef typename std::iterator_traits<_Pointer>::value_type 29724: _ValueType; 29724: 29724: std::__uninitialized_construct_buf_dispatch< 29724: __has_trivial_constructor(_ValueType)>:: 29724: __ucr(__first, __last, __seed); 29724: } 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template 29724: _Temporary_buffer<_ForwardIterator, _Tp>:: 29724: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) 29724: : _M_original_len(__original_len), _M_len(0), _M_buffer(0) 29724: { 29724: std::pair __p( 29724: std::get_temporary_buffer(_M_original_len)); 29724: 29724: if (__p.first) 29724: { 29724: try 29724: { 29724: std::__uninitialized_construct_buf(__p.first, __p.first + __p.second, 29724: __seed); 29724: _M_buffer = __p.first; 29724: _M_len = __p.second; 29724: } 29724: catch(...) 29724: { 29724: std::__detail::__return_temporary_buffer(__p.first, __p.second); 29724: throw; 29724: } 29724: } 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: } 29724: # 67 "/usr/include/c++/14/memory" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 1 3 29724: # 59 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: # 64 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class [[__deprecated__]] raw_storage_iterator 29724: : public iterator 29724: { 29724: protected: 29724: _OutputIterator _M_iter; 29724: 29724: public: 29724: explicit 29724: raw_storage_iterator(_OutputIterator __x) 29724: : _M_iter(__x) {} 29724: 29724: raw_storage_iterator& 29724: operator*() { return *this; } 29724: 29724: raw_storage_iterator& 29724: operator=(const _Tp& __element) 29724: { 29724: std::_Construct(std::__addressof(*_M_iter), __element); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: raw_storage_iterator& 29724: operator=(_Tp&& __element) 29724: { 29724: std::_Construct(std::__addressof(*_M_iter), std::move(__element)); 29724: return *this; 29724: } 29724: 29724: 29724: raw_storage_iterator& 29724: operator++() 29724: { 29724: ++_M_iter; 29724: return *this; 29724: } 29724: 29724: raw_storage_iterator 29724: operator++(int) 29724: { 29724: raw_storage_iterator __tmp = *this; 29724: ++_M_iter; 29724: return __tmp; 29724: } 29724: 29724: 29724: 29724: _OutputIterator base() const { return _M_iter; } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: } 29724: # 71 "/usr/include/c++/14/memory" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/align.h" 1 3 29724: # 36 "/usr/include/c++/14/bits/align.h" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 37 "/usr/include/c++/14/bits/align.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 60 "/usr/include/c++/14/bits/align.h" 3 29724: inline void* 29724: align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept 29724: { 29724: if (__space < __size) 29724: return nullptr; 29724: const auto __intptr = reinterpret_cast(__ptr); 29724: const auto __aligned = (__intptr - 1u + __align) & -__align; 29724: const auto __diff = __aligned - __intptr; 29724: if (__diff > (__space - __size)) 29724: return nullptr; 29724: else 29724: { 29724: __space -= __diff; 29724: return __ptr = reinterpret_cast(__aligned); 29724: } 29724: } 29724: # 106 "/usr/include/c++/14/bits/align.h" 3 29724: 29724: } 29724: # 75 "/usr/include/c++/14/memory" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/unique_ptr.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 57 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template class auto_ptr; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct default_delete 29724: { 29724: 29724: constexpr default_delete() noexcept = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template>> 29724: 29724: default_delete(const default_delete<_Up>&) noexcept { } 29724: 29724: 29724: 29724: void 29724: operator()(_Tp* __ptr) const 29724: { 29724: static_assert(!is_void<_Tp>::value, 29724: "can't delete pointer to incomplete type"); 29724: static_assert(sizeof(_Tp)>0, 29724: "can't delete pointer to incomplete type"); 29724: delete __ptr; 29724: } 29724: }; 29724: # 105 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: struct default_delete<_Tp[]> 29724: { 29724: public: 29724: 29724: constexpr default_delete() noexcept = default; 29724: # 121 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template>> 29724: 29724: default_delete(const default_delete<_Up[]>&) noexcept { } 29724: 29724: 29724: template 29724: 29724: typename enable_if::value>::type 29724: operator()(_Up* __ptr) const 29724: { 29724: static_assert(sizeof(_Tp)>0, 29724: "can't delete pointer to incomplete type"); 29724: delete [] __ptr; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: class __uniq_ptr_impl 29724: { 29724: template 29724: struct _Ptr 29724: { 29724: using type = _Up*; 29724: }; 29724: 29724: template 29724: struct 29724: _Ptr<_Up, _Ep, __void_t::type::pointer>> 29724: { 29724: using type = typename remove_reference<_Ep>::type::pointer; 29724: }; 29724: 29724: public: 29724: using _DeleterConstraint = enable_if< 29724: __and_<__not_>, 29724: is_default_constructible<_Dp>>::value>; 29724: 29724: using pointer = typename _Ptr<_Tp, _Dp>::type; 29724: 29724: static_assert( !is_rvalue_reference<_Dp>::value, 29724: "unique_ptr's deleter type must be a function object type" 29724: " or an lvalue reference type" ); 29724: 29724: __uniq_ptr_impl() = default; 29724: 29724: __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } 29724: 29724: template 29724: 29724: __uniq_ptr_impl(pointer __p, _Del&& __d) 29724: : _M_t(__p, std::forward<_Del>(__d)) { } 29724: 29724: 29724: __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept 29724: : _M_t(std::move(__u._M_t)) 29724: { __u._M_ptr() = nullptr; } 29724: 29724: 29724: __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept 29724: { 29724: reset(__u.release()); 29724: _M_deleter() = std::forward<_Dp>(__u._M_deleter()); 29724: return *this; 29724: } 29724: 29724: 29724: pointer& _M_ptr() noexcept { return std::get<0>(_M_t); } 29724: 29724: pointer _M_ptr() const noexcept { return std::get<0>(_M_t); } 29724: 29724: _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); } 29724: 29724: const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); } 29724: 29724: 29724: void reset(pointer __p) noexcept 29724: { 29724: const pointer __old_p = _M_ptr(); 29724: _M_ptr() = __p; 29724: if (__old_p) 29724: _M_deleter()(__old_p); 29724: } 29724: 29724: 29724: pointer release() noexcept 29724: { 29724: pointer __p = _M_ptr(); 29724: _M_ptr() = nullptr; 29724: return __p; 29724: } 29724: 29724: 29724: void 29724: swap(__uniq_ptr_impl& __rhs) noexcept 29724: { 29724: using std::swap; 29724: swap(this->_M_ptr(), __rhs._M_ptr()); 29724: swap(this->_M_deleter(), __rhs._M_deleter()); 29724: } 29724: 29724: private: 29724: tuple _M_t; 29724: }; 29724: 29724: 29724: template ::value, 29724: bool = is_move_assignable<_Dp>::value> 29724: struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp> 29724: { 29724: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29724: __uniq_ptr_data(__uniq_ptr_data&&) = default; 29724: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 29724: }; 29724: 29724: template 29724: struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp> 29724: { 29724: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29724: __uniq_ptr_data(__uniq_ptr_data&&) = default; 29724: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 29724: }; 29724: 29724: template 29724: struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp> 29724: { 29724: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29724: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 29724: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 29724: }; 29724: 29724: template 29724: struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp> 29724: { 29724: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29724: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 29724: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template > 29724: class unique_ptr 29724: { 29724: template 29724: using _DeleterConstraint = 29724: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 29724: 29724: __uniq_ptr_data<_Tp, _Dp> _M_t; 29724: 29724: public: 29724: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 29724: using element_type = _Tp; 29724: using deleter_type = _Dp; 29724: 29724: private: 29724: 29724: 29724: template 29724: using __safe_conversion_up = __and_< 29724: is_convertible::pointer, pointer>, 29724: __not_> 29724: >; 29724: 29724: public: 29724: 29724: 29724: 29724: template> 29724: constexpr unique_ptr() noexcept 29724: : _M_t() 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: 29724: explicit 29724: unique_ptr(pointer __p) noexcept 29724: : _M_t(__p) 29724: { } 29724: # 322 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template>> 29724: 29724: unique_ptr(pointer __p, const deleter_type& __d) noexcept 29724: : _M_t(__p, __d) { } 29724: # 335 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template>> 29724: 29724: unique_ptr(pointer __p, 29724: __enable_if_t::value, 29724: _Del&&> __d) noexcept 29724: : _M_t(__p, std::move(__d)) 29724: { } 29724: 29724: template::type> 29724: 29724: unique_ptr(pointer, 29724: __enable_if_t::value, 29724: _DelUnref&&>) = delete; 29724: 29724: 29724: template> 29724: constexpr unique_ptr(nullptr_t) noexcept 29724: : _M_t() 29724: { } 29724: 29724: 29724: 29724: 29724: unique_ptr(unique_ptr&&) = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template, 29724: __conditional_t::value, 29724: is_same<_Ep, _Dp>, 29724: is_convertible<_Ep, _Dp>>>> 29724: 29724: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 29724: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 29724: { } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: template, 29724: is_same<_Dp, default_delete<_Tp>>>> 29724: unique_ptr(auto_ptr<_Up>&& __u) noexcept; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~unique_ptr() noexcept 29724: { 29724: static_assert(__is_invocable::value, 29724: "unique_ptr's deleter must be invocable with a pointer"); 29724: auto& __ptr = _M_t._M_ptr(); 29724: if (__ptr != nullptr) 29724: get_deleter()(std::move(__ptr)); 29724: __ptr = pointer(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: unique_ptr& operator=(unique_ptr&&) = default; 29724: # 418 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: 29724: typename enable_if< __and_< 29724: __safe_conversion_up<_Up, _Ep>, 29724: is_assignable 29724: >::value, 29724: unique_ptr&>::type 29724: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 29724: { 29724: reset(__u.release()); 29724: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: unique_ptr& 29724: operator=(nullptr_t) noexcept 29724: { 29724: reset(); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: typename add_lvalue_reference::type 29724: operator*() const noexcept(noexcept(*std::declval())) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) std::__glibcxx_assert_fail(); } while (false); 29724: return *get(); 29724: } 29724: 29724: 29724: 29724: pointer 29724: operator->() const noexcept 29724: { 29724: ; 29724: return get(); 29724: } 29724: 29724: 29724: 29724: pointer 29724: get() const noexcept 29724: { return _M_t._M_ptr(); } 29724: 29724: 29724: 29724: deleter_type& 29724: get_deleter() noexcept 29724: { return _M_t._M_deleter(); } 29724: 29724: 29724: 29724: const deleter_type& 29724: get_deleter() const noexcept 29724: { return _M_t._M_deleter(); } 29724: 29724: 29724: 29724: explicit operator bool() const noexcept 29724: { return get() == pointer() ? false : true; } 29724: 29724: 29724: 29724: 29724: 29724: pointer 29724: release() noexcept 29724: { return _M_t.release(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset(pointer __p = pointer()) noexcept 29724: { 29724: static_assert(__is_invocable::value, 29724: "unique_ptr's deleter must be invocable with a pointer"); 29724: _M_t.reset(std::move(__p)); 29724: } 29724: 29724: 29724: 29724: void 29724: swap(unique_ptr& __u) noexcept 29724: { 29724: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 29724: _M_t.swap(__u._M_t); 29724: } 29724: 29724: 29724: unique_ptr(const unique_ptr&) = delete; 29724: unique_ptr& operator=(const unique_ptr&) = delete; 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: # 537 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: class unique_ptr<_Tp[], _Dp> 29724: { 29724: template 29724: using _DeleterConstraint = 29724: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 29724: 29724: __uniq_ptr_data<_Tp, _Dp> _M_t; 29724: 29724: 29724: template 29724: using __is_derived_Tp 29724: = __and_< is_base_of<_Tp, _Up>, 29724: __not_, __remove_cv_t<_Up>>> >; 29724: 29724: public: 29724: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 29724: using element_type = _Tp; 29724: using deleter_type = _Dp; 29724: 29724: 29724: 29724: template, 29724: typename _UP_pointer = typename _UPtr::pointer, 29724: typename _UP_element_type = typename _UPtr::element_type> 29724: using __safe_conversion_up = __and_< 29724: is_array<_Up>, 29724: is_same, 29724: is_same<_UP_pointer, _UP_element_type*>, 29724: is_convertible<_UP_element_type(*)[], element_type(*)[]> 29724: >; 29724: 29724: 29724: template 29724: using __safe_conversion_raw = __and_< 29724: __or_<__or_, 29724: is_same<_Up, nullptr_t>>, 29724: __and_, 29724: is_same, 29724: is_convertible< 29724: typename remove_pointer<_Up>::type(*)[], 29724: element_type(*)[]> 29724: > 29724: > 29724: >; 29724: 29724: 29724: 29724: 29724: template> 29724: constexpr unique_ptr() noexcept 29724: : _M_t() 29724: { } 29724: # 599 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template, 29724: typename = typename enable_if< 29724: __safe_conversion_raw<_Up>::value, bool>::type> 29724: 29724: explicit 29724: unique_ptr(_Up __p) noexcept 29724: : _M_t(__p) 29724: { } 29724: # 618 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template, 29724: is_copy_constructible<_Del>>> 29724: 29724: unique_ptr(_Up __p, const deleter_type& __d) noexcept 29724: : _M_t(__p, __d) { } 29724: # 633 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template, 29724: is_move_constructible<_Del>>> 29724: 29724: unique_ptr(_Up __p, 29724: __enable_if_t::value, 29724: _Del&&> __d) noexcept 29724: : _M_t(std::move(__p), std::move(__d)) 29724: { } 29724: 29724: template::type, 29724: typename = _Require<__safe_conversion_raw<_Up>>> 29724: unique_ptr(_Up, 29724: __enable_if_t::value, 29724: _DelUnref&&>) = delete; 29724: 29724: 29724: unique_ptr(unique_ptr&&) = default; 29724: 29724: 29724: template> 29724: constexpr unique_ptr(nullptr_t) noexcept 29724: : _M_t() 29724: { } 29724: 29724: template, 29724: __conditional_t::value, 29724: is_same<_Ep, _Dp>, 29724: is_convertible<_Ep, _Dp>>>> 29724: 29724: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 29724: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: ~unique_ptr() 29724: { 29724: auto& __ptr = _M_t._M_ptr(); 29724: if (__ptr != nullptr) 29724: get_deleter()(__ptr); 29724: __ptr = pointer(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: unique_ptr& 29724: operator=(unique_ptr&&) = default; 29724: # 697 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: 29724: typename 29724: enable_if<__and_<__safe_conversion_up<_Up, _Ep>, 29724: is_assignable 29724: >::value, 29724: unique_ptr&>::type 29724: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 29724: { 29724: reset(__u.release()); 29724: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: unique_ptr& 29724: operator=(nullptr_t) noexcept 29724: { 29724: reset(); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: typename std::add_lvalue_reference::type 29724: operator[](size_t __i) const 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) std::__glibcxx_assert_fail(); } while (false); 29724: return get()[__i]; 29724: } 29724: 29724: 29724: 29724: pointer 29724: get() const noexcept 29724: { return _M_t._M_ptr(); } 29724: 29724: 29724: 29724: deleter_type& 29724: get_deleter() noexcept 29724: { return _M_t._M_deleter(); } 29724: 29724: 29724: 29724: const deleter_type& 29724: get_deleter() const noexcept 29724: { return _M_t._M_deleter(); } 29724: 29724: 29724: 29724: explicit operator bool() const noexcept 29724: { return get() == pointer() ? false : true; } 29724: 29724: 29724: 29724: 29724: 29724: pointer 29724: release() noexcept 29724: { return _M_t.release(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template , 29724: __and_, 29724: is_pointer<_Up>, 29724: is_convertible< 29724: typename remove_pointer<_Up>::type(*)[], 29724: element_type(*)[] 29724: > 29724: > 29724: > 29724: >> 29724: 29724: void 29724: reset(_Up __p) noexcept 29724: { _M_t.reset(std::move(__p)); } 29724: 29724: 29724: void reset(nullptr_t = nullptr) noexcept 29724: { reset(pointer()); } 29724: 29724: 29724: 29724: void 29724: swap(unique_ptr& __u) noexcept 29724: { 29724: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 29724: _M_t.swap(__u._M_t); 29724: } 29724: 29724: 29724: unique_ptr(const unique_ptr&) = delete; 29724: unique_ptr& operator=(const unique_ptr&) = delete; 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline 29724: 29724: 29724: 29724: typename enable_if<__is_swappable<_Dp>::value>::type 29724: 29724: 29724: 29724: swap(unique_ptr<_Tp, _Dp>& __x, 29724: unique_ptr<_Tp, _Dp>& __y) noexcept 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: typename enable_if::value>::type 29724: swap(unique_ptr<_Tp, _Dp>&, 29724: unique_ptr<_Tp, _Dp>&) = delete; 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { return __x.get() == __y.get(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 29724: { return !__x; } 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 29724: { return !__x; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { return __x.get() != __y.get(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 29724: { return (bool)__x; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 29724: { return (bool)__x; } 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { 29724: typedef typename 29724: std::common_type::pointer, 29724: typename unique_ptr<_Up, _Ep>::pointer>::type _CT; 29724: return std::less<_CT>()(__x.get(), __y.get()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29724: { 29724: return std::less::pointer>()(__x.get(), 29724: nullptr); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29724: { 29724: return std::less::pointer>()(nullptr, 29724: __x.get()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29724: { return !(nullptr < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29724: { return !(__x < nullptr); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { return (__y < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29724: { 29724: return std::less::pointer>()(nullptr, 29724: __x.get()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29724: { 29724: return std::less::pointer>()(__x.get(), 29724: nullptr); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29724: { return !(__x < nullptr); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29724: { return !(nullptr < __x); } 29724: # 1015 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template::__enable_hash_call> 29724: struct __uniq_ptr_hash 29724: 29724: : private __poison_hash<_Ptr> 29724: 29724: { 29724: size_t 29724: operator()(const _Up& __u) const 29724: noexcept(noexcept(std::declval>()(std::declval<_Ptr>()))) 29724: { return hash<_Ptr>()(__u.get()); } 29724: }; 29724: 29724: template 29724: struct __uniq_ptr_hash<_Up, _Ptr, false> 29724: : private __poison_hash<_Ptr> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct hash> 29724: : public __hash_base>, 29724: public __uniq_ptr_hash> 29724: { }; 29724: 29724: 29724: 29724: namespace __detail 29724: { 29724: template 29724: struct _MakeUniq 29724: { typedef unique_ptr<_Tp> __single_object; }; 29724: 29724: template 29724: struct _MakeUniq<_Tp[]> 29724: { typedef unique_ptr<_Tp[]> __array; }; 29724: 29724: template 29724: struct _MakeUniq<_Tp[_Bound]> 29724: { struct __invalid_type { }; }; 29724: 29724: template 29724: using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object; 29724: template 29724: using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array; 29724: template 29724: using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type; 29724: } 29724: # 1073 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: 29724: inline __detail::__unique_ptr_t<_Tp> 29724: make_unique(_Args&&... __args) 29724: { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } 29724: # 1088 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: 29724: inline __detail::__unique_ptr_array_t<_Tp> 29724: make_unique(size_t __num) 29724: { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: __detail::__invalid_make_unique_t<_Tp> 29724: make_unique(_Args&&...) = delete; 29724: # 1159 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: static constexpr bool __is_unique_ptr = false; 29724: template 29724: static constexpr bool __is_unique_ptr> = true; 29724: 29724: 29724: 29724: 29724: 29724: namespace __detail::__variant 29724: { 29724: template struct _Never_valueless_alt; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : std::true_type 29724: { }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 79 "/usr/include/c++/14/memory" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/shared_ptr.h" 1 3 29724: # 52 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: # 1 "/usr/include/c++/14/iosfwd" 1 3 29724: # 36 "/usr/include/c++/14/iosfwd" 3 29724: 29724: # 37 "/usr/include/c++/14/iosfwd" 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stringfwd.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/stringfwd.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/stringfwd.h" 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct char_traits; 29724: 29724: template<> struct char_traits; 29724: 29724: template<> struct char_traits; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> struct char_traits; 29724: template<> struct char_traits; 29724: 29724: 29724: namespace __cxx11 { 29724: 29724: template, 29724: typename _Alloc = allocator<_CharT> > 29724: class basic_string; 29724: 29724: } 29724: 29724: 29724: typedef basic_string string; 29724: 29724: 29724: typedef basic_string wstring; 29724: # 89 "/usr/include/c++/14/bits/stringfwd.h" 3 29724: typedef basic_string u16string; 29724: 29724: 29724: typedef basic_string u32string; 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 42 "/usr/include/c++/14/iosfwd" 2 3 29724: # 1 "/usr/include/c++/14/bits/postypes.h" 1 3 29724: # 38 "/usr/include/c++/14/bits/postypes.h" 3 29724: 29724: # 39 "/usr/include/c++/14/bits/postypes.h" 3 29724: 29724: # 1 "/usr/include/c++/14/cwchar" 1 3 29724: # 39 "/usr/include/c++/14/cwchar" 3 29724: 29724: # 40 "/usr/include/c++/14/cwchar" 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/wchar.h" 1 3 4 29724: # 27 "/usr/include/wchar.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 28 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29724: # 52 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 29724: # 25 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 2 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 2 3 4 29724: # 31 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 36 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29724: # 40 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 3 4 29724: typedef __builtin_va_list __gnuc_va_list; 29724: # 39 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: 29724: 29724: typedef __gnuc_va_list va_list; 29724: # 52 "/usr/include/wchar.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 1 3 4 29724: # 20 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 3 4 29724: typedef unsigned int wint_t; 29724: # 53 "/usr/include/wchar.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 1 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 1 3 4 29724: # 13 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 3 4 29724: typedef struct 29724: { 29724: int __count; 29724: union 29724: { 29724: unsigned int __wch; 29724: char __wchb[4]; 29724: } __value; 29724: } __mbstate_t; 29724: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 2 3 4 29724: 29724: typedef __mbstate_t mbstate_t; 29724: # 54 "/usr/include/wchar.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__FILE.h" 1 3 4 29724: 29724: 29724: 29724: struct _IO_FILE; 29724: typedef struct _IO_FILE __FILE; 29724: # 55 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/FILE.h" 1 3 4 29724: 29724: 29724: 29724: struct _IO_FILE; 29724: 29724: 29724: typedef struct _IO_FILE FILE; 29724: # 58 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 1 3 4 29724: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 3 4 29724: struct __locale_struct 29724: { 29724: 29724: struct __locale_data *__locales[13]; 29724: 29724: 29724: const unsigned short int *__ctype_b; 29724: const int *__ctype_tolower; 29724: const int *__ctype_toupper; 29724: 29724: 29724: const char *__names[13]; 29724: }; 29724: 29724: typedef struct __locale_struct *__locale_t; 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 2 3 4 29724: 29724: typedef __locale_t locale_t; 29724: # 61 "/usr/include/wchar.h" 2 3 4 29724: # 90 "/usr/include/wchar.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: struct tm; 29724: 29724: 29724: 29724: extern wchar_t *wcscpy (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern size_t wcslcpy (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: 29724: 29724: 29724: extern size_t wcslcat (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 29724: 29724: 29724: 29724: extern wchar_t *wcscat (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern wchar_t *wcsncat (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 29724: 29724: 29724: extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, 29724: size_t __n) noexcept (true); 29724: 29724: 29724: 29724: extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 29724: locale_t __loc) noexcept (true); 29724: 29724: extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 29724: size_t __n, locale_t __loc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 29724: 29724: 29724: 29724: extern size_t wcsxfrm (wchar_t *__restrict __s1, 29724: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, 29724: locale_t __loc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, 29724: size_t __n, locale_t __loc) noexcept (true); 29724: 29724: 29724: extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: 29724: 29724: extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) 29724: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) 29724: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) 29724: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) 29724: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 29724: # 206 "/usr/include/wchar.h" 3 4 29724: extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) 29724: noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) 29724: noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) 29724: noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) 29724: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, 29724: const wchar_t *__accept) 29724: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) 29724: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, 29724: const wchar_t *__needle) 29724: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wchar_t *wcstok (wchar_t *__restrict __s, 29724: const wchar_t *__restrict __delim, 29724: wchar_t **__restrict __ptr) noexcept (true); 29724: 29724: 29724: extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) 29724: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, 29724: const wchar_t *__needle) 29724: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 29724: # 265 "/usr/include/wchar.h" 3 4 29724: extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) 29724: noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) 29724: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, 29724: size_t __n) 29724: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, 29724: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 29724: 29724: 29724: 29724: extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) 29724: noexcept (true); 29724: 29724: 29724: extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern wchar_t *wmempcpy (wchar_t *__restrict __s1, 29724: const wchar_t *__restrict __s2, size_t __n) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t btowc (int __c) noexcept (true); 29724: 29724: 29724: 29724: extern int wctob (wint_t __c) noexcept (true); 29724: 29724: 29724: 29724: extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: extern size_t mbrtowc (wchar_t *__restrict __pwc, 29724: const char *__restrict __s, size_t __n, 29724: mbstate_t *__restrict __p) noexcept (true); 29724: 29724: 29724: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: extern size_t __mbrlen (const char *__restrict __s, size_t __n, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: extern size_t mbrlen (const char *__restrict __s, size_t __n, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t __btowc_alias (int __c) __asm ("btowc"); 29724: extern __inline __attribute__ ((__gnu_inline__)) wint_t 29724: __attribute__ ((__leaf__)) btowc (int __c) noexcept (true) 29724: { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' 29724: ? (wint_t) __c : __btowc_alias (__c)); } 29724: 29724: extern int __wctob_alias (wint_t __c) __asm ("wctob"); 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: __attribute__ ((__leaf__)) wctob (wint_t __wc) noexcept (true) 29724: { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' 29724: ? (int) __wc : __wctob_alias (__wc)); } 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) size_t 29724: __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: { return (__ps != __null 29724: ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } 29724: 29724: 29724: 29724: 29724: extern size_t mbsrtowcs (wchar_t *__restrict __dst, 29724: const char **__restrict __src, size_t __len, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: 29724: extern size_t wcsrtombs (char *__restrict __dst, 29724: const wchar_t **__restrict __src, size_t __len, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, 29724: const char **__restrict __src, size_t __nmc, 29724: size_t __len, mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: 29724: extern size_t wcsnrtombs (char *__restrict __dst, 29724: const wchar_t **__restrict __src, 29724: size_t __nwc, size_t __len, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int wcwidth (wchar_t __c) noexcept (true); 29724: 29724: 29724: 29724: extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern double wcstod (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: 29724: 29724: 29724: extern float wcstof (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: extern long double wcstold (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: # 422 "/usr/include/wchar.h" 3 4 29724: extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: # 437 "/usr/include/wchar.h" 3 4 29724: extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: # 455 "/usr/include/wchar.h" 3 4 29724: extern long int wcstol (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base) noexcept (true); 29724: 29724: 29724: 29724: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: __extension__ 29724: extern long long int wcstoll (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base) 29724: noexcept (true); 29724: 29724: 29724: 29724: __extension__ 29724: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: int __base) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: __extension__ 29724: extern long long int wcstoq (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base) 29724: noexcept (true); 29724: 29724: 29724: 29724: __extension__ 29724: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: int __base) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int wcstol (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstol") 29724: 29724: ; 29724: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoul") 29724: 29724: 29724: ; 29724: __extension__ 29724: extern long long int wcstoll (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 29724: 29724: 29724: ; 29724: __extension__ 29724: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 29724: 29724: 29724: ; 29724: 29724: __extension__ 29724: extern long long int wcstoq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 29724: 29724: ; 29724: __extension__ 29724: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 29724: 29724: 29724: ; 29724: # 561 "/usr/include/wchar.h" 3 4 29724: extern long int wcstol_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base, 29724: locale_t __loc) noexcept (true); 29724: 29724: extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: int __base, locale_t __loc) noexcept (true); 29724: 29724: __extension__ 29724: extern long long int wcstoll_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: int __base, locale_t __loc) noexcept (true); 29724: 29724: __extension__ 29724: extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: int __base, locale_t __loc) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 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") 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: ; 29724: __extension__ 29724: 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") 29724: 29724: 29724: 29724: ; 29724: __extension__ 29724: 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") 29724: 29724: 29724: 29724: ; 29724: # 630 "/usr/include/wchar.h" 3 4 29724: extern double wcstod_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, locale_t __loc) 29724: noexcept (true); 29724: 29724: extern float wcstof_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, locale_t __loc) 29724: noexcept (true); 29724: 29724: extern long double wcstold_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: locale_t __loc) noexcept (true); 29724: # 649 "/usr/include/wchar.h" 3 4 29724: extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: locale_t __loc) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: locale_t __loc) noexcept (true); 29724: # 667 "/usr/include/wchar.h" 3 4 29724: extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: locale_t __loc) noexcept (true); 29724: # 689 "/usr/include/wchar.h" 3 4 29724: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src) noexcept (true); 29724: 29724: 29724: 29724: extern wchar_t *wcpncpy (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n) 29724: noexcept (true); 29724: # 718 "/usr/include/wchar.h" 3 4 29724: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 29724: __attribute__ ((__malloc__)) ; 29724: 29724: 29724: 29724: 29724: 29724: extern int fwide (__FILE *__fp, int __mode) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fwprintf (__FILE *__restrict __stream, 29724: const wchar_t *__restrict __format, ...) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int wprintf (const wchar_t *__restrict __format, ...) 29724: ; 29724: 29724: extern int swprintf (wchar_t *__restrict __s, size_t __n, 29724: const wchar_t *__restrict __format, ...) 29724: noexcept (true) ; 29724: 29724: 29724: 29724: 29724: 29724: extern int vfwprintf (__FILE *__restrict __s, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int vwprintf (const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: ; 29724: 29724: 29724: extern int vswprintf (wchar_t *__restrict __s, size_t __n, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: noexcept (true) ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fwscanf (__FILE *__restrict __stream, 29724: const wchar_t *__restrict __format, ...) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int wscanf (const wchar_t *__restrict __format, ...) 29724: ; 29724: 29724: extern int swscanf (const wchar_t *__restrict __s, 29724: const wchar_t *__restrict __format, ...) 29724: noexcept (true) ; 29724: # 795 "/usr/include/wchar.h" 3 4 29724: extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_fwscanf") 29724: 29724: 29724: ; 29724: extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_wscanf") 29724: 29724: ; 29724: extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_swscanf") 29724: 29724: 29724: ; 29724: # 851 "/usr/include/wchar.h" 3 4 29724: extern int vfwscanf (__FILE *__restrict __s, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int vwscanf (const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: ; 29724: 29724: extern int vswscanf (const wchar_t *__restrict __s, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: noexcept (true) ; 29724: # 875 "/usr/include/wchar.h" 3 4 29724: extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfwscanf") 29724: 29724: 29724: ; 29724: extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vwscanf") 29724: 29724: ; 29724: extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vswscanf") 29724: 29724: 29724: ; 29724: # 935 "/usr/include/wchar.h" 3 4 29724: extern wint_t fgetwc (__FILE *__stream); 29724: extern wint_t getwc (__FILE *__stream); 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t getwchar (void); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t fputwc (wchar_t __wc, __FILE *__stream); 29724: extern wint_t putwc (wchar_t __wc, __FILE *__stream); 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t putwchar (wchar_t __wc); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, 29724: __FILE *__restrict __stream); 29724: 29724: 29724: 29724: 29724: 29724: extern int fputws (const wchar_t *__restrict __ws, 29724: __FILE *__restrict __stream); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t ungetwc (wint_t __wc, __FILE *__stream); 29724: # 990 "/usr/include/wchar.h" 3 4 29724: extern wint_t getwc_unlocked (__FILE *__stream); 29724: extern wint_t getwchar_unlocked (void); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t fgetwc_unlocked (__FILE *__stream); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); 29724: # 1016 "/usr/include/wchar.h" 3 4 29724: extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); 29724: extern wint_t putwchar_unlocked (wchar_t __wc); 29724: # 1026 "/usr/include/wchar.h" 3 4 29724: extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, 29724: __FILE *__restrict __stream); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fputws_unlocked (const wchar_t *__restrict __ws, 29724: __FILE *__restrict __stream); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, 29724: const wchar_t *__restrict __format, 29724: const struct tm *__restrict __tp) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, 29724: const wchar_t *__restrict __format, 29724: const struct tm *__restrict __tp, 29724: locale_t __loc) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 3 4 29724: extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, 29724: const wchar_t *__restrict __s2, size_t __n, 29724: size_t __ns1) noexcept (true); 29724: extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmemcpy") 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, 29724: size_t __n, size_t __ns1) noexcept (true); 29724: extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __asm__ ("" "wmemmove") 29724: 29724: ; 29724: extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemmove_chk") 29724: 29724: 29724: __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: 29724: 29724: 29724: extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, 29724: const wchar_t *__restrict __s2, size_t __n, 29724: size_t __ns1) noexcept (true); 29724: extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmempcpy") 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: 29724: 29724: 29724: extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, 29724: size_t __ns) noexcept (true); 29724: extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm__ ("" "wmemset") 29724: ; 29724: extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true) __asm__ ("" "__wmemset_chk") 29724: 29724: 29724: __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, 29724: size_t __n) noexcept (true); 29724: extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscpy") 29724: 29724: ; 29724: 29724: extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, 29724: size_t __destlen) noexcept (true); 29724: extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcpcpy") 29724: 29724: ; 29724: 29724: extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncpy") 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: 29724: extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcpncpy") 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, 29724: size_t __destlen) noexcept (true); 29724: extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscat") 29724: 29724: ; 29724: 29724: extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, 29724: size_t __n, size_t __destlen) noexcept (true); 29724: extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncat") 29724: 29724: 29724: ; 29724: 29724: extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, 29724: int __flag, size_t __s_len, 29724: const wchar_t *__restrict __format, ...) 29724: noexcept (true) ; 29724: extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) __asm__ ("" "swprintf") 29724: 29724: 29724: ; 29724: 29724: extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, 29724: int __flag, size_t __s_len, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: noexcept (true) ; 29724: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) __asm__ ("" "vswprintf") 29724: 29724: 29724: ; 29724: 29724: 29724: 29724: 29724: extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, 29724: const wchar_t *__restrict __format, ...); 29724: extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, 29724: ...); 29724: extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __ap); 29724: extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, 29724: __gnuc_va_list __ap); 29724: 29724: 29724: 29724: extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, 29724: __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 29724: extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, 29724: int __n, __FILE *__restrict __stream) 29724: __attribute__ ((__warn_unused_result__)); 29724: extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, 29724: mbstate_t *__restrict __p, 29724: size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcrtomb") 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: 29724: extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, 29724: const char **__restrict __src, 29724: size_t __len, mbstate_t *__restrict __ps, 29724: size_t __dstlen) noexcept (true); 29724: extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsrtowcs") 29724: 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: 29724: __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29724: ; 29724: 29724: extern size_t __wcsrtombs_chk (char *__restrict __dst, 29724: const wchar_t **__restrict __src, 29724: size_t __len, mbstate_t *__restrict __ps, 29724: size_t __dstlen) noexcept (true); 29724: extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsrtombs") 29724: 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); 29724: 29724: 29724: 29724: extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, 29724: const char **__restrict __src, size_t __nmc, 29724: size_t __len, mbstate_t *__restrict __ps, 29724: size_t __dstlen) noexcept (true); 29724: 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") 29724: 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: 29724: __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29724: ; 29724: 29724: extern size_t __wcsnrtombs_chk (char *__restrict __dst, 29724: const wchar_t **__restrict __src, 29724: size_t __nwc, size_t __len, 29724: mbstate_t *__restrict __ps, size_t __dstlen) 29724: noexcept (true); 29724: 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") 29724: 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); 29724: 29724: 29724: 29724: 29724: extern size_t __wcslcpy_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: extern size_t __wcslcpy_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcpy") 29724: 29724: ; 29724: 29724: extern size_t __wcslcat_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: extern size_t __wcslcat_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcat") 29724: 29724: ; 29724: # 1060 "/usr/include/wchar.h" 2 3 4 29724: # 1070 "/usr/include/wchar.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wmemcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmemcpy_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmemcpy_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wmemmove (wchar_t * __s1, const wchar_t *__s2, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmemmove_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmemmove_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wmempcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmempcpy_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmempcpy_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wmemset (wchar_t * __s, wchar_t __c, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__s, 0)) && (__builtin_object_size (__s, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s, 0)) / (sizeof (wchar_t)))) ? __wmemset_chk_warn (__s, __c, __n, (__builtin_object_size (__s, 0)) / (sizeof (wchar_t))) : __wmemset_chk (__s, __c, __n, (__builtin_object_size (__s, 0)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcscpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29724: if (__sz != (size_t) -1) 29724: return __wcscpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 29724: return __wcscpy_alias (__dest, __src); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcpcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29724: if (__sz != (size_t) -1) 29724: return __wcpcpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 29724: return __wcpcpy_alias (__dest, __src); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcsncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dest, 2 > 1)) && (__builtin_object_size (__dest, 2 > 1)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t)))))) ? __wcsncpy_alias (__dest, __src, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) ? __wcsncpy_chk_warn (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))) : __wcsncpy_chk (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcpncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dest, 2 > 1)) && (__builtin_object_size (__dest, 2 > 1)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t)))))) ? __wcpncpy_alias (__dest, __src, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) ? __wcpncpy_chk_warn (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))) : __wcpncpy_chk (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcscat (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29724: if (__sz != (size_t) -1) 29724: return __wcscat_chk (__dest, __src, __sz / sizeof (wchar_t)); 29724: return __wcscat_alias (__dest, __src); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcsncat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29724: if (__sz != (size_t) -1) 29724: return __wcsncat_chk (__dest, __src, __n, __sz / sizeof (wchar_t)); 29724: return __wcsncat_alias (__dest, __src, __n); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) wcslcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29724: && (!__builtin_constant_p (__n 29724: > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)) 29724: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 29724: return __wcslcpy_chk (__dest, __src, __n, 29724: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 29724: return __wcslcpy_alias (__dest, __src, __n); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) wcslcat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29724: 29724: { 29724: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29724: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1) 29724: / sizeof (wchar_t)) 29724: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 29724: return __wcslcat_chk (__dest, __src, __n, 29724: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 29724: return __wcslcat_alias (__dest, __src, __n); 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (__sz != (size_t) -1 || 2 > 1) 29724: return __swprintf_chk (__s, __n, 2 - 1, 29724: __sz / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); 29724: return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); 29724: } 29724: # 205 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (__sz != (size_t) -1 || 2 > 1) 29724: return __vswprintf_chk (__s, __n, 2 - 1, 29724: __sz / sizeof (wchar_t), __fmt, __ap); 29724: return __vswprintf_alias (__s, __n, __fmt, __ap); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: wprintf (const wchar_t *__restrict __fmt, ...) 29724: { 29724: return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) 29724: { 29724: return __fwprintf_chk (__stream, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 29724: { 29724: return __vwprintf_chk (2 - 1, __fmt, __ap); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: vfwprintf (__FILE *__restrict __stream, 29724: const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 29724: { 29724: return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 29724: fgetws (wchar_t * __restrict __s, int __n, 29724: __FILE *__restrict __stream) 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))))) 29724: return __fgetws_alias (__s, __n, __stream); 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t))))) 29724: return __fgetws_chk_warn (__s, __sz / sizeof (wchar_t), __n, __stream); 29724: 29724: return __fgetws_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 29724: fgetws_unlocked (wchar_t * __restrict __s, 29724: int __n, __FILE *__restrict __stream) 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))))) 29724: return __fgetws_unlocked_alias (__s, __n, __stream); 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t))))) 29724: return __fgetws_unlocked_chk_warn (__s, __sz / sizeof (wchar_t), __n, 29724: __stream); 29724: 29724: return __fgetws_unlocked_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 29724: __attribute__ ((__leaf__)) wcrtomb (char * __restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 29724: && 16 > __builtin_object_size (__s, 2 > 1)) 29724: return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); 29724: return __wcrtomb_alias (__s, __wchar, __ps); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) mbsrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbsrtowcs_chk_warn (__dst, __src, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbsrtowcs_chk (__dst, __src, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) wcsrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char)))))) ? __wcsrtombs_alias (__dst, __src, __len, __ps) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcsrtombs_chk_warn (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)) : __wcsrtombs_chk (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbsnrtowcs_chk_warn (__dst, __src, __nmc, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbsnrtowcs_chk (__dst, __src, __nmc, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) wcsnrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcsnrtombs_chk_warn (__dst, __src, __nwc, __len, __ps, __builtin_object_size (__dst, 2 > 1)) : __wcsnrtombs_chk (__dst, __src, __nwc, __len, __ps, __builtin_object_size (__dst, 2 > 1)))) 29724: 29724: ; 29724: } 29724: # 1071 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: } 29724: # 45 "/usr/include/c++/14/cwchar" 2 3 29724: # 62 "/usr/include/c++/14/cwchar" 3 29724: namespace std 29724: { 29724: using ::mbstate_t; 29724: } 29724: # 135 "/usr/include/c++/14/cwchar" 3 29724: extern "C++" 29724: { 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: using ::wint_t; 29724: 29724: using ::btowc; 29724: using ::fgetwc; 29724: using ::fgetws; 29724: using ::fputwc; 29724: using ::fputws; 29724: using ::fwide; 29724: using ::fwprintf; 29724: using ::fwscanf; 29724: using ::getwc; 29724: using ::getwchar; 29724: using ::mbrlen; 29724: using ::mbrtowc; 29724: using ::mbsinit; 29724: using ::mbsrtowcs; 29724: using ::putwc; 29724: using ::putwchar; 29724: 29724: using ::swprintf; 29724: 29724: using ::swscanf; 29724: using ::ungetwc; 29724: using ::vfwprintf; 29724: 29724: using ::vfwscanf; 29724: 29724: 29724: using ::vswprintf; 29724: 29724: 29724: using ::vswscanf; 29724: 29724: using ::vwprintf; 29724: 29724: using ::vwscanf; 29724: 29724: using ::wcrtomb; 29724: using ::wcscat; 29724: using ::wcscmp; 29724: using ::wcscoll; 29724: using ::wcscpy; 29724: using ::wcscspn; 29724: using ::wcsftime; 29724: using ::wcslen; 29724: using ::wcsncat; 29724: using ::wcsncmp; 29724: using ::wcsncpy; 29724: using ::wcsrtombs; 29724: using ::wcsspn; 29724: using ::wcstod; 29724: 29724: using ::wcstof; 29724: 29724: using ::wcstok; 29724: using ::wcstol; 29724: using ::wcstoul; 29724: using ::wcsxfrm; 29724: using ::wctob; 29724: using ::wmemcmp; 29724: using ::wmemcpy; 29724: using ::wmemmove; 29724: using ::wmemset; 29724: using ::wprintf; 29724: using ::wscanf; 29724: using ::wcschr; 29724: using ::wcspbrk; 29724: using ::wcsrchr; 29724: using ::wcsstr; 29724: using ::wmemchr; 29724: # 234 "/usr/include/c++/14/cwchar" 3 29724: 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __gnu_cxx 29724: { 29724: 29724: 29724: 29724: 29724: 29724: using ::wcstold; 29724: # 260 "/usr/include/c++/14/cwchar" 3 29724: using ::wcstoll; 29724: using ::wcstoull; 29724: 29724: } 29724: 29724: namespace std 29724: { 29724: using ::__gnu_cxx::wcstold; 29724: using ::__gnu_cxx::wcstoll; 29724: using ::__gnu_cxx::wcstoull; 29724: } 29724: # 280 "/usr/include/c++/14/cwchar" 3 29724: namespace std 29724: { 29724: 29724: using std::wcstof; 29724: 29724: 29724: using std::vfwscanf; 29724: 29724: 29724: using std::vswscanf; 29724: 29724: 29724: using std::vwscanf; 29724: 29724: 29724: 29724: using std::wcstold; 29724: using std::wcstoll; 29724: using std::wcstoull; 29724: 29724: } 29724: # 41 "/usr/include/c++/14/bits/postypes.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 62 "/usr/include/c++/14/bits/postypes.h" 3 29724: typedef long long int streamoff; 29724: 29724: 29724: 29724: 29724: 29724: typedef ptrdiff_t streamsize; 29724: # 81 "/usr/include/c++/14/bits/postypes.h" 3 29724: template 29724: class fpos 29724: { 29724: private: 29724: streamoff _M_off; 29724: _StateT _M_state; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: fpos() 29724: : _M_off(0), _M_state() { } 29724: # 103 "/usr/include/c++/14/bits/postypes.h" 3 29724: fpos(streamoff __off) 29724: : _M_off(__off), _M_state() { } 29724: 29724: 29724: fpos(const fpos&) = default; 29724: fpos& operator=(const fpos&) = default; 29724: ~fpos() = default; 29724: 29724: 29724: 29724: operator streamoff() const { return _M_off; } 29724: 29724: 29724: void 29724: state(_StateT __st) 29724: { _M_state = __st; } 29724: 29724: 29724: _StateT 29724: state() const 29724: { return _M_state; } 29724: 29724: 29724: 29724: 29724: 29724: fpos& 29724: operator+=(streamoff __off) 29724: { 29724: _M_off += __off; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: fpos& 29724: operator-=(streamoff __off) 29724: { 29724: _M_off -= __off; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: fpos 29724: operator+(streamoff __off) const 29724: { 29724: fpos __pos(*this); 29724: __pos += __off; 29724: return __pos; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: fpos 29724: operator-(streamoff __off) const 29724: { 29724: fpos __pos(*this); 29724: __pos -= __off; 29724: return __pos; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: streamoff 29724: operator-(const fpos& __other) const 29724: { return _M_off - __other._M_off; } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 29724: { return streamoff(__lhs) == streamoff(__rhs); } 29724: 29724: template 29724: inline bool 29724: operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 29724: { return streamoff(__lhs) != streamoff(__rhs); } 29724: 29724: 29724: 29724: 29724: 29724: typedef fpos streampos; 29724: 29724: typedef fpos wstreampos; 29724: # 215 "/usr/include/c++/14/bits/postypes.h" 3 29724: typedef fpos u16streampos; 29724: 29724: typedef fpos u32streampos; 29724: 29724: 29724: 29724: } 29724: # 43 "/usr/include/c++/14/iosfwd" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 76 "/usr/include/c++/14/iosfwd" 3 29724: class ios_base; 29724: 29724: template > 29724: class basic_ios; 29724: 29724: template > 29724: class basic_streambuf; 29724: 29724: template > 29724: class basic_istream; 29724: 29724: template > 29724: class basic_ostream; 29724: 29724: template > 29724: class basic_iostream; 29724: 29724: 29724: namespace __cxx11 { 29724: 29724: template, 29724: typename _Alloc = allocator<_CharT> > 29724: class basic_stringbuf; 29724: 29724: template, 29724: typename _Alloc = allocator<_CharT> > 29724: class basic_istringstream; 29724: 29724: template, 29724: typename _Alloc = allocator<_CharT> > 29724: class basic_ostringstream; 29724: 29724: template, 29724: typename _Alloc = allocator<_CharT> > 29724: class basic_stringstream; 29724: 29724: } 29724: 29724: template > 29724: class basic_filebuf; 29724: 29724: template > 29724: class basic_ifstream; 29724: 29724: template > 29724: class basic_ofstream; 29724: 29724: template > 29724: class basic_fstream; 29724: 29724: template > 29724: class istreambuf_iterator; 29724: 29724: template > 29724: class ostreambuf_iterator; 29724: 29724: 29724: 29724: typedef basic_ios ios; 29724: 29724: 29724: typedef basic_streambuf streambuf; 29724: 29724: 29724: typedef basic_istream istream; 29724: 29724: 29724: typedef basic_ostream ostream; 29724: 29724: 29724: typedef basic_iostream iostream; 29724: 29724: 29724: typedef basic_stringbuf stringbuf; 29724: 29724: 29724: typedef basic_istringstream istringstream; 29724: 29724: 29724: typedef basic_ostringstream ostringstream; 29724: 29724: 29724: typedef basic_stringstream stringstream; 29724: 29724: 29724: typedef basic_filebuf filebuf; 29724: 29724: 29724: typedef basic_ifstream ifstream; 29724: 29724: 29724: typedef basic_ofstream ofstream; 29724: 29724: 29724: typedef basic_fstream fstream; 29724: 29724: 29724: 29724: typedef basic_ios wios; 29724: 29724: 29724: typedef basic_streambuf wstreambuf; 29724: 29724: 29724: typedef basic_istream wistream; 29724: 29724: 29724: typedef basic_ostream wostream; 29724: 29724: 29724: typedef basic_iostream wiostream; 29724: 29724: 29724: typedef basic_stringbuf wstringbuf; 29724: 29724: 29724: typedef basic_istringstream wistringstream; 29724: 29724: 29724: typedef basic_ostringstream wostringstream; 29724: 29724: 29724: typedef basic_stringstream wstringstream; 29724: 29724: 29724: typedef basic_filebuf wfilebuf; 29724: 29724: 29724: typedef basic_ifstream wifstream; 29724: 29724: 29724: typedef basic_ofstream wofstream; 29724: 29724: 29724: typedef basic_fstream wfstream; 29724: # 255 "/usr/include/c++/14/iosfwd" 3 29724: 29724: } 29724: # 53 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/shared_ptr_base.h" 1 3 29724: # 53 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: # 1 "/usr/include/c++/14/bits/allocated_ptr.h" 1 3 29724: # 40 "/usr/include/c++/14/bits/allocated_ptr.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: struct __allocated_ptr 29724: { 29724: using pointer = typename allocator_traits<_Alloc>::pointer; 29724: using value_type = typename allocator_traits<_Alloc>::value_type; 29724: 29724: 29724: __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept 29724: : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) 29724: { } 29724: 29724: 29724: template>> 29724: __allocated_ptr(_Alloc& __a, _Ptr __ptr) 29724: : _M_alloc(std::__addressof(__a)), 29724: _M_ptr(pointer_traits::pointer_to(*__ptr)) 29724: { } 29724: 29724: 29724: __allocated_ptr(__allocated_ptr&& __gd) noexcept 29724: : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) 29724: { __gd._M_ptr = nullptr; } 29724: 29724: 29724: ~__allocated_ptr() 29724: { 29724: if (_M_ptr != nullptr) 29724: std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); 29724: } 29724: 29724: 29724: __allocated_ptr& 29724: operator=(std::nullptr_t) noexcept 29724: { 29724: _M_ptr = nullptr; 29724: return *this; 29724: } 29724: 29724: 29724: value_type* get() { return std::__to_address(_M_ptr); } 29724: 29724: private: 29724: _Alloc* _M_alloc; 29724: pointer _M_ptr; 29724: }; 29724: 29724: 29724: template 29724: __allocated_ptr<_Alloc> 29724: __allocate_guarded(_Alloc& __a) 29724: { 29724: return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 54 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ext/atomicity.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/atomicity.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/atomicity.h" 3 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 1 3 29724: # 30 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 29724: #pragma GCC visibility push(default) 29724: # 157 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 1 3 29724: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: # 1 "/usr/include/pthread.h" 1 3 4 29724: # 22 "/usr/include/pthread.h" 3 4 29724: # 1 "/usr/include/sched.h" 1 3 4 29724: # 29 "/usr/include/sched.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 30 "/usr/include/sched.h" 2 3 4 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __time64_t time_t; 29724: # 32 "/usr/include/sched.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 1 3 4 29724: # 35 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/endianness.h" 1 3 4 29724: # 36 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 2 3 4 29724: # 7 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 2 3 4 29724: 29724: 29724: 29724: 29724: struct timespec 29724: { 29724: 29724: __time64_t tv_sec; 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 29724: long int tv_nsec; 29724: int: 32; 29724: 29724: 29724: }; 29724: # 33 "/usr/include/sched.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: typedef __pid_t pid_t; 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 1 3 4 29724: # 80 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 3 4 29724: struct sched_param 29724: { 29724: int sched_priority; 29724: }; 29724: # 81 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: extern int clone (int (*__fn) (void *__arg), void *__child_stack, 29724: int __flags, void *__arg, ...) noexcept (true); 29724: 29724: 29724: extern int unshare (int __flags) noexcept (true); 29724: 29724: 29724: extern int sched_getcpu (void) noexcept (true); 29724: 29724: 29724: extern int getcpu (unsigned int *, unsigned int *) noexcept (true); 29724: 29724: 29724: extern int setns (int __fd, int __nstype) noexcept (true); 29724: 29724: 29724: } 29724: # 44 "/usr/include/sched.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 1 3 4 29724: # 32 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 29724: typedef unsigned long int __cpu_mask; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef struct 29724: { 29724: __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; 29724: } cpu_set_t; 29724: # 115 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 29724: extern "C" { 29724: 29724: extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 29724: noexcept (true); 29724: extern cpu_set_t *__sched_cpualloc (size_t __count) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: extern void __sched_cpufree (cpu_set_t *__set) noexcept (true); 29724: 29724: } 29724: # 45 "/usr/include/sched.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: 29724: 29724: extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) 29724: noexcept (true); 29724: 29724: 29724: extern int sched_getparam (__pid_t __pid, struct sched_param *__param) noexcept (true); 29724: 29724: 29724: extern int sched_setscheduler (__pid_t __pid, int __policy, 29724: const struct sched_param *__param) noexcept (true); 29724: 29724: 29724: extern int sched_getscheduler (__pid_t __pid) noexcept (true); 29724: 29724: 29724: extern int sched_yield (void) noexcept (true); 29724: 29724: 29724: extern int sched_get_priority_max (int __algorithm) noexcept (true); 29724: 29724: 29724: extern int sched_get_priority_min (int __algorithm) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) noexcept (true) __asm__ ("" "__sched_rr_get_interval64") 29724: 29724: ; 29724: # 130 "/usr/include/sched.h" 3 4 29724: extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, 29724: const cpu_set_t *__cpuset) noexcept (true); 29724: 29724: 29724: extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, 29724: cpu_set_t *__cpuset) noexcept (true); 29724: 29724: 29724: } 29724: # 23 "/usr/include/pthread.h" 2 3 4 29724: # 1 "/usr/include/time.h" 1 3 4 29724: # 29 "/usr/include/time.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 30 "/usr/include/time.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4 29724: # 73 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 1 3 4 29724: # 22 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timeval.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct timeval 29724: { 29724: 29724: __time64_t tv_sec; 29724: __suseconds64_t tv_usec; 29724: 29724: 29724: 29724: 29724: }; 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 2 3 4 29724: 29724: 29724: 29724: struct timex 29724: { 29724: 29724: unsigned int modes; 29724: int :32; 29724: long long offset; 29724: long long freq; 29724: long long maxerror; 29724: long long esterror; 29724: int status; 29724: int :32; 29724: long long constant; 29724: long long precision; 29724: long long tolerance; 29724: struct timeval time; 29724: long long tick; 29724: long long ppsfreq; 29724: long long jitter; 29724: int shift; 29724: int :32; 29724: long long stabil; 29724: long long jitcnt; 29724: long long calcnt; 29724: long long errcnt; 29724: long long stbcnt; 29724: 29724: int tai; 29724: 29724: int :32; int :32; int :32; int :32; 29724: int :32; int :32; int :32; int :32; 29724: int :32; int :32; int :32; 29724: # 85 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 29724: }; 29724: # 74 "/usr/include/arm-linux-gnueabihf/bits/time.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __asm__ ("" "__clock_adjtime64") 29724: 29724: __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 34 "/usr/include/time.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clock_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __clock_t clock_t; 29724: # 38 "/usr/include/time.h" 2 3 4 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_tm.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct tm 29724: { 29724: int tm_sec; 29724: int tm_min; 29724: int tm_hour; 29724: int tm_mday; 29724: int tm_mon; 29724: int tm_year; 29724: int tm_wday; 29724: int tm_yday; 29724: int tm_isdst; 29724: 29724: 29724: long int tm_gmtoff; 29724: const char *tm_zone; 29724: 29724: 29724: 29724: 29724: }; 29724: # 40 "/usr/include/time.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clockid_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __clockid_t clockid_t; 29724: # 47 "/usr/include/time.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/timer_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __timer_t timer_t; 29724: # 48 "/usr/include/time.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_itimerspec.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct itimerspec 29724: { 29724: struct timespec it_interval; 29724: struct timespec it_value; 29724: }; 29724: # 49 "/usr/include/time.h" 2 3 4 29724: struct sigevent; 29724: # 68 "/usr/include/time.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: extern clock_t clock (void) noexcept (true); 29724: # 85 "/usr/include/time.h" 3 4 29724: extern time_t time (time_t *__timer) noexcept (true) __asm__ ("" "__time64"); 29724: extern double difftime (time_t __time1, time_t __time0) noexcept (true) __asm__ ("" "__difftime64") 29724: ; 29724: extern time_t mktime (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 29724: # 99 "/usr/include/time.h" 3 4 29724: extern size_t strftime (char *__restrict __s, size_t __maxsize, 29724: const char *__restrict __format, 29724: const struct tm *__restrict __tp) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3, 4))); 29724: 29724: 29724: 29724: 29724: extern char *strptime (const char *__restrict __s, 29724: const char *__restrict __fmt, struct tm *__tp) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern size_t strftime_l (char *__restrict __s, size_t __maxsize, 29724: const char *__restrict __format, 29724: const struct tm *__restrict __tp, 29724: locale_t __loc) noexcept (true); 29724: 29724: 29724: 29724: extern char *strptime_l (const char *__restrict __s, 29724: const char *__restrict __fmt, struct tm *__tp, 29724: locale_t __loc) noexcept (true); 29724: # 140 "/usr/include/time.h" 3 4 29724: extern struct tm*gmtime (const time_t *__timer) noexcept (true) __asm__ ("" "__gmtime64"); 29724: extern struct tm *localtime (const time_t *__timer) noexcept (true) __asm__ ("" "__localtime64") 29724: ; 29724: # 163 "/usr/include/time.h" 3 4 29724: extern struct tm*gmtime_r (const time_t *__restrict __timer, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__gmtime64_r") 29724: 29724: ; 29724: 29724: extern struct tm*localtime_r (const time_t *__restrict __t, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__localtime64_r") 29724: 29724: ; 29724: # 179 "/usr/include/time.h" 3 4 29724: extern char *asctime (const struct tm *__tp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *ctime (const time_t *__timer) noexcept (true) __asm__ ("" "__ctime64"); 29724: # 197 "/usr/include/time.h" 3 4 29724: extern char *asctime_r (const struct tm *__restrict __tp, 29724: char *__restrict __buf) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *ctime_r (const time_t *__restrict __timer, char *__restrict __buf) noexcept (true) __asm__ ("" "__ctime64_r") 29724: ; 29724: # 217 "/usr/include/time.h" 3 4 29724: extern char *__tzname[2]; 29724: extern int __daylight; 29724: extern long int __timezone; 29724: 29724: 29724: 29724: 29724: extern char *tzname[2]; 29724: 29724: 29724: 29724: extern void tzset (void) noexcept (true); 29724: 29724: 29724: 29724: extern int daylight; 29724: extern long int timezone; 29724: # 249 "/usr/include/time.h" 3 4 29724: extern time_t timegm (struct tm *__tp) noexcept (true) __asm__ ("" "__timegm64"); 29724: # 266 "/usr/include/time.h" 3 4 29724: extern time_t timelocal (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 29724: 29724: 29724: 29724: 29724: extern int dysize (int __year) noexcept (true) __attribute__ ((__const__)); 29724: # 296 "/usr/include/time.h" 3 4 29724: extern int nanosleep (const struct timespec *__requested_time, struct timespec *__remaining) __asm__ ("" "__nanosleep64") 29724: 29724: ; 29724: extern int clock_getres (clockid_t __clock_id, struct timespec *__res) noexcept (true) __asm__ ("" "__clock_getres64") 29724: 29724: ; 29724: extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_gettime64") 29724: 29724: __attribute__ ((__nonnull__ (2))); 29724: extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_settime64") 29724: 29724: __attribute__ ((__nonnull__ (2))); 29724: # 328 "/usr/include/time.h" 3 4 29724: extern int clock_nanosleep (clockid_t __clock_id, int __flags, const struct timespec *__req, struct timespec *__rem) __asm__ ("" "__clock_nanosleep_time64") 29724: 29724: 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int timer_create (clockid_t __clock_id, 29724: struct sigevent *__restrict __evp, 29724: timer_t *__restrict __timerid) noexcept (true); 29724: 29724: 29724: extern int timer_delete (timer_t __timerid) noexcept (true); 29724: # 361 "/usr/include/time.h" 3 4 29724: extern int timer_settime (timer_t __timerid, int __flags, const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) noexcept (true) __asm__ ("" "__timer_settime64") 29724: 29724: 29724: ; 29724: 29724: extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) noexcept (true) __asm__ ("" "__timer_gettime64") 29724: 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int timer_getoverrun (timer_t __timerid) noexcept (true); 29724: # 387 "/usr/include/time.h" 3 4 29724: extern int timespec_get (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_get64") 29724: __attribute__ ((__nonnull__ (1))); 29724: # 403 "/usr/include/time.h" 3 4 29724: extern int timespec_getres (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_getres64") 29724: 29724: ; 29724: # 425 "/usr/include/time.h" 3 4 29724: extern int getdate_err; 29724: # 434 "/usr/include/time.h" 3 4 29724: extern struct tm *getdate (const char *__string); 29724: # 448 "/usr/include/time.h" 3 4 29724: extern int getdate_r (const char *__restrict __string, 29724: struct tm *__restrict __resbufp); 29724: 29724: 29724: } 29724: # 24 "/usr/include/pthread.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 1 3 4 29724: # 44 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 2 3 4 29724: # 45 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 1 3 4 29724: # 25 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 3 4 29724: typedef union 29724: { 29724: __extension__ unsigned long long int __value64; 29724: struct 29724: { 29724: unsigned int __low; 29724: unsigned int __high; 29724: } __value32; 29724: } __atomic_wide_counter; 29724: # 47 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29724: 29724: 29724: 29724: 29724: typedef struct __pthread_internal_list 29724: { 29724: struct __pthread_internal_list *__prev; 29724: struct __pthread_internal_list *__next; 29724: } __pthread_list_t; 29724: 29724: typedef struct __pthread_internal_slist 29724: { 29724: struct __pthread_internal_slist *__next; 29724: } __pthread_slist_t; 29724: # 76 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 29724: struct __pthread_mutex_s 29724: { 29724: int __lock ; 29724: unsigned int __count; 29724: int __owner; 29724: # 58 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 29724: int __kind; 29724: 29724: unsigned int __nusers; 29724: 29724: 29724: 29724: 29724: 29724: 29724: __extension__ union 29724: { 29724: int __spins; 29724: __pthread_slist_t __list; 29724: }; 29724: 29724: 29724: }; 29724: # 77 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29724: # 89 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 1 3 4 29724: # 29 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 29724: struct __pthread_rwlock_arch_t 29724: { 29724: unsigned int __readers; 29724: unsigned int __writers; 29724: unsigned int __wrphase_futex; 29724: unsigned int __writers_futex; 29724: unsigned int __pad3; 29724: unsigned int __pad4; 29724: # 45 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 29724: unsigned char __flags; 29724: unsigned char __shared; 29724: unsigned char __pad1; 29724: unsigned char __pad2; 29724: 29724: int __cur_writer; 29724: }; 29724: # 90 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29724: 29724: 29724: 29724: 29724: struct __pthread_cond_s 29724: { 29724: __atomic_wide_counter __wseq; 29724: __atomic_wide_counter __g1_start; 29724: unsigned int __g_refs[2] ; 29724: unsigned int __g_size[2]; 29724: unsigned int __g1_orig_size; 29724: unsigned int __wrefs; 29724: unsigned int __g_signals[2]; 29724: }; 29724: 29724: typedef unsigned int __tss_t; 29724: typedef unsigned long int __thrd_t; 29724: 29724: typedef struct 29724: { 29724: int __data ; 29724: } __once_flag; 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 2 3 4 29724: 29724: 29724: 29724: typedef unsigned long int pthread_t; 29724: 29724: 29724: 29724: 29724: typedef union 29724: { 29724: char __size[4]; 29724: int __align; 29724: } pthread_mutexattr_t; 29724: 29724: 29724: 29724: 29724: typedef union 29724: { 29724: char __size[4]; 29724: int __align; 29724: } pthread_condattr_t; 29724: 29724: 29724: 29724: typedef unsigned int pthread_key_t; 29724: 29724: 29724: 29724: typedef int pthread_once_t; 29724: 29724: 29724: union pthread_attr_t 29724: { 29724: char __size[36]; 29724: long int __align; 29724: }; 29724: 29724: typedef union pthread_attr_t pthread_attr_t; 29724: 29724: 29724: 29724: 29724: typedef union 29724: { 29724: struct __pthread_mutex_s __data; 29724: char __size[24]; 29724: long int __align; 29724: } pthread_mutex_t; 29724: 29724: 29724: typedef union 29724: { 29724: struct __pthread_cond_s __data; 29724: char __size[48]; 29724: __extension__ long long int __align; 29724: } pthread_cond_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef union 29724: { 29724: struct __pthread_rwlock_arch_t __data; 29724: char __size[32]; 29724: long int __align; 29724: } pthread_rwlock_t; 29724: 29724: typedef union 29724: { 29724: char __size[8]; 29724: long int __align; 29724: } pthread_rwlockattr_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef volatile int pthread_spinlock_t; 29724: 29724: 29724: 29724: 29724: typedef union 29724: { 29724: char __size[20]; 29724: long int __align; 29724: } pthread_barrier_t; 29724: 29724: typedef union 29724: { 29724: char __size[4]; 29724: int __align; 29724: } pthread_barrierattr_t; 29724: # 27 "/usr/include/pthread.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 1 3 4 29724: # 33 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 3 4 29724: typedef int __jmp_buf[64] __attribute__((__aligned__ (8))); 29724: # 28 "/usr/include/pthread.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 29 "/usr/include/pthread.h" 2 3 4 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__sigset_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: typedef struct 29724: { 29724: unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 29724: } __sigset_t; 29724: # 31 "/usr/include/pthread.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 3 4 29724: struct __jmp_buf_tag 29724: { 29724: 29724: 29724: 29724: 29724: __jmp_buf __jmpbuf; 29724: int __mask_was_saved; 29724: __sigset_t __saved_mask; 29724: }; 29724: # 32 "/usr/include/pthread.h" 2 3 4 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 3 4 29724: extern "C" { 29724: extern long int __sysconf (int __name) noexcept (true); 29724: } 29724: # 34 "/usr/include/pthread.h" 2 3 4 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_CREATE_JOINABLE, 29724: 29724: PTHREAD_CREATE_DETACHED 29724: 29724: }; 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_MUTEX_TIMED_NP, 29724: PTHREAD_MUTEX_RECURSIVE_NP, 29724: PTHREAD_MUTEX_ERRORCHECK_NP, 29724: PTHREAD_MUTEX_ADAPTIVE_NP 29724: 29724: , 29724: PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, 29724: PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, 29724: PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, 29724: PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL 29724: 29724: 29724: 29724: , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_MUTEX_STALLED, 29724: PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, 29724: PTHREAD_MUTEX_ROBUST, 29724: PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_PRIO_NONE, 29724: PTHREAD_PRIO_INHERIT, 29724: PTHREAD_PRIO_PROTECT 29724: }; 29724: # 104 "/usr/include/pthread.h" 3 4 29724: enum 29724: { 29724: PTHREAD_RWLOCK_PREFER_READER_NP, 29724: PTHREAD_RWLOCK_PREFER_WRITER_NP, 29724: PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 29724: PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP 29724: }; 29724: # 124 "/usr/include/pthread.h" 3 4 29724: enum 29724: { 29724: PTHREAD_INHERIT_SCHED, 29724: 29724: PTHREAD_EXPLICIT_SCHED 29724: 29724: }; 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_SCOPE_SYSTEM, 29724: 29724: PTHREAD_SCOPE_PROCESS 29724: 29724: }; 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_PROCESS_PRIVATE, 29724: 29724: PTHREAD_PROCESS_SHARED 29724: 29724: }; 29724: # 159 "/usr/include/pthread.h" 3 4 29724: struct _pthread_cleanup_buffer 29724: { 29724: void (*__routine) (void *); 29724: void *__arg; 29724: int __canceltype; 29724: struct _pthread_cleanup_buffer *__prev; 29724: }; 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_CANCEL_ENABLE, 29724: 29724: PTHREAD_CANCEL_DISABLE 29724: 29724: }; 29724: enum 29724: { 29724: PTHREAD_CANCEL_DEFERRED, 29724: 29724: PTHREAD_CANCEL_ASYNCHRONOUS 29724: 29724: }; 29724: # 197 "/usr/include/pthread.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: extern int pthread_create (pthread_t *__restrict __newthread, 29724: const pthread_attr_t *__restrict __attr, 29724: void *(*__start_routine) (void *), 29724: void *__restrict __arg) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_join (pthread_t __th, void **__thread_return); 29724: 29724: 29724: 29724: 29724: extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) noexcept (true); 29724: # 248 "/usr/include/pthread.h" 3 4 29724: extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, const struct timespec *__abstime) __asm__ ("" "__pthread_timedjoin_np64") 29724: 29724: 29724: ; 29724: 29724: extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, clockid_t __clockid, const struct timespec *__abstime) __asm__ ("" "__pthread_clockjoin_np64") 29724: 29724: 29724: 29724: ; 29724: # 269 "/usr/include/pthread.h" 3 4 29724: extern int pthread_detach (pthread_t __th) noexcept (true); 29724: 29724: 29724: 29724: extern pthread_t pthread_self (void) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) 29724: noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_init (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_attr_destroy (pthread_attr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, 29724: int *__detachstate) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, 29724: int __detachstate) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, 29724: size_t *__guardsize) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setguardsize (pthread_attr_t *__attr, 29724: size_t __guardsize) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, 29724: struct sched_param *__restrict __param) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, 29724: const struct sched_param *__restrict 29724: __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict 29724: __attr, int *__restrict __policy) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 29724: __attr, int *__restrict __inherit) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, 29724: int __inherit) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, 29724: int *__restrict __scope) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict 29724: __attr, void **__restrict __stackaddr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, 29724: void *__stackaddr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); 29724: 29724: 29724: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict 29724: __attr, size_t *__restrict __stacksize) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_setstacksize (pthread_attr_t *__attr, 29724: size_t __stacksize) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, 29724: void **__restrict __stackaddr, 29724: size_t *__restrict __stacksize) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, 29724: size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, 29724: size_t __cpusetsize, 29724: const cpu_set_t *__cpuset) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, 29724: size_t __cpusetsize, 29724: cpu_set_t *__cpuset) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: extern int pthread_getattr_default_np (pthread_attr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr, 29724: const __sigset_t *sigmask); 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr, 29724: __sigset_t *sigmask); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_setattr_default_np (const pthread_attr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_setschedparam (pthread_t __target_thread, int __policy, 29724: const struct sched_param *__param) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: extern int pthread_getschedparam (pthread_t __target_thread, 29724: int *__restrict __policy, 29724: struct sched_param *__restrict __param) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29724: 29724: 29724: extern int pthread_setschedprio (pthread_t __target_thread, int __prio) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int pthread_getname_np (pthread_t __target_thread, char *__buf, 29724: size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: extern int pthread_setname_np (pthread_t __target_thread, const char *__name) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_getconcurrency (void) noexcept (true); 29724: 29724: 29724: extern int pthread_setconcurrency (int __level) noexcept (true); 29724: 29724: 29724: 29724: extern int pthread_yield (void) noexcept (true); 29724: 29724: extern int pthread_yield (void) noexcept (true) __asm__ ("" "sched_yield") 29724: __attribute__ ((__deprecated__ ("pthread_yield is deprecated, use sched_yield instead"))) 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, 29724: const cpu_set_t *__cpuset) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, 29724: cpu_set_t *__cpuset) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: # 509 "/usr/include/pthread.h" 3 4 29724: extern int pthread_once (pthread_once_t *__once_control, 29724: void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); 29724: # 521 "/usr/include/pthread.h" 3 4 29724: extern int pthread_setcancelstate (int __state, int *__oldstate); 29724: 29724: 29724: 29724: extern int pthread_setcanceltype (int __type, int *__oldtype); 29724: 29724: 29724: extern int pthread_cancel (pthread_t __th); 29724: 29724: 29724: 29724: 29724: extern void pthread_testcancel (void); 29724: 29724: 29724: 29724: 29724: struct __cancel_jmp_buf_tag 29724: { 29724: __jmp_buf __cancel_jmp_buf; 29724: int __mask_was_saved; 29724: }; 29724: 29724: typedef struct 29724: { 29724: struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; 29724: void *__pad[4]; 29724: } __pthread_unwind_buf_t __attribute__ ((__aligned__)); 29724: # 557 "/usr/include/pthread.h" 3 4 29724: struct __pthread_cleanup_frame 29724: { 29724: void (*__cancel_routine) (void *); 29724: void *__cancel_arg; 29724: int __do_it; 29724: int __cancel_type; 29724: }; 29724: 29724: 29724: 29724: 29724: class __pthread_cleanup_class 29724: { 29724: void (*__cancel_routine) (void *); 29724: void *__cancel_arg; 29724: int __do_it; 29724: int __cancel_type; 29724: 29724: public: 29724: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) 29724: : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } 29724: ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } 29724: void __setdoit (int __newval) { __do_it = __newval; } 29724: void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, 29724: &__cancel_type); } 29724: void __restore () const { pthread_setcanceltype (__cancel_type, 0); } 29724: }; 29724: # 766 "/usr/include/pthread.h" 3 4 29724: extern int __sigsetjmp_cancel (struct __cancel_jmp_buf_tag __env[1], int __savemask) noexcept (true) __asm__ ("" "__sigsetjmp") 29724: 29724: 29724: __attribute__ ((__returns_twice__)); 29724: # 781 "/usr/include/pthread.h" 3 4 29724: extern int pthread_mutex_init (pthread_mutex_t *__mutex, 29724: const pthread_mutexattr_t *__mutexattr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutex_lock (pthread_mutex_t *__mutex) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 805 "/usr/include/pthread.h" 3 4 29724: extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_timedlock64") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2))); 29724: # 823 "/usr/include/pthread.h" 3 4 29724: extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_clocklock64") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_mutex_getprioceiling (const pthread_mutex_t * 29724: __restrict __mutex, 29724: int *__restrict __prioceiling) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, 29724: int __prioceiling, 29724: int *__restrict __old_ceiling) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: 29724: extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutex_consistent_np (pthread_mutex_t *) noexcept (true) __asm__ ("" "pthread_mutex_consistent") 29724: __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__deprecated__ ("pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent"))) 29724: ; 29724: # 874 "/usr/include/pthread.h" 3 4 29724: extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * 29724: __restrict __attr, 29724: int *__restrict __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, 29724: int __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict 29724: __attr, int *__restrict __kind) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * 29724: __restrict __attr, 29724: int *__restrict __protocol) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, 29724: int __protocol) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * 29724: __restrict __attr, 29724: int *__restrict __prioceiling) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, 29724: int __prioceiling) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, 29724: int *__robustness) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_mutexattr_getrobust_np (pthread_mutexattr_t *, int *) noexcept (true) __asm__ ("" "pthread_mutexattr_getrobust") 29724: 29724: __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__deprecated__ ("pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust"))) 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, 29724: int __robustness) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *, int) noexcept (true) __asm__ ("" "pthread_mutexattr_setrobust") 29724: 29724: __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__deprecated__ ("pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust"))) 29724: ; 29724: # 967 "/usr/include/pthread.h" 3 4 29724: extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, 29724: const pthread_rwlockattr_t *__restrict 29724: __attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 991 "/usr/include/pthread.h" 3 4 29724: extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedrdlock64") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2))); 29724: # 1010 "/usr/include/pthread.h" 3 4 29724: extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockrdlock64") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 1038 "/usr/include/pthread.h" 3 4 29724: extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedwrlock64") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2))); 29724: # 1058 "/usr/include/pthread.h" 3 4 29724: extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockwrlock64") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * 29724: __restrict __attr, 29724: int *__restrict __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, 29724: int __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * 29724: __restrict __attr, 29724: int *__restrict __pref) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, 29724: int __pref) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_cond_init (pthread_cond_t *__restrict __cond, 29724: const pthread_condattr_t *__restrict __cond_attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_cond_destroy (pthread_cond_t *__cond) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_cond_signal (pthread_cond_t *__cond) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_cond_broadcast (pthread_cond_t *__cond) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, 29724: pthread_mutex_t *__restrict __mutex) 29724: __attribute__ ((__nonnull__ (1, 2))); 29724: # 1151 "/usr/include/pthread.h" 3 4 29724: extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) __asm__ ("" "__pthread_cond_timedwait64") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2, 3))); 29724: # 1178 "/usr/include/pthread.h" 3 4 29724: extern int pthread_cond_clockwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, __clockid_t __clock_id, const struct timespec *__restrict __abstime) __asm__ ("" "__pthread_cond_clockwait64") 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2, 4))); 29724: # 1194 "/usr/include/pthread.h" 3 4 29724: extern int pthread_condattr_init (pthread_condattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_condattr_destroy (pthread_condattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_condattr_getpshared (const pthread_condattr_t * 29724: __restrict __attr, 29724: int *__restrict __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, 29724: int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_condattr_getclock (const pthread_condattr_t * 29724: __restrict __attr, 29724: __clockid_t *__restrict __clock_id) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_condattr_setclock (pthread_condattr_t *__attr, 29724: __clockid_t __clock_id) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 1230 "/usr/include/pthread.h" 3 4 29724: extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_spin_destroy (pthread_spinlock_t *__lock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_spin_lock (pthread_spinlock_t *__lock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_spin_trylock (pthread_spinlock_t *__lock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_spin_unlock (pthread_spinlock_t *__lock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, 29724: const pthread_barrierattr_t *__restrict 29724: __attr, unsigned int __count) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_barrier_wait (pthread_barrier_t *__barrier) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * 29724: __restrict __attr, 29724: int *__restrict __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, 29724: int __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 1297 "/usr/include/pthread.h" 3 4 29724: extern int pthread_key_create (pthread_key_t *__key, 29724: void (*__destr_function) (void *)) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_key_delete (pthread_key_t __key) noexcept (true); 29724: 29724: 29724: extern void *pthread_getspecific (pthread_key_t __key) noexcept (true); 29724: 29724: 29724: extern int pthread_setspecific (pthread_key_t __key, 29724: const void *__pointer) 29724: noexcept (true) __attribute__ ((__access__ (__none__, 2))); 29724: 29724: 29724: 29724: 29724: extern int pthread_getcpuclockid (pthread_t __thread_id, 29724: __clockid_t *__clock_id) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: # 1332 "/usr/include/pthread.h" 3 4 29724: extern int pthread_atfork (void (*__prepare) (void), 29724: void (*__parent) (void), 29724: void (*__child) (void)) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) noexcept (true) 29724: { 29724: return __thread1 == __thread2; 29724: } 29724: 29724: 29724: } 29724: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 2 3 29724: # 47 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: typedef pthread_t __gthread_t; 29724: typedef pthread_key_t __gthread_key_t; 29724: typedef pthread_once_t __gthread_once_t; 29724: typedef pthread_mutex_t __gthread_mutex_t; 29724: 29724: 29724: 29724: typedef pthread_mutex_t __gthread_recursive_mutex_t; 29724: typedef pthread_cond_t __gthread_cond_t; 29724: typedef struct timespec __gthread_time_t; 29724: # 108 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 312 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: static inline int 29724: __gthread_active_p (void) 29724: { 29724: return 1; 29724: } 29724: # 672 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: static inline int 29724: __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), 29724: void *__args) 29724: { 29724: return pthread_create (__threadid, __null, __func, __args); 29724: } 29724: 29724: static inline int 29724: __gthread_join (__gthread_t __threadid, void **__value_ptr) 29724: { 29724: return pthread_join (__threadid, __value_ptr); 29724: } 29724: 29724: static inline int 29724: __gthread_detach (__gthread_t __threadid) 29724: { 29724: return pthread_detach (__threadid); 29724: } 29724: 29724: static inline int 29724: __gthread_equal (__gthread_t __t1, __gthread_t __t2) 29724: { 29724: return pthread_equal (__t1, __t2); 29724: } 29724: 29724: static inline __gthread_t 29724: __gthread_self (void) 29724: { 29724: return pthread_self (); 29724: } 29724: 29724: static inline int 29724: __gthread_yield (void) 29724: { 29724: return sched_yield (); 29724: } 29724: 29724: static inline int 29724: __gthread_once (__gthread_once_t *__once, void (*__func) (void)) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_once (__once, __func); 29724: else 29724: return -1; 29724: } 29724: 29724: static inline int 29724: __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) 29724: { 29724: return pthread_key_create (__key, __dtor); 29724: } 29724: 29724: static inline int 29724: __gthread_key_delete (__gthread_key_t __key) 29724: { 29724: return pthread_key_delete (__key); 29724: } 29724: 29724: static inline void * 29724: __gthread_getspecific (__gthread_key_t __key) 29724: { 29724: return pthread_getspecific (__key); 29724: } 29724: 29724: static inline int 29724: __gthread_setspecific (__gthread_key_t __key, const void *__ptr) 29724: { 29724: return pthread_setspecific (__key, __ptr); 29724: } 29724: 29724: static inline void 29724: __gthread_mutex_init_function (__gthread_mutex_t *__mutex) 29724: { 29724: if (__gthread_active_p ()) 29724: pthread_mutex_init (__mutex, __null); 29724: } 29724: 29724: static inline int 29724: __gthread_mutex_destroy (__gthread_mutex_t *__mutex) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_mutex_destroy (__mutex); 29724: else 29724: return 0; 29724: } 29724: 29724: static inline int 29724: __gthread_mutex_lock (__gthread_mutex_t *__mutex) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_mutex_lock (__mutex); 29724: else 29724: return 0; 29724: } 29724: 29724: static inline int 29724: __gthread_mutex_trylock (__gthread_mutex_t *__mutex) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_mutex_trylock (__mutex); 29724: else 29724: return 0; 29724: } 29724: 29724: 29724: static inline int 29724: __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, 29724: const __gthread_time_t *__abs_timeout) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_mutex_timedlock (__mutex, __abs_timeout); 29724: else 29724: return 0; 29724: } 29724: 29724: 29724: static inline int 29724: __gthread_mutex_unlock (__gthread_mutex_t *__mutex) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_mutex_unlock (__mutex); 29724: else 29724: return 0; 29724: } 29724: # 821 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: static inline int 29724: __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) 29724: { 29724: return __gthread_mutex_lock (__mutex); 29724: } 29724: 29724: static inline int 29724: __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) 29724: { 29724: return __gthread_mutex_trylock (__mutex); 29724: } 29724: 29724: 29724: static inline int 29724: __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, 29724: const __gthread_time_t *__abs_timeout) 29724: { 29724: return __gthread_mutex_timedlock (__mutex, __abs_timeout); 29724: } 29724: 29724: 29724: static inline int 29724: __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) 29724: { 29724: return __gthread_mutex_unlock (__mutex); 29724: } 29724: 29724: static inline int 29724: __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) 29724: { 29724: return __gthread_mutex_destroy (__mutex); 29724: } 29724: # 863 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: static inline int 29724: __gthread_cond_broadcast (__gthread_cond_t *__cond) 29724: { 29724: return pthread_cond_broadcast (__cond); 29724: } 29724: 29724: static inline int 29724: __gthread_cond_signal (__gthread_cond_t *__cond) 29724: { 29724: return pthread_cond_signal (__cond); 29724: } 29724: 29724: static inline int 29724: __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) 29724: { 29724: return pthread_cond_wait (__cond, __mutex); 29724: } 29724: 29724: static inline int 29724: __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, 29724: const __gthread_time_t *__abs_timeout) 29724: { 29724: return pthread_cond_timedwait (__cond, __mutex, __abs_timeout); 29724: } 29724: 29724: static inline int 29724: __gthread_cond_wait_recursive (__gthread_cond_t *__cond, 29724: __gthread_recursive_mutex_t *__mutex) 29724: { 29724: return __gthread_cond_wait (__cond, __mutex); 29724: } 29724: 29724: static inline int 29724: __gthread_cond_destroy (__gthread_cond_t* __cond) 29724: { 29724: return pthread_cond_destroy (__cond); 29724: } 29724: # 158 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 2 3 29724: 29724: 29724: #pragma GCC visibility pop 29724: # 36 "/usr/include/c++/14/ext/atomicity.h" 2 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 1 3 29724: # 32 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 3 29724: typedef int _Atomic_word; 29724: # 37 "/usr/include/c++/14/ext/atomicity.h" 2 3 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: extern char __libc_single_threaded; 29724: 29724: } 29724: # 39 "/usr/include/c++/14/ext/atomicity.h" 2 3 29724: 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: inline bool 29724: __is_single_threaded() noexcept 29724: { 29724: 29724: 29724: 29724: return ::__libc_single_threaded; 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline _Atomic_word 29724: __attribute__((__always_inline__)) 29724: __exchange_and_add(volatile _Atomic_word* __mem, int __val) 29724: { return __atomic_fetch_add(__mem, __val, 4); } 29724: 29724: inline void 29724: __attribute__((__always_inline__)) 29724: __atomic_add(volatile _Atomic_word* __mem, int __val) 29724: { __atomic_fetch_add(__mem, __val, 4); } 29724: # 80 "/usr/include/c++/14/ext/atomicity.h" 3 29724: inline _Atomic_word 29724: __attribute__((__always_inline__)) 29724: __exchange_and_add_single(_Atomic_word* __mem, int __val) 29724: { 29724: _Atomic_word __result = *__mem; 29724: *__mem += __val; 29724: return __result; 29724: } 29724: 29724: inline void 29724: __attribute__((__always_inline__)) 29724: __atomic_add_single(_Atomic_word* __mem, int __val) 29724: { *__mem += __val; } 29724: 29724: inline _Atomic_word 29724: __attribute__ ((__always_inline__)) 29724: __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) 29724: { 29724: if (__is_single_threaded()) 29724: return __exchange_and_add_single(__mem, __val); 29724: else 29724: return __exchange_and_add(__mem, __val); 29724: } 29724: 29724: inline void 29724: __attribute__ ((__always_inline__)) 29724: __atomic_add_dispatch(_Atomic_word* __mem, int __val) 29724: { 29724: if (__is_single_threaded()) 29724: __atomic_add_single(__mem, __val); 29724: else 29724: __atomic_add(__mem, __val); 29724: } 29724: 29724: 29724: } 29724: # 62 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29724: # 1 "/usr/include/c++/14/ext/concurrence.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/concurrence.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/concurrence.h" 3 29724: 29724: # 1 "/usr/include/c++/14/exception" 1 3 29724: # 33 "/usr/include/c++/14/exception" 3 29724: 29724: # 34 "/usr/include/c++/14/exception" 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 40 "/usr/include/c++/14/exception" 2 3 29724: 29724: extern "C++" { 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: # 54 "/usr/include/c++/14/exception" 3 29724: class bad_exception : public exception 29724: { 29724: public: 29724: bad_exception() noexcept { } 29724: 29724: 29724: 29724: virtual ~bad_exception() noexcept; 29724: 29724: 29724: virtual const char* 29724: what() const noexcept; 29724: }; 29724: 29724: 29724: typedef void (*terminate_handler) (); 29724: 29724: 29724: terminate_handler set_terminate(terminate_handler) noexcept; 29724: 29724: 29724: 29724: terminate_handler get_terminate() noexcept; 29724: 29724: 29724: 29724: 29724: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 29724: 29724: 29724: 29724: typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((__deprecated__)) 29724: unexpected_handler set_unexpected(unexpected_handler) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((__deprecated__)) 29724: unexpected_handler get_unexpected() noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((__deprecated__)) 29724: void unexpected() __attribute__ ((__noreturn__,__cold__)); 29724: # 124 "/usr/include/c++/14/exception" 3 29724: __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) 29724: bool uncaught_exception() noexcept __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: int uncaught_exceptions() noexcept __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: } 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 158 "/usr/include/c++/14/exception" 3 29724: void __verbose_terminate_handler(); 29724: 29724: 29724: } 29724: 29724: } 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/exception_ptr.h" 1 3 29724: # 36 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: # 1 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 1 3 29724: # 34 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29724: 29724: # 35 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29724: 29724: #pragma GCC visibility push(default) 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 39 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 2 3 29724: # 50 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29724: namespace std 29724: { 29724: class type_info; 29724: } 29724: 29724: namespace __cxxabiv1 29724: { 29724: struct __cxa_refcounted_exception; 29724: 29724: extern "C" 29724: { 29724: 29724: void* 29724: __cxa_allocate_exception(size_t) noexcept; 29724: 29724: void 29724: __cxa_free_exception(void*) noexcept; 29724: 29724: 29724: __cxa_refcounted_exception* 29724: __cxa_init_primary_exception(void *__object, std::type_info *__tinfo, 29724: void ( *__dest) (void *)) 29724: noexcept; 29724: 29724: } 29724: } 29724: 29724: 29724: 29724: #pragma GCC visibility pop 29724: # 37 "/usr/include/c++/14/bits/exception_ptr.h" 2 3 29724: # 50 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: extern "C++" { 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: class type_info; 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __exception_ptr 29724: { 29724: class exception_ptr; 29724: } 29724: 29724: using __exception_ptr::exception_ptr; 29724: # 75 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: exception_ptr current_exception() noexcept; 29724: 29724: template 29724: exception_ptr make_exception_ptr(_Ex) noexcept; 29724: 29724: 29724: void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); 29724: 29724: namespace __exception_ptr 29724: { 29724: using std::rethrow_exception; 29724: # 97 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: class exception_ptr 29724: { 29724: void* _M_exception_object; 29724: 29724: explicit exception_ptr(void* __e) noexcept; 29724: 29724: void _M_addref() noexcept; 29724: void _M_release() noexcept; 29724: 29724: void *_M_get() const noexcept __attribute__ ((__pure__)); 29724: 29724: friend exception_ptr std::current_exception() noexcept; 29724: friend void std::rethrow_exception(exception_ptr); 29724: template 29724: friend exception_ptr std::make_exception_ptr(_Ex) noexcept; 29724: 29724: public: 29724: exception_ptr() noexcept; 29724: 29724: exception_ptr(const exception_ptr&) noexcept; 29724: 29724: 29724: exception_ptr(nullptr_t) noexcept 29724: : _M_exception_object(nullptr) 29724: { } 29724: 29724: exception_ptr(exception_ptr&& __o) noexcept 29724: : _M_exception_object(__o._M_exception_object) 29724: { __o._M_exception_object = nullptr; } 29724: # 135 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: exception_ptr& 29724: operator=(const exception_ptr&) noexcept; 29724: 29724: 29724: exception_ptr& 29724: operator=(exception_ptr&& __o) noexcept 29724: { 29724: exception_ptr(static_cast(__o)).swap(*this); 29724: return *this; 29724: } 29724: 29724: 29724: ~exception_ptr() noexcept; 29724: 29724: void 29724: swap(exception_ptr&) noexcept; 29724: # 161 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: explicit operator bool() const noexcept 29724: { return _M_exception_object; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const exception_ptr& __x, const exception_ptr& __y) 29724: noexcept 29724: { return __x._M_exception_object == __y._M_exception_object; } 29724: 29724: friend bool 29724: operator!=(const exception_ptr& __x, const exception_ptr& __y) 29724: noexcept 29724: { return __x._M_exception_object != __y._M_exception_object; } 29724: 29724: 29724: const class std::type_info* 29724: __cxa_exception_type() const noexcept 29724: __attribute__ ((__pure__)); 29724: }; 29724: 29724: 29724: inline 29724: exception_ptr::exception_ptr() noexcept 29724: : _M_exception_object(0) 29724: { } 29724: 29724: 29724: inline 29724: exception_ptr::exception_ptr(const exception_ptr& __other) 29724: noexcept 29724: : _M_exception_object(__other._M_exception_object) 29724: { 29724: if (_M_exception_object) 29724: _M_addref(); 29724: } 29724: 29724: 29724: inline 29724: exception_ptr::~exception_ptr() noexcept 29724: { 29724: if (_M_exception_object) 29724: _M_release(); 29724: } 29724: 29724: 29724: inline exception_ptr& 29724: exception_ptr::operator=(const exception_ptr& __other) noexcept 29724: { 29724: exception_ptr(__other).swap(*this); 29724: return *this; 29724: } 29724: 29724: 29724: inline void 29724: exception_ptr::swap(exception_ptr &__other) noexcept 29724: { 29724: void *__tmp = _M_exception_object; 29724: _M_exception_object = __other._M_exception_object; 29724: __other._M_exception_object = __tmp; 29724: } 29724: 29724: 29724: inline void 29724: swap(exception_ptr& __lhs, exception_ptr& __rhs) 29724: { __lhs.swap(__rhs); } 29724: 29724: 29724: template 29724: 29724: inline void 29724: __dest_thunk(void* __x) 29724: { static_cast<_Ex*>(__x)->~_Ex(); } 29724: 29724: 29724: } 29724: 29724: using __exception_ptr::swap; 29724: 29724: 29724: 29724: template 29724: exception_ptr 29724: make_exception_ptr(_Ex __ex) noexcept 29724: { 29724: 29724: using _Ex2 = typename decay<_Ex>::type; 29724: void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); 29724: (void) __cxxabiv1::__cxa_init_primary_exception( 29724: __e, const_cast(&typeid(_Ex)), 29724: __exception_ptr::__dest_thunk<_Ex2>); 29724: try 29724: { 29724: ::new (__e) _Ex2(__ex); 29724: return exception_ptr(__e); 29724: } 29724: catch(...) 29724: { 29724: __cxxabiv1::__cxa_free_exception(__e); 29724: return current_exception(); 29724: } 29724: # 276 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: } 29724: # 290 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: } 29724: 29724: } 29724: # 167 "/usr/include/c++/14/exception" 2 3 29724: # 1 "/usr/include/c++/14/bits/nested_exception.h" 1 3 29724: # 40 "/usr/include/c++/14/bits/nested_exception.h" 3 29724: extern "C++" { 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: # 59 "/usr/include/c++/14/bits/nested_exception.h" 3 29724: class nested_exception 29724: { 29724: exception_ptr _M_ptr; 29724: 29724: public: 29724: 29724: nested_exception() noexcept : _M_ptr(current_exception()) { } 29724: 29724: nested_exception(const nested_exception&) noexcept = default; 29724: 29724: nested_exception& operator=(const nested_exception&) noexcept = default; 29724: 29724: virtual ~nested_exception() noexcept; 29724: 29724: 29724: [[noreturn]] 29724: void 29724: rethrow_nested() const 29724: { 29724: if (_M_ptr) 29724: rethrow_exception(_M_ptr); 29724: std::terminate(); 29724: } 29724: 29724: 29724: exception_ptr 29724: nested_ptr() const noexcept 29724: { return _M_ptr; } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct _Nested_exception : public _Except, public nested_exception 29724: { 29724: explicit _Nested_exception(const _Except& __ex) 29724: : _Except(__ex) 29724: { } 29724: 29724: explicit _Nested_exception(_Except&& __ex) 29724: : _Except(static_cast<_Except&&>(__ex)) 29724: { } 29724: }; 29724: # 145 "/usr/include/c++/14/bits/nested_exception.h" 3 29724: template 29724: [[noreturn]] 29724: inline void 29724: throw_with_nested(_Tp&& __t) 29724: { 29724: using _Up = typename decay<_Tp>::type; 29724: using _CopyConstructible 29724: = __and_, is_move_constructible<_Up>>; 29724: static_assert(_CopyConstructible::value, 29724: "throw_with_nested argument must be CopyConstructible"); 29724: 29724: 29724: if constexpr (is_class_v<_Up>) 29724: if constexpr (!is_final_v<_Up>) 29724: if constexpr (!is_base_of_v) 29724: throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; 29724: throw std::forward<_Tp>(__t); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 203 "/usr/include/c++/14/bits/nested_exception.h" 3 29724: template 29724: 29724: 29724: 29724: inline void 29724: rethrow_if_nested(const _Ex& __ex) 29724: { 29724: const _Ex* __ptr = __builtin_addressof(__ex); 29724: # 223 "/usr/include/c++/14/bits/nested_exception.h" 3 29724: if constexpr (!is_polymorphic_v<_Ex>) 29724: return; 29724: else if constexpr (is_base_of_v 29724: && !is_convertible_v<_Ex*, nested_exception*>) 29724: return; 29724: 29724: 29724: 29724: 29724: else if (auto __ne_ptr = dynamic_cast(__ptr)) 29724: __ne_ptr->rethrow_nested(); 29724: 29724: } 29724: 29724: 29724: } 29724: 29724: } 29724: # 168 "/usr/include/c++/14/exception" 2 3 29724: # 35 "/usr/include/c++/14/ext/concurrence.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; 29724: 29724: 29724: 29724: inline const _Lock_policy __default_lock_policy = 29724: 29724: 29724: 29724: _S_atomic; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class __concurrence_lock_error : public std::exception 29724: { 29724: public: 29724: virtual char const* 29724: what() const throw() 29724: { return "__gnu_cxx::__concurrence_lock_error"; } 29724: }; 29724: 29724: class __concurrence_unlock_error : public std::exception 29724: { 29724: public: 29724: virtual char const* 29724: what() const throw() 29724: { return "__gnu_cxx::__concurrence_unlock_error"; } 29724: }; 29724: 29724: class __concurrence_broadcast_error : public std::exception 29724: { 29724: public: 29724: virtual char const* 29724: what() const throw() 29724: { return "__gnu_cxx::__concurrence_broadcast_error"; } 29724: }; 29724: 29724: class __concurrence_wait_error : public std::exception 29724: { 29724: public: 29724: virtual char const* 29724: what() const throw() 29724: { return "__gnu_cxx::__concurrence_wait_error"; } 29724: }; 29724: 29724: 29724: inline void 29724: __throw_concurrence_lock_error() 29724: { (throw (__concurrence_lock_error())); } 29724: 29724: inline void 29724: __throw_concurrence_unlock_error() 29724: { (throw (__concurrence_unlock_error())); } 29724: 29724: 29724: inline void 29724: __throw_concurrence_broadcast_error() 29724: { (throw (__concurrence_broadcast_error())); } 29724: 29724: inline void 29724: __throw_concurrence_wait_error() 29724: { (throw (__concurrence_wait_error())); } 29724: 29724: 29724: class __mutex 29724: { 29724: private: 29724: 29724: __gthread_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 29724: 29724: 29724: 29724: 29724: __mutex(const __mutex&); 29724: __mutex& operator=(const __mutex&); 29724: 29724: public: 29724: __mutex() 29724: { 29724: 29724: 29724: 29724: 29724: } 29724: # 144 "/usr/include/c++/14/ext/concurrence.h" 3 29724: void lock() 29724: { 29724: 29724: if (__gthread_active_p()) 29724: { 29724: if (__gthread_mutex_lock(&_M_mutex) != 0) 29724: __throw_concurrence_lock_error(); 29724: } 29724: 29724: } 29724: 29724: void unlock() 29724: { 29724: 29724: if (__gthread_active_p()) 29724: { 29724: if (__gthread_mutex_unlock(&_M_mutex) != 0) 29724: __throw_concurrence_unlock_error(); 29724: } 29724: 29724: } 29724: 29724: __gthread_mutex_t* gthread_mutex(void) 29724: { return &_M_mutex; } 29724: }; 29724: 29724: class __recursive_mutex 29724: { 29724: private: 29724: 29724: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 29724: 29724: 29724: 29724: 29724: __recursive_mutex(const __recursive_mutex&); 29724: __recursive_mutex& operator=(const __recursive_mutex&); 29724: 29724: public: 29724: __recursive_mutex() 29724: { 29724: 29724: 29724: 29724: 29724: } 29724: # 199 "/usr/include/c++/14/ext/concurrence.h" 3 29724: void lock() 29724: { 29724: 29724: if (__gthread_active_p()) 29724: { 29724: if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) 29724: __throw_concurrence_lock_error(); 29724: } 29724: 29724: } 29724: 29724: void unlock() 29724: { 29724: 29724: if (__gthread_active_p()) 29724: { 29724: if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) 29724: __throw_concurrence_unlock_error(); 29724: } 29724: 29724: } 29724: 29724: __gthread_recursive_mutex_t* gthread_recursive_mutex(void) 29724: { return &_M_mutex; } 29724: }; 29724: 29724: 29724: 29724: 29724: class __scoped_lock 29724: { 29724: public: 29724: typedef __mutex __mutex_type; 29724: 29724: private: 29724: __mutex_type& _M_device; 29724: 29724: __scoped_lock(const __scoped_lock&); 29724: __scoped_lock& operator=(const __scoped_lock&); 29724: 29724: public: 29724: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) 29724: { _M_device.lock(); } 29724: 29724: ~__scoped_lock() throw() 29724: { _M_device.unlock(); } 29724: }; 29724: 29724: 29724: class __cond 29724: { 29724: private: 29724: 29724: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 29724: 29724: 29724: 29724: 29724: __cond(const __cond&); 29724: __cond& operator=(const __cond&); 29724: 29724: public: 29724: __cond() 29724: { 29724: 29724: 29724: 29724: 29724: } 29724: # 277 "/usr/include/c++/14/ext/concurrence.h" 3 29724: void broadcast() 29724: { 29724: 29724: if (__gthread_active_p()) 29724: { 29724: if (__gthread_cond_broadcast(&_M_cond) != 0) 29724: __throw_concurrence_broadcast_error(); 29724: } 29724: 29724: } 29724: 29724: void wait(__mutex *mutex) 29724: { 29724: 29724: { 29724: if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) 29724: __throw_concurrence_wait_error(); 29724: } 29724: 29724: } 29724: 29724: void wait_recursive(__recursive_mutex *mutex) 29724: { 29724: 29724: { 29724: if (__gthread_cond_wait_recursive(&_M_cond, 29724: mutex->gthread_recursive_mutex()) 29724: != 0) 29724: __throw_concurrence_wait_error(); 29724: } 29724: 29724: } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 63 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: # 75 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template class auto_ptr; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: 29724: 29724: class bad_weak_ptr : public std::exception 29724: { 29724: public: 29724: virtual char const* what() const noexcept; 29724: 29724: virtual ~bad_weak_ptr() noexcept; 29724: }; 29724: 29724: 29724: inline void 29724: __throw_bad_weak_ptr() 29724: { (throw (bad_weak_ptr())); } 29724: 29724: using __gnu_cxx::_Lock_policy; 29724: using __gnu_cxx::__default_lock_policy; 29724: using __gnu_cxx::_S_single; 29724: using __gnu_cxx::_S_mutex; 29724: using __gnu_cxx::_S_atomic; 29724: 29724: 29724: template<_Lock_policy _Lp> 29724: class _Mutex_base 29724: { 29724: protected: 29724: 29724: enum { _S_need_barriers = 0 }; 29724: }; 29724: 29724: template<> 29724: class _Mutex_base<_S_mutex> 29724: : public __gnu_cxx::__mutex 29724: { 29724: protected: 29724: 29724: 29724: 29724: enum { _S_need_barriers = 1 }; 29724: }; 29724: 29724: template<_Lock_policy _Lp = __default_lock_policy> 29724: class _Sp_counted_base 29724: : public _Mutex_base<_Lp> 29724: { 29724: public: 29724: _Sp_counted_base() noexcept 29724: : _M_use_count(1), _M_weak_count(1) { } 29724: 29724: virtual 29724: ~_Sp_counted_base() noexcept 29724: { } 29724: 29724: 29724: 29724: virtual void 29724: _M_dispose() noexcept = 0; 29724: 29724: 29724: virtual void 29724: _M_destroy() noexcept 29724: { delete this; } 29724: 29724: virtual void* 29724: _M_get_deleter(const std::type_info&) noexcept = 0; 29724: 29724: 29724: void 29724: _M_add_ref_copy() 29724: { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } 29724: 29724: 29724: void 29724: _M_add_ref_lock() 29724: { 29724: if (!_M_add_ref_lock_nothrow()) 29724: __throw_bad_weak_ptr(); 29724: } 29724: 29724: 29724: bool 29724: _M_add_ref_lock_nothrow() noexcept; 29724: 29724: 29724: void 29724: _M_release() noexcept; 29724: 29724: 29724: void 29724: _M_release_last_use() noexcept 29724: { 29724: ; 29724: _M_dispose(); 29724: 29724: 29724: 29724: 29724: if (_Mutex_base<_Lp>::_S_need_barriers) 29724: { 29724: __atomic_thread_fence (4); 29724: } 29724: 29724: 29724: ; 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, 29724: -1) == 1) 29724: { 29724: ; 29724: _M_destroy(); 29724: } 29724: } 29724: 29724: 29724: __attribute__((__noinline__)) 29724: void 29724: _M_release_last_use_cold() noexcept 29724: { _M_release_last_use(); } 29724: 29724: 29724: void 29724: _M_weak_add_ref() noexcept 29724: { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } 29724: 29724: 29724: void 29724: _M_weak_release() noexcept 29724: { 29724: 29724: ; 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) 29724: { 29724: ; 29724: if (_Mutex_base<_Lp>::_S_need_barriers) 29724: { 29724: 29724: 29724: __atomic_thread_fence (4); 29724: } 29724: _M_destroy(); 29724: } 29724: } 29724: 29724: long 29724: _M_get_use_count() const noexcept 29724: { 29724: 29724: 29724: return __atomic_load_n(&_M_use_count, 0); 29724: } 29724: 29724: private: 29724: _Sp_counted_base(_Sp_counted_base const&) = delete; 29724: _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; 29724: 29724: _Atomic_word _M_use_count; 29724: _Atomic_word _M_weak_count; 29724: }; 29724: 29724: template<> 29724: inline bool 29724: _Sp_counted_base<_S_single>:: 29724: _M_add_ref_lock_nothrow() noexcept 29724: { 29724: if (_M_use_count == 0) 29724: return false; 29724: ++_M_use_count; 29724: return true; 29724: } 29724: 29724: template<> 29724: inline bool 29724: _Sp_counted_base<_S_mutex>:: 29724: _M_add_ref_lock_nothrow() noexcept 29724: { 29724: __gnu_cxx::__scoped_lock sentry(*this); 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 29724: { 29724: _M_use_count = 0; 29724: return false; 29724: } 29724: return true; 29724: } 29724: 29724: template<> 29724: inline bool 29724: _Sp_counted_base<_S_atomic>:: 29724: _M_add_ref_lock_nothrow() noexcept 29724: { 29724: 29724: _Atomic_word __count = _M_get_use_count(); 29724: do 29724: { 29724: if (__count == 0) 29724: return false; 29724: 29724: 29724: } 29724: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 29724: true, 4, 29724: 0)); 29724: return true; 29724: } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_single>::_M_add_ref_copy() 29724: { ++_M_use_count; } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_single>::_M_release() noexcept 29724: { 29724: if (--_M_use_count == 0) 29724: { 29724: _M_dispose(); 29724: if (--_M_weak_count == 0) 29724: _M_destroy(); 29724: } 29724: } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_mutex>::_M_release() noexcept 29724: { 29724: 29724: ; 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29724: { 29724: _M_release_last_use(); 29724: } 29724: } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_atomic>::_M_release() noexcept 29724: { 29724: ; 29724: 29724: constexpr bool __lock_free 29724: = __atomic_always_lock_free(sizeof(long long), 0) 29724: && __atomic_always_lock_free(sizeof(_Atomic_word), 0); 29724: constexpr bool __double_word 29724: = sizeof(long long) == 2 * sizeof(_Atomic_word); 29724: 29724: 29724: constexpr bool __aligned = __alignof(long long) <= alignof(void*); 29724: if constexpr (__lock_free && __double_word && __aligned) 29724: { 29724: constexpr int __wordbits = 8 * sizeof(_Atomic_word); 29724: constexpr int __shiftbits = __double_word ? __wordbits : 0; 29724: constexpr long long __unique_ref = 1LL + (1LL << __shiftbits); 29724: auto __both_counts = reinterpret_cast(&_M_use_count); 29724: 29724: ; 29724: if (__atomic_load_n(__both_counts, 2) == __unique_ref) 29724: { 29724: 29724: 29724: 29724: 29724: _M_weak_count = _M_use_count = 0; 29724: ; 29724: ; 29724: _M_dispose(); 29724: _M_destroy(); 29724: return; 29724: } 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29724: [[__unlikely__]] 29724: { 29724: _M_release_last_use_cold(); 29724: return; 29724: } 29724: } 29724: else 29724: 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29724: { 29724: _M_release_last_use(); 29724: } 29724: } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept 29724: { ++_M_weak_count; } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_single>::_M_weak_release() noexcept 29724: { 29724: if (--_M_weak_count == 0) 29724: _M_destroy(); 29724: } 29724: 29724: template<> 29724: inline long 29724: _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept 29724: { return _M_use_count; } 29724: 29724: 29724: 29724: template 29724: class __shared_ptr; 29724: 29724: template 29724: class __weak_ptr; 29724: 29724: template 29724: class __enable_shared_from_this; 29724: 29724: template 29724: class shared_ptr; 29724: 29724: template 29724: class weak_ptr; 29724: 29724: template 29724: struct owner_less; 29724: 29724: template 29724: class enable_shared_from_this; 29724: 29724: template<_Lock_policy _Lp = __default_lock_policy> 29724: class __weak_count; 29724: 29724: template<_Lock_policy _Lp = __default_lock_policy> 29724: class __shared_count; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> 29724: { 29724: public: 29724: explicit 29724: _Sp_counted_ptr(_Ptr __p) noexcept 29724: : _M_ptr(__p) { } 29724: 29724: virtual void 29724: _M_dispose() noexcept 29724: { delete _M_ptr; } 29724: 29724: virtual void 29724: _M_destroy() noexcept 29724: { delete this; } 29724: 29724: virtual void* 29724: _M_get_deleter(const std::type_info&) noexcept 29724: { return nullptr; } 29724: 29724: _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; 29724: _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; 29724: 29724: private: 29724: _Ptr _M_ptr; 29724: }; 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_ptr::_M_dispose() noexcept { } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_ptr::_M_dispose() noexcept { } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_ptr::_M_dispose() noexcept { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Sp_ebo_helper; 29724: 29724: 29724: template 29724: struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp 29724: { 29724: explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } 29724: explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } 29724: 29724: static _Tp& 29724: _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } 29724: }; 29724: 29724: 29724: template 29724: struct _Sp_ebo_helper<_Nm, _Tp, false> 29724: { 29724: explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } 29724: explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } 29724: 29724: static _Tp& 29724: _S_get(_Sp_ebo_helper& __eboh) 29724: { return __eboh._M_tp; } 29724: 29724: private: 29724: _Tp _M_tp; 29724: }; 29724: 29724: 29724: template 29724: class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> 29724: { 29724: class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> 29724: { 29724: typedef _Sp_ebo_helper<0, _Deleter> _Del_base; 29724: typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; 29724: 29724: public: 29724: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 29724: : _Del_base(std::move(__d)), _Alloc_base(__a), _M_ptr(__p) 29724: { } 29724: 29724: _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } 29724: _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } 29724: 29724: _Ptr _M_ptr; 29724: }; 29724: 29724: public: 29724: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; 29724: 29724: 29724: _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept 29724: : _M_impl(__p, std::move(__d), _Alloc()) { } 29724: 29724: 29724: _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 29724: : _M_impl(__p, std::move(__d), __a) { } 29724: 29724: ~_Sp_counted_deleter() noexcept { } 29724: 29724: virtual void 29724: _M_dispose() noexcept 29724: { _M_impl._M_del()(_M_impl._M_ptr); } 29724: 29724: virtual void 29724: _M_destroy() noexcept 29724: { 29724: __allocator_type __a(_M_impl._M_alloc()); 29724: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 29724: this->~_Sp_counted_deleter(); 29724: } 29724: 29724: virtual void* 29724: _M_get_deleter(const type_info& __ti [[__gnu__::__unused__]]) noexcept 29724: { 29724: 29724: 29724: 29724: return __ti == typeid(_Deleter) 29724: ? std::__addressof(_M_impl._M_del()) 29724: : nullptr; 29724: 29724: 29724: 29724: } 29724: 29724: private: 29724: 29724: 29724: 29724: _Impl _M_impl; 29724: }; 29724: 29724: 29724: 29724: struct _Sp_make_shared_tag 29724: { 29724: private: 29724: template 29724: friend class _Sp_counted_ptr_inplace; 29724: 29724: static const type_info& 29724: _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) 29724: { 29724: alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; 29724: return reinterpret_cast(__tag); 29724: } 29724: 29724: static bool _S_eq(const type_info&) noexcept; 29724: }; 29724: 29724: template 29724: struct _Sp_alloc_shared_tag 29724: { 29724: const _Alloc& _M_a; 29724: }; 29724: 29724: template 29724: class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> 29724: { 29724: class _Impl : _Sp_ebo_helper<0, _Alloc> 29724: { 29724: typedef _Sp_ebo_helper<0, _Alloc> _A_base; 29724: 29724: public: 29724: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } 29724: 29724: _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } 29724: 29724: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 29724: }; 29724: 29724: public: 29724: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; 29724: 29724: 29724: template 29724: _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) 29724: : _M_impl(__a) 29724: { 29724: 29724: 29724: allocator_traits<_Alloc>::construct(__a, _M_ptr(), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: ~_Sp_counted_ptr_inplace() noexcept { } 29724: 29724: virtual void 29724: _M_dispose() noexcept 29724: { 29724: allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); 29724: } 29724: 29724: 29724: virtual void 29724: _M_destroy() noexcept 29724: { 29724: __allocator_type __a(_M_impl._M_alloc()); 29724: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 29724: this->~_Sp_counted_ptr_inplace(); 29724: } 29724: 29724: private: 29724: friend class __shared_count<_Lp>; 29724: 29724: 29724: 29724: virtual void* 29724: _M_get_deleter(const std::type_info& __ti) noexcept override 29724: { 29724: auto __ptr = const_cast::type*>(_M_ptr()); 29724: 29724: 29724: 29724: 29724: if (&__ti == &_Sp_make_shared_tag::_S_ti() 29724: || 29724: 29724: __ti == typeid(_Sp_make_shared_tag) 29724: 29724: 29724: 29724: ) 29724: return __ptr; 29724: return nullptr; 29724: } 29724: 29724: _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } 29724: 29724: _Impl _M_impl; 29724: }; 29724: # 884 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: struct __sp_array_delete 29724: { 29724: template 29724: void operator()(_Yp* __p) const { delete[] __p; } 29724: }; 29724: 29724: template<_Lock_policy _Lp> 29724: class __shared_count 29724: { 29724: 29724: template 29724: struct __not_alloc_shared_tag { using type = void; }; 29724: 29724: template 29724: struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: public: 29724: constexpr __shared_count() noexcept : _M_pi(0) 29724: { } 29724: 29724: template 29724: explicit 29724: __shared_count(_Ptr __p) : _M_pi(0) 29724: { 29724: try 29724: { 29724: _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); 29724: } 29724: catch(...) 29724: { 29724: delete __p; 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: __shared_count(_Ptr __p, false_type) 29724: : __shared_count(__p) 29724: { } 29724: 29724: template 29724: __shared_count(_Ptr __p, true_type) 29724: : __shared_count(__p, __sp_array_delete{}, allocator()) 29724: { } 29724: 29724: template::type> 29724: __shared_count(_Ptr __p, _Deleter __d) 29724: : __shared_count(__p, std::move(__d), allocator()) 29724: { } 29724: 29724: template::type> 29724: __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) 29724: { 29724: typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; 29724: try 29724: { 29724: typename _Sp_cd_type::__allocator_type __a2(__a); 29724: auto __guard = std::__allocate_guarded(__a2); 29724: _Sp_cd_type* __mem = __guard.get(); 29724: ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); 29724: _M_pi = __mem; 29724: __guard = nullptr; 29724: } 29724: catch(...) 29724: { 29724: __d(__p); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, 29724: _Args&&... __args) 29724: { 29724: typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; 29724: typename _Sp_cp_type::__allocator_type __a2(__a._M_a); 29724: auto __guard = std::__allocate_guarded(__a2); 29724: _Sp_cp_type* __mem = __guard.get(); 29724: auto __pi = ::new (__mem) 29724: _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); 29724: __guard = nullptr; 29724: _M_pi = __pi; 29724: __p = __pi->_M_ptr(); 29724: } 29724: # 1022 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: template 29724: explicit 29724: __shared_count(std::auto_ptr<_Tp>&& __r); 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: template 29724: explicit 29724: __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) 29724: { 29724: 29724: 29724: if (__r.get() == nullptr) 29724: return; 29724: 29724: using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; 29724: using _Del2 = __conditional_t::value, 29724: reference_wrapper::type>, 29724: _Del>; 29724: using _Sp_cd_type 29724: = _Sp_counted_deleter<_Ptr, _Del2, allocator, _Lp>; 29724: using _Alloc = allocator<_Sp_cd_type>; 29724: using _Alloc_traits = allocator_traits<_Alloc>; 29724: _Alloc __a; 29724: _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); 29724: 29724: 29724: 29724: _Alloc_traits::construct(__a, __mem, __r.release(), 29724: std::forward<_Del>(__r.get_deleter())); 29724: _M_pi = __mem; 29724: } 29724: 29724: 29724: explicit __shared_count(const __weak_count<_Lp>& __r); 29724: 29724: 29724: explicit 29724: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept; 29724: 29724: ~__shared_count() noexcept 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_release(); 29724: } 29724: 29724: __shared_count(const __shared_count& __r) noexcept 29724: : _M_pi(__r._M_pi) 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_add_ref_copy(); 29724: } 29724: 29724: __shared_count& 29724: operator=(const __shared_count& __r) noexcept 29724: { 29724: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29724: if (__tmp != _M_pi) 29724: { 29724: if (__tmp != nullptr) 29724: __tmp->_M_add_ref_copy(); 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_release(); 29724: _M_pi = __tmp; 29724: } 29724: return *this; 29724: } 29724: 29724: void 29724: _M_swap(__shared_count& __r) noexcept 29724: { 29724: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29724: __r._M_pi = _M_pi; 29724: _M_pi = __tmp; 29724: } 29724: 29724: long 29724: _M_get_use_count() const noexcept 29724: { return _M_pi ? _M_pi->_M_get_use_count() : 0; } 29724: 29724: bool 29724: _M_unique() const noexcept 29724: { return this->_M_get_use_count() == 1; } 29724: 29724: void* 29724: _M_get_deleter(const std::type_info& __ti) const noexcept 29724: { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } 29724: 29724: bool 29724: _M_less(const __shared_count& __rhs) const noexcept 29724: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29724: 29724: bool 29724: _M_less(const __weak_count<_Lp>& __rhs) const noexcept 29724: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29724: 29724: 29724: friend inline bool 29724: operator==(const __shared_count& __a, const __shared_count& __b) noexcept 29724: { return __a._M_pi == __b._M_pi; } 29724: 29724: private: 29724: friend class __weak_count<_Lp>; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: _Sp_counted_base<_Lp>* _M_pi; 29724: }; 29724: 29724: 29724: template<_Lock_policy _Lp> 29724: class __weak_count 29724: { 29724: public: 29724: constexpr __weak_count() noexcept : _M_pi(nullptr) 29724: { } 29724: 29724: __weak_count(const __shared_count<_Lp>& __r) noexcept 29724: : _M_pi(__r._M_pi) 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_add_ref(); 29724: } 29724: 29724: __weak_count(const __weak_count& __r) noexcept 29724: : _M_pi(__r._M_pi) 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_add_ref(); 29724: } 29724: 29724: __weak_count(__weak_count&& __r) noexcept 29724: : _M_pi(__r._M_pi) 29724: { __r._M_pi = nullptr; } 29724: 29724: ~__weak_count() noexcept 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_release(); 29724: } 29724: 29724: __weak_count& 29724: operator=(const __shared_count<_Lp>& __r) noexcept 29724: { 29724: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29724: if (__tmp != nullptr) 29724: __tmp->_M_weak_add_ref(); 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_release(); 29724: _M_pi = __tmp; 29724: return *this; 29724: } 29724: 29724: __weak_count& 29724: operator=(const __weak_count& __r) noexcept 29724: { 29724: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29724: if (__tmp != nullptr) 29724: __tmp->_M_weak_add_ref(); 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_release(); 29724: _M_pi = __tmp; 29724: return *this; 29724: } 29724: 29724: __weak_count& 29724: operator=(__weak_count&& __r) noexcept 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_release(); 29724: _M_pi = __r._M_pi; 29724: __r._M_pi = nullptr; 29724: return *this; 29724: } 29724: 29724: void 29724: _M_swap(__weak_count& __r) noexcept 29724: { 29724: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29724: __r._M_pi = _M_pi; 29724: _M_pi = __tmp; 29724: } 29724: 29724: long 29724: _M_get_use_count() const noexcept 29724: { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } 29724: 29724: bool 29724: _M_less(const __weak_count& __rhs) const noexcept 29724: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29724: 29724: bool 29724: _M_less(const __shared_count<_Lp>& __rhs) const noexcept 29724: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29724: 29724: 29724: friend inline bool 29724: operator==(const __weak_count& __a, const __weak_count& __b) noexcept 29724: { return __a._M_pi == __b._M_pi; } 29724: 29724: private: 29724: friend class __shared_count<_Lp>; 29724: 29724: 29724: 29724: 29724: _Sp_counted_base<_Lp>* _M_pi; 29724: }; 29724: 29724: 29724: template<_Lock_policy _Lp> 29724: inline 29724: __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) 29724: : _M_pi(__r._M_pi) 29724: { 29724: if (_M_pi == nullptr || !_M_pi->_M_add_ref_lock_nothrow()) 29724: __throw_bad_weak_ptr(); 29724: } 29724: 29724: 29724: template<_Lock_policy _Lp> 29724: inline 29724: __shared_count<_Lp>:: 29724: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept 29724: : _M_pi(__r._M_pi) 29724: { 29724: if (_M_pi && !_M_pi->_M_add_ref_lock_nothrow()) 29724: _M_pi = nullptr; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __sp_compatible_with 29724: : false_type 29724: { }; 29724: 29724: template 29724: struct __sp_compatible_with<_Yp*, _Tp*> 29724: : is_convertible<_Yp*, _Tp*>::type 29724: { }; 29724: 29724: template 29724: struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> 29724: : true_type 29724: { }; 29724: 29724: template 29724: struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> 29724: : true_type 29724: { }; 29724: 29724: template 29724: struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> 29724: : true_type 29724: { }; 29724: 29724: template 29724: struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> 29724: : true_type 29724: { }; 29724: 29724: 29724: template 29724: struct __sp_is_constructible_arrN 29724: : false_type 29724: { }; 29724: 29724: template 29724: struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> 29724: : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type 29724: { }; 29724: 29724: 29724: template 29724: struct __sp_is_constructible_arr 29724: : false_type 29724: { }; 29724: 29724: template 29724: struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> 29724: : is_convertible<_Yp(*)[], _Up(*)[]>::type 29724: { }; 29724: 29724: 29724: template 29724: struct __sp_is_constructible; 29724: 29724: 29724: template 29724: struct __sp_is_constructible<_Up[_Nm], _Yp> 29724: : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type 29724: { }; 29724: 29724: 29724: template 29724: struct __sp_is_constructible<_Up[], _Yp> 29724: : __sp_is_constructible_arr<_Up, _Yp>::type 29724: { }; 29724: 29724: 29724: template 29724: struct __sp_is_constructible 29724: : is_convertible<_Yp*, _Tp*>::type 29724: { }; 29724: 29724: 29724: 29724: template::value, bool = is_void<_Tp>::value> 29724: class __shared_ptr_access 29724: { 29724: public: 29724: using element_type = _Tp; 29724: 29724: element_type& 29724: operator*() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29724: return *_M_get(); 29724: } 29724: 29724: element_type* 29724: operator->() const noexcept 29724: { 29724: ; 29724: return _M_get(); 29724: } 29724: 29724: private: 29724: element_type* 29724: _M_get() const noexcept 29724: { return static_cast*>(this)->get(); } 29724: }; 29724: 29724: 29724: template 29724: class __shared_ptr_access<_Tp, _Lp, false, true> 29724: { 29724: public: 29724: using element_type = _Tp; 29724: 29724: element_type* 29724: operator->() const noexcept 29724: { 29724: auto __ptr = static_cast*>(this)->get(); 29724: ; 29724: return __ptr; 29724: } 29724: }; 29724: 29724: 29724: template 29724: class __shared_ptr_access<_Tp, _Lp, true, false> 29724: { 29724: public: 29724: using element_type = typename remove_extent<_Tp>::type; 29724: # 1408 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: element_type& 29724: operator[](ptrdiff_t __i) const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(!extent<_Tp>::value || __i < extent<_Tp>::value)) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_get()[__i]; 29724: } 29724: 29724: private: 29724: element_type* 29724: _M_get() const noexcept 29724: { return static_cast*>(this)->get(); } 29724: }; 29724: 29724: template 29724: class __shared_ptr 29724: : public __shared_ptr_access<_Tp, _Lp> 29724: { 29724: public: 29724: using element_type = typename remove_extent<_Tp>::type; 29724: 29724: private: 29724: 29724: template 29724: using _SafeConv 29724: = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; 29724: 29724: 29724: template 29724: using _Compatible = typename 29724: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 29724: 29724: 29724: template 29724: using _Assignable = _Compatible<_Yp, __shared_ptr&>; 29724: 29724: 29724: template::pointer> 29724: using _UniqCompatible = __enable_if_t<__and_< 29724: __sp_compatible_with<_Yp*, _Tp*>, 29724: is_convertible<_Ptr, element_type*>, 29724: is_move_constructible<_Del> 29724: >::value, _Res>; 29724: 29724: 29724: template 29724: using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; 29724: 29724: public: 29724: 29724: 29724: using weak_type = __weak_ptr<_Tp, _Lp>; 29724: 29724: 29724: constexpr __shared_ptr() noexcept 29724: : _M_ptr(0), _M_refcount() 29724: { } 29724: 29724: template> 29724: explicit 29724: __shared_ptr(_Yp* __p) 29724: : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) 29724: { 29724: static_assert( !is_void<_Yp>::value, "incomplete type" ); 29724: static_assert( sizeof(_Yp) > 0, "incomplete type" ); 29724: _M_enable_shared_from_this_with(__p); 29724: } 29724: 29724: template> 29724: __shared_ptr(_Yp* __p, _Deleter __d) 29724: : _M_ptr(__p), _M_refcount(__p, std::move(__d)) 29724: { 29724: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 29724: "deleter expression d(p) is well-formed"); 29724: _M_enable_shared_from_this_with(__p); 29724: } 29724: 29724: template> 29724: __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 29724: : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) 29724: { 29724: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 29724: "deleter expression d(p) is well-formed"); 29724: _M_enable_shared_from_this_with(__p); 29724: } 29724: 29724: template 29724: __shared_ptr(nullptr_t __p, _Deleter __d) 29724: : _M_ptr(0), _M_refcount(__p, std::move(__d)) 29724: { } 29724: 29724: template 29724: __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 29724: : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) 29724: { } 29724: 29724: 29724: template 29724: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, 29724: element_type* __p) noexcept 29724: : _M_ptr(__p), _M_refcount(__r._M_refcount) 29724: { } 29724: 29724: 29724: template 29724: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r, 29724: element_type* __p) noexcept 29724: : _M_ptr(__p), _M_refcount() 29724: { 29724: _M_refcount._M_swap(__r._M_refcount); 29724: __r._M_ptr = nullptr; 29724: } 29724: 29724: __shared_ptr(const __shared_ptr&) noexcept = default; 29724: __shared_ptr& operator=(const __shared_ptr&) noexcept = default; 29724: ~__shared_ptr() = default; 29724: 29724: template> 29724: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29724: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 29724: { } 29724: 29724: __shared_ptr(__shared_ptr&& __r) noexcept 29724: : _M_ptr(__r._M_ptr), _M_refcount() 29724: { 29724: _M_refcount._M_swap(__r._M_refcount); 29724: __r._M_ptr = nullptr; 29724: } 29724: 29724: template> 29724: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 29724: : _M_ptr(__r._M_ptr), _M_refcount() 29724: { 29724: _M_refcount._M_swap(__r._M_refcount); 29724: __r._M_ptr = nullptr; 29724: } 29724: 29724: template> 29724: explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) 29724: : _M_refcount(__r._M_refcount) 29724: { 29724: 29724: 29724: _M_ptr = __r._M_ptr; 29724: } 29724: 29724: 29724: template> 29724: __shared_ptr(unique_ptr<_Yp, _Del>&& __r) 29724: : _M_ptr(__r.get()), _M_refcount() 29724: { 29724: auto __raw = __to_address(__r.get()); 29724: _M_refcount = __shared_count<_Lp>(std::move(__r)); 29724: _M_enable_shared_from_this_with(__raw); 29724: } 29724: # 1586 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: template> 29724: __shared_ptr(auto_ptr<_Yp>&& __r); 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } 29724: 29724: template 29724: _Assignable<_Yp> 29724: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29724: { 29724: _M_ptr = __r._M_ptr; 29724: _M_refcount = __r._M_refcount; 29724: return *this; 29724: } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template 29724: _Assignable<_Yp> 29724: operator=(auto_ptr<_Yp>&& __r) 29724: { 29724: __shared_ptr(std::move(__r)).swap(*this); 29724: return *this; 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: __shared_ptr& 29724: operator=(__shared_ptr&& __r) noexcept 29724: { 29724: __shared_ptr(std::move(__r)).swap(*this); 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable<_Yp> 29724: operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 29724: { 29724: __shared_ptr(std::move(__r)).swap(*this); 29724: return *this; 29724: } 29724: 29724: template 29724: _UniqAssignable<_Yp, _Del> 29724: operator=(unique_ptr<_Yp, _Del>&& __r) 29724: { 29724: __shared_ptr(std::move(__r)).swap(*this); 29724: return *this; 29724: } 29724: 29724: void 29724: reset() noexcept 29724: { __shared_ptr().swap(*this); } 29724: 29724: template 29724: _SafeConv<_Yp> 29724: reset(_Yp* __p) 29724: { 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__p == nullptr || __p != _M_ptr)) std::__glibcxx_assert_fail(); } while (false); 29724: __shared_ptr(__p).swap(*this); 29724: } 29724: 29724: template 29724: _SafeConv<_Yp> 29724: reset(_Yp* __p, _Deleter __d) 29724: { __shared_ptr(__p, std::move(__d)).swap(*this); } 29724: 29724: template 29724: _SafeConv<_Yp> 29724: reset(_Yp* __p, _Deleter __d, _Alloc __a) 29724: { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } 29724: 29724: 29724: element_type* 29724: get() const noexcept 29724: { return _M_ptr; } 29724: 29724: 29724: explicit operator bool() const noexcept 29724: { return _M_ptr != nullptr; } 29724: 29724: 29724: bool 29724: unique() const noexcept 29724: { return _M_refcount._M_unique(); } 29724: 29724: 29724: long 29724: use_count() const noexcept 29724: { return _M_refcount._M_get_use_count(); } 29724: 29724: 29724: void 29724: swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 29724: { 29724: std::swap(_M_ptr, __other._M_ptr); 29724: _M_refcount._M_swap(__other._M_refcount); 29724: } 29724: # 1698 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: template 29724: bool 29724: owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept 29724: { return _M_refcount._M_less(__rhs._M_refcount); } 29724: 29724: template 29724: bool 29724: owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept 29724: { return _M_refcount._M_less(__rhs._M_refcount); } 29724: 29724: 29724: protected: 29724: 29724: template 29724: __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 29724: : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) 29724: { _M_enable_shared_from_this_with(_M_ptr); } 29724: 29724: template 29724: friend __shared_ptr<_Tp1, _Lp1> 29724: __allocate_shared(const _Alloc& __a, _Args&&... __args); 29724: # 1732 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) noexcept 29724: : _M_refcount(__r._M_refcount, std::nothrow) 29724: { 29724: _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; 29724: } 29724: 29724: friend class __weak_ptr<_Tp, _Lp>; 29724: 29724: private: 29724: 29724: template 29724: using __esft_base_t = decltype(__enable_shared_from_this_base( 29724: std::declval&>(), 29724: std::declval<_Yp*>())); 29724: 29724: 29724: template 29724: struct __has_esft_base 29724: : false_type { }; 29724: 29724: template 29724: struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> 29724: : __not_> { }; 29724: 29724: template::type> 29724: typename enable_if<__has_esft_base<_Yp2>::value>::type 29724: _M_enable_shared_from_this_with(_Yp* __p) noexcept 29724: { 29724: if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) 29724: __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); 29724: } 29724: 29724: template::type> 29724: typename enable_if::value>::type 29724: _M_enable_shared_from_this_with(_Yp*) noexcept 29724: { } 29724: 29724: void* 29724: _M_get_deleter(const std::type_info& __ti) const noexcept 29724: { return _M_refcount._M_get_deleter(__ti); } 29724: 29724: template friend class __shared_ptr; 29724: template friend class __weak_ptr; 29724: 29724: template 29724: friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; 29724: 29724: template 29724: friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; 29724: # 1789 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: element_type* _M_ptr; 29724: __shared_count<_Lp> _M_refcount; 29724: }; 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator==(const __shared_ptr<_Tp1, _Lp>& __a, 29724: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29724: { return __a.get() == __b.get(); } 29724: 29724: template 29724: inline bool 29724: operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { return !__a; } 29724: # 1821 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: template 29724: inline bool 29724: operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { return !__a; } 29724: 29724: template 29724: inline bool 29724: operator!=(const __shared_ptr<_Tp1, _Lp>& __a, 29724: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29724: { return __a.get() != __b.get(); } 29724: 29724: template 29724: inline bool 29724: operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { return (bool)__a; } 29724: 29724: template 29724: inline bool 29724: operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { return (bool)__a; } 29724: 29724: template 29724: inline bool 29724: operator<(const __shared_ptr<_Tp, _Lp>& __a, 29724: const __shared_ptr<_Up, _Lp>& __b) noexcept 29724: { 29724: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29724: using _Up_elt = typename __shared_ptr<_Up, _Lp>::element_type; 29724: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 29724: return less<_Vp>()(__a.get(), __b.get()); 29724: } 29724: 29724: template 29724: inline bool 29724: operator<(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { 29724: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29724: return less<_Tp_elt*>()(__a.get(), nullptr); 29724: } 29724: 29724: template 29724: inline bool 29724: operator<(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { 29724: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29724: return less<_Tp_elt*>()(nullptr, __a.get()); 29724: } 29724: 29724: template 29724: inline bool 29724: operator<=(const __shared_ptr<_Tp1, _Lp>& __a, 29724: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29724: { return !(__b < __a); } 29724: 29724: template 29724: inline bool 29724: operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { return !(nullptr < __a); } 29724: 29724: template 29724: inline bool 29724: operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { return !(__a < nullptr); } 29724: 29724: template 29724: inline bool 29724: operator>(const __shared_ptr<_Tp1, _Lp>& __a, 29724: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29724: { return (__b < __a); } 29724: 29724: template 29724: inline bool 29724: operator>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { return nullptr < __a; } 29724: 29724: template 29724: inline bool 29724: operator>(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { return __a < nullptr; } 29724: 29724: template 29724: inline bool 29724: operator>=(const __shared_ptr<_Tp1, _Lp>& __a, 29724: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29724: { return !(__a < __b); } 29724: 29724: template 29724: inline bool 29724: operator>=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { return !(__a < nullptr); } 29724: 29724: template 29724: inline bool 29724: operator>=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { return !(nullptr < __a); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept 29724: { __a.swap(__b); } 29724: # 1931 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29724: { 29724: using _Sp = __shared_ptr<_Tp, _Lp>; 29724: return _Sp(__r, static_cast(__r.get())); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29724: { 29724: using _Sp = __shared_ptr<_Tp, _Lp>; 29724: return _Sp(__r, const_cast(__r.get())); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29724: { 29724: using _Sp = __shared_ptr<_Tp, _Lp>; 29724: if (auto* __p = dynamic_cast(__r.get())) 29724: return _Sp(__r, __p); 29724: return _Sp(); 29724: } 29724: 29724: 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: reinterpret_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29724: { 29724: using _Sp = __shared_ptr<_Tp, _Lp>; 29724: return _Sp(__r, reinterpret_cast(__r.get())); 29724: } 29724: 29724: 29724: template 29724: class __weak_ptr 29724: { 29724: template 29724: using _Compatible = typename 29724: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 29724: 29724: 29724: template 29724: using _Assignable = _Compatible<_Yp, __weak_ptr&>; 29724: 29724: public: 29724: using element_type = typename remove_extent<_Tp>::type; 29724: 29724: constexpr __weak_ptr() noexcept 29724: : _M_ptr(nullptr), _M_refcount() 29724: { } 29724: 29724: __weak_ptr(const __weak_ptr&) noexcept = default; 29724: 29724: ~__weak_ptr() = default; 29724: # 2013 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: template> 29724: __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept 29724: : _M_refcount(__r._M_refcount) 29724: { _M_ptr = __r.lock().get(); } 29724: 29724: template> 29724: __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29724: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 29724: { } 29724: 29724: __weak_ptr(__weak_ptr&& __r) noexcept 29724: : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) 29724: { __r._M_ptr = nullptr; } 29724: 29724: template> 29724: __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept 29724: : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) 29724: { __r._M_ptr = nullptr; } 29724: 29724: __weak_ptr& 29724: operator=(const __weak_ptr& __r) noexcept = default; 29724: 29724: template 29724: _Assignable<_Yp> 29724: operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept 29724: { 29724: _M_ptr = __r.lock().get(); 29724: _M_refcount = __r._M_refcount; 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable<_Yp> 29724: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29724: { 29724: _M_ptr = __r._M_ptr; 29724: _M_refcount = __r._M_refcount; 29724: return *this; 29724: } 29724: 29724: __weak_ptr& 29724: operator=(__weak_ptr&& __r) noexcept 29724: { 29724: __weak_ptr(std::move(__r)).swap(*this); 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable<_Yp> 29724: operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept 29724: { 29724: _M_ptr = __r.lock().get(); 29724: _M_refcount = std::move(__r._M_refcount); 29724: __r._M_ptr = nullptr; 29724: return *this; 29724: } 29724: 29724: __shared_ptr<_Tp, _Lp> 29724: lock() const noexcept 29724: { return __shared_ptr(*this, std::nothrow); } 29724: 29724: long 29724: use_count() const noexcept 29724: { return _M_refcount._M_get_use_count(); } 29724: 29724: bool 29724: expired() const noexcept 29724: { return _M_refcount._M_get_use_count() == 0; } 29724: 29724: template 29724: bool 29724: owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept 29724: { return _M_refcount._M_less(__rhs._M_refcount); } 29724: 29724: template 29724: bool 29724: owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept 29724: { return _M_refcount._M_less(__rhs._M_refcount); } 29724: 29724: void 29724: reset() noexcept 29724: { __weak_ptr().swap(*this); } 29724: 29724: void 29724: swap(__weak_ptr& __s) noexcept 29724: { 29724: std::swap(_M_ptr, __s._M_ptr); 29724: _M_refcount._M_swap(__s._M_refcount); 29724: } 29724: 29724: private: 29724: 29724: void 29724: _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept 29724: { 29724: if (use_count() == 0) 29724: { 29724: _M_ptr = __ptr; 29724: _M_refcount = __refcount; 29724: } 29724: } 29724: 29724: template friend class __shared_ptr; 29724: template friend class __weak_ptr; 29724: friend class __enable_shared_from_this<_Tp, _Lp>; 29724: friend class enable_shared_from_this<_Tp>; 29724: 29724: 29724: 29724: 29724: element_type* _M_ptr; 29724: __weak_count<_Lp> _M_refcount; 29724: }; 29724: 29724: 29724: template 29724: inline void 29724: swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept 29724: { __a.swap(__b); } 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template 29724: struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> 29724: { 29724: bool 29724: operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept 29724: { return __lhs.owner_before(__rhs); } 29724: 29724: bool 29724: operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept 29724: { return __lhs.owner_before(__rhs); } 29724: 29724: bool 29724: operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept 29724: { return __lhs.owner_before(__rhs); } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: template<> 29724: struct _Sp_owner_less 29724: { 29724: template 29724: auto 29724: operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept 29724: -> decltype(__lhs.owner_before(__rhs)) 29724: { return __lhs.owner_before(__rhs); } 29724: 29724: using is_transparent = void; 29724: }; 29724: 29724: template 29724: struct owner_less<__shared_ptr<_Tp, _Lp>> 29724: : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> 29724: { }; 29724: 29724: template 29724: struct owner_less<__weak_ptr<_Tp, _Lp>> 29724: : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> 29724: { }; 29724: 29724: 29724: template 29724: class __enable_shared_from_this 29724: { 29724: protected: 29724: constexpr __enable_shared_from_this() noexcept { } 29724: 29724: __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } 29724: 29724: __enable_shared_from_this& 29724: operator=(const __enable_shared_from_this&) noexcept 29724: { return *this; } 29724: 29724: ~__enable_shared_from_this() { } 29724: 29724: public: 29724: __shared_ptr<_Tp, _Lp> 29724: shared_from_this() 29724: { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } 29724: 29724: __shared_ptr 29724: shared_from_this() const 29724: { return __shared_ptr(this->_M_weak_this); } 29724: 29724: 29724: __weak_ptr<_Tp, _Lp> 29724: weak_from_this() noexcept 29724: { return this->_M_weak_this; } 29724: 29724: __weak_ptr 29724: weak_from_this() const noexcept 29724: { return this->_M_weak_this; } 29724: 29724: 29724: private: 29724: template 29724: void 29724: _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept 29724: { _M_weak_this._M_assign(__p, __n); } 29724: 29724: friend const __enable_shared_from_this* 29724: __enable_shared_from_this_base(const __shared_count<_Lp>&, 29724: const __enable_shared_from_this* __p) 29724: { return __p; } 29724: 29724: template 29724: friend class __shared_ptr; 29724: 29724: mutable __weak_ptr<_Tp, _Lp> _M_weak_this; 29724: }; 29724: 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: __allocate_shared(const _Alloc& __a, _Args&&... __args) 29724: { 29724: static_assert(!is_array<_Tp>::value, "make_shared not supported"); 29724: 29724: return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: __make_shared(_Args&&... __args) 29724: { 29724: typedef typename std::remove_const<_Tp>::type _Tp_nc; 29724: return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: template 29724: struct hash<__shared_ptr<_Tp, _Lp>> 29724: : public __hash_base> 29724: { 29724: size_t 29724: operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept 29724: { 29724: return hash::element_type*>()( 29724: __s.get()); 29724: } 29724: }; 29724: 29724: 29724: } 29724: # 54 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 68 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: inline std::basic_ostream<_Ch, _Tr>& 29724: operator<<(std::basic_ostream<_Ch, _Tr>& __os, 29724: const __shared_ptr<_Tp, _Lp>& __p) 29724: { 29724: __os << __p.get(); 29724: return __os; 29724: } 29724: 29724: template 29724: inline _Del* 29724: get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept 29724: { 29724: 29724: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline _Del* 29724: get_deleter(const shared_ptr<_Tp>& __p) noexcept 29724: { 29724: 29724: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 29724: 29724: 29724: 29724: } 29724: # 111 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: using _NonArray = __enable_if_t::value, _Tp>; 29724: # 174 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: class shared_ptr : public __shared_ptr<_Tp> 29724: { 29724: template 29724: using _Constructible = typename enable_if< 29724: is_constructible<__shared_ptr<_Tp>, _Args...>::value 29724: >::type; 29724: 29724: template 29724: using _Assignable = typename enable_if< 29724: is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& 29724: >::type; 29724: 29724: public: 29724: 29724: 29724: using element_type = typename __shared_ptr<_Tp>::element_type; 29724: 29724: 29724: 29724: 29724: using weak_type = weak_ptr<_Tp>; 29724: 29724: 29724: 29724: 29724: 29724: constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } 29724: 29724: shared_ptr(const shared_ptr&) noexcept = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 29724: # 228 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template> 29724: shared_ptr(_Yp* __p, _Deleter __d) 29724: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 29724: # 246 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: shared_ptr(nullptr_t __p, _Deleter __d) 29724: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 29724: # 265 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template> 29724: shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 29724: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 29724: # 285 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 29724: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 29724: # 309 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept 29724: : __shared_ptr<_Tp>(__r, __p) { } 29724: # 348 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template&>> 29724: shared_ptr(const shared_ptr<_Yp>& __r) noexcept 29724: : __shared_ptr<_Tp>(__r) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: shared_ptr(shared_ptr&& __r) noexcept 29724: : __shared_ptr<_Tp>(std::move(__r)) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template>> 29724: shared_ptr(shared_ptr<_Yp>&& __r) noexcept 29724: : __shared_ptr<_Tp>(std::move(__r)) { } 29724: # 378 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template&>> 29724: explicit shared_ptr(const weak_ptr<_Yp>& __r) 29724: : __shared_ptr<_Tp>(__r) { } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template>> 29724: shared_ptr(auto_ptr<_Yp>&& __r); 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: template>> 29724: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 29724: : __shared_ptr<_Tp>(std::move(__r)) { } 29724: # 411 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } 29724: 29724: shared_ptr& operator=(const shared_ptr&) noexcept = default; 29724: 29724: template 29724: _Assignable&> 29724: operator=(const shared_ptr<_Yp>& __r) noexcept 29724: { 29724: this->__shared_ptr<_Tp>::operator=(__r); 29724: return *this; 29724: } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template 29724: _Assignable> 29724: operator=(auto_ptr<_Yp>&& __r) 29724: { 29724: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29724: return *this; 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: shared_ptr& 29724: operator=(shared_ptr&& __r) noexcept 29724: { 29724: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable> 29724: operator=(shared_ptr<_Yp>&& __r) noexcept 29724: { 29724: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable> 29724: operator=(unique_ptr<_Yp, _Del>&& __r) 29724: { 29724: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29724: return *this; 29724: } 29724: 29724: private: 29724: 29724: template 29724: shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 29724: : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: friend shared_ptr<_NonArray<_Yp>> 29724: allocate_shared(const _Alloc&, _Args&&...); 29724: 29724: template 29724: friend shared_ptr<_NonArray<_Yp>> 29724: make_shared(_Args&&...); 29724: # 534 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept 29724: : __shared_ptr<_Tp>(__r, std::nothrow) { } 29724: 29724: friend class weak_ptr<_Tp>; 29724: }; 29724: 29724: 29724: template 29724: shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>; 29724: template 29724: shared_ptr(unique_ptr<_Tp, _Del>) -> shared_ptr<_Tp>; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { return __a.get() == __b.get(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { return !__a; } 29724: # 579 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { return !__a; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { return __a.get() != __b.get(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { return (bool)__a; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { return (bool)__a; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { 29724: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29724: using _Up_elt = typename shared_ptr<_Up>::element_type; 29724: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 29724: return less<_Vp>()(__a.get(), __b.get()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { 29724: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29724: return less<_Tp_elt*>()(__a.get(), nullptr); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { 29724: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29724: return less<_Tp_elt*>()(nullptr, __a.get()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { return !(__b < __a); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { return !(nullptr < __a); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { return !(__a < nullptr); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { return (__b < __a); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { return nullptr < __a; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { return __a < nullptr; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { return !(__a < __b); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { return !(__a < nullptr); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { return !(nullptr < __a); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept 29724: { __a.swap(__b); } 29724: 29724: 29724: 29724: 29724: template 29724: inline shared_ptr<_Tp> 29724: static_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29724: { 29724: using _Sp = shared_ptr<_Tp>; 29724: return _Sp(__r, static_cast(__r.get())); 29724: } 29724: 29724: 29724: template 29724: inline shared_ptr<_Tp> 29724: const_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29724: { 29724: using _Sp = shared_ptr<_Tp>; 29724: return _Sp(__r, const_cast(__r.get())); 29724: } 29724: 29724: 29724: template 29724: inline shared_ptr<_Tp> 29724: dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29724: { 29724: using _Sp = shared_ptr<_Tp>; 29724: if (auto* __p = dynamic_cast(__r.get())) 29724: return _Sp(__r, __p); 29724: return _Sp(); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline shared_ptr<_Tp> 29724: reinterpret_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29724: { 29724: using _Sp = shared_ptr<_Tp>; 29724: return _Sp(__r, reinterpret_cast(__r.get())); 29724: } 29724: # 809 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: class weak_ptr : public __weak_ptr<_Tp> 29724: { 29724: template 29724: using _Constructible = typename enable_if< 29724: is_constructible<__weak_ptr<_Tp>, _Arg>::value 29724: >::type; 29724: 29724: template 29724: using _Assignable = typename enable_if< 29724: is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& 29724: >::type; 29724: 29724: public: 29724: constexpr weak_ptr() noexcept = default; 29724: 29724: template&>> 29724: weak_ptr(const shared_ptr<_Yp>& __r) noexcept 29724: : __weak_ptr<_Tp>(__r) { } 29724: 29724: weak_ptr(const weak_ptr&) noexcept = default; 29724: 29724: template&>> 29724: weak_ptr(const weak_ptr<_Yp>& __r) noexcept 29724: : __weak_ptr<_Tp>(__r) { } 29724: 29724: weak_ptr(weak_ptr&&) noexcept = default; 29724: 29724: template>> 29724: weak_ptr(weak_ptr<_Yp>&& __r) noexcept 29724: : __weak_ptr<_Tp>(std::move(__r)) { } 29724: 29724: weak_ptr& 29724: operator=(const weak_ptr& __r) noexcept = default; 29724: 29724: template 29724: _Assignable&> 29724: operator=(const weak_ptr<_Yp>& __r) noexcept 29724: { 29724: this->__weak_ptr<_Tp>::operator=(__r); 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable&> 29724: operator=(const shared_ptr<_Yp>& __r) noexcept 29724: { 29724: this->__weak_ptr<_Tp>::operator=(__r); 29724: return *this; 29724: } 29724: 29724: weak_ptr& 29724: operator=(weak_ptr&& __r) noexcept = default; 29724: 29724: template 29724: _Assignable> 29724: operator=(weak_ptr<_Yp>&& __r) noexcept 29724: { 29724: this->__weak_ptr<_Tp>::operator=(std::move(__r)); 29724: return *this; 29724: } 29724: 29724: shared_ptr<_Tp> 29724: lock() const noexcept 29724: { return shared_ptr<_Tp>(*this, std::nothrow); } 29724: }; 29724: 29724: 29724: template 29724: weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept 29724: { __a.swap(__b); } 29724: 29724: 29724: 29724: template 29724: struct owner_less; 29724: 29724: 29724: template<> 29724: struct owner_less : _Sp_owner_less 29724: { }; 29724: 29724: 29724: template 29724: struct owner_less> 29724: : public _Sp_owner_less, weak_ptr<_Tp>> 29724: { }; 29724: 29724: 29724: template 29724: struct owner_less> 29724: : public _Sp_owner_less, shared_ptr<_Tp>> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class enable_shared_from_this 29724: { 29724: protected: 29724: constexpr enable_shared_from_this() noexcept { } 29724: 29724: enable_shared_from_this(const enable_shared_from_this&) noexcept { } 29724: 29724: enable_shared_from_this& 29724: operator=(const enable_shared_from_this&) noexcept 29724: { return *this; } 29724: 29724: ~enable_shared_from_this() { } 29724: 29724: public: 29724: shared_ptr<_Tp> 29724: shared_from_this() 29724: { return shared_ptr<_Tp>(this->_M_weak_this); } 29724: 29724: shared_ptr 29724: shared_from_this() const 29724: { return shared_ptr(this->_M_weak_this); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: weak_ptr<_Tp> 29724: weak_from_this() noexcept 29724: { return this->_M_weak_this; } 29724: 29724: weak_ptr 29724: weak_from_this() const noexcept 29724: { return this->_M_weak_this; } 29724: 29724: 29724: 29724: private: 29724: template 29724: void 29724: _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept 29724: { _M_weak_this._M_assign(__p, __n); } 29724: 29724: 29724: friend const enable_shared_from_this* 29724: __enable_shared_from_this_base(const __shared_count<>&, 29724: const enable_shared_from_this* __p) 29724: { return __p; } 29724: 29724: template 29724: friend class __shared_ptr; 29724: 29724: mutable weak_ptr<_Tp> _M_weak_this; 29724: }; 29724: # 986 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: inline shared_ptr<_NonArray<_Tp>> 29724: allocate_shared(const _Alloc& __a, _Args&&... __args) 29724: { 29724: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 1001 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: inline shared_ptr<_NonArray<_Tp>> 29724: make_shared(_Args&&... __args) 29724: { 29724: using _Alloc = allocator; 29724: _Alloc __a; 29724: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 1150 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: struct hash> 29724: : public __hash_base> 29724: { 29724: size_t 29724: operator()(const shared_ptr<_Tp>& __s) const noexcept 29724: { 29724: return std::hash::element_type*>()(__s.get()); 29724: } 29724: }; 29724: 29724: 29724: template 29724: static constexpr bool __is_shared_ptr = false; 29724: template 29724: static constexpr bool __is_shared_ptr> = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __detail::__variant 29724: { 29724: template struct _Never_valueless_alt; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : std::true_type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : std::true_type 29724: { }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 81 "/usr/include/c++/14/memory" 2 3 29724: # 1 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 1 3 29724: # 62 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 74 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: struct _Sp_locker 29724: { 29724: _Sp_locker(const _Sp_locker&) = delete; 29724: _Sp_locker& operator=(const _Sp_locker&) = delete; 29724: 29724: 29724: explicit 29724: _Sp_locker(const void*) noexcept; 29724: _Sp_locker(const void*, const void*) noexcept; 29724: ~_Sp_locker(); 29724: 29724: private: 29724: unsigned char _M_key1; 29724: unsigned char _M_key2; 29724: 29724: 29724: 29724: }; 29724: # 101 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: template 29724: 29724: inline bool 29724: atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>*) 29724: { 29724: 29724: return __gthread_active_p() == 0; 29724: 29724: 29724: 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_is_lock_free(const shared_ptr<_Tp>* __p) 29724: { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } 29724: # 130 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: template 29724: 29724: inline shared_ptr<_Tp> 29724: atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: return *__p; 29724: } 29724: 29724: template 29724: 29724: inline shared_ptr<_Tp> 29724: atomic_load(const shared_ptr<_Tp>* __p) 29724: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 29724: 29724: template 29724: 29724: inline __shared_ptr<_Tp, _Lp> 29724: atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: return *__p; 29724: } 29724: 29724: template 29724: 29724: inline __shared_ptr<_Tp, _Lp> 29724: atomic_load(const __shared_ptr<_Tp, _Lp>* __p) 29724: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 29724: # 170 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: template 29724: 29724: inline void 29724: atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 29724: memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: __p->swap(__r); 29724: } 29724: 29724: template 29724: 29724: inline void 29724: atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 29724: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 29724: 29724: template 29724: 29724: inline void 29724: atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp> __r, 29724: memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: __p->swap(__r); 29724: } 29724: 29724: template 29724: 29724: inline void 29724: atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 29724: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 29724: # 211 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: template 29724: 29724: inline shared_ptr<_Tp> 29724: atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 29724: memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: __p->swap(__r); 29724: return __r; 29724: } 29724: 29724: template 29724: 29724: inline shared_ptr<_Tp> 29724: atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 29724: { 29724: return std::atomic_exchange_explicit(__p, std::move(__r), 29724: memory_order_seq_cst); 29724: } 29724: 29724: template 29724: 29724: inline __shared_ptr<_Tp, _Lp> 29724: atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp> __r, 29724: memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: __p->swap(__r); 29724: return __r; 29724: } 29724: 29724: template 29724: 29724: inline __shared_ptr<_Tp, _Lp> 29724: atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 29724: { 29724: return std::atomic_exchange_explicit(__p, std::move(__r), 29724: memory_order_seq_cst); 29724: } 29724: # 264 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: template 29724: 29724: bool 29724: atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, 29724: shared_ptr<_Tp>* __v, 29724: shared_ptr<_Tp> __w, 29724: memory_order, 29724: memory_order) 29724: { 29724: shared_ptr<_Tp> __x; 29724: _Sp_locker __lock{__p, __v}; 29724: owner_less> __less; 29724: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 29724: { 29724: __x = std::move(*__p); 29724: *__p = std::move(__w); 29724: return true; 29724: } 29724: __x = std::move(*__v); 29724: *__v = *__p; 29724: return false; 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 29724: shared_ptr<_Tp> __w) 29724: { 29724: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29724: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, 29724: shared_ptr<_Tp>* __v, 29724: shared_ptr<_Tp> __w, 29724: memory_order __success, 29724: memory_order __failure) 29724: { 29724: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29724: std::move(__w), __success, __failure); 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 29724: shared_ptr<_Tp> __w) 29724: { 29724: return std::atomic_compare_exchange_weak_explicit(__p, __v, 29724: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29724: } 29724: 29724: template 29724: 29724: bool 29724: atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp>* __v, 29724: __shared_ptr<_Tp, _Lp> __w, 29724: memory_order, 29724: memory_order) 29724: { 29724: __shared_ptr<_Tp, _Lp> __x; 29724: _Sp_locker __lock{__p, __v}; 29724: owner_less<__shared_ptr<_Tp, _Lp>> __less; 29724: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 29724: { 29724: __x = std::move(*__p); 29724: *__p = std::move(__w); 29724: return true; 29724: } 29724: __x = std::move(*__v); 29724: *__v = *__p; 29724: return false; 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp>* __v, 29724: __shared_ptr<_Tp, _Lp> __w) 29724: { 29724: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29724: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp>* __v, 29724: __shared_ptr<_Tp, _Lp> __w, 29724: memory_order __success, 29724: memory_order __failure) 29724: { 29724: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29724: std::move(__w), __success, __failure); 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp>* __v, 29724: __shared_ptr<_Tp, _Lp> __w) 29724: { 29724: return std::atomic_compare_exchange_weak_explicit(__p, __v, 29724: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29724: } 29724: # 867 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: 29724: } 29724: # 82 "/usr/include/c++/14/memory" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/backward/auto_ptr.h" 1 3 29724: # 36 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 47 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: template 29724: struct auto_ptr_ref 29724: { 29724: _Tp1* _M_ptr; 29724: 29724: explicit 29724: auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } 29724: } __attribute__ ((__deprecated__)); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: # 92 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: template 29724: class auto_ptr 29724: { 29724: private: 29724: _Tp* _M_ptr; 29724: 29724: public: 29724: 29724: typedef _Tp element_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } 29724: # 118 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } 29724: # 130 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: template 29724: auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } 29724: # 141 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: auto_ptr& 29724: operator=(auto_ptr& __a) throw() 29724: { 29724: reset(__a.release()); 29724: return *this; 29724: } 29724: # 158 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: template 29724: auto_ptr& 29724: operator=(auto_ptr<_Tp1>& __a) throw() 29724: { 29724: reset(__a.release()); 29724: return *this; 29724: } 29724: # 176 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: ~auto_ptr() { delete _M_ptr; } 29724: # 186 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: element_type& 29724: operator*() const throw() 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) std::__glibcxx_assert_fail(); } while (false); 29724: return *_M_ptr; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: element_type* 29724: operator->() const throw() 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_ptr; 29724: } 29724: # 216 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: element_type* 29724: get() const throw() { return _M_ptr; } 29724: # 230 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: element_type* 29724: release() throw() 29724: { 29724: element_type* __tmp = _M_ptr; 29724: _M_ptr = 0; 29724: return __tmp; 29724: } 29724: # 245 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: void 29724: reset(element_type* __p = 0) throw() 29724: { 29724: if (__p != _M_ptr) 29724: { 29724: delete _M_ptr; 29724: _M_ptr = __p; 29724: } 29724: } 29724: # 270 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: auto_ptr(auto_ptr_ref __ref) throw() 29724: : _M_ptr(__ref._M_ptr) { } 29724: 29724: auto_ptr& 29724: operator=(auto_ptr_ref __ref) throw() 29724: { 29724: if (__ref._M_ptr != this->get()) 29724: { 29724: delete _M_ptr; 29724: _M_ptr = __ref._M_ptr; 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: operator auto_ptr_ref<_Tp1>() throw() 29724: { return auto_ptr_ref<_Tp1>(this->release()); } 29724: 29724: template 29724: operator auto_ptr<_Tp1>() throw() 29724: { return auto_ptr<_Tp1>(this->release()); } 29724: } __attribute__ ((__deprecated__ ("use '" "std::unique_ptr" "' instead"))); 29724: 29724: 29724: 29724: template<> 29724: class auto_ptr 29724: { 29724: public: 29724: typedef void element_type; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: 29724: template<_Lock_policy _Lp> 29724: template 29724: inline 29724: __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) 29724: : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) 29724: { __r.release(); } 29724: 29724: template 29724: template 29724: inline 29724: __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) 29724: : _M_ptr(__r.get()), _M_refcount() 29724: { 29724: 29724: static_assert( sizeof(_Tp1) > 0, "incomplete type" ); 29724: _Tp1* __tmp = __r.get(); 29724: _M_refcount = __shared_count<_Lp>(std::move(__r)); 29724: _M_enable_shared_from_this_with(__tmp); 29724: } 29724: 29724: template 29724: template 29724: inline 29724: shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) 29724: : __shared_ptr<_Tp>(std::move(__r)) { } 29724: 29724: 29724: template 29724: template 29724: inline 29724: unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept 29724: : _M_t(__u.release(), deleter_type()) { } 29724: 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: } 29724: # 87 "/usr/include/c++/14/memory" 2 3 29724: # 115 "/usr/include/c++/14/memory" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 116 "/usr/include/c++/14/memory" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 136 "/usr/include/c++/14/memory" 3 29724: enum class pointer_safety { relaxed, preferred, strict }; 29724: 29724: 29724: inline void 29724: declare_reachable(void*) { } 29724: 29724: 29724: template 29724: inline _Tp* 29724: undeclare_reachable(_Tp* __p) { return __p; } 29724: 29724: 29724: inline void 29724: declare_no_pointers(char*, size_t) { } 29724: 29724: 29724: inline void 29724: undeclare_no_pointers(char*, size_t) { } 29724: 29724: 29724: inline pointer_safety 29724: get_pointer_safety() noexcept { return pointer_safety::relaxed; } 29724: 29724: 29724: 29724: } 29724: # 171 "/usr/include/c++/14/memory" 3 29724: # 1 "/usr/include/c++/14/pstl/glue_memory_defs.h" 1 3 29724: # 13 "/usr/include/c++/14/pstl/glue_memory_defs.h" 3 29724: # 1 "/usr/include/c++/14/pstl/execution_defs.h" 1 3 29724: # 15 "/usr/include/c++/14/pstl/execution_defs.h" 3 29724: namespace __pstl 29724: { 29724: namespace execution 29724: { 29724: inline namespace v1 29724: { 29724: 29724: 29724: class sequenced_policy 29724: { 29724: }; 29724: 29724: 29724: class parallel_policy 29724: { 29724: }; 29724: 29724: 29724: class parallel_unsequenced_policy 29724: { 29724: }; 29724: 29724: class unsequenced_policy 29724: { 29724: }; 29724: 29724: 29724: inline constexpr sequenced_policy seq{}; 29724: inline constexpr parallel_policy par{}; 29724: inline constexpr parallel_unsequenced_policy par_unseq{}; 29724: inline constexpr unsequenced_policy unseq{}; 29724: 29724: 29724: template 29724: struct is_execution_policy : std::false_type 29724: { 29724: }; 29724: 29724: template <> 29724: struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type 29724: { 29724: }; 29724: template <> 29724: struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type 29724: { 29724: }; 29724: template <> 29724: struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type 29724: { 29724: }; 29724: template <> 29724: struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type 29724: { 29724: }; 29724: 29724: 29724: template 29724: constexpr bool is_execution_policy_v = __pstl::execution::is_execution_policy<_Tp>::value; 29724: 29724: 29724: } 29724: } 29724: 29724: namespace __internal 29724: { 29724: template 29724: 29724: using __enable_if_execution_policy = 29724: typename std::enable_if<__pstl::execution::is_execution_policy>::value, 29724: _Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __serial_tag; 29724: template 29724: struct __parallel_tag; 29724: 29724: } 29724: 29724: } 29724: # 14 "/usr/include/c++/14/pstl/glue_memory_defs.h" 2 3 29724: 29724: namespace std 29724: { 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: uninitialized_fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, const _Tp& __value); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: destroy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: destroy_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: uninitialized_default_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_default_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: uninitialized_value_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29724: 29724: } 29724: # 172 "/usr/include/c++/14/memory" 2 3 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/usr/include/c++/14/string" 1 3 29724: # 36 "/usr/include/c++/14/string" 3 29724: 29724: # 37 "/usr/include/c++/14/string" 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/char_traits.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/char_traits.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/char_traits.h" 3 29724: # 46 "/usr/include/c++/14/bits/char_traits.h" 3 29724: # 1 "/usr/include/c++/14/cwchar" 1 3 29724: # 39 "/usr/include/c++/14/cwchar" 3 29724: 29724: # 40 "/usr/include/c++/14/cwchar" 3 29724: # 47 "/usr/include/c++/14/bits/char_traits.h" 2 3 29724: # 64 "/usr/include/c++/14/bits/char_traits.h" 3 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: # 68 "/usr/include/c++/14/bits/char_traits.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wstringop-overflow" 29724: #pragma GCC diagnostic ignored "-Wstringop-overread" 29724: #pragma GCC diagnostic ignored "-Warray-bounds" 29724: # 83 "/usr/include/c++/14/bits/char_traits.h" 3 29724: template 29724: struct _Char_types 29724: { 29724: typedef unsigned long int_type; 29724: 29724: typedef std::streampos pos_type; 29724: typedef std::streamoff off_type; 29724: typedef std::mbstate_t state_type; 29724: 29724: }; 29724: # 110 "/usr/include/c++/14/bits/char_traits.h" 3 29724: template 29724: struct char_traits 29724: { 29724: typedef _CharT char_type; 29724: typedef typename _Char_types<_CharT>::int_type int_type; 29724: 29724: typedef typename _Char_types<_CharT>::pos_type pos_type; 29724: typedef typename _Char_types<_CharT>::off_type off_type; 29724: typedef typename _Char_types<_CharT>::state_type state_type; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr void 29724: assign(char_type& __c1, const char_type& __c2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: __c1 = __c2; 29724: } 29724: 29724: static constexpr bool 29724: eq(const char_type& __c1, const char_type& __c2) 29724: { return __c1 == __c2; } 29724: 29724: static constexpr bool 29724: lt(const char_type& __c1, const char_type& __c2) 29724: { return __c1 < __c2; } 29724: 29724: static constexpr int 29724: compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 29724: 29724: static constexpr std::size_t 29724: length(const char_type* __s); 29724: 29724: static constexpr const char_type* 29724: find(const char_type* __s, std::size_t __n, const char_type& __a); 29724: 29724: static char_type* 29724: move(char_type* __s1, const char_type* __s2, std::size_t __n); 29724: 29724: static char_type* 29724: copy(char_type* __s1, const char_type* __s2, std::size_t __n); 29724: 29724: static char_type* 29724: assign(char_type* __s, std::size_t __n, char_type __a); 29724: 29724: static constexpr char_type 29724: to_char_type(const int_type& __c) 29724: { return static_cast(__c); } 29724: 29724: static constexpr int_type 29724: to_int_type(const char_type& __c) 29724: { return static_cast(__c); } 29724: 29724: static constexpr bool 29724: eq_int_type(const int_type& __c1, const int_type& __c2) 29724: { return __c1 == __c2; } 29724: 29724: 29724: static constexpr int_type 29724: eof() 29724: { return static_cast(-1); } 29724: 29724: static constexpr int_type 29724: not_eof(const int_type& __c) 29724: { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } 29724: 29724: }; 29724: 29724: template 29724: constexpr int 29724: char_traits<_CharT>:: 29724: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) 29724: { 29724: for (std::size_t __i = 0; __i < __n; ++__i) 29724: if (lt(__s1[__i], __s2[__i])) 29724: return -1; 29724: else if (lt(__s2[__i], __s1[__i])) 29724: return 1; 29724: return 0; 29724: } 29724: 29724: template 29724: constexpr std::size_t 29724: char_traits<_CharT>:: 29724: length(const char_type* __p) 29724: { 29724: std::size_t __i = 0; 29724: while (!eq(__p[__i], char_type())) 29724: ++__i; 29724: return __i; 29724: } 29724: 29724: template 29724: constexpr const typename char_traits<_CharT>::char_type* 29724: char_traits<_CharT>:: 29724: find(const char_type* __s, std::size_t __n, const char_type& __a) 29724: { 29724: for (std::size_t __i = 0; __i < __n; ++__i) 29724: if (eq(__s[__i], __a)) 29724: return __s + __i; 29724: return 0; 29724: } 29724: 29724: template 29724: 29724: typename char_traits<_CharT>::char_type* 29724: char_traits<_CharT>:: 29724: move(char_type* __s1, const char_type* __s2, std::size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: # 246 "/usr/include/c++/14/bits/char_traits.h" 3 29724: __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); 29724: return __s1; 29724: } 29724: 29724: template 29724: 29724: typename char_traits<_CharT>::char_type* 29724: char_traits<_CharT>:: 29724: copy(char_type* __s1, const char_type* __s2, std::size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: # 266 "/usr/include/c++/14/bits/char_traits.h" 3 29724: __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); 29724: return __s1; 29724: } 29724: 29724: template 29724: 29724: typename char_traits<_CharT>::char_type* 29724: char_traits<_CharT>:: 29724: assign(char_type* __s, std::size_t __n, char_type __a) 29724: { 29724: # 285 "/usr/include/c++/14/bits/char_traits.h" 3 29724: if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) 29724: { 29724: if (__n) 29724: { 29724: unsigned char __c; 29724: __builtin_memcpy(&__c, __builtin_addressof(__a), 1); 29724: __builtin_memset(__s, __c, __n); 29724: } 29724: } 29724: else 29724: { 29724: for (std::size_t __i = 0; __i < __n; ++__i) 29724: __s[__i] = __a; 29724: } 29724: return __s; 29724: } 29724: 29724: 29724: } 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 322 "/usr/include/c++/14/bits/char_traits.h" 3 29724: template 29724: struct char_traits : public __gnu_cxx::char_traits<_CharT> 29724: { }; 29724: 29724: 29724: 29724: template<> 29724: struct char_traits 29724: { 29724: typedef char char_type; 29724: typedef int int_type; 29724: 29724: typedef streampos pos_type; 29724: typedef streamoff off_type; 29724: typedef mbstate_t state_type; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr void 29724: assign(char_type& __c1, const char_type& __c2) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: __c1 = __c2; 29724: } 29724: 29724: static constexpr bool 29724: eq(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: static constexpr bool 29724: lt(const char_type& __c1, const char_type& __c2) noexcept 29724: { 29724: 29724: return (static_cast(__c1) 29724: < static_cast(__c2)); 29724: } 29724: 29724: static constexpr int 29724: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return 0; 29724: 29724: if (std::__is_constant_evaluated()) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: if (lt(__s1[__i], __s2[__i])) 29724: return -1; 29724: else if (lt(__s2[__i], __s1[__i])) 29724: return 1; 29724: return 0; 29724: } 29724: 29724: return __builtin_memcmp(__s1, __s2, __n); 29724: } 29724: 29724: static constexpr size_t 29724: length(const char_type* __s) 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __gnu_cxx::char_traits::length(__s); 29724: 29724: return __builtin_strlen(__s); 29724: } 29724: 29724: static constexpr const char_type* 29724: find(const char_type* __s, size_t __n, const char_type& __a) 29724: { 29724: if (__n == 0) 29724: return 0; 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __gnu_cxx::char_traits::find(__s, __n, __a); 29724: 29724: return static_cast(__builtin_memchr(__s, __a, __n)); 29724: } 29724: 29724: static char_type* 29724: move(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return static_cast(__builtin_memmove(__s1, __s2, __n)); 29724: } 29724: 29724: static char_type* 29724: copy(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return static_cast(__builtin_memcpy(__s1, __s2, __n)); 29724: } 29724: 29724: static char_type* 29724: assign(char_type* __s, size_t __n, char_type __a) 29724: { 29724: if (__n == 0) 29724: return __s; 29724: 29724: 29724: 29724: 29724: return static_cast(__builtin_memset(__s, __a, __n)); 29724: } 29724: 29724: static constexpr char_type 29724: to_char_type(const int_type& __c) noexcept 29724: { return static_cast(__c); } 29724: 29724: 29724: 29724: static constexpr int_type 29724: to_int_type(const char_type& __c) noexcept 29724: { return static_cast(static_cast(__c)); } 29724: 29724: static constexpr bool 29724: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: 29724: static constexpr int_type 29724: eof() noexcept 29724: { return static_cast(-1); } 29724: 29724: static constexpr int_type 29724: not_eof(const int_type& __c) noexcept 29724: { return (__c == eof()) ? 0 : __c; } 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: template<> 29724: struct char_traits 29724: { 29724: typedef wchar_t char_type; 29724: typedef wint_t int_type; 29724: 29724: typedef streamoff off_type; 29724: typedef wstreampos pos_type; 29724: typedef mbstate_t state_type; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr void 29724: assign(char_type& __c1, const char_type& __c2) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: __c1 = __c2; 29724: } 29724: 29724: static constexpr bool 29724: eq(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: static constexpr bool 29724: lt(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 < __c2; } 29724: 29724: static constexpr int 29724: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return 0; 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __gnu_cxx::char_traits::compare(__s1, __s2, __n); 29724: 29724: return wmemcmp(__s1, __s2, __n); 29724: } 29724: 29724: static constexpr size_t 29724: length(const char_type* __s) 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __gnu_cxx::char_traits::length(__s); 29724: 29724: return wcslen(__s); 29724: } 29724: 29724: static constexpr const char_type* 29724: find(const char_type* __s, size_t __n, const char_type& __a) 29724: { 29724: if (__n == 0) 29724: return 0; 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __gnu_cxx::char_traits::find(__s, __n, __a); 29724: 29724: return wmemchr(__s, __a, __n); 29724: } 29724: 29724: static char_type* 29724: move(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return wmemmove(__s1, __s2, __n); 29724: } 29724: 29724: static char_type* 29724: copy(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return wmemcpy(__s1, __s2, __n); 29724: } 29724: 29724: static char_type* 29724: assign(char_type* __s, size_t __n, char_type __a) 29724: { 29724: if (__n == 0) 29724: return __s; 29724: 29724: 29724: 29724: 29724: return wmemset(__s, __a, __n); 29724: } 29724: 29724: static constexpr char_type 29724: to_char_type(const int_type& __c) noexcept 29724: { return char_type(__c); } 29724: 29724: static constexpr int_type 29724: to_int_type(const char_type& __c) noexcept 29724: { return int_type(__c); } 29724: 29724: static constexpr bool 29724: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: 29724: static constexpr int_type 29724: eof() noexcept 29724: { return static_cast((0xffffffffu)); } 29724: 29724: static constexpr int_type 29724: not_eof(const int_type& __c) noexcept 29724: { return eq_int_type(__c, eof()) ? 0 : __c; } 29724: 29724: }; 29724: # 732 "/usr/include/c++/14/bits/char_traits.h" 3 29724: 29724: } 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template<> 29724: struct char_traits 29724: { 29724: typedef char16_t char_type; 29724: 29724: typedef short unsigned int int_type; 29724: 29724: 29724: 29724: 29724: typedef streamoff off_type; 29724: typedef u16streampos pos_type; 29724: typedef mbstate_t state_type; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr void 29724: assign(char_type& __c1, const char_type& __c2) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: __c1 = __c2; 29724: } 29724: 29724: static constexpr bool 29724: eq(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: static constexpr bool 29724: lt(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 < __c2; } 29724: 29724: static constexpr int 29724: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: if (lt(__s1[__i], __s2[__i])) 29724: return -1; 29724: else if (lt(__s2[__i], __s1[__i])) 29724: return 1; 29724: return 0; 29724: } 29724: 29724: static constexpr size_t 29724: length(const char_type* __s) 29724: { 29724: size_t __i = 0; 29724: while (!eq(__s[__i], char_type())) 29724: ++__i; 29724: return __i; 29724: } 29724: 29724: static constexpr const char_type* 29724: find(const char_type* __s, size_t __n, const char_type& __a) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: if (eq(__s[__i], __a)) 29724: return __s + __i; 29724: return 0; 29724: } 29724: 29724: static char_type* 29724: move(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return (static_cast 29724: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 29724: } 29724: 29724: static char_type* 29724: copy(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return (static_cast 29724: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 29724: } 29724: 29724: static char_type* 29724: assign(char_type* __s, size_t __n, char_type __a) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: assign(__s[__i], __a); 29724: return __s; 29724: } 29724: 29724: static constexpr char_type 29724: to_char_type(const int_type& __c) noexcept 29724: { return char_type(__c); } 29724: 29724: static constexpr bool 29724: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: 29724: static constexpr int_type 29724: to_int_type(const char_type& __c) noexcept 29724: { return __c == eof() ? int_type(0xfffd) : int_type(__c); } 29724: 29724: static constexpr int_type 29724: eof() noexcept 29724: { return static_cast(-1); } 29724: 29724: static constexpr int_type 29724: not_eof(const int_type& __c) noexcept 29724: { return eq_int_type(__c, eof()) ? 0 : __c; } 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: template<> 29724: struct char_traits 29724: { 29724: typedef char32_t char_type; 29724: 29724: typedef unsigned int int_type; 29724: 29724: 29724: 29724: 29724: typedef streamoff off_type; 29724: typedef u32streampos pos_type; 29724: typedef mbstate_t state_type; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr void 29724: assign(char_type& __c1, const char_type& __c2) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: __c1 = __c2; 29724: } 29724: 29724: static constexpr bool 29724: eq(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: static constexpr bool 29724: lt(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 < __c2; } 29724: 29724: static constexpr int 29724: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: if (lt(__s1[__i], __s2[__i])) 29724: return -1; 29724: else if (lt(__s2[__i], __s1[__i])) 29724: return 1; 29724: return 0; 29724: } 29724: 29724: static constexpr size_t 29724: length(const char_type* __s) 29724: { 29724: size_t __i = 0; 29724: while (!eq(__s[__i], char_type())) 29724: ++__i; 29724: return __i; 29724: } 29724: 29724: static constexpr const char_type* 29724: find(const char_type* __s, size_t __n, const char_type& __a) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: if (eq(__s[__i], __a)) 29724: return __s + __i; 29724: return 0; 29724: } 29724: 29724: static char_type* 29724: move(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return (static_cast 29724: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 29724: } 29724: 29724: static char_type* 29724: copy(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return (static_cast 29724: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 29724: } 29724: 29724: static char_type* 29724: assign(char_type* __s, size_t __n, char_type __a) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: assign(__s[__i], __a); 29724: return __s; 29724: } 29724: 29724: static constexpr char_type 29724: to_char_type(const int_type& __c) noexcept 29724: { return char_type(__c); } 29724: 29724: static constexpr int_type 29724: to_int_type(const char_type& __c) noexcept 29724: { return int_type(__c); } 29724: 29724: static constexpr bool 29724: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: 29724: static constexpr int_type 29724: eof() noexcept 29724: { return static_cast(-1); } 29724: 29724: static constexpr int_type 29724: not_eof(const int_type& __c) noexcept 29724: { return eq_int_type(__c, eof()) ? 0 : __c; } 29724: 29724: }; 29724: # 1010 "/usr/include/c++/14/bits/char_traits.h" 3 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: } 29724: # 43 "/usr/include/c++/14/string" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/localefwd.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/localefwd.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/localefwd.h" 3 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 1 3 29724: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29724: 29724: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29724: 29724: # 1 "/usr/include/c++/14/clocale" 1 3 29724: # 39 "/usr/include/c++/14/clocale" 3 29724: 29724: # 40 "/usr/include/c++/14/clocale" 3 29724: 29724: 29724: # 1 "/usr/include/locale.h" 1 3 4 29724: # 28 "/usr/include/locale.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 29 "/usr/include/locale.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/locale.h" 1 3 4 29724: # 30 "/usr/include/locale.h" 2 3 4 29724: 29724: extern "C" { 29724: # 51 "/usr/include/locale.h" 3 4 29724: struct lconv 29724: { 29724: 29724: 29724: char *decimal_point; 29724: char *thousands_sep; 29724: 29724: 29724: 29724: 29724: 29724: char *grouping; 29724: 29724: 29724: 29724: 29724: 29724: char *int_curr_symbol; 29724: char *currency_symbol; 29724: char *mon_decimal_point; 29724: char *mon_thousands_sep; 29724: char *mon_grouping; 29724: char *positive_sign; 29724: char *negative_sign; 29724: char int_frac_digits; 29724: char frac_digits; 29724: 29724: char p_cs_precedes; 29724: 29724: char p_sep_by_space; 29724: 29724: char n_cs_precedes; 29724: 29724: char n_sep_by_space; 29724: 29724: 29724: 29724: 29724: 29724: 29724: char p_sign_posn; 29724: char n_sign_posn; 29724: 29724: 29724: char int_p_cs_precedes; 29724: 29724: char int_p_sep_by_space; 29724: 29724: char int_n_cs_precedes; 29724: 29724: char int_n_sep_by_space; 29724: 29724: 29724: 29724: 29724: 29724: 29724: char int_p_sign_posn; 29724: char int_n_sign_posn; 29724: # 118 "/usr/include/locale.h" 3 4 29724: }; 29724: 29724: 29724: 29724: extern char *setlocale (int __category, const char *__locale) noexcept (true); 29724: 29724: 29724: extern struct lconv *localeconv (void) noexcept (true); 29724: # 141 "/usr/include/locale.h" 3 4 29724: extern locale_t newlocale (int __category_mask, const char *__locale, 29724: locale_t __base) noexcept (true); 29724: # 176 "/usr/include/locale.h" 3 4 29724: extern locale_t duplocale (locale_t __dataset) noexcept (true); 29724: 29724: 29724: 29724: extern void freelocale (locale_t __dataset) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern locale_t uselocale (locale_t __dataset) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 43 "/usr/include/c++/14/clocale" 2 3 29724: # 51 "/usr/include/c++/14/clocale" 3 29724: namespace std 29724: { 29724: using ::lconv; 29724: using ::setlocale; 29724: using ::localeconv; 29724: } 29724: # 42 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: extern "C" __typeof(uselocale) __uselocale; 29724: 29724: 29724: } 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: typedef __locale_t __c_locale; 29724: # 73 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29724: inline int 29724: __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), 29724: char* __out, 29724: const int __size __attribute__ ((__unused__)), 29724: const char* __fmt, ...) 29724: { 29724: 29724: __c_locale __old = __gnu_cxx::__uselocale(__cloc); 29724: # 93 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29724: __builtin_va_list __args; 29724: __builtin_va_start(__args, __fmt); 29724: 29724: 29724: const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); 29724: 29724: 29724: 29724: 29724: __builtin_va_end(__args); 29724: 29724: 29724: __gnu_cxx::__uselocale(__old); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: return __ret; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 41 "/usr/include/c++/14/bits/localefwd.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/cctype" 1 3 29724: # 39 "/usr/include/c++/14/cctype" 3 29724: 29724: # 40 "/usr/include/c++/14/cctype" 3 29724: 29724: 29724: # 1 "/usr/include/ctype.h" 1 3 4 29724: # 28 "/usr/include/ctype.h" 3 4 29724: extern "C" { 29724: # 46 "/usr/include/ctype.h" 3 4 29724: enum 29724: { 29724: _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), 29724: _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), 29724: _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), 29724: _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), 29724: _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), 29724: _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), 29724: _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), 29724: _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), 29724: _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), 29724: _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), 29724: _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), 29724: _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) 29724: }; 29724: # 79 "/usr/include/ctype.h" 3 4 29724: extern const unsigned short int **__ctype_b_loc (void) 29724: noexcept (true) __attribute__ ((__const__)); 29724: extern const __int32_t **__ctype_tolower_loc (void) 29724: noexcept (true) __attribute__ ((__const__)); 29724: extern const __int32_t **__ctype_toupper_loc (void) 29724: noexcept (true) __attribute__ ((__const__)); 29724: # 108 "/usr/include/ctype.h" 3 4 29724: extern int isalnum (int) noexcept (true); 29724: extern int isalpha (int) noexcept (true); 29724: extern int iscntrl (int) noexcept (true); 29724: extern int isdigit (int) noexcept (true); 29724: extern int islower (int) noexcept (true); 29724: extern int isgraph (int) noexcept (true); 29724: extern int isprint (int) noexcept (true); 29724: extern int ispunct (int) noexcept (true); 29724: extern int isspace (int) noexcept (true); 29724: extern int isupper (int) noexcept (true); 29724: extern int isxdigit (int) noexcept (true); 29724: 29724: 29724: 29724: extern int tolower (int __c) noexcept (true); 29724: 29724: 29724: extern int toupper (int __c) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int isblank (int) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int isctype (int __c, int __mask) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int isascii (int __c) noexcept (true); 29724: 29724: 29724: 29724: extern int toascii (int __c) noexcept (true); 29724: 29724: 29724: 29724: extern int _toupper (int) noexcept (true); 29724: extern int _tolower (int) noexcept (true); 29724: # 251 "/usr/include/ctype.h" 3 4 29724: extern int isalnum_l (int, locale_t) noexcept (true); 29724: extern int isalpha_l (int, locale_t) noexcept (true); 29724: extern int iscntrl_l (int, locale_t) noexcept (true); 29724: extern int isdigit_l (int, locale_t) noexcept (true); 29724: extern int islower_l (int, locale_t) noexcept (true); 29724: extern int isgraph_l (int, locale_t) noexcept (true); 29724: extern int isprint_l (int, locale_t) noexcept (true); 29724: extern int ispunct_l (int, locale_t) noexcept (true); 29724: extern int isspace_l (int, locale_t) noexcept (true); 29724: extern int isupper_l (int, locale_t) noexcept (true); 29724: extern int isxdigit_l (int, locale_t) noexcept (true); 29724: 29724: extern int isblank_l (int, locale_t) noexcept (true); 29724: 29724: 29724: 29724: extern int __tolower_l (int __c, locale_t __l) noexcept (true); 29724: extern int tolower_l (int __c, locale_t __l) noexcept (true); 29724: 29724: 29724: extern int __toupper_l (int __c, locale_t __l) noexcept (true); 29724: extern int toupper_l (int __c, locale_t __l) noexcept (true); 29724: # 327 "/usr/include/ctype.h" 3 4 29724: } 29724: # 43 "/usr/include/c++/14/cctype" 2 3 29724: # 62 "/usr/include/c++/14/cctype" 3 29724: namespace std 29724: { 29724: using ::isalnum; 29724: using ::isalpha; 29724: using ::iscntrl; 29724: using ::isdigit; 29724: using ::isgraph; 29724: using ::islower; 29724: using ::isprint; 29724: using ::ispunct; 29724: using ::isspace; 29724: using ::isupper; 29724: using ::isxdigit; 29724: using ::tolower; 29724: using ::toupper; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std 29724: { 29724: using ::isblank; 29724: } 29724: # 43 "/usr/include/c++/14/bits/localefwd.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 55 "/usr/include/c++/14/bits/localefwd.h" 3 29724: class locale; 29724: 29724: template 29724: bool 29724: has_facet(const locale&) throw(); 29724: 29724: template 29724: const _Facet& 29724: use_facet(const locale&); 29724: 29724: 29724: template 29724: bool 29724: isspace(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isprint(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: iscntrl(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isupper(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: islower(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isalpha(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isdigit(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: ispunct(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isxdigit(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isalnum(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isgraph(_CharT, const locale&); 29724: 29724: 29724: template 29724: bool 29724: isblank(_CharT, const locale&); 29724: 29724: 29724: template 29724: _CharT 29724: toupper(_CharT, const locale&); 29724: 29724: template 29724: _CharT 29724: tolower(_CharT, const locale&); 29724: 29724: 29724: struct ctype_base; 29724: template 29724: class ctype; 29724: template<> class ctype; 29724: 29724: template<> class ctype; 29724: 29724: template 29724: class ctype_byname; 29724: 29724: 29724: class codecvt_base; 29724: template 29724: class codecvt; 29724: template<> class codecvt; 29724: 29724: template<> class codecvt; 29724: 29724: 29724: template<> class codecvt; 29724: template<> class codecvt; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class codecvt_byname; 29724: 29724: 29724: 29724: template > 29724: class num_get; 29724: template > 29724: class num_put; 29724: 29724: namespace __cxx11 { 29724: template class numpunct; 29724: template class numpunct_byname; 29724: } 29724: 29724: namespace __cxx11 { 29724: 29724: template 29724: class collate; 29724: template 29724: class collate_byname; 29724: } 29724: 29724: 29724: class time_base; 29724: namespace __cxx11 { 29724: template > 29724: class time_get; 29724: template > 29724: class time_get_byname; 29724: } 29724: template > 29724: class time_put; 29724: template > 29724: class time_put_byname; 29724: 29724: 29724: class money_base; 29724: namespace __cxx11 { 29724: template > 29724: class money_get; 29724: template > 29724: class money_put; 29724: } 29724: namespace __cxx11 { 29724: template 29724: class moneypunct; 29724: template 29724: class moneypunct_byname; 29724: } 29724: 29724: 29724: struct messages_base; 29724: namespace __cxx11 { 29724: template 29724: class messages; 29724: template 29724: class messages_byname; 29724: } 29724: 29724: 29724: } 29724: # 46 "/usr/include/c++/14/string" 2 3 29724: # 1 "/usr/include/c++/14/bits/ostream_insert.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/ostream_insert.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/ostream_insert.h" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/cxxabi_forced.h" 1 3 29724: # 34 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 29724: 29724: # 35 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 29724: 29724: #pragma GCC visibility push(default) 29724: 29724: 29724: namespace __cxxabiv1 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class __forced_unwind 29724: { 29724: virtual ~__forced_unwind() throw(); 29724: 29724: 29724: virtual void __pure_dummy() = 0; 29724: }; 29724: } 29724: 29724: 29724: #pragma GCC visibility pop 29724: # 37 "/usr/include/c++/14/bits/ostream_insert.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: __ostream_write(basic_ostream<_CharT, _Traits>& __out, 29724: const _CharT* __s, streamsize __n) 29724: { 29724: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29724: typedef typename __ostream_type::ios_base __ios_base; 29724: 29724: const streamsize __put = __out.rdbuf()->sputn(__s, __n); 29724: if (__put != __n) 29724: __out.setstate(__ios_base::badbit); 29724: } 29724: 29724: template 29724: inline void 29724: __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) 29724: { 29724: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29724: typedef typename __ostream_type::ios_base __ios_base; 29724: 29724: const _CharT __c = __out.fill(); 29724: for (; __n > 0; --__n) 29724: { 29724: const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); 29724: if (_Traits::eq_int_type(__put, _Traits::eof())) 29724: { 29724: __out.setstate(__ios_base::badbit); 29724: break; 29724: } 29724: } 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: __ostream_insert(basic_ostream<_CharT, _Traits>& __out, 29724: const _CharT* __s, streamsize __n) 29724: { 29724: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29724: typedef typename __ostream_type::ios_base __ios_base; 29724: 29724: typename __ostream_type::sentry __cerb(__out); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: const streamsize __w = __out.width(); 29724: if (__w > __n) 29724: { 29724: const bool __left = ((__out.flags() 29724: & __ios_base::adjustfield) 29724: == __ios_base::left); 29724: if (!__left) 29724: __ostream_fill(__out, __w - __n); 29724: if (__out.good()) 29724: __ostream_write(__out, __s, __n); 29724: if (__left && __out.good()) 29724: __ostream_fill(__out, __w - __n); 29724: } 29724: else 29724: __ostream_write(__out, __s, __n); 29724: __out.width(0); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __out._M_setstate(__ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { __out._M_setstate(__ios_base::badbit); } 29724: } 29724: return __out; 29724: } 29724: 29724: 29724: 29724: 29724: extern template ostream& __ostream_insert(ostream&, const char*, streamsize); 29724: 29724: 29724: extern template wostream& __ostream_insert(wostream&, const wchar_t*, 29724: streamsize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 47 "/usr/include/c++/14/string" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/basic_string.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/basic_string.h" 3 29724: # 47 "/usr/include/c++/14/bits/basic_string.h" 3 29724: # 1 "/usr/include/c++/14/string_view" 1 3 29724: # 36 "/usr/include/c++/14/string_view" 3 29724: 29724: # 37 "/usr/include/c++/14/string_view" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 45 "/usr/include/c++/14/string_view" 2 3 29724: # 64 "/usr/include/c++/14/string_view" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: constexpr size_t 29724: __sv_check(size_t __size, size_t __pos, const char* __s) 29724: { 29724: if (__pos > __size) 29724: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") 29724: , __s, __pos, __size); 29724: return __pos; 29724: } 29724: 29724: 29724: 29724: constexpr size_t 29724: __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept 29724: { 29724: const bool __testoff = __off < __size - __pos; 29724: return __testoff ? __off : __size - __pos; 29724: } 29724: # 105 "/usr/include/c++/14/string_view" 3 29724: template> 29724: class basic_string_view 29724: { 29724: static_assert(!is_array_v<_CharT>); 29724: static_assert(is_trivial_v<_CharT> && is_standard_layout_v<_CharT>); 29724: static_assert(is_same_v<_CharT, typename _Traits::char_type>); 29724: 29724: public: 29724: 29724: 29724: using traits_type = _Traits; 29724: using value_type = _CharT; 29724: using pointer = value_type*; 29724: using const_pointer = const value_type*; 29724: using reference = value_type&; 29724: using const_reference = const value_type&; 29724: using const_iterator = const value_type*; 29724: using iterator = const_iterator; 29724: using const_reverse_iterator = std::reverse_iterator; 29724: using reverse_iterator = const_reverse_iterator; 29724: using size_type = size_t; 29724: using difference_type = ptrdiff_t; 29724: static constexpr size_type npos = size_type(-1); 29724: 29724: 29724: 29724: constexpr 29724: basic_string_view() noexcept 29724: : _M_len{0}, _M_str{nullptr} 29724: { } 29724: 29724: constexpr basic_string_view(const basic_string_view&) noexcept = default; 29724: 29724: [[__gnu__::__nonnull__]] 29724: constexpr 29724: basic_string_view(const _CharT* __str) noexcept 29724: : _M_len{traits_type::length(__str)}, 29724: _M_str{__str} 29724: { } 29724: 29724: constexpr 29724: basic_string_view(const _CharT* __str, size_type __len) noexcept 29724: : _M_len{__len}, _M_str{__str} 29724: { } 29724: # 180 "/usr/include/c++/14/string_view" 3 29724: constexpr basic_string_view& 29724: operator=(const basic_string_view&) noexcept = default; 29724: 29724: 29724: 29724: [[nodiscard]] 29724: constexpr const_iterator 29724: begin() const noexcept 29724: { return this->_M_str; } 29724: 29724: [[nodiscard]] 29724: constexpr const_iterator 29724: end() const noexcept 29724: { return this->_M_str + this->_M_len; } 29724: 29724: [[nodiscard]] 29724: constexpr const_iterator 29724: cbegin() const noexcept 29724: { return this->_M_str; } 29724: 29724: [[nodiscard]] 29724: constexpr const_iterator 29724: cend() const noexcept 29724: { return this->_M_str + this->_M_len; } 29724: 29724: [[nodiscard]] 29724: constexpr const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(this->end()); } 29724: 29724: [[nodiscard]] 29724: constexpr const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(this->begin()); } 29724: 29724: [[nodiscard]] 29724: constexpr const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(this->end()); } 29724: 29724: [[nodiscard]] 29724: constexpr const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(this->begin()); } 29724: 29724: 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: size() const noexcept 29724: { return this->_M_len; } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: length() const noexcept 29724: { return _M_len; } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: max_size() const noexcept 29724: { 29724: return (npos - sizeof(size_type) - sizeof(void*)) 29724: / sizeof(value_type) / 4; 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr bool 29724: empty() const noexcept 29724: { return this->_M_len == 0; } 29724: 29724: 29724: 29724: [[nodiscard]] 29724: constexpr const_reference 29724: operator[](size_type __pos) const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos < this->_M_len)) std::__glibcxx_assert_fail(); } while (false); 29724: return *(this->_M_str + __pos); 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr const_reference 29724: at(size_type __pos) const 29724: { 29724: if (__pos >= _M_len) 29724: __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") 29724: 29724: , __pos, this->size()); 29724: return *(this->_M_str + __pos); 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr const_reference 29724: front() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: return *this->_M_str; 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr const_reference 29724: back() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: return *(this->_M_str + this->_M_len - 1); 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr const_pointer 29724: data() const noexcept 29724: { return this->_M_str; } 29724: 29724: 29724: 29724: constexpr void 29724: remove_prefix(size_type __n) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) std::__glibcxx_assert_fail(); } while (false); 29724: this->_M_str += __n; 29724: this->_M_len -= __n; 29724: } 29724: 29724: constexpr void 29724: remove_suffix(size_type __n) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) std::__glibcxx_assert_fail(); } while (false); 29724: this->_M_len -= __n; 29724: } 29724: 29724: constexpr void 29724: swap(basic_string_view& __sv) noexcept 29724: { 29724: auto __tmp = *this; 29724: *this = __sv; 29724: __sv = __tmp; 29724: } 29724: 29724: 29724: 29724: 29724: size_type 29724: copy(_CharT* __str, size_type __n, size_type __pos = 0) const 29724: { 29724: ; 29724: __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); 29724: const size_type __rlen = std::min(__n, _M_len - __pos); 29724: 29724: 29724: traits_type::copy(__str, data() + __pos, __rlen); 29724: return __rlen; 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr basic_string_view 29724: substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) 29724: { 29724: __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); 29724: const size_type __rlen = std::min(__n, _M_len - __pos); 29724: return basic_string_view{_M_str + __pos, __rlen}; 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr int 29724: compare(basic_string_view __str) const noexcept 29724: { 29724: const size_type __rlen = std::min(this->_M_len, __str._M_len); 29724: int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); 29724: if (__ret == 0) 29724: __ret = _S_compare(this->_M_len, __str._M_len); 29724: return __ret; 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr int 29724: compare(size_type __pos1, size_type __n1, basic_string_view __str) const 29724: { return this->substr(__pos1, __n1).compare(__str); } 29724: 29724: [[nodiscard]] 29724: constexpr int 29724: compare(size_type __pos1, size_type __n1, 29724: basic_string_view __str, size_type __pos2, size_type __n2) const 29724: { 29724: return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); 29724: } 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr int 29724: compare(const _CharT* __str) const noexcept 29724: { return this->compare(basic_string_view{__str}); } 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr int 29724: compare(size_type __pos1, size_type __n1, const _CharT* __str) const 29724: { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } 29724: 29724: [[nodiscard]] 29724: constexpr int 29724: compare(size_type __pos1, size_type __n1, 29724: const _CharT* __str, size_type __n2) const noexcept(false) 29724: { 29724: return this->substr(__pos1, __n1) 29724: .compare(basic_string_view(__str, __n2)); 29724: } 29724: # 445 "/usr/include/c++/14/string_view" 3 29724: [[nodiscard]] 29724: constexpr size_type 29724: find(basic_string_view __str, size_type __pos = 0) const noexcept 29724: { return this->find(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find(_CharT __c, size_type __pos = 0) const noexcept; 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: find(const _CharT* __str, size_type __pos = 0) const noexcept 29724: { return this->find(__str, __pos, traits_type::length(__str)); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: rfind(basic_string_view __str, size_type __pos = npos) const noexcept 29724: { return this->rfind(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: rfind(_CharT __c, size_type __pos = npos) const noexcept; 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: rfind(const _CharT* __str, size_type __pos = npos) const noexcept 29724: { return this->rfind(__str, __pos, traits_type::length(__str)); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept 29724: { return this->find_first_of(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 29724: { return this->find(__c, __pos); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept 29724: { return this->find_first_of(__str, __pos, traits_type::length(__str)); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_of(basic_string_view __str, 29724: size_type __pos = npos) const noexcept 29724: { return this->find_last_of(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_of(_CharT __c, size_type __pos=npos) const noexcept 29724: { return this->rfind(__c, __pos); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept 29724: { return this->find_last_of(__str, __pos, traits_type::length(__str)); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_not_of(basic_string_view __str, 29724: size_type __pos = 0) const noexcept 29724: { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_not_of(const _CharT* __str, 29724: size_type __pos, size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept 29724: { 29724: return this->find_first_not_of(__str, __pos, 29724: traits_type::length(__str)); 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_not_of(basic_string_view __str, 29724: size_type __pos = npos) const noexcept 29724: { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_not_of(const _CharT* __str, 29724: size_type __pos, size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: find_last_not_of(const _CharT* __str, 29724: size_type __pos = npos) const noexcept 29724: { 29724: return this->find_last_not_of(__str, __pos, 29724: traits_type::length(__str)); 29724: } 29724: 29724: private: 29724: 29724: static constexpr int 29724: _S_compare(size_type __n1, size_type __n2) noexcept 29724: { 29724: using __limits = __gnu_cxx::__int_traits; 29724: const difference_type __diff = __n1 - __n2; 29724: if (__diff > __limits::__max) 29724: return __limits::__max; 29724: if (__diff < __limits::__min) 29724: return __limits::__min; 29724: return static_cast(__diff); 29724: } 29724: 29724: size_t _M_len; 29724: const _CharT* _M_str; 29724: }; 29724: # 623 "/usr/include/c++/14/string_view" 3 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator==(basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator==(basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator==(__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator!=(basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator!=(basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator!=(__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator< (basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) < 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator< (basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return __x.compare(__y) < 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator< (__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) < 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator> (basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) > 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator> (basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return __x.compare(__y) > 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator> (__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) > 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator<=(basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) <= 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator<=(basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return __x.compare(__y) <= 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator<=(__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) <= 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator>=(basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) >= 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator>=(basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return __x.compare(__y) >= 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator>=(__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) >= 0; } 29724: 29724: 29724: 29724: 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __os, 29724: basic_string_view<_CharT,_Traits> __str) 29724: { return __ostream_insert(__os, __str.data(), __str.size()); } 29724: 29724: 29724: 29724: 29724: using string_view = basic_string_view; 29724: using wstring_view = basic_string_view; 29724: 29724: 29724: 29724: using u16string_view = basic_string_view; 29724: using u32string_view = basic_string_view; 29724: 29724: 29724: 29724: template 29724: struct hash; 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: [[nodiscard]] 29724: size_t 29724: operator()(const string_view& __str) const noexcept 29724: { return std::_Hash_impl::hash(__str.data(), __str.length()); } 29724: }; 29724: 29724: template<> 29724: struct __is_fast_hash> : std::false_type 29724: { }; 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: [[nodiscard]] 29724: size_t 29724: operator()(const wstring_view& __s) const noexcept 29724: { return std::_Hash_impl::hash(__s.data(), 29724: __s.length() * sizeof(wchar_t)); } 29724: }; 29724: 29724: template<> 29724: struct __is_fast_hash> : std::false_type 29724: { }; 29724: # 825 "/usr/include/c++/14/string_view" 3 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: [[nodiscard]] 29724: size_t 29724: operator()(const u16string_view& __s) const noexcept 29724: { return std::_Hash_impl::hash(__s.data(), 29724: __s.length() * sizeof(char16_t)); } 29724: }; 29724: 29724: template<> 29724: struct __is_fast_hash> : std::false_type 29724: { }; 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: [[nodiscard]] 29724: size_t 29724: operator()(const u32string_view& __s) const noexcept 29724: { return std::_Hash_impl::hash(__s.data(), 29724: __s.length() * sizeof(char32_t)); } 29724: }; 29724: 29724: template<> 29724: struct __is_fast_hash> : std::false_type 29724: { }; 29724: 29724: inline namespace literals 29724: { 29724: inline namespace string_view_literals 29724: { 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29724: inline constexpr basic_string_view 29724: operator""sv(const char* __str, size_t __len) noexcept 29724: { return basic_string_view{__str, __len}; } 29724: 29724: inline constexpr basic_string_view 29724: operator""sv(const wchar_t* __str, size_t __len) noexcept 29724: { return basic_string_view{__str, __len}; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline constexpr basic_string_view 29724: operator""sv(const char16_t* __str, size_t __len) noexcept 29724: { return basic_string_view{__str, __len}; } 29724: 29724: inline constexpr basic_string_view 29724: operator""sv(const char32_t* __str, size_t __len) noexcept 29724: { return basic_string_view{__str, __len}; } 29724: 29724: #pragma GCC diagnostic pop 29724: } 29724: } 29724: # 901 "/usr/include/c++/14/string_view" 3 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/string_view.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/string_view.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/string_view.tcc" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept 29724: { 29724: ; 29724: 29724: if (__n == 0) 29724: return __pos <= _M_len ? __pos : npos; 29724: if (__pos >= _M_len) 29724: return npos; 29724: 29724: const _CharT __elem0 = __str[0]; 29724: const _CharT* __first = _M_str + __pos; 29724: const _CharT* const __last = _M_str + _M_len; 29724: size_type __len = _M_len - __pos; 29724: 29724: while (__len >= __n) 29724: { 29724: 29724: __first = traits_type::find(__first, __len - __n + 1, __elem0); 29724: if (!__first) 29724: return npos; 29724: 29724: 29724: 29724: if (traits_type::compare(__first, __str, __n) == 0) 29724: return __first - _M_str; 29724: __len = __last - ++__first; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __ret = npos; 29724: if (__pos < this->_M_len) 29724: { 29724: const size_type __n = this->_M_len - __pos; 29724: const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); 29724: if (__p) 29724: __ret = __p - this->_M_str; 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept 29724: { 29724: ; 29724: 29724: if (__n <= this->_M_len) 29724: { 29724: __pos = std::min(size_type(this->_M_len - __n), __pos); 29724: do 29724: { 29724: if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) 29724: return __pos; 29724: } 29724: while (__pos-- > 0); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: rfind(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __size = this->_M_len; 29724: if (__size > 0) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: for (++__size; __size-- > 0; ) 29724: if (traits_type::eq(this->_M_str[__size], __c)) 29724: return __size; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_first_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept 29724: { 29724: ; 29724: for (; __n && __pos < this->_M_len; ++__pos) 29724: { 29724: const _CharT* __p = traits_type::find(__str, __n, 29724: this->_M_str[__pos]); 29724: if (__p) 29724: return __pos; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_last_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept 29724: { 29724: ; 29724: size_type __size = this->size(); 29724: if (__size && __n) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (traits_type::find(__str, __n, this->_M_str[__size])) 29724: return __size; 29724: } 29724: while (__size-- != 0); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_first_not_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept 29724: { 29724: ; 29724: for (; __pos < this->_M_len; ++__pos) 29724: if (!traits_type::find(__str, __n, this->_M_str[__pos])) 29724: return __pos; 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_first_not_of(_CharT __c, size_type __pos) const noexcept 29724: { 29724: for (; __pos < this->_M_len; ++__pos) 29724: if (!traits_type::eq(this->_M_str[__pos], __c)) 29724: return __pos; 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_last_not_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept 29724: { 29724: ; 29724: size_type __size = this->_M_len; 29724: if (__size) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (!traits_type::find(__str, __n, this->_M_str[__size])) 29724: return __size; 29724: } 29724: while (__size--); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_last_not_of(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __size = this->_M_len; 29724: if (__size) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (!traits_type::eq(this->_M_str[__size], __c)) 29724: return __size; 29724: } 29724: while (__size--); 29724: } 29724: return npos; 29724: } 29724: 29724: 29724: } 29724: # 905 "/usr/include/c++/14/string_view" 2 3 29724: # 48 "/usr/include/c++/14/bits/basic_string.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 55 "/usr/include/c++/14/bits/basic_string.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace __cxx11 { 29724: # 85 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: class basic_string 29724: { 29724: 29724: 29724: 29724: 29724: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_CharT>::other _Char_alloc_type; 29724: 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 29724: 29724: 29724: public: 29724: typedef _Traits traits_type; 29724: typedef typename _Traits::char_type value_type; 29724: typedef _Char_alloc_type allocator_type; 29724: typedef typename _Alloc_traits::size_type size_type; 29724: typedef typename _Alloc_traits::difference_type difference_type; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef __gnu_cxx::__normal_iterator iterator; 29724: typedef __gnu_cxx::__normal_iterator 29724: const_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: typedef std::reverse_iterator reverse_iterator; 29724: 29724: 29724: static const size_type npos = static_cast(-1); 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: typedef const_iterator __const_iterator; 29724: 29724: 29724: private: 29724: static pointer 29724: _S_allocate(_Char_alloc_type& __a, size_type __n) 29724: { 29724: pointer __p = _Alloc_traits::allocate(__a, __n); 29724: # 141 "/usr/include/c++/14/bits/basic_string.h" 3 29724: return __p; 29724: } 29724: 29724: 29724: 29724: typedef basic_string_view<_CharT, _Traits> __sv_type; 29724: 29724: template 29724: using _If_sv = enable_if_t< 29724: __and_, 29724: __not_>, 29724: __not_>>::value, 29724: _Res>; 29724: 29724: 29724: 29724: static __sv_type 29724: _S_to_string_view(__sv_type __svt) noexcept 29724: { return __svt; } 29724: 29724: 29724: 29724: 29724: 29724: struct __sv_wrapper 29724: { 29724: explicit 29724: __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } 29724: 29724: __sv_type _M_sv; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_string(__sv_wrapper __svw, const _Alloc& __a) 29724: : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } 29724: 29724: 29724: 29724: struct _Alloc_hider : allocator_type 29724: { 29724: 29724: 29724: 29724: 29724: 29724: _Alloc_hider(pointer __dat, const _Alloc& __a) 29724: : allocator_type(__a), _M_p(__dat) { } 29724: 29724: 29724: _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) 29724: : allocator_type(std::move(__a)), _M_p(__dat) { } 29724: 29724: 29724: pointer _M_p; 29724: }; 29724: 29724: _Alloc_hider _M_dataplus; 29724: size_type _M_string_length; 29724: 29724: enum { _S_local_capacity = 15 / sizeof(_CharT) }; 29724: 29724: union 29724: { 29724: _CharT _M_local_buf[_S_local_capacity + 1]; 29724: size_type _M_allocated_capacity; 29724: }; 29724: 29724: 29724: void 29724: _M_data(pointer __p) 29724: { _M_dataplus._M_p = __p; } 29724: 29724: 29724: void 29724: _M_length(size_type __length) 29724: { _M_string_length = __length; } 29724: 29724: 29724: pointer 29724: _M_data() const 29724: { return _M_dataplus._M_p; } 29724: 29724: 29724: pointer 29724: _M_local_data() 29724: { 29724: 29724: return std::pointer_traits::pointer_to(*_M_local_buf); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: const_pointer 29724: _M_local_data() const 29724: { 29724: 29724: return std::pointer_traits::pointer_to(*_M_local_buf); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: void 29724: _M_capacity(size_type __capacity) 29724: { _M_allocated_capacity = __capacity; } 29724: 29724: 29724: void 29724: _M_set_length(size_type __n) 29724: { 29724: _M_length(__n); 29724: traits_type::assign(_M_data()[__n], _CharT()); 29724: } 29724: 29724: 29724: bool 29724: _M_is_local() const 29724: { 29724: if (_M_data() == _M_local_data()) 29724: { 29724: if (_M_string_length > _S_local_capacity) 29724: __builtin_unreachable(); 29724: return true; 29724: } 29724: return false; 29724: } 29724: 29724: 29724: 29724: pointer 29724: _M_create(size_type&, size_type); 29724: 29724: 29724: void 29724: _M_dispose() 29724: { 29724: if (!_M_is_local()) 29724: _M_destroy(_M_allocated_capacity); 29724: } 29724: 29724: 29724: void 29724: _M_destroy(size_type __size) throw() 29724: { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } 29724: # 321 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: void 29724: _M_construct(_InIterator __beg, _InIterator __end, 29724: std::input_iterator_tag); 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: _M_construct(_FwdIterator __beg, _FwdIterator __end, 29724: std::forward_iterator_tag); 29724: 29724: 29724: void 29724: _M_construct(size_type __req, _CharT __c); 29724: 29724: 29724: allocator_type& 29724: _M_get_allocator() 29724: { return _M_dataplus; } 29724: 29724: 29724: const allocator_type& 29724: _M_get_allocator() const 29724: { return _M_dataplus; } 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: constexpr 29724: void 29724: _M_init_local_buf() noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: __attribute__((__always_inline__)) 29724: constexpr 29724: pointer 29724: _M_use_local_data() noexcept 29724: { 29724: 29724: 29724: 29724: return _M_local_data(); 29724: } 29724: 29724: private: 29724: # 389 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: size_type 29724: _M_check(size_type __pos, const char* __s) const 29724: { 29724: if (__pos > this->size()) 29724: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") 29724: , 29724: __s, __pos, this->size()); 29724: return __pos; 29724: } 29724: 29724: 29724: void 29724: _M_check_length(size_type __n1, size_type __n2, const char* __s) const 29724: { 29724: if (this->max_size() - (this->size() - __n1) < __n2) 29724: __throw_length_error((__s)); 29724: } 29724: 29724: 29724: 29724: 29724: size_type 29724: _M_limit(size_type __pos, size_type __off) const noexcept 29724: { 29724: const bool __testoff = __off < this->size() - __pos; 29724: return __testoff ? __off : this->size() - __pos; 29724: } 29724: 29724: 29724: bool 29724: _M_disjunct(const _CharT* __s) const noexcept 29724: { 29724: return (less()(__s, _M_data()) 29724: || less()(_M_data() + this->size(), __s)); 29724: } 29724: 29724: 29724: 29724: 29724: static void 29724: _S_copy(_CharT* __d, const _CharT* __s, size_type __n) 29724: { 29724: if (__n == 1) 29724: traits_type::assign(*__d, *__s); 29724: else 29724: traits_type::copy(__d, __s, __n); 29724: } 29724: 29724: 29724: static void 29724: _S_move(_CharT* __d, const _CharT* __s, size_type __n) 29724: { 29724: if (__n == 1) 29724: traits_type::assign(*__d, *__s); 29724: else 29724: traits_type::move(__d, __s, __n); 29724: } 29724: 29724: 29724: static void 29724: _S_assign(_CharT* __d, size_type __n, _CharT __c) 29724: { 29724: if (__n == 1) 29724: traits_type::assign(*__d, __c); 29724: else 29724: traits_type::assign(__d, __n, __c); 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: static void 29724: _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) 29724: { 29724: for (; __k1 != __k2; ++__k1, (void)++__p) 29724: traits_type::assign(*__p, *__k1); 29724: } 29724: 29724: 29724: static void 29724: _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept 29724: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 29724: 29724: 29724: static void 29724: _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) 29724: noexcept 29724: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 29724: 29724: 29724: static void 29724: _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept 29724: { _S_copy(__p, __k1, __k2 - __k1); } 29724: 29724: 29724: static void 29724: _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) 29724: noexcept 29724: { _S_copy(__p, __k1, __k2 - __k1); } 29724: 29724: 29724: static int 29724: _S_compare(size_type __n1, size_type __n2) noexcept 29724: { 29724: const difference_type __d = difference_type(__n1 - __n2); 29724: 29724: if (__d > __gnu_cxx::__numeric_traits::__max) 29724: return __gnu_cxx::__numeric_traits::__max; 29724: else if (__d < __gnu_cxx::__numeric_traits::__min) 29724: return __gnu_cxx::__numeric_traits::__min; 29724: else 29724: return int(__d); 29724: } 29724: 29724: 29724: void 29724: _M_assign(const basic_string&); 29724: 29724: 29724: void 29724: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 29724: size_type __len2); 29724: 29724: 29724: void 29724: _M_erase(size_type __pos, size_type __n); 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string() 29724: noexcept(is_nothrow_default_constructible<_Alloc>::value) 29724: : _M_dataplus(_M_local_data()) 29724: { 29724: _M_init_local_buf(); 29724: _M_set_length(0); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_string(const _Alloc& __a) noexcept 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: _M_init_local_buf(); 29724: _M_set_length(0); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string(const basic_string& __str) 29724: : _M_dataplus(_M_local_data(), 29724: _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) 29724: { 29724: _M_construct(__str._M_data(), __str._M_data() + __str.length(), 29724: std::forward_iterator_tag()); 29724: } 29724: # 568 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string(const basic_string& __str, size_type __pos, 29724: const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: const _CharT* __start = __str._M_data() 29724: + __str._M_check(__pos, "basic_string::basic_string"); 29724: _M_construct(__start, __start + __str._M_limit(__pos, npos), 29724: std::forward_iterator_tag()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string(const basic_string& __str, size_type __pos, 29724: size_type __n) 29724: : _M_dataplus(_M_local_data()) 29724: { 29724: const _CharT* __start = __str._M_data() 29724: + __str._M_check(__pos, "basic_string::basic_string"); 29724: _M_construct(__start, __start + __str._M_limit(__pos, __n), 29724: std::forward_iterator_tag()); 29724: } 29724: # 603 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string(const basic_string& __str, size_type __pos, 29724: size_type __n, const _Alloc& __a) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: const _CharT* __start 29724: = __str._M_data() + __str._M_check(__pos, "string::string"); 29724: _M_construct(__start, __start + __str._M_limit(__pos, __n), 29724: std::forward_iterator_tag()); 29724: } 29724: # 623 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string(const _CharT* __s, size_type __n, 29724: const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: 29724: if (__s == 0 && __n > 0) 29724: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 29724: ); 29724: _M_construct(__s, __s + __n, std::forward_iterator_tag()); 29724: } 29724: # 643 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: 29724: basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: 29724: if (__s == 0) 29724: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 29724: ); 29724: const _CharT* __end = __s + traits_type::length(__s); 29724: _M_construct(__s, __end, forward_iterator_tag()); 29724: } 29724: # 666 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: 29724: basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { _M_construct(__n, __c); } 29724: # 681 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string(basic_string&& __str) noexcept 29724: : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) 29724: { 29724: if (__str._M_is_local()) 29724: { 29724: _M_init_local_buf(); 29724: traits_type::copy(_M_local_buf, __str._M_local_buf, 29724: __str.length() + 1); 29724: } 29724: else 29724: { 29724: _M_data(__str._M_data()); 29724: _M_capacity(__str._M_allocated_capacity); 29724: } 29724: 29724: 29724: 29724: 29724: _M_length(__str.length()); 29724: __str._M_data(__str._M_use_local_data()); 29724: __str._M_set_length(0); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } 29724: 29724: 29724: basic_string(const basic_string& __str, const _Alloc& __a) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } 29724: 29724: 29724: basic_string(basic_string&& __str, const _Alloc& __a) 29724: noexcept(_Alloc_traits::_S_always_equal()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: if (__str._M_is_local()) 29724: { 29724: _M_init_local_buf(); 29724: traits_type::copy(_M_local_buf, __str._M_local_buf, 29724: __str.length() + 1); 29724: _M_length(__str.length()); 29724: __str._M_set_length(0); 29724: } 29724: else if (_Alloc_traits::_S_always_equal() 29724: || __str.get_allocator() == __a) 29724: { 29724: _M_data(__str._M_data()); 29724: _M_length(__str.length()); 29724: _M_capacity(__str._M_allocated_capacity); 29724: __str._M_data(__str._M_use_local_data()); 29724: __str._M_set_length(0); 29724: } 29724: else 29724: _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); 29724: } 29724: # 759 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: 29724: 29724: 29724: basic_string(_InputIterator __beg, _InputIterator __end, 29724: const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a), _M_string_length(0) 29724: { 29724: 29724: _M_construct(__beg, __end, std::__iterator_category(__beg)); 29724: 29724: 29724: 29724: 29724: } 29724: # 785 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template>> 29724: 29724: basic_string(const _Tp& __t, size_type __pos, size_type __n, 29724: const _Alloc& __a = _Alloc()) 29724: : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: 29724: explicit 29724: basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) 29724: : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~basic_string() 29724: { _M_dispose(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator=(const basic_string& __str) 29724: { 29724: return this->assign(__str); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator=(const _CharT* __s) 29724: { return this->assign(__s); } 29724: # 838 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: operator=(_CharT __c) 29724: { 29724: this->assign(1, __c); 29724: return *this; 29724: } 29724: # 856 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: operator=(basic_string&& __str) 29724: noexcept(_Alloc_traits::_S_nothrow_move()) 29724: { 29724: const bool __equal_allocs = _Alloc_traits::_S_always_equal() 29724: || _M_get_allocator() == __str._M_get_allocator(); 29724: if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() 29724: && !__equal_allocs) 29724: { 29724: 29724: _M_destroy(_M_allocated_capacity); 29724: _M_data(_M_local_data()); 29724: _M_set_length(0); 29724: } 29724: 29724: std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); 29724: 29724: if (__str._M_is_local()) 29724: { 29724: 29724: 29724: 29724: if (__builtin_expect(std::__addressof(__str) != this, true)) 29724: { 29724: if (__str.size()) 29724: this->_S_copy(_M_data(), __str._M_data(), __str.size()); 29724: _M_set_length(__str.size()); 29724: } 29724: } 29724: else if (_Alloc_traits::_S_propagate_on_move_assign() || __equal_allocs) 29724: { 29724: 29724: pointer __data = nullptr; 29724: size_type __capacity; 29724: if (!_M_is_local()) 29724: { 29724: if (__equal_allocs) 29724: { 29724: 29724: __data = _M_data(); 29724: __capacity = _M_allocated_capacity; 29724: } 29724: else 29724: _M_destroy(_M_allocated_capacity); 29724: } 29724: 29724: _M_data(__str._M_data()); 29724: _M_length(__str.length()); 29724: _M_capacity(__str._M_allocated_capacity); 29724: if (__data) 29724: { 29724: __str._M_data(__data); 29724: __str._M_capacity(__capacity); 29724: } 29724: else 29724: __str._M_data(__str._M_use_local_data()); 29724: } 29724: else 29724: _M_assign(__str); 29724: __str.clear(); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator=(initializer_list<_CharT> __l) 29724: { 29724: this->assign(__l.begin(), __l.size()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: operator=(const _Tp& __svt) 29724: { return this->assign(__svt); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: operator __sv_type() const noexcept 29724: { return __sv_type(data(), size()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: begin() noexcept 29724: { return iterator(_M_data()); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(_M_data()); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: end() noexcept 29724: { return iterator(_M_data() + this->size()); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: end() const noexcept 29724: { return const_iterator(_M_data() + this->size()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(this->end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(this->end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(this->begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(this->begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(this->_M_data()); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cend() const noexcept 29724: { return const_iterator(this->_M_data() + this->size()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(this->end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(this->begin()); } 29724: 29724: 29724: public: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: size() const noexcept 29724: { return _M_string_length; } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: length() const noexcept 29724: { return _M_string_length; } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: max_size() const noexcept 29724: { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } 29724: # 1102 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: void 29724: resize(size_type __n, _CharT __c); 29724: # 1116 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: void 29724: resize(size_type __n) 29724: { this->resize(__n, _CharT()); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: void 29724: shrink_to_fit() noexcept 29724: { reserve(); } 29724: #pragma GCC diagnostic pop 29724: # 1169 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: void 29724: __resize_and_overwrite(size_type __n, _Operation __op); 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: capacity() const noexcept 29724: { 29724: return _M_is_local() ? size_type(_S_local_capacity) 29724: : _M_allocated_capacity; 29724: } 29724: # 1203 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: void 29724: reserve(size_type __res_arg); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reserve(); 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_set_length(0); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: bool 29724: empty() const noexcept 29724: { return this->size() == 0; } 29724: # 1245 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: const_reference 29724: operator[] (size_type __pos) const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_data()[__pos]; 29724: } 29724: # 1263 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: operator[](size_type __pos) 29724: { 29724: 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: ; 29724: return _M_data()[__pos]; 29724: } 29724: # 1285 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: const_reference 29724: at(size_type __n) const 29724: { 29724: if (__n >= this->size()) 29724: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29724: 29724: , 29724: __n, this->size()); 29724: return _M_data()[__n]; 29724: } 29724: # 1307 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: at(size_type __n) 29724: { 29724: if (__n >= size()) 29724: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29724: 29724: , 29724: __n, this->size()); 29724: return _M_data()[__n]; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: front() noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return operator[](0); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: front() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return operator[](0); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: back() noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return operator[](this->size() - 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: back() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return operator[](this->size() - 1); 29724: } 29724: # 1375 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: operator+=(const basic_string& __str) 29724: { return this->append(__str); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator+=(const _CharT* __s) 29724: { return this->append(__s); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator+=(_CharT __c) 29724: { 29724: this->push_back(__c); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator+=(initializer_list<_CharT> __l) 29724: { return this->append(__l.begin(), __l.size()); } 29724: # 1421 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: operator+=(const _Tp& __svt) 29724: { return this->append(__svt); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: append(const basic_string& __str) 29724: { return this->append(__str._M_data(), __str.size()); } 29724: # 1451 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: append(const basic_string& __str, size_type __pos, size_type __n = npos) 29724: { return this->append(__str._M_data() 29724: + __str._M_check(__pos, "basic_string::append"), 29724: __str._M_limit(__pos, __n)); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: append(const _CharT* __s, size_type __n) 29724: { 29724: ; 29724: _M_check_length(size_type(0), __n, "basic_string::append"); 29724: return _M_append(__s, __n); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: append(const _CharT* __s) 29724: { 29724: ; 29724: const size_type __n = traits_type::length(__s); 29724: _M_check_length(size_type(0), __n, "basic_string::append"); 29724: return _M_append(__s, __n); 29724: } 29724: # 1496 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: append(size_type __n, _CharT __c) 29724: { return _M_replace_aux(this->size(), size_type(0), __n, __c); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: append(initializer_list<_CharT> __l) 29724: { return this->append(__l.begin(), __l.size()); } 29724: # 1522 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: 29724: 29724: 29724: basic_string& 29724: append(_InputIterator __first, _InputIterator __last) 29724: { return this->replace(end(), end(), __first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: append(const _Tp& __svt) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->append(__sv.data(), __sv.size()); 29724: } 29724: # 1554 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: append(const _Tp& __svt, size_type __pos, size_type __n = npos) 29724: { 29724: __sv_type __sv = __svt; 29724: return _M_append(__sv.data() 29724: + std::__sv_check(__sv.size(), __pos, "basic_string::append"), 29724: std::__sv_limit(__sv.size(), __pos, __n)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: push_back(_CharT __c) 29724: { 29724: const size_type __size = this->size(); 29724: if (__size + 1 > this->capacity()) 29724: this->_M_mutate(__size, size_type(0), 0, size_type(1)); 29724: traits_type::assign(this->_M_data()[__size], __c); 29724: this->_M_set_length(__size + 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: assign(const basic_string& __str) 29724: { 29724: 29724: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: if (!_Alloc_traits::_S_always_equal() && !_M_is_local() 29724: && _M_get_allocator() != __str._M_get_allocator()) 29724: { 29724: 29724: 29724: if (__str.size() <= _S_local_capacity) 29724: { 29724: _M_destroy(_M_allocated_capacity); 29724: _M_data(_M_use_local_data()); 29724: _M_set_length(0); 29724: } 29724: else 29724: { 29724: const auto __len = __str.size(); 29724: auto __alloc = __str._M_get_allocator(); 29724: 29724: auto __ptr = _S_allocate(__alloc, __len + 1); 29724: _M_destroy(_M_allocated_capacity); 29724: _M_data(__ptr); 29724: _M_capacity(__len); 29724: _M_set_length(__len); 29724: } 29724: } 29724: std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); 29724: } 29724: 29724: this->_M_assign(__str); 29724: return *this; 29724: } 29724: # 1632 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(basic_string&& __str) 29724: noexcept(_Alloc_traits::_S_nothrow_move()) 29724: { 29724: 29724: 29724: return *this = std::move(__str); 29724: } 29724: # 1656 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(const basic_string& __str, size_type __pos, size_type __n = npos) 29724: { return _M_replace(size_type(0), this->size(), __str._M_data() 29724: + __str._M_check(__pos, "basic_string::assign"), 29724: __str._M_limit(__pos, __n)); } 29724: # 1673 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(const _CharT* __s, size_type __n) 29724: { 29724: ; 29724: return _M_replace(size_type(0), this->size(), __s, __n); 29724: } 29724: # 1690 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(const _CharT* __s) 29724: { 29724: ; 29724: return _M_replace(size_type(0), this->size(), __s, 29724: traits_type::length(__s)); 29724: } 29724: # 1708 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(size_type __n, _CharT __c) 29724: { return _M_replace_aux(size_type(0), this->size(), __n, __c); } 29724: # 1722 "/usr/include/c++/14/bits/basic_string.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: template> 29724: 29724: basic_string& 29724: assign(_InputIterator __first, _InputIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: if constexpr (__is_one_of<_InputIterator, const_iterator, iterator, 29724: const _CharT*, _CharT*>::value) 29724: 29724: { 29724: ; 29724: return _M_replace(size_type(0), size(), 29724: std::__to_address(__first), __last - __first); 29724: } 29724: else 29724: return *this = basic_string(__first, __last, get_allocator()); 29724: } 29724: #pragma GCC diagnostic pop 29724: # 1759 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(initializer_list<_CharT> __l) 29724: { 29724: 29724: 29724: const size_type __n = __l.size(); 29724: if (__n > capacity()) 29724: *this = basic_string(__l.begin(), __l.end(), get_allocator()); 29724: else 29724: { 29724: if (__n) 29724: _S_copy(_M_data(), __l.begin(), __n); 29724: _M_set_length(__n); 29724: } 29724: return *this; 29724: } 29724: # 1784 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: assign(const _Tp& __svt) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->assign(__sv.data(), __sv.size()); 29724: } 29724: # 1800 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: assign(const _Tp& __svt, size_type __pos, size_type __n = npos) 29724: { 29724: __sv_type __sv = __svt; 29724: return _M_replace(size_type(0), this->size(), 29724: __sv.data() 29724: + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), 29724: std::__sv_limit(__sv.size(), __pos, __n)); 29724: } 29724: # 1829 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: iterator 29724: insert(const_iterator __p, size_type __n, _CharT __c) 29724: { 29724: ; 29724: const size_type __pos = __p - begin(); 29724: this->replace(__p, __p, __n, __c); 29724: return iterator(this->_M_data() + __pos); 29724: } 29724: # 1872 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: iterator 29724: insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) 29724: { 29724: ; 29724: const size_type __pos = __p - begin(); 29724: this->replace(__p, __p, __beg, __end); 29724: return iterator(this->_M_data() + __pos); 29724: } 29724: # 1909 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: iterator 29724: insert(const_iterator __p, initializer_list<_CharT> __l) 29724: { return this->insert(__p, __l.begin(), __l.end()); } 29724: # 1937 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: insert(size_type __pos1, const basic_string& __str) 29724: { return this->replace(__pos1, size_type(0), 29724: __str._M_data(), __str.size()); } 29724: # 1961 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: insert(size_type __pos1, const basic_string& __str, 29724: size_type __pos2, size_type __n = npos) 29724: { return this->replace(__pos1, size_type(0), __str._M_data() 29724: + __str._M_check(__pos2, "basic_string::insert"), 29724: __str._M_limit(__pos2, __n)); } 29724: # 1985 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: insert(size_type __pos, const _CharT* __s, size_type __n) 29724: { return this->replace(__pos, size_type(0), __s, __n); } 29724: # 2005 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: insert(size_type __pos, const _CharT* __s) 29724: { 29724: ; 29724: return this->replace(__pos, size_type(0), __s, 29724: traits_type::length(__s)); 29724: } 29724: # 2030 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: insert(size_type __pos, size_type __n, _CharT __c) 29724: { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), 29724: size_type(0), __n, __c); } 29724: # 2049 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: iterator 29724: insert(__const_iterator __p, _CharT __c) 29724: { 29724: ; 29724: const size_type __pos = __p - begin(); 29724: _M_replace_aux(__pos, size_type(0), size_type(1), __c); 29724: return iterator(_M_data() + __pos); 29724: } 29724: # 2066 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: insert(size_type __pos, const _Tp& __svt) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->insert(__pos, __sv.data(), __sv.size()); 29724: } 29724: # 2083 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: insert(size_type __pos1, const _Tp& __svt, 29724: size_type __pos2, size_type __n = npos) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->replace(__pos1, size_type(0), 29724: __sv.data() 29724: + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), 29724: std::__sv_limit(__sv.size(), __pos2, __n)); 29724: } 29724: # 2112 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: erase(size_type __pos = 0, size_type __n = npos) 29724: { 29724: _M_check(__pos, "basic_string::erase"); 29724: if (__n == npos) 29724: this->_M_set_length(__pos); 29724: else if (__n != 0) 29724: this->_M_erase(__pos, _M_limit(__pos, __n)); 29724: return *this; 29724: } 29724: # 2132 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: iterator 29724: erase(__const_iterator __position) 29724: { 29724: 29724: ; 29724: const size_type __pos = __position - begin(); 29724: this->_M_erase(__pos, size_type(1)); 29724: return iterator(_M_data() + __pos); 29724: } 29724: # 2152 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: iterator 29724: erase(__const_iterator __first, __const_iterator __last) 29724: { 29724: 29724: ; 29724: const size_type __pos = __first - begin(); 29724: if (__last == end()) 29724: this->_M_set_length(__pos); 29724: else 29724: this->_M_erase(__pos, __last - __first); 29724: return iterator(this->_M_data() + __pos); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: pop_back() noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29724: _M_erase(size() - 1, 1); 29724: } 29724: # 2198 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(size_type __pos, size_type __n, const basic_string& __str) 29724: { return this->replace(__pos, __n, __str._M_data(), __str.size()); } 29724: # 2221 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(size_type __pos1, size_type __n1, const basic_string& __str, 29724: size_type __pos2, size_type __n2 = npos) 29724: { return this->replace(__pos1, __n1, __str._M_data() 29724: + __str._M_check(__pos2, "basic_string::replace"), 29724: __str._M_limit(__pos2, __n2)); } 29724: # 2247 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(size_type __pos, size_type __n1, const _CharT* __s, 29724: size_type __n2) 29724: { 29724: ; 29724: return _M_replace(_M_check(__pos, "basic_string::replace"), 29724: _M_limit(__pos, __n1), __s, __n2); 29724: } 29724: # 2273 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(size_type __pos, size_type __n1, const _CharT* __s) 29724: { 29724: ; 29724: return this->replace(__pos, __n1, __s, traits_type::length(__s)); 29724: } 29724: # 2298 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) 29724: { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), 29724: _M_limit(__pos, __n1), __n2, __c); } 29724: # 2317 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: const basic_string& __str) 29724: { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } 29724: # 2338 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: const _CharT* __s, size_type __n) 29724: { 29724: 29724: ; 29724: return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); 29724: } 29724: # 2361 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) 29724: { 29724: ; 29724: return this->replace(__i1, __i2, __s, traits_type::length(__s)); 29724: } 29724: # 2383 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, size_type __n, 29724: _CharT __c) 29724: { 29724: 29724: ; 29724: return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); 29724: } 29724: # 2409 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: basic_string& 29724: replace(const_iterator __i1, const_iterator __i2, 29724: _InputIterator __k1, _InputIterator __k2) 29724: { 29724: 29724: ; 29724: ; 29724: return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, 29724: std::__false_type()); 29724: } 29724: # 2442 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: _CharT* __k1, _CharT* __k2) 29724: { 29724: 29724: ; 29724: ; 29724: return this->replace(__i1 - begin(), __i2 - __i1, 29724: __k1, __k2 - __k1); 29724: } 29724: 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: const _CharT* __k1, const _CharT* __k2) 29724: { 29724: 29724: ; 29724: ; 29724: return this->replace(__i1 - begin(), __i2 - __i1, 29724: __k1, __k2 - __k1); 29724: } 29724: 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: iterator __k1, iterator __k2) 29724: { 29724: 29724: ; 29724: ; 29724: return this->replace(__i1 - begin(), __i2 - __i1, 29724: __k1.base(), __k2 - __k1); 29724: } 29724: 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: const_iterator __k1, const_iterator __k2) 29724: { 29724: 29724: ; 29724: ; 29724: return this->replace(__i1 - begin(), __i2 - __i1, 29724: __k1.base(), __k2 - __k1); 29724: } 29724: # 2505 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& replace(const_iterator __i1, const_iterator __i2, 29724: initializer_list<_CharT> __l) 29724: { return this->replace(__i1, __i2, __l.begin(), __l.size()); } 29724: # 2519 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: replace(size_type __pos, size_type __n, const _Tp& __svt) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->replace(__pos, __n, __sv.data(), __sv.size()); 29724: } 29724: # 2537 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: replace(size_type __pos1, size_type __n1, const _Tp& __svt, 29724: size_type __pos2, size_type __n2 = npos) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->replace(__pos1, __n1, 29724: __sv.data() 29724: + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), 29724: std::__sv_limit(__sv.size(), __pos2, __n2)); 29724: } 29724: # 2559 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->replace(__i1 - begin(), __i2 - __i1, __sv); 29724: } 29724: 29724: 29724: private: 29724: template 29724: 29724: basic_string& 29724: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29724: _Integer __n, _Integer __val, __true_type) 29724: { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } 29724: 29724: template 29724: 29724: basic_string& 29724: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29724: _InputIterator __k1, _InputIterator __k2, 29724: __false_type); 29724: 29724: 29724: basic_string& 29724: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 29724: _CharT __c); 29724: 29724: __attribute__((__noinline__, __noclone__, __cold__)) void 29724: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 29724: const size_type __len2, const size_type __how_much); 29724: 29724: 29724: basic_string& 29724: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 29724: const size_type __len2); 29724: 29724: 29724: basic_string& 29724: _M_append(const _CharT* __s, size_type __n); 29724: 29724: public: 29724: # 2616 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: size_type 29724: copy(_CharT* __s, size_type __n, size_type __pos = 0) const; 29724: # 2627 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: void 29724: swap(basic_string& __s) noexcept; 29724: # 2638 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: const _CharT* 29724: c_str() const noexcept 29724: { return _M_data(); } 29724: # 2651 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: const _CharT* 29724: data() const noexcept 29724: { return _M_data(); } 29724: # 2663 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: _CharT* 29724: data() noexcept 29724: { return _M_data(); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _M_get_allocator(); } 29724: # 2689 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept; 29724: # 2704 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find(const basic_string& __str, size_type __pos = 0) const 29724: noexcept 29724: { return this->find(__str.data(), __pos, __str.size()); } 29724: # 2717 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: find(const _Tp& __svt, size_type __pos = 0) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->find(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 2738 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find(const _CharT* __s, size_type __pos = 0) const noexcept 29724: { 29724: ; 29724: return this->find(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 2756 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find(_CharT __c, size_type __pos = 0) const noexcept; 29724: # 2770 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: rfind(const basic_string& __str, size_type __pos = npos) const 29724: noexcept 29724: { return this->rfind(__str.data(), __pos, __str.size()); } 29724: # 2783 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: rfind(const _Tp& __svt, size_type __pos = npos) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->rfind(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 2806 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: rfind(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept; 29724: # 2821 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: rfind(const _CharT* __s, size_type __pos = npos) const 29724: { 29724: ; 29724: return this->rfind(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 2839 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: rfind(_CharT __c, size_type __pos = npos) const noexcept; 29724: # 2854 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_of(const basic_string& __str, size_type __pos = 0) const 29724: noexcept 29724: { return this->find_first_of(__str.data(), __pos, __str.size()); } 29724: # 2868 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: find_first_of(const _Tp& __svt, size_type __pos = 0) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->find_first_of(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 2891 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept; 29724: # 2906 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_of(const _CharT* __s, size_type __pos = 0) const 29724: noexcept 29724: { 29724: ; 29724: return this->find_first_of(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 2927 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 29724: { return this->find(__c, __pos); } 29724: # 2943 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_of(const basic_string& __str, size_type __pos = npos) const 29724: noexcept 29724: { return this->find_last_of(__str.data(), __pos, __str.size()); } 29724: # 2957 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: find_last_of(const _Tp& __svt, size_type __pos = npos) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->find_last_of(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 2980 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept; 29724: # 2995 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_of(const _CharT* __s, size_type __pos = npos) const 29724: noexcept 29724: { 29724: ; 29724: return this->find_last_of(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 3016 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_of(_CharT __c, size_type __pos = npos) const noexcept 29724: { return this->rfind(__c, __pos); } 29724: # 3031 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_not_of(const basic_string& __str, size_type __pos = 0) const 29724: noexcept 29724: { return this->find_first_not_of(__str.data(), __pos, __str.size()); } 29724: # 3045 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: find_first_not_of(const _Tp& __svt, size_type __pos = 0) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->find_first_not_of(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 3068 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_not_of(const _CharT* __s, size_type __pos, 29724: size_type __n) const noexcept; 29724: # 3083 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_not_of(const _CharT* __s, size_type __pos = 0) const 29724: noexcept 29724: { 29724: ; 29724: return this->find_first_not_of(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 3102 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_not_of(_CharT __c, size_type __pos = 0) const 29724: noexcept; 29724: # 3118 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_not_of(const basic_string& __str, size_type __pos = npos) const 29724: noexcept 29724: { return this->find_last_not_of(__str.data(), __pos, __str.size()); } 29724: # 3132 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: find_last_not_of(const _Tp& __svt, size_type __pos = npos) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->find_last_not_of(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 3155 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_not_of(const _CharT* __s, size_type __pos, 29724: size_type __n) const noexcept; 29724: # 3170 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_not_of(const _CharT* __s, size_type __pos = npos) const 29724: noexcept 29724: { 29724: ; 29724: return this->find_last_not_of(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 3189 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_not_of(_CharT __c, size_type __pos = npos) const 29724: noexcept; 29724: # 3206 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: basic_string 29724: substr(size_type __pos = 0, size_type __n = npos) const 29724: { return basic_string(*this, 29724: _M_check(__pos, "basic_string::substr"), __n); } 29724: # 3226 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(const basic_string& __str) const 29724: { 29724: const size_type __size = this->size(); 29724: const size_type __osize = __str.size(); 29724: const size_type __len = std::min(__size, __osize); 29724: 29724: int __r = traits_type::compare(_M_data(), __str.data(), __len); 29724: if (!__r) 29724: __r = _S_compare(__size, __osize); 29724: return __r; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, int> 29724: compare(const _Tp& __svt) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: const size_type __size = this->size(); 29724: const size_type __osize = __sv.size(); 29724: const size_type __len = std::min(__size, __osize); 29724: 29724: int __r = traits_type::compare(_M_data(), __sv.data(), __len); 29724: if (!__r) 29724: __r = _S_compare(__size, __osize); 29724: return __r; 29724: } 29724: # 3271 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, int> 29724: compare(size_type __pos, size_type __n, const _Tp& __svt) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return __sv_type(*this).substr(__pos, __n).compare(__sv); 29724: } 29724: # 3291 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, int> 29724: compare(size_type __pos1, size_type __n1, const _Tp& __svt, 29724: size_type __pos2, size_type __n2 = npos) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return __sv_type(*this) 29724: .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); 29724: } 29724: # 3323 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(size_type __pos, size_type __n, const basic_string& __str) const 29724: { 29724: _M_check(__pos, "basic_string::compare"); 29724: __n = _M_limit(__pos, __n); 29724: const size_type __osize = __str.size(); 29724: const size_type __len = std::min(__n, __osize); 29724: int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); 29724: if (!__r) 29724: __r = _S_compare(__n, __osize); 29724: return __r; 29724: } 29724: # 3360 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(size_type __pos1, size_type __n1, const basic_string& __str, 29724: size_type __pos2, size_type __n2 = npos) const 29724: { 29724: _M_check(__pos1, "basic_string::compare"); 29724: __str._M_check(__pos2, "basic_string::compare"); 29724: __n1 = _M_limit(__pos1, __n1); 29724: __n2 = __str._M_limit(__pos2, __n2); 29724: const size_type __len = std::min(__n1, __n2); 29724: int __r = traits_type::compare(_M_data() + __pos1, 29724: __str.data() + __pos2, __len); 29724: if (!__r) 29724: __r = _S_compare(__n1, __n2); 29724: return __r; 29724: } 29724: # 3391 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(const _CharT* __s) const noexcept 29724: { 29724: ; 29724: const size_type __size = this->size(); 29724: const size_type __osize = traits_type::length(__s); 29724: const size_type __len = std::min(__size, __osize); 29724: int __r = traits_type::compare(_M_data(), __s, __len); 29724: if (!__r) 29724: __r = _S_compare(__size, __osize); 29724: return __r; 29724: } 29724: # 3426 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(size_type __pos, size_type __n1, const _CharT* __s) const 29724: { 29724: ; 29724: _M_check(__pos, "basic_string::compare"); 29724: __n1 = _M_limit(__pos, __n1); 29724: const size_type __osize = traits_type::length(__s); 29724: const size_type __len = std::min(__n1, __osize); 29724: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 29724: if (!__r) 29724: __r = _S_compare(__n1, __osize); 29724: return __r; 29724: } 29724: # 3465 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(size_type __pos, size_type __n1, const _CharT* __s, 29724: size_type __n2) const 29724: { 29724: ; 29724: _M_check(__pos, "basic_string::compare"); 29724: __n1 = _M_limit(__pos, __n1); 29724: const size_type __len = std::min(__n1, __n2); 29724: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 29724: if (!__r) 29724: __r = _S_compare(__n1, __n2); 29724: return __r; 29724: } 29724: # 3530 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template friend class basic_stringbuf; 29724: }; 29724: } 29724: 29724: } 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: namespace __cxx11 { 29724: template::value_type, 29724: typename _Allocator = allocator<_CharT>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireAllocator<_Allocator>> 29724: basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29724: -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; 29724: 29724: 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) 29724: -> basic_string<_CharT, _Traits, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: basic_string(basic_string_view<_CharT, _Traits>, 29724: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 29724: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 29724: const _Allocator& = _Allocator()) 29724: -> basic_string<_CharT, _Traits, _Allocator>; 29724: } 29724: 29724: 29724: template 29724: 29724: inline _Str 29724: __str_concat(typename _Str::value_type const* __lhs, 29724: typename _Str::size_type __lhs_len, 29724: typename _Str::value_type const* __rhs, 29724: typename _Str::size_type __rhs_len, 29724: typename _Str::allocator_type const& __a) 29724: { 29724: typedef typename _Str::allocator_type allocator_type; 29724: typedef __gnu_cxx::__alloc_traits _Alloc_traits; 29724: _Str __str(_Alloc_traits::_S_select_on_copy(__a)); 29724: __str.reserve(__lhs_len + __rhs_len); 29724: __str.append(__lhs, __lhs_len); 29724: __str.append(__rhs, __rhs_len); 29724: return __str; 29724: } 29724: # 3595 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { 29724: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29724: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29724: __rhs.c_str(), __rhs.size(), 29724: __lhs.get_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT,_Traits,_Alloc> 29724: operator+(const _CharT* __lhs, 29724: const basic_string<_CharT,_Traits,_Alloc>& __rhs) 29724: { 29724: ; 29724: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29724: return std::__str_concat<_Str>(__lhs, _Traits::length(__lhs), 29724: __rhs.c_str(), __rhs.size(), 29724: __rhs.get_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT,_Traits,_Alloc> 29724: operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) 29724: { 29724: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29724: return std::__str_concat<_Str>(__builtin_addressof(__lhs), 1, 29724: __rhs.c_str(), __rhs.size(), 29724: __rhs.get_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { 29724: ; 29724: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29724: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29724: __rhs, _Traits::length(__rhs), 29724: __lhs.get_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) 29724: { 29724: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29724: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29724: __builtin_addressof(__rhs), 1, 29724: __lhs.get_allocator()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return std::move(__lhs.append(__rhs)); } 29724: 29724: template 29724: 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29724: { return std::move(__rhs.insert(0, __lhs)); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29724: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29724: { 29724: 29724: using _Alloc_traits = allocator_traits<_Alloc>; 29724: bool __use_rhs = false; 29724: if constexpr (typename _Alloc_traits::is_always_equal{}) 29724: __use_rhs = true; 29724: else if (__lhs.get_allocator() == __rhs.get_allocator()) 29724: __use_rhs = true; 29724: if (__use_rhs) 29724: 29724: { 29724: const auto __size = __lhs.size() + __rhs.size(); 29724: if (__size > __lhs.capacity() && __size <= __rhs.capacity()) 29724: return std::move(__rhs.insert(0, __lhs)); 29724: } 29724: return std::move(__lhs.append(__rhs)); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(const _CharT* __lhs, 29724: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29724: { return std::move(__rhs.insert(0, __lhs)); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(_CharT __lhs, 29724: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29724: { return std::move(__rhs.insert(0, 1, __lhs)); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29724: const _CharT* __rhs) 29724: { return std::move(__lhs.append(__rhs)); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29724: _CharT __rhs) 29724: { return std::move(__lhs.append(1, __rhs)); } 29724: # 3752 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { 29724: return __lhs.size() == __rhs.size() 29724: && !_Traits::compare(__lhs.data(), __rhs.data(), __lhs.size()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { 29724: return __lhs.size() == _Traits::length(__rhs) 29724: && !_Traits::compare(__lhs.data(), __rhs, __lhs.size()); 29724: } 29724: # 3816 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return __rhs == __lhs; } 29724: # 3830 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return !(__rhs == __lhs); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 3871 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { return __lhs.compare(__rhs) < 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { return __lhs.compare(__rhs) < 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return __rhs.compare(__lhs) > 0; } 29724: # 3912 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { return __lhs.compare(__rhs) > 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { return __lhs.compare(__rhs) > 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return __rhs.compare(__lhs) < 0; } 29724: # 3953 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { return __lhs.compare(__rhs) <= 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { return __lhs.compare(__rhs) <= 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return __rhs.compare(__lhs) >= 0; } 29724: # 3994 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { return __lhs.compare(__rhs) >= 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { return __lhs.compare(__rhs) >= 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return __rhs.compare(__lhs) <= 0; } 29724: # 4036 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: inline void 29724: swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept(noexcept(__lhs.swap(__rhs))) 29724: { __lhs.swap(__rhs); } 29724: # 4057 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: operator>>(basic_istream<_CharT, _Traits>& __is, 29724: basic_string<_CharT, _Traits, _Alloc>& __str); 29724: 29724: template<> 29724: basic_istream& 29724: operator>>(basic_istream& __is, basic_string& __str); 29724: # 4075 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __os, 29724: const basic_string<_CharT, _Traits, _Alloc>& __str) 29724: { 29724: 29724: 29724: return __ostream_insert(__os, __str.data(), __str.size()); 29724: } 29724: # 4098 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: getline(basic_istream<_CharT, _Traits>& __is, 29724: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); 29724: # 4115 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: inline basic_istream<_CharT, _Traits>& 29724: getline(basic_istream<_CharT, _Traits>& __is, 29724: basic_string<_CharT, _Traits, _Alloc>& __str) 29724: { return std::getline(__is, __str, __is.widen('\n')); } 29724: 29724: 29724: 29724: template 29724: inline basic_istream<_CharT, _Traits>& 29724: getline(basic_istream<_CharT, _Traits>&& __is, 29724: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 29724: { return std::getline(__is, __str, __delim); } 29724: 29724: 29724: template 29724: inline basic_istream<_CharT, _Traits>& 29724: getline(basic_istream<_CharT, _Traits>&& __is, 29724: basic_string<_CharT, _Traits, _Alloc>& __str) 29724: { return std::getline(__is, __str); } 29724: 29724: 29724: template<> 29724: basic_istream& 29724: getline(basic_istream& __in, basic_string& __str, 29724: char __delim); 29724: 29724: 29724: template<> 29724: basic_istream& 29724: getline(basic_istream& __in, basic_string& __str, 29724: wchar_t __delim); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ext/string_conversions.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/string_conversions.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/string_conversions.h" 3 29724: # 43 "/usr/include/c++/14/ext/string_conversions.h" 3 29724: # 1 "/usr/include/c++/14/cstdlib" 1 3 29724: # 39 "/usr/include/c++/14/cstdlib" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdlib" 3 29724: # 79 "/usr/include/c++/14/cstdlib" 3 29724: # 1 "/usr/include/stdlib.h" 1 3 4 29724: # 26 "/usr/include/stdlib.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 27 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 33 "/usr/include/stdlib.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitflags.h" 1 3 4 29724: # 41 "/usr/include/stdlib.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 1 3 4 29724: # 42 "/usr/include/stdlib.h" 2 3 4 29724: # 56 "/usr/include/stdlib.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29724: # 57 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: typedef struct 29724: { 29724: int quot; 29724: int rem; 29724: } div_t; 29724: 29724: 29724: 29724: typedef struct 29724: { 29724: long int quot; 29724: long int rem; 29724: } ldiv_t; 29724: 29724: 29724: 29724: 29724: 29724: __extension__ typedef struct 29724: { 29724: long long int quot; 29724: long long int rem; 29724: } lldiv_t; 29724: # 98 "/usr/include/stdlib.h" 3 4 29724: extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern double atof (const char *__nptr) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: extern int atoi (const char *__nptr) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: extern long int atol (const char *__nptr) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: __extension__ extern long long int atoll (const char *__nptr) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern double strtod (const char *__restrict __nptr, 29724: char **__restrict __endptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern float strtof (const char *__restrict __nptr, 29724: char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: extern long double strtold (const char *__restrict __nptr, 29724: char **__restrict __endptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 141 "/usr/include/stdlib.h" 3 4 29724: extern _Float32 strtof32 (const char *__restrict __nptr, 29724: char **__restrict __endptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern _Float64 strtof64 (const char *__restrict __nptr, 29724: char **__restrict __endptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 159 "/usr/include/stdlib.h" 3 4 29724: extern _Float32x strtof32x (const char *__restrict __nptr, 29724: char **__restrict __endptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 177 "/usr/include/stdlib.h" 3 4 29724: extern long int strtol (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: extern unsigned long int strtoul (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: __extension__ 29724: extern long long int strtoq (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: __extension__ 29724: extern unsigned long long int strtouq (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: __extension__ 29724: extern long long int strtoll (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: __extension__ 29724: extern unsigned long long int strtoull (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int strtol (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtol") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: extern unsigned long int strtoul (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoul") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: __extension__ 29724: extern long long int strtoq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: __extension__ 29724: extern unsigned long long int strtouq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: __extension__ 29724: extern long long int strtoll (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: __extension__ 29724: extern unsigned long long int strtoull (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: # 278 "/usr/include/stdlib.h" 3 4 29724: extern int strfromd (char *__dest, size_t __size, const char *__format, 29724: double __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: 29724: extern int strfromf (char *__dest, size_t __size, const char *__format, 29724: float __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: 29724: extern int strfroml (char *__dest, size_t __size, const char *__format, 29724: long double __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: # 298 "/usr/include/stdlib.h" 3 4 29724: extern int strfromf32 (char *__dest, size_t __size, const char * __format, 29724: _Float32 __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: 29724: extern int strfromf64 (char *__dest, size_t __size, const char * __format, 29724: _Float64 __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: # 316 "/usr/include/stdlib.h" 3 4 29724: extern int strfromf32x (char *__dest, size_t __size, const char * __format, 29724: _Float32x __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: # 340 "/usr/include/stdlib.h" 3 4 29724: extern long int strtol_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base, 29724: locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: extern unsigned long int strtoul_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: int __base, locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: __extension__ 29724: extern long long int strtoll_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base, 29724: locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: __extension__ 29724: extern unsigned long long int strtoull_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: int __base, locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: 29724: 29724: 29724: 29724: extern long int strtol_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtol_l") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 4))); 29724: extern unsigned long int strtoul_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoul_l") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 4))); 29724: __extension__ 29724: extern long long int strtoll_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoll_l") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 4))); 29724: __extension__ 29724: 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") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 4))); 29724: # 415 "/usr/include/stdlib.h" 3 4 29724: extern double strtod_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: extern float strtof_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: extern long double strtold_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: # 436 "/usr/include/stdlib.h" 3 4 29724: extern _Float32 strtof32_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: extern _Float64 strtof64_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: # 457 "/usr/include/stdlib.h" 3 4 29724: extern _Float32x strtof32x_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: # 480 "/usr/include/stdlib.h" 3 4 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: __attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) 29724: { 29724: return (int) strtol (__nptr, (char **) __null, 10); 29724: } 29724: extern __inline __attribute__ ((__gnu_inline__)) long int 29724: __attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) 29724: { 29724: return strtol (__nptr, (char **) __null, 10); 29724: } 29724: 29724: 29724: __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int 29724: __attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) 29724: { 29724: return strtoll (__nptr, (char **) __null, 10); 29724: } 29724: # 505 "/usr/include/stdlib.h" 3 4 29724: extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern long int a64l (const char *__s) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/types.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: typedef __u_char u_char; 29724: typedef __u_short u_short; 29724: typedef __u_int u_int; 29724: typedef __u_long u_long; 29724: typedef __quad_t quad_t; 29724: typedef __u_quad_t u_quad_t; 29724: typedef __fsid_t fsid_t; 29724: 29724: 29724: typedef __loff_t loff_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __ino64_t ino_t; 29724: 29724: 29724: 29724: 29724: typedef __ino64_t ino64_t; 29724: 29724: 29724: 29724: 29724: typedef __dev_t dev_t; 29724: 29724: 29724: 29724: 29724: typedef __gid_t gid_t; 29724: 29724: 29724: 29724: 29724: typedef __mode_t mode_t; 29724: 29724: 29724: 29724: 29724: typedef __nlink_t nlink_t; 29724: 29724: 29724: 29724: 29724: typedef __uid_t uid_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __off64_t off_t; 29724: 29724: 29724: 29724: 29724: typedef __off64_t off64_t; 29724: # 103 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: typedef __id_t id_t; 29724: 29724: 29724: 29724: 29724: typedef __ssize_t ssize_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef __daddr_t daddr_t; 29724: typedef __caddr_t caddr_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef __key_t key_t; 29724: # 134 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: typedef __useconds_t useconds_t; 29724: 29724: 29724: 29724: typedef __suseconds_t suseconds_t; 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 145 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29724: 29724: 29724: 29724: typedef unsigned long int ulong; 29724: typedef unsigned short int ushort; 29724: typedef unsigned int uint; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __uint8_t u_int8_t; 29724: typedef __uint16_t u_int16_t; 29724: typedef __uint32_t u_int32_t; 29724: typedef __uint64_t u_int64_t; 29724: 29724: 29724: typedef int register_t __attribute__ ((__mode__ (__word__))); 29724: # 176 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: # 1 "/usr/include/endian.h" 1 3 4 29724: # 35 "/usr/include/endian.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 1 3 4 29724: # 33 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 29724: static __inline __uint16_t 29724: __bswap_16 (__uint16_t __bsx) 29724: { 29724: 29724: return __builtin_bswap16 (__bsx); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: static __inline __uint32_t 29724: __bswap_32 (__uint32_t __bsx) 29724: { 29724: 29724: return __builtin_bswap32 (__bsx); 29724: 29724: 29724: 29724: } 29724: # 69 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 29724: __extension__ static __inline __uint64_t 29724: __bswap_64 (__uint64_t __bsx) 29724: { 29724: 29724: return __builtin_bswap64 (__bsx); 29724: 29724: 29724: 29724: } 29724: # 36 "/usr/include/endian.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 1 3 4 29724: # 32 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 3 4 29724: static __inline __uint16_t 29724: __uint16_identity (__uint16_t __x) 29724: { 29724: return __x; 29724: } 29724: 29724: static __inline __uint32_t 29724: __uint32_identity (__uint32_t __x) 29724: { 29724: return __x; 29724: } 29724: 29724: static __inline __uint64_t 29724: __uint64_identity (__uint64_t __x) 29724: { 29724: return __x; 29724: } 29724: # 37 "/usr/include/endian.h" 2 3 4 29724: # 177 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/select.h" 1 3 4 29724: # 30 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/select.h" 1 3 4 29724: # 31 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __sigset_t sigset_t; 29724: # 34 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29724: # 49 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: typedef long int __fd_mask; 29724: # 59 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: typedef struct 29724: { 29724: 29724: 29724: 29724: __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 29724: 29724: 29724: 29724: 29724: 29724: } fd_set; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __fd_mask fd_mask; 29724: # 91 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: extern "C" { 29724: # 108 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout) __asm__ ("" "__select64") 29724: 29724: 29724: 29724: 29724: ; 29724: # 134 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: 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) __asm__ ("" "__pselect64") 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: # 150 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 3 4 29724: extern long int __fdelt_chk (long int __d); 29724: extern long int __fdelt_warn (long int __d) 29724: __attribute__((__warning__ ("bit outside of fd_set selected"))); 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 2 3 4 29724: # 151 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29724: 29724: 29724: } 29724: # 180 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: typedef __blksize_t blksize_t; 29724: # 205 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: typedef __blkcnt64_t blkcnt_t; 29724: 29724: 29724: 29724: typedef __fsblkcnt64_t fsblkcnt_t; 29724: 29724: 29724: 29724: typedef __fsfilcnt64_t fsfilcnt_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef __blkcnt64_t blkcnt64_t; 29724: typedef __fsblkcnt64_t fsblkcnt64_t; 29724: typedef __fsfilcnt64_t fsfilcnt64_t; 29724: # 230 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: } 29724: # 515 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int random (void) noexcept (true); 29724: 29724: 29724: extern void srandom (unsigned int __seed) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern char *initstate (unsigned int __seed, char *__statebuf, 29724: size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct random_data 29724: { 29724: int32_t *fptr; 29724: int32_t *rptr; 29724: int32_t *state; 29724: int rand_type; 29724: int rand_deg; 29724: int rand_sep; 29724: int32_t *end_ptr; 29724: }; 29724: 29724: extern int random_r (struct random_data *__restrict __buf, 29724: int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern int srandom_r (unsigned int __seed, struct random_data *__buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, 29724: size_t __statelen, 29724: struct random_data *__restrict __buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 4))); 29724: 29724: extern int setstate_r (char *__restrict __statebuf, 29724: struct random_data *__restrict __buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int rand (void) noexcept (true); 29724: 29724: extern void srand (unsigned int __seed) noexcept (true); 29724: 29724: 29724: 29724: extern int rand_r (unsigned int *__seed) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double drand48 (void) noexcept (true); 29724: extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern long int lrand48 (void) noexcept (true); 29724: extern long int nrand48 (unsigned short int __xsubi[3]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern long int mrand48 (void) noexcept (true); 29724: extern long int jrand48 (unsigned short int __xsubi[3]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern void srand48 (long int __seedval) noexcept (true); 29724: extern unsigned short int *seed48 (unsigned short int __seed16v[3]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: struct drand48_data 29724: { 29724: unsigned short int __x[3]; 29724: unsigned short int __old_x[3]; 29724: unsigned short int __c; 29724: unsigned short int __init; 29724: __extension__ unsigned long long int __a; 29724: 29724: }; 29724: 29724: 29724: extern int drand48_r (struct drand48_data *__restrict __buffer, 29724: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern int erand48_r (unsigned short int __xsubi[3], 29724: struct drand48_data *__restrict __buffer, 29724: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int lrand48_r (struct drand48_data *__restrict __buffer, 29724: long int *__restrict __result) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern int nrand48_r (unsigned short int __xsubi[3], 29724: struct drand48_data *__restrict __buffer, 29724: long int *__restrict __result) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int mrand48_r (struct drand48_data *__restrict __buffer, 29724: long int *__restrict __result) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern int jrand48_r (unsigned short int __xsubi[3], 29724: struct drand48_data *__restrict __buffer, 29724: long int *__restrict __result) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int srand48_r (long int __seedval, struct drand48_data *__buffer) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: extern int seed48_r (unsigned short int __seed16v[3], 29724: struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern int lcong48_r (unsigned short int __param[7], 29724: struct drand48_data *__buffer) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern __uint32_t arc4random (void) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern void arc4random_buf (void *__buf, size_t __size) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29724: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: extern void *calloc (size_t __nmemb, size_t __size) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void *realloc (void *__ptr, size_t __size) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 29724: 29724: 29724: extern void free (void *__ptr) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__alloc_size__ (2, 3))) 29724: __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29724: noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); 29724: 29724: 29724: 29724: # 1 "/usr/include/alloca.h" 1 3 4 29724: # 24 "/usr/include/alloca.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 25 "/usr/include/alloca.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: extern void *alloca (size_t __size) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 707 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29724: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern void *aligned_alloc (size_t __alignment, size_t __size) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 29724: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern "C++" int at_quick_exit (void (*__func) (void)) 29724: noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); 29724: # 749 "/usr/include/stdlib.h" 3 4 29724: extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: 29724: extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: 29724: extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern char *secure_getenv (const char *__name) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int setenv (const char *__name, const char *__value, int __replace) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int clearenv (void) noexcept (true); 29724: # 814 "/usr/include/stdlib.h" 3 4 29724: extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 830 "/usr/include/stdlib.h" 3 4 29724: extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 852 "/usr/include/stdlib.h" 3 4 29724: extern int mkstemps (char *__template, int __suffixlen) __asm__ ("" "mkstemps64") 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int mkstemps64 (char *__template, int __suffixlen) 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 870 "/usr/include/stdlib.h" 3 4 29724: extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 884 "/usr/include/stdlib.h" 3 4 29724: extern int mkostemp (char *__template, int __flags) __asm__ ("" "mkostemp64") 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 905 "/usr/include/stdlib.h" 3 4 29724: extern int mkostemps (char *__template, int __suffixlen, int __flags) __asm__ ("" "mkostemps64") 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int mkostemps64 (char *__template, int __suffixlen, int __flags) 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 923 "/usr/include/stdlib.h" 3 4 29724: extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern char *canonicalize_file_name (const char *__name) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) 29724: __attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); 29724: # 940 "/usr/include/stdlib.h" 3 4 29724: extern char *realpath (const char *__restrict __name, 29724: char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef int (*__compar_fn_t) (const void *, const void *); 29724: 29724: 29724: typedef __compar_fn_t comparison_fn_t; 29724: 29724: 29724: 29724: typedef int (*__compar_d_fn_t) (const void *, const void *, void *); 29724: 29724: 29724: 29724: 29724: extern void *bsearch (const void *__key, const void *__base, 29724: size_t __nmemb, size_t __size, __compar_fn_t __compar) 29724: __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 1 3 4 29724: # 19 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 3 4 29724: extern __inline __attribute__ ((__gnu_inline__)) void * 29724: bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 29724: __compar_fn_t __compar) 29724: { 29724: size_t __l, __u, __idx; 29724: const void *__p; 29724: int __comparison; 29724: 29724: __l = 0; 29724: __u = __nmemb; 29724: while (__l < __u) 29724: { 29724: __idx = (__l + __u) / 2; 29724: __p = (const void *) (((const char *) __base) + (__idx * __size)); 29724: __comparison = (*__compar) (__key, __p); 29724: if (__comparison < 0) 29724: __u = __idx; 29724: else if (__comparison > 0) 29724: __l = __idx + 1; 29724: else 29724: { 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wcast-qual" 29724: 29724: return (void *) __p; 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: } 29724: } 29724: 29724: return __null; 29724: } 29724: # 966 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: 29724: extern void qsort (void *__base, size_t __nmemb, size_t __size, 29724: __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: extern void qsort_r (void *__base, size_t __nmemb, size_t __size, 29724: __compar_d_fn_t __compar, void *__arg) 29724: __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: 29724: 29724: 29724: extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: __extension__ extern long long int llabs (long long int __x) 29724: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern div_t div (int __numer, int __denom) 29724: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: extern ldiv_t ldiv (long int __numer, long int __denom) 29724: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: __extension__ extern lldiv_t lldiv (long long int __numer, 29724: long long int __denom) 29724: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: # 1012 "/usr/include/stdlib.h" 3 4 29724: extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, 29724: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, 29724: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern char *gcvt (double __value, int __ndigit, char *__buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern char *qecvt (long double __value, int __ndigit, 29724: int *__restrict __decpt, int *__restrict __sign) 29724: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29724: extern char *qfcvt (long double __value, int __ndigit, 29724: int *__restrict __decpt, int *__restrict __sign) 29724: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29724: extern char *qgcvt (long double __value, int __ndigit, char *__buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, 29724: int *__restrict __sign, char *__restrict __buf, 29724: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29724: extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, 29724: int *__restrict __sign, char *__restrict __buf, 29724: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29724: 29724: extern int qecvt_r (long double __value, int __ndigit, 29724: int *__restrict __decpt, int *__restrict __sign, 29724: char *__restrict __buf, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29724: extern int qfcvt_r (long double __value, int __ndigit, 29724: int *__restrict __decpt, int *__restrict __sign, 29724: char *__restrict __buf, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29724: 29724: 29724: 29724: 29724: 29724: extern int mblen (const char *__s, size_t __n) noexcept (true); 29724: 29724: 29724: extern int mbtowc (wchar_t *__restrict __pwc, 29724: const char *__restrict __s, size_t __n) noexcept (true); 29724: 29724: 29724: extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); 29724: 29724: 29724: 29724: extern size_t mbstowcs (wchar_t *__restrict __pwcs, 29724: const char *__restrict __s, size_t __n) noexcept (true) 29724: __attribute__ ((__access__ (__read_only__, 2))); 29724: 29724: extern size_t wcstombs (char *__restrict __s, 29724: const wchar_t *__restrict __pwcs, size_t __n) 29724: noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))) 29724: __attribute__ ((__access__ (__read_only__, 2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 1099 "/usr/include/stdlib.h" 3 4 29724: extern int getsubopt (char **__restrict __optionp, 29724: char *const *__restrict __tokens, 29724: char **__restrict __valuep) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int grantpt (int __fd) noexcept (true); 29724: 29724: 29724: 29724: extern int unlockpt (int __fd) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int ptsname_r (int __fd, char *__buf, size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: extern int getpt (void); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int getloadavg (double __loadavg[], int __nelem) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 1155 "/usr/include/stdlib.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 3 4 29724: extern __inline __attribute__ ((__gnu_inline__)) double 29724: __attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) 29724: { 29724: return strtod (__nptr, (char **) __null); 29724: } 29724: # 1156 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 3 4 29724: extern char *__realpath_chk (const char *__restrict __name, 29724: char *__restrict __resolved, 29724: size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) 29724: __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) 29724: ; 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 29724: __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char * __restrict __resolved) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__resolved, 2 > 1); 29724: 29724: if (__sz == (size_t) -1) 29724: return __realpath_alias (__name, __resolved); 29724: 29724: 29724: 29724: 29724: 29724: return __realpath_chk (__name, __resolved, __sz); 29724: } 29724: 29724: 29724: extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, 29724: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") 29724: 29724: __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") 29724: 29724: 29724: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) 29724: ; 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) ptsname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __ptsname_r_alias (__fd, __buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __ptsname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __ptsname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") 29724: __attribute__ ((__warn_unused_result__)); 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int 29724: __attribute__ ((__leaf__)) wctomb (char * __s, wchar_t __wchar) noexcept (true) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 29724: && 16 > __builtin_object_size (__s, 2 > 1)) 29724: return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); 29724: return __wctomb_alias (__s, __wchar); 29724: } 29724: 29724: 29724: extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, 29724: const char *__restrict __src, 29724: size_t __len, size_t __dstlen) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29724: extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 29724: 29724: 29724: 29724: __attribute__ ((__access__ (__read_only__, 2))); 29724: extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 29724: 29724: 29724: 29724: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29724: ; 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) mbstowcs (wchar_t * __restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: if (__builtin_constant_p (__dst == __null) && __dst == __null) 29724: return __mbstowcs_nulldst (__dst, __src, __len); 29724: else 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t)))))) ? __mbstowcs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbstowcs_chk_warn (__dst, __src, __len, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbstowcs_chk (__dst, __src, __len, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29724: ; 29724: } 29724: 29724: extern size_t __wcstombs_chk (char *__restrict __dst, 29724: const wchar_t *__restrict __src, 29724: size_t __len, size_t __dstlen) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29724: extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") 29724: 29724: 29724: 29724: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) wcstombs (char * __restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char)))))) ? __wcstombs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcstombs_chk_warn (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)) : __wcstombs_chk (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)))) 29724: 29724: ; 29724: } 29724: # 1160 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29724: # 1163 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: 29724: } 29724: # 80 "/usr/include/c++/14/cstdlib" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/std_abs.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/std_abs.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/std_abs.h" 3 29724: # 46 "/usr/include/c++/14/bits/std_abs.h" 3 29724: extern "C++" 29724: { 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: using ::abs; 29724: 29724: 29724: inline long 29724: abs(long __i) { return __builtin_labs(__i); } 29724: 29724: 29724: 29724: inline long long 29724: abs(long long __x) { return __builtin_llabs (__x); } 29724: # 70 "/usr/include/c++/14/bits/std_abs.h" 3 29724: inline constexpr double 29724: abs(double __x) 29724: { return __builtin_fabs(__x); } 29724: 29724: inline constexpr float 29724: abs(float __x) 29724: { return __builtin_fabsf(__x); } 29724: 29724: inline constexpr long double 29724: abs(long double __x) 29724: { return __builtin_fabsl(__x); } 29724: # 150 "/usr/include/c++/14/bits/std_abs.h" 3 29724: 29724: } 29724: } 29724: # 82 "/usr/include/c++/14/cstdlib" 2 3 29724: # 125 "/usr/include/c++/14/cstdlib" 3 29724: extern "C++" 29724: { 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: using ::div_t; 29724: using ::ldiv_t; 29724: 29724: using ::abort; 29724: 29724: using ::aligned_alloc; 29724: 29724: using ::atexit; 29724: 29724: 29724: using ::at_quick_exit; 29724: 29724: 29724: using ::atof; 29724: using ::atoi; 29724: using ::atol; 29724: using ::bsearch; 29724: using ::calloc; 29724: using ::div; 29724: using ::exit; 29724: using ::free; 29724: using ::getenv; 29724: using ::labs; 29724: using ::ldiv; 29724: using ::malloc; 29724: 29724: using ::mblen; 29724: using ::mbstowcs; 29724: using ::mbtowc; 29724: 29724: using ::qsort; 29724: 29724: 29724: using ::quick_exit; 29724: 29724: 29724: using ::rand; 29724: using ::realloc; 29724: using ::srand; 29724: using ::strtod; 29724: using ::strtol; 29724: using ::strtoul; 29724: using ::system; 29724: 29724: using ::wcstombs; 29724: using ::wctomb; 29724: 29724: 29724: 29724: inline ldiv_t 29724: div(long __i, long __j) noexcept { return ldiv(__i, __j); } 29724: 29724: 29724: 29724: 29724: } 29724: # 199 "/usr/include/c++/14/cstdlib" 3 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: using ::lldiv_t; 29724: 29724: 29724: 29724: 29724: 29724: using ::_Exit; 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: using ::llabs; 29724: 29724: inline lldiv_t 29724: div(long long __n, long long __d) 29724: { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } 29724: 29724: using ::lldiv; 29724: #pragma GCC diagnostic pop 29724: # 234 "/usr/include/c++/14/cstdlib" 3 29724: using ::atoll; 29724: using ::strtoll; 29724: using ::strtoull; 29724: 29724: using ::strtof; 29724: using ::strtold; 29724: 29724: 29724: } 29724: 29724: namespace std 29724: { 29724: 29724: using ::__gnu_cxx::lldiv_t; 29724: 29724: using ::__gnu_cxx::_Exit; 29724: 29724: using ::__gnu_cxx::llabs; 29724: using ::__gnu_cxx::div; 29724: using ::__gnu_cxx::lldiv; 29724: 29724: using ::__gnu_cxx::atoll; 29724: using ::__gnu_cxx::strtof; 29724: using ::__gnu_cxx::strtoll; 29724: using ::__gnu_cxx::strtoull; 29724: using ::__gnu_cxx::strtold; 29724: } 29724: # 278 "/usr/include/c++/14/cstdlib" 3 29724: } 29724: # 44 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29724: # 1 "/usr/include/c++/14/cwchar" 1 3 29724: # 39 "/usr/include/c++/14/cwchar" 3 29724: 29724: # 40 "/usr/include/c++/14/cwchar" 3 29724: # 45 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29724: # 1 "/usr/include/c++/14/cstdio" 1 3 29724: # 39 "/usr/include/c++/14/cstdio" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdio" 3 29724: 29724: 29724: # 1 "/usr/include/stdio.h" 1 3 4 29724: # 28 "/usr/include/stdio.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 29 "/usr/include/stdio.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 35 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29724: # 38 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 1 3 4 29724: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 3 4 29724: typedef struct _G_fpos_t 29724: { 29724: __off_t __pos; 29724: __mbstate_t __state; 29724: } __fpos_t; 29724: # 41 "/usr/include/stdio.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 1 3 4 29724: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 3 4 29724: typedef struct _G_fpos64_t 29724: { 29724: __off64_t __pos; 29724: __mbstate_t __state; 29724: } __fpos64_t; 29724: # 42 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 1 3 4 29724: # 35 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 3 4 29724: struct _IO_FILE; 29724: struct _IO_marker; 29724: struct _IO_codecvt; 29724: struct _IO_wide_data; 29724: 29724: 29724: 29724: 29724: typedef void _IO_lock_t; 29724: 29724: 29724: 29724: 29724: 29724: struct _IO_FILE 29724: { 29724: int _flags; 29724: 29724: 29724: char *_IO_read_ptr; 29724: char *_IO_read_end; 29724: char *_IO_read_base; 29724: char *_IO_write_base; 29724: char *_IO_write_ptr; 29724: char *_IO_write_end; 29724: char *_IO_buf_base; 29724: char *_IO_buf_end; 29724: 29724: 29724: char *_IO_save_base; 29724: char *_IO_backup_base; 29724: char *_IO_save_end; 29724: 29724: struct _IO_marker *_markers; 29724: 29724: struct _IO_FILE *_chain; 29724: 29724: int _fileno; 29724: int _flags2; 29724: __off_t _old_offset; 29724: 29724: 29724: unsigned short _cur_column; 29724: signed char _vtable_offset; 29724: char _shortbuf[1]; 29724: 29724: _IO_lock_t *_lock; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __off64_t _offset; 29724: 29724: struct _IO_codecvt *_codecvt; 29724: struct _IO_wide_data *_wide_data; 29724: struct _IO_FILE *_freeres_list; 29724: void *_freeres_buf; 29724: struct _IO_FILE **_prevchain; 29724: int _mode; 29724: 29724: char _unused2[15 * sizeof (int) - 5 * sizeof (void *)]; 29724: }; 29724: # 45 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 3 4 29724: typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, 29724: size_t __nbytes); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, 29724: size_t __nbytes); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); 29724: 29724: 29724: typedef int cookie_close_function_t (void *__cookie); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef struct _IO_cookie_io_functions_t 29724: { 29724: cookie_read_function_t *read; 29724: cookie_write_function_t *write; 29724: cookie_seek_function_t *seek; 29724: cookie_close_function_t *close; 29724: } cookie_io_functions_t; 29724: # 48 "/usr/include/stdio.h" 2 3 4 29724: # 87 "/usr/include/stdio.h" 3 4 29724: typedef __fpos64_t fpos_t; 29724: 29724: 29724: typedef __fpos64_t fpos64_t; 29724: # 129 "/usr/include/stdio.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio_lim.h" 1 3 4 29724: # 130 "/usr/include/stdio.h" 2 3 4 29724: # 149 "/usr/include/stdio.h" 3 4 29724: extern FILE *stdin; 29724: extern FILE *stdout; 29724: extern FILE *stderr; 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int remove (const char *__filename) noexcept (true); 29724: 29724: extern int rename (const char *__old, const char *__new) noexcept (true); 29724: 29724: 29724: 29724: extern int renameat (int __oldfd, const char *__old, int __newfd, 29724: const char *__new) noexcept (true); 29724: # 176 "/usr/include/stdio.h" 3 4 29724: extern int renameat2 (int __oldfd, const char *__old, int __newfd, 29724: const char *__new, unsigned int __flags) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: # 198 "/usr/include/stdio.h" 3 4 29724: extern FILE *tmpfile (void) __asm__ ("" "tmpfile64") 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern FILE *tmpfile64 (void) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern char *tmpnam (char[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern char *tmpnam_r (char __s[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: # 228 "/usr/include/stdio.h" 3 4 29724: extern char *tempnam (const char *__dir, const char *__pfx) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fflush (FILE *__stream); 29724: # 245 "/usr/include/stdio.h" 3 4 29724: extern int fflush_unlocked (FILE *__stream); 29724: # 255 "/usr/include/stdio.h" 3 4 29724: extern int fcloseall (void); 29724: # 276 "/usr/include/stdio.h" 3 4 29724: extern FILE *fopen (const char *__restrict __filename, const char *__restrict __modes) __asm__ ("" "fopen64") 29724: 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: extern FILE *freopen (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern FILE *fopen64 (const char *__restrict __filename, 29724: const char *__restrict __modes) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: extern FILE *freopen64 (const char *__restrict __filename, 29724: const char *__restrict __modes, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: 29724: 29724: extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern FILE *fopencookie (void *__restrict __magic_cookie, 29724: const char *__restrict __modes, 29724: cookie_io_functions_t __io_funcs) noexcept (true) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); 29724: 29724: 29724: 29724: 29724: 29724: extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true) 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 29724: int __modes, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 29724: size_t __size) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern void setlinebuf (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fprintf (FILE *__restrict __stream, 29724: const char *__restrict __format, ...) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int printf (const char *__restrict __format, ...); 29724: 29724: extern int sprintf (char *__restrict __s, 29724: const char *__restrict __format, ...) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 29724: __gnuc_va_list __arg) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 29724: 29724: extern int vsprintf (char *__restrict __s, const char *__restrict __format, 29724: __gnuc_va_list __arg) noexcept (true); 29724: 29724: 29724: 29724: extern int snprintf (char *__restrict __s, size_t __maxlen, 29724: const char *__restrict __format, ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 29724: 29724: extern int vsnprintf (char *__restrict __s, size_t __maxlen, 29724: const char *__restrict __format, __gnuc_va_list __arg) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 29724: 29724: 29724: 29724: 29724: 29724: extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, 29724: __gnuc_va_list __arg) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 29724: extern int __asprintf (char **__restrict __ptr, 29724: const char *__restrict __fmt, ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 29724: extern int asprintf (char **__restrict __ptr, 29724: const char *__restrict __fmt, ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int vdprintf (int __fd, const char *__restrict __fmt, 29724: __gnuc_va_list __arg) 29724: __attribute__ ((__format__ (__printf__, 2, 0))); 29724: extern int dprintf (int __fd, const char *__restrict __fmt, ...) 29724: __attribute__ ((__format__ (__printf__, 2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fscanf (FILE *__restrict __stream, 29724: const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 29724: 29724: extern int sscanf (const char *__restrict __s, 29724: const char *__restrict __format, ...) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29724: # 438 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: 29724: 29724: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc23_fscanf") 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc23_scanf") 29724: __attribute__ ((__warn_unused_result__)); 29724: extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_sscanf") 29724: 29724: ; 29724: # 490 "/usr/include/stdio.h" 3 4 29724: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 29724: __gnuc_va_list __arg) 29724: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 29724: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern int vsscanf (const char *__restrict __s, 29724: const char *__restrict __format, __gnuc_va_list __arg) 29724: noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfscanf") 29724: 29724: 29724: 29724: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vscanf") 29724: 29724: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 29724: extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vsscanf") 29724: 29724: 29724: 29724: __attribute__ ((__format__ (__scanf__, 2, 0))); 29724: # 575 "/usr/include/stdio.h" 3 4 29724: extern int fgetc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: extern int getc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int getchar (void); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int getc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: extern int getchar_unlocked (void); 29724: # 600 "/usr/include/stdio.h" 3 4 29724: extern int fgetc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: # 611 "/usr/include/stdio.h" 3 4 29724: extern int fputc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: extern int putc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int putchar (int __c); 29724: # 627 "/usr/include/stdio.h" 3 4 29724: extern int fputc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int putc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: extern int putchar_unlocked (int __c); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int getw (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int putw (int __w, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 29724: # 677 "/usr/include/stdio.h" 3 4 29724: extern char *fgets_unlocked (char *__restrict __s, int __n, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 29724: # 689 "/usr/include/stdio.h" 3 4 29724: extern __ssize_t __getdelim (char **__restrict __lineptr, 29724: size_t *__restrict __n, int __delimiter, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 29724: extern __ssize_t getdelim (char **__restrict __lineptr, 29724: size_t *__restrict __n, int __delimiter, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 29724: 29724: 29724: extern __ssize_t getline (char **__restrict __lineptr, 29724: size_t *__restrict __n, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fputs (const char *__restrict __s, FILE *__restrict __stream) 29724: __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int puts (const char *__s); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int ungetc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern size_t fread (void *__restrict __ptr, size_t __size, 29724: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__nonnull__ (4))); 29724: 29724: 29724: 29724: 29724: extern size_t fwrite (const void *__restrict __ptr, size_t __size, 29724: size_t __n, FILE *__restrict __s) __attribute__ ((__nonnull__ (4))); 29724: # 745 "/usr/include/stdio.h" 3 4 29724: extern int fputs_unlocked (const char *__restrict __s, 29724: FILE *__restrict __stream) __attribute__ ((__nonnull__ (2))); 29724: # 756 "/usr/include/stdio.h" 3 4 29724: extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 29724: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__nonnull__ (4))); 29724: extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 29724: size_t __n, FILE *__restrict __stream) 29724: __attribute__ ((__nonnull__ (4))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fseek (FILE *__stream, long int __off, int __whence) 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern void rewind (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: # 802 "/usr/include/stdio.h" 3 4 29724: extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64") 29724: __attribute__ ((__nonnull__ (1))); 29724: # 828 "/usr/include/stdio.h" 3 4 29724: extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: extern int fsetpos (FILE *__stream, const fpos_t *__pos) __asm__ ("" "fsetpos64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence) 29724: __attribute__ ((__nonnull__ (1))); 29724: extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos) 29724: __attribute__ ((__nonnull__ (1))); 29724: extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern void clearerr (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: extern int feof (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: extern int ferror (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern void clearerr_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: extern int feof_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: extern int ferror_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void perror (const char *__s) __attribute__ ((__cold__)); 29724: 29724: 29724: 29724: 29724: extern int fileno (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int fileno_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: # 887 "/usr/include/stdio.h" 3 4 29724: extern int pclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern FILE *popen (const char *__command, const char *__modes) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *ctermid (char *__s) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1))); 29724: 29724: 29724: 29724: 29724: 29724: extern char *cuserid (char *__s) 29724: __attribute__ ((__access__ (__write_only__, 1))); 29724: 29724: 29724: 29724: 29724: struct obstack; 29724: 29724: 29724: extern int obstack_printf (struct obstack *__restrict __obstack, 29724: const char *__restrict __format, ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); 29724: extern int obstack_vprintf (struct obstack *__restrict __obstack, 29724: const char *__restrict __format, 29724: __gnuc_va_list __args) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void flockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int ftrylockfile (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern void funlockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 949 "/usr/include/stdio.h" 3 4 29724: extern int __uflow (FILE *); 29724: extern int __overflow (FILE *, int); 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 29724: extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, 29724: const char *__restrict __format, ...) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, 29724: const char *__restrict __format, 29724: __gnuc_va_list __ap) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: 29724: 29724: 29724: extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, 29724: size_t __slen, const char *__restrict __format, 29724: ...) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, 29724: size_t __slen, const char *__restrict __format, 29724: __gnuc_va_list __ap) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int __fprintf_chk (FILE *__restrict __stream, int __flag, 29724: const char *__restrict __format, ...) 29724: __attribute__ ((__nonnull__ (1))); 29724: extern int __printf_chk (int __flag, const char *__restrict __format, ...); 29724: extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, 29724: const char *__restrict __format, 29724: __gnuc_va_list __ap) __attribute__ ((__nonnull__ (1))); 29724: extern int __vprintf_chk (int __flag, const char *__restrict __format, 29724: __gnuc_va_list __ap); 29724: 29724: 29724: extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, 29724: ...) __attribute__ ((__format__ (__printf__, 3, 4))); 29724: extern int __vdprintf_chk (int __fd, int __flag, 29724: const char *__restrict __fmt, __gnuc_va_list __arg) 29724: __attribute__ ((__format__ (__printf__, 3, 0))); 29724: 29724: 29724: 29724: 29724: extern int __asprintf_chk (char **__restrict __ptr, int __flag, 29724: const char *__restrict __fmt, ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); 29724: extern int __vasprintf_chk (char **__restrict __ptr, int __flag, 29724: const char *__restrict __fmt, __gnuc_va_list __arg) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); 29724: extern int __obstack_printf_chk (struct obstack *__restrict __obstack, 29724: int __flag, const char *__restrict __format, 29724: ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 29724: extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, 29724: int __flag, 29724: const char *__restrict __format, 29724: __gnuc_va_list __args) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 29724: # 96 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 29724: extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) 29724: ; 29724: 29724: extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, 29724: FILE *__restrict __stream) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 29724: 29724: extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) 29724: ; 29724: 29724: extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, 29724: size_t __size, size_t __n, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 29724: 29724: 29724: extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) 29724: ; 29724: 29724: 29724: extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, 29724: int __n, FILE *__restrict __stream) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 29724: 29724: 29724: 29724: 29724: extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: 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") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) 29724: ; 29724: 29724: extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, 29724: size_t __size, size_t __n, 29724: FILE *__restrict __stream) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 29724: # 955 "/usr/include/stdio.h" 2 3 4 29724: # 966 "/usr/include/stdio.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 1 3 4 29724: # 46 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 3 4 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: getchar (void) 29724: { 29724: return getc (stdin); 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: fgetc_unlocked (FILE *__fp) 29724: { 29724: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: getc_unlocked (FILE *__fp) 29724: { 29724: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: getchar_unlocked (void) 29724: { 29724: return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: putchar (int __c) 29724: { 29724: return putc (__c, stdout); 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: fputc_unlocked (int __c, FILE *__stream) 29724: { 29724: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: putc_unlocked (int __c, FILE *__stream) 29724: { 29724: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: putchar_unlocked (int __c) 29724: { 29724: return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) __ssize_t 29724: getline (char **__lineptr, size_t *__n, FILE *__stream) 29724: { 29724: return __getdelim (__lineptr, __n, '\n', __stream); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) noexcept (true) 29724: { 29724: return (((__stream)->_flags & 0x0010) != 0); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) noexcept (true) 29724: { 29724: return (((__stream)->_flags & 0x0020) != 0); 29724: } 29724: # 967 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) noexcept (true) 29724: { 29724: return __builtin___sprintf_chk (__s, 2 - 1, 29724: __builtin_object_size (__s, 2 > 1), __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: # 54 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) vsprintf (char * __restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29724: 29724: { 29724: return __builtin___vsprintf_chk (__s, 2 - 1, 29724: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) noexcept (true) 29724: 29724: { 29724: return __builtin___snprintf_chk (__s, __n, 2 - 1, 29724: __builtin_object_size (__s, 2 > 1), __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: # 92 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) vsnprintf (char * __restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return __builtin___vsnprintf_chk (__s, __n, 2 - 1, 29724: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 29724: fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) 29724: { 29724: return __fprintf_chk (__stream, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: printf (const char *__restrict __fmt, ...) 29724: { 29724: return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 29724: } 29724: # 151 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: vprintf (const char * __restrict __fmt, 29724: __gnuc_va_list __ap) 29724: { 29724: 29724: return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); 29724: 29724: 29724: 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 29724: vfprintf (FILE *__restrict __stream, 29724: const char *__restrict __fmt, __gnuc_va_list __ap) 29724: { 29724: return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: dprintf (int __fd, const char *__restrict __fmt, ...) 29724: { 29724: return __dprintf_chk (__fd, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: # 194 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) 29724: { 29724: return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 29724: { 29724: return __asprintf_chk (__ptr, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 29724: 29724: { 29724: return __asprintf_chk (__ptr, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) noexcept (true) 29724: 29724: { 29724: return __obstack_printf_chk (__obstack, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: # 271 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29724: 29724: { 29724: return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29724: 29724: { 29724: return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, 29724: __ap); 29724: } 29724: # 303 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 29724: __attribute__ ((__nonnull__ (3))) char * 29724: fgets (char * __restrict __s, int __n, 29724: FILE *__restrict __stream) 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))))) 29724: return __fgets_alias (__s, __n, __stream); 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (char)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (char))))) 29724: return __fgets_chk_warn (__s, __sz, __n, __stream); 29724: 29724: return __fgets_chk (__s, __sz, __n, __stream); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 29724: fread (void * __restrict __ptr, 29724: size_t __size, size_t __n, FILE *__restrict __stream) 29724: 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__ptr, 0); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((__size)))) && (((unsigned int) (__n)) <= ((__sz)) / ((__size)))))) 29724: return __fread_alias (__ptr, __size, __n, __stream); 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (__size))) && !(((unsigned int) (__n)) <= (__sz) / (__size)))) 29724: return __fread_chk_warn (__ptr, __sz, __size, __n, __stream); 29724: 29724: return __fread_chk (__ptr, __sz, __size, __n, __stream); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 29724: __attribute__ ((__nonnull__ (3))) char * 29724: fgets_unlocked (char * __restrict __s, 29724: int __n, FILE *__restrict __stream) 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))))) 29724: return __fgets_unlocked_alias (__s, __n, __stream); 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (char)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (char))))) 29724: return __fgets_unlocked_chk_warn (__s, __sz, __n, __stream); 29724: 29724: return __fgets_unlocked_chk (__s, __sz, __n, __stream); 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 29724: fread_unlocked (void * __restrict __ptr, 29724: size_t __size, size_t __n, FILE *__restrict __stream) 29724: 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__ptr, 0); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((__size)))) && (((unsigned int) (__n)) <= ((__sz)) / ((__size)))))) 29724: { 29724: 29724: if (__builtin_constant_p (__size) 29724: && __builtin_constant_p (__n) 29724: && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) 29724: && __size * __n <= 8) 29724: { 29724: size_t __cnt = __size * __n; 29724: char *__cptr = (char *) __ptr; 29724: if (__cnt == 0) 29724: return 0; 29724: 29724: for (; __cnt > 0; --__cnt) 29724: { 29724: int __c = getc_unlocked (__stream); 29724: if (__c == (-1)) 29724: break; 29724: *__cptr++ = __c; 29724: } 29724: return (__cptr - (char *) __ptr) / __size; 29724: } 29724: 29724: return __fread_unlocked_alias (__ptr, __size, __n, __stream); 29724: } 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (__size))) && !(((unsigned int) (__n)) <= (__sz) / (__size)))) 29724: return __fread_unlocked_chk_warn (__ptr, __sz, __size, __n, __stream); 29724: 29724: return __fread_unlocked_chk (__ptr, __sz, __size, __n, __stream); 29724: 29724: } 29724: # 971 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: } 29724: # 43 "/usr/include/c++/14/cstdio" 2 3 29724: # 96 "/usr/include/c++/14/cstdio" 3 29724: namespace std 29724: { 29724: using ::FILE; 29724: using ::fpos_t; 29724: 29724: using ::clearerr; 29724: using ::fclose; 29724: using ::feof; 29724: using ::ferror; 29724: using ::fflush; 29724: using ::fgetc; 29724: using ::fgetpos; 29724: using ::fgets; 29724: using ::fopen; 29724: using ::fprintf; 29724: using ::fputc; 29724: using ::fputs; 29724: using ::fread; 29724: using ::freopen; 29724: using ::fscanf; 29724: using ::fseek; 29724: using ::fsetpos; 29724: using ::ftell; 29724: using ::fwrite; 29724: using ::getc; 29724: using ::getchar; 29724: 29724: 29724: 29724: 29724: using ::perror; 29724: using ::printf; 29724: using ::putc; 29724: using ::putchar; 29724: using ::puts; 29724: using ::remove; 29724: using ::rename; 29724: using ::rewind; 29724: using ::scanf; 29724: using ::setbuf; 29724: using ::setvbuf; 29724: using ::sprintf; 29724: using ::sscanf; 29724: using ::tmpfile; 29724: 29724: using ::tmpnam; 29724: 29724: using ::ungetc; 29724: using ::vfprintf; 29724: using ::vprintf; 29724: using ::vsprintf; 29724: } 29724: # 157 "/usr/include/c++/14/cstdio" 3 29724: namespace __gnu_cxx 29724: { 29724: # 175 "/usr/include/c++/14/cstdio" 3 29724: using ::snprintf; 29724: using ::vfscanf; 29724: using ::vscanf; 29724: using ::vsnprintf; 29724: using ::vsscanf; 29724: 29724: } 29724: 29724: namespace std 29724: { 29724: using ::__gnu_cxx::snprintf; 29724: using ::__gnu_cxx::vfscanf; 29724: using ::__gnu_cxx::vscanf; 29724: using ::__gnu_cxx::vsnprintf; 29724: using ::__gnu_cxx::vsscanf; 29724: } 29724: # 46 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29724: # 1 "/usr/include/c++/14/cerrno" 1 3 29724: # 39 "/usr/include/c++/14/cerrno" 3 29724: 29724: # 40 "/usr/include/c++/14/cerrno" 3 29724: 29724: 29724: # 1 "/usr/include/errno.h" 1 3 4 29724: # 28 "/usr/include/errno.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 3 4 29724: # 1 "/usr/include/linux/errno.h" 1 3 4 29724: # 1 "/usr/lib/linux/uapi/arm/asm/errno.h" 1 3 4 29724: # 1 "/usr/include/asm-generic/errno.h" 1 3 4 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 29724: # 6 "/usr/include/asm-generic/errno.h" 2 3 4 29724: # 2 "/usr/lib/linux/uapi/arm/asm/errno.h" 2 3 4 29724: # 2 "/usr/include/linux/errno.h" 2 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 2 3 4 29724: # 29 "/usr/include/errno.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: 29724: 29724: extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *program_invocation_name; 29724: extern char *program_invocation_short_name; 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 1 3 4 29724: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 3 4 29724: typedef int error_t; 29724: # 49 "/usr/include/errno.h" 2 3 4 29724: 29724: 29724: 29724: } 29724: # 43 "/usr/include/c++/14/cerrno" 2 3 29724: # 47 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: _Ret 29724: __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), 29724: const char* __name, const _CharT* __str, std::size_t* __idx, 29724: _Base... __base) 29724: { 29724: _Ret __ret; 29724: 29724: _CharT* __endptr; 29724: 29724: struct _Save_errno { 29724: _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } 29724: ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } 29724: int _M_errno; 29724: } const __save_errno; 29724: 29724: struct _Range_chk { 29724: static bool 29724: _S_chk(_TRet, std::false_type) { return false; } 29724: 29724: static bool 29724: _S_chk(_TRet __val, std::true_type) 29724: { 29724: return __val < _TRet(__numeric_traits::__min) 29724: || __val > _TRet(__numeric_traits::__max); 29724: } 29724: }; 29724: 29724: const _TRet __tmp = __convf(__str, &__endptr, __base...); 29724: 29724: if (__endptr == __str) 29724: std::__throw_invalid_argument(__name); 29724: else if ((*__errno_location ()) == 34 29724: || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) 29724: std::__throw_out_of_range(__name); 29724: else 29724: __ret = __tmp; 29724: 29724: if (__idx) 29724: *__idx = __endptr - __str; 29724: 29724: return __ret; 29724: } 29724: 29724: 29724: template 29724: _String 29724: __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, 29724: __builtin_va_list), std::size_t __n, 29724: const _CharT* __fmt, ...) 29724: { 29724: 29724: 29724: _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __n)); 29724: 29724: __builtin_va_list __args; 29724: __builtin_va_start(__args, __fmt); 29724: 29724: const int __len = __convf(__s, __n, __fmt, __args); 29724: 29724: __builtin_va_end(__args); 29724: 29724: return _String(__s, __s + __len); 29724: } 29724: 29724: 29724: } 29724: # 4155 "/usr/include/c++/14/bits/basic_string.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/charconv.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/charconv.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/charconv.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: template 29724: constexpr bool __integer_to_chars_is_unsigned 29724: = ! __gnu_cxx::__int_traits<_Tp>::__is_signed; 29724: 29724: 29724: 29724: template 29724: constexpr unsigned 29724: __to_chars_len(_Tp __value, int __base = 10) noexcept 29724: { 29724: 29724: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 29724: 29724: 29724: unsigned __n = 1; 29724: const unsigned __b2 = __base * __base; 29724: const unsigned __b3 = __b2 * __base; 29724: const unsigned long __b4 = __b3 * __base; 29724: for (;;) 29724: { 29724: if (__value < (unsigned)__base) return __n; 29724: if (__value < __b2) return __n + 1; 29724: if (__value < __b3) return __n + 2; 29724: if (__value < __b4) return __n + 3; 29724: __value /= __b4; 29724: __n += 4; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept 29724: { 29724: 29724: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 29724: 29724: 29724: constexpr char __digits[201] = 29724: "0001020304050607080910111213141516171819" 29724: "2021222324252627282930313233343536373839" 29724: "4041424344454647484950515253545556575859" 29724: "6061626364656667686970717273747576777879" 29724: "8081828384858687888990919293949596979899"; 29724: unsigned __pos = __len - 1; 29724: while (__val >= 100) 29724: { 29724: auto const __num = (__val % 100) * 2; 29724: __val /= 100; 29724: __first[__pos] = __digits[__num + 1]; 29724: __first[__pos - 1] = __digits[__num]; 29724: __pos -= 2; 29724: } 29724: if (__val >= 10) 29724: { 29724: auto const __num = __val * 2; 29724: __first[1] = __digits[__num + 1]; 29724: __first[0] = __digits[__num]; 29724: } 29724: else 29724: __first[0] = '0' + __val; 29724: } 29724: 29724: } 29724: 29724: } 29724: # 4156 "/usr/include/c++/14/bits/basic_string.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace __cxx11 { 29724: 29724: 29724: inline int 29724: stoi(const string& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline long 29724: stol(const string& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline unsigned long 29724: stoul(const string& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), 29724: __idx, __base); } 29724: 29724: 29724: inline long long 29724: stoll(const string& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline unsigned long long 29724: stoull(const string& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), 29724: __idx, __base); } 29724: # 4198 "/usr/include/c++/14/bits/basic_string.h" 3 29724: inline double 29724: stod(const string& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } 29724: 29724: 29724: 29724: inline float 29724: stof(const string& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } 29724: # 4226 "/usr/include/c++/14/bits/basic_string.h" 3 29724: inline long double 29724: stold(const string& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } 29724: # 4238 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(int __val) 29724: 29724: noexcept 29724: 29724: { 29724: const bool __neg = __val < 0; 29724: const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; 29724: const auto __len = __detail::__to_chars_len(__uval); 29724: string __str; 29724: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29724: __p[0] = '-'; 29724: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(unsigned __val) 29724: 29724: noexcept 29724: 29724: { 29724: const auto __len = __detail::__to_chars_len(__val); 29724: string __str; 29724: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29724: __detail::__to_chars_10_impl(__p, __n, __val); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(long __val) 29724: 29724: noexcept 29724: 29724: { 29724: const bool __neg = __val < 0; 29724: const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; 29724: const auto __len = __detail::__to_chars_len(__uval); 29724: string __str; 29724: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29724: __p[0] = '-'; 29724: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(unsigned long __val) 29724: 29724: noexcept 29724: 29724: { 29724: const auto __len = __detail::__to_chars_len(__val); 29724: string __str; 29724: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29724: __detail::__to_chars_10_impl(__p, __n, __val); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(long long __val) 29724: { 29724: const bool __neg = __val < 0; 29724: const unsigned long long __uval 29724: = __neg ? (unsigned long long)~__val + 1ull : __val; 29724: const auto __len = __detail::__to_chars_len(__uval); 29724: string __str; 29724: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29724: __p[0] = '-'; 29724: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(unsigned long long __val) 29724: { 29724: const auto __len = __detail::__to_chars_len(__val); 29724: string __str; 29724: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29724: __detail::__to_chars_10_impl(__p, __n, __val); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: # 4399 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(float __val) 29724: { 29724: const int __n = 29724: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29724: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29724: "%f", __val); 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(double __val) 29724: { 29724: const int __n = 29724: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29724: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29724: "%f", __val); 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(long double __val) 29724: { 29724: const int __n = 29724: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29724: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29724: "%Lf", __val); 29724: } 29724: 29724: 29724: 29724: inline int 29724: stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline long 29724: stol(const wstring& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline unsigned long 29724: stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline long long 29724: stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline unsigned long long 29724: stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), 29724: __idx, __base); } 29724: 29724: 29724: inline float 29724: stof(const wstring& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } 29724: 29724: inline double 29724: stod(const wstring& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } 29724: 29724: inline long double 29724: stold(const wstring& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: 29724: inline void 29724: __to_wstring_numeric(const char* __s, int __len, wchar_t* __wout) 29724: { 29724: 29724: 29724: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 29724: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 29724: { 29724: for (int __i = 0; __i < __len; ++__i) 29724: __wout[__i] = (wchar_t) __s[__i]; 29724: } 29724: else 29724: { 29724: wchar_t __wc[256]; 29724: for (int __i = '0'; __i <= '9'; ++__i) 29724: __wc[__i] = L'0' + __i; 29724: __wc['.'] = L'.'; 29724: __wc['+'] = L'+'; 29724: __wc['-'] = L'-'; 29724: __wc['a'] = L'a'; 29724: __wc['b'] = L'b'; 29724: __wc['c'] = L'c'; 29724: __wc['d'] = L'd'; 29724: __wc['e'] = L'e'; 29724: __wc['f'] = L'f'; 29724: __wc['n'] = L'n'; 29724: __wc['p'] = L'p'; 29724: __wc['x'] = L'x'; 29724: __wc['A'] = L'A'; 29724: __wc['B'] = L'B'; 29724: __wc['C'] = L'C'; 29724: __wc['D'] = L'D'; 29724: __wc['E'] = L'E'; 29724: __wc['F'] = L'F'; 29724: __wc['N'] = L'N'; 29724: __wc['P'] = L'P'; 29724: __wc['X'] = L'X'; 29724: 29724: for (int __i = 0; __i < __len; ++__i) 29724: __wout[__i] = __wc[(int)__s[__i]]; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: inline wstring 29724: 29724: __to_wstring_numeric(string_view __s) 29724: 29724: 29724: 29724: { 29724: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 29724: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 29724: return wstring(__s.data(), __s.data() + __s.size()); 29724: else 29724: { 29724: wstring __ws; 29724: auto __f = __s.data(); 29724: __ws.__resize_and_overwrite(__s.size(), 29724: [__f] (wchar_t* __to, int __n) { 29724: std::__to_wstring_numeric(__f, __n, __to); 29724: return __n; 29724: }); 29724: return __ws; 29724: } 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(int __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(unsigned __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(long __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(unsigned long __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(long long __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(unsigned long long __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(float __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(double __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(long double __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: 29724: 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: template, _Alloc>> 29724: struct __str_hash_base 29724: : public __hash_base 29724: { 29724: [[__nodiscard__]] 29724: size_t 29724: operator()(const _StrT& __s) const noexcept 29724: { return _Hash_impl::hash(__s.data(), __s.length() * sizeof(_CharT)); } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct hash, _Alloc>> 29724: : public __str_hash_base 29724: { }; 29724: 29724: 29724: template 29724: struct hash, _Alloc>> 29724: : public __str_hash_base 29724: { }; 29724: 29724: template 29724: struct __is_fast_hash, 29724: _Alloc>>> 29724: : std::false_type 29724: { }; 29724: # 4649 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: struct hash, _Alloc>> 29724: : public __str_hash_base 29724: { }; 29724: 29724: 29724: template 29724: struct hash, _Alloc>> 29724: : public __str_hash_base 29724: { }; 29724: 29724: 29724: 29724: template<> struct __is_fast_hash> : std::false_type { }; 29724: template<> struct __is_fast_hash> : std::false_type { }; 29724: template<> struct __is_fast_hash> : std::false_type { }; 29724: template<> struct __is_fast_hash> : std::false_type { }; 29724: # 4678 "/usr/include/c++/14/bits/basic_string.h" 3 29724: inline namespace literals 29724: { 29724: inline namespace string_literals 29724: { 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: inline basic_string 29724: operator""s(const char* __str, size_t __len) 29724: { return basic_string{__str, __len}; } 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: inline basic_string 29724: operator""s(const wchar_t* __str, size_t __len) 29724: { return basic_string{__str, __len}; } 29724: # 4708 "/usr/include/c++/14/bits/basic_string.h" 3 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: inline basic_string 29724: operator""s(const char16_t* __str, size_t __len) 29724: { return basic_string{__str, __len}; } 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: inline basic_string 29724: operator""s(const char32_t* __str, size_t __len) 29724: { return basic_string{__str, __len}; } 29724: 29724: 29724: #pragma GCC diagnostic pop 29724: } 29724: } 29724: 29724: 29724: 29724: namespace __detail::__variant 29724: { 29724: template struct _Never_valueless_alt; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : __and_< 29724: is_nothrow_move_constructible>, 29724: is_nothrow_move_assignable> 29724: >::type 29724: { }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 55 "/usr/include/c++/14/string" 2 3 29724: # 1 "/usr/include/c++/14/bits/basic_string.tcc" 1 3 29724: # 42 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: 29724: # 43 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: const typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>::npos; 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: swap(basic_string& __s) noexcept 29724: { 29724: if (this == std::__addressof(__s)) 29724: return; 29724: 29724: _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); 29724: 29724: if (_M_is_local()) 29724: if (__s._M_is_local()) 29724: { 29724: if (length() && __s.length()) 29724: { 29724: _CharT __tmp_data[_S_local_capacity + 1]; 29724: traits_type::copy(__tmp_data, __s._M_local_buf, 29724: __s.length() + 1); 29724: traits_type::copy(__s._M_local_buf, _M_local_buf, 29724: length() + 1); 29724: traits_type::copy(_M_local_buf, __tmp_data, 29724: __s.length() + 1); 29724: } 29724: else if (__s.length()) 29724: { 29724: _M_init_local_buf(); 29724: traits_type::copy(_M_local_buf, __s._M_local_buf, 29724: __s.length() + 1); 29724: _M_length(__s.length()); 29724: __s._M_set_length(0); 29724: return; 29724: } 29724: else if (length()) 29724: { 29724: __s._M_init_local_buf(); 29724: traits_type::copy(__s._M_local_buf, _M_local_buf, 29724: length() + 1); 29724: __s._M_length(length()); 29724: _M_set_length(0); 29724: return; 29724: } 29724: } 29724: else 29724: { 29724: const size_type __tmp_capacity = __s._M_allocated_capacity; 29724: __s._M_init_local_buf(); 29724: traits_type::copy(__s._M_local_buf, _M_local_buf, 29724: length() + 1); 29724: _M_data(__s._M_data()); 29724: __s._M_data(__s._M_local_buf); 29724: _M_capacity(__tmp_capacity); 29724: } 29724: else 29724: { 29724: const size_type __tmp_capacity = _M_allocated_capacity; 29724: if (__s._M_is_local()) 29724: { 29724: _M_init_local_buf(); 29724: traits_type::copy(_M_local_buf, __s._M_local_buf, 29724: __s.length() + 1); 29724: __s._M_data(_M_data()); 29724: _M_data(_M_local_buf); 29724: } 29724: else 29724: { 29724: pointer __tmp_ptr = _M_data(); 29724: _M_data(__s._M_data()); 29724: __s._M_data(__tmp_ptr); 29724: _M_capacity(__s._M_allocated_capacity); 29724: } 29724: __s._M_capacity(__tmp_capacity); 29724: } 29724: 29724: const size_type __tmp_length = length(); 29724: _M_length(__s.length()); 29724: __s._M_length(__tmp_length); 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::pointer 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_create(size_type& __capacity, size_type __old_capacity) 29724: { 29724: 29724: 29724: if (__capacity > max_size()) 29724: std::__throw_length_error(("basic_string::_M_create")); 29724: 29724: 29724: 29724: 29724: if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) 29724: { 29724: __capacity = 2 * __old_capacity; 29724: 29724: if (__capacity > max_size()) 29724: __capacity = max_size(); 29724: } 29724: 29724: 29724: 29724: return _S_allocate(_M_get_allocator(), __capacity + 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_construct(_InIterator __beg, _InIterator __end, 29724: std::input_iterator_tag) 29724: { 29724: size_type __len = 0; 29724: size_type __capacity = size_type(_S_local_capacity); 29724: 29724: _M_init_local_buf(); 29724: 29724: while (__beg != __end && __len < __capacity) 29724: { 29724: _M_local_buf[__len++] = *__beg; 29724: ++__beg; 29724: } 29724: 29724: struct _Guard 29724: { 29724: 29724: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 29724: 29724: 29724: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 29724: 29724: basic_string* _M_guarded; 29724: } __guard(this); 29724: 29724: while (__beg != __end) 29724: { 29724: if (__len == __capacity) 29724: { 29724: 29724: __capacity = __len + 1; 29724: pointer __another = _M_create(__capacity, __len); 29724: this->_S_copy(__another, _M_data(), __len); 29724: _M_dispose(); 29724: _M_data(__another); 29724: _M_capacity(__capacity); 29724: } 29724: traits_type::assign(_M_data()[__len++], *__beg); 29724: ++__beg; 29724: } 29724: 29724: __guard._M_guarded = 0; 29724: 29724: _M_set_length(__len); 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_construct(_InIterator __beg, _InIterator __end, 29724: std::forward_iterator_tag) 29724: { 29724: size_type __dnew = static_cast(std::distance(__beg, __end)); 29724: 29724: if (__dnew > size_type(_S_local_capacity)) 29724: { 29724: _M_data(_M_create(__dnew, size_type(0))); 29724: _M_capacity(__dnew); 29724: } 29724: else 29724: _M_init_local_buf(); 29724: 29724: 29724: struct _Guard 29724: { 29724: 29724: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 29724: 29724: 29724: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 29724: 29724: basic_string* _M_guarded; 29724: } __guard(this); 29724: 29724: this->_S_copy_chars(_M_data(), __beg, __end); 29724: 29724: __guard._M_guarded = 0; 29724: 29724: _M_set_length(__dnew); 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_construct(size_type __n, _CharT __c) 29724: { 29724: if (__n > size_type(_S_local_capacity)) 29724: { 29724: _M_data(_M_create(__n, size_type(0))); 29724: _M_capacity(__n); 29724: } 29724: else 29724: _M_init_local_buf(); 29724: 29724: if (__n) 29724: this->_S_assign(_M_data(), __n, __c); 29724: 29724: _M_set_length(__n); 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_assign(const basic_string& __str) 29724: { 29724: if (this != std::__addressof(__str)) 29724: { 29724: const size_type __rsize = __str.length(); 29724: const size_type __capacity = capacity(); 29724: 29724: if (__rsize > __capacity) 29724: { 29724: size_type __new_capacity = __rsize; 29724: pointer __tmp = _M_create(__new_capacity, __capacity); 29724: _M_dispose(); 29724: _M_data(__tmp); 29724: _M_capacity(__new_capacity); 29724: } 29724: 29724: if (__rsize) 29724: this->_S_copy(_M_data(), __str._M_data(), __rsize); 29724: 29724: _M_set_length(__rsize); 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: reserve(size_type __res) 29724: { 29724: const size_type __capacity = capacity(); 29724: 29724: 29724: 29724: 29724: if (__res <= __capacity) 29724: return; 29724: 29724: pointer __tmp = _M_create(__res, __capacity); 29724: this->_S_copy(__tmp, _M_data(), length() + 1); 29724: _M_dispose(); 29724: _M_data(__tmp); 29724: _M_capacity(__res); 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 29724: size_type __len2) 29724: { 29724: const size_type __how_much = length() - __pos - __len1; 29724: 29724: size_type __new_capacity = length() + __len2 - __len1; 29724: pointer __r = _M_create(__new_capacity, capacity()); 29724: 29724: if (__pos) 29724: this->_S_copy(__r, _M_data(), __pos); 29724: if (__s && __len2) 29724: this->_S_copy(__r + __pos, __s, __len2); 29724: if (__how_much) 29724: this->_S_copy(__r + __pos + __len2, 29724: _M_data() + __pos + __len1, __how_much); 29724: 29724: _M_dispose(); 29724: _M_data(__r); 29724: _M_capacity(__new_capacity); 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_erase(size_type __pos, size_type __n) 29724: { 29724: const size_type __how_much = length() - __pos - __n; 29724: 29724: if (__how_much && __n) 29724: this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); 29724: 29724: _M_set_length(length() - __n); 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: reserve() 29724: { 29724: if (_M_is_local()) 29724: return; 29724: 29724: const size_type __length = length(); 29724: const size_type __capacity = _M_allocated_capacity; 29724: 29724: if (__length <= size_type(_S_local_capacity)) 29724: { 29724: _M_init_local_buf(); 29724: this->_S_copy(_M_local_buf, _M_data(), __length + 1); 29724: _M_destroy(__capacity); 29724: _M_data(_M_local_data()); 29724: } 29724: 29724: else if (__length < __capacity) 29724: try 29724: { 29724: pointer __tmp = _S_allocate(_M_get_allocator(), __length + 1); 29724: this->_S_copy(__tmp, _M_data(), __length + 1); 29724: _M_dispose(); 29724: _M_data(__tmp); 29724: _M_capacity(__length); 29724: } 29724: catch (const __cxxabiv1::__forced_unwind&) 29724: { throw; } 29724: catch (...) 29724: { } 29724: 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: resize(size_type __n, _CharT __c) 29724: { 29724: const size_type __size = this->size(); 29724: if (__size < __n) 29724: this->append(__n - __size, __c); 29724: else if (__n < __size) 29724: this->_M_set_length(__n); 29724: } 29724: 29724: template 29724: 29724: basic_string<_CharT, _Traits, _Alloc>& 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_append(const _CharT* __s, size_type __n) 29724: { 29724: const size_type __len = __n + this->size(); 29724: 29724: if (__len <= this->capacity()) 29724: { 29724: if (__n) 29724: this->_S_copy(this->_M_data() + this->size(), __s, __n); 29724: } 29724: else 29724: this->_M_mutate(this->size(), size_type(0), __s, __n); 29724: 29724: this->_M_set_length(__len); 29724: return *this; 29724: } 29724: 29724: template 29724: template 29724: 29724: basic_string<_CharT, _Traits, _Alloc>& 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29724: _InputIterator __k1, _InputIterator __k2, 29724: std::__false_type) 29724: { 29724: 29724: 29724: const basic_string __s(__k1, __k2, this->get_allocator()); 29724: const size_type __n1 = __i2 - __i1; 29724: return _M_replace(__i1 - begin(), __n1, __s._M_data(), 29724: __s.size()); 29724: } 29724: 29724: template 29724: 29724: basic_string<_CharT, _Traits, _Alloc>& 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 29724: _CharT __c) 29724: { 29724: _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); 29724: 29724: const size_type __old_size = this->size(); 29724: const size_type __new_size = __old_size + __n2 - __n1; 29724: 29724: if (__new_size <= this->capacity()) 29724: { 29724: pointer __p = this->_M_data() + __pos1; 29724: 29724: const size_type __how_much = __old_size - __pos1 - __n1; 29724: if (__how_much && __n1 != __n2) 29724: this->_S_move(__p + __n2, __p + __n1, __how_much); 29724: } 29724: else 29724: this->_M_mutate(__pos1, __n1, 0, __n2); 29724: 29724: if (__n2) 29724: this->_S_assign(this->_M_data() + __pos1, __n2, __c); 29724: 29724: this->_M_set_length(__new_size); 29724: return *this; 29724: } 29724: 29724: template 29724: __attribute__((__noinline__, __noclone__, __cold__)) void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 29724: const size_type __len2, const size_type __how_much) 29724: { 29724: 29724: if (__len2 && __len2 <= __len1) 29724: this->_S_move(__p, __s, __len2); 29724: if (__how_much && __len1 != __len2) 29724: this->_S_move(__p + __len2, __p + __len1, __how_much); 29724: if (__len2 > __len1) 29724: { 29724: if (__s + __len2 <= __p + __len1) 29724: this->_S_move(__p, __s, __len2); 29724: else if (__s >= __p + __len1) 29724: { 29724: 29724: 29724: const size_type __poff = (__s - __p) + (__len2 - __len1); 29724: this->_S_copy(__p, __p + __poff, __len2); 29724: } 29724: else 29724: { 29724: const size_type __nleft = (__p + __len1) - __s; 29724: this->_S_move(__p, __s, __nleft); 29724: this->_S_copy(__p + __nleft, __p + __len2, __len2 - __nleft); 29724: } 29724: } 29724: } 29724: 29724: template 29724: 29724: basic_string<_CharT, _Traits, _Alloc>& 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 29724: const size_type __len2) 29724: { 29724: _M_check_length(__len1, __len2, "basic_string::_M_replace"); 29724: 29724: const size_type __old_size = this->size(); 29724: const size_type __new_size = __old_size + __len2 - __len1; 29724: 29724: if (__new_size <= this->capacity()) 29724: { 29724: pointer __p = this->_M_data() + __pos; 29724: 29724: const size_type __how_much = __old_size - __pos - __len1; 29724: # 537 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: if (__builtin_expect(_M_disjunct(__s), true)) 29724: { 29724: if (__how_much && __len1 != __len2) 29724: this->_S_move(__p + __len2, __p + __len1, __how_much); 29724: if (__len2) 29724: this->_S_copy(__p, __s, __len2); 29724: } 29724: else 29724: _M_replace_cold(__p, __len1, __s, __len2, __how_much); 29724: } 29724: else 29724: this->_M_mutate(__pos, __len1, __s, __len2); 29724: 29724: this->_M_set_length(__new_size); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: copy(_CharT* __s, size_type __n, size_type __pos) const 29724: { 29724: _M_check(__pos, "basic_string::copy"); 29724: __n = _M_limit(__pos, __n); 29724: ; 29724: if (__n) 29724: _S_copy(__s, _M_data() + __pos, __n); 29724: 29724: return __n; 29724: } 29724: # 580 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: template 29724: template 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: 29724: 29724: 29724: __resize_and_overwrite(const size_type __n, _Operation __op) 29724: 29724: { 29724: reserve(__n); 29724: _CharT* const __p = _M_data(); 29724: 29724: 29724: 29724: 29724: struct _Terminator { 29724: ~_Terminator() { _M_this->_M_set_length(_M_r); } 29724: basic_string* _M_this; 29724: size_type _M_r; 29724: }; 29724: _Terminator __term{this, 0}; 29724: auto __r = std::move(__op)(__p + 0, __n + 0); 29724: 29724: 29724: 29724: static_assert(__gnu_cxx::__is_integer_nonstrict::__value, 29724: "resize_and_overwrite operation must return an integer"); 29724: 29724: ; 29724: __term._M_r = size_type(__r); 29724: if (__term._M_r > __n) 29724: __builtin_unreachable(); 29724: } 29724: # 623 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: const size_type __size = this->size(); 29724: 29724: if (__n == 0) 29724: return __pos <= __size ? __pos : npos; 29724: if (__pos >= __size) 29724: return npos; 29724: 29724: const _CharT __elem0 = __s[0]; 29724: const _CharT* const __data = data(); 29724: const _CharT* __first = __data + __pos; 29724: const _CharT* const __last = __data + __size; 29724: size_type __len = __size - __pos; 29724: 29724: while (__len >= __n) 29724: { 29724: 29724: __first = traits_type::find(__first, __len - __n + 1, __elem0); 29724: if (!__first) 29724: return npos; 29724: 29724: 29724: 29724: if (traits_type::compare(__first, __s, __n) == 0) 29724: return __first - __data; 29724: __len = __last - ++__first; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __ret = npos; 29724: const size_type __size = this->size(); 29724: if (__pos < __size) 29724: { 29724: const _CharT* __data = _M_data(); 29724: const size_type __n = __size - __pos; 29724: const _CharT* __p = traits_type::find(__data + __pos, __n, __c); 29724: if (__p) 29724: __ret = __p - __data; 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: rfind(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: const size_type __size = this->size(); 29724: if (__n <= __size) 29724: { 29724: __pos = std::min(size_type(__size - __n), __pos); 29724: const _CharT* __data = _M_data(); 29724: do 29724: { 29724: if (traits_type::compare(__data + __pos, __s, __n) == 0) 29724: return __pos; 29724: } 29724: while (__pos-- > 0); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: rfind(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __size = this->size(); 29724: if (__size) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: for (++__size; __size-- > 0; ) 29724: if (traits_type::eq(_M_data()[__size], __c)) 29724: return __size; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: for (; __n && __pos < this->size(); ++__pos) 29724: { 29724: const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); 29724: if (__p) 29724: return __pos; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: size_type __size = this->size(); 29724: if (__size && __n) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (traits_type::find(__s, __n, _M_data()[__size])) 29724: return __size; 29724: } 29724: while (__size-- != 0); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: for (; __pos < this->size(); ++__pos) 29724: if (!traits_type::find(__s, __n, _M_data()[__pos])) 29724: return __pos; 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_first_not_of(_CharT __c, size_type __pos) const noexcept 29724: { 29724: for (; __pos < this->size(); ++__pos) 29724: if (!traits_type::eq(_M_data()[__pos], __c)) 29724: return __pos; 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: size_type __size = this->size(); 29724: if (__size) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (!traits_type::find(__s, __n, _M_data()[__size])) 29724: return __size; 29724: } 29724: while (__size--); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_last_not_of(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __size = this->size(); 29724: if (__size) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (!traits_type::eq(_M_data()[__size], __c)) 29724: return __size; 29724: } 29724: while (__size--); 29724: } 29724: return npos; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: operator>>(basic_istream<_CharT, _Traits>& __in, 29724: basic_string<_CharT, _Traits, _Alloc>& __str) 29724: { 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29724: typedef typename __istream_type::ios_base __ios_base; 29724: typedef typename __istream_type::int_type __int_type; 29724: typedef typename __string_type::size_type __size_type; 29724: typedef ctype<_CharT> __ctype_type; 29724: typedef typename __ctype_type::ctype_base __ctype_base; 29724: 29724: __size_type __extracted = 0; 29724: typename __ios_base::iostate __err = __ios_base::goodbit; 29724: typename __istream_type::sentry __cerb(__in, false); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: 29724: __str.erase(); 29724: _CharT __buf[128]; 29724: __size_type __len = 0; 29724: const streamsize __w = __in.width(); 29724: const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) 29724: : __str.max_size(); 29724: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29724: const __int_type __eof = _Traits::eof(); 29724: __int_type __c = __in.rdbuf()->sgetc(); 29724: 29724: while (__extracted < __n 29724: && !_Traits::eq_int_type(__c, __eof) 29724: && !__ct.is(__ctype_base::space, 29724: _Traits::to_char_type(__c))) 29724: { 29724: if (__len == sizeof(__buf) / sizeof(_CharT)) 29724: { 29724: __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); 29724: __len = 0; 29724: } 29724: __buf[__len++] = _Traits::to_char_type(__c); 29724: ++__extracted; 29724: __c = __in.rdbuf()->snextc(); 29724: } 29724: __str.append(__buf, __len); 29724: 29724: if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) 29724: __err |= __ios_base::eofbit; 29724: __in.width(0); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(__ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { 29724: 29724: 29724: 29724: __in._M_setstate(__ios_base::badbit); 29724: } 29724: } 29724: 29724: if (!__extracted) 29724: __err |= __ios_base::failbit; 29724: if (__err) 29724: __in.setstate(__err); 29724: return __in; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: getline(basic_istream<_CharT, _Traits>& __in, 29724: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 29724: { 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29724: typedef typename __istream_type::ios_base __ios_base; 29724: typedef typename __istream_type::int_type __int_type; 29724: typedef typename __string_type::size_type __size_type; 29724: 29724: __size_type __extracted = 0; 29724: const __size_type __n = __str.max_size(); 29724: typename __ios_base::iostate __err = __ios_base::goodbit; 29724: typename __istream_type::sentry __cerb(__in, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: __str.erase(); 29724: const __int_type __idelim = _Traits::to_int_type(__delim); 29724: const __int_type __eof = _Traits::eof(); 29724: __int_type __c = __in.rdbuf()->sgetc(); 29724: 29724: while (__extracted < __n 29724: && !_Traits::eq_int_type(__c, __eof) 29724: && !_Traits::eq_int_type(__c, __idelim)) 29724: { 29724: __str += _Traits::to_char_type(__c); 29724: ++__extracted; 29724: __c = __in.rdbuf()->snextc(); 29724: } 29724: 29724: if (_Traits::eq_int_type(__c, __eof)) 29724: __err |= __ios_base::eofbit; 29724: else if (_Traits::eq_int_type(__c, __idelim)) 29724: { 29724: ++__extracted; 29724: __in.rdbuf()->sbumpc(); 29724: } 29724: else 29724: __err |= __ios_base::failbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(__ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { 29724: 29724: 29724: 29724: __in._M_setstate(__ios_base::badbit); 29724: } 29724: } 29724: if (!__extracted) 29724: __err |= __ios_base::failbit; 29724: if (__err) 29724: __in.setstate(__err); 29724: return __in; 29724: } 29724: # 977 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: extern template class basic_string; 29724: # 990 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: extern template 29724: basic_istream& 29724: operator>>(basic_istream&, string&); 29724: extern template 29724: basic_ostream& 29724: operator<<(basic_ostream&, const string&); 29724: extern template 29724: basic_istream& 29724: getline(basic_istream&, string&, char); 29724: extern template 29724: basic_istream& 29724: getline(basic_istream&, string&); 29724: 29724: 29724: 29724: extern template class basic_string; 29724: # 1016 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: extern template 29724: basic_istream& 29724: operator>>(basic_istream&, wstring&); 29724: extern template 29724: basic_ostream& 29724: operator<<(basic_ostream&, const wstring&); 29724: extern template 29724: basic_istream& 29724: getline(basic_istream&, wstring&, wchar_t); 29724: extern template 29724: basic_istream& 29724: getline(basic_istream&, wstring&); 29724: 29724: 29724: 29724: 29724: } 29724: # 56 "/usr/include/c++/14/string" 2 3 29724: # 65 "/usr/include/c++/14/string" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 66 "/usr/include/c++/14/string" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr { 29724: template> 29724: using basic_string = std::basic_string<_CharT, _Traits, 29724: polymorphic_allocator<_CharT>>; 29724: using string = basic_string; 29724: 29724: 29724: 29724: using u16string = basic_string; 29724: using u32string = basic_string; 29724: using wstring = basic_string; 29724: } 29724: 29724: } 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/usr/include/c++/14/unordered_set" 1 3 29724: # 32 "/usr/include/c++/14/unordered_set" 3 29724: 29724: # 33 "/usr/include/c++/14/unordered_set" 3 29724: # 41 "/usr/include/c++/14/unordered_set" 3 29724: # 1 "/usr/include/c++/14/bits/unordered_set.h" 1 3 29724: # 38 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: using __uset_traits = __detail::_Hashtable_traits<_Cache, true, true>; 29724: 29724: template, 29724: typename _Pred = std::equal_to<_Value>, 29724: typename _Alloc = std::allocator<_Value>, 29724: typename _Tr = __uset_traits<__cache_default<_Value, _Hash>::value>> 29724: using __uset_hashtable = _Hashtable<_Value, _Value, _Alloc, 29724: __detail::_Identity, _Pred, _Hash, 29724: __detail::_Mod_range_hashing, 29724: __detail::_Default_ranged_hash, 29724: __detail::_Prime_rehash_policy, _Tr>; 29724: 29724: 29724: template 29724: using __umset_traits = __detail::_Hashtable_traits<_Cache, true, false>; 29724: 29724: template, 29724: typename _Pred = std::equal_to<_Value>, 29724: typename _Alloc = std::allocator<_Value>, 29724: typename _Tr = __umset_traits<__cache_default<_Value, _Hash>::value>> 29724: using __umset_hashtable = _Hashtable<_Value, _Value, _Alloc, 29724: __detail::_Identity, 29724: _Pred, _Hash, 29724: __detail::_Mod_range_hashing, 29724: __detail::_Default_ranged_hash, 29724: __detail::_Prime_rehash_policy, _Tr>; 29724: 29724: template 29724: class unordered_multiset; 29724: # 100 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template, 29724: typename _Pred = equal_to<_Value>, 29724: typename _Alloc = allocator<_Value>> 29724: class unordered_set 29724: { 29724: typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 29724: _Hashtable _M_h; 29724: 29724: public: 29724: 29724: 29724: 29724: typedef typename _Hashtable::key_type key_type; 29724: typedef typename _Hashtable::value_type value_type; 29724: typedef typename _Hashtable::hasher hasher; 29724: typedef typename _Hashtable::key_equal key_equal; 29724: typedef typename _Hashtable::allocator_type allocator_type; 29724: 29724: 29724: 29724: 29724: typedef typename _Hashtable::pointer pointer; 29724: typedef typename _Hashtable::const_pointer const_pointer; 29724: typedef typename _Hashtable::reference reference; 29724: typedef typename _Hashtable::const_reference const_reference; 29724: typedef typename _Hashtable::iterator iterator; 29724: typedef typename _Hashtable::const_iterator const_iterator; 29724: typedef typename _Hashtable::local_iterator local_iterator; 29724: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29724: typedef typename _Hashtable::size_type size_type; 29724: typedef typename _Hashtable::difference_type difference_type; 29724: 29724: 29724: 29724: using node_type = typename _Hashtable::node_type; 29724: using insert_return_type = typename _Hashtable::insert_return_type; 29724: 29724: 29724: 29724: 29724: 29724: unordered_set() = default; 29724: # 151 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: explicit 29724: unordered_set(size_type __n, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__n, __hf, __eql, __a) 29724: { } 29724: # 172 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: unordered_set(_InputIterator __first, _InputIterator __last, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__first, __last, __n, __hf, __eql, __a) 29724: { } 29724: 29724: 29724: unordered_set(const unordered_set&) = default; 29724: 29724: 29724: unordered_set(unordered_set&&) = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: unordered_set(const allocator_type& __a) 29724: : _M_h(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_set(const unordered_set& __uset, 29724: const allocator_type& __a) 29724: : _M_h(__uset._M_h, __a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_set(unordered_set&& __uset, 29724: const allocator_type& __a) 29724: noexcept( noexcept(_Hashtable(std::move(__uset._M_h), __a)) ) 29724: : _M_h(std::move(__uset._M_h), __a) 29724: { } 29724: # 228 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: unordered_set(initializer_list __l, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__l, __n, __hf, __eql, __a) 29724: { } 29724: 29724: unordered_set(size_type __n, const allocator_type& __a) 29724: : unordered_set(__n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_set(size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_set(__n, __hf, key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_set(_InputIterator __first, _InputIterator __last, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_set(_InputIterator __first, _InputIterator __last, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_set(__first, __last, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: unordered_set(initializer_list __l, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_set(__l, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_set(initializer_list __l, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_set(__l, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: 29724: unordered_set& 29724: operator=(const unordered_set&) = default; 29724: 29724: 29724: unordered_set& 29724: operator=(unordered_set&&) = default; 29724: # 290 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: unordered_set& 29724: operator=(initializer_list __l) 29724: { 29724: _M_h = __l; 29724: return *this; 29724: } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _M_h.get_allocator(); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_h.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_h.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_h.max_size(); } 29724: # 326 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: begin() noexcept 29724: { return _M_h.begin(); } 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_h.end(); } 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_h.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_h.end(); } 29724: # 382 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: std::pair 29724: emplace(_Args&&... __args) 29724: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29724: # 408 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29724: # 427 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: std::pair 29724: insert(const value_type& __x) 29724: { return _M_h.insert(__x); } 29724: 29724: std::pair 29724: insert(value_type&& __x) 29724: { return _M_h.insert(std::move(__x)); } 29724: # 456 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: insert(const_iterator __hint, const value_type& __x) 29724: { return _M_h.insert(__hint, __x); } 29724: 29724: iterator 29724: insert(const_iterator __hint, value_type&& __x) 29724: { return _M_h.insert(__hint, std::move(__x)); } 29724: # 474 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_h.insert(__first, __last); } 29724: # 486 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { _M_h.insert(__l); } 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_h.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __key) 29724: { return _M_h.extract(__key); } 29724: 29724: 29724: insert_return_type 29724: insert(node_type&& __nh) 29724: { return _M_h._M_reinsert_node(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator, node_type&& __nh) 29724: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 29724: # 529 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_h.erase(__position); } 29724: 29724: 29724: iterator 29724: erase(iterator __position) 29724: { return _M_h.erase(__position); } 29724: # 551 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_h.erase(__x); } 29724: # 569 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_h.erase(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_h.clear(); } 29724: # 592 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: swap(unordered_set& __x) 29724: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29724: { _M_h.swap(__x._M_h); } 29724: 29724: 29724: template 29724: friend class std::_Hash_merge_helper; 29724: 29724: template 29724: void 29724: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Hash_merge_helper; 29724: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Hash_merge_helper; 29724: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: hasher 29724: hash_function() const 29724: { return _M_h.hash_function(); } 29724: 29724: 29724: 29724: key_equal 29724: key_eq() const 29724: { return _M_h.key_eq(); } 29724: # 656 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_h.find(__x); } 29724: # 668 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_h.find(__x); } 29724: # 691 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_h.count(__x); } 29724: # 732 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_h.equal_range(__x); } 29724: # 744 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_h.equal_range(__x); } 29724: # 760 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: bucket_count() const noexcept 29724: { return _M_h.bucket_count(); } 29724: 29724: 29724: size_type 29724: max_bucket_count() const noexcept 29724: { return _M_h.max_bucket_count(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_size(size_type __n) const 29724: { return _M_h.bucket_size(__n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket(const key_type& __key) const 29724: { return _M_h.bucket(__key); } 29724: # 794 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: local_iterator 29724: begin(size_type __n) 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: begin(size_type __n) const 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: cbegin(size_type __n) const 29724: { return _M_h.cbegin(__n); } 29724: # 814 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: local_iterator 29724: end(size_type __n) 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: end(size_type __n) const 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: cend(size_type __n) const 29724: { return _M_h.cend(__n); } 29724: 29724: 29724: 29724: 29724: 29724: float 29724: load_factor() const noexcept 29724: { return _M_h.load_factor(); } 29724: 29724: 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_h.max_load_factor(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: max_load_factor(float __z) 29724: { _M_h.max_load_factor(__z); } 29724: # 855 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: rehash(size_type __n) 29724: { _M_h.rehash(__n); } 29724: # 866 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: reserve(size_type __n) 29724: { _M_h.reserve(__n); } 29724: 29724: template 29724: friend bool 29724: operator==(const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, 29724: const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&); 29724: }; 29724: 29724: 29724: 29724: template::value_type>, 29724: typename _Pred = 29724: equal_to::value_type>, 29724: typename _Allocator = 29724: allocator::value_type>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_set(_InputIterator, _InputIterator, 29724: unordered_set::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29724: -> unordered_set::value_type, 29724: _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename _Pred = equal_to<_Tp>, 29724: typename _Allocator = allocator<_Tp>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_set(initializer_list<_Tp>, 29724: unordered_set::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29724: -> unordered_set<_Tp, _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_set(_InputIterator, _InputIterator, 29724: unordered_set::size_type, _Allocator) 29724: -> unordered_set::value_type, 29724: hash< 29724: typename iterator_traits<_InputIterator>::value_type>, 29724: equal_to< 29724: typename iterator_traits<_InputIterator>::value_type>, 29724: _Allocator>; 29724: 29724: template, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_set(_InputIterator, _InputIterator, 29724: unordered_set::size_type, 29724: _Hash, _Allocator) 29724: -> unordered_set::value_type, 29724: _Hash, 29724: equal_to< 29724: typename iterator_traits<_InputIterator>::value_type>, 29724: _Allocator>; 29724: 29724: template> 29724: unordered_set(initializer_list<_Tp>, 29724: unordered_set::size_type, _Allocator) 29724: -> unordered_set<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_set(initializer_list<_Tp>, 29724: unordered_set::size_type, _Hash, _Allocator) 29724: -> unordered_set<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 29724: # 968 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template, 29724: typename _Pred = equal_to<_Value>, 29724: typename _Alloc = allocator<_Value>> 29724: class unordered_multiset 29724: { 29724: typedef __umset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 29724: _Hashtable _M_h; 29724: 29724: public: 29724: 29724: 29724: 29724: typedef typename _Hashtable::key_type key_type; 29724: typedef typename _Hashtable::value_type value_type; 29724: typedef typename _Hashtable::hasher hasher; 29724: typedef typename _Hashtable::key_equal key_equal; 29724: typedef typename _Hashtable::allocator_type allocator_type; 29724: 29724: 29724: 29724: 29724: typedef typename _Hashtable::pointer pointer; 29724: typedef typename _Hashtable::const_pointer const_pointer; 29724: typedef typename _Hashtable::reference reference; 29724: typedef typename _Hashtable::const_reference const_reference; 29724: typedef typename _Hashtable::iterator iterator; 29724: typedef typename _Hashtable::const_iterator const_iterator; 29724: typedef typename _Hashtable::local_iterator local_iterator; 29724: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29724: typedef typename _Hashtable::size_type size_type; 29724: typedef typename _Hashtable::difference_type difference_type; 29724: 29724: 29724: 29724: using node_type = typename _Hashtable::node_type; 29724: 29724: 29724: 29724: 29724: 29724: unordered_multiset() = default; 29724: # 1018 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: explicit 29724: unordered_multiset(size_type __n, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__n, __hf, __eql, __a) 29724: { } 29724: # 1039 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: unordered_multiset(_InputIterator __first, _InputIterator __last, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__first, __last, __n, __hf, __eql, __a) 29724: { } 29724: 29724: 29724: unordered_multiset(const unordered_multiset&) = default; 29724: 29724: 29724: unordered_multiset(unordered_multiset&&) = default; 29724: # 1065 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: unordered_multiset(initializer_list __l, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__l, __n, __hf, __eql, __a) 29724: { } 29724: 29724: 29724: unordered_multiset& 29724: operator=(const unordered_multiset&) = default; 29724: 29724: 29724: unordered_multiset& 29724: operator=(unordered_multiset&&) = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: unordered_multiset(const allocator_type& __a) 29724: : _M_h(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_multiset(const unordered_multiset& __umset, 29724: const allocator_type& __a) 29724: : _M_h(__umset._M_h, __a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_multiset(unordered_multiset&& __umset, 29724: const allocator_type& __a) 29724: noexcept( noexcept(_Hashtable(std::move(__umset._M_h), __a)) ) 29724: : _M_h(std::move(__umset._M_h), __a) 29724: { } 29724: 29724: unordered_multiset(size_type __n, const allocator_type& __a) 29724: : unordered_multiset(__n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_multiset(size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multiset(__n, __hf, key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_multiset(_InputIterator __first, _InputIterator __last, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_multiset(__first, __last, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_multiset(_InputIterator __first, _InputIterator __last, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multiset(__first, __last, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: unordered_multiset(initializer_list __l, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_multiset(__l, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_multiset(initializer_list __l, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multiset(__l, __n, __hf, key_equal(), __a) 29724: { } 29724: # 1157 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: unordered_multiset& 29724: operator=(initializer_list __l) 29724: { 29724: _M_h = __l; 29724: return *this; 29724: } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _M_h.get_allocator(); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_h.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_h.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_h.max_size(); } 29724: # 1193 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: begin() noexcept 29724: { return _M_h.begin(); } 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_h.end(); } 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_h.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_h.end(); } 29724: # 1241 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: iterator 29724: emplace(_Args&&... __args) 29724: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29724: # 1263 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29724: # 1276 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: insert(const value_type& __x) 29724: { return _M_h.insert(__x); } 29724: 29724: iterator 29724: insert(value_type&& __x) 29724: { return _M_h.insert(std::move(__x)); } 29724: # 1302 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: insert(const_iterator __hint, const value_type& __x) 29724: { return _M_h.insert(__hint, __x); } 29724: 29724: iterator 29724: insert(const_iterator __hint, value_type&& __x) 29724: { return _M_h.insert(__hint, std::move(__x)); } 29724: # 1319 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_h.insert(__first, __last); } 29724: # 1331 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { _M_h.insert(__l); } 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_h.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __key) 29724: { return _M_h.extract(__key); } 29724: 29724: 29724: iterator 29724: insert(node_type&& __nh) 29724: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 29724: # 1375 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_h.erase(__position); } 29724: 29724: 29724: iterator 29724: erase(iterator __position) 29724: { return _M_h.erase(__position); } 29724: # 1398 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_h.erase(__x); } 29724: # 1418 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_h.erase(__first, __last); } 29724: # 1429 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: clear() noexcept 29724: { _M_h.clear(); } 29724: # 1442 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: swap(unordered_multiset& __x) 29724: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29724: { _M_h.swap(__x._M_h); } 29724: 29724: 29724: template 29724: friend class std::_Hash_merge_helper; 29724: 29724: template 29724: void 29724: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper 29724: = _Hash_merge_helper; 29724: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper 29724: = _Hash_merge_helper; 29724: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: hasher 29724: hash_function() const 29724: { return _M_h.hash_function(); } 29724: 29724: 29724: 29724: key_equal 29724: key_eq() const 29724: { return _M_h.key_eq(); } 29724: # 1508 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_h.find(__x); } 29724: # 1520 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_h.find(__x); } 29724: # 1539 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_h.count(__x); } 29724: # 1577 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_h.equal_range(__x); } 29724: # 1589 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_h.equal_range(__x); } 29724: # 1605 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: bucket_count() const noexcept 29724: { return _M_h.bucket_count(); } 29724: 29724: 29724: size_type 29724: max_bucket_count() const noexcept 29724: { return _M_h.max_bucket_count(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_size(size_type __n) const 29724: { return _M_h.bucket_size(__n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket(const key_type& __key) const 29724: { return _M_h.bucket(__key); } 29724: # 1639 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: local_iterator 29724: begin(size_type __n) 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: begin(size_type __n) const 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: cbegin(size_type __n) const 29724: { return _M_h.cbegin(__n); } 29724: # 1659 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: local_iterator 29724: end(size_type __n) 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: end(size_type __n) const 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: cend(size_type __n) const 29724: { return _M_h.cend(__n); } 29724: 29724: 29724: 29724: 29724: 29724: float 29724: load_factor() const noexcept 29724: { return _M_h.load_factor(); } 29724: 29724: 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_h.max_load_factor(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: max_load_factor(float __z) 29724: { _M_h.max_load_factor(__z); } 29724: # 1700 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: rehash(size_type __n) 29724: { _M_h.rehash(__n); } 29724: # 1711 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: reserve(size_type __n) 29724: { _M_h.reserve(__n); } 29724: 29724: template 29724: friend bool 29724: operator==(const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, 29724: const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&); 29724: }; 29724: 29724: 29724: 29724: 29724: template::value_type>, 29724: typename _Pred = 29724: equal_to::value_type>, 29724: typename _Allocator = 29724: allocator::value_type>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multiset(_InputIterator, _InputIterator, 29724: unordered_multiset::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), 29724: _Allocator = _Allocator()) 29724: -> unordered_multiset::value_type, 29724: _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename _Pred = equal_to<_Tp>, 29724: typename _Allocator = allocator<_Tp>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multiset(initializer_list<_Tp>, 29724: unordered_multiset::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), 29724: _Allocator = _Allocator()) 29724: -> unordered_multiset<_Tp, _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multiset(_InputIterator, _InputIterator, 29724: unordered_multiset::size_type, _Allocator) 29724: -> unordered_multiset::value_type, 29724: hash::value_type>, 29724: equal_to::value_type>, 29724: _Allocator>; 29724: 29724: template, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multiset(_InputIterator, _InputIterator, 29724: unordered_multiset::size_type, 29724: _Hash, _Allocator) 29724: -> unordered_multiset::value_type, 29724: _Hash, 29724: equal_to< 29724: typename 29724: iterator_traits<_InputIterator>::value_type>, 29724: _Allocator>; 29724: 29724: template> 29724: unordered_multiset(initializer_list<_Tp>, 29724: unordered_multiset::size_type, _Allocator) 29724: -> unordered_multiset<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multiset(initializer_list<_Tp>, 29724: unordered_multiset::size_type, _Hash, _Allocator) 29724: -> unordered_multiset<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29724: unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: template 29724: inline void 29724: swap(unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29724: unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: template 29724: inline bool 29724: operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29724: { return __x._M_h._M_equal(__y._M_h); } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29724: { return __x._M_h._M_equal(__y._M_h); } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hash_merge_helper< 29724: std::unordered_set<_Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> 29724: { 29724: private: 29724: template 29724: using unordered_set = std::unordered_set<_Tp...>; 29724: template 29724: using unordered_multiset = std::unordered_multiset<_Tp...>; 29724: 29724: friend unordered_set<_Val, _Hash1, _Eq1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 29724: { return __set._M_h; } 29724: 29724: static auto& 29724: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 29724: { return __set._M_h; } 29724: }; 29724: 29724: 29724: template 29724: struct _Hash_merge_helper< 29724: std::unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>, 29724: _Hash2, _Eq2> 29724: { 29724: private: 29724: template 29724: using unordered_set = std::unordered_set<_Tp...>; 29724: template 29724: using unordered_multiset = std::unordered_multiset<_Tp...>; 29724: 29724: friend unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 29724: { return __set._M_h; } 29724: 29724: static auto& 29724: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 29724: { return __set._M_h; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 42 "/usr/include/c++/14/unordered_set" 2 3 29724: # 54 "/usr/include/c++/14/unordered_set" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 55 "/usr/include/c++/14/unordered_set" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template, 29724: typename _Pred = std::equal_to<_Key>> 29724: using unordered_set 29724: = std::unordered_set<_Key, _Hash, _Pred, 29724: polymorphic_allocator<_Key>>; 29724: template, 29724: typename _Pred = std::equal_to<_Key>> 29724: using unordered_multiset 29724: = std::unordered_multiset<_Key, _Hash, _Pred, 29724: polymorphic_allocator<_Key>>; 29724: } 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/optional" 1 3 29724: # 33 "/usr/include/c++/14/optional" 3 29724: 29724: # 34 "/usr/include/c++/14/optional" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 38 "/usr/include/c++/14/optional" 2 3 29724: # 58 "/usr/include/c++/14/optional" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class optional; 29724: 29724: 29724: struct nullopt_t 29724: { 29724: 29724: 29724: 29724: 29724: 29724: enum class _Construct { _Token }; 29724: 29724: 29724: explicit constexpr nullopt_t(_Construct) noexcept { } 29724: }; 29724: 29724: 29724: inline constexpr nullopt_t nullopt { nullopt_t::_Construct::_Token }; 29724: 29724: template struct _Optional_func { _Fn& _M_f; }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class bad_optional_access : public exception 29724: { 29724: public: 29724: bad_optional_access() = default; 29724: virtual ~bad_optional_access() = default; 29724: 29724: const char* what() const noexcept override 29724: { return "bad optional access"; } 29724: }; 29724: 29724: 29724: [[__noreturn__]] inline void 29724: __throw_bad_optional_access() 29724: { (throw (bad_optional_access())); } 29724: 29724: 29724: 29724: template 29724: struct _Optional_payload_base 29724: { 29724: using _Stored_type = remove_const_t<_Tp>; 29724: 29724: _Optional_payload_base() = default; 29724: ~_Optional_payload_base() = default; 29724: 29724: template 29724: constexpr 29724: _Optional_payload_base(in_place_t __tag, _Args&&... __args) 29724: : _M_payload(__tag, std::forward<_Args>(__args)...), 29724: _M_engaged(true) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Optional_payload_base(std::initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : _M_payload(__il, std::forward<_Args>(__args)...), 29724: _M_engaged(true) 29724: { } 29724: 29724: 29724: 29724: constexpr 29724: _Optional_payload_base(bool , 29724: const _Optional_payload_base& __other) 29724: { 29724: if (__other._M_engaged) 29724: this->_M_construct(__other._M_get()); 29724: } 29724: 29724: 29724: 29724: constexpr 29724: _Optional_payload_base(bool , 29724: _Optional_payload_base&& __other) 29724: { 29724: if (__other._M_engaged) 29724: this->_M_construct(std::move(__other._M_get())); 29724: } 29724: 29724: 29724: 29724: _Optional_payload_base(const _Optional_payload_base&) = default; 29724: 29724: 29724: 29724: _Optional_payload_base(_Optional_payload_base&&) = default; 29724: 29724: _Optional_payload_base& 29724: operator=(const _Optional_payload_base&) = default; 29724: 29724: _Optional_payload_base& 29724: operator=(_Optional_payload_base&&) = default; 29724: 29724: 29724: constexpr void 29724: _M_copy_assign(const _Optional_payload_base& __other) 29724: { 29724: if (this->_M_engaged && __other._M_engaged) 29724: this->_M_get() = __other._M_get(); 29724: else 29724: { 29724: if (__other._M_engaged) 29724: this->_M_construct(__other._M_get()); 29724: else 29724: this->_M_reset(); 29724: } 29724: } 29724: 29724: 29724: constexpr void 29724: _M_move_assign(_Optional_payload_base&& __other) 29724: noexcept(__and_v, 29724: is_nothrow_move_assignable<_Tp>>) 29724: { 29724: if (this->_M_engaged && __other._M_engaged) 29724: this->_M_get() = std::move(__other._M_get()); 29724: else 29724: { 29724: if (__other._M_engaged) 29724: this->_M_construct(std::move(__other._M_get())); 29724: else 29724: this->_M_reset(); 29724: } 29724: } 29724: 29724: struct _Empty_byte { }; 29724: 29724: template> 29724: union _Storage 29724: { 29724: constexpr _Storage() noexcept : _M_empty() { } 29724: 29724: template 29724: constexpr 29724: _Storage(in_place_t, _Args&&... __args) 29724: : _M_value(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 29724: : _M_value(__il, std::forward<_Args>(__args)...) 29724: { } 29724: # 228 "/usr/include/c++/14/optional" 3 29724: _Empty_byte _M_empty; 29724: _Up _M_value; 29724: }; 29724: 29724: template 29724: union _Storage<_Up, false> 29724: { 29724: constexpr _Storage() noexcept : _M_empty() { } 29724: 29724: template 29724: constexpr 29724: _Storage(in_place_t, _Args&&... __args) 29724: : _M_value(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 29724: : _M_value(__il, std::forward<_Args>(__args)...) 29724: { } 29724: # 259 "/usr/include/c++/14/optional" 3 29724: ~_Storage() { } 29724: 29724: _Empty_byte _M_empty; 29724: _Up _M_value; 29724: }; 29724: 29724: _Storage<_Stored_type> _M_payload; 29724: 29724: bool _M_engaged = false; 29724: 29724: template 29724: constexpr void 29724: _M_construct(_Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 29724: { 29724: std::_Construct(std::__addressof(this->_M_payload._M_value), 29724: std::forward<_Args>(__args)...); 29724: this->_M_engaged = true; 29724: } 29724: 29724: constexpr void 29724: _M_destroy() noexcept 29724: { 29724: _M_engaged = false; 29724: _M_payload._M_value.~_Stored_type(); 29724: } 29724: # 301 "/usr/include/c++/14/optional" 3 29724: constexpr _Tp& 29724: _M_get() noexcept 29724: { return this->_M_payload._M_value; } 29724: 29724: constexpr const _Tp& 29724: _M_get() const noexcept 29724: { return this->_M_payload._M_value; } 29724: 29724: 29724: constexpr void 29724: _M_reset() noexcept 29724: { 29724: if (this->_M_engaged) 29724: _M_destroy(); 29724: else 29724: this->_M_engaged = false; 29724: } 29724: }; 29724: 29724: 29724: template , 29724: bool = 29724: is_trivially_copy_assignable_v<_Tp> 29724: && is_trivially_copy_constructible_v<_Tp>, 29724: bool = 29724: is_trivially_move_assignable_v<_Tp> 29724: && is_trivially_move_constructible_v<_Tp>> 29724: struct _Optional_payload; 29724: 29724: 29724: template 29724: struct _Optional_payload<_Tp, true, true, true> 29724: : _Optional_payload_base<_Tp> 29724: { 29724: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29724: 29724: _Optional_payload() = default; 29724: }; 29724: 29724: 29724: template 29724: struct _Optional_payload<_Tp, true, false, true> 29724: : _Optional_payload_base<_Tp> 29724: { 29724: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29724: 29724: _Optional_payload() = default; 29724: ~_Optional_payload() = default; 29724: _Optional_payload(const _Optional_payload&) = default; 29724: _Optional_payload(_Optional_payload&&) = default; 29724: _Optional_payload& operator=(_Optional_payload&&) = default; 29724: 29724: 29724: constexpr 29724: _Optional_payload& 29724: operator=(const _Optional_payload& __other) 29724: { 29724: this->_M_copy_assign(__other); 29724: return *this; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Optional_payload<_Tp, true, true, false> 29724: : _Optional_payload_base<_Tp> 29724: { 29724: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29724: 29724: _Optional_payload() = default; 29724: ~_Optional_payload() = default; 29724: _Optional_payload(const _Optional_payload&) = default; 29724: _Optional_payload(_Optional_payload&&) = default; 29724: _Optional_payload& operator=(const _Optional_payload&) = default; 29724: 29724: 29724: constexpr 29724: _Optional_payload& 29724: operator=(_Optional_payload&& __other) 29724: noexcept(__and_v, 29724: is_nothrow_move_assignable<_Tp>>) 29724: { 29724: this->_M_move_assign(std::move(__other)); 29724: return *this; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Optional_payload<_Tp, true, false, false> 29724: : _Optional_payload_base<_Tp> 29724: { 29724: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29724: 29724: _Optional_payload() = default; 29724: ~_Optional_payload() = default; 29724: _Optional_payload(const _Optional_payload&) = default; 29724: _Optional_payload(_Optional_payload&&) = default; 29724: 29724: 29724: constexpr 29724: _Optional_payload& 29724: operator=(const _Optional_payload& __other) 29724: { 29724: this->_M_copy_assign(__other); 29724: return *this; 29724: } 29724: 29724: 29724: constexpr 29724: _Optional_payload& 29724: operator=(_Optional_payload&& __other) 29724: noexcept(__and_v, 29724: is_nothrow_move_assignable<_Tp>>) 29724: { 29724: this->_M_move_assign(std::move(__other)); 29724: return *this; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Optional_payload<_Tp, false, _Copy, _Move> 29724: : _Optional_payload<_Tp, true, false, false> 29724: { 29724: 29724: using _Optional_payload<_Tp, true, false, false>::_Optional_payload; 29724: _Optional_payload() = default; 29724: _Optional_payload(const _Optional_payload&) = default; 29724: _Optional_payload(_Optional_payload&&) = default; 29724: _Optional_payload& operator=(const _Optional_payload&) = default; 29724: _Optional_payload& operator=(_Optional_payload&&) = default; 29724: 29724: 29724: ~_Optional_payload() { this->_M_reset(); } 29724: }; 29724: 29724: 29724: 29724: template 29724: class _Optional_base_impl 29724: { 29724: protected: 29724: using _Stored_type = remove_const_t<_Tp>; 29724: 29724: 29724: 29724: template 29724: constexpr void 29724: _M_construct(_Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 29724: { 29724: static_cast<_Dp*>(this)->_M_payload._M_construct( 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: constexpr void 29724: _M_destruct() noexcept 29724: { static_cast<_Dp*>(this)->_M_payload._M_destroy(); } 29724: 29724: 29724: constexpr void 29724: _M_reset() noexcept 29724: { static_cast<_Dp*>(this)->_M_payload._M_reset(); } 29724: 29724: constexpr bool _M_is_engaged() const noexcept 29724: { return static_cast(this)->_M_payload._M_engaged; } 29724: 29724: 29724: constexpr _Tp& 29724: _M_get() noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) std::__glibcxx_assert_fail(); } while (false); 29724: return static_cast<_Dp*>(this)->_M_payload._M_get(); 29724: } 29724: 29724: constexpr const _Tp& 29724: _M_get() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) std::__glibcxx_assert_fail(); } while (false); 29724: return static_cast(this)->_M_payload._M_get(); 29724: } 29724: }; 29724: # 505 "/usr/include/c++/14/optional" 3 29724: template, 29724: bool = is_trivially_move_constructible_v<_Tp>> 29724: struct _Optional_base 29724: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29724: { 29724: 29724: constexpr _Optional_base() = default; 29724: 29724: 29724: template, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, _Args&&... __args) 29724: : _M_payload(in_place, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template&, 29724: _Args...>, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, 29724: initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: 29724: constexpr 29724: _Optional_base(const _Optional_base& __other) 29724: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 29724: { } 29724: 29724: constexpr 29724: _Optional_base(_Optional_base&& __other) 29724: noexcept(is_nothrow_move_constructible_v<_Tp>) 29724: : _M_payload(__other._M_payload._M_engaged, 29724: std::move(__other._M_payload)) 29724: { } 29724: 29724: 29724: _Optional_base& operator=(const _Optional_base&) = default; 29724: _Optional_base& operator=(_Optional_base&&) = default; 29724: 29724: _Optional_payload<_Tp> _M_payload; 29724: }; 29724: 29724: template 29724: struct _Optional_base<_Tp, false, true> 29724: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29724: { 29724: 29724: constexpr _Optional_base() = default; 29724: 29724: 29724: template, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, _Args&&... __args) 29724: : _M_payload(in_place, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template&, 29724: _Args...>, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, 29724: initializer_list<_Up> __il, 29724: _Args... __args) 29724: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: 29724: constexpr _Optional_base(const _Optional_base& __other) 29724: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 29724: { } 29724: 29724: constexpr _Optional_base(_Optional_base&& __other) = default; 29724: 29724: 29724: _Optional_base& operator=(const _Optional_base&) = default; 29724: _Optional_base& operator=(_Optional_base&&) = default; 29724: 29724: _Optional_payload<_Tp> _M_payload; 29724: }; 29724: 29724: template 29724: struct _Optional_base<_Tp, true, false> 29724: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29724: { 29724: 29724: constexpr _Optional_base() = default; 29724: 29724: 29724: template, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, _Args&&... __args) 29724: : _M_payload(in_place, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template&, 29724: _Args...>, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, 29724: initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: 29724: constexpr _Optional_base(const _Optional_base& __other) = default; 29724: 29724: constexpr 29724: _Optional_base(_Optional_base&& __other) 29724: noexcept(is_nothrow_move_constructible_v<_Tp>) 29724: : _M_payload(__other._M_payload._M_engaged, 29724: std::move(__other._M_payload)) 29724: { } 29724: 29724: 29724: _Optional_base& operator=(const _Optional_base&) = default; 29724: _Optional_base& operator=(_Optional_base&&) = default; 29724: 29724: _Optional_payload<_Tp> _M_payload; 29724: }; 29724: 29724: template 29724: struct _Optional_base<_Tp, true, true> 29724: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29724: { 29724: 29724: constexpr _Optional_base() = default; 29724: 29724: 29724: template, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, _Args&&... __args) 29724: : _M_payload(in_place, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template&, 29724: _Args...>, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, 29724: initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: 29724: constexpr _Optional_base(const _Optional_base& __other) = default; 29724: constexpr _Optional_base(_Optional_base&& __other) = default; 29724: 29724: 29724: _Optional_base& operator=(const _Optional_base&) = default; 29724: _Optional_base& operator=(_Optional_base&&) = default; 29724: 29724: _Optional_payload<_Tp> _M_payload; 29724: }; 29724: 29724: template 29724: class optional; 29724: 29724: template 29724: inline constexpr bool __is_optional_v = false; 29724: template 29724: inline constexpr bool __is_optional_v> = true; 29724: 29724: template 29724: using __converts_from_optional = 29724: __or_&>, 29724: is_constructible<_Tp, optional<_Up>&>, 29724: is_constructible<_Tp, const optional<_Up>&&>, 29724: is_constructible<_Tp, optional<_Up>&&>, 29724: is_convertible&, _Tp>, 29724: is_convertible&, _Tp>, 29724: is_convertible&&, _Tp>, 29724: is_convertible&&, _Tp>>; 29724: 29724: template 29724: using __assigns_from_optional = 29724: __or_&>, 29724: is_assignable<_Tp&, optional<_Up>&>, 29724: is_assignable<_Tp&, const optional<_Up>&&>, 29724: is_assignable<_Tp&, optional<_Up>&&>>; 29724: 29724: 29724: 29724: 29724: template 29724: class optional 29724: : private _Optional_base<_Tp>, 29724: private _Enable_copy_move< 29724: 29724: is_copy_constructible_v<_Tp>, 29724: 29724: __and_v, is_copy_assignable<_Tp>>, 29724: 29724: is_move_constructible_v<_Tp>, 29724: 29724: __and_v, is_move_assignable<_Tp>>, 29724: 29724: optional<_Tp>> 29724: { 29724: static_assert(!is_same_v, nullopt_t>); 29724: static_assert(!is_same_v, in_place_t>); 29724: static_assert(is_object_v<_Tp> && !is_array_v<_Tp>); 29724: 29724: private: 29724: using _Base = _Optional_base<_Tp>; 29724: 29724: 29724: template 29724: using __not_self = __not_>>; 29724: template 29724: using __not_tag = __not_>>; 29724: template 29724: using _Requires = enable_if_t<__and_v<_Cond...>, bool>; 29724: 29724: public: 29724: using value_type = _Tp; 29724: 29724: constexpr optional() noexcept { } 29724: 29724: constexpr optional(nullopt_t) noexcept { } 29724: 29724: 29724: template, __not_tag<_Up>, 29724: is_constructible<_Tp, _Up>, 29724: is_convertible<_Up, _Tp>> = true> 29724: constexpr 29724: optional(_Up&& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29724: : _Base(std::in_place, std::forward<_Up>(__t)) { } 29724: 29724: template, __not_tag<_Up>, 29724: is_constructible<_Tp, _Up>, 29724: __not_>> = false> 29724: explicit constexpr 29724: optional(_Up&& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29724: : _Base(std::in_place, std::forward<_Up>(__t)) { } 29724: 29724: template>, 29724: is_constructible<_Tp, const _Up&>, 29724: is_convertible, 29724: __not_<__converts_from_optional<_Tp, _Up>>> = true> 29724: constexpr 29724: optional(const optional<_Up>& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 29724: { 29724: if (__t) 29724: emplace(*__t); 29724: } 29724: 29724: template>, 29724: is_constructible<_Tp, const _Up&>, 29724: __not_>, 29724: __not_<__converts_from_optional<_Tp, _Up>>> = false> 29724: explicit constexpr 29724: optional(const optional<_Up>& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 29724: { 29724: if (__t) 29724: emplace(*__t); 29724: } 29724: 29724: template>, 29724: is_constructible<_Tp, _Up>, 29724: is_convertible<_Up, _Tp>, 29724: __not_<__converts_from_optional<_Tp, _Up>>> = true> 29724: constexpr 29724: optional(optional<_Up>&& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29724: { 29724: if (__t) 29724: emplace(std::move(*__t)); 29724: } 29724: 29724: template>, 29724: is_constructible<_Tp, _Up>, 29724: __not_>, 29724: __not_<__converts_from_optional<_Tp, _Up>>> = false> 29724: explicit constexpr 29724: optional(optional<_Up>&& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29724: { 29724: if (__t) 29724: emplace(std::move(*__t)); 29724: } 29724: 29724: template> = false> 29724: explicit constexpr 29724: optional(in_place_t, _Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29724: : _Base(std::in_place, std::forward<_Args>(__args)...) { } 29724: 29724: template&, 29724: _Args...>> = false> 29724: explicit constexpr 29724: optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 29724: _Args...>) 29724: : _Base(std::in_place, __il, std::forward<_Args>(__args)...) { } 29724: 29724: 29724: 29724: optional& 29724: operator=(nullopt_t) noexcept 29724: { 29724: this->_M_reset(); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: enable_if_t<__and_v<__not_self<_Up>, 29724: __not_<__and_, 29724: is_same<_Tp, decay_t<_Up>>>>, 29724: is_constructible<_Tp, _Up>, 29724: is_assignable<_Tp&, _Up>>, 29724: optional&> 29724: operator=(_Up&& __u) 29724: noexcept(__and_v, 29724: is_nothrow_assignable<_Tp&, _Up>>) 29724: { 29724: if (this->_M_is_engaged()) 29724: this->_M_get() = std::forward<_Up>(__u); 29724: else 29724: this->_M_construct(std::forward<_Up>(__u)); 29724: 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: enable_if_t<__and_v<__not_>, 29724: is_constructible<_Tp, const _Up&>, 29724: is_assignable<_Tp&, const _Up&>, 29724: __not_<__converts_from_optional<_Tp, _Up>>, 29724: __not_<__assigns_from_optional<_Tp, _Up>>>, 29724: optional&> 29724: operator=(const optional<_Up>& __u) 29724: noexcept(__and_v, 29724: is_nothrow_assignable<_Tp&, const _Up&>>) 29724: { 29724: if (__u) 29724: { 29724: if (this->_M_is_engaged()) 29724: this->_M_get() = *__u; 29724: else 29724: this->_M_construct(*__u); 29724: } 29724: else 29724: { 29724: this->_M_reset(); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: enable_if_t<__and_v<__not_>, 29724: is_constructible<_Tp, _Up>, 29724: is_assignable<_Tp&, _Up>, 29724: __not_<__converts_from_optional<_Tp, _Up>>, 29724: __not_<__assigns_from_optional<_Tp, _Up>>>, 29724: optional&> 29724: operator=(optional<_Up>&& __u) 29724: noexcept(__and_v, 29724: is_nothrow_assignable<_Tp&, _Up>>) 29724: { 29724: if (__u) 29724: { 29724: if (this->_M_is_engaged()) 29724: this->_M_get() = std::move(*__u); 29724: else 29724: this->_M_construct(std::move(*__u)); 29724: } 29724: else 29724: { 29724: this->_M_reset(); 29724: } 29724: 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: enable_if_t, _Tp&> 29724: emplace(_Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29724: { 29724: this->_M_reset(); 29724: this->_M_construct(std::forward<_Args>(__args)...); 29724: return this->_M_get(); 29724: } 29724: 29724: template 29724: 29724: enable_if_t&, _Args...>, 29724: _Tp&> 29724: emplace(initializer_list<_Up> __il, _Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 29724: _Args...>) 29724: { 29724: this->_M_reset(); 29724: this->_M_construct(__il, std::forward<_Args>(__args)...); 29724: return this->_M_get(); 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: swap(optional& __other) 29724: noexcept(is_nothrow_move_constructible_v<_Tp> 29724: && is_nothrow_swappable_v<_Tp>) 29724: { 29724: using std::swap; 29724: 29724: if (this->_M_is_engaged() && __other._M_is_engaged()) 29724: swap(this->_M_get(), __other._M_get()); 29724: else if (this->_M_is_engaged()) 29724: { 29724: __other._M_construct(std::move(this->_M_get())); 29724: this->_M_destruct(); 29724: } 29724: else if (__other._M_is_engaged()) 29724: { 29724: this->_M_construct(std::move(__other._M_get())); 29724: __other._M_destruct(); 29724: } 29724: } 29724: 29724: 29724: constexpr const _Tp* 29724: operator->() const noexcept 29724: { return std::__addressof(this->_M_get()); } 29724: 29724: constexpr _Tp* 29724: operator->() noexcept 29724: { return std::__addressof(this->_M_get()); } 29724: 29724: constexpr const _Tp& 29724: operator*() const& noexcept 29724: { return this->_M_get(); } 29724: 29724: constexpr _Tp& 29724: operator*()& noexcept 29724: { return this->_M_get(); } 29724: 29724: constexpr _Tp&& 29724: operator*()&& noexcept 29724: { return std::move(this->_M_get()); } 29724: 29724: constexpr const _Tp&& 29724: operator*() const&& noexcept 29724: { return std::move(this->_M_get()); } 29724: 29724: constexpr explicit operator bool() const noexcept 29724: { return this->_M_is_engaged(); } 29724: 29724: constexpr bool has_value() const noexcept 29724: { return this->_M_is_engaged(); } 29724: 29724: constexpr const _Tp& 29724: value() const& 29724: { 29724: if (this->_M_is_engaged()) 29724: return this->_M_get(); 29724: __throw_bad_optional_access(); 29724: } 29724: 29724: constexpr _Tp& 29724: value()& 29724: { 29724: if (this->_M_is_engaged()) 29724: return this->_M_get(); 29724: __throw_bad_optional_access(); 29724: } 29724: 29724: constexpr _Tp&& 29724: value()&& 29724: { 29724: if (this->_M_is_engaged()) 29724: return std::move(this->_M_get()); 29724: __throw_bad_optional_access(); 29724: } 29724: 29724: constexpr const _Tp&& 29724: value() const&& 29724: { 29724: if (this->_M_is_engaged()) 29724: return std::move(this->_M_get()); 29724: __throw_bad_optional_access(); 29724: } 29724: 29724: template 29724: constexpr _Tp 29724: value_or(_Up&& __u) const& 29724: { 29724: static_assert(is_copy_constructible_v<_Tp>); 29724: static_assert(is_convertible_v<_Up&&, _Tp>); 29724: 29724: if (this->_M_is_engaged()) 29724: return this->_M_get(); 29724: else 29724: return static_cast<_Tp>(std::forward<_Up>(__u)); 29724: } 29724: 29724: template 29724: constexpr _Tp 29724: value_or(_Up&& __u) && 29724: { 29724: static_assert(is_move_constructible_v<_Tp>); 29724: static_assert(is_convertible_v<_Up&&, _Tp>); 29724: 29724: if (this->_M_is_engaged()) 29724: return std::move(this->_M_get()); 29724: else 29724: return static_cast<_Tp>(std::forward<_Up>(__u)); 29724: } 29724: # 1180 "/usr/include/c++/14/optional" 3 29724: void reset() noexcept { this->_M_reset(); } 29724: 29724: private: 29724: # 1193 "/usr/include/c++/14/optional" 3 29724: }; 29724: 29724: template 29724: using __optional_relop_t = 29724: enable_if_t::value, bool>; 29724: 29724: template 29724: using __optional_eq_t = __optional_relop_t< 29724: decltype(std::declval() == std::declval()) 29724: >; 29724: 29724: template 29724: using __optional_ne_t = __optional_relop_t< 29724: decltype(std::declval() != std::declval()) 29724: >; 29724: 29724: template 29724: using __optional_lt_t = __optional_relop_t< 29724: decltype(std::declval() < std::declval()) 29724: >; 29724: 29724: template 29724: using __optional_gt_t = __optional_relop_t< 29724: decltype(std::declval() > std::declval()) 29724: >; 29724: 29724: template 29724: using __optional_le_t = __optional_relop_t< 29724: decltype(std::declval() <= std::declval()) 29724: >; 29724: 29724: template 29724: using __optional_ge_t = __optional_relop_t< 29724: decltype(std::declval() >= std::declval()) 29724: >; 29724: 29724: 29724: template 29724: constexpr auto 29724: operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_eq_t<_Tp, _Up> 29724: { 29724: return static_cast(__lhs) == static_cast(__rhs) 29724: && (!__lhs || *__lhs == *__rhs); 29724: } 29724: 29724: template 29724: constexpr auto 29724: operator!=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_ne_t<_Tp, _Up> 29724: { 29724: return static_cast(__lhs) != static_cast(__rhs) 29724: || (static_cast(__lhs) && *__lhs != *__rhs); 29724: } 29724: 29724: template 29724: constexpr auto 29724: operator<(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_lt_t<_Tp, _Up> 29724: { 29724: return static_cast(__rhs) && (!__lhs || *__lhs < *__rhs); 29724: } 29724: 29724: template 29724: constexpr auto 29724: operator>(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_gt_t<_Tp, _Up> 29724: { 29724: return static_cast(__lhs) && (!__rhs || *__lhs > *__rhs); 29724: } 29724: 29724: template 29724: constexpr auto 29724: operator<=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_le_t<_Tp, _Up> 29724: { 29724: return !__lhs || (static_cast(__rhs) && *__lhs <= *__rhs); 29724: } 29724: 29724: template 29724: constexpr auto 29724: operator>=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_ge_t<_Tp, _Up> 29724: { 29724: return !__rhs || (static_cast(__lhs) && *__lhs >= *__rhs); 29724: } 29724: # 1290 "/usr/include/c++/14/optional" 3 29724: template 29724: constexpr bool 29724: operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept 29724: { return !__lhs; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr bool 29724: operator==(nullopt_t, const optional<_Tp>& __rhs) noexcept 29724: { return !__rhs; } 29724: 29724: template 29724: constexpr bool 29724: operator!=(const optional<_Tp>& __lhs, nullopt_t) noexcept 29724: { return static_cast(__lhs); } 29724: 29724: template 29724: constexpr bool 29724: operator!=(nullopt_t, const optional<_Tp>& __rhs) noexcept 29724: { return static_cast(__rhs); } 29724: 29724: template 29724: constexpr bool 29724: operator<(const optional<_Tp>& , nullopt_t) noexcept 29724: { return false; } 29724: 29724: template 29724: constexpr bool 29724: operator<(nullopt_t, const optional<_Tp>& __rhs) noexcept 29724: { return static_cast(__rhs); } 29724: 29724: template 29724: constexpr bool 29724: operator>(const optional<_Tp>& __lhs, nullopt_t) noexcept 29724: { return static_cast(__lhs); } 29724: 29724: template 29724: constexpr bool 29724: operator>(nullopt_t, const optional<_Tp>& ) noexcept 29724: { return false; } 29724: 29724: template 29724: constexpr bool 29724: operator<=(const optional<_Tp>& __lhs, nullopt_t) noexcept 29724: { return !__lhs; } 29724: 29724: template 29724: constexpr bool 29724: operator<=(nullopt_t, const optional<_Tp>& ) noexcept 29724: { return true; } 29724: 29724: template 29724: constexpr bool 29724: operator>=(const optional<_Tp>& , nullopt_t) noexcept 29724: { return true; } 29724: 29724: template 29724: constexpr bool 29724: operator>=(nullopt_t, const optional<_Tp>& __rhs) noexcept 29724: { return !__rhs; } 29724: 29724: 29724: 29724: template 29724: constexpr auto 29724: operator==(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_eq_t<_Tp, _Up> 29724: { return __lhs && *__lhs == __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator==(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_eq_t<_Up, _Tp> 29724: { return __rhs && __lhs == *__rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator!=(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_ne_t<_Tp, _Up> 29724: { return !__lhs || *__lhs != __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator!=(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_ne_t<_Up, _Tp> 29724: { return !__rhs || __lhs != *__rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator<(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_lt_t<_Tp, _Up> 29724: { return !__lhs || *__lhs < __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator<(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_lt_t<_Up, _Tp> 29724: { return __rhs && __lhs < *__rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator>(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_gt_t<_Tp, _Up> 29724: { return __lhs && *__lhs > __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator>(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_gt_t<_Up, _Tp> 29724: { return !__rhs || __lhs > *__rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator<=(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_le_t<_Tp, _Up> 29724: { return !__lhs || *__lhs <= __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator<=(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_le_t<_Up, _Tp> 29724: { return __rhs && __lhs <= *__rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator>=(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_ge_t<_Tp, _Up> 29724: { return __lhs && *__lhs >= __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator>=(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_ge_t<_Up, _Tp> 29724: { return !__rhs || __lhs >= *__rhs; } 29724: # 1443 "/usr/include/c++/14/optional" 3 29724: template 29724: 29724: inline enable_if_t && is_swappable_v<_Tp>> 29724: swap(optional<_Tp>& __lhs, optional<_Tp>& __rhs) 29724: noexcept(noexcept(__lhs.swap(__rhs))) 29724: { __lhs.swap(__rhs); } 29724: 29724: template 29724: enable_if_t && is_swappable_v<_Tp>)> 29724: swap(optional<_Tp>&, optional<_Tp>&) = delete; 29724: 29724: template 29724: constexpr 29724: enable_if_t, _Tp>, 29724: optional>> 29724: make_optional(_Tp&& __t) 29724: noexcept(is_nothrow_constructible_v>, _Tp>) 29724: { return optional>{ std::forward<_Tp>(__t) }; } 29724: 29724: template 29724: constexpr 29724: enable_if_t, 29724: optional<_Tp>> 29724: make_optional(_Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29724: { return optional<_Tp>{ in_place, std::forward<_Args>(__args)... }; } 29724: 29724: template 29724: constexpr 29724: enable_if_t&, _Args...>, 29724: optional<_Tp>> 29724: make_optional(initializer_list<_Up> __il, _Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) 29724: { return optional<_Tp>{ in_place, __il, std::forward<_Args>(__args)... }; } 29724: 29724: 29724: 29724: template, 29724: bool = __poison_hash<_Up>::__enable_hash_call> 29724: struct __optional_hash_call_base 29724: { 29724: size_t 29724: operator()(const optional<_Tp>& __t) const 29724: noexcept(noexcept(hash<_Up>{}(*__t))) 29724: { 29724: 29724: 29724: constexpr size_t __magic_disengaged_hash = static_cast(-3333); 29724: return __t ? hash<_Up>{}(*__t) : __magic_disengaged_hash; 29724: } 29724: }; 29724: 29724: template 29724: struct __optional_hash_call_base<_Tp, _Up, false> {}; 29724: 29724: template 29724: struct hash> 29724: : private __poison_hash>, 29724: public __optional_hash_call_base<_Tp> 29724: { 29724: using result_type [[__deprecated__]] = size_t; 29724: using argument_type [[__deprecated__]] = optional<_Tp>; 29724: }; 29724: 29724: template 29724: struct __is_fast_hash>> : __is_fast_hash> 29724: { }; 29724: 29724: 29724: 29724: 29724: template optional(_Tp) -> optional<_Tp>; 29724: 29724: 29724: 29724: } 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: 29724: # 1 "/usr/include/c++/14/utility" 1 3 29724: # 58 "/usr/include/c++/14/utility" 3 29724: 29724: # 59 "/usr/include/c++/14/utility" 3 29724: # 68 "/usr/include/c++/14/utility" 3 29724: # 1 "/usr/include/c++/14/bits/stl_relops.h" 1 3 29724: # 62 "/usr/include/c++/14/bits/stl_relops.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: namespace rel_ops 29724: { 29724: # 86 "/usr/include/c++/14/bits/stl_relops.h" 3 29724: template 29724: inline bool 29724: operator!=(const _Tp& __x, const _Tp& __y) 29724: { return !(__x == __y); } 29724: # 99 "/usr/include/c++/14/bits/stl_relops.h" 3 29724: template 29724: inline bool 29724: operator>(const _Tp& __x, const _Tp& __y) 29724: { return __y < __x; } 29724: # 112 "/usr/include/c++/14/bits/stl_relops.h" 3 29724: template 29724: inline bool 29724: operator<=(const _Tp& __x, const _Tp& __y) 29724: { return !(__y < __x); } 29724: # 125 "/usr/include/c++/14/bits/stl_relops.h" 3 29724: template 29724: inline bool 29724: operator>=(const _Tp& __x, const _Tp& __y) 29724: { return !(__x < __y); } 29724: } 29724: 29724: 29724: } 29724: # 69 "/usr/include/c++/14/utility" 2 3 29724: # 96 "/usr/include/c++/14/utility" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 97 "/usr/include/c++/14/utility" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline _Tp 29724: exchange(_Tp& __obj, _Up&& __new_val) 29724: noexcept(__and_, 29724: is_nothrow_assignable<_Tp&, _Up>>::value) 29724: { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } 29724: 29724: 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr add_const_t<_Tp>& 29724: as_const(_Tp& __t) noexcept 29724: { return __t; } 29724: 29724: template 29724: void as_const(const _Tp&&) = delete; 29724: # 230 "/usr/include/c++/14/utility" 3 29724: 29724: } 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rocksdb_namespace.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 1 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 29724: 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 1 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 66 "/usr/include/assert.h" 3 4 29724: extern "C" { 29724: 29724: 29724: extern void __assert_fail (const char *__assertion, const char *__file, 29724: unsigned int __line, const char *__function) 29724: noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: extern void __assert_perror_fail (int __errnum, const char *__file, 29724: unsigned int __line, const char *__function) 29724: noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: extern void __assert (const char *__assertion, const char *__file, int __line) 29724: noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: } 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29724: 29724: # 1 "/usr/include/c++/14/cstdio" 1 3 29724: # 39 "/usr/include/c++/14/cstdio" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdio" 3 29724: # 24 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29724: # 1 "/usr/include/c++/14/cstring" 1 3 29724: # 39 "/usr/include/c++/14/cstring" 3 29724: 29724: # 40 "/usr/include/c++/14/cstring" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 43 "/usr/include/c++/14/cstring" 2 3 29724: # 1 "/usr/include/string.h" 1 3 4 29724: # 26 "/usr/include/string.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 27 "/usr/include/string.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 34 "/usr/include/string.h" 2 3 4 29724: # 43 "/usr/include/string.h" 3 4 29724: extern void *memcpy (void *__restrict __dest, const void *__restrict __src, 29724: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern void *memmove (void *__dest, const void *__src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: extern void *memccpy (void *__restrict __dest, const void *__restrict __src, 29724: int __c, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); 29724: 29724: 29724: 29724: 29724: extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int memcmp (const void *__s1, const void *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: # 80 "/usr/include/string.h" 3 4 29724: extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern "C++" 29724: { 29724: extern void *memchr (void *__s, int __c, size_t __n) 29724: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern const void *memchr (const void *__s, int __c, size_t __n) 29724: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * 29724: memchr (void *__s, int __c, size_t __n) noexcept (true) 29724: { 29724: return __builtin_memchr (__s, __c, __n); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * 29724: memchr (const void *__s, int __c, size_t __n) noexcept (true) 29724: { 29724: return __builtin_memchr (__s, __c, __n); 29724: } 29724: 29724: } 29724: # 115 "/usr/include/string.h" 3 4 29724: extern "C++" void *rawmemchr (void *__s, int __c) 29724: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern "C++" const void *rawmemchr (const void *__s, int __c) 29724: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" void *memrchr (void *__s, int __c, size_t __n) 29724: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__read_only__, 1, 3))); 29724: extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) 29724: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__read_only__, 1, 3))); 29724: # 141 "/usr/include/string.h" 3 4 29724: extern char *strcpy (char *__restrict __dest, const char *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern char *strncpy (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern char *strcat (char *__restrict __dest, const char *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern char *strncat (char *__restrict __dest, const char *__restrict __src, 29724: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int strcmp (const char *__s1, const char *__s2) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern int strncmp (const char *__s1, const char *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int strcoll (const char *__s1, const char *__s2) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern size_t strxfrm (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 29724: 29724: 29724: extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, 29724: locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: extern char *strdup (const char *__s) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *strndup (const char *__string, size_t __n) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 29724: # 224 "/usr/include/string.h" 3 4 29724: extern "C++" 29724: { 29724: extern char *strchr (char *__s, int __c) 29724: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern const char *strchr (const char *__s, int __c) 29724: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: strchr (char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_strchr (__s, __c); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: strchr (const char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_strchr (__s, __c); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" 29724: { 29724: extern char *strrchr (char *__s, int __c) 29724: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern const char *strrchr (const char *__s, int __c) 29724: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: strrchr (char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_strrchr (__s, __c); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: strrchr (const char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_strrchr (__s, __c); 29724: } 29724: 29724: } 29724: # 281 "/usr/include/string.h" 3 4 29724: extern "C++" char *strchrnul (char *__s, int __c) 29724: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern "C++" const char *strchrnul (const char *__s, int __c) 29724: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: # 293 "/usr/include/string.h" 3 4 29724: extern size_t strcspn (const char *__s, const char *__reject) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern size_t strspn (const char *__s, const char *__accept) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern "C++" 29724: { 29724: extern char *strpbrk (char *__s, const char *__accept) 29724: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: extern const char *strpbrk (const char *__s, const char *__accept) 29724: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: strpbrk (char *__s, const char *__accept) noexcept (true) 29724: { 29724: return __builtin_strpbrk (__s, __accept); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: strpbrk (const char *__s, const char *__accept) noexcept (true) 29724: { 29724: return __builtin_strpbrk (__s, __accept); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" 29724: { 29724: extern char *strstr (char *__haystack, const char *__needle) 29724: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: extern const char *strstr (const char *__haystack, const char *__needle) 29724: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: strstr (char *__haystack, const char *__needle) noexcept (true) 29724: { 29724: return __builtin_strstr (__haystack, __needle); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: strstr (const char *__haystack, const char *__needle) noexcept (true) 29724: { 29724: return __builtin_strstr (__haystack, __needle); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *strtok (char *__restrict __s, const char *__restrict __delim) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern char *__strtok_r (char *__restrict __s, 29724: const char *__restrict __delim, 29724: char **__restrict __save_ptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29724: 29724: extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, 29724: char **__restrict __save_ptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" char *strcasestr (char *__haystack, const char *__needle) 29724: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: extern "C++" const char *strcasestr (const char *__haystack, 29724: const char *__needle) 29724: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: # 389 "/usr/include/string.h" 3 4 29724: extern void *memmem (const void *__haystack, size_t __haystacklen, 29724: const void *__needle, size_t __needlelen) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) 29724: __attribute__ ((__access__ (__read_only__, 1, 2))) 29724: __attribute__ ((__access__ (__read_only__, 3, 4))); 29724: 29724: 29724: 29724: extern void *__mempcpy (void *__restrict __dest, 29724: const void *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern void *mempcpy (void *__restrict __dest, 29724: const void *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern size_t strlen (const char *__s) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern size_t strnlen (const char *__string, size_t __maxlen) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern char *strerror (int __errnum) noexcept (true); 29724: # 444 "/usr/include/string.h" 3 4 29724: extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: 29724: 29724: extern const char *strerrordesc_np (int __err) noexcept (true); 29724: 29724: extern const char *strerrorname_np (int __err) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); 29724: 29724: 29724: 29724: # 1 "/usr/include/strings.h" 1 3 4 29724: # 23 "/usr/include/strings.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 24 "/usr/include/strings.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: extern int bcmp (const void *__s1, const void *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern void bcopy (const void *__src, void *__dest, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern "C++" 29724: { 29724: extern char *index (char *__s, int __c) 29724: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern const char *index (const char *__s, int __c) 29724: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: index (char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_index (__s, __c); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: index (const char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_index (__s, __c); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" 29724: { 29724: extern char *rindex (char *__s, int __c) 29724: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern const char *rindex (const char *__s, int __c) 29724: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: rindex (char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_rindex (__s, __c); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: rindex (const char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_rindex (__s, __c); 29724: } 29724: 29724: } 29724: # 104 "/usr/include/strings.h" 3 4 29724: extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); 29724: __extension__ extern int ffsll (long long int __ll) 29724: noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern int strcasecmp (const char *__s1, const char *__s2) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 29724: 29724: 29724: 29724: extern int strncasecmp_l (const char *__s1, const char *__s2, 29724: size_t __n, locale_t __loc) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 1 3 4 29724: # 22 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29724: __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) noexcept (true) 29724: { 29724: (void) __builtin___memmove_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29724: __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) noexcept (true) 29724: { 29724: (void) __builtin___memset_chk (__dest, '\0', __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: # 145 "/usr/include/strings.h" 2 3 4 29724: # 463 "/usr/include/string.h" 2 3 4 29724: 29724: 29724: 29724: extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: 29724: 29724: 29724: extern char *strsep (char **__restrict __stringp, 29724: const char *__restrict __delim) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern char *strsignal (int __sig) noexcept (true); 29724: 29724: 29724: 29724: extern const char *sigabbrev_np (int __sig) noexcept (true); 29724: 29724: 29724: extern const char *sigdescr_np (int __sig) noexcept (true); 29724: 29724: 29724: 29724: extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern char *__stpncpy (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern char *stpncpy (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern size_t strlcpy (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: 29724: 29724: 29724: extern size_t strlcat (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 29724: 29724: 29724: 29724: 29724: extern int strverscmp (const char *__s1, const char *__s2) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__read_write__, 1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" char *basename (char *__filename) 29724: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 29724: extern "C++" const char *basename (const char *__filename) 29724: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 29724: # 548 "/usr/include/string.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 1 3 4 29724: # 25 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29724: __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 29724: 29724: { 29724: return __builtin___memcpy_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29724: __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) noexcept (true) 29724: { 29724: return __builtin___memmove_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29724: __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 29724: 29724: { 29724: return __builtin___mempcpy_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: # 56 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29724: __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) noexcept (true) 29724: { 29724: return __builtin___memset_chk (__dest, __ch, __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: 29724: 29724: 29724: 29724: void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29724: __attribute__ ((__leaf__)) explicit_bzero (void *__dest, size_t __len) noexcept (true) 29724: { 29724: __explicit_bzero_chk (__dest, __len, __builtin_object_size (__dest, 0)); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) strcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) stpcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) strncpy (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___strncpy_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) stpncpy (char * __dest, const char *__src, size_t __n) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___stpncpy_chk (__dest, __src, __n, 29724: __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: # 135 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) strcat (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) strncat (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___strncat_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: 29724: 29724: extern size_t __strlcpy_chk (char *__dest, const char *__src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: extern size_t __strlcpy_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcpy") 29724: 29724: ; 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) strlcpy (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 29724: 29724: 29724: { 29724: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29724: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 29724: || __n > __builtin_object_size (__dest, 2 > 1))) 29724: return __strlcpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 29724: return __strlcpy_alias (__dest, __src, __n); 29724: } 29724: 29724: extern size_t __strlcat_chk (char *__dest, const char *__src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: extern size_t __strlcat_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcat") 29724: 29724: ; 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) strlcat (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 29724: 29724: { 29724: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29724: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 29724: || __n > __builtin_object_size (__dest, 2 > 1))) 29724: return __strlcat_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 29724: return __strlcat_alias (__dest, __src, __n); 29724: } 29724: # 549 "/usr/include/string.h" 2 3 4 29724: 29724: 29724: 29724: } 29724: # 44 "/usr/include/c++/14/cstring" 2 3 29724: # 72 "/usr/include/c++/14/cstring" 3 29724: extern "C++" 29724: { 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: using ::memchr; 29724: using ::memcmp; 29724: using ::memcpy; 29724: using ::memmove; 29724: using ::memset; 29724: using ::strcat; 29724: using ::strcmp; 29724: using ::strcoll; 29724: using ::strcpy; 29724: using ::strcspn; 29724: using ::strerror; 29724: using ::strlen; 29724: using ::strncat; 29724: using ::strncmp; 29724: using ::strncpy; 29724: using ::strspn; 29724: 29724: using ::strtok; 29724: 29724: using ::strxfrm; 29724: using ::strchr; 29724: using ::strpbrk; 29724: using ::strrchr; 29724: using ::strstr; 29724: # 125 "/usr/include/c++/14/cstring" 3 29724: 29724: } 29724: } 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29724: 29724: 29724: 29724: 29724: 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29724: namespace rocksdb { 29724: 29724: class Cleanable { 29724: public: 29724: Cleanable(); 29724: 29724: Cleanable(Cleanable&) = delete; 29724: Cleanable& operator=(Cleanable&) = delete; 29724: 29724: 29724: ~Cleanable(); 29724: 29724: 29724: Cleanable(Cleanable&&) noexcept; 29724: Cleanable& operator=(Cleanable&&) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: using CleanupFunction = void (*)(void* arg1, void* arg2); 29724: 29724: 29724: void RegisterCleanup(CleanupFunction function, void* arg1, void* arg2); 29724: 29724: 29724: 29724: void DelegateCleanupsTo(Cleanable* other); 29724: 29724: 29724: inline void Reset() { 29724: DoCleanup(); 29724: cleanup_.function = nullptr; 29724: cleanup_.next = nullptr; 29724: } 29724: 29724: inline bool HasCleanups() { return cleanup_.function != nullptr; } 29724: 29724: protected: 29724: struct Cleanup { 29724: CleanupFunction function; 29724: void* arg1; 29724: void* arg2; 29724: Cleanup* next; 29724: }; 29724: Cleanup cleanup_; 29724: 29724: void RegisterCleanup(Cleanup* c); 29724: 29724: private: 29724: 29724: 29724: 29724: inline void DoCleanup() { 29724: if (cleanup_.function != nullptr) { 29724: (*cleanup_.function)(cleanup_.arg1, cleanup_.arg2); 29724: for (Cleanup* c = cleanup_.next; c != nullptr;) { 29724: (*c->function)(c->arg1, c->arg2); 29724: Cleanup* next = c->next; 29724: delete c; 29724: c = next; 29724: } 29724: } 29724: } 29724: }; 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29724: class SharedCleanablePtr { 29724: public: 29724: 29724: SharedCleanablePtr() {} 29724: 29724: SharedCleanablePtr(const SharedCleanablePtr& from); 29724: SharedCleanablePtr(SharedCleanablePtr&& from) noexcept; 29724: SharedCleanablePtr& operator=(const SharedCleanablePtr& from); 29724: SharedCleanablePtr& operator=(SharedCleanablePtr&& from) noexcept; 29724: 29724: ~SharedCleanablePtr(); 29724: 29724: 29724: void Allocate(); 29724: 29724: void Reset(); 29724: 29724: Cleanable& operator*(); 29724: Cleanable* operator->(); 29724: 29724: Cleanable* get(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: void RegisterCopyWith(Cleanable* target); 29724: 29724: 29724: 29724: 29724: void MoveAsCleanupTo(Cleanable* target); 29724: 29724: private: 29724: struct Impl; 29724: Impl* ptr_ = nullptr; 29724: }; 29724: 29724: } 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Slice { 29724: public: 29724: 29724: Slice() : data_(""), size_(0) {} 29724: 29724: 29724: Slice(const char* d, size_t n) : data_(d), size_(n) {} 29724: 29724: 29724: 29724: Slice(const std::string& s) : data_(s.data()), size_(s.size()) {} 29724: 29724: 29724: 29724: Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size()) {} 29724: 29724: 29724: 29724: Slice(const char* s) : data_(s) { size_ = (s == nullptr) ? 0 : strlen(s); } 29724: 29724: 29724: 29724: Slice(const struct SliceParts& parts, std::string* buf); 29724: 29724: 29724: const char* data() const { return data_; } 29724: 29724: 29724: size_t size() const { return size_; } 29724: 29724: 29724: bool empty() const { return size_ == 0; } 29724: 29724: 29724: 29724: char operator[](size_t n) const { 29724: 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: n < size() 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "n < size()" 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: return data_[n]; 29724: } 29724: 29724: 29724: void clear() { 29724: data_ = ""; 29724: size_ = 0; 29724: } 29724: 29724: 29724: void remove_prefix(size_t n) { 29724: 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: n <= size() 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "n <= size()" 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: data_ += n; 29724: size_ -= n; 29724: } 29724: 29724: void remove_suffix(size_t n) { 29724: 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: n <= size() 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "n <= size()" 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: size_ -= n; 29724: } 29724: 29724: 29724: 29724: std::string ToString(bool hex = false) const; 29724: 29724: 29724: std::string_view ToStringView() const { 29724: return std::string_view(data_, size_); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool DecodeHex(std::string* result) const; 29724: 29724: 29724: 29724: 29724: 29724: int compare(const Slice& b) const; 29724: 29724: 29724: bool starts_with(const Slice& x) const { 29724: return ((size_ >= x.size_) && (memcmp(data_, x.data_, x.size_) == 0)); 29724: } 29724: 29724: bool ends_with(const Slice& x) const { 29724: return ((size_ >= x.size_) && 29724: (memcmp(data_ + size_ - x.size_, x.data_, x.size_) == 0)); 29724: } 29724: 29724: 29724: size_t difference_offset(const Slice& b) const; 29724: 29724: 29724: const char* data_; 29724: size_t size_; 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class PinnableSlice : public Slice, public Cleanable { 29724: public: 29724: PinnableSlice() { buf_ = &self_space_; } 29724: explicit PinnableSlice(std::string* buf) { buf_ = buf; } 29724: 29724: PinnableSlice(PinnableSlice&& other); 29724: PinnableSlice& operator=(PinnableSlice&& other); 29724: 29724: 29724: PinnableSlice(PinnableSlice&) = delete; 29724: PinnableSlice& operator=(PinnableSlice&) = delete; 29724: 29724: inline void PinSlice(const Slice& s, CleanupFunction f, void* arg1, 29724: void* arg2) { 29724: 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: pinned_ = true; 29724: data_ = s.data(); 29724: size_ = s.size(); 29724: RegisterCleanup(f, arg1, arg2); 29724: 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: pinned_ 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "pinned_" 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: } 29724: 29724: inline void PinSlice(const Slice& s, Cleanable* cleanable) { 29724: 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: pinned_ = true; 29724: data_ = s.data(); 29724: size_ = s.size(); 29724: if (cleanable != nullptr) { 29724: cleanable->DelegateCleanupsTo(this); 29724: } 29724: 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: pinned_ 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "pinned_" 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: } 29724: 29724: inline void PinSelf(const Slice& slice) { 29724: 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: buf_->assign(slice.data(), slice.size()); 29724: data_ = buf_->data(); 29724: size_ = buf_->size(); 29724: 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: } 29724: 29724: inline void PinSelf() { 29724: 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: data_ = buf_->data(); 29724: size_ = buf_->size(); 29724: 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: } 29724: 29724: void remove_suffix(size_t n) { 29724: 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: n <= size() 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "n <= size()" 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: if (pinned_) { 29724: size_ -= n; 29724: } else { 29724: buf_->erase(size() - n, n); 29724: PinSelf(); 29724: } 29724: } 29724: 29724: void remove_prefix(size_t n) { 29724: 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: n <= size() 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "n <= size()" 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: if (pinned_) { 29724: data_ += n; 29724: size_ -= n; 29724: } else { 29724: buf_->erase(0, n); 29724: PinSelf(); 29724: } 29724: } 29724: 29724: void Reset() { 29724: Cleanable::Reset(); 29724: pinned_ = false; 29724: size_ = 0; 29724: } 29724: 29724: inline std::string* GetSelf() { return buf_; } 29724: 29724: inline bool IsPinned() const { return pinned_; } 29724: 29724: private: 29724: friend class PinnableSlice4Test; 29724: std::string self_space_; 29724: std::string* buf_; 29724: bool pinned_ = false; 29724: }; 29724: 29724: 29724: 29724: struct SliceParts { 29724: SliceParts(const Slice* _parts, int _num_parts) 29724: : parts(_parts), num_parts(_num_parts) {} 29724: SliceParts() : parts(nullptr), num_parts(0) {} 29724: 29724: const Slice* parts; 29724: int num_parts; 29724: }; 29724: 29724: inline bool operator==(const Slice& x, const Slice& y) { 29724: return ((x.size() == y.size()) && 29724: (memcmp(x.data(), y.data(), x.size()) == 0)); 29724: } 29724: 29724: inline bool operator!=(const Slice& x, const Slice& y) { return !(x == y); } 29724: 29724: inline int Slice::compare(const Slice& b) const { 29724: 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: data_ != nullptr && b.data_ != nullptr 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "data_ != nullptr && b.data_ != nullptr" 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: const size_t min_len = (size_ < b.size_) ? size_ : b.size_; 29724: int r = memcmp(data_, b.data_, min_len); 29724: if (r == 0) { 29724: if (size_ < b.size_) 29724: r = -1; 29724: else if (size_ > b.size_) 29724: r = +1; 29724: } 29724: return r; 29724: } 29724: 29724: inline size_t Slice::difference_offset(const Slice& b) const { 29724: size_t off = 0; 29724: const size_t len = (size_ < b.size_) ? size_ : b.size_; 29724: for (; off < len; off++) { 29724: if (data_[off] != b.data_[off]) break; 29724: } 29724: return off; 29724: } 29724: 29724: } 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Status { 29724: public: 29724: 29724: Status() 29724: : code_(kOk), 29724: subcode_(kNone), 29724: sev_(kNoError), 29724: retryable_(false), 29724: data_loss_(false), 29724: scope_(0), 29724: state_(nullptr) {} 29724: ~Status() { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: Status(const Status& s); 29724: Status& operator=(const Status& s); 29724: Status(Status&& s) noexcept; 29724: Status& operator=(Status&& s) noexcept; 29724: bool operator==(const Status& rhs) const; 29724: bool operator!=(const Status& rhs) const; 29724: 29724: 29724: 29724: 29724: inline void PermitUncheckedError() const { MarkChecked(); } 29724: 29724: inline void MustCheck() const { 29724: 29724: 29724: 29724: } 29724: 29724: enum Code : unsigned char { 29724: kOk = 0, 29724: kNotFound = 1, 29724: kCorruption = 2, 29724: kNotSupported = 3, 29724: kInvalidArgument = 4, 29724: kIOError = 5, 29724: kMergeInProgress = 6, 29724: kIncomplete = 7, 29724: kShutdownInProgress = 8, 29724: kTimedOut = 9, 29724: kAborted = 10, 29724: kBusy = 11, 29724: kExpired = 12, 29724: kTryAgain = 13, 29724: kCompactionTooLarge = 14, 29724: kColumnFamilyDropped = 15, 29724: kMaxCode 29724: }; 29724: 29724: Code code() const { 29724: MarkChecked(); 29724: return code_; 29724: } 29724: 29724: enum SubCode : unsigned char { 29724: kNone = 0, 29724: kMutexTimeout = 1, 29724: kLockTimeout = 2, 29724: kLockLimit = 3, 29724: kNoSpace = 4, 29724: kDeadlock = 5, 29724: kStaleFile = 6, 29724: kMemoryLimit = 7, 29724: kSpaceLimit = 8, 29724: kPathNotFound = 9, 29724: KMergeOperandsInsufficientCapacity = 10, 29724: kManualCompactionPaused = 11, 29724: kOverwritten = 12, 29724: kTxnNotPrepared = 13, 29724: kIOFenced = 14, 29724: kMergeOperatorFailed = 15, 29724: kMergeOperandThresholdExceeded = 16, 29724: kMaxSubCode 29724: }; 29724: 29724: SubCode subcode() const { 29724: MarkChecked(); 29724: return subcode_; 29724: } 29724: 29724: enum Severity : unsigned char { 29724: kNoError = 0, 29724: kSoftError = 1, 29724: kHardError = 2, 29724: kFatalError = 3, 29724: kUnrecoverableError = 4, 29724: kMaxSeverity 29724: }; 29724: 29724: Status(const Status& s, Severity sev); 29724: 29724: Status(Code _code, SubCode _subcode, Severity _sev, const Slice& msg) 29724: : Status(_code, _subcode, msg, "", _sev) {} 29724: 29724: static Status CopyAppendMessage(const Status& s, const Slice& delim, 29724: const Slice& msg); 29724: 29724: Severity severity() const { 29724: MarkChecked(); 29724: return sev_; 29724: } 29724: 29724: 29724: const char* getState() const { 29724: MarkChecked(); 29724: return state_.get(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: Status& UpdateIfOk(Status&& s) { 29724: if (code() == kOk) { 29724: *this = std::move(s); 29724: } else { 29724: 29724: s.PermitUncheckedError(); 29724: } 29724: MustCheck(); 29724: return *this; 29724: } 29724: 29724: Status& UpdateIfOk(const Status& s) { 29724: return UpdateIfOk(std::forward(Status(s))); 29724: } 29724: 29724: 29724: static Status OK() { return Status(); } 29724: 29724: 29724: 29724: 29724: 29724: static Status OkOverwritten() { return Status(kOk, kOverwritten); } 29724: 29724: 29724: 29724: 29724: 29724: static Status OkMergeOperandThresholdExceeded() { 29724: return Status(kOk, kMergeOperandThresholdExceeded); 29724: } 29724: 29724: 29724: static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kNotFound, msg, msg2); 29724: } 29724: 29724: 29724: static Status NotFound(SubCode msg = kNone) { return Status(kNotFound, msg); } 29724: 29724: static Status NotFound(SubCode sc, const Slice& msg, 29724: const Slice& msg2 = Slice()) { 29724: return Status(kNotFound, sc, msg, msg2); 29724: } 29724: 29724: static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kCorruption, msg, msg2); 29724: } 29724: static Status Corruption(SubCode msg = kNone) { 29724: return Status(kCorruption, msg); 29724: } 29724: 29724: static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kNotSupported, msg, msg2); 29724: } 29724: static Status NotSupported(SubCode msg = kNone) { 29724: return Status(kNotSupported, msg); 29724: } 29724: 29724: static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kInvalidArgument, msg, msg2); 29724: } 29724: static Status InvalidArgument(SubCode msg = kNone) { 29724: return Status(kInvalidArgument, msg); 29724: } 29724: 29724: static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kIOError, msg, msg2); 29724: } 29724: static Status IOError(SubCode msg = kNone) { return Status(kIOError, msg); } 29724: 29724: static Status MergeInProgress(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kMergeInProgress, msg, msg2); 29724: } 29724: static Status MergeInProgress(SubCode msg = kNone) { 29724: return Status(kMergeInProgress, msg); 29724: } 29724: 29724: static Status Incomplete(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kIncomplete, msg, msg2); 29724: } 29724: static Status Incomplete(SubCode msg = kNone) { 29724: return Status(kIncomplete, msg); 29724: } 29724: 29724: static Status ShutdownInProgress(SubCode msg = kNone) { 29724: return Status(kShutdownInProgress, msg); 29724: } 29724: static Status ShutdownInProgress(const Slice& msg, 29724: const Slice& msg2 = Slice()) { 29724: return Status(kShutdownInProgress, msg, msg2); 29724: } 29724: static Status Aborted(SubCode msg = kNone) { return Status(kAborted, msg); } 29724: static Status Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kAborted, msg, msg2); 29724: } 29724: 29724: static Status Busy(SubCode msg = kNone) { return Status(kBusy, msg); } 29724: static Status Busy(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kBusy, msg, msg2); 29724: } 29724: 29724: static Status TimedOut(SubCode msg = kNone) { return Status(kTimedOut, msg); } 29724: static Status TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kTimedOut, msg, msg2); 29724: } 29724: 29724: static Status Expired(SubCode msg = kNone) { return Status(kExpired, msg); } 29724: static Status Expired(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kExpired, msg, msg2); 29724: } 29724: 29724: static Status TryAgain(SubCode msg = kNone) { return Status(kTryAgain, msg); } 29724: static Status TryAgain(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kTryAgain, msg, msg2); 29724: } 29724: 29724: static Status CompactionTooLarge(SubCode msg = kNone) { 29724: return Status(kCompactionTooLarge, msg); 29724: } 29724: static Status CompactionTooLarge(const Slice& msg, 29724: const Slice& msg2 = Slice()) { 29724: return Status(kCompactionTooLarge, msg, msg2); 29724: } 29724: 29724: static Status ColumnFamilyDropped(SubCode msg = kNone) { 29724: return Status(kColumnFamilyDropped, msg); 29724: } 29724: 29724: static Status ColumnFamilyDropped(const Slice& msg, 29724: const Slice& msg2 = Slice()) { 29724: return Status(kColumnFamilyDropped, msg, msg2); 29724: } 29724: 29724: static Status NoSpace() { return Status(kIOError, kNoSpace); } 29724: static Status NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kIOError, kNoSpace, msg, msg2); 29724: } 29724: 29724: static Status MemoryLimit() { return Status(kAborted, kMemoryLimit); } 29724: static Status MemoryLimit(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kAborted, kMemoryLimit, msg, msg2); 29724: } 29724: 29724: static Status SpaceLimit() { return Status(kIOError, kSpaceLimit); } 29724: static Status SpaceLimit(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kIOError, kSpaceLimit, msg, msg2); 29724: } 29724: 29724: static Status PathNotFound() { return Status(kIOError, kPathNotFound); } 29724: static Status PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kIOError, kPathNotFound, msg, msg2); 29724: } 29724: 29724: static Status TxnNotPrepared() { 29724: return Status(kInvalidArgument, kTxnNotPrepared); 29724: } 29724: static Status TxnNotPrepared(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kInvalidArgument, kTxnNotPrepared, msg, msg2); 29724: } 29724: 29724: 29724: bool ok() const { 29724: MarkChecked(); 29724: return code() == kOk; 29724: } 29724: 29724: 29724: 29724: bool IsOkOverwritten() const { 29724: MarkChecked(); 29724: return code() == kOk && subcode() == kOverwritten; 29724: } 29724: 29724: 29724: 29724: bool IsOkMergeOperandThresholdExceeded() const { 29724: MarkChecked(); 29724: return code() == kOk && subcode() == kMergeOperandThresholdExceeded; 29724: } 29724: 29724: 29724: bool IsNotFound() const { 29724: MarkChecked(); 29724: return code() == kNotFound; 29724: } 29724: 29724: 29724: bool IsCorruption() const { 29724: MarkChecked(); 29724: return code() == kCorruption; 29724: } 29724: 29724: 29724: bool IsNotSupported() const { 29724: MarkChecked(); 29724: return code() == kNotSupported; 29724: } 29724: 29724: 29724: bool IsInvalidArgument() const { 29724: MarkChecked(); 29724: return code() == kInvalidArgument; 29724: } 29724: 29724: 29724: bool IsIOError() const { 29724: MarkChecked(); 29724: return code() == kIOError; 29724: } 29724: 29724: 29724: bool IsMergeInProgress() const { 29724: MarkChecked(); 29724: return code() == kMergeInProgress; 29724: } 29724: 29724: 29724: bool IsIncomplete() const { 29724: MarkChecked(); 29724: return code() == kIncomplete; 29724: } 29724: 29724: 29724: bool IsShutdownInProgress() const { 29724: MarkChecked(); 29724: return code() == kShutdownInProgress; 29724: } 29724: 29724: bool IsTimedOut() const { 29724: MarkChecked(); 29724: return code() == kTimedOut; 29724: } 29724: 29724: bool IsAborted() const { 29724: MarkChecked(); 29724: return code() == kAborted; 29724: } 29724: 29724: bool IsLockLimit() const { 29724: MarkChecked(); 29724: return code() == kAborted && subcode() == kLockLimit; 29724: } 29724: 29724: 29724: 29724: bool IsBusy() const { 29724: MarkChecked(); 29724: return code() == kBusy; 29724: } 29724: 29724: bool IsDeadlock() const { 29724: MarkChecked(); 29724: return code() == kBusy && subcode() == kDeadlock; 29724: } 29724: 29724: 29724: bool IsExpired() const { 29724: MarkChecked(); 29724: return code() == kExpired; 29724: } 29724: 29724: 29724: 29724: 29724: bool IsTryAgain() const { 29724: MarkChecked(); 29724: return code() == kTryAgain; 29724: } 29724: 29724: 29724: bool IsCompactionTooLarge() const { 29724: MarkChecked(); 29724: return code() == kCompactionTooLarge; 29724: } 29724: 29724: 29724: bool IsColumnFamilyDropped() const { 29724: MarkChecked(); 29724: return code() == kColumnFamilyDropped; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool IsNoSpace() const { 29724: MarkChecked(); 29724: return (code() == kIOError) && (subcode() == kNoSpace); 29724: } 29724: 29724: 29724: 29724: 29724: bool IsMemoryLimit() const { 29724: MarkChecked(); 29724: return (code() == kAborted) && (subcode() == kMemoryLimit); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: bool IsPathNotFound() const { 29724: MarkChecked(); 29724: return (code() == kIOError || code() == kNotFound) && 29724: (subcode() == kPathNotFound); 29724: } 29724: 29724: 29724: 29724: bool IsManualCompactionPaused() const { 29724: MarkChecked(); 29724: return (code() == kIncomplete) && (subcode() == kManualCompactionPaused); 29724: } 29724: 29724: 29724: bool IsTxnNotPrepared() const { 29724: MarkChecked(); 29724: return (code() == kInvalidArgument) && (subcode() == kTxnNotPrepared); 29724: } 29724: 29724: 29724: bool IsIOFenced() const { 29724: MarkChecked(); 29724: return (code() == kIOError) && (subcode() == kIOFenced); 29724: } 29724: 29724: 29724: 29724: std::string ToString() const; 29724: 29724: protected: 29724: Code code_; 29724: SubCode subcode_; 29724: Severity sev_; 29724: bool retryable_; 29724: bool data_loss_; 29724: unsigned char scope_; 29724: 29724: 29724: std::unique_ptr state_; 29724: 29724: 29724: 29724: 29724: explicit Status(Code _code, SubCode _subcode = kNone) 29724: : code_(_code), 29724: subcode_(_subcode), 29724: sev_(kNoError), 29724: retryable_(false), 29724: data_loss_(false), 29724: scope_(0) {} 29724: 29724: explicit Status(Code _code, SubCode _subcode, bool retryable, bool data_loss, 29724: unsigned char scope) 29724: : code_(_code), 29724: subcode_(_subcode), 29724: sev_(kNoError), 29724: retryable_(retryable), 29724: data_loss_(data_loss), 29724: scope_(scope) {} 29724: 29724: Status(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2, 29724: Severity sev = kNoError); 29724: Status(Code _code, const Slice& msg, const Slice& msg2) 29724: : Status(_code, kNone, msg, msg2) {} 29724: 29724: static std::unique_ptr CopyState(const char* s); 29724: 29724: inline void MarkChecked() const { 29724: 29724: 29724: 29724: } 29724: }; 29724: 29724: inline Status::Status(const Status& s) 29724: : code_(s.code_), 29724: subcode_(s.subcode_), 29724: sev_(s.sev_), 29724: retryable_(s.retryable_), 29724: data_loss_(s.data_loss_), 29724: scope_(s.scope_) { 29724: s.MarkChecked(); 29724: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29724: } 29724: inline Status::Status(const Status& s, Severity sev) 29724: : code_(s.code_), 29724: subcode_(s.subcode_), 29724: sev_(sev), 29724: retryable_(s.retryable_), 29724: data_loss_(s.data_loss_), 29724: scope_(s.scope_) { 29724: s.MarkChecked(); 29724: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29724: } 29724: inline Status& Status::operator=(const Status& s) { 29724: if (this != &s) { 29724: s.MarkChecked(); 29724: MustCheck(); 29724: code_ = s.code_; 29724: subcode_ = s.subcode_; 29724: sev_ = s.sev_; 29724: retryable_ = s.retryable_; 29724: data_loss_ = s.data_loss_; 29724: scope_ = s.scope_; 29724: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29724: } 29724: return *this; 29724: } 29724: 29724: inline Status::Status(Status&& s) noexcept : Status() { 29724: s.MarkChecked(); 29724: *this = std::move(s); 29724: } 29724: 29724: inline Status& Status::operator=(Status&& s) noexcept { 29724: if (this != &s) { 29724: s.MarkChecked(); 29724: MustCheck(); 29724: code_ = std::move(s.code_); 29724: s.code_ = kOk; 29724: subcode_ = std::move(s.subcode_); 29724: s.subcode_ = kNone; 29724: sev_ = std::move(s.sev_); 29724: s.sev_ = kNoError; 29724: retryable_ = std::move(s.retryable_); 29724: s.retryable_ = false; 29724: data_loss_ = std::move(s.data_loss_); 29724: s.data_loss_ = false; 29724: scope_ = std::move(s.scope_); 29724: s.scope_ = 0; 29724: state_ = std::move(s.state_); 29724: } 29724: return *this; 29724: } 29724: 29724: inline bool Status::operator==(const Status& rhs) const { 29724: MarkChecked(); 29724: rhs.MarkChecked(); 29724: return (code_ == rhs.code_); 29724: } 29724: 29724: inline bool Status::operator!=(const Status& rhs) const { 29724: MarkChecked(); 29724: rhs.MarkChecked(); 29724: return !(*this == rhs); 29724: } 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 2 29724: 29724: namespace rocksdb { 29724: class Logger; 29724: class ObjectRegistry; 29724: class OptionTypeInfo; 29724: struct ColumnFamilyOptions; 29724: struct ConfigOptions; 29724: struct DBOptions; 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: class Configurable { 29724: protected: 29724: friend class ConfigurableHelper; 29724: struct RegisteredOptions { 29724: 29724: std::string name; 29724: 29724: 29724: 29724: intptr_t opt_offset; 29724: 29724: const std::unordered_map* type_map; 29724: }; 29724: 29724: public: 29724: virtual ~Configurable() {} 29724: # 70 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: template 29724: const T* GetOptions() const { 29724: return GetOptions(T::kName()); 29724: } 29724: template 29724: T* GetOptions() { 29724: return GetOptions(T::kName()); 29724: } 29724: template 29724: const T* GetOptions(const std::string& name) const { 29724: return reinterpret_cast(GetOptionsPtr(name)); 29724: } 29724: template 29724: T* GetOptions(const std::string& name) { 29724: 29724: 29724: return reinterpret_cast(const_cast(GetOptionsPtr(name))); 29724: } 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: Status ConfigureFromMap( 29724: const ConfigOptions& config_options, 29724: const std::unordered_map& opt_map); 29724: Status ConfigureFromMap( 29724: const ConfigOptions& config_options, 29724: const std::unordered_map& opt_map, 29724: std::unordered_map* unused); 29724: # 137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: Status ConfigureOption(const ConfigOptions& config_options, 29724: const std::string& name, const std::string& value); 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: Status ConfigureFromString(const ConfigOptions& config_options, 29724: const std::string& opts); 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: Status GetOptionString(const ConfigOptions& config_options, 29724: std::string* result) const; 29724: 29724: 29724: 29724: 29724: 29724: std::string ToString(const ConfigOptions& config_options) const { 29724: return ToString(config_options, ""); 29724: } 29724: std::string ToString(const ConfigOptions& config_options, 29724: const std::string& prefix) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status GetOptionNames(const ConfigOptions& config_options, 29724: std::unordered_set* result) const; 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual Status GetOption(const ConfigOptions& config_options, 29724: const std::string& name, std::string* value) const; 29724: # 212 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual bool AreEquivalent(const ConfigOptions& config_options, 29724: const Configurable* other, 29724: std::string* name) const; 29724: 29724: 29724: 29724: 29724: virtual std::string GetPrintableOptions() const { return ""; } 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual Status PrepareOptions(const ConfigOptions& config_options); 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual Status ValidateOptions(const DBOptions& db_opts, 29724: const ColumnFamilyOptions& cf_opts) const; 29724: # 276 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: static Status GetOptionsMap( 29724: const std::string& opt_value, const std::string& default_id, 29724: std::string* id, std::unordered_map* options); 29724: 29724: protected: 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual const void* GetOptionsPtr(const std::string& name) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status ParseStringOptions(const ConfigOptions& config_options, 29724: const std::string& opts_str); 29724: # 313 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual Status ConfigureOptions( 29724: const ConfigOptions& config_options, 29724: const std::unordered_map& opts_map, 29724: std::unordered_map* unused); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status ParseOption(const ConfigOptions& config_options, 29724: const OptionTypeInfo& opt_info, 29724: const std::string& opt_name, 29724: const std::string& opt_value, void* opt_ptr); 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual bool OptionsAreEqual(const ConfigOptions& config_options, 29724: const OptionTypeInfo& opt_info, 29724: const std::string& name, 29724: const void* const this_ptr, 29724: const void* const that_ptr, 29724: std::string* bad_name) const; 29724: 29724: 29724: virtual std::string SerializeOptions(const ConfigOptions& config_options, 29724: const std::string& header) const; 29724: 29724: 29724: virtual std::string GetOptionName(const std::string& long_name) const; 29724: # 375 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: template 29724: void RegisterOptions( 29724: T* opt_ptr, 29724: const std::unordered_map* opt_map) { 29724: RegisterOptions(T::kName(), opt_ptr, opt_map); 29724: } 29724: void RegisterOptions( 29724: const std::string& name, void* opt_ptr, 29724: const std::unordered_map* opt_map); 29724: 29724: 29724: inline bool HasRegisteredOptions() const { return !options_.empty(); } 29724: 29724: private: 29724: 29724: 29724: 29724: std::vector options_; 29724: }; 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: # 56 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: class Customizable : public Configurable { 29724: public: 29724: ~Customizable() override {} 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: 29724: 29724: virtual std::string GetId() const { 29724: std::string id = Name(); 29724: return id; 29724: } 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: virtual bool IsInstanceOf(const std::string& name) const { 29724: if (name.empty()) { 29724: return false; 29724: } else if (name == Name()) { 29724: return true; 29724: } else { 29724: const char* nickname = NickName(); 29724: if (nickname != nullptr && name == nickname) { 29724: return true; 29724: } else { 29724: return false; 29724: } 29724: } 29724: } 29724: 29724: const void* GetOptionsPtr(const std::string& name) const override { 29724: const void* ptr = Configurable::GetOptionsPtr(name); 29724: if (ptr != nullptr) { 29724: return ptr; 29724: } else { 29724: const auto inner = Inner(); 29724: if (inner != nullptr) { 29724: return inner->GetOptionsPtr(name); 29724: } else { 29724: return nullptr; 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: const T* CheckedCast() const { 29724: if (IsInstanceOf(T::kClassName())) { 29724: return static_cast(this); 29724: } else { 29724: const auto inner = Inner(); 29724: if (inner != nullptr) { 29724: return inner->CheckedCast(); 29724: } else { 29724: return nullptr; 29724: } 29724: } 29724: } 29724: 29724: template 29724: T* CheckedCast() { 29724: if (IsInstanceOf(T::kClassName())) { 29724: return static_cast(this); 29724: } else { 29724: auto inner = const_cast(Inner()); 29724: if (inner != nullptr) { 29724: return inner->CheckedCast(); 29724: } else { 29724: return nullptr; 29724: } 29724: } 29724: } 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: bool AreEquivalent(const ConfigOptions& config_options, 29724: const Configurable* other, 29724: std::string* mismatch) const override; 29724: 29724: 29724: Status GetOption(const ConfigOptions& config_options, const std::string& name, 29724: std::string* value) const override; 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: static Status GetOptionsMap( 29724: const ConfigOptions& config_options, const Customizable* custom, 29724: const std::string& opt_value, std::string* id, 29724: std::unordered_map* options); 29724: # 195 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: static Status ConfigureNewObject( 29724: const ConfigOptions& config_options, Customizable* object, 29724: const std::unordered_map& options); 29724: 29724: 29724: 29724: 29724: virtual const Customizable* Inner() const { return nullptr; } 29724: 29724: protected: 29724: # 217 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: std::string GenerateIndividualId() const; 29724: 29724: 29724: 29724: 29724: virtual const char* NickName() const { return ""; } 29724: 29724: std::string GetOptionName(const std::string& long_name) const override; 29724: std::string SerializeOptions(const ConfigOptions& options, 29724: const std::string& prefix) const override; 29724: }; 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: 29724: 29724: 29724: class CompareInterface { 29724: public: 29724: virtual ~CompareInterface() {} 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: virtual int Compare(const Slice& a, const Slice& b) const = 0; 29724: }; 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: class Comparator : public Customizable, public CompareInterface { 29724: public: 29724: Comparator() : timestamp_size_(0) {} 29724: 29724: Comparator(size_t ts_sz) : timestamp_size_(ts_sz) {} 29724: 29724: Comparator(const Comparator& orig) : timestamp_size_(orig.timestamp_size_) {} 29724: 29724: Comparator& operator=(const Comparator& rhs) { 29724: if (this != &rhs) { 29724: timestamp_size_ = rhs.timestamp_size_; 29724: } 29724: return *this; 29724: } 29724: 29724: ~Comparator() override {} 29724: 29724: static Status CreateFromString(const ConfigOptions& opts, 29724: const std::string& id, 29724: const Comparator** comp); 29724: static const char* Type() { return "Comparator"; } 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: const char* Name() const override = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool Equal(const Slice& a, const Slice& b) const { 29724: return Compare(a, b) == 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void FindShortestSeparator(std::string* start, 29724: const Slice& limit) const = 0; 29724: 29724: 29724: 29724: 29724: virtual void FindShortSuccessor(std::string* key) const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool IsSameLengthImmediateSuccessor(const Slice& , 29724: const Slice& ) const { 29724: return false; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual bool CanKeysWithDifferentByteContentsBeEqual() const { return true; } 29724: 29724: 29724: 29724: virtual const Comparator* GetRootComparator() const { return this; } 29724: 29724: inline size_t timestamp_size() const { return timestamp_size_; } 29724: 29724: 29724: 29724: 29724: virtual Slice GetMaxTimestamp() const { 29724: if (timestamp_size_ == 0) { 29724: return Slice(); 29724: } 29724: 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: (static_cast ( 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: false 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: "false" 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: ; 29724: return Slice(); 29724: } 29724: 29724: 29724: 29724: 29724: virtual Slice GetMinTimestamp() const { 29724: if (timestamp_size_ == 0) { 29724: return Slice(); 29724: } 29724: 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: (static_cast ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: false 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: "false" 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: ; 29724: return Slice(); 29724: } 29724: 29724: 29724: virtual std::string TimestampToString(const Slice& ) const { 29724: return ""; 29724: } 29724: 29724: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 29724: return CompareWithoutTimestamp(a, true, b, true); 29724: } 29724: # 163 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: virtual int CompareTimestamp(const Slice& , 29724: const Slice& ) const { 29724: return 0; 29724: } 29724: 29724: virtual int CompareWithoutTimestamp(const Slice& a, bool , 29724: const Slice& b, bool ) const { 29724: return Compare(a, b); 29724: } 29724: 29724: virtual bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 29724: return 0 == 29724: CompareWithoutTimestamp(a, true, b, true); 29724: } 29724: 29724: private: 29724: size_t timestamp_size_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: const Comparator* BytewiseComparator(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: const Comparator* ReverseBytewiseComparator(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: const Comparator* BytewiseComparatorWithU64Ts(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: const Comparator* ReverseBytewiseComparatorWithU64Ts(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status DecodeU64Ts(const Slice& ts, uint64_t* int_ts); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Slice EncodeU64Ts(uint64_t ts, std::string* ts_buf); 29724: 29724: 29724: 29724: 29724: Slice MaxU64Ts(); 29724: 29724: 29724: 29724: 29724: Slice MinU64Ts(); 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 1 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: struct ConfigOptions; 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29724: class SliceTransform : public Customizable { 29724: public: 29724: virtual ~SliceTransform(){} 29724: 29724: 29724: const char* Name() const override = 0; 29724: static const char* Type() { return "SliceTransform"; } 29724: 29724: 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& id, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: std::string AsString() const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Slice Transform(const Slice& key) const = 0; 29724: # 71 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29724: virtual bool InDomain(const Slice& key) const = 0; 29724: 29724: 29724: 29724: virtual bool InRange(const Slice& ) const { return false; } 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29724: virtual bool FullLengthEnabled(size_t* ) const { return false; } 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29724: virtual bool SameResultWhenAppended(const Slice& ) const { 29724: return false; 29724: } 29724: }; 29724: 29724: 29724: 29724: const SliceTransform* NewFixedPrefixTransform(size_t prefix_len); 29724: 29724: 29724: 29724: const SliceTransform* NewCappedPrefixTransform(size_t cap_len); 29724: 29724: 29724: const SliceTransform* NewNoopTransform(); 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/types.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/types.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: using ColumnFamilyId = uint32_t; 29724: 29724: 29724: using SequenceNumber = uint64_t; 29724: 29724: struct TableProperties; 29724: using TablePropertiesCollection = 29724: std::unordered_map>; 29724: 29724: const SequenceNumber kMinUnCommittedSeq = 1; 29724: 29724: enum class TableFileCreationReason { 29724: kFlush, 29724: kCompaction, 29724: kRecovery, 29724: kMisc, 29724: }; 29724: 29724: enum class BlobFileCreationReason { 29724: kFlush, 29724: kCompaction, 29724: kRecovery, 29724: }; 29724: 29724: 29724: 29724: enum FileType { 29724: kWalFile, 29724: kDBLockFile, 29724: kTableFile, 29724: kDescriptorFile, 29724: kCurrentFile, 29724: kTempFile, 29724: kInfoLogFile, 29724: kMetaDatabase, 29724: kIdentityFile, 29724: kOptionsFile, 29724: kBlobFile 29724: }; 29724: 29724: 29724: 29724: enum EntryType { 29724: kEntryPut, 29724: kEntryDelete, 29724: kEntrySingleDelete, 29724: kEntryMerge, 29724: kEntryRangeDeletion, 29724: kEntryBlobIndex, 29724: kEntryDeleteWithTimestamp, 29724: kEntryWideColumnEntity, 29724: kEntryTimedPut, 29724: kEntryOther, 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: struct ParsedEntryInfo { 29724: Slice user_key; 29724: Slice timestamp; 29724: SequenceNumber sequence; 29724: EntryType type; 29724: }; 29724: 29724: enum class WriteStallCause { 29724: 29724: 29724: 29724: kMemtableLimit, 29724: kL0FileCountLimit, 29724: kPendingCompactionBytes, 29724: kCFScopeWriteStallCauseEnumMax, 29724: 29724: 29724: 29724: 29724: 29724: kWriteBufferManagerLimit, 29724: kDBScopeWriteStallCauseEnumMax, 29724: 29724: 29724: 29724: kNone, 29724: }; 29724: 29724: enum class WriteStallCondition { 29724: kDelayed, 29724: kStopped, 29724: 29724: kNormal, 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: enum class Temperature : uint8_t { 29724: kUnknown = 0, 29724: kHot = 0x04, 29724: kWarm = 0x08, 29724: kCold = 0x0C, 29724: kLastTemperature, 29724: }; 29724: 29724: } 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 1 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 29724: 29724: # 1 "/usr/include/c++/14/algorithm" 1 3 29724: # 58 "/usr/include/c++/14/algorithm" 3 29724: 29724: # 59 "/usr/include/c++/14/algorithm" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_algo.h" 1 3 29724: # 59 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: # 1 "/usr/include/c++/14/bits/algorithmfwd.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: 29724: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 195 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: template 29724: 29724: bool 29724: all_of(_IIter, _IIter, _Predicate); 29724: 29724: template 29724: 29724: bool 29724: any_of(_IIter, _IIter, _Predicate); 29724: 29724: 29724: template 29724: 29724: bool 29724: binary_search(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: bool 29724: binary_search(_FIter, _FIter, const _Tp&, _Compare); 29724: 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: clamp(const _Tp&, const _Tp&, const _Tp&); 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: clamp(const _Tp&, const _Tp&, const _Tp&, _Compare); 29724: 29724: 29724: template 29724: 29724: _OIter 29724: copy(_IIter, _IIter, _OIter); 29724: 29724: template 29724: 29724: _BIter2 29724: copy_backward(_BIter1, _BIter1, _BIter2); 29724: 29724: 29724: template 29724: 29724: _OIter 29724: copy_if(_IIter, _IIter, _OIter, _Predicate); 29724: 29724: template 29724: 29724: _OIter 29724: copy_n(_IIter, _Size, _OIter); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: pair<_FIter, _FIter> 29724: equal_range(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: pair<_FIter, _FIter> 29724: equal_range(_FIter, _FIter, const _Tp&, _Compare); 29724: 29724: template 29724: 29724: void 29724: fill(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: _OIter 29724: fill_n(_OIter, _Size, const _Tp&); 29724: 29724: 29724: 29724: template 29724: 29724: _FIter1 29724: find_end(_FIter1, _FIter1, _FIter2, _FIter2); 29724: 29724: template 29724: 29724: _FIter1 29724: find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _IIter 29724: find_if_not(_IIter, _IIter, _Predicate); 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: bool 29724: includes(_IIter1, _IIter1, _IIter2, _IIter2); 29724: 29724: template 29724: 29724: bool 29724: includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 29724: 29724: template 29724: void 29724: inplace_merge(_BIter, _BIter, _BIter); 29724: 29724: template 29724: void 29724: inplace_merge(_BIter, _BIter, _BIter, _Compare); 29724: 29724: 29724: template 29724: 29724: bool 29724: is_heap(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: bool 29724: is_heap(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: _RAIter 29724: is_heap_until(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: _RAIter 29724: is_heap_until(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: bool 29724: is_partitioned(_IIter, _IIter, _Predicate); 29724: 29724: template 29724: 29724: bool 29724: is_permutation(_FIter1, _FIter1, _FIter2); 29724: 29724: template 29724: 29724: bool 29724: is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); 29724: 29724: template 29724: 29724: bool 29724: is_sorted(_FIter, _FIter); 29724: 29724: template 29724: 29724: bool 29724: is_sorted(_FIter, _FIter, _Compare); 29724: 29724: template 29724: 29724: _FIter 29724: is_sorted_until(_FIter, _FIter); 29724: 29724: template 29724: 29724: _FIter 29724: is_sorted_until(_FIter, _FIter, _Compare); 29724: 29724: 29724: template 29724: 29724: void 29724: iter_swap(_FIter1, _FIter2); 29724: 29724: template 29724: 29724: _FIter 29724: lower_bound(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: _FIter 29724: lower_bound(_FIter, _FIter, const _Tp&, _Compare); 29724: 29724: template 29724: 29724: void 29724: make_heap(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: make_heap(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: max(const _Tp&, const _Tp&); 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: max(const _Tp&, const _Tp&, _Compare); 29724: 29724: 29724: 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: min(const _Tp&, const _Tp&); 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: min(const _Tp&, const _Tp&, _Compare); 29724: 29724: 29724: 29724: 29724: template 29724: constexpr 29724: pair 29724: minmax(const _Tp&, const _Tp&); 29724: 29724: template 29724: constexpr 29724: pair 29724: minmax(const _Tp&, const _Tp&, _Compare); 29724: 29724: template 29724: constexpr 29724: pair<_FIter, _FIter> 29724: minmax_element(_FIter, _FIter); 29724: 29724: template 29724: constexpr 29724: pair<_FIter, _FIter> 29724: minmax_element(_FIter, _FIter, _Compare); 29724: 29724: template 29724: constexpr 29724: _Tp 29724: min(initializer_list<_Tp>); 29724: 29724: template 29724: constexpr 29724: _Tp 29724: min(initializer_list<_Tp>, _Compare); 29724: 29724: template 29724: constexpr 29724: _Tp 29724: max(initializer_list<_Tp>); 29724: 29724: template 29724: constexpr 29724: _Tp 29724: max(initializer_list<_Tp>, _Compare); 29724: 29724: template 29724: constexpr 29724: pair<_Tp, _Tp> 29724: minmax(initializer_list<_Tp>); 29724: 29724: template 29724: constexpr 29724: pair<_Tp, _Tp> 29724: minmax(initializer_list<_Tp>, _Compare); 29724: 29724: 29724: 29724: 29724: template 29724: 29724: bool 29724: next_permutation(_BIter, _BIter); 29724: 29724: template 29724: 29724: bool 29724: next_permutation(_BIter, _BIter, _Compare); 29724: 29724: 29724: template 29724: 29724: bool 29724: none_of(_IIter, _IIter, _Predicate); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _RAIter 29724: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); 29724: 29724: template 29724: 29724: _RAIter 29724: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); 29724: 29724: 29724: 29724: 29724: template 29724: 29724: pair<_OIter1, _OIter2> 29724: partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); 29724: 29724: template 29724: 29724: _FIter 29724: partition_point(_FIter, _FIter, _Predicate); 29724: 29724: 29724: template 29724: 29724: void 29724: pop_heap(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: pop_heap(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: bool 29724: prev_permutation(_BIter, _BIter); 29724: 29724: template 29724: 29724: bool 29724: prev_permutation(_BIter, _BIter, _Compare); 29724: 29724: template 29724: 29724: void 29724: push_heap(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: push_heap(_RAIter, _RAIter, _Compare); 29724: 29724: 29724: 29724: template 29724: 29724: _FIter 29724: remove(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: _FIter 29724: remove_if(_FIter, _FIter, _Predicate); 29724: 29724: template 29724: 29724: _OIter 29724: remove_copy(_IIter, _IIter, _OIter, const _Tp&); 29724: 29724: template 29724: 29724: _OIter 29724: remove_copy_if(_IIter, _IIter, _OIter, _Predicate); 29724: 29724: 29724: 29724: template 29724: 29724: _OIter 29724: replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); 29724: 29724: template 29724: 29724: _OIter 29724: replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: reverse(_BIter, _BIter); 29724: 29724: template 29724: 29724: _OIter 29724: reverse_copy(_BIter, _BIter, _OIter); 29724: 29724: inline namespace _V2 { 29724: 29724: template 29724: 29724: _FIter 29724: rotate(_FIter, _FIter, _FIter); 29724: 29724: } 29724: 29724: template 29724: 29724: _OIter 29724: rotate_copy(_FIter, _FIter, _FIter, _OIter); 29724: # 622 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: template 29724: void 29724: shuffle(_RAIter, _RAIter, _UGenerator&&); 29724: 29724: 29724: template 29724: 29724: void 29724: sort_heap(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: sort_heap(_RAIter, _RAIter, _Compare); 29724: 29724: 29724: template 29724: _BIter 29724: stable_partition(_BIter, _BIter, _Predicate); 29724: # 657 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: template 29724: 29724: _FIter2 29724: swap_ranges(_FIter1, _FIter1, _FIter2); 29724: 29724: 29724: 29724: template 29724: 29724: _FIter 29724: unique(_FIter, _FIter); 29724: 29724: template 29724: 29724: _FIter 29724: unique(_FIter, _FIter, _BinaryPredicate); 29724: 29724: 29724: 29724: template 29724: 29724: _FIter 29724: upper_bound(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: _FIter 29724: upper_bound(_FIter, _FIter, const _Tp&, _Compare); 29724: 29724: 29724: 29724: template 29724: 29724: _FIter 29724: adjacent_find(_FIter, _FIter); 29724: 29724: template 29724: 29724: _FIter 29724: adjacent_find(_FIter, _FIter, _BinaryPredicate); 29724: 29724: template 29724: 29724: typename iterator_traits<_IIter>::difference_type 29724: count(_IIter, _IIter, const _Tp&); 29724: 29724: template 29724: 29724: typename iterator_traits<_IIter>::difference_type 29724: count_if(_IIter, _IIter, _Predicate); 29724: 29724: template 29724: 29724: bool 29724: equal(_IIter1, _IIter1, _IIter2); 29724: 29724: template 29724: 29724: bool 29724: equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 29724: 29724: template 29724: 29724: _IIter 29724: find(_IIter, _IIter, const _Tp&); 29724: 29724: template 29724: 29724: _FIter1 29724: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); 29724: 29724: template 29724: 29724: _FIter1 29724: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29724: 29724: template 29724: 29724: _IIter 29724: find_if(_IIter, _IIter, _Predicate); 29724: 29724: template 29724: 29724: _Funct 29724: for_each(_IIter, _IIter, _Funct); 29724: 29724: template 29724: 29724: void 29724: generate(_FIter, _FIter, _Generator); 29724: 29724: template 29724: 29724: _OIter 29724: generate_n(_OIter, _Size, _Generator); 29724: 29724: template 29724: 29724: bool 29724: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); 29724: 29724: template 29724: 29724: bool 29724: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 29724: 29724: template 29724: constexpr 29724: _FIter 29724: max_element(_FIter, _FIter); 29724: 29724: template 29724: constexpr 29724: _FIter 29724: max_element(_FIter, _FIter, _Compare); 29724: 29724: template 29724: 29724: _OIter 29724: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29724: 29724: template 29724: constexpr 29724: _FIter 29724: min_element(_FIter, _FIter); 29724: 29724: template 29724: constexpr 29724: _FIter 29724: min_element(_FIter, _FIter, _Compare); 29724: 29724: template 29724: 29724: pair<_IIter1, _IIter2> 29724: mismatch(_IIter1, _IIter1, _IIter2); 29724: 29724: template 29724: 29724: pair<_IIter1, _IIter2> 29724: mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 29724: 29724: template 29724: 29724: void 29724: nth_element(_RAIter, _RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: nth_element(_RAIter, _RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: void 29724: partial_sort(_RAIter, _RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: partial_sort(_RAIter, _RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: _BIter 29724: partition(_BIter, _BIter, _Predicate); 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29724: void 29724: random_shuffle(_RAIter, _RAIter); 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29724: void 29724: random_shuffle(_RAIter, _RAIter, 29724: 29724: _Generator&&); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: replace(_FIter, _FIter, const _Tp&, const _Tp&); 29724: 29724: template 29724: 29724: void 29724: replace_if(_FIter, _FIter, _Predicate, const _Tp&); 29724: 29724: template 29724: 29724: _FIter1 29724: search(_FIter1, _FIter1, _FIter2, _FIter2); 29724: 29724: template 29724: 29724: _FIter1 29724: search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29724: 29724: template 29724: 29724: _FIter 29724: search_n(_FIter, _FIter, _Size, const _Tp&); 29724: 29724: template 29724: 29724: _FIter 29724: search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); 29724: 29724: template 29724: 29724: _OIter 29724: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29724: 29724: template 29724: 29724: _OIter 29724: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29724: 29724: template 29724: 29724: _OIter 29724: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, 29724: _OIter, _Compare); 29724: 29724: template 29724: 29724: _OIter 29724: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29724: 29724: template 29724: 29724: void 29724: sort(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: sort(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: void 29724: stable_sort(_RAIter, _RAIter); 29724: 29724: template 29724: void 29724: stable_sort(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: _OIter 29724: transform(_IIter, _IIter, _OIter, _UnaryOperation); 29724: 29724: template 29724: 29724: _OIter 29724: transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); 29724: 29724: template 29724: 29724: _OIter 29724: unique_copy(_IIter, _IIter, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); 29724: 29724: 29724: 29724: } 29724: # 60 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_heap.h" 1 3 29724: # 63 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _Distance 29724: __is_heap_until(_RandomAccessIterator __first, _Distance __n, 29724: _Compare& __comp) 29724: { 29724: _Distance __parent = 0; 29724: for (_Distance __child = 1; __child < __n; ++__child) 29724: { 29724: if (__comp(__first + __parent, __first + __child)) 29724: return __child; 29724: if ((__child & 1) == 0) 29724: ++__parent; 29724: } 29724: return __n; 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: inline bool 29724: __is_heap(_RandomAccessIterator __first, _Distance __n) 29724: { 29724: __gnu_cxx::__ops::_Iter_less_iter __comp; 29724: return std::__is_heap_until(__first, __n, __comp) == __n; 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) 29724: { 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: return std::__is_heap_until(__first, __n, __cmp) == __n; 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { return std::__is_heap(__first, std::distance(__first, __last)); } 29724: 29724: template 29724: 29724: inline bool 29724: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: return std::__is_heap(__first, std::move(__comp), 29724: std::distance(__first, __last)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __push_heap(_RandomAccessIterator __first, 29724: _Distance __holeIndex, _Distance __topIndex, _Tp __value, 29724: _Compare& __comp) 29724: { 29724: _Distance __parent = (__holeIndex - 1) / 2; 29724: while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) 29724: { 29724: *(__first + __holeIndex) = std::move(*(__first + __parent)); 29724: __holeIndex = __parent; 29724: __parent = (__holeIndex - 1) / 2; 29724: } 29724: *(__first + __holeIndex) = std::move(__value); 29724: } 29724: # 159 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: __gnu_cxx::__ops::_Iter_less_val __comp; 29724: _ValueType __value = std::move(*(__last - 1)); 29724: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 29724: _DistanceType(0), std::move(__value), __comp); 29724: } 29724: # 195 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 29724: __cmp(std::move(__comp)); 29724: _ValueType __value = std::move(*(__last - 1)); 29724: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 29724: _DistanceType(0), std::move(__value), __cmp); 29724: } 29724: 29724: template 29724: 29724: void 29724: __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, 29724: _Distance __len, _Tp __value, _Compare __comp) 29724: { 29724: const _Distance __topIndex = __holeIndex; 29724: _Distance __secondChild = __holeIndex; 29724: while (__secondChild < (__len - 1) / 2) 29724: { 29724: __secondChild = 2 * (__secondChild + 1); 29724: if (__comp(__first + __secondChild, 29724: __first + (__secondChild - 1))) 29724: __secondChild--; 29724: *(__first + __holeIndex) = std::move(*(__first + __secondChild)); 29724: __holeIndex = __secondChild; 29724: } 29724: if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) 29724: { 29724: __secondChild = 2 * (__secondChild + 1); 29724: *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) 29724: ; 29724: __holeIndex = __secondChild - 1; 29724: } 29724: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 29724: __cmp(std::move(__comp)); 29724: std::__push_heap(__first, __holeIndex, __topIndex, 29724: std::move(__value), __cmp); 29724: } 29724: 29724: template 29724: 29724: inline void 29724: __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _RandomAccessIterator __result, _Compare& __comp) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: _ValueType __value = std::move(*__result); 29724: *__result = std::move(*__first); 29724: std::__adjust_heap(__first, _DistanceType(0), 29724: _DistanceType(__last - __first), 29724: std::move(__value), __comp); 29724: } 29724: # 280 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: if (__last - __first > 1) 29724: { 29724: --__last; 29724: __gnu_cxx::__ops::_Iter_less_iter __comp; 29724: std::__pop_heap(__first, __last, __last, __comp); 29724: } 29724: } 29724: # 314 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: pop_heap(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: if (__last - __first > 1) 29724: { 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: --__last; 29724: std::__pop_heap(__first, __last, __last, __cmp); 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare& __comp) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: if (__last - __first < 2) 29724: return; 29724: 29724: const _DistanceType __len = __last - __first; 29724: _DistanceType __parent = (__len - 2) / 2; 29724: while (true) 29724: { 29724: _ValueType __value = std::move(*(__first + __parent)); 29724: std::__adjust_heap(__first, __parent, __len, std::move(__value), 29724: __comp); 29724: if (__parent == 0) 29724: return; 29724: __parent--; 29724: } 29724: } 29724: # 372 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: __gnu_cxx::__ops::_Iter_less_iter __comp; 29724: std::__make_heap(__first, __last, __comp); 29724: } 29724: # 399 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: std::__make_heap(__first, __last, __cmp); 29724: } 29724: 29724: template 29724: 29724: void 29724: __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare& __comp) 29724: { 29724: while (__last - __first > 1) 29724: { 29724: --__last; 29724: std::__pop_heap(__first, __last, __last, __comp); 29724: } 29724: } 29724: # 437 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: __gnu_cxx::__ops::_Iter_less_iter __comp; 29724: std::__sort_heap(__first, __last, __comp); 29724: } 29724: # 465 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: std::__sort_heap(__first, __last, __cmp); 29724: } 29724: # 494 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _RandomAccessIterator 29724: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: __gnu_cxx::__ops::_Iter_less_iter __comp; 29724: return __first + 29724: std::__is_heap_until(__first, std::distance(__first, __last), __comp); 29724: } 29724: # 523 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _RandomAccessIterator 29724: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: return __first 29724: + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); 29724: } 29724: # 548 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { return std::is_heap_until(__first, __last) == __last; } 29724: # 562 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: const auto __dist = std::distance(__first, __last); 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: return std::__is_heap_until(__first, __dist, __cmp) == __dist; 29724: } 29724: 29724: 29724: 29724: } 29724: # 62 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/uniform_int_dist.h" 1 3 29724: # 41 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 64 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: template 29724: constexpr bool 29724: _Power_of_2(_Tp __x) 29724: { 29724: return ((__x - 1) & __x) == 0; 29724: } 29724: } 29724: # 87 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: template 29724: class uniform_int_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "template argument must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: struct param_type 29724: { 29724: typedef uniform_int_distribution<_IntType> distribution_type; 29724: 29724: param_type() : param_type(0) { } 29724: 29724: explicit 29724: param_type(_IntType __a, 29724: _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) 29724: : _M_a(__a), _M_b(__b) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: result_type 29724: a() const 29724: { return _M_a; } 29724: 29724: result_type 29724: b() const 29724: { return _M_b; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: private: 29724: _IntType _M_a; 29724: _IntType _M_b; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: uniform_int_distribution() : uniform_int_distribution(0) { } 29724: 29724: 29724: 29724: 29724: explicit 29724: uniform_int_distribution(_IntType __a, 29724: _IntType __b 29724: = __gnu_cxx::__int_traits<_IntType>::__max) 29724: : _M_param(__a, __b) 29724: { } 29724: 29724: explicit 29724: uniform_int_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset() { } 29724: 29724: result_type 29724: a() const 29724: { return _M_param.a(); } 29724: 29724: result_type 29724: b() const 29724: { return _M_param.b(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return this->a(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return this->b(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomBitGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomBitGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomBitGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomBitGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomBitGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const uniform_int_distribution& __d1, 29724: const uniform_int_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomBitGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: 29724: 29724: 29724: template 29724: static _Up 29724: _S_nd(_Urbg& __g, _Up __range) 29724: { 29724: using _Up_traits = __gnu_cxx::__int_traits<_Up>; 29724: using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; 29724: static_assert(!_Up_traits::__is_signed, "U must be unsigned"); 29724: static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); 29724: static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), 29724: "W must be twice as wide as U"); 29724: 29724: 29724: 29724: 29724: _Wp __product = _Wp(__g()) * _Wp(__range); 29724: _Up __low = _Up(__product); 29724: if (__low < __range) 29724: { 29724: _Up __threshold = -__range % __range; 29724: while (__low < __threshold) 29724: { 29724: __product = _Wp(__g()) * _Wp(__range); 29724: __low = _Up(__product); 29724: } 29724: } 29724: return __product >> _Up_traits::__digits; 29724: } 29724: }; 29724: 29724: template 29724: template 29724: typename uniform_int_distribution<_IntType>::result_type 29724: uniform_int_distribution<_IntType>:: 29724: operator()(_UniformRandomBitGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 29724: typedef typename make_unsigned::type __utype; 29724: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 29724: 29724: constexpr __uctype __urngmin = _UniformRandomBitGenerator::min(); 29724: constexpr __uctype __urngmax = _UniformRandomBitGenerator::max(); 29724: static_assert( __urngmin < __urngmax, 29724: "Uniform random bit generator must define min() < max()"); 29724: constexpr __uctype __urngrange = __urngmax - __urngmin; 29724: 29724: const __uctype __urange 29724: = __uctype(__param.b()) - __uctype(__param.a()); 29724: 29724: __uctype __ret; 29724: if (__urngrange > __urange) 29724: { 29724: 29724: 29724: const __uctype __uerange = __urange + 1; 29724: # 323 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: if constexpr (__urngrange == 0xffffffffU) 29724: { 29724: 29724: 29724: unsigned int __u32erange = __uerange; 29724: __ret = _S_nd(__urng, __u32erange); 29724: } 29724: else 29724: 29724: { 29724: 29724: const __uctype __scaling = __urngrange / __uerange; 29724: const __uctype __past = __uerange * __scaling; 29724: do 29724: __ret = __uctype(__urng()) - __urngmin; 29724: while (__ret >= __past); 29724: __ret /= __scaling; 29724: } 29724: } 29724: else if (__urngrange < __urange) 29724: { 29724: # 359 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: __uctype __tmp; 29724: do 29724: { 29724: const __uctype __uerngrange = __urngrange + 1; 29724: __tmp = (__uerngrange * operator() 29724: (__urng, param_type(0, __urange / __uerngrange))); 29724: __ret = __tmp + (__uctype(__urng()) - __urngmin); 29724: } 29724: while (__ret > __urange || __ret < __tmp); 29724: } 29724: else 29724: __ret = __uctype(__urng()) - __urngmin; 29724: 29724: return __ret + __param.a(); 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: uniform_int_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomBitGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 29724: typedef typename make_unsigned::type __utype; 29724: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 29724: 29724: static_assert( __urng.min() < __urng.max(), 29724: "Uniform random bit generator must define min() < max()"); 29724: 29724: constexpr __uctype __urngmin = __urng.min(); 29724: constexpr __uctype __urngmax = __urng.max(); 29724: constexpr __uctype __urngrange = __urngmax - __urngmin; 29724: const __uctype __urange 29724: = __uctype(__param.b()) - __uctype(__param.a()); 29724: 29724: __uctype __ret; 29724: 29724: if (__urngrange > __urange) 29724: { 29724: if (__detail::_Power_of_2(__urngrange + 1) 29724: && __detail::_Power_of_2(__urange + 1)) 29724: { 29724: while (__f != __t) 29724: { 29724: __ret = __uctype(__urng()) - __urngmin; 29724: *__f++ = (__ret & __urange) + __param.a(); 29724: } 29724: } 29724: else 29724: { 29724: 29724: const __uctype __uerange = __urange + 1; 29724: const __uctype __scaling = __urngrange / __uerange; 29724: const __uctype __past = __uerange * __scaling; 29724: while (__f != __t) 29724: { 29724: do 29724: __ret = __uctype(__urng()) - __urngmin; 29724: while (__ret >= __past); 29724: *__f++ = __ret / __scaling + __param.a(); 29724: } 29724: } 29724: } 29724: else if (__urngrange < __urange) 29724: { 29724: # 444 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: __uctype __tmp; 29724: while (__f != __t) 29724: { 29724: do 29724: { 29724: constexpr __uctype __uerngrange = __urngrange + 1; 29724: __tmp = (__uerngrange * operator() 29724: (__urng, param_type(0, __urange / __uerngrange))); 29724: __ret = __tmp + (__uctype(__urng()) - __urngmin); 29724: } 29724: while (__ret > __urange || __ret < __tmp); 29724: *__f++ = __ret; 29724: } 29724: } 29724: else 29724: while (__f != __t) 29724: *__f++ = __uctype(__urng()) - __urngmin + __param.a(); 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstdlib" 1 3 29724: # 39 "/usr/include/c++/14/cstdlib" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdlib" 3 29724: # 72 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, 29724: _Iterator __c, _Compare __comp) 29724: { 29724: if (__comp(__a, __b)) 29724: { 29724: if (__comp(__b, __c)) 29724: std::iter_swap(__result, __b); 29724: else if (__comp(__a, __c)) 29724: std::iter_swap(__result, __c); 29724: else 29724: std::iter_swap(__result, __a); 29724: } 29724: else if (__comp(__a, __c)) 29724: std::iter_swap(__result, __a); 29724: else if (__comp(__b, __c)) 29724: std::iter_swap(__result, __c); 29724: else 29724: std::iter_swap(__result, __b); 29724: } 29724: 29724: 29724: template 29724: 29724: inline _InputIterator 29724: __find_if_not(_InputIterator __first, _InputIterator __last, 29724: _Predicate __pred) 29724: { 29724: return std::__find_if(__first, __last, 29724: __gnu_cxx::__ops::__negate(__pred), 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _InputIterator 29724: __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) 29724: { 29724: for (; __len; --__len, (void) ++__first) 29724: if (!__pred(__first)) 29724: break; 29724: return __first; 29724: } 29724: # 148 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _ForwardIterator 29724: __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, 29724: _Integer __count, _UnaryPredicate __unary_pred, 29724: std::forward_iterator_tag) 29724: { 29724: __first = std::__find_if(__first, __last, __unary_pred); 29724: while (__first != __last) 29724: { 29724: typename iterator_traits<_ForwardIterator>::difference_type 29724: __n = __count; 29724: _ForwardIterator __i = __first; 29724: ++__i; 29724: while (__i != __last && __n != 1 && __unary_pred(__i)) 29724: { 29724: ++__i; 29724: --__n; 29724: } 29724: if (__n == 1) 29724: return __first; 29724: if (__i == __last) 29724: return __last; 29724: __first = std::__find_if(++__i, __last, __unary_pred); 29724: } 29724: return __last; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _RandomAccessIter 29724: __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, 29724: _Integer __count, _UnaryPredicate __unary_pred, 29724: std::random_access_iterator_tag) 29724: { 29724: typedef typename std::iterator_traits<_RandomAccessIter>::difference_type 29724: _DistanceType; 29724: 29724: _DistanceType __tailSize = __last - __first; 29724: _DistanceType __remainder = __count; 29724: 29724: while (__remainder <= __tailSize) 29724: { 29724: __first += __remainder; 29724: __tailSize -= __remainder; 29724: 29724: 29724: _RandomAccessIter __backTrack = __first; 29724: while (__unary_pred(--__backTrack)) 29724: { 29724: if (--__remainder == 0) 29724: return (__first - __count); 29724: } 29724: __remainder = __count + 1 - (__first - __backTrack); 29724: } 29724: return __last; 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __search_n(_ForwardIterator __first, _ForwardIterator __last, 29724: _Integer __count, 29724: _UnaryPredicate __unary_pred) 29724: { 29724: if (__count <= 0) 29724: return __first; 29724: 29724: if (__count == 1) 29724: return std::__find_if(__first, __last, __unary_pred); 29724: 29724: return std::__search_n_aux(__first, __last, __count, __unary_pred, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: 29724: template 29724: 29724: _ForwardIterator1 29724: __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: forward_iterator_tag, forward_iterator_tag, 29724: _BinaryPredicate __comp) 29724: { 29724: if (__first2 == __last2) 29724: return __last1; 29724: 29724: _ForwardIterator1 __result = __last1; 29724: while (1) 29724: { 29724: _ForwardIterator1 __new_result 29724: = std::__search(__first1, __last1, __first2, __last2, __comp); 29724: if (__new_result == __last1) 29724: return __result; 29724: else 29724: { 29724: __result = __new_result; 29724: __first1 = __new_result; 29724: ++__first1; 29724: } 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: _BidirectionalIterator1 29724: __find_end(_BidirectionalIterator1 __first1, 29724: _BidirectionalIterator1 __last1, 29724: _BidirectionalIterator2 __first2, 29724: _BidirectionalIterator2 __last2, 29724: bidirectional_iterator_tag, bidirectional_iterator_tag, 29724: _BinaryPredicate __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; 29724: typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; 29724: 29724: _RevIterator1 __rlast1(__first1); 29724: _RevIterator2 __rlast2(__first2); 29724: _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, 29724: _RevIterator2(__last2), __rlast2, 29724: __comp); 29724: 29724: if (__rresult == __rlast1) 29724: return __last1; 29724: else 29724: { 29724: _BidirectionalIterator1 __result = __rresult.base(); 29724: std::advance(__result, -std::distance(__first2, __last2)); 29724: return __result; 29724: } 29724: } 29724: # 322 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator1 29724: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__find_end(__first1, __last1, __first2, __last2, 29724: std::__iterator_category(__first1), 29724: std::__iterator_category(__first2), 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 371 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator1 29724: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: _BinaryPredicate __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__find_end(__first1, __last1, __first2, __last2, 29724: std::__iterator_category(__first1), 29724: std::__iterator_category(__first2), 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 407 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29724: { return __last == std::find_if_not(__first, __last, __pred); } 29724: # 425 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29724: { return __last == std::find_if(__first, __last, __pred); } 29724: # 444 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29724: { return !std::none_of(__first, __last, __pred); } 29724: # 460 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _InputIterator 29724: find_if_not(_InputIterator __first, _InputIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: return std::__find_if_not(__first, __last, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: # 485 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_partitioned(_InputIterator __first, _InputIterator __last, 29724: _Predicate __pred) 29724: { 29724: __first = std::find_if_not(__first, __last, __pred); 29724: if (__first == __last) 29724: return true; 29724: ++__first; 29724: return std::none_of(__first, __last, __pred); 29724: } 29724: # 507 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _ForwardIterator 29724: partition_point(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: typedef typename iterator_traits<_ForwardIterator>::difference_type 29724: _DistanceType; 29724: 29724: _DistanceType __len = std::distance(__first, __last); 29724: 29724: while (__len > 0) 29724: { 29724: _DistanceType __half = __len >> 1; 29724: _ForwardIterator __middle = __first; 29724: std::advance(__middle, __half); 29724: if (__pred(*__middle)) 29724: { 29724: __first = __middle; 29724: ++__first; 29724: __len = __len - __half - 1; 29724: } 29724: else 29724: __len = __half; 29724: } 29724: return __first; 29724: } 29724: 29724: 29724: template 29724: 29724: _OutputIterator 29724: __remove_copy_if(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Predicate __pred) 29724: { 29724: for (; __first != __last; ++__first) 29724: if (!__pred(__first)) 29724: { 29724: *__result = *__first; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: # 574 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: remove_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, const _Tp& __value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__remove_copy_if(__first, __last, __result, 29724: __gnu_cxx::__ops::__iter_equals_val(__value)); 29724: } 29724: # 607 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: remove_copy_if(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__remove_copy_if(__first, __last, __result, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: # 642 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _OutputIterator 29724: copy_if(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: if (__pred(*__first)) 29724: { 29724: *__result = *__first; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __copy_n(_InputIterator __first, _Size __n, 29724: _OutputIterator __result, input_iterator_tag) 29724: { 29724: return std::__niter_wrap(__result, 29724: __copy_n_a(__first, __n, 29724: std::__niter_base(__result), true)); 29724: } 29724: 29724: template 29724: 29724: inline _OutputIterator 29724: __copy_n(_RandomAccessIterator __first, _Size __n, 29724: _OutputIterator __result, random_access_iterator_tag) 29724: { return std::copy(__first, __first + __n, __result); } 29724: # 698 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: const auto __n2 = std::__size_to_integer(__n); 29724: if (__n2 <= 0) 29724: return __result; 29724: 29724: ; 29724: ; 29724: 29724: return std::__copy_n(__first, __n2, __result, 29724: std::__iterator_category(__first)); 29724: } 29724: # 734 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: pair<_OutputIterator1, _OutputIterator2> 29724: partition_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator1 __out_true, _OutputIterator2 __out_false, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: if (__pred(*__first)) 29724: { 29724: *__out_true = *__first; 29724: ++__out_true; 29724: } 29724: else 29724: { 29724: *__out_false = *__first; 29724: ++__out_false; 29724: } 29724: 29724: return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); 29724: } 29724: # 785 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: remove(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__remove_if(__first, __last, 29724: __gnu_cxx::__ops::__iter_equals_val(__value)); 29724: } 29724: # 819 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: remove_if(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__remove_if(__first, __last, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: if (__first == __last) 29724: return __last; 29724: _ForwardIterator __next = __first; 29724: while (++__next != __last) 29724: { 29724: if (__binary_pred(__first, __next)) 29724: return __first; 29724: __first = __next; 29724: } 29724: return __last; 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __unique(_ForwardIterator __first, _ForwardIterator __last, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: __first = std::__adjacent_find(__first, __last, __binary_pred); 29724: if (__first == __last) 29724: return __last; 29724: 29724: 29724: _ForwardIterator __dest = __first; 29724: ++__first; 29724: while (++__first != __last) 29724: if (!__binary_pred(__dest, __first)) 29724: *++__dest = std::move(*__first); 29724: return ++__dest; 29724: } 29724: # 888 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: unique(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__unique(__first, __last, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 919 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: unique(_ForwardIterator __first, _ForwardIterator __last, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__unique(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _OutputIterator 29724: __unique_copy(_ForwardIterator __first, _ForwardIterator __last, 29724: _OutputIterator __result, _BinaryPredicate __binary_pred, 29724: forward_iterator_tag, output_iterator_tag) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: _ForwardIterator __next = __first; 29724: *__result = *__first; 29724: while (++__next != __last) 29724: if (!__binary_pred(__first, __next)) 29724: { 29724: __first = __next; 29724: *++__result = *__first; 29724: } 29724: return ++__result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _OutputIterator 29724: __unique_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _BinaryPredicate __binary_pred, 29724: input_iterator_tag, output_iterator_tag) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: typename iterator_traits<_InputIterator>::value_type __value = *__first; 29724: __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) 29724: __rebound_pred 29724: = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); 29724: *__result = __value; 29724: while (++__first != __last) 29724: if (!__rebound_pred(__first, __value)) 29724: { 29724: __value = *__first; 29724: *++__result = __value; 29724: } 29724: return ++__result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __unique_copy(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, _BinaryPredicate __binary_pred, 29724: input_iterator_tag, forward_iterator_tag) 29724: { 29724: 29724: 29724: 29724: 29724: *__result = *__first; 29724: while (++__first != __last) 29724: if (!__binary_pred(__result, __first)) 29724: *++__result = *__first; 29724: return ++__result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, 29724: bidirectional_iterator_tag) 29724: { 29724: while (true) 29724: if (__first == __last || __first == --__last) 29724: return; 29724: else 29724: { 29724: std::iter_swap(__first, __last); 29724: ++__first; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: random_access_iterator_tag) 29724: { 29724: if (__first == __last) 29724: return; 29724: --__last; 29724: while (__first < __last) 29724: { 29724: std::iter_swap(__first, __last); 29724: ++__first; 29724: --__last; 29724: } 29724: } 29724: # 1080 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) 29724: { 29724: 29724: 29724: 29724: ; 29724: std::__reverse(__first, __last, std::__iterator_category(__first)); 29724: } 29724: # 1108 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _OutputIterator 29724: reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: while (__first != __last) 29724: { 29724: --__last; 29724: *__result = *__last; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _EuclideanRingElement 29724: __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) 29724: { 29724: while (__n != 0) 29724: { 29724: _EuclideanRingElement __t = __m % __n; 29724: __m = __n; 29724: __n = __t; 29724: } 29724: return __m; 29724: } 29724: 29724: inline namespace _V2 { 29724: 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __rotate(_ForwardIterator __first, 29724: _ForwardIterator __middle, 29724: _ForwardIterator __last, 29724: forward_iterator_tag) 29724: { 29724: if (__first == __middle) 29724: return __last; 29724: else if (__last == __middle) 29724: return __first; 29724: 29724: _ForwardIterator __first2 = __middle; 29724: do 29724: { 29724: std::iter_swap(__first, __first2); 29724: ++__first; 29724: ++__first2; 29724: if (__first == __middle) 29724: __middle = __first2; 29724: } 29724: while (__first2 != __last); 29724: 29724: _ForwardIterator __ret = __first; 29724: 29724: __first2 = __middle; 29724: 29724: while (__first2 != __last) 29724: { 29724: std::iter_swap(__first, __first2); 29724: ++__first; 29724: ++__first2; 29724: if (__first == __middle) 29724: __middle = __first2; 29724: else if (__first2 == __last) 29724: __first2 = __middle; 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: template 29724: 29724: _BidirectionalIterator 29724: __rotate(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: bidirectional_iterator_tag) 29724: { 29724: 29724: 29724: 29724: 29724: if (__first == __middle) 29724: return __last; 29724: else if (__last == __middle) 29724: return __first; 29724: 29724: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 29724: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 29724: 29724: while (__first != __middle && __middle != __last) 29724: { 29724: std::iter_swap(__first, --__last); 29724: ++__first; 29724: } 29724: 29724: if (__first == __middle) 29724: { 29724: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 29724: return __last; 29724: } 29724: else 29724: { 29724: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 29724: return __first; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: _RandomAccessIterator 29724: __rotate(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, 29724: random_access_iterator_tag) 29724: { 29724: 29724: 29724: 29724: 29724: if (__first == __middle) 29724: return __last; 29724: else if (__last == __middle) 29724: return __first; 29724: 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _Distance; 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: 29724: 29724: typedef typename make_unsigned<_Distance>::type _UDistance; 29724: 29724: 29724: 29724: 29724: _Distance __n = __last - __first; 29724: _Distance __k = __middle - __first; 29724: 29724: if (__k == __n - __k) 29724: { 29724: std::swap_ranges(__first, __middle, __middle); 29724: return __middle; 29724: } 29724: 29724: _RandomAccessIterator __p = __first; 29724: _RandomAccessIterator __ret = __first + (__last - __middle); 29724: 29724: for (;;) 29724: { 29724: if (__k < __n - __k) 29724: { 29724: if (__is_pod(_ValueType) && __k == 1) 29724: { 29724: _ValueType __t = std::move(*__p); 29724: std::move(__p + 1, __p + __n, __p); 29724: *(__p + __n - 1) = std::move(__t); 29724: return __ret; 29724: } 29724: _RandomAccessIterator __q = __p + __k; 29724: for (_Distance __i = 0; __i < __n - __k; ++ __i) 29724: { 29724: std::iter_swap(__p, __q); 29724: ++__p; 29724: ++__q; 29724: } 29724: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 29724: if (__n == 0) 29724: return __ret; 29724: std::swap(__n, __k); 29724: __k = __n - __k; 29724: } 29724: else 29724: { 29724: __k = __n - __k; 29724: if (__is_pod(_ValueType) && __k == 1) 29724: { 29724: _ValueType __t = std::move(*(__p + __n - 1)); 29724: std::move_backward(__p, __p + __n - 1, __p + __n); 29724: *__p = std::move(__t); 29724: return __ret; 29724: } 29724: _RandomAccessIterator __q = __p + __n; 29724: __p = __q - __k; 29724: for (_Distance __i = 0; __i < __n - __k; ++ __i) 29724: { 29724: --__p; 29724: --__q; 29724: std::iter_swap(__p, __q); 29724: } 29724: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 29724: if (__n == 0) 29724: return __ret; 29724: std::swap(__n, __k); 29724: } 29724: } 29724: } 29724: # 1345 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _ForwardIterator 29724: rotate(_ForwardIterator __first, _ForwardIterator __middle, 29724: _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__rotate(__first, __middle, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: } 29724: # 1383 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, 29724: _ForwardIterator __last, _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::copy(__first, __middle, 29724: std::copy(__middle, __last, __result)); 29724: } 29724: 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __partition(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred, forward_iterator_tag) 29724: { 29724: if (__first == __last) 29724: return __first; 29724: 29724: while (__pred(*__first)) 29724: if (++__first == __last) 29724: return __first; 29724: 29724: _ForwardIterator __next = __first; 29724: 29724: while (++__next != __last) 29724: if (__pred(*__next)) 29724: { 29724: std::iter_swap(__first, __next); 29724: ++__first; 29724: } 29724: 29724: return __first; 29724: } 29724: 29724: 29724: template 29724: 29724: _BidirectionalIterator 29724: __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, 29724: _Predicate __pred, bidirectional_iterator_tag) 29724: { 29724: while (true) 29724: { 29724: while (true) 29724: if (__first == __last) 29724: return __first; 29724: else if (__pred(*__first)) 29724: ++__first; 29724: else 29724: break; 29724: --__last; 29724: while (true) 29724: if (__first == __last) 29724: return __first; 29724: else if (!bool(__pred(*__last))) 29724: --__last; 29724: else 29724: break; 29724: std::iter_swap(__first, __last); 29724: ++__first; 29724: } 29724: } 29724: # 1464 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: _ForwardIterator 29724: __stable_partition_adaptive(_ForwardIterator __first, 29724: _ForwardIterator __last, 29724: _Predicate __pred, _Distance __len, 29724: _Pointer __buffer, 29724: _Distance __buffer_size) 29724: { 29724: if (__len == 1) 29724: return __first; 29724: 29724: if (__len <= __buffer_size) 29724: { 29724: _ForwardIterator __result1 = __first; 29724: _Pointer __result2 = __buffer; 29724: 29724: 29724: 29724: 29724: *__result2 = std::move(*__first); 29724: ++__result2; 29724: ++__first; 29724: for (; __first != __last; ++__first) 29724: if (__pred(__first)) 29724: { 29724: *__result1 = std::move(*__first); 29724: ++__result1; 29724: } 29724: else 29724: { 29724: *__result2 = std::move(*__first); 29724: ++__result2; 29724: } 29724: 29724: std::move(__buffer, __result2, __result1); 29724: return __result1; 29724: } 29724: 29724: _ForwardIterator __middle = __first; 29724: std::advance(__middle, __len / 2); 29724: _ForwardIterator __left_split = 29724: std::__stable_partition_adaptive(__first, __middle, __pred, 29724: __len / 2, __buffer, 29724: __buffer_size); 29724: 29724: 29724: 29724: _Distance __right_len = __len - __len / 2; 29724: _ForwardIterator __right_split = 29724: std::__find_if_not_n(__middle, __right_len, __pred); 29724: 29724: if (__right_len) 29724: __right_split = 29724: std::__stable_partition_adaptive(__right_split, __last, __pred, 29724: __right_len, 29724: __buffer, __buffer_size); 29724: 29724: return std::rotate(__left_split, __middle, __right_split); 29724: } 29724: 29724: template 29724: _ForwardIterator 29724: __stable_partition(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: __first = std::__find_if_not(__first, __last, __pred); 29724: 29724: if (__first == __last) 29724: return __first; 29724: 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_ForwardIterator>::difference_type 29724: _DistanceType; 29724: 29724: _Temporary_buffer<_ForwardIterator, _ValueType> 29724: __buf(__first, std::distance(__first, __last)); 29724: return 29724: std::__stable_partition_adaptive(__first, __last, __pred, 29724: _DistanceType(__buf.requested_size()), 29724: __buf.begin(), 29724: _DistanceType(__buf.size())); 29724: } 29724: # 1566 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: inline _ForwardIterator 29724: stable_partition(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__stable_partition(__first, __last, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __heap_select(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: std::__make_heap(__first, __middle, __comp); 29724: for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) 29724: if (__comp(__i, __first)) 29724: std::__pop_heap(__first, __middle, __i, __comp); 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: _RandomAccessIterator 29724: __partial_sort_copy(_InputIterator __first, _InputIterator __last, 29724: _RandomAccessIterator __result_first, 29724: _RandomAccessIterator __result_last, 29724: _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type 29724: _InputValueType; 29724: typedef iterator_traits<_RandomAccessIterator> _RItTraits; 29724: typedef typename _RItTraits::difference_type _DistanceType; 29724: 29724: if (__result_first == __result_last) 29724: return __result_last; 29724: _RandomAccessIterator __result_real_last = __result_first; 29724: while (__first != __last && __result_real_last != __result_last) 29724: { 29724: *__result_real_last = *__first; 29724: ++__result_real_last; 29724: ++__first; 29724: } 29724: 29724: std::__make_heap(__result_first, __result_real_last, __comp); 29724: while (__first != __last) 29724: { 29724: if (__comp(__first, __result_first)) 29724: std::__adjust_heap(__result_first, _DistanceType(0), 29724: _DistanceType(__result_real_last 29724: - __result_first), 29724: _InputValueType(*__first), __comp); 29724: ++__first; 29724: } 29724: std::__sort_heap(__result_first, __result_real_last, __comp); 29724: return __result_real_last; 29724: } 29724: # 1659 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _RandomAccessIterator 29724: partial_sort_copy(_InputIterator __first, _InputIterator __last, 29724: _RandomAccessIterator __result_first, 29724: _RandomAccessIterator __result_last) 29724: { 29724: # 1674 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__partial_sort_copy(__first, __last, 29724: __result_first, __result_last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 1709 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _RandomAccessIterator 29724: partial_sort_copy(_InputIterator __first, _InputIterator __last, 29724: _RandomAccessIterator __result_first, 29724: _RandomAccessIterator __result_last, 29724: _Compare __comp) 29724: { 29724: # 1726 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__partial_sort_copy(__first, __last, 29724: __result_first, __result_last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __unguarded_linear_insert(_RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: typename iterator_traits<_RandomAccessIterator>::value_type 29724: __val = std::move(*__last); 29724: _RandomAccessIterator __next = __last; 29724: --__next; 29724: while (__comp(__val, __next)) 29724: { 29724: *__last = std::move(*__next); 29724: __last = __next; 29724: --__next; 29724: } 29724: *__last = std::move(__val); 29724: } 29724: 29724: 29724: template 29724: 29724: void 29724: __insertion_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: if (__first == __last) return; 29724: 29724: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29724: { 29724: if (__comp(__i, __first)) 29724: { 29724: typename iterator_traits<_RandomAccessIterator>::value_type 29724: __val = std::move(*__i); 29724: std::move_backward(__first, __i, __i + 1); 29724: *__first = std::move(__val); 29724: } 29724: else 29724: std::__unguarded_linear_insert(__i, 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline void 29724: __unguarded_insertion_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: for (_RandomAccessIterator __i = __first; __i != __last; ++__i) 29724: std::__unguarded_linear_insert(__i, 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: enum { _S_threshold = 16 }; 29724: 29724: 29724: template 29724: 29724: void 29724: __final_insertion_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: if (__last - __first > int(_S_threshold)) 29724: { 29724: std::__insertion_sort(__first, __first + int(_S_threshold), __comp); 29724: std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, 29724: __comp); 29724: } 29724: else 29724: std::__insertion_sort(__first, __last, __comp); 29724: } 29724: 29724: 29724: template 29724: 29724: _RandomAccessIterator 29724: __unguarded_partition(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, 29724: _RandomAccessIterator __pivot, _Compare __comp) 29724: { 29724: while (true) 29724: { 29724: while (__comp(__first, __pivot)) 29724: ++__first; 29724: --__last; 29724: while (__comp(__pivot, __last)) 29724: --__last; 29724: if (!(__first < __last)) 29724: return __first; 29724: std::iter_swap(__first, __last); 29724: ++__first; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline _RandomAccessIterator 29724: __unguarded_partition_pivot(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: _RandomAccessIterator __mid = __first + (__last - __first) / 2; 29724: std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, 29724: __comp); 29724: return std::__unguarded_partition(__first + 1, __last, __first, __comp); 29724: } 29724: 29724: template 29724: 29724: inline void 29724: __partial_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: std::__heap_select(__first, __middle, __last, __comp); 29724: std::__sort_heap(__first, __middle, __comp); 29724: } 29724: 29724: 29724: template 29724: 29724: void 29724: __introsort_loop(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, 29724: _Size __depth_limit, _Compare __comp) 29724: { 29724: while (__last - __first > int(_S_threshold)) 29724: { 29724: if (__depth_limit == 0) 29724: { 29724: std::__partial_sort(__first, __last, __last, __comp); 29724: return; 29724: } 29724: --__depth_limit; 29724: _RandomAccessIterator __cut = 29724: std::__unguarded_partition_pivot(__first, __last, __comp); 29724: std::__introsort_loop(__cut, __last, __depth_limit, __comp); 29724: __last = __cut; 29724: } 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: inline void 29724: __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: if (__first != __last) 29724: { 29724: std::__introsort_loop(__first, __last, 29724: std::__lg(__last - __first) * 2, 29724: __comp); 29724: std::__final_insertion_sort(__first, __last, __comp); 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29724: _RandomAccessIterator __last, _Size __depth_limit, 29724: _Compare __comp) 29724: { 29724: while (__last - __first > 3) 29724: { 29724: if (__depth_limit == 0) 29724: { 29724: std::__heap_select(__first, __nth + 1, __last, __comp); 29724: 29724: std::iter_swap(__first, __nth); 29724: return; 29724: } 29724: --__depth_limit; 29724: _RandomAccessIterator __cut = 29724: std::__unguarded_partition_pivot(__first, __last, __comp); 29724: if (__cut <= __nth) 29724: __first = __cut; 29724: else 29724: __last = __cut; 29724: } 29724: std::__insertion_sort(__first, __last, __comp); 29724: } 29724: # 1960 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__lower_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::difference_type 29724: _DistanceType; 29724: 29724: _DistanceType __len = std::distance(__first, __last); 29724: 29724: while (__len > 0) 29724: { 29724: _DistanceType __half = __len >> 1; 29724: _ForwardIterator __middle = __first; 29724: std::advance(__middle, __half); 29724: if (__comp(__val, __middle)) 29724: __len = __half; 29724: else 29724: { 29724: __first = __middle; 29724: ++__first; 29724: __len = __len - __half - 1; 29724: } 29724: } 29724: return __first; 29724: } 29724: # 2016 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__upper_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__val_less_iter()); 29724: } 29724: # 2047 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__upper_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: pair<_ForwardIterator, _ForwardIterator> 29724: __equal_range(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, 29724: _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::difference_type 29724: _DistanceType; 29724: 29724: _DistanceType __len = std::distance(__first, __last); 29724: 29724: while (__len > 0) 29724: { 29724: _DistanceType __half = __len >> 1; 29724: _ForwardIterator __middle = __first; 29724: std::advance(__middle, __half); 29724: if (__comp_it_val(__middle, __val)) 29724: { 29724: __first = __middle; 29724: ++__first; 29724: __len = __len - __half - 1; 29724: } 29724: else if (__comp_val_it(__val, __middle)) 29724: __len = __half; 29724: else 29724: { 29724: _ForwardIterator __left 29724: = std::__lower_bound(__first, __middle, __val, __comp_it_val); 29724: std::advance(__first, __len); 29724: _ForwardIterator __right 29724: = std::__upper_bound(++__middle, __first, __val, __comp_val_it); 29724: return pair<_ForwardIterator, _ForwardIterator>(__left, __right); 29724: } 29724: } 29724: return pair<_ForwardIterator, _ForwardIterator>(__first, __first); 29724: } 29724: # 2120 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_ForwardIterator, _ForwardIterator> 29724: equal_range(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__equal_range(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_less_val(), 29724: __gnu_cxx::__ops::__val_less_iter()); 29724: } 29724: # 2157 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_ForwardIterator, _ForwardIterator> 29724: equal_range(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: ; 29724: 29724: return std::__equal_range(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_comp_val(__comp), 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: } 29724: # 2191 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: binary_search(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: _ForwardIterator __i 29724: = std::__lower_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_less_val()); 29724: return __i != __last && !(__val < *__i); 29724: } 29724: # 2225 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: binary_search(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: ; 29724: 29724: _ForwardIterator __i 29724: = std::__lower_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29724: return __i != __last && !bool(__comp(__val, *__i)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first2, __first1)) 29724: { 29724: *__result = std::move(*__first2); 29724: ++__first2; 29724: } 29724: else 29724: { 29724: *__result = std::move(*__first1); 29724: ++__first1; 29724: } 29724: ++__result; 29724: } 29724: if (__first1 != __last1) 29724: std::move(__first1, __last1, __result); 29724: } 29724: 29724: 29724: template 29724: void 29724: __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, 29724: _BidirectionalIterator1 __last1, 29724: _BidirectionalIterator2 __first2, 29724: _BidirectionalIterator2 __last2, 29724: _BidirectionalIterator3 __result, 29724: _Compare __comp) 29724: { 29724: if (__first1 == __last1) 29724: { 29724: std::move_backward(__first2, __last2, __result); 29724: return; 29724: } 29724: else if (__first2 == __last2) 29724: return; 29724: 29724: --__last1; 29724: --__last2; 29724: while (true) 29724: { 29724: if (__comp(__last2, __last1)) 29724: { 29724: *--__result = std::move(*__last1); 29724: if (__first1 == __last1) 29724: { 29724: std::move_backward(__first2, ++__last2, __result); 29724: return; 29724: } 29724: --__last1; 29724: } 29724: else 29724: { 29724: *--__result = std::move(*__last2); 29724: if (__first2 == __last2) 29724: return; 29724: --__last2; 29724: } 29724: } 29724: } 29724: 29724: 29724: template 29724: _BidirectionalIterator1 29724: __rotate_adaptive(_BidirectionalIterator1 __first, 29724: _BidirectionalIterator1 __middle, 29724: _BidirectionalIterator1 __last, 29724: _Distance __len1, _Distance __len2, 29724: _BidirectionalIterator2 __buffer, 29724: _Distance __buffer_size) 29724: { 29724: _BidirectionalIterator2 __buffer_end; 29724: if (__len1 > __len2 && __len2 <= __buffer_size) 29724: { 29724: if (__len2) 29724: { 29724: __buffer_end = std::move(__middle, __last, __buffer); 29724: std::move_backward(__first, __middle, __last); 29724: return std::move(__buffer, __buffer_end, __first); 29724: } 29724: else 29724: return __first; 29724: } 29724: else if (__len1 <= __buffer_size) 29724: { 29724: if (__len1) 29724: { 29724: __buffer_end = std::move(__first, __middle, __buffer); 29724: std::move(__middle, __last, __first); 29724: return std::move_backward(__buffer, __buffer_end, __last); 29724: } 29724: else 29724: return __last; 29724: } 29724: else 29724: return std::rotate(__first, __middle, __last); 29724: } 29724: 29724: 29724: template 29724: void 29724: __merge_adaptive(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: _Distance __len1, _Distance __len2, 29724: _Pointer __buffer, _Compare __comp) 29724: { 29724: if (__len1 <= __len2) 29724: { 29724: _Pointer __buffer_end = std::move(__first, __middle, __buffer); 29724: std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, 29724: __first, __comp); 29724: } 29724: else 29724: { 29724: _Pointer __buffer_end = std::move(__middle, __last, __buffer); 29724: std::__move_merge_adaptive_backward(__first, __middle, __buffer, 29724: __buffer_end, __last, __comp); 29724: } 29724: } 29724: 29724: template 29724: void 29724: __merge_adaptive_resize(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: _Distance __len1, _Distance __len2, 29724: _Pointer __buffer, _Distance __buffer_size, 29724: _Compare __comp) 29724: { 29724: if (__len1 <= __buffer_size || __len2 <= __buffer_size) 29724: std::__merge_adaptive(__first, __middle, __last, 29724: __len1, __len2, __buffer, __comp); 29724: else 29724: { 29724: _BidirectionalIterator __first_cut = __first; 29724: _BidirectionalIterator __second_cut = __middle; 29724: _Distance __len11 = 0; 29724: _Distance __len22 = 0; 29724: if (__len1 > __len2) 29724: { 29724: __len11 = __len1 / 2; 29724: std::advance(__first_cut, __len11); 29724: __second_cut 29724: = std::__lower_bound(__middle, __last, *__first_cut, 29724: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29724: __len22 = std::distance(__middle, __second_cut); 29724: } 29724: else 29724: { 29724: __len22 = __len2 / 2; 29724: std::advance(__second_cut, __len22); 29724: __first_cut 29724: = std::__upper_bound(__first, __middle, *__second_cut, 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: __len11 = std::distance(__first, __first_cut); 29724: } 29724: 29724: _BidirectionalIterator __new_middle 29724: = std::__rotate_adaptive(__first_cut, __middle, __second_cut, 29724: _Distance(__len1 - __len11), __len22, 29724: __buffer, __buffer_size); 29724: std::__merge_adaptive_resize(__first, __first_cut, __new_middle, 29724: __len11, __len22, 29724: __buffer, __buffer_size, __comp); 29724: std::__merge_adaptive_resize(__new_middle, __second_cut, __last, 29724: _Distance(__len1 - __len11), 29724: _Distance(__len2 - __len22), 29724: __buffer, __buffer_size, __comp); 29724: } 29724: } 29724: 29724: 29724: template 29724: void 29724: __merge_without_buffer(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: _Distance __len1, _Distance __len2, 29724: _Compare __comp) 29724: { 29724: if (__len1 == 0 || __len2 == 0) 29724: return; 29724: 29724: if (__len1 + __len2 == 2) 29724: { 29724: if (__comp(__middle, __first)) 29724: std::iter_swap(__first, __middle); 29724: return; 29724: } 29724: 29724: _BidirectionalIterator __first_cut = __first; 29724: _BidirectionalIterator __second_cut = __middle; 29724: _Distance __len11 = 0; 29724: _Distance __len22 = 0; 29724: if (__len1 > __len2) 29724: { 29724: __len11 = __len1 / 2; 29724: std::advance(__first_cut, __len11); 29724: __second_cut 29724: = std::__lower_bound(__middle, __last, *__first_cut, 29724: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29724: __len22 = std::distance(__middle, __second_cut); 29724: } 29724: else 29724: { 29724: __len22 = __len2 / 2; 29724: std::advance(__second_cut, __len22); 29724: __first_cut 29724: = std::__upper_bound(__first, __middle, *__second_cut, 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: __len11 = std::distance(__first, __first_cut); 29724: } 29724: 29724: _BidirectionalIterator __new_middle 29724: = std::rotate(__first_cut, __middle, __second_cut); 29724: std::__merge_without_buffer(__first, __first_cut, __new_middle, 29724: __len11, __len22, __comp); 29724: std::__merge_without_buffer(__new_middle, __second_cut, __last, 29724: __len1 - __len11, __len2 - __len22, __comp); 29724: } 29724: 29724: template 29724: void 29724: __inplace_merge(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_BidirectionalIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_BidirectionalIterator>::difference_type 29724: _DistanceType; 29724: 29724: if (__first == __middle || __middle == __last) 29724: return; 29724: 29724: const _DistanceType __len1 = std::distance(__first, __middle); 29724: const _DistanceType __len2 = std::distance(__middle, __last); 29724: 29724: 29724: typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; 29724: 29724: 29724: _TmpBuf __buf(__first, std::min(__len1, __len2)); 29724: 29724: if (__builtin_expect(__buf.size() == __buf.requested_size(), true)) 29724: std::__merge_adaptive 29724: (__first, __middle, __last, __len1, __len2, __buf.begin(), __comp); 29724: else if (__builtin_expect(__buf.begin() == 0, false)) 29724: std::__merge_without_buffer 29724: (__first, __middle, __last, __len1, __len2, __comp); 29724: else 29724: std::__merge_adaptive_resize 29724: (__first, __middle, __last, __len1, __len2, __buf.begin(), 29724: _DistanceType(__buf.size()), __comp); 29724: 29724: 29724: 29724: 29724: } 29724: # 2540 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: inline void 29724: inplace_merge(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: std::__inplace_merge(__first, __middle, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 2581 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: inline void 29724: inplace_merge(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: std::__inplace_merge(__first, __middle, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: template 29724: _OutputIterator 29724: __move_merge(_InputIterator __first1, _InputIterator __last1, 29724: _InputIterator __first2, _InputIterator __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first2, __first1)) 29724: { 29724: *__result = std::move(*__first2); 29724: ++__first2; 29724: } 29724: else 29724: { 29724: *__result = std::move(*__first1); 29724: ++__first1; 29724: } 29724: ++__result; 29724: } 29724: return std::move(__first2, __last2, std::move(__first1, __last1, __result)) 29724: 29724: ; 29724: } 29724: 29724: template 29724: void 29724: __merge_sort_loop(_RandomAccessIterator1 __first, 29724: _RandomAccessIterator1 __last, 29724: _RandomAccessIterator2 __result, _Distance __step_size, 29724: _Compare __comp) 29724: { 29724: const _Distance __two_step = 2 * __step_size; 29724: 29724: while (__last - __first >= __two_step) 29724: { 29724: __result = std::__move_merge(__first, __first + __step_size, 29724: __first + __step_size, 29724: __first + __two_step, 29724: __result, __comp); 29724: __first += __two_step; 29724: } 29724: __step_size = std::min(_Distance(__last - __first), __step_size); 29724: 29724: std::__move_merge(__first, __first + __step_size, 29724: __first + __step_size, __last, __result, __comp); 29724: } 29724: 29724: template 29724: 29724: void 29724: __chunk_insertion_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, 29724: _Distance __chunk_size, _Compare __comp) 29724: { 29724: while (__last - __first >= __chunk_size) 29724: { 29724: std::__insertion_sort(__first, __first + __chunk_size, __comp); 29724: __first += __chunk_size; 29724: } 29724: std::__insertion_sort(__first, __last, __comp); 29724: } 29724: 29724: enum { _S_chunk_size = 7 }; 29724: 29724: template 29724: void 29724: __merge_sort_with_buffer(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, 29724: _Pointer __buffer, _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _Distance; 29724: 29724: const _Distance __len = __last - __first; 29724: const _Pointer __buffer_last = __buffer + __len; 29724: 29724: _Distance __step_size = _S_chunk_size; 29724: std::__chunk_insertion_sort(__first, __last, __step_size, __comp); 29724: 29724: while (__step_size < __len) 29724: { 29724: std::__merge_sort_loop(__first, __last, __buffer, 29724: __step_size, __comp); 29724: __step_size *= 2; 29724: std::__merge_sort_loop(__buffer, __buffer_last, __first, 29724: __step_size, __comp); 29724: __step_size *= 2; 29724: } 29724: } 29724: 29724: template 29724: void 29724: __stable_sort_adaptive(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, 29724: _Pointer __buffer, _Compare __comp) 29724: { 29724: std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); 29724: std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); 29724: 29724: std::__merge_adaptive(__first, __middle, __last, 29724: __middle - __first, __last - __middle, 29724: __buffer, __comp); 29724: } 29724: 29724: template 29724: void 29724: __stable_sort_adaptive_resize(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, 29724: _Pointer __buffer, _Distance __buffer_size, 29724: _Compare __comp) 29724: { 29724: const _Distance __len = (__last - __first + 1) / 2; 29724: const _RandomAccessIterator __middle = __first + __len; 29724: if (__len > __buffer_size) 29724: { 29724: std::__stable_sort_adaptive_resize(__first, __middle, __buffer, 29724: __buffer_size, __comp); 29724: std::__stable_sort_adaptive_resize(__middle, __last, __buffer, 29724: __buffer_size, __comp); 29724: std::__merge_adaptive_resize(__first, __middle, __last, 29724: _Distance(__middle - __first), 29724: _Distance(__last - __middle), 29724: __buffer, __buffer_size, 29724: __comp); 29724: } 29724: else 29724: std::__stable_sort_adaptive(__first, __middle, __last, 29724: __buffer, __comp); 29724: } 29724: 29724: 29724: template 29724: void 29724: __inplace_stable_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: if (__last - __first < 15) 29724: { 29724: std::__insertion_sort(__first, __last, __comp); 29724: return; 29724: } 29724: _RandomAccessIterator __middle = __first + (__last - __first) / 2; 29724: std::__inplace_stable_sort(__first, __middle, __comp); 29724: std::__inplace_stable_sort(__middle, __last, __comp); 29724: std::__merge_without_buffer(__first, __middle, __last, 29724: __middle - __first, 29724: __last - __middle, 29724: __comp); 29724: } 29724: # 2767 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: bool 29724: __includes(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first2, __first1)) 29724: return false; 29724: if (!__comp(__first1, __first2)) 29724: ++__first2; 29724: ++__first1; 29724: } 29724: 29724: return __first2 == __last2; 29724: } 29724: # 2805 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: includes(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__includes(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 2850 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: includes(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__includes(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 2886 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: bool 29724: __next_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last, _Compare __comp) 29724: { 29724: if (__first == __last) 29724: return false; 29724: _BidirectionalIterator __i = __first; 29724: ++__i; 29724: if (__i == __last) 29724: return false; 29724: __i = __last; 29724: --__i; 29724: 29724: for(;;) 29724: { 29724: _BidirectionalIterator __ii = __i; 29724: --__i; 29724: if (__comp(__i, __ii)) 29724: { 29724: _BidirectionalIterator __j = __last; 29724: while (!__comp(__i, --__j)) 29724: {} 29724: std::iter_swap(__i, __j); 29724: std::__reverse(__ii, __last, 29724: std::__iterator_category(__first)); 29724: return true; 29724: } 29724: if (__i == __first) 29724: { 29724: std::__reverse(__first, __last, 29724: std::__iterator_category(__first)); 29724: return false; 29724: } 29724: } 29724: } 29724: # 2936 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline bool 29724: next_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__next_permutation 29724: (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 2969 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline bool 29724: next_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__next_permutation 29724: (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: bool 29724: __prev_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last, _Compare __comp) 29724: { 29724: if (__first == __last) 29724: return false; 29724: _BidirectionalIterator __i = __first; 29724: ++__i; 29724: if (__i == __last) 29724: return false; 29724: __i = __last; 29724: --__i; 29724: 29724: for(;;) 29724: { 29724: _BidirectionalIterator __ii = __i; 29724: --__i; 29724: if (__comp(__ii, __i)) 29724: { 29724: _BidirectionalIterator __j = __last; 29724: while (!__comp(--__j, __i)) 29724: {} 29724: std::iter_swap(__i, __j); 29724: std::__reverse(__ii, __last, 29724: std::__iterator_category(__first)); 29724: return true; 29724: } 29724: if (__i == __first) 29724: { 29724: std::__reverse(__first, __last, 29724: std::__iterator_category(__first)); 29724: return false; 29724: } 29724: } 29724: } 29724: # 3039 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline bool 29724: prev_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__prev_permutation(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 3072 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline bool 29724: prev_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__prev_permutation(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _OutputIterator 29724: __replace_copy_if(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: _Predicate __pred, const _Tp& __new_value) 29724: { 29724: for (; __first != __last; ++__first, (void)++__result) 29724: if (__pred(__first)) 29724: *__result = __new_value; 29724: else 29724: *__result = *__first; 29724: return __result; 29724: } 29724: # 3124 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: replace_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: const _Tp& __old_value, const _Tp& __new_value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__replace_copy_if(__first, __last, __result, 29724: __gnu_cxx::__ops::__iter_equals_val(__old_value), 29724: __new_value); 29724: } 29724: # 3159 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: replace_copy_if(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: _Predicate __pred, const _Tp& __new_value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__replace_copy_if(__first, __last, __result, 29724: __gnu_cxx::__ops::__pred_iter(__pred), 29724: __new_value); 29724: } 29724: # 3188 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_sorted(_ForwardIterator __first, _ForwardIterator __last) 29724: { return std::is_sorted_until(__first, __last) == __last; } 29724: # 3203 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_sorted(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { return std::is_sorted_until(__first, __last, __comp) == __last; } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: if (__first == __last) 29724: return __last; 29724: 29724: _ForwardIterator __next = __first; 29724: for (++__next; __next != __last; __first = __next, (void)++__next) 29724: if (__comp(__next, __first)) 29724: return __next; 29724: return __next; 29724: } 29724: # 3234 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__is_sorted_until(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 3259 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__is_sorted_until(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 3285 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair 29724: minmax(const _Tp& __a, const _Tp& __b) 29724: { 29724: 29724: 29724: 29724: return __b < __a ? pair(__b, __a) 29724: : pair(__a, __b); 29724: } 29724: # 3306 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair 29724: minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) 29724: { 29724: return __comp(__b, __a) ? pair(__b, __a) 29724: : pair(__a, __b); 29724: } 29724: 29724: template 29724: constexpr 29724: pair<_ForwardIterator, _ForwardIterator> 29724: __minmax_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: _ForwardIterator __next = __first; 29724: if (__first == __last 29724: || ++__next == __last) 29724: return std::make_pair(__first, __first); 29724: 29724: _ForwardIterator __min{}, __max{}; 29724: if (__comp(__next, __first)) 29724: { 29724: __min = __next; 29724: __max = __first; 29724: } 29724: else 29724: { 29724: __min = __first; 29724: __max = __next; 29724: } 29724: 29724: __first = __next; 29724: ++__first; 29724: 29724: while (__first != __last) 29724: { 29724: __next = __first; 29724: if (++__next == __last) 29724: { 29724: if (__comp(__first, __min)) 29724: __min = __first; 29724: else if (!__comp(__first, __max)) 29724: __max = __first; 29724: break; 29724: } 29724: 29724: if (__comp(__next, __first)) 29724: { 29724: if (__comp(__next, __min)) 29724: __min = __next; 29724: if (!__comp(__first, __max)) 29724: __max = __first; 29724: } 29724: else 29724: { 29724: if (__comp(__first, __min)) 29724: __min = __first; 29724: if (!__comp(__next, __max)) 29724: __max = __next; 29724: } 29724: 29724: __first = __next; 29724: ++__first; 29724: } 29724: 29724: return std::make_pair(__min, __max); 29724: } 29724: # 3386 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair<_ForwardIterator, _ForwardIterator> 29724: minmax_element(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__minmax_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 3414 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair<_ForwardIterator, _ForwardIterator> 29724: minmax_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__minmax_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair<_Tp, _Tp> 29724: minmax(initializer_list<_Tp> __l) 29724: { 29724: ; 29724: pair __p = 29724: std::__minmax_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: return std::make_pair(*__p.first, *__p.second); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair<_Tp, _Tp> 29724: minmax(initializer_list<_Tp> __l, _Compare __comp) 29724: { 29724: ; 29724: pair __p = 29724: std::__minmax_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: return std::make_pair(*__p.first, *__p.second); 29724: } 29724: # 3470 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _BinaryPredicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__is_permutation(__first1, __last1, __first2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 29724: } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: template 29724: 29724: bool 29724: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: _BinaryPredicate __pred) 29724: { 29724: using _Cat1 29724: = typename iterator_traits<_ForwardIterator1>::iterator_category; 29724: using _Cat2 29724: = typename iterator_traits<_ForwardIterator2>::iterator_category; 29724: using _It1_is_RA = is_same<_Cat1, random_access_iterator_tag>; 29724: using _It2_is_RA = is_same<_Cat2, random_access_iterator_tag>; 29724: constexpr bool __ra_iters = __and_<_It1_is_RA, _It2_is_RA>::value; 29724: if constexpr (__ra_iters) 29724: { 29724: if ((__last1 - __first1) != (__last2 - __first2)) 29724: return false; 29724: } 29724: 29724: 29724: 29724: for (; __first1 != __last1 && __first2 != __last2; 29724: ++__first1, (void)++__first2) 29724: if (!__pred(__first1, __first2)) 29724: break; 29724: 29724: if constexpr (__ra_iters) 29724: { 29724: if (__first1 == __last1) 29724: return true; 29724: } 29724: else 29724: { 29724: auto __d1 = std::distance(__first1, __last1); 29724: auto __d2 = std::distance(__first2, __last2); 29724: if (__d1 == 0 && __d2 == 0) 29724: return true; 29724: if (__d1 != __d2) 29724: return false; 29724: } 29724: 29724: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 29724: { 29724: if (__scan != std::__find_if(__first1, __scan, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 29724: continue; 29724: 29724: auto __matches = std::__count_if(__first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 29724: if (0 == __matches 29724: || std::__count_if(__scan, __last1, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 29724: != __matches) 29724: return false; 29724: } 29724: return true; 29724: } 29724: #pragma GCC diagnostic pop 29724: # 3566 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29724: { 29724: ; 29724: ; 29724: 29724: return 29724: std::__is_permutation(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 3594 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: _BinaryPredicate __pred) 29724: { 29724: ; 29724: ; 29724: 29724: return std::__is_permutation(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 29724: } 29724: # 3622 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[nodiscard]] constexpr const _Tp& 29724: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!(__hi < __lo))) std::__glibcxx_assert_fail(); } while (false); 29724: return std::min(std::max(__val, __lo), __hi); 29724: } 29724: # 3642 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[nodiscard]] constexpr const _Tp& 29724: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!__comp(__hi, __lo))) std::__glibcxx_assert_fail(); } while (false); 29724: return std::min(std::max(__val, __lo, __comp), __hi, __comp); 29724: } 29724: # 3672 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: pair<_IntType, _IntType> 29724: __gen_two_uniform_ints(_IntType __b0, _IntType __b1, 29724: _UniformRandomBitGenerator&& __g) 29724: { 29724: _IntType __x 29724: = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); 29724: return std::make_pair(__x / __b1, __x % __b1); 29724: } 29724: # 3694 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: void 29724: shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _UniformRandomNumberGenerator&& __g) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return; 29724: 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: typedef typename std::make_unsigned<_DistanceType>::type __ud_type; 29724: typedef typename std::uniform_int_distribution<__ud_type> __distr_type; 29724: typedef typename __distr_type::param_type __p_type; 29724: 29724: typedef typename remove_reference<_UniformRandomNumberGenerator>::type 29724: _Gen; 29724: typedef typename common_type::type 29724: __uc_type; 29724: 29724: const __uc_type __urngrange = __g.max() - __g.min(); 29724: const __uc_type __urange = __uc_type(__last - __first); 29724: 29724: if (__urngrange / __urange >= __urange) 29724: 29724: { 29724: _RandomAccessIterator __i = __first + 1; 29724: 29724: 29724: 29724: 29724: 29724: if ((__urange % 2) == 0) 29724: { 29724: __distr_type __d{0, 1}; 29724: std::iter_swap(__i++, __first + __d(__g)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: while (__i != __last) 29724: { 29724: const __uc_type __swap_range = __uc_type(__i - __first) + 1; 29724: 29724: const pair<__uc_type, __uc_type> __pospos = 29724: __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); 29724: 29724: std::iter_swap(__i++, __first + __pospos.first); 29724: std::iter_swap(__i++, __first + __pospos.second); 29724: } 29724: 29724: return; 29724: } 29724: 29724: __distr_type __d; 29724: 29724: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29724: std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); 29724: } 29724: 29724: 29724: 29724: # 3777 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _Function 29724: for_each(_InputIterator __first, _InputIterator __last, _Function __f) 29724: { 29724: 29724: 29724: ; 29724: for (; __first != __last; ++__first) 29724: __f(*__first); 29724: return __f; 29724: } 29724: # 3803 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _InputIterator 29724: for_each_n(_InputIterator __first, _Size __n, _Function __f) 29724: { 29724: auto __n2 = std::__size_to_integer(__n); 29724: using _Cat = typename iterator_traits<_InputIterator>::iterator_category; 29724: if constexpr (is_base_of_v) 29724: { 29724: if (__n2 <= 0) 29724: return __first; 29724: auto __last = __first + __n2; 29724: std::for_each(__first, __last, std::move(__f)); 29724: return __last; 29724: } 29724: else 29724: { 29724: while (__n2-->0) 29724: { 29724: __f(*__first); 29724: ++__first; 29724: } 29724: return __first; 29724: } 29724: } 29724: # 3839 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _InputIterator 29724: find(_InputIterator __first, _InputIterator __last, 29724: const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: return std::__find_if(__first, __last, 29724: __gnu_cxx::__ops::__iter_equals_val(__val)); 29724: } 29724: # 3864 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _InputIterator 29724: find_if(_InputIterator __first, _InputIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__find_if(__first, __last, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: # 3896 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _InputIterator 29724: find_first_of(_InputIterator __first1, _InputIterator __last1, 29724: _ForwardIterator __first2, _ForwardIterator __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1) 29724: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 29724: if (*__first1 == *__iter) 29724: return __first1; 29724: return __last1; 29724: } 29724: # 3937 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _InputIterator 29724: find_first_of(_InputIterator __first1, _InputIterator __last1, 29724: _ForwardIterator __first2, _ForwardIterator __last2, 29724: _BinaryPredicate __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1) 29724: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 29724: if (__comp(*__first1, *__iter)) 29724: return __first1; 29724: return __last1; 29724: } 29724: # 3970 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: adjacent_find(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__adjacent_find(__first, __last, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 3996 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__adjacent_find(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29724: } 29724: # 4022 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline typename iterator_traits<_InputIterator>::difference_type 29724: count(_InputIterator __first, _InputIterator __last, const _Tp& __value) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__count_if(__first, __last, 29724: __gnu_cxx::__ops::__iter_equals_val(__value)); 29724: } 29724: # 4046 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline typename iterator_traits<_InputIterator>::difference_type 29724: count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__count_if(__first, __last, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: # 4087 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator1 29724: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__search(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 4121 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: search_n(_ForwardIterator __first, _ForwardIterator __last, 29724: _Integer __count, const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__search_n(__first, __last, __count, 29724: __gnu_cxx::__ops::__iter_equals_val(__val)); 29724: } 29724: # 4155 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: search_n(_ForwardIterator __first, _ForwardIterator __last, 29724: _Integer __count, const _Tp& __val, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__search_n(__first, __last, __count, 29724: __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); 29724: } 29724: # 4181 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: search(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Searcher& __searcher) 29724: { return __searcher(__first, __last).first; } 29724: # 4205 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _OutputIterator 29724: transform(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _UnaryOperation __unary_op) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first, (void)++__result) 29724: *__result = __unary_op(*__first); 29724: return __result; 29724: } 29724: # 4243 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _OutputIterator 29724: transform(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _OutputIterator __result, 29724: _BinaryOperation __binary_op) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) 29724: *__result = __binary_op(*__first1, *__first2); 29724: return __result; 29724: } 29724: # 4277 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: void 29724: replace(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __old_value, const _Tp& __new_value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: if (*__first == __old_value) 29724: *__first = __new_value; 29724: } 29724: # 4310 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: void 29724: replace_if(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred, const _Tp& __new_value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: if (__pred(*__first)) 29724: *__first = __new_value; 29724: } 29724: # 4342 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: void 29724: generate(_ForwardIterator __first, _ForwardIterator __last, 29724: _Generator __gen) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: *__first = __gen(); 29724: } 29724: # 4375 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _OutputIterator 29724: generate_n(_OutputIterator __first, _Size __n, _Generator __gen) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: typedef __decltype(std::__size_to_integer(__n)) _IntSize; 29724: for (_IntSize __niter = std::__size_to_integer(__n); 29724: __niter > 0; --__niter, (void) ++__first) 29724: *__first = __gen(); 29724: return __first; 29724: } 29724: # 4410 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: unique_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: return std::__unique_copy(__first, __last, __result, 29724: __gnu_cxx::__ops::__iter_equal_to_iter(), 29724: std::__iterator_category(__first), 29724: std::__iterator_category(__result)); 29724: } 29724: # 4450 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: unique_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: return std::__unique_copy(__first, __last, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), 29724: std::__iterator_category(__first), 29724: std::__iterator_category(__result)); 29724: } 29724: # 4489 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29724: inline void 29724: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first != __last) 29724: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29724: { 29724: 29724: _RandomAccessIterator __j = __first 29724: + std::rand() % ((__i - __first) + 1); 29724: if (__i != __j) 29724: std::iter_swap(__i, __j); 29724: } 29724: } 29724: # 4528 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29724: void 29724: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: 29724: _RandomNumberGenerator&& __rand) 29724: 29724: 29724: 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return; 29724: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29724: { 29724: _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); 29724: if (__i != __j) 29724: std::iter_swap(__i, __j); 29724: } 29724: } 29724: # 4570 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _ForwardIterator 29724: partition(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__partition(__first, __last, __pred, 29724: std::__iterator_category(__first)); 29724: } 29724: # 4605 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: partial_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: std::__partial_sort(__first, __middle, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 4644 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: partial_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: std::__partial_sort(__first, __middle, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 4681 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29724: _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: if (__first == __last || __nth == __last) 29724: return; 29724: 29724: std::__introselect(__first, __nth, __last, 29724: std::__lg(__last - __first) * 2, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 4721 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: if (__first == __last || __nth == __last) 29724: return; 29724: 29724: std::__introselect(__first, __nth, __last, 29724: std::__lg(__last - __first) * 2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 4759 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 4790 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __merge(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first2, __first1)) 29724: { 29724: *__result = *__first2; 29724: ++__first2; 29724: } 29724: else 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: } 29724: ++__result; 29724: } 29724: return std::copy(__first2, __last2, 29724: std::copy(__first1, __last1, __result)); 29724: } 29724: # 4853 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: merge(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__merge(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 4904 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: merge(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__merge(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: inline void 29724: __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: if (__first == __last) 29724: return; 29724: 29724: 29724: typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; 29724: 29724: 29724: _TmpBuf __buf(__first, (__last - __first + 1) / 2); 29724: 29724: if (__builtin_expect(__buf.requested_size() == __buf.size(), true)) 29724: std::__stable_sort_adaptive(__first, 29724: __first + _DistanceType(__buf.size()), 29724: __last, __buf.begin(), __comp); 29724: else if (__builtin_expect(__buf.begin() == 0, false)) 29724: std::__inplace_stable_sort(__first, __last, __comp); 29724: else 29724: std::__stable_sort_adaptive_resize(__first, __last, __buf.begin(), 29724: _DistanceType(__buf.size()), __comp); 29724: 29724: 29724: 29724: } 29724: # 4982 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: inline void 29724: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: std::__stable_sort(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5016 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: inline void 29724: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: std::__stable_sort(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first1, __first2)) 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: } 29724: else if (__comp(__first2, __first1)) 29724: { 29724: *__result = *__first2; 29724: ++__first2; 29724: } 29724: else 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: ++__first2; 29724: } 29724: ++__result; 29724: } 29724: return std::copy(__first2, __last2, 29724: std::copy(__first1, __last1, __result)); 29724: } 29724: # 5086 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_union(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5137 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_union(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: if (__comp(__first1, __first2)) 29724: ++__first1; 29724: else if (__comp(__first2, __first1)) 29724: ++__first2; 29724: else 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: ++__first2; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: # 5210 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_intersection(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5260 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_intersection(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: if (__comp(__first1, __first2)) 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: ++__result; 29724: } 29724: else if (__comp(__first2, __first1)) 29724: ++__first2; 29724: else 29724: { 29724: ++__first1; 29724: ++__first2; 29724: } 29724: return std::copy(__first1, __last1, __result); 29724: } 29724: # 5335 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_difference(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5387 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_difference(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __set_symmetric_difference(_InputIterator1 __first1, 29724: _InputIterator1 __last1, 29724: _InputIterator2 __first2, 29724: _InputIterator2 __last2, 29724: _OutputIterator __result, 29724: _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: if (__comp(__first1, __first2)) 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: ++__result; 29724: } 29724: else if (__comp(__first2, __first1)) 29724: { 29724: *__result = *__first2; 29724: ++__first2; 29724: ++__result; 29724: } 29724: else 29724: { 29724: ++__first1; 29724: ++__first2; 29724: } 29724: return std::copy(__first2, __last2, 29724: std::copy(__first1, __last1, __result)); 29724: } 29724: # 5468 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_symmetric_difference(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5520 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_symmetric_difference(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: constexpr 29724: _ForwardIterator 29724: __min_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: if (__first == __last) 29724: return __first; 29724: _ForwardIterator __result = __first; 29724: while (++__first != __last) 29724: if (__comp(__first, __result)) 29724: __result = __first; 29724: return __result; 29724: } 29724: # 5574 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: _ForwardIterator 29724: inline min_element(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__min_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5599 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline _ForwardIterator 29724: min_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__min_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: constexpr 29724: _ForwardIterator 29724: __max_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: if (__first == __last) return __first; 29724: _ForwardIterator __result = __first; 29724: while (++__first != __last) 29724: if (__comp(__result, __first)) 29724: __result = __first; 29724: return __result; 29724: } 29724: # 5638 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline _ForwardIterator 29724: max_element(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__max_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5663 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline _ForwardIterator 29724: max_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__max_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr 29724: inline _Tp 29724: min(initializer_list<_Tp> __l) 29724: { 29724: ; 29724: return *std::__min_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: 29724: template 29724: constexpr 29724: inline _Tp 29724: min(initializer_list<_Tp> __l, _Compare __comp) 29724: { 29724: ; 29724: return *std::__min_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: constexpr 29724: inline _Tp 29724: max(initializer_list<_Tp> __l) 29724: { 29724: ; 29724: return *std::__max_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: 29724: template 29724: constexpr 29724: inline _Tp 29724: max(initializer_list<_Tp> __l, _Compare __comp) 29724: { 29724: ; 29724: return *std::__max_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: _RandomAccessIterator 29724: __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, 29724: _RandomAccessIterator __out, random_access_iterator_tag, 29724: _Size __n, _UniformRandomBitGenerator&& __g) 29724: { 29724: using __distrib_type = uniform_int_distribution<_Size>; 29724: using __param_type = typename __distrib_type::param_type; 29724: __distrib_type __d{}; 29724: _Size __sample_sz = 0; 29724: while (__first != __last && __sample_sz != __n) 29724: { 29724: __out[__sample_sz++] = *__first; 29724: ++__first; 29724: } 29724: for (auto __pop_sz = __sample_sz; __first != __last; 29724: ++__first, (void) ++__pop_sz) 29724: { 29724: const auto __k = __d(__g, __param_type{0, __pop_sz}); 29724: if (__k < __n) 29724: __out[__k] = *__first; 29724: } 29724: return __out + __sample_sz; 29724: } 29724: 29724: 29724: template 29724: _OutputIterator 29724: __sample(_ForwardIterator __first, _ForwardIterator __last, 29724: forward_iterator_tag, 29724: _OutputIterator __out, _Cat, 29724: _Size __n, _UniformRandomBitGenerator&& __g) 29724: { 29724: using __distrib_type = uniform_int_distribution<_Size>; 29724: using __param_type = typename __distrib_type::param_type; 29724: using _USize = make_unsigned_t<_Size>; 29724: using _Gen = remove_reference_t<_UniformRandomBitGenerator>; 29724: using __uc_type = common_type_t; 29724: 29724: if (__first == __last) 29724: return __out; 29724: 29724: __distrib_type __d{}; 29724: _Size __unsampled_sz = std::distance(__first, __last); 29724: __n = std::min(__n, __unsampled_sz); 29724: 29724: 29724: 29724: 29724: const __uc_type __urngrange = __g.max() - __g.min(); 29724: if (__urngrange / __uc_type(__unsampled_sz) >= __uc_type(__unsampled_sz)) 29724: 29724: 29724: { 29724: while (__n != 0 && __unsampled_sz >= 2) 29724: { 29724: const pair<_Size, _Size> __p = 29724: __gen_two_uniform_ints(__unsampled_sz, __unsampled_sz - 1, __g); 29724: 29724: --__unsampled_sz; 29724: if (__p.first < __n) 29724: { 29724: *__out++ = *__first; 29724: --__n; 29724: } 29724: 29724: ++__first; 29724: 29724: if (__n == 0) break; 29724: 29724: --__unsampled_sz; 29724: if (__p.second < __n) 29724: { 29724: *__out++ = *__first; 29724: --__n; 29724: } 29724: 29724: ++__first; 29724: } 29724: } 29724: 29724: 29724: 29724: for (; __n != 0; ++__first) 29724: if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) 29724: { 29724: *__out++ = *__first; 29724: --__n; 29724: } 29724: return __out; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: _SampleIterator 29724: sample(_PopulationIterator __first, _PopulationIterator __last, 29724: _SampleIterator __out, _Distance __n, 29724: _UniformRandomBitGenerator&& __g) 29724: { 29724: using __pop_cat = typename 29724: std::iterator_traits<_PopulationIterator>::iterator_category; 29724: using __samp_cat = typename 29724: std::iterator_traits<_SampleIterator>::iterator_category; 29724: 29724: static_assert( 29724: __or_, 29724: is_convertible<__samp_cat, random_access_iterator_tag>>::value, 29724: "output range must use a RandomAccessIterator when input range" 29724: " does not meet the ForwardIterator requirements"); 29724: 29724: static_assert(is_integral<_Distance>::value, 29724: "sample size must be an integer type"); 29724: 29724: typename iterator_traits<_PopulationIterator>::difference_type __d = __n; 29724: return std:: 29724: __sample(__first, __last, __pop_cat{}, __out, __samp_cat{}, __d, 29724: std::forward<_UniformRandomBitGenerator>(__g)); 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 62 "/usr/include/c++/14/algorithm" 2 3 29724: # 77 "/usr/include/c++/14/algorithm" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 78 "/usr/include/c++/14/algorithm" 2 3 29724: # 86 "/usr/include/c++/14/algorithm" 3 29724: # 1 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 1 3 29724: # 17 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 3 29724: namespace std 29724: { 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: any_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: none_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: for_each(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Function __f); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: for_each_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, _Function __f); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: find_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: find_if_not(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29724: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29724: _ForwardIterator2 __s_last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29724: typename iterator_traits<_ForwardIterator>::difference_type> 29724: count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29724: typename iterator_traits<_ForwardIterator>::difference_type> 29724: count_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29724: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29724: _ForwardIterator2 __s_last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 29724: const _Tp& __value, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 29724: const _Tp& __value); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: copy_n(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 result, 29724: _Predicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: swap_ranges(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29724: _UnaryOperation __op); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator __result, _BinaryOperation __op); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred, 29724: const _Tp& __new_value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, 29724: const _Tp& __new_value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: replace_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: replace_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29724: const _Tp& __old_value, const _Tp& __new_value); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, const _Tp& __value); 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Generator __g); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: remove_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _Predicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: remove_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29724: const _Tp& __value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: remove_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29724: _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: reverse_copy(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 29724: _ForwardIterator __d_first); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: rotate_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __middle, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: is_partitioned(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: partition(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _BidirectionalIterator> 29724: stable_partition(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 29724: _UnaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29724: partition_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29724: _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29724: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29724: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29724: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29724: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _BinaryPredicate __p); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _BinaryPredicate __p); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2); 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: move(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __d_first); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29724: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29724: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29724: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29724: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last); 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 29724: _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 29724: _RandomAccessIterator __last); 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _ForwardIterator __d_first); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _ForwardIterator __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator result, 29724: _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29724: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29724: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 29724: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 29724: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2); 29724: 29724: } 29724: # 87 "/usr/include/c++/14/algorithm" 2 3 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 1 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: 29724: 29724: # 1 "/usr/include/c++/14/thread" 1 3 29724: # 32 "/usr/include/c++/14/thread" 3 29724: 29724: # 33 "/usr/include/c++/14/thread" 3 29724: # 45 "/usr/include/c++/14/thread" 3 29724: # 1 "/usr/include/c++/14/bits/std_thread.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/std_thread.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/std_thread.h" 3 29724: # 52 "/usr/include/c++/14/bits/std_thread.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 82 "/usr/include/c++/14/bits/std_thread.h" 3 29724: class thread 29724: { 29724: public: 29724: 29724: using native_handle_type = __gthread_t; 29724: # 96 "/usr/include/c++/14/bits/std_thread.h" 3 29724: class id 29724: { 29724: native_handle_type _M_thread; 29724: 29724: public: 29724: id() noexcept : _M_thread() { } 29724: 29724: explicit 29724: id(native_handle_type __id) : _M_thread(__id) { } 29724: 29724: private: 29724: friend class thread; 29724: friend struct hash; 29724: 29724: friend bool 29724: operator==(id __x, id __y) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator<(id __x, id __y) noexcept; 29724: 29724: 29724: template 29724: friend basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, id __id); 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: private: 29724: id _M_id; 29724: 29724: 29724: 29724: 29724: template 29724: using __not_same = __not_, thread>>; 29724: 29724: public: 29724: thread() noexcept = default; 29724: 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: 29724: 29724: static void 29724: _M_thread_deps_never_run() { 29724: 29724: 29724: 29724: 29724: } 29724: 29724: public: 29724: template>> 29724: explicit 29724: thread(_Callable&& __f, _Args&&... __args) 29724: { 29724: static_assert( __is_invocable::type, 29724: typename decay<_Args>::type...>::value, 29724: "std::thread arguments must be invocable after conversion to rvalues" 29724: ); 29724: 29724: using _Wrapper = _Call_wrapper<_Callable, _Args...>; 29724: 29724: 29724: _M_start_thread(_State_ptr(new _State_impl<_Wrapper>( 29724: std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), 29724: _M_thread_deps_never_run); 29724: } 29724: 29724: 29724: ~thread() 29724: { 29724: if (joinable()) 29724: std::__terminate(); 29724: } 29724: 29724: thread(const thread&) = delete; 29724: 29724: thread(thread&& __t) noexcept 29724: { swap(__t); } 29724: 29724: thread& operator=(const thread&) = delete; 29724: 29724: thread& operator=(thread&& __t) noexcept 29724: { 29724: if (joinable()) 29724: std::__terminate(); 29724: swap(__t); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(thread& __t) noexcept 29724: { std::swap(_M_id, __t._M_id); } 29724: 29724: bool 29724: joinable() const noexcept 29724: { return !(_M_id == id()); } 29724: 29724: void 29724: join(); 29724: 29724: void 29724: detach(); 29724: 29724: id 29724: get_id() const noexcept 29724: { return _M_id; } 29724: 29724: 29724: 29724: native_handle_type 29724: native_handle() 29724: { return _M_id._M_thread; } 29724: 29724: 29724: static unsigned int 29724: hardware_concurrency() noexcept; 29724: 29724: 29724: 29724: private: 29724: 29724: 29724: 29724: struct _State 29724: { 29724: virtual ~_State(); 29724: virtual void _M_run() = 0; 29724: }; 29724: using _State_ptr = unique_ptr<_State>; 29724: 29724: private: 29724: template 29724: struct _State_impl : public _State 29724: { 29724: _Callable _M_func; 29724: 29724: template 29724: _State_impl(_Args&&... __args) 29724: : _M_func(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: void 29724: _M_run() { _M_func(); } 29724: }; 29724: 29724: void 29724: _M_start_thread(_State_ptr, void (*)()); 29724: # 278 "/usr/include/c++/14/bits/std_thread.h" 3 29724: private: 29724: 29724: template 29724: struct _Invoker 29724: { 29724: template 29724: explicit 29724: _Invoker(_Args&&... __args) 29724: : _M_t(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: _Tuple _M_t; 29724: 29724: template 29724: struct __result; 29724: template 29724: struct __result> 29724: : __invoke_result<_Fn, _Args...> 29724: { }; 29724: 29724: template 29724: typename __result<_Tuple>::type 29724: _M_invoke(_Index_tuple<_Ind...>) 29724: { return std::__invoke(std::get<_Ind>(std::move(_M_t))...); } 29724: 29724: typename __result<_Tuple>::type 29724: operator()() 29724: { 29724: using _Indices 29724: = typename _Build_index_tuple::value>::__type; 29724: return _M_invoke(_Indices()); 29724: } 29724: }; 29724: 29724: public: 29724: 29724: template 29724: using _Call_wrapper = _Invoker::type...>>; 29724: 29724: 29724: }; 29724: # 327 "/usr/include/c++/14/bits/std_thread.h" 3 29724: inline void 29724: swap(thread& __x, thread& __y) noexcept 29724: { __x.swap(__y); } 29724: 29724: 29724: inline bool 29724: operator==(thread::id __x, thread::id __y) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: return __x._M_thread == __y._M_thread; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: size_t 29724: operator()(const thread::id& __id) const noexcept 29724: { return std::_Hash_impl::hash(__id._M_thread); } 29724: }; 29724: 29724: namespace this_thread 29724: { 29724: 29724: inline thread::id 29724: get_id() noexcept 29724: { 29724: 29724: 29724: 29724: return thread::id(pthread_self()); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: inline void 29724: yield() noexcept 29724: { 29724: 29724: __gthread_yield(); 29724: 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 46 "/usr/include/c++/14/thread" 2 3 29724: # 1 "/usr/include/c++/14/bits/this_thread_sleep.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/chrono.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/chrono.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/chrono.h" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ratio" 1 3 29724: # 33 "/usr/include/c++/14/ratio" 3 29724: 29724: # 34 "/usr/include/c++/14/ratio" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstdint" 1 3 29724: # 32 "/usr/include/c++/14/cstdint" 3 29724: 29724: # 33 "/usr/include/c++/14/cstdint" 3 29724: # 48 "/usr/include/c++/14/cstdint" 3 29724: namespace std 29724: { 29724: 29724: using ::int8_t; 29724: using ::int16_t; 29724: using ::int32_t; 29724: using ::int64_t; 29724: 29724: using ::int_fast8_t; 29724: using ::int_fast16_t; 29724: using ::int_fast32_t; 29724: using ::int_fast64_t; 29724: 29724: using ::int_least8_t; 29724: using ::int_least16_t; 29724: using ::int_least32_t; 29724: using ::int_least64_t; 29724: 29724: using ::intmax_t; 29724: using ::intptr_t; 29724: 29724: using ::uint8_t; 29724: using ::uint16_t; 29724: using ::uint32_t; 29724: using ::uint64_t; 29724: 29724: using ::uint_fast8_t; 29724: using ::uint_fast16_t; 29724: using ::uint_fast32_t; 29724: using ::uint_fast64_t; 29724: 29724: using ::uint_least8_t; 29724: using ::uint_least16_t; 29724: using ::uint_least32_t; 29724: using ::uint_least64_t; 29724: 29724: using ::uintmax_t; 29724: using ::uintptr_t; 29724: # 142 "/usr/include/c++/14/cstdint" 3 29724: } 29724: # 41 "/usr/include/c++/14/ratio" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 44 "/usr/include/c++/14/ratio" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 59 "/usr/include/c++/14/ratio" 3 29724: template 29724: struct __static_sign 29724: : integral_constant 29724: { }; 29724: 29724: template 29724: struct __static_abs 29724: : integral_constant::value> 29724: { }; 29724: 29724: template 29724: struct __static_gcd 29724: : __static_gcd<_Qn, (_Pn % _Qn)> 29724: { }; 29724: 29724: template 29724: struct __static_gcd<_Pn, 0> 29724: : integral_constant::value> 29724: { }; 29724: 29724: template 29724: struct __static_gcd<0, _Qn> 29724: : integral_constant::value> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __safe_multiply 29724: { 29724: private: 29724: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29724: 29724: static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; 29724: static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; 29724: static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; 29724: static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; 29724: 29724: static_assert(__a1 == 0 || __b1 == 0, 29724: "overflow in multiplication"); 29724: static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 29724: "overflow in multiplication"); 29724: static_assert(__b0 * __a0 <= 0x7fffffffffffffffLL, 29724: "overflow in multiplication"); 29724: static_assert((__a0 * __b1 + __b0 * __a1) * __c 29724: <= 0x7fffffffffffffffLL - __b0 * __a0, 29724: "overflow in multiplication"); 29724: 29724: public: 29724: static const intmax_t value = _Pn * _Qn; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __big_less 29724: : integral_constant 29724: { }; 29724: 29724: template 29724: struct __big_add 29724: { 29724: static constexpr uintmax_t __lo = __lo1 + __lo2; 29724: static constexpr uintmax_t __hi = (__hi1 + __hi2 + 29724: (__lo1 + __lo2 < __lo1)); 29724: }; 29724: 29724: 29724: template 29724: struct __big_sub 29724: { 29724: static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 29724: "Internal library error"); 29724: static constexpr uintmax_t __lo = __lo1 - __lo2; 29724: static constexpr uintmax_t __hi = (__hi1 - __hi2 - 29724: (__lo1 < __lo2)); 29724: }; 29724: 29724: 29724: template 29724: struct __big_mul 29724: { 29724: private: 29724: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29724: static constexpr uintmax_t __x0 = __x % __c; 29724: static constexpr uintmax_t __x1 = __x / __c; 29724: static constexpr uintmax_t __y0 = __y % __c; 29724: static constexpr uintmax_t __y1 = __y / __c; 29724: static constexpr uintmax_t __x0y0 = __x0 * __y0; 29724: static constexpr uintmax_t __x0y1 = __x0 * __y1; 29724: static constexpr uintmax_t __x1y0 = __x1 * __y0; 29724: static constexpr uintmax_t __x1y1 = __x1 * __y1; 29724: static constexpr uintmax_t __mix = __x0y1 + __x1y0; 29724: static constexpr uintmax_t __mix_lo = __mix * __c; 29724: static constexpr uintmax_t __mix_hi 29724: = __mix / __c + ((__mix < __x0y1) ? __c : 0); 29724: typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; 29724: public: 29724: static constexpr uintmax_t __hi = _Res::__hi; 29724: static constexpr uintmax_t __lo = _Res::__lo; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __big_div_impl 29724: { 29724: private: 29724: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 29724: "Internal library error"); 29724: static_assert(__n1 < __d, "Internal library error"); 29724: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29724: static constexpr uintmax_t __d1 = __d / __c; 29724: static constexpr uintmax_t __d0 = __d % __c; 29724: 29724: static constexpr uintmax_t __q1x = __n1 / __d1; 29724: static constexpr uintmax_t __r1x = __n1 % __d1; 29724: static constexpr uintmax_t __m = __q1x * __d0; 29724: static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; 29724: static constexpr uintmax_t __r1z = __r1y + __d; 29724: static constexpr uintmax_t __r1 29724: = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) 29724: ? (__r1z + __d) : __r1z : __r1y) - __m; 29724: static constexpr uintmax_t __q1 29724: = __q1x - ((__r1y < __m) 29724: ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); 29724: static constexpr uintmax_t __q0x = __r1 / __d1; 29724: static constexpr uintmax_t __r0x = __r1 % __d1; 29724: static constexpr uintmax_t __n = __q0x * __d0; 29724: static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; 29724: static constexpr uintmax_t __r0z = __r0y + __d; 29724: static constexpr uintmax_t __r0 29724: = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) 29724: ? (__r0z + __d) : __r0z : __r0y) - __n; 29724: static constexpr uintmax_t __q0 29724: = __q0x - ((__r0y < __n) ? ((__r0z >= __d) 29724: && (__r0z < __n)) ? 2 : 1 : 0); 29724: 29724: public: 29724: static constexpr uintmax_t __quot = __q1 * __c + __q0; 29724: static constexpr uintmax_t __rem = __r0; 29724: 29724: private: 29724: typedef __big_mul<__quot, __d> _Prod; 29724: typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; 29724: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 29724: "Internal library error"); 29724: }; 29724: 29724: template 29724: struct __big_div 29724: { 29724: private: 29724: static_assert(__d != 0, "Internal library error"); 29724: static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), 29724: "This library calls __builtin_clzll on uintmax_t, which " 29724: "is unsafe on your platform. Please complain to " 29724: "http://gcc.gnu.org/bugzilla/"); 29724: static constexpr int __shift = __builtin_clzll(__d); 29724: static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; 29724: static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; 29724: static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; 29724: static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; 29724: static constexpr uintmax_t __new_d = __d * __c1; 29724: static constexpr uintmax_t __new_n0 = __n0 * __c1; 29724: static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; 29724: static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; 29724: static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; 29724: typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; 29724: 29724: public: 29724: static constexpr uintmax_t __quot_hi = __n1 / __d; 29724: static constexpr uintmax_t __quot_lo = _Res::__quot; 29724: static constexpr uintmax_t __rem = _Res::__rem / __c1; 29724: 29724: private: 29724: typedef __big_mul<__quot_lo, __d> _P0; 29724: typedef __big_mul<__quot_hi, __d> _P1; 29724: typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; 29724: 29724: static_assert(_P1::__hi == 0, "Internal library error"); 29724: static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); 29724: 29724: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 29724: "Internal library error"); 29724: static_assert(__rem < __d, "Internal library error"); 29724: }; 29724: # 268 "/usr/include/c++/14/ratio" 3 29724: template 29724: struct ratio 29724: { 29724: static_assert(_Den != 0, "denominator cannot be zero"); 29724: static_assert(_Num >= -0x7fffffffffffffffLL && _Den >= -0x7fffffffffffffffLL, 29724: "out of range"); 29724: 29724: 29724: static constexpr intmax_t num = 29724: _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; 29724: 29724: static constexpr intmax_t den = 29724: __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; 29724: 29724: typedef ratio type; 29724: }; 29724: # 295 "/usr/include/c++/14/ratio" 3 29724: template 29724: struct __is_ratio 29724: : std::false_type 29724: { }; 29724: 29724: template 29724: struct __is_ratio> 29724: : std::true_type 29724: { }; 29724: 29724: 29724: template 29724: constexpr bool __is_ratio_v = false; 29724: template 29724: constexpr bool __is_ratio_v> = true; 29724: 29724: 29724: template 29724: constexpr bool 29724: __are_both_ratios() noexcept 29724: { 29724: 29724: if constexpr (__is_ratio_v<_R1>) 29724: if constexpr (__is_ratio_v<_R2>) 29724: return true; 29724: return false; 29724: 29724: 29724: 29724: } 29724: 29724: template 29724: struct __ratio_multiply 29724: { 29724: static_assert(std::__are_both_ratios<_R1, _R2>(), 29724: "both template arguments must be a std::ratio"); 29724: 29724: private: 29724: static const intmax_t __gcd1 = 29724: __static_gcd<_R1::num, _R2::den>::value; 29724: static const intmax_t __gcd2 = 29724: __static_gcd<_R2::num, _R1::den>::value; 29724: 29724: public: 29724: typedef ratio< 29724: __safe_multiply<(_R1::num / __gcd1), 29724: (_R2::num / __gcd2)>::value, 29724: __safe_multiply<(_R1::den / __gcd2), 29724: (_R2::den / __gcd1)>::value> type; 29724: 29724: static constexpr intmax_t num = type::num; 29724: static constexpr intmax_t den = type::den; 29724: }; 29724: # 360 "/usr/include/c++/14/ratio" 3 29724: template 29724: using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; 29724: 29724: 29724: 29724: template 29724: struct __ratio_divide 29724: { 29724: static_assert(_R2::num != 0, "division by 0"); 29724: 29724: typedef typename __ratio_multiply< 29724: _R1, 29724: ratio<_R2::den, _R2::num>>::type type; 29724: 29724: static constexpr intmax_t num = type::num; 29724: static constexpr intmax_t den = type::den; 29724: }; 29724: # 389 "/usr/include/c++/14/ratio" 3 29724: template 29724: using ratio_divide = typename __ratio_divide<_R1, _R2>::type; 29724: 29724: 29724: template 29724: struct ratio_equal 29724: : integral_constant 29724: { 29724: static_assert(std::__are_both_ratios<_R1, _R2>(), 29724: "both template arguments must be a std::ratio"); 29724: }; 29724: 29724: 29724: template 29724: struct ratio_not_equal 29724: : integral_constant::value> 29724: { }; 29724: 29724: 29724: 29724: 29724: template, 29724: typename _Right = __big_mul<_R2::num,_R1::den> > 29724: struct __ratio_less_impl_1 29724: : integral_constant::value> 29724: { }; 29724: 29724: template::value 29724: != __static_sign<_R2::num>::value)), 29724: bool = (__static_sign<_R1::num>::value == -1 29724: && __static_sign<_R2::num>::value == -1)> 29724: struct __ratio_less_impl 29724: : __ratio_less_impl_1<_R1, _R2>::type 29724: { }; 29724: 29724: template 29724: struct __ratio_less_impl<_R1, _R2, true, false> 29724: : integral_constant 29724: { }; 29724: 29724: template 29724: struct __ratio_less_impl<_R1, _R2, false, true> 29724: : __ratio_less_impl_1, 29724: ratio<-_R1::num, _R1::den> >::type 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct ratio_less 29724: : __ratio_less_impl<_R1, _R2>::type 29724: { 29724: static_assert(std::__are_both_ratios<_R1, _R2>(), 29724: "both template arguments must be a std::ratio"); 29724: }; 29724: 29724: 29724: template 29724: struct ratio_less_equal 29724: : integral_constant::value> 29724: { }; 29724: 29724: 29724: template 29724: struct ratio_greater 29724: : integral_constant::value> 29724: { }; 29724: 29724: 29724: template 29724: struct ratio_greater_equal 29724: : integral_constant::value> 29724: { }; 29724: 29724: 29724: template 29724: inline constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; 29724: template 29724: inline constexpr bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; 29724: template 29724: inline constexpr bool ratio_less_v = ratio_less<_R1, _R2>::value; 29724: template 29724: inline constexpr bool ratio_less_equal_v 29724: = ratio_less_equal<_R1, _R2>::value; 29724: template 29724: inline constexpr bool ratio_greater_v = ratio_greater<_R1, _R2>::value; 29724: template 29724: inline constexpr bool ratio_greater_equal_v 29724: = ratio_greater_equal<_R1, _R2>::value; 29724: 29724: 29724: 29724: 29724: template= 0), 29724: bool = (_R2::num >= 0), 29724: bool = ratio_less::value, _R1::den>, 29724: ratio<__static_abs<_R2::num>::value, _R2::den> >::value> 29724: struct __ratio_add_impl 29724: { 29724: private: 29724: typedef typename __ratio_add_impl< 29724: ratio<-_R1::num, _R1::den>, 29724: ratio<-_R2::num, _R2::den> >::type __t; 29724: public: 29724: typedef ratio<-__t::num, __t::den> type; 29724: }; 29724: 29724: 29724: template 29724: struct __ratio_add_impl<_R1, _R2, true, true, __b> 29724: { 29724: private: 29724: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 29724: static constexpr uintmax_t __d2 = _R2::den / __g; 29724: typedef __big_mul<_R1::den, __d2> __d; 29724: typedef __big_mul<_R1::num, _R2::den / __g> __x; 29724: typedef __big_mul<_R2::num, _R1::den / __g> __y; 29724: typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 29724: static_assert(__n::__hi >= __x::__hi, "Internal library error"); 29724: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 29724: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 29724: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 29724: static_assert(__n_final::__rem == 0, "Internal library error"); 29724: static_assert(__n_final::__quot_hi == 0 && 29724: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29724: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 29724: static_assert(__d_final::__hi == 0 && 29724: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29724: public: 29724: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 29724: }; 29724: 29724: template 29724: struct __ratio_add_impl<_R1, _R2, false, true, true> 29724: : __ratio_add_impl<_R2, _R1> 29724: { }; 29724: 29724: 29724: template 29724: struct __ratio_add_impl<_R1, _R2, true, false, false> 29724: { 29724: private: 29724: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 29724: static constexpr uintmax_t __d2 = _R2::den / __g; 29724: typedef __big_mul<_R1::den, __d2> __d; 29724: typedef __big_mul<_R1::num, _R2::den / __g> __x; 29724: typedef __big_mul<-_R2::num, _R1::den / __g> __y; 29724: typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 29724: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 29724: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 29724: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 29724: static_assert(__n_final::__rem == 0, "Internal library error"); 29724: static_assert(__n_final::__quot_hi == 0 && 29724: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29724: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 29724: static_assert(__d_final::__hi == 0 && 29724: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29724: public: 29724: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 29724: }; 29724: 29724: template 29724: struct __ratio_add 29724: { 29724: static_assert(std::__are_both_ratios<_R1, _R2>(), 29724: "both template arguments must be a std::ratio"); 29724: 29724: typedef typename __ratio_add_impl<_R1, _R2>::type type; 29724: static constexpr intmax_t num = type::num; 29724: static constexpr intmax_t den = type::den; 29724: }; 29724: # 578 "/usr/include/c++/14/ratio" 3 29724: template 29724: using ratio_add = typename __ratio_add<_R1, _R2>::type; 29724: 29724: 29724: 29724: template 29724: struct __ratio_subtract 29724: { 29724: typedef typename __ratio_add< 29724: _R1, 29724: ratio<-_R2::num, _R2::den>>::type type; 29724: 29724: static constexpr intmax_t num = type::num; 29724: static constexpr intmax_t den = type::den; 29724: }; 29724: # 605 "/usr/include/c++/14/ratio" 3 29724: template 29724: using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; 29724: # 618 "/usr/include/c++/14/ratio" 3 29724: using atto = ratio< 1, 1000000000000000000>; 29724: using femto = ratio< 1, 1000000000000000>; 29724: using pico = ratio< 1, 1000000000000>; 29724: using nano = ratio< 1, 1000000000>; 29724: using micro = ratio< 1, 1000000>; 29724: using milli = ratio< 1, 1000>; 29724: using centi = ratio< 1, 100>; 29724: using deci = ratio< 1, 10>; 29724: using deca = ratio< 10, 1>; 29724: using hecto = ratio< 100, 1>; 29724: using kilo = ratio< 1000, 1>; 29724: using mega = ratio< 1000000, 1>; 29724: using giga = ratio< 1000000000, 1>; 29724: using tera = ratio< 1000000000000, 1>; 29724: using peta = ratio< 1000000000000000, 1>; 29724: using exa = ratio< 1000000000000000000, 1>; 29724: # 646 "/usr/include/c++/14/ratio" 3 29724: 29724: } 29724: # 38 "/usr/include/c++/14/bits/chrono.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/limits" 1 3 29724: # 40 "/usr/include/c++/14/limits" 3 29724: 29724: # 41 "/usr/include/c++/14/limits" 3 29724: # 158 "/usr/include/c++/14/limits" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum float_round_style 29724: { 29724: round_indeterminate = -1, 29724: round_toward_zero = 0, 29724: round_to_nearest = 1, 29724: round_toward_infinity = 2, 29724: round_toward_neg_infinity = 3 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum float_denorm_style 29724: { 29724: 29724: denorm_indeterminate = -1, 29724: 29724: denorm_absent = 0, 29724: 29724: denorm_present = 1 29724: }; 29724: # 202 "/usr/include/c++/14/limits" 3 29724: struct __numeric_limits_base 29724: { 29724: 29724: 29724: static constexpr bool is_specialized = false; 29724: 29724: 29724: 29724: 29724: static constexpr int digits = 0; 29724: 29724: 29724: static constexpr int digits10 = 0; 29724: 29724: 29724: 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: 29724: 29724: static constexpr bool is_signed = false; 29724: 29724: 29724: static constexpr bool is_integer = false; 29724: 29724: 29724: 29724: 29724: static constexpr bool is_exact = false; 29724: 29724: 29724: 29724: static constexpr int radix = 0; 29724: 29724: 29724: 29724: static constexpr int min_exponent = 0; 29724: 29724: 29724: 29724: static constexpr int min_exponent10 = 0; 29724: 29724: 29724: 29724: 29724: static constexpr int max_exponent = 0; 29724: 29724: 29724: 29724: static constexpr int max_exponent10 = 0; 29724: 29724: 29724: static constexpr bool has_infinity = false; 29724: 29724: 29724: 29724: static constexpr bool has_quiet_NaN = false; 29724: 29724: 29724: 29724: static constexpr bool has_signaling_NaN = false; 29724: 29724: 29724: static constexpr float_denorm_style has_denorm = denorm_absent; 29724: 29724: 29724: 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: 29724: 29724: static constexpr bool is_iec559 = false; 29724: 29724: 29724: 29724: 29724: static constexpr bool is_bounded = false; 29724: # 288 "/usr/include/c++/14/limits" 3 29724: static constexpr bool is_modulo = false; 29724: 29724: 29724: static constexpr bool traps = false; 29724: 29724: 29724: static constexpr bool tinyness_before = false; 29724: 29724: 29724: 29724: 29724: static constexpr float_round_style round_style = 29724: round_toward_zero; 29724: }; 29724: # 311 "/usr/include/c++/14/limits" 3 29724: template 29724: struct numeric_limits : public __numeric_limits_base 29724: { 29724: 29724: 29724: static constexpr _Tp 29724: min() noexcept { return _Tp(); } 29724: 29724: 29724: static constexpr _Tp 29724: max() noexcept { return _Tp(); } 29724: 29724: 29724: 29724: 29724: static constexpr _Tp 29724: lowest() noexcept { return _Tp(); } 29724: 29724: 29724: 29724: 29724: static constexpr _Tp 29724: epsilon() noexcept { return _Tp(); } 29724: 29724: 29724: static constexpr _Tp 29724: round_error() noexcept { return _Tp(); } 29724: 29724: 29724: static constexpr _Tp 29724: infinity() noexcept { return _Tp(); } 29724: 29724: 29724: 29724: static constexpr _Tp 29724: quiet_NaN() noexcept { return _Tp(); } 29724: 29724: 29724: 29724: static constexpr _Tp 29724: signaling_NaN() noexcept { return _Tp(); } 29724: 29724: 29724: 29724: 29724: static constexpr _Tp 29724: denorm_min() noexcept { return _Tp(); } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct numeric_limits 29724: : public numeric_limits<_Tp> { }; 29724: 29724: template 29724: struct numeric_limits 29724: : public numeric_limits<_Tp> { }; 29724: 29724: template 29724: struct numeric_limits 29724: : public numeric_limits<_Tp> { }; 29724: # 383 "/usr/include/c++/14/limits" 3 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr bool 29724: min() noexcept { return false; } 29724: 29724: static constexpr bool 29724: max() noexcept { return true; } 29724: 29724: 29724: static constexpr bool 29724: lowest() noexcept { return min(); } 29724: 29724: static constexpr int digits = 1; 29724: static constexpr int digits10 = 0; 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr bool 29724: epsilon() noexcept { return false; } 29724: 29724: static constexpr bool 29724: round_error() noexcept { return false; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr bool 29724: infinity() noexcept { return false; } 29724: 29724: static constexpr bool 29724: quiet_NaN() noexcept { return false; } 29724: 29724: static constexpr bool 29724: signaling_NaN() noexcept { return false; } 29724: 29724: static constexpr bool 29724: denorm_min() noexcept { return false; } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: 29724: 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr char 29724: 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); } 29724: 29724: static constexpr char 29724: max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } 29724: 29724: 29724: static constexpr char 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = ((char)(-1) < 0); 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr char 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr char 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr 29724: char infinity() noexcept { return char(); } 29724: 29724: static constexpr char 29724: quiet_NaN() noexcept { return char(); } 29724: 29724: static constexpr char 29724: signaling_NaN() noexcept { return char(); } 29724: 29724: static constexpr char 29724: denorm_min() noexcept { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = !is_signed; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr signed char 29724: min() noexcept { return -0x7f - 1; } 29724: 29724: static constexpr signed char 29724: max() noexcept { return 0x7f; } 29724: 29724: 29724: static constexpr signed char 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr signed char 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr signed char 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr signed char 29724: infinity() noexcept { return static_cast(0); } 29724: 29724: static constexpr signed char 29724: quiet_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr signed char 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr signed char 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr unsigned char 29724: min() noexcept { return 0; } 29724: 29724: static constexpr unsigned char 29724: max() noexcept { return 0x7f * 2U + 1; } 29724: 29724: 29724: static constexpr unsigned char 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr unsigned char 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr unsigned char 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr unsigned char 29724: infinity() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned char 29724: quiet_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned char 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned char 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = true; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr wchar_t 29724: 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); } 29724: 29724: static constexpr wchar_t 29724: 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); } 29724: 29724: 29724: static constexpr wchar_t 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = ((wchar_t)(-1) < 0); 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr wchar_t 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr wchar_t 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr wchar_t 29724: infinity() noexcept { return wchar_t(); } 29724: 29724: static constexpr wchar_t 29724: quiet_NaN() noexcept { return wchar_t(); } 29724: 29724: static constexpr wchar_t 29724: signaling_NaN() noexcept { return wchar_t(); } 29724: 29724: static constexpr wchar_t 29724: denorm_min() noexcept { return wchar_t(); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = !is_signed; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: # 796 "/usr/include/c++/14/limits" 3 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr char16_t 29724: 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); } 29724: 29724: static constexpr char16_t 29724: 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); } 29724: 29724: static constexpr char16_t 29724: lowest() noexcept { return min(); } 29724: 29724: static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); 29724: static constexpr int max_digits10 = 0; 29724: static constexpr bool is_signed = ((char16_t)(-1) < 0); 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr char16_t 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr char16_t 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr char16_t 29724: infinity() noexcept { return char16_t(); } 29724: 29724: static constexpr char16_t 29724: quiet_NaN() noexcept { return char16_t(); } 29724: 29724: static constexpr char16_t 29724: signaling_NaN() noexcept { return char16_t(); } 29724: 29724: static constexpr char16_t 29724: denorm_min() noexcept { return char16_t(); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = !is_signed; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr char32_t 29724: 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); } 29724: 29724: static constexpr char32_t 29724: 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); } 29724: 29724: static constexpr char32_t 29724: lowest() noexcept { return min(); } 29724: 29724: static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); 29724: static constexpr int max_digits10 = 0; 29724: static constexpr bool is_signed = ((char32_t)(-1) < 0); 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr char32_t 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr char32_t 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr char32_t 29724: infinity() noexcept { return char32_t(); } 29724: 29724: static constexpr char32_t 29724: quiet_NaN() noexcept { return char32_t(); } 29724: 29724: static constexpr char32_t 29724: signaling_NaN() noexcept { return char32_t(); } 29724: 29724: static constexpr char32_t 29724: denorm_min() noexcept { return char32_t(); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = !is_signed; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style = round_toward_zero; 29724: }; 29724: 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr short 29724: min() noexcept { return -0x7fff - 1; } 29724: 29724: static constexpr short 29724: max() noexcept { return 0x7fff; } 29724: 29724: 29724: static constexpr short 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr short 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr short 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr short 29724: infinity() noexcept { return short(); } 29724: 29724: static constexpr short 29724: quiet_NaN() noexcept { return short(); } 29724: 29724: static constexpr short 29724: signaling_NaN() noexcept { return short(); } 29724: 29724: static constexpr short 29724: denorm_min() noexcept { return short(); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr unsigned short 29724: min() noexcept { return 0; } 29724: 29724: static constexpr unsigned short 29724: max() noexcept { return 0x7fff * 2U + 1; } 29724: 29724: 29724: static constexpr unsigned short 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr unsigned short 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr unsigned short 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr unsigned short 29724: infinity() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned short 29724: quiet_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned short 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned short 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = true; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr int 29724: min() noexcept { return -0x7fffffff - 1; } 29724: 29724: static constexpr int 29724: max() noexcept { return 0x7fffffff; } 29724: 29724: 29724: static constexpr int 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr int 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr int 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr int 29724: infinity() noexcept { return static_cast(0); } 29724: 29724: static constexpr int 29724: quiet_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr int 29724: signaling_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr int 29724: denorm_min() noexcept { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr unsigned int 29724: min() noexcept { return 0; } 29724: 29724: static constexpr unsigned int 29724: max() noexcept { return 0x7fffffff * 2U + 1; } 29724: 29724: 29724: static constexpr unsigned int 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr unsigned int 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr unsigned int 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr unsigned int 29724: infinity() noexcept { return static_cast(0); } 29724: 29724: static constexpr unsigned int 29724: quiet_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned int 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned int 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = true; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr long 29724: min() noexcept { return -0x7fffffffL - 1; } 29724: 29724: static constexpr long 29724: max() noexcept { return 0x7fffffffL; } 29724: 29724: 29724: static constexpr long 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr long 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr long 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr long 29724: infinity() noexcept { return static_cast(0); } 29724: 29724: static constexpr long 29724: quiet_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr long 29724: signaling_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr long 29724: denorm_min() noexcept { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr unsigned long 29724: min() noexcept { return 0; } 29724: 29724: static constexpr unsigned long 29724: max() noexcept { return 0x7fffffffL * 2UL + 1; } 29724: 29724: 29724: static constexpr unsigned long 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr unsigned long 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr unsigned long 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr unsigned long 29724: infinity() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long 29724: quiet_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = true; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr long long 29724: min() noexcept { return -0x7fffffffffffffffLL - 1; } 29724: 29724: static constexpr long long 29724: max() noexcept { return 0x7fffffffffffffffLL; } 29724: 29724: 29724: static constexpr long long 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(long long) * 8 - ((long long)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr long long 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr long long 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr long long 29724: infinity() noexcept { return static_cast(0); } 29724: 29724: static constexpr long long 29724: quiet_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr long long 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr long long 29724: denorm_min() noexcept { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr unsigned long long 29724: min() noexcept { return 0; } 29724: 29724: static constexpr unsigned long long 29724: max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } 29724: 29724: 29724: static constexpr unsigned long long 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr unsigned long long 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr unsigned long long 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr unsigned long long 29724: infinity() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long long 29724: quiet_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long long 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long long 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = true; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: # 1669 "/usr/include/c++/14/limits" 3 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr float 29724: min() noexcept { return 1.1754943508222875e-38F; } 29724: 29724: static constexpr float 29724: max() noexcept { return 3.4028234663852886e+38F; } 29724: 29724: 29724: static constexpr float 29724: lowest() noexcept { return -3.4028234663852886e+38F; } 29724: 29724: 29724: static constexpr int digits = 24; 29724: static constexpr int digits10 = 6; 29724: 29724: static constexpr int max_digits10 29724: = (2 + (24) * 643L / 2136); 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = false; 29724: static constexpr bool is_exact = false; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr float 29724: epsilon() noexcept { return 1.1920928955078125e-7F; } 29724: 29724: static constexpr float 29724: round_error() noexcept { return 0.5F; } 29724: 29724: static constexpr int min_exponent = (-125); 29724: static constexpr int min_exponent10 = (-37); 29724: static constexpr int max_exponent = 128; 29724: static constexpr int max_exponent10 = 38; 29724: 29724: static constexpr bool has_infinity = 1; 29724: static constexpr bool has_quiet_NaN = 1; 29724: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29724: static constexpr float_denorm_style has_denorm 29724: = bool(1) ? denorm_present : denorm_absent; 29724: static constexpr bool has_denorm_loss 29724: = false; 29724: 29724: static constexpr float 29724: infinity() noexcept { return __builtin_huge_valf(); } 29724: 29724: static constexpr float 29724: quiet_NaN() noexcept { return __builtin_nanf(""); } 29724: 29724: static constexpr float 29724: signaling_NaN() noexcept { return __builtin_nansf(""); } 29724: 29724: static constexpr float 29724: denorm_min() noexcept { return 1.4012984643248171e-45F; } 29724: 29724: static constexpr bool is_iec559 29724: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before 29724: = false; 29724: static constexpr float_round_style round_style 29724: = round_to_nearest; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr double 29724: min() noexcept { return double(2.2250738585072014e-308L); } 29724: 29724: static constexpr double 29724: max() noexcept { return double(1.7976931348623157e+308L); } 29724: 29724: 29724: static constexpr double 29724: lowest() noexcept { return -double(1.7976931348623157e+308L); } 29724: 29724: 29724: static constexpr int digits = 53; 29724: static constexpr int digits10 = 15; 29724: 29724: static constexpr int max_digits10 29724: = (2 + (53) * 643L / 2136); 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = false; 29724: static constexpr bool is_exact = false; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr double 29724: epsilon() noexcept { return double(2.2204460492503131e-16L); } 29724: 29724: static constexpr double 29724: round_error() noexcept { return 0.5; } 29724: 29724: static constexpr int min_exponent = (-1021); 29724: static constexpr int min_exponent10 = (-307); 29724: static constexpr int max_exponent = 1024; 29724: static constexpr int max_exponent10 = 308; 29724: 29724: static constexpr bool has_infinity = 1; 29724: static constexpr bool has_quiet_NaN = 1; 29724: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29724: static constexpr float_denorm_style has_denorm 29724: = bool(1) ? denorm_present : denorm_absent; 29724: static constexpr bool has_denorm_loss 29724: = false; 29724: 29724: static constexpr double 29724: infinity() noexcept { return __builtin_huge_val(); } 29724: 29724: static constexpr double 29724: quiet_NaN() noexcept { return __builtin_nan(""); } 29724: 29724: static constexpr double 29724: signaling_NaN() noexcept { return __builtin_nans(""); } 29724: 29724: static constexpr double 29724: denorm_min() noexcept { return double(4.9406564584124654e-324L); } 29724: 29724: static constexpr bool is_iec559 29724: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before 29724: = false; 29724: static constexpr float_round_style round_style 29724: = round_to_nearest; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr long double 29724: min() noexcept { return 2.2250738585072014e-308L; } 29724: 29724: static constexpr long double 29724: max() noexcept { return 1.7976931348623157e+308L; } 29724: 29724: 29724: static constexpr long double 29724: lowest() noexcept { return -1.7976931348623157e+308L; } 29724: 29724: 29724: static constexpr int digits = 53; 29724: static constexpr int digits10 = 15; 29724: 29724: static constexpr int max_digits10 29724: = (2 + (53) * 643L / 2136); 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = false; 29724: static constexpr bool is_exact = false; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr long double 29724: epsilon() noexcept { return 2.2204460492503131e-16L; } 29724: 29724: static constexpr long double 29724: round_error() noexcept { return 0.5L; } 29724: 29724: static constexpr int min_exponent = (-1021); 29724: static constexpr int min_exponent10 = (-307); 29724: static constexpr int max_exponent = 1024; 29724: static constexpr int max_exponent10 = 308; 29724: 29724: static constexpr bool has_infinity = 1; 29724: static constexpr bool has_quiet_NaN = 1; 29724: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29724: static constexpr float_denorm_style has_denorm 29724: = bool(1) ? denorm_present : denorm_absent; 29724: static constexpr bool has_denorm_loss 29724: = false; 29724: 29724: static constexpr long double 29724: infinity() noexcept { return __builtin_huge_vall(); } 29724: 29724: static constexpr long double 29724: quiet_NaN() noexcept { return __builtin_nanl(""); } 29724: 29724: static constexpr long double 29724: signaling_NaN() noexcept { return __builtin_nansl(""); } 29724: 29724: static constexpr long double 29724: denorm_min() noexcept { return 4.9406564584124654e-324L; } 29724: 29724: static constexpr bool is_iec559 29724: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = 29724: false; 29724: static constexpr float_round_style round_style = 29724: round_to_nearest; 29724: }; 29724: # 1989 "/usr/include/c++/14/limits" 3 29724: __extension__ template<> struct numeric_limits<_Float32> { static constexpr bool is_specialized = true; static constexpr _Float32 min() noexcept { return 1.1754943508222875e-38F32; } static constexpr _Float32 max() noexcept { return 3.4028234663852886e+38F32; } static constexpr _Float32 lowest() noexcept { return -3.4028234663852886e+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.1920928955078125e-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.4012984643248171e-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; }; 29724: 29724: 29724: __extension__ template<> struct numeric_limits<_Float64> { static constexpr bool is_specialized = true; static constexpr _Float64 min() noexcept { return 2.2250738585072014e-308F64; } static constexpr _Float64 max() noexcept { return 1.7976931348623157e+308F64; } static constexpr _Float64 lowest() noexcept { return -1.7976931348623157e+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.2204460492503131e-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.9406564584124654e-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; }; 29724: # 2222 "/usr/include/c++/14/limits" 3 29724: 29724: } 29724: # 40 "/usr/include/c++/14/bits/chrono.h" 2 3 29724: # 1 "/usr/include/c++/14/ctime" 1 3 29724: # 39 "/usr/include/c++/14/ctime" 3 29724: 29724: # 40 "/usr/include/c++/14/ctime" 3 29724: # 58 "/usr/include/c++/14/ctime" 3 29724: namespace std 29724: { 29724: using ::clock_t; 29724: using ::time_t; 29724: using ::tm; 29724: 29724: using ::clock; 29724: using ::difftime; 29724: using ::mktime; 29724: using ::time; 29724: using ::asctime; 29724: using ::ctime; 29724: using ::gmtime; 29724: using ::localtime; 29724: using ::strftime; 29724: } 29724: 29724: 29724: 29724: namespace std 29724: { 29724: using ::timespec; 29724: using ::timespec_get; 29724: } 29724: # 41 "/usr/include/c++/14/bits/chrono.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/parse_numbers.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/parse_numbers.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/parse_numbers.h" 3 29724: # 42 "/usr/include/c++/14/bits/parse_numbers.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: namespace __parse_int 29724: { 29724: template 29724: struct _Digit; 29724: 29724: template 29724: struct _Digit<_Base, '0'> : integral_constant 29724: { 29724: using __valid = true_type; 29724: }; 29724: 29724: template 29724: struct _Digit<_Base, '1'> : integral_constant 29724: { 29724: using __valid = true_type; 29724: }; 29724: 29724: template 29724: struct _Digit_impl : integral_constant 29724: { 29724: static_assert(_Base > _Val, "invalid digit"); 29724: using __valid = true_type; 29724: }; 29724: 29724: template 29724: struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> 29724: { }; 29724: 29724: 29724: template 29724: struct _Digit<_Base, '\''> : integral_constant 29724: { 29724: using __valid = false_type; 29724: }; 29724: 29724: 29724: 29724: template 29724: using __ull_constant = integral_constant; 29724: 29724: template 29724: struct _Power_help 29724: { 29724: using __next = typename _Power_help<_Base, _Digs...>::type; 29724: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 29724: using type 29724: = __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; 29724: }; 29724: 29724: template 29724: struct _Power_help<_Base, _Dig> 29724: { 29724: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 29724: using type = __ull_constant<__valid_digit::value>; 29724: }; 29724: 29724: template 29724: struct _Power : _Power_help<_Base, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Power<_Base> : __ull_constant<0> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct _Number_help 29724: { 29724: using __digit = _Digit<_Base, _Dig>; 29724: using __valid_digit = typename __digit::__valid; 29724: using __next = _Number_help<_Base, 29724: __valid_digit::value ? _Pow / _Base : _Pow, 29724: _Digs...>; 29724: using type = __ull_constant<_Pow * __digit::value + __next::type::value>; 29724: static_assert((type::value / _Pow) == __digit::value, 29724: "integer literal does not fit in unsigned long long"); 29724: }; 29724: 29724: 29724: template 29724: struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> 29724: : _Number_help<_Base, _Pow, _Dig, _Digs...> 29724: { }; 29724: 29724: 29724: template 29724: struct _Number_help<_Base, 1ULL, _Dig> 29724: { 29724: using type = __ull_constant<_Digit<_Base, _Dig>::value>; 29724: }; 29724: 29724: template 29724: struct _Number 29724: : _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Number<_Base> 29724: : __ull_constant<0> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct _Parse_int; 29724: 29724: template 29724: struct _Parse_int<'0', 'b', _Digs...> 29724: : _Number<2U, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Parse_int<'0', 'B', _Digs...> 29724: : _Number<2U, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Parse_int<'0', 'x', _Digs...> 29724: : _Number<16U, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Parse_int<'0', 'X', _Digs...> 29724: : _Number<16U, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Parse_int<'0', _Digs...> 29724: : _Number<8U, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Parse_int 29724: : _Number<10U, _Digs...>::type 29724: { }; 29724: 29724: } 29724: 29724: 29724: namespace __select_int 29724: { 29724: template 29724: struct _Select_int_base; 29724: 29724: template 29724: struct _Select_int_base<_Val, _IntType, _Ints...> 29724: : __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), 29724: integral_constant<_IntType, (_IntType)_Val>, 29724: _Select_int_base<_Val, _Ints...>> 29724: { }; 29724: 29724: template 29724: struct _Select_int_base<_Val> 29724: { }; 29724: 29724: template 29724: using _Select_int = typename _Select_int_base< 29724: __parse_int::_Parse_int<_Digs...>::value, 29724: unsigned char, 29724: unsigned short, 29724: unsigned int, 29724: unsigned long, 29724: unsigned long long 29724: >::type; 29724: 29724: } 29724: 29724: 29724: } 29724: # 42 "/usr/include/c++/14/bits/chrono.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 48 "/usr/include/c++/14/bits/chrono.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: namespace filesystem { struct __file_clock; }; 29724: 29724: 29724: namespace chrono 29724: { 29724: 29724: 29724: 29724: 29724: template> 29724: class duration; 29724: 29724: 29724: template 29724: class time_point; 29724: 29724: } 29724: # 79 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: struct __duration_common_type 29724: { }; 29724: 29724: template 29724: struct __duration_common_type<_CT, _Period1, _Period2, 29724: __void_t> 29724: { 29724: private: 29724: using __gcd_num = __static_gcd<_Period1::num, _Period2::num>; 29724: using __gcd_den = __static_gcd<_Period1::den, _Period2::den>; 29724: using __cr = typename _CT::type; 29724: using __r = ratio<__gcd_num::value, 29724: (_Period1::den / __gcd_den::value) * _Period2::den>; 29724: 29724: public: 29724: using type = chrono::duration<__cr, typename __r::type>; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct common_type, 29724: chrono::duration<_Rep2, _Period2>> 29724: : __duration_common_type, 29724: typename _Period1::type, 29724: typename _Period2::type> 29724: { }; 29724: 29724: 29724: template 29724: struct common_type, 29724: chrono::duration<_Rep, _Period>> 29724: { 29724: using type = chrono::duration::type, 29724: typename _Period::type>; 29724: }; 29724: 29724: 29724: template 29724: struct common_type> 29724: { 29724: using type = chrono::duration::type, 29724: typename _Period::type>; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __timepoint_common_type 29724: { }; 29724: 29724: template 29724: struct __timepoint_common_type<_CT, _Clock, __void_t> 29724: { 29724: using type = chrono::time_point<_Clock, typename _CT::type>; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct common_type, 29724: chrono::time_point<_Clock, _Duration2>> 29724: : __timepoint_common_type, _Clock> 29724: { }; 29724: 29724: 29724: template 29724: struct common_type, 29724: chrono::time_point<_Clock, _Duration>> 29724: { using type = chrono::time_point<_Clock, _Duration>; }; 29724: 29724: 29724: template 29724: struct common_type> 29724: { using type = chrono::time_point<_Clock, _Duration>; }; 29724: 29724: 29724: 29724: 29724: namespace chrono 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __duration_cast_impl 29724: { 29724: template 29724: static constexpr _ToDur 29724: __cast(const duration<_Rep, _Period>& __d) 29724: { 29724: typedef typename _ToDur::rep __to_rep; 29724: return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) 29724: * static_cast<_CR>(_CF::num) 29724: / static_cast<_CR>(_CF::den))); 29724: } 29724: }; 29724: 29724: template 29724: struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> 29724: { 29724: template 29724: static constexpr _ToDur 29724: __cast(const duration<_Rep, _Period>& __d) 29724: { 29724: typedef typename _ToDur::rep __to_rep; 29724: return _ToDur(static_cast<__to_rep>(__d.count())); 29724: } 29724: }; 29724: 29724: template 29724: struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> 29724: { 29724: template 29724: static constexpr _ToDur 29724: __cast(const duration<_Rep, _Period>& __d) 29724: { 29724: typedef typename _ToDur::rep __to_rep; 29724: return _ToDur(static_cast<__to_rep>( 29724: static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); 29724: } 29724: }; 29724: 29724: template 29724: struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> 29724: { 29724: template 29724: static constexpr _ToDur 29724: __cast(const duration<_Rep, _Period>& __d) 29724: { 29724: typedef typename _ToDur::rep __to_rep; 29724: return _ToDur(static_cast<__to_rep>( 29724: static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); 29724: } 29724: }; 29724: 29724: template 29724: struct __is_duration 29724: : std::false_type 29724: { }; 29724: 29724: template 29724: struct __is_duration> 29724: : std::true_type 29724: { }; 29724: 29724: template 29724: using __enable_if_is_duration 29724: = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; 29724: 29724: template 29724: using __disable_if_is_duration 29724: = typename enable_if::value, _Tp>::type; 29724: 29724: 29724: template 29724: inline constexpr bool __is_duration_v = false; 29724: template 29724: inline constexpr bool __is_duration_v> = true; 29724: template 29724: inline constexpr bool __is_time_point_v = false; 29724: template 29724: inline constexpr bool __is_time_point_v> = true; 29724: # 272 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[__nodiscard__]] 29724: constexpr __enable_if_is_duration<_ToDur> 29724: duration_cast(const duration<_Rep, _Period>& __d) 29724: { 29724: 29724: if constexpr (is_same_v<_ToDur, duration<_Rep, _Period>>) 29724: return __d; 29724: else 29724: { 29724: 29724: using __to_period = typename _ToDur::period; 29724: using __to_rep = typename _ToDur::rep; 29724: using __cf = ratio_divide<_Period, __to_period>; 29724: using __cr = typename common_type<__to_rep, _Rep, intmax_t>::type; 29724: using __dc = __duration_cast_impl<_ToDur, __cf, __cr, 29724: __cf::num == 1, __cf::den == 1>; 29724: return __dc::__cast(__d); 29724: 29724: } 29724: 29724: } 29724: # 306 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: struct treat_as_floating_point 29724: : is_floating_point<_Rep> 29724: { }; 29724: 29724: 29724: template 29724: inline constexpr bool treat_as_floating_point_v = 29724: treat_as_floating_point<_Rep>::value; 29724: 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = false; 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = false; 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = false; 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = true; 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = true; 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = true; 29724: # 386 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 29724: floor(const duration<_Rep, _Period>& __d) 29724: { 29724: auto __to = chrono::duration_cast<_ToDur>(__d); 29724: if (__to > __d) 29724: return __to - _ToDur{1}; 29724: return __to; 29724: } 29724: # 406 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 29724: ceil(const duration<_Rep, _Period>& __d) 29724: { 29724: auto __to = chrono::duration_cast<_ToDur>(__d); 29724: if (__to < __d) 29724: return __to + _ToDur{1}; 29724: return __to; 29724: } 29724: # 427 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr 29724: enable_if_t< 29724: __and_<__is_duration<_ToDur>, 29724: __not_>>::value, 29724: _ToDur> 29724: round(const duration<_Rep, _Period>& __d) 29724: { 29724: _ToDur __t0 = chrono::floor<_ToDur>(__d); 29724: _ToDur __t1 = __t0 + _ToDur{1}; 29724: auto __diff0 = __d - __t0; 29724: auto __diff1 = __t1 - __d; 29724: if (__diff0 == __diff1) 29724: { 29724: if (__t0.count() & 1) 29724: return __t1; 29724: return __t0; 29724: } 29724: else if (__diff0 < __diff1) 29724: return __t0; 29724: return __t1; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard]] constexpr 29724: enable_if_t::is_signed, duration<_Rep, _Period>> 29724: abs(duration<_Rep, _Period> __d) 29724: { 29724: if (__d >= __d.zero()) 29724: return __d; 29724: return -__d; 29724: } 29724: 29724: 29724: namespace __detail { using chrono::ceil; } 29724: # 494 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: struct duration_values 29724: { 29724: static constexpr _Rep 29724: zero() noexcept 29724: { return _Rep(0); } 29724: 29724: static constexpr _Rep 29724: max() noexcept 29724: { return numeric_limits<_Rep>::max(); } 29724: 29724: static constexpr _Rep 29724: min() noexcept 29724: { return numeric_limits<_Rep>::lowest(); } 29724: }; 29724: 29724: template 29724: class duration 29724: { 29724: static_assert(!__is_duration<_Rep>::value, 29724: "rep cannot be a std::chrono::duration"); 29724: static_assert(__is_ratio<_Period>::value, 29724: "period must be a specialization of std::ratio"); 29724: static_assert(_Period::num > 0, "period must be positive"); 29724: 29724: template 29724: using __is_float = treat_as_floating_point<_Rep2>; 29724: 29724: static constexpr intmax_t 29724: _S_gcd(intmax_t __m, intmax_t __n) noexcept 29724: { 29724: 29724: 29724: 29724: do 29724: { 29724: intmax_t __rem = __m % __n; 29724: __m = __n; 29724: __n = __rem; 29724: } 29724: while (__n != 0); 29724: return __m; 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), 29724: (_R1::den / __gcd2) * (_R2::num / __gcd1)>; 29724: 29724: 29724: template 29724: using __is_harmonic 29724: = __bool_constant<__divide<_Period2, _Period>::den == 1>; 29724: 29724: public: 29724: 29724: using rep = _Rep; 29724: using period = typename _Period::type; 29724: 29724: 29724: constexpr duration() = default; 29724: 29724: duration(const duration&) = default; 29724: 29724: 29724: 29724: template, 29724: __or_<__is_float, __not_<__is_float<_Rep2>>>>> 29724: constexpr explicit duration(const _Rep2& __rep) 29724: : __r(static_cast(__rep)) { } 29724: 29724: template, 29724: __or_<__is_float, 29724: __and_<__is_harmonic<_Period2>, 29724: __not_<__is_float<_Rep2>>>>>> 29724: constexpr duration(const duration<_Rep2, _Period2>& __d) 29724: : __r(duration_cast(__d).count()) { } 29724: 29724: ~duration() = default; 29724: duration& operator=(const duration&) = default; 29724: 29724: 29724: constexpr rep 29724: count() const 29724: { return __r; } 29724: 29724: 29724: 29724: constexpr duration::type, period> 29724: operator+() const 29724: { return duration::type, period>(__r); } 29724: 29724: constexpr duration::type, period> 29724: operator-() const 29724: { return duration::type, period>(-__r); } 29724: 29724: constexpr duration& 29724: operator++() 29724: { 29724: ++__r; 29724: return *this; 29724: } 29724: 29724: constexpr duration 29724: operator++(int) 29724: { return duration(__r++); } 29724: 29724: constexpr duration& 29724: operator--() 29724: { 29724: --__r; 29724: return *this; 29724: } 29724: 29724: constexpr duration 29724: operator--(int) 29724: { return duration(__r--); } 29724: 29724: constexpr duration& 29724: operator+=(const duration& __d) 29724: { 29724: __r += __d.count(); 29724: return *this; 29724: } 29724: 29724: constexpr duration& 29724: operator-=(const duration& __d) 29724: { 29724: __r -= __d.count(); 29724: return *this; 29724: } 29724: 29724: constexpr duration& 29724: operator*=(const rep& __rhs) 29724: { 29724: __r *= __rhs; 29724: return *this; 29724: } 29724: 29724: constexpr duration& 29724: operator/=(const rep& __rhs) 29724: { 29724: __r /= __rhs; 29724: return *this; 29724: } 29724: 29724: 29724: template 29724: constexpr 29724: __enable_if_t::value, duration&> 29724: operator%=(const rep& __rhs) 29724: { 29724: __r %= __rhs; 29724: return *this; 29724: } 29724: 29724: template 29724: constexpr 29724: __enable_if_t::value, duration&> 29724: operator%=(const duration& __d) 29724: { 29724: __r %= __d.count(); 29724: return *this; 29724: } 29724: 29724: 29724: static constexpr duration 29724: zero() noexcept 29724: { return duration(duration_values::zero()); } 29724: 29724: static constexpr duration 29724: min() noexcept 29724: { return duration(duration_values::min()); } 29724: 29724: static constexpr duration 29724: max() noexcept 29724: { return duration(duration_values::max()); } 29724: 29724: private: 29724: rep __r; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr typename common_type, 29724: duration<_Rep2, _Period2>>::type 29724: operator+(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __cd; 29724: return __cd(__cd(__lhs).count() + __cd(__rhs).count()); 29724: } 29724: 29724: 29724: template 29724: constexpr typename common_type, 29724: duration<_Rep2, _Period2>>::type 29724: operator-(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __cd; 29724: return __cd(__cd(__lhs).count() - __cd(__rhs).count()); 29724: } 29724: # 727 "/usr/include/c++/14/bits/chrono.h" 3 29724: template::type> 29724: using __common_rep_t = typename 29724: enable_if::value, _CRep>::type; 29724: # 739 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> 29724: operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29724: { 29724: typedef duration::type, _Period> 29724: __cd; 29724: return __cd(__cd(__d).count() * __s); 29724: } 29724: 29724: template 29724: constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> 29724: operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) 29724: { return __d * __s; } 29724: 29724: template 29724: constexpr 29724: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 29724: operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29724: { 29724: typedef duration::type, _Period> 29724: __cd; 29724: return __cd(__cd(__d).count() / __s); 29724: } 29724: 29724: template 29724: constexpr typename common_type<_Rep1, _Rep2>::type 29724: operator/(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __cd; 29724: return __cd(__lhs).count() / __cd(__rhs).count(); 29724: } 29724: 29724: 29724: template 29724: constexpr 29724: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 29724: operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29724: { 29724: typedef duration::type, _Period> 29724: __cd; 29724: return __cd(__cd(__d).count() % __s); 29724: } 29724: 29724: template 29724: constexpr typename common_type, 29724: duration<_Rep2, _Period2>>::type 29724: operator%(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __cd; 29724: return __cd(__cd(__lhs).count() % __cd(__rhs).count()); 29724: } 29724: # 807 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: constexpr bool 29724: operator==(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __ct; 29724: return __ct(__lhs).count() == __ct(__rhs).count(); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator<(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __ct; 29724: return __ct(__lhs).count() < __ct(__rhs).count(); 29724: } 29724: # 844 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: constexpr bool 29724: operator!=(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: template 29724: constexpr bool 29724: operator<=(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { return !(__rhs < __lhs); } 29724: 29724: template 29724: constexpr bool 29724: operator>(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { return __rhs < __lhs; } 29724: 29724: template 29724: constexpr bool 29724: operator>=(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { return !(__lhs < __rhs); } 29724: # 888 "/usr/include/c++/14/bits/chrono.h" 3 29724: using nanoseconds = duration; 29724: 29724: 29724: using microseconds = duration; 29724: 29724: 29724: using milliseconds = duration; 29724: 29724: 29724: using seconds = duration; 29724: 29724: 29724: using minutes = duration>; 29724: 29724: 29724: using hours = duration>; 29724: # 921 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: class time_point 29724: { 29724: static_assert(__is_duration<_Dur>::value, 29724: "duration must be a specialization of std::chrono::duration"); 29724: 29724: public: 29724: typedef _Clock clock; 29724: typedef _Dur duration; 29724: typedef typename duration::rep rep; 29724: typedef typename duration::period period; 29724: 29724: constexpr time_point() : __d(duration::zero()) 29724: { } 29724: 29724: constexpr explicit time_point(const duration& __dur) 29724: : __d(__dur) 29724: { } 29724: 29724: 29724: template>> 29724: constexpr time_point(const time_point& __t) 29724: : __d(__t.time_since_epoch()) 29724: { } 29724: 29724: 29724: constexpr duration 29724: time_since_epoch() const 29724: { return __d; } 29724: # 977 "/usr/include/c++/14/bits/chrono.h" 3 29724: constexpr time_point& 29724: operator+=(const duration& __dur) 29724: { 29724: __d += __dur; 29724: return *this; 29724: } 29724: 29724: constexpr time_point& 29724: operator-=(const duration& __dur) 29724: { 29724: __d -= __dur; 29724: return *this; 29724: } 29724: 29724: 29724: static constexpr time_point 29724: min() noexcept 29724: { return time_point(duration::min()); } 29724: 29724: static constexpr time_point 29724: max() noexcept 29724: { return time_point(duration::max()); } 29724: 29724: private: 29724: duration __d; 29724: }; 29724: # 1016 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: __enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 29724: time_point_cast(const time_point<_Clock, _Dur>& __t) 29724: { 29724: typedef time_point<_Clock, _ToDur> __time_point; 29724: return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); 29724: } 29724: # 1038 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr 29724: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 29724: floor(const time_point<_Clock, _Dur>& __tp) 29724: { 29724: return time_point<_Clock, _ToDur>{ 29724: chrono::floor<_ToDur>(__tp.time_since_epoch())}; 29724: } 29724: # 1059 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr 29724: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 29724: ceil(const time_point<_Clock, _Dur>& __tp) 29724: { 29724: return time_point<_Clock, _ToDur>{ 29724: chrono::ceil<_ToDur>(__tp.time_since_epoch())}; 29724: } 29724: # 1081 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr 29724: enable_if_t<__is_duration_v<_ToDur> 29724: && !treat_as_floating_point_v, 29724: time_point<_Clock, _ToDur>> 29724: round(const time_point<_Clock, _Dur>& __tp) 29724: { 29724: return time_point<_Clock, _ToDur>{ 29724: chrono::round<_ToDur>(__tp.time_since_epoch())}; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr time_point<_Clock, 29724: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 29724: operator+(const time_point<_Clock, _Dur1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<_Dur1,__dur2>::type __ct; 29724: typedef time_point<_Clock, __ct> __time_point; 29724: return __time_point(__lhs.time_since_epoch() + __rhs); 29724: } 29724: 29724: 29724: template 29724: constexpr time_point<_Clock, 29724: typename common_type, _Dur2>::type> 29724: operator+(const duration<_Rep1, _Period1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef typename common_type<__dur1,_Dur2>::type __ct; 29724: typedef time_point<_Clock, __ct> __time_point; 29724: return __time_point(__rhs.time_since_epoch() + __lhs); 29724: } 29724: 29724: 29724: template 29724: constexpr time_point<_Clock, 29724: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 29724: operator-(const time_point<_Clock, _Dur1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<_Dur1,__dur2>::type __ct; 29724: typedef time_point<_Clock, __ct> __time_point; 29724: return __time_point(__lhs.time_since_epoch() -__rhs); 29724: } 29724: 29724: 29724: template 29724: constexpr typename common_type<_Dur1, _Dur2>::type 29724: operator-(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr bool 29724: operator==(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } 29724: # 1165 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: constexpr bool 29724: operator!=(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: template 29724: constexpr bool 29724: operator<(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } 29724: 29724: template 29724: constexpr bool 29724: operator<=(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return !(__rhs < __lhs); } 29724: 29724: template 29724: constexpr bool 29724: operator>(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return __rhs < __lhs; } 29724: 29724: template 29724: constexpr bool 29724: operator>=(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return !(__lhs < __rhs); } 29724: # 1217 "/usr/include/c++/14/bits/chrono.h" 3 29724: inline namespace _V2 { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct system_clock 29724: { 29724: typedef chrono::nanoseconds duration; 29724: typedef duration::rep rep; 29724: typedef duration::period period; 29724: typedef chrono::time_point time_point; 29724: 29724: static_assert(system_clock::duration::min() 29724: < system_clock::duration::zero(), 29724: "a clock's minimum duration cannot be less than its epoch"); 29724: 29724: static constexpr bool is_steady = false; 29724: 29724: static time_point 29724: now() noexcept; 29724: 29724: 29724: 29724: static std::time_t 29724: to_time_t(const time_point& __t) noexcept 29724: { 29724: return std::time_t(duration_cast 29724: (__t.time_since_epoch()).count()); 29724: } 29724: 29724: 29724: static time_point 29724: from_time_t(std::time_t __t) noexcept 29724: { 29724: typedef chrono::time_point __from; 29724: return time_point_cast 29724: (__from(chrono::seconds(__t))); 29724: } 29724: }; 29724: # 1267 "/usr/include/c++/14/bits/chrono.h" 3 29724: struct steady_clock 29724: { 29724: typedef chrono::nanoseconds duration; 29724: typedef duration::rep rep; 29724: typedef duration::period period; 29724: typedef chrono::time_point time_point; 29724: 29724: static constexpr bool is_steady = true; 29724: 29724: static time_point 29724: now() noexcept; 29724: }; 29724: # 1289 "/usr/include/c++/14/bits/chrono.h" 3 29724: using high_resolution_clock = system_clock; 29724: 29724: } 29724: # 1315 "/usr/include/c++/14/bits/chrono.h" 3 29724: } 29724: 29724: 29724: inline namespace literals 29724: { 29724: # 1344 "/usr/include/c++/14/bits/chrono.h" 3 29724: inline namespace chrono_literals 29724: { 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29724: 29724: template 29724: constexpr _Dur __check_overflow() 29724: { 29724: using _Val = __parse_int::_Parse_int<_Digits...>; 29724: constexpr typename _Dur::rep __repval = _Val::value; 29724: static_assert(__repval >= 0 && __repval == _Val::value, 29724: "literal value cannot be represented by duration type"); 29724: return _Dur(__repval); 29724: } 29724: 29724: 29724: 29724: constexpr chrono::duration> 29724: operator""h(long double __hours) 29724: { return chrono::duration>{__hours}; } 29724: 29724: 29724: template 29724: constexpr chrono::hours 29724: operator""h() 29724: { return __check_overflow(); } 29724: 29724: 29724: constexpr chrono::duration> 29724: operator""min(long double __mins) 29724: { return chrono::duration>{__mins}; } 29724: 29724: 29724: template 29724: constexpr chrono::minutes 29724: operator""min() 29724: { return __check_overflow(); } 29724: 29724: 29724: constexpr chrono::duration 29724: operator""s(long double __secs) 29724: { return chrono::duration{__secs}; } 29724: 29724: 29724: template 29724: constexpr chrono::seconds 29724: operator""s() 29724: { return __check_overflow(); } 29724: 29724: 29724: constexpr chrono::duration 29724: operator""ms(long double __msecs) 29724: { return chrono::duration{__msecs}; } 29724: 29724: 29724: template 29724: constexpr chrono::milliseconds 29724: operator""ms() 29724: { return __check_overflow(); } 29724: 29724: 29724: constexpr chrono::duration 29724: operator""us(long double __usecs) 29724: { return chrono::duration{__usecs}; } 29724: 29724: 29724: template 29724: constexpr chrono::microseconds 29724: operator""us() 29724: { return __check_overflow(); } 29724: 29724: 29724: constexpr chrono::duration 29724: operator""ns(long double __nsecs) 29724: { return chrono::duration{__nsecs}; } 29724: 29724: 29724: template 29724: constexpr chrono::nanoseconds 29724: operator""ns() 29724: { return __check_overflow(); } 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: } 29724: } 29724: 29724: namespace chrono 29724: { 29724: using namespace literals::chrono_literals; 29724: } 29724: 29724: 29724: 29724: namespace filesystem 29724: { 29724: struct __file_clock 29724: { 29724: using duration = chrono::nanoseconds; 29724: using rep = duration::rep; 29724: using period = duration::period; 29724: using time_point = chrono::time_point<__file_clock>; 29724: static constexpr bool is_steady = false; 29724: 29724: static time_point 29724: now() noexcept 29724: { return _S_from_sys(chrono::system_clock::now()); } 29724: # 1470 "/usr/include/c++/14/bits/chrono.h" 3 29724: private: 29724: using __sys_clock = chrono::system_clock; 29724: 29724: 29724: 29724: 29724: static constexpr chrono::seconds _S_epoch_diff{6437664000}; 29724: 29724: protected: 29724: 29724: template 29724: static 29724: chrono::time_point<__file_clock, common_type_t<_Dur, chrono::seconds>> 29724: _S_from_sys(const chrono::time_point<__sys_clock, _Dur>& __t) noexcept 29724: { 29724: using _CDur = common_type_t<_Dur, chrono::seconds>; 29724: using __file_time = chrono::time_point<__file_clock, _CDur>; 29724: return __file_time{__t.time_since_epoch()} - _S_epoch_diff; 29724: } 29724: 29724: 29724: template 29724: static 29724: chrono::time_point<__sys_clock, common_type_t<_Dur, chrono::seconds>> 29724: _S_to_sys(const chrono::time_point<__file_clock, _Dur>& __t) noexcept 29724: { 29724: using _CDur = common_type_t<_Dur, chrono::seconds>; 29724: using __sys_time = chrono::time_point<__sys_clock, _CDur>; 29724: return __sys_time{__t.time_since_epoch()} + _S_epoch_diff; 29724: } 29724: }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 37 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/cerrno" 1 3 29724: # 39 "/usr/include/c++/14/cerrno" 3 29724: 29724: # 40 "/usr/include/c++/14/cerrno" 3 29724: # 40 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 56 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29724: namespace this_thread 29724: { 29724: # 66 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29724: template 29724: inline void 29724: sleep_for(const chrono::duration<_Rep, _Period>& __rtime) 29724: { 29724: if (__rtime <= __rtime.zero()) 29724: return; 29724: auto __s = chrono::duration_cast(__rtime); 29724: auto __ns = chrono::duration_cast(__rtime - __s); 29724: 29724: struct ::timespec __ts = 29724: { 29724: static_cast(__s.count()), 29724: static_cast(__ns.count()) 29724: }; 29724: while (::nanosleep(&__ts, &__ts) == -1 && (*__errno_location ()) == 4) 29724: { } 29724: 29724: 29724: 29724: } 29724: 29724: 29724: template 29724: inline void 29724: sleep_until(const chrono::time_point<_Clock, _Duration>& __atime) 29724: { 29724: 29724: 29724: 29724: auto __now = _Clock::now(); 29724: if (_Clock::is_steady) 29724: { 29724: if (__now < __atime) 29724: sleep_for(__atime - __now); 29724: return; 29724: } 29724: while (__now < __atime) 29724: { 29724: sleep_for(__atime - __now); 29724: __now = _Clock::now(); 29724: } 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 47 "/usr/include/c++/14/thread" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 51 "/usr/include/c++/14/thread" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 78 "/usr/include/c++/14/thread" 3 29724: inline bool 29724: operator!=(thread::id __x, thread::id __y) noexcept 29724: { return !(__x == __y); } 29724: 29724: inline bool 29724: operator<(thread::id __x, thread::id __y) noexcept 29724: { 29724: 29724: 29724: return __x._M_thread < __y._M_thread; 29724: } 29724: 29724: inline bool 29724: operator<=(thread::id __x, thread::id __y) noexcept 29724: { return !(__y < __x); } 29724: 29724: inline bool 29724: operator>(thread::id __x, thread::id __y) noexcept 29724: { return __y < __x; } 29724: 29724: inline bool 29724: operator>=(thread::id __x, thread::id __y) noexcept 29724: { return !(__x < __y); } 29724: 29724: 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id) 29724: { 29724: 29724: using __output_type 29724: = __conditional_t::value, 29724: const void*, 29724: thread::native_handle_type>; 29724: 29724: if (__id == thread::id()) 29724: return __out << "thread::id of a non-executing thread"; 29724: else 29724: return __out << static_cast<__output_type>(__id._M_thread); 29724: } 29724: # 372 "/usr/include/c++/14/thread" 3 29724: 29724: } 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 29724: 29724: 29724: 29724: 29724: 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 29724: namespace rocksdb { 29724: 29724: namespace port { 29724: class CondVar; 29724: } 29724: 29724: enum class CpuPriority { 29724: kIdle = 0, 29724: kLow = 1, 29724: kNormal = 2, 29724: kHigh = 3, 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 2 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: namespace rocksdb { 29724: 29724: extern const bool kDefaultToAdaptiveMutex; 29724: 29724: namespace port { 29724: constexpr bool kLittleEndian = ( 29724: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 3 4 29724: 1234 29724: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: == 29724: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 3 4 29724: 1234 29724: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: ); 29724: 29724: 29724: class CondVar; 29724: 29724: class Mutex { 29724: public: 29724: static const char* kName() { return "pthread_mutex_t"; } 29724: 29724: explicit Mutex(bool adaptive = kDefaultToAdaptiveMutex); 29724: 29724: Mutex(const Mutex&) = delete; 29724: void operator=(const Mutex&) = delete; 29724: 29724: ~Mutex(); 29724: 29724: void Lock(); 29724: void Unlock(); 29724: 29724: bool TryLock(); 29724: 29724: 29724: 29724: void AssertHeld() const; 29724: 29724: 29724: inline void lock() { Lock(); } 29724: inline void unlock() { Unlock(); } 29724: inline bool try_lock() { return TryLock(); } 29724: 29724: private: 29724: friend class CondVar; 29724: pthread_mutex_t mu_; 29724: 29724: bool locked_ = false; 29724: 29724: }; 29724: 29724: class RWMutex { 29724: public: 29724: RWMutex(); 29724: 29724: RWMutex(const RWMutex&) = delete; 29724: void operator=(const RWMutex&) = delete; 29724: 29724: ~RWMutex(); 29724: 29724: void ReadLock(); 29724: void WriteLock(); 29724: void ReadUnlock(); 29724: void WriteUnlock(); 29724: void AssertHeld() const {} 29724: 29724: private: 29724: pthread_rwlock_t mu_; 29724: }; 29724: 29724: class CondVar { 29724: public: 29724: explicit CondVar(Mutex* mu); 29724: ~CondVar(); 29724: 29724: Mutex* GetMutex() const { return mu_; } 29724: 29724: void Wait(); 29724: 29724: bool TimedWait(uint64_t abs_time_us); 29724: void Signal(); 29724: void SignalAll(); 29724: 29724: private: 29724: pthread_cond_t cv_; 29724: Mutex* mu_; 29724: }; 29724: 29724: using Thread = std::thread; 29724: 29724: static inline void AsmVolatilePause() { 29724: # 179 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: } 29724: 29724: 29724: int PhysicalCoreID(); 29724: 29724: using OnceType = pthread_once_t; 29724: 29724: void InitOnce(OnceType* once, void (*initializer)()); 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: static_assert((64U & (64U - 1)) == 0, 29724: "Cache line size must be a power of 2 number of bytes"); 29724: 29724: void* cacheline_aligned_alloc(size_t size); 29724: 29724: void cacheline_aligned_free(void* memblock); 29724: # 229 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: void Crash(const std::string& srcfile, int srcline); 29724: 29724: int GetMaxOpenFiles(); 29724: 29724: extern const size_t kPageSize; 29724: 29724: using ThreadId = pid_t; 29724: 29724: void SetCpuPriority(ThreadId id, CpuPriority priority); 29724: 29724: int64_t GetProcessID(); 29724: 29724: 29724: 29724: bool GenerateRfcUuid(std::string* output); 29724: 29724: } 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 2 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 29724: extern "C" bool RocksDbThreadYieldAndCheckAbort() __attribute__((__weak__)); 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 1 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstring" 1 3 29724: # 39 "/usr/include/c++/14/cstring" 3 29724: 29724: # 40 "/usr/include/c++/14/cstring" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 43 "/usr/include/c++/14/cstring" 2 3 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 2 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: inline void EncodeFixed16(char* buf, uint16_t value) { 29724: if (port::kLittleEndian) { 29724: memcpy(buf, &value, sizeof(value)); 29724: } else { 29724: buf[0] = value & 0xff; 29724: buf[1] = (value >> 8) & 0xff; 29724: } 29724: } 29724: 29724: inline void EncodeFixed32(char* buf, uint32_t value) { 29724: if (port::kLittleEndian) { 29724: memcpy(buf, &value, sizeof(value)); 29724: } else { 29724: buf[0] = value & 0xff; 29724: buf[1] = (value >> 8) & 0xff; 29724: buf[2] = (value >> 16) & 0xff; 29724: buf[3] = (value >> 24) & 0xff; 29724: } 29724: } 29724: 29724: inline void EncodeFixed64(char* buf, uint64_t value) { 29724: if (port::kLittleEndian) { 29724: memcpy(buf, &value, sizeof(value)); 29724: } else { 29724: buf[0] = value & 0xff; 29724: buf[1] = (value >> 8) & 0xff; 29724: buf[2] = (value >> 16) & 0xff; 29724: buf[3] = (value >> 24) & 0xff; 29724: buf[4] = (value >> 32) & 0xff; 29724: buf[5] = (value >> 40) & 0xff; 29724: buf[6] = (value >> 48) & 0xff; 29724: buf[7] = (value >> 56) & 0xff; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: inline uint16_t DecodeFixed16(const char* ptr) { 29724: if (port::kLittleEndian) { 29724: 29724: uint16_t result; 29724: memcpy(&result, ptr, sizeof(result)); 29724: return result; 29724: } else { 29724: return ((static_cast(static_cast(ptr[0]))) | 29724: (static_cast(static_cast(ptr[1])) << 8)); 29724: } 29724: } 29724: 29724: inline uint32_t DecodeFixed32(const char* ptr) { 29724: if (port::kLittleEndian) { 29724: 29724: uint32_t result; 29724: memcpy(&result, ptr, sizeof(result)); 29724: return result; 29724: } else { 29724: return ((static_cast(static_cast(ptr[0]))) | 29724: (static_cast(static_cast(ptr[1])) << 8) | 29724: (static_cast(static_cast(ptr[2])) << 16) | 29724: (static_cast(static_cast(ptr[3])) << 24)); 29724: } 29724: } 29724: 29724: inline uint64_t DecodeFixed64(const char* ptr) { 29724: if (port::kLittleEndian) { 29724: 29724: uint64_t result; 29724: memcpy(&result, ptr, sizeof(result)); 29724: return result; 29724: } else { 29724: uint64_t lo = DecodeFixed32(ptr); 29724: uint64_t hi = DecodeFixed32(ptr + 4); 29724: return (hi << 32) | lo; 29724: } 29724: } 29724: 29724: } 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: const uint32_t kMaxVarint64Length = 10; 29724: 29724: 29724: void PutFixed16(std::string* dst, uint16_t value); 29724: void PutFixed32(std::string* dst, uint32_t value); 29724: void PutFixed64(std::string* dst, uint64_t value); 29724: void PutVarint32(std::string* dst, uint32_t value); 29724: void PutVarint32Varint32(std::string* dst, uint32_t value1, uint32_t value2); 29724: void PutVarint32Varint32Varint32(std::string* dst, uint32_t value1, 29724: uint32_t value2, uint32_t value3); 29724: void PutVarint64(std::string* dst, uint64_t value); 29724: void PutVarint64Varint64(std::string* dst, uint64_t value1, uint64_t value2); 29724: void PutVarint32Varint64(std::string* dst, uint32_t value1, uint64_t value2); 29724: void PutVarint32Varint32Varint64(std::string* dst, uint32_t value1, 29724: uint32_t value2, uint64_t value3); 29724: void PutLengthPrefixedSlice(std::string* dst, const Slice& value); 29724: void PutLengthPrefixedSliceParts(std::string* dst, 29724: const SliceParts& slice_parts); 29724: void PutLengthPrefixedSlicePartsWithPadding(std::string* dst, 29724: const SliceParts& slice_parts, 29724: size_t pad_sz); 29724: 29724: 29724: 29724: bool GetFixed64(Slice* input, uint64_t* value); 29724: bool GetFixed32(Slice* input, uint32_t* value); 29724: bool GetFixed16(Slice* input, uint16_t* value); 29724: bool GetVarint32(Slice* input, uint32_t* value); 29724: bool GetVarint64(Slice* input, uint64_t* value); 29724: bool GetVarsignedint64(Slice* input, int64_t* value); 29724: bool GetLengthPrefixedSlice(Slice* input, Slice* result); 29724: 29724: Slice GetLengthPrefixedSlice(const char* data); 29724: 29724: Slice GetSliceUntil(Slice* slice, char delimiter); 29724: 29724: 29724: 29724: constexpr inline uint64_t i64ToZigzag(const int64_t l) { 29724: return (static_cast(l) << 1) ^ static_cast(l >> 63); 29724: } 29724: inline int64_t zigzagToI64(uint64_t n) { 29724: return (n >> 1) ^ -static_cast(n & 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: const char* GetVarint32Ptr(const char* p, const char* limit, uint32_t* v); 29724: const char* GetVarint64Ptr(const char* p, const char* limit, uint64_t* v); 29724: inline const char* GetVarsignedint64Ptr(const char* p, const char* limit, 29724: int64_t* value) { 29724: uint64_t u = 0; 29724: const char* ret = GetVarint64Ptr(p, limit, &u); 29724: *value = zigzagToI64(u); 29724: return ret; 29724: } 29724: 29724: 29724: int VarintLength(uint64_t v); 29724: 29724: 29724: 29724: 29724: char* EncodeVarint32(char* dst, uint32_t value); 29724: char* EncodeVarint64(char* dst, uint64_t value); 29724: 29724: 29724: const char* GetVarint32PtrFallback(const char* p, const char* limit, 29724: uint32_t* value); 29724: inline const char* GetVarint32Ptr(const char* p, const char* limit, 29724: uint32_t* value) { 29724: if (p < limit) { 29724: uint32_t result = *(reinterpret_cast(p)); 29724: if ((result & 128) == 0) { 29724: *value = result; 29724: return p + 1; 29724: } 29724: } 29724: return GetVarint32PtrFallback(p, limit, value); 29724: } 29724: 29724: 29724: inline void PutFixed16(std::string* dst, uint16_t value) { 29724: if (port::kLittleEndian) { 29724: dst->append(const_cast(reinterpret_cast(&value)), 29724: sizeof(value)); 29724: } else { 29724: char buf[sizeof(value)]; 29724: EncodeFixed16(buf, value); 29724: dst->append(buf, sizeof(buf)); 29724: } 29724: } 29724: 29724: inline void PutFixed32(std::string* dst, uint32_t value) { 29724: if (port::kLittleEndian) { 29724: dst->append(const_cast(reinterpret_cast(&value)), 29724: sizeof(value)); 29724: } else { 29724: char buf[sizeof(value)]; 29724: EncodeFixed32(buf, value); 29724: dst->append(buf, sizeof(buf)); 29724: } 29724: } 29724: 29724: inline void PutFixed64(std::string* dst, uint64_t value) { 29724: if (port::kLittleEndian) { 29724: dst->append(const_cast(reinterpret_cast(&value)), 29724: sizeof(value)); 29724: } else { 29724: char buf[sizeof(value)]; 29724: EncodeFixed64(buf, value); 29724: dst->append(buf, sizeof(buf)); 29724: } 29724: } 29724: 29724: inline void PutVarint32(std::string* dst, uint32_t v) { 29724: char buf[5]; 29724: char* ptr = EncodeVarint32(buf, v); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarint32Varint32(std::string* dst, uint32_t v1, uint32_t v2) { 29724: char buf[10]; 29724: char* ptr = EncodeVarint32(buf, v1); 29724: ptr = EncodeVarint32(ptr, v2); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarint32Varint32Varint32(std::string* dst, uint32_t v1, 29724: uint32_t v2, uint32_t v3) { 29724: char buf[15]; 29724: char* ptr = EncodeVarint32(buf, v1); 29724: ptr = EncodeVarint32(ptr, v2); 29724: ptr = EncodeVarint32(ptr, v3); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline char* EncodeVarint64(char* dst, uint64_t v) { 29724: static const unsigned int B = 128; 29724: unsigned char* ptr = reinterpret_cast(dst); 29724: while (v >= B) { 29724: *(ptr++) = (v & (B - 1)) | B; 29724: v >>= 7; 29724: } 29724: *(ptr++) = static_cast(v); 29724: return reinterpret_cast(ptr); 29724: } 29724: 29724: inline void PutVarint64(std::string* dst, uint64_t v) { 29724: char buf[kMaxVarint64Length]; 29724: char* ptr = EncodeVarint64(buf, v); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarsignedint64(std::string* dst, int64_t v) { 29724: char buf[kMaxVarint64Length]; 29724: 29724: char* ptr = EncodeVarint64(buf, i64ToZigzag(v)); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarint64Varint64(std::string* dst, uint64_t v1, uint64_t v2) { 29724: char buf[20]; 29724: char* ptr = EncodeVarint64(buf, v1); 29724: ptr = EncodeVarint64(ptr, v2); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarint32Varint64(std::string* dst, uint32_t v1, uint64_t v2) { 29724: char buf[15]; 29724: char* ptr = EncodeVarint32(buf, v1); 29724: ptr = EncodeVarint64(ptr, v2); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarint32Varint32Varint64(std::string* dst, uint32_t v1, 29724: uint32_t v2, uint64_t v3) { 29724: char buf[20]; 29724: char* ptr = EncodeVarint32(buf, v1); 29724: ptr = EncodeVarint32(ptr, v2); 29724: ptr = EncodeVarint64(ptr, v3); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { 29724: PutVarint32(dst, static_cast(value.size())); 29724: dst->append(value.data(), value.size()); 29724: } 29724: 29724: inline void PutLengthPrefixedSliceParts(std::string* dst, size_t total_bytes, 29724: const SliceParts& slice_parts) { 29724: for (int i = 0; i < slice_parts.num_parts; ++i) { 29724: total_bytes += slice_parts.parts[i].size(); 29724: } 29724: PutVarint32(dst, static_cast(total_bytes)); 29724: for (int i = 0; i < slice_parts.num_parts; ++i) { 29724: dst->append(slice_parts.parts[i].data(), slice_parts.parts[i].size()); 29724: } 29724: } 29724: 29724: inline void PutLengthPrefixedSliceParts(std::string* dst, 29724: const SliceParts& slice_parts) { 29724: PutLengthPrefixedSliceParts(dst, 0, slice_parts); 29724: } 29724: 29724: inline void PutLengthPrefixedSlicePartsWithPadding( 29724: std::string* dst, const SliceParts& slice_parts, size_t pad_sz) { 29724: PutLengthPrefixedSliceParts(dst, pad_sz, slice_parts); 29724: dst->append(pad_sz, '\0'); 29724: } 29724: 29724: inline int VarintLength(uint64_t v) { 29724: int len = 1; 29724: while (v >= 128) { 29724: v >>= 7; 29724: len++; 29724: } 29724: return len; 29724: } 29724: 29724: inline bool GetFixed64(Slice* input, uint64_t* value) { 29724: if (input->size() < sizeof(uint64_t)) { 29724: return false; 29724: } 29724: *value = DecodeFixed64(input->data()); 29724: input->remove_prefix(sizeof(uint64_t)); 29724: return true; 29724: } 29724: 29724: inline bool GetFixed32(Slice* input, uint32_t* value) { 29724: if (input->size() < sizeof(uint32_t)) { 29724: return false; 29724: } 29724: *value = DecodeFixed32(input->data()); 29724: input->remove_prefix(sizeof(uint32_t)); 29724: return true; 29724: } 29724: 29724: inline bool GetFixed16(Slice* input, uint16_t* value) { 29724: if (input->size() < sizeof(uint16_t)) { 29724: return false; 29724: } 29724: *value = DecodeFixed16(input->data()); 29724: input->remove_prefix(sizeof(uint16_t)); 29724: return true; 29724: } 29724: 29724: inline bool GetVarint32(Slice* input, uint32_t* value) { 29724: const char* p = input->data(); 29724: const char* limit = p + input->size(); 29724: const char* q = GetVarint32Ptr(p, limit, value); 29724: if (q == nullptr) { 29724: return false; 29724: } else { 29724: *input = Slice(q, static_cast(limit - q)); 29724: return true; 29724: } 29724: } 29724: 29724: inline bool GetVarint64(Slice* input, uint64_t* value) { 29724: const char* p = input->data(); 29724: const char* limit = p + input->size(); 29724: const char* q = GetVarint64Ptr(p, limit, value); 29724: if (q == nullptr) { 29724: return false; 29724: } else { 29724: *input = Slice(q, static_cast(limit - q)); 29724: return true; 29724: } 29724: } 29724: 29724: inline bool GetVarsignedint64(Slice* input, int64_t* value) { 29724: const char* p = input->data(); 29724: const char* limit = p + input->size(); 29724: const char* q = GetVarsignedint64Ptr(p, limit, value); 29724: if (q == nullptr) { 29724: return false; 29724: } else { 29724: *input = Slice(q, static_cast(limit - q)); 29724: return true; 29724: } 29724: } 29724: 29724: inline bool GetLengthPrefixedSlice(Slice* input, Slice* result) { 29724: uint32_t len = 0; 29724: if (GetVarint32(input, &len) && input->size() >= len) { 29724: *result = Slice(input->data(), len); 29724: input->remove_prefix(len); 29724: return true; 29724: } else { 29724: return false; 29724: } 29724: } 29724: 29724: inline Slice GetLengthPrefixedSlice(const char* data) { 29724: uint32_t len = 0; 29724: 29724: 29724: auto p = GetVarint32Ptr(data, data + 5 , &len); 29724: return Slice(p, len); 29724: } 29724: 29724: inline Slice GetSliceUntil(Slice* slice, char delimiter) { 29724: uint32_t len = 0; 29724: for (len = 0; len < slice->size() && slice->data()[len] != delimiter; ++len) { 29724: 29724: } 29724: 29724: Slice ret(slice->data(), len); 29724: slice->remove_prefix(len + ((len < slice->size()) ? 1 : 0)); 29724: return ret; 29724: } 29724: 29724: template 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline void 29724: PutUnaligned(T* memory, const T& value) { 29724: 29724: 29724: 29724: 29724: *memory = value; 29724: 29724: } 29724: 29724: template 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline void 29724: GetUnaligned(const T* memory, T* value) { 29724: 29724: 29724: 29724: 29724: *value = *memory; 29724: 29724: } 29724: 29724: } 29724: # 24 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_level_imp.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_level.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: enum PerfLevel : unsigned char { 29724: kUninitialized = 0, 29724: kDisable = 1, 29724: kEnableCount = 2, 29724: kEnableWait = 3, 29724: 29724: 29724: kEnableTimeExceptForMutex = 4, 29724: 29724: 29724: 29724: kEnableTimeAndCPUTimeExceptForMutex = 5, 29724: kEnableTime = 6, 29724: kOutOfBounds = 7 29724: }; 29724: 29724: 29724: void SetPerfLevel(PerfLevel level); 29724: 29724: 29724: PerfLevel GetPerfLevel(); 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_level_imp.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: extern thread_local PerfLevel perf_level; 29724: 29724: } 29724: # 8 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/map" 1 3 29724: # 58 "/usr/include/c++/14/map" 3 29724: 29724: # 59 "/usr/include/c++/14/map" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_tree.h" 1 3 29724: # 61 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: 29724: # 62 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: 29724: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 95 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: enum _Rb_tree_color { _S_red = false, _S_black = true }; 29724: 29724: struct _Rb_tree_node_base 29724: { 29724: typedef _Rb_tree_node_base* _Base_ptr; 29724: typedef const _Rb_tree_node_base* _Const_Base_ptr; 29724: 29724: _Rb_tree_color _M_color; 29724: _Base_ptr _M_parent; 29724: _Base_ptr _M_left; 29724: _Base_ptr _M_right; 29724: 29724: static _Base_ptr 29724: _S_minimum(_Base_ptr __x) noexcept 29724: { 29724: while (__x->_M_left != 0) __x = __x->_M_left; 29724: return __x; 29724: } 29724: 29724: static _Const_Base_ptr 29724: _S_minimum(_Const_Base_ptr __x) noexcept 29724: { 29724: while (__x->_M_left != 0) __x = __x->_M_left; 29724: return __x; 29724: } 29724: 29724: static _Base_ptr 29724: _S_maximum(_Base_ptr __x) noexcept 29724: { 29724: while (__x->_M_right != 0) __x = __x->_M_right; 29724: return __x; 29724: } 29724: 29724: static _Const_Base_ptr 29724: _S_maximum(_Const_Base_ptr __x) noexcept 29724: { 29724: while (__x->_M_right != 0) __x = __x->_M_right; 29724: return __x; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Rb_tree_key_compare 29724: { 29724: _Key_compare _M_key_compare; 29724: 29724: _Rb_tree_key_compare() 29724: noexcept(is_nothrow_default_constructible<_Key_compare>::value) 29724: 29724: : _M_key_compare() 29724: { } 29724: 29724: _Rb_tree_key_compare(const _Key_compare& __comp) 29724: : _M_key_compare(__comp) 29724: { } 29724: 29724: 29724: 29724: _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; 29724: 29724: _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) 29724: noexcept(is_nothrow_copy_constructible<_Key_compare>::value) 29724: : _M_key_compare(__x._M_key_compare) 29724: { } 29724: 29724: }; 29724: 29724: 29724: struct _Rb_tree_header 29724: { 29724: _Rb_tree_node_base _M_header; 29724: size_t _M_node_count; 29724: 29724: _Rb_tree_header() noexcept 29724: { 29724: _M_header._M_color = _S_red; 29724: _M_reset(); 29724: } 29724: 29724: 29724: _Rb_tree_header(_Rb_tree_header&& __x) noexcept 29724: { 29724: if (__x._M_header._M_parent != nullptr) 29724: _M_move_data(__x); 29724: else 29724: { 29724: _M_header._M_color = _S_red; 29724: _M_reset(); 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_move_data(_Rb_tree_header& __from) 29724: { 29724: _M_header._M_color = __from._M_header._M_color; 29724: _M_header._M_parent = __from._M_header._M_parent; 29724: _M_header._M_left = __from._M_header._M_left; 29724: _M_header._M_right = __from._M_header._M_right; 29724: _M_header._M_parent->_M_parent = &_M_header; 29724: _M_node_count = __from._M_node_count; 29724: 29724: __from._M_reset(); 29724: } 29724: 29724: void 29724: _M_reset() 29724: { 29724: _M_header._M_parent = 0; 29724: _M_header._M_left = &_M_header; 29724: _M_header._M_right = &_M_header; 29724: _M_node_count = 0; 29724: } 29724: }; 29724: 29724: template 29724: struct _Rb_tree_node : public _Rb_tree_node_base 29724: { 29724: typedef _Rb_tree_node<_Val>* _Link_type; 29724: # 227 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: __gnu_cxx::__aligned_membuf<_Val> _M_storage; 29724: 29724: _Val* 29724: _M_valptr() 29724: { return _M_storage._M_ptr(); } 29724: 29724: const _Val* 29724: _M_valptr() const 29724: { return _M_storage._M_ptr(); } 29724: 29724: }; 29724: 29724: __attribute__ ((__pure__)) _Rb_tree_node_base* 29724: _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); 29724: 29724: __attribute__ ((__pure__)) const _Rb_tree_node_base* 29724: _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); 29724: 29724: __attribute__ ((__pure__)) _Rb_tree_node_base* 29724: _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); 29724: 29724: __attribute__ ((__pure__)) const _Rb_tree_node_base* 29724: _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); 29724: 29724: template 29724: struct _Rb_tree_iterator 29724: { 29724: typedef _Tp value_type; 29724: typedef _Tp& reference; 29724: typedef _Tp* pointer; 29724: 29724: typedef bidirectional_iterator_tag iterator_category; 29724: typedef ptrdiff_t difference_type; 29724: 29724: typedef _Rb_tree_iterator<_Tp> _Self; 29724: typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; 29724: typedef _Rb_tree_node<_Tp>* _Link_type; 29724: 29724: _Rb_tree_iterator() noexcept 29724: : _M_node() { } 29724: 29724: explicit 29724: _Rb_tree_iterator(_Base_ptr __x) noexcept 29724: : _M_node(__x) { } 29724: 29724: reference 29724: operator*() const noexcept 29724: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 29724: 29724: pointer 29724: operator->() const noexcept 29724: { return static_cast<_Link_type> (_M_node)->_M_valptr(); } 29724: 29724: _Self& 29724: operator++() noexcept 29724: { 29724: _M_node = _Rb_tree_increment(_M_node); 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator++(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _Rb_tree_increment(_M_node); 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator--() noexcept 29724: { 29724: _M_node = _Rb_tree_decrement(_M_node); 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator--(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _Rb_tree_decrement(_M_node); 29724: return __tmp; 29724: } 29724: 29724: friend bool 29724: operator==(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node == __y._M_node; } 29724: 29724: 29724: friend bool 29724: operator!=(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node != __y._M_node; } 29724: 29724: 29724: _Base_ptr _M_node; 29724: }; 29724: 29724: template 29724: struct _Rb_tree_const_iterator 29724: { 29724: typedef _Tp value_type; 29724: typedef const _Tp& reference; 29724: typedef const _Tp* pointer; 29724: 29724: typedef _Rb_tree_iterator<_Tp> iterator; 29724: 29724: typedef bidirectional_iterator_tag iterator_category; 29724: typedef ptrdiff_t difference_type; 29724: 29724: typedef _Rb_tree_const_iterator<_Tp> _Self; 29724: typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; 29724: typedef const _Rb_tree_node<_Tp>* _Link_type; 29724: 29724: _Rb_tree_const_iterator() noexcept 29724: : _M_node() { } 29724: 29724: explicit 29724: _Rb_tree_const_iterator(_Base_ptr __x) noexcept 29724: : _M_node(__x) { } 29724: 29724: _Rb_tree_const_iterator(const iterator& __it) noexcept 29724: : _M_node(__it._M_node) { } 29724: 29724: iterator 29724: _M_const_cast() const noexcept 29724: { return iterator(const_cast(_M_node)); } 29724: 29724: reference 29724: operator*() const noexcept 29724: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 29724: 29724: pointer 29724: operator->() const noexcept 29724: { return static_cast<_Link_type>(_M_node)->_M_valptr(); } 29724: 29724: _Self& 29724: operator++() noexcept 29724: { 29724: _M_node = _Rb_tree_increment(_M_node); 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator++(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _Rb_tree_increment(_M_node); 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator--() noexcept 29724: { 29724: _M_node = _Rb_tree_decrement(_M_node); 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator--(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _Rb_tree_decrement(_M_node); 29724: return __tmp; 29724: } 29724: 29724: friend bool 29724: operator==(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node == __y._M_node; } 29724: 29724: 29724: friend bool 29724: operator!=(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node != __y._M_node; } 29724: 29724: 29724: _Base_ptr _M_node; 29724: }; 29724: 29724: __attribute__((__nonnull__)) 29724: void 29724: _Rb_tree_insert_and_rebalance(const bool __insert_left, 29724: _Rb_tree_node_base* __x, 29724: _Rb_tree_node_base* __p, 29724: _Rb_tree_node_base& __header) throw (); 29724: 29724: __attribute__((__nonnull__,__returns_nonnull__)) 29724: _Rb_tree_node_base* 29724: _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, 29724: _Rb_tree_node_base& __header) throw (); 29724: 29724: 29724: template 29724: struct _Rb_tree_merge_helper { }; 29724: 29724: 29724: template > 29724: class _Rb_tree 29724: { 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Rb_tree_node<_Val> >::other _Node_allocator; 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; 29724: 29724: protected: 29724: typedef _Rb_tree_node_base* _Base_ptr; 29724: typedef const _Rb_tree_node_base* _Const_Base_ptr; 29724: typedef _Rb_tree_node<_Val>* _Link_type; 29724: typedef const _Rb_tree_node<_Val>* _Const_Link_type; 29724: 29724: private: 29724: 29724: 29724: struct _Reuse_or_alloc_node 29724: { 29724: _Reuse_or_alloc_node(_Rb_tree& __t) 29724: : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) 29724: { 29724: if (_M_root) 29724: { 29724: _M_root->_M_parent = 0; 29724: 29724: if (_M_nodes->_M_left) 29724: _M_nodes = _M_nodes->_M_left; 29724: } 29724: else 29724: _M_nodes = 0; 29724: } 29724: 29724: 29724: _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; 29724: 29724: 29724: ~_Reuse_or_alloc_node() 29724: { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } 29724: 29724: template 29724: _Link_type 29724: operator()(_Arg&& __arg) 29724: { 29724: _Link_type __node = static_cast<_Link_type>(_M_extract()); 29724: if (__node) 29724: { 29724: _M_t._M_destroy_node(__node); 29724: _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); 29724: return __node; 29724: } 29724: 29724: return _M_t._M_create_node(std::forward<_Arg>(__arg)); 29724: } 29724: 29724: private: 29724: _Base_ptr 29724: _M_extract() 29724: { 29724: if (!_M_nodes) 29724: return _M_nodes; 29724: 29724: _Base_ptr __node = _M_nodes; 29724: _M_nodes = _M_nodes->_M_parent; 29724: if (_M_nodes) 29724: { 29724: if (_M_nodes->_M_right == __node) 29724: { 29724: _M_nodes->_M_right = 0; 29724: 29724: if (_M_nodes->_M_left) 29724: { 29724: _M_nodes = _M_nodes->_M_left; 29724: 29724: while (_M_nodes->_M_right) 29724: _M_nodes = _M_nodes->_M_right; 29724: 29724: if (_M_nodes->_M_left) 29724: _M_nodes = _M_nodes->_M_left; 29724: } 29724: } 29724: else 29724: _M_nodes->_M_left = 0; 29724: } 29724: else 29724: _M_root = 0; 29724: 29724: return __node; 29724: } 29724: 29724: _Base_ptr _M_root; 29724: _Base_ptr _M_nodes; 29724: _Rb_tree& _M_t; 29724: }; 29724: 29724: 29724: 29724: struct _Alloc_node 29724: { 29724: _Alloc_node(_Rb_tree& __t) 29724: : _M_t(__t) { } 29724: 29724: template 29724: _Link_type 29724: operator()(_Arg&& __arg) const 29724: { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } 29724: 29724: private: 29724: _Rb_tree& _M_t; 29724: }; 29724: 29724: public: 29724: typedef _Key key_type; 29724: typedef _Val value_type; 29724: typedef value_type* pointer; 29724: typedef const value_type* const_pointer; 29724: typedef value_type& reference; 29724: typedef const value_type& const_reference; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Alloc allocator_type; 29724: 29724: _Node_allocator& 29724: _M_get_Node_allocator() noexcept 29724: { return this->_M_impl; } 29724: 29724: const _Node_allocator& 29724: _M_get_Node_allocator() const noexcept 29724: { return this->_M_impl; } 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_get_Node_allocator()); } 29724: 29724: protected: 29724: _Link_type 29724: _M_get_node() 29724: { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } 29724: 29724: void 29724: _M_put_node(_Link_type __p) noexcept 29724: { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } 29724: # 586 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: template 29724: void 29724: _M_construct_node(_Link_type __node, _Args&&... __args) 29724: { 29724: try 29724: { 29724: ::new(__node) _Rb_tree_node<_Val>; 29724: _Alloc_traits::construct(_M_get_Node_allocator(), 29724: __node->_M_valptr(), 29724: std::forward<_Args>(__args)...); 29724: } 29724: catch(...) 29724: { 29724: __node->~_Rb_tree_node<_Val>(); 29724: _M_put_node(__node); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: _Link_type 29724: _M_create_node(_Args&&... __args) 29724: { 29724: _Link_type __tmp = _M_get_node(); 29724: _M_construct_node(__tmp, std::forward<_Args>(__args)...); 29724: return __tmp; 29724: } 29724: 29724: 29724: void 29724: _M_destroy_node(_Link_type __p) noexcept 29724: { 29724: 29724: 29724: 29724: _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); 29724: __p->~_Rb_tree_node<_Val>(); 29724: 29724: } 29724: 29724: void 29724: _M_drop_node(_Link_type __p) noexcept 29724: { 29724: _M_destroy_node(__p); 29724: _M_put_node(__p); 29724: } 29724: 29724: template 29724: _Link_type 29724: _M_clone_node(_Link_type __x, _NodeGen& __node_gen) 29724: { 29724: 29724: using _Vp = __conditional_t<_MoveValue, 29724: value_type&&, 29724: const value_type&>; 29724: 29724: _Link_type __tmp 29724: = __node_gen(std::forward<_Vp>(*__x->_M_valptr())); 29724: __tmp->_M_color = __x->_M_color; 29724: __tmp->_M_left = 0; 29724: __tmp->_M_right = 0; 29724: return __tmp; 29724: } 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: struct _Rb_tree_impl 29724: : public _Node_allocator 29724: , public _Rb_tree_key_compare<_Key_compare> 29724: , public _Rb_tree_header 29724: { 29724: typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; 29724: 29724: _Rb_tree_impl() 29724: noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) 29724: 29724: 29724: : _Node_allocator() 29724: { } 29724: 29724: _Rb_tree_impl(const _Rb_tree_impl& __x) 29724: : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) 29724: , _Base_key_compare(__x._M_key_compare) 29724: , _Rb_tree_header() 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: _Rb_tree_impl(_Rb_tree_impl&&) 29724: noexcept( is_nothrow_move_constructible<_Base_key_compare>::value ) 29724: = default; 29724: 29724: explicit 29724: _Rb_tree_impl(_Node_allocator&& __a) 29724: : _Node_allocator(std::move(__a)) 29724: { } 29724: 29724: _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) 29724: : _Node_allocator(std::move(__a)), 29724: _Base_key_compare(std::move(__x)), 29724: _Rb_tree_header(std::move(__x)) 29724: { } 29724: 29724: _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) 29724: : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) 29724: { } 29724: 29724: }; 29724: 29724: _Rb_tree_impl<_Compare> _M_impl; 29724: 29724: protected: 29724: _Base_ptr& 29724: _M_root() noexcept 29724: { return this->_M_impl._M_header._M_parent; } 29724: 29724: _Const_Base_ptr 29724: _M_root() const noexcept 29724: { return this->_M_impl._M_header._M_parent; } 29724: 29724: _Base_ptr& 29724: _M_leftmost() noexcept 29724: { return this->_M_impl._M_header._M_left; } 29724: 29724: _Const_Base_ptr 29724: _M_leftmost() const noexcept 29724: { return this->_M_impl._M_header._M_left; } 29724: 29724: _Base_ptr& 29724: _M_rightmost() noexcept 29724: { return this->_M_impl._M_header._M_right; } 29724: 29724: _Const_Base_ptr 29724: _M_rightmost() const noexcept 29724: { return this->_M_impl._M_header._M_right; } 29724: 29724: _Link_type 29724: _M_mbegin() const noexcept 29724: { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } 29724: 29724: _Link_type 29724: _M_begin() noexcept 29724: { return _M_mbegin(); } 29724: 29724: _Const_Link_type 29724: _M_begin() const noexcept 29724: { 29724: return static_cast<_Const_Link_type> 29724: (this->_M_impl._M_header._M_parent); 29724: } 29724: 29724: _Base_ptr 29724: _M_end() noexcept 29724: { return &this->_M_impl._M_header; } 29724: 29724: _Const_Base_ptr 29724: _M_end() const noexcept 29724: { return &this->_M_impl._M_header; } 29724: 29724: static const _Key& 29724: _S_key(_Const_Link_type __x) 29724: { 29724: 29724: 29724: 29724: static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, 29724: "comparison object must be invocable " 29724: "with two arguments of key type"); 29724: 29724: 29724: 29724: if constexpr (__is_invocable<_Compare&, const _Key&, const _Key&>{}) 29724: static_assert( 29724: is_invocable_v, 29724: "comparison object must be invocable as const"); 29724: 29724: 29724: 29724: return _KeyOfValue()(*__x->_M_valptr()); 29724: } 29724: 29724: static _Link_type 29724: _S_left(_Base_ptr __x) noexcept 29724: { return static_cast<_Link_type>(__x->_M_left); } 29724: 29724: static _Const_Link_type 29724: _S_left(_Const_Base_ptr __x) noexcept 29724: { return static_cast<_Const_Link_type>(__x->_M_left); } 29724: 29724: static _Link_type 29724: _S_right(_Base_ptr __x) noexcept 29724: { return static_cast<_Link_type>(__x->_M_right); } 29724: 29724: static _Const_Link_type 29724: _S_right(_Const_Base_ptr __x) noexcept 29724: { return static_cast<_Const_Link_type>(__x->_M_right); } 29724: 29724: static const _Key& 29724: _S_key(_Const_Base_ptr __x) 29724: { return _S_key(static_cast<_Const_Link_type>(__x)); } 29724: 29724: static _Base_ptr 29724: _S_minimum(_Base_ptr __x) noexcept 29724: { return _Rb_tree_node_base::_S_minimum(__x); } 29724: 29724: static _Const_Base_ptr 29724: _S_minimum(_Const_Base_ptr __x) noexcept 29724: { return _Rb_tree_node_base::_S_minimum(__x); } 29724: 29724: static _Base_ptr 29724: _S_maximum(_Base_ptr __x) noexcept 29724: { return _Rb_tree_node_base::_S_maximum(__x); } 29724: 29724: static _Const_Base_ptr 29724: _S_maximum(_Const_Base_ptr __x) noexcept 29724: { return _Rb_tree_node_base::_S_maximum(__x); } 29724: 29724: public: 29724: typedef _Rb_tree_iterator iterator; 29724: typedef _Rb_tree_const_iterator const_iterator; 29724: 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: 29724: 29724: using node_type = _Node_handle<_Key, _Val, _Node_allocator>; 29724: using insert_return_type = _Node_insert_return< 29724: __conditional_t, const_iterator, iterator>, 29724: node_type>; 29724: 29724: 29724: pair<_Base_ptr, _Base_ptr> 29724: _M_get_insert_unique_pos(const key_type& __k); 29724: 29724: pair<_Base_ptr, _Base_ptr> 29724: _M_get_insert_equal_pos(const key_type& __k); 29724: 29724: pair<_Base_ptr, _Base_ptr> 29724: _M_get_insert_hint_unique_pos(const_iterator __pos, 29724: const key_type& __k); 29724: 29724: pair<_Base_ptr, _Base_ptr> 29724: _M_get_insert_hint_equal_pos(const_iterator __pos, 29724: const key_type& __k); 29724: 29724: private: 29724: 29724: template 29724: iterator 29724: _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); 29724: 29724: iterator 29724: _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); 29724: 29724: template 29724: iterator 29724: _M_insert_lower(_Base_ptr __y, _Arg&& __v); 29724: 29724: template 29724: iterator 29724: _M_insert_equal_lower(_Arg&& __x); 29724: 29724: iterator 29724: _M_insert_lower_node(_Base_ptr __p, _Link_type __z); 29724: 29724: iterator 29724: _M_insert_equal_lower_node(_Link_type __z); 29724: # 877 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: enum { __as_lvalue, __as_rvalue }; 29724: 29724: template 29724: _Link_type 29724: _M_copy(_Link_type, _Base_ptr, _NodeGen&); 29724: 29724: template 29724: _Link_type 29724: _M_copy(const _Rb_tree& __x, _NodeGen& __gen) 29724: { 29724: _Link_type __root = 29724: _M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen); 29724: _M_leftmost() = _S_minimum(__root); 29724: _M_rightmost() = _S_maximum(__root); 29724: _M_impl._M_node_count = __x._M_impl._M_node_count; 29724: return __root; 29724: } 29724: 29724: _Link_type 29724: _M_copy(const _Rb_tree& __x) 29724: { 29724: _Alloc_node __an(*this); 29724: return _M_copy<__as_lvalue>(__x, __an); 29724: } 29724: 29724: void 29724: _M_erase(_Link_type __x); 29724: 29724: iterator 29724: _M_lower_bound(_Link_type __x, _Base_ptr __y, 29724: const _Key& __k); 29724: 29724: const_iterator 29724: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29724: const _Key& __k) const; 29724: 29724: iterator 29724: _M_upper_bound(_Link_type __x, _Base_ptr __y, 29724: const _Key& __k); 29724: 29724: const_iterator 29724: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29724: const _Key& __k) const; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: _Rb_tree() = default; 29724: 29724: 29724: _Rb_tree(const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_impl(__comp, _Node_allocator(__a)) { } 29724: 29724: _Rb_tree(const _Rb_tree& __x) 29724: : _M_impl(__x._M_impl) 29724: { 29724: if (__x._M_root() != 0) 29724: _M_root() = _M_copy(__x); 29724: } 29724: 29724: 29724: _Rb_tree(const allocator_type& __a) 29724: : _M_impl(_Node_allocator(__a)) 29724: { } 29724: 29724: _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) 29724: : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) 29724: { 29724: if (__x._M_root() != nullptr) 29724: _M_root() = _M_copy(__x); 29724: } 29724: 29724: _Rb_tree(_Rb_tree&&) = default; 29724: 29724: _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) 29724: : _Rb_tree(std::move(__x), _Node_allocator(__a)) 29724: { } 29724: 29724: private: 29724: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) 29724: noexcept(is_nothrow_default_constructible<_Compare>::value) 29724: : _M_impl(std::move(__x._M_impl), std::move(__a)) 29724: { } 29724: 29724: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) 29724: : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) 29724: { 29724: if (__x._M_root() != nullptr) 29724: _M_move_data(__x, false_type{}); 29724: } 29724: 29724: public: 29724: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) 29724: noexcept( noexcept( 29724: _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), 29724: std::declval())) ) 29724: : _Rb_tree(std::move(__x), std::move(__a), 29724: typename _Alloc_traits::is_always_equal{}) 29724: { } 29724: 29724: 29724: ~_Rb_tree() noexcept 29724: { _M_erase(_M_begin()); } 29724: 29724: _Rb_tree& 29724: operator=(const _Rb_tree& __x); 29724: 29724: 29724: _Compare 29724: key_comp() const 29724: { return _M_impl._M_key_compare; } 29724: 29724: iterator 29724: begin() noexcept 29724: { return iterator(this->_M_impl._M_header._M_left); } 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(this->_M_impl._M_header._M_left); } 29724: 29724: iterator 29724: end() noexcept 29724: { return iterator(&this->_M_impl._M_header); } 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return const_iterator(&this->_M_impl._M_header); } 29724: 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(end()); } 29724: 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(begin()); } 29724: 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_impl._M_node_count == 0; } 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_impl._M_node_count; } 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _Alloc_traits::max_size(_M_get_Node_allocator()); } 29724: 29724: void 29724: swap(_Rb_tree& __t) 29724: noexcept(__is_nothrow_swappable<_Compare>::value); 29724: 29724: 29724: 29724: template 29724: pair 29724: _M_insert_unique(_Arg&& __x); 29724: 29724: template 29724: iterator 29724: _M_insert_equal(_Arg&& __x); 29724: 29724: template 29724: iterator 29724: _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); 29724: 29724: template 29724: iterator 29724: _M_insert_unique_(const_iterator __pos, _Arg&& __x) 29724: { 29724: _Alloc_node __an(*this); 29724: return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); 29724: } 29724: 29724: template 29724: iterator 29724: _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); 29724: 29724: template 29724: iterator 29724: _M_insert_equal_(const_iterator __pos, _Arg&& __x) 29724: { 29724: _Alloc_node __an(*this); 29724: return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); 29724: } 29724: 29724: template 29724: pair 29724: _M_emplace_unique(_Args&&... __args); 29724: 29724: template 29724: iterator 29724: _M_emplace_equal(_Args&&... __args); 29724: 29724: template 29724: iterator 29724: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); 29724: 29724: template 29724: iterator 29724: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); 29724: 29724: template 29724: using __same_value_type 29724: = is_same::value_type>; 29724: 29724: template 29724: __enable_if_t<__same_value_type<_InputIterator>::value> 29724: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 29724: { 29724: _Alloc_node __an(*this); 29724: for (; __first != __last; ++__first) 29724: _M_insert_unique_(end(), *__first, __an); 29724: } 29724: 29724: template 29724: __enable_if_t::value> 29724: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 29724: { 29724: for (; __first != __last; ++__first) 29724: _M_emplace_unique(*__first); 29724: } 29724: 29724: template 29724: __enable_if_t<__same_value_type<_InputIterator>::value> 29724: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 29724: { 29724: _Alloc_node __an(*this); 29724: for (; __first != __last; ++__first) 29724: _M_insert_equal_(end(), *__first, __an); 29724: } 29724: 29724: template 29724: __enable_if_t::value> 29724: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 29724: { 29724: for (; __first != __last; ++__first) 29724: _M_emplace_equal(*__first); 29724: } 29724: # 1176 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: private: 29724: void 29724: _M_erase_aux(const_iterator __position); 29724: 29724: void 29724: _M_erase_aux(const_iterator __first, const_iterator __last); 29724: 29724: public: 29724: 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __position) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__position != end())) std::__glibcxx_assert_fail(); } while (false); 29724: const_iterator __result = __position; 29724: ++__result; 29724: _M_erase_aux(__position); 29724: return __result._M_const_cast(); 29724: } 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(iterator __position) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__position != end())) std::__glibcxx_assert_fail(); } while (false); 29724: iterator __result = __position; 29724: ++__result; 29724: _M_erase_aux(__position); 29724: return __result; 29724: } 29724: # 1225 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: size_type 29724: erase(const key_type& __x); 29724: 29724: 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { 29724: _M_erase_aux(__first, __last); 29724: return __last._M_const_cast(); 29724: } 29724: # 1248 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: void 29724: clear() noexcept 29724: { 29724: _M_erase(_M_begin()); 29724: _M_impl._M_reset(); 29724: } 29724: 29724: 29724: iterator 29724: find(const key_type& __k); 29724: 29724: const_iterator 29724: find(const key_type& __k) const; 29724: 29724: size_type 29724: count(const key_type& __k) const; 29724: 29724: iterator 29724: lower_bound(const key_type& __k) 29724: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 29724: 29724: const_iterator 29724: lower_bound(const key_type& __k) const 29724: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 29724: 29724: iterator 29724: upper_bound(const key_type& __k) 29724: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 29724: 29724: const_iterator 29724: upper_bound(const key_type& __k) const 29724: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 29724: 29724: pair 29724: equal_range(const key_type& __k); 29724: 29724: pair 29724: equal_range(const key_type& __k) const; 29724: 29724: 29724: template> 29724: iterator 29724: _M_find_tr(const _Kt& __k) 29724: { 29724: const _Rb_tree* __const_this = this; 29724: return __const_this->_M_find_tr(__k)._M_const_cast(); 29724: } 29724: 29724: template> 29724: const_iterator 29724: _M_find_tr(const _Kt& __k) const 29724: { 29724: auto __j = _M_lower_bound_tr(__k); 29724: if (__j != end() && _M_impl._M_key_compare(__k, _S_key(__j._M_node))) 29724: __j = end(); 29724: return __j; 29724: } 29724: 29724: template> 29724: size_type 29724: _M_count_tr(const _Kt& __k) const 29724: { 29724: auto __p = _M_equal_range_tr(__k); 29724: return std::distance(__p.first, __p.second); 29724: } 29724: 29724: template> 29724: iterator 29724: _M_lower_bound_tr(const _Kt& __k) 29724: { 29724: const _Rb_tree* __const_this = this; 29724: return __const_this->_M_lower_bound_tr(__k)._M_const_cast(); 29724: } 29724: 29724: template> 29724: const_iterator 29724: _M_lower_bound_tr(const _Kt& __k) const 29724: { 29724: auto __x = _M_begin(); 29724: auto __y = _M_end(); 29724: while (__x != 0) 29724: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29724: { 29724: __y = __x; 29724: __x = _S_left(__x); 29724: } 29724: else 29724: __x = _S_right(__x); 29724: return const_iterator(__y); 29724: } 29724: 29724: template> 29724: iterator 29724: _M_upper_bound_tr(const _Kt& __k) 29724: { 29724: const _Rb_tree* __const_this = this; 29724: return __const_this->_M_upper_bound_tr(__k)._M_const_cast(); 29724: } 29724: 29724: template> 29724: const_iterator 29724: _M_upper_bound_tr(const _Kt& __k) const 29724: { 29724: auto __x = _M_begin(); 29724: auto __y = _M_end(); 29724: while (__x != 0) 29724: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29724: { 29724: __y = __x; 29724: __x = _S_left(__x); 29724: } 29724: else 29724: __x = _S_right(__x); 29724: return const_iterator(__y); 29724: } 29724: 29724: template> 29724: pair 29724: _M_equal_range_tr(const _Kt& __k) 29724: { 29724: const _Rb_tree* __const_this = this; 29724: auto __ret = __const_this->_M_equal_range_tr(__k); 29724: return { __ret.first._M_const_cast(), __ret.second._M_const_cast() }; 29724: } 29724: 29724: template> 29724: pair 29724: _M_equal_range_tr(const _Kt& __k) const 29724: { 29724: auto __low = _M_lower_bound_tr(__k); 29724: auto __high = __low; 29724: auto& __cmp = _M_impl._M_key_compare; 29724: while (__high != end() && !__cmp(__k, _S_key(__high._M_node))) 29724: ++__high; 29724: return { __low, __high }; 29724: } 29724: 29724: 29724: 29724: bool 29724: __rb_verify() const; 29724: 29724: 29724: _Rb_tree& 29724: operator=(_Rb_tree&&) 29724: noexcept(_Alloc_traits::_S_nothrow_move() 29724: && is_nothrow_move_assignable<_Compare>::value); 29724: 29724: template 29724: void 29724: _M_assign_unique(_Iterator, _Iterator); 29724: 29724: template 29724: void 29724: _M_assign_equal(_Iterator, _Iterator); 29724: 29724: private: 29724: 29724: void 29724: _M_move_data(_Rb_tree& __x, true_type) 29724: { _M_impl._M_move_data(__x._M_impl); } 29724: 29724: 29724: 29724: void 29724: _M_move_data(_Rb_tree&, false_type); 29724: 29724: 29724: void 29724: _M_move_assign(_Rb_tree&, true_type); 29724: 29724: 29724: 29724: void 29724: _M_move_assign(_Rb_tree&, false_type); 29724: 29724: 29724: 29724: public: 29724: 29724: insert_return_type 29724: _M_reinsert_node_unique(node_type&& __nh) 29724: { 29724: insert_return_type __ret; 29724: if (__nh.empty()) 29724: __ret.position = end(); 29724: else 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: auto __res = _M_get_insert_unique_pos(__nh._M_key()); 29724: if (__res.second) 29724: { 29724: __ret.position 29724: = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29724: __nh.release(); 29724: __ret.inserted = true; 29724: } 29724: else 29724: { 29724: __ret.node = std::move(__nh); 29724: __ret.position = iterator(__res.first); 29724: __ret.inserted = false; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: iterator 29724: _M_reinsert_node_equal(node_type&& __nh) 29724: { 29724: iterator __ret; 29724: if (__nh.empty()) 29724: __ret = end(); 29724: else 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: auto __res = _M_get_insert_equal_pos(__nh._M_key()); 29724: if (__res.second) 29724: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29724: else 29724: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 29724: __nh.release(); 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: iterator 29724: _M_reinsert_node_hint_unique(const_iterator __hint, node_type&& __nh) 29724: { 29724: iterator __ret; 29724: if (__nh.empty()) 29724: __ret = end(); 29724: else 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: auto __res = _M_get_insert_hint_unique_pos(__hint, __nh._M_key()); 29724: if (__res.second) 29724: { 29724: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29724: __nh.release(); 29724: } 29724: else 29724: __ret = iterator(__res.first); 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: iterator 29724: _M_reinsert_node_hint_equal(const_iterator __hint, node_type&& __nh) 29724: { 29724: iterator __ret; 29724: if (__nh.empty()) 29724: __ret = end(); 29724: else 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: auto __res = _M_get_insert_hint_equal_pos(__hint, __nh._M_key()); 29724: if (__res.second) 29724: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29724: else 29724: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 29724: __nh.release(); 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: auto __ptr = _Rb_tree_rebalance_for_erase( 29724: __pos._M_const_cast()._M_node, _M_impl._M_header); 29724: --_M_impl._M_node_count; 29724: return { static_cast<_Link_type>(__ptr), _M_get_Node_allocator() }; 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __k) 29724: { 29724: node_type __nh; 29724: auto __pos = find(__k); 29724: if (__pos != end()) 29724: __nh = extract(const_iterator(__pos)); 29724: return __nh; 29724: } 29724: 29724: template 29724: using _Compatible_tree 29724: = _Rb_tree<_Key, _Val, _KeyOfValue, _Compare2, _Alloc>; 29724: 29724: template 29724: friend struct _Rb_tree_merge_helper; 29724: 29724: 29724: template 29724: void 29724: _M_merge_unique(_Compatible_tree<_Compare2>& __src) noexcept 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 29724: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 29724: { 29724: auto __pos = __i++; 29724: auto __res = _M_get_insert_unique_pos(_KeyOfValue()(*__pos)); 29724: if (__res.second) 29724: { 29724: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 29724: auto __ptr = _Rb_tree_rebalance_for_erase( 29724: __pos._M_node, __src_impl._M_header); 29724: --__src_impl._M_node_count; 29724: _M_insert_node(__res.first, __res.second, 29724: static_cast<_Link_type>(__ptr)); 29724: } 29724: } 29724: } 29724: 29724: 29724: template 29724: void 29724: _M_merge_equal(_Compatible_tree<_Compare2>& __src) noexcept 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 29724: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 29724: { 29724: auto __pos = __i++; 29724: auto __res = _M_get_insert_equal_pos(_KeyOfValue()(*__pos)); 29724: if (__res.second) 29724: { 29724: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 29724: auto __ptr = _Rb_tree_rebalance_for_erase( 29724: __pos._M_node, __src_impl._M_header); 29724: --__src_impl._M_node_count; 29724: _M_insert_node(__res.first, __res.second, 29724: static_cast<_Link_type>(__ptr)); 29724: } 29724: } 29724: } 29724: 29724: 29724: friend bool 29724: operator==(const _Rb_tree& __x, const _Rb_tree& __y) 29724: { 29724: return __x.size() == __y.size() 29724: && std::equal(__x.begin(), __x.end(), __y.begin()); 29724: } 29724: # 1617 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: friend bool 29724: operator<(const _Rb_tree& __x, const _Rb_tree& __y) 29724: { 29724: return std::lexicographical_compare(__x.begin(), __x.end(), 29724: __y.begin(), __y.end()); 29724: } 29724: 29724: 29724: private: 29724: 29724: 29724: struct _Auto_node 29724: { 29724: template 29724: _Auto_node(_Rb_tree& __t, _Args&&... __args) 29724: : _M_t(__t), 29724: _M_node(__t._M_create_node(std::forward<_Args>(__args)...)) 29724: { } 29724: 29724: ~_Auto_node() 29724: { 29724: if (_M_node) 29724: _M_t._M_drop_node(_M_node); 29724: } 29724: 29724: _Auto_node(_Auto_node&& __n) 29724: : _M_t(__n._M_t), _M_node(__n._M_node) 29724: { __n._M_node = nullptr; } 29724: 29724: const _Key& 29724: _M_key() const 29724: { return _S_key(_M_node); } 29724: 29724: iterator 29724: _M_insert(pair<_Base_ptr, _Base_ptr> __p) 29724: { 29724: auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node); 29724: _M_node = nullptr; 29724: return __it; 29724: } 29724: 29724: iterator 29724: _M_insert_equal_lower() 29724: { 29724: auto __it = _M_t._M_insert_equal_lower_node(_M_node); 29724: _M_node = nullptr; 29724: return __it; 29724: } 29724: 29724: _Rb_tree& _M_t; 29724: _Link_type _M_node; 29724: }; 29724: 29724: }; 29724: 29724: template 29724: inline void 29724: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_move_data(_Rb_tree& __x, false_type) 29724: { 29724: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 29724: _M_move_data(__x, true_type()); 29724: else 29724: { 29724: constexpr bool __move = !__move_if_noexcept_cond::value; 29724: _Alloc_node __an(*this); 29724: _M_root() = _M_copy<__move>(__x, __an); 29724: if constexpr (__move) 29724: __x.clear(); 29724: } 29724: } 29724: 29724: template 29724: inline void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_move_assign(_Rb_tree& __x, true_type) 29724: { 29724: clear(); 29724: if (__x._M_root() != nullptr) 29724: _M_move_data(__x, true_type()); 29724: std::__alloc_on_move(_M_get_Node_allocator(), 29724: __x._M_get_Node_allocator()); 29724: } 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_move_assign(_Rb_tree& __x, false_type) 29724: { 29724: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 29724: return _M_move_assign(__x, true_type{}); 29724: 29724: 29724: 29724: _Reuse_or_alloc_node __roan(*this); 29724: _M_impl._M_reset(); 29724: if (__x._M_root() != nullptr) 29724: { 29724: _M_root() = _M_copy<__as_rvalue>(__x, __roan); 29724: __x.clear(); 29724: } 29724: } 29724: 29724: template 29724: inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: operator=(_Rb_tree&& __x) 29724: noexcept(_Alloc_traits::_S_nothrow_move() 29724: && is_nothrow_move_assignable<_Compare>::value) 29724: { 29724: _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); 29724: _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); 29724: return *this; 29724: } 29724: 29724: template 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_assign_unique(_Iterator __first, _Iterator __last) 29724: { 29724: _Reuse_or_alloc_node __roan(*this); 29724: _M_impl._M_reset(); 29724: for (; __first != __last; ++__first) 29724: _M_insert_unique_(end(), *__first, __roan); 29724: } 29724: 29724: template 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_assign_equal(_Iterator __first, _Iterator __last) 29724: { 29724: _Reuse_or_alloc_node __roan(*this); 29724: _M_impl._M_reset(); 29724: for (; __first != __last; ++__first) 29724: _M_insert_equal_(end(), *__first, __roan); 29724: } 29724: 29724: 29724: template 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: operator=(const _Rb_tree& __x) 29724: { 29724: if (this != std::__addressof(__x)) 29724: { 29724: 29724: 29724: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: auto& __this_alloc = this->_M_get_Node_allocator(); 29724: auto& __that_alloc = __x._M_get_Node_allocator(); 29724: if (!_Alloc_traits::_S_always_equal() 29724: && __this_alloc != __that_alloc) 29724: { 29724: 29724: 29724: clear(); 29724: std::__alloc_on_copy(__this_alloc, __that_alloc); 29724: } 29724: } 29724: 29724: 29724: _Reuse_or_alloc_node __roan(*this); 29724: _M_impl._M_reset(); 29724: _M_impl._M_key_compare = __x._M_impl._M_key_compare; 29724: if (__x._M_root() != 0) 29724: _M_root() = _M_copy<__as_lvalue>(__x, __roan); 29724: } 29724: 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_(_Base_ptr __x, _Base_ptr __p, 29724: 29724: _Arg&& __v, 29724: 29724: 29724: 29724: _NodeGen& __node_gen) 29724: { 29724: bool __insert_left = (__x != 0 || __p == _M_end() 29724: || _M_impl._M_key_compare(_KeyOfValue()(__v), 29724: _S_key(__p))); 29724: 29724: _Link_type __z = __node_gen(std::forward<_Arg>(__v)); 29724: 29724: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29724: this->_M_impl._M_header); 29724: ++_M_impl._M_node_count; 29724: return iterator(__z); 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: 29724: _M_insert_lower(_Base_ptr __p, _Arg&& __v) 29724: 29724: 29724: 29724: { 29724: bool __insert_left = (__p == _M_end() 29724: || !_M_impl._M_key_compare(_S_key(__p), 29724: _KeyOfValue()(__v))); 29724: 29724: _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); 29724: 29724: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29724: this->_M_impl._M_header); 29724: ++_M_impl._M_node_count; 29724: return iterator(__z); 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: 29724: _M_insert_equal_lower(_Arg&& __v) 29724: 29724: 29724: 29724: { 29724: _Link_type __x = _M_begin(); 29724: _Base_ptr __y = _M_end(); 29724: while (__x != 0) 29724: { 29724: __y = __x; 29724: __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? 29724: _S_left(__x) : _S_right(__x); 29724: } 29724: return _M_insert_lower(__y, std::forward<_Arg>(__v)); 29724: } 29724: 29724: template 29724: template 29724: typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type 29724: _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: 29724: _M_copy(_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) 29724: { 29724: 29724: _Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen); 29724: __top->_M_parent = __p; 29724: 29724: try 29724: { 29724: if (__x->_M_right) 29724: __top->_M_right = 29724: _M_copy<_MoveValues>(_S_right(__x), __top, __node_gen); 29724: __p = __top; 29724: __x = _S_left(__x); 29724: 29724: while (__x != 0) 29724: { 29724: _Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen); 29724: __p->_M_left = __y; 29724: __y->_M_parent = __p; 29724: if (__x->_M_right) 29724: __y->_M_right = _M_copy<_MoveValues>(_S_right(__x), 29724: __y, __node_gen); 29724: __p = __y; 29724: __x = _S_left(__x); 29724: } 29724: } 29724: catch(...) 29724: { 29724: _M_erase(__top); 29724: throw; 29724: } 29724: return __top; 29724: } 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_erase(_Link_type __x) 29724: { 29724: 29724: while (__x != 0) 29724: { 29724: _M_erase(_S_right(__x)); 29724: _Link_type __y = _S_left(__x); 29724: _M_drop_node(__x); 29724: __x = __y; 29724: } 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_lower_bound(_Link_type __x, _Base_ptr __y, 29724: const _Key& __k) 29724: { 29724: while (__x != 0) 29724: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: __x = _S_right(__x); 29724: return iterator(__y); 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::const_iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29724: const _Key& __k) const 29724: { 29724: while (__x != 0) 29724: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: __x = _S_right(__x); 29724: return const_iterator(__y); 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_upper_bound(_Link_type __x, _Base_ptr __y, 29724: const _Key& __k) 29724: { 29724: while (__x != 0) 29724: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: __x = _S_right(__x); 29724: return iterator(__y); 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::const_iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29724: const _Key& __k) const 29724: { 29724: while (__x != 0) 29724: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: __x = _S_right(__x); 29724: return const_iterator(__y); 29724: } 29724: 29724: template 29724: pair::iterator, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::iterator> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: equal_range(const _Key& __k) 29724: { 29724: _Link_type __x = _M_begin(); 29724: _Base_ptr __y = _M_end(); 29724: while (__x != 0) 29724: { 29724: if (_M_impl._M_key_compare(_S_key(__x), __k)) 29724: __x = _S_right(__x); 29724: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: { 29724: _Link_type __xu(__x); 29724: _Base_ptr __yu(__y); 29724: __y = __x, __x = _S_left(__x); 29724: __xu = _S_right(__xu); 29724: return pair(_M_lower_bound(__x, __y, __k), 29724: _M_upper_bound(__xu, __yu, __k)); 29724: } 29724: } 29724: return pair(iterator(__y), 29724: iterator(__y)); 29724: } 29724: 29724: template 29724: pair::const_iterator, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::const_iterator> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: equal_range(const _Key& __k) const 29724: { 29724: _Const_Link_type __x = _M_begin(); 29724: _Const_Base_ptr __y = _M_end(); 29724: while (__x != 0) 29724: { 29724: if (_M_impl._M_key_compare(_S_key(__x), __k)) 29724: __x = _S_right(__x); 29724: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: { 29724: _Const_Link_type __xu(__x); 29724: _Const_Base_ptr __yu(__y); 29724: __y = __x, __x = _S_left(__x); 29724: __xu = _S_right(__xu); 29724: return pair(_M_lower_bound(__x, __y, __k), 29724: _M_upper_bound(__xu, __yu, __k)); 29724: } 29724: } 29724: return pair(const_iterator(__y), 29724: const_iterator(__y)); 29724: } 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: swap(_Rb_tree& __t) 29724: noexcept(__is_nothrow_swappable<_Compare>::value) 29724: { 29724: if (_M_root() == 0) 29724: { 29724: if (__t._M_root() != 0) 29724: _M_impl._M_move_data(__t._M_impl); 29724: } 29724: else if (__t._M_root() == 0) 29724: __t._M_impl._M_move_data(_M_impl); 29724: else 29724: { 29724: std::swap(_M_root(),__t._M_root()); 29724: std::swap(_M_leftmost(),__t._M_leftmost()); 29724: std::swap(_M_rightmost(),__t._M_rightmost()); 29724: 29724: _M_root()->_M_parent = _M_end(); 29724: __t._M_root()->_M_parent = __t._M_end(); 29724: std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); 29724: } 29724: 29724: std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); 29724: 29724: _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), 29724: __t._M_get_Node_allocator()); 29724: } 29724: 29724: template 29724: pair::_Base_ptr, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::_Base_ptr> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_get_insert_unique_pos(const key_type& __k) 29724: { 29724: typedef pair<_Base_ptr, _Base_ptr> _Res; 29724: _Link_type __x = _M_begin(); 29724: _Base_ptr __y = _M_end(); 29724: bool __comp = true; 29724: while (__x != 0) 29724: { 29724: __y = __x; 29724: __comp = _M_impl._M_key_compare(__k, _S_key(__x)); 29724: __x = __comp ? _S_left(__x) : _S_right(__x); 29724: } 29724: iterator __j = iterator(__y); 29724: if (__comp) 29724: { 29724: if (__j == begin()) 29724: return _Res(__x, __y); 29724: else 29724: --__j; 29724: } 29724: if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) 29724: return _Res(__x, __y); 29724: return _Res(__j._M_node, 0); 29724: } 29724: 29724: template 29724: pair::_Base_ptr, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::_Base_ptr> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_get_insert_equal_pos(const key_type& __k) 29724: { 29724: typedef pair<_Base_ptr, _Base_ptr> _Res; 29724: _Link_type __x = _M_begin(); 29724: _Base_ptr __y = _M_end(); 29724: while (__x != 0) 29724: { 29724: __y = __x; 29724: __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? 29724: _S_left(__x) : _S_right(__x); 29724: } 29724: return _Res(__x, __y); 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: pair::iterator, bool> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: 29724: _M_insert_unique(_Arg&& __v) 29724: 29724: 29724: 29724: { 29724: typedef pair _Res; 29724: pair<_Base_ptr, _Base_ptr> __res 29724: = _M_get_insert_unique_pos(_KeyOfValue()(__v)); 29724: 29724: if (__res.second) 29724: { 29724: _Alloc_node __an(*this); 29724: return _Res(_M_insert_(__res.first, __res.second, 29724: std::forward<_Arg>(__v), __an), 29724: true); 29724: } 29724: 29724: return _Res(iterator(__res.first), false); 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: 29724: _M_insert_equal(_Arg&& __v) 29724: 29724: 29724: 29724: { 29724: pair<_Base_ptr, _Base_ptr> __res 29724: = _M_get_insert_equal_pos(_KeyOfValue()(__v)); 29724: _Alloc_node __an(*this); 29724: return _M_insert_(__res.first, __res.second, 29724: std::forward<_Arg>(__v), __an); 29724: } 29724: 29724: template 29724: pair::_Base_ptr, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::_Base_ptr> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_get_insert_hint_unique_pos(const_iterator __position, 29724: const key_type& __k) 29724: { 29724: iterator __pos = __position._M_const_cast(); 29724: typedef pair<_Base_ptr, _Base_ptr> _Res; 29724: 29724: 29724: if (__pos._M_node == _M_end()) 29724: { 29724: if (size() > 0 29724: && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) 29724: return _Res(0, _M_rightmost()); 29724: else 29724: return _M_get_insert_unique_pos(__k); 29724: } 29724: else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) 29724: { 29724: 29724: iterator __before = __pos; 29724: if (__pos._M_node == _M_leftmost()) 29724: return _Res(_M_leftmost(), _M_leftmost()); 29724: else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) 29724: { 29724: if (_S_right(__before._M_node) == 0) 29724: return _Res(0, __before._M_node); 29724: else 29724: return _Res(__pos._M_node, __pos._M_node); 29724: } 29724: else 29724: return _M_get_insert_unique_pos(__k); 29724: } 29724: else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 29724: { 29724: 29724: iterator __after = __pos; 29724: if (__pos._M_node == _M_rightmost()) 29724: return _Res(0, _M_rightmost()); 29724: else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) 29724: { 29724: if (_S_right(__pos._M_node) == 0) 29724: return _Res(0, __pos._M_node); 29724: else 29724: return _Res(__after._M_node, __after._M_node); 29724: } 29724: else 29724: return _M_get_insert_unique_pos(__k); 29724: } 29724: else 29724: 29724: return _Res(__pos._M_node, 0); 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_unique_(const_iterator __position, 29724: 29724: _Arg&& __v, 29724: 29724: 29724: 29724: _NodeGen& __node_gen) 29724: { 29724: pair<_Base_ptr, _Base_ptr> __res 29724: = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); 29724: 29724: if (__res.second) 29724: return _M_insert_(__res.first, __res.second, 29724: std::forward<_Arg>(__v), 29724: __node_gen); 29724: return iterator(__res.first); 29724: } 29724: 29724: template 29724: pair::_Base_ptr, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::_Base_ptr> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) 29724: { 29724: iterator __pos = __position._M_const_cast(); 29724: typedef pair<_Base_ptr, _Base_ptr> _Res; 29724: 29724: 29724: if (__pos._M_node == _M_end()) 29724: { 29724: if (size() > 0 29724: && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) 29724: return _Res(0, _M_rightmost()); 29724: else 29724: return _M_get_insert_equal_pos(__k); 29724: } 29724: else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 29724: { 29724: 29724: iterator __before = __pos; 29724: if (__pos._M_node == _M_leftmost()) 29724: return _Res(_M_leftmost(), _M_leftmost()); 29724: else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) 29724: { 29724: if (_S_right(__before._M_node) == 0) 29724: return _Res(0, __before._M_node); 29724: else 29724: return _Res(__pos._M_node, __pos._M_node); 29724: } 29724: else 29724: return _M_get_insert_equal_pos(__k); 29724: } 29724: else 29724: { 29724: 29724: iterator __after = __pos; 29724: if (__pos._M_node == _M_rightmost()) 29724: return _Res(0, _M_rightmost()); 29724: else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) 29724: { 29724: if (_S_right(__pos._M_node) == 0) 29724: return _Res(0, __pos._M_node); 29724: else 29724: return _Res(__after._M_node, __after._M_node); 29724: } 29724: else 29724: return _Res(0, 0); 29724: } 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_equal_(const_iterator __position, 29724: 29724: _Arg&& __v, 29724: 29724: 29724: 29724: _NodeGen& __node_gen) 29724: { 29724: pair<_Base_ptr, _Base_ptr> __res 29724: = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); 29724: 29724: if (__res.second) 29724: return _M_insert_(__res.first, __res.second, 29724: std::forward<_Arg>(__v), 29724: __node_gen); 29724: 29724: return _M_insert_equal_lower(std::forward<_Arg>(__v)); 29724: } 29724: 29724: 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) 29724: -> iterator 29724: { 29724: bool __insert_left = (__x != 0 || __p == _M_end() 29724: || _M_impl._M_key_compare(_S_key(__z), 29724: _S_key(__p))); 29724: 29724: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29724: this->_M_impl._M_header); 29724: ++_M_impl._M_node_count; 29724: return iterator(__z); 29724: } 29724: 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) 29724: -> iterator 29724: { 29724: bool __insert_left = (__p == _M_end() 29724: || !_M_impl._M_key_compare(_S_key(__p), 29724: _S_key(__z))); 29724: 29724: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29724: this->_M_impl._M_header); 29724: ++_M_impl._M_node_count; 29724: return iterator(__z); 29724: } 29724: 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_equal_lower_node(_Link_type __z) 29724: -> iterator 29724: { 29724: _Link_type __x = _M_begin(); 29724: _Base_ptr __y = _M_end(); 29724: while (__x != 0) 29724: { 29724: __y = __x; 29724: __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? 29724: _S_left(__x) : _S_right(__x); 29724: } 29724: return _M_insert_lower_node(__y, __z); 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_emplace_unique(_Args&&... __args) 29724: -> pair 29724: { 29724: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29724: auto __res = _M_get_insert_unique_pos(__z._M_key()); 29724: if (__res.second) 29724: return {__z._M_insert(__res), true}; 29724: return {iterator(__res.first), false}; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_emplace_equal(_Args&&... __args) 29724: -> iterator 29724: { 29724: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29724: auto __res = _M_get_insert_equal_pos(__z._M_key()); 29724: return __z._M_insert(__res); 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) 29724: -> iterator 29724: { 29724: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29724: auto __res = _M_get_insert_hint_unique_pos(__pos, __z._M_key()); 29724: if (__res.second) 29724: return __z._M_insert(__res); 29724: return iterator(__res.first); 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) 29724: -> iterator 29724: { 29724: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29724: auto __res = _M_get_insert_hint_equal_pos(__pos, __z._M_key()); 29724: if (__res.second) 29724: return __z._M_insert(__res); 29724: return __z._M_insert_equal_lower(); 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_erase_aux(const_iterator __position) 29724: { 29724: _Link_type __y = 29724: static_cast<_Link_type>(_Rb_tree_rebalance_for_erase 29724: (const_cast<_Base_ptr>(__position._M_node), 29724: this->_M_impl._M_header)); 29724: _M_drop_node(__y); 29724: --_M_impl._M_node_count; 29724: } 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_erase_aux(const_iterator __first, const_iterator __last) 29724: { 29724: if (__first == begin() && __last == end()) 29724: clear(); 29724: else 29724: while (__first != __last) 29724: _M_erase_aux(__first++); 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: erase(const _Key& __x) 29724: { 29724: pair __p = equal_range(__x); 29724: const size_type __old_size = size(); 29724: _M_erase_aux(__p.first, __p.second); 29724: return __old_size - size(); 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: find(const _Key& __k) 29724: { 29724: iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 29724: return (__j == end() 29724: || _M_impl._M_key_compare(__k, 29724: _S_key(__j._M_node))) ? end() : __j; 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::const_iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: find(const _Key& __k) const 29724: { 29724: const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 29724: return (__j == end() 29724: || _M_impl._M_key_compare(__k, 29724: _S_key(__j._M_node))) ? end() : __j; 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: count(const _Key& __k) const 29724: { 29724: pair __p = equal_range(__k); 29724: const size_type __n = std::distance(__p.first, __p.second); 29724: return __n; 29724: } 29724: 29724: __attribute__ ((__pure__)) unsigned int 29724: _Rb_tree_black_count(const _Rb_tree_node_base* __node, 29724: const _Rb_tree_node_base* __root) throw (); 29724: 29724: template 29724: bool 29724: _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const 29724: { 29724: if (_M_impl._M_node_count == 0 || begin() == end()) 29724: return _M_impl._M_node_count == 0 && begin() == end() 29724: && this->_M_impl._M_header._M_left == _M_end() 29724: && this->_M_impl._M_header._M_right == _M_end(); 29724: 29724: unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); 29724: for (const_iterator __it = begin(); __it != end(); ++__it) 29724: { 29724: _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); 29724: _Const_Link_type __L = _S_left(__x); 29724: _Const_Link_type __R = _S_right(__x); 29724: 29724: if (__x->_M_color == _S_red) 29724: if ((__L && __L->_M_color == _S_red) 29724: || (__R && __R->_M_color == _S_red)) 29724: return false; 29724: 29724: if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) 29724: return false; 29724: if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) 29724: return false; 29724: 29724: if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) 29724: return false; 29724: } 29724: 29724: if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) 29724: return false; 29724: if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) 29724: return false; 29724: return true; 29724: } 29724: 29724: 29724: 29724: template 29724: struct _Rb_tree_merge_helper<_Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>, 29724: _Cmp2> 29724: { 29724: private: 29724: friend class _Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_impl(_Rb_tree<_Key, _Val, _Sel, _Cmp2, _Alloc>& __tree) 29724: { return __tree._M_impl; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 63 "/usr/include/c++/14/map" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_map.h" 1 3 29724: # 66 "/usr/include/c++/14/bits/stl_map.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class multimap; 29724: # 100 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template , 29724: typename _Alloc = std::allocator > > 29724: class map 29724: { 29724: public: 29724: typedef _Key key_type; 29724: typedef _Tp mapped_type; 29724: typedef std::pair value_type; 29724: typedef _Compare key_compare; 29724: typedef _Alloc allocator_type; 29724: 29724: private: 29724: # 130 "/usr/include/c++/14/bits/stl_map.h" 3 29724: public: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: class value_compare 29724: : public std::binary_function 29724: { 29724: friend class map<_Key, _Tp, _Compare, _Alloc>; 29724: protected: 29724: _Compare comp; 29724: 29724: value_compare(_Compare __c) 29724: : comp(__c) { } 29724: 29724: public: 29724: bool operator()(const value_type& __x, const value_type& __y) const 29724: { return comp(__x.first, __y.first); } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: private: 29724: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind::other _Pair_alloc_type; 29724: 29724: typedef _Rb_tree, 29724: key_compare, _Pair_alloc_type> _Rep_type; 29724: 29724: 29724: _Rep_type _M_t; 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 29724: 29724: 29724: template> 29724: static constexpr bool __usable_key 29724: = __or_v, 29724: __and_, is_scalar<_Key>>>; 29724: 29724: 29724: public: 29724: 29724: 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: typedef typename _Rep_type::iterator iterator; 29724: typedef typename _Rep_type::const_iterator const_iterator; 29724: typedef typename _Rep_type::size_type size_type; 29724: typedef typename _Rep_type::difference_type difference_type; 29724: typedef typename _Rep_type::reverse_iterator reverse_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29724: 29724: 29724: using node_type = typename _Rep_type::node_type; 29724: using insert_return_type = typename _Rep_type::insert_return_type; 29724: # 197 "/usr/include/c++/14/bits/stl_map.h" 3 29724: map() = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: map(const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) { } 29724: # 219 "/usr/include/c++/14/bits/stl_map.h" 3 29724: map(const map&) = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: map(map&&) = default; 29724: # 240 "/usr/include/c++/14/bits/stl_map.h" 3 29724: map(initializer_list __l, 29724: const _Compare& __comp = _Compare(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29724: 29724: 29724: explicit 29724: map(const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) { } 29724: 29724: 29724: map(const map& __m, const __type_identity_t& __a) 29724: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 29724: 29724: 29724: map(map&& __m, const __type_identity_t& __a) 29724: noexcept(is_nothrow_copy_constructible<_Compare>::value 29724: && _Alloc_traits::_S_always_equal()) 29724: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 29724: 29724: 29724: map(initializer_list __l, const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29724: 29724: 29724: template 29724: map(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 284 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: map(_InputIterator __first, _InputIterator __last) 29724: : _M_t() 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 301 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: map(_InputIterator __first, _InputIterator __last, 29724: const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~map() = default; 29724: # 330 "/usr/include/c++/14/bits/stl_map.h" 3 29724: map& 29724: operator=(const map&) = default; 29724: 29724: 29724: map& 29724: operator=(map&&) = default; 29724: # 348 "/usr/include/c++/14/bits/stl_map.h" 3 29724: map& 29724: operator=(initializer_list __l) 29724: { 29724: _M_t._M_assign_unique(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_t.get_allocator()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rend() noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_t.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_t.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_t.max_size(); } 29724: # 503 "/usr/include/c++/14/bits/stl_map.h" 3 29724: mapped_type& 29724: operator[](const key_type& __k) 29724: { 29724: 29724: 29724: 29724: iterator __i = lower_bound(__k); 29724: 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: 29724: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 29724: std::tuple(__k), 29724: std::tuple<>()); 29724: 29724: 29724: 29724: return (*__i).second; 29724: } 29724: 29724: 29724: mapped_type& 29724: operator[](key_type&& __k) 29724: { 29724: 29724: 29724: 29724: iterator __i = lower_bound(__k); 29724: 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::tuple<>()); 29724: return (*__i).second; 29724: } 29724: # 548 "/usr/include/c++/14/bits/stl_map.h" 3 29724: mapped_type& 29724: at(const key_type& __k) 29724: { 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: __throw_out_of_range(("map::at")); 29724: return (*__i).second; 29724: } 29724: 29724: const mapped_type& 29724: at(const key_type& __k) const 29724: { 29724: const_iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: __throw_out_of_range(("map::at")); 29724: return (*__i).second; 29724: } 29724: # 586 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: std::pair 29724: emplace(_Args&&... __args) 29724: { 29724: 29724: if constexpr (sizeof...(_Args) == 2) 29724: if constexpr (is_same_v>) 29724: { 29724: auto&& [__a, __v] = pair<_Args&...>(__args...); 29724: if constexpr (__usable_key) 29724: { 29724: const key_type& __k = __a; 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::forward<_Args>(__args)...); 29724: return {__i, true}; 29724: } 29724: return {__i, false}; 29724: } 29724: } 29724: 29724: return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); 29724: } 29724: # 636 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { 29724: return _M_t._M_emplace_hint_unique(__pos, 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_t.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __x) 29724: { return _M_t.extract(__x); } 29724: 29724: 29724: insert_return_type 29724: insert(node_type&& __nh) 29724: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 29724: 29724: template 29724: friend struct std::_Rb_tree_merge_helper; 29724: 29724: template 29724: void 29724: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29724: { merge(__source); } 29724: # 720 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: pair 29724: try_emplace(const key_type& __k, _Args&&... __args) 29724: { 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::piecewise_construct, 29724: std::forward_as_tuple(__k), 29724: std::forward_as_tuple( 29724: std::forward<_Args>(__args)...)); 29724: return {__i, true}; 29724: } 29724: return {__i, false}; 29724: } 29724: 29724: 29724: template 29724: pair 29724: try_emplace(key_type&& __k, _Args&&... __args) 29724: { 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::forward_as_tuple( 29724: std::forward<_Args>(__args)...)); 29724: return {__i, true}; 29724: } 29724: return {__i, false}; 29724: } 29724: # 780 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: iterator 29724: try_emplace(const_iterator __hint, const key_type& __k, 29724: _Args&&... __args) 29724: { 29724: iterator __i; 29724: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29724: if (__true_hint.second) 29724: __i = emplace_hint(iterator(__true_hint.second), 29724: std::piecewise_construct, 29724: std::forward_as_tuple(__k), 29724: std::forward_as_tuple( 29724: std::forward<_Args>(__args)...)); 29724: else 29724: __i = iterator(__true_hint.first); 29724: return __i; 29724: } 29724: 29724: 29724: template 29724: iterator 29724: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 29724: { 29724: iterator __i; 29724: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29724: if (__true_hint.second) 29724: __i = emplace_hint(iterator(__true_hint.second), 29724: std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::forward_as_tuple( 29724: std::forward<_Args>(__args)...)); 29724: else 29724: __i = iterator(__true_hint.first); 29724: return __i; 29724: } 29724: # 833 "/usr/include/c++/14/bits/stl_map.h" 3 29724: std::pair 29724: insert(const value_type& __x) 29724: { return _M_t._M_insert_unique(__x); } 29724: 29724: 29724: 29724: 29724: std::pair 29724: insert(value_type&& __x) 29724: { return _M_t._M_insert_unique(std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, 29724: pair> 29724: insert(_Pair&& __x) 29724: { 29724: 29724: using _P2 = remove_reference_t<_Pair>; 29724: if constexpr (__is_pair>) 29724: if constexpr (is_same_v>) 29724: if constexpr (__usable_key) 29724: { 29724: const key_type& __k = __x.first; 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::forward<_Pair>(__x)); 29724: return {__i, true}; 29724: } 29724: return {__i, false}; 29724: } 29724: 29724: return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); 29724: } 29724: # 878 "/usr/include/c++/14/bits/stl_map.h" 3 29724: void 29724: insert(std::initializer_list __list) 29724: { insert(__list.begin(), __list.end()); } 29724: # 907 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: 29724: insert(const_iterator __position, const value_type& __x) 29724: 29724: 29724: 29724: { return _M_t._M_insert_unique_(__position, __x); } 29724: 29724: 29724: 29724: 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(const_iterator __position, _Pair&& __x) 29724: { 29724: return _M_t._M_emplace_hint_unique(__position, 29724: std::forward<_Pair>(__x)); 29724: } 29724: # 940 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 965 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: pair 29724: insert_or_assign(const key_type& __k, _Obj&& __obj) 29724: { 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::piecewise_construct, 29724: std::forward_as_tuple(__k), 29724: std::forward_as_tuple( 29724: std::forward<_Obj>(__obj))); 29724: return {__i, true}; 29724: } 29724: (*__i).second = std::forward<_Obj>(__obj); 29724: return {__i, false}; 29724: } 29724: 29724: 29724: template 29724: pair 29724: insert_or_assign(key_type&& __k, _Obj&& __obj) 29724: { 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::forward_as_tuple( 29724: std::forward<_Obj>(__obj))); 29724: return {__i, true}; 29724: } 29724: (*__i).second = std::forward<_Obj>(__obj); 29724: return {__i, false}; 29724: } 29724: # 1020 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: iterator 29724: insert_or_assign(const_iterator __hint, 29724: const key_type& __k, _Obj&& __obj) 29724: { 29724: iterator __i; 29724: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29724: if (__true_hint.second) 29724: { 29724: return emplace_hint(iterator(__true_hint.second), 29724: std::piecewise_construct, 29724: std::forward_as_tuple(__k), 29724: std::forward_as_tuple( 29724: std::forward<_Obj>(__obj))); 29724: } 29724: __i = iterator(__true_hint.first); 29724: (*__i).second = std::forward<_Obj>(__obj); 29724: return __i; 29724: } 29724: 29724: 29724: template 29724: iterator 29724: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 29724: { 29724: iterator __i; 29724: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29724: if (__true_hint.second) 29724: { 29724: return emplace_hint(iterator(__true_hint.second), 29724: std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::forward_as_tuple( 29724: std::forward<_Obj>(__obj))); 29724: } 29724: __i = iterator(__true_hint.first); 29724: (*__i).second = std::forward<_Obj>(__obj); 29724: return __i; 29724: } 29724: # 1079 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_t.erase(__position); } 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(iterator __position) 29724: { return _M_t.erase(__position); } 29724: # 1116 "/usr/include/c++/14/bits/stl_map.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_t.erase(__x); } 29724: # 1136 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_t.erase(__first, __last); } 29724: # 1170 "/usr/include/c++/14/bits/stl_map.h" 3 29724: void 29724: swap(map& __x) 29724: noexcept(__is_nothrow_swappable<_Compare>::value) 29724: { _M_t.swap(__x._M_t); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_t.clear(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: key_compare 29724: key_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: 29724: 29724: 29724: 29724: value_compare 29724: value_comp() const 29724: { return value_compare(_M_t.key_comp()); } 29724: # 1217 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 29724: { return _M_t._M_find_tr(__x); } 29724: # 1242 "/usr/include/c++/14/bits/stl_map.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 29724: { return _M_t._M_find_tr(__x); } 29724: # 1263 "/usr/include/c++/14/bits/stl_map.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 29724: 29724: 29724: template 29724: auto 29724: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29724: { return _M_t._M_count_tr(__x); } 29724: # 1306 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: lower_bound(const key_type& __x) 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 1331 "/usr/include/c++/14/bits/stl_map.h" 3 29724: const_iterator 29724: lower_bound(const key_type& __x) const 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) const 29724: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 1351 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: upper_bound(const key_type& __x) 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 1371 "/usr/include/c++/14/bits/stl_map.h" 3 29724: const_iterator 29724: upper_bound(const key_type& __x) const 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) const 29724: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 1400 "/usr/include/c++/14/bits/stl_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: # 1429 "/usr/include/c++/14/bits/stl_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) const 29724: -> decltype(pair( 29724: _M_t._M_equal_range_tr(__x))) 29724: { 29724: return pair( 29724: _M_t._M_equal_range_tr(__x)); 29724: } 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator==(const map<_K1, _T1, _C1, _A1>&, 29724: const map<_K1, _T1, _C1, _A1>&); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator<(const map<_K1, _T1, _C1, _A1>&, 29724: const map<_K1, _T1, _C1, _A1>&); 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: template>, 29724: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: map(_InputIterator, _InputIterator, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29724: _Compare, _Allocator>; 29724: 29724: template, 29724: typename _Allocator = allocator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: map(initializer_list>, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> map<_Key, _Tp, _Compare, _Allocator>; 29724: 29724: template , 29724: typename = _RequireAllocator<_Allocator>> 29724: map(_InputIterator, _InputIterator, _Allocator) 29724: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29724: less<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template> 29724: map(initializer_list>, _Allocator) 29724: -> map<_Key, _Tp, less<_Key>, _Allocator>; 29724: # 1510 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: inline bool 29724: operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __x._M_t == __y._M_t; } 29724: # 1548 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: inline bool 29724: operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __x._M_t < __y._M_t; } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: inline bool 29724: operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: _Rb_tree_merge_helper, 29724: _Cmp2> 29724: { 29724: private: 29724: friend class std::map<_Key, _Val, _Cmp1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 29724: { return __map._M_t; } 29724: 29724: static auto& 29724: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 29724: { return __map._M_t; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 64 "/usr/include/c++/14/map" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_multimap.h" 1 3 29724: # 64 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class map; 29724: # 98 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template , 29724: typename _Alloc = std::allocator > > 29724: class multimap 29724: { 29724: public: 29724: typedef _Key key_type; 29724: typedef _Tp mapped_type; 29724: typedef std::pair value_type; 29724: typedef _Compare key_compare; 29724: typedef _Alloc allocator_type; 29724: 29724: private: 29724: # 129 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: public: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: class value_compare 29724: : public std::binary_function 29724: { 29724: friend class multimap<_Key, _Tp, _Compare, _Alloc>; 29724: protected: 29724: _Compare comp; 29724: 29724: value_compare(_Compare __c) 29724: : comp(__c) { } 29724: 29724: public: 29724: bool operator()(const value_type& __x, const value_type& __y) const 29724: { return comp(__x.first, __y.first); } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: private: 29724: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind::other _Pair_alloc_type; 29724: 29724: typedef _Rb_tree, 29724: key_compare, _Pair_alloc_type> _Rep_type; 29724: 29724: _Rep_type _M_t; 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 29724: 29724: public: 29724: 29724: 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: typedef typename _Rep_type::iterator iterator; 29724: typedef typename _Rep_type::const_iterator const_iterator; 29724: typedef typename _Rep_type::size_type size_type; 29724: typedef typename _Rep_type::difference_type difference_type; 29724: typedef typename _Rep_type::reverse_iterator reverse_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29724: 29724: 29724: using node_type = typename _Rep_type::node_type; 29724: # 187 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap() = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: multimap(const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) { } 29724: # 209 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap(const multimap&) = default; 29724: # 218 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap(multimap&&) = default; 29724: # 230 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap(initializer_list __l, 29724: const _Compare& __comp = _Compare(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29724: 29724: 29724: explicit 29724: multimap(const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) { } 29724: 29724: 29724: multimap(const multimap& __m, 29724: const __type_identity_t& __a) 29724: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 29724: 29724: 29724: multimap(multimap&& __m, const __type_identity_t& __a) 29724: noexcept(is_nothrow_copy_constructible<_Compare>::value 29724: && _Alloc_traits::_S_always_equal()) 29724: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 29724: 29724: 29724: multimap(initializer_list __l, const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29724: 29724: 29724: template 29724: multimap(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 274 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: multimap(_InputIterator __first, _InputIterator __last) 29724: : _M_t() 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 290 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: multimap(_InputIterator __first, _InputIterator __last, 29724: const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~multimap() = default; 29724: # 319 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap& 29724: operator=(const multimap&) = default; 29724: 29724: 29724: multimap& 29724: operator=(multimap&&) = default; 29724: # 337 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap& 29724: operator=(initializer_list __l) 29724: { 29724: _M_t._M_assign_equal(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_t.get_allocator()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rend() noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_t.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_t.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_t.max_size(); } 29724: # 495 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: iterator 29724: emplace(_Args&&... __args) 29724: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 29724: # 522 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { 29724: return _M_t._M_emplace_hint_equal(__pos, 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 544 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: insert(const value_type& __x) 29724: { return _M_t._M_insert_equal(__x); } 29724: 29724: 29724: 29724: 29724: iterator 29724: insert(value_type&& __x) 29724: { return _M_t._M_insert_equal(std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(_Pair&& __x) 29724: { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } 29724: # 583 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: 29724: insert(const_iterator __position, const value_type& __x) 29724: 29724: 29724: 29724: { return _M_t._M_insert_equal_(__position, __x); } 29724: 29724: 29724: 29724: 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(const_iterator __position, _Pair&& __x) 29724: { 29724: return _M_t._M_emplace_hint_equal(__position, 29724: std::forward<_Pair>(__x)); 29724: } 29724: # 617 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 630 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { this->insert(__l.begin(), __l.end()); } 29724: 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_t.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __x) 29724: { return _M_t.extract(__x); } 29724: 29724: 29724: iterator 29724: insert(node_type&& __nh) 29724: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 29724: 29724: template 29724: friend struct std::_Rb_tree_merge_helper; 29724: 29724: template 29724: void 29724: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29724: { merge(__source); } 29724: # 707 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_t.erase(__position); } 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(iterator __position) 29724: { return _M_t.erase(__position); } 29724: # 744 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_t.erase(__x); } 29724: # 765 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_t.erase(__first, __last); } 29724: # 802 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: void 29724: swap(multimap& __x) 29724: noexcept(__is_nothrow_swappable<_Compare>::value) 29724: { _M_t.swap(__x._M_t); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_t.clear(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: key_compare 29724: key_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: 29724: 29724: 29724: 29724: value_compare 29724: value_comp() const 29724: { return value_compare(_M_t.key_comp()); } 29724: # 848 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 29724: { return _M_t._M_find_tr(__x); } 29724: # 872 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 29724: { return _M_t._M_find_tr(__x); } 29724: # 890 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_t.count(__x); } 29724: 29724: 29724: template 29724: auto 29724: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29724: { return _M_t._M_count_tr(__x); } 29724: # 933 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: lower_bound(const key_type& __x) 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 958 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: const_iterator 29724: lower_bound(const key_type& __x) const 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) const 29724: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 978 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: upper_bound(const key_type& __x) 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 998 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: const_iterator 29724: upper_bound(const key_type& __x) const 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) const 29724: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 1025 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: # 1052 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) const 29724: -> decltype(pair( 29724: _M_t._M_equal_range_tr(__x))) 29724: { 29724: return pair( 29724: _M_t._M_equal_range_tr(__x)); 29724: } 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator==(const multimap<_K1, _T1, _C1, _A1>&, 29724: const multimap<_K1, _T1, _C1, _A1>&); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator<(const multimap<_K1, _T1, _C1, _A1>&, 29724: const multimap<_K1, _T1, _C1, _A1>&); 29724: 29724: }; 29724: 29724: 29724: 29724: template>, 29724: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: multimap(_InputIterator, _InputIterator, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29724: _Compare, _Allocator>; 29724: 29724: template, 29724: typename _Allocator = allocator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: multimap(initializer_list>, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> multimap<_Key, _Tp, _Compare, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: multimap(_InputIterator, _InputIterator, _Allocator) 29724: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29724: less<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template> 29724: multimap(initializer_list>, _Allocator) 29724: -> multimap<_Key, _Tp, less<_Key>, _Allocator>; 29724: # 1132 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: inline bool 29724: operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __x._M_t == __y._M_t; } 29724: # 1170 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: inline bool 29724: operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __x._M_t < __y._M_t; } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: inline bool 29724: operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: _Rb_tree_merge_helper, 29724: _Cmp2> 29724: { 29724: private: 29724: friend class std::multimap<_Key, _Val, _Cmp1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 29724: { return __map._M_t; } 29724: 29724: static auto& 29724: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 29724: { return __map._M_t; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 65 "/usr/include/c++/14/map" 2 3 29724: # 79 "/usr/include/c++/14/map" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 80 "/usr/include/c++/14/map" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template> 29724: using map 29724: = std::map<_Key, _Tp, _Cmp, 29724: polymorphic_allocator>>; 29724: template> 29724: using multimap 29724: = std::multimap<_Key, _Tp, _Cmp, 29724: polymorphic_allocator>>; 29724: } 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29724: 29724: # 1 "/usr/include/c++/14/mutex" 1 3 29724: # 32 "/usr/include/c++/14/mutex" 3 29724: 29724: # 33 "/usr/include/c++/14/mutex" 3 29724: # 47 "/usr/include/c++/14/mutex" 3 29724: # 1 "/usr/include/c++/14/bits/std_mutex.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: # 43 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 59 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: class __mutex_base 29724: { 29724: protected: 29724: typedef __gthread_mutex_t __native_type; 29724: 29724: 29724: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 29724: 29724: constexpr __mutex_base() noexcept = default; 29724: # 80 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: __mutex_base(const __mutex_base&) = delete; 29724: __mutex_base& operator=(const __mutex_base&) = delete; 29724: }; 29724: # 96 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: class mutex : private __mutex_base 29724: { 29724: public: 29724: typedef __native_type* native_handle_type; 29724: 29724: 29724: constexpr 29724: 29724: mutex() noexcept = default; 29724: ~mutex() = default; 29724: 29724: mutex(const mutex&) = delete; 29724: mutex& operator=(const mutex&) = delete; 29724: 29724: void 29724: lock() 29724: { 29724: int __e = __gthread_mutex_lock(&_M_mutex); 29724: 29724: 29724: if (__e) 29724: __throw_system_error(__e); 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: try_lock() noexcept 29724: { 29724: 29724: return !__gthread_mutex_trylock(&_M_mutex); 29724: } 29724: 29724: void 29724: unlock() 29724: { 29724: 29724: __gthread_mutex_unlock(&_M_mutex); 29724: } 29724: 29724: native_handle_type 29724: native_handle() noexcept 29724: { return &_M_mutex; } 29724: }; 29724: 29724: 29724: 29724: 29724: class __condvar 29724: { 29724: using timespec = __gthread_time_t; 29724: 29724: public: 29724: __condvar() noexcept 29724: { 29724: 29724: 29724: 29724: } 29724: 29724: ~__condvar() 29724: { 29724: int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); 29724: do { if (std::__is_constant_evaluated() && !bool(__e != 16)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: __condvar(const __condvar&) = delete; 29724: __condvar& operator=(const __condvar&) = delete; 29724: 29724: __gthread_cond_t* native_handle() noexcept { return &_M_cond; } 29724: 29724: 29724: void 29724: wait(mutex& __m) 29724: { 29724: int __e __attribute__((__unused__)) 29724: = __gthread_cond_wait(&_M_cond, __m.native_handle()); 29724: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: void 29724: wait_until(mutex& __m, timespec& __abs_time) 29724: { 29724: __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); 29724: } 29724: 29724: 29724: void 29724: wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) 29724: { 29724: pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, 29724: &__abs_time); 29724: } 29724: 29724: 29724: void 29724: notify_one() noexcept 29724: { 29724: int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); 29724: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: void 29724: notify_all() noexcept 29724: { 29724: int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); 29724: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: protected: 29724: 29724: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: struct defer_lock_t { explicit defer_lock_t() = default; }; 29724: 29724: 29724: struct try_to_lock_t { explicit try_to_lock_t() = default; }; 29724: 29724: 29724: 29724: struct adopt_lock_t { explicit adopt_lock_t() = default; }; 29724: 29724: 29724: inline constexpr defer_lock_t defer_lock { }; 29724: 29724: 29724: inline constexpr try_to_lock_t try_to_lock { }; 29724: 29724: 29724: inline constexpr adopt_lock_t adopt_lock { }; 29724: # 242 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: template 29724: class lock_guard 29724: { 29724: public: 29724: typedef _Mutex mutex_type; 29724: 29724: [[__nodiscard__]] 29724: explicit lock_guard(mutex_type& __m) : _M_device(__m) 29724: { _M_device.lock(); } 29724: 29724: [[__nodiscard__]] 29724: lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) 29724: { } 29724: 29724: ~lock_guard() 29724: { _M_device.unlock(); } 29724: 29724: lock_guard(const lock_guard&) = delete; 29724: lock_guard& operator=(const lock_guard&) = delete; 29724: 29724: private: 29724: mutex_type& _M_device; 29724: }; 29724: 29724: 29724: 29724: } 29724: # 48 "/usr/include/c++/14/mutex" 2 3 29724: # 1 "/usr/include/c++/14/bits/unique_lock.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/unique_lock.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/unique_lock.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 1 3 29724: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 3 29724: # 1 "/usr/include/c++/14/cerrno" 1 3 29724: # 39 "/usr/include/c++/14/cerrno" 3 29724: 29724: # 40 "/usr/include/c++/14/cerrno" 3 29724: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: enum class errc 29724: { 29724: address_family_not_supported = 97, 29724: address_in_use = 98, 29724: address_not_available = 99, 29724: already_connected = 106, 29724: argument_list_too_long = 7, 29724: argument_out_of_domain = 33, 29724: bad_address = 14, 29724: bad_file_descriptor = 9, 29724: 29724: 29724: bad_message = 74, 29724: 29724: 29724: broken_pipe = 32, 29724: connection_aborted = 103, 29724: connection_already_in_progress = 114, 29724: connection_refused = 111, 29724: connection_reset = 104, 29724: cross_device_link = 18, 29724: destination_address_required = 89, 29724: device_or_resource_busy = 16, 29724: directory_not_empty = 39, 29724: executable_format_error = 8, 29724: file_exists = 17, 29724: file_too_large = 27, 29724: filename_too_long = 36, 29724: function_not_supported = 38, 29724: host_unreachable = 113, 29724: 29724: 29724: identifier_removed = 43, 29724: 29724: 29724: illegal_byte_sequence = 84, 29724: inappropriate_io_control_operation = 25, 29724: interrupted = 4, 29724: invalid_argument = 22, 29724: invalid_seek = 29, 29724: io_error = 5, 29724: is_a_directory = 21, 29724: message_size = 90, 29724: network_down = 100, 29724: network_reset = 102, 29724: network_unreachable = 101, 29724: no_buffer_space = 105, 29724: no_child_process = 10, 29724: 29724: 29724: no_link = 67, 29724: 29724: 29724: no_lock_available = 37, 29724: 29724: 29724: no_message_available = 61, 29724: 29724: 29724: no_message = 42, 29724: no_protocol_option = 92, 29724: no_space_on_device = 28, 29724: 29724: 29724: no_stream_resources = 63, 29724: 29724: 29724: no_such_device_or_address = 6, 29724: no_such_device = 19, 29724: no_such_file_or_directory = 2, 29724: no_such_process = 3, 29724: not_a_directory = 20, 29724: not_a_socket = 88, 29724: 29724: 29724: not_a_stream = 60, 29724: 29724: 29724: not_connected = 107, 29724: not_enough_memory = 12, 29724: 29724: 29724: not_supported = 95, 29724: 29724: 29724: 29724: operation_canceled = 125, 29724: 29724: 29724: operation_in_progress = 115, 29724: operation_not_permitted = 1, 29724: operation_not_supported = 95, 29724: operation_would_block = 11, 29724: 29724: 29724: owner_dead = 130, 29724: 29724: 29724: permission_denied = 13, 29724: 29724: 29724: protocol_error = 71, 29724: 29724: 29724: protocol_not_supported = 93, 29724: read_only_file_system = 30, 29724: resource_deadlock_would_occur = 35, 29724: resource_unavailable_try_again = 11, 29724: result_out_of_range = 34, 29724: 29724: 29724: state_not_recoverable = 131, 29724: 29724: 29724: 29724: stream_timeout = 62, 29724: 29724: 29724: 29724: text_file_busy = 26, 29724: 29724: 29724: timed_out = 110, 29724: too_many_files_open_in_system = 23, 29724: too_many_files_open = 24, 29724: too_many_links = 31, 29724: too_many_symbolic_link_levels = 40, 29724: 29724: 29724: value_too_large = 75, 29724: 29724: 29724: 29724: 29724: wrong_protocol_type = 91 29724: }; 29724: 29724: 29724: } 29724: # 41 "/usr/include/c++/14/bits/unique_lock.h" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 59 "/usr/include/c++/14/bits/unique_lock.h" 3 29724: template 29724: class unique_lock 29724: { 29724: public: 29724: typedef _Mutex mutex_type; 29724: 29724: unique_lock() noexcept 29724: : _M_device(0), _M_owns(false) 29724: { } 29724: 29724: [[__nodiscard__]] 29724: explicit unique_lock(mutex_type& __m) 29724: : _M_device(std::__addressof(__m)), _M_owns(false) 29724: { 29724: lock(); 29724: _M_owns = true; 29724: } 29724: 29724: unique_lock(mutex_type& __m, defer_lock_t) noexcept 29724: : _M_device(std::__addressof(__m)), _M_owns(false) 29724: { } 29724: 29724: [[__nodiscard__]] 29724: unique_lock(mutex_type& __m, try_to_lock_t) 29724: : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) 29724: { } 29724: 29724: [[__nodiscard__]] 29724: unique_lock(mutex_type& __m, adopt_lock_t) noexcept 29724: : _M_device(std::__addressof(__m)), _M_owns(true) 29724: { 29724: 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: unique_lock(mutex_type& __m, 29724: const chrono::time_point<_Clock, _Duration>& __atime) 29724: : _M_device(std::__addressof(__m)), 29724: _M_owns(_M_device->try_lock_until(__atime)) 29724: { } 29724: 29724: template 29724: [[__nodiscard__]] 29724: unique_lock(mutex_type& __m, 29724: const chrono::duration<_Rep, _Period>& __rtime) 29724: : _M_device(std::__addressof(__m)), 29724: _M_owns(_M_device->try_lock_for(__rtime)) 29724: { } 29724: 29724: ~unique_lock() 29724: { 29724: if (_M_owns) 29724: unlock(); 29724: } 29724: 29724: unique_lock(const unique_lock&) = delete; 29724: unique_lock& operator=(const unique_lock&) = delete; 29724: 29724: unique_lock(unique_lock&& __u) noexcept 29724: : _M_device(__u._M_device), _M_owns(__u._M_owns) 29724: { 29724: __u._M_device = 0; 29724: __u._M_owns = false; 29724: } 29724: 29724: unique_lock& operator=(unique_lock&& __u) noexcept 29724: { 29724: if(_M_owns) 29724: unlock(); 29724: 29724: unique_lock(std::move(__u)).swap(*this); 29724: 29724: __u._M_device = 0; 29724: __u._M_owns = false; 29724: 29724: return *this; 29724: } 29724: 29724: void 29724: lock() 29724: { 29724: if (!_M_device) 29724: __throw_system_error(int(errc::operation_not_permitted)); 29724: else if (_M_owns) 29724: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29724: else 29724: { 29724: _M_device->lock(); 29724: _M_owns = true; 29724: } 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: try_lock() 29724: { 29724: if (!_M_device) 29724: __throw_system_error(int(errc::operation_not_permitted)); 29724: else if (_M_owns) 29724: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29724: else 29724: { 29724: _M_owns = _M_device->try_lock(); 29724: return _M_owns; 29724: } 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29724: { 29724: if (!_M_device) 29724: __throw_system_error(int(errc::operation_not_permitted)); 29724: else if (_M_owns) 29724: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29724: else 29724: { 29724: _M_owns = _M_device->try_lock_until(__atime); 29724: return _M_owns; 29724: } 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29724: { 29724: if (!_M_device) 29724: __throw_system_error(int(errc::operation_not_permitted)); 29724: else if (_M_owns) 29724: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29724: else 29724: { 29724: _M_owns = _M_device->try_lock_for(__rtime); 29724: return _M_owns; 29724: } 29724: } 29724: 29724: void 29724: unlock() 29724: { 29724: if (!_M_owns) 29724: __throw_system_error(int(errc::operation_not_permitted)); 29724: else if (_M_device) 29724: { 29724: _M_device->unlock(); 29724: _M_owns = false; 29724: } 29724: } 29724: 29724: void 29724: swap(unique_lock& __u) noexcept 29724: { 29724: std::swap(_M_device, __u._M_device); 29724: std::swap(_M_owns, __u._M_owns); 29724: } 29724: 29724: mutex_type* 29724: release() noexcept 29724: { 29724: mutex_type* __ret = _M_device; 29724: _M_device = 0; 29724: _M_owns = false; 29724: return __ret; 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: owns_lock() const noexcept 29724: { return _M_owns; } 29724: 29724: explicit operator bool() const noexcept 29724: { return owns_lock(); } 29724: 29724: [[__nodiscard__]] 29724: mutex_type* 29724: mutex() const noexcept 29724: { return _M_device; } 29724: 29724: private: 29724: mutex_type* _M_device; 29724: bool _M_owns; 29724: }; 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept 29724: { __x.swap(__y); } 29724: 29724: 29724: } 29724: # 49 "/usr/include/c++/14/mutex" 2 3 29724: # 60 "/usr/include/c++/14/mutex" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 61 "/usr/include/c++/14/mutex" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 75 "/usr/include/c++/14/mutex" 3 29724: class __recursive_mutex_base 29724: { 29724: protected: 29724: typedef __gthread_recursive_mutex_t __native_type; 29724: 29724: __recursive_mutex_base(const __recursive_mutex_base&) = delete; 29724: __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; 29724: 29724: 29724: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 29724: 29724: __recursive_mutex_base() = default; 29724: # 99 "/usr/include/c++/14/mutex" 3 29724: }; 29724: # 111 "/usr/include/c++/14/mutex" 3 29724: class recursive_mutex : private __recursive_mutex_base 29724: { 29724: public: 29724: typedef __native_type* native_handle_type; 29724: 29724: recursive_mutex() = default; 29724: ~recursive_mutex() = default; 29724: 29724: recursive_mutex(const recursive_mutex&) = delete; 29724: recursive_mutex& operator=(const recursive_mutex&) = delete; 29724: 29724: void 29724: lock() 29724: { 29724: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 29724: 29724: 29724: if (__e) 29724: __throw_system_error(__e); 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: try_lock() noexcept 29724: { 29724: 29724: return !__gthread_recursive_mutex_trylock(&_M_mutex); 29724: } 29724: 29724: void 29724: unlock() 29724: { 29724: 29724: __gthread_recursive_mutex_unlock(&_M_mutex); 29724: } 29724: 29724: native_handle_type 29724: native_handle() noexcept 29724: { return &_M_mutex; } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: class __timed_mutex_impl 29724: { 29724: protected: 29724: template 29724: bool 29724: _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29724: { 29724: 29724: using __clock = chrono::steady_clock; 29724: 29724: 29724: 29724: 29724: auto __rt = chrono::duration_cast<__clock::duration>(__rtime); 29724: if (ratio_greater<__clock::period, _Period>()) 29724: ++__rt; 29724: return _M_try_lock_until(__clock::now() + __rt); 29724: } 29724: 29724: template 29724: bool 29724: _M_try_lock_until(const chrono::time_point& __atime) 29724: { 29724: auto __s = chrono::time_point_cast(__atime); 29724: auto __ns = chrono::duration_cast(__atime - __s); 29724: 29724: __gthread_time_t __ts = { 29724: static_cast(__s.time_since_epoch().count()), 29724: static_cast(__ns.count()) 29724: }; 29724: 29724: return static_cast<_Derived*>(this)->_M_timedlock(__ts); 29724: } 29724: 29724: 29724: template 29724: bool 29724: _M_try_lock_until(const chrono::time_point& __atime) 29724: { 29724: auto __s = chrono::time_point_cast(__atime); 29724: auto __ns = chrono::duration_cast(__atime - __s); 29724: 29724: __gthread_time_t __ts = { 29724: static_cast(__s.time_since_epoch().count()), 29724: static_cast(__ns.count()) 29724: }; 29724: 29724: return static_cast<_Derived*>(this)->_M_clocklock(1, 29724: __ts); 29724: } 29724: 29724: 29724: template 29724: bool 29724: _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: auto __now = _Clock::now(); 29724: do { 29724: auto __rtime = __atime - __now; 29724: if (_M_try_lock_for(__rtime)) 29724: return true; 29724: __now = _Clock::now(); 29724: } while (__atime > __now); 29724: return false; 29724: } 29724: }; 29724: # 240 "/usr/include/c++/14/mutex" 3 29724: class timed_mutex 29724: : private __mutex_base, public __timed_mutex_impl 29724: { 29724: public: 29724: typedef __native_type* native_handle_type; 29724: 29724: timed_mutex() = default; 29724: ~timed_mutex() = default; 29724: 29724: timed_mutex(const timed_mutex&) = delete; 29724: timed_mutex& operator=(const timed_mutex&) = delete; 29724: 29724: void 29724: lock() 29724: { 29724: int __e = __gthread_mutex_lock(&_M_mutex); 29724: 29724: 29724: if (__e) 29724: __throw_system_error(__e); 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: try_lock() noexcept 29724: { 29724: 29724: return !__gthread_mutex_trylock(&_M_mutex); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29724: { return _M_try_lock_for(__rtime); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29724: { return _M_try_lock_until(__atime); } 29724: 29724: void 29724: unlock() 29724: { 29724: 29724: __gthread_mutex_unlock(&_M_mutex); 29724: } 29724: 29724: native_handle_type 29724: native_handle() noexcept 29724: { return &_M_mutex; } 29724: 29724: private: 29724: friend class __timed_mutex_impl; 29724: 29724: bool 29724: _M_timedlock(const __gthread_time_t& __ts) 29724: { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } 29724: 29724: 29724: bool 29724: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 29724: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 29724: 29724: }; 29724: # 317 "/usr/include/c++/14/mutex" 3 29724: class recursive_timed_mutex 29724: : private __recursive_mutex_base, 29724: public __timed_mutex_impl 29724: { 29724: public: 29724: typedef __native_type* native_handle_type; 29724: 29724: recursive_timed_mutex() = default; 29724: ~recursive_timed_mutex() = default; 29724: 29724: recursive_timed_mutex(const recursive_timed_mutex&) = delete; 29724: recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; 29724: 29724: void 29724: lock() 29724: { 29724: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 29724: 29724: 29724: if (__e) 29724: __throw_system_error(__e); 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: try_lock() noexcept 29724: { 29724: 29724: return !__gthread_recursive_mutex_trylock(&_M_mutex); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29724: { return _M_try_lock_for(__rtime); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29724: { return _M_try_lock_until(__atime); } 29724: 29724: void 29724: unlock() 29724: { 29724: 29724: __gthread_recursive_mutex_unlock(&_M_mutex); 29724: } 29724: 29724: native_handle_type 29724: native_handle() noexcept 29724: { return &_M_mutex; } 29724: 29724: private: 29724: friend class __timed_mutex_impl; 29724: 29724: bool 29724: _M_timedlock(const __gthread_time_t& __ts) 29724: { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } 29724: 29724: 29724: bool 29724: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 29724: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 29724: 29724: }; 29724: # 564 "/usr/include/c++/14/mutex" 3 29724: namespace __detail 29724: { 29724: 29724: template 29724: inline int 29724: __try_lock_impl(_Lockable& __l) 29724: { 29724: if (unique_lock<_Lockable> __lock{__l, try_to_lock}) 29724: { 29724: __lock.release(); 29724: return -1; 29724: } 29724: else 29724: return 0; 29724: } 29724: 29724: 29724: 29724: template 29724: inline int 29724: __try_lock_impl(_L0& __l0, _Lockables&... __lockables) 29724: { 29724: 29724: if constexpr ((is_same_v<_L0, _Lockables> && ...)) 29724: { 29724: constexpr int _Np = 1 + sizeof...(_Lockables); 29724: unique_lock<_L0> __locks[_Np] = { 29724: {__l0, defer_lock}, {__lockables, defer_lock}... 29724: }; 29724: for (int __i = 0; __i < _Np; ++__i) 29724: { 29724: if (!__locks[__i].try_lock()) 29724: { 29724: const int __failed = __i; 29724: while (__i--) 29724: __locks[__i].unlock(); 29724: return __failed; 29724: } 29724: } 29724: for (auto& __l : __locks) 29724: __l.release(); 29724: return -1; 29724: } 29724: else 29724: 29724: if (unique_lock<_L0> __lock{__l0, try_to_lock}) 29724: { 29724: int __idx = __detail::__try_lock_impl(__lockables...); 29724: if (__idx == -1) 29724: { 29724: __lock.release(); 29724: return -1; 29724: } 29724: return __idx + 1; 29724: } 29724: else 29724: return 0; 29724: } 29724: 29724: } 29724: # 636 "/usr/include/c++/14/mutex" 3 29724: template 29724: [[__nodiscard__]] 29724: inline int 29724: try_lock(_L1& __l1, _L2& __l2, _L3&... __l3) 29724: { 29724: return __detail::__try_lock_impl(__l1, __l2, __l3...); 29724: } 29724: 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __lock_impl(int& __i, int __depth, _L0& __l0, _L1&... __l1) 29724: { 29724: while (__i >= __depth) 29724: { 29724: if (__i == __depth) 29724: { 29724: int __failed = 1; 29724: { 29724: unique_lock<_L0> __first(__l0); 29724: __failed += __detail::__try_lock_impl(__l1...); 29724: if (!__failed) 29724: { 29724: __i = -1; 29724: __first.release(); 29724: return; 29724: } 29724: } 29724: 29724: __gthread_yield(); 29724: 29724: constexpr auto __n = 1 + sizeof...(_L1); 29724: __i = (__depth + __failed) % __n; 29724: } 29724: else 29724: __detail::__lock_impl(__i, __depth + 1, __l1..., __l0); 29724: } 29724: } 29724: 29724: } 29724: # 696 "/usr/include/c++/14/mutex" 3 29724: template 29724: void 29724: lock(_L1& __l1, _L2& __l2, _L3&... __l3) 29724: { 29724: 29724: if constexpr (is_same_v<_L1, _L2> && (is_same_v<_L1, _L3> && ...)) 29724: { 29724: constexpr int _Np = 2 + sizeof...(_L3); 29724: unique_lock<_L1> __locks[] = { 29724: {__l1, defer_lock}, {__l2, defer_lock}, {__l3, defer_lock}... 29724: }; 29724: int __first = 0; 29724: do { 29724: __locks[__first].lock(); 29724: for (int __j = 1; __j < _Np; ++__j) 29724: { 29724: const int __idx = (__first + __j) % _Np; 29724: if (!__locks[__idx].try_lock()) 29724: { 29724: for (int __k = __j; __k != 0; --__k) 29724: __locks[(__first + __k - 1) % _Np].unlock(); 29724: __first = __idx; 29724: break; 29724: } 29724: } 29724: } while (!__locks[__first].owns_lock()); 29724: 29724: for (auto& __l : __locks) 29724: __l.release(); 29724: } 29724: else 29724: 29724: { 29724: int __i = 0; 29724: __detail::__lock_impl(__i, 0, __l1, __l2, __l3...); 29724: } 29724: } 29724: # 743 "/usr/include/c++/14/mutex" 3 29724: template 29724: class scoped_lock 29724: { 29724: public: 29724: 29724: [[nodiscard]] 29724: explicit scoped_lock(_MutexTypes&... __m) : _M_devices(std::tie(__m...)) 29724: { std::lock(__m...); } 29724: 29724: [[nodiscard]] 29724: explicit scoped_lock(adopt_lock_t, _MutexTypes&... __m) noexcept 29724: : _M_devices(std::tie(__m...)) 29724: { } 29724: 29724: ~scoped_lock() 29724: { std::apply([](auto&... __m) { (__m.unlock(), ...); }, _M_devices); } 29724: 29724: scoped_lock(const scoped_lock&) = delete; 29724: scoped_lock& operator=(const scoped_lock&) = delete; 29724: 29724: private: 29724: tuple<_MutexTypes&...> _M_devices; 29724: }; 29724: 29724: template<> 29724: class scoped_lock<> 29724: { 29724: public: 29724: explicit scoped_lock() = default; 29724: explicit scoped_lock(adopt_lock_t) noexcept { } 29724: ~scoped_lock() = default; 29724: 29724: scoped_lock(const scoped_lock&) = delete; 29724: scoped_lock& operator=(const scoped_lock&) = delete; 29724: }; 29724: 29724: template 29724: class scoped_lock<_Mutex> 29724: { 29724: public: 29724: using mutex_type = _Mutex; 29724: 29724: [[nodiscard]] 29724: explicit scoped_lock(mutex_type& __m) : _M_device(__m) 29724: { _M_device.lock(); } 29724: 29724: [[nodiscard]] 29724: explicit scoped_lock(adopt_lock_t, mutex_type& __m) noexcept 29724: : _M_device(__m) 29724: { } 29724: 29724: ~scoped_lock() 29724: { _M_device.unlock(); } 29724: 29724: scoped_lock(const scoped_lock&) = delete; 29724: scoped_lock& operator=(const scoped_lock&) = delete; 29724: 29724: private: 29724: mutex_type& _M_device; 29724: }; 29724: 29724: 29724: 29724: 29724: struct once_flag 29724: { 29724: constexpr once_flag() noexcept = default; 29724: 29724: 29724: once_flag(const once_flag&) = delete; 29724: 29724: once_flag& operator=(const once_flag&) = delete; 29724: 29724: private: 29724: 29724: 29724: __gthread_once_t _M_once = 0; 29724: 29724: struct _Prepare_execution; 29724: 29724: template 29724: friend void 29724: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: extern __thread void* __once_callable; 29724: extern __thread void (*__once_call)(); 29724: 29724: 29724: struct once_flag::_Prepare_execution 29724: { 29724: template 29724: explicit 29724: _Prepare_execution(_Callable& __c) 29724: { 29724: 29724: __once_callable = std::__addressof(__c); 29724: 29724: __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; 29724: } 29724: 29724: ~_Prepare_execution() 29724: { 29724: 29724: __once_callable = nullptr; 29724: __once_call = nullptr; 29724: } 29724: 29724: _Prepare_execution(const _Prepare_execution&) = delete; 29724: _Prepare_execution& operator=(const _Prepare_execution&) = delete; 29724: }; 29724: # 900 "/usr/include/c++/14/mutex" 3 29724: extern "C" void __once_proxy(void); 29724: 29724: 29724: template 29724: void 29724: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 29724: { 29724: 29724: auto __callable = [&] { 29724: std::__invoke(std::forward<_Callable>(__f), 29724: std::forward<_Args>(__args)...); 29724: }; 29724: 29724: once_flag::_Prepare_execution __exec(__callable); 29724: 29724: 29724: if (int __e = __gthread_once(&__once._M_once, &__once_proxy)) 29724: __throw_system_error(__e); 29724: } 29724: # 1021 "/usr/include/c++/14/mutex" 3 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: namespace rocksdb { 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: enum Tickers : uint32_t { 29724: 29724: 29724: 29724: 29724: BLOCK_CACHE_MISS = 0, 29724: 29724: 29724: 29724: 29724: BLOCK_CACHE_HIT, 29724: 29724: BLOCK_CACHE_ADD, 29724: 29724: BLOCK_CACHE_ADD_FAILURES, 29724: 29724: BLOCK_CACHE_INDEX_MISS, 29724: 29724: BLOCK_CACHE_INDEX_HIT, 29724: 29724: BLOCK_CACHE_INDEX_ADD, 29724: 29724: BLOCK_CACHE_INDEX_BYTES_INSERT, 29724: 29724: BLOCK_CACHE_FILTER_MISS, 29724: 29724: BLOCK_CACHE_FILTER_HIT, 29724: 29724: BLOCK_CACHE_FILTER_ADD, 29724: 29724: BLOCK_CACHE_FILTER_BYTES_INSERT, 29724: 29724: BLOCK_CACHE_DATA_MISS, 29724: 29724: BLOCK_CACHE_DATA_HIT, 29724: 29724: BLOCK_CACHE_DATA_ADD, 29724: 29724: BLOCK_CACHE_DATA_BYTES_INSERT, 29724: 29724: BLOCK_CACHE_BYTES_READ, 29724: 29724: BLOCK_CACHE_BYTES_WRITE, 29724: 29724: BLOCK_CACHE_COMPRESSION_DICT_MISS, 29724: BLOCK_CACHE_COMPRESSION_DICT_HIT, 29724: BLOCK_CACHE_COMPRESSION_DICT_ADD, 29724: BLOCK_CACHE_COMPRESSION_DICT_BYTES_INSERT, 29724: 29724: 29724: 29724: BLOCK_CACHE_ADD_REDUNDANT, 29724: 29724: 29724: BLOCK_CACHE_INDEX_ADD_REDUNDANT, 29724: 29724: 29724: BLOCK_CACHE_FILTER_ADD_REDUNDANT, 29724: 29724: 29724: BLOCK_CACHE_DATA_ADD_REDUNDANT, 29724: 29724: 29724: 29724: BLOCK_CACHE_COMPRESSION_DICT_ADD_REDUNDANT, 29724: 29724: 29724: SECONDARY_CACHE_HITS, 29724: 29724: 29724: SECONDARY_CACHE_FILTER_HITS, 29724: SECONDARY_CACHE_INDEX_HITS, 29724: SECONDARY_CACHE_DATA_HITS, 29724: 29724: 29724: COMPRESSED_SECONDARY_CACHE_DUMMY_HITS, 29724: COMPRESSED_SECONDARY_CACHE_HITS, 29724: COMPRESSED_SECONDARY_CACHE_PROMOTIONS, 29724: COMPRESSED_SECONDARY_CACHE_PROMOTION_SKIPS, 29724: 29724: 29724: BLOOM_FILTER_USEFUL, 29724: 29724: BLOOM_FILTER_FULL_POSITIVE, 29724: 29724: 29724: BLOOM_FILTER_FULL_TRUE_POSITIVE, 29724: 29724: 29724: 29724: BLOOM_FILTER_PREFIX_CHECKED, 29724: 29724: BLOOM_FILTER_PREFIX_USEFUL, 29724: 29724: 29724: 29724: BLOOM_FILTER_PREFIX_TRUE_POSITIVE, 29724: 29724: 29724: PERSISTENT_CACHE_HIT, 29724: 29724: PERSISTENT_CACHE_MISS, 29724: 29724: 29724: SIM_BLOCK_CACHE_HIT, 29724: 29724: SIM_BLOCK_CACHE_MISS, 29724: 29724: 29724: MEMTABLE_HIT, 29724: 29724: MEMTABLE_MISS, 29724: 29724: 29724: GET_HIT_L0, 29724: 29724: GET_HIT_L1, 29724: 29724: GET_HIT_L2_AND_UP, 29724: 29724: 29724: 29724: 29724: 29724: COMPACTION_KEY_DROP_NEWER_ENTRY, 29724: 29724: COMPACTION_KEY_DROP_OBSOLETE, 29724: COMPACTION_KEY_DROP_RANGE_DEL, 29724: COMPACTION_KEY_DROP_USER, 29724: COMPACTION_RANGE_DEL_DROP_OBSOLETE, 29724: 29724: COMPACTION_OPTIMIZED_DEL_DROP_OBSOLETE, 29724: 29724: COMPACTION_CANCELLED, 29724: 29724: 29724: NUMBER_KEYS_WRITTEN, 29724: 29724: NUMBER_KEYS_READ, 29724: 29724: NUMBER_KEYS_UPDATED, 29724: 29724: 29724: BYTES_WRITTEN, 29724: 29724: 29724: 29724: 29724: BYTES_READ, 29724: 29724: NUMBER_DB_SEEK, 29724: NUMBER_DB_NEXT, 29724: NUMBER_DB_PREV, 29724: 29724: NUMBER_DB_SEEK_FOUND, 29724: NUMBER_DB_NEXT_FOUND, 29724: NUMBER_DB_PREV_FOUND, 29724: 29724: 29724: ITER_BYTES_READ, 29724: 29724: NUMBER_ITER_SKIP, 29724: 29724: 29724: NUMBER_OF_RESEEKS_IN_ITERATION, 29724: 29724: NO_ITERATOR_CREATED, 29724: NO_ITERATOR_DELETED, 29724: 29724: NO_FILE_OPENS, 29724: NO_FILE_ERRORS, 29724: 29724: STALL_MICROS, 29724: 29724: 29724: DB_MUTEX_WAIT_MICROS, 29724: 29724: 29724: NUMBER_MULTIGET_CALLS, 29724: NUMBER_MULTIGET_KEYS_READ, 29724: NUMBER_MULTIGET_BYTES_READ, 29724: 29724: 29724: 29724: NUMBER_MULTIGET_KEYS_FOUND, 29724: 29724: NUMBER_MERGE_FAILURES, 29724: 29724: 29724: 29724: GET_UPDATES_SINCE_CALLS, 29724: WAL_FILE_SYNCED, 29724: WAL_FILE_BYTES, 29724: 29724: 29724: 29724: WRITE_DONE_BY_SELF, 29724: WRITE_DONE_BY_OTHER, 29724: WRITE_WITH_WAL, 29724: COMPACT_READ_BYTES, 29724: COMPACT_WRITE_BYTES, 29724: FLUSH_WRITE_BYTES, 29724: 29724: 29724: COMPACT_READ_BYTES_MARKED, 29724: COMPACT_READ_BYTES_PERIODIC, 29724: COMPACT_READ_BYTES_TTL, 29724: COMPACT_WRITE_BYTES_MARKED, 29724: COMPACT_WRITE_BYTES_PERIODIC, 29724: COMPACT_WRITE_BYTES_TTL, 29724: 29724: 29724: 29724: NUMBER_DIRECT_LOAD_TABLE_PROPERTIES, 29724: NUMBER_SUPERVERSION_ACQUIRES, 29724: NUMBER_SUPERVERSION_RELEASES, 29724: NUMBER_SUPERVERSION_CLEANUPS, 29724: 29724: 29724: NUMBER_BLOCK_COMPRESSED, 29724: NUMBER_BLOCK_DECOMPRESSED, 29724: 29724: 29724: 29724: BYTES_COMPRESSED_FROM, 29724: 29724: 29724: BYTES_COMPRESSED_TO, 29724: 29724: 29724: 29724: 29724: BYTES_COMPRESSION_BYPASSED, 29724: 29724: 29724: 29724: 29724: 29724: BYTES_COMPRESSION_REJECTED, 29724: 29724: 29724: NUMBER_BLOCK_COMPRESSION_BYPASSED, 29724: 29724: NUMBER_BLOCK_COMPRESSION_REJECTED, 29724: 29724: 29724: 29724: BYTES_DECOMPRESSED_FROM, 29724: 29724: 29724: BYTES_DECOMPRESSED_TO, 29724: 29724: 29724: MERGE_OPERATION_TOTAL_TIME, 29724: FILTER_OPERATION_TOTAL_TIME, 29724: COMPACTION_CPU_TOTAL_TIME, 29724: 29724: 29724: ROW_CACHE_HIT, 29724: ROW_CACHE_MISS, 29724: 29724: 29724: 29724: 29724: 29724: 29724: READ_AMP_ESTIMATE_USEFUL_BYTES, 29724: READ_AMP_TOTAL_READ_BYTES, 29724: 29724: 29724: NUMBER_RATE_LIMITER_DRAINS, 29724: 29724: 29724: 29724: BLOB_DB_NUM_PUT, 29724: 29724: BLOB_DB_NUM_WRITE, 29724: 29724: BLOB_DB_NUM_GET, 29724: 29724: BLOB_DB_NUM_MULTIGET, 29724: 29724: 29724: BLOB_DB_NUM_SEEK, 29724: 29724: BLOB_DB_NUM_NEXT, 29724: 29724: BLOB_DB_NUM_PREV, 29724: 29724: BLOB_DB_NUM_KEYS_WRITTEN, 29724: 29724: BLOB_DB_NUM_KEYS_READ, 29724: 29724: 29724: BLOB_DB_BYTES_WRITTEN, 29724: 29724: 29724: BLOB_DB_BYTES_READ, 29724: 29724: 29724: BLOB_DB_WRITE_INLINED, 29724: 29724: 29724: BLOB_DB_WRITE_INLINED_TTL, 29724: 29724: 29724: BLOB_DB_WRITE_BLOB, 29724: 29724: 29724: BLOB_DB_WRITE_BLOB_TTL, 29724: 29724: BLOB_DB_BLOB_FILE_BYTES_WRITTEN, 29724: 29724: BLOB_DB_BLOB_FILE_BYTES_READ, 29724: 29724: BLOB_DB_BLOB_FILE_SYNCED, 29724: 29724: 29724: BLOB_DB_BLOB_INDEX_EXPIRED_COUNT, 29724: 29724: 29724: BLOB_DB_BLOB_INDEX_EXPIRED_SIZE, 29724: 29724: 29724: BLOB_DB_BLOB_INDEX_EVICTED_COUNT, 29724: 29724: 29724: BLOB_DB_BLOB_INDEX_EVICTED_SIZE, 29724: 29724: 29724: BLOB_DB_GC_NUM_FILES, 29724: 29724: 29724: BLOB_DB_GC_NUM_NEW_FILES, 29724: 29724: BLOB_DB_GC_FAILURES, 29724: 29724: BLOB_DB_GC_NUM_KEYS_RELOCATED, 29724: 29724: BLOB_DB_GC_BYTES_RELOCATED, 29724: 29724: 29724: BLOB_DB_FIFO_NUM_FILES_EVICTED, 29724: 29724: 29724: BLOB_DB_FIFO_NUM_KEYS_EVICTED, 29724: 29724: 29724: BLOB_DB_FIFO_BYTES_EVICTED, 29724: 29724: 29724: 29724: BLOB_DB_CACHE_MISS, 29724: 29724: BLOB_DB_CACHE_HIT, 29724: 29724: BLOB_DB_CACHE_ADD, 29724: 29724: BLOB_DB_CACHE_ADD_FAILURES, 29724: 29724: BLOB_DB_CACHE_BYTES_READ, 29724: 29724: BLOB_DB_CACHE_BYTES_WRITE, 29724: 29724: 29724: 29724: 29724: TXN_PREPARE_MUTEX_OVERHEAD, 29724: 29724: TXN_OLD_COMMIT_MAP_MUTEX_OVERHEAD, 29724: 29724: TXN_DUPLICATE_KEY_OVERHEAD, 29724: 29724: TXN_SNAPSHOT_MUTEX_OVERHEAD, 29724: 29724: TXN_GET_TRY_AGAIN, 29724: 29724: 29724: 29724: FILES_MARKED_TRASH, 29724: 29724: FILES_DELETED_FROM_TRASH_QUEUE, 29724: 29724: 29724: FILES_DELETED_IMMEDIATELY, 29724: 29724: 29724: 29724: ERROR_HANDLER_BG_ERROR_COUNT, 29724: ERROR_HANDLER_BG_IO_ERROR_COUNT, 29724: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT, 29724: ERROR_HANDLER_AUTORESUME_COUNT, 29724: ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT, 29724: ERROR_HANDLER_AUTORESUME_SUCCESS_COUNT, 29724: 29724: 29724: 29724: MEMTABLE_PAYLOAD_BYTES_AT_FLUSH, 29724: 29724: MEMTABLE_GARBAGE_BYTES_AT_FLUSH, 29724: 29724: 29724: VERIFY_CHECKSUM_READ_BYTES, 29724: 29724: 29724: BACKUP_READ_BYTES, 29724: BACKUP_WRITE_BYTES, 29724: 29724: 29724: REMOTE_COMPACT_READ_BYTES, 29724: REMOTE_COMPACT_WRITE_BYTES, 29724: 29724: 29724: HOT_FILE_READ_BYTES, 29724: WARM_FILE_READ_BYTES, 29724: COLD_FILE_READ_BYTES, 29724: HOT_FILE_READ_COUNT, 29724: WARM_FILE_READ_COUNT, 29724: COLD_FILE_READ_COUNT, 29724: 29724: 29724: LAST_LEVEL_READ_BYTES, 29724: LAST_LEVEL_READ_COUNT, 29724: NON_LAST_LEVEL_READ_BYTES, 29724: NON_LAST_LEVEL_READ_COUNT, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: LAST_LEVEL_SEEK_FILTERED, 29724: 29724: 29724: LAST_LEVEL_SEEK_FILTER_MATCH, 29724: 29724: 29724: LAST_LEVEL_SEEK_DATA, 29724: 29724: 29724: LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 29724: 29724: 29724: LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 29724: 29724: NON_LAST_LEVEL_SEEK_FILTERED, 29724: NON_LAST_LEVEL_SEEK_FILTER_MATCH, 29724: NON_LAST_LEVEL_SEEK_DATA, 29724: NON_LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 29724: NON_LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 29724: 29724: 29724: BLOCK_CHECKSUM_COMPUTE_COUNT, 29724: 29724: 29724: 29724: BLOCK_CHECKSUM_MISMATCH_COUNT, 29724: 29724: MULTIGET_COROUTINE_COUNT, 29724: 29724: 29724: READ_ASYNC_MICROS, 29724: 29724: ASYNC_READ_ERROR_COUNT, 29724: 29724: 29724: 29724: 29724: TABLE_OPEN_PREFETCH_TAIL_MISS, 29724: 29724: 29724: 29724: TABLE_OPEN_PREFETCH_TAIL_HIT, 29724: 29724: 29724: 29724: TIMESTAMP_FILTER_TABLE_CHECKED, 29724: 29724: TIMESTAMP_FILTER_TABLE_FILTERED, 29724: 29724: 29724: 29724: READAHEAD_TRIMMED, 29724: 29724: 29724: FIFO_MAX_SIZE_COMPACTIONS, 29724: FIFO_TTL_COMPACTIONS, 29724: 29724: 29724: PREFETCH_BYTES, 29724: 29724: 29724: PREFETCH_BYTES_USEFUL, 29724: 29724: 29724: PREFETCH_HITS, 29724: 29724: 29724: SST_FOOTER_CORRUPTION_COUNT, 29724: 29724: 29724: 29724: FILE_READ_CORRUPTION_RETRY_COUNT, 29724: FILE_READ_CORRUPTION_RETRY_SUCCESS_COUNT, 29724: 29724: TICKER_ENUM_MAX 29724: }; 29724: 29724: 29724: 29724: extern const std::vector> TickersNameMap; 29724: # 555 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: enum Histograms : uint32_t { 29724: DB_GET = 0, 29724: DB_WRITE, 29724: COMPACTION_TIME, 29724: COMPACTION_CPU_TIME, 29724: SUBCOMPACTION_SETUP_TIME, 29724: TABLE_SYNC_MICROS, 29724: COMPACTION_OUTFILE_SYNC_MICROS, 29724: WAL_FILE_SYNC_MICROS, 29724: MANIFEST_FILE_SYNC_MICROS, 29724: 29724: TABLE_OPEN_IO_MICROS, 29724: DB_MULTIGET, 29724: READ_BLOCK_COMPACTION_MICROS, 29724: READ_BLOCK_GET_MICROS, 29724: WRITE_RAW_BLOCK_MICROS, 29724: NUM_FILES_IN_SINGLE_COMPACTION, 29724: DB_SEEK, 29724: WRITE_STALL, 29724: 29724: SST_READ_MICROS, 29724: 29724: 29724: FILE_READ_FLUSH_MICROS, 29724: FILE_READ_COMPACTION_MICROS, 29724: FILE_READ_DB_OPEN_MICROS, 29724: 29724: 29724: FILE_READ_GET_MICROS, 29724: FILE_READ_MULTIGET_MICROS, 29724: FILE_READ_DB_ITERATOR_MICROS, 29724: FILE_READ_VERIFY_DB_CHECKSUM_MICROS, 29724: FILE_READ_VERIFY_FILE_CHECKSUMS_MICROS, 29724: 29724: 29724: SST_WRITE_MICROS, 29724: 29724: 29724: FILE_WRITE_FLUSH_MICROS, 29724: FILE_WRITE_COMPACTION_MICROS, 29724: FILE_WRITE_DB_OPEN_MICROS, 29724: 29724: 29724: NUM_SUBCOMPACTIONS_SCHEDULED, 29724: 29724: BYTES_PER_READ, 29724: BYTES_PER_WRITE, 29724: BYTES_PER_MULTIGET, 29724: 29724: COMPRESSION_TIMES_NANOS, 29724: DECOMPRESSION_TIMES_NANOS, 29724: 29724: 29724: READ_NUM_MERGE_OPERANDS, 29724: 29724: 29724: 29724: BLOB_DB_KEY_SIZE, 29724: 29724: BLOB_DB_VALUE_SIZE, 29724: 29724: 29724: BLOB_DB_WRITE_MICROS, 29724: 29724: BLOB_DB_GET_MICROS, 29724: 29724: BLOB_DB_MULTIGET_MICROS, 29724: 29724: 29724: BLOB_DB_SEEK_MICROS, 29724: 29724: BLOB_DB_NEXT_MICROS, 29724: 29724: BLOB_DB_PREV_MICROS, 29724: 29724: BLOB_DB_BLOB_FILE_WRITE_MICROS, 29724: 29724: BLOB_DB_BLOB_FILE_READ_MICROS, 29724: 29724: BLOB_DB_BLOB_FILE_SYNC_MICROS, 29724: 29724: BLOB_DB_COMPRESSION_MICROS, 29724: 29724: BLOB_DB_DECOMPRESSION_MICROS, 29724: 29724: FLUSH_TIME, 29724: SST_BATCH_SIZE, 29724: 29724: 29724: MULTIGET_IO_BATCH_SIZE, 29724: 29724: 29724: NUM_INDEX_AND_FILTER_BLOCKS_READ_PER_LEVEL, 29724: 29724: NUM_SST_READ_PER_LEVEL, 29724: 29724: NUM_LEVEL_READ_PER_MULTIGET, 29724: 29724: 29724: ERROR_HANDLER_AUTORESUME_RETRY_COUNT, 29724: 29724: 29724: ASYNC_READ_BYTES, 29724: POLL_WAIT_MICROS, 29724: 29724: 29724: PREFETCHED_BYTES_DISCARDED, 29724: 29724: 29724: ASYNC_PREFETCH_ABORT_MICROS, 29724: 29724: 29724: 29724: TABLE_OPEN_PREFETCH_TAIL_READ_BYTES, 29724: 29724: HISTOGRAM_ENUM_MAX 29724: }; 29724: 29724: extern const std::vector> HistogramsNameMap; 29724: 29724: struct HistogramData { 29724: double median; 29724: double percentile95; 29724: double percentile99; 29724: double average; 29724: double standard_deviation; 29724: 29724: 29724: double max = 0.0; 29724: uint64_t count = 0; 29724: uint64_t sum = 0; 29724: double min = 0.0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: enum StatsLevel : uint8_t { 29724: 29724: kDisableAll, 29724: 29724: kExceptTickers = kDisableAll, 29724: 29724: kExceptHistogramOrTimers, 29724: 29724: kExceptTimers, 29724: 29724: 29724: kExceptDetailedTimers, 29724: 29724: 29724: kExceptTimeForMutex, 29724: 29724: 29724: 29724: kAll, 29724: }; 29724: # 727 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: class Statistics : public Customizable { 29724: public: 29724: ~Statistics() override {} 29724: static const char* Type() { return "Statistics"; } 29724: static Status CreateFromString(const ConfigOptions& opts, 29724: const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: const char* Name() const override { return ""; } 29724: virtual uint64_t getTickerCount(uint32_t tickerType) const = 0; 29724: virtual void histogramData(uint32_t type, 29724: HistogramData* const data) const = 0; 29724: virtual std::string getHistogramString(uint32_t ) const { return ""; } 29724: virtual void recordTick(uint32_t tickerType, uint64_t count = 1) = 0; 29724: virtual void setTickerCount(uint32_t tickerType, uint64_t count) = 0; 29724: virtual uint64_t getAndResetTickerCount(uint32_t tickerType) = 0; 29724: virtual void reportTimeToHistogram(uint32_t histogramType, uint64_t time) { 29724: if (get_stats_level() <= StatsLevel::kExceptTimers) { 29724: return; 29724: } 29724: recordInHistogram(histogramType, time); 29724: } 29724: 29724: 29724: 29724: virtual void measureTime(uint32_t , uint64_t ) { 29724: 29724: 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29724: (static_cast ( 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: false 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: "false" 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: ; 29724: } 29724: virtual void recordInHistogram(uint32_t histogramType, uint64_t time) { 29724: 29724: 29724: 29724: 29724: measureTime(histogramType, time); 29724: } 29724: 29724: 29724: virtual Status Reset() { return Status::NotSupported("Not implemented"); } 29724: 29724: using Customizable::ToString; 29724: 29724: virtual std::string ToString() const { 29724: 29724: return std::string("ToString(): not implemented"); 29724: } 29724: 29724: virtual bool getTickerMap(std::map*) const { 29724: 29724: return false; 29724: } 29724: 29724: 29724: virtual bool HistEnabledForType(uint32_t type) const { 29724: return type < HISTOGRAM_ENUM_MAX; 29724: } 29724: void set_stats_level(StatsLevel sl) { 29724: stats_level_.store(sl, std::memory_order_relaxed); 29724: } 29724: StatsLevel get_stats_level() const { 29724: return stats_level_.load(std::memory_order_relaxed); 29724: } 29724: 29724: private: 29724: std::atomic stats_level_{kExceptDetailedTimers}; 29724: }; 29724: 29724: 29724: std::shared_ptr CreateDBStatistics(); 29724: 29724: } 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class HistogramBucketMapper { 29724: public: 29724: HistogramBucketMapper(); 29724: 29724: 29724: size_t IndexForValue(uint64_t value) const; 29724: 29724: 29724: size_t BucketCount() const { return bucketValues_.size(); } 29724: 29724: uint64_t LastValue() const { return maxBucketValue_; } 29724: 29724: uint64_t FirstValue() const { return minBucketValue_; } 29724: 29724: uint64_t BucketLimit(const size_t bucketNumber) const { 29724: 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29724: (static_cast ( 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29724: bucketNumber < BucketCount() 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29724: "bucketNumber < BucketCount()" 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29724: ; 29724: return bucketValues_[bucketNumber]; 29724: } 29724: 29724: private: 29724: std::vector bucketValues_; 29724: uint64_t maxBucketValue_; 29724: uint64_t minBucketValue_; 29724: }; 29724: 29724: struct HistogramStat { 29724: HistogramStat(); 29724: ~HistogramStat() {} 29724: 29724: HistogramStat(const HistogramStat&) = delete; 29724: HistogramStat& operator=(const HistogramStat&) = delete; 29724: 29724: void Clear(); 29724: bool Empty() const; 29724: void Add(uint64_t value); 29724: void Merge(const HistogramStat& other); 29724: 29724: inline uint64_t min() const { return min_.load(std::memory_order_relaxed); } 29724: inline uint64_t max() const { return max_.load(std::memory_order_relaxed); } 29724: inline uint64_t num() const { return num_.load(std::memory_order_relaxed); } 29724: inline uint64_t sum() const { return sum_.load(std::memory_order_relaxed); } 29724: inline uint64_t sum_squares() const { 29724: return sum_squares_.load(std::memory_order_relaxed); 29724: } 29724: inline uint64_t bucket_at(size_t b) const { 29724: return buckets_[b].load(std::memory_order_relaxed); 29724: } 29724: 29724: double Median() const; 29724: double Percentile(double p) const; 29724: double Average() const; 29724: double StandardDeviation() const; 29724: void Data(HistogramData* const data) const; 29724: std::string ToString() const; 29724: 29724: 29724: 29724: 29724: std::atomic_uint_fast64_t min_; 29724: std::atomic_uint_fast64_t max_; 29724: std::atomic_uint_fast64_t num_; 29724: std::atomic_uint_fast64_t sum_; 29724: std::atomic_uint_fast64_t sum_squares_; 29724: std::atomic_uint_fast64_t buckets_[109]; 29724: const uint64_t num_buckets_; 29724: }; 29724: 29724: class Histogram { 29724: public: 29724: Histogram() {} 29724: virtual ~Histogram(){} 29724: 29724: virtual void Clear() = 0; 29724: virtual bool Empty() const = 0; 29724: virtual void Add(uint64_t value) = 0; 29724: virtual void Merge(const Histogram&) = 0; 29724: 29724: virtual std::string ToString() const = 0; 29724: virtual const char* Name() const = 0; 29724: virtual uint64_t min() const = 0; 29724: virtual uint64_t max() const = 0; 29724: virtual uint64_t num() const = 0; 29724: virtual double Median() const = 0; 29724: virtual double Percentile(double p) const = 0; 29724: virtual double Average() const = 0; 29724: virtual double StandardDeviation() const = 0; 29724: virtual void Data(HistogramData* const data) const = 0; 29724: }; 29724: 29724: class HistogramImpl : public Histogram { 29724: public: 29724: HistogramImpl() { Clear(); } 29724: 29724: HistogramImpl(const HistogramImpl&) = delete; 29724: HistogramImpl& operator=(const HistogramImpl&) = delete; 29724: 29724: void Clear() override; 29724: bool Empty() const override; 29724: void Add(uint64_t value) override; 29724: void Merge(const Histogram& other) override; 29724: void Merge(const HistogramImpl& other); 29724: 29724: std::string ToString() const override; 29724: const char* Name() const override { return "HistogramImpl"; } 29724: uint64_t min() const override { return stats_.min(); } 29724: uint64_t max() const override { return stats_.max(); } 29724: uint64_t num() const override { return stats_.num(); } 29724: double Median() const override; 29724: double Percentile(double p) const override; 29724: double Average() const override; 29724: double StandardDeviation() const override; 29724: void Data(HistogramData* const data) const override; 29724: 29724: virtual ~HistogramImpl() {} 29724: 29724: inline HistogramStat& TEST_GetStats() { return stats_; } 29724: 29724: private: 29724: HistogramStat stats_; 29724: std::mutex mutex_; 29724: }; 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/likely.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/port/likely.h" 29724: 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 2 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/lang.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/port/lang.h" 29724: constexpr bool kMustFreeHeapAllocations = false; 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 2 29724: 29724: 29724: static_assert(true, "Semicolon required"); 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: template 29724: inline T BottomNBits(T v, int nbits) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: (static_cast ( 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: nbits >= 0 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: "nbits >= 0" 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: ; 29724: 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: (static_cast ( 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: nbits < int{8 * sizeof(T)} 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: "nbits < int{8 * sizeof(T)}" 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: ; 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: return static_cast(v & ((T{1} << nbits) - 1)); 29724: } 29724: 29724: 29724: 29724: template 29724: inline int FloorLog2(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: (static_cast ( 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: v > 0 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: "v > 0" 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: ; 29724: # 74 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29724: if (sizeof(T) <= sizeof(unsigned int)) { 29724: int lz = __builtin_clz(static_cast(v)); 29724: return int{sizeof(unsigned int)} * 8 - 1 - lz; 29724: } else if (sizeof(T) <= sizeof(unsigned long)) { 29724: int lz = __builtin_clzl(static_cast(v)); 29724: return int{sizeof(unsigned long)} * 8 - 1 - lz; 29724: } else { 29724: int lz = __builtin_clzll(static_cast(v)); 29724: return int{sizeof(unsigned long long)} * 8 - 1 - lz; 29724: } 29724: 29724: } 29724: 29724: 29724: template 29724: constexpr int ConstexprFloorLog2(T v) { 29724: 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: int rv = 0; 29724: while (v > T{1}) { 29724: ++rv; 29724: v >>= 1; 29724: } 29724: return rv; 29724: } 29724: 29724: 29724: template 29724: inline int CountTrailingZeroBits(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: (static_cast ( 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: v != 0 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: "v != 0" 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: ; 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29724: if (sizeof(T) <= sizeof(unsigned int)) { 29724: return __builtin_ctz(static_cast(v)); 29724: } else if (sizeof(T) <= sizeof(unsigned long)) { 29724: return __builtin_ctzl(static_cast(v)); 29724: } else { 29724: return __builtin_ctzll(static_cast(v)); 29724: } 29724: 29724: } 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: template 29724: inline int BitsSetToOne(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: # 209 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29724: if (sizeof(T) < sizeof(unsigned int)) { 29724: 29724: constexpr auto mm = 8 * sizeof(unsigned int) - 1; 29724: 29724: constexpr unsigned int m = (1U << ((8 * sizeof(T)) & mm)) - 1; 29724: return __builtin_popcount(static_cast(v) & m); 29724: } else if (sizeof(T) == sizeof(unsigned int)) { 29724: return __builtin_popcount(static_cast(v)); 29724: } else if (sizeof(T) <= sizeof(unsigned long)) { 29724: return __builtin_popcountl(static_cast(v)); 29724: } else { 29724: return __builtin_popcountll(static_cast(v)); 29724: } 29724: 29724: } 29724: 29724: template 29724: inline int BitParity(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: 29724: 29724: 29724: 29724: 29724: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29724: if (sizeof(T) <= sizeof(unsigned int)) { 29724: 29724: return __builtin_parity(static_cast(v)); 29724: } else if (sizeof(T) <= sizeof(unsigned long)) { 29724: return __builtin_parityl(static_cast(v)); 29724: } else { 29724: return __builtin_parityll(static_cast(v)); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline T EndianSwapValue(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: if (sizeof(T) == 2) { 29724: return static_cast(__builtin_bswap16(static_cast(v))); 29724: } else if (sizeof(T) == 4) { 29724: return static_cast(__builtin_bswap32(static_cast(v))); 29724: } else if (sizeof(T) == 8) { 29724: return static_cast(__builtin_bswap64(static_cast(v))); 29724: } 29724: 29724: 29724: T ret_val = 0; 29724: for (std::size_t i = 0; i < sizeof(T); ++i) { 29724: ret_val |= ((v >> (8 * i)) & 0xff) << (8 * (sizeof(T) - 1 - i)); 29724: } 29724: return ret_val; 29724: } 29724: 29724: 29724: template 29724: inline T ReverseBits(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: 29724: T r = EndianSwapValue(v); 29724: const T kHighestByte = T{1} << ((sizeof(T) - 1) * 8); 29724: const T kEveryByte = kHighestByte | (kHighestByte / 255); 29724: 29724: r = ((r & (kEveryByte * 0x0f)) << 4) | ((r >> 4) & (kEveryByte * 0x0f)); 29724: r = ((r & (kEveryByte * 0x33)) << 2) | ((r >> 2) & (kEveryByte * 0x33)); 29724: r = ((r & (kEveryByte * 0x55)) << 1) | ((r >> 1) & (kEveryByte * 0x55)); 29724: 29724: return r; 29724: } 29724: # 317 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: template 29724: inline T DownwardInvolution(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: static_assert(sizeof(T) <= 8, "only supported up to 64 bits"); 29724: 29724: uint64_t r = static_cast(v); 29724: if constexpr (sizeof(T) > 4) { 29724: r ^= r >> 32; 29724: } 29724: if constexpr (sizeof(T) > 2) { 29724: r ^= (r & 0xffff0000ffff0000U) >> 16; 29724: } 29724: if constexpr (sizeof(T) > 1) { 29724: r ^= (r & 0xff00ff00ff00ff00U) >> 8; 29724: } 29724: r ^= (r & 0xf0f0f0f0f0f0f0f0U) >> 4; 29724: r ^= (r & 0xccccccccccccccccU) >> 2; 29724: r ^= (r & 0xaaaaaaaaaaaaaaaaU) >> 1; 29724: return static_cast(r); 29724: } 29724: 29724: 29724: 29724: template 29724: inline std::conditional_t BitwiseAnd(A a, B b) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: using Smaller = std::conditional_t; 29724: return static_cast(a & b); 29724: } 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/random" 1 3 29724: # 32 "/usr/include/c++/14/random" 3 29724: 29724: # 33 "/usr/include/c++/14/random" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cmath" 1 3 29724: # 39 "/usr/include/c++/14/cmath" 3 29724: 29724: # 40 "/usr/include/c++/14/cmath" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/math.h" 1 3 4 29724: # 27 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 28 "/usr/include/math.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 34 "/usr/include/math.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libm-simd-decl-stubs.h" 1 3 4 29724: # 28 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 2 3 4 29724: # 41 "/usr/include/math.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29724: # 44 "/usr/include/math.h" 2 3 4 29724: # 152 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/flt-eval-method.h" 1 3 4 29724: # 153 "/usr/include/math.h" 2 3 4 29724: # 163 "/usr/include/math.h" 3 4 29724: typedef float float_t; 29724: typedef double double_t; 29724: # 204 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-logb.h" 1 3 4 29724: # 205 "/usr/include/math.h" 2 3 4 29724: # 247 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-fast.h" 1 3 4 29724: # 248 "/usr/include/math.h" 2 3 4 29724: 29724: 29724: 29724: enum 29724: { 29724: FP_INT_UPWARD = 29724: 29724: 0, 29724: FP_INT_DOWNWARD = 29724: 29724: 1, 29724: FP_INT_TOWARDZERO = 29724: 29724: 2, 29724: FP_INT_TONEARESTFROMZERO = 29724: 29724: 3, 29724: FP_INT_TONEAREST = 29724: 29724: 4, 29724: }; 29724: # 312 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29724: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29724: extern int __fpclassify (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __signbit (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern int __isinf (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __finite (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __isnan (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __iseqsig (double __x, double __y) noexcept (true); 29724: 29724: 29724: extern int __issignaling (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: # 313 "/usr/include/math.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); 29724: 29724: extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); 29724: 29724: extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); 29724: 29724: extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); 29724: 29724: 29724: extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); 29724: 29724: extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); 29724: 29724: extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); 29724: 29724: extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); 29724: 29724: extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); 29724: 29724: extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); 29724: 29724: extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); 29724: 29724: 29724: extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); 29724: 29724: 29724: extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); 29724: 29724: 29724: extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); 29724: 29724: 29724: extern double exp2m1 (double __x) noexcept (true); extern double __exp2m1 (double __x) noexcept (true); 29724: 29724: 29724: extern double exp10m1 (double __x) noexcept (true); extern double __exp10m1 (double __x) noexcept (true); 29724: 29724: 29724: extern double log2p1 (double __x) noexcept (true); extern double __log2p1 (double __x) noexcept (true); 29724: 29724: 29724: extern double log10p1 (double __x) noexcept (true); extern double __log10p1 (double __x) noexcept (true); 29724: 29724: 29724: extern double logp1 (double __x) noexcept (true); extern double __logp1 (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); 29724: 29724: 29724: extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); 29724: 29724: 29724: extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); 29724: 29724: 29724: extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); 29724: 29724: 29724: extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); 29724: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern int finite (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); 29724: 29724: 29724: 29724: extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); 29724: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); 29724: extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); 29724: extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); 29724: extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); 29724: extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); 29724: extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); 29724: extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); 29724: extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); 29724: 29724: 29724: extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); 29724: 29724: extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); 29724: 29724: extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); 29724: 29724: 29724: 29724: extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); 29724: __extension__ 29724: extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); 29724: 29724: 29724: 29724: extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfp (double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfp (double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpx (double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpx (double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalize (double *__cx, const double *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int totalorder (const double *__x, const double *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermag (const double *__x, const double *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); 29724: 29724: 29724: extern int setpayload (double *__x, double __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsig (double *__x, double __payload) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); 29724: # 314 "/usr/include/math.h" 2 3 4 29724: # 329 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29724: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29724: extern int __fpclassifyf (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __signbitf (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern int __isinff (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __finitef (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __isnanf (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __iseqsigf (float __x, float __y) noexcept (true); 29724: 29724: 29724: extern int __issignalingf (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: # 330 "/usr/include/math.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); 29724: 29724: extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); 29724: 29724: extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); 29724: 29724: extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); 29724: 29724: 29724: extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); 29724: 29724: extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); 29724: 29724: extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); 29724: 29724: extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); 29724: 29724: extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); 29724: 29724: extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); 29724: 29724: extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); 29724: 29724: 29724: extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); 29724: 29724: 29724: extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); 29724: 29724: 29724: extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); 29724: 29724: 29724: extern float exp2m1f (float __x) noexcept (true); extern float __exp2m1f (float __x) noexcept (true); 29724: 29724: 29724: extern float exp10m1f (float __x) noexcept (true); extern float __exp10m1f (float __x) noexcept (true); 29724: 29724: 29724: extern float log2p1f (float __x) noexcept (true); extern float __log2p1f (float __x) noexcept (true); 29724: 29724: 29724: extern float log10p1f (float __x) noexcept (true); extern float __log10p1f (float __x) noexcept (true); 29724: 29724: 29724: extern float logp1f (float __x) noexcept (true); extern float __logp1f (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); 29724: 29724: 29724: extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); 29724: 29724: 29724: extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); 29724: 29724: 29724: extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); 29724: 29724: 29724: extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); 29724: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern int isinff (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int finitef (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); 29724: 29724: 29724: 29724: extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); 29724: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern int isnanf (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 29724: extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); 29724: extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); 29724: extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); 29724: extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); 29724: extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); 29724: extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); 29724: extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); 29724: extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); 29724: 29724: 29724: extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); 29724: 29724: extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); 29724: 29724: extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); 29724: 29724: 29724: 29724: extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); 29724: __extension__ 29724: extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); 29724: 29724: 29724: 29724: extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf (float __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf (float __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf (float __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalizef (float *__cx, const float *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int totalorderf (const float *__x, const float *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermagf (const float *__x, const float *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); 29724: 29724: 29724: extern int setpayloadf (float *__x, float __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsigf (float *__x, float __payload) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); 29724: # 331 "/usr/include/math.h" 2 3 4 29724: # 398 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29724: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29724: extern int __fpclassifyl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __signbitl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern int __isinfl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __finitel (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __isnanl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __iseqsigl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern int __issignalingl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: # 399 "/usr/include/math.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); 29724: 29724: extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); 29724: 29724: extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); 29724: 29724: extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); 29724: 29724: 29724: extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); 29724: 29724: extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); 29724: 29724: extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); 29724: 29724: extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); 29724: 29724: extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 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) 29724: ; 29724: 29724: 29724: 29724: 29724: extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); 29724: 29724: extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); 29724: 29724: extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); 29724: 29724: 29724: extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); 29724: 29724: 29724: extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); 29724: 29724: 29724: 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))); 29724: 29724: 29724: 29724: extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double exp2m1l (long double __x) noexcept (true); extern long double __exp2m1l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double exp10m1l (long double __x) noexcept (true); extern long double __exp10m1l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double log2p1l (long double __x) noexcept (true); extern long double __log2p1l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double log10p1l (long double __x) noexcept (true); extern long double __log10p1l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double logp1l (long double __x) noexcept (true); extern long double __logp1l (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); 29724: 29724: 29724: extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); 29724: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern int isinfl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int finitel (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); 29724: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern int isnanl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 29724: extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); 29724: extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); 29724: extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); 29724: extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); 29724: extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); 29724: extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); 29724: extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); 29724: extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); 29724: 29724: 29724: extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); 29724: 29724: extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); 29724: 29724: extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 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); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); 29724: __extension__ 29724: extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: extern long double fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 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); 29724: 29724: 29724: 29724: 29724: extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpl (long double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern long double fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fmaximum_numl (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__)); 29724: 29724: 29724: extern long double fminimum_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__)); 29724: 29724: 29724: extern long double fmaximum_magl (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__)); 29724: 29724: 29724: extern long double fminimum_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__)); 29724: 29724: 29724: extern long double fmaximum_mag_numl (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__)); 29724: 29724: 29724: extern long double fminimum_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__)); 29724: 29724: 29724: 29724: 29724: extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); 29724: 29724: 29724: extern int setpayloadl (long double *__x, long double __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); 29724: # 400 "/usr/include/math.h" 2 3 4 29724: # 450 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 exp2m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2m1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 exp10m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10m1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 log2p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log2p1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 log10p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log10p1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 logp1f32 (_Float32 __x) noexcept (true); extern _Float32 __logp1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: 29724: 29724: extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); 29724: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); 29724: extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); 29724: extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); 29724: extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); 29724: extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); 29724: extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); 29724: extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); 29724: extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); 29724: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); 29724: __extension__ 29724: extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); 29724: 29724: 29724: extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 29724: # 451 "/usr/include/math.h" 2 3 4 29724: # 467 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 exp2m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2m1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 exp10m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10m1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 log2p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log2p1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 log10p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log10p1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 logp1f64 (_Float64 __x) noexcept (true); extern _Float64 __logp1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); 29724: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); 29724: extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); 29724: extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); 29724: extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); 29724: extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); 29724: extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); 29724: extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); 29724: extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); 29724: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); 29724: __extension__ 29724: extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); 29724: 29724: 29724: extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 29724: # 468 "/usr/include/math.h" 2 3 4 29724: # 501 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x exp2m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2m1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x exp10m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10m1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x log2p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log2p1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x log10p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log10p1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x logp1f32x (_Float32x __x) noexcept (true); extern _Float32x __logp1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); 29724: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); 29724: extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); 29724: extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); 29724: extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); 29724: extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); 29724: extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); 29724: extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); 29724: extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); 29724: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); 29724: __extension__ 29724: extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); 29724: 29724: 29724: extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 29724: # 502 "/usr/include/math.h" 2 3 4 29724: # 566 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern float fadd (double __x, double __y) noexcept (true); 29724: 29724: 29724: extern float fdiv (double __x, double __y) noexcept (true); 29724: 29724: 29724: extern float ffma (double __x, double __y, double __z) noexcept (true); 29724: 29724: 29724: extern float fmul (double __x, double __y) noexcept (true); 29724: 29724: 29724: extern float fsqrt (double __x) noexcept (true); 29724: 29724: 29724: extern float fsub (double __x, double __y) noexcept (true); 29724: # 567 "/usr/include/math.h" 2 3 4 29724: # 587 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern float faddl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern float fdivl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); 29724: 29724: 29724: extern float fmull (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern float fsqrtl (long double __x) noexcept (true); 29724: 29724: 29724: extern float fsubl (long double __x, long double __y) noexcept (true); 29724: # 588 "/usr/include/math.h" 2 3 4 29724: # 616 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern double daddl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern double ddivl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); 29724: 29724: 29724: extern double dmull (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern double dsqrtl (long double __x) noexcept (true); 29724: 29724: 29724: extern double dsubl (long double __x, long double __y) noexcept (true); 29724: # 617 "/usr/include/math.h" 2 3 4 29724: # 697 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 29724: 29724: 29724: extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: # 698 "/usr/include/math.h" 2 3 4 29724: # 707 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29724: 29724: 29724: extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: # 708 "/usr/include/math.h" 2 3 4 29724: # 747 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29724: 29724: 29724: extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: # 748 "/usr/include/math.h" 2 3 4 29724: # 854 "/usr/include/math.h" 3 4 29724: extern int signgam; 29724: # 934 "/usr/include/math.h" 3 4 29724: enum 29724: { 29724: FP_NAN = 29724: 29724: 0, 29724: FP_INFINITE = 29724: 29724: 1, 29724: FP_ZERO = 29724: 29724: 2, 29724: FP_SUBNORMAL = 29724: 29724: 3, 29724: FP_NORMAL = 29724: 29724: 4 29724: }; 29724: # 1055 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/iscanonical.h" 1 3 4 29724: # 1056 "/usr/include/math.h" 2 3 4 29724: # 1067 "/usr/include/math.h" 3 4 29724: extern "C++" { 29724: inline int issignaling (float __val) { return __issignalingf (__val); } 29724: inline int issignaling (double __val) { return __issignaling (__val); } 29724: inline int 29724: issignaling (long double __val) 29724: { 29724: 29724: return __issignaling (__val); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 1098 "/usr/include/math.h" 3 4 29724: extern "C++" { 29724: # 1129 "/usr/include/math.h" 3 4 29724: template inline bool 29724: iszero (__T __val) 29724: { 29724: return __val == 0; 29724: } 29724: 29724: } 29724: # 1364 "/usr/include/math.h" 3 4 29724: extern "C++" { 29724: template struct __iseqsig_type; 29724: 29724: template<> struct __iseqsig_type 29724: { 29724: static int __call (float __x, float __y) throw () 29724: { 29724: return __iseqsigf (__x, __y); 29724: } 29724: }; 29724: 29724: template<> struct __iseqsig_type 29724: { 29724: static int __call (double __x, double __y) throw () 29724: { 29724: return __iseqsig (__x, __y); 29724: } 29724: }; 29724: 29724: template<> struct __iseqsig_type 29724: { 29724: static int __call (long double __x, long double __y) throw () 29724: { 29724: 29724: 29724: 29724: return __iseqsig (__x, __y); 29724: 29724: } 29724: }; 29724: 29724: 29724: template<> struct __iseqsig_type<_Float32> 29724: { 29724: static int __call (_Float32 __x, _Float32 __y) throw () 29724: { 29724: return __iseqsigf (__x, __y); 29724: } 29724: }; 29724: 29724: 29724: 29724: template<> struct __iseqsig_type<_Float64> 29724: { 29724: static int __call (_Float64 __x, _Float64 __y) throw () 29724: { 29724: return __iseqsig (__x, __y); 29724: } 29724: }; 29724: # 1432 "/usr/include/math.h" 3 4 29724: template<> struct __iseqsig_type<_Float32x> 29724: { 29724: static int __call (_Float32x __x, _Float32x __y) throw () 29724: { 29724: return __iseqsig (__x, __y); 29724: } 29724: }; 29724: # 1455 "/usr/include/math.h" 3 4 29724: template 29724: inline int 29724: iseqsig (_T1 __x, _T2 __y) throw () 29724: { 29724: 29724: typedef decltype (((__x) + (__y) + 0.0f)) _T3; 29724: 29724: 29724: 29724: return __iseqsig_type<_T3>::__call (__x, __y); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 48 "/usr/include/c++/14/cmath" 2 3 29724: # 56 "/usr/include/c++/14/cmath" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 57 "/usr/include/c++/14/cmath" 2 3 29724: # 83 "/usr/include/c++/14/cmath" 3 29724: extern "C++" 29724: { 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: using ::acos; 29724: 29724: 29724: inline constexpr float 29724: acos(float __x) 29724: { return __builtin_acosf(__x); } 29724: 29724: inline constexpr long double 29724: acos(long double __x) 29724: { return __builtin_acosl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: acos(_Tp __x) 29724: { return __builtin_acos(__x); } 29724: 29724: using ::asin; 29724: 29724: 29724: inline constexpr float 29724: asin(float __x) 29724: { return __builtin_asinf(__x); } 29724: 29724: inline constexpr long double 29724: asin(long double __x) 29724: { return __builtin_asinl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: asin(_Tp __x) 29724: { return __builtin_asin(__x); } 29724: 29724: using ::atan; 29724: 29724: 29724: inline constexpr float 29724: atan(float __x) 29724: { return __builtin_atanf(__x); } 29724: 29724: inline constexpr long double 29724: atan(long double __x) 29724: { return __builtin_atanl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: atan(_Tp __x) 29724: { return __builtin_atan(__x); } 29724: 29724: using ::atan2; 29724: 29724: 29724: inline constexpr float 29724: atan2(float __y, float __x) 29724: { return __builtin_atan2f(__y, __x); } 29724: 29724: inline constexpr long double 29724: atan2(long double __y, long double __x) 29724: { return __builtin_atan2l(__y, __x); } 29724: 29724: 29724: using ::ceil; 29724: 29724: 29724: inline constexpr float 29724: ceil(float __x) 29724: { return __builtin_ceilf(__x); } 29724: 29724: inline constexpr long double 29724: ceil(long double __x) 29724: { return __builtin_ceill(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: ceil(_Tp __x) 29724: { return __builtin_ceil(__x); } 29724: 29724: using ::cos; 29724: 29724: 29724: inline constexpr float 29724: cos(float __x) 29724: { return __builtin_cosf(__x); } 29724: 29724: inline constexpr long double 29724: cos(long double __x) 29724: { return __builtin_cosl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: cos(_Tp __x) 29724: { return __builtin_cos(__x); } 29724: 29724: using ::cosh; 29724: 29724: 29724: inline constexpr float 29724: cosh(float __x) 29724: { return __builtin_coshf(__x); } 29724: 29724: inline constexpr long double 29724: cosh(long double __x) 29724: { return __builtin_coshl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: cosh(_Tp __x) 29724: { return __builtin_cosh(__x); } 29724: 29724: using ::exp; 29724: 29724: 29724: inline constexpr float 29724: exp(float __x) 29724: { return __builtin_expf(__x); } 29724: 29724: inline constexpr long double 29724: exp(long double __x) 29724: { return __builtin_expl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: exp(_Tp __x) 29724: { return __builtin_exp(__x); } 29724: 29724: using ::fabs; 29724: 29724: 29724: inline constexpr float 29724: fabs(float __x) 29724: { return __builtin_fabsf(__x); } 29724: 29724: inline constexpr long double 29724: fabs(long double __x) 29724: { return __builtin_fabsl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: fabs(_Tp __x) 29724: { return __builtin_fabs(__x); } 29724: 29724: using ::floor; 29724: 29724: 29724: inline constexpr float 29724: floor(float __x) 29724: { return __builtin_floorf(__x); } 29724: 29724: inline constexpr long double 29724: floor(long double __x) 29724: { return __builtin_floorl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: floor(_Tp __x) 29724: { return __builtin_floor(__x); } 29724: 29724: using ::fmod; 29724: 29724: 29724: inline constexpr float 29724: fmod(float __x, float __y) 29724: { return __builtin_fmodf(__x, __y); } 29724: 29724: inline constexpr long double 29724: fmod(long double __x, long double __y) 29724: { return __builtin_fmodl(__x, __y); } 29724: 29724: 29724: using ::frexp; 29724: 29724: 29724: inline float 29724: frexp(float __x, int* __exp) 29724: { return __builtin_frexpf(__x, __exp); } 29724: 29724: inline long double 29724: frexp(long double __x, int* __exp) 29724: { return __builtin_frexpl(__x, __exp); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: frexp(_Tp __x, int* __exp) 29724: { return __builtin_frexp(__x, __exp); } 29724: 29724: using ::ldexp; 29724: 29724: 29724: inline constexpr float 29724: ldexp(float __x, int __exp) 29724: { return __builtin_ldexpf(__x, __exp); } 29724: 29724: inline constexpr long double 29724: ldexp(long double __x, int __exp) 29724: { return __builtin_ldexpl(__x, __exp); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: ldexp(_Tp __x, int __exp) 29724: { return __builtin_ldexp(__x, __exp); } 29724: 29724: using ::log; 29724: 29724: 29724: inline constexpr float 29724: log(float __x) 29724: { return __builtin_logf(__x); } 29724: 29724: inline constexpr long double 29724: log(long double __x) 29724: { return __builtin_logl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: log(_Tp __x) 29724: { return __builtin_log(__x); } 29724: 29724: using ::log10; 29724: 29724: 29724: inline constexpr float 29724: log10(float __x) 29724: { return __builtin_log10f(__x); } 29724: 29724: inline constexpr long double 29724: log10(long double __x) 29724: { return __builtin_log10l(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: log10(_Tp __x) 29724: { return __builtin_log10(__x); } 29724: 29724: using ::modf; 29724: 29724: 29724: inline float 29724: modf(float __x, float* __iptr) 29724: { return __builtin_modff(__x, __iptr); } 29724: 29724: inline long double 29724: modf(long double __x, long double* __iptr) 29724: { return __builtin_modfl(__x, __iptr); } 29724: 29724: 29724: using ::pow; 29724: 29724: 29724: inline constexpr float 29724: pow(float __x, float __y) 29724: { return __builtin_powf(__x, __y); } 29724: 29724: inline constexpr long double 29724: pow(long double __x, long double __y) 29724: { return __builtin_powl(__x, __y); } 29724: # 400 "/usr/include/c++/14/cmath" 3 29724: using ::sin; 29724: 29724: 29724: inline constexpr float 29724: sin(float __x) 29724: { return __builtin_sinf(__x); } 29724: 29724: inline constexpr long double 29724: sin(long double __x) 29724: { return __builtin_sinl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: sin(_Tp __x) 29724: { return __builtin_sin(__x); } 29724: 29724: using ::sinh; 29724: 29724: 29724: inline constexpr float 29724: sinh(float __x) 29724: { return __builtin_sinhf(__x); } 29724: 29724: inline constexpr long double 29724: sinh(long double __x) 29724: { return __builtin_sinhl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: sinh(_Tp __x) 29724: { return __builtin_sinh(__x); } 29724: 29724: using ::sqrt; 29724: 29724: 29724: inline constexpr float 29724: sqrt(float __x) 29724: { return __builtin_sqrtf(__x); } 29724: 29724: inline constexpr long double 29724: sqrt(long double __x) 29724: { return __builtin_sqrtl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: sqrt(_Tp __x) 29724: { return __builtin_sqrt(__x); } 29724: 29724: using ::tan; 29724: 29724: 29724: inline constexpr float 29724: tan(float __x) 29724: { return __builtin_tanf(__x); } 29724: 29724: inline constexpr long double 29724: tan(long double __x) 29724: { return __builtin_tanl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: tan(_Tp __x) 29724: { return __builtin_tan(__x); } 29724: 29724: using ::tanh; 29724: 29724: 29724: inline constexpr float 29724: tanh(float __x) 29724: { return __builtin_tanhf(__x); } 29724: 29724: inline constexpr long double 29724: tanh(long double __x) 29724: { return __builtin_tanhl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: tanh(_Tp __x) 29724: { return __builtin_tanh(__x); } 29724: # 1053 "/usr/include/c++/14/cmath" 3 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: atan2(_Tp __y, _Up __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return atan2(__type(__y), __type(__x)); 29724: } 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: fmod(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return fmod(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: pow(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return pow(__type(__x), __type(__y)); 29724: } 29724: # 1100 "/usr/include/c++/14/cmath" 3 29724: constexpr int 29724: fpclassify(float __x) 29724: { return __builtin_fpclassify(0, 1, 4, 29724: 3, 2, __x); } 29724: 29724: constexpr int 29724: fpclassify(double __x) 29724: { return __builtin_fpclassify(0, 1, 4, 29724: 3, 2, __x); } 29724: 29724: constexpr int 29724: fpclassify(long double __x) 29724: { return __builtin_fpclassify(0, 1, 4, 29724: 3, 2, __x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: int>::__type 29724: fpclassify(_Tp __x) 29724: { return __x != 0 ? 4 : 2; } 29724: 29724: 29724: 29724: constexpr bool 29724: isfinite(float __x) 29724: { return __builtin_isfinite(__x); } 29724: 29724: constexpr bool 29724: isfinite(double __x) 29724: { return __builtin_isfinite(__x); } 29724: 29724: constexpr bool 29724: isfinite(long double __x) 29724: { return __builtin_isfinite(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: bool>::__type 29724: isfinite(_Tp) 29724: { return true; } 29724: 29724: 29724: 29724: constexpr bool 29724: isinf(float __x) 29724: { return __builtin_isinf(__x); } 29724: 29724: 29724: 29724: 29724: 29724: constexpr bool 29724: isinf(double __x) 29724: { return __builtin_isinf(__x); } 29724: 29724: 29724: constexpr bool 29724: isinf(long double __x) 29724: { return __builtin_isinf(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: bool>::__type 29724: isinf(_Tp) 29724: { return false; } 29724: 29724: 29724: 29724: constexpr bool 29724: isnan(float __x) 29724: { return __builtin_isnan(__x); } 29724: 29724: 29724: 29724: 29724: 29724: constexpr bool 29724: isnan(double __x) 29724: { return __builtin_isnan(__x); } 29724: 29724: 29724: constexpr bool 29724: isnan(long double __x) 29724: { return __builtin_isnan(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: bool>::__type 29724: isnan(_Tp) 29724: { return false; } 29724: 29724: 29724: 29724: constexpr bool 29724: isnormal(float __x) 29724: { return __builtin_isnormal(__x); } 29724: 29724: constexpr bool 29724: isnormal(double __x) 29724: { return __builtin_isnormal(__x); } 29724: 29724: constexpr bool 29724: isnormal(long double __x) 29724: { return __builtin_isnormal(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: bool>::__type 29724: isnormal(_Tp __x) 29724: { return __x != 0 ? true : false; } 29724: 29724: 29724: 29724: 29724: constexpr bool 29724: signbit(float __x) 29724: { return __builtin_signbit(__x); } 29724: 29724: constexpr bool 29724: signbit(double __x) 29724: { return __builtin_signbit(__x); } 29724: 29724: constexpr bool 29724: signbit(long double __x) 29724: { return __builtin_signbit(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: bool>::__type 29724: signbit(_Tp __x) 29724: { return __x < 0 ? true : false; } 29724: 29724: 29724: 29724: constexpr bool 29724: isgreater(float __x, float __y) 29724: { return __builtin_isgreater(__x, __y); } 29724: 29724: constexpr bool 29724: isgreater(double __x, double __y) 29724: { return __builtin_isgreater(__x, __y); } 29724: 29724: constexpr bool 29724: isgreater(long double __x, long double __y) 29724: { return __builtin_isgreater(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: isgreater(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_isgreater(__type(__x), __type(__y)); 29724: } 29724: 29724: 29724: 29724: constexpr bool 29724: isgreaterequal(float __x, float __y) 29724: { return __builtin_isgreaterequal(__x, __y); } 29724: 29724: constexpr bool 29724: isgreaterequal(double __x, double __y) 29724: { return __builtin_isgreaterequal(__x, __y); } 29724: 29724: constexpr bool 29724: isgreaterequal(long double __x, long double __y) 29724: { return __builtin_isgreaterequal(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: isgreaterequal(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_isgreaterequal(__type(__x), __type(__y)); 29724: } 29724: 29724: 29724: 29724: constexpr bool 29724: isless(float __x, float __y) 29724: { return __builtin_isless(__x, __y); } 29724: 29724: constexpr bool 29724: isless(double __x, double __y) 29724: { return __builtin_isless(__x, __y); } 29724: 29724: constexpr bool 29724: isless(long double __x, long double __y) 29724: { return __builtin_isless(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: isless(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_isless(__type(__x), __type(__y)); 29724: } 29724: 29724: 29724: 29724: constexpr bool 29724: islessequal(float __x, float __y) 29724: { return __builtin_islessequal(__x, __y); } 29724: 29724: constexpr bool 29724: islessequal(double __x, double __y) 29724: { return __builtin_islessequal(__x, __y); } 29724: 29724: constexpr bool 29724: islessequal(long double __x, long double __y) 29724: { return __builtin_islessequal(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: islessequal(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_islessequal(__type(__x), __type(__y)); 29724: } 29724: 29724: 29724: 29724: constexpr bool 29724: islessgreater(float __x, float __y) 29724: { return __builtin_islessgreater(__x, __y); } 29724: 29724: constexpr bool 29724: islessgreater(double __x, double __y) 29724: { return __builtin_islessgreater(__x, __y); } 29724: 29724: constexpr bool 29724: islessgreater(long double __x, long double __y) 29724: { return __builtin_islessgreater(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: islessgreater(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_islessgreater(__type(__x), __type(__y)); 29724: } 29724: 29724: 29724: 29724: constexpr bool 29724: isunordered(float __x, float __y) 29724: { return __builtin_isunordered(__x, __y); } 29724: 29724: constexpr bool 29724: isunordered(double __x, double __y) 29724: { return __builtin_isunordered(__x, __y); } 29724: 29724: constexpr bool 29724: isunordered(long double __x, long double __y) 29724: { return __builtin_isunordered(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: isunordered(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_isunordered(__type(__x), __type(__y)); 29724: } 29724: # 1820 "/usr/include/c++/14/cmath" 3 29724: using ::acosf; 29724: 29724: 29724: using ::acosl; 29724: 29724: 29724: 29724: using ::asinf; 29724: 29724: 29724: using ::asinl; 29724: 29724: 29724: 29724: using ::atanf; 29724: 29724: 29724: using ::atanl; 29724: 29724: 29724: 29724: using ::atan2f; 29724: 29724: 29724: using ::atan2l; 29724: 29724: 29724: 29724: using ::ceilf; 29724: 29724: 29724: using ::ceill; 29724: 29724: 29724: 29724: using ::cosf; 29724: 29724: 29724: using ::cosl; 29724: 29724: 29724: 29724: using ::coshf; 29724: 29724: 29724: using ::coshl; 29724: 29724: 29724: 29724: using ::expf; 29724: 29724: 29724: using ::expl; 29724: 29724: 29724: 29724: using ::fabsf; 29724: 29724: 29724: using ::fabsl; 29724: 29724: 29724: 29724: using ::floorf; 29724: 29724: 29724: using ::floorl; 29724: 29724: 29724: 29724: using ::fmodf; 29724: 29724: 29724: using ::fmodl; 29724: 29724: 29724: 29724: using ::frexpf; 29724: 29724: 29724: using ::frexpl; 29724: 29724: 29724: 29724: using ::ldexpf; 29724: 29724: 29724: using ::ldexpl; 29724: 29724: 29724: 29724: using ::logf; 29724: 29724: 29724: using ::logl; 29724: 29724: 29724: 29724: using ::log10f; 29724: 29724: 29724: using ::log10l; 29724: 29724: 29724: 29724: using ::modff; 29724: 29724: 29724: using ::modfl; 29724: 29724: 29724: 29724: using ::powf; 29724: 29724: 29724: using ::powl; 29724: 29724: 29724: 29724: using ::sinf; 29724: 29724: 29724: using ::sinl; 29724: 29724: 29724: 29724: using ::sinhf; 29724: 29724: 29724: using ::sinhl; 29724: 29724: 29724: 29724: using ::sqrtf; 29724: 29724: 29724: using ::sqrtl; 29724: 29724: 29724: 29724: using ::tanf; 29724: 29724: 29724: using ::tanl; 29724: 29724: 29724: 29724: using ::tanhf; 29724: 29724: 29724: using ::tanhl; 29724: # 2085 "/usr/include/c++/14/cmath" 3 29724: using ::double_t; 29724: using ::float_t; 29724: 29724: 29724: 29724: using ::acosh; 29724: using ::acoshf; 29724: using ::acoshl; 29724: 29724: using ::asinh; 29724: using ::asinhf; 29724: using ::asinhl; 29724: 29724: using ::atanh; 29724: using ::atanhf; 29724: using ::atanhl; 29724: 29724: using ::cbrt; 29724: using ::cbrtf; 29724: using ::cbrtl; 29724: 29724: using ::copysign; 29724: using ::copysignf; 29724: using ::copysignl; 29724: 29724: using ::erf; 29724: using ::erff; 29724: using ::erfl; 29724: 29724: using ::erfc; 29724: using ::erfcf; 29724: using ::erfcl; 29724: 29724: using ::exp2; 29724: using ::exp2f; 29724: using ::exp2l; 29724: 29724: using ::expm1; 29724: using ::expm1f; 29724: using ::expm1l; 29724: 29724: using ::fdim; 29724: using ::fdimf; 29724: using ::fdiml; 29724: 29724: using ::fma; 29724: using ::fmaf; 29724: using ::fmal; 29724: 29724: using ::fmax; 29724: using ::fmaxf; 29724: using ::fmaxl; 29724: 29724: using ::fmin; 29724: using ::fminf; 29724: using ::fminl; 29724: 29724: using ::hypot; 29724: using ::hypotf; 29724: using ::hypotl; 29724: 29724: using ::ilogb; 29724: using ::ilogbf; 29724: using ::ilogbl; 29724: 29724: using ::lgamma; 29724: using ::lgammaf; 29724: using ::lgammal; 29724: 29724: 29724: using ::llrint; 29724: using ::llrintf; 29724: using ::llrintl; 29724: 29724: using ::llround; 29724: using ::llroundf; 29724: using ::llroundl; 29724: 29724: 29724: using ::log1p; 29724: using ::log1pf; 29724: using ::log1pl; 29724: 29724: using ::log2; 29724: using ::log2f; 29724: using ::log2l; 29724: 29724: using ::logb; 29724: using ::logbf; 29724: using ::logbl; 29724: 29724: using ::lrint; 29724: using ::lrintf; 29724: using ::lrintl; 29724: 29724: using ::lround; 29724: using ::lroundf; 29724: using ::lroundl; 29724: 29724: using ::nan; 29724: using ::nanf; 29724: using ::nanl; 29724: 29724: using ::nearbyint; 29724: using ::nearbyintf; 29724: using ::nearbyintl; 29724: 29724: using ::nextafter; 29724: using ::nextafterf; 29724: using ::nextafterl; 29724: 29724: using ::nexttoward; 29724: using ::nexttowardf; 29724: using ::nexttowardl; 29724: 29724: using ::remainder; 29724: using ::remainderf; 29724: using ::remainderl; 29724: 29724: using ::remquo; 29724: using ::remquof; 29724: using ::remquol; 29724: 29724: using ::rint; 29724: using ::rintf; 29724: using ::rintl; 29724: 29724: using ::round; 29724: using ::roundf; 29724: using ::roundl; 29724: 29724: using ::scalbln; 29724: using ::scalblnf; 29724: using ::scalblnl; 29724: 29724: using ::scalbn; 29724: using ::scalbnf; 29724: using ::scalbnl; 29724: 29724: using ::tgamma; 29724: using ::tgammaf; 29724: using ::tgammal; 29724: 29724: using ::trunc; 29724: using ::truncf; 29724: using ::truncl; 29724: 29724: 29724: 29724: constexpr float 29724: acosh(float __x) 29724: { return __builtin_acoshf(__x); } 29724: 29724: constexpr long double 29724: acosh(long double __x) 29724: { return __builtin_acoshl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: acosh(_Tp __x) 29724: { return __builtin_acosh(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: asinh(float __x) 29724: { return __builtin_asinhf(__x); } 29724: 29724: constexpr long double 29724: asinh(long double __x) 29724: { return __builtin_asinhl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: asinh(_Tp __x) 29724: { return __builtin_asinh(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: atanh(float __x) 29724: { return __builtin_atanhf(__x); } 29724: 29724: constexpr long double 29724: atanh(long double __x) 29724: { return __builtin_atanhl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: atanh(_Tp __x) 29724: { return __builtin_atanh(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: cbrt(float __x) 29724: { return __builtin_cbrtf(__x); } 29724: 29724: constexpr long double 29724: cbrt(long double __x) 29724: { return __builtin_cbrtl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: cbrt(_Tp __x) 29724: { return __builtin_cbrt(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: copysign(float __x, float __y) 29724: { return __builtin_copysignf(__x, __y); } 29724: 29724: constexpr long double 29724: copysign(long double __x, long double __y) 29724: { return __builtin_copysignl(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: erf(float __x) 29724: { return __builtin_erff(__x); } 29724: 29724: constexpr long double 29724: erf(long double __x) 29724: { return __builtin_erfl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: erf(_Tp __x) 29724: { return __builtin_erf(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: erfc(float __x) 29724: { return __builtin_erfcf(__x); } 29724: 29724: constexpr long double 29724: erfc(long double __x) 29724: { return __builtin_erfcl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: erfc(_Tp __x) 29724: { return __builtin_erfc(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: exp2(float __x) 29724: { return __builtin_exp2f(__x); } 29724: 29724: constexpr long double 29724: exp2(long double __x) 29724: { return __builtin_exp2l(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: exp2(_Tp __x) 29724: { return __builtin_exp2(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: expm1(float __x) 29724: { return __builtin_expm1f(__x); } 29724: 29724: constexpr long double 29724: expm1(long double __x) 29724: { return __builtin_expm1l(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: expm1(_Tp __x) 29724: { return __builtin_expm1(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: fdim(float __x, float __y) 29724: { return __builtin_fdimf(__x, __y); } 29724: 29724: constexpr long double 29724: fdim(long double __x, long double __y) 29724: { return __builtin_fdiml(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: fma(float __x, float __y, float __z) 29724: { return __builtin_fmaf(__x, __y, __z); } 29724: 29724: constexpr long double 29724: fma(long double __x, long double __y, long double __z) 29724: { return __builtin_fmal(__x, __y, __z); } 29724: 29724: 29724: 29724: constexpr float 29724: fmax(float __x, float __y) 29724: { return __builtin_fmaxf(__x, __y); } 29724: 29724: constexpr long double 29724: fmax(long double __x, long double __y) 29724: { return __builtin_fmaxl(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: fmin(float __x, float __y) 29724: { return __builtin_fminf(__x, __y); } 29724: 29724: constexpr long double 29724: fmin(long double __x, long double __y) 29724: { return __builtin_fminl(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: hypot(float __x, float __y) 29724: { return __builtin_hypotf(__x, __y); } 29724: 29724: constexpr long double 29724: hypot(long double __x, long double __y) 29724: { return __builtin_hypotl(__x, __y); } 29724: 29724: 29724: 29724: constexpr int 29724: ilogb(float __x) 29724: { return __builtin_ilogbf(__x); } 29724: 29724: constexpr int 29724: ilogb(long double __x) 29724: { return __builtin_ilogbl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: int>::__type 29724: ilogb(_Tp __x) 29724: { return __builtin_ilogb(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: lgamma(float __x) 29724: { return __builtin_lgammaf(__x); } 29724: 29724: constexpr long double 29724: lgamma(long double __x) 29724: { return __builtin_lgammal(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: lgamma(_Tp __x) 29724: { return __builtin_lgamma(__x); } 29724: 29724: 29724: 29724: constexpr long long 29724: llrint(float __x) 29724: { return __builtin_llrintf(__x); } 29724: 29724: constexpr long long 29724: llrint(long double __x) 29724: { return __builtin_llrintl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: long long>::__type 29724: llrint(_Tp __x) 29724: { return __builtin_llrint(__x); } 29724: 29724: 29724: 29724: constexpr long long 29724: llround(float __x) 29724: { return __builtin_llroundf(__x); } 29724: 29724: constexpr long long 29724: llround(long double __x) 29724: { return __builtin_llroundl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: long long>::__type 29724: llround(_Tp __x) 29724: { return __builtin_llround(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: log1p(float __x) 29724: { return __builtin_log1pf(__x); } 29724: 29724: constexpr long double 29724: log1p(long double __x) 29724: { return __builtin_log1pl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: log1p(_Tp __x) 29724: { return __builtin_log1p(__x); } 29724: 29724: 29724: 29724: 29724: constexpr float 29724: log2(float __x) 29724: { return __builtin_log2f(__x); } 29724: 29724: constexpr long double 29724: log2(long double __x) 29724: { return __builtin_log2l(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: log2(_Tp __x) 29724: { return __builtin_log2(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: logb(float __x) 29724: { return __builtin_logbf(__x); } 29724: 29724: constexpr long double 29724: logb(long double __x) 29724: { return __builtin_logbl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: logb(_Tp __x) 29724: { return __builtin_logb(__x); } 29724: 29724: 29724: 29724: constexpr long 29724: lrint(float __x) 29724: { return __builtin_lrintf(__x); } 29724: 29724: constexpr long 29724: lrint(long double __x) 29724: { return __builtin_lrintl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: long>::__type 29724: lrint(_Tp __x) 29724: { return __builtin_lrint(__x); } 29724: 29724: 29724: 29724: constexpr long 29724: lround(float __x) 29724: { return __builtin_lroundf(__x); } 29724: 29724: constexpr long 29724: lround(long double __x) 29724: { return __builtin_lroundl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: long>::__type 29724: lround(_Tp __x) 29724: { return __builtin_lround(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: nearbyint(float __x) 29724: { return __builtin_nearbyintf(__x); } 29724: 29724: constexpr long double 29724: nearbyint(long double __x) 29724: { return __builtin_nearbyintl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: nearbyint(_Tp __x) 29724: { return __builtin_nearbyint(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: nextafter(float __x, float __y) 29724: { return __builtin_nextafterf(__x, __y); } 29724: 29724: constexpr long double 29724: nextafter(long double __x, long double __y) 29724: { return __builtin_nextafterl(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: nexttoward(float __x, long double __y) 29724: { return __builtin_nexttowardf(__x, __y); } 29724: 29724: constexpr long double 29724: nexttoward(long double __x, long double __y) 29724: { return __builtin_nexttowardl(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: nexttoward(_Tp __x, long double __y) 29724: { return __builtin_nexttoward(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: remainder(float __x, float __y) 29724: { return __builtin_remainderf(__x, __y); } 29724: 29724: constexpr long double 29724: remainder(long double __x, long double __y) 29724: { return __builtin_remainderl(__x, __y); } 29724: 29724: 29724: 29724: inline float 29724: remquo(float __x, float __y, int* __pquo) 29724: { return __builtin_remquof(__x, __y, __pquo); } 29724: 29724: inline long double 29724: remquo(long double __x, long double __y, int* __pquo) 29724: { return __builtin_remquol(__x, __y, __pquo); } 29724: 29724: 29724: 29724: constexpr float 29724: rint(float __x) 29724: { return __builtin_rintf(__x); } 29724: 29724: constexpr long double 29724: rint(long double __x) 29724: { return __builtin_rintl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: rint(_Tp __x) 29724: { return __builtin_rint(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: round(float __x) 29724: { return __builtin_roundf(__x); } 29724: 29724: constexpr long double 29724: round(long double __x) 29724: { return __builtin_roundl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: round(_Tp __x) 29724: { return __builtin_round(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: scalbln(float __x, long __ex) 29724: { return __builtin_scalblnf(__x, __ex); } 29724: 29724: constexpr long double 29724: scalbln(long double __x, long __ex) 29724: { return __builtin_scalblnl(__x, __ex); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: scalbln(_Tp __x, long __ex) 29724: { return __builtin_scalbln(__x, __ex); } 29724: 29724: 29724: 29724: constexpr float 29724: scalbn(float __x, int __ex) 29724: { return __builtin_scalbnf(__x, __ex); } 29724: 29724: constexpr long double 29724: scalbn(long double __x, int __ex) 29724: { return __builtin_scalbnl(__x, __ex); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: scalbn(_Tp __x, int __ex) 29724: { return __builtin_scalbn(__x, __ex); } 29724: 29724: 29724: 29724: constexpr float 29724: tgamma(float __x) 29724: { return __builtin_tgammaf(__x); } 29724: 29724: constexpr long double 29724: tgamma(long double __x) 29724: { return __builtin_tgammal(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: tgamma(_Tp __x) 29724: { return __builtin_tgamma(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: trunc(float __x) 29724: { return __builtin_truncf(__x); } 29724: 29724: constexpr long double 29724: trunc(long double __x) 29724: { return __builtin_truncl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: trunc(_Tp __x) 29724: { return __builtin_trunc(__x); } 29724: # 3682 "/usr/include/c++/14/cmath" 3 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: copysign(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return copysign(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: fdim(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return fdim(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: fmax(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return fmax(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: fmin(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return fmin(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: hypot(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return hypot(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: nextafter(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return nextafter(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: remainder(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return remainder(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: remquo(_Tp __x, _Up __y, int* __pquo) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return remquo(__type(__x), __type(__y), __pquo); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type 29724: fma(_Tp __x, _Up __y, _Vp __z) 29724: { 29724: typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; 29724: return fma(__type(__x), __type(__y), __type(__z)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline _Tp 29724: __hypot3(_Tp __x, _Tp __y, _Tp __z) 29724: { 29724: __x = std::abs(__x); 29724: __y = std::abs(__y); 29724: __z = std::abs(__z); 29724: if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) 29724: return __a * std::sqrt((__x / __a) * (__x / __a) 29724: + (__y / __a) * (__y / __a) 29724: + (__z / __a) * (__z / __a)); 29724: else 29724: return {}; 29724: } 29724: 29724: inline float 29724: hypot(float __x, float __y, float __z) 29724: { return std::__hypot3(__x, __y, __z); } 29724: 29724: inline double 29724: hypot(double __x, double __y, double __z) 29724: { return std::__hypot3(__x, __y, __z); } 29724: 29724: inline long double 29724: hypot(long double __x, long double __y, long double __z) 29724: { return std::__hypot3(__x, __y, __z); } 29724: 29724: template 29724: __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> 29724: hypot(_Tp __x, _Up __y, _Vp __z) 29724: { 29724: using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; 29724: return std::__hypot3<__type>(__x, __y, __z); 29724: } 29724: # 3902 "/usr/include/c++/14/cmath" 3 29724: 29724: } 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/specfun.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/specfun.h" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 38 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 47 "/usr/include/c++/14/bits/specfun.h" 3 29724: # 1 "/usr/include/c++/14/tr1/gamma.tcc" 1 3 29724: # 49 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: # 1 "/usr/include/c++/14/tr1/special_function_util.h" 1 3 29724: # 39 "/usr/include/c++/14/tr1/special_function_util.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 50 "/usr/include/c++/14/tr1/special_function_util.h" 3 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: template 29724: struct __floating_point_constant 29724: { 29724: static const _Tp __value; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __numeric_constants 29724: { 29724: 29724: static _Tp __pi() throw() 29724: { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } 29724: 29724: static _Tp __pi_2() throw() 29724: { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } 29724: 29724: static _Tp __pi_3() throw() 29724: { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } 29724: 29724: static _Tp __pi_4() throw() 29724: { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } 29724: 29724: static _Tp __1_pi() throw() 29724: { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } 29724: 29724: static _Tp __2_sqrtpi() throw() 29724: { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } 29724: 29724: static _Tp __sqrt2() throw() 29724: { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } 29724: 29724: static _Tp __sqrt3() throw() 29724: { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } 29724: 29724: static _Tp __sqrtpio2() throw() 29724: { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } 29724: 29724: static _Tp __sqrt1_2() throw() 29724: { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } 29724: 29724: static _Tp __lnpi() throw() 29724: { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } 29724: 29724: static _Tp __gamma_e() throw() 29724: { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } 29724: 29724: static _Tp __euler() throw() 29724: { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } 29724: }; 29724: # 114 "/usr/include/c++/14/tr1/special_function_util.h" 3 29724: template 29724: inline bool __isnan(_Tp __x) 29724: { return std::isnan(__x); } 29724: # 133 "/usr/include/c++/14/tr1/special_function_util.h" 3 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 50 "/usr/include/c++/14/tr1/gamma.tcc" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 65 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: namespace __detail 29724: { 29724: # 76 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __bernoulli_series(unsigned int __n) 29724: { 29724: 29724: static const _Tp __num[28] = { 29724: _Tp(1UL), -_Tp(1UL) / _Tp(2UL), 29724: _Tp(1UL) / _Tp(6UL), _Tp(0UL), 29724: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 29724: _Tp(1UL) / _Tp(42UL), _Tp(0UL), 29724: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 29724: _Tp(5UL) / _Tp(66UL), _Tp(0UL), 29724: -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), 29724: _Tp(7UL) / _Tp(6UL), _Tp(0UL), 29724: -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), 29724: _Tp(43867UL) / _Tp(798UL), _Tp(0UL), 29724: -_Tp(174611) / _Tp(330UL), _Tp(0UL), 29724: _Tp(854513UL) / _Tp(138UL), _Tp(0UL), 29724: -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), 29724: _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) 29724: }; 29724: 29724: if (__n == 0) 29724: return _Tp(1); 29724: 29724: if (__n == 1) 29724: return -_Tp(1) / _Tp(2); 29724: 29724: 29724: if (__n % 2 == 1) 29724: return _Tp(0); 29724: 29724: 29724: if (__n < 28) 29724: return __num[__n]; 29724: 29724: 29724: _Tp __fact = _Tp(1); 29724: if ((__n / 2) % 2 == 0) 29724: __fact *= _Tp(-1); 29724: for (unsigned int __k = 1; __k <= __n; ++__k) 29724: __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); 29724: __fact *= _Tp(2); 29724: 29724: _Tp __sum = _Tp(0); 29724: for (unsigned int __i = 1; __i < 1000; ++__i) 29724: { 29724: _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); 29724: if (__term < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __sum += __term; 29724: } 29724: 29724: return __fact * __sum; 29724: } 29724: # 139 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: inline _Tp 29724: __bernoulli(int __n) 29724: { return __bernoulli_series<_Tp>(__n); } 29724: # 153 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __log_gamma_bernoulli(_Tp __x) 29724: { 29724: _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x 29724: + _Tp(0.5L) * std::log(_Tp(2) 29724: * __numeric_constants<_Tp>::__pi()); 29724: 29724: const _Tp __xx = __x * __x; 29724: _Tp __help = _Tp(1) / __x; 29724: for ( unsigned int __i = 1; __i < 20; ++__i ) 29724: { 29724: const _Tp __2i = _Tp(2 * __i); 29724: __help /= __2i * (__2i - _Tp(1)) * __xx; 29724: __lg += __bernoulli<_Tp>(2 * __i) * __help; 29724: } 29724: 29724: return __lg; 29724: } 29724: # 181 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __log_gamma_lanczos(_Tp __x) 29724: { 29724: const _Tp __xm1 = __x - _Tp(1); 29724: 29724: static const _Tp __lanczos_cheb_7[9] = { 29724: _Tp( 0.99999999999980993227684700473478L), 29724: _Tp( 676.520368121885098567009190444019L), 29724: _Tp(-1259.13921672240287047156078755283L), 29724: _Tp( 771.3234287776530788486528258894L), 29724: _Tp(-176.61502916214059906584551354L), 29724: _Tp( 12.507343278686904814458936853L), 29724: _Tp(-0.13857109526572011689554707L), 29724: _Tp( 9.984369578019570859563e-6L), 29724: _Tp( 1.50563273514931155834e-7L) 29724: }; 29724: 29724: static const _Tp __LOGROOT2PI 29724: = _Tp(0.9189385332046727417803297364056176L); 29724: 29724: _Tp __sum = __lanczos_cheb_7[0]; 29724: for(unsigned int __k = 1; __k < 9; ++__k) 29724: __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); 29724: 29724: const _Tp __term1 = (__xm1 + _Tp(0.5L)) 29724: * std::log((__xm1 + _Tp(7.5L)) 29724: / __numeric_constants<_Tp>::__euler()); 29724: const _Tp __term2 = __LOGROOT2PI + std::log(__sum); 29724: const _Tp __result = __term1 + (__term2 - _Tp(7)); 29724: 29724: return __result; 29724: } 29724: # 225 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __log_gamma(_Tp __x) 29724: { 29724: if (__x > _Tp(0.5L)) 29724: return __log_gamma_lanczos(__x); 29724: else 29724: { 29724: const _Tp __sin_fact 29724: = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); 29724: if (__sin_fact == _Tp(0)) 29724: std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") 29724: ); 29724: return __numeric_constants<_Tp>::__lnpi() 29724: - std::log(__sin_fact) 29724: - __log_gamma_lanczos(_Tp(1) - __x); 29724: } 29724: } 29724: # 252 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __log_gamma_sign(_Tp __x) 29724: { 29724: if (__x > _Tp(0)) 29724: return _Tp(1); 29724: else 29724: { 29724: const _Tp __sin_fact 29724: = std::sin(__numeric_constants<_Tp>::__pi() * __x); 29724: if (__sin_fact > _Tp(0)) 29724: return (1); 29724: else if (__sin_fact < _Tp(0)) 29724: return -_Tp(1); 29724: else 29724: return _Tp(0); 29724: } 29724: } 29724: # 283 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __log_bincoef(unsigned int __n, unsigned int __k) 29724: { 29724: 29724: static const _Tp __max_bincoeff 29724: = std::numeric_limits<_Tp>::max_exponent10 29724: * std::log(_Tp(10)) - _Tp(1); 29724: 29724: _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) 29724: - ::std::lgamma(_Tp(1 + __k)) 29724: - ::std::lgamma(_Tp(1 + __n - __k)); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 314 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __bincoef(unsigned int __n, unsigned int __k) 29724: { 29724: 29724: static const _Tp __max_bincoeff 29724: = std::numeric_limits<_Tp>::max_exponent10 29724: * std::log(_Tp(10)) - _Tp(1); 29724: 29724: const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); 29724: if (__log_coeff > __max_bincoeff) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: return std::exp(__log_coeff); 29724: } 29724: # 337 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: inline _Tp 29724: __gamma(_Tp __x) 29724: { return std::exp(__log_gamma(__x)); } 29724: # 356 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __psi_series(_Tp __x) 29724: { 29724: _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; 29724: const unsigned int __max_iter = 100000; 29724: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29724: { 29724: const _Tp __term = __x / (__k * (__k + __x)); 29724: __sum += __term; 29724: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: } 29724: return __sum; 29724: } 29724: # 386 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __psi_asymp(_Tp __x) 29724: { 29724: _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; 29724: const _Tp __xx = __x * __x; 29724: _Tp __xp = __xx; 29724: const unsigned int __max_iter = 100; 29724: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29724: { 29724: const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); 29724: __sum -= __term; 29724: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __xp *= __xx; 29724: } 29724: return __sum; 29724: } 29724: # 417 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __psi(_Tp __x) 29724: { 29724: const int __n = static_cast(__x + 0.5L); 29724: const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); 29724: if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x < _Tp(0)) 29724: { 29724: const _Tp __pi = __numeric_constants<_Tp>::__pi(); 29724: return __psi(_Tp(1) - __x) 29724: - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); 29724: } 29724: else if (__x > _Tp(100)) 29724: return __psi_asymp(__x); 29724: else 29724: return __psi_series(__x); 29724: } 29724: # 446 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __psi(unsigned int __n, _Tp __x) 29724: { 29724: if (__x <= _Tp(0)) 29724: std::__throw_domain_error(("Argument out of range " "in __psi") 29724: ); 29724: else if (__n == 0) 29724: return __psi(__x); 29724: else 29724: { 29724: const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); 29724: 29724: const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); 29724: 29724: 29724: 29724: _Tp __result = std::exp(__ln_nfact) * __hzeta; 29724: if (__n % 2 == 1) 29724: __result = -__result; 29724: return __result; 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 48 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/bessel_function.tcc" 1 3 29724: # 55 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 71 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: namespace __detail 29724: { 29724: # 98 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: void 29724: __gamma_temme(_Tp __mu, 29724: _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) 29724: { 29724: 29724: __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); 29724: __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); 29724: 29724: 29724: 29724: 29724: 29724: if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) 29724: __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); 29724: else 29724: __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); 29724: 29724: __gam2 = (__gammi + __gampl) / (_Tp(2)); 29724: 29724: return; 29724: } 29724: # 136 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: void 29724: __bessel_jn(_Tp __nu, _Tp __x, 29724: _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) 29724: { 29724: if (__x == _Tp(0)) 29724: { 29724: if (__nu == _Tp(0)) 29724: { 29724: __Jnu = _Tp(1); 29724: __Jpnu = _Tp(0); 29724: } 29724: else if (__nu == _Tp(1)) 29724: { 29724: __Jnu = _Tp(0); 29724: __Jpnu = _Tp(0.5L); 29724: } 29724: else 29724: { 29724: __Jnu = _Tp(0); 29724: __Jpnu = _Tp(0); 29724: } 29724: __Nnu = -std::numeric_limits<_Tp>::infinity(); 29724: __Npnu = std::numeric_limits<_Tp>::infinity(); 29724: return; 29724: } 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: 29724: 29724: 29724: const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); 29724: const int __max_iter = 15000; 29724: const _Tp __x_min = _Tp(2); 29724: 29724: const int __nl = (__x < __x_min 29724: ? static_cast(__nu + _Tp(0.5L)) 29724: : std::max(0, static_cast(__nu - __x + _Tp(1.5L)))); 29724: 29724: const _Tp __mu = __nu - __nl; 29724: const _Tp __mu2 = __mu * __mu; 29724: const _Tp __xi = _Tp(1) / __x; 29724: const _Tp __xi2 = _Tp(2) * __xi; 29724: _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); 29724: int __isign = 1; 29724: _Tp __h = __nu * __xi; 29724: if (__h < __fp_min) 29724: __h = __fp_min; 29724: _Tp __b = __xi2 * __nu; 29724: _Tp __d = _Tp(0); 29724: _Tp __c = __h; 29724: int __i; 29724: for (__i = 1; __i <= __max_iter; ++__i) 29724: { 29724: __b += __xi2; 29724: __d = __b - __d; 29724: if (std::abs(__d) < __fp_min) 29724: __d = __fp_min; 29724: __c = __b - _Tp(1) / __c; 29724: if (std::abs(__c) < __fp_min) 29724: __c = __fp_min; 29724: __d = _Tp(1) / __d; 29724: const _Tp __del = __c * __d; 29724: __h *= __del; 29724: if (__d < _Tp(0)) 29724: __isign = -__isign; 29724: if (std::abs(__del - _Tp(1)) < __eps) 29724: break; 29724: } 29724: if (__i > __max_iter) 29724: std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") 29724: ); 29724: _Tp __Jnul = __isign * __fp_min; 29724: _Tp __Jpnul = __h * __Jnul; 29724: _Tp __Jnul1 = __Jnul; 29724: _Tp __Jpnu1 = __Jpnul; 29724: _Tp __fact = __nu * __xi; 29724: for ( int __l = __nl; __l >= 1; --__l ) 29724: { 29724: const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; 29724: __fact -= __xi; 29724: __Jpnul = __fact * __Jnutemp - __Jnul; 29724: __Jnul = __Jnutemp; 29724: } 29724: if (__Jnul == _Tp(0)) 29724: __Jnul = __eps; 29724: _Tp __f= __Jpnul / __Jnul; 29724: _Tp __Nmu, __Nnu1, __Npmu, __Jmu; 29724: if (__x < __x_min) 29724: { 29724: const _Tp __x2 = __x / _Tp(2); 29724: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 29724: _Tp __fact = (std::abs(__pimu) < __eps 29724: ? _Tp(1) : __pimu / std::sin(__pimu)); 29724: _Tp __d = -std::log(__x2); 29724: _Tp __e = __mu * __d; 29724: _Tp __fact2 = (std::abs(__e) < __eps 29724: ? _Tp(1) : std::sinh(__e) / __e); 29724: _Tp __gam1, __gam2, __gampl, __gammi; 29724: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 29724: _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) 29724: * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 29724: __e = std::exp(__e); 29724: _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); 29724: _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); 29724: const _Tp __pimu2 = __pimu / _Tp(2); 29724: _Tp __fact3 = (std::abs(__pimu2) < __eps 29724: ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); 29724: _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; 29724: _Tp __c = _Tp(1); 29724: __d = -__x2 * __x2; 29724: _Tp __sum = __ff + __r * __q; 29724: _Tp __sum1 = __p; 29724: for (__i = 1; __i <= __max_iter; ++__i) 29724: { 29724: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 29724: __c *= __d / _Tp(__i); 29724: __p /= _Tp(__i) - __mu; 29724: __q /= _Tp(__i) + __mu; 29724: const _Tp __del = __c * (__ff + __r * __q); 29724: __sum += __del; 29724: const _Tp __del1 = __c * __p - __i * __del; 29724: __sum1 += __del1; 29724: if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) 29724: break; 29724: } 29724: if ( __i > __max_iter ) 29724: std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") 29724: ); 29724: __Nmu = -__sum; 29724: __Nnu1 = -__sum1 * __xi2; 29724: __Npmu = __mu * __xi * __Nmu - __Nnu1; 29724: __Jmu = __w / (__Npmu - __f * __Nmu); 29724: } 29724: else 29724: { 29724: _Tp __a = _Tp(0.25L) - __mu2; 29724: _Tp __q = _Tp(1); 29724: _Tp __p = -__xi / _Tp(2); 29724: _Tp __br = _Tp(2) * __x; 29724: _Tp __bi = _Tp(2); 29724: _Tp __fact = __a * __xi / (__p * __p + __q * __q); 29724: _Tp __cr = __br + __q * __fact; 29724: _Tp __ci = __bi + __p * __fact; 29724: _Tp __den = __br * __br + __bi * __bi; 29724: _Tp __dr = __br / __den; 29724: _Tp __di = -__bi / __den; 29724: _Tp __dlr = __cr * __dr - __ci * __di; 29724: _Tp __dli = __cr * __di + __ci * __dr; 29724: _Tp __temp = __p * __dlr - __q * __dli; 29724: __q = __p * __dli + __q * __dlr; 29724: __p = __temp; 29724: int __i; 29724: for (__i = 2; __i <= __max_iter; ++__i) 29724: { 29724: __a += _Tp(2 * (__i - 1)); 29724: __bi += _Tp(2); 29724: __dr = __a * __dr + __br; 29724: __di = __a * __di + __bi; 29724: if (std::abs(__dr) + std::abs(__di) < __fp_min) 29724: __dr = __fp_min; 29724: __fact = __a / (__cr * __cr + __ci * __ci); 29724: __cr = __br + __cr * __fact; 29724: __ci = __bi - __ci * __fact; 29724: if (std::abs(__cr) + std::abs(__ci) < __fp_min) 29724: __cr = __fp_min; 29724: __den = __dr * __dr + __di * __di; 29724: __dr /= __den; 29724: __di /= -__den; 29724: __dlr = __cr * __dr - __ci * __di; 29724: __dli = __cr * __di + __ci * __dr; 29724: __temp = __p * __dlr - __q * __dli; 29724: __q = __p * __dli + __q * __dlr; 29724: __p = __temp; 29724: if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) 29724: break; 29724: } 29724: if (__i > __max_iter) 29724: std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") 29724: ); 29724: const _Tp __gam = (__p - __f) / __q; 29724: __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); 29724: 29724: __Jmu = ::std::copysign(__Jmu, __Jnul); 29724: 29724: 29724: 29724: 29724: __Nmu = __gam * __Jmu; 29724: __Npmu = (__p + __q / __gam) * __Nmu; 29724: __Nnu1 = __mu * __xi * __Nmu - __Npmu; 29724: } 29724: __fact = __Jmu / __Jnul; 29724: __Jnu = __fact * __Jnul1; 29724: __Jpnu = __fact * __Jpnu1; 29724: for (__i = 1; __i <= __nl; ++__i) 29724: { 29724: const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; 29724: __Nmu = __Nnu1; 29724: __Nnu1 = __Nnutemp; 29724: } 29724: __Nnu = __Nmu; 29724: __Npnu = __nu * __xi * __Nmu - __Nnu1; 29724: 29724: return; 29724: } 29724: # 361 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: void 29724: __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) 29724: { 29724: const _Tp __mu = _Tp(4) * __nu * __nu; 29724: const _Tp __8x = _Tp(8) * __x; 29724: 29724: _Tp __P = _Tp(0); 29724: _Tp __Q = _Tp(0); 29724: 29724: _Tp __k = _Tp(0); 29724: _Tp __term = _Tp(1); 29724: 29724: int __epsP = 0; 29724: int __epsQ = 0; 29724: 29724: _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: do 29724: { 29724: __term *= (__k == 0 29724: ? _Tp(1) 29724: : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); 29724: 29724: __epsP = std::abs(__term) < __eps * std::abs(__P); 29724: __P += __term; 29724: 29724: __k++; 29724: 29724: __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); 29724: __epsQ = std::abs(__term) < __eps * std::abs(__Q); 29724: __Q += __term; 29724: 29724: if (__epsP && __epsQ && __k > (__nu / 2.)) 29724: break; 29724: 29724: __k++; 29724: } 29724: while (__k < 1000); 29724: 29724: const _Tp __chi = __x - (__nu + _Tp(0.5L)) 29724: * __numeric_constants<_Tp>::__pi_2(); 29724: 29724: const _Tp __c = std::cos(__chi); 29724: const _Tp __s = std::sin(__chi); 29724: 29724: const _Tp __coef = std::sqrt(_Tp(2) 29724: / (__numeric_constants<_Tp>::__pi() * __x)); 29724: 29724: __Jnu = __coef * (__c * __P - __s * __Q); 29724: __Nnu = __coef * (__s * __P + __c * __Q); 29724: 29724: return; 29724: } 29724: # 444 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: _Tp 29724: __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, 29724: unsigned int __max_iter) 29724: { 29724: if (__x == _Tp(0)) 29724: return __nu == _Tp(0) ? _Tp(1) : _Tp(0); 29724: 29724: const _Tp __x2 = __x / _Tp(2); 29724: _Tp __fact = __nu * std::log(__x2); 29724: 29724: __fact -= ::std::lgamma(__nu + _Tp(1)); 29724: 29724: 29724: 29724: __fact = std::exp(__fact); 29724: const _Tp __xx4 = __sgn * __x2 * __x2; 29724: _Tp __Jn = _Tp(1); 29724: _Tp __term = _Tp(1); 29724: 29724: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29724: { 29724: __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); 29724: __Jn += __term; 29724: if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: } 29724: 29724: return __fact * __Jn; 29724: } 29724: # 490 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: _Tp 29724: __cyl_bessel_j(_Tp __nu, _Tp __x) 29724: { 29724: if (__nu < _Tp(0) || __x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") 29724: ); 29724: else if (__isnan(__nu) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 29724: return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); 29724: else if (__x > _Tp(1000)) 29724: { 29724: _Tp __J_nu, __N_nu; 29724: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 29724: return __J_nu; 29724: } 29724: else 29724: { 29724: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29724: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29724: return __J_nu; 29724: } 29724: } 29724: # 532 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: _Tp 29724: __cyl_neumann_n(_Tp __nu, _Tp __x) 29724: { 29724: if (__nu < _Tp(0) || __x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") 29724: ); 29724: else if (__isnan(__nu) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x > _Tp(1000)) 29724: { 29724: _Tp __J_nu, __N_nu; 29724: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 29724: return __N_nu; 29724: } 29724: else 29724: { 29724: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29724: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29724: return __N_nu; 29724: } 29724: } 29724: # 569 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: void 29724: __sph_bessel_jn(unsigned int __n, _Tp __x, 29724: _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) 29724: { 29724: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 29724: 29724: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29724: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29724: 29724: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 29724: / std::sqrt(__x); 29724: 29724: __j_n = __factor * __J_nu; 29724: __n_n = __factor * __N_nu; 29724: __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); 29724: __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); 29724: 29724: return; 29724: } 29724: # 604 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: _Tp 29724: __sph_bessel(unsigned int __n, _Tp __x) 29724: { 29724: if (__x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __sph_bessel.") 29724: ); 29724: else if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x == _Tp(0)) 29724: { 29724: if (__n == 0) 29724: return _Tp(1); 29724: else 29724: return _Tp(0); 29724: } 29724: else 29724: { 29724: _Tp __j_n, __n_n, __jp_n, __np_n; 29724: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 29724: return __j_n; 29724: } 29724: } 29724: # 642 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: _Tp 29724: __sph_neumann(unsigned int __n, _Tp __x) 29724: { 29724: if (__x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __sph_neumann.") 29724: ); 29724: else if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x == _Tp(0)) 29724: return -std::numeric_limits<_Tp>::infinity(); 29724: else 29724: { 29724: _Tp __j_n, __n_n, __jp_n, __np_n; 29724: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 29724: return __n_n; 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 49 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/beta_function.tcc" 1 3 29724: # 49 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 65 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: namespace __detail 29724: { 29724: # 79 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: template 29724: _Tp 29724: __beta_gamma(_Tp __x, _Tp __y) 29724: { 29724: 29724: _Tp __bet; 29724: 29724: if (__x > __y) 29724: { 29724: __bet = ::std::tgamma(__x) 29724: / ::std::tgamma(__x + __y); 29724: __bet *= ::std::tgamma(__y); 29724: } 29724: else 29724: { 29724: __bet = ::std::tgamma(__y) 29724: / ::std::tgamma(__x + __y); 29724: __bet *= ::std::tgamma(__x); 29724: } 29724: # 111 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: return __bet; 29724: } 29724: # 127 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: template 29724: _Tp 29724: __beta_lgamma(_Tp __x, _Tp __y) 29724: { 29724: 29724: _Tp __bet = ::std::lgamma(__x) 29724: + ::std::lgamma(__y) 29724: - ::std::lgamma(__x + __y); 29724: 29724: 29724: 29724: 29724: 29724: __bet = std::exp(__bet); 29724: return __bet; 29724: } 29724: # 158 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: template 29724: _Tp 29724: __beta_product(_Tp __x, _Tp __y) 29724: { 29724: 29724: _Tp __bet = (__x + __y) / (__x * __y); 29724: 29724: unsigned int __max_iter = 1000000; 29724: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29724: { 29724: _Tp __term = (_Tp(1) + (__x + __y) / __k) 29724: / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); 29724: __bet *= __term; 29724: } 29724: 29724: return __bet; 29724: } 29724: # 189 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: template 29724: inline _Tp 29724: __beta(_Tp __x, _Tp __y) 29724: { 29724: if (__isnan(__x) || __isnan(__y)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: return __beta_lgamma(__x, __y); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 50 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/ell_integral.tcc" 1 3 29724: # 45 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 59 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: namespace __detail 29724: { 29724: # 76 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_rf(_Tp __x, _Tp __y, _Tp __z) 29724: { 29724: const _Tp __min = std::numeric_limits<_Tp>::min(); 29724: const _Tp __lolim = _Tp(5) * __min; 29724: 29724: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 29724: std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") 29724: ); 29724: else if (__x + __y < __lolim || __x + __z < __lolim 29724: || __y + __z < __lolim) 29724: std::__throw_domain_error(("Argument too small in __ellint_rf")); 29724: else 29724: { 29724: const _Tp __c0 = _Tp(1) / _Tp(4); 29724: const _Tp __c1 = _Tp(1) / _Tp(24); 29724: const _Tp __c2 = _Tp(1) / _Tp(10); 29724: const _Tp __c3 = _Tp(3) / _Tp(44); 29724: const _Tp __c4 = _Tp(1) / _Tp(14); 29724: 29724: _Tp __xn = __x; 29724: _Tp __yn = __y; 29724: _Tp __zn = __z; 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); 29724: _Tp __mu; 29724: _Tp __xndev, __yndev, __zndev; 29724: 29724: const unsigned int __max_iter = 100; 29724: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29724: { 29724: __mu = (__xn + __yn + __zn) / _Tp(3); 29724: __xndev = 2 - (__mu + __xn) / __mu; 29724: __yndev = 2 - (__mu + __yn) / __mu; 29724: __zndev = 2 - (__mu + __zn) / __mu; 29724: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29724: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29724: if (__epsilon < __errtol) 29724: break; 29724: const _Tp __xnroot = std::sqrt(__xn); 29724: const _Tp __ynroot = std::sqrt(__yn); 29724: const _Tp __znroot = std::sqrt(__zn); 29724: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 29724: + __ynroot * __znroot; 29724: __xn = __c0 * (__xn + __lambda); 29724: __yn = __c0 * (__yn + __lambda); 29724: __zn = __c0 * (__zn + __lambda); 29724: } 29724: 29724: const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; 29724: const _Tp __e3 = __xndev * __yndev * __zndev; 29724: const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 29724: + __c4 * __e3; 29724: 29724: return __s / std::sqrt(__mu); 29724: } 29724: } 29724: # 153 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __comp_ellint_1_series(_Tp __k) 29724: { 29724: 29724: const _Tp __kk = __k * __k; 29724: 29724: _Tp __term = __kk / _Tp(4); 29724: _Tp __sum = _Tp(1) + __term; 29724: 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 2; __i < __max_iter; ++__i) 29724: { 29724: __term *= (2 * __i - 1) * __kk / (2 * __i); 29724: if (__term < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __sum += __term; 29724: } 29724: 29724: return __numeric_constants<_Tp>::__pi_2() * __sum; 29724: } 29724: # 191 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __comp_ellint_1(_Tp __k) 29724: { 29724: 29724: if (__isnan(__k)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (std::abs(__k) >= _Tp(1)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); 29724: } 29724: # 219 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_1(_Tp __k, _Tp __phi) 29724: { 29724: 29724: if (__isnan(__k) || __isnan(__phi)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (std::abs(__k) > _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in __ellint_1.")); 29724: else 29724: { 29724: 29724: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29724: + _Tp(0.5L)); 29724: const _Tp __phi_red = __phi 29724: - __n * __numeric_constants<_Tp>::__pi(); 29724: 29724: const _Tp __s = std::sin(__phi_red); 29724: const _Tp __c = std::cos(__phi_red); 29724: 29724: const _Tp __F = __s 29724: * __ellint_rf(__c * __c, 29724: _Tp(1) - __k * __k * __s * __s, _Tp(1)); 29724: 29724: if (__n == 0) 29724: return __F; 29724: else 29724: return __F + _Tp(2) * __n * __comp_ellint_1(__k); 29724: } 29724: } 29724: # 266 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __comp_ellint_2_series(_Tp __k) 29724: { 29724: 29724: const _Tp __kk = __k * __k; 29724: 29724: _Tp __term = __kk; 29724: _Tp __sum = __term; 29724: 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 2; __i < __max_iter; ++__i) 29724: { 29724: const _Tp __i2m = 2 * __i - 1; 29724: const _Tp __i2 = 2 * __i; 29724: __term *= __i2m * __i2m * __kk / (__i2 * __i2); 29724: if (__term < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __sum += __term / __i2m; 29724: } 29724: 29724: return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); 29724: } 29724: # 314 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_rd(_Tp __x, _Tp __y, _Tp __z) 29724: { 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 29724: const _Tp __max = std::numeric_limits<_Tp>::max(); 29724: const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); 29724: 29724: if (__x < _Tp(0) || __y < _Tp(0)) 29724: std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") 29724: ); 29724: else if (__x + __y < __lolim || __z < __lolim) 29724: std::__throw_domain_error(("Argument too small " "in __ellint_rd.") 29724: ); 29724: else 29724: { 29724: const _Tp __c0 = _Tp(1) / _Tp(4); 29724: const _Tp __c1 = _Tp(3) / _Tp(14); 29724: const _Tp __c2 = _Tp(1) / _Tp(6); 29724: const _Tp __c3 = _Tp(9) / _Tp(22); 29724: const _Tp __c4 = _Tp(3) / _Tp(26); 29724: 29724: _Tp __xn = __x; 29724: _Tp __yn = __y; 29724: _Tp __zn = __z; 29724: _Tp __sigma = _Tp(0); 29724: _Tp __power4 = _Tp(1); 29724: 29724: _Tp __mu; 29724: _Tp __xndev, __yndev, __zndev; 29724: 29724: const unsigned int __max_iter = 100; 29724: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29724: { 29724: __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); 29724: __xndev = (__mu - __xn) / __mu; 29724: __yndev = (__mu - __yn) / __mu; 29724: __zndev = (__mu - __zn) / __mu; 29724: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29724: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29724: if (__epsilon < __errtol) 29724: break; 29724: _Tp __xnroot = std::sqrt(__xn); 29724: _Tp __ynroot = std::sqrt(__yn); 29724: _Tp __znroot = std::sqrt(__zn); 29724: _Tp __lambda = __xnroot * (__ynroot + __znroot) 29724: + __ynroot * __znroot; 29724: __sigma += __power4 / (__znroot * (__zn + __lambda)); 29724: __power4 *= __c0; 29724: __xn = __c0 * (__xn + __lambda); 29724: __yn = __c0 * (__yn + __lambda); 29724: __zn = __c0 * (__zn + __lambda); 29724: } 29724: 29724: _Tp __ea = __xndev * __yndev; 29724: _Tp __eb = __zndev * __zndev; 29724: _Tp __ec = __ea - __eb; 29724: _Tp __ed = __ea - _Tp(6) * __eb; 29724: _Tp __ef = __ed + __ec + __ec; 29724: _Tp __s1 = __ed * (-__c1 + __c3 * __ed 29724: / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef 29724: / _Tp(2)); 29724: _Tp __s2 = __zndev 29724: * (__c2 * __ef 29724: + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); 29724: 29724: return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) 29724: / (__mu * std::sqrt(__mu)); 29724: } 29724: } 29724: # 399 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __comp_ellint_2(_Tp __k) 29724: { 29724: 29724: if (__isnan(__k)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (std::abs(__k) == 1) 29724: return _Tp(1); 29724: else if (std::abs(__k) > _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); 29724: else 29724: { 29724: const _Tp __kk = __k * __k; 29724: 29724: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 29724: - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); 29724: } 29724: } 29724: # 433 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_2(_Tp __k, _Tp __phi) 29724: { 29724: 29724: if (__isnan(__k) || __isnan(__phi)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (std::abs(__k) > _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in __ellint_2.")); 29724: else 29724: { 29724: 29724: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29724: + _Tp(0.5L)); 29724: const _Tp __phi_red = __phi 29724: - __n * __numeric_constants<_Tp>::__pi(); 29724: 29724: const _Tp __kk = __k * __k; 29724: const _Tp __s = std::sin(__phi_red); 29724: const _Tp __ss = __s * __s; 29724: const _Tp __sss = __ss * __s; 29724: const _Tp __c = std::cos(__phi_red); 29724: const _Tp __cc = __c * __c; 29724: 29724: const _Tp __E = __s 29724: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29724: - __kk * __sss 29724: * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29724: / _Tp(3); 29724: 29724: if (__n == 0) 29724: return __E; 29724: else 29724: return __E + _Tp(2) * __n * __comp_ellint_2(__k); 29724: } 29724: } 29724: # 492 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_rc(_Tp __x, _Tp __y) 29724: { 29724: const _Tp __min = std::numeric_limits<_Tp>::min(); 29724: const _Tp __lolim = _Tp(5) * __min; 29724: 29724: if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) 29724: std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") 29724: ); 29724: else 29724: { 29724: const _Tp __c0 = _Tp(1) / _Tp(4); 29724: const _Tp __c1 = _Tp(1) / _Tp(7); 29724: const _Tp __c2 = _Tp(9) / _Tp(22); 29724: const _Tp __c3 = _Tp(3) / _Tp(10); 29724: const _Tp __c4 = _Tp(3) / _Tp(8); 29724: 29724: _Tp __xn = __x; 29724: _Tp __yn = __y; 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); 29724: _Tp __mu; 29724: _Tp __sn; 29724: 29724: const unsigned int __max_iter = 100; 29724: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29724: { 29724: __mu = (__xn + _Tp(2) * __yn) / _Tp(3); 29724: __sn = (__yn + __mu) / __mu - _Tp(2); 29724: if (std::abs(__sn) < __errtol) 29724: break; 29724: const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) 29724: + __yn; 29724: __xn = __c0 * (__xn + __lambda); 29724: __yn = __c0 * (__yn + __lambda); 29724: } 29724: 29724: _Tp __s = __sn * __sn 29724: * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); 29724: 29724: return (_Tp(1) + __s) / std::sqrt(__mu); 29724: } 29724: } 29724: # 561 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) 29724: { 29724: const _Tp __min = std::numeric_limits<_Tp>::min(); 29724: const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); 29724: 29724: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 29724: std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") 29724: ); 29724: else if (__x + __y < __lolim || __x + __z < __lolim 29724: || __y + __z < __lolim || __p < __lolim) 29724: std::__throw_domain_error(("Argument too small " "in __ellint_rj") 29724: ); 29724: else 29724: { 29724: const _Tp __c0 = _Tp(1) / _Tp(4); 29724: const _Tp __c1 = _Tp(3) / _Tp(14); 29724: const _Tp __c2 = _Tp(1) / _Tp(3); 29724: const _Tp __c3 = _Tp(3) / _Tp(22); 29724: const _Tp __c4 = _Tp(3) / _Tp(26); 29724: 29724: _Tp __xn = __x; 29724: _Tp __yn = __y; 29724: _Tp __zn = __z; 29724: _Tp __pn = __p; 29724: _Tp __sigma = _Tp(0); 29724: _Tp __power4 = _Tp(1); 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 29724: 29724: _Tp __mu; 29724: _Tp __xndev, __yndev, __zndev, __pndev; 29724: 29724: const unsigned int __max_iter = 100; 29724: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29724: { 29724: __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); 29724: __xndev = (__mu - __xn) / __mu; 29724: __yndev = (__mu - __yn) / __mu; 29724: __zndev = (__mu - __zn) / __mu; 29724: __pndev = (__mu - __pn) / __mu; 29724: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29724: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29724: __epsilon = std::max(__epsilon, std::abs(__pndev)); 29724: if (__epsilon < __errtol) 29724: break; 29724: const _Tp __xnroot = std::sqrt(__xn); 29724: const _Tp __ynroot = std::sqrt(__yn); 29724: const _Tp __znroot = std::sqrt(__zn); 29724: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 29724: + __ynroot * __znroot; 29724: const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) 29724: + __xnroot * __ynroot * __znroot; 29724: const _Tp __alpha2 = __alpha1 * __alpha1; 29724: const _Tp __beta = __pn * (__pn + __lambda) 29724: * (__pn + __lambda); 29724: __sigma += __power4 * __ellint_rc(__alpha2, __beta); 29724: __power4 *= __c0; 29724: __xn = __c0 * (__xn + __lambda); 29724: __yn = __c0 * (__yn + __lambda); 29724: __zn = __c0 * (__zn + __lambda); 29724: __pn = __c0 * (__pn + __lambda); 29724: } 29724: 29724: _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; 29724: _Tp __eb = __xndev * __yndev * __zndev; 29724: _Tp __ec = __pndev * __pndev; 29724: _Tp __e2 = __ea - _Tp(3) * __ec; 29724: _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); 29724: _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) 29724: - _Tp(3) * __c4 * __e3 / _Tp(2)); 29724: _Tp __s2 = __eb * (__c2 / _Tp(2) 29724: + __pndev * (-__c3 - __c3 + __pndev * __c4)); 29724: _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) 29724: - __c2 * __pndev * __ec; 29724: 29724: return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) 29724: / (__mu * std::sqrt(__mu)); 29724: } 29724: } 29724: # 661 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __comp_ellint_3(_Tp __k, _Tp __nu) 29724: { 29724: 29724: if (__isnan(__k) || __isnan(__nu)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__nu == _Tp(1)) 29724: return std::numeric_limits<_Tp>::infinity(); 29724: else if (std::abs(__k) > _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); 29724: else 29724: { 29724: const _Tp __kk = __k * __k; 29724: 29724: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 29724: + __nu 29724: * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) 29724: / _Tp(3); 29724: } 29724: } 29724: # 701 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) 29724: { 29724: 29724: if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (std::abs(__k) > _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in __ellint_3.")); 29724: else 29724: { 29724: 29724: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29724: + _Tp(0.5L)); 29724: const _Tp __phi_red = __phi 29724: - __n * __numeric_constants<_Tp>::__pi(); 29724: 29724: const _Tp __kk = __k * __k; 29724: const _Tp __s = std::sin(__phi_red); 29724: const _Tp __ss = __s * __s; 29724: const _Tp __sss = __ss * __s; 29724: const _Tp __c = std::cos(__phi_red); 29724: const _Tp __cc = __c * __c; 29724: 29724: const _Tp __Pi = __s 29724: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29724: + __nu * __sss 29724: * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), 29724: _Tp(1) - __nu * __ss) / _Tp(3); 29724: 29724: if (__n == 0) 29724: return __Pi; 29724: else 29724: return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 51 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/exp_integral.tcc" 1 3 29724: # 50 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 64 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: namespace __detail 29724: { 29724: template _Tp __expint_E1(_Tp); 29724: # 81 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_E1_series(_Tp __x) 29724: { 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: _Tp __term = _Tp(1); 29724: _Tp __esum = _Tp(0); 29724: _Tp __osum = _Tp(0); 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29724: { 29724: __term *= - __x / __i; 29724: if (std::abs(__term) < __eps) 29724: break; 29724: if (__term >= _Tp(0)) 29724: __esum += __term / __i; 29724: else 29724: __osum += __term / __i; 29724: } 29724: 29724: return - __esum - __osum 29724: - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); 29724: } 29724: # 118 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_E1_asymp(_Tp __x) 29724: { 29724: _Tp __term = _Tp(1); 29724: _Tp __esum = _Tp(1); 29724: _Tp __osum = _Tp(0); 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29724: { 29724: _Tp __prev = __term; 29724: __term *= - __i / __x; 29724: if (std::abs(__term) > std::abs(__prev)) 29724: break; 29724: if (__term >= _Tp(0)) 29724: __esum += __term; 29724: else 29724: __osum += __term; 29724: } 29724: 29724: return std::exp(- __x) * (__esum + __osum) / __x; 29724: } 29724: # 155 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_En_series(unsigned int __n, _Tp __x) 29724: { 29724: const unsigned int __max_iter = 1000; 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const int __nm1 = __n - 1; 29724: _Tp __ans = (__nm1 != 0 29724: ? _Tp(1) / __nm1 : -std::log(__x) 29724: - __numeric_constants<_Tp>::__gamma_e()); 29724: _Tp __fact = _Tp(1); 29724: for (int __i = 1; __i <= __max_iter; ++__i) 29724: { 29724: __fact *= -__x / _Tp(__i); 29724: _Tp __del; 29724: if ( __i != __nm1 ) 29724: __del = -__fact / _Tp(__i - __nm1); 29724: else 29724: { 29724: _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); 29724: for (int __ii = 1; __ii <= __nm1; ++__ii) 29724: __psi += _Tp(1) / _Tp(__ii); 29724: __del = __fact * (__psi - std::log(__x)); 29724: } 29724: __ans += __del; 29724: if (std::abs(__del) < __eps * std::abs(__ans)) 29724: return __ans; 29724: } 29724: std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") 29724: ); 29724: } 29724: # 201 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_En_cont_frac(unsigned int __n, _Tp __x) 29724: { 29724: const unsigned int __max_iter = 1000; 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __fp_min = std::numeric_limits<_Tp>::min(); 29724: const int __nm1 = __n - 1; 29724: _Tp __b = __x + _Tp(__n); 29724: _Tp __c = _Tp(1) / __fp_min; 29724: _Tp __d = _Tp(1) / __b; 29724: _Tp __h = __d; 29724: for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) 29724: { 29724: _Tp __a = -_Tp(__i * (__nm1 + __i)); 29724: __b += _Tp(2); 29724: __d = _Tp(1) / (__a * __d + __b); 29724: __c = __b + __a / __c; 29724: const _Tp __del = __c * __d; 29724: __h *= __del; 29724: if (std::abs(__del - _Tp(1)) < __eps) 29724: { 29724: const _Tp __ans = __h * std::exp(-__x); 29724: return __ans; 29724: } 29724: } 29724: std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") 29724: ); 29724: } 29724: # 246 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_En_recursion(unsigned int __n, _Tp __x) 29724: { 29724: _Tp __En; 29724: _Tp __E1 = __expint_E1(__x); 29724: if (__x < _Tp(__n)) 29724: { 29724: 29724: __En = __E1; 29724: for (unsigned int __j = 2; __j < __n; ++__j) 29724: __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); 29724: } 29724: else 29724: { 29724: 29724: __En = _Tp(1); 29724: const int __N = __n + 20; 29724: _Tp __save = _Tp(0); 29724: for (int __j = __N; __j > 0; --__j) 29724: { 29724: __En = (std::exp(-__x) - __j * __En) / __x; 29724: if (__j == __n) 29724: __save = __En; 29724: } 29724: _Tp __norm = __En / __E1; 29724: __En /= __norm; 29724: } 29724: 29724: return __En; 29724: } 29724: # 290 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_Ei_series(_Tp __x) 29724: { 29724: _Tp __term = _Tp(1); 29724: _Tp __sum = _Tp(0); 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29724: { 29724: __term *= __x / __i; 29724: __sum += __term / __i; 29724: if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) 29724: break; 29724: } 29724: 29724: return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); 29724: } 29724: # 321 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_Ei_asymp(_Tp __x) 29724: { 29724: _Tp __term = _Tp(1); 29724: _Tp __sum = _Tp(1); 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29724: { 29724: _Tp __prev = __term; 29724: __term *= __i / __x; 29724: if (__term < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: if (__term >= __prev) 29724: break; 29724: __sum += __term; 29724: } 29724: 29724: return std::exp(__x) * __sum / __x; 29724: } 29724: # 354 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_Ei(_Tp __x) 29724: { 29724: if (__x < _Tp(0)) 29724: return -__expint_E1(-__x); 29724: else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) 29724: return __expint_Ei_series(__x); 29724: else 29724: return __expint_Ei_asymp(__x); 29724: } 29724: # 378 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_E1(_Tp __x) 29724: { 29724: if (__x < _Tp(0)) 29724: return -__expint_Ei(-__x); 29724: else if (__x < _Tp(1)) 29724: return __expint_E1_series(__x); 29724: else if (__x < _Tp(100)) 29724: return __expint_En_cont_frac(1, __x); 29724: else 29724: return __expint_E1_asymp(__x); 29724: } 29724: # 408 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_asymp(unsigned int __n, _Tp __x) 29724: { 29724: _Tp __term = _Tp(1); 29724: _Tp __sum = _Tp(1); 29724: for (unsigned int __i = 1; __i <= __n; ++__i) 29724: { 29724: _Tp __prev = __term; 29724: __term *= -(__n - __i + 1) / __x; 29724: if (std::abs(__term) > std::abs(__prev)) 29724: break; 29724: __sum += __term; 29724: } 29724: 29724: return std::exp(-__x) * __sum / __x; 29724: } 29724: # 442 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_large_n(unsigned int __n, _Tp __x) 29724: { 29724: const _Tp __xpn = __x + __n; 29724: const _Tp __xpn2 = __xpn * __xpn; 29724: _Tp __term = _Tp(1); 29724: _Tp __sum = _Tp(1); 29724: for (unsigned int __i = 1; __i <= __n; ++__i) 29724: { 29724: _Tp __prev = __term; 29724: __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; 29724: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __sum += __term; 29724: } 29724: 29724: return std::exp(-__x) * __sum / __xpn; 29724: } 29724: # 476 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint(unsigned int __n, _Tp __x) 29724: { 29724: 29724: if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__n <= 1 && __x == _Tp(0)) 29724: return std::numeric_limits<_Tp>::infinity(); 29724: else 29724: { 29724: _Tp __E0 = std::exp(__x) / __x; 29724: if (__n == 0) 29724: return __E0; 29724: 29724: _Tp __E1 = __expint_E1(__x); 29724: if (__n == 1) 29724: return __E1; 29724: 29724: if (__x == _Tp(0)) 29724: return _Tp(1) / static_cast<_Tp>(__n - 1); 29724: 29724: _Tp __En = __expint_En_recursion(__n, __x); 29724: 29724: return __En; 29724: } 29724: } 29724: # 516 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: inline _Tp 29724: __expint(_Tp __x) 29724: { 29724: if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: return __expint_Ei(__x); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 52 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/hypergeometric.tcc" 1 3 29724: # 44 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 60 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: namespace __detail 29724: { 29724: # 83 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) 29724: { 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: _Tp __term = _Tp(1); 29724: _Tp __Fac = _Tp(1); 29724: const unsigned int __max_iter = 100000; 29724: unsigned int __i; 29724: for (__i = 0; __i < __max_iter; ++__i) 29724: { 29724: __term *= (__a + _Tp(__i)) * __x 29724: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 29724: if (std::abs(__term) < __eps) 29724: { 29724: break; 29724: } 29724: __Fac += __term; 29724: } 29724: if (__i == __max_iter) 29724: std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") 29724: ); 29724: 29724: return __Fac; 29724: } 29724: # 120 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) 29724: { 29724: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 29724: const int __nmax = 20000; 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __x = -__xin; 29724: const _Tp __x3 = __x * __x * __x; 29724: const _Tp __t0 = __a / __c; 29724: const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); 29724: const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); 29724: _Tp __F = _Tp(1); 29724: _Tp __prec; 29724: 29724: _Tp __Bnm3 = _Tp(1); 29724: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 29724: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 29724: 29724: _Tp __Anm3 = _Tp(1); 29724: _Tp __Anm2 = __Bnm2 - __t0 * __x; 29724: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 29724: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 29724: 29724: int __n = 3; 29724: while(1) 29724: { 29724: _Tp __npam1 = _Tp(__n - 1) + __a; 29724: _Tp __npcm1 = _Tp(__n - 1) + __c; 29724: _Tp __npam2 = _Tp(__n - 2) + __a; 29724: _Tp __npcm2 = _Tp(__n - 2) + __c; 29724: _Tp __tnm1 = _Tp(2 * __n - 1); 29724: _Tp __tnm3 = _Tp(2 * __n - 3); 29724: _Tp __tnm5 = _Tp(2 * __n - 5); 29724: _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); 29724: _Tp __F2 = (_Tp(__n) + __a) * __npam1 29724: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 29724: _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) 29724: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 29724: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 29724: _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) 29724: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 29724: 29724: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 29724: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 29724: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 29724: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 29724: _Tp __r = __An / __Bn; 29724: 29724: __prec = std::abs((__F - __r) / __F); 29724: __F = __r; 29724: 29724: if (__prec < __eps || __n > __nmax) 29724: break; 29724: 29724: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 29724: { 29724: __An /= __big; 29724: __Bn /= __big; 29724: __Anm1 /= __big; 29724: __Bnm1 /= __big; 29724: __Anm2 /= __big; 29724: __Bnm2 /= __big; 29724: __Anm3 /= __big; 29724: __Bnm3 /= __big; 29724: } 29724: else if (std::abs(__An) < _Tp(1) / __big 29724: || std::abs(__Bn) < _Tp(1) / __big) 29724: { 29724: __An *= __big; 29724: __Bn *= __big; 29724: __Anm1 *= __big; 29724: __Bnm1 *= __big; 29724: __Anm2 *= __big; 29724: __Bnm2 *= __big; 29724: __Anm3 *= __big; 29724: __Bnm3 *= __big; 29724: } 29724: 29724: ++__n; 29724: __Bnm3 = __Bnm2; 29724: __Bnm2 = __Bnm1; 29724: __Bnm1 = __Bn; 29724: __Anm3 = __Anm2; 29724: __Anm2 = __Anm1; 29724: __Anm1 = __An; 29724: } 29724: 29724: if (__n >= __nmax) 29724: std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") 29724: ); 29724: 29724: return __F; 29724: } 29724: # 227 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) 29724: { 29724: 29724: const _Tp __c_nint = ::std::nearbyint(__c); 29724: 29724: 29724: 29724: if (__isnan(__a) || __isnan(__c) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__c_nint == __c && __c_nint <= 0) 29724: return std::numeric_limits<_Tp>::infinity(); 29724: else if (__a == _Tp(0)) 29724: return _Tp(1); 29724: else if (__c == __a) 29724: return std::exp(__x); 29724: else if (__x < _Tp(0)) 29724: return __conf_hyperg_luke(__a, __c, __x); 29724: else 29724: return __conf_hyperg_series(__a, __c, __x); 29724: } 29724: # 271 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29724: { 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: _Tp __term = _Tp(1); 29724: _Tp __Fabc = _Tp(1); 29724: const unsigned int __max_iter = 100000; 29724: unsigned int __i; 29724: for (__i = 0; __i < __max_iter; ++__i) 29724: { 29724: __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x 29724: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 29724: if (std::abs(__term) < __eps) 29724: { 29724: break; 29724: } 29724: __Fabc += __term; 29724: } 29724: if (__i == __max_iter) 29724: std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") 29724: ); 29724: 29724: return __Fabc; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _Tp 29724: __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) 29724: { 29724: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 29724: const int __nmax = 20000; 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __x = -__xin; 29724: const _Tp __x3 = __x * __x * __x; 29724: const _Tp __t0 = __a * __b / __c; 29724: const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); 29724: const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) 29724: / (_Tp(2) * (__c + _Tp(1))); 29724: 29724: _Tp __F = _Tp(1); 29724: 29724: _Tp __Bnm3 = _Tp(1); 29724: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 29724: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 29724: 29724: _Tp __Anm3 = _Tp(1); 29724: _Tp __Anm2 = __Bnm2 - __t0 * __x; 29724: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 29724: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 29724: 29724: int __n = 3; 29724: while (1) 29724: { 29724: const _Tp __npam1 = _Tp(__n - 1) + __a; 29724: const _Tp __npbm1 = _Tp(__n - 1) + __b; 29724: const _Tp __npcm1 = _Tp(__n - 1) + __c; 29724: const _Tp __npam2 = _Tp(__n - 2) + __a; 29724: const _Tp __npbm2 = _Tp(__n - 2) + __b; 29724: const _Tp __npcm2 = _Tp(__n - 2) + __c; 29724: const _Tp __tnm1 = _Tp(2 * __n - 1); 29724: const _Tp __tnm3 = _Tp(2 * __n - 3); 29724: const _Tp __tnm5 = _Tp(2 * __n - 5); 29724: const _Tp __n2 = __n * __n; 29724: const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n 29724: + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) 29724: / (_Tp(2) * __tnm3 * __npcm1); 29724: const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n 29724: + _Tp(2) - __a * __b) * __npam1 * __npbm1 29724: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 29724: const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 29724: * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) 29724: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 29724: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 29724: const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) 29724: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 29724: 29724: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 29724: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 29724: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 29724: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 29724: const _Tp __r = __An / __Bn; 29724: 29724: const _Tp __prec = std::abs((__F - __r) / __F); 29724: __F = __r; 29724: 29724: if (__prec < __eps || __n > __nmax) 29724: break; 29724: 29724: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 29724: { 29724: __An /= __big; 29724: __Bn /= __big; 29724: __Anm1 /= __big; 29724: __Bnm1 /= __big; 29724: __Anm2 /= __big; 29724: __Bnm2 /= __big; 29724: __Anm3 /= __big; 29724: __Bnm3 /= __big; 29724: } 29724: else if (std::abs(__An) < _Tp(1) / __big 29724: || std::abs(__Bn) < _Tp(1) / __big) 29724: { 29724: __An *= __big; 29724: __Bn *= __big; 29724: __Anm1 *= __big; 29724: __Bnm1 *= __big; 29724: __Anm2 *= __big; 29724: __Bnm2 *= __big; 29724: __Anm3 *= __big; 29724: __Bnm3 *= __big; 29724: } 29724: 29724: ++__n; 29724: __Bnm3 = __Bnm2; 29724: __Bnm2 = __Bnm1; 29724: __Bnm1 = __Bn; 29724: __Anm3 = __Anm2; 29724: __Anm2 = __Anm1; 29724: __Anm1 = __An; 29724: } 29724: 29724: if (__n >= __nmax) 29724: std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") 29724: ); 29724: 29724: return __F; 29724: } 29724: # 438 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29724: { 29724: const _Tp __d = __c - __a - __b; 29724: const int __intd = std::floor(__d + _Tp(0.5L)); 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __toler = _Tp(1000) * __eps; 29724: const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); 29724: const bool __d_integer = (std::abs(__d - __intd) < __toler); 29724: 29724: if (__d_integer) 29724: { 29724: const _Tp __ln_omx = std::log(_Tp(1) - __x); 29724: const _Tp __ad = std::abs(__d); 29724: _Tp __F1, __F2; 29724: 29724: _Tp __d1, __d2; 29724: if (__d >= _Tp(0)) 29724: { 29724: __d1 = __d; 29724: __d2 = _Tp(0); 29724: } 29724: else 29724: { 29724: __d1 = _Tp(0); 29724: __d2 = __d; 29724: } 29724: 29724: const _Tp __lng_c = __log_gamma(__c); 29724: 29724: 29724: if (__ad < __eps) 29724: { 29724: 29724: __F1 = _Tp(0); 29724: } 29724: else 29724: { 29724: 29724: bool __ok_d1 = true; 29724: _Tp __lng_ad, __lng_ad1, __lng_bd1; 29724: try 29724: { 29724: __lng_ad = __log_gamma(__ad); 29724: __lng_ad1 = __log_gamma(__a + __d1); 29724: __lng_bd1 = __log_gamma(__b + __d1); 29724: } 29724: catch(...) 29724: { 29724: __ok_d1 = false; 29724: } 29724: 29724: if (__ok_d1) 29724: { 29724: 29724: 29724: 29724: _Tp __sum1 = _Tp(1); 29724: _Tp __term = _Tp(1); 29724: _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx 29724: - __lng_ad1 - __lng_bd1; 29724: 29724: 29724: 29724: for (int __i = 1; __i < __ad; ++__i) 29724: { 29724: const int __j = __i - 1; 29724: __term *= (__a + __d2 + __j) * (__b + __d2 + __j) 29724: / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); 29724: __sum1 += __term; 29724: } 29724: 29724: if (__ln_pre1 > __log_max) 29724: std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") 29724: ); 29724: else 29724: __F1 = std::exp(__ln_pre1) * __sum1; 29724: } 29724: else 29724: { 29724: 29724: 29724: __F1 = _Tp(0); 29724: } 29724: } 29724: 29724: 29724: bool __ok_d2 = true; 29724: _Tp __lng_ad2, __lng_bd2; 29724: try 29724: { 29724: __lng_ad2 = __log_gamma(__a + __d2); 29724: __lng_bd2 = __log_gamma(__b + __d2); 29724: } 29724: catch(...) 29724: { 29724: __ok_d2 = false; 29724: } 29724: 29724: if (__ok_d2) 29724: { 29724: 29724: 29724: const int __maxiter = 2000; 29724: const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); 29724: const _Tp __psi_1pd = __psi(_Tp(1) + __ad); 29724: const _Tp __psi_apd1 = __psi(__a + __d1); 29724: const _Tp __psi_bpd1 = __psi(__b + __d1); 29724: 29724: _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 29724: - __psi_bpd1 - __ln_omx; 29724: _Tp __fact = _Tp(1); 29724: _Tp __sum2 = __psi_term; 29724: _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx 29724: - __lng_ad2 - __lng_bd2; 29724: 29724: 29724: int __j; 29724: for (__j = 1; __j < __maxiter; ++__j) 29724: { 29724: 29724: 29724: const _Tp __term1 = _Tp(1) / _Tp(__j) 29724: + _Tp(1) / (__ad + __j); 29724: const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) 29724: + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); 29724: __psi_term += __term1 - __term2; 29724: __fact *= (__a + __d1 + _Tp(__j - 1)) 29724: * (__b + __d1 + _Tp(__j - 1)) 29724: / ((__ad + __j) * __j) * (_Tp(1) - __x); 29724: const _Tp __delta = __fact * __psi_term; 29724: __sum2 += __delta; 29724: if (std::abs(__delta) < __eps * std::abs(__sum2)) 29724: break; 29724: } 29724: if (__j == __maxiter) 29724: std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") 29724: ); 29724: 29724: if (__sum2 == _Tp(0)) 29724: __F2 = _Tp(0); 29724: else 29724: __F2 = std::exp(__ln_pre2) * __sum2; 29724: } 29724: else 29724: { 29724: 29724: 29724: __F2 = _Tp(0); 29724: } 29724: 29724: const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); 29724: const _Tp __F = __F1 + __sgn_2 * __F2; 29724: 29724: return __F; 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: 29724: bool __ok1 = true; 29724: _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); 29724: _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); 29724: try 29724: { 29724: __sgn_g1ca = __log_gamma_sign(__c - __a); 29724: __ln_g1ca = __log_gamma(__c - __a); 29724: __sgn_g1cb = __log_gamma_sign(__c - __b); 29724: __ln_g1cb = __log_gamma(__c - __b); 29724: } 29724: catch(...) 29724: { 29724: __ok1 = false; 29724: } 29724: 29724: bool __ok2 = true; 29724: _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); 29724: _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); 29724: try 29724: { 29724: __sgn_g2a = __log_gamma_sign(__a); 29724: __ln_g2a = __log_gamma(__a); 29724: __sgn_g2b = __log_gamma_sign(__b); 29724: __ln_g2b = __log_gamma(__b); 29724: } 29724: catch(...) 29724: { 29724: __ok2 = false; 29724: } 29724: 29724: const _Tp __sgn_gc = __log_gamma_sign(__c); 29724: const _Tp __ln_gc = __log_gamma(__c); 29724: const _Tp __sgn_gd = __log_gamma_sign(__d); 29724: const _Tp __ln_gd = __log_gamma(__d); 29724: const _Tp __sgn_gmd = __log_gamma_sign(-__d); 29724: const _Tp __ln_gmd = __log_gamma(-__d); 29724: 29724: const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; 29724: const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; 29724: 29724: _Tp __pre1, __pre2; 29724: if (__ok1 && __ok2) 29724: { 29724: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 29724: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 29724: + __d * std::log(_Tp(1) - __x); 29724: if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) 29724: { 29724: __pre1 = std::exp(__ln_pre1); 29724: __pre2 = std::exp(__ln_pre2); 29724: __pre1 *= __sgn1; 29724: __pre2 *= __sgn2; 29724: } 29724: else 29724: { 29724: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29724: ); 29724: } 29724: } 29724: else if (__ok1 && !__ok2) 29724: { 29724: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 29724: if (__ln_pre1 < __log_max) 29724: { 29724: __pre1 = std::exp(__ln_pre1); 29724: __pre1 *= __sgn1; 29724: __pre2 = _Tp(0); 29724: } 29724: else 29724: { 29724: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29724: ); 29724: } 29724: } 29724: else if (!__ok1 && __ok2) 29724: { 29724: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 29724: + __d * std::log(_Tp(1) - __x); 29724: if (__ln_pre2 < __log_max) 29724: { 29724: __pre1 = _Tp(0); 29724: __pre2 = std::exp(__ln_pre2); 29724: __pre2 *= __sgn2; 29724: } 29724: else 29724: { 29724: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29724: ); 29724: } 29724: } 29724: else 29724: { 29724: __pre1 = _Tp(0); 29724: __pre2 = _Tp(0); 29724: std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") 29724: ); 29724: } 29724: 29724: const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, 29724: _Tp(1) - __x); 29724: const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, 29724: _Tp(1) - __x); 29724: 29724: const _Tp __F = __pre1 * __F1 + __pre2 * __F2; 29724: 29724: return __F; 29724: } 29724: } 29724: # 728 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29724: { 29724: 29724: const _Tp __a_nint = ::std::nearbyint(__a); 29724: const _Tp __b_nint = ::std::nearbyint(__b); 29724: const _Tp __c_nint = ::std::nearbyint(__c); 29724: 29724: 29724: 29724: 29724: 29724: const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); 29724: if (std::abs(__x) >= _Tp(1)) 29724: std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") 29724: ); 29724: else if (__isnan(__a) || __isnan(__b) 29724: || __isnan(__c) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__c_nint == __c && __c_nint <= _Tp(0)) 29724: return std::numeric_limits<_Tp>::infinity(); 29724: else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) 29724: return std::pow(_Tp(1) - __x, __c - __a - __b); 29724: else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) 29724: && __x >= _Tp(0) && __x < _Tp(0.995L)) 29724: return __hyperg_series(__a, __b, __c, __x); 29724: else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) 29724: { 29724: 29724: 29724: if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) 29724: return __hyperg_series(__a_nint, __b, __c, __x); 29724: else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) 29724: return __hyperg_series(__a, __b_nint, __c, __x); 29724: else if (__x < -_Tp(0.25L)) 29724: return __hyperg_luke(__a, __b, __c, __x); 29724: else if (__x < _Tp(0.5L)) 29724: return __hyperg_series(__a, __b, __c, __x); 29724: else 29724: if (std::abs(__c) > _Tp(10)) 29724: return __hyperg_series(__a, __b, __c, __x); 29724: else 29724: return __hyperg_reflect(__a, __b, __c, __x); 29724: } 29724: else 29724: return __hyperg_luke(__a, __b, __c, __x); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 53 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/legendre_function.tcc" 1 3 29724: # 49 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 65 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29724: namespace __detail 29724: { 29724: # 80 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29724: template 29724: _Tp 29724: __poly_legendre_p(unsigned int __l, _Tp __x) 29724: { 29724: 29724: if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x == +_Tp(1)) 29724: return +_Tp(1); 29724: else if (__x == -_Tp(1)) 29724: return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); 29724: else 29724: { 29724: _Tp __p_lm2 = _Tp(1); 29724: if (__l == 0) 29724: return __p_lm2; 29724: 29724: _Tp __p_lm1 = __x; 29724: if (__l == 1) 29724: return __p_lm1; 29724: 29724: _Tp __p_l = 0; 29724: for (unsigned int __ll = 2; __ll <= __l; ++__ll) 29724: { 29724: 29724: 29724: __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 29724: - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); 29724: __p_lm2 = __p_lm1; 29724: __p_lm1 = __p_l; 29724: } 29724: 29724: return __p_l; 29724: } 29724: } 29724: # 136 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29724: template 29724: _Tp 29724: __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, 29724: _Tp __phase = _Tp(+1)) 29724: { 29724: 29724: if (__m > __l) 29724: return _Tp(0); 29724: else if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__m == 0) 29724: return __poly_legendre_p(__l, __x); 29724: else 29724: { 29724: _Tp __p_mm = _Tp(1); 29724: if (__m > 0) 29724: { 29724: 29724: 29724: _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); 29724: _Tp __fact = _Tp(1); 29724: for (unsigned int __i = 1; __i <= __m; ++__i) 29724: { 29724: __p_mm *= __phase * __fact * __root; 29724: __fact += _Tp(2); 29724: } 29724: } 29724: if (__l == __m) 29724: return __p_mm; 29724: 29724: _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; 29724: if (__l == __m + 1) 29724: return __p_mp1m; 29724: 29724: _Tp __p_lm2m = __p_mm; 29724: _Tp __P_lm1m = __p_mp1m; 29724: _Tp __p_lm = _Tp(0); 29724: for (unsigned int __j = __m + 2; __j <= __l; ++__j) 29724: { 29724: __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m 29724: - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); 29724: __p_lm2m = __P_lm1m; 29724: __P_lm1m = __p_lm; 29724: } 29724: 29724: return __p_lm; 29724: } 29724: } 29724: # 214 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29724: template 29724: _Tp 29724: __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 29724: { 29724: if (__isnan(__theta)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: 29724: const _Tp __x = std::cos(__theta); 29724: 29724: if (__m > __l) 29724: return _Tp(0); 29724: else if (__m == 0) 29724: { 29724: _Tp __P = __poly_legendre_p(__l, __x); 29724: _Tp __fact = std::sqrt(_Tp(2 * __l + 1) 29724: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 29724: __P *= __fact; 29724: return __P; 29724: } 29724: else if (__x == _Tp(1) || __x == -_Tp(1)) 29724: { 29724: 29724: return _Tp(0); 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: 29724: 29724: const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); 29724: const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); 29724: 29724: const _Tp __lncirc = ::std::log1p(-__x * __x); 29724: 29724: 29724: 29724: 29724: 29724: const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) 29724: - ::std::lgamma(_Tp(__m)); 29724: 29724: 29724: 29724: 29724: const _Tp __lnpre_val = 29724: -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() 29724: + _Tp(0.5L) * (__lnpoch + __m * __lncirc); 29724: const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) 29724: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 29724: _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); 29724: _Tp __y_mp1m = __y_mp1m_factor * __y_mm; 29724: 29724: if (__l == __m) 29724: return __y_mm; 29724: else if (__l == __m + 1) 29724: return __y_mp1m; 29724: else 29724: { 29724: _Tp __y_lm = _Tp(0); 29724: 29724: 29724: for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) 29724: { 29724: const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); 29724: const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); 29724: const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) 29724: * _Tp(2 * __ll - 1)); 29724: const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) 29724: / _Tp(2 * __ll - 3)); 29724: __y_lm = (__x * __y_mp1m * __fact1 29724: - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); 29724: __y_mm = __y_mp1m; 29724: __y_mp1m = __y_lm; 29724: } 29724: 29724: return __y_lm; 29724: } 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 54 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 1 3 29724: # 51 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 65 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: namespace __detail 29724: { 29724: # 83 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: template 29724: void 29724: __bessel_ik(_Tp __nu, _Tp __x, 29724: _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) 29724: { 29724: if (__x == _Tp(0)) 29724: { 29724: if (__nu == _Tp(0)) 29724: { 29724: __Inu = _Tp(1); 29724: __Ipnu = _Tp(0); 29724: } 29724: else if (__nu == _Tp(1)) 29724: { 29724: __Inu = _Tp(0); 29724: __Ipnu = _Tp(0.5L); 29724: } 29724: else 29724: { 29724: __Inu = _Tp(0); 29724: __Ipnu = _Tp(0); 29724: } 29724: __Knu = std::numeric_limits<_Tp>::infinity(); 29724: __Kpnu = -std::numeric_limits<_Tp>::infinity(); 29724: return; 29724: } 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); 29724: const int __max_iter = 15000; 29724: const _Tp __x_min = _Tp(2); 29724: 29724: const int __nl = static_cast(__nu + _Tp(0.5L)); 29724: 29724: const _Tp __mu = __nu - __nl; 29724: const _Tp __mu2 = __mu * __mu; 29724: const _Tp __xi = _Tp(1) / __x; 29724: const _Tp __xi2 = _Tp(2) * __xi; 29724: _Tp __h = __nu * __xi; 29724: if ( __h < __fp_min ) 29724: __h = __fp_min; 29724: _Tp __b = __xi2 * __nu; 29724: _Tp __d = _Tp(0); 29724: _Tp __c = __h; 29724: int __i; 29724: for ( __i = 1; __i <= __max_iter; ++__i ) 29724: { 29724: __b += __xi2; 29724: __d = _Tp(1) / (__b + __d); 29724: __c = __b + _Tp(1) / __c; 29724: const _Tp __del = __c * __d; 29724: __h *= __del; 29724: if (std::abs(__del - _Tp(1)) < __eps) 29724: break; 29724: } 29724: if (__i > __max_iter) 29724: std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") 29724: 29724: ); 29724: _Tp __Inul = __fp_min; 29724: _Tp __Ipnul = __h * __Inul; 29724: _Tp __Inul1 = __Inul; 29724: _Tp __Ipnu1 = __Ipnul; 29724: _Tp __fact = __nu * __xi; 29724: for (int __l = __nl; __l >= 1; --__l) 29724: { 29724: const _Tp __Inutemp = __fact * __Inul + __Ipnul; 29724: __fact -= __xi; 29724: __Ipnul = __fact * __Inutemp + __Inul; 29724: __Inul = __Inutemp; 29724: } 29724: _Tp __f = __Ipnul / __Inul; 29724: _Tp __Kmu, __Knu1; 29724: if (__x < __x_min) 29724: { 29724: const _Tp __x2 = __x / _Tp(2); 29724: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 29724: const _Tp __fact = (std::abs(__pimu) < __eps 29724: ? _Tp(1) : __pimu / std::sin(__pimu)); 29724: _Tp __d = -std::log(__x2); 29724: _Tp __e = __mu * __d; 29724: const _Tp __fact2 = (std::abs(__e) < __eps 29724: ? _Tp(1) : std::sinh(__e) / __e); 29724: _Tp __gam1, __gam2, __gampl, __gammi; 29724: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 29724: _Tp __ff = __fact 29724: * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 29724: _Tp __sum = __ff; 29724: __e = std::exp(__e); 29724: _Tp __p = __e / (_Tp(2) * __gampl); 29724: _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); 29724: _Tp __c = _Tp(1); 29724: __d = __x2 * __x2; 29724: _Tp __sum1 = __p; 29724: int __i; 29724: for (__i = 1; __i <= __max_iter; ++__i) 29724: { 29724: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 29724: __c *= __d / __i; 29724: __p /= __i - __mu; 29724: __q /= __i + __mu; 29724: const _Tp __del = __c * __ff; 29724: __sum += __del; 29724: const _Tp __del1 = __c * (__p - __i * __ff); 29724: __sum1 += __del1; 29724: if (std::abs(__del) < __eps * std::abs(__sum)) 29724: break; 29724: } 29724: if (__i > __max_iter) 29724: std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") 29724: ); 29724: __Kmu = __sum; 29724: __Knu1 = __sum1 * __xi2; 29724: } 29724: else 29724: { 29724: _Tp __b = _Tp(2) * (_Tp(1) + __x); 29724: _Tp __d = _Tp(1) / __b; 29724: _Tp __delh = __d; 29724: _Tp __h = __delh; 29724: _Tp __q1 = _Tp(0); 29724: _Tp __q2 = _Tp(1); 29724: _Tp __a1 = _Tp(0.25L) - __mu2; 29724: _Tp __q = __c = __a1; 29724: _Tp __a = -__a1; 29724: _Tp __s = _Tp(1) + __q * __delh; 29724: int __i; 29724: for (__i = 2; __i <= __max_iter; ++__i) 29724: { 29724: __a -= 2 * (__i - 1); 29724: __c = -__a * __c / __i; 29724: const _Tp __qnew = (__q1 - __b * __q2) / __a; 29724: __q1 = __q2; 29724: __q2 = __qnew; 29724: __q += __c * __qnew; 29724: __b += _Tp(2); 29724: __d = _Tp(1) / (__b + __a * __d); 29724: __delh = (__b * __d - _Tp(1)) * __delh; 29724: __h += __delh; 29724: const _Tp __dels = __q * __delh; 29724: __s += __dels; 29724: if ( std::abs(__dels / __s) < __eps ) 29724: break; 29724: } 29724: if (__i > __max_iter) 29724: std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") 29724: ); 29724: __h = __a1 * __h; 29724: __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) 29724: * std::exp(-__x) / __s; 29724: __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; 29724: } 29724: 29724: _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; 29724: _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); 29724: __Inu = __Inumu * __Inul1 / __Inul; 29724: __Ipnu = __Inumu * __Ipnu1 / __Inul; 29724: for ( __i = 1; __i <= __nl; ++__i ) 29724: { 29724: const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; 29724: __Kmu = __Knu1; 29724: __Knu1 = __Knutemp; 29724: } 29724: __Knu = __Kmu; 29724: __Kpnu = __nu * __xi * __Kmu - __Knu1; 29724: 29724: return; 29724: } 29724: # 267 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: template 29724: _Tp 29724: __cyl_bessel_i(_Tp __nu, _Tp __x) 29724: { 29724: if (__nu < _Tp(0) || __x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") 29724: ); 29724: else if (__isnan(__nu) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 29724: return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); 29724: else 29724: { 29724: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 29724: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29724: return __I_nu; 29724: } 29724: } 29724: # 303 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: template 29724: _Tp 29724: __cyl_bessel_k(_Tp __nu, _Tp __x) 29724: { 29724: if (__nu < _Tp(0) || __x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") 29724: ); 29724: else if (__isnan(__nu) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: { 29724: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 29724: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29724: return __K_nu; 29724: } 29724: } 29724: # 337 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: template 29724: void 29724: __sph_bessel_ik(unsigned int __n, _Tp __x, 29724: _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) 29724: { 29724: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 29724: 29724: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 29724: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29724: 29724: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 29724: / std::sqrt(__x); 29724: 29724: __i_n = __factor * __I_nu; 29724: __k_n = __factor * __K_nu; 29724: __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); 29724: __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); 29724: 29724: return; 29724: } 29724: # 373 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: template 29724: void 29724: __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) 29724: { 29724: const _Tp __absx = std::abs(__x); 29724: const _Tp __rootx = std::sqrt(__absx); 29724: const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); 29724: const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); 29724: 29724: if (__isnan(__x)) 29724: __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__z == _S_inf) 29724: { 29724: __Aip = __Ai = _Tp(0); 29724: __Bip = __Bi = _S_inf; 29724: } 29724: else if (__z == -_S_inf) 29724: __Bip = __Aip = __Bi = __Ai = _Tp(0); 29724: else if (__x > _Tp(0)) 29724: { 29724: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 29724: 29724: __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29724: __Ai = __rootx * __K_nu 29724: / (__numeric_constants<_Tp>::__sqrt3() 29724: * __numeric_constants<_Tp>::__pi()); 29724: __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() 29724: + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); 29724: 29724: __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29724: __Aip = -__x * __K_nu 29724: / (__numeric_constants<_Tp>::__sqrt3() 29724: * __numeric_constants<_Tp>::__pi()); 29724: __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() 29724: + _Tp(2) * __I_nu 29724: / __numeric_constants<_Tp>::__sqrt3()); 29724: } 29724: else if (__x < _Tp(0)) 29724: { 29724: _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; 29724: 29724: __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29724: __Ai = __rootx * (__J_nu 29724: - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 29724: __Bi = -__rootx * (__N_nu 29724: + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 29724: 29724: __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29724: __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() 29724: + __J_nu) / _Tp(2); 29724: __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() 29724: - __N_nu) / _Tp(2); 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: __Ai = _Tp(0.35502805388781723926L); 29724: __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); 29724: 29724: 29724: 29724: 29724: __Aip = -_Tp(0.25881940379280679840L); 29724: __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); 29724: } 29724: 29724: return; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 55 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/poly_hermite.tcc" 1 3 29724: # 42 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 56 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29724: namespace __detail 29724: { 29724: # 72 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29724: template 29724: _Tp 29724: __poly_hermite_recursion(unsigned int __n, _Tp __x) 29724: { 29724: 29724: _Tp __H_0 = 1; 29724: if (__n == 0) 29724: return __H_0; 29724: 29724: 29724: _Tp __H_1 = 2 * __x; 29724: if (__n == 1) 29724: return __H_1; 29724: 29724: 29724: _Tp __H_n, __H_nm1, __H_nm2; 29724: unsigned int __i; 29724: for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) 29724: { 29724: __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); 29724: __H_nm2 = __H_nm1; 29724: __H_nm1 = __H_n; 29724: } 29724: 29724: return __H_n; 29724: } 29724: # 114 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29724: template 29724: inline _Tp 29724: __poly_hermite(unsigned int __n, _Tp __x) 29724: { 29724: if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: return __poly_hermite_recursion(__n, __x); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 56 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 1 3 29724: # 44 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 60 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: namespace __detail 29724: { 29724: # 75 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: _Tp 29724: __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) 29724: { 29724: const _Tp __a = -_Tp(__n); 29724: const _Tp __b = _Tp(__alpha1) + _Tp(1); 29724: const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; 29724: const _Tp __cos2th = __x / __eta; 29724: const _Tp __sin2th = _Tp(1) - __cos2th; 29724: const _Tp __th = std::acos(std::sqrt(__cos2th)); 29724: const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() 29724: * __numeric_constants<_Tp>::__pi_2() 29724: * __eta * __eta * __cos2th * __sin2th; 29724: 29724: 29724: const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); 29724: const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); 29724: 29724: 29724: 29724: 29724: 29724: _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) 29724: * std::log(_Tp(0.25L) * __x * __eta); 29724: _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); 29724: _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x 29724: + __pre_term1 - __pre_term2; 29724: _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); 29724: _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta 29724: * (_Tp(2) * __th 29724: - std::sin(_Tp(2) * __th)) 29724: + __numeric_constants<_Tp>::__pi_4()); 29724: _Tp __ser = __ser_term1 + __ser_term2; 29724: 29724: return std::exp(__lnpre) * __ser; 29724: } 29724: # 129 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: _Tp 29724: __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) 29724: { 29724: const _Tp __b = _Tp(__alpha1) + _Tp(1); 29724: const _Tp __mx = -__x; 29724: const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) 29724: : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); 29724: 29724: _Tp __tc = _Tp(1); 29724: const _Tp __ax = std::abs(__x); 29724: for (unsigned int __k = 1; __k <= __n; ++__k) 29724: __tc *= (__ax / __k); 29724: 29724: _Tp __term = __tc * __tc_sgn; 29724: _Tp __sum = __term; 29724: for (int __k = int(__n) - 1; __k >= 0; --__k) 29724: { 29724: __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) 29724: * _Tp(__k + 1) / __mx; 29724: __sum += __term; 29724: } 29724: 29724: return __sum; 29724: } 29724: # 185 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: _Tp 29724: __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) 29724: { 29724: 29724: _Tp __l_0 = _Tp(1); 29724: if (__n == 0) 29724: return __l_0; 29724: 29724: 29724: _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); 29724: if (__n == 1) 29724: return __l_1; 29724: 29724: 29724: _Tp __l_n2 = __l_0; 29724: _Tp __l_n1 = __l_1; 29724: _Tp __l_n = _Tp(0); 29724: for (unsigned int __nn = 2; __nn <= __n; ++__nn) 29724: { 29724: __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) 29724: * __l_n1 / _Tp(__nn) 29724: - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); 29724: __l_n2 = __l_n1; 29724: __l_n1 = __l_n; 29724: } 29724: 29724: return __l_n; 29724: } 29724: # 244 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: _Tp 29724: __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) 29724: { 29724: if (__x < _Tp(0)) 29724: std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") 29724: ); 29724: 29724: else if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__n == 0) 29724: return _Tp(1); 29724: else if (__n == 1) 29724: return _Tp(1) + _Tp(__alpha1) - __x; 29724: else if (__x == _Tp(0)) 29724: { 29724: _Tp __prod = _Tp(__alpha1) + _Tp(1); 29724: for (unsigned int __k = 2; __k <= __n; ++__k) 29724: __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); 29724: return __prod; 29724: } 29724: else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) 29724: && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) 29724: return __poly_laguerre_large_n(__n, __alpha1, __x); 29724: else if (_Tp(__alpha1) >= _Tp(0) 29724: || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) 29724: return __poly_laguerre_recursion(__n, __alpha1, __x); 29724: else 29724: return __poly_laguerre_hyperg(__n, __alpha1, __x); 29724: } 29724: # 296 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: inline _Tp 29724: __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 29724: { return __poly_laguerre(__n, __m, __x); } 29724: # 316 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: inline _Tp 29724: __laguerre(unsigned int __n, _Tp __x) 29724: { return __poly_laguerre(__n, 0, __x); } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 57 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 1 3 29724: # 47 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 63 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: namespace __detail 29724: { 29724: # 78 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __riemann_zeta_sum(_Tp __s) 29724: { 29724: 29724: if (__s < _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in zeta sum.")); 29724: 29724: const unsigned int max_iter = 10000; 29724: _Tp __zeta = _Tp(0); 29724: for (unsigned int __k = 1; __k < max_iter; ++__k) 29724: { 29724: _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); 29724: if (__term < std::numeric_limits<_Tp>::epsilon()) 29724: { 29724: break; 29724: } 29724: __zeta += __term; 29724: } 29724: 29724: return __zeta; 29724: } 29724: # 115 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __riemann_zeta_alt(_Tp __s) 29724: { 29724: _Tp __sgn = _Tp(1); 29724: _Tp __zeta = _Tp(0); 29724: for (unsigned int __i = 1; __i < 10000000; ++__i) 29724: { 29724: _Tp __term = __sgn / std::pow(__i, __s); 29724: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __zeta += __term; 29724: __sgn *= _Tp(-1); 29724: } 29724: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 29724: 29724: return __zeta; 29724: } 29724: # 157 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __riemann_zeta_glob(_Tp __s) 29724: { 29724: _Tp __zeta = _Tp(0); 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 29724: * std::log(_Tp(10)) - _Tp(1); 29724: 29724: 29724: 29724: if (__s < _Tp(0)) 29724: { 29724: 29724: if (::std::fmod(__s,_Tp(2)) == _Tp(0)) 29724: return _Tp(0); 29724: else 29724: 29724: { 29724: _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); 29724: __zeta *= std::pow(_Tp(2) 29724: * __numeric_constants<_Tp>::__pi(), __s) 29724: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29724: 29724: * std::exp(::std::lgamma(_Tp(1) - __s)) 29724: 29724: 29724: 29724: / __numeric_constants<_Tp>::__pi(); 29724: return __zeta; 29724: } 29724: } 29724: 29724: _Tp __num = _Tp(0.5L); 29724: const unsigned int __maxit = 10000; 29724: for (unsigned int __i = 0; __i < __maxit; ++__i) 29724: { 29724: bool __punt = false; 29724: _Tp __sgn = _Tp(1); 29724: _Tp __term = _Tp(0); 29724: for (unsigned int __j = 0; __j <= __i; ++__j) 29724: { 29724: 29724: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 29724: - ::std::lgamma(_Tp(1 + __j)) 29724: - ::std::lgamma(_Tp(1 + __i - __j)); 29724: 29724: 29724: 29724: 29724: 29724: if (__bincoeff > __max_bincoeff) 29724: { 29724: 29724: __punt = true; 29724: break; 29724: } 29724: __bincoeff = std::exp(__bincoeff); 29724: __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); 29724: __sgn *= _Tp(-1); 29724: } 29724: if (__punt) 29724: break; 29724: __term *= __num; 29724: __zeta += __term; 29724: if (std::abs(__term/__zeta) < __eps) 29724: break; 29724: __num *= _Tp(0.5L); 29724: } 29724: 29724: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 29724: 29724: return __zeta; 29724: } 29724: # 252 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __riemann_zeta_product(_Tp __s) 29724: { 29724: static const _Tp __prime[] = { 29724: _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), 29724: _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), 29724: _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), 29724: _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) 29724: }; 29724: static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); 29724: 29724: _Tp __zeta = _Tp(1); 29724: for (unsigned int __i = 0; __i < __num_primes; ++__i) 29724: { 29724: const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); 29724: __zeta *= __fact; 29724: if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: } 29724: 29724: __zeta = _Tp(1) / __zeta; 29724: 29724: return __zeta; 29724: } 29724: # 293 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __riemann_zeta(_Tp __s) 29724: { 29724: if (__isnan(__s)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__s == _Tp(1)) 29724: return std::numeric_limits<_Tp>::infinity(); 29724: else if (__s < -_Tp(19)) 29724: { 29724: _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); 29724: __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) 29724: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29724: 29724: * std::exp(::std::lgamma(_Tp(1) - __s)) 29724: 29724: 29724: 29724: / __numeric_constants<_Tp>::__pi(); 29724: return __zeta; 29724: } 29724: else if (__s < _Tp(20)) 29724: { 29724: 29724: bool __glob = true; 29724: if (__glob) 29724: return __riemann_zeta_glob(__s); 29724: else 29724: { 29724: if (__s > _Tp(1)) 29724: return __riemann_zeta_sum(__s); 29724: else 29724: { 29724: _Tp __zeta = std::pow(_Tp(2) 29724: * __numeric_constants<_Tp>::__pi(), __s) 29724: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29724: 29724: * ::std::tgamma(_Tp(1) - __s) 29724: 29724: 29724: 29724: * __riemann_zeta_sum(_Tp(1) - __s); 29724: return __zeta; 29724: } 29724: } 29724: } 29724: else 29724: return __riemann_zeta_product(__s); 29724: } 29724: # 365 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __hurwitz_zeta_glob(_Tp __a, _Tp __s) 29724: { 29724: _Tp __zeta = _Tp(0); 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 29724: * std::log(_Tp(10)) - _Tp(1); 29724: 29724: const unsigned int __maxit = 10000; 29724: for (unsigned int __i = 0; __i < __maxit; ++__i) 29724: { 29724: bool __punt = false; 29724: _Tp __sgn = _Tp(1); 29724: _Tp __term = _Tp(0); 29724: for (unsigned int __j = 0; __j <= __i; ++__j) 29724: { 29724: 29724: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 29724: - ::std::lgamma(_Tp(1 + __j)) 29724: - ::std::lgamma(_Tp(1 + __i - __j)); 29724: 29724: 29724: 29724: 29724: 29724: if (__bincoeff > __max_bincoeff) 29724: { 29724: 29724: __punt = true; 29724: break; 29724: } 29724: __bincoeff = std::exp(__bincoeff); 29724: __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); 29724: __sgn *= _Tp(-1); 29724: } 29724: if (__punt) 29724: break; 29724: __term /= _Tp(__i + 1); 29724: if (std::abs(__term / __zeta) < __eps) 29724: break; 29724: __zeta += __term; 29724: } 29724: 29724: __zeta /= __s - _Tp(1); 29724: 29724: return __zeta; 29724: } 29724: # 430 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: inline _Tp 29724: __hurwitz_zeta(_Tp __a, _Tp __s) 29724: { return __hurwitz_zeta_glob(__a, __s); } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 58 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 203 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: assoc_laguerref(unsigned int __n, unsigned int __m, float __x) 29724: { return __detail::__assoc_laguerre(__n, __m, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) 29724: { return __detail::__assoc_laguerre(__n, __m, __x); } 29724: # 248 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__assoc_laguerre<__type>(__n, __m, __x); 29724: } 29724: # 264 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: assoc_legendref(unsigned int __l, unsigned int __m, float __x) 29724: { return __detail::__assoc_legendre_p(__l, __m, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) 29724: { return __detail::__assoc_legendre_p(__l, __m, __x); } 29724: # 294 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__assoc_legendre_p<__type>(__l, __m, __x); 29724: } 29724: # 309 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: betaf(float __a, float __b) 29724: { return __detail::__beta(__a, __b); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: betal(long double __a, long double __b) 29724: { return __detail::__beta(__a, __b); } 29724: # 339 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type 29724: beta(_Tpa __a, _Tpb __b) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; 29724: return __detail::__beta<__type>(__a, __b); 29724: } 29724: # 355 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: comp_ellint_1f(float __k) 29724: { return __detail::__comp_ellint_1(__k); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: comp_ellint_1l(long double __k) 29724: { return __detail::__comp_ellint_1(__k); } 29724: # 387 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: comp_ellint_1(_Tp __k) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__comp_ellint_1<__type>(__k); 29724: } 29724: # 403 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: comp_ellint_2f(float __k) 29724: { return __detail::__comp_ellint_2(__k); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: comp_ellint_2l(long double __k) 29724: { return __detail::__comp_ellint_2(__k); } 29724: # 434 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: comp_ellint_2(_Tp __k) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__comp_ellint_2<__type>(__k); 29724: } 29724: # 450 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: comp_ellint_3f(float __k, float __nu) 29724: { return __detail::__comp_ellint_3(__k, __nu); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: comp_ellint_3l(long double __k, long double __nu) 29724: { return __detail::__comp_ellint_3(__k, __nu); } 29724: # 485 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type 29724: comp_ellint_3(_Tp __k, _Tpn __nu) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; 29724: return __detail::__comp_ellint_3<__type>(__k, __nu); 29724: } 29724: # 501 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: cyl_bessel_if(float __nu, float __x) 29724: { return __detail::__cyl_bessel_i(__nu, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: cyl_bessel_il(long double __nu, long double __x) 29724: { return __detail::__cyl_bessel_i(__nu, __x); } 29724: # 531 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29724: cyl_bessel_i(_Tpnu __nu, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29724: return __detail::__cyl_bessel_i<__type>(__nu, __x); 29724: } 29724: # 547 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: cyl_bessel_jf(float __nu, float __x) 29724: { return __detail::__cyl_bessel_j(__nu, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: cyl_bessel_jl(long double __nu, long double __x) 29724: { return __detail::__cyl_bessel_j(__nu, __x); } 29724: # 577 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29724: cyl_bessel_j(_Tpnu __nu, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29724: return __detail::__cyl_bessel_j<__type>(__nu, __x); 29724: } 29724: # 593 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: cyl_bessel_kf(float __nu, float __x) 29724: { return __detail::__cyl_bessel_k(__nu, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: cyl_bessel_kl(long double __nu, long double __x) 29724: { return __detail::__cyl_bessel_k(__nu, __x); } 29724: # 629 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29724: cyl_bessel_k(_Tpnu __nu, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29724: return __detail::__cyl_bessel_k<__type>(__nu, __x); 29724: } 29724: # 645 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: cyl_neumannf(float __nu, float __x) 29724: { return __detail::__cyl_neumann_n(__nu, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: cyl_neumannl(long double __nu, long double __x) 29724: { return __detail::__cyl_neumann_n(__nu, __x); } 29724: # 677 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29724: cyl_neumann(_Tpnu __nu, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29724: return __detail::__cyl_neumann_n<__type>(__nu, __x); 29724: } 29724: # 693 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: ellint_1f(float __k, float __phi) 29724: { return __detail::__ellint_1(__k, __phi); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: ellint_1l(long double __k, long double __phi) 29724: { return __detail::__ellint_1(__k, __phi); } 29724: # 725 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 29724: ellint_1(_Tp __k, _Tpp __phi) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 29724: return __detail::__ellint_1<__type>(__k, __phi); 29724: } 29724: # 741 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: ellint_2f(float __k, float __phi) 29724: { return __detail::__ellint_2(__k, __phi); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: ellint_2l(long double __k, long double __phi) 29724: { return __detail::__ellint_2(__k, __phi); } 29724: # 773 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 29724: ellint_2(_Tp __k, _Tpp __phi) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 29724: return __detail::__ellint_2<__type>(__k, __phi); 29724: } 29724: # 789 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: ellint_3f(float __k, float __nu, float __phi) 29724: { return __detail::__ellint_3(__k, __nu, __phi); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: ellint_3l(long double __k, long double __nu, long double __phi) 29724: { return __detail::__ellint_3(__k, __nu, __phi); } 29724: # 826 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type 29724: ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) 29724: { 29724: typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; 29724: return __detail::__ellint_3<__type>(__k, __nu, __phi); 29724: } 29724: # 841 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: expintf(float __x) 29724: { return __detail::__expint(__x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: expintl(long double __x) 29724: { return __detail::__expint(__x); } 29724: # 866 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: expint(_Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__expint<__type>(__x); 29724: } 29724: # 882 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: hermitef(unsigned int __n, float __x) 29724: { return __detail::__poly_hermite(__n, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: hermitel(unsigned int __n, long double __x) 29724: { return __detail::__poly_hermite(__n, __x); } 29724: # 914 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: hermite(unsigned int __n, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__poly_hermite<__type>(__n, __x); 29724: } 29724: # 930 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: laguerref(unsigned int __n, float __x) 29724: { return __detail::__laguerre(__n, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: laguerrel(unsigned int __n, long double __x) 29724: { return __detail::__laguerre(__n, __x); } 29724: # 958 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: laguerre(unsigned int __n, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__laguerre<__type>(__n, __x); 29724: } 29724: # 974 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: legendref(unsigned int __l, float __x) 29724: { return __detail::__poly_legendre_p(__l, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: legendrel(unsigned int __l, long double __x) 29724: { return __detail::__poly_legendre_p(__l, __x); } 29724: # 1003 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: legendre(unsigned int __l, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__poly_legendre_p<__type>(__l, __x); 29724: } 29724: # 1019 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: riemann_zetaf(float __s) 29724: { return __detail::__riemann_zeta(__s); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: riemann_zetal(long double __s) 29724: { return __detail::__riemann_zeta(__s); } 29724: # 1054 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: riemann_zeta(_Tp __s) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__riemann_zeta<__type>(__s); 29724: } 29724: # 1070 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: sph_besself(unsigned int __n, float __x) 29724: { return __detail::__sph_bessel(__n, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: sph_bessell(unsigned int __n, long double __x) 29724: { return __detail::__sph_bessel(__n, __x); } 29724: # 1098 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: sph_bessel(unsigned int __n, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__sph_bessel<__type>(__n, __x); 29724: } 29724: # 1114 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: sph_legendref(unsigned int __l, unsigned int __m, float __theta) 29724: { return __detail::__sph_legendre(__l, __m, __theta); } 29724: # 1125 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline long double 29724: sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) 29724: { return __detail::__sph_legendre(__l, __m, __theta); } 29724: # 1145 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__sph_legendre<__type>(__l, __m, __theta); 29724: } 29724: # 1161 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: sph_neumannf(unsigned int __n, float __x) 29724: { return __detail::__sph_neumann(__n, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: sph_neumannl(unsigned int __n, long double __x) 29724: { return __detail::__sph_neumann(__n, __x); } 29724: # 1189 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: sph_neumann(unsigned int __n, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__sph_neumann<__type>(__n, __x); 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 1216 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: airy_aif(float __x) 29724: { 29724: float __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Ai; 29724: } 29724: 29724: 29724: 29724: 29724: inline long double 29724: airy_ail(long double __x) 29724: { 29724: long double __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Ai; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: airy_ai(_Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: __type __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Ai; 29724: } 29724: 29724: 29724: 29724: 29724: inline float 29724: airy_bif(float __x) 29724: { 29724: float __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Bi; 29724: } 29724: 29724: 29724: 29724: 29724: inline long double 29724: airy_bil(long double __x) 29724: { 29724: long double __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Bi; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: airy_bi(_Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: __type __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Bi; 29724: } 29724: # 1292 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: conf_hypergf(float __a, float __c, float __x) 29724: { return std::__detail::__conf_hyperg(__a, __c, __x); } 29724: # 1303 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline long double 29724: conf_hypergl(long double __a, long double __c, long double __x) 29724: { return std::__detail::__conf_hyperg(__a, __c, __x); } 29724: # 1323 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type 29724: conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; 29724: return std::__detail::__conf_hyperg<__type>(__a, __c, __x); 29724: } 29724: # 1340 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: hypergf(float __a, float __b, float __c, float __x) 29724: { return std::__detail::__hyperg(__a, __b, __c, __x); } 29724: # 1351 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline long double 29724: hypergl(long double __a, long double __b, long double __c, long double __x) 29724: { return std::__detail::__hyperg(__a, __b, __c, __x); } 29724: # 1372 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type 29724: hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> 29724: ::__type __type; 29724: return std::__detail::__hyperg<__type>(__a, __b, __c, __x); 29724: } 29724: 29724: 29724: 29724: } 29724: # 3907 "/usr/include/c++/14/cmath" 2 3 29724: 29724: 29724: } 29724: # 41 "/usr/include/c++/14/random" 2 3 29724: 29724: # 1 "/usr/include/c++/14/cstdlib" 1 3 29724: # 39 "/usr/include/c++/14/cstdlib" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdlib" 3 29724: # 43 "/usr/include/c++/14/random" 2 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/random.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/random.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 58 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: _RealType 29724: generate_canonical(_UniformRandomNumberGenerator& __g); 29724: 29724: 29724: 29724: namespace __detail 29724: { 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: 29724: template 29724: (std::numeric_limits<_UIntType>::digits)> 29724: struct _Shift 29724: { static constexpr _UIntType __value = 0; }; 29724: 29724: template 29724: struct _Shift<_UIntType, __w, true> 29724: { static constexpr _UIntType __value = _UIntType(1) << __w; }; 29724: 29724: template 29724: struct _Select_uint_least_t 29724: { 29724: static_assert(__which < 0, 29724: "sorry, would be too much trouble for a slow result"); 29724: }; 29724: 29724: template 29724: struct _Select_uint_least_t<__s, 4> 29724: { using type = unsigned int; }; 29724: 29724: template 29724: struct _Select_uint_least_t<__s, 3> 29724: { using type = unsigned long; }; 29724: 29724: template 29724: struct _Select_uint_least_t<__s, 2> 29724: { using type = unsigned long long; }; 29724: # 111 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: struct _Select_uint_least_t<__s, 1> 29724: { 29724: 29724: 29724: struct type 29724: { 29724: explicit 29724: type(uint64_t __a) noexcept : _M_lo(__a), _M_hi(0) { } 29724: 29724: 29724: friend type 29724: operator*(type __l, uint64_t __x) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: constexpr uint64_t __mask = 0xffffffff; 29724: uint64_t __ll[2] = { __l._M_lo >> 32, __l._M_lo & __mask }; 29724: uint64_t __xx[2] = { __x >> 32, __x & __mask }; 29724: uint64_t __l0x0 = __ll[0] * __xx[0]; 29724: uint64_t __l0x1 = __ll[0] * __xx[1]; 29724: uint64_t __l1x0 = __ll[1] * __xx[0]; 29724: uint64_t __l1x1 = __ll[1] * __xx[1]; 29724: 29724: 29724: uint64_t __mid 29724: = (__l0x1 & __mask) + (__l1x0 & __mask) + (__l1x1 >> 32); 29724: __l._M_hi = __l0x0 + (__l0x1 >> 32) + (__l1x0 >> 32) + (__mid >> 32); 29724: __l._M_lo = (__mid << 32) + (__l1x1 & __mask); 29724: return __l; 29724: } 29724: 29724: friend type 29724: operator+(type __l, uint64_t __c) noexcept 29724: { 29724: __l._M_hi += __builtin_add_overflow(__l._M_lo, __c, &__l._M_lo); 29724: return __l; 29724: } 29724: 29724: friend type 29724: operator%(type __l, uint64_t __m) noexcept 29724: { 29724: if (__builtin_expect(__l._M_hi == 0, 0)) 29724: { 29724: __l._M_lo %= __m; 29724: return __l; 29724: } 29724: 29724: int __shift = __builtin_clzll(__m) + 64 29724: - __builtin_clzll(__l._M_hi); 29724: type __x(0); 29724: if (__shift >= 64) 29724: { 29724: __x._M_hi = __m << (__shift - 64); 29724: __x._M_lo = 0; 29724: } 29724: else 29724: { 29724: __x._M_hi = __m >> (64 - __shift); 29724: __x._M_lo = __m << __shift; 29724: } 29724: 29724: while (__l._M_hi != 0 || __l._M_lo >= __m) 29724: { 29724: if (__x <= __l) 29724: { 29724: __l._M_hi -= __x._M_hi; 29724: __l._M_hi -= __builtin_sub_overflow(__l._M_lo, __x._M_lo, 29724: &__l._M_lo); 29724: } 29724: __x._M_lo = (__x._M_lo >> 1) | (__x._M_hi << 63); 29724: __x._M_hi >>= 1; 29724: } 29724: return __l; 29724: } 29724: 29724: 29724: explicit operator uint64_t() const noexcept 29724: { return _M_lo; } 29724: 29724: friend bool operator<(const type& __l, const type& __r) noexcept 29724: { 29724: if (__l._M_hi < __r._M_hi) 29724: return true; 29724: else if (__l._M_hi == __r._M_hi) 29724: return __l._M_lo < __r._M_lo; 29724: else 29724: return false; 29724: } 29724: 29724: friend bool operator<=(const type& __l, const type& __r) noexcept 29724: { return !(__r < __l); } 29724: 29724: uint64_t _M_lo; 29724: uint64_t _M_hi; 29724: }; 29724: }; 29724: 29724: 29724: 29724: template= __m - 1), 29724: bool __schrage_ok = __m % __a < __m / __a> 29724: struct _Mod 29724: { 29724: static _Tp 29724: __calc(_Tp __x) 29724: { 29724: using _Tp2 29724: = typename _Select_uint_least_t::type; 29724: return static_cast<_Tp>((_Tp2(__a) * __x + __c) % __m); 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Mod<_Tp, __m, __a, __c, false, true> 29724: { 29724: static _Tp 29724: __calc(_Tp __x); 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Mod<_Tp, __m, __a, __c, true, __s> 29724: { 29724: static _Tp 29724: __calc(_Tp __x) 29724: { 29724: _Tp __res = __a * __x + __c; 29724: if (__m) 29724: __res %= __m; 29724: return __res; 29724: } 29724: }; 29724: 29724: template 29724: inline _Tp 29724: __mod(_Tp __x) 29724: { 29724: if constexpr (__a == 0) 29724: return __c; 29724: else 29724: return _Mod<_Tp, __m, __a, __c>::__calc(__x); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Adaptor 29724: { 29724: static_assert(std::is_floating_point<_DInputType>::value, 29724: "template argument must be a floating point type"); 29724: 29724: public: 29724: _Adaptor(_Engine& __g) 29724: : _M_g(__g) { } 29724: 29724: _DInputType 29724: min() const 29724: { return _DInputType(0); } 29724: 29724: _DInputType 29724: max() const 29724: { return _DInputType(1); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: _DInputType 29724: operator()() 29724: { 29724: return std::generate_canonical<_DInputType, 29724: std::numeric_limits<_DInputType>::digits, 29724: _Engine>(_M_g); 29724: } 29724: 29724: private: 29724: _Engine& _M_g; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: using __seed_seq_generate_t = decltype( 29724: std::declval<_Sseq&>().generate(std::declval(), 29724: std::declval())); 29724: 29724: template> 29724: using _If_seed_seq_for = _Require< 29724: __not_, _Engine>>, 29724: is_unsigned, 29724: __not_> 29724: >; 29724: 29724: #pragma GCC diagnostic pop 29724: } 29724: # 365 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class linear_congruential_engine 29724: { 29724: static_assert(std::is_unsigned<_UIntType>::value, 29724: "result_type must be an unsigned integral type"); 29724: static_assert(__m == 0u || (__a < __m && __c < __m), 29724: "template argument substituting __m out of bounds"); 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, linear_congruential_engine, 29724: _UIntType>; 29724: 29724: public: 29724: 29724: typedef _UIntType result_type; 29724: 29724: 29724: static constexpr result_type multiplier = __a; 29724: 29724: static constexpr result_type increment = __c; 29724: 29724: static constexpr result_type modulus = __m; 29724: static constexpr result_type default_seed = 1u; 29724: 29724: 29724: 29724: 29724: 29724: linear_congruential_engine() : linear_congruential_engine(default_seed) 29724: { } 29724: # 404 "/usr/include/c++/14/bits/random.h" 3 29724: explicit 29724: linear_congruential_engine(result_type __s) 29724: { seed(__s); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: linear_congruential_engine(_Sseq& __q) 29724: { seed(__q); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed(result_type __s = default_seed); 29724: # 435 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return __c == 0u ? 1u : 0u; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return __m - 1u; } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z) 29724: { 29724: for (; __z != 0ULL; --__z) 29724: (*this)(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: operator()() 29724: { 29724: _M_x = __detail::__mod<_UIntType, __m, __a, __c>(_M_x); 29724: return _M_x; 29724: } 29724: # 487 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const linear_congruential_engine& __lhs, 29724: const linear_congruential_engine& __rhs) 29724: { return __lhs._M_x == __rhs._M_x; } 29724: # 500 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::linear_congruential_engine<_UIntType1, 29724: __a1, __c1, __m1>& __lcr); 29724: # 520 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::linear_congruential_engine<_UIntType1, __a1, 29724: __c1, __m1>& __lcr); 29724: 29724: private: 29724: _UIntType _M_x; 29724: }; 29724: # 543 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::linear_congruential_engine<_UIntType, __a, 29724: __c, __m>& __lhs, 29724: const std::linear_congruential_engine<_UIntType, __a, 29724: __c, __m>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 583 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class mersenne_twister_engine 29724: { 29724: static_assert(std::is_unsigned<_UIntType>::value, 29724: "result_type must be an unsigned integral type"); 29724: static_assert(1u <= __m && __m <= __n, 29724: "template argument substituting __m out of bounds"); 29724: static_assert(__r <= __w, "template argument substituting " 29724: "__r out of bound"); 29724: static_assert(__u <= __w, "template argument substituting " 29724: "__u out of bound"); 29724: static_assert(__s <= __w, "template argument substituting " 29724: "__s out of bound"); 29724: static_assert(__t <= __w, "template argument substituting " 29724: "__t out of bound"); 29724: static_assert(__l <= __w, "template argument substituting " 29724: "__l out of bound"); 29724: static_assert(__w <= std::numeric_limits<_UIntType>::digits, 29724: "template argument substituting __w out of bound"); 29724: static_assert(__a <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29724: "template argument substituting __a out of bound"); 29724: static_assert(__b <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29724: "template argument substituting __b out of bound"); 29724: static_assert(__c <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29724: "template argument substituting __c out of bound"); 29724: static_assert(__d <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29724: "template argument substituting __d out of bound"); 29724: static_assert(__f <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29724: "template argument substituting __f out of bound"); 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, mersenne_twister_engine, 29724: _UIntType>; 29724: 29724: public: 29724: 29724: typedef _UIntType result_type; 29724: 29724: 29724: static constexpr size_t word_size = __w; 29724: static constexpr size_t state_size = __n; 29724: static constexpr size_t shift_size = __m; 29724: static constexpr size_t mask_bits = __r; 29724: static constexpr result_type xor_mask = __a; 29724: static constexpr size_t tempering_u = __u; 29724: static constexpr result_type tempering_d = __d; 29724: static constexpr size_t tempering_s = __s; 29724: static constexpr result_type tempering_b = __b; 29724: static constexpr size_t tempering_t = __t; 29724: static constexpr result_type tempering_c = __c; 29724: static constexpr size_t tempering_l = __l; 29724: static constexpr result_type initialization_multiplier = __f; 29724: static constexpr result_type default_seed = 5489u; 29724: 29724: 29724: 29724: mersenne_twister_engine() : mersenne_twister_engine(default_seed) { } 29724: 29724: explicit 29724: mersenne_twister_engine(result_type __sd) 29724: { seed(__sd); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: mersenne_twister_engine(_Sseq& __q) 29724: { seed(__q); } 29724: 29724: void 29724: seed(result_type __sd = default_seed); 29724: 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q); 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return 0; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z); 29724: 29724: result_type 29724: operator()(); 29724: # 703 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const mersenne_twister_engine& __lhs, 29724: const mersenne_twister_engine& __rhs) 29724: { return (std::equal(__lhs._M_x, __lhs._M_x + state_size, __rhs._M_x) 29724: && __lhs._M_p == __rhs._M_p); } 29724: # 721 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::mersenne_twister_engine<_UIntType1, __w1, __n1, 29724: __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 29724: __l1, __f1>& __x); 29724: # 747 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, 29724: __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 29724: __l1, __f1>& __x); 29724: 29724: private: 29724: void _M_gen_rand(); 29724: 29724: _UIntType _M_x[state_size]; 29724: size_t _M_p; 29724: }; 29724: # 781 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 29724: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __lhs, 29724: const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 29724: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 812 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class subtract_with_carry_engine 29724: { 29724: static_assert(std::is_unsigned<_UIntType>::value, 29724: "result_type must be an unsigned integral type"); 29724: static_assert(0u < __s && __s < __r, 29724: "0 < s < r"); 29724: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 29724: "template argument substituting __w out of bounds"); 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, subtract_with_carry_engine, 29724: _UIntType>; 29724: 29724: public: 29724: 29724: typedef _UIntType result_type; 29724: 29724: 29724: static constexpr size_t word_size = __w; 29724: static constexpr size_t short_lag = __s; 29724: static constexpr size_t long_lag = __r; 29724: static constexpr uint_least32_t default_seed = 19780503u; 29724: 29724: subtract_with_carry_engine() : subtract_with_carry_engine(0u) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: subtract_with_carry_engine(result_type __sd) 29724: { seed(__sd); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: subtract_with_carry_engine(_Sseq& __q) 29724: { seed(__q); } 29724: # 871 "/usr/include/c++/14/bits/random.h" 3 29724: void 29724: seed(result_type __sd = 0u); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q); 29724: 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return 0; } 29724: 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z) 29724: { 29724: for (; __z != 0ULL; --__z) 29724: (*this)(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: operator()(); 29724: # 926 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const subtract_with_carry_engine& __lhs, 29724: const subtract_with_carry_engine& __rhs) 29724: { return (std::equal(__lhs._M_x, __lhs._M_x + long_lag, __rhs._M_x) 29724: && __lhs._M_carry == __rhs._M_carry 29724: && __lhs._M_p == __rhs._M_p); } 29724: # 945 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::subtract_with_carry_engine<_UIntType1, __w1, 29724: __s1, __r1>& __x); 29724: # 964 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::subtract_with_carry_engine<_UIntType1, __w1, 29724: __s1, __r1>& __x); 29724: 29724: private: 29724: 29724: _UIntType _M_x[long_lag]; 29724: _UIntType _M_carry; 29724: size_t _M_p; 29724: }; 29724: # 991 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::subtract_with_carry_engine<_UIntType, __w, 29724: __s, __r>& __lhs, 29724: const std::subtract_with_carry_engine<_UIntType, __w, 29724: __s, __r>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 1009 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class discard_block_engine 29724: { 29724: static_assert(1 <= __r && __r <= __p, 29724: "template argument substituting __r out of bounds"); 29724: 29724: public: 29724: 29724: typedef typename _RandomNumberEngine::result_type result_type; 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, discard_block_engine, 29724: result_type>; 29724: 29724: 29724: static constexpr size_t block_size = __p; 29724: static constexpr size_t used_block = __r; 29724: 29724: 29724: 29724: 29724: 29724: 29724: discard_block_engine() 29724: : _M_b(), _M_n(0) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: discard_block_engine(const _RandomNumberEngine& __rng) 29724: : _M_b(__rng), _M_n(0) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: discard_block_engine(_RandomNumberEngine&& __rng) 29724: : _M_b(std::move(__rng)), _M_n(0) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: discard_block_engine(result_type __s) 29724: : _M_b(__s), _M_n(0) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: discard_block_engine(_Sseq& __q) 29724: : _M_b(__q), _M_n(0) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed() 29724: { 29724: _M_b.seed(); 29724: _M_n = 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed(result_type __s) 29724: { 29724: _M_b.seed(__s); 29724: _M_n = 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q) 29724: { 29724: _M_b.seed(__q); 29724: _M_n = 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: const _RandomNumberEngine& 29724: base() const noexcept 29724: { return _M_b; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return _RandomNumberEngine::min(); } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return _RandomNumberEngine::max(); } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z) 29724: { 29724: for (; __z != 0ULL; --__z) 29724: (*this)(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: operator()(); 29724: # 1161 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const discard_block_engine& __lhs, 29724: const discard_block_engine& __rhs) 29724: { return __lhs._M_b == __rhs._M_b && __lhs._M_n == __rhs._M_n; } 29724: # 1177 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::discard_block_engine<_RandomNumberEngine1, 29724: __p1, __r1>& __x); 29724: # 1195 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::discard_block_engine<_RandomNumberEngine1, 29724: __p1, __r1>& __x); 29724: 29724: private: 29724: _RandomNumberEngine _M_b; 29724: size_t _M_n; 29724: }; 29724: # 1219 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::discard_block_engine<_RandomNumberEngine, __p, 29724: __r>& __lhs, 29724: const std::discard_block_engine<_RandomNumberEngine, __p, 29724: __r>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 1235 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class independent_bits_engine 29724: { 29724: static_assert(std::is_unsigned<_UIntType>::value, 29724: "result_type must be an unsigned integral type"); 29724: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 29724: "template argument substituting __w out of bounds"); 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, independent_bits_engine, 29724: _UIntType>; 29724: 29724: public: 29724: 29724: typedef _UIntType result_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: independent_bits_engine() 29724: : _M_b() { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: independent_bits_engine(const _RandomNumberEngine& __rng) 29724: : _M_b(__rng) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: independent_bits_engine(_RandomNumberEngine&& __rng) 29724: : _M_b(std::move(__rng)) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: independent_bits_engine(result_type __s) 29724: : _M_b(__s) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: independent_bits_engine(_Sseq& __q) 29724: : _M_b(__q) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed() 29724: { _M_b.seed(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed(result_type __s) 29724: { _M_b.seed(__s); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q) 29724: { _M_b.seed(__q); } 29724: 29724: 29724: 29724: 29724: 29724: const _RandomNumberEngine& 29724: base() const noexcept 29724: { return _M_b; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return 0U; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z) 29724: { 29724: for (; __z != 0ULL; --__z) 29724: (*this)(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: operator()(); 29724: # 1377 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const independent_bits_engine& __lhs, 29724: const independent_bits_engine& __rhs) 29724: { return __lhs._M_b == __rhs._M_b; } 29724: # 1394 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::independent_bits_engine<_RandomNumberEngine, 29724: __w, _UIntType>& __x) 29724: { 29724: __is >> __x._M_b; 29724: return __is; 29724: } 29724: 29724: private: 29724: _RandomNumberEngine _M_b; 29724: }; 29724: # 1421 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::independent_bits_engine<_RandomNumberEngine, __w, 29724: _UIntType>& __lhs, 29724: const std::independent_bits_engine<_RandomNumberEngine, __w, 29724: _UIntType>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 1440 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::independent_bits_engine<_RandomNumberEngine, 29724: __w, _UIntType>& __x) 29724: { 29724: __os << __x.base(); 29724: return __os; 29724: } 29724: # 1462 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class shuffle_order_engine 29724: { 29724: static_assert(1u <= __k, "template argument substituting " 29724: "__k out of bound"); 29724: 29724: public: 29724: 29724: typedef typename _RandomNumberEngine::result_type result_type; 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, shuffle_order_engine, 29724: result_type>; 29724: 29724: static constexpr size_t table_size = __k; 29724: 29724: 29724: 29724: 29724: 29724: 29724: shuffle_order_engine() 29724: : _M_b() 29724: { _M_initialize(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: shuffle_order_engine(const _RandomNumberEngine& __rng) 29724: : _M_b(__rng) 29724: { _M_initialize(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: shuffle_order_engine(_RandomNumberEngine&& __rng) 29724: : _M_b(std::move(__rng)) 29724: { _M_initialize(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: shuffle_order_engine(result_type __s) 29724: : _M_b(__s) 29724: { _M_initialize(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: shuffle_order_engine(_Sseq& __q) 29724: : _M_b(__q) 29724: { _M_initialize(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed() 29724: { 29724: _M_b.seed(); 29724: _M_initialize(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed(result_type __s) 29724: { 29724: _M_b.seed(__s); 29724: _M_initialize(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q) 29724: { 29724: _M_b.seed(__q); 29724: _M_initialize(); 29724: } 29724: 29724: 29724: 29724: 29724: const _RandomNumberEngine& 29724: base() const noexcept 29724: { return _M_b; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return _RandomNumberEngine::min(); } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return _RandomNumberEngine::max(); } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z) 29724: { 29724: for (; __z != 0ULL; --__z) 29724: (*this)(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: operator()(); 29724: # 1615 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const shuffle_order_engine& __lhs, 29724: const shuffle_order_engine& __rhs) 29724: { return (__lhs._M_b == __rhs._M_b 29724: && std::equal(__lhs._M_v, __lhs._M_v + __k, __rhs._M_v) 29724: && __lhs._M_y == __rhs._M_y); } 29724: # 1633 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::shuffle_order_engine<_RandomNumberEngine1, 29724: __k1>& __x); 29724: # 1651 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::shuffle_order_engine<_RandomNumberEngine1, __k1>& __x); 29724: 29724: private: 29724: void _M_initialize() 29724: { 29724: for (size_t __i = 0; __i < __k; ++__i) 29724: _M_v[__i] = _M_b(); 29724: _M_y = _M_b(); 29724: } 29724: 29724: _RandomNumberEngine _M_b; 29724: result_type _M_v[__k]; 29724: result_type _M_y; 29724: }; 29724: # 1682 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::shuffle_order_engine<_RandomNumberEngine, 29724: __k>& __lhs, 29724: const std::shuffle_order_engine<_RandomNumberEngine, 29724: __k>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: 29724: 29724: 29724: typedef linear_congruential_engine 29724: minstd_rand0; 29724: 29724: 29724: 29724: 29724: typedef linear_congruential_engine 29724: minstd_rand; 29724: # 1711 "/usr/include/c++/14/bits/random.h" 3 29724: typedef mersenne_twister_engine< 29724: uint_fast32_t, 29724: 32, 624, 397, 31, 29724: 0x9908b0dfUL, 11, 29724: 0xffffffffUL, 7, 29724: 0x9d2c5680UL, 15, 29724: 0xefc60000UL, 18, 1812433253UL> mt19937; 29724: 29724: 29724: 29724: 29724: typedef mersenne_twister_engine< 29724: uint_fast64_t, 29724: 64, 312, 156, 31, 29724: 0xb5026f5aa96619e9ULL, 29, 29724: 0x5555555555555555ULL, 17, 29724: 0x71d67fffeda60000ULL, 37, 29724: 0xfff7eee000000000ULL, 43, 29724: 6364136223846793005ULL> mt19937_64; 29724: 29724: typedef subtract_with_carry_engine 29724: ranlux24_base; 29724: 29724: typedef subtract_with_carry_engine 29724: ranlux48_base; 29724: 29724: typedef discard_block_engine ranlux24; 29724: 29724: typedef discard_block_engine ranlux48; 29724: 29724: typedef shuffle_order_engine knuth_b; 29724: 29724: typedef minstd_rand0 default_random_engine; 29724: # 1752 "/usr/include/c++/14/bits/random.h" 3 29724: class random_device 29724: { 29724: public: 29724: 29724: typedef unsigned int result_type; 29724: 29724: 29724: 29724: random_device() { _M_init("default"); } 29724: 29724: explicit 29724: random_device(const std::string& __token) { _M_init(__token); } 29724: 29724: ~random_device() 29724: { _M_fini(); } 29724: 29724: static constexpr result_type 29724: min() 29724: { return std::numeric_limits::min(); } 29724: 29724: static constexpr result_type 29724: max() 29724: { return std::numeric_limits::max(); } 29724: 29724: double 29724: entropy() const noexcept 29724: { return this->_M_getentropy(); } 29724: 29724: result_type 29724: operator()() 29724: { return this->_M_getval(); } 29724: 29724: 29724: random_device(const random_device&) = delete; 29724: void operator=(const random_device&) = delete; 29724: 29724: private: 29724: 29724: void _M_init(const std::string& __token); 29724: void _M_init_pretr1(const std::string& __token); 29724: void _M_fini(); 29724: 29724: result_type _M_getval(); 29724: result_type _M_getval_pretr1(); 29724: double _M_getentropy() const noexcept; 29724: 29724: void _M_init(const char*, size_t); 29724: 29724: __extension__ union 29724: { 29724: struct 29724: { 29724: void* _M_file; 29724: result_type (*_M_func)(void*); 29724: int _M_fd; 29724: }; 29724: mt19937 _M_mt; 29724: }; 29724: }; 29724: # 1833 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::uniform_int_distribution<_IntType>& __d1, 29724: const std::uniform_int_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 1850 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>&, 29724: const std::uniform_int_distribution<_IntType>&); 29724: # 1864 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>&, 29724: std::uniform_int_distribution<_IntType>&); 29724: # 1880 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class uniform_real_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef uniform_real_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(0) { } 29724: 29724: explicit 29724: param_type(_RealType __a, _RealType __b = _RealType(1)) 29724: : _M_a(__a), _M_b(__b) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: result_type 29724: a() const 29724: { return _M_a; } 29724: 29724: result_type 29724: b() const 29724: { return _M_b; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_a; 29724: _RealType _M_b; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: uniform_real_distribution() : uniform_real_distribution(0.0) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: uniform_real_distribution(_RealType __a, _RealType __b = _RealType(1)) 29724: : _M_param(__a, __b) 29724: { } 29724: 29724: explicit 29724: uniform_real_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset() { } 29724: 29724: result_type 29724: a() const 29724: { return _M_param.a(); } 29724: 29724: result_type 29724: b() const 29724: { return _M_param.b(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return this->a(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return this->b(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: return (__aurng() * (__p.b() - __p.a())) + __p.a(); 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const uniform_real_distribution& __d1, 29724: const uniform_real_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::uniform_real_distribution<_IntType>& __d1, 29724: const std::uniform_real_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 2078 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>&, 29724: const std::uniform_real_distribution<_RealType>&); 29724: # 2092 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>&, 29724: std::uniform_real_distribution<_RealType>&); 29724: # 2117 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class normal_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef normal_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(0.0) { } 29724: 29724: explicit 29724: param_type(_RealType __mean, _RealType __stddev = _RealType(1)) 29724: : _M_mean(__mean), _M_stddev(__stddev) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_stddev > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: _RealType 29724: mean() const 29724: { return _M_mean; } 29724: 29724: _RealType 29724: stddev() const 29724: { return _M_stddev; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return (__p1._M_mean == __p2._M_mean 29724: && __p1._M_stddev == __p2._M_stddev); } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_mean; 29724: _RealType _M_stddev; 29724: }; 29724: 29724: public: 29724: normal_distribution() : normal_distribution(0.0) { } 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: normal_distribution(result_type __mean, 29724: result_type __stddev = result_type(1)) 29724: : _M_param(__mean, __stddev) 29724: { } 29724: 29724: explicit 29724: normal_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_saved_available = false; } 29724: 29724: 29724: 29724: 29724: _RealType 29724: mean() const 29724: { return _M_param.mean(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: stddev() const 29724: { return _M_param.stddev(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return std::numeric_limits::lowest(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator==(const std::normal_distribution<_RealType1>& __d1, 29724: const std::normal_distribution<_RealType1>& __d2); 29724: # 2288 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::normal_distribution<_RealType1>& __x); 29724: # 2303 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::normal_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: result_type _M_saved = 0; 29724: bool _M_saved_available = false; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::normal_distribution<_RealType>& __d1, 29724: const std::normal_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 2344 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class lognormal_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef lognormal_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(0.0) { } 29724: 29724: explicit 29724: param_type(_RealType __m, _RealType __s = _RealType(1)) 29724: : _M_m(__m), _M_s(__s) 29724: { } 29724: 29724: _RealType 29724: m() const 29724: { return _M_m; } 29724: 29724: _RealType 29724: s() const 29724: { return _M_s; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_m == __p2._M_m && __p1._M_s == __p2._M_s; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_m; 29724: _RealType _M_s; 29724: }; 29724: 29724: lognormal_distribution() : lognormal_distribution(0.0) { } 29724: 29724: explicit 29724: lognormal_distribution(_RealType __m, _RealType __s = _RealType(1)) 29724: : _M_param(__m, __s), _M_nd() 29724: { } 29724: 29724: explicit 29724: lognormal_distribution(const param_type& __p) 29724: : _M_param(__p), _M_nd() 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_nd.reset(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: m() const 29724: { return _M_param.m(); } 29724: 29724: _RealType 29724: s() const 29724: { return _M_param.s(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { return std::exp(__p.s() * _M_nd(__urng) + __p.m()); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const lognormal_distribution& __d1, 29724: const lognormal_distribution& __d2) 29724: { return (__d1._M_param == __d2._M_param 29724: && __d1._M_nd == __d2._M_nd); } 29724: # 2505 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::lognormal_distribution<_RealType1>& __x); 29724: # 2520 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::lognormal_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::normal_distribution _M_nd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::lognormal_distribution<_RealType>& __d1, 29724: const std::lognormal_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 2569 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class gamma_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef gamma_distribution<_RealType> distribution_type; 29724: friend class gamma_distribution<_RealType>; 29724: 29724: param_type() : param_type(1.0) { } 29724: 29724: explicit 29724: param_type(_RealType __alpha_val, _RealType __beta_val = _RealType(1)) 29724: : _M_alpha(__alpha_val), _M_beta(__beta_val) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_alpha > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29724: _M_initialize(); 29724: } 29724: 29724: _RealType 29724: alpha() const 29724: { return _M_alpha; } 29724: 29724: _RealType 29724: beta() const 29724: { return _M_beta; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return (__p1._M_alpha == __p2._M_alpha 29724: && __p1._M_beta == __p2._M_beta); } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize(); 29724: 29724: _RealType _M_alpha; 29724: _RealType _M_beta; 29724: 29724: _RealType _M_malpha, _M_a2; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: gamma_distribution() : gamma_distribution(1.0) { } 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: gamma_distribution(_RealType __alpha_val, 29724: _RealType __beta_val = _RealType(1)) 29724: : _M_param(__alpha_val, __beta_val), _M_nd() 29724: { } 29724: 29724: explicit 29724: gamma_distribution(const param_type& __p) 29724: : _M_param(__p), _M_nd() 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_nd.reset(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: alpha() const 29724: { return _M_param.alpha(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: beta() const 29724: { return _M_param.beta(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const gamma_distribution& __d1, 29724: const gamma_distribution& __d2) 29724: { return (__d1._M_param == __d2._M_param 29724: && __d1._M_nd == __d2._M_nd); } 29724: # 2751 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::gamma_distribution<_RealType1>& __x); 29724: # 2765 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::gamma_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::normal_distribution _M_nd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::gamma_distribution<_RealType>& __d1, 29724: const std::gamma_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 2811 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class chi_squared_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef chi_squared_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(1) { } 29724: 29724: explicit 29724: param_type(_RealType __n) 29724: : _M_n(__n) 29724: { } 29724: 29724: _RealType 29724: n() const 29724: { return _M_n; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_n == __p2._M_n; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_n; 29724: }; 29724: 29724: chi_squared_distribution() : chi_squared_distribution(1) { } 29724: 29724: explicit 29724: chi_squared_distribution(_RealType __n) 29724: : _M_param(__n), _M_gd(__n / 2) 29724: { } 29724: 29724: explicit 29724: chi_squared_distribution(const param_type& __p) 29724: : _M_param(__p), _M_gd(__p.n() / 2) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_gd.reset(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: n() const 29724: { return _M_param.n(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { 29724: _M_param = __param; 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: _M_gd.param(param_type{__param.n() / 2}); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return 2 * _M_gd(__urng); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: return 2 * _M_gd(__urng, param_type(__p.n() / 2)); 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { typename std::gamma_distribution::param_type 29724: __p2(__p.n() / 2); 29724: this->__generate_impl(__f, __t, __urng, __p2); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { typename std::gamma_distribution::param_type 29724: __p2(__p.n() / 2); 29724: this->__generate_impl(__f, __t, __urng, __p2); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const chi_squared_distribution& __d1, 29724: const chi_squared_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 29724: # 2981 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::chi_squared_distribution<_RealType1>& __x); 29724: # 2996 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::chi_squared_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng); 29724: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const typename 29724: std::gamma_distribution::param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::gamma_distribution _M_gd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::chi_squared_distribution<_RealType>& __d1, 29724: const std::chi_squared_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 3041 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class cauchy_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef cauchy_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(0) { } 29724: 29724: explicit 29724: param_type(_RealType __a, _RealType __b = _RealType(1)) 29724: : _M_a(__a), _M_b(__b) 29724: { } 29724: 29724: _RealType 29724: a() const 29724: { return _M_a; } 29724: 29724: _RealType 29724: b() const 29724: { return _M_b; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_a; 29724: _RealType _M_b; 29724: }; 29724: 29724: cauchy_distribution() : cauchy_distribution(0.0) { } 29724: 29724: explicit 29724: cauchy_distribution(_RealType __a, _RealType __b = 1.0) 29724: : _M_param(__a, __b) 29724: { } 29724: 29724: explicit 29724: cauchy_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: _RealType 29724: a() const 29724: { return _M_param.a(); } 29724: 29724: _RealType 29724: b() const 29724: { return _M_param.b(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return std::numeric_limits::lowest(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const cauchy_distribution& __d1, 29724: const cauchy_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::cauchy_distribution<_RealType>& __d1, 29724: const std::cauchy_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 3222 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::cauchy_distribution<_RealType>& __x); 29724: # 3237 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::cauchy_distribution<_RealType>& __x); 29724: # 3256 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class fisher_f_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef fisher_f_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(1) { } 29724: 29724: explicit 29724: param_type(_RealType __m, _RealType __n = _RealType(1)) 29724: : _M_m(__m), _M_n(__n) 29724: { } 29724: 29724: _RealType 29724: m() const 29724: { return _M_m; } 29724: 29724: _RealType 29724: n() const 29724: { return _M_n; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_m == __p2._M_m && __p1._M_n == __p2._M_n; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_m; 29724: _RealType _M_n; 29724: }; 29724: 29724: fisher_f_distribution() : fisher_f_distribution(1.0) { } 29724: 29724: explicit 29724: fisher_f_distribution(_RealType __m, 29724: _RealType __n = _RealType(1)) 29724: : _M_param(__m, __n), _M_gd_x(__m / 2), _M_gd_y(__n / 2) 29724: { } 29724: 29724: explicit 29724: fisher_f_distribution(const param_type& __p) 29724: : _M_param(__p), _M_gd_x(__p.m() / 2), _M_gd_y(__p.n() / 2) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { 29724: _M_gd_x.reset(); 29724: _M_gd_y.reset(); 29724: } 29724: 29724: 29724: 29724: 29724: _RealType 29724: m() const 29724: { return _M_param.m(); } 29724: 29724: _RealType 29724: n() const 29724: { return _M_param.n(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return (_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m()); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: return ((_M_gd_x(__urng, param_type(__p.m() / 2)) * n()) 29724: / (_M_gd_y(__urng, param_type(__p.n() / 2)) * m())); 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const fisher_f_distribution& __d1, 29724: const fisher_f_distribution& __d2) 29724: { return (__d1._M_param == __d2._M_param 29724: && __d1._M_gd_x == __d2._M_gd_x 29724: && __d1._M_gd_y == __d2._M_gd_y); } 29724: # 3433 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::fisher_f_distribution<_RealType1>& __x); 29724: # 3448 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::fisher_f_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng); 29724: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::gamma_distribution _M_gd_x, _M_gd_y; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::fisher_f_distribution<_RealType>& __d1, 29724: const std::fisher_f_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 3495 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class student_t_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef student_t_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(1) { } 29724: 29724: explicit 29724: param_type(_RealType __n) 29724: : _M_n(__n) 29724: { } 29724: 29724: _RealType 29724: n() const 29724: { return _M_n; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_n == __p2._M_n; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_n; 29724: }; 29724: 29724: student_t_distribution() : student_t_distribution(1.0) { } 29724: 29724: explicit 29724: student_t_distribution(_RealType __n) 29724: : _M_param(__n), _M_nd(), _M_gd(__n / 2, 2) 29724: { } 29724: 29724: explicit 29724: student_t_distribution(const param_type& __p) 29724: : _M_param(__p), _M_nd(), _M_gd(__p.n() / 2, 2) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { 29724: _M_nd.reset(); 29724: _M_gd.reset(); 29724: } 29724: 29724: 29724: 29724: 29724: _RealType 29724: n() const 29724: { return _M_param.n(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return std::numeric_limits::lowest(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: 29724: const result_type __g = _M_gd(__urng, param_type(__p.n() / 2, 2)); 29724: return _M_nd(__urng) * std::sqrt(__p.n() / __g); 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const student_t_distribution& __d1, 29724: const student_t_distribution& __d2) 29724: { return (__d1._M_param == __d2._M_param 29724: && __d1._M_nd == __d2._M_nd && __d1._M_gd == __d2._M_gd); } 29724: # 3662 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::student_t_distribution<_RealType1>& __x); 29724: # 3677 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::student_t_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng); 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::normal_distribution _M_nd; 29724: std::gamma_distribution _M_gd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::student_t_distribution<_RealType>& __d1, 29724: const std::student_t_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 3729 "/usr/include/c++/14/bits/random.h" 3 29724: class bernoulli_distribution 29724: { 29724: public: 29724: 29724: typedef bool result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef bernoulli_distribution distribution_type; 29724: 29724: param_type() : param_type(0.5) { } 29724: 29724: explicit 29724: param_type(double __p) 29724: : _M_p(__p) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool((_M_p >= 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: double 29724: p() const 29724: { return _M_p; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_p == __p2._M_p; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: double _M_p; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: bernoulli_distribution() : bernoulli_distribution(0.5) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: bernoulli_distribution(double __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: explicit 29724: bernoulli_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset() { } 29724: 29724: 29724: 29724: 29724: double 29724: p() const 29724: { return _M_param.p(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return std::numeric_limits::min(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: if ((__aurng() - __aurng.min()) 29724: < __p.p() * (__aurng.max() - __aurng.min())) 29724: return true; 29724: return false; 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const bernoulli_distribution& __d1, 29724: const bernoulli_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline bool 29724: operator!=(const std::bernoulli_distribution& __d1, 29724: const std::bernoulli_distribution& __d2) 29724: { return !(__d1 == __d2); } 29724: # 3916 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::bernoulli_distribution& __x); 29724: # 3930 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::bernoulli_distribution& __x) 29724: { 29724: double __p; 29724: if (__is >> __p) 29724: __x.param(bernoulli_distribution::param_type(__p)); 29724: return __is; 29724: } 29724: # 3952 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class binomial_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "result_type must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef binomial_distribution<_IntType> distribution_type; 29724: friend class binomial_distribution<_IntType>; 29724: 29724: param_type() : param_type(1) { } 29724: 29724: explicit 29724: param_type(_IntType __t, double __p = 0.5) 29724: : _M_t(__t), _M_p(__p) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool((_M_t >= _IntType(0)) && (_M_p >= 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false) 29724: 29724: ; 29724: _M_initialize(); 29724: } 29724: 29724: _IntType 29724: t() const 29724: { return _M_t; } 29724: 29724: double 29724: p() const 29724: { return _M_p; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_t == __p2._M_t && __p1._M_p == __p2._M_p; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize(); 29724: 29724: _IntType _M_t; 29724: double _M_p; 29724: 29724: double _M_q; 29724: 29724: double _M_d1, _M_d2, _M_s1, _M_s2, _M_c, 29724: _M_a1, _M_a123, _M_s, _M_lf, _M_lp1p; 29724: 29724: bool _M_easy; 29724: }; 29724: 29724: 29724: 29724: binomial_distribution() : binomial_distribution(1) { } 29724: 29724: explicit 29724: binomial_distribution(_IntType __t, double __p = 0.5) 29724: : _M_param(__t, __p), _M_nd() 29724: { } 29724: 29724: explicit 29724: binomial_distribution(const param_type& __p) 29724: : _M_param(__p), _M_nd() 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_nd.reset(); } 29724: 29724: 29724: 29724: 29724: _IntType 29724: t() const 29724: { return _M_param.t(); } 29724: 29724: 29724: 29724: 29724: double 29724: p() const 29724: { return _M_param.p(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return 0; } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return _M_param.t(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const binomial_distribution& __d1, 29724: const binomial_distribution& __d2) 29724: 29724: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 29724: # 4136 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::binomial_distribution<_IntType1>& __x); 29724: # 4152 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::binomial_distribution<_IntType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: result_type 29724: _M_waiting(_UniformRandomNumberGenerator& __urng, 29724: _IntType __t, double __q); 29724: 29724: param_type _M_param; 29724: 29724: 29724: std::normal_distribution _M_nd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::binomial_distribution<_IntType>& __d1, 29724: const std::binomial_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 4198 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class geometric_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "result_type must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef geometric_distribution<_IntType> distribution_type; 29724: friend class geometric_distribution<_IntType>; 29724: 29724: param_type() : param_type(0.5) { } 29724: 29724: explicit 29724: param_type(double __p) 29724: : _M_p(__p) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool((_M_p > 0.0) && (_M_p < 1.0))) std::__glibcxx_assert_fail(); } while (false); 29724: _M_initialize(); 29724: } 29724: 29724: double 29724: p() const 29724: { return _M_p; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_p == __p2._M_p; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize() 29724: { _M_log_1_p = std::log(1.0 - _M_p); } 29724: 29724: double _M_p; 29724: 29724: double _M_log_1_p; 29724: }; 29724: 29724: 29724: 29724: geometric_distribution() : geometric_distribution(0.5) { } 29724: 29724: explicit 29724: geometric_distribution(double __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: explicit 29724: geometric_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset() { } 29724: 29724: 29724: 29724: 29724: double 29724: p() const 29724: { return _M_param.p(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return 0; } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const geometric_distribution& __d1, 29724: const geometric_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::geometric_distribution<_IntType>& __d1, 29724: const std::geometric_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 4383 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::geometric_distribution<_IntType>& __x); 29724: # 4398 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::geometric_distribution<_IntType>& __x); 29724: # 4415 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class negative_binomial_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "result_type must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef negative_binomial_distribution<_IntType> distribution_type; 29724: 29724: param_type() : param_type(1) { } 29724: 29724: explicit 29724: param_type(_IntType __k, double __p = 0.5) 29724: : _M_k(__k), _M_p(__p) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool((_M_k > 0) && (_M_p > 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: _IntType 29724: k() const 29724: { return _M_k; } 29724: 29724: double 29724: p() const 29724: { return _M_p; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_k == __p2._M_k && __p1._M_p == __p2._M_p; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _IntType _M_k; 29724: double _M_p; 29724: }; 29724: 29724: negative_binomial_distribution() : negative_binomial_distribution(1) { } 29724: 29724: explicit 29724: negative_binomial_distribution(_IntType __k, double __p = 0.5) 29724: : _M_param(__k, __p), _M_gd(__k, (1.0 - __p) / __p) 29724: { } 29724: 29724: explicit 29724: negative_binomial_distribution(const param_type& __p) 29724: : _M_param(__p), _M_gd(__p.k(), (1.0 - __p.p()) / __p.p()) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_gd.reset(); } 29724: 29724: 29724: 29724: 29724: _IntType 29724: k() const 29724: { return _M_param.k(); } 29724: 29724: 29724: 29724: 29724: double 29724: p() const 29724: { return _M_param.p(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng); 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const negative_binomial_distribution& __d1, 29724: const negative_binomial_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 29724: # 4585 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::negative_binomial_distribution<_IntType1>& __x); 29724: # 4600 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::negative_binomial_distribution<_IntType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng); 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::gamma_distribution _M_gd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::negative_binomial_distribution<_IntType>& __d1, 29724: const std::negative_binomial_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 4652 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class poisson_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "result_type must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef poisson_distribution<_IntType> distribution_type; 29724: friend class poisson_distribution<_IntType>; 29724: 29724: param_type() : param_type(1.0) { } 29724: 29724: explicit 29724: param_type(double __mean) 29724: : _M_mean(__mean) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_mean > 0.0)) std::__glibcxx_assert_fail(); } while (false); 29724: _M_initialize(); 29724: } 29724: 29724: double 29724: mean() const 29724: { return _M_mean; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_mean == __p2._M_mean; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: 29724: void 29724: _M_initialize(); 29724: 29724: double _M_mean; 29724: 29724: double _M_lm_thr; 29724: 29724: double _M_lfm, _M_sm, _M_d, _M_scx, _M_1cx, _M_c2b, _M_cb; 29724: 29724: }; 29724: 29724: 29724: 29724: poisson_distribution() : poisson_distribution(1.0) { } 29724: 29724: explicit 29724: poisson_distribution(double __mean) 29724: : _M_param(__mean), _M_nd() 29724: { } 29724: 29724: explicit 29724: poisson_distribution(const param_type& __p) 29724: : _M_param(__p), _M_nd() 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_nd.reset(); } 29724: 29724: 29724: 29724: 29724: double 29724: mean() const 29724: { return _M_param.mean(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return 0; } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const poisson_distribution& __d1, 29724: const poisson_distribution& __d2) 29724: 29724: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 29724: # 4821 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::poisson_distribution<_IntType1>& __x); 29724: # 4836 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::poisson_distribution<_IntType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: 29724: std::normal_distribution _M_nd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::poisson_distribution<_IntType>& __d1, 29724: const std::poisson_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 4884 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class exponential_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef exponential_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(1.0) { } 29724: 29724: explicit 29724: param_type(_RealType __lambda) 29724: : _M_lambda(__lambda) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_lambda > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: _RealType 29724: lambda() const 29724: { return _M_lambda; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_lambda == __p2._M_lambda; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_lambda; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: exponential_distribution() : exponential_distribution(1.0) { } 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: exponential_distribution(_RealType __lambda) 29724: : _M_param(__lambda) 29724: { } 29724: 29724: explicit 29724: exponential_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset() { } 29724: 29724: 29724: 29724: 29724: _RealType 29724: lambda() const 29724: { return _M_param.lambda(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: return -std::log(result_type(1) - __aurng()) / __p.lambda(); 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const exponential_distribution& __d1, 29724: const exponential_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::exponential_distribution<_RealType>& __d1, 29724: const std::exponential_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 5073 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::exponential_distribution<_RealType>& __x); 29724: # 5088 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::exponential_distribution<_RealType>& __x); 29724: # 5106 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class weibull_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef weibull_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(1.0) { } 29724: 29724: explicit 29724: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 29724: : _M_a(__a), _M_b(__b) 29724: { } 29724: 29724: _RealType 29724: a() const 29724: { return _M_a; } 29724: 29724: _RealType 29724: b() const 29724: { return _M_b; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_a; 29724: _RealType _M_b; 29724: }; 29724: 29724: weibull_distribution() : weibull_distribution(1.0) { } 29724: 29724: explicit 29724: weibull_distribution(_RealType __a, _RealType __b = _RealType(1)) 29724: : _M_param(__a, __b) 29724: { } 29724: 29724: explicit 29724: weibull_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: _RealType 29724: a() const 29724: { return _M_param.a(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: b() const 29724: { return _M_param.b(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const weibull_distribution& __d1, 29724: const weibull_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::weibull_distribution<_RealType>& __d1, 29724: const std::weibull_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 5290 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::weibull_distribution<_RealType>& __x); 29724: # 5305 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::weibull_distribution<_RealType>& __x); 29724: # 5323 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class extreme_value_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef extreme_value_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(0.0) { } 29724: 29724: explicit 29724: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 29724: : _M_a(__a), _M_b(__b) 29724: { } 29724: 29724: _RealType 29724: a() const 29724: { return _M_a; } 29724: 29724: _RealType 29724: b() const 29724: { return _M_b; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_a; 29724: _RealType _M_b; 29724: }; 29724: 29724: extreme_value_distribution() : extreme_value_distribution(0.0) { } 29724: 29724: explicit 29724: extreme_value_distribution(_RealType __a, _RealType __b = _RealType(1)) 29724: : _M_param(__a, __b) 29724: { } 29724: 29724: explicit 29724: extreme_value_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: _RealType 29724: a() const 29724: { return _M_param.a(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: b() const 29724: { return _M_param.b(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return std::numeric_limits::lowest(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const extreme_value_distribution& __d1, 29724: const extreme_value_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::extreme_value_distribution<_RealType>& __d1, 29724: const std::extreme_value_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 5507 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::extreme_value_distribution<_RealType>& __x); 29724: # 5522 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::extreme_value_distribution<_RealType>& __x); 29724: # 5545 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class discrete_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "result_type must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef discrete_distribution<_IntType> distribution_type; 29724: friend class discrete_distribution<_IntType>; 29724: 29724: param_type() 29724: : _M_prob(), _M_cp() 29724: { } 29724: 29724: template 29724: param_type(_InputIterator __wbegin, 29724: _InputIterator __wend) 29724: : _M_prob(__wbegin, __wend), _M_cp() 29724: { _M_initialize(); } 29724: 29724: param_type(initializer_list __wil) 29724: : _M_prob(__wil.begin(), __wil.end()), _M_cp() 29724: { _M_initialize(); } 29724: 29724: template 29724: param_type(size_t __nw, double __xmin, double __xmax, 29724: _Func __fw); 29724: 29724: 29724: param_type(const param_type&) = default; 29724: param_type& operator=(const param_type&) = default; 29724: 29724: std::vector 29724: probabilities() const 29724: { return _M_prob.empty() ? std::vector(1, 1.0) : _M_prob; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_prob == __p2._M_prob; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize(); 29724: 29724: std::vector _M_prob; 29724: std::vector _M_cp; 29724: }; 29724: 29724: discrete_distribution() 29724: : _M_param() 29724: { } 29724: 29724: template 29724: discrete_distribution(_InputIterator __wbegin, 29724: _InputIterator __wend) 29724: : _M_param(__wbegin, __wend) 29724: { } 29724: 29724: discrete_distribution(initializer_list __wl) 29724: : _M_param(__wl) 29724: { } 29724: 29724: template 29724: discrete_distribution(size_t __nw, double __xmin, double __xmax, 29724: _Func __fw) 29724: : _M_param(__nw, __xmin, __xmax, __fw) 29724: { } 29724: 29724: explicit 29724: discrete_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: std::vector 29724: probabilities() const 29724: { 29724: return _M_param._M_prob.empty() 29724: ? std::vector(1, 1.0) : _M_param._M_prob; 29724: } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { 29724: return _M_param._M_prob.empty() 29724: ? result_type(0) : result_type(_M_param._M_prob.size() - 1); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const discrete_distribution& __d1, 29724: const discrete_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: # 5733 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::discrete_distribution<_IntType1>& __x); 29724: # 5749 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::discrete_distribution<_IntType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::discrete_distribution<_IntType>& __d1, 29724: const std::discrete_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 5793 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class piecewise_constant_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef piecewise_constant_distribution<_RealType> distribution_type; 29724: friend class piecewise_constant_distribution<_RealType>; 29724: 29724: param_type() 29724: : _M_int(), _M_den(), _M_cp() 29724: { } 29724: 29724: template 29724: param_type(_InputIteratorB __bfirst, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin); 29724: 29724: template 29724: param_type(initializer_list<_RealType> __bi, _Func __fw); 29724: 29724: template 29724: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 29724: _Func __fw); 29724: 29724: 29724: param_type(const param_type&) = default; 29724: param_type& operator=(const param_type&) = default; 29724: 29724: std::vector<_RealType> 29724: intervals() const 29724: { 29724: if (_M_int.empty()) 29724: { 29724: std::vector<_RealType> __tmp(2); 29724: __tmp[1] = _RealType(1); 29724: return __tmp; 29724: } 29724: else 29724: return _M_int; 29724: } 29724: 29724: std::vector 29724: densities() const 29724: { return _M_den.empty() ? std::vector(1, 1.0) : _M_den; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize(); 29724: 29724: std::vector<_RealType> _M_int; 29724: std::vector _M_den; 29724: std::vector _M_cp; 29724: }; 29724: 29724: piecewise_constant_distribution() 29724: : _M_param() 29724: { } 29724: 29724: template 29724: piecewise_constant_distribution(_InputIteratorB __bfirst, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin) 29724: : _M_param(__bfirst, __bend, __wbegin) 29724: { } 29724: 29724: template 29724: piecewise_constant_distribution(initializer_list<_RealType> __bl, 29724: _Func __fw) 29724: : _M_param(__bl, __fw) 29724: { } 29724: 29724: template 29724: piecewise_constant_distribution(size_t __nw, 29724: _RealType __xmin, _RealType __xmax, 29724: _Func __fw) 29724: : _M_param(__nw, __xmin, __xmax, __fw) 29724: { } 29724: 29724: explicit 29724: piecewise_constant_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: std::vector<_RealType> 29724: intervals() const 29724: { 29724: if (_M_param._M_int.empty()) 29724: { 29724: std::vector<_RealType> __tmp(2); 29724: __tmp[1] = _RealType(1); 29724: return __tmp; 29724: } 29724: else 29724: return _M_param._M_int; 29724: } 29724: 29724: 29724: 29724: 29724: std::vector 29724: densities() const 29724: { 29724: return _M_param._M_den.empty() 29724: ? std::vector(1, 1.0) : _M_param._M_den; 29724: } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { 29724: return _M_param._M_int.empty() 29724: ? result_type(0) : _M_param._M_int.front(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { 29724: return _M_param._M_int.empty() 29724: ? result_type(1) : _M_param._M_int.back(); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const piecewise_constant_distribution& __d1, 29724: const piecewise_constant_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: # 6017 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::piecewise_constant_distribution<_RealType1>& __x); 29724: # 6033 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::piecewise_constant_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::piecewise_constant_distribution<_RealType>& __d1, 29724: const std::piecewise_constant_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 6073 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class piecewise_linear_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef piecewise_linear_distribution<_RealType> distribution_type; 29724: friend class piecewise_linear_distribution<_RealType>; 29724: 29724: param_type() 29724: : _M_int(), _M_den(), _M_cp(), _M_m() 29724: { } 29724: 29724: template 29724: param_type(_InputIteratorB __bfirst, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin); 29724: 29724: template 29724: param_type(initializer_list<_RealType> __bl, _Func __fw); 29724: 29724: template 29724: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 29724: _Func __fw); 29724: 29724: 29724: param_type(const param_type&) = default; 29724: param_type& operator=(const param_type&) = default; 29724: 29724: std::vector<_RealType> 29724: intervals() const 29724: { 29724: if (_M_int.empty()) 29724: { 29724: std::vector<_RealType> __tmp(2); 29724: __tmp[1] = _RealType(1); 29724: return __tmp; 29724: } 29724: else 29724: return _M_int; 29724: } 29724: 29724: std::vector 29724: densities() const 29724: { return _M_den.empty() ? std::vector(2, 1.0) : _M_den; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize(); 29724: 29724: std::vector<_RealType> _M_int; 29724: std::vector _M_den; 29724: std::vector _M_cp; 29724: std::vector _M_m; 29724: }; 29724: 29724: piecewise_linear_distribution() 29724: : _M_param() 29724: { } 29724: 29724: template 29724: piecewise_linear_distribution(_InputIteratorB __bfirst, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin) 29724: : _M_param(__bfirst, __bend, __wbegin) 29724: { } 29724: 29724: template 29724: piecewise_linear_distribution(initializer_list<_RealType> __bl, 29724: _Func __fw) 29724: : _M_param(__bl, __fw) 29724: { } 29724: 29724: template 29724: piecewise_linear_distribution(size_t __nw, 29724: _RealType __xmin, _RealType __xmax, 29724: _Func __fw) 29724: : _M_param(__nw, __xmin, __xmax, __fw) 29724: { } 29724: 29724: explicit 29724: piecewise_linear_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: std::vector<_RealType> 29724: intervals() const 29724: { 29724: if (_M_param._M_int.empty()) 29724: { 29724: std::vector<_RealType> __tmp(2); 29724: __tmp[1] = _RealType(1); 29724: return __tmp; 29724: } 29724: else 29724: return _M_param._M_int; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: std::vector 29724: densities() const 29724: { 29724: return _M_param._M_den.empty() 29724: ? std::vector(2, 1.0) : _M_param._M_den; 29724: } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { 29724: return _M_param._M_int.empty() 29724: ? result_type(0) : _M_param._M_int.front(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { 29724: return _M_param._M_int.empty() 29724: ? result_type(1) : _M_param._M_int.back(); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const piecewise_linear_distribution& __d1, 29724: const piecewise_linear_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: # 6299 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::piecewise_linear_distribution<_RealType1>& __x); 29724: # 6315 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::piecewise_linear_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::piecewise_linear_distribution<_RealType>& __d1, 29724: const std::piecewise_linear_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 6360 "/usr/include/c++/14/bits/random.h" 3 29724: class seed_seq 29724: { 29724: public: 29724: 29724: typedef uint_least32_t result_type; 29724: 29724: 29724: seed_seq() noexcept 29724: : _M_v() 29724: { } 29724: 29724: template>> 29724: seed_seq(std::initializer_list<_IntType> __il); 29724: 29724: template 29724: seed_seq(_InputIterator __begin, _InputIterator __end); 29724: 29724: 29724: template 29724: void 29724: generate(_RandomAccessIterator __begin, _RandomAccessIterator __end); 29724: 29724: 29724: size_t size() const noexcept 29724: { return _M_v.size(); } 29724: 29724: template 29724: void 29724: param(_OutputIterator __dest) const 29724: { std::copy(_M_v.begin(), _M_v.end(), __dest); } 29724: 29724: 29724: seed_seq(const seed_seq&) = delete; 29724: seed_seq& operator=(const seed_seq&) = delete; 29724: 29724: private: 29724: std::vector _M_v; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 49 "/usr/include/c++/14/random" 2 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 1 3 29724: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 29724: 29724: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 29724: # 50 "/usr/include/c++/14/random" 2 3 29724: # 1 "/usr/include/c++/14/bits/random.tcc" 1 3 29724: # 33 "/usr/include/c++/14/bits/random.tcc" 3 29724: # 1 "/usr/include/c++/14/numeric" 1 3 29724: # 58 "/usr/include/c++/14/numeric" 3 29724: 29724: # 59 "/usr/include/c++/14/numeric" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_numeric.h" 1 3 29724: # 64 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 85 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: void 29724: iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: { 29724: *__first = __value; 29724: ++__value; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: # 131 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: inline _Tp 29724: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init) 29724: { 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: __init = __init + *__first; 29724: return __init; 29724: } 29724: # 158 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: inline _Tp 29724: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, 29724: _BinaryOperation __binary_op) 29724: { 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: __init = __binary_op(__init, *__first); 29724: return __init; 29724: } 29724: # 187 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: inline _Tp 29724: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _Tp __init) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2) 29724: __init = __init + (*__first1 * *__first2); 29724: return __init; 29724: } 29724: # 219 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: inline _Tp 29724: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _Tp __init, 29724: _BinaryOperation1 __binary_op1, 29724: _BinaryOperation2 __binary_op2) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2) 29724: __init = __binary_op1(__init, 29724: __binary_op2(*__first1, *__first2)); 29724: return __init; 29724: } 29724: # 253 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: _OutputIterator 29724: partial_sum(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: _ValueType __value = *__first; 29724: *__result = __value; 29724: while (++__first != __last) 29724: { 29724: __value = __value + *__first; 29724: *++__result = __value; 29724: } 29724: return ++__result; 29724: } 29724: # 294 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: _OutputIterator 29724: partial_sum(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _BinaryOperation __binary_op) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: _ValueType __value = *__first; 29724: *__result = __value; 29724: while (++__first != __last) 29724: { 29724: __value = __binary_op(__value, *__first); 29724: *++__result = __value; 29724: } 29724: return ++__result; 29724: } 29724: # 334 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: _OutputIterator 29724: adjacent_difference(_InputIterator __first, 29724: _InputIterator __last, _OutputIterator __result) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: _ValueType __value = *__first; 29724: *__result = __value; 29724: while (++__first != __last) 29724: { 29724: _ValueType __tmp = *__first; 29724: *++__result = __tmp - __value; 29724: __value = std::move(__tmp); 29724: } 29724: return ++__result; 29724: } 29724: # 376 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: _OutputIterator 29724: adjacent_difference(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _BinaryOperation __binary_op) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: _ValueType __value = *__first; 29724: *__result = __value; 29724: while (++__first != __last) 29724: { 29724: _ValueType __tmp = *__first; 29724: *++__result = __binary_op(__tmp, __value); 29724: __value = std::move(__tmp); 29724: } 29724: return ++__result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 63 "/usr/include/c++/14/numeric" 2 3 29724: # 90 "/usr/include/c++/14/numeric" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 91 "/usr/include/c++/14/numeric" 2 3 29724: # 104 "/usr/include/c++/14/numeric" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: template 29724: constexpr _Res 29724: __abs_r(_Tp __val) 29724: { 29724: static_assert(sizeof(_Res) >= sizeof(_Tp), 29724: "result type must be at least as wide as the input type"); 29724: 29724: if (__val >= 0) 29724: return __val; 29724: 29724: 29724: 29724: 29724: return -static_cast<_Res>(__val); 29724: } 29724: 29724: template void __abs_r(bool) = delete; 29724: 29724: 29724: template 29724: constexpr _Tp 29724: __gcd(_Tp __m, _Tp __n) 29724: { 29724: static_assert(is_unsigned<_Tp>::value, "type must be unsigned"); 29724: 29724: if (__m == 0) 29724: return __n; 29724: if (__n == 0) 29724: return __m; 29724: 29724: const int __i = std::__countr_zero(__m); 29724: __m >>= __i; 29724: const int __j = std::__countr_zero(__n); 29724: __n >>= __j; 29724: const int __k = __i < __j ? __i : __j; 29724: 29724: while (true) 29724: { 29724: if (__m > __n) 29724: { 29724: _Tp __tmp = __m; 29724: __m = __n; 29724: __n = __tmp; 29724: } 29724: 29724: __n -= __m; 29724: 29724: if (__n == 0) 29724: return __m << __k; 29724: 29724: __n >>= std::__countr_zero(__n); 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: constexpr common_type_t<_Mn, _Nn> 29724: gcd(_Mn __m, _Nn __n) noexcept 29724: { 29724: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 29724: "std::gcd arguments must be integers"); 29724: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 29724: "std::gcd arguments must not be bool"); 29724: using _Ct = common_type_t<_Mn, _Nn>; 29724: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 29724: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 29724: return __detail::__gcd>(__m2, __n2); 29724: } 29724: 29724: 29724: template 29724: constexpr common_type_t<_Mn, _Nn> 29724: lcm(_Mn __m, _Nn __n) noexcept 29724: { 29724: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 29724: "std::lcm arguments must be integers"); 29724: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 29724: "std::lcm arguments must not be bool"); 29724: using _Ct = common_type_t<_Mn, _Nn>; 29724: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 29724: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 29724: if (__m2 == 0 || __n2 == 0) 29724: return 0; 29724: _Ct __r = __m2 / __detail::__gcd>(__m2, __n2); 29724: 29724: if constexpr (is_signed_v<_Ct>) 29724: if (__is_constant_evaluated()) 29724: return __r * __n2; 29724: 29724: bool __overflow = __builtin_mul_overflow(__r, __n2, &__r); 29724: do { if (std::__is_constant_evaluated() && !bool(!__overflow)) std::__glibcxx_assert_fail(); } while (false); 29724: return __r; 29724: } 29724: # 284 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _Tp 29724: reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 29724: _BinaryOperation __binary_op) 29724: { 29724: using __ref = typename iterator_traits<_InputIterator>::reference; 29724: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, __ref>); 29724: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, _Tp&>); 29724: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, _Tp&>); 29724: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, __ref>); 29724: if constexpr (__is_random_access_iter<_InputIterator>::value) 29724: { 29724: while ((__last - __first) >= 4) 29724: { 29724: _Tp __v1 = __binary_op(__first[0], __first[1]); 29724: _Tp __v2 = __binary_op(__first[2], __first[3]); 29724: _Tp __v3 = __binary_op(__v1, __v2); 29724: __init = __binary_op(__init, __v3); 29724: __first += 4; 29724: } 29724: } 29724: for (; __first != __last; ++__first) 29724: __init = __binary_op(__init, *__first); 29724: return __init; 29724: } 29724: # 322 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: inline _Tp 29724: reduce(_InputIterator __first, _InputIterator __last, _Tp __init) 29724: { return std::reduce(__first, __last, std::move(__init), plus<>()); } 29724: # 339 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: inline typename iterator_traits<_InputIterator>::value_type 29724: reduce(_InputIterator __first, _InputIterator __last) 29724: { 29724: using value_type = typename iterator_traits<_InputIterator>::value_type; 29724: return std::reduce(__first, __last, value_type{}, plus<>()); 29724: } 29724: # 366 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _Tp 29724: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _Tp __init, 29724: _BinaryOperation1 __binary_op1, 29724: _BinaryOperation2 __binary_op2) 29724: { 29724: if constexpr (__and_v<__is_random_access_iter<_InputIterator1>, 29724: __is_random_access_iter<_InputIterator2>>) 29724: { 29724: while ((__last1 - __first1) >= 4) 29724: { 29724: _Tp __v1 = __binary_op1(__binary_op2(__first1[0], __first2[0]), 29724: __binary_op2(__first1[1], __first2[1])); 29724: _Tp __v2 = __binary_op1(__binary_op2(__first1[2], __first2[2]), 29724: __binary_op2(__first1[3], __first2[3])); 29724: _Tp __v3 = __binary_op1(__v1, __v2); 29724: __init = __binary_op1(__init, __v3); 29724: __first1 += 4; 29724: __first2 += 4; 29724: } 29724: } 29724: for (; __first1 != __last1; ++__first1, (void) ++__first2) 29724: __init = __binary_op1(__init, __binary_op2(*__first1, *__first2)); 29724: return __init; 29724: } 29724: # 410 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: inline _Tp 29724: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _Tp __init) 29724: { 29724: return std::transform_reduce(__first1, __last1, __first2, 29724: std::move(__init), 29724: plus<>(), multiplies<>()); 29724: } 29724: # 435 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _Tp 29724: transform_reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 29724: _BinaryOperation __binary_op, _UnaryOperation __unary_op) 29724: { 29724: if constexpr (__is_random_access_iter<_InputIterator>::value) 29724: { 29724: while ((__last - __first) >= 4) 29724: { 29724: _Tp __v1 = __binary_op(__unary_op(__first[0]), 29724: __unary_op(__first[1])); 29724: _Tp __v2 = __binary_op(__unary_op(__first[2]), 29724: __unary_op(__first[3])); 29724: _Tp __v3 = __binary_op(__v1, __v2); 29724: __init = __binary_op(__init, __v3); 29724: __first += 4; 29724: } 29724: } 29724: for (; __first != __last; ++__first) 29724: __init = __binary_op(__init, __unary_op(*__first)); 29724: return __init; 29724: } 29724: # 478 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: exclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Tp __init, 29724: _BinaryOperation __binary_op) 29724: { 29724: while (__first != __last) 29724: { 29724: _Tp __v = std::move(__init); 29724: __init = __binary_op(__v, *__first); 29724: ++__first; 29724: *__result++ = std::move(__v); 29724: } 29724: return __result; 29724: } 29724: # 513 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: inline _OutputIterator 29724: exclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Tp __init) 29724: { 29724: return std::exclusive_scan(__first, __last, __result, std::move(__init), 29724: plus<>()); 29724: } 29724: # 541 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: inclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _BinaryOperation __binary_op, 29724: _Tp __init) 29724: { 29724: for (; __first != __last; ++__first) 29724: *__result++ = __init = __binary_op(__init, *__first); 29724: return __result; 29724: } 29724: # 570 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: inclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _BinaryOperation __binary_op) 29724: { 29724: if (__first != __last) 29724: { 29724: auto __init = *__first; 29724: *__result++ = __init; 29724: ++__first; 29724: if (__first != __last) 29724: __result = std::inclusive_scan(__first, __last, __result, 29724: __binary_op, std::move(__init)); 29724: } 29724: return __result; 29724: } 29724: # 604 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: inline _OutputIterator 29724: inclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result) 29724: { return std::inclusive_scan(__first, __last, __result, plus<>()); } 29724: # 631 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: transform_exclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Tp __init, 29724: _BinaryOperation __binary_op, 29724: _UnaryOperation __unary_op) 29724: { 29724: while (__first != __last) 29724: { 29724: auto __v = __init; 29724: __init = __binary_op(__init, __unary_op(*__first)); 29724: ++__first; 29724: *__result++ = std::move(__v); 29724: } 29724: return __result; 29724: } 29724: # 670 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: _BinaryOperation __binary_op, 29724: _UnaryOperation __unary_op, 29724: _Tp __init) 29724: { 29724: for (; __first != __last; ++__first) 29724: *__result++ = __init = __binary_op(__init, __unary_op(*__first)); 29724: return __result; 29724: } 29724: # 704 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: _BinaryOperation __binary_op, 29724: _UnaryOperation __unary_op) 29724: { 29724: if (__first != __last) 29724: { 29724: auto __init = __unary_op(*__first); 29724: *__result++ = __init; 29724: ++__first; 29724: if (__first != __last) 29724: __result = std::transform_inclusive_scan(__first, __last, __result, 29724: __binary_op, __unary_op, 29724: std::move(__init)); 29724: } 29724: return __result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 739 "/usr/include/c++/14/numeric" 3 29724: # 1 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 1 3 29724: # 15 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 3 29724: namespace std 29724: { 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29724: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 29724: _BinaryOperation __binary_op); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29724: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29724: typename iterator_traits<_ForwardIterator>::value_type> 29724: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29724: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _Tp __init); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29724: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, 29724: _BinaryOperation2 __binary_op2); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29724: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 29724: _BinaryOperation __binary_op, _UnaryOperation __unary_op); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _Tp __init); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _BinaryOperation __binary_op); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: transform_exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, 29724: _UnaryOperation __unary_op); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, 29724: _Tp __init); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __d_first, _BinaryOperation __op); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __d_first); 29724: 29724: } 29724: # 740 "/usr/include/c++/14/numeric" 2 3 29724: # 34 "/usr/include/c++/14/bits/random.tcc" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _Tp 29724: _Mod<_Tp, __m, __a, __c, false, true>:: 29724: __calc(_Tp __x) 29724: { 29724: if (__a == 1) 29724: __x %= __m; 29724: else 29724: { 29724: static const _Tp __q = __m / __a; 29724: static const _Tp __r = __m % __a; 29724: 29724: _Tp __t1 = __a * (__x % __q); 29724: _Tp __t2 = __r * (__x / __q); 29724: if (__t1 >= __t2) 29724: __x = __t1 - __t2; 29724: else 29724: __x = __m - __t2 + __t1; 29724: } 29724: 29724: if (__c != 0) 29724: { 29724: const _Tp __d = __m - __x; 29724: if (__d > __c) 29724: __x += __c; 29724: else 29724: __x = __c - __d; 29724: } 29724: return __x; 29724: } 29724: 29724: template 29724: _OutputIterator 29724: __normalize(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, const _Tp& __factor) 29724: { 29724: for (; __first != __last; ++__first, ++__result) 29724: *__result = *__first / __factor; 29724: return __result; 29724: } 29724: 29724: } 29724: # 116 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: void 29724: linear_congruential_engine<_UIntType, __a, __c, __m>:: 29724: seed(result_type __s) 29724: { 29724: if ((__detail::__mod<_UIntType, __m>(__c) == 0) 29724: && (__detail::__mod<_UIntType, __m>(__s) == 0)) 29724: _M_x = 1; 29724: else 29724: _M_x = __detail::__mod<_UIntType, __m>(__s); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: template 29724: auto 29724: linear_congruential_engine<_UIntType, __a, __c, __m>:: 29724: seed(_Sseq& __q) 29724: -> _If_seed_seq<_Sseq> 29724: { 29724: const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits 29724: : std::__lg(__m); 29724: const _UIntType __k = (__k0 + 31) / 32; 29724: uint_least32_t __arr[__k + 3]; 29724: __q.generate(__arr + 0, __arr + __k + 3); 29724: _UIntType __factor = 1u; 29724: _UIntType __sum = 0u; 29724: for (size_t __j = 0; __j < __k; ++__j) 29724: { 29724: __sum += __arr[__j + 3] * __factor; 29724: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29724: } 29724: seed(__sum); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const linear_congruential_engine<_UIntType, 29724: __a, __c, __m>& __lcr) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29724: __os.fill(__os.widen(' ')); 29724: 29724: __os << __lcr._M_x; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: linear_congruential_engine<_UIntType, __a, __c, __m>& __lcr) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec); 29724: 29724: __is >> __lcr._M_x; 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: # 320 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: void 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>:: 29724: seed(result_type __sd) 29724: { 29724: _M_x[0] = __detail::__mod<_UIntType, 29724: __detail::_Shift<_UIntType, __w>::__value>(__sd); 29724: 29724: for (size_t __i = 1; __i < state_size; ++__i) 29724: { 29724: _UIntType __x = _M_x[__i - 1]; 29724: __x ^= __x >> (__w - 2); 29724: __x *= __f; 29724: __x += __detail::__mod<_UIntType, __n>(__i); 29724: _M_x[__i] = __detail::__mod<_UIntType, 29724: __detail::_Shift<_UIntType, __w>::__value>(__x); 29724: } 29724: _M_p = state_size; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>:: 29724: seed(_Sseq& __q) 29724: -> _If_seed_seq<_Sseq> 29724: { 29724: const _UIntType __upper_mask = (~_UIntType()) << __r; 29724: const size_t __k = (__w + 31) / 32; 29724: uint_least32_t __arr[__n * __k]; 29724: __q.generate(__arr + 0, __arr + __n * __k); 29724: 29724: bool __zero = true; 29724: for (size_t __i = 0; __i < state_size; ++__i) 29724: { 29724: _UIntType __factor = 1u; 29724: _UIntType __sum = 0u; 29724: for (size_t __j = 0; __j < __k; ++__j) 29724: { 29724: __sum += __arr[__k * __i + __j] * __factor; 29724: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29724: } 29724: _M_x[__i] = __detail::__mod<_UIntType, 29724: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29724: 29724: if (__zero) 29724: { 29724: if (__i == 0) 29724: { 29724: if ((_M_x[0] & __upper_mask) != 0u) 29724: __zero = false; 29724: } 29724: else if (_M_x[__i] != 0u) 29724: __zero = false; 29724: } 29724: } 29724: if (__zero) 29724: _M_x[0] = __detail::_Shift<_UIntType, __w - 1>::__value; 29724: _M_p = state_size; 29724: } 29724: 29724: template 29724: void 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>:: 29724: _M_gen_rand(void) 29724: { 29724: const _UIntType __upper_mask = (~_UIntType()) << __r; 29724: const _UIntType __lower_mask = ~__upper_mask; 29724: 29724: for (size_t __k = 0; __k < (__n - __m); ++__k) 29724: { 29724: _UIntType __y = ((_M_x[__k] & __upper_mask) 29724: | (_M_x[__k + 1] & __lower_mask)); 29724: _M_x[__k] = (_M_x[__k + __m] ^ (__y >> 1) 29724: ^ ((__y & 0x01) ? __a : 0)); 29724: } 29724: 29724: for (size_t __k = (__n - __m); __k < (__n - 1); ++__k) 29724: { 29724: _UIntType __y = ((_M_x[__k] & __upper_mask) 29724: | (_M_x[__k + 1] & __lower_mask)); 29724: _M_x[__k] = (_M_x[__k + (__m - __n)] ^ (__y >> 1) 29724: ^ ((__y & 0x01) ? __a : 0)); 29724: } 29724: 29724: _UIntType __y = ((_M_x[__n - 1] & __upper_mask) 29724: | (_M_x[0] & __lower_mask)); 29724: _M_x[__n - 1] = (_M_x[__m - 1] ^ (__y >> 1) 29724: ^ ((__y & 0x01) ? __a : 0)); 29724: _M_p = 0; 29724: } 29724: 29724: template 29724: void 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>:: 29724: discard(unsigned long long __z) 29724: { 29724: while (__z > state_size - _M_p) 29724: { 29724: __z -= state_size - _M_p; 29724: _M_gen_rand(); 29724: } 29724: _M_p += __z; 29724: } 29724: 29724: template 29724: typename 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>::result_type 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>:: 29724: operator()() 29724: { 29724: 29724: if (_M_p >= state_size) 29724: _M_gen_rand(); 29724: 29724: 29724: result_type __z = _M_x[_M_p++]; 29724: __z ^= (__z >> __u) & __d; 29724: __z ^= (__z << __s) & __b; 29724: __z ^= (__z << __t) & __c; 29724: __z ^= (__z >> __l); 29724: 29724: return __z; 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const mersenne_twister_engine<_UIntType, __w, __n, __m, 29724: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29724: __os.fill(__space); 29724: 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: __os << __x._M_x[__i] << __space; 29724: __os << __x._M_p; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, 29724: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: __is >> __x._M_x[__i]; 29724: __is >> __x._M_p; 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: # 539 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: void 29724: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29724: seed(result_type __value) 29724: { 29724: 29724: 29724: 29724: std::linear_congruential_engine 29724: __lcg(__value == 0u ? default_seed : __value % 2147483563u); 29724: 29724: const size_t __n = (__w + 31) / 32; 29724: 29724: for (size_t __i = 0; __i < long_lag; ++__i) 29724: { 29724: _UIntType __sum = 0u; 29724: _UIntType __factor = 1u; 29724: for (size_t __j = 0; __j < __n; ++__j) 29724: { 29724: __sum += __detail::__mod::__value> 29724: (__lcg()) * __factor; 29724: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29724: } 29724: _M_x[__i] = __detail::__mod<_UIntType, 29724: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29724: } 29724: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 29724: _M_p = 0; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29724: seed(_Sseq& __q) 29724: -> _If_seed_seq<_Sseq> 29724: { 29724: const size_t __k = (__w + 31) / 32; 29724: uint_least32_t __arr[__r * __k]; 29724: __q.generate(__arr + 0, __arr + __r * __k); 29724: 29724: for (size_t __i = 0; __i < long_lag; ++__i) 29724: { 29724: _UIntType __sum = 0u; 29724: _UIntType __factor = 1u; 29724: for (size_t __j = 0; __j < __k; ++__j) 29724: { 29724: __sum += __arr[__k * __i + __j] * __factor; 29724: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29724: } 29724: _M_x[__i] = __detail::__mod<_UIntType, 29724: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29724: } 29724: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 29724: _M_p = 0; 29724: } 29724: 29724: template 29724: typename subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29724: result_type 29724: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29724: operator()() 29724: { 29724: 29724: long __ps = _M_p - short_lag; 29724: if (__ps < 0) 29724: __ps += long_lag; 29724: 29724: 29724: 29724: 29724: _UIntType __xi; 29724: if (_M_x[__ps] >= _M_x[_M_p] + _M_carry) 29724: { 29724: __xi = _M_x[__ps] - _M_x[_M_p] - _M_carry; 29724: _M_carry = 0; 29724: } 29724: else 29724: { 29724: __xi = (__detail::_Shift<_UIntType, __w>::__value 29724: - _M_x[_M_p] - _M_carry + _M_x[__ps]); 29724: _M_carry = 1; 29724: } 29724: _M_x[_M_p] = __xi; 29724: 29724: 29724: if (++_M_p >= long_lag) 29724: _M_p = 0; 29724: 29724: return __xi; 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const subtract_with_carry_engine<_UIntType, 29724: __w, __s, __r>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29724: __os.fill(__space); 29724: 29724: for (size_t __i = 0; __i < __r; ++__i) 29724: __os << __x._M_x[__i] << __space; 29724: __os << __x._M_carry << __space << __x._M_p; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: subtract_with_carry_engine<_UIntType, __w, __s, __r>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: for (size_t __i = 0; __i < __r; ++__i) 29724: __is >> __x._M_x[__i]; 29724: __is >> __x._M_carry; 29724: __is >> __x._M_p; 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: # 686 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: typename discard_block_engine<_RandomNumberEngine, 29724: __p, __r>::result_type 29724: discard_block_engine<_RandomNumberEngine, __p, __r>:: 29724: operator()() 29724: { 29724: if (_M_n >= used_block) 29724: { 29724: _M_b.discard(block_size - _M_n); 29724: _M_n = 0; 29724: } 29724: ++_M_n; 29724: return _M_b(); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const discard_block_engine<_RandomNumberEngine, 29724: __p, __r>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29724: __os.fill(__space); 29724: 29724: __os << __x.base() << __space << __x._M_n; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: discard_block_engine<_RandomNumberEngine, __p, __r>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: __is >> __x._M_b >> __x._M_n; 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: typename independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 29724: result_type 29724: independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 29724: operator()() 29724: { 29724: typedef typename _RandomNumberEngine::result_type _Eresult_type; 29724: const _Eresult_type __r 29724: = (_M_b.max() - _M_b.min() < std::numeric_limits<_Eresult_type>::max() 29724: ? _M_b.max() - _M_b.min() + 1 : 0); 29724: const unsigned __edig = std::numeric_limits<_Eresult_type>::digits; 29724: const unsigned __m = __r ? std::__lg(__r) : __edig; 29724: 29724: typedef typename std::common_type<_Eresult_type, result_type>::type 29724: __ctype; 29724: const unsigned __cdig = std::numeric_limits<__ctype>::digits; 29724: 29724: unsigned __n, __n0; 29724: __ctype __s0, __s1, __y0, __y1; 29724: 29724: for (size_t __i = 0; __i < 2; ++__i) 29724: { 29724: __n = (__w + __m - 1) / __m + __i; 29724: __n0 = __n - __w % __n; 29724: const unsigned __w0 = __w / __n; 29724: 29724: __s0 = 0; 29724: __s1 = 0; 29724: if (__w0 < __cdig) 29724: { 29724: __s0 = __ctype(1) << __w0; 29724: __s1 = __s0 << 1; 29724: } 29724: 29724: __y0 = 0; 29724: __y1 = 0; 29724: if (__r) 29724: { 29724: __y0 = __s0 * (__r / __s0); 29724: if (__s1) 29724: __y1 = __s1 * (__r / __s1); 29724: 29724: if (__r - __y0 <= __y0 / __n) 29724: break; 29724: } 29724: else 29724: break; 29724: } 29724: 29724: result_type __sum = 0; 29724: for (size_t __k = 0; __k < __n0; ++__k) 29724: { 29724: __ctype __u; 29724: do 29724: __u = _M_b() - _M_b.min(); 29724: while (__y0 && __u >= __y0); 29724: __sum = __s0 * __sum + (__s0 ? __u % __s0 : __u); 29724: } 29724: for (size_t __k = __n0; __k < __n; ++__k) 29724: { 29724: __ctype __u; 29724: do 29724: __u = _M_b() - _M_b.min(); 29724: while (__y1 && __u >= __y1); 29724: __sum = __s1 * __sum + (__s1 ? __u % __s1 : __u); 29724: } 29724: return __sum; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __detail 29724: { 29724: 29724: template 29724: constexpr bool 29724: __representable_as_double(_Tp __x) noexcept 29724: { 29724: static_assert(numeric_limits<_Tp>::is_integer, ""); 29724: static_assert(!numeric_limits<_Tp>::is_signed, ""); 29724: 29724: return (__x <= (1ull << 53)) 29724: 29724: || (!(__x & 1) && __detail::__representable_as_double(__x >> 1)); 29724: } 29724: 29724: 29724: template 29724: constexpr bool 29724: __p1_representable_as_double(_Tp __x) noexcept 29724: { 29724: static_assert(numeric_limits<_Tp>::is_integer, ""); 29724: static_assert(!numeric_limits<_Tp>::is_signed, ""); 29724: return numeric_limits<_Tp>::digits < 53 29724: || (bool(__x + 1u) 29724: && __detail::__representable_as_double(__x + 1u)); 29724: } 29724: } 29724: 29724: template 29724: typename shuffle_order_engine<_RandomNumberEngine, __k>::result_type 29724: shuffle_order_engine<_RandomNumberEngine, __k>:: 29724: operator()() 29724: { 29724: constexpr result_type __range = max() - min(); 29724: size_t __j = __k; 29724: const result_type __y = _M_y - min(); 29724: 29724: if constexpr (__detail::__p1_representable_as_double(__range)) 29724: __j *= __y / (__range + 1.0); 29724: else 29724: __j *= __y / (__range + 1.0L); 29724: _M_y = _M_v[__j]; 29724: _M_v[__j] = _M_b(); 29724: 29724: return _M_y; 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const shuffle_order_engine<_RandomNumberEngine, __k>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29724: __os.fill(__space); 29724: 29724: __os << __x.base(); 29724: for (size_t __i = 0; __i < __k; ++__i) 29724: __os << __space << __x._M_v[__i]; 29724: __os << __space << __x._M_y; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: shuffle_order_engine<_RandomNumberEngine, __k>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: __is >> __x._M_b; 29724: for (size_t __i = 0; __i < __k; ++__i) 29724: __is >> __x._M_v[__i]; 29724: __is >> __x._M_y; 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const uniform_int_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: 29724: __os << __x.a() << __space << __x.b(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: uniform_int_distribution<_IntType>& __x) 29724: { 29724: using param_type 29724: = typename uniform_int_distribution<_IntType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _IntType __a, __b; 29724: if (__is >> __a >> __b) 29724: __x.param(param_type(__a, __b)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: uniform_real_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: auto __range = __p.b() - __p.a(); 29724: while (__f != __t) 29724: *__f++ = __aurng() * __range + __p.a(); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const uniform_real_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.a() << __space << __x.b(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: uniform_real_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename uniform_real_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::skipws); 29724: 29724: _RealType __a, __b; 29724: if (__is >> __a >> __b) 29724: __x.param(param_type(__a, __b)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: std::bernoulli_distribution:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: auto __limit = __p.p() * (__aurng.max() - __aurng.min()); 29724: 29724: while (__f != __t) 29724: *__f++ = (__aurng() - __aurng.min()) < __limit; 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const bernoulli_distribution& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__os.widen(' ')); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: __os << __x.p(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: 29724: template 29724: template 29724: typename geometric_distribution<_IntType>::result_type 29724: geometric_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: const double __naf = 29724: (1 - std::numeric_limits::epsilon()) / 2; 29724: 29724: const double __thr = 29724: std::numeric_limits<_IntType>::max() + __naf; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: double __cand; 29724: do 29724: __cand = std::floor(std::log(1.0 - __aurng()) / __param._M_log_1_p); 29724: while (__cand >= __thr); 29724: 29724: return result_type(__cand + __naf); 29724: } 29724: 29724: template 29724: template 29724: void 29724: geometric_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: 29724: const double __naf = 29724: (1 - std::numeric_limits::epsilon()) / 2; 29724: 29724: const double __thr = 29724: std::numeric_limits<_IntType>::max() + __naf; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: while (__f != __t) 29724: { 29724: double __cand; 29724: do 29724: __cand = std::floor(std::log(1.0 - __aurng()) 29724: / __param._M_log_1_p); 29724: while (__cand >= __thr); 29724: 29724: *__f++ = __cand + __naf; 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const geometric_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__os.widen(' ')); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: __os << __x.p(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: geometric_distribution<_IntType>& __x) 29724: { 29724: using param_type = typename geometric_distribution<_IntType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::skipws); 29724: 29724: double __p; 29724: if (__is >> __p) 29724: __x.param(param_type(__p)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: typename negative_binomial_distribution<_IntType>::result_type 29724: negative_binomial_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { 29724: const double __y = _M_gd(__urng); 29724: 29724: 29724: std::poisson_distribution __poisson(__y); 29724: return __poisson(__urng); 29724: } 29724: 29724: template 29724: template 29724: typename negative_binomial_distribution<_IntType>::result_type 29724: negative_binomial_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: 29724: const double __y = 29724: _M_gd(__urng, param_type(__p.k(), (1.0 - __p.p()) / __p.p())); 29724: 29724: std::poisson_distribution __poisson(__y); 29724: return __poisson(__urng); 29724: } 29724: 29724: template 29724: template 29724: void 29724: negative_binomial_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { 29724: 29724: while (__f != __t) 29724: { 29724: const double __y = _M_gd(__urng); 29724: 29724: 29724: std::poisson_distribution __poisson(__y); 29724: *__f++ = __poisson(__urng); 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: negative_binomial_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: typename std::gamma_distribution::param_type 29724: __p2(__p.k(), (1.0 - __p.p()) / __p.p()); 29724: 29724: while (__f != __t) 29724: { 29724: const double __y = _M_gd(__urng, __p2); 29724: 29724: std::poisson_distribution __poisson(__y); 29724: *__f++ = __poisson(__urng); 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const negative_binomial_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__os.widen(' ')); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: __os << __x.k() << __space << __x.p() 29724: << __space << __x._M_gd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: negative_binomial_distribution<_IntType>& __x) 29724: { 29724: using param_type 29724: = typename negative_binomial_distribution<_IntType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::skipws); 29724: 29724: _IntType __k; 29724: double __p; 29724: if (__is >> __k >> __p >> __x._M_gd) 29724: __x.param(param_type(__k, __p)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: poisson_distribution<_IntType>::param_type:: 29724: _M_initialize() 29724: { 29724: 29724: if (_M_mean >= 12) 29724: { 29724: const double __m = std::floor(_M_mean); 29724: _M_lm_thr = std::log(_M_mean); 29724: _M_lfm = std::lgamma(__m + 1); 29724: _M_sm = std::sqrt(__m); 29724: 29724: const double __pi_4 = 0.7853981633974483096156608458198757L; 29724: const double __dx = std::sqrt(2 * __m * std::log(32 * __m 29724: / __pi_4)); 29724: _M_d = std::round(std::max(6.0, std::min(__m, __dx))); 29724: const double __cx = 2 * __m + _M_d; 29724: _M_scx = std::sqrt(__cx / 2); 29724: _M_1cx = 1 / __cx; 29724: 29724: _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx); 29724: _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2)) 29724: / _M_d; 29724: } 29724: else 29724: 29724: _M_lm_thr = std::exp(-_M_mean); 29724: } 29724: # 1308 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: template 29724: typename poisson_distribution<_IntType>::result_type 29724: poisson_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: if (__param.mean() >= 12) 29724: { 29724: double __x; 29724: 29724: 29724: const double __naf = 29724: (1 - std::numeric_limits::epsilon()) / 2; 29724: const double __thr = 29724: std::numeric_limits<_IntType>::max() + __naf; 29724: 29724: const double __m = std::floor(__param.mean()); 29724: 29724: const double __spi_2 = 1.2533141373155002512078826424055226L; 29724: const double __c1 = __param._M_sm * __spi_2; 29724: const double __c2 = __param._M_c2b + __c1; 29724: const double __c3 = __c2 + 1; 29724: const double __c4 = __c3 + 1; 29724: 29724: const double __178 = 0.0128205128205128205128205128205128L; 29724: 29724: const double __e178 = 1.0129030479320018583185514777512983L; 29724: const double __c5 = __c4 + __e178; 29724: const double __c = __param._M_cb + __c5; 29724: const double __2cx = 2 * (2 * __m + __param._M_d); 29724: 29724: bool __reject = true; 29724: do 29724: { 29724: const double __u = __c * __aurng(); 29724: const double __e = -std::log(1.0 - __aurng()); 29724: 29724: double __w = 0.0; 29724: 29724: if (__u <= __c1) 29724: { 29724: const double __n = _M_nd(__urng); 29724: const double __y = -std::abs(__n) * __param._M_sm - 1; 29724: __x = std::floor(__y); 29724: __w = -__n * __n / 2; 29724: if (__x < -__m) 29724: continue; 29724: } 29724: else if (__u <= __c2) 29724: { 29724: const double __n = _M_nd(__urng); 29724: const double __y = 1 + std::abs(__n) * __param._M_scx; 29724: __x = std::ceil(__y); 29724: __w = __y * (2 - __y) * __param._M_1cx; 29724: if (__x > __param._M_d) 29724: continue; 29724: } 29724: else if (__u <= __c3) 29724: 29724: 29724: __x = -1; 29724: else if (__u <= __c4) 29724: __x = 0; 29724: else if (__u <= __c5) 29724: { 29724: __x = 1; 29724: 29724: __w = __178; 29724: } 29724: else 29724: { 29724: const double __v = -std::log(1.0 - __aurng()); 29724: const double __y = __param._M_d 29724: + __v * __2cx / __param._M_d; 29724: __x = std::ceil(__y); 29724: __w = -__param._M_d * __param._M_1cx * (1 + __y / 2); 29724: } 29724: 29724: __reject = (__w - __e - __x * __param._M_lm_thr 29724: > __param._M_lfm - std::lgamma(__x + __m + 1)); 29724: 29724: __reject |= __x + __m >= __thr; 29724: 29724: } while (__reject); 29724: 29724: return result_type(__x + __m + __naf); 29724: } 29724: else 29724: 29724: { 29724: _IntType __x = 0; 29724: double __prod = 1.0; 29724: 29724: do 29724: { 29724: __prod *= __aurng(); 29724: __x += 1; 29724: } 29724: while (__prod > __param._M_lm_thr); 29724: 29724: return __x - 1; 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: poisson_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: while (__f != __t) 29724: *__f++ = this->operator()(__urng, __param); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const poisson_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: __os << __x.mean() << __space << __x._M_nd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: poisson_distribution<_IntType>& __x) 29724: { 29724: using param_type = typename poisson_distribution<_IntType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::skipws); 29724: 29724: double __mean; 29724: if (__is >> __mean >> __x._M_nd) 29724: __x.param(param_type(__mean)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: binomial_distribution<_IntType>::param_type:: 29724: _M_initialize() 29724: { 29724: const double __p12 = _M_p <= 0.5 ? _M_p : 1.0 - _M_p; 29724: 29724: _M_easy = true; 29724: 29724: 29724: if (_M_t * __p12 >= 8) 29724: { 29724: _M_easy = false; 29724: const double __np = std::floor(_M_t * __p12); 29724: const double __pa = __np / _M_t; 29724: const double __1p = 1 - __pa; 29724: 29724: const double __pi_4 = 0.7853981633974483096156608458198757L; 29724: const double __d1x = 29724: std::sqrt(__np * __1p * std::log(32 * __np 29724: / (81 * __pi_4 * __1p))); 29724: _M_d1 = std::round(std::max(1.0, __d1x)); 29724: const double __d2x = 29724: std::sqrt(__np * __1p * std::log(32 * _M_t * __1p 29724: / (__pi_4 * __pa))); 29724: _M_d2 = std::round(std::max(1.0, __d2x)); 29724: 29724: 29724: const double __spi_2 = 1.2533141373155002512078826424055226L; 29724: _M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np)); 29724: _M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * (_M_t * __1p))); 29724: _M_c = 2 * _M_d1 / __np; 29724: _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2; 29724: const double __a12 = _M_a1 + _M_s2 * __spi_2; 29724: const double __s1s = _M_s1 * _M_s1; 29724: _M_a123 = __a12 + (std::exp(_M_d1 / (_M_t * __1p)) 29724: * 2 * __s1s / _M_d1 29724: * std::exp(-_M_d1 * _M_d1 / (2 * __s1s))); 29724: const double __s2s = _M_s2 * _M_s2; 29724: _M_s = (_M_a123 + 2 * __s2s / _M_d2 29724: * std::exp(-_M_d2 * _M_d2 / (2 * __s2s))); 29724: _M_lf = (std::lgamma(__np + 1) 29724: + std::lgamma(_M_t - __np + 1)); 29724: _M_lp1p = std::log(__pa / __1p); 29724: 29724: _M_q = -std::log(1 - (__p12 - __pa) / __1p); 29724: } 29724: else 29724: 29724: _M_q = -std::log(1 - __p12); 29724: } 29724: 29724: template 29724: template 29724: typename binomial_distribution<_IntType>::result_type 29724: binomial_distribution<_IntType>:: 29724: _M_waiting(_UniformRandomNumberGenerator& __urng, 29724: _IntType __t, double __q) 29724: { 29724: _IntType __x = 0; 29724: double __sum = 0.0; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: do 29724: { 29724: if (__t == __x) 29724: return __x; 29724: const double __e = -std::log(1.0 - __aurng()); 29724: __sum += __e / (__t - __x); 29724: __x += 1; 29724: } 29724: while (__sum <= __q); 29724: 29724: return __x - 1; 29724: } 29724: # 1563 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: template 29724: typename binomial_distribution<_IntType>::result_type 29724: binomial_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: result_type __ret; 29724: const _IntType __t = __param.t(); 29724: const double __p = __param.p(); 29724: const double __p12 = __p <= 0.5 ? __p : 1.0 - __p; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: 29724: if (!__param._M_easy) 29724: { 29724: double __x; 29724: 29724: 29724: const double __naf = 29724: (1 - std::numeric_limits::epsilon()) / 2; 29724: const double __thr = 29724: std::numeric_limits<_IntType>::max() + __naf; 29724: 29724: const double __np = std::floor(__t * __p12); 29724: 29724: 29724: const double __spi_2 = 1.2533141373155002512078826424055226L; 29724: const double __a1 = __param._M_a1; 29724: const double __a12 = __a1 + __param._M_s2 * __spi_2; 29724: const double __a123 = __param._M_a123; 29724: const double __s1s = __param._M_s1 * __param._M_s1; 29724: const double __s2s = __param._M_s2 * __param._M_s2; 29724: 29724: bool __reject; 29724: do 29724: { 29724: const double __u = __param._M_s * __aurng(); 29724: 29724: double __v; 29724: 29724: if (__u <= __a1) 29724: { 29724: const double __n = _M_nd(__urng); 29724: const double __y = __param._M_s1 * std::abs(__n); 29724: __reject = __y >= __param._M_d1; 29724: if (!__reject) 29724: { 29724: const double __e = -std::log(1.0 - __aurng()); 29724: __x = std::floor(__y); 29724: __v = -__e - __n * __n / 2 + __param._M_c; 29724: } 29724: } 29724: else if (__u <= __a12) 29724: { 29724: const double __n = _M_nd(__urng); 29724: const double __y = __param._M_s2 * std::abs(__n); 29724: __reject = __y >= __param._M_d2; 29724: if (!__reject) 29724: { 29724: const double __e = -std::log(1.0 - __aurng()); 29724: __x = std::floor(-__y); 29724: __v = -__e - __n * __n / 2; 29724: } 29724: } 29724: else if (__u <= __a123) 29724: { 29724: const double __e1 = -std::log(1.0 - __aurng()); 29724: const double __e2 = -std::log(1.0 - __aurng()); 29724: 29724: const double __y = __param._M_d1 29724: + 2 * __s1s * __e1 / __param._M_d1; 29724: __x = std::floor(__y); 29724: __v = (-__e2 + __param._M_d1 * (1 / (__t - __np) 29724: -__y / (2 * __s1s))); 29724: __reject = false; 29724: } 29724: else 29724: { 29724: const double __e1 = -std::log(1.0 - __aurng()); 29724: const double __e2 = -std::log(1.0 - __aurng()); 29724: 29724: const double __y = __param._M_d2 29724: + 2 * __s2s * __e1 / __param._M_d2; 29724: __x = std::floor(-__y); 29724: __v = -__e2 - __param._M_d2 * __y / (2 * __s2s); 29724: __reject = false; 29724: } 29724: 29724: __reject = __reject || __x < -__np || __x > __t - __np; 29724: if (!__reject) 29724: { 29724: const double __lfx = 29724: std::lgamma(__np + __x + 1) 29724: + std::lgamma(__t - (__np + __x) + 1); 29724: __reject = __v > __param._M_lf - __lfx 29724: + __x * __param._M_lp1p; 29724: } 29724: 29724: __reject |= __x + __np >= __thr; 29724: } 29724: while (__reject); 29724: 29724: __x += __np + __naf; 29724: 29724: const _IntType __z = _M_waiting(__urng, __t - _IntType(__x), 29724: __param._M_q); 29724: __ret = _IntType(__x) + __z; 29724: } 29724: else 29724: 29724: __ret = _M_waiting(__urng, __t, __param._M_q); 29724: 29724: if (__p12 != __p) 29724: __ret = __t - __ret; 29724: return __ret; 29724: } 29724: 29724: template 29724: template 29724: void 29724: binomial_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: while (__f != __t) 29724: *__f++ = this->operator()(__urng, __param); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const binomial_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: __os << __x.t() << __space << __x.p() 29724: << __space << __x._M_nd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: binomial_distribution<_IntType>& __x) 29724: { 29724: using param_type = typename binomial_distribution<_IntType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _IntType __t; 29724: double __p; 29724: if (__is >> __t >> __p >> __x._M_nd) 29724: __x.param(param_type(__t, __p)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: std::exponential_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: while (__f != __t) 29724: *__f++ = -std::log(result_type(1) - __aurng()) / __p.lambda(); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const exponential_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__os.widen(' ')); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.lambda(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: exponential_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename exponential_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __lambda; 29724: if (__is >> __lambda) 29724: __x.param(param_type(__lambda)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: # 1809 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: template 29724: typename normal_distribution<_RealType>::result_type 29724: normal_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: result_type __ret; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: 29724: if (_M_saved_available) 29724: { 29724: _M_saved_available = false; 29724: __ret = _M_saved; 29724: } 29724: else 29724: { 29724: result_type __x, __y, __r2; 29724: do 29724: { 29724: __x = result_type(2.0) * __aurng() - 1.0; 29724: __y = result_type(2.0) * __aurng() - 1.0; 29724: __r2 = __x * __x + __y * __y; 29724: } 29724: while (__r2 > 1.0 || __r2 == 0.0); 29724: 29724: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29724: _M_saved = __x * __mult; 29724: _M_saved_available = true; 29724: __ret = __y * __mult; 29724: } 29724: 29724: __ret = __ret * __param.stddev() + __param.mean(); 29724: return __ret; 29724: } 29724: 29724: template 29724: template 29724: void 29724: normal_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: if (__f == __t) 29724: return; 29724: 29724: if (_M_saved_available) 29724: { 29724: _M_saved_available = false; 29724: *__f++ = _M_saved * __param.stddev() + __param.mean(); 29724: 29724: if (__f == __t) 29724: return; 29724: } 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: 29724: while (__f + 1 < __t) 29724: { 29724: result_type __x, __y, __r2; 29724: do 29724: { 29724: __x = result_type(2.0) * __aurng() - 1.0; 29724: __y = result_type(2.0) * __aurng() - 1.0; 29724: __r2 = __x * __x + __y * __y; 29724: } 29724: while (__r2 > 1.0 || __r2 == 0.0); 29724: 29724: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29724: *__f++ = __y * __mult * __param.stddev() + __param.mean(); 29724: *__f++ = __x * __mult * __param.stddev() + __param.mean(); 29724: } 29724: 29724: if (__f != __t) 29724: { 29724: result_type __x, __y, __r2; 29724: do 29724: { 29724: __x = result_type(2.0) * __aurng() - 1.0; 29724: __y = result_type(2.0) * __aurng() - 1.0; 29724: __r2 = __x * __x + __y * __y; 29724: } 29724: while (__r2 > 1.0 || __r2 == 0.0); 29724: 29724: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29724: _M_saved = __x * __mult; 29724: _M_saved_available = true; 29724: *__f = __y * __mult * __param.stddev() + __param.mean(); 29724: } 29724: } 29724: 29724: template 29724: bool 29724: operator==(const std::normal_distribution<_RealType>& __d1, 29724: const std::normal_distribution<_RealType>& __d2) 29724: { 29724: if (__d1._M_param == __d2._M_param 29724: && __d1._M_saved_available == __d2._M_saved_available) 29724: return __d1._M_saved_available ? __d1._M_saved == __d2._M_saved : true; 29724: else 29724: return false; 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const normal_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.mean() << __space << __x.stddev() 29724: << __space << __x._M_saved_available; 29724: if (__x._M_saved_available) 29724: __os << __space << __x._M_saved; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: normal_distribution<_RealType>& __x) 29724: { 29724: using param_type = typename normal_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: double __mean, __stddev; 29724: bool __saved_avail; 29724: if (__is >> __mean >> __stddev >> __saved_avail) 29724: { 29724: if (!__saved_avail || (__is >> __x._M_saved)) 29724: { 29724: __x._M_saved_available = __saved_avail; 29724: __x.param(param_type(__mean, __stddev)); 29724: } 29724: } 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: lognormal_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: while (__f != __t) 29724: *__f++ = std::exp(__p.s() * _M_nd(__urng) + __p.m()); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const lognormal_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.m() << __space << __x.s() 29724: << __space << __x._M_nd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: lognormal_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename lognormal_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __m, __s; 29724: if (__is >> __m >> __s >> __x._M_nd) 29724: __x.param(param_type(__m, __s)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: template 29724: template 29724: void 29724: std::chi_squared_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { 29724: 29724: while (__f != __t) 29724: *__f++ = 2 * _M_gd(__urng); 29724: } 29724: 29724: template 29724: template 29724: void 29724: std::chi_squared_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const typename 29724: std::gamma_distribution::param_type& __p) 29724: { 29724: 29724: while (__f != __t) 29724: *__f++ = 2 * _M_gd(__urng, __p); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const chi_squared_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.n() << __space << __x._M_gd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: chi_squared_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename chi_squared_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __n; 29724: if (__is >> __n >> __x._M_gd) 29724: __x.param(param_type(__n)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: typename cauchy_distribution<_RealType>::result_type 29724: cauchy_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: _RealType __u; 29724: do 29724: __u = __aurng(); 29724: while (__u == 0.5); 29724: 29724: const _RealType __pi = 3.1415926535897932384626433832795029L; 29724: return __p.a() + __p.b() * std::tan(__pi * __u); 29724: } 29724: 29724: template 29724: template 29724: void 29724: cauchy_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: const _RealType __pi = 3.1415926535897932384626433832795029L; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: while (__f != __t) 29724: { 29724: _RealType __u; 29724: do 29724: __u = __aurng(); 29724: while (__u == 0.5); 29724: 29724: *__f++ = __p.a() + __p.b() * std::tan(__pi * __u); 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const cauchy_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.a() << __space << __x.b(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: cauchy_distribution<_RealType>& __x) 29724: { 29724: using param_type = typename cauchy_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __a, __b; 29724: if (__is >> __a >> __b) 29724: __x.param(param_type(__a, __b)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: std::fisher_f_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { 29724: 29724: while (__f != __t) 29724: *__f++ = ((_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m())); 29724: } 29724: 29724: template 29724: template 29724: void 29724: std::fisher_f_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: param_type __p1(__p.m() / 2); 29724: param_type __p2(__p.n() / 2); 29724: while (__f != __t) 29724: *__f++ = ((_M_gd_x(__urng, __p1) * n()) 29724: / (_M_gd_y(__urng, __p2) * m())); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const fisher_f_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.m() << __space << __x.n() 29724: << __space << __x._M_gd_x << __space << __x._M_gd_y; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: fisher_f_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename fisher_f_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __m, __n; 29724: if (__is >> __m >> __n >> __x._M_gd_x >> __x._M_gd_y) 29724: __x.param(param_type(__m, __n)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: std::student_t_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { 29724: 29724: while (__f != __t) 29724: *__f++ = _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); 29724: } 29724: 29724: template 29724: template 29724: void 29724: std::student_t_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: typename std::gamma_distribution::param_type 29724: __p2(__p.n() / 2, 2); 29724: while (__f != __t) 29724: *__f++ = _M_nd(__urng) * std::sqrt(__p.n() / _M_gd(__urng, __p2)); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const student_t_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.n() << __space << __x._M_nd << __space << __x._M_gd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: student_t_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename student_t_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __n; 29724: if (__is >> __n >> __x._M_nd >> __x._M_gd) 29724: __x.param(param_type(__n)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: gamma_distribution<_RealType>::param_type:: 29724: _M_initialize() 29724: { 29724: _M_malpha = _M_alpha < 1.0 ? _M_alpha + _RealType(1.0) : _M_alpha; 29724: 29724: const _RealType __a1 = _M_malpha - _RealType(1.0) / _RealType(3.0); 29724: _M_a2 = _RealType(1.0) / std::sqrt(_RealType(9.0) * __a1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: template 29724: typename gamma_distribution<_RealType>::result_type 29724: gamma_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: 29724: result_type __u, __v, __n; 29724: const result_type __a1 = (__param._M_malpha 29724: - _RealType(1.0) / _RealType(3.0)); 29724: 29724: do 29724: { 29724: do 29724: { 29724: __n = _M_nd(__urng); 29724: __v = result_type(1.0) + __param._M_a2 * __n; 29724: } 29724: while (__v <= 0.0); 29724: 29724: __v = __v * __v * __v; 29724: __u = __aurng(); 29724: } 29724: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29724: && (std::log(__u) > (0.5 * __n * __n + __a1 29724: * (1.0 - __v + std::log(__v))))); 29724: 29724: if (__param.alpha() == __param._M_malpha) 29724: return __a1 * __v * __param.beta(); 29724: else 29724: { 29724: do 29724: __u = __aurng(); 29724: while (__u == 0.0); 29724: 29724: return (std::pow(__u, result_type(1.0) / __param.alpha()) 29724: * __a1 * __v * __param.beta()); 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: gamma_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: 29724: result_type __u, __v, __n; 29724: const result_type __a1 = (__param._M_malpha 29724: - _RealType(1.0) / _RealType(3.0)); 29724: 29724: if (__param.alpha() == __param._M_malpha) 29724: while (__f != __t) 29724: { 29724: do 29724: { 29724: do 29724: { 29724: __n = _M_nd(__urng); 29724: __v = result_type(1.0) + __param._M_a2 * __n; 29724: } 29724: while (__v <= 0.0); 29724: 29724: __v = __v * __v * __v; 29724: __u = __aurng(); 29724: } 29724: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29724: && (std::log(__u) > (0.5 * __n * __n + __a1 29724: * (1.0 - __v + std::log(__v))))); 29724: 29724: *__f++ = __a1 * __v * __param.beta(); 29724: } 29724: else 29724: while (__f != __t) 29724: { 29724: do 29724: { 29724: do 29724: { 29724: __n = _M_nd(__urng); 29724: __v = result_type(1.0) + __param._M_a2 * __n; 29724: } 29724: while (__v <= 0.0); 29724: 29724: __v = __v * __v * __v; 29724: __u = __aurng(); 29724: } 29724: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29724: && (std::log(__u) > (0.5 * __n * __n + __a1 29724: * (1.0 - __v + std::log(__v))))); 29724: 29724: do 29724: __u = __aurng(); 29724: while (__u == 0.0); 29724: 29724: *__f++ = (std::pow(__u, result_type(1.0) / __param.alpha()) 29724: * __a1 * __v * __param.beta()); 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const gamma_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.alpha() << __space << __x.beta() 29724: << __space << __x._M_nd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: gamma_distribution<_RealType>& __x) 29724: { 29724: using param_type = typename gamma_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __alpha_val, __beta_val; 29724: if (__is >> __alpha_val >> __beta_val >> __x._M_nd) 29724: __x.param(param_type(__alpha_val, __beta_val)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: typename weibull_distribution<_RealType>::result_type 29724: weibull_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: return __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 29724: result_type(1) / __p.a()); 29724: } 29724: 29724: template 29724: template 29724: void 29724: weibull_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: auto __inv_a = result_type(1) / __p.a(); 29724: 29724: while (__f != __t) 29724: *__f++ = __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 29724: __inv_a); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const weibull_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.a() << __space << __x.b(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: weibull_distribution<_RealType>& __x) 29724: { 29724: using param_type = typename weibull_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __a, __b; 29724: if (__is >> __a >> __b) 29724: __x.param(param_type(__a, __b)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: typename extreme_value_distribution<_RealType>::result_type 29724: extreme_value_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: return __p.a() - __p.b() * std::log(-std::log(result_type(1) 29724: - __aurng())); 29724: } 29724: 29724: template 29724: template 29724: void 29724: extreme_value_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: 29724: while (__f != __t) 29724: *__f++ = __p.a() - __p.b() * std::log(-std::log(result_type(1) 29724: - __aurng())); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const extreme_value_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.a() << __space << __x.b(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: extreme_value_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename extreme_value_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __a, __b; 29724: if (__is >> __a >> __b) 29724: __x.param(param_type(__a, __b)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: discrete_distribution<_IntType>::param_type:: 29724: _M_initialize() 29724: { 29724: if (_M_prob.size() < 2) 29724: { 29724: _M_prob.clear(); 29724: return; 29724: } 29724: 29724: const double __sum = std::accumulate(_M_prob.begin(), 29724: _M_prob.end(), 0.0); 29724: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __detail::__normalize(_M_prob.begin(), _M_prob.end(), _M_prob.begin(), 29724: __sum); 29724: 29724: _M_cp.reserve(_M_prob.size()); 29724: std::partial_sum(_M_prob.begin(), _M_prob.end(), 29724: std::back_inserter(_M_cp)); 29724: 29724: _M_cp[_M_cp.size() - 1] = 1.0; 29724: } 29724: 29724: template 29724: template 29724: discrete_distribution<_IntType>::param_type:: 29724: param_type(size_t __nw, double __xmin, double __xmax, _Func __fw) 29724: : _M_prob(), _M_cp() 29724: { 29724: const size_t __n = __nw == 0 ? 1 : __nw; 29724: const double __delta = (__xmax - __xmin) / __n; 29724: 29724: _M_prob.reserve(__n); 29724: for (size_t __k = 0; __k < __nw; ++__k) 29724: _M_prob.push_back(__fw(__xmin + __k * __delta + 0.5 * __delta)); 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: typename discrete_distribution<_IntType>::result_type 29724: discrete_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: if (__param._M_cp.empty()) 29724: return result_type(0); 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: const double __p = __aurng(); 29724: auto __pos = std::lower_bound(__param._M_cp.begin(), 29724: __param._M_cp.end(), __p); 29724: 29724: return __pos - __param._M_cp.begin(); 29724: } 29724: 29724: template 29724: template 29724: void 29724: discrete_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: if (__param._M_cp.empty()) 29724: { 29724: while (__f != __t) 29724: *__f++ = result_type(0); 29724: return; 29724: } 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: while (__f != __t) 29724: { 29724: const double __p = __aurng(); 29724: auto __pos = std::lower_bound(__param._M_cp.begin(), 29724: __param._M_cp.end(), __p); 29724: 29724: *__f++ = __pos - __param._M_cp.begin(); 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const discrete_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: std::vector __prob = __x.probabilities(); 29724: __os << __prob.size(); 29724: for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit) 29724: __os << __space << *__dit; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: namespace __detail 29724: { 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: __extract_params(basic_istream<_CharT, _Traits>& __is, 29724: vector<_ValT>& __vals, size_t __n) 29724: { 29724: __vals.reserve(__n); 29724: while (__n--) 29724: { 29724: _ValT __val; 29724: if (__is >> __val) 29724: __vals.push_back(__val); 29724: else 29724: break; 29724: } 29724: return __is; 29724: } 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: discrete_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: size_t __n; 29724: if (__is >> __n) 29724: { 29724: std::vector __prob_vec; 29724: if (__detail::__extract_params(__is, __prob_vec, __n)) 29724: __x.param({__prob_vec.begin(), __prob_vec.end()}); 29724: } 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: piecewise_constant_distribution<_RealType>::param_type:: 29724: _M_initialize() 29724: { 29724: if (_M_int.size() < 2 29724: || (_M_int.size() == 2 29724: && _M_int[0] == _RealType(0) 29724: && _M_int[1] == _RealType(1))) 29724: { 29724: _M_int.clear(); 29724: _M_den.clear(); 29724: return; 29724: } 29724: 29724: const double __sum = std::accumulate(_M_den.begin(), 29724: _M_den.end(), 0.0); 29724: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 29724: __sum); 29724: 29724: _M_cp.reserve(_M_den.size()); 29724: std::partial_sum(_M_den.begin(), _M_den.end(), 29724: std::back_inserter(_M_cp)); 29724: 29724: 29724: _M_cp[_M_cp.size() - 1] = 1.0; 29724: 29724: for (size_t __k = 0; __k < _M_den.size(); ++__k) 29724: _M_den[__k] /= _M_int[__k + 1] - _M_int[__k]; 29724: } 29724: 29724: template 29724: template 29724: piecewise_constant_distribution<_RealType>::param_type:: 29724: param_type(_InputIteratorB __bbegin, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin) 29724: : _M_int(), _M_den(), _M_cp() 29724: { 29724: if (__bbegin != __bend) 29724: { 29724: for (;;) 29724: { 29724: _M_int.push_back(*__bbegin); 29724: ++__bbegin; 29724: if (__bbegin == __bend) 29724: break; 29724: 29724: _M_den.push_back(*__wbegin); 29724: ++__wbegin; 29724: } 29724: } 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: piecewise_constant_distribution<_RealType>::param_type:: 29724: param_type(initializer_list<_RealType> __bl, _Func __fw) 29724: : _M_int(), _M_den(), _M_cp() 29724: { 29724: _M_int.reserve(__bl.size()); 29724: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 29724: _M_int.push_back(*__biter); 29724: 29724: _M_den.reserve(_M_int.size() - 1); 29724: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 29724: _M_den.push_back(__fw(0.5 * (_M_int[__k + 1] + _M_int[__k]))); 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: piecewise_constant_distribution<_RealType>::param_type:: 29724: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 29724: : _M_int(), _M_den(), _M_cp() 29724: { 29724: const size_t __n = __nw == 0 ? 1 : __nw; 29724: const _RealType __delta = (__xmax - __xmin) / __n; 29724: 29724: _M_int.reserve(__n + 1); 29724: for (size_t __k = 0; __k <= __nw; ++__k) 29724: _M_int.push_back(__xmin + __k * __delta); 29724: 29724: _M_den.reserve(__n); 29724: for (size_t __k = 0; __k < __nw; ++__k) 29724: _M_den.push_back(__fw(_M_int[__k] + 0.5 * __delta)); 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: typename piecewise_constant_distribution<_RealType>::result_type 29724: piecewise_constant_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: const double __p = __aurng(); 29724: if (__param._M_cp.empty()) 29724: return __p; 29724: 29724: auto __pos = std::lower_bound(__param._M_cp.begin(), 29724: __param._M_cp.end(), __p); 29724: const size_t __i = __pos - __param._M_cp.begin(); 29724: 29724: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29724: 29724: return __param._M_int[__i] + (__p - __pref) / __param._M_den[__i]; 29724: } 29724: 29724: template 29724: template 29724: void 29724: piecewise_constant_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: if (__param._M_cp.empty()) 29724: { 29724: while (__f != __t) 29724: *__f++ = __aurng(); 29724: return; 29724: } 29724: 29724: while (__f != __t) 29724: { 29724: const double __p = __aurng(); 29724: 29724: auto __pos = std::lower_bound(__param._M_cp.begin(), 29724: __param._M_cp.end(), __p); 29724: const size_t __i = __pos - __param._M_cp.begin(); 29724: 29724: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29724: 29724: *__f++ = (__param._M_int[__i] 29724: + (__p - __pref) / __param._M_den[__i]); 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const piecewise_constant_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: std::vector<_RealType> __int = __x.intervals(); 29724: __os << __int.size() - 1; 29724: 29724: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 29724: __os << __space << *__xit; 29724: 29724: std::vector __den = __x.densities(); 29724: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 29724: __os << __space << *__dit; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: piecewise_constant_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: size_t __n; 29724: if (__is >> __n) 29724: { 29724: std::vector<_RealType> __int_vec; 29724: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 29724: { 29724: std::vector __den_vec; 29724: if (__detail::__extract_params(__is, __den_vec, __n)) 29724: { 29724: __x.param({ __int_vec.begin(), __int_vec.end(), 29724: __den_vec.begin() }); 29724: } 29724: } 29724: } 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: piecewise_linear_distribution<_RealType>::param_type:: 29724: _M_initialize() 29724: { 29724: if (_M_int.size() < 2 29724: || (_M_int.size() == 2 29724: && _M_int[0] == _RealType(0) 29724: && _M_int[1] == _RealType(1) 29724: && _M_den[0] == _M_den[1])) 29724: { 29724: _M_int.clear(); 29724: _M_den.clear(); 29724: return; 29724: } 29724: 29724: double __sum = 0.0; 29724: _M_cp.reserve(_M_int.size() - 1); 29724: _M_m.reserve(_M_int.size() - 1); 29724: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 29724: { 29724: const _RealType __delta = _M_int[__k + 1] - _M_int[__k]; 29724: __sum += 0.5 * (_M_den[__k + 1] + _M_den[__k]) * __delta; 29724: _M_cp.push_back(__sum); 29724: _M_m.push_back((_M_den[__k + 1] - _M_den[__k]) / __delta); 29724: } 29724: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: 29724: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 29724: __sum); 29724: 29724: __detail::__normalize(_M_cp.begin(), _M_cp.end(), _M_cp.begin(), __sum); 29724: 29724: __detail::__normalize(_M_m.begin(), _M_m.end(), _M_m.begin(), __sum); 29724: 29724: 29724: _M_cp[_M_cp.size() - 1] = 1.0; 29724: } 29724: 29724: template 29724: template 29724: piecewise_linear_distribution<_RealType>::param_type:: 29724: param_type(_InputIteratorB __bbegin, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin) 29724: : _M_int(), _M_den(), _M_cp(), _M_m() 29724: { 29724: for (; __bbegin != __bend; ++__bbegin, ++__wbegin) 29724: { 29724: _M_int.push_back(*__bbegin); 29724: _M_den.push_back(*__wbegin); 29724: } 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: piecewise_linear_distribution<_RealType>::param_type:: 29724: param_type(initializer_list<_RealType> __bl, _Func __fw) 29724: : _M_int(), _M_den(), _M_cp(), _M_m() 29724: { 29724: _M_int.reserve(__bl.size()); 29724: _M_den.reserve(__bl.size()); 29724: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 29724: { 29724: _M_int.push_back(*__biter); 29724: _M_den.push_back(__fw(*__biter)); 29724: } 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: piecewise_linear_distribution<_RealType>::param_type:: 29724: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 29724: : _M_int(), _M_den(), _M_cp(), _M_m() 29724: { 29724: const size_t __n = __nw == 0 ? 1 : __nw; 29724: const _RealType __delta = (__xmax - __xmin) / __n; 29724: 29724: _M_int.reserve(__n + 1); 29724: _M_den.reserve(__n + 1); 29724: for (size_t __k = 0; __k <= __nw; ++__k) 29724: { 29724: _M_int.push_back(__xmin + __k * __delta); 29724: _M_den.push_back(__fw(_M_int[__k] + __delta)); 29724: } 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: typename piecewise_linear_distribution<_RealType>::result_type 29724: piecewise_linear_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: const double __p = __aurng(); 29724: if (__param._M_cp.empty()) 29724: return __p; 29724: 29724: auto __pos = std::lower_bound(__param._M_cp.begin(), 29724: __param._M_cp.end(), __p); 29724: const size_t __i = __pos - __param._M_cp.begin(); 29724: 29724: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29724: 29724: const double __a = 0.5 * __param._M_m[__i]; 29724: const double __b = __param._M_den[__i]; 29724: const double __cm = __p - __pref; 29724: 29724: _RealType __x = __param._M_int[__i]; 29724: if (__a == 0) 29724: __x += __cm / __b; 29724: else 29724: { 29724: const double __d = __b * __b + 4.0 * __a * __cm; 29724: __x += 0.5 * (std::sqrt(__d) - __b) / __a; 29724: } 29724: 29724: return __x; 29724: } 29724: 29724: template 29724: template 29724: void 29724: piecewise_linear_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: while (__f != __t) 29724: *__f++ = this->operator()(__urng, __param); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const piecewise_linear_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: std::vector<_RealType> __int = __x.intervals(); 29724: __os << __int.size() - 1; 29724: 29724: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 29724: __os << __space << *__xit; 29724: 29724: std::vector __den = __x.densities(); 29724: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 29724: __os << __space << *__dit; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: piecewise_linear_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: size_t __n; 29724: if (__is >> __n) 29724: { 29724: vector<_RealType> __int_vec; 29724: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 29724: { 29724: vector __den_vec; 29724: if (__detail::__extract_params(__is, __den_vec, __n + 1)) 29724: { 29724: __x.param({ __int_vec.begin(), __int_vec.end(), 29724: __den_vec.begin() }); 29724: } 29724: } 29724: } 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: seed_seq::seed_seq(std::initializer_list<_IntType> __il) 29724: { 29724: _M_v.reserve(__il.size()); 29724: for (auto __iter = __il.begin(); __iter != __il.end(); ++__iter) 29724: _M_v.push_back(__detail::__mod::__value>(*__iter)); 29724: } 29724: 29724: template 29724: seed_seq::seed_seq(_InputIterator __begin, _InputIterator __end) 29724: { 29724: if constexpr (__is_random_access_iter<_InputIterator>::value) 29724: _M_v.reserve(std::distance(__begin, __end)); 29724: 29724: for (_InputIterator __iter = __begin; __iter != __end; ++__iter) 29724: _M_v.push_back(__detail::__mod::__value>(*__iter)); 29724: } 29724: 29724: template 29724: void 29724: seed_seq::generate(_RandomAccessIterator __begin, 29724: _RandomAccessIterator __end) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _Type; 29724: 29724: if (__begin == __end) 29724: return; 29724: 29724: std::fill(__begin, __end, _Type(0x8b8b8b8bu)); 29724: 29724: const size_t __n = __end - __begin; 29724: const size_t __s = _M_v.size(); 29724: const size_t __t = (__n >= 623) ? 11 29724: : (__n >= 68) ? 7 29724: : (__n >= 39) ? 5 29724: : (__n >= 7) ? 3 29724: : (__n - 1) / 2; 29724: const size_t __p = (__n - __t) / 2; 29724: const size_t __q = __p + __t; 29724: const size_t __m = std::max(size_t(__s + 1), __n); 29724: # 3292 "/usr/include/c++/14/bits/random.tcc" 3 29724: { 29724: uint32_t __r1 = 1371501266u; 29724: uint32_t __r2 = __r1 + __s; 29724: __begin[__p] += __r1; 29724: __begin[__q] = (uint32_t)__begin[__q] + __r2; 29724: __begin[0] = __r2; 29724: } 29724: 29724: for (size_t __k = 1; __k <= __s; ++__k) 29724: { 29724: const size_t __kn = __k % __n; 29724: const size_t __kpn = (__k + __p) % __n; 29724: const size_t __kqn = (__k + __q) % __n; 29724: uint32_t __arg = (__begin[__kn] 29724: ^ __begin[__kpn] 29724: ^ __begin[(__k - 1) % __n]); 29724: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 29724: uint32_t __r2 = __r1 + (uint32_t)__kn + _M_v[__k - 1]; 29724: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 29724: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 29724: __begin[__kn] = __r2; 29724: } 29724: 29724: for (size_t __k = __s + 1; __k < __m; ++__k) 29724: { 29724: const size_t __kn = __k % __n; 29724: const size_t __kpn = (__k + __p) % __n; 29724: const size_t __kqn = (__k + __q) % __n; 29724: uint32_t __arg = (__begin[__kn] 29724: ^ __begin[__kpn] 29724: ^ __begin[(__k - 1) % __n]); 29724: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 29724: uint32_t __r2 = __r1 + (uint32_t)__kn; 29724: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 29724: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 29724: __begin[__kn] = __r2; 29724: } 29724: 29724: for (size_t __k = __m; __k < __m + __n; ++__k) 29724: { 29724: const size_t __kn = __k % __n; 29724: const size_t __kpn = (__k + __p) % __n; 29724: const size_t __kqn = (__k + __q) % __n; 29724: uint32_t __arg = (__begin[__kn] 29724: + __begin[__kpn] 29724: + __begin[(__k - 1) % __n]); 29724: uint32_t __r3 = 1566083941u * (__arg ^ (__arg >> 27)); 29724: uint32_t __r4 = __r3 - __kn; 29724: __begin[__kpn] ^= __r3; 29724: __begin[__kqn] ^= __r4; 29724: __begin[__kn] = __r4; 29724: } 29724: } 29724: 29724: template 29724: _RealType 29724: generate_canonical(_UniformRandomNumberGenerator& __urng) 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "template argument must be a floating point type"); 29724: 29724: const size_t __b 29724: = std::min(static_cast(std::numeric_limits<_RealType>::digits), 29724: __bits); 29724: const long double __r = static_cast(__urng.max()) 29724: - static_cast(__urng.min()) + 1.0L; 29724: const size_t __log2r = std::log(__r) / std::log(2.0L); 29724: const size_t __m = std::max(1UL, 29724: (__b + __log2r - 1UL) / __log2r); 29724: _RealType __ret; 29724: _RealType __sum = _RealType(0); 29724: _RealType __tmp = _RealType(1); 29724: for (size_t __k = __m; __k != 0; --__k) 29724: { 29724: __sum += _RealType(__urng() - __urng.min()) * __tmp; 29724: __tmp *= __r; 29724: } 29724: __ret = __sum / __tmp; 29724: if (__builtin_expect(__ret >= _RealType(1), 0)) 29724: { 29724: 29724: __ret = std::nextafter(_RealType(1), _RealType(0)); 29724: 29724: 29724: 29724: 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: } 29724: # 51 "/usr/include/c++/14/random" 2 3 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 2 29724: 29724: 29724: 29724: 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: class Random { 29724: private: 29724: enum : uint32_t { 29724: M = 2147483647L 29724: }; 29724: enum : uint64_t { 29724: A = 16807 29724: }; 29724: 29724: uint32_t seed_; 29724: 29724: static uint32_t GoodSeed(uint32_t s) { return (s & M) != 0 ? (s & M) : 1; } 29724: 29724: public: 29724: 29724: enum : uint32_t { kMaxNext = M }; 29724: 29724: explicit Random(uint32_t s) : seed_(GoodSeed(s)) {} 29724: 29724: void Reset(uint32_t s) { seed_ = GoodSeed(s); } 29724: 29724: uint32_t Next() { 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t product = seed_ * A; 29724: 29724: 29724: seed_ = static_cast((product >> 31) + (product & M)); 29724: 29724: 29724: 29724: if (seed_ > M) { 29724: seed_ -= M; 29724: } 29724: return seed_; 29724: } 29724: 29724: uint64_t Next64() { return (uint64_t{Next()} << 32) | Next(); } 29724: 29724: 29724: 29724: uint32_t Uniform(int n) { return Next() % n; } 29724: 29724: 29724: 29724: bool OneIn(int n) { return Uniform(n) == 0; } 29724: 29724: 29724: 29724: bool OneInOpt(int n) { return n > 0 && OneIn(n); } 29724: 29724: 29724: 29724: 29724: bool PercentTrue(int percentage) { 29724: return static_cast(Uniform(100)) < percentage; 29724: } 29724: 29724: 29724: 29724: 29724: uint32_t Skewed(int max_log) { return Uniform(1 << Uniform(max_log + 1)); } 29724: 29724: 29724: std::string RandomString(int len); 29724: 29724: 29724: std::string HumanReadableString(int len); 29724: 29724: 29724: std::string RandomBinaryString(int len); 29724: 29724: 29724: 29724: static Random* GetTLSInstance(); 29724: }; 29724: 29724: 29724: 29724: 29724: class Random32 { 29724: private: 29724: std::mt19937 generator_; 29724: 29724: public: 29724: explicit Random32(uint32_t s) : generator_(s) {} 29724: 29724: 29724: uint32_t Next() { return static_cast(generator_()); } 29724: 29724: 29724: 29724: uint32_t Uniform(uint32_t n) { 29724: return static_cast( 29724: std::uniform_int_distribution( 29724: 0, n - 1)(generator_)); 29724: } 29724: 29724: 29724: 29724: 29724: uint32_t Uniformish(uint32_t n) { 29724: 29724: return static_cast((uint64_t(generator_()) * uint64_t(n)) >> 32); 29724: } 29724: 29724: 29724: 29724: bool OneIn(uint32_t n) { return Uniform(n) == 0; } 29724: 29724: 29724: 29724: 29724: uint32_t Skewed(int max_log) { 29724: return Uniform(uint32_t{1} << Uniform(max_log + 1)); 29724: } 29724: 29724: 29724: void Seed(uint32_t new_seed) { generator_.seed(new_seed); } 29724: }; 29724: 29724: 29724: class Random64 { 29724: private: 29724: std::mt19937_64 generator_; 29724: 29724: public: 29724: explicit Random64(uint64_t s) : generator_(s) {} 29724: 29724: 29724: uint64_t Next() { return generator_(); } 29724: 29724: 29724: 29724: uint64_t Uniform(uint64_t n) { 29724: return std::uniform_int_distribution(0, n - 1)(generator_); 29724: } 29724: 29724: 29724: 29724: bool OneIn(uint64_t n) { return Uniform(n) == 0; } 29724: 29724: 29724: 29724: 29724: uint64_t Skewed(int max_log) { 29724: return Uniform(uint64_t(1) << Uniform(max_log + 1)); 29724: } 29724: }; 29724: 29724: 29724: template 29724: void RandomShuffle(RandomIt first, RandomIt last, uint32_t seed) { 29724: std::mt19937 rng(seed); 29724: std::shuffle(first, last, rng); 29724: } 29724: 29724: 29724: template 29724: void RandomShuffle(RandomIt first, RandomIt last) { 29724: RandomShuffle(first, last, std::random_device{}()); 29724: } 29724: 29724: } 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: template 29724: class CoreLocalArray { 29724: public: 29724: CoreLocalArray(); 29724: 29724: size_t Size() const; 29724: 29724: 29724: T* Access() const; 29724: 29724: 29724: 29724: std::pair AccessElementAndIndex() const; 29724: 29724: 29724: T* AccessAtCore(size_t core_idx) const; 29724: 29724: private: 29724: std::unique_ptr data_; 29724: int size_shift_; 29724: }; 29724: 29724: template 29724: CoreLocalArray::CoreLocalArray() { 29724: int num_cpus = static_cast(std::thread::hardware_concurrency()); 29724: 29724: size_shift_ = 3; 29724: while (1 << size_shift_ < num_cpus) { 29724: ++size_shift_; 29724: } 29724: data_.reset(new T[static_cast(1) << size_shift_]); 29724: } 29724: 29724: template 29724: size_t CoreLocalArray::Size() const { 29724: return static_cast(1) << size_shift_; 29724: } 29724: 29724: template 29724: T* CoreLocalArray::Access() const { 29724: return AccessElementAndIndex().first; 29724: } 29724: 29724: template 29724: std::pair CoreLocalArray::AccessElementAndIndex() const { 29724: int cpuid = port::PhysicalCoreID(); 29724: size_t core_idx; 29724: if ((__builtin_expect((cpuid < 0), 0))) { 29724: 29724: core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); 29724: } else { 29724: core_idx = static_cast(BottomNBits(cpuid, size_shift_)); 29724: } 29724: return {AccessAtCore(core_idx), core_idx}; 29724: } 29724: 29724: template 29724: T* CoreLocalArray::AccessAtCore(size_t core_idx) const { 29724: 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29724: (static_cast ( 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29724: core_idx < static_cast(1) << size_shift_ 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29724: "core_idx < static_cast(1) << size_shift_" 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29724: ; 29724: return &data_[core_idx]; 29724: } 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 1 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29724: 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29724: namespace rocksdb { 29724: 29724: namespace detail { 29724: 29724: 29724: template 29724: struct FastRangeGenericImpl { 29724: 29724: }; 29724: 29724: template 29724: struct FastRangeGenericImpl { 29724: static inline Range Fn(uint32_t hash, Range range) { 29724: static_assert(std::is_unsigned::value, "must be unsigned"); 29724: static_assert(sizeof(Range) <= sizeof(uint32_t), 29724: "cannot be larger than hash (32 bits)"); 29724: 29724: uint64_t product = uint64_t{range} * hash; 29724: return static_cast(product >> 32); 29724: } 29724: }; 29724: 29724: template 29724: struct FastRangeGenericImpl { 29724: static inline Range Fn(uint64_t hash, Range range) { 29724: static_assert(std::is_unsigned::value, "must be unsigned"); 29724: static_assert(sizeof(Range) <= sizeof(uint64_t), 29724: "cannot be larger than hash (64 bits)"); 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29724: uint64_t range64 = range; 29724: uint64_t tmp = uint64_t{range64 & 0xffffFFFF} * uint64_t{hash & 0xffffFFFF}; 29724: tmp >>= 32; 29724: tmp += uint64_t{range64 & 0xffffFFFF} * uint64_t{hash >> 32}; 29724: 29724: uint64_t tmp2 = uint64_t{range64 >> 32} * uint64_t{hash & 0xffffFFFF}; 29724: tmp += static_cast(tmp2); 29724: tmp >>= 32; 29724: tmp += (tmp2 >> 32); 29724: tmp += uint64_t{range64 >> 32} * uint64_t{hash >> 32}; 29724: return static_cast(tmp); 29724: 29724: } 29724: }; 29724: 29724: } 29724: # 96 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29724: template 29724: inline Range FastRangeGeneric(Hash hash, Range range) { 29724: return detail::FastRangeGenericImpl::Fn(hash, range); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: inline size_t FastRange64(uint64_t hash, size_t range) { 29724: return FastRangeGeneric(hash, range); 29724: } 29724: 29724: 29724: inline uint32_t FastRange32(uint32_t hash, uint32_t range) { 29724: return FastRangeGeneric(hash, range); 29724: } 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/hash.h" 1 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/hash.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: uint64_t Hash64(const char* data, size_t n, uint64_t seed); 29724: 29724: 29724: uint64_t Hash64(const char* data, size_t n); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline uint64_t NPHash64(const char* data, size_t n, uint64_t seed) { 29724: 29724: 29724: 29724: 29724: 29724: return Hash64(data, n, seed); 29724: 29724: } 29724: 29724: 29724: inline uint64_t NPHash64(const char* data, size_t n) { 29724: 29724: 29724: 29724: 29724: 29724: return Hash64(data, n); 29724: 29724: } 29724: 29724: 29724: 29724: void Hash2x64(const char* data, size_t n, uint64_t* high64, uint64_t* low64); 29724: void Hash2x64(const char* data, size_t n, uint64_t seed, uint64_t* high64, 29724: uint64_t* low64); 29724: 29724: 29724: 29724: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, 29724: uint64_t* out_high64, uint64_t* out_low64); 29724: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 29724: uint64_t* out_high64, uint64_t* out_low64); 29724: 29724: 29724: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, 29724: uint64_t* out_high64, uint64_t* out_low64); 29724: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 29724: uint64_t* out_high64, uint64_t* out_low64); 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t Hash(const char* data, size_t n, uint32_t seed); 29724: 29724: 29724: inline uint32_t BloomHash(const Slice& key) { 29724: return Hash(key.data(), key.size(), 0xbc9f1d34); 29724: } 29724: 29724: inline uint64_t GetSliceHash64(const Slice& key) { 29724: return Hash64(key.data(), key.size()); 29724: } 29724: 29724: 29724: extern uint64_t (*kGetSliceNPHash64UnseededFnPtr)(const Slice&); 29724: 29724: inline uint64_t GetSliceNPHash64(const Slice& s) { 29724: return NPHash64(s.data(), s.size()); 29724: } 29724: 29724: inline uint64_t GetSliceNPHash64(const Slice& s, uint64_t seed) { 29724: return NPHash64(s.data(), s.size(), seed); 29724: } 29724: 29724: 29724: 29724: uint64_t GetSlicePartsNPHash64(const SliceParts& data, uint64_t seed); 29724: 29724: inline size_t GetSliceRangedNPHash(const Slice& s, size_t range) { 29724: return FastRange64(NPHash64(s.data(), s.size()), range); 29724: } 29724: 29724: 29724: inline uint32_t GetSliceHash(const Slice& s) { 29724: return Hash(s.data(), s.size(), 397); 29724: } 29724: 29724: 29724: inline uint32_t Upper32of64(uint64_t v) { 29724: return static_cast(v >> 32); 29724: } 29724: inline uint32_t Lower32of64(uint64_t v) { return static_cast(v); } 29724: 29724: 29724: struct SliceHasher32 { 29724: uint32_t operator()(const Slice& s) const { return GetSliceHash(s); } 29724: }; 29724: struct SliceNPHasher64 { 29724: uint64_t operator()(const Slice& s, uint64_t seed = 0) const { 29724: return GetSliceNPHash64(s, seed); 29724: } 29724: }; 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29724: 29724: namespace rocksdb { 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29724: class MutexLock { 29724: public: 29724: explicit MutexLock(port::Mutex *mu) : mu_(mu) { this->mu_->Lock(); } 29724: 29724: MutexLock(const MutexLock &) = delete; 29724: void operator=(const MutexLock &) = delete; 29724: 29724: ~MutexLock() { this->mu_->Unlock(); } 29724: 29724: private: 29724: port::Mutex *const mu_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class ReadLock { 29724: public: 29724: explicit ReadLock(port::RWMutex *mu) : mu_(mu) { this->mu_->ReadLock(); } 29724: 29724: ReadLock(const ReadLock &) = delete; 29724: void operator=(const ReadLock &) = delete; 29724: 29724: ~ReadLock() { this->mu_->ReadUnlock(); } 29724: 29724: private: 29724: port::RWMutex *const mu_; 29724: }; 29724: 29724: 29724: 29724: 29724: class ReadUnlock { 29724: public: 29724: explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); } 29724: 29724: ReadUnlock(const ReadUnlock &) = delete; 29724: ReadUnlock &operator=(const ReadUnlock &) = delete; 29724: 29724: ~ReadUnlock() { mu_->ReadUnlock(); } 29724: 29724: private: 29724: port::RWMutex *const mu_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class WriteLock { 29724: public: 29724: explicit WriteLock(port::RWMutex *mu) : mu_(mu) { this->mu_->WriteLock(); } 29724: 29724: WriteLock(const WriteLock &) = delete; 29724: void operator=(const WriteLock &) = delete; 29724: 29724: ~WriteLock() { this->mu_->WriteUnlock(); } 29724: 29724: private: 29724: port::RWMutex *const mu_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class SpinMutex { 29724: public: 29724: SpinMutex() : locked_(false) {} 29724: 29724: bool try_lock() { 29724: auto currently_locked = locked_.load(std::memory_order_relaxed); 29724: return !currently_locked && 29724: locked_.compare_exchange_weak(currently_locked, true, 29724: std::memory_order_acquire, 29724: std::memory_order_relaxed); 29724: } 29724: 29724: void lock() { 29724: for (size_t tries = 0;; ++tries) { 29724: if (try_lock()) { 29724: 29724: break; 29724: } 29724: port::AsmVolatilePause(); 29724: if (tries > 100) { 29724: std::this_thread::yield(); 29724: } 29724: } 29724: } 29724: 29724: void unlock() { locked_.store(false, std::memory_order_release); } 29724: 29724: private: 29724: std::atomic locked_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct alignas(64U) CacheAlignedWrapper { 29724: T obj_; 29724: }; 29724: template 29724: struct Unwrap { 29724: using type = T; 29724: static type &Go(T &t) { return t; } 29724: }; 29724: template 29724: struct Unwrap> { 29724: using type = T; 29724: static type &Go(CacheAlignedWrapper &t) { return t.obj_; } 29724: }; 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29724: template 29724: class Striped { 29724: public: 29724: explicit Striped(size_t stripe_count) 29724: : stripe_count_(stripe_count), data_(new T[stripe_count]) {} 29724: 29724: using Unwrapped = typename Unwrap::type; 29724: Unwrapped &Get(const Key &key, uint64_t seed = 0) { 29724: size_t index = FastRangeGeneric(hash_(key, seed), stripe_count_); 29724: return Unwrap::Go(data_[index]); 29724: } 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: 29724: 29724: return sizeof(*this) + stripe_count_ * sizeof(T); 29724: } 29724: 29724: private: 29724: size_t stripe_count_; 29724: std::unique_ptr data_; 29724: Hash hash_; 29724: }; 29724: 29724: } 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 29724: namespace rocksdb { 29724: 29724: enum TickersInternal : uint32_t { 29724: INTERNAL_TICKER_ENUM_START = TICKER_ENUM_MAX, 29724: INTERNAL_TICKER_ENUM_MAX 29724: }; 29724: 29724: enum HistogramsInternal : uint32_t { 29724: INTERNAL_HISTOGRAM_START = HISTOGRAM_ENUM_MAX, 29724: INTERNAL_HISTOGRAM_ENUM_MAX 29724: }; 29724: 29724: class StatisticsImpl : public Statistics { 29724: public: 29724: StatisticsImpl(std::shared_ptr stats); 29724: virtual ~StatisticsImpl(); 29724: const char* Name() const override { return kClassName(); } 29724: static const char* kClassName() { return "BasicStatistics"; } 29724: 29724: uint64_t getTickerCount(uint32_t ticker_type) const override; 29724: void histogramData(uint32_t histogram_type, 29724: HistogramData* const data) const override; 29724: std::string getHistogramString(uint32_t histogram_type) const override; 29724: 29724: void setTickerCount(uint32_t ticker_type, uint64_t count) override; 29724: uint64_t getAndResetTickerCount(uint32_t ticker_type) override; 29724: void recordTick(uint32_t ticker_type, uint64_t count) override; 29724: 29724: 29724: 29724: 29724: void measureTime(uint32_t histogramType, uint64_t time) override { 29724: recordInHistogram(histogramType, time); 29724: } 29724: void recordInHistogram(uint32_t histogram_type, uint64_t value) override; 29724: 29724: Status Reset() override; 29724: std::string ToString() const override; 29724: bool getTickerMap(std::map*) const override; 29724: bool HistEnabledForType(uint32_t type) const override; 29724: 29724: const Customizable* Inner() const override { return stats_.get(); } 29724: 29724: private: 29724: 29724: std::shared_ptr stats_; 29724: 29724: 29724: mutable port::Mutex aggregate_lock_; 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct alignas(64U) StatisticsData { 29724: std::atomic_uint_fast64_t tickers_[INTERNAL_TICKER_ENUM_MAX] = {{0}}; 29724: HistogramImpl histograms_[INTERNAL_HISTOGRAM_ENUM_MAX]; 29724: 29724: char 29724: padding[(64U - 29724: (INTERNAL_TICKER_ENUM_MAX * sizeof(std::atomic_uint_fast64_t) + 29724: INTERNAL_HISTOGRAM_ENUM_MAX * sizeof(HistogramImpl)) % 29724: 64U)] ; 29724: 29724: void* operator new(size_t s) { return port::cacheline_aligned_alloc(s); } 29724: void* operator new[](size_t s) { return port::cacheline_aligned_alloc(s); } 29724: void operator delete(void* p) { port::cacheline_aligned_free(p); } 29724: void operator delete[](void* p) { port::cacheline_aligned_free(p); } 29724: }; 29724: 29724: 29724: static_assert(sizeof(StatisticsData) % 64U == 0, 29724: "Expected " "64U" "-byte aligned"); 29724: 29724: 29724: CoreLocalArray per_core_stats_; 29724: 29724: uint64_t getTickerCountLocked(uint32_t ticker_type) const; 29724: std::unique_ptr getHistogramImplLocked( 29724: uint32_t histogram_type) const; 29724: void setTickerCountLocked(uint32_t ticker_type, uint64_t count); 29724: }; 29724: 29724: 29724: inline void RecordInHistogram(Statistics* statistics, uint32_t histogram_type, 29724: uint64_t value) { 29724: if (statistics) { 29724: statistics->recordInHistogram(histogram_type, value); 29724: } 29724: } 29724: 29724: inline void RecordTimeToHistogram(Statistics* statistics, 29724: uint32_t histogram_type, uint64_t value) { 29724: if (statistics) { 29724: statistics->reportTimeToHistogram(histogram_type, value); 29724: } 29724: } 29724: 29724: inline void RecordTick(Statistics* statistics, uint32_t ticker_type, 29724: uint64_t count = 1) { 29724: if (statistics) { 29724: statistics->recordTick(ticker_type, count); 29724: } 29724: } 29724: 29724: inline void SetTickerCount(Statistics* statistics, uint32_t ticker_type, 29724: uint64_t count) { 29724: if (statistics) { 29724: statistics->setTickerCount(ticker_type, count); 29724: } 29724: } 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/chrono" 1 3 29724: # 33 "/usr/include/c++/14/chrono" 3 29724: 29724: # 34 "/usr/include/c++/14/chrono" 3 29724: # 55 "/usr/include/c++/14/chrono" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 56 "/usr/include/c++/14/chrono" 2 3 29724: 29724: 29724: # 57 "/usr/include/c++/14/chrono" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 74 "/usr/include/c++/14/chrono" 3 29724: namespace chrono 29724: { 29724: # 3328 "/usr/include/c++/14/chrono" 3 29724: } 29724: # 3356 "/usr/include/c++/14/chrono" 3 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 2 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29724: 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29724: namespace rocksdb { 29724: struct ConfigOptions; 29724: 29724: 29724: 29724: class SystemClock : public Customizable { 29724: public: 29724: ~SystemClock() override {} 29724: 29724: static const char* Type() { return "SystemClock"; } 29724: static Status CreateFromString(const ConfigOptions& options, 29724: const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: 29724: static const char* kDefaultName() { return "DefaultClock"; } 29724: 29724: 29724: 29724: static const std::shared_ptr& Default(); 29724: 29724: 29724: 29724: 29724: virtual uint64_t NowMicros() = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 29724: 29724: 29724: 29724: virtual uint64_t CPUMicros() { return 0; } 29724: 29724: 29724: 29724: 29724: virtual uint64_t CPUNanos() { return CPUMicros() * 1000; } 29724: 29724: 29724: virtual void SleepForMicroseconds(int micros) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool TimedWait(port::CondVar* cv, std::chrono::microseconds deadline); 29724: 29724: 29724: 29724: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 29724: 29724: 29724: virtual std::string TimeToString(uint64_t time) = 0; 29724: }; 29724: 29724: 29724: 29724: class SystemClockWrapper : public SystemClock { 29724: public: 29724: explicit SystemClockWrapper(const std::shared_ptr& t); 29724: 29724: uint64_t NowMicros() override { return target_->NowMicros(); } 29724: 29724: uint64_t NowNanos() override { return target_->NowNanos(); } 29724: 29724: uint64_t CPUMicros() override { return target_->CPUMicros(); } 29724: 29724: uint64_t CPUNanos() override { return target_->CPUNanos(); } 29724: 29724: void SleepForMicroseconds(int micros) override { 29724: return target_->SleepForMicroseconds(micros); 29724: } 29724: 29724: bool TimedWait(port::CondVar* cv, 29724: std::chrono::microseconds deadline) override { 29724: return target_->TimedWait(cv, deadline); 29724: } 29724: 29724: Status GetCurrentTime(int64_t* unix_time) override { 29724: return target_->GetCurrentTime(unix_time); 29724: } 29724: 29724: std::string TimeToString(uint64_t time) override { 29724: return target_->TimeToString(time); 29724: } 29724: 29724: Status PrepareOptions(const ConfigOptions& options) override; 29724: std::string SerializeOptions(const ConfigOptions& config_options, 29724: const std::string& header) const override; 29724: const Customizable* Inner() const override { return target_.get(); } 29724: 29724: protected: 29724: std::shared_ptr target_; 29724: }; 29724: 29724: } 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class PerfStepTimer { 29724: public: 29724: explicit PerfStepTimer( 29724: uint64_t* metric, SystemClock* clock = nullptr, bool use_cpu_time = false, 29724: PerfLevel enable_level = PerfLevel::kEnableTimeExceptForMutex, 29724: Statistics* statistics = nullptr, uint32_t ticker_type = 0) 29724: : perf_counter_enabled_(perf_level >= enable_level), 29724: use_cpu_time_(use_cpu_time), 29724: ticker_type_(ticker_type), 29724: clock_((perf_counter_enabled_ || statistics != nullptr) 29724: ? (clock ? clock : SystemClock::Default().get()) 29724: : nullptr), 29724: start_(0), 29724: metric_(metric), 29724: statistics_(statistics) {} 29724: 29724: ~PerfStepTimer() { Stop(); } 29724: 29724: void Start() { 29724: if (perf_counter_enabled_ || statistics_ != nullptr) { 29724: start_ = time_now(); 29724: } 29724: } 29724: 29724: void Measure() { 29724: if (start_) { 29724: uint64_t now = time_now(); 29724: *metric_ += now - start_; 29724: start_ = now; 29724: } 29724: } 29724: 29724: void Stop() { 29724: if (start_) { 29724: uint64_t duration = time_now() - start_; 29724: if (perf_counter_enabled_) { 29724: *metric_ += duration; 29724: } 29724: 29724: if (statistics_ != nullptr) { 29724: RecordTick(statistics_, ticker_type_, duration); 29724: } 29724: start_ = 0; 29724: } 29724: } 29724: 29724: private: 29724: uint64_t time_now() { 29724: if (!use_cpu_time_) { 29724: return clock_->NowNanos(); 29724: } else { 29724: return clock_->CPUNanos(); 29724: } 29724: } 29724: 29724: const bool perf_counter_enabled_; 29724: const bool use_cpu_time_; 29724: uint32_t ticker_type_; 29724: SystemClock* const clock_; 29724: uint64_t start_; 29724: uint64_t* metric_; 29724: Statistics* statistics_; 29724: }; 29724: 29724: } 29724: # 8 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29724: namespace rocksdb { 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29724: struct PerfContextByLevelBase { 29724: 29724: 29724: 29724: uint64_t bloom_filter_useful = 0; 29724: 29724: uint64_t bloom_filter_full_positive = 0; 29724: 29724: 29724: uint64_t bloom_filter_full_true_positive = 0; 29724: 29724: 29724: 29724: uint64_t user_key_return_count = 0; 29724: 29724: 29724: uint64_t get_from_table_nanos = 0; 29724: 29724: uint64_t block_cache_hit_count = 0; 29724: uint64_t block_cache_miss_count = 0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct PerfContextByLevel : public PerfContextByLevelBase { 29724: void Reset(); 29724: }; 29724: # 67 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29724: struct PerfContextBase { 29724: uint64_t user_key_comparison_count; 29724: uint64_t block_cache_hit_count; 29724: uint64_t block_read_count; 29724: uint64_t block_read_byte; 29724: uint64_t block_read_time; 29724: 29724: uint64_t block_read_cpu_time; 29724: uint64_t block_cache_index_hit_count; 29724: 29724: uint64_t block_cache_standalone_handle_count; 29724: 29724: 29724: uint64_t block_cache_real_handle_count; 29724: uint64_t index_block_read_count; 29724: uint64_t block_cache_filter_hit_count; 29724: uint64_t filter_block_read_count; 29724: uint64_t compression_dict_block_read_count; 29724: 29724: 29724: uint64_t block_cache_index_read_byte; 29724: uint64_t block_cache_filter_read_byte; 29724: uint64_t block_cache_compression_dict_read_byte; 29724: uint64_t block_cache_read_byte; 29724: 29724: uint64_t secondary_cache_hit_count; 29724: 29724: uint64_t compressed_sec_cache_insert_real_count; 29724: 29724: uint64_t compressed_sec_cache_insert_dummy_count; 29724: 29724: uint64_t compressed_sec_cache_uncompressed_bytes; 29724: 29724: uint64_t compressed_sec_cache_compressed_bytes; 29724: 29724: uint64_t block_checksum_time; 29724: uint64_t block_decompress_time; 29724: 29724: uint64_t get_read_bytes; 29724: uint64_t multiget_read_bytes; 29724: uint64_t iter_read_bytes; 29724: 29724: uint64_t blob_cache_hit_count; 29724: uint64_t blob_read_count; 29724: uint64_t blob_read_byte; 29724: uint64_t blob_read_time; 29724: uint64_t blob_checksum_time; 29724: uint64_t blob_decompress_time; 29724: # 133 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29724: uint64_t internal_key_skipped_count; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t internal_delete_skipped_count; 29724: 29724: 29724: 29724: uint64_t internal_recent_skipped_count; 29724: 29724: 29724: 29724: uint64_t internal_merge_count; 29724: 29724: 29724: 29724: uint64_t internal_merge_point_lookup_count; 29724: 29724: 29724: 29724: uint64_t internal_range_del_reseek_count; 29724: 29724: uint64_t get_snapshot_time; 29724: uint64_t get_from_memtable_time; 29724: uint64_t get_from_memtable_count; 29724: 29724: uint64_t get_post_process_time; 29724: uint64_t get_from_output_files_time; 29724: 29724: uint64_t seek_on_memtable_time; 29724: 29724: 29724: uint64_t seek_on_memtable_count; 29724: 29724: uint64_t next_on_memtable_count; 29724: 29724: uint64_t prev_on_memtable_count; 29724: 29724: uint64_t seek_child_seek_time; 29724: 29724: uint64_t seek_child_seek_count; 29724: uint64_t seek_min_heap_time; 29724: uint64_t seek_max_heap_time; 29724: 29724: uint64_t seek_internal_seek_time; 29724: 29724: uint64_t find_next_user_entry_time; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t write_wal_time; 29724: 29724: uint64_t write_memtable_time; 29724: 29724: uint64_t write_delay_time; 29724: 29724: 29724: uint64_t write_scheduling_flushes_compactions_time; 29724: 29724: uint64_t write_pre_and_post_process_time; 29724: 29724: 29724: uint64_t write_thread_wait_nanos; 29724: 29724: 29724: uint64_t db_mutex_lock_nanos; 29724: 29724: uint64_t db_condition_wait_nanos; 29724: 29724: uint64_t merge_operator_time_nanos; 29724: 29724: 29724: uint64_t read_index_block_nanos; 29724: 29724: uint64_t read_filter_block_nanos; 29724: 29724: uint64_t new_table_block_iter_nanos; 29724: 29724: uint64_t new_table_iterator_nanos; 29724: 29724: uint64_t block_seek_nanos; 29724: 29724: uint64_t find_table_nanos; 29724: 29724: uint64_t bloom_memtable_hit_count; 29724: 29724: uint64_t bloom_memtable_miss_count; 29724: 29724: uint64_t bloom_sst_hit_count; 29724: 29724: uint64_t bloom_sst_miss_count; 29724: 29724: 29724: uint64_t key_lock_wait_time; 29724: 29724: uint64_t key_lock_wait_count; 29724: 29724: 29724: 29724: uint64_t env_new_sequential_file_nanos; 29724: uint64_t env_new_random_access_file_nanos; 29724: uint64_t env_new_writable_file_nanos; 29724: uint64_t env_reuse_writable_file_nanos; 29724: uint64_t env_new_random_rw_file_nanos; 29724: uint64_t env_new_directory_nanos; 29724: uint64_t env_file_exists_nanos; 29724: uint64_t env_get_children_nanos; 29724: uint64_t env_get_children_file_attributes_nanos; 29724: uint64_t env_delete_file_nanos; 29724: uint64_t env_create_dir_nanos; 29724: uint64_t env_create_dir_if_missing_nanos; 29724: uint64_t env_delete_dir_nanos; 29724: uint64_t env_get_file_size_nanos; 29724: uint64_t env_get_file_modification_time_nanos; 29724: uint64_t env_rename_file_nanos; 29724: uint64_t env_link_file_nanos; 29724: uint64_t env_lock_file_nanos; 29724: uint64_t env_unlock_file_nanos; 29724: uint64_t env_new_logger_nanos; 29724: 29724: uint64_t get_cpu_nanos; 29724: uint64_t iter_next_cpu_nanos; 29724: uint64_t iter_prev_cpu_nanos; 29724: uint64_t iter_seek_cpu_nanos; 29724: 29724: 29724: 29724: 29724: uint64_t iter_next_count; 29724: uint64_t iter_prev_count; 29724: uint64_t iter_seek_count; 29724: 29724: 29724: uint64_t encrypt_data_nanos; 29724: 29724: uint64_t decrypt_data_nanos; 29724: 29724: uint64_t number_async_seek; 29724: }; 29724: 29724: struct PerfContext : public PerfContextBase { 29724: ~PerfContext(); 29724: 29724: PerfContext() { Reset(); } 29724: 29724: PerfContext(const PerfContext&); 29724: PerfContext& operator=(const PerfContext&); 29724: PerfContext(PerfContext&&) noexcept; 29724: 29724: void Reset(); 29724: 29724: std::string ToString(bool exclude_zero_counters = false) const; 29724: 29724: 29724: void EnablePerLevelPerfContext(); 29724: 29724: 29724: void DisablePerLevelPerfContext(); 29724: 29724: 29724: void ClearPerLevelPerfContext(); 29724: 29724: std::map* level_to_perf_context = nullptr; 29724: bool per_level_perf_context_enabled = false; 29724: 29724: void copyMetrics(const PerfContext* other) noexcept; 29724: }; 29724: # 317 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29724: PerfContext* get_perf_context(); 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/stop_watch.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class StopWatch { 29724: public: 29724: StopWatch(SystemClock* clock, Statistics* statistics, 29724: const uint32_t hist_type_1, 29724: const uint32_t hist_type_2 = Histograms::HISTOGRAM_ENUM_MAX, 29724: uint64_t* elapsed = nullptr, bool overwrite = true, 29724: bool delay_enabled = false) 29724: : clock_(clock), 29724: statistics_(statistics), 29724: hist_type_1_(statistics && statistics->HistEnabledForType(hist_type_1) 29724: ? hist_type_1 29724: : Histograms::HISTOGRAM_ENUM_MAX), 29724: hist_type_2_(statistics && statistics->HistEnabledForType(hist_type_2) 29724: ? hist_type_2 29724: : Histograms::HISTOGRAM_ENUM_MAX), 29724: elapsed_(elapsed), 29724: overwrite_(overwrite), 29724: stats_enabled_(statistics && 29724: statistics->get_stats_level() > 29724: StatsLevel::kExceptTimers && 29724: (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX || 29724: hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX)), 29724: delay_enabled_(delay_enabled), 29724: total_delay_(0), 29724: delay_start_time_(0), 29724: start_time_((stats_enabled_ || elapsed != nullptr) ? clock->NowMicros() 29724: : 0) {} 29724: 29724: ~StopWatch() { 29724: if (elapsed_) { 29724: if (overwrite_) { 29724: *elapsed_ = clock_->NowMicros() - start_time_; 29724: } else { 29724: *elapsed_ += clock_->NowMicros() - start_time_; 29724: } 29724: } 29724: if (elapsed_ && delay_enabled_) { 29724: *elapsed_ -= total_delay_; 29724: } 29724: if (stats_enabled_) { 29724: const auto time = (elapsed_ != nullptr) 29724: ? *elapsed_ 29724: : (clock_->NowMicros() - start_time_); 29724: if (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX) { 29724: statistics_->reportTimeToHistogram(hist_type_1_, time); 29724: } 29724: if (hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX) { 29724: statistics_->reportTimeToHistogram(hist_type_2_, time); 29724: } 29724: } 29724: } 29724: 29724: void DelayStart() { 29724: 29724: 29724: if (elapsed_ && delay_enabled_ && delay_start_time_ == 0) { 29724: delay_start_time_ = clock_->NowMicros(); 29724: } 29724: } 29724: 29724: void DelayStop() { 29724: if (elapsed_ && delay_enabled_ && delay_start_time_ != 0) { 29724: total_delay_ += clock_->NowMicros() - delay_start_time_; 29724: } 29724: 29724: 29724: delay_start_time_ = 0; 29724: } 29724: 29724: uint64_t GetDelay() const { return delay_enabled_ ? total_delay_ : 0; } 29724: 29724: uint64_t start_time() const { return start_time_; } 29724: 29724: private: 29724: SystemClock* clock_; 29724: Statistics* statistics_; 29724: const uint32_t hist_type_1_; 29724: const uint32_t hist_type_2_; 29724: uint64_t* elapsed_; 29724: bool overwrite_; 29724: bool stats_enabled_; 29724: bool delay_enabled_; 29724: uint64_t total_delay_; 29724: uint64_t delay_start_time_; 29724: const uint64_t start_time_; 29724: }; 29724: 29724: 29724: class StopWatchNano { 29724: public: 29724: explicit StopWatchNano(SystemClock* clock, bool auto_start = false) 29724: : clock_(clock), start_(0) { 29724: if (auto_start) { 29724: Start(); 29724: } 29724: } 29724: 29724: void Start() { start_ = clock_->NowNanos(); } 29724: 29724: uint64_t ElapsedNanos(bool reset = false) { 29724: auto now = clock_->NowNanos(); 29724: auto elapsed = now - start_; 29724: if (reset) { 29724: start_ = now; 29724: } 29724: return elapsed; 29724: } 29724: 29724: uint64_t ElapsedNanosSafe(bool reset = false) { 29724: return (clock_ != nullptr) ? ElapsedNanos(reset) : 0U; 29724: } 29724: 29724: bool IsStarted() { return start_ != 0; } 29724: 29724: private: 29724: SystemClock* clock_; 29724: uint64_t start_; 29724: }; 29724: 29724: } 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern thread_local PerfContext perf_context; 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: class UserComparatorWrapper { 29724: public: 29724: 29724: 29724: UserComparatorWrapper() : user_comparator_(nullptr) {} 29724: 29724: explicit UserComparatorWrapper(const Comparator* const user_cmp) 29724: : user_comparator_(user_cmp) {} 29724: 29724: ~UserComparatorWrapper() = default; 29724: 29724: const Comparator* user_comparator() const { return user_comparator_; } 29724: 29724: int Compare(const Slice& a, const Slice& b) const { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29724: return user_comparator_->Compare(a, b); 29724: } 29724: 29724: bool Equal(const Slice& a, const Slice& b) const { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29724: return user_comparator_->Equal(a, b); 29724: } 29724: 29724: int CompareTimestamp(const Slice& ts1, const Slice& ts2) const { 29724: return user_comparator_->CompareTimestamp(ts1, ts2); 29724: } 29724: 29724: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29724: return user_comparator_->CompareWithoutTimestamp(a, b); 29724: } 29724: 29724: int CompareWithoutTimestamp(const Slice& a, bool a_has_ts, const Slice& b, 29724: bool b_has_ts) const { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29724: return user_comparator_->CompareWithoutTimestamp(a, a_has_ts, b, b_has_ts); 29724: } 29724: 29724: bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 29724: return user_comparator_->EqualWithoutTimestamp(a, b); 29724: } 29724: 29724: private: 29724: const Comparator* user_comparator_; 29724: }; 29724: 29724: } 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class InternalKey; 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum ValueType : unsigned char { 29724: kTypeDeletion = 0x0, 29724: kTypeValue = 0x1, 29724: kTypeMerge = 0x2, 29724: kTypeLogData = 0x3, 29724: kTypeColumnFamilyDeletion = 0x4, 29724: kTypeColumnFamilyValue = 0x5, 29724: kTypeColumnFamilyMerge = 0x6, 29724: kTypeSingleDeletion = 0x7, 29724: kTypeColumnFamilySingleDeletion = 0x8, 29724: kTypeBeginPrepareXID = 0x9, 29724: kTypeEndPrepareXID = 0xA, 29724: kTypeCommitXID = 0xB, 29724: kTypeRollbackXID = 0xC, 29724: kTypeNoop = 0xD, 29724: kTypeColumnFamilyRangeDeletion = 0xE, 29724: kTypeRangeDeletion = 0xF, 29724: kTypeColumnFamilyBlobIndex = 0x10, 29724: kTypeBlobIndex = 0x11, 29724: 29724: 29724: 29724: 29724: kTypeBeginPersistedPrepareXID = 0x12, 29724: 29724: 29724: 29724: kTypeBeginUnprepareXID = 0x13, 29724: kTypeDeletionWithTimestamp = 0x14, 29724: kTypeCommitXIDAndTimestamp = 0x15, 29724: kTypeWideColumnEntity = 0x16, 29724: kTypeColumnFamilyWideColumnEntity = 0x17, 29724: kTypeValuePreferredSeqno = 0x18, 29724: kTypeColumnFamilyValuePreferredSeqno = 0x19, 29724: kTypeMaxValid, 29724: 29724: kMaxValue = 0x7F 29724: }; 29724: 29724: 29724: extern const ValueType kValueTypeForSeek; 29724: extern const ValueType kValueTypeForSeekForPrev; 29724: 29724: 29724: 29724: struct UserKeyRange { 29724: 29724: 29724: Slice start; 29724: Slice limit; 29724: 29724: UserKeyRange() = default; 29724: UserKeyRange(const Slice& s, const Slice& l) : start(s), limit(l) {} 29724: }; 29724: 29724: 29724: 29724: struct UserKeyRangePtr { 29724: 29724: 29724: 29724: std::optional start; 29724: 29724: std::optional limit; 29724: 29724: UserKeyRangePtr(const std::optional& s, const std::optional& l) 29724: : start(s), limit(l) {} 29724: }; 29724: 29724: 29724: 29724: inline bool IsValueType(ValueType t) { 29724: return t <= kTypeMerge || kTypeSingleDeletion == t || kTypeBlobIndex == t || 29724: kTypeDeletionWithTimestamp == t || kTypeWideColumnEntity == t || 29724: kTypeValuePreferredSeqno == t; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: inline bool IsExtendedValueType(ValueType t) { 29724: return IsValueType(t) || t == kTypeRangeDeletion || t == kTypeMaxValid; 29724: } 29724: 29724: 29724: 29724: static const SequenceNumber kMaxSequenceNumber = ((0x1ull << 56) - 1); 29724: 29724: static const SequenceNumber kDisableGlobalSequenceNumber = 29724: std::numeric_limits::max(); 29724: 29724: constexpr uint64_t kNumInternalBytes = 8; 29724: 29724: 29724: extern const std::string kDisableUserTimestamp; 29724: 29724: 29724: 29724: struct ParsedInternalKey { 29724: Slice user_key; 29724: SequenceNumber sequence; 29724: ValueType type; 29724: 29724: ParsedInternalKey() 29724: : sequence(kMaxSequenceNumber), 29724: type(kTypeDeletion) 29724: {} 29724: 29724: ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) 29724: : user_key(u), sequence(seq), type(t) {} 29724: std::string DebugString(bool log_err_key, bool hex, 29724: const Comparator* ucmp = nullptr) const; 29724: 29724: void clear() { 29724: user_key.clear(); 29724: sequence = 0; 29724: type = kTypeDeletion; 29724: } 29724: 29724: void SetTimestamp(const Slice& ts) { 29724: 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts.size() <= user_key.size() 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts.size() <= user_key.size()" 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: const char* addr = user_key.data() + user_key.size() - ts.size(); 29724: memcpy(const_cast(addr), ts.data(), ts.size()); 29724: } 29724: 29724: Slice GetTimestamp(size_t ts_sz) { 29724: 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts_sz <= user_key.size() 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts_sz <= user_key.size()" 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: const char* addr = user_key.data() + user_key.size() - ts_sz; 29724: return Slice(const_cast(addr), ts_sz); 29724: } 29724: }; 29724: 29724: 29724: inline size_t InternalKeyEncodingLength(const ParsedInternalKey& key) { 29724: return key.user_key.size() + kNumInternalBytes; 29724: } 29724: 29724: 29724: inline uint64_t PackSequenceAndType(uint64_t seq, ValueType t) { 29724: 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: seq <= kMaxSequenceNumber 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "seq <= kMaxSequenceNumber" 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: 29724: 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: IsExtendedValueType(t) || t == kTypeMaxValid 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "IsExtendedValueType(t) || t == kTypeMaxValid" 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return (seq << 8) | t; 29724: } 29724: 29724: 29724: 29724: inline void UnPackSequenceAndType(uint64_t packed, uint64_t* seq, 29724: ValueType* t) { 29724: *seq = packed >> 8; 29724: *t = static_cast(packed & 0xff); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: const uint64_t kRangeTombstoneSentinel = 29724: PackSequenceAndType(kMaxSequenceNumber, kTypeRangeDeletion); 29724: 29724: EntryType GetEntryType(ValueType value_type); 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendInternalKey(std::string* result, const ParsedInternalKey& key); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendInternalKeyWithDifferentTimestamp(std::string* result, 29724: const ParsedInternalKey& key, 29724: const Slice& ts); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendUserKeyWithDifferentTimestamp(std::string* result, const Slice& key, 29724: const Slice& ts); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendInternalKeyFooter(std::string* result, SequenceNumber s, 29724: ValueType t); 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendKeyWithMinTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendKeyWithMaxTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendUserKeyWithMinTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendUserKeyWithMaxTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: # 281 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: void PadInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: void PadInternalKeyWithMaxTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: # 301 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: void StripTimestampFromInternalKey(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: # 311 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: void ReplaceInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: 29724: 29724: 29724: 29724: 29724: Status ParseInternalKey(const Slice& internal_key, ParsedInternalKey* result, 29724: bool log_err_key); 29724: 29724: 29724: 29724: 29724: 29724: inline Slice ExtractUserKey(const Slice& internal_key) { 29724: 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: internal_key.size() >= kNumInternalBytes 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "internal_key.size() >= kNumInternalBytes" 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(internal_key.data(), internal_key.size() - kNumInternalBytes); 29724: } 29724: 29724: 29724: 29724: inline Slice ExtractUserKeyAndStripTimestamp(const Slice& internal_key, 29724: size_t ts_sz) { 29724: 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: internal_key.size() >= kNumInternalBytes + ts_sz 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "internal_key.size() >= kNumInternalBytes + ts_sz" 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(internal_key.data(), 29724: internal_key.size() - (kNumInternalBytes + ts_sz)); 29724: } 29724: 29724: 29724: 29724: inline Slice StripTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 29724: 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: user_key.size() >= ts_sz 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "user_key.size() >= ts_sz" 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(user_key.data(), user_key.size() - ts_sz); 29724: } 29724: 29724: 29724: 29724: inline Slice ExtractTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 29724: 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: user_key.size() >= ts_sz 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "user_key.size() >= ts_sz" 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(user_key.data() + user_key.size() - ts_sz, ts_sz); 29724: } 29724: 29724: 29724: 29724: inline Slice ExtractTimestampFromKey(const Slice& internal_key, size_t ts_sz) { 29724: const size_t key_size = internal_key.size(); 29724: 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_size >= kNumInternalBytes + ts_sz 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_size >= kNumInternalBytes + ts_sz" 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(internal_key.data() + key_size - ts_sz - kNumInternalBytes, 29724: ts_sz); 29724: } 29724: 29724: 29724: 29724: inline uint64_t ExtractInternalKeyFooter(const Slice& internal_key) { 29724: 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: internal_key.size() >= kNumInternalBytes 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "internal_key.size() >= kNumInternalBytes" 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: const size_t n = internal_key.size(); 29724: return DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29724: } 29724: 29724: 29724: 29724: inline ValueType ExtractValueType(const Slice& internal_key) { 29724: uint64_t num = ExtractInternalKeyFooter(internal_key); 29724: unsigned char c = num & 0xff; 29724: return static_cast(c); 29724: } 29724: 29724: 29724: 29724: class InternalKeyComparator 29724: 29724: 29724: 29724: : public CompareInterface { 29724: private: 29724: UserComparatorWrapper user_comparator_; 29724: 29724: public: 29724: 29724: 29724: InternalKeyComparator() = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit InternalKeyComparator(const Comparator* c) : user_comparator_(c) {} 29724: virtual ~InternalKeyComparator() {} 29724: 29724: int Compare(const Slice& a, const Slice& b) const override; 29724: 29724: bool Equal(const Slice& a, const Slice& b) const { 29724: 29724: 29724: return Compare(a, b) == 0; 29724: } 29724: 29724: 29724: int CompareKeySeq(const Slice& a, const Slice& b) const; 29724: int CompareKeySeq(const ParsedInternalKey& a, const Slice& b) const; 29724: 29724: const Comparator* user_comparator() const { 29724: return user_comparator_.user_comparator(); 29724: } 29724: 29724: int Compare(const InternalKey& a, const InternalKey& b) const; 29724: int Compare(const ParsedInternalKey& a, const ParsedInternalKey& b) const; 29724: int Compare(const Slice& a, const ParsedInternalKey& b) const; 29724: int Compare(const ParsedInternalKey& a, const Slice& b) const; 29724: 29724: 29724: 29724: 29724: int Compare(const Slice& a, SequenceNumber a_global_seqno, const Slice& b, 29724: SequenceNumber b_global_seqno) const; 29724: }; 29724: 29724: 29724: class InternalKey { 29724: private: 29724: std::string rep_; 29724: 29724: public: 29724: InternalKey() {} 29724: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t) { 29724: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, s, t)); 29724: } 29724: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t, Slice ts) { 29724: AppendInternalKeyWithDifferentTimestamp( 29724: &rep_, ParsedInternalKey(_user_key, s, t), ts); 29724: } 29724: 29724: 29724: 29724: void SetMaxPossibleForUserKey(const Slice& _user_key) { 29724: AppendInternalKey( 29724: &rep_, ParsedInternalKey(_user_key, 0, static_cast(0))); 29724: } 29724: 29724: 29724: 29724: void SetMinPossibleForUserKey(const Slice& _user_key) { 29724: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, kMaxSequenceNumber, 29724: kValueTypeForSeek)); 29724: } 29724: 29724: bool Valid() const { 29724: ParsedInternalKey parsed; 29724: return (ParseInternalKey(Slice(rep_), &parsed, false ) 29724: .ok()); 29724: } 29724: 29724: void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } 29724: Slice Encode() const { 29724: 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: !rep_.empty() 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "!rep_.empty()" 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return rep_; 29724: } 29724: 29724: Slice user_key() const { return ExtractUserKey(rep_); } 29724: size_t size() const { return rep_.size(); } 29724: 29724: void Set(const Slice& _user_key, SequenceNumber s, ValueType t) { 29724: SetFrom(ParsedInternalKey(_user_key, s, t)); 29724: } 29724: 29724: void Set(const Slice& _user_key_with_ts, SequenceNumber s, ValueType t, 29724: const Slice& ts) { 29724: ParsedInternalKey pik(_user_key_with_ts, s, t); 29724: 29724: 29724: SetFrom(pik, ts); 29724: } 29724: 29724: void SetFrom(const ParsedInternalKey& p) { 29724: rep_.clear(); 29724: AppendInternalKey(&rep_, p); 29724: } 29724: 29724: void SetFrom(const ParsedInternalKey& p, const Slice& ts) { 29724: rep_.clear(); 29724: AppendInternalKeyWithDifferentTimestamp(&rep_, p, ts); 29724: } 29724: 29724: void Clear() { rep_.clear(); } 29724: 29724: 29724: 29724: std::string* rep() { return &rep_; } 29724: 29724: 29724: 29724: void ConvertFromUserKey(SequenceNumber s, ValueType t) { 29724: AppendInternalKeyFooter(&rep_, s, t); 29724: } 29724: 29724: std::string DebugString(bool hex, const Comparator* ucmp = nullptr) const; 29724: }; 29724: 29724: inline int InternalKeyComparator::Compare(const InternalKey& a, 29724: const InternalKey& b) const { 29724: return Compare(a.Encode(), b.Encode()); 29724: } 29724: 29724: inline Status ParseInternalKey(const Slice& internal_key, 29724: ParsedInternalKey* result, bool log_err_key) { 29724: const size_t n = internal_key.size(); 29724: 29724: if (n < kNumInternalBytes) { 29724: return Status::Corruption("Corrupted Key: Internal Key too small. Size=" + 29724: std::to_string(n) + ". "); 29724: } 29724: 29724: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29724: unsigned char c = num & 0xff; 29724: result->sequence = num >> 8; 29724: result->type = static_cast(c); 29724: 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: result->type <= ValueType::kMaxValue 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "result->type <= ValueType::kMaxValue" 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: result->user_key = Slice(internal_key.data(), n - kNumInternalBytes); 29724: 29724: if (IsExtendedValueType(result->type)) { 29724: return Status::OK(); 29724: } else { 29724: return Status::Corruption("Corrupted Key", 29724: result->DebugString(log_err_key, true)); 29724: } 29724: } 29724: 29724: 29724: 29724: inline void UpdateInternalKey(std::string* ikey, uint64_t seq, ValueType t) { 29724: size_t ikey_sz = ikey->size(); 29724: 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ikey_sz >= kNumInternalBytes 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ikey_sz >= kNumInternalBytes" 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: uint64_t newval = (seq << 8) | t; 29724: 29724: 29724: 29724: EncodeFixed64(&(*ikey)[ikey_sz - kNumInternalBytes], newval); 29724: } 29724: 29724: 29724: inline uint64_t GetInternalKeySeqno(const Slice& internal_key) { 29724: const size_t n = internal_key.size(); 29724: 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: n >= kNumInternalBytes 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "n >= kNumInternalBytes" 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29724: return num >> 8; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class IterKey { 29724: static constexpr size_t kInlineBufferSize = 39; 29724: 29724: 29724: static constexpr char kTsMin[] = "\x00\x00\x00\x00\x00\x00\x00\x00"; 29724: 29724: public: 29724: IterKey() 29724: : buf_(space_), 29724: key_(buf_), 29724: key_size_(0), 29724: buf_size_(kInlineBufferSize), 29724: is_user_key_(true), 29724: secondary_buf_(space_for_secondary_buf_), 29724: secondary_buf_size_(kInlineBufferSize) {} 29724: 29724: IterKey(const IterKey&) = delete; 29724: void operator=(const IterKey&) = delete; 29724: 29724: ~IterKey() { 29724: ResetBuffer(); 29724: ResetSecondaryBuffer(); 29724: } 29724: 29724: 29724: void SetIsUserKey(bool is_user_key) { is_user_key_ = is_user_key; } 29724: 29724: 29724: 29724: 29724: Slice GetKey() const { return Slice(key_, key_size_); } 29724: 29724: Slice GetInternalKey() const { 29724: 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: !IsUserKey() 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "!IsUserKey()" 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(key_, key_size_); 29724: } 29724: 29724: 29724: 29724: Slice GetUserKey() const { 29724: if (IsUserKey()) { 29724: return Slice(key_, key_size_); 29724: } else { 29724: 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_size_ >= kNumInternalBytes 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_size_ >= kNumInternalBytes" 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(key_, key_size_ - kNumInternalBytes); 29724: } 29724: } 29724: 29724: size_t Size() const { return key_size_; } 29724: 29724: void Clear() { key_size_ = 0; } 29724: 29724: 29724: 29724: 29724: 29724: void TrimAppend(const size_t shared_len, const char* non_shared_data, 29724: const size_t non_shared_len) { 29724: 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: shared_len <= key_size_ 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "shared_len <= key_size_" 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: size_t total_size = shared_len + non_shared_len; 29724: 29724: if (IsKeyPinned() ) { 29724: 29724: EnlargeBufferIfNeeded(total_size); 29724: memcpy(buf_, key_, shared_len); 29724: } else if (total_size > buf_size_) { 29724: 29724: char* p = new char[total_size]; 29724: memcpy(p, key_, shared_len); 29724: 29724: if (buf_ != space_) { 29724: delete[] buf_; 29724: } 29724: 29724: buf_ = p; 29724: buf_size_ = total_size; 29724: } 29724: 29724: memcpy(buf_ + shared_len, non_shared_data, non_shared_len); 29724: key_ = buf_; 29724: key_size_ = total_size; 29724: } 29724: 29724: 29724: 29724: 29724: void TrimAppendWithTimestamp(const size_t shared_len, 29724: const char* non_shared_data, 29724: const size_t non_shared_len, 29724: const size_t ts_sz) { 29724: 29724: 29724: 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts_sz == sizeof(uint64_t) 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts_sz == sizeof(uint64_t)" 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: size_t next_key_slice_index = 0; 29724: if (IsUserKey()) { 29724: key_slices_[next_key_slice_index++] = Slice(key_, shared_len); 29724: key_slices_[next_key_slice_index++] = 29724: Slice(non_shared_data, non_shared_len); 29724: key_slices_[next_key_slice_index++] = Slice(kTsMin, ts_sz); 29724: } else { 29724: 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: shared_len + non_shared_len >= kNumInternalBytes 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "shared_len + non_shared_len >= kNumInternalBytes" 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: const size_t user_key_len = key_size_ - kNumInternalBytes; 29724: const size_t sharable_user_key_len = user_key_len - ts_sz; 29724: const size_t shared_user_key_len = 29724: std::min(shared_len, sharable_user_key_len); 29724: const size_t shared_internal_bytes_len = shared_len - shared_user_key_len; 29724: 29724: 29724: 29724: bool ts_added = false; 29724: 29724: MaybeAddKeyPartsWithTimestamp( 29724: key_, shared_user_key_len, 29724: shared_internal_bytes_len + non_shared_len < kNumInternalBytes, 29724: shared_len + non_shared_len - kNumInternalBytes, ts_sz, 29724: &next_key_slice_index, &ts_added); 29724: MaybeAddKeyPartsWithTimestamp( 29724: key_ + user_key_len, shared_internal_bytes_len, 29724: non_shared_len < kNumInternalBytes, 29724: shared_internal_bytes_len + non_shared_len - kNumInternalBytes, ts_sz, 29724: &next_key_slice_index, &ts_added); 29724: MaybeAddKeyPartsWithTimestamp(non_shared_data, non_shared_len, 29724: non_shared_len >= kNumInternalBytes, 29724: non_shared_len - kNumInternalBytes, ts_sz, 29724: &next_key_slice_index, &ts_added); 29724: 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts_added 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts_added" 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: } 29724: SetKeyImpl(next_key_slice_index, 29724: shared_len + non_shared_len + ts_sz); 29724: } 29724: 29724: Slice SetKeyWithPaddedMinTimestamp(const Slice& key, size_t ts_sz) { 29724: 29724: 29724: 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts_sz == sizeof(uint64_t) 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts_sz == sizeof(uint64_t)" 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: size_t num_key_slices = 0; 29724: if (is_user_key_) { 29724: key_slices_[0] = key; 29724: key_slices_[1] = Slice(kTsMin, ts_sz); 29724: num_key_slices = 2; 29724: } else { 29724: 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key.size() >= kNumInternalBytes 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key.size() >= kNumInternalBytes" 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: size_t user_key_size = key.size() - kNumInternalBytes; 29724: key_slices_[0] = Slice(key.data(), user_key_size); 29724: key_slices_[1] = Slice(kTsMin, ts_sz); 29724: key_slices_[2] = Slice(key.data() + user_key_size, kNumInternalBytes); 29724: num_key_slices = 3; 29724: } 29724: return SetKeyImpl(num_key_slices, key.size() + ts_sz); 29724: } 29724: 29724: Slice SetKey(const Slice& key, bool copy = true) { 29724: 29724: return SetKeyImpl(key, copy); 29724: } 29724: 29724: 29724: 29724: 29724: Slice SetUserKey(const Slice& key, bool copy = true) { 29724: is_user_key_ = true; 29724: return SetKeyImpl(key, copy); 29724: } 29724: 29724: Slice SetInternalKey(const Slice& key, bool copy = true) { 29724: is_user_key_ = false; 29724: return SetKeyImpl(key, copy); 29724: } 29724: 29724: 29724: 29724: Slice SetInternalKey(const Slice& key, ParsedInternalKey* ikey) { 29724: size_t key_n = key.size(); 29724: 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_n >= kNumInternalBytes 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_n >= kNumInternalBytes" 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: SetInternalKey(key); 29724: ikey->user_key = Slice(key_, key_n - kNumInternalBytes); 29724: return Slice(key_, key_n); 29724: } 29724: 29724: 29724: 29724: void UpdateInternalKey(uint64_t seq, ValueType t, const Slice* ts = nullptr) { 29724: 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: !IsKeyPinned() 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "!IsKeyPinned()" 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_size_ >= kNumInternalBytes 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_size_ >= kNumInternalBytes" 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: if (ts) { 29724: 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_size_ >= kNumInternalBytes + ts->size() 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_size_ >= kNumInternalBytes + ts->size()" 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: memcpy(&buf_[key_size_ - kNumInternalBytes - ts->size()], ts->data(), 29724: ts->size()); 29724: } 29724: uint64_t newval = (seq << 8) | t; 29724: if (key_ == buf_) { 29724: EncodeFixed64(&buf_[key_size_ - kNumInternalBytes], newval); 29724: } else { 29724: 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_ == secondary_buf_ 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_ == secondary_buf_" 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: EncodeFixed64(&secondary_buf_[key_size_ - kNumInternalBytes], newval); 29724: } 29724: } 29724: 29724: bool IsKeyPinned() const { return key_ != buf_ && key_ != secondary_buf_; } 29724: 29724: 29724: 29724: 29724: void SetInternalKey(const Slice& key_prefix, const Slice& user_key, 29724: SequenceNumber s, 29724: ValueType value_type = kValueTypeForSeek, 29724: const Slice* ts = nullptr) { 29724: size_t psize = key_prefix.size(); 29724: size_t usize = user_key.size(); 29724: size_t ts_sz = (ts != nullptr ? ts->size() : 0); 29724: EnlargeBufferIfNeeded(psize + usize + sizeof(uint64_t) + ts_sz); 29724: if (psize > 0) { 29724: memcpy(buf_, key_prefix.data(), psize); 29724: } 29724: memcpy(buf_ + psize, user_key.data(), usize); 29724: if (ts) { 29724: memcpy(buf_ + psize + usize, ts->data(), ts_sz); 29724: } 29724: EncodeFixed64(buf_ + usize + psize + ts_sz, 29724: PackSequenceAndType(s, value_type)); 29724: 29724: key_ = buf_; 29724: key_size_ = psize + usize + sizeof(uint64_t) + ts_sz; 29724: is_user_key_ = false; 29724: } 29724: 29724: void SetInternalKey(const Slice& user_key, SequenceNumber s, 29724: ValueType value_type = kValueTypeForSeek, 29724: const Slice* ts = nullptr) { 29724: SetInternalKey(Slice(), user_key, s, value_type, ts); 29724: } 29724: 29724: void Reserve(size_t size) { 29724: EnlargeBufferIfNeeded(size); 29724: key_size_ = size; 29724: } 29724: 29724: void SetInternalKey(const ParsedInternalKey& parsed_key) { 29724: SetInternalKey(Slice(), parsed_key); 29724: } 29724: 29724: void SetInternalKey(const Slice& key_prefix, 29724: const ParsedInternalKey& parsed_key_suffix) { 29724: SetInternalKey(key_prefix, parsed_key_suffix.user_key, 29724: parsed_key_suffix.sequence, parsed_key_suffix.type); 29724: } 29724: 29724: void EncodeLengthPrefixedKey(const Slice& key) { 29724: auto size = key.size(); 29724: EnlargeBufferIfNeeded(size + static_cast(VarintLength(size))); 29724: char* ptr = EncodeVarint32(buf_, static_cast(size)); 29724: memcpy(ptr, key.data(), size); 29724: key_ = buf_; 29724: is_user_key_ = true; 29724: } 29724: 29724: bool IsUserKey() const { return is_user_key_; } 29724: 29724: private: 29724: char* buf_; 29724: const char* key_; 29724: size_t key_size_; 29724: size_t buf_size_; 29724: char space_[kInlineBufferSize]; 29724: bool is_user_key_; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: char space_for_secondary_buf_[kInlineBufferSize]; 29724: 29724: char* secondary_buf_; 29724: size_t secondary_buf_size_; 29724: 29724: 29724: 29724: std::array key_slices_; 29724: 29724: 29724: Slice SetKeyImpl(const Slice& key, bool copy) { 29724: size_t size = key.size(); 29724: if (copy) { 29724: 29724: EnlargeBufferIfNeeded(size); 29724: memcpy(buf_, key.data(), size); 29724: key_ = buf_; 29724: } else { 29724: 29724: key_ = key.data(); 29724: } 29724: key_size_ = size; 29724: return Slice(key_, key_size_); 29724: } 29724: 29724: Slice SetKeyImpl(size_t num_key_slices, size_t total_bytes) { 29724: 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: num_key_slices <= 5 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "num_key_slices <= 5" 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: char* buf_start = nullptr; 29724: if (key_ == buf_) { 29724: 29724: 29724: EnlargeSecondaryBufferIfNeeded(total_bytes); 29724: buf_start = secondary_buf_; 29724: key_ = secondary_buf_; 29724: } else { 29724: 29724: EnlargeBufferIfNeeded(total_bytes); 29724: buf_start = buf_; 29724: key_ = buf_; 29724: } 29724: 29724: size_t actual_total_bytes = 0; 29724: 29724: for (size_t i = 0; i < num_key_slices; i++) { 29724: size_t key_slice_size = key_slices_[i].size(); 29724: memcpy(buf_start, key_slices_[i].data(), key_slice_size); 29724: buf_start += key_slice_size; 29724: 29724: actual_total_bytes += key_slice_size; 29724: 29724: } 29724: 29724: 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: actual_total_bytes == total_bytes 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "actual_total_bytes == total_bytes" 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: 29724: key_size_ = total_bytes; 29724: return Slice(key_, key_size_); 29724: } 29724: 29724: void ResetBuffer() { 29724: if (key_ == buf_) { 29724: key_size_ = 0; 29724: } 29724: if (buf_ != space_) { 29724: delete[] buf_; 29724: buf_ = space_; 29724: } 29724: buf_size_ = kInlineBufferSize; 29724: } 29724: 29724: void ResetSecondaryBuffer() { 29724: if (key_ == secondary_buf_) { 29724: key_size_ = 0; 29724: } 29724: if (secondary_buf_ != space_for_secondary_buf_) { 29724: delete[] secondary_buf_; 29724: secondary_buf_ = space_for_secondary_buf_; 29724: } 29724: secondary_buf_size_ = kInlineBufferSize; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void EnlargeBufferIfNeeded(size_t key_size) { 29724: 29724: 29724: if (key_size > buf_size_) { 29724: EnlargeBuffer(key_size); 29724: } 29724: } 29724: 29724: void EnlargeSecondaryBufferIfNeeded(size_t key_size); 29724: 29724: void EnlargeBuffer(size_t key_size); 29724: 29724: void MaybeAddKeyPartsWithTimestamp(const char* slice_data, 29724: const size_t slice_sz, bool add_timestamp, 29724: const size_t left_sz, const size_t ts_sz, 29724: size_t* next_key_slice_idx, 29724: bool* ts_added) { 29724: 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: next_key_slice_idx 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "next_key_slice_idx" 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: if (add_timestamp && !*ts_added) { 29724: 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: slice_sz >= left_sz 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "slice_sz >= left_sz" 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, left_sz); 29724: key_slices_[(*next_key_slice_idx)++] = Slice(kTsMin, ts_sz); 29724: key_slices_[(*next_key_slice_idx)++] = 29724: Slice(slice_data + left_sz, slice_sz - left_sz); 29724: *ts_added = true; 29724: } else { 29724: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, slice_sz); 29724: } 29724: 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: *next_key_slice_idx <= 5 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "*next_key_slice_idx <= 5" 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: } 29724: }; 29724: 29724: 29724: 29724: class InternalKeySliceTransform : public SliceTransform { 29724: public: 29724: explicit InternalKeySliceTransform(const SliceTransform* transform) 29724: : transform_(transform) {} 29724: 29724: const char* Name() const override { return transform_->Name(); } 29724: 29724: Slice Transform(const Slice& src) const override { 29724: auto user_key = ExtractUserKey(src); 29724: return transform_->Transform(user_key); 29724: } 29724: 29724: bool InDomain(const Slice& src) const override { 29724: auto user_key = ExtractUserKey(src); 29724: return transform_->InDomain(user_key); 29724: } 29724: 29724: bool InRange(const Slice& dst) const override { 29724: auto user_key = ExtractUserKey(dst); 29724: return transform_->InRange(user_key); 29724: } 29724: 29724: const SliceTransform* user_prefix_extractor() const { return transform_; } 29724: 29724: private: 29724: 29724: 29724: const SliceTransform* const transform_; 29724: }; 29724: 29724: 29724: 29724: 29724: bool ReadKeyFromWriteBatchEntry(Slice* input, Slice* key, bool cf_record); 29724: # 1004 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: Status ReadRecordFromWriteBatch(Slice* input, char* tag, 29724: uint32_t* column_family, Slice* key, 29724: Slice* value, Slice* blob, Slice* xid, 29724: uint64_t* write_unix_time); 29724: 29724: 29724: 29724: 29724: 29724: struct RangeTombstone { 29724: Slice start_key_; 29724: Slice end_key_; 29724: SequenceNumber seq_; 29724: 29724: 29724: Slice ts_; 29724: std::string pinned_start_key_; 29724: std::string pinned_end_key_; 29724: 29724: RangeTombstone() = default; 29724: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn) 29724: : start_key_(sk), end_key_(ek), seq_(sn) {} 29724: 29724: 29724: 29724: 29724: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn, Slice ts) : seq_(sn) { 29724: const size_t ts_sz = ts.size(); 29724: 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts_sz > 0 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts_sz > 0" 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: pinned_start_key_.reserve(sk.size()); 29724: pinned_end_key_.reserve(ek.size()); 29724: AppendUserKeyWithDifferentTimestamp(&pinned_start_key_, sk, ts); 29724: AppendUserKeyWithDifferentTimestamp(&pinned_end_key_, ek, ts); 29724: start_key_ = pinned_start_key_; 29724: end_key_ = pinned_end_key_; 29724: ts_ = Slice(pinned_start_key_.data() + sk.size() - ts_sz, ts_sz); 29724: } 29724: 29724: RangeTombstone(ParsedInternalKey parsed_key, Slice value) { 29724: start_key_ = parsed_key.user_key; 29724: seq_ = parsed_key.sequence; 29724: end_key_ = value; 29724: } 29724: 29724: 29724: std::pair Serialize() const { 29724: auto key = InternalKey(start_key_, seq_, kTypeRangeDeletion); 29724: return std::make_pair(std::move(key), end_key_); 29724: } 29724: 29724: 29724: InternalKey SerializeKey() const { 29724: return InternalKey(start_key_, seq_, kTypeRangeDeletion); 29724: } 29724: # 1066 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: InternalKey SerializeEndKey() const { 29724: if (!ts_.empty()) { 29724: static constexpr char kTsMax[] = "\xff\xff\xff\xff\xff\xff\xff\xff\xff"; 29724: if (ts_.size() <= strlen(kTsMax)) { 29724: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 29724: Slice(kTsMax, ts_.size())); 29724: } else { 29724: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 29724: std::string(ts_.size(), '\xff')); 29724: } 29724: } 29724: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion); 29724: } 29724: }; 29724: 29724: inline int InternalKeyComparator::Compare(const Slice& akey, 29724: const Slice& bkey) const { 29724: 29724: 29724: 29724: 29724: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 29724: if (r == 0) { 29724: const uint64_t anum = 29724: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes); 29724: const uint64_t bnum = 29724: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes); 29724: if (anum > bnum) { 29724: r = -1; 29724: } else if (anum < bnum) { 29724: r = +1; 29724: } 29724: } 29724: return r; 29724: } 29724: 29724: inline int InternalKeyComparator::CompareKeySeq(const Slice& akey, 29724: const Slice& bkey) const { 29724: 29724: 29724: 29724: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 29724: if (r == 0) { 29724: 29724: const uint64_t anum = 29724: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes) >> 8; 29724: const uint64_t bnum = 29724: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes) >> 8; 29724: if (anum > bnum) { 29724: r = -1; 29724: } else if (anum < bnum) { 29724: r = +1; 29724: } 29724: } 29724: return r; 29724: } 29724: 29724: inline int InternalKeyComparator::CompareKeySeq(const ParsedInternalKey& a, 29724: const Slice& b) const { 29724: 29724: 29724: 29724: int r = user_comparator_.Compare(a.user_key, ExtractUserKey(b)); 29724: if (r == 0) { 29724: 29724: const uint64_t anum = a.sequence; 29724: const uint64_t bnum = 29724: DecodeFixed64(b.data() + b.size() - kNumInternalBytes) >> 8; 29724: if (anum > bnum) { 29724: r = -1; 29724: } else if (anum < bnum) { 29724: r = +1; 29724: } 29724: } 29724: return r; 29724: } 29724: 29724: inline int InternalKeyComparator::Compare(const Slice& a, 29724: SequenceNumber a_global_seqno, 29724: const Slice& b, 29724: SequenceNumber b_global_seqno) const { 29724: int r = user_comparator_.Compare(ExtractUserKey(a), ExtractUserKey(b)); 29724: if (r == 0) { 29724: uint64_t a_footer, b_footer; 29724: if (a_global_seqno == kDisableGlobalSequenceNumber) { 29724: a_footer = ExtractInternalKeyFooter(a); 29724: } else { 29724: a_footer = PackSequenceAndType(a_global_seqno, ExtractValueType(a)); 29724: } 29724: if (b_global_seqno == kDisableGlobalSequenceNumber) { 29724: b_footer = ExtractInternalKeyFooter(b); 29724: } else { 29724: b_footer = PackSequenceAndType(b_global_seqno, ExtractValueType(b)); 29724: } 29724: if (a_footer > b_footer) { 29724: r = -1; 29724: } else if (a_footer < b_footer) { 29724: r = +1; 29724: } 29724: } 29724: return r; 29724: } 29724: 29724: 29724: struct ParsedInternalKeyComparator { 29724: explicit ParsedInternalKeyComparator(const InternalKeyComparator* c) 29724: : cmp(c) {} 29724: 29724: bool operator()(const ParsedInternalKey& a, 29724: const ParsedInternalKey& b) const { 29724: return cmp->Compare(a, b) < 0; 29724: } 29724: 29724: const InternalKeyComparator* cmp; 29724: }; 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 1 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: template 29724: class ProtectionInfo; 29724: template 29724: class ProtectionInfoKVO; 29724: template 29724: class ProtectionInfoKVOC; 29724: template 29724: class ProtectionInfoKVOS; 29724: template 29724: class ProtectionInfoKV; 29724: 29724: 29724: using ProtectionInfo64 = ProtectionInfo; 29724: using ProtectionInfoKVO64 = ProtectionInfoKVO; 29724: using ProtectionInfoKVOC64 = ProtectionInfoKVOC; 29724: using ProtectionInfoKVOS64 = ProtectionInfoKVOS; 29724: 29724: template 29724: class ProtectionInfo { 29724: public: 29724: ProtectionInfo() = default; 29724: 29724: Status GetStatus() const; 29724: ProtectionInfoKVO ProtectKVO(const Slice& key, const Slice& value, 29724: ValueType op_type) const; 29724: ProtectionInfoKVO ProtectKVO(const SliceParts& key, 29724: const SliceParts& value, 29724: ValueType op_type) const; 29724: ProtectionInfoKV ProtectKV(const Slice& key, const Slice& value) const; 29724: 29724: private: 29724: friend class ProtectionInfoKVO; 29724: friend class ProtectionInfoKVOS; 29724: friend class ProtectionInfoKVOC; 29724: friend class ProtectionInfoKV; 29724: # 84 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: static const uint64_t kSeedK = 0; 29724: static const uint64_t kSeedV = 0xD28AAD72F49BD50B; 29724: static const uint64_t kSeedO = 0xA5155AE5E937AA16; 29724: static const uint64_t kSeedS = 0x77A00858DDD37F21; 29724: static const uint64_t kSeedC = 0x4A2AB5CBD26F542C; 29724: 29724: ProtectionInfo(T val) : val_(val) { 29724: static_assert(sizeof(ProtectionInfo) == sizeof(T), ""); 29724: } 29724: 29724: T GetVal() const { return val_; } 29724: void SetVal(T val) { val_ = val; } 29724: 29724: void Encode(uint8_t len, char* dst) const { 29724: 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: (static_cast ( 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: sizeof(val_) >= len 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: "sizeof(val_) >= len" 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: ; 29724: switch (len) { 29724: case 1: 29724: dst[0] = static_cast(val_); 29724: break; 29724: case 2: 29724: EncodeFixed16(dst, static_cast(val_)); 29724: break; 29724: case 4: 29724: EncodeFixed32(dst, static_cast(val_)); 29724: break; 29724: case 8: 29724: EncodeFixed64(dst, static_cast(val_)); 29724: break; 29724: default: 29724: 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: (static_cast ( 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: false 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: "false" 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: ; 29724: } 29724: } 29724: 29724: bool Verify(uint8_t len, const char* checksum_ptr) const { 29724: 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: (static_cast ( 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: sizeof(val_) >= len 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: "sizeof(val_) >= len" 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: ; 29724: switch (len) { 29724: case 1: 29724: return static_cast(checksum_ptr[0]) == 29724: static_cast(val_); 29724: case 2: 29724: return DecodeFixed16(checksum_ptr) == static_cast(val_); 29724: case 4: 29724: return DecodeFixed32(checksum_ptr) == static_cast(val_); 29724: case 8: 29724: return DecodeFixed64(checksum_ptr) == static_cast(val_); 29724: default: 29724: 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: (static_cast ( 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: false 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: "false" 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: ; 29724: return false; 29724: } 29724: } 29724: 29724: T val_ = 0; 29724: }; 29724: 29724: template 29724: class ProtectionInfoKVO { 29724: public: 29724: ProtectionInfoKVO() = default; 29724: 29724: ProtectionInfo StripKVO(const Slice& key, const Slice& value, 29724: ValueType op_type) const; 29724: ProtectionInfo StripKVO(const SliceParts& key, const SliceParts& value, 29724: ValueType op_type) const; 29724: 29724: ProtectionInfoKVOC ProtectC(ColumnFamilyId column_family_id) const; 29724: ProtectionInfoKVOS ProtectS(SequenceNumber sequence_number) const; 29724: 29724: void UpdateK(const Slice& old_key, const Slice& new_key); 29724: void UpdateK(const SliceParts& old_key, const SliceParts& new_key); 29724: void UpdateV(const Slice& old_value, const Slice& new_value); 29724: void UpdateV(const SliceParts& old_value, const SliceParts& new_value); 29724: void UpdateO(ValueType old_op_type, ValueType new_op_type); 29724: 29724: 29724: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 29724: 29724: 29724: 29724: bool Verify(uint8_t len, const char* checksum_ptr) const { 29724: return info_.Verify(len, checksum_ptr); 29724: } 29724: 29724: private: 29724: friend class ProtectionInfo; 29724: friend class ProtectionInfoKVOS; 29724: friend class ProtectionInfoKVOC; 29724: 29724: explicit ProtectionInfoKVO(T val) : info_(val) { 29724: static_assert(sizeof(ProtectionInfoKVO) == sizeof(T), ""); 29724: } 29724: 29724: T GetVal() const { return info_.GetVal(); } 29724: void SetVal(T val) { info_.SetVal(val); } 29724: 29724: ProtectionInfo info_; 29724: }; 29724: 29724: template 29724: class ProtectionInfoKVOC { 29724: public: 29724: ProtectionInfoKVOC() = default; 29724: 29724: ProtectionInfoKVO StripC(ColumnFamilyId column_family_id) const; 29724: 29724: void UpdateK(const Slice& old_key, const Slice& new_key) { 29724: kvo_.UpdateK(old_key, new_key); 29724: } 29724: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 29724: kvo_.UpdateK(old_key, new_key); 29724: } 29724: void UpdateV(const Slice& old_value, const Slice& new_value) { 29724: kvo_.UpdateV(old_value, new_value); 29724: } 29724: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 29724: kvo_.UpdateV(old_value, new_value); 29724: } 29724: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 29724: kvo_.UpdateO(old_op_type, new_op_type); 29724: } 29724: void UpdateC(ColumnFamilyId old_column_family_id, 29724: ColumnFamilyId new_column_family_id); 29724: 29724: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 29724: bool Verify(uint8_t len, const char* checksum_ptr) const { 29724: return kvo_.Verify(len, checksum_ptr); 29724: } 29724: 29724: private: 29724: friend class ProtectionInfoKVO; 29724: 29724: explicit ProtectionInfoKVOC(T val) : kvo_(val) { 29724: static_assert(sizeof(ProtectionInfoKVOC) == sizeof(T), ""); 29724: } 29724: 29724: T GetVal() const { return kvo_.GetVal(); } 29724: void SetVal(T val) { kvo_.SetVal(val); } 29724: 29724: ProtectionInfoKVO kvo_; 29724: }; 29724: 29724: template 29724: class ProtectionInfoKVOS { 29724: public: 29724: ProtectionInfoKVOS() = default; 29724: 29724: ProtectionInfoKVO StripS(SequenceNumber sequence_number) const; 29724: 29724: void UpdateK(const Slice& old_key, const Slice& new_key) { 29724: kvo_.UpdateK(old_key, new_key); 29724: } 29724: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 29724: kvo_.UpdateK(old_key, new_key); 29724: } 29724: void UpdateV(const Slice& old_value, const Slice& new_value) { 29724: kvo_.UpdateV(old_value, new_value); 29724: } 29724: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 29724: kvo_.UpdateV(old_value, new_value); 29724: } 29724: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 29724: kvo_.UpdateO(old_op_type, new_op_type); 29724: } 29724: void UpdateS(SequenceNumber old_sequence_number, 29724: SequenceNumber new_sequence_number); 29724: 29724: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 29724: bool Verify(uint8_t len, const char* checksum_ptr) const { 29724: return kvo_.Verify(len, checksum_ptr); 29724: } 29724: 29724: private: 29724: friend class ProtectionInfoKVO; 29724: 29724: explicit ProtectionInfoKVOS(T val) : kvo_(val) { 29724: static_assert(sizeof(ProtectionInfoKVOS) == sizeof(T), ""); 29724: } 29724: 29724: T GetVal() const { return kvo_.GetVal(); } 29724: void SetVal(T val) { kvo_.SetVal(val); } 29724: 29724: ProtectionInfoKVO kvo_; 29724: }; 29724: 29724: template 29724: class ProtectionInfoKV { 29724: public: 29724: ProtectionInfoKV() = default; 29724: 29724: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 29724: bool Verify(uint8_t len, const char* checksum_ptr) const { 29724: return info_.Verify(len, checksum_ptr); 29724: } 29724: 29724: private: 29724: friend class ProtectionInfo; 29724: 29724: explicit ProtectionInfoKV(T val) : info_(val) { 29724: static_assert(sizeof(ProtectionInfoKV) == sizeof(T)); 29724: } 29724: 29724: ProtectionInfo info_; 29724: }; 29724: 29724: template 29724: Status ProtectionInfo::GetStatus() const { 29724: if (val_ != 0) { 29724: return Status::Corruption("ProtectionInfo mismatch"); 29724: } 29724: return Status::OK(); 29724: } 29724: 29724: template 29724: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const Slice& key, 29724: const Slice& value, 29724: ValueType op_type) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29724: val = 29724: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29724: val = val ^ 29724: static_cast(NPHash64(reinterpret_cast(&op_type), 29724: sizeof(op_type), ProtectionInfo::kSeedO)); 29724: return ProtectionInfoKVO(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const SliceParts& key, 29724: const SliceParts& value, 29724: ValueType op_type) const { 29724: T val = GetVal(); 29724: val = val ^ 29724: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 29724: val = val ^ 29724: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 29724: val = val ^ 29724: static_cast(NPHash64(reinterpret_cast(&op_type), 29724: sizeof(op_type), ProtectionInfo::kSeedO)); 29724: return ProtectionInfoKVO(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKV ProtectionInfo::ProtectKV(const Slice& key, 29724: const Slice& value) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29724: val = 29724: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29724: return ProtectionInfoKV(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVO::UpdateK(const Slice& old_key, const Slice& new_key) { 29724: T val = GetVal(); 29724: val = val ^ 29724: static_cast(GetSliceNPHash64(old_key, ProtectionInfo::kSeedK)); 29724: val = val ^ 29724: static_cast(GetSliceNPHash64(new_key, ProtectionInfo::kSeedK)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVO::UpdateK(const SliceParts& old_key, 29724: const SliceParts& new_key) { 29724: T val = GetVal(); 29724: val = val ^ static_cast( 29724: GetSlicePartsNPHash64(old_key, ProtectionInfo::kSeedK)); 29724: val = val ^ static_cast( 29724: GetSlicePartsNPHash64(new_key, ProtectionInfo::kSeedK)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVO::UpdateV(const Slice& old_value, 29724: const Slice& new_value) { 29724: T val = GetVal(); 29724: val = val ^ 29724: static_cast(GetSliceNPHash64(old_value, ProtectionInfo::kSeedV)); 29724: val = val ^ 29724: static_cast(GetSliceNPHash64(new_value, ProtectionInfo::kSeedV)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVO::UpdateV(const SliceParts& old_value, 29724: const SliceParts& new_value) { 29724: T val = GetVal(); 29724: val = val ^ static_cast( 29724: GetSlicePartsNPHash64(old_value, ProtectionInfo::kSeedV)); 29724: val = val ^ static_cast( 29724: GetSlicePartsNPHash64(new_value, ProtectionInfo::kSeedV)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVO::UpdateO(ValueType old_op_type, 29724: ValueType new_op_type) { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64(reinterpret_cast(&old_op_type), 29724: sizeof(old_op_type), 29724: ProtectionInfo::kSeedO)); 29724: val = val ^ static_cast(NPHash64(reinterpret_cast(&new_op_type), 29724: sizeof(new_op_type), 29724: ProtectionInfo::kSeedO)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: ProtectionInfo ProtectionInfoKVO::StripKVO(const Slice& key, 29724: const Slice& value, 29724: ValueType op_type) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29724: val = 29724: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29724: val = val ^ 29724: static_cast(NPHash64(reinterpret_cast(&op_type), 29724: sizeof(op_type), ProtectionInfo::kSeedO)); 29724: return ProtectionInfo(val); 29724: } 29724: 29724: template 29724: ProtectionInfo ProtectionInfoKVO::StripKVO(const SliceParts& key, 29724: const SliceParts& value, 29724: ValueType op_type) const { 29724: T val = GetVal(); 29724: val = val ^ 29724: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 29724: val = val ^ 29724: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 29724: val = val ^ 29724: static_cast(NPHash64(reinterpret_cast(&op_type), 29724: sizeof(op_type), ProtectionInfo::kSeedO)); 29724: return ProtectionInfo(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKVOC ProtectionInfoKVO::ProtectC( 29724: ColumnFamilyId column_family_id) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&column_family_id), 29724: sizeof(column_family_id), ProtectionInfo::kSeedC)); 29724: return ProtectionInfoKVOC(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKVO ProtectionInfoKVOC::StripC( 29724: ColumnFamilyId column_family_id) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&column_family_id), 29724: sizeof(column_family_id), ProtectionInfo::kSeedC)); 29724: return ProtectionInfoKVO(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVOC::UpdateC(ColumnFamilyId old_column_family_id, 29724: ColumnFamilyId new_column_family_id) { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&old_column_family_id), 29724: sizeof(old_column_family_id), ProtectionInfo::kSeedC)); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&new_column_family_id), 29724: sizeof(new_column_family_id), ProtectionInfo::kSeedC)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKVOS ProtectionInfoKVO::ProtectS( 29724: SequenceNumber sequence_number) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 29724: sizeof(sequence_number), 29724: ProtectionInfo::kSeedS)); 29724: return ProtectionInfoKVOS(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKVO ProtectionInfoKVOS::StripS( 29724: SequenceNumber sequence_number) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 29724: sizeof(sequence_number), 29724: ProtectionInfo::kSeedS)); 29724: return ProtectionInfoKVO(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVOS::UpdateS(SequenceNumber old_sequence_number, 29724: SequenceNumber new_sequence_number) { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&old_sequence_number), 29724: sizeof(old_sequence_number), ProtectionInfo::kSeedS)); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&new_sequence_number), 29724: sizeof(new_sequence_number), ProtectionInfo::kSeedS)); 29724: SetVal(val); 29724: } 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class IteratorBase : public Cleanable { 29724: public: 29724: IteratorBase() {} 29724: 29724: IteratorBase(const IteratorBase&) = delete; 29724: void operator=(const IteratorBase&) = delete; 29724: 29724: virtual ~IteratorBase() {} 29724: 29724: 29724: 29724: 29724: virtual bool Valid() const = 0; 29724: 29724: 29724: 29724: virtual void SeekToFirst() = 0; 29724: 29724: 29724: 29724: virtual void SeekToLast() = 0; 29724: # 43 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29724: virtual void Seek(const Slice& target) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void SeekForPrev(const Slice& target) = 0; 29724: 29724: 29724: 29724: 29724: virtual void Next() = 0; 29724: 29724: 29724: 29724: 29724: virtual void Prev() = 0; 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29724: virtual Status Refresh() { return Refresh(nullptr); } 29724: 29724: 29724: 29724: virtual Status Refresh(const class Snapshot*) { 29724: return Status::NotSupported("Refresh() is not supported"); 29724: } 29724: # 96 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29724: virtual bool PrepareValue() { return true; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Slice key() const = 0; 29724: 29724: 29724: 29724: 29724: virtual Status status() const = 0; 29724: }; 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ostream" 1 3 29724: # 36 "/usr/include/c++/14/ostream" 3 29724: 29724: # 37 "/usr/include/c++/14/ostream" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ios" 1 3 29724: # 36 "/usr/include/c++/14/ios" 3 29724: 29724: # 37 "/usr/include/c++/14/ios" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/ios_base.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/ios_base.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/ios_base.h" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/locale_classes.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: 29724: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 66 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: class locale 29724: { 29724: public: 29724: 29724: 29724: typedef int category; 29724: 29724: 29724: class facet; 29724: class id; 29724: class _Impl; 29724: 29724: friend class facet; 29724: friend class _Impl; 29724: 29724: template 29724: friend bool 29724: has_facet(const locale&) throw(); 29724: 29724: template 29724: friend const _Facet& 29724: use_facet(const locale&); 29724: 29724: template 29724: friend const _Facet* 29724: __try_use_facet(const locale&) noexcept; 29724: 29724: template 29724: friend struct __use_cache; 29724: # 106 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: static const category none = 0; 29724: static const category ctype = 1L << 0; 29724: static const category numeric = 1L << 1; 29724: static const category collate = 1L << 2; 29724: static const category time = 1L << 3; 29724: static const category monetary = 1L << 4; 29724: static const category messages = 1L << 5; 29724: static const category all = (ctype | numeric | collate | 29724: time | monetary | messages); 29724: # 125 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: locale() throw(); 29724: # 134 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: locale(const locale& __other) throw(); 29724: # 144 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: explicit 29724: locale(const char* __s); 29724: # 159 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: locale(const locale& __base, const char* __s, category __cat); 29724: # 170 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: explicit 29724: locale(const std::string& __s) : locale(__s.c_str()) { } 29724: # 185 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: locale(const locale& __base, const std::string& __s, category __cat) 29724: : locale(__base, __s.c_str(), __cat) { } 29724: # 200 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: locale(const locale& __base, const locale& __add, category __cat); 29724: # 213 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: template 29724: locale(const locale& __other, _Facet* __f); 29724: 29724: 29724: ~locale() throw(); 29724: # 227 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: const locale& 29724: operator=(const locale& __other) throw(); 29724: # 242 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: template 29724: [[__nodiscard__]] 29724: locale 29724: combine(const locale& __other) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] __attribute ((__abi_tag__ ("cxx11"))) 29724: string 29724: name() const; 29724: # 273 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: [[__nodiscard__]] 29724: bool 29724: operator==(const locale& __other) const throw(); 29724: # 284 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: [[__nodiscard__]] 29724: bool 29724: operator!=(const locale& __other) const throw() 29724: { return !(this->operator==(__other)); } 29724: # 305 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, 29724: const basic_string<_Char, _Traits, _Alloc>& __s2) const; 29724: # 322 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: static locale 29724: global(const locale& __loc); 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: static const locale& 29724: classic(); 29724: 29724: private: 29724: 29724: _Impl* _M_impl; 29724: 29724: 29724: static _Impl* _S_classic; 29724: 29724: 29724: static _Impl* _S_global; 29724: 29724: 29724: 29724: 29724: 29724: static const char* const* const _S_categories; 29724: # 358 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: enum { _S_categories_size = 6 + 6 }; 29724: 29724: 29724: static __gthread_once_t _S_once; 29724: 29724: 29724: explicit 29724: locale(_Impl*) throw(); 29724: 29724: static void 29724: _S_initialize(); 29724: 29724: static void 29724: _S_initialize_once() throw(); 29724: 29724: static category 29724: _S_normalize_category(category); 29724: 29724: void 29724: _M_coalesce(const locale& __base, const locale& __add, category __cat); 29724: 29724: 29724: static const id* const _S_twinned_facets[]; 29724: 29724: }; 29724: # 396 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: class locale::facet 29724: { 29724: private: 29724: friend class locale; 29724: friend class locale::_Impl; 29724: 29724: mutable _Atomic_word _M_refcount; 29724: 29724: 29724: static __c_locale _S_c_locale; 29724: 29724: 29724: static const char _S_c_name[2]; 29724: 29724: 29724: static __gthread_once_t _S_once; 29724: 29724: 29724: static void 29724: _S_initialize_once(); 29724: 29724: protected: 29724: # 427 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: explicit 29724: facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) 29724: { } 29724: 29724: 29724: virtual 29724: ~facet(); 29724: 29724: static void 29724: _S_create_c_locale(__c_locale& __cloc, const char* __s, 29724: __c_locale __old = 0); 29724: 29724: static __c_locale 29724: _S_clone_c_locale(__c_locale& __cloc) throw(); 29724: 29724: static void 29724: _S_destroy_c_locale(__c_locale& __cloc); 29724: 29724: static __c_locale 29724: _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); 29724: 29724: 29724: 29724: static __c_locale 29724: _S_get_c_locale(); 29724: 29724: __attribute__ ((__const__)) static const char* 29724: _S_get_c_name() throw(); 29724: # 463 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: facet(const facet&) = delete; 29724: 29724: facet& 29724: operator=(const facet&) = delete; 29724: 29724: 29724: private: 29724: void 29724: _M_add_reference() const throw() 29724: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29724: 29724: void 29724: _M_remove_reference() const throw() 29724: { 29724: 29724: ; 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 29724: { 29724: ; 29724: try 29724: { delete this; } 29724: catch(...) 29724: { } 29724: } 29724: } 29724: 29724: const facet* _M_sso_shim(const id*) const; 29724: const facet* _M_cow_shim(const id*) const; 29724: 29724: protected: 29724: class __shim; 29724: }; 29724: # 508 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: class locale::id 29724: { 29724: private: 29724: friend class locale; 29724: friend class locale::_Impl; 29724: 29724: template 29724: friend const _Facet& 29724: use_facet(const locale&); 29724: 29724: template 29724: friend bool 29724: has_facet(const locale&) throw(); 29724: 29724: template 29724: friend const _Facet* 29724: __try_use_facet(const locale&) noexcept; 29724: 29724: 29724: 29724: 29724: mutable size_t _M_index; 29724: 29724: 29724: static _Atomic_word _S_refcount; 29724: 29724: void 29724: operator=(const id&); 29724: 29724: id(const id&); 29724: 29724: public: 29724: 29724: 29724: 29724: id() { } 29724: 29724: size_t 29724: _M_id() const throw(); 29724: }; 29724: 29724: 29724: 29724: class locale::_Impl 29724: { 29724: public: 29724: 29724: friend class locale; 29724: friend class locale::facet; 29724: 29724: template 29724: friend bool 29724: has_facet(const locale&) throw(); 29724: 29724: template 29724: friend const _Facet& 29724: use_facet(const locale&); 29724: 29724: template 29724: friend const _Facet* 29724: __try_use_facet(const locale&) noexcept; 29724: 29724: template 29724: friend struct __use_cache; 29724: 29724: private: 29724: 29724: _Atomic_word _M_refcount; 29724: const facet** _M_facets; 29724: size_t _M_facets_size; 29724: const facet** _M_caches; 29724: char** _M_names; 29724: static const locale::id* const _S_id_ctype[]; 29724: static const locale::id* const _S_id_numeric[]; 29724: static const locale::id* const _S_id_collate[]; 29724: static const locale::id* const _S_id_time[]; 29724: static const locale::id* const _S_id_monetary[]; 29724: static const locale::id* const _S_id_messages[]; 29724: static const locale::id* const* const _S_facet_categories[]; 29724: 29724: void 29724: _M_add_reference() throw() 29724: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29724: 29724: void 29724: _M_remove_reference() throw() 29724: { 29724: 29724: ; 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 29724: { 29724: ; 29724: try 29724: { delete this; } 29724: catch(...) 29724: { } 29724: } 29724: } 29724: 29724: _Impl(const _Impl&, size_t); 29724: _Impl(const char*, size_t); 29724: _Impl(size_t) throw(); 29724: 29724: ~_Impl() throw(); 29724: 29724: _Impl(const _Impl&); 29724: 29724: void 29724: operator=(const _Impl&); 29724: 29724: bool 29724: _M_check_same_name() 29724: { 29724: bool __ret = true; 29724: if (_M_names[1]) 29724: 29724: for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) 29724: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; 29724: return __ret; 29724: } 29724: 29724: void 29724: _M_replace_categories(const _Impl*, category); 29724: 29724: void 29724: _M_replace_category(const _Impl*, const locale::id* const*); 29724: 29724: void 29724: _M_replace_facet(const _Impl*, const locale::id*); 29724: 29724: void 29724: _M_install_facet(const locale::id*, const facet*); 29724: 29724: template 29724: void 29724: _M_init_facet(_Facet* __facet) 29724: { _M_install_facet(&_Facet::id, __facet); } 29724: 29724: template 29724: void 29724: _M_init_facet_unchecked(_Facet* __facet) 29724: { 29724: __facet->_M_add_reference(); 29724: _M_facets[_Facet::id._M_id()] = __facet; 29724: } 29724: 29724: void 29724: _M_install_cache(const facet*, size_t); 29724: 29724: void _M_init_extra(facet**); 29724: void _M_init_extra(void*, void*, const char*, const char*); 29724: 29724: 29724: 29724: 29724: }; 29724: # 678 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: template 29724: class __cxx11:: collate : public locale::facet 29724: { 29724: public: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef basic_string<_CharT> string_type; 29724: 29724: 29724: protected: 29724: 29724: 29724: __c_locale _M_c_locale_collate; 29724: 29724: public: 29724: 29724: static locale::id id; 29724: # 705 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: explicit 29724: collate(size_t __refs = 0) 29724: : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) 29724: { } 29724: # 719 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: explicit 29724: collate(__c_locale __cloc, size_t __refs = 0) 29724: : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) 29724: { } 29724: # 736 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: int 29724: compare(const _CharT* __lo1, const _CharT* __hi1, 29724: const _CharT* __lo2, const _CharT* __hi2) const 29724: { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } 29724: # 755 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: string_type 29724: transform(const _CharT* __lo, const _CharT* __hi) const 29724: { return this->do_transform(__lo, __hi); } 29724: # 769 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: long 29724: hash(const _CharT* __lo, const _CharT* __hi) const 29724: { return this->do_hash(__lo, __hi); } 29724: 29724: 29724: int 29724: _M_compare(const _CharT*, const _CharT*) const throw(); 29724: 29724: size_t 29724: _M_transform(_CharT*, const _CharT*, size_t) const throw(); 29724: 29724: protected: 29724: 29724: virtual 29724: ~collate() 29724: { _S_destroy_c_locale(_M_c_locale_collate); } 29724: # 798 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: virtual int 29724: do_compare(const _CharT* __lo1, const _CharT* __hi1, 29724: const _CharT* __lo2, const _CharT* __hi2) const; 29724: # 812 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: virtual string_type 29724: do_transform(const _CharT* __lo, const _CharT* __hi) const; 29724: # 825 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: virtual long 29724: do_hash(const _CharT* __lo, const _CharT* __hi) const; 29724: }; 29724: 29724: template 29724: locale::id collate<_CharT>::id; 29724: 29724: 29724: template<> 29724: int 29724: collate::_M_compare(const char*, const char*) const throw(); 29724: 29724: template<> 29724: size_t 29724: collate::_M_transform(char*, const char*, size_t) const throw(); 29724: 29724: 29724: template<> 29724: int 29724: collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); 29724: 29724: template<> 29724: size_t 29724: collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); 29724: 29724: 29724: 29724: template 29724: class __cxx11:: collate_byname : public collate<_CharT> 29724: { 29724: public: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef basic_string<_CharT> string_type; 29724: 29724: 29724: explicit 29724: collate_byname(const char* __s, size_t __refs = 0) 29724: : collate<_CharT>(__refs) 29724: { 29724: if (__builtin_strcmp(__s, "C") != 0 29724: && __builtin_strcmp(__s, "POSIX") != 0) 29724: { 29724: this->_S_destroy_c_locale(this->_M_c_locale_collate); 29724: this->_S_create_c_locale(this->_M_c_locale_collate, __s); 29724: } 29724: } 29724: 29724: 29724: explicit 29724: collate_byname(const string& __s, size_t __refs = 0) 29724: : collate_byname(__s.c_str(), __refs) { } 29724: 29724: 29724: protected: 29724: virtual 29724: ~collate_byname() { } 29724: }; 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/locale_classes.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: locale:: 29724: locale(const locale& __other, _Facet* __f) 29724: { 29724: _M_impl = new _Impl(*__other._M_impl, 1); 29724: 29724: try 29724: { _M_impl->_M_install_facet(&_Facet::id, __f); } 29724: catch(...) 29724: { 29724: _M_impl->_M_remove_reference(); 29724: throw; 29724: } 29724: delete [] _M_impl->_M_names[0]; 29724: _M_impl->_M_names[0] = 0; 29724: } 29724: 29724: template 29724: locale 29724: locale:: 29724: combine(const locale& __other) const 29724: { 29724: _Impl* __tmp = new _Impl(*_M_impl, 1); 29724: try 29724: { 29724: __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); 29724: } 29724: catch(...) 29724: { 29724: __tmp->_M_remove_reference(); 29724: throw; 29724: } 29724: return locale(__tmp); 29724: } 29724: 29724: template 29724: bool 29724: locale:: 29724: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, 29724: const basic_string<_CharT, _Traits, _Alloc>& __s2) const 29724: { 29724: typedef std::collate<_CharT> __collate_type; 29724: const __collate_type& __collate = use_facet<__collate_type>(*this); 29724: return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), 29724: __s2.data(), __s2.data() + __s2.length()) < 0); 29724: } 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: template 29724: inline const _Facet* 29724: __try_use_facet(const locale& __loc) noexcept 29724: { 29724: const size_t __i = _Facet::id._M_id(); 29724: const locale::facet** __facets = __loc._M_impl->_M_facets; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 29724: 29724: 29724: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 29724: 29724: 29724: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29724: 29724: 29724: 29724: 29724: if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) 29724: return 0; 29724: 29724: 29724: return dynamic_cast(__facets[__i]); 29724: 29724: 29724: 29724: } 29724: #pragma GCC diagnostic pop 29724: # 164 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: has_facet(const locale& __loc) throw() 29724: { 29724: 29724: static_assert(__is_base_of(locale::facet, _Facet), 29724: "template argument must be derived from locale::facet"); 29724: 29724: 29724: 29724: return std::__try_use_facet<_Facet>(__loc) != 0; 29724: } 29724: # 192 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdangling-reference" 29724: template 29724: [[__nodiscard__]] 29724: inline const _Facet& 29724: use_facet(const locale& __loc) 29724: { 29724: 29724: static_assert(__is_base_of(locale::facet, _Facet), 29724: "template argument must be derived from locale::facet"); 29724: 29724: 29724: 29724: if (const _Facet* __f = std::__try_use_facet<_Facet>(__loc)) 29724: return *__f; 29724: __throw_bad_cast(); 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: template 29724: int 29724: collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () 29724: { return 0; } 29724: 29724: 29724: template 29724: size_t 29724: collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () 29724: { return 0; } 29724: 29724: template 29724: int 29724: collate<_CharT>:: 29724: do_compare(const _CharT* __lo1, const _CharT* __hi1, 29724: const _CharT* __lo2, const _CharT* __hi2) const 29724: { 29724: 29724: 29724: const string_type __one(__lo1, __hi1); 29724: const string_type __two(__lo2, __hi2); 29724: 29724: const _CharT* __p = __one.c_str(); 29724: const _CharT* __pend = __one.data() + __one.length(); 29724: const _CharT* __q = __two.c_str(); 29724: const _CharT* __qend = __two.data() + __two.length(); 29724: 29724: 29724: 29724: 29724: for (;;) 29724: { 29724: const int __res = _M_compare(__p, __q); 29724: if (__res) 29724: return __res; 29724: 29724: __p += char_traits<_CharT>::length(__p); 29724: __q += char_traits<_CharT>::length(__q); 29724: if (__p == __pend && __q == __qend) 29724: return 0; 29724: else if (__p == __pend) 29724: return -1; 29724: else if (__q == __qend) 29724: return 1; 29724: 29724: __p++; 29724: __q++; 29724: } 29724: } 29724: 29724: template 29724: typename collate<_CharT>::string_type 29724: collate<_CharT>:: 29724: do_transform(const _CharT* __lo, const _CharT* __hi) const 29724: { 29724: string_type __ret; 29724: 29724: 29724: const string_type __str(__lo, __hi); 29724: 29724: const _CharT* __p = __str.c_str(); 29724: const _CharT* __pend = __str.data() + __str.length(); 29724: 29724: size_t __len = (__hi - __lo) * 2; 29724: 29724: _CharT* __c = new _CharT[__len]; 29724: 29724: try 29724: { 29724: 29724: 29724: 29724: for (;;) 29724: { 29724: 29724: size_t __res = _M_transform(__c, __p, __len); 29724: 29724: 29724: if (__res >= __len) 29724: { 29724: __len = __res + 1; 29724: delete [] __c, __c = 0; 29724: __c = new _CharT[__len]; 29724: __res = _M_transform(__c, __p, __len); 29724: } 29724: 29724: __ret.append(__c, __res); 29724: __p += char_traits<_CharT>::length(__p); 29724: if (__p == __pend) 29724: break; 29724: 29724: __p++; 29724: __ret.push_back(_CharT()); 29724: } 29724: } 29724: catch(...) 29724: { 29724: delete [] __c; 29724: throw; 29724: } 29724: 29724: delete [] __c; 29724: 29724: return __ret; 29724: } 29724: 29724: template 29724: long 29724: collate<_CharT>:: 29724: do_hash(const _CharT* __lo, const _CharT* __hi) const 29724: { 29724: unsigned long __val = 0; 29724: for (; __lo < __hi; ++__lo) 29724: __val = 29724: *__lo + ((__val << 7) 29724: | (__val >> (__gnu_cxx::__numeric_traits:: 29724: __digits - 7))); 29724: return static_cast(__val); 29724: } 29724: 29724: 29724: 29724: 29724: extern template class collate; 29724: extern template class collate_byname; 29724: 29724: extern template 29724: const collate* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const collate& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: extern template class collate; 29724: extern template class collate_byname; 29724: 29724: extern template 29724: const collate* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const collate& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: 29724: 29724: } 29724: # 889 "/usr/include/c++/14/bits/locale_classes.h" 2 3 29724: # 42 "/usr/include/c++/14/bits/ios_base.h" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/system_error" 1 3 29724: # 32 "/usr/include/c++/14/system_error" 3 29724: 29724: # 33 "/usr/include/c++/14/system_error" 3 29724: # 43 "/usr/include/c++/14/system_error" 3 29724: # 1 "/usr/include/c++/14/stdexcept" 1 3 29724: # 36 "/usr/include/c++/14/stdexcept" 3 29724: 29724: # 37 "/usr/include/c++/14/stdexcept" 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: struct __cow_string 29724: { 29724: union { 29724: const char* _M_p; 29724: char _M_bytes[sizeof(const char*)]; 29724: }; 29724: 29724: __cow_string(); 29724: __cow_string(const std::string&); 29724: __cow_string(const char*, size_t); 29724: __cow_string(const __cow_string&) noexcept; 29724: __cow_string& operator=(const __cow_string&) noexcept; 29724: ~__cow_string(); 29724: 29724: __cow_string(__cow_string&&) noexcept; 29724: __cow_string& operator=(__cow_string&&) noexcept; 29724: 29724: }; 29724: 29724: typedef basic_string __sso_string; 29724: # 113 "/usr/include/c++/14/stdexcept" 3 29724: class logic_error : public exception 29724: { 29724: __cow_string _M_msg; 29724: 29724: public: 29724: 29724: explicit 29724: logic_error(const string& __arg) ; 29724: 29724: 29724: explicit 29724: logic_error(const char*) ; 29724: 29724: logic_error(logic_error&&) noexcept; 29724: logic_error& operator=(logic_error&&) noexcept; 29724: 29724: 29724: 29724: logic_error(const logic_error&) noexcept; 29724: logic_error& operator=(const logic_error&) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: virtual ~logic_error() noexcept; 29724: 29724: 29724: 29724: virtual const char* 29724: what() const noexcept; 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: class domain_error : public logic_error 29724: { 29724: public: 29724: explicit domain_error(const string& __arg) ; 29724: 29724: explicit domain_error(const char*) ; 29724: domain_error(const domain_error&) = default; 29724: domain_error& operator=(const domain_error&) = default; 29724: domain_error(domain_error&&) = default; 29724: domain_error& operator=(domain_error&&) = default; 29724: 29724: virtual ~domain_error() noexcept; 29724: }; 29724: 29724: 29724: class invalid_argument : public logic_error 29724: { 29724: public: 29724: explicit invalid_argument(const string& __arg) ; 29724: 29724: explicit invalid_argument(const char*) ; 29724: invalid_argument(const invalid_argument&) = default; 29724: invalid_argument& operator=(const invalid_argument&) = default; 29724: invalid_argument(invalid_argument&&) = default; 29724: invalid_argument& operator=(invalid_argument&&) = default; 29724: 29724: virtual ~invalid_argument() noexcept; 29724: }; 29724: 29724: 29724: 29724: class length_error : public logic_error 29724: { 29724: public: 29724: explicit length_error(const string& __arg) ; 29724: 29724: explicit length_error(const char*) ; 29724: length_error(const length_error&) = default; 29724: length_error& operator=(const length_error&) = default; 29724: length_error(length_error&&) = default; 29724: length_error& operator=(length_error&&) = default; 29724: 29724: virtual ~length_error() noexcept; 29724: }; 29724: 29724: 29724: 29724: class out_of_range : public logic_error 29724: { 29724: public: 29724: explicit out_of_range(const string& __arg) ; 29724: 29724: explicit out_of_range(const char*) ; 29724: out_of_range(const out_of_range&) = default; 29724: out_of_range& operator=(const out_of_range&) = default; 29724: out_of_range(out_of_range&&) = default; 29724: out_of_range& operator=(out_of_range&&) = default; 29724: 29724: virtual ~out_of_range() noexcept; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class runtime_error : public exception 29724: { 29724: __cow_string _M_msg; 29724: 29724: public: 29724: 29724: explicit 29724: runtime_error(const string& __arg) ; 29724: 29724: 29724: explicit 29724: runtime_error(const char*) ; 29724: 29724: runtime_error(runtime_error&&) noexcept; 29724: runtime_error& operator=(runtime_error&&) noexcept; 29724: 29724: 29724: 29724: runtime_error(const runtime_error&) noexcept; 29724: runtime_error& operator=(const runtime_error&) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: virtual ~runtime_error() noexcept; 29724: 29724: 29724: 29724: virtual const char* 29724: what() const noexcept; 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: class range_error : public runtime_error 29724: { 29724: public: 29724: explicit range_error(const string& __arg) ; 29724: 29724: explicit range_error(const char*) ; 29724: range_error(const range_error&) = default; 29724: range_error& operator=(const range_error&) = default; 29724: range_error(range_error&&) = default; 29724: range_error& operator=(range_error&&) = default; 29724: 29724: virtual ~range_error() noexcept; 29724: }; 29724: 29724: 29724: class overflow_error : public runtime_error 29724: { 29724: public: 29724: explicit overflow_error(const string& __arg) ; 29724: 29724: explicit overflow_error(const char*) ; 29724: overflow_error(const overflow_error&) = default; 29724: overflow_error& operator=(const overflow_error&) = default; 29724: overflow_error(overflow_error&&) = default; 29724: overflow_error& operator=(overflow_error&&) = default; 29724: 29724: virtual ~overflow_error() noexcept; 29724: }; 29724: 29724: 29724: class underflow_error : public runtime_error 29724: { 29724: public: 29724: explicit underflow_error(const string& __arg) ; 29724: 29724: explicit underflow_error(const char*) ; 29724: underflow_error(const underflow_error&) = default; 29724: underflow_error& operator=(const underflow_error&) = default; 29724: underflow_error(underflow_error&&) = default; 29724: underflow_error& operator=(underflow_error&&) = default; 29724: 29724: virtual ~underflow_error() noexcept; 29724: }; 29724: 29724: 29724: 29724: 29724: } 29724: # 44 "/usr/include/c++/14/system_error" 2 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class error_code; 29724: class error_condition; 29724: class system_error; 29724: 29724: 29724: template 29724: struct is_error_code_enum : public false_type { }; 29724: 29724: 29724: template 29724: struct is_error_condition_enum : public false_type { }; 29724: 29724: template<> 29724: struct is_error_condition_enum 29724: : public true_type { }; 29724: 29724: 29724: template 29724: inline constexpr bool is_error_code_enum_v = 29724: is_error_code_enum<_Tp>::value; 29724: template 29724: inline constexpr bool is_error_condition_enum_v = 29724: is_error_condition_enum<_Tp>::value; 29724: 29724: 29724: 29724: inline namespace _V2 { 29724: # 106 "/usr/include/c++/14/system_error" 3 29724: class error_category 29724: { 29724: public: 29724: constexpr error_category() noexcept = default; 29724: 29724: virtual ~error_category(); 29724: 29724: error_category(const error_category&) = delete; 29724: error_category& operator=(const error_category&) = delete; 29724: 29724: 29724: virtual const char* 29724: name() const noexcept = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: private: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: virtual __cow_string 29724: _M_message(int) const; 29724: 29724: public: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: virtual string 29724: message(int) const = 0; 29724: # 144 "/usr/include/c++/14/system_error" 3 29724: public: 29724: 29724: virtual error_condition 29724: default_error_condition(int __i) const noexcept; 29724: 29724: 29724: virtual bool 29724: equivalent(int __i, const error_condition& __cond) const noexcept; 29724: 29724: 29724: virtual bool 29724: equivalent(const error_code& __code, int __i) const noexcept; 29724: 29724: 29724: [[__nodiscard__]] 29724: bool 29724: operator==(const error_category& __other) const noexcept 29724: { return this == &__other; } 29724: # 170 "/usr/include/c++/14/system_error" 3 29724: bool 29724: operator<(const error_category& __other) const noexcept 29724: { return less()(this, &__other); } 29724: 29724: bool 29724: operator!=(const error_category& __other) const noexcept 29724: { return this != &__other; } 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: [[__nodiscard__, __gnu__::__const__]] 29724: const error_category& 29724: generic_category() noexcept; 29724: 29724: 29724: [[__nodiscard__, __gnu__::__const__]] 29724: const error_category& 29724: system_category() noexcept; 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: namespace __adl_only 29724: { 29724: void make_error_code() = delete; 29724: void make_error_condition() = delete; 29724: } 29724: # 223 "/usr/include/c++/14/system_error" 3 29724: class error_code 29724: { 29724: template 29724: using _Check 29724: = __enable_if_t::value>; 29724: 29724: public: 29724: error_code() noexcept 29724: : _M_value(0), _M_cat(&system_category()) { } 29724: 29724: error_code(int __v, const error_category& __cat) noexcept 29724: : _M_value(__v), _M_cat(&__cat) { } 29724: 29724: 29724: template> 29724: error_code(_ErrorCodeEnum __e) noexcept 29724: { 29724: using __adl_only::make_error_code; 29724: *this = make_error_code(__e); 29724: } 29724: 29724: error_code(const error_code&) = default; 29724: error_code& operator=(const error_code&) = default; 29724: 29724: void 29724: assign(int __v, const error_category& __cat) noexcept 29724: { 29724: _M_value = __v; 29724: _M_cat = &__cat; 29724: } 29724: 29724: void 29724: clear() noexcept 29724: { assign(0, system_category()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: int 29724: value() const noexcept { return _M_value; } 29724: 29724: 29724: [[__nodiscard__]] 29724: const error_category& 29724: category() const noexcept { return *_M_cat; } 29724: 29724: 29724: error_condition 29724: default_error_condition() const noexcept; 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: string 29724: message() const 29724: { return category().message(value()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: explicit operator bool() const noexcept 29724: { return _M_value != 0; } 29724: 29724: 29724: private: 29724: int _M_value; 29724: const error_category* _M_cat; 29724: }; 29724: # 300 "/usr/include/c++/14/system_error" 3 29724: [[__nodiscard__]] 29724: inline error_code 29724: make_error_code(errc __e) noexcept 29724: { return error_code(static_cast(__e), generic_category()); } 29724: # 323 "/usr/include/c++/14/system_error" 3 29724: inline bool 29724: operator<(const error_code& __lhs, const error_code& __rhs) noexcept 29724: { 29724: return (__lhs.category() < __rhs.category() 29724: || (__lhs.category() == __rhs.category() 29724: && __lhs.value() < __rhs.value())); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) 29724: { return (__os << __e.category().name() << ':' << __e.value()); } 29724: # 354 "/usr/include/c++/14/system_error" 3 29724: class error_condition 29724: { 29724: template 29724: using _Check 29724: = __enable_if_t::value>; 29724: 29724: public: 29724: 29724: error_condition() noexcept 29724: : _M_value(0), _M_cat(&generic_category()) { } 29724: 29724: 29724: error_condition(int __v, const error_category& __cat) noexcept 29724: : _M_value(__v), _M_cat(&__cat) { } 29724: 29724: 29724: template> 29724: error_condition(_ErrorConditionEnum __e) noexcept 29724: { 29724: using __adl_only::make_error_condition; 29724: *this = make_error_condition(__e); 29724: } 29724: 29724: error_condition(const error_condition&) = default; 29724: error_condition& operator=(const error_condition&) = default; 29724: 29724: 29724: void 29724: assign(int __v, const error_category& __cat) noexcept 29724: { 29724: _M_value = __v; 29724: _M_cat = &__cat; 29724: } 29724: 29724: 29724: void 29724: clear() noexcept 29724: { assign(0, generic_category()); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: int 29724: value() const noexcept { return _M_value; } 29724: 29724: 29724: [[__nodiscard__]] 29724: const error_category& 29724: category() const noexcept { return *_M_cat; } 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: string 29724: message() const 29724: { return category().message(value()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: explicit operator bool() const noexcept 29724: { return _M_value != 0; } 29724: 29724: 29724: private: 29724: int _M_value; 29724: const error_category* _M_cat; 29724: }; 29724: # 433 "/usr/include/c++/14/system_error" 3 29724: [[__nodiscard__]] 29724: inline error_condition 29724: make_error_condition(errc __e) noexcept 29724: { return error_condition(static_cast(__e), generic_category()); } 29724: # 447 "/usr/include/c++/14/system_error" 3 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const error_code& __lhs, const error_code& __rhs) noexcept 29724: { 29724: return __lhs.category() == __rhs.category() 29724: && __lhs.value() == __rhs.value(); 29724: } 29724: # 463 "/usr/include/c++/14/system_error" 3 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const error_code& __lhs, const error_condition& __rhs) noexcept 29724: { 29724: return __lhs.category().equivalent(__lhs.value(), __rhs) 29724: || __rhs.category().equivalent(__lhs, __rhs.value()); 29724: } 29724: # 478 "/usr/include/c++/14/system_error" 3 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const error_condition& __lhs, 29724: const error_condition& __rhs) noexcept 29724: { 29724: return __lhs.category() == __rhs.category() 29724: && __lhs.value() == __rhs.value(); 29724: } 29724: # 506 "/usr/include/c++/14/system_error" 3 29724: inline bool 29724: operator<(const error_condition& __lhs, 29724: const error_condition& __rhs) noexcept 29724: { 29724: return (__lhs.category() < __rhs.category() 29724: || (__lhs.category() == __rhs.category() 29724: && __lhs.value() < __rhs.value())); 29724: } 29724: 29724: 29724: inline bool 29724: operator==(const error_condition& __lhs, const error_code& __rhs) noexcept 29724: { 29724: return (__rhs.category().equivalent(__rhs.value(), __lhs) 29724: || __lhs.category().equivalent(__rhs, __lhs.value())); 29724: } 29724: 29724: 29724: inline bool 29724: operator!=(const error_code& __lhs, const error_code& __rhs) noexcept 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: inline bool 29724: operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: inline bool 29724: operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: inline bool 29724: operator!=(const error_condition& __lhs, 29724: const error_condition& __rhs) noexcept 29724: { return !(__lhs == __rhs); } 29724: # 556 "/usr/include/c++/14/system_error" 3 29724: class system_error : public std::runtime_error 29724: { 29724: private: 29724: error_code _M_code; 29724: 29724: public: 29724: system_error(error_code __ec = error_code()) 29724: : runtime_error(__ec.message()), _M_code(__ec) { } 29724: 29724: system_error(error_code __ec, const string& __what) 29724: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 29724: 29724: system_error(error_code __ec, const char* __what) 29724: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 29724: 29724: system_error(int __v, const error_category& __ecat, const char* __what) 29724: : system_error(error_code(__v, __ecat), __what) { } 29724: 29724: system_error(int __v, const error_category& __ecat) 29724: : runtime_error(error_code(__v, __ecat).message()), 29724: _M_code(__v, __ecat) { } 29724: 29724: system_error(int __v, const error_category& __ecat, const string& __what) 29724: : runtime_error(__what + (": " + error_code(__v, __ecat).message())), 29724: _M_code(__v, __ecat) { } 29724: 29724: 29724: system_error (const system_error &) = default; 29724: system_error &operator= (const system_error &) = default; 29724: 29724: 29724: virtual ~system_error() noexcept; 29724: 29724: const error_code& 29724: code() const noexcept { return _M_code; } 29724: }; 29724: 29724: 29724: } 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: size_t 29724: operator()(const error_code& __e) const noexcept 29724: { 29724: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 29724: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: size_t 29724: operator()(const error_condition& __e) const noexcept 29724: { 29724: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 29724: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 29724: } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 47 "/usr/include/c++/14/bits/ios_base.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum _Ios_Fmtflags 29724: { 29724: _S_boolalpha = 1L << 0, 29724: _S_dec = 1L << 1, 29724: _S_fixed = 1L << 2, 29724: _S_hex = 1L << 3, 29724: _S_internal = 1L << 4, 29724: _S_left = 1L << 5, 29724: _S_oct = 1L << 6, 29724: _S_right = 1L << 7, 29724: _S_scientific = 1L << 8, 29724: _S_showbase = 1L << 9, 29724: _S_showpoint = 1L << 10, 29724: _S_showpos = 1L << 11, 29724: _S_skipws = 1L << 12, 29724: _S_unitbuf = 1L << 13, 29724: _S_uppercase = 1L << 14, 29724: _S_adjustfield = _S_left | _S_right | _S_internal, 29724: _S_basefield = _S_dec | _S_oct | _S_hex, 29724: _S_floatfield = _S_scientific | _S_fixed, 29724: _S_ios_fmtflags_end = 1L << 16, 29724: _S_ios_fmtflags_max = 0x7fffffff, 29724: _S_ios_fmtflags_min = ~0x7fffffff 29724: }; 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Fmtflags 29724: operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29724: { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Fmtflags 29724: operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29724: { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Fmtflags 29724: operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29724: { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Fmtflags 29724: operator~(_Ios_Fmtflags __a) noexcept 29724: { return _Ios_Fmtflags(~static_cast(__a)); } 29724: 29724: constexpr 29724: inline const _Ios_Fmtflags& 29724: operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29724: { return __a = __a | __b; } 29724: 29724: constexpr 29724: inline const _Ios_Fmtflags& 29724: operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29724: { return __a = __a & __b; } 29724: 29724: constexpr 29724: inline const _Ios_Fmtflags& 29724: operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29724: { return __a = __a ^ __b; } 29724: 29724: 29724: enum _Ios_Openmode 29724: { 29724: _S_app = 1L << 0, 29724: _S_ate = 1L << 1, 29724: _S_bin = 1L << 2, 29724: _S_in = 1L << 3, 29724: _S_out = 1L << 4, 29724: _S_trunc = 1L << 5, 29724: _S_noreplace = 1L << 6, 29724: _S_ios_openmode_end = 1L << 16, 29724: _S_ios_openmode_max = 0x7fffffff, 29724: _S_ios_openmode_min = ~0x7fffffff 29724: }; 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Openmode 29724: operator&(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29724: { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Openmode 29724: operator|(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29724: { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Openmode 29724: operator^(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29724: { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Openmode 29724: operator~(_Ios_Openmode __a) noexcept 29724: { return _Ios_Openmode(~static_cast(__a)); } 29724: 29724: constexpr 29724: inline const _Ios_Openmode& 29724: operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29724: { return __a = __a | __b; } 29724: 29724: constexpr 29724: inline const _Ios_Openmode& 29724: operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29724: { return __a = __a & __b; } 29724: 29724: constexpr 29724: inline const _Ios_Openmode& 29724: operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29724: { return __a = __a ^ __b; } 29724: 29724: 29724: enum _Ios_Iostate 29724: { 29724: _S_goodbit = 0, 29724: _S_badbit = 1L << 0, 29724: _S_eofbit = 1L << 1, 29724: _S_failbit = 1L << 2, 29724: _S_ios_iostate_end = 1L << 16, 29724: _S_ios_iostate_max = 0x7fffffff, 29724: _S_ios_iostate_min = ~0x7fffffff 29724: }; 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Iostate 29724: operator&(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29724: { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Iostate 29724: operator|(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29724: { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Iostate 29724: operator^(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29724: { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Iostate 29724: operator~(_Ios_Iostate __a) noexcept 29724: { return _Ios_Iostate(~static_cast(__a)); } 29724: 29724: constexpr 29724: inline const _Ios_Iostate& 29724: operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29724: { return __a = __a | __b; } 29724: 29724: constexpr 29724: inline const _Ios_Iostate& 29724: operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29724: { return __a = __a & __b; } 29724: 29724: constexpr 29724: inline const _Ios_Iostate& 29724: operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29724: { return __a = __a ^ __b; } 29724: 29724: 29724: enum _Ios_Seekdir 29724: { 29724: _S_beg = 0, 29724: _S_cur = 1, 29724: _S_end = 2, 29724: _S_ios_seekdir_end = 1L << 16 29724: }; 29724: 29724: 29724: 29724: enum class io_errc { stream = 1 }; 29724: 29724: template <> struct is_error_code_enum : public true_type { }; 29724: 29724: [[__nodiscard__, __gnu__::__const__]] 29724: const error_category& 29724: iostream_category() noexcept; 29724: 29724: [[__nodiscard__]] 29724: inline error_code 29724: make_error_code(io_errc __e) noexcept 29724: { return error_code(static_cast(__e), iostream_category()); } 29724: 29724: [[__nodiscard__]] 29724: inline error_condition 29724: make_error_condition(io_errc __e) noexcept 29724: { return error_condition(static_cast(__e), iostream_category()); } 29724: # 254 "/usr/include/c++/14/bits/ios_base.h" 3 29724: class ios_base 29724: { 29724: # 272 "/usr/include/c++/14/bits/ios_base.h" 3 29724: public: 29724: # 281 "/usr/include/c++/14/bits/ios_base.h" 3 29724: class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error 29724: { 29724: public: 29724: explicit 29724: failure(const string& __str); 29724: 29724: 29724: explicit 29724: failure(const string&, const error_code&); 29724: 29724: explicit 29724: failure(const char*, const error_code& = io_errc::stream); 29724: 29724: 29724: virtual 29724: ~failure() throw(); 29724: 29724: virtual const char* 29724: what() const throw(); 29724: }; 29724: # 367 "/usr/include/c++/14/bits/ios_base.h" 3 29724: typedef _Ios_Fmtflags fmtflags; 29724: 29724: 29724: static const fmtflags boolalpha = _S_boolalpha; 29724: 29724: 29724: static const fmtflags dec = _S_dec; 29724: 29724: 29724: static const fmtflags fixed = _S_fixed; 29724: 29724: 29724: static const fmtflags hex = _S_hex; 29724: 29724: 29724: 29724: 29724: static const fmtflags internal = _S_internal; 29724: 29724: 29724: 29724: static const fmtflags left = _S_left; 29724: 29724: 29724: static const fmtflags oct = _S_oct; 29724: 29724: 29724: 29724: static const fmtflags right = _S_right; 29724: 29724: 29724: static const fmtflags scientific = _S_scientific; 29724: 29724: 29724: 29724: static const fmtflags showbase = _S_showbase; 29724: 29724: 29724: 29724: static const fmtflags showpoint = _S_showpoint; 29724: 29724: 29724: static const fmtflags showpos = _S_showpos; 29724: 29724: 29724: static const fmtflags skipws = _S_skipws; 29724: 29724: 29724: static const fmtflags unitbuf = _S_unitbuf; 29724: 29724: 29724: 29724: static const fmtflags uppercase = _S_uppercase; 29724: 29724: 29724: static const fmtflags adjustfield = _S_adjustfield; 29724: 29724: 29724: static const fmtflags basefield = _S_basefield; 29724: 29724: 29724: static const fmtflags floatfield = _S_floatfield; 29724: # 442 "/usr/include/c++/14/bits/ios_base.h" 3 29724: typedef _Ios_Iostate iostate; 29724: 29724: 29724: 29724: static const iostate badbit = _S_badbit; 29724: 29724: 29724: static const iostate eofbit = _S_eofbit; 29724: 29724: 29724: 29724: 29724: static const iostate failbit = _S_failbit; 29724: 29724: 29724: static const iostate goodbit = _S_goodbit; 29724: # 473 "/usr/include/c++/14/bits/ios_base.h" 3 29724: typedef _Ios_Openmode openmode; 29724: 29724: 29724: static const openmode app = _S_app; 29724: 29724: 29724: static const openmode ate = _S_ate; 29724: 29724: 29724: 29724: 29724: static const openmode binary = _S_bin; 29724: 29724: 29724: static const openmode in = _S_in; 29724: 29724: 29724: static const openmode out = _S_out; 29724: 29724: 29724: static const openmode trunc = _S_trunc; 29724: 29724: static const openmode __noreplace = _S_noreplace; 29724: # 512 "/usr/include/c++/14/bits/ios_base.h" 3 29724: typedef _Ios_Seekdir seekdir; 29724: 29724: 29724: static const seekdir beg = _S_beg; 29724: 29724: 29724: static const seekdir cur = _S_cur; 29724: 29724: 29724: static const seekdir end = _S_end; 29724: # 545 "/usr/include/c++/14/bits/ios_base.h" 3 29724: enum event 29724: { 29724: erase_event, 29724: imbue_event, 29724: copyfmt_event 29724: }; 29724: # 562 "/usr/include/c++/14/bits/ios_base.h" 3 29724: typedef void (*event_callback) (event __e, ios_base& __b, int __i); 29724: # 574 "/usr/include/c++/14/bits/ios_base.h" 3 29724: void 29724: register_callback(event_callback __fn, int __index); 29724: 29724: protected: 29724: streamsize _M_precision; 29724: streamsize _M_width; 29724: fmtflags _M_flags; 29724: iostate _M_exception; 29724: iostate _M_streambuf_state; 29724: 29724: 29724: 29724: struct _Callback_list 29724: { 29724: 29724: _Callback_list* _M_next; 29724: ios_base::event_callback _M_fn; 29724: int _M_index; 29724: _Atomic_word _M_refcount; 29724: 29724: _Callback_list(ios_base::event_callback __fn, int __index, 29724: _Callback_list* __cb) 29724: : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } 29724: 29724: void 29724: _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29724: 29724: 29724: int 29724: _M_remove_reference() 29724: { 29724: 29724: ; 29724: int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); 29724: if (__res == 0) 29724: { 29724: ; 29724: } 29724: return __res; 29724: } 29724: }; 29724: 29724: _Callback_list* _M_callbacks; 29724: 29724: void 29724: _M_call_callbacks(event __ev) throw(); 29724: 29724: void 29724: _M_dispose_callbacks(void) throw(); 29724: 29724: 29724: struct _Words 29724: { 29724: void* _M_pword; 29724: long _M_iword; 29724: _Words() : _M_pword(0), _M_iword(0) { } 29724: }; 29724: 29724: 29724: _Words _M_word_zero; 29724: 29724: 29724: 29724: enum { _S_local_word_size = 8 }; 29724: _Words _M_local_word[_S_local_word_size]; 29724: 29724: 29724: int _M_word_size; 29724: _Words* _M_word; 29724: 29724: _Words& 29724: _M_grow_words(int __index, bool __iword); 29724: 29724: 29724: locale _M_ios_locale; 29724: 29724: void 29724: _M_init() throw(); 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: class Init 29724: { 29724: friend class ios_base; 29724: public: 29724: Init(); 29724: ~Init(); 29724: 29724: 29724: Init(const Init&) = default; 29724: Init& operator=(const Init&) = default; 29724: 29724: 29724: private: 29724: static _Atomic_word _S_refcount; 29724: static bool _S_synced_with_stdio; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: fmtflags 29724: flags() const 29724: { return _M_flags; } 29724: # 692 "/usr/include/c++/14/bits/ios_base.h" 3 29724: fmtflags 29724: flags(fmtflags __fmtfl) 29724: { 29724: fmtflags __old = _M_flags; 29724: _M_flags = __fmtfl; 29724: return __old; 29724: } 29724: # 708 "/usr/include/c++/14/bits/ios_base.h" 3 29724: fmtflags 29724: setf(fmtflags __fmtfl) 29724: { 29724: fmtflags __old = _M_flags; 29724: _M_flags |= __fmtfl; 29724: return __old; 29724: } 29724: # 725 "/usr/include/c++/14/bits/ios_base.h" 3 29724: fmtflags 29724: setf(fmtflags __fmtfl, fmtflags __mask) 29724: { 29724: fmtflags __old = _M_flags; 29724: _M_flags &= ~__mask; 29724: _M_flags |= (__fmtfl & __mask); 29724: return __old; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: unsetf(fmtflags __mask) 29724: { _M_flags &= ~__mask; } 29724: # 751 "/usr/include/c++/14/bits/ios_base.h" 3 29724: streamsize 29724: precision() const 29724: { return _M_precision; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: streamsize 29724: precision(streamsize __prec) 29724: { 29724: streamsize __old = _M_precision; 29724: _M_precision = __prec; 29724: return __old; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: streamsize 29724: width() const 29724: { return _M_width; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: streamsize 29724: width(streamsize __wide) 29724: { 29724: streamsize __old = _M_width; 29724: _M_width = __wide; 29724: return __old; 29724: } 29724: # 802 "/usr/include/c++/14/bits/ios_base.h" 3 29724: static bool 29724: sync_with_stdio(bool __sync = true); 29724: # 814 "/usr/include/c++/14/bits/ios_base.h" 3 29724: locale 29724: imbue(const locale& __loc) throw(); 29724: # 825 "/usr/include/c++/14/bits/ios_base.h" 3 29724: locale 29724: getloc() const 29724: { return _M_ios_locale; } 29724: # 836 "/usr/include/c++/14/bits/ios_base.h" 3 29724: const locale& 29724: _M_getloc() const 29724: { return _M_ios_locale; } 29724: # 855 "/usr/include/c++/14/bits/ios_base.h" 3 29724: static int 29724: xalloc() throw(); 29724: # 871 "/usr/include/c++/14/bits/ios_base.h" 3 29724: long& 29724: iword(int __ix) 29724: { 29724: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 29724: ? _M_word[__ix] : _M_grow_words(__ix, true); 29724: return __word._M_iword; 29724: } 29724: # 892 "/usr/include/c++/14/bits/ios_base.h" 3 29724: void*& 29724: pword(int __ix) 29724: { 29724: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 29724: ? _M_word[__ix] : _M_grow_words(__ix, false); 29724: return __word._M_pword; 29724: } 29724: # 909 "/usr/include/c++/14/bits/ios_base.h" 3 29724: virtual ~ios_base(); 29724: 29724: protected: 29724: ios_base() throw (); 29724: # 923 "/usr/include/c++/14/bits/ios_base.h" 3 29724: public: 29724: ios_base(const ios_base&) = delete; 29724: 29724: ios_base& 29724: operator=(const ios_base&) = delete; 29724: 29724: protected: 29724: void 29724: _M_move(ios_base&) noexcept; 29724: 29724: void 29724: _M_swap(ios_base& __rhs) noexcept; 29724: 29724: }; 29724: 29724: 29724: 29724: inline ios_base& 29724: boolalpha(ios_base& __base) 29724: { 29724: __base.setf(ios_base::boolalpha); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: noboolalpha(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::boolalpha); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: showbase(ios_base& __base) 29724: { 29724: __base.setf(ios_base::showbase); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: noshowbase(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::showbase); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: showpoint(ios_base& __base) 29724: { 29724: __base.setf(ios_base::showpoint); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: noshowpoint(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::showpoint); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: showpos(ios_base& __base) 29724: { 29724: __base.setf(ios_base::showpos); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: noshowpos(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::showpos); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: skipws(ios_base& __base) 29724: { 29724: __base.setf(ios_base::skipws); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: noskipws(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::skipws); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: uppercase(ios_base& __base) 29724: { 29724: __base.setf(ios_base::uppercase); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: nouppercase(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::uppercase); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: unitbuf(ios_base& __base) 29724: { 29724: __base.setf(ios_base::unitbuf); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: nounitbuf(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::unitbuf); 29724: return __base; 29724: } 29724: 29724: 29724: 29724: inline ios_base& 29724: internal(ios_base& __base) 29724: { 29724: __base.setf(ios_base::internal, ios_base::adjustfield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: left(ios_base& __base) 29724: { 29724: __base.setf(ios_base::left, ios_base::adjustfield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: right(ios_base& __base) 29724: { 29724: __base.setf(ios_base::right, ios_base::adjustfield); 29724: return __base; 29724: } 29724: 29724: 29724: 29724: inline ios_base& 29724: dec(ios_base& __base) 29724: { 29724: __base.setf(ios_base::dec, ios_base::basefield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: hex(ios_base& __base) 29724: { 29724: __base.setf(ios_base::hex, ios_base::basefield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: oct(ios_base& __base) 29724: { 29724: __base.setf(ios_base::oct, ios_base::basefield); 29724: return __base; 29724: } 29724: 29724: 29724: 29724: inline ios_base& 29724: fixed(ios_base& __base) 29724: { 29724: __base.setf(ios_base::fixed, ios_base::floatfield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: scientific(ios_base& __base) 29724: { 29724: __base.setf(ios_base::scientific, ios_base::floatfield); 29724: return __base; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline ios_base& 29724: hexfloat(ios_base& __base) 29724: { 29724: __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: defaultfloat(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::floatfield); 29724: return __base; 29724: } 29724: 29724: 29724: 29724: } 29724: # 45 "/usr/include/c++/14/ios" 2 3 29724: # 1 "/usr/include/c++/14/streambuf" 1 3 29724: # 36 "/usr/include/c++/14/streambuf" 3 29724: 29724: # 37 "/usr/include/c++/14/streambuf" 3 29724: # 47 "/usr/include/c++/14/streambuf" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: streamsize 29724: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, 29724: basic_streambuf<_CharT, _Traits>*, bool&); 29724: # 123 "/usr/include/c++/14/streambuf" 3 29724: template 29724: class basic_streambuf 29724: { 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: 29724: 29724: typedef basic_streambuf __streambuf_type; 29724: 29724: 29724: friend class basic_ios; 29724: friend class basic_istream; 29724: friend class basic_ostream; 29724: friend class istreambuf_iterator; 29724: friend class ostreambuf_iterator; 29724: 29724: friend streamsize 29724: __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: _CharT2*>::__type 29724: __copy_move_a2(istreambuf_iterator<_CharT2>, 29724: istreambuf_iterator<_CharT2>, _CharT2*); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: istreambuf_iterator<_CharT2> >::__type 29724: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29724: const _CharT2&); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: void>::__type 29724: advance(istreambuf_iterator<_CharT2>&, _Distance); 29724: 29724: friend void __istream_extract(istream&, char*, streamsize); 29724: 29724: template 29724: friend basic_istream<_CharT2, _Traits2>& 29724: operator>>(basic_istream<_CharT2, _Traits2>&, 29724: basic_string<_CharT2, _Traits2, _Alloc>&); 29724: 29724: template 29724: friend basic_istream<_CharT2, _Traits2>& 29724: getline(basic_istream<_CharT2, _Traits2>&, 29724: basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: char_type* _M_in_beg; 29724: char_type* _M_in_cur; 29724: char_type* _M_in_end; 29724: char_type* _M_out_beg; 29724: char_type* _M_out_cur; 29724: char_type* _M_out_end; 29724: 29724: 29724: locale _M_buf_locale; 29724: 29724: public: 29724: 29724: virtual 29724: ~basic_streambuf() 29724: { } 29724: # 215 "/usr/include/c++/14/streambuf" 3 29724: locale 29724: pubimbue(const locale& __loc) 29724: { 29724: locale __tmp(this->getloc()); 29724: this->imbue(__loc); 29724: _M_buf_locale = __loc; 29724: return __tmp; 29724: } 29724: # 232 "/usr/include/c++/14/streambuf" 3 29724: locale 29724: getloc() const 29724: { return _M_buf_locale; } 29724: # 245 "/usr/include/c++/14/streambuf" 3 29724: basic_streambuf* 29724: pubsetbuf(char_type* __s, streamsize __n) 29724: { return this->setbuf(__s, __n); } 29724: # 257 "/usr/include/c++/14/streambuf" 3 29724: pos_type 29724: pubseekoff(off_type __off, ios_base::seekdir __way, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: { return this->seekoff(__off, __way, __mode); } 29724: # 269 "/usr/include/c++/14/streambuf" 3 29724: pos_type 29724: pubseekpos(pos_type __sp, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: { return this->seekpos(__sp, __mode); } 29724: 29724: 29724: 29724: 29724: int 29724: pubsync() { return this->sync(); } 29724: # 290 "/usr/include/c++/14/streambuf" 3 29724: streamsize 29724: in_avail() 29724: { 29724: const streamsize __ret = this->egptr() - this->gptr(); 29724: return __ret ? __ret : this->showmanyc(); 29724: } 29724: # 304 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: snextc() 29724: { 29724: int_type __ret = traits_type::eof(); 29724: if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), 29724: __ret), true)) 29724: __ret = this->sgetc(); 29724: return __ret; 29724: } 29724: # 322 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: sbumpc() 29724: { 29724: int_type __ret; 29724: if (__builtin_expect(this->gptr() < this->egptr(), true)) 29724: { 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: this->gbump(1); 29724: } 29724: else 29724: __ret = this->uflow(); 29724: return __ret; 29724: } 29724: # 344 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: sgetc() 29724: { 29724: int_type __ret; 29724: if (__builtin_expect(this->gptr() < this->egptr(), true)) 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: else 29724: __ret = this->underflow(); 29724: return __ret; 29724: } 29724: # 363 "/usr/include/c++/14/streambuf" 3 29724: streamsize 29724: sgetn(char_type* __s, streamsize __n) 29724: { return this->xsgetn(__s, __n); } 29724: # 378 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: sputbackc(char_type __c) 29724: { 29724: int_type __ret; 29724: const bool __testpos = this->eback() < this->gptr(); 29724: if (__builtin_expect(!__testpos || 29724: !traits_type::eq(__c, this->gptr()[-1]), false)) 29724: __ret = this->pbackfail(traits_type::to_int_type(__c)); 29724: else 29724: { 29724: this->gbump(-1); 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: } 29724: return __ret; 29724: } 29724: # 403 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: sungetc() 29724: { 29724: int_type __ret; 29724: if (__builtin_expect(this->eback() < this->gptr(), true)) 29724: { 29724: this->gbump(-1); 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: } 29724: else 29724: __ret = this->pbackfail(); 29724: return __ret; 29724: } 29724: # 430 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: sputc(char_type __c) 29724: { 29724: int_type __ret; 29724: if (__builtin_expect(this->pptr() < this->epptr(), true)) 29724: { 29724: *this->pptr() = __c; 29724: this->pbump(1); 29724: __ret = traits_type::to_int_type(__c); 29724: } 29724: else 29724: __ret = this->overflow(traits_type::to_int_type(__c)); 29724: return __ret; 29724: } 29724: # 456 "/usr/include/c++/14/streambuf" 3 29724: streamsize 29724: sputn(const char_type* __s, streamsize __n) 29724: { return this->xsputn(__s, __n); } 29724: 29724: protected: 29724: # 470 "/usr/include/c++/14/streambuf" 3 29724: basic_streambuf() 29724: : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), 29724: _M_out_beg(0), _M_out_cur(0), _M_out_end(0), 29724: _M_buf_locale(locale()) 29724: { } 29724: # 488 "/usr/include/c++/14/streambuf" 3 29724: char_type* 29724: eback() const { return _M_in_beg; } 29724: 29724: char_type* 29724: gptr() const { return _M_in_cur; } 29724: 29724: char_type* 29724: egptr() const { return _M_in_end; } 29724: # 504 "/usr/include/c++/14/streambuf" 3 29724: void 29724: gbump(int __n) { _M_in_cur += __n; } 29724: # 515 "/usr/include/c++/14/streambuf" 3 29724: void 29724: setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) 29724: { 29724: _M_in_beg = __gbeg; 29724: _M_in_cur = __gnext; 29724: _M_in_end = __gend; 29724: } 29724: # 535 "/usr/include/c++/14/streambuf" 3 29724: char_type* 29724: pbase() const { return _M_out_beg; } 29724: 29724: char_type* 29724: pptr() const { return _M_out_cur; } 29724: 29724: char_type* 29724: epptr() const { return _M_out_end; } 29724: # 551 "/usr/include/c++/14/streambuf" 3 29724: void 29724: pbump(int __n) { _M_out_cur += __n; } 29724: # 561 "/usr/include/c++/14/streambuf" 3 29724: void 29724: setp(char_type* __pbeg, char_type* __pend) 29724: { 29724: _M_out_beg = _M_out_cur = __pbeg; 29724: _M_out_end = __pend; 29724: } 29724: # 582 "/usr/include/c++/14/streambuf" 3 29724: virtual void 29724: imbue(const locale& __loc __attribute__ ((__unused__))) 29724: { } 29724: # 597 "/usr/include/c++/14/streambuf" 3 29724: virtual basic_streambuf* 29724: setbuf(char_type*, streamsize) 29724: { return this; } 29724: # 608 "/usr/include/c++/14/streambuf" 3 29724: virtual pos_type 29724: seekoff(off_type, ios_base::seekdir, 29724: ios_base::openmode = ios_base::in | ios_base::out) 29724: { return pos_type(off_type(-1)); } 29724: # 620 "/usr/include/c++/14/streambuf" 3 29724: virtual pos_type 29724: seekpos(pos_type, 29724: ios_base::openmode = ios_base::in | ios_base::out) 29724: { return pos_type(off_type(-1)); } 29724: # 633 "/usr/include/c++/14/streambuf" 3 29724: virtual int 29724: sync() { return 0; } 29724: # 655 "/usr/include/c++/14/streambuf" 3 29724: virtual streamsize 29724: showmanyc() { return 0; } 29724: # 671 "/usr/include/c++/14/streambuf" 3 29724: virtual streamsize 29724: xsgetn(char_type* __s, streamsize __n); 29724: # 693 "/usr/include/c++/14/streambuf" 3 29724: virtual int_type 29724: underflow() 29724: { return traits_type::eof(); } 29724: # 706 "/usr/include/c++/14/streambuf" 3 29724: virtual int_type 29724: uflow() 29724: { 29724: int_type __ret = traits_type::eof(); 29724: const bool __testeof = traits_type::eq_int_type(this->underflow(), 29724: __ret); 29724: if (!__testeof) 29724: { 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: this->gbump(1); 29724: } 29724: return __ret; 29724: } 29724: # 730 "/usr/include/c++/14/streambuf" 3 29724: virtual int_type 29724: pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 29724: { return traits_type::eof(); } 29724: # 748 "/usr/include/c++/14/streambuf" 3 29724: virtual streamsize 29724: xsputn(const char_type* __s, streamsize __n); 29724: # 774 "/usr/include/c++/14/streambuf" 3 29724: virtual int_type 29724: overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 29724: { return traits_type::eof(); } 29724: # 801 "/usr/include/c++/14/streambuf" 3 29724: void 29724: __safe_gbump(streamsize __n) { _M_in_cur += __n; } 29724: 29724: void 29724: __safe_pbump(streamsize __n) { _M_out_cur += __n; } 29724: 29724: 29724: 29724: 29724: protected: 29724: 29724: basic_streambuf(const basic_streambuf&); 29724: 29724: basic_streambuf& 29724: operator=(const basic_streambuf&); 29724: 29724: 29724: void 29724: swap(basic_streambuf& __sb) 29724: { 29724: std::swap(_M_in_beg, __sb._M_in_beg); 29724: std::swap(_M_in_cur, __sb._M_in_cur); 29724: std::swap(_M_in_end, __sb._M_in_end); 29724: std::swap(_M_out_beg, __sb._M_out_beg); 29724: std::swap(_M_out_cur, __sb._M_out_cur); 29724: std::swap(_M_out_end, __sb._M_out_end); 29724: std::swap(_M_buf_locale, __sb._M_buf_locale); 29724: } 29724: 29724: }; 29724: 29724: 29724: template 29724: std::basic_streambuf<_CharT, _Traits>:: 29724: basic_streambuf(const basic_streambuf&) = default; 29724: 29724: template 29724: std::basic_streambuf<_CharT, _Traits>& 29724: std::basic_streambuf<_CharT, _Traits>:: 29724: operator=(const basic_streambuf&) = default; 29724: 29724: 29724: 29724: template<> 29724: streamsize 29724: __copy_streambufs_eof(basic_streambuf* __sbin, 29724: basic_streambuf* __sbout, bool& __ineof); 29724: 29724: template<> 29724: streamsize 29724: __copy_streambufs_eof(basic_streambuf* __sbin, 29724: basic_streambuf* __sbout, bool& __ineof); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/streambuf.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/streambuf.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/streambuf.tcc" 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: streamsize 29724: basic_streambuf<_CharT, _Traits>:: 29724: xsgetn(char_type* __s, streamsize __n) 29724: { 29724: streamsize __ret = 0; 29724: while (__ret < __n) 29724: { 29724: const streamsize __buf_len = this->egptr() - this->gptr(); 29724: if (__buf_len) 29724: { 29724: const streamsize __remaining = __n - __ret; 29724: const streamsize __len = std::min(__buf_len, __remaining); 29724: traits_type::copy(__s, this->gptr(), __len); 29724: __ret += __len; 29724: __s += __len; 29724: this->__safe_gbump(__len); 29724: } 29724: 29724: if (__ret < __n) 29724: { 29724: const int_type __c = this->uflow(); 29724: if (!traits_type::eq_int_type(__c, traits_type::eof())) 29724: { 29724: traits_type::assign(*__s++, traits_type::to_char_type(__c)); 29724: ++__ret; 29724: } 29724: else 29724: break; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: streamsize 29724: basic_streambuf<_CharT, _Traits>:: 29724: xsputn(const char_type* __s, streamsize __n) 29724: { 29724: streamsize __ret = 0; 29724: while (__ret < __n) 29724: { 29724: const streamsize __buf_len = this->epptr() - this->pptr(); 29724: if (__buf_len) 29724: { 29724: const streamsize __remaining = __n - __ret; 29724: const streamsize __len = std::min(__buf_len, __remaining); 29724: traits_type::copy(this->pptr(), __s, __len); 29724: __ret += __len; 29724: __s += __len; 29724: this->__safe_pbump(__len); 29724: } 29724: 29724: if (__ret < __n) 29724: { 29724: int_type __c = this->overflow(traits_type::to_int_type(*__s)); 29724: if (!traits_type::eq_int_type(__c, traits_type::eof())) 29724: { 29724: ++__ret; 29724: ++__s; 29724: } 29724: else 29724: break; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: streamsize 29724: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, 29724: basic_streambuf<_CharT, _Traits>* __sbout, 29724: bool& __ineof) 29724: { 29724: streamsize __ret = 0; 29724: __ineof = true; 29724: typename _Traits::int_type __c = __sbin->sgetc(); 29724: while (!_Traits::eq_int_type(__c, _Traits::eof())) 29724: { 29724: __c = __sbout->sputc(_Traits::to_char_type(__c)); 29724: if (_Traits::eq_int_type(__c, _Traits::eof())) 29724: { 29724: __ineof = false; 29724: break; 29724: } 29724: ++__ret; 29724: __c = __sbin->snextc(); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: inline streamsize 29724: __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, 29724: basic_streambuf<_CharT, _Traits>* __sbout) 29724: { 29724: bool __ineof; 29724: return __copy_streambufs_eof(__sbin, __sbout, __ineof); 29724: } 29724: 29724: 29724: 29724: 29724: extern template class basic_streambuf; 29724: 29724: extern template 29724: streamsize 29724: __copy_streambufs(basic_streambuf*, 29724: basic_streambuf*); 29724: 29724: 29724: extern template class basic_streambuf; 29724: 29724: extern template 29724: streamsize 29724: __copy_streambufs(basic_streambuf*, 29724: basic_streambuf*); 29724: 29724: 29724: 29724: 29724: } 29724: # 861 "/usr/include/c++/14/streambuf" 2 3 29724: # 46 "/usr/include/c++/14/ios" 2 3 29724: # 1 "/usr/include/c++/14/bits/basic_ios.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/locale_facets.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: 29724: # 1 "/usr/include/c++/14/cwctype" 1 3 29724: # 39 "/usr/include/c++/14/cwctype" 3 29724: 29724: # 40 "/usr/include/c++/14/cwctype" 3 29724: # 50 "/usr/include/c++/14/cwctype" 3 29724: # 1 "/usr/include/wctype.h" 1 3 4 29724: # 38 "/usr/include/wctype.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 1 3 4 29724: # 38 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29724: typedef unsigned long int wctype_t; 29724: # 56 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29724: enum 29724: { 29724: __ISwupper = 0, 29724: __ISwlower = 1, 29724: __ISwalpha = 2, 29724: __ISwdigit = 3, 29724: __ISwxdigit = 4, 29724: __ISwspace = 5, 29724: __ISwprint = 6, 29724: __ISwgraph = 7, 29724: __ISwblank = 8, 29724: __ISwcntrl = 9, 29724: __ISwpunct = 10, 29724: __ISwalnum = 11, 29724: 29724: _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), 29724: _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), 29724: _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), 29724: _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), 29724: _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), 29724: _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), 29724: _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), 29724: _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), 29724: _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), 29724: _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), 29724: _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), 29724: _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) 29724: }; 29724: 29724: 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int iswalnum (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int iswalpha (wint_t __wc) noexcept (true); 29724: 29724: 29724: extern int iswcntrl (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: extern int iswdigit (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: extern int iswgraph (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswlower (wint_t __wc) noexcept (true); 29724: 29724: 29724: extern int iswprint (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswpunct (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswspace (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswupper (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswxdigit (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int iswblank (wint_t __wc) noexcept (true); 29724: # 155 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29724: extern wctype_t wctype (const char *__property) noexcept (true); 29724: 29724: 29724: 29724: extern int iswctype (wint_t __wc, wctype_t __desc) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t towlower (wint_t __wc) noexcept (true); 29724: 29724: 29724: extern wint_t towupper (wint_t __wc) noexcept (true); 29724: 29724: } 29724: # 39 "/usr/include/wctype.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: typedef const __int32_t *wctrans_t; 29724: 29724: 29724: 29724: extern wctrans_t wctrans (const char *__property) noexcept (true); 29724: 29724: 29724: extern wint_t towctrans (wint_t __wc, wctrans_t __desc) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int iswalnum_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int iswalpha_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: extern int iswcntrl_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: extern int iswdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: extern int iswgraph_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswlower_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: extern int iswprint_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswpunct_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswspace_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswupper_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswxdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswblank_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: extern wctype_t wctype_l (const char *__property, locale_t __locale) 29724: noexcept (true); 29724: 29724: 29724: 29724: extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t towlower_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: extern wint_t towupper_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: extern wctrans_t wctrans_l (const char *__property, locale_t __locale) 29724: noexcept (true); 29724: 29724: 29724: extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, 29724: locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: } 29724: # 51 "/usr/include/c++/14/cwctype" 2 3 29724: # 80 "/usr/include/c++/14/cwctype" 3 29724: namespace std 29724: { 29724: using ::wctrans_t; 29724: using ::wctype_t; 29724: using ::wint_t; 29724: 29724: using ::iswalnum; 29724: using ::iswalpha; 29724: 29724: using ::iswblank; 29724: 29724: using ::iswcntrl; 29724: using ::iswctype; 29724: using ::iswdigit; 29724: using ::iswgraph; 29724: using ::iswlower; 29724: using ::iswprint; 29724: using ::iswpunct; 29724: using ::iswspace; 29724: using ::iswupper; 29724: using ::iswxdigit; 29724: using ::towctrans; 29724: using ::towlower; 29724: using ::towupper; 29724: using ::wctrans; 29724: using ::wctype; 29724: } 29724: # 40 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: # 1 "/usr/include/c++/14/cctype" 1 3 29724: # 39 "/usr/include/c++/14/cctype" 3 29724: 29724: # 40 "/usr/include/c++/14/cctype" 3 29724: # 41 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 1 3 29724: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: struct ctype_base 29724: { 29724: 29724: typedef const int* __to_type; 29724: 29724: 29724: 29724: typedef unsigned short mask; 29724: static const mask upper = _ISupper; 29724: static const mask lower = _ISlower; 29724: static const mask alpha = _ISalpha; 29724: static const mask digit = _ISdigit; 29724: static const mask xdigit = _ISxdigit; 29724: static const mask space = _ISspace; 29724: static const mask print = _ISprint; 29724: static const mask graph = _ISalpha | _ISdigit | _ISpunct; 29724: static const mask cntrl = _IScntrl; 29724: static const mask punct = _ISpunct; 29724: static const mask alnum = _ISalpha | _ISdigit; 29724: 29724: static const mask blank = _ISblank; 29724: 29724: }; 29724: 29724: 29724: } 29724: # 42 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/streambuf_iterator.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 49 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: class istreambuf_iterator 29724: : public iterator 29724: { 29724: public: 29724: # 70 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 29724: typedef basic_istream<_CharT, _Traits> istream_type; 29724: 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: ostreambuf_iterator<_CharT2> >::__type 29724: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29724: ostreambuf_iterator<_CharT2>); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: _CharT2*>::__type 29724: __copy_move_a2(istreambuf_iterator<_CharT2>, 29724: istreambuf_iterator<_CharT2>, _CharT2*); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: _CharT2*>::__type 29724: __copy_n_a(istreambuf_iterator<_CharT2>, _Size, _CharT2*, bool); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: istreambuf_iterator<_CharT2> >::__type 29724: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29724: const _CharT2&); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: void>::__type 29724: advance(istreambuf_iterator<_CharT2>&, _Distance); 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: mutable streambuf_type* _M_sbuf; 29724: int_type _M_c; 29724: 29724: public: 29724: 29724: constexpr istreambuf_iterator() noexcept 29724: : _M_sbuf(0), _M_c(traits_type::eof()) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: istreambuf_iterator(const istreambuf_iterator&) noexcept = default; 29724: 29724: ~istreambuf_iterator() = default; 29724: 29724: 29724: 29724: istreambuf_iterator(istream_type& __s) noexcept 29724: : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } 29724: 29724: 29724: istreambuf_iterator(streambuf_type* __s) noexcept 29724: : _M_sbuf(__s), _M_c(traits_type::eof()) { } 29724: 29724: 29724: istreambuf_iterator& 29724: operator=(const istreambuf_iterator&) noexcept = default; 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: char_type 29724: operator*() const 29724: { 29724: int_type __c = _M_get(); 29724: # 161 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: return traits_type::to_char_type(__c); 29724: } 29724: 29724: 29724: istreambuf_iterator& 29724: operator++() 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: _M_sbuf->sbumpc(); 29724: _M_c = traits_type::eof(); 29724: return *this; 29724: } 29724: 29724: 29724: istreambuf_iterator 29724: operator++(int) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: istreambuf_iterator __old = *this; 29724: __old._M_c = _M_sbuf->sbumpc(); 29724: _M_c = traits_type::eof(); 29724: return __old; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: bool 29724: equal(const istreambuf_iterator& __b) const 29724: { return _M_at_eof() == __b._M_at_eof(); } 29724: 29724: private: 29724: int_type 29724: _M_get() const 29724: { 29724: int_type __ret = _M_c; 29724: if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) 29724: _M_sbuf = 0; 29724: return __ret; 29724: } 29724: 29724: bool 29724: _M_at_eof() const 29724: { return _S_is_eof(_M_get()); } 29724: 29724: static bool 29724: _S_is_eof(int_type __c) 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: return traits_type::eq_int_type(__c, __eof); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const istreambuf_iterator<_CharT, _Traits>& __a, 29724: const istreambuf_iterator<_CharT, _Traits>& __b) 29724: { return __a.equal(__b); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, 29724: const istreambuf_iterator<_CharT, _Traits>& __b) 29724: { return !__a.equal(__b); } 29724: 29724: 29724: 29724: template 29724: class ostreambuf_iterator 29724: : public iterator 29724: { 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 29724: typedef basic_ostream<_CharT, _Traits> ostream_type; 29724: 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: ostreambuf_iterator<_CharT2> >::__type 29724: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29724: ostreambuf_iterator<_CharT2>); 29724: 29724: private: 29724: streambuf_type* _M_sbuf; 29724: bool _M_failed; 29724: 29724: public: 29724: # 284 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: ostreambuf_iterator(ostream_type& __s) noexcept 29724: : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } 29724: 29724: 29724: ostreambuf_iterator(streambuf_type* __s) noexcept 29724: : _M_sbuf(__s), _M_failed(!_M_sbuf) { } 29724: 29724: 29724: ostreambuf_iterator& 29724: operator=(_CharT __c) 29724: { 29724: if (!_M_failed && 29724: _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) 29724: _M_failed = true; 29724: return *this; 29724: } 29724: 29724: 29724: [[__nodiscard__]] 29724: ostreambuf_iterator& 29724: operator*() 29724: { return *this; } 29724: 29724: 29724: ostreambuf_iterator& 29724: operator++(int) 29724: { return *this; } 29724: 29724: 29724: ostreambuf_iterator& 29724: operator++() 29724: { return *this; } 29724: 29724: 29724: [[__nodiscard__]] 29724: bool 29724: failed() const noexcept 29724: { return _M_failed; } 29724: 29724: ostreambuf_iterator& 29724: _M_put(const _CharT* __ws, streamsize __len) 29724: { 29724: if (__builtin_expect(!_M_failed, true) 29724: && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, 29724: false)) 29724: _M_failed = true; 29724: return *this; 29724: } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: ostreambuf_iterator<_CharT> >::__type 29724: copy(istreambuf_iterator<_CharT> __first, 29724: istreambuf_iterator<_CharT> __last, 29724: ostreambuf_iterator<_CharT> __result) 29724: { 29724: if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) 29724: { 29724: bool __ineof; 29724: __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); 29724: if (!__ineof) 29724: __result._M_failed = true; 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: ostreambuf_iterator<_CharT> >::__type 29724: __copy_move_a2(_CharT* __first, _CharT* __last, 29724: ostreambuf_iterator<_CharT> __result) 29724: { 29724: const streamsize __num = __last - __first; 29724: if (__num > 0) 29724: __result._M_put(__first, __num); 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: ostreambuf_iterator<_CharT> >::__type 29724: __copy_move_a2(const _CharT* __first, const _CharT* __last, 29724: ostreambuf_iterator<_CharT> __result) 29724: { 29724: const streamsize __num = __last - __first; 29724: if (__num > 0) 29724: __result._M_put(__first, __num); 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: _CharT*>::__type 29724: __copy_move_a2(istreambuf_iterator<_CharT> __first, 29724: istreambuf_iterator<_CharT> __last, _CharT* __result) 29724: { 29724: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29724: typedef typename __is_iterator_type::traits_type traits_type; 29724: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29724: typedef typename traits_type::int_type int_type; 29724: 29724: if (__first._M_sbuf && !__last._M_sbuf) 29724: { 29724: streambuf_type* __sb = __first._M_sbuf; 29724: int_type __c = __sb->sgetc(); 29724: while (!traits_type::eq_int_type(__c, traits_type::eof())) 29724: { 29724: const streamsize __n = __sb->egptr() - __sb->gptr(); 29724: if (__n > 1) 29724: { 29724: traits_type::copy(__result, __sb->gptr(), __n); 29724: __sb->__safe_gbump(__n); 29724: __result += __n; 29724: __c = __sb->underflow(); 29724: } 29724: else 29724: { 29724: *__result++ = traits_type::to_char_type(__c); 29724: __c = __sb->snextc(); 29724: } 29724: } 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: _CharT*>::__type 29724: __copy_n_a(istreambuf_iterator<_CharT> __it, _Size __n, _CharT* __result, 29724: bool __strict __attribute__((__unused__))) 29724: { 29724: if (__n == 0) 29724: return __result; 29724: 29724: 29724: 29724: ; 29724: _CharT* __beg = __result; 29724: __result += __it._M_sbuf->sgetn(__beg, __n); 29724: 29724: 29724: ; 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: istreambuf_iterator<_CharT> >::__type 29724: find(istreambuf_iterator<_CharT> __first, 29724: istreambuf_iterator<_CharT> __last, const _CharT& __val) 29724: { 29724: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29724: typedef typename __is_iterator_type::traits_type traits_type; 29724: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29724: typedef typename traits_type::int_type int_type; 29724: const int_type __eof = traits_type::eof(); 29724: 29724: if (__first._M_sbuf && !__last._M_sbuf) 29724: { 29724: const int_type __ival = traits_type::to_int_type(__val); 29724: streambuf_type* __sb = __first._M_sbuf; 29724: int_type __c = __sb->sgetc(); 29724: while (!traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __ival)) 29724: { 29724: streamsize __n = __sb->egptr() - __sb->gptr(); 29724: if (__n > 1) 29724: { 29724: const _CharT* __p = traits_type::find(__sb->gptr(), 29724: __n, __val); 29724: if (__p) 29724: __n = __p - __sb->gptr(); 29724: __sb->__safe_gbump(__n); 29724: __c = __sb->sgetc(); 29724: } 29724: else 29724: __c = __sb->snextc(); 29724: } 29724: 29724: __first._M_c = __eof; 29724: } 29724: 29724: return __first; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: void>::__type 29724: advance(istreambuf_iterator<_CharT>& __i, _Distance __n) 29724: { 29724: if (__n == 0) 29724: return; 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__n > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: 29724: ; 29724: 29724: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29724: typedef typename __is_iterator_type::traits_type traits_type; 29724: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29724: typedef typename traits_type::int_type int_type; 29724: const int_type __eof = traits_type::eof(); 29724: 29724: streambuf_type* __sb = __i._M_sbuf; 29724: while (__n > 0) 29724: { 29724: streamsize __size = __sb->egptr() - __sb->gptr(); 29724: if (__size > __n) 29724: { 29724: __sb->__safe_gbump(__n); 29724: break; 29724: } 29724: 29724: __sb->__safe_gbump(__size); 29724: __n -= __size; 29724: if (traits_type::eq_int_type(__sb->underflow(), __eof)) 29724: { 29724: 29724: 29724: ; 29724: break; 29724: } 29724: } 29724: 29724: __i._M_c = __eof; 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 49 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 74 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: void 29724: __convert_to_v(const char*, _Tp&, ios_base::iostate&, 29724: const __c_locale&) throw(); 29724: 29724: 29724: template<> 29724: void 29724: __convert_to_v(const char*, float&, ios_base::iostate&, 29724: const __c_locale&) throw(); 29724: 29724: template<> 29724: void 29724: __convert_to_v(const char*, double&, ios_base::iostate&, 29724: const __c_locale&) throw(); 29724: 29724: template<> 29724: void 29724: __convert_to_v(const char*, long double&, ios_base::iostate&, 29724: const __c_locale&) throw(); 29724: 29724: 29724: 29724: template 29724: struct __pad 29724: { 29724: static void 29724: _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, 29724: const _CharT* __olds, streamsize __newlen, streamsize __oldlen); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _CharT* 29724: __add_grouping(_CharT* __s, _CharT __sep, 29724: const char* __gbeg, size_t __gsize, 29724: const _CharT* __first, const _CharT* __last); 29724: 29724: 29724: 29724: 29724: template 29724: inline 29724: ostreambuf_iterator<_CharT> 29724: __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) 29724: { 29724: __s._M_put(__ws, __len); 29724: return __s; 29724: } 29724: 29724: 29724: template 29724: inline 29724: _OutIter 29724: __write(_OutIter __s, const _CharT* __ws, int __len) 29724: { 29724: for (int __j = 0; __j < __len; __j++, ++__s) 29724: *__s = __ws[__j]; 29724: return __s; 29724: } 29724: # 152 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: class __ctype_abstract_base : public locale::facet, public ctype_base 29724: { 29724: public: 29724: 29724: 29724: typedef _CharT char_type; 29724: # 171 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: bool 29724: is(mask __m, char_type __c) const 29724: { return this->do_is(__m, __c); } 29724: # 188 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: is(const char_type *__lo, const char_type *__hi, mask *__vec) const 29724: { return this->do_is(__lo, __hi, __vec); } 29724: # 204 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: scan_is(mask __m, const char_type* __lo, const char_type* __hi) const 29724: { return this->do_scan_is(__m, __lo, __hi); } 29724: # 220 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: scan_not(mask __m, const char_type* __lo, const char_type* __hi) const 29724: { return this->do_scan_not(__m, __lo, __hi); } 29724: # 234 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: toupper(char_type __c) const 29724: { return this->do_toupper(__c); } 29724: # 249 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: toupper(char_type *__lo, const char_type* __hi) const 29724: { return this->do_toupper(__lo, __hi); } 29724: # 263 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: tolower(char_type __c) const 29724: { return this->do_tolower(__c); } 29724: # 278 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: tolower(char_type* __lo, const char_type* __hi) const 29724: { return this->do_tolower(__lo, __hi); } 29724: # 295 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: widen(char __c) const 29724: { return this->do_widen(__c); } 29724: # 314 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char* 29724: widen(const char* __lo, const char* __hi, char_type* __to) const 29724: { return this->do_widen(__lo, __hi, __to); } 29724: # 333 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char 29724: narrow(char_type __c, char __dfault) const 29724: { return this->do_narrow(__c, __dfault); } 29724: # 355 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault, char* __to) const 29724: { return this->do_narrow(__lo, __hi, __dfault, __to); } 29724: 29724: protected: 29724: explicit 29724: __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } 29724: 29724: virtual 29724: ~__ctype_abstract_base() { } 29724: # 380 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual bool 29724: do_is(mask __m, char_type __c) const = 0; 29724: # 399 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_is(const char_type* __lo, const char_type* __hi, 29724: mask* __vec) const = 0; 29724: # 418 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_scan_is(mask __m, const char_type* __lo, 29724: const char_type* __hi) const = 0; 29724: # 437 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_scan_not(mask __m, const char_type* __lo, 29724: const char_type* __hi) const = 0; 29724: # 455 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_toupper(char_type __c) const = 0; 29724: # 472 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_toupper(char_type* __lo, const char_type* __hi) const = 0; 29724: # 488 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_tolower(char_type __c) const = 0; 29724: # 505 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_tolower(char_type* __lo, const char_type* __hi) const = 0; 29724: # 524 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_widen(char __c) const = 0; 29724: # 545 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char* 29724: do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; 29724: # 566 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char 29724: do_narrow(char_type __c, char __dfault) const = 0; 29724: # 591 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault, char* __to) const = 0; 29724: }; 29724: # 614 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: class ctype : public __ctype_abstract_base<_CharT> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef typename __ctype_abstract_base<_CharT>::mask mask; 29724: 29724: 29724: static locale::id id; 29724: 29724: explicit 29724: ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } 29724: 29724: protected: 29724: virtual 29724: ~ctype(); 29724: 29724: virtual bool 29724: do_is(mask __m, char_type __c) const; 29724: 29724: virtual const char_type* 29724: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 29724: 29724: virtual const char_type* 29724: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 29724: 29724: virtual const char_type* 29724: do_scan_not(mask __m, const char_type* __lo, 29724: const char_type* __hi) const; 29724: 29724: virtual char_type 29724: do_toupper(char_type __c) const; 29724: 29724: virtual const char_type* 29724: do_toupper(char_type* __lo, const char_type* __hi) const; 29724: 29724: virtual char_type 29724: do_tolower(char_type __c) const; 29724: 29724: virtual const char_type* 29724: do_tolower(char_type* __lo, const char_type* __hi) const; 29724: 29724: virtual char_type 29724: do_widen(char __c) const; 29724: 29724: virtual const char* 29724: do_widen(const char* __lo, const char* __hi, char_type* __dest) const; 29724: 29724: virtual char 29724: do_narrow(char_type, char __dfault) const; 29724: 29724: virtual const char_type* 29724: do_narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault, char* __to) const; 29724: }; 29724: 29724: template 29724: locale::id ctype<_CharT>::id; 29724: 29724: 29724: 29724: template 29724: class ctype >; 29724: # 688 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template<> 29724: class ctype : public locale::facet, public ctype_base 29724: { 29724: public: 29724: 29724: 29724: typedef char char_type; 29724: 29724: protected: 29724: 29724: __c_locale _M_c_locale_ctype; 29724: bool _M_del; 29724: __to_type _M_toupper; 29724: __to_type _M_tolower; 29724: const mask* _M_table; 29724: mutable char _M_widen_ok; 29724: mutable char _M_widen[1 + static_cast(-1)]; 29724: mutable char _M_narrow[1 + static_cast(-1)]; 29724: mutable char _M_narrow_ok; 29724: 29724: 29724: public: 29724: 29724: static locale::id id; 29724: 29724: static const size_t table_size = 1 + static_cast(-1); 29724: # 725 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); 29724: # 738 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, 29724: size_t __refs = 0); 29724: # 751 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: inline bool 29724: is(mask __m, char __c) const; 29724: # 766 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: inline const char* 29724: is(const char* __lo, const char* __hi, mask* __vec) const; 29724: # 780 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: inline const char* 29724: scan_is(mask __m, const char* __lo, const char* __hi) const; 29724: # 794 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: inline const char* 29724: scan_not(mask __m, const char* __lo, const char* __hi) const; 29724: # 809 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: toupper(char_type __c) const 29724: { return this->do_toupper(__c); } 29724: # 826 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: toupper(char_type *__lo, const char_type* __hi) const 29724: { return this->do_toupper(__lo, __hi); } 29724: # 842 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: tolower(char_type __c) const 29724: { return this->do_tolower(__c); } 29724: # 859 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: tolower(char_type* __lo, const char_type* __hi) const 29724: { return this->do_tolower(__lo, __hi); } 29724: # 879 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: widen(char __c) const 29724: { 29724: if (_M_widen_ok) 29724: return _M_widen[static_cast(__c)]; 29724: this->_M_widen_init(); 29724: return this->do_widen(__c); 29724: } 29724: # 906 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char* 29724: widen(const char* __lo, const char* __hi, char_type* __to) const 29724: { 29724: if (_M_widen_ok == 1) 29724: { 29724: if (__builtin_expect(__hi != __lo, true)) 29724: __builtin_memcpy(__to, __lo, __hi - __lo); 29724: return __hi; 29724: } 29724: if (!_M_widen_ok) 29724: _M_widen_init(); 29724: return this->do_widen(__lo, __hi, __to); 29724: } 29724: # 938 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char 29724: narrow(char_type __c, char __dfault) const 29724: { 29724: if (_M_narrow[static_cast(__c)]) 29724: return _M_narrow[static_cast(__c)]; 29724: const char __t = do_narrow(__c, __dfault); 29724: if (__t != __dfault) 29724: _M_narrow[static_cast(__c)] = __t; 29724: return __t; 29724: } 29724: # 971 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault, char* __to) const 29724: { 29724: if (__builtin_expect(_M_narrow_ok == 1, true)) 29724: { 29724: if (__builtin_expect(__hi != __lo, true)) 29724: __builtin_memcpy(__to, __lo, __hi - __lo); 29724: return __hi; 29724: } 29724: if (!_M_narrow_ok) 29724: _M_narrow_init(); 29724: return this->do_narrow(__lo, __hi, __dfault, __to); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: const mask* 29724: table() const throw() 29724: { return _M_table; } 29724: 29724: 29724: static const mask* 29724: classic_table() throw(); 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual 29724: ~ctype(); 29724: # 1021 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_toupper(char_type __c) const; 29724: # 1038 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_toupper(char_type* __lo, const char_type* __hi) const; 29724: # 1054 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_tolower(char_type __c) const; 29724: # 1071 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_tolower(char_type* __lo, const char_type* __hi) const; 29724: # 1091 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_widen(char __c) const 29724: { return __c; } 29724: # 1114 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char* 29724: do_widen(const char* __lo, const char* __hi, char_type* __to) const 29724: { 29724: if (__builtin_expect(__hi != __lo, true)) 29724: __builtin_memcpy(__to, __lo, __hi - __lo); 29724: return __hi; 29724: } 29724: # 1141 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char 29724: do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const 29724: { return __c; } 29724: # 1167 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault __attribute__((__unused__)), char* __to) const 29724: { 29724: if (__builtin_expect(__hi != __lo, true)) 29724: __builtin_memcpy(__to, __lo, __hi - __lo); 29724: return __hi; 29724: } 29724: 29724: private: 29724: void _M_narrow_init() const; 29724: void _M_widen_init() const; 29724: }; 29724: # 1193 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template<> 29724: class ctype : public __ctype_abstract_base 29724: { 29724: public: 29724: 29724: 29724: typedef wchar_t char_type; 29724: typedef wctype_t __wmask_type; 29724: 29724: protected: 29724: __c_locale _M_c_locale_ctype; 29724: 29724: 29724: bool _M_narrow_ok; 29724: char _M_narrow[128]; 29724: wint_t _M_widen[1 + static_cast(-1)]; 29724: 29724: 29724: mask _M_bit[16]; 29724: __wmask_type _M_wmask[16]; 29724: 29724: public: 29724: 29724: 29724: static locale::id id; 29724: # 1226 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: ctype(size_t __refs = 0); 29724: # 1237 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: ctype(__c_locale __cloc, size_t __refs = 0); 29724: 29724: protected: 29724: __wmask_type 29724: _M_convert_to_wmask(const mask __m) const throw(); 29724: 29724: 29724: virtual 29724: ~ctype(); 29724: # 1261 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual bool 29724: do_is(mask __m, char_type __c) const; 29724: # 1280 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 29724: # 1298 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 29724: # 1316 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_scan_not(mask __m, const char_type* __lo, 29724: const char_type* __hi) const; 29724: # 1333 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_toupper(char_type __c) const; 29724: # 1350 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_toupper(char_type* __lo, const char_type* __hi) const; 29724: # 1366 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_tolower(char_type __c) const; 29724: # 1383 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_tolower(char_type* __lo, const char_type* __hi) const; 29724: # 1403 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_widen(char __c) const; 29724: # 1425 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char* 29724: do_widen(const char* __lo, const char* __hi, char_type* __to) const; 29724: # 1448 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char 29724: do_narrow(char_type __c, char __dfault) const; 29724: # 1474 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault, char* __to) const; 29724: 29724: 29724: void 29724: _M_initialize_ctype() throw(); 29724: }; 29724: 29724: 29724: 29724: template 29724: class ctype_byname : public ctype<_CharT> 29724: { 29724: public: 29724: typedef typename ctype<_CharT>::mask mask; 29724: 29724: explicit 29724: ctype_byname(const char* __s, size_t __refs = 0); 29724: 29724: 29724: explicit 29724: ctype_byname(const string& __s, size_t __refs = 0) 29724: : ctype_byname(__s.c_str(), __refs) { } 29724: 29724: 29724: protected: 29724: virtual 29724: ~ctype_byname() { } 29724: }; 29724: 29724: 29724: template<> 29724: class ctype_byname : public ctype 29724: { 29724: public: 29724: explicit 29724: ctype_byname(const char* __s, size_t __refs = 0); 29724: 29724: 29724: explicit 29724: ctype_byname(const string& __s, size_t __refs = 0); 29724: 29724: 29724: protected: 29724: virtual 29724: ~ctype_byname(); 29724: }; 29724: 29724: 29724: template<> 29724: class ctype_byname : public ctype 29724: { 29724: public: 29724: explicit 29724: ctype_byname(const char* __s, size_t __refs = 0); 29724: 29724: 29724: explicit 29724: ctype_byname(const string& __s, size_t __refs = 0); 29724: 29724: 29724: protected: 29724: virtual 29724: ~ctype_byname(); 29724: }; 29724: 29724: 29724: 29724: } 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 1 3 29724: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: bool 29724: ctype:: 29724: is(mask __m, char __c) const 29724: { return _M_table[static_cast(__c)] & __m; } 29724: 29724: const char* 29724: ctype:: 29724: is(const char* __low, const char* __high, mask* __vec) const 29724: { 29724: while (__low < __high) 29724: *__vec++ = _M_table[static_cast(*__low++)]; 29724: return __high; 29724: } 29724: 29724: const char* 29724: ctype:: 29724: scan_is(mask __m, const char* __low, const char* __high) const 29724: { 29724: while (__low < __high 29724: && !(_M_table[static_cast(*__low)] & __m)) 29724: ++__low; 29724: return __low; 29724: } 29724: 29724: const char* 29724: ctype:: 29724: scan_not(mask __m, const char* __low, const char* __high) const 29724: { 29724: while (__low < __high 29724: && (_M_table[static_cast(*__low)] & __m) != 0) 29724: ++__low; 29724: return __low; 29724: } 29724: 29724: 29724: } 29724: # 1547 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: class __num_base 29724: { 29724: public: 29724: 29724: 29724: enum 29724: { 29724: _S_ominus, 29724: _S_oplus, 29724: _S_ox, 29724: _S_oX, 29724: _S_odigits, 29724: _S_odigits_end = _S_odigits + 16, 29724: _S_oudigits = _S_odigits_end, 29724: _S_oudigits_end = _S_oudigits + 16, 29724: _S_oe = _S_odigits + 14, 29724: _S_oE = _S_oudigits + 14, 29724: _S_oend = _S_oudigits_end 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static const char* _S_atoms_out; 29724: 29724: 29724: 29724: static const char* _S_atoms_in; 29724: 29724: enum 29724: { 29724: _S_iminus, 29724: _S_iplus, 29724: _S_ix, 29724: _S_iX, 29724: _S_izero, 29724: _S_ie = _S_izero + 14, 29724: _S_iE = _S_izero + 20, 29724: _S_iend = 26 29724: }; 29724: 29724: 29724: 29724: static void 29724: _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); 29724: }; 29724: 29724: template 29724: struct __numpunct_cache : public locale::facet 29724: { 29724: const char* _M_grouping; 29724: size_t _M_grouping_size; 29724: bool _M_use_grouping; 29724: const _CharT* _M_truename; 29724: size_t _M_truename_size; 29724: const _CharT* _M_falsename; 29724: size_t _M_falsename_size; 29724: _CharT _M_decimal_point; 29724: _CharT _M_thousands_sep; 29724: 29724: 29724: 29724: 29724: 29724: _CharT _M_atoms_out[__num_base::_S_oend]; 29724: 29724: 29724: 29724: 29724: 29724: _CharT _M_atoms_in[__num_base::_S_iend]; 29724: 29724: bool _M_allocated; 29724: 29724: __numpunct_cache(size_t __refs = 0) 29724: : facet(__refs), _M_grouping(0), _M_grouping_size(0), 29724: _M_use_grouping(false), 29724: _M_truename(0), _M_truename_size(0), _M_falsename(0), 29724: _M_falsename_size(0), _M_decimal_point(_CharT()), 29724: _M_thousands_sep(_CharT()), _M_allocated(false) 29724: { } 29724: 29724: ~__numpunct_cache(); 29724: 29724: void 29724: _M_cache(const locale& __loc); 29724: 29724: private: 29724: __numpunct_cache& 29724: operator=(const __numpunct_cache&); 29724: 29724: explicit 29724: __numpunct_cache(const __numpunct_cache&); 29724: }; 29724: 29724: template 29724: __numpunct_cache<_CharT>::~__numpunct_cache() 29724: { 29724: if (_M_allocated) 29724: { 29724: delete [] _M_grouping; 29724: delete [] _M_truename; 29724: delete [] _M_falsename; 29724: } 29724: } 29724: 29724: namespace __cxx11 { 29724: # 1677 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: class numpunct : public locale::facet 29724: { 29724: public: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef basic_string<_CharT> string_type; 29724: 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: 29724: protected: 29724: __cache_type* _M_data; 29724: 29724: public: 29724: 29724: static locale::id id; 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: numpunct(size_t __refs = 0) 29724: : facet(__refs), _M_data(0) 29724: { _M_initialize_numpunct(); } 29724: # 1715 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: numpunct(__cache_type* __cache, size_t __refs = 0) 29724: : facet(__refs), _M_data(__cache) 29724: { _M_initialize_numpunct(); } 29724: # 1729 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: numpunct(__c_locale __cloc, size_t __refs = 0) 29724: : facet(__refs), _M_data(0) 29724: { _M_initialize_numpunct(__cloc); } 29724: # 1743 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: decimal_point() const 29724: { return this->do_decimal_point(); } 29724: # 1756 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: thousands_sep() const 29724: { return this->do_thousands_sep(); } 29724: # 1787 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: string 29724: grouping() const 29724: { return this->do_grouping(); } 29724: # 1800 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: string_type 29724: truename() const 29724: { return this->do_truename(); } 29724: # 1813 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: string_type 29724: falsename() const 29724: { return this->do_falsename(); } 29724: 29724: protected: 29724: 29724: virtual 29724: ~numpunct(); 29724: # 1830 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_decimal_point() const 29724: { return _M_data->_M_decimal_point; } 29724: # 1842 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_thousands_sep() const 29724: { return _M_data->_M_thousands_sep; } 29724: # 1855 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual string 29724: do_grouping() const 29724: { return _M_data->_M_grouping; } 29724: # 1868 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual string_type 29724: do_truename() const 29724: { return _M_data->_M_truename; } 29724: # 1881 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual string_type 29724: do_falsename() const 29724: { return _M_data->_M_falsename; } 29724: 29724: 29724: void 29724: _M_initialize_numpunct(__c_locale __cloc = 0); 29724: }; 29724: 29724: template 29724: locale::id numpunct<_CharT>::id; 29724: 29724: template<> 29724: numpunct::~numpunct(); 29724: 29724: template<> 29724: void 29724: numpunct::_M_initialize_numpunct(__c_locale __cloc); 29724: 29724: 29724: template<> 29724: numpunct::~numpunct(); 29724: 29724: template<> 29724: void 29724: numpunct::_M_initialize_numpunct(__c_locale __cloc); 29724: 29724: 29724: 29724: template 29724: class numpunct_byname : public numpunct<_CharT> 29724: { 29724: public: 29724: typedef _CharT char_type; 29724: typedef basic_string<_CharT> string_type; 29724: 29724: explicit 29724: numpunct_byname(const char* __s, size_t __refs = 0) 29724: : numpunct<_CharT>(__refs) 29724: { 29724: if (__builtin_strcmp(__s, "C") != 0 29724: && __builtin_strcmp(__s, "POSIX") != 0) 29724: { 29724: __c_locale __tmp; 29724: this->_S_create_c_locale(__tmp, __s); 29724: this->_M_initialize_numpunct(__tmp); 29724: this->_S_destroy_c_locale(__tmp); 29724: } 29724: } 29724: 29724: 29724: explicit 29724: numpunct_byname(const string& __s, size_t __refs = 0) 29724: : numpunct_byname(__s.c_str(), __refs) { } 29724: 29724: 29724: protected: 29724: virtual 29724: ~numpunct_byname() { } 29724: }; 29724: 29724: } 29724: 29724: 29724: # 1959 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: class num_get : public locale::facet 29724: { 29724: public: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef _InIter iter_type; 29724: 29724: 29724: 29724: static locale::id id; 29724: # 1980 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: num_get(size_t __refs = 0) : facet(__refs) { } 29724: # 2006 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, bool& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: # 2043 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned short& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned int& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned long& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long long& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned long long& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: #pragma GCC diagnostic pop 29724: # 2106 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, float& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, double& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long double& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: # 2149 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, void*& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: protected: 29724: 29724: virtual ~num_get() { } 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iter_type 29724: _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, 29724: string&) const; 29724: 29724: template 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iter_type 29724: _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, 29724: _ValueT&) const; 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type 29724: _M_find(const _CharT2*, size_t __len, _CharT2 __c) const 29724: { 29724: int __ret = -1; 29724: if (__len <= 10) 29724: { 29724: if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) 29724: __ret = __c - _CharT2('0'); 29724: } 29724: else 29724: { 29724: if (__c >= _CharT2('0') && __c <= _CharT2('9')) 29724: __ret = __c - _CharT2('0'); 29724: else if (__c >= _CharT2('a') && __c <= _CharT2('f')) 29724: __ret = 10 + (__c - _CharT2('a')); 29724: else if (__c >= _CharT2('A') && __c <= _CharT2('F')) 29724: __ret = 10 + (__c - _CharT2('A')); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if::__value, 29724: int>::__type 29724: _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const 29724: { 29724: int __ret = -1; 29724: const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); 29724: if (__q) 29724: { 29724: __ret = __q - __zero; 29724: if (__ret > 15) 29724: __ret -= 6; 29724: } 29724: return __ret; 29724: } 29724: # 2222 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual iter_type 29724: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; 29724: 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned short& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned int& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned long& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long long& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned long long& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: virtual iter_type 29724: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; 29724: 29724: virtual iter_type 29724: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 29724: double&) const; 29724: # 2277 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual iter_type 29724: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 29724: long double&) const; 29724: 29724: 29724: virtual iter_type 29724: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; 29724: # 2305 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: }; 29724: 29724: template 29724: locale::id num_get<_CharT, _InIter>::id; 29724: # 2323 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: class num_put : public locale::facet 29724: { 29724: public: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef _OutIter iter_type; 29724: 29724: 29724: 29724: static locale::id id; 29724: # 2344 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: num_put(size_t __refs = 0) : facet(__refs) { } 29724: # 2362 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: # 2404 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, 29724: unsigned long __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, 29724: unsigned long long __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: #pragma GCC diagnostic pop 29724: # 2470 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, 29724: long double __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: # 2495 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, 29724: const void* __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: 29724: protected: 29724: template 29724: iter_type 29724: _M_insert_float(iter_type, ios_base& __io, char_type __fill, 29724: char __mod, _ValueT __v) const; 29724: 29724: void 29724: _M_group_float(const char* __grouping, size_t __grouping_size, 29724: char_type __sep, const char_type* __p, char_type* __new, 29724: char_type* __cs, int& __len) const; 29724: 29724: template 29724: iter_type 29724: _M_insert_int(iter_type, ios_base& __io, char_type __fill, 29724: _ValueT __v) const; 29724: 29724: void 29724: _M_group_int(const char* __grouping, size_t __grouping_size, 29724: char_type __sep, ios_base& __io, char_type* __new, 29724: char_type* __cs, int& __len) const; 29724: 29724: void 29724: _M_pad(char_type __fill, streamsize __w, ios_base& __io, 29724: char_type* __new, const char_type* __cs, int& __len) const; 29724: 29724: 29724: virtual 29724: ~num_put() { } 29724: # 2543 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual iter_type 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; 29724: 29724: virtual iter_type 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 29724: { return _M_insert_int(__s, __io, __fill, __v); } 29724: 29724: virtual iter_type 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, 29724: unsigned long __v) const 29724: { return _M_insert_int(__s, __io, __fill, __v); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: virtual iter_type 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, 29724: long long __v) const 29724: { return _M_insert_int(__s, __io, __fill, __v); } 29724: 29724: virtual iter_type 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, 29724: unsigned long long __v) const 29724: { return _M_insert_int(__s, __io, __fill, __v); } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: virtual iter_type 29724: do_put(iter_type, ios_base&, char_type, double) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual iter_type 29724: do_put(iter_type, ios_base&, char_type, long double) const; 29724: 29724: 29724: virtual iter_type 29724: do_put(iter_type, ios_base&, char_type, const void*) const; 29724: # 2598 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: }; 29724: 29724: template 29724: locale::id num_put<_CharT, _OutIter>::id; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: isspace(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::space, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isprint(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::print, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: iscntrl(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::cntrl, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isupper(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::upper, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: islower(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::lower, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isalpha(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::alpha, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isdigit(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::digit, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: ispunct(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::punct, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isxdigit(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::xdigit, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isalnum(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::alnum, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isgraph(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::graph, __c); } 29724: 29724: 29724: 29724: template 29724: inline bool 29724: isblank(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::blank, __c); } 29724: 29724: 29724: 29724: template 29724: inline _CharT 29724: toupper(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).toupper(__c); } 29724: 29724: 29724: template 29724: inline _CharT 29724: tolower(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).tolower(__c); } 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/locale_facets.tcc" 1 3 29724: # 33 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: struct __use_cache 29724: { 29724: const _Facet* 29724: operator() (const locale& __loc) const; 29724: }; 29724: 29724: 29724: template 29724: struct __use_cache<__numpunct_cache<_CharT> > 29724: { 29724: const __numpunct_cache<_CharT>* 29724: operator() (const locale& __loc) const 29724: { 29724: const size_t __i = numpunct<_CharT>::id._M_id(); 29724: const locale::facet** __caches = __loc._M_impl->_M_caches; 29724: if (!__caches[__i]) 29724: { 29724: __numpunct_cache<_CharT>* __tmp = 0; 29724: try 29724: { 29724: __tmp = new __numpunct_cache<_CharT>; 29724: __tmp->_M_cache(__loc); 29724: } 29724: catch(...) 29724: { 29724: delete __tmp; 29724: throw; 29724: } 29724: __loc._M_impl->_M_install_cache(__tmp, __i); 29724: } 29724: return static_cast*>(__caches[__i]); 29724: } 29724: }; 29724: 29724: template 29724: void 29724: __numpunct_cache<_CharT>::_M_cache(const locale& __loc) 29724: { 29724: const numpunct<_CharT>& __np = use_facet >(__loc); 29724: 29724: char* __grouping = 0; 29724: _CharT* __truename = 0; 29724: _CharT* __falsename = 0; 29724: try 29724: { 29724: const string& __g = __np.grouping(); 29724: _M_grouping_size = __g.size(); 29724: __grouping = new char[_M_grouping_size]; 29724: __g.copy(__grouping, _M_grouping_size); 29724: _M_use_grouping = (_M_grouping_size 29724: && static_cast(__grouping[0]) > 0 29724: && (__grouping[0] 29724: != __gnu_cxx::__numeric_traits::__max)); 29724: 29724: const basic_string<_CharT>& __tn = __np.truename(); 29724: _M_truename_size = __tn.size(); 29724: __truename = new _CharT[_M_truename_size]; 29724: __tn.copy(__truename, _M_truename_size); 29724: 29724: const basic_string<_CharT>& __fn = __np.falsename(); 29724: _M_falsename_size = __fn.size(); 29724: __falsename = new _CharT[_M_falsename_size]; 29724: __fn.copy(__falsename, _M_falsename_size); 29724: 29724: _M_decimal_point = __np.decimal_point(); 29724: _M_thousands_sep = __np.thousands_sep(); 29724: 29724: const ctype<_CharT>& __ct = use_facet >(__loc); 29724: __ct.widen(__num_base::_S_atoms_out, 29724: __num_base::_S_atoms_out 29724: + __num_base::_S_oend, _M_atoms_out); 29724: __ct.widen(__num_base::_S_atoms_in, 29724: __num_base::_S_atoms_in 29724: + __num_base::_S_iend, _M_atoms_in); 29724: 29724: _M_grouping = __grouping; 29724: _M_truename = __truename; 29724: _M_falsename = __falsename; 29724: _M_allocated = true; 29724: } 29724: catch(...) 29724: { 29724: delete [] __grouping; 29724: delete [] __truename; 29724: delete [] __falsename; 29724: throw; 29724: } 29724: } 29724: # 139 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: __attribute__ ((__pure__)) bool 29724: __verify_grouping(const char* __grouping, size_t __grouping_size, 29724: const string& __grouping_tmp) throw (); 29724: 29724: 29724: 29724: template 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, 29724: ios_base::iostate& __err, string& __xtrc) const 29724: { 29724: typedef char_traits<_CharT> __traits_type; 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: const _CharT* __lit = __lc->_M_atoms_in; 29724: char_type __c = char_type(); 29724: 29724: 29724: bool __testeof = __beg == __end; 29724: 29724: 29724: if (!__testeof) 29724: { 29724: __c = *__beg; 29724: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29724: if ((__plus || __c == __lit[__num_base::_S_iminus]) 29724: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: && !(__c == __lc->_M_decimal_point)) 29724: { 29724: __xtrc += __plus ? '+' : '-'; 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: } 29724: 29724: 29724: bool __found_mantissa = false; 29724: int __sep_pos = 0; 29724: while (!__testeof) 29724: { 29724: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: || __c == __lc->_M_decimal_point) 29724: break; 29724: else if (__c == __lit[__num_base::_S_izero]) 29724: { 29724: if (!__found_mantissa) 29724: { 29724: __xtrc += '0'; 29724: __found_mantissa = true; 29724: } 29724: ++__sep_pos; 29724: 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: else 29724: break; 29724: } 29724: 29724: 29724: bool __found_dec = false; 29724: bool __found_sci = false; 29724: string __found_grouping; 29724: if (__lc->_M_use_grouping) 29724: __found_grouping.reserve(32); 29724: const char_type* __lit_zero = __lit + __num_base::_S_izero; 29724: 29724: if (!__lc->_M_allocated) 29724: 29724: while (!__testeof) 29724: { 29724: const int __digit = _M_find(__lit_zero, 10, __c); 29724: if (__digit != -1) 29724: { 29724: __xtrc += '0' + __digit; 29724: __found_mantissa = true; 29724: } 29724: else if (__c == __lc->_M_decimal_point 29724: && !__found_dec && !__found_sci) 29724: { 29724: __xtrc += '.'; 29724: __found_dec = true; 29724: } 29724: else if ((__c == __lit[__num_base::_S_ie] 29724: || __c == __lit[__num_base::_S_iE]) 29724: && !__found_sci && __found_mantissa) 29724: { 29724: 29724: __xtrc += 'e'; 29724: __found_sci = true; 29724: 29724: 29724: if (++__beg != __end) 29724: { 29724: __c = *__beg; 29724: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29724: if (__plus || __c == __lit[__num_base::_S_iminus]) 29724: __xtrc += __plus ? '+' : '-'; 29724: else 29724: continue; 29724: } 29724: else 29724: { 29724: __testeof = true; 29724: break; 29724: } 29724: } 29724: else 29724: break; 29724: 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: else 29724: while (!__testeof) 29724: { 29724: 29724: 29724: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: { 29724: if (!__found_dec && !__found_sci) 29724: { 29724: 29724: 29724: if (__sep_pos) 29724: { 29724: __found_grouping += static_cast(__sep_pos); 29724: __sep_pos = 0; 29724: } 29724: else 29724: { 29724: 29724: 29724: __xtrc.clear(); 29724: break; 29724: } 29724: } 29724: else 29724: break; 29724: } 29724: else if (__c == __lc->_M_decimal_point) 29724: { 29724: if (!__found_dec && !__found_sci) 29724: { 29724: 29724: 29724: 29724: if (__found_grouping.size()) 29724: __found_grouping += static_cast(__sep_pos); 29724: __xtrc += '.'; 29724: __found_dec = true; 29724: } 29724: else 29724: break; 29724: } 29724: else 29724: { 29724: const char_type* __q = 29724: __traits_type::find(__lit_zero, 10, __c); 29724: if (__q) 29724: { 29724: __xtrc += '0' + (__q - __lit_zero); 29724: __found_mantissa = true; 29724: ++__sep_pos; 29724: } 29724: else if ((__c == __lit[__num_base::_S_ie] 29724: || __c == __lit[__num_base::_S_iE]) 29724: && !__found_sci && __found_mantissa) 29724: { 29724: 29724: if (__found_grouping.size() && !__found_dec) 29724: __found_grouping += static_cast(__sep_pos); 29724: __xtrc += 'e'; 29724: __found_sci = true; 29724: 29724: 29724: if (++__beg != __end) 29724: { 29724: __c = *__beg; 29724: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29724: if ((__plus || __c == __lit[__num_base::_S_iminus]) 29724: && !(__lc->_M_use_grouping 29724: && __c == __lc->_M_thousands_sep) 29724: && !(__c == __lc->_M_decimal_point)) 29724: __xtrc += __plus ? '+' : '-'; 29724: else 29724: continue; 29724: } 29724: else 29724: { 29724: __testeof = true; 29724: break; 29724: } 29724: } 29724: else 29724: break; 29724: } 29724: 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: 29724: 29724: 29724: if (__found_grouping.size()) 29724: { 29724: 29724: if (!__found_dec && !__found_sci) 29724: __found_grouping += static_cast(__sep_pos); 29724: 29724: if (!std::__verify_grouping(__lc->_M_grouping, 29724: __lc->_M_grouping_size, 29724: __found_grouping)) 29724: __err = ios_base::failbit; 29724: } 29724: 29724: return __beg; 29724: } 29724: 29724: template 29724: template 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, 29724: ios_base::iostate& __err, _ValueT& __v) const 29724: { 29724: typedef char_traits<_CharT> __traits_type; 29724: using __gnu_cxx::__add_unsigned; 29724: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: const _CharT* __lit = __lc->_M_atoms_in; 29724: char_type __c = char_type(); 29724: 29724: 29724: const ios_base::fmtflags __basefield = __io.flags() 29724: & ios_base::basefield; 29724: const bool __oct = __basefield == ios_base::oct; 29724: int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); 29724: 29724: 29724: bool __testeof = __beg == __end; 29724: 29724: 29724: bool __negative = false; 29724: if (!__testeof) 29724: { 29724: __c = *__beg; 29724: __negative = __c == __lit[__num_base::_S_iminus]; 29724: if ((__negative || __c == __lit[__num_base::_S_iplus]) 29724: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: && !(__c == __lc->_M_decimal_point)) 29724: { 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: } 29724: 29724: 29724: 29724: bool __found_zero = false; 29724: int __sep_pos = 0; 29724: while (!__testeof) 29724: { 29724: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: || __c == __lc->_M_decimal_point) 29724: break; 29724: else if (__c == __lit[__num_base::_S_izero] 29724: && (!__found_zero || __base == 10)) 29724: { 29724: __found_zero = true; 29724: ++__sep_pos; 29724: if (__basefield == 0) 29724: __base = 8; 29724: if (__base == 8) 29724: __sep_pos = 0; 29724: } 29724: else if (__found_zero 29724: && (__c == __lit[__num_base::_S_ix] 29724: || __c == __lit[__num_base::_S_iX])) 29724: { 29724: if (__basefield == 0) 29724: __base = 16; 29724: if (__base == 16) 29724: { 29724: __found_zero = false; 29724: __sep_pos = 0; 29724: } 29724: else 29724: break; 29724: } 29724: else 29724: break; 29724: 29724: if (++__beg != __end) 29724: { 29724: __c = *__beg; 29724: if (!__found_zero) 29724: break; 29724: } 29724: else 29724: __testeof = true; 29724: } 29724: 29724: 29724: 29724: const size_t __len = (__base == 16 ? __num_base::_S_iend 29724: - __num_base::_S_izero : __base); 29724: 29724: 29724: typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; 29724: string __found_grouping; 29724: if (__lc->_M_use_grouping) 29724: __found_grouping.reserve(32); 29724: bool __testfail = false; 29724: bool __testoverflow = false; 29724: const __unsigned_type __max = 29724: (__negative && __num_traits::__is_signed) 29724: ? -static_cast<__unsigned_type>(__num_traits::__min) 29724: : __num_traits::__max; 29724: const __unsigned_type __smax = __max / __base; 29724: __unsigned_type __result = 0; 29724: int __digit = 0; 29724: const char_type* __lit_zero = __lit + __num_base::_S_izero; 29724: 29724: if (!__lc->_M_allocated) 29724: 29724: while (!__testeof) 29724: { 29724: __digit = _M_find(__lit_zero, __len, __c); 29724: if (__digit == -1) 29724: break; 29724: 29724: if (__result > __smax) 29724: __testoverflow = true; 29724: else 29724: { 29724: __result *= __base; 29724: __testoverflow |= __result > __max - __digit; 29724: __result += __digit; 29724: ++__sep_pos; 29724: } 29724: 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: else 29724: while (!__testeof) 29724: { 29724: 29724: 29724: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: { 29724: 29724: 29724: if (__sep_pos) 29724: { 29724: __found_grouping += static_cast(__sep_pos); 29724: __sep_pos = 0; 29724: } 29724: else 29724: { 29724: __testfail = true; 29724: break; 29724: } 29724: } 29724: else if (__c == __lc->_M_decimal_point) 29724: break; 29724: else 29724: { 29724: const char_type* __q = 29724: __traits_type::find(__lit_zero, __len, __c); 29724: if (!__q) 29724: break; 29724: 29724: __digit = __q - __lit_zero; 29724: if (__digit > 15) 29724: __digit -= 6; 29724: if (__result > __smax) 29724: __testoverflow = true; 29724: else 29724: { 29724: __result *= __base; 29724: __testoverflow |= __result > __max - __digit; 29724: __result += __digit; 29724: ++__sep_pos; 29724: } 29724: } 29724: 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: 29724: 29724: 29724: if (__found_grouping.size()) 29724: { 29724: 29724: __found_grouping += static_cast(__sep_pos); 29724: 29724: if (!std::__verify_grouping(__lc->_M_grouping, 29724: __lc->_M_grouping_size, 29724: __found_grouping)) 29724: __err = ios_base::failbit; 29724: } 29724: 29724: 29724: 29724: if ((!__sep_pos && !__found_zero && !__found_grouping.size()) 29724: || __testfail) 29724: { 29724: __v = 0; 29724: __err = ios_base::failbit; 29724: } 29724: else if (__testoverflow) 29724: { 29724: if (__negative && __num_traits::__is_signed) 29724: __v = __num_traits::__min; 29724: else 29724: __v = __num_traits::__max; 29724: __err = ios_base::failbit; 29724: } 29724: else 29724: __v = __negative ? -__result : __result; 29724: 29724: if (__testeof) 29724: __err |= ios_base::eofbit; 29724: return __beg; 29724: } 29724: 29724: 29724: 29724: template 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, bool& __v) const 29724: { 29724: if (!(__io.flags() & ios_base::boolalpha)) 29724: { 29724: 29724: 29724: 29724: long __l = -1; 29724: __beg = _M_extract_int(__beg, __end, __io, __err, __l); 29724: if (__l == 0 || __l == 1) 29724: __v = bool(__l); 29724: else 29724: { 29724: 29724: 29724: __v = true; 29724: __err = ios_base::failbit; 29724: if (__beg == __end) 29724: __err |= ios_base::eofbit; 29724: } 29724: } 29724: else 29724: { 29724: 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: 29724: bool __testf = true; 29724: bool __testt = true; 29724: bool __donef = __lc->_M_falsename_size == 0; 29724: bool __donet = __lc->_M_truename_size == 0; 29724: bool __testeof = false; 29724: size_t __n = 0; 29724: while (!__donef || !__donet) 29724: { 29724: if (__beg == __end) 29724: { 29724: __testeof = true; 29724: break; 29724: } 29724: 29724: const char_type __c = *__beg; 29724: 29724: if (!__donef) 29724: __testf = __c == __lc->_M_falsename[__n]; 29724: 29724: if (!__testf && __donet) 29724: break; 29724: 29724: if (!__donet) 29724: __testt = __c == __lc->_M_truename[__n]; 29724: 29724: if (!__testt && __donef) 29724: break; 29724: 29724: if (!__testt && !__testf) 29724: break; 29724: 29724: ++__n; 29724: ++__beg; 29724: 29724: __donef = !__testf || __n >= __lc->_M_falsename_size; 29724: __donet = !__testt || __n >= __lc->_M_truename_size; 29724: } 29724: if (__testf && __n == __lc->_M_falsename_size && __n) 29724: { 29724: __v = false; 29724: if (__testt && __n == __lc->_M_truename_size) 29724: __err = ios_base::failbit; 29724: else 29724: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 29724: } 29724: else if (__testt && __n == __lc->_M_truename_size && __n) 29724: { 29724: __v = true; 29724: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 29724: } 29724: else 29724: { 29724: 29724: 29724: __v = false; 29724: __err = ios_base::failbit; 29724: if (__testeof) 29724: __err |= ios_base::eofbit; 29724: } 29724: } 29724: return __beg; 29724: } 29724: 29724: template 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, float& __v) const 29724: { 29724: string __xtrc; 29724: __xtrc.reserve(32); 29724: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29724: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29724: if (__beg == __end) 29724: __err |= ios_base::eofbit; 29724: return __beg; 29724: } 29724: 29724: template 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, double& __v) const 29724: { 29724: string __xtrc; 29724: __xtrc.reserve(32); 29724: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29724: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29724: if (__beg == __end) 29724: __err |= ios_base::eofbit; 29724: return __beg; 29724: } 29724: # 735 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: template 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long double& __v) const 29724: { 29724: string __xtrc; 29724: __xtrc.reserve(32); 29724: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29724: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29724: if (__beg == __end) 29724: __err |= ios_base::eofbit; 29724: return __beg; 29724: } 29724: 29724: template 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, void*& __v) const 29724: { 29724: 29724: typedef ios_base::fmtflags fmtflags; 29724: const fmtflags __fmt = __io.flags(); 29724: __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: typedef __gnu_cxx::__conditional_type<(sizeof(void*) 29724: <= sizeof(unsigned long)), 29724: unsigned long, unsigned long long>::__type _UIntPtrType; 29724: #pragma GCC diagnostic pop 29724: 29724: _UIntPtrType __ul; 29724: __beg = _M_extract_int(__beg, __end, __io, __err, __ul); 29724: 29724: 29724: __io.flags(__fmt); 29724: 29724: __v = reinterpret_cast(__ul); 29724: return __beg; 29724: } 29724: # 798 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: template 29724: void 29724: num_put<_CharT, _OutIter>:: 29724: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, 29724: _CharT* __new, const _CharT* __cs, int& __len) const 29724: { 29724: 29724: 29724: __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, 29724: __cs, __w, __len); 29724: __len = static_cast(__w); 29724: } 29724: 29724: 29724: 29724: template 29724: int 29724: __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, 29724: ios_base::fmtflags __flags, bool __dec) 29724: { 29724: _CharT* __buf = __bufend; 29724: if (__builtin_expect(__dec, true)) 29724: { 29724: 29724: do 29724: { 29724: *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; 29724: __v /= 10; 29724: } 29724: while (__v != 0); 29724: } 29724: else if ((__flags & ios_base::basefield) == ios_base::oct) 29724: { 29724: 29724: do 29724: { 29724: *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; 29724: __v >>= 3; 29724: } 29724: while (__v != 0); 29724: } 29724: else 29724: { 29724: 29724: const bool __uppercase = __flags & ios_base::uppercase; 29724: const int __case_offset = __uppercase ? __num_base::_S_oudigits 29724: : __num_base::_S_odigits; 29724: do 29724: { 29724: *--__buf = __lit[(__v & 0xf) + __case_offset]; 29724: __v >>= 4; 29724: } 29724: while (__v != 0); 29724: } 29724: return __bufend - __buf; 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: num_put<_CharT, _OutIter>:: 29724: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, 29724: ios_base&, _CharT* __new, _CharT* __cs, int& __len) const 29724: { 29724: _CharT* __p = std::__add_grouping(__new, __sep, __grouping, 29724: __grouping_size, __cs, __cs + __len); 29724: __len = __p - __new; 29724: } 29724: 29724: template 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, 29724: _ValueT __v) const 29724: { 29724: using __gnu_cxx::__add_unsigned; 29724: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: const _CharT* __lit = __lc->_M_atoms_out; 29724: const ios_base::fmtflags __flags = __io.flags(); 29724: 29724: 29724: const int __ilen = 5 * sizeof(_ValueT); 29724: _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __ilen)); 29724: 29724: 29724: 29724: const ios_base::fmtflags __basefield = __flags & ios_base::basefield; 29724: const bool __dec = (__basefield != ios_base::oct 29724: && __basefield != ios_base::hex); 29724: const __unsigned_type __u = ((__v > 0 || !__dec) 29724: ? __unsigned_type(__v) 29724: : -__unsigned_type(__v)); 29724: int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); 29724: __cs += __ilen - __len; 29724: 29724: 29724: if (__lc->_M_use_grouping) 29724: { 29724: 29724: 29724: _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * (__len + 1) 29724: * 2)); 29724: _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, 29724: __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); 29724: __cs = __cs2 + 2; 29724: } 29724: 29724: 29724: if (__builtin_expect(__dec, true)) 29724: { 29724: 29724: if (__v >= 0) 29724: { 29724: if (bool(__flags & ios_base::showpos) 29724: && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) 29724: *--__cs = __lit[__num_base::_S_oplus], ++__len; 29724: } 29724: else 29724: *--__cs = __lit[__num_base::_S_ominus], ++__len; 29724: } 29724: else if (bool(__flags & ios_base::showbase) && __v) 29724: { 29724: if (__basefield == ios_base::oct) 29724: *--__cs = __lit[__num_base::_S_odigits], ++__len; 29724: else 29724: { 29724: 29724: const bool __uppercase = __flags & ios_base::uppercase; 29724: *--__cs = __lit[__num_base::_S_ox + __uppercase]; 29724: 29724: *--__cs = __lit[__num_base::_S_odigits]; 29724: __len += 2; 29724: } 29724: } 29724: 29724: 29724: const streamsize __w = __io.width(); 29724: if (__w > static_cast(__len)) 29724: { 29724: _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __w)); 29724: _M_pad(__fill, __w, __io, __cs3, __cs, __len); 29724: __cs = __cs3; 29724: } 29724: __io.width(0); 29724: 29724: 29724: 29724: return std::__write(__s, __cs, __len); 29724: } 29724: 29724: template 29724: void 29724: num_put<_CharT, _OutIter>:: 29724: _M_group_float(const char* __grouping, size_t __grouping_size, 29724: _CharT __sep, const _CharT* __p, _CharT* __new, 29724: _CharT* __cs, int& __len) const 29724: { 29724: 29724: 29724: 29724: const int __declen = __p ? __p - __cs : __len; 29724: _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, 29724: __grouping_size, 29724: __cs, __cs + __declen); 29724: 29724: 29724: int __newlen = __p2 - __new; 29724: if (__p) 29724: { 29724: char_traits<_CharT>::copy(__p2, __p, __len - __declen); 29724: __newlen += __len - __declen; 29724: } 29724: __len = __newlen; 29724: } 29724: # 992 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: template 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, 29724: _ValueT __v) const 29724: { 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: 29724: 29724: const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); 29724: 29724: const int __max_digits = 29724: __gnu_cxx::__numeric_traits<_ValueT>::__digits10; 29724: 29724: 29724: int __len; 29724: 29724: char __fbuf[16]; 29724: __num_base::_S_format_float(__io, __fbuf, __mod); 29724: 29724: 29724: 29724: const bool __use_prec = 29724: (__io.flags() & ios_base::floatfield) != ios_base::floatfield; 29724: 29724: 29724: 29724: int __cs_size = __max_digits * 3; 29724: char* __cs = static_cast(__builtin_alloca(__cs_size)); 29724: if (__use_prec) 29724: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29724: __fbuf, __prec, __v); 29724: else 29724: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29724: __fbuf, __v); 29724: 29724: 29724: if (__len >= __cs_size) 29724: { 29724: __cs_size = __len + 1; 29724: __cs = static_cast(__builtin_alloca(__cs_size)); 29724: if (__use_prec) 29724: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29724: __fbuf, __prec, __v); 29724: else 29724: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29724: __fbuf, __v); 29724: } 29724: # 1065 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: const ctype<_CharT>& __ctype = use_facet >(__loc); 29724: 29724: _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __len)); 29724: __ctype.widen(__cs, __cs + __len, __ws); 29724: 29724: 29724: _CharT* __wp = 0; 29724: const char* __p = char_traits::find(__cs, __len, '.'); 29724: if (__p) 29724: { 29724: __wp = __ws + (__p - __cs); 29724: *__wp = __lc->_M_decimal_point; 29724: } 29724: 29724: 29724: 29724: 29724: if (__lc->_M_use_grouping 29724: && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' 29724: && __cs[1] >= '0' && __cs[2] >= '0'))) 29724: { 29724: 29724: 29724: _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __len * 2)); 29724: 29724: streamsize __off = 0; 29724: if (__cs[0] == '-' || __cs[0] == '+') 29724: { 29724: __off = 1; 29724: __ws2[0] = __ws[0]; 29724: __len -= 1; 29724: } 29724: 29724: _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, 29724: __lc->_M_thousands_sep, __wp, __ws2 + __off, 29724: __ws + __off, __len); 29724: __len += __off; 29724: 29724: __ws = __ws2; 29724: } 29724: 29724: 29724: const streamsize __w = __io.width(); 29724: if (__w > static_cast(__len)) 29724: { 29724: _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __w)); 29724: _M_pad(__fill, __w, __io, __ws3, __ws, __len); 29724: __ws = __ws3; 29724: } 29724: __io.width(0); 29724: 29724: 29724: 29724: return std::__write(__s, __ws, __len); 29724: } 29724: 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 29724: { 29724: const ios_base::fmtflags __flags = __io.flags(); 29724: if ((__flags & ios_base::boolalpha) == 0) 29724: { 29724: const long __l = __v; 29724: __s = _M_insert_int(__s, __io, __fill, __l); 29724: } 29724: else 29724: { 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: 29724: const _CharT* __name = __v ? __lc->_M_truename 29724: : __lc->_M_falsename; 29724: int __len = __v ? __lc->_M_truename_size 29724: : __lc->_M_falsename_size; 29724: 29724: const streamsize __w = __io.width(); 29724: if (__w > static_cast(__len)) 29724: { 29724: const streamsize __plen = __w - __len; 29724: _CharT* __ps 29724: = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __plen)); 29724: 29724: char_traits<_CharT>::assign(__ps, __plen, __fill); 29724: __io.width(0); 29724: 29724: if ((__flags & ios_base::adjustfield) == ios_base::left) 29724: { 29724: __s = std::__write(__s, __name, __len); 29724: __s = std::__write(__s, __ps, __plen); 29724: } 29724: else 29724: { 29724: __s = std::__write(__s, __ps, __plen); 29724: __s = std::__write(__s, __name, __len); 29724: } 29724: return __s; 29724: } 29724: __io.width(0); 29724: __s = std::__write(__s, __name, __len); 29724: } 29724: return __s; 29724: } 29724: 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 29724: { return _M_insert_float(__s, __io, __fill, char(), __v); } 29724: # 1190 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, 29724: long double __v) const 29724: { return _M_insert_float(__s, __io, __fill, 'L', __v); } 29724: 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, 29724: const void* __v) const 29724: { 29724: const ios_base::fmtflags __flags = __io.flags(); 29724: const ios_base::fmtflags __fmt = ~(ios_base::basefield 29724: | ios_base::uppercase); 29724: __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: typedef __gnu_cxx::__conditional_type<(sizeof(const void*) 29724: <= sizeof(unsigned long)), 29724: unsigned long, unsigned long long>::__type _UIntPtrType; 29724: #pragma GCC diagnostic pop 29724: 29724: __s = _M_insert_int(__s, __io, __fill, 29724: reinterpret_cast<_UIntPtrType>(__v)); 29724: __io.flags(__flags); 29724: return __s; 29724: } 29724: # 1230 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: 29724: # 1239 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: template 29724: void 29724: __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, 29724: _CharT* __news, const _CharT* __olds, 29724: streamsize __newlen, streamsize __oldlen) 29724: { 29724: const size_t __plen = static_cast(__newlen - __oldlen); 29724: const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; 29724: 29724: 29724: if (__adjust == ios_base::left) 29724: { 29724: _Traits::copy(__news, __olds, __oldlen); 29724: _Traits::assign(__news + __oldlen, __plen, __fill); 29724: return; 29724: } 29724: 29724: size_t __mod = 0; 29724: if (__adjust == ios_base::internal) 29724: { 29724: 29724: 29724: 29724: const locale& __loc = __io._M_getloc(); 29724: const ctype<_CharT>& __ctype = use_facet >(__loc); 29724: 29724: if (__ctype.widen('-') == __olds[0] 29724: || __ctype.widen('+') == __olds[0]) 29724: { 29724: __news[0] = __olds[0]; 29724: __mod = 1; 29724: ++__news; 29724: } 29724: else if (__ctype.widen('0') == __olds[0] 29724: && __oldlen > 1 29724: && (__ctype.widen('x') == __olds[1] 29724: || __ctype.widen('X') == __olds[1])) 29724: { 29724: __news[0] = __olds[0]; 29724: __news[1] = __olds[1]; 29724: __mod = 2; 29724: __news += 2; 29724: } 29724: 29724: } 29724: _Traits::assign(__news, __plen, __fill); 29724: _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); 29724: } 29724: 29724: template 29724: _CharT* 29724: __add_grouping(_CharT* __s, _CharT __sep, 29724: const char* __gbeg, size_t __gsize, 29724: const _CharT* __first, const _CharT* __last) 29724: { 29724: size_t __idx = 0; 29724: size_t __ctr = 0; 29724: 29724: while (__last - __first > __gbeg[__idx] 29724: && static_cast(__gbeg[__idx]) > 0 29724: && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) 29724: { 29724: __last -= __gbeg[__idx]; 29724: __idx < __gsize - 1 ? ++__idx : ++__ctr; 29724: } 29724: 29724: while (__first != __last) 29724: *__s++ = *__first++; 29724: 29724: while (__ctr--) 29724: { 29724: *__s++ = __sep; 29724: for (char __i = __gbeg[__idx]; __i > 0; --__i) 29724: *__s++ = *__first++; 29724: } 29724: 29724: while (__idx--) 29724: { 29724: *__s++ = __sep; 29724: for (char __i = __gbeg[__idx]; __i > 0; --__i) 29724: *__s++ = *__first++; 29724: } 29724: 29724: return __s; 29724: } 29724: 29724: 29724: 29724: 29724: extern template class __cxx11:: numpunct; 29724: extern template class __cxx11:: numpunct_byname; 29724: extern template class num_get; 29724: extern template class num_put; 29724: extern template class ctype_byname; 29724: 29724: extern template 29724: const ctype* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const numpunct* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const num_put* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const num_get* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const ctype& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const numpunct& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const num_put& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const num_get& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: extern template class __cxx11:: numpunct; 29724: extern template class __cxx11:: numpunct_byname; 29724: extern template class num_get; 29724: extern template class num_put; 29724: extern template class ctype_byname; 29724: 29724: extern template 29724: const ctype* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const numpunct* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const num_put* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const num_get* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const ctype& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const numpunct& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const num_put& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const num_get& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: 29724: 29724: } 29724: # 2700 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: # 38 "/usr/include/c++/14/bits/basic_ios.h" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: inline const _Facet& 29724: __check_facet(const _Facet* __f) 29724: { 29724: if (!__f) 29724: __throw_bad_cast(); 29724: return *__f; 29724: } 29724: # 66 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: template 29724: class basic_ios : public ios_base 29724: { 29724: 29724: 29724: 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef typename _Traits::pos_type pos_type; 29724: typedef typename _Traits::off_type off_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef ctype<_CharT> __ctype_type; 29724: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 29724: __num_put_type; 29724: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 29724: __num_get_type; 29724: 29724: 29724: 29724: protected: 29724: basic_ostream<_CharT, _Traits>* _M_tie; 29724: mutable char_type _M_fill; 29724: mutable bool _M_fill_init; 29724: basic_streambuf<_CharT, _Traits>* _M_streambuf; 29724: 29724: 29724: const __ctype_type* _M_ctype; 29724: 29724: const __num_put_type* _M_num_put; 29724: 29724: const __num_get_type* _M_num_get; 29724: 29724: public: 29724: # 121 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: explicit operator bool() const 29724: { return !this->fail(); } 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: operator!() const 29724: { return this->fail(); } 29724: # 140 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: iostate 29724: rdstate() const 29724: { return _M_streambuf_state; } 29724: # 151 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: void 29724: clear(iostate __state = goodbit); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: setstate(iostate __state) 29724: { this->clear(this->rdstate() | __state); } 29724: 29724: 29724: 29724: 29724: void 29724: _M_setstate(iostate __state) 29724: { 29724: 29724: 29724: _M_streambuf_state |= __state; 29724: if (this->exceptions() & __state) 29724: throw; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: good() const 29724: { return this->rdstate() == 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: eof() const 29724: { return (this->rdstate() & eofbit) != 0; } 29724: # 204 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: bool 29724: fail() const 29724: { return (this->rdstate() & (badbit | failbit)) != 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: bad() const 29724: { return (this->rdstate() & badbit) != 0; } 29724: # 225 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: iostate 29724: exceptions() const 29724: { return _M_exception; } 29724: # 260 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: void 29724: exceptions(iostate __except) 29724: { 29724: _M_exception = __except; 29724: this->clear(_M_streambuf_state); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_ios(basic_streambuf<_CharT, _Traits>* __sb) 29724: : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), 29724: _M_ctype(0), _M_num_put(0), _M_num_get(0) 29724: { this->init(__sb); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual 29724: ~basic_ios() { } 29724: # 298 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: basic_ostream<_CharT, _Traits>* 29724: tie() const 29724: { return _M_tie; } 29724: # 310 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: basic_ostream<_CharT, _Traits>* 29724: tie(basic_ostream<_CharT, _Traits>* __tiestr) 29724: { 29724: basic_ostream<_CharT, _Traits>* __old = _M_tie; 29724: _M_tie = __tiestr; 29724: return __old; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_streambuf<_CharT, _Traits>* 29724: rdbuf() const 29724: { return _M_streambuf; } 29724: # 350 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: basic_streambuf<_CharT, _Traits>* 29724: rdbuf(basic_streambuf<_CharT, _Traits>* __sb); 29724: # 364 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: basic_ios& 29724: copyfmt(const basic_ios& __rhs); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: char_type 29724: fill() const 29724: { 29724: if (!_M_fill_init) 29724: { 29724: _M_fill = this->widen(' '); 29724: _M_fill_init = true; 29724: } 29724: return _M_fill; 29724: } 29724: # 393 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: char_type 29724: fill(char_type __ch) 29724: { 29724: char_type __old = this->fill(); 29724: _M_fill = __ch; 29724: return __old; 29724: } 29724: # 413 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: locale 29724: imbue(const locale& __loc); 29724: # 433 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: char 29724: narrow(char_type __c, char __dfault) const 29724: { return __check_facet(_M_ctype).narrow(__c, __dfault); } 29724: # 452 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: char_type 29724: widen(char __c) const 29724: { return __check_facet(_M_ctype).widen(__c); } 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_ios() 29724: : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), 29724: _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: init(basic_streambuf<_CharT, _Traits>* __sb); 29724: 29724: 29724: basic_ios(const basic_ios&) = delete; 29724: basic_ios& operator=(const basic_ios&) = delete; 29724: 29724: void 29724: move(basic_ios& __rhs) 29724: { 29724: ios_base::_M_move(__rhs); 29724: _M_cache_locale(_M_ios_locale); 29724: this->tie(__rhs.tie(nullptr)); 29724: _M_fill = __rhs._M_fill; 29724: _M_fill_init = __rhs._M_fill_init; 29724: _M_streambuf = nullptr; 29724: } 29724: 29724: void 29724: move(basic_ios&& __rhs) 29724: { this->move(__rhs); } 29724: 29724: void 29724: swap(basic_ios& __rhs) noexcept 29724: { 29724: ios_base::_M_swap(__rhs); 29724: _M_cache_locale(_M_ios_locale); 29724: __rhs._M_cache_locale(__rhs._M_ios_locale); 29724: std::swap(_M_tie, __rhs._M_tie); 29724: std::swap(_M_fill, __rhs._M_fill); 29724: std::swap(_M_fill_init, __rhs._M_fill_init); 29724: } 29724: 29724: void 29724: set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 29724: { _M_streambuf = __sb; } 29724: 29724: 29724: void 29724: _M_cache_locale(const locale& __loc); 29724: }; 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/basic_ios.tcc" 1 3 29724: # 33 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: void 29724: basic_ios<_CharT, _Traits>::clear(iostate __state) 29724: { 29724: if (this->rdbuf()) 29724: _M_streambuf_state = __state; 29724: else 29724: _M_streambuf_state = __state | badbit; 29724: if (this->exceptions() & this->rdstate()) 29724: __throw_ios_failure(("basic_ios::clear")); 29724: } 29724: 29724: template 29724: basic_streambuf<_CharT, _Traits>* 29724: basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 29724: { 29724: basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; 29724: _M_streambuf = __sb; 29724: this->clear(); 29724: return __old; 29724: } 29724: 29724: template 29724: basic_ios<_CharT, _Traits>& 29724: basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) 29724: { 29724: 29724: 29724: if (this != std::__addressof(__rhs)) 29724: { 29724: 29724: 29724: 29724: 29724: _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? 29724: _M_local_word : new _Words[__rhs._M_word_size]; 29724: 29724: 29724: _Callback_list* __cb = __rhs._M_callbacks; 29724: if (__cb) 29724: __cb->_M_add_reference(); 29724: _M_call_callbacks(erase_event); 29724: if (_M_word != _M_local_word) 29724: { 29724: delete [] _M_word; 29724: _M_word = 0; 29724: } 29724: _M_dispose_callbacks(); 29724: 29724: 29724: _M_callbacks = __cb; 29724: for (int __i = 0; __i < __rhs._M_word_size; ++__i) 29724: __words[__i] = __rhs._M_word[__i]; 29724: _M_word = __words; 29724: _M_word_size = __rhs._M_word_size; 29724: 29724: this->flags(__rhs.flags()); 29724: this->width(__rhs.width()); 29724: this->precision(__rhs.precision()); 29724: this->tie(__rhs.tie()); 29724: this->fill(__rhs.fill()); 29724: _M_ios_locale = __rhs.getloc(); 29724: _M_cache_locale(_M_ios_locale); 29724: 29724: _M_call_callbacks(copyfmt_event); 29724: 29724: 29724: this->exceptions(__rhs.exceptions()); 29724: } 29724: return *this; 29724: } 29724: 29724: 29724: template 29724: locale 29724: basic_ios<_CharT, _Traits>::imbue(const locale& __loc) 29724: { 29724: locale __old(this->getloc()); 29724: ios_base::imbue(__loc); 29724: _M_cache_locale(__loc); 29724: if (this->rdbuf() != 0) 29724: this->rdbuf()->pubimbue(__loc); 29724: return __old; 29724: } 29724: 29724: template 29724: void 29724: basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) 29724: { 29724: 29724: ios_base::_M_init(); 29724: 29724: 29724: _M_cache_locale(_M_ios_locale); 29724: # 146 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29724: _M_fill = _CharT(); 29724: _M_fill_init = false; 29724: 29724: _M_tie = 0; 29724: _M_exception = goodbit; 29724: _M_streambuf = __sb; 29724: _M_streambuf_state = __sb ? goodbit : badbit; 29724: } 29724: 29724: template 29724: void 29724: basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) 29724: { 29724: _M_ctype = std::__try_use_facet<__ctype_type>(__loc); 29724: _M_num_put = std::__try_use_facet<__num_put_type>(__loc); 29724: _M_num_get = std::__try_use_facet<__num_get_type>(__loc); 29724: } 29724: 29724: 29724: 29724: 29724: extern template class basic_ios; 29724: 29724: 29724: extern template class basic_ios; 29724: 29724: 29724: 29724: 29724: } 29724: # 521 "/usr/include/c++/14/bits/basic_ios.h" 2 3 29724: # 47 "/usr/include/c++/14/ios" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 50 "/usr/include/c++/14/ios" 2 3 29724: # 41 "/usr/include/c++/14/ostream" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 48 "/usr/include/c++/14/ostream" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 65 "/usr/include/c++/14/ostream" 3 29724: template 29724: class basic_ostream : virtual public basic_ios<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef typename _Traits::pos_type pos_type; 29724: typedef typename _Traits::off_type off_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29724: typedef basic_ios<_CharT, _Traits> __ios_type; 29724: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29724: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 29724: __num_put_type; 29724: typedef ctype<_CharT> __ctype_type; 29724: # 91 "/usr/include/c++/14/ostream" 3 29724: explicit 29724: basic_ostream(__streambuf_type* __sb) 29724: { this->init(__sb); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual 29724: ~basic_ostream() { } 29724: 29724: 29724: class sentry; 29724: friend class sentry; 29724: # 115 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: operator<<(__ostream_type& (*__pf)(__ostream_type&)) 29724: { 29724: 29724: 29724: 29724: return __pf(*this); 29724: } 29724: 29724: __ostream_type& 29724: operator<<(__ios_type& (*__pf)(__ios_type&)) 29724: { 29724: 29724: 29724: 29724: __pf(*this); 29724: return *this; 29724: } 29724: 29724: __ostream_type& 29724: operator<<(ios_base& (*__pf) (ios_base&)) 29724: { 29724: 29724: 29724: 29724: __pf(*this); 29724: return *this; 29724: } 29724: # 173 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: operator<<(long __n) 29724: { return _M_insert(__n); } 29724: 29724: __ostream_type& 29724: operator<<(unsigned long __n) 29724: { return _M_insert(__n); } 29724: 29724: __ostream_type& 29724: operator<<(bool __n) 29724: { return _M_insert(__n); } 29724: 29724: __ostream_type& 29724: operator<<(short __n); 29724: 29724: __ostream_type& 29724: operator<<(unsigned short __n) 29724: { 29724: 29724: 29724: return _M_insert(static_cast(__n)); 29724: } 29724: 29724: __ostream_type& 29724: operator<<(int __n); 29724: 29724: __ostream_type& 29724: operator<<(unsigned int __n) 29724: { 29724: 29724: 29724: return _M_insert(static_cast(__n)); 29724: } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: __ostream_type& 29724: operator<<(long long __n) 29724: { return _M_insert(__n); } 29724: 29724: __ostream_type& 29724: operator<<(unsigned long long __n) 29724: { return _M_insert(__n); } 29724: #pragma GCC diagnostic pop 29724: # 230 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: operator<<(double __f) 29724: { return _M_insert(__f); } 29724: 29724: __ostream_type& 29724: operator<<(float __f) 29724: { 29724: 29724: 29724: return _M_insert(static_cast(__f)); 29724: } 29724: 29724: __ostream_type& 29724: operator<<(long double __f) 29724: { return _M_insert(__f); } 29724: # 300 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: operator<<(const void* __p) 29724: { return _M_insert(__p); } 29724: 29724: 29724: __ostream_type& 29724: operator<<(nullptr_t) 29724: { return *this << "nullptr"; } 29724: # 338 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: operator<<(__streambuf_type* __sb); 29724: # 371 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: put(char_type __c); 29724: # 390 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: write(const char_type* __s, streamsize __n); 29724: # 403 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: flush(); 29724: # 413 "/usr/include/c++/14/ostream" 3 29724: pos_type 29724: tellp(); 29724: # 424 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: seekp(pos_type); 29724: # 436 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: seekp(off_type, ios_base::seekdir); 29724: 29724: protected: 29724: basic_ostream() 29724: { this->init(0); } 29724: 29724: 29724: 29724: basic_ostream(basic_iostream<_CharT, _Traits>&) { } 29724: 29724: basic_ostream(const basic_ostream&) = delete; 29724: 29724: basic_ostream(basic_ostream&& __rhs) 29724: : __ios_type() 29724: { __ios_type::move(__rhs); } 29724: 29724: 29724: 29724: basic_ostream& operator=(const basic_ostream&) = delete; 29724: 29724: basic_ostream& 29724: operator=(basic_ostream&& __rhs) 29724: { 29724: swap(__rhs); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_ostream& __rhs) 29724: { __ios_type::swap(__rhs); } 29724: 29724: 29724: template 29724: __ostream_type& 29724: _M_insert(_ValueT __v); 29724: 29724: private: 29724: 29724: void 29724: _M_write(const char_type* __s, streamsize __n) 29724: { std::__ostream_insert(*this, __s, __n); } 29724: 29724: }; 29724: # 488 "/usr/include/c++/14/ostream" 3 29724: template 29724: class basic_ostream<_CharT, _Traits>::sentry 29724: { 29724: 29724: bool _M_ok; 29724: basic_ostream<_CharT, _Traits>& _M_os; 29724: 29724: public: 29724: # 507 "/usr/include/c++/14/ostream" 3 29724: explicit 29724: sentry(basic_ostream<_CharT, _Traits>& __os); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~sentry() 29724: { 29724: 29724: if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) 29724: { 29724: 29724: if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) 29724: _M_os.setstate(ios_base::badbit); 29724: } 29724: } 29724: #pragma GCC diagnostic pop 29724: # 539 "/usr/include/c++/14/ostream" 3 29724: explicit 29724: 29724: operator bool() const 29724: { return _M_ok; } 29724: }; 29724: # 561 "/usr/include/c++/14/ostream" 3 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) 29724: { 29724: if (__out.width() != 0) 29724: return __ostream_insert(__out, &__c, 1); 29724: __out.put(__c); 29724: return __out; 29724: } 29724: 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) 29724: { return (__out << __out.widen(__c)); } 29724: 29724: 29724: template 29724: inline basic_ostream& 29724: operator<<(basic_ostream& __out, char __c) 29724: { 29724: if (__out.width() != 0) 29724: return __ostream_insert(__out, &__c, 1); 29724: __out.put(__c); 29724: return __out; 29724: } 29724: 29724: 29724: template 29724: inline basic_ostream& 29724: operator<<(basic_ostream& __out, signed char __c) 29724: { return (__out << static_cast(__c)); } 29724: 29724: template 29724: inline basic_ostream& 29724: operator<<(basic_ostream& __out, unsigned char __c) 29724: { return (__out << static_cast(__c)); } 29724: # 652 "/usr/include/c++/14/ostream" 3 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) 29724: { 29724: if (!__s) 29724: __out.setstate(ios_base::badbit); 29724: else 29724: __ostream_insert(__out, __s, 29724: static_cast(_Traits::length(__s))); 29724: return __out; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits> & 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); 29724: 29724: 29724: template 29724: inline basic_ostream& 29724: operator<<(basic_ostream& __out, const char* __s) 29724: { 29724: if (!__s) 29724: __out.setstate(ios_base::badbit); 29724: else 29724: __ostream_insert(__out, __s, 29724: static_cast(_Traits::length(__s))); 29724: return __out; 29724: } 29724: 29724: 29724: template 29724: inline basic_ostream& 29724: operator<<(basic_ostream& __out, const signed char* __s) 29724: { return (__out << reinterpret_cast(__s)); } 29724: 29724: template 29724: inline basic_ostream & 29724: operator<<(basic_ostream& __out, const unsigned char* __s) 29724: { return (__out << reinterpret_cast(__s)); } 29724: # 742 "/usr/include/c++/14/ostream" 3 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: endl(basic_ostream<_CharT, _Traits>& __os) 29724: { return flush(__os.put(__os.widen('\n'))); } 29724: # 754 "/usr/include/c++/14/ostream" 3 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: ends(basic_ostream<_CharT, _Traits>& __os) 29724: { return __os.put(_CharT()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: flush(basic_ostream<_CharT, _Traits>& __os) 29724: { return __os.flush(); } 29724: # 786 "/usr/include/c++/14/ostream" 3 29724: template 29724: using _Require_derived_from_ios_base 29724: = _Require, __not_>, 29724: is_convertible::type, ios_base*>>; 29724: 29724: template, 29724: typename 29724: = decltype(std::declval<_Os&>() << std::declval())> 29724: using __rvalue_stream_insertion_t = _Os&&; 29724: # 808 "/usr/include/c++/14/ostream" 3 29724: template 29724: inline __rvalue_stream_insertion_t<_Ostream, _Tp> 29724: operator<<(_Ostream&& __os, const _Tp& __x) 29724: { 29724: __os << __x; 29724: return std::move(__os); 29724: } 29724: # 1019 "/usr/include/c++/14/ostream" 3 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/ostream.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/ostream.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/ostream.tcc" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>::sentry:: 29724: sentry(basic_ostream<_CharT, _Traits>& __os) 29724: : _M_ok(false), _M_os(__os) 29724: { 29724: 29724: if (__os.tie() && __os.good()) 29724: __os.tie()->flush(); 29724: 29724: if (__os.good()) 29724: _M_ok = true; 29724: else if (__os.bad()) 29724: __os.setstate(ios_base::failbit); 29724: } 29724: 29724: template 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: _M_insert(_ValueT __v) 29724: { 29724: sentry __cerb(*this); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: 29724: const __num_put_type& __np = __check_facet(this->_M_num_put); 29724: 29724: 29724: 29724: 29724: if (__np.put(*this, *this, this->fill(), __v).failed()) 29724: __err |= ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: operator<<(short __n) 29724: { 29724: 29724: 29724: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 29724: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 29724: return _M_insert(static_cast(static_cast(__n))); 29724: else 29724: return _M_insert(static_cast(__n)); 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: operator<<(int __n) 29724: { 29724: 29724: 29724: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 29724: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 29724: return _M_insert(static_cast(static_cast(__n))); 29724: else 29724: return _M_insert(static_cast(__n)); 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: operator<<(__streambuf_type* __sbin) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this); 29724: if (__cerb && __sbin) 29724: { 29724: try 29724: { 29724: if (!__copy_streambufs(__sbin, this->rdbuf())) 29724: __err |= ios_base::failbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::failbit); } 29724: } 29724: else if (!__sbin) 29724: __err |= ios_base::badbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: put(char_type __c) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: sentry __cerb(*this); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __put = this->rdbuf()->sputc(__c); 29724: if (traits_type::eq_int_type(__put, traits_type::eof())) 29724: __err |= ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: write(const _CharT* __s, streamsize __n) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: sentry __cerb(*this); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: if (this->rdbuf()->sputn(__s, __n) != __n) 29724: __err = ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(ios_base::badbit); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: flush() 29724: { 29724: 29724: 29724: 29724: 29724: 29724: if (__streambuf_type* __buf = this->rdbuf()) 29724: { 29724: sentry __cerb(*this); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: if (this->rdbuf()->pubsync() == -1) 29724: __err |= ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: typename basic_ostream<_CharT, _Traits>::pos_type 29724: basic_ostream<_CharT, _Traits>:: 29724: tellp() 29724: { 29724: sentry __cerb(*this); 29724: pos_type __ret = pos_type(-1); 29724: if (!this->fail()) 29724: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); 29724: return __ret; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: seekp(pos_type __pos) 29724: { 29724: sentry __cerb(*this); 29724: if (!this->fail()) 29724: { 29724: 29724: 29724: const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); 29724: 29724: 29724: if (__p == pos_type(off_type(-1))) 29724: this->setstate(ios_base::failbit); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: seekp(off_type __off, ios_base::seekdir __dir) 29724: { 29724: sentry __cerb(*this); 29724: if (!this->fail()) 29724: { 29724: 29724: 29724: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 29724: ios_base::out); 29724: 29724: 29724: if (__p == pos_type(off_type(-1))) 29724: this->setstate(ios_base::failbit); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) 29724: { 29724: if (!__s) 29724: __out.setstate(ios_base::badbit); 29724: else 29724: { 29724: 29724: 29724: const size_t __clen = char_traits::length(__s); 29724: try 29724: { 29724: struct __ptr_guard 29724: { 29724: _CharT *__p; 29724: __ptr_guard (_CharT *__ip): __p(__ip) { } 29724: ~__ptr_guard() { delete[] __p; } 29724: _CharT* __get() { return __p; } 29724: } __pg (new _CharT[__clen]); 29724: 29724: _CharT *__ws = __pg.__get(); 29724: for (size_t __i = 0; __i < __clen; ++__i) 29724: __ws[__i] = __out.widen(__s[__i]); 29724: __ostream_insert(__out, __ws, __clen); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __out._M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { __out._M_setstate(ios_base::badbit); } 29724: } 29724: return __out; 29724: } 29724: 29724: 29724: 29724: 29724: extern template class basic_ostream; 29724: extern template ostream& endl(ostream&); 29724: extern template ostream& ends(ostream&); 29724: extern template ostream& flush(ostream&); 29724: extern template ostream& operator<<(ostream&, char); 29724: extern template ostream& operator<<(ostream&, unsigned char); 29724: extern template ostream& operator<<(ostream&, signed char); 29724: extern template ostream& operator<<(ostream&, const char*); 29724: extern template ostream& operator<<(ostream&, const unsigned char*); 29724: extern template ostream& operator<<(ostream&, const signed char*); 29724: 29724: extern template ostream& ostream::_M_insert(long); 29724: extern template ostream& ostream::_M_insert(unsigned long); 29724: extern template ostream& ostream::_M_insert(bool); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: extern template ostream& ostream::_M_insert(long long); 29724: extern template ostream& ostream::_M_insert(unsigned long long); 29724: #pragma GCC diagnostic pop 29724: 29724: extern template ostream& ostream::_M_insert(double); 29724: extern template ostream& ostream::_M_insert(long double); 29724: extern template ostream& ostream::_M_insert(const void*); 29724: 29724: 29724: extern template class basic_ostream; 29724: extern template wostream& endl(wostream&); 29724: extern template wostream& ends(wostream&); 29724: extern template wostream& flush(wostream&); 29724: extern template wostream& operator<<(wostream&, wchar_t); 29724: extern template wostream& operator<<(wostream&, char); 29724: extern template wostream& operator<<(wostream&, const wchar_t*); 29724: extern template wostream& operator<<(wostream&, const char*); 29724: 29724: extern template wostream& wostream::_M_insert(long); 29724: extern template wostream& wostream::_M_insert(unsigned long); 29724: extern template wostream& wostream::_M_insert(bool); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: extern template wostream& wostream::_M_insert(long long); 29724: extern template wostream& wostream::_M_insert(unsigned long long); 29724: #pragma GCC diagnostic pop 29724: 29724: extern template wostream& wostream::_M_insert(double); 29724: extern template wostream& wostream::_M_insert(long double); 29724: extern template wostream& wostream::_M_insert(const void*); 29724: 29724: 29724: 29724: 29724: } 29724: # 1023 "/usr/include/c++/14/ostream" 2 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 2 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: namespace rocksdb { 29724: 29724: class ColumnFamilyHandle; 29724: 29724: 29724: 29724: class WideColumn { 29724: public: 29724: WideColumn() = default; 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: template 29724: WideColumn(N&& name, V&& value) 29724: : name_(std::forward(name)), value_(std::forward(value)) {} 29724: # 49 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: template 29724: WideColumn(std::piecewise_construct_t, NTuple&& name_tuple, 29724: VTuple&& value_tuple) 29724: : name_(std::make_from_tuple(std::forward(name_tuple))), 29724: value_(std::make_from_tuple(std::forward(value_tuple))) { 29724: } 29724: 29724: const Slice& name() const { return name_; } 29724: const Slice& value() const { return value_; } 29724: 29724: Slice& name() { return name_; } 29724: Slice& value() { return value_; } 29724: 29724: private: 29724: Slice name_; 29724: Slice value_; 29724: }; 29724: 29724: 29724: inline bool operator==(const WideColumn& lhs, const WideColumn& rhs) { 29724: return lhs.name() == rhs.name() && lhs.value() == rhs.value(); 29724: } 29724: 29724: inline bool operator!=(const WideColumn& lhs, const WideColumn& rhs) { 29724: return !(lhs == rhs); 29724: } 29724: 29724: inline std::ostream& operator<<(std::ostream& os, const WideColumn& column) { 29724: const bool hex = 29724: (os.flags() & std::ios_base::basefield) == std::ios_base::hex; 29724: if (!column.name().empty()) { 29724: if (hex) { 29724: os << "0x"; 29724: } 29724: os << column.name().ToString(hex); 29724: } 29724: os << ':'; 29724: if (!column.value().empty()) { 29724: if (hex) { 29724: os << "0x"; 29724: } 29724: os << column.value().ToString(hex); 29724: } 29724: return os; 29724: } 29724: 29724: 29724: using WideColumns = std::vector; 29724: 29724: 29724: extern const Slice kDefaultWideColumnName; 29724: 29724: 29724: extern const WideColumns kNoWideColumns; 29724: 29724: 29724: 29724: class PinnableWideColumns { 29724: public: 29724: PinnableWideColumns() = default; 29724: 29724: PinnableWideColumns(const PinnableWideColumns&) = delete; 29724: PinnableWideColumns& operator=(const PinnableWideColumns&) = delete; 29724: 29724: PinnableWideColumns(PinnableWideColumns&&); 29724: PinnableWideColumns& operator=(PinnableWideColumns&&); 29724: 29724: ~PinnableWideColumns() = default; 29724: 29724: const WideColumns& columns() const { return columns_; } 29724: size_t serialized_size() const { return value_.size(); } 29724: 29724: void SetPlainValue(const Slice& value); 29724: void SetPlainValue(const Slice& value, Cleanable* cleanable); 29724: void SetPlainValue(PinnableSlice&& value); 29724: void SetPlainValue(std::string&& value); 29724: 29724: Status SetWideColumnValue(const Slice& value); 29724: Status SetWideColumnValue(const Slice& value, Cleanable* cleanable); 29724: Status SetWideColumnValue(PinnableSlice&& value); 29724: Status SetWideColumnValue(std::string&& value); 29724: 29724: void Reset(); 29724: 29724: private: 29724: void Move(PinnableWideColumns&& other); 29724: void CopyValue(const Slice& value); 29724: void PinOrCopyValue(const Slice& value, Cleanable* cleanable); 29724: void MoveValue(PinnableSlice&& value); 29724: void MoveValue(std::string&& value); 29724: 29724: void CreateIndexForPlainValue(); 29724: Status CreateIndexForWideColumns(); 29724: 29724: PinnableSlice value_; 29724: WideColumns columns_; 29724: }; 29724: 29724: inline void PinnableWideColumns::Reset() { 29724: value_.Reset(); 29724: columns_.clear(); 29724: } 29724: 29724: inline void PinnableWideColumns::Move(PinnableWideColumns&& other) { 29724: 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: (static_cast ( 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: columns_.empty() 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: "columns_.empty()" 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: ; 29724: 29724: if (other.columns_.empty()) { 29724: return; 29724: } 29724: 29724: const char* const data = other.value_.data(); 29724: const bool is_plain_value = 29724: other.columns_.size() == 1 && 29724: other.columns_.front().name() == kDefaultWideColumnName && 29724: other.columns_.front().value() == other.value_; 29724: 29724: MoveValue(std::move(other.value_)); 29724: 29724: if (value_.data() == data) { 29724: columns_ = std::move(other.columns_); 29724: } else { 29724: if (is_plain_value) { 29724: CreateIndexForPlainValue(); 29724: } else { 29724: const Status s = CreateIndexForWideColumns(); 29724: 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: (static_cast ( 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: s.ok() 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: "s.ok()" 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: ; 29724: 29724: s.PermitUncheckedError(); 29724: } 29724: } 29724: 29724: other.Reset(); 29724: } 29724: 29724: inline void PinnableWideColumns::CopyValue(const Slice& value) { 29724: value_.PinSelf(value); 29724: } 29724: 29724: inline void PinnableWideColumns::PinOrCopyValue(const Slice& value, 29724: Cleanable* cleanable) { 29724: if (!cleanable) { 29724: CopyValue(value); 29724: return; 29724: } 29724: 29724: value_.PinSlice(value, cleanable); 29724: } 29724: 29724: inline void PinnableWideColumns::MoveValue(PinnableSlice&& value) { 29724: value_ = std::move(value); 29724: } 29724: 29724: inline void PinnableWideColumns::MoveValue(std::string&& value) { 29724: std::string* const buf = value_.GetSelf(); 29724: 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: (static_cast ( 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: buf 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: "buf" 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: ; 29724: 29724: *buf = std::move(value); 29724: value_.PinSelf(); 29724: } 29724: 29724: inline void PinnableWideColumns::CreateIndexForPlainValue() { 29724: columns_ = WideColumns{{kDefaultWideColumnName, value_}}; 29724: } 29724: 29724: inline void PinnableWideColumns::SetPlainValue(const Slice& value) { 29724: CopyValue(value); 29724: CreateIndexForPlainValue(); 29724: } 29724: 29724: inline void PinnableWideColumns::SetPlainValue(const Slice& value, 29724: Cleanable* cleanable) { 29724: PinOrCopyValue(value, cleanable); 29724: CreateIndexForPlainValue(); 29724: } 29724: 29724: inline void PinnableWideColumns::SetPlainValue(PinnableSlice&& value) { 29724: MoveValue(std::move(value)); 29724: CreateIndexForPlainValue(); 29724: } 29724: 29724: inline void PinnableWideColumns::SetPlainValue(std::string&& value) { 29724: MoveValue(std::move(value)); 29724: CreateIndexForPlainValue(); 29724: } 29724: 29724: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value) { 29724: CopyValue(value); 29724: 29724: const Status s = CreateIndexForWideColumns(); 29724: if (!s.ok()) { 29724: Reset(); 29724: } 29724: 29724: return s; 29724: } 29724: 29724: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value, 29724: Cleanable* cleanable) { 29724: PinOrCopyValue(value, cleanable); 29724: 29724: const Status s = CreateIndexForWideColumns(); 29724: if (!s.ok()) { 29724: Reset(); 29724: } 29724: 29724: return s; 29724: } 29724: 29724: inline Status PinnableWideColumns::SetWideColumnValue(PinnableSlice&& value) { 29724: MoveValue(std::move(value)); 29724: 29724: const Status s = CreateIndexForWideColumns(); 29724: if (!s.ok()) { 29724: Reset(); 29724: } 29724: 29724: return s; 29724: } 29724: 29724: inline Status PinnableWideColumns::SetWideColumnValue(std::string&& value) { 29724: MoveValue(std::move(value)); 29724: 29724: const Status s = CreateIndexForWideColumns(); 29724: if (!s.ok()) { 29724: Reset(); 29724: } 29724: 29724: return s; 29724: } 29724: 29724: inline PinnableWideColumns::PinnableWideColumns(PinnableWideColumns&& other) { 29724: Move(std::move(other)); 29724: } 29724: 29724: inline PinnableWideColumns& PinnableWideColumns::operator=( 29724: PinnableWideColumns&& other) { 29724: if (this != &other) { 29724: Reset(); 29724: Move(std::move(other)); 29724: } 29724: 29724: return *this; 29724: } 29724: 29724: inline bool operator==(const PinnableWideColumns& lhs, 29724: const PinnableWideColumns& rhs) { 29724: return lhs.columns() == rhs.columns(); 29724: } 29724: 29724: inline bool operator!=(const PinnableWideColumns& lhs, 29724: const PinnableWideColumns& rhs) { 29724: return !(lhs == rhs); 29724: } 29724: 29724: } 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class ColumnFamilyHandle; 29724: 29724: 29724: 29724: 29724: class AttributeGroup { 29724: public: 29724: explicit AttributeGroup(ColumnFamilyHandle* column_family, 29724: const WideColumns& columns) 29724: : column_family_(column_family), columns_(columns) {} 29724: 29724: ColumnFamilyHandle* column_family() const { return column_family_; } 29724: const WideColumns& columns() const { return columns_; } 29724: WideColumns& columns() { return columns_; } 29724: 29724: private: 29724: ColumnFamilyHandle* column_family_; 29724: WideColumns columns_; 29724: }; 29724: 29724: inline bool operator==(const AttributeGroup& lhs, const AttributeGroup& rhs) { 29724: return lhs.column_family() == rhs.column_family() && 29724: lhs.columns() == rhs.columns(); 29724: } 29724: 29724: inline bool operator!=(const AttributeGroup& lhs, const AttributeGroup& rhs) { 29724: return !(lhs == rhs); 29724: } 29724: 29724: 29724: using AttributeGroups = std::vector; 29724: 29724: 29724: extern const AttributeGroups kNoAttributeGroups; 29724: 29724: 29724: class PinnableAttributeGroup { 29724: public: 29724: explicit PinnableAttributeGroup(ColumnFamilyHandle* column_family) 29724: : column_family_(column_family), status_(Status::OK()) {} 29724: 29724: ColumnFamilyHandle* column_family() const { return column_family_; } 29724: const Status& status() const { return status_; } 29724: const WideColumns& columns() const { return columns_.columns(); } 29724: 29724: void SetStatus(const Status& status); 29724: void SetColumns(PinnableWideColumns&& columns); 29724: 29724: void Reset(); 29724: 29724: private: 29724: ColumnFamilyHandle* column_family_; 29724: Status status_; 29724: PinnableWideColumns columns_; 29724: }; 29724: 29724: inline void PinnableAttributeGroup::SetStatus(const Status& status) { 29724: status_ = status; 29724: } 29724: inline void PinnableAttributeGroup::SetColumns(PinnableWideColumns&& columns) { 29724: columns_ = std::move(columns); 29724: } 29724: 29724: inline void PinnableAttributeGroup::Reset() { 29724: SetStatus(Status::OK()); 29724: columns_.Reset(); 29724: } 29724: 29724: 29724: using PinnableAttributeGroups = std::vector; 29724: 29724: 29724: 29724: class IteratorAttributeGroup { 29724: public: 29724: explicit IteratorAttributeGroup(ColumnFamilyHandle* column_family, 29724: const WideColumns* columns) 29724: : column_family_(column_family), columns_(columns) {} 29724: 29724: explicit IteratorAttributeGroup(const AttributeGroup& attribute_group) 29724: : IteratorAttributeGroup(attribute_group.column_family(), 29724: &attribute_group.columns()) {} 29724: 29724: ColumnFamilyHandle* column_family() const { return column_family_; } 29724: const WideColumns& columns() const { return *columns_; } 29724: 29724: private: 29724: ColumnFamilyHandle* column_family_; 29724: const WideColumns* columns_; 29724: }; 29724: 29724: inline bool operator==(const IteratorAttributeGroup& lhs, 29724: const IteratorAttributeGroup& rhs) { 29724: return lhs.column_family() == rhs.column_family() && 29724: lhs.columns() == rhs.columns(); 29724: } 29724: 29724: inline bool operator!=(const IteratorAttributeGroup& lhs, 29724: const IteratorAttributeGroup& rhs) { 29724: return !(lhs == rhs); 29724: } 29724: 29724: using IteratorAttributeGroups = std::vector; 29724: 29724: extern const IteratorAttributeGroups kNoIteratorAttributeGroups; 29724: 29724: 29724: 29724: class AttributeGroupIterator : public IteratorBase { 29724: public: 29724: AttributeGroupIterator() {} 29724: ~AttributeGroupIterator() override {} 29724: 29724: 29724: AttributeGroupIterator(const AttributeGroupIterator&) = delete; 29724: AttributeGroupIterator& operator=(const AttributeGroupIterator&) = delete; 29724: 29724: virtual const IteratorAttributeGroups& attribute_groups() const = 0; 29724: }; 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 1 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum CompressionType : unsigned char { 29724: 29724: 29724: kNoCompression = 0x0, 29724: kSnappyCompression = 0x1, 29724: kZlibCompression = 0x2, 29724: kBZip2Compression = 0x3, 29724: kLZ4Compression = 0x4, 29724: kLZ4HCCompression = 0x5, 29724: kXpressCompression = 0x6, 29724: kZSTD = 0x7, 29724: 29724: 29724: 29724: 29724: 29724: 29724: kZSTDNotFinalCompression = 0x40, 29724: 29724: 29724: kDisableCompressionOption = 0xff, 29724: }; 29724: 29724: 29724: struct CompressionOptions { 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: static constexpr int kDefaultCompressionLevel = 32767; 29724: 29724: 29724: int window_bits = -14; 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: int level = kDefaultCompressionLevel; 29724: 29724: 29724: int strategy = 0; 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: uint32_t max_dict_bytes = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t zstd_max_train_bytes = 0; 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: uint32_t parallel_threads = 1; 29724: # 122 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: bool enabled = false; 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: uint64_t max_dict_buffer_bytes = 0; 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: bool use_zstd_dict_trainer = true; 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: int max_compressed_bytes_per_kb = 1024 * 7 / 8; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool checksum = false; 29724: 29724: 29724: 29724: 29724: void SetMinRatio(double min_ratio) { 29724: max_compressed_bytes_per_kb = static_cast(1024.0 / min_ratio + 0.5); 29724: } 29724: }; 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: namespace detail { 29724: int CountTrailingZeroBitsForSmallEnumSet(uint64_t); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: class SmallEnumSet { 29724: private: 29724: using StateT = uint64_t; 29724: static constexpr int kStateBits = sizeof(StateT) * 8; 29724: static constexpr int kMaxMax = kStateBits - 1; 29724: static constexpr int kMaxValue = static_cast(MAX_ENUMERATOR); 29724: static_assert(kMaxValue >= 0); 29724: static_assert(kMaxValue <= kMaxMax); 29724: 29724: public: 29724: 29724: SmallEnumSet() : state_(0) {} 29724: 29724: template 29724: constexpr SmallEnumSet(const ENUM_TYPE e, TRest... rest) { 29724: *this = SmallEnumSet(rest...).With(e); 29724: } 29724: 29724: 29724: 29724: static constexpr SmallEnumSet All() { 29724: StateT tmp = StateT{1} << kMaxValue; 29724: return SmallEnumSet(RawStateMarker(), tmp | (tmp - 1)); 29724: } 29724: 29724: 29724: bool operator==(const SmallEnumSet& that) const { 29724: return this->state_ == that.state_; 29724: } 29724: bool operator!=(const SmallEnumSet& that) const { return !(*this == that); } 29724: 29724: 29724: 29724: 29724: bool Contains(const ENUM_TYPE e) const { 29724: int value = static_cast(e); 29724: 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: value >= 0 && value <= kMaxValue 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "value >= 0 && value <= kMaxValue" 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: StateT tmp = 1; 29724: return state_ & (tmp << value); 29724: } 29724: 29724: bool empty() const { return state_ == 0; } 29724: 29724: 29724: class const_iterator { 29724: public: 29724: 29724: const_iterator(const const_iterator& that) = default; 29724: const_iterator& operator=(const const_iterator& that) = default; 29724: 29724: 29724: const_iterator(const_iterator&& that) noexcept = default; 29724: const_iterator& operator=(const_iterator&& that) noexcept = default; 29724: 29724: 29724: bool operator==(const const_iterator& that) const { 29724: 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: set_ == that.set_ 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "set_ == that.set_" 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: return this->pos_ == that.pos_; 29724: } 29724: 29724: bool operator!=(const const_iterator& that) const { 29724: return !(*this == that); 29724: } 29724: 29724: 29724: const_iterator& operator++() { 29724: if (pos_ < kMaxValue) { 29724: pos_ = set_->SkipUnset(pos_ + 1); 29724: } else { 29724: pos_ = kStateBits; 29724: } 29724: return *this; 29724: } 29724: 29724: 29724: const_iterator operator++(int) { 29724: auto old = *this; 29724: ++*this; 29724: return old; 29724: } 29724: 29724: ENUM_TYPE operator*() const { 29724: 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: pos_ <= kMaxValue 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "pos_ <= kMaxValue" 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: return static_cast(pos_); 29724: } 29724: 29724: private: 29724: friend class SmallEnumSet; 29724: const_iterator(const SmallEnumSet* set, int pos) : set_(set), pos_(pos) {} 29724: const SmallEnumSet* set_; 29724: int pos_; 29724: }; 29724: 29724: const_iterator begin() const { return const_iterator(this, SkipUnset(0)); } 29724: 29724: const_iterator end() const { return const_iterator(this, kStateBits); } 29724: 29724: 29724: 29724: 29724: 29724: bool Add(const ENUM_TYPE e) { 29724: int value = static_cast(e); 29724: 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: value >= 0 && value <= kMaxValue 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "value >= 0 && value <= kMaxValue" 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: StateT old_state = state_; 29724: state_ |= (StateT{1} << value); 29724: return old_state != state_; 29724: } 29724: 29724: 29724: 29724: bool Remove(const ENUM_TYPE e) { 29724: int value = static_cast(e); 29724: 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: value >= 0 && value <= kMaxValue 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "value >= 0 && value <= kMaxValue" 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: StateT old_state = state_; 29724: state_ &= ~(StateT{1} << value); 29724: return old_state != state_; 29724: } 29724: 29724: 29724: 29724: 29724: constexpr SmallEnumSet With(const ENUM_TYPE e) const { 29724: int value = static_cast(e); 29724: 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: value >= 0 && value <= kMaxValue 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "value >= 0 && value <= kMaxValue" 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: return SmallEnumSet(RawStateMarker(), state_ | (StateT{1} << value)); 29724: } 29724: template 29724: constexpr SmallEnumSet With(const ENUM_TYPE e1, const ENUM_TYPE e2, 29724: TRest... rest) const { 29724: return With(e1).With(e2, rest...); 29724: } 29724: 29724: 29724: constexpr SmallEnumSet Without(const ENUM_TYPE e) const { 29724: int value = static_cast(e); 29724: 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: value >= 0 && value <= kMaxValue 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "value >= 0 && value <= kMaxValue" 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: return SmallEnumSet(RawStateMarker(), state_ & ~(StateT{1} << value)); 29724: } 29724: template 29724: constexpr SmallEnumSet Without(const ENUM_TYPE e1, const ENUM_TYPE e2, 29724: TRest... rest) const { 29724: return Without(e1).Without(e2, rest...); 29724: } 29724: 29724: private: 29724: int SkipUnset(int pos) const { 29724: StateT tmp = state_ >> pos; 29724: if (tmp == 0) { 29724: return kStateBits; 29724: } else { 29724: return pos + detail::CountTrailingZeroBitsForSmallEnumSet(tmp); 29724: } 29724: } 29724: struct RawStateMarker {}; 29724: explicit SmallEnumSet(RawStateMarker, StateT state) : state_(state) {} 29724: 29724: StateT state_; 29724: }; 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memory_allocator.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: class MemoryAllocator : public Customizable { 29724: public: 29724: static const char* Type() { return "MemoryAllocator"; } 29724: static Status CreateFromString(const ConfigOptions& options, 29724: const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: 29724: virtual void* Allocate(size_t size) = 0; 29724: 29724: 29724: virtual void Deallocate(void* p) = 0; 29724: 29724: 29724: 29724: virtual size_t UsableSize(void* , size_t allocation_size) const { 29724: 29724: return allocation_size; 29724: } 29724: 29724: std::string GetId() const override { return GenerateIndividualId(); } 29724: }; 29724: 29724: struct JemallocAllocatorOptions { 29724: static const char* kName() { return "JemallocAllocatorOptions"; } 29724: 29724: 29724: 29724: 29724: 29724: bool limit_tcache_size = false; 29724: 29724: 29724: 29724: size_t tcache_size_lower_bound = 1024; 29724: 29724: 29724: 29724: size_t tcache_size_upper_bound = 16 * 1024; 29724: 29724: 29724: 29724: 29724: size_t num_arenas = 1; 29724: }; 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memory_allocator.h" 29724: Status NewJemallocNodumpAllocator( 29724: const JemallocAllocatorOptions& options, 29724: std::shared_ptr* memory_allocator); 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Cache; 29724: struct ConfigOptions; 29724: class SecondaryCache; 29724: # 46 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: using BlockCache = Cache; 29724: using RowCache = Cache; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum class CacheEntryRole { 29724: 29724: kDataBlock, 29724: 29724: kFilterBlock, 29724: 29724: kFilterMetaBlock, 29724: 29724: kDeprecatedFilterBlock, 29724: 29724: kIndexBlock, 29724: 29724: kOtherBlock, 29724: 29724: kWriteBuffer, 29724: 29724: 29724: kCompressionDictionaryBuildingBuffer, 29724: 29724: 29724: kFilterConstruction, 29724: 29724: kBlockBasedTableReader, 29724: 29724: kFileMetadata, 29724: 29724: kBlobValue, 29724: 29724: 29724: kBlobCache, 29724: 29724: 29724: kMisc, 29724: }; 29724: constexpr uint32_t kNumCacheEntryRoles = 29724: static_cast(CacheEntryRole::kMisc) + 1; 29724: 29724: 29724: const std::string& GetCacheEntryRoleName(CacheEntryRole); 29724: 29724: 29724: using CacheEntryRoleSet = SmallEnumSet; 29724: 29724: 29724: 29724: 29724: struct BlockCacheEntryStatsMapKeys { 29724: static const std::string& CacheId(); 29724: static const std::string& CacheCapacityBytes(); 29724: static const std::string& LastCollectionDurationSeconds(); 29724: static const std::string& LastCollectionAgeSeconds(); 29724: 29724: static std::string EntryCount(CacheEntryRole); 29724: static std::string UsedBytes(CacheEntryRole); 29724: static std::string UsedPercent(CacheEntryRole); 29724: }; 29724: 29724: extern const bool kDefaultToAdaptiveMutex; 29724: 29724: enum CacheMetadataChargePolicy { 29724: 29724: 29724: kDontChargeCacheMetadata, 29724: 29724: 29724: 29724: kFullChargeCacheMetadata 29724: }; 29724: const CacheMetadataChargePolicy kDefaultCacheMetadataChargePolicy = 29724: kFullChargeCacheMetadata; 29724: 29724: 29724: 29724: struct ShardedCacheOptions { 29724: 29724: 29724: 29724: size_t capacity = 0; 29724: 29724: 29724: 29724: 29724: 29724: int num_shard_bits = -1; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool strict_capacity_limit = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr memory_allocator; 29724: 29724: 29724: CacheMetadataChargePolicy metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy; 29724: 29724: 29724: 29724: std::shared_ptr secondary_cache; 29724: 29724: 29724: static constexpr int32_t kQuasiRandomHashSeed = -1; 29724: static constexpr int32_t kHostHashSeed = -2; 29724: # 190 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: int32_t hash_seed = kHostHashSeed; 29724: 29724: ShardedCacheOptions() {} 29724: ShardedCacheOptions( 29724: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 29724: std::shared_ptr _memory_allocator = nullptr, 29724: CacheMetadataChargePolicy _metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy) 29724: : capacity(_capacity), 29724: num_shard_bits(_num_shard_bits), 29724: strict_capacity_limit(_strict_capacity_limit), 29724: memory_allocator(std::move(_memory_allocator)), 29724: metadata_charge_policy(_metadata_charge_policy) {} 29724: 29724: virtual ~ShardedCacheOptions() = default; 29724: }; 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: struct LRUCacheOptions : public ShardedCacheOptions { 29724: # 237 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: double high_pri_pool_ratio = 0.5; 29724: double low_pri_pool_ratio = 0.0; 29724: 29724: 29724: 29724: 29724: 29724: bool use_adaptive_mutex = kDefaultToAdaptiveMutex; 29724: 29724: LRUCacheOptions() {} 29724: LRUCacheOptions(size_t _capacity, int _num_shard_bits, 29724: bool _strict_capacity_limit, double _high_pri_pool_ratio, 29724: std::shared_ptr _memory_allocator = nullptr, 29724: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 29724: CacheMetadataChargePolicy _metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy, 29724: double _low_pri_pool_ratio = 0.0) 29724: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29724: std::move(_memory_allocator), 29724: _metadata_charge_policy), 29724: high_pri_pool_ratio(_high_pri_pool_ratio), 29724: low_pri_pool_ratio(_low_pri_pool_ratio), 29724: use_adaptive_mutex(_use_adaptive_mutex) {} 29724: 29724: 29724: std::shared_ptr MakeSharedCache() const; 29724: 29724: 29724: 29724: std::shared_ptr MakeSharedRowCache() const; 29724: }; 29724: 29724: 29724: inline std::shared_ptr NewLRUCache( 29724: size_t capacity, int num_shard_bits = -1, 29724: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 29724: std::shared_ptr memory_allocator = nullptr, 29724: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 29724: CacheMetadataChargePolicy metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy, 29724: double low_pri_pool_ratio = 0.0) { 29724: return LRUCacheOptions(capacity, num_shard_bits, strict_capacity_limit, 29724: high_pri_pool_ratio, memory_allocator, 29724: use_adaptive_mutex, metadata_charge_policy, 29724: low_pri_pool_ratio) 29724: .MakeSharedCache(); 29724: } 29724: 29724: 29724: inline std::shared_ptr NewLRUCache(const LRUCacheOptions& cache_opts) { 29724: return cache_opts.MakeSharedCache(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: struct CompressedSecondaryCacheOptions : LRUCacheOptions { 29724: 29724: CompressionType compression_type = CompressionType::kLZ4Compression; 29724: 29724: 29724: CompressionOptions compression_opts; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t compress_format_version = 2; 29724: 29724: 29724: 29724: bool enable_custom_split_merge = false; 29724: 29724: 29724: 29724: CacheEntryRoleSet do_not_compress_roles = {CacheEntryRole::kFilterBlock}; 29724: 29724: CompressedSecondaryCacheOptions() {} 29724: CompressedSecondaryCacheOptions( 29724: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 29724: double _high_pri_pool_ratio, double _low_pri_pool_ratio = 0.0, 29724: std::shared_ptr _memory_allocator = nullptr, 29724: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 29724: CacheMetadataChargePolicy _metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy, 29724: CompressionType _compression_type = CompressionType::kLZ4Compression, 29724: uint32_t _compress_format_version = 2, 29724: bool _enable_custom_split_merge = false, 29724: const CacheEntryRoleSet& _do_not_compress_roles = 29724: {CacheEntryRole::kFilterBlock}) 29724: : LRUCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29724: _high_pri_pool_ratio, std::move(_memory_allocator), 29724: _use_adaptive_mutex, _metadata_charge_policy, 29724: _low_pri_pool_ratio), 29724: compression_type(_compression_type), 29724: compress_format_version(_compress_format_version), 29724: enable_custom_split_merge(_enable_custom_split_merge), 29724: do_not_compress_roles(_do_not_compress_roles) {} 29724: 29724: 29724: std::shared_ptr MakeSharedSecondaryCache() const; 29724: 29724: 29724: std::shared_ptr MakeSharedCache() const = delete; 29724: }; 29724: 29724: 29724: inline std::shared_ptr NewCompressedSecondaryCache( 29724: size_t capacity, int num_shard_bits = -1, 29724: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 29724: double low_pri_pool_ratio = 0.0, 29724: std::shared_ptr memory_allocator = nullptr, 29724: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 29724: CacheMetadataChargePolicy metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy, 29724: CompressionType compression_type = CompressionType::kLZ4Compression, 29724: uint32_t compress_format_version = 2, 29724: bool enable_custom_split_merge = false, 29724: const CacheEntryRoleSet& _do_not_compress_roles = { 29724: CacheEntryRole::kFilterBlock}) { 29724: return CompressedSecondaryCacheOptions( 29724: capacity, num_shard_bits, strict_capacity_limit, 29724: high_pri_pool_ratio, low_pri_pool_ratio, memory_allocator, 29724: use_adaptive_mutex, metadata_charge_policy, compression_type, 29724: compress_format_version, enable_custom_split_merge, 29724: _do_not_compress_roles) 29724: .MakeSharedSecondaryCache(); 29724: } 29724: 29724: 29724: inline std::shared_ptr NewCompressedSecondaryCache( 29724: const CompressedSecondaryCacheOptions& opts) { 29724: return opts.MakeSharedSecondaryCache(); 29724: } 29724: # 388 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: struct HyperClockCacheOptions : public ShardedCacheOptions { 29724: # 425 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: size_t estimated_entry_charge; 29724: # 442 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: size_t min_avg_entry_charge = 450; 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: int eviction_effort_cap = 30; 29724: 29724: HyperClockCacheOptions( 29724: size_t _capacity, size_t _estimated_entry_charge, 29724: int _num_shard_bits = -1, bool _strict_capacity_limit = false, 29724: std::shared_ptr _memory_allocator = nullptr, 29724: CacheMetadataChargePolicy _metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy) 29724: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29724: std::move(_memory_allocator), 29724: _metadata_charge_policy), 29724: estimated_entry_charge(_estimated_entry_charge) {} 29724: 29724: 29724: std::shared_ptr MakeSharedCache() const; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr NewClockCache( 29724: size_t capacity, int num_shard_bits = -1, 29724: bool strict_capacity_limit = false, 29724: CacheMetadataChargePolicy metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy); 29724: 29724: enum PrimaryCacheType { 29724: kCacheTypeLRU, 29724: kCacheTypeHCC, 29724: kCacheTypeMax, 29724: }; 29724: 29724: enum TieredAdmissionPolicy { 29724: 29724: kAdmPolicyAuto, 29724: 29724: 29724: 29724: kAdmPolicyPlaceholder, 29724: 29724: 29724: kAdmPolicyAllowCacheHits, 29724: 29724: 29724: 29724: kAdmPolicyThreeQueue, 29724: 29724: 29724: 29724: 29724: kAdmPolicyAllowAll, 29724: kAdmPolicyMax, 29724: }; 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: struct TieredCacheOptions { 29724: 29724: 29724: 29724: 29724: ShardedCacheOptions* cache_opts = nullptr; 29724: PrimaryCacheType cache_type = PrimaryCacheType::kCacheTypeLRU; 29724: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyAuto; 29724: CompressedSecondaryCacheOptions comp_cache_opts; 29724: 29724: 29724: 29724: 29724: size_t total_capacity = 0; 29724: double compressed_secondary_ratio = 0.0; 29724: 29724: 29724: 29724: std::shared_ptr nvm_sec_cache; 29724: }; 29724: 29724: std::shared_ptr NewTieredCache(const TieredCacheOptions& cache_opts); 29724: # 575 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: Status UpdateTieredCache( 29724: const std::shared_ptr& cache, int64_t total_capacity = -1, 29724: double compressed_secondary_ratio = std::numeric_limits::max(), 29724: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyMax); 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 1 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/stdlib.h" 1 3 29724: # 36 "/usr/include/c++/14/stdlib.h" 3 29724: # 1 "/usr/include/c++/14/cstdlib" 1 3 29724: # 39 "/usr/include/c++/14/cstdlib" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdlib" 3 29724: # 37 "/usr/include/c++/14/stdlib.h" 2 3 29724: 29724: 29724: # 38 "/usr/include/c++/14/stdlib.h" 3 29724: using std::abort; 29724: using std::atexit; 29724: using std::exit; 29724: 29724: 29724: using std::at_quick_exit; 29724: 29724: 29724: using std::quick_exit; 29724: 29724: 29724: using std::_Exit; 29724: 29724: 29724: 29724: 29724: using std::div_t; 29724: using std::ldiv_t; 29724: 29724: using std::abs; 29724: using std::atof; 29724: using std::atoi; 29724: using std::atol; 29724: using std::bsearch; 29724: using std::calloc; 29724: using std::div; 29724: using std::free; 29724: using std::getenv; 29724: using std::labs; 29724: using std::ldiv; 29724: using std::malloc; 29724: 29724: using std::mblen; 29724: using std::mbstowcs; 29724: using std::mbtowc; 29724: 29724: using std::qsort; 29724: using std::rand; 29724: using std::realloc; 29724: using std::srand; 29724: using std::strtod; 29724: using std::strtol; 29724: using std::strtoul; 29724: using std::system; 29724: 29724: using std::wcstombs; 29724: using std::wctomb; 29724: # 40 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 2 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: namespace rocksdb { 29724: 29724: class Arena; 29724: class Allocator; 29724: class LookupKey; 29724: class SliceTransform; 29724: class Logger; 29724: struct DBOptions; 29724: 29724: using KeyHandle = void*; 29724: 29724: Slice GetLengthPrefixedSlice(const char* data); 29724: 29724: class MemTableRep { 29724: public: 29724: 29724: 29724: class KeyComparator { 29724: public: 29724: using DecodedType = rocksdb::Slice; 29724: 29724: virtual DecodedType decode_key(const char* key) const { 29724: 29724: 29724: return GetLengthPrefixedSlice(key); 29724: } 29724: 29724: 29724: 29724: virtual int operator()(const char* prefix_len_key1, 29724: const char* prefix_len_key2) const = 0; 29724: 29724: virtual int operator()(const char* prefix_len_key, 29724: const Slice& key) const = 0; 29724: 29724: virtual ~KeyComparator() {} 29724: }; 29724: 29724: explicit MemTableRep(Allocator* allocator) : allocator_(allocator) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual KeyHandle Allocate(const size_t len, char** buf); 29724: 29724: 29724: 29724: 29724: 29724: virtual void Insert(KeyHandle handle) = 0; 29724: 29724: 29724: 29724: 29724: virtual bool InsertKey(KeyHandle handle) { 29724: Insert(handle); 29724: return true; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void InsertWithHint(KeyHandle handle, void** ) { 29724: 29724: Insert(handle); 29724: } 29724: 29724: 29724: 29724: 29724: virtual bool InsertKeyWithHint(KeyHandle handle, void** hint) { 29724: InsertWithHint(handle, hint); 29724: return true; 29724: } 29724: # 137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: virtual void InsertWithHintConcurrently(KeyHandle handle, void** ) { 29724: 29724: InsertConcurrently(handle); 29724: } 29724: 29724: 29724: 29724: 29724: virtual bool InsertKeyWithHintConcurrently(KeyHandle handle, void** hint) { 29724: InsertWithHintConcurrently(handle, hint); 29724: return true; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void InsertConcurrently(KeyHandle handle); 29724: 29724: 29724: 29724: 29724: virtual bool InsertKeyConcurrently(KeyHandle handle) { 29724: InsertConcurrently(handle); 29724: return true; 29724: } 29724: 29724: 29724: virtual bool Contains(const char* key) const = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void MarkReadOnly() {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void MarkFlushed() {} 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: virtual void Get(const LookupKey& k, void* callback_args, 29724: bool (*callback_func)(void* arg, const char* entry)); 29724: 29724: 29724: virtual Status GetAndValidate(const LookupKey& , 29724: void* , 29724: bool (* )(void* arg, 29724: const char* entry), 29724: bool ) { 29724: return Status::NotSupported("GetAndValidate() not implemented."); 29724: } 29724: 29724: virtual uint64_t ApproximateNumEntries(const Slice& , 29724: const Slice& ) { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: virtual void UniqueRandomSample(const uint64_t num_entries, 29724: const uint64_t target_sample_size, 29724: std::unordered_set* entries) { 29724: (void)num_entries; 29724: (void)target_sample_size; 29724: (void)entries; 29724: 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29724: (static_cast ( 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: false 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: "false" 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: ; 29724: } 29724: 29724: 29724: 29724: virtual size_t ApproximateMemoryUsage() = 0; 29724: 29724: virtual ~MemTableRep() {} 29724: 29724: 29724: class Iterator { 29724: public: 29724: 29724: 29724: 29724: virtual ~Iterator() {} 29724: 29724: 29724: virtual bool Valid() const = 0; 29724: 29724: 29724: 29724: virtual const char* key() const = 0; 29724: 29724: 29724: 29724: virtual void Next() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status NextAndValidate(bool ) { 29724: return Status::NotSupported("NextAndValidate() not implemented."); 29724: } 29724: 29724: 29724: 29724: virtual void Prev() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status PrevAndValidate(bool ) { 29724: return Status::NotSupported("PrevAndValidate() not implemented."); 29724: } 29724: 29724: 29724: virtual void Seek(const Slice& internal_key, const char* memtable_key) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status SeekAndValidate(const Slice& , 29724: const char* , 29724: bool ) { 29724: return Status::NotSupported("SeekAndValidate() not implemented."); 29724: } 29724: 29724: 29724: virtual void SeekForPrev(const Slice& internal_key, 29724: const char* memtable_key) = 0; 29724: 29724: virtual void RandomSeek() {} 29724: 29724: 29724: 29724: virtual void SeekToFirst() = 0; 29724: 29724: 29724: 29724: virtual void SeekToLast() = 0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Iterator* GetIterator(Arena* arena = nullptr) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Iterator* GetDynamicPrefixIterator(Arena* arena = nullptr) { 29724: return GetIterator(arena); 29724: } 29724: 29724: 29724: 29724: virtual bool IsMergeOperatorSupported() const { return true; } 29724: 29724: 29724: 29724: virtual bool IsSnapshotSupported() const { return true; } 29724: 29724: protected: 29724: 29724: 29724: virtual Slice UserKey(const char* key) const; 29724: 29724: Allocator* allocator_; 29724: }; 29724: 29724: 29724: 29724: class MemTableRepFactory : public Customizable { 29724: public: 29724: ~MemTableRepFactory() override {} 29724: 29724: static const char* Type() { return "MemTableRepFactory"; } 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& id, 29724: std::unique_ptr* factory); 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& id, 29724: std::shared_ptr* factory); 29724: 29724: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 29724: Allocator*, const SliceTransform*, 29724: Logger* logger) = 0; 29724: virtual MemTableRep* CreateMemTableRep( 29724: const MemTableRep::KeyComparator& key_cmp, Allocator* allocator, 29724: const SliceTransform* slice_transform, Logger* logger, 29724: uint32_t ) { 29724: return CreateMemTableRep(key_cmp, allocator, slice_transform, logger); 29724: } 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: 29724: virtual bool IsInsertConcurrentlySupported() const { return false; } 29724: 29724: 29724: 29724: 29724: 29724: virtual bool CanHandleDuplicatedKey() const { return false; } 29724: }; 29724: # 371 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: class SkipListFactory : public MemTableRepFactory { 29724: public: 29724: explicit SkipListFactory(size_t lookahead = 0); 29724: 29724: 29724: static const char* kClassName() { return "SkipListFactory"; } 29724: static const char* kNickName() { return "skip_list"; } 29724: const char* Name() const override { return kClassName(); } 29724: const char* NickName() const override { return kNickName(); } 29724: std::string GetId() const override; 29724: 29724: 29724: using MemTableRepFactory::CreateMemTableRep; 29724: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 29724: const SliceTransform*, 29724: Logger* logger) override; 29724: 29724: bool IsInsertConcurrentlySupported() const override { return true; } 29724: 29724: bool CanHandleDuplicatedKey() const override { return true; } 29724: 29724: private: 29724: size_t lookahead_; 29724: }; 29724: # 404 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: class VectorRepFactory : public MemTableRepFactory { 29724: size_t count_; 29724: 29724: public: 29724: explicit VectorRepFactory(size_t count = 0); 29724: 29724: 29724: static const char* kClassName() { return "VectorRepFactory"; } 29724: static const char* kNickName() { return "vector"; } 29724: const char* Name() const override { return kClassName(); } 29724: const char* NickName() const override { return kNickName(); } 29724: 29724: 29724: using MemTableRepFactory::CreateMemTableRep; 29724: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 29724: const SliceTransform*, 29724: Logger* logger) override; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: MemTableRepFactory* NewHashSkipListRepFactory( 29724: size_t bucket_count = 1000000, int32_t skiplist_height = 4, 29724: int32_t skiplist_branching_factor = 4); 29724: # 449 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: MemTableRepFactory* NewHashLinkListRepFactory( 29724: size_t bucket_count = 50000, size_t huge_page_tlb_size = 0, 29724: int bucket_entries_logging_threshold = 4096, 29724: bool if_log_bucket_dist_when_flash = true, 29724: uint32_t threshold_use_skiplist = 256); 29724: 29724: } 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/climits" 1 3 29724: # 39 "/usr/include/c++/14/climits" 3 29724: 29724: # 40 "/usr/include/c++/14/climits" 3 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29724: # 34 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29724: # 210 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 29724: # 1 "/usr/include/limits.h" 1 3 4 29724: # 26 "/usr/include/limits.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 27 "/usr/include/limits.h" 2 3 4 29724: # 195 "/usr/include/limits.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 28 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 29724: # 161 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 1 3 4 29724: # 38 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 3 4 29724: # 1 "/usr/include/linux/limits.h" 1 3 4 29724: # 39 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 2 3 4 29724: # 162 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 29724: # 196 "/usr/include/limits.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix2_lim.h" 1 3 4 29724: # 200 "/usr/include/limits.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 1 3 4 29724: # 64 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio_lim.h" 1 3 4 29724: # 65 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 2 3 4 29724: # 204 "/usr/include/limits.h" 2 3 4 29724: # 211 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 29724: # 8 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 2 3 4 29724: # 35 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 29724: # 43 "/usr/include/c++/14/climits" 2 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 2 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: enum CompactionStopStyle { 29724: kCompactionStopStyleSimilarSize, 29724: kCompactionStopStyleTotalSize 29724: }; 29724: 29724: class CompactionOptionsUniversal { 29724: public: 29724: 29724: 29724: 29724: unsigned int size_ratio; 29724: 29724: 29724: unsigned int min_merge_width; 29724: 29724: 29724: unsigned int max_merge_width; 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29724: unsigned int max_size_amplification_percent; 29724: # 66 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29724: int compression_size_percent; 29724: # 96 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29724: int max_read_amp; 29724: 29724: 29724: 29724: CompactionStopStyle stop_style; 29724: 29724: 29724: 29724: 29724: bool allow_trivial_move; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool incremental; 29724: 29724: 29724: CompactionOptionsUniversal() 29724: : size_ratio(1), 29724: min_merge_width(2), 29724: max_merge_width( 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 3 4 29724: (0x7fffffff * 2U + 1U) 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29724: ), 29724: max_size_amplification_percent(200), 29724: compression_size_percent(-1), 29724: max_read_amp(-1), 29724: stop_style(kCompactionStopStyleTotalSize), 29724: allow_trivial_move(false), 29724: incremental(false) {} 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class SliceTransform; 29724: class TablePropertiesCollectorFactory; 29724: class TableFactory; 29724: struct Options; 29724: 29724: enum CompactionStyle : char { 29724: 29724: kCompactionStyleLevel = 0x0, 29724: 29724: kCompactionStyleUniversal = 0x1, 29724: 29724: kCompactionStyleFIFO = 0x2, 29724: 29724: 29724: kCompactionStyleNone = 0x3, 29724: }; 29724: 29724: 29724: 29724: 29724: enum CompactionPri : char { 29724: 29724: kByCompensatedSize = 0x0, 29724: 29724: 29724: kOldestLargestSeqFirst = 0x1, 29724: 29724: 29724: 29724: kOldestSmallestSeqFirst = 0x2, 29724: 29724: 29724: 29724: 29724: 29724: kMinOverlappingRatio = 0x3, 29724: 29724: 29724: 29724: 29724: kRoundRobin = 0x4, 29724: }; 29724: 29724: struct FileTemperatureAge { 29724: Temperature temperature = Temperature::kUnknown; 29724: uint64_t age = 0; 29724: }; 29724: 29724: struct CompactionOptionsFIFO { 29724: 29724: 29724: 29724: uint64_t max_table_files_size; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool allow_compaction = false; 29724: 29724: 29724: 29724: 29724: uint64_t age_for_warm = 0; 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: std::vector file_temperature_age_thresholds{}; 29724: 29724: CompactionOptionsFIFO() : max_table_files_size(1 * 1024 * 1024 * 1024) {} 29724: CompactionOptionsFIFO(uint64_t _max_table_files_size, bool _allow_compaction) 29724: : max_table_files_size(_max_table_files_size), 29724: allow_compaction(_allow_compaction) {} 29724: }; 29724: 29724: 29724: 29724: 29724: enum class CacheTier : uint8_t { 29724: kVolatileTier = 0, 29724: kVolatileCompressedTier = 0x01, 29724: kNonVolatileBlockTier = 0x02, 29724: }; 29724: 29724: enum UpdateStatus { 29724: UPDATE_FAILED = 0, 29724: UPDATED_INPLACE = 1, 29724: UPDATED = 2, 29724: }; 29724: 29724: enum class PrepopulateBlobCache : uint8_t { 29724: kDisable = 0x0, 29724: kFlushOnly = 0x1, 29724: }; 29724: 29724: struct AdvancedColumnFamilyOptions { 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int max_write_buffer_number = 2; 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int min_write_buffer_number_to_merge = 1; 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int max_write_buffer_number_to_maintain = 0; 29724: # 221 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int64_t max_write_buffer_size_to_maintain = 0; 29724: # 242 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool inplace_update_support = false; 29724: 29724: 29724: 29724: 29724: 29724: size_t inplace_update_num_locks = 10000; 29724: # 265 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: double experimental_mempurge_threshold = 0.0; 29724: # 308 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: UpdateStatus (*inplace_callback)(char* existing_value, 29724: uint32_t* existing_value_size, 29724: Slice delta_value, 29724: std::string* merged_value) = nullptr; 29724: # 327 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: double memtable_prefix_bloom_size_ratio = 0.0; 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool memtable_whole_key_filtering = false; 29724: # 348 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: size_t memtable_huge_page_size = 0; 29724: # 369 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: std::shared_ptr 29724: memtable_insert_with_hint_prefix_extractor = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t bloom_locality = 0; 29724: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: size_t arena_block_size = 0; 29724: # 426 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: std::vector compression_per_level; 29724: 29724: 29724: int num_levels = 7; 29724: # 438 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int level0_slowdown_writes_trigger = 20; 29724: 29724: 29724: 29724: 29724: 29724: 29724: int level0_stop_writes_trigger = 36; 29724: # 459 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t target_file_size_base = 64 * 1048576; 29724: 29724: 29724: 29724: 29724: 29724: int target_file_size_multiplier = 1; 29724: # 546 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool level_compaction_dynamic_level_bytes = true; 29724: 29724: 29724: 29724: 29724: double max_bytes_for_level_multiplier = 10; 29724: # 562 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: std::vector max_bytes_for_level_multiplier_additional = 29724: std::vector(static_cast(num_levels), 1); 29724: # 572 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t max_compaction_bytes = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t soft_pending_compaction_bytes_limit = 64 * 1073741824ull; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t hard_pending_compaction_bytes_limit = 256 * 1073741824ull; 29724: 29724: 29724: CompactionStyle compaction_style = kCompactionStyleLevel; 29724: 29724: 29724: 29724: 29724: CompactionPri compaction_pri = kMinOverlappingRatio; 29724: 29724: 29724: 29724: 29724: 29724: 29724: CompactionOptionsUniversal compaction_options_universal; 29724: 29724: 29724: 29724: 29724: 29724: 29724: CompactionOptionsFIFO compaction_options_fifo; 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t max_sequential_skip_in_iterations = 8; 29724: 29724: 29724: 29724: 29724: std::shared_ptr memtable_factory = 29724: std::shared_ptr(new SkipListFactory); 29724: # 645 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: using TablePropertiesCollectorFactories = 29724: std::vector>; 29724: TablePropertiesCollectorFactories table_properties_collector_factories; 29724: # 661 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: size_t max_successive_merges = 0; 29724: # 671 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool strict_max_successive_merges = false; 29724: # 687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool optimize_filters_for_hits = false; 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool paranoid_file_checks = false; 29724: # 706 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool force_consistency_checks = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool report_bg_io_stats = false; 29724: # 747 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t ttl = 0xfffffffffffffffe; 29724: # 795 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t periodic_compaction_seconds = 0xfffffffffffffffe; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t sample_for_compression = 0; 29724: # 810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: Temperature last_level_temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Temperature default_write_temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Temperature default_temperature = Temperature::kUnknown; 29724: # 843 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t preclude_last_level_data_seconds = 0; 29724: # 866 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t preserve_internal_time_seconds = 0; 29724: # 880 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool enable_blob_files = false; 29724: # 892 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t min_blob_size = 0; 29724: # 901 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t blob_file_size = 1ULL << 28; 29724: # 910 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: CompressionType blob_compression_type = kNoCompression; 29724: # 922 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool enable_blob_garbage_collection = false; 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: double blob_garbage_collection_age_cutoff = 0.25; 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: double blob_garbage_collection_force_threshold = 1.0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t blob_compaction_readahead_size = 0; 29724: # 967 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int blob_file_starting_level = 0; 29724: # 977 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: std::shared_ptr blob_cache = nullptr; 29724: # 988 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: PrepopulateBlobCache prepopulate_blob_cache = PrepopulateBlobCache::kDisable; 29724: # 1004 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint32_t memtable_protection_bytes_per_key = 0; 29724: # 1054 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool persist_user_defined_timestamps = true; 29724: # 1069 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint8_t block_protection_bytes_per_key = 0; 29724: # 1081 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint32_t bottommost_file_compaction_delay = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool paranoid_memory_checks = false; 29724: 29724: 29724: AdvancedColumnFamilyOptions(); 29724: 29724: explicit AdvancedColumnFamilyOptions(const Options& options); 29724: 29724: 29724: }; 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 1 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstdarg" 1 3 29724: # 39 "/usr/include/c++/14/cstdarg" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdarg" 3 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29724: # 44 "/usr/include/c++/14/cstdarg" 2 3 29724: # 53 "/usr/include/c++/14/cstdarg" 3 29724: 29724: # 53 "/usr/include/c++/14/cstdarg" 3 29724: namespace std 29724: { 29724: using ::va_list; 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/functor_wrapper.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/functor_wrapper.h" 29724: namespace rocksdb { 29724: 29724: namespace detail { 29724: template 29724: struct IndexSequence {}; 29724: 29724: template 29724: struct IndexSequenceHelper 29724: : public IndexSequenceHelper {}; 29724: 29724: template 29724: struct IndexSequenceHelper<0U, Next...> { 29724: using type = IndexSequence; 29724: }; 29724: 29724: template 29724: using make_index_sequence = typename IndexSequenceHelper::type; 29724: 29724: template 29724: void call(Function f, Tuple t, IndexSequence) { 29724: f(std::get(t)...); 29724: } 29724: 29724: template 29724: void call(Function f, Tuple t) { 29724: static constexpr auto size = std::tuple_size::value; 29724: call(f, t, make_index_sequence{}); 29724: } 29724: } 29724: 29724: template 29724: class FunctorWrapper { 29724: public: 29724: explicit FunctorWrapper(std::function functor, Args &&...args) 29724: : functor_(std::move(functor)), args_(std::forward(args)...) {} 29724: 29724: void invoke() { detail::call(functor_, args_); } 29724: 29724: private: 29724: std::function functor_; 29724: std::tuple args_; 29724: }; 29724: } 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 1 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 29724: 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: template 29724: struct constexpr_max { 29724: static const int result = (A > B) ? A : B; 29724: }; 29724: 29724: 29724: 29724: 29724: struct ThreadStatus { 29724: 29724: enum ThreadType : int { 29724: HIGH_PRIORITY = 0, 29724: LOW_PRIORITY, 29724: USER, 29724: BOTTOM_PRIORITY, 29724: NUM_THREAD_TYPES 29724: }; 29724: 29724: 29724: 29724: 29724: enum OperationType : int { 29724: OP_UNKNOWN = 0, 29724: OP_COMPACTION, 29724: OP_FLUSH, 29724: OP_DBOPEN, 29724: OP_GET, 29724: OP_MULTIGET, 29724: OP_DBITERATOR, 29724: OP_VERIFY_DB_CHECKSUM, 29724: OP_VERIFY_FILE_CHECKSUMS, 29724: OP_GETENTITY, 29724: OP_MULTIGETENTITY, 29724: OP_READ_MANIFEST, 29724: NUM_OP_TYPES 29724: }; 29724: 29724: enum OperationStage : int { 29724: STAGE_UNKNOWN = 0, 29724: STAGE_FLUSH_RUN, 29724: STAGE_FLUSH_WRITE_L0, 29724: STAGE_COMPACTION_PREPARE, 29724: STAGE_COMPACTION_RUN, 29724: STAGE_COMPACTION_PROCESS_KV, 29724: STAGE_COMPACTION_INSTALL, 29724: STAGE_COMPACTION_SYNC_FILE, 29724: STAGE_PICK_MEMTABLES_TO_FLUSH, 29724: STAGE_MEMTABLE_ROLLBACK, 29724: STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 29724: NUM_OP_STAGES 29724: }; 29724: 29724: enum CompactionPropertyType : int { 29724: COMPACTION_JOB_ID = 0, 29724: COMPACTION_INPUT_OUTPUT_LEVEL, 29724: COMPACTION_PROP_FLAGS, 29724: COMPACTION_TOTAL_INPUT_BYTES, 29724: COMPACTION_BYTES_READ, 29724: COMPACTION_BYTES_WRITTEN, 29724: NUM_COMPACTION_PROPERTIES 29724: }; 29724: 29724: enum FlushPropertyType : int { 29724: FLUSH_JOB_ID = 0, 29724: FLUSH_BYTES_MEMTABLES, 29724: FLUSH_BYTES_WRITTEN, 29724: NUM_FLUSH_PROPERTIES 29724: }; 29724: 29724: 29724: 29724: static const int kNumOperationProperties = 29724: constexpr_max::result; 29724: 29724: 29724: 29724: 29724: enum StateType : int { 29724: STATE_UNKNOWN = 0, 29724: STATE_MUTEX_WAIT = 1, 29724: NUM_STATE_TYPES 29724: }; 29724: 29724: ThreadStatus(const uint64_t _id, const ThreadType _thread_type, 29724: const std::string& _db_name, const std::string& _cf_name, 29724: const OperationType _operation_type, 29724: const uint64_t _op_elapsed_micros, 29724: const OperationStage _operation_stage, 29724: const uint64_t _op_props[], const StateType _state_type) 29724: : thread_id(_id), 29724: thread_type(_thread_type), 29724: db_name(_db_name), 29724: cf_name(_cf_name), 29724: operation_type(_operation_type), 29724: op_elapsed_micros(_op_elapsed_micros), 29724: operation_stage(_operation_stage), 29724: state_type(_state_type) { 29724: for (int i = 0; i < kNumOperationProperties; ++i) { 29724: op_properties[i] = _op_props[i]; 29724: } 29724: } 29724: 29724: 29724: const uint64_t thread_id; 29724: 29724: 29724: 29724: const ThreadType thread_type; 29724: 29724: 29724: 29724: 29724: const std::string db_name; 29724: 29724: 29724: 29724: 29724: const std::string cf_name; 29724: 29724: 29724: const OperationType operation_type; 29724: 29724: 29724: const uint64_t op_elapsed_micros; 29724: 29724: 29724: 29724: const OperationStage operation_stage; 29724: 29724: 29724: 29724: 29724: uint64_t op_properties[kNumOperationProperties]; 29724: 29724: 29724: const StateType state_type; 29724: 29724: 29724: 29724: 29724: static std::string GetThreadTypeName(ThreadType thread_type); 29724: 29724: 29724: static const std::string& GetOperationName(OperationType op_type); 29724: 29724: static const std::string MicrosToString(uint64_t op_elapsed_time); 29724: 29724: 29724: static const std::string& GetOperationStageName(OperationStage stage); 29724: 29724: 29724: 29724: static const std::string& GetOperationPropertyName(OperationType op_type, 29724: int i); 29724: 29724: 29724: 29724: static std::map InterpretOperationProperties( 29724: OperationType op_type, const uint64_t* op_properties); 29724: 29724: 29724: static const std::string& GetStateName(StateType state_type); 29724: }; 29724: 29724: } 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29724: # 49 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: namespace rocksdb { 29724: 29724: class DynamicLibrary; 29724: class FileLock; 29724: class Logger; 29724: class RandomAccessFile; 29724: class SequentialFile; 29724: class Slice; 29724: struct DataVerificationInfo; 29724: class WritableFile; 29724: class RandomRWFile; 29724: class MemoryMappedFileBuffer; 29724: class Directory; 29724: struct DBOptions; 29724: struct ImmutableDBOptions; 29724: struct MutableDBOptions; 29724: class RateLimiter; 29724: class ThreadStatusUpdater; 29724: struct ThreadStatus; 29724: class FileSystem; 29724: class SystemClock; 29724: struct ConfigOptions; 29724: struct IOOptions; 29724: 29724: const size_t kDefaultPageSize = 4 * 1024; 29724: 29724: 29724: struct EnvOptions { 29724: 29724: EnvOptions(); 29724: 29724: 29724: explicit EnvOptions(const DBOptions& options); 29724: 29724: 29724: 29724: bool use_mmap_reads = false; 29724: 29724: 29724: bool use_mmap_writes = true; 29724: 29724: 29724: bool use_direct_reads = false; 29724: 29724: 29724: bool use_direct_writes = false; 29724: 29724: 29724: bool allow_fallocate = true; 29724: 29724: 29724: bool set_fd_cloexec = true; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t bytes_per_sync = 0; 29724: # 123 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: bool strict_bytes_per_sync = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool fallocate_with_keep_size = true; 29724: 29724: 29724: size_t compaction_readahead_size = 0; 29724: 29724: 29724: size_t random_access_max_buffer_size = 0; 29724: 29724: 29724: size_t writable_file_max_buffer_size = 1024 * 1024; 29724: 29724: 29724: RateLimiter* rate_limiter = nullptr; 29724: }; 29724: # 154 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: class Env : public Customizable { 29724: public: 29724: static const char* kDefaultName() { return "DefaultEnv"; } 29724: struct FileAttributes { 29724: 29724: std::string name; 29724: 29724: 29724: uint64_t size_bytes; 29724: 29724: 29724: Temperature temperature = Temperature::kUnknown; 29724: }; 29724: 29724: Env(); 29724: 29724: 29724: explicit Env(const std::shared_ptr& fs); 29724: Env(const std::shared_ptr& fs, 29724: const std::shared_ptr& clock); 29724: 29724: Env(const Env&) = delete; 29724: void operator=(const Env&) = delete; 29724: 29724: ~Env() override; 29724: 29724: static const char* Type() { return "Environment"; } 29724: 29724: 29724: 29724: const char* Name() const override { return ""; } 29724: # 199 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& value, Env** result); 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& value, Env** result, 29724: std::shared_ptr* guard); 29724: 29724: 29724: 29724: 29724: 29724: static Status CreateFromUri(const ConfigOptions& options, 29724: const std::string& env_uri, 29724: const std::string& fs_uri, Env** result, 29724: std::shared_ptr* guard); 29724: 29724: 29724: 29724: 29724: 29724: 29724: static Env* Default(); 29724: 29724: 29724: virtual Status RegisterDbPaths(const std::vector& ) { 29724: return Status::OK(); 29724: } 29724: 29724: virtual Status UnregisterDbPaths(const std::vector& ) { 29724: return Status::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status NewSequentialFile(const std::string& fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options) = 0; 29724: # 247 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status NewRandomAccessFile(const std::string& fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options) = 0; 29724: 29724: 29724: enum WriteLifeTimeHint { 29724: WLTH_NOT_SET = 0, 29724: WLTH_NONE, 29724: WLTH_SHORT, 29724: WLTH_MEDIUM, 29724: WLTH_LONG, 29724: WLTH_EXTREME, 29724: }; 29724: # 268 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status NewWritableFile(const std::string& fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options) = 0; 29724: # 280 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status ReopenWritableFile(const std::string& , 29724: std::unique_ptr* , 29724: const EnvOptions& ) { 29724: return Status::NotSupported("Env::ReopenWritableFile() not supported."); 29724: } 29724: 29724: 29724: virtual Status ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status NewRandomRWFile(const std::string& , 29724: std::unique_ptr* , 29724: const EnvOptions& ) { 29724: return Status::NotSupported("RandomRWFile is not implemented in this Env"); 29724: } 29724: 29724: 29724: 29724: 29724: virtual Status NewMemoryMappedFileBuffer( 29724: const std::string& , 29724: std::unique_ptr* ) { 29724: return Status::NotSupported( 29724: "MemoryMappedFileBuffer is not implemented in this Env"); 29724: } 29724: # 320 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status NewDirectory(const std::string& name, 29724: std::unique_ptr* result) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status FileExists(const std::string& fname) = 0; 29724: # 338 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status GetChildren(const std::string& dir, 29724: std::vector* result) = 0; 29724: # 352 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status GetChildrenFileAttributes(const std::string& dir, 29724: std::vector* result); 29724: 29724: 29724: virtual Status DeleteFile(const std::string& fname) = 0; 29724: 29724: 29724: virtual Status Truncate(const std::string& , size_t ) { 29724: return Status::NotSupported("Truncate is not supported for this Env"); 29724: } 29724: 29724: 29724: virtual Status CreateDir(const std::string& dirname) = 0; 29724: 29724: 29724: 29724: virtual Status CreateDirIfMissing(const std::string& dirname) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status DeleteDir(const std::string& dirname) = 0; 29724: 29724: 29724: virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0; 29724: 29724: 29724: virtual Status GetFileModificationTime(const std::string& fname, 29724: uint64_t* file_mtime) = 0; 29724: 29724: virtual Status RenameFile(const std::string& src, 29724: const std::string& target) = 0; 29724: 29724: 29724: virtual Status LinkFile(const std::string& , 29724: const std::string& ) { 29724: return Status::NotSupported("LinkFile is not supported for this Env"); 29724: } 29724: 29724: virtual Status NumFileLinks(const std::string& , 29724: uint64_t* ) { 29724: return Status::NotSupported( 29724: "Getting number of file links is not supported for this Env"); 29724: } 29724: 29724: virtual Status AreFilesSame(const std::string& , 29724: const std::string& , bool* ) { 29724: return Status::NotSupported("AreFilesSame is not supported for this Env"); 29724: } 29724: # 416 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status LockFile(const std::string& fname, FileLock** lock) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status UnlockFile(FileLock* lock) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status LoadLibrary(const std::string& , 29724: const std::string& , 29724: std::shared_ptr* ) { 29724: return Status::NotSupported("LoadLibrary is not implemented in this Env"); 29724: } 29724: 29724: 29724: enum Priority { BOTTOM, LOW, HIGH, USER, TOTAL }; 29724: 29724: static std::string PriorityToString(Priority priority); 29724: 29724: 29724: enum IOPriority { 29724: IO_LOW = 0, 29724: IO_MID = 1, 29724: IO_HIGH = 2, 29724: IO_USER = 3, 29724: IO_TOTAL = 4 29724: }; 29724: 29724: 29724: enum class IOActivity : uint8_t { 29724: kFlush = 0, 29724: kCompaction = 1, 29724: kDBOpen = 2, 29724: kGet = 3, 29724: kMultiGet = 4, 29724: kDBIterator = 5, 29724: kVerifyDBChecksum = 6, 29724: kVerifyFileChecksums = 7, 29724: kGetEntity = 8, 29724: kMultiGetEntity = 9, 29724: kReadManifest = 10, 29724: kUnknown, 29724: }; 29724: # 475 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual void Schedule(void (*function)(void* arg), void* arg, 29724: Priority pri = LOW, void* tag = nullptr, 29724: void (*unschedFunction)(void* arg) = nullptr) = 0; 29724: 29724: 29724: 29724: virtual int UnSchedule(void* , Priority ) { return 0; } 29724: 29724: 29724: 29724: virtual void StartThread(void (*function)(void* arg), void* arg) = 0; 29724: 29724: 29724: 29724: template 29724: void StartThreadTyped(FunctionT function, Args&&... args) { 29724: using FWType = FunctorWrapper; 29724: StartThread( 29724: [](void* arg) { 29724: auto* functor = static_cast(arg); 29724: functor->invoke(); 29724: delete functor; 29724: }, 29724: new FWType(std::function(function), 29724: std::forward(args)...)); 29724: } 29724: 29724: 29724: virtual void WaitForJoin() {} 29724: 29724: 29724: virtual int ReserveThreads(int , Priority ) { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: virtual int ReleaseThreads(int , Priority ) { 29724: return 0; 29724: } 29724: 29724: 29724: virtual unsigned int GetThreadPoolQueueLen(Priority = LOW) const { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetTestDirectory(std::string* path) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status NewLogger(const std::string& fname, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: 29724: virtual uint64_t NowMicros() = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 29724: 29724: 29724: virtual uint64_t NowCPUNanos() { return 0; } 29724: 29724: 29724: virtual void SleepForMicroseconds(int micros) = 0; 29724: 29724: 29724: 29724: virtual Status GetHostName(char* name, uint64_t len) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status GetHostNameString(std::string* result); 29724: 29724: 29724: 29724: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 29724: 29724: 29724: virtual Status GetAbsolutePath(const std::string& db_path, 29724: std::string* output_path) = 0; 29724: 29724: 29724: 29724: 29724: virtual void SetBackgroundThreads(int number, Priority pri = LOW) = 0; 29724: virtual int GetBackgroundThreads(Priority pri = LOW) = 0; 29724: 29724: virtual Status SetAllowNonOwnerAccess(bool ) { 29724: return Status::NotSupported("Env::SetAllowNonOwnerAccess() not supported."); 29724: } 29724: 29724: 29724: 29724: 29724: virtual void IncBackgroundThreadsIfNeeded(int number, Priority pri) = 0; 29724: 29724: 29724: virtual void LowerThreadPoolIOPriority(Priority = LOW) {} 29724: 29724: 29724: virtual Status LowerThreadPoolCPUPriority(Priority , 29724: CpuPriority ) { 29724: return Status::NotSupported( 29724: "Env::LowerThreadPoolCPUPriority(Priority, CpuPriority) not supported"); 29724: } 29724: 29724: 29724: virtual void LowerThreadPoolCPUPriority(Priority = LOW) {} 29724: 29724: 29724: virtual std::string TimeToString(uint64_t time) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual std::string GenerateUniqueId(); 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const; 29724: 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForManifestRead( 29724: const EnvOptions& env_options) const; 29724: 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 29724: const DBOptions& db_options) const; 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForManifestWrite( 29724: const EnvOptions& env_options) const; 29724: 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForCompactionTableWrite( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& immutable_ops) const; 29724: 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForCompactionTableRead( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& db_options) const; 29724: 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForBlobFileRead( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& db_options) const; 29724: 29724: 29724: virtual Status GetThreadList(std::vector* ) { 29724: return Status::NotSupported("Env::GetThreadList() not supported."); 29724: } 29724: 29724: 29724: 29724: 29724: virtual ThreadStatusUpdater* GetThreadStatusUpdater() const { 29724: return thread_status_updater_; 29724: } 29724: 29724: 29724: virtual uint64_t GetThreadID() const; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetFreeSpace(const std::string& , 29724: uint64_t* ) { 29724: return Status::NotSupported("Env::GetFreeSpace() not supported."); 29724: } 29724: 29724: 29724: virtual Status IsDirectory(const std::string& , bool* ) { 29724: return Status::NotSupported("Env::IsDirectory() not supported."); 29724: } 29724: 29724: virtual void SanitizeEnvOptions(EnvOptions* ) const {} 29724: 29724: 29724: 29724: const std::shared_ptr& GetFileSystem() const; 29724: 29724: 29724: 29724: const std::shared_ptr& GetSystemClock() const; 29724: 29724: 29724: 29724: protected: 29724: 29724: 29724: ThreadStatusUpdater* thread_status_updater_; 29724: 29724: 29724: std::shared_ptr file_system_; 29724: 29724: 29724: std::shared_ptr system_clock_; 29724: 29724: private: 29724: static const size_t kMaxHostNameLen = 256; 29724: }; 29724: 29724: 29724: 29724: 29724: ThreadStatusUpdater* CreateThreadStatusUpdater(); 29724: 29724: 29724: class SequentialFile { 29724: public: 29724: SequentialFile() {} 29724: virtual ~SequentialFile(); 29724: # 726 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status Read(size_t n, Slice* result, char* scratch) = 0; 29724: # 735 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status Skip(uint64_t n) = 0; 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: 29724: virtual Status InvalidateCache(size_t , size_t ) { 29724: return Status::NotSupported( 29724: "SequentialFile::InvalidateCache not supported."); 29724: } 29724: 29724: 29724: 29724: virtual Status PositionedRead(uint64_t , size_t , 29724: Slice* , char* ) { 29724: return Status::NotSupported( 29724: "SequentialFile::PositionedRead() not supported."); 29724: } 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: struct ReadRequest { 29724: 29724: uint64_t offset; 29724: 29724: 29724: 29724: size_t len; 29724: 29724: 29724: 29724: char* scratch; 29724: 29724: 29724: 29724: Slice result; 29724: 29724: 29724: Status status; 29724: }; 29724: 29724: 29724: class RandomAccessFile { 29724: public: 29724: RandomAccessFile() {} 29724: virtual ~RandomAccessFile(); 29724: # 806 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status Read(uint64_t offset, size_t n, Slice* result, 29724: char* scratch) const = 0; 29724: 29724: 29724: virtual Status Prefetch(uint64_t , size_t ) { 29724: return Status::OK(); 29724: } 29724: # 821 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status MultiRead(ReadRequest* reqs, size_t num_reqs) { 29724: 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: (static_cast ( 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: reqs != nullptr 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: "reqs != nullptr" 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: ; 29724: for (size_t i = 0; i < num_reqs; ++i) { 29724: ReadRequest& req = reqs[i]; 29724: req.status = Read(req.offset, req.len, &req.result, req.scratch); 29724: } 29724: return Status::OK(); 29724: } 29724: # 845 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: 29724: } 29724: 29724: enum AccessPattern { NORMAL, RANDOM, SEQUENTIAL, WILLNEED, DONTNEED }; 29724: 29724: virtual void Hint(AccessPattern ) {} 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: 29724: virtual Status InvalidateCache(size_t , size_t ) { 29724: return Status::NotSupported( 29724: "RandomAccessFile::InvalidateCache not supported."); 29724: } 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: class WritableFile { 29724: public: 29724: WritableFile() 29724: : last_preallocated_block_(0), 29724: preallocation_block_size_(0), 29724: io_priority_(Env::IO_TOTAL), 29724: write_hint_(Env::WLTH_NOT_SET), 29724: strict_bytes_per_sync_(false) {} 29724: 29724: explicit WritableFile(const EnvOptions& options) 29724: : last_preallocated_block_(0), 29724: preallocation_block_size_(0), 29724: io_priority_(Env::IO_TOTAL), 29724: write_hint_(Env::WLTH_NOT_SET), 29724: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 29724: 29724: WritableFile(const WritableFile&) = delete; 29724: void operator=(const WritableFile&) = delete; 29724: 29724: 29724: 29724: 29724: virtual ~WritableFile(); 29724: 29724: 29724: 29724: 29724: virtual Status Append(const Slice& data) = 0; 29724: # 913 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status Append(const Slice& data, 29724: const DataVerificationInfo& ) { 29724: return Append(data); 29724: } 29724: # 938 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status PositionedAppend(const Slice& , 29724: uint64_t ) { 29724: return Status::NotSupported( 29724: "WritableFile::PositionedAppend() not supported."); 29724: } 29724: # 951 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status PositionedAppend( 29724: const Slice& , uint64_t , 29724: const DataVerificationInfo& ) { 29724: return Status::NotSupported("PositionedAppend"); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Truncate(uint64_t ) { return Status::OK(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Close() = 0; 29724: virtual Status Flush() = 0; 29724: virtual Status Sync() = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Fsync() { return Sync(); } 29724: 29724: 29724: 29724: virtual bool IsSyncThreadSafe() const { return false; } 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: # 1003 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 29724: 29724: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 29724: 29724: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 29724: write_hint_ = hint; 29724: } 29724: 29724: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 29724: 29724: 29724: 29724: virtual uint64_t GetFileSize() = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void SetPreallocationBlockSize(size_t size) { 29724: preallocation_block_size_ = size; 29724: } 29724: 29724: virtual void GetPreallocationStatus(size_t* block_size, 29724: size_t* last_allocated_block) { 29724: *last_allocated_block = last_preallocated_block_; 29724: *block_size = preallocation_block_size_; 29724: } 29724: 29724: 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status InvalidateCache(size_t , size_t ) { 29724: return Status::NotSupported("WritableFile::InvalidateCache not supported."); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status RangeSync(uint64_t , uint64_t ) { 29724: if (strict_bytes_per_sync_) { 29724: return Sync(); 29724: } 29724: return Status::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void PrepareWrite(size_t offset, size_t len) { 29724: if (preallocation_block_size_ == 0) { 29724: return; 29724: } 29724: 29724: 29724: 29724: const auto block_size = preallocation_block_size_; 29724: size_t new_last_preallocated_block = 29724: (offset + len + block_size - 1) / block_size; 29724: if (new_last_preallocated_block > last_preallocated_block_) { 29724: size_t num_spanned_blocks = 29724: new_last_preallocated_block - last_preallocated_block_; 29724: 29724: Allocate(block_size * last_preallocated_block_, 29724: block_size * num_spanned_blocks) 29724: .PermitUncheckedError(); 29724: last_preallocated_block_ = new_last_preallocated_block; 29724: } 29724: } 29724: 29724: 29724: virtual Status Allocate(uint64_t , uint64_t ) { 29724: return Status::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: protected: 29724: size_t preallocation_block_size() { return preallocation_block_size_; } 29724: 29724: private: 29724: size_t last_preallocated_block_; 29724: size_t preallocation_block_size_; 29724: 29724: protected: 29724: Env::IOPriority io_priority_; 29724: Env::WriteLifeTimeHint write_hint_; 29724: const bool strict_bytes_per_sync_; 29724: }; 29724: 29724: 29724: class RandomRWFile { 29724: public: 29724: RandomRWFile() {} 29724: 29724: RandomRWFile(const RandomRWFile&) = delete; 29724: RandomRWFile& operator=(const RandomRWFile&) = delete; 29724: 29724: 29724: 29724: 29724: virtual ~RandomRWFile() {} 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: virtual Status Write(uint64_t offset, const Slice& data) = 0; 29724: # 1139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status Read(uint64_t offset, size_t n, Slice* result, 29724: char* scratch) const = 0; 29724: 29724: virtual Status Flush() = 0; 29724: 29724: virtual Status Sync() = 0; 29724: 29724: virtual Status Fsync() { return Sync(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Close() = 0; 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: class MemoryMappedFileBuffer { 29724: public: 29724: MemoryMappedFileBuffer(void* _base, size_t _length) 29724: : base_(_base), length_(_length) {} 29724: 29724: virtual ~MemoryMappedFileBuffer() = 0; 29724: 29724: 29724: 29724: MemoryMappedFileBuffer(const MemoryMappedFileBuffer&) = delete; 29724: MemoryMappedFileBuffer& operator=(const MemoryMappedFileBuffer&) = delete; 29724: 29724: void* GetBase() const { return base_; } 29724: size_t GetLen() const { return length_; } 29724: 29724: protected: 29724: void* base_; 29724: const size_t length_; 29724: }; 29724: 29724: 29724: 29724: class Directory { 29724: public: 29724: 29724: 29724: virtual ~Directory() {} 29724: 29724: virtual Status Fsync() = 0; 29724: 29724: 29724: 29724: virtual Status Close() { return Status::NotSupported("Close"); } 29724: 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: }; 29724: 29724: enum InfoLogLevel : unsigned char { 29724: DEBUG_LEVEL = 0, 29724: INFO_LEVEL, 29724: WARN_LEVEL, 29724: ERROR_LEVEL, 29724: FATAL_LEVEL, 29724: HEADER_LEVEL, 29724: NUM_INFO_LOG_LEVELS, 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class Logger { 29724: public: 29724: static constexpr size_t kDoNotSupportGetLogFileSize = 29724: # 1220 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: (4294967295U) 29724: # 1220 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: ; 29724: 29724: 29724: 29724: static const InfoLogLevel kDefaultLogLevel; 29724: 29724: explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL) 29724: : closed_(false), log_level_(log_level) {} 29724: 29724: Logger(const Logger&) = delete; 29724: void operator=(const Logger&) = delete; 29724: 29724: virtual ~Logger(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Close(); 29724: 29724: 29724: 29724: 29724: virtual void LogHeader(const char* format, va_list ap) { 29724: 29724: 29724: Logv(InfoLogLevel::INFO_LEVEL, format, ap); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void Logv(const char* , va_list ) { 29724: 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: (static_cast ( 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: false 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: "false" 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: ; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual void Logv(const InfoLogLevel log_level, const char* format, 29724: va_list ap); 29724: 29724: virtual size_t GetLogFileSize() const { return kDoNotSupportGetLogFileSize; } 29724: 29724: virtual void Flush() {} 29724: virtual InfoLogLevel GetInfoLogLevel() const { return log_level_; } 29724: virtual void SetInfoLogLevel(const InfoLogLevel log_level) { 29724: log_level_ = log_level; 29724: } 29724: 29724: 29724: 29724: protected: 29724: virtual Status CloseImpl(); 29724: bool closed_; 29724: 29724: private: 29724: InfoLogLevel log_level_; 29724: }; 29724: 29724: 29724: 29724: 29724: class FileLock { 29724: public: 29724: FileLock() {} 29724: virtual ~FileLock(); 29724: 29724: private: 29724: 29724: FileLock(const FileLock&) = delete; 29724: void operator=(const FileLock&) = delete; 29724: }; 29724: 29724: class DynamicLibrary { 29724: public: 29724: virtual ~DynamicLibrary() {} 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: 29724: template 29724: Status LoadFunction(const std::string& sym_name, std::function* function) { 29724: 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: (static_cast ( 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: nullptr != function 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: "nullptr != function" 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: ; 29724: void* ptr = nullptr; 29724: Status s = LoadSymbol(sym_name, &ptr); 29724: *function = reinterpret_cast(ptr); 29724: return s; 29724: } 29724: 29724: virtual Status LoadSymbol(const std::string& sym_name, void** func) = 0; 29724: }; 29724: 29724: void LogFlush(const std::shared_ptr& info_log); 29724: 29724: void Log(const InfoLogLevel log_level, const std::shared_ptr& info_log, 29724: const char* format, ...) __attribute__((__format__(__printf__, 3, 4))); 29724: 29724: 29724: void Header(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Debug(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Info(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Warn(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Error(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Fatal(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: 29724: 29724: 29724: void Log(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: 29724: void LogFlush(Logger* info_log); 29724: 29724: void Log(const InfoLogLevel log_level, Logger* info_log, const char* format, 29724: ...) __attribute__((__format__(__printf__, 3, 4))); 29724: 29724: 29724: void Log(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: 29724: 29724: void Header(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Debug(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Info(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Warn(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Error(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Fatal(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: 29724: 29724: Status WriteStringToFile(Env* env, const Slice& data, const std::string& fname, 29724: bool should_sync = false, 29724: const IOOptions* io_options = nullptr); 29724: 29724: 29724: Status ReadFileToString(Env* env, const std::string& fname, std::string* data); 29724: # 1402 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: class EnvWrapper : public Env { 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: struct Target { 29724: Env* env; 29724: std::shared_ptr guard; 29724: 29724: 29724: explicit Target(Env* t) : env(t) {} 29724: 29724: 29724: explicit Target(std::unique_ptr&& t) : guard(t.release()) { 29724: env = guard.get(); 29724: } 29724: 29724: 29724: explicit Target(const std::shared_ptr& t) : guard(t) { 29724: env = guard.get(); 29724: } 29724: 29724: 29724: void Prepare() { 29724: if (guard.get() != nullptr) { 29724: env = guard.get(); 29724: } else if (env == nullptr) { 29724: env = Env::Default(); 29724: } 29724: } 29724: }; 29724: 29724: 29724: explicit EnvWrapper(Env* t); 29724: explicit EnvWrapper(std::unique_ptr&& t); 29724: explicit EnvWrapper(const std::shared_ptr& t); 29724: ~EnvWrapper() override; 29724: 29724: 29724: Env* target() const { return target_.env; } 29724: 29724: 29724: 29724: const char* Name() const override { return target_.env->Name(); } 29724: 29724: 29724: Status RegisterDbPaths(const std::vector& paths) override { 29724: return target_.env->RegisterDbPaths(paths); 29724: } 29724: 29724: Status UnregisterDbPaths(const std::vector& paths) override { 29724: return target_.env->UnregisterDbPaths(paths); 29724: } 29724: 29724: Status NewSequentialFile(const std::string& f, 29724: std::unique_ptr* r, 29724: const EnvOptions& options) override { 29724: return target_.env->NewSequentialFile(f, r, options); 29724: } 29724: Status NewRandomAccessFile(const std::string& f, 29724: std::unique_ptr* r, 29724: const EnvOptions& options) override { 29724: return target_.env->NewRandomAccessFile(f, r, options); 29724: } 29724: Status NewWritableFile(const std::string& f, std::unique_ptr* r, 29724: const EnvOptions& options) override { 29724: return target_.env->NewWritableFile(f, r, options); 29724: } 29724: Status ReopenWritableFile(const std::string& fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options) override { 29724: return target_.env->ReopenWritableFile(fname, result, options); 29724: } 29724: Status ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: std::unique_ptr* r, 29724: const EnvOptions& options) override { 29724: return target_.env->ReuseWritableFile(fname, old_fname, r, options); 29724: } 29724: Status NewRandomRWFile(const std::string& fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options) override { 29724: return target_.env->NewRandomRWFile(fname, result, options); 29724: } 29724: Status NewMemoryMappedFileBuffer( 29724: const std::string& fname, 29724: std::unique_ptr* result) override { 29724: return target_.env->NewMemoryMappedFileBuffer(fname, result); 29724: } 29724: Status NewDirectory(const std::string& name, 29724: std::unique_ptr* result) override { 29724: return target_.env->NewDirectory(name, result); 29724: } 29724: Status FileExists(const std::string& f) override { 29724: return target_.env->FileExists(f); 29724: } 29724: Status GetChildren(const std::string& dir, 29724: std::vector* r) override { 29724: return target_.env->GetChildren(dir, r); 29724: } 29724: Status GetChildrenFileAttributes( 29724: const std::string& dir, std::vector* result) override { 29724: return target_.env->GetChildrenFileAttributes(dir, result); 29724: } 29724: Status DeleteFile(const std::string& f) override { 29724: return target_.env->DeleteFile(f); 29724: } 29724: Status Truncate(const std::string& fname, size_t size) override { 29724: return target_.env->Truncate(fname, size); 29724: } 29724: Status CreateDir(const std::string& d) override { 29724: return target_.env->CreateDir(d); 29724: } 29724: Status CreateDirIfMissing(const std::string& d) override { 29724: return target_.env->CreateDirIfMissing(d); 29724: } 29724: Status DeleteDir(const std::string& d) override { 29724: return target_.env->DeleteDir(d); 29724: } 29724: Status GetFileSize(const std::string& f, uint64_t* s) override { 29724: return target_.env->GetFileSize(f, s); 29724: } 29724: 29724: Status GetFileModificationTime(const std::string& fname, 29724: uint64_t* file_mtime) override { 29724: return target_.env->GetFileModificationTime(fname, file_mtime); 29724: } 29724: 29724: Status RenameFile(const std::string& s, const std::string& t) override { 29724: return target_.env->RenameFile(s, t); 29724: } 29724: 29724: Status LinkFile(const std::string& s, const std::string& t) override { 29724: return target_.env->LinkFile(s, t); 29724: } 29724: 29724: Status NumFileLinks(const std::string& fname, uint64_t* count) override { 29724: return target_.env->NumFileLinks(fname, count); 29724: } 29724: 29724: Status AreFilesSame(const std::string& first, const std::string& second, 29724: bool* res) override { 29724: return target_.env->AreFilesSame(first, second, res); 29724: } 29724: 29724: Status LockFile(const std::string& f, FileLock** l) override { 29724: return target_.env->LockFile(f, l); 29724: } 29724: 29724: Status UnlockFile(FileLock* l) override { return target_.env->UnlockFile(l); } 29724: 29724: Status IsDirectory(const std::string& path, bool* is_dir) override { 29724: return target_.env->IsDirectory(path, is_dir); 29724: } 29724: 29724: Status LoadLibrary(const std::string& lib_name, 29724: const std::string& search_path, 29724: std::shared_ptr* result) override { 29724: return target_.env->LoadLibrary(lib_name, search_path, result); 29724: } 29724: 29724: void Schedule(void (*f)(void* arg), void* a, Priority pri, 29724: void* tag = nullptr, void (*u)(void* arg) = nullptr) override { 29724: return target_.env->Schedule(f, a, pri, tag, u); 29724: } 29724: 29724: int UnSchedule(void* tag, Priority pri) override { 29724: return target_.env->UnSchedule(tag, pri); 29724: } 29724: 29724: void StartThread(void (*f)(void*), void* a) override { 29724: return target_.env->StartThread(f, a); 29724: } 29724: void WaitForJoin() override { return target_.env->WaitForJoin(); } 29724: unsigned int GetThreadPoolQueueLen(Priority pri = LOW) const override { 29724: return target_.env->GetThreadPoolQueueLen(pri); 29724: } 29724: 29724: int ReserveThreads(int threads_to_be_reserved, Priority pri) override { 29724: return target_.env->ReserveThreads(threads_to_be_reserved, pri); 29724: } 29724: 29724: int ReleaseThreads(int threads_to_be_released, Priority pri) override { 29724: return target_.env->ReleaseThreads(threads_to_be_released, pri); 29724: } 29724: 29724: Status GetTestDirectory(std::string* path) override { 29724: return target_.env->GetTestDirectory(path); 29724: } 29724: Status NewLogger(const std::string& fname, 29724: std::shared_ptr* result) override { 29724: return target_.env->NewLogger(fname, result); 29724: } 29724: uint64_t NowMicros() override { return target_.env->NowMicros(); } 29724: uint64_t NowNanos() override { return target_.env->NowNanos(); } 29724: uint64_t NowCPUNanos() override { return target_.env->NowCPUNanos(); } 29724: 29724: void SleepForMicroseconds(int micros) override { 29724: target_.env->SleepForMicroseconds(micros); 29724: } 29724: Status GetHostName(char* name, uint64_t len) override { 29724: return target_.env->GetHostName(name, len); 29724: } 29724: Status GetCurrentTime(int64_t* unix_time) override { 29724: return target_.env->GetCurrentTime(unix_time); 29724: } 29724: Status GetAbsolutePath(const std::string& db_path, 29724: std::string* output_path) override { 29724: return target_.env->GetAbsolutePath(db_path, output_path); 29724: } 29724: void SetBackgroundThreads(int num, Priority pri) override { 29724: return target_.env->SetBackgroundThreads(num, pri); 29724: } 29724: int GetBackgroundThreads(Priority pri) override { 29724: return target_.env->GetBackgroundThreads(pri); 29724: } 29724: 29724: Status SetAllowNonOwnerAccess(bool allow_non_owner_access) override { 29724: return target_.env->SetAllowNonOwnerAccess(allow_non_owner_access); 29724: } 29724: 29724: void IncBackgroundThreadsIfNeeded(int num, Priority pri) override { 29724: return target_.env->IncBackgroundThreadsIfNeeded(num, pri); 29724: } 29724: 29724: void LowerThreadPoolIOPriority(Priority pool) override { 29724: target_.env->LowerThreadPoolIOPriority(pool); 29724: } 29724: 29724: void LowerThreadPoolCPUPriority(Priority pool) override { 29724: target_.env->LowerThreadPoolCPUPriority(pool); 29724: } 29724: 29724: Status LowerThreadPoolCPUPriority(Priority pool, CpuPriority pri) override { 29724: return target_.env->LowerThreadPoolCPUPriority(pool, pri); 29724: } 29724: 29724: std::string TimeToString(uint64_t time) override { 29724: return target_.env->TimeToString(time); 29724: } 29724: 29724: Status GetThreadList(std::vector* thread_list) override { 29724: return target_.env->GetThreadList(thread_list); 29724: } 29724: 29724: ThreadStatusUpdater* GetThreadStatusUpdater() const override { 29724: return target_.env->GetThreadStatusUpdater(); 29724: } 29724: 29724: uint64_t GetThreadID() const override { return target_.env->GetThreadID(); } 29724: 29724: std::string GenerateUniqueId() override { 29724: return target_.env->GenerateUniqueId(); 29724: } 29724: 29724: EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const override { 29724: return target_.env->OptimizeForLogRead(env_options); 29724: } 29724: EnvOptions OptimizeForManifestRead( 29724: const EnvOptions& env_options) const override { 29724: return target_.env->OptimizeForManifestRead(env_options); 29724: } 29724: EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 29724: const DBOptions& db_options) const override { 29724: return target_.env->OptimizeForLogWrite(env_options, db_options); 29724: } 29724: EnvOptions OptimizeForManifestWrite( 29724: const EnvOptions& env_options) const override { 29724: return target_.env->OptimizeForManifestWrite(env_options); 29724: } 29724: EnvOptions OptimizeForCompactionTableWrite( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& immutable_ops) const override { 29724: return target_.env->OptimizeForCompactionTableWrite(env_options, 29724: immutable_ops); 29724: } 29724: EnvOptions OptimizeForCompactionTableRead( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& db_options) const override { 29724: return target_.env->OptimizeForCompactionTableRead(env_options, db_options); 29724: } 29724: EnvOptions OptimizeForBlobFileRead( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& db_options) const override { 29724: return target_.env->OptimizeForBlobFileRead(env_options, db_options); 29724: } 29724: Status GetFreeSpace(const std::string& path, uint64_t* diskfree) override { 29724: return target_.env->GetFreeSpace(path, diskfree); 29724: } 29724: void SanitizeEnvOptions(EnvOptions* env_opts) const override { 29724: target_.env->SanitizeEnvOptions(env_opts); 29724: } 29724: Status PrepareOptions(const ConfigOptions& options) override; 29724: std::string SerializeOptions(const ConfigOptions& config_options, 29724: const std::string& header) const override; 29724: 29724: private: 29724: Target target_; 29724: }; 29724: 29724: class SequentialFileWrapper : public SequentialFile { 29724: public: 29724: explicit SequentialFileWrapper(SequentialFile* target) : target_(target) {} 29724: 29724: Status Read(size_t n, Slice* result, char* scratch) override { 29724: return target_->Read(n, result, scratch); 29724: } 29724: Status Skip(uint64_t n) override { return target_->Skip(n); } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: Status InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: Status PositionedRead(uint64_t offset, size_t n, Slice* result, 29724: char* scratch) override { 29724: return target_->PositionedRead(offset, n, result, scratch); 29724: } 29724: 29724: private: 29724: SequentialFile* target_; 29724: }; 29724: 29724: class RandomAccessFileWrapper : public RandomAccessFile { 29724: public: 29724: explicit RandomAccessFileWrapper(RandomAccessFile* target) 29724: : target_(target) {} 29724: 29724: Status Read(uint64_t offset, size_t n, Slice* result, 29724: char* scratch) const override { 29724: return target_->Read(offset, n, result, scratch); 29724: } 29724: Status MultiRead(ReadRequest* reqs, size_t num_reqs) override { 29724: return target_->MultiRead(reqs, num_reqs); 29724: } 29724: Status Prefetch(uint64_t offset, size_t n) override { 29724: return target_->Prefetch(offset, n); 29724: } 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: Status InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: 29724: private: 29724: RandomAccessFile* target_; 29724: }; 29724: 29724: class WritableFileWrapper : public WritableFile { 29724: public: 29724: explicit WritableFileWrapper(WritableFile* t) : target_(t) {} 29724: 29724: Status Append(const Slice& data) override { return target_->Append(data); } 29724: Status Append(const Slice& data, 29724: const DataVerificationInfo& verification_info) override { 29724: return target_->Append(data, verification_info); 29724: } 29724: Status PositionedAppend(const Slice& data, uint64_t offset) override { 29724: return target_->PositionedAppend(data, offset); 29724: } 29724: Status PositionedAppend( 29724: const Slice& data, uint64_t offset, 29724: const DataVerificationInfo& verification_info) override { 29724: return target_->PositionedAppend(data, offset, verification_info); 29724: } 29724: Status Truncate(uint64_t size) override { return target_->Truncate(size); } 29724: Status Close() override { return target_->Close(); } 29724: Status Flush() override { return target_->Flush(); } 29724: Status Sync() override { return target_->Sync(); } 29724: Status Fsync() override { return target_->Fsync(); } 29724: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 29724: 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: 29724: void SetIOPriority(Env::IOPriority pri) override { 29724: target_->SetIOPriority(pri); 29724: } 29724: 29724: Env::IOPriority GetIOPriority() override { return target_->GetIOPriority(); } 29724: 29724: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 29724: target_->SetWriteLifeTimeHint(hint); 29724: } 29724: 29724: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 29724: return target_->GetWriteLifeTimeHint(); 29724: } 29724: 29724: uint64_t GetFileSize() override { return target_->GetFileSize(); } 29724: 29724: void SetPreallocationBlockSize(size_t size) override { 29724: target_->SetPreallocationBlockSize(size); 29724: } 29724: 29724: void GetPreallocationStatus(size_t* block_size, 29724: size_t* last_allocated_block) override { 29724: target_->GetPreallocationStatus(block_size, last_allocated_block); 29724: } 29724: 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: 29724: Status InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: 29724: Status RangeSync(uint64_t offset, uint64_t nbytes) override { 29724: return target_->RangeSync(offset, nbytes); 29724: } 29724: 29724: void PrepareWrite(size_t offset, size_t len) override { 29724: target_->PrepareWrite(offset, len); 29724: } 29724: 29724: Status Allocate(uint64_t offset, uint64_t len) override { 29724: return target_->Allocate(offset, len); 29724: } 29724: 29724: private: 29724: WritableFile* target_; 29724: }; 29724: 29724: class RandomRWFileWrapper : public RandomRWFile { 29724: public: 29724: explicit RandomRWFileWrapper(RandomRWFile* target) : target_(target) {} 29724: 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: Status Write(uint64_t offset, const Slice& data) override { 29724: return target_->Write(offset, data); 29724: } 29724: Status Read(uint64_t offset, size_t n, Slice* result, 29724: char* scratch) const override { 29724: return target_->Read(offset, n, result, scratch); 29724: } 29724: Status Flush() override { return target_->Flush(); } 29724: Status Sync() override { return target_->Sync(); } 29724: Status Fsync() override { return target_->Fsync(); } 29724: Status Close() override { return target_->Close(); } 29724: 29724: private: 29724: RandomRWFile* target_; 29724: }; 29724: 29724: class DirectoryWrapper : public Directory { 29724: public: 29724: explicit DirectoryWrapper(Directory* target) : target_(target) {} 29724: 29724: Status Fsync() override { return target_->Fsync(); } 29724: Status Close() override { return target_->Close(); } 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: 29724: private: 29724: Directory* target_; 29724: }; 29724: 29724: class LoggerWrapper : public Logger { 29724: public: 29724: explicit LoggerWrapper(Logger* target) : target_(target) {} 29724: 29724: Status Close() override { return target_->Close(); } 29724: void LogHeader(const char* format, va_list ap) override { 29724: return target_->LogHeader(format, ap); 29724: } 29724: void Logv(const char* format, va_list ap) override { 29724: return target_->Logv(format, ap); 29724: } 29724: void Logv(const InfoLogLevel log_level, const char* format, 29724: va_list ap) override { 29724: return target_->Logv(log_level, format, ap); 29724: } 29724: size_t GetLogFileSize() const override { return target_->GetLogFileSize(); } 29724: void Flush() override { return target_->Flush(); } 29724: InfoLogLevel GetInfoLogLevel() const override { 29724: return target_->GetInfoLogLevel(); 29724: } 29724: void SetInfoLogLevel(const InfoLogLevel log_level) override { 29724: return target_->SetInfoLogLevel(log_level); 29724: } 29724: 29724: private: 29724: Logger* target_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: Env* NewMemEnv(Env* base_env); 29724: 29724: 29724: 29724: 29724: Env* NewTimedEnv(Env* base_env); 29724: 29724: 29724: 29724: 29724: Status NewEnvLogger(const std::string& fname, Env* env, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: std::unique_ptr NewCompositeEnv(const std::shared_ptr& fs); 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 2 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29724: namespace rocksdb { 29724: 29724: 29724: constexpr char kUnknownFileChecksum[] = ""; 29724: 29724: constexpr char kUnknownFileChecksumFuncName[] = "Unknown"; 29724: 29724: 29724: 29724: constexpr char kStandardDbFileChecksumFuncName[] = "FileChecksumCrc32c"; 29724: 29724: struct FileChecksumGenContext { 29724: std::string file_name; 29724: 29724: 29724: 29724: 29724: std::string requested_checksum_func_name; 29724: }; 29724: # 50 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29724: class FileChecksumGenerator { 29724: public: 29724: virtual ~FileChecksumGenerator() {} 29724: 29724: 29724: 29724: 29724: virtual void Update(const char* data, size_t n) = 0; 29724: 29724: 29724: virtual void Finalize() = 0; 29724: 29724: 29724: 29724: virtual std::string GetChecksum() const = 0; 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FileChecksumGenFactory : public Customizable { 29724: public: 29724: ~FileChecksumGenFactory() override {} 29724: static const char* Type() { return "FileChecksumGenFactory"; } 29724: static Status CreateFromString( 29724: const ConfigOptions& options, const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: 29724: virtual std::unique_ptr CreateFileChecksumGenerator( 29724: const FileChecksumGenContext& context) = 0; 29724: 29724: 29724: const char* Name() const override = 0; 29724: }; 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29724: class FileChecksumList { 29724: public: 29724: virtual ~FileChecksumList() {} 29724: 29724: 29724: virtual void reset() = 0; 29724: 29724: 29724: virtual size_t size() const = 0; 29724: 29724: 29724: 29724: 29724: virtual Status GetAllFileChecksums( 29724: std::vector* file_numbers, std::vector* checksums, 29724: std::vector* checksum_func_names) = 0; 29724: 29724: 29724: 29724: virtual Status SearchOneFileChecksum(uint64_t file_number, 29724: std::string* checksum, 29724: std::string* checksum_func_name) = 0; 29724: 29724: 29724: virtual Status InsertOneFileChecksum( 29724: uint64_t file_number, const std::string& checksum, 29724: const std::string& checksum_func_name) = 0; 29724: 29724: 29724: virtual Status RemoveOneFileChecksum(uint64_t file_number) = 0; 29724: }; 29724: 29724: 29724: FileChecksumList* NewFileChecksumList(); 29724: # 143 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29724: extern std::shared_ptr 29724: GetFileChecksumGenCrc32cFactory(); 29724: 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_job_stats.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 8 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_job_stats.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: struct CompactionJobStats { 29724: CompactionJobStats() { Reset(); } 29724: void Reset(); 29724: 29724: void Add(const CompactionJobStats& stats); 29724: 29724: 29724: uint64_t elapsed_micros = 0; 29724: 29724: 29724: uint64_t cpu_micros = 0; 29724: 29724: 29724: 29724: bool has_num_input_records = false; 29724: 29724: uint64_t num_input_records = 0; 29724: 29724: uint64_t num_blobs_read = 0; 29724: 29724: size_t num_input_files = 0; 29724: 29724: size_t num_input_files_at_output_level = 0; 29724: 29724: 29724: size_t num_filtered_input_files = 0; 29724: 29724: 29724: size_t num_filtered_input_files_at_output_level = 0; 29724: 29724: 29724: uint64_t num_output_records = 0; 29724: 29724: size_t num_output_files = 0; 29724: 29724: size_t num_output_files_blob = 0; 29724: 29724: 29724: bool is_full_compaction = false; 29724: 29724: bool is_manual_compaction = false; 29724: 29724: bool is_remote_compaction = false; 29724: 29724: 29724: uint64_t total_input_bytes = 0; 29724: 29724: uint64_t total_blob_bytes_read = 0; 29724: 29724: uint64_t total_output_bytes = 0; 29724: 29724: uint64_t total_output_bytes_blob = 0; 29724: 29724: 29724: uint64_t total_skipped_input_bytes = 0; 29724: 29724: 29724: 29724: 29724: uint64_t num_records_replaced = 0; 29724: 29724: 29724: uint64_t total_input_raw_key_bytes = 0; 29724: 29724: uint64_t total_input_raw_value_bytes = 0; 29724: 29724: 29724: 29724: uint64_t num_input_deletion_records = 0; 29724: 29724: 29724: 29724: uint64_t num_expired_deletion_records = 0; 29724: 29724: 29724: 29724: uint64_t num_corrupt_keys = 0; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t file_write_nanos = 0; 29724: 29724: 29724: uint64_t file_range_sync_nanos = 0; 29724: 29724: 29724: uint64_t file_fsync_nanos = 0; 29724: 29724: 29724: uint64_t file_prepare_write_nanos = 0; 29724: 29724: 29724: 29724: static const size_t kMaxPrefixLength = 8; 29724: 29724: std::string smallest_output_key_prefix; 29724: std::string largest_output_key_prefix; 29724: 29724: 29724: uint64_t num_single_del_fallthru = 0; 29724: 29724: 29724: uint64_t num_single_del_mismatch = 0; 29724: 29724: 29724: }; 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 1 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstring" 1 3 29724: # 39 "/usr/include/c++/14/cstring" 3 29724: 29724: # 40 "/usr/include/c++/14/cstring" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 43 "/usr/include/c++/14/cstring" 2 3 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 2 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class IOStatus : public Status { 29724: public: 29724: using Code = Status::Code; 29724: using SubCode = Status::SubCode; 29724: 29724: enum IOErrorScope : unsigned char { 29724: kIOErrorScopeFileSystem, 29724: kIOErrorScopeFile, 29724: kIOErrorScopeRange, 29724: kIOErrorScopeMax, 29724: }; 29724: 29724: 29724: IOStatus() : IOStatus(kOk, kNone) {} 29724: ~IOStatus() {} 29724: 29724: 29724: IOStatus(const IOStatus& s); 29724: IOStatus& operator=(const IOStatus& s); 29724: IOStatus(IOStatus&& s) noexcept; 29724: IOStatus& operator=(IOStatus&& s) noexcept; 29724: bool operator==(const IOStatus& rhs) const; 29724: bool operator!=(const IOStatus& rhs) const; 29724: 29724: void SetRetryable(bool retryable) { retryable_ = retryable; } 29724: void SetDataLoss(bool data_loss) { data_loss_ = data_loss; } 29724: void SetScope(IOErrorScope scope) { 29724: scope_ = static_cast(scope); 29724: } 29724: 29724: bool GetRetryable() const { return retryable_; } 29724: bool GetDataLoss() const { return data_loss_; } 29724: IOErrorScope GetScope() const { return static_cast(scope_); } 29724: 29724: 29724: static IOStatus OK() { return IOStatus(); } 29724: 29724: static IOStatus NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kNotSupported, msg, msg2); 29724: } 29724: static IOStatus NotSupported(SubCode msg = kNone) { 29724: return IOStatus(kNotSupported, msg); 29724: } 29724: 29724: 29724: static IOStatus NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kNotFound, msg, msg2); 29724: } 29724: 29724: static IOStatus NotFound(SubCode msg = kNone) { 29724: return IOStatus(kNotFound, msg); 29724: } 29724: 29724: static IOStatus Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kCorruption, msg, msg2); 29724: } 29724: static IOStatus Corruption(SubCode msg = kNone) { 29724: return IOStatus(kCorruption, msg); 29724: } 29724: 29724: static IOStatus InvalidArgument(const Slice& msg, 29724: const Slice& msg2 = Slice()) { 29724: return IOStatus(kInvalidArgument, msg, msg2); 29724: } 29724: static IOStatus InvalidArgument(SubCode msg = kNone) { 29724: return IOStatus(kInvalidArgument, msg); 29724: } 29724: 29724: static IOStatus IOError(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kIOError, msg, msg2); 29724: } 29724: static IOStatus IOError(SubCode msg = kNone) { 29724: return IOStatus(kIOError, msg); 29724: } 29724: 29724: static IOStatus Busy(SubCode msg = kNone) { return IOStatus(kBusy, msg); } 29724: static IOStatus Busy(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kBusy, msg, msg2); 29724: } 29724: 29724: static IOStatus TimedOut(SubCode msg = kNone) { 29724: return IOStatus(kTimedOut, msg); 29724: } 29724: static IOStatus TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kTimedOut, msg, msg2); 29724: } 29724: 29724: static IOStatus NoSpace() { return IOStatus(kIOError, kNoSpace); } 29724: static IOStatus NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kIOError, kNoSpace, msg, msg2); 29724: } 29724: 29724: static IOStatus PathNotFound() { return IOStatus(kIOError, kPathNotFound); } 29724: static IOStatus PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kIOError, kPathNotFound, msg, msg2); 29724: } 29724: 29724: static IOStatus IOFenced() { return IOStatus(kIOError, kIOFenced); } 29724: static IOStatus IOFenced(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kIOError, kIOFenced, msg, msg2); 29724: } 29724: 29724: static IOStatus Aborted(SubCode msg = kNone) { 29724: return IOStatus(kAborted, msg); 29724: } 29724: static IOStatus Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kAborted, msg, msg2); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: private: 29724: friend IOStatus status_to_io_status(Status&&); 29724: 29724: explicit IOStatus(Code _code, SubCode _subcode = kNone) 29724: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) {} 29724: 29724: IOStatus(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2); 29724: IOStatus(Code _code, const Slice& msg, const Slice& msg2) 29724: : IOStatus(_code, kNone, msg, msg2) {} 29724: }; 29724: 29724: inline IOStatus::IOStatus(Code _code, SubCode _subcode, const Slice& msg, 29724: const Slice& msg2) 29724: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) { 29724: 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: (static_cast ( 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: code_ != kOk 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: "code_ != kOk" 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: ; 29724: 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: (static_cast ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: subcode_ != kMaxSubCode 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: "subcode_ != kMaxSubCode" 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: ; 29724: const size_t len1 = msg.size(); 29724: const size_t len2 = msg2.size(); 29724: const size_t size = len1 + (len2 ? (2 + len2) : 0); 29724: char* const result = new char[size + 1]; 29724: memcpy(result, msg.data(), len1); 29724: if (len2) { 29724: result[len1] = ':'; 29724: result[len1 + 1] = ' '; 29724: memcpy(result + len1 + 2, msg2.data(), len2); 29724: } 29724: result[size] = '\0'; 29724: state_.reset(result); 29724: } 29724: 29724: inline IOStatus::IOStatus(const IOStatus& s) : Status(s.code_, s.subcode_) { 29724: 29724: 29724: 29724: retryable_ = s.retryable_; 29724: data_loss_ = s.data_loss_; 29724: scope_ = s.scope_; 29724: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29724: } 29724: inline IOStatus& IOStatus::operator=(const IOStatus& s) { 29724: 29724: 29724: if (this != &s) { 29724: 29724: 29724: 29724: 29724: code_ = s.code_; 29724: subcode_ = s.subcode_; 29724: retryable_ = s.retryable_; 29724: data_loss_ = s.data_loss_; 29724: scope_ = s.scope_; 29724: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29724: } 29724: return *this; 29724: } 29724: 29724: inline IOStatus::IOStatus(IOStatus&& s) noexcept : IOStatus() { 29724: *this = std::move(s); 29724: } 29724: 29724: inline IOStatus& IOStatus::operator=(IOStatus&& s) noexcept { 29724: if (this != &s) { 29724: 29724: 29724: 29724: 29724: code_ = std::move(s.code_); 29724: s.code_ = kOk; 29724: subcode_ = std::move(s.subcode_); 29724: s.subcode_ = kNone; 29724: retryable_ = s.retryable_; 29724: data_loss_ = s.data_loss_; 29724: scope_ = s.scope_; 29724: s.scope_ = kIOErrorScopeFileSystem; 29724: state_ = std::move(s.state_); 29724: } 29724: return *this; 29724: } 29724: 29724: inline bool IOStatus::operator==(const IOStatus& rhs) const { 29724: 29724: 29724: 29724: 29724: return (code_ == rhs.code_); 29724: } 29724: 29724: inline bool IOStatus::operator!=(const IOStatus& rhs) const { 29724: 29724: 29724: 29724: 29724: return !(*this == rhs); 29724: } 29724: 29724: inline IOStatus status_to_io_status(Status&& status) { 29724: IOStatus io_s; 29724: Status& s = io_s; 29724: s = std::move(status); 29724: return io_s; 29724: } 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 1 29724: 29724: 29724: 29724: 29724: 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: namespace rocksdb { 29724: 29724: class InternalTblPropColl; 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: using UserCollectedProperties = std::map; 29724: 29724: 29724: struct TablePropertiesNames { 29724: static const std::string kDbId; 29724: static const std::string kDbSessionId; 29724: static const std::string kDbHostId; 29724: static const std::string kOriginalFileNumber; 29724: static const std::string kDataSize; 29724: static const std::string kIndexSize; 29724: static const std::string kIndexPartitions; 29724: static const std::string kTopLevelIndexSize; 29724: static const std::string kIndexKeyIsUserKey; 29724: static const std::string kIndexValueIsDeltaEncoded; 29724: static const std::string kFilterSize; 29724: static const std::string kRawKeySize; 29724: static const std::string kRawValueSize; 29724: static const std::string kNumDataBlocks; 29724: static const std::string kNumEntries; 29724: static const std::string kNumFilterEntries; 29724: static const std::string kDeletedKeys; 29724: static const std::string kMergeOperands; 29724: static const std::string kNumRangeDeletions; 29724: static const std::string kFormatVersion; 29724: static const std::string kFixedKeyLen; 29724: static const std::string kFilterPolicy; 29724: static const std::string kColumnFamilyName; 29724: static const std::string kColumnFamilyId; 29724: static const std::string kComparator; 29724: static const std::string kMergeOperator; 29724: static const std::string kPrefixExtractorName; 29724: static const std::string kPropertyCollectors; 29724: static const std::string kCompression; 29724: static const std::string kCompressionOptions; 29724: static const std::string kCreationTime; 29724: static const std::string kOldestKeyTime; 29724: static const std::string kNewestKeyTime; 29724: static const std::string kFileCreationTime; 29724: static const std::string kSlowCompressionEstimatedDataSize; 29724: static const std::string kFastCompressionEstimatedDataSize; 29724: static const std::string kSequenceNumberTimeMapping; 29724: static const std::string kTailStartOffset; 29724: static const std::string kUserDefinedTimestampsPersisted; 29724: static const std::string kKeyLargestSeqno; 29724: }; 29724: # 94 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: class TablePropertiesCollector { 29724: public: 29724: virtual ~TablePropertiesCollector() {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Add(const Slice& , const Slice& ) { 29724: return Status::InvalidArgument( 29724: "TablePropertiesCollector::Add() deprecated."); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status AddUserKey(const Slice& key, const Slice& value, 29724: EntryType , SequenceNumber , 29724: uint64_t ) { 29724: 29724: return Add(key, value); 29724: } 29724: 29724: 29724: virtual void BlockAdd(uint64_t , 29724: uint64_t , 29724: uint64_t ) { 29724: 29724: return; 29724: } 29724: # 135 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: virtual Status Finish(UserCollectedProperties* properties) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual UserCollectedProperties GetReadableProperties() const = 0; 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: virtual bool NeedCompact() const { return false; } 29724: 29724: 29724: virtual InternalTblPropColl* AsInternal() { return nullptr; } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class TablePropertiesCollectorFactory : public Customizable { 29724: public: 29724: struct Context { 29724: uint32_t column_family_id; 29724: 29724: 29724: int level_at_creation = kUnknownLevelAtCreation; 29724: int num_levels = kUnknownNumLevels; 29724: 29724: 29724: 29724: 29724: SequenceNumber last_level_inclusive_max_seqno_threshold; 29724: static const uint32_t kUnknownColumnFamily; 29724: static const int kUnknownLevelAtCreation = -1; 29724: static const int kUnknownNumLevels = -1; 29724: 29724: Context() {} 29724: 29724: Context(uint32_t _column_family_id, int _level_at_creation, int _num_levels, 29724: SequenceNumber _last_level_inclusive_max_seqno_threshold) 29724: : column_family_id(_column_family_id), 29724: level_at_creation(_level_at_creation), 29724: num_levels(_num_levels), 29724: last_level_inclusive_max_seqno_threshold( 29724: _last_level_inclusive_max_seqno_threshold) {} 29724: }; 29724: 29724: ~TablePropertiesCollectorFactory() override {} 29724: static const char* Type() { return "TablePropertiesCollectorFactory"; } 29724: static Status CreateFromString( 29724: const ConfigOptions& options, const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual TablePropertiesCollector* CreateTablePropertiesCollector( 29724: TablePropertiesCollectorFactory::Context context) = 0; 29724: 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: 29724: 29724: virtual std::string ToString() const { return Name(); } 29724: }; 29724: 29724: 29724: 29724: struct TableProperties { 29724: public: 29724: 29724: 29724: uint64_t orig_file_number = 0; 29724: 29724: uint64_t data_size = 0; 29724: 29724: uint64_t index_size = 0; 29724: 29724: uint64_t index_partitions = 0; 29724: 29724: uint64_t top_level_index_size = 0; 29724: 29724: 29724: uint64_t index_key_is_user_key = 0; 29724: 29724: uint64_t index_value_is_delta_encoded = 0; 29724: 29724: uint64_t filter_size = 0; 29724: 29724: uint64_t raw_key_size = 0; 29724: 29724: uint64_t raw_value_size = 0; 29724: 29724: uint64_t num_data_blocks = 0; 29724: 29724: uint64_t num_entries = 0; 29724: 29724: uint64_t num_filter_entries = 0; 29724: 29724: uint64_t num_deletions = 0; 29724: 29724: uint64_t num_merge_operands = 0; 29724: 29724: uint64_t num_range_deletions = 0; 29724: 29724: uint64_t format_version = 0; 29724: 29724: uint64_t fixed_key_len = 0; 29724: 29724: 29724: uint64_t column_family_id = rocksdb:: 29724: TablePropertiesCollectorFactory::Context::kUnknownColumnFamily; 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: uint64_t creation_time = 0; 29724: 29724: 29724: uint64_t oldest_key_time = 0; 29724: 29724: uint64_t newest_key_time = 0; 29724: 29724: uint64_t file_creation_time = 0; 29724: 29724: 29724: 29724: uint64_t slow_compression_estimated_data_size = 0; 29724: 29724: 29724: 29724: uint64_t fast_compression_estimated_data_size = 0; 29724: 29724: 29724: 29724: uint64_t external_sst_file_global_seqno_offset = 0; 29724: 29724: 29724: 29724: uint64_t tail_start_offset = 0; 29724: 29724: 29724: 29724: 29724: uint64_t user_defined_timestamps_persisted = 1; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t key_largest_seqno = 29724: # 304 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 3 4 29724: (18446744073709551615ULL) 29724: # 304 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: ; 29724: 29724: 29724: 29724: 29724: std::string db_id; 29724: 29724: 29724: 29724: 29724: 29724: std::string db_session_id; 29724: 29724: 29724: 29724: 29724: 29724: std::string db_host_id; 29724: 29724: 29724: 29724: std::string column_family_name; 29724: 29724: 29724: 29724: std::string filter_policy_name; 29724: 29724: 29724: std::string comparator_name; 29724: 29724: 29724: 29724: std::string merge_operator_name; 29724: 29724: 29724: 29724: std::string prefix_extractor_name; 29724: 29724: 29724: 29724: 29724: std::string property_collectors_names; 29724: 29724: 29724: std::string compression_name; 29724: 29724: 29724: std::string compression_options; 29724: 29724: 29724: std::string seqno_to_time_mapping; 29724: 29724: 29724: UserCollectedProperties user_collected_properties; 29724: UserCollectedProperties readable_properties; 29724: 29724: 29724: 29724: std::string ToString(const std::string& prop_delim = "; ", 29724: const std::string& kv_delim = "=") const; 29724: 29724: 29724: 29724: void Add(const TableProperties& tp); 29724: 29724: 29724: 29724: 29724: std::map GetAggregatablePropertiesAsMap() const; 29724: 29724: 29724: 29724: std::size_t ApproximateMemoryUsage() const; 29724: 29724: 29724: Status Serialize(const ConfigOptions& opts, std::string* output) const; 29724: static Status Parse(const ConfigOptions& opts, const std::string& serialized, 29724: TableProperties* table_properties); 29724: bool AreEqual(const ConfigOptions& opts, 29724: const TableProperties* other_table_properties, 29724: std::string* mismatch) const; 29724: }; 29724: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: uint64_t GetDeletedKeys(const UserCollectedProperties& props); 29724: uint64_t GetMergeOperands(const UserCollectedProperties& props, 29724: bool* property_present); 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: using TablePropertiesCollection = 29724: std::unordered_map>; 29724: 29724: class DB; 29724: class ColumnFamilyHandle; 29724: class Status; 29724: struct CompactionJobStats; 29724: 29724: struct FileCreationBriefInfo { 29724: FileCreationBriefInfo() = default; 29724: FileCreationBriefInfo(const std::string& _db_name, 29724: const std::string& _cf_name, 29724: const std::string& _file_path, int _job_id) 29724: : db_name(_db_name), 29724: cf_name(_cf_name), 29724: file_path(_file_path), 29724: job_id(_job_id) {} 29724: 29724: std::string db_name; 29724: 29724: std::string cf_name; 29724: 29724: std::string file_path; 29724: 29724: 29724: int job_id = 0; 29724: }; 29724: 29724: struct TableFileCreationBriefInfo : public FileCreationBriefInfo { 29724: 29724: TableFileCreationReason reason; 29724: }; 29724: 29724: struct TableFileCreationInfo : public TableFileCreationBriefInfo { 29724: TableFileCreationInfo() = default; 29724: explicit TableFileCreationInfo(TableProperties&& prop) 29724: : table_properties(prop) {} 29724: 29724: uint64_t file_size; 29724: 29724: TableProperties table_properties; 29724: 29724: Status status; 29724: 29724: std::string file_checksum; 29724: 29724: std::string file_checksum_func_name; 29724: }; 29724: 29724: struct BlobFileCreationBriefInfo : public FileCreationBriefInfo { 29724: BlobFileCreationBriefInfo(const std::string& _db_name, 29724: const std::string& _cf_name, 29724: const std::string& _file_path, int _job_id, 29724: BlobFileCreationReason _reason) 29724: : FileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id), 29724: reason(_reason) {} 29724: 29724: BlobFileCreationReason reason; 29724: }; 29724: 29724: struct BlobFileCreationInfo : public BlobFileCreationBriefInfo { 29724: BlobFileCreationInfo(const std::string& _db_name, const std::string& _cf_name, 29724: const std::string& _file_path, int _job_id, 29724: BlobFileCreationReason _reason, 29724: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 29724: Status _status, const std::string& _file_checksum, 29724: const std::string& _file_checksum_func_name) 29724: : BlobFileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id, 29724: _reason), 29724: total_blob_count(_total_blob_count), 29724: total_blob_bytes(_total_blob_bytes), 29724: status(_status), 29724: file_checksum(_file_checksum), 29724: file_checksum_func_name(_file_checksum_func_name) {} 29724: 29724: 29724: uint64_t total_blob_count; 29724: 29724: uint64_t total_blob_bytes; 29724: 29724: Status status; 29724: 29724: std::string file_checksum; 29724: 29724: std::string file_checksum_func_name; 29724: }; 29724: 29724: enum class CompactionReason : int { 29724: kUnknown = 0, 29724: 29724: kLevelL0FilesNum, 29724: 29724: kLevelMaxLevelSize, 29724: 29724: kUniversalSizeAmplification, 29724: 29724: kUniversalSizeRatio, 29724: 29724: kUniversalSortedRunNum, 29724: 29724: kFIFOMaxSize, 29724: 29724: kFIFOReduceNumFiles, 29724: 29724: kFIFOTtl, 29724: 29724: kManualCompaction, 29724: 29724: kFilesMarkedForCompaction, 29724: 29724: 29724: kBottommostFiles, 29724: 29724: kTtl, 29724: 29724: 29724: kFlush, 29724: 29724: 29724: 29724: 29724: kExternalSstIngestion, 29724: 29724: kPeriodicCompaction, 29724: 29724: kChangeTemperature, 29724: 29724: kForcedBlobGC, 29724: 29724: 29724: kRoundRobinTtl, 29724: 29724: 29724: kRefitLevel, 29724: 29724: kNumOfReasons, 29724: }; 29724: 29724: const char* GetCompactionReasonString(CompactionReason compaction_reason); 29724: 29724: 29724: enum class FlushReason : int { 29724: kOthers = 0x00, 29724: kGetLiveFiles = 0x01, 29724: kShutDown = 0x02, 29724: kExternalFileIngestion = 0x03, 29724: kManualCompaction = 0x04, 29724: kWriteBufferManager = 0x05, 29724: kWriteBufferFull = 0x06, 29724: kTest = 0x07, 29724: kDeleteFiles = 0x08, 29724: kAutoCompaction = 0x09, 29724: kManualFlush = 0x0a, 29724: kErrorRecovery = 0xb, 29724: 29724: 29724: kErrorRecoveryRetryFlush = 0xc, 29724: kWalFull = 0xd, 29724: 29724: kCatchUpAfterErrorRecovery = 0xe, 29724: }; 29724: 29724: const char* GetFlushReasonString(FlushReason flush_reason); 29724: 29724: 29724: 29724: 29724: 29724: enum class BackgroundErrorReason { 29724: kFlush, 29724: kCompaction, 29724: kWriteCallback, 29724: kMemTable, 29724: kManifestWrite, 29724: kFlushNoWAL, 29724: kManifestWriteNoWAL, 29724: }; 29724: 29724: struct WriteStallInfo { 29724: 29724: std::string cf_name; 29724: 29724: struct { 29724: WriteStallCondition cur; 29724: WriteStallCondition prev; 29724: } condition; 29724: }; 29724: 29724: 29724: struct FileDeletionInfo { 29724: FileDeletionInfo() = default; 29724: 29724: FileDeletionInfo(const std::string& _db_name, const std::string& _file_path, 29724: int _job_id, Status _status) 29724: : db_name(_db_name), 29724: file_path(_file_path), 29724: job_id(_job_id), 29724: status(_status) {} 29724: 29724: std::string db_name; 29724: 29724: std::string file_path; 29724: 29724: int job_id = 0; 29724: 29724: Status status; 29724: }; 29724: 29724: struct TableFileDeletionInfo : public FileDeletionInfo {}; 29724: 29724: struct BlobFileDeletionInfo : public FileDeletionInfo { 29724: BlobFileDeletionInfo(const std::string& _db_name, 29724: const std::string& _file_path, int _job_id, 29724: Status _status) 29724: : FileDeletionInfo(_db_name, _file_path, _job_id, _status) {} 29724: }; 29724: 29724: enum class FileOperationType { 29724: kRead, 29724: kWrite, 29724: kTruncate, 29724: kClose, 29724: kFlush, 29724: kSync, 29724: kFsync, 29724: kRangeSync, 29724: kAppend, 29724: kPositionedAppend, 29724: kOpen, 29724: kVerify 29724: }; 29724: 29724: struct FileOperationInfo { 29724: using Duration = std::chrono::nanoseconds; 29724: using SteadyTimePoint = 29724: std::chrono::time_point; 29724: using SystemTimePoint = 29724: std::chrono::time_point; 29724: using StartTimePoint = std::pair; 29724: using FinishTimePoint = SteadyTimePoint; 29724: 29724: FileOperationType type; 29724: const std::string& path; 29724: 29724: 29724: Temperature temperature; 29724: uint64_t offset; 29724: size_t length; 29724: const Duration duration; 29724: const SystemTimePoint& start_ts; 29724: Status status; 29724: 29724: FileOperationInfo(const FileOperationType _type, const std::string& _path, 29724: const StartTimePoint& _start_ts, 29724: const FinishTimePoint& _finish_ts, const Status& _status, 29724: const Temperature _temperature = Temperature::kUnknown) 29724: : type(_type), 29724: path(_path), 29724: temperature(_temperature), 29724: duration(std::chrono::duration_cast( 29724: _finish_ts - _start_ts.second)), 29724: start_ts(_start_ts.first), 29724: status(_status) {} 29724: static StartTimePoint StartNow() { 29724: return std::make_pair( 29724: std::chrono::system_clock::now(), std::chrono::steady_clock::now()); 29724: } 29724: static FinishTimePoint FinishNow() { 29724: return std::chrono::steady_clock::now(); 29724: } 29724: }; 29724: 29724: struct BlobFileInfo { 29724: BlobFileInfo(const std::string& _blob_file_path, 29724: const uint64_t _blob_file_number) 29724: : blob_file_path(_blob_file_path), blob_file_number(_blob_file_number) {} 29724: 29724: std::string blob_file_path; 29724: uint64_t blob_file_number; 29724: }; 29724: 29724: struct BlobFileAdditionInfo : public BlobFileInfo { 29724: BlobFileAdditionInfo(const std::string& _blob_file_path, 29724: const uint64_t _blob_file_number, 29724: const uint64_t _total_blob_count, 29724: const uint64_t _total_blob_bytes) 29724: : BlobFileInfo(_blob_file_path, _blob_file_number), 29724: total_blob_count(_total_blob_count), 29724: total_blob_bytes(_total_blob_bytes) {} 29724: uint64_t total_blob_count; 29724: uint64_t total_blob_bytes; 29724: }; 29724: 29724: struct BlobFileGarbageInfo : public BlobFileInfo { 29724: BlobFileGarbageInfo(const std::string& _blob_file_path, 29724: const uint64_t _blob_file_number, 29724: const uint64_t _garbage_blob_count, 29724: const uint64_t _garbage_blob_bytes) 29724: : BlobFileInfo(_blob_file_path, _blob_file_number), 29724: garbage_blob_count(_garbage_blob_count), 29724: garbage_blob_bytes(_garbage_blob_bytes) {} 29724: uint64_t garbage_blob_count; 29724: uint64_t garbage_blob_bytes; 29724: }; 29724: 29724: struct ManualFlushInfo { 29724: 29724: uint32_t cf_id; 29724: 29724: std::string cf_name; 29724: 29724: FlushReason flush_reason; 29724: }; 29724: 29724: struct FlushJobInfo { 29724: 29724: uint32_t cf_id; 29724: 29724: std::string cf_name; 29724: 29724: std::string file_path; 29724: 29724: uint64_t file_number; 29724: 29724: uint64_t oldest_blob_file_number; 29724: 29724: uint64_t thread_id; 29724: 29724: int job_id; 29724: 29724: 29724: 29724: 29724: bool triggered_writes_slowdown; 29724: 29724: 29724: 29724: 29724: bool triggered_writes_stop; 29724: 29724: SequenceNumber smallest_seqno; 29724: 29724: SequenceNumber largest_seqno; 29724: 29724: TableProperties table_properties; 29724: 29724: FlushReason flush_reason; 29724: 29724: 29724: CompressionType blob_compression_type; 29724: 29724: 29724: std::vector blob_file_addition_infos; 29724: }; 29724: 29724: struct CompactionFileInfo { 29724: 29724: int level; 29724: 29724: 29724: uint64_t file_number; 29724: 29724: 29724: uint64_t oldest_blob_file_number; 29724: }; 29724: 29724: struct SubcompactionJobInfo { 29724: ~SubcompactionJobInfo() { status.PermitUncheckedError(); } 29724: 29724: uint32_t cf_id; 29724: 29724: std::string cf_name; 29724: 29724: Status status; 29724: 29724: uint64_t thread_id; 29724: 29724: int job_id; 29724: 29724: 29724: 29724: 29724: 29724: int subcompaction_job_id; 29724: 29724: int base_input_level; 29724: 29724: int output_level; 29724: 29724: 29724: CompactionReason compaction_reason; 29724: 29724: 29724: CompressionType compression; 29724: 29724: 29724: CompactionJobStats stats; 29724: 29724: 29724: CompressionType blob_compression_type; 29724: }; 29724: 29724: struct CompactionJobInfo { 29724: ~CompactionJobInfo() { status.PermitUncheckedError(); } 29724: 29724: uint32_t cf_id; 29724: 29724: std::string cf_name; 29724: 29724: Status status; 29724: 29724: uint64_t thread_id; 29724: 29724: int job_id; 29724: 29724: 29724: int base_input_level; 29724: 29724: int output_level; 29724: # 453 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: std::vector input_files; 29724: 29724: 29724: std::vector input_file_infos; 29724: 29724: 29724: std::vector output_files; 29724: 29724: 29724: std::vector output_file_infos; 29724: 29724: 29724: 29724: TablePropertiesCollection table_properties; 29724: 29724: 29724: CompactionReason compaction_reason; 29724: 29724: 29724: CompressionType compression; 29724: 29724: 29724: CompactionJobStats stats; 29724: 29724: 29724: CompressionType blob_compression_type; 29724: 29724: 29724: 29724: std::vector blob_file_addition_infos; 29724: 29724: 29724: 29724: std::vector blob_file_garbage_infos; 29724: }; 29724: 29724: struct MemTableInfo { 29724: 29724: std::string cf_name; 29724: 29724: 29724: SequenceNumber first_seqno; 29724: 29724: 29724: 29724: 29724: SequenceNumber earliest_seqno; 29724: 29724: uint64_t num_entries; 29724: 29724: uint64_t num_deletes; 29724: 29724: 29724: 29724: std::string newest_udt; 29724: }; 29724: 29724: struct ExternalFileIngestionInfo { 29724: 29724: std::string cf_name; 29724: 29724: std::string external_file_path; 29724: 29724: std::string internal_file_path; 29724: 29724: SequenceNumber global_seqno; 29724: 29724: TableProperties table_properties; 29724: }; 29724: 29724: 29724: struct BackgroundErrorRecoveryInfo { 29724: 29724: Status old_bg_error; 29724: 29724: 29724: 29724: Status new_bg_error; 29724: }; 29724: 29724: struct IOErrorInfo { 29724: IOErrorInfo(const IOStatus& _io_status, FileOperationType _operation, 29724: const std::string& _file_path, size_t _length, uint64_t _offset) 29724: : io_status(_io_status), 29724: operation(_operation), 29724: file_path(_file_path), 29724: length(_length), 29724: offset(_offset) {} 29724: 29724: IOStatus io_status; 29724: FileOperationType operation; 29724: std::string file_path; 29724: size_t length; 29724: uint64_t offset; 29724: }; 29724: # 580 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: class EventListener : public Customizable { 29724: public: 29724: static const char* Type() { return "EventListener"; } 29724: static Status CreateFromString(const ConfigOptions& options, 29724: const std::string& id, 29724: std::shared_ptr* result); 29724: const char* Name() const override { 29724: 29724: 29724: return ""; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnFlushCompleted(DB* , 29724: const FlushJobInfo& ) {} 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnFlushBegin(DB* , 29724: const FlushJobInfo& ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnManualFlushScheduled( 29724: DB* , const std::vector& ) {} 29724: # 630 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnTableFileDeleted(const TableFileDeletionInfo& ) {} 29724: # 639 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnCompactionBegin(DB* , const CompactionJobInfo& ) {} 29724: # 654 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnCompactionCompleted(DB* , 29724: const CompactionJobInfo& ) {} 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnSubcompactionBegin(const SubcompactionJobInfo& ) {} 29724: # 692 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnSubcompactionCompleted(const SubcompactionJobInfo& ) {} 29724: # 709 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnTableFileCreated(const TableFileCreationInfo& ) {} 29724: # 718 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnTableFileCreationStarted( 29724: const TableFileCreationBriefInfo& ) {} 29724: # 731 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnMemTableSealed(const MemTableInfo& ) {} 29724: # 741 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnColumnFamilyHandleDeletionStarted( 29724: ColumnFamilyHandle* ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnExternalFileIngested( 29724: DB* , const ExternalFileIngestionInfo& ) {} 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnBackgroundError(BackgroundErrorReason , 29724: Status* ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnStallConditionsChanged(const WriteStallInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileReadFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileWriteFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileFlushFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileSyncFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileRangeSyncFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileTruncateFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileCloseFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual bool ShouldBeNotifiedOnFileIO() { return false; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnErrorRecoveryBegin(BackgroundErrorReason , 29724: Status , 29724: bool* ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnErrorRecoveryCompleted(Status old_bg_error) { 29724: old_bg_error.PermitUncheckedError(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnErrorRecoveryEnd(const BackgroundErrorRecoveryInfo& ) { 29724: } 29724: # 840 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnBlobFileCreationStarted( 29724: const BlobFileCreationBriefInfo& ) {} 29724: # 851 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnBlobFileCreated(const BlobFileCreationInfo& ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnBlobFileDeleted(const BlobFileDeletionInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnIOError(const IOErrorInfo& ) {} 29724: 29724: ~EventListener() override {} 29724: }; 29724: 29724: 29724: } 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_partitioner.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_partitioner.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: 29724: enum PartitionerResult : char { 29724: 29724: kNotRequired = 0x0, 29724: 29724: kRequired = 0x1 29724: 29724: }; 29724: 29724: struct PartitionerRequest { 29724: PartitionerRequest(const Slice& prev_user_key_, 29724: const Slice& current_user_key_, 29724: uint64_t current_output_file_size_) 29724: : prev_user_key(&prev_user_key_), 29724: current_user_key(¤t_user_key_), 29724: current_output_file_size(current_output_file_size_) {} 29724: const Slice* prev_user_key; 29724: const Slice* current_user_key; 29724: uint64_t current_output_file_size; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class SstPartitioner { 29724: public: 29724: virtual ~SstPartitioner() {} 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual PartitionerResult ShouldPartition( 29724: const PartitionerRequest& request) = 0; 29724: 29724: 29724: 29724: virtual bool CanDoTrivialMove(const Slice& smallest_user_key, 29724: const Slice& largest_user_key) = 0; 29724: 29724: 29724: struct Context { 29724: 29724: bool is_full_compaction; 29724: 29724: 29724: bool is_manual_compaction; 29724: 29724: int output_level; 29724: 29724: Slice smallest_user_key; 29724: 29724: Slice largest_user_key; 29724: }; 29724: }; 29724: 29724: 29724: 29724: 29724: class SstPartitionerFactory : public Customizable { 29724: public: 29724: ~SstPartitionerFactory() override {} 29724: static const char* Type() { return "SstPartitionerFactory"; } 29724: static Status CreateFromString( 29724: const ConfigOptions& options, const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: virtual std::unique_ptr CreatePartitioner( 29724: const SstPartitioner::Context& context) const = 0; 29724: 29724: 29724: const char* Name() const override = 0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class SstPartitionerFixedPrefix : public SstPartitioner { 29724: public: 29724: explicit SstPartitionerFixedPrefix(size_t len) : len_(len) {} 29724: 29724: ~SstPartitionerFixedPrefix() override {} 29724: 29724: const char* Name() const override { return "SstPartitionerFixedPrefix"; } 29724: 29724: PartitionerResult ShouldPartition(const PartitionerRequest& request) override; 29724: 29724: bool CanDoTrivialMove(const Slice& smallest_user_key, 29724: const Slice& largest_user_key) override; 29724: 29724: private: 29724: size_t len_; 29724: }; 29724: 29724: 29724: 29724: 29724: class SstPartitionerFixedPrefixFactory : public SstPartitionerFactory { 29724: public: 29724: explicit SstPartitionerFixedPrefixFactory(size_t len); 29724: 29724: ~SstPartitionerFixedPrefixFactory() override {} 29724: 29724: static const char* kClassName() { return "SstPartitionerFixedPrefixFactory"; } 29724: const char* Name() const override { return kClassName(); } 29724: 29724: std::unique_ptr CreatePartitioner( 29724: const SstPartitioner::Context& ) const override; 29724: 29724: private: 29724: size_t len_; 29724: }; 29724: 29724: std::shared_ptr NewSstPartitionerFixedPrefixFactory( 29724: size_t prefix_len); 29724: 29724: } 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/version.h" 1 29724: 29724: 29724: 29724: 29724: 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/version.h" 29724: namespace rocksdb { 29724: 29724: 29724: const std::unordered_map& GetRocksBuildProperties(); 29724: 29724: 29724: 29724: 29724: std::string GetRocksVersionAsString(bool with_patch = true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::string GetRocksBuildInfoAsString(const std::string& program, 29724: bool verbose = false); 29724: } 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 1 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/condition_variable" 1 3 29724: # 32 "/usr/include/c++/14/condition_variable" 3 29724: 29724: # 33 "/usr/include/c++/14/condition_variable" 3 29724: # 54 "/usr/include/c++/14/condition_variable" 3 29724: 29724: # 54 "/usr/include/c++/14/condition_variable" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 67 "/usr/include/c++/14/condition_variable" 3 29724: enum class cv_status { no_timeout, timeout }; 29724: 29724: 29724: class condition_variable 29724: { 29724: using steady_clock = chrono::steady_clock; 29724: using system_clock = chrono::system_clock; 29724: 29724: using __clock_t = steady_clock; 29724: 29724: 29724: 29724: 29724: __condvar _M_cond; 29724: 29724: public: 29724: typedef __gthread_cond_t* native_handle_type; 29724: 29724: condition_variable() noexcept; 29724: ~condition_variable() noexcept; 29724: 29724: condition_variable(const condition_variable&) = delete; 29724: condition_variable& operator=(const condition_variable&) = delete; 29724: 29724: void 29724: notify_one() noexcept; 29724: 29724: void 29724: notify_all() noexcept; 29724: 29724: void 29724: wait(unique_lock& __lock); 29724: 29724: template 29724: void 29724: wait(unique_lock& __lock, _Predicate __p) 29724: { 29724: while (!__p()) 29724: wait(__lock); 29724: } 29724: 29724: 29724: template 29724: cv_status 29724: wait_until(unique_lock& __lock, 29724: const chrono::time_point& __atime) 29724: { return __wait_until_impl(__lock, __atime); } 29724: 29724: 29724: template 29724: cv_status 29724: wait_until(unique_lock& __lock, 29724: const chrono::time_point& __atime) 29724: { return __wait_until_impl(__lock, __atime); } 29724: 29724: template 29724: cv_status 29724: wait_until(unique_lock& __lock, 29724: const chrono::time_point<_Clock, _Duration>& __atime) 29724: { 29724: 29724: 29724: 29724: using __s_dur = typename __clock_t::duration; 29724: const typename _Clock::time_point __c_entry = _Clock::now(); 29724: const __clock_t::time_point __s_entry = __clock_t::now(); 29724: const auto __delta = __atime - __c_entry; 29724: const auto __s_atime = __s_entry + 29724: chrono::__detail::ceil<__s_dur>(__delta); 29724: 29724: if (__wait_until_impl(__lock, __s_atime) == cv_status::no_timeout) 29724: return cv_status::no_timeout; 29724: 29724: 29724: 29724: if (_Clock::now() < __atime) 29724: return cv_status::no_timeout; 29724: return cv_status::timeout; 29724: } 29724: 29724: template 29724: bool 29724: wait_until(unique_lock& __lock, 29724: const chrono::time_point<_Clock, _Duration>& __atime, 29724: _Predicate __p) 29724: { 29724: while (!__p()) 29724: if (wait_until(__lock, __atime) == cv_status::timeout) 29724: return __p(); 29724: return true; 29724: } 29724: 29724: template 29724: cv_status 29724: wait_for(unique_lock& __lock, 29724: const chrono::duration<_Rep, _Period>& __rtime) 29724: { 29724: using __dur = typename steady_clock::duration; 29724: return wait_until(__lock, 29724: steady_clock::now() + 29724: chrono::__detail::ceil<__dur>(__rtime)); 29724: } 29724: 29724: template 29724: bool 29724: wait_for(unique_lock& __lock, 29724: const chrono::duration<_Rep, _Period>& __rtime, 29724: _Predicate __p) 29724: { 29724: using __dur = typename steady_clock::duration; 29724: return wait_until(__lock, 29724: steady_clock::now() + 29724: chrono::__detail::ceil<__dur>(__rtime), 29724: std::move(__p)); 29724: } 29724: 29724: native_handle_type 29724: native_handle() 29724: { return _M_cond.native_handle(); } 29724: 29724: private: 29724: 29724: template 29724: cv_status 29724: __wait_until_impl(unique_lock& __lock, 29724: const chrono::time_point& __atime) 29724: { 29724: auto __s = chrono::time_point_cast(__atime); 29724: auto __ns = chrono::duration_cast(__atime - __s); 29724: 29724: __gthread_time_t __ts = 29724: { 29724: static_cast(__s.time_since_epoch().count()), 29724: static_cast(__ns.count()) 29724: }; 29724: 29724: _M_cond.wait_until(*__lock.mutex(), 1, __ts); 29724: 29724: return (steady_clock::now() < __atime 29724: ? cv_status::no_timeout : cv_status::timeout); 29724: } 29724: 29724: 29724: template 29724: cv_status 29724: __wait_until_impl(unique_lock& __lock, 29724: const chrono::time_point& __atime) 29724: { 29724: auto __s = chrono::time_point_cast(__atime); 29724: auto __ns = chrono::duration_cast(__atime - __s); 29724: 29724: __gthread_time_t __ts = 29724: { 29724: static_cast(__s.time_since_epoch().count()), 29724: static_cast(__ns.count()) 29724: }; 29724: 29724: _M_cond.wait_until(*__lock.mutex(), __ts); 29724: 29724: return (system_clock::now() < __atime 29724: ? cv_status::no_timeout : cv_status::timeout); 29724: } 29724: }; 29724: 29724: void 29724: notify_all_at_thread_exit(condition_variable&, unique_lock); 29724: 29724: struct __at_thread_exit_elt 29724: { 29724: __at_thread_exit_elt* _M_next; 29724: void (*_M_cb)(void*); 29724: }; 29724: 29724: inline namespace _V2 { 29724: 29724: 29724: 29724: class condition_variable_any 29724: { 29724: 29724: using __clock_t = chrono::steady_clock; 29724: 29724: 29724: 29724: condition_variable _M_cond; 29724: shared_ptr _M_mutex; 29724: 29724: 29724: template 29724: struct _Unlock 29724: { 29724: explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: ~_Unlock() noexcept(false) 29724: { 29724: if (uncaught_exception()) 29724: { 29724: try 29724: { _M_lock.lock(); } 29724: catch(const __cxxabiv1::__forced_unwind&) 29724: { throw; } 29724: catch(...) 29724: { } 29724: } 29724: else 29724: _M_lock.lock(); 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: _Unlock(const _Unlock&) = delete; 29724: _Unlock& operator=(const _Unlock&) = delete; 29724: 29724: _Lock& _M_lock; 29724: }; 29724: 29724: public: 29724: condition_variable_any() : _M_mutex(std::make_shared()) { } 29724: ~condition_variable_any() = default; 29724: 29724: condition_variable_any(const condition_variable_any&) = delete; 29724: condition_variable_any& operator=(const condition_variable_any&) = delete; 29724: 29724: void 29724: notify_one() noexcept 29724: { 29724: lock_guard __lock(*_M_mutex); 29724: _M_cond.notify_one(); 29724: } 29724: 29724: void 29724: notify_all() noexcept 29724: { 29724: lock_guard __lock(*_M_mutex); 29724: _M_cond.notify_all(); 29724: } 29724: 29724: template 29724: void 29724: wait(_Lock& __lock) 29724: { 29724: shared_ptr __mutex = _M_mutex; 29724: unique_lock __my_lock(*__mutex); 29724: _Unlock<_Lock> __unlock(__lock); 29724: 29724: 29724: unique_lock __my_lock2(std::move(__my_lock)); 29724: _M_cond.wait(__my_lock2); 29724: } 29724: 29724: 29724: template 29724: void 29724: wait(_Lock& __lock, _Predicate __p) 29724: { 29724: while (!__p()) 29724: wait(__lock); 29724: } 29724: 29724: template 29724: cv_status 29724: wait_until(_Lock& __lock, 29724: const chrono::time_point<_Clock, _Duration>& __atime) 29724: { 29724: shared_ptr __mutex = _M_mutex; 29724: unique_lock __my_lock(*__mutex); 29724: _Unlock<_Lock> __unlock(__lock); 29724: 29724: 29724: unique_lock __my_lock2(std::move(__my_lock)); 29724: return _M_cond.wait_until(__my_lock2, __atime); 29724: } 29724: 29724: template 29724: bool 29724: wait_until(_Lock& __lock, 29724: const chrono::time_point<_Clock, _Duration>& __atime, 29724: _Predicate __p) 29724: { 29724: while (!__p()) 29724: if (wait_until(__lock, __atime) == cv_status::timeout) 29724: return __p(); 29724: return true; 29724: } 29724: 29724: template 29724: cv_status 29724: wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) 29724: { return wait_until(__lock, __clock_t::now() + __rtime); } 29724: 29724: template 29724: bool 29724: wait_for(_Lock& __lock, 29724: const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) 29724: { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } 29724: # 443 "/usr/include/c++/14/condition_variable" 3 29724: }; 29724: 29724: } 29724: 29724: 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 2 29724: 29724: # 1 "/usr/include/c++/14/list" 1 3 29724: # 58 "/usr/include/c++/14/list" 3 29724: 29724: # 59 "/usr/include/c++/14/list" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_list.h" 1 3 29724: # 68 "/usr/include/c++/14/bits/stl_list.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct _List_node_base 29724: { 29724: _List_node_base* _M_next; 29724: _List_node_base* _M_prev; 29724: 29724: static void 29724: swap(_List_node_base& __x, _List_node_base& __y) noexcept; 29724: 29724: void 29724: _M_transfer(_List_node_base* const __first, 29724: _List_node_base* const __last) noexcept; 29724: 29724: void 29724: _M_reverse() noexcept; 29724: 29724: void 29724: _M_hook(_List_node_base* const __position) noexcept; 29724: 29724: void 29724: _M_unhook() noexcept; 29724: }; 29724: 29724: 29724: struct _List_node_header : public _List_node_base 29724: { 29724: 29724: std::size_t _M_size; 29724: 29724: 29724: _List_node_header() noexcept 29724: { _M_init(); } 29724: 29724: 29724: _List_node_header(_List_node_header&& __x) noexcept 29724: : _List_node_base{ __x._M_next, __x._M_prev } 29724: 29724: , _M_size(__x._M_size) 29724: 29724: { 29724: if (__x._M_base()->_M_next == __x._M_base()) 29724: this->_M_next = this->_M_prev = this; 29724: else 29724: { 29724: this->_M_next->_M_prev = this->_M_prev->_M_next = this->_M_base(); 29724: __x._M_init(); 29724: } 29724: } 29724: 29724: void 29724: _M_move_nodes(_List_node_header&& __x) 29724: { 29724: _List_node_base* const __xnode = __x._M_base(); 29724: if (__xnode->_M_next == __xnode) 29724: _M_init(); 29724: else 29724: { 29724: _List_node_base* const __node = this->_M_base(); 29724: __node->_M_next = __xnode->_M_next; 29724: __node->_M_prev = __xnode->_M_prev; 29724: __node->_M_next->_M_prev = __node->_M_prev->_M_next = __node; 29724: 29724: _M_size = __x._M_size; 29724: 29724: __x._M_init(); 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_init() noexcept 29724: { 29724: this->_M_next = this->_M_prev = this; 29724: 29724: this->_M_size = 0; 29724: 29724: } 29724: 29724: private: 29724: _List_node_base* _M_base() { return this; } 29724: }; 29724: 29724: 29724: struct _Scratch_list : _List_node_base 29724: { 29724: _Scratch_list() { _M_next = _M_prev = this; } 29724: 29724: bool empty() const { return _M_next == this; } 29724: 29724: void swap(_List_node_base& __l) { _List_node_base::swap(*this, __l); } 29724: 29724: template 29724: struct _Ptr_cmp 29724: { 29724: _Cmp _M_cmp; 29724: 29724: bool 29724: operator()(__detail::_List_node_base* __lhs, 29724: __detail::_List_node_base* __rhs) 29724: { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); } 29724: }; 29724: 29724: template 29724: struct _Ptr_cmp<_Iter, void> 29724: { 29724: bool 29724: operator()(__detail::_List_node_base* __lhs, 29724: __detail::_List_node_base* __rhs) const 29724: { return *_Iter(__lhs) < *_Iter(__rhs); } 29724: }; 29724: 29724: 29724: template 29724: void 29724: merge(_List_node_base& __x, _Cmp __comp) 29724: { 29724: _List_node_base* __first1 = _M_next; 29724: _List_node_base* const __last1 = this; 29724: _List_node_base* __first2 = __x._M_next; 29724: _List_node_base* const __last2 = std::__addressof(__x); 29724: 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first2, __first1)) 29724: { 29724: _List_node_base* __next = __first2->_M_next; 29724: __first1->_M_transfer(__first2, __next); 29724: __first2 = __next; 29724: } 29724: else 29724: __first1 = __first1->_M_next; 29724: } 29724: if (__first2 != __last2) 29724: this->_M_transfer(__first2, __last2); 29724: } 29724: 29724: 29724: void _M_take_one(_List_node_base* __i) 29724: { this->_M_transfer(__i, __i->_M_next); } 29724: 29724: 29724: void _M_put_all(_List_node_base* __i) 29724: { 29724: if (!empty()) 29724: __i->_M_transfer(_M_next, this); 29724: } 29724: }; 29724: 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: struct _List_node : public __detail::_List_node_base 29724: { 29724: 29724: __gnu_cxx::__aligned_membuf<_Tp> _M_storage; 29724: _Tp* _M_valptr() { return _M_storage._M_ptr(); } 29724: _Tp const* _M_valptr() const { return _M_storage._M_ptr(); } 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _List_iterator 29724: { 29724: typedef _List_iterator<_Tp> _Self; 29724: typedef _List_node<_Tp> _Node; 29724: 29724: typedef ptrdiff_t difference_type; 29724: typedef std::bidirectional_iterator_tag iterator_category; 29724: typedef _Tp value_type; 29724: typedef _Tp* pointer; 29724: typedef _Tp& reference; 29724: 29724: _List_iterator() noexcept 29724: : _M_node() { } 29724: 29724: explicit 29724: _List_iterator(__detail::_List_node_base* __x) noexcept 29724: : _M_node(__x) { } 29724: 29724: _Self 29724: _M_const_cast() const noexcept 29724: { return *this; } 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator*() const noexcept 29724: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 29724: 29724: [[__nodiscard__]] 29724: pointer 29724: operator->() const noexcept 29724: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 29724: 29724: _Self& 29724: operator++() noexcept 29724: { 29724: _M_node = _M_node->_M_next; 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator++(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _M_node->_M_next; 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator--() noexcept 29724: { 29724: _M_node = _M_node->_M_prev; 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator--(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _M_node->_M_prev; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node == __y._M_node; } 29724: 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node != __y._M_node; } 29724: 29724: 29724: 29724: __detail::_List_node_base* _M_node; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _List_const_iterator 29724: { 29724: typedef _List_const_iterator<_Tp> _Self; 29724: typedef const _List_node<_Tp> _Node; 29724: typedef _List_iterator<_Tp> iterator; 29724: 29724: typedef ptrdiff_t difference_type; 29724: typedef std::bidirectional_iterator_tag iterator_category; 29724: typedef _Tp value_type; 29724: typedef const _Tp* pointer; 29724: typedef const _Tp& reference; 29724: 29724: _List_const_iterator() noexcept 29724: : _M_node() { } 29724: 29724: explicit 29724: _List_const_iterator(const __detail::_List_node_base* __x) 29724: noexcept 29724: : _M_node(__x) { } 29724: 29724: _List_const_iterator(const iterator& __x) noexcept 29724: : _M_node(__x._M_node) { } 29724: 29724: iterator 29724: _M_const_cast() const noexcept 29724: { return iterator(const_cast<__detail::_List_node_base*>(_M_node)); } 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator*() const noexcept 29724: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 29724: 29724: [[__nodiscard__]] 29724: pointer 29724: operator->() const noexcept 29724: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 29724: 29724: _Self& 29724: operator++() noexcept 29724: { 29724: _M_node = _M_node->_M_next; 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator++(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _M_node->_M_next; 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator--() noexcept 29724: { 29724: _M_node = _M_node->_M_prev; 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator--(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _M_node->_M_prev; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node == __y._M_node; } 29724: 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node != __y._M_node; } 29724: 29724: 29724: 29724: const __detail::_List_node_base* _M_node; 29724: }; 29724: 29724: namespace __cxx11 { 29724: 29724: template 29724: class _List_base 29724: { 29724: protected: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Tp>::other _Tp_alloc_type; 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tp_alloc_traits; 29724: typedef typename _Tp_alloc_traits::template 29724: rebind<_List_node<_Tp> >::other _Node_alloc_type; 29724: typedef __gnu_cxx::__alloc_traits<_Node_alloc_type> _Node_alloc_traits; 29724: 29724: 29724: static size_t 29724: _S_distance(const __detail::_List_node_base* __first, 29724: const __detail::_List_node_base* __last) 29724: { 29724: size_t __n = 0; 29724: while (__first != __last) 29724: { 29724: __first = __first->_M_next; 29724: ++__n; 29724: } 29724: return __n; 29724: } 29724: 29724: 29724: struct _List_impl 29724: : public _Node_alloc_type 29724: { 29724: __detail::_List_node_header _M_node; 29724: 29724: _List_impl() noexcept(is_nothrow_default_constructible<_Node_alloc_type>::value) 29724: 29724: : _Node_alloc_type() 29724: { } 29724: 29724: _List_impl(const _Node_alloc_type& __a) noexcept 29724: : _Node_alloc_type(__a) 29724: { } 29724: 29724: 29724: _List_impl(_List_impl&&) = default; 29724: 29724: _List_impl(_Node_alloc_type&& __a, _List_impl&& __x) 29724: : _Node_alloc_type(std::move(__a)), _M_node(std::move(__x._M_node)) 29724: { } 29724: 29724: _List_impl(_Node_alloc_type&& __a) noexcept 29724: : _Node_alloc_type(std::move(__a)) 29724: { } 29724: 29724: }; 29724: 29724: _List_impl _M_impl; 29724: 29724: 29724: size_t _M_get_size() const { return _M_impl._M_node._M_size; } 29724: 29724: void _M_set_size(size_t __n) { _M_impl._M_node._M_size = __n; } 29724: 29724: void _M_inc_size(size_t __n) { _M_impl._M_node._M_size += __n; } 29724: 29724: void _M_dec_size(size_t __n) { _M_impl._M_node._M_size -= __n; } 29724: 29724: 29724: size_t 29724: _M_distance(const __detail::_List_node_base* __first, 29724: const __detail::_List_node_base* __last) const 29724: { return _S_distance(__first, __last); } 29724: 29724: 29724: size_t _M_node_count() const { return _M_get_size(); } 29724: # 516 "/usr/include/c++/14/bits/stl_list.h" 3 29724: typename _Node_alloc_traits::pointer 29724: _M_get_node() 29724: { return _Node_alloc_traits::allocate(_M_impl, 1); } 29724: 29724: void 29724: _M_put_node(typename _Node_alloc_traits::pointer __p) noexcept 29724: { _Node_alloc_traits::deallocate(_M_impl, __p, 1); } 29724: 29724: public: 29724: typedef _Alloc allocator_type; 29724: 29724: _Node_alloc_type& 29724: _M_get_Node_allocator() noexcept 29724: { return _M_impl; } 29724: 29724: const _Node_alloc_type& 29724: _M_get_Node_allocator() const noexcept 29724: { return _M_impl; } 29724: 29724: 29724: _List_base() = default; 29724: 29724: 29724: 29724: 29724: _List_base(const _Node_alloc_type& __a) noexcept 29724: : _M_impl(__a) 29724: { } 29724: 29724: 29724: _List_base(_List_base&&) = default; 29724: 29724: 29724: _List_base(_List_base&& __x, _Node_alloc_type&& __a) 29724: : _M_impl(std::move(__a)) 29724: { 29724: if (__x._M_get_Node_allocator() == _M_get_Node_allocator()) 29724: _M_move_nodes(std::move(__x)); 29724: 29724: } 29724: 29724: 29724: 29724: _List_base(_Node_alloc_type&& __a, _List_base&& __x) 29724: : _M_impl(std::move(__a), std::move(__x._M_impl)) 29724: { } 29724: 29724: 29724: _List_base(_Node_alloc_type&& __a) 29724: : _M_impl(std::move(__a)) 29724: { } 29724: 29724: void 29724: _M_move_nodes(_List_base&& __x) 29724: { _M_impl._M_node._M_move_nodes(std::move(__x._M_impl._M_node)); } 29724: 29724: 29724: 29724: ~_List_base() noexcept 29724: { _M_clear(); } 29724: 29724: void 29724: _M_clear() noexcept; 29724: 29724: void 29724: _M_init() noexcept 29724: { this->_M_impl._M_node._M_init(); } 29724: }; 29724: # 631 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template > 29724: class list : protected _List_base<_Tp, _Alloc> 29724: { 29724: # 644 "/usr/include/c++/14/bits/stl_list.h" 3 29724: static_assert(is_same::type, _Tp>::value, 29724: "std::list must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _List_base<_Tp, _Alloc> _Base; 29724: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29724: typedef typename _Base::_Tp_alloc_traits _Tp_alloc_traits; 29724: typedef typename _Base::_Node_alloc_type _Node_alloc_type; 29724: typedef typename _Base::_Node_alloc_traits _Node_alloc_traits; 29724: 29724: public: 29724: typedef _Tp value_type; 29724: typedef typename _Tp_alloc_traits::pointer pointer; 29724: typedef typename _Tp_alloc_traits::const_pointer const_pointer; 29724: typedef typename _Tp_alloc_traits::reference reference; 29724: typedef typename _Tp_alloc_traits::const_reference const_reference; 29724: typedef _List_iterator<_Tp> iterator; 29724: typedef _List_const_iterator<_Tp> const_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Alloc allocator_type; 29724: 29724: protected: 29724: 29724: 29724: typedef _List_node<_Tp> _Node; 29724: 29724: using _Base::_M_impl; 29724: using _Base::_M_put_node; 29724: using _Base::_M_get_node; 29724: using _Base::_M_get_Node_allocator; 29724: # 706 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: _Node* 29724: _M_create_node(_Args&&... __args) 29724: { 29724: auto __p = this->_M_get_node(); 29724: auto& __alloc = _M_get_Node_allocator(); 29724: __allocated_ptr<_Node_alloc_type> __guard{__alloc, __p}; 29724: _Node_alloc_traits::construct(__alloc, __p->_M_valptr(), 29724: std::forward<_Args>(__args)...); 29724: __guard = nullptr; 29724: return __p; 29724: } 29724: 29724: 29724: 29724: static size_t 29724: _S_distance(const_iterator __first, const_iterator __last) 29724: { return std::distance(__first, __last); } 29724: 29724: 29724: size_t 29724: _M_node_count() const 29724: { return this->_M_get_size(); } 29724: # 741 "/usr/include/c++/14/bits/stl_list.h" 3 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: list() = default; 29724: # 758 "/usr/include/c++/14/bits/stl_list.h" 3 29724: explicit 29724: list(const allocator_type& __a) noexcept 29724: : _Base(_Node_alloc_type(__a)) { } 29724: # 771 "/usr/include/c++/14/bits/stl_list.h" 3 29724: explicit 29724: list(size_type __n, const allocator_type& __a = allocator_type()) 29724: : _Base(_Node_alloc_type(__a)) 29724: { _M_default_initialize(__n); } 29724: # 784 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list(size_type __n, const value_type& __value, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(_Node_alloc_type(__a)) 29724: { _M_fill_initialize(__n, __value); } 29724: # 811 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list(const list& __x) 29724: : _Base(_Node_alloc_traits:: 29724: _S_select_on_copy(__x._M_get_Node_allocator())) 29724: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 29724: # 824 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list(list&&) = default; 29724: # 834 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list(initializer_list __l, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(_Node_alloc_type(__a)) 29724: { _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); } 29724: 29724: list(const list& __x, const __type_identity_t& __a) 29724: : _Base(_Node_alloc_type(__a)) 29724: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 29724: 29724: private: 29724: list(list&& __x, const allocator_type& __a, true_type) noexcept 29724: : _Base(_Node_alloc_type(__a), std::move(__x)) 29724: { } 29724: 29724: list(list&& __x, const allocator_type& __a, false_type) 29724: : _Base(_Node_alloc_type(__a)) 29724: { 29724: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 29724: this->_M_move_nodes(std::move(__x)); 29724: else 29724: insert(begin(), std::__make_move_if_noexcept_iterator(__x.begin()), 29724: std::__make_move_if_noexcept_iterator(__x.end())); 29724: } 29724: 29724: public: 29724: list(list&& __x, const __type_identity_t& __a) 29724: noexcept(_Node_alloc_traits::_S_always_equal()) 29724: : list(std::move(__x), __a, 29724: typename _Node_alloc_traits::is_always_equal{}) 29724: { } 29724: # 877 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template> 29724: list(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(_Node_alloc_type(__a)) 29724: { _M_initialize_dispatch(__first, __last, __false_type()); } 29724: # 903 "/usr/include/c++/14/bits/stl_list.h" 3 29724: ~list() = default; 29724: # 914 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list& 29724: operator=(const list& __x); 29724: # 928 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list& 29724: operator=(list&& __x) 29724: noexcept(_Node_alloc_traits::_S_nothrow_move()) 29724: { 29724: constexpr bool __move_storage = 29724: _Node_alloc_traits::_S_propagate_on_move_assign() 29724: || _Node_alloc_traits::_S_always_equal(); 29724: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 29724: return *this; 29724: } 29724: # 946 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list& 29724: operator=(initializer_list __l) 29724: { 29724: this->assign(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: # 964 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: assign(size_type __n, const value_type& __val) 29724: { _M_fill_assign(__n, __val); } 29724: # 981 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template> 29724: void 29724: assign(_InputIterator __first, _InputIterator __last) 29724: { _M_assign_dispatch(__first, __last, __false_type()); } 29724: # 1005 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: assign(initializer_list __l) 29724: { this->_M_assign_dispatch(__l.begin(), __l.end(), __false_type()); } 29724: 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_Base::_M_get_Node_allocator()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: begin() noexcept 29724: { return iterator(this->_M_impl._M_node._M_next); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(this->_M_impl._M_node._M_next); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: end() noexcept 29724: { return iterator(&this->_M_impl._M_node); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: end() const noexcept 29724: { return const_iterator(&this->_M_impl._M_node); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(this->_M_impl._M_node._M_next); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cend() const noexcept 29724: { return const_iterator(&this->_M_impl._M_node); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: size() const noexcept 29724: { return _M_node_count(); } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: max_size() const noexcept 29724: { return _Node_alloc_traits::max_size(_M_get_Node_allocator()); } 29724: # 1168 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: resize(size_type __new_size); 29724: # 1181 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: resize(size_type __new_size, const value_type& __x); 29724: # 1203 "/usr/include/c++/14/bits/stl_list.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: front() noexcept 29724: { return *begin(); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: front() const noexcept 29724: { return *begin(); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: back() noexcept 29724: { 29724: iterator __tmp = end(); 29724: --__tmp; 29724: return *__tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: back() const noexcept 29724: { 29724: const_iterator __tmp = end(); 29724: --__tmp; 29724: return *__tmp; 29724: } 29724: # 1254 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: push_front(const value_type& __x) 29724: { this->_M_insert(begin(), __x); } 29724: 29724: 29724: void 29724: push_front(value_type&& __x) 29724: { this->_M_insert(begin(), std::move(__x)); } 29724: 29724: template 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_front(_Args&&... __args) 29724: { 29724: this->_M_insert(begin(), std::forward<_Args>(__args)...); 29724: 29724: return front(); 29724: 29724: } 29724: # 1290 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: pop_front() noexcept 29724: { this->_M_erase(begin()); } 29724: # 1304 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: push_back(const value_type& __x) 29724: { this->_M_insert(end(), __x); } 29724: 29724: 29724: void 29724: push_back(value_type&& __x) 29724: { this->_M_insert(end(), std::move(__x)); } 29724: 29724: template 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_back(_Args&&... __args) 29724: { 29724: this->_M_insert(end(), std::forward<_Args>(__args)...); 29724: 29724: return back(); 29724: 29724: } 29724: # 1339 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: pop_back() noexcept 29724: { this->_M_erase(iterator(this->_M_impl._M_node._M_prev)); } 29724: # 1356 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: iterator 29724: emplace(const_iterator __position, _Args&&... __args); 29724: # 1371 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: insert(const_iterator __position, const value_type& __x); 29724: # 1401 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return emplace(__position, std::move(__x)); } 29724: # 1420 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: insert(const_iterator __p, initializer_list __l) 29724: { return this->insert(__p, __l.begin(), __l.end()); } 29724: # 1440 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: insert(const_iterator __position, size_type __n, const value_type& __x); 29724: # 1479 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template> 29724: iterator 29724: insert(const_iterator __position, _InputIterator __first, 29724: _InputIterator __last); 29724: # 1523 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: 29724: erase(const_iterator __position) noexcept; 29724: # 1548 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: 29724: erase(const_iterator __first, const_iterator __last) noexcept 29724: 29724: 29724: 29724: { 29724: while (__first != __last) 29724: __first = erase(__first); 29724: return __last._M_const_cast(); 29724: } 29724: # 1571 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: swap(list& __x) noexcept 29724: { 29724: __detail::_List_node_base::swap(this->_M_impl._M_node, 29724: __x._M_impl._M_node); 29724: 29724: size_t __xsize = __x._M_get_size(); 29724: __x._M_set_size(this->_M_get_size()); 29724: this->_M_set_size(__xsize); 29724: 29724: _Node_alloc_traits::_S_on_swap(this->_M_get_Node_allocator(), 29724: __x._M_get_Node_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { 29724: _Base::_M_clear(); 29724: _Base::_M_init(); 29724: } 29724: # 1610 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: 29724: splice(const_iterator __position, list&& __x) noexcept 29724: 29724: 29724: 29724: { 29724: if (!__x.empty()) 29724: { 29724: _M_check_equal_allocators(__x); 29724: 29724: this->_M_transfer(__position._M_const_cast(), 29724: __x.begin(), __x.end()); 29724: 29724: this->_M_inc_size(__x._M_get_size()); 29724: __x._M_set_size(0); 29724: } 29724: } 29724: 29724: 29724: void 29724: splice(const_iterator __position, list& __x) noexcept 29724: { splice(__position, std::move(__x)); } 29724: # 1646 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: splice(const_iterator __position, list&& __x, const_iterator __i) noexcept 29724: # 1661 "/usr/include/c++/14/bits/stl_list.h" 3 29724: { 29724: iterator __j = __i._M_const_cast(); 29724: ++__j; 29724: if (__position == __i || __position == __j) 29724: return; 29724: 29724: if (this != std::__addressof(__x)) 29724: _M_check_equal_allocators(__x); 29724: 29724: this->_M_transfer(__position._M_const_cast(), 29724: __i._M_const_cast(), __j); 29724: 29724: this->_M_inc_size(1); 29724: __x._M_dec_size(1); 29724: } 29724: # 1688 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: splice(const_iterator __position, list& __x, const_iterator __i) noexcept 29724: { splice(__position, std::move(__x), __i); } 29724: # 1707 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: splice(const_iterator __position, list&& __x, const_iterator __first, 29724: const_iterator __last) noexcept 29724: # 1727 "/usr/include/c++/14/bits/stl_list.h" 3 29724: { 29724: if (__first != __last) 29724: { 29724: if (this != std::__addressof(__x)) 29724: _M_check_equal_allocators(__x); 29724: 29724: size_t __n = _S_distance(__first, __last); 29724: this->_M_inc_size(__n); 29724: __x._M_dec_size(__n); 29724: 29724: this->_M_transfer(__position._M_const_cast(), 29724: __first._M_const_cast(), 29724: __last._M_const_cast()); 29724: } 29724: } 29724: # 1757 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: splice(const_iterator __position, list& __x, const_iterator __first, 29724: const_iterator __last) noexcept 29724: { splice(__position, std::move(__x), __first, __last); } 29724: 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: 29724: typedef void __remove_return_type; 29724: 29724: 29724: public: 29724: # 1785 "/usr/include/c++/14/bits/stl_list.h" 3 29724: 29724: __remove_return_type 29724: remove(const _Tp& __value); 29724: # 1800 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: __remove_return_type 29724: remove_if(_Predicate); 29724: # 1814 "/usr/include/c++/14/bits/stl_list.h" 3 29724: 29724: __remove_return_type 29724: unique(); 29724: # 1830 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: __remove_return_type 29724: unique(_BinaryPredicate); 29724: # 1846 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: merge(list&& __x); 29724: 29724: void 29724: merge(list& __x) 29724: { merge(std::move(__x)); } 29724: # 1871 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: void 29724: merge(list&& __x, _StrictWeakOrdering __comp); 29724: 29724: template 29724: void 29724: merge(list& __x, _StrictWeakOrdering __comp) 29724: { merge(std::move(__x), __comp); } 29724: # 1890 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: reverse() noexcept 29724: { this->_M_impl._M_node._M_reverse(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: sort(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: sort(_StrictWeakOrdering); 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) 29724: { _M_fill_initialize(static_cast(__n), __x); } 29724: 29724: 29724: template 29724: void 29724: _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, 29724: __false_type) 29724: { 29724: for (; __first != __last; ++__first) 29724: 29724: emplace_back(*__first); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: void 29724: _M_fill_initialize(size_type __n, const value_type& __x) 29724: { 29724: for (; __n; --__n) 29724: push_back(__x); 29724: } 29724: 29724: 29724: 29724: void 29724: _M_default_initialize(size_type __n) 29724: { 29724: for (; __n; --__n) 29724: emplace_back(); 29724: } 29724: 29724: 29724: void 29724: _M_default_append(size_type __n); 29724: # 1968 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: void 29724: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 29724: { _M_fill_assign(__n, __val); } 29724: 29724: 29724: template 29724: void 29724: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 29724: __false_type); 29724: 29724: 29724: 29724: void 29724: _M_fill_assign(size_type __n, const value_type& __val); 29724: 29724: 29724: 29724: void 29724: _M_transfer(iterator __position, iterator __first, iterator __last) 29724: { __position._M_node->_M_transfer(__first._M_node, __last._M_node); } 29724: # 2000 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: void 29724: _M_insert(iterator __position, _Args&&... __args) 29724: { 29724: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 29724: __tmp->_M_hook(__position._M_node); 29724: this->_M_inc_size(1); 29724: } 29724: 29724: 29724: 29724: void 29724: _M_erase(iterator __position) noexcept 29724: { 29724: this->_M_dec_size(1); 29724: __position._M_node->_M_unhook(); 29724: _Node* __n = static_cast<_Node*>(__position._M_node); 29724: 29724: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __n->_M_valptr()); 29724: 29724: 29724: 29724: 29724: _M_put_node(__n); 29724: } 29724: 29724: 29724: void 29724: _M_check_equal_allocators(const list& __x) noexcept 29724: { 29724: if (_M_get_Node_allocator() != __x._M_get_Node_allocator()) 29724: __builtin_abort(); 29724: } 29724: 29724: 29724: const_iterator 29724: _M_resize_pos(size_type& __new_size) const; 29724: 29724: 29724: void 29724: _M_move_assign(list&& __x, true_type) noexcept 29724: { 29724: this->clear(); 29724: this->_M_move_nodes(std::move(__x)); 29724: std::__alloc_on_move(this->_M_get_Node_allocator(), 29724: __x._M_get_Node_allocator()); 29724: } 29724: 29724: void 29724: _M_move_assign(list&& __x, false_type) 29724: { 29724: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 29724: _M_move_assign(std::move(__x), true_type{}); 29724: else 29724: 29724: 29724: _M_assign_dispatch(std::make_move_iterator(__x.begin()), 29724: std::make_move_iterator(__x.end()), 29724: __false_type{}); 29724: } 29724: 29724: 29724: 29724: 29724: struct _Finalize_merge 29724: { 29724: explicit 29724: _Finalize_merge(list& __dest, list& __src, const iterator& __src_next) 29724: : _M_dest(__dest), _M_src(__src), _M_next(__src_next) 29724: { } 29724: 29724: ~_Finalize_merge() 29724: { 29724: 29724: 29724: 29724: const size_t __num_unmerged = std::distance(_M_next, _M_src.end()); 29724: const size_t __orig_size = _M_src._M_get_size(); 29724: _M_dest._M_inc_size(__orig_size - __num_unmerged); 29724: _M_src._M_set_size(__num_unmerged); 29724: } 29724: 29724: list& _M_dest; 29724: list& _M_src; 29724: const iterator& _M_next; 29724: 29724: 29724: _Finalize_merge(const _Finalize_merge&) = delete; 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: template::value_type, 29724: typename _Allocator = allocator<_ValT>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireAllocator<_Allocator>> 29724: list(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29724: -> list<_ValT, _Allocator>; 29724: 29724: 29724: } 29724: # 2119 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { 29724: 29724: if (__x.size() != __y.size()) 29724: return false; 29724: 29724: 29724: typedef typename list<_Tp, _Alloc>::const_iterator const_iterator; 29724: const_iterator __end1 = __x.end(); 29724: const_iterator __end2 = __y.end(); 29724: 29724: const_iterator __i1 = __x.begin(); 29724: const_iterator __i2 = __y.begin(); 29724: while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) 29724: { 29724: ++__i1; 29724: ++__i2; 29724: } 29724: return __i1 == __end1 && __i2 == __end2; 29724: } 29724: # 2176 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { return std::lexicographical_compare(__x.begin(), __x.end(), 29724: __y.begin(), __y.end()); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline ptrdiff_t 29724: __distance(std::_List_iterator<_Tp> __first, 29724: std::_List_iterator<_Tp> __last, 29724: input_iterator_tag __tag) 29724: { 29724: typedef std::_List_const_iterator<_Tp> _CIter; 29724: return std::__distance(_CIter(__first), _CIter(__last), __tag); 29724: } 29724: 29724: template 29724: inline ptrdiff_t 29724: __distance(std::_List_const_iterator<_Tp> __first, 29724: std::_List_const_iterator<_Tp> __last, 29724: input_iterator_tag) 29724: { 29724: typedef __detail::_List_node_header _Sentinel; 29724: std::_List_const_iterator<_Tp> __beyond = __last; 29724: ++__beyond; 29724: const bool __whole = __first == __beyond; 29724: if (__builtin_constant_p (__whole) && __whole) 29724: return static_cast(__last._M_node)->_M_size; 29724: 29724: ptrdiff_t __n = 0; 29724: while (__first != __last) 29724: { 29724: ++__first; 29724: ++__n; 29724: } 29724: return __n; 29724: } 29724: 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/list" 2 3 29724: # 1 "/usr/include/c++/14/bits/list.tcc" 1 3 29724: # 59 "/usr/include/c++/14/bits/list.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: void 29724: _List_base<_Tp, _Alloc>:: 29724: _M_clear() noexcept 29724: { 29724: typedef _List_node<_Tp> _Node; 29724: __detail::_List_node_base* __cur = _M_impl._M_node._M_next; 29724: while (__cur != &_M_impl._M_node) 29724: { 29724: _Node* __tmp = static_cast<_Node*>(__cur); 29724: __cur = __tmp->_M_next; 29724: _Tp* __val = __tmp->_M_valptr(); 29724: 29724: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __val); 29724: 29724: 29724: 29724: _M_put_node(__tmp); 29724: } 29724: } 29724: 29724: 29724: template 29724: template 29724: typename list<_Tp, _Alloc>::iterator 29724: list<_Tp, _Alloc>:: 29724: emplace(const_iterator __position, _Args&&... __args) 29724: { 29724: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 29724: __tmp->_M_hook(__position._M_const_cast()._M_node); 29724: this->_M_inc_size(1); 29724: return iterator(__tmp); 29724: } 29724: 29724: 29724: template 29724: typename list<_Tp, _Alloc>::iterator 29724: list<_Tp, _Alloc>:: 29724: 29724: insert(const_iterator __position, const value_type& __x) 29724: 29724: 29724: 29724: { 29724: _Node* __tmp = _M_create_node(__x); 29724: __tmp->_M_hook(__position._M_const_cast()._M_node); 29724: this->_M_inc_size(1); 29724: return iterator(__tmp); 29724: } 29724: 29724: 29724: template 29724: typename list<_Tp, _Alloc>::iterator 29724: list<_Tp, _Alloc>:: 29724: insert(const_iterator __position, size_type __n, const value_type& __x) 29724: { 29724: if (__n) 29724: { 29724: list __tmp(__n, __x, get_allocator()); 29724: iterator __it = __tmp.begin(); 29724: splice(__position, __tmp); 29724: return __it; 29724: } 29724: return __position._M_const_cast(); 29724: } 29724: 29724: template 29724: template 29724: typename list<_Tp, _Alloc>::iterator 29724: list<_Tp, _Alloc>:: 29724: insert(const_iterator __position, _InputIterator __first, 29724: _InputIterator __last) 29724: { 29724: list __tmp(__first, __last, get_allocator()); 29724: if (!__tmp.empty()) 29724: { 29724: iterator __it = __tmp.begin(); 29724: splice(__position, __tmp); 29724: return __it; 29724: } 29724: return __position._M_const_cast(); 29724: } 29724: 29724: 29724: template 29724: typename list<_Tp, _Alloc>::iterator 29724: list<_Tp, _Alloc>:: 29724: 29724: erase(const_iterator __position) noexcept 29724: 29724: 29724: 29724: { 29724: iterator __ret = iterator(__position._M_node->_M_next); 29724: _M_erase(__position._M_const_cast()); 29724: return __ret; 29724: } 29724: # 173 "/usr/include/c++/14/bits/list.tcc" 3 29724: template 29724: typename list<_Tp, _Alloc>::const_iterator 29724: list<_Tp, _Alloc>:: 29724: _M_resize_pos(size_type& __new_size) const 29724: { 29724: const_iterator __i; 29724: 29724: const size_type __len = size(); 29724: if (__new_size < __len) 29724: { 29724: if (__new_size <= __len / 2) 29724: { 29724: __i = begin(); 29724: std::advance(__i, __new_size); 29724: } 29724: else 29724: { 29724: __i = end(); 29724: ptrdiff_t __num_erase = __len - __new_size; 29724: std::advance(__i, -__num_erase); 29724: } 29724: __new_size = 0; 29724: return __i; 29724: } 29724: else 29724: __i = end(); 29724: 29724: 29724: 29724: 29724: 29724: __new_size -= __len; 29724: return __i; 29724: } 29724: 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: _M_default_append(size_type __n) 29724: { 29724: size_type __i = 0; 29724: try 29724: { 29724: for (; __i < __n; ++__i) 29724: emplace_back(); 29724: } 29724: catch(...) 29724: { 29724: for (; __i; --__i) 29724: pop_back(); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: resize(size_type __new_size) 29724: { 29724: const_iterator __i = _M_resize_pos(__new_size); 29724: if (__new_size) 29724: _M_default_append(__new_size); 29724: else 29724: erase(__i, end()); 29724: } 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: resize(size_type __new_size, const value_type& __x) 29724: { 29724: const_iterator __i = _M_resize_pos(__new_size); 29724: if (__new_size) 29724: insert(end(), __new_size, __x); 29724: else 29724: erase(__i, end()); 29724: } 29724: # 265 "/usr/include/c++/14/bits/list.tcc" 3 29724: template 29724: list<_Tp, _Alloc>& 29724: list<_Tp, _Alloc>:: 29724: operator=(const list& __x) 29724: { 29724: if (this != std::__addressof(__x)) 29724: { 29724: 29724: if (_Node_alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: auto& __this_alloc = this->_M_get_Node_allocator(); 29724: auto& __that_alloc = __x._M_get_Node_allocator(); 29724: if (!_Node_alloc_traits::_S_always_equal() 29724: && __this_alloc != __that_alloc) 29724: { 29724: 29724: clear(); 29724: } 29724: std::__alloc_on_copy(__this_alloc, __that_alloc); 29724: } 29724: 29724: _M_assign_dispatch(__x.begin(), __x.end(), __false_type()); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: _M_fill_assign(size_type __n, const value_type& __val) 29724: { 29724: iterator __i = begin(); 29724: for (; __i != end() && __n > 0; ++__i, --__n) 29724: *__i = __val; 29724: if (__n > 0) 29724: insert(end(), __n, __val); 29724: else 29724: erase(__i, end()); 29724: } 29724: 29724: template 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: _M_assign_dispatch(_InputIterator __first2, _InputIterator __last2, 29724: __false_type) 29724: { 29724: iterator __first1 = begin(); 29724: iterator __last1 = end(); 29724: for (; __first1 != __last1 && __first2 != __last2; 29724: ++__first1, (void)++__first2) 29724: *__first1 = *__first2; 29724: if (__first2 == __last2) 29724: erase(__first1, __last1); 29724: else 29724: insert(__last1, __first2, __last2); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: typename list<_Tp, _Alloc>::__remove_return_type 29724: list<_Tp, _Alloc>:: 29724: remove(const value_type& __value) 29724: { 29724: 29724: 29724: 29724: list __to_destroy(get_allocator()); 29724: iterator __first = begin(); 29724: iterator __last = end(); 29724: while (__first != __last) 29724: { 29724: iterator __next = __first; 29724: ++__next; 29724: if (*__first == __value) 29724: { 29724: 29724: 29724: 29724: __to_destroy.splice(__to_destroy.begin(), *this, __first); 29724: 29724: 29724: 29724: } 29724: 29724: __first = __next; 29724: } 29724: 29724: 29724: 29724: 29724: return ; 29724: 29724: } 29724: 29724: template 29724: typename list<_Tp, _Alloc>::__remove_return_type 29724: list<_Tp, _Alloc>:: 29724: unique() 29724: { 29724: iterator __first = begin(); 29724: iterator __last = end(); 29724: if (__first == __last) 29724: return ; 29724: 29724: 29724: 29724: list __to_destroy(get_allocator()); 29724: iterator __next = __first; 29724: while (++__next != __last) 29724: { 29724: if (*__first == *__next) 29724: { 29724: __to_destroy.splice(__to_destroy.begin(), *this, __next); 29724: 29724: 29724: 29724: } 29724: else 29724: __first = __next; 29724: __next = __first; 29724: } 29724: 29724: 29724: 29724: 29724: return ; 29724: 29724: } 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: 29724: merge(list&& __x) 29724: 29724: 29724: 29724: { 29724: 29724: 29724: if (this != std::__addressof(__x)) 29724: { 29724: _M_check_equal_allocators(__x); 29724: 29724: iterator __first1 = begin(); 29724: iterator __last1 = end(); 29724: iterator __first2 = __x.begin(); 29724: iterator __last2 = __x.end(); 29724: 29724: const _Finalize_merge __fin(*this, __x, __first2); 29724: 29724: while (__first1 != __last1 && __first2 != __last2) 29724: if (*__first2 < *__first1) 29724: { 29724: iterator __next = __first2; 29724: _M_transfer(__first1, __first2, ++__next); 29724: __first2 = __next; 29724: } 29724: else 29724: ++__first1; 29724: if (__first2 != __last2) 29724: { 29724: _M_transfer(__last1, __first2, __last2); 29724: __first2 = __last2; 29724: } 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: 29724: merge(list&& __x, _StrictWeakOrdering __comp) 29724: 29724: 29724: 29724: { 29724: 29724: 29724: if (this != std::__addressof(__x)) 29724: { 29724: _M_check_equal_allocators(__x); 29724: 29724: iterator __first1 = begin(); 29724: iterator __last1 = end(); 29724: iterator __first2 = __x.begin(); 29724: iterator __last2 = __x.end(); 29724: 29724: const _Finalize_merge __fin(*this, __x, __first2); 29724: 29724: while (__first1 != __last1 && __first2 != __last2) 29724: if (__comp(*__first2, *__first1)) 29724: { 29724: iterator __next = __first2; 29724: _M_transfer(__first1, __first2, ++__next); 29724: __first2 = __next; 29724: } 29724: else 29724: ++__first1; 29724: if (__first2 != __last2) 29724: { 29724: _M_transfer(__last1, __first2, __last2); 29724: __first2 = __last2; 29724: } 29724: } 29724: } 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: sort() 29724: { 29724: 29724: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 29724: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 29724: { 29724: using __detail::_Scratch_list; 29724: # 497 "/usr/include/c++/14/bits/list.tcc" 3 29724: _Scratch_list __carry; 29724: _Scratch_list __tmp[64]; 29724: _Scratch_list* __fill = __tmp; 29724: _Scratch_list* __counter; 29724: 29724: _Scratch_list::_Ptr_cmp __ptr_comp; 29724: 29724: try 29724: { 29724: do 29724: { 29724: __carry._M_take_one(begin()._M_node); 29724: 29724: for(__counter = __tmp; 29724: __counter != __fill && !__counter->empty(); 29724: ++__counter) 29724: { 29724: 29724: __counter->merge(__carry, __ptr_comp); 29724: __carry.swap(*__counter); 29724: } 29724: __carry.swap(*__counter); 29724: if (__counter == __fill) 29724: ++__fill; 29724: } 29724: while ( !empty() ); 29724: 29724: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 29724: __counter->merge(__counter[-1], __ptr_comp); 29724: __fill[-1].swap(this->_M_impl._M_node); 29724: } 29724: catch(...) 29724: { 29724: 29724: __carry._M_put_all(end()._M_node); 29724: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 29724: __tmp[__i]._M_put_all(end()._M_node); 29724: throw; 29724: } 29724: } 29724: } 29724: 29724: template 29724: template 29724: typename list<_Tp, _Alloc>::__remove_return_type 29724: list<_Tp, _Alloc>:: 29724: remove_if(_Predicate __pred) 29724: { 29724: 29724: 29724: 29724: list __to_destroy(get_allocator()); 29724: iterator __first = begin(); 29724: iterator __last = end(); 29724: while (__first != __last) 29724: { 29724: iterator __next = __first; 29724: ++__next; 29724: if (__pred(*__first)) 29724: { 29724: __to_destroy.splice(__to_destroy.begin(), *this, __first); 29724: 29724: 29724: 29724: } 29724: __first = __next; 29724: } 29724: 29724: 29724: 29724: 29724: return ; 29724: 29724: } 29724: 29724: template 29724: template 29724: typename list<_Tp, _Alloc>::__remove_return_type 29724: list<_Tp, _Alloc>:: 29724: unique(_BinaryPredicate __binary_pred) 29724: { 29724: iterator __first = begin(); 29724: iterator __last = end(); 29724: if (__first == __last) 29724: return ; 29724: 29724: 29724: 29724: list __to_destroy(get_allocator()); 29724: iterator __next = __first; 29724: while (++__next != __last) 29724: { 29724: if (__binary_pred(*__first, *__next)) 29724: { 29724: __to_destroy.splice(__to_destroy.begin(), *this, __next); 29724: 29724: 29724: 29724: } 29724: else 29724: __first = __next; 29724: __next = __first; 29724: } 29724: 29724: 29724: 29724: 29724: return ; 29724: 29724: } 29724: 29724: 29724: 29724: template 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: sort(_StrictWeakOrdering __comp) 29724: { 29724: 29724: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 29724: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 29724: { 29724: using __detail::_Scratch_list; 29724: _Scratch_list __carry; 29724: _Scratch_list __tmp[64]; 29724: _Scratch_list* __fill = __tmp; 29724: _Scratch_list* __counter; 29724: 29724: _Scratch_list::_Ptr_cmp __ptr_comp 29724: = { __comp }; 29724: 29724: try 29724: { 29724: do 29724: { 29724: __carry._M_take_one(begin()._M_node); 29724: 29724: for(__counter = __tmp; 29724: __counter != __fill && !__counter->empty(); 29724: ++__counter) 29724: { 29724: 29724: __counter->merge(__carry, __ptr_comp); 29724: __carry.swap(*__counter); 29724: } 29724: __carry.swap(*__counter); 29724: if (__counter == __fill) 29724: ++__fill; 29724: } 29724: while ( !empty() ); 29724: 29724: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 29724: __counter->merge(__counter[-1], __ptr_comp); 29724: __fill[-1].swap(this->_M_impl._M_node); 29724: } 29724: catch(...) 29724: { 29724: 29724: __carry._M_put_all(end()._M_node); 29724: for (size_t __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 29724: __tmp[__i]._M_put_all(end()._M_node); 29724: throw; 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: } 29724: # 67 "/usr/include/c++/14/list" 2 3 29724: # 77 "/usr/include/c++/14/list" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 78 "/usr/include/c++/14/list" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template 29724: using list = std::list<_Tp, polymorphic_allocator<_Tp>>; 29724: } 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 2 29724: 29724: 29724: 29724: 29724: 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: namespace rocksdb { 29724: class CacheReservationManager; 29724: 29724: 29724: 29724: class StallInterface { 29724: public: 29724: virtual ~StallInterface() {} 29724: 29724: virtual void Block() = 0; 29724: 29724: virtual void Signal() = 0; 29724: }; 29724: 29724: class WriteBufferManager final { 29724: public: 29724: # 50 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: explicit WriteBufferManager(size_t _buffer_size, 29724: std::shared_ptr cache = {}, 29724: bool allow_stall = false); 29724: 29724: WriteBufferManager(const WriteBufferManager&) = delete; 29724: WriteBufferManager& operator=(const WriteBufferManager&) = delete; 29724: 29724: ~WriteBufferManager(); 29724: 29724: 29724: 29724: bool enabled() const { return buffer_size() > 0; } 29724: 29724: 29724: bool cost_to_cache() const { return cache_res_mgr_ != nullptr; } 29724: 29724: 29724: 29724: size_t memory_usage() const { 29724: return memory_used_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: size_t mutable_memtable_memory_usage() const { 29724: return memory_active_.load(std::memory_order_relaxed); 29724: } 29724: 29724: size_t dummy_entries_in_cache_usage() const; 29724: 29724: 29724: size_t buffer_size() const { 29724: return buffer_size_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: void SetBufferSize(size_t new_size) { 29724: 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29724: (static_cast ( 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: new_size > 0 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: "new_size > 0" 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: ; 29724: buffer_size_.store(new_size, std::memory_order_relaxed); 29724: mutable_limit_.store(new_size * 7 / 8, std::memory_order_relaxed); 29724: 29724: MaybeEndWriteStall(); 29724: } 29724: 29724: void SetAllowStall(bool new_allow_stall) { 29724: allow_stall_.store(new_allow_stall, std::memory_order_relaxed); 29724: MaybeEndWriteStall(); 29724: } 29724: 29724: 29724: 29724: 29724: bool ShouldFlush() const { 29724: if (enabled()) { 29724: if (mutable_memtable_memory_usage() > 29724: mutable_limit_.load(std::memory_order_relaxed)) { 29724: return true; 29724: } 29724: size_t local_size = buffer_size(); 29724: if (memory_usage() >= local_size && 29724: mutable_memtable_memory_usage() >= local_size / 2) { 29724: 29724: 29724: 29724: return true; 29724: } 29724: } 29724: return false; 29724: } 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: bool ShouldStall() const { 29724: if (!allow_stall_.load(std::memory_order_relaxed) || !enabled()) { 29724: return false; 29724: } 29724: 29724: return IsStallActive() || IsStallThresholdExceeded(); 29724: } 29724: 29724: 29724: bool IsStallActive() const { 29724: return stall_active_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: bool IsStallThresholdExceeded() const { 29724: return memory_usage() >= buffer_size_; 29724: } 29724: 29724: void ReserveMem(size_t mem); 29724: 29724: 29724: 29724: void ScheduleFreeMem(size_t mem); 29724: 29724: void FreeMem(size_t mem); 29724: 29724: 29724: 29724: void BeginWriteStall(StallInterface* wbm_stall); 29724: 29724: 29724: 29724: void MaybeEndWriteStall(); 29724: 29724: void RemoveDBFromQueue(StallInterface* wbm_stall); 29724: 29724: private: 29724: std::atomic buffer_size_; 29724: std::atomic mutable_limit_; 29724: std::atomic memory_used_; 29724: 29724: std::atomic memory_active_; 29724: std::shared_ptr cache_res_mgr_; 29724: 29724: std::mutex cache_res_mgr_mu_; 29724: 29724: std::list queue_; 29724: 29724: std::mutex mu_; 29724: std::atomic allow_stall_; 29724: 29724: 29724: std::atomic stall_active_; 29724: 29724: void ReserveMemWithCache(size_t mem); 29724: void FreeMemWithCache(size_t mem); 29724: }; 29724: } 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Cache; 29724: class CompactionFilter; 29724: class CompactionFilterFactory; 29724: class Comparator; 29724: class ConcurrentTaskLimiter; 29724: class Env; 29724: enum InfoLogLevel : unsigned char; 29724: class SstFileManager; 29724: class FilterPolicy; 29724: class Logger; 29724: class MergeOperator; 29724: class Snapshot; 29724: class MemTableRepFactory; 29724: class RateLimiter; 29724: class Slice; 29724: class Statistics; 29724: class InternalKeyComparator; 29724: class WalFilter; 29724: class FileSystem; 29724: 29724: struct Options; 29724: struct DbPath; 29724: 29724: using FileTypeSet = SmallEnumSet; 29724: 29724: struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ColumnFamilyOptions* OldDefaults(int rocksdb_major_version = 4, 29724: int rocksdb_minor_version = 6); 29724: 29724: 29724: 29724: 29724: 29724: ColumnFamilyOptions* OptimizeForSmallDb( 29724: std::shared_ptr* cache = nullptr); 29724: 29724: 29724: 29724: 29724: ColumnFamilyOptions* OptimizeForPointLookup(uint64_t block_cache_size_mb); 29724: # 102 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: ColumnFamilyOptions* OptimizeLevelStyleCompaction( 29724: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 29724: ColumnFamilyOptions* OptimizeUniversalStyleCompaction( 29724: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: const Comparator* comparator = BytewiseComparator(); 29724: # 128 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr merge_operator = nullptr; 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: const CompactionFilter* compaction_filter = nullptr; 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr compaction_filter_factory = nullptr; 29724: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t write_buffer_size = 64 << 20; 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: CompressionType compression; 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: CompressionType bottommost_compression = kDisableCompressionOption; 29724: 29724: 29724: 29724: 29724: 29724: CompressionOptions bottommost_compression_opts; 29724: 29724: 29724: CompressionOptions compression_opts; 29724: # 246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: int level0_file_num_compaction_trigger = 4; 29724: # 280 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr prefix_extractor = nullptr; 29724: # 294 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t max_bytes_for_level_base = 256 * 1048576; 29724: 29724: 29724: uint64_t snap_refresh_nanos = 0; 29724: 29724: 29724: 29724: 29724: 29724: bool disable_auto_compactions = false; 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr table_factory; 29724: # 323 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::vector cf_paths; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr compaction_thread_limiter = nullptr; 29724: # 340 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr sst_partitioner_factory = nullptr; 29724: # 351 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint32_t memtable_max_range_deletions = 0; 29724: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint32_t uncache_aggressiveness = 0; 29724: 29724: 29724: ColumnFamilyOptions(); 29724: 29724: explicit ColumnFamilyOptions(const Options& options); 29724: 29724: void Dump(Logger* log) const; 29724: }; 29724: 29724: enum class WALRecoveryMode : char { 29724: # 425 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: kTolerateCorruptedTailRecords = 0x00, 29724: 29724: 29724: 29724: 29724: kAbsoluteConsistency = 0x01, 29724: 29724: 29724: 29724: 29724: kPointInTimeRecovery = 0x02, 29724: 29724: 29724: 29724: 29724: 29724: kSkipAnyCorruptedRecords = 0x03, 29724: }; 29724: 29724: struct DbPath { 29724: std::string path; 29724: uint64_t target_size; 29724: 29724: DbPath() : target_size(0) {} 29724: DbPath(const std::string& p, uint64_t t) : path(p), target_size(t) {} 29724: }; 29724: 29724: extern const char* kHostnameForDbHostId; 29724: 29724: enum class CompactionServiceJobStatus : char { 29724: kSuccess, 29724: kFailure, 29724: kUseLocal, 29724: }; 29724: 29724: struct CompactionServiceJobInfo { 29724: std::string db_name; 29724: std::string db_id; 29724: std::string db_session_id; 29724: uint64_t job_id; 29724: 29724: 29724: 29724: 29724: Env::Priority priority; 29724: 29724: 29724: CompactionReason compaction_reason; 29724: bool is_full_compaction; 29724: bool is_manual_compaction; 29724: bool bottommost_level; 29724: 29724: CompactionServiceJobInfo(std::string db_name_, std::string db_id_, 29724: std::string db_session_id_, uint64_t job_id_, 29724: Env::Priority priority_, 29724: CompactionReason compaction_reason_, 29724: bool is_full_compaction_, bool is_manual_compaction_, 29724: bool bottommost_level_) 29724: : db_name(std::move(db_name_)), 29724: db_id(std::move(db_id_)), 29724: db_session_id(std::move(db_session_id_)), 29724: job_id(job_id_), 29724: priority(priority_), 29724: compaction_reason(compaction_reason_), 29724: is_full_compaction(is_full_compaction_), 29724: is_manual_compaction(is_manual_compaction_), 29724: bottommost_level(bottommost_level_) {} 29724: }; 29724: 29724: struct CompactionServiceScheduleResponse { 29724: std::string scheduled_job_id; 29724: 29724: CompactionServiceJobStatus status; 29724: CompactionServiceScheduleResponse(std::string scheduled_job_id_, 29724: CompactionServiceJobStatus status_) 29724: : scheduled_job_id(scheduled_job_id_), status(status_) {} 29724: explicit CompactionServiceScheduleResponse(CompactionServiceJobStatus status_) 29724: : status(status_) {} 29724: }; 29724: 29724: 29724: 29724: 29724: class CompactionService : public Customizable { 29724: public: 29724: static const char* Type() { return "CompactionService"; } 29724: 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: virtual CompactionServiceScheduleResponse Schedule( 29724: const CompactionServiceJobInfo& , 29724: const std::string& ) { 29724: CompactionServiceScheduleResponse response( 29724: CompactionServiceJobStatus::kUseLocal); 29724: return response; 29724: } 29724: 29724: 29724: virtual CompactionServiceJobStatus Wait( 29724: const std::string& , std::string* ) { 29724: return CompactionServiceJobStatus::kUseLocal; 29724: } 29724: 29724: 29724: virtual void OnInstallation(const std::string& , 29724: CompactionServiceJobStatus ) {} 29724: 29724: ~CompactionService() override = default; 29724: }; 29724: 29724: struct DBOptions { 29724: 29724: 29724: 29724: 29724: 29724: DBOptions* OldDefaults(int rocksdb_major_version = 4, 29724: int rocksdb_minor_version = 6); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: DBOptions* OptimizeForSmallDb(std::shared_ptr* cache = nullptr); 29724: 29724: 29724: 29724: 29724: 29724: 29724: DBOptions* IncreaseParallelism(int total_threads = 16); 29724: 29724: 29724: 29724: bool create_if_missing = false; 29724: 29724: 29724: 29724: 29724: bool create_missing_column_families = false; 29724: 29724: 29724: 29724: bool error_if_exists = false; 29724: # 588 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool paranoid_checks = true; 29724: # 600 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool flush_verify_memtable_count = true; 29724: # 617 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool compaction_verify_record_count = true; 29724: # 633 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool track_and_verify_wals_in_manifest = false; 29724: # 653 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool verify_sst_unique_id_in_manifest = true; 29724: 29724: 29724: 29724: 29724: Env* env = Env::Default(); 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr rate_limiter = nullptr; 29724: # 692 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr sst_file_manager = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr info_log = nullptr; 29724: 29724: 29724: 29724: 29724: InfoLogLevel info_log_level = Logger::kDefaultLogLevel; 29724: # 718 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: int max_open_files = -1; 29724: 29724: 29724: 29724: 29724: int max_file_opening_threads = 16; 29724: # 746 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t max_total_wal_size = 0; 29724: 29724: 29724: std::shared_ptr statistics = nullptr; 29724: # 759 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool use_fsync = false; 29724: # 785 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::vector db_paths; 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::string db_log_dir = ""; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::string wal_dir = ""; 29724: # 810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t delete_obsolete_files_period_micros = 6ULL * 60 * 60 * 1000000; 29724: 29724: 29724: 29724: 29724: 29724: 29724: int max_background_jobs = 2; 29724: # 835 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: int max_background_compactions = -1; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t max_subcompactions = 1; 29724: # 865 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: int max_background_flushes = -1; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t max_log_file_size = 0; 29724: 29724: 29724: 29724: 29724: 29724: size_t log_file_time_to_roll = 0; 29724: 29724: 29724: 29724: size_t keep_log_file_num = 1000; 29724: # 892 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t recycle_log_file_num = 0; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t max_manifest_file_size = 1024 * 1024 * 1024; 29724: 29724: 29724: int table_cache_numshardbits = 6; 29724: # 920 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t WAL_ttl_seconds = 0; 29724: uint64_t WAL_size_limit_MB = 0; 29724: 29724: 29724: 29724: 29724: 29724: size_t manifest_preallocation_size = 4 * 1024 * 1024; 29724: # 940 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_mmap_reads = false; 29724: 29724: 29724: 29724: 29724: bool allow_mmap_writes = false; 29724: # 957 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool use_direct_reads = false; 29724: 29724: 29724: 29724: bool use_direct_io_for_flush_and_compaction = false; 29724: # 972 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_fallocate = true; 29724: 29724: 29724: bool is_fd_close_on_exec = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: unsigned int stats_dump_period_sec = 600; 29724: 29724: 29724: 29724: unsigned int stats_persist_period_sec = 600; 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool persist_stats_to_disk = false; 29724: 29724: 29724: 29724: 29724: size_t stats_history_buffer_size = 1024 * 1024; 29724: 29724: 29724: 29724: 29724: bool advise_random_on_open = true; 29724: # 1020 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t db_write_buffer_size = 0; 29724: # 1037 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr write_buffer_manager = nullptr; 29724: # 1046 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t compaction_readahead_size = 2 * 1024 * 1024; 29724: # 1063 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t random_access_max_buffer_size = 1024 * 1024; 29724: # 1074 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t writable_file_max_buffer_size = 1024 * 1024; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool use_adaptive_mutex = false; 29724: 29724: 29724: DBOptions(); 29724: 29724: explicit DBOptions(const Options& options); 29724: 29724: void Dump(Logger* log) const; 29724: # 1106 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t bytes_per_sync = 0; 29724: # 1116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t wal_bytes_per_sync = 0; 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool strict_bytes_per_sync = false; 29724: 29724: 29724: 29724: std::vector> listeners; 29724: 29724: 29724: 29724: 29724: 29724: bool enable_thread_tracking = false; 29724: # 1165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t delayed_write_rate = 0; 29724: # 1180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool enable_pipelined_write = false; 29724: # 1206 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool unordered_write = false; 29724: # 1216 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_concurrent_memtable_write = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool enable_write_thread_adaptive_yield = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t max_write_batch_group_size_bytes = 1 << 20; 29724: # 1240 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t write_thread_max_yield_usec = 100; 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t write_thread_slow_yield_usec = 3; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool skip_stats_update_on_db_open = false; 29724: # 1268 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool skip_checking_sst_file_sizes_on_db_open = false; 29724: 29724: 29724: 29724: WALRecoveryMode wal_recovery_mode = WALRecoveryMode::kPointInTimeRecovery; 29724: 29724: 29724: 29724: bool allow_2pc = false; 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr row_cache = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: 29724: WalFilter* wal_filter = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool fail_if_options_file_error = true; 29724: 29724: 29724: 29724: 29724: bool dump_malloc_stats = false; 29724: # 1311 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool avoid_flush_during_recovery = false; 29724: # 1320 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool avoid_flush_during_shutdown = false; 29724: # 1335 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_ingest_behind = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool two_write_queues = false; 29724: 29724: 29724: 29724: 29724: bool manual_wal_flush = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: CompressionType wal_compression = kNoCompression; 29724: # 1363 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool background_close_inactive_wals = false; 29724: # 1377 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool atomic_flush = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool avoid_unnecessary_blocking_io = false; 29724: # 1397 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool write_dbid_to_manifest = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool write_identity_file = true; 29724: # 1415 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool prefix_seek_opt_in_only = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t log_readahead_size = 0; 29724: # 1431 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr file_checksum_gen_factory = nullptr; 29724: # 1480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool best_efforts_recovery = false; 29724: # 1490 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: int max_bgerror_resume_count = 0x7fffffff 29724: # 1490 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t bgerror_resume_retry_interval = 1000000; 29724: # 1506 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_data_in_errors = false; 29724: # 1519 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::string db_host_id = kHostnameForDbHostId; 29724: # 1529 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: FileTypeSet checksum_handoff_file_types; 29724: # 1538 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr compaction_service = nullptr; 29724: # 1550 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: CacheTier lowest_used_cache_tier = CacheTier::kNonVolatileBlockTier; 29724: # 1565 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool enforce_single_del_contracts = true; 29724: # 1582 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::string daily_offpeak_time_utc = ""; 29724: # 1592 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t follower_refresh_catchup_period_ms = 10000; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t follower_catchup_retry_count = 10; 29724: 29724: 29724: 29724: uint64_t follower_catchup_retry_wait_ms = 100; 29724: 29724: 29724: 29724: 29724: 29724: Temperature metadata_write_temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: 29724: Temperature wal_write_temperature = Temperature::kUnknown; 29724: 29724: }; 29724: 29724: 29724: struct Options : public DBOptions, public ColumnFamilyOptions { 29724: 29724: Options() : DBOptions(), ColumnFamilyOptions() {} 29724: 29724: Options(const DBOptions& db_options, 29724: const ColumnFamilyOptions& column_family_options) 29724: : DBOptions(db_options), ColumnFamilyOptions(column_family_options) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: Options* OldDefaults(int rocksdb_major_version = 4, 29724: int rocksdb_minor_version = 6); 29724: 29724: void Dump(Logger* log) const; 29724: 29724: void DumpCFOptions(Logger* log) const; 29724: # 1650 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: Options* PrepareForBulkLoad(); 29724: 29724: 29724: 29724: Options* OptimizeForSmallDb(); 29724: 29724: 29724: 29724: 29724: 29724: Options* DisableExtraChecks(); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum ReadTier { 29724: kReadAllTier = 0x0, 29724: kBlockCacheTier = 0x1, 29724: kPersistedTier = 0x2, 29724: 29724: 29724: 29724: kMemtableTier = 0x3 29724: }; 29724: 29724: 29724: struct ReadOptions { 29724: 29724: 29724: 29724: 29724: 29724: 29724: const Snapshot* snapshot = nullptr; 29724: # 1699 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: const Slice* timestamp = nullptr; 29724: const Slice* iter_start_ts = nullptr; 29724: # 1711 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::chrono::microseconds deadline = std::chrono::microseconds::zero(); 29724: 29724: 29724: 29724: 29724: 29724: std::chrono::microseconds io_timeout = std::chrono::microseconds::zero(); 29724: 29724: 29724: 29724: 29724: ReadTier read_tier = kReadAllTier; 29724: # 1736 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 29724: 29724: 29724: 29724: 29724: uint64_t value_size_soft_limit = std::numeric_limits::max(); 29724: 29724: 29724: 29724: 29724: 29724: std::optional merge_operand_count_threshold; 29724: 29724: 29724: 29724: bool verify_checksums = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool fill_cache = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool ignore_range_deletions = false; 29724: 29724: 29724: 29724: 29724: bool async_io = false; 29724: # 1779 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool optimize_multiget_for_io = true; 29724: # 1792 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t readahead_size = 0; 29724: 29724: 29724: 29724: 29724: uint64_t max_skippable_internal_keys = 0; 29724: # 1810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: const Slice* iterate_lower_bound = nullptr; 29724: # 1830 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: const Slice* iterate_upper_bound = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: bool tailing = false; 29724: 29724: 29724: 29724: bool managed = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool total_order_seek = false; 29724: # 1863 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool auto_prefix_mode = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool prefix_same_as_start = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool pin_data = false; 29724: # 1888 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool adaptive_readahead = false; 29724: 29724: 29724: 29724: 29724: bool background_purge_on_iterator_cleanup = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::function table_filter; 29724: # 1928 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool auto_readahead_size = true; 29724: # 1941 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_unprepared_value = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29724: 29724: 29724: 29724: ReadOptions() {} 29724: ReadOptions(bool _verify_checksums, bool _fill_cache); 29724: explicit ReadOptions(Env::IOActivity _io_activity); 29724: }; 29724: 29724: 29724: struct WriteOptions { 29724: # 1975 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool sync = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool disableWAL = false; 29724: 29724: 29724: 29724: 29724: 29724: bool ignore_missing_column_families = false; 29724: 29724: 29724: 29724: 29724: bool no_slowdown = false; 29724: # 2003 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool low_pri = false; 29724: # 2012 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool memtable_insert_hint_per_batch = false; 29724: # 2027 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t protection_bytes_per_key = 0; 29724: 29724: 29724: 29724: 29724: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29724: 29724: WriteOptions() {} 29724: explicit WriteOptions(Env::IOActivity _io_activity); 29724: explicit WriteOptions( 29724: Env::IOPriority _rate_limiter_priority, 29724: Env::IOActivity _io_activity = Env::IOActivity::kUnknown); 29724: }; 29724: 29724: 29724: struct FlushOptions { 29724: 29724: 29724: bool wait; 29724: 29724: 29724: 29724: 29724: 29724: bool allow_write_stall; 29724: 29724: FlushOptions() : wait(true), allow_write_stall(false) {} 29724: }; 29724: 29724: 29724: Status CreateLoggerFromOptions(const std::string& dbname, 29724: const DBOptions& options, 29724: std::shared_ptr* logger); 29724: 29724: 29724: struct CompactionOptions { 29724: # 2082 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: CompressionType compression; 29724: 29724: 29724: 29724: uint64_t output_file_size_limit; 29724: 29724: 29724: uint32_t max_subcompactions; 29724: 29724: CompactionOptions() 29724: : compression(kDisableCompressionOption), 29724: output_file_size_limit(std::numeric_limits::max()), 29724: max_subcompactions(0) {} 29724: }; 29724: 29724: 29724: 29724: enum class BottommostLevelCompaction { 29724: 29724: kSkip, 29724: 29724: 29724: 29724: 29724: 29724: kIfHaveCompactionFilter, 29724: 29724: kForce, 29724: 29724: 29724: kForceOptimized, 29724: }; 29724: 29724: 29724: 29724: enum class BlobGarbageCollectionPolicy { 29724: 29724: kForce, 29724: 29724: kDisable, 29724: 29724: kUseDefault, 29724: }; 29724: 29724: 29724: struct CompactRangeOptions { 29724: 29724: 29724: 29724: 29724: bool exclusive_manual_compaction = false; 29724: 29724: 29724: 29724: bool change_level = false; 29724: 29724: 29724: int target_level = -1; 29724: 29724: 29724: uint32_t target_path_id = 0; 29724: 29724: 29724: BottommostLevelCompaction bottommost_level_compaction = 29724: BottommostLevelCompaction::kIfHaveCompactionFilter; 29724: 29724: 29724: bool allow_write_stall = false; 29724: 29724: uint32_t max_subcompactions = 0; 29724: 29724: 29724: const Slice* full_history_ts_low = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: std::atomic* canceled = nullptr; 29724: # 2173 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: BlobGarbageCollectionPolicy blob_garbage_collection_policy = 29724: BlobGarbageCollectionPolicy::kUseDefault; 29724: 29724: 29724: 29724: 29724: 29724: double blob_garbage_collection_age_cutoff = -1; 29724: }; 29724: 29724: 29724: struct IngestExternalFileOptions { 29724: 29724: 29724: 29724: 29724: 29724: bool move_files = false; 29724: 29724: 29724: bool link_files = false; 29724: 29724: 29724: bool failed_move_fall_back_to_copy = true; 29724: 29724: 29724: bool snapshot_consistency = true; 29724: 29724: 29724: 29724: 29724: bool allow_global_seqno = true; 29724: 29724: 29724: bool allow_blocking_flush = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool ingest_behind = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool write_global_seqno = false; 29724: 29724: 29724: 29724: 29724: bool verify_checksums_before_ingest = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t verify_checksums_readahead_size = 0; 29724: # 2255 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool verify_file_checksum = true; 29724: # 2265 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool fail_if_not_bottommost_level = false; 29724: # 2278 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_db_generated_files = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool fill_cache = true; 29724: }; 29724: 29724: enum TraceFilterType : uint64_t { 29724: 29724: kTraceFilterNone = 0x0, 29724: 29724: kTraceFilterGet = 0x1 << 0, 29724: 29724: kTraceFilterWrite = 0x1 << 1, 29724: 29724: kTraceFilterIteratorSeek = 0x1 << 2, 29724: 29724: kTraceFilterIteratorSeekForPrev = 0x1 << 3, 29724: 29724: kTraceFilterMultiGet = 0x1 << 4, 29724: }; 29724: 29724: 29724: struct TraceOptions { 29724: 29724: 29724: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 29724: 29724: 29724: uint64_t sampling_frequency = 1; 29724: 29724: uint64_t filter = kTraceFilterNone; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool preserve_write_order = false; 29724: }; 29724: 29724: 29724: struct ImportColumnFamilyOptions { 29724: 29724: bool move_files = false; 29724: }; 29724: 29724: 29724: struct SizeApproximationOptions { 29724: 29724: 29724: bool include_memtables = false; 29724: 29724: 29724: bool include_files = true; 29724: # 2346 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: double files_size_error_margin = -1.0; 29724: }; 29724: 29724: struct CompactionServiceOptionsOverride { 29724: Env* env = Env::Default(); 29724: std::shared_ptr file_checksum_gen_factory = nullptr; 29724: 29724: const Comparator* comparator = BytewiseComparator(); 29724: std::shared_ptr merge_operator = nullptr; 29724: const CompactionFilter* compaction_filter = nullptr; 29724: std::shared_ptr compaction_filter_factory = nullptr; 29724: std::shared_ptr prefix_extractor = nullptr; 29724: std::shared_ptr table_factory; 29724: std::shared_ptr sst_partitioner_factory = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::vector> listeners; 29724: 29724: 29724: 29724: 29724: std::shared_ptr statistics = nullptr; 29724: 29724: 29724: 29724: std::vector> 29724: table_properties_collector_factories; 29724: }; 29724: 29724: struct OpenAndCompactOptions { 29724: 29724: std::atomic* canceled = nullptr; 29724: }; 29724: 29724: struct LiveFilesStorageInfoOptions { 29724: 29724: bool include_checksum_info = false; 29724: 29724: 29724: 29724: uint64_t wal_size_for_flush = 0; 29724: }; 29724: 29724: struct WaitForCompactOptions { 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool abort_on_pause = false; 29724: 29724: 29724: bool flush = false; 29724: 29724: 29724: bool wait_for_purge = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool close_db = false; 29724: 29724: 29724: 29724: 29724: 29724: std::chrono::microseconds timeout = std::chrono::microseconds::zero(); 29724: }; 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_reader_caller.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: enum TableReaderCaller : char { 29724: kUserGet = 1, 29724: kUserMultiGet = 2, 29724: kUserIterator = 3, 29724: kUserApproximateSize = 4, 29724: kUserVerifyChecksum = 5, 29724: kSSTDumpTool = 6, 29724: kExternalSSTIngestion = 7, 29724: kRepair = 8, 29724: kPrefetch = 9, 29724: kCompaction = 10, 29724: 29724: 29724: kCompactionRefill = 11, 29724: 29724: 29724: kFlush = 12, 29724: 29724: kSSTFileReader = 13, 29724: 29724: 29724: kUncategorized = 14, 29724: 29724: kMaxBlockCacheLookupCaller 29724: }; 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_reader_writer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_reader_writer.h" 29724: class TraceWriter { 29724: public: 29724: virtual ~TraceWriter() = default; 29724: 29724: virtual Status Write(const Slice& data) = 0; 29724: virtual Status Close() = 0; 29724: virtual uint64_t GetFileSize() = 0; 29724: }; 29724: 29724: 29724: 29724: class TraceReader { 29724: public: 29724: virtual ~TraceReader() = default; 29724: 29724: virtual Status Read(std::string* data) = 0; 29724: virtual Status Close() = 0; 29724: 29724: 29724: 29724: virtual Status Reset() = 0; 29724: }; 29724: 29724: 29724: 29724: Status NewFileTraceWriter(Env* env, const EnvOptions& env_options, 29724: const std::string& trace_filename, 29724: std::unique_ptr* trace_writer); 29724: Status NewFileTraceReader(Env* env, const EnvOptions& env_options, 29724: const std::string& trace_filename, 29724: std::unique_ptr* trace_reader); 29724: 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_record.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_record.h" 29724: namespace rocksdb { 29724: 29724: class ColumnFamilyHandle; 29724: class DB; 29724: 29724: 29724: enum TraceType : char { 29724: kTraceNone = 0, 29724: kTraceBegin = 1, 29724: kTraceEnd = 2, 29724: 29724: kTraceWrite = 3, 29724: kTraceGet = 4, 29724: kTraceIteratorSeek = 5, 29724: kTraceIteratorSeekForPrev = 6, 29724: 29724: kBlockTraceIndexBlock = 7, 29724: 29724: kBlockTraceFilterBlock = 8, 29724: kBlockTraceDataBlock = 9, 29724: kBlockTraceUncompressionDictBlock = 10, 29724: kBlockTraceRangeDeletionBlock = 11, 29724: 29724: kIOTracer = 12, 29724: 29724: kTraceMultiGet = 13, 29724: 29724: kTraceMax, 29724: }; 29724: 29724: class GetQueryTraceRecord; 29724: class IteratorSeekQueryTraceRecord; 29724: class MultiGetQueryTraceRecord; 29724: class TraceRecordResult; 29724: class WriteQueryTraceRecord; 29724: 29724: 29724: class TraceRecord { 29724: public: 29724: explicit TraceRecord(uint64_t timestamp); 29724: 29724: virtual ~TraceRecord() = default; 29724: 29724: 29724: virtual TraceType GetTraceType() const = 0; 29724: 29724: 29724: virtual uint64_t GetTimestamp() const; 29724: 29724: class Handler { 29724: public: 29724: virtual ~Handler() = default; 29724: 29724: virtual Status Handle(const WriteQueryTraceRecord& record, 29724: std::unique_ptr* result) = 0; 29724: 29724: virtual Status Handle(const GetQueryTraceRecord& record, 29724: std::unique_ptr* result) = 0; 29724: 29724: virtual Status Handle(const IteratorSeekQueryTraceRecord& record, 29724: std::unique_ptr* result) = 0; 29724: 29724: virtual Status Handle(const MultiGetQueryTraceRecord& record, 29724: std::unique_ptr* result) = 0; 29724: }; 29724: 29724: 29724: virtual Status Accept(Handler* handler, 29724: std::unique_ptr* result) = 0; 29724: 29724: 29724: static Handler* NewExecutionHandler( 29724: DB* db, const std::vector& handles); 29724: 29724: private: 29724: uint64_t timestamp_; 29724: }; 29724: 29724: 29724: class QueryTraceRecord : public TraceRecord { 29724: public: 29724: explicit QueryTraceRecord(uint64_t timestamp); 29724: }; 29724: 29724: 29724: class WriteQueryTraceRecord : public QueryTraceRecord { 29724: public: 29724: WriteQueryTraceRecord(PinnableSlice&& write_batch_rep, uint64_t timestamp); 29724: 29724: WriteQueryTraceRecord(const std::string& write_batch_rep, uint64_t timestamp); 29724: 29724: ~WriteQueryTraceRecord() override; 29724: 29724: TraceType GetTraceType() const override { return kTraceWrite; } 29724: 29724: 29724: virtual Slice GetWriteBatchRep() const; 29724: 29724: Status Accept(Handler* handler, 29724: std::unique_ptr* result) override; 29724: 29724: private: 29724: PinnableSlice rep_; 29724: }; 29724: 29724: 29724: class GetQueryTraceRecord : public QueryTraceRecord { 29724: public: 29724: GetQueryTraceRecord(uint32_t column_family_id, PinnableSlice&& key, 29724: uint64_t timestamp); 29724: 29724: GetQueryTraceRecord(uint32_t column_family_id, const std::string& key, 29724: uint64_t timestamp); 29724: 29724: ~GetQueryTraceRecord() override; 29724: 29724: TraceType GetTraceType() const override { return kTraceGet; } 29724: 29724: 29724: virtual uint32_t GetColumnFamilyID() const; 29724: 29724: 29724: virtual Slice GetKey() const; 29724: 29724: Status Accept(Handler* handler, 29724: std::unique_ptr* result) override; 29724: 29724: private: 29724: uint32_t cf_id_; 29724: PinnableSlice key_; 29724: }; 29724: 29724: 29724: class IteratorQueryTraceRecord : public QueryTraceRecord { 29724: public: 29724: explicit IteratorQueryTraceRecord(uint64_t timestamp); 29724: 29724: IteratorQueryTraceRecord(PinnableSlice&& lower_bound, 29724: PinnableSlice&& upper_bound, uint64_t timestamp); 29724: 29724: IteratorQueryTraceRecord(const std::string& lower_bound, 29724: const std::string& upper_bound, uint64_t timestamp); 29724: 29724: ~IteratorQueryTraceRecord() override; 29724: 29724: 29724: 29724: virtual Slice GetLowerBound() const; 29724: virtual Slice GetUpperBound() const; 29724: 29724: private: 29724: PinnableSlice lower_; 29724: PinnableSlice upper_; 29724: }; 29724: 29724: 29724: class IteratorSeekQueryTraceRecord : public IteratorQueryTraceRecord { 29724: public: 29724: 29724: enum SeekType { 29724: kSeek = kTraceIteratorSeek, 29724: kSeekForPrev = kTraceIteratorSeekForPrev 29724: }; 29724: 29724: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29724: PinnableSlice&& key, uint64_t timestamp); 29724: 29724: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29724: const std::string& key, uint64_t timestamp); 29724: 29724: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29724: PinnableSlice&& key, PinnableSlice&& lower_bound, 29724: PinnableSlice&& upper_bound, uint64_t timestamp); 29724: 29724: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29724: const std::string& key, 29724: const std::string& lower_bound, 29724: const std::string& upper_bound, 29724: uint64_t timestamp); 29724: 29724: ~IteratorSeekQueryTraceRecord() override; 29724: 29724: 29724: TraceType GetTraceType() const override; 29724: 29724: 29724: virtual SeekType GetSeekType() const; 29724: 29724: 29724: virtual uint32_t GetColumnFamilyID() const; 29724: 29724: 29724: virtual Slice GetKey() const; 29724: 29724: Status Accept(Handler* handler, 29724: std::unique_ptr* result) override; 29724: 29724: private: 29724: SeekType type_; 29724: uint32_t cf_id_; 29724: PinnableSlice key_; 29724: }; 29724: 29724: 29724: class MultiGetQueryTraceRecord : public QueryTraceRecord { 29724: public: 29724: MultiGetQueryTraceRecord(std::vector column_family_ids, 29724: std::vector&& keys, 29724: uint64_t timestamp); 29724: 29724: MultiGetQueryTraceRecord(std::vector column_family_ids, 29724: const std::vector& keys, 29724: uint64_t timestamp); 29724: 29724: ~MultiGetQueryTraceRecord() override; 29724: 29724: TraceType GetTraceType() const override { return kTraceMultiGet; } 29724: 29724: 29724: virtual std::vector GetColumnFamilyIDs() const; 29724: 29724: 29724: virtual std::vector GetKeys() const; 29724: 29724: Status Accept(Handler* handler, 29724: std::unique_ptr* result) override; 29724: 29724: private: 29724: std::vector cf_ids_; 29724: std::vector keys_; 29724: }; 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: struct BlockCacheTraceRecord { 29724: 29724: uint64_t access_timestamp = 0; 29724: 29724: 29724: 29724: 29724: std::string block_key; 29724: 29724: 29724: TraceType block_type = TraceType::kTraceMax; 29724: 29724: 29724: uint64_t block_size = 0; 29724: 29724: 29724: 29724: 29724: uint64_t cf_id = 0; 29724: 29724: 29724: std::string cf_name; 29724: 29724: 29724: uint32_t level = 0; 29724: 29724: 29724: uint64_t sst_fd_number = 0; 29724: 29724: 29724: 29724: 29724: TableReaderCaller caller = TableReaderCaller::kMaxBlockCacheLookupCaller; 29724: 29724: 29724: bool is_cache_hit = false; 29724: 29724: 29724: bool no_insert = false; 29724: 29724: 29724: 29724: 29724: uint64_t get_id = kReservedGetId; 29724: 29724: 29724: bool get_from_user_specified_snapshot = false; 29724: 29724: 29724: std::string referenced_key; 29724: 29724: 29724: 29724: 29724: uint64_t referenced_data_size = 0; 29724: 29724: 29724: uint64_t num_keys_in_block = 0; 29724: 29724: 29724: bool referenced_key_exist_in_block = false; 29724: 29724: static const uint64_t kReservedGetId; 29724: 29724: BlockCacheTraceRecord() {} 29724: 29724: BlockCacheTraceRecord(uint64_t _access_timestamp, std::string _block_key, 29724: TraceType _block_type, uint64_t _block_size, 29724: uint64_t _cf_id, std::string _cf_name, uint32_t _level, 29724: uint64_t _sst_fd_number, TableReaderCaller _caller, 29724: bool _is_cache_hit, bool _no_insert, uint64_t _get_id, 29724: bool _get_from_user_specified_snapshot = false, 29724: std::string _referenced_key = "", 29724: uint64_t _referenced_data_size = 0, 29724: uint64_t _num_keys_in_block = 0, 29724: bool _referenced_key_exist_in_block = false) 29724: : access_timestamp(_access_timestamp), 29724: block_key(_block_key), 29724: block_type(_block_type), 29724: block_size(_block_size), 29724: cf_id(_cf_id), 29724: cf_name(_cf_name), 29724: level(_level), 29724: sst_fd_number(_sst_fd_number), 29724: caller(_caller), 29724: is_cache_hit(_is_cache_hit), 29724: no_insert(_no_insert), 29724: get_id(_get_id), 29724: get_from_user_specified_snapshot(_get_from_user_specified_snapshot), 29724: referenced_key(_referenced_key), 29724: referenced_data_size(_referenced_data_size), 29724: num_keys_in_block(_num_keys_in_block), 29724: referenced_key_exist_in_block(_referenced_key_exist_in_block) {} 29724: }; 29724: 29724: 29724: struct BlockCacheTraceOptions { 29724: 29724: 29724: uint64_t sampling_frequency = 1; 29724: }; 29724: 29724: 29724: struct BlockCacheTraceWriterOptions { 29724: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 29724: }; 29724: 29724: 29724: 29724: 29724: class BlockCacheTraceWriter { 29724: public: 29724: virtual ~BlockCacheTraceWriter() {} 29724: 29724: 29724: virtual Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29724: const Slice& block_key, const Slice& cf_name, 29724: const Slice& referenced_key) = 0; 29724: 29724: 29724: 29724: virtual Status WriteHeader() = 0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: std::unique_ptr NewBlockCacheTraceWriter( 29724: SystemClock* clock, const BlockCacheTraceWriterOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 1 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Iterator : public IteratorBase { 29724: public: 29724: Iterator() {} 29724: 29724: Iterator(const Iterator&) = delete; 29724: void operator=(const Iterator&) = delete; 29724: 29724: virtual ~Iterator() override {} 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: virtual Slice value() const = 0; 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: virtual const WideColumns& columns() const { 29724: 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: (static_cast ( 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: false 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: "false" 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: ; 29724: return kNoWideColumns; 29724: } 29724: # 90 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: virtual Status GetProperty(std::string prop_name, std::string* prop); 29724: 29724: virtual Slice timestamp() const { 29724: 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: (static_cast ( 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: false 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: "false" 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: ; 29724: return Slice(); 29724: } 29724: }; 29724: 29724: 29724: Iterator* NewEmptyIterator(); 29724: 29724: 29724: Iterator* NewErrorIterator(const Status& status); 29724: 29724: } 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct FileStorageInfo { 29724: 29724: std::string relative_filename; 29724: 29724: 29724: std::string directory; 29724: 29724: 29724: 29724: uint64_t file_number = 0; 29724: 29724: FileType file_type = kTempFile; 29724: 29724: 29724: uint64_t size = 0; 29724: 29724: 29724: Temperature temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: 29724: 29724: std::string file_checksum; 29724: 29724: 29724: 29724: 29724: 29724: std::string file_checksum_func_name; 29724: }; 29724: 29724: 29724: 29724: struct LiveFileStorageInfo : public FileStorageInfo { 29724: 29724: 29724: 29724: 29724: 29724: std::string replacement_contents; 29724: 29724: 29724: 29724: 29724: bool trim_to_size = false; 29724: }; 29724: 29724: 29724: 29724: struct SstFileMetaData : public FileStorageInfo { 29724: SstFileMetaData() { file_type = kTableFile; } 29724: 29724: SstFileMetaData(const std::string& _file_name, uint64_t _file_number, 29724: const std::string& _directory, uint64_t _size, 29724: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno, 29724: const std::string& _smallestkey, 29724: const std::string& _largestkey, uint64_t _num_reads_sampled, 29724: bool _being_compacted, Temperature _temperature, 29724: uint64_t _oldest_blob_file_number, 29724: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 29724: uint64_t _epoch_number, std::string& _file_checksum, 29724: std::string& _file_checksum_func_name) 29724: : smallest_seqno(_smallest_seqno), 29724: largest_seqno(_largest_seqno), 29724: smallestkey(_smallestkey), 29724: largestkey(_largestkey), 29724: num_reads_sampled(_num_reads_sampled), 29724: being_compacted(_being_compacted), 29724: num_entries(0), 29724: num_deletions(0), 29724: oldest_blob_file_number(_oldest_blob_file_number), 29724: oldest_ancester_time(_oldest_ancester_time), 29724: file_creation_time(_file_creation_time), 29724: epoch_number(_epoch_number) { 29724: if (!_file_name.empty()) { 29724: if (_file_name[0] == '/') { 29724: relative_filename = _file_name.substr(1); 29724: name = _file_name; 29724: } else { 29724: relative_filename = _file_name; 29724: name = std::string("/") + _file_name; 29724: } 29724: 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: (static_cast ( 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: relative_filename.size() + 1 == name.size() 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: "relative_filename.size() + 1 == name.size()" 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: ; 29724: 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: (static_cast ( 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: relative_filename[0] != '/' 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: "relative_filename[0] != '/'" 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: ; 29724: 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: (static_cast ( 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: name[0] == '/' 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: "name[0] == '/'" 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: ; 29724: } 29724: directory = _directory; 29724: db_path = _directory; 29724: file_number = _file_number; 29724: file_type = kTableFile; 29724: size = _size; 29724: temperature = _temperature; 29724: file_checksum = _file_checksum; 29724: file_checksum_func_name = _file_checksum_func_name; 29724: } 29724: 29724: SequenceNumber smallest_seqno = 0; 29724: SequenceNumber largest_seqno = 0; 29724: std::string smallestkey; 29724: std::string largestkey; 29724: uint64_t num_reads_sampled = 0; 29724: bool being_compacted = 29724: false; 29724: 29724: uint64_t num_entries = 0; 29724: uint64_t num_deletions = 0; 29724: 29724: uint64_t oldest_blob_file_number = 0; 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: uint64_t oldest_ancester_time = 0; 29724: 29724: 29724: uint64_t file_creation_time = 0; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t epoch_number = 0; 29724: 29724: 29724: 29724: 29724: std::string smallest{}; 29724: std::string largest{}; 29724: 29724: 29724: 29724: 29724: std::string name; 29724: 29724: 29724: std::string db_path; 29724: }; 29724: 29724: 29724: struct LiveFileMetaData : SstFileMetaData { 29724: std::string column_family_name; 29724: int level; 29724: LiveFileMetaData() : column_family_name(), level(0) {} 29724: }; 29724: 29724: 29724: struct BlobMetaData { 29724: BlobMetaData() 29724: : blob_file_number(0), 29724: blob_file_size(0), 29724: total_blob_count(0), 29724: total_blob_bytes(0), 29724: garbage_blob_count(0), 29724: garbage_blob_bytes(0) {} 29724: 29724: BlobMetaData(uint64_t _file_number, const std::string& _file_name, 29724: const std::string& _file_path, uint64_t _file_size, 29724: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 29724: uint64_t _garbage_blob_count, uint64_t _garbage_blob_bytes, 29724: const std::string& _file_checksum, 29724: const std::string& _file_checksum_func_name) 29724: : blob_file_number(_file_number), 29724: blob_file_name(_file_name), 29724: blob_file_path(_file_path), 29724: blob_file_size(_file_size), 29724: total_blob_count(_total_blob_count), 29724: total_blob_bytes(_total_blob_bytes), 29724: garbage_blob_count(_garbage_blob_count), 29724: garbage_blob_bytes(_garbage_blob_bytes), 29724: checksum_method(_file_checksum), 29724: checksum_value(_file_checksum_func_name) {} 29724: uint64_t blob_file_number; 29724: std::string blob_file_name; 29724: std::string blob_file_path; 29724: uint64_t blob_file_size; 29724: uint64_t total_blob_count; 29724: uint64_t total_blob_bytes; 29724: uint64_t garbage_blob_count; 29724: uint64_t garbage_blob_bytes; 29724: std::string checksum_method; 29724: std::string checksum_value; 29724: }; 29724: 29724: 29724: struct LevelMetaData { 29724: LevelMetaData(int _level, uint64_t _size, 29724: const std::vector&& _files) 29724: : level(_level), size(_size), files(_files) {} 29724: 29724: 29724: const int level; 29724: 29724: 29724: const uint64_t size; 29724: 29724: const std::vector files; 29724: }; 29724: 29724: 29724: struct ColumnFamilyMetaData { 29724: ColumnFamilyMetaData() : size(0), file_count(0), name("") {} 29724: ColumnFamilyMetaData(const std::string& _name, uint64_t _size, 29724: const std::vector&& _levels) 29724: : size(_size), name(_name), levels(_levels) {} 29724: 29724: 29724: 29724: uint64_t size; 29724: 29724: size_t file_count; 29724: 29724: std::string name; 29724: 29724: std::vector levels; 29724: 29724: 29724: uint64_t blob_file_size = 0; 29724: 29724: size_t blob_file_count = 0; 29724: 29724: std::vector blob_files; 29724: }; 29724: 29724: 29724: 29724: struct ExportImportFilesMetaData { 29724: std::string db_comparator_name; 29724: std::vector files; 29724: }; 29724: } 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/snapshot.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class DB; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class Snapshot { 29724: public: 29724: virtual SequenceNumber GetSequenceNumber() const = 0; 29724: 29724: 29724: 29724: virtual int64_t GetUnixTime() const = 0; 29724: 29724: virtual uint64_t GetTimestamp() const = 0; 29724: 29724: protected: 29724: virtual ~Snapshot(); 29724: }; 29724: 29724: 29724: 29724: 29724: class ManagedSnapshot { 29724: public: 29724: explicit ManagedSnapshot(DB* db); 29724: 29724: 29724: ManagedSnapshot(DB* db, const Snapshot* _snapshot); 29724: 29724: ~ManagedSnapshot(); 29724: 29724: const Snapshot* snapshot(); 29724: 29724: private: 29724: DB* db_; 29724: const Snapshot* snapshot_; 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29724: namespace rocksdb { 29724: 29724: class Comparator; 29724: 29724: 29724: 29724: struct ExternalSstFileInfo { 29724: ExternalSstFileInfo() 29724: : file_path(""), 29724: smallest_key(""), 29724: largest_key(""), 29724: smallest_range_del_key(""), 29724: largest_range_del_key(""), 29724: file_checksum(""), 29724: file_checksum_func_name(""), 29724: sequence_number(0), 29724: file_size(0), 29724: num_entries(0), 29724: num_range_del_entries(0), 29724: version(0) {} 29724: 29724: ExternalSstFileInfo(const std::string& _file_path, 29724: const std::string& _smallest_key, 29724: const std::string& _largest_key, 29724: SequenceNumber _sequence_number, uint64_t _file_size, 29724: uint64_t _num_entries, int32_t _version) 29724: : file_path(_file_path), 29724: smallest_key(_smallest_key), 29724: largest_key(_largest_key), 29724: smallest_range_del_key(""), 29724: largest_range_del_key(""), 29724: file_checksum(""), 29724: file_checksum_func_name(""), 29724: sequence_number(_sequence_number), 29724: file_size(_file_size), 29724: num_entries(_num_entries), 29724: num_range_del_entries(0), 29724: version(_version) {} 29724: 29724: std::string file_path; 29724: std::string smallest_key; 29724: std::string largest_key; 29724: std::string 29724: smallest_range_del_key; 29724: std::string largest_range_del_key; 29724: std::string file_checksum; 29724: std::string file_checksum_func_name; 29724: SequenceNumber sequence_number; 29724: uint64_t file_size; 29724: uint64_t num_entries; 29724: uint64_t num_range_del_entries; 29724: int32_t version; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class SstFileWriter { 29724: public: 29724: # 95 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29724: SstFileWriter(const EnvOptions& env_options, const Options& options, 29724: ColumnFamilyHandle* column_family = nullptr, 29724: bool invalidate_page_cache = true, 29724: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 29724: bool skip_filters = false) 29724: : SstFileWriter(env_options, options, options.comparator, column_family, 29724: invalidate_page_cache, io_priority, skip_filters) {} 29724: 29724: 29724: SstFileWriter(const EnvOptions& env_options, const Options& options, 29724: const Comparator* user_comparator, 29724: ColumnFamilyHandle* column_family = nullptr, 29724: bool invalidate_page_cache = true, 29724: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 29724: bool skip_filters = false); 29724: 29724: ~SstFileWriter(); 29724: 29724: 29724: Status Open(const std::string& file_path, 29724: Temperature temp = Temperature::kUnknown); 29724: 29724: 29724: 29724: 29724: 29724: __attribute__((__deprecated__)) Status Add(const Slice& user_key, const Slice& value); 29724: 29724: 29724: 29724: 29724: 29724: Status Put(const Slice& user_key, const Slice& value); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status Put(const Slice& user_key, const Slice& timestamp, const Slice& value); 29724: 29724: 29724: 29724: Status PutEntity(const Slice& user_key, const WideColumns& columns); 29724: 29724: 29724: 29724: 29724: 29724: Status Merge(const Slice& user_key, const Slice& value); 29724: 29724: 29724: 29724: 29724: 29724: Status Delete(const Slice& user_key); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status Delete(const Slice& user_key, const Slice& timestamp); 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29724: Status DeleteRange(const Slice& begin_key, const Slice& end_key); 29724: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29724: Status DeleteRange(const Slice& begin_key, const Slice& end_key, 29724: const Slice& timestamp); 29724: 29724: 29724: 29724: 29724: 29724: Status Finish(ExternalSstFileInfo* file_info = nullptr); 29724: 29724: 29724: uint64_t FileSize(); 29724: 29724: 29724: static bool CreatedBySstFileWriter(const TableProperties&); 29724: 29724: private: 29724: void InvalidatePageCache(bool closing); 29724: struct Rep; 29724: std::unique_ptr rep_; 29724: }; 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/transaction_log.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 1 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class Status; 29724: class ColumnFamilyHandle; 29724: class WriteBatch; 29724: struct SliceParts; 29724: 29724: 29724: 29724: 29724: class WriteBatchBase { 29724: public: 29724: virtual ~WriteBatchBase() {} 29724: 29724: 29724: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) = 0; 29724: virtual Status Put(const Slice& key, const Slice& value) = 0; 29724: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts, const Slice& value) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 29724: const SliceParts& value); 29724: virtual Status Put(const SliceParts& key, const SliceParts& value); 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29724: virtual Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value, uint64_t write_unix_time) = 0; 29724: 29724: 29724: 29724: virtual Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 29724: const WideColumns& columns) = 0; 29724: 29724: 29724: 29724: virtual Status PutEntity(const Slice& key, 29724: const AttributeGroups& attribute_groups) = 0; 29724: 29724: 29724: 29724: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) = 0; 29724: virtual Status Merge(const Slice& key, const Slice& value) = 0; 29724: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts, const Slice& value) = 0; 29724: 29724: 29724: virtual Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 29724: const SliceParts& value); 29724: virtual Status Merge(const SliceParts& key, const SliceParts& value); 29724: 29724: 29724: virtual Status Delete(ColumnFamilyHandle* column_family, 29724: const Slice& key) = 0; 29724: virtual Status Delete(const Slice& key) = 0; 29724: virtual Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts) = 0; 29724: 29724: 29724: virtual Status Delete(ColumnFamilyHandle* column_family, 29724: const SliceParts& key); 29724: virtual Status Delete(const SliceParts& key); 29724: 29724: 29724: 29724: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29724: const Slice& key) = 0; 29724: virtual Status SingleDelete(const Slice& key) = 0; 29724: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29724: const Slice& key, const Slice& ts) = 0; 29724: 29724: 29724: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29724: const SliceParts& key); 29724: virtual Status SingleDelete(const SliceParts& key); 29724: 29724: 29724: 29724: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29724: const Slice& begin_key, const Slice& end_key) = 0; 29724: virtual Status DeleteRange(const Slice& begin_key, const Slice& end_key) = 0; 29724: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29724: const Slice& begin_key, const Slice& end_key, 29724: const Slice& ts) = 0; 29724: 29724: 29724: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29724: const SliceParts& begin_key, 29724: const SliceParts& end_key); 29724: virtual Status DeleteRange(const SliceParts& begin_key, 29724: const SliceParts& end_key); 29724: # 135 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29724: virtual Status PutLogData(const Slice& blob) = 0; 29724: 29724: 29724: virtual void Clear() = 0; 29724: 29724: 29724: 29724: 29724: virtual WriteBatch* GetWriteBatch() = 0; 29724: 29724: 29724: 29724: virtual void SetSavePoint() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status RollbackToSavePoint() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status PopSavePoint() = 0; 29724: 29724: 29724: virtual void SetMaxBytes(size_t max_bytes) = 0; 29724: }; 29724: 29724: } 29724: # 37 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class ColumnFamilyHandle; 29724: struct SavePoints; 29724: struct SliceParts; 29724: 29724: struct SavePoint { 29724: size_t size; 29724: uint32_t count; 29724: uint32_t content_flags; 29724: 29724: SavePoint() : size(0), count(0), content_flags(0) {} 29724: 29724: SavePoint(size_t _size, uint32_t _count, uint32_t _flags) 29724: : size(_size), count(_count), content_flags(_flags) {} 29724: 29724: void clear() { 29724: size = 0; 29724: count = 0; 29724: content_flags = 0; 29724: } 29724: 29724: bool is_cleared() const { return (size | count | content_flags) == 0; } 29724: }; 29724: 29724: class WriteBatch : public WriteBatchBase { 29724: public: 29724: explicit WriteBatch(size_t reserved_bytes = 0, size_t max_bytes = 0) 29724: : WriteBatch(reserved_bytes, max_bytes, 0, 0) {} 29724: 29724: 29724: 29724: 29724: explicit WriteBatch(size_t reserved_bytes, size_t max_bytes, 29724: size_t protection_bytes_per_key, size_t default_cf_ts_sz); 29724: ~WriteBatch() override; 29724: 29724: using WriteBatchBase::Put; 29724: 29724: 29724: 29724: 29724: 29724: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) override; 29724: Status Put(const Slice& key, const Slice& value) override { 29724: return Put(nullptr, key, value); 29724: } 29724: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts, const Slice& value) override; 29724: # 97 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 29724: const SliceParts& value) override; 29724: Status Put(const SliceParts& key, const SliceParts& value) override { 29724: return Put(nullptr, key, value); 29724: } 29724: 29724: using WriteBatchBase::TimedPut; 29724: 29724: 29724: 29724: 29724: Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value, uint64_t write_unix_time) override; 29724: 29724: 29724: 29724: using WriteBatchBase::PutEntity; 29724: Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 29724: const WideColumns& columns) override; 29724: 29724: 29724: 29724: Status PutEntity(const Slice& key, 29724: const AttributeGroups& attribute_groups) override; 29724: 29724: using WriteBatchBase::Delete; 29724: 29724: 29724: 29724: 29724: 29724: Status Delete(ColumnFamilyHandle* column_family, const Slice& key) override; 29724: Status Delete(const Slice& key) override { return Delete(nullptr, key); } 29724: Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts) override; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status Delete(ColumnFamilyHandle* column_family, 29724: const SliceParts& key) override; 29724: Status Delete(const SliceParts& key) override { return Delete(nullptr, key); } 29724: 29724: using WriteBatchBase::SingleDelete; 29724: 29724: Status SingleDelete(ColumnFamilyHandle* column_family, 29724: const Slice& key) override; 29724: Status SingleDelete(const Slice& key) override { 29724: return SingleDelete(nullptr, key); 29724: } 29724: Status SingleDelete(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts) override; 29724: 29724: 29724: Status SingleDelete(ColumnFamilyHandle* column_family, 29724: const SliceParts& key) override; 29724: Status SingleDelete(const SliceParts& key) override { 29724: return SingleDelete(nullptr, key); 29724: } 29724: 29724: using WriteBatchBase::DeleteRange; 29724: 29724: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 29724: const Slice& end_key) override; 29724: Status DeleteRange(const Slice& begin_key, const Slice& end_key) override { 29724: return DeleteRange(nullptr, begin_key, end_key); 29724: } 29724: 29724: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 29724: const Slice& end_key, const Slice& ts) override; 29724: 29724: 29724: Status DeleteRange(ColumnFamilyHandle* column_family, 29724: const SliceParts& begin_key, 29724: const SliceParts& end_key) override; 29724: Status DeleteRange(const SliceParts& begin_key, 29724: const SliceParts& end_key) override { 29724: return DeleteRange(nullptr, begin_key, end_key); 29724: } 29724: 29724: using WriteBatchBase::Merge; 29724: 29724: 29724: Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) override; 29724: Status Merge(const Slice& key, const Slice& value) override { 29724: return Merge(nullptr, key, value); 29724: } 29724: Status Merge(ColumnFamilyHandle* , const Slice& , 29724: const Slice& , const Slice& ) override; 29724: 29724: 29724: Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 29724: const SliceParts& value) override; 29724: Status Merge(const SliceParts& key, const SliceParts& value) override { 29724: return Merge(nullptr, key, value); 29724: } 29724: 29724: using WriteBatchBase::PutLogData; 29724: # 208 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: Status PutLogData(const Slice& blob) override; 29724: 29724: using WriteBatchBase::Clear; 29724: 29724: 29724: 29724: void Clear() override; 29724: 29724: 29724: 29724: void SetSavePoint() override; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status RollbackToSavePoint() override; 29724: 29724: 29724: 29724: 29724: 29724: Status PopSavePoint() override; 29724: 29724: 29724: 29724: class Handler { 29724: public: 29724: virtual ~Handler(); 29724: # 246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: virtual Status PutCF(uint32_t column_family_id, const Slice& key, 29724: const Slice& value) { 29724: if (column_family_id == 0) { 29724: 29724: 29724: 29724: Put(key, value); 29724: return Status::OK(); 29724: } 29724: return Status::InvalidArgument( 29724: "non-default column family and PutCF not implemented"); 29724: } 29724: 29724: virtual void Put(const Slice& , const Slice& ) {} 29724: 29724: 29724: virtual Status TimedPutCF(uint32_t , 29724: const Slice& , const Slice& , 29724: uint64_t ) { 29724: return Status::InvalidArgument("TimedPutCF not implemented"); 29724: } 29724: 29724: 29724: virtual Status PutEntityCF(uint32_t , 29724: const Slice& , 29724: const Slice& ) { 29724: return Status::NotSupported("PutEntityCF not implemented"); 29724: } 29724: 29724: 29724: virtual Status DeleteCF(uint32_t column_family_id, const Slice& key) { 29724: if (column_family_id == 0) { 29724: Delete(key); 29724: return Status::OK(); 29724: } 29724: return Status::InvalidArgument( 29724: "non-default column family and DeleteCF not implemented"); 29724: } 29724: 29724: virtual void Delete(const Slice& ) {} 29724: 29724: 29724: virtual Status SingleDeleteCF(uint32_t column_family_id, const Slice& key) { 29724: if (column_family_id == 0) { 29724: SingleDelete(key); 29724: return Status::OK(); 29724: } 29724: return Status::InvalidArgument( 29724: "non-default column family and SingleDeleteCF not implemented"); 29724: } 29724: 29724: virtual void SingleDelete(const Slice& ) {} 29724: 29724: 29724: 29724: virtual Status DeleteRangeCF(uint32_t , 29724: const Slice& , 29724: const Slice& ) { 29724: return Status::InvalidArgument("DeleteRangeCF not implemented"); 29724: } 29724: 29724: 29724: virtual Status MergeCF(uint32_t column_family_id, const Slice& key, 29724: const Slice& value) { 29724: if (column_family_id == 0) { 29724: Merge(key, value); 29724: return Status::OK(); 29724: } 29724: return Status::InvalidArgument( 29724: "non-default column family and MergeCF not implemented"); 29724: } 29724: 29724: virtual void Merge(const Slice& , const Slice& ) {} 29724: 29724: 29724: virtual Status PutBlobIndexCF(uint32_t , 29724: const Slice& , 29724: const Slice& ) { 29724: return Status::InvalidArgument("PutBlobIndexCF not implemented"); 29724: } 29724: 29724: 29724: virtual void LogData(const Slice& blob); 29724: 29724: virtual Status MarkBeginPrepare(bool = false) { 29724: return Status::InvalidArgument("MarkBeginPrepare() handler not defined."); 29724: } 29724: 29724: virtual Status MarkEndPrepare(const Slice& ) { 29724: return Status::InvalidArgument("MarkEndPrepare() handler not defined."); 29724: } 29724: 29724: virtual Status MarkNoop(bool ) { 29724: return Status::InvalidArgument("MarkNoop() handler not defined."); 29724: } 29724: 29724: virtual Status MarkRollback(const Slice& ) { 29724: return Status::InvalidArgument( 29724: "MarkRollbackPrepare() handler not defined."); 29724: } 29724: 29724: virtual Status MarkCommit(const Slice& ) { 29724: return Status::InvalidArgument("MarkCommit() handler not defined."); 29724: } 29724: 29724: virtual Status MarkCommitWithTimestamp(const Slice& , 29724: const Slice& ) { 29724: return Status::InvalidArgument( 29724: "MarkCommitWithTimestamp() handler not defined."); 29724: } 29724: 29724: 29724: 29724: 29724: virtual bool Continue(); 29724: 29724: protected: 29724: friend class WriteBatchInternal; 29724: enum class OptionState { 29724: kUnknown, 29724: kDisabled, 29724: kEnabled, 29724: }; 29724: virtual OptionState WriteAfterCommit() const { 29724: return OptionState::kUnknown; 29724: } 29724: virtual OptionState WriteBeforePrepare() const { 29724: return OptionState::kUnknown; 29724: } 29724: }; 29724: Status Iterate(Handler* handler) const; 29724: 29724: 29724: const std::string& Data() const { return rep_; } 29724: 29724: 29724: std::string Release(); 29724: 29724: 29724: size_t GetDataSize() const { return rep_.size(); } 29724: 29724: 29724: uint32_t Count() const; 29724: 29724: 29724: bool HasPut() const; 29724: 29724: 29724: bool HasTimedPut() const; 29724: 29724: 29724: bool HasPutEntity() const; 29724: 29724: 29724: bool HasDelete() const; 29724: 29724: 29724: bool HasSingleDelete() const; 29724: 29724: 29724: bool HasDeleteRange() const; 29724: 29724: 29724: bool HasMerge() const; 29724: 29724: 29724: bool HasBeginPrepare() const; 29724: 29724: 29724: bool HasEndPrepare() const; 29724: 29724: 29724: bool HasCommit() const; 29724: 29724: 29724: bool HasRollback() const; 29724: # 439 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: Status UpdateTimestamps(const Slice& ts, 29724: std::function ts_sz_func); 29724: 29724: 29724: 29724: 29724: 29724: void SetTrackTimestampSize(bool track_timestamp_size) { 29724: track_timestamp_size_ = track_timestamp_size; 29724: } 29724: 29724: inline void MaybeTrackTimestampSize(uint32_t column_family_id, size_t ts_sz) { 29724: if (!track_timestamp_size_) { 29724: return; 29724: } 29724: auto iter = cf_id_to_ts_sz_.find(column_family_id); 29724: if (iter == cf_id_to_ts_sz_.end()) { 29724: cf_id_to_ts_sz_.emplace(column_family_id, ts_sz); 29724: } 29724: } 29724: 29724: 29724: 29724: const std::unordered_map& GetColumnFamilyToTimestampSize() { 29724: return cf_id_to_ts_sz_; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: Status VerifyChecksum() const; 29724: 29724: using WriteBatchBase::GetWriteBatch; 29724: WriteBatch* GetWriteBatch() override { return this; } 29724: 29724: 29724: explicit WriteBatch(const std::string& rep); 29724: explicit WriteBatch(std::string&& rep); 29724: 29724: WriteBatch(const WriteBatch& src); 29724: WriteBatch(WriteBatch&& src) noexcept; 29724: WriteBatch& operator=(const WriteBatch& src); 29724: WriteBatch& operator=(WriteBatch&& src); 29724: 29724: 29724: 29724: void MarkWalTerminationPoint(); 29724: const SavePoint& GetWalTerminationPoint() const { return wal_term_point_; } 29724: 29724: void SetMaxBytes(size_t max_bytes) override { max_bytes_ = max_bytes; } 29724: 29724: struct ProtectionInfo; 29724: size_t GetProtectionBytesPerKey() const; 29724: 29724: private: 29724: friend class WriteBatchInternal; 29724: friend class LocalSavePoint; 29724: 29724: 29724: 29724: friend class WriteBatchWithIndex; 29724: std::unique_ptr save_points_; 29724: 29724: 29724: 29724: 29724: SavePoint wal_term_point_; 29724: 29724: 29724: 29724: 29724: 29724: bool is_latest_persistent_state_ = false; 29724: # 521 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: bool needs_in_place_update_ts_ = false; 29724: 29724: 29724: 29724: bool has_key_with_ts_ = false; 29724: 29724: 29724: mutable std::atomic content_flags_; 29724: 29724: 29724: uint32_t ComputeContentFlags() const; 29724: 29724: 29724: size_t max_bytes_; 29724: 29724: std::unique_ptr prot_info_; 29724: 29724: size_t default_cf_ts_sz_ = 0; 29724: 29724: bool track_timestamp_size_ = false; 29724: 29724: std::unordered_map cf_id_to_ts_sz_; 29724: 29724: protected: 29724: std::string rep_; 29724: }; 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/transaction_log.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class WalFile; 29724: using VectorWalPtr = std::vector>; 29724: 29724: using VectorLogPtr = VectorWalPtr; 29724: 29724: enum WalFileType { 29724: 29724: 29724: 29724: 29724: 29724: 29724: kArchivedLogFile = 0, 29724: 29724: 29724: kAliveLogFile = 1 29724: }; 29724: 29724: class WalFile { 29724: public: 29724: WalFile() {} 29724: virtual ~WalFile() {} 29724: 29724: 29724: 29724: 29724: virtual std::string PathName() const = 0; 29724: 29724: 29724: 29724: virtual uint64_t LogNumber() const = 0; 29724: 29724: 29724: virtual WalFileType Type() const = 0; 29724: 29724: 29724: virtual SequenceNumber StartSequence() const = 0; 29724: 29724: 29724: 29724: virtual uint64_t SizeFileBytes() const = 0; 29724: }; 29724: 29724: 29724: using LogFile = WalFile; 29724: 29724: struct BatchResult { 29724: SequenceNumber sequence = 0; 29724: std::unique_ptr writeBatchPtr; 29724: 29724: 29724: 29724: 29724: BatchResult() {} 29724: 29724: ~BatchResult() {} 29724: 29724: BatchResult(const BatchResult&) = delete; 29724: 29724: BatchResult& operator=(const BatchResult&) = delete; 29724: 29724: BatchResult(BatchResult&& bResult) 29724: : sequence(std::move(bResult.sequence)), 29724: writeBatchPtr(std::move(bResult.writeBatchPtr)) {} 29724: 29724: BatchResult& operator=(BatchResult&& bResult) { 29724: sequence = std::move(bResult.sequence); 29724: writeBatchPtr = std::move(bResult.writeBatchPtr); 29724: return *this; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: class TransactionLogIterator { 29724: public: 29724: TransactionLogIterator() {} 29724: virtual ~TransactionLogIterator() {} 29724: 29724: 29724: 29724: 29724: virtual bool Valid() = 0; 29724: 29724: 29724: 29724: virtual void Next() = 0; 29724: 29724: 29724: 29724: virtual Status status() = 0; 29724: 29724: 29724: 29724: 29724: virtual BatchResult GetBatch() = 0; 29724: 29724: 29724: struct ReadOptions { 29724: 29724: 29724: 29724: bool verify_checksums_; 29724: 29724: ReadOptions() : verify_checksums_(true) {} 29724: 29724: explicit ReadOptions(bool verify_checksums) 29724: : verify_checksums_(verify_checksums) {} 29724: }; 29724: }; 29724: } 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/user_write_callback.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class UserWriteCallback { 29724: public: 29724: virtual ~UserWriteCallback() {} 29724: 29724: 29724: virtual void OnWriteEnqueued() = 0; 29724: 29724: 29724: virtual void OnWalWriteFinish() = 0; 29724: }; 29724: 29724: } 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: class CompactOnDeletionCollectorFactory 29724: : public TablePropertiesCollectorFactory { 29724: public: 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29724: CompactOnDeletionCollectorFactory(size_t sliding_window_size, 29724: size_t deletion_trigger, 29724: double deletion_ratio); 29724: 29724: ~CompactOnDeletionCollectorFactory() override {} 29724: 29724: TablePropertiesCollector* CreateTablePropertiesCollector( 29724: TablePropertiesCollectorFactory::Context context) override; 29724: 29724: 29724: 29724: void SetWindowSize(size_t sliding_window_size) { 29724: sliding_window_size_.store(sliding_window_size); 29724: } 29724: size_t GetWindowSize() const { return sliding_window_size_.load(); } 29724: 29724: 29724: void SetDeletionTrigger(size_t deletion_trigger) { 29724: deletion_trigger_.store(deletion_trigger); 29724: } 29724: 29724: size_t GetDeletionTrigger() const { return deletion_trigger_.load(); } 29724: 29724: 29724: 29724: void SetDeletionRatio(double deletion_ratio) { 29724: deletion_ratio_.store(deletion_ratio); 29724: } 29724: 29724: double GetDeletionRatio() const { return deletion_ratio_.load(); } 29724: static const char* kClassName() { return "CompactOnDeletionCollector"; } 29724: const char* Name() const override { return kClassName(); } 29724: 29724: std::string ToString() const override; 29724: 29724: private: 29724: std::atomic sliding_window_size_; 29724: std::atomic deletion_trigger_; 29724: std::atomic deletion_ratio_; 29724: }; 29724: # 85 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29724: std::shared_ptr 29724: NewCompactOnDeletionCollectorFactory(size_t sliding_window_size, 29724: size_t deletion_trigger, 29724: double deletion_ratio = 0); 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29724: class CompactForTieringCollectorFactory 29724: : public TablePropertiesCollectorFactory { 29724: public: 29724: 29724: 29724: 29724: CompactForTieringCollectorFactory(double compaction_trigger_ratio); 29724: 29724: ~CompactForTieringCollectorFactory() override {} 29724: 29724: TablePropertiesCollector* CreateTablePropertiesCollector( 29724: TablePropertiesCollectorFactory::Context context) override; 29724: 29724: void SetCompactionTriggerRatio(double new_ratio) { 29724: compaction_trigger_ratio_.store(new_ratio); 29724: } 29724: 29724: double GetCompactionTriggerRatio() const { 29724: return compaction_trigger_ratio_.load(); 29724: } 29724: 29724: static const char* kClassName() { return "CompactForTieringCollector"; } 29724: const char* Name() const override { return kClassName(); } 29724: 29724: std::string ToString() const override; 29724: 29724: private: 29724: std::atomic compaction_trigger_ratio_; 29724: }; 29724: 29724: std::shared_ptr 29724: NewCompactForTieringCollectorFactory(double compaction_trigger_ratio); 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct DataCollectionUnixWriteTimeInfo { 29724: 29724: uint64_t min_write_time = 0; 29724: 29724: uint64_t max_write_time = 0; 29724: 29724: uint64_t average_write_time = 0; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t num_entries_infinitely_old = 0; 29724: 29724: 29724: uint64_t num_entries_write_time_aggregated = 0; 29724: 29724: 29724: uint64_t num_entries_write_time_untracked = 0; 29724: 29724: DataCollectionUnixWriteTimeInfo() {} 29724: 29724: DataCollectionUnixWriteTimeInfo(uint64_t _min_write_time, 29724: uint64_t _max_write_time, 29724: uint64_t _average_write_time, 29724: uint64_t _num_entries_infinitely_old, 29724: uint64_t _num_entries_write_time_aggregated, 29724: uint64_t _num_entries_write_time_untracked) 29724: : min_write_time(_min_write_time), 29724: max_write_time(_max_write_time), 29724: average_write_time(_average_write_time), 29724: num_entries_infinitely_old(_num_entries_infinitely_old), 29724: num_entries_write_time_aggregated(_num_entries_write_time_aggregated), 29724: num_entries_write_time_untracked(_num_entries_write_time_untracked) {} 29724: 29724: 29724: 29724: bool DataCollectionIsEmpty() const { 29724: return num_entries_infinitely_old == 0 && 29724: num_entries_write_time_aggregated == 0 && 29724: num_entries_write_time_untracked == 0; 29724: } 29724: # 193 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29724: double TrackedDataRatio() const { 29724: if (DataCollectionIsEmpty()) { 29724: return 0; 29724: } 29724: uint64_t num_entries_write_time_tracked = 29724: num_entries_infinitely_old + num_entries_write_time_aggregated; 29724: return num_entries_write_time_tracked / 29724: static_cast(num_entries_write_time_tracked + 29724: num_entries_write_time_untracked); 29724: } 29724: 29724: 29724: bool HasInfinitelyOldData() const { return num_entries_infinitely_old > 0; } 29724: }; 29724: 29724: 29724: 29724: Status GetDataCollectionUnixWriteTimeInfoForFile( 29724: const std::shared_ptr& table_properties, 29724: std::unique_ptr* file_info); 29724: 29724: 29724: 29724: Status GetDataCollectionUnixWriteTimeInfoForLevels( 29724: const std::vector>& 29724: levels_table_properties, 29724: std::vector>* levels_info); 29724: } 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: # 47 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: namespace rocksdb { 29724: 29724: struct ColumnFamilyOptions; 29724: struct CompactionOptions; 29724: struct CompactRangeOptions; 29724: struct DBOptions; 29724: struct ExternalSstFileInfo; 29724: struct FlushOptions; 29724: struct Options; 29724: struct ReadOptions; 29724: struct TableProperties; 29724: struct WriteOptions; 29724: struct WaitForCompactOptions; 29724: class Env; 29724: class EventListener; 29724: class FileSystem; 29724: class Replayer; 29724: class StatsHistoryIterator; 29724: class TraceReader; 29724: class TraceWriter; 29724: class WriteBatch; 29724: 29724: extern const std::string kDefaultColumnFamilyName; 29724: extern const std::string kPersistentStatsColumnFamilyName; 29724: struct ColumnFamilyDescriptor { 29724: std::string name; 29724: ColumnFamilyOptions options; 29724: ColumnFamilyDescriptor() 29724: : name(kDefaultColumnFamilyName), options(ColumnFamilyOptions()) {} 29724: ColumnFamilyDescriptor(const std::string& _name, 29724: const ColumnFamilyOptions& _options) 29724: : name(_name), options(_options) {} 29724: }; 29724: 29724: class ColumnFamilyHandle { 29724: public: 29724: virtual ~ColumnFamilyHandle() {} 29724: 29724: virtual const std::string& GetName() const = 0; 29724: 29724: virtual uint32_t GetID() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetDescriptor(ColumnFamilyDescriptor* desc) = 0; 29724: 29724: 29724: virtual const Comparator* GetComparator() const = 0; 29724: }; 29724: 29724: static const int kMajorVersion = 9; 29724: static const int kMinorVersion = 10; 29724: 29724: 29724: struct Range { 29724: 29724: 29724: Slice start; 29724: Slice limit; 29724: 29724: Range() {} 29724: Range(const Slice& s, const Slice& l) : start(s), limit(l) {} 29724: }; 29724: 29724: struct RangePtr { 29724: 29724: 29724: const Slice* start; 29724: const Slice* limit; 29724: 29724: RangePtr() : start(nullptr), limit(nullptr) {} 29724: RangePtr(const Slice* s, const Slice* l) : start(s), limit(l) {} 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct IngestExternalFileArg { 29724: ColumnFamilyHandle* column_family = nullptr; 29724: std::vector external_files; 29724: IngestExternalFileOptions options; 29724: std::vector files_checksums; 29724: std::vector files_checksum_func_names; 29724: 29724: Temperature file_temperature = Temperature::kUnknown; 29724: }; 29724: 29724: struct GetMergeOperandsOptions { 29724: using ContinueCallback = std::function; 29724: 29724: 29724: 29724: 29724: 29724: 29724: int expected_max_number_of_operands = 0; 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: ContinueCallback continue_cb; 29724: }; 29724: 29724: 29724: 29724: 29724: using TablePropertiesCollection = 29724: std::unordered_map>; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class DB { 29724: public: 29724: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status Open(const Options& options, const std::string& name, 29724: DB** dbptr); 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status Open(const DBOptions& db_options, const std::string& name, 29724: const std::vector& column_families, 29724: std::vector* handles, DB** dbptr); 29724: # 221 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenForReadOnly(const Options& options, const std::string& name, 29724: DB** dbptr, 29724: bool error_if_wal_file_exists = false); 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenForReadOnly( 29724: const DBOptions& db_options, const std::string& name, 29724: const std::vector& column_families, 29724: std::vector* handles, DB** dbptr, 29724: bool error_if_wal_file_exists = false); 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenAsSecondary(const Options& options, const std::string& name, 29724: const std::string& secondary_path, DB** dbptr); 29724: # 297 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenAsSecondary( 29724: const DBOptions& db_options, const std::string& name, 29724: const std::string& secondary_path, 29724: const std::vector& column_families, 29724: std::vector* handles, DB** dbptr); 29724: # 314 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenAsFollower(const Options& options, const std::string& name, 29724: const std::string& leader_path, 29724: std::unique_ptr* dbptr); 29724: 29724: 29724: static Status OpenAsFollower( 29724: const DBOptions& db_options, const std::string& name, 29724: const std::string& leader_path, 29724: const std::vector& column_families, 29724: std::vector* handles, std::unique_ptr* dbptr); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: static Status OpenAndCompact( 29724: const std::string& name, const std::string& output_directory, 29724: const std::string& input, std::string* output, 29724: const CompactionServiceOptionsOverride& override_options); 29724: 29724: static Status OpenAndCompact( 29724: const OpenAndCompactOptions& options, const std::string& name, 29724: const std::string& output_directory, const std::string& input, 29724: std::string* output, 29724: const CompactionServiceOptionsOverride& override_options); 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenAndTrimHistory( 29724: const DBOptions& db_options, const std::string& dbname, 29724: const std::vector& column_families, 29724: std::vector* handles, DB** dbptr, 29724: std::string trim_ts); 29724: # 367 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status Resume() { return Status::NotSupported(); } 29724: # 386 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status Close() { return Status::NotSupported(); } 29724: 29724: 29724: 29724: 29724: 29724: static Status ListColumnFamilies(const DBOptions& db_options, 29724: const std::string& name, 29724: std::vector* column_families); 29724: 29724: 29724: DB() {} 29724: 29724: DB(const DB&) = delete; 29724: void operator=(const DB&) = delete; 29724: 29724: virtual ~DB(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status CreateColumnFamily(const ColumnFamilyOptions& options, 29724: const std::string& column_family_name, 29724: ColumnFamilyHandle** handle); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status CreateColumnFamilies( 29724: const ColumnFamilyOptions& options, 29724: const std::vector& column_family_names, 29724: std::vector* handles); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status CreateColumnFamilies( 29724: const std::vector& column_families, 29724: std::vector* handles); 29724: 29724: 29724: 29724: 29724: virtual Status DropColumnFamily(ColumnFamilyHandle* column_family); 29724: 29724: 29724: 29724: 29724: 29724: virtual Status DropColumnFamilies( 29724: const std::vector& column_families); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status DestroyColumnFamilyHandle(ColumnFamilyHandle* column_family); 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Put(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) = 0; 29724: virtual Status Put(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts, const Slice& value) = 0; 29724: virtual Status Put(const WriteOptions& options, const Slice& key, 29724: const Slice& value) { 29724: return Put(options, DefaultColumnFamily(), key, value); 29724: } 29724: virtual Status Put(const WriteOptions& options, const Slice& key, 29724: const Slice& ts, const Slice& value) { 29724: return Put(options, DefaultColumnFamily(), key, ts, value); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status PutEntity(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: const WideColumns& columns); 29724: 29724: 29724: virtual Status PutEntity(const WriteOptions& options, const Slice& key, 29724: const AttributeGroups& attribute_groups); 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Delete(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice& key) = 0; 29724: virtual Status Delete(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts) = 0; 29724: virtual Status Delete(const WriteOptions& options, const Slice& key) { 29724: return Delete(options, DefaultColumnFamily(), key); 29724: } 29724: virtual Status Delete(const WriteOptions& options, const Slice& key, 29724: const Slice& ts) { 29724: return Delete(options, DefaultColumnFamily(), key, ts); 29724: } 29724: # 518 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status SingleDelete(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice& key) = 0; 29724: virtual Status SingleDelete(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice& key, const Slice& ts) = 0; 29724: virtual Status SingleDelete(const WriteOptions& options, const Slice& key) { 29724: return SingleDelete(options, DefaultColumnFamily(), key); 29724: } 29724: virtual Status SingleDelete(const WriteOptions& options, const Slice& key, 29724: const Slice& ts) { 29724: return SingleDelete(options, DefaultColumnFamily(), key, ts); 29724: } 29724: # 548 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status DeleteRange(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice& begin_key, const Slice& end_key); 29724: virtual Status DeleteRange(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice& begin_key, const Slice& end_key, 29724: const Slice& ts); 29724: virtual Status DeleteRange(const WriteOptions& options, 29724: const Slice& begin_key, const Slice& end_key) { 29724: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key); 29724: } 29724: virtual Status DeleteRange(const WriteOptions& options, 29724: const Slice& begin_key, const Slice& end_key, 29724: const Slice& ts) { 29724: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key, ts); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Merge(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) = 0; 29724: virtual Status Merge(const WriteOptions& options, const Slice& key, 29724: const Slice& value) { 29724: return Merge(options, DefaultColumnFamily(), key, value); 29724: } 29724: virtual Status Merge(const WriteOptions& , 29724: ColumnFamilyHandle* , 29724: const Slice& , const Slice& , 29724: const Slice& ); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0; 29724: 29724: 29724: 29724: virtual Status WriteWithCallback(const WriteOptions& , 29724: WriteBatch* , 29724: UserWriteCallback* ) { 29724: return Status::NotSupported( 29724: "WriteWithCallback not implemented for this interface."); 29724: } 29724: # 611 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status Get(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: PinnableSlice* value, std::string* timestamp) = 0; 29724: 29724: 29724: 29724: 29724: virtual inline Status Get(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: std::string* value, std::string* timestamp) final { 29724: 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: (static_cast ( 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: value != nullptr 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: "value != nullptr" 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: ; 29724: PinnableSlice pinnable_val(value); 29724: 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: (static_cast ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: !pinnable_val.IsPinned() 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: "!pinnable_val.IsPinned()" 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: ; 29724: auto s = Get(options, column_family, key, &pinnable_val, timestamp); 29724: if (s.ok() && pinnable_val.IsPinned()) { 29724: value->assign(pinnable_val.data(), pinnable_val.size()); 29724: } 29724: return s; 29724: } 29724: 29724: 29724: 29724: virtual Status Get(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: PinnableSlice* value) final { 29724: return Get(options, column_family, key, value, nullptr); 29724: } 29724: 29724: 29724: 29724: virtual inline Status Get(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: std::string* value) final { 29724: 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: (static_cast ( 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: value != nullptr 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: "value != nullptr" 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: ; 29724: PinnableSlice pinnable_val(value); 29724: 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: (static_cast ( 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: !pinnable_val.IsPinned() 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: "!pinnable_val.IsPinned()" 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: ; 29724: auto s = Get(options, column_family, key, &pinnable_val); 29724: if (s.ok() && pinnable_val.IsPinned()) { 29724: value->assign(pinnable_val.data(), pinnable_val.size()); 29724: } 29724: return s; 29724: } 29724: 29724: 29724: 29724: 29724: virtual Status Get(const ReadOptions& options, const Slice& key, 29724: std::string* value) final { 29724: return Get(options, DefaultColumnFamily(), key, value); 29724: } 29724: 29724: 29724: 29724: 29724: virtual Status Get(const ReadOptions& options, const Slice& key, 29724: std::string* value, std::string* timestamp) final { 29724: return Get(options, DefaultColumnFamily(), key, value, timestamp); 29724: } 29724: # 679 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetEntity(const ReadOptions& , 29724: ColumnFamilyHandle* , 29724: const Slice& , 29724: PinnableWideColumns* ) { 29724: return Status::NotSupported("GetEntity not supported"); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetEntity(const ReadOptions& , 29724: const Slice& , 29724: PinnableAttributeGroups* ) { 29724: return Status::NotSupported("GetEntity not supported"); 29724: } 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetMergeOperands( 29724: const ReadOptions& options, ColumnFamilyHandle* column_family, 29724: const Slice& key, PinnableSlice* merge_operands, 29724: GetMergeOperandsOptions* get_merge_operands_options, 29724: int* number_of_operands) = 0; 29724: # 741 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual std::vector MultiGet( 29724: const ReadOptions& options, 29724: const std::vector& column_families, 29724: const std::vector& keys, std::vector* values, 29724: std::vector* timestamps) final { 29724: size_t num_keys = keys.size(); 29724: std::vector statuses(num_keys); 29724: std::vector pin_values(num_keys); 29724: 29724: values->resize(num_keys); 29724: if (timestamps) { 29724: timestamps->resize(num_keys); 29724: } 29724: MultiGet(options, num_keys, 29724: const_cast(column_families.data()), 29724: keys.data(), pin_values.data(), 29724: timestamps ? timestamps->data() : nullptr, statuses.data(), 29724: false); 29724: for (size_t i = 0; i < num_keys; ++i) { 29724: if (statuses[i].ok()) { 29724: (*values)[i].assign(pin_values[i].data(), pin_values[i].size()); 29724: } 29724: } 29724: return statuses; 29724: } 29724: 29724: 29724: 29724: virtual std::vector MultiGet( 29724: const ReadOptions& options, 29724: const std::vector& column_family, 29724: const std::vector& keys, std::vector* values) final { 29724: values->resize(keys.size()); 29724: return MultiGet(options, column_family, keys, values, nullptr); 29724: } 29724: 29724: 29724: 29724: virtual std::vector MultiGet(const ReadOptions& options, 29724: const std::vector& keys, 29724: std::vector* values) final { 29724: values->resize(keys.size()); 29724: return MultiGet( 29724: options, 29724: std::vector(keys.size(), DefaultColumnFamily()), 29724: keys, values); 29724: } 29724: 29724: 29724: 29724: virtual std::vector MultiGet( 29724: const ReadOptions& options, const std::vector& keys, 29724: std::vector* values, 29724: std::vector* timestamps) final { 29724: values->resize(keys.size()); 29724: return MultiGet( 29724: options, 29724: std::vector(keys.size(), DefaultColumnFamily()), 29724: keys, values, timestamps); 29724: } 29724: # 830 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 29724: ColumnFamilyHandle** column_families, const Slice* keys, 29724: PinnableSlice* values, std::string* timestamps, 29724: Status* statuses, const bool sorted_input = false) = 0; 29724: 29724: 29724: 29724: virtual void MultiGet(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const size_t num_keys, const Slice* keys, 29724: PinnableSlice* values, std::string* timestamps, 29724: Status* statuses, 29724: const bool sorted_input = false) final; 29724: 29724: 29724: 29724: virtual void MultiGet(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const size_t num_keys, const Slice* keys, 29724: PinnableSlice* values, Status* statuses, 29724: const bool sorted_input = false) final { 29724: MultiGet(options, column_family, num_keys, keys, values, nullptr, statuses, 29724: sorted_input); 29724: } 29724: 29724: 29724: 29724: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 29724: ColumnFamilyHandle** column_families, const Slice* keys, 29724: PinnableSlice* values, Status* statuses, 29724: const bool sorted_input = false) final { 29724: MultiGet(options, num_keys, column_families, keys, values, nullptr, 29724: statuses, sorted_input); 29724: } 29724: # 884 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual void MultiGetEntity(const ReadOptions& , 29724: ColumnFamilyHandle* , 29724: size_t num_keys, const Slice* , 29724: PinnableWideColumns* , 29724: Status* statuses, 29724: bool = false) { 29724: for (size_t i = 0; i < num_keys; ++i) { 29724: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 29724: } 29724: } 29724: # 916 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 29724: ColumnFamilyHandle** , 29724: const Slice* , 29724: PinnableWideColumns* , 29724: Status* statuses, 29724: bool = false) { 29724: for (size_t i = 0; i < num_keys; ++i) { 29724: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 29724: } 29724: } 29724: # 944 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 29724: const Slice* , 29724: PinnableAttributeGroups* results) { 29724: for (size_t i = 0; i < num_keys; ++i) { 29724: for (size_t j = 0; j < results[i].size(); ++j) { 29724: results[i][j].SetStatus( 29724: Status::NotSupported("MultiGetEntity not supported")); 29724: } 29724: } 29724: } 29724: # 962 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual bool KeyMayExist(const ReadOptions& , 29724: ColumnFamilyHandle* , 29724: const Slice& , std::string* , 29724: std::string* , 29724: bool* value_found = nullptr) { 29724: if (value_found != nullptr) { 29724: *value_found = false; 29724: } 29724: return true; 29724: } 29724: 29724: virtual bool KeyMayExist(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: std::string* value, bool* value_found = nullptr) { 29724: return KeyMayExist(options, column_family, key, value, 29724: nullptr, value_found); 29724: } 29724: 29724: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 29724: std::string* value, bool* value_found = nullptr) { 29724: return KeyMayExist(options, DefaultColumnFamily(), key, value, value_found); 29724: } 29724: 29724: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 29724: std::string* value, std::string* timestamp, 29724: bool* value_found = nullptr) { 29724: return KeyMayExist(options, DefaultColumnFamily(), key, value, timestamp, 29724: value_found); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Iterator* NewIterator(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family) = 0; 29724: virtual Iterator* NewIterator(const ReadOptions& options) { 29724: return NewIterator(options, DefaultColumnFamily()); 29724: } 29724: 29724: 29724: 29724: virtual Status NewIterators( 29724: const ReadOptions& options, 29724: const std::vector& column_families, 29724: std::vector* iterators) = 0; 29724: # 1024 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual std::unique_ptr NewCoalescingIterator( 29724: const ReadOptions& options, 29724: const std::vector& column_families) = 0; 29724: 29724: 29724: 29724: virtual std::unique_ptr NewAttributeGroupIterator( 29724: const ReadOptions& options, 29724: const std::vector& column_families) = 0; 29724: # 1041 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual const Snapshot* GetSnapshot() = 0; 29724: 29724: 29724: 29724: virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct Properties { 29724: 29724: 29724: 29724: static const std::string kNumFilesAtLevelPrefix; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kCompressionRatioAtLevelPrefix; 29724: 29724: 29724: 29724: static const std::string kStats; 29724: 29724: 29724: 29724: static const std::string kSSTables; 29724: 29724: 29724: 29724: static const std::string kCFStats; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kCFStatsNoFileHistogram; 29724: 29724: 29724: 29724: static const std::string kCFFileHistogram; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kCFWriteStallStats; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kDBWriteStallStats; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kDBStats; 29724: 29724: 29724: 29724: static const std::string kLevelStats; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kBlockCacheEntryStats; 29724: 29724: 29724: 29724: static const std::string kFastBlockCacheEntryStats; 29724: 29724: 29724: 29724: static const std::string kNumImmutableMemTable; 29724: 29724: 29724: 29724: static const std::string kNumImmutableMemTableFlushed; 29724: 29724: 29724: 29724: static const std::string kMemTableFlushPending; 29724: 29724: 29724: 29724: static const std::string kNumRunningFlushes; 29724: 29724: 29724: 29724: static const std::string kCompactionPending; 29724: 29724: 29724: 29724: static const std::string kNumRunningCompactions; 29724: 29724: 29724: 29724: static const std::string kBackgroundErrors; 29724: 29724: 29724: 29724: static const std::string kCurSizeActiveMemTable; 29724: 29724: 29724: 29724: static const std::string kCurSizeAllMemTables; 29724: 29724: 29724: 29724: static const std::string kSizeAllMemTables; 29724: 29724: 29724: 29724: static const std::string kNumEntriesActiveMemTable; 29724: 29724: 29724: 29724: static const std::string kNumEntriesImmMemTables; 29724: 29724: 29724: 29724: static const std::string kNumDeletesActiveMemTable; 29724: 29724: 29724: 29724: static const std::string kNumDeletesImmMemTables; 29724: 29724: 29724: 29724: static const std::string kEstimateNumKeys; 29724: 29724: 29724: 29724: 29724: static const std::string kEstimateTableReadersMem; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kIsFileDeletionsEnabled; 29724: 29724: 29724: 29724: static const std::string kNumSnapshots; 29724: 29724: 29724: 29724: static const std::string kOldestSnapshotTime; 29724: 29724: 29724: 29724: static const std::string kOldestSnapshotSequence; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kNumLiveVersions; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kCurrentSuperVersionNumber; 29724: 29724: 29724: 29724: 29724: static const std::string kEstimateLiveDataSize; 29724: 29724: 29724: 29724: static const std::string kMinLogNumberToKeep; 29724: 29724: 29724: 29724: 29724: static const std::string kMinObsoleteSstNumberToKeep; 29724: 29724: 29724: 29724: 29724: static const std::string kTotalSstFilesSize; 29724: 29724: 29724: 29724: static const std::string kLiveSstFilesSize; 29724: # 1246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static const std::string kObsoleteSstFilesSize; 29724: 29724: 29724: 29724: static const std::string kLiveSstFilesSizeAtTemperature; 29724: 29724: 29724: 29724: static const std::string kBaseLevel; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kEstimatePendingCompactionBytes; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kAggregatedTableProperties; 29724: 29724: 29724: 29724: 29724: static const std::string kAggregatedTablePropertiesAtLevel; 29724: 29724: 29724: 29724: static const std::string kActualDelayedWriteRate; 29724: 29724: 29724: static const std::string kIsWriteStopped; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kEstimateOldestKeyTime; 29724: 29724: 29724: static const std::string kBlockCacheCapacity; 29724: 29724: 29724: 29724: static const std::string kBlockCacheUsage; 29724: 29724: 29724: 29724: static const std::string kBlockCachePinnedUsage; 29724: 29724: 29724: 29724: static const std::string kOptionsStatistics; 29724: 29724: 29724: 29724: static const std::string kNumBlobFiles; 29724: 29724: 29724: 29724: 29724: static const std::string kBlobStats; 29724: 29724: 29724: 29724: static const std::string kTotalBlobFileSize; 29724: 29724: 29724: 29724: static const std::string kLiveBlobFileSize; 29724: 29724: 29724: 29724: static const std::string kLiveBlobFileGarbageSize; 29724: 29724: 29724: static const std::string kBlobCacheCapacity; 29724: 29724: 29724: 29724: static const std::string kBlobCacheUsage; 29724: 29724: 29724: 29724: static const std::string kBlobCachePinnedUsage; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool GetProperty(ColumnFamilyHandle* column_family, 29724: const Slice& property, std::string* value) = 0; 29724: virtual bool GetProperty(const Slice& property, std::string* value) { 29724: return GetProperty(DefaultColumnFamily(), property, value); 29724: } 29724: 29724: 29724: 29724: virtual bool GetMapProperty(ColumnFamilyHandle* column_family, 29724: const Slice& property, 29724: std::map* value) = 0; 29724: virtual bool GetMapProperty(const Slice& property, 29724: std::map* value) { 29724: return GetMapProperty(DefaultColumnFamily(), property, value); 29724: } 29724: # 1401 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual bool GetIntProperty(ColumnFamilyHandle* column_family, 29724: const Slice& property, uint64_t* value) = 0; 29724: virtual bool GetIntProperty(const Slice& property, uint64_t* value) { 29724: return GetIntProperty(DefaultColumnFamily(), property, value); 29724: } 29724: 29724: 29724: 29724: 29724: virtual Status ResetStats() { 29724: return Status::NotSupported("Not implemented"); 29724: } 29724: 29724: 29724: 29724: virtual bool GetAggregatedIntProperty(const Slice& property, 29724: uint64_t* value) = 0; 29724: 29724: 29724: 29724: enum class SizeApproximationFlags : uint8_t { 29724: NONE = 0, 29724: INCLUDE_MEMTABLES = 1 << 0, 29724: INCLUDE_FILES = 1 << 1 29724: }; 29724: # 1434 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetApproximateSizes(const SizeApproximationOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Range* ranges, int n, 29724: uint64_t* sizes) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status GetApproximateSizes(ColumnFamilyHandle* column_family, 29724: const Range* ranges, int n, 29724: uint64_t* sizes, 29724: SizeApproximationFlags include_flags = 29724: SizeApproximationFlags::INCLUDE_FILES); 29724: 29724: virtual Status GetApproximateSizes( 29724: const Range* ranges, int n, uint64_t* sizes, 29724: SizeApproximationFlags include_flags = 29724: SizeApproximationFlags::INCLUDE_FILES) { 29724: return GetApproximateSizes(DefaultColumnFamily(), ranges, n, sizes, 29724: include_flags); 29724: } 29724: 29724: 29724: 29724: virtual void GetApproximateMemTableStats(ColumnFamilyHandle* column_family, 29724: const Range& range, 29724: uint64_t* const count, 29724: uint64_t* const size) = 0; 29724: virtual void GetApproximateMemTableStats(const Range& range, 29724: uint64_t* const count, 29724: uint64_t* const size) { 29724: GetApproximateMemTableStats(DefaultColumnFamily(), range, count, size); 29724: } 29724: # 1493 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status CompactRange(const CompactRangeOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice* begin, const Slice* end) = 0; 29724: virtual Status CompactRange(const CompactRangeOptions& options, 29724: const Slice* begin, const Slice* end) { 29724: return CompactRange(options, DefaultColumnFamily(), begin, end); 29724: } 29724: # 1519 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status SetOptions( 29724: ColumnFamilyHandle* , 29724: const std::unordered_map& ) { 29724: return Status::NotSupported("Not implemented"); 29724: } 29724: 29724: virtual Status SetOptions( 29724: const std::unordered_map& new_options) { 29724: return SetOptions(DefaultColumnFamily(), new_options); 29724: } 29724: # 1539 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status SetDBOptions( 29724: const std::unordered_map& new_options) = 0; 29724: # 1549 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status CompactFiles( 29724: const CompactionOptions& compact_options, 29724: ColumnFamilyHandle* column_family, 29724: const std::vector& input_file_names, const int output_level, 29724: const int output_path_id = -1, 29724: std::vector* const output_file_names = nullptr, 29724: CompactionJobInfo* compaction_job_info = nullptr) = 0; 29724: 29724: virtual Status CompactFiles( 29724: const CompactionOptions& compact_options, 29724: const std::vector& input_file_names, const int output_level, 29724: const int output_path_id = -1, 29724: std::vector* const output_file_names = nullptr, 29724: CompactionJobInfo* compaction_job_info = nullptr) { 29724: return CompactFiles(compact_options, DefaultColumnFamily(), 29724: input_file_names, output_level, output_path_id, 29724: output_file_names, compaction_job_info); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status PauseBackgroundWork() = 0; 29724: virtual Status ContinueBackgroundWork() = 0; 29724: # 1584 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status EnableAutoCompaction( 29724: const std::vector& column_family_handles) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void DisableManualCompaction() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void EnableManualCompaction() = 0; 29724: # 1608 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status WaitForCompact( 29724: const WaitForCompactOptions& ) = 0; 29724: 29724: 29724: virtual int NumberLevels(ColumnFamilyHandle* column_family) = 0; 29724: virtual int NumberLevels() { return NumberLevels(DefaultColumnFamily()); } 29724: 29724: 29724: 29724: virtual int MaxMemCompactionLevel(ColumnFamilyHandle* column_family) = 0; 29724: virtual int MaxMemCompactionLevel() { 29724: return MaxMemCompactionLevel(DefaultColumnFamily()); 29724: } 29724: 29724: 29724: virtual int Level0StopWriteTrigger(ColumnFamilyHandle* column_family) = 0; 29724: virtual int Level0StopWriteTrigger() { 29724: return Level0StopWriteTrigger(DefaultColumnFamily()); 29724: } 29724: 29724: 29724: 29724: virtual const std::string& GetName() const = 0; 29724: 29724: 29724: virtual Env* GetEnv() const = 0; 29724: 29724: 29724: 29724: virtual FileSystem* GetFileSystem() const; 29724: 29724: 29724: 29724: 29724: 29724: virtual Options GetOptions(ColumnFamilyHandle* column_family) const = 0; 29724: virtual Options GetOptions() const { 29724: return GetOptions(DefaultColumnFamily()); 29724: } 29724: 29724: virtual DBOptions GetDBOptions() const = 0; 29724: 29724: 29724: 29724: 29724: virtual Status Flush(const FlushOptions& options, 29724: ColumnFamilyHandle* column_family) = 0; 29724: virtual Status Flush(const FlushOptions& options) { 29724: return Flush(options, DefaultColumnFamily()); 29724: } 29724: # 1666 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status Flush( 29724: const FlushOptions& options, 29724: const std::vector& column_families) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status FlushWAL(bool ) { 29724: return Status::NotSupported("FlushWAL not implemented"); 29724: } 29724: # 1687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status SyncWAL() = 0; 29724: # 1698 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status LockWAL() { 29724: return Status::NotSupported("LockWAL not implemented"); 29724: } 29724: 29724: 29724: 29724: 29724: virtual Status UnlockWAL() { 29724: return Status::NotSupported("UnlockWAL not implemented"); 29724: } 29724: 29724: 29724: virtual SequenceNumber GetLatestSequenceNumber() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status IncreaseFullHistoryTsLow(ColumnFamilyHandle* column_family, 29724: std::string ts_low) = 0; 29724: 29724: 29724: virtual Status GetFullHistoryTsLow(ColumnFamilyHandle* column_family, 29724: std::string* ts_low) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status DisableFileDeletions() = 0; 29724: # 1740 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status EnableFileDeletions() = 0; 29724: # 1752 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetCreationTimeOfOldestFile(uint64_t* creation_time) = 0; 29724: # 1766 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetUpdatesSince( 29724: SequenceNumber seq_number, std::unique_ptr* iter, 29724: const TransactionLogIterator::ReadOptions& read_options = 29724: TransactionLogIterator::ReadOptions()) = 0; 29724: # 1784 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status DeleteFile(std::string name) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void GetLiveFilesMetaData( 29724: std::vector* ) {} 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetLiveFilesChecksumInfo(FileChecksumList* checksum_list) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetLiveFilesStorageInfo( 29724: const LiveFilesStorageInfoOptions& opts, 29724: std::vector* files) = 0; 29724: 29724: 29724: 29724: virtual void GetColumnFamilyMetaData(ColumnFamilyHandle* , 29724: ColumnFamilyMetaData* ) {} 29724: 29724: 29724: void GetColumnFamilyMetaData(ColumnFamilyMetaData* metadata) { 29724: GetColumnFamilyMetaData(DefaultColumnFamily(), metadata); 29724: } 29724: 29724: 29724: 29724: virtual void GetAllColumnFamilyMetaData( 29724: std::vector* ) {} 29724: # 1839 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetLiveFiles(std::vector&, 29724: uint64_t* manifest_file_size, 29724: bool flush_memtable = true) = 0; 29724: 29724: 29724: virtual Status GetSortedWalFiles(VectorWalPtr& files) = 0; 29724: # 1853 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetCurrentWalFile( 29724: std::unique_ptr* current_log_file) = 0; 29724: # 1897 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status IngestExternalFile( 29724: ColumnFamilyHandle* column_family, 29724: const std::vector& external_files, 29724: const IngestExternalFileOptions& options) = 0; 29724: 29724: virtual Status IngestExternalFile( 29724: const std::vector& external_files, 29724: const IngestExternalFileOptions& options) { 29724: return IngestExternalFile(DefaultColumnFamily(), external_files, options); 29724: } 29724: # 1923 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status IngestExternalFiles( 29724: const std::vector& args) = 0; 29724: # 1943 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status CreateColumnFamilyWithImport( 29724: const ColumnFamilyOptions& options, const std::string& column_family_name, 29724: const ImportColumnFamilyOptions& import_options, 29724: const ExportImportFilesMetaData& metadata, ColumnFamilyHandle** handle) { 29724: const std::vector& metadatas{&metadata}; 29724: return CreateColumnFamilyWithImport(options, column_family_name, 29724: import_options, metadatas, handle); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status CreateColumnFamilyWithImport( 29724: const ColumnFamilyOptions& options, const std::string& column_family_name, 29724: const ImportColumnFamilyOptions& import_options, 29724: const std::vector& metadatas, 29724: ColumnFamilyHandle** handle) = 0; 29724: # 1976 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status ClipColumnFamily(ColumnFamilyHandle* column_family, 29724: const Slice& begin_key, 29724: const Slice& end_key) = 0; 29724: 29724: 29724: 29724: virtual Status VerifyFileChecksums(const ReadOptions& ) { 29724: return Status::NotSupported("File verification not supported"); 29724: } 29724: 29724: 29724: 29724: virtual Status VerifyChecksum(const ReadOptions& read_options) = 0; 29724: 29724: virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); } 29724: 29724: 29724: 29724: 29724: virtual Status GetDbIdentity(std::string& identity) const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetDbSessionId(std::string& session_id) const = 0; 29724: 29724: 29724: virtual ColumnFamilyHandle* DefaultColumnFamily() const = 0; 29724: 29724: virtual Status GetPropertiesOfAllTables(ColumnFamilyHandle* column_family, 29724: TablePropertiesCollection* props) = 0; 29724: virtual Status GetPropertiesOfAllTables(TablePropertiesCollection* props) { 29724: return GetPropertiesOfAllTables(DefaultColumnFamily(), props); 29724: } 29724: virtual Status GetPropertiesOfTablesInRange( 29724: ColumnFamilyHandle* column_family, const Range* range, std::size_t n, 29724: TablePropertiesCollection* props) = 0; 29724: 29724: 29724: virtual Status GetPropertiesOfTablesForLevels( 29724: ColumnFamilyHandle* , 29724: std::vector< 29724: std::unique_ptr>* ) { 29724: return Status::NotSupported( 29724: "GetPropertiesOfTablesForLevels() is not implemented."); 29724: } 29724: 29724: virtual Status SuggestCompactRange(ColumnFamilyHandle* , 29724: const Slice* , 29724: const Slice* ) { 29724: return Status::NotSupported("SuggestCompactRange() is not implemented."); 29724: } 29724: 29724: 29724: 29724: virtual Status PromoteL0(ColumnFamilyHandle* , 29724: int ) { 29724: return Status::NotSupported("PromoteL0() is not implemented."); 29724: } 29724: 29724: 29724: virtual Status StartTrace(const TraceOptions& , 29724: std::unique_ptr&& ) { 29724: return Status::NotSupported("StartTrace() is not implemented."); 29724: } 29724: 29724: virtual Status EndTrace() { 29724: return Status::NotSupported("EndTrace() is not implemented."); 29724: } 29724: 29724: 29724: virtual Status StartIOTrace(const TraceOptions& , 29724: std::unique_ptr&& ) { 29724: return Status::NotSupported("StartIOTrace() is not implemented."); 29724: } 29724: 29724: virtual Status EndIOTrace() { 29724: return Status::NotSupported("EndIOTrace() is not implemented."); 29724: } 29724: 29724: 29724: virtual Status StartBlockCacheTrace( 29724: const TraceOptions& , 29724: std::unique_ptr&& ) { 29724: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 29724: } 29724: 29724: virtual Status StartBlockCacheTrace( 29724: const BlockCacheTraceOptions& , 29724: std::unique_ptr&& ) { 29724: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 29724: } 29724: 29724: virtual Status EndBlockCacheTrace() { 29724: return Status::NotSupported("EndBlockCacheTrace() is not implemented."); 29724: } 29724: 29724: 29724: virtual Status NewDefaultReplayer( 29724: const std::vector& , 29724: std::unique_ptr&& , 29724: std::unique_ptr* ) { 29724: return Status::NotSupported("NewDefaultReplayer() is not implemented."); 29724: } 29724: 29724: 29724: virtual DB* GetRootDB() { return this; } 29724: 29724: 29724: 29724: 29724: virtual Status GetStatsHistory( 29724: uint64_t , uint64_t , 29724: std::unique_ptr* ) { 29724: return Status::NotSupported("GetStatsHistory() is not implemented."); 29724: } 29724: # 2105 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status TryCatchUpWithPrimary() { 29724: return Status::NotSupported("Supported only by secondary instance"); 29724: } 29724: }; 29724: 29724: struct WriteStallStatsMapKeys { 29724: static const std::string& TotalStops(); 29724: static const std::string& TotalDelays(); 29724: 29724: static const std::string& CFL0FileCountLimitDelaysWithOngoingCompaction(); 29724: static const std::string& CFL0FileCountLimitStopsWithOngoingCompaction(); 29724: # 2124 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static std::string CauseConditionCount(WriteStallCause cause, 29724: WriteStallCondition condition); 29724: }; 29724: 29724: 29724: inline DB::SizeApproximationFlags operator&(DB::SizeApproximationFlags lhs, 29724: DB::SizeApproximationFlags rhs) { 29724: return static_cast(static_cast(lhs) & 29724: static_cast(rhs)); 29724: } 29724: inline DB::SizeApproximationFlags operator|(DB::SizeApproximationFlags lhs, 29724: DB::SizeApproximationFlags rhs) { 29724: return static_cast(static_cast(lhs) | 29724: static_cast(rhs)); 29724: } 29724: 29724: inline Status DB::GetApproximateSizes(ColumnFamilyHandle* column_family, 29724: const Range* ranges, int n, 29724: uint64_t* sizes, 29724: SizeApproximationFlags include_flags) { 29724: SizeApproximationOptions options; 29724: options.include_memtables = 29724: ((include_flags & SizeApproximationFlags::INCLUDE_MEMTABLES) != 29724: SizeApproximationFlags::NONE); 29724: options.include_files = 29724: ((include_flags & SizeApproximationFlags::INCLUDE_FILES) != 29724: SizeApproximationFlags::NONE); 29724: return GetApproximateSizes(options, column_family, ranges, n, sizes); 29724: } 29724: 29724: 29724: 29724: Status DestroyDB(const std::string& name, const Options& options, 29724: const std::vector& column_families = 29724: std::vector()); 29724: # 2169 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 29724: const std::vector& column_families); 29724: 29724: 29724: 29724: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 29724: const std::vector& column_families, 29724: const ColumnFamilyOptions& unknown_cf_opts); 29724: 29724: 29724: 29724: Status RepairDB(const std::string& dbname, const Options& options); 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: const std::vector empty_operand_list; 29724: 29724: 29724: 29724: 29724: 29724: class MergeContext { 29724: public: 29724: GetMergeOperandsOptions* get_merge_operands_options = nullptr; 29724: 29724: 29724: void Clear() { 29724: if (operand_list_) { 29724: operand_list_->clear(); 29724: copied_operands_->clear(); 29724: } 29724: } 29724: 29724: 29724: void PushOperand(const Slice& operand_slice, bool operand_pinned = false) { 29724: Initialize(); 29724: SetDirectionBackward(); 29724: 29724: if (operand_pinned) { 29724: operand_list_->push_back(operand_slice); 29724: } else { 29724: 29724: copied_operands_->emplace_back( 29724: new std::string(operand_slice.data(), operand_slice.size())); 29724: operand_list_->push_back(*copied_operands_->back()); 29724: } 29724: } 29724: 29724: 29724: void PushOperandBack(const Slice& operand_slice, 29724: bool operand_pinned = false) { 29724: Initialize(); 29724: SetDirectionForward(); 29724: 29724: if (operand_pinned) { 29724: operand_list_->push_back(operand_slice); 29724: } else { 29724: 29724: copied_operands_->emplace_back( 29724: new std::string(operand_slice.data(), operand_slice.size())); 29724: operand_list_->push_back(*copied_operands_->back()); 29724: } 29724: } 29724: 29724: 29724: size_t GetNumOperands() const { 29724: if (!operand_list_) { 29724: return 0; 29724: } 29724: return operand_list_->size(); 29724: } 29724: 29724: 29724: Slice GetOperand(int index) const { 29724: 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29724: (static_cast ( 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29724: operand_list_ 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29724: "operand_list_" 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29724: ; 29724: 29724: SetDirectionForward(); 29724: return (*operand_list_)[index]; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const std::vector& GetOperands() const { 29724: return GetOperandsDirectionForward(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const std::vector& GetOperandsDirectionForward() const { 29724: if (!operand_list_) { 29724: return empty_operand_list; 29724: } 29724: 29724: SetDirectionForward(); 29724: return *operand_list_; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const std::vector& GetOperandsDirectionBackward() const { 29724: if (!operand_list_) { 29724: return empty_operand_list; 29724: } 29724: 29724: SetDirectionBackward(); 29724: return *operand_list_; 29724: } 29724: 29724: private: 29724: void Initialize() { 29724: if (!operand_list_) { 29724: operand_list_.reset(new std::vector()); 29724: copied_operands_.reset(new std::vector>()); 29724: } 29724: } 29724: 29724: void SetDirectionForward() const { 29724: if (operands_reversed_ == true) { 29724: std::reverse(operand_list_->begin(), operand_list_->end()); 29724: operands_reversed_ = false; 29724: } 29724: } 29724: 29724: void SetDirectionBackward() const { 29724: if (operands_reversed_ == false) { 29724: std::reverse(operand_list_->begin(), operand_list_->end()); 29724: operands_reversed_ = true; 29724: } 29724: } 29724: 29724: 29724: mutable std::unique_ptr> operand_list_; 29724: 29724: std::unique_ptr>> copied_operands_; 29724: mutable bool operands_reversed_ = true; 29724: }; 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/iterator" 1 3 29724: # 58 "/usr/include/c++/14/iterator" 3 29724: 29724: # 59 "/usr/include/c++/14/iterator" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stream_iterator.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 40 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 50 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template, typename _Dist = ptrdiff_t> 29724: class istream_iterator 29724: : public iterator 29724: { 29724: public: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef basic_istream<_CharT, _Traits> istream_type; 29724: 29724: private: 29724: istream_type* _M_stream; 29724: _Tp _M_value; 29724: 29724: 29724: 29724: bool _M_ok; 29724: 29724: public: 29724: 29724: constexpr istream_iterator() 29724: noexcept(is_nothrow_default_constructible<_Tp>::value) 29724: : _M_stream(0), _M_value(), _M_ok(false) {} 29724: 29724: 29724: istream_iterator(istream_type& __s) 29724: : _M_stream(std::__addressof(__s)), _M_ok(true) 29724: { _M_read(); } 29724: 29724: constexpr 29724: istream_iterator(const istream_iterator& __obj) 29724: noexcept(is_nothrow_copy_constructible<_Tp>::value) 29724: : _M_stream(__obj._M_stream), _M_value(__obj._M_value), 29724: _M_ok(__obj._M_ok) 29724: { } 29724: # 98 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: istream_iterator& operator=(const istream_iterator&) = default; 29724: ~istream_iterator() = default; 29724: 29724: 29724: [[__nodiscard__]] 29724: const _Tp& 29724: operator*() const noexcept 29724: { 29724: 29724: 29724: ; 29724: return _M_value; 29724: } 29724: 29724: [[__nodiscard__]] 29724: const _Tp* 29724: operator->() const noexcept 29724: { return std::__addressof((operator*())); } 29724: 29724: istream_iterator& 29724: operator++() 29724: { 29724: 29724: 29724: ; 29724: _M_read(); 29724: return *this; 29724: } 29724: 29724: istream_iterator 29724: operator++(int) 29724: { 29724: 29724: 29724: ; 29724: istream_iterator __tmp = *this; 29724: _M_read(); 29724: return __tmp; 29724: } 29724: 29724: private: 29724: bool 29724: _M_equal(const istream_iterator& __x) const noexcept 29724: { 29724: 29724: 29724: return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); 29724: } 29724: 29724: void 29724: _M_read() 29724: { 29724: if (_M_stream && !(*_M_stream >> _M_value)) 29724: { 29724: _M_stream = 0; 29724: _M_ok = false; 29724: } 29724: } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const istream_iterator& __x, const istream_iterator& __y) 29724: noexcept 29724: { return __x._M_equal(__y); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const istream_iterator& __x, const istream_iterator& __y) 29724: noexcept 29724: { return !__x._M_equal(__y); } 29724: # 181 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: }; 29724: # 194 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: template > 29724: class ostream_iterator 29724: : public iterator 29724: { 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef basic_ostream<_CharT, _Traits> ostream_type; 29724: 29724: 29724: private: 29724: ostream_type* _M_stream; 29724: const _CharT* _M_string; 29724: 29724: public: 29724: 29724: ostream_iterator(ostream_type& __s) noexcept 29724: : _M_stream(std::__addressof(__s)), _M_string(0) {} 29724: # 229 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: ostream_iterator(ostream_type& __s, const _CharT* __c) noexcept 29724: : _M_stream(std::__addressof(__s)), _M_string(__c) { } 29724: 29724: 29724: ostream_iterator(const ostream_iterator& __obj) noexcept 29724: : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } 29724: 29724: 29724: ostream_iterator& operator=(const ostream_iterator&) = default; 29724: 29724: 29724: 29724: 29724: ostream_iterator& 29724: operator=(const _Tp& __value) 29724: { 29724: 29724: 29724: ; 29724: *_M_stream << __value; 29724: if (_M_string) 29724: *_M_stream << _M_string; 29724: return *this; 29724: } 29724: 29724: [[__nodiscard__]] 29724: ostream_iterator& 29724: operator*() noexcept 29724: { return *this; } 29724: 29724: ostream_iterator& 29724: operator++() noexcept 29724: { return *this; } 29724: 29724: ostream_iterator& 29724: operator++(int) noexcept 29724: { return *this; } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/iterator" 2 3 29724: # 78 "/usr/include/c++/14/iterator" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 79 "/usr/include/c++/14/iterator" 2 3 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: 29724: # 1 "/usr/include/c++/14/set" 1 3 29724: # 58 "/usr/include/c++/14/set" 3 29724: 29724: # 59 "/usr/include/c++/14/set" 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_set.h" 1 3 29724: # 64 "/usr/include/c++/14/bits/stl_set.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class multiset; 29724: # 94 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template, 29724: typename _Alloc = std::allocator<_Key> > 29724: class set 29724: { 29724: # 110 "/usr/include/c++/14/bits/stl_set.h" 3 29724: static_assert(is_same::type, _Key>::value, 29724: "std::set must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: 29724: public: 29724: 29724: 29724: 29724: typedef _Key key_type; 29724: typedef _Key value_type; 29724: typedef _Compare key_compare; 29724: typedef _Compare value_compare; 29724: typedef _Alloc allocator_type; 29724: 29724: 29724: private: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Key>::other _Key_alloc_type; 29724: 29724: typedef _Rb_tree, 29724: key_compare, _Key_alloc_type> _Rep_type; 29724: _Rep_type _M_t; 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 29724: 29724: public: 29724: 29724: 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: 29724: 29724: 29724: typedef typename _Rep_type::const_iterator iterator; 29724: typedef typename _Rep_type::const_iterator const_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29724: typedef typename _Rep_type::size_type size_type; 29724: typedef typename _Rep_type::difference_type difference_type; 29724: 29724: 29724: 29724: using node_type = typename _Rep_type::node_type; 29724: using insert_return_type = typename _Rep_type::insert_return_type; 29724: # 169 "/usr/include/c++/14/bits/stl_set.h" 3 29724: set() = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: set(const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) { } 29724: # 192 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: set(_InputIterator __first, _InputIterator __last) 29724: : _M_t() 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 209 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: set(_InputIterator __first, _InputIterator __last, 29724: const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 225 "/usr/include/c++/14/bits/stl_set.h" 3 29724: set(const set&) = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: set(set&&) = default; 29724: # 245 "/usr/include/c++/14/bits/stl_set.h" 3 29724: set(initializer_list __l, 29724: const _Compare& __comp = _Compare(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29724: 29724: 29724: explicit 29724: set(const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) { } 29724: 29724: 29724: set(const set& __x, const __type_identity_t& __a) 29724: : _M_t(__x._M_t, _Key_alloc_type(__a)) { } 29724: 29724: 29724: set(set&& __x, const __type_identity_t& __a) 29724: noexcept(is_nothrow_copy_constructible<_Compare>::value 29724: && _Alloc_traits::_S_always_equal()) 29724: : _M_t(std::move(__x._M_t), _Key_alloc_type(__a)) { } 29724: 29724: 29724: set(initializer_list __l, const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29724: 29724: 29724: template 29724: set(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~set() = default; 29724: # 299 "/usr/include/c++/14/bits/stl_set.h" 3 29724: set& 29724: operator=(const set&) = default; 29724: 29724: 29724: set& 29724: operator=(set&&) = default; 29724: # 317 "/usr/include/c++/14/bits/stl_set.h" 3 29724: set& 29724: operator=(initializer_list __l) 29724: { 29724: _M_t._M_assign_unique(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: key_compare 29724: key_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: value_compare 29724: value_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_t.get_allocator()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: cbegin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: cend() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: crbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: crend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_t.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_t.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_t.max_size(); } 29724: # 442 "/usr/include/c++/14/bits/stl_set.h" 3 29724: void 29724: swap(set& __x) 29724: noexcept(__is_nothrow_swappable<_Compare>::value) 29724: { _M_t.swap(__x._M_t); } 29724: # 462 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: std::pair 29724: emplace(_Args&&... __args) 29724: { return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } 29724: # 488 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { 29724: return _M_t._M_emplace_hint_unique(__pos, 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 510 "/usr/include/c++/14/bits/stl_set.h" 3 29724: std::pair 29724: insert(const value_type& __x) 29724: { 29724: std::pair __p = 29724: _M_t._M_insert_unique(__x); 29724: return std::pair(__p.first, __p.second); 29724: } 29724: 29724: 29724: std::pair 29724: insert(value_type&& __x) 29724: { 29724: std::pair __p = 29724: _M_t._M_insert_unique(std::move(__x)); 29724: return std::pair(__p.first, __p.second); 29724: } 29724: # 547 "/usr/include/c++/14/bits/stl_set.h" 3 29724: iterator 29724: insert(const_iterator __position, const value_type& __x) 29724: { return _M_t._M_insert_unique_(__position, __x); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 29724: # 566 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 579 "/usr/include/c++/14/bits/stl_set.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { this->insert(__l.begin(), __l.end()); } 29724: 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_t.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __x) 29724: { return _M_t.extract(__x); } 29724: 29724: 29724: insert_return_type 29724: insert(node_type&& __nh) 29724: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 29724: 29724: template 29724: friend struct std::_Rb_tree_merge_helper; 29724: 29724: template 29724: void 29724: merge(set<_Key, _Compare1, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(set<_Key, _Compare1, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(multiset<_Key, _Compare1, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 29724: { merge(__source); } 29724: # 654 "/usr/include/c++/14/bits/stl_set.h" 3 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_t.erase(__position); } 29724: # 685 "/usr/include/c++/14/bits/stl_set.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_t.erase(__x); } 29724: # 706 "/usr/include/c++/14/bits/stl_set.h" 3 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_t.erase(__first, __last); } 29724: # 734 "/usr/include/c++/14/bits/stl_set.h" 3 29724: void 29724: clear() noexcept 29724: { _M_t.clear(); } 29724: # 749 "/usr/include/c++/14/bits/stl_set.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 29724: 29724: 29724: template 29724: auto 29724: count(const _Kt& __x) const 29724: -> decltype(_M_t._M_count_tr(__x)) 29724: { return _M_t._M_count_tr(__x); } 29724: # 795 "/usr/include/c++/14/bits/stl_set.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_t.find(__x); } 29724: 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) 29724: -> decltype(iterator{_M_t._M_find_tr(__x)}) 29724: { return iterator{_M_t._M_find_tr(__x)}; } 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) const 29724: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 29724: { return const_iterator{_M_t._M_find_tr(__x)}; } 29724: # 830 "/usr/include/c++/14/bits/stl_set.h" 3 29724: iterator 29724: lower_bound(const key_type& __x) 29724: { return _M_t.lower_bound(__x); } 29724: 29724: const_iterator 29724: lower_bound(const key_type& __x) const 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) const 29724: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 860 "/usr/include/c++/14/bits/stl_set.h" 3 29724: iterator 29724: upper_bound(const key_type& __x) 29724: { return _M_t.upper_bound(__x); } 29724: 29724: const_iterator 29724: upper_bound(const key_type& __x) const 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) const 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 899 "/usr/include/c++/14/bits/stl_set.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_t.equal_range(__x); } 29724: 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) const 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 29724: 29724: }; 29724: 29724: 29724: 29724: template::value_type>, 29724: typename _Allocator = 29724: allocator::value_type>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: set(_InputIterator, _InputIterator, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> set::value_type, 29724: _Compare, _Allocator>; 29724: 29724: template, 29724: typename _Allocator = allocator<_Key>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: set(initializer_list<_Key>, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> set<_Key, _Compare, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: set(_InputIterator, _InputIterator, _Allocator) 29724: -> set::value_type, 29724: less::value_type>, 29724: _Allocator>; 29724: 29724: template> 29724: set(initializer_list<_Key>, _Allocator) 29724: -> set<_Key, less<_Key>, _Allocator>; 29724: # 985 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: inline bool 29724: operator==(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return __x._M_t == __y._M_t; } 29724: # 1023 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: inline bool 29724: operator<(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return __x._M_t < __y._M_t; } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: inline bool 29724: operator<=(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>=(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: _Rb_tree_merge_helper, _Cmp2> 29724: { 29724: private: 29724: friend class std::set<_Val, _Cmp1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 29724: { return __set._M_t; } 29724: 29724: static auto& 29724: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 29724: { return __set._M_t; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 64 "/usr/include/c++/14/set" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_multiset.h" 1 3 29724: # 64 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class set; 29724: # 95 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template , 29724: typename _Alloc = std::allocator<_Key> > 29724: class multiset 29724: { 29724: # 111 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: static_assert(is_same::type, _Key>::value, 29724: "std::multiset must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: 29724: public: 29724: 29724: typedef _Key key_type; 29724: typedef _Key value_type; 29724: typedef _Compare key_compare; 29724: typedef _Compare value_compare; 29724: typedef _Alloc allocator_type; 29724: 29724: private: 29724: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Key>::other _Key_alloc_type; 29724: 29724: typedef _Rb_tree, 29724: key_compare, _Key_alloc_type> _Rep_type; 29724: 29724: _Rep_type _M_t; 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 29724: 29724: public: 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: 29724: 29724: 29724: typedef typename _Rep_type::const_iterator iterator; 29724: typedef typename _Rep_type::const_iterator const_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29724: typedef typename _Rep_type::size_type size_type; 29724: typedef typename _Rep_type::difference_type difference_type; 29724: 29724: 29724: using node_type = typename _Rep_type::node_type; 29724: # 165 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset() = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: multiset(const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) { } 29724: # 187 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: multiset(_InputIterator __first, _InputIterator __last) 29724: : _M_t() 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 203 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: multiset(_InputIterator __first, _InputIterator __last, 29724: const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 219 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset(const multiset&) = default; 29724: # 228 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset(multiset&&) = default; 29724: # 240 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset(initializer_list __l, 29724: const _Compare& __comp = _Compare(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29724: 29724: 29724: explicit 29724: multiset(const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) { } 29724: 29724: 29724: multiset(const multiset& __m, 29724: const __type_identity_t& __a) 29724: : _M_t(__m._M_t, _Key_alloc_type(__a)) { } 29724: 29724: 29724: multiset(multiset&& __m, const __type_identity_t& __a) 29724: noexcept(is_nothrow_copy_constructible<_Compare>::value 29724: && _Alloc_traits::_S_always_equal()) 29724: : _M_t(std::move(__m._M_t), _Key_alloc_type(__a)) { } 29724: 29724: 29724: multiset(initializer_list __l, const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29724: 29724: 29724: template 29724: multiset(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~multiset() = default; 29724: # 295 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset& 29724: operator=(const multiset&) = default; 29724: 29724: 29724: multiset& 29724: operator=(multiset&&) = default; 29724: # 313 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset& 29724: operator=(initializer_list __l) 29724: { 29724: _M_t._M_assign_equal(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: key_compare 29724: key_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: value_compare 29724: value_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_t.get_allocator()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: cbegin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: cend() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: crbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: crend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_t.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_t.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_t.max_size(); } 29724: # 438 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: void 29724: swap(multiset& __x) 29724: noexcept(__is_nothrow_swappable<_Compare>::value) 29724: { _M_t.swap(__x._M_t); } 29724: # 457 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: iterator 29724: emplace(_Args&&... __args) 29724: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 29724: # 483 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { 29724: return _M_t._M_emplace_hint_equal(__pos, 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 503 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: iterator 29724: insert(const value_type& __x) 29724: { return _M_t._M_insert_equal(__x); } 29724: 29724: 29724: iterator 29724: insert(value_type&& __x) 29724: { return _M_t._M_insert_equal(std::move(__x)); } 29724: # 533 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: iterator 29724: insert(const_iterator __position, const value_type& __x) 29724: { return _M_t._M_insert_equal_(__position, __x); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 29724: # 551 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 564 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { this->insert(__l.begin(), __l.end()); } 29724: 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_t.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __x) 29724: { return _M_t.extract(__x); } 29724: 29724: 29724: iterator 29724: insert(node_type&& __nh) 29724: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 29724: 29724: template 29724: friend struct std::_Rb_tree_merge_helper; 29724: 29724: template 29724: void 29724: merge(multiset<_Key, _Compare1, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(set<_Key, _Compare1, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(set<_Key, _Compare1, _Alloc>&& __source) 29724: { merge(__source); } 29724: # 639 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_t.erase(__position); } 29724: # 670 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_t.erase(__x); } 29724: # 691 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_t.erase(__first, __last); } 29724: # 719 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: void 29724: clear() noexcept 29724: { _M_t.clear(); } 29724: # 731 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_t.count(__x); } 29724: 29724: 29724: template 29724: auto 29724: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29724: { return _M_t._M_count_tr(__x); } 29724: # 776 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_t.find(__x); } 29724: 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) 29724: -> decltype(iterator{_M_t._M_find_tr(__x)}) 29724: { return iterator{_M_t._M_find_tr(__x)}; } 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) const 29724: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 29724: { return const_iterator{_M_t._M_find_tr(__x)}; } 29724: # 811 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: iterator 29724: lower_bound(const key_type& __x) 29724: { return _M_t.lower_bound(__x); } 29724: 29724: const_iterator 29724: lower_bound(const key_type& __x) const 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) const 29724: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 841 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: iterator 29724: upper_bound(const key_type& __x) 29724: { return _M_t.upper_bound(__x); } 29724: 29724: const_iterator 29724: upper_bound(const key_type& __x) const 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) const 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 880 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_t.equal_range(__x); } 29724: 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) const 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator==(const multiset<_K1, _C1, _A1>&, 29724: const multiset<_K1, _C1, _A1>&); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator< (const multiset<_K1, _C1, _A1>&, 29724: const multiset<_K1, _C1, _A1>&); 29724: 29724: }; 29724: 29724: 29724: 29724: template::value_type>, 29724: typename _Allocator = 29724: allocator::value_type>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: multiset(_InputIterator, _InputIterator, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> multiset::value_type, 29724: _Compare, _Allocator>; 29724: 29724: template, 29724: typename _Allocator = allocator<_Key>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: multiset(initializer_list<_Key>, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> multiset<_Key, _Compare, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: multiset(_InputIterator, _InputIterator, _Allocator) 29724: -> multiset::value_type, 29724: less::value_type>, 29724: _Allocator>; 29724: 29724: template> 29724: multiset(initializer_list<_Key>, _Allocator) 29724: -> multiset<_Key, less<_Key>, _Allocator>; 29724: # 971 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: inline bool 29724: operator==(const multiset<_Key, _Compare, _Alloc>& __x, 29724: const multiset<_Key, _Compare, _Alloc>& __y) 29724: { return __x._M_t == __y._M_t; } 29724: # 1009 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: inline bool 29724: operator<(const multiset<_Key, _Compare, _Alloc>& __x, 29724: const multiset<_Key, _Compare, _Alloc>& __y) 29724: { return __x._M_t < __y._M_t; } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const multiset<_Key, _Compare, _Alloc>& __x, 29724: const multiset<_Key, _Compare, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>(const multiset<_Key,_Compare,_Alloc>& __x, 29724: const multiset<_Key,_Compare,_Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: inline bool 29724: operator<=(const multiset<_Key, _Compare, _Alloc>& __x, 29724: const multiset<_Key, _Compare, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>=(const multiset<_Key, _Compare, _Alloc>& __x, 29724: const multiset<_Key, _Compare, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(multiset<_Key, _Compare, _Alloc>& __x, 29724: multiset<_Key, _Compare, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: _Rb_tree_merge_helper, 29724: _Cmp2> 29724: { 29724: private: 29724: friend class std::multiset<_Val, _Cmp1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 29724: { return __set._M_t; } 29724: 29724: static auto& 29724: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 29724: { return __set._M_t; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 65 "/usr/include/c++/14/set" 2 3 29724: # 77 "/usr/include/c++/14/set" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 78 "/usr/include/c++/14/set" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template> 29724: using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>; 29724: template> 29724: using multiset = std::multiset<_Key, _Cmp, polymorphic_allocator<_Key>>; 29724: } 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iteration_stats.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iteration_stats.h" 29724: namespace rocksdb { 29724: 29724: struct CompactionIterationStats { 29724: 29724: 29724: 29724: 29724: int64_t num_record_drop_user = 0; 29724: 29724: int64_t num_record_drop_hidden = 0; 29724: int64_t num_record_drop_obsolete = 0; 29724: int64_t num_record_drop_range_del = 0; 29724: int64_t num_range_del_drop_obsolete = 0; 29724: 29724: int64_t num_optimized_del_drop_obsolete = 0; 29724: uint64_t total_filter_time = 0; 29724: 29724: 29724: 29724: 29724: uint64_t num_input_records = 0; 29724: uint64_t num_input_deletion_records = 0; 29724: uint64_t num_input_corrupt_records = 0; 29724: uint64_t total_input_raw_key_bytes = 0; 29724: uint64_t total_input_raw_value_bytes = 0; 29724: 29724: 29724: uint64_t num_single_del_fallthru = 0; 29724: uint64_t num_single_del_mismatch = 0; 29724: 29724: 29724: uint64_t num_blobs_read = 0; 29724: uint64_t total_blob_bytes_read = 0; 29724: uint64_t num_blobs_relocated = 0; 29724: uint64_t total_blob_bytes_relocated = 0; 29724: 29724: 29724: 29724: uint64_t num_input_timed_put_records = 0; 29724: 29724: 29724: uint64_t num_timed_put_swap_preferred_seqno = 0; 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/readahead_file_info.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct ReadaheadFileInfo { 29724: struct ReadaheadInfo { 29724: size_t readahead_size = 0; 29724: int64_t num_file_reads = 0; 29724: }; 29724: 29724: 29724: ReadaheadInfo data_block_readahead_info; 29724: 29724: 29724: ReadaheadInfo index_block_readahead_info; 29724: }; 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/sstream" 1 3 29724: # 36 "/usr/include/c++/14/sstream" 3 29724: 29724: # 37 "/usr/include/c++/14/sstream" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/istream" 1 3 29724: # 36 "/usr/include/c++/14/istream" 3 29724: 29724: # 37 "/usr/include/c++/14/istream" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 43 "/usr/include/c++/14/istream" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 59 "/usr/include/c++/14/istream" 3 29724: template 29724: class basic_istream : virtual public basic_ios<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef typename _Traits::pos_type pos_type; 29724: typedef typename _Traits::off_type off_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29724: typedef basic_ios<_CharT, _Traits> __ios_type; 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 29724: __num_get_type; 29724: typedef ctype<_CharT> __ctype_type; 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: streamsize _M_gcount; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_istream(__streambuf_type* __sb) 29724: : _M_gcount(streamsize(0)) 29724: { this->init(__sb); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual 29724: ~basic_istream() 29724: { _M_gcount = streamsize(0); } 29724: 29724: 29724: class sentry; 29724: friend class sentry; 29724: # 121 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: operator>>(__istream_type& (*__pf)(__istream_type&)) 29724: { return __pf(*this); } 29724: 29724: __istream_type& 29724: operator>>(__ios_type& (*__pf)(__ios_type&)) 29724: { 29724: __pf(*this); 29724: return *this; 29724: } 29724: 29724: __istream_type& 29724: operator>>(ios_base& (*__pf)(ios_base&)) 29724: { 29724: __pf(*this); 29724: return *this; 29724: } 29724: # 169 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: operator>>(bool& __n) 29724: { return _M_extract(__n); } 29724: 29724: __istream_type& 29724: operator>>(short& __n); 29724: 29724: __istream_type& 29724: operator>>(unsigned short& __n) 29724: { return _M_extract(__n); } 29724: 29724: __istream_type& 29724: operator>>(int& __n); 29724: 29724: __istream_type& 29724: operator>>(unsigned int& __n) 29724: { return _M_extract(__n); } 29724: 29724: __istream_type& 29724: operator>>(long& __n) 29724: { return _M_extract(__n); } 29724: 29724: __istream_type& 29724: operator>>(unsigned long& __n) 29724: { return _M_extract(__n); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: __istream_type& 29724: operator>>(long long& __n) 29724: { return _M_extract(__n); } 29724: 29724: __istream_type& 29724: operator>>(unsigned long long& __n) 29724: { return _M_extract(__n); } 29724: #pragma GCC diagnostic pop 29724: # 218 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: operator>>(float& __f) 29724: { return _M_extract(__f); } 29724: 29724: __istream_type& 29724: operator>>(double& __f) 29724: { return _M_extract(__f); } 29724: 29724: __istream_type& 29724: operator>>(long double& __f) 29724: { return _M_extract(__f); } 29724: # 327 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: operator>>(void*& __p) 29724: { return _M_extract(__p); } 29724: # 351 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: operator>>(__streambuf_type* __sb); 29724: # 361 "/usr/include/c++/14/istream" 3 29724: streamsize 29724: gcount() const 29724: { return _M_gcount; } 29724: # 394 "/usr/include/c++/14/istream" 3 29724: int_type 29724: get(); 29724: # 408 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: get(char_type& __c); 29724: # 435 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: get(char_type* __s, streamsize __n, char_type __delim); 29724: # 446 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: get(char_type* __s, streamsize __n) 29724: { return this->get(__s, __n, this->widen('\n')); } 29724: # 469 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: get(__streambuf_type& __sb, char_type __delim); 29724: # 479 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: get(__streambuf_type& __sb) 29724: { return this->get(__sb, this->widen('\n')); } 29724: # 508 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: getline(char_type* __s, streamsize __n, char_type __delim); 29724: # 519 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: getline(char_type* __s, streamsize __n) 29724: { return this->getline(__s, __n, this->widen('\n')); } 29724: # 543 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: ignore(streamsize __n, int_type __delim); 29724: 29724: __istream_type& 29724: ignore(streamsize __n); 29724: 29724: __istream_type& 29724: ignore(); 29724: # 560 "/usr/include/c++/14/istream" 3 29724: int_type 29724: peek(); 29724: # 578 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: read(char_type* __s, streamsize __n); 29724: # 597 "/usr/include/c++/14/istream" 3 29724: streamsize 29724: readsome(char_type* __s, streamsize __n); 29724: # 614 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: putback(char_type __c); 29724: # 630 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: unget(); 29724: # 648 "/usr/include/c++/14/istream" 3 29724: int 29724: sync(); 29724: # 663 "/usr/include/c++/14/istream" 3 29724: pos_type 29724: tellg(); 29724: # 678 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: seekg(pos_type); 29724: # 694 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: seekg(off_type, ios_base::seekdir); 29724: 29724: 29724: protected: 29724: basic_istream() 29724: : _M_gcount(streamsize(0)) 29724: { this->init(0); } 29724: 29724: 29724: basic_istream(const basic_istream&) = delete; 29724: 29724: basic_istream(basic_istream&& __rhs) 29724: : __ios_type(), _M_gcount(__rhs._M_gcount) 29724: { 29724: __ios_type::move(__rhs); 29724: __rhs._M_gcount = 0; 29724: } 29724: 29724: 29724: 29724: basic_istream& operator=(const basic_istream&) = delete; 29724: 29724: basic_istream& 29724: operator=(basic_istream&& __rhs) 29724: { 29724: swap(__rhs); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_istream& __rhs) 29724: { 29724: __ios_type::swap(__rhs); 29724: std::swap(_M_gcount, __rhs._M_gcount); 29724: } 29724: 29724: 29724: template 29724: __istream_type& 29724: _M_extract(_ValueT& __v); 29724: }; 29724: 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: getline(char_type* __s, streamsize __n, char_type __delim); 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: ignore(streamsize __n); 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: ignore(streamsize __n, int_type __delim); 29724: 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: getline(char_type* __s, streamsize __n, char_type __delim); 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: ignore(streamsize __n); 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: ignore(streamsize __n, int_type __delim); 29724: # 778 "/usr/include/c++/14/istream" 3 29724: template 29724: class basic_istream<_CharT, _Traits>::sentry 29724: { 29724: 29724: bool _M_ok; 29724: 29724: public: 29724: 29724: typedef _Traits traits_type; 29724: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef typename __istream_type::__ctype_type __ctype_type; 29724: typedef typename _Traits::int_type __int_type; 29724: # 814 "/usr/include/c++/14/istream" 3 29724: explicit 29724: sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); 29724: # 825 "/usr/include/c++/14/istream" 3 29724: explicit 29724: 29724: operator bool() const 29724: { return _M_ok; } 29724: }; 29724: # 843 "/usr/include/c++/14/istream" 3 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); 29724: 29724: template 29724: inline basic_istream& 29724: operator>>(basic_istream& __in, unsigned char& __c) 29724: { return (__in >> reinterpret_cast(__c)); } 29724: 29724: template 29724: inline basic_istream& 29724: operator>>(basic_istream& __in, signed char& __c) 29724: { return (__in >> reinterpret_cast(__c)); } 29724: 29724: 29724: 29724: template 29724: void 29724: __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize); 29724: 29724: void __istream_extract(istream&, char*, streamsize); 29724: # 893 "/usr/include/c++/14/istream" 3 29724: template 29724: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29724: inline basic_istream<_CharT, _Traits>& 29724: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) 29724: { 29724: 29724: 29724: 29724: size_t __n = __builtin_object_size(__s, 0); 29724: if (__n < sizeof(_CharT)) 29724: { 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__n >= sizeof(_CharT))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __in.width(0); 29724: __in.setstate(ios_base::failbit); 29724: } 29724: else if (__n != (size_t)-1) 29724: { 29724: __n /= sizeof(_CharT); 29724: streamsize __w = __in.width(); 29724: std::__istream_extract(__in, __s, __n); 29724: if (__in.good() && (__w <= 0 || __n < (size_t)__w)) 29724: { 29724: 29724: 29724: const typename _Traits::int_type __c = __in.rdbuf()->sgetc(); 29724: const bool __eof = _Traits::eq_int_type(__c, _Traits::eof()); 29724: if (__builtin_expect(__eof, true)) 29724: __in.setstate(ios_base::eofbit); 29724: } 29724: } 29724: else 29724: 29724: { 29724: 29724: streamsize __n = __gnu_cxx::__numeric_traits::__max; 29724: __n /= sizeof(_CharT); 29724: std::__istream_extract(__in, __s, __n); 29724: } 29724: return __in; 29724: } 29724: 29724: template 29724: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29724: inline basic_istream& 29724: operator>>(basic_istream& __in, unsigned char* __s) 29724: { return __in >> reinterpret_cast(__s); } 29724: 29724: template 29724: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29724: inline basic_istream& 29724: operator>>(basic_istream& __in, signed char* __s) 29724: { return __in >> reinterpret_cast(__s); } 29724: # 982 "/usr/include/c++/14/istream" 3 29724: template 29724: class basic_iostream 29724: : public basic_istream<_CharT, _Traits>, 29724: public basic_ostream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef typename _Traits::pos_type pos_type; 29724: typedef typename _Traits::off_type off_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) 29724: : __istream_type(__sb), __ostream_type(__sb) { } 29724: 29724: 29724: 29724: 29724: virtual 29724: ~basic_iostream() { } 29724: 29724: protected: 29724: basic_iostream() 29724: : __istream_type(), __ostream_type() { } 29724: 29724: 29724: basic_iostream(const basic_iostream&) = delete; 29724: 29724: basic_iostream(basic_iostream&& __rhs) 29724: : __istream_type(std::move(__rhs)), __ostream_type(*this) 29724: { } 29724: 29724: 29724: 29724: basic_iostream& operator=(const basic_iostream&) = delete; 29724: 29724: basic_iostream& 29724: operator=(basic_iostream&& __rhs) 29724: { 29724: swap(__rhs); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_iostream& __rhs) 29724: { __istream_type::swap(__rhs); } 29724: 29724: }; 29724: # 1065 "/usr/include/c++/14/istream" 3 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: ws(basic_istream<_CharT, _Traits>& __is); 29724: # 1081 "/usr/include/c++/14/istream" 3 29724: template, 29724: typename = decltype(std::declval<_Is&>() >> std::declval<_Tp>())> 29724: using __rvalue_stream_extraction_t = _Is&&; 29724: # 1097 "/usr/include/c++/14/istream" 3 29724: template 29724: inline __rvalue_stream_extraction_t<_Istream, _Tp> 29724: operator>>(_Istream&& __is, _Tp&& __x) 29724: { 29724: __is >> std::forward<_Tp>(__x); 29724: return std::move(__is); 29724: } 29724: 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/istream.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/istream.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/istream.tcc" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: basic_istream<_CharT, _Traits>::sentry:: 29724: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: if (__in.good()) 29724: { 29724: try 29724: { 29724: if (__in.tie()) 29724: __in.tie()->flush(); 29724: if (!__noskip && bool(__in.flags() & ios_base::skipws)) 29724: { 29724: const __int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = __in.rdbuf(); 29724: __int_type __c = __sb->sgetc(); 29724: 29724: const __ctype_type& __ct = __check_facet(__in._M_ctype); 29724: while (!traits_type::eq_int_type(__c, __eof) 29724: && __ct.is(ctype_base::space, 29724: traits_type::to_char_type(__c))) 29724: __c = __sb->snextc(); 29724: 29724: 29724: 29724: 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { __in._M_setstate(ios_base::badbit); } 29724: } 29724: 29724: if (__in.good() && __err == ios_base::goodbit) 29724: _M_ok = true; 29724: else 29724: { 29724: __err |= ios_base::failbit; 29724: __in.setstate(__err); 29724: } 29724: } 29724: 29724: template 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: _M_extract(_ValueT& __v) 29724: { 29724: sentry __cerb(*this, false); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: 29724: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29724: 29724: 29724: 29724: 29724: __ng.get(*this, 0, *this, __err, __v); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: operator>>(short& __n) 29724: { 29724: 29724: 29724: sentry __cerb(*this, false); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: long __l; 29724: 29724: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29724: 29724: 29724: 29724: 29724: __ng.get(*this, 0, *this, __err, __l); 29724: 29724: 29724: 29724: if (__l < __gnu_cxx::__numeric_traits::__min) 29724: { 29724: __err |= ios_base::failbit; 29724: __n = __gnu_cxx::__numeric_traits::__min; 29724: } 29724: else if (__l > __gnu_cxx::__numeric_traits::__max) 29724: { 29724: __err |= ios_base::failbit; 29724: __n = __gnu_cxx::__numeric_traits::__max; 29724: } 29724: else 29724: __n = short(__l); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: operator>>(int& __n) 29724: { 29724: 29724: 29724: sentry __cerb(*this, false); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: long __l; 29724: 29724: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29724: 29724: 29724: 29724: 29724: __ng.get(*this, 0, *this, __err, __l); 29724: 29724: 29724: 29724: if (__l < __gnu_cxx::__numeric_traits::__min) 29724: { 29724: __err |= ios_base::failbit; 29724: __n = __gnu_cxx::__numeric_traits::__min; 29724: } 29724: else if (__l > __gnu_cxx::__numeric_traits::__max) 29724: { 29724: __err |= ios_base::failbit; 29724: __n = __gnu_cxx::__numeric_traits::__max; 29724: } 29724: else 29724: __n = int(__l); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: operator>>(__streambuf_type* __sbout) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, false); 29724: if (__cerb && __sbout) 29724: { 29724: try 29724: { 29724: bool __ineof; 29724: if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) 29724: __err |= ios_base::failbit; 29724: if (__ineof) 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::failbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::failbit); } 29724: } 29724: else if (!__sbout) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: template 29724: typename basic_istream<_CharT, _Traits>::int_type 29724: basic_istream<_CharT, _Traits>:: 29724: get(void) 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: int_type __c = __eof; 29724: _M_gcount = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: __c = this->rdbuf()->sbumpc(); 29724: 29724: if (!traits_type::eq_int_type(__c, __eof)) 29724: _M_gcount = 1; 29724: else 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: if (!_M_gcount) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return __c; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: get(char_type& __c) 29724: { 29724: _M_gcount = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: const int_type __cb = this->rdbuf()->sbumpc(); 29724: 29724: if (!traits_type::eq_int_type(__cb, traits_type::eof())) 29724: { 29724: _M_gcount = 1; 29724: __c = traits_type::to_char_type(__cb); 29724: } 29724: else 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: if (!_M_gcount) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: get(char_type* __s, streamsize __n, char_type __delim) 29724: { 29724: _M_gcount = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: const int_type __idelim = traits_type::to_int_type(__delim); 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: int_type __c = __sb->sgetc(); 29724: 29724: while (_M_gcount + 1 < __n 29724: && !traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __idelim)) 29724: { 29724: *__s++ = traits_type::to_char_type(__c); 29724: ++_M_gcount; 29724: __c = __sb->snextc(); 29724: } 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: 29724: 29724: if (__n > 0) 29724: *__s = char_type(); 29724: if (!_M_gcount) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: get(__streambuf_type& __sb, char_type __delim) 29724: { 29724: _M_gcount = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: const int_type __idelim = traits_type::to_int_type(__delim); 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __this_sb = this->rdbuf(); 29724: int_type __c = __this_sb->sgetc(); 29724: char_type __c2 = traits_type::to_char_type(__c); 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: unsigned long long __gcount = 0; 29724: #pragma GCC diagnostic pop 29724: 29724: while (!traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __idelim) 29724: && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) 29724: { 29724: ++__gcount; 29724: __c = __this_sb->snextc(); 29724: __c2 = traits_type::to_char_type(__c); 29724: } 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: 29724: 29724: if (__gcount <= __gnu_cxx::__numeric_traits::__max) 29724: _M_gcount = __gcount; 29724: else 29724: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: if (!_M_gcount) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: getline(char_type* __s, streamsize __n, char_type __delim) 29724: { 29724: _M_gcount = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: const int_type __idelim = traits_type::to_int_type(__delim); 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: int_type __c = __sb->sgetc(); 29724: 29724: while (_M_gcount + 1 < __n 29724: && !traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __idelim)) 29724: { 29724: *__s++ = traits_type::to_char_type(__c); 29724: __c = __sb->snextc(); 29724: ++_M_gcount; 29724: } 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: else 29724: { 29724: if (traits_type::eq_int_type(__c, __idelim)) 29724: { 29724: __sb->sbumpc(); 29724: ++_M_gcount; 29724: } 29724: else 29724: __err |= ios_base::failbit; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: 29724: 29724: if (__n > 0) 29724: *__s = char_type(); 29724: if (!_M_gcount) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: ignore(void) 29724: { 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: 29724: if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) 29724: __err |= ios_base::eofbit; 29724: else 29724: _M_gcount = 1; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: ignore(streamsize __n) 29724: { 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb && __n > 0) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: int_type __c = __sb->sgetc(); 29724: # 548 "/usr/include/c++/14/bits/istream.tcc" 3 29724: bool __large_ignore = false; 29724: while (true) 29724: { 29724: while (_M_gcount < __n 29724: && !traits_type::eq_int_type(__c, __eof)) 29724: { 29724: ++_M_gcount; 29724: __c = __sb->snextc(); 29724: } 29724: if (__n == __gnu_cxx::__numeric_traits::__max 29724: && !traits_type::eq_int_type(__c, __eof)) 29724: { 29724: _M_gcount = 29724: __gnu_cxx::__numeric_traits::__min; 29724: __large_ignore = true; 29724: } 29724: else 29724: break; 29724: } 29724: 29724: if (__n == __gnu_cxx::__numeric_traits::__max) 29724: { 29724: if (__large_ignore) 29724: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29724: 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: } 29724: else if (_M_gcount < __n) 29724: { 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: ignore(streamsize __n, int_type __delim) 29724: { 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb && __n > 0) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: int_type __c = __sb->sgetc(); 29724: 29724: 29724: bool __large_ignore = false; 29724: while (true) 29724: { 29724: while (_M_gcount < __n 29724: && !traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __delim)) 29724: { 29724: ++_M_gcount; 29724: __c = __sb->snextc(); 29724: } 29724: if (__n == __gnu_cxx::__numeric_traits::__max 29724: && !traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __delim)) 29724: { 29724: _M_gcount = 29724: __gnu_cxx::__numeric_traits::__min; 29724: __large_ignore = true; 29724: } 29724: else 29724: break; 29724: } 29724: 29724: if (__n == __gnu_cxx::__numeric_traits::__max) 29724: { 29724: if (__large_ignore) 29724: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29724: 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: else 29724: { 29724: if (_M_gcount != __n) 29724: ++_M_gcount; 29724: __sb->sbumpc(); 29724: } 29724: } 29724: else if (_M_gcount < __n) 29724: { 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: else 29724: { 29724: ++_M_gcount; 29724: __sb->sbumpc(); 29724: } 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: typename basic_istream<_CharT, _Traits>::int_type 29724: basic_istream<_CharT, _Traits>:: 29724: peek(void) 29724: { 29724: int_type __c = traits_type::eof(); 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: __c = this->rdbuf()->sgetc(); 29724: if (traits_type::eq_int_type(__c, traits_type::eof())) 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return __c; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: read(char_type* __s, streamsize __n) 29724: { 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: _M_gcount = this->rdbuf()->sgetn(__s, __n); 29724: if (_M_gcount != __n) 29724: __err |= (ios_base::eofbit | ios_base::failbit); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: streamsize 29724: basic_istream<_CharT, _Traits>:: 29724: readsome(char_type* __s, streamsize __n) 29724: { 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: 29724: const streamsize __num = this->rdbuf()->in_avail(); 29724: if (__num > 0) 29724: _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); 29724: else if (__num == -1) 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return _M_gcount; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: putback(char_type __c) 29724: { 29724: 29724: 29724: _M_gcount = 0; 29724: 29724: this->clear(this->rdstate() & ~ios_base::eofbit); 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: if (!__sb 29724: || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) 29724: __err |= ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: unget(void) 29724: { 29724: 29724: 29724: _M_gcount = 0; 29724: 29724: this->clear(this->rdstate() & ~ios_base::eofbit); 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: if (!__sb 29724: || traits_type::eq_int_type(__sb->sungetc(), __eof)) 29724: __err |= ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: int 29724: basic_istream<_CharT, _Traits>:: 29724: sync(void) 29724: { 29724: 29724: 29724: int __ret = -1; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: __streambuf_type* __sb = this->rdbuf(); 29724: if (__sb) 29724: { 29724: if (__sb->pubsync() == -1) 29724: __err |= ios_base::badbit; 29724: else 29724: __ret = 0; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_istream<_CharT, _Traits>::pos_type 29724: basic_istream<_CharT, _Traits>:: 29724: tellg(void) 29724: { 29724: 29724: 29724: pos_type __ret = pos_type(-1); 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: if (!this->fail()) 29724: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, 29724: ios_base::in); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: seekg(pos_type __pos) 29724: { 29724: 29724: 29724: 29724: this->clear(this->rdstate() & ~ios_base::eofbit); 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: if (!this->fail()) 29724: { 29724: 29724: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 29724: ios_base::in); 29724: 29724: 29724: if (__p == pos_type(off_type(-1))) 29724: __err |= ios_base::failbit; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: seekg(off_type __off, ios_base::seekdir __dir) 29724: { 29724: 29724: 29724: 29724: this->clear(this->rdstate() & ~ios_base::eofbit); 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: if (!this->fail()) 29724: { 29724: 29724: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 29724: ios_base::in); 29724: 29724: 29724: if (__p == pos_type(off_type(-1))) 29724: __err |= ios_base::failbit; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) 29724: { 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef typename __istream_type::int_type __int_type; 29724: 29724: typename __istream_type::sentry __cerb(__in, false); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const __int_type __cb = __in.rdbuf()->sbumpc(); 29724: if (!_Traits::eq_int_type(__cb, _Traits::eof())) 29724: __c = _Traits::to_char_type(__cb); 29724: else 29724: __err |= (ios_base::eofbit | ios_base::failbit); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { __in._M_setstate(ios_base::badbit); } 29724: if (__err) 29724: __in.setstate(__err); 29724: } 29724: return __in; 29724: } 29724: 29724: template 29724: void 29724: __istream_extract(basic_istream<_CharT, _Traits>& __in, _CharT* __s, 29724: streamsize __num) 29724: { 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef _CharT char_type; 29724: typedef ctype<_CharT> __ctype_type; 29724: 29724: streamsize __extracted = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: typename __istream_type::sentry __cerb(__in, false); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: 29724: streamsize __width = __in.width(); 29724: if (0 < __width && __width < __num) 29724: __num = __width; 29724: 29724: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29724: 29724: const int_type __eof = _Traits::eof(); 29724: __streambuf_type* __sb = __in.rdbuf(); 29724: int_type __c = __sb->sgetc(); 29724: 29724: while (__extracted < __num - 1 29724: && !_Traits::eq_int_type(__c, __eof) 29724: && !__ct.is(ctype_base::space, 29724: _Traits::to_char_type(__c))) 29724: { 29724: *__s++ = _Traits::to_char_type(__c); 29724: ++__extracted; 29724: __c = __sb->snextc(); 29724: } 29724: 29724: if (__extracted < __num - 1 29724: && _Traits::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: 29724: 29724: 29724: *__s = char_type(); 29724: __in.width(0); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { __in._M_setstate(ios_base::badbit); } 29724: } 29724: if (!__extracted) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: __in.setstate(__err); 29724: } 29724: 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: ws(basic_istream<_CharT, _Traits>& __in) 29724: { 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29724: typedef typename __istream_type::int_type __int_type; 29724: typedef ctype<_CharT> __ctype_type; 29724: 29724: 29724: 29724: typename __istream_type::sentry __cerb(__in, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29724: const __int_type __eof = _Traits::eof(); 29724: __streambuf_type* __sb = __in.rdbuf(); 29724: __int_type __c = __sb->sgetc(); 29724: 29724: while (true) 29724: { 29724: if (_Traits::eq_int_type(__c, __eof)) 29724: { 29724: __err = ios_base::eofbit; 29724: break; 29724: } 29724: if (!__ct.is(ctype_base::space, _Traits::to_char_type(__c))) 29724: break; 29724: __c = __sb->snextc(); 29724: } 29724: } 29724: catch(const __cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { 29724: __in._M_setstate(ios_base::badbit); 29724: } 29724: if (__err) 29724: __in.setstate(__err); 29724: } 29724: return __in; 29724: } 29724: 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++11-extensions" 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: extern template class basic_istream; 29724: extern template istream& ws(istream&); 29724: extern template istream& operator>>(istream&, char&); 29724: extern template istream& operator>>(istream&, unsigned char&); 29724: extern template istream& operator>>(istream&, signed char&); 29724: 29724: extern template istream& istream::_M_extract(unsigned short&); 29724: extern template istream& istream::_M_extract(unsigned int&); 29724: extern template istream& istream::_M_extract(long&); 29724: extern template istream& istream::_M_extract(unsigned long&); 29724: extern template istream& istream::_M_extract(bool&); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: extern template istream& istream::_M_extract(long long&); 29724: extern template istream& istream::_M_extract(unsigned long long&); 29724: #pragma GCC diagnostic pop 29724: 29724: extern template istream& istream::_M_extract(float&); 29724: extern template istream& istream::_M_extract(double&); 29724: extern template istream& istream::_M_extract(long double&); 29724: extern template istream& istream::_M_extract(void*&); 29724: 29724: extern template class basic_iostream; 29724: 29724: 29724: extern template class basic_istream; 29724: extern template wistream& ws(wistream&); 29724: extern template wistream& operator>>(wistream&, wchar_t&); 29724: extern template void __istream_extract(wistream&, wchar_t*, streamsize); 29724: 29724: extern template wistream& wistream::_M_extract(unsigned short&); 29724: extern template wistream& wistream::_M_extract(unsigned int&); 29724: extern template wistream& wistream::_M_extract(long&); 29724: extern template wistream& wistream::_M_extract(unsigned long&); 29724: extern template wistream& wistream::_M_extract(bool&); 29724: 29724: extern template wistream& wistream::_M_extract(long long&); 29724: extern template wistream& wistream::_M_extract(unsigned long long&); 29724: 29724: extern template wistream& wistream::_M_extract(float&); 29724: extern template wistream& wistream::_M_extract(double&); 29724: extern template wistream& wistream::_M_extract(long double&); 29724: extern template wistream& wistream::_M_extract(void*&); 29724: 29724: extern template class basic_iostream; 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: } 29724: # 1110 "/usr/include/c++/14/istream" 2 3 29724: # 41 "/usr/include/c++/14/sstream" 2 3 29724: # 55 "/usr/include/c++/14/sstream" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace __cxx11 { 29724: # 78 "/usr/include/c++/14/sstream" 3 29724: template 29724: class basic_stringbuf : public basic_streambuf<_CharT, _Traits> 29724: { 29724: struct __xfer_bufptrs; 29724: 29724: 29724: using allocator_traits = std::allocator_traits<_Alloc>; 29724: using _Noexcept_swap 29724: = __or_; 29724: 29724: 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef _Alloc allocator_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: typedef basic_streambuf __streambuf_type; 29724: typedef basic_string __string_type; 29724: typedef typename __string_type::size_type __size_type; 29724: 29724: protected: 29724: 29724: ios_base::openmode _M_mode; 29724: 29724: 29724: __string_type _M_string; 29724: 29724: public: 29724: # 121 "/usr/include/c++/14/sstream" 3 29724: basic_stringbuf() 29724: : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() 29724: { } 29724: # 132 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_stringbuf(ios_base::openmode __mode) 29724: : __streambuf_type(), _M_mode(__mode), _M_string() 29724: { } 29724: # 145 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_stringbuf(const __string_type& __str, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: : __streambuf_type(), _M_mode(), 29724: _M_string(__str.data(), __str.size(), __str.get_allocator()) 29724: { _M_stringbuf_init(__mode); } 29724: 29724: 29724: basic_stringbuf(const basic_stringbuf&) = delete; 29724: 29724: basic_stringbuf(basic_stringbuf&& __rhs) 29724: : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) 29724: { __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); } 29724: # 209 "/usr/include/c++/14/sstream" 3 29724: basic_stringbuf& 29724: operator=(const basic_stringbuf&) = delete; 29724: 29724: basic_stringbuf& 29724: operator=(basic_stringbuf&& __rhs) 29724: { 29724: __xfer_bufptrs __st{__rhs, this}; 29724: const __streambuf_type& __base = __rhs; 29724: __streambuf_type::operator=(__base); 29724: this->pubimbue(__rhs.getloc()); 29724: _M_mode = __rhs._M_mode; 29724: _M_string = std::move(__rhs._M_string); 29724: __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_stringbuf& __rhs) noexcept(_Noexcept_swap::value) 29724: { 29724: __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; 29724: __xfer_bufptrs __r_st{__rhs, this}; 29724: __streambuf_type& __base = __rhs; 29724: __streambuf_type::swap(__base); 29724: __rhs.pubimbue(this->pubimbue(__rhs.getloc())); 29724: std::swap(_M_mode, __rhs._M_mode); 29724: std::swap(_M_string, __rhs._M_string); 29724: } 29724: # 248 "/usr/include/c++/14/sstream" 3 29724: __string_type 29724: str() const 29724: { 29724: __string_type __ret(_M_string.get_allocator()); 29724: if (char_type* __hi = _M_high_mark()) 29724: __ret.assign(this->pbase(), __hi); 29724: else 29724: __ret = _M_string; 29724: return __ret; 29724: } 29724: # 304 "/usr/include/c++/14/sstream" 3 29724: void 29724: str(const __string_type& __s) 29724: { 29724: 29724: 29724: _M_string.assign(__s.data(), __s.size()); 29724: _M_stringbuf_init(_M_mode); 29724: } 29724: # 333 "/usr/include/c++/14/sstream" 3 29724: protected: 29724: 29724: void 29724: _M_stringbuf_init(ios_base::openmode __mode) 29724: { 29724: _M_mode = __mode; 29724: __size_type __len = 0; 29724: if (_M_mode & (ios_base::ate | ios_base::app)) 29724: __len = _M_string.size(); 29724: _M_sync(const_cast(_M_string.data()), 0, __len); 29724: } 29724: 29724: virtual streamsize 29724: showmanyc() 29724: { 29724: streamsize __ret = -1; 29724: if (_M_mode & ios_base::in) 29724: { 29724: _M_update_egptr(); 29724: __ret = this->egptr() - this->gptr(); 29724: } 29724: return __ret; 29724: } 29724: 29724: virtual int_type 29724: underflow(); 29724: 29724: virtual int_type 29724: pbackfail(int_type __c = traits_type::eof()); 29724: 29724: virtual int_type 29724: overflow(int_type __c = traits_type::eof()); 29724: # 377 "/usr/include/c++/14/sstream" 3 29724: virtual __streambuf_type* 29724: setbuf(char_type* __s, streamsize __n) 29724: { 29724: if (__s && __n >= 0) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: _M_string.clear(); 29724: 29724: 29724: _M_sync(__s, __n, 0); 29724: } 29724: return this; 29724: } 29724: 29724: virtual pos_type 29724: seekoff(off_type __off, ios_base::seekdir __way, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out); 29724: 29724: virtual pos_type 29724: seekpos(pos_type __sp, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out); 29724: 29724: 29724: 29724: 29724: void 29724: _M_sync(char_type* __base, __size_type __i, __size_type __o); 29724: 29724: 29724: 29724: void 29724: _M_update_egptr() 29724: { 29724: if (char_type* __pptr = this->pptr()) 29724: { [ 23%] Building CXX object CMakeFiles/rocksdb.dir/db/merge_helper.cc.o 29724: char_type* __egptr = this->egptr(); 29724: if (!__egptr || __pptr > __egptr) 29724: { 29724: if (_M_mode & ios_base::in) 29724: this->setg(this->eback(), this->gptr(), __pptr); 29724: else 29724: this->setg(__pptr, __pptr, __pptr); 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: void 29724: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: char_type* 29724: _M_high_mark() const noexcept 29724: { 29724: if (char_type* __pptr = this->pptr()) 29724: { 29724: char_type* __egptr = this->egptr(); 29724: if (!__egptr || __pptr > __egptr) 29724: return __pptr; 29724: else 29724: return __egptr; 29724: } 29724: return 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: struct __xfer_bufptrs 29724: { 29724: __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) 29724: : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} 29724: { 29724: const _CharT* const __str = __from._M_string.data(); 29724: const _CharT* __end = nullptr; 29724: if (__from.eback()) 29724: { 29724: _M_goff[0] = __from.eback() - __str; 29724: _M_goff[1] = __from.gptr() - __str; 29724: _M_goff[2] = __from.egptr() - __str; 29724: __end = __from.egptr(); 29724: } 29724: if (__from.pbase()) 29724: { 29724: _M_poff[0] = __from.pbase() - __str; 29724: _M_poff[1] = __from.pptr() - __from.pbase(); 29724: _M_poff[2] = __from.epptr() - __str; 29724: if (!__end || __from.pptr() > __end) 29724: __end = __from.pptr(); 29724: } 29724: 29724: 29724: if (__end) 29724: { 29724: 29724: 29724: auto& __mut_from = const_cast(__from); 29724: __mut_from._M_string._M_length(__end - __str); 29724: } 29724: } 29724: 29724: ~__xfer_bufptrs() 29724: { 29724: char_type* __str = const_cast(_M_to->_M_string.data()); 29724: if (_M_goff[0] != -1) 29724: _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); 29724: if (_M_poff[0] != -1) 29724: _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); 29724: } 29724: 29724: basic_stringbuf* _M_to; 29724: off_type _M_goff[3]; 29724: off_type _M_poff[3]; 29724: }; 29724: # 513 "/usr/include/c++/14/sstream" 3 29724: basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) 29724: : __streambuf_type(static_cast(__rhs)), 29724: _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) 29724: { } 29724: # 528 "/usr/include/c++/14/sstream" 3 29724: }; 29724: # 546 "/usr/include/c++/14/sstream" 3 29724: template 29724: class basic_istringstream : public basic_istream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef _Alloc allocator_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29724: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29724: typedef basic_istream __istream_type; 29724: 29724: private: 29724: __stringbuf_type _M_stringbuf; 29724: 29724: public: 29724: # 580 "/usr/include/c++/14/sstream" 3 29724: basic_istringstream() 29724: : __istream_type(), _M_stringbuf(ios_base::in) 29724: { this->init(&_M_stringbuf); } 29724: # 596 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_istringstream(ios_base::openmode __mode) 29724: : __istream_type(), _M_stringbuf(__mode | ios_base::in) 29724: { this->init(&_M_stringbuf); } 29724: # 614 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_istringstream(const __string_type& __str, 29724: ios_base::openmode __mode = ios_base::in) 29724: : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) 29724: { this->init(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~basic_istringstream() 29724: { } 29724: 29724: 29724: basic_istringstream(const basic_istringstream&) = delete; 29724: 29724: basic_istringstream(basic_istringstream&& __rhs) 29724: : __istream_type(std::move(__rhs)), 29724: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29724: { __istream_type::set_rdbuf(&_M_stringbuf); } 29724: # 671 "/usr/include/c++/14/sstream" 3 29724: basic_istringstream& 29724: operator=(const basic_istringstream&) = delete; 29724: 29724: basic_istringstream& 29724: operator=(basic_istringstream&& __rhs) 29724: { 29724: __istream_type::operator=(std::move(__rhs)); 29724: _M_stringbuf = std::move(__rhs._M_stringbuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_istringstream& __rhs) 29724: { 29724: __istream_type::swap(__rhs); 29724: _M_stringbuf.swap(__rhs._M_stringbuf); 29724: } 29724: # 697 "/usr/include/c++/14/sstream" 3 29724: __stringbuf_type* 29724: rdbuf() const 29724: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: __string_type 29724: str() const 29724: { return _M_stringbuf.str(); } 29724: # 735 "/usr/include/c++/14/sstream" 3 29724: void 29724: str(const __string_type& __s) 29724: { _M_stringbuf.str(__s); } 29724: # 752 "/usr/include/c++/14/sstream" 3 29724: }; 29724: # 770 "/usr/include/c++/14/sstream" 3 29724: template 29724: class basic_ostringstream : public basic_ostream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef _Alloc allocator_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29724: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29724: typedef basic_ostream __ostream_type; 29724: 29724: private: 29724: __stringbuf_type _M_stringbuf; 29724: 29724: public: 29724: # 804 "/usr/include/c++/14/sstream" 3 29724: basic_ostringstream() 29724: : __ostream_type(), _M_stringbuf(ios_base::out) 29724: { this->init(&_M_stringbuf); } 29724: # 820 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_ostringstream(ios_base::openmode __mode) 29724: : __ostream_type(), _M_stringbuf(__mode | ios_base::out) 29724: { this->init(&_M_stringbuf); } 29724: # 838 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_ostringstream(const __string_type& __str, 29724: ios_base::openmode __mode = ios_base::out) 29724: : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) 29724: { this->init(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~basic_ostringstream() 29724: { } 29724: 29724: 29724: basic_ostringstream(const basic_ostringstream&) = delete; 29724: 29724: basic_ostringstream(basic_ostringstream&& __rhs) 29724: : __ostream_type(std::move(__rhs)), 29724: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29724: { __ostream_type::set_rdbuf(&_M_stringbuf); } 29724: # 895 "/usr/include/c++/14/sstream" 3 29724: basic_ostringstream& 29724: operator=(const basic_ostringstream&) = delete; 29724: 29724: basic_ostringstream& 29724: operator=(basic_ostringstream&& __rhs) 29724: { 29724: __ostream_type::operator=(std::move(__rhs)); 29724: _M_stringbuf = std::move(__rhs._M_stringbuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_ostringstream& __rhs) 29724: { 29724: __ostream_type::swap(__rhs); 29724: _M_stringbuf.swap(__rhs._M_stringbuf); 29724: } 29724: # 921 "/usr/include/c++/14/sstream" 3 29724: __stringbuf_type* 29724: rdbuf() const 29724: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: __string_type 29724: str() const 29724: { return _M_stringbuf.str(); } 29724: # 959 "/usr/include/c++/14/sstream" 3 29724: void 29724: str(const __string_type& __s) 29724: { _M_stringbuf.str(__s); } 29724: # 976 "/usr/include/c++/14/sstream" 3 29724: }; 29724: # 994 "/usr/include/c++/14/sstream" 3 29724: template 29724: class basic_stringstream : public basic_iostream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef _Alloc allocator_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29724: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29724: typedef basic_iostream __iostream_type; 29724: 29724: private: 29724: __stringbuf_type _M_stringbuf; 29724: 29724: public: 29724: # 1028 "/usr/include/c++/14/sstream" 3 29724: basic_stringstream() 29724: : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) 29724: { this->init(&_M_stringbuf); } 29724: # 1042 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_stringstream(ios_base::openmode __m) 29724: : __iostream_type(), _M_stringbuf(__m) 29724: { this->init(&_M_stringbuf); } 29724: # 1058 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_stringstream(const __string_type& __str, 29724: ios_base::openmode __m = ios_base::out | ios_base::in) 29724: : __iostream_type(), _M_stringbuf(__str, __m) 29724: { this->init(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~basic_stringstream() 29724: { } 29724: 29724: 29724: basic_stringstream(const basic_stringstream&) = delete; 29724: 29724: basic_stringstream(basic_stringstream&& __rhs) 29724: : __iostream_type(std::move(__rhs)), 29724: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29724: { __iostream_type::set_rdbuf(&_M_stringbuf); } 29724: # 1117 "/usr/include/c++/14/sstream" 3 29724: basic_stringstream& 29724: operator=(const basic_stringstream&) = delete; 29724: 29724: basic_stringstream& 29724: operator=(basic_stringstream&& __rhs) 29724: { 29724: __iostream_type::operator=(std::move(__rhs)); 29724: _M_stringbuf = std::move(__rhs._M_stringbuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_stringstream& __rhs) 29724: { 29724: __iostream_type::swap(__rhs); 29724: _M_stringbuf.swap(__rhs._M_stringbuf); 29724: } 29724: # 1143 "/usr/include/c++/14/sstream" 3 29724: __stringbuf_type* 29724: rdbuf() const 29724: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: __string_type 29724: str() const 29724: { return _M_stringbuf.str(); } 29724: # 1181 "/usr/include/c++/14/sstream" 3 29724: void 29724: str(const __string_type& __s) 29724: { _M_stringbuf.str(__s); } 29724: # 1198 "/usr/include/c++/14/sstream" 3 29724: }; 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, 29724: basic_stringbuf<_CharT, _Traits, _Allocator>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, 29724: basic_istringstream<_CharT, _Traits, _Allocator>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, 29724: basic_ostringstream<_CharT, _Traits, _Allocator>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, 29724: basic_stringstream<_CharT, _Traits, _Allocator>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/sstream.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/sstream.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/sstream.tcc" 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: pbackfail(int_type __c) 29724: { 29724: int_type __ret = traits_type::eof(); 29724: if (this->eback() < this->gptr()) 29724: { 29724: 29724: 29724: const bool __testeof = traits_type::eq_int_type(__c, __ret); 29724: if (!__testeof) 29724: { 29724: const bool __testeq = traits_type::eq(traits_type:: 29724: to_char_type(__c), 29724: this->gptr()[-1]); 29724: const bool __testout = this->_M_mode & ios_base::out; 29724: if (__testeq || __testout) 29724: { 29724: this->gbump(-1); 29724: if (!__testeq) 29724: *this->gptr() = traits_type::to_char_type(__c); 29724: __ret = __c; 29724: } 29724: } 29724: else 29724: { 29724: this->gbump(-1); 29724: __ret = traits_type::not_eof(__c); 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: overflow(int_type __c) 29724: { 29724: const bool __testout = this->_M_mode & ios_base::out; 29724: if (__builtin_expect(!__testout, false)) 29724: return traits_type::eof(); 29724: 29724: const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); 29724: if (__builtin_expect(__testeof, false)) 29724: return traits_type::not_eof(__c); 29724: 29724: const __size_type __capacity = _M_string.capacity(); 29724: 29724: 29724: if (size_t(this->epptr() - this->pbase()) < __capacity) 29724: { 29724: 29724: char_type* __base = const_cast(_M_string.data()); 29724: _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); 29724: if (_M_mode & ios_base::in) 29724: { 29724: const __size_type __nget = this->gptr() - this->eback(); 29724: const __size_type __eget = this->egptr() - this->eback(); 29724: this->setg(__base, __base + __nget, __base + __eget + 1); 29724: } 29724: *this->pptr() = traits_type::to_char_type(__c); 29724: this->pbump(1); 29724: return __c; 29724: } 29724: 29724: 29724: const __size_type __max_size = _M_string.max_size(); 29724: const bool __testput = this->pptr() < this->epptr(); 29724: if (__builtin_expect(!__testput && __capacity == __max_size, false)) 29724: return traits_type::eof(); 29724: 29724: 29724: 29724: const char_type __conv = traits_type::to_char_type(__c); 29724: if (!__testput) 29724: { 29724: # 129 "/usr/include/c++/14/bits/sstream.tcc" 3 29724: const __size_type __opt_len = std::max(__size_type(2 * __capacity), 29724: __size_type(512)); 29724: const __size_type __len = std::min(__opt_len, __max_size); 29724: __string_type __tmp(_M_string.get_allocator()); 29724: __tmp.reserve(__len); 29724: if (this->pbase()) 29724: __tmp.assign(this->pbase(), this->epptr() - this->pbase()); 29724: __tmp.push_back(__conv); 29724: _M_string.swap(__tmp); 29724: _M_sync(const_cast(_M_string.data()), 29724: this->gptr() - this->eback(), this->pptr() - this->pbase()); 29724: } 29724: else 29724: *this->pptr() = __conv; 29724: this->pbump(1); 29724: return __c; 29724: } 29724: 29724: template 29724: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: underflow() 29724: { 29724: int_type __ret = traits_type::eof(); 29724: const bool __testin = this->_M_mode & ios_base::in; 29724: if (__testin) 29724: { 29724: 29724: _M_update_egptr(); 29724: 29724: if (this->gptr() < this->egptr()) 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) 29724: { 29724: pos_type __ret = pos_type(off_type(-1)); 29724: bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 29724: bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 29724: const bool __testboth = __testin && __testout && __way != ios_base::cur; 29724: __testin &= !(__mode & ios_base::out); 29724: __testout &= !(__mode & ios_base::in); 29724: 29724: 29724: 29724: const char_type* __beg = __testin ? this->eback() : this->pbase(); 29724: if ((__beg || !__off) && (__testin || __testout || __testboth)) 29724: { 29724: _M_update_egptr(); 29724: 29724: off_type __newoffi = __off; 29724: off_type __newoffo = __newoffi; 29724: if (__way == ios_base::cur) 29724: { 29724: __newoffi += this->gptr() - __beg; 29724: __newoffo += this->pptr() - __beg; 29724: } 29724: else if (__way == ios_base::end) 29724: __newoffo = __newoffi += this->egptr() - __beg; 29724: 29724: if ((__testin || __testboth) 29724: && __newoffi >= 0 29724: && this->egptr() - __beg >= __newoffi) 29724: { 29724: this->setg(this->eback(), this->eback() + __newoffi, 29724: this->egptr()); 29724: __ret = pos_type(__newoffi); 29724: } 29724: if ((__testout || __testboth) 29724: && __newoffo >= 0 29724: && this->egptr() - __beg >= __newoffo) 29724: { 29724: _M_pbump(this->pbase(), this->epptr(), __newoffo); 29724: __ret = pos_type(__newoffo); 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: seekpos(pos_type __sp, ios_base::openmode __mode) 29724: { 29724: pos_type __ret = pos_type(off_type(-1)); 29724: const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 29724: const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 29724: 29724: const char_type* __beg = __testin ? this->eback() : this->pbase(); 29724: if ((__beg || !off_type(__sp)) && (__testin || __testout)) 29724: { 29724: _M_update_egptr(); 29724: 29724: const off_type __pos(__sp); 29724: const bool __testpos = (0 <= __pos 29724: && __pos <= this->egptr() - __beg); 29724: if (__testpos) 29724: { 29724: if (__testin) 29724: this->setg(this->eback(), this->eback() + __pos, 29724: this->egptr()); 29724: if (__testout) 29724: _M_pbump(this->pbase(), this->epptr(), __pos); 29724: __ret = __sp; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: void 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: _M_sync(char_type* __base, __size_type __i, __size_type __o) 29724: { 29724: const bool __testin = _M_mode & ios_base::in; 29724: const bool __testout = _M_mode & ios_base::out; 29724: char_type* __endg = __base + _M_string.size(); 29724: char_type* __endp = __base + _M_string.capacity(); 29724: 29724: if (__base != _M_string.data()) 29724: { 29724: 29724: __endg += __i; 29724: __i = 0; 29724: __endp = __endg; 29724: } 29724: 29724: if (__testin) 29724: this->setg(__base, __base + __i, __endg); 29724: if (__testout) 29724: { 29724: _M_pbump(__base, __endp, __o); 29724: 29724: 29724: 29724: if (!__testin) 29724: this->setg(__endg, __endg, __endg); 29724: } 29724: } 29724: 29724: template 29724: void 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) 29724: { 29724: this->setp(__pbeg, __pend); 29724: while (__off > __gnu_cxx::__numeric_traits::__max) 29724: { 29724: this->pbump(__gnu_cxx::__numeric_traits::__max); 29724: __off -= __gnu_cxx::__numeric_traits::__max; 29724: } 29724: this->pbump(__off); 29724: } 29724: 29724: 29724: 29724: 29724: extern template class basic_stringbuf; 29724: extern template class basic_istringstream; 29724: extern template class basic_ostringstream; 29724: extern template class basic_stringstream; 29724: 29724: 29724: extern template class basic_stringbuf; 29724: extern template class basic_istringstream; 29724: extern template class basic_ostringstream; 29724: extern template class basic_stringstream; 29724: 29724: 29724: 29724: 29724: } 29724: # 1239 "/usr/include/c++/14/sstream" 2 3 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 1 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstdarg" 1 3 29724: # 39 "/usr/include/c++/14/cstdarg" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdarg" 3 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 2 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 1 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: namespace rocksdb { 29724: 29724: 29724: class Cache; 29724: class FilterPolicy; 29724: class FlushBlockPolicyFactory; 29724: class PersistentCache; 29724: class RandomAccessFile; 29724: struct TableReaderOptions; 29724: struct TableBuilderOptions; 29724: class TableBuilder; 29724: class TableFactory; 29724: class TableReader; 29724: class WritableFileWriter; 29724: struct ConfigOptions; 29724: struct EnvOptions; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum ChecksumType : char { 29724: kNoChecksum = 0x0, 29724: kCRC32c = 0x1, 29724: kxxHash = 0x2, 29724: kxxHash64 = 0x3, 29724: kXXH3 = 0x4, 29724: }; 29724: 29724: 29724: 29724: 29724: enum class PinningTier { 29724: 29724: 29724: 29724: 29724: kFallback, 29724: 29724: 29724: kNone, 29724: 29724: 29724: 29724: 29724: 29724: 29724: kFlushedAndSimilar, 29724: 29724: 29724: kAll, 29724: }; 29724: 29724: 29724: 29724: struct MetadataCacheOptions { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: PinningTier top_level_index_pinning = PinningTier::kFallback; 29724: 29724: 29724: 29724: PinningTier partition_pinning = PinningTier::kFallback; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: PinningTier unpartitioned_pinning = PinningTier::kFallback; 29724: }; 29724: 29724: struct CacheEntryRoleOptions { 29724: enum class Decision { 29724: kEnabled, 29724: kDisabled, 29724: kFallback, 29724: }; 29724: Decision charged = Decision::kFallback; 29724: bool operator==(const CacheEntryRoleOptions& other) const { 29724: return charged == other.charged; 29724: } 29724: }; 29724: 29724: struct CacheUsageOptions { 29724: CacheEntryRoleOptions options; 29724: std::map options_overrides; 29724: }; 29724: # 147 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: struct BlockBasedTableOptions { 29724: static const char* kName() { return "BlockTableOptions"; } 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr flush_block_policy_factory; 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool cache_index_and_filter_blocks = false; 29724: 29724: 29724: 29724: 29724: 29724: bool cache_index_and_filter_blocks_with_high_priority = true; 29724: # 196 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool pin_l0_filter_and_index_blocks_in_cache = false; 29724: # 218 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool pin_top_level_index_and_filter = true; 29724: 29724: 29724: 29724: 29724: 29724: MetadataCacheOptions metadata_cache_options; 29724: 29724: 29724: enum IndexType : char { 29724: 29724: 29724: kBinarySearch = 0x00, 29724: 29724: 29724: 29724: kHashSearch = 0x01, 29724: 29724: 29724: 29724: 29724: kTwoLevelIndexSearch = 0x02, 29724: # 252 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: kBinarySearchWithFirstKey = 0x03, 29724: }; 29724: 29724: IndexType index_type = kBinarySearch; 29724: 29724: 29724: enum DataBlockIndexType : char { 29724: kDataBlockBinarySearch = 0, 29724: kDataBlockBinaryAndHash = 1, 29724: }; 29724: 29724: DataBlockIndexType data_block_index_type = kDataBlockBinarySearch; 29724: 29724: 29724: 29724: double data_block_hash_table_util_ratio = 0.75; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ChecksumType checksum = kXXH3; 29724: 29724: 29724: 29724: 29724: 29724: bool no_block_cache = false; 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: std::shared_ptr block_cache = nullptr; 29724: 29724: 29724: 29724: std::shared_ptr persistent_cache = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t block_size = 4 * 1024; 29724: 29724: 29724: 29724: 29724: 29724: 29724: int block_size_deviation = 10; 29724: 29724: 29724: 29724: 29724: 29724: int block_restart_interval = 16; 29724: 29724: 29724: int index_block_restart_interval = 1; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t metadata_block_size = 4096; 29724: # 412 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: CacheUsageOptions cache_usage_options; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool partition_filters = false; 29724: # 437 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool decouple_partitioned_filters = false; 29724: # 472 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool optimize_filters_for_memory = true; 29724: 29724: 29724: 29724: 29724: 29724: bool use_delta_encoding = true; 29724: 29724: 29724: 29724: 29724: std::shared_ptr filter_policy = nullptr; 29724: 29724: 29724: 29724: bool whole_key_filtering = true; 29724: # 497 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool detect_filter_construct_corruption = false; 29724: 29724: 29724: 29724: 29724: bool verify_compression = false; 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: uint32_t read_amp_bytes_per_bit = 0; 29724: # 563 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: uint32_t format_version = 6; 29724: 29724: 29724: 29724: 29724: bool enable_index_compression = true; 29724: 29724: 29724: bool block_align = false; 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: enum class IndexShorteningMode : char { 29724: 29724: kNoShortening, 29724: 29724: 29724: kShortenSeparators, 29724: 29724: kShortenSeparatorsAndSuccessor, 29724: }; 29724: 29724: IndexShorteningMode index_shortening = 29724: IndexShorteningMode::kShortenSeparators; 29724: # 627 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: size_t max_auto_readahead_size = 256 * 1024; 29724: # 637 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: enum class PrepopulateBlockCache : char { 29724: 29724: kDisable, 29724: 29724: kFlushOnly, 29724: }; 29724: 29724: PrepopulateBlockCache prepopulate_block_cache = 29724: PrepopulateBlockCache::kDisable; 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: size_t initial_auto_readahead_size = 8 * 1024; 29724: # 687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: uint64_t num_file_reads_for_auto_readahead = 2; 29724: }; 29724: 29724: 29724: struct BlockBasedTablePropertyNames { 29724: 29724: static const std::string kIndexType; 29724: 29724: static const std::string kWholeKeyFiltering; 29724: 29724: static const std::string kPrefixFiltering; 29724: 29724: 29724: 29724: 29724: static const std::string kDecoupledPartitionedFilters; 29724: }; 29724: 29724: 29724: TableFactory* NewBlockBasedTableFactory( 29724: const BlockBasedTableOptions& table_options = BlockBasedTableOptions()); 29724: 29724: enum EncodingType : char { 29724: 29724: kPlain, 29724: # 723 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: kPrefix, 29724: }; 29724: 29724: 29724: struct PlainTablePropertyNames { 29724: static const std::string kEncodingType; 29724: static const std::string kBloomVersion; 29724: static const std::string kNumBloomBlocks; 29724: }; 29724: 29724: const uint32_t kPlainTableVariableLength = 0; 29724: 29724: struct PlainTableOptions { 29724: static const char* kName() { return "PlainTableOptions"; } 29724: 29724: 29724: 29724: 29724: uint32_t user_key_len = kPlainTableVariableLength; 29724: 29724: 29724: 29724: int bloom_bits_per_key = 10; 29724: 29724: 29724: 29724: 29724: 29724: double hash_table_ratio = 0.75; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t index_sparseness = 16; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t huge_page_tlb_size = 0; 29724: # 776 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: EncodingType encoding_type = kPlain; 29724: 29724: 29724: 29724: bool full_scan_mode = false; 29724: 29724: 29724: 29724: 29724: bool store_index_in_file = false; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: TableFactory* NewPlainTableFactory( 29724: const PlainTableOptions& options = PlainTableOptions()); 29724: 29724: struct CuckooTablePropertyNames { 29724: 29724: static const std::string kEmptyKey; 29724: 29724: static const std::string kValueLength; 29724: 29724: static const std::string kNumHashFunc; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kCuckooBlockSize; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kHashTableSize; 29724: 29724: 29724: static const std::string kIsLastLevel; 29724: 29724: static const std::string kIdentityAsFirstHash; 29724: 29724: static const std::string kUseModuleHash; 29724: 29724: static const std::string kUserKeyLength; 29724: }; 29724: 29724: struct CuckooTableOptions { 29724: static const char* kName() { return "CuckooTableOptions"; } 29724: 29724: 29724: 29724: double hash_table_ratio = 0.9; 29724: 29724: 29724: 29724: 29724: 29724: uint32_t max_search_depth = 100; 29724: 29724: 29724: 29724: 29724: 29724: uint32_t cuckoo_block_size = 5; 29724: 29724: 29724: 29724: 29724: bool identity_as_first_hash = false; 29724: 29724: 29724: 29724: 29724: 29724: bool use_module_hash = true; 29724: }; 29724: 29724: 29724: TableFactory* NewCuckooTableFactory( 29724: const CuckooTableOptions& table_options = CuckooTableOptions()); 29724: 29724: class RandomAccessFileReader; 29724: 29724: 29724: class TableFactory : public Customizable { 29724: public: 29724: ~TableFactory() override {} 29724: 29724: static const char* kBlockCacheOpts() { return "BlockCache"; } 29724: static const char* kBlockBasedTableName() { return "BlockBasedTable"; } 29724: static const char* kPlainTableName() { return "PlainTable"; } 29724: static const char* kCuckooTableName() { return "CuckooTable"; } 29724: 29724: 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& id, 29724: std::shared_ptr* factory); 29724: 29724: static const char* Type() { return "TableFactory"; } 29724: # 900 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: virtual Status NewTableReader( 29724: const TableReaderOptions& table_reader_options, 29724: std::unique_ptr&& file, uint64_t file_size, 29724: std::unique_ptr* table_reader, 29724: bool prefetch_index_and_filter_in_cache = true) const { 29724: ReadOptions ro; 29724: return NewTableReader(ro, table_reader_options, std::move(file), file_size, 29724: table_reader, prefetch_index_and_filter_in_cache); 29724: } 29724: 29724: 29724: 29724: virtual Status NewTableReader( 29724: const ReadOptions& ro, const TableReaderOptions& table_reader_options, 29724: std::unique_ptr&& file, uint64_t file_size, 29724: std::unique_ptr* table_reader, 29724: bool prefetch_index_and_filter_in_cache) const = 0; 29724: # 936 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: virtual TableBuilder* NewTableBuilder( 29724: const TableBuilderOptions& table_builder_options, 29724: WritableFileWriter* file) const = 0; 29724: 29724: 29724: 29724: 29724: virtual std::unique_ptr Clone() const = 0; 29724: 29724: 29724: virtual bool IsDeleteRangeSupported() const { return false; } 29724: }; 29724: # 958 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: TableFactory* NewAdaptiveTableFactory( 29724: std::shared_ptr table_factory_to_write = nullptr, 29724: std::shared_ptr block_based_table_factory = nullptr, 29724: std::shared_ptr plain_table_factory = nullptr, 29724: std::shared_ptr cuckoo_table_factory = nullptr); 29724: 29724: } 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class FileLock; 29724: class FSDirectory; 29724: class FSRandomAccessFile; 29724: class FSRandomRWFile; 29724: class FSSequentialFile; 29724: class FSWritableFile; 29724: class Logger; 29724: class Slice; 29724: struct ImmutableDBOptions; 29724: struct MutableDBOptions; 29724: class RateLimiter; 29724: struct ConfigOptions; 29724: 29724: using AccessPattern = RandomAccessFile::AccessPattern; 29724: using FileAttributes = Env::FileAttributes; 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum class IOPriority : uint8_t { 29724: kIOLow, 29724: kIOHigh, 29724: kIOTotal, 29724: }; 29724: 29724: 29724: 29724: 29724: enum class IOType : uint8_t { 29724: kData, 29724: kFilter, 29724: kIndex, 29724: kMetadata, 29724: kWAL, 29724: kManifest, 29724: kLog, 29724: kUnknown, 29724: kInvalid, 29724: }; 29724: 29724: 29724: 29724: enum FSSupportedOps { 29724: kAsyncIO, 29724: kFSBuffer, 29724: 29724: kVerifyAndReconstructRead, 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: struct IOOptions { 29724: 29724: std::chrono::microseconds timeout; 29724: 29724: 29724: 29724: IOPriority prio; 29724: 29724: 29724: 29724: 29724: 29724: Env::IOPriority rate_limiter_priority; 29724: 29724: 29724: IOType type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::unordered_map property_bag; 29724: 29724: 29724: 29724: bool force_dir_fsync; 29724: 29724: 29724: 29724: bool do_not_recurse; 29724: # 140 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: bool verify_and_reconstruct_read; 29724: 29724: 29724: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29724: 29724: IOOptions() : IOOptions(false) {} 29724: 29724: explicit IOOptions(bool force_dir_fsync_) 29724: : timeout(std::chrono::microseconds::zero()), 29724: prio(IOPriority::kIOLow), 29724: rate_limiter_priority(Env::IO_TOTAL), 29724: type(IOType::kUnknown), 29724: force_dir_fsync(force_dir_fsync_), 29724: do_not_recurse(false), 29724: verify_and_reconstruct_read(false) {} 29724: }; 29724: 29724: struct DirFsyncOptions { 29724: enum FsyncReason : uint8_t { 29724: kNewFileSynced, 29724: kFileRenamed, 29724: kDirRenamed, 29724: kFileDeleted, 29724: kDefault, 29724: } reason; 29724: 29724: std::string renamed_new_name; 29724: 29724: 29724: DirFsyncOptions(); 29724: 29724: explicit DirFsyncOptions(std::string file_renamed_new_name); 29724: 29724: explicit DirFsyncOptions(FsyncReason fsync_reason); 29724: }; 29724: 29724: 29724: 29724: 29724: struct FileOptions : EnvOptions { 29724: 29724: 29724: IOOptions io_options; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Temperature temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: ChecksumType handoff_checksum_type; 29724: 29724: FileOptions() : EnvOptions(), handoff_checksum_type(ChecksumType::kCRC32c) {} 29724: 29724: FileOptions(const DBOptions& opts) 29724: : EnvOptions(opts), 29724: temperature(opts.metadata_write_temperature), 29724: handoff_checksum_type(ChecksumType::kCRC32c) {} 29724: 29724: FileOptions(const EnvOptions& opts) 29724: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 29724: 29724: FileOptions(const FileOptions& opts) 29724: : EnvOptions(opts), 29724: io_options(opts.io_options), 29724: temperature(opts.temperature), 29724: handoff_checksum_type(opts.handoff_checksum_type) {} 29724: 29724: FileOptions& operator=(const FileOptions&) = default; 29724: }; 29724: 29724: 29724: 29724: struct IODebugContext { 29724: 29724: std::string file_path; 29724: 29724: 29724: std::map counters; 29724: 29724: 29724: std::string msg; 29724: 29724: 29724: std::string request_id; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum TraceData : char { 29724: 29724: 29724: 29724: kRequestID = 0, 29724: }; 29724: uint64_t trace_data = 0; 29724: 29724: IODebugContext() {} 29724: 29724: void AddCounter(std::string& name, uint64_t value) { 29724: counters.emplace(name, value); 29724: } 29724: 29724: 29724: 29724: void SetRequestId(const std::string& _request_id) { 29724: request_id = _request_id; 29724: trace_data |= (1 << TraceData::kRequestID); 29724: } 29724: 29724: std::string ToString() { 29724: std::ostringstream ss; 29724: ss << file_path << ", "; 29724: for (auto counter : counters) { 29724: ss << counter.first << " = " << counter.second << ","; 29724: } 29724: ss << msg; 29724: return ss.str(); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: using IOHandleDeleter = std::function; 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: class FileSystem : public Customizable { 29724: public: 29724: FileSystem(); 29724: 29724: 29724: FileSystem(const FileSystem&) = delete; 29724: 29724: virtual ~FileSystem(); 29724: 29724: static const char* Type() { return "FileSystem"; } 29724: static const char* kDefaultName() { return "DefaultFileSystem"; } 29724: # 313 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: static Status CreateFromString(const ConfigOptions& options, 29724: const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: static std::shared_ptr Default(); 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual Status RegisterDbPaths(const std::vector& ) { 29724: return Status::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status UnregisterDbPaths(const std::vector& ) { 29724: return Status::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus NewSequentialFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) = 0; 29724: # 368 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus NewRandomAccessFile( 29724: const std::string& fname, const FileOptions& file_opts, 29724: std::unique_ptr* result, IODebugContext* dbg) = 0; 29724: 29724: 29724: enum WriteLifeTimeHint { 29724: kWLTHNotSet = 0, 29724: kWLTHNone, 29724: kWLTHShort, 29724: kWLTHMedium, 29724: kWLTHLong, 29724: kWLTHExtreme, 29724: }; 29724: # 389 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus NewWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) = 0; 29724: # 402 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus ReopenWritableFile( 29724: const std::string& , const FileOptions& , 29724: std::unique_ptr* , IODebugContext* ) { 29724: return IOStatus::NotSupported("ReopenWritableFile"); 29724: } 29724: 29724: 29724: virtual IOStatus ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus NewRandomRWFile(const std::string& , 29724: const FileOptions& , 29724: std::unique_ptr* , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported( 29724: "RandomRWFile is not implemented in this FileSystem"); 29724: } 29724: 29724: 29724: 29724: 29724: virtual IOStatus NewMemoryMappedFileBuffer( 29724: const std::string& , 29724: std::unique_ptr* ) { 29724: return IOStatus::NotSupported( 29724: "MemoryMappedFileBuffer is not implemented in this FileSystem"); 29724: } 29724: # 445 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus NewDirectory(const std::string& name, 29724: const IOOptions& io_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus FileExists(const std::string& fname, 29724: const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus GetChildren(const std::string& dir, const IOOptions& options, 29724: std::vector* result, 29724: IODebugContext* dbg) = 0; 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus GetChildrenFileAttributes( 29724: const std::string& dir, const IOOptions& options, 29724: std::vector* result, IODebugContext* dbg) { 29724: 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: (static_cast ( 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: result != nullptr 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: "result != nullptr" 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: ; 29724: std::vector child_fnames; 29724: IOStatus s = GetChildren(dir, options, &child_fnames, dbg); 29724: if (!s.ok()) { 29724: return s; 29724: } 29724: result->resize(child_fnames.size()); 29724: size_t result_size = 0; 29724: for (size_t i = 0; i < child_fnames.size(); ++i) { 29724: const std::string path = dir + "/" + child_fnames[i]; 29724: if (!(s = GetFileSize(path, options, &(*result)[result_size].size_bytes, 29724: dbg)) 29724: .ok()) { 29724: if (FileExists(path, options, dbg).IsNotFound()) { 29724: 29724: continue; 29724: } 29724: return s; 29724: } 29724: (*result)[result_size].name = std::move(child_fnames[i]); 29724: result_size++; 29724: } 29724: result->resize(result_size); 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus DeleteFile(const std::string& fname, 29724: const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: virtual IOStatus Truncate(const std::string& , size_t , 29724: const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported( 29724: "Truncate is not supported for this FileSystem"); 29724: } 29724: 29724: 29724: virtual IOStatus CreateDir(const std::string& dirname, 29724: const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: virtual IOStatus CreateDirIfMissing(const std::string& dirname, 29724: const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: virtual IOStatus DeleteDir(const std::string& dirname, 29724: const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: 29724: virtual IOStatus GetFileSize(const std::string& fname, 29724: const IOOptions& options, uint64_t* file_size, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: virtual IOStatus GetFileModificationTime(const std::string& fname, 29724: const IOOptions& options, 29724: uint64_t* file_mtime, 29724: IODebugContext* dbg) = 0; 29724: 29724: virtual IOStatus RenameFile(const std::string& src, const std::string& target, 29724: const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: virtual IOStatus LinkFile(const std::string& , 29724: const std::string& , 29724: const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported( 29724: "LinkFile is not supported for this FileSystem"); 29724: } 29724: 29724: virtual IOStatus NumFileLinks(const std::string& , 29724: const IOOptions& , 29724: uint64_t* , IODebugContext* ) { 29724: return IOStatus::NotSupported( 29724: "Getting number of file links is not supported for this FileSystem"); 29724: } 29724: 29724: virtual IOStatus AreFilesSame(const std::string& , 29724: const std::string& , 29724: const IOOptions& , bool* , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported( 29724: "AreFilesSame is not supported for this FileSystem"); 29724: } 29724: # 593 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus LockFile(const std::string& fname, const IOOptions& options, 29724: FileLock** lock, IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: virtual IOStatus UnlockFile(FileLock* lock, const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: virtual IOStatus NewLogger(const std::string& fname, const IOOptions& io_opts, 29724: std::shared_ptr* result, 29724: IODebugContext* dbg); 29724: 29724: 29724: virtual IOStatus GetAbsolutePath(const std::string& db_path, 29724: const IOOptions& options, 29724: std::string* output_path, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: virtual void SanitizeFileOptions(FileOptions* ) const {} 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForLogRead(const FileOptions& file_options) const; 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForManifestRead( 29724: const FileOptions& file_options) const; 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForLogWrite(const FileOptions& file_options, 29724: const DBOptions& db_options) const; 29724: 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForManifestWrite( 29724: const FileOptions& file_options) const; 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForCompactionTableWrite( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& immutable_ops) const; 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForCompactionTableRead( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& db_options) const; 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForBlobFileRead( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& db_options) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus GetFreeSpace(const std::string& , 29724: const IOOptions& , 29724: uint64_t* , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("GetFreeSpace"); 29724: } 29724: 29724: virtual IOStatus IsDirectory(const std::string& , 29724: const IOOptions& options, bool* is_dir, 29724: IODebugContext* ) = 0; 29724: # 694 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Poll(std::vector& , 29724: size_t ) { 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus AbortIO(std::vector& ) { 29724: return IOStatus::OK(); 29724: } 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual void DiscardCacheForDirectory(const std::string& ) {} 29724: # 727 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual void SupportedOps(int64_t& supported_ops) { 29724: supported_ops = 0; 29724: supported_ops |= (1 << FSSupportedOps::kAsyncIO); 29724: } 29724: 29724: 29724: 29724: private: 29724: void operator=(const FileSystem&); 29724: }; 29724: 29724: 29724: class FSSequentialFile { 29724: public: 29724: FSSequentialFile() {} 29724: 29724: virtual ~FSSequentialFile() {} 29724: # 757 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29724: char* scratch, IODebugContext* dbg) = 0; 29724: # 767 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Skip(uint64_t n) = 0; 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: 29724: virtual IOStatus InvalidateCache(size_t , size_t ) { 29724: return IOStatus::NotSupported("InvalidateCache not supported."); 29724: } 29724: 29724: 29724: 29724: virtual IOStatus PositionedRead(uint64_t , size_t , 29724: const IOOptions& , 29724: Slice* , char* , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("PositionedRead"); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29724: 29724: 29724: 29724: }; 29724: 29724: using FSAllocationPtr = std::unique_ptr>; 29724: 29724: 29724: struct FSReadRequest { 29724: 29724: uint64_t offset; 29724: 29724: 29724: 29724: size_t len; 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: char* scratch; 29724: # 836 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: Slice result; 29724: 29724: 29724: 29724: IOStatus status; 29724: # 865 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: FSAllocationPtr fs_scratch; 29724: }; 29724: 29724: 29724: class FSRandomAccessFile { 29724: public: 29724: FSRandomAccessFile() {} 29724: 29724: virtual ~FSRandomAccessFile() {} 29724: # 889 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const = 0; 29724: 29724: 29724: 29724: 29724: virtual IOStatus Prefetch(uint64_t , size_t , 29724: const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("Prefetch"); 29724: } 29724: # 910 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29724: const IOOptions& options, IODebugContext* dbg) { 29724: 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: (static_cast ( 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: reqs != nullptr 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: "reqs != nullptr" 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: ; 29724: for (size_t i = 0; i < num_reqs; ++i) { 29724: FSReadRequest& req = reqs[i]; 29724: req.status = 29724: Read(req.offset, req.len, options, &req.result, req.scratch, dbg); 29724: } 29724: return IOStatus::OK(); 29724: } 29724: # 936 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: 29724: } 29724: 29724: enum AccessPattern { kNormal, kRandom, kSequential, kWillNeed, kWontNeed }; 29724: 29724: virtual void Hint(AccessPattern ) {} 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: 29724: virtual IOStatus InvalidateCache(size_t , size_t ) { 29724: return IOStatus::NotSupported("InvalidateCache not supported."); 29724: } 29724: # 992 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29724: std::function cb, 29724: void* cb_arg, void** , 29724: IOHandleDeleter* , IODebugContext* dbg) { 29724: req.status = 29724: Read(req.offset, req.len, opts, &(req.result), req.scratch, dbg); 29724: cb(req, cb_arg); 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: struct DataVerificationInfo { 29724: 29724: Slice checksum; 29724: }; 29724: 29724: 29724: 29724: 29724: class FSWritableFile { 29724: public: 29724: FSWritableFile() 29724: : last_preallocated_block_(0), 29724: preallocation_block_size_(0), 29724: io_priority_(Env::IO_TOTAL), 29724: write_hint_(Env::WLTH_NOT_SET), 29724: strict_bytes_per_sync_(false) {} 29724: 29724: explicit FSWritableFile(const FileOptions& options) 29724: : last_preallocated_block_(0), 29724: preallocation_block_size_(0), 29724: io_priority_(Env::IO_TOTAL), 29724: write_hint_(Env::WLTH_NOT_SET), 29724: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 29724: 29724: 29724: 29724: 29724: virtual ~FSWritableFile() {} 29724: 29724: 29724: 29724: 29724: virtual IOStatus Append(const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: # 1058 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Append(const Slice& data, const IOOptions& options, 29724: const DataVerificationInfo& , 29724: IODebugContext* dbg) { 29724: return Append(data, options, dbg); 29724: } 29724: # 1084 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus PositionedAppend(const Slice& , 29724: uint64_t , 29724: const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("PositionedAppend"); 29724: } 29724: # 1099 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus PositionedAppend( 29724: const Slice& , uint64_t , 29724: const IOOptions& , 29724: const DataVerificationInfo& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("PositionedAppend"); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus Truncate(uint64_t , const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus Close(const IOOptions& , 29724: IODebugContext* ) = 0; 29724: 29724: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 29724: virtual IOStatus Sync(const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 29724: return Sync(options, dbg); 29724: } 29724: 29724: 29724: 29724: virtual bool IsSyncThreadSafe() const { return false; } 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 29724: write_hint_ = hint; 29724: } 29724: # 1165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 29724: 29724: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 29724: 29724: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 29724: 29724: 29724: 29724: virtual uint64_t GetFileSize(const IOOptions& , 29724: IODebugContext* ) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void SetPreallocationBlockSize(size_t size) { 29724: preallocation_block_size_ = size; 29724: } 29724: 29724: virtual void GetPreallocationStatus(size_t* block_size, 29724: size_t* last_allocated_block) { 29724: *last_allocated_block = last_preallocated_block_; 29724: *block_size = preallocation_block_size_; 29724: } 29724: 29724: 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus InvalidateCache(size_t , size_t ) { 29724: return IOStatus::NotSupported("InvalidateCache not supported."); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus RangeSync(uint64_t , uint64_t , 29724: const IOOptions& options, IODebugContext* dbg) { 29724: if (strict_bytes_per_sync_) { 29724: return Sync(options, dbg); 29724: } 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 29724: IODebugContext* dbg) { 29724: if (preallocation_block_size_ == 0) { 29724: return; 29724: } 29724: 29724: 29724: 29724: const auto block_size = preallocation_block_size_; 29724: size_t new_last_preallocated_block = 29724: (offset + len + block_size - 1) / block_size; 29724: if (new_last_preallocated_block > last_preallocated_block_) { 29724: size_t num_spanned_blocks = 29724: new_last_preallocated_block - last_preallocated_block_; 29724: Allocate(block_size * last_preallocated_block_, 29724: block_size * num_spanned_blocks, options, dbg) 29724: .PermitUncheckedError(); 29724: last_preallocated_block_ = new_last_preallocated_block; 29724: } 29724: } 29724: 29724: 29724: virtual IOStatus Allocate(uint64_t , uint64_t , 29724: const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: protected: 29724: size_t preallocation_block_size() { return preallocation_block_size_; } 29724: 29724: private: 29724: size_t last_preallocated_block_; 29724: size_t preallocation_block_size_; 29724: 29724: FSWritableFile(const FSWritableFile&); 29724: void operator=(const FSWritableFile&); 29724: 29724: protected: 29724: Env::IOPriority io_priority_; 29724: Env::WriteLifeTimeHint write_hint_; 29724: const bool strict_bytes_per_sync_; 29724: }; 29724: 29724: 29724: class FSRandomRWFile { 29724: public: 29724: FSRandomRWFile() {} 29724: 29724: 29724: 29724: 29724: virtual ~FSRandomRWFile() {} 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: virtual IOStatus Write(uint64_t offset, const Slice& data, 29724: const IOOptions& options, IODebugContext* dbg) = 0; 29724: # 1302 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const = 0; 29724: 29724: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 29724: return Sync(options, dbg); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29724: 29724: 29724: 29724: 29724: 29724: FSRandomRWFile(const RandomRWFile&) = delete; 29724: FSRandomRWFile& operator=(const RandomRWFile&) = delete; 29724: }; 29724: 29724: 29724: 29724: class FSMemoryMappedFileBuffer { 29724: public: 29724: FSMemoryMappedFileBuffer(void* _base, size_t _length) 29724: : base_(_base), length_(_length) {} 29724: 29724: virtual ~FSMemoryMappedFileBuffer() = 0; 29724: 29724: 29724: 29724: FSMemoryMappedFileBuffer(const FSMemoryMappedFileBuffer&) = delete; 29724: FSMemoryMappedFileBuffer& operator=(const FSMemoryMappedFileBuffer&) = delete; 29724: 29724: void* GetBase() const { return base_; } 29724: size_t GetLen() const { return length_; } 29724: 29724: protected: 29724: void* base_; 29724: const size_t length_; 29724: }; 29724: 29724: 29724: 29724: class FSDirectory { 29724: public: 29724: 29724: 29724: 29724: virtual ~FSDirectory() {} 29724: 29724: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: virtual IOStatus FsyncWithDirOptions( 29724: const IOOptions& options, IODebugContext* dbg, 29724: const DirFsyncOptions& ) { 29724: return Fsync(options, dbg); 29724: } 29724: 29724: 29724: 29724: 29724: virtual IOStatus Close(const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("Close"); 29724: } 29724: 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: }; 29724: # 1424 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: class FileSystemWrapper : public FileSystem { 29724: public: 29724: 29724: explicit FileSystemWrapper(const std::shared_ptr& t); 29724: ~FileSystemWrapper() override {} 29724: 29724: 29724: FileSystem* target() const { return target_.get(); } 29724: 29724: 29724: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 29724: std::unique_ptr* r, 29724: IODebugContext* dbg) override { 29724: return target_->NewSequentialFile(f, file_opts, r, dbg); 29724: } 29724: IOStatus NewRandomAccessFile(const std::string& f, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* r, 29724: IODebugContext* dbg) override { 29724: return target_->NewRandomAccessFile(f, file_opts, r, dbg); 29724: } 29724: IOStatus NewWritableFile(const std::string& f, const FileOptions& file_opts, 29724: std::unique_ptr* r, 29724: IODebugContext* dbg) override { 29724: return target_->NewWritableFile(f, file_opts, r, dbg); 29724: } 29724: IOStatus ReopenWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override { 29724: return target_->ReopenWritableFile(fname, file_opts, result, dbg); 29724: } 29724: IOStatus ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* r, 29724: IODebugContext* dbg) override { 29724: return target_->ReuseWritableFile(fname, old_fname, file_opts, r, dbg); 29724: } 29724: IOStatus NewRandomRWFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override { 29724: return target_->NewRandomRWFile(fname, file_opts, result, dbg); 29724: } 29724: IOStatus NewMemoryMappedFileBuffer( 29724: const std::string& fname, 29724: std::unique_ptr* result) override { 29724: return target_->NewMemoryMappedFileBuffer(fname, result); 29724: } 29724: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override { 29724: return target_->NewDirectory(name, io_opts, result, dbg); 29724: } 29724: IOStatus FileExists(const std::string& f, const IOOptions& io_opts, 29724: IODebugContext* dbg) override { 29724: return target_->FileExists(f, io_opts, dbg); 29724: } 29724: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 29724: std::vector* r, 29724: IODebugContext* dbg) override { 29724: return target_->GetChildren(dir, io_opts, r, dbg); 29724: } 29724: IOStatus GetChildrenFileAttributes(const std::string& dir, 29724: const IOOptions& options, 29724: std::vector* result, 29724: IODebugContext* dbg) override { 29724: return target_->GetChildrenFileAttributes(dir, options, result, dbg); 29724: } 29724: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->DeleteFile(f, options, dbg); 29724: } 29724: IOStatus Truncate(const std::string& fname, size_t size, 29724: const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Truncate(fname, size, options, dbg); 29724: } 29724: IOStatus CreateDir(const std::string& d, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->CreateDir(d, options, dbg); 29724: } 29724: IOStatus CreateDirIfMissing(const std::string& d, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->CreateDirIfMissing(d, options, dbg); 29724: } 29724: IOStatus DeleteDir(const std::string& d, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->DeleteDir(d, options, dbg); 29724: } 29724: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 29724: uint64_t* s, IODebugContext* dbg) override { 29724: return target_->GetFileSize(f, options, s, dbg); 29724: } 29724: 29724: IOStatus GetFileModificationTime(const std::string& fname, 29724: const IOOptions& options, 29724: uint64_t* file_mtime, 29724: IODebugContext* dbg) override { 29724: return target_->GetFileModificationTime(fname, options, file_mtime, dbg); 29724: } 29724: 29724: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 29724: std::string* output_path, 29724: IODebugContext* dbg) override { 29724: return target_->GetAbsolutePath(db_path, options, output_path, dbg); 29724: } 29724: 29724: IOStatus RenameFile(const std::string& s, const std::string& t, 29724: const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->RenameFile(s, t, options, dbg); 29724: } 29724: 29724: IOStatus LinkFile(const std::string& s, const std::string& t, 29724: const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->LinkFile(s, t, options, dbg); 29724: } 29724: 29724: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 29724: uint64_t* count, IODebugContext* dbg) override { 29724: return target_->NumFileLinks(fname, options, count, dbg); 29724: } 29724: 29724: IOStatus AreFilesSame(const std::string& first, const std::string& second, 29724: const IOOptions& options, bool* res, 29724: IODebugContext* dbg) override { 29724: return target_->AreFilesSame(first, second, options, res, dbg); 29724: } 29724: 29724: IOStatus LockFile(const std::string& f, const IOOptions& options, 29724: FileLock** l, IODebugContext* dbg) override { 29724: return target_->LockFile(f, options, l, dbg); 29724: } 29724: 29724: IOStatus UnlockFile(FileLock* l, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->UnlockFile(l, options, dbg); 29724: } 29724: 29724: IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 29724: IODebugContext* dbg) override { 29724: return target_->GetTestDirectory(options, path, dbg); 29724: } 29724: IOStatus NewLogger(const std::string& fname, const IOOptions& options, 29724: std::shared_ptr* result, 29724: IODebugContext* dbg) override { 29724: return target_->NewLogger(fname, options, result, dbg); 29724: } 29724: 29724: void SanitizeFileOptions(FileOptions* opts) const override { 29724: target_->SanitizeFileOptions(opts); 29724: } 29724: 29724: FileOptions OptimizeForLogRead( 29724: const FileOptions& file_options) const override { 29724: return target_->OptimizeForLogRead(file_options); 29724: } 29724: FileOptions OptimizeForManifestRead( 29724: const FileOptions& file_options) const override { 29724: return target_->OptimizeForManifestRead(file_options); 29724: } 29724: FileOptions OptimizeForLogWrite(const FileOptions& file_options, 29724: const DBOptions& db_options) const override { 29724: return target_->OptimizeForLogWrite(file_options, db_options); 29724: } 29724: FileOptions OptimizeForManifestWrite( 29724: const FileOptions& file_options) const override { 29724: return target_->OptimizeForManifestWrite(file_options); 29724: } 29724: FileOptions OptimizeForCompactionTableWrite( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& immutable_ops) const override { 29724: return target_->OptimizeForCompactionTableWrite(file_options, 29724: immutable_ops); 29724: } 29724: FileOptions OptimizeForCompactionTableRead( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& db_options) const override { 29724: return target_->OptimizeForCompactionTableRead(file_options, db_options); 29724: } 29724: FileOptions OptimizeForBlobFileRead( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& db_options) const override { 29724: return target_->OptimizeForBlobFileRead(file_options, db_options); 29724: } 29724: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 29724: uint64_t* diskfree, IODebugContext* dbg) override { 29724: return target_->GetFreeSpace(path, options, diskfree, dbg); 29724: } 29724: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 29724: bool* is_dir, IODebugContext* dbg) override { 29724: return target_->IsDirectory(path, options, is_dir, dbg); 29724: } 29724: 29724: const Customizable* Inner() const override { return target_.get(); } 29724: Status PrepareOptions(const ConfigOptions& options) override; 29724: std::string SerializeOptions(const ConfigOptions& config_options, 29724: const std::string& header) const override; 29724: 29724: IOStatus Poll(std::vector& io_handles, 29724: size_t min_completions) override { 29724: return target_->Poll(io_handles, min_completions); 29724: } 29724: 29724: IOStatus AbortIO(std::vector& io_handles) override { 29724: return target_->AbortIO(io_handles); 29724: } 29724: 29724: void DiscardCacheForDirectory(const std::string& path) override { 29724: target_->DiscardCacheForDirectory(path); 29724: } 29724: 29724: void SupportedOps(int64_t& supported_ops) override { 29724: return target_->SupportedOps(supported_ops); 29724: } 29724: 29724: protected: 29724: std::shared_ptr target_; 29724: }; 29724: 29724: class FSSequentialFileWrapper : public FSSequentialFile { 29724: public: 29724: 29724: 29724: explicit FSSequentialFileWrapper(FSSequentialFile* t) : target_(t) {} 29724: 29724: FSSequentialFile* target() const { return target_; } 29724: 29724: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29724: char* scratch, IODebugContext* dbg) override { 29724: return target_->Read(n, options, result, scratch, dbg); 29724: } 29724: IOStatus Skip(uint64_t n) override { return target_->Skip(n); } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: IOStatus InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) override { 29724: return target_->PositionedRead(offset, n, options, result, scratch, dbg); 29724: } 29724: Temperature GetTemperature() const override { 29724: return target_->GetTemperature(); 29724: } 29724: 29724: private: 29724: FSSequentialFile* target_; 29724: }; 29724: 29724: class FSSequentialFileOwnerWrapper : public FSSequentialFileWrapper { 29724: public: 29724: 29724: 29724: explicit FSSequentialFileOwnerWrapper(std::unique_ptr&& t) 29724: : FSSequentialFileWrapper(t.get()), guard_(std::move(t)) {} 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: }; 29724: 29724: class FSRandomAccessFileWrapper : public FSRandomAccessFile { 29724: public: 29724: 29724: 29724: explicit FSRandomAccessFileWrapper(FSRandomAccessFile* t) : target_(t) {} 29724: 29724: FSRandomAccessFile* target() const { return target_; } 29724: 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override { 29724: return target_->Read(offset, n, options, result, scratch, dbg); 29724: } 29724: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29724: const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->MultiRead(reqs, num_reqs, options, dbg); 29724: } 29724: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->Prefetch(offset, n, options, dbg); 29724: } 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: IOStatus InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29724: std::function cb, 29724: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29724: IODebugContext* dbg) override { 29724: return target()->ReadAsync(req, opts, cb, cb_arg, io_handle, del_fn, dbg); 29724: } 29724: Temperature GetTemperature() const override { 29724: return target_->GetTemperature(); 29724: } 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: FSRandomAccessFile* target_; 29724: }; 29724: 29724: class FSRandomAccessFileOwnerWrapper : public FSRandomAccessFileWrapper { 29724: public: 29724: 29724: 29724: explicit FSRandomAccessFileOwnerWrapper( 29724: std::unique_ptr&& t) 29724: : FSRandomAccessFileWrapper(t.get()), guard_(std::move(t)) {} 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: }; 29724: 29724: class FSWritableFileWrapper : public FSWritableFile { 29724: public: 29724: 29724: 29724: explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {} 29724: 29724: FSWritableFile* target() const { return target_; } 29724: 29724: IOStatus Append(const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->Append(data, options, dbg); 29724: } 29724: IOStatus Append(const Slice& data, const IOOptions& options, 29724: const DataVerificationInfo& verification_info, 29724: IODebugContext* dbg) override { 29724: return target_->Append(data, options, verification_info, dbg); 29724: } 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->PositionedAppend(data, offset, options, dbg); 29724: } 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: const DataVerificationInfo& verification_info, 29724: IODebugContext* dbg) override { 29724: return target_->PositionedAppend(data, offset, options, verification_info, 29724: dbg); 29724: } 29724: IOStatus Truncate(uint64_t size, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->Truncate(size, options, dbg); 29724: } 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Close(options, dbg); 29724: } 29724: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Flush(options, dbg); 29724: } 29724: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Sync(options, dbg); 29724: } 29724: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Fsync(options, dbg); 29724: } 29724: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 29724: 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: 29724: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 29724: target_->SetWriteLifeTimeHint(hint); 29724: } 29724: 29724: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 29724: return target_->GetWriteLifeTimeHint(); 29724: } 29724: 29724: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->GetFileSize(options, dbg); 29724: } 29724: 29724: void SetPreallocationBlockSize(size_t size) override { 29724: target_->SetPreallocationBlockSize(size); 29724: } 29724: 29724: void GetPreallocationStatus(size_t* block_size, 29724: size_t* last_allocated_block) override { 29724: target_->GetPreallocationStatus(block_size, last_allocated_block); 29724: } 29724: 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: 29724: IOStatus InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: 29724: IOStatus RangeSync(uint64_t offset, uint64_t nbytes, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->RangeSync(offset, nbytes, options, dbg); 29724: } 29724: 29724: void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: target_->PrepareWrite(offset, len, options, dbg); 29724: } 29724: 29724: IOStatus Allocate(uint64_t offset, uint64_t len, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->Allocate(offset, len, options, dbg); 29724: } 29724: 29724: private: 29724: FSWritableFile* target_; 29724: }; 29724: 29724: class FSWritableFileOwnerWrapper : public FSWritableFileWrapper { 29724: public: 29724: 29724: 29724: explicit FSWritableFileOwnerWrapper(std::unique_ptr&& t) 29724: : FSWritableFileWrapper(t.get()), guard_(std::move(t)) {} 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: }; 29724: 29724: class FSRandomRWFileWrapper : public FSRandomRWFile { 29724: public: 29724: 29724: 29724: explicit FSRandomRWFileWrapper(FSRandomRWFile* t) : target_(t) {} 29724: 29724: FSRandomRWFile* target() const { return target_; } 29724: 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->Write(offset, data, options, dbg); 29724: } 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override { 29724: return target_->Read(offset, n, options, result, scratch, dbg); 29724: } 29724: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Flush(options, dbg); 29724: } 29724: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Sync(options, dbg); 29724: } 29724: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Fsync(options, dbg); 29724: } 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Close(options, dbg); 29724: } 29724: Temperature GetTemperature() const override { 29724: return target_->GetTemperature(); 29724: } 29724: 29724: private: 29724: FSRandomRWFile* target_; 29724: }; 29724: 29724: class FSRandomRWFileOwnerWrapper : public FSRandomRWFileWrapper { 29724: public: 29724: 29724: 29724: explicit FSRandomRWFileOwnerWrapper(std::unique_ptr&& t) 29724: : FSRandomRWFileWrapper(t.get()), guard_(std::move(t)) {} 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: }; 29724: 29724: class FSDirectoryWrapper : public FSDirectory { 29724: public: 29724: 29724: 29724: explicit FSDirectoryWrapper(std::unique_ptr&& t) 29724: : guard_(std::move(t)) { 29724: target_ = guard_.get(); 29724: } 29724: 29724: 29724: 29724: explicit FSDirectoryWrapper(FSDirectory* t) : target_(t) {} 29724: 29724: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Fsync(options, dbg); 29724: } 29724: 29724: IOStatus FsyncWithDirOptions( 29724: const IOOptions& options, IODebugContext* dbg, 29724: const DirFsyncOptions& dir_fsync_options) override { 29724: return target_->FsyncWithDirOptions(options, dbg, dir_fsync_options); 29724: } 29724: 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Close(options, dbg); 29724: } 29724: 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: FSDirectory* target_; 29724: }; 29724: 29724: 29724: IOStatus WriteStringToFile(FileSystem* fs, const Slice& data, 29724: const std::string& fname, bool should_sync = false, 29724: const IOOptions& io_options = IOOptions(), 29724: const FileOptions& file_options = FileOptions()); 29724: 29724: 29724: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 29724: std::string* data); 29724: 29724: 29724: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 29724: const IOOptions& opts, std::string* data); 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/fstream" 1 3 29724: # 36 "/usr/include/c++/14/fstream" 3 29724: 29724: # 37 "/usr/include/c++/14/fstream" 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/codecvt.h" 1 3 29724: # 39 "/usr/include/c++/14/bits/codecvt.h" 3 29724: 29724: # 40 "/usr/include/c++/14/bits/codecvt.h" 3 29724: 29724: 29724: 29724: 29724: 29724: # 44 "/usr/include/c++/14/bits/codecvt.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: class codecvt_base 29724: { 29724: public: 29724: enum result 29724: { 29724: ok, 29724: partial, 29724: error, 29724: noconv 29724: }; 29724: }; 29724: # 70 "/usr/include/c++/14/bits/codecvt.h" 3 29724: template 29724: class __codecvt_abstract_base 29724: : public locale::facet, public codecvt_base 29724: { 29724: public: 29724: 29724: typedef codecvt_base::result result; 29724: typedef _InternT intern_type; 29724: typedef _ExternT extern_type; 29724: typedef _StateT state_type; 29724: # 118 "/usr/include/c++/14/bits/codecvt.h" 3 29724: result 29724: out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const 29724: { 29724: return this->do_out(__state, __from, __from_end, __from_next, 29724: __to, __to_end, __to_next); 29724: } 29724: # 157 "/usr/include/c++/14/bits/codecvt.h" 3 29724: result 29724: unshift(state_type& __state, extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const 29724: { return this->do_unshift(__state, __to,__to_end,__to_next); } 29724: # 198 "/usr/include/c++/14/bits/codecvt.h" 3 29724: result 29724: in(state_type& __state, const extern_type* __from, 29724: const extern_type* __from_end, const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const 29724: { 29724: return this->do_in(__state, __from, __from_end, __from_next, 29724: __to, __to_end, __to_next); 29724: } 29724: 29724: int 29724: encoding() const throw() 29724: { return this->do_encoding(); } 29724: 29724: bool 29724: always_noconv() const throw() 29724: { return this->do_always_noconv(); } 29724: 29724: int 29724: length(state_type& __state, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const 29724: { return this->do_length(__state, __from, __end, __max); } 29724: 29724: int 29724: max_length() const throw() 29724: { return this->do_max_length(); } 29724: 29724: protected: 29724: explicit 29724: __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } 29724: 29724: virtual 29724: ~__codecvt_abstract_base() { } 29724: # 239 "/usr/include/c++/14/bits/codecvt.h" 3 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const = 0; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, extern_type* __to, 29724: extern_type* __to_end, extern_type*& __to_next) const = 0; 29724: 29724: virtual result 29724: do_in(state_type& __state, const extern_type* __from, 29724: const extern_type* __from_end, const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const = 0; 29724: 29724: virtual int 29724: do_encoding() const throw() = 0; 29724: 29724: virtual bool 29724: do_always_noconv() const throw() = 0; 29724: 29724: virtual int 29724: do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const = 0; 29724: 29724: virtual int 29724: do_max_length() const throw() = 0; 29724: }; 29724: # 276 "/usr/include/c++/14/bits/codecvt.h" 3 29724: template 29724: class codecvt 29724: : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> 29724: { 29724: public: 29724: 29724: typedef codecvt_base::result result; 29724: typedef _InternT intern_type; 29724: typedef _ExternT extern_type; 29724: typedef _StateT state_type; 29724: 29724: protected: 29724: __c_locale _M_c_locale_codecvt; 29724: 29724: public: 29724: static locale::id id; 29724: 29724: explicit 29724: codecvt(size_t __refs = 0) 29724: : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), 29724: _M_c_locale_codecvt(0) 29724: { } 29724: 29724: explicit 29724: codecvt(__c_locale __cloc, size_t __refs = 0); 29724: 29724: protected: 29724: virtual 29724: ~codecvt() { } 29724: 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, extern_type* __to, 29724: extern_type* __to_end, extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_in(state_type& __state, const extern_type* __from, 29724: const extern_type* __from_end, const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const; 29724: 29724: virtual int 29724: do_encoding() const throw(); 29724: 29724: virtual bool 29724: do_always_noconv() const throw(); 29724: 29724: virtual int 29724: do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const; 29724: 29724: virtual int 29724: do_max_length() const throw(); 29724: }; 29724: 29724: template 29724: locale::id codecvt<_InternT, _ExternT, _StateT>::id; 29724: 29724: 29724: template<> 29724: class codecvt 29724: : public __codecvt_abstract_base 29724: { 29724: friend class messages; 29724: 29724: public: 29724: 29724: typedef char intern_type; 29724: typedef char extern_type; 29724: typedef mbstate_t state_type; 29724: 29724: protected: 29724: __c_locale _M_c_locale_codecvt; 29724: 29724: public: 29724: static locale::id id; 29724: 29724: explicit 29724: codecvt(size_t __refs = 0); 29724: 29724: explicit 29724: codecvt(__c_locale __cloc, size_t __refs = 0); 29724: 29724: protected: 29724: virtual 29724: ~codecvt(); 29724: 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, extern_type* __to, 29724: extern_type* __to_end, extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_in(state_type& __state, const extern_type* __from, 29724: const extern_type* __from_end, const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const; 29724: 29724: virtual int 29724: do_encoding() const throw(); 29724: 29724: virtual bool 29724: do_always_noconv() const throw(); 29724: 29724: virtual int 29724: do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const; 29724: 29724: virtual int 29724: do_max_length() const throw(); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: class codecvt 29724: : public __codecvt_abstract_base 29724: { 29724: friend class messages; 29724: 29724: public: 29724: 29724: typedef wchar_t intern_type; 29724: typedef char extern_type; 29724: typedef mbstate_t state_type; 29724: 29724: protected: 29724: __c_locale _M_c_locale_codecvt; 29724: 29724: public: 29724: static locale::id id; 29724: 29724: explicit 29724: codecvt(size_t __refs = 0); 29724: 29724: explicit 29724: codecvt(__c_locale __cloc, size_t __refs = 0); 29724: 29724: protected: 29724: virtual 29724: ~codecvt(); 29724: 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_in(state_type& __state, 29724: const extern_type* __from, const extern_type* __from_end, 29724: const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const; 29724: 29724: virtual 29724: int do_encoding() const throw(); 29724: 29724: virtual 29724: bool do_always_noconv() const throw(); 29724: 29724: virtual 29724: int do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const; 29724: 29724: virtual int 29724: do_max_length() const throw(); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: class codecvt 29724: : public __codecvt_abstract_base 29724: { 29724: public: 29724: 29724: typedef char16_t intern_type; 29724: typedef char extern_type; 29724: typedef mbstate_t state_type; 29724: 29724: public: 29724: static locale::id id; 29724: 29724: explicit 29724: codecvt(size_t __refs = 0) 29724: : __codecvt_abstract_base(__refs) { } 29724: 29724: protected: 29724: virtual 29724: ~codecvt(); 29724: 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_in(state_type& __state, 29724: const extern_type* __from, const extern_type* __from_end, 29724: const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const; 29724: 29724: virtual 29724: int do_encoding() const throw(); 29724: 29724: virtual 29724: bool do_always_noconv() const throw(); 29724: 29724: virtual 29724: int do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const; 29724: 29724: virtual int 29724: do_max_length() const throw(); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: class codecvt 29724: : public __codecvt_abstract_base 29724: { 29724: public: 29724: 29724: typedef char32_t intern_type; 29724: typedef char extern_type; 29724: typedef mbstate_t state_type; 29724: 29724: public: 29724: static locale::id id; 29724: 29724: explicit 29724: codecvt(size_t __refs = 0) 29724: : __codecvt_abstract_base(__refs) { } 29724: 29724: protected: 29724: virtual 29724: ~codecvt(); 29724: 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_in(state_type& __state, 29724: const extern_type* __from, const extern_type* __from_end, 29724: const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const; 29724: 29724: virtual 29724: int do_encoding() const throw(); 29724: 29724: virtual 29724: bool do_always_noconv() const throw(); 29724: 29724: virtual 29724: int do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const; 29724: 29724: virtual int 29724: do_max_length() const throw(); 29724: }; 29724: # 698 "/usr/include/c++/14/bits/codecvt.h" 3 29724: template 29724: class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> 29724: { 29724: public: 29724: explicit 29724: codecvt_byname(const char* __s, size_t __refs = 0) 29724: : codecvt<_InternT, _ExternT, _StateT>(__refs) 29724: { 29724: if (__builtin_strcmp(__s, "C") != 0 29724: && __builtin_strcmp(__s, "POSIX") != 0) 29724: { 29724: this->_S_destroy_c_locale(this->_M_c_locale_codecvt); 29724: this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); 29724: } 29724: } 29724: 29724: 29724: explicit 29724: codecvt_byname(const string& __s, size_t __refs = 0) 29724: : codecvt_byname(__s.c_str(), __refs) { } 29724: 29724: 29724: protected: 29724: virtual 29724: ~codecvt_byname() { } 29724: }; 29724: 29724: 29724: template<> 29724: class codecvt_byname 29724: : public codecvt 29724: { 29724: public: 29724: explicit 29724: codecvt_byname(const char*, size_t __refs = 0) 29724: : codecvt(__refs) { } 29724: 29724: explicit 29724: codecvt_byname(const string& __s, size_t __refs = 0) 29724: : codecvt_byname(__s.c_str(), __refs) { } 29724: 29724: protected: 29724: virtual 29724: ~codecvt_byname() { } 29724: }; 29724: 29724: template<> 29724: class codecvt_byname 29724: : public codecvt 29724: { 29724: public: 29724: explicit 29724: codecvt_byname(const char*, size_t __refs = 0) 29724: : codecvt(__refs) { } 29724: 29724: explicit 29724: codecvt_byname(const string& __s, size_t __refs = 0) 29724: : codecvt_byname(__s.c_str(), __refs) { } 29724: 29724: protected: 29724: virtual 29724: ~codecvt_byname() { } 29724: }; 29724: # 805 "/usr/include/c++/14/bits/codecvt.h" 3 29724: extern template class codecvt_byname; 29724: 29724: extern template 29724: const codecvt& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: extern template class codecvt_byname; 29724: 29724: extern template 29724: const codecvt& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: 29724: extern template class codecvt_byname; 29724: extern template class codecvt_byname; 29724: # 840 "/usr/include/c++/14/bits/codecvt.h" 3 29724: 29724: } 29724: # 43 "/usr/include/c++/14/fstream" 2 3 29724: # 1 "/usr/include/c++/14/cstdio" 1 3 29724: # 39 "/usr/include/c++/14/cstdio" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdio" 3 29724: # 44 "/usr/include/c++/14/fstream" 2 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 1 3 29724: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 29724: 29724: # 38 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 1 3 29724: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 3 29724: # 1 "/usr/include/c++/14/cstdio" 1 3 29724: # 39 "/usr/include/c++/14/cstdio" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdio" 3 29724: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __gthread_mutex_t __c_lock; 29724: 29724: 29724: 29724: typedef FILE __c_file; 29724: 29724: 29724: } 29724: # 41 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class __basic_file; 29724: 29724: 29724: template<> 29724: class __basic_file 29724: { 29724: 29724: __c_file* _M_cfile; 29724: 29724: 29724: bool _M_cfile_created; 29724: 29724: public: 29724: __basic_file(__c_lock* __lock = 0) throw (); 29724: 29724: 29724: __basic_file(__basic_file&& __rv, __c_lock* = 0) noexcept 29724: : _M_cfile(__rv._M_cfile), _M_cfile_created(__rv._M_cfile_created) 29724: { 29724: __rv._M_cfile = nullptr; 29724: __rv._M_cfile_created = false; 29724: } 29724: 29724: __basic_file& operator=(const __basic_file&) = delete; 29724: __basic_file& operator=(__basic_file&&) = delete; 29724: 29724: void 29724: swap(__basic_file& __f) noexcept 29724: { 29724: std::swap(_M_cfile, __f._M_cfile); 29724: std::swap(_M_cfile_created, __f._M_cfile_created); 29724: } 29724: 29724: 29724: __basic_file* 29724: open(const char* __name, ios_base::openmode __mode, int __prot = 0664); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __basic_file* 29724: sys_open(__c_file* __file, ios_base::openmode); 29724: 29724: __basic_file* 29724: sys_open(int __fd, ios_base::openmode __mode) throw (); 29724: 29724: __basic_file* 29724: close(); 29724: 29724: __attribute__ ((__pure__)) bool 29724: is_open() const throw (); 29724: 29724: __attribute__ ((__pure__)) int 29724: fd() throw (); 29724: 29724: __attribute__ ((__pure__)) __c_file* 29724: file() throw (); 29724: 29724: ~__basic_file(); 29724: 29724: streamsize 29724: xsputn(const char* __s, streamsize __n); 29724: 29724: streamsize 29724: xsputn_2(const char* __s1, streamsize __n1, 29724: const char* __s2, streamsize __n2); 29724: 29724: streamsize 29724: xsgetn(char* __s, streamsize __n); 29724: 29724: streamoff 29724: seekoff(streamoff __off, ios_base::seekdir __way) throw (); 29724: 29724: int 29724: sync(); 29724: 29724: streamsize 29724: showmanyc(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using native_handle_type = int; 29724: 29724: 29724: native_handle_type 29724: native_handle() const noexcept; 29724: 29724: }; 29724: 29724: 29724: } 29724: # 45 "/usr/include/c++/14/fstream" 2 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 51 "/usr/include/c++/14/fstream" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template().make_preferred().filename())> 29724: using _If_fs_path = enable_if_t, _Result>; 29724: # 89 "/usr/include/c++/14/fstream" 3 29724: template 29724: class basic_filebuf : public basic_streambuf<_CharT, _Traits> 29724: { 29724: 29724: template 29724: using __chk_state = __and_, 29724: is_copy_constructible<_Tp>, 29724: is_default_constructible<_Tp>>; 29724: 29724: static_assert(__chk_state::value, 29724: "state_type must be CopyAssignable, CopyConstructible" 29724: " and DefaultConstructible"); 29724: 29724: static_assert(is_same>::value, 29724: "pos_type must be fpos"); 29724: 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: typedef basic_streambuf __streambuf_type; 29724: typedef basic_filebuf __filebuf_type; 29724: typedef __basic_file __file_type; 29724: typedef typename traits_type::state_type __state_type; 29724: typedef codecvt __codecvt_type; 29724: 29724: friend class ios_base; 29724: 29724: protected: 29724: 29724: 29724: __c_lock _M_lock; 29724: 29724: 29724: __file_type _M_file; 29724: 29724: 29724: ios_base::openmode _M_mode; 29724: 29724: 29724: __state_type _M_state_beg; 29724: 29724: 29724: 29724: 29724: __state_type _M_state_cur; 29724: 29724: 29724: 29724: __state_type _M_state_last; 29724: 29724: 29724: char_type* _M_buf; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t _M_buf_size; 29724: 29724: 29724: bool _M_buf_allocated; 29724: # 165 "/usr/include/c++/14/fstream" 3 29724: bool _M_reading; 29724: bool _M_writing; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: char_type _M_pback; 29724: char_type* _M_pback_cur_save; 29724: char_type* _M_pback_end_save; 29724: bool _M_pback_init; 29724: 29724: 29724: 29724: const __codecvt_type* _M_codecvt; 29724: 29724: 29724: 29724: 29724: 29724: 29724: char* _M_ext_buf; 29724: 29724: 29724: 29724: 29724: streamsize _M_ext_buf_size; 29724: 29724: 29724: 29724: 29724: 29724: 29724: const char* _M_ext_next; 29724: char* _M_ext_end; 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: _M_create_pback() 29724: { 29724: if (!_M_pback_init) 29724: { 29724: _M_pback_cur_save = this->gptr(); 29724: _M_pback_end_save = this->egptr(); 29724: this->setg(&_M_pback, &_M_pback, &_M_pback + 1); 29724: _M_pback_init = true; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: _M_destroy_pback() throw() 29724: { 29724: if (_M_pback_init) 29724: { 29724: 29724: _M_pback_cur_save += this->gptr() != this->eback(); 29724: this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); 29724: _M_pback_init = false; 29724: } 29724: } 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_filebuf(); 29724: 29724: 29724: basic_filebuf(const basic_filebuf&) = delete; 29724: basic_filebuf(basic_filebuf&&); 29724: 29724: 29724: 29724: 29724: 29724: virtual 29724: ~basic_filebuf() 29724: { 29724: try 29724: { this->close(); } 29724: catch(...) 29724: { } 29724: } 29724: 29724: 29724: basic_filebuf& operator=(const basic_filebuf&) = delete; 29724: basic_filebuf& operator=(basic_filebuf&&); 29724: void swap(basic_filebuf&); 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: is_open() const throw() 29724: { return _M_file.is_open(); } 29724: # 319 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: open(const char* __s, ios_base::openmode __mode); 29724: # 340 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: open(const std::string& __s, ios_base::openmode __mode) 29724: { return open(__s.c_str(), __mode); } 29724: # 351 "/usr/include/c++/14/fstream" 3 29724: template 29724: _If_fs_path<_Path, __filebuf_type*> 29724: open(const _Path& __s, ios_base::openmode __mode) 29724: { return open(__s.c_str(), __mode); } 29724: # 370 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: close(); 29724: # 403 "/usr/include/c++/14/fstream" 3 29724: protected: 29724: void 29724: _M_allocate_internal_buffer(); 29724: 29724: void 29724: _M_destroy_internal_buffer() throw(); 29724: 29724: 29724: virtual streamsize 29724: showmanyc(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual int_type 29724: underflow(); 29724: 29724: virtual int_type 29724: pbackfail(int_type __c = _Traits::eof()); 29724: # 432 "/usr/include/c++/14/fstream" 3 29724: virtual int_type 29724: overflow(int_type __c = _Traits::eof()); 29724: 29724: 29724: 29724: bool 29724: _M_convert_to_external(char_type*, streamsize); 29724: # 452 "/usr/include/c++/14/fstream" 3 29724: virtual __streambuf_type* 29724: setbuf(char_type* __s, streamsize __n); 29724: 29724: virtual pos_type 29724: seekoff(off_type __off, ios_base::seekdir __way, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out); 29724: 29724: virtual pos_type 29724: seekpos(pos_type __pos, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out); 29724: 29724: 29724: pos_type 29724: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); 29724: 29724: int 29724: _M_get_ext_pos(__state_type &__state); 29724: 29724: virtual int 29724: sync(); 29724: 29724: virtual void 29724: imbue(const locale& __loc); 29724: 29724: virtual streamsize 29724: xsgetn(char_type* __s, streamsize __n); 29724: 29724: virtual streamsize 29724: xsputn(const char_type* __s, streamsize __n); 29724: 29724: 29724: bool 29724: _M_terminate_output(); 29724: # 498 "/usr/include/c++/14/fstream" 3 29724: void 29724: _M_set_buffer(streamsize __off) 29724: { 29724: const bool __testin = _M_mode & ios_base::in; 29724: const bool __testout = (_M_mode & ios_base::out 29724: || _M_mode & ios_base::app); 29724: 29724: if (__testin && __off > 0) 29724: this->setg(_M_buf, _M_buf, _M_buf + __off); 29724: else 29724: this->setg(_M_buf, _M_buf, _M_buf); 29724: 29724: if (__testout && __off == 0 && _M_buf_size > 1 ) 29724: this->setp(_M_buf, _M_buf + _M_buf_size - 1); 29724: else 29724: this->setp(0, 0); 29724: } 29724: }; 29724: # 531 "/usr/include/c++/14/fstream" 3 29724: template 29724: class basic_ifstream : public basic_istream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_filebuf __filebuf_type; 29724: typedef basic_istream __istream_type; 29724: 29724: private: 29724: __filebuf_type _M_filebuf; 29724: 29724: public: 29724: # 558 "/usr/include/c++/14/fstream" 3 29724: basic_ifstream() : __istream_type(), _M_filebuf() 29724: { this->init(&_M_filebuf); } 29724: # 568 "/usr/include/c++/14/fstream" 3 29724: explicit 29724: basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) 29724: : __istream_type(), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: # 601 "/usr/include/c++/14/fstream" 3 29724: explicit 29724: basic_ifstream(const std::string& __s, 29724: ios_base::openmode __mode = ios_base::in) 29724: : __istream_type(), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: # 618 "/usr/include/c++/14/fstream" 3 29724: template> 29724: basic_ifstream(const _Path& __s, 29724: ios_base::openmode __mode = ios_base::in) 29724: : basic_ifstream(__s.c_str(), __mode) 29724: { } 29724: 29724: 29724: basic_ifstream(const basic_ifstream&) = delete; 29724: 29724: basic_ifstream(basic_ifstream&& __rhs) 29724: : __istream_type(std::move(__rhs)), 29724: _M_filebuf(std::move(__rhs._M_filebuf)) 29724: { __istream_type::set_rdbuf(&_M_filebuf); } 29724: # 639 "/usr/include/c++/14/fstream" 3 29724: ~basic_ifstream() 29724: { } 29724: 29724: 29724: 29724: 29724: basic_ifstream& 29724: operator=(const basic_ifstream&) = delete; 29724: 29724: basic_ifstream& 29724: operator=(basic_ifstream&& __rhs) 29724: { 29724: __istream_type::operator=(std::move(__rhs)); 29724: _M_filebuf = std::move(__rhs._M_filebuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_ifstream& __rhs) 29724: { 29724: __istream_type::swap(__rhs); 29724: _M_filebuf.swap(__rhs._M_filebuf); 29724: } 29724: # 671 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: rdbuf() const 29724: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: is_open() 29724: { return _M_filebuf.is_open(); } 29724: 29724: 29724: 29724: bool 29724: is_open() const 29724: { return _M_filebuf.is_open(); } 29724: # 697 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const char* __s, ios_base::openmode __mode = ios_base::in) 29724: { 29724: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 736 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const std::string& __s, ios_base::openmode __mode = ios_base::in) 29724: { 29724: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 756 "/usr/include/c++/14/fstream" 3 29724: template 29724: _If_fs_path<_Path, void> 29724: open(const _Path& __s, ios_base::openmode __mode = ios_base::in) 29724: { open(__s.c_str(), __mode); } 29724: # 769 "/usr/include/c++/14/fstream" 3 29724: void 29724: close() 29724: { 29724: if (!_M_filebuf.close()) 29724: this->setstate(ios_base::failbit); 29724: } 29724: # 784 "/usr/include/c++/14/fstream" 3 29724: }; 29724: # 801 "/usr/include/c++/14/fstream" 3 29724: template 29724: class basic_ofstream : public basic_ostream<_CharT,_Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_filebuf __filebuf_type; 29724: typedef basic_ostream __ostream_type; 29724: 29724: private: 29724: __filebuf_type _M_filebuf; 29724: 29724: public: 29724: # 828 "/usr/include/c++/14/fstream" 3 29724: basic_ofstream(): __ostream_type(), _M_filebuf() 29724: { this->init(&_M_filebuf); } 29724: # 838 "/usr/include/c++/14/fstream" 3 29724: explicit 29724: basic_ofstream(const char* __s, 29724: ios_base::openmode __mode = ios_base::out) 29724: : __ostream_type(), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: # 873 "/usr/include/c++/14/fstream" 3 29724: explicit 29724: basic_ofstream(const std::string& __s, 29724: ios_base::openmode __mode = ios_base::out) 29724: : __ostream_type(), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: # 890 "/usr/include/c++/14/fstream" 3 29724: template> 29724: basic_ofstream(const _Path& __s, 29724: ios_base::openmode __mode = ios_base::out) 29724: : basic_ofstream(__s.c_str(), __mode) 29724: { } 29724: 29724: 29724: basic_ofstream(const basic_ofstream&) = delete; 29724: 29724: basic_ofstream(basic_ofstream&& __rhs) 29724: : __ostream_type(std::move(__rhs)), 29724: _M_filebuf(std::move(__rhs._M_filebuf)) 29724: { __ostream_type::set_rdbuf(&_M_filebuf); } 29724: # 911 "/usr/include/c++/14/fstream" 3 29724: ~basic_ofstream() 29724: { } 29724: 29724: 29724: 29724: 29724: basic_ofstream& 29724: operator=(const basic_ofstream&) = delete; 29724: 29724: basic_ofstream& 29724: operator=(basic_ofstream&& __rhs) 29724: { 29724: __ostream_type::operator=(std::move(__rhs)); 29724: _M_filebuf = std::move(__rhs._M_filebuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_ofstream& __rhs) 29724: { 29724: __ostream_type::swap(__rhs); 29724: _M_filebuf.swap(__rhs._M_filebuf); 29724: } 29724: # 943 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: rdbuf() const 29724: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: is_open() 29724: { return _M_filebuf.is_open(); } 29724: 29724: 29724: 29724: bool 29724: is_open() const 29724: { return _M_filebuf.is_open(); } 29724: # 969 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const char* __s, ios_base::openmode __mode = ios_base::out) 29724: { 29724: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 1008 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const std::string& __s, ios_base::openmode __mode = ios_base::out) 29724: { 29724: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 1028 "/usr/include/c++/14/fstream" 3 29724: template 29724: _If_fs_path<_Path, void> 29724: open(const _Path& __s, ios_base::openmode __mode = ios_base::out) 29724: { open(__s.c_str(), __mode); } 29724: # 1041 "/usr/include/c++/14/fstream" 3 29724: void 29724: close() 29724: { 29724: if (!_M_filebuf.close()) 29724: this->setstate(ios_base::failbit); 29724: } 29724: # 1056 "/usr/include/c++/14/fstream" 3 29724: }; 29724: # 1073 "/usr/include/c++/14/fstream" 3 29724: template 29724: class basic_fstream : public basic_iostream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_filebuf __filebuf_type; 29724: typedef basic_ios __ios_type; 29724: typedef basic_iostream __iostream_type; 29724: 29724: private: 29724: __filebuf_type _M_filebuf; 29724: 29724: public: 29724: # 1101 "/usr/include/c++/14/fstream" 3 29724: basic_fstream() 29724: : __iostream_type(), _M_filebuf() 29724: { this->init(&_M_filebuf); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_fstream(const char* __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: : __iostream_type(0), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: # 1140 "/usr/include/c++/14/fstream" 3 29724: explicit 29724: basic_fstream(const std::string& __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: : __iostream_type(0), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: basic_fstream(const _Path& __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: : basic_fstream(__s.c_str(), __mode) 29724: { } 29724: 29724: 29724: basic_fstream(const basic_fstream&) = delete; 29724: 29724: basic_fstream(basic_fstream&& __rhs) 29724: : __iostream_type(std::move(__rhs)), 29724: _M_filebuf(std::move(__rhs._M_filebuf)) 29724: { __iostream_type::set_rdbuf(&_M_filebuf); } 29724: # 1176 "/usr/include/c++/14/fstream" 3 29724: ~basic_fstream() 29724: { } 29724: 29724: 29724: 29724: 29724: basic_fstream& 29724: operator=(const basic_fstream&) = delete; 29724: 29724: basic_fstream& 29724: operator=(basic_fstream&& __rhs) 29724: { 29724: __iostream_type::operator=(std::move(__rhs)); 29724: _M_filebuf = std::move(__rhs._M_filebuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_fstream& __rhs) 29724: { 29724: __iostream_type::swap(__rhs); 29724: _M_filebuf.swap(__rhs._M_filebuf); 29724: } 29724: # 1208 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: rdbuf() const 29724: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: is_open() 29724: { return _M_filebuf.is_open(); } 29724: 29724: 29724: 29724: bool 29724: is_open() const 29724: { return _M_filebuf.is_open(); } 29724: # 1234 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const char* __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: { 29724: if (!_M_filebuf.open(__s, __mode)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 1275 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const std::string& __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: { 29724: if (!_M_filebuf.open(__s, __mode)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 1296 "/usr/include/c++/14/fstream" 3 29724: template 29724: _If_fs_path<_Path, void> 29724: open(const _Path& __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: { open(__s.c_str(), __mode); } 29724: # 1310 "/usr/include/c++/14/fstream" 3 29724: void 29724: close() 29724: { 29724: if (!_M_filebuf.close()) 29724: this->setstate(ios_base::failbit); 29724: } 29724: # 1325 "/usr/include/c++/14/fstream" 3 29724: }; 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_filebuf<_CharT, _Traits>& __x, 29724: basic_filebuf<_CharT, _Traits>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_ifstream<_CharT, _Traits>& __x, 29724: basic_ifstream<_CharT, _Traits>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_ofstream<_CharT, _Traits>& __x, 29724: basic_ofstream<_CharT, _Traits>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_fstream<_CharT, _Traits>& __x, 29724: basic_fstream<_CharT, _Traits>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/fstream.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/fstream.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/fstream.tcc" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cerrno" 1 3 29724: # 39 "/usr/include/c++/14/cerrno" 3 29724: 29724: # 40 "/usr/include/c++/14/cerrno" 3 29724: # 42 "/usr/include/c++/14/bits/fstream.tcc" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: void 29724: basic_filebuf<_CharT, _Traits>:: 29724: _M_allocate_internal_buffer() 29724: { 29724: 29724: 29724: if (!_M_buf_allocated && !_M_buf) 29724: { 29724: _M_buf = new char_type[_M_buf_size]; 29724: _M_buf_allocated = true; 29724: } 29724: } 29724: 29724: template 29724: void 29724: basic_filebuf<_CharT, _Traits>:: 29724: _M_destroy_internal_buffer() throw() 29724: { 29724: if (_M_buf_allocated) 29724: { 29724: delete [] _M_buf; 29724: _M_buf = 0; 29724: _M_buf_allocated = false; 29724: } 29724: delete [] _M_ext_buf; 29724: _M_ext_buf = 0; 29724: _M_ext_buf_size = 0; 29724: _M_ext_next = 0; 29724: _M_ext_end = 0; 29724: } 29724: 29724: template 29724: basic_filebuf<_CharT, _Traits>:: 29724: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), 29724: _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), 29724: _M_state_last(), _M_buf(0), _M_buf_size(8192), 29724: _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), 29724: _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), 29724: _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), 29724: _M_ext_end(0) 29724: { 29724: _M_codecvt = std::__try_use_facet<__codecvt_type>(this->_M_buf_locale); 29724: } 29724: 29724: 29724: template 29724: basic_filebuf<_CharT, _Traits>:: 29724: basic_filebuf(basic_filebuf&& __rhs) 29724: : __streambuf_type(__rhs), 29724: _M_lock(), _M_file(std::move(__rhs._M_file), &_M_lock), 29724: _M_mode(std::__exchange(__rhs._M_mode, ios_base::openmode(0))), 29724: _M_state_beg(std::move(__rhs._M_state_beg)), 29724: _M_state_cur(std::move(__rhs._M_state_cur)), 29724: _M_state_last(std::move(__rhs._M_state_last)), 29724: _M_buf(std::__exchange(__rhs._M_buf, nullptr)), 29724: _M_buf_size(std::__exchange(__rhs._M_buf_size, 1)), 29724: _M_buf_allocated(std::__exchange(__rhs._M_buf_allocated, false)), 29724: _M_reading(std::__exchange(__rhs._M_reading, false)), 29724: _M_writing(std::__exchange(__rhs._M_writing, false)), 29724: _M_pback(__rhs._M_pback), 29724: _M_pback_cur_save(std::__exchange(__rhs._M_pback_cur_save, nullptr)), 29724: _M_pback_end_save(std::__exchange(__rhs._M_pback_end_save, nullptr)), 29724: _M_pback_init(std::__exchange(__rhs._M_pback_init, false)), 29724: _M_codecvt(__rhs._M_codecvt), 29724: _M_ext_buf(std::__exchange(__rhs._M_ext_buf, nullptr)), 29724: _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), 29724: _M_ext_next(std::__exchange(__rhs._M_ext_next, nullptr)), 29724: _M_ext_end(std::__exchange(__rhs._M_ext_end, nullptr)) 29724: { 29724: __rhs._M_set_buffer(-1); 29724: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 29724: } 29724: 29724: template 29724: basic_filebuf<_CharT, _Traits>& 29724: basic_filebuf<_CharT, _Traits>:: 29724: operator=(basic_filebuf&& __rhs) 29724: { 29724: this->close(); 29724: __streambuf_type::operator=(__rhs); 29724: _M_file.swap(__rhs._M_file); 29724: _M_mode = std::__exchange(__rhs._M_mode, ios_base::openmode(0)); 29724: _M_state_beg = std::move(__rhs._M_state_beg); 29724: _M_state_cur = std::move(__rhs._M_state_cur); 29724: _M_state_last = std::move(__rhs._M_state_last); 29724: _M_buf = std::__exchange(__rhs._M_buf, nullptr); 29724: _M_buf_size = std::__exchange(__rhs._M_buf_size, 1); 29724: _M_buf_allocated = std::__exchange(__rhs._M_buf_allocated, false); 29724: _M_ext_buf = std::__exchange(__rhs._M_ext_buf, nullptr); 29724: _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); 29724: _M_ext_next = std::__exchange(__rhs._M_ext_next, nullptr); 29724: _M_ext_end = std::__exchange(__rhs._M_ext_end, nullptr); 29724: _M_reading = std::__exchange(__rhs._M_reading, false); 29724: _M_writing = std::__exchange(__rhs._M_writing, false); 29724: _M_pback_cur_save = std::__exchange(__rhs._M_pback_cur_save, nullptr); 29724: _M_pback_end_save = std::__exchange(__rhs._M_pback_end_save, nullptr); 29724: _M_pback_init = std::__exchange(__rhs._M_pback_init, false); 29724: __rhs._M_set_buffer(-1); 29724: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 29724: return *this; 29724: } 29724: 29724: template 29724: void 29724: basic_filebuf<_CharT, _Traits>:: 29724: swap(basic_filebuf& __rhs) 29724: { 29724: __streambuf_type::swap(__rhs); 29724: _M_file.swap(__rhs._M_file); 29724: std::swap(_M_mode, __rhs._M_mode); 29724: std::swap(_M_state_beg, __rhs._M_state_beg); 29724: std::swap(_M_state_cur, __rhs._M_state_cur); 29724: std::swap(_M_state_last, __rhs._M_state_last); 29724: std::swap(_M_buf, __rhs._M_buf); 29724: std::swap(_M_buf_size, __rhs._M_buf_size); 29724: std::swap(_M_buf_allocated, __rhs._M_buf_allocated); 29724: std::swap(_M_ext_buf, __rhs._M_ext_buf); 29724: std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); 29724: std::swap(_M_ext_next, __rhs._M_ext_next); 29724: std::swap(_M_ext_end, __rhs._M_ext_end); 29724: std::swap(_M_reading, __rhs._M_reading); 29724: std::swap(_M_writing, __rhs._M_writing); 29724: std::swap(_M_pback_cur_save, __rhs._M_pback_cur_save); 29724: std::swap(_M_pback_end_save, __rhs._M_pback_end_save); 29724: std::swap(_M_pback_init, __rhs._M_pback_init); 29724: } 29724: 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 29724: basic_filebuf<_CharT, _Traits>:: 29724: open(const char* __s, ios_base::openmode __mode) 29724: { 29724: __filebuf_type *__ret = 0; 29724: if (!this->is_open()) 29724: { 29724: _M_file.open(__s, __mode); 29724: if (this->is_open()) 29724: { 29724: _M_allocate_internal_buffer(); 29724: _M_mode = __mode; 29724: 29724: 29724: _M_reading = false; 29724: _M_writing = false; 29724: _M_set_buffer(-1); 29724: 29724: 29724: _M_state_last = _M_state_cur = _M_state_beg; 29724: 29724: 29724: if ((__mode & ios_base::ate) 29724: && this->seekoff(0, ios_base::end, __mode) 29724: == pos_type(off_type(-1))) 29724: this->close(); 29724: else 29724: __ret = this; 29724: } 29724: } 29724: return __ret; 29724: } 29724: # 246 "/usr/include/c++/14/bits/fstream.tcc" 3 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 29724: basic_filebuf<_CharT, _Traits>:: 29724: close() 29724: { 29724: if (!this->is_open()) 29724: return 0; 29724: 29724: bool __testfail = false; 29724: { 29724: 29724: struct __close_sentry 29724: { 29724: basic_filebuf *__fb; 29724: __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } 29724: ~__close_sentry () 29724: { 29724: __fb->_M_mode = ios_base::openmode(0); 29724: __fb->_M_pback_init = false; 29724: __fb->_M_destroy_internal_buffer(); 29724: __fb->_M_reading = false; 29724: __fb->_M_writing = false; 29724: __fb->_M_set_buffer(-1); 29724: __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; 29724: } 29724: } __cs (this); 29724: 29724: try 29724: { 29724: if (!_M_terminate_output()) 29724: __testfail = true; 29724: } 29724: catch(...) 29724: { 29724: _M_file.close(); 29724: throw; 29724: } 29724: } 29724: 29724: if (!_M_file.close()) 29724: __testfail = true; 29724: 29724: if (__testfail) 29724: return 0; 29724: else 29724: return this; 29724: } 29724: 29724: template 29724: streamsize 29724: basic_filebuf<_CharT, _Traits>:: 29724: showmanyc() 29724: { 29724: streamsize __ret = -1; 29724: const bool __testin = _M_mode & ios_base::in; 29724: if (__testin && this->is_open()) 29724: { 29724: 29724: 29724: __ret = this->egptr() - this->gptr(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (__check_facet(_M_codecvt).encoding() >= 0) 29724: 29724: __ret += _M_file.showmanyc() / _M_codecvt->max_length(); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::int_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: underflow() 29724: { 29724: int_type __ret = traits_type::eof(); 29724: const bool __testin = _M_mode & ios_base::in; 29724: if (__testin) 29724: { 29724: if (_M_writing) 29724: { 29724: if (overflow() == traits_type::eof()) 29724: return __ret; 29724: _M_set_buffer(-1); 29724: _M_writing = false; 29724: } 29724: 29724: 29724: 29724: _M_destroy_pback(); 29724: 29724: if (this->gptr() < this->egptr()) 29724: return traits_type::to_int_type(*this->gptr()); 29724: 29724: 29724: const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 29724: 29724: 29724: bool __got_eof = false; 29724: 29724: streamsize __ilen = 0; 29724: codecvt_base::result __r = codecvt_base::ok; 29724: if (__check_facet(_M_codecvt).always_noconv()) 29724: { 29724: __ilen = _M_file.xsgetn(reinterpret_cast(this->eback()), 29724: __buflen); 29724: if (__ilen == 0) 29724: __got_eof = true; 29724: } 29724: else 29724: { 29724: 29724: 29724: const int __enc = _M_codecvt->encoding(); 29724: streamsize __blen; 29724: streamsize __rlen; 29724: if (__enc > 0) 29724: __blen = __rlen = __buflen * __enc; 29724: else 29724: { 29724: __blen = __buflen + _M_codecvt->max_length() - 1; 29724: __rlen = __buflen; 29724: } 29724: const streamsize __remainder = _M_ext_end - _M_ext_next; 29724: __rlen = __rlen > __remainder ? __rlen - __remainder : 0; 29724: 29724: 29724: 29724: if (_M_reading && this->egptr() == this->eback() && __remainder) 29724: __rlen = 0; 29724: 29724: 29724: 29724: if (_M_ext_buf_size < __blen) 29724: { 29724: char* __buf = new char[__blen]; 29724: if (__remainder) 29724: __builtin_memcpy(__buf, _M_ext_next, __remainder); 29724: 29724: delete [] _M_ext_buf; 29724: _M_ext_buf = __buf; 29724: _M_ext_buf_size = __blen; 29724: } 29724: else if (__remainder) 29724: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 29724: 29724: _M_ext_next = _M_ext_buf; 29724: _M_ext_end = _M_ext_buf + __remainder; 29724: _M_state_last = _M_state_cur; 29724: 29724: do 29724: { 29724: if (__rlen > 0) 29724: { 29724: 29724: 29724: 29724: if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) 29724: { 29724: __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") 29724: 29724: ); 29724: } 29724: streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); 29724: if (__elen == 0) 29724: __got_eof = true; 29724: else if (__elen == -1) 29724: break; 29724: _M_ext_end += __elen; 29724: } 29724: 29724: char_type* __iend = this->eback(); 29724: if (_M_ext_next < _M_ext_end) 29724: __r = _M_codecvt->in(_M_state_cur, _M_ext_next, 29724: _M_ext_end, _M_ext_next, 29724: this->eback(), 29724: this->eback() + __buflen, __iend); 29724: if (__r == codecvt_base::noconv) 29724: { 29724: size_t __avail = _M_ext_end - _M_ext_buf; 29724: __ilen = std::min(__avail, __buflen); 29724: traits_type::copy(this->eback(), 29724: reinterpret_cast 29724: (_M_ext_buf), __ilen); 29724: _M_ext_next = _M_ext_buf + __ilen; 29724: } 29724: else 29724: __ilen = __iend - this->eback(); 29724: 29724: 29724: 29724: 29724: if (__r == codecvt_base::error) 29724: break; 29724: 29724: __rlen = 1; 29724: } 29724: while (__ilen == 0 && !__got_eof); 29724: } 29724: 29724: if (__ilen > 0) 29724: { 29724: _M_set_buffer(__ilen); 29724: _M_reading = true; 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: } 29724: else if (__got_eof) 29724: { 29724: 29724: 29724: 29724: _M_set_buffer(-1); 29724: _M_reading = false; 29724: 29724: 29724: if (__r == codecvt_base::partial) 29724: __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") 29724: ); 29724: } 29724: else if (__r == codecvt_base::error) 29724: __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") 29724: ); 29724: else 29724: __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") 29724: , (*__errno_location ())); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::int_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: pbackfail(int_type __i) 29724: { 29724: int_type __ret = traits_type::eof(); 29724: const bool __testin = _M_mode & ios_base::in; 29724: if (__testin) 29724: { 29724: if (_M_writing) 29724: { 29724: if (overflow() == traits_type::eof()) 29724: return __ret; 29724: _M_set_buffer(-1); 29724: _M_writing = false; 29724: } 29724: 29724: 29724: const bool __testpb = _M_pback_init; 29724: const bool __testeof = traits_type::eq_int_type(__i, __ret); 29724: int_type __tmp; 29724: if (this->eback() < this->gptr()) 29724: { 29724: this->gbump(-1); 29724: __tmp = traits_type::to_int_type(*this->gptr()); 29724: } 29724: else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) 29724: { 29724: __tmp = this->underflow(); 29724: if (traits_type::eq_int_type(__tmp, __ret)) 29724: return __ret; 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: 29724: 29724: return __ret; 29724: } 29724: 29724: 29724: 29724: if (!__testeof && traits_type::eq_int_type(__i, __tmp)) 29724: __ret = __i; 29724: else if (__testeof) 29724: __ret = traits_type::not_eof(__i); 29724: else if (!__testpb) 29724: { 29724: _M_create_pback(); 29724: _M_reading = true; 29724: *this->gptr() = traits_type::to_char_type(__i); 29724: __ret = __i; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::int_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: overflow(int_type __c) 29724: { 29724: int_type __ret = traits_type::eof(); 29724: const bool __testeof = traits_type::eq_int_type(__c, __ret); 29724: const bool __testout = (_M_mode & ios_base::out 29724: || _M_mode & ios_base::app); 29724: if (__testout) 29724: { 29724: if (_M_reading) 29724: { 29724: _M_destroy_pback(); 29724: const int __gptr_off = _M_get_ext_pos(_M_state_last); 29724: if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) 29724: == pos_type(off_type(-1))) 29724: return __ret; 29724: } 29724: if (this->pbase() < this->pptr()) 29724: { 29724: 29724: if (!__testeof) 29724: { 29724: *this->pptr() = traits_type::to_char_type(__c); 29724: this->pbump(1); 29724: } 29724: 29724: 29724: 29724: if (_M_convert_to_external(this->pbase(), 29724: this->pptr() - this->pbase())) 29724: { 29724: _M_set_buffer(0); 29724: __ret = traits_type::not_eof(__c); 29724: } 29724: } 29724: else if (_M_buf_size > 1) 29724: { 29724: 29724: 29724: 29724: _M_set_buffer(0); 29724: _M_writing = true; 29724: if (!__testeof) 29724: { 29724: *this->pptr() = traits_type::to_char_type(__c); 29724: this->pbump(1); 29724: } 29724: __ret = traits_type::not_eof(__c); 29724: } 29724: else 29724: { 29724: 29724: char_type __conv = traits_type::to_char_type(__c); 29724: if (__testeof || _M_convert_to_external(&__conv, 1)) 29724: { 29724: _M_writing = true; 29724: __ret = traits_type::not_eof(__c); 29724: } 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: bool 29724: basic_filebuf<_CharT, _Traits>:: 29724: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) 29724: { 29724: 29724: streamsize __elen; 29724: streamsize __plen; 29724: if (__check_facet(_M_codecvt).always_noconv()) 29724: { 29724: __elen = _M_file.xsputn(reinterpret_cast(__ibuf), __ilen); 29724: __plen = __ilen; 29724: } 29724: else 29724: { 29724: 29724: 29724: streamsize __blen = __ilen * _M_codecvt->max_length(); 29724: char* __buf = static_cast(__builtin_alloca(__blen)); 29724: 29724: char* __bend; 29724: const char_type* __iend; 29724: codecvt_base::result __r; 29724: __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, 29724: __iend, __buf, __buf + __blen, __bend); 29724: 29724: if (__r == codecvt_base::ok || __r == codecvt_base::partial) 29724: __blen = __bend - __buf; 29724: else if (__r == codecvt_base::noconv) 29724: { 29724: 29724: __buf = reinterpret_cast(__ibuf); 29724: __blen = __ilen; 29724: } 29724: else 29724: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 29724: ); 29724: 29724: __elen = _M_file.xsputn(__buf, __blen); 29724: __plen = __blen; 29724: 29724: 29724: if (__r == codecvt_base::partial && __elen == __plen) 29724: { 29724: const char_type* __iresume = __iend; 29724: streamsize __rlen = this->pptr() - __iend; 29724: __r = _M_codecvt->out(_M_state_cur, __iresume, 29724: __iresume + __rlen, __iend, __buf, 29724: __buf + __blen, __bend); 29724: if (__r != codecvt_base::error) 29724: { 29724: __rlen = __bend - __buf; 29724: __elen = _M_file.xsputn(__buf, __rlen); 29724: __plen = __rlen; 29724: } 29724: else 29724: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 29724: ); 29724: } 29724: } 29724: return __elen == __plen; 29724: } 29724: 29724: template 29724: streamsize 29724: basic_filebuf<_CharT, _Traits>:: 29724: xsgetn(_CharT* __s, streamsize __n) 29724: { 29724: 29724: streamsize __ret = 0; 29724: if (_M_pback_init) 29724: { 29724: if (__n > 0 && this->gptr() == this->eback()) 29724: { 29724: *__s++ = *this->gptr(); 29724: this->gbump(1); 29724: __ret = 1; 29724: --__n; 29724: } 29724: _M_destroy_pback(); 29724: } 29724: else if (_M_writing) 29724: { 29724: if (overflow() == traits_type::eof()) 29724: return __ret; 29724: _M_set_buffer(-1); 29724: _M_writing = false; 29724: } 29724: 29724: 29724: 29724: 29724: const bool __testin = _M_mode & ios_base::in; 29724: const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 29724: 29724: if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() 29724: && __testin) 29724: { 29724: 29724: const streamsize __avail = this->egptr() - this->gptr(); 29724: if (__avail != 0) 29724: { 29724: traits_type::copy(__s, this->gptr(), __avail); 29724: __s += __avail; 29724: this->setg(this->eback(), this->gptr() + __avail, this->egptr()); 29724: __ret += __avail; 29724: __n -= __avail; 29724: } 29724: 29724: 29724: 29724: streamsize __len; 29724: for (;;) 29724: { 29724: __len = _M_file.xsgetn(reinterpret_cast(__s), __n); 29724: if (__len == -1) 29724: __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") 29724: , (*__errno_location ())); 29724: if (__len == 0) 29724: break; 29724: 29724: __n -= __len; 29724: __ret += __len; 29724: if (__n == 0) 29724: break; 29724: 29724: __s += __len; 29724: } 29724: 29724: if (__n == 0) 29724: { 29724: 29724: _M_reading = true; 29724: } 29724: else if (__len == 0) 29724: { 29724: 29724: 29724: 29724: _M_set_buffer(-1); 29724: _M_reading = false; 29724: } 29724: } 29724: else 29724: __ret += __streambuf_type::xsgetn(__s, __n); 29724: 29724: return __ret; 29724: } 29724: 29724: template 29724: streamsize 29724: basic_filebuf<_CharT, _Traits>:: 29724: xsputn(const _CharT* __s, streamsize __n) 29724: { 29724: streamsize __ret = 0; 29724: 29724: 29724: 29724: const bool __testout = (_M_mode & ios_base::out 29724: || _M_mode & ios_base::app); 29724: if (__check_facet(_M_codecvt).always_noconv() 29724: && __testout && !_M_reading) 29724: { 29724: streamsize __bufavail = this->epptr() - this->pptr(); 29724: 29724: 29724: if (!_M_writing && _M_buf_size > 1) 29724: __bufavail = _M_buf_size - 1; 29724: 29724: if (__n >= __bufavail) 29724: { 29724: const streamsize __buffill = this->pptr() - this->pbase(); 29724: const char* __buf = reinterpret_cast(this->pbase()); 29724: __ret = _M_file.xsputn_2(__buf, __buffill, 29724: reinterpret_cast(__s), 29724: __n); 29724: if (__ret == __buffill + __n) 29724: { 29724: _M_set_buffer(0); 29724: _M_writing = true; 29724: } 29724: if (__ret > __buffill) 29724: __ret -= __buffill; 29724: else 29724: __ret = 0; 29724: } 29724: else 29724: __ret = __streambuf_type::xsputn(__s, __n); 29724: } 29724: else 29724: __ret = __streambuf_type::xsputn(__s, __n); 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::__streambuf_type* 29724: basic_filebuf<_CharT, _Traits>:: 29724: setbuf(char_type* __s, streamsize __n) 29724: { 29724: if (!this->is_open()) 29724: { 29724: if (__s == 0 && __n == 0) 29724: _M_buf_size = 1; 29724: else if (__s && __n > 0) 29724: { 29724: # 816 "/usr/include/c++/14/bits/fstream.tcc" 3 29724: _M_buf = __s; 29724: _M_buf_size = __n; 29724: } 29724: } 29724: return this; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::pos_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) 29724: { 29724: int __width = 0; 29724: if (_M_codecvt) 29724: __width = _M_codecvt->encoding(); 29724: if (__width < 0) 29724: __width = 0; 29724: 29724: pos_type __ret = pos_type(off_type(-1)); 29724: const bool __testfail = __off != 0 && __width <= 0; 29724: if (this->is_open() && !__testfail) 29724: { 29724: 29724: 29724: 29724: 29724: bool __no_movement = __way == ios_base::cur && __off == 0 29724: && (!_M_writing || _M_codecvt->always_noconv()); 29724: 29724: 29724: if (!__no_movement) 29724: _M_destroy_pback(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __state_type __state = _M_state_beg; 29724: off_type __computed_off = __off * __width; 29724: if (_M_reading && __way == ios_base::cur) 29724: { 29724: __state = _M_state_last; 29724: __computed_off += _M_get_ext_pos(__state); 29724: } 29724: if (!__no_movement) 29724: __ret = _M_seek(__computed_off, __way, __state); 29724: else 29724: { 29724: if (_M_writing) 29724: __computed_off = this->pptr() - this->pbase(); 29724: 29724: off_type __file_off = _M_file.seekoff(0, ios_base::cur); 29724: if (__file_off != off_type(-1)) 29724: { 29724: __ret = __file_off + __computed_off; 29724: __ret.state(__state); 29724: } 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::pos_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: seekpos(pos_type __pos, ios_base::openmode) 29724: { 29724: pos_type __ret = pos_type(off_type(-1)); 29724: if (this->is_open()) 29724: { 29724: 29724: _M_destroy_pback(); 29724: __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::pos_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) 29724: { 29724: pos_type __ret = pos_type(off_type(-1)); 29724: if (_M_terminate_output()) 29724: { 29724: off_type __file_off = _M_file.seekoff(__off, __way); 29724: if (__file_off != off_type(-1)) 29724: { 29724: _M_reading = false; 29724: _M_writing = false; 29724: _M_ext_next = _M_ext_end = _M_ext_buf; 29724: _M_set_buffer(-1); 29724: _M_state_cur = __state; 29724: __ret = __file_off; 29724: __ret.state(_M_state_cur); 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: int basic_filebuf<_CharT, _Traits>:: 29724: _M_get_ext_pos(__state_type& __state) 29724: { 29724: if (_M_codecvt->always_noconv()) 29724: return this->gptr() - this->egptr(); 29724: else 29724: { 29724: 29724: 29724: 29724: const int __gptr_off = 29724: _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, 29724: this->gptr() - this->eback()); 29724: return _M_ext_buf + __gptr_off - _M_ext_end; 29724: } 29724: } 29724: 29724: template 29724: bool 29724: basic_filebuf<_CharT, _Traits>:: 29724: _M_terminate_output() 29724: { 29724: 29724: bool __testvalid = true; 29724: if (this->pbase() < this->pptr()) 29724: { 29724: const int_type __tmp = this->overflow(); 29724: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29724: __testvalid = false; 29724: } 29724: 29724: 29724: if (_M_writing && !__check_facet(_M_codecvt).always_noconv() 29724: && __testvalid) 29724: { 29724: 29724: 29724: 29724: const size_t __blen = 128; 29724: char __buf[__blen]; 29724: codecvt_base::result __r; 29724: streamsize __ilen = 0; 29724: 29724: do 29724: { 29724: char* __next; 29724: __r = _M_codecvt->unshift(_M_state_cur, __buf, 29724: __buf + __blen, __next); 29724: if (__r == codecvt_base::error) 29724: __testvalid = false; 29724: else if (__r == codecvt_base::ok || 29724: __r == codecvt_base::partial) 29724: { 29724: __ilen = __next - __buf; 29724: if (__ilen > 0) 29724: { 29724: const streamsize __elen = _M_file.xsputn(__buf, __ilen); 29724: if (__elen != __ilen) 29724: __testvalid = false; 29724: } 29724: } 29724: } 29724: while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); 29724: 29724: if (__testvalid) 29724: { 29724: 29724: 29724: 29724: 29724: const int_type __tmp = this->overflow(); 29724: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29724: __testvalid = false; 29724: } 29724: } 29724: return __testvalid; 29724: } 29724: 29724: template 29724: int 29724: basic_filebuf<_CharT, _Traits>:: 29724: sync() 29724: { 29724: 29724: 29724: int __ret = 0; 29724: if (this->pbase() < this->pptr()) 29724: { 29724: const int_type __tmp = this->overflow(); 29724: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29724: __ret = -1; 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: void 29724: basic_filebuf<_CharT, _Traits>:: 29724: imbue(const locale& __loc) 29724: { 29724: bool __testvalid = true; 29724: 29724: const __codecvt_type* const _M_codecvt_tmp 29724: = __try_use_facet<__codecvt_type>(__loc); 29724: 29724: if (this->is_open()) 29724: { 29724: 29724: if ((_M_reading || _M_writing) 29724: && __check_facet(_M_codecvt).encoding() == -1) 29724: __testvalid = false; 29724: else 29724: { 29724: if (_M_reading) 29724: { 29724: if (__check_facet(_M_codecvt).always_noconv()) 29724: { 29724: if (_M_codecvt_tmp 29724: && !__check_facet(_M_codecvt_tmp).always_noconv()) 29724: __testvalid = this->seekoff(0, ios_base::cur, _M_mode) 29724: != pos_type(off_type(-1)); 29724: } 29724: else 29724: { 29724: 29724: _M_ext_next = _M_ext_buf 29724: + _M_codecvt->length(_M_state_last, _M_ext_buf, 29724: _M_ext_next, 29724: this->gptr() - this->eback()); 29724: const streamsize __remainder = _M_ext_end - _M_ext_next; 29724: if (__remainder) 29724: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 29724: 29724: _M_ext_next = _M_ext_buf; 29724: _M_ext_end = _M_ext_buf + __remainder; 29724: _M_set_buffer(-1); 29724: _M_state_last = _M_state_cur = _M_state_beg; 29724: } 29724: } 29724: else if (_M_writing && (__testvalid = _M_terminate_output())) 29724: _M_set_buffer(-1); 29724: } 29724: } 29724: 29724: if (__testvalid) 29724: _M_codecvt = _M_codecvt_tmp; 29724: else 29724: _M_codecvt = 0; 29724: } 29724: 29724: 29724: 29724: 29724: extern template class basic_filebuf; 29724: extern template class basic_ifstream; 29724: extern template class basic_ofstream; 29724: extern template class basic_fstream; 29724: 29724: 29724: extern template class basic_filebuf; 29724: extern template class basic_ifstream; 29724: extern template class basic_ofstream; 29724: extern template class basic_fstream; 29724: 29724: 29724: 29724: 29724: } 29724: # 1361 "/usr/include/c++/14/fstream" 2 3 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29724: namespace rocksdb { 29724: class InstrumentedCondVar; 29724: 29724: 29724: 29724: class InstrumentedMutex { 29724: public: 29724: explicit InstrumentedMutex(bool adaptive = false) 29724: : mutex_(adaptive), stats_(nullptr), clock_(nullptr), stats_code_(0) {} 29724: 29724: explicit InstrumentedMutex(SystemClock* clock, bool adaptive = false) 29724: : mutex_(adaptive), stats_(nullptr), clock_(clock), stats_code_(0) {} 29724: 29724: InstrumentedMutex(Statistics* stats, SystemClock* clock, int stats_code, 29724: bool adaptive = false) 29724: : mutex_(adaptive), 29724: stats_(stats), 29724: clock_(clock), 29724: stats_code_(stats_code) {} 29724: # 45 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29724: void Lock(); 29724: 29724: void Unlock() { mutex_.Unlock(); } 29724: 29724: void AssertHeld() const { mutex_.AssertHeld(); } 29724: 29724: private: 29724: void LockInternal(); 29724: friend class InstrumentedCondVar; 29724: port::Mutex mutex_; 29724: Statistics* stats_; 29724: SystemClock* clock_; 29724: int stats_code_; 29724: 29724: 29724: 29724: }; 29724: 29724: class alignas(64U) CacheAlignedInstrumentedMutex 29724: : public InstrumentedMutex { 29724: using InstrumentedMutex::InstrumentedMutex; 29724: }; 29724: static_assert(alignof(CacheAlignedInstrumentedMutex) != 64U || 29724: sizeof(CacheAlignedInstrumentedMutex) % 64U == 0); 29724: 29724: 29724: class InstrumentedMutexLock { 29724: public: 29724: explicit InstrumentedMutexLock(InstrumentedMutex* mutex) : mutex_(mutex) { 29724: mutex_->Lock(); 29724: } 29724: 29724: ~InstrumentedMutexLock() { mutex_->Unlock(); } 29724: 29724: private: 29724: InstrumentedMutex* const mutex_; 29724: InstrumentedMutexLock(const InstrumentedMutexLock&) = delete; 29724: void operator=(const InstrumentedMutexLock&) = delete; 29724: }; 29724: 29724: 29724: 29724: class InstrumentedMutexUnlock { 29724: public: 29724: explicit InstrumentedMutexUnlock(InstrumentedMutex* mutex) : mutex_(mutex) { 29724: mutex_->Unlock(); 29724: } 29724: 29724: ~InstrumentedMutexUnlock() { mutex_->Lock(); } 29724: 29724: private: 29724: InstrumentedMutex* const mutex_; 29724: InstrumentedMutexUnlock(const InstrumentedMutexUnlock&) = delete; 29724: void operator=(const InstrumentedMutexUnlock&) = delete; 29724: }; 29724: 29724: class InstrumentedCondVar { 29724: public: 29724: explicit InstrumentedCondVar(InstrumentedMutex* instrumented_mutex) 29724: : cond_(&(instrumented_mutex->mutex_)), 29724: stats_(instrumented_mutex->stats_), 29724: clock_(instrumented_mutex->clock_), 29724: stats_code_(instrumented_mutex->stats_code_) {} 29724: 29724: void Wait(); 29724: 29724: bool TimedWait(uint64_t abs_time_us); 29724: 29724: void Signal() { cond_.Signal(); } 29724: 29724: void SignalAll() { cond_.SignalAll(); } 29724: 29724: private: 29724: void WaitInternal(); 29724: bool TimedWaitInternal(uint64_t abs_time_us); 29724: port::CondVar cond_; 29724: Statistics* stats_; 29724: SystemClock* clock_; 29724: int stats_code_; 29724: }; 29724: 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/replayer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class TraceRecord; 29724: class TraceRecordResult; 29724: 29724: struct ReplayOptions { 29724: 29724: 29724: uint32_t num_threads; 29724: 29724: 29724: 29724: 29724: 29724: 29724: double fast_forward; 29724: 29724: ReplayOptions() : num_threads(1), fast_forward(1.0) {} 29724: 29724: ReplayOptions(uint32_t num_of_threads, double fast_forward_ratio) 29724: : num_threads(num_of_threads), fast_forward(fast_forward_ratio) {} 29724: }; 29724: 29724: 29724: 29724: 29724: class Replayer { 29724: public: 29724: virtual ~Replayer() = default; 29724: 29724: 29724: 29724: virtual Status Prepare() = 0; 29724: 29724: 29724: virtual uint64_t GetHeaderTimestamp() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Next(std::unique_ptr* record) = 0; 29724: # 71 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/replayer.h" 29724: virtual Status Execute(const std::unique_ptr& record, 29724: std::unique_ptr* result) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Replay( 29724: const ReplayOptions& options, 29724: const std::function&&)>& 29724: result_callback) = 0; 29724: }; 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: class ColumnFamilyHandle; 29724: class ColumnFamilyData; 29724: class DB; 29724: class DBImpl; 29724: class Env; 29724: class Slice; 29724: class SystemClock; 29724: class TraceReader; 29724: class TraceWriter; 29724: class WriteBatch; 29724: 29724: struct ReadOptions; 29724: struct TraceOptions; 29724: struct WriteOptions; 29724: 29724: extern const std::string kTraceMagic; 29724: const unsigned int kTraceTimestampSize = 8; 29724: const unsigned int kTraceTypeSize = 1; 29724: const unsigned int kTracePayloadLengthSize = 4; 29724: const unsigned int kTraceMetadataSize = 29724: kTraceTimestampSize + kTraceTypeSize + kTracePayloadLengthSize; 29724: 29724: static const int kTraceFileMajorVersion = 0; 29724: static const int kTraceFileMinorVersion = 2; 29724: 29724: 29724: struct Trace { 29724: uint64_t ts; 29724: TraceType type; 29724: 29724: 29724: 29724: 29724: uint64_t payload_map = 0; 29724: 29724: 29724: std::string payload; 29724: 29724: void reset() { 29724: ts = 0; 29724: type = kTraceMax; 29724: payload_map = 0; 29724: payload.clear(); 29724: } 29724: }; 29724: 29724: enum TracePayloadType : char { 29724: 29724: 29724: kEmptyPayload = 0, 29724: kWriteBatchData = 1, 29724: kGetCFID = 2, 29724: kGetKey = 3, 29724: kIterCFID = 4, 29724: kIterKey = 5, 29724: kIterLowerBound = 6, 29724: kIterUpperBound = 7, 29724: kMultiGetSize = 8, 29724: kMultiGetCFIDs = 9, 29724: kMultiGetKeys = 10, 29724: }; 29724: 29724: class TracerHelper { 29724: public: 29724: 29724: static Status ParseVersionStr(std::string& v_string, int* v_num); 29724: 29724: 29724: static Status ParseTraceHeader(const Trace& header, int* trace_version, 29724: int* db_version); 29724: 29724: 29724: static void EncodeTrace(const Trace& trace, std::string* encoded_trace); 29724: 29724: 29724: static Status DecodeTrace(const std::string& encoded_trace, Trace* trace); 29724: 29724: 29724: static Status DecodeHeader(const std::string& encoded_trace, Trace* header); 29724: 29724: 29724: static bool SetPayloadMap(uint64_t& payload_map, 29724: const TracePayloadType payload_type); 29724: 29724: 29724: 29724: 29724: 29724: static Status DecodeTraceRecord(Trace* trace, int trace_file_version, 29724: std::unique_ptr* record); 29724: }; 29724: 29724: 29724: 29724: 29724: class Tracer { 29724: public: 29724: Tracer(SystemClock* clock, const TraceOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: ~Tracer(); 29724: 29724: 29724: Status Write(WriteBatch* write_batch); 29724: 29724: 29724: Status Get(ColumnFamilyHandle* cfname, const Slice& key); 29724: 29724: 29724: Status IteratorSeek(const uint32_t& cf_id, const Slice& key, 29724: const Slice& lower_bound, const Slice upper_bound); 29724: Status IteratorSeekForPrev(const uint32_t& cf_id, const Slice& key, 29724: const Slice& lower_bound, const Slice upper_bound); 29724: 29724: 29724: 29724: Status MultiGet(const size_t num_keys, ColumnFamilyHandle** column_families, 29724: const Slice* keys); 29724: 29724: Status MultiGet(const size_t num_keys, ColumnFamilyHandle* column_family, 29724: const Slice* keys); 29724: 29724: Status MultiGet(const std::vector& column_family, 29724: const std::vector& keys); 29724: 29724: 29724: 29724: bool IsTraceFileOverMax(); 29724: 29724: 29724: 29724: bool IsWriteOrderPreserved() { return trace_options_.preserve_write_order; } 29724: 29724: 29724: Status Close(); 29724: 29724: private: 29724: 29724: 29724: 29724: Status WriteHeader(); 29724: 29724: 29724: Status WriteFooter(); 29724: 29724: 29724: 29724: Status WriteTrace(const Trace& trace); 29724: 29724: 29724: 29724: bool ShouldSkipTrace(const TraceType& type); 29724: 29724: SystemClock* clock_; 29724: TraceOptions trace_options_; 29724: std::unique_ptr trace_writer_; 29724: uint64_t trace_request_count_; 29724: Status trace_write_status_; 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29724: 29724: namespace rocksdb { 29724: class SystemClock; 29724: class TraceReader; 29724: class TraceWriter; 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 29724: enum IOTraceOp : char { 29724: 29724: 29724: kIOFileSize = 0, 29724: kIOLen = 1, 29724: kIOOffset = 2, 29724: }; 29724: 29724: struct IOTraceRecord { 29724: 29724: uint64_t access_timestamp = 0; 29724: TraceType trace_type = TraceType::kTraceMax; 29724: 29724: 29724: 29724: uint64_t io_op_data = 0; 29724: std::string file_operation; 29724: uint64_t latency = 0; 29724: std::string io_status; 29724: 29724: std::string file_name; 29724: 29724: 29724: uint64_t len = 0; 29724: uint64_t offset = 0; 29724: uint64_t file_size = 0; 29724: 29724: 29724: uint64_t trace_data = 0; 29724: std::string request_id; 29724: 29724: IOTraceRecord() {} 29724: 29724: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 29724: const uint64_t& _io_op_data, const std::string& _file_operation, 29724: const uint64_t& _latency, const std::string& _io_status, 29724: const std::string& _file_name, const uint64_t& _file_size = 0) 29724: : access_timestamp(_access_timestamp), 29724: trace_type(_trace_type), 29724: io_op_data(_io_op_data), 29724: file_operation(_file_operation), 29724: latency(_latency), 29724: io_status(_io_status), 29724: file_name(_file_name), 29724: file_size(_file_size) {} 29724: 29724: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 29724: const uint64_t& _io_op_data, const std::string& _file_operation, 29724: const uint64_t& _latency, const std::string& _io_status, 29724: const std::string& _file_name, const uint64_t& _len, 29724: const uint64_t& _offset) 29724: : access_timestamp(_access_timestamp), 29724: trace_type(_trace_type), 29724: io_op_data(_io_op_data), 29724: file_operation(_file_operation), 29724: latency(_latency), 29724: io_status(_io_status), 29724: file_name(_file_name), 29724: len(_len), 29724: offset(_offset) {} 29724: }; 29724: 29724: struct IOTraceHeader { 29724: uint64_t start_time; 29724: uint32_t rocksdb_major_version; 29724: uint32_t rocksdb_minor_version; 29724: }; 29724: 29724: 29724: 29724: class IOTraceWriter { 29724: public: 29724: IOTraceWriter(SystemClock* clock, const TraceOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: ~IOTraceWriter() = default; 29724: 29724: IOTraceWriter(const IOTraceWriter&) = delete; 29724: IOTraceWriter& operator=(const IOTraceWriter&) = delete; 29724: IOTraceWriter(IOTraceWriter&&) = delete; 29724: IOTraceWriter& operator=(IOTraceWriter&&) = delete; 29724: 29724: Status WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 29724: 29724: 29724: 29724: Status WriteHeader(); 29724: 29724: private: 29724: SystemClock* clock_; 29724: TraceOptions trace_options_; 29724: std::unique_ptr trace_writer_; 29724: }; 29724: 29724: 29724: class IOTraceReader { 29724: public: 29724: explicit IOTraceReader(std::unique_ptr&& reader); 29724: ~IOTraceReader() = default; 29724: 29724: IOTraceReader(const IOTraceReader&) = delete; 29724: IOTraceReader& operator=(const IOTraceReader&) = delete; 29724: IOTraceReader(IOTraceReader&&) = delete; 29724: IOTraceReader& operator=(IOTraceReader&&) = delete; 29724: 29724: Status ReadHeader(IOTraceHeader* header); 29724: 29724: Status ReadIOOp(IOTraceRecord* record); 29724: 29724: private: 29724: std::unique_ptr trace_reader_; 29724: }; 29724: 29724: 29724: 29724: class IOTracer { 29724: public: 29724: IOTracer(); 29724: ~IOTracer(); 29724: 29724: IOTracer(const IOTracer&) = delete; 29724: IOTracer& operator=(const IOTracer&) = delete; 29724: IOTracer(IOTracer&&) = delete; 29724: IOTracer& operator=(IOTracer&&) = delete; 29724: # 163 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 29724: Status 29724: StartIOTrace(SystemClock* clock, const TraceOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: 29724: 29724: void EndIOTrace(); 29724: 29724: bool is_tracing_enabled() const { return tracing_enabled; } 29724: 29724: void WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 29724: 29724: private: 29724: TraceOptions trace_options_; 29724: 29724: InstrumentedMutex trace_writer_mutex_; 29724: std::atomic writer_; 29724: 29724: 29724: 29724: bool tracing_enabled; 29724: }; 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FileSystemTracingWrapper : public FileSystemWrapper { 29724: public: 29724: FileSystemTracingWrapper(const std::shared_ptr& t, 29724: const std::shared_ptr& io_tracer) 29724: : FileSystemWrapper(t), 29724: io_tracer_(io_tracer), 29724: clock_(SystemClock::Default().get()) {} 29724: 29724: ~FileSystemTracingWrapper() override {} 29724: 29724: static const char* kClassName() { return "FileSystemTracing"; } 29724: const char* Name() const override { return kClassName(); } 29724: 29724: IOStatus NewSequentialFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewRandomAccessFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus ReopenWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewRandomRWFile(const std::string& fname, const FileOptions& options, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 29724: std::vector* r, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus DeleteFile(const std::string& fname, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus CreateDir(const std::string& dirname, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus CreateDirIfMissing(const std::string& dirname, 29724: const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus DeleteDir(const std::string& dirname, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus GetFileSize(const std::string& fname, const IOOptions& options, 29724: uint64_t* file_size, IODebugContext* dbg) override; 29724: 29724: IOStatus Truncate(const std::string& fname, size_t size, 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: SystemClock* clock_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FileSystemPtr { 29724: public: 29724: FileSystemPtr(std::shared_ptr fs, 29724: const std::shared_ptr& io_tracer) 29724: : fs_(fs), io_tracer_(io_tracer) { 29724: fs_tracer_ = std::make_shared(fs_, io_tracer_); 29724: } 29724: 29724: std::shared_ptr operator->() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return fs_tracer_; 29724: } else { 29724: return fs_; 29724: } 29724: } 29724: 29724: 29724: FileSystem* get() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return fs_tracer_.get(); 29724: } else { 29724: return fs_.get(); 29724: } 29724: } 29724: 29724: private: 29724: std::shared_ptr fs_; 29724: std::shared_ptr io_tracer_; 29724: std::shared_ptr fs_tracer_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSSequentialFileTracingWrapper : public FSSequentialFileOwnerWrapper { 29724: public: 29724: FSSequentialFileTracingWrapper(std::unique_ptr&& t, 29724: std::shared_ptr io_tracer, 29724: const std::string& file_name) 29724: : FSSequentialFileOwnerWrapper(std::move(t)), 29724: io_tracer_(io_tracer), 29724: clock_(SystemClock::Default().get()), 29724: file_name_(file_name) {} 29724: 29724: ~FSSequentialFileTracingWrapper() override {} 29724: 29724: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29724: char* scratch, IODebugContext* dbg) override; 29724: 29724: IOStatus InvalidateCache(size_t offset, size_t length) override; 29724: 29724: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) override; 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: SystemClock* clock_; 29724: std::string file_name_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSSequentialFilePtr { 29724: public: 29724: FSSequentialFilePtr() = delete; 29724: FSSequentialFilePtr(std::unique_ptr&& fs, 29724: const std::shared_ptr& io_tracer, 29724: const std::string& file_name) 29724: : io_tracer_(io_tracer), 29724: fs_tracer_(std::move(fs), io_tracer_, 29724: file_name.substr(file_name.find_last_of("/\\") + 29724: 1) ) {} 29724: 29724: FSSequentialFile* operator->() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: FSSequentialFile* get() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: FSSequentialFileTracingWrapper fs_tracer_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSRandomAccessFileTracingWrapper : public FSRandomAccessFileOwnerWrapper { 29724: public: 29724: FSRandomAccessFileTracingWrapper(std::unique_ptr&& t, 29724: std::shared_ptr io_tracer, 29724: const std::string& file_name) 29724: : FSRandomAccessFileOwnerWrapper(std::move(t)), 29724: io_tracer_(io_tracer), 29724: clock_(SystemClock::Default().get()), 29724: file_name_(file_name) {} 29724: 29724: ~FSRandomAccessFileTracingWrapper() override {} 29724: 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override; 29724: 29724: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus InvalidateCache(size_t offset, size_t length) override; 29724: 29724: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29724: std::function cb, 29724: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29724: IODebugContext* dbg) override; 29724: 29724: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: SystemClock* clock_; 29724: 29724: std::string file_name_; 29724: 29724: struct ReadAsyncCallbackInfo { 29724: uint64_t start_time_; 29724: std::function cb_; 29724: void* cb_arg_; 29724: std::string file_op_; 29724: }; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSRandomAccessFilePtr { 29724: public: 29724: FSRandomAccessFilePtr(std::unique_ptr&& fs, 29724: const std::shared_ptr& io_tracer, 29724: const std::string& file_name) 29724: : io_tracer_(io_tracer), 29724: fs_tracer_(std::move(fs), io_tracer_, 29724: file_name.substr(file_name.find_last_of("/\\") + 29724: 1) ) {} 29724: 29724: FSRandomAccessFile* operator->() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: FSRandomAccessFile* get() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: FSRandomAccessFileTracingWrapper fs_tracer_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSWritableFileTracingWrapper : public FSWritableFileOwnerWrapper { 29724: public: 29724: FSWritableFileTracingWrapper(std::unique_ptr&& t, 29724: std::shared_ptr io_tracer, 29724: const std::string& file_name) 29724: : FSWritableFileOwnerWrapper(std::move(t)), 29724: io_tracer_(io_tracer), 29724: clock_(SystemClock::Default().get()), 29724: file_name_(file_name) {} 29724: 29724: ~FSWritableFileTracingWrapper() override {} 29724: 29724: IOStatus Append(const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: IOStatus Append(const Slice& data, const IOOptions& options, 29724: const DataVerificationInfo& , 29724: IODebugContext* dbg) override { 29724: return Append(data, options, dbg); 29724: } 29724: 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: const DataVerificationInfo& , 29724: IODebugContext* dbg) override { 29724: return PositionedAppend(data, offset, options, dbg); 29724: } 29724: 29724: IOStatus Truncate(uint64_t size, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus InvalidateCache(size_t offset, size_t length) override; 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: SystemClock* clock_; 29724: 29724: std::string file_name_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSWritableFilePtr { 29724: public: 29724: FSWritableFilePtr(std::unique_ptr&& fs, 29724: const std::shared_ptr& io_tracer, 29724: const std::string& file_name) 29724: : io_tracer_(io_tracer) { 29724: fs_tracer_.reset(new FSWritableFileTracingWrapper( 29724: std::move(fs), io_tracer_, 29724: file_name.substr(file_name.find_last_of("/\\") + 29724: 1) )); 29724: } 29724: 29724: FSWritableFile* operator->() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return fs_tracer_.get(); 29724: } else { 29724: return fs_tracer_->target(); 29724: } 29724: } 29724: 29724: FSWritableFile* get() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return fs_tracer_.get(); 29724: } else if (fs_tracer_) { 29724: return fs_tracer_->target(); 29724: } else { 29724: return nullptr; 29724: } 29724: } 29724: 29724: void reset() { 29724: fs_tracer_.reset(); 29724: io_tracer_ = nullptr; 29724: } 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: std::unique_ptr fs_tracer_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSRandomRWFileTracingWrapper : public FSRandomRWFileOwnerWrapper { 29724: public: 29724: FSRandomRWFileTracingWrapper(std::unique_ptr&& t, 29724: std::shared_ptr io_tracer, 29724: const std::string& file_name) 29724: : FSRandomRWFileOwnerWrapper(std::move(t)), 29724: io_tracer_(io_tracer), 29724: clock_(SystemClock::Default().get()), 29724: file_name_(file_name) {} 29724: 29724: ~FSRandomRWFileTracingWrapper() override {} 29724: 29724: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override; 29724: 29724: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: SystemClock* clock_; 29724: 29724: std::string file_name_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSRandomRWFilePtr { 29724: public: 29724: FSRandomRWFilePtr(std::unique_ptr&& fs, 29724: std::shared_ptr io_tracer, 29724: const std::string& file_name) 29724: : io_tracer_(io_tracer), 29724: fs_tracer_(std::move(fs), io_tracer_, 29724: file_name.substr(file_name.find_last_of("/\\") + 29724: 1) ) {} 29724: 29724: FSRandomRWFile* operator->() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: FSRandomRWFile* get() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: FSRandomRWFileTracingWrapper fs_tracer_; 29724: }; 29724: 29724: } 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: class RateLimiter { 29724: public: 29724: enum class OpType { 29724: kRead, 29724: kWrite, 29724: }; 29724: 29724: enum class Mode { 29724: kReadsOnly = 0, 29724: kWritesOnly = 1, 29724: kAllIo = 2, 29724: }; 29724: 29724: 29724: explicit RateLimiter(Mode mode = Mode::kWritesOnly) : mode_(mode) {} 29724: 29724: virtual ~RateLimiter() {} 29724: 29724: 29724: 29724: virtual void SetBytesPerSecond(int64_t bytes_per_second) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status SetSingleBurstBytes(int64_t ) { 29724: return Status::NotSupported(); 29724: } 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: virtual void Request(const int64_t , const Env::IOPriority ) { 29724: 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: (static_cast ( 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: false 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: "false" 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: ; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 29724: Statistics* ) { 29724: 29724: 29724: Request(bytes, pri); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 29724: Statistics* stats, OpType op_type) { 29724: if (IsRateLimited(op_type)) { 29724: Request(bytes, pri, stats); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual size_t RequestToken(size_t bytes, size_t alignment, 29724: Env::IOPriority io_priority, Statistics* stats, 29724: RateLimiter::OpType op_type); 29724: 29724: 29724: virtual int64_t GetSingleBurstBytes() const = 0; 29724: 29724: 29724: virtual int64_t GetTotalBytesThrough( 29724: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 29724: 29724: 29724: virtual int64_t GetTotalRequests( 29724: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetTotalPendingRequests( 29724: int64_t* total_pending_requests, 29724: const Env::IOPriority pri = Env::IO_TOTAL) const { 29724: 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: (static_cast ( 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: total_pending_requests != nullptr 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: "total_pending_requests != nullptr" 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: ; 29724: (void)total_pending_requests; 29724: (void)pri; 29724: return Status::NotSupported(); 29724: } 29724: 29724: virtual int64_t GetBytesPerSecond() const = 0; 29724: 29724: virtual bool IsRateLimited(OpType op_type) { 29724: if ((mode_ == RateLimiter::Mode::kWritesOnly && 29724: op_type == RateLimiter::OpType::kRead) || 29724: (mode_ == RateLimiter::Mode::kReadsOnly && 29724: op_type == RateLimiter::OpType::kWrite)) { 29724: return false; 29724: } 29724: return true; 29724: } 29724: 29724: protected: 29724: Mode GetMode() { return mode_; } 29724: 29724: private: 29724: const Mode mode_; 29724: }; 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: RateLimiter* NewGenericRateLimiter( 29724: int64_t rate_bytes_per_sec, int64_t refill_period_us = 100 * 1000, 29724: int32_t fairness = 10, 29724: RateLimiter::Mode mode = RateLimiter::Mode::kWritesOnly, 29724: bool auto_tuned = false, int64_t single_burst_bytes = 0); 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 2 29724: 29724: 29724: 29724: namespace rocksdb { 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: inline size_t TruncateToPageBoundary(size_t page_size, size_t s) { 29724: s -= (s & (page_size - 1)); 29724: 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: (s % page_size) == 0 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "(s % page_size) == 0" 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: return s; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: inline size_t Roundup(size_t x, size_t y) { return ((x + y - 1) / y) * y; } 29724: 29724: 29724: 29724: 29724: 29724: inline size_t Rounddown(size_t x, size_t y) { return (x / y) * y; } 29724: # 57 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: class AlignedBuffer { 29724: size_t alignment_; 29724: FSAllocationPtr buf_; 29724: size_t capacity_; 29724: size_t cursize_; 29724: char* bufstart_; 29724: 29724: public: 29724: AlignedBuffer() 29724: : alignment_(), capacity_(0), cursize_(0), bufstart_(nullptr) {} 29724: 29724: AlignedBuffer(AlignedBuffer&& o) noexcept { *this = std::move(o); } 29724: 29724: AlignedBuffer& operator=(AlignedBuffer&& o) noexcept { 29724: alignment_ = std::move(o.alignment_); 29724: buf_ = std::move(o.buf_); 29724: capacity_ = std::move(o.capacity_); 29724: cursize_ = std::move(o.cursize_); 29724: bufstart_ = std::move(o.bufstart_); 29724: return *this; 29724: } 29724: 29724: AlignedBuffer(const AlignedBuffer&) = delete; 29724: 29724: AlignedBuffer& operator=(const AlignedBuffer&) = delete; 29724: 29724: static bool isAligned(const void* ptr, size_t alignment) { 29724: return reinterpret_cast(ptr) % alignment == 0; 29724: } 29724: 29724: static bool isAligned(size_t n, size_t alignment) { 29724: return n % alignment == 0; 29724: } 29724: 29724: size_t Alignment() const { return alignment_; } 29724: 29724: size_t Capacity() const { return capacity_; } 29724: 29724: size_t CurrentSize() const { return cursize_; } 29724: 29724: const char* BufferStart() const { return bufstart_; } 29724: 29724: char* BufferStart() { return bufstart_; } 29724: 29724: void Clear() { cursize_ = 0; } 29724: 29724: FSAllocationPtr Release() { 29724: cursize_ = 0; 29724: capacity_ = 0; 29724: bufstart_ = nullptr; 29724: return std::move(buf_); 29724: } 29724: 29724: void Alignment(size_t alignment) { 29724: 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: alignment > 0 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "alignment > 0" 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: (alignment & (alignment - 1)) == 0 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "(alignment & (alignment - 1)) == 0" 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: alignment_ = alignment; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: void SetBuffer(Slice& result, FSAllocationPtr new_buf) { 29724: alignment_ = 1; 29724: capacity_ = result.size(); 29724: cursize_ = result.size(); 29724: buf_ = std::move(new_buf); 29724: 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: buf_.get() != nullptr 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "buf_.get() != nullptr" 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: 29724: 29724: bufstart_ = const_cast(result.data()); 29724: } 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: void AllocateNewBuffer(size_t requested_capacity, bool copy_data = false, 29724: uint64_t copy_offset = 0, size_t copy_len = 0) { 29724: 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: alignment_ > 0 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "alignment_ > 0" 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: (alignment_ & (alignment_ - 1)) == 0 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "(alignment_ & (alignment_ - 1)) == 0" 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: 29724: copy_len = copy_len > 0 ? copy_len : cursize_; 29724: if (copy_data && requested_capacity < copy_len) { 29724: 29724: 29724: return; 29724: } 29724: 29724: size_t new_capacity = Roundup(requested_capacity, alignment_); 29724: char* new_buf = new char[new_capacity + alignment_]; 29724: char* new_bufstart = reinterpret_cast( 29724: (reinterpret_cast(new_buf) + (alignment_ - 1)) & 29724: ~static_cast(alignment_ - 1)); 29724: 29724: if (copy_data) { 29724: 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_ 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_" 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: memcpy(new_bufstart, bufstart_ + copy_offset, copy_len); 29724: cursize_ = copy_len; 29724: } else { 29724: cursize_ = 0; 29724: } 29724: 29724: bufstart_ = new_bufstart; 29724: capacity_ = new_capacity; 29724: 29724: 29724: buf_ = std::unique_ptr>( 29724: static_cast(new_buf), 29724: [](void* p) { delete[] static_cast(p); }); 29724: } 29724: # 189 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: size_t Append(const char* src, size_t append_size) { 29724: size_t buffer_remaining = capacity_ - cursize_; 29724: size_t to_copy = std::min(append_size, buffer_remaining); 29724: 29724: if (to_copy > 0) { 29724: memcpy(bufstart_ + cursize_, src, to_copy); 29724: cursize_ += to_copy; 29724: } 29724: return to_copy; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t Read(char* dest, size_t offset, size_t read_size) const { 29724: 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: offset < cursize_ 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "offset < cursize_" 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: 29724: size_t to_read = 0; 29724: if (offset < cursize_) { 29724: to_read = std::min(cursize_ - offset, read_size); 29724: } 29724: if (to_read > 0) { 29724: memcpy(dest, bufstart_ + offset, to_read); 29724: } 29724: return to_read; 29724: } 29724: 29724: 29724: void PadToAlignmentWith(int padding) { 29724: size_t total_size = Roundup(cursize_, alignment_); 29724: size_t pad_size = total_size - cursize_; 29724: 29724: if (pad_size > 0) { 29724: 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: (pad_size + cursize_) <= capacity_ 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "(pad_size + cursize_) <= capacity_" 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: memset(bufstart_ + cursize_, padding, pad_size); 29724: cursize_ += pad_size; 29724: } 29724: } 29724: 29724: void PadWith(size_t pad_size, int padding) { 29724: 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: (pad_size + cursize_) <= capacity_ 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "(pad_size + cursize_) <= capacity_" 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: memset(bufstart_ + cursize_, padding, pad_size); 29724: cursize_ += pad_size; 29724: } 29724: 29724: 29724: void RefitTail(size_t tail_offset, size_t tail_size) { 29724: if (tail_size > 0) { 29724: memmove(bufstart_, bufstart_ + tail_offset, tail_size); 29724: } 29724: cursize_ = tail_size; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: char* Destination() { return bufstart_ + cursize_; } 29724: 29724: void Size(size_t cursize) { cursize_ = cursize; } 29724: }; 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29724: 29724: namespace rocksdb { 29724: class Statistics; 29724: class HistogramImpl; 29724: class SystemClock; 29724: 29724: using AlignedBuf = FSAllocationPtr; 29724: 29724: 29724: FSReadRequest Align(const FSReadRequest& r, size_t alignment); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool TryMerge(FSReadRequest* dest, const FSReadRequest& src); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class RandomAccessFileReader { 29724: private: 29724: void NotifyOnFileReadFinish( 29724: uint64_t offset, size_t length, 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const Status& status) const { 29724: FileOperationInfo info(FileOperationType::kRead, file_name_, start_ts, 29724: finish_ts, status, file_temperature_); 29724: info.offset = offset; 29724: info.length = length; 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileReadFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: 29724: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 29724: const std::string& file_path, size_t length, 29724: uint64_t offset) const { 29724: if (listeners_.empty()) { 29724: return; 29724: } 29724: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnIOError(io_error_info); 29724: } 29724: io_status.PermitUncheckedError(); 29724: } 29724: 29724: 29724: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 29724: 29724: FSRandomAccessFilePtr file_; 29724: std::string file_name_; 29724: SystemClock* clock_; 29724: Statistics* stats_; 29724: uint32_t hist_type_; 29724: HistogramImpl* file_read_hist_; 29724: RateLimiter* rate_limiter_; 29724: std::vector> listeners_; 29724: const Temperature file_temperature_; 29724: const bool is_last_level_; 29724: 29724: struct ReadAsyncInfo { 29724: ReadAsyncInfo(std::function cb, void* cb_arg, 29724: uint64_t start_time) 29724: : cb_(cb), 29724: cb_arg_(cb_arg), 29724: start_time_(start_time), 29724: user_scratch_(nullptr), 29724: user_aligned_buf_(nullptr), 29724: user_offset_(0), 29724: user_len_(0), 29724: is_aligned_(false) {} 29724: 29724: std::function cb_; 29724: void* cb_arg_; 29724: uint64_t start_time_; 29724: FileOperationInfo::StartTimePoint fs_start_ts_; 29724: 29724: char* user_scratch_; 29724: AlignedBuf* user_aligned_buf_; 29724: uint64_t user_offset_; 29724: size_t user_len_; 29724: Slice user_result_; 29724: 29724: AlignedBuffer buf_; 29724: bool is_aligned_; 29724: }; 29724: 29724: public: 29724: explicit RandomAccessFileReader( 29724: std::unique_ptr&& raf, const std::string& _file_name, 29724: SystemClock* clock = nullptr, 29724: const std::shared_ptr& io_tracer = nullptr, 29724: Statistics* stats = nullptr, 29724: uint32_t hist_type = Histograms::HISTOGRAM_ENUM_MAX, 29724: HistogramImpl* file_read_hist = nullptr, 29724: RateLimiter* rate_limiter = nullptr, 29724: const std::vector>& listeners = {}, 29724: Temperature file_temperature = Temperature::kUnknown, 29724: bool is_last_level = false) 29724: : file_(std::move(raf), io_tracer, _file_name), 29724: file_name_(std::move(_file_name)), 29724: clock_(clock), 29724: stats_(stats), 29724: hist_type_(hist_type), 29724: file_read_hist_(file_read_hist), 29724: rate_limiter_(rate_limiter), 29724: listeners_(), 29724: file_temperature_(file_temperature), 29724: is_last_level_(is_last_level) { 29724: std::for_each(listeners.begin(), listeners.end(), 29724: [this](const std::shared_ptr& e) { 29724: if (e->ShouldBeNotifiedOnFileIO()) { 29724: listeners_.emplace_back(e); 29724: } 29724: }); 29724: } 29724: 29724: static IOStatus Create(const std::shared_ptr& fs, 29724: const std::string& fname, const FileOptions& file_opts, 29724: std::unique_ptr* reader, 29724: /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/merge_helper.cc.o -MF CMakeFiles/rocksdb.dir/db/merge_helper.cc.o.d -o CMakeFiles/rocksdb.dir/db/merge_helper.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/merge_helper.cc IODebugContext* dbg); 29724: RandomAccessFileReader(const RandomAccessFileReader&) = delete; 29724: RandomAccessFileReader& operator=(const RandomAccessFileReader&) = delete; 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 29724: IOStatus Read(const IOOptions& opts, uint64_t offset, size_t n, Slice* result, 29724: char* scratch, AlignedBuf* aligned_buf) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: IOStatus MultiRead(const IOOptions& opts, FSReadRequest* reqs, 29724: size_t num_reqs, AlignedBuf* aligned_buf) const; 29724: 29724: IOStatus Prefetch(const IOOptions& opts, uint64_t offset, size_t n) const { 29724: return file_->Prefetch(offset, n, opts, nullptr); 29724: } 29724: 29724: FSRandomAccessFile* file() { return file_.get(); } 29724: 29724: const std::string& file_name() const { return file_name_; } 29724: 29724: bool use_direct_io() const { return file_->use_direct_io(); } 29724: 29724: IOStatus PrepareIOOptions(const ReadOptions& ro, IOOptions& opts) const; 29724: 29724: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29724: std::function cb, 29724: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29724: AlignedBuf* aligned_buf); 29724: 29724: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 29724: }; 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 1 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/options/db_options.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: class SystemClock; 29724: 29724: struct ImmutableDBOptions { 29724: static const char* kName() { return "ImmutableDBOptions"; } 29724: ImmutableDBOptions(); 29724: explicit ImmutableDBOptions(const DBOptions& options); 29724: 29724: void Dump(Logger* log) const; 29724: 29724: bool create_if_missing; 29724: bool create_missing_column_families; 29724: bool error_if_exists; 29724: bool paranoid_checks; 29724: bool flush_verify_memtable_count; 29724: bool compaction_verify_record_count; 29724: bool track_and_verify_wals_in_manifest; 29724: bool verify_sst_unique_id_in_manifest; 29724: Env* env; 29724: std::shared_ptr rate_limiter; 29724: std::shared_ptr sst_file_manager; 29724: std::shared_ptr info_log; 29724: InfoLogLevel info_log_level; 29724: int max_file_opening_threads; 29724: std::shared_ptr statistics; 29724: bool use_fsync; 29724: std::vector db_paths; 29724: std::string db_log_dir; 29724: 29724: 29724: 29724: std::string wal_dir; 29724: size_t max_log_file_size; 29724: size_t log_file_time_to_roll; 29724: size_t keep_log_file_num; 29724: size_t recycle_log_file_num; 29724: uint64_t max_manifest_file_size; 29724: int table_cache_numshardbits; 29724: uint64_t WAL_ttl_seconds; 29724: uint64_t WAL_size_limit_MB; 29724: uint64_t max_write_batch_group_size_bytes; 29724: size_t manifest_preallocation_size; 29724: bool allow_mmap_reads; 29724: bool allow_mmap_writes; 29724: bool use_direct_reads; 29724: bool use_direct_io_for_flush_and_compaction; 29724: bool allow_fallocate; 29724: bool is_fd_close_on_exec; 29724: bool advise_random_on_open; 29724: size_t db_write_buffer_size; 29724: std::shared_ptr write_buffer_manager; 29724: size_t random_access_max_buffer_size; 29724: bool use_adaptive_mutex; 29724: std::vector> listeners; 29724: bool enable_thread_tracking; 29724: bool enable_pipelined_write; 29724: bool unordered_write; 29724: bool allow_concurrent_memtable_write; 29724: bool enable_write_thread_adaptive_yield; 29724: uint64_t write_thread_max_yield_usec; 29724: uint64_t write_thread_slow_yield_usec; 29724: bool skip_stats_update_on_db_open; 29724: bool skip_checking_sst_file_sizes_on_db_open; 29724: WALRecoveryMode wal_recovery_mode; 29724: bool allow_2pc; 29724: std::shared_ptr row_cache; 29724: WalFilter* wal_filter; 29724: bool fail_if_options_file_error; 29724: bool dump_malloc_stats; 29724: bool avoid_flush_during_recovery; 29724: bool allow_ingest_behind; 29724: bool two_write_queues; 29724: bool manual_wal_flush; 29724: CompressionType wal_compression; 29724: bool background_close_inactive_wals; 29724: bool atomic_flush; 29724: bool avoid_unnecessary_blocking_io; 29724: bool prefix_seek_opt_in_only; 29724: bool persist_stats_to_disk; 29724: bool write_dbid_to_manifest; 29724: bool write_identity_file; 29724: size_t log_readahead_size; 29724: std::shared_ptr file_checksum_gen_factory; 29724: bool best_efforts_recovery; 29724: int max_bgerror_resume_count; 29724: uint64_t bgerror_resume_retry_interval; 29724: bool allow_data_in_errors; 29724: std::string db_host_id; 29724: FileTypeSet checksum_handoff_file_types; 29724: CacheTier lowest_used_cache_tier; 29724: std::shared_ptr compaction_service; 29724: bool enforce_single_del_contracts; 29724: uint64_t follower_refresh_catchup_period_ms; 29724: uint64_t follower_catchup_retry_count; 29724: uint64_t follower_catchup_retry_wait_ms; 29724: Temperature metadata_write_temperature; 29724: Temperature wal_write_temperature; 29724: 29724: 29724: 29724: std::shared_ptr fs; 29724: SystemClock* clock; 29724: Statistics* stats; 29724: Logger* logger; 29724: 29724: 29724: bool IsWalDirSameAsDBPath() const; 29724: bool IsWalDirSameAsDBPath(const std::string& path) const; 29724: const std::string& GetWalDir() const; 29724: const std::string& GetWalDir(const std::string& path) const; 29724: }; 29724: 29724: struct MutableDBOptions { 29724: static const char* kName() { return "MutableDBOptions"; } 29724: MutableDBOptions(); 29724: explicit MutableDBOptions(const DBOptions& options); 29724: 29724: void Dump(Logger* log) const; 29724: 29724: int max_background_jobs; 29724: int max_background_compactions; 29724: uint32_t max_subcompactions; 29724: bool avoid_flush_during_shutdown; 29724: size_t writable_file_max_buffer_size; 29724: uint64_t delayed_write_rate; 29724: uint64_t max_total_wal_size; 29724: uint64_t delete_obsolete_files_period_micros; 29724: unsigned int stats_dump_period_sec; 29724: unsigned int stats_persist_period_sec; 29724: size_t stats_history_buffer_size; 29724: int max_open_files; 29724: uint64_t bytes_per_sync; 29724: uint64_t wal_bytes_per_sync; 29724: bool strict_bytes_per_sync; 29724: size_t compaction_readahead_size; 29724: int max_background_flushes; 29724: std::string daily_offpeak_time_utc; 29724: }; 29724: 29724: Status GetStringFromMutableDBOptions(const ConfigOptions& config_options, 29724: const MutableDBOptions& mutable_opts, 29724: std::string* opt_string); 29724: 29724: Status GetMutableDBOptionsFromStrings( 29724: const MutableDBOptions& base_options, 29724: const std::unordered_map& options_map, 29724: MutableDBOptions* new_options); 29724: 29724: bool MutableDBOptionsAreEqual(const MutableDBOptions& this_options, 29724: const MutableDBOptions& that_options); 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Env; 29724: class Directory; 29724: class SystemClock; 29724: class WritableFileWriter; 29724: 29724: 29724: 29724: 29724: constexpr char kFilePathSeparator = '/'; 29724: 29724: 29724: 29724: 29724: 29724: std::string LogFileName(const std::string& dbname, uint64_t number); 29724: 29724: std::string LogFileName(uint64_t number); 29724: 29724: std::string BlobFileName(uint64_t number); 29724: 29724: std::string BlobFileName(const std::string& bdirname, uint64_t number); 29724: 29724: std::string BlobFileName(const std::string& dbname, const std::string& blob_dir, 29724: uint64_t number); 29724: 29724: std::string ArchivalDirectory(const std::string& dbname); 29724: 29724: 29724: 29724: std::string ArchivedLogFileName(const std::string& dbname, uint64_t num); 29724: 29724: std::string MakeTableFileName(const std::string& name, uint64_t number); 29724: 29724: std::string MakeTableFileName(uint64_t number); 29724: 29724: 29724: 29724: std::string Rocks2LevelTableFileName(const std::string& fullname); 29724: 29724: 29724: 29724: uint64_t TableFileNameToNumber(const std::string& name); 29724: 29724: 29724: 29724: 29724: std::string TableFileName(const std::vector& db_paths, uint64_t number, 29724: uint32_t path_id); 29724: 29724: 29724: const size_t kFormatFileNumberBufSize = 38; 29724: 29724: void FormatFileNumber(uint64_t number, uint32_t path_id, char* out_buf, 29724: size_t out_buf_size); 29724: 29724: 29724: 29724: 29724: std::string DescriptorFileName(const std::string& dbname, uint64_t number); 29724: 29724: std::string DescriptorFileName(uint64_t number); 29724: 29724: extern const std::string kCurrentFileName; 29724: 29724: 29724: 29724: 29724: std::string CurrentFileName(const std::string& dbname); 29724: 29724: 29724: 29724: std::string LockFileName(const std::string& dbname); 29724: 29724: 29724: 29724: std::string TempFileName(const std::string& dbname, uint64_t number); 29724: 29724: 29724: struct InfoLogPrefix { 29724: char buf[260]; 29724: Slice prefix; 29724: 29724: explicit InfoLogPrefix(bool has_log_dir, const std::string& db_absolute_path); 29724: 29724: explicit InfoLogPrefix(); 29724: }; 29724: 29724: 29724: std::string InfoLogFileName(const std::string& dbname, 29724: const std::string& db_path = "", 29724: const std::string& log_dir = ""); 29724: 29724: 29724: std::string OldInfoLogFileName(const std::string& dbname, uint64_t ts, 29724: const std::string& db_path = "", 29724: const std::string& log_dir = ""); 29724: 29724: extern const std::string kOptionsFileNamePrefix; 29724: extern const std::string kTempFileNameSuffix; 29724: 29724: 29724: 29724: std::string OptionsFileName(const std::string& dbname, uint64_t file_num); 29724: std::string OptionsFileName(uint64_t file_num); 29724: 29724: 29724: 29724: std::string TempOptionsFileName(const std::string& dbname, uint64_t file_num); 29724: 29724: 29724: 29724: std::string MetaDatabaseName(const std::string& dbname, uint64_t number); 29724: 29724: 29724: 29724: 29724: std::string IdentityFileName(const std::string& dbname); 29724: 29724: 29724: 29724: 29724: 29724: bool ParseFileName(const std::string& filename, uint64_t* number, 29724: const Slice& info_log_name_prefix, FileType* type, 29724: WalFileType* log_type = nullptr); 29724: 29724: bool ParseFileName(const std::string& filename, uint64_t* number, 29724: FileType* type, WalFileType* log_type = nullptr); 29724: 29724: 29724: 29724: 29724: 29724: IOStatus SetCurrentFile(const WriteOptions& write_options, FileSystem* fs, 29724: const std::string& dbname, uint64_t descriptor_number, 29724: Temperature temp, 29724: FSDirectory* dir_contains_current_file); 29724: 29724: 29724: Status SetIdentityFile(const WriteOptions& write_options, Env* env, 29724: const std::string& dbname, Temperature temp, 29724: const std::string& db_id = {}); 29724: 29724: 29724: IOStatus SyncManifest(const ImmutableDBOptions* db_options, 29724: const WriteOptions& write_options, 29724: WritableFileWriter* file); 29724: 29724: 29724: 29724: 29724: 29724: Status GetInfoLogFiles(const std::shared_ptr& fs, 29724: const std::string& db_log_dir, const std::string& dbname, 29724: std::string* parent_dir, 29724: std::vector* file_names); 29724: 29724: std::string NormalizePath(const std::string& path); 29724: } 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 2 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 29724: namespace rocksdb { 29724: 29724: 29724: IOStatus CopyFile(FileSystem* fs, const std::string& source, 29724: Temperature src_temp_hint, 29724: std::unique_ptr& dest_writer, 29724: uint64_t size, bool use_fsync, 29724: const std::shared_ptr& io_tracer); 29724: IOStatus CopyFile(FileSystem* fs, const std::string& source, 29724: Temperature src_temp_hint, const std::string& destination, 29724: Temperature dst_temp, uint64_t size, bool use_fsync, 29724: const std::shared_ptr& io_tracer); 29724: inline IOStatus CopyFile(const std::shared_ptr& fs, 29724: const std::string& source, Temperature src_temp_hint, 29724: const std::string& destination, Temperature dst_temp, 29724: uint64_t size, bool use_fsync, 29724: const std::shared_ptr& io_tracer) { 29724: return CopyFile(fs.get(), source, src_temp_hint, destination, dst_temp, size, 29724: use_fsync, io_tracer); 29724: } 29724: IOStatus CreateFile(FileSystem* fs, const std::string& destination, 29724: const std::string& contents, bool use_fsync); 29724: 29724: inline IOStatus CreateFile(const std::shared_ptr& fs, 29724: const std::string& destination, 29724: const std::string& contents, bool use_fsync) { 29724: return CreateFile(fs.get(), destination, contents, use_fsync); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status DeleteDBFile(const ImmutableDBOptions* db_options, 29724: const std::string& fname, const std::string& path_to_sync, 29724: const bool force_bg, const bool force_fg); 29724: 29724: 29724: 29724: 29724: 29724: Status DeleteUnaccountedDBFile(const ImmutableDBOptions* db_options, 29724: const std::string& fname, 29724: const std::string& dir_to_sync, 29724: const bool force_bg, const bool force_fg, 29724: std::optional bucket); 29724: 29724: 29724: IOStatus GenerateOneFileChecksum( 29724: FileSystem* fs, const std::string& file_path, 29724: FileChecksumGenFactory* checksum_factory, 29724: const std::string& requested_checksum_func_name, std::string* file_checksum, 29724: std::string* file_checksum_func_name, 29724: size_t verify_checksums_readahead_size, bool allow_mmap_reads, 29724: std::shared_ptr& io_tracer, RateLimiter* rate_limiter, 29724: const ReadOptions& read_options, Statistics* stats, SystemClock* clock); 29724: 29724: inline IOStatus PrepareIOFromReadOptions(const ReadOptions& ro, 29724: SystemClock* clock, IOOptions& opts) { 29724: if (ro.deadline.count()) { 29724: std::chrono::microseconds now = 29724: std::chrono::microseconds(clock->NowMicros()); 29724: 29724: 29724: if (now >= ro.deadline) { 29724: return IOStatus::TimedOut("Deadline exceeded"); 29724: } 29724: opts.timeout = ro.deadline - now; 29724: } 29724: 29724: if (ro.io_timeout.count() && 29724: (!opts.timeout.count() || ro.io_timeout < opts.timeout)) { 29724: opts.timeout = ro.io_timeout; 29724: } 29724: 29724: opts.rate_limiter_priority = ro.rate_limiter_priority; 29724: opts.io_activity = ro.io_activity; 29724: 29724: return IOStatus::OK(); 29724: } 29724: 29724: inline IOStatus PrepareIOFromWriteOptions(const WriteOptions& wo, 29724: IOOptions& opts) { 29724: opts.rate_limiter_priority = wo.rate_limiter_priority; 29724: opts.io_activity = wo.io_activity; 29724: 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: Status DestroyDir(Env* env, const std::string& dir); 29724: 29724: inline bool CheckFSFeatureSupport(FileSystem* fs, FSSupportedOps feat) { 29724: int64_t supported_ops = 0; 29724: fs->SupportedOps(supported_ops); 29724: if (supported_ops & (1ULL << feat)) { 29724: return true; 29724: } 29724: return false; 29724: } 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 2 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: namespace rocksdb { 29724: # 39 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: template 29724: class autovector { 29724: public: 29724: 29724: using value_type = T; 29724: using difference_type = typename std::vector::difference_type; 29724: using size_type = typename std::vector::size_type; 29724: using reference = value_type&; 29724: using const_reference = const value_type&; 29724: using pointer = value_type*; 29724: using const_pointer = const value_type*; 29724: 29724: 29724: template 29724: class iterator_impl { 29724: public: 29724: 29724: using self_type = iterator_impl; 29724: using value_type = TValueType; 29724: using reference = TValueType&; 29724: using pointer = TValueType*; 29724: using difference_type = typename TAutoVector::difference_type; 29724: using iterator_category = std::random_access_iterator_tag; 29724: 29724: iterator_impl(TAutoVector* vect, size_t index) 29724: : vect_(vect), index_(index){} 29724: iterator_impl(const iterator_impl&) = default; 29724: ~iterator_impl() {} 29724: iterator_impl& operator=(const iterator_impl&) = default; 29724: 29724: 29724: 29724: self_type& operator++() { 29724: ++index_; 29724: return *this; 29724: } 29724: 29724: 29724: self_type operator++(int) { 29724: auto old = *this; 29724: ++index_; 29724: return old; 29724: } 29724: 29724: 29724: self_type& operator--() { 29724: --index_; 29724: return *this; 29724: } 29724: 29724: 29724: self_type operator--(int) { 29724: auto old = *this; 29724: --index_; 29724: return old; 29724: } 29724: 29724: self_type operator-(difference_type len) const { 29724: return self_type(vect_, index_ - len); 29724: } 29724: 29724: difference_type operator-(const self_type& other) const { 29724: 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ - other.index_; 29724: } 29724: 29724: self_type operator+(difference_type len) const { 29724: return self_type(vect_, index_ + len); 29724: } 29724: 29724: self_type& operator+=(difference_type len) { 29724: index_ += len; 29724: return *this; 29724: } 29724: 29724: self_type& operator-=(difference_type len) { 29724: index_ -= len; 29724: return *this; 29724: } 29724: 29724: 29724: reference operator*() const { 29724: 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_->size() >= index_ 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_->size() >= index_" 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return (*vect_)[index_]; 29724: } 29724: 29724: pointer operator->() const { 29724: 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_->size() >= index_ 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_->size() >= index_" 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return &(*vect_)[index_]; 29724: } 29724: 29724: reference operator[](difference_type len) const { return *(*this + len); } 29724: 29724: 29724: bool operator==(const self_type& other) const { 29724: 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ == other.index_; 29724: } 29724: 29724: bool operator!=(const self_type& other) const { return !(*this == other); } 29724: 29724: bool operator>(const self_type& other) const { 29724: 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ > other.index_; 29724: } 29724: 29724: bool operator<(const self_type& other) const { 29724: 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ < other.index_; 29724: } 29724: 29724: bool operator>=(const self_type& other) const { 29724: 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ >= other.index_; 29724: } 29724: 29724: bool operator<=(const self_type& other) const { 29724: 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ <= other.index_; 29724: } 29724: 29724: private: 29724: TAutoVector* vect_ = nullptr; 29724: size_t index_ = 0; 29724: }; 29724: 29724: using iterator = iterator_impl; 29724: using const_iterator = iterator_impl; 29724: using reverse_iterator = std::reverse_iterator; 29724: using const_reverse_iterator = std::reverse_iterator; 29724: 29724: autovector() : values_(reinterpret_cast(buf_)) {} 29724: 29724: autovector(std::initializer_list init_list) 29724: : values_(reinterpret_cast(buf_)) { 29724: for (const T& item : init_list) { 29724: push_back(item); 29724: } 29724: } 29724: 29724: ~autovector() { clear(); } 29724: 29724: 29724: 29724: bool only_in_stack() const { 29724: 29724: return vect_.capacity() == 0; 29724: } 29724: 29724: size_type size() const { return num_stack_items_ + vect_.size(); } 29724: 29724: 29724: 29724: void resize(size_type n) { 29724: if (n > kSize) { 29724: vect_.resize(n - kSize); 29724: while (num_stack_items_ < kSize) { 29724: new ((void*)(&values_[num_stack_items_++])) value_type(); 29724: } 29724: num_stack_items_ = kSize; 29724: } else { 29724: vect_.clear(); 29724: while (num_stack_items_ < n) { 29724: new ((void*)(&values_[num_stack_items_++])) value_type(); 29724: } 29724: while (num_stack_items_ > n) { 29724: values_[--num_stack_items_].~value_type(); 29724: } 29724: } 29724: } 29724: 29724: bool empty() const { return size() == 0; } 29724: 29724: size_type capacity() const { return kSize + vect_.capacity(); } 29724: 29724: void reserve(size_t cap) { 29724: if (cap > kSize) { 29724: vect_.reserve(cap - kSize); 29724: } 29724: 29724: 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: cap <= capacity() 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "cap <= capacity()" 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: } 29724: 29724: const_reference operator[](size_type n) const { 29724: 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: n < size() 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "n < size()" 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: if (n < kSize) { 29724: return values_[n]; 29724: } 29724: return vect_[n - kSize]; 29724: } 29724: 29724: reference operator[](size_type n) { 29724: 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: n < size() 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "n < size()" 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: if (n < kSize) { 29724: return values_[n]; 29724: } 29724: return vect_[n - kSize]; 29724: } 29724: 29724: const_reference at(size_type n) const { 29724: 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: n < size() 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "n < size()" 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return (*this)[n]; 29724: } 29724: 29724: reference at(size_type n) { 29724: 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: n < size() 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "n < size()" 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return (*this)[n]; 29724: } 29724: 29724: reference front() { 29724: 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: !empty() 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "!empty()" 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return *begin(); 29724: } 29724: 29724: const_reference front() const { 29724: 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: !empty() 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "!empty()" 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return *begin(); 29724: } 29724: 29724: reference back() { 29724: 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: !empty() 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "!empty()" 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return *(end() - 1); 29724: } 29724: 29724: const_reference back() const { 29724: 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: !empty() 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "!empty()" 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return *(end() - 1); 29724: } 29724: 29724: 29724: void push_back(T&& item) { 29724: if (num_stack_items_ < kSize) { 29724: new ((void*)(&values_[num_stack_items_])) value_type(); 29724: values_[num_stack_items_++] = std::move(item); 29724: } else { 29724: vect_.push_back(item); 29724: } 29724: } 29724: 29724: void push_back(const T& item) { 29724: if (num_stack_items_ < kSize) { 29724: new ((void*)(&values_[num_stack_items_])) value_type(); 29724: values_[num_stack_items_++] = item; 29724: } else { 29724: vect_.push_back(item); 29724: } 29724: } 29724: 29724: template 29724: # 298 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: void emplace_back(Args&&... args) { 29724: if (num_stack_items_ < kSize) { 29724: new ((void*)(&values_[num_stack_items_++])) 29724: value_type(std::forward(args)...); 29724: } else { 29724: vect_.emplace_back(std::forward(args)...); 29724: } 29724: } 29724: 29724: 29724: void pop_back() { 29724: 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: !empty() 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "!empty()" 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: if (!vect_.empty()) { 29724: vect_.pop_back(); 29724: } else { 29724: values_[--num_stack_items_].~value_type(); 29724: } 29724: } 29724: 29724: void clear() { 29724: while (num_stack_items_ > 0) { 29724: values_[--num_stack_items_].~value_type(); 29724: } 29724: vect_.clear(); 29724: } 29724: 29724: 29724: autovector& assign(const autovector& other); 29724: 29724: autovector(const autovector& other) { assign(other); } 29724: 29724: autovector& operator=(const autovector& other) { return assign(other); } 29724: 29724: autovector(autovector&& other) noexcept { *this = std::move(other); } 29724: autovector& operator=(autovector&& other); 29724: 29724: 29724: iterator begin() { return iterator(this, 0); } 29724: 29724: const_iterator begin() const { return const_iterator(this, 0); } 29724: 29724: iterator end() { return iterator(this, this->size()); } 29724: 29724: const_iterator end() const { return const_iterator(this, this->size()); } 29724: 29724: reverse_iterator rbegin() { return reverse_iterator(end()); } 29724: 29724: const_reverse_iterator rbegin() const { 29724: return const_reverse_iterator(end()); 29724: } 29724: 29724: reverse_iterator rend() { return reverse_iterator(begin()); } 29724: 29724: const_reverse_iterator rend() const { 29724: return const_reverse_iterator(begin()); 29724: } 29724: 29724: private: 29724: size_type num_stack_items_ = 0; 29724: alignas(alignof( 29724: value_type)) char buf_[kSize * 29724: sizeof(value_type)]; 29724: pointer values_; 29724: 29724: std::vector vect_; 29724: }; 29724: 29724: template 29724: autovector& autovector::assign( 29724: const autovector& other) { 29724: values_ = reinterpret_cast(buf_); 29724: 29724: vect_.assign(other.vect_.begin(), other.vect_.end()); 29724: 29724: 29724: num_stack_items_ = other.num_stack_items_; 29724: for (size_t i = 0; i < num_stack_items_; ++i) { 29724: new ((void*)(&values_[i])) value_type(); 29724: } 29724: std::copy(other.values_, other.values_ + num_stack_items_, values_); 29724: 29724: return *this; 29724: } 29724: 29724: template 29724: autovector& autovector::operator=( 29724: autovector&& other) { 29724: values_ = reinterpret_cast(buf_); 29724: vect_ = std::move(other.vect_); 29724: size_t n = other.num_stack_items_; 29724: num_stack_items_ = n; 29724: other.num_stack_items_ = 0; 29724: for (size_t i = 0; i < n; ++i) { 29724: new ((void*)(&values_[i])) value_type(); 29724: values_[i] = std::move(other.values_[i]); 29724: } 29724: return *this; 29724: } 29724: 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: struct IOOptions; 29724: class RandomAccessFileReader; 29724: 29724: struct ReadaheadParams { 29724: ReadaheadParams() {} 29724: 29724: 29724: size_t initial_readahead_size = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t max_readahead_size = 0; 29724: 29724: 29724: 29724: bool implicit_auto_readahead = false; 29724: 29724: 29724: uint64_t num_file_reads = 0; 29724: uint64_t num_file_reads_for_auto_readahead = 0; 29724: 29724: 29724: 29724: size_t num_buffers = 1; 29724: }; 29724: 29724: struct BufferInfo { 29724: void ClearBuffer() { 29724: buffer_.Clear(); 29724: initial_end_offset_ = 0; 29724: async_req_len_ = 0; 29724: } 29724: 29724: AlignedBuffer buffer_; 29724: 29724: uint64_t offset_ = 0; 29724: 29724: 29724: 29724: size_t async_req_len_ = 0; 29724: 29724: 29724: 29724: bool async_read_in_progress_ = false; 29724: 29724: 29724: 29724: void* io_handle_ = nullptr; 29724: 29724: IOHandleDeleter del_fn_ = nullptr; 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: uint64_t initial_end_offset_ = 0; 29724: 29724: bool IsDataBlockInBuffer(uint64_t offset, size_t length) { 29724: 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: async_read_in_progress_ == false 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "async_read_in_progress_ == false" 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: return (offset >= offset_ && 29724: offset + length <= offset_ + buffer_.CurrentSize()); 29724: } 29724: 29724: bool IsOffsetInBuffer(uint64_t offset) { 29724: 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: async_read_in_progress_ == false 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "async_read_in_progress_ == false" 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: return (offset >= offset_ && offset < offset_ + buffer_.CurrentSize()); 29724: } 29724: 29724: bool DoesBufferContainData() { 29724: 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: async_read_in_progress_ == false 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "async_read_in_progress_ == false" 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: return buffer_.CurrentSize() > 0; 29724: } 29724: 29724: bool IsBufferOutdated(uint64_t offset) { 29724: return (!async_read_in_progress_ && DoesBufferContainData() && 29724: offset >= offset_ + buffer_.CurrentSize()); 29724: } 29724: 29724: bool IsBufferOutdatedWithAsyncProgress(uint64_t offset) { 29724: return (async_read_in_progress_ && io_handle_ != nullptr && 29724: offset >= offset_ + async_req_len_); 29724: } 29724: 29724: bool IsOffsetInBufferWithAsyncProgress(uint64_t offset) { 29724: return (async_read_in_progress_ && offset >= offset_ && 29724: offset < offset_ + async_req_len_); 29724: } 29724: 29724: size_t CurrentSize() { return buffer_.CurrentSize(); } 29724: }; 29724: 29724: enum class FilePrefetchBufferUsage { 29724: kTableOpenPrefetchTail, 29724: kUserScanPrefetch, 29724: kUnknown, 29724: }; 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: class FilePrefetchBuffer { 29724: public: 29724: # 186 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: FilePrefetchBuffer( 29724: const ReadaheadParams& readahead_params = {}, bool enable = true, 29724: bool track_min_offset = false, FileSystem* fs = nullptr, 29724: SystemClock* clock = nullptr, Statistics* stats = nullptr, 29724: const std::function& cb = nullptr, 29724: FilePrefetchBufferUsage usage = FilePrefetchBufferUsage::kUnknown) 29724: : readahead_size_(readahead_params.initial_readahead_size), 29724: initial_auto_readahead_size_(readahead_params.initial_readahead_size), 29724: max_readahead_size_(readahead_params.max_readahead_size), 29724: min_offset_read_(std::numeric_limits::max()), 29724: enable_(enable), 29724: track_min_offset_(track_min_offset), 29724: implicit_auto_readahead_(readahead_params.implicit_auto_readahead), 29724: prev_offset_(0), 29724: prev_len_(0), 29724: num_file_reads_for_auto_readahead_( 29724: readahead_params.num_file_reads_for_auto_readahead), 29724: num_file_reads_(readahead_params.num_file_reads), 29724: explicit_prefetch_submitted_(false), 29724: fs_(fs), 29724: clock_(clock), 29724: stats_(stats), 29724: usage_(usage), 29724: readaheadsize_cb_(cb), 29724: num_buffers_(readahead_params.num_buffers) { 29724: 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: (num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0) 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "(num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0)" 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: 29724: # 212 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (num_buffers_ > 1 || 29724: (fs_ != nullptr && 29724: CheckFSFeatureSupport(fs_, FSSupportedOps::kFSBuffer))) { 29724: overlap_buf_ = new BufferInfo(); 29724: } 29724: 29724: free_bufs_.resize(num_buffers_); 29724: for (uint32_t i = 0; i < num_buffers_; i++) { 29724: free_bufs_[i] = new BufferInfo(); 29724: } 29724: } 29724: 29724: ~FilePrefetchBuffer() { 29724: 29724: if (fs_ != nullptr) { 29724: std::vector handles; 29724: for (auto& buf : bufs_) { 29724: if (buf->async_read_in_progress_ && buf->io_handle_ != nullptr) { 29724: handles.emplace_back(buf->io_handle_); 29724: } 29724: } 29724: if (!handles.empty()) { 29724: StopWatch sw(clock_, stats_, ASYNC_PREFETCH_ABORT_MICROS); 29724: Status s = fs_->AbortIO(handles); 29724: 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: s.ok() 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "s.ok()" 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: } 29724: 29724: for (auto& buf : bufs_) { 29724: if (buf->io_handle_ != nullptr) { 29724: DestroyAndClearIOHandle(buf); 29724: buf->ClearBuffer(); 29724: } 29724: buf->async_read_in_progress_ = false; 29724: } 29724: } 29724: 29724: 29724: uint64_t bytes_discarded = 0; 29724: 29724: for (auto& buf : bufs_) { 29724: if (buf->DoesBufferContainData()) { 29724: 29724: if (prev_offset_ >= buf->offset_ && 29724: prev_offset_ + prev_len_ < buf->offset_ + buf->CurrentSize()) { 29724: bytes_discarded += 29724: buf->CurrentSize() - (prev_offset_ + prev_len_ - buf->offset_); 29724: } 29724: 29724: else if (prev_offset_ < buf->offset_ && 29724: prev_offset_ + prev_len_ <= buf->offset_) { 29724: bytes_discarded += buf->CurrentSize(); 29724: } 29724: } 29724: } 29724: 29724: RecordInHistogram(stats_, PREFETCHED_BYTES_DISCARDED, bytes_discarded); 29724: 29724: for (auto& buf : bufs_) { 29724: delete buf; 29724: buf = nullptr; 29724: } 29724: 29724: for (auto& buf : free_bufs_) { 29724: delete buf; 29724: buf = nullptr; 29724: } 29724: 29724: if (overlap_buf_ != nullptr) { 29724: delete overlap_buf_; 29724: overlap_buf_ = nullptr; 29724: } 29724: } 29724: 29724: bool Enabled() const { return enable_; } 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: Status Prefetch(const IOOptions& opts, RandomAccessFileReader* reader, 29724: uint64_t offset, size_t n); 29724: # 316 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: Status PrefetchAsync(const IOOptions& opts, RandomAccessFileReader* reader, 29724: uint64_t offset, size_t n, Slice* result); 29724: # 332 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: bool TryReadFromCache(const IOOptions& opts, RandomAccessFileReader* reader, 29724: uint64_t offset, size_t n, Slice* result, Status* s, 29724: bool for_compaction = false); 29724: 29724: 29724: 29724: size_t min_offset_read() const { return min_offset_read_; } 29724: 29724: size_t GetPrefetchOffset() const { return bufs_.front()->offset_; } 29724: 29724: 29724: void UpdateReadPattern(const uint64_t& offset, const size_t& len, 29724: bool decrease_readaheadsize) { 29724: if (decrease_readaheadsize) { 29724: DecreaseReadAheadIfEligible(offset, len); 29724: } 29724: prev_offset_ = offset; 29724: prev_len_ = len; 29724: explicit_prefetch_submitted_ = false; 29724: } 29724: 29724: void GetReadaheadState(ReadaheadFileInfo::ReadaheadInfo* readahead_info) { 29724: readahead_info->readahead_size = readahead_size_; 29724: readahead_info->num_file_reads = num_file_reads_; 29724: } 29724: 29724: void DecreaseReadAheadIfEligible(uint64_t offset, size_t size, 29724: size_t value = 8 * 1024) { 29724: if (bufs_.empty()) { 29724: return; 29724: } 29724: # 374 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: size_t curr_size = bufs_.front()->async_read_in_progress_ 29724: ? bufs_.front()->async_req_len_ 29724: : bufs_.front()->CurrentSize(); 29724: if (implicit_auto_readahead_ && readahead_size_ > 0) { 29724: if ((offset + size > bufs_.front()->offset_ + curr_size) && 29724: IsBlockSequential(offset) && 29724: (num_file_reads_ + 1 > num_file_reads_for_auto_readahead_)) { 29724: readahead_size_ = 29724: std::max(initial_auto_readahead_size_, 29724: (readahead_size_ >= value ? readahead_size_ - value : 0)); 29724: } 29724: } 29724: } 29724: 29724: 29724: void PrefetchAsyncCallback(FSReadRequest& req, void* cb_arg); 29724: 29724: void TEST_GetBufferOffsetandSize( 29724: std::vector>& buffer_info) { 29724: for (size_t i = 0; i < bufs_.size(); i++) { 29724: std::get<0>(buffer_info[i]) = bufs_[i]->offset_; 29724: std::get<1>(buffer_info[i]) = bufs_[i]->async_read_in_progress_ 29724: ? bufs_[i]->async_req_len_ 29724: : bufs_[i]->CurrentSize(); 29724: std::get<2>(buffer_info[i]) = bufs_[i]->async_read_in_progress_; 29724: } 29724: } 29724: 29724: void TEST_GetOverlapBufferOffsetandSize( 29724: std::pair& buffer_info) { 29724: if (overlap_buf_ != nullptr) { 29724: buffer_info.first = overlap_buf_->offset_; 29724: buffer_info.second = overlap_buf_->CurrentSize(); 29724: } 29724: } 29724: 29724: private: 29724: 29724: 29724: 29724: void PrepareBufferForRead(BufferInfo* buf, size_t alignment, uint64_t offset, 29724: size_t roundup_len, bool refit_tail, 29724: bool use_fs_buffer, uint64_t& aligned_useful_len); 29724: 29724: void AbortOutdatedIO(uint64_t offset); 29724: 29724: void AbortAllIOs(); 29724: 29724: void ClearOutdatedData(uint64_t offset, size_t len); 29724: 29724: 29724: void PollIfNeeded(uint64_t offset, size_t len); 29724: 29724: Status PrefetchInternal(const IOOptions& opts, RandomAccessFileReader* reader, 29724: uint64_t offset, size_t length, size_t readahead_size, 29724: bool& copy_to_third_buffer); 29724: 29724: Status Read(BufferInfo* buf, const IOOptions& opts, 29724: RandomAccessFileReader* reader, uint64_t read_len, 29724: uint64_t aligned_useful_len, uint64_t start_offset, 29724: bool use_fs_buffer); 29724: 29724: Status ReadAsync(BufferInfo* buf, const IOOptions& opts, 29724: RandomAccessFileReader* reader, uint64_t read_len, 29724: uint64_t start_offset); 29724: 29724: 29724: void CopyDataToOverlapBuffer(BufferInfo* src, uint64_t& offset, 29724: size_t& length); 29724: 29724: bool IsBlockSequential(const size_t& offset) { 29724: return (prev_len_ == 0 || (prev_offset_ + prev_len_ == offset)); 29724: } 29724: 29724: 29724: void ResetValues() { 29724: num_file_reads_ = 1; 29724: readahead_size_ = initial_auto_readahead_size_; 29724: } 29724: 29724: 29724: bool IsEligibleForPrefetch(uint64_t offset, size_t n) { 29724: 29724: 29724: if (!IsBlockSequential(offset)) { 29724: UpdateReadPattern(offset, n, false ); 29724: ResetValues(); 29724: return false; 29724: } 29724: num_file_reads_++; 29724: 29724: 29724: 29724: 29724: if (explicit_prefetch_submitted_) { 29724: return true; 29724: } 29724: if (num_file_reads_ <= num_file_reads_for_auto_readahead_) { 29724: UpdateReadPattern(offset, n, false ); 29724: return false; 29724: } 29724: return true; 29724: } 29724: 29724: bool IsEligibleForFurtherPrefetching() { 29724: if (free_bufs_.empty()) { 29724: return false; 29724: } 29724: 29724: if (readahead_size_ == 0) { 29724: return false; 29724: } 29724: return true; 29724: } 29724: 29724: 29724: 29724: 29724: bool UseFSBuffer(RandomAccessFileReader* reader) { 29724: return reader->file() != nullptr && !reader->use_direct_io() && 29724: fs_ != nullptr && 29724: CheckFSFeatureSupport(fs_, FSSupportedOps::kFSBuffer) && 29724: num_buffers_ == 1; 29724: } 29724: 29724: 29724: 29724: 29724: size_t GetRequiredBufferAlignment(RandomAccessFileReader* reader) { 29724: if (UseFSBuffer(reader)) { 29724: return 1; 29724: } 29724: return reader->file()->GetRequiredBufferAlignment(); 29724: } 29724: 29724: 29724: IOStatus FSBufferDirectRead(RandomAccessFileReader* reader, BufferInfo* buf, 29724: const IOOptions& opts, uint64_t offset, size_t n, 29724: Slice& result) { 29724: FSReadRequest read_req; 29724: read_req.offset = offset; 29724: read_req.len = n; 29724: read_req.scratch = nullptr; 29724: IOStatus s = reader->MultiRead(opts, &read_req, 1, nullptr); 29724: if (!s.ok()) { 29724: return s; 29724: } 29724: s = read_req.status; 29724: if (!s.ok()) { 29724: return s; 29724: } 29724: buf->buffer_.SetBuffer(read_req.result, std::move(read_req.fs_scratch)); 29724: buf->offset_ = offset; 29724: buf->initial_end_offset_ = offset + read_req.result.size(); 29724: result = read_req.result; 29724: return s; 29724: } 29724: 29724: void DestroyAndClearIOHandle(BufferInfo* buf) { 29724: if (buf->io_handle_ != nullptr && buf->del_fn_ != nullptr) { 29724: buf->del_fn_(buf->io_handle_); 29724: buf->io_handle_ = nullptr; 29724: buf->del_fn_ = nullptr; 29724: } 29724: buf->async_read_in_progress_ = false; 29724: } 29724: 29724: void HandleOverlappingSyncData(uint64_t offset, size_t length, 29724: uint64_t& tmp_offset, size_t& tmp_length, 29724: bool& use_overlap_buffer); 29724: 29724: Status HandleOverlappingAsyncData(const IOOptions& opts, 29724: RandomAccessFileReader* reader, 29724: uint64_t offset, size_t length, 29724: size_t readahead_size, 29724: bool& copy_to_third_buffer, 29724: uint64_t& tmp_offset, size_t& tmp_length); 29724: 29724: bool TryReadFromCacheUntracked(const IOOptions& opts, 29724: RandomAccessFileReader* reader, 29724: uint64_t offset, size_t n, Slice* result, 29724: Status* s, bool for_compaction = false); 29724: 29724: void ReadAheadSizeTuning(BufferInfo* buf, bool read_curr_block, 29724: bool refit_tail, bool use_fs_buffer, 29724: uint64_t prev_buf_end_offset, size_t alignment, 29724: size_t length, size_t readahead_size, 29724: uint64_t& offset, uint64_t& end_offset, 29724: size_t& read_len, uint64_t& aligned_useful_len); 29724: 29724: void UpdateStats(bool found_in_buffer, size_t length_found) { 29724: if (found_in_buffer) { 29724: RecordTick(stats_, PREFETCH_HITS); 29724: } 29724: if (length_found > 0) { 29724: RecordTick(stats_, PREFETCH_BYTES_USEFUL, length_found); 29724: } 29724: } 29724: 29724: void UpdateReadAheadTrimmedStat(size_t initial_length, 29724: size_t updated_length) { 29724: if (initial_length != updated_length) { 29724: RecordTick(stats_, READAHEAD_TRIMMED); 29724: } 29724: } 29724: 29724: Status PrefetchRemBuffers(const IOOptions& opts, 29724: RandomAccessFileReader* reader, 29724: uint64_t end_offset1, size_t alignment, 29724: size_t readahead_size); 29724: 29724: 29724: bool IsBufferQueueEmpty() { return bufs_.empty(); } 29724: 29724: BufferInfo* GetFirstBuffer() { return bufs_.front(); } 29724: 29724: BufferInfo* GetLastBuffer() { return bufs_.back(); } 29724: 29724: size_t NumBuffersAllocated() { return bufs_.size(); } 29724: 29724: void AllocateBuffer() { 29724: 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: !free_bufs_.empty() 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "!free_bufs_.empty()" 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: BufferInfo* buf = free_bufs_.front(); 29724: free_bufs_.pop_front(); 29724: bufs_.emplace_back(buf); 29724: } 29724: 29724: void AllocateBufferIfEmpty() { 29724: if (bufs_.empty()) { 29724: AllocateBuffer(); 29724: } 29724: } 29724: 29724: void FreeFrontBuffer() { 29724: BufferInfo* buf = bufs_.front(); 29724: buf->ClearBuffer(); 29724: bufs_.pop_front(); 29724: free_bufs_.emplace_back(buf); 29724: } 29724: 29724: void FreeLastBuffer() { 29724: BufferInfo* buf = bufs_.back(); 29724: buf->ClearBuffer(); 29724: bufs_.pop_back(); 29724: free_bufs_.emplace_back(buf); 29724: } 29724: 29724: void FreeAllBuffers() { 29724: while (!bufs_.empty()) { 29724: BufferInfo* buf = bufs_.front(); 29724: buf->ClearBuffer(); 29724: bufs_.pop_front(); 29724: free_bufs_.emplace_back(buf); 29724: } 29724: } 29724: 29724: void FreeEmptyBuffers() { 29724: if (bufs_.empty()) { 29724: return; 29724: } 29724: 29724: std::deque tmp_buf; 29724: while (!bufs_.empty()) { 29724: BufferInfo* buf = bufs_.front(); 29724: bufs_.pop_front(); 29724: if (buf->async_read_in_progress_ || buf->DoesBufferContainData()) { 29724: tmp_buf.emplace_back(buf); 29724: } else { 29724: free_bufs_.emplace_back(buf); 29724: } 29724: } 29724: bufs_ = tmp_buf; 29724: } 29724: 29724: 29724: 29724: std::deque bufs_; 29724: std::deque free_bufs_; 29724: BufferInfo* overlap_buf_ = nullptr; 29724: 29724: size_t readahead_size_; 29724: size_t initial_auto_readahead_size_; 29724: 29724: 29724: size_t max_readahead_size_; 29724: 29724: 29724: size_t min_offset_read_; 29724: 29724: 29724: bool enable_; 29724: 29724: 29724: bool track_min_offset_; 29724: 29724: 29724: 29724: bool implicit_auto_readahead_; 29724: uint64_t prev_offset_; 29724: size_t prev_len_; 29724: 29724: 29724: uint64_t num_file_reads_for_auto_readahead_; 29724: uint64_t num_file_reads_; 29724: 29724: 29724: 29724: 29724: 29724: bool explicit_prefetch_submitted_; 29724: 29724: FileSystem* fs_; 29724: SystemClock* clock_; 29724: Statistics* stats_; 29724: 29724: FilePrefetchBufferUsage usage_; 29724: 29724: std::function readaheadsize_cb_; 29724: 29724: 29724: 29724: size_t num_buffers_; 29724: }; 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_allocator_impl.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: struct CustomDeleter { 29724: CustomDeleter(MemoryAllocator* a = nullptr) : allocator(a) {} 29724: 29724: void operator()(char* ptr) const { 29724: if (allocator) { 29724: allocator->Deallocate(ptr); 29724: } else { 29724: delete[] ptr; 29724: } 29724: } 29724: 29724: MemoryAllocator* allocator; 29724: }; 29724: 29724: using CacheAllocationPtr = std::unique_ptr; 29724: 29724: inline CacheAllocationPtr AllocateBlock(size_t size, 29724: MemoryAllocator* allocator) { 29724: if (allocator) { 29724: auto block = reinterpret_cast(allocator->Allocate(size)); 29724: return CacheAllocationPtr(block, allocator); 29724: } 29724: return CacheAllocationPtr(new char[size]); 29724: } 29724: 29724: inline CacheAllocationPtr AllocateAndCopyBlock(const Slice& data, 29724: MemoryAllocator* allocator) { 29724: CacheAllocationPtr cap = AllocateBlock(data.size(), allocator); 29724: std::copy_n(data.data(), data.size(), cap.get()); 29724: return cap; 29724: } 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/malloc.h" 1 3 4 29724: # 24 "/usr/include/malloc.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 25 "/usr/include/malloc.h" 2 3 4 29724: # 36 "/usr/include/malloc.h" 3 4 29724: 29724: # 36 "/usr/include/malloc.h" 3 4 29724: extern "C" { 29724: 29724: 29724: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29724: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern void *calloc (size_t __nmemb, size_t __size) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void *realloc (void *__ptr, size_t __size) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) 29724: __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: extern void free (void *__ptr) noexcept (true); 29724: 29724: 29724: extern void *memalign (size_t __alignment, size_t __size) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 29724: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29724: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: 29724: extern void *pvalloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: 29724: struct mallinfo 29724: { 29724: int arena; 29724: int ordblks; 29724: int smblks; 29724: int hblks; 29724: int hblkhd; 29724: int usmblks; 29724: int fsmblks; 29724: int uordblks; 29724: int fordblks; 29724: int keepcost; 29724: }; 29724: 29724: 29724: 29724: 29724: struct mallinfo2 29724: { 29724: size_t arena; 29724: size_t ordblks; 29724: size_t smblks; 29724: size_t hblks; 29724: size_t hblkhd; 29724: size_t usmblks; 29724: size_t fsmblks; 29724: size_t uordblks; 29724: size_t fordblks; 29724: size_t keepcost; 29724: }; 29724: 29724: 29724: extern struct mallinfo mallinfo (void) noexcept (true) __attribute__ ((__deprecated__)); 29724: 29724: 29724: extern struct mallinfo2 mallinfo2 (void) noexcept (true); 29724: # 144 "/usr/include/malloc.h" 3 4 29724: extern int mallopt (int __param, int __val) noexcept (true); 29724: 29724: 29724: 29724: extern int malloc_trim (size_t __pad) noexcept (true); 29724: 29724: 29724: 29724: extern size_t malloc_usable_size (void *__ptr) noexcept (true); 29724: 29724: 29724: extern void malloc_stats (void) noexcept (true); 29724: 29724: 29724: extern int malloc_info (int __options, FILE *__fp) noexcept (true); 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/block_based/block_type.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/table/block_based/block_type.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum class BlockType : uint8_t { 29724: kData, 29724: kFilter, 29724: kFilterPartitionIndex, 29724: kProperties, 29724: kCompressionDictionary, 29724: kRangeDeletion, 29724: kHashIndexPrefixes, 29724: kHashIndexMetadata, 29724: kMetaIndex, 29724: kIndex, 29724: 29724: kInvalid 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 8 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 2 29724: # 24 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct KillPoint { 29724: public: 29724: 29724: 29724: int rocksdb_kill_odds = 0; 29724: 29724: std::vector rocksdb_kill_exclude_prefixes; 29724: 29724: void TestKillRandom(std::string kill_point, int odds, 29724: const std::string& srcfile, int srcline); 29724: 29724: static KillPoint* GetInstance(); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: namespace rocksdb { 29724: # 74 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: class SyncPoint { 29724: public: 29724: static SyncPoint* GetInstance(); 29724: 29724: SyncPoint(const SyncPoint&) = delete; 29724: SyncPoint& operator=(const SyncPoint&) = delete; 29724: ~SyncPoint(); 29724: 29724: struct SyncPointPair { 29724: std::string predecessor; 29724: std::string successor; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: void LoadDependency(const std::vector& dependencies); 29724: 29724: 29724: 29724: 29724: 29724: void LoadDependencyAndMarkers(const std::vector& dependencies, 29724: const std::vector& markers); 29724: 29724: 29724: 29724: 29724: void SetCallBack(const std::string& point, 29724: const std::function& callback); 29724: 29724: 29724: void ClearCallBack(const std::string& point); 29724: 29724: 29724: void ClearAllCallBacks(); 29724: 29724: 29724: void EnableProcessing(); 29724: 29724: 29724: void DisableProcessing(); 29724: 29724: 29724: void ClearTrace(); 29724: 29724: 29724: 29724: 29724: void Process(const Slice& point, void* cb_arg = nullptr); 29724: 29724: 29724: 29724: template 29724: void Process(const char (&point)[kLen], void* cb_arg = nullptr) { 29724: static_assert(kLen > 0, "Must not be empty"); 29724: 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29724: (static_cast ( 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: point[kLen - 1] == '\0' 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: "point[kLen - 1] == '\\0'" 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: ; 29724: Process(Slice(point, kLen - 1), cb_arg); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct Data; 29724: 29724: private: 29724: 29724: SyncPoint(); 29724: Data* impl_; 29724: }; 29724: 29724: 29724: 29724: void SetupSyncPointsToMockDirectIO(); 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/compression_context_cache.h" 1 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/compression_context_cache.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: class ZSTDUncompressCachedData; 29724: 29724: class CompressionContextCache { 29724: public: 29724: 29724: static CompressionContextCache* Instance(); 29724: static void InitSingleton(); 29724: CompressionContextCache(const CompressionContextCache&) = delete; 29724: CompressionContextCache& operator=(const CompressionContextCache&) = delete; 29724: 29724: ZSTDUncompressCachedData GetCachedZSTDUncompressData(); 29724: void ReturnCachedZSTDUncompressData(int64_t idx); 29724: 29724: private: 29724: 29724: CompressionContextCache(); 29724: ~CompressionContextCache(); 29724: 29724: class Rep; 29724: Rep* rep_; 29724: }; 29724: 29724: } 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: 29724: std::vector StringSplit(const std::string& arg, char delim); 29724: 29724: 29724: void AppendNumberTo(std::string* str, uint64_t num); 29724: 29724: 29724: 29724: void AppendEscapedStringTo(std::string* str, const Slice& value); 29724: 29724: 29724: 29724: template 29724: inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { 29724: const char* digitChars = uppercase ? "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" 29724: : "0123456789abcdefghijklmnopqrstuvwxyz"; 29724: for (size_t i = n; i > 0; --i) { 29724: (*buf)[i - 1] = digitChars[static_cast(v % kBase)]; 29724: v /= kBase; 29724: } 29724: *buf += n; 29724: } 29724: # 52 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29724: template 29724: inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { 29724: while (n) { 29724: char c = **buf; 29724: *v *= static_cast(kBase); 29724: if (c >= '0' && (kBase >= 10 ? c <= '9' : c < '0' + kBase)) { 29724: *v += static_cast(c - '0'); 29724: } else if (kBase > 10 && c >= 'A' && c < 'A' + kBase - 10) { 29724: *v += static_cast(c - 'A' + 10); 29724: } else if (kBase > 10 && c >= 'a' && c < 'a' + kBase - 10) { 29724: *v += static_cast(c - 'a' + 10); 29724: } else { 29724: return false; 29724: } 29724: --n; 29724: ++*buf; 29724: } 29724: return true; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: std::string NumberToHumanString(int64_t num); 29724: 29724: 29724: 29724: std::string BytesToHumanString(uint64_t bytes); 29724: 29724: 29724: 29724: std::string TimeToHumanString(int unixtime); 29724: 29724: 29724: int AppendHumanMicros(uint64_t micros, char* output, int len, 29724: bool fixed_format); 29724: 29724: 29724: int AppendHumanBytes(uint64_t bytes, char* output, int len); 29724: 29724: 29724: 29724: std::string EscapeString(const Slice& value); 29724: 29724: 29724: 29724: 29724: 29724: bool ConsumeDecimalNumber(Slice* in, uint64_t* val); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool isSpecialChar(const char c); 29724: 29724: 29724: 29724: 29724: char UnescapeChar(const char c); 29724: 29724: 29724: 29724: 29724: char EscapeChar(const char c); 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29724: std::string EscapeOptionString(const std::string& raw_string); 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::string UnescapeOptionString(const std::string& escaped_string); 29724: 29724: std::string trim(const std::string& str); 29724: 29724: 29724: bool EndsWith(const std::string& string, const std::string& pattern); 29724: 29724: 29724: bool StartsWith(const std::string& string, const std::string& pattern); 29724: 29724: bool ParseBoolean(const std::string& type, const std::string& value); 29724: 29724: uint8_t ParseUint8(const std::string& value); 29724: 29724: uint32_t ParseUint32(const std::string& value); 29724: 29724: int32_t ParseInt32(const std::string& value); 29724: 29724: uint64_t ParseUint64(const std::string& value); 29724: 29724: int ParseInt(const std::string& value); 29724: 29724: int64_t ParseInt64(const std::string& value); 29724: 29724: double ParseDouble(const std::string& value); 29724: 29724: size_t ParseSizeT(const std::string& value); 29724: 29724: std::vector ParseVectorInt(const std::string& value); 29724: 29724: bool SerializeIntVector(const std::vector& vec, std::string* value); 29724: 29724: 29724: 29724: int ParseTimeStringToSeconds(const std::string& value); 29724: 29724: 29724: 29724: 29724: bool TryParseTimeRangeString(const std::string& value, int& start_time, 29724: int& end_time); 29724: 29724: extern const std::string kNullptrString; 29724: 29724: 29724: 29724: std::string errnoStr(int err); 29724: 29724: } 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: # 1 "/usr/include/snappy.h" 1 3 4 29724: # 42 "/usr/include/snappy.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 43 "/usr/include/snappy.h" 2 3 4 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/snappy-stubs-public.h" 1 3 4 29724: # 41 "/usr/include/snappy-stubs-public.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 2 3 4 29724: 29724: 29724: 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 29724: struct iovec 29724: { 29724: void *iov_base; 29724: size_t iov_len; 29724: }; 29724: # 24 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: # 41 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 52 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 86 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "preadv64") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "pwritev64") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 110 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, 29724: __off64_t __offset) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 123 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, 29724: __off64_t __offset) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 143 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t pwritev2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "pwritev64v2") 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: extern ssize_t preadv2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "preadv64v2") 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 161 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t preadv64v2 (int __fp, const struct iovec *__iovec, 29724: int __count, __off64_t __offset, 29724: int ___flags) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: 29724: 29724: extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, 29724: int __count, __off64_t __offset, 29724: int __flags) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 29724: extern "C" { 29724: 29724: 29724: extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, 29724: unsigned long int __liovcnt, 29724: const struct iovec *__rvec, 29724: unsigned long int __riovcnt, 29724: unsigned long int __flags) 29724: noexcept (true); 29724: 29724: 29724: extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, 29724: unsigned long int __liovcnt, 29724: const struct iovec *__rvec, 29724: unsigned long int __riovcnt, 29724: unsigned long int __flags) 29724: noexcept (true); 29724: # 52 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 29724: } 29724: # 180 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 29724: # 42 "/usr/include/snappy-stubs-public.h" 2 3 4 29724: # 50 "/usr/include/snappy-stubs-public.h" 3 4 29724: namespace snappy { 29724: # 61 "/usr/include/snappy-stubs-public.h" 3 4 29724: } 29724: # 48 "/usr/include/snappy.h" 2 3 4 29724: 29724: namespace snappy { 29724: class Source; 29724: class Sink; 29724: 29724: struct CompressionOptions { 29724: # 65 "/usr/include/snappy.h" 3 4 29724: int level = DefaultCompressionLevel(); 29724: 29724: constexpr CompressionOptions() = default; 29724: constexpr CompressionOptions(int compression_level) 29724: : level(compression_level) {} 29724: static constexpr int MinCompressionLevel() { return 1; } 29724: static constexpr int MaxCompressionLevel() { return 2; } 29724: static constexpr int DefaultCompressionLevel() { return 1; } 29724: }; 29724: # 82 "/usr/include/snappy.h" 3 4 29724: size_t Compress(Source* reader, Sink* writer); 29724: size_t Compress(Source* reader, Sink* writer, 29724: CompressionOptions options); 29724: # 93 "/usr/include/snappy.h" 3 4 29724: bool GetUncompressedLength(Source* source, uint32_t* result); 29724: # 104 "/usr/include/snappy.h" 3 4 29724: size_t Compress(const char* input, size_t input_length, 29724: std::string* compressed); 29724: size_t Compress(const char* input, size_t input_length, 29724: std::string* compressed, CompressionOptions options); 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 29724: std::string* compressed); 29724: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 29724: std::string* compressed, 29724: CompressionOptions options); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool Uncompress(const char* compressed, size_t compressed_length, 29724: std::string* uncompressed); 29724: 29724: 29724: 29724: 29724: bool Uncompress(Source* compressed, Sink* uncompressed); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t UncompressAsMuchAsPossible(Source* compressed, Sink* uncompressed); 29724: # 161 "/usr/include/snappy.h" 3 4 29724: void RawCompress(const char* input, size_t input_length, char* compressed, 29724: size_t* compressed_length); 29724: void RawCompress(const char* input, size_t input_length, char* compressed, 29724: size_t* compressed_length, CompressionOptions options); 29724: 29724: 29724: 29724: 29724: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 29724: char* compressed, size_t* compressed_length); 29724: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 29724: char* compressed, size_t* compressed_length, 29724: CompressionOptions options); 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool RawUncompress(const char* compressed, size_t compressed_length, 29724: char* uncompressed); 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool RawUncompress(Source* compressed, char* uncompressed); 29724: # 198 "/usr/include/snappy.h" 3 4 29724: bool RawUncompressToIOVec(const char* compressed, size_t compressed_length, 29724: const struct iovec* iov, size_t iov_cnt); 29724: # 209 "/usr/include/snappy.h" 3 4 29724: bool RawUncompressToIOVec(Source* compressed, const struct iovec* iov, 29724: size_t iov_cnt); 29724: 29724: 29724: 29724: size_t MaxCompressedLength(size_t source_bytes); 29724: 29724: 29724: 29724: 29724: 29724: bool GetUncompressedLength(const char* compressed, size_t compressed_length, 29724: size_t* result); 29724: 29724: 29724: 29724: 29724: 29724: bool IsValidCompressedBuffer(const char* compressed, 29724: size_t compressed_length); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool IsValidCompressed(Source* compressed); 29724: # 247 "/usr/include/snappy.h" 3 4 29724: static constexpr int kBlockLog = 16; 29724: static constexpr size_t kBlockSize = 1 << kBlockLog; 29724: 29724: static constexpr int kMinHashTableBits = 8; 29724: static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits; 29724: 29724: static constexpr int kMaxHashTableBits = 15; 29724: static constexpr size_t kMaxHashTableSize = 1 << kMaxHashTableBits; 29724: } 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: 29724: # 1 "/usr/include/zlib.h" 1 3 4 29724: # 34 "/usr/include/zlib.h" 3 4 29724: # 1 "/usr/include/zconf.h" 1 3 4 29724: # 254 "/usr/include/zconf.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 255 "/usr/include/zconf.h" 2 3 4 29724: typedef size_t z_size_t; 29724: # 393 "/usr/include/zconf.h" 3 4 29724: typedef unsigned char Byte; 29724: 29724: typedef unsigned int uInt; 29724: typedef unsigned long uLong; 29724: 29724: 29724: 29724: 29724: 29724: typedef Byte Bytef; 29724: 29724: typedef char charf; 29724: typedef int intf; 29724: typedef uInt uIntf; 29724: typedef uLong uLongf; 29724: 29724: 29724: typedef void const *voidpc; 29724: typedef void *voidpf; 29724: typedef void *voidp; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29724: # 421 "/usr/include/zconf.h" 2 3 4 29724: # 431 "/usr/include/zconf.h" 3 4 29724: typedef unsigned z_crc_t; 29724: # 484 "/usr/include/zconf.h" 3 4 29724: # 1 "/usr/include/unistd.h" 1 3 4 29724: # 27 "/usr/include/unistd.h" 3 4 29724: extern "C" { 29724: # 202 "/usr/include/unistd.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix_opt.h" 1 3 4 29724: # 203 "/usr/include/unistd.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 1 3 4 29724: # 22 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 2 3 4 29724: # 207 "/usr/include/unistd.h" 2 3 4 29724: # 226 "/usr/include/unistd.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 227 "/usr/include/unistd.h" 2 3 4 29724: # 274 "/usr/include/unistd.h" 3 4 29724: typedef __socklen_t socklen_t; 29724: # 287 "/usr/include/unistd.h" 3 4 29724: extern int access (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int euidaccess (const char *__name, int __type) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int eaccess (const char *__name, int __type) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int execveat (int __fd, const char *__path, char *const __argv[], 29724: char *const __envp[], int __flags) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int faccessat (int __fd, const char *__file, int __type, int __flag) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 29724: # 342 "/usr/include/unistd.h" 3 4 29724: extern __off64_t lseek (int __fd, __off64_t __offset, int __whence) noexcept (true) __asm__ ("" "lseek64") 29724: 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int close (int __fd); 29724: 29724: 29724: 29724: 29724: extern void closefrom (int __lowfd) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 404 "/usr/include/unistd.h" 3 4 29724: extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 29724: 29724: __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t pwrite (int __fd, const void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pwrite64") 29724: 29724: __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 422 "/usr/include/unistd.h" 3 4 29724: extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, 29724: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, 29724: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pipe (int __pipedes[2]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int pipe2 (int __pipedes[2], int __flags) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: # 452 "/usr/include/unistd.h" 3 4 29724: extern unsigned int alarm (unsigned int __seconds) noexcept (true); 29724: # 464 "/usr/include/unistd.h" 3 4 29724: extern unsigned int sleep (unsigned int __seconds); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int usleep (__useconds_t __useconds); 29724: # 489 "/usr/include/unistd.h" 3 4 29724: extern int pause (void); 29724: 29724: 29724: 29724: extern int chown (const char *__file, __uid_t __owner, __gid_t __group) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern int fchown (int __fd, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fchownat (int __fd, const char *__file, __uid_t __owner, 29724: __gid_t __group, int __flag) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern int chdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern int fchdir (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: # 531 "/usr/include/unistd.h" 3 4 29724: extern char *getcwd (char *__buf, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern char *get_current_dir_name (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *getwd (char *__buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 1))); 29724: 29724: 29724: 29724: 29724: extern int dup (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern int dup2 (int __fd, int __fd2) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int dup3 (int __fd, int __fd2, int __flags) noexcept (true); 29724: 29724: 29724: 29724: extern char **__environ; 29724: 29724: extern char **environ; 29724: 29724: 29724: 29724: 29724: 29724: extern int execve (const char *__path, char *const __argv[], 29724: char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: extern int execv (const char *__path, char *const __argv[]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int execle (const char *__path, const char *__arg, ...) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int execl (const char *__path, const char *__arg, ...) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int execvp (const char *__file, char *const __argv[]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern int execlp (const char *__file, const char *__arg, ...) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern int execvpe (const char *__file, char *const __argv[], 29724: char *const __envp[]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int nice (int __inc) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern void _exit (int __status) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 3 4 29724: enum 29724: { 29724: _PC_LINK_MAX, 29724: 29724: _PC_MAX_CANON, 29724: 29724: _PC_MAX_INPUT, 29724: 29724: _PC_NAME_MAX, 29724: 29724: _PC_PATH_MAX, 29724: 29724: _PC_PIPE_BUF, 29724: 29724: _PC_CHOWN_RESTRICTED, 29724: 29724: _PC_NO_TRUNC, 29724: 29724: _PC_VDISABLE, 29724: 29724: _PC_SYNC_IO, 29724: 29724: _PC_ASYNC_IO, 29724: 29724: _PC_PRIO_IO, 29724: 29724: _PC_SOCK_MAXBUF, 29724: 29724: _PC_FILESIZEBITS, 29724: 29724: _PC_REC_INCR_XFER_SIZE, 29724: 29724: _PC_REC_MAX_XFER_SIZE, 29724: 29724: _PC_REC_MIN_XFER_SIZE, 29724: 29724: _PC_REC_XFER_ALIGN, 29724: 29724: _PC_ALLOC_SIZE_MIN, 29724: 29724: _PC_SYMLINK_MAX, 29724: 29724: _PC_2_SYMLINKS 29724: 29724: }; 29724: 29724: 29724: enum 29724: { 29724: _SC_ARG_MAX, 29724: 29724: _SC_CHILD_MAX, 29724: 29724: _SC_CLK_TCK, 29724: 29724: _SC_NGROUPS_MAX, 29724: 29724: _SC_OPEN_MAX, 29724: 29724: _SC_STREAM_MAX, 29724: 29724: _SC_TZNAME_MAX, 29724: 29724: _SC_JOB_CONTROL, 29724: 29724: _SC_SAVED_IDS, 29724: 29724: _SC_REALTIME_SIGNALS, 29724: 29724: _SC_PRIORITY_SCHEDULING, 29724: 29724: _SC_TIMERS, 29724: 29724: _SC_ASYNCHRONOUS_IO, 29724: 29724: _SC_PRIORITIZED_IO, 29724: 29724: _SC_SYNCHRONIZED_IO, 29724: 29724: _SC_FSYNC, 29724: 29724: _SC_MAPPED_FILES, 29724: 29724: _SC_MEMLOCK, 29724: 29724: _SC_MEMLOCK_RANGE, 29724: 29724: _SC_MEMORY_PROTECTION, 29724: 29724: _SC_MESSAGE_PASSING, 29724: 29724: _SC_SEMAPHORES, 29724: 29724: _SC_SHARED_MEMORY_OBJECTS, 29724: 29724: _SC_AIO_LISTIO_MAX, 29724: 29724: _SC_AIO_MAX, 29724: 29724: _SC_AIO_PRIO_DELTA_MAX, 29724: 29724: _SC_DELAYTIMER_MAX, 29724: 29724: _SC_MQ_OPEN_MAX, 29724: 29724: _SC_MQ_PRIO_MAX, 29724: 29724: _SC_VERSION, 29724: 29724: _SC_PAGESIZE, 29724: 29724: 29724: _SC_RTSIG_MAX, 29724: 29724: _SC_SEM_NSEMS_MAX, 29724: 29724: _SC_SEM_VALUE_MAX, 29724: 29724: _SC_SIGQUEUE_MAX, 29724: 29724: _SC_TIMER_MAX, 29724: 29724: 29724: 29724: 29724: _SC_BC_BASE_MAX, 29724: 29724: _SC_BC_DIM_MAX, 29724: 29724: _SC_BC_SCALE_MAX, 29724: 29724: _SC_BC_STRING_MAX, 29724: 29724: _SC_COLL_WEIGHTS_MAX, 29724: 29724: _SC_EQUIV_CLASS_MAX, 29724: 29724: _SC_EXPR_NEST_MAX, 29724: 29724: _SC_LINE_MAX, 29724: 29724: _SC_RE_DUP_MAX, 29724: 29724: _SC_CHARCLASS_NAME_MAX, 29724: 29724: 29724: _SC_2_VERSION, 29724: 29724: _SC_2_C_BIND, 29724: 29724: _SC_2_C_DEV, 29724: 29724: _SC_2_FORT_DEV, 29724: 29724: _SC_2_FORT_RUN, 29724: 29724: _SC_2_SW_DEV, 29724: 29724: _SC_2_LOCALEDEF, 29724: 29724: 29724: _SC_PII, 29724: 29724: _SC_PII_XTI, 29724: 29724: _SC_PII_SOCKET, 29724: 29724: _SC_PII_INTERNET, 29724: 29724: _SC_PII_OSI, 29724: 29724: _SC_POLL, 29724: 29724: _SC_SELECT, 29724: 29724: _SC_UIO_MAXIOV, 29724: 29724: _SC_IOV_MAX = _SC_UIO_MAXIOV, 29724: 29724: _SC_PII_INTERNET_STREAM, 29724: 29724: _SC_PII_INTERNET_DGRAM, 29724: 29724: _SC_PII_OSI_COTS, 29724: 29724: _SC_PII_OSI_CLTS, 29724: 29724: _SC_PII_OSI_M, 29724: 29724: _SC_T_IOV_MAX, 29724: 29724: 29724: 29724: _SC_THREADS, 29724: 29724: _SC_THREAD_SAFE_FUNCTIONS, 29724: 29724: _SC_GETGR_R_SIZE_MAX, 29724: 29724: _SC_GETPW_R_SIZE_MAX, 29724: 29724: _SC_LOGIN_NAME_MAX, 29724: 29724: _SC_TTY_NAME_MAX, 29724: 29724: _SC_THREAD_DESTRUCTOR_ITERATIONS, 29724: 29724: _SC_THREAD_KEYS_MAX, 29724: 29724: _SC_THREAD_STACK_MIN, 29724: 29724: _SC_THREAD_THREADS_MAX, 29724: 29724: _SC_THREAD_ATTR_STACKADDR, 29724: 29724: _SC_THREAD_ATTR_STACKSIZE, 29724: 29724: _SC_THREAD_PRIORITY_SCHEDULING, 29724: 29724: _SC_THREAD_PRIO_INHERIT, 29724: 29724: _SC_THREAD_PRIO_PROTECT, 29724: 29724: _SC_THREAD_PROCESS_SHARED, 29724: 29724: 29724: _SC_NPROCESSORS_CONF, 29724: 29724: _SC_NPROCESSORS_ONLN, 29724: 29724: _SC_PHYS_PAGES, 29724: 29724: _SC_AVPHYS_PAGES, 29724: 29724: _SC_ATEXIT_MAX, 29724: 29724: _SC_PASS_MAX, 29724: 29724: 29724: _SC_XOPEN_VERSION, 29724: 29724: _SC_XOPEN_XCU_VERSION, 29724: 29724: _SC_XOPEN_UNIX, 29724: 29724: _SC_XOPEN_CRYPT, 29724: 29724: _SC_XOPEN_ENH_I18N, 29724: 29724: _SC_XOPEN_SHM, 29724: 29724: 29724: _SC_2_CHAR_TERM, 29724: 29724: _SC_2_C_VERSION, 29724: 29724: _SC_2_UPE, 29724: 29724: 29724: _SC_XOPEN_XPG2, 29724: 29724: _SC_XOPEN_XPG3, 29724: 29724: _SC_XOPEN_XPG4, 29724: 29724: 29724: _SC_CHAR_BIT, 29724: 29724: _SC_CHAR_MAX, 29724: 29724: _SC_CHAR_MIN, 29724: 29724: _SC_INT_MAX, 29724: 29724: _SC_INT_MIN, 29724: 29724: _SC_LONG_BIT, 29724: 29724: _SC_WORD_BIT, 29724: 29724: _SC_MB_LEN_MAX, 29724: 29724: _SC_NZERO, 29724: 29724: _SC_SSIZE_MAX, 29724: 29724: _SC_SCHAR_MAX, 29724: 29724: _SC_SCHAR_MIN, 29724: 29724: _SC_SHRT_MAX, 29724: 29724: _SC_SHRT_MIN, 29724: 29724: _SC_UCHAR_MAX, 29724: 29724: _SC_UINT_MAX, 29724: 29724: _SC_ULONG_MAX, 29724: 29724: _SC_USHRT_MAX, 29724: 29724: 29724: _SC_NL_ARGMAX, 29724: 29724: _SC_NL_LANGMAX, 29724: 29724: _SC_NL_MSGMAX, 29724: 29724: _SC_NL_NMAX, 29724: 29724: _SC_NL_SETMAX, 29724: 29724: _SC_NL_TEXTMAX, 29724: 29724: 29724: _SC_XBS5_ILP32_OFF32, 29724: 29724: _SC_XBS5_ILP32_OFFBIG, 29724: 29724: _SC_XBS5_LP64_OFF64, 29724: 29724: _SC_XBS5_LPBIG_OFFBIG, 29724: 29724: 29724: _SC_XOPEN_LEGACY, 29724: 29724: _SC_XOPEN_REALTIME, 29724: 29724: _SC_XOPEN_REALTIME_THREADS, 29724: 29724: 29724: _SC_ADVISORY_INFO, 29724: 29724: _SC_BARRIERS, 29724: 29724: _SC_BASE, 29724: 29724: _SC_C_LANG_SUPPORT, 29724: 29724: _SC_C_LANG_SUPPORT_R, 29724: 29724: _SC_CLOCK_SELECTION, 29724: 29724: _SC_CPUTIME, 29724: 29724: _SC_THREAD_CPUTIME, 29724: 29724: _SC_DEVICE_IO, 29724: 29724: _SC_DEVICE_SPECIFIC, 29724: 29724: _SC_DEVICE_SPECIFIC_R, 29724: 29724: _SC_FD_MGMT, 29724: 29724: _SC_FIFO, 29724: 29724: _SC_PIPE, 29724: 29724: _SC_FILE_ATTRIBUTES, 29724: 29724: _SC_FILE_LOCKING, 29724: 29724: _SC_FILE_SYSTEM, 29724: 29724: _SC_MONOTONIC_CLOCK, 29724: 29724: _SC_MULTI_PROCESS, 29724: 29724: _SC_SINGLE_PROCESS, 29724: 29724: _SC_NETWORKING, 29724: 29724: _SC_READER_WRITER_LOCKS, 29724: 29724: _SC_SPIN_LOCKS, 29724: 29724: _SC_REGEXP, 29724: 29724: _SC_REGEX_VERSION, 29724: 29724: _SC_SHELL, 29724: 29724: _SC_SIGNALS, 29724: 29724: _SC_SPAWN, 29724: 29724: _SC_SPORADIC_SERVER, 29724: 29724: _SC_THREAD_SPORADIC_SERVER, 29724: 29724: _SC_SYSTEM_DATABASE, 29724: 29724: _SC_SYSTEM_DATABASE_R, 29724: 29724: _SC_TIMEOUTS, 29724: 29724: _SC_TYPED_MEMORY_OBJECTS, 29724: 29724: _SC_USER_GROUPS, 29724: 29724: _SC_USER_GROUPS_R, 29724: 29724: _SC_2_PBS, 29724: 29724: _SC_2_PBS_ACCOUNTING, 29724: 29724: _SC_2_PBS_LOCATE, 29724: 29724: _SC_2_PBS_MESSAGE, 29724: 29724: _SC_2_PBS_TRACK, 29724: 29724: _SC_SYMLOOP_MAX, 29724: 29724: _SC_STREAMS, 29724: 29724: _SC_2_PBS_CHECKPOINT, 29724: 29724: 29724: _SC_V6_ILP32_OFF32, 29724: 29724: _SC_V6_ILP32_OFFBIG, 29724: 29724: _SC_V6_LP64_OFF64, 29724: 29724: _SC_V6_LPBIG_OFFBIG, 29724: 29724: 29724: _SC_HOST_NAME_MAX, 29724: 29724: _SC_TRACE, 29724: 29724: _SC_TRACE_EVENT_FILTER, 29724: 29724: _SC_TRACE_INHERIT, 29724: 29724: _SC_TRACE_LOG, 29724: 29724: 29724: _SC_LEVEL1_ICACHE_SIZE, 29724: 29724: _SC_LEVEL1_ICACHE_ASSOC, 29724: 29724: _SC_LEVEL1_ICACHE_LINESIZE, 29724: 29724: _SC_LEVEL1_DCACHE_SIZE, 29724: 29724: _SC_LEVEL1_DCACHE_ASSOC, 29724: 29724: _SC_LEVEL1_DCACHE_LINESIZE, 29724: 29724: _SC_LEVEL2_CACHE_SIZE, 29724: 29724: _SC_LEVEL2_CACHE_ASSOC, 29724: 29724: _SC_LEVEL2_CACHE_LINESIZE, 29724: 29724: _SC_LEVEL3_CACHE_SIZE, 29724: 29724: _SC_LEVEL3_CACHE_ASSOC, 29724: 29724: _SC_LEVEL3_CACHE_LINESIZE, 29724: 29724: _SC_LEVEL4_CACHE_SIZE, 29724: 29724: _SC_LEVEL4_CACHE_ASSOC, 29724: 29724: _SC_LEVEL4_CACHE_LINESIZE, 29724: 29724: 29724: 29724: _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, 29724: 29724: _SC_RAW_SOCKETS, 29724: 29724: 29724: _SC_V7_ILP32_OFF32, 29724: 29724: _SC_V7_ILP32_OFFBIG, 29724: 29724: _SC_V7_LP64_OFF64, 29724: 29724: _SC_V7_LPBIG_OFFBIG, 29724: 29724: 29724: _SC_SS_REPL_MAX, 29724: 29724: 29724: _SC_TRACE_EVENT_NAME_MAX, 29724: 29724: _SC_TRACE_NAME_MAX, 29724: 29724: _SC_TRACE_SYS_MAX, 29724: 29724: _SC_TRACE_USER_EVENT_MAX, 29724: 29724: 29724: _SC_XOPEN_STREAMS, 29724: 29724: 29724: _SC_THREAD_ROBUST_PRIO_INHERIT, 29724: 29724: _SC_THREAD_ROBUST_PRIO_PROTECT, 29724: 29724: 29724: _SC_MINSIGSTKSZ, 29724: 29724: 29724: _SC_SIGSTKSZ 29724: 29724: }; 29724: 29724: 29724: enum 29724: { 29724: _CS_PATH, 29724: 29724: 29724: _CS_V6_WIDTH_RESTRICTED_ENVS, 29724: 29724: 29724: 29724: _CS_GNU_LIBC_VERSION, 29724: 29724: _CS_GNU_LIBPTHREAD_VERSION, 29724: 29724: 29724: _CS_V5_WIDTH_RESTRICTED_ENVS, 29724: 29724: 29724: 29724: _CS_V7_WIDTH_RESTRICTED_ENVS, 29724: 29724: 29724: 29724: _CS_LFS_CFLAGS = 1000, 29724: 29724: _CS_LFS_LDFLAGS, 29724: 29724: _CS_LFS_LIBS, 29724: 29724: _CS_LFS_LINTFLAGS, 29724: 29724: _CS_LFS64_CFLAGS, 29724: 29724: _CS_LFS64_LDFLAGS, 29724: 29724: _CS_LFS64_LIBS, 29724: 29724: _CS_LFS64_LINTFLAGS, 29724: 29724: 29724: _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, 29724: 29724: _CS_XBS5_ILP32_OFF32_LDFLAGS, 29724: 29724: _CS_XBS5_ILP32_OFF32_LIBS, 29724: 29724: _CS_XBS5_ILP32_OFF32_LINTFLAGS, 29724: 29724: _CS_XBS5_ILP32_OFFBIG_CFLAGS, 29724: 29724: _CS_XBS5_ILP32_OFFBIG_LDFLAGS, 29724: 29724: _CS_XBS5_ILP32_OFFBIG_LIBS, 29724: 29724: _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, 29724: 29724: _CS_XBS5_LP64_OFF64_CFLAGS, 29724: 29724: _CS_XBS5_LP64_OFF64_LDFLAGS, 29724: 29724: _CS_XBS5_LP64_OFF64_LIBS, 29724: 29724: _CS_XBS5_LP64_OFF64_LINTFLAGS, 29724: 29724: _CS_XBS5_LPBIG_OFFBIG_CFLAGS, 29724: 29724: _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, 29724: 29724: _CS_XBS5_LPBIG_OFFBIG_LIBS, 29724: 29724: _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, 29724: 29724: 29724: _CS_POSIX_V6_ILP32_OFF32_CFLAGS, 29724: 29724: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, 29724: 29724: _CS_POSIX_V6_ILP32_OFF32_LIBS, 29724: 29724: _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, 29724: 29724: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, 29724: 29724: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, 29724: 29724: _CS_POSIX_V6_ILP32_OFFBIG_LIBS, 29724: 29724: _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, 29724: 29724: _CS_POSIX_V6_LP64_OFF64_CFLAGS, 29724: 29724: _CS_POSIX_V6_LP64_OFF64_LDFLAGS, 29724: 29724: _CS_POSIX_V6_LP64_OFF64_LIBS, 29724: 29724: _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, 29724: 29724: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, 29724: 29724: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, 29724: 29724: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, 29724: 29724: _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, 29724: 29724: 29724: _CS_POSIX_V7_ILP32_OFF32_CFLAGS, 29724: 29724: _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, 29724: 29724: _CS_POSIX_V7_ILP32_OFF32_LIBS, 29724: 29724: _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, 29724: 29724: _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, 29724: 29724: _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, 29724: 29724: _CS_POSIX_V7_ILP32_OFFBIG_LIBS, 29724: 29724: _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, 29724: 29724: _CS_POSIX_V7_LP64_OFF64_CFLAGS, 29724: 29724: _CS_POSIX_V7_LP64_OFF64_LDFLAGS, 29724: 29724: _CS_POSIX_V7_LP64_OFF64_LIBS, 29724: 29724: _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, 29724: 29724: _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, 29724: 29724: _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, 29724: 29724: _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, 29724: 29724: _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, 29724: 29724: 29724: _CS_V6_ENV, 29724: 29724: _CS_V7_ENV 29724: 29724: }; 29724: # 631 "/usr/include/unistd.h" 2 3 4 29724: 29724: 29724: extern long int pathconf (const char *__path, int __name) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern long int fpathconf (int __fd, int __name) noexcept (true); 29724: 29724: 29724: extern long int sysconf (int __name) noexcept (true); 29724: 29724: 29724: 29724: extern size_t confstr (int __name, char *__buf, size_t __len) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: 29724: 29724: extern __pid_t getpid (void) noexcept (true); 29724: 29724: 29724: extern __pid_t getppid (void) noexcept (true); 29724: 29724: 29724: extern __pid_t getpgrp (void) noexcept (true); 29724: 29724: 29724: extern __pid_t __getpgid (__pid_t __pid) noexcept (true); 29724: 29724: extern __pid_t getpgid (__pid_t __pid) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int setpgid (__pid_t __pid, __pid_t __pgid) noexcept (true); 29724: # 682 "/usr/include/unistd.h" 3 4 29724: extern int setpgrp (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __pid_t setsid (void) noexcept (true); 29724: 29724: 29724: 29724: extern __pid_t getsid (__pid_t __pid) noexcept (true); 29724: 29724: 29724: 29724: extern __uid_t getuid (void) noexcept (true); 29724: 29724: 29724: extern __uid_t geteuid (void) noexcept (true); 29724: 29724: 29724: extern __gid_t getgid (void) noexcept (true); 29724: 29724: 29724: extern __gid_t getegid (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int getgroups (int __size, __gid_t __list[]) noexcept (true) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 1))); 29724: 29724: 29724: extern int group_member (__gid_t __gid) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int setuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int setreuid (__uid_t __ruid, __uid_t __euid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int seteuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int setgid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int setregid (__gid_t __rgid, __gid_t __egid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int setegid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) 29724: noexcept (true); 29724: 29724: 29724: 29724: extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) 29724: noexcept (true); 29724: 29724: 29724: 29724: extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __pid_t fork (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __pid_t vfork (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __pid_t _Fork (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern char *ttyname (int __fd) noexcept (true); 29724: 29724: 29724: 29724: extern int ttyname_r (int __fd, char *__buf, size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: 29724: extern int isatty (int __fd) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int ttyslot (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int link (const char *__from, const char *__to) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int linkat (int __fromfd, const char *__from, int __tofd, 29724: const char *__to, int __flags) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int symlink (const char *__from, const char *__to) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern ssize_t readlink (const char *__restrict __path, 29724: char *__restrict __buf, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: extern int symlinkat (const char *__from, int __tofd, 29724: const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern ssize_t readlinkat (int __fd, const char *__restrict __path, 29724: char *__restrict __buf, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 3, 4))); 29724: 29724: 29724: 29724: extern int unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int unlinkat (int __fd, const char *__name, int __flag) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern int rmdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern __pid_t tcgetpgrp (int __fd) noexcept (true); 29724: 29724: 29724: extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *getlogin (void); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: 29724: 29724: 29724: 29724: extern int setlogin (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 1 3 4 29724: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *optarg; 29724: # 50 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29724: extern int optind; 29724: 29724: 29724: 29724: 29724: extern int opterr; 29724: 29724: 29724: 29724: extern int optopt; 29724: # 91 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29724: extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29724: 29724: } 29724: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 2 3 4 29724: 29724: extern "C" { 29724: # 49 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 29724: } 29724: # 904 "/usr/include/unistd.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int gethostname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int sethostname (const char *__name, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 29724: 29724: 29724: 29724: extern int sethostid (long int __id) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int getdomainname (char *__name, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int setdomainname (const char *__name, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 29724: 29724: 29724: 29724: 29724: extern int vhangup (void) noexcept (true); 29724: 29724: 29724: extern int revoke (const char *__file) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int profil (unsigned short int *__sample_buffer, size_t __size, 29724: size_t __offset, unsigned int __scale) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int acct (const char *__name) noexcept (true); 29724: 29724: 29724: 29724: extern char *getusershell (void) noexcept (true); 29724: extern void endusershell (void) noexcept (true); 29724: extern void setusershell (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int daemon (int __nochdir, int __noclose) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int chroot (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fsync (int __fd); 29724: 29724: 29724: 29724: 29724: 29724: extern int syncfs (int __fd) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int gethostid (void); 29724: 29724: 29724: extern void sync (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int getpagesize (void) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int getdtablesize (void) noexcept (true); 29724: # 1030 "/usr/include/unistd.h" 3 4 29724: extern int truncate (const char *__file, __off64_t __length) noexcept (true) __asm__ ("" "truncate64") 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int truncate64 (const char *__file, __off64_t __length) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 1052 "/usr/include/unistd.h" 3 4 29724: extern int ftruncate (int __fd, __off64_t __length) noexcept (true) __asm__ ("" "ftruncate64") 29724: __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int ftruncate64 (int __fd, __off64_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: # 1070 "/usr/include/unistd.h" 3 4 29724: extern int brk (void *__addr) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern void *sbrk (intptr_t __delta) noexcept (true); 29724: # 1091 "/usr/include/unistd.h" 3 4 29724: extern long int syscall (long int __sysno, ...) noexcept (true); 29724: # 1117 "/usr/include/unistd.h" 3 4 29724: extern int lockf (int __fd, int __cmd, __off64_t __len) __asm__ ("" "lockf64") 29724: __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int lockf64 (int __fd, int __cmd, __off64_t __len) __attribute__ ((__warn_unused_result__)); 29724: # 1142 "/usr/include/unistd.h" 3 4 29724: ssize_t copy_file_range (int __infd, __off64_t *__pinoff, 29724: int __outfd, __off64_t *__poutoff, 29724: size_t __length, unsigned int __flags); 29724: 29724: 29724: 29724: 29724: 29724: extern int fdatasync (int __fildes); 29724: # 1162 "/usr/include/unistd.h" 3 4 29724: extern char *crypt (const char *__key, const char *__salt) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void swab (const void *__restrict __from, void *__restrict __to, 29724: ssize_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) 29724: __attribute__ ((__access__ (__read_only__, 1, 3))) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: # 1201 "/usr/include/unistd.h" 3 4 29724: int getentropy (void *__buffer, size_t __length) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: # 1211 "/usr/include/unistd.h" 3 4 29724: extern int close_range (unsigned int __fd, unsigned int __max_fd, 29724: int __flags) noexcept (true); 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 3 4 29724: extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, 29724: size_t __buflen) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) 29724: ; 29724: 29724: 29724: extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, 29724: __off_t __offset, size_t __bufsize) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, 29724: __off64_t __offset, size_t __bufsize) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __pread_alias (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __asm__ ("" "pread") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __pread_chk_warn (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __asm__ ("" "__pread_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread called with bigger length than size of " "the destination buffer"))) 29724: ; 29724: extern ssize_t __pread64_chk_warn (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __asm__ ("" "__pread64_chk") 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread64 called with bigger length than size of " "the destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: extern ssize_t __readlink_chk (const char *__restrict __path, 29724: char *__restrict __buf, size_t __len, 29724: size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlink") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlink_chk") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, 29724: char *__restrict __buf, size_t __len, 29724: size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 29724: extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlinkat") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 29724: extern ssize_t __readlinkat_chk_warn (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlinkat_chk") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) 29724: 29724: ; 29724: 29724: 29724: extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: extern char *__getcwd_alias (char *__buf, size_t __size) noexcept (true) __asm__ ("" "getcwd") 29724: __attribute__ ((__warn_unused_result__)); 29724: extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) noexcept (true) __asm__ ("" "__getcwd_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) 29724: ; 29724: 29724: 29724: extern char *__getwd_chk (char *__buf, size_t buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern char *__getwd_warn (char *__buf) noexcept (true) __asm__ ("" "getwd") 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) 29724: ; 29724: 29724: 29724: extern size_t __confstr_chk (int __name, char *__buf, size_t __len, 29724: size_t __buflen) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern size_t __confstr_alias (int __name, char *__buf, size_t __len) noexcept (true) __asm__ ("" "confstr") 29724: 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__confstr_chk") 29724: 29724: 29724: __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) 29724: ; 29724: 29724: 29724: extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 29724: extern int __getgroups_alias (int __size, __gid_t __list[]) noexcept (true) __asm__ ("" "getgroups") 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 29724: extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) noexcept (true) __asm__ ("" "__getgroups_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) 29724: ; 29724: 29724: 29724: extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, 29724: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ttyname_r") 29724: 29724: __attribute__ ((__nonnull__ (2))); 29724: extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ttyname_r_chk") 29724: 29724: 29724: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") 29724: __attribute__ ((__nonnull__ (1))); 29724: extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __gethostname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "gethostname") 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__gethostname_chk") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __getdomainname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "getdomainname") 29724: 29724: __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__getdomainname_chk") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) 29724: 29724: ; 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 2 3 4 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29724: read (int __fd, void * __buf, size_t __nbytes) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __read_alias (__fd, __buf, __nbytes) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __read_chk_warn (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)) : __read_chk (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)))) 29724: 29724: ; 29724: } 29724: # 51 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29724: pread (int __fd, void * __buf, 29724: size_t __nbytes, __off64_t __offset) 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __pread64_alias (__fd, __buf, __nbytes, __offset) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __pread64_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)) : __pread64_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29724: pread64 (int __fd, void * __buf, 29724: size_t __nbytes, __off64_t __offset) 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __pread64_alias (__fd, __buf, __nbytes, __offset) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __pread64_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)) : __pread64_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t 29724: __attribute__ ((__leaf__)) readlink (const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __readlink_alias (__path, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __readlink_chk_warn (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __readlink_chk (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t 29724: __attribute__ ((__leaf__)) readlinkat (int __fd, const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __readlinkat_alias (__fd, __path, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __readlinkat_chk_warn (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __readlinkat_chk (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 29724: __attribute__ ((__leaf__)) getcwd (char * __buf, size_t __size) noexcept (true) 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__size)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getcwd_alias (__buf, __size) : ((((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__size)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getcwd_chk_warn (__buf, __size, __builtin_object_size (__buf, 2 > 1)) : __getcwd_chk (__buf, __size, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * 29724: __attribute__ ((__leaf__)) getwd (char * __buf) noexcept (true) 29724: { 29724: if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) 29724: return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); 29724: return __getwd_warn (__buf); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) confstr (int __name, char * __buf, size_t __len) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __confstr_alias (__name, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __confstr_chk_warn (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __confstr_chk (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) getgroups (int __size, __gid_t * __list) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__list, 2 > 1)) && (__builtin_object_size (__list, 2 > 1)) == (unsigned int) -1) || (((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= ((__builtin_object_size (__list, 2 > 1))) / ((sizeof (__gid_t))))) && (((unsigned int) (__size)) <= ((__builtin_object_size (__list, 2 > 1))) / ((sizeof (__gid_t)))))) ? __getgroups_alias (__size, __list) : ((((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= (__builtin_object_size (__list, 2 > 1)) / (sizeof (__gid_t)))) && !(((unsigned int) (__size)) <= (__builtin_object_size (__list, 2 > 1)) / (sizeof (__gid_t)))) ? __getgroups_chk_warn (__size, __list, __builtin_object_size (__list, 2 > 1)) : __getgroups_chk (__size, __list, __builtin_object_size (__list, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) ttyname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __ttyname_r_alias (__fd, __buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __ttyname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __ttyname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: getlogin_r (char * __buf, size_t __buflen) 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getlogin_r_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getlogin_r_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __getlogin_r_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) gethostname (char * __buf, size_t __buflen) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __gethostname_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __gethostname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __gethostname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) getdomainname (char * __buf, size_t __buflen) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getdomainname_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getdomainname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __getdomainname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: # 1218 "/usr/include/unistd.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 1 3 4 29724: # 34 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 3 4 29724: extern __pid_t gettid (void) noexcept (true); 29724: 29724: 29724: 29724: # 1 "/usr/include/linux/close_range.h" 1 3 4 29724: # 39 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 2 3 4 29724: # 1222 "/usr/include/unistd.h" 2 3 4 29724: 29724: } 29724: # 485 "/usr/include/zconf.h" 2 3 4 29724: # 35 "/usr/include/zlib.h" 2 3 4 29724: 29724: 29724: extern "C" { 29724: # 81 "/usr/include/zlib.h" 3 4 29724: typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size); 29724: typedef void (*free_func)(voidpf opaque, voidpf address); 29724: 29724: struct internal_state; 29724: 29724: typedef struct z_stream_s { 29724: Bytef *next_in; 29724: uInt avail_in; 29724: uLong total_in; 29724: 29724: Bytef *next_out; 29724: uInt avail_out; 29724: uLong total_out; 29724: 29724: char *msg; 29724: struct internal_state *state; 29724: 29724: alloc_func zalloc; 29724: free_func zfree; 29724: voidpf opaque; 29724: 29724: int data_type; 29724: 29724: uLong adler; 29724: uLong reserved; 29724: } z_stream; 29724: 29724: typedef z_stream *z_streamp; 29724: 29724: 29724: 29724: 29724: 29724: typedef struct gz_header_s { 29724: int text; 29724: uLong time; 29724: int xflags; 29724: int os; 29724: Bytef *extra; 29724: uInt extra_len; 29724: uInt extra_max; 29724: Bytef *name; 29724: uInt name_max; 29724: Bytef *comment; 29724: uInt comm_max; 29724: int hcrc; 29724: int done; 29724: 29724: } gz_header; 29724: 29724: typedef gz_header *gz_headerp; 29724: # 220 "/usr/include/zlib.h" 3 4 29724: extern const char * zlibVersion(void); 29724: # 250 "/usr/include/zlib.h" 3 4 29724: extern int deflate(z_streamp strm, int flush); 29724: # 363 "/usr/include/zlib.h" 3 4 29724: extern int deflateEnd(z_streamp strm); 29724: # 401 "/usr/include/zlib.h" 3 4 29724: extern int inflate(z_streamp strm, int flush); 29724: # 521 "/usr/include/zlib.h" 3 4 29724: extern int inflateEnd(z_streamp strm); 29724: # 611 "/usr/include/zlib.h" 3 4 29724: extern int deflateSetDictionary(z_streamp strm, 29724: const Bytef *dictionary, 29724: uInt dictLength); 29724: # 655 "/usr/include/zlib.h" 3 4 29724: extern int deflateGetDictionary(z_streamp strm, 29724: Bytef *dictionary, 29724: uInt *dictLength); 29724: # 677 "/usr/include/zlib.h" 3 4 29724: extern int deflateCopy(z_streamp dest, 29724: z_streamp source); 29724: # 695 "/usr/include/zlib.h" 3 4 29724: extern int deflateReset(z_streamp strm); 29724: # 706 "/usr/include/zlib.h" 3 4 29724: extern int deflateParams(z_streamp strm, 29724: int level, 29724: int strategy); 29724: # 744 "/usr/include/zlib.h" 3 4 29724: extern int deflateTune(z_streamp strm, 29724: int good_length, 29724: int max_lazy, 29724: int nice_length, 29724: int max_chain); 29724: # 761 "/usr/include/zlib.h" 3 4 29724: extern uLong deflateBound(z_streamp strm, 29724: uLong sourceLen); 29724: # 776 "/usr/include/zlib.h" 3 4 29724: extern int deflatePending(z_streamp strm, 29724: unsigned *pending, 29724: int *bits); 29724: # 791 "/usr/include/zlib.h" 3 4 29724: extern int deflatePrime(z_streamp strm, 29724: int bits, 29724: int value); 29724: # 808 "/usr/include/zlib.h" 3 4 29724: extern int deflateSetHeader(z_streamp strm, 29724: gz_headerp head); 29724: # 888 "/usr/include/zlib.h" 3 4 29724: extern int inflateSetDictionary(z_streamp strm, 29724: const Bytef *dictionary, 29724: uInt dictLength); 29724: # 911 "/usr/include/zlib.h" 3 4 29724: extern int inflateGetDictionary(z_streamp strm, 29724: Bytef *dictionary, 29724: uInt *dictLength); 29724: # 926 "/usr/include/zlib.h" 3 4 29724: extern int inflateSync(z_streamp strm); 29724: # 945 "/usr/include/zlib.h" 3 4 29724: extern int inflateCopy(z_streamp dest, 29724: z_streamp source); 29724: # 961 "/usr/include/zlib.h" 3 4 29724: extern int inflateReset(z_streamp strm); 29724: # 972 "/usr/include/zlib.h" 3 4 29724: extern int inflateReset2(z_streamp strm, 29724: int windowBits); 29724: # 986 "/usr/include/zlib.h" 3 4 29724: extern int inflatePrime(z_streamp strm, 29724: int bits, 29724: int value); 29724: # 1007 "/usr/include/zlib.h" 3 4 29724: extern long inflateMark(z_streamp strm); 29724: # 1035 "/usr/include/zlib.h" 3 4 29724: extern int inflateGetHeader(z_streamp strm, 29724: gz_headerp head); 29724: # 1097 "/usr/include/zlib.h" 3 4 29724: typedef unsigned (*in_func)(void *, 29724: unsigned char * *); 29724: typedef int (*out_func)(void *, unsigned char *, unsigned); 29724: 29724: extern int inflateBack(z_streamp strm, 29724: in_func in, void *in_desc, 29724: out_func out, void *out_desc); 29724: # 1171 "/usr/include/zlib.h" 3 4 29724: extern int inflateBackEnd(z_streamp strm); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern uLong zlibCompileFlags(void); 29724: # 1232 "/usr/include/zlib.h" 3 4 29724: extern int compress(Bytef *dest, uLongf *destLen, 29724: const Bytef *source, uLong sourceLen); 29724: # 1247 "/usr/include/zlib.h" 3 4 29724: extern int compress2(Bytef *dest, uLongf *destLen, 29724: const Bytef *source, uLong sourceLen, 29724: int level); 29724: # 1263 "/usr/include/zlib.h" 3 4 29724: extern uLong compressBound(uLong sourceLen); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int uncompress(Bytef *dest, uLongf *destLen, 29724: const Bytef *source, uLong sourceLen); 29724: # 1288 "/usr/include/zlib.h" 3 4 29724: extern int uncompress2(Bytef *dest, uLongf *destLen, 29724: const Bytef *source, uLong *sourceLen); 29724: # 1305 "/usr/include/zlib.h" 3 4 29724: typedef struct gzFile_s *gzFile; 29724: # 1345 "/usr/include/zlib.h" 3 4 29724: extern gzFile gzdopen(int fd, const char *mode); 29724: # 1368 "/usr/include/zlib.h" 3 4 29724: extern int gzbuffer(gzFile file, unsigned size); 29724: # 1384 "/usr/include/zlib.h" 3 4 29724: extern int gzsetparams(gzFile file, int level, int strategy); 29724: # 1395 "/usr/include/zlib.h" 3 4 29724: extern int gzread(gzFile file, voidp buf, unsigned len); 29724: # 1425 "/usr/include/zlib.h" 3 4 29724: extern z_size_t gzfread(voidp buf, z_size_t size, z_size_t nitems, 29724: gzFile file); 29724: # 1451 "/usr/include/zlib.h" 3 4 29724: extern int gzwrite(gzFile file, voidpc buf, unsigned len); 29724: 29724: 29724: 29724: 29724: 29724: extern z_size_t gzfwrite(voidpc buf, z_size_t size, 29724: z_size_t nitems, gzFile file); 29724: # 1471 "/usr/include/zlib.h" 3 4 29724: extern int gzprintf(gzFile file, const char *format, ...); 29724: # 1486 "/usr/include/zlib.h" 3 4 29724: extern int gzputs(gzFile file, const char *s); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char * gzgets(gzFile file, char *buf, int len); 29724: # 1508 "/usr/include/zlib.h" 3 4 29724: extern int gzputc(gzFile file, int c); 29724: 29724: 29724: 29724: 29724: 29724: extern int gzgetc(gzFile file); 29724: # 1523 "/usr/include/zlib.h" 3 4 29724: extern int gzungetc(int c, gzFile file); 29724: # 1535 "/usr/include/zlib.h" 3 4 29724: extern int gzflush(gzFile file, int flush); 29724: # 1570 "/usr/include/zlib.h" 3 4 29724: extern int gzrewind(gzFile file); 29724: # 1598 "/usr/include/zlib.h" 3 4 29724: extern int gzeof(gzFile file); 29724: # 1613 "/usr/include/zlib.h" 3 4 29724: extern int gzdirect(gzFile file); 29724: # 1634 "/usr/include/zlib.h" 3 4 29724: extern int gzclose(gzFile file); 29724: # 1647 "/usr/include/zlib.h" 3 4 29724: extern int gzclose_r(gzFile file); 29724: extern int gzclose_w(gzFile file); 29724: # 1659 "/usr/include/zlib.h" 3 4 29724: extern const char * gzerror(gzFile file, int *errnum); 29724: # 1675 "/usr/include/zlib.h" 3 4 29724: extern void gzclearerr(gzFile file); 29724: # 1692 "/usr/include/zlib.h" 3 4 29724: extern uLong adler32(uLong adler, const Bytef *buf, uInt len); 29724: # 1712 "/usr/include/zlib.h" 3 4 29724: extern uLong adler32_z(uLong adler, const Bytef *buf, 29724: z_size_t len); 29724: # 1730 "/usr/include/zlib.h" 3 4 29724: extern uLong crc32(uLong crc, const Bytef *buf, uInt len); 29724: # 1748 "/usr/include/zlib.h" 3 4 29724: extern uLong crc32_z(uLong crc, const Bytef *buf, 29724: z_size_t len); 29724: # 1771 "/usr/include/zlib.h" 3 4 29724: extern uLong crc32_combine_op(uLong crc1, uLong crc2, uLong op); 29724: # 1784 "/usr/include/zlib.h" 3 4 29724: extern int deflateInit_(z_streamp strm, int level, 29724: const char *version, int stream_size); 29724: extern int inflateInit_(z_streamp strm, 29724: const char *version, int stream_size); 29724: extern int deflateInit2_(z_streamp strm, int level, int method, 29724: int windowBits, int memLevel, 29724: int strategy, const char *version, 29724: int stream_size); 29724: extern int inflateInit2_(z_streamp strm, int windowBits, 29724: const char *version, int stream_size); 29724: extern int inflateBackInit_(z_streamp strm, int windowBits, 29724: unsigned char *window, 29724: const char *version, 29724: int stream_size); 29724: # 1837 "/usr/include/zlib.h" 3 4 29724: struct gzFile_s { 29724: unsigned have; 29724: unsigned char *next; 29724: off64_t pos; 29724: }; 29724: extern int gzgetc_(gzFile file); 29724: # 1859 "/usr/include/zlib.h" 3 4 29724: extern gzFile gzopen64(const char *, const char *); 29724: extern off64_t gzseek64(gzFile, off64_t, int); 29724: extern off64_t gztell64(gzFile); 29724: extern off64_t gzoffset64(gzFile); 29724: extern uLong adler32_combine64(uLong, uLong, off64_t); 29724: extern uLong crc32_combine64(uLong, uLong, off64_t); 29724: extern uLong crc32_combine_gen64(off64_t); 29724: # 1914 "/usr/include/zlib.h" 3 4 29724: extern const char * zError(int); 29724: extern int inflateSyncPoint(z_streamp); 29724: extern const z_crc_t * get_crc_table(void); 29724: extern int inflateUndermine(z_streamp, int); 29724: extern int inflateValidate(z_streamp, int); 29724: extern unsigned long inflateCodesUsed(z_streamp); 29724: extern int inflateResetKeep(z_streamp); 29724: extern int deflateResetKeep(z_streamp); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int gzvprintf(gzFile file, 29724: const char *format, 29724: va_list va); 29724: 29724: 29724: 29724: 29724: } 29724: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: 29724: # 1 "/usr/include/bzlib.h" 1 3 4 29724: # 26 "/usr/include/bzlib.h" 3 4 29724: extern "C" { 29724: # 48 "/usr/include/bzlib.h" 3 4 29724: typedef 29724: struct { 29724: char *next_in; 29724: unsigned int avail_in; 29724: unsigned int total_in_lo32; 29724: unsigned int total_in_hi32; 29724: 29724: char *next_out; 29724: unsigned int avail_out; 29724: unsigned int total_out_lo32; 29724: unsigned int total_out_hi32; 29724: 29724: void *state; 29724: 29724: void *(*bzalloc)(void *,int,int); 29724: void (*bzfree)(void *,void *); 29724: void *opaque; 29724: } 29724: bz_stream; 29724: # 100 "/usr/include/bzlib.h" 3 4 29724: extern int BZ2_bzCompressInit ( 29724: bz_stream* strm, 29724: int blockSize100k, 29724: int verbosity, 29724: int workFactor 29724: ); 29724: 29724: extern int BZ2_bzCompress ( 29724: bz_stream* strm, 29724: int action 29724: ); 29724: 29724: extern int BZ2_bzCompressEnd ( 29724: bz_stream* strm 29724: ); 29724: 29724: extern int BZ2_bzDecompressInit ( 29724: bz_stream *strm, 29724: int verbosity, 29724: int small 29724: ); 29724: 29724: extern int BZ2_bzDecompress ( 29724: bz_stream* strm 29724: ); 29724: 29724: extern int BZ2_bzDecompressEnd ( 29724: bz_stream *strm 29724: ); 29724: # 137 "/usr/include/bzlib.h" 3 4 29724: typedef void BZFILE; 29724: 29724: extern BZFILE* BZ2_bzReadOpen ( 29724: int* bzerror, 29724: FILE* f, 29724: int verbosity, 29724: int small, 29724: void* unused, 29724: int nUnused 29724: ); 29724: 29724: extern void BZ2_bzReadClose ( 29724: int* bzerror, 29724: BZFILE* b 29724: ); 29724: 29724: extern void BZ2_bzReadGetUnused ( 29724: int* bzerror, 29724: BZFILE* b, 29724: void** unused, 29724: int* nUnused 29724: ); 29724: 29724: extern int BZ2_bzRead ( 29724: int* bzerror, 29724: BZFILE* b, 29724: void* buf, 29724: int len 29724: ); 29724: 29724: extern BZFILE* BZ2_bzWriteOpen ( 29724: int* bzerror, 29724: FILE* f, 29724: int blockSize100k, 29724: int verbosity, 29724: int workFactor 29724: ); 29724: 29724: extern void BZ2_bzWrite ( 29724: int* bzerror, 29724: BZFILE* b, 29724: void* buf, 29724: int len 29724: ); 29724: 29724: extern void BZ2_bzWriteClose ( 29724: int* bzerror, 29724: BZFILE* b, 29724: int abandon, 29724: unsigned int* nbytes_in, 29724: unsigned int* nbytes_out 29724: ); 29724: 29724: extern void BZ2_bzWriteClose64 ( 29724: int* bzerror, 29724: BZFILE* b, 29724: int abandon, 29724: unsigned int* nbytes_in_lo32, 29724: unsigned int* nbytes_in_hi32, 29724: unsigned int* nbytes_out_lo32, 29724: unsigned int* nbytes_out_hi32 29724: ); 29724: 29724: 29724: 29724: 29724: 29724: extern int BZ2_bzBuffToBuffCompress ( 29724: char* dest, 29724: unsigned int* destLen, 29724: char* source, 29724: unsigned int sourceLen, 29724: int blockSize100k, 29724: int verbosity, 29724: int workFactor 29724: ); 29724: 29724: extern int BZ2_bzBuffToBuffDecompress ( 29724: char* dest, 29724: unsigned int* destLen, 29724: char* source, 29724: unsigned int sourceLen, 29724: int small, 29724: int verbosity 29724: ); 29724: # 233 "/usr/include/bzlib.h" 3 4 29724: extern const char * BZ2_bzlibVersion ( 29724: void 29724: ); 29724: 29724: 29724: extern BZFILE * BZ2_bzopen ( 29724: const char *path, 29724: const char *mode 29724: ); 29724: 29724: extern BZFILE * BZ2_bzdopen ( 29724: int fd, 29724: const char *mode 29724: ); 29724: 29724: extern int BZ2_bzread ( 29724: BZFILE* b, 29724: void* buf, 29724: int len 29724: ); 29724: 29724: extern int BZ2_bzwrite ( 29724: BZFILE* b, 29724: void* buf, 29724: int len 29724: ); 29724: 29724: extern int BZ2_bzflush ( 29724: BZFILE* b 29724: ); 29724: 29724: extern void BZ2_bzclose ( 29724: BZFILE* b 29724: ); 29724: 29724: extern const char * BZ2_bzerror ( 29724: BZFILE *b, 29724: int *errnum 29724: ); 29724: 29724: 29724: 29724: } 29724: # 42 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: 29724: # 1 "/usr/include/lz4.h" 1 3 4 29724: # 36 "/usr/include/lz4.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 44 "/usr/include/lz4.h" 2 3 4 29724: # 142 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_versionNumber (void); 29724: __attribute__ ((visibility ("default"))) const char* LZ4_versionString (void); 29724: # 191 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 29724: # 208 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity); 29724: # 226 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compressBound(int inputSize); 29724: # 236 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29724: # 245 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_sizeofState(void); 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29724: # 272 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_destSize(const char* src, char* dst, int* srcSizePtr, int targetDstSize); 29724: # 308 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 29724: 29724: 29724: 29724: 29724: 29724: typedef union LZ4_stream_u LZ4_stream_t; 29724: # 331 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_createStream(void); 29724: __attribute__ ((visibility ("default"))) int LZ4_freeStream (LZ4_stream_t* streamPtr); 29724: # 358 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) void LZ4_resetStream_fast (LZ4_stream_t* streamPtr); 29724: # 371 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 29724: # 380 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_loadDictSlow(LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 29724: # 414 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) void 29724: LZ4_attach_dictionary(LZ4_stream_t* workingStream, 29724: const LZ4_stream_t* dictionaryStream); 29724: # 441 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29724: # 450 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_saveDict (LZ4_stream_t* streamPtr, char* safeBuffer, int maxDictSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef union LZ4_streamDecode_u LZ4_streamDecode_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) LZ4_streamDecode_t* LZ4_createStreamDecode(void); 29724: __attribute__ ((visibility ("default"))) int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream); 29724: # 477 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize); 29724: # 490 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_decoderRingBufferSize(int maxBlockSize); 29724: # 531 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int 29724: LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, 29724: const char* src, char* dst, 29724: int srcSize, int dstCapacity); 29724: # 545 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int 29724: LZ4_decompress_safe_usingDict(const char* src, char* dst, 29724: int srcSize, int dstCapacity, 29724: const char* dictStart, int dictSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) int 29724: LZ4_decompress_safe_partial_usingDict(const char* src, char* dst, 29724: int compressedSize, 29724: int targetOutputSize, int maxOutputSize, 29724: const char* dictStart, int dictSize); 29724: # 701 "/usr/include/lz4.h" 3 4 29724: typedef int8_t LZ4_i8; 29724: typedef uint8_t LZ4_byte; 29724: typedef uint16_t LZ4_u16; 29724: typedef uint32_t LZ4_u32; 29724: # 718 "/usr/include/lz4.h" 3 4 29724: typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; 29724: struct LZ4_stream_t_internal { 29724: LZ4_u32 hashTable[(1 << (14 -2))]; 29724: const LZ4_byte* dictionary; 29724: const LZ4_stream_t_internal* dictCtx; 29724: LZ4_u32 currentOffset; 29724: LZ4_u32 tableType; 29724: LZ4_u32 dictSize; 29724: 29724: }; 29724: 29724: 29724: union LZ4_stream_u { 29724: char minStateSize[((1UL << (14)) + 32)]; 29724: LZ4_stream_t_internal internal_donotuse; 29724: }; 29724: # 750 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_initStream (void* stateBuffer, size_t size); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef struct { 29724: const LZ4_byte* externalDict; 29724: const LZ4_byte* prefixEnd; 29724: size_t extDictSize; 29724: size_t prefixSize; 29724: } LZ4_streamDecode_t_internal; 29724: 29724: 29724: union LZ4_streamDecode_u { 29724: char minStateSize[32]; 29724: LZ4_streamDecode_t_internal internal_donotuse; 29724: } ; 29724: # 806 "/usr/include/lz4.h" 3 4 29724: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress (const char* src, char* dest, int srcSize); 29724: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput (const char* src, char* dest, int srcSize, int maxOutputSize); 29724: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_withState (void* state, const char* source, char* dest, int inputSize); 29724: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput_withState (void* state, const char* source, char* dest, int inputSize, int maxOutputSize); 29724: [[deprecated("use LZ4_compress_fast_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_continue (LZ4_stream_t* LZ4_streamPtr, const char* source, char* dest, int inputSize); 29724: [[deprecated("use LZ4_compress_fast_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput_continue (LZ4_stream_t* LZ4_streamPtr, const char* source, char* dest, int inputSize, int maxOutputSize); 29724: 29724: 29724: [[deprecated("use LZ4_decompress_fast() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress (const char* source, char* dest, int outputSize); 29724: [[deprecated("use LZ4_decompress_safe() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); 29724: # 827 "/usr/include/lz4.h" 3 4 29724: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_create (char* inputBuffer); 29724: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamState(void); 29724: [[deprecated("Use LZ4_resetStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamState(void* state, char* inputBuffer); 29724: [[deprecated("Use LZ4_saveDict() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBuffer (void* state); 29724: 29724: 29724: [[deprecated("use LZ4_decompress_safe_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, int maxDstSize); 29724: [[deprecated("use LZ4_decompress_fast_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_withPrefix64k (const char* src, char* dst, int originalSize); 29724: # 862 "/usr/include/lz4.h" 3 4 29724: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_partial() instead")]] 29724: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast (const char* src, char* dst, int originalSize); 29724: [[deprecated("This function is deprecated and unsafe. Consider migrating towards LZ4_decompress_safe_continue() instead. " "Note that the contract will change (requires block's compressed size, instead of decompressed size)")]] 29724: 29724: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int originalSize); 29724: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_partial_usingDict() instead")]] 29724: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) void LZ4_resetStream (LZ4_stream_t* streamPtr); 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 46 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: # 1 "/usr/include/lz4hc.h" 1 3 4 29724: # 38 "/usr/include/lz4hc.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/lz4.h" 1 3 4 29724: # 36 "/usr/include/lz4.h" 3 4 29724: extern "C" { 29724: # 883 "/usr/include/lz4.h" 3 4 29724: } 29724: # 44 "/usr/include/lz4hc.h" 2 3 4 29724: # 66 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 29724: # 79 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_sizeofStateHC(void); 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_extStateHC(void* stateHC, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 29724: # 91 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_destSize(void* stateHC, 29724: const char* src, char* dst, 29724: int* srcSizePtr, int targetDstSize, 29724: int compressionLevel); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef union LZ4_streamHC_u LZ4_streamHC_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_createStreamHC(void); 29724: __attribute__ ((visibility ("default"))) int LZ4_freeStreamHC (LZ4_streamHC_t* streamHCPtr); 29724: # 157 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC_fast(LZ4_streamHC_t* streamHCPtr, int compressionLevel); 29724: __attribute__ ((visibility ("default"))) int LZ4_loadDictHC (LZ4_streamHC_t* streamHCPtr, const char* dictionary, int dictSize); 29724: 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue (LZ4_streamHC_t* streamHCPtr, 29724: const char* src, char* dst, 29724: int srcSize, int maxDstSize); 29724: # 174 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t* LZ4_streamHCPtr, 29724: const char* src, char* dst, 29724: int* srcSizePtr, int targetDstSize); 29724: 29724: __attribute__ ((visibility ("default"))) int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, int maxDictSize); 29724: # 205 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) void 29724: LZ4_attach_HC_dictionary(LZ4_streamHC_t* working_stream, 29724: const LZ4_streamHC_t* dictionary_stream); 29724: # 234 "/usr/include/lz4hc.h" 3 4 29724: typedef struct LZ4HC_CCtx_internal LZ4HC_CCtx_internal; 29724: struct LZ4HC_CCtx_internal 29724: { 29724: LZ4_u32 hashTable[(1 << 15)]; 29724: LZ4_u16 chainTable[(1<<16)]; 29724: const LZ4_byte* end; 29724: const LZ4_byte* prefixStart; 29724: const LZ4_byte* dictStart; 29724: LZ4_u32 dictLimit; 29724: LZ4_u32 lowLimit; 29724: LZ4_u32 nextToUpdate; 29724: short compressionLevel; 29724: LZ4_i8 favorDecSpeed; 29724: 29724: LZ4_i8 dirty; 29724: const LZ4HC_CCtx_internal* dictCtx; 29724: }; 29724: 29724: 29724: union LZ4_streamHC_u { 29724: char minStateSize[262200]; 29724: LZ4HC_CCtx_internal internal_donotuse; 29724: }; 29724: # 275 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_initStreamHC(void* buffer, size_t size); 29724: # 284 "/usr/include/lz4hc.h" 3 4 29724: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC (const char* source, char* dest, int inputSize); 29724: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); 29724: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); 29724: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput(const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29724: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_withStateHC (void* state, const char* source, char* dest, int inputSize); 29724: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput_withStateHC (void* state, const char* source, char* dest, int inputSize, int maxOutputSize); 29724: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_withStateHC (void* state, const char* source, char* dest, int inputSize, int compressionLevel); 29724: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput_withStateHC(void* state, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29724: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize); 29724: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize, int maxOutputSize); 29724: # 304 "/usr/include/lz4hc.h" 3 4 29724: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_createHC (const char* inputBuffer); 29724: [[deprecated("use LZ4_freeStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_freeHC (void* LZ4HC_Data); 29724: 29724: [[deprecated("use LZ4_saveDictHC() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBufferHC (void* LZ4HC_Data); 29724: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int compressionLevel); 29724: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29724: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamStateHC(void); 29724: [[deprecated("use LZ4_initStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamStateHC(void* state, char* inputBuffer); 29724: # 322 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionLevel); 29724: 29724: 29724: 29724: } 29724: # 47 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: 29724: # 1 "/usr/include/zstd.h" 1 3 4 29724: # 11 "/usr/include/zstd.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29724: # 19 "/usr/include/zstd.h" 2 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 20 "/usr/include/zstd.h" 2 3 4 29724: # 114 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_versionNumber(void); 29724: # 123 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) const char* ZSTD_versionString(void); 29724: # 155 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compress( void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: int compressionLevel); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress( void* dst, size_t dstCapacity, 29724: const void* src, size_t compressedSize); 29724: # 193 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[deprecated("Replaced by ZSTD_getFrameContentSize")]] 29724: __attribute__ ((visibility ("default"))) 29724: unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_findFrameCompressedSize(const void* src, size_t srcSize); 29724: # 233 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compressBound(size_t srcSize); 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_isError(size_t code); 29724: __attribute__ ((visibility ("default"))) const char* ZSTD_getErrorName(size_t code); 29724: __attribute__ ((visibility ("default"))) int ZSTD_minCLevel(void); 29724: __attribute__ ((visibility ("default"))) int ZSTD_maxCLevel(void); 29724: __attribute__ ((visibility ("default"))) int ZSTD_defaultCLevel(void); 29724: # 259 "/usr/include/zstd.h" 3 4 29724: typedef struct ZSTD_CCtx_s ZSTD_CCtx; 29724: __attribute__ ((visibility ("default"))) ZSTD_CCtx* ZSTD_createCCtx(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 29724: # 271 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: int compressionLevel); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef struct ZSTD_DCtx_s ZSTD_DCtx; 29724: __attribute__ ((visibility ("default"))) ZSTD_DCtx* ZSTD_createDCtx(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize); 29724: # 315 "/usr/include/zstd.h" 3 4 29724: typedef enum { ZSTD_fast=1, 29724: ZSTD_dfast=2, 29724: ZSTD_greedy=3, 29724: ZSTD_lazy=4, 29724: ZSTD_lazy2=5, 29724: ZSTD_btlazy2=6, 29724: ZSTD_btopt=7, 29724: ZSTD_btultra=8, 29724: ZSTD_btultra2=9 29724: 29724: 29724: } ZSTD_strategy; 29724: 29724: typedef enum { 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_compressionLevel=100, 29724: # 347 "/usr/include/zstd.h" 3 4 29724: ZSTD_c_windowLog=101, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_hashLog=102, 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_chainLog=103, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_searchLog=104, 29724: 29724: 29724: 29724: ZSTD_c_minMatch=105, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_targetLength=106, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_strategy=107, 29724: 29724: 29724: 29724: 29724: ZSTD_c_targetCBlockSize=130, 29724: # 407 "/usr/include/zstd.h" 3 4 29724: ZSTD_c_enableLongDistanceMatching=160, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_ldmHashLog=161, 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_ldmMinMatch=162, 29724: 29724: 29724: 29724: ZSTD_c_ldmBucketSizeLog=163, 29724: 29724: 29724: 29724: ZSTD_c_ldmHashRateLog=164, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_contentSizeFlag=200, 29724: 29724: 29724: 29724: ZSTD_c_checksumFlag=201, 29724: ZSTD_c_dictIDFlag=202, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_nbWorkers=400, 29724: # 459 "/usr/include/zstd.h" 3 4 29724: ZSTD_c_jobSize=401, 29724: 29724: 29724: 29724: 29724: ZSTD_c_overlapLog=402, 29724: # 500 "/usr/include/zstd.h" 3 4 29724: ZSTD_c_experimentalParam1=500, 29724: ZSTD_c_experimentalParam2=10, 29724: ZSTD_c_experimentalParam3=1000, 29724: ZSTD_c_experimentalParam4=1001, 29724: ZSTD_c_experimentalParam5=1002, 29724: 29724: ZSTD_c_experimentalParam7=1004, 29724: ZSTD_c_experimentalParam8=1005, 29724: ZSTD_c_experimentalParam9=1006, 29724: ZSTD_c_experimentalParam10=1007, 29724: ZSTD_c_experimentalParam11=1008, 29724: ZSTD_c_experimentalParam12=1009, 29724: ZSTD_c_experimentalParam13=1010, 29724: ZSTD_c_experimentalParam14=1011, 29724: ZSTD_c_experimentalParam15=1012, 29724: ZSTD_c_experimentalParam16=1013, 29724: ZSTD_c_experimentalParam17=1014, 29724: ZSTD_c_experimentalParam18=1015, 29724: ZSTD_c_experimentalParam19=1016 29724: } ZSTD_cParameter; 29724: 29724: typedef struct { 29724: size_t error; 29724: int lowerBound; 29724: int upperBound; 29724: } ZSTD_bounds; 29724: # 534 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam); 29724: # 547 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value); 29724: # 564 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 29724: 29724: typedef enum { 29724: ZSTD_reset_session_only = 1, 29724: ZSTD_reset_parameters = 2, 29724: ZSTD_reset_session_and_parameters = 3 29724: } ZSTD_ResetDirective; 29724: # 586 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); 29724: # 600 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compress2( ZSTD_CCtx* cctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize); 29724: # 617 "/usr/include/zstd.h" 3 4 29724: typedef enum { 29724: 29724: ZSTD_d_windowLogMax=100, 29724: # 638 "/usr/include/zstd.h" 3 4 29724: ZSTD_d_experimentalParam1=1000, 29724: ZSTD_d_experimentalParam2=1001, 29724: ZSTD_d_experimentalParam3=1002, 29724: ZSTD_d_experimentalParam4=1003, 29724: ZSTD_d_experimentalParam5=1004, 29724: ZSTD_d_experimentalParam6=1005 29724: 29724: } ZSTD_dParameter; 29724: # 654 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam); 29724: # 663 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int value); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef struct ZSTD_inBuffer_s { 29724: const void* src; 29724: size_t size; 29724: size_t pos; 29724: } ZSTD_inBuffer; 29724: 29724: typedef struct ZSTD_outBuffer_s { 29724: void* dst; 29724: size_t size; 29724: size_t pos; 29724: } ZSTD_outBuffer; 29724: # 753 "/usr/include/zstd.h" 3 4 29724: typedef ZSTD_CCtx ZSTD_CStream; 29724: 29724: 29724: __attribute__ ((visibility ("default"))) ZSTD_CStream* ZSTD_createCStream(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCStream(ZSTD_CStream* zcs); 29724: 29724: 29724: typedef enum { 29724: ZSTD_e_continue=0, 29724: ZSTD_e_flush=1, 29724: 29724: 29724: 29724: ZSTD_e_end=2 29724: 29724: 29724: 29724: 29724: } ZSTD_EndDirective; 29724: # 800 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 29724: ZSTD_outBuffer* output, 29724: ZSTD_inBuffer* input, 29724: ZSTD_EndDirective endOp); 29724: # 819 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamInSize(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamOutSize(void); 29724: # 839 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 29724: # 880 "/usr/include/zstd.h" 3 4 29724: typedef ZSTD_DCtx ZSTD_DStream; 29724: 29724: 29724: __attribute__ ((visibility ("default"))) ZSTD_DStream* ZSTD_createDStream(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDStream(ZSTD_DStream* zds); 29724: # 896 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_initDStream(ZSTD_DStream* zds); 29724: # 919 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamInSize(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamOutSize(void); 29724: # 935 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingDict(ZSTD_CCtx* ctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: const void* dict,size_t dictSize, 29724: int compressionLevel); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: const void* dict,size_t dictSize); 29724: 29724: 29724: 29724: 29724: 29724: typedef struct ZSTD_CDict_s ZSTD_CDict; 29724: # 970 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 29724: int compressionLevel); 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: const ZSTD_CDict* cdict); 29724: 29724: 29724: typedef struct ZSTD_DDict_s ZSTD_DDict; 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDDict(ZSTD_DDict* ddict); 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: const ZSTD_DDict* ddict); 29724: # 1018 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict); 29724: # 1042 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize); 29724: # 1079 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); 29724: # 1093 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 29724: # 1114 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 29724: const void* prefix, size_t prefixSize); 29724: # 1132 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); 29724: # 1151 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 29724: # 1169 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, 29724: const void* prefix, size_t prefixSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CStream(const ZSTD_CStream* zcs); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DStream(const ZSTD_DStream* zds); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict); 29724: # 3088 "/usr/include/zstd.h" 3 4 29724: } 29724: # 51 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: # 1 "/usr/include/zdict.h" 1 3 4 29724: # 12 "/usr/include/zdict.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 20 "/usr/include/zdict.h" 2 3 4 29724: # 210 "/usr/include/zdict.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity, 29724: const void* samplesBuffer, 29724: const size_t* samplesSizes, unsigned nbSamples); 29724: 29724: typedef struct { 29724: int compressionLevel; 29724: unsigned notificationLevel; 29724: unsigned dictID; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } ZDICT_params_t; 29724: # 262 "/usr/include/zdict.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZDICT_finalizeDictionary(void* dstDictBuffer, size_t maxDictSize, 29724: const void* dictContent, size_t dictContentSize, 29724: const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, 29724: ZDICT_params_t parameters); 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); 29724: __attribute__ ((visibility ("default"))) size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize); 29724: __attribute__ ((visibility ("default"))) unsigned ZDICT_isError(size_t errorCode); 29724: __attribute__ ((visibility ("default"))) const char* ZDICT_getErrorName(size_t errorCode); 29724: # 473 "/usr/include/zdict.h" 3 4 29724: } 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: namespace rocksdb { 29724: # 88 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: class ZSTDUncompressCachedData { 29724: public: 29724: using ZSTDNativeContext = ZSTD_DCtx*; 29724: ZSTDUncompressCachedData() {} 29724: 29724: ZSTDUncompressCachedData(const ZSTDUncompressCachedData& o) = delete; 29724: ZSTDUncompressCachedData& operator=(const ZSTDUncompressCachedData&) = delete; 29724: ZSTDUncompressCachedData(ZSTDUncompressCachedData&& o) noexcept 29724: : ZSTDUncompressCachedData() { 29724: *this = std::move(o); 29724: } 29724: ZSTDUncompressCachedData& operator=(ZSTDUncompressCachedData&& o) noexcept { 29724: 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: zstd_ctx_ == nullptr 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "zstd_ctx_ == nullptr" 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: std::swap(zstd_ctx_, o.zstd_ctx_); 29724: std::swap(cache_idx_, o.cache_idx_); 29724: return *this; 29724: } 29724: ZSTDNativeContext Get() const { return zstd_ctx_; } 29724: int64_t GetCacheIndex() const { return cache_idx_; } 29724: void CreateIfNeeded() { 29724: if (zstd_ctx_ == nullptr) { 29724: 29724: 29724: 29724: 29724: zstd_ctx_ = ZSTD_createDCtx(); 29724: 29724: cache_idx_ = -1; 29724: } 29724: } 29724: void InitFromCache(const ZSTDUncompressCachedData& o, int64_t idx) { 29724: zstd_ctx_ = o.zstd_ctx_; 29724: cache_idx_ = idx; 29724: } 29724: ~ZSTDUncompressCachedData() { 29724: if (zstd_ctx_ != nullptr && cache_idx_ == -1) { 29724: ZSTD_freeDCtx(zstd_ctx_); 29724: } 29724: } 29724: 29724: private: 29724: ZSTDNativeContext zstd_ctx_ = nullptr; 29724: int64_t cache_idx_ = -1; 29724: }; 29724: 29724: } 29724: # 163 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: struct CompressionDict { 29724: 29724: ZSTD_CDict* zstd_cdict_ = nullptr; 29724: 29724: std::string dict_; 29724: 29724: public: 29724: 29724: CompressionDict(std::string dict, CompressionType type, int level) { 29724: 29724: 29724: 29724: dict_ = std::move(dict); 29724: 29724: zstd_cdict_ = nullptr; 29724: if (!dict_.empty() && (type == kZSTD || type == kZSTDNotFinalCompression)) { 29724: if (level == CompressionOptions::kDefaultCompressionLevel) { 29724: 29724: 29724: 29724: 29724: 29724: level = 3; 29724: } 29724: 29724: 29724: zstd_cdict_ = ZSTD_createCDict(dict_.data(), dict_.size(), level); 29724: 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: zstd_cdict_ != nullptr 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "zstd_cdict_ != nullptr" 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: } 29724: 29724: } 29724: 29724: ~CompressionDict() { 29724: 29724: size_t res = 0; 29724: if (zstd_cdict_ != nullptr) { 29724: res = ZSTD_freeCDict(zstd_cdict_); 29724: } 29724: 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: res == 0 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "res == 0" 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: (void)res; 29724: 29724: } 29724: 29724: 29724: const ZSTD_CDict* GetDigestedZstdCDict() const { return zstd_cdict_; } 29724: 29724: 29724: Slice GetRawDict() const { return dict_; } 29724: 29724: static const CompressionDict& GetEmptyDict() { 29724: static CompressionDict empty_dict{}; 29724: return empty_dict; 29724: } 29724: 29724: CompressionDict() = default; 29724: 29724: CompressionDict(const CompressionDict&) = delete; 29724: CompressionDict& operator=(const CompressionDict&) = delete; 29724: CompressionDict(CompressionDict&&) = delete; 29724: CompressionDict& operator=(CompressionDict&&) = delete; 29724: }; 29724: 29724: 29724: 29724: struct UncompressionDict { 29724: 29724: 29724: std::string dict_; 29724: 29724: 29724: 29724: 29724: CacheAllocationPtr allocation_; 29724: 29724: 29724: 29724: 29724: Slice slice_; 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: UncompressionDict(std::string dict, bool ) 29724: 29724: : dict_(std::move(dict)), slice_(dict_) { 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: UncompressionDict(Slice slice, CacheAllocationPtr&& allocation, 29724: bool ) 29724: 29724: : allocation_(std::move(allocation)), slice_(std::move(slice)) { 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: UncompressionDict(UncompressionDict&& rhs) 29724: : dict_(std::move(rhs.dict_)), 29724: allocation_(std::move(rhs.allocation_)), 29724: slice_(std::move(rhs.slice_)) 29724: 29724: 29724: 29724: 29724: { 29724: 29724: 29724: 29724: } 29724: 29724: ~UncompressionDict() { 29724: # 304 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: UncompressionDict& operator=(UncompressionDict&& rhs) { 29724: if (this == &rhs) { 29724: return *this; 29724: } 29724: 29724: dict_ = std::move(rhs.dict_); 29724: allocation_ = std::move(rhs.allocation_); 29724: slice_ = std::move(rhs.slice_); 29724: 29724: 29724: 29724: 29724: 29724: 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: bool own_bytes() const { return !dict_.empty() || allocation_; } 29724: 29724: const Slice& GetRawDict() const { return slice_; } 29724: 29724: 29724: const Slice& ContentSlice() const { return slice_; } 29724: static constexpr CacheEntryRole kCacheEntryRole = CacheEntryRole::kOtherBlock; 29724: static constexpr BlockType kBlockType = BlockType::kCompressionDictionary; 29724: 29724: 29724: 29724: 29724: 29724: static const UncompressionDict& GetEmptyDict() { 29724: static UncompressionDict empty_dict{}; 29724: return empty_dict; 29724: } 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: size_t usage = sizeof(struct UncompressionDict); 29724: usage += dict_.size(); 29724: if (allocation_) { 29724: auto allocator = allocation_.get_deleter().allocator; 29724: if (allocator) { 29724: usage += allocator->UsableSize(allocation_.get(), slice_.size()); 29724: } else { 29724: usage += slice_.size(); 29724: } 29724: } 29724: 29724: 29724: 29724: return usage; 29724: } 29724: 29724: UncompressionDict() = default; 29724: 29724: UncompressionDict(const CompressionDict&) = delete; 29724: UncompressionDict& operator=(const CompressionDict&) = delete; 29724: }; 29724: 29724: class CompressionContext { 29724: private: 29724: 29724: ZSTD_CCtx* zstd_ctx_ = nullptr; 29724: 29724: ZSTD_CCtx* CreateZSTDContext() { 29724: 29724: 29724: 29724: return ZSTD_createCCtx(); 29724: 29724: } 29724: 29724: void CreateNativeContext(CompressionType type, int level, bool checksum) { 29724: if (type == kZSTD || type == kZSTDNotFinalCompression) { 29724: zstd_ctx_ = CreateZSTDContext(); 29724: 29724: if (level == CompressionOptions::kDefaultCompressionLevel) { 29724: 29724: 29724: level = 3; 29724: } 29724: size_t err = 29724: ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_compressionLevel, level); 29724: if (ZSTD_isError(err)) { 29724: 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: false 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "false" 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: ZSTD_freeCCtx(zstd_ctx_); 29724: zstd_ctx_ = CreateZSTDContext(); 29724: } 29724: if (checksum) { 29724: err = ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_checksumFlag, 1); 29724: if (ZSTD_isError(err)) { 29724: 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: false 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "false" 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: ZSTD_freeCCtx(zstd_ctx_); 29724: zstd_ctx_ = CreateZSTDContext(); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: } 29724: void DestroyNativeContext() { 29724: if (zstd_ctx_ != nullptr) { 29724: ZSTD_freeCCtx(zstd_ctx_); 29724: } 29724: } 29724: 29724: public: 29724: 29724: ZSTD_CCtx* ZSTDPreallocCtx() const { 29724: 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: zstd_ctx_ != nullptr 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "zstd_ctx_ != nullptr" 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: return zstd_ctx_; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: public: 29724: explicit CompressionContext(CompressionType type, 29724: const CompressionOptions& options) { 29724: CreateNativeContext(type, options.level, options.checksum); 29724: } 29724: ~CompressionContext() { DestroyNativeContext(); } 29724: CompressionContext(const CompressionContext&) = delete; 29724: CompressionContext& operator=(const CompressionContext&) = delete; 29724: }; 29724: 29724: class CompressionInfo { 29724: const CompressionOptions& opts_; 29724: const CompressionContext& context_; 29724: const CompressionDict& dict_; 29724: const CompressionType type_; 29724: const uint64_t sample_for_compression_; 29724: 29724: public: 29724: CompressionInfo(const CompressionOptions& _opts, 29724: const CompressionContext& _context, 29724: const CompressionDict& _dict, CompressionType _type, 29724: uint64_t _sample_for_compression) 29724: : opts_(_opts), 29724: context_(_context), 29724: dict_(_dict), 29724: type_(_type), 29724: sample_for_compression_(_sample_for_compression) {} 29724: 29724: const CompressionOptions& options() const { return opts_; } 29724: const CompressionContext& context() const { return context_; } 29724: const CompressionDict& dict() const { return dict_; } 29724: CompressionType type() const { return type_; } 29724: uint64_t SampleForCompression() const { return sample_for_compression_; } 29724: }; 29724: 29724: class UncompressionContext { 29724: private: 29724: CompressionContextCache* ctx_cache_ = nullptr; 29724: ZSTDUncompressCachedData uncomp_cached_data_; 29724: 29724: public: 29724: explicit UncompressionContext(CompressionType type) { 29724: if (type == kZSTD || type == kZSTDNotFinalCompression) { 29724: ctx_cache_ = CompressionContextCache::Instance(); 29724: uncomp_cached_data_ = ctx_cache_->GetCachedZSTDUncompressData(); 29724: } 29724: } 29724: ~UncompressionContext() { 29724: if (uncomp_cached_data_.GetCacheIndex() != -1) { 29724: 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ctx_cache_ != nullptr 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "ctx_cache_ != nullptr" 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: ctx_cache_->ReturnCachedZSTDUncompressData( 29724: uncomp_cached_data_.GetCacheIndex()); 29724: } 29724: } 29724: UncompressionContext(const UncompressionContext&) = delete; 29724: UncompressionContext& operator=(const UncompressionContext&) = delete; 29724: 29724: ZSTDUncompressCachedData::ZSTDNativeContext GetZSTDContext() const { 29724: return uncomp_cached_data_.Get(); 29724: } 29724: }; 29724: 29724: class UncompressionInfo { 29724: const UncompressionContext& context_; 29724: const UncompressionDict& dict_; 29724: const CompressionType type_; 29724: 29724: public: 29724: UncompressionInfo(const UncompressionContext& _context, 29724: const UncompressionDict& _dict, CompressionType _type) 29724: : context_(_context), dict_(_dict), type_(_type) {} 29724: 29724: const UncompressionContext& context() const { return context_; } 29724: const UncompressionDict& dict() const { return dict_; } 29724: CompressionType type() const { return type_; } 29724: }; 29724: 29724: inline bool Snappy_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool Zlib_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool BZip2_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool LZ4_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool XPRESS_Supported() { 29724: 29724: 29724: 29724: return false; 29724: 29724: } 29724: 29724: inline bool ZSTD_Supported() { 29724: 29724: 29724: return (ZSTD_versionNumber() >= 800); 29724: 29724: 29724: 29724: } 29724: 29724: inline bool ZSTDNotFinal_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool ZSTD_Streaming_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool StreamingCompressionTypeSupported( 29724: CompressionType compression_type) { 29724: switch (compression_type) { 29724: case kNoCompression: 29724: return true; 29724: case kZSTD: 29724: return ZSTD_Streaming_Supported(); 29724: default: 29724: return false; 29724: } 29724: } 29724: 29724: inline bool CompressionTypeSupported(CompressionType compression_type) { 29724: switch (compression_type) { 29724: case kNoCompression: 29724: return true; 29724: case kSnappyCompression: 29724: return Snappy_Supported(); 29724: case kZlibCompression: 29724: return Zlib_Supported(); 29724: case kBZip2Compression: 29724: return BZip2_Supported(); 29724: case kLZ4Compression: 29724: return LZ4_Supported(); 29724: case kLZ4HCCompression: 29724: return LZ4_Supported(); 29724: case kXpressCompression: 29724: return XPRESS_Supported(); 29724: case kZSTDNotFinalCompression: 29724: return ZSTDNotFinal_Supported(); 29724: case kZSTD: 29724: return ZSTD_Supported(); 29724: default: 29724: 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: false 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "false" 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: return false; 29724: } 29724: } 29724: 29724: inline bool DictCompressionTypeSupported(CompressionType compression_type) { 29724: switch (compression_type) { 29724: case kNoCompression: 29724: return false; 29724: case kSnappyCompression: 29724: return false; 29724: case kZlibCompression: 29724: return Zlib_Supported(); 29724: case kBZip2Compression: 29724: return false; 29724: case kLZ4Compression: 29724: case kLZ4HCCompression: 29724: 29724: return LZ4_Supported(); 29724: 29724: 29724: 29724: case kXpressCompression: 29724: return false; 29724: case kZSTDNotFinalCompression: 29724: 29724: return ZSTDNotFinal_Supported(); 29724: 29724: 29724: 29724: case kZSTD: 29724: 29724: return ZSTD_Supported(); 29724: 29724: 29724: 29724: default: 29724: 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: false 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "false" 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: return false; 29724: } 29724: } 29724: 29724: inline std::string CompressionTypeToString(CompressionType compression_type) { 29724: switch (compression_type) { 29724: case kNoCompression: 29724: return "NoCompression"; 29724: case kSnappyCompression: 29724: return "Snappy"; 29724: case kZlibCompression: 29724: return "Zlib"; 29724: case kBZip2Compression: 29724: return "BZip2"; 29724: case kLZ4Compression: 29724: return "LZ4"; 29724: case kLZ4HCCompression: 29724: return "LZ4HC"; 29724: case kXpressCompression: 29724: return "Xpress"; 29724: case kZSTD: 29724: return "ZSTD"; 29724: case kZSTDNotFinalCompression: 29724: return "ZSTDNotFinal"; 29724: case kDisableCompressionOption: 29724: return "DisableOption"; 29724: default: 29724: 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: false 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "false" 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: return ""; 29724: } 29724: } 29724: 29724: inline std::string CompressionOptionsToString( 29724: CompressionOptions& compression_options) { 29724: std::string result; 29724: result.reserve(512); 29724: result.append("window_bits=") 29724: .append(std::to_string(compression_options.window_bits)) 29724: .append("; "); 29724: result.append("level=") 29724: .append(std::to_string(compression_options.level)) 29724: .append("; "); 29724: result.append("strategy=") 29724: .append(std::to_string(compression_options.strategy)) 29724: .append("; "); 29724: result.append("max_dict_bytes=") 29724: .append(std::to_string(compression_options.max_dict_bytes)) 29724: .append("; "); 29724: result.append("zstd_max_train_bytes=") 29724: .append(std::to_string(compression_options.zstd_max_train_bytes)) 29724: .append("; "); 29724: result.append("enabled=") 29724: .append(std::to_string(compression_options.enabled)) 29724: .append("; "); 29724: result.append("max_dict_buffer_bytes=") 29724: .append(std::to_string(compression_options.max_dict_buffer_bytes)) 29724: .append("; "); 29724: result.append("use_zstd_dict_trainer=") 29724: .append(std::to_string(compression_options.use_zstd_dict_trainer)) 29724: .append("; "); 29724: return result; 29724: } 29724: # 713 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: inline bool Snappy_Compress(const CompressionInfo& , const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: output->resize(snappy::MaxCompressedLength(length)); 29724: size_t outlen; 29724: snappy::RawCompress(input, length, &(*output)[0], &outlen); 29724: output->resize(outlen); 29724: return true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: inline CacheAllocationPtr Snappy_Uncompress( 29724: const char* input, size_t length, size_t* uncompressed_size, 29724: MemoryAllocator* allocator = nullptr) { 29724: 29724: size_t uncompressed_length = 0; 29724: if (!snappy::GetUncompressedLength(input, length, &uncompressed_length)) { 29724: return nullptr; 29724: } 29724: 29724: CacheAllocationPtr output = AllocateBlock(uncompressed_length, allocator); 29724: 29724: if (!snappy::RawUncompress(input, length, output.get())) { 29724: return nullptr; 29724: } 29724: 29724: *uncompressed_size = uncompressed_length; 29724: 29724: return output; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: namespace compression { 29724: 29724: inline size_t PutDecompressedSizeInfo(std::string* output, uint32_t length) { 29724: PutVarint32(output, length); 29724: return output->size(); 29724: } 29724: 29724: inline bool GetDecompressedSizeInfo(const char** input_data, 29724: size_t* input_length, 29724: uint32_t* output_len) { 29724: auto new_input_data = 29724: GetVarint32Ptr(*input_data, *input_data + *input_length, output_len); 29724: if (new_input_data == nullptr) { 29724: return false; 29724: } 29724: *input_length -= (new_input_data - *input_data); 29724: *input_data = new_input_data; 29724: return true; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline bool Zlib_Compress(const CompressionInfo& info, 29724: uint32_t compress_format_version, const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: if (length > std::numeric_limits::max()) { 29724: 29724: return false; 29724: } 29724: 29724: size_t output_header_len = 0; 29724: if (compress_format_version == 2) { 29724: output_header_len = compression::PutDecompressedSizeInfo( 29724: output, static_cast(length)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: static const int memLevel = 8; 29724: int level; 29724: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 29724: level = 29724: # 806 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (-1) 29724: # 806 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: } else { 29724: level = info.options().level; 29724: } 29724: z_stream _stream; 29724: memset(&_stream, 0, sizeof(z_stream)); 29724: int st = 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: deflateInit2_(( 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: &_stream 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ),( 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: level 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ),(8),( 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: info.options().window_bits 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ),( 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: memLevel 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ), ( 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: info.options().strategy 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ), "1.3.1", (int)sizeof(z_stream)) 29724: 29724: # 813 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: if (st != 29724: # 814 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 814 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: return false; 29724: } 29724: 29724: Slice compression_dict = info.dict().GetRawDict(); 29724: if (compression_dict.size()) { 29724: 29724: st = deflateSetDictionary( 29724: &_stream, reinterpret_cast(compression_dict.data()), 29724: static_cast(compression_dict.size())); 29724: if (st != 29724: # 824 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 824 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: deflateEnd(&_stream); 29724: return false; 29724: } 29724: } 29724: 29724: 29724: size_t upper_bound = 29724: deflateBound(&_stream, static_cast(length)); 29724: output->resize(output_header_len + upper_bound); 29724: 29724: 29724: _stream.next_in = (Bytef*)input; 29724: _stream.avail_in = static_cast(length); 29724: 29724: 29724: _stream.avail_out = static_cast(upper_bound); 29724: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 29724: 29724: bool compressed = false; 29724: st = deflate(&_stream, 29724: # 844 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 4 29724: # 844 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ); 29724: if (st == 29724: # 845 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 1 29724: # 845 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: compressed = true; 29724: output->resize(output->size() - _stream.avail_out); 29724: } 29724: 29724: 29724: 29724: 29724: deflateEnd(&_stream); 29724: return compressed; 29724: # 863 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline CacheAllocationPtr Zlib_Uncompress( 29724: const UncompressionInfo& info, const char* input_data, size_t input_length, 29724: size_t* uncompressed_size, uint32_t compress_format_version, 29724: MemoryAllocator* allocator = nullptr, int windowBits = -14) { 29724: 29724: uint32_t output_len = 0; 29724: if (compress_format_version == 2) { 29724: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29724: &output_len)) { 29724: return nullptr; 29724: } 29724: } else { 29724: 29724: 29724: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 29724: output_len = static_cast( 29724: std::min(proposed_output_len, 29724: static_cast(std::numeric_limits::max()))); 29724: } 29724: 29724: z_stream _stream; 29724: memset(&_stream, 0, sizeof(z_stream)); 29724: 29724: 29724: 29724: 29724: int st = 29724: 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: inflateInit2_(( 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: &_stream 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ), ( 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: windowBits > 0 ? windowBits + 32 : windowBits 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ), "1.3.1", (int)sizeof(z_stream)) 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: if (st != 29724: # 899 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 899 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: return nullptr; 29724: } 29724: 29724: const Slice& compression_dict = info.dict().GetRawDict(); 29724: if (compression_dict.size()) { 29724: 29724: st = inflateSetDictionary( 29724: &_stream, reinterpret_cast(compression_dict.data()), 29724: static_cast(compression_dict.size())); 29724: if (st != 29724: # 909 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 909 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: return nullptr; 29724: } 29724: } 29724: 29724: _stream.next_in = (Bytef*)input_data; 29724: _stream.avail_in = static_cast(input_length); 29724: 29724: auto output = AllocateBlock(output_len, allocator); 29724: 29724: _stream.next_out = (Bytef*)output.get(); 29724: _stream.avail_out = static_cast(output_len); 29724: 29724: bool done = false; 29724: while (!done) { 29724: st = inflate(&_stream, 29724: # 924 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 2 29724: # 924 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ); 29724: switch (st) { 29724: case 29724: # 926 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 1 29724: # 926 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: : 29724: done = true; 29724: break; 29724: case 29724: # 929 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 929 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: : { 29724: 29724: 29724: 29724: 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: compress_format_version != 2 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "compress_format_version != 2" 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: size_t old_sz = output_len; 29724: uint32_t output_len_delta = output_len / 5; 29724: output_len += output_len_delta < 10 ? 10 : output_len_delta; 29724: auto tmp = AllocateBlock(output_len, allocator); 29724: memcpy(tmp.get(), output.get(), old_sz); 29724: output = std::move(tmp); 29724: 29724: 29724: _stream.next_out = (Bytef*)(output.get() + old_sz); 29724: _stream.avail_out = static_cast(output_len - old_sz); 29724: break; 29724: } 29724: case 29724: # 946 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (-5) 29724: # 946 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: : 29724: default: 29724: inflateEnd(&_stream); 29724: return nullptr; 29724: } 29724: } 29724: 29724: 29724: 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: compress_format_version != 2 || _stream.avail_out == 0 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "compress_format_version != 2 || _stream.avail_out == 0" 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: output_len >= _stream.avail_out 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "output_len >= _stream.avail_out" 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: *uncompressed_size = output_len - _stream.avail_out; 29724: inflateEnd(&_stream); 29724: return output; 29724: # 969 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: inline bool BZip2_Compress(const CompressionInfo& , 29724: uint32_t compress_format_version, const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: if (length > std::numeric_limits::max()) { 29724: 29724: return false; 29724: } 29724: size_t output_header_len = 0; 29724: if (compress_format_version == 2) { 29724: output_header_len = compression::PutDecompressedSizeInfo( 29724: output, static_cast(length)); 29724: } 29724: 29724: 29724: output->resize(output_header_len + length); 29724: 29724: bz_stream _stream; 29724: memset(&_stream, 0, sizeof(bz_stream)); 29724: 29724: 29724: 29724: 29724: int st = BZ2_bzCompressInit(&_stream, 1, 0, 30); 29724: if (st != 29724: # 999 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 999 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: return false; 29724: } 29724: 29724: 29724: _stream.next_in = (char*)input; 29724: _stream.avail_in = static_cast(length); 29724: 29724: 29724: _stream.avail_out = static_cast(length); 29724: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 29724: 29724: bool compressed = false; 29724: st = BZ2_bzCompress(&_stream, 29724: # 1012 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 2 29724: # 1012 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ); 29724: if (st == 29724: # 1013 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 4 29724: # 1013 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: compressed = true; 29724: output->resize(output->size() - _stream.avail_out); 29724: } 29724: 29724: 29724: 29724: 29724: BZ2_bzCompressEnd(&_stream); 29724: return compressed; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: inline CacheAllocationPtr BZip2_Uncompress( 29724: const char* input_data, size_t input_length, size_t* uncompressed_size, 29724: uint32_t compress_format_version, MemoryAllocator* allocator = nullptr) { 29724: 29724: uint32_t output_len = 0; 29724: if (compress_format_version == 2) { 29724: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29724: &output_len)) { 29724: return nullptr; 29724: } 29724: } else { 29724: 29724: 29724: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 29724: output_len = static_cast( 29724: std::min(proposed_output_len, 29724: static_cast(std::numeric_limits::max()))); 29724: } 29724: 29724: bz_stream _stream; 29724: memset(&_stream, 0, sizeof(bz_stream)); 29724: 29724: int st = BZ2_bzDecompressInit(&_stream, 0, 0); 29724: if (st != 29724: # 1059 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 1059 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: return nullptr; 29724: } 29724: 29724: _stream.next_in = (char*)input_data; 29724: _stream.avail_in = static_cast(input_length); 29724: 29724: auto output = AllocateBlock(output_len, allocator); 29724: 29724: _stream.next_out = (char*)output.get(); 29724: _stream.avail_out = static_cast(output_len); 29724: 29724: bool done = false; 29724: while (!done) { 29724: st = BZ2_bzDecompress(&_stream); 29724: switch (st) { 29724: case 29724: # 1075 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 4 29724: # 1075 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: : 29724: done = true; 29724: break; 29724: case 29724: # 1078 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 1078 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: : { 29724: 29724: 29724: 29724: 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: compress_format_version != 2 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "compress_format_version != 2" 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: uint32_t old_sz = output_len; 29724: output_len = output_len * 1.2; 29724: auto tmp = AllocateBlock(output_len, allocator); 29724: memcpy(tmp.get(), output.get(), old_sz); 29724: output = std::move(tmp); 29724: 29724: 29724: _stream.next_out = (char*)(output.get() + old_sz); 29724: _stream.avail_out = static_cast(output_len - old_sz); 29724: break; 29724: } 29724: default: 29724: BZ2_bzDecompressEnd(&_stream); 29724: return nullptr; 29724: } 29724: } 29724: 29724: 29724: 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: compress_format_version != 2 || _stream.avail_out == 0 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "compress_format_version != 2 || _stream.avail_out == 0" 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: output_len >= _stream.avail_out 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "output_len >= _stream.avail_out" 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: *uncompressed_size = output_len - _stream.avail_out; 29724: BZ2_bzDecompressEnd(&_stream); 29724: return output; 29724: # 1114 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline bool LZ4_Compress(const CompressionInfo& info, 29724: uint32_t compress_format_version, const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: if (length > std::numeric_limits::max()) { 29724: 29724: return false; 29724: } 29724: 29724: size_t output_header_len = 0; 29724: if (compress_format_version == 2) { 29724: 29724: output_header_len = compression::PutDecompressedSizeInfo( 29724: output, static_cast(length)); 29724: } else { 29724: 29724: 29724: output_header_len = 8; 29724: output->resize(output_header_len); 29724: char* p = const_cast(output->c_str()); 29724: memcpy(p, &length, sizeof(length)); 29724: } 29724: int compress_bound = LZ4_compressBound(static_cast(length)); 29724: output->resize(static_cast(output_header_len + compress_bound)); 29724: 29724: int outlen; 29724: 29724: LZ4_stream_t* stream = LZ4_createStream(); 29724: Slice compression_dict = info.dict().GetRawDict(); 29724: if (compression_dict.size()) { 29724: LZ4_loadDict(stream, compression_dict.data(), 29724: static_cast(compression_dict.size())); 29724: } 29724: 29724: int acceleration; 29724: if (info.options().level < 0) { 29724: acceleration = -info.options().level; 29724: } else { 29724: acceleration = 1; 29724: } 29724: outlen = LZ4_compress_fast_continue( 29724: stream, input, &(*output)[output_header_len], static_cast(length), 29724: compress_bound, acceleration); 29724: 29724: 29724: 29724: 29724: 29724: LZ4_freeStream(stream); 29724: 29724: 29724: 29724: 29724: 29724: if (outlen == 0) { 29724: return false; 29724: } 29724: output->resize(static_cast(output_header_len + outlen)); 29724: return true; 29724: # 1189 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline CacheAllocationPtr LZ4_Uncompress(const UncompressionInfo& info, 29724: const char* input_data, 29724: size_t input_length, 29724: size_t* uncompressed_size, 29724: uint32_t compress_format_version, 29724: MemoryAllocator* allocator = nullptr) { 29724: 29724: uint32_t output_len = 0; 29724: if (compress_format_version == 2) { 29724: 29724: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29724: &output_len)) { 29724: return nullptr; 29724: } 29724: } else { 29724: 29724: 29724: if (input_length < 8) { 29724: return nullptr; 29724: } 29724: if (port::kLittleEndian) { 29724: memcpy(&output_len, input_data, sizeof(output_len)); 29724: } else { 29724: memcpy(&output_len, input_data + 4, sizeof(output_len)); 29724: } 29724: input_length -= 8; 29724: input_data += 8; 29724: } 29724: 29724: auto output = AllocateBlock(output_len, allocator); 29724: 29724: int decompress_bytes = 0; 29724: 29724: 29724: LZ4_streamDecode_t* stream = LZ4_createStreamDecode(); 29724: const Slice& compression_dict = info.dict().GetRawDict(); 29724: if (compression_dict.size()) { 29724: LZ4_setStreamDecode(stream, compression_dict.data(), 29724: static_cast(compression_dict.size())); 29724: } 29724: decompress_bytes = LZ4_decompress_safe_continue( 29724: stream, input_data, output.get(), static_cast(input_length), 29724: static_cast(output_len)); 29724: LZ4_freeStreamDecode(stream); 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (decompress_bytes < 0) { 29724: return nullptr; 29724: } 29724: 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: decompress_bytes == static_cast(output_len) 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "decompress_bytes == static_cast(output_len)" 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: *uncompressed_size = decompress_bytes; 29724: return output; 29724: # 1262 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline bool LZ4HC_Compress(const CompressionInfo& info, 29724: uint32_t compress_format_version, const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: if (length > std::numeric_limits::max()) { 29724: 29724: return false; 29724: } 29724: 29724: size_t output_header_len = 0; 29724: if (compress_format_version == 2) { 29724: 29724: output_header_len = compression::PutDecompressedSizeInfo( 29724: output, static_cast(length)); 29724: } else { 29724: 29724: 29724: output_header_len = 8; 29724: output->resize(output_header_len); 29724: char* p = const_cast(output->c_str()); 29724: memcpy(p, &length, sizeof(length)); 29724: } 29724: int compress_bound = LZ4_compressBound(static_cast(length)); 29724: output->resize(static_cast(output_header_len + compress_bound)); 29724: 29724: int outlen; 29724: int level; 29724: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 29724: level = 0; 29724: } else { 29724: level = info.options().level; 29724: } 29724: 29724: LZ4_streamHC_t* stream = LZ4_createStreamHC(); 29724: LZ4_resetStreamHC(stream, level); 29724: Slice compression_dict = info.dict().GetRawDict(); 29724: const char* compression_dict_data = 29724: compression_dict.size() > 0 ? compression_dict.data() : nullptr; 29724: size_t compression_dict_size = compression_dict.size(); 29724: if (compression_dict_data != nullptr) { 29724: LZ4_loadDictHC(stream, compression_dict_data, 29724: static_cast(compression_dict_size)); 29724: } 29724: 29724: 29724: outlen = 29724: LZ4_compress_HC_continue(stream, input, &(*output)[output_header_len], 29724: static_cast(length), compress_bound); 29724: 29724: 29724: 29724: 29724: 29724: LZ4_freeStreamHC(stream); 29724: # 1335 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: if (outlen == 0) { 29724: return false; 29724: } 29724: output->resize(static_cast(output_header_len + outlen)); 29724: return true; 29724: # 1348 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline bool XPRESS_Compress(const char* , size_t , 29724: std::string* ) { 29724: return false; 29724: } 29724: # 1368 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: inline char* XPRESS_Uncompress(const char* , 29724: size_t , 29724: size_t* ) { 29724: return nullptr; 29724: } 29724: 29724: 29724: inline bool ZSTD_Compress(const CompressionInfo& info, const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: if (length > std::numeric_limits::max()) { 29724: 29724: return false; 29724: } 29724: 29724: size_t output_header_len = compression::PutDecompressedSizeInfo( 29724: output, static_cast(length)); 29724: 29724: size_t compressBound = ZSTD_compressBound(length); 29724: output->resize(static_cast(output_header_len + compressBound)); 29724: size_t outlen = 0; 29724: 29724: ZSTD_CCtx* context = info.context().ZSTDPreallocCtx(); 29724: 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: context != nullptr 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "context != nullptr" 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: 29724: if (info.dict().GetDigestedZstdCDict() != nullptr) { 29724: ZSTD_CCtx_refCDict(context, info.dict().GetDigestedZstdCDict()); 29724: } else { 29724: ZSTD_CCtx_loadDictionary(context, info.dict().GetRawDict().data(), 29724: info.dict().GetRawDict().size()); 29724: } 29724: 29724: 29724: outlen = ZSTD_compress2(context, &(*output)[output_header_len], compressBound, 29724: input, length); 29724: # 1431 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: if (outlen == 0) { 29724: return false; 29724: } 29724: output->resize(output_header_len + outlen); 29724: return true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline CacheAllocationPtr ZSTD_Uncompress( 29724: const UncompressionInfo& info, const char* input_data, size_t input_length, 29724: size_t* uncompressed_size, MemoryAllocator* allocator = nullptr, 29724: const char** error_message = nullptr) { 29724: 29724: static const char* const kErrorDecodeOutputSize = 29724: "Cannot decode output size."; 29724: static const char* const kErrorOutputLenMismatch = 29724: "Decompressed size does not match header."; 29724: uint32_t output_len = 0; 29724: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29724: &output_len)) { 29724: if (error_message) { 29724: *error_message = kErrorDecodeOutputSize; 29724: } 29724: return nullptr; 29724: } 29724: 29724: CacheAllocationPtr output = AllocateBlock(output_len, allocator); 29724: size_t actual_output_length = 0; 29724: 29724: ZSTD_DCtx* context = info.context().GetZSTDContext(); 29724: 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: context != nullptr 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "context != nullptr" 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: actual_output_length = ZSTD_decompress_usingDict( 29724: context, output.get(), output_len, input_data, input_length, 29724: info.dict().GetRawDict().data(), info.dict().GetRawDict().size()); 29724: # 1491 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: if (ZSTD_isError(actual_output_length)) { 29724: if (error_message) { 29724: *error_message = ZSTD_getErrorName(actual_output_length); 29724: } 29724: return nullptr; 29724: } else if (actual_output_length != output_len) { 29724: if (error_message) { 29724: *error_message = kErrorOutputLenMismatch; 29724: } 29724: return nullptr; 29724: } 29724: 29724: *uncompressed_size = actual_output_length; 29724: return output; 29724: # 1514 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: inline bool ZSTD_TrainDictionarySupported() { 29724: 29724: 29724: 29724: 29724: return (ZSTD_versionNumber() >= 10103); 29724: 29724: 29724: 29724: } 29724: 29724: inline std::string ZSTD_TrainDictionary(const std::string& samples, 29724: const std::vector& sample_lens, 29724: size_t max_dict_bytes) { 29724: 29724: 29724: 29724: 29724: 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: samples.empty() == sample_lens.empty() 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "samples.empty() == sample_lens.empty()" 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: if (samples.empty()) { 29724: return ""; 29724: } 29724: std::string dict_data(max_dict_bytes, '\0'); 29724: size_t dict_len = ZDICT_trainFromBuffer( 29724: &dict_data[0], max_dict_bytes, &samples[0], &sample_lens[0], 29724: static_cast(sample_lens.size())); 29724: if (ZDICT_isError(dict_len)) { 29724: return ""; 29724: } 29724: 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: dict_len <= max_dict_bytes 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "dict_len <= max_dict_bytes" 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: dict_data.resize(dict_len); 29724: return dict_data; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: inline std::string ZSTD_TrainDictionary(const std::string& samples, 29724: size_t sample_len_shift, 29724: size_t max_dict_bytes) { 29724: 29724: 29724: 29724: 29724: size_t num_samples = samples.size() >> sample_len_shift; 29724: std::vector sample_lens(num_samples, size_t(1) << sample_len_shift); 29724: return ZSTD_TrainDictionary(samples, sample_lens, max_dict_bytes); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: inline bool ZSTD_FinalizeDictionarySupported() { 29724: 29724: 29724: return (ZSTD_versionNumber() >= 10405); 29724: 29724: 29724: 29724: } 29724: 29724: inline std::string ZSTD_FinalizeDictionary( 29724: const std::string& samples, const std::vector& sample_lens, 29724: size_t max_dict_bytes, int level) { 29724: 29724: 29724: 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: samples.empty() == sample_lens.empty() 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "samples.empty() == sample_lens.empty()" 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: if (samples.empty()) { 29724: return ""; 29724: } 29724: if (level == CompressionOptions::kDefaultCompressionLevel) { 29724: 29724: 29724: level = 3; 29724: } 29724: std::string dict_data(max_dict_bytes, '\0'); 29724: size_t dict_len = ZDICT_finalizeDictionary( 29724: dict_data.data(), max_dict_bytes, samples.data(), 29724: std::min(static_cast(samples.size()), max_dict_bytes), 29724: samples.data(), sample_lens.data(), 29724: static_cast(sample_lens.size()), 29724: {level, 0 , 0 }); 29724: if (ZDICT_isError(dict_len)) { 29724: return ""; 29724: } else { 29724: 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: dict_len <= max_dict_bytes 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "dict_len <= max_dict_bytes" 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: dict_data.resize(dict_len); 29724: return dict_data; 29724: } 29724: # 1621 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: inline bool CompressData(const Slice& raw, 29724: const CompressionInfo& compression_info, 29724: uint32_t compress_format_version, 29724: std::string* compressed_output) { 29724: bool ret = false; 29724: 29724: 29724: 29724: switch (compression_info.type()) { 29724: case kSnappyCompression: 29724: ret = Snappy_Compress(compression_info, raw.data(), raw.size(), 29724: compressed_output); 29724: break; 29724: case kZlibCompression: 29724: ret = Zlib_Compress(compression_info, compress_format_version, raw.data(), 29724: raw.size(), compressed_output); 29724: break; 29724: case kBZip2Compression: 29724: ret = BZip2_Compress(compression_info, compress_format_version, 29724: raw.data(), raw.size(), compressed_output); 29724: break; 29724: case kLZ4Compression: 29724: ret = LZ4_Compress(compression_info, compress_format_version, raw.data(), 29724: raw.size(), compressed_output); 29724: break; 29724: case kLZ4HCCompression: 29724: ret = LZ4HC_Compress(compression_info, compress_format_version, 29724: raw.data(), raw.size(), compressed_output); 29724: break; 29724: case kXpressCompression: 29724: ret = XPRESS_Compress(raw.data(), raw.size(), compressed_output); 29724: break; 29724: case kZSTD: 29724: case kZSTDNotFinalCompression: 29724: ret = ZSTD_Compress(compression_info, raw.data(), raw.size(), 29724: compressed_output); 29724: break; 29724: default: 29724: 29724: break; 29724: } 29724: 29724: rocksdb::SyncPoint::GetInstance()->Process("CompressData:TamperWithReturnValue", static_cast(&ret)) 29724: ; 29724: 29724: return ret; 29724: } 29724: 29724: inline CacheAllocationPtr UncompressData( 29724: const UncompressionInfo& uncompression_info, const char* data, size_t n, 29724: size_t* uncompressed_size, uint32_t compress_format_version, 29724: MemoryAllocator* allocator = nullptr, 29724: const char** error_message = nullptr) { 29724: switch (uncompression_info.type()) { 29724: case kSnappyCompression: 29724: return Snappy_Uncompress(data, n, uncompressed_size, allocator); 29724: case kZlibCompression: 29724: return Zlib_Uncompress(uncompression_info, data, n, uncompressed_size, 29724: compress_format_version, allocator); 29724: case kBZip2Compression: 29724: return BZip2_Uncompress(data, n, uncompressed_size, 29724: compress_format_version, allocator); 29724: case kLZ4Compression: 29724: case kLZ4HCCompression: 29724: return LZ4_Uncompress(uncompression_info, data, n, uncompressed_size, 29724: compress_format_version, allocator); 29724: case kXpressCompression: 29724: 29724: 29724: return CacheAllocationPtr(XPRESS_Uncompress(data, n, uncompressed_size)); 29724: case kZSTD: 29724: case kZSTDNotFinalCompression: 29724: 29724: return ZSTD_Uncompress(uncompression_info, data, n, uncompressed_size, 29724: allocator, error_message); 29724: default: 29724: return CacheAllocationPtr(); 29724: } 29724: } 29724: 29724: 29724: class CompressionTypeRecord { 29724: public: 29724: explicit CompressionTypeRecord(CompressionType compression_type) 29724: : compression_type_(compression_type) {} 29724: 29724: CompressionType GetCompressionType() const { return compression_type_; } 29724: 29724: inline void EncodeTo(std::string* dst) const { 29724: 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: dst != nullptr 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "dst != nullptr" 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: PutFixed32(dst, compression_type_); 29724: } 29724: 29724: inline Status DecodeFrom(Slice* src) { 29724: constexpr char class_name[] = "CompressionTypeRecord"; 29724: 29724: uint32_t val; 29724: if (!GetFixed32(src, &val)) { 29724: return Status::Corruption(class_name, 29724: "Error decoding WAL compression type"); 29724: } 29724: CompressionType compression_type = static_cast(val); 29724: if (!StreamingCompressionTypeSupported(compression_type)) { 29724: return Status::Corruption(class_name, 29724: "WAL compression type not supported"); 29724: } 29724: compression_type_ = compression_type; 29724: return Status::OK(); 29724: } 29724: 29724: inline std::string DebugString() const { 29724: return "compression_type: " + CompressionTypeToString(compression_type_); 29724: } 29724: 29724: private: 29724: CompressionType compression_type_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class StreamingCompress { 29724: public: 29724: StreamingCompress(CompressionType compression_type, 29724: const CompressionOptions& opts, 29724: uint32_t compress_format_version, size_t max_output_len) 29724: : compression_type_(compression_type), 29724: opts_(opts), 29724: compress_format_version_(compress_format_version), 29724: max_output_len_(max_output_len) {} 29724: virtual ~StreamingCompress() = default; 29724: # 1767 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: virtual int Compress(const char* input, size_t input_size, char* output, 29724: size_t* output_pos) = 0; 29724: 29724: 29724: static StreamingCompress* Create(CompressionType compression_type, 29724: const CompressionOptions& opts, 29724: uint32_t compress_format_version, 29724: size_t max_output_len); 29724: virtual void Reset() = 0; 29724: 29724: protected: 29724: const CompressionType compression_type_; 29724: const CompressionOptions opts_; 29724: const uint32_t compress_format_version_; 29724: const size_t max_output_len_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class StreamingUncompress { 29724: public: 29724: StreamingUncompress(CompressionType compression_type, 29724: uint32_t compress_format_version, size_t max_output_len) 29724: : compression_type_(compression_type), 29724: compress_format_version_(compress_format_version), 29724: max_output_len_(max_output_len) {} 29724: virtual ~StreamingUncompress() = default; 29724: # 1810 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: virtual int Uncompress(const char* input, size_t input_size, char* output, 29724: size_t* output_pos) = 0; 29724: static StreamingUncompress* Create(CompressionType compression_type, 29724: uint32_t compress_format_version, 29724: size_t max_output_len); 29724: virtual void Reset() = 0; 29724: 29724: protected: 29724: CompressionType compression_type_; 29724: uint32_t compress_format_version_; 29724: size_t max_output_len_; 29724: }; 29724: 29724: class ZSTDStreamingCompress final : public StreamingCompress { 29724: public: 29724: explicit ZSTDStreamingCompress(const CompressionOptions& opts, 29724: uint32_t compress_format_version, 29724: size_t max_output_len) 29724: : StreamingCompress(kZSTD, opts, compress_format_version, 29724: max_output_len) { 29724: 29724: cctx_ = ZSTD_createCCtx(); 29724: 29724: ZSTD_CCtx_setParameter(cctx_, ZSTD_c_checksumFlag, 1); 29724: 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: cctx_ != nullptr 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "cctx_ != nullptr" 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: input_buffer_ = { nullptr, 0, 0}; 29724: 29724: } 29724: ~ZSTDStreamingCompress() override { 29724: 29724: ZSTD_freeCCtx(cctx_); 29724: 29724: } 29724: int Compress(const char* input, size_t input_size, char* output, 29724: size_t* output_pos) override; 29724: void Reset() override; 29724: 29724: ZSTD_CCtx* cctx_; 29724: ZSTD_inBuffer input_buffer_; 29724: 29724: }; 29724: 29724: class ZSTDStreamingUncompress final : public StreamingUncompress { 29724: public: 29724: explicit ZSTDStreamingUncompress(uint32_t compress_format_version, 29724: size_t max_output_len) 29724: : StreamingUncompress(kZSTD, compress_format_version, max_output_len) { 29724: 29724: dctx_ = ZSTD_createDCtx(); 29724: 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: dctx_ != nullptr 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "dctx_ != nullptr" 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: input_buffer_ = { nullptr, 0, 0}; 29724: 29724: } 29724: ~ZSTDStreamingUncompress() override { 29724: 29724: ZSTD_freeDCtx(dctx_); 29724: 29724: } 29724: int Uncompress(const char* input, size_t input_size, char* output, 29724: size_t* output_size) override; 29724: void Reset() override; 29724: 29724: private: 29724: 29724: ZSTD_DCtx* dctx_; 29724: ZSTD_inBuffer input_buffer_; 29724: 29724: }; 29724: 29724: } 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: struct ImmutableCFOptions { 29724: public: 29724: static const char* kName() { return "ImmutableCFOptions"; } 29724: explicit ImmutableCFOptions(); 29724: explicit ImmutableCFOptions(const ColumnFamilyOptions& cf_options); 29724: 29724: CompactionStyle compaction_style; 29724: 29724: CompactionPri compaction_pri; 29724: 29724: const Comparator* user_comparator; 29724: InternalKeyComparator internal_comparator; 29724: 29724: std::shared_ptr merge_operator; 29724: 29724: const CompactionFilter* compaction_filter; 29724: 29724: std::shared_ptr compaction_filter_factory; 29724: 29724: int min_write_buffer_number_to_merge; 29724: 29724: int max_write_buffer_number_to_maintain; 29724: 29724: int64_t max_write_buffer_size_to_maintain; 29724: 29724: bool inplace_update_support; 29724: 29724: UpdateStatus (*inplace_callback)(char* existing_value, 29724: uint32_t* existing_value_size, 29724: Slice delta_value, 29724: std::string* merged_value); 29724: 29724: std::shared_ptr memtable_factory; 29724: 29724: Options::TablePropertiesCollectorFactories 29724: table_properties_collector_factories; 29724: 29724: 29724: 29724: uint32_t bloom_locality; 29724: 29724: bool level_compaction_dynamic_level_bytes; 29724: 29724: int num_levels; 29724: 29724: bool optimize_filters_for_hits; 29724: 29724: bool force_consistency_checks; 29724: 29724: Temperature default_temperature; 29724: 29724: std::shared_ptr 29724: memtable_insert_with_hint_prefix_extractor; 29724: 29724: std::vector cf_paths; 29724: 29724: std::shared_ptr compaction_thread_limiter; 29724: 29724: std::shared_ptr sst_partitioner_factory; 29724: 29724: std::shared_ptr blob_cache; 29724: 29724: bool persist_user_defined_timestamps; 29724: }; 29724: 29724: struct ImmutableOptions : public ImmutableDBOptions, public ImmutableCFOptions { 29724: explicit ImmutableOptions(); 29724: explicit ImmutableOptions(const Options& options); 29724: 29724: ImmutableOptions(const DBOptions& db_options, 29724: const ColumnFamilyOptions& cf_options); 29724: 29724: ImmutableOptions(const ImmutableDBOptions& db_options, 29724: const ImmutableCFOptions& cf_options); 29724: 29724: ImmutableOptions(const DBOptions& db_options, 29724: const ImmutableCFOptions& cf_options); 29724: 29724: ImmutableOptions(const ImmutableDBOptions& db_options, 29724: const ColumnFamilyOptions& cf_options); 29724: }; 29724: 29724: struct MutableCFOptions { 29724: static const char* kName() { return "MutableCFOptions"; } 29724: explicit MutableCFOptions(const ColumnFamilyOptions& options) 29724: : write_buffer_size(options.write_buffer_size), 29724: max_write_buffer_number(options.max_write_buffer_number), 29724: arena_block_size(options.arena_block_size), 29724: memtable_prefix_bloom_size_ratio( 29724: options.memtable_prefix_bloom_size_ratio), 29724: memtable_whole_key_filtering(options.memtable_whole_key_filtering), 29724: memtable_huge_page_size(options.memtable_huge_page_size), 29724: max_successive_merges(options.max_successive_merges), 29724: strict_max_successive_merges(options.strict_max_successive_merges), 29724: inplace_update_num_locks(options.inplace_update_num_locks), 29724: prefix_extractor(options.prefix_extractor), 29724: experimental_mempurge_threshold( 29724: options.experimental_mempurge_threshold), 29724: disable_auto_compactions(options.disable_auto_compactions), 29724: table_factory(options.table_factory), 29724: soft_pending_compaction_bytes_limit( 29724: options.soft_pending_compaction_bytes_limit), 29724: hard_pending_compaction_bytes_limit( 29724: options.hard_pending_compaction_bytes_limit), 29724: level0_file_num_compaction_trigger( 29724: options.level0_file_num_compaction_trigger), 29724: level0_slowdown_writes_trigger(options.level0_slowdown_writes_trigger), 29724: level0_stop_writes_trigger(options.level0_stop_writes_trigger), 29724: max_compaction_bytes(options.max_compaction_bytes), 29724: target_file_size_base(options.target_file_size_base), 29724: target_file_size_multiplier(options.target_file_size_multiplier), 29724: max_bytes_for_level_base(options.max_bytes_for_level_base), 29724: max_bytes_for_level_multiplier(options.max_bytes_for_level_multiplier), 29724: ttl(options.ttl), 29724: periodic_compaction_seconds(options.periodic_compaction_seconds), 29724: max_bytes_for_level_multiplier_additional( 29724: options.max_bytes_for_level_multiplier_additional), 29724: compaction_options_fifo(options.compaction_options_fifo), 29724: compaction_options_universal(options.compaction_options_universal), 29724: preclude_last_level_data_seconds( 29724: options.preclude_last_level_data_seconds), 29724: preserve_internal_time_seconds(options.preserve_internal_time_seconds), 29724: enable_blob_files(options.enable_blob_files), 29724: min_blob_size(options.min_blob_size), 29724: blob_file_size(options.blob_file_size), 29724: blob_compression_type(options.blob_compression_type), 29724: enable_blob_garbage_collection(options.enable_blob_garbage_collection), 29724: blob_garbage_collection_age_cutoff( 29724: options.blob_garbage_collection_age_cutoff), 29724: blob_garbage_collection_force_threshold( 29724: options.blob_garbage_collection_force_threshold), 29724: blob_compaction_readahead_size(options.blob_compaction_readahead_size), 29724: blob_file_starting_level(options.blob_file_starting_level), 29724: prepopulate_blob_cache(options.prepopulate_blob_cache), 29724: max_sequential_skip_in_iterations( 29724: options.max_sequential_skip_in_iterations), 29724: paranoid_file_checks(options.paranoid_file_checks), 29724: report_bg_io_stats(options.report_bg_io_stats), 29724: compression(options.compression), 29724: bottommost_compression(options.bottommost_compression), 29724: compression_opts(options.compression_opts), 29724: bottommost_compression_opts(options.bottommost_compression_opts), 29724: last_level_temperature(options.last_level_temperature), 29724: default_write_temperature(options.default_write_temperature), 29724: memtable_protection_bytes_per_key( 29724: options.memtable_protection_bytes_per_key), 29724: block_protection_bytes_per_key(options.block_protection_bytes_per_key), 29724: paranoid_memory_checks(options.paranoid_memory_checks), 29724: sample_for_compression( 29724: options.sample_for_compression), 29724: compression_per_level(options.compression_per_level), 29724: memtable_max_range_deletions(options.memtable_max_range_deletions), 29724: bottommost_file_compaction_delay( 29724: options.bottommost_file_compaction_delay), 29724: uncache_aggressiveness(options.uncache_aggressiveness) { 29724: RefreshDerivedOptions(options.num_levels, options.compaction_style); 29724: } 29724: 29724: MutableCFOptions() 29724: : write_buffer_size(0), 29724: max_write_buffer_number(0), 29724: arena_block_size(0), 29724: memtable_prefix_bloom_size_ratio(0), 29724: memtable_whole_key_filtering(false), 29724: memtable_huge_page_size(0), 29724: max_successive_merges(0), 29724: strict_max_successive_merges(false), 29724: inplace_update_num_locks(0), 29724: prefix_extractor(nullptr), 29724: experimental_mempurge_threshold(0.0), 29724: disable_auto_compactions(false), 29724: soft_pending_compaction_bytes_limit(0), 29724: hard_pending_compaction_bytes_limit(0), 29724: level0_file_num_compaction_trigger(0), 29724: level0_slowdown_writes_trigger(0), 29724: level0_stop_writes_trigger(0), 29724: max_compaction_bytes(0), 29724: target_file_size_base(0), 29724: target_file_size_multiplier(0), 29724: max_bytes_for_level_base(0), 29724: max_bytes_for_level_multiplier(0), 29724: ttl(0), 29724: periodic_compaction_seconds(0), 29724: compaction_options_fifo(), 29724: preclude_last_level_data_seconds(0), 29724: preserve_internal_time_seconds(0), 29724: enable_blob_files(false), 29724: min_blob_size(0), 29724: blob_file_size(0), 29724: blob_compression_type(kNoCompression), 29724: enable_blob_garbage_collection(false), 29724: blob_garbage_collection_age_cutoff(0.0), 29724: blob_garbage_collection_force_threshold(0.0), 29724: blob_compaction_readahead_size(0), 29724: blob_file_starting_level(0), 29724: prepopulate_blob_cache(PrepopulateBlobCache::kDisable), 29724: max_sequential_skip_in_iterations(0), 29724: paranoid_file_checks(false), 29724: report_bg_io_stats(false), 29724: compression(Snappy_Supported() ? kSnappyCompression : kNoCompression), 29724: bottommost_compression(kDisableCompressionOption), 29724: last_level_temperature(Temperature::kUnknown), 29724: default_write_temperature(Temperature::kUnknown), 29724: memtable_protection_bytes_per_key(0), 29724: block_protection_bytes_per_key(0), 29724: paranoid_memory_checks(false), 29724: sample_for_compression(0), 29724: memtable_max_range_deletions(0), 29724: bottommost_file_compaction_delay(0), 29724: uncache_aggressiveness(0) {} 29724: 29724: explicit MutableCFOptions(const Options& options); 29724: 29724: 29724: void RefreshDerivedOptions(int num_levels, CompactionStyle compaction_style); 29724: 29724: void RefreshDerivedOptions(const ImmutableCFOptions& ioptions) { 29724: RefreshDerivedOptions(ioptions.num_levels, ioptions.compaction_style); 29724: } 29724: 29724: int MaxBytesMultiplerAdditional(int level) const { 29724: if (level >= 29724: static_cast(max_bytes_for_level_multiplier_additional.size())) { 29724: return 1; 29724: } 29724: return max_bytes_for_level_multiplier_additional[level]; 29724: } 29724: 29724: void Dump(Logger* log) const; 29724: 29724: 29724: size_t write_buffer_size; 29724: int max_write_buffer_number; 29724: size_t arena_block_size; 29724: double memtable_prefix_bloom_size_ratio; 29724: bool memtable_whole_key_filtering; 29724: size_t memtable_huge_page_size; 29724: size_t max_successive_merges; 29724: bool strict_max_successive_merges; 29724: size_t inplace_update_num_locks; 29724: 29724: 29724: 29724: std::shared_ptr prefix_extractor; 29724: # 281 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 29724: double experimental_mempurge_threshold; 29724: 29724: 29724: bool disable_auto_compactions; 29724: std::shared_ptr table_factory; 29724: uint64_t soft_pending_compaction_bytes_limit; 29724: uint64_t hard_pending_compaction_bytes_limit; 29724: int level0_file_num_compaction_trigger; 29724: int level0_slowdown_writes_trigger; 29724: int level0_stop_writes_trigger; 29724: uint64_t max_compaction_bytes; 29724: uint64_t target_file_size_base; 29724: int target_file_size_multiplier; 29724: uint64_t max_bytes_for_level_base; 29724: double max_bytes_for_level_multiplier; 29724: uint64_t ttl; 29724: uint64_t periodic_compaction_seconds; 29724: std::vector max_bytes_for_level_multiplier_additional; 29724: CompactionOptionsFIFO compaction_options_fifo; 29724: CompactionOptionsUniversal compaction_options_universal; 29724: uint64_t preclude_last_level_data_seconds; 29724: uint64_t preserve_internal_time_seconds; 29724: 29724: 29724: bool enable_blob_files; 29724: uint64_t min_blob_size; 29724: uint64_t blob_file_size; 29724: CompressionType blob_compression_type; 29724: bool enable_blob_garbage_collection; 29724: double blob_garbage_collection_age_cutoff; 29724: double blob_garbage_collection_force_threshold; 29724: uint64_t blob_compaction_readahead_size; 29724: int blob_file_starting_level; 29724: PrepopulateBlobCache prepopulate_blob_cache; 29724: 29724: 29724: uint64_t max_sequential_skip_in_iterations; 29724: bool paranoid_file_checks; 29724: bool report_bg_io_stats; 29724: CompressionType compression; 29724: CompressionType bottommost_compression; 29724: CompressionOptions compression_opts; 29724: CompressionOptions bottommost_compression_opts; 29724: Temperature last_level_temperature; 29724: Temperature default_write_temperature; 29724: uint32_t memtable_protection_bytes_per_key; 29724: uint8_t block_protection_bytes_per_key; 29724: bool paranoid_memory_checks; 29724: 29724: uint64_t sample_for_compression; 29724: std::vector compression_per_level; 29724: uint32_t memtable_max_range_deletions; 29724: uint32_t bottommost_file_compaction_delay; 29724: uint32_t uncache_aggressiveness; 29724: 29724: 29724: 29724: std::vector max_file_size; 29724: }; 29724: 29724: uint64_t MultiplyCheckOverflow(uint64_t op1, double op2); 29724: 29724: 29724: uint64_t MaxFileSizeForLevel(const MutableCFOptions& cf_options, 29724: int level, CompactionStyle compaction_style, int base_level = 1, 29724: bool level_compaction_dynamic_level_bytes = false); 29724: 29724: 29724: 29724: size_t MaxFileSizeForL0MetaPin(const MutableCFOptions& cf_options); 29724: 29724: Status GetStringFromMutableCFOptions(const ConfigOptions& config_options, 29724: const MutableCFOptions& mutable_opts, 29724: std::string* opt_string); 29724: 29724: Status GetMutableOptionsFromStrings( 29724: const MutableCFOptions& base_options, 29724: const std::unordered_map& options_map, 29724: Logger* info_log, MutableCFOptions* new_options); 29724: 29724: 29724: std::vector TEST_GetImmutableInMutableCFOptions(); 29724: extern bool TEST_allowSetOptionsImmutableInMutable; 29724: 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/malloc.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/port/malloc.h" 29724: 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class RandomAccessFile; 29724: struct ReadOptions; 29724: 29724: bool ShouldReportDetailedTime(Env* env, Statistics* stats); 29724: 29724: 29724: constexpr uint32_t kMagicNumberLengthByte = 8; 29724: 29724: extern const uint64_t kLegacyBlockBasedTableMagicNumber; 29724: extern const uint64_t kBlockBasedTableMagicNumber; 29724: 29724: extern const uint64_t kLegacyPlainTableMagicNumber; 29724: extern const uint64_t kPlainTableMagicNumber; 29724: 29724: extern const uint64_t kCuckooTableMagicNumber; 29724: 29724: 29724: 29724: class BlockHandle { 29724: public: 29724: 29724: 29724: BlockHandle(); 29724: BlockHandle(uint64_t offset, uint64_t size); 29724: 29724: 29724: uint64_t offset() const { return offset_; } 29724: void set_offset(uint64_t _offset) { offset_ = _offset; } 29724: 29724: 29724: uint64_t size() const { return size_; } 29724: void set_size(uint64_t _size) { size_ = _size; } 29724: 29724: void EncodeTo(std::string* dst) const; 29724: char* EncodeTo(char* dst) const; 29724: Status DecodeFrom(Slice* input); 29724: Status DecodeSizeFrom(uint64_t offset, Slice* input); 29724: 29724: 29724: std::string ToString(bool hex = true) const; 29724: 29724: 29724: 29724: bool IsNull() const { return offset_ == 0 && size_ == 0; } 29724: 29724: static const BlockHandle& NullBlockHandle() { return kNullBlockHandle; } 29724: 29724: 29724: static constexpr uint32_t kMaxEncodedLength = 2 * kMaxVarint64Length; 29724: 29724: inline bool operator==(const BlockHandle& rhs) const { 29724: return offset_ == rhs.offset_ && size_ == rhs.size_; 29724: } 29724: inline bool operator!=(const BlockHandle& rhs) const { 29724: return !(*this == rhs); 29724: } 29724: 29724: private: 29724: uint64_t offset_; 29724: uint64_t size_; 29724: 29724: static const BlockHandle kNullBlockHandle; 29724: }; 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: struct IndexValue { 29724: BlockHandle handle; 29724: 29724: Slice first_internal_key; 29724: 29724: IndexValue() = default; 29724: IndexValue(BlockHandle _handle, Slice _first_internal_key) 29724: : handle(_handle), first_internal_key(_first_internal_key) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: void EncodeTo(std::string* dst, bool have_first_key, 29724: const BlockHandle* previous_handle) const; 29724: Status DecodeFrom(Slice* input, bool have_first_key, 29724: const BlockHandle* previous_handle); 29724: 29724: std::string ToString(bool hex, bool have_first_key) const; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline uint32_t ChecksumModifierForContext(uint32_t base_context_checksum, 29724: uint64_t offset) { 29724: 29724: 29724: 29724: 29724: 29724: uint32_t all_or_nothing = uint32_t{0} - (base_context_checksum != 0); 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: uint32_t modifier = 29724: base_context_checksum ^ (Lower32of64(offset) + Upper32of64(offset)); 29724: 29724: return modifier & all_or_nothing; 29724: } 29724: 29724: inline uint32_t GetCompressFormatForVersion(uint32_t format_version) { 29724: 29724: 29724: 29724: return format_version >= 2 ? 2 : 1; 29724: } 29724: 29724: constexpr uint32_t kLatestFormatVersion = 6; 29724: 29724: inline bool IsSupportedFormatVersion(uint32_t version) { 29724: return version <= kLatestFormatVersion; 29724: } 29724: 29724: 29724: inline bool FormatVersionUsesContextChecksum(uint32_t version) { 29724: return version >= 6; 29724: } 29724: 29724: inline bool FormatVersionUsesIndexHandleInFooter(uint32_t version) { 29724: return version < 6; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class Footer { 29724: public: 29724: 29724: Footer() {} 29724: 29724: void Reset() { 29724: table_magic_number_ = kNullTableMagicNumber; 29724: format_version_ = kInvalidFormatVersion; 29724: base_context_checksum_ = 0; 29724: metaindex_handle_ = BlockHandle::NullBlockHandle(); 29724: index_handle_ = BlockHandle::NullBlockHandle(); 29724: checksum_type_ = kInvalidChecksumType; 29724: block_trailer_size_ = 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status DecodeFrom(Slice input, uint64_t input_offset, 29724: uint64_t enforce_table_magic_number = 0); 29724: 29724: 29724: 29724: uint64_t table_magic_number() const { return table_magic_number_; } 29724: 29724: 29724: 29724: 29724: uint32_t format_version() const { return format_version_; } 29724: 29724: 29724: uint32_t base_context_checksum() const { return base_context_checksum_; } 29724: 29724: 29724: const BlockHandle& metaindex_handle() const { return metaindex_handle_; } 29724: 29724: 29724: 29724: const BlockHandle& index_handle() const { return index_handle_; } 29724: 29724: 29724: ChecksumType checksum_type() const { 29724: return static_cast(checksum_type_); 29724: } 29724: 29724: 29724: 29724: 29724: inline size_t GetBlockTrailerSize() const { return block_trailer_size_; } 29724: 29724: 29724: std::string ToString() const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static constexpr uint32_t kVersion0EncodedLength = 29724: 2 * BlockHandle::kMaxEncodedLength + kMagicNumberLengthByte; 29724: static constexpr uint32_t kMinEncodedLength = kVersion0EncodedLength; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr uint32_t kNewVersionsEncodedLength = 29724: 1 + 2 * BlockHandle::kMaxEncodedLength + 4 + kMagicNumberLengthByte; 29724: static constexpr uint32_t kMaxEncodedLength = kNewVersionsEncodedLength; 29724: 29724: static constexpr uint64_t kNullTableMagicNumber = 0; 29724: 29724: static constexpr uint32_t kInvalidFormatVersion = 0xffffffffU; 29724: 29724: private: 29724: static constexpr int kInvalidChecksumType = 29724: (1 << (sizeof(ChecksumType) * 8)) | kNoChecksum; 29724: 29724: uint64_t table_magic_number_ = kNullTableMagicNumber; 29724: uint32_t format_version_ = kInvalidFormatVersion; 29724: uint32_t base_context_checksum_ = 0; 29724: BlockHandle metaindex_handle_; 29724: BlockHandle index_handle_; 29724: int checksum_type_ = kInvalidChecksumType; 29724: uint8_t block_trailer_size_ = 0; 29724: }; 29724: 29724: 29724: class FooterBuilder { 29724: public: 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: Status Build(uint64_t table_magic_number, uint32_t format_version, 29724: uint64_t footer_offset, ChecksumType checksum_type, 29724: const BlockHandle& metaindex_handle, 29724: const BlockHandle& index_handle = BlockHandle::NullBlockHandle(), 29724: uint32_t base_context_checksum = 0); 29724: 29724: 29724: 29724: const Slice& GetSlice() const { 29724: 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29724: (static_cast ( 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: slice_.size() 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: "slice_.size()" 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: ; 29724: return slice_; 29724: } 29724: 29724: private: 29724: Slice slice_; 29724: std::array data_; 29724: }; 29724: 29724: 29724: 29724: 29724: Status ReadFooterFromFile(const IOOptions& opts, RandomAccessFileReader* file, 29724: FileSystem& fs, FilePrefetchBuffer* prefetch_buffer, 29724: uint64_t file_size, Footer* footer, 29724: uint64_t enforce_table_magic_number = 0, 29724: Statistics* stats = nullptr); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t ComputeBuiltinChecksum(ChecksumType type, const char* data, 29724: size_t size); 29724: uint32_t ComputeBuiltinChecksumWithLastByte(ChecksumType type, const char* data, 29724: size_t size, char last_byte); 29724: # 354 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: struct BlockContents { 29724: 29724: Slice data; 29724: CacheAllocationPtr allocation; 29724: 29724: 29724: 29724: 29724: bool has_trailer = false; 29724: 29724: 29724: BlockContents() {} 29724: 29724: 29724: BlockContents(const Slice& _data) : data(_data) {} 29724: 29724: 29724: BlockContents(CacheAllocationPtr&& _data, size_t _size) 29724: : data(_data.get(), _size), allocation(std::move(_data)) {} 29724: 29724: 29724: BlockContents(std::unique_ptr&& _data, size_t _size) 29724: : data(_data.get(), _size) { 29724: allocation.reset(_data.release()); 29724: } 29724: 29724: 29724: bool own_bytes() const { return allocation.get() != nullptr; } 29724: 29724: 29724: size_t usable_size() const { 29724: if (allocation.get() != nullptr) { 29724: auto allocator = allocation.get_deleter().allocator; 29724: if (allocator) { 29724: return allocator->UsableSize(allocation.get(), data.size()); 29724: } 29724: 29724: return malloc_usable_size(allocation.get()); 29724: 29724: 29724: 29724: } else { 29724: return 0; 29724: } 29724: } 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: return usable_size() + sizeof(*this); 29724: } 29724: 29724: BlockContents(BlockContents&& other) noexcept { *this = std::move(other); } 29724: 29724: BlockContents& operator=(BlockContents&& other) { 29724: data = std::move(other.data); 29724: allocation = std::move(other.allocation); 29724: 29724: has_trailer = other.has_trailer; 29724: 29724: return *this; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status UncompressSerializedBlock(const UncompressionInfo& info, 29724: const char* data, size_t size, 29724: BlockContents* out_contents, 29724: uint32_t format_version, 29724: const ImmutableOptions& ioptions, 29724: MemoryAllocator* allocator = nullptr); 29724: 29724: 29724: 29724: Status UncompressBlockData(const UncompressionInfo& info, const char* data, 29724: size_t size, BlockContents* out_contents, 29724: uint32_t format_version, 29724: const ImmutableOptions& ioptions, 29724: MemoryAllocator* allocator = nullptr); 29724: 29724: 29724: Status ReifyDbHostIdProperty(Env* env, std::string* db_host_id); 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline BlockHandle::BlockHandle() : BlockHandle(~uint64_t{0}, ~uint64_t{0}) {} 29724: 29724: inline BlockHandle::BlockHandle(uint64_t _offset, uint64_t _size) 29724: : offset_(_offset), size_(_size) {} 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class PinnedIteratorsManager; 29724: 29724: enum class IterBoundCheck : char { 29724: kUnknown = 0, 29724: kOutOfBound, 29724: kInbound, 29724: }; 29724: 29724: struct IterateResult { 29724: Slice key; 29724: IterBoundCheck bound_check_result = IterBoundCheck::kUnknown; 29724: 29724: bool value_prepared = true; 29724: }; 29724: 29724: template 29724: class InternalIteratorBase : public Cleanable { 29724: public: 29724: InternalIteratorBase() {} 29724: 29724: 29724: InternalIteratorBase(const InternalIteratorBase&) = delete; 29724: InternalIteratorBase& operator=(const InternalIteratorBase&) = delete; 29724: 29724: virtual ~InternalIteratorBase() {} 29724: # 55 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: virtual void SetRangeDelReadSeqno(SequenceNumber ) {} 29724: 29724: 29724: 29724: 29724: virtual bool Valid() const = 0; 29724: 29724: 29724: 29724: virtual void SeekToFirst() = 0; 29724: 29724: 29724: 29724: virtual void SeekToLast() = 0; 29724: # 77 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: virtual void Seek(const Slice& target) = 0; 29724: 29724: 29724: 29724: 29724: virtual void SeekForPrev(const Slice& target) = 0; 29724: 29724: 29724: 29724: 29724: virtual void Next() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual bool NextAndGetResult(IterateResult* result) { 29724: Next(); 29724: bool is_valid = Valid(); 29724: if (is_valid) { 29724: result->key = key(); 29724: 29724: 29724: 29724: result->bound_check_result = IterBoundCheck::kUnknown; 29724: result->value_prepared = false; 29724: 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29724: (static_cast ( 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: UpperBoundCheckResult() != IterBoundCheck::kOutOfBound 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: "UpperBoundCheckResult() != IterBoundCheck::kOutOfBound" 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: ; 29724: } 29724: return is_valid; 29724: } 29724: 29724: 29724: 29724: 29724: virtual void Prev() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Slice key() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual uint64_t write_unix_time() const { 29724: return std::numeric_limits::max(); 29724: } 29724: 29724: 29724: 29724: virtual Slice user_key() const { return ExtractUserKey(key()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual TValue value() const = 0; 29724: 29724: 29724: 29724: 29724: virtual Status status() const = 0; 29724: # 154 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: virtual bool PrepareValue() { return true; } 29724: 29724: 29724: virtual bool MayBeOutOfLowerBound() { return true; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IterBoundCheck UpperBoundCheckResult() { 29724: return IterBoundCheck::kUnknown; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void SetPinnedItersMgr(PinnedIteratorsManager* ) { 29724: } 29724: # 184 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: virtual bool IsKeyPinned() const { return false; } 29724: 29724: 29724: 29724: 29724: 29724: virtual bool IsValuePinned() const { return false; } 29724: 29724: virtual Status GetProperty(std::string , std::string* ) { 29724: return Status::NotSupported(""); 29724: } 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: virtual void GetReadaheadState(ReadaheadFileInfo* ) {} 29724: 29724: 29724: virtual void SetReadaheadState(ReadaheadFileInfo* ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool IsDeleteRangeSentinelKey() const { return false; } 29724: 29724: protected: 29724: void SeekForPrevImpl(const Slice& target, const CompareInterface* cmp) { 29724: Seek(target); 29724: if (!Valid()) { 29724: SeekToLast(); 29724: } 29724: while (Valid() && cmp->Compare(target, key()) < 0) { 29724: Prev(); 29724: } 29724: } 29724: }; 29724: 29724: using InternalIterator = InternalIteratorBase; 29724: 29724: 29724: template 29724: InternalIteratorBase* NewEmptyInternalIterator(); 29724: 29724: 29724: template 29724: InternalIteratorBase* NewErrorInternalIterator(const Status& status); 29724: 29724: 29724: template 29724: InternalIteratorBase* NewErrorInternalIterator(const Status& status, 29724: Arena* arena); 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: class PinnedIteratorsManager : public Cleanable { 29724: public: 29724: PinnedIteratorsManager() : pinning_enabled(false) {} 29724: ~PinnedIteratorsManager() { 29724: if (pinning_enabled) { 29724: ReleasePinnedData(); 29724: } 29724: } 29724: 29724: 29724: PinnedIteratorsManager(PinnedIteratorsManager&& other) noexcept = default; 29724: PinnedIteratorsManager& operator=(PinnedIteratorsManager&& other) noexcept = 29724: default; 29724: 29724: 29724: void StartPinning() { 29724: 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: (static_cast ( 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: pinning_enabled == false 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: "pinning_enabled == false" 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: ; 29724: pinning_enabled = true; 29724: } 29724: 29724: 29724: bool PinningEnabled() { return pinning_enabled; } 29724: 29724: 29724: void PinIterator(InternalIterator* iter, bool arena = false) { 29724: if (arena) { 29724: PinPtr(iter, &PinnedIteratorsManager::ReleaseArenaInternalIterator); 29724: } else { 29724: PinPtr(iter, &PinnedIteratorsManager::ReleaseInternalIterator); 29724: } 29724: } 29724: 29724: using ReleaseFunction = void (*)(void* arg1); 29724: void PinPtr(void* ptr, ReleaseFunction release_func) { 29724: 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: (static_cast ( 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: pinning_enabled 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: "pinning_enabled" 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: ; 29724: if (ptr == nullptr) { 29724: return; 29724: } 29724: pinned_ptrs_.emplace_back(ptr, release_func); 29724: } 29724: 29724: 29724: inline void ReleasePinnedData() { 29724: 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: (static_cast ( 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: pinning_enabled == true 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: "pinning_enabled == true" 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: ; 29724: pinning_enabled = false; 29724: 29724: 29724: std::sort(pinned_ptrs_.begin(), pinned_ptrs_.end()); 29724: auto unique_end = std::unique(pinned_ptrs_.begin(), pinned_ptrs_.end()); 29724: 29724: for (auto i = pinned_ptrs_.begin(); i != unique_end; ++i) { 29724: void* ptr = i->first; 29724: ReleaseFunction release_func = i->second; 29724: release_func(ptr); 29724: } 29724: pinned_ptrs_.clear(); 29724: 29724: Cleanable::Reset(); 29724: } 29724: 29724: private: 29724: static void ReleaseInternalIterator(void* ptr) { 29724: delete static_cast(ptr); 29724: } 29724: 29724: static void ReleaseArenaInternalIterator(void* ptr) { 29724: static_cast(ptr)->~InternalIterator(); 29724: } 29724: 29724: bool pinning_enabled; 29724: std::vector> pinned_ptrs_; 29724: }; 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: namespace rocksdb { 29724: struct FragmentedRangeTombstoneList { 29724: public: 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: struct RangeTombstoneStack { 29724: RangeTombstoneStack(const Slice& start, const Slice& end, size_t start_idx, 29724: size_t end_idx) 29724: : start_key(start), 29724: end_key(end), 29724: seq_start_idx(start_idx), 29724: seq_end_idx(end_idx) {} 29724: Slice start_key; 29724: Slice end_key; 29724: size_t seq_start_idx; 29724: size_t seq_end_idx; 29724: }; 29724: 29724: 29724: FragmentedRangeTombstoneList( 29724: std::unique_ptr unfragmented_tombstones, 29724: const InternalKeyComparator& icmp, bool for_compaction = false, 29724: const std::vector& snapshots = {}, 29724: const bool tombstone_end_include_ts = true); 29724: 29724: std::vector::const_iterator begin() const { 29724: return tombstones_.begin(); 29724: } 29724: 29724: std::vector::const_iterator end() const { 29724: return tombstones_.end(); 29724: } 29724: 29724: std::vector::const_iterator seq_iter(size_t idx) const { 29724: return std::next(tombstone_seqs_.begin(), idx); 29724: } 29724: 29724: std::vector::const_iterator ts_iter(size_t idx) const { 29724: return std::next(tombstone_timestamps_.begin(), idx); 29724: } 29724: 29724: std::vector::const_iterator seq_begin() const { 29724: return tombstone_seqs_.begin(); 29724: } 29724: 29724: std::vector::const_iterator seq_end() const { 29724: return tombstone_seqs_.end(); 29724: } 29724: 29724: bool empty() const { return tombstones_.empty(); } 29724: 29724: 29724: 29724: 29724: 29724: bool ContainsRange(SequenceNumber lower, SequenceNumber upper); 29724: 29724: uint64_t num_unfragmented_tombstones() const { 29724: return num_unfragmented_tombstones_; 29724: } 29724: 29724: uint64_t total_tombstone_payload_bytes() const { 29724: return total_tombstone_payload_bytes_; 29724: } 29724: 29724: private: 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: void FragmentTombstones( 29724: std::unique_ptr unfragmented_tombstones, 29724: const InternalKeyComparator& icmp, bool for_compaction, 29724: const std::vector& snapshots); 29724: 29724: std::vector tombstones_; 29724: std::vector tombstone_seqs_; 29724: std::vector tombstone_timestamps_; 29724: std::once_flag seq_set_init_once_flag_; 29724: std::set seq_set_; 29724: std::list pinned_slices_; 29724: PinnedIteratorsManager pinned_iters_mgr_; 29724: uint64_t num_unfragmented_tombstones_; 29724: uint64_t total_tombstone_payload_bytes_; 29724: }; 29724: 29724: struct FragmentedRangeTombstoneListCache { 29724: 29724: std::mutex reader_mutex; 29724: std::unique_ptr tombstones = nullptr; 29724: 29724: std::atomic initialized = false; 29724: }; 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: class FragmentedRangeTombstoneIterator : public InternalIterator { 29724: public: 29724: FragmentedRangeTombstoneIterator(FragmentedRangeTombstoneList* tombstones, 29724: const InternalKeyComparator& icmp, 29724: SequenceNumber upper_bound, 29724: const Slice* ts_upper_bound = nullptr, 29724: SequenceNumber lower_bound = 0); 29724: FragmentedRangeTombstoneIterator( 29724: const std::shared_ptr& tombstones, 29724: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 29724: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 29724: FragmentedRangeTombstoneIterator( 29724: const std::shared_ptr& tombstones, 29724: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 29724: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 29724: 29724: void SetRangeDelReadSeqno(SequenceNumber read_seqno) override { 29724: upper_bound_ = read_seqno; 29724: } 29724: 29724: void SeekToFirst() override; 29724: void SeekToLast() override; 29724: 29724: void SeekToTopFirst(); 29724: void SeekToTopLast(); 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: void Seek(const Slice& target) override; 29724: 29724: 29724: 29724: void SeekForPrev(const Slice& target) override; 29724: 29724: void Next() override; 29724: void Prev() override; 29724: 29724: void TopNext(); 29724: void TopPrev(); 29724: 29724: bool Valid() const override; 29724: 29724: 29724: Slice key() const override { 29724: MaybePinKey(); 29724: return current_start_key_.Encode(); 29724: } 29724: Slice value() const override { return pos_->end_key; } 29724: bool IsKeyPinned() const override { return false; } 29724: bool IsValuePinned() const override { return true; } 29724: Status status() const override { return Status::OK(); } 29724: 29724: bool empty() const { return tombstones_->empty(); } 29724: void Invalidate() { 29724: pos_ = tombstones_->end(); 29724: seq_pos_ = tombstones_->seq_end(); 29724: pinned_pos_ = tombstones_->end(); 29724: pinned_seq_pos_ = tombstones_->seq_end(); 29724: } 29724: 29724: RangeTombstone Tombstone() const { 29724: 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29724: (static_cast ( 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: Valid() 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: "Valid()" 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: ; 29724: if (icmp_->user_comparator()->timestamp_size()) { 29724: return RangeTombstone(start_key(), end_key(), seq(), timestamp()); 29724: } 29724: return RangeTombstone(start_key(), end_key(), seq()); 29724: } 29724: 29724: 29724: 29724: 29724: Slice start_key() const { return pos_->start_key; } 29724: Slice end_key() const { return pos_->end_key; } 29724: SequenceNumber seq() const { return *seq_pos_; } 29724: Slice timestamp() const { 29724: 29724: return *tombstones_->ts_iter(seq_pos_ - tombstones_->seq_begin()); 29724: } 29724: 29724: 29724: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 29724: ts_upper_bound_ = ts_upper_bound; 29724: } 29724: 29724: ParsedInternalKey parsed_start_key() const { 29724: return ParsedInternalKey(pos_->start_key, seq(), kTypeRangeDeletion); 29724: } 29724: ParsedInternalKey parsed_end_key() const { 29724: return ParsedInternalKey(pos_->end_key, kMaxSequenceNumber, 29724: kTypeRangeDeletion); 29724: } 29724: 29724: 29724: 29724: 29724: SequenceNumber MaxCoveringTombstoneSeqnum(const Slice& user_key); 29724: # 246 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: std::map> 29724: SplitBySnapshot(const std::vector& snapshots); 29724: 29724: SequenceNumber upper_bound() const { return upper_bound_; } 29724: SequenceNumber lower_bound() const { return lower_bound_; } 29724: 29724: uint64_t num_unfragmented_tombstones() const { 29724: return tombstones_->num_unfragmented_tombstones(); 29724: } 29724: uint64_t total_tombstone_payload_bytes() const { 29724: return tombstones_->total_tombstone_payload_bytes(); 29724: } 29724: 29724: private: 29724: using RangeTombstoneStack = FragmentedRangeTombstoneList::RangeTombstoneStack; 29724: 29724: struct RangeTombstoneStackStartComparator { 29724: explicit RangeTombstoneStackStartComparator(const Comparator* c) : cmp(c) {} 29724: 29724: bool operator()(const RangeTombstoneStack& a, 29724: const RangeTombstoneStack& b) const { 29724: return cmp->CompareWithoutTimestamp(a.start_key, b.start_key) < 0; 29724: } 29724: 29724: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 29724: return cmp->CompareWithoutTimestamp(a.start_key, b) < 0; 29724: } 29724: 29724: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 29724: return cmp->CompareWithoutTimestamp(a, b.start_key) < 0; 29724: } 29724: 29724: const Comparator* cmp; 29724: }; 29724: 29724: struct RangeTombstoneStackEndComparator { 29724: explicit RangeTombstoneStackEndComparator(const Comparator* c) : cmp(c) {} 29724: 29724: bool operator()(const RangeTombstoneStack& a, 29724: const RangeTombstoneStack& b) const { 29724: return cmp->CompareWithoutTimestamp(a.end_key, b.end_key) < 0; 29724: } 29724: 29724: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 29724: return cmp->CompareWithoutTimestamp(a.end_key, b) < 0; 29724: } 29724: 29724: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 29724: return cmp->CompareWithoutTimestamp(a, b.end_key) < 0; 29724: } 29724: 29724: const Comparator* cmp; 29724: }; 29724: 29724: void MaybePinKey() const { 29724: if (pos_ != tombstones_->end() && seq_pos_ != tombstones_->seq_end() && 29724: (pinned_pos_ != pos_ || pinned_seq_pos_ != seq_pos_)) { 29724: current_start_key_.Set(pos_->start_key, *seq_pos_, kTypeRangeDeletion); 29724: pinned_pos_ = pos_; 29724: pinned_seq_pos_ = seq_pos_; 29724: } 29724: } 29724: 29724: void SeekToCoveringTombstone(const Slice& key); 29724: void SeekForPrevToCoveringTombstone(const Slice& key); 29724: void ScanForwardToVisibleTombstone(); 29724: void ScanBackwardToVisibleTombstone(); 29724: bool ValidPos() const { 29724: return Valid() && seq_pos_ != tombstones_->seq_iter(pos_->seq_end_idx); 29724: } 29724: 29724: const RangeTombstoneStackStartComparator tombstone_start_cmp_; 29724: const RangeTombstoneStackEndComparator tombstone_end_cmp_; 29724: const InternalKeyComparator* icmp_; 29724: const Comparator* ucmp_; 29724: std::shared_ptr tombstones_ref_; 29724: std::shared_ptr tombstones_cache_ref_; 29724: FragmentedRangeTombstoneList* tombstones_; 29724: SequenceNumber upper_bound_; 29724: SequenceNumber lower_bound_; 29724: 29724: const Slice* ts_upper_bound_; 29724: std::vector::const_iterator pos_; 29724: std::vector::const_iterator seq_pos_; 29724: mutable std::vector::const_iterator pinned_pos_; 29724: mutable std::vector::const_iterator pinned_seq_pos_; 29724: mutable InternalKey current_start_key_; 29724: 29724: 29724: 29724: 29724: 29724: void SetMaxVisibleSeqAndTimestamp() { 29724: seq_pos_ = std::lower_bound(tombstones_->seq_iter(pos_->seq_start_idx), 29724: tombstones_->seq_iter(pos_->seq_end_idx), 29724: upper_bound_, std::greater()); 29724: if (ts_upper_bound_ && !ts_upper_bound_->empty()) { 29724: auto ts_pos = std::lower_bound( 29724: tombstones_->ts_iter(pos_->seq_start_idx), 29724: tombstones_->ts_iter(pos_->seq_end_idx), *ts_upper_bound_, 29724: [this](const Slice& s1, const Slice& s2) { 29724: return ucmp_->CompareTimestamp(s1, s2) > 0; 29724: }); 29724: auto ts_idx = ts_pos - tombstones_->ts_iter(pos_->seq_start_idx); 29724: auto seq_idx = seq_pos_ - tombstones_->seq_iter(pos_->seq_start_idx); 29724: if (seq_idx < ts_idx) { 29724: 29724: 29724: seq_pos_ = tombstones_->seq_iter(pos_->seq_start_idx + ts_idx); 29724: } 29724: } 29724: } 29724: }; 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 2 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_constants.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: constexpr uint64_t kInvalidBlobFileNumber = 0; 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class JSONWriter; 29724: class Slice; 29724: class Status; 29724: 29724: class BlobFileAddition { 29724: public: 29724: BlobFileAddition() = default; 29724: 29724: BlobFileAddition(uint64_t blob_file_number, uint64_t total_blob_count, 29724: uint64_t total_blob_bytes, std::string checksum_method, 29724: std::string checksum_value) 29724: : blob_file_number_(blob_file_number), 29724: total_blob_count_(total_blob_count), 29724: total_blob_bytes_(total_blob_bytes), 29724: checksum_method_(std::move(checksum_method)), 29724: checksum_value_(std::move(checksum_value)) { 29724: 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29724: (static_cast ( 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29724: checksum_method_.empty() == checksum_value_.empty() 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29724: "checksum_method_.empty() == checksum_value_.empty()" 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29724: ; 29724: } 29724: 29724: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 29724: uint64_t GetTotalBlobCount() const { return total_blob_count_; } 29724: uint64_t GetTotalBlobBytes() const { return total_blob_bytes_; } 29724: const std::string& GetChecksumMethod() const { return checksum_method_; } 29724: const std::string& GetChecksumValue() const { return checksum_value_; } 29724: 29724: void EncodeTo(std::string* output) const; 29724: Status DecodeFrom(Slice* input); 29724: 29724: std::string DebugString() const; 29724: std::string DebugJSON() const; 29724: 29724: private: 29724: enum CustomFieldTags : uint32_t; 29724: 29724: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 29724: uint64_t total_blob_count_ = 0; 29724: uint64_t total_blob_bytes_ = 0; 29724: std::string checksum_method_; 29724: std::string checksum_value_; 29724: }; 29724: 29724: bool operator==(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 29724: bool operator!=(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 29724: 29724: std::ostream& operator<<(std::ostream& os, 29724: const BlobFileAddition& blob_file_addition); 29724: JSONWriter& operator<<(JSONWriter& jw, 29724: const BlobFileAddition& blob_file_addition); 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.h" 29724: namespace rocksdb { 29724: 29724: class JSONWriter; 29724: class Slice; 29724: class Status; 29724: 29724: class BlobFileGarbage { 29724: public: 29724: BlobFileGarbage() = default; 29724: 29724: BlobFileGarbage(uint64_t blob_file_number, uint64_t garbage_blob_count, 29724: uint64_t garbage_blob_bytes) 29724: : blob_file_number_(blob_file_number), 29724: garbage_blob_count_(garbage_blob_count), 29724: garbage_blob_bytes_(garbage_blob_bytes) {} 29724: 29724: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 29724: uint64_t GetGarbageBlobCount() const { return garbage_blob_count_; } 29724: uint64_t GetGarbageBlobBytes() const { return garbage_blob_bytes_; } 29724: 29724: void EncodeTo(std::string* output) const; 29724: Status DecodeFrom(Slice* input); 29724: 29724: std::string DebugString() const; 29724: std::string DebugJSON() const; 29724: 29724: private: 29724: enum CustomFieldTags : uint32_t; 29724: 29724: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 29724: uint64_t garbage_blob_count_ = 0; 29724: uint64_t garbage_blob_bytes_ = 0; 29724: }; 29724: 29724: bool operator==(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 29724: bool operator!=(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 29724: 29724: std::ostream& operator<<(std::ostream& os, 29724: const BlobFileGarbage& blob_file_garbage); 29724: JSONWriter& operator<<(JSONWriter& jw, 29724: const BlobFileGarbage& blob_file_garbage); 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ctime" 1 3 29724: # 39 "/usr/include/c++/14/ctime" 3 29724: 29724: # 40 "/usr/include/c++/14/ctime" 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 1 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 1 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 29724: 29724: # 1 "/usr/include/c++/14/cerrno" 1 3 29724: # 39 "/usr/include/c++/14/cerrno" 3 29724: 29724: # 40 "/usr/include/c++/14/cerrno" 3 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 2 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Logger; 29724: 29724: class Allocator { 29724: public: 29724: virtual ~Allocator() {} 29724: 29724: virtual char* Allocate(size_t bytes) = 0; 29724: virtual char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29724: Logger* logger = nullptr) = 0; 29724: 29724: virtual size_t BlockSize() const = 0; 29724: }; 29724: 29724: class AllocTracker { 29724: public: 29724: explicit AllocTracker(WriteBufferManager* write_buffer_manager); 29724: 29724: AllocTracker(const AllocTracker&) = delete; 29724: void operator=(const AllocTracker&) = delete; 29724: 29724: ~AllocTracker(); 29724: void Allocate(size_t bytes); 29724: 29724: 29724: void DoneAllocating(); 29724: 29724: void FreeMem(); 29724: 29724: bool is_freed() const { return write_buffer_manager_ == nullptr || freed_; } 29724: 29724: private: 29724: WriteBufferManager* write_buffer_manager_; 29724: std::atomic bytes_allocated_; 29724: bool done_allocating_; 29724: bool freed_; 29724: }; 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 1 3 4 29724: # 25 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29724: # 41 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 1 3 4 29724: # 29 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-map-flags-generic.h" 1 3 4 29724: # 30 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 1 3 4 29724: # 135 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 1 3 4 29724: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 29724: 29724: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: int memfd_create (const char *__name, unsigned int __flags) noexcept (true); 29724: 29724: 29724: 29724: int mlock2 (const void *__addr, size_t __length, unsigned int __flags) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: int pkey_alloc (unsigned int __flags, unsigned int __access_rights) noexcept (true); 29724: 29724: 29724: 29724: int pkey_set (int __key, unsigned int __access_rights) noexcept (true); 29724: 29724: 29724: 29724: int pkey_get (int __key) noexcept (true); 29724: 29724: 29724: 29724: int pkey_free (int __key) noexcept (true); 29724: 29724: 29724: 29724: int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) noexcept (true); 29724: 29724: } 29724: # 136 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 2 3 4 29724: # 33 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 29724: # 42 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: # 61 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29724: extern void * mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off64_t __offset) noexcept (true) __asm__ ("" "mmap64") 29724: 29724: 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: extern void *mmap64 (void *__addr, size_t __len, int __prot, 29724: int __flags, int __fd, __off64_t __offset) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int munmap (void *__addr, size_t __len) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int mprotect (void *__addr, size_t __len, int __prot) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int msync (void *__addr, size_t __len, int __flags); 29724: 29724: 29724: 29724: 29724: extern int madvise (void *__addr, size_t __len, int __advice) noexcept (true); 29724: 29724: 29724: 29724: extern int posix_madvise (void *__addr, size_t __len, int __advice) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int mlock (const void *__addr, size_t __len) noexcept (true); 29724: 29724: 29724: extern int munlock (const void *__addr, size_t __len) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int mlockall (int __flags) noexcept (true); 29724: 29724: 29724: 29724: extern int munlockall (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int mincore (void *__start, size_t __len, unsigned char *__vec) 29724: noexcept (true); 29724: # 133 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29724: extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, 29724: int __flags, ...) noexcept (true); 29724: 29724: 29724: 29724: extern int remap_file_pages (void *__start, size_t __size, int __prot, 29724: size_t __pgoff, int __flags) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int shm_open (const char *__name, int __oflag, mode_t __mode); 29724: 29724: 29724: extern int shm_unlink (const char *__name); 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 3 4 29724: struct iovec; 29724: extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov, 29724: size_t __count, int __advice, 29724: unsigned __flags) 29724: noexcept (true); 29724: 29724: extern int process_mrelease (int pidfd, unsigned int flags) noexcept (true); 29724: # 151 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 29724: namespace rocksdb { 29724: 29724: 29724: class MemMapping { 29724: public: 29724: static constexpr bool kHugePageSupported = 29724: 29724: true; 29724: 29724: 29724: 29724: 29724: 29724: static MemMapping AllocateHuge(size_t length); 29724: 29724: 29724: 29724: 29724: 29724: 29724: static MemMapping AllocateLazyZeroed(size_t length); 29724: 29724: 29724: MemMapping(const MemMapping&) = delete; 29724: MemMapping& operator=(const MemMapping&) = delete; 29724: 29724: MemMapping(MemMapping&&) noexcept; 29724: MemMapping& operator=(MemMapping&&) noexcept; 29724: 29724: 29724: ~MemMapping(); 29724: 29724: inline void* Get() const { return addr_; } 29724: inline size_t Length() const { return length_; } 29724: 29724: private: 29724: MemMapping() {} 29724: 29724: 29724: void* addr_ = nullptr; 29724: 29724: size_t length_ = 0; 29724: 29724: 29724: 29724: 29724: 29724: static MemMapping AllocateAnonymous(size_t length, bool huge); 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: class TypedMemMapping : public MemMapping { 29724: public: 29724: TypedMemMapping(MemMapping&& v) noexcept 29724: : MemMapping(std::move(v)) {} 29724: TypedMemMapping& operator=(MemMapping&& v) noexcept { 29724: MemMapping& base = *this; 29724: base = std::move(v); 29724: } 29724: 29724: inline T* Get() const { return static_cast(MemMapping::Get()); } 29724: inline size_t Count() const { return MemMapping::Length() / sizeof(T); } 29724: 29724: inline T& operator[](size_t index) const { return Get()[index]; } 29724: }; 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Arena : public Allocator { 29724: public: 29724: 29724: Arena(const Arena&) = delete; 29724: void operator=(const Arena&) = delete; 29724: 29724: static constexpr size_t kInlineSize = 2048; 29724: static constexpr size_t kMinBlockSize = 4096; 29724: static constexpr size_t kMaxBlockSize = 2u << 30; 29724: 29724: static constexpr unsigned kAlignUnit = alignof(std::max_align_t); 29724: static_assert((kAlignUnit & (kAlignUnit - 1)) == 0, 29724: "Pointer size should be power of 2"); 29724: 29724: 29724: 29724: 29724: explicit Arena(size_t block_size = kMinBlockSize, 29724: AllocTracker* tracker = nullptr, size_t huge_page_size = 0); 29724: ~Arena(); 29724: 29724: char* Allocate(size_t bytes) override; 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29724: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29724: Logger* logger = nullptr) override; 29724: 29724: 29724: 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: return blocks_memory_ + blocks_.size() * sizeof(char*) - 29724: alloc_bytes_remaining_; 29724: } 29724: 29724: size_t MemoryAllocatedBytes() const { return blocks_memory_; } 29724: 29724: size_t AllocatedAndUnused() const { return alloc_bytes_remaining_; } 29724: 29724: 29724: 29724: size_t IrregularBlockNum() const { return irregular_block_num; } 29724: 29724: size_t BlockSize() const override { return kBlockSize; } 29724: 29724: bool IsInInlineBlock() const { 29724: return blocks_.empty() && huge_blocks_.empty(); 29724: } 29724: 29724: 29724: 29724: 29724: static size_t OptimizeBlockSize(size_t block_size); 29724: 29724: private: 29724: alignas(std::max_align_t) char inline_block_[kInlineSize]; 29724: 29724: const size_t kBlockSize; 29724: 29724: std::deque> blocks_; 29724: 29724: std::deque huge_blocks_; 29724: size_t irregular_block_num = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: char* unaligned_alloc_ptr_ = nullptr; 29724: char* aligned_alloc_ptr_ = nullptr; 29724: 29724: size_t alloc_bytes_remaining_ = 0; 29724: 29724: size_t hugetlb_size_ = 0; 29724: 29724: char* AllocateFromHugePage(size_t bytes); 29724: char* AllocateFallback(size_t bytes, bool aligned); 29724: char* AllocateNewBlock(size_t block_bytes); 29724: 29724: 29724: size_t blocks_memory_ = 0; 29724: 29724: AllocTracker* tracker_; 29724: }; 29724: 29724: inline char* Arena::Allocate(size_t bytes) { 29724: 29724: 29724: 29724: 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29724: (static_cast ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29724: bytes > 0 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29724: "bytes > 0" 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29724: ; 29724: if (bytes <= alloc_bytes_remaining_) { 29724: unaligned_alloc_ptr_ -= bytes; 29724: alloc_bytes_remaining_ -= bytes; 29724: return unaligned_alloc_ptr_; 29724: } 29724: return AllocateFallback(bytes, false ); 29724: } 29724: 29724: 29724: template 29724: struct Destroyer { 29724: void operator()(T* ptr) { ptr->~T(); } 29724: }; 29724: 29724: 29724: 29724: template 29724: using ScopedArenaPtr = std::unique_ptr>; 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 1 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29724: 29724: # 42 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/time.h" 1 3 4 29724: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: 29724: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern "C" { 29724: # 52 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: struct timezone 29724: { 29724: int tz_minuteswest; 29724: int tz_dsttime; 29724: }; 29724: # 71 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern int gettimeofday (struct timeval *__restrict __tv, void *__restrict __tz) noexcept (true) __asm__ ("" "__gettimeofday64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: # 98 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern int settimeofday (const struct timeval *__tv, const struct timezone *__tz) noexcept (true) __asm__ ("" "__settimeofday64") 29724: 29724: ; 29724: 29724: extern int adjtime (const struct timeval *__delta, struct timeval *__olddelta) noexcept (true) __asm__ ("" "__adjtime64") 29724: 29724: ; 29724: # 114 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: enum __itimer_which 29724: { 29724: 29724: ITIMER_REAL = 0, 29724: 29724: 29724: ITIMER_VIRTUAL = 1, 29724: 29724: 29724: 29724: ITIMER_PROF = 2 29724: 29724: }; 29724: 29724: 29724: 29724: struct itimerval 29724: { 29724: 29724: struct timeval it_interval; 29724: 29724: struct timeval it_value; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef int __itimer_which_t; 29724: # 167 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern int getitimer (__itimer_which_t __which, struct itimerval *__value) noexcept (true) __asm__ ("" "__getitimer64") 29724: 29724: ; 29724: 29724: extern int setitimer (__itimer_which_t __which, const struct itimerval *__restrict __new, struct itimerval *__restrict __old) noexcept (true) __asm__ ("" "__setitimer64") 29724: 29724: 29724: ; 29724: 29724: extern int utimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__utimes64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: # 196 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern int lutimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__lutimes64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: extern int futimes (int __fd, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimes64") 29724: ; 29724: # 218 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern int futimesat (int __fd, const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimesat64") 29724: 29724: ; 29724: # 258 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: } 29724: # 43 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 2 29724: 29724: 29724: 29724: # 45 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29724: namespace rocksdb { 29724: 29724: namespace port { 29724: 29724: using TimeVal = struct timeval; 29724: 29724: inline void GetTimeOfDay(TimeVal* tv, struct timezone* tz) { 29724: gettimeofday(tv, tz); 29724: } 29724: 29724: inline struct tm* LocalTimeR(const time_t* timep, struct tm* result) { 29724: return localtime_r(timep, result); 29724: } 29724: 29724: } 29724: 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Logger; 29724: 29724: 29724: class LogBuffer { 29724: public: 29724: 29724: 29724: LogBuffer(const InfoLogLevel log_level, Logger* info_log); 29724: 29724: 29724: 29724: void AddLogToBuffer(size_t max_log_size, const char* format, va_list ap); 29724: 29724: size_t IsEmpty() const { return logs_.empty(); } 29724: 29724: 29724: void FlushBufferToLog(); 29724: static const size_t kDefaultMaxLogSize = 512; 29724: 29724: private: 29724: 29724: struct BufferedLog { 29724: port::TimeVal now_tv; 29724: char message[1]; 29724: }; 29724: 29724: const InfoLogLevel log_level_; 29724: Logger* info_log_; 29724: Arena arena_; 29724: autovector logs_; 29724: }; 29724: 29724: 29724: 29724: 29724: void LogToBuffer(LogBuffer* log_buffer, size_t max_log_size, const char* format, 29724: ...); 29724: 29724: void LogToBuffer(LogBuffer* log_buffer, const char* format, ...); 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class JSONWriter { 29724: public: 29724: JSONWriter() : state_(kExpectKey), first_element_(true), in_array_(false) { 29724: stream_ << "{"; 29724: } 29724: 29724: void AddKey(const std::string& key) { 29724: 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectKey 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectKey" 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: if (!first_element_) { 29724: stream_ << ", "; 29724: } 29724: stream_ << "\"" << key << "\": "; 29724: state_ = kExpectValue; 29724: first_element_ = false; 29724: } 29724: 29724: void AddValue(const char* value) { 29724: 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectValue || state_ == kInArray 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectValue || state_ == kInArray" 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: if (state_ == kInArray && !first_element_) { 29724: stream_ << ", "; 29724: } 29724: stream_ << "\"" << value << "\""; 29724: if (state_ != kInArray) { 29724: state_ = kExpectKey; 29724: } 29724: first_element_ = false; 29724: } 29724: 29724: template 29724: void AddValue(const T& value) { 29724: 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectValue || state_ == kInArray 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectValue || state_ == kInArray" 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: if (state_ == kInArray && !first_element_) { 29724: stream_ << ", "; 29724: } 29724: stream_ << value; 29724: if (state_ != kInArray) { 29724: state_ = kExpectKey; 29724: } 29724: first_element_ = false; 29724: } 29724: 29724: void StartArray() { 29724: 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectValue 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectValue" 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: state_ = kInArray; 29724: in_array_ = true; 29724: stream_ << "["; 29724: first_element_ = true; 29724: } 29724: 29724: void EndArray() { 29724: 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kInArray 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kInArray" 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: state_ = kExpectKey; 29724: in_array_ = false; 29724: stream_ << "]"; 29724: first_element_ = false; 29724: } 29724: 29724: void StartObject() { 29724: 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectValue 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectValue" 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: state_ = kExpectKey; 29724: stream_ << "{"; 29724: first_element_ = true; 29724: } 29724: 29724: void EndObject() { 29724: 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectKey 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectKey" 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: stream_ << "}"; 29724: first_element_ = false; 29724: } 29724: 29724: void StartArrayedObject() { 29724: 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kInArray && in_array_ 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kInArray && in_array_" 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: state_ = kExpectValue; 29724: if (!first_element_) { 29724: stream_ << ", "; 29724: } 29724: StartObject(); 29724: } 29724: 29724: void EndArrayedObject() { 29724: 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: in_array_ 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "in_array_" 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: EndObject(); 29724: state_ = kInArray; 29724: } 29724: 29724: std::string Get() const { return stream_.str(); } 29724: 29724: JSONWriter& operator<<(const char* val) { 29724: if (state_ == kExpectKey) { 29724: AddKey(val); 29724: } else { 29724: AddValue(val); 29724: } 29724: return *this; 29724: } 29724: 29724: JSONWriter& operator<<(const std::string& val) { 29724: return *this << val.c_str(); 29724: } 29724: 29724: template 29724: JSONWriter& operator<<(const T& val) { 29724: 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ != kExpectKey 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ != kExpectKey" 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: AddValue(val); 29724: return *this; 29724: } 29724: 29724: private: 29724: enum JSONWriterState { 29724: kExpectKey, 29724: kExpectValue, 29724: kInArray, 29724: kInArrayedObject, 29724: }; 29724: JSONWriterState state_; 29724: bool first_element_; 29724: bool in_array_; 29724: std::ostringstream stream_; 29724: }; 29724: 29724: class EventLoggerStream { 29724: public: 29724: template 29724: EventLoggerStream& operator<<(const T& val) { 29724: MakeStream(); 29724: *json_writer_ << val; 29724: return *this; 29724: } 29724: 29724: void StartArray() { json_writer_->StartArray(); } 29724: void EndArray() { json_writer_->EndArray(); } 29724: void StartObject() { json_writer_->StartObject(); } 29724: void EndObject() { json_writer_->EndObject(); } 29724: 29724: ~EventLoggerStream(); 29724: 29724: private: 29724: void MakeStream() { 29724: if (!json_writer_) { 29724: json_writer_ = new JSONWriter(); 29724: *this << "time_micros" 29724: << std::chrono::duration_cast( 29724: std::chrono::system_clock::now().time_since_epoch()) 29724: .count(); 29724: } 29724: } 29724: friend class EventLogger; 29724: explicit EventLoggerStream(Logger* logger); 29724: explicit EventLoggerStream(LogBuffer* log_buffer, const size_t max_log_size); 29724: 29724: Logger* const logger_; 29724: LogBuffer* const log_buffer_; 29724: const size_t max_log_size_; 29724: 29724: JSONWriter* json_writer_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class EventLogger { 29724: public: 29724: static const char* Prefix() { return "EVENT_LOG_v1"; } 29724: 29724: explicit EventLogger(Logger* logger) : logger_(logger) {} 29724: EventLoggerStream Log() { return EventLoggerStream(logger_); } 29724: EventLoggerStream LogToBuffer(LogBuffer* log_buffer) { 29724: return EventLoggerStream(log_buffer, LogBuffer::kDefaultMaxLogSize); 29724: } 29724: EventLoggerStream LogToBuffer(LogBuffer* log_buffer, 29724: const size_t max_log_size) { 29724: return EventLoggerStream(log_buffer, max_log_size); 29724: } 29724: void Log(const JSONWriter& jwriter); 29724: static void Log(Logger* logger, const JSONWriter& jwriter); 29724: static void LogToBuffer( 29724: LogBuffer* log_buffer, const JSONWriter& jwriter, 29724: const size_t max_log_size = LogBuffer::kDefaultMaxLogSize); 29724: 29724: private: 29724: Logger* logger_; 29724: }; 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 2 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class JSONWriter; 29724: class Slice; 29724: class Status; 29724: 29724: using WalNumber = uint64_t; 29724: 29724: 29724: class WalMetadata { 29724: public: 29724: WalMetadata() = default; 29724: 29724: explicit WalMetadata(uint64_t synced_size_bytes) 29724: : synced_size_bytes_(synced_size_bytes) {} 29724: 29724: bool HasSyncedSize() const { return synced_size_bytes_ != kUnknownWalSize; } 29724: 29724: void SetSyncedSizeInBytes(uint64_t bytes) { synced_size_bytes_ = bytes; } 29724: 29724: uint64_t GetSyncedSizeInBytes() const { return synced_size_bytes_; } 29724: 29724: private: 29724: friend bool operator==(const WalMetadata& lhs, const WalMetadata& rhs); 29724: friend bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs); 29724: 29724: 29724: constexpr static uint64_t kUnknownWalSize = 29724: std::numeric_limits::max(); 29724: 29724: 29724: uint64_t synced_size_bytes_ = kUnknownWalSize; 29724: }; 29724: 29724: inline bool operator==(const WalMetadata& lhs, const WalMetadata& rhs) { 29724: return lhs.synced_size_bytes_ == rhs.synced_size_bytes_; 29724: } 29724: 29724: inline bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs) { 29724: return !(lhs == rhs); 29724: } 29724: 29724: 29724: enum class WalAdditionTag : uint32_t { 29724: 29724: kTerminate = 1, 29724: 29724: kSyncedSize = 2, 29724: 29724: }; 29724: 29724: 29724: class WalAddition { 29724: public: 29724: WalAddition() : number_(0), metadata_() {} 29724: 29724: explicit WalAddition(WalNumber number) : number_(number), metadata_() {} 29724: 29724: WalAddition(WalNumber number, WalMetadata meta) 29724: : number_(number), metadata_(std::move(meta)) {} 29724: 29724: WalNumber GetLogNumber() const { return number_; } 29724: 29724: const WalMetadata& GetMetadata() const { return metadata_; } 29724: 29724: void EncodeTo(std::string* dst) const; 29724: 29724: Status DecodeFrom(Slice* src); 29724: 29724: std::string DebugString() const; 29724: 29724: private: 29724: WalNumber number_; 29724: WalMetadata metadata_; 29724: }; 29724: 29724: std::ostream& operator<<(std::ostream& os, const WalAddition& wal); 29724: JSONWriter& operator<<(JSONWriter& jw, const WalAddition& wal); 29724: 29724: using WalAdditions = std::vector; 29724: 29724: 29724: class WalDeletion { 29724: public: 29724: WalDeletion() : number_(kEmpty) {} 29724: 29724: explicit WalDeletion(WalNumber number) : number_(number) {} 29724: 29724: WalNumber GetLogNumber() const { return number_; } 29724: 29724: void EncodeTo(std::string* dst) const; 29724: 29724: Status DecodeFrom(Slice* src); 29724: 29724: std::string DebugString() const; 29724: 29724: bool IsEmpty() const { return number_ == kEmpty; } 29724: 29724: void Reset() { number_ = kEmpty; } 29724: 29724: private: 29724: static constexpr WalNumber kEmpty = 0; 29724: 29724: WalNumber number_; 29724: }; 29724: 29724: std::ostream& operator<<(std::ostream& os, const WalDeletion& wal); 29724: JSONWriter& operator<<(JSONWriter& jw, const WalDeletion& wal); 29724: # 138 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 29724: class WalSet { 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: Status AddWal(const WalAddition& wal); 29724: Status AddWals(const WalAdditions& wals); 29724: 29724: 29724: 29724: Status DeleteWalsBefore(WalNumber wal); 29724: 29724: 29724: void Reset(); 29724: 29724: 29724: WalNumber GetMinWalNumberToKeep() const { return min_wal_number_to_keep_; } 29724: 29724: const std::map& GetWals() const { return wals_; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status CheckWals( 29724: Env* env, 29724: const std::unordered_map& logs_on_disk) const; 29724: 29724: private: 29724: std::map wals_; 29724: 29724: 29724: WalNumber min_wal_number_to_keep_ = 0; 29724: }; 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: namespace rocksdb { 29724: 29724: class Logger; 29724: class SecondaryCacheResultHandle; 29724: class Statistics; 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: class Cache : public Customizable { 29724: public: 29724: 29724: struct Handle {}; 29724: 29724: public: 29724: 29724: 29724: using ObjectPtr = void*; 29724: 29724: 29724: 29724: struct CreateContext {}; 29724: 29724: public: 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: enum class Priority { HIGH, LOW, BOTTOM }; 29724: # 97 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: using SizeCallback = size_t (*)(ObjectPtr obj); 29724: 29724: 29724: 29724: 29724: 29724: using SaveToCallback = Status (*)(ObjectPtr from_obj, size_t from_offset, 29724: size_t length, char* out_buf); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using DeleterFn = void (*)(ObjectPtr obj, MemoryAllocator* allocator); 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: using CreateCallback = Status (*)(const Slice& data, CompressionType type, 29724: CacheTier source, CreateContext* context, 29724: MemoryAllocator* allocator, 29724: ObjectPtr* out_obj, size_t* out_charge); 29724: 29724: 29724: 29724: 29724: struct CacheItemHelper { 29724: 29724: 29724: 29724: DeleterFn del_cb; 29724: 29724: 29724: 29724: SizeCallback size_cb; 29724: SaveToCallback saveto_cb; 29724: CreateCallback create_cb; 29724: 29724: CacheEntryRole role; 29724: 29724: 29724: 29724: 29724: const CacheItemHelper* without_secondary_compat; 29724: 29724: CacheItemHelper() : CacheItemHelper(CacheEntryRole::kMisc) {} 29724: 29724: 29724: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb = nullptr) 29724: : CacheItemHelper(_role, _del_cb, nullptr, nullptr, nullptr, this) {} 29724: 29724: 29724: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb, 29724: SizeCallback _size_cb, SaveToCallback _saveto_cb, 29724: CreateCallback _create_cb, 29724: const CacheItemHelper* _without_secondary_compat) 29724: : del_cb(_del_cb), 29724: size_cb(_size_cb), 29724: saveto_cb(_saveto_cb), 29724: create_cb(_create_cb), 29724: role(_role), 29724: without_secondary_compat(_without_secondary_compat) { 29724: 29724: 29724: 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: (size_cb != nullptr) == (saveto_cb != nullptr) 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "(size_cb != nullptr) == (saveto_cb != nullptr)" 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; 29724: 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: (size_cb != nullptr) == (create_cb != nullptr) 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "(size_cb != nullptr) == (create_cb != nullptr)" 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; 29724: 29724: 29724: 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: role == without_secondary_compat->role 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "role == without_secondary_compat->role" 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; 29724: 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: del_cb == without_secondary_compat->del_cb 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "del_cb == without_secondary_compat->del_cb" 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; 29724: 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: !without_secondary_compat->IsSecondaryCacheCompatible() 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "!without_secondary_compat->IsSecondaryCacheCompatible()" 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; 29724: } 29724: inline bool IsSecondaryCacheCompatible() const { 29724: return size_cb != nullptr; 29724: } 29724: }; 29724: 29724: public: 29724: Cache(std::shared_ptr allocator = nullptr) 29724: : memory_allocator_(std::move(allocator)) {} 29724: 29724: Cache(const Cache&) = delete; 29724: Cache& operator=(const Cache&) = delete; 29724: 29724: 29724: virtual ~Cache() {} 29724: 29724: static const char* Type() { return "Cache"; } 29724: # 206 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: public: 29724: 29724: virtual const char* Name() const = 0; 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual Status Insert( 29724: const Slice& key, ObjectPtr obj, const CacheItemHelper* helper, 29724: size_t charge, Handle** handle = nullptr, 29724: Priority priority = Priority::LOW, const Slice& compressed = Slice(), 29724: CompressionType type = CompressionType::kNoCompression) = 0; 29724: # 277 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 29724: const CacheItemHelper* helper, size_t charge, 29724: bool allow_uncharged) = 0; 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual Handle* Lookup(const Slice& key, 29724: const CacheItemHelper* helper = nullptr, 29724: CreateContext* create_context = nullptr, 29724: Priority priority = Priority::LOW, 29724: Statistics* stats = nullptr) = 0; 29724: 29724: 29724: inline Handle* BasicLookup(const Slice& key, Statistics* stats) { 29724: return Lookup(key, nullptr, nullptr, Priority::LOW, stats); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual bool Ref(Handle* handle) = 0; 29724: # 319 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual bool Release(Handle* handle, bool erase_if_last_ref = false) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual ObjectPtr Value(Handle* handle) = 0; 29724: 29724: 29724: 29724: 29724: virtual void Erase(const Slice& key) = 0; 29724: 29724: 29724: 29724: 29724: virtual uint64_t NewId() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void SetCapacity(size_t capacity) = 0; 29724: 29724: 29724: 29724: virtual void SetStrictCapacityLimit(bool strict_capacity_limit) = 0; 29724: 29724: 29724: 29724: virtual bool HasStrictCapacityLimit() const = 0; 29724: 29724: 29724: virtual size_t GetCapacity() const = 0; 29724: 29724: 29724: virtual size_t GetUsage() const = 0; 29724: 29724: 29724: 29724: 29724: virtual size_t GetOccupancyCount() const { return 29724: # 361 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (4294967295U) 29724: # 361 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; } 29724: 29724: 29724: 29724: 29724: virtual size_t GetTableAddressCount() const { return 0; } 29724: 29724: 29724: virtual size_t GetUsage(Handle* handle) const = 0; 29724: 29724: 29724: virtual size_t GetPinnedUsage() const = 0; 29724: 29724: 29724: virtual size_t GetCharge(Handle* handle) const = 0; 29724: 29724: 29724: virtual const CacheItemHelper* GetCacheItemHelper(Handle* handle) const = 0; 29724: 29724: virtual Status GetSecondaryCacheCapacity(size_t& ) const { 29724: return Status::NotSupported(); 29724: } 29724: 29724: virtual Status GetSecondaryCachePinnedUsage(size_t& ) const { 29724: return Status::NotSupported(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void DisownData() { 29724: 29724: } 29724: 29724: struct ApplyToAllEntriesOptions { 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t average_entries_per_lock = 256; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: virtual void ApplyToAllEntries( 29724: const std::function& callback, 29724: const ApplyToAllEntriesOptions& opts) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void ApplyToHandle( 29724: Cache* cache, Handle* handle, 29724: const std::function& callback) = 0; 29724: 29724: 29724: virtual void EraseUnRefEntries() = 0; 29724: 29724: virtual std::string GetPrintableOptions() const { return ""; } 29724: 29724: 29724: 29724: 29724: 29724: virtual void ReportProblems( 29724: const std::shared_ptr& ) const {} 29724: 29724: MemoryAllocator* memory_allocator() const { return memory_allocator_.get(); } 29724: 29724: 29724: virtual uint32_t GetHashSeed() const { return 0; } 29724: # 450 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual bool Release(Handle* handle, bool , 29724: bool erase_if_last_ref) { 29724: return Release(handle, erase_if_last_ref); 29724: } 29724: 29724: 29724: 29724: 29724: struct AsyncLookupHandle { 29724: 29724: 29724: 29724: Slice key; 29724: const CacheItemHelper* helper = nullptr; 29724: CreateContext* create_context = nullptr; 29724: Priority priority = Priority::LOW; 29724: Statistics* stats = nullptr; 29724: 29724: AsyncLookupHandle() {} 29724: AsyncLookupHandle(const Slice& _key, const CacheItemHelper* _helper, 29724: CreateContext* _create_context, 29724: Priority _priority = Priority::LOW, 29724: Statistics* _stats = nullptr) 29724: : key(_key), 29724: helper(_helper), 29724: create_context(_create_context), 29724: priority(_priority), 29724: stats(_stats) {} 29724: 29724: 29724: ~AsyncLookupHandle() { 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: !IsPending() 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "!IsPending()" 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; } 29724: 29724: 29724: AsyncLookupHandle(const AsyncLookupHandle&) = delete; 29724: AsyncLookupHandle operator=(const AsyncLookupHandle&) = delete; 29724: AsyncLookupHandle(AsyncLookupHandle&&) = delete; 29724: AsyncLookupHandle operator=(AsyncLookupHandle&&) = delete; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool IsReady(); 29724: 29724: 29724: bool IsPending(); 29724: 29724: 29724: 29724: 29724: 29724: Handle* Result(); 29724: 29724: 29724: Handle* result_handle = nullptr; 29724: SecondaryCacheResultHandle* pending_handle = nullptr; 29724: SecondaryCache* pending_cache = nullptr; 29724: bool found_dummy_entry = false; 29724: bool kept_in_sec_cache = false; 29724: }; 29724: # 531 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual void StartAsyncLookup(AsyncLookupHandle& async_handle); 29724: 29724: 29724: 29724: Handle* Wait(AsyncLookupHandle& async_handle); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void WaitAll(AsyncLookupHandle* , size_t ); 29724: 29724: 29724: 29724: 29724: 29724: using EvictionCallback = 29724: std::function; 29724: 29724: 29724: 29724: void SetEvictionCallback(EvictionCallback&& fn); 29724: 29724: protected: 29724: std::shared_ptr memory_allocator_; 29724: EvictionCallback eviction_callback_; 29724: }; 29724: 29724: 29724: 29724: class CacheWrapper : public Cache { 29724: public: 29724: explicit CacheWrapper(std::shared_ptr target) 29724: : target_(std::move(target)) {} 29724: 29724: 29724: 29724: 29724: Status Insert( 29724: const Slice& key, ObjectPtr value, const CacheItemHelper* helper, 29724: size_t charge, Handle** handle = nullptr, 29724: Priority priority = Priority::LOW, 29724: const Slice& compressed_value = Slice(), 29724: CompressionType type = CompressionType::kNoCompression) override { 29724: return target_->Insert(key, value, helper, charge, handle, priority, 29724: compressed_value, type); 29724: } 29724: 29724: Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 29724: const CacheItemHelper* helper, size_t charge, 29724: bool allow_uncharged) override { 29724: return target_->CreateStandalone(key, obj, helper, charge, allow_uncharged); 29724: } 29724: 29724: Handle* Lookup(const Slice& key, const CacheItemHelper* helper, 29724: CreateContext* create_context, 29724: Priority priority = Priority::LOW, 29724: Statistics* stats = nullptr) override { 29724: return target_->Lookup(key, helper, create_context, priority, stats); 29724: } 29724: 29724: bool Ref(Handle* handle) override { return target_->Ref(handle); } 29724: 29724: using Cache::Release; 29724: bool Release(Handle* handle, bool erase_if_last_ref = false) override { 29724: return target_->Release(handle, erase_if_last_ref); 29724: } 29724: 29724: ObjectPtr Value(Handle* handle) override { return target_->Value(handle); } 29724: 29724: void Erase(const Slice& key) override { target_->Erase(key); } 29724: uint64_t NewId() override { return target_->NewId(); } 29724: 29724: void SetCapacity(size_t capacity) override { target_->SetCapacity(capacity); } 29724: 29724: void SetStrictCapacityLimit(bool strict_capacity_limit) override { 29724: target_->SetStrictCapacityLimit(strict_capacity_limit); 29724: } 29724: 29724: bool HasStrictCapacityLimit() const override { 29724: return target_->HasStrictCapacityLimit(); 29724: } 29724: 29724: size_t GetOccupancyCount() const override { 29724: return target_->GetOccupancyCount(); 29724: } 29724: 29724: size_t GetTableAddressCount() const override { 29724: return target_->GetTableAddressCount(); 29724: } 29724: 29724: size_t GetCapacity() const override { return target_->GetCapacity(); } 29724: 29724: size_t GetUsage() const override { return target_->GetUsage(); } 29724: 29724: size_t GetUsage(Handle* handle) const override { 29724: return target_->GetUsage(handle); 29724: } 29724: 29724: size_t GetPinnedUsage() const override { return target_->GetPinnedUsage(); } 29724: 29724: size_t GetCharge(Handle* handle) const override { 29724: return target_->GetCharge(handle); 29724: } 29724: 29724: const CacheItemHelper* GetCacheItemHelper(Handle* handle) const override { 29724: return target_->GetCacheItemHelper(handle); 29724: } 29724: 29724: void ApplyToAllEntries( 29724: const std::function& callback, 29724: const ApplyToAllEntriesOptions& opts) override { 29724: target_->ApplyToAllEntries(callback, opts); 29724: } 29724: 29724: virtual void ApplyToHandle( 29724: Cache* cache, Handle* handle, 29724: const std::function& callback) 29724: override { 29724: auto cache_ptr = static_cast(cache); 29724: target_->ApplyToHandle(cache_ptr->target_.get(), handle, callback); 29724: } 29724: 29724: void EraseUnRefEntries() override { target_->EraseUnRefEntries(); } 29724: 29724: void StartAsyncLookup(AsyncLookupHandle& async_handle) override { 29724: target_->StartAsyncLookup(async_handle); 29724: } 29724: 29724: void WaitAll(AsyncLookupHandle* async_handles, size_t count) override { 29724: target_->WaitAll(async_handles, count); 29724: } 29724: 29724: uint32_t GetHashSeed() const override { return target_->GetHashSeed(); } 29724: 29724: void ReportProblems(const std::shared_ptr& info_log) const override { 29724: target_->ReportProblems(info_log); 29724: } 29724: 29724: const std::shared_ptr& GetTarget() { return target_; } 29724: 29724: protected: 29724: std::shared_ptr target_; 29724: }; 29724: 29724: 29724: 29724: extern const Cache::CacheItemHelper kNoopCacheItemHelper; 29724: 29724: } 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class ReadCallback { 29724: public: 29724: explicit ReadCallback(SequenceNumber last_visible_seq) 29724: : max_visible_seq_(last_visible_seq) {} 29724: ReadCallback(SequenceNumber last_visible_seq, SequenceNumber min_uncommitted) 29724: : max_visible_seq_(last_visible_seq), min_uncommitted_(min_uncommitted) {} 29724: 29724: virtual ~ReadCallback() {} 29724: 29724: 29724: 29724: virtual bool IsVisibleFullCheck(SequenceNumber seq) = 0; 29724: 29724: inline bool IsVisible(SequenceNumber seq) { 29724: 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: (static_cast ( 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: min_uncommitted_ > 0 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: "min_uncommitted_ > 0" 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: ; 29724: 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: (static_cast ( 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: min_uncommitted_ >= kMinUnCommittedSeq 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: "min_uncommitted_ >= kMinUnCommittedSeq" 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: ; 29724: if (seq < min_uncommitted_) { 29724: 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: (static_cast ( 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: seq <= max_visible_seq_ 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: "seq <= max_visible_seq_" 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: ; 29724: return true; 29724: } else if (max_visible_seq_ < seq) { 29724: 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: (static_cast ( 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: seq != 0 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: "seq != 0" 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: ; 29724: return false; 29724: } else { 29724: 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: (static_cast ( 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: seq != 0 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: "seq != 0" 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: ; 29724: return IsVisibleFullCheck(seq); 29724: } 29724: } 29724: 29724: inline SequenceNumber max_visible_seq() { return max_visible_seq_; } 29724: 29724: 29724: virtual void Refresh(SequenceNumber seq) { max_visible_seq_ = seq; } 29724: 29724: protected: 29724: 29724: 29724: SequenceNumber max_visible_seq_ = kMaxSequenceNumber; 29724: 29724: const SequenceNumber min_uncommitted_ = kMinUnCommittedSeq; 29724: }; 29724: 29724: } 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: class BlobFetcher; 29724: class Comparator; 29724: class Logger; 29724: class MergeContext; 29724: class MergeOperator; 29724: class PinnableWideColumns; 29724: class PinnedIteratorsManager; 29724: class Statistics; 29724: class SystemClock; 29724: struct ParsedInternalKey; 29724: 29724: 29724: 29724: 29724: struct GetContextStats { 29724: uint64_t num_cache_hit = 0; 29724: uint64_t num_cache_index_hit = 0; 29724: uint64_t num_cache_data_hit = 0; 29724: uint64_t num_cache_filter_hit = 0; 29724: uint64_t num_cache_compression_dict_hit = 0; 29724: uint64_t num_cache_index_miss = 0; 29724: uint64_t num_cache_filter_miss = 0; 29724: uint64_t num_cache_data_miss = 0; 29724: uint64_t num_cache_compression_dict_miss = 0; 29724: uint64_t num_cache_bytes_read = 0; 29724: uint64_t num_cache_miss = 0; 29724: uint64_t num_cache_add = 0; 29724: uint64_t num_cache_add_redundant = 0; 29724: uint64_t num_cache_bytes_write = 0; 29724: uint64_t num_cache_index_add = 0; 29724: uint64_t num_cache_index_add_redundant = 0; 29724: uint64_t num_cache_index_bytes_insert = 0; 29724: uint64_t num_cache_data_add = 0; 29724: uint64_t num_cache_data_add_redundant = 0; 29724: uint64_t num_cache_data_bytes_insert = 0; 29724: uint64_t num_cache_filter_add = 0; 29724: uint64_t num_cache_filter_add_redundant = 0; 29724: uint64_t num_cache_filter_bytes_insert = 0; 29724: uint64_t num_cache_compression_dict_add = 0; 29724: uint64_t num_cache_compression_dict_add_redundant = 0; 29724: uint64_t num_cache_compression_dict_bytes_insert = 0; 29724: 29724: uint64_t num_filter_read = 0; 29724: uint64_t num_index_read = 0; 29724: uint64_t num_sst_read = 0; 29724: }; 29724: # 67 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: class GetContext { 29724: public: 29724: 29724: 29724: enum GetState { 29724: kNotFound, 29724: kFound, 29724: kDeleted, 29724: kCorrupt, 29724: kMerge, 29724: kUnexpectedBlobIndex, 29724: kMergeOperatorFailed, 29724: }; 29724: GetContextStats get_context_stats_; 29724: # 102 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 29724: Logger* logger, Statistics* statistics, GetState init_state, 29724: const Slice& user_key, PinnableSlice* value, 29724: PinnableWideColumns* columns, bool* value_found, 29724: MergeContext* merge_context, bool do_merge, 29724: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 29724: SequenceNumber* seq = nullptr, 29724: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 29724: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29724: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 29724: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 29724: Logger* logger, Statistics* statistics, GetState init_state, 29724: const Slice& user_key, PinnableSlice* value, 29724: PinnableWideColumns* columns, std::string* timestamp, 29724: bool* value_found, MergeContext* merge_context, bool do_merge, 29724: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 29724: SequenceNumber* seq = nullptr, 29724: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 29724: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29724: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 29724: 29724: GetContext() = delete; 29724: 29724: 29724: 29724: void MarkKeyMayExist(); 29724: # 137 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: bool SaveValue(const ParsedInternalKey& parsed_key, const Slice& value, 29724: bool* matched, Status* read_status, 29724: Cleanable* value_pinner = nullptr); 29724: 29724: 29724: 29724: void SaveValue(const Slice& value, SequenceNumber seq); 29724: 29724: GetState State() const { return state_; } 29724: 29724: SequenceNumber* max_covering_tombstone_seq() { 29724: return max_covering_tombstone_seq_; 29724: } 29724: 29724: bool NeedTimestamp() { return timestamp_ != nullptr; } 29724: 29724: inline size_t TimestampSize() { return ucmp_->timestamp_size(); } 29724: 29724: void SetTimestampFromRangeTombstone(const Slice& timestamp) { 29724: 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29724: (static_cast ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: timestamp_ 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: "timestamp_" 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: ; 29724: timestamp_->assign(timestamp.data(), timestamp.size()); 29724: ts_from_rangetombstone_ = true; 29724: } 29724: 29724: PinnedIteratorsManager* pinned_iters_mgr() { return pinned_iters_mgr_; } 29724: 29724: 29724: 29724: 29724: void SetReplayLog(std::string* replay_log) { replay_log_ = replay_log; } 29724: 29724: 29724: bool NeedToReadSequence() const { return (seq_ != nullptr); } 29724: 29724: bool sample() const { return sample_; } 29724: 29724: bool CheckCallback(SequenceNumber seq) { 29724: if (callback_) { 29724: return callback_->IsVisible(seq); 29724: } 29724: return true; 29724: } 29724: 29724: void ReportCounters(); 29724: 29724: bool has_callback() const { return callback_ != nullptr; } 29724: 29724: const Slice& ukey_to_get_blob_value() const { 29724: if (!ukey_with_ts_found_.empty()) { 29724: return ukey_with_ts_found_; 29724: } else { 29724: return user_key_; 29724: } 29724: } 29724: 29724: uint64_t get_tracing_get_id() const { return tracing_get_id_; } 29724: 29724: void push_operand(const Slice& value, Cleanable* value_pinner); 29724: 29724: private: 29724: 29724: 29724: void PostprocessMerge(const Status& merge_status); 29724: 29724: 29724: 29724: void MergeWithNoBaseValue(); 29724: void MergeWithPlainBaseValue(const Slice& value); 29724: void MergeWithWideColumnBaseValue(const Slice& entity); 29724: 29724: bool GetBlobValue(const Slice& user_key, const Slice& blob_index, 29724: PinnableSlice* blob_value, Status* read_status); 29724: 29724: void appendToReplayLog(ValueType type, Slice value, Slice ts); 29724: 29724: const Comparator* ucmp_; 29724: const MergeOperator* merge_operator_; 29724: 29724: Logger* logger_; 29724: Statistics* statistics_; 29724: 29724: GetState state_; 29724: Slice user_key_; 29724: 29724: 29724: 29724: PinnableSlice ukey_with_ts_found_; 29724: PinnableSlice* pinnable_val_; 29724: PinnableWideColumns* columns_; 29724: std::string* timestamp_; 29724: bool ts_from_rangetombstone_{false}; 29724: bool* value_found_; 29724: MergeContext* merge_context_; 29724: SequenceNumber* max_covering_tombstone_seq_; 29724: SystemClock* clock_; 29724: 29724: 29724: SequenceNumber* seq_; 29724: std::string* replay_log_; 29724: 29724: PinnedIteratorsManager* pinned_iters_mgr_; 29724: ReadCallback* callback_; 29724: bool sample_; 29724: 29724: 29724: 29724: bool do_merge_; 29724: bool* is_blob_index_; 29724: 29724: 29724: const uint64_t tracing_get_id_; 29724: BlobFetcher* blob_fetcher_; 29724: }; 29724: 29724: 29724: 29724: 29724: Status replayGetContextLog(const Slice& replay_log, const Slice& user_key, 29724: GetContext* get_context, 29724: Cleanable* value_pinner = nullptr, 29724: SequenceNumber seq_no = kMaxSequenceNumber); 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/lookup_key.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/lookup_key.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: class LookupKey { 29724: public: 29724: 29724: 29724: LookupKey(const Slice& _user_key, SequenceNumber sequence, 29724: const Slice* ts = nullptr); 29724: 29724: ~LookupKey(); 29724: 29724: 29724: Slice memtable_key() const { 29724: return Slice(start_, static_cast(end_ - start_)); 29724: } 29724: 29724: 29724: Slice internal_key() const { 29724: return Slice(kstart_, static_cast(end_ - kstart_)); 29724: } 29724: 29724: 29724: 29724: 29724: Slice user_key() const { 29724: return Slice(kstart_, static_cast(end_ - kstart_ - 8)); 29724: } 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const char* start_; 29724: const char* kstart_; 29724: const char* end_; 29724: char space_[200]; 29724: 29724: 29724: LookupKey(const LookupKey&); 29724: void operator=(const LookupKey&); 29724: }; 29724: 29724: inline LookupKey::~LookupKey() { 29724: if (start_ != space_) delete[] start_; 29724: } 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/async_file_reader.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/single_thread_executor.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29724: 29724: namespace rocksdb { 29724: class GetContext; 29724: class PinnableWideColumns; 29724: 29724: struct KeyContext { 29724: const Slice* key; 29724: LookupKey* lkey; 29724: Slice ukey_with_ts; 29724: Slice ukey_without_ts; 29724: Slice ikey; 29724: ColumnFamilyHandle* column_family; 29724: Status* s; 29724: MergeContext merge_context; 29724: SequenceNumber max_covering_tombstone_seq; 29724: bool key_exists; 29724: bool is_blob_index; 29724: void* cb_arg; 29724: PinnableSlice* value; 29724: PinnableWideColumns* columns; 29724: std::string* timestamp; 29724: GetContext* get_context; 29724: 29724: KeyContext(ColumnFamilyHandle* col_family, const Slice& user_key, 29724: PinnableSlice* val, PinnableWideColumns* cols, std::string* ts, 29724: Status* stat) 29724: : key(&user_key), 29724: lkey(nullptr), 29724: column_family(col_family), 29724: s(stat), 29724: max_covering_tombstone_seq(0), 29724: key_exists(false), 29724: is_blob_index(false), 29724: cb_arg(nullptr), 29724: value(val), 29724: columns(cols), 29724: timestamp(ts), 29724: get_context(nullptr) {} 29724: }; 29724: # 97 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: class MultiGetContext { 29724: public: 29724: 29724: 29724: 29724: 29724: static const int MAX_BATCH_SIZE = 32; 29724: 29724: 29724: 29724: using Mask = uint64_t; 29724: static_assert(MAX_BATCH_SIZE < sizeof(Mask) * 8); 29724: 29724: MultiGetContext(autovector* sorted_keys, 29724: size_t begin, size_t num_keys, SequenceNumber snapshot, 29724: const ReadOptions& read_opts, FileSystem* fs, 29724: Statistics* stats) 29724: : num_keys_(num_keys), 29724: value_mask_(0), 29724: value_size_(0), 29724: lookup_key_ptr_(reinterpret_cast(lookup_key_stack_buf)) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: (void)fs; 29724: (void)stats; 29724: 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: num_keys <= MAX_BATCH_SIZE 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "num_keys <= MAX_BATCH_SIZE" 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: if (num_keys > MAX_LOOKUP_KEYS_ON_STACK) { 29724: lookup_key_heap_buf.reset(new char[sizeof(LookupKey) * num_keys]); 29724: lookup_key_ptr_ = reinterpret_cast(lookup_key_heap_buf.get()); 29724: } 29724: 29724: for (size_t iter = 0; iter != num_keys_; ++iter) { 29724: 29724: sorted_keys_[iter] = (*sorted_keys)[begin + iter]; 29724: sorted_keys_[iter]->lkey = new (&lookup_key_ptr_[iter]) 29724: LookupKey(*sorted_keys_[iter]->key, snapshot, read_opts.timestamp); 29724: sorted_keys_[iter]->ukey_with_ts = sorted_keys_[iter]->lkey->user_key(); 29724: sorted_keys_[iter]->ukey_without_ts = StripTimestampFromUserKey( 29724: sorted_keys_[iter]->lkey->user_key(), 29724: read_opts.timestamp == nullptr ? 0 : read_opts.timestamp->size()); 29724: sorted_keys_[iter]->ikey = sorted_keys_[iter]->lkey->internal_key(); 29724: sorted_keys_[iter]->timestamp = (*sorted_keys)[begin + iter]->timestamp; 29724: sorted_keys_[iter]->get_context = 29724: (*sorted_keys)[begin + iter]->get_context; 29724: } 29724: } 29724: 29724: ~MultiGetContext() { 29724: for (size_t i = 0; i < num_keys_; ++i) { 29724: lookup_key_ptr_[i].~LookupKey(); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: private: 29724: static const int MAX_LOOKUP_KEYS_ON_STACK = 16; 29724: alignas( 29724: alignof(LookupKey)) char lookup_key_stack_buf[sizeof(LookupKey) * 29724: MAX_LOOKUP_KEYS_ON_STACK]; 29724: std::array sorted_keys_; 29724: size_t num_keys_; 29724: Mask value_mask_; 29724: uint64_t value_size_; 29724: std::unique_ptr lookup_key_heap_buf; 29724: LookupKey* lookup_key_ptr_; 29724: 29724: 29724: 29724: 29724: 29724: public: 29724: # 186 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: class Range { 29724: public: 29724: 29724: 29724: 29724: class Iterator { 29724: public: 29724: 29724: using self_type = Iterator; 29724: using value_type = KeyContext; 29724: using reference = KeyContext&; 29724: using pointer = KeyContext*; 29724: using difference_type = int; 29724: using iterator_category = std::forward_iterator_tag; 29724: 29724: Iterator(const Range* range, size_t idx) 29724: : range_(range), ctx_(range->ctx_), index_(idx) { 29724: while (index_ < range_->end_ && 29724: (Mask{1} << index_) & 29724: (range_->ctx_->value_mask_ | range_->skip_mask_ | 29724: range_->invalid_mask_)) 29724: index_++; 29724: } 29724: 29724: Iterator(const Iterator&) = default; 29724: 29724: Iterator(const Iterator& other, const Range* range) 29724: : range_(range), ctx_(other.ctx_), index_(other.index_) { 29724: 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: range->ctx_ == other.ctx_ 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "range->ctx_ == other.ctx_" 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: } 29724: Iterator& operator=(const Iterator&) = default; 29724: 29724: Iterator& operator++() { 29724: while (++index_ < range_->end_ && 29724: (Mask{1} << index_) & 29724: (range_->ctx_->value_mask_ | range_->skip_mask_ | 29724: range_->invalid_mask_)) 29724: ; 29724: return *this; 29724: } 29724: 29724: bool operator==(Iterator other) const { 29724: 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: range_->ctx_ == other.range_->ctx_ 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "range_->ctx_ == other.range_->ctx_" 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: return index_ == other.index_; 29724: } 29724: 29724: bool operator!=(Iterator other) const { 29724: 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: range_->ctx_ == other.range_->ctx_ 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "range_->ctx_ == other.range_->ctx_" 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: return index_ != other.index_; 29724: } 29724: 29724: KeyContext& operator*() { 29724: 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: index_ < range_->end_ && index_ >= range_->start_ 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "index_ < range_->end_ && index_ >= range_->start_" 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: return *(ctx_->sorted_keys_[index_]); 29724: } 29724: 29724: KeyContext* operator->() { 29724: 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: index_ < range_->end_ && index_ >= range_->start_ 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "index_ < range_->end_ && index_ >= range_->start_" 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: return ctx_->sorted_keys_[index_]; 29724: } 29724: 29724: size_t index() { return index_; } 29724: 29724: private: 29724: friend Range; 29724: const Range* range_; 29724: const MultiGetContext* ctx_; 29724: size_t index_; 29724: }; 29724: 29724: Range(const Range& mget_range, const Iterator& first, 29724: const Iterator& last) { 29724: ctx_ = mget_range.ctx_; 29724: if (first == last) { 29724: 29724: 29724: start_ = mget_range.start_; 29724: end_ = start_; 29724: } else { 29724: start_ = first.index_; 29724: end_ = last.index_; 29724: } 29724: skip_mask_ = mget_range.skip_mask_; 29724: invalid_mask_ = mget_range.invalid_mask_; 29724: 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: start_ < 64 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "start_ < 64" 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: end_ < 64 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "end_ < 64" 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: } 29724: 29724: Range() = default; 29724: 29724: Iterator begin() const { return Iterator(this, start_); } 29724: 29724: Iterator end() const { return Iterator(this, end_); } 29724: 29724: bool empty() const { return RemainingMask() == 0; } 29724: 29724: void SkipIndex(size_t index) { skip_mask_ |= Mask{1} << index; } 29724: 29724: void SkipKey(const Iterator& iter) { SkipIndex(iter.index_); } 29724: 29724: bool IsKeySkipped(const Iterator& iter) const { 29724: return skip_mask_ & (Mask{1} << iter.index_); 29724: } 29724: 29724: 29724: 29724: void MarkKeyDone(Iterator& iter) { 29724: ctx_->value_mask_ |= (Mask{1} << iter.index_); 29724: } 29724: 29724: bool CheckKeyDone(Iterator& iter) const { 29724: return ctx_->value_mask_ & (Mask{1} << iter.index_); 29724: } 29724: 29724: uint64_t KeysLeft() const { return BitsSetToOne(RemainingMask()); } 29724: 29724: void AddSkipsFrom(const Range& other) { 29724: 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ctx_ == other.ctx_ 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "ctx_ == other.ctx_" 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: skip_mask_ |= other.skip_mask_; 29724: } 29724: 29724: uint64_t GetValueSize() { return ctx_->value_size_; } 29724: 29724: void AddValueSize(uint64_t value_size) { ctx_->value_size_ += value_size; } 29724: 29724: MultiGetContext* context() const { return ctx_; } 29724: 29724: Range Suffix(const Range& other) const { 29724: size_t other_last = other.FindLastRemaining(); 29724: size_t my_last = FindLastRemaining(); 29724: 29724: if (my_last > other_last) { 29724: return Range(*this, Iterator(this, other_last), 29724: Iterator(this, my_last)); 29724: } else { 29724: return Range(*this, begin(), begin()); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: Range& operator+=(const Range& rhs) { 29724: 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: rhs.start_ >= end_ 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "rhs.start_ >= end_" 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: 29724: if (end_ < rhs.start_) { 29724: invalid_mask_ |= RangeMask(end_, rhs.start_); 29724: skip_mask_ |= RangeMask(end_, rhs.start_); 29724: } 29724: start_ = std::min(start_, rhs.start_); 29724: end_ = std::max(end_, rhs.end_); 29724: skip_mask_ |= rhs.skip_mask_ & RangeMask(rhs.start_, rhs.end_); 29724: invalid_mask_ |= (rhs.invalid_mask_ | rhs.skip_mask_) & 29724: RangeMask(rhs.start_, rhs.end_); 29724: 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: start_ < 64 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "start_ < 64" 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: end_ < 64 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "end_ < 64" 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: Range& operator-=(const Range& rhs) { 29724: 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: start_ <= rhs.start_ && end_ >= rhs.end_ 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "start_ <= rhs.start_ && end_ >= rhs.end_" 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: skip_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 29724: RangeMask(rhs.start_, rhs.end_); 29724: invalid_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 29724: RangeMask(rhs.start_, rhs.end_); 29724: return *this; 29724: } 29724: 29724: 29724: Range operator~() { 29724: Range res = *this; 29724: res.skip_mask_ = ~skip_mask_ & RangeMask(start_, end_); 29724: return res; 29724: } 29724: 29724: private: 29724: friend MultiGetContext; 29724: MultiGetContext* ctx_; 29724: size_t start_; 29724: size_t end_; 29724: Mask skip_mask_; 29724: Mask invalid_mask_; 29724: 29724: Range(MultiGetContext* ctx, size_t num_keys) 29724: : ctx_(ctx), 29724: start_(0), 29724: end_(num_keys), 29724: skip_mask_(0), 29724: invalid_mask_(0) { 29724: 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: num_keys < 64 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "num_keys < 64" 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: } 29724: 29724: static Mask RangeMask(size_t start, size_t end) { 29724: return (((Mask{1} << (end - start)) - 1) << start); 29724: } 29724: 29724: Mask RemainingMask() const { 29724: return (((Mask{1} << end_) - 1) & ~((Mask{1} << start_) - 1) & 29724: ~(ctx_->value_mask_ | skip_mask_)); 29724: } 29724: 29724: size_t FindLastRemaining() const { 29724: Mask mask = RemainingMask(); 29724: size_t index = (mask >>= start_) ? start_ : 0; 29724: while (mask >>= 1) { 29724: index++; 29724: } 29724: return index; 29724: } 29724: }; 29724: 29724: 29724: Range GetMultiGetRange() { return Range(this, num_keys_); } 29724: }; 29724: 29724: } 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Iterator; 29724: struct ParsedInternalKey; 29724: class Slice; 29724: class Arena; 29724: struct ReadOptions; 29724: struct TableProperties; 29724: class GetContext; 29724: class MultiGetContext; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class TableReader { 29724: public: 29724: virtual ~TableReader() {} 29724: # 57 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: virtual InternalIterator* NewIterator( 29724: const ReadOptions& read_options, const SliceTransform* prefix_extractor, 29724: Arena* arena, bool skip_filters, TableReaderCaller caller, 29724: size_t compaction_readahead_size = 0, 29724: bool allow_unprepared_value = false) = 0; 29724: 29724: 29724: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29724: const ReadOptions& ) { 29724: return nullptr; 29724: } 29724: 29724: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29724: SequenceNumber , const Slice* ) { 29724: return nullptr; 29724: } 29724: # 85 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: virtual uint64_t ApproximateOffsetOf(const ReadOptions& read_options, 29724: const Slice& key, 29724: TableReaderCaller caller) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual uint64_t ApproximateSize(const ReadOptions& read_options, 29724: const Slice& start, const Slice& end, 29724: TableReaderCaller caller) = 0; 29724: 29724: struct Anchor { 29724: Anchor(const Slice& _user_key, size_t _range_size) 29724: : user_key(_user_key.ToStringView()), range_size(_range_size) {} 29724: std::string user_key; 29724: size_t range_size; 29724: }; 29724: 29724: 29724: 29724: virtual Status ApproximateKeyAnchors(const ReadOptions& , 29724: std::vector& ) { 29724: return Status::NotSupported("ApproximateKeyAnchors() not supported."); 29724: } 29724: 29724: 29724: 29724: virtual void SetupForCompaction() = 0; 29724: 29724: virtual std::shared_ptr GetTableProperties() const = 0; 29724: 29724: 29724: virtual void Prepare(const Slice& ) {} 29724: 29724: 29724: virtual size_t ApproximateMemoryUsage() const = 0; 29724: # 135 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: virtual Status Get(const ReadOptions& readOptions, const Slice& key, 29724: GetContext* get_context, 29724: const SliceTransform* prefix_extractor, 29724: bool skip_filters = false) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status MultiGetFilter(const ReadOptions& , 29724: const SliceTransform* , 29724: MultiGetContext::Range* ) { 29724: return Status::NotSupported(); 29724: } 29724: 29724: virtual void MultiGet(const ReadOptions& readOptions, 29724: const MultiGetContext::Range* mget_range, 29724: const SliceTransform* prefix_extractor, 29724: bool skip_filters = false) { 29724: for (auto iter = mget_range->begin(); iter != mget_range->end(); ++iter) { 29724: *iter->s = Get(readOptions, iter->ikey, iter->get_context, 29724: prefix_extractor, skip_filters); 29724: } 29724: } 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: virtual Status Prefetch(const ReadOptions& , 29724: const Slice* begin = nullptr, 29724: const Slice* end = nullptr) { 29724: (void)begin; 29724: (void)end; 29724: 29724: 29724: return Status::OK(); 29724: } 29724: 29724: 29724: virtual Status DumpTable(WritableFile* ) { 29724: return Status::NotSupported("DumpTable() not supported"); 29724: } 29724: 29724: 29724: virtual Status VerifyChecksum(const ReadOptions& , 29724: TableReaderCaller ) { 29724: return Status::NotSupported("VerifyChecksum() not supported"); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void MarkObsolete(uint32_t ) { 29724: 29724: } 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 29724: Status GetUniqueIdFromTableProperties(const TableProperties &props, 29724: std::string *out_id); 29724: # 47 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 29724: Status GetExtendedUniqueIdFromTableProperties(const TableProperties &props, 29724: std::string *out_id); 29724: 29724: 29724: 29724: 29724: std::string UniqueIdToHumanString(const std::string &id); 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: using UniqueId64x2 = std::array; 29724: 29724: 29724: constexpr UniqueId64x2 kNullUniqueId64x2 = {}; 29724: 29724: 29724: 29724: using UniqueId64x3 = std::array; 29724: 29724: 29724: constexpr UniqueId64x3 kNullUniqueId64x3 = {}; 29724: 29724: 29724: struct UniqueIdPtr { 29724: uint64_t *ptr = nullptr; 29724: bool extended = false; 29724: 29724: UniqueIdPtr(UniqueId64x2 *id) { 29724: ptr = (*id).data(); 29724: extended = false; 29724: } 29724: UniqueIdPtr(UniqueId64x3 *id) { 29724: ptr = (*id).data(); 29724: extended = true; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status GetSstInternalUniqueId(const std::string &db_id, 29724: const std::string &db_session_id, 29724: uint64_t file_number, UniqueIdPtr out, 29724: bool force = false); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void InternalUniqueIdToExternal(UniqueIdPtr in_out); 29724: 29724: 29724: 29724: void ExternalUniqueIdToInternal(UniqueIdPtr in_out); 29724: 29724: 29724: std::string EncodeUniqueIdBytes(UniqueIdPtr in); 29724: 29724: 29724: Status DecodeUniqueIdBytes(const std::string &unique_id, UniqueIdPtr out); 29724: 29724: 29724: 29724: std::string InternalUniqueIdToHumanString(UniqueIdPtr in); 29724: # 85 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 29724: std::string EncodeSessionId(uint64_t upper, uint64_t lower); 29724: 29724: 29724: 29724: 29724: Status DecodeSessionId(const std::string &db_session_id, uint64_t *upper, 29724: uint64_t *lower); 29724: 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: enum Tag : uint32_t { 29724: kComparator = 1, 29724: kLogNumber = 2, 29724: kNextFileNumber = 3, 29724: kLastSequence = 4, 29724: kCompactCursor = 5, 29724: kDeletedFile = 6, 29724: kNewFile = 7, 29724: 29724: kPrevLogNumber = 9, 29724: kMinLogNumberToKeep = 10, 29724: 29724: 29724: kNewFile2 = 100, 29724: kNewFile3 = 102, 29724: kNewFile4 = 103, 29724: kColumnFamily = 200, 29724: kColumnFamilyAdd = 201, 29724: kColumnFamilyDrop = 202, 29724: kMaxColumnFamily = 203, 29724: 29724: kInAtomicGroup = 300, 29724: 29724: kBlobFileAddition = 400, 29724: kBlobFileGarbage, 29724: 29724: 29724: kTagSafeIgnoreMask = 1 << 13, 29724: 29724: 29724: kDbId, 29724: kBlobFileAddition_DEPRECATED, 29724: kBlobFileGarbage_DEPRECATED, 29724: kWalAddition, 29724: kWalDeletion, 29724: kFullHistoryTsLow, 29724: kWalAddition2, 29724: kWalDeletion2, 29724: kPersistUserDefinedTimestamps, 29724: }; 29724: 29724: enum NewFileCustomTag : uint32_t { 29724: kTerminate = 1, 29724: kNeedCompaction = 2, 29724: 29724: 29724: 29724: kMinLogNumberToKeepHack = 3, 29724: kOldestBlobFileNumber = 4, 29724: kOldestAncesterTime = 5, 29724: kFileCreationTime = 6, 29724: kFileChecksum = 7, 29724: kFileChecksumFuncName = 8, 29724: kTemperature = 9, 29724: kMinTimestamp = 10, 29724: kMaxTimestamp = 11, 29724: kUniqueId = 12, 29724: kEpochNumber = 13, 29724: kCompensatedRangeDeletionSize = 14, 29724: kTailSize = 15, 29724: kUserDefinedTimestampsPersisted = 16, 29724: 29724: 29724: 29724: kCustomTagNonSafeIgnoreMask = 1 << 6, 29724: 29724: 29724: kPathId, 29724: }; 29724: 29724: class VersionSet; 29724: 29724: constexpr uint64_t kFileNumberMask = 0x3FFFFFFFFFFFFFFF; 29724: constexpr uint64_t kUnknownOldestAncesterTime = 0; 29724: constexpr uint64_t kUnknownNewestKeyTime = 0; 29724: constexpr uint64_t kUnknownFileCreationTime = 0; 29724: constexpr uint64_t kUnknownEpochNumber = 0; 29724: 29724: 29724: constexpr uint64_t kReservedEpochNumberForFileIngestedBehind = 1; 29724: 29724: uint64_t PackFileNumberAndPathId(uint64_t number, uint64_t path_id); 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct FileDescriptor { 29724: 29724: TableReader* table_reader; 29724: uint64_t packed_number_and_path_id; 29724: uint64_t file_size; 29724: SequenceNumber smallest_seqno; 29724: SequenceNumber largest_seqno; 29724: 29724: FileDescriptor() : FileDescriptor(0, 0, 0) {} 29724: 29724: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size) 29724: : FileDescriptor(number, path_id, _file_size, kMaxSequenceNumber, 0) {} 29724: 29724: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size, 29724: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno) 29724: : table_reader(nullptr), 29724: packed_number_and_path_id(PackFileNumberAndPathId(number, path_id)), 29724: file_size(_file_size), 29724: smallest_seqno(_smallest_seqno), 29724: largest_seqno(_largest_seqno) {} 29724: 29724: FileDescriptor(const FileDescriptor& fd) { *this = fd; } 29724: 29724: FileDescriptor& operator=(const FileDescriptor& fd) { 29724: table_reader = fd.table_reader; 29724: packed_number_and_path_id = fd.packed_number_and_path_id; 29724: file_size = fd.file_size; 29724: smallest_seqno = fd.smallest_seqno; 29724: largest_seqno = fd.largest_seqno; 29724: return *this; 29724: } 29724: 29724: uint64_t GetNumber() const { 29724: return packed_number_and_path_id & kFileNumberMask; 29724: } 29724: uint32_t GetPathId() const { 29724: return static_cast(packed_number_and_path_id / 29724: (kFileNumberMask + 1)); 29724: } 29724: uint64_t GetFileSize() const { return file_size; } 29724: }; 29724: 29724: struct FileSampledStats { 29724: FileSampledStats() : num_reads_sampled(0) {} 29724: FileSampledStats(const FileSampledStats& other) { *this = other; } 29724: FileSampledStats& operator=(const FileSampledStats& other) { 29724: num_reads_sampled = other.num_reads_sampled.load(); 29724: return *this; 29724: } 29724: 29724: 29724: mutable std::atomic num_reads_sampled; 29724: }; 29724: 29724: struct FileMetaData { 29724: FileDescriptor fd; 29724: InternalKey smallest; 29724: InternalKey largest; 29724: 29724: 29724: Cache::Handle* table_reader_handle = nullptr; 29724: 29724: FileSampledStats stats; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t compensated_file_size = 0; 29724: 29724: 29724: uint64_t num_entries = 29724: 0; 29724: 29724: uint64_t num_deletions = 0; 29724: uint64_t raw_key_size = 0; 29724: uint64_t raw_value_size = 0; 29724: uint64_t num_range_deletions = 0; 29724: 29724: 29724: 29724: uint64_t compensated_range_deletion_size = 0; 29724: 29724: int refs = 0; 29724: 29724: bool being_compacted = false; 29724: bool init_stats_from_file = false; 29724: 29724: 29724: bool marked_for_compaction = false; 29724: 29724: Temperature temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: uint64_t oldest_blob_file_number = kInvalidBlobFileNumber; 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: uint64_t oldest_ancester_time = kUnknownOldestAncesterTime; 29724: 29724: 29724: uint64_t file_creation_time = kUnknownFileCreationTime; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t epoch_number = kUnknownEpochNumber; 29724: 29724: 29724: std::string file_checksum = kUnknownFileChecksum; 29724: 29724: 29724: std::string file_checksum_func_name = kUnknownFileChecksumFuncName; 29724: 29724: 29724: UniqueId64x2 unique_id{}; 29724: 29724: 29724: 29724: uint64_t tail_size = 0; 29724: 29724: 29724: 29724: 29724: bool user_defined_timestamps_persisted = true; 29724: 29724: FileMetaData() = default; 29724: 29724: FileMetaData(uint64_t file, uint32_t file_path_id, uint64_t file_size, 29724: const InternalKey& smallest_key, const InternalKey& largest_key, 29724: const SequenceNumber& smallest_seq, 29724: const SequenceNumber& largest_seq, bool marked_for_compact, 29724: Temperature _temperature, uint64_t oldest_blob_file, 29724: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 29724: uint64_t _epoch_number, const std::string& _file_checksum, 29724: const std::string& _file_checksum_func_name, 29724: UniqueId64x2 _unique_id, 29724: const uint64_t _compensated_range_deletion_size, 29724: uint64_t _tail_size, bool _user_defined_timestamps_persisted) 29724: : fd(file, file_path_id, file_size, smallest_seq, largest_seq), 29724: smallest(smallest_key), 29724: largest(largest_key), 29724: compensated_range_deletion_size(_compensated_range_deletion_size), 29724: marked_for_compaction(marked_for_compact), 29724: temperature(_temperature), 29724: oldest_blob_file_number(oldest_blob_file), 29724: oldest_ancester_time(_oldest_ancester_time), 29724: file_creation_time(_file_creation_time), 29724: epoch_number(_epoch_number), 29724: file_checksum(_file_checksum), 29724: file_checksum_func_name(_file_checksum_func_name), 29724: unique_id(std::move(_unique_id)), 29724: tail_size(_tail_size), 29724: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) { 29724: rocksdb::SyncPoint::GetInstance()->Process("FileMetaData::FileMetaData", this); 29724: } 29724: 29724: 29724: 29724: Status UpdateBoundaries(const Slice& key, const Slice& value, 29724: SequenceNumber seqno, ValueType value_type); 29724: 29724: 29724: 29724: void UpdateBoundariesForRange(const InternalKey& start, 29724: const InternalKey& end, SequenceNumber seqno, 29724: const InternalKeyComparator& icmp) { 29724: if (smallest.size() == 0 || icmp.Compare(start, smallest) < 0) { 29724: smallest = start; 29724: } 29724: if (largest.size() == 0 || icmp.Compare(largest, end) < 0) { 29724: largest = end; 29724: } 29724: 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: icmp.Compare(smallest, largest) <= 0 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "icmp.Compare(smallest, largest) <= 0" 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: fd.smallest_seqno = std::min(fd.smallest_seqno, seqno); 29724: fd.largest_seqno = std::max(fd.largest_seqno, seqno); 29724: } 29724: 29724: 29724: 29724: 29724: uint64_t TryGetOldestAncesterTime() { 29724: if (oldest_ancester_time != kUnknownOldestAncesterTime) { 29724: return oldest_ancester_time; 29724: } else if (fd.table_reader != nullptr && 29724: fd.table_reader->GetTableProperties() != nullptr) { 29724: return fd.table_reader->GetTableProperties()->creation_time; 29724: } 29724: return kUnknownOldestAncesterTime; 29724: } 29724: 29724: uint64_t TryGetFileCreationTime() { 29724: if (file_creation_time != kUnknownFileCreationTime) { 29724: return file_creation_time; 29724: } else if (fd.table_reader != nullptr && 29724: fd.table_reader->GetTableProperties() != nullptr) { 29724: return fd.table_reader->GetTableProperties()->file_creation_time; 29724: } 29724: return kUnknownFileCreationTime; 29724: } 29724: 29724: 29724: 29724: uint64_t TryGetNewestKeyTime(FileMetaData* prev_file = nullptr) { 29724: if (fd.table_reader != nullptr && 29724: fd.table_reader->GetTableProperties() != nullptr) { 29724: uint64_t newest_key_time = 29724: fd.table_reader->GetTableProperties()->newest_key_time; 29724: if (newest_key_time != kUnknownNewestKeyTime) { 29724: return newest_key_time; 29724: } 29724: } 29724: if (prev_file != nullptr) { 29724: uint64_t prev_oldest_ancestor_time = 29724: prev_file->TryGetOldestAncesterTime(); 29724: if (prev_oldest_ancestor_time != kUnknownOldestAncesterTime) { 29724: return prev_oldest_ancestor_time; 29724: } 29724: } 29724: return kUnknownNewestKeyTime; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: size_t usage = 0; 29724: 29724: usage += malloc_usable_size(const_cast(this)); 29724: 29724: 29724: 29724: usage += smallest.size() + largest.size() + file_checksum.size() + 29724: file_checksum_func_name.size(); 29724: return usage; 29724: } 29724: 29724: 29724: 29724: bool FileIsStandAloneRangeTombstone() const { 29724: bool res = num_range_deletions == 1 && num_entries == num_range_deletions; 29724: 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !res || fd.smallest_seqno == fd.largest_seqno 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!res || fd.smallest_seqno == fd.largest_seqno" 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: return res; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: struct FdWithKeyRange { 29724: FileDescriptor fd; 29724: FileMetaData* file_metadata; 29724: Slice smallest_key; 29724: Slice largest_key; 29724: 29724: FdWithKeyRange() 29724: : fd(), file_metadata(nullptr), smallest_key(), largest_key() {} 29724: 29724: FdWithKeyRange(FileDescriptor _fd, Slice _smallest_key, Slice _largest_key, 29724: FileMetaData* _file_metadata) 29724: : fd(_fd), 29724: file_metadata(_file_metadata), 29724: smallest_key(_smallest_key), 29724: largest_key(_largest_key) {} 29724: }; 29724: 29724: 29724: 29724: struct LevelFilesBrief { 29724: size_t num_files; 29724: FdWithKeyRange* files; 29724: LevelFilesBrief() { 29724: num_files = 0; 29724: files = nullptr; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class VersionEdit { 29724: public: 29724: void Clear(); 29724: 29724: void SetDBId(const std::string& db_id) { 29724: has_db_id_ = true; 29724: db_id_ = db_id; 29724: } 29724: bool HasDbId() const { return has_db_id_; } 29724: const std::string& GetDbId() const { return db_id_; } 29724: 29724: void SetComparatorName(const Slice& name) { 29724: has_comparator_ = true; 29724: comparator_ = name.ToString(); 29724: } 29724: bool HasComparatorName() const { return has_comparator_; } 29724: const std::string& GetComparatorName() const { return comparator_; } 29724: 29724: void SetPersistUserDefinedTimestamps(bool persist_user_defined_timestamps) { 29724: has_persist_user_defined_timestamps_ = true; 29724: persist_user_defined_timestamps_ = persist_user_defined_timestamps; 29724: } 29724: bool HasPersistUserDefinedTimestamps() const { 29724: return has_persist_user_defined_timestamps_; 29724: } 29724: bool GetPersistUserDefinedTimestamps() const { 29724: return persist_user_defined_timestamps_; 29724: } 29724: 29724: void SetLogNumber(uint64_t num) { 29724: has_log_number_ = true; 29724: log_number_ = num; 29724: } 29724: bool HasLogNumber() const { return has_log_number_; } 29724: uint64_t GetLogNumber() const { return log_number_; } 29724: 29724: void SetPrevLogNumber(uint64_t num) { 29724: has_prev_log_number_ = true; 29724: prev_log_number_ = num; 29724: } 29724: bool HasPrevLogNumber() const { return has_prev_log_number_; } 29724: uint64_t GetPrevLogNumber() const { return prev_log_number_; } 29724: 29724: void SetNextFile(uint64_t num) { 29724: has_next_file_number_ = true; 29724: next_file_number_ = num; 29724: } 29724: bool HasNextFile() const { return has_next_file_number_; } 29724: uint64_t GetNextFile() const { return next_file_number_; } 29724: 29724: void SetMaxColumnFamily(uint32_t max_column_family) { 29724: has_max_column_family_ = true; 29724: max_column_family_ = max_column_family; 29724: } 29724: bool HasMaxColumnFamily() const { return has_max_column_family_; } 29724: uint32_t GetMaxColumnFamily() const { return max_column_family_; } 29724: 29724: void SetMinLogNumberToKeep(uint64_t num) { 29724: has_min_log_number_to_keep_ = true; 29724: min_log_number_to_keep_ = num; 29724: } 29724: bool HasMinLogNumberToKeep() const { return has_min_log_number_to_keep_; } 29724: uint64_t GetMinLogNumberToKeep() const { return min_log_number_to_keep_; } 29724: 29724: void SetLastSequence(SequenceNumber seq) { 29724: has_last_sequence_ = true; 29724: last_sequence_ = seq; 29724: } 29724: bool HasLastSequence() const { return has_last_sequence_; } 29724: SequenceNumber GetLastSequence() const { return last_sequence_; } 29724: 29724: 29724: void DeleteFile(int level, uint64_t file) { 29724: deleted_files_.emplace(level, file); 29724: } 29724: 29724: 29724: using DeletedFiles = std::set>; 29724: const DeletedFiles& GetDeletedFiles() const { return deleted_files_; } 29724: 29724: 29724: 29724: 29724: 29724: void AddFile(int level, uint64_t file, uint32_t file_path_id, 29724: uint64_t file_size, const InternalKey& smallest, 29724: const InternalKey& largest, const SequenceNumber& smallest_seqno, 29724: const SequenceNumber& largest_seqno, bool marked_for_compaction, 29724: Temperature temperature, uint64_t oldest_blob_file_number, 29724: uint64_t oldest_ancester_time, uint64_t file_creation_time, 29724: uint64_t epoch_number, const std::string& file_checksum, 29724: const std::string& file_checksum_func_name, 29724: const UniqueId64x2& unique_id, 29724: const uint64_t compensated_range_deletion_size, 29724: uint64_t tail_size, bool user_defined_timestamps_persisted) { 29724: 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: smallest_seqno <= largest_seqno 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "smallest_seqno <= largest_seqno" 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: new_files_.emplace_back( 29724: level, 29724: FileMetaData(file, file_path_id, file_size, smallest, largest, 29724: smallest_seqno, largest_seqno, marked_for_compaction, 29724: temperature, oldest_blob_file_number, oldest_ancester_time, 29724: file_creation_time, epoch_number, file_checksum, 29724: file_checksum_func_name, unique_id, 29724: compensated_range_deletion_size, tail_size, 29724: user_defined_timestamps_persisted)); 29724: files_to_quarantine_.push_back(file); 29724: if (!HasLastSequence() || largest_seqno > GetLastSequence()) { 29724: SetLastSequence(largest_seqno); 29724: } 29724: } 29724: 29724: void AddFile(int level, const FileMetaData& f) { 29724: 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: f.fd.smallest_seqno <= f.fd.largest_seqno 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "f.fd.smallest_seqno <= f.fd.largest_seqno" 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: new_files_.emplace_back(level, f); 29724: files_to_quarantine_.push_back(f.fd.GetNumber()); 29724: if (!HasLastSequence() || f.fd.largest_seqno > GetLastSequence()) { 29724: SetLastSequence(f.fd.largest_seqno); 29724: } 29724: } 29724: 29724: 29724: using NewFiles = std::vector>; 29724: const NewFiles& GetNewFiles() const { return new_files_; } 29724: 29724: NewFiles& GetMutableNewFiles() { return new_files_; } 29724: 29724: 29724: using CompactCursors = std::vector>; 29724: const CompactCursors& GetCompactCursors() const { return compact_cursors_; } 29724: void AddCompactCursor(int level, const InternalKey& cursor) { 29724: compact_cursors_.push_back(std::make_pair(level, cursor)); 29724: } 29724: void SetCompactCursors( 29724: const std::vector& compact_cursors_by_level) { 29724: compact_cursors_.clear(); 29724: compact_cursors_.reserve(compact_cursors_by_level.size()); 29724: for (int i = 0; i < (int)compact_cursors_by_level.size(); i++) { 29724: if (compact_cursors_by_level[i].Valid()) { 29724: compact_cursors_.push_back( 29724: std::make_pair(i, compact_cursors_by_level[i])); 29724: } 29724: } 29724: } 29724: 29724: 29724: void AddBlobFile(uint64_t blob_file_number, uint64_t total_blob_count, 29724: uint64_t total_blob_bytes, std::string checksum_method, 29724: std::string checksum_value) { 29724: blob_file_additions_.emplace_back( 29724: blob_file_number, total_blob_count, total_blob_bytes, 29724: std::move(checksum_method), std::move(checksum_value)); 29724: files_to_quarantine_.push_back(blob_file_number); 29724: } 29724: 29724: void AddBlobFile(BlobFileAddition blob_file_addition) { 29724: blob_file_additions_.emplace_back(std::move(blob_file_addition)); 29724: files_to_quarantine_.push_back( 29724: blob_file_additions_.back().GetBlobFileNumber()); 29724: } 29724: 29724: 29724: using BlobFileAdditions = std::vector; 29724: const BlobFileAdditions& GetBlobFileAdditions() const { 29724: return blob_file_additions_; 29724: } 29724: 29724: void SetBlobFileAdditions(BlobFileAdditions blob_file_additions) { 29724: 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: blob_file_additions_.empty() 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "blob_file_additions_.empty()" 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: blob_file_additions_ = std::move(blob_file_additions); 29724: std::for_each( 29724: blob_file_additions_.begin(), blob_file_additions_.end(), 29724: [&](const BlobFileAddition& blob_file) { 29724: files_to_quarantine_.push_back(blob_file.GetBlobFileNumber()); 29724: }); 29724: } 29724: 29724: 29724: 29724: void AddBlobFileGarbage(uint64_t blob_file_number, 29724: uint64_t garbage_blob_count, 29724: uint64_t garbage_blob_bytes) { 29724: blob_file_garbages_.emplace_back(blob_file_number, garbage_blob_count, 29724: garbage_blob_bytes); 29724: } 29724: 29724: void AddBlobFileGarbage(BlobFileGarbage blob_file_garbage) { 29724: blob_file_garbages_.emplace_back(std::move(blob_file_garbage)); 29724: } 29724: 29724: 29724: using BlobFileGarbages = std::vector; 29724: const BlobFileGarbages& GetBlobFileGarbages() const { 29724: return blob_file_garbages_; 29724: } 29724: 29724: void SetBlobFileGarbages(BlobFileGarbages blob_file_garbages) { 29724: 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: blob_file_garbages_.empty() 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "blob_file_garbages_.empty()" 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: blob_file_garbages_ = std::move(blob_file_garbages); 29724: } 29724: 29724: 29724: 29724: void AddWal(WalNumber number, WalMetadata metadata = WalMetadata()) { 29724: 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: NumEntries() == wal_additions_.size() 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "NumEntries() == wal_additions_.size()" 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: wal_additions_.emplace_back(number, std::move(metadata)); 29724: } 29724: 29724: 29724: const WalAdditions& GetWalAdditions() const { return wal_additions_; } 29724: 29724: bool IsWalAddition() const { return !wal_additions_.empty(); } 29724: 29724: 29724: 29724: void DeleteWalsBefore(WalNumber number) { 29724: 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: (NumEntries() == 1) == !wal_deletion_.IsEmpty() 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "(NumEntries() == 1) == !wal_deletion_.IsEmpty()" 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: wal_deletion_ = WalDeletion(number); 29724: } 29724: 29724: const WalDeletion& GetWalDeletion() const { return wal_deletion_; } 29724: 29724: bool IsWalDeletion() const { return !wal_deletion_.IsEmpty(); } 29724: 29724: bool IsWalManipulation() const { 29724: size_t entries = NumEntries(); 29724: return (entries > 0) && ((entries == wal_additions_.size()) || 29724: (entries == !wal_deletion_.IsEmpty())); 29724: } 29724: 29724: 29724: size_t NumEntries() const { 29724: return new_files_.size() + deleted_files_.size() + 29724: blob_file_additions_.size() + blob_file_garbages_.size() + 29724: wal_additions_.size() + !wal_deletion_.IsEmpty(); 29724: } 29724: 29724: void SetColumnFamily(uint32_t column_family_id) { 29724: column_family_ = column_family_id; 29724: } 29724: uint32_t GetColumnFamily() const { return column_family_; } 29724: 29724: const std::string& GetColumnFamilyName() const { return column_family_name_; } 29724: 29724: 29724: void AddColumnFamily(const std::string& name) { 29724: 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !is_column_family_drop_ 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!is_column_family_drop_" 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !is_column_family_add_ 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!is_column_family_add_" 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: NumEntries() == 0 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "NumEntries() == 0" 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: is_column_family_add_ = true; 29724: column_family_name_ = name; 29724: } 29724: 29724: 29724: void DropColumnFamily() { 29724: 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !is_column_family_drop_ 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!is_column_family_drop_" 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !is_column_family_add_ 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!is_column_family_add_" 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: NumEntries() == 0 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "NumEntries() == 0" 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: is_column_family_drop_ = true; 29724: } 29724: 29724: bool IsColumnFamilyManipulation() const { 29724: return is_column_family_add_ || is_column_family_drop_; 29724: } 29724: 29724: bool IsColumnFamilyAdd() const { return is_column_family_add_; } 29724: 29724: bool IsColumnFamilyDrop() const { return is_column_family_drop_; } 29724: 29724: void MarkAtomicGroup(uint32_t remaining_entries) { 29724: is_in_atomic_group_ = true; 29724: remaining_entries_ = remaining_entries; 29724: } 29724: bool IsInAtomicGroup() const { return is_in_atomic_group_; } 29724: void SetRemainingEntries(uint32_t remaining_entries) { 29724: remaining_entries_ = remaining_entries; 29724: } 29724: uint32_t GetRemainingEntries() const { return remaining_entries_; } 29724: 29724: bool HasFullHistoryTsLow() const { return !full_history_ts_low_.empty(); } 29724: const std::string& GetFullHistoryTsLow() const { 29724: 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: HasFullHistoryTsLow() 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "HasFullHistoryTsLow()" 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: return full_history_ts_low_; 29724: } 29724: void SetFullHistoryTsLow(std::string full_history_ts_low) { 29724: 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !full_history_ts_low.empty() 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!full_history_ts_low.empty()" 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: full_history_ts_low_ = std::move(full_history_ts_low); 29724: } 29724: # 718 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: bool EncodeTo(std::string* dst, 29724: std::optional ts_sz = std::nullopt) const; 29724: Status DecodeFrom(const Slice& src); 29724: 29724: const autovector* GetFilesToQuarantineIfCommitFail() const { 29724: return &files_to_quarantine_; 29724: } 29724: 29724: std::string DebugString(bool hex_key = false) const; 29724: std::string DebugJSON(int edit_num, bool hex_key = false) const; 29724: 29724: private: 29724: bool GetLevel(Slice* input, int* level, const char** msg); 29724: 29724: const char* DecodeNewFile4From(Slice* input); 29724: 29724: 29724: 29724: 29724: void EncodeFileBoundaries(std::string* dst, const FileMetaData& meta, 29724: size_t ts_sz) const; 29724: 29724: int max_level_ = 0; 29724: std::string db_id_; 29724: std::string comparator_; 29724: uint64_t log_number_ = 0; 29724: uint64_t prev_log_number_ = 0; 29724: uint64_t next_file_number_ = 0; 29724: uint32_t max_column_family_ = 0; 29724: 29724: uint64_t min_log_number_to_keep_ = 0; 29724: SequenceNumber last_sequence_ = 0; 29724: bool has_db_id_ = false; 29724: bool has_comparator_ = false; 29724: bool has_log_number_ = false; 29724: bool has_prev_log_number_ = false; 29724: bool has_next_file_number_ = false; 29724: bool has_max_column_family_ = false; 29724: bool has_min_log_number_to_keep_ = false; 29724: bool has_last_sequence_ = false; 29724: bool has_persist_user_defined_timestamps_ = false; 29724: 29724: 29724: CompactCursors compact_cursors_; 29724: 29724: DeletedFiles deleted_files_; 29724: NewFiles new_files_; 29724: 29724: BlobFileAdditions blob_file_additions_; 29724: BlobFileGarbages blob_file_garbages_; 29724: 29724: WalAdditions wal_additions_; 29724: WalDeletion wal_deletion_; 29724: 29724: 29724: 29724: uint32_t column_family_ = 0; 29724: 29724: 29724: 29724: bool is_column_family_drop_ = false; 29724: bool is_column_family_add_ = false; 29724: std::string column_family_name_; 29724: 29724: bool is_in_atomic_group_ = false; 29724: uint32_t remaining_entries_ = 0; 29724: 29724: std::string full_history_ts_low_; 29724: bool persist_user_defined_timestamps_ = true; 29724: # 796 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: autovector files_to_quarantine_; 29724: }; 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cinttypes" 1 3 29724: # 32 "/usr/include/c++/14/cinttypes" 3 29724: 29724: # 33 "/usr/include/c++/14/cinttypes" 3 29724: # 46 "/usr/include/c++/14/cinttypes" 3 29724: # 1 "/usr/include/inttypes.h" 1 3 4 29724: # 327 "/usr/include/inttypes.h" 3 4 29724: 29724: # 327 "/usr/include/inttypes.h" 3 4 29724: extern "C" { 29724: # 341 "/usr/include/inttypes.h" 3 4 29724: typedef struct 29724: { 29724: __extension__ long long int quot; 29724: __extension__ long long int rem; 29724: } imaxdiv_t; 29724: 29724: 29724: 29724: 29724: 29724: extern intmax_t imaxabs (intmax_t __n) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) 29724: noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern intmax_t strtoimax (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) noexcept (true); 29724: 29724: 29724: extern uintmax_t strtoumax (const char *__restrict __nptr, 29724: char ** __restrict __endptr, int __base) noexcept (true); 29724: 29724: 29724: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base) 29724: noexcept (true); 29724: 29724: 29724: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, 29724: wchar_t ** __restrict __endptr, int __base) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern intmax_t strtoimax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoimax") 29724: 29724: ; 29724: extern uintmax_t strtoumax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoumax") 29724: 29724: ; 29724: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoimax") 29724: 29724: 29724: ; 29724: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoumax") 29724: 29724: 29724: ; 29724: # 415 "/usr/include/inttypes.h" 3 4 29724: } 29724: # 47 "/usr/include/c++/14/cinttypes" 2 3 29724: # 55 "/usr/include/c++/14/cinttypes" 3 29724: namespace std 29724: { 29724: 29724: using ::imaxdiv_t; 29724: 29724: 29724: using ::imaxabs; 29724: using ::imaxdiv; 29724: 29724: 29724: 29724: 29724: 29724: using ::strtoimax; 29724: using ::strtoumax; 29724: 29724: 29724: using ::wcstoimax; 29724: using ::wcstoumax; 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 2 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: namespace rocksdb { 29724: 29724: constexpr uint64_t kUnknownTimeBeforeAll = 0; 29724: constexpr SequenceNumber kUnknownSeqnoBeforeAll = 0; 29724: 29724: 29724: 29724: constexpr uint64_t kMaxSeqnoTimePairsPerSST = 100; 29724: # 38 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: constexpr uint64_t kMaxSeqnoTimePairsPerCF = 100; 29724: 29724: constexpr uint64_t kMaxSeqnoToTimeEntries = kMaxSeqnoTimePairsPerCF * 10; 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: class SeqnoToTimeMapping { 29724: public: 29724: 29724: struct SeqnoTimePair { 29724: SequenceNumber seqno = 0; 29724: uint64_t time = 0; 29724: 29724: SeqnoTimePair() = default; 29724: SeqnoTimePair(SequenceNumber _seqno, uint64_t _time) 29724: : seqno(_seqno), time(_time) {} 29724: 29724: 29724: void Encode(std::string& dest) const; 29724: 29724: 29724: Status Decode(Slice& input); 29724: 29724: 29724: SeqnoTimePair ComputeDelta(const SeqnoTimePair& base) const { 29724: return {seqno - base.seqno, time - base.time}; 29724: } 29724: 29724: 29724: void ApplyDelta(const SeqnoTimePair& delta_or_base) { 29724: seqno += delta_or_base.seqno; 29724: time += delta_or_base.time; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: bool Merge(const SeqnoTimePair& other); 29724: 29724: 29724: bool operator<(const SeqnoTimePair& other) const { 29724: return std::tie(seqno, time) < std::tie(other.seqno, other.time); 29724: } 29724: 29724: bool operator==(const SeqnoTimePair& other) const { 29724: return std::tie(seqno, time) == std::tie(other.seqno, other.time); 29724: } 29724: 29724: static bool SeqnoLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 29724: return a.seqno < b.seqno; 29724: } 29724: 29724: static bool TimeLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 29724: return a.time < b.time; 29724: } 29724: }; 29724: 29724: 29724: SeqnoToTimeMapping() {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: SeqnoToTimeMapping& SetMaxTimeSpan(uint64_t max_time_span); 29724: 29724: 29724: 29724: 29724: 29724: SeqnoToTimeMapping& SetCapacity(uint64_t capacity); 29724: 29724: 29724: 29724: 29724: 29724: bool PrePopulate(SequenceNumber from_seqno, SequenceNumber to_seqno, 29724: uint64_t from_time, uint64_t to_time); 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool Append(SequenceNumber seqno, uint64_t time); 29724: 29724: 29724: 29724: void Clear() { 29724: pairs_.clear(); 29724: enforced_ = true; 29724: } 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: SeqnoToTimeMapping& Enforce(uint64_t now = 0); 29724: 29724: 29724: 29724: 29724: void AddUnenforced(SequenceNumber seqno, uint64_t time); 29724: 29724: 29724: 29724: 29724: Status DecodeFrom(const std::string& pairs_str); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void CopyFromSeqnoRange(const SeqnoToTimeMapping& src, 29724: SequenceNumber from_seqno, 29724: SequenceNumber to_seqno = kMaxSequenceNumber); 29724: void CopyFrom(const SeqnoToTimeMapping& src) { 29724: CopyFromSeqnoRange(src, kUnknownSeqnoBeforeAll, kMaxSequenceNumber); 29724: } 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: uint64_t GetProximalTimeBeforeSeqno(SequenceNumber seqno) const; 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: SequenceNumber GetProximalSeqnoBeforeTime(uint64_t time) const; 29724: 29724: 29724: 29724: 29724: void GetCurrentTieringCutoffSeqnos( 29724: uint64_t current_time, uint64_t preserve_internal_time_seconds, 29724: uint64_t preclude_last_level_data_seconds, 29724: SequenceNumber* preserve_time_min_seqno, 29724: SequenceNumber* preclude_last_level_min_seqno) const; 29724: 29724: 29724: 29724: 29724: void EncodeTo(std::string& dest) const; 29724: 29724: 29724: size_t Size() const { return pairs_.size(); } 29724: 29724: uint64_t GetCapacity() const { return capacity_; } 29724: 29724: 29724: bool Empty() const { return pairs_.empty(); } 29724: 29724: 29724: 29724: std::string ToHumanString() const; 29724: 29724: 29724: const SeqnoTimePair& TEST_GetLastEntry() const { return pairs_.back(); } 29724: const std::deque& TEST_GetInternalMapping() const { 29724: return pairs_; 29724: } 29724: bool TEST_IsEnforced() const { return enforced_; } 29724: 29724: 29724: private: 29724: uint64_t max_time_span_ = 29724: # 251 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 3 4 29724: (18446744073709551615ULL) 29724: # 251 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: ; 29724: uint64_t capacity_ = 29724: # 252 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 3 4 29724: (18446744073709551615ULL) 29724: # 252 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: ; 29724: 29724: std::deque pairs_; 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: bool enforced_ = true; 29724: 29724: void EnforceMaxTimeSpan(uint64_t now = 0); 29724: void EnforceCapacity(bool strict); 29724: void SortAndMerge(); 29724: 29724: using pair_const_iterator = 29724: std::deque::const_iterator; 29724: pair_const_iterator FindGreaterTime(uint64_t time) const; 29724: pair_const_iterator FindGreaterSeqno(SequenceNumber seqno) const; 29724: pair_const_iterator FindGreaterEqSeqno(SequenceNumber seqno) const; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: Slice PackValueAndWriteTime(const Slice& value, uint64_t unix_write_time, 29724: std::string* buf); 29724: 29724: 29724: 29724: Slice PackValueAndSeqno(const Slice& value, SequenceNumber seqno, 29724: std::string* buf); 29724: 29724: 29724: uint64_t ParsePackedValueForWriteTime(const Slice& value); 29724: 29724: 29724: 29724: std::tuple ParsePackedValueWithWriteTime(const Slice& value); 29724: 29724: 29724: SequenceNumber ParsePackedValueForSeqno(const Slice& value); 29724: 29724: 29724: 29724: std::tuple ParsePackedValueWithSeqno(const Slice& value); 29724: 29724: 29724: 29724: Slice ParsePackedValueForValue(const Slice& value); 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: namespace rocksdb { 29724: 29724: 29724: class InternalTblPropColl { 29724: public: 29724: virtual ~InternalTblPropColl() {} 29724: virtual Status Finish(UserCollectedProperties* properties) = 0; 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: 29724: virtual Status InternalAdd(const Slice& key, const Slice& value, 29724: uint64_t file_size) = 0; 29724: 29724: virtual void BlockAdd(uint64_t block_uncomp_bytes, 29724: uint64_t block_compressed_bytes_fast, 29724: uint64_t block_compressed_bytes_slow) = 0; 29724: 29724: virtual UserCollectedProperties GetReadableProperties() const = 0; 29724: 29724: virtual bool NeedCompact() const { return false; } 29724: }; 29724: 29724: 29724: class InternalTblPropCollFactory { 29724: public: 29724: virtual ~InternalTblPropCollFactory() {} 29724: 29724: virtual InternalTblPropColl* CreateInternalTblPropColl( 29724: uint32_t column_family_id, int level_at_creation, int num_levels, 29724: SequenceNumber last_level_inclusive_max_seqno_threshold = 29724: kMaxSequenceNumber) = 0; 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: }; 29724: 29724: using InternalTblPropCollFactories = 29724: std::vector>; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class UserKeyTablePropertiesCollector : public InternalTblPropColl { 29724: public: 29724: 29724: explicit UserKeyTablePropertiesCollector(TablePropertiesCollector* collector) 29724: : collector_(collector) {} 29724: 29724: virtual ~UserKeyTablePropertiesCollector() {} 29724: 29724: Status InternalAdd(const Slice& key, const Slice& value, 29724: uint64_t file_size) override; 29724: 29724: void BlockAdd(uint64_t block_uncomp_bytes, 29724: uint64_t block_compressed_bytes_fast, 29724: uint64_t block_compressed_bytes_slow) override; 29724: 29724: Status Finish(UserCollectedProperties* properties) override; 29724: 29724: const char* Name() const override { return collector_->Name(); } 29724: 29724: UserCollectedProperties GetReadableProperties() const override; 29724: 29724: bool NeedCompact() const override { return collector_->NeedCompact(); } 29724: 29724: protected: 29724: std::unique_ptr collector_; 29724: }; 29724: 29724: class UserKeyTablePropertiesCollectorFactory 29724: : public InternalTblPropCollFactory { 29724: public: 29724: explicit UserKeyTablePropertiesCollectorFactory( 29724: std::shared_ptr user_collector_factory) 29724: : user_collector_factory_(user_collector_factory) {} 29724: InternalTblPropColl* CreateInternalTblPropColl( 29724: uint32_t column_family_id, int level_at_creation, int num_levels, 29724: SequenceNumber last_level_inclusive_max_seqno_threshold = 29724: kMaxSequenceNumber) override { 29724: TablePropertiesCollectorFactory::Context context; 29724: context.column_family_id = column_family_id; 29724: context.level_at_creation = level_at_creation; 29724: context.num_levels = num_levels; 29724: context.last_level_inclusive_max_seqno_threshold = 29724: last_level_inclusive_max_seqno_threshold; 29724: TablePropertiesCollector* collector = 29724: user_collector_factory_->CreateTablePropertiesCollector(context); 29724: if (collector) { 29724: return new UserKeyTablePropertiesCollector(collector); 29724: } else { 29724: return nullptr; 29724: } 29724: } 29724: 29724: const char* Name() const override { return user_collector_factory_->Name(); } 29724: 29724: private: 29724: std::shared_ptr user_collector_factory_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class TimestampTablePropertiesCollector : public InternalTblPropColl { 29724: public: 29724: explicit TimestampTablePropertiesCollector(const Comparator* cmp) 29724: : cmp_(cmp), 29724: timestamp_min_(kDisableUserTimestamp), 29724: timestamp_max_(kDisableUserTimestamp) {} 29724: 29724: Status InternalAdd(const Slice& key, const Slice& , 29724: uint64_t ) override { 29724: auto user_key = ExtractUserKey(key); 29724: 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: (static_cast ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: cmp_ && cmp_->timestamp_size() > 0 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: "cmp_ && cmp_->timestamp_size() > 0" 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: ; 29724: if (user_key.size() < cmp_->timestamp_size()) { 29724: return Status::Corruption( 29724: "User key size mismatch when comparing to timestamp size."); 29724: } 29724: auto timestamp_in_key = 29724: ExtractTimestampFromUserKey(user_key, cmp_->timestamp_size()); 29724: if (timestamp_max_ == kDisableUserTimestamp || 29724: cmp_->CompareTimestamp(timestamp_in_key, timestamp_max_) > 0) { 29724: timestamp_max_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 29724: } 29724: if (timestamp_min_ == kDisableUserTimestamp || 29724: cmp_->CompareTimestamp(timestamp_min_, timestamp_in_key) > 0) { 29724: timestamp_min_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 29724: } 29724: return Status::OK(); 29724: } 29724: 29724: void BlockAdd(uint64_t , 29724: uint64_t , 29724: uint64_t ) override { 29724: return; 29724: } 29724: 29724: Status Finish(UserCollectedProperties* properties) override { 29724: 29724: 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: (static_cast ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size()) 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: "timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size())" 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: 29724: 29724: # 164 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: ; 29724: properties->insert({"rocksdb.timestamp_min", timestamp_min_}); 29724: properties->insert({"rocksdb.timestamp_max", timestamp_max_}); 29724: return Status::OK(); 29724: } 29724: 29724: const char* Name() const override { 29724: return "TimestampTablePropertiesCollector"; 29724: } 29724: 29724: UserCollectedProperties GetReadableProperties() const override { 29724: return {{"rocksdb.timestamp_min", Slice(timestamp_min_).ToString(true)}, 29724: {"rocksdb.timestamp_max", Slice(timestamp_max_).ToString(true)}}; 29724: } 29724: 29724: protected: 29724: const Comparator* const cmp_; 29724: std::string timestamp_min_; 29724: std::string timestamp_max_; 29724: }; 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 1 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29724: 29724: # 42 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 1 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: struct OperationInfo { 29724: const ThreadStatus::OperationType type; 29724: const std::string name; 29724: }; 29724: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29724: static OperationInfo global_operation_table[] = { 29724: {ThreadStatus::OP_UNKNOWN, ""}, 29724: {ThreadStatus::OP_COMPACTION, "Compaction"}, 29724: {ThreadStatus::OP_FLUSH, "Flush"}, 29724: {ThreadStatus::OP_DBOPEN, "DBOpen"}, 29724: {ThreadStatus::OP_GET, "Get"}, 29724: {ThreadStatus::OP_MULTIGET, "MultiGet"}, 29724: {ThreadStatus::OP_DBITERATOR, "DBIterator"}, 29724: {ThreadStatus::OP_VERIFY_DB_CHECKSUM, "VerifyDBChecksum"}, 29724: {ThreadStatus::OP_VERIFY_FILE_CHECKSUMS, "VerifyFileChecksums"}, 29724: {ThreadStatus::OP_GETENTITY, "GetEntity"}, 29724: {ThreadStatus::OP_MULTIGETENTITY, "MultiGetEntity"}, 29724: {ThreadStatus::OP_READ_MANIFEST, "ReadManifest"}, 29724: 29724: }; 29724: 29724: struct OperationStageInfo { 29724: const ThreadStatus::OperationStage stage; 29724: const std::string name; 29724: }; 29724: 29724: 29724: 29724: 29724: static OperationStageInfo global_op_stage_table[] = { 29724: {ThreadStatus::STAGE_UNKNOWN, ""}, 29724: {ThreadStatus::STAGE_FLUSH_RUN, "FlushJob::Run"}, 29724: {ThreadStatus::STAGE_FLUSH_WRITE_L0, "FlushJob::WriteLevel0Table"}, 29724: {ThreadStatus::STAGE_COMPACTION_PREPARE, "CompactionJob::Prepare"}, 29724: {ThreadStatus::STAGE_COMPACTION_RUN, "CompactionJob::Run"}, 29724: {ThreadStatus::STAGE_COMPACTION_PROCESS_KV, 29724: "CompactionJob::ProcessKeyValueCompaction"}, 29724: {ThreadStatus::STAGE_COMPACTION_INSTALL, "CompactionJob::Install"}, 29724: {ThreadStatus::STAGE_COMPACTION_SYNC_FILE, 29724: "CompactionJob::FinishCompactionOutputFile"}, 29724: {ThreadStatus::STAGE_PICK_MEMTABLES_TO_FLUSH, 29724: "MemTableList::PickMemtablesToFlush"}, 29724: {ThreadStatus::STAGE_MEMTABLE_ROLLBACK, 29724: "MemTableList::RollbackMemtableFlush"}, 29724: {ThreadStatus::STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 29724: "MemTableList::TryInstallMemtableFlushResults"}, 29724: }; 29724: 29724: 29724: struct StateInfo { 29724: const ThreadStatus::StateType type; 29724: const std::string name; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static StateInfo global_state_table[] = { 29724: {ThreadStatus::STATE_UNKNOWN, ""}, 29724: {ThreadStatus::STATE_MUTEX_WAIT, "Mutex Wait"}, 29724: }; 29724: 29724: struct OperationProperty { 29724: int code; 29724: std::string name; 29724: }; 29724: 29724: static OperationProperty compaction_operation_properties[] = { 29724: {ThreadStatus::COMPACTION_JOB_ID, "JobID"}, 29724: {ThreadStatus::COMPACTION_INPUT_OUTPUT_LEVEL, "InputOutputLevel"}, 29724: {ThreadStatus::COMPACTION_PROP_FLAGS, "Manual/Deletion/Trivial"}, 29724: {ThreadStatus::COMPACTION_TOTAL_INPUT_BYTES, "TotalInputBytes"}, 29724: {ThreadStatus::COMPACTION_BYTES_READ, "BytesRead"}, 29724: {ThreadStatus::COMPACTION_BYTES_WRITTEN, "BytesWritten"}, 29724: }; 29724: 29724: static OperationProperty flush_operation_properties[] = { 29724: {ThreadStatus::FLUSH_JOB_ID, "JobID"}, 29724: {ThreadStatus::FLUSH_BYTES_MEMTABLES, "BytesMemtables"}, 29724: {ThreadStatus::FLUSH_BYTES_WRITTEN, "BytesWritten"}}; 29724: # 123 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29724: } 29724: # 43 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class ColumnFamilyHandle; 29724: 29724: 29724: struct ConstantColumnFamilyInfo { 29724: 29724: public: 29724: ConstantColumnFamilyInfo(const void* _db_key, const std::string& _db_name, 29724: const std::string& _cf_name) 29724: : db_key(_db_key), db_name(_db_name), cf_name(_cf_name) {} 29724: const void* db_key; 29724: const std::string db_name; 29724: const std::string cf_name; 29724: 29724: }; 29724: 29724: 29724: 29724: struct ThreadStatusData { 29724: 29724: explicit ThreadStatusData() { 29724: enable_tracking.store(false); 29724: thread_id.store(0); 29724: thread_type.store(ThreadStatus::USER); 29724: cf_key.store(nullptr); 29724: operation_type.store(ThreadStatus::OP_UNKNOWN); 29724: op_start_time.store(0); 29724: state_type.store(ThreadStatus::STATE_UNKNOWN); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: std::atomic enable_tracking; 29724: 29724: std::atomic thread_id; 29724: std::atomic thread_type; 29724: std::atomic cf_key; 29724: std::atomic operation_type; 29724: std::atomic op_start_time; 29724: std::atomic operation_stage; 29724: std::atomic op_properties[ThreadStatus::kNumOperationProperties]; 29724: std::atomic state_type; 29724: 29724: }; 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29724: class ThreadStatusUpdater { 29724: public: 29724: ThreadStatusUpdater() {} 29724: 29724: 29724: virtual ~ThreadStatusUpdater() {} 29724: 29724: 29724: void UnregisterThread(); 29724: 29724: 29724: 29724: void ResetThreadStatus(); 29724: 29724: 29724: void SetThreadID(uint64_t thread_id); 29724: 29724: 29724: void RegisterThread(ThreadStatus::ThreadType ttype, uint64_t thread_id); 29724: 29724: void SetEnableTracking(bool enable_tracking); 29724: 29724: 29724: 29724: void SetColumnFamilyInfoKey(const void* cf_key); 29724: 29724: 29724: const void* GetColumnFamilyInfoKey(); 29724: 29724: 29724: void SetThreadOperation(const ThreadStatus::OperationType type); 29724: 29724: 29724: ThreadStatus::OperationType GetThreadOperation(); 29724: 29724: 29724: 29724: void SetOperationStartTime(const uint64_t start_time); 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29724: void SetThreadOperationProperty(int i, uint64_t value); 29724: 29724: 29724: 29724: void IncreaseThreadOperationProperty(int i, uint64_t delta); 29724: 29724: 29724: ThreadStatus::OperationStage SetThreadOperationStage( 29724: const ThreadStatus::OperationStage stage); 29724: 29724: 29724: void ClearThreadOperation(); 29724: 29724: 29724: void ClearThreadOperationProperties(); 29724: 29724: 29724: void SetThreadState(const ThreadStatus::StateType type); 29724: 29724: 29724: void ClearThreadState(); 29724: 29724: 29724: Status GetThreadList(std::vector* thread_list); 29724: 29724: 29724: 29724: 29724: void NewColumnFamilyInfo(const void* db_key, const std::string& db_name, 29724: const void* cf_key, const std::string& cf_name); 29724: 29724: 29724: 29724: 29724: void EraseDatabaseInfo(const void* db_key); 29724: 29724: 29724: 29724: 29724: void EraseColumnFamilyInfo(const void* cf_key); 29724: 29724: 29724: 29724: void TEST_VerifyColumnFamilyInfoMap( 29724: const std::vector& handles, bool check_exist); 29724: 29724: protected: 29724: 29724: 29724: static thread_local ThreadStatusData* thread_status_data_; 29724: 29724: 29724: 29724: ThreadStatusData* GetLocalThreadStatus(); 29724: 29724: 29724: 29724: ThreadStatusData* Get() { return thread_status_data_; } 29724: 29724: 29724: std::mutex thread_list_mutex_; 29724: 29724: 29724: std::unordered_set thread_data_set_; 29724: 29724: 29724: 29724: 29724: 29724: std::unordered_map cf_info_map_; 29724: 29724: 29724: 29724: std::unordered_map> db_key_map_; 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 2 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class ColumnFamilyData; 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29724: class ThreadStatusUtil { 29724: public: 29724: 29724: static void RegisterThread(const Env* env, 29724: ThreadStatus::ThreadType thread_type); 29724: 29724: 29724: static void UnregisterThread(); 29724: 29724: 29724: 29724: 29724: static void NewColumnFamilyInfo(const DB* db, const ColumnFamilyData* cfd, 29724: const std::string& cf_name, const Env* env); 29724: 29724: 29724: 29724: 29724: static void EraseColumnFamilyInfo(const ColumnFamilyData* cfd); 29724: 29724: 29724: 29724: 29724: static void EraseDatabaseInfo(const DB* db); 29724: 29724: static void SetEnableTracking(bool enable_tracking); 29724: 29724: 29724: 29724: 29724: 29724: static void SetColumnFamily(const ColumnFamilyData* cfd); 29724: 29724: static void SetThreadOperation(ThreadStatus::OperationType type); 29724: 29724: static ThreadStatus::OperationType GetThreadOperation(); 29724: 29724: static ThreadStatus::OperationStage SetThreadOperationStage( 29724: ThreadStatus::OperationStage stage); 29724: 29724: static void SetThreadOperationProperty(int code, uint64_t value); 29724: 29724: static void IncreaseThreadOperationProperty(int code, uint64_t delta); 29724: 29724: static void SetThreadState(ThreadStatus::StateType type); 29724: 29724: static void ResetThreadStatus(); 29724: 29724: 29724: static void TEST_SetStateDelay(const ThreadStatus::StateType state, 29724: int micro); 29724: static void TEST_StateDelay(const ThreadStatus::StateType state); 29724: 29724: static Env::IOActivity TEST_GetExpectedIOActivity( 29724: ThreadStatus::OperationType thread_op); 29724: 29724: 29724: protected: 29724: 29724: 29724: 29724: static bool MaybeInitThreadLocalUpdater(const Env* env); 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29724: static thread_local bool thread_updater_initialized_; 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29724: static thread_local ThreadStatusUpdater* thread_updater_local_cache_; 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: class AutoThreadOperationStageUpdater { 29724: public: 29724: explicit AutoThreadOperationStageUpdater(ThreadStatus::OperationStage stage); 29724: ~AutoThreadOperationStageUpdater(); 29724: 29724: 29724: private: 29724: ThreadStatus::OperationStage prev_stage_; 29724: 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 2 29724: # 26 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 1 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29724: 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29724: namespace rocksdb { 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29724: using UnrefHandler = void (*)(void* ptr); 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29724: class ThreadLocalPtr { 29724: public: 29724: explicit ThreadLocalPtr(UnrefHandler handler = nullptr); 29724: 29724: ThreadLocalPtr(const ThreadLocalPtr&) = delete; 29724: ThreadLocalPtr& operator=(const ThreadLocalPtr&) = delete; 29724: 29724: ~ThreadLocalPtr(); 29724: 29724: 29724: void* Get() const; 29724: 29724: 29724: void Reset(void* ptr); 29724: 29724: 29724: void* Swap(void* ptr); 29724: 29724: 29724: 29724: 29724: 29724: bool CompareAndSwap(void* ptr, void*& expected); 29724: 29724: 29724: 29724: void Scrape(autovector* ptrs, void* const replacement); 29724: 29724: using FoldFunc = std::function; 29724: 29724: 29724: 29724: 29724: void Fold(FoldFunc func, void* res); 29724: 29724: 29724: 29724: static uint32_t TEST_PeekId(); 29724: # 90 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29724: static void InitSingletons(); 29724: 29724: class StaticMeta; 29724: 29724: private: 29724: static StaticMeta* Instance(); 29724: 29724: const uint32_t id_; 29724: }; 29724: 29724: } 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class TestFSWritableFile; 29724: class FaultInjectionTestFS; 29724: 29724: enum class FaultInjectionIOType { 29724: kRead = 0, 29724: kWrite, 29724: kMetadataRead, 29724: kMetadataWrite, 29724: }; 29724: 29724: struct FSFileState { 29724: std::string filename_; 29724: uint64_t pos_at_last_append_ = 0; 29724: uint64_t pos_at_last_sync_ = 0; 29724: std::string buffer_; 29724: 29724: explicit FSFileState(const std::string& filename = {}) 29724: : filename_(filename) {} 29724: 29724: bool IsFullySynced() const { 29724: return pos_at_last_append_ == pos_at_last_sync_; 29724: } 29724: 29724: IOStatus DropUnsyncedData(); 29724: 29724: IOStatus DropRandomUnsyncedData(Random* rand); 29724: }; 29724: 29724: 29724: 29724: class TestFSWritableFile : public FSWritableFile { 29724: public: 29724: explicit TestFSWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr&& f, 29724: FaultInjectionTestFS* fs); 29724: virtual ~TestFSWritableFile(); 29724: IOStatus Append(const Slice& data, const IOOptions&, 29724: IODebugContext*) override; 29724: IOStatus Append(const Slice& data, const IOOptions& options, 29724: const DataVerificationInfo& verification_info, 29724: IODebugContext* dbg) override; 29724: IOStatus Truncate(uint64_t size, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29724: IOStatus Flush(const IOOptions&, IODebugContext*) override; 29724: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29724: IOStatus RangeSync(uint64_t , uint64_t , 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: bool IsSyncThreadSafe() const override { return true; } 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: const DataVerificationInfo& verification_info, 29724: IODebugContext* dbg) override; 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: 29724: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 29724: MutexLock l(&mutex_); 29724: return target_->GetFileSize(options, dbg); 29724: } 29724: 29724: private: 29724: FSFileState state_; 29724: FileOptions file_opts_; 29724: std::unique_ptr target_; 29724: bool writable_file_opened_; 29724: FaultInjectionTestFS* fs_; 29724: port::Mutex mutex_; 29724: const bool unsync_data_loss_; 29724: }; 29724: 29724: 29724: 29724: class TestFSRandomRWFile : public FSRandomRWFile { 29724: public: 29724: explicit TestFSRandomRWFile(const std::string& fname, 29724: std::unique_ptr&& f, 29724: FaultInjectionTestFS* fs); 29724: virtual ~TestFSRandomRWFile(); 29724: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override; 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29724: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 29724: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: 29724: private: 29724: std::unique_ptr target_; 29724: bool file_opened_; 29724: FaultInjectionTestFS* fs_; 29724: }; 29724: 29724: class TestFSRandomAccessFile : public FSRandomAccessFile { 29724: public: 29724: explicit TestFSRandomAccessFile(const std::string& fname, 29724: std::unique_ptr&& f, 29724: FaultInjectionTestFS* fs); 29724: ~TestFSRandomAccessFile() override {} 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override; 29724: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29724: std::function cb, 29724: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29724: IODebugContext* dbg) override; 29724: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: 29724: size_t GetUniqueId(char* id, size_t max_size) const override; 29724: 29724: private: 29724: std::unique_ptr target_; 29724: FaultInjectionTestFS* fs_; 29724: }; 29724: 29724: class TestFSSequentialFile : public FSSequentialFileOwnerWrapper { 29724: public: 29724: explicit TestFSSequentialFile(std::unique_ptr&& f, 29724: FaultInjectionTestFS* fs, std::string fname) 29724: : FSSequentialFileOwnerWrapper(std::move(f)), 29724: fs_(fs), 29724: fname_(std::move(fname)) {} 29724: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29724: char* scratch, IODebugContext* dbg) override; 29724: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) override; 29724: 29724: private: 29724: FaultInjectionTestFS* fs_; 29724: std::string fname_; 29724: uint64_t read_pos_ = 0; 29724: uint64_t target_read_pos_ = 0; 29724: }; 29724: 29724: class TestFSDirectory : public FSDirectory { 29724: public: 29724: explicit TestFSDirectory(FaultInjectionTestFS* fs, std::string dirname, 29724: FSDirectory* dir) 29724: : fs_(fs), dirname_(std::move(dirname)), dir_(dir) {} 29724: ~TestFSDirectory() {} 29724: 29724: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus FsyncWithDirOptions( 29724: const IOOptions& options, IODebugContext* dbg, 29724: const DirFsyncOptions& dir_fsync_options) override; 29724: 29724: private: 29724: FaultInjectionTestFS* fs_; 29724: std::string dirname_; 29724: std::unique_ptr dir_; 29724: }; 29724: 29724: class FaultInjectionTestFS : public FileSystemWrapper { 29724: public: 29724: explicit FaultInjectionTestFS(const std::shared_ptr& base) 29724: : FileSystemWrapper(base), 29724: filesystem_active_(true), 29724: filesystem_writable_(false), 29724: inject_unsynced_data_loss_(false), 29724: read_unsynced_data_(true), 29724: allow_link_open_file_(false), 29724: injected_thread_local_read_error_(DeleteThreadLocalErrorContext), 29724: injected_thread_local_write_error_(DeleteThreadLocalErrorContext), 29724: injected_thread_local_metadata_read_error_( 29724: DeleteThreadLocalErrorContext), 29724: injected_thread_local_metadata_write_error_( 29724: DeleteThreadLocalErrorContext), 29724: ingest_data_corruption_before_write_(false), 29724: checksum_handoff_func_type_(kCRC32c), 29724: fail_get_file_unique_id_(false) {} 29724: virtual ~FaultInjectionTestFS() override { fs_error_.PermitUncheckedError(); } 29724: 29724: static const char* kClassName() { return "FaultInjectionTestFS"; } 29724: const char* Name() const override { return kClassName(); } 29724: 29724: static bool IsInjectedError(const Status& s) { 29724: 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: !s.ok() 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "!s.ok()" 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; 29724: return std::strstr(s.getState(), kInjected.c_str()); 29724: } 29724: 29724: static bool IsFailedToWriteToWALError(const Status& s) { 29724: 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: !s.ok() 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "!s.ok()" 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; 29724: return std::strstr(s.getState(), kFailedToWriteToWAL.c_str()); 29724: } 29724: 29724: IOStatus NewDirectory(const std::string& name, const IOOptions& options, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus FileExists(const std::string& fname, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus GetChildren(const std::string& dir, const IOOptions& options, 29724: std::vector* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus GetChildrenFileAttributes(const std::string& dir, 29724: const IOOptions& options, 29724: std::vector* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus ReopenWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewRandomRWFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewRandomAccessFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 29724: std::unique_ptr* r, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 29724: uint64_t* file_size, IODebugContext* dbg) override; 29724: 29724: IOStatus GetFileModificationTime(const std::string& fname, 29724: const IOOptions& options, 29724: uint64_t* file_mtime, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus RenameFile(const std::string& s, const std::string& t, 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus LinkFile(const std::string& src, const std::string& target, 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 29724: uint64_t* count, IODebugContext* dbg) override; 29724: 29724: IOStatus AreFilesSame(const std::string& first, const std::string& second, 29724: const IOOptions& options, bool* res, 29724: IODebugContext* dbg) override; 29724: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 29724: std::string* output_path, 29724: IODebugContext* dbg) override; 29724: 29724: 29724: 29724: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 29724: uint64_t* disk_free, IODebugContext* dbg) override { 29724: IOStatus io_s; 29724: if (!IsFilesystemActive() && 29724: fs_error_.subcode() == IOStatus::SubCode::kNoSpace) { 29724: *disk_free = 0; 29724: } else { 29724: io_s = MaybeInjectThreadLocalError(FaultInjectionIOType::kMetadataRead, 29724: options); 29724: if (io_s.ok()) { 29724: io_s = target()->GetFreeSpace(path, options, disk_free, dbg); 29724: } 29724: } 29724: return io_s; 29724: } 29724: 29724: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 29724: bool* is_dir, IODebugContext* dgb) override; 29724: 29724: IOStatus Poll(std::vector& io_handles, 29724: size_t min_completions) override; 29724: 29724: IOStatus AbortIO(std::vector& io_handles) override; 29724: 29724: void WritableFileClosed(const FSFileState& state); 29724: 29724: void WritableFileSynced(const FSFileState& state); 29724: 29724: void WritableFileAppended(const FSFileState& state); 29724: 29724: IOStatus DropUnsyncedFileData(); 29724: 29724: IOStatus DropRandomUnsyncedFileData(Random* rnd); 29724: 29724: IOStatus DeleteFilesCreatedAfterLastDirSync(const IOOptions& options, 29724: IODebugContext* dbg); 29724: 29724: void ResetState(); 29724: 29724: void UntrackFile(const std::string& f); 29724: 29724: void SyncDir(const std::string& dirname) { 29724: MutexLock l(&mutex_); 29724: dir_to_new_files_since_last_sync_.erase(dirname); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: bool IsFilesystemActive() { 29724: MutexLock l(&mutex_); 29724: return filesystem_active_; 29724: } 29724: 29724: 29724: 29724: 29724: bool IsFilesystemDirectWritable() { 29724: MutexLock l(&mutex_); 29724: return filesystem_writable_; 29724: } 29724: void SetFilesystemActiveNoLock( 29724: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 29724: error.PermitUncheckedError(); 29724: filesystem_active_ = active; 29724: if (!active) { 29724: fs_error_ = error; 29724: } 29724: } 29724: void SetFilesystemActive( 29724: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 29724: MutexLock l(&mutex_); 29724: error.PermitUncheckedError(); 29724: SetFilesystemActiveNoLock(active, error); 29724: } 29724: void SetFilesystemDirectWritable(bool writable) { 29724: MutexLock l(&mutex_); 29724: filesystem_writable_ = writable; 29724: } 29724: 29724: 29724: 29724: void SetInjectUnsyncedDataLoss(bool inject) { 29724: MutexLock l(&mutex_); 29724: inject_unsynced_data_loss_ = inject; 29724: } 29724: 29724: bool InjectUnsyncedDataLoss() { 29724: MutexLock l(&mutex_); 29724: return inject_unsynced_data_loss_; 29724: } 29724: # 415 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: void SetReadUnsyncedData(bool read_unsynced_data) { 29724: read_unsynced_data_ = read_unsynced_data; 29724: } 29724: bool ReadUnsyncedData() const { return read_unsynced_data_; } 29724: 29724: 29724: 29724: 29724: void SetAllowLinkOpenFile(bool allow_link_open_file = true) { 29724: allow_link_open_file_ = allow_link_open_file; 29724: } 29724: 29724: bool ShouldIOActivtiesExcludedFromFaultInjection(Env::IOActivity io_activty) { 29724: MutexLock l(&mutex_); 29724: return io_activties_excluded_from_fault_injection.find(io_activty) != 29724: io_activties_excluded_from_fault_injection.end(); 29724: } 29724: 29724: void AssertNoOpenFile() { 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: open_managed_files_.empty() 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "open_managed_files_.empty()" 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; } 29724: 29724: IOStatus GetError() { return fs_error_; } 29724: 29724: void SetFileSystemIOError(IOStatus io_error) { 29724: MutexLock l(&mutex_); 29724: io_error.PermitUncheckedError(); 29724: fs_error_ = io_error; 29724: } 29724: 29724: 29724: void IngestDataCorruptionBeforeWrite() { 29724: MutexLock l(&mutex_); 29724: ingest_data_corruption_before_write_ = true; 29724: } 29724: 29724: void NoDataCorruptionBeforeWrite() { 29724: MutexLock l(&mutex_); 29724: ingest_data_corruption_before_write_ = false; 29724: } 29724: 29724: bool ShouldDataCorruptionBeforeWrite() { 29724: MutexLock l(&mutex_); 29724: return ingest_data_corruption_before_write_; 29724: } 29724: 29724: void SetChecksumHandoffFuncType(const ChecksumType& func_type) { 29724: MutexLock l(&mutex_); 29724: checksum_handoff_func_type_ = func_type; 29724: } 29724: 29724: const ChecksumType& GetChecksumHandoffFuncType() { 29724: MutexLock l(&mutex_); 29724: return checksum_handoff_func_type_; 29724: } 29724: 29724: void SetFailGetUniqueId(bool flag) { 29724: MutexLock l(&mutex_); 29724: fail_get_file_unique_id_ = flag; 29724: } 29724: 29724: bool ShouldFailGetUniqueId() { 29724: MutexLock l(&mutex_); 29724: return fail_get_file_unique_id_; 29724: } 29724: 29724: 29724: enum ErrorOperation : char { 29724: kRead = 0, 29724: kMultiReadSingleReq = 1, 29724: kMultiRead = 2, 29724: kOpen, 29724: kAppend, 29724: kPositionedAppend, 29724: kUnknown, 29724: }; 29724: 29724: void SetThreadLocalErrorContext(FaultInjectionIOType type, uint32_t seed, 29724: int one_in, bool retryable, 29724: bool has_data_loss) { 29724: struct ErrorContext* new_ctx = new ErrorContext(seed); 29724: new_ctx->one_in = one_in; 29724: new_ctx->count = 0; 29724: new_ctx->retryable = retryable; 29724: new_ctx->has_data_loss = has_data_loss; 29724: 29724: SetErrorContextOfFaultInjectionIOType(type, new_ctx); 29724: } 29724: 29724: static void DeleteThreadLocalErrorContext(void* p) { 29724: ErrorContext* ctx = static_cast(p); 29724: delete ctx; 29724: } 29724: 29724: IOStatus MaybeInjectThreadLocalError( 29724: FaultInjectionIOType type, const IOOptions& io_options, 29724: const std::string& file_name = "", ErrorOperation op = kUnknown, 29724: Slice* slice = nullptr, bool direct_io = false, char* scratch = nullptr, 29724: bool need_count_increase = false, bool* fault_injected = nullptr); 29724: 29724: int GetAndResetInjectedThreadLocalErrorCount(FaultInjectionIOType type) { 29724: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29724: int count = 0; 29724: if (ctx) { 29724: count = ctx->count; 29724: ctx->count = 0; 29724: } 29724: return count; 29724: } 29724: 29724: void SetIOActivtiesExcludedFromFaultInjection( 29724: const std::set& io_activties) { 29724: MutexLock l(&mutex_); 29724: io_activties_excluded_from_fault_injection = io_activties; 29724: } 29724: 29724: void SetFileTypesExcludedFromWriteFaultInjection( 29724: const std::set& types) { 29724: MutexLock l(&mutex_); 29724: file_types_excluded_from_write_fault_injection_ = types; 29724: } 29724: 29724: void EnableThreadLocalErrorInjection(FaultInjectionIOType type) { 29724: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29724: if (ctx) { 29724: ctx->enable_error_injection = true; 29724: } 29724: } 29724: 29724: void EnableAllThreadLocalErrorInjection() { 29724: EnableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 29724: EnableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 29724: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 29724: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 29724: } 29724: 29724: void DisableThreadLocalErrorInjection(FaultInjectionIOType type) { 29724: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29724: if (ctx) { 29724: ctx->enable_error_injection = false; 29724: } 29724: } 29724: 29724: void DisableAllThreadLocalErrorInjection() { 29724: DisableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 29724: DisableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 29724: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 29724: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 29724: } 29724: 29724: void PrintInjectedThreadLocalErrorBacktrace(FaultInjectionIOType type); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void ReadUnsynced(const std::string& fname, uint64_t offset, size_t n, 29724: Slice* result, char* scratch, int64_t* pos_at_last_sync); 29724: 29724: inline static const std::string kInjected = "injected"; 29724: 29724: private: 29724: inline static const std::string kFailedToWriteToWAL = 29724: "failed to write to WAL"; 29724: port::Mutex mutex_; 29724: std::map db_file_state_; 29724: std::set open_managed_files_; 29724: 29724: 29724: 29724: 29724: std::unordered_map> 29724: dir_to_new_files_since_last_sync_; 29724: bool filesystem_active_; 29724: bool filesystem_writable_; 29724: 29724: bool inject_unsynced_data_loss_; 29724: bool read_unsynced_data_; 29724: bool allow_link_open_file_; 29724: IOStatus fs_error_; 29724: 29724: enum ErrorType : int { 29724: kErrorTypeStatus = 0, 29724: kErrorTypeCorruption, 29724: kErrorTypeTruncated, 29724: kErrorTypeMax 29724: }; 29724: 29724: struct ErrorContext { 29724: Random rand; 29724: int one_in; 29724: int count; 29724: bool enable_error_injection; 29724: void* callstack; 29724: std::string message; 29724: int frames; 29724: ErrorType type; 29724: bool retryable; 29724: bool has_data_loss; 29724: 29724: explicit ErrorContext(uint32_t seed) 29724: : rand(seed), 29724: enable_error_injection(false), 29724: callstack(nullptr), 29724: frames(0), 29724: retryable(false), 29724: has_data_loss(false) {} 29724: ~ErrorContext() { 29724: if (callstack) { 29724: free(callstack); 29724: } 29724: } 29724: }; 29724: 29724: std::set file_types_excluded_from_write_fault_injection_; 29724: std::set io_activties_excluded_from_fault_injection; 29724: ThreadLocalPtr injected_thread_local_read_error_; 29724: ThreadLocalPtr injected_thread_local_write_error_; 29724: ThreadLocalPtr injected_thread_local_metadata_read_error_; 29724: ThreadLocalPtr injected_thread_local_metadata_write_error_; 29724: bool ingest_data_corruption_before_write_; 29724: ChecksumType checksum_handoff_func_type_; 29724: bool fail_get_file_unique_id_; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: IOStatus MaybeInjectThreadLocalReadError(const IOOptions& io_options, 29724: ErrorOperation op, Slice* slice, 29724: bool direct_io, char* scratch, 29724: bool need_count_increase, 29724: bool* fault_injected); 29724: 29724: bool ShouldExcludeFromWriteFaultInjection(const std::string& file_name) { 29724: MutexLock l(&mutex_); 29724: FileType file_type = kTempFile; 29724: uint64_t file_number = 0; 29724: if (!TryParseFileName(file_name, &file_number, &file_type)) { 29724: return false; 29724: } 29724: return file_types_excluded_from_write_fault_injection_.find(file_type) != 29724: file_types_excluded_from_write_fault_injection_.end(); 29724: } 29724: 29724: 29724: 29724: bool TryParseFileName(const std::string& file_name, uint64_t* number, 29724: FileType* type); 29724: 29724: ErrorContext* GetErrorContextFromFaultInjectionIOType( 29724: FaultInjectionIOType type) { 29724: ErrorContext* ctx = nullptr; 29724: switch (type) { 29724: case FaultInjectionIOType::kRead: 29724: ctx = static_cast( 29724: injected_thread_local_read_error_.Get()); 29724: break; 29724: case FaultInjectionIOType::kWrite: 29724: ctx = static_cast( 29724: injected_thread_local_write_error_.Get()); 29724: break; 29724: case FaultInjectionIOType::kMetadataRead: 29724: ctx = static_cast( 29724: injected_thread_local_metadata_read_error_.Get()); 29724: break; 29724: case FaultInjectionIOType::kMetadataWrite: 29724: ctx = static_cast( 29724: injected_thread_local_metadata_write_error_.Get()); 29724: break; 29724: default: 29724: 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: false 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "false" 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; 29724: break; 29724: } 29724: return ctx; 29724: } 29724: 29724: void SetErrorContextOfFaultInjectionIOType(FaultInjectionIOType type, 29724: ErrorContext* new_ctx) { 29724: ErrorContext* old_ctx = nullptr; 29724: switch (type) { 29724: case FaultInjectionIOType::kRead: 29724: old_ctx = static_cast( 29724: injected_thread_local_read_error_.Swap(new_ctx)); 29724: break; 29724: case FaultInjectionIOType::kWrite: 29724: old_ctx = static_cast( 29724: injected_thread_local_write_error_.Swap(new_ctx)); 29724: break; 29724: case FaultInjectionIOType::kMetadataRead: 29724: old_ctx = static_cast( 29724: injected_thread_local_metadata_read_error_.Swap(new_ctx)); 29724: break; 29724: case FaultInjectionIOType::kMetadataWrite: 29724: old_ctx = static_cast( 29724: injected_thread_local_metadata_write_error_.Swap(new_ctx)); 29724: break; 29724: default: 29724: 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: false 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "false" 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; 29724: break; 29724: } 29724: 29724: if (old_ctx) { 29724: DeleteThreadLocalErrorContext(old_ctx); 29724: } 29724: } 29724: 29724: std::string GetErrorMessage(FaultInjectionIOType type, 29724: const std::string& file_name, ErrorOperation op) { 29724: std::ostringstream msg; 29724: msg << kInjected << " "; 29724: switch (type) { 29724: case FaultInjectionIOType::kRead: 29724: msg << "read error"; 29724: break; 29724: case FaultInjectionIOType::kWrite: 29724: msg << "write error"; 29724: break; 29724: case FaultInjectionIOType::kMetadataRead: 29724: msg << "metadata read error"; 29724: break; 29724: case FaultInjectionIOType::kMetadataWrite: 29724: msg << "metadata write error"; 29724: break; 29724: default: 29724: 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: false 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "false" 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; 29724: break; 29724: } 29724: 29724: if (type == FaultInjectionIOType::kWrite && 29724: (op == ErrorOperation::kOpen || op == ErrorOperation::kAppend || 29724: op == ErrorOperation::kPositionedAppend)) { 29724: FileType file_type = kTempFile; 29724: uint64_t ignore = 0; 29724: if (TryParseFileName(file_name, &ignore, &file_type) && 29724: file_type == FileType::kWalFile) { 29724: msg << " " << kFailedToWriteToWAL; 29724: } 29724: } 29724: return msg.str(); 29724: } 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: class Statistics; 29724: class SystemClock; 29724: # 40 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: class WritableFileWriter { 29724: private: 29724: void NotifyOnFileWriteFinish( 29724: uint64_t offset, size_t length, 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status) { 29724: FileOperationInfo info(FileOperationType::kWrite, file_name_, start_ts, 29724: finish_ts, io_status, temperature_); 29724: info.offset = offset; 29724: info.length = length; 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileWriteFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: void NotifyOnFileFlushFinish( 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status) { 29724: FileOperationInfo info(FileOperationType::kFlush, file_name_, start_ts, 29724: finish_ts, io_status, temperature_); 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileFlushFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: void NotifyOnFileSyncFinish( 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status, 29724: FileOperationType type = FileOperationType::kSync) { 29724: FileOperationInfo info(type, file_name_, start_ts, finish_ts, io_status, 29724: temperature_); 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileSyncFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: void NotifyOnFileRangeSyncFinish( 29724: uint64_t offset, size_t length, 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status) { 29724: FileOperationInfo info(FileOperationType::kRangeSync, file_name_, start_ts, 29724: finish_ts, io_status, temperature_); 29724: info.offset = offset; 29724: info.length = length; 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileRangeSyncFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: void NotifyOnFileTruncateFinish( 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status) { 29724: FileOperationInfo info(FileOperationType::kTruncate, file_name_, start_ts, 29724: finish_ts, io_status, temperature_); 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileTruncateFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: void NotifyOnFileCloseFinish( 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status) { 29724: FileOperationInfo info(FileOperationType::kClose, file_name_, start_ts, 29724: finish_ts, io_status, temperature_); 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileCloseFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: 29724: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 29724: const std::string& file_path, size_t length = 0, 29724: uint64_t offset = 0) { 29724: if (listeners_.empty()) { 29724: return; 29724: } 29724: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 29724: for (auto& listener : listeners_) { 29724: listener->OnIOError(io_error_info); 29724: } 29724: io_error_info.io_status.PermitUncheckedError(); 29724: } 29724: 29724: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 29724: void UpdateFileChecksum(const Slice& data); 29724: void Crc32cHandoffChecksumCalculation(const char* data, size_t size, 29724: char* buf); 29724: 29724: std::string file_name_; 29724: FSWritableFilePtr writable_file_; 29724: SystemClock* clock_; 29724: AlignedBuffer buf_; 29724: size_t max_buffer_size_; 29724: 29724: 29724: std::atomic filesize_; 29724: std::atomic flushed_size_; 29724: 29724: 29724: 29724: uint64_t next_write_offset_; 29724: bool pending_sync_; 29724: std::atomic seen_error_; 29724: 29724: std::atomic seen_injected_error_; 29724: 29724: uint64_t last_sync_size_; 29724: uint64_t bytes_per_sync_; 29724: RateLimiter* rate_limiter_; 29724: Statistics* stats_; 29724: Histograms hist_type_; 29724: std::vector> listeners_; 29724: std::unique_ptr checksum_generator_; 29724: bool checksum_finalized_; 29724: bool perform_data_verification_; 29724: uint32_t buffered_data_crc32c_checksum_; 29724: bool buffered_data_with_checksum_; 29724: Temperature temperature_; 29724: 29724: public: 29724: WritableFileWriter( 29724: std::unique_ptr&& file, const std::string& _file_name, 29724: const FileOptions& options, SystemClock* clock = nullptr, 29724: const std::shared_ptr& io_tracer = nullptr, 29724: Statistics* stats = nullptr, 29724: Histograms hist_type = Histograms::HISTOGRAM_ENUM_MAX, 29724: const std::vector>& listeners = {}, 29724: FileChecksumGenFactory* file_checksum_gen_factory = nullptr, 29724: bool perform_data_verification = false, 29724: bool buffered_data_with_checksum = false) 29724: : file_name_(_file_name), 29724: writable_file_(std::move(file), io_tracer, _file_name), 29724: clock_(clock), 29724: buf_(), 29724: max_buffer_size_(options.writable_file_max_buffer_size), 29724: filesize_(0), 29724: flushed_size_(0), 29724: next_write_offset_(0), 29724: pending_sync_(false), 29724: seen_error_(false), 29724: 29724: seen_injected_error_(false), 29724: 29724: last_sync_size_(0), 29724: bytes_per_sync_(options.bytes_per_sync), 29724: rate_limiter_(options.rate_limiter), 29724: stats_(stats), 29724: hist_type_(hist_type), 29724: listeners_(), 29724: checksum_generator_(nullptr), 29724: checksum_finalized_(false), 29724: perform_data_verification_(perform_data_verification), 29724: buffered_data_crc32c_checksum_(0), 29724: buffered_data_with_checksum_(buffered_data_with_checksum) { 29724: temperature_ = options.temperature; 29724: 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29724: (static_cast ( 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: !use_direct_io() || max_buffer_size_ > 0 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: "!use_direct_io() || max_buffer_size_ > 0" 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: ; 29724: rocksdb::SyncPoint::GetInstance()->Process("WritableFileWriter::WritableFileWriter:0", reinterpret_cast(max_buffer_size_)) 29724: ; 29724: buf_.Alignment(writable_file_->GetRequiredBufferAlignment()); 29724: buf_.AllocateNewBuffer(std::min((size_t)65536, max_buffer_size_)); 29724: std::for_each(listeners.begin(), listeners.end(), 29724: [this](const std::shared_ptr& e) { 29724: if (e->ShouldBeNotifiedOnFileIO()) { 29724: listeners_.emplace_back(e); 29724: } 29724: }); 29724: if (file_checksum_gen_factory != nullptr) { 29724: FileChecksumGenContext checksum_gen_context; 29724: checksum_gen_context.file_name = _file_name; 29724: checksum_generator_ = 29724: file_checksum_gen_factory->CreateFileChecksumGenerator( 29724: checksum_gen_context); 29724: } 29724: } 29724: 29724: static IOStatus Create(const std::shared_ptr& fs, 29724: const std::string& fname, const FileOptions& file_opts, 29724: std::unique_ptr* writer, 29724: IODebugContext* dbg); 29724: 29724: static IOStatus PrepareIOOptions(const WriteOptions& wo, IOOptions& opts); 29724: 29724: WritableFileWriter(const WritableFileWriter&) = delete; 29724: 29724: WritableFileWriter& operator=(const WritableFileWriter&) = delete; 29724: 29724: ~WritableFileWriter() { 29724: IOOptions io_options; 29724: 29724: 29724: 29724: ThreadStatus::OperationType op_type = 29724: ThreadStatusUtil::GetThreadOperation(); 29724: io_options.io_activity = 29724: ThreadStatusUtil::TEST_GetExpectedIOActivity(op_type); 29724: 29724: auto s = Close(io_options); 29724: s.PermitUncheckedError(); 29724: } 29724: 29724: std::string file_name() const { return file_name_; } 29724: 29724: 29724: 29724: IOStatus Append(const IOOptions& opts, const Slice& data, 29724: uint32_t crc32c_checksum = 0); 29724: 29724: IOStatus Pad(const IOOptions& opts, const size_t pad_bytes); 29724: 29724: IOStatus Flush(const IOOptions& opts); 29724: 29724: IOStatus Close(const IOOptions& opts); 29724: 29724: IOStatus Sync(const IOOptions& opts, bool use_fsync); 29724: 29724: 29724: 29724: 29724: IOStatus SyncWithoutFlush(const IOOptions& opts, bool use_fsync); 29724: 29724: 29724: 29724: uint64_t GetFileSize() const { 29724: return filesize_.load(std::memory_order_acquire); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: uint64_t GetFlushedSize() const { 29724: return flushed_size_.load(std::memory_order_acquire); 29724: } 29724: 29724: IOStatus InvalidateCache(size_t offset, size_t length) { 29724: return writable_file_->InvalidateCache(offset, length); 29724: } 29724: 29724: FSWritableFile* writable_file() const { return writable_file_.get(); } 29724: 29724: bool use_direct_io() { return writable_file_->use_direct_io(); } 29724: 29724: bool BufferIsEmpty() const { return buf_.CurrentSize() == 0; } 29724: 29724: bool IsClosed() const { return writable_file_.get() == nullptr; } 29724: 29724: void TEST_SetFileChecksumGenerator( 29724: FileChecksumGenerator* checksum_generator) { 29724: checksum_generator_.reset(checksum_generator); 29724: } 29724: 29724: std::string GetFileChecksum(); 29724: 29724: const char* GetFileChecksumFuncName() const; 29724: 29724: bool seen_error() const { 29724: return seen_error_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: void reset_seen_error() { 29724: seen_error_.store(false, std::memory_order_relaxed); 29724: 29724: seen_injected_error_.store(false, std::memory_order_relaxed); 29724: 29724: } 29724: void set_seen_error(const Status& s) { 29724: seen_error_.store(true, std::memory_order_relaxed); 29724: (void)s; 29724: 29724: if (s.getState() && std::strstr(s.getState(), "inject")) { 29724: seen_injected_error_.store(true, std::memory_order_relaxed); 29724: } 29724: 29724: } 29724: 29724: bool seen_injected_error() const { 29724: return seen_injected_error_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: 29724: IOStatus GetWriterHasPreviousErrorStatus() { 29724: 29724: if (seen_injected_error_.load(std::memory_order_relaxed)) { 29724: std::stringstream msg; 29724: msg << "Writer has previous " << FaultInjectionTestFS::kInjected 29724: << " error."; 29724: return IOStatus::IOError(msg.str()); 29724: } 29724: 29724: return IOStatus::IOError("Writer has previous error."); 29724: } 29724: 29724: private: 29724: 29724: static Env::IOPriority DecideRateLimiterPriority( 29724: Env::IOPriority writable_file_io_priority, 29724: Env::IOPriority op_rate_limiter_priority); 29724: 29724: 29724: 29724: 29724: IOStatus WriteDirect(const IOOptions& opts); 29724: 29724: IOStatus WriteDirectWithChecksum(const IOOptions& opts); 29724: 29724: 29724: IOStatus WriteBuffered(const IOOptions& opts, const char* data, size_t size); 29724: 29724: IOStatus WriteBufferedWithChecksum(const IOOptions& opts, const char* data, 29724: size_t size); 29724: 29724: IOStatus RangeSync(const IOOptions& opts, uint64_t offset, uint64_t nbytes); 29724: 29724: IOStatus SyncInternal(const IOOptions& opts, bool use_fsync); 29724: IOOptions FinalizeIOOptions(const IOOptions& opts) const; 29724: }; 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 29724: namespace rocksdb { 29724: class Env; 29724: class SystemClock; 29724: 29724: extern const uint64_t kMicrosInSecond; 29724: extern const uint64_t kSecondInMinute; 29724: extern const uint64_t kSecondInHour; 29724: 29724: struct BlockCacheTraceRecord; 29724: 29724: class BlockCacheTraceHelper { 29724: public: 29724: static bool IsGetOrMultiGetOnDataBlock(TraceType block_type, 29724: TableReaderCaller caller); 29724: static bool IsGetOrMultiGet(TableReaderCaller caller); 29724: static bool IsUserAccess(TableReaderCaller caller); 29724: 29724: 29724: static std::string ComputeRowKey(const BlockCacheTraceRecord& access); 29724: 29724: 29724: static uint64_t GetTableId(const BlockCacheTraceRecord& access); 29724: 29724: 29724: static uint64_t GetSequenceNumber(const BlockCacheTraceRecord& access); 29724: 29724: static uint64_t GetBlockOffsetInFile(const BlockCacheTraceRecord& access); 29724: 29724: static const std::string kUnknownColumnFamilyName; 29724: static const uint64_t kReservedGetId; 29724: }; 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 29724: struct BlockCacheLookupContext { 29724: BlockCacheLookupContext(const TableReaderCaller& _caller) : caller(_caller) {} 29724: BlockCacheLookupContext(const TableReaderCaller& _caller, uint64_t _get_id, 29724: bool _get_from_user_specified_snapshot) 29724: : caller(_caller), 29724: get_id(_get_id), 29724: get_from_user_specified_snapshot(_get_from_user_specified_snapshot) {} 29724: const TableReaderCaller caller; 29724: 29724: 29724: 29724: bool is_cache_hit = false; 29724: bool no_insert = false; 29724: TraceType block_type = TraceType::kTraceMax; 29724: uint64_t block_size = 0; 29724: std::string block_key; 29724: uint64_t num_keys_in_block = 0; 29724: 29724: 29724: 29724: uint64_t get_id = 0; 29724: std::string referenced_key; 29724: bool get_from_user_specified_snapshot = false; 29724: 29724: void FillLookupContext(bool _is_cache_hit, bool _no_insert, 29724: TraceType _block_type, uint64_t _block_size, 29724: const std::string& _block_key, 29724: uint64_t _num_keys_in_block) { 29724: is_cache_hit = _is_cache_hit; 29724: no_insert = _no_insert; 29724: block_type = _block_type; 29724: block_size = _block_size; 29724: block_key = _block_key; 29724: num_keys_in_block = _num_keys_in_block; 29724: } 29724: }; 29724: 29724: struct BlockCacheTraceHeader { 29724: uint64_t start_time; 29724: uint32_t rocksdb_major_version; 29724: uint32_t rocksdb_minor_version; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class BlockCacheTraceWriterImpl : public BlockCacheTraceWriter { 29724: public: 29724: BlockCacheTraceWriterImpl(SystemClock* clock, 29724: const BlockCacheTraceWriterOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: ~BlockCacheTraceWriterImpl() = default; 29724: 29724: BlockCacheTraceWriterImpl(const BlockCacheTraceWriterImpl&) = delete; 29724: BlockCacheTraceWriterImpl& operator=(const BlockCacheTraceWriterImpl&) = 29724: delete; 29724: BlockCacheTraceWriterImpl(BlockCacheTraceWriterImpl&&) = delete; 29724: BlockCacheTraceWriterImpl& operator=(BlockCacheTraceWriterImpl&&) = delete; 29724: 29724: 29724: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29724: const Slice& block_key, const Slice& cf_name, 29724: const Slice& referenced_key) override; 29724: 29724: 29724: 29724: Status WriteHeader() override; 29724: 29724: private: 29724: SystemClock* clock_; 29724: BlockCacheTraceWriterOptions trace_options_; 29724: std::unique_ptr trace_writer_; 29724: }; 29724: 29724: 29724: 29724: 29724: class BlockCacheHumanReadableTraceWriter { 29724: public: 29724: ~BlockCacheHumanReadableTraceWriter(); 29724: 29724: Status NewWritableFile(const std::string& human_readable_trace_file_path, 29724: rocksdb::Env* env); 29724: 29724: Status WriteHumanReadableTraceRecord(const BlockCacheTraceRecord& access, 29724: uint64_t block_id, uint64_t get_key_id); 29724: 29724: private: 29724: char trace_record_buffer_[1024 * 1024]; 29724: std::unique_ptr 29724: human_readable_trace_file_writer_; 29724: }; 29724: 29724: 29724: 29724: class BlockCacheTraceReader { 29724: public: 29724: BlockCacheTraceReader(std::unique_ptr&& reader); 29724: virtual ~BlockCacheTraceReader() = default; 29724: 29724: BlockCacheTraceReader(const BlockCacheTraceReader&) = delete; 29724: BlockCacheTraceReader& operator=(const BlockCacheTraceReader&) = delete; 29724: BlockCacheTraceReader(BlockCacheTraceReader&&) = delete; 29724: BlockCacheTraceReader& operator=(BlockCacheTraceReader&&) = delete; 29724: 29724: Status ReadHeader(BlockCacheTraceHeader* header); 29724: 29724: Status ReadAccess(BlockCacheTraceRecord* record); 29724: 29724: private: 29724: std::unique_ptr trace_reader_; 29724: }; 29724: 29724: 29724: 29724: 29724: class BlockCacheHumanReadableTraceReader : public BlockCacheTraceReader { 29724: public: 29724: BlockCacheHumanReadableTraceReader(const std::string& trace_file_path); 29724: 29724: ~BlockCacheHumanReadableTraceReader(); 29724: 29724: Status ReadHeader(BlockCacheTraceHeader* header); 29724: 29724: Status ReadAccess(BlockCacheTraceRecord* record); 29724: 29724: private: 29724: std::ifstream human_readable_trace_reader_; 29724: }; 29724: 29724: 29724: 29724: 29724: class BlockCacheTracer { 29724: public: 29724: BlockCacheTracer(); 29724: ~BlockCacheTracer(); 29724: 29724: BlockCacheTracer(const BlockCacheTracer&) = delete; 29724: BlockCacheTracer& operator=(const BlockCacheTracer&) = delete; 29724: BlockCacheTracer(BlockCacheTracer&&) = delete; 29724: BlockCacheTracer& operator=(BlockCacheTracer&&) = delete; 29724: 29724: 29724: Status StartTrace(const BlockCacheTraceOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: 29724: 29724: void EndTrace(); 29724: 29724: bool is_tracing_enabled() const { 29724: return writer_.load(std::memory_order_relaxed); 29724: } 29724: 29724: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29724: const Slice& block_key, const Slice& cf_name, 29724: const Slice& referenced_key); 29724: 29724: 29724: uint64_t NextGetId(); 29724: 29724: private: 29724: BlockCacheTraceOptions trace_options_; 29724: 29724: InstrumentedMutex trace_writer_mutex_; 29724: std::atomic writer_; 29724: std::atomic get_id_counter_; 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class Status; 29724: 29724: struct TableReaderOptions { 29724: 29724: TableReaderOptions( 29724: const ImmutableOptions& _ioptions, 29724: const std::shared_ptr& _prefix_extractor, 29724: const EnvOptions& _env_options, 29724: const InternalKeyComparator& _internal_comparator, 29724: uint8_t _block_protection_bytes_per_key, bool _skip_filters = false, 29724: bool _immortal = false, bool _force_direct_prefetch = false, 29724: int _level = -1, BlockCacheTracer* const _block_cache_tracer = nullptr, 29724: size_t _max_file_size_for_l0_meta_pin = 0, 29724: const std::string& _cur_db_session_id = "", uint64_t _cur_file_num = 0, 29724: UniqueId64x2 _unique_id = {}, SequenceNumber _largest_seqno = 0, 29724: uint64_t _tail_size = 0, bool _user_defined_timestamps_persisted = true) 29724: : ioptions(_ioptions), 29724: prefix_extractor(_prefix_extractor), 29724: env_options(_env_options), 29724: internal_comparator(_internal_comparator), 29724: skip_filters(_skip_filters), 29724: immortal(_immortal), 29724: force_direct_prefetch(_force_direct_prefetch), 29724: level(_level), 29724: largest_seqno(_largest_seqno), 29724: block_cache_tracer(_block_cache_tracer), 29724: max_file_size_for_l0_meta_pin(_max_file_size_for_l0_meta_pin), 29724: cur_db_session_id(_cur_db_session_id), 29724: cur_file_num(_cur_file_num), 29724: unique_id(_unique_id), 29724: block_protection_bytes_per_key(_block_protection_bytes_per_key), 29724: tail_size(_tail_size), 29724: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) {} 29724: 29724: const ImmutableOptions& ioptions; 29724: const std::shared_ptr& prefix_extractor; 29724: const EnvOptions& env_options; 29724: const InternalKeyComparator& internal_comparator; 29724: 29724: bool skip_filters; 29724: 29724: bool immortal; 29724: 29724: 29724: 29724: bool force_direct_prefetch; 29724: 29724: 29724: int level; 29724: 29724: SequenceNumber largest_seqno; 29724: BlockCacheTracer* const block_cache_tracer; 29724: 29724: 29724: const size_t max_file_size_for_l0_meta_pin; 29724: 29724: std::string cur_db_session_id; 29724: 29724: uint64_t cur_file_num; 29724: 29724: 29724: UniqueId64x2 unique_id; 29724: 29724: uint8_t block_protection_bytes_per_key; 29724: 29724: uint64_t tail_size; 29724: 29724: 29724: bool user_defined_timestamps_persisted; 29724: }; 29724: 29724: struct TableBuilderOptions : public TablePropertiesCollectorFactory::Context { 29724: TableBuilderOptions( 29724: const ImmutableOptions& _ioptions, const MutableCFOptions& _moptions, 29724: const ReadOptions& _read_options, const WriteOptions& _write_options, 29724: const InternalKeyComparator& _internal_comparator, 29724: const InternalTblPropCollFactories* _internal_tbl_prop_coll_factories, 29724: CompressionType _compression_type, 29724: const CompressionOptions& _compression_opts, uint32_t _column_family_id, 29724: const std::string& _column_family_name, int _level, 29724: const int64_t _newest_key_time, bool _is_bottommost = false, 29724: TableFileCreationReason _reason = TableFileCreationReason::kMisc, 29724: const int64_t _oldest_key_time = 0, 29724: const uint64_t _file_creation_time = 0, const std::string& _db_id = "", 29724: const std::string& _db_session_id = "", 29724: const uint64_t _target_file_size = 0, const uint64_t _cur_file_num = 0, 29724: const SequenceNumber _last_level_inclusive_max_seqno_threshold = 29724: kMaxSequenceNumber) 29724: : TablePropertiesCollectorFactory::Context( 29724: _column_family_id, _level, _ioptions.num_levels, 29724: _last_level_inclusive_max_seqno_threshold), 29724: ioptions(_ioptions), 29724: moptions(_moptions), 29724: read_options(_read_options), 29724: write_options(_write_options), 29724: internal_comparator(_internal_comparator), 29724: internal_tbl_prop_coll_factories(_internal_tbl_prop_coll_factories), 29724: compression_type(_compression_type), 29724: compression_opts(_compression_opts), 29724: column_family_name(_column_family_name), 29724: oldest_key_time(_oldest_key_time), 29724: newest_key_time(_newest_key_time), 29724: target_file_size(_target_file_size), 29724: file_creation_time(_file_creation_time), 29724: db_id(_db_id), 29724: db_session_id(_db_session_id), 29724: is_bottommost(_is_bottommost), 29724: reason(_reason), 29724: cur_file_num(_cur_file_num) {} 29724: 29724: const ImmutableOptions& ioptions; 29724: const MutableCFOptions& moptions; 29724: const ReadOptions& read_options; 29724: const WriteOptions& write_options; 29724: const InternalKeyComparator& internal_comparator; 29724: const InternalTblPropCollFactories* internal_tbl_prop_coll_factories; 29724: const CompressionType compression_type; 29724: const CompressionOptions& compression_opts; 29724: const std::string& column_family_name; 29724: const int64_t oldest_key_time; 29724: const int64_t newest_key_time; 29724: const uint64_t target_file_size; 29724: const uint64_t file_creation_time; 29724: const std::string db_id; 29724: const std::string db_session_id; 29724: 29724: const bool is_bottommost; 29724: const TableFileCreationReason reason; 29724: 29724: 29724: 29724: 29724: 29724: bool skip_filters = false; 29724: const uint64_t cur_file_num; 29724: }; 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29724: class TableBuilder { 29724: public: 29724: 29724: virtual ~TableBuilder() {} 29724: 29724: 29724: 29724: 29724: virtual void Add(const Slice& key, const Slice& value) = 0; 29724: 29724: 29724: virtual Status status() const = 0; 29724: 29724: 29724: virtual IOStatus io_status() const = 0; 29724: 29724: 29724: 29724: virtual Status Finish() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void Abandon() = 0; 29724: 29724: 29724: virtual uint64_t NumEntries() const = 0; 29724: 29724: 29724: 29724: virtual bool IsEmpty() const { 29724: return NumEntries() == 0 && GetTableProperties().num_range_deletions == 0; 29724: } 29724: 29724: 29724: 29724: virtual uint64_t FileSize() const = 0; 29724: 29724: 29724: 29724: 29724: virtual uint64_t EstimatedFileSize() const { return FileSize(); } 29724: 29724: virtual uint64_t GetTailSize() const { return 0; } 29724: 29724: 29724: 29724: virtual bool NeedCompact() const { return false; } 29724: 29724: 29724: virtual TableProperties GetTableProperties() const = 0; 29724: 29724: 29724: virtual std::string GetFileChecksum() const = 0; 29724: 29724: 29724: virtual const char* GetFileChecksumFuncName() const = 0; 29724: 29724: 29724: 29724: virtual void SetSeqnoTimeTableProperties( 29724: const SeqnoToTimeMapping& , 29724: uint64_t ){} 29724: }; 29724: 29724: } 29724: # 26 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: namespace rocksdb { 29724: # 41 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: template > 29724: class BinaryHeap { 29724: public: 29724: BinaryHeap() {} 29724: explicit BinaryHeap(Compare cmp) : cmp_(std::move(cmp)) {} 29724: 29724: void push(const T& value) { 29724: data_.push_back(value); 29724: upheap(data_.size() - 1); 29724: } 29724: 29724: void push(T&& value) { 29724: data_.push_back(std::move(value)); 29724: upheap(data_.size() - 1); 29724: } 29724: 29724: const T& top() const { 29724: 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: (static_cast ( 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: !empty() 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: "!empty()" 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: ; 29724: return data_.front(); 29724: } 29724: 29724: void replace_top(const T& value) { 29724: 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: (static_cast ( 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: !empty() 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: "!empty()" 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: ; 29724: data_.front() = value; 29724: downheap(get_root()); 29724: } 29724: 29724: void replace_top(T&& value) { 29724: 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: (static_cast ( 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: !empty() 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: "!empty()" 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: ; 29724: data_.front() = std::move(value); 29724: downheap(get_root()); 29724: } 29724: 29724: void pop() { 29724: 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: (static_cast ( 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: !empty() 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: "!empty()" 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: ; 29724: if (data_.size() > 1) { 29724: 29724: 29724: 29724: data_.front() = std::move(data_.back()); 29724: } 29724: data_.pop_back(); 29724: if (!empty()) { 29724: downheap(get_root()); 29724: } else { 29724: reset_root_cmp_cache(); 29724: } 29724: } 29724: 29724: void swap(BinaryHeap& other) { 29724: std::swap(cmp_, other.cmp_); 29724: data_.swap(other.data_); 29724: std::swap(root_cmp_cache_, other.root_cmp_cache_); 29724: } 29724: 29724: void clear() { 29724: data_.clear(); 29724: reset_root_cmp_cache(); 29724: } 29724: 29724: bool empty() const { return data_.empty(); } 29724: 29724: size_t size() const { return data_.size(); } 29724: 29724: void reset_root_cmp_cache() { 29724: root_cmp_cache_ = std::numeric_limits::max(); 29724: } 29724: 29724: private: 29724: static inline size_t get_root() { return 0; } 29724: static inline size_t get_parent(size_t index) { return (index - 1) / 2; } 29724: static inline size_t get_left(size_t index) { return 2 * index + 1; } 29724: static inline size_t get_right(size_t index) { return 2 * index + 2; } 29724: 29724: void upheap(size_t index) { 29724: T v = std::move(data_[index]); 29724: while (index > get_root()) { 29724: const size_t parent = get_parent(index); 29724: if (!cmp_(data_[parent], v)) { 29724: break; 29724: } 29724: data_[index] = std::move(data_[parent]); 29724: index = parent; 29724: } 29724: data_[index] = std::move(v); 29724: reset_root_cmp_cache(); 29724: } 29724: 29724: void downheap(size_t index) { 29724: T v = std::move(data_[index]); 29724: 29724: size_t picked_child = std::numeric_limits::max(); 29724: while (1) { 29724: const size_t left_child = get_left(index); 29724: if (get_left(index) >= data_.size()) { 29724: break; 29724: } 29724: const size_t right_child = left_child + 1; 29724: 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: (static_cast ( 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: right_child == get_right(index) 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: "right_child == get_right(index)" 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: ; 29724: picked_child = left_child; 29724: if (index == 0 && root_cmp_cache_ < data_.size()) { 29724: picked_child = root_cmp_cache_; 29724: } else if (right_child < data_.size() && 29724: cmp_(data_[left_child], data_[right_child])) { 29724: picked_child = right_child; 29724: } 29724: if (!cmp_(v, data_[picked_child])) { 29724: break; 29724: } 29724: data_[index] = std::move(data_[picked_child]); 29724: index = picked_child; 29724: } 29724: 29724: if (index == 0) { 29724: 29724: 29724: 29724: 29724: root_cmp_cache_ = picked_child; 29724: } else { 29724: 29724: reset_root_cmp_cache(); 29724: } 29724: 29724: data_[index] = std::move(v); 29724: } 29724: 29724: Compare cmp_; 29724: autovector data_; 29724: 29724: size_t root_cmp_cache_ = std::numeric_limits::max(); 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/kv_map.h" 1 29724: 29724: 29724: 29724: 29724: 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/util/kv_map.h" 29724: namespace rocksdb { 29724: namespace stl_wrappers { 29724: 29724: struct LessOfComparator { 29724: explicit LessOfComparator(const Comparator* c = BytewiseComparator()) 29724: : cmp(c) {} 29724: 29724: bool operator()(const std::string& a, const std::string& b) const { 29724: return cmp->Compare(Slice(a), Slice(b)) < 0; 29724: } 29724: bool operator()(const Slice& a, const Slice& b) const { 29724: return cmp->Compare(a, b) < 0; 29724: } 29724: 29724: const Comparator* cmp; 29724: }; 29724: 29724: using KVMap = std::map; 29724: } 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class TruncatedRangeDelIterator { 29724: public: 29724: TruncatedRangeDelIterator( 29724: std::unique_ptr iter, 29724: const InternalKeyComparator* icmp, const InternalKey* smallest, 29724: const InternalKey* largest); 29724: 29724: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 29724: iter_->SetRangeDelReadSeqno(read_seqno); 29724: } 29724: 29724: bool Valid() const; 29724: 29724: void Next() { iter_->TopNext(); } 29724: void Prev() { iter_->TopPrev(); } 29724: 29724: void InternalNext() { iter_->Next(); } 29724: 29724: 29724: 29724: 29724: 29724: void Seek(const Slice& target); 29724: 29724: 29724: void SeekInternalKey(const Slice& target); 29724: 29724: 29724: 29724: 29724: void SeekForPrev(const Slice& target); 29724: 29724: void SeekToFirst(); 29724: void SeekToLast(); 29724: 29724: ParsedInternalKey start_key() const { 29724: return (smallest_ == nullptr || 29724: icmp_->Compare(*smallest_, iter_->parsed_start_key()) <= 0) 29724: ? iter_->parsed_start_key() 29724: : *smallest_; 29724: } 29724: 29724: ParsedInternalKey end_key() const { 29724: return (largest_ == nullptr || 29724: icmp_->Compare(iter_->parsed_end_key(), *largest_) <= 0) 29724: ? iter_->parsed_end_key() 29724: : *largest_; 29724: } 29724: 29724: SequenceNumber seq() const { return iter_->seq(); } 29724: Slice timestamp() const { 29724: 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: (static_cast ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: icmp_->user_comparator()->timestamp_size() 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: "icmp_->user_comparator()->timestamp_size()" 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: ; 29724: return iter_->timestamp(); 29724: } 29724: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 29724: iter_->SetTimestampUpperBound(ts_upper_bound); 29724: } 29724: 29724: std::map> 29724: SplitBySnapshot(const std::vector& snapshots); 29724: 29724: SequenceNumber upper_bound() const { return iter_->upper_bound(); } 29724: 29724: SequenceNumber lower_bound() const { return iter_->lower_bound(); } 29724: 29724: private: 29724: std::unique_ptr iter_; 29724: const InternalKeyComparator* icmp_; 29724: const ParsedInternalKey* smallest_ = nullptr; 29724: const ParsedInternalKey* largest_ = nullptr; 29724: std::list pinned_bounds_; 29724: 29724: const InternalKey* smallest_ikey_; 29724: const InternalKey* largest_ikey_; 29724: }; 29724: 29724: struct SeqMaxComparator { 29724: bool operator()(const TruncatedRangeDelIterator* a, 29724: const TruncatedRangeDelIterator* b) const { 29724: return a->seq() > b->seq(); 29724: } 29724: }; 29724: 29724: struct StartKeyMinComparator { 29724: explicit StartKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 29724: 29724: bool operator()(const TruncatedRangeDelIterator* a, 29724: const TruncatedRangeDelIterator* b) const { 29724: return icmp->Compare(a->start_key(), b->start_key()) > 0; 29724: } 29724: 29724: const InternalKeyComparator* icmp; 29724: }; 29724: 29724: class ForwardRangeDelIterator { 29724: public: 29724: explicit ForwardRangeDelIterator(const InternalKeyComparator* icmp); 29724: 29724: bool ShouldDelete(const ParsedInternalKey& parsed); 29724: void Invalidate(); 29724: 29724: void AddNewIter(TruncatedRangeDelIterator* iter, 29724: const ParsedInternalKey& parsed) { 29724: iter->Seek(parsed.user_key); 29724: PushIter(iter, parsed); 29724: 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: (static_cast ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: active_iters_.size() == active_seqnums_.size() 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: "active_iters_.size() == active_seqnums_.size()" 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: ; 29724: } 29724: 29724: size_t UnusedIdx() const { return unused_idx_; } 29724: void IncUnusedIdx() { unused_idx_++; } 29724: 29724: private: 29724: using ActiveSeqSet = 29724: std::multiset; 29724: 29724: struct EndKeyMinComparator { 29724: explicit EndKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 29724: 29724: bool operator()(const ActiveSeqSet::const_iterator& a, 29724: const ActiveSeqSet::const_iterator& b) const { 29724: return icmp->Compare((*a)->end_key(), (*b)->end_key()) > 0; 29724: } 29724: 29724: const InternalKeyComparator* icmp; 29724: }; 29724: 29724: void PushIter(TruncatedRangeDelIterator* iter, 29724: const ParsedInternalKey& parsed) { 29724: if (!iter->Valid()) { 29724: 29724: 29724: return; 29724: } 29724: int cmp = icmp_->Compare(parsed, iter->start_key()); 29724: if (cmp < 0) { 29724: PushInactiveIter(iter); 29724: } else { 29724: PushActiveIter(iter); 29724: } 29724: } 29724: 29724: void PushActiveIter(TruncatedRangeDelIterator* iter) { 29724: auto seq_pos = active_seqnums_.insert(iter); 29724: active_iters_.push(seq_pos); 29724: } 29724: 29724: TruncatedRangeDelIterator* PopActiveIter() { 29724: auto active_top = active_iters_.top(); 29724: auto iter = *active_top; 29724: active_iters_.pop(); 29724: active_seqnums_.erase(active_top); 29724: return iter; 29724: } 29724: 29724: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 29724: inactive_iters_.push(iter); 29724: } 29724: 29724: TruncatedRangeDelIterator* PopInactiveIter() { 29724: auto* iter = inactive_iters_.top(); 29724: inactive_iters_.pop(); 29724: return iter; 29724: } 29724: 29724: const InternalKeyComparator* icmp_; 29724: size_t unused_idx_; 29724: ActiveSeqSet active_seqnums_; 29724: BinaryHeap active_iters_; 29724: BinaryHeap inactive_iters_; 29724: }; 29724: 29724: class ReverseRangeDelIterator { 29724: public: 29724: explicit ReverseRangeDelIterator(const InternalKeyComparator* icmp); 29724: 29724: bool ShouldDelete(const ParsedInternalKey& parsed); 29724: void Invalidate(); 29724: 29724: void AddNewIter(TruncatedRangeDelIterator* iter, 29724: const ParsedInternalKey& parsed) { 29724: iter->SeekForPrev(parsed.user_key); 29724: PushIter(iter, parsed); 29724: 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: (static_cast ( 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: active_iters_.size() == active_seqnums_.size() 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: "active_iters_.size() == active_seqnums_.size()" 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: ; 29724: } 29724: 29724: size_t UnusedIdx() const { return unused_idx_; } 29724: void IncUnusedIdx() { unused_idx_++; } 29724: 29724: private: 29724: using ActiveSeqSet = 29724: std::multiset; 29724: 29724: struct EndKeyMaxComparator { 29724: explicit EndKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 29724: 29724: bool operator()(const TruncatedRangeDelIterator* a, 29724: const TruncatedRangeDelIterator* b) const { 29724: return icmp->Compare(a->end_key(), b->end_key()) < 0; 29724: } 29724: 29724: const InternalKeyComparator* icmp; 29724: }; 29724: struct StartKeyMaxComparator { 29724: explicit StartKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 29724: 29724: bool operator()(const ActiveSeqSet::const_iterator& a, 29724: const ActiveSeqSet::const_iterator& b) const { 29724: return icmp->Compare((*a)->start_key(), (*b)->start_key()) < 0; 29724: } 29724: 29724: const InternalKeyComparator* icmp; 29724: }; 29724: 29724: void PushIter(TruncatedRangeDelIterator* iter, 29724: const ParsedInternalKey& parsed) { 29724: if (!iter->Valid()) { 29724: 29724: 29724: } else if (icmp_->Compare(iter->end_key(), parsed) <= 0) { 29724: PushInactiveIter(iter); 29724: } else { 29724: PushActiveIter(iter); 29724: } 29724: } 29724: 29724: void PushActiveIter(TruncatedRangeDelIterator* iter) { 29724: auto seq_pos = active_seqnums_.insert(iter); 29724: active_iters_.push(seq_pos); 29724: } 29724: 29724: TruncatedRangeDelIterator* PopActiveIter() { 29724: auto active_top = active_iters_.top(); 29724: auto iter = *active_top; 29724: active_iters_.pop(); 29724: active_seqnums_.erase(active_top); 29724: return iter; 29724: } 29724: 29724: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 29724: inactive_iters_.push(iter); 29724: } 29724: 29724: TruncatedRangeDelIterator* PopInactiveIter() { 29724: auto* iter = inactive_iters_.top(); 29724: inactive_iters_.pop(); 29724: return iter; 29724: } 29724: 29724: const InternalKeyComparator* icmp_; 29724: size_t unused_idx_; 29724: ActiveSeqSet active_seqnums_; 29724: BinaryHeap active_iters_; 29724: BinaryHeap inactive_iters_; 29724: }; 29724: 29724: enum class RangeDelPositioningMode { kForwardTraversal, kBackwardTraversal }; 29724: class RangeDelAggregator { 29724: public: 29724: explicit RangeDelAggregator(const InternalKeyComparator* icmp) 29724: : icmp_(icmp) {} 29724: virtual ~RangeDelAggregator() {} 29724: 29724: virtual void AddTombstones( 29724: std::unique_ptr input_iter, 29724: const InternalKey* smallest = nullptr, 29724: const InternalKey* largest = nullptr) = 0; 29724: 29724: bool ShouldDelete(const Slice& ikey, RangeDelPositioningMode mode) { 29724: ParsedInternalKey parsed; 29724: 29724: Status pik_status = 29724: ParseInternalKey(ikey, &parsed, false ); 29724: 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: (static_cast ( 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: pik_status.ok() 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: "pik_status.ok()" 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: ; 29724: if (!pik_status.ok()) { 29724: return false; 29724: } 29724: 29724: return ShouldDelete(parsed, mode); 29724: } 29724: virtual bool ShouldDelete(const ParsedInternalKey& parsed, 29724: RangeDelPositioningMode mode) = 0; 29724: 29724: virtual void InvalidateRangeDelMapPositions() = 0; 29724: 29724: virtual bool IsEmpty() const = 0; 29724: 29724: bool AddFile(uint64_t file_number) { 29724: return files_seen_.insert(file_number).second; 29724: } 29724: 29724: protected: 29724: class StripeRep { 29724: public: 29724: StripeRep(const InternalKeyComparator* icmp, SequenceNumber upper_bound, 29724: SequenceNumber lower_bound) 29724: : icmp_(icmp), 29724: forward_iter_(icmp), 29724: reverse_iter_(icmp), 29724: upper_bound_(upper_bound), 29724: lower_bound_(lower_bound) {} 29724: 29724: void AddTombstones(std::unique_ptr input_iter) { 29724: iters_.push_back(std::move(input_iter)); 29724: } 29724: 29724: bool IsEmpty() const { return iters_.empty(); } 29724: 29724: bool ShouldDelete(const ParsedInternalKey& parsed, 29724: RangeDelPositioningMode mode); 29724: 29724: void Invalidate() { 29724: if (!IsEmpty()) { 29724: InvalidateForwardIter(); 29724: InvalidateReverseIter(); 29724: } 29724: } 29724: 29724: 29724: 29724: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29724: 29724: private: 29724: bool InStripe(SequenceNumber seq) const { 29724: return lower_bound_ <= seq && seq <= upper_bound_; 29724: } 29724: 29724: void InvalidateForwardIter() { forward_iter_.Invalidate(); } 29724: 29724: void InvalidateReverseIter() { reverse_iter_.Invalidate(); } 29724: 29724: const InternalKeyComparator* icmp_; 29724: std::vector> iters_; 29724: ForwardRangeDelIterator forward_iter_; 29724: ReverseRangeDelIterator reverse_iter_; 29724: SequenceNumber upper_bound_; 29724: SequenceNumber lower_bound_; 29724: }; 29724: 29724: const InternalKeyComparator* icmp_; 29724: 29724: private: 29724: std::set files_seen_; 29724: }; 29724: 29724: class ReadRangeDelAggregator final : public RangeDelAggregator { 29724: public: 29724: ReadRangeDelAggregator(const InternalKeyComparator* icmp, 29724: SequenceNumber upper_bound) 29724: : RangeDelAggregator(icmp), 29724: rep_(icmp, upper_bound, 0 ) {} 29724: ~ReadRangeDelAggregator() override {} 29724: 29724: using RangeDelAggregator::ShouldDelete; 29724: void AddTombstones( 29724: std::unique_ptr input_iter, 29724: const InternalKey* smallest = nullptr, 29724: const InternalKey* largest = nullptr) override; 29724: 29724: bool ShouldDelete(const ParsedInternalKey& parsed, 29724: RangeDelPositioningMode mode) final override { 29724: if (rep_.IsEmpty()) { 29724: return false; 29724: } 29724: return ShouldDeleteImpl(parsed, mode); 29724: } 29724: 29724: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29724: 29724: void InvalidateRangeDelMapPositions() override { rep_.Invalidate(); } 29724: 29724: bool IsEmpty() const override { return rep_.IsEmpty(); } 29724: 29724: private: 29724: StripeRep rep_; 29724: 29724: bool ShouldDeleteImpl(const ParsedInternalKey& parsed, 29724: RangeDelPositioningMode mode); 29724: }; 29724: 29724: class CompactionRangeDelAggregator : public RangeDelAggregator { 29724: public: 29724: CompactionRangeDelAggregator(const InternalKeyComparator* icmp, 29724: const std::vector& snapshots, 29724: const std::string* full_history_ts_low = nullptr, 29724: const std::string* trim_ts = nullptr) 29724: : RangeDelAggregator(icmp), snapshots_(&snapshots) { 29724: if (full_history_ts_low) { 29724: ts_upper_bound_ = *full_history_ts_low; 29724: } 29724: if (trim_ts) { 29724: trim_ts_ = *trim_ts; 29724: 29724: 29724: if (ts_upper_bound_.empty()) { 29724: ts_upper_bound_ = trim_ts_; 29724: } else if (!trim_ts_.empty() && icmp->user_comparator()->CompareTimestamp( 29724: trim_ts_, ts_upper_bound_) < 0) { 29724: ts_upper_bound_ = trim_ts_; 29724: } 29724: } 29724: } 29724: ~CompactionRangeDelAggregator() override {} 29724: 29724: void AddTombstones( 29724: std::unique_ptr input_iter, 29724: const InternalKey* smallest = nullptr, 29724: const InternalKey* largest = nullptr) override; 29724: 29724: using RangeDelAggregator::ShouldDelete; 29724: bool ShouldDelete(const ParsedInternalKey& parsed, 29724: RangeDelPositioningMode mode) override; 29724: 29724: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29724: 29724: void InvalidateRangeDelMapPositions() override { 29724: for (auto& rep : reps_) { 29724: rep.second.Invalidate(); 29724: } 29724: } 29724: 29724: bool IsEmpty() const override { 29724: for (const auto& rep : reps_) { 29724: if (!rep.second.IsEmpty()) { 29724: return false; 29724: } 29724: } 29724: return true; 29724: } 29724: # 468 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: std::unique_ptr NewIterator( 29724: const Slice* lower_bound = nullptr, const Slice* upper_bound = nullptr); 29724: 29724: private: 29724: std::vector> parent_iters_; 29724: std::map reps_; 29724: 29724: const std::vector* snapshots_; 29724: 29724: Slice ts_upper_bound_{}; 29724: Slice trim_ts_{}; 29724: }; 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/snapshot_checker.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: enum class SnapshotCheckerResult : int { 29724: kInSnapshot = 0, 29724: kNotInSnapshot = 1, 29724: 29724: 29724: kSnapshotReleased = 2, 29724: }; 29724: 29724: 29724: class SnapshotChecker { 29724: public: 29724: virtual ~SnapshotChecker() {} 29724: virtual SnapshotCheckerResult CheckInSnapshot( 29724: SequenceNumber sequence, SequenceNumber snapshot_sequence) const = 0; 29724: }; 29724: 29724: class DisableGCSnapshotChecker : public SnapshotChecker { 29724: public: 29724: virtual ~DisableGCSnapshotChecker() {} 29724: SnapshotCheckerResult CheckInSnapshot( 29724: SequenceNumber , 29724: SequenceNumber ) const override { 29724: 29724: return SnapshotCheckerResult::kNotInSnapshot; 29724: } 29724: static DisableGCSnapshotChecker* Instance(); 29724: 29724: protected: 29724: explicit DisableGCSnapshotChecker() {} 29724: }; 29724: 29724: class WritePreparedTxnDB; 29724: 29724: 29724: 29724: class WritePreparedSnapshotChecker : public SnapshotChecker { 29724: public: 29724: explicit WritePreparedSnapshotChecker(WritePreparedTxnDB* txn_db); 29724: virtual ~WritePreparedSnapshotChecker() {} 29724: 29724: SnapshotCheckerResult CheckInSnapshot( 29724: SequenceNumber sequence, SequenceNumber snapshot_sequence) const override; 29724: 29724: private: 29724: const WritePreparedTxnDB* const txn_db_; 29724: }; 29724: 29724: bool DataIsDefinitelyInSnapshot(SequenceNumber seqno, SequenceNumber snapshot, 29724: const SnapshotChecker* snapshot_checker); 29724: 29724: bool DataIsDefinitelyNotInSnapshot(SequenceNumber seqno, 29724: SequenceNumber snapshot, 29724: const SnapshotChecker* snapshot_checker); 29724: 29724: } 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 29724: class WideColumnSerialization { 29724: public: 29724: static Status Serialize(const WideColumns& columns, std::string& output); 29724: 29724: static Status Deserialize(Slice& input, WideColumns& columns); 29724: 29724: static Status GetValueOfDefaultColumn(Slice& input, Slice& value); 29724: 29724: static constexpr uint32_t kCurrentVersion = 1; 29724: }; 29724: 29724: } 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 2 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class SliceTransform; 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: class CompactionFilter : public Customizable { 29724: public: 29724: 29724: 29724: enum ValueType { 29724: 29724: kValue, 29724: 29724: kMergeOperand, 29724: 29724: 29724: 29724: 29724: kBlobIndex, 29724: 29724: kWideColumnEntity, 29724: }; 29724: 29724: 29724: 29724: 29724: enum class Decision { 29724: 29724: kKeep, 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: kRemove, 29724: 29724: 29724: 29724: 29724: 29724: kChangeValue, 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: kRemoveAndSkipUntil, 29724: 29724: 29724: 29724: kChangeBlobIndex, 29724: 29724: 29724: 29724: kIOError, 29724: 29724: 29724: 29724: 29724: 29724: kPurge, 29724: 29724: 29724: 29724: 29724: 29724: 29724: kChangeWideColumnEntity, 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: kUndetermined, 29724: }; 29724: 29724: 29724: enum class BlobDecision { kKeep, kChangeValue, kCorruption, kIOError }; 29724: 29724: 29724: struct Context { 29724: 29724: 29724: bool is_full_compaction; 29724: 29724: 29724: bool is_manual_compaction; 29724: 29724: 29724: int input_start_level = kUnknownStartLevel; 29724: 29724: uint32_t column_family_id; 29724: 29724: TableFileCreationReason reason; 29724: 29724: 29724: 29724: 29724: TablePropertiesCollection input_table_properties; 29724: 29724: static const int kUnknownStartLevel = -1; 29724: }; 29724: 29724: virtual ~CompactionFilter() {} 29724: static const char* Type() { return "CompactionFilter"; } 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& name, 29724: const CompactionFilter** result); 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: virtual bool Filter(int , const Slice& , 29724: const Slice& , 29724: std::string* , 29724: bool* ) const { 29724: return false; 29724: } 29724: # 217 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: virtual bool FilterMergeOperand(int , const Slice& , 29724: const Slice& ) const { 29724: return false; 29724: } 29724: # 234 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: virtual Decision FilterV2(int level, const Slice& key, ValueType value_type, 29724: const Slice& existing_value, std::string* new_value, 29724: std::string* ) const { 29724: switch (value_type) { 29724: case ValueType::kValue: { 29724: bool value_changed = false; 29724: bool rv = Filter(level, key, existing_value, new_value, &value_changed); 29724: if (rv) { 29724: return Decision::kRemove; 29724: } 29724: return value_changed ? Decision::kChangeValue : Decision::kKeep; 29724: } 29724: 29724: case ValueType::kMergeOperand: { 29724: bool rv = FilterMergeOperand(level, key, existing_value); 29724: return rv ? Decision::kRemove : Decision::kKeep; 29724: } 29724: 29724: case ValueType::kBlobIndex: 29724: return Decision::kKeep; 29724: 29724: default: 29724: 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: (static_cast ( 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: false 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: "false" 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: ; 29724: return Decision::kKeep; 29724: } 29724: } 29724: # 281 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: virtual Decision FilterV3( 29724: int level, const Slice& key, ValueType value_type, 29724: const Slice* existing_value, const WideColumns* existing_columns, 29724: std::string* new_value, 29724: std::vector>* , 29724: std::string* skip_until) const { 29724: 29724: 29724: 29724: 29724: 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: (static_cast ( 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: !existing_value || !existing_columns 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: "!existing_value || !existing_columns" 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: ; 29724: 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: (static_cast ( 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: value_type == ValueType::kWideColumnEntity || existing_value 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: "value_type == ValueType::kWideColumnEntity || existing_value" 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: ; 29724: 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: (static_cast ( 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: value_type != ValueType::kWideColumnEntity || existing_columns 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: "value_type != ValueType::kWideColumnEntity || existing_columns" 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: ; 29724: 29724: if (value_type == ValueType::kWideColumnEntity) { 29724: return Decision::kKeep; 29724: } 29724: 29724: return FilterV2(level, key, value_type, *existing_value, new_value, 29724: skip_until); 29724: } 29724: 29724: 29724: virtual BlobDecision PrepareBlobOutput(const Slice& , 29724: const Slice& , 29724: std::string* ) const { 29724: return BlobDecision::kKeep; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool IgnoreSnapshots() const { return true; } 29724: 29724: 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: virtual bool IsStackedBlobDbInternalCompactionFilter() const { return false; } 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: virtual Decision FilterBlobByKey(int , const Slice& , 29724: std::string* , 29724: std::string* ) const { 29724: return Decision::kUndetermined; 29724: } 29724: }; 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: class CompactionFilterFactory : public Customizable { 29724: public: 29724: virtual ~CompactionFilterFactory() {} 29724: static const char* Type() { return "CompactionFilterFactory"; } 29724: static Status CreateFromString( 29724: const ConfigOptions& config_options, const std::string& name, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: 29724: virtual bool ShouldFilterTableFileCreation( 29724: TableFileCreationReason reason) const { 29724: 29724: 29724: return reason == TableFileCreationReason::kCompaction; 29724: } 29724: 29724: virtual std::unique_ptr CreateCompactionFilter( 29724: const CompactionFilter::Context& context) = 0; 29724: 29724: 29724: const char* Name() const override = 0; 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/variant" 1 3 29724: # 32 "/usr/include/c++/14/variant" 3 29724: 29724: # 33 "/usr/include/c++/14/variant" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 37 "/usr/include/c++/14/variant" 2 3 29724: # 59 "/usr/include/c++/14/variant" 3 29724: 29724: # 59 "/usr/include/c++/14/variant" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template class tuple; 29724: template class variant; 29724: template struct hash; 29724: 29724: template 29724: struct variant_size; 29724: 29724: template 29724: struct variant_size : variant_size<_Variant> {}; 29724: 29724: template 29724: struct variant_size : variant_size<_Variant> {}; 29724: 29724: template 29724: struct variant_size : variant_size<_Variant> {}; 29724: 29724: template 29724: struct variant_size> 29724: : std::integral_constant {}; 29724: 29724: template 29724: inline constexpr size_t variant_size_v = variant_size<_Variant>::value; 29724: 29724: template 29724: inline constexpr size_t 29724: variant_size_v> = sizeof...(_Types); 29724: 29724: template 29724: inline constexpr size_t 29724: variant_size_v> = sizeof...(_Types); 29724: 29724: template 29724: struct variant_alternative; 29724: 29724: template 29724: struct variant_alternative<_Np, variant<_Types...>> 29724: { 29724: static_assert(_Np < sizeof...(_Types)); 29724: 29724: using type = typename _Nth_type<_Np, _Types...>::type; 29724: }; 29724: 29724: template 29724: using variant_alternative_t = 29724: typename variant_alternative<_Np, _Variant>::type; 29724: 29724: template 29724: struct variant_alternative<_Np, const _Variant> 29724: { using type = const variant_alternative_t<_Np, _Variant>; }; 29724: 29724: template 29724: struct variant_alternative<_Np, volatile _Variant> 29724: { using type = volatile variant_alternative_t<_Np, _Variant>; }; 29724: 29724: template 29724: struct variant_alternative<_Np, const volatile _Variant> 29724: { using type = const volatile variant_alternative_t<_Np, _Variant>; }; 29724: 29724: inline constexpr size_t variant_npos = -1; 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>>& 29724: get(variant<_Types...>&); 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 29724: get(variant<_Types...>&&); 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>> const& 29724: get(const variant<_Types...>&); 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>> const&& 29724: get(const variant<_Types...>&&); 29724: 29724: template 29724: constexpr decltype(auto) 29724: __do_visit(_Visitor&& __visitor, _Variants&&... __variants); 29724: 29724: template 29724: 29724: decltype(auto) 29724: __variant_cast(_Tp&& __rhs) 29724: { 29724: if constexpr (is_lvalue_reference_v<_Tp>) 29724: { 29724: if constexpr (is_const_v>) 29724: return static_cast&>(__rhs); 29724: else 29724: return static_cast&>(__rhs); 29724: } 29724: else 29724: return static_cast&&>(__rhs); 29724: } 29724: 29724: namespace __detail 29724: { 29724: namespace __variant 29724: { 29724: 29724: struct __variant_cookie {}; 29724: 29724: struct __variant_idx_cookie { using type = __variant_idx_cookie; }; 29724: 29724: template struct __deduce_visit_result { using type = _Tp; }; 29724: 29724: 29724: template 29724: constexpr void 29724: __raw_visit(_Visitor&& __visitor, _Variants&&... __variants) 29724: { 29724: std::__do_visit<__variant_cookie>(std::forward<_Visitor>(__visitor), 29724: std::forward<_Variants>(__variants)...); 29724: } 29724: 29724: 29724: template 29724: constexpr void 29724: __raw_idx_visit(_Visitor&& __visitor, _Variants&&... __variants) 29724: { 29724: std::__do_visit<__variant_idx_cookie>(std::forward<_Visitor>(__visitor), 29724: std::forward<_Variants>(__variants)...); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr std::variant<_Types...>& 29724: __as(std::variant<_Types...>& __v) noexcept 29724: { return __v; } 29724: 29724: template 29724: constexpr const std::variant<_Types...>& 29724: __as(const std::variant<_Types...>& __v) noexcept 29724: { return __v; } 29724: 29724: template 29724: constexpr std::variant<_Types...>&& 29724: __as(std::variant<_Types...>&& __v) noexcept 29724: { return std::move(__v); } 29724: 29724: template 29724: constexpr const std::variant<_Types...>&& 29724: __as(const std::variant<_Types...>&& __v) noexcept 29724: { return std::move(__v); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: struct _Uninitialized; 29724: 29724: template 29724: struct _Uninitialized<_Type, true> 29724: { 29724: template 29724: constexpr 29724: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 29724: : _M_storage(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: constexpr const _Type& _M_get() const & noexcept 29724: { return _M_storage; } 29724: 29724: constexpr _Type& _M_get() & noexcept 29724: { return _M_storage; } 29724: 29724: constexpr const _Type&& _M_get() const && noexcept 29724: { return std::move(_M_storage); } 29724: 29724: constexpr _Type&& _M_get() && noexcept 29724: { return std::move(_M_storage); } 29724: 29724: _Type _M_storage; 29724: }; 29724: 29724: template 29724: struct _Uninitialized<_Type, false> 29724: { 29724: # 279 "/usr/include/c++/14/variant" 3 29724: template 29724: constexpr 29724: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 29724: { 29724: ::new ((void*)std::addressof(_M_storage)) 29724: _Type(std::forward<_Args>(__args)...); 29724: } 29724: 29724: const _Type& _M_get() const & noexcept 29724: { return *_M_storage._M_ptr(); } 29724: 29724: _Type& _M_get() & noexcept 29724: { return *_M_storage._M_ptr(); } 29724: 29724: const _Type&& _M_get() const && noexcept 29724: { return std::move(*_M_storage._M_ptr()); } 29724: 29724: _Type&& _M_get() && noexcept 29724: { return std::move(*_M_storage._M_ptr()); } 29724: 29724: __gnu_cxx::__aligned_membuf<_Type> _M_storage; 29724: 29724: }; 29724: 29724: template 29724: constexpr decltype(auto) 29724: __get_n(_Union&& __u) noexcept 29724: { 29724: if constexpr (_Np == 0) 29724: return std::forward<_Union>(__u)._M_first._M_get(); 29724: else if constexpr (_Np == 1) 29724: return std::forward<_Union>(__u)._M_rest._M_first._M_get(); 29724: else if constexpr (_Np == 2) 29724: return std::forward<_Union>(__u)._M_rest._M_rest._M_first._M_get(); 29724: else 29724: return __variant::__get_n<_Np - 3>( 29724: std::forward<_Union>(__u)._M_rest._M_rest._M_rest); 29724: } 29724: 29724: 29724: template 29724: constexpr decltype(auto) 29724: __get(_Variant&& __v) noexcept 29724: { return __variant::__get_n<_Np>(std::forward<_Variant>(__v)._M_u); } 29724: 29724: 29724: template 29724: constexpr decltype(auto) 29724: __construct_n(_Union& __u) noexcept 29724: { 29724: if constexpr (_Np == 0) 29724: return &__u._M_first; 29724: else if constexpr (_Np == 1) 29724: { 29724: std::_Construct(&__u._M_rest); 29724: return &__u._M_rest._M_first; 29724: } 29724: else if constexpr (_Np == 2) 29724: { 29724: std::_Construct(&__u._M_rest); 29724: std::_Construct(&__u._M_rest._M_rest); 29724: return &__u._M_rest._M_rest._M_first; 29724: } 29724: else 29724: { 29724: std::_Construct(&__u._M_rest); 29724: std::_Construct(&__u._M_rest._M_rest); 29724: std::_Construct(&__u._M_rest._M_rest._M_rest); 29724: return __variant::__construct_n<_Np - 3>(__u._M_rest._M_rest._M_rest); 29724: } 29724: } 29724: 29724: template 29724: struct _Traits 29724: { 29724: static constexpr bool _S_default_ctor = 29724: is_default_constructible_v::type>; 29724: static constexpr bool _S_copy_ctor = 29724: (is_copy_constructible_v<_Types> && ...); 29724: static constexpr bool _S_move_ctor = 29724: (is_move_constructible_v<_Types> && ...); 29724: static constexpr bool _S_copy_assign = 29724: _S_copy_ctor 29724: && (is_copy_assignable_v<_Types> && ...); 29724: static constexpr bool _S_move_assign = 29724: _S_move_ctor 29724: && (is_move_assignable_v<_Types> && ...); 29724: 29724: static constexpr bool _S_trivial_dtor = 29724: (is_trivially_destructible_v<_Types> && ...); 29724: static constexpr bool _S_trivial_copy_ctor = 29724: (is_trivially_copy_constructible_v<_Types> && ...); 29724: static constexpr bool _S_trivial_move_ctor = 29724: (is_trivially_move_constructible_v<_Types> && ...); 29724: static constexpr bool _S_trivial_copy_assign = 29724: _S_trivial_dtor && _S_trivial_copy_ctor 29724: && (is_trivially_copy_assignable_v<_Types> && ...); 29724: static constexpr bool _S_trivial_move_assign = 29724: _S_trivial_dtor && _S_trivial_move_ctor 29724: && (is_trivially_move_assignable_v<_Types> && ...); 29724: 29724: 29724: 29724: static constexpr bool _S_nothrow_default_ctor = 29724: is_nothrow_default_constructible_v< 29724: typename _Nth_type<0, _Types...>::type>; 29724: static constexpr bool _S_nothrow_copy_ctor = false; 29724: static constexpr bool _S_nothrow_move_ctor = 29724: (is_nothrow_move_constructible_v<_Types> && ...); 29724: static constexpr bool _S_nothrow_copy_assign = false; 29724: static constexpr bool _S_nothrow_move_assign = 29724: _S_nothrow_move_ctor 29724: && (is_nothrow_move_assignable_v<_Types> && ...); 29724: }; 29724: 29724: 29724: template 29724: union _Variadic_union 29724: { 29724: _Variadic_union() = default; 29724: 29724: template 29724: _Variadic_union(in_place_index_t<_Np>, _Args&&...) = delete; 29724: }; 29724: 29724: template 29724: union _Variadic_union<__trivially_destructible, _First, _Rest...> 29724: { 29724: constexpr _Variadic_union() : _M_rest() { } 29724: 29724: template 29724: constexpr 29724: _Variadic_union(in_place_index_t<0>, _Args&&... __args) 29724: : _M_first(in_place_index<0>, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Variadic_union(in_place_index_t<_Np>, _Args&&... __args) 29724: : _M_rest(in_place_index<_Np-1>, std::forward<_Args>(__args)...) 29724: { } 29724: # 434 "/usr/include/c++/14/variant" 3 29724: _Uninitialized<_First> _M_first; 29724: _Variadic_union<__trivially_destructible, _Rest...> _M_rest; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt 29724: : __and_, is_trivially_copyable<_Tp>> 29724: { }; 29724: # 458 "/usr/include/c++/14/variant" 3 29724: template 29724: constexpr bool __never_valueless() 29724: { 29724: return _Traits<_Types...>::_S_move_assign 29724: && (_Never_valueless_alt<_Types>::value && ...); 29724: } 29724: 29724: 29724: template 29724: struct _Variant_storage; 29724: 29724: template 29724: using __select_index = 29724: typename __select_int::_Select_int_base::type::value_type; 29724: 29724: template 29724: struct _Variant_storage 29724: { 29724: constexpr 29724: _Variant_storage() 29724: : _M_index(static_cast<__index_type>(variant_npos)) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 29724: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 29724: _M_index{_Np} 29724: { } 29724: 29724: constexpr void 29724: _M_reset() 29724: { 29724: if (!_M_valid()) [[__unlikely__]] 29724: return; 29724: 29724: std::__do_visit([](auto&& __this_mem) mutable 29724: { 29724: std::_Destroy(std::__addressof(__this_mem)); 29724: }, __variant_cast<_Types...>(*this)); 29724: 29724: _M_index = static_cast<__index_type>(variant_npos); 29724: } 29724: 29724: 29724: ~_Variant_storage() 29724: { _M_reset(); } 29724: 29724: constexpr bool 29724: _M_valid() const noexcept 29724: { 29724: if constexpr (__variant::__never_valueless<_Types...>()) 29724: return true; 29724: return this->_M_index != __index_type(variant_npos); 29724: } 29724: 29724: _Variadic_union _M_u; 29724: using __index_type = __select_index<_Types...>; 29724: __index_type _M_index; 29724: }; 29724: 29724: template 29724: struct _Variant_storage 29724: { 29724: constexpr 29724: _Variant_storage() 29724: : _M_index(static_cast<__index_type>(variant_npos)) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 29724: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 29724: _M_index{_Np} 29724: { } 29724: 29724: constexpr void 29724: _M_reset() noexcept 29724: { _M_index = static_cast<__index_type>(variant_npos); } 29724: 29724: constexpr bool 29724: _M_valid() const noexcept 29724: { 29724: if constexpr (__variant::__never_valueless<_Types...>()) 29724: return true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: return this->_M_index != static_cast<__index_type>(variant_npos); 29724: } 29724: 29724: _Variadic_union _M_u; 29724: using __index_type = __select_index<_Types...>; 29724: __index_type _M_index; 29724: }; 29724: 29724: 29724: template 29724: 29724: inline void 29724: __emplace(_Variant_storage<_Triv, _Types...>& __v, _Args&&... __args) 29724: { 29724: __v._M_reset(); 29724: auto* __addr = __variant::__construct_n<_Np>(__v._M_u); 29724: std::_Construct(__addr, in_place_index<0>, 29724: std::forward<_Args>(__args)...); 29724: 29724: __v._M_index = _Np; 29724: } 29724: 29724: template 29724: using _Variant_storage_alias = 29724: _Variant_storage<_Traits<_Types...>::_S_trivial_dtor, _Types...>; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 29724: { 29724: using _Base = _Variant_storage_alias<_Types...>; 29724: using _Base::_Base; 29724: 29724: 29724: _Copy_ctor_base(const _Copy_ctor_base& __rhs) 29724: noexcept(_Traits<_Types...>::_S_nothrow_copy_ctor) 29724: { 29724: __variant::__raw_idx_visit( 29724: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29724: { 29724: constexpr size_t __j = __rhs_index; 29724: if constexpr (__j != variant_npos) 29724: std::_Construct(std::__addressof(this->_M_u), 29724: in_place_index<__j>, __rhs_mem); 29724: }, __variant_cast<_Types...>(__rhs)); 29724: this->_M_index = __rhs._M_index; 29724: } 29724: 29724: _Copy_ctor_base(_Copy_ctor_base&&) = default; 29724: _Copy_ctor_base& operator=(const _Copy_ctor_base&) = default; 29724: _Copy_ctor_base& operator=(_Copy_ctor_base&&) = default; 29724: }; 29724: 29724: template 29724: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 29724: { 29724: using _Base = _Variant_storage_alias<_Types...>; 29724: using _Base::_Base; 29724: }; 29724: 29724: template 29724: using _Copy_ctor_alias = 29724: _Copy_ctor_base<_Traits<_Types...>::_S_trivial_copy_ctor, _Types...>; 29724: 29724: template 29724: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 29724: { 29724: using _Base = _Copy_ctor_alias<_Types...>; 29724: using _Base::_Base; 29724: 29724: 29724: _Move_ctor_base(_Move_ctor_base&& __rhs) 29724: noexcept(_Traits<_Types...>::_S_nothrow_move_ctor) 29724: { 29724: __variant::__raw_idx_visit( 29724: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29724: { 29724: constexpr size_t __j = __rhs_index; 29724: if constexpr (__j != variant_npos) 29724: std::_Construct(std::__addressof(this->_M_u), 29724: in_place_index<__j>, 29724: std::forward(__rhs_mem)); 29724: }, __variant_cast<_Types...>(std::move(__rhs))); 29724: this->_M_index = __rhs._M_index; 29724: } 29724: 29724: _Move_ctor_base(const _Move_ctor_base&) = default; 29724: _Move_ctor_base& operator=(const _Move_ctor_base&) = default; 29724: _Move_ctor_base& operator=(_Move_ctor_base&&) = default; 29724: }; 29724: 29724: template 29724: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 29724: { 29724: using _Base = _Copy_ctor_alias<_Types...>; 29724: using _Base::_Base; 29724: }; 29724: 29724: template 29724: using _Move_ctor_alias = 29724: _Move_ctor_base<_Traits<_Types...>::_S_trivial_move_ctor, _Types...>; 29724: 29724: template 29724: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 29724: { 29724: using _Base = _Move_ctor_alias<_Types...>; 29724: using _Base::_Base; 29724: 29724: 29724: _Copy_assign_base& 29724: operator=(const _Copy_assign_base& __rhs) 29724: noexcept(_Traits<_Types...>::_S_nothrow_copy_assign) 29724: { 29724: __variant::__raw_idx_visit( 29724: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29724: { 29724: constexpr size_t __j = __rhs_index; 29724: if constexpr (__j == variant_npos) 29724: this->_M_reset(); 29724: else if (this->_M_index == __j) 29724: __variant::__get<__j>(*this) = __rhs_mem; 29724: else 29724: { 29724: using _Tj = typename _Nth_type<__j, _Types...>::type; 29724: if constexpr (is_nothrow_copy_constructible_v<_Tj> 29724: || !is_nothrow_move_constructible_v<_Tj>) 29724: __variant::__emplace<__j>(*this, __rhs_mem); 29724: else 29724: { 29724: using _Variant = variant<_Types...>; 29724: _Variant& __self = __variant_cast<_Types...>(*this); 29724: __self = _Variant(in_place_index<__j>, __rhs_mem); 29724: } 29724: } 29724: }, __variant_cast<_Types...>(__rhs)); 29724: return *this; 29724: } 29724: 29724: _Copy_assign_base(const _Copy_assign_base&) = default; 29724: _Copy_assign_base(_Copy_assign_base&&) = default; 29724: _Copy_assign_base& operator=(_Copy_assign_base&&) = default; 29724: }; 29724: 29724: template 29724: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 29724: { 29724: using _Base = _Move_ctor_alias<_Types...>; 29724: using _Base::_Base; 29724: }; 29724: 29724: template 29724: using _Copy_assign_alias = 29724: _Copy_assign_base<_Traits<_Types...>::_S_trivial_copy_assign, _Types...>; 29724: 29724: template 29724: struct _Move_assign_base : _Copy_assign_alias<_Types...> 29724: { 29724: using _Base = _Copy_assign_alias<_Types...>; 29724: using _Base::_Base; 29724: 29724: 29724: _Move_assign_base& 29724: operator=(_Move_assign_base&& __rhs) 29724: noexcept(_Traits<_Types...>::_S_nothrow_move_assign) 29724: { 29724: __variant::__raw_idx_visit( 29724: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29724: { 29724: constexpr size_t __j = __rhs_index; 29724: if constexpr (__j != variant_npos) 29724: { 29724: if (this->_M_index == __j) 29724: __variant::__get<__j>(*this) = std::move(__rhs_mem); 29724: else 29724: { 29724: using _Tj = typename _Nth_type<__j, _Types...>::type; 29724: if constexpr (is_nothrow_move_constructible_v<_Tj>) 29724: __variant::__emplace<__j>(*this, std::move(__rhs_mem)); 29724: else 29724: { 29724: using _Variant = variant<_Types...>; 29724: _Variant& __self = __variant_cast<_Types...>(*this); 29724: __self.template emplace<__j>(std::move(__rhs_mem)); 29724: } 29724: } 29724: } 29724: else 29724: this->_M_reset(); 29724: }, __variant_cast<_Types...>(__rhs)); 29724: return *this; 29724: } 29724: 29724: _Move_assign_base(const _Move_assign_base&) = default; 29724: _Move_assign_base(_Move_assign_base&&) = default; 29724: _Move_assign_base& operator=(const _Move_assign_base&) = default; 29724: }; 29724: 29724: template 29724: struct _Move_assign_base : _Copy_assign_alias<_Types...> 29724: { 29724: using _Base = _Copy_assign_alias<_Types...>; 29724: using _Base::_Base; 29724: }; 29724: 29724: template 29724: using _Move_assign_alias = 29724: _Move_assign_base<_Traits<_Types...>::_S_trivial_move_assign, _Types...>; 29724: 29724: template 29724: struct _Variant_base : _Move_assign_alias<_Types...> 29724: { 29724: using _Base = _Move_assign_alias<_Types...>; 29724: 29724: constexpr 29724: _Variant_base() noexcept(_Traits<_Types...>::_S_nothrow_default_ctor) 29724: : _Variant_base(in_place_index<0>) { } 29724: 29724: template 29724: constexpr explicit 29724: _Variant_base(in_place_index_t<_Np> __i, _Args&&... __args) 29724: : _Base(__i, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: _Variant_base(const _Variant_base&) = default; 29724: _Variant_base(_Variant_base&&) = default; 29724: _Variant_base& operator=(const _Variant_base&) = default; 29724: _Variant_base& operator=(_Variant_base&&) = default; 29724: }; 29724: 29724: template 29724: inline constexpr bool __exactly_once 29724: = std::__find_uniq_type_in_pack<_Tp, _Types...>() < sizeof...(_Types); 29724: 29724: 29724: template struct _Arr { _Ti _M_x[1]; }; 29724: 29724: 29724: template 29724: struct _Build_FUN 29724: { 29724: 29724: 29724: void _S_fun() = delete; 29724: }; 29724: 29724: 29724: template 29724: struct _Build_FUN<_Ind, _Tp, _Ti, 29724: void_t{{std::declval<_Tp>()}})>> 29724: { 29724: 29724: static integral_constant _S_fun(_Ti); 29724: }; 29724: 29724: template>> 29724: struct _Build_FUNs; 29724: 29724: template 29724: struct _Build_FUNs<_Tp, variant<_Ti...>, index_sequence<_Ind...>> 29724: : _Build_FUN<_Ind, _Tp, _Ti>... 29724: { 29724: using _Build_FUN<_Ind, _Tp, _Ti>::_S_fun...; 29724: }; 29724: 29724: 29724: 29724: template 29724: using _FUN_type 29724: = decltype(_Build_FUNs<_Tp, _Variant>::_S_fun(std::declval<_Tp>())); 29724: 29724: 29724: template 29724: inline constexpr size_t 29724: __accepted_index = variant_npos; 29724: 29724: template 29724: inline constexpr size_t 29724: __accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> 29724: = _FUN_type<_Tp, _Variant>::value; 29724: 29724: template> 29724: inline constexpr bool 29724: __extra_visit_slot_needed = false; 29724: 29724: template 29724: inline constexpr bool 29724: __extra_visit_slot_needed<__variant_cookie, _Var, variant<_Types...>> 29724: = !__variant::__never_valueless<_Types...>(); 29724: 29724: template 29724: inline constexpr bool 29724: __extra_visit_slot_needed<__variant_idx_cookie, _Var, variant<_Types...>> 29724: = !__variant::__never_valueless<_Types...>(); 29724: 29724: 29724: template 29724: struct _Multi_array; 29724: 29724: 29724: template 29724: struct _Multi_array<_Tp> 29724: { 29724: template 29724: struct __untag_result 29724: : false_type 29724: { using element_type = _Tp; }; 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wignored-qualifiers" 29724: template 29724: struct __untag_result 29724: : false_type 29724: { using element_type = void(*)(_Args...); }; 29724: #pragma GCC diagnostic pop 29724: 29724: template 29724: struct __untag_result<__variant_cookie(*)(_Args...)> 29724: : false_type 29724: { using element_type = void(*)(_Args...); }; 29724: 29724: template 29724: struct __untag_result<__variant_idx_cookie(*)(_Args...)> 29724: : false_type 29724: { using element_type = void(*)(_Args...); }; 29724: 29724: template 29724: struct __untag_result<__deduce_visit_result<_Res>(*)(_Args...)> 29724: : true_type 29724: { using element_type = _Res(*)(_Args...); }; 29724: 29724: using __result_is_deduced = __untag_result<_Tp>; 29724: 29724: constexpr const typename __untag_result<_Tp>::element_type& 29724: _M_access() const 29724: { return _M_data; } 29724: 29724: typename __untag_result<_Tp>::element_type _M_data; 29724: }; 29724: 29724: 29724: template 29724: struct _Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...> 29724: { 29724: static constexpr size_t __index = 29724: sizeof...(_Variants) - sizeof...(__rest) - 1; 29724: 29724: using _Variant = typename _Nth_type<__index, _Variants...>::type; 29724: 29724: static constexpr int __do_cookie = 29724: __extra_visit_slot_needed<_Ret, _Variant> ? 1 : 0; 29724: 29724: using _Tp = _Ret(*)(_Visitor, _Variants...); 29724: 29724: template 29724: constexpr decltype(auto) 29724: _M_access(size_t __first_index, _Args... __rest_indices) const 29724: { 29724: return _M_arr[__first_index + __do_cookie] 29724: ._M_access(__rest_indices...); 29724: } 29724: 29724: _Multi_array<_Tp, __rest...> _M_arr[__first + __do_cookie]; 29724: }; 29724: # 949 "/usr/include/c++/14/variant" 3 29724: template 29724: struct __gen_vtable_impl; 29724: # 959 "/usr/include/c++/14/variant" 3 29724: template 29724: struct __gen_vtable_impl< 29724: _Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>, 29724: std::index_sequence<__indices...>> 29724: { 29724: using _Next = 29724: remove_reference_t::type>; 29724: using _Array_type = 29724: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 29724: __dimensions...>; 29724: 29724: static constexpr _Array_type 29724: _S_apply() 29724: { 29724: _Array_type __vtable{}; 29724: _S_apply_all_alts( 29724: __vtable, make_index_sequence>()); 29724: return __vtable; 29724: } 29724: 29724: template 29724: static constexpr void 29724: _S_apply_all_alts(_Array_type& __vtable, 29724: std::index_sequence<__var_indices...>) 29724: { 29724: if constexpr (__extra_visit_slot_needed<_Result_type, _Next>) 29724: (_S_apply_single_alt( 29724: __vtable._M_arr[__var_indices + 1], 29724: &(__vtable._M_arr[0])), ...); 29724: else 29724: (_S_apply_single_alt( 29724: __vtable._M_arr[__var_indices]), ...); 29724: } 29724: 29724: template 29724: static constexpr void 29724: _S_apply_single_alt(_Tp& __element, _Tp* __cookie_element = nullptr) 29724: { 29724: if constexpr (__do_cookie) 29724: { 29724: __element = __gen_vtable_impl< 29724: _Tp, 29724: std::index_sequence<__indices..., __index>>::_S_apply(); 29724: *__cookie_element = __gen_vtable_impl< 29724: _Tp, 29724: std::index_sequence<__indices..., variant_npos>>::_S_apply(); 29724: } 29724: else 29724: { 29724: auto __tmp_element = __gen_vtable_impl< 29724: remove_reference_t, 29724: std::index_sequence<__indices..., __index>>::_S_apply(); 29724: static_assert(is_same_v<_Tp, decltype(__tmp_element)>, 29724: "std::visit requires the visitor to have the same " 29724: "return type for all alternatives of a variant"); 29724: __element = __tmp_element; 29724: } 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __gen_vtable_impl< 29724: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>, 29724: std::index_sequence<__indices...>> 29724: { 29724: using _Array_type = 29724: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>; 29724: 29724: template 29724: static constexpr decltype(auto) 29724: __element_by_index_or_cookie(_Variant&& __var) noexcept 29724: { 29724: if constexpr (__index != variant_npos) 29724: return __variant::__get<__index>(std::forward<_Variant>(__var)); 29724: else 29724: return __variant_cookie{}; 29724: } 29724: 29724: static constexpr decltype(auto) 29724: __visit_invoke(_Visitor&& __visitor, _Variants... __vars) 29724: { 29724: if constexpr (is_same_v<_Result_type, __variant_idx_cookie>) 29724: 29724: 29724: std::__invoke(std::forward<_Visitor>(__visitor), 29724: __element_by_index_or_cookie<__indices>( 29724: std::forward<_Variants>(__vars))..., 29724: integral_constant()...); 29724: else if constexpr (is_same_v<_Result_type, __variant_cookie>) 29724: 29724: std::__invoke(std::forward<_Visitor>(__visitor), 29724: __element_by_index_or_cookie<__indices>( 29724: std::forward<_Variants>(__vars))...); 29724: else if constexpr (_Array_type::__result_is_deduced::value) 29724: 29724: return std::__invoke(std::forward<_Visitor>(__visitor), 29724: __element_by_index_or_cookie<__indices>( 29724: std::forward<_Variants>(__vars))...); 29724: else 29724: return std::__invoke_r<_Result_type>( 29724: std::forward<_Visitor>(__visitor), 29724: __variant::__get<__indices>(std::forward<_Variants>(__vars))...); 29724: } 29724: 29724: static constexpr auto 29724: _S_apply() 29724: { 29724: if constexpr (_Array_type::__result_is_deduced::value) 29724: { 29724: constexpr bool __visit_ret_type_mismatch = 29724: !is_same_v(), 29724: std::declval<_Variants>()...))>; 29724: if constexpr (__visit_ret_type_mismatch) 29724: { 29724: struct __cannot_match {}; 29724: return __cannot_match{}; 29724: } 29724: else 29724: return _Array_type{&__visit_invoke}; 29724: } 29724: else 29724: return _Array_type{&__visit_invoke}; 29724: } 29724: }; 29724: 29724: template 29724: struct __gen_vtable 29724: { 29724: using _Array_type = 29724: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 29724: variant_size_v>...>; 29724: 29724: static constexpr _Array_type _S_vtable 29724: = __gen_vtable_impl<_Array_type, std::index_sequence<>>::_S_apply(); 29724: }; 29724: 29724: template 29724: struct _Base_dedup : public _Tp { }; 29724: 29724: template 29724: struct _Variant_hash_base; 29724: 29724: template 29724: struct _Variant_hash_base, 29724: std::index_sequence<__indices...>> 29724: : _Base_dedup<__indices, __poison_hash>>... { }; 29724: 29724: 29724: template())), 29724: typename _Tp = variant_alternative_t<_Np, remove_reference_t<_AsV>>> 29724: using __get_t 29724: = __conditional_t, _Tp&, _Tp&&>; 29724: 29724: 29724: template 29724: using __visit_result_t 29724: = invoke_result_t<_Visitor, __get_t<0, _Variants>...>; 29724: 29724: template 29724: constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); 29724: 29724: template 29724: constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) 29724: { 29724: return __same_types< 29724: invoke_result_t<_Visitor, __get_t<_Idxs, _Variant>>... 29724: >; 29724: } 29724: 29724: } 29724: } 29724: 29724: template 29724: constexpr bool 29724: holds_alternative(const variant<_Types...>& __v) noexcept 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: return __v.index() == std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: } 29724: 29724: template 29724: constexpr _Tp& 29724: get(variant<_Types...>& __v) 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get<__n>(__v); 29724: } 29724: 29724: template 29724: constexpr _Tp&& 29724: get(variant<_Types...>&& __v) 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get<__n>(std::move(__v)); 29724: } 29724: 29724: template 29724: constexpr const _Tp& 29724: get(const variant<_Types...>& __v) 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get<__n>(__v); 29724: } 29724: 29724: template 29724: constexpr const _Tp&& 29724: get(const variant<_Types...>&& __v) 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get<__n>(std::move(__v)); 29724: } 29724: 29724: template 29724: constexpr add_pointer_t>> 29724: get_if(variant<_Types...>* __ptr) noexcept 29724: { 29724: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 29724: if (__ptr && __ptr->index() == _Np) 29724: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 29724: return nullptr; 29724: } 29724: 29724: template 29724: constexpr 29724: add_pointer_t>> 29724: get_if(const variant<_Types...>* __ptr) noexcept 29724: { 29724: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 29724: if (__ptr && __ptr->index() == _Np) 29724: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 29724: return nullptr; 29724: } 29724: 29724: template 29724: constexpr add_pointer_t<_Tp> 29724: get_if(variant<_Types...>* __ptr) noexcept 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get_if<__n>(__ptr); 29724: } 29724: 29724: template 29724: constexpr add_pointer_t 29724: get_if(const variant<_Types...>* __ptr) noexcept 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get_if<__n>(__ptr); 29724: } 29724: 29724: struct monostate { }; 29724: # 1264 "/usr/include/c++/14/variant" 3 29724: template constexpr bool operator <(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem < __rhs_mem; } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); }, __rhs); return __ret; } 29724: template constexpr bool operator <=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem <= __rhs_mem; } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); }, __rhs); return __ret; } 29724: template constexpr bool operator ==(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem == __rhs_mem; } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); }, __rhs); return __ret; } 29724: template constexpr bool operator !=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem != __rhs_mem; } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); }, __rhs); return __ret; } 29724: template constexpr bool operator >=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem >= __rhs_mem; } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); }, __rhs); return __ret; } 29724: template constexpr bool operator >(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem > __rhs_mem; } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); }, __rhs); return __ret; } 29724: 29724: 29724: 29724: constexpr bool operator==(monostate, monostate) noexcept { return true; } 29724: # 1305 "/usr/include/c++/14/variant" 3 29724: constexpr bool operator!=(monostate, monostate) noexcept { return false; } 29724: constexpr bool operator<(monostate, monostate) noexcept { return false; } 29724: constexpr bool operator>(monostate, monostate) noexcept { return false; } 29724: constexpr bool operator<=(monostate, monostate) noexcept { return true; } 29724: constexpr bool operator>=(monostate, monostate) noexcept { return true; } 29724: 29724: 29724: template 29724: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 29724: visit(_Visitor&&, _Variants&&...); 29724: 29724: template 29724: 29724: inline enable_if_t<(is_move_constructible_v<_Types> && ...) 29724: && (is_swappable_v<_Types> && ...)> 29724: swap(variant<_Types...>& __lhs, variant<_Types...>& __rhs) 29724: noexcept(noexcept(__lhs.swap(__rhs))) 29724: { __lhs.swap(__rhs); } 29724: 29724: template 29724: enable_if_t && ...) 29724: && (is_swappable_v<_Types> && ...))> 29724: swap(variant<_Types...>&, variant<_Types...>&) = delete; 29724: 29724: class bad_variant_access : public exception 29724: { 29724: public: 29724: bad_variant_access() noexcept { } 29724: 29724: const char* what() const noexcept override 29724: { return _M_reason; } 29724: 29724: private: 29724: bad_variant_access(const char* __reason) noexcept : _M_reason(__reason) { } 29724: 29724: 29724: const char* _M_reason = "bad variant access"; 29724: 29724: friend void __throw_bad_variant_access(const char* __what); 29724: }; 29724: 29724: 29724: inline void 29724: __throw_bad_variant_access(const char* __what) 29724: { (throw (bad_variant_access(__what))); } 29724: 29724: inline void 29724: __throw_bad_variant_access(bool __valueless) 29724: { 29724: if (__valueless) [[__unlikely__]] 29724: __throw_bad_variant_access("std::get: variant is valueless"); 29724: else 29724: __throw_bad_variant_access("std::get: wrong index for variant"); 29724: } 29724: 29724: template 29724: class variant 29724: : private __detail::__variant::_Variant_base<_Types...>, 29724: private _Enable_copy_move< 29724: __detail::__variant::_Traits<_Types...>::_S_copy_ctor, 29724: __detail::__variant::_Traits<_Types...>::_S_copy_assign, 29724: __detail::__variant::_Traits<_Types...>::_S_move_ctor, 29724: __detail::__variant::_Traits<_Types...>::_S_move_assign, 29724: variant<_Types...>> 29724: { 29724: private: 29724: template 29724: friend decltype(auto) 29724: __variant_cast(_Tp&&); 29724: 29724: static_assert(sizeof...(_Types) > 0, 29724: "variant must have at least one alternative"); 29724: 29724: 29724: 29724: 29724: static_assert((std::is_object_v<_Types> && ...), 29724: "variant alternatives must be object types"); 29724: 29724: 29724: using _Base = __detail::__variant::_Variant_base<_Types...>; 29724: 29724: template 29724: static constexpr bool __not_self 29724: = !is_same_v<__remove_cvref_t<_Tp>, variant>; 29724: 29724: template 29724: static constexpr bool 29724: __exactly_once = __detail::__variant::__exactly_once<_Tp, _Types...>; 29724: 29724: template 29724: static constexpr size_t __accepted_index 29724: = __detail::__variant::__accepted_index<_Tp, variant>; 29724: 29724: template> 29724: using __to_type = typename _Nth_type<_Np, _Types...>::type; 29724: 29724: template>> 29724: using __accepted_type = __to_type<__accepted_index<_Tp>>; 29724: 29724: template 29724: static constexpr size_t __index_of 29724: = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: 29724: using _Traits = __detail::__variant::_Traits<_Types...>; 29724: 29724: template 29724: struct __is_in_place_tag : false_type { }; 29724: template 29724: struct __is_in_place_tag> : true_type { }; 29724: template 29724: struct __is_in_place_tag> : true_type { }; 29724: 29724: template 29724: static constexpr bool __not_in_place_tag 29724: = !__is_in_place_type_v<__remove_cvref_t<_Tp>> 29724: && !__is_in_place_index_v<__remove_cvref_t<_Tp>>; 29724: 29724: public: 29724: 29724: 29724: 29724: template, 29724: typename = enable_if_t>> 29724: constexpr 29724: variant() noexcept(is_nothrow_default_constructible_v<__to_type<0>>) 29724: { } 29724: 29724: 29724: variant(const variant& __rhs) = default; 29724: variant(variant&&) = default; 29724: variant& operator=(const variant&) = default; 29724: variant& operator=(variant&&) = default; 29724: ~variant() = default; 29724: 29724: template, 29724: typename = enable_if_t<__not_in_place_tag<_Tp>>, 29724: typename _Tj = __accepted_type<_Tp&&>, 29724: typename = enable_if_t<__exactly_once<_Tj> 29724: && is_constructible_v<_Tj, _Tp>>> 29724: constexpr 29724: variant(_Tp&& __t) 29724: noexcept(is_nothrow_constructible_v<_Tj, _Tp>) 29724: : variant(in_place_index<__accepted_index<_Tp>>, 29724: std::forward<_Tp>(__t)) 29724: { } 29724: 29724: template 29724: && is_constructible_v<_Tp, _Args...>>> 29724: constexpr explicit 29724: variant(in_place_type_t<_Tp>, _Args&&... __args) 29724: : variant(in_place_index<__index_of<_Tp>>, 29724: std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: && is_constructible_v<_Tp, 29724: initializer_list<_Up>&, _Args...>>> 29724: constexpr explicit 29724: variant(in_place_type_t<_Tp>, initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : variant(in_place_index<__index_of<_Tp>>, __il, 29724: std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template, 29724: typename = enable_if_t>> 29724: constexpr explicit 29724: variant(in_place_index_t<_Np>, _Args&&... __args) 29724: : _Base(in_place_index<_Np>, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template, 29724: typename = enable_if_t&, 29724: _Args...>>> 29724: constexpr explicit 29724: variant(in_place_index_t<_Np>, initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : _Base(in_place_index<_Np>, __il, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: 29724: enable_if_t<__exactly_once<__accepted_type<_Tp&&>> 29724: && is_constructible_v<__accepted_type<_Tp&&>, _Tp> 29724: && is_assignable_v<__accepted_type<_Tp&&>&, _Tp>, 29724: variant&> 29724: operator=(_Tp&& __rhs) 29724: noexcept(is_nothrow_assignable_v<__accepted_type<_Tp&&>&, _Tp> 29724: && is_nothrow_constructible_v<__accepted_type<_Tp&&>, _Tp>) 29724: { 29724: constexpr auto __index = __accepted_index<_Tp>; 29724: if (index() == __index) 29724: std::get<__index>(*this) = std::forward<_Tp>(__rhs); 29724: else 29724: { 29724: using _Tj = __accepted_type<_Tp&&>; 29724: if constexpr (is_nothrow_constructible_v<_Tj, _Tp> 29724: || !is_nothrow_move_constructible_v<_Tj>) 29724: this->emplace<__index>(std::forward<_Tp>(__rhs)); 29724: else 29724: 29724: 29724: this->emplace<__index>(_Tj(std::forward<_Tp>(__rhs))); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: enable_if_t && __exactly_once<_Tp>, 29724: _Tp&> 29724: emplace(_Args&&... __args) 29724: { 29724: constexpr size_t __index = __index_of<_Tp>; 29724: return this->emplace<__index>(std::forward<_Args>(__args)...); 29724: } 29724: 29724: template 29724: 29724: enable_if_t&, _Args...> 29724: && __exactly_once<_Tp>, 29724: _Tp&> 29724: emplace(initializer_list<_Up> __il, _Args&&... __args) 29724: { 29724: constexpr size_t __index = __index_of<_Tp>; 29724: return this->emplace<__index>(__il, std::forward<_Args>(__args)...); 29724: } 29724: 29724: template 29724: 29724: enable_if_t, _Args...>, 29724: __to_type<_Np>&> 29724: emplace(_Args&&... __args) 29724: { 29724: namespace __variant = std::__detail::__variant; 29724: using type = typename _Nth_type<_Np, _Types...>::type; 29724: 29724: 29724: if constexpr (is_nothrow_constructible_v) 29724: { 29724: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 29724: } 29724: else if constexpr (is_scalar_v) 29724: { 29724: 29724: const type __tmp(std::forward<_Args>(__args)...); 29724: 29724: __variant::__emplace<_Np>(*this, __tmp); 29724: } 29724: else if constexpr (__variant::_Never_valueless_alt() 29724: && _Traits::_S_move_assign) 29724: { 29724: 29724: variant __tmp(in_place_index<_Np>, 29724: std::forward<_Args>(__args)...); 29724: 29724: *this = std::move(__tmp); 29724: } 29724: else 29724: { 29724: 29724: 29724: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 29724: } 29724: return std::get<_Np>(*this); 29724: } 29724: 29724: template 29724: 29724: enable_if_t, 29724: initializer_list<_Up>&, _Args...>, 29724: __to_type<_Np>&> 29724: emplace(initializer_list<_Up> __il, _Args&&... __args) 29724: { 29724: namespace __variant = std::__detail::__variant; 29724: using type = typename _Nth_type<_Np, _Types...>::type; 29724: 29724: 29724: if constexpr (is_nothrow_constructible_v&, 29724: _Args...>) 29724: { 29724: __variant::__emplace<_Np>(*this, __il, 29724: std::forward<_Args>(__args)...); 29724: } 29724: else if constexpr (__variant::_Never_valueless_alt() 29724: && _Traits::_S_move_assign) 29724: { 29724: 29724: variant __tmp(in_place_index<_Np>, __il, 29724: std::forward<_Args>(__args)...); 29724: 29724: *this = std::move(__tmp); 29724: } 29724: else 29724: { 29724: 29724: 29724: __variant::__emplace<_Np>(*this, __il, 29724: std::forward<_Args>(__args)...); 29724: } 29724: return std::get<_Np>(*this); 29724: } 29724: 29724: template 29724: enable_if_t emplace(_Args&&...) = delete; 29724: 29724: template 29724: enable_if_t> emplace(_Args&&...) = delete; 29724: 29724: constexpr bool valueless_by_exception() const noexcept 29724: { return !this->_M_valid(); } 29724: 29724: constexpr size_t index() const noexcept 29724: { 29724: using __index_type = typename _Base::__index_type; 29724: if constexpr (__detail::__variant::__never_valueless<_Types...>()) 29724: return this->_M_index; 29724: else if constexpr (sizeof...(_Types) <= __index_type(-1) / 2) 29724: return make_signed_t<__index_type>(this->_M_index); 29724: else 29724: return size_t(__index_type(this->_M_index + 1)) - 1; 29724: } 29724: 29724: 29724: void 29724: swap(variant& __rhs) 29724: noexcept((__is_nothrow_swappable<_Types>::value && ...) 29724: && is_nothrow_move_constructible_v) 29724: { 29724: static_assert((is_move_constructible_v<_Types> && ...)); 29724: 29724: 29724: if (__rhs.valueless_by_exception()) [[__unlikely__]] 29724: { 29724: if (!this->valueless_by_exception()) [[__likely__]] 29724: __rhs.swap(*this); 29724: return; 29724: } 29724: 29724: namespace __variant = __detail::__variant; 29724: 29724: __variant::__raw_idx_visit( 29724: [this, &__rhs](auto&& __rhs_mem, auto __rhs_index) mutable 29724: { 29724: constexpr size_t __j = __rhs_index; 29724: if constexpr (__j != variant_npos) 29724: { 29724: if (this->index() == __j) 29724: { 29724: using std::swap; 29724: swap(std::get<__j>(*this), __rhs_mem); 29724: } 29724: else 29724: { 29724: auto __tmp(std::move(__rhs_mem)); 29724: 29724: if constexpr (_Traits::_S_trivial_move_assign) 29724: __rhs = std::move(*this); 29724: else 29724: __variant::__raw_idx_visit( 29724: [&__rhs](auto&& __this_mem, auto __this_index) mutable 29724: { 29724: constexpr size_t __k = __this_index; 29724: if constexpr (__k != variant_npos) 29724: __variant::__emplace<__k>(__rhs, 29724: std::move(__this_mem)); 29724: }, *this); 29724: 29724: __variant::__emplace<__j>(*this, std::move(__tmp)); 29724: } 29724: } 29724: }, __rhs); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: private: 29724: template 29724: friend constexpr decltype(auto) 29724: __detail::__variant::__get(_Vp&& __v) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template friend constexpr bool operator <(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: template friend constexpr bool operator <=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: template friend constexpr bool operator ==(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: template friend constexpr bool operator !=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: template friend constexpr bool operator >=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: template friend constexpr bool operator >(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: 29724: 29724: }; 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>>& 29724: get(variant<_Types...>& __v) 29724: { 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: if (__v.index() != _Np) 29724: __throw_bad_variant_access(__v.valueless_by_exception()); 29724: return __detail::__variant::__get<_Np>(__v); 29724: } 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 29724: get(variant<_Types...>&& __v) 29724: { 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: if (__v.index() != _Np) 29724: __throw_bad_variant_access(__v.valueless_by_exception()); 29724: return __detail::__variant::__get<_Np>(std::move(__v)); 29724: } 29724: 29724: template 29724: constexpr const variant_alternative_t<_Np, variant<_Types...>>& 29724: get(const variant<_Types...>& __v) 29724: { 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: if (__v.index() != _Np) 29724: __throw_bad_variant_access(__v.valueless_by_exception()); 29724: return __detail::__variant::__get<_Np>(__v); 29724: } 29724: 29724: template 29724: constexpr const variant_alternative_t<_Np, variant<_Types...>>&& 29724: get(const variant<_Types...>&& __v) 29724: { 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: if (__v.index() != _Np) 29724: __throw_bad_variant_access(__v.valueless_by_exception()); 29724: return __detail::__variant::__get<_Np>(std::move(__v)); 29724: } 29724: 29724: 29724: template 29724: constexpr decltype(auto) 29724: __do_visit(_Visitor&& __visitor, _Variants&&... __variants) 29724: { 29724: 29724: if constexpr (sizeof...(_Variants) == 0) 29724: { 29724: if constexpr (is_void_v<_Result_type>) 29724: return (void) std::forward<_Visitor>(__visitor)(); 29724: else 29724: return std::forward<_Visitor>(__visitor)(); 29724: } 29724: else 29724: { 29724: constexpr size_t __max = 11; 29724: 29724: 29724: using _V0 = typename _Nth_type<0, _Variants...>::type; 29724: 29724: constexpr auto __n = variant_size_v>; 29724: 29724: if constexpr (sizeof...(_Variants) > 1 || __n > __max) 29724: { 29724: 29724: constexpr auto& __vtable = __detail::__variant::__gen_vtable< 29724: _Result_type, _Visitor&&, _Variants&&...>::_S_vtable; 29724: 29724: auto __func_ptr = __vtable._M_access(__variants.index()...); 29724: return (*__func_ptr)(std::forward<_Visitor>(__visitor), 29724: std::forward<_Variants>(__variants)...); 29724: } 29724: else 29724: { 29724: 29724: _V0& __v0 29724: = [](_V0& __v, ...) -> _V0& { return __v; }(__variants...); 29724: 29724: using __detail::__variant::_Multi_array; 29724: using __detail::__variant::__gen_vtable_impl; 29724: using _Ma = _Multi_array<_Result_type (*)(_Visitor&&, _V0&&)>; 29724: # 1817 "/usr/include/c++/14/variant" 3 29724: switch (__v0.index()) 29724: { 29724: case 0: { if constexpr (0 < __n) { return __gen_vtable_impl<_Ma, index_sequence<0>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 1: { if constexpr (1 < __n) { return __gen_vtable_impl<_Ma, index_sequence<1>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 2: { if constexpr (2 < __n) { return __gen_vtable_impl<_Ma, index_sequence<2>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 3: { if constexpr (3 < __n) { return __gen_vtable_impl<_Ma, index_sequence<3>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 4: { if constexpr (4 < __n) { return __gen_vtable_impl<_Ma, index_sequence<4>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 5: { if constexpr (5 < __n) { return __gen_vtable_impl<_Ma, index_sequence<5>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 6: { if constexpr (6 < __n) { return __gen_vtable_impl<_Ma, index_sequence<6>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 7: { if constexpr (7 < __n) { return __gen_vtable_impl<_Ma, index_sequence<7>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 8: { if constexpr (8 < __n) { return __gen_vtable_impl<_Ma, index_sequence<8>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 9: { if constexpr (9 < __n) { return __gen_vtable_impl<_Ma, index_sequence<9>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 10: { if constexpr (10 < __n) { return __gen_vtable_impl<_Ma, index_sequence<10>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case variant_npos: 29724: using __detail::__variant::__variant_idx_cookie; 29724: using __detail::__variant::__variant_cookie; 29724: if constexpr (is_same_v<_Result_type, __variant_idx_cookie> 29724: || is_same_v<_Result_type, __variant_cookie>) 29724: { 29724: using _Npos = index_sequence; 29724: return __gen_vtable_impl<_Ma, _Npos>:: 29724: __visit_invoke(std::forward<_Visitor>(__visitor), 29724: std::forward<_V0>(__v0)); 29724: } 29724: else 29724: __builtin_unreachable(); 29724: default: 29724: __builtin_unreachable(); 29724: } 29724: 29724: 29724: } 29724: } 29724: } 29724: 29724: 29724: template 29724: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 29724: visit(_Visitor&& __visitor, _Variants&&... __variants) 29724: { 29724: namespace __variant = std::__detail::__variant; 29724: 29724: if ((__variant::__as(__variants).valueless_by_exception() || ...)) 29724: __throw_bad_variant_access("std::visit: variant is valueless"); 29724: 29724: using _Result_type 29724: = __detail::__variant::__visit_result_t<_Visitor, _Variants...>; 29724: 29724: using _Tag = __detail::__variant::__deduce_visit_result<_Result_type>; 29724: 29724: if constexpr (sizeof...(_Variants) == 1) 29724: { 29724: using _Vp = decltype(__variant::__as(std::declval<_Variants>()...)); 29724: 29724: constexpr bool __visit_rettypes_match = __detail::__variant:: 29724: __check_visitor_results<_Visitor, _Vp>( 29724: make_index_sequence>>()); 29724: if constexpr (!__visit_rettypes_match) 29724: { 29724: static_assert(__visit_rettypes_match, 29724: "std::visit requires the visitor to have the same " 29724: "return type for all alternatives of a variant"); 29724: return; 29724: } 29724: else 29724: return std::__do_visit<_Tag>( 29724: std::forward<_Visitor>(__visitor), 29724: static_cast<_Vp>(__variants)...); 29724: } 29724: else 29724: return std::__do_visit<_Tag>( 29724: std::forward<_Visitor>(__visitor), 29724: __variant::__as(std::forward<_Variants>(__variants))...); 29724: } 29724: # 1908 "/usr/include/c++/14/variant" 3 29724: template 29724: struct __variant_hash_call_base_impl 29724: { 29724: size_t 29724: operator()(const variant<_Types...>& __t) const 29724: noexcept((is_nothrow_invocable_v>, _Types> && ...)) 29724: { 29724: size_t __ret; 29724: __detail::__variant::__raw_visit( 29724: [&__t, &__ret](auto&& __t_mem) mutable 29724: { 29724: using _Type = __remove_cvref_t; 29724: if constexpr (!is_same_v<_Type, 29724: __detail::__variant::__variant_cookie>) 29724: __ret = std::hash{}(__t.index()) 29724: + std::hash<_Type>{}(__t_mem); 29724: else 29724: __ret = std::hash{}(__t.index()); 29724: }, __t); 29724: return __ret; 29724: } 29724: }; 29724: 29724: template 29724: struct __variant_hash_call_base_impl {}; 29724: 29724: template 29724: using __variant_hash_call_base = 29724: __variant_hash_call_base_impl<(__poison_hash>:: 29724: __enable_hash_call &&...), _Types...>; 29724: 29724: 29724: template 29724: struct hash> 29724: : private __detail::__variant::_Variant_hash_base< 29724: variant<_Types...>, std::index_sequence_for<_Types...>>, 29724: public __variant_hash_call_base<_Types...> 29724: { 29724: using result_type [[__deprecated__]] = size_t; 29724: using argument_type [[__deprecated__]] = variant<_Types...>; 29724: }; 29724: 29724: template<> 29724: struct hash 29724: { 29724: using result_type [[__deprecated__]] = size_t; 29724: using argument_type [[__deprecated__]] = monostate; 29724: 29724: size_t 29724: operator()(const monostate&) const noexcept 29724: { 29724: constexpr size_t __magic_monostate_hash = -7777; 29724: return __magic_monostate_hash; 29724: } 29724: }; 29724: 29724: template 29724: struct __is_fast_hash>> 29724: : bool_constant<(__is_fast_hash<_Types>::value && ...)> 29724: { }; 29724: 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class Logger; 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: class MergeOperator : public Customizable { 29724: public: 29724: virtual ~MergeOperator() {} 29724: static const char* Type() { return "MergeOperator"; } 29724: static Status CreateFromString(const ConfigOptions& opts, 29724: const std::string& id, 29724: std::shared_ptr* result); 29724: # 79 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool FullMerge(const Slice& , const Slice* , 29724: const std::deque& , 29724: std::string* , Logger* ) const { 29724: 29724: 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29724: (static_cast ( 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: false 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: "false" 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: ; 29724: return false; 29724: } 29724: 29724: struct MergeOperationInput { 29724: 29724: explicit MergeOperationInput(const Slice& _key, 29724: const Slice* _existing_value, 29724: const std::vector& _operand_list, 29724: Logger* _logger) 29724: : key(_key), 29724: existing_value(_existing_value), 29724: operand_list(_operand_list), 29724: logger(_logger) {} 29724: 29724: 29724: const Slice& key; 29724: 29724: 29724: const Slice* existing_value; 29724: 29724: const std::vector& operand_list; 29724: 29724: 29724: Logger* logger; 29724: }; 29724: 29724: enum class OpFailureScope { 29724: kDefault, 29724: kTryMerge, 29724: kMustMerge, 29724: kOpFailureScopeMax, 29724: }; 29724: 29724: struct MergeOperationOutput { 29724: explicit MergeOperationOutput(std::string& _new_value, 29724: Slice& _existing_operand) 29724: : new_value(_new_value), existing_operand(_existing_operand) {} 29724: 29724: 29724: std::string& new_value; 29724: 29724: 29724: 29724: Slice& existing_operand; 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 29724: }; 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool FullMergeV2(const MergeOperationInput& merge_in, 29724: MergeOperationOutput* merge_out) const; 29724: 29724: struct MergeOperationInputV3 { 29724: using ExistingValue = std::variant; 29724: using OperandList = std::vector; 29724: 29724: explicit MergeOperationInputV3(const Slice& _key, 29724: ExistingValue&& _existing_value, 29724: const OperandList& _operand_list, 29724: Logger* _logger) 29724: : key(_key), 29724: existing_value(std::move(_existing_value)), 29724: operand_list(_operand_list), 29724: logger(_logger) {} 29724: 29724: 29724: const Slice& key; 29724: 29724: 29724: 29724: ExistingValue existing_value; 29724: 29724: const OperandList& operand_list; 29724: 29724: Logger* logger; 29724: }; 29724: 29724: struct MergeOperationOutputV3 { 29724: using NewColumns = std::vector>; 29724: using NewValue = std::variant; 29724: 29724: 29724: 29724: 29724: NewValue new_value; 29724: 29724: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 29724: }; 29724: # 209 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool FullMergeV3(const MergeOperationInputV3& merge_in, 29724: MergeOperationOutputV3* merge_out) const; 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool PartialMerge(const Slice& , const Slice& , 29724: const Slice& , 29724: std::string* , 29724: Logger* ) const { 29724: return false; 29724: } 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool PartialMergeMulti(const Slice& key, 29724: const std::deque& operand_list, 29724: std::string* new_value, Logger* logger) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool AllowSingleOperand() const { return false; } 29724: # 300 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool ShouldMerge(const std::vector& ) const { 29724: return false; 29724: } 29724: }; 29724: 29724: 29724: class AssociativeMergeOperator : public MergeOperator { 29724: public: 29724: ~AssociativeMergeOperator() override {} 29724: # 323 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool Merge(const Slice& key, const Slice* existing_value, 29724: const Slice& value, std::string* new_value, 29724: Logger* logger) const = 0; 29724: 29724: private: 29724: 29724: bool FullMergeV2(const MergeOperationInput& merge_in, 29724: MergeOperationOutput* merge_out) const override; 29724: 29724: bool PartialMerge(const Slice& key, const Slice& left_operand, 29724: const Slice& right_operand, std::string* new_value, 29724: Logger* logger) const override; 29724: }; 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Comparator; 29724: class Iterator; 29724: class Logger; 29724: class MergeOperator; 29724: class Statistics; 29724: class SystemClock; 29724: class BlobFetcher; 29724: class PrefetchBufferCollection; 29724: struct CompactionIterationStats; 29724: 29724: class MergeHelper { 29724: public: 29724: MergeHelper(Env* env, const Comparator* user_comparator, 29724: const MergeOperator* user_merge_operator, 29724: const CompactionFilter* compaction_filter, Logger* logger, 29724: bool assert_valid_internal_key, SequenceNumber latest_snapshot, 29724: const SnapshotChecker* snapshot_checker = nullptr, int level = 0, 29724: Statistics* stats = nullptr, 29724: const std::atomic* shutting_down = nullptr); 29724: # 55 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: struct NoBaseValueTag {}; 29724: static constexpr NoBaseValueTag kNoBaseValue{}; 29724: 29724: struct PlainBaseValueTag {}; 29724: static constexpr PlainBaseValueTag kPlainBaseValue{}; 29724: 29724: struct WideBaseValueTag {}; 29724: static constexpr WideBaseValueTag kWideBaseValue{}; 29724: 29724: template 29724: static Status TimedFullMerge(const MergeOperator* merge_operator, 29724: const Slice& key, NoBaseValueTag, 29724: const std::vector& operands, 29724: Logger* logger, Statistics* statistics, 29724: SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, 29724: ResultTs... results) { 29724: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 29724: 29724: return TimedFullMergeImpl( 29724: merge_operator, key, std::move(existing_value), operands, logger, 29724: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29724: } 29724: 29724: template 29724: static Status TimedFullMerge( 29724: const MergeOperator* merge_operator, const Slice& key, PlainBaseValueTag, 29724: const Slice& value, const std::vector& operands, Logger* logger, 29724: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 29724: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(value); 29724: 29724: return TimedFullMergeImpl( 29724: merge_operator, key, std::move(existing_value), operands, logger, 29724: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29724: } 29724: 29724: template 29724: static Status TimedFullMerge( 29724: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 29724: const Slice& entity, const std::vector& operands, Logger* logger, 29724: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 29724: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 29724: 29724: Slice entity_copy(entity); 29724: WideColumns existing_columns; 29724: 29724: const Status s = 29724: WideColumnSerialization::Deserialize(entity_copy, existing_columns); 29724: if (!s.ok()) { 29724: return s; 29724: } 29724: 29724: existing_value = std::move(existing_columns); 29724: 29724: return TimedFullMergeImpl( 29724: merge_operator, key, std::move(existing_value), operands, logger, 29724: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29724: } 29724: 29724: template 29724: static Status TimedFullMerge(const MergeOperator* merge_operator, 29724: const Slice& key, WideBaseValueTag, 29724: const WideColumns& columns, 29724: const std::vector& operands, 29724: Logger* logger, Statistics* statistics, 29724: SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, 29724: ResultTs... results) { 29724: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(columns); 29724: 29724: return TimedFullMergeImpl( 29724: merge_operator, key, std::move(existing_value), operands, logger, 29724: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29724: } 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: Status MergeUntil(InternalIterator* iter, 29724: CompactionRangeDelAggregator* range_del_agg, 29724: const SequenceNumber stop_before, const bool at_bottom, 29724: const bool allow_data_in_errors, 29724: const BlobFetcher* blob_fetcher, 29724: const std::string* const full_history_ts_low, 29724: PrefetchBufferCollection* prefetch_buffers, 29724: CompactionIterationStats* c_iter_stats); 29724: 29724: 29724: 29724: 29724: 29724: 29724: CompactionFilter::Decision FilterMerge(const Slice& user_key, 29724: const Slice& value_slice); 29724: # 210 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: const std::deque& keys() const { return keys_; } 29724: const std::vector& values() const { 29724: return merge_context_.GetOperands(); 29724: } 29724: uint64_t TotalFilterTime() const { return total_filter_time_; } 29724: bool HasOperator() const { return user_merge_operator_ != nullptr; } 29724: 29724: 29724: 29724: 29724: bool FilteredUntil(Slice* skip_until) const { 29724: if (!has_compaction_filter_skip_until_) { 29724: return false; 29724: } 29724: 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: (static_cast ( 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: compaction_filter_ != nullptr 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: "compaction_filter_ != nullptr" 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: ; 29724: 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: (static_cast ( 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: skip_until != nullptr 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: "skip_until != nullptr" 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: ; 29724: 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: (static_cast ( 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: compaction_filter_skip_until_.Valid() 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: "compaction_filter_skip_until_.Valid()" 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: ; 29724: *skip_until = compaction_filter_skip_until_.Encode(); 29724: return true; 29724: } 29724: 29724: private: 29724: Env* env_; 29724: SystemClock* clock_; 29724: const Comparator* user_comparator_; 29724: const MergeOperator* user_merge_operator_; 29724: const CompactionFilter* compaction_filter_; 29724: const std::atomic* shutting_down_; 29724: Logger* logger_; 29724: bool assert_valid_internal_key_; 29724: bool allow_single_operand_; 29724: SequenceNumber latest_snapshot_; 29724: const SnapshotChecker* const snapshot_checker_; 29724: int level_; 29724: 29724: 29724: 29724: 29724: 29724: std::deque keys_; 29724: 29724: mutable MergeContext merge_context_; 29724: 29724: StopWatchNano filter_timer_; 29724: uint64_t total_filter_time_; 29724: Statistics* stats_; 29724: 29724: bool has_compaction_filter_skip_until_ = false; 29724: std::string compaction_filter_value_; 29724: InternalKey compaction_filter_skip_until_; 29724: 29724: bool IsShuttingDown() { 29724: 29724: return shutting_down_ && shutting_down_->load(std::memory_order_relaxed); 29724: } 29724: 29724: template 29724: static Status TimedFullMergeCommonImpl( 29724: const MergeOperator* merge_operator, const Slice& key, 29724: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29724: const std::vector& operands, Logger* logger, 29724: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, Visitor&& visitor); 29724: 29724: 29724: 29724: static Status TimedFullMergeImpl( 29724: const MergeOperator* merge_operator, const Slice& key, 29724: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29724: const std::vector& operands, Logger* logger, 29724: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, std::string* result, 29724: Slice* result_operand, ValueType* result_type); 29724: 29724: 29724: 29724: 29724: 29724: static Status TimedFullMergeImpl( 29724: const MergeOperator* merge_operator, const Slice& key, 29724: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29724: const std::vector& operands, Logger* logger, 29724: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, 29724: std::string* result_value, PinnableWideColumns* result_entity); 29724: }; 29724: 29724: 29724: class MergeOutputIterator { 29724: public: 29724: 29724: explicit MergeOutputIterator(const MergeHelper* merge_helper); 29724: 29724: 29724: void SeekToFirst(); 29724: 29724: void Next(); 29724: 29724: Slice key() { return Slice(*it_keys_); } 29724: Slice value() { return Slice(*it_values_); } 29724: bool Valid() { return it_keys_ != merge_helper_->keys().rend(); } 29724: 29724: private: 29724: const MergeHelper* merge_helper_; 29724: std::deque::const_reverse_iterator it_keys_; 29724: std::vector::const_reverse_iterator it_values_; 29724: }; 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: namespace rocksdb { 29724: 29724: class Logger; 29724: # 42 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: class ConcurrentArena : public Allocator { 29724: public: 29724: 29724: 29724: 29724: 29724: explicit ConcurrentArena(size_t block_size = Arena::kMinBlockSize, 29724: AllocTracker* tracker = nullptr, 29724: size_t huge_page_size = 0); 29724: 29724: char* Allocate(size_t bytes) override { 29724: return AllocateImpl(bytes, false , 29724: [this, bytes]() { return arena_.Allocate(bytes); }); 29724: } 29724: 29724: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29724: Logger* logger = nullptr) override { 29724: size_t rounded_up = ((bytes - 1) | (sizeof(void*) - 1)) + 1; 29724: 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: (static_cast ( 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: "rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0" 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: 29724: # 61 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: ; 29724: 29724: return AllocateImpl(rounded_up, huge_page_size != 0 , 29724: [this, rounded_up, huge_page_size, logger]() { 29724: return arena_.AllocateAligned(rounded_up, 29724: huge_page_size, logger); 29724: }); 29724: } 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: std::unique_lock lock(arena_mutex_, std::defer_lock); 29724: lock.lock(); 29724: return arena_.ApproximateMemoryUsage() - ShardAllocatedAndUnused(); 29724: } 29724: 29724: size_t MemoryAllocatedBytes() const { 29724: return memory_allocated_bytes_.load(std::memory_order_relaxed); 29724: } 29724: 29724: size_t AllocatedAndUnused() const { 29724: return arena_allocated_and_unused_.load(std::memory_order_relaxed) + 29724: ShardAllocatedAndUnused(); 29724: } 29724: 29724: size_t IrregularBlockNum() const { 29724: return irregular_block_num_.load(std::memory_order_relaxed); 29724: } 29724: 29724: size_t BlockSize() const override { return arena_.BlockSize(); } 29724: 29724: private: 29724: struct Shard { 29724: char padding[40] ; 29724: mutable SpinMutex mutex; 29724: char* free_begin_; 29724: std::atomic allocated_and_unused_; 29724: 29724: Shard() : free_begin_(nullptr), allocated_and_unused_(0) {} 29724: }; 29724: 29724: static thread_local size_t tls_cpuid; 29724: 29724: char padding0[56] ; 29724: 29724: size_t shard_block_size_; 29724: 29724: CoreLocalArray shards_; 29724: 29724: Arena arena_; 29724: mutable SpinMutex arena_mutex_; 29724: std::atomic arena_allocated_and_unused_; 29724: std::atomic memory_allocated_bytes_; 29724: std::atomic irregular_block_num_; 29724: 29724: char padding1[56] ; 29724: 29724: Shard* Repick(); 29724: 29724: size_t ShardAllocatedAndUnused() const { 29724: size_t total = 0; 29724: for (size_t i = 0; i < shards_.Size(); ++i) { 29724: total += shards_.AccessAtCore(i)->allocated_and_unused_.load( 29724: std::memory_order_relaxed); 29724: } 29724: return total; 29724: } 29724: 29724: template 29724: char* AllocateImpl(size_t bytes, bool force_arena, const Func& func) { 29724: size_t cpu; 29724: 29724: 29724: 29724: 29724: 29724: std::unique_lock arena_lock(arena_mutex_, std::defer_lock); 29724: if (bytes > shard_block_size_ / 4 || force_arena || 29724: ((cpu = tls_cpuid) == 0 && 29724: !shards_.AccessAtCore(0)->allocated_and_unused_.load( 29724: std::memory_order_relaxed) && 29724: arena_lock.try_lock())) { 29724: if (!arena_lock.owns_lock()) { 29724: arena_lock.lock(); 29724: } 29724: auto rv = func(); 29724: Fixup(); 29724: return rv; 29724: } 29724: 29724: 29724: Shard* s = shards_.AccessAtCore(cpu & (shards_.Size() - 1)); 29724: if (!s->mutex.try_lock()) { 29724: s = Repick(); 29724: s->mutex.lock(); 29724: } 29724: std::unique_lock lock(s->mutex, std::adopt_lock); 29724: 29724: size_t avail = s->allocated_and_unused_.load(std::memory_order_relaxed); 29724: if (avail < bytes) { 29724: 29724: std::lock_guard reload_lock(arena_mutex_); 29724: 29724: 29724: 29724: auto exact = arena_allocated_and_unused_.load(std::memory_order_relaxed); 29724: 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: (static_cast ( 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: exact == arena_.AllocatedAndUnused() 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: "exact == arena_.AllocatedAndUnused()" 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: ; 29724: 29724: if (exact >= bytes && arena_.IsInInlineBlock()) { 29724: # 177 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: auto rv = func(); 29724: Fixup(); 29724: return rv; 29724: } 29724: 29724: avail = exact >= shard_block_size_ / 2 && exact < shard_block_size_ * 2 29724: ? exact 29724: : shard_block_size_; 29724: s->free_begin_ = arena_.AllocateAligned(avail); 29724: Fixup(); 29724: } 29724: s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); 29724: 29724: char* rv; 29724: if ((bytes % sizeof(void*)) == 0) { 29724: 29724: rv = s->free_begin_; 29724: s->free_begin_ += bytes; 29724: } else { 29724: 29724: rv = s->free_begin_ + avail - bytes; 29724: } 29724: return rv; 29724: } 29724: 29724: void Fixup() { 29724: arena_allocated_and_unused_.store(arena_.AllocatedAndUnused(), 29724: std::memory_order_relaxed); 29724: memory_allocated_bytes_.store(arena_.MemoryAllocatedBytes(), 29724: std::memory_order_relaxed); 29724: irregular_block_num_.store(arena_.IrregularBlockNum(), 29724: std::memory_order_relaxed); 29724: } 29724: 29724: ConcurrentArena(const ConcurrentArena&) = delete; 29724: ConcurrentArena& operator=(const ConcurrentArena&) = delete; 29724: }; 29724: 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/cast_util.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: template 29724: inline DestClass* static_cast_with_check(SrcClass* x) { 29724: DestClass* ret = static_cast(x); 29724: 29724: 29724: 29724: return ret; 29724: } 29724: 29724: template 29724: inline std::shared_ptr static_cast_with_check( 29724: std::shared_ptr&& x) { 29724: 29724: 29724: 29724: auto ret = std::static_pointer_cast(std::move(x)); 29724: 29724: 29724: 29724: return ret; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline To lossless_cast(From x) { 29724: using FromValue = typename std::remove_reference::type; 29724: static_assert( 29724: std::is_integral::value || std::is_enum::value, 29724: "Only works on integral types"); 29724: static_assert(std::is_integral::value || std::is_enum::value, 29724: "Only works on integral types"); 29724: static_assert(sizeof(To) >= sizeof(FromValue), "Must be lossless"); 29724: return static_cast(x); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline const std::initializer_list& List( 29724: const std::initializer_list& list) { 29724: return list; 29724: } 29724: 29724: 29724: 29724: template 29724: class UnownedPtr { 29724: public: 29724: UnownedPtr() = default; 29724: UnownedPtr(std::nullptr_t) {} 29724: UnownedPtr(T* ptr) : ptr_(ptr) {} 29724: UnownedPtr(const UnownedPtr&) = default; 29724: UnownedPtr(UnownedPtr&&) = default; 29724: UnownedPtr& operator=(const UnownedPtr&) = default; 29724: UnownedPtr& operator=(UnownedPtr&&) = default; 29724: 29724: T* get() const { return ptr_; } 29724: T* operator->() const { return ptr_; } 29724: T& operator*() const { return *ptr_; } 29724: operator bool() const { return ptr_ != nullptr; } 29724: 29724: private: 29724: T* ptr_ = nullptr; 29724: }; 29724: 29724: } 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class Allocator; 29724: class Logger; 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29724: class DynamicBloom { 29724: public: 29724: # 47 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29724: explicit DynamicBloom(Allocator* allocator, uint32_t total_bits, 29724: uint32_t num_probes = 6, size_t huge_page_tlb_size = 0, 29724: Logger* logger = nullptr); 29724: 29724: ~DynamicBloom() {} 29724: 29724: 29724: void Add(const Slice& key); 29724: 29724: 29724: void AddConcurrently(const Slice& key); 29724: 29724: 29724: void AddHash(uint32_t hash); 29724: 29724: 29724: void AddHashConcurrently(uint32_t hash); 29724: 29724: 29724: bool MayContain(const Slice& key) const; 29724: 29724: void MayContain(int num_keys, Slice* keys, bool* may_match) const; 29724: 29724: 29724: bool MayContainHash(uint32_t hash) const; 29724: 29724: void Prefetch(uint32_t h); 29724: 29724: private: 29724: 29724: 29724: uint32_t kLen; 29724: 29724: 29724: const uint32_t kNumDoubleProbes; 29724: 29724: std::atomic* data_; 29724: 29724: 29724: 29724: template 29724: void AddHash(uint32_t hash, const OrFunc& or_func); 29724: 29724: bool DoubleProbe(uint32_t h32, size_t a) const; 29724: }; 29724: 29724: inline void DynamicBloom::Add(const Slice& key) { AddHash(BloomHash(key)); } 29724: 29724: inline void DynamicBloom::AddConcurrently(const Slice& key) { 29724: AddHashConcurrently(BloomHash(key)); 29724: } 29724: 29724: inline void DynamicBloom::AddHash(uint32_t hash) { 29724: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 29724: ptr->store(ptr->load(std::memory_order_relaxed) | mask, 29724: std::memory_order_relaxed); 29724: }); 29724: } 29724: 29724: inline void DynamicBloom::AddHashConcurrently(uint32_t hash) { 29724: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 29724: 29724: 29724: 29724: 29724: 29724: if ((mask & ptr->load(std::memory_order_relaxed)) != mask) { 29724: ptr->fetch_or(mask, std::memory_order_relaxed); 29724: } 29724: }); 29724: } 29724: 29724: inline bool DynamicBloom::MayContain(const Slice& key) const { 29724: return (MayContainHash(BloomHash(key))); 29724: } 29724: 29724: inline void DynamicBloom::MayContain(int num_keys, Slice* keys, 29724: bool* may_match) const { 29724: std::array hashes; 29724: std::array byte_offsets; 29724: for (int i = 0; i < num_keys; ++i) { 29724: hashes[i] = BloomHash(keys[i]); 29724: size_t a = FastRange32(hashes[i], kLen); 29724: __builtin_prefetch(data_ + a, 0, 3); 29724: byte_offsets[i] = a; 29724: } 29724: 29724: for (int i = 0; i < num_keys; i++) { 29724: may_match[i] = DoubleProbe(hashes[i], byte_offsets[i]); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline void DynamicBloom::Prefetch(uint32_t h32) { 29724: size_t a = FastRange32(h32, kLen); 29724: __builtin_prefetch(data_ + a, 0, 3); 29724: } 29724: # 173 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29724: inline bool DynamicBloom::MayContainHash(uint32_t h32) const { 29724: size_t a = FastRange32(h32, kLen); 29724: __builtin_prefetch(data_ + a, 0, 3); 29724: return DoubleProbe(h32, a); 29724: } 29724: 29724: inline bool DynamicBloom::DoubleProbe(uint32_t h32, size_t byte_offset) const { 29724: 29724: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 29724: for (unsigned i = 0;; ++i) { 29724: 29724: uint64_t mask = 29724: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 29724: uint64_t val = data_[byte_offset ^ i].load(std::memory_order_relaxed); 29724: if (i + 1 >= kNumDoubleProbes) { 29724: return (val & mask) == mask; 29724: } else if ((val & mask) != mask) { 29724: return false; 29724: } 29724: h = (h >> 12) | (h << 52); 29724: } 29724: } 29724: 29724: template 29724: inline void DynamicBloom::AddHash(uint32_t h32, const OrFunc& or_func) { 29724: size_t a = FastRange32(h32, kLen); 29724: __builtin_prefetch(data_ + a, 0, 3); 29724: 29724: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 29724: for (unsigned i = 0;; ++i) { 29724: 29724: uint64_t mask = 29724: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 29724: or_func(&data_[a ^ i], mask); 29724: if (i + 1 >= kNumDoubleProbes) { 29724: return; 29724: } 29724: h = (h >> 12) | (h << 52); 29724: } 29724: } 29724: 29724: } 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 1 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 29724: 29724: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 29724: namespace rocksdb { 29724: 29724: template 29724: using UnorderedMap = std::unordered_map; 29724: 29724: template 29724: using UnorderedMapH = std::unordered_map; 29724: 29724: template 29724: using UnorderedSet = std::unordered_set; 29724: 29724: } 29724: # 37 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: struct FlushJobInfo; 29724: class Mutex; 29724: class MemTableIterator; 29724: class MergeContext; 29724: class SystemClock; 29724: 29724: struct ImmutableMemTableOptions { 29724: explicit ImmutableMemTableOptions(const ImmutableOptions& ioptions, 29724: const MutableCFOptions& mutable_cf_options); 29724: size_t arena_block_size; 29724: uint32_t memtable_prefix_bloom_bits; 29724: size_t memtable_huge_page_size; 29724: bool memtable_whole_key_filtering; 29724: bool inplace_update_support; 29724: size_t inplace_update_num_locks; 29724: UpdateStatus (*inplace_callback)(char* existing_value, 29724: uint32_t* existing_value_size, 29724: Slice delta_value, 29724: std::string* merged_value); 29724: size_t max_successive_merges; 29724: bool strict_max_successive_merges; 29724: Statistics* statistics; 29724: MergeOperator* merge_operator; 29724: Logger* info_log; 29724: uint32_t protection_bytes_per_key; 29724: bool allow_data_in_errors; 29724: bool paranoid_memory_checks; 29724: }; 29724: 29724: 29724: 29724: 29724: struct MemTablePostProcessInfo { 29724: uint64_t data_size = 0; 29724: uint64_t num_entries = 0; 29724: uint64_t num_deletes = 0; 29724: uint64_t num_range_deletes = 0; 29724: }; 29724: 29724: using MultiGetRange = MultiGetContext::Range; 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: class ReadOnlyMemTable { 29724: public: 29724: 29724: virtual ~ReadOnlyMemTable() = default; 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual size_t ApproximateMemoryUsage() = 0; 29724: 29724: 29724: virtual size_t MemoryAllocatedBytes() const = 0; 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: virtual void UniqueRandomSample(const uint64_t& target_sample_size, 29724: std::unordered_set* entries) = 0; 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: virtual InternalIterator* NewIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, bool for_flush) = 0; 29724: 29724: 29724: 29724: 29724: virtual InternalIterator* NewTimestampStrippingIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, size_t ts_sz) = 0; 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: bool immutable_memtable) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual FragmentedRangeTombstoneIterator* 29724: NewTimestampStrippingRangeTombstoneIterator(const ReadOptions& read_options, 29724: SequenceNumber read_seq, 29724: size_t ts_sz) = 0; 29724: # 221 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: virtual bool Get(const LookupKey& key, std::string* value, 29724: PinnableWideColumns* columns, std::string* timestamp, 29724: Status* s, MergeContext* merge_context, 29724: SequenceNumber* max_covering_tombstone_seq, 29724: SequenceNumber* seq, const ReadOptions& read_opts, 29724: bool immutable_memtable, ReadCallback* callback = nullptr, 29724: bool* is_blob_index = nullptr, bool do_merge = true) = 0; 29724: bool Get(const LookupKey& key, std::string* value, 29724: PinnableWideColumns* columns, std::string* timestamp, Status* s, 29724: MergeContext* merge_context, 29724: SequenceNumber* max_covering_tombstone_seq, 29724: const ReadOptions& read_opts, bool immutable_memtable, 29724: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29724: bool do_merge = true) { 29724: SequenceNumber seq; 29724: return Get(key, value, columns, timestamp, s, merge_context, 29724: max_covering_tombstone_seq, &seq, read_opts, immutable_memtable, 29724: callback, is_blob_index, do_merge); 29724: } 29724: 29724: 29724: 29724: 29724: virtual void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29724: ReadCallback* callback, bool immutable_memtable) = 0; 29724: 29724: 29724: 29724: 29724: virtual uint64_t NumEntries() const = 0; 29724: 29724: 29724: 29724: 29724: virtual uint64_t NumDeletion() const = 0; 29724: 29724: 29724: 29724: 29724: virtual uint64_t NumRangeDeletion() const = 0; 29724: 29724: virtual uint64_t GetDataSize() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual SequenceNumber GetFirstSequenceNumber() = 0; 29724: 29724: 29724: 29724: 29724: virtual bool IsEmpty() const = 0; 29724: # 282 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: virtual SequenceNumber GetEarliestSequenceNumber() = 0; 29724: 29724: virtual uint64_t GetMinLogContainingPrepSection() = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void MarkImmutable() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void MarkFlushed() = 0; 29724: 29724: struct MemTableStats { 29724: uint64_t size; 29724: uint64_t count; 29724: }; 29724: virtual MemTableStats ApproximateStats(const Slice& start_ikey, 29724: const Slice& end_ikey) = 0; 29724: 29724: virtual const InternalKeyComparator& GetInternalKeyComparator() const = 0; 29724: 29724: virtual uint64_t ApproximateOldestKeyTime() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool IsFragmentedRangeTombstonesConstructed() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual const Slice& GetNewestUDT() const = 0; 29724: 29724: 29724: 29724: 29724: void Ref() { ++refs_; } 29724: 29724: 29724: 29724: 29724: 29724: ReadOnlyMemTable* Unref() { 29724: --refs_; 29724: 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: (static_cast ( 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: refs_ >= 0 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: "refs_ >= 0" 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: ; 29724: if (refs_ <= 0) { 29724: return this; 29724: } 29724: return nullptr; 29724: } 29724: 29724: 29724: VersionEdit* GetEdits() { return &edit_; } 29724: 29724: 29724: 29724: 29724: 29724: uint64_t GetNextLogNumber() const { return mem_next_logfile_number_; } 29724: 29724: 29724: 29724: 29724: 29724: void SetNextLogNumber(uint64_t num) { mem_next_logfile_number_ = num; } 29724: 29724: 29724: void SetID(uint64_t id) { id_ = id; } 29724: 29724: uint64_t GetID() const { return id_; } 29724: 29724: void SetFlushCompleted(bool completed) { flush_completed_ = completed; } 29724: 29724: uint64_t GetFileNumber() const { return file_number_; } 29724: 29724: void SetFileNumber(uint64_t file_num) { file_number_ = file_num; } 29724: 29724: void SetFlushInProgress(bool in_progress) { 29724: flush_in_progress_ = in_progress; 29724: } 29724: 29724: void SetFlushJobInfo(std::unique_ptr&& info) { 29724: flush_job_info_ = std::move(info); 29724: } 29724: 29724: std::unique_ptr ReleaseFlushJobInfo() { 29724: return std::move(flush_job_info_); 29724: } 29724: 29724: static void HandleTypeValue( 29724: const Slice& lookup_user_key, const Slice& value, bool value_pinned, 29724: bool do_merge, bool merge_in_progress, MergeContext* merge_context, 29724: const MergeOperator* merge_operator, SystemClock* clock, 29724: Statistics* statistics, Logger* info_log, Status* s, 29724: std::string* out_value, PinnableWideColumns* out_columns, 29724: bool* is_blob_index) { 29724: *s = Status::OK(); 29724: 29724: if (!do_merge) { 29724: 29724: 29724: 29724: 29724: merge_context->PushOperand(value, value_pinned); 29724: } else if (merge_in_progress) { 29724: 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: (static_cast ( 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: do_merge 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: "do_merge" 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: ; 29724: 29724: 29724: 29724: if (out_value || out_columns) { 29724: *s = MergeHelper::TimedFullMerge( 29724: merge_operator, lookup_user_key, MergeHelper::kPlainBaseValue, 29724: value, merge_context->GetOperands(), info_log, statistics, clock, 29724: true, 29724: nullptr, out_value, out_columns); 29724: } 29724: } else if (out_value) { 29724: out_value->assign(value.data(), value.size()); 29724: } else if (out_columns) { 29724: out_columns->SetPlainValue(value); 29724: } 29724: 29724: if (is_blob_index) { 29724: *is_blob_index = false; 29724: } 29724: } 29724: 29724: static void HandleTypeDeletion( 29724: const Slice& lookup_user_key, bool merge_in_progress, 29724: MergeContext* merge_context, const MergeOperator* merge_operator, 29724: SystemClock* clock, Statistics* statistics, Logger* logger, Status* s, 29724: std::string* out_value, PinnableWideColumns* out_columns) { 29724: if (merge_in_progress) { 29724: if (out_value || out_columns) { 29724: 29724: 29724: 29724: *s = MergeHelper::TimedFullMerge( 29724: merge_operator, lookup_user_key, MergeHelper::kNoBaseValue, 29724: merge_context->GetOperands(), logger, statistics, clock, 29724: true, 29724: nullptr, out_value, out_columns); 29724: } else { 29724: 29724: 29724: 29724: *s = Status::OK(); 29724: } 29724: } else { 29724: *s = Status::NotFound(); 29724: } 29724: } 29724: 29724: protected: 29724: friend class MemTableList; 29724: 29724: int refs_{0}; 29724: 29724: 29724: bool flush_in_progress_{false}; 29724: bool flush_completed_{false}; 29724: uint64_t file_number_{0}; 29724: 29724: 29724: 29724: VersionEdit edit_; 29724: 29724: 29724: uint64_t mem_next_logfile_number_{0}; 29724: 29724: 29724: uint64_t id_ = 0; 29724: 29724: 29724: 29724: 29724: 29724: SequenceNumber atomic_flush_seqno_{kMaxSequenceNumber}; 29724: 29724: 29724: std::unique_ptr flush_job_info_; 29724: }; 29724: 29724: class MemTable final : public ReadOnlyMemTable { 29724: public: 29724: struct KeyComparator final : public MemTableRep::KeyComparator { 29724: const InternalKeyComparator comparator; 29724: explicit KeyComparator(const InternalKeyComparator& c) : comparator(c) {} 29724: int operator()(const char* prefix_len_key1, 29724: const char* prefix_len_key2) const override; 29724: int operator()(const char* prefix_len_key, 29724: const DecodedType& key) const override; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit MemTable(const InternalKeyComparator& comparator, 29724: const ImmutableOptions& ioptions, 29724: const MutableCFOptions& mutable_cf_options, 29724: WriteBufferManager* write_buffer_manager, 29724: SequenceNumber earliest_seq, uint32_t column_family_id); 29724: 29724: MemTable(const MemTable&) = delete; 29724: MemTable& operator=(const MemTable&) = delete; 29724: 29724: ~MemTable() override; 29724: 29724: const char* Name() const override { return "MemTable"; } 29724: 29724: size_t ApproximateMemoryUsage() override; 29724: 29724: 29724: 29724: size_t ApproximateMemoryUsageFast() const { 29724: return approximate_memory_usage_.load(std::memory_order_relaxed); 29724: } 29724: 29724: size_t MemoryAllocatedBytes() const override { 29724: return table_->ApproximateMemoryUsage() + 29724: range_del_table_->ApproximateMemoryUsage() + 29724: arena_.MemoryAllocatedBytes(); 29724: } 29724: 29724: void UniqueRandomSample(const uint64_t& target_sample_size, 29724: std::unordered_set* entries) override { 29724: 29724: 29724: table_->UniqueRandomSample(NumEntries(), target_sample_size, entries); 29724: } 29724: 29724: 29724: 29724: bool ShouldScheduleFlush() const { 29724: return flush_state_.load(std::memory_order_relaxed) == FLUSH_REQUESTED; 29724: } 29724: 29724: 29724: 29724: bool MarkFlushScheduled() { 29724: auto before = FLUSH_REQUESTED; 29724: return flush_state_.compare_exchange_strong(before, FLUSH_SCHEDULED, 29724: std::memory_order_relaxed, 29724: std::memory_order_relaxed); 29724: } 29724: 29724: InternalIterator* NewIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, bool for_flush) override; 29724: 29724: InternalIterator* NewTimestampStrippingIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, size_t ts_sz) override; 29724: 29724: FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: bool immutable_memtable) override; 29724: 29724: FragmentedRangeTombstoneIterator* NewTimestampStrippingRangeTombstoneIterator( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: size_t ts_sz) override; 29724: 29724: Status VerifyEncodedEntry(Slice encoded, 29724: const ProtectionInfoKVOS64& kv_prot_info); 29724: # 572 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: Status Add(SequenceNumber seq, ValueType type, const Slice& key, 29724: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info, 29724: bool allow_concurrent = false, 29724: MemTablePostProcessInfo* post_process_info = nullptr, 29724: void** hint = nullptr); 29724: 29724: using ReadOnlyMemTable::Get; 29724: bool Get(const LookupKey& key, std::string* value, 29724: PinnableWideColumns* columns, std::string* timestamp, Status* s, 29724: MergeContext* merge_context, 29724: SequenceNumber* max_covering_tombstone_seq, SequenceNumber* seq, 29724: const ReadOptions& read_opts, bool immutable_memtable, 29724: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29724: bool do_merge = true) override; 29724: 29724: void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29724: ReadCallback* callback, bool immutable_memtable) override; 29724: # 600 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: Status Update(SequenceNumber seq, ValueType value_type, const Slice& key, 29724: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info); 29724: # 617 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: Status UpdateCallback(SequenceNumber seq, const Slice& key, 29724: const Slice& delta, 29724: const ProtectionInfoKVOS64* kv_prot_info); 29724: 29724: 29724: 29724: 29724: 29724: size_t CountSuccessiveMergeEntries(const LookupKey& key, size_t limit); 29724: 29724: 29724: 29724: void BatchPostProcess(const MemTablePostProcessInfo& update_counters) { 29724: num_entries_.fetch_add(update_counters.num_entries, 29724: std::memory_order_relaxed); 29724: data_size_.fetch_add(update_counters.data_size, std::memory_order_relaxed); 29724: if (update_counters.num_deletes != 0) { 29724: num_deletes_.fetch_add(update_counters.num_deletes, 29724: std::memory_order_relaxed); 29724: } 29724: if (update_counters.num_range_deletes > 0) { 29724: num_range_deletes_.fetch_add(update_counters.num_range_deletes, 29724: std::memory_order_relaxed); 29724: } 29724: UpdateFlushState(); 29724: } 29724: 29724: uint64_t NumEntries() const override { 29724: return num_entries_.load(std::memory_order_relaxed); 29724: } 29724: 29724: uint64_t NumDeletion() const override { 29724: return num_deletes_.load(std::memory_order_relaxed); 29724: } 29724: 29724: uint64_t NumRangeDeletion() const override { 29724: return num_range_deletes_.load(std::memory_order_relaxed); 29724: } 29724: 29724: uint64_t GetDataSize() const override { 29724: return data_size_.load(std::memory_order_relaxed); 29724: } 29724: 29724: size_t write_buffer_size() const { 29724: return write_buffer_size_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: void UpdateWriteBufferSize(size_t new_write_buffer_size) { 29724: if (bloom_filter_ == nullptr || 29724: new_write_buffer_size < write_buffer_size_) { 29724: write_buffer_size_.store(new_write_buffer_size, 29724: std::memory_order_relaxed); 29724: } 29724: } 29724: 29724: bool IsEmpty() const override { return first_seqno_ == 0; } 29724: 29724: SequenceNumber GetFirstSequenceNumber() override { 29724: return first_seqno_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: void SetFirstSequenceNumber(SequenceNumber first_seqno) { 29724: return first_seqno_.store(first_seqno, std::memory_order_relaxed); 29724: } 29724: 29724: SequenceNumber GetEarliestSequenceNumber() override { 29724: 29724: return earliest_seqno_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void SetEarliestSequenceNumber(SequenceNumber earliest_seqno) { 29724: return earliest_seqno_.store(earliest_seqno, std::memory_order_relaxed); 29724: } 29724: 29724: 29724: 29724: SequenceNumber GetCreationSeq() const { return creation_seq_; } 29724: 29724: void SetCreationSeq(SequenceNumber sn) { creation_seq_ = sn; } 29724: 29724: 29724: 29724: 29724: void RefLogContainingPrepSection(uint64_t log); 29724: uint64_t GetMinLogContainingPrepSection() override; 29724: 29724: void MarkImmutable() override { 29724: table_->MarkReadOnly(); 29724: mem_tracker_.DoneAllocating(); 29724: } 29724: 29724: void MarkFlushed() override { table_->MarkFlushed(); } 29724: 29724: 29724: bool IsMergeOperatorSupported() const { 29724: return table_->IsMergeOperatorSupported(); 29724: } 29724: 29724: 29724: 29724: bool IsSnapshotSupported() const { 29724: return table_->IsSnapshotSupported() && !moptions_.inplace_update_support; 29724: } 29724: 29724: MemTableStats ApproximateStats(const Slice& start_ikey, 29724: const Slice& end_ikey) override; 29724: 29724: 29724: port::RWMutex* GetLock(const Slice& key); 29724: 29724: const InternalKeyComparator& GetInternalKeyComparator() const override { 29724: return comparator_.comparator; 29724: } 29724: 29724: const ImmutableMemTableOptions* GetImmutableMemTableOptions() const { 29724: return &moptions_; 29724: } 29724: 29724: uint64_t ApproximateOldestKeyTime() const override { 29724: return oldest_key_time_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: bool ShouldFlushNow(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: void ConstructFragmentedRangeTombstones(); 29724: 29724: bool IsFragmentedRangeTombstonesConstructed() const override { 29724: return fragmented_range_tombstone_list_.get() != nullptr || 29724: is_range_del_table_empty_; 29724: } 29724: 29724: const Slice& GetNewestUDT() const override; 29724: 29724: 29724: static Status VerifyEntryChecksum(const char* entry, 29724: uint32_t protection_bytes_per_key, 29724: bool allow_data_in_errors = false); 29724: 29724: private: 29724: enum FlushStateEnum { FLUSH_NOT_REQUESTED, FLUSH_REQUESTED, FLUSH_SCHEDULED }; 29724: 29724: friend class MemTableIterator; 29724: friend class MemTableBackwardIterator; 29724: friend class MemTableList; 29724: 29724: KeyComparator comparator_; 29724: const ImmutableMemTableOptions moptions_; 29724: const size_t kArenaBlockSize; 29724: AllocTracker mem_tracker_; 29724: ConcurrentArena arena_; 29724: std::unique_ptr table_; 29724: std::unique_ptr range_del_table_; 29724: std::atomic_bool is_range_del_table_empty_; 29724: 29724: 29724: std::atomic data_size_; 29724: std::atomic num_entries_; 29724: std::atomic num_deletes_; 29724: std::atomic num_range_deletes_; 29724: 29724: 29724: std::atomic write_buffer_size_; 29724: 29724: 29724: std::atomic first_seqno_; 29724: 29724: 29724: 29724: std::atomic earliest_seqno_; 29724: 29724: SequenceNumber creation_seq_; 29724: 29724: 29724: 29724: std::atomic min_prep_log_referenced_; 29724: 29724: 29724: std::vector locks_; 29724: 29724: const SliceTransform* const prefix_extractor_; 29724: std::unique_ptr bloom_filter_; 29724: 29724: std::atomic flush_state_; 29724: 29724: SystemClock* clock_; 29724: 29724: 29724: const SliceTransform* insert_with_hint_prefix_extractor_; 29724: 29724: 29724: UnorderedMapH insert_hints_; 29724: 29724: 29724: std::atomic oldest_key_time_; 29724: 29724: 29724: 29724: std::atomic approximate_memory_usage_; 29724: 29724: 29724: 29724: uint32_t memtable_max_range_deletions_ = 0; 29724: 29724: 29724: size_t ts_sz_; 29724: 29724: 29724: bool persist_user_defined_timestamps_; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Slice newest_udt_; 29724: 29724: 29724: void UpdateFlushState(); 29724: 29724: void UpdateOldestKeyTime(); 29724: 29724: void GetFromTable(const LookupKey& key, 29724: SequenceNumber max_covering_tombstone_seq, bool do_merge, 29724: ReadCallback* callback, bool* is_blob_index, 29724: std::string* value, PinnableWideColumns* columns, 29724: std::string* timestamp, Status* s, 29724: MergeContext* merge_context, SequenceNumber* seq, 29724: bool* found_final_value, bool* merge_in_progress); 29724: 29724: 29724: 29724: 29724: 29724: 29724: FragmentedRangeTombstoneIterator* NewRangeTombstoneIteratorInternal( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: bool immutable_memtable); 29724: 29724: 29724: 29724: 29724: std::unique_ptr 29724: fragmented_range_tombstone_list_; 29724: 29724: 29724: 29724: 29724: std::unique_ptr 29724: timestamp_stripping_fragmented_range_tombstone_list_; 29724: 29724: 29724: std::mutex range_del_mutex_; 29724: CoreLocalArray> 29724: cached_range_tombstone_; 29724: 29724: void UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 29724: const Slice& key, const Slice& value, ValueType type, 29724: SequenceNumber s, char* checksum_ptr); 29724: 29724: void MaybeUpdateNewestUDT(const Slice& user_key); 29724: }; 29724: 29724: const char* EncodeKey(std::string* scratch, const Slice& target); 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29724: # 26 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/logging.h" 1 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/logging/logging.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline const char* RocksLogShorterFileName(const char* file) { 29724: 29724: 29724: return file + (sizeof("./logging/logging.h") > 18 ? sizeof("./logging/logging.h") - 18 : 0); 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: template 29724: size_t ApproximateMemoryUsage( 29724: const std::unordered_map& umap) { 29724: using Map = std::unordered_map; 29724: return sizeof(umap) + 29724: 29724: (sizeof(typename Map::value_type) + sizeof(void*)) * umap.size() + 29724: 29724: umap.bucket_count() * sizeof(void*); 29724: } 29724: # 38 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 29724: } 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29724: # 41 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class IteratorWrapperBase { 29724: public: 29724: IteratorWrapperBase() : iter_(nullptr), valid_(false) {} 29724: explicit IteratorWrapperBase(InternalIteratorBase* _iter) 29724: : iter_(nullptr) { 29724: Set(_iter); 29724: } 29724: ~IteratorWrapperBase() {} 29724: InternalIteratorBase* iter() const { return iter_; } 29724: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 29724: if (iter_) { 29724: iter_->SetRangeDelReadSeqno(read_seqno); 29724: } 29724: } 29724: 29724: 29724: 29724: InternalIteratorBase* Set(InternalIteratorBase* _iter) { 29724: InternalIteratorBase* old_iter = iter_; 29724: 29724: iter_ = _iter; 29724: if (iter_ == nullptr) { 29724: valid_ = false; 29724: } else { 29724: Update(); 29724: } 29724: return old_iter; 29724: } 29724: 29724: void DeleteIter(bool is_arena_mode) { 29724: if (iter_) { 29724: # 66 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: if (!is_arena_mode) { 29724: delete iter_; 29724: } else { 29724: iter_->~InternalIteratorBase(); 29724: } 29724: } 29724: } 29724: 29724: 29724: bool Valid() const { 29724: 29724: 29724: 29724: return valid_; 29724: } 29724: Slice key() const { 29724: 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return result_.key; 29724: } 29724: 29724: uint64_t write_unix_time() const { 29724: 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->write_unix_time(); 29724: } 29724: 29724: TValue value() const { 29724: 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->value(); 29724: } 29724: 29724: Status status() const { 29724: 29724: 29724: 29724: 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->status(); 29724: } 29724: bool PrepareValue() { 29724: 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: if (result_.value_prepared) { 29724: return true; 29724: } 29724: if (iter_->PrepareValue()) { 29724: result_.value_prepared = true; 29724: result_.key = iter_->key(); 29724: return true; 29724: } 29724: 29724: 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: !iter_->Valid() 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "!iter_->Valid()" 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: valid_ = false; 29724: return false; 29724: } 29724: void Next() { 29724: 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: valid_ = iter_->NextAndGetResult(&result_); 29724: 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: !valid_ || iter_->status().ok() 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "!valid_ || iter_->status().ok()" 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: } 29724: bool NextAndGetResult(IterateResult* result) { 29724: 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: valid_ = iter_->NextAndGetResult(&result_); 29724: *result = result_; 29724: 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: !valid_ || iter_->status().ok() 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "!valid_ || iter_->status().ok()" 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return valid_; 29724: } 29724: void Prev() { 29724: 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->Prev(); 29724: Update(); 29724: } 29724: void Seek(const Slice& k) { 29724: 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->Seek(k); 29724: Update(); 29724: } 29724: void SeekForPrev(const Slice& k) { 29724: 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->SeekForPrev(k); 29724: Update(); 29724: } 29724: void SeekToFirst() { 29724: 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->SeekToFirst(); 29724: Update(); 29724: } 29724: void SeekToLast() { 29724: 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->SeekToLast(); 29724: Update(); 29724: } 29724: 29724: bool MayBeOutOfLowerBound() { 29724: 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->MayBeOutOfLowerBound(); 29724: } 29724: 29724: IterBoundCheck UpperBoundCheckResult() { 29724: 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return result_.bound_check_result; 29724: } 29724: 29724: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) { 29724: 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->SetPinnedItersMgr(pinned_iters_mgr); 29724: } 29724: bool IsKeyPinned() const { 29724: 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->IsKeyPinned(); 29724: } 29724: bool IsValuePinned() const { 29724: 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->IsValuePinned(); 29724: } 29724: 29724: bool IsValuePrepared() const { return result_.value_prepared; } 29724: 29724: Slice user_key() const { 29724: 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->user_key(); 29724: } 29724: 29724: void UpdateReadaheadState(InternalIteratorBase* old_iter) { 29724: if (old_iter && iter_) { 29724: ReadaheadFileInfo readahead_file_info; 29724: old_iter->GetReadaheadState(&readahead_file_info); 29724: iter_->SetReadaheadState(&readahead_file_info); 29724: } 29724: } 29724: 29724: bool IsDeleteRangeSentinelKey() const { 29724: return iter_->IsDeleteRangeSentinelKey(); 29724: } 29724: 29724: private: 29724: void Update() { 29724: valid_ = iter_->Valid(); 29724: if (valid_) { 29724: 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_->status().ok() 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_->status().ok()" 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: result_.key = iter_->key(); 29724: result_.bound_check_result = IterBoundCheck::kUnknown; 29724: result_.value_prepared = false; 29724: } 29724: } 29724: 29724: InternalIteratorBase* iter_; 29724: IterateResult result_; 29724: bool valid_; 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: using IteratorWrapper = IteratorWrapperBase; 29724: 29724: class Arena; 29724: 29724: template 29724: InternalIteratorBase* NewEmptyInternalIterator(Arena* arena); 29724: 29724: } 29724: # 42 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Arena; 29724: class ArenaWrappedDBIter; 29724: class InternalKeyComparator; 29724: 29724: template 29724: class InternalIteratorBase; 29724: using InternalIterator = InternalIteratorBase; 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29724: InternalIterator* NewMergingIterator(const InternalKeyComparator* comparator, 29724: InternalIterator** children, int n, 29724: Arena* arena = nullptr, 29724: bool prefix_seek_mode = false); 29724: 29724: 29724: 29724: 29724: class MergingIterator; 29724: 29724: 29724: 29724: 29724: 29724: class MergeIteratorBuilder { 29724: public: 29724: 29724: 29724: explicit MergeIteratorBuilder(const InternalKeyComparator* comparator, 29724: Arena* arena, bool prefix_seek_mode = false, 29724: const Slice* iterate_upper_bound = nullptr); 29724: ~MergeIteratorBuilder(); 29724: 29724: 29724: void AddIterator(InternalIterator* iter); 29724: # 72 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29724: void AddPointAndTombstoneIterator( 29724: InternalIterator* point_iter, 29724: std::unique_ptr&& tombstone_iter, 29724: std::unique_ptr** tombstone_iter_ptr = 29724: nullptr); 29724: 29724: 29724: 29724: Arena* GetArena() { return arena; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: InternalIterator* Finish(ArenaWrappedDBIter* db_iter = nullptr); 29724: 29724: private: 29724: MergingIterator* merge_iter; 29724: InternalIterator* first_iter; 29724: bool use_merging_iter; 29724: Arena* arena; 29724: 29724: 29724: std::vector**>> 29724: range_del_iter_ptrs_; 29724: }; 29724: 29724: } 29724: # 43 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: ImmutableMemTableOptions::ImmutableMemTableOptions( 29724: const ImmutableOptions& ioptions, 29724: const MutableCFOptions& mutable_cf_options) 29724: : arena_block_size(mutable_cf_options.arena_block_size), 29724: memtable_prefix_bloom_bits( 29724: static_cast( 29724: static_cast(mutable_cf_options.write_buffer_size) * 29724: mutable_cf_options.memtable_prefix_bloom_size_ratio) * 29724: 8u), 29724: memtable_huge_page_size(mutable_cf_options.memtable_huge_page_size), 29724: memtable_whole_key_filtering( 29724: mutable_cf_options.memtable_whole_key_filtering), 29724: inplace_update_support(ioptions.inplace_update_support), 29724: inplace_update_num_locks(mutable_cf_options.inplace_update_num_locks), 29724: inplace_callback(ioptions.inplace_callback), 29724: max_successive_merges(mutable_cf_options.max_successive_merges), 29724: strict_max_successive_merges( 29724: mutable_cf_options.strict_max_successive_merges), 29724: statistics(ioptions.stats), 29724: merge_operator(ioptions.merge_operator.get()), 29724: info_log(ioptions.logger), 29724: protection_bytes_per_key( 29724: mutable_cf_options.memtable_protection_bytes_per_key), 29724: allow_data_in_errors(ioptions.allow_data_in_errors), 29724: paranoid_memory_checks(mutable_cf_options.paranoid_memory_checks) {} 29724: 29724: MemTable::MemTable(const InternalKeyComparator& cmp, 29724: const ImmutableOptions& ioptions, 29724: const MutableCFOptions& mutable_cf_options, 29724: WriteBufferManager* write_buffer_manager, 29724: SequenceNumber latest_seq, uint32_t column_family_id) 29724: : comparator_(cmp), 29724: moptions_(ioptions, mutable_cf_options), 29724: kArenaBlockSize(Arena::OptimizeBlockSize(moptions_.arena_block_size)), 29724: mem_tracker_(write_buffer_manager), 29724: arena_(moptions_.arena_block_size, 29724: (write_buffer_manager != nullptr && 29724: (write_buffer_manager->enabled() || 29724: write_buffer_manager->cost_to_cache())) 29724: ? &mem_tracker_ 29724: : nullptr, 29724: mutable_cf_options.memtable_huge_page_size), 29724: table_(ioptions.memtable_factory->CreateMemTableRep( 29724: comparator_, &arena_, mutable_cf_options.prefix_extractor.get(), 29724: ioptions.logger, column_family_id)), 29724: range_del_table_(SkipListFactory().CreateMemTableRep( 29724: comparator_, &arena_, nullptr , ioptions.logger, 29724: column_family_id)), 29724: is_range_del_table_empty_(true), 29724: data_size_(0), 29724: num_entries_(0), 29724: num_deletes_(0), 29724: num_range_deletes_(0), 29724: write_buffer_size_(mutable_cf_options.write_buffer_size), 29724: first_seqno_(0), 29724: earliest_seqno_(latest_seq), 29724: creation_seq_(latest_seq), 29724: min_prep_log_referenced_(0), 29724: locks_(moptions_.inplace_update_support 29724: ? moptions_.inplace_update_num_locks 29724: : 0), 29724: prefix_extractor_(mutable_cf_options.prefix_extractor.get()), 29724: flush_state_(FLUSH_NOT_REQUESTED), 29724: clock_(ioptions.clock), 29724: insert_with_hint_prefix_extractor_( 29724: ioptions.memtable_insert_with_hint_prefix_extractor.get()), 29724: oldest_key_time_(std::numeric_limits::max()), 29724: approximate_memory_usage_(0), 29724: memtable_max_range_deletions_( 29724: mutable_cf_options.memtable_max_range_deletions) { 29724: UpdateFlushState(); 29724: 29724: 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: !ShouldScheduleFlush() 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "!ShouldScheduleFlush()" 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: 29724: if ((prefix_extractor_ || moptions_.memtable_whole_key_filtering) && 29724: moptions_.memtable_prefix_bloom_bits > 0) { 29724: bloom_filter_.reset( 29724: new DynamicBloom(&arena_, moptions_.memtable_prefix_bloom_bits, 29724: 6 , 29724: moptions_.memtable_huge_page_size, ioptions.logger)); 29724: } 29724: 29724: 29724: 29724: auto new_cache = std::make_shared(); 29724: size_t size = cached_range_tombstone_.Size(); 29724: for (size_t i = 0; i < size; ++i) { 29724: std::shared_ptr* local_cache_ref_ptr = 29724: cached_range_tombstone_.AccessAtCore(i); 29724: auto new_local_cache_ref = std::make_shared< 29724: const std::shared_ptr>(new_cache); 29724: std::atomic_store_explicit( 29724: local_cache_ref_ptr, 29724: std::shared_ptr(new_local_cache_ref, 29724: new_cache.get()), 29724: std::memory_order_relaxed); 29724: } 29724: const Comparator* ucmp = cmp.user_comparator(); 29724: 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ucmp 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "ucmp" 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: ts_sz_ = ucmp->timestamp_size(); 29724: persist_user_defined_timestamps_ = ioptions.persist_user_defined_timestamps; 29724: } 29724: 29724: MemTable::~MemTable() { 29724: mem_tracker_.FreeMem(); 29724: 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: refs_ == 0 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "refs_ == 0" 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: 29724: size_t MemTable::ApproximateMemoryUsage() { 29724: autovector usages = { 29724: arena_.ApproximateMemoryUsage(), table_->ApproximateMemoryUsage(), 29724: range_del_table_->ApproximateMemoryUsage(), 29724: rocksdb::ApproximateMemoryUsage(insert_hints_)}; 29724: size_t total_usage = 0; 29724: for (size_t usage : usages) { 29724: 29724: 29724: if (usage >= std::numeric_limits::max() - total_usage) { 29724: return std::numeric_limits::max(); 29724: } 29724: total_usage += usage; 29724: } 29724: approximate_memory_usage_.store(total_usage, std::memory_order_relaxed); 29724: 29724: return total_usage; 29724: } 29724: 29724: bool MemTable::ShouldFlushNow() { 29724: 29724: 29724: if (memtable_max_range_deletions_ > 0 && 29724: num_range_deletes_.load(std::memory_order_relaxed) >= 29724: static_cast(memtable_max_range_deletions_)) { 29724: return true; 29724: } 29724: 29724: size_t write_buffer_size = write_buffer_size_.load(std::memory_order_relaxed); 29724: 29724: 29724: 29724: 29724: 29724: 29724: const double kAllowOverAllocationRatio = 0.6; 29724: 29724: 29724: 29724: auto allocated_memory = table_->ApproximateMemoryUsage() + 29724: range_del_table_->ApproximateMemoryUsage() + 29724: arena_.MemoryAllocatedBytes(); 29724: 29724: approximate_memory_usage_.store(allocated_memory, std::memory_order_relaxed); 29724: 29724: 29724: 29724: if (allocated_memory + kArenaBlockSize < 29724: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 29724: return false; 29724: } 29724: 29724: 29724: 29724: if (allocated_memory > 29724: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 29724: return true; 29724: } 29724: # 242 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: return arena_.AllocatedAndUnused() < kArenaBlockSize / 4; 29724: } 29724: 29724: void MemTable::UpdateFlushState() { 29724: auto state = flush_state_.load(std::memory_order_relaxed); 29724: if (state == FLUSH_NOT_REQUESTED && ShouldFlushNow()) { 29724: 29724: 29724: flush_state_.compare_exchange_strong(state, FLUSH_REQUESTED, 29724: std::memory_order_relaxed, 29724: std::memory_order_relaxed); 29724: } 29724: } 29724: 29724: void MemTable::UpdateOldestKeyTime() { 29724: uint64_t oldest_key_time = oldest_key_time_.load(std::memory_order_relaxed); 29724: if (oldest_key_time == std::numeric_limits::max()) { 29724: int64_t current_time = 0; 29724: auto s = clock_->GetCurrentTime(¤t_time); 29724: if (s.ok()) { 29724: 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: current_time >= 0 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "current_time >= 0" 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: oldest_key_time_.compare_exchange_strong( 29724: oldest_key_time, static_cast(current_time), 29724: std::memory_order_relaxed, std::memory_order_relaxed); 29724: } 29724: } 29724: } 29724: 29724: Status MemTable::VerifyEntryChecksum(const char* entry, 29724: uint32_t protection_bytes_per_key, 29724: bool allow_data_in_errors) { 29724: if (protection_bytes_per_key == 0) { 29724: return Status::OK(); 29724: } 29724: uint32_t key_length; 29724: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29724: if (key_ptr == nullptr) { 29724: return Status::Corruption("Unable to parse internal key length"); 29724: } 29724: if (key_length < 8) { 29724: return Status::Corruption("Memtable entry internal key length too short."); 29724: } 29724: Slice user_key = Slice(key_ptr, key_length - 8); 29724: 29724: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29724: ValueType type; 29724: SequenceNumber seq; 29724: UnPackSequenceAndType(tag, &seq, &type); 29724: 29724: uint32_t value_length = 0; 29724: const char* value_ptr = GetVarint32Ptr( 29724: key_ptr + key_length, key_ptr + key_length + 5, &value_length); 29724: if (value_ptr == nullptr) { 29724: return Status::Corruption("Unable to parse internal key value"); 29724: } 29724: Slice value = Slice(value_ptr, value_length); 29724: 29724: const char* checksum_ptr = value_ptr + value_length; 29724: bool match = 29724: ProtectionInfo64() 29724: .ProtectKVO(user_key, value, type) 29724: .ProtectS(seq) 29724: .Verify(static_cast(protection_bytes_per_key), checksum_ptr); 29724: if (!match) { 29724: std::string msg( 29724: "Corrupted memtable entry, per key-value checksum verification " 29724: "failed."); 29724: if (allow_data_in_errors) { 29724: msg.append("Unrecognized value type: " + 29724: std::to_string(static_cast(type)) + ". "); 29724: msg.append("User key: " + user_key.ToString( true) + ". "); 29724: msg.append("seq: " + std::to_string(seq) + "."); 29724: } 29724: return Status::Corruption(msg.c_str()); 29724: } 29724: return Status::OK(); 29724: } 29724: 29724: int MemTable::KeyComparator::operator()(const char* prefix_len_key1, 29724: const char* prefix_len_key2) const { 29724: 29724: Slice k1 = GetLengthPrefixedSlice(prefix_len_key1); 29724: Slice k2 = GetLengthPrefixedSlice(prefix_len_key2); 29724: return comparator.CompareKeySeq(k1, k2); 29724: } 29724: 29724: int MemTable::KeyComparator::operator()( 29724: const char* prefix_len_key, const KeyComparator::DecodedType& key) const { 29724: 29724: Slice a = GetLengthPrefixedSlice(prefix_len_key); 29724: return comparator.CompareKeySeq(a, key); 29724: } 29724: 29724: void MemTableRep::InsertConcurrently(KeyHandle ) { 29724: throw std::runtime_error("concurrent insert not supported"); 29724: } 29724: 29724: Slice MemTableRep::UserKey(const char* key) const { 29724: Slice slice = GetLengthPrefixedSlice(key); 29724: return Slice(slice.data(), slice.size() - 8); 29724: } 29724: 29724: KeyHandle MemTableRep::Allocate(const size_t len, char** buf) { 29724: *buf = allocator_->Allocate(len); 29724: return static_cast(*buf); 29724: } 29724: 29724: 29724: 29724: 29724: const char* EncodeKey(std::string* scratch, const Slice& target) { 29724: scratch->clear(); 29724: PutVarint32(scratch, static_cast(target.size())); 29724: scratch->append(target.data(), target.size()); 29724: return scratch->data(); 29724: } 29724: 29724: class MemTableIterator : public InternalIterator { 29724: public: 29724: enum Kind { kPointEntries, kRangeDelEntries }; 29724: MemTableIterator( 29724: Kind kind, const MemTable& mem, const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping = nullptr, 29724: Arena* arena = nullptr, 29724: const SliceTransform* cf_prefix_extractor = nullptr) 29724: : bloom_(nullptr), 29724: prefix_extractor_(mem.prefix_extractor_), 29724: comparator_(mem.comparator_), 29724: seqno_to_time_mapping_(seqno_to_time_mapping), 29724: status_(Status::OK()), 29724: logger_(mem.moptions_.info_log), 29724: ts_sz_(mem.ts_sz_), 29724: protection_bytes_per_key_(mem.moptions_.protection_bytes_per_key), 29724: valid_(false), 29724: value_pinned_( 29724: !mem.GetImmutableMemTableOptions()->inplace_update_support), 29724: arena_mode_(arena != nullptr), 29724: paranoid_memory_checks_(mem.moptions_.paranoid_memory_checks), 29724: allow_data_in_error(mem.moptions_.allow_data_in_errors) { 29724: if (kind == kRangeDelEntries) { 29724: iter_ = mem.range_del_table_->GetIterator(arena); 29724: } else if (prefix_extractor_ != nullptr && 29724: 29724: 29724: prefix_extractor_ == cf_prefix_extractor && 29724: (read_options.prefix_same_as_start || 29724: (!read_options.total_order_seek && 29724: !read_options.auto_prefix_mode))) { 29724: 29724: 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: kind == kPointEntries 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "kind == kPointEntries" 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: bloom_ = mem.bloom_filter_.get(); 29724: iter_ = mem.table_->GetDynamicPrefixIterator(arena); 29724: } else { 29724: 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: kind == kPointEntries 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "kind == kPointEntries" 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: iter_ = mem.table_->GetIterator(arena); 29724: } 29724: status_.PermitUncheckedError(); 29724: } 29724: 29724: MemTableIterator(const MemTableIterator&) = delete; 29724: void operator=(const MemTableIterator&) = delete; 29724: 29724: ~MemTableIterator() override { 29724: 29724: 29724: 29724: 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: !pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled() 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "!pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled()" 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: if (arena_mode_) { 29724: iter_->~Iterator(); 29724: } else { 29724: delete iter_; 29724: } 29724: status_.PermitUncheckedError(); 29724: } 29724: 29724: 29724: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 29724: pinned_iters_mgr_ = pinned_iters_mgr; 29724: } 29724: PinnedIteratorsManager* pinned_iters_mgr_ = nullptr; 29724: 29724: 29724: bool Valid() const override { 29724: 29724: 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: iter_->Valid() || !(valid_ && status_.ok()) 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "iter_->Valid() || !(valid_ && status_.ok())" 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: return valid_ && status_.ok(); 29724: } 29724: 29724: void Seek(const Slice& k) override { 29724: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: status_ = Status::OK(); 29724: if (bloom_) { 29724: 29724: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 29724: if (prefix_extractor_->InDomain(user_k_without_ts)) { 29724: Slice prefix = prefix_extractor_->Transform(user_k_without_ts); 29724: if (!bloom_->MayContain(prefix)) { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29724: valid_ = false; 29724: return; 29724: } else { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29724: } 29724: } 29724: } 29724: if (paranoid_memory_checks_) { 29724: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 29724: } else { 29724: iter_->Seek(k, nullptr); 29724: } 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: } 29724: void SeekForPrev(const Slice& k) override { 29724: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: status_ = Status::OK(); 29724: if (bloom_) { 29724: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 29724: if (prefix_extractor_->InDomain(user_k_without_ts)) { 29724: if (!bloom_->MayContain( 29724: prefix_extractor_->Transform(user_k_without_ts))) { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29724: valid_ = false; 29724: return; 29724: } else { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29724: } 29724: } 29724: } 29724: if (paranoid_memory_checks_) { 29724: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 29724: } else { 29724: iter_->Seek(k, nullptr); 29724: } 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: if (!Valid() && status().ok()) { 29724: SeekToLast(); 29724: } 29724: while (Valid() && comparator_.comparator.Compare(k, key()) < 0) { 29724: Prev(); 29724: } 29724: } 29724: void SeekToFirst() override { 29724: status_ = Status::OK(); 29724: iter_->SeekToFirst(); 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: } 29724: void SeekToLast() override { 29724: status_ = Status::OK(); 29724: iter_->SeekToLast(); 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: } 29724: void Next() override { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.next_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (paranoid_memory_checks_) { 29724: status_ = iter_->NextAndValidate(allow_data_in_error); 29724: } else { 29724: iter_->Next(); 29724: rocksdb::SyncPoint::GetInstance()->Process("MemTableIterator::Next:0", iter_); 29724: } 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: } 29724: bool NextAndGetResult(IterateResult* result) override { 29724: Next(); 29724: bool is_valid = Valid(); 29724: if (is_valid) { 29724: result->key = key(); 29724: result->bound_check_result = IterBoundCheck::kUnknown; 29724: result->value_prepared = true; 29724: } 29724: return is_valid; 29724: } 29724: void Prev() override { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.prev_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (paranoid_memory_checks_) { 29724: status_ = iter_->PrevAndValidate(allow_data_in_error); 29724: } else { 29724: iter_->Prev(); 29724: } 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: } 29724: Slice key() const override { 29724: 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: return GetLengthPrefixedSlice(iter_->key()); 29724: } 29724: 29724: uint64_t write_unix_time() const override { 29724: 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: ParsedInternalKey pikey; 29724: Status s = ParseInternalKey(key(), &pikey, false); 29724: if (!s.ok()) { 29724: return std::numeric_limits::max(); 29724: } else if (kTypeValuePreferredSeqno == pikey.type) { 29724: return ParsePackedValueForWriteTime(value()); 29724: } else if (!seqno_to_time_mapping_ || seqno_to_time_mapping_->Empty()) { 29724: return std::numeric_limits::max(); 29724: } 29724: return seqno_to_time_mapping_->GetProximalTimeBeforeSeqno(pikey.sequence); 29724: } 29724: 29724: Slice value() const override { 29724: 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: Slice key_slice = GetLengthPrefixedSlice(iter_->key()); 29724: return GetLengthPrefixedSlice(key_slice.data() + key_slice.size()); 29724: } 29724: 29724: Status status() const override { return status_; } 29724: 29724: bool IsKeyPinned() const override { 29724: 29724: return true; 29724: } 29724: 29724: bool IsValuePinned() const override { 29724: 29724: return value_pinned_; 29724: } 29724: 29724: private: 29724: DynamicBloom* bloom_; 29724: const SliceTransform* const prefix_extractor_; 29724: const MemTable::KeyComparator comparator_; 29724: MemTableRep::Iterator* iter_; 29724: 29724: UnownedPtr seqno_to_time_mapping_; 29724: Status status_; 29724: Logger* logger_; 29724: size_t ts_sz_; 29724: uint32_t protection_bytes_per_key_; 29724: bool valid_; 29724: bool value_pinned_; 29724: bool arena_mode_; 29724: const bool paranoid_memory_checks_; 29724: const bool allow_data_in_error; 29724: 29724: void VerifyEntryChecksum() { 29724: if (protection_bytes_per_key_ > 0 && Valid()) { 29724: status_ = MemTable::VerifyEntryChecksum(iter_->key(), 29724: protection_bytes_per_key_); 29724: if (!status_.ok()) { 29724: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((logger_)), ("[%s:" "593" "] " "In MemtableIterator: %s"), RocksLogShorterFileName("./db/memtable.cc"), status_.getState()); 29724: } 29724: } 29724: } 29724: }; 29724: 29724: InternalIterator* MemTable::NewIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, bool ) { 29724: 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: arena != nullptr 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "arena != nullptr" 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: auto mem = arena->AllocateAligned(sizeof(MemTableIterator)); 29724: return new (mem) 29724: MemTableIterator(MemTableIterator::kPointEntries, *this, read_options, 29724: seqno_to_time_mapping, arena, prefix_extractor); 29724: } 29724: 29724: 29724: 29724: class TimestampStrippingIterator : public InternalIterator { 29724: public: 29724: TimestampStrippingIterator( 29724: MemTableIterator::Kind kind, const MemTable& memtable, 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* cf_prefix_extractor, size_t ts_sz) 29724: : arena_mode_(arena != nullptr), kind_(kind), ts_sz_(ts_sz) { 29724: 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ts_sz_ != 0 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "ts_sz_ != 0" 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: void* mem = arena ? arena->AllocateAligned(sizeof(MemTableIterator)) : 29724: operator new(sizeof(MemTableIterator)); 29724: iter_ = new (mem) 29724: MemTableIterator(kind, memtable, read_options, seqno_to_time_mapping, 29724: arena, cf_prefix_extractor); 29724: } 29724: 29724: 29724: TimestampStrippingIterator(const TimestampStrippingIterator&) = delete; 29724: void operator=(const TimestampStrippingIterator&) = delete; 29724: 29724: ~TimestampStrippingIterator() override { 29724: if (arena_mode_) { 29724: iter_->~MemTableIterator(); 29724: } else { 29724: delete iter_; 29724: } 29724: } 29724: 29724: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 29724: iter_->SetPinnedItersMgr(pinned_iters_mgr); 29724: } 29724: 29724: bool Valid() const override { return iter_->Valid(); } 29724: void Seek(const Slice& k) override { 29724: iter_->Seek(k); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: void SeekForPrev(const Slice& k) override { 29724: iter_->SeekForPrev(k); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: void SeekToFirst() override { 29724: iter_->SeekToFirst(); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: void SeekToLast() override { 29724: iter_->SeekToLast(); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: void Next() override { 29724: iter_->Next(); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: bool NextAndGetResult(IterateResult* result) override { 29724: iter_->Next(); 29724: UpdateKeyAndValueBuffer(); 29724: bool is_valid = Valid(); 29724: if (is_valid) { 29724: result->key = key(); 29724: result->bound_check_result = IterBoundCheck::kUnknown; 29724: result->value_prepared = true; 29724: } 29724: return is_valid; 29724: } 29724: void Prev() override { 29724: iter_->Prev(); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: Slice key() const override { 29724: 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: return key_buf_; 29724: } 29724: 29724: uint64_t write_unix_time() const override { return iter_->write_unix_time(); } 29724: Slice value() const override { 29724: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29724: return value_buf_; 29724: } 29724: return iter_->value(); 29724: } 29724: Status status() const override { return iter_->status(); } 29724: bool IsKeyPinned() const override { 29724: 29724: return false; 29724: } 29724: bool IsValuePinned() const override { 29724: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29724: return false; 29724: } 29724: return iter_->IsValuePinned(); 29724: } 29724: 29724: private: 29724: void UpdateKeyAndValueBuffer() { 29724: key_buf_.clear(); 29724: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29724: value_buf_.clear(); 29724: } 29724: if (!Valid()) { 29724: return; 29724: } 29724: Slice original_key = iter_->key(); 29724: ReplaceInternalKeyWithMinTimestamp(&key_buf_, original_key, ts_sz_); 29724: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29724: Slice original_value = iter_->value(); 29724: AppendUserKeyWithMinTimestamp(&value_buf_, original_value, ts_sz_); 29724: } 29724: } 29724: bool arena_mode_; 29724: MemTableIterator::Kind kind_; 29724: size_t ts_sz_; 29724: MemTableIterator* iter_; 29724: std::string key_buf_; 29724: std::string value_buf_; 29724: }; 29724: 29724: InternalIterator* MemTable::NewTimestampStrippingIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, size_t ts_sz) { 29724: 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: arena != nullptr 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "arena != nullptr" 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: auto mem = arena->AllocateAligned(sizeof(TimestampStrippingIterator)); 29724: return new (mem) TimestampStrippingIterator( 29724: MemTableIterator::kPointEntries, *this, read_options, 29724: seqno_to_time_mapping, arena, prefix_extractor, ts_sz); 29724: } 29724: 29724: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIterator( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: bool immutable_memtable) { 29724: if (read_options.ignore_range_deletions || 29724: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29724: return nullptr; 29724: } 29724: return NewRangeTombstoneIteratorInternal(read_options, read_seq, 29724: immutable_memtable); 29724: } 29724: 29724: FragmentedRangeTombstoneIterator* 29724: MemTable::NewTimestampStrippingRangeTombstoneIterator( 29724: const ReadOptions& read_options, SequenceNumber read_seq, size_t ts_sz) { 29724: if (read_options.ignore_range_deletions || 29724: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29724: return nullptr; 29724: } 29724: if (!timestamp_stripping_fragmented_range_tombstone_list_) { 29724: 29724: auto* unfragmented_iter = new TimestampStrippingIterator( 29724: MemTableIterator::kRangeDelEntries, *this, ReadOptions(), 29724: nullptr, nullptr, 29724: nullptr, ts_sz); 29724: 29724: timestamp_stripping_fragmented_range_tombstone_list_ = 29724: std::make_unique( 29724: std::unique_ptr(unfragmented_iter), 29724: comparator_.comparator); 29724: } 29724: return new FragmentedRangeTombstoneIterator( 29724: timestamp_stripping_fragmented_range_tombstone_list_.get(), 29724: comparator_.comparator, read_seq, read_options.timestamp); 29724: } 29724: 29724: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIteratorInternal( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: bool immutable_memtable) { 29724: if (immutable_memtable) { 29724: 29724: 29724: 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: IsFragmentedRangeTombstonesConstructed() 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "IsFragmentedRangeTombstonesConstructed()" 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: return new FragmentedRangeTombstoneIterator( 29724: fragmented_range_tombstone_list_.get(), comparator_.comparator, 29724: read_seq, read_options.timestamp); 29724: } 29724: 29724: 29724: std::shared_ptr cache = 29724: std::atomic_load_explicit(cached_range_tombstone_.Access(), 29724: std::memory_order_relaxed); 29724: 29724: if (!cache->initialized.load(std::memory_order_acquire)) { 29724: cache->reader_mutex.lock(); 29724: if (!cache->tombstones) { 29724: auto* unfragmented_iter = new MemTableIterator( 29724: MemTableIterator::kRangeDelEntries, *this, read_options); 29724: cache->tombstones.reset(new FragmentedRangeTombstoneList( 29724: std::unique_ptr(unfragmented_iter), 29724: comparator_.comparator)); 29724: cache->initialized.store(true, std::memory_order_release); 29724: } 29724: cache->reader_mutex.unlock(); 29724: } 29724: 29724: auto* fragmented_iter = new FragmentedRangeTombstoneIterator( 29724: cache, comparator_.comparator, read_seq, read_options.timestamp); 29724: return fragmented_iter; 29724: } 29724: 29724: void MemTable::ConstructFragmentedRangeTombstones() { 29724: 29724: 29724: 29724: if (!is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29724: 29724: auto* unfragmented_iter = new MemTableIterator( 29724: MemTableIterator::kRangeDelEntries, *this, ReadOptions()); 29724: 29724: fragmented_range_tombstone_list_ = 29724: std::make_unique( 29724: std::unique_ptr(unfragmented_iter), 29724: comparator_.comparator); 29724: } 29724: } 29724: 29724: port::RWMutex* MemTable::GetLock(const Slice& key) { 29724: return &locks_[GetSliceRangedNPHash(key, locks_.size())]; 29724: } 29724: 29724: ReadOnlyMemTable::MemTableStats MemTable::ApproximateStats( 29724: const Slice& start_ikey, const Slice& end_ikey) { 29724: uint64_t entry_count = table_->ApproximateNumEntries(start_ikey, end_ikey); 29724: entry_count += range_del_table_->ApproximateNumEntries(start_ikey, end_ikey); 29724: if (entry_count == 0) { 29724: return {0, 0}; 29724: } 29724: uint64_t n = num_entries_.load(std::memory_order_relaxed); 29724: if (n == 0) { 29724: return {0, 0}; 29724: } 29724: if (entry_count > n) { 29724: 29724: 29724: 29724: entry_count = n; 29724: } 29724: uint64_t data_size = data_size_.load(std::memory_order_relaxed); 29724: return {entry_count * (data_size / n), entry_count}; 29724: } 29724: 29724: Status MemTable::VerifyEncodedEntry(Slice encoded, 29724: const ProtectionInfoKVOS64& kv_prot_info) { 29724: uint32_t ikey_len = 0; 29724: if (!GetVarint32(&encoded, &ikey_len)) { 29724: return Status::Corruption("Unable to parse internal key length"); 29724: } 29724: if (ikey_len < 8 + ts_sz_) { 29724: return Status::Corruption("Internal key length too short"); 29724: } 29724: if (ikey_len > encoded.size()) { 29724: return Status::Corruption("Internal key length too long"); 29724: } 29724: uint32_t value_len = 0; 29724: const size_t user_key_len = ikey_len - 8; 29724: Slice key(encoded.data(), user_key_len); 29724: encoded.remove_prefix(user_key_len); 29724: 29724: uint64_t packed = DecodeFixed64(encoded.data()); 29724: ValueType value_type = kMaxValue; 29724: SequenceNumber sequence_number = kMaxSequenceNumber; 29724: UnPackSequenceAndType(packed, &sequence_number, &value_type); 29724: encoded.remove_prefix(8); 29724: 29724: if (!GetVarint32(&encoded, &value_len)) { 29724: return Status::Corruption("Unable to parse value length"); 29724: } 29724: if (value_len < encoded.size()) { 29724: return Status::Corruption("Value length too short"); 29724: } 29724: if (value_len > encoded.size()) { 29724: return Status::Corruption("Value length too long"); 29724: } 29724: Slice value(encoded.data(), value_len); 29724: 29724: return kv_prot_info.StripS(sequence_number) 29724: .StripKVO(key, value, value_type) 29724: .GetStatus(); 29724: } 29724: 29724: void MemTable::UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 29724: const Slice& key, const Slice& value, 29724: ValueType type, SequenceNumber s, 29724: char* checksum_ptr) { 29724: if (moptions_.protection_bytes_per_key == 0) { 29724: return; 29724: } 29724: 29724: if (kv_prot_info == nullptr) { 29724: ProtectionInfo64() 29724: .ProtectKVO(key, value, type) 29724: .ProtectS(s) 29724: .Encode(static_cast(moptions_.protection_bytes_per_key), 29724: checksum_ptr); 29724: } else { 29724: kv_prot_info->Encode( 29724: static_cast(moptions_.protection_bytes_per_key), checksum_ptr); 29724: } 29724: } 29724: 29724: Status MemTable::Add(SequenceNumber s, ValueType type, 29724: const Slice& key, 29724: const Slice& value, 29724: const ProtectionInfoKVOS64* kv_prot_info, 29724: bool allow_concurrent, 29724: MemTablePostProcessInfo* post_process_info, void** hint) { 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t key_size = static_cast(key.size()); 29724: uint32_t val_size = static_cast(value.size()); 29724: uint32_t internal_key_size = key_size + 8; 29724: const uint32_t encoded_len = VarintLength(internal_key_size) + 29724: internal_key_size + VarintLength(val_size) + 29724: val_size + moptions_.protection_bytes_per_key; 29724: char* buf = nullptr; 29724: std::unique_ptr& table = 29724: type == kTypeRangeDeletion ? range_del_table_ : table_; 29724: KeyHandle handle = table->Allocate(encoded_len, &buf); 29724: 29724: char* p = EncodeVarint32(buf, internal_key_size); 29724: memcpy(p, key.data(), key_size); 29724: Slice key_slice(p, key_size); 29724: p += key_size; 29724: uint64_t packed = PackSequenceAndType(s, type); 29724: EncodeFixed64(p, packed); 29724: p += 8; 29724: p = EncodeVarint32(p, val_size); 29724: memcpy(p, value.data(), val_size); 29724: 29724: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: (unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len 29724: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "(unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len" 29724: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: 29724: # 942 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: UpdateEntryChecksum(kv_prot_info, key, value, type, s, 29724: buf + encoded_len - moptions_.protection_bytes_per_key); 29724: Slice encoded(buf, encoded_len - moptions_.protection_bytes_per_key); 29724: if (kv_prot_info != nullptr) { 29724: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:Encoded", &encoded); 29724: Status status = VerifyEncodedEntry(encoded, *kv_prot_info); 29724: if (!status.ok()) { 29724: return status; 29724: } 29724: } 29724: 29724: Slice key_without_ts = StripTimestampFromUserKey(key, ts_sz_); 29724: 29724: if (!allow_concurrent) { 29724: 29724: 29724: if (table == table_ && insert_with_hint_prefix_extractor_ != nullptr && 29724: insert_with_hint_prefix_extractor_->InDomain(key_slice)) { 29724: Slice prefix = insert_with_hint_prefix_extractor_->Transform(key_slice); 29724: bool res = table->InsertKeyWithHint(handle, &insert_hints_[prefix]); 29724: if ((__builtin_expect((!res), 0))) { 29724: return Status::TryAgain("key+seq exists"); 29724: } 29724: } else { 29724: bool res = table->InsertKey(handle); 29724: if ((__builtin_expect((!res), 0))) { 29724: return Status::TryAgain("key+seq exists"); 29724: } 29724: } 29724: 29724: 29724: 29724: num_entries_.store(num_entries_.load(std::memory_order_relaxed) + 1, 29724: std::memory_order_relaxed); 29724: data_size_.store(data_size_.load(std::memory_order_relaxed) + encoded_len, 29724: std::memory_order_relaxed); 29724: if (type == kTypeDeletion || type == kTypeSingleDeletion || 29724: type == kTypeDeletionWithTimestamp) { 29724: num_deletes_.store(num_deletes_.load(std::memory_order_relaxed) + 1, 29724: std::memory_order_relaxed); 29724: } else if (type == kTypeRangeDeletion) { 29724: uint64_t val = num_range_deletes_.load(std::memory_order_relaxed) + 1; 29724: num_range_deletes_.store(val, std::memory_order_relaxed); 29724: } 29724: 29724: if (bloom_filter_ && prefix_extractor_ && 29724: prefix_extractor_->InDomain(key_without_ts)) { 29724: bloom_filter_->Add(prefix_extractor_->Transform(key_without_ts)); 29724: } 29724: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 29724: bloom_filter_->Add(key_without_ts); 29724: } 29724: 29724: 29724: 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: first_seqno_ == 0 || s >= first_seqno_ 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "first_seqno_ == 0 || s >= first_seqno_" 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (first_seqno_ == 0) { 29724: first_seqno_.store(s, std::memory_order_relaxed); 29724: 29724: if (earliest_seqno_ == kMaxSequenceNumber) { 29724: earliest_seqno_.store(GetFirstSequenceNumber(), 29724: std::memory_order_relaxed); 29724: } 29724: 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: first_seqno_.load() >= earliest_seqno_.load() 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "first_seqno_.load() >= earliest_seqno_.load()" 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: post_process_info == nullptr 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "post_process_info == nullptr" 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: 29724: MaybeUpdateNewestUDT(key_slice); 29724: UpdateFlushState(); 29724: } else { 29724: bool res = (hint == nullptr) 29724: ? table->InsertKeyConcurrently(handle) 29724: : table->InsertKeyWithHintConcurrently(handle, hint); 29724: if ((__builtin_expect((!res), 0))) { 29724: return Status::TryAgain("key+seq exists"); 29724: } 29724: 29724: 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: post_process_info != nullptr 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "post_process_info != nullptr" 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: post_process_info->num_entries++; 29724: post_process_info->data_size += encoded_len; 29724: if (type == kTypeDeletion) { 29724: post_process_info->num_deletes++; 29724: } 29724: 29724: if (bloom_filter_ && prefix_extractor_ && 29724: prefix_extractor_->InDomain(key_without_ts)) { 29724: bloom_filter_->AddConcurrently( 29724: prefix_extractor_->Transform(key_without_ts)); 29724: } 29724: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 29724: bloom_filter_->AddConcurrently(key_without_ts); 29724: } 29724: 29724: 29724: uint64_t cur_seq_num = first_seqno_.load(std::memory_order_relaxed); 29724: while ((cur_seq_num == 0 || s < cur_seq_num) && 29724: !first_seqno_.compare_exchange_weak(cur_seq_num, s)) { 29724: } 29724: uint64_t cur_earliest_seqno = 29724: earliest_seqno_.load(std::memory_order_relaxed); 29724: while ( 29724: (cur_earliest_seqno == kMaxSequenceNumber || s < cur_earliest_seqno) && 29724: !earliest_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) { 29724: } 29724: } 29724: if (type == kTypeRangeDeletion) { 29724: auto new_cache = std::make_shared(); 29724: size_t size = cached_range_tombstone_.Size(); 29724: if (allow_concurrent) { 29724: post_process_info->num_range_deletes++; 29724: range_del_mutex_.lock(); 29724: } 29724: for (size_t i = 0; i < size; ++i) { 29724: std::shared_ptr* local_cache_ref_ptr = 29724: cached_range_tombstone_.AccessAtCore(i); 29724: auto new_local_cache_ref = std::make_shared< 29724: const std::shared_ptr>(new_cache); 29724: 29724: 29724: 29724: 29724: 29724: std::atomic_store_explicit( 29724: local_cache_ref_ptr, 29724: std::shared_ptr( 29724: new_local_cache_ref, new_cache.get()), 29724: std::memory_order_relaxed); 29724: } 29724: 29724: if (allow_concurrent) { 29724: range_del_mutex_.unlock(); 29724: } 29724: is_range_del_table_empty_.store(false, std::memory_order_relaxed); 29724: } 29724: UpdateOldestKeyTime(); 29724: 29724: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:BeforeReturn:Encoded", &encoded); 29724: return Status::OK(); 29724: } 29724: 29724: 29724: namespace { 29724: 29724: struct Saver { 29724: Status* status; 29724: const LookupKey* key; 29724: bool* found_final_value; 29724: bool* merge_in_progress; 29724: std::string* value; 29724: PinnableWideColumns* columns; 29724: SequenceNumber seq; 29724: std::string* timestamp; 29724: const MergeOperator* merge_operator; 29724: 29724: MergeContext* merge_context; 29724: SequenceNumber max_covering_tombstone_seq; 29724: MemTable* mem; 29724: Logger* logger; 29724: Statistics* statistics; 29724: bool inplace_update_support; 29724: bool do_merge; 29724: SystemClock* clock; 29724: 29724: ReadCallback* callback_; 29724: bool* is_blob_index; 29724: bool allow_data_in_errors; 29724: uint32_t protection_bytes_per_key; 29724: bool CheckCallback(SequenceNumber _seq) { 29724: if (callback_) { 29724: return callback_->IsVisible(_seq); 29724: } 29724: return true; 29724: } 29724: }; 29724: } 29724: 29724: static bool SaveValue(void* arg, const char* entry) { 29724: Saver* s = static_cast(arg); 29724: 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s != nullptr 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s != nullptr" 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: !s->value || !s->columns 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "!s->value || !s->columns" 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: !*(s->found_final_value) 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "!*(s->found_final_value)" 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s->status->ok() || s->status->IsMergeInProgress() 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s->status->ok() || s->status->IsMergeInProgress()" 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: MergeContext* merge_context = s->merge_context; 29724: SequenceNumber max_covering_tombstone_seq = s->max_covering_tombstone_seq; 29724: const MergeOperator* merge_operator = s->merge_operator; 29724: 29724: 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: merge_context != nullptr 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "merge_context != nullptr" 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: 29724: 29724: uint32_t key_length = 0; 29724: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29724: 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: key_length >= 8 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "key_length >= 8" 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: Slice user_key_slice = Slice(key_ptr, key_length - 8); 29724: const Comparator* user_comparator = 29724: s->mem->GetInternalKeyComparator().user_comparator(); 29724: size_t ts_sz = user_comparator->timestamp_size(); 29724: if (ts_sz && s->timestamp && max_covering_tombstone_seq > 0) { 29724: 29724: 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s->timestamp->size() == ts_sz 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s->timestamp->size() == ts_sz" 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: if (user_comparator->EqualWithoutTimestamp(user_key_slice, 29724: s->key->user_key())) { 29724: 29724: rocksdb::SyncPoint::GetInstance()->Process("Memtable::SaveValue:Found:entry", &entry); 29724: std::optional read_lock; 29724: if (s->inplace_update_support) { 29724: read_lock.emplace(s->mem->GetLock(s->key->user_key())); 29724: } 29724: 29724: if (s->protection_bytes_per_key > 0) { 29724: *(s->status) = MemTable::VerifyEntryChecksum( 29724: entry, s->protection_bytes_per_key, s->allow_data_in_errors); 29724: if (!s->status->ok()) { 29724: *(s->found_final_value) = true; 29724: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1160" "] " "In SaveValue: %s"), RocksLogShorterFileName("./db/memtable.cc"), s->status->getState()); 29724: 29724: return false; 29724: } 29724: } 29724: 29724: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29724: ValueType type; 29724: SequenceNumber seq; 29724: UnPackSequenceAndType(tag, &seq, &type); 29724: 29724: if (!s->CheckCallback(seq)) { 29724: return true; 29724: } 29724: 29724: if (s->seq == kMaxSequenceNumber) { 29724: s->seq = seq; 29724: if (s->seq > max_covering_tombstone_seq) { 29724: if (ts_sz && s->timestamp != nullptr) { 29724: 29724: 29724: 29724: 29724: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 29724: s->timestamp->assign(ts.data(), ts_sz); 29724: } 29724: } else { 29724: s->seq = max_covering_tombstone_seq; 29724: } 29724: } 29724: 29724: if (ts_sz > 0 && s->timestamp != nullptr) { 29724: if (!s->timestamp->empty()) { 29724: 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ts_sz == s->timestamp->size() 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "ts_sz == s->timestamp->size()" 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: 29724: const std::string kMaxTs(ts_sz, '\xff'); 29724: if (s->timestamp->empty() || 29724: user_comparator->CompareTimestamp(*(s->timestamp), kMaxTs) == 0) { 29724: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 29724: s->timestamp->assign(ts.data(), ts_sz); 29724: } 29724: } 29724: 29724: if ((type == kTypeValue || type == kTypeMerge || type == kTypeBlobIndex || 29724: type == kTypeWideColumnEntity || type == kTypeDeletion || 29724: type == kTypeSingleDeletion || type == kTypeDeletionWithTimestamp || 29724: type == kTypeValuePreferredSeqno) && 29724: max_covering_tombstone_seq > seq) { 29724: type = kTypeRangeDeletion; 29724: } 29724: switch (type) { 29724: case kTypeBlobIndex: { 29724: if (!s->do_merge) { 29724: *(s->status) = Status::NotSupported( 29724: "GetMergeOperands not supported by stacked BlobDB"); 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: 29724: if (*(s->merge_in_progress)) { 29724: *(s->status) = Status::NotSupported( 29724: "Merge operator not supported by stacked BlobDB"); 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: 29724: if (s->is_blob_index == nullptr) { 29724: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1228" "] " "Encountered unexpected blob index."), RocksLogShorterFileName("./db/memtable.cc")); 29724: *(s->status) = Status::NotSupported( 29724: "Encountered unexpected blob index. Please open DB with " 29724: "ROCKSDB_NAMESPACE::blob_db::BlobDB."); 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: 29724: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29724: 29724: *(s->status) = Status::OK(); 29724: 29724: if (s->value) { 29724: s->value->assign(v.data(), v.size()); 29724: } else if (s->columns) { 29724: s->columns->SetPlainValue(v); 29724: } 29724: 29724: *(s->found_final_value) = true; 29724: *(s->is_blob_index) = true; 29724: 29724: return false; 29724: } 29724: case kTypeValue: 29724: case kTypeValuePreferredSeqno: { 29724: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29724: if (type == kTypeValuePreferredSeqno) { 29724: v = ParsePackedValueForValue(v); 29724: } 29724: 29724: ReadOnlyMemTable::HandleTypeValue( 29724: s->key->user_key(), v, s->inplace_update_support == false, 29724: s->do_merge, *(s->merge_in_progress), merge_context, 29724: s->merge_operator, s->clock, s->statistics, s->logger, s->status, 29724: s->value, s->columns, s->is_blob_index); 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: case kTypeWideColumnEntity: { 29724: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29724: 29724: *(s->status) = Status::OK(); 29724: 29724: if (!s->do_merge) { 29724: 29724: 29724: 29724: Slice value_of_default; 29724: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 29724: v, value_of_default); 29724: 29724: if (s->status->ok()) { 29724: merge_context->PushOperand( 29724: value_of_default, 29724: s->inplace_update_support == false ); 29724: } 29724: } else if (*(s->merge_in_progress)) { 29724: 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s->do_merge 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s->do_merge" 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: if (s->value || s->columns) { 29724: 29724: 29724: 29724: *(s->status) = MergeHelper::TimedFullMerge( 29724: merge_operator, s->key->user_key(), MergeHelper::kWideBaseValue, 29724: v, merge_context->GetOperands(), s->logger, s->statistics, 29724: s->clock, true, 29724: nullptr, s->value, s->columns); 29724: } 29724: } else if (s->value) { 29724: Slice value_of_default; 29724: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 29724: v, value_of_default); 29724: if (s->status->ok()) { 29724: s->value->assign(value_of_default.data(), value_of_default.size()); 29724: } 29724: } else if (s->columns) { 29724: *(s->status) = s->columns->SetWideColumnValue(v); 29724: } 29724: 29724: *(s->found_final_value) = true; 29724: 29724: if (s->is_blob_index != nullptr) { 29724: *(s->is_blob_index) = false; 29724: } 29724: 29724: return false; 29724: } 29724: case kTypeDeletion: 29724: case kTypeDeletionWithTimestamp: 29724: case kTypeSingleDeletion: 29724: case kTypeRangeDeletion: { 29724: ReadOnlyMemTable::HandleTypeDeletion( 29724: s->key->user_key(), *(s->merge_in_progress), s->merge_context, 29724: s->merge_operator, s->clock, s->statistics, s->logger, s->status, 29724: s->value, s->columns); 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: case kTypeMerge: { 29724: if (!merge_operator) { 29724: *(s->status) = Status::InvalidArgument( 29724: "merge_operator is not properly initialized."); 29724: 29724: 29724: 29724: 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29724: *(s->merge_in_progress) = true; 29724: merge_context->PushOperand( 29724: v, s->inplace_update_support == false ); 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.internal_merge_point_lookup_count += 1; } static_assert(true, "semicolon required"); 29724: 29724: if (s->do_merge && merge_operator->ShouldMerge( 29724: merge_context->GetOperandsDirectionBackward())) { 29724: if (s->value || s->columns) { 29724: 29724: 29724: 29724: *(s->status) = MergeHelper::TimedFullMerge( 29724: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 29724: merge_context->GetOperands(), s->logger, s->statistics, 29724: s->clock, true, 29724: nullptr, s->value, s->columns); 29724: } 29724: 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: if (merge_context->get_merge_operands_options != nullptr && 29724: merge_context->get_merge_operands_options->continue_cb != nullptr && 29724: !merge_context->get_merge_operands_options->continue_cb(v)) { 29724: 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: 29724: return true; 29724: } 29724: default: { 29724: std::string msg("Corrupted value not expected."); 29724: if (s->allow_data_in_errors) { 29724: msg.append("Unrecognized value type: " + 29724: std::to_string(static_cast(type)) + ". "); 29724: msg.append("User key: " + user_key_slice.ToString( true) + 29724: ". "); 29724: msg.append("seq: " + std::to_string(seq) + "."); 29724: } 29724: *(s->found_final_value) = true; 29724: *(s->status) = Status::Corruption(msg.c_str()); 29724: return false; 29724: } 29724: } 29724: } 29724: 29724: 29724: return false; 29724: } 29724: 29724: bool MemTable::Get(const LookupKey& key, std::string* value, 29724: PinnableWideColumns* columns, std::string* timestamp, 29724: Status* s, MergeContext* merge_context, 29724: SequenceNumber* max_covering_tombstone_seq, 29724: SequenceNumber* seq, const ReadOptions& read_opts, 29724: bool immutable_memtable, ReadCallback* callback, 29724: bool* is_blob_index, bool do_merge) { 29724: 29724: if (IsEmpty()) { 29724: 29724: return false; 29724: } 29724: 29724: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 29724: 29724: std::unique_ptr range_del_iter( 29724: NewRangeTombstoneIterator(read_opts, 29724: GetInternalKeySeqno(key.internal_key()), 29724: immutable_memtable)); 29724: if (range_del_iter != nullptr) { 29724: SequenceNumber covering_seq = 29724: range_del_iter->MaxCoveringTombstoneSeqnum(key.user_key()); 29724: if (covering_seq > *max_covering_tombstone_seq) { 29724: *max_covering_tombstone_seq = covering_seq; 29724: if (timestamp) { 29724: 29724: 29724: timestamp->assign(range_del_iter->timestamp().data(), 29724: range_del_iter->timestamp().size()); 29724: } 29724: } 29724: } 29724: 29724: bool found_final_value = false; 29724: bool merge_in_progress = s->IsMergeInProgress(); 29724: bool may_contain = true; 29724: Slice user_key_without_ts = StripTimestampFromUserKey(key.user_key(), ts_sz_); 29724: bool bloom_checked = false; 29724: if (bloom_filter_) { 29724: 29724: 29724: if (moptions_.memtable_whole_key_filtering) { 29724: may_contain = bloom_filter_->MayContain(user_key_without_ts); 29724: bloom_checked = true; 29724: } else { 29724: 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: prefix_extractor_ 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "prefix_extractor_" 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (prefix_extractor_->InDomain(user_key_without_ts)) { 29724: may_contain = bloom_filter_->MayContain( 29724: prefix_extractor_->Transform(user_key_without_ts)); 29724: bloom_checked = true; 29724: } 29724: } 29724: } 29724: 29724: if (bloom_filter_ && !may_contain) { 29724: 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29724: *seq = kMaxSequenceNumber; 29724: } else { 29724: if (bloom_checked) { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29724: } 29724: GetFromTable(key, *max_covering_tombstone_seq, do_merge, callback, 29724: is_blob_index, value, columns, timestamp, s, merge_context, 29724: seq, &found_final_value, &merge_in_progress); 29724: } 29724: 29724: 29724: 29724: if (!found_final_value && merge_in_progress) { 29724: if (s->ok()) { 29724: *s = Status::MergeInProgress(); 29724: } else { 29724: 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s->IsMergeInProgress() 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s->IsMergeInProgress()" 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: } 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: return found_final_value; 29724: } 29724: 29724: void MemTable::GetFromTable(const LookupKey& key, 29724: SequenceNumber max_covering_tombstone_seq, 29724: bool do_merge, ReadCallback* callback, 29724: bool* is_blob_index, std::string* value, 29724: PinnableWideColumns* columns, 29724: std::string* timestamp, Status* s, 29724: MergeContext* merge_context, SequenceNumber* seq, 29724: bool* found_final_value, bool* merge_in_progress) { 29724: Saver saver; 29724: saver.status = s; 29724: saver.found_final_value = found_final_value; 29724: saver.merge_in_progress = merge_in_progress; 29724: saver.key = &key; 29724: saver.value = value; 29724: saver.columns = columns; 29724: saver.timestamp = timestamp; 29724: saver.seq = kMaxSequenceNumber; 29724: saver.mem = this; 29724: saver.merge_context = merge_context; 29724: saver.max_covering_tombstone_seq = max_covering_tombstone_seq; 29724: saver.merge_operator = moptions_.merge_operator; 29724: saver.logger = moptions_.info_log; 29724: saver.inplace_update_support = moptions_.inplace_update_support; 29724: saver.statistics = moptions_.statistics; 29724: saver.clock = clock_; 29724: saver.callback_ = callback; 29724: saver.is_blob_index = is_blob_index; 29724: saver.do_merge = do_merge; 29724: saver.allow_data_in_errors = moptions_.allow_data_in_errors; 29724: saver.protection_bytes_per_key = moptions_.protection_bytes_per_key; 29724: 29724: if (!moptions_.paranoid_memory_checks) { 29724: table_->Get(key, &saver, SaveValue); 29724: } else { 29724: Status check_s = table_->GetAndValidate(key, &saver, SaveValue, 29724: moptions_.allow_data_in_errors); 29724: if (check_s.IsCorruption()) { 29724: *(saver.status) = check_s; 29724: 29724: *(saver.found_final_value) = true; 29724: } 29724: } 29724: 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s->ok() || s->IsMergeInProgress() || *found_final_value 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s->ok() || s->IsMergeInProgress() || *found_final_value" 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: *seq = saver.seq; 29724: } 29724: 29724: void MemTable::MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29724: ReadCallback* callback, bool immutable_memtable) { 29724: 29724: if (IsEmpty()) { 29724: 29724: return; 29724: } 29724: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 29724: 29724: 29724: 29724: 29724: bool no_range_del = read_options.ignore_range_deletions || 29724: is_range_del_table_empty_.load(std::memory_order_relaxed); 29724: MultiGetRange temp_range(*range, range->begin(), range->end()); 29724: if (bloom_filter_ && no_range_del) { 29724: bool whole_key = 29724: !prefix_extractor_ || moptions_.memtable_whole_key_filtering; 29724: std::array bloom_keys; 29724: std::array may_match; 29724: std::array range_indexes; 29724: int num_keys = 0; 29724: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 29724: if (whole_key) { 29724: bloom_keys[num_keys] = iter->ukey_without_ts; 29724: range_indexes[num_keys++] = iter.index(); 29724: } else if (prefix_extractor_->InDomain(iter->ukey_without_ts)) { 29724: bloom_keys[num_keys] = 29724: prefix_extractor_->Transform(iter->ukey_without_ts); 29724: range_indexes[num_keys++] = iter.index(); 29724: } 29724: } 29724: bloom_filter_->MayContain(num_keys, bloom_keys.data(), may_match.data()); 29724: for (int i = 0; i < num_keys; ++i) { 29724: if (!may_match[i]) { 29724: temp_range.SkipIndex(range_indexes[i]); 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29724: } else { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29724: } 29724: } 29724: } 29724: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 29724: bool found_final_value{false}; 29724: bool merge_in_progress = iter->s->IsMergeInProgress(); 29724: if (!no_range_del) { 29724: std::unique_ptr range_del_iter( 29724: NewRangeTombstoneIteratorInternal( 29724: read_options, GetInternalKeySeqno(iter->lkey->internal_key()), 29724: immutable_memtable)); 29724: SequenceNumber covering_seq = 29724: range_del_iter->MaxCoveringTombstoneSeqnum(iter->lkey->user_key()); 29724: if (covering_seq > iter->max_covering_tombstone_seq) { 29724: iter->max_covering_tombstone_seq = covering_seq; 29724: if (iter->timestamp) { 29724: 29724: 29724: iter->timestamp->assign(range_del_iter->timestamp().data(), 29724: range_del_iter->timestamp().size()); 29724: } 29724: } 29724: } 29724: SequenceNumber dummy_seq; 29724: GetFromTable(*(iter->lkey), iter->max_covering_tombstone_seq, true, 29724: callback, &iter->is_blob_index, 29724: iter->value ? iter->value->GetSelf() : nullptr, iter->columns, 29724: iter->timestamp, iter->s, &(iter->merge_context), &dummy_seq, 29724: &found_final_value, &merge_in_progress); 29724: 29724: if (!found_final_value && merge_in_progress) { 29724: if (iter->s->ok()) { 29724: *(iter->s) = Status::MergeInProgress(); 29724: } else { 29724: 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: iter->s->IsMergeInProgress() 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "iter->s->IsMergeInProgress()" 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: } 29724: 29724: if (found_final_value || 29724: (!iter->s->ok() && !iter->s->IsMergeInProgress())) { 29724: 29724: 29724: 29724: 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: found_final_value 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "found_final_value" 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (iter->value) { 29724: iter->value->PinSelf(); 29724: range->AddValueSize(iter->value->size()); 29724: } else { 29724: 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: iter->columns 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "iter->columns" 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: range->AddValueSize(iter->columns->serialized_size()); 29724: } 29724: 29724: range->MarkKeyDone(iter); 29724: RecordTick(moptions_.statistics, MEMTABLE_HIT); 29724: if (range->GetValueSize() > read_options.value_size_soft_limit) { 29724: 29724: for (auto range_iter = range->begin(); range_iter != range->end(); 29724: ++range_iter) { 29724: range->MarkKeyDone(range_iter); 29724: *(range_iter->s) = Status::Aborted(); 29724: } 29724: break; 29724: } 29724: } 29724: } 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: } 29724: 29724: Status MemTable::Update(SequenceNumber seq, ValueType value_type, 29724: const Slice& key, const Slice& value, 29724: const ProtectionInfoKVOS64* kv_prot_info) { 29724: LookupKey lkey(key, seq); 29724: Slice mem_key = lkey.memtable_key(); 29724: 29724: std::unique_ptr iter( 29724: table_->GetDynamicPrefixIterator()); 29724: iter->Seek(lkey.internal_key(), mem_key.data()); 29724: 29724: if (iter->Valid()) { 29724: 29724: 29724: 29724: 29724: const char* entry = iter->key(); 29724: uint32_t key_length = 0; 29724: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29724: if (comparator_.comparator.user_comparator()->Equal( 29724: Slice(key_ptr, key_length - 8), lkey.user_key())) { 29724: 29724: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29724: ValueType type; 29724: SequenceNumber existing_seq; 29724: UnPackSequenceAndType(tag, &existing_seq, &type); 29724: 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: existing_seq != seq 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "existing_seq != seq" 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (type == value_type) { 29724: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 29724: uint32_t prev_size = static_cast(prev_value.size()); 29724: uint32_t new_size = static_cast(value.size()); 29724: 29724: 29724: if (new_size <= prev_size) { 29724: WriteLock wl(GetLock(lkey.user_key())); 29724: char* p = 29724: EncodeVarint32(const_cast(key_ptr) + key_length, new_size); 29724: memcpy(p, value.data(), value.size()); 29724: 29724: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: (unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size()) 29724: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "(unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size())" 29724: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: 29724: 29724: # 1662 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 29724: if (kv_prot_info != nullptr) { 29724: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29724: 29724: updated_kv_prot_info.UpdateS(seq, existing_seq); 29724: UpdateEntryChecksum(&updated_kv_prot_info, key, value, type, 29724: existing_seq, p + value.size()); 29724: Slice encoded(entry, p + value.size() - entry); 29724: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 29724: } else { 29724: UpdateEntryChecksum(nullptr, key, value, type, existing_seq, 29724: p + value.size()); 29724: } 29724: return Status::OK(); 29724: } 29724: } 29724: } 29724: } 29724: 29724: 29724: return Add(seq, value_type, key, value, kv_prot_info); 29724: } 29724: 29724: Status MemTable::UpdateCallback(SequenceNumber seq, const Slice& key, 29724: const Slice& delta, 29724: const ProtectionInfoKVOS64* kv_prot_info) { 29724: LookupKey lkey(key, seq); 29724: Slice memkey = lkey.memtable_key(); 29724: 29724: std::unique_ptr iter( 29724: table_->GetDynamicPrefixIterator()); 29724: iter->Seek(lkey.internal_key(), memkey.data()); 29724: 29724: if (iter->Valid()) { 29724: 29724: 29724: 29724: 29724: const char* entry = iter->key(); 29724: uint32_t key_length = 0; 29724: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29724: if (comparator_.comparator.user_comparator()->Equal( 29724: Slice(key_ptr, key_length - 8), lkey.user_key())) { 29724: 29724: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29724: ValueType type; 29724: uint64_t existing_seq; 29724: UnPackSequenceAndType(tag, &existing_seq, &type); 29724: if (type == kTypeValue) { 29724: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 29724: uint32_t prev_size = static_cast(prev_value.size()); 29724: 29724: char* prev_buffer = const_cast(prev_value.data()); 29724: uint32_t new_prev_size = prev_size; 29724: 29724: std::string str_value; 29724: WriteLock wl(GetLock(lkey.user_key())); 29724: auto status = moptions_.inplace_callback(prev_buffer, &new_prev_size, 29724: delta, &str_value); 29724: if (status == UpdateStatus::UPDATED_INPLACE) { 29724: 29724: 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: new_prev_size <= prev_size 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "new_prev_size <= prev_size" 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (new_prev_size < prev_size) { 29724: 29724: char* p = EncodeVarint32(const_cast(key_ptr) + key_length, 29724: new_prev_size); 29724: if (VarintLength(new_prev_size) < VarintLength(prev_size)) { 29724: 29724: memcpy(p, prev_buffer, new_prev_size); 29724: prev_buffer = p; 29724: } 29724: } 29724: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 29724: UpdateFlushState(); 29724: Slice new_value(prev_buffer, new_prev_size); 29724: if (kv_prot_info != nullptr) { 29724: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29724: 29724: updated_kv_prot_info.UpdateS(seq, existing_seq); 29724: updated_kv_prot_info.UpdateV(delta, new_value); 29724: Slice encoded(entry, prev_buffer + new_prev_size - entry); 29724: UpdateEntryChecksum(&updated_kv_prot_info, key, new_value, type, 29724: existing_seq, prev_buffer + new_prev_size); 29724: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 29724: } else { 29724: UpdateEntryChecksum(nullptr, key, new_value, type, existing_seq, 29724: prev_buffer + new_prev_size); 29724: } 29724: return Status::OK(); 29724: } else if (status == UpdateStatus::UPDATED) { 29724: Status s; 29724: if (kv_prot_info != nullptr) { 29724: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29724: updated_kv_prot_info.UpdateV(delta, str_value); 29724: s = Add(seq, kTypeValue, key, Slice(str_value), 29724: &updated_kv_prot_info); 29724: } else { 29724: s = Add(seq, kTypeValue, key, Slice(str_value), 29724: nullptr ); 29724: } 29724: RecordTick(moptions_.statistics, NUMBER_KEYS_WRITTEN); 29724: UpdateFlushState(); 29724: return s; 29724: } else if (status == UpdateStatus::UPDATE_FAILED) { 29724: 29724: 29724: UpdateFlushState(); 29724: return Status::OK(); 29724: } 29724: } 29724: } 29724: } 29724: 29724: return Status::NotFound(); 29724: } 29724: 29724: size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key, 29724: size_t limit) { 29724: Slice memkey = key.memtable_key(); 29724: 29724: 29724: 29724: 29724: std::unique_ptr iter( 29724: table_->GetDynamicPrefixIterator()); 29724: iter->Seek(key.internal_key(), memkey.data()); 29724: 29724: size_t num_successive_merges = 0; 29724: 29724: for (; iter->Valid() && num_successive_merges < limit; iter->Next()) { 29724: const char* entry = iter->key(); 29724: uint32_t key_length = 0; 29724: const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29724: if (!comparator_.comparator.user_comparator()->Equal( 29724: Slice(iter_key_ptr, key_length - 8), key.user_key())) { 29724: break; 29724: } 29724: 29724: const uint64_t tag = DecodeFixed64(iter_key_ptr + key_length - 8); 29724: ValueType type; 29724: uint64_t unused; 29724: UnPackSequenceAndType(tag, &unused, &type); 29724: if (type != kTypeMerge) { 29724: break; 29724: } 29724: 29724: ++num_successive_merges; 29724: } 29724: 29724: return num_successive_merges; 29724: } 29724: 29724: void MemTableRep::Get(const LookupKey& k, void* callback_args, 29724: bool (*callback_func)(void* arg, const char* entry)) { 29724: auto iter = GetDynamicPrefixIterator(); 29724: for (iter->Seek(k.internal_key(), k.memtable_key().data()); 29724: iter->Valid() && callback_func(callback_args, iter->key()); 29724: iter->Next()) { 29724: } 29724: } 29724: 29724: void MemTable::RefLogContainingPrepSection(uint64_t log) { 29724: 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: log > 0 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "log > 0" 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: auto cur = min_prep_log_referenced_.load(); 29724: while ((log < cur || cur == 0) && 29724: !min_prep_log_referenced_.compare_exchange_strong(cur, log)) { 29724: cur = min_prep_log_referenced_.load(); 29724: } 29724: } 29724: 29724: uint64_t MemTable::GetMinLogContainingPrepSection() { 29724: return min_prep_log_referenced_.load(); 29724: } 29724: 29724: void MemTable::MaybeUpdateNewestUDT(const Slice& user_key) { 29724: if (ts_sz_ == 0 || persist_user_defined_timestamps_) { 29724: return; 29724: } 29724: const Comparator* ucmp = GetInternalKeyComparator().user_comparator(); 29724: Slice udt = ExtractTimestampFromUserKey(user_key, ts_sz_); 29724: if (newest_udt_.empty() || ucmp->CompareTimestamp(udt, newest_udt_) > 0) { 29724: newest_udt_ = udt; 29724: } 29724: } 29724: 29724: const Slice& MemTable::GetNewestUDT() const { 29724: 29724: 29724: 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ts_sz_ > 0 && !persist_user_defined_timestamps_ 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "ts_sz_ > 0 && !persist_user_defined_timestamps_" 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: return newest_udt_; 29724: } 29724: 29724: } === END GCC DUMP === make[3]: *** [CMakeFiles/rocksdb.dir/build.make:1146: CMakeFiles/rocksdb.dir/db/memtable.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... [ 23%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/memtable_list.cc make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make[2]: *** [CMakeFiles/Makefile2:212: CMakeFiles/rocksdb.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... [ 23%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/merge_helper.cc Preprocessed source stored into /tmp/cclxEn5Z.out file, please attach this to your bugreport. === BEGIN GCC DUMP === 29761: // Target: arm-linux-gnueabihf 29761: // Configured with: ../src/configure -v --with-pkgversion='Debian 14.2.0-16' --with-bugurl=file:///usr/share/doc/gcc-14/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust --prefix=/usr --with-gcc-major-version-only --program-suffix=-14 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf 29761: // Thread model: posix 29761: // Supported LTO compression algorithms: zlib zstd 29761: // gcc version 14.2.0 (Debian 14.2.0-16) 29761: // 29761: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': 29761: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: error: insn does not satisfy its constraints: 29761: // 269 | } 29761: // | ^ 29761: // (insn 271 270 272 13 (set (reg:CC_DNE 100 cc) 29761: // (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) 29761: // (const_int -1 [0xffffffffffffffff])) 29761: // (ne:SI (reg:SI 1 r1 [+4 ]) 29761: // (const_int -1 [0xffffffffffffffff]))) 29761: // (const_int 0 [0]))) "/usr/include/c++/14/bits/atomic_base.h":573:36 343 {*cmp_ior} 29761: // (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) 29761: // (expr_list:REG_DEAD (reg:SI 0 r0 [164]) 29761: // (nil)))) 29761: // during RTL pass: cprop_hardreg 29761: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 29761: // 0x6a4a17 internal_error(char const*, ...) 29761: // ???:0 29761: // 0x6a4acd fancy_abort(char const*, int, char const*) 29761: // ???:0 29761: // 0x3d10f1 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) 29761: // ???:0 29761: // 0x3d1123 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) 29761: // ???:0 29761: // 0x946eb5 extract_constrain_insn(rtx_insn*) 29761: // ???:0 29761: // Please submit a full bug report, with preprocessed source (by using -freport-bug). 29761: // Please include the complete backtrace with any bug report. 29761: // See for instructions. 29761: 29761: // /usr/libexec/gcc/arm-linux-gnueabihf/14/cc1plus -quiet -I /build/reproducible-path/rocksdb-9.10.0 -I /build/reproducible-path/rocksdb-9.10.0/include -imultilib . -imultiarch arm-linux-gnueabihf -MD CMakeFiles/rocksdb-shared.dir/db/memtable.cc.d -MF CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o.d -MT CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o -D_GNU_SOURCE -D_REENTRANT -D BZIP2 -D GFLAGS=1 -D GFLAGS_IS_A_DLL=0 -D LZ4 -D OS_LINUX -D ROCKSDB_AUXV_GETAUXVAL_PRESENT -D ROCKSDB_FALLOCATE_PRESENT -D ROCKSDB_LIB_IO_POSIX -D ROCKSDB_MALLOC_USABLE_SIZE -D ROCKSDB_NO_DYNAMIC_EXTENSION -D ROCKSDB_PLATFORM_POSIX -D ROCKSDB_PTHREAD_ADAPTIVE_MUTEX -D ROCKSDB_RANGESYNC_PRESENT -D ROCKSDB_SCHED_GETCPU_PRESENT -D SNAPPY -D ZLIB -D ZSTD -D rocksdb_shared_EXPORTS -D _LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D _TIME_BITS=64 -D _FORTIFY_SOURCE=2 -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc -quiet -dumpdir CMakeFiles/rocksdb-shared.dir/db/ -dumpbase memtable.cc.cc -dumpbase-ext .cc -mfloat-abi=hard -mtls-dialect=gnu -mthumb -mlibarch=armv8-a+crc+crypto -march=armv8-a+crc+crypto -g -O2 -Wformat=1 -Werror=format-security -Wdate-time -Wextra -Wall -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual=2 -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -Wno-unused-function -std=gnu++17 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -fno-omit-frame-pointer -fno-builtin-memcmp -fPIC -o - -frandom-seed=0 -fdump-noaddr 29761: 29761: # 0 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf//" 29761: # 0 "" 29761: # 0 "" 29761: # 1 "/usr/include/stdc-predef.h" 1 3 4 29761: # 0 "" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: 29761: # 1 "/usr/include/c++/14/atomic" 1 3 29761: # 35 "/usr/include/c++/14/atomic" 3 29761: 29761: # 36 "/usr/include/c++/14/atomic" 3 29761: # 48 "/usr/include/c++/14/atomic" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 1 3 29761: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: 29761: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: 29761: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: namespace std 29761: { 29761: typedef unsigned int size_t; 29761: typedef int ptrdiff_t; 29761: 29761: 29761: typedef decltype(nullptr) nullptr_t; 29761: 29761: 29761: #pragma GCC visibility push(default) 29761: 29761: 29761: extern "C++" __attribute__ ((__noreturn__, __always_inline__)) 29761: inline void __terminate() noexcept 29761: { 29761: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 29761: terminate(); 29761: } 29761: #pragma GCC visibility pop 29761: } 29761: # 341 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: namespace std 29761: { 29761: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 29761: } 29761: namespace __gnu_cxx 29761: { 29761: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 29761: } 29761: # 534 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: namespace std 29761: { 29761: #pragma GCC visibility push(default) 29761: 29761: 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: constexpr inline bool 29761: __is_constant_evaluated() noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: return __builtin_is_constant_evaluated(); 29761: 29761: 29761: 29761: } 29761: #pragma GCC visibility pop 29761: } 29761: # 573 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: namespace std 29761: { 29761: #pragma GCC visibility push(default) 29761: 29761: extern "C++" __attribute__ ((__noreturn__)) 29761: void 29761: __glibcxx_assert_fail 29761: (const char* __file, int __line, const char* __function, 29761: const char* __condition) 29761: noexcept; 29761: #pragma GCC visibility pop 29761: } 29761: # 604 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: namespace std 29761: { 29761: __attribute__((__always_inline__,__visibility__("default"))) 29761: inline void 29761: __glibcxx_assert_fail() 29761: { } 29761: } 29761: # 683 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 1 3 29761: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 3 29761: # 1 "/usr/include/features.h" 1 3 4 29761: # 402 "/usr/include/features.h" 3 4 29761: # 1 "/usr/include/features-time64.h" 1 3 4 29761: # 20 "/usr/include/features-time64.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 21 "/usr/include/features-time64.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 29761: # 22 "/usr/include/features-time64.h" 2 3 4 29761: # 403 "/usr/include/features.h" 2 3 4 29761: # 510 "/usr/include/features.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 1 3 4 29761: # 730 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 731 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 29761: # 732 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 29761: # 511 "/usr/include/features.h" 2 3 4 29761: # 534 "/usr/include/features.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 1 3 4 29761: # 10 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs-hard.h" 1 3 4 29761: # 11 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 2 3 4 29761: # 535 "/usr/include/features.h" 2 3 4 29761: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 2 3 29761: # 684 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/cpu_defines.h" 1 3 29761: # 687 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29761: # 890 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: # 1 "/usr/include/c++/14/pstl/pstl_config.h" 1 3 29761: # 891 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29761: # 50 "/usr/include/c++/14/bits/version.h" 2 3 29761: # 49 "/usr/include/c++/14/atomic" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/atomic_base.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/new" 1 3 29761: # 38 "/usr/include/c++/14/new" 3 29761: 29761: # 39 "/usr/include/c++/14/new" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/exception.h" 1 3 29761: # 34 "/usr/include/c++/14/bits/exception.h" 3 29761: 29761: # 35 "/usr/include/c++/14/bits/exception.h" 3 29761: 29761: 29761: 29761: extern "C++" { 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: # 59 "/usr/include/c++/14/bits/exception.h" 3 29761: class exception 29761: { 29761: public: 29761: exception() noexcept { } 29761: virtual ~exception() noexcept; 29761: 29761: exception(const exception&) = default; 29761: exception& operator=(const exception&) = default; 29761: exception(exception&&) = default; 29761: exception& operator=(exception&&) = default; 29761: 29761: 29761: 29761: 29761: virtual const char* 29761: what() const noexcept; 29761: }; 29761: 29761: 29761: 29761: } 29761: 29761: } 29761: # 42 "/usr/include/c++/14/new" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 47 "/usr/include/c++/14/new" 2 3 29761: 29761: #pragma GCC visibility push(default) 29761: 29761: extern "C++" { 29761: 29761: namespace std 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class bad_alloc : public exception 29761: { 29761: public: 29761: bad_alloc() throw() { } 29761: 29761: 29761: bad_alloc(const bad_alloc&) = default; 29761: bad_alloc& operator=(const bad_alloc&) = default; 29761: 29761: 29761: 29761: 29761: virtual ~bad_alloc() throw(); 29761: 29761: 29761: virtual const char* what() const throw(); 29761: }; 29761: 29761: 29761: class bad_array_new_length : public bad_alloc 29761: { 29761: public: 29761: bad_array_new_length() throw() { } 29761: 29761: 29761: 29761: virtual ~bad_array_new_length() throw(); 29761: 29761: 29761: virtual const char* what() const throw(); 29761: }; 29761: 29761: 29761: 29761: enum class align_val_t: size_t {}; 29761: 29761: 29761: struct nothrow_t 29761: { 29761: 29761: explicit nothrow_t() = default; 29761: 29761: }; 29761: 29761: extern const nothrow_t nothrow; 29761: 29761: 29761: 29761: typedef void (*new_handler)(); 29761: 29761: 29761: 29761: new_handler set_new_handler(new_handler) throw(); 29761: 29761: 29761: 29761: new_handler get_new_handler() noexcept; 29761: 29761: } 29761: # 131 "/usr/include/c++/14/new" 3 29761: [[__nodiscard__]] void* operator new(std::size_t) 29761: __attribute__((__externally_visible__)); 29761: [[__nodiscard__]] void* operator new[](std::size_t) 29761: __attribute__((__externally_visible__)); 29761: void operator delete(void*) noexcept 29761: __attribute__((__externally_visible__)); 29761: void operator delete[](void*) noexcept 29761: __attribute__((__externally_visible__)); 29761: 29761: void operator delete(void*, std::size_t) noexcept 29761: __attribute__((__externally_visible__)); 29761: void operator delete[](void*, std::size_t) noexcept 29761: __attribute__((__externally_visible__)); 29761: 29761: [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept 29761: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept 29761: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: void operator delete(void*, const std::nothrow_t&) noexcept 29761: __attribute__((__externally_visible__)); 29761: void operator delete[](void*, const std::nothrow_t&) noexcept 29761: __attribute__((__externally_visible__)); 29761: 29761: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) 29761: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) 29761: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: void operator delete(void*, std::align_val_t) 29761: noexcept __attribute__((__externally_visible__)); 29761: void operator delete(void*, std::align_val_t, const std::nothrow_t&) 29761: noexcept __attribute__((__externally_visible__)); 29761: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) 29761: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) 29761: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: void operator delete[](void*, std::align_val_t) 29761: noexcept __attribute__((__externally_visible__)); 29761: void operator delete[](void*, std::align_val_t, const std::nothrow_t&) 29761: noexcept __attribute__((__externally_visible__)); 29761: 29761: void operator delete(void*, std::size_t, std::align_val_t) 29761: noexcept __attribute__((__externally_visible__)); 29761: void operator delete[](void*, std::size_t, std::align_val_t) 29761: noexcept __attribute__((__externally_visible__)); 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept 29761: { return __p; } 29761: [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept 29761: { return __p; } 29761: 29761: 29761: inline void operator delete (void*, void*) noexcept { } 29761: inline void operator delete[](void*, void*) noexcept { } 29761: 29761: } 29761: 29761: 29761: namespace std 29761: { 29761: 29761: 29761: template 29761: [[nodiscard]] constexpr _Tp* 29761: launder(_Tp* __p) noexcept 29761: { return __builtin_launder(__p); } 29761: 29761: 29761: 29761: 29761: template 29761: void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; 29761: template 29761: void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; 29761: 29761: void launder(void*) = delete; 29761: void launder(const void*) = delete; 29761: void launder(volatile void*) = delete; 29761: void launder(const volatile void*) = delete; 29761: 29761: 29761: 29761: inline constexpr size_t hardware_destructive_interference_size = 64; 29761: inline constexpr size_t hardware_constructive_interference_size = 64; 29761: 29761: } 29761: # 236 "/usr/include/c++/14/new" 3 29761: #pragma GCC visibility pop 29761: # 37 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 1 3 4 29761: # 9 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 3 4 29761: # 1 "/usr/include/stdint.h" 1 3 4 29761: # 26 "/usr/include/stdint.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 27 "/usr/include/stdint.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 28 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 29761: # 29 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29761: 29761: 29761: typedef unsigned char __u_char; 29761: typedef unsigned short int __u_short; 29761: typedef unsigned int __u_int; 29761: typedef unsigned long int __u_long; 29761: 29761: 29761: typedef signed char __int8_t; 29761: typedef unsigned char __uint8_t; 29761: typedef signed short int __int16_t; 29761: typedef unsigned short int __uint16_t; 29761: typedef signed int __int32_t; 29761: typedef unsigned int __uint32_t; 29761: 29761: 29761: 29761: 29761: __extension__ typedef signed long long int __int64_t; 29761: __extension__ typedef unsigned long long int __uint64_t; 29761: 29761: 29761: 29761: typedef __int8_t __int_least8_t; 29761: typedef __uint8_t __uint_least8_t; 29761: typedef __int16_t __int_least16_t; 29761: typedef __uint16_t __uint_least16_t; 29761: typedef __int32_t __int_least32_t; 29761: typedef __uint32_t __uint_least32_t; 29761: typedef __int64_t __int_least64_t; 29761: typedef __uint64_t __uint_least64_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: __extension__ typedef long long int __quad_t; 29761: __extension__ typedef unsigned long long int __u_quad_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __extension__ typedef long long int __intmax_t; 29761: __extension__ typedef unsigned long long int __uintmax_t; 29761: # 141 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/typesizes.h" 1 3 4 29761: # 142 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/time64.h" 1 3 4 29761: # 143 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29761: 29761: 29761: __extension__ typedef __uint64_t __dev_t; 29761: __extension__ typedef unsigned int __uid_t; 29761: __extension__ typedef unsigned int __gid_t; 29761: __extension__ typedef unsigned long int __ino_t; 29761: __extension__ typedef __uint64_t __ino64_t; 29761: __extension__ typedef unsigned int __mode_t; 29761: __extension__ typedef unsigned int __nlink_t; 29761: __extension__ typedef long int __off_t; 29761: __extension__ typedef __int64_t __off64_t; 29761: __extension__ typedef int __pid_t; 29761: __extension__ typedef struct { int __val[2]; } __fsid_t; 29761: __extension__ typedef long int __clock_t; 29761: __extension__ typedef unsigned long int __rlim_t; 29761: __extension__ typedef __uint64_t __rlim64_t; 29761: __extension__ typedef unsigned int __id_t; 29761: __extension__ typedef long int __time_t; 29761: __extension__ typedef unsigned int __useconds_t; 29761: __extension__ typedef long int __suseconds_t; 29761: __extension__ typedef __int64_t __suseconds64_t; 29761: 29761: __extension__ typedef int __daddr_t; 29761: __extension__ typedef int __key_t; 29761: 29761: 29761: __extension__ typedef int __clockid_t; 29761: 29761: 29761: __extension__ typedef void * __timer_t; 29761: 29761: 29761: __extension__ typedef long int __blksize_t; 29761: 29761: 29761: 29761: 29761: __extension__ typedef long int __blkcnt_t; 29761: __extension__ typedef __int64_t __blkcnt64_t; 29761: 29761: 29761: __extension__ typedef unsigned long int __fsblkcnt_t; 29761: __extension__ typedef __uint64_t __fsblkcnt64_t; 29761: 29761: 29761: __extension__ typedef unsigned long int __fsfilcnt_t; 29761: __extension__ typedef __uint64_t __fsfilcnt64_t; 29761: 29761: 29761: __extension__ typedef int __fsword_t; 29761: 29761: __extension__ typedef int __ssize_t; 29761: 29761: 29761: __extension__ typedef long int __syscall_slong_t; 29761: 29761: __extension__ typedef unsigned long int __syscall_ulong_t; 29761: 29761: 29761: 29761: typedef __off64_t __loff_t; 29761: typedef char *__caddr_t; 29761: 29761: 29761: __extension__ typedef int __intptr_t; 29761: 29761: 29761: __extension__ typedef unsigned int __socklen_t; 29761: 29761: 29761: 29761: 29761: typedef int __sig_atomic_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __extension__ typedef __int64_t __time64_t; 29761: # 28 "/usr/include/stdint.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar.h" 1 3 4 29761: # 29 "/usr/include/stdint.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 30 "/usr/include/stdint.h" 2 3 4 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 3 4 29761: typedef __int8_t int8_t; 29761: typedef __int16_t int16_t; 29761: typedef __int32_t int32_t; 29761: typedef __int64_t int64_t; 29761: # 35 "/usr/include/stdint.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 3 4 29761: typedef __uint8_t uint8_t; 29761: typedef __uint16_t uint16_t; 29761: typedef __uint32_t uint32_t; 29761: typedef __uint64_t uint64_t; 29761: # 38 "/usr/include/stdint.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 1 3 4 29761: # 25 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 3 4 29761: typedef __int_least8_t int_least8_t; 29761: typedef __int_least16_t int_least16_t; 29761: typedef __int_least32_t int_least32_t; 29761: typedef __int_least64_t int_least64_t; 29761: 29761: 29761: typedef __uint_least8_t uint_least8_t; 29761: typedef __uint_least16_t uint_least16_t; 29761: typedef __uint_least32_t uint_least32_t; 29761: typedef __uint_least64_t uint_least64_t; 29761: # 42 "/usr/include/stdint.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: typedef signed char int_fast8_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef int int_fast16_t; 29761: typedef int int_fast32_t; 29761: __extension__ 29761: typedef long long int int_fast64_t; 29761: 29761: 29761: 29761: typedef unsigned char uint_fast8_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef unsigned int uint_fast16_t; 29761: typedef unsigned int uint_fast32_t; 29761: __extension__ 29761: typedef unsigned long long int uint_fast64_t; 29761: # 82 "/usr/include/stdint.h" 3 4 29761: typedef int intptr_t; 29761: 29761: 29761: typedef unsigned int uintptr_t; 29761: 29761: 29761: 29761: 29761: typedef __intmax_t intmax_t; 29761: typedef __uintmax_t uintmax_t; 29761: # 10 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 2 3 4 29761: # 38 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 29761: # 39 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/move.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/move.h" 3 29761: # 1 "/usr/include/c++/14/type_traits" 1 3 29761: # 32 "/usr/include/c++/14/type_traits" 3 29761: 29761: # 33 "/usr/include/c++/14/type_traits" 3 29761: # 63 "/usr/include/c++/14/type_traits" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 64 "/usr/include/c++/14/type_traits" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: class reference_wrapper; 29761: # 86 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct integral_constant 29761: { 29761: static constexpr _Tp value = __v; 29761: using value_type = _Tp; 29761: using type = integral_constant<_Tp, __v>; 29761: constexpr operator value_type() const noexcept { return value; } 29761: 29761: 29761: constexpr value_type operator()() const noexcept { return value; } 29761: 29761: }; 29761: # 106 "/usr/include/c++/14/type_traits" 3 29761: template 29761: using __bool_constant = integral_constant; 29761: 29761: 29761: 29761: using true_type = __bool_constant; 29761: 29761: 29761: using false_type = __bool_constant; 29761: 29761: 29761: 29761: 29761: template 29761: using bool_constant = __bool_constant<__v>; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct enable_if 29761: { }; 29761: 29761: 29761: template 29761: struct enable_if 29761: { using type = _Tp; }; 29761: 29761: 29761: template 29761: using __enable_if_t = typename enable_if<_Cond, _Tp>::type; 29761: 29761: template 29761: struct __conditional 29761: { 29761: template 29761: using type = _Tp; 29761: }; 29761: 29761: template<> 29761: struct __conditional 29761: { 29761: template 29761: using type = _Up; 29761: }; 29761: 29761: 29761: template 29761: using __conditional_t 29761: = typename __conditional<_Cond>::template type<_If, _Else>; 29761: 29761: 29761: template 29761: struct __type_identity 29761: { using type = _Type; }; 29761: 29761: template 29761: using __type_identity_t = typename __type_identity<_Tp>::type; 29761: 29761: namespace __detail 29761: { 29761: 29761: template 29761: using __first_t = _Tp; 29761: 29761: 29761: template 29761: auto __or_fn(int) -> __first_t...>; 29761: 29761: template 29761: auto __or_fn(...) -> true_type; 29761: 29761: template 29761: auto __and_fn(int) -> __first_t...>; 29761: 29761: template 29761: auto __and_fn(...) -> false_type; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: struct __or_ 29761: : decltype(__detail::__or_fn<_Bn...>(0)) 29761: { }; 29761: 29761: template 29761: struct __and_ 29761: : decltype(__detail::__and_fn<_Bn...>(0)) 29761: { }; 29761: 29761: template 29761: struct __not_ 29761: : __bool_constant 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool __or_v = __or_<_Bn...>::value; 29761: template 29761: inline constexpr bool __and_v = __and_<_Bn...>::value; 29761: 29761: namespace __detail 29761: { 29761: template 29761: struct __disjunction_impl 29761: { using type = _B1; }; 29761: 29761: template 29761: struct __disjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 29761: { using type = typename __disjunction_impl::type; }; 29761: 29761: template 29761: struct __conjunction_impl 29761: { using type = _B1; }; 29761: 29761: template 29761: struct __conjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 29761: { using type = typename __conjunction_impl::type; }; 29761: } 29761: 29761: 29761: template 29761: struct conjunction 29761: : __detail::__conjunction_impl::type 29761: { }; 29761: 29761: template<> 29761: struct conjunction<> 29761: : true_type 29761: { }; 29761: 29761: template 29761: struct disjunction 29761: : __detail::__disjunction_impl::type 29761: { }; 29761: 29761: template<> 29761: struct disjunction<> 29761: : false_type 29761: { }; 29761: 29761: template 29761: struct negation 29761: : __not_<_Pp>::type 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool conjunction_v = conjunction<_Bn...>::value; 29761: 29761: template 29761: inline constexpr bool disjunction_v = disjunction<_Bn...>::value; 29761: 29761: template 29761: inline constexpr bool negation_v = negation<_Pp>::value; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_reference; 29761: template 29761: struct is_function; 29761: template 29761: struct is_void; 29761: template 29761: struct remove_cv; 29761: template 29761: struct is_const; 29761: 29761: 29761: template 29761: struct __is_array_unknown_bounds; 29761: 29761: 29761: 29761: 29761: template 29761: constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) 29761: { return {}; } 29761: 29761: template 29761: constexpr typename __or_< 29761: is_reference<_NestedType>, 29761: is_function<_NestedType>, 29761: is_void<_NestedType>, 29761: __is_array_unknown_bounds<_NestedType> 29761: >::type __is_complete_or_unbounded(_TypeIdentity) 29761: { return {}; } 29761: 29761: 29761: template 29761: using __remove_cv_t = typename remove_cv<_Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_void 29761: : public false_type { }; 29761: 29761: template<> 29761: struct is_void 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_void 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_void 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_void 29761: : public true_type { }; 29761: 29761: 29761: template 29761: struct __is_integral_helper 29761: : public false_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: # 460 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_integral 29761: : public __is_integral_helper<__remove_cv_t<_Tp>>::type 29761: { }; 29761: 29761: 29761: template 29761: struct __is_floating_point_helper 29761: : public false_type { }; 29761: 29761: template<> 29761: struct __is_floating_point_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_floating_point_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_floating_point_helper 29761: : public true_type { }; 29761: # 520 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_floating_point 29761: : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_array 29761: : public __bool_constant<__is_array(_Tp)> 29761: { }; 29761: # 545 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct __is_pointer_helper 29761: : public false_type { }; 29761: 29761: template 29761: struct __is_pointer_helper<_Tp*> 29761: : public true_type { }; 29761: 29761: 29761: template 29761: struct is_pointer 29761: : public __is_pointer_helper<__remove_cv_t<_Tp>>::type 29761: { }; 29761: 29761: 29761: template 29761: struct is_lvalue_reference 29761: : public false_type { }; 29761: 29761: template 29761: struct is_lvalue_reference<_Tp&> 29761: : public true_type { }; 29761: 29761: 29761: template 29761: struct is_rvalue_reference 29761: : public false_type { }; 29761: 29761: template 29761: struct is_rvalue_reference<_Tp&&> 29761: : public true_type { }; 29761: 29761: 29761: 29761: template 29761: struct is_member_object_pointer 29761: : public __bool_constant<__is_member_object_pointer(_Tp)> 29761: { }; 29761: # 601 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_member_function_pointer 29761: : public __bool_constant<__is_member_function_pointer(_Tp)> 29761: { }; 29761: # 622 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_enum 29761: : public __bool_constant<__is_enum(_Tp)> 29761: { }; 29761: 29761: 29761: template 29761: struct is_union 29761: : public __bool_constant<__is_union(_Tp)> 29761: { }; 29761: 29761: 29761: template 29761: struct is_class 29761: : public __bool_constant<__is_class(_Tp)> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_function 29761: : public __bool_constant<__is_function(_Tp)> 29761: { }; 29761: # 661 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_null_pointer 29761: : public false_type { }; 29761: 29761: template<> 29761: struct is_null_pointer 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_null_pointer 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_null_pointer 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_null_pointer 29761: : public true_type { }; 29761: 29761: 29761: 29761: template 29761: struct __is_nullptr_t 29761: : public is_null_pointer<_Tp> 29761: { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_reference 29761: : public __bool_constant<__is_reference(_Tp)> 29761: { }; 29761: # 715 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_arithmetic 29761: : public __or_, is_floating_point<_Tp>>::type 29761: { }; 29761: 29761: 29761: template 29761: struct is_fundamental 29761: : public __or_, is_void<_Tp>, 29761: is_null_pointer<_Tp>>::type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_object 29761: : public __bool_constant<__is_object(_Tp)> 29761: { }; 29761: # 741 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_member_pointer; 29761: 29761: 29761: template 29761: struct is_scalar 29761: : public __or_, is_enum<_Tp>, is_pointer<_Tp>, 29761: is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 29761: { }; 29761: 29761: 29761: template 29761: struct is_compound 29761: : public __bool_constant::value> { }; 29761: 29761: 29761: 29761: template 29761: struct is_member_pointer 29761: : public __bool_constant<__is_member_pointer(_Tp)> 29761: { }; 29761: # 779 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_same; 29761: 29761: 29761: template 29761: using __is_one_of = __or_...>; 29761: 29761: 29761: __extension__ 29761: template 29761: using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, 29761: signed char, signed short, signed int, signed long, 29761: signed long long 29761: # 804 "/usr/include/c++/14/type_traits" 3 29761: >; 29761: 29761: 29761: __extension__ 29761: template 29761: using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, 29761: unsigned char, unsigned short, unsigned int, unsigned long, 29761: unsigned long long 29761: # 824 "/usr/include/c++/14/type_traits" 3 29761: >; 29761: 29761: 29761: template 29761: using __is_standard_integer 29761: = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; 29761: 29761: 29761: template using __void_t = void; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_const 29761: : public false_type { }; 29761: 29761: template 29761: struct is_const<_Tp const> 29761: : public true_type { }; 29761: 29761: 29761: template 29761: struct is_volatile 29761: : public false_type { }; 29761: 29761: template 29761: struct is_volatile<_Tp volatile> 29761: : public true_type { }; 29761: 29761: 29761: template 29761: struct is_trivial 29761: : public __bool_constant<__is_trivial(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_copyable 29761: : public __bool_constant<__is_trivially_copyable(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_standard_layout 29761: : public __bool_constant<__is_standard_layout(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: 29761: is_pod 29761: : public __bool_constant<__is_pod(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: [[__deprecated__]] 29761: is_literal_type 29761: : public __bool_constant<__is_literal_type(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_empty 29761: : public __bool_constant<__is_empty(_Tp)> 29761: { }; 29761: 29761: 29761: template 29761: struct is_polymorphic 29761: : public __bool_constant<__is_polymorphic(_Tp)> 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct is_final 29761: : public __bool_constant<__is_final(_Tp)> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_abstract 29761: : public __bool_constant<__is_abstract(_Tp)> 29761: { }; 29761: 29761: 29761: template::value> 29761: struct __is_signed_helper 29761: : public false_type { }; 29761: 29761: template 29761: struct __is_signed_helper<_Tp, true> 29761: : public __bool_constant<_Tp(-1) < _Tp(0)> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_signed 29761: : public __is_signed_helper<_Tp>::type 29761: { }; 29761: 29761: 29761: template 29761: struct is_unsigned 29761: : public __and_, __not_>>::type 29761: { }; 29761: 29761: 29761: template 29761: _Up 29761: __declval(int); 29761: 29761: template 29761: _Tp 29761: __declval(long); 29761: 29761: 29761: template 29761: auto declval() noexcept -> decltype(__declval<_Tp>(0)); 29761: 29761: template 29761: struct remove_all_extents; 29761: 29761: 29761: template 29761: struct __is_array_known_bounds 29761: : public false_type 29761: { }; 29761: 29761: template 29761: struct __is_array_known_bounds<_Tp[_Size]> 29761: : public true_type 29761: { }; 29761: 29761: template 29761: struct __is_array_unknown_bounds 29761: : public false_type 29761: { }; 29761: 29761: template 29761: struct __is_array_unknown_bounds<_Tp[]> 29761: : public true_type 29761: { }; 29761: # 1006 "/usr/include/c++/14/type_traits" 3 29761: struct __do_is_destructible_impl 29761: { 29761: template().~_Tp())> 29761: static true_type __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: template 29761: struct __is_destructible_impl 29761: : public __do_is_destructible_impl 29761: { 29761: using type = decltype(__test<_Tp>(0)); 29761: }; 29761: 29761: template, 29761: __is_array_unknown_bounds<_Tp>, 29761: is_function<_Tp>>::value, 29761: bool = __or_, is_scalar<_Tp>>::value> 29761: struct __is_destructible_safe; 29761: 29761: template 29761: struct __is_destructible_safe<_Tp, false, false> 29761: : public __is_destructible_impl::type>::type 29761: { }; 29761: 29761: template 29761: struct __is_destructible_safe<_Tp, true, false> 29761: : public false_type { }; 29761: 29761: template 29761: struct __is_destructible_safe<_Tp, false, true> 29761: : public true_type { }; 29761: 29761: 29761: 29761: template 29761: struct is_destructible 29761: : public __is_destructible_safe<_Tp>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct __do_is_nt_destructible_impl 29761: { 29761: template 29761: static __bool_constant().~_Tp())> 29761: __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: template 29761: struct __is_nt_destructible_impl 29761: : public __do_is_nt_destructible_impl 29761: { 29761: using type = decltype(__test<_Tp>(0)); 29761: }; 29761: 29761: template, 29761: __is_array_unknown_bounds<_Tp>, 29761: is_function<_Tp>>::value, 29761: bool = __or_, is_scalar<_Tp>>::value> 29761: struct __is_nt_destructible_safe; 29761: 29761: template 29761: struct __is_nt_destructible_safe<_Tp, false, false> 29761: : public __is_nt_destructible_impl::type>::type 29761: { }; 29761: 29761: template 29761: struct __is_nt_destructible_safe<_Tp, true, false> 29761: : public false_type { }; 29761: 29761: template 29761: struct __is_nt_destructible_safe<_Tp, false, true> 29761: : public true_type { }; 29761: 29761: 29761: 29761: template 29761: struct is_nothrow_destructible 29761: : public __is_nt_destructible_safe<_Tp>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_constructible_impl 29761: = __bool_constant<__is_constructible(_Tp, _Args...)>; 29761: 29761: 29761: 29761: template 29761: struct is_constructible 29761: : public __is_constructible_impl<_Tp, _Args...> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_default_constructible 29761: : public __is_constructible_impl<_Tp> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct __add_lvalue_reference_helper 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct __add_lvalue_reference_helper<_Tp, __void_t<_Tp&>> 29761: { using type = _Tp&; }; 29761: 29761: template 29761: using __add_lval_ref_t = typename __add_lvalue_reference_helper<_Tp>::type; 29761: 29761: 29761: 29761: template 29761: struct is_copy_constructible 29761: : public __is_constructible_impl<_Tp, __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct __add_rvalue_reference_helper 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct __add_rvalue_reference_helper<_Tp, __void_t<_Tp&&>> 29761: { using type = _Tp&&; }; 29761: 29761: template 29761: using __add_rval_ref_t = typename __add_rvalue_reference_helper<_Tp>::type; 29761: 29761: 29761: 29761: template 29761: struct is_move_constructible 29761: : public __is_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_nothrow_constructible_impl 29761: = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; 29761: 29761: 29761: 29761: template 29761: struct is_nothrow_constructible 29761: : public __is_nothrow_constructible_impl<_Tp, _Args...> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_default_constructible 29761: : public __is_nothrow_constructible_impl<_Tp> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_copy_constructible 29761: : public __is_nothrow_constructible_impl<_Tp, __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_move_constructible 29761: : public __is_nothrow_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>; 29761: 29761: 29761: 29761: template 29761: struct is_assignable 29761: : public __is_assignable_impl<_Tp, _Up> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_copy_assignable 29761: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, 29761: __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_move_assignable 29761: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_nothrow_assignable_impl 29761: = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; 29761: 29761: 29761: 29761: template 29761: struct is_nothrow_assignable 29761: : public __is_nothrow_assignable_impl<_Tp, _Up> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_copy_assignable 29761: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 29761: __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_move_assignable 29761: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 29761: __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_trivially_constructible_impl 29761: = __bool_constant<__is_trivially_constructible(_Tp, _Args...)>; 29761: 29761: 29761: 29761: template 29761: struct is_trivially_constructible 29761: : public __is_trivially_constructible_impl<_Tp, _Args...> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_default_constructible 29761: : public __is_trivially_constructible_impl<_Tp> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: # 1319 "/usr/include/c++/14/type_traits" 3 29761: struct __do_is_implicitly_default_constructible_impl 29761: { 29761: template 29761: static void __helper(const _Tp&); 29761: 29761: template 29761: static true_type __test(const _Tp&, 29761: decltype(__helper({}))* = 0); 29761: 29761: static false_type __test(...); 29761: }; 29761: 29761: template 29761: struct __is_implicitly_default_constructible_impl 29761: : public __do_is_implicitly_default_constructible_impl 29761: { 29761: using type = decltype(__test(declval<_Tp>())); 29761: }; 29761: 29761: template 29761: struct __is_implicitly_default_constructible_safe 29761: : public __is_implicitly_default_constructible_impl<_Tp>::type 29761: { }; 29761: 29761: template 29761: struct __is_implicitly_default_constructible 29761: : public __and_<__is_constructible_impl<_Tp>, 29761: __is_implicitly_default_constructible_safe<_Tp>>::type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_trivially_copy_constructible 29761: : public __is_trivially_constructible_impl<_Tp, __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_move_constructible 29761: : public __is_trivially_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_trivially_assignable_impl 29761: = __bool_constant<__is_trivially_assignable(_Tp, _Up)>; 29761: 29761: 29761: 29761: template 29761: struct is_trivially_assignable 29761: : public __is_trivially_assignable_impl<_Tp, _Up> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_copy_assignable 29761: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 29761: __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_move_assignable 29761: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 29761: __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_destructible 29761: : public __and_<__is_destructible_safe<_Tp>, 29761: __bool_constant<__has_trivial_destructor(_Tp)>>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: template 29761: struct has_virtual_destructor 29761: : public __bool_constant<__has_virtual_destructor(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct alignment_of 29761: : public integral_constant 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct rank 29761: : public integral_constant { }; 29761: 29761: template 29761: struct rank<_Tp[_Size]> 29761: : public integral_constant::value> { }; 29761: 29761: template 29761: struct rank<_Tp[]> 29761: : public integral_constant::value> { }; 29761: 29761: 29761: template 29761: struct extent 29761: : public integral_constant { }; 29761: 29761: template 29761: struct extent<_Tp[_Size], 0> 29761: : public integral_constant { }; 29761: 29761: template 29761: struct extent<_Tp[_Size], _Uint> 29761: : public extent<_Tp, _Uint - 1>::type { }; 29761: 29761: template 29761: struct extent<_Tp[], 0> 29761: : public integral_constant { }; 29761: 29761: template 29761: struct extent<_Tp[], _Uint> 29761: : public extent<_Tp, _Uint - 1>::type { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_same 29761: : public __bool_constant<__is_same(_Tp, _Up)> 29761: { }; 29761: # 1491 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_base_of 29761: : public __bool_constant<__is_base_of(_Base, _Derived)> 29761: { }; 29761: 29761: 29761: template 29761: struct is_convertible 29761: : public __bool_constant<__is_convertible(_From, _To)> 29761: { }; 29761: # 1540 "/usr/include/c++/14/type_traits" 3 29761: template 29761: using __is_array_convertible 29761: = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; 29761: # 1600 "/usr/include/c++/14/type_traits" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++14-extensions" 29761: template 29761: struct __is_nothrow_new_constructible_impl 29761: : __bool_constant< 29761: noexcept(::new(std::declval()) _Tp(std::declval<_Args>()...)) 29761: > 29761: { }; 29761: 29761: template 29761: inline constexpr bool __is_nothrow_new_constructible 29761: = __and_, 29761: __is_nothrow_new_constructible_impl<_Tp, _Args...>>::value; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: template 29761: struct remove_const 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct remove_const<_Tp const> 29761: { using type = _Tp; }; 29761: 29761: 29761: template 29761: struct remove_volatile 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct remove_volatile<_Tp volatile> 29761: { using type = _Tp; }; 29761: 29761: 29761: 29761: template 29761: struct remove_cv 29761: { using type = __remove_cv(_Tp); }; 29761: # 1659 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct add_const 29761: { using type = _Tp const; }; 29761: 29761: 29761: template 29761: struct add_volatile 29761: { using type = _Tp volatile; }; 29761: 29761: 29761: template 29761: struct add_cv 29761: { using type = _Tp const volatile; }; 29761: 29761: 29761: 29761: template 29761: using remove_const_t = typename remove_const<_Tp>::type; 29761: 29761: 29761: template 29761: using remove_volatile_t = typename remove_volatile<_Tp>::type; 29761: 29761: 29761: template 29761: using remove_cv_t = typename remove_cv<_Tp>::type; 29761: 29761: 29761: template 29761: using add_const_t = typename add_const<_Tp>::type; 29761: 29761: 29761: template 29761: using add_volatile_t = typename add_volatile<_Tp>::type; 29761: 29761: 29761: template 29761: using add_cv_t = typename add_cv<_Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct remove_reference 29761: { using type = __remove_reference(_Tp); }; 29761: # 1721 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct add_lvalue_reference 29761: { using type = __add_lval_ref_t<_Tp>; }; 29761: 29761: 29761: template 29761: struct add_rvalue_reference 29761: { using type = __add_rval_ref_t<_Tp>; }; 29761: 29761: 29761: 29761: template 29761: using remove_reference_t = typename remove_reference<_Tp>::type; 29761: 29761: 29761: template 29761: using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; 29761: 29761: 29761: template 29761: using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __cv_selector; 29761: 29761: template 29761: struct __cv_selector<_Unqualified, false, false> 29761: { using __type = _Unqualified; }; 29761: 29761: template 29761: struct __cv_selector<_Unqualified, false, true> 29761: { using __type = volatile _Unqualified; }; 29761: 29761: template 29761: struct __cv_selector<_Unqualified, true, false> 29761: { using __type = const _Unqualified; }; 29761: 29761: template 29761: struct __cv_selector<_Unqualified, true, true> 29761: { using __type = const volatile _Unqualified; }; 29761: 29761: template::value, 29761: bool _IsVol = is_volatile<_Qualified>::value> 29761: class __match_cv_qualifiers 29761: { 29761: using __match = __cv_selector<_Unqualified, _IsConst, _IsVol>; 29761: 29761: public: 29761: using __type = typename __match::__type; 29761: }; 29761: 29761: 29761: template 29761: struct __make_unsigned 29761: { using __type = _Tp; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned char; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned char; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned short; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned int; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned long; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned long long; }; 29761: # 1834 "/usr/include/c++/14/type_traits" 3 29761: template::value, 29761: bool _IsEnum = __is_enum(_Tp)> 29761: class __make_unsigned_selector; 29761: 29761: template 29761: class __make_unsigned_selector<_Tp, true, false> 29761: { 29761: using __unsigned_type 29761: = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; 29761: 29761: public: 29761: using __type 29761: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 29761: }; 29761: 29761: class __make_unsigned_selector_base 29761: { 29761: protected: 29761: template struct _List { }; 29761: 29761: template 29761: struct _List<_Tp, _Up...> : _List<_Up...> 29761: { static constexpr size_t __size = sizeof(_Tp); }; 29761: 29761: template 29761: struct __select; 29761: 29761: template 29761: struct __select<_Sz, _List<_Uint, _UInts...>, true> 29761: { using __type = _Uint; }; 29761: 29761: template 29761: struct __select<_Sz, _List<_Uint, _UInts...>, false> 29761: : __select<_Sz, _List<_UInts...>> 29761: { }; 29761: }; 29761: 29761: 29761: template 29761: class __make_unsigned_selector<_Tp, false, true> 29761: : __make_unsigned_selector_base 29761: { 29761: 29761: using _UInts = _List; 29761: 29761: using __unsigned_type = typename __select::__type; 29761: 29761: public: 29761: using __type 29761: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct __make_unsigned 29761: { 29761: using __type 29761: = typename __make_unsigned_selector::__type; 29761: }; 29761: # 1908 "/usr/include/c++/14/type_traits" 3 29761: template<> 29761: struct __make_unsigned 29761: { 29761: using __type 29761: = typename __make_unsigned_selector::__type; 29761: }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { 29761: using __type 29761: = typename __make_unsigned_selector::__type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct make_unsigned 29761: { using type = typename __make_unsigned_selector<_Tp>::__type; }; 29761: 29761: 29761: template<> struct make_unsigned; 29761: template<> struct make_unsigned; 29761: template<> struct make_unsigned; 29761: template<> struct make_unsigned; 29761: 29761: 29761: 29761: 29761: template 29761: struct __make_signed 29761: { using __type = _Tp; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed char; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed char; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed short; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed int; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed long; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed long long; }; 29761: # 1994 "/usr/include/c++/14/type_traits" 3 29761: template::value, 29761: bool _IsEnum = __is_enum(_Tp)> 29761: class __make_signed_selector; 29761: 29761: template 29761: class __make_signed_selector<_Tp, true, false> 29761: { 29761: using __signed_type 29761: = typename __make_signed<__remove_cv_t<_Tp>>::__type; 29761: 29761: public: 29761: using __type 29761: = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; 29761: }; 29761: 29761: 29761: template 29761: class __make_signed_selector<_Tp, false, true> 29761: { 29761: using __unsigned_type = typename __make_unsigned_selector<_Tp>::__type; 29761: 29761: public: 29761: using __type = typename __make_signed_selector<__unsigned_type>::__type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct __make_signed 29761: { 29761: using __type 29761: = typename __make_signed_selector::__type; 29761: }; 29761: # 2040 "/usr/include/c++/14/type_traits" 3 29761: template<> 29761: struct __make_signed 29761: { 29761: using __type 29761: = typename __make_signed_selector::__type; 29761: }; 29761: 29761: template<> 29761: struct __make_signed 29761: { 29761: using __type 29761: = typename __make_signed_selector::__type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct make_signed 29761: { using type = typename __make_signed_selector<_Tp>::__type; }; 29761: 29761: 29761: template<> struct make_signed; 29761: template<> struct make_signed; 29761: template<> struct make_signed; 29761: template<> struct make_signed; 29761: 29761: 29761: 29761: template 29761: using make_signed_t = typename make_signed<_Tp>::type; 29761: 29761: 29761: template 29761: using make_unsigned_t = typename make_unsigned<_Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct remove_extent 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct remove_extent<_Tp[_Size]> 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct remove_extent<_Tp[]> 29761: { using type = _Tp; }; 29761: 29761: 29761: template 29761: struct remove_all_extents 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct remove_all_extents<_Tp[_Size]> 29761: { using type = typename remove_all_extents<_Tp>::type; }; 29761: 29761: template 29761: struct remove_all_extents<_Tp[]> 29761: { using type = typename remove_all_extents<_Tp>::type; }; 29761: 29761: 29761: 29761: template 29761: using remove_extent_t = typename remove_extent<_Tp>::type; 29761: 29761: 29761: template 29761: using remove_all_extents_t = typename remove_all_extents<_Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct remove_pointer 29761: { using type = __remove_pointer(_Tp); }; 29761: # 2139 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct __add_pointer_helper 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct __add_pointer_helper<_Tp, __void_t<_Tp*>> 29761: { using type = _Tp*; }; 29761: 29761: 29761: template 29761: struct add_pointer 29761: : public __add_pointer_helper<_Tp> 29761: { }; 29761: 29761: template 29761: struct add_pointer<_Tp&> 29761: { using type = _Tp*; }; 29761: 29761: template 29761: struct add_pointer<_Tp&&> 29761: { using type = _Tp*; }; 29761: 29761: 29761: 29761: template 29761: using remove_pointer_t = typename remove_pointer<_Tp>::type; 29761: 29761: 29761: template 29761: using add_pointer_t = typename add_pointer<_Tp>::type; 29761: 29761: 29761: template 29761: struct __aligned_storage_msa 29761: { 29761: union __type 29761: { 29761: unsigned char __data[_Len]; 29761: struct __attribute__((__aligned__)) { } __align; 29761: }; 29761: }; 29761: # 2194 "/usr/include/c++/14/type_traits" 3 29761: template::__type)> 29761: struct 29761: 29761: aligned_storage 29761: { 29761: union type 29761: { 29761: unsigned char __data[_Len]; 29761: struct __attribute__((__aligned__((_Align)))) { } __align; 29761: }; 29761: }; 29761: 29761: template 29761: struct __strictest_alignment 29761: { 29761: static const size_t _S_alignment = 0; 29761: static const size_t _S_size = 0; 29761: }; 29761: 29761: template 29761: struct __strictest_alignment<_Tp, _Types...> 29761: { 29761: static const size_t _S_alignment = 29761: alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment 29761: ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; 29761: static const size_t _S_size = 29761: sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size 29761: ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; 29761: }; 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: # 2240 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct 29761: 29761: aligned_union 29761: { 29761: private: 29761: static_assert(sizeof...(_Types) != 0, "At least one type is required"); 29761: 29761: using __strictest = __strictest_alignment<_Types...>; 29761: static const size_t _S_len = _Len > __strictest::_S_size 29761: ? _Len : __strictest::_S_size; 29761: public: 29761: 29761: static const size_t alignment_value = __strictest::_S_alignment; 29761: 29761: using type = typename aligned_storage<_S_len, alignment_value>::type; 29761: }; 29761: 29761: template 29761: const size_t aligned_union<_Len, _Types...>::alignment_value; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __decay_selector 29761: : __conditional_t::value, 29761: remove_cv<_Up>, 29761: add_pointer<_Up>> 29761: { }; 29761: 29761: template 29761: struct __decay_selector<_Up[_Nm]> 29761: { using type = _Up*; }; 29761: 29761: template 29761: struct __decay_selector<_Up[]> 29761: { using type = _Up*; }; 29761: 29761: 29761: 29761: 29761: template 29761: struct decay 29761: { using type = typename __decay_selector<_Tp>::type; }; 29761: 29761: template 29761: struct decay<_Tp&> 29761: { using type = typename __decay_selector<_Tp>::type; }; 29761: 29761: template 29761: struct decay<_Tp&&> 29761: { using type = typename __decay_selector<_Tp>::type; }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __strip_reference_wrapper 29761: { 29761: using __type = _Tp; 29761: }; 29761: 29761: template 29761: struct __strip_reference_wrapper > 29761: { 29761: using __type = _Tp&; 29761: }; 29761: 29761: 29761: template 29761: using __decay_t = typename decay<_Tp>::type; 29761: 29761: template 29761: using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: using _Require = __enable_if_t<__and_<_Cond...>::value>; 29761: 29761: 29761: template 29761: using __remove_cvref_t 29761: = typename remove_cv::type>::type; 29761: 29761: 29761: 29761: 29761: template 29761: struct conditional 29761: { using type = _Iftrue; }; 29761: 29761: 29761: template 29761: struct conditional 29761: { using type = _Iffalse; }; 29761: 29761: 29761: template 29761: struct common_type; 29761: # 2355 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct __success_type 29761: { using type = _Tp; }; 29761: 29761: struct __failure_type 29761: { }; 29761: 29761: struct __do_common_type_impl 29761: { 29761: template 29761: using __cond_t 29761: = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); 29761: 29761: 29761: 29761: template 29761: static __success_type<__decay_t<__cond_t<_Tp, _Up>>> 29761: _S_test(int); 29761: # 2382 "/usr/include/c++/14/type_traits" 3 29761: template 29761: static __failure_type 29761: _S_test_2(...); 29761: 29761: template 29761: static decltype(_S_test_2<_Tp, _Up>(0)) 29761: _S_test(...); 29761: }; 29761: 29761: 29761: template<> 29761: struct common_type<> 29761: { }; 29761: 29761: 29761: template 29761: struct common_type<_Tp0> 29761: : public common_type<_Tp0, _Tp0> 29761: { }; 29761: 29761: 29761: template, typename _Dp2 = __decay_t<_Tp2>> 29761: struct __common_type_impl 29761: { 29761: 29761: 29761: using type = common_type<_Dp1, _Dp2>; 29761: }; 29761: 29761: template 29761: struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> 29761: : private __do_common_type_impl 29761: { 29761: 29761: 29761: using type = decltype(_S_test<_Tp1, _Tp2>(0)); 29761: }; 29761: 29761: 29761: template 29761: struct common_type<_Tp1, _Tp2> 29761: : public __common_type_impl<_Tp1, _Tp2>::type 29761: { }; 29761: 29761: template 29761: struct __common_type_pack 29761: { }; 29761: 29761: template 29761: struct __common_type_fold; 29761: 29761: 29761: template 29761: struct common_type<_Tp1, _Tp2, _Rp...> 29761: : public __common_type_fold, 29761: __common_type_pack<_Rp...>> 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, 29761: __void_t> 29761: : public common_type 29761: { }; 29761: 29761: 29761: template 29761: struct __common_type_fold<_CTp, _Rp, void> 29761: { }; 29761: 29761: template 29761: struct __underlying_type_impl 29761: { 29761: using type = __underlying_type(_Tp); 29761: }; 29761: 29761: template 29761: struct __underlying_type_impl<_Tp, false> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct underlying_type 29761: : public __underlying_type_impl<_Tp> 29761: { }; 29761: 29761: 29761: template 29761: struct __declval_protector 29761: { 29761: static const bool __stop = false; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: auto declval() noexcept -> decltype(__declval<_Tp>(0)) 29761: { 29761: static_assert(__declval_protector<_Tp>::__stop, 29761: "declval() must not be used!"); 29761: return __declval<_Tp>(0); 29761: } 29761: 29761: 29761: template 29761: struct result_of; 29761: 29761: 29761: 29761: 29761: struct __invoke_memfun_ref { }; 29761: struct __invoke_memfun_deref { }; 29761: struct __invoke_memobj_ref { }; 29761: struct __invoke_memobj_deref { }; 29761: struct __invoke_other { }; 29761: 29761: 29761: template 29761: struct __result_of_success : __success_type<_Tp> 29761: { using __invoke_type = _Tag; }; 29761: 29761: 29761: struct __result_of_memfun_ref_impl 29761: { 29761: template 29761: static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) 29761: ), __invoke_memfun_ref> _S_test(int); 29761: 29761: template 29761: static __failure_type _S_test(...); 29761: }; 29761: 29761: template 29761: struct __result_of_memfun_ref 29761: : private __result_of_memfun_ref_impl 29761: { 29761: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 29761: }; 29761: 29761: 29761: struct __result_of_memfun_deref_impl 29761: { 29761: template 29761: static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) 29761: ), __invoke_memfun_deref> _S_test(int); 29761: 29761: template 29761: static __failure_type _S_test(...); 29761: }; 29761: 29761: template 29761: struct __result_of_memfun_deref 29761: : private __result_of_memfun_deref_impl 29761: { 29761: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 29761: }; 29761: 29761: 29761: struct __result_of_memobj_ref_impl 29761: { 29761: template 29761: static __result_of_success().*std::declval<_Fp>() 29761: ), __invoke_memobj_ref> _S_test(int); 29761: 29761: template 29761: static __failure_type _S_test(...); 29761: }; 29761: 29761: template 29761: struct __result_of_memobj_ref 29761: : private __result_of_memobj_ref_impl 29761: { 29761: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 29761: }; 29761: 29761: 29761: struct __result_of_memobj_deref_impl 29761: { 29761: template 29761: static __result_of_success()).*std::declval<_Fp>() 29761: ), __invoke_memobj_deref> _S_test(int); 29761: 29761: template 29761: static __failure_type _S_test(...); 29761: }; 29761: 29761: template 29761: struct __result_of_memobj_deref 29761: : private __result_of_memobj_deref_impl 29761: { 29761: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 29761: }; 29761: 29761: template 29761: struct __result_of_memobj; 29761: 29761: template 29761: struct __result_of_memobj<_Res _Class::*, _Arg> 29761: { 29761: using _Argval = __remove_cvref_t<_Arg>; 29761: using _MemPtr = _Res _Class::*; 29761: using type = typename __conditional_t<__or_, 29761: is_base_of<_Class, _Argval>>::value, 29761: __result_of_memobj_ref<_MemPtr, _Arg>, 29761: __result_of_memobj_deref<_MemPtr, _Arg> 29761: >::type; 29761: }; 29761: 29761: template 29761: struct __result_of_memfun; 29761: 29761: template 29761: struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> 29761: { 29761: using _Argval = typename remove_reference<_Arg>::type; 29761: using _MemPtr = _Res _Class::*; 29761: using type = typename __conditional_t::value, 29761: __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, 29761: __result_of_memfun_deref<_MemPtr, _Arg, _Args...> 29761: >::type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: struct __inv_unwrap 29761: { 29761: using type = _Tp; 29761: }; 29761: 29761: template 29761: struct __inv_unwrap<_Tp, reference_wrapper<_Up>> 29761: { 29761: using type = _Up&; 29761: }; 29761: 29761: template 29761: struct __result_of_impl 29761: { 29761: using type = __failure_type; 29761: }; 29761: 29761: template 29761: struct __result_of_impl 29761: : public __result_of_memobj<__decay_t<_MemPtr>, 29761: typename __inv_unwrap<_Arg>::type> 29761: { }; 29761: 29761: template 29761: struct __result_of_impl 29761: : public __result_of_memfun<__decay_t<_MemPtr>, 29761: typename __inv_unwrap<_Arg>::type, _Args...> 29761: { }; 29761: 29761: 29761: struct __result_of_other_impl 29761: { 29761: template 29761: static __result_of_success()(std::declval<_Args>()...) 29761: ), __invoke_other> _S_test(int); 29761: 29761: template 29761: static __failure_type _S_test(...); 29761: }; 29761: 29761: template 29761: struct __result_of_impl 29761: : private __result_of_other_impl 29761: { 29761: using type = decltype(_S_test<_Functor, _ArgTypes...>(0)); 29761: }; 29761: 29761: 29761: template 29761: struct __invoke_result 29761: : public __result_of_impl< 29761: is_member_object_pointer< 29761: typename remove_reference<_Functor>::type 29761: >::value, 29761: is_member_function_pointer< 29761: typename remove_reference<_Functor>::type 29761: >::value, 29761: _Functor, _ArgTypes... 29761: >::type 29761: { }; 29761: 29761: 29761: template 29761: using __invoke_result_t = typename __invoke_result<_Fn, _Args...>::type; 29761: 29761: 29761: template 29761: struct result_of<_Functor(_ArgTypes...)> 29761: : public __invoke_result<_Functor, _ArgTypes...> 29761: { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: template::__type)> 29761: using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; 29761: 29761: template 29761: using aligned_union_t = typename aligned_union<_Len, _Types...>::type; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: template 29761: using decay_t = typename decay<_Tp>::type; 29761: 29761: 29761: template 29761: using enable_if_t = typename enable_if<_Cond, _Tp>::type; 29761: 29761: 29761: template 29761: using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; 29761: 29761: 29761: template 29761: using common_type_t = typename common_type<_Tp...>::type; 29761: 29761: 29761: template 29761: using underlying_type_t = typename underlying_type<_Tp>::type; 29761: 29761: 29761: template 29761: using result_of_t = typename result_of<_Tp>::type; 29761: 29761: 29761: 29761: 29761: template using void_t = void; 29761: # 2759 "/usr/include/c++/14/type_traits" 3 29761: template class _Op, typename... _Args> 29761: struct __detector 29761: { 29761: using type = _Default; 29761: using __is_detected = false_type; 29761: }; 29761: 29761: 29761: template class _Op, 29761: typename... _Args> 29761: struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> 29761: { 29761: using type = _Op<_Args...>; 29761: using __is_detected = true_type; 29761: }; 29761: 29761: template class _Op, 29761: typename... _Args> 29761: using __detected_or = __detector<_Default, void, _Op, _Args...>; 29761: 29761: 29761: 29761: template class _Op, 29761: typename... _Args> 29761: using __detected_or_t 29761: = typename __detected_or<_Default, _Op, _Args...>::type; 29761: # 2801 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct __is_swappable; 29761: 29761: template 29761: struct __is_nothrow_swappable; 29761: 29761: template 29761: struct __is_tuple_like_impl : false_type 29761: { }; 29761: 29761: 29761: template 29761: struct __is_tuple_like 29761: : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type 29761: { }; 29761: 29761: 29761: template 29761: 29761: inline 29761: _Require<__not_<__is_tuple_like<_Tp>>, 29761: is_move_constructible<_Tp>, 29761: is_move_assignable<_Tp>> 29761: swap(_Tp&, _Tp&) 29761: noexcept(__and_, 29761: is_nothrow_move_assignable<_Tp>>::value); 29761: 29761: template 29761: 29761: inline 29761: __enable_if_t<__is_swappable<_Tp>::value> 29761: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 29761: noexcept(__is_nothrow_swappable<_Tp>::value); 29761: 29761: 29761: namespace __swappable_details { 29761: using std::swap; 29761: 29761: struct __do_is_swappable_impl 29761: { 29761: template(), std::declval<_Tp&>()))> 29761: static true_type __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: struct __do_is_nothrow_swappable_impl 29761: { 29761: template 29761: static __bool_constant< 29761: noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) 29761: > __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: } 29761: 29761: template 29761: struct __is_swappable_impl 29761: : public __swappable_details::__do_is_swappable_impl 29761: { 29761: using type = decltype(__test<_Tp>(0)); 29761: }; 29761: 29761: template 29761: struct __is_nothrow_swappable_impl 29761: : public __swappable_details::__do_is_nothrow_swappable_impl 29761: { 29761: using type = decltype(__test<_Tp>(0)); 29761: }; 29761: 29761: template 29761: struct __is_swappable 29761: : public __is_swappable_impl<_Tp>::type 29761: { }; 29761: 29761: template 29761: struct __is_nothrow_swappable 29761: : public __is_nothrow_swappable_impl<_Tp>::type 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_swappable 29761: : public __is_swappable_impl<_Tp>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_swappable 29761: : public __is_nothrow_swappable_impl<_Tp>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_swappable_v = 29761: is_swappable<_Tp>::value; 29761: 29761: 29761: template 29761: inline constexpr bool is_nothrow_swappable_v = 29761: is_nothrow_swappable<_Tp>::value; 29761: 29761: 29761: 29761: namespace __swappable_with_details { 29761: using std::swap; 29761: 29761: struct __do_is_swappable_with_impl 29761: { 29761: template(), std::declval<_Up>())), 29761: typename 29761: = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> 29761: static true_type __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: struct __do_is_nothrow_swappable_with_impl 29761: { 29761: template 29761: static __bool_constant< 29761: noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) 29761: && 29761: noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) 29761: > __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: } 29761: 29761: template 29761: struct __is_swappable_with_impl 29761: : public __swappable_with_details::__do_is_swappable_with_impl 29761: { 29761: using type = decltype(__test<_Tp, _Up>(0)); 29761: }; 29761: 29761: 29761: template 29761: struct __is_swappable_with_impl<_Tp&, _Tp&> 29761: : public __swappable_details::__do_is_swappable_impl 29761: { 29761: using type = decltype(__test<_Tp&>(0)); 29761: }; 29761: 29761: template 29761: struct __is_nothrow_swappable_with_impl 29761: : public __swappable_with_details::__do_is_nothrow_swappable_with_impl 29761: { 29761: using type = decltype(__test<_Tp, _Up>(0)); 29761: }; 29761: 29761: 29761: template 29761: struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> 29761: : public __swappable_details::__do_is_nothrow_swappable_impl 29761: { 29761: using type = decltype(__test<_Tp&>(0)); 29761: }; 29761: 29761: 29761: 29761: template 29761: struct is_swappable_with 29761: : public __is_swappable_with_impl<_Tp, _Up>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "first template argument must be a complete class or an unbounded array"); 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 29761: "second template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_swappable_with 29761: : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "first template argument must be a complete class or an unbounded array"); 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 29761: "second template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_swappable_with_v = 29761: is_swappable_with<_Tp, _Up>::value; 29761: 29761: 29761: template 29761: inline constexpr bool is_nothrow_swappable_with_v = 29761: is_nothrow_swappable_with<_Tp, _Up>::value; 29761: # 3023 "/usr/include/c++/14/type_traits" 3 29761: template::value, typename = void> 29761: struct __is_invocable_impl 29761: : false_type 29761: { 29761: using __nothrow_conv = false_type; 29761: }; 29761: 29761: 29761: template 29761: struct __is_invocable_impl<_Result, _Ret, 29761: true, 29761: __void_t> 29761: : true_type 29761: { 29761: using __nothrow_conv = true_type; 29761: }; 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 29761: 29761: template 29761: struct __is_invocable_impl<_Result, _Ret, 29761: false, 29761: __void_t> 29761: { 29761: private: 29761: 29761: using _Res_t = typename _Result::type; 29761: 29761: 29761: 29761: static _Res_t _S_get() noexcept; 29761: 29761: 29761: template 29761: static void _S_conv(__type_identity_t<_Tp>) noexcept; 29761: 29761: 29761: template(_S_get())), 29761: typename = decltype(_S_conv<_Tp>(_S_get())), 29761: 29761: bool _Dangle = __reference_converts_from_temporary(_Tp, _Res_t) 29761: 29761: 29761: 29761: > 29761: static __bool_constant<_Nothrow && !_Dangle> 29761: _S_test(int); 29761: 29761: template 29761: static false_type 29761: _S_test(...); 29761: 29761: public: 29761: 29761: using type = decltype(_S_test<_Ret, true>(1)); 29761: 29761: 29761: using __nothrow_conv = decltype(_S_test<_Ret>(1)); 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: template 29761: struct __is_invocable 29761: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 29761: { }; 29761: 29761: template 29761: constexpr bool __call_is_nt(__invoke_memfun_ref) 29761: { 29761: using _Up = typename __inv_unwrap<_Tp>::type; 29761: return noexcept((std::declval<_Up>().*std::declval<_Fn>())( 29761: std::declval<_Args>()...)); 29761: } 29761: 29761: template 29761: constexpr bool __call_is_nt(__invoke_memfun_deref) 29761: { 29761: return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( 29761: std::declval<_Args>()...)); 29761: } 29761: 29761: template 29761: constexpr bool __call_is_nt(__invoke_memobj_ref) 29761: { 29761: using _Up = typename __inv_unwrap<_Tp>::type; 29761: return noexcept(std::declval<_Up>().*std::declval<_Fn>()); 29761: } 29761: 29761: template 29761: constexpr bool __call_is_nt(__invoke_memobj_deref) 29761: { 29761: return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); 29761: } 29761: 29761: template 29761: constexpr bool __call_is_nt(__invoke_other) 29761: { 29761: return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); 29761: } 29761: 29761: template 29761: struct __call_is_nothrow 29761: : __bool_constant< 29761: std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) 29761: > 29761: { }; 29761: 29761: template 29761: using __call_is_nothrow_ 29761: = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; 29761: 29761: 29761: template 29761: struct __is_nothrow_invocable 29761: : __and_<__is_invocable<_Fn, _Args...>, 29761: __call_is_nothrow_<_Fn, _Args...>>::type 29761: { }; 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 29761: struct __nonesuchbase {}; 29761: struct __nonesuch : private __nonesuchbase { 29761: ~__nonesuch() = delete; 29761: __nonesuch(__nonesuch const&) = delete; 29761: void operator=(__nonesuch const&) = delete; 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: template 29761: struct invoke_result 29761: : public __invoke_result<_Functor, _ArgTypes...> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), 29761: "_Functor must be a complete class or an unbounded array"); 29761: static_assert((std::__is_complete_or_unbounded( 29761: __type_identity<_ArgTypes>{}) && ...), 29761: "each argument type must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; 29761: 29761: 29761: template 29761: struct is_invocable 29761: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29761: "_Fn must be a complete class or an unbounded array"); 29761: static_assert((std::__is_complete_or_unbounded( 29761: __type_identity<_ArgTypes>{}) && ...), 29761: "each argument type must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_invocable_r 29761: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29761: "_Fn must be a complete class or an unbounded array"); 29761: static_assert((std::__is_complete_or_unbounded( 29761: __type_identity<_ArgTypes>{}) && ...), 29761: "each argument type must be a complete class or an unbounded array"); 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 29761: "_Ret must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_invocable 29761: : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, 29761: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29761: "_Fn must be a complete class or an unbounded array"); 29761: static_assert((std::__is_complete_or_unbounded( 29761: __type_identity<_ArgTypes>{}) && ...), 29761: "each argument type must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: using __is_nt_invocable_impl 29761: = typename __is_invocable_impl<_Result, _Ret>::__nothrow_conv; 29761: 29761: 29761: 29761: template 29761: struct is_nothrow_invocable_r 29761: : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, 29761: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29761: "_Fn must be a complete class or an unbounded array"); 29761: static_assert((std::__is_complete_or_unbounded( 29761: __type_identity<_ArgTypes>{}) && ...), 29761: "each argument type must be a complete class or an unbounded array"); 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 29761: "_Ret must be a complete class or an unbounded array"); 29761: }; 29761: # 3251 "/usr/include/c++/14/type_traits" 3 29761: template 29761: inline constexpr bool is_void_v = is_void<_Tp>::value; 29761: template 29761: inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; 29761: template 29761: inline constexpr bool is_integral_v = is_integral<_Tp>::value; 29761: template 29761: inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; 29761: 29761: 29761: template 29761: inline constexpr bool is_array_v = __is_array(_Tp); 29761: # 3272 "/usr/include/c++/14/type_traits" 3 29761: template 29761: inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; 29761: template 29761: inline constexpr bool is_lvalue_reference_v = false; 29761: template 29761: inline constexpr bool is_lvalue_reference_v<_Tp&> = true; 29761: template 29761: inline constexpr bool is_rvalue_reference_v = false; 29761: template 29761: inline constexpr bool is_rvalue_reference_v<_Tp&&> = true; 29761: 29761: 29761: template 29761: inline constexpr bool is_member_object_pointer_v = 29761: __is_member_object_pointer(_Tp); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_member_function_pointer_v = 29761: __is_member_function_pointer(_Tp); 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_enum_v = __is_enum(_Tp); 29761: template 29761: inline constexpr bool is_union_v = __is_union(_Tp); 29761: template 29761: inline constexpr bool is_class_v = __is_class(_Tp); 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_reference_v = __is_reference(_Tp); 29761: # 3323 "/usr/include/c++/14/type_traits" 3 29761: template 29761: inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; 29761: template 29761: inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; 29761: 29761: 29761: template 29761: inline constexpr bool is_object_v = __is_object(_Tp); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; 29761: template 29761: inline constexpr bool is_compound_v = !is_fundamental_v<_Tp>; 29761: 29761: 29761: template 29761: inline constexpr bool is_member_pointer_v = __is_member_pointer(_Tp); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_const_v = false; 29761: template 29761: inline constexpr bool is_const_v = true; 29761: 29761: 29761: template 29761: inline constexpr bool is_function_v = __is_function(_Tp); 29761: # 3366 "/usr/include/c++/14/type_traits" 3 29761: template 29761: inline constexpr bool is_volatile_v = false; 29761: template 29761: inline constexpr bool is_volatile_v = true; 29761: 29761: template 29761: inline constexpr bool is_trivial_v = __is_trivial(_Tp); 29761: template 29761: inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(_Tp); 29761: template 29761: inline constexpr bool is_standard_layout_v = __is_standard_layout(_Tp); 29761: template 29761: 29761: inline constexpr bool is_pod_v = __is_pod(_Tp); 29761: template 29761: [[__deprecated__]] 29761: inline constexpr bool is_literal_type_v = __is_literal_type(_Tp); 29761: template 29761: inline constexpr bool is_empty_v = __is_empty(_Tp); 29761: template 29761: inline constexpr bool is_polymorphic_v = __is_polymorphic(_Tp); 29761: template 29761: inline constexpr bool is_abstract_v = __is_abstract(_Tp); 29761: template 29761: inline constexpr bool is_final_v = __is_final(_Tp); 29761: 29761: template 29761: inline constexpr bool is_signed_v = is_signed<_Tp>::value; 29761: template 29761: inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; 29761: 29761: template 29761: inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); 29761: template 29761: inline constexpr bool is_default_constructible_v = __is_constructible(_Tp); 29761: template 29761: inline constexpr bool is_copy_constructible_v 29761: = __is_constructible(_Tp, __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_move_constructible_v 29761: = __is_constructible(_Tp, __add_rval_ref_t<_Tp>); 29761: 29761: template 29761: inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up); 29761: template 29761: inline constexpr bool is_copy_assignable_v 29761: = __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_move_assignable_v 29761: = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 29761: 29761: template 29761: inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; 29761: 29761: template 29761: inline constexpr bool is_trivially_constructible_v 29761: = __is_trivially_constructible(_Tp, _Args...); 29761: template 29761: inline constexpr bool is_trivially_default_constructible_v 29761: = __is_trivially_constructible(_Tp); 29761: template 29761: inline constexpr bool is_trivially_copy_constructible_v 29761: = __is_trivially_constructible(_Tp, __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_trivially_move_constructible_v 29761: = __is_trivially_constructible(_Tp, __add_rval_ref_t<_Tp>); 29761: 29761: template 29761: inline constexpr bool is_trivially_assignable_v 29761: = __is_trivially_assignable(_Tp, _Up); 29761: template 29761: inline constexpr bool is_trivially_copy_assignable_v 29761: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 29761: __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_trivially_move_assignable_v 29761: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 29761: __add_rval_ref_t<_Tp>); 29761: # 3461 "/usr/include/c++/14/type_traits" 3 29761: template 29761: inline constexpr bool is_trivially_destructible_v = 29761: is_trivially_destructible<_Tp>::value; 29761: 29761: 29761: template 29761: inline constexpr bool is_nothrow_constructible_v 29761: = __is_nothrow_constructible(_Tp, _Args...); 29761: template 29761: inline constexpr bool is_nothrow_default_constructible_v 29761: = __is_nothrow_constructible(_Tp); 29761: template 29761: inline constexpr bool is_nothrow_copy_constructible_v 29761: = __is_nothrow_constructible(_Tp, __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_nothrow_move_constructible_v 29761: = __is_nothrow_constructible(_Tp, __add_rval_ref_t<_Tp>); 29761: 29761: template 29761: inline constexpr bool is_nothrow_assignable_v 29761: = __is_nothrow_assignable(_Tp, _Up); 29761: template 29761: inline constexpr bool is_nothrow_copy_assignable_v 29761: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, 29761: __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_nothrow_move_assignable_v 29761: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 29761: 29761: template 29761: inline constexpr bool is_nothrow_destructible_v = 29761: is_nothrow_destructible<_Tp>::value; 29761: 29761: template 29761: inline constexpr bool has_virtual_destructor_v 29761: = __has_virtual_destructor(_Tp); 29761: 29761: template 29761: inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; 29761: 29761: template 29761: inline constexpr size_t rank_v = 0; 29761: template 29761: inline constexpr size_t rank_v<_Tp[_Size]> = 1 + rank_v<_Tp>; 29761: template 29761: inline constexpr size_t rank_v<_Tp[]> = 1 + rank_v<_Tp>; 29761: 29761: template 29761: inline constexpr size_t extent_v = 0; 29761: template 29761: inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size; 29761: template 29761: inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>; 29761: template 29761: inline constexpr size_t extent_v<_Tp[], 0> = 0; 29761: template 29761: inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>; 29761: 29761: 29761: template 29761: inline constexpr bool is_same_v = __is_same(_Tp, _Up); 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); 29761: 29761: template 29761: inline constexpr bool is_convertible_v = __is_convertible(_From, _To); 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; 29761: template 29761: inline constexpr bool is_nothrow_invocable_v 29761: = is_nothrow_invocable<_Fn, _Args...>::value; 29761: template 29761: inline constexpr bool is_invocable_r_v 29761: = is_invocable_r<_Ret, _Fn, _Args...>::value; 29761: template 29761: inline constexpr bool is_nothrow_invocable_r_v 29761: = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct has_unique_object_representations 29761: : bool_constant<__has_unique_object_representations( 29761: remove_cv_t> 29761: )> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: template 29761: inline constexpr bool has_unique_object_representations_v 29761: = has_unique_object_representations<_Tp>::value; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_aggregate 29761: : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<_Tp>); 29761: # 4017 "/usr/include/c++/14/type_traits" 3 29761: 29761: } 29761: # 38 "/usr/include/c++/14/bits/move.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr _Tp* 29761: __addressof(_Tp& __r) noexcept 29761: { return __builtin_addressof(__r); } 29761: # 68 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: [[__nodiscard__]] 29761: constexpr _Tp&& 29761: forward(typename std::remove_reference<_Tp>::type& __t) noexcept 29761: { return static_cast<_Tp&&>(__t); } 29761: # 81 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: [[__nodiscard__]] 29761: constexpr _Tp&& 29761: forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 29761: { 29761: static_assert(!std::is_lvalue_reference<_Tp>::value, 29761: "std::forward must not be used to convert an rvalue to an lvalue"); 29761: return static_cast<_Tp&&>(__t); 29761: } 29761: # 134 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: [[__nodiscard__]] 29761: constexpr typename std::remove_reference<_Tp>::type&& 29761: move(_Tp&& __t) noexcept 29761: { return static_cast::type&&>(__t); } 29761: 29761: 29761: template 29761: struct __move_if_noexcept_cond 29761: : public __and_<__not_>, 29761: is_copy_constructible<_Tp>>::type { }; 29761: # 155 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: [[__nodiscard__]] 29761: constexpr 29761: __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> 29761: move_if_noexcept(_Tp& __x) noexcept 29761: { return std::move(__x); } 29761: # 172 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr _Tp* 29761: addressof(_Tp& __r) noexcept 29761: { return std::__addressof(__r); } 29761: 29761: 29761: 29761: template 29761: const _Tp* addressof(const _Tp&&) = delete; 29761: 29761: 29761: template 29761: 29761: inline _Tp 29761: __exchange(_Tp& __obj, _Up&& __new_val) 29761: { 29761: _Tp __old_val = std::move(__obj); 29761: __obj = std::forward<_Up>(__new_val); 29761: return __old_val; 29761: } 29761: # 216 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: 29761: inline 29761: 29761: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 29761: is_move_constructible<_Tp>, 29761: is_move_assignable<_Tp>>::value>::type 29761: 29761: 29761: 29761: swap(_Tp& __a, _Tp& __b) 29761: noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value) 29761: 29761: { 29761: 29761: 29761: 29761: 29761: _Tp __tmp = std::move(__a); 29761: __a = std::move(__b); 29761: __b = std::move(__tmp); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline 29761: 29761: typename enable_if<__is_swappable<_Tp>::value>::type 29761: 29761: 29761: 29761: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 29761: noexcept(__is_nothrow_swappable<_Tp>::value) 29761: { 29761: for (size_t __n = 0; __n < _Nm; ++__n) 29761: swap(__a[__n], __b[__n]); 29761: } 29761: 29761: 29761: 29761: } 29761: # 40 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29761: # 49 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 50 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 81 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: enum memory_order : int 29761: { 29761: memory_order_relaxed, 29761: memory_order_consume, 29761: memory_order_acquire, 29761: memory_order_release, 29761: memory_order_acq_rel, 29761: memory_order_seq_cst 29761: }; 29761: 29761: 29761: 29761: enum __memory_order_modifier 29761: { 29761: __memory_order_mask = 0x0ffff, 29761: __memory_order_modifier_mask = 0xffff0000, 29761: __memory_order_hle_acquire = 0x10000, 29761: __memory_order_hle_release = 0x20000 29761: }; 29761: 29761: 29761: constexpr memory_order 29761: operator|(memory_order __m, __memory_order_modifier __mod) noexcept 29761: { 29761: return memory_order(int(__m) | int(__mod)); 29761: } 29761: 29761: constexpr memory_order 29761: operator&(memory_order __m, __memory_order_modifier __mod) noexcept 29761: { 29761: return memory_order(int(__m) & int(__mod)); 29761: } 29761: 29761: 29761: 29761: 29761: constexpr memory_order 29761: __cmpexch_failure_order2(memory_order __m) noexcept 29761: { 29761: return __m == memory_order_acq_rel ? memory_order_acquire 29761: : __m == memory_order_release ? memory_order_relaxed : __m; 29761: } 29761: 29761: constexpr memory_order 29761: __cmpexch_failure_order(memory_order __m) noexcept 29761: { 29761: return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) 29761: | __memory_order_modifier(__m & __memory_order_modifier_mask)); 29761: } 29761: 29761: constexpr bool 29761: __is_valid_cmpexch_failure_order(memory_order __m) noexcept 29761: { 29761: return (__m & __memory_order_mask) != memory_order_release 29761: && (__m & __memory_order_mask) != memory_order_acq_rel; 29761: } 29761: 29761: 29761: template 29761: struct __atomic_base; 29761: 29761: 29761: 29761: inline __attribute__((__always_inline__)) void 29761: atomic_thread_fence(memory_order __m) noexcept 29761: { __atomic_thread_fence(int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: atomic_signal_fence(memory_order __m) noexcept 29761: { __atomic_signal_fence(int(__m)); } 29761: 29761: 29761: template 29761: inline _Tp 29761: kill_dependency(_Tp __y) noexcept 29761: { 29761: _Tp __ret(__y); 29761: return __ret; 29761: } 29761: # 171 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: template 29761: struct atomic; 29761: 29761: template 29761: struct atomic<_Tp*>; 29761: 29761: 29761: 29761: typedef bool __atomic_flag_data_type; 29761: # 196 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: extern "C" { 29761: 29761: struct __atomic_flag_base 29761: { 29761: __atomic_flag_data_type _M_i ; 29761: }; 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct atomic_flag : public __atomic_flag_base 29761: { 29761: atomic_flag() noexcept = default; 29761: ~atomic_flag() noexcept = default; 29761: atomic_flag(const atomic_flag&) = delete; 29761: atomic_flag& operator=(const atomic_flag&) = delete; 29761: atomic_flag& operator=(const atomic_flag&) volatile = delete; 29761: 29761: 29761: constexpr atomic_flag(bool __i) noexcept 29761: : __atomic_flag_base{ _S_init(__i) } 29761: { } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: test_and_set(memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return __atomic_test_and_set (&_M_i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return __atomic_test_and_set (&_M_i, int(__m)); 29761: } 29761: # 280 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: inline __attribute__((__always_inline__)) void 29761: clear(memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_clear (&_M_i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: clear(memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_clear (&_M_i, int(__m)); 29761: } 29761: 29761: private: 29761: static constexpr __atomic_flag_data_type 29761: _S_init(bool __i) 29761: { return __i ? 1 : 0; } 29761: }; 29761: # 336 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: template 29761: struct __atomic_base 29761: { 29761: using value_type = _ITp; 29761: using difference_type = value_type; 29761: 29761: private: 29761: typedef _ITp __int_type; 29761: 29761: static constexpr int _S_alignment = 29761: sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); 29761: 29761: alignas(_S_alignment) __int_type _M_i ; 29761: 29761: public: 29761: __atomic_base() noexcept = default; 29761: ~__atomic_base() noexcept = default; 29761: __atomic_base(const __atomic_base&) = delete; 29761: __atomic_base& operator=(const __atomic_base&) = delete; 29761: __atomic_base& operator=(const __atomic_base&) volatile = delete; 29761: 29761: 29761: constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } 29761: 29761: operator __int_type() const noexcept 29761: { return load(); } 29761: 29761: operator __int_type() const volatile noexcept 29761: { return load(); } 29761: 29761: __int_type 29761: operator=(__int_type __i) noexcept 29761: { 29761: store(__i); 29761: return __i; 29761: } 29761: 29761: __int_type 29761: operator=(__int_type __i) volatile noexcept 29761: { 29761: store(__i); 29761: return __i; 29761: } 29761: 29761: __int_type 29761: operator++(int) noexcept 29761: { return fetch_add(1); } 29761: 29761: __int_type 29761: operator++(int) volatile noexcept 29761: { return fetch_add(1); } 29761: 29761: __int_type 29761: operator--(int) noexcept 29761: { return fetch_sub(1); } 29761: 29761: __int_type 29761: operator--(int) volatile noexcept 29761: { return fetch_sub(1); } 29761: 29761: __int_type 29761: operator++() noexcept 29761: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator++() volatile noexcept 29761: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator--() noexcept 29761: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator--() volatile noexcept 29761: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator+=(__int_type __i) noexcept 29761: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator+=(__int_type __i) volatile noexcept 29761: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator-=(__int_type __i) noexcept 29761: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator-=(__int_type __i) volatile noexcept 29761: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator&=(__int_type __i) noexcept 29761: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator&=(__int_type __i) volatile noexcept 29761: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator|=(__int_type __i) noexcept 29761: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator|=(__int_type __i) volatile noexcept 29761: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator^=(__int_type __i) noexcept 29761: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator^=(__int_type __i) volatile noexcept 29761: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: bool 29761: is_lock_free() const noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_i), 29761: reinterpret_cast(-_S_alignment)); 29761: } 29761: 29761: bool 29761: is_lock_free() const volatile noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_i), 29761: reinterpret_cast(-_S_alignment)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_store_n(&_M_i, __i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: store(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_store_n(&_M_i, __i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: load(memory_order __m = memory_order_seq_cst) const noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_load_n(&_M_i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_load_n(&_M_i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: exchange(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return __atomic_exchange_n(&_M_i, __i, int(__m)); 29761: } 29761: 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: exchange(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return __atomic_exchange_n(&_M_i, __i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29761: memory_order __m1, memory_order __m2) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return compare_exchange_weak(__i1, __i2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return compare_exchange_weak(__i1, __i2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29761: memory_order __m1, memory_order __m2) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return compare_exchange_strong(__i1, __i2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return compare_exchange_strong(__i1, __i2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: # 628 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_add(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_add(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_sub(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_sub(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_and(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_and(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_or(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_or(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_xor(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_xor(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __atomic_base<_PTp*> 29761: { 29761: private: 29761: typedef _PTp* __pointer_type; 29761: 29761: __pointer_type _M_p ; 29761: 29761: 29761: constexpr ptrdiff_t 29761: _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } 29761: 29761: constexpr ptrdiff_t 29761: _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } 29761: 29761: public: 29761: __atomic_base() noexcept = default; 29761: ~__atomic_base() noexcept = default; 29761: __atomic_base(const __atomic_base&) = delete; 29761: __atomic_base& operator=(const __atomic_base&) = delete; 29761: __atomic_base& operator=(const __atomic_base&) volatile = delete; 29761: 29761: 29761: constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } 29761: 29761: operator __pointer_type() const noexcept 29761: { return load(); } 29761: 29761: operator __pointer_type() const volatile noexcept 29761: { return load(); } 29761: 29761: __pointer_type 29761: operator=(__pointer_type __p) noexcept 29761: { 29761: store(__p); 29761: return __p; 29761: } 29761: 29761: __pointer_type 29761: operator=(__pointer_type __p) volatile noexcept 29761: { 29761: store(__p); 29761: return __p; 29761: } 29761: 29761: __pointer_type 29761: operator++(int) noexcept 29761: { return fetch_add(1); } 29761: 29761: __pointer_type 29761: operator++(int) volatile noexcept 29761: { return fetch_add(1); } 29761: 29761: __pointer_type 29761: operator--(int) noexcept 29761: { return fetch_sub(1); } 29761: 29761: __pointer_type 29761: operator--(int) volatile noexcept 29761: { return fetch_sub(1); } 29761: 29761: __pointer_type 29761: operator++() noexcept 29761: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator++() volatile noexcept 29761: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator--() noexcept 29761: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator--() volatile noexcept 29761: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator+=(ptrdiff_t __d) noexcept 29761: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator+=(ptrdiff_t __d) volatile noexcept 29761: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator-=(ptrdiff_t __d) noexcept 29761: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator-=(ptrdiff_t __d) volatile noexcept 29761: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 29761: int(memory_order_seq_cst)); } 29761: 29761: bool 29761: is_lock_free() const noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_p), 29761: reinterpret_cast(-__alignof(_M_p))); 29761: } 29761: 29761: bool 29761: is_lock_free() const volatile noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_p), 29761: reinterpret_cast(-__alignof(_M_p))); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: store(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_store_n(&_M_p, __p, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: store(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_store_n(&_M_p, __p, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: load(memory_order __m = memory_order_seq_cst) const noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_load_n(&_M_p, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_load_n(&_M_p, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: exchange(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return __atomic_exchange_n(&_M_p, __p, int(__m)); 29761: } 29761: 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: exchange(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return __atomic_exchange_n(&_M_p, __p, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 29761: int(__m1), int(__m2)); 29761: } 29761: # 931 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: fetch_add(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: fetch_add(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: fetch_sub(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: fetch_sub(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 29761: }; 29761: 29761: namespace __atomic_impl 29761: { 29761: 29761: 29761: template 29761: constexpr bool 29761: __maybe_has_padding() 29761: { 29761: 29761: 29761: 29761: return !__has_unique_object_representations(_Tp) 29761: && !is_same<_Tp, float>::value && !is_same<_Tp, double>::value; 29761: 29761: 29761: 29761: } 29761: 29761: template 29761: inline __attribute__((__always_inline__)) constexpr _Tp* 29761: __clear_padding(_Tp& __val) noexcept 29761: { 29761: auto* __ptr = std::__addressof(__val); 29761: 29761: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 29761: __builtin_clear_padding(__ptr); 29761: 29761: return __ptr; 29761: } 29761: 29761: 29761: template 29761: using _Val = typename remove_volatile<_Tp>::type; 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: 29761: template 29761: inline __attribute__((__always_inline__)) bool 29761: __compare_exchange(_Tp& __val, _Val<_Tp>& __e, _Val<_Tp>& __i, 29761: bool __is_weak, 29761: memory_order __s, memory_order __f) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: using _Vp = _Val<_Tp>; 29761: _Tp* const __pval = std::__addressof(__val); 29761: 29761: if constexpr (!__atomic_impl::__maybe_has_padding<_Vp>()) 29761: { 29761: return __atomic_compare_exchange(__pval, std::__addressof(__e), 29761: std::__addressof(__i), __is_weak, 29761: int(__s), int(__f)); 29761: } 29761: else if constexpr (!_AtomicRef) 29761: { 29761: 29761: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 29761: 29761: _Vp __exp = __e; 29761: 29761: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 29761: 29761: 29761: 29761: if (__atomic_compare_exchange(__pval, __pexp, __pi, 29761: __is_weak, int(__s), int(__f))) 29761: return true; 29761: 29761: __builtin_memcpy(std::__addressof(__e), __pexp, sizeof(_Vp)); 29761: return false; 29761: } 29761: else 29761: { 29761: 29761: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 29761: 29761: 29761: _Vp __exp = __e; 29761: 29761: 29761: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 29761: # 1045 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: while (true) 29761: { 29761: 29761: _Vp __orig = __exp; 29761: 29761: if (__atomic_compare_exchange(__pval, __pexp, __pi, 29761: __is_weak, int(__s), int(__f))) 29761: return true; 29761: 29761: 29761: _Vp __curr = __exp; 29761: 29761: 29761: if (__builtin_memcmp(__atomic_impl::__clear_padding(__orig), 29761: __atomic_impl::__clear_padding(__curr), 29761: sizeof(_Vp))) 29761: { 29761: 29761: __builtin_memcpy(std::__addressof(__e), __pexp, 29761: sizeof(_Vp)); 29761: return false; 29761: } 29761: } 29761: } 29761: } 29761: #pragma GCC diagnostic pop 29761: } 29761: # 2065 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: 29761: } 29761: # 51 "/usr/include/c++/14/atomic" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct atomic; 29761: 29761: 29761: 29761: template<> 29761: struct atomic 29761: { 29761: using value_type = bool; 29761: 29761: private: 29761: __atomic_base _M_base; 29761: 29761: public: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(bool __i) noexcept : _M_base(__i) { } 29761: 29761: bool 29761: operator=(bool __i) noexcept 29761: { return _M_base.operator=(__i); } 29761: 29761: bool 29761: operator=(bool __i) volatile noexcept 29761: { return _M_base.operator=(__i); } 29761: 29761: operator bool() const noexcept 29761: { return _M_base.load(); } 29761: 29761: operator bool() const volatile noexcept 29761: { return _M_base.load(); } 29761: 29761: bool 29761: is_lock_free() const noexcept { return _M_base.is_lock_free(); } 29761: 29761: bool 29761: is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: 29761: void 29761: store(bool __i, memory_order __m = memory_order_seq_cst) noexcept 29761: { _M_base.store(__i, __m); } 29761: 29761: void 29761: store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { _M_base.store(__i, __m); } 29761: 29761: bool 29761: load(memory_order __m = memory_order_seq_cst) const noexcept 29761: { return _M_base.load(__m); } 29761: 29761: bool 29761: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29761: { return _M_base.load(__m); } 29761: 29761: bool 29761: exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept 29761: { return _M_base.exchange(__i, __m); } 29761: 29761: bool 29761: exchange(bool __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return _M_base.exchange(__i, __m); } 29761: 29761: bool 29761: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_weak(bool& __i1, bool __i2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 29761: 29761: bool 29761: compare_exchange_weak(bool& __i1, bool __i2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 29761: 29761: bool 29761: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_strong(bool& __i1, bool __i2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 29761: 29761: bool 29761: compare_exchange_strong(bool& __i1, bool __i2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 29761: # 187 "/usr/include/c++/14/atomic" 3 29761: }; 29761: # 202 "/usr/include/c++/14/atomic" 3 29761: template 29761: struct atomic 29761: { 29761: using value_type = _Tp; 29761: 29761: private: 29761: 29761: static constexpr int _S_min_alignment 29761: = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 29761: ? 0 : sizeof(_Tp); 29761: 29761: static constexpr int _S_alignment 29761: = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); 29761: 29761: alignas(_S_alignment) _Tp _M_i ; 29761: 29761: static_assert(__is_trivially_copyable(_Tp), 29761: "std::atomic requires a trivially copyable type"); 29761: 29761: static_assert(sizeof(_Tp) > 0, 29761: "Incomplete or zero-sized types are not supported"); 29761: # 231 "/usr/include/c++/14/atomic" 3 29761: public: 29761: atomic() = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(_Tp __i) noexcept : _M_i(__i) 29761: { 29761: 29761: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 29761: __builtin_clear_padding(std::__addressof(_M_i)); 29761: 29761: } 29761: 29761: operator _Tp() const noexcept 29761: { return load(); } 29761: 29761: operator _Tp() const volatile noexcept 29761: { return load(); } 29761: 29761: _Tp 29761: operator=(_Tp __i) noexcept 29761: { store(__i); return __i; } 29761: 29761: _Tp 29761: operator=(_Tp __i) volatile noexcept 29761: { store(__i); return __i; } 29761: 29761: bool 29761: is_lock_free() const noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_i), 29761: reinterpret_cast(-_S_alignment)); 29761: } 29761: 29761: bool 29761: is_lock_free() const volatile noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_i), 29761: reinterpret_cast(-_S_alignment)); 29761: } 29761: 29761: 29761: static constexpr bool is_always_lock_free 29761: = __atomic_always_lock_free(sizeof(_M_i), 0); 29761: 29761: 29761: void 29761: store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: __atomic_store(std::__addressof(_M_i), 29761: __atomic_impl::__clear_padding(__i), 29761: int(__m)); 29761: } 29761: 29761: void 29761: store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: __atomic_store(std::__addressof(_M_i), 29761: __atomic_impl::__clear_padding(__i), 29761: int(__m)); 29761: } 29761: 29761: _Tp 29761: load(memory_order __m = memory_order_seq_cst) const noexcept 29761: { 29761: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29761: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29761: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 29761: return *__ptr; 29761: } 29761: 29761: _Tp 29761: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29761: { 29761: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29761: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29761: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 29761: return *__ptr; 29761: } 29761: 29761: _Tp 29761: exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29761: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29761: __atomic_exchange(std::__addressof(_M_i), 29761: __atomic_impl::__clear_padding(__i), 29761: __ptr, int(__m)); 29761: return *__ptr; 29761: } 29761: 29761: _Tp 29761: exchange(_Tp __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29761: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29761: __atomic_exchange(std::__addressof(_M_i), 29761: __atomic_impl::__clear_padding(__i), 29761: __ptr, int(__m)); 29761: return *__ptr; 29761: } 29761: 29761: bool 29761: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 29761: memory_order __f) noexcept 29761: { 29761: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 29761: __s, __f); 29761: } 29761: 29761: bool 29761: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 29761: memory_order __f) volatile noexcept 29761: { 29761: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 29761: __s, __f); 29761: } 29761: 29761: bool 29761: compare_exchange_weak(_Tp& __e, _Tp __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return compare_exchange_weak(__e, __i, __m, 29761: __cmpexch_failure_order(__m)); } 29761: 29761: bool 29761: compare_exchange_weak(_Tp& __e, _Tp __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return compare_exchange_weak(__e, __i, __m, 29761: __cmpexch_failure_order(__m)); } 29761: 29761: bool 29761: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 29761: memory_order __f) noexcept 29761: { 29761: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 29761: __s, __f); 29761: } 29761: 29761: bool 29761: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 29761: memory_order __f) volatile noexcept 29761: { 29761: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 29761: __s, __f); 29761: } 29761: 29761: bool 29761: compare_exchange_strong(_Tp& __e, _Tp __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return compare_exchange_strong(__e, __i, __m, 29761: __cmpexch_failure_order(__m)); } 29761: 29761: bool 29761: compare_exchange_strong(_Tp& __e, _Tp __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return compare_exchange_strong(__e, __i, __m, 29761: __cmpexch_failure_order(__m)); } 29761: # 413 "/usr/include/c++/14/atomic" 3 29761: }; 29761: 29761: 29761: 29761: template 29761: struct atomic<_Tp*> 29761: { 29761: using value_type = _Tp*; 29761: using difference_type = ptrdiff_t; 29761: 29761: typedef _Tp* __pointer_type; 29761: typedef __atomic_base<_Tp*> __base_type; 29761: __base_type _M_b; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } 29761: 29761: operator __pointer_type() const noexcept 29761: { return __pointer_type(_M_b); } 29761: 29761: operator __pointer_type() const volatile noexcept 29761: { return __pointer_type(_M_b); } 29761: 29761: __pointer_type 29761: operator=(__pointer_type __p) noexcept 29761: { return _M_b.operator=(__p); } 29761: 29761: __pointer_type 29761: operator=(__pointer_type __p) volatile noexcept 29761: { return _M_b.operator=(__p); } 29761: 29761: __pointer_type 29761: operator++(int) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b++; 29761: } 29761: 29761: __pointer_type 29761: operator++(int) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b++; 29761: } 29761: 29761: __pointer_type 29761: operator--(int) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b--; 29761: } 29761: 29761: __pointer_type 29761: operator--(int) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b--; 29761: } 29761: 29761: __pointer_type 29761: operator++() noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return ++_M_b; 29761: } 29761: 29761: __pointer_type 29761: operator++() volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return ++_M_b; 29761: } 29761: 29761: __pointer_type 29761: operator--() noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return --_M_b; 29761: } 29761: 29761: __pointer_type 29761: operator--() volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return --_M_b; 29761: } 29761: 29761: __pointer_type 29761: operator+=(ptrdiff_t __d) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.operator+=(__d); 29761: } 29761: 29761: __pointer_type 29761: operator+=(ptrdiff_t __d) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.operator+=(__d); 29761: } 29761: 29761: __pointer_type 29761: operator-=(ptrdiff_t __d) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.operator-=(__d); 29761: } 29761: 29761: __pointer_type 29761: operator-=(ptrdiff_t __d) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.operator-=(__d); 29761: } 29761: 29761: bool 29761: is_lock_free() const noexcept 29761: { return _M_b.is_lock_free(); } 29761: 29761: bool 29761: is_lock_free() const volatile noexcept 29761: { return _M_b.is_lock_free(); } 29761: 29761: 29761: static constexpr bool is_always_lock_free 29761: = 2 == 2; 29761: 29761: 29761: void 29761: store(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return _M_b.store(__p, __m); } 29761: 29761: void 29761: store(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return _M_b.store(__p, __m); } 29761: 29761: __pointer_type 29761: load(memory_order __m = memory_order_seq_cst) const noexcept 29761: { return _M_b.load(__m); } 29761: 29761: __pointer_type 29761: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29761: { return _M_b.load(__m); } 29761: 29761: __pointer_type 29761: exchange(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return _M_b.exchange(__p, __m); } 29761: 29761: __pointer_type 29761: exchange(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return _M_b.exchange(__p, __m); } 29761: 29761: bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, memory_order __m2) noexcept 29761: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return compare_exchange_weak(__p1, __p2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return compare_exchange_weak(__p1, __p2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, memory_order __m2) noexcept 29761: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return _M_b.compare_exchange_strong(__p1, __p2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return _M_b.compare_exchange_strong(__p1, __p2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: # 668 "/usr/include/c++/14/atomic" 3 29761: __pointer_type 29761: fetch_add(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.fetch_add(__d, __m); 29761: } 29761: 29761: __pointer_type 29761: fetch_add(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.fetch_add(__d, __m); 29761: } 29761: 29761: __pointer_type 29761: fetch_sub(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.fetch_sub(__d, __m); 29761: } 29761: 29761: __pointer_type 29761: fetch_sub(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.fetch_sub(__d, __m); 29761: } 29761: }; 29761: 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef char __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef signed char __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept= default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef unsigned char __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept= default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef short __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef unsigned short __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef int __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef unsigned int __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef long __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef unsigned long __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef long long __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef unsigned long long __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef wchar_t __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: # 1013 "/usr/include/c++/14/atomic" 3 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef char16_t __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free 29761: = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef char32_t __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free 29761: = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: 29761: typedef atomic atomic_bool; 29761: 29761: 29761: typedef atomic atomic_char; 29761: 29761: 29761: typedef atomic atomic_schar; 29761: 29761: 29761: typedef atomic atomic_uchar; 29761: 29761: 29761: typedef atomic atomic_short; 29761: 29761: 29761: typedef atomic atomic_ushort; 29761: 29761: 29761: typedef atomic atomic_int; 29761: 29761: 29761: typedef atomic atomic_uint; 29761: 29761: 29761: typedef atomic atomic_long; 29761: 29761: 29761: typedef atomic atomic_ulong; 29761: 29761: 29761: typedef atomic atomic_llong; 29761: 29761: 29761: typedef atomic atomic_ullong; 29761: 29761: 29761: typedef atomic atomic_wchar_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef atomic atomic_char16_t; 29761: 29761: 29761: typedef atomic atomic_char32_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef atomic atomic_int8_t; 29761: 29761: 29761: typedef atomic atomic_uint8_t; 29761: 29761: 29761: typedef atomic atomic_int16_t; 29761: 29761: 29761: typedef atomic atomic_uint16_t; 29761: 29761: 29761: typedef atomic atomic_int32_t; 29761: 29761: 29761: typedef atomic atomic_uint32_t; 29761: 29761: 29761: typedef atomic atomic_int64_t; 29761: 29761: 29761: typedef atomic atomic_uint64_t; 29761: 29761: 29761: 29761: typedef atomic atomic_int_least8_t; 29761: 29761: 29761: typedef atomic atomic_uint_least8_t; 29761: 29761: 29761: typedef atomic atomic_int_least16_t; 29761: 29761: 29761: typedef atomic atomic_uint_least16_t; 29761: 29761: 29761: typedef atomic atomic_int_least32_t; 29761: 29761: 29761: typedef atomic atomic_uint_least32_t; 29761: 29761: 29761: typedef atomic atomic_int_least64_t; 29761: 29761: 29761: typedef atomic atomic_uint_least64_t; 29761: 29761: 29761: 29761: typedef atomic atomic_int_fast8_t; 29761: 29761: 29761: typedef atomic atomic_uint_fast8_t; 29761: 29761: 29761: typedef atomic atomic_int_fast16_t; 29761: 29761: 29761: typedef atomic atomic_uint_fast16_t; 29761: 29761: 29761: typedef atomic atomic_int_fast32_t; 29761: 29761: 29761: typedef atomic atomic_uint_fast32_t; 29761: 29761: 29761: typedef atomic atomic_int_fast64_t; 29761: 29761: 29761: typedef atomic atomic_uint_fast64_t; 29761: 29761: 29761: 29761: typedef atomic atomic_intptr_t; 29761: 29761: 29761: typedef atomic atomic_uintptr_t; 29761: 29761: 29761: typedef atomic atomic_size_t; 29761: 29761: 29761: typedef atomic atomic_ptrdiff_t; 29761: 29761: 29761: typedef atomic atomic_intmax_t; 29761: 29761: 29761: typedef atomic atomic_uintmax_t; 29761: 29761: 29761: inline bool 29761: atomic_flag_test_and_set_explicit(atomic_flag* __a, 29761: memory_order __m) noexcept 29761: { return __a->test_and_set(__m); } 29761: 29761: inline bool 29761: atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, 29761: memory_order __m) noexcept 29761: { return __a->test_and_set(__m); } 29761: # 1239 "/usr/include/c++/14/atomic" 3 29761: inline void 29761: atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept 29761: { __a->clear(__m); } 29761: 29761: inline void 29761: atomic_flag_clear_explicit(volatile atomic_flag* __a, 29761: memory_order __m) noexcept 29761: { __a->clear(__m); } 29761: 29761: inline bool 29761: atomic_flag_test_and_set(atomic_flag* __a) noexcept 29761: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 29761: 29761: inline bool 29761: atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept 29761: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 29761: 29761: inline void 29761: atomic_flag_clear(atomic_flag* __a) noexcept 29761: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 29761: 29761: inline void 29761: atomic_flag_clear(volatile atomic_flag* __a) noexcept 29761: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 29761: # 1286 "/usr/include/c++/14/atomic" 3 29761: template 29761: using __atomic_val_t = __type_identity_t<_Tp>; 29761: template 29761: using __atomic_diff_t = typename atomic<_Tp>::difference_type; 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: atomic_is_lock_free(const atomic<_ITp>* __a) noexcept 29761: { return __a->is_lock_free(); } 29761: 29761: template 29761: inline bool 29761: atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept 29761: { return __a->is_lock_free(); } 29761: 29761: template 29761: inline void 29761: atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29761: { __a->store(__i, memory_order_relaxed); } 29761: 29761: template 29761: inline void 29761: atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29761: { __a->store(__i, memory_order_relaxed); } 29761: 29761: template 29761: inline void 29761: atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { __a->store(__i, __m); } 29761: 29761: template 29761: inline void 29761: atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { __a->store(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept 29761: { return __a->load(__m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_load_explicit(const volatile atomic<_ITp>* __a, 29761: memory_order __m) noexcept 29761: { return __a->load(__m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->exchange(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_exchange_explicit(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->exchange(__i, __m); } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 29761: 29761: 29761: template 29761: inline void 29761: atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29761: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline void 29761: atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29761: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_load(const atomic<_ITp>* __a) noexcept 29761: { return atomic_load_explicit(__a, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_load(const volatile atomic<_ITp>* __a) noexcept 29761: { return atomic_load_explicit(__a, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_exchange(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_weak(atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2) noexcept 29761: { 29761: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 29761: memory_order_seq_cst, 29761: memory_order_seq_cst); 29761: } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2) noexcept 29761: { 29761: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 29761: memory_order_seq_cst, 29761: memory_order_seq_cst); 29761: } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_strong(atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2) noexcept 29761: { 29761: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 29761: memory_order_seq_cst, 29761: memory_order_seq_cst); 29761: } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2) noexcept 29761: { 29761: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 29761: memory_order_seq_cst, 29761: memory_order_seq_cst); 29761: } 29761: # 1492 "/usr/include/c++/14/atomic" 3 29761: template 29761: inline _ITp 29761: atomic_fetch_add_explicit(atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_add(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_add(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_sub_explicit(atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_sub(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_sub(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_and(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_and(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_or(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_or(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_xor(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_xor(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_add(atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i) noexcept 29761: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_add(volatile atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i) noexcept 29761: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_sub(atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i) noexcept 29761: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_sub(volatile atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i) noexcept 29761: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_and(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_and(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_or(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_or(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_xor(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 29761: # 1793 "/usr/include/c++/14/atomic" 3 29761: 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/usr/include/c++/14/deque" 1 3 29761: # 58 "/usr/include/c++/14/deque" 3 29761: 29761: # 59 "/usr/include/c++/14/deque" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/requires_hosted.h" 1 3 29761: # 61 "/usr/include/c++/14/deque" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_algobase.h" 1 3 29761: # 60 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: # 1 "/usr/include/c++/14/bits/functexcept.h" 1 3 29761: # 40 "/usr/include/c++/14/bits/functexcept.h" 3 29761: # 1 "/usr/include/c++/14/bits/exception_defines.h" 1 3 29761: # 41 "/usr/include/c++/14/bits/functexcept.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: void 29761: __throw_bad_exception(void) __attribute__((__noreturn__)); 29761: 29761: 29761: void 29761: __throw_bad_alloc(void) __attribute__((__noreturn__)); 29761: 29761: void 29761: __throw_bad_array_new_length(void) __attribute__((__noreturn__)); 29761: 29761: 29761: void 29761: __throw_bad_cast(void) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_bad_typeid(void) __attribute__((__noreturn__,__cold__)); 29761: 29761: 29761: void 29761: __throw_logic_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_domain_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_invalid_argument(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_length_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_out_of_range(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__,__cold__)) 29761: __attribute__((__format__(__gnu_printf__, 1, 2))); 29761: 29761: void 29761: __throw_runtime_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_range_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_overflow_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_underflow_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: 29761: void 29761: __throw_ios_failure(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_ios_failure(const char*, int) __attribute__((__noreturn__,__cold__)); 29761: 29761: 29761: void 29761: __throw_system_error(int) __attribute__((__noreturn__,__cold__)); 29761: 29761: 29761: void 29761: __throw_future_error(int) __attribute__((__noreturn__,__cold__)); 29761: 29761: 29761: void 29761: __throw_bad_function_call() __attribute__((__noreturn__,__cold__)); 29761: # 140 "/usr/include/c++/14/bits/functexcept.h" 3 29761: 29761: } 29761: # 61 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/cpp_type_traits.h" 1 3 29761: # 35 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: 29761: # 36 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 39 "/usr/include/c++/14/bits/cpp_type_traits.h" 2 3 29761: # 68 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: extern "C++" { 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: struct __true_type { }; 29761: struct __false_type { }; 29761: 29761: template 29761: struct __truth_type 29761: { typedef __false_type __type; }; 29761: 29761: template<> 29761: struct __truth_type 29761: { typedef __true_type __type; }; 29761: 29761: 29761: 29761: template 29761: struct __traitor 29761: { 29761: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; 29761: typedef typename __truth_type<__value>::__type __type; 29761: }; 29761: 29761: 29761: template 29761: struct __are_same 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: template 29761: struct __are_same<_Tp, _Tp> 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: template 29761: struct __is_void 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_void 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_integer 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: # 185 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: # 290 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: template 29761: struct __is_floating 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: 29761: template<> 29761: struct __is_floating 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_floating 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_floating 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: # 367 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: template 29761: struct __is_pointer 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: template 29761: struct __is_pointer<_Tp*> 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_arithmetic 29761: : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_scalar 29761: : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_char 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_char 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: template<> 29761: struct __is_char 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: template 29761: struct __is_byte 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_byte 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_byte 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_byte 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: enum class byte : unsigned char; 29761: 29761: template<> 29761: struct __is_byte 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: # 471 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: template struct iterator_traits; 29761: 29761: 29761: template 29761: struct __is_nonvolatile_trivially_copyable 29761: { 29761: enum { __value = __is_trivially_copyable(_Tp) }; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_nonvolatile_trivially_copyable 29761: { 29761: enum { __value = 0 }; 29761: }; 29761: 29761: 29761: template 29761: struct __memcpyable 29761: { 29761: enum { __value = 0 }; 29761: }; 29761: 29761: template 29761: struct __memcpyable<_Tp*, _Tp*> 29761: : __is_nonvolatile_trivially_copyable<_Tp> 29761: { }; 29761: 29761: template 29761: struct __memcpyable<_Tp*, const _Tp*> 29761: : __is_nonvolatile_trivially_copyable<_Tp> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __memcmpable 29761: { 29761: enum { __value = 0 }; 29761: }; 29761: 29761: 29761: template 29761: struct __memcmpable<_Tp*, _Tp*> 29761: : __is_nonvolatile_trivially_copyable<_Tp> 29761: { }; 29761: 29761: template 29761: struct __memcmpable 29761: : __is_nonvolatile_trivially_copyable<_Tp> 29761: { }; 29761: 29761: template 29761: struct __memcmpable<_Tp*, const _Tp*> 29761: : __is_nonvolatile_trivially_copyable<_Tp> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template::__value 29761: 29761: > 29761: struct __is_memcmp_ordered 29761: { 29761: static const bool __value = _Tp(-1) > _Tp(1); 29761: }; 29761: 29761: template 29761: struct __is_memcmp_ordered<_Tp, false> 29761: { 29761: static const bool __value = false; 29761: }; 29761: 29761: 29761: template 29761: struct __is_memcmp_ordered_with 29761: { 29761: static const bool __value = __is_memcmp_ordered<_Tp>::__value 29761: && __is_memcmp_ordered<_Up>::__value; 29761: }; 29761: 29761: template 29761: struct __is_memcmp_ordered_with<_Tp, _Up, false> 29761: { 29761: static const bool __value = false; 29761: }; 29761: # 580 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: template<> 29761: struct __is_memcmp_ordered_with 29761: { static constexpr bool __value = true; }; 29761: 29761: template 29761: struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> 29761: { static constexpr bool __value = false; }; 29761: 29761: template 29761: struct __is_memcmp_ordered_with 29761: { static constexpr bool __value = false; }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_move_iterator 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: 29761: 29761: template 29761: 29761: inline _Iterator 29761: __miter_base(_Iterator __it) 29761: { return __it; } 29761: 29761: 29761: } 29761: } 29761: # 62 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/ext/type_traits.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/type_traits.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/type_traits.h" 3 29761: 29761: 29761: 29761: 29761: extern "C++" { 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: struct __enable_if 29761: { }; 29761: 29761: template 29761: struct __enable_if 29761: { typedef _Tp __type; }; 29761: 29761: 29761: 29761: template 29761: struct __conditional_type 29761: { typedef _Iftrue __type; }; 29761: 29761: template 29761: struct __conditional_type 29761: { typedef _Iffalse __type; }; 29761: 29761: 29761: 29761: template 29761: struct __add_unsigned 29761: { 29761: private: 29761: typedef __enable_if::__value, _Tp> __if_type; 29761: 29761: public: 29761: typedef typename __if_type::__type __type; 29761: }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned char __type; }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned char __type; }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned short __type; }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned int __type; }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned long __type; }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned long long __type; }; 29761: 29761: 29761: template<> 29761: struct __add_unsigned; 29761: 29761: template<> 29761: struct __add_unsigned; 29761: 29761: 29761: 29761: template 29761: struct __remove_unsigned 29761: { 29761: private: 29761: typedef __enable_if::__value, _Tp> __if_type; 29761: 29761: public: 29761: typedef typename __if_type::__type __type; 29761: }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef signed char __type; }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef signed char __type; }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef short __type; }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef int __type; }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef long __type; }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef long long __type; }; 29761: 29761: 29761: template<> 29761: struct __remove_unsigned; 29761: 29761: template<> 29761: struct __remove_unsigned; 29761: 29761: 29761: 29761: template 29761: constexpr 29761: inline bool 29761: __is_null_pointer(_Type* __ptr) 29761: { return __ptr == 0; } 29761: 29761: template 29761: constexpr 29761: inline bool 29761: __is_null_pointer(_Type) 29761: { return false; } 29761: 29761: 29761: constexpr bool 29761: __is_null_pointer(std::nullptr_t) 29761: { return true; } 29761: 29761: 29761: 29761: 29761: template::__value> 29761: struct __promote 29761: { typedef double __type; }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __promote<_Tp, false> 29761: { }; 29761: 29761: template<> 29761: struct __promote 29761: { typedef long double __type; }; 29761: 29761: template<> 29761: struct __promote 29761: { typedef double __type; }; 29761: 29761: template<> 29761: struct __promote 29761: { typedef float __type; }; 29761: # 225 "/usr/include/c++/14/ext/type_traits.h" 3 29761: template 29761: using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); 29761: 29761: 29761: 29761: template 29761: using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; 29761: 29761: template 29761: using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; 29761: 29761: template 29761: using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; 29761: # 269 "/usr/include/c++/14/ext/type_traits.h" 3 29761: 29761: } 29761: } 29761: # 63 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/ext/numeric_traits.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: 29761: 29761: 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 50 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: template 29761: struct __is_integer_nonstrict 29761: : public std::__is_integer<_Tp> 29761: { 29761: using std::__is_integer<_Tp>::__value; 29761: 29761: 29761: enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; 29761: }; 29761: 29761: template 29761: struct __numeric_traits_integer 29761: { 29761: 29761: static_assert(__is_integer_nonstrict<_Value>::__value, 29761: "invalid specialization"); 29761: 29761: 29761: 29761: 29761: static const bool __is_signed = (_Value)(-1) < 0; 29761: static const int __digits 29761: = __is_integer_nonstrict<_Value>::__width - __is_signed; 29761: 29761: 29761: static const _Value __max = __is_signed 29761: ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) 29761: : ~(_Value)0; 29761: static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; 29761: }; 29761: 29761: template 29761: const _Value __numeric_traits_integer<_Value>::__min; 29761: 29761: template 29761: const _Value __numeric_traits_integer<_Value>::__max; 29761: 29761: template 29761: const bool __numeric_traits_integer<_Value>::__is_signed; 29761: 29761: template 29761: const int __numeric_traits_integer<_Value>::__digits; 29761: # 137 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: template 29761: using __int_traits = __numeric_traits_integer<_Tp>; 29761: # 157 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: template 29761: struct __numeric_traits_floating 29761: { 29761: 29761: static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 53) * 643L / 2136); 29761: 29761: 29761: static const bool __is_signed = true; 29761: static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 15); 29761: static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 308); 29761: }; 29761: 29761: template 29761: const int __numeric_traits_floating<_Value>::__max_digits10; 29761: 29761: template 29761: const bool __numeric_traits_floating<_Value>::__is_signed; 29761: 29761: template 29761: const int __numeric_traits_floating<_Value>::__digits10; 29761: 29761: template 29761: const int __numeric_traits_floating<_Value>::__max_exponent10; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __numeric_traits 29761: : public __numeric_traits_integer<_Value> 29761: { }; 29761: 29761: template<> 29761: struct __numeric_traits 29761: : public __numeric_traits_floating 29761: { }; 29761: 29761: template<> 29761: struct __numeric_traits 29761: : public __numeric_traits_floating 29761: { }; 29761: 29761: template<> 29761: struct __numeric_traits 29761: : public __numeric_traits_floating 29761: { }; 29761: # 238 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: 29761: } 29761: # 64 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_pair.h" 1 3 29761: # 62 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: # 1 "/usr/include/c++/14/bits/utility.h" 1 3 29761: # 36 "/usr/include/c++/14/bits/utility.h" 3 29761: 29761: # 37 "/usr/include/c++/14/bits/utility.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: struct tuple_size; 29761: 29761: 29761: 29761: 29761: 29761: template::type, 29761: typename = typename enable_if::value>::type, 29761: size_t = tuple_size<_Tp>::value> 29761: using __enable_if_has_tuple_size = _Tp; 29761: 29761: template 29761: struct tuple_size> 29761: : public tuple_size<_Tp> { }; 29761: 29761: template 29761: struct tuple_size> 29761: : public tuple_size<_Tp> { }; 29761: 29761: template 29761: struct tuple_size> 29761: : public tuple_size<_Tp> { }; 29761: 29761: 29761: template 29761: inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; 29761: 29761: 29761: 29761: template 29761: struct tuple_element; 29761: 29761: 29761: template 29761: using __tuple_element_t = typename tuple_element<__i, _Tp>::type; 29761: 29761: template 29761: struct tuple_element<__i, const _Tp> 29761: { 29761: using type = const __tuple_element_t<__i, _Tp>; 29761: }; 29761: 29761: template 29761: struct tuple_element<__i, volatile _Tp> 29761: { 29761: using type = volatile __tuple_element_t<__i, _Tp>; 29761: }; 29761: 29761: template 29761: struct tuple_element<__i, const volatile _Tp> 29761: { 29761: using type = const volatile __tuple_element_t<__i, _Tp>; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr size_t 29761: __find_uniq_type_in_pack() 29761: { 29761: constexpr size_t __sz = sizeof...(_Types); 29761: constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; 29761: size_t __n = __sz; 29761: for (size_t __i = 0; __i < __sz; ++__i) 29761: { 29761: if (__found[__i]) 29761: { 29761: if (__n < __sz) 29761: return __sz; 29761: __n = __i; 29761: } 29761: } 29761: return __n; 29761: } 29761: # 134 "/usr/include/c++/14/bits/utility.h" 3 29761: template 29761: using tuple_element_t = typename tuple_element<__i, _Tp>::type; 29761: 29761: 29761: 29761: 29761: template struct _Index_tuple { }; 29761: 29761: 29761: template 29761: struct _Build_index_tuple 29761: { 29761: # 154 "/usr/include/c++/14/bits/utility.h" 3 29761: using __type = _Index_tuple<__integer_pack(_Num)...>; 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct integer_sequence 29761: { 29761: 29761: 29761: 29761: typedef _Tp value_type; 29761: static constexpr size_t size() noexcept { return sizeof...(_Idx); } 29761: }; 29761: 29761: 29761: template 29761: using make_integer_sequence 29761: 29761: 29761: 29761: = integer_sequence<_Tp, __integer_pack(_Num)...>; 29761: 29761: 29761: 29761: template 29761: using index_sequence = integer_sequence; 29761: 29761: 29761: template 29761: using make_index_sequence = make_integer_sequence; 29761: 29761: 29761: template 29761: using index_sequence_for = make_index_sequence; 29761: 29761: 29761: 29761: 29761: struct in_place_t { 29761: explicit in_place_t() = default; 29761: }; 29761: 29761: inline constexpr in_place_t in_place{}; 29761: 29761: template struct in_place_type_t 29761: { 29761: explicit in_place_type_t() = default; 29761: }; 29761: 29761: template 29761: inline constexpr in_place_type_t<_Tp> in_place_type{}; 29761: 29761: template struct in_place_index_t 29761: { 29761: explicit in_place_index_t() = default; 29761: }; 29761: 29761: template 29761: inline constexpr in_place_index_t<_Idx> in_place_index{}; 29761: 29761: template 29761: inline constexpr bool __is_in_place_type_v = false; 29761: 29761: template 29761: inline constexpr bool __is_in_place_type_v> = true; 29761: 29761: template 29761: using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; 29761: 29761: template 29761: inline constexpr bool __is_in_place_index_v = false; 29761: 29761: template 29761: inline constexpr bool __is_in_place_index_v> = true; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Nth_type 29761: { using type = __type_pack_element<_Np, _Types...>; }; 29761: # 283 "/usr/include/c++/14/bits/utility.h" 3 29761: 29761: } 29761: # 63 "/usr/include/c++/14/bits/stl_pair.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 79 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; 29761: 29761: 29761: inline constexpr piecewise_construct_t piecewise_construct = 29761: piecewise_construct_t(); 29761: 29761: 29761: 29761: 29761: template 29761: struct pair; 29761: 29761: template 29761: class tuple; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct array; 29761: 29761: template 29761: struct _Index_tuple; 29761: 29761: template 29761: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29761: get(pair<_Tp1, _Tp2>& __in) noexcept; 29761: 29761: template 29761: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29761: get(pair<_Tp1, _Tp2>&& __in) noexcept; 29761: 29761: template 29761: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29761: get(const pair<_Tp1, _Tp2>& __in) noexcept; 29761: 29761: template 29761: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29761: get(const pair<_Tp1, _Tp2>&& __in) noexcept; 29761: 29761: template 29761: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 29761: get(tuple<_Elements...>& __t) noexcept; 29761: 29761: template 29761: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 29761: get(const tuple<_Elements...>& __t) noexcept; 29761: 29761: template 29761: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 29761: get(tuple<_Elements...>&& __t) noexcept; 29761: 29761: template 29761: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 29761: get(const tuple<_Elements...>&& __t) noexcept; 29761: 29761: template 29761: constexpr _Tp& 29761: get(array<_Tp, _Nm>&) noexcept; 29761: 29761: template 29761: constexpr _Tp&& 29761: get(array<_Tp, _Nm>&&) noexcept; 29761: 29761: template 29761: constexpr const _Tp& 29761: get(const array<_Tp, _Nm>&) noexcept; 29761: 29761: template 29761: constexpr const _Tp&& 29761: get(const array<_Tp, _Nm>&&) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _PCC 29761: { 29761: template 29761: static constexpr bool _ConstructiblePair() 29761: { 29761: return __and_, 29761: is_constructible<_T2, const _U2&>>::value; 29761: } 29761: 29761: template 29761: static constexpr bool _ImplicitlyConvertiblePair() 29761: { 29761: return __and_, 29761: is_convertible>::value; 29761: } 29761: 29761: template 29761: static constexpr bool _MoveConstructiblePair() 29761: { 29761: return __and_, 29761: is_constructible<_T2, _U2&&>>::value; 29761: } 29761: 29761: template 29761: static constexpr bool _ImplicitlyMoveConvertiblePair() 29761: { 29761: return __and_, 29761: is_convertible<_U2&&, _T2>>::value; 29761: } 29761: }; 29761: 29761: template 29761: struct _PCC 29761: { 29761: template 29761: static constexpr bool _ConstructiblePair() 29761: { 29761: return false; 29761: } 29761: 29761: template 29761: static constexpr bool _ImplicitlyConvertiblePair() 29761: { 29761: return false; 29761: } 29761: 29761: template 29761: static constexpr bool _MoveConstructiblePair() 29761: { 29761: return false; 29761: } 29761: 29761: template 29761: static constexpr bool _ImplicitlyMoveConvertiblePair() 29761: { 29761: return false; 29761: } 29761: }; 29761: # 260 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template class __pair_base 29761: { 29761: 29761: template friend struct pair; 29761: __pair_base() = default; 29761: ~__pair_base() = default; 29761: __pair_base(const __pair_base&) = default; 29761: __pair_base& operator=(const __pair_base&) = delete; 29761: 29761: }; 29761: # 283 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: struct pair 29761: : public __pair_base<_T1, _T2> 29761: { 29761: typedef _T1 first_type; 29761: typedef _T2 second_type; 29761: 29761: _T1 first; 29761: _T2 second; 29761: 29761: 29761: constexpr pair(const pair&) = default; 29761: constexpr pair(pair&&) = default; 29761: 29761: template 29761: 29761: pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); 29761: 29761: 29761: void 29761: swap(pair& __p) 29761: noexcept(__and_<__is_nothrow_swappable<_T1>, 29761: __is_nothrow_swappable<_T2>>::value) 29761: { 29761: using std::swap; 29761: swap(first, __p.first); 29761: swap(second, __p.second); 29761: } 29761: # 331 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: private: 29761: template 29761: 29761: pair(tuple<_Args1...>&, tuple<_Args2...>&, 29761: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); 29761: public: 29761: # 719 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template , 29761: __is_implicitly_default_constructible<_U2>> 29761: ::value, bool>::type = true> 29761: constexpr pair() 29761: : first(), second() { } 29761: 29761: template , 29761: is_default_constructible<_U2>, 29761: __not_< 29761: __and_<__is_implicitly_default_constructible<_U1>, 29761: __is_implicitly_default_constructible<_U2>>>> 29761: ::value, bool>::type = false> 29761: explicit constexpr pair() 29761: : first(), second() { } 29761: 29761: 29761: 29761: using _PCCP = _PCC; 29761: 29761: 29761: 29761: template() 29761: && _PCCP::template 29761: _ImplicitlyConvertiblePair<_U1, _U2>(), 29761: bool>::type=true> 29761: constexpr pair(const _T1& __a, const _T2& __b) 29761: : first(__a), second(__b) { } 29761: 29761: 29761: template() 29761: && !_PCCP::template 29761: _ImplicitlyConvertiblePair<_U1, _U2>(), 29761: bool>::type=false> 29761: explicit constexpr pair(const _T1& __a, const _T2& __b) 29761: : first(__a), second(__b) { } 29761: 29761: 29761: 29761: template 29761: using _PCCFP = _PCC::value 29761: || !is_same<_T2, _U2>::value, 29761: _T1, _T2>; 29761: 29761: 29761: template::template 29761: _ConstructiblePair<_U1, _U2>() 29761: && _PCCFP<_U1, _U2>::template 29761: _ImplicitlyConvertiblePair<_U1, _U2>(), 29761: bool>::type=true> 29761: constexpr pair(const pair<_U1, _U2>& __p) 29761: : first(__p.first), second(__p.second) 29761: { ; } 29761: 29761: template::template 29761: _ConstructiblePair<_U1, _U2>() 29761: && !_PCCFP<_U1, _U2>::template 29761: _ImplicitlyConvertiblePair<_U1, _U2>(), 29761: bool>::type=false> 29761: explicit constexpr pair(const pair<_U1, _U2>& __p) 29761: : first(__p.first), second(__p.second) 29761: { ; } 29761: # 803 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: private: 29761: 29761: 29761: 29761: struct __zero_as_null_pointer_constant 29761: { 29761: __zero_as_null_pointer_constant(int __zero_as_null_pointer_constant::*) 29761: { } 29761: template::value>> 29761: __zero_as_null_pointer_constant(_Tp) = delete; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: template>, 29761: is_pointer<_T2>, 29761: is_constructible<_T1, _U1>, 29761: __not_>, 29761: is_convertible<_U1, _T1>>::value, 29761: bool> = true> 29761: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29761: constexpr 29761: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 29761: : first(std::forward<_U1>(__x)), second(nullptr) 29761: { ; } 29761: 29761: template>, 29761: is_pointer<_T2>, 29761: is_constructible<_T1, _U1>, 29761: __not_>, 29761: __not_>>::value, 29761: bool> = false> 29761: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29761: explicit constexpr 29761: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 29761: : first(std::forward<_U1>(__x)), second(nullptr) 29761: { ; } 29761: 29761: template, 29761: __not_>, 29761: is_constructible<_T2, _U2>, 29761: __not_>, 29761: is_convertible<_U2, _T2>>::value, 29761: bool> = true> 29761: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29761: constexpr 29761: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 29761: : first(nullptr), second(std::forward<_U2>(__y)) 29761: { ; } 29761: 29761: template, 29761: __not_>, 29761: is_constructible<_T2, _U2>, 29761: __not_>, 29761: __not_>>::value, 29761: bool> = false> 29761: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29761: explicit constexpr 29761: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 29761: : first(nullptr), second(std::forward<_U2>(__y)) 29761: { ; } 29761: 29761: 29761: 29761: template() 29761: && _PCCP::template 29761: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29761: bool>::type=true> 29761: constexpr pair(_U1&& __x, _U2&& __y) 29761: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 29761: { ; } 29761: 29761: template() 29761: && !_PCCP::template 29761: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29761: bool>::type=false> 29761: explicit constexpr pair(_U1&& __x, _U2&& __y) 29761: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 29761: { ; } 29761: 29761: 29761: template::template 29761: _MoveConstructiblePair<_U1, _U2>() 29761: && _PCCFP<_U1, _U2>::template 29761: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29761: bool>::type=true> 29761: constexpr pair(pair<_U1, _U2>&& __p) 29761: : first(std::forward<_U1>(__p.first)), 29761: second(std::forward<_U2>(__p.second)) 29761: { ; } 29761: 29761: template::template 29761: _MoveConstructiblePair<_U1, _U2>() 29761: && !_PCCFP<_U1, _U2>::template 29761: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29761: bool>::type=false> 29761: explicit constexpr pair(pair<_U1, _U2>&& __p) 29761: : first(std::forward<_U1>(__p.first)), 29761: second(std::forward<_U2>(__p.second)) 29761: { ; } 29761: 29761: 29761: 29761: pair& 29761: operator=(__conditional_t<__and_, 29761: is_copy_assignable<_T2>>::value, 29761: const pair&, const __nonesuch&> __p) 29761: { 29761: first = __p.first; 29761: second = __p.second; 29761: return *this; 29761: } 29761: 29761: pair& 29761: operator=(__conditional_t<__and_, 29761: is_move_assignable<_T2>>::value, 29761: pair&&, __nonesuch&&> __p) 29761: noexcept(__and_, 29761: is_nothrow_move_assignable<_T2>>::value) 29761: { 29761: first = std::forward(__p.first); 29761: second = std::forward(__p.second); 29761: return *this; 29761: } 29761: 29761: template 29761: typename enable_if<__and_, 29761: is_assignable<_T2&, const _U2&>>::value, 29761: pair&>::type 29761: operator=(const pair<_U1, _U2>& __p) 29761: { 29761: first = __p.first; 29761: second = __p.second; 29761: return *this; 29761: } 29761: 29761: template 29761: typename enable_if<__and_, 29761: is_assignable<_T2&, _U2&&>>::value, 29761: pair&>::type 29761: operator=(pair<_U1, _U2>&& __p) 29761: { 29761: first = std::forward<_U1>(__p.first); 29761: second = std::forward<_U2>(__p.second); 29761: return *this; 29761: } 29761: # 995 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: }; 29761: 29761: 29761: 29761: 29761: template pair(_T1, _T2) -> pair<_T1, _T2>; 29761: # 1031 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: inline constexpr bool 29761: operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return __x.first == __y.first && __x.second == __y.second; } 29761: # 1043 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: inline constexpr bool 29761: operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return __x.first < __y.first 29761: || (!(__y.first < __x.first) && __x.second < __y.second); } 29761: 29761: 29761: template 29761: inline constexpr bool 29761: operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline constexpr bool 29761: operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: inline constexpr bool 29761: operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: inline constexpr bool 29761: operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return !(__x < __y); } 29761: # 1080 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: inline 29761: 29761: 29761: typename enable_if<__and_<__is_swappable<_T1>, 29761: __is_swappable<_T2>>::value>::type 29761: 29761: 29761: 29761: swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: # 1103 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: typename enable_if, 29761: __is_swappable<_T2>>::value>::type 29761: swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; 29761: # 1129 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: constexpr pair::__type, 29761: typename __decay_and_strip<_T2>::__type> 29761: make_pair(_T1&& __x, _T2&& __y) 29761: { 29761: typedef typename __decay_and_strip<_T1>::__type __ds_type1; 29761: typedef typename __decay_and_strip<_T2>::__type __ds_type2; 29761: typedef pair<__ds_type1, __ds_type2> __pair_type; 29761: return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); 29761: } 29761: # 1152 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: struct __is_tuple_like_impl> : true_type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct tuple_size> 29761: : public integral_constant { }; 29761: 29761: 29761: template 29761: struct tuple_element<0, pair<_Tp1, _Tp2>> 29761: { typedef _Tp1 type; }; 29761: 29761: 29761: template 29761: struct tuple_element<1, pair<_Tp1, _Tp2>> 29761: { typedef _Tp2 type; }; 29761: 29761: 29761: 29761: template 29761: struct tuple_element<__i, tuple<_Types...>>; 29761: 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> = 2; 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> = 2; 29761: 29761: template 29761: inline constexpr bool __is_pair = false; 29761: 29761: template 29761: inline constexpr bool __is_pair> = true; 29761: 29761: 29761: 29761: template 29761: struct __pair_get; 29761: 29761: template<> 29761: struct __pair_get<0> 29761: { 29761: template 29761: static constexpr _Tp1& 29761: __get(pair<_Tp1, _Tp2>& __pair) noexcept 29761: { return __pair.first; } 29761: 29761: template 29761: static constexpr _Tp1&& 29761: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 29761: { return std::forward<_Tp1>(__pair.first); } 29761: 29761: template 29761: static constexpr const _Tp1& 29761: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 29761: { return __pair.first; } 29761: 29761: template 29761: static constexpr const _Tp1&& 29761: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 29761: { return std::forward(__pair.first); } 29761: }; 29761: 29761: template<> 29761: struct __pair_get<1> 29761: { 29761: template 29761: static constexpr _Tp2& 29761: __get(pair<_Tp1, _Tp2>& __pair) noexcept 29761: { return __pair.second; } 29761: 29761: template 29761: static constexpr _Tp2&& 29761: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 29761: { return std::forward<_Tp2>(__pair.second); } 29761: 29761: template 29761: static constexpr const _Tp2& 29761: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 29761: { return __pair.second; } 29761: 29761: template 29761: static constexpr const _Tp2&& 29761: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 29761: { return std::forward(__pair.second); } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29761: get(pair<_Tp1, _Tp2>& __in) noexcept 29761: { return __pair_get<_Int>::__get(__in); } 29761: 29761: template 29761: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29761: get(pair<_Tp1, _Tp2>&& __in) noexcept 29761: { return __pair_get<_Int>::__move_get(std::move(__in)); } 29761: 29761: template 29761: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29761: get(const pair<_Tp1, _Tp2>& __in) noexcept 29761: { return __pair_get<_Int>::__const_get(__in); } 29761: 29761: template 29761: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29761: get(const pair<_Tp1, _Tp2>&& __in) noexcept 29761: { return __pair_get<_Int>::__const_move_get(std::move(__in)); } 29761: 29761: 29761: 29761: template 29761: constexpr _Tp& 29761: get(pair<_Tp, _Up>& __p) noexcept 29761: { return __p.first; } 29761: 29761: template 29761: constexpr const _Tp& 29761: get(const pair<_Tp, _Up>& __p) noexcept 29761: { return __p.first; } 29761: 29761: template 29761: constexpr _Tp&& 29761: get(pair<_Tp, _Up>&& __p) noexcept 29761: { return std::move(__p.first); } 29761: 29761: template 29761: constexpr const _Tp&& 29761: get(const pair<_Tp, _Up>&& __p) noexcept 29761: { return std::move(__p.first); } 29761: 29761: template 29761: constexpr _Tp& 29761: get(pair<_Up, _Tp>& __p) noexcept 29761: { return __p.second; } 29761: 29761: template 29761: constexpr const _Tp& 29761: get(const pair<_Up, _Tp>& __p) noexcept 29761: { return __p.second; } 29761: 29761: template 29761: constexpr _Tp&& 29761: get(pair<_Up, _Tp>&& __p) noexcept 29761: { return std::move(__p.second); } 29761: 29761: template 29761: constexpr const _Tp&& 29761: get(const pair<_Up, _Tp>&& __p) noexcept 29761: { return std::move(__p.second); } 29761: # 1332 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: 29761: } 29761: # 65 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 1 3 29761: # 62 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: 29761: # 63 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: # 74 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 93 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: struct input_iterator_tag { }; 29761: 29761: 29761: struct output_iterator_tag { }; 29761: 29761: 29761: struct forward_iterator_tag : public input_iterator_tag { }; 29761: 29761: 29761: 29761: struct bidirectional_iterator_tag : public forward_iterator_tag { }; 29761: 29761: 29761: 29761: struct random_access_iterator_tag : public bidirectional_iterator_tag { }; 29761: # 125 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: template 29761: struct [[__deprecated__]] iterator 29761: { 29761: 29761: typedef _Category iterator_category; 29761: 29761: typedef _Tp value_type; 29761: 29761: typedef _Distance difference_type; 29761: 29761: typedef _Pointer pointer; 29761: 29761: typedef _Reference reference; 29761: }; 29761: # 149 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: template 29761: struct iterator_traits; 29761: 29761: 29761: 29761: 29761: template> 29761: struct __iterator_traits { }; 29761: 29761: 29761: 29761: template 29761: struct __iterator_traits<_Iterator, 29761: __void_t> 29761: { 29761: typedef typename _Iterator::iterator_category iterator_category; 29761: typedef typename _Iterator::value_type value_type; 29761: typedef typename _Iterator::difference_type difference_type; 29761: typedef typename _Iterator::pointer pointer; 29761: typedef typename _Iterator::reference reference; 29761: }; 29761: 29761: 29761: template 29761: struct iterator_traits 29761: : public __iterator_traits<_Iterator> { }; 29761: # 209 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: template 29761: struct iterator_traits<_Tp*> 29761: { 29761: typedef random_access_iterator_tag iterator_category; 29761: typedef _Tp value_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Tp* pointer; 29761: typedef _Tp& reference; 29761: }; 29761: 29761: 29761: template 29761: struct iterator_traits 29761: { 29761: typedef random_access_iterator_tag iterator_category; 29761: typedef _Tp value_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef const _Tp* pointer; 29761: typedef const _Tp& reference; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: inline constexpr 29761: typename iterator_traits<_Iter>::iterator_category 29761: __iterator_category(const _Iter&) 29761: { return typename iterator_traits<_Iter>::iterator_category(); } 29761: 29761: 29761: 29761: 29761: template 29761: using __iter_category_t 29761: = typename iterator_traits<_Iter>::iterator_category; 29761: 29761: template 29761: using _RequireInputIter = 29761: __enable_if_t, 29761: input_iterator_tag>::value>; 29761: 29761: template> 29761: struct __is_random_access_iter 29761: : is_base_of 29761: { 29761: typedef is_base_of _Base; 29761: enum { __value = _Base::value }; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 1 3 29761: # 62 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29761: 29761: # 63 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/concept_check.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/concept_check.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/concept_check.h" 3 29761: # 65 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 29761: # 1 "/usr/include/c++/14/debug/assertions.h" 1 3 29761: # 66 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template struct _List_iterator; 29761: template struct _List_const_iterator; 29761: 29761: 29761: template 29761: inline constexpr 29761: typename iterator_traits<_InputIterator>::difference_type 29761: __distance(_InputIterator __first, _InputIterator __last, 29761: input_iterator_tag) 29761: { 29761: 29761: 29761: 29761: typename iterator_traits<_InputIterator>::difference_type __n = 0; 29761: while (__first != __last) 29761: { 29761: ++__first; 29761: ++__n; 29761: } 29761: return __n; 29761: } 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: inline constexpr 29761: typename iterator_traits<_RandomAccessIterator>::difference_type 29761: __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: random_access_iterator_tag) 29761: { 29761: 29761: 29761: 29761: return __last - __first; 29761: } 29761: 29761: 29761: 29761: template 29761: ptrdiff_t 29761: __distance(std::_List_iterator<_Tp>, 29761: std::_List_iterator<_Tp>, 29761: input_iterator_tag); 29761: 29761: template 29761: ptrdiff_t 29761: __distance(std::_List_const_iterator<_Tp>, 29761: std::_List_const_iterator<_Tp>, 29761: input_iterator_tag); 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; 29761: # 144 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29761: template 29761: [[__nodiscard__]] __attribute__((__always_inline__)) 29761: inline constexpr 29761: typename iterator_traits<_InputIterator>::difference_type 29761: distance(_InputIterator __first, _InputIterator __last) 29761: { 29761: 29761: return std::__distance(__first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: template 29761: inline constexpr void 29761: __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) 29761: { 29761: 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) std::__glibcxx_assert_fail(); } while (false); 29761: while (__n--) 29761: ++__i; 29761: } 29761: 29761: template 29761: inline constexpr void 29761: __advance(_BidirectionalIterator& __i, _Distance __n, 29761: bidirectional_iterator_tag) 29761: { 29761: 29761: 29761: 29761: if (__n > 0) 29761: while (__n--) 29761: ++__i; 29761: else 29761: while (__n++) 29761: --__i; 29761: } 29761: 29761: template 29761: inline constexpr void 29761: __advance(_RandomAccessIterator& __i, _Distance __n, 29761: random_access_iterator_tag) 29761: { 29761: 29761: 29761: 29761: if (__builtin_constant_p(__n) && __n == 1) 29761: ++__i; 29761: else if (__builtin_constant_p(__n) && __n == -1) 29761: --__i; 29761: else 29761: __i += __n; 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; 29761: # 217 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29761: template 29761: __attribute__((__always_inline__)) 29761: inline constexpr void 29761: advance(_InputIterator& __i, _Distance __n) 29761: { 29761: 29761: typename iterator_traits<_InputIterator>::difference_type __d = __n; 29761: std::__advance(__i, __d, std::__iterator_category(__i)); 29761: } 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] [[__gnu__::__always_inline__]] 29761: inline constexpr _InputIterator 29761: next(_InputIterator __x, typename 29761: iterator_traits<_InputIterator>::difference_type __n = 1) 29761: { 29761: 29761: 29761: std::advance(__x, __n); 29761: return __x; 29761: } 29761: 29761: template 29761: [[__nodiscard__]] [[__gnu__::__always_inline__]] 29761: inline constexpr _BidirectionalIterator 29761: prev(_BidirectionalIterator __x, typename 29761: iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 29761: { 29761: 29761: 29761: 29761: std::advance(__x, -__n); 29761: return __x; 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 67 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_iterator.h" 1 3 29761: # 67 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: # 1 "/usr/include/c++/14/bits/ptr_traits.h" 1 3 29761: # 42 "/usr/include/c++/14/bits/ptr_traits.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: class __undefined; 29761: 29761: 29761: 29761: template 29761: struct __get_first_arg 29761: { using type = __undefined; }; 29761: 29761: template class _SomeTemplate, typename _Tp, 29761: typename... _Types> 29761: struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> 29761: { using type = _Tp; }; 29761: 29761: 29761: 29761: template 29761: struct __replace_first_arg 29761: { }; 29761: 29761: template class _SomeTemplate, typename _Up, 29761: typename _Tp, typename... _Types> 29761: struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> 29761: { using type = _SomeTemplate<_Up, _Types...>; }; 29761: 29761: 29761: template 29761: struct __ptr_traits_elem : __get_first_arg<_Ptr> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __ptr_traits_elem<_Ptr, __void_t> 29761: { using type = typename _Ptr::element_type; }; 29761: 29761: 29761: template 29761: using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; 29761: 29761: 29761: 29761: 29761: template::value> 29761: struct __ptr_traits_ptr_to 29761: { 29761: using pointer = _Ptr; 29761: using element_type = _Elt; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: static pointer 29761: pointer_to(element_type& __r) 29761: 29761: 29761: 29761: 29761: 29761: { return pointer::pointer_to(__r); } 29761: }; 29761: 29761: 29761: template 29761: struct __ptr_traits_ptr_to<_Ptr, _Elt, true> 29761: { }; 29761: 29761: 29761: template 29761: struct __ptr_traits_ptr_to<_Tp*, _Tp, false> 29761: { 29761: using pointer = _Tp*; 29761: using element_type = _Tp; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static pointer 29761: pointer_to(element_type& __r) noexcept 29761: { return std::addressof(__r); } 29761: }; 29761: 29761: template 29761: struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> 29761: { 29761: private: 29761: template 29761: using __diff_t = typename _Tp::difference_type; 29761: 29761: template 29761: using __rebind = __type_identity>; 29761: 29761: public: 29761: 29761: using pointer = _Ptr; 29761: 29761: 29761: using element_type = _Elt; 29761: 29761: 29761: using difference_type = __detected_or_t; 29761: 29761: 29761: template 29761: using rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, 29761: __rebind, _Ptr, _Up>::type; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __ptr_traits_impl<_Ptr, __undefined> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> 29761: { 29761: 29761: typedef _Tp* pointer; 29761: 29761: typedef _Tp element_type; 29761: 29761: typedef ptrdiff_t difference_type; 29761: 29761: template using rebind = _Up*; 29761: }; 29761: 29761: 29761: template 29761: using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; 29761: 29761: template 29761: constexpr _Tp* 29761: __to_address(_Tp* __ptr) noexcept 29761: { 29761: static_assert(!std::is_function<_Tp>::value, "not a function pointer"); 29761: return __ptr; 29761: } 29761: 29761: 29761: template 29761: constexpr typename std::pointer_traits<_Ptr>::element_type* 29761: __to_address(const _Ptr& __ptr) 29761: { return std::__to_address(__ptr.operator->()); } 29761: # 257 "/usr/include/c++/14/bits/ptr_traits.h" 3 29761: 29761: } 29761: # 68 "/usr/include/c++/14/bits/stl_iterator.h" 2 3 29761: # 85 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: 29761: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: # 128 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class reverse_iterator 29761: : public iterator::iterator_category, 29761: typename iterator_traits<_Iterator>::value_type, 29761: typename iterator_traits<_Iterator>::difference_type, 29761: typename iterator_traits<_Iterator>::pointer, 29761: typename iterator_traits<_Iterator>::reference> 29761: { 29761: template 29761: friend class reverse_iterator; 29761: # 147 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: protected: 29761: _Iterator current; 29761: 29761: typedef iterator_traits<_Iterator> __traits_type; 29761: 29761: public: 29761: typedef _Iterator iterator_type; 29761: typedef typename __traits_type::pointer pointer; 29761: 29761: typedef typename __traits_type::difference_type difference_type; 29761: typedef typename __traits_type::reference reference; 29761: # 178 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: constexpr 29761: reverse_iterator() 29761: noexcept(noexcept(_Iterator())) 29761: : current() 29761: { } 29761: 29761: 29761: 29761: 29761: explicit constexpr 29761: reverse_iterator(iterator_type __x) 29761: noexcept(noexcept(_Iterator(__x))) 29761: : current(__x) 29761: { } 29761: 29761: 29761: 29761: 29761: constexpr 29761: reverse_iterator(const reverse_iterator& __x) 29761: noexcept(noexcept(_Iterator(__x.current))) 29761: : current(__x.current) 29761: { } 29761: 29761: 29761: reverse_iterator& operator=(const reverse_iterator&) = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: 29761: 29761: constexpr 29761: reverse_iterator(const reverse_iterator<_Iter>& __x) 29761: noexcept(noexcept(_Iterator(__x.current))) 29761: : current(__x.current) 29761: { } 29761: 29761: 29761: template 29761: 29761: 29761: 29761: 29761: constexpr 29761: reverse_iterator& 29761: operator=(const reverse_iterator<_Iter>& __x) 29761: noexcept(noexcept(current = __x.current)) 29761: { 29761: current = __x.current; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr iterator_type 29761: base() const 29761: noexcept(noexcept(_Iterator(current))) 29761: { return current; } 29761: # 255 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: [[__nodiscard__]] 29761: constexpr reference 29761: operator*() const 29761: { 29761: _Iterator __tmp = current; 29761: return *--__tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr pointer 29761: operator->() const 29761: 29761: 29761: 29761: 29761: { 29761: 29761: 29761: _Iterator __tmp = current; 29761: --__tmp; 29761: return _S_to_pointer(__tmp); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator& 29761: operator++() 29761: { 29761: --current; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator 29761: operator++(int) 29761: { 29761: reverse_iterator __tmp = *this; 29761: --current; 29761: return __tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator& 29761: operator--() 29761: { 29761: ++current; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator 29761: operator--(int) 29761: { 29761: reverse_iterator __tmp = *this; 29761: ++current; 29761: return __tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr reverse_iterator 29761: operator+(difference_type __n) const 29761: { return reverse_iterator(current - __n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator& 29761: operator+=(difference_type __n) 29761: { 29761: current -= __n; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr reverse_iterator 29761: operator-(difference_type __n) const 29761: { return reverse_iterator(current + __n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator& 29761: operator-=(difference_type __n) 29761: { 29761: current += __n; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr reference 29761: operator[](difference_type __n) const 29761: { return *(*this + __n); } 29761: # 415 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: private: 29761: template 29761: static constexpr _Tp* 29761: _S_to_pointer(_Tp* __p) 29761: { return __p; } 29761: 29761: template 29761: static constexpr pointer 29761: _S_to_pointer(_Tp __t) 29761: { return __t.operator->(); } 29761: }; 29761: # 438 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator==(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return __x.base() == __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return __y.base() < __x.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator!=(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return __y < __x; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<=(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return !(__y < __x); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>=(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator==(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() == __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() > __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator!=(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() != __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() < __y.base(); } 29761: 29761: template 29761: inline constexpr bool 29761: operator<=(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() >= __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>=(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() <= __y.base(); } 29761: # 615 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr auto 29761: operator-(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: -> decltype(__y.base() - __x.base()) 29761: { return __y.base() - __x.base(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator<_Iterator> 29761: operator+(typename reverse_iterator<_Iterator>::difference_type __n, 29761: const reverse_iterator<_Iterator>& __x) 29761: { return reverse_iterator<_Iterator>(__x.base() - __n); } 29761: 29761: 29761: 29761: template 29761: inline constexpr reverse_iterator<_Iterator> 29761: __make_reverse_iterator(_Iterator __i) 29761: { return reverse_iterator<_Iterator>(__i); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator<_Iterator> 29761: make_reverse_iterator(_Iterator __i) 29761: { return reverse_iterator<_Iterator>(__i); } 29761: # 657 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: 29761: auto 29761: __niter_base(reverse_iterator<_Iterator> __it) 29761: -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) 29761: { return __make_reverse_iterator(__niter_base(__it.base())); } 29761: 29761: template 29761: struct __is_move_iterator > 29761: : __is_move_iterator<_Iterator> 29761: { }; 29761: 29761: template 29761: 29761: auto 29761: __miter_base(reverse_iterator<_Iterator> __it) 29761: -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) 29761: { return __make_reverse_iterator(__miter_base(__it.base())); } 29761: # 688 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class back_insert_iterator 29761: : public iterator 29761: { 29761: protected: 29761: _Container* container; 29761: 29761: public: 29761: 29761: typedef _Container container_type; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: back_insert_iterator(_Container& __x) 29761: : container(std::__addressof(__x)) { } 29761: # 726 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: 29761: back_insert_iterator& 29761: operator=(const typename _Container::value_type& __value) 29761: { 29761: container->push_back(__value); 29761: return *this; 29761: } 29761: 29761: 29761: back_insert_iterator& 29761: operator=(typename _Container::value_type&& __value) 29761: { 29761: container->push_back(std::move(__value)); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: back_insert_iterator& 29761: operator*() 29761: { return *this; } 29761: 29761: 29761: 29761: back_insert_iterator& 29761: operator++() 29761: { return *this; } 29761: 29761: 29761: 29761: back_insert_iterator 29761: operator++(int) 29761: { return *this; } 29761: }; 29761: # 773 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline back_insert_iterator<_Container> 29761: back_inserter(_Container& __x) 29761: { return back_insert_iterator<_Container>(__x); } 29761: # 789 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class front_insert_iterator 29761: : public iterator 29761: { 29761: protected: 29761: _Container* container; 29761: 29761: public: 29761: 29761: typedef _Container container_type; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: front_insert_iterator(_Container& __x) 29761: : container(std::__addressof(__x)) { } 29761: # 827 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: 29761: front_insert_iterator& 29761: operator=(const typename _Container::value_type& __value) 29761: { 29761: container->push_front(__value); 29761: return *this; 29761: } 29761: 29761: 29761: front_insert_iterator& 29761: operator=(typename _Container::value_type&& __value) 29761: { 29761: container->push_front(std::move(__value)); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: front_insert_iterator& 29761: operator*() 29761: { return *this; } 29761: 29761: 29761: 29761: front_insert_iterator& 29761: operator++() 29761: { return *this; } 29761: 29761: 29761: 29761: front_insert_iterator 29761: operator++(int) 29761: { return *this; } 29761: }; 29761: # 874 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline front_insert_iterator<_Container> 29761: front_inserter(_Container& __x) 29761: { return front_insert_iterator<_Container>(__x); } 29761: # 894 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class insert_iterator 29761: : public iterator 29761: { 29761: 29761: 29761: 29761: typedef typename _Container::iterator _Iter; 29761: 29761: protected: 29761: _Container* container; 29761: _Iter iter; 29761: 29761: public: 29761: 29761: typedef _Container container_type; 29761: # 919 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: 29761: insert_iterator(_Container& __x, _Iter __i) 29761: : container(std::__addressof(__x)), iter(__i) {} 29761: # 955 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: 29761: insert_iterator& 29761: operator=(const typename _Container::value_type& __value) 29761: { 29761: iter = container->insert(iter, __value); 29761: ++iter; 29761: return *this; 29761: } 29761: 29761: 29761: insert_iterator& 29761: operator=(typename _Container::value_type&& __value) 29761: { 29761: iter = container->insert(iter, std::move(__value)); 29761: ++iter; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: insert_iterator& 29761: operator*() 29761: { return *this; } 29761: 29761: 29761: 29761: insert_iterator& 29761: operator++() 29761: { return *this; } 29761: 29761: 29761: 29761: insert_iterator& 29761: operator++(int) 29761: { return *this; } 29761: }; 29761: 29761: #pragma GCC diagnostic pop 29761: # 1014 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline insert_iterator<_Container> 29761: inserter(_Container& __x, typename _Container::iterator __i) 29761: { return insert_iterator<_Container>(__x, __i); } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 1037 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class __normal_iterator 29761: { 29761: protected: 29761: _Iterator _M_current; 29761: 29761: typedef std::iterator_traits<_Iterator> __traits_type; 29761: 29761: 29761: template 29761: using __convertible_from 29761: = std::__enable_if_t::value>; 29761: 29761: 29761: public: 29761: typedef _Iterator iterator_type; 29761: typedef typename __traits_type::iterator_category iterator_category; 29761: typedef typename __traits_type::value_type value_type; 29761: typedef typename __traits_type::difference_type difference_type; 29761: typedef typename __traits_type::reference reference; 29761: typedef typename __traits_type::pointer pointer; 29761: 29761: 29761: 29761: 29761: 29761: constexpr __normal_iterator() noexcept 29761: : _M_current(_Iterator()) { } 29761: 29761: explicit 29761: __normal_iterator(const _Iterator& __i) noexcept 29761: : _M_current(__i) { } 29761: 29761: 29761: 29761: template> 29761: 29761: __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) 29761: noexcept 29761: # 1085 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: : _M_current(__i.base()) { } 29761: 29761: 29761: 29761: reference 29761: operator*() const noexcept 29761: { return *_M_current; } 29761: 29761: 29761: pointer 29761: operator->() const noexcept 29761: { return _M_current; } 29761: 29761: 29761: __normal_iterator& 29761: operator++() noexcept 29761: { 29761: ++_M_current; 29761: return *this; 29761: } 29761: 29761: 29761: __normal_iterator 29761: operator++(int) noexcept 29761: { return __normal_iterator(_M_current++); } 29761: 29761: 29761: 29761: __normal_iterator& 29761: operator--() noexcept 29761: { 29761: --_M_current; 29761: return *this; 29761: } 29761: 29761: 29761: __normal_iterator 29761: operator--(int) noexcept 29761: { return __normal_iterator(_M_current--); } 29761: 29761: 29761: 29761: reference 29761: operator[](difference_type __n) const noexcept 29761: { return _M_current[__n]; } 29761: 29761: 29761: __normal_iterator& 29761: operator+=(difference_type __n) noexcept 29761: { _M_current += __n; return *this; } 29761: 29761: 29761: __normal_iterator 29761: operator+(difference_type __n) const noexcept 29761: { return __normal_iterator(_M_current + __n); } 29761: 29761: 29761: __normal_iterator& 29761: operator-=(difference_type __n) noexcept 29761: { _M_current -= __n; return *this; } 29761: 29761: 29761: __normal_iterator 29761: operator-(difference_type __n) const noexcept 29761: { return __normal_iterator(_M_current - __n); } 29761: 29761: 29761: const _Iterator& 29761: base() const noexcept 29761: { return _M_current; } 29761: }; 29761: # 1205 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() == __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() == __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() != __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() != __rhs.base(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() < __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() < __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() > __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() > __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() <= __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() <= __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() >= __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() >= __rhs.base(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: 29761: [[__nodiscard__]] 29761: inline auto 29761: operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept 29761: -> decltype(__lhs.base() - __rhs.base()) 29761: 29761: 29761: 29761: 29761: 29761: { return __lhs.base() - __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline typename __normal_iterator<_Iterator, _Container>::difference_type 29761: operator-(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() - __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline __normal_iterator<_Iterator, _Container> 29761: operator+(typename __normal_iterator<_Iterator, _Container>::difference_type 29761: __n, const __normal_iterator<_Iterator, _Container>& __i) 29761: noexcept 29761: { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } 29761: 29761: 29761: } 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: 29761: _Iterator 29761: __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) 29761: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 29761: { return __it.base(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr auto 29761: __to_address(const __gnu_cxx::__normal_iterator<_Iterator, 29761: _Container>& __it) noexcept 29761: -> decltype(std::__to_address(__it.base())) 29761: { return std::__to_address(__it.base()); } 29761: # 1412 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: namespace __detail 29761: { 29761: # 1428 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: } 29761: # 1439 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class move_iterator 29761: 29761: 29761: 29761: { 29761: _Iterator _M_current; 29761: 29761: using __traits_type = iterator_traits<_Iterator>; 29761: 29761: using __base_ref = typename __traits_type::reference; 29761: 29761: 29761: template 29761: friend class move_iterator; 29761: # 1478 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: public: 29761: using iterator_type = _Iterator; 29761: # 1490 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: typedef typename __traits_type::iterator_category iterator_category; 29761: typedef typename __traits_type::value_type value_type; 29761: typedef typename __traits_type::difference_type difference_type; 29761: 29761: typedef _Iterator pointer; 29761: 29761: 29761: using reference 29761: = __conditional_t::value, 29761: typename remove_reference<__base_ref>::type&&, 29761: __base_ref>; 29761: 29761: 29761: constexpr 29761: move_iterator() 29761: : _M_current() { } 29761: 29761: explicit constexpr 29761: move_iterator(iterator_type __i) 29761: : _M_current(std::move(__i)) { } 29761: 29761: template 29761: 29761: 29761: 29761: constexpr 29761: move_iterator(const move_iterator<_Iter>& __i) 29761: : _M_current(__i._M_current) { } 29761: 29761: template 29761: 29761: 29761: 29761: 29761: constexpr 29761: move_iterator& operator=(const move_iterator<_Iter>& __i) 29761: { 29761: _M_current = __i._M_current; 29761: return *this; 29761: } 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr iterator_type 29761: base() const 29761: { return _M_current; } 29761: # 1548 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: [[__nodiscard__]] 29761: constexpr reference 29761: operator*() const 29761: 29761: 29761: 29761: { return static_cast(*_M_current); } 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr pointer 29761: operator->() const 29761: { return _M_current; } 29761: 29761: constexpr move_iterator& 29761: operator++() 29761: { 29761: ++_M_current; 29761: return *this; 29761: } 29761: 29761: constexpr move_iterator 29761: operator++(int) 29761: { 29761: move_iterator __tmp = *this; 29761: ++_M_current; 29761: return __tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr move_iterator& 29761: operator--() 29761: { 29761: --_M_current; 29761: return *this; 29761: } 29761: 29761: constexpr move_iterator 29761: operator--(int) 29761: { 29761: move_iterator __tmp = *this; 29761: --_M_current; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr move_iterator 29761: operator+(difference_type __n) const 29761: { return move_iterator(_M_current + __n); } 29761: 29761: constexpr move_iterator& 29761: operator+=(difference_type __n) 29761: { 29761: _M_current += __n; 29761: return *this; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr move_iterator 29761: operator-(difference_type __n) const 29761: { return move_iterator(_M_current - __n); } 29761: 29761: constexpr move_iterator& 29761: operator-=(difference_type __n) 29761: { 29761: _M_current -= __n; 29761: return *this; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr reference 29761: operator[](difference_type __n) const 29761: 29761: 29761: 29761: { return std::move(_M_current[__n]); } 29761: # 1662 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: }; 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator==(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: 29761: 29761: 29761: { return __x.base() == __y.base(); } 29761: # 1683 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator!=(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: 29761: 29761: 29761: { return __x.base() < __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<=(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: 29761: 29761: 29761: { return !(__y < __x); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: 29761: 29761: 29761: { return __y < __x; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>=(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: 29761: 29761: 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator==(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: 29761: { return __x.base() == __y.base(); } 29761: # 1750 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator!=(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: { return __x.base() < __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<=(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: { return !(__y < __x); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: { return __y < __x; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>=(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr auto 29761: operator-(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: -> decltype(__x.base() - __y.base()) 29761: { return __x.base() - __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr move_iterator<_Iterator> 29761: operator+(typename move_iterator<_Iterator>::difference_type __n, 29761: const move_iterator<_Iterator>& __x) 29761: 29761: 29761: 29761: { return __x + __n; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr move_iterator<_Iterator> 29761: make_move_iterator(_Iterator __i) 29761: { return move_iterator<_Iterator>(std::move(__i)); } 29761: 29761: template::value_type>::value, 29761: _Iterator, move_iterator<_Iterator>>> 29761: inline constexpr _ReturnType 29761: __make_move_if_noexcept_iterator(_Iterator __i) 29761: { return _ReturnType(__i); } 29761: 29761: 29761: 29761: template::value, 29761: const _Tp*, move_iterator<_Tp*>>> 29761: inline constexpr _ReturnType 29761: __make_move_if_noexcept_iterator(_Tp* __i) 29761: { return _ReturnType(__i); } 29761: # 2964 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: 29761: auto 29761: __niter_base(move_iterator<_Iterator> __it) 29761: -> decltype(make_move_iterator(__niter_base(__it.base()))) 29761: { return make_move_iterator(__niter_base(__it.base())); } 29761: 29761: template 29761: struct __is_move_iterator > 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template 29761: 29761: auto 29761: __miter_base(move_iterator<_Iterator> __it) 29761: -> decltype(__miter_base(__it.base())) 29761: { return __miter_base(__it.base()); } 29761: # 2996 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: using __iter_key_t = remove_const_t< 29761: 29761: 29761: 29761: typename iterator_traits<_InputIterator>::value_type::first_type>; 29761: 29761: 29761: template 29761: using __iter_val_t 29761: 29761: 29761: 29761: = typename iterator_traits<_InputIterator>::value_type::second_type; 29761: 29761: 29761: template 29761: struct pair; 29761: 29761: template 29761: using __iter_to_alloc_t 29761: = pair, __iter_val_t<_InputIterator>>; 29761: 29761: 29761: 29761: } 29761: # 68 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/debug/debug.h" 1 3 29761: # 48 "/usr/include/c++/14/debug/debug.h" 3 29761: namespace std 29761: { 29761: namespace __debug { } 29761: } 29761: 29761: 29761: 29761: 29761: namespace __gnu_debug 29761: { 29761: using namespace std::__debug; 29761: 29761: template 29761: struct _Safe_iterator; 29761: } 29761: # 70 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/predefined_ops.h" 1 3 29761: # 35 "/usr/include/c++/14/bits/predefined_ops.h" 3 29761: namespace __gnu_cxx 29761: { 29761: namespace __ops 29761: { 29761: struct _Iter_less_iter 29761: { 29761: template 29761: constexpr 29761: bool 29761: operator()(_Iterator1 __it1, _Iterator2 __it2) const 29761: { return *__it1 < *__it2; } 29761: }; 29761: 29761: constexpr 29761: inline _Iter_less_iter 29761: __iter_less_iter() 29761: { return _Iter_less_iter(); } 29761: 29761: struct _Iter_less_val 29761: { 29761: 29761: constexpr _Iter_less_val() = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: _Iter_less_val(_Iter_less_iter) { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it, _Value& __val) const 29761: { return *__it < __val; } 29761: }; 29761: 29761: 29761: inline _Iter_less_val 29761: __iter_less_val() 29761: { return _Iter_less_val(); } 29761: 29761: 29761: inline _Iter_less_val 29761: __iter_comp_val(_Iter_less_iter) 29761: { return _Iter_less_val(); } 29761: 29761: struct _Val_less_iter 29761: { 29761: 29761: constexpr _Val_less_iter() = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: _Val_less_iter(_Iter_less_iter) { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Value& __val, _Iterator __it) const 29761: { return __val < *__it; } 29761: }; 29761: 29761: 29761: inline _Val_less_iter 29761: __val_less_iter() 29761: { return _Val_less_iter(); } 29761: 29761: 29761: inline _Val_less_iter 29761: __val_comp_iter(_Iter_less_iter) 29761: { return _Val_less_iter(); } 29761: 29761: struct _Iter_equal_to_iter 29761: { 29761: template 29761: 29761: bool 29761: operator()(_Iterator1 __it1, _Iterator2 __it2) const 29761: { return *__it1 == *__it2; } 29761: }; 29761: 29761: 29761: inline _Iter_equal_to_iter 29761: __iter_equal_to_iter() 29761: { return _Iter_equal_to_iter(); } 29761: 29761: struct _Iter_equal_to_val 29761: { 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it, _Value& __val) const 29761: { return *__it == __val; } 29761: }; 29761: 29761: 29761: inline _Iter_equal_to_val 29761: __iter_equal_to_val() 29761: { return _Iter_equal_to_val(); } 29761: 29761: 29761: inline _Iter_equal_to_val 29761: __iter_comp_val(_Iter_equal_to_iter) 29761: { return _Iter_equal_to_val(); } 29761: 29761: template 29761: struct _Iter_comp_iter 29761: { 29761: _Compare _M_comp; 29761: 29761: explicit constexpr 29761: _Iter_comp_iter(_Compare __comp) 29761: : _M_comp(std::move(__comp)) 29761: { } 29761: 29761: template 29761: constexpr 29761: bool 29761: operator()(_Iterator1 __it1, _Iterator2 __it2) 29761: { return bool(_M_comp(*__it1, *__it2)); } 29761: }; 29761: 29761: template 29761: constexpr 29761: inline _Iter_comp_iter<_Compare> 29761: __iter_comp_iter(_Compare __comp) 29761: { return _Iter_comp_iter<_Compare>(std::move(__comp)); } 29761: 29761: template 29761: struct _Iter_comp_val 29761: { 29761: _Compare _M_comp; 29761: 29761: 29761: explicit 29761: _Iter_comp_val(_Compare __comp) 29761: : _M_comp(std::move(__comp)) 29761: { } 29761: 29761: 29761: explicit 29761: _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) 29761: : _M_comp(__comp._M_comp) 29761: { } 29761: 29761: 29761: 29761: explicit 29761: _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) 29761: : _M_comp(std::move(__comp._M_comp)) 29761: { } 29761: 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it, _Value& __val) 29761: { return bool(_M_comp(*__it, __val)); } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_comp_val<_Compare> 29761: __iter_comp_val(_Compare __comp) 29761: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 29761: 29761: template 29761: 29761: inline _Iter_comp_val<_Compare> 29761: __iter_comp_val(_Iter_comp_iter<_Compare> __comp) 29761: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 29761: 29761: template 29761: struct _Val_comp_iter 29761: { 29761: _Compare _M_comp; 29761: 29761: 29761: explicit 29761: _Val_comp_iter(_Compare __comp) 29761: : _M_comp(std::move(__comp)) 29761: { } 29761: 29761: 29761: explicit 29761: _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) 29761: : _M_comp(__comp._M_comp) 29761: { } 29761: 29761: 29761: 29761: explicit 29761: _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) 29761: : _M_comp(std::move(__comp._M_comp)) 29761: { } 29761: 29761: 29761: template 29761: 29761: bool 29761: operator()(_Value& __val, _Iterator __it) 29761: { return bool(_M_comp(__val, *__it)); } 29761: }; 29761: 29761: template 29761: 29761: inline _Val_comp_iter<_Compare> 29761: __val_comp_iter(_Compare __comp) 29761: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 29761: 29761: template 29761: 29761: inline _Val_comp_iter<_Compare> 29761: __val_comp_iter(_Iter_comp_iter<_Compare> __comp) 29761: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 29761: 29761: template 29761: struct _Iter_equals_val 29761: { 29761: _Value& _M_value; 29761: 29761: 29761: explicit 29761: _Iter_equals_val(_Value& __value) 29761: : _M_value(__value) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it) 29761: { return *__it == _M_value; } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_equals_val<_Value> 29761: __iter_equals_val(_Value& __val) 29761: { return _Iter_equals_val<_Value>(__val); } 29761: 29761: template 29761: struct _Iter_equals_iter 29761: { 29761: _Iterator1 _M_it1; 29761: 29761: 29761: explicit 29761: _Iter_equals_iter(_Iterator1 __it1) 29761: : _M_it1(__it1) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator2 __it2) 29761: { return *__it2 == *_M_it1; } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_equals_iter<_Iterator> 29761: __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) 29761: { return _Iter_equals_iter<_Iterator>(__it); } 29761: 29761: template 29761: struct _Iter_pred 29761: { 29761: _Predicate _M_pred; 29761: 29761: 29761: explicit 29761: _Iter_pred(_Predicate __pred) 29761: : _M_pred(std::move(__pred)) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it) 29761: { return bool(_M_pred(*__it)); } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_pred<_Predicate> 29761: __pred_iter(_Predicate __pred) 29761: { return _Iter_pred<_Predicate>(std::move(__pred)); } 29761: 29761: template 29761: struct _Iter_comp_to_val 29761: { 29761: _Compare _M_comp; 29761: _Value& _M_value; 29761: 29761: 29761: _Iter_comp_to_val(_Compare __comp, _Value& __value) 29761: : _M_comp(std::move(__comp)), _M_value(__value) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it) 29761: { return bool(_M_comp(*__it, _M_value)); } 29761: }; 29761: 29761: template 29761: _Iter_comp_to_val<_Compare, _Value> 29761: 29761: __iter_comp_val(_Compare __comp, _Value &__val) 29761: { 29761: return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); 29761: } 29761: 29761: template 29761: struct _Iter_comp_to_iter 29761: { 29761: _Compare _M_comp; 29761: _Iterator1 _M_it1; 29761: 29761: 29761: _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) 29761: : _M_comp(std::move(__comp)), _M_it1(__it1) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator2 __it2) 29761: { return bool(_M_comp(*__it2, *_M_it1)); } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_comp_to_iter<_Compare, _Iterator> 29761: __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) 29761: { 29761: return _Iter_comp_to_iter<_Compare, _Iterator>( 29761: std::move(__comp._M_comp), __it); 29761: } 29761: 29761: template 29761: struct _Iter_negate 29761: { 29761: _Predicate _M_pred; 29761: 29761: 29761: explicit 29761: _Iter_negate(_Predicate __pred) 29761: : _M_pred(std::move(__pred)) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it) 29761: { return !bool(_M_pred(*__it)); } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_negate<_Predicate> 29761: __negate(_Iter_pred<_Predicate> __pred) 29761: { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } 29761: 29761: } 29761: } 29761: # 72 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bit" 1 3 29761: # 32 "/usr/include/c++/14/bit" 3 29761: 29761: # 33 "/usr/include/c++/14/bit" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/concepts" 1 3 29761: # 33 "/usr/include/c++/14/concepts" 3 29761: 29761: # 34 "/usr/include/c++/14/concepts" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 37 "/usr/include/c++/14/concepts" 2 3 29761: # 37 "/usr/include/c++/14/bit" 2 3 29761: # 61 "/usr/include/c++/14/bit" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 62 "/usr/include/c++/14/bit" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 155 "/usr/include/c++/14/bit" 3 29761: template 29761: constexpr _Tp 29761: __rotl(_Tp __x, int __s) noexcept 29761: { 29761: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29761: if constexpr ((_Nd & (_Nd - 1)) == 0) 29761: { 29761: 29761: 29761: constexpr unsigned __uNd = _Nd; 29761: const unsigned __r = __s; 29761: return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); 29761: } 29761: const int __r = __s % _Nd; 29761: if (__r == 0) 29761: return __x; 29761: else if (__r > 0) 29761: return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); 29761: else 29761: return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); 29761: } 29761: 29761: template 29761: constexpr _Tp 29761: __rotr(_Tp __x, int __s) noexcept 29761: { 29761: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29761: if constexpr ((_Nd & (_Nd - 1)) == 0) 29761: { 29761: 29761: 29761: constexpr unsigned __uNd = _Nd; 29761: const unsigned __r = __s; 29761: return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); 29761: } 29761: const int __r = __s % _Nd; 29761: if (__r == 0) 29761: return __x; 29761: else if (__r > 0) 29761: return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); 29761: else 29761: return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); 29761: } 29761: 29761: template 29761: constexpr int 29761: __countl_zero(_Tp __x) noexcept 29761: { 29761: using __gnu_cxx::__int_traits; 29761: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29761: 29761: if (__x == 0) 29761: return _Nd; 29761: 29761: constexpr auto _Nd_ull = __int_traits::__digits; 29761: constexpr auto _Nd_ul = __int_traits::__digits; 29761: constexpr auto _Nd_u = __int_traits::__digits; 29761: 29761: if constexpr (_Nd <= _Nd_u) 29761: { 29761: constexpr int __diff = _Nd_u - _Nd; 29761: return __builtin_clz(__x) - __diff; 29761: } 29761: else if constexpr (_Nd <= _Nd_ul) 29761: { 29761: constexpr int __diff = _Nd_ul - _Nd; 29761: return __builtin_clzl(__x) - __diff; 29761: } 29761: else if constexpr (_Nd <= _Nd_ull) 29761: { 29761: constexpr int __diff = _Nd_ull - _Nd; 29761: return __builtin_clzll(__x) - __diff; 29761: } 29761: else 29761: { 29761: static_assert(_Nd <= (2 * _Nd_ull), 29761: "Maximum supported integer size is 128-bit"); 29761: 29761: unsigned long long __high = __x >> _Nd_ull; 29761: if (__high != 0) 29761: { 29761: constexpr int __diff = (2 * _Nd_ull) - _Nd; 29761: return __builtin_clzll(__high) - __diff; 29761: } 29761: constexpr auto __max_ull = __int_traits::__max; 29761: unsigned long long __low = __x & __max_ull; 29761: return (_Nd - _Nd_ull) + __builtin_clzll(__low); 29761: } 29761: } 29761: 29761: template 29761: constexpr int 29761: __countl_one(_Tp __x) noexcept 29761: { 29761: return std::__countl_zero<_Tp>((_Tp)~__x); 29761: } 29761: 29761: template 29761: constexpr int 29761: __countr_zero(_Tp __x) noexcept 29761: { 29761: using __gnu_cxx::__int_traits; 29761: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29761: 29761: if (__x == 0) 29761: return _Nd; 29761: 29761: constexpr auto _Nd_ull = __int_traits::__digits; 29761: constexpr auto _Nd_ul = __int_traits::__digits; 29761: constexpr auto _Nd_u = __int_traits::__digits; 29761: 29761: if constexpr (_Nd <= _Nd_u) 29761: return __builtin_ctz(__x); 29761: else if constexpr (_Nd <= _Nd_ul) 29761: return __builtin_ctzl(__x); 29761: else if constexpr (_Nd <= _Nd_ull) 29761: return __builtin_ctzll(__x); 29761: else 29761: { 29761: static_assert(_Nd <= (2 * _Nd_ull), 29761: "Maximum supported integer size is 128-bit"); 29761: 29761: constexpr auto __max_ull = __int_traits::__max; 29761: unsigned long long __low = __x & __max_ull; 29761: if (__low != 0) 29761: return __builtin_ctzll(__low); 29761: unsigned long long __high = __x >> _Nd_ull; 29761: return __builtin_ctzll(__high) + _Nd_ull; 29761: } 29761: } 29761: 29761: template 29761: constexpr int 29761: __countr_one(_Tp __x) noexcept 29761: { 29761: return std::__countr_zero((_Tp)~__x); 29761: } 29761: 29761: template 29761: constexpr int 29761: __popcount(_Tp __x) noexcept 29761: { 29761: using __gnu_cxx::__int_traits; 29761: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29761: 29761: constexpr auto _Nd_ull = __int_traits::__digits; 29761: constexpr auto _Nd_ul = __int_traits::__digits; 29761: constexpr auto _Nd_u = __int_traits::__digits; 29761: 29761: if constexpr (_Nd <= _Nd_u) 29761: return __builtin_popcount(__x); 29761: else if constexpr (_Nd <= _Nd_ul) 29761: return __builtin_popcountl(__x); 29761: else if constexpr (_Nd <= _Nd_ull) 29761: return __builtin_popcountll(__x); 29761: else 29761: { 29761: static_assert(_Nd <= (2 * _Nd_ull), 29761: "Maximum supported integer size is 128-bit"); 29761: 29761: constexpr auto __max_ull = __int_traits::__max; 29761: unsigned long long __low = __x & __max_ull; 29761: unsigned long long __high = __x >> _Nd_ull; 29761: return __builtin_popcountll(__low) + __builtin_popcountll(__high); 29761: } 29761: } 29761: 29761: template 29761: constexpr bool 29761: __has_single_bit(_Tp __x) noexcept 29761: { return std::__popcount(__x) == 1; } 29761: 29761: template 29761: constexpr _Tp 29761: __bit_ceil(_Tp __x) noexcept 29761: { 29761: using __gnu_cxx::__int_traits; 29761: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29761: if (__x == 0 || __x == 1) 29761: return 1; 29761: auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); 29761: 29761: 29761: 29761: 29761: if (!std::__is_constant_evaluated()) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__shift_exponent != __int_traits<_Tp>::__digits)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: using __promoted_type = decltype(__x << 1); 29761: if constexpr (!is_same<__promoted_type, _Tp>::value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; 29761: __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; 29761: } 29761: return (_Tp)1u << __shift_exponent; 29761: } 29761: 29761: template 29761: constexpr _Tp 29761: __bit_floor(_Tp __x) noexcept 29761: { 29761: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29761: if (__x == 0) 29761: return 0; 29761: return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); 29761: } 29761: 29761: template 29761: constexpr int 29761: __bit_width(_Tp __x) noexcept 29761: { 29761: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29761: return _Nd - std::__countl_zero(__x); 29761: } 29761: # 482 "/usr/include/c++/14/bit" 3 29761: 29761: } 29761: # 77 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr 29761: inline int 29761: __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) 29761: { 29761: 29761: static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); 29761: # 108 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); 29761: } 29761: # 152 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline void 29761: iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) 29761: { 29761: 29761: 29761: 29761: 29761: # 185 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: swap(*__a, *__b); 29761: 29761: } 29761: # 201 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: _ForwardIterator2 29761: swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2) 29761: std::iter_swap(__first1, __first2); 29761: return __first2; 29761: } 29761: # 230 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline const _Tp& 29761: min(const _Tp& __a, const _Tp& __b) 29761: { 29761: 29761: 29761: 29761: if (__b < __a) 29761: return __b; 29761: return __a; 29761: } 29761: # 254 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline const _Tp& 29761: max(const _Tp& __a, const _Tp& __b) 29761: { 29761: 29761: 29761: 29761: if (__a < __b) 29761: return __b; 29761: return __a; 29761: } 29761: # 278 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline const _Tp& 29761: min(const _Tp& __a, const _Tp& __b, _Compare __comp) 29761: { 29761: 29761: if (__comp(__b, __a)) 29761: return __b; 29761: return __a; 29761: } 29761: # 300 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline const _Tp& 29761: max(const _Tp& __a, const _Tp& __b, _Compare __comp) 29761: { 29761: 29761: if (__comp(__a, __b)) 29761: return __b; 29761: return __a; 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: inline _Iterator 29761: __niter_base(_Iterator __it) 29761: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 29761: { return __it; } 29761: # 332 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: decltype(std::__niter_base(std::declval<_Ite>())) 29761: __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, 29761: std::random_access_iterator_tag>&) 29761: noexcept(std::is_nothrow_copy_constructible<_Ite>::value); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline _From 29761: __niter_wrap(_From __from, _To __res) 29761: { return __from + (std::__niter_base(__res) - std::__niter_base(__from)); } 29761: 29761: 29761: template 29761: 29761: inline _Iterator 29761: __niter_wrap(const _Iterator&, _Iterator __res) 29761: { return __res; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __copy_move 29761: { 29761: template 29761: 29761: static _OI 29761: __copy_m(_II __first, _II __last, _OI __result) 29761: { 29761: for (; __first != __last; ++__result, (void)++__first) 29761: *__result = *__first; 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct __copy_move 29761: { 29761: template 29761: 29761: static _OI 29761: __copy_m(_II __first, _II __last, _OI __result) 29761: { 29761: for (; __first != __last; ++__result, (void)++__first) 29761: *__result = std::move(*__first); 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: struct __copy_move 29761: { 29761: template 29761: 29761: static _OI 29761: __copy_m(_II __first, _II __last, _OI __result) 29761: { 29761: typedef typename iterator_traits<_II>::difference_type _Distance; 29761: for(_Distance __n = __last - __first; __n > 0; --__n) 29761: { 29761: *__result = *__first; 29761: ++__first; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: static void 29761: __assign_one(_Tp* __to, _Up* __from) 29761: { *__to = *__from; } 29761: }; 29761: 29761: 29761: template<> 29761: struct __copy_move 29761: { 29761: template 29761: 29761: static _OI 29761: __copy_m(_II __first, _II __last, _OI __result) 29761: { 29761: typedef typename iterator_traits<_II>::difference_type _Distance; 29761: for(_Distance __n = __last - __first; __n > 0; --__n) 29761: { 29761: *__result = std::move(*__first); 29761: ++__first; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: static void 29761: __assign_one(_Tp* __to, _Up* __from) 29761: { *__to = std::move(*__from); } 29761: }; 29761: 29761: 29761: template 29761: struct __copy_move<_IsMove, true, random_access_iterator_tag> 29761: { 29761: template 29761: 29761: static _Up* 29761: __copy_m(_Tp* __first, _Tp* __last, _Up* __result) 29761: { 29761: const ptrdiff_t _Num = __last - __first; 29761: if (__builtin_expect(_Num > 1, true)) 29761: __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); 29761: else if (_Num == 1) 29761: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 29761: __assign_one(__result, __first); 29761: return __result + _Num; 29761: } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct _Deque_iterator; 29761: 29761: struct _Bit_iterator; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct char_traits; 29761: 29761: template 29761: class istreambuf_iterator; 29761: 29761: template 29761: class ostreambuf_iterator; 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 29761: __copy_move_a2(_CharT*, _CharT*, 29761: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 29761: __copy_move_a2(const _CharT*, const _CharT*, 29761: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: _CharT*>::__type 29761: __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, 29761: istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_char<_CharT>::__value, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29761: __copy_move_a2( 29761: istreambuf_iterator<_CharT, char_traits<_CharT> >, 29761: istreambuf_iterator<_CharT, char_traits<_CharT> >, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*>); 29761: 29761: 29761: template 29761: 29761: inline _OI 29761: __copy_move_a2(_II __first, _II __last, _OI __result) 29761: { 29761: typedef typename iterator_traits<_II>::iterator_category _Category; 29761: 29761: 29761: 29761: 29761: 29761: return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, 29761: _Category>::__copy_m(__first, __last, __result); 29761: } 29761: 29761: template 29761: _OI 29761: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: _OI); 29761: 29761: template 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29761: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29761: __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 29761: 29761: template 29761: 29761: inline _OI 29761: __copy_move_a1(_II __first, _II __last, _OI __result) 29761: { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: 29761: inline _OI 29761: __copy_move_a(_II __first, _II __last, _OI __result) 29761: { 29761: return std::__niter_wrap(__result, 29761: std::__copy_move_a1<_IsMove>(std::__niter_base(__first), 29761: std::__niter_base(__last), 29761: std::__niter_base(__result))); 29761: } 29761: 29761: template 29761: 29761: _OI 29761: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: _OI); 29761: 29761: template 29761: 29761: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29761: __copy_move_a(_II, _II, 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 29761: 29761: template 29761: 29761: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 29761: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29761: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29761: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 29761: 29761: template 29761: 29761: _OutputIterator 29761: __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, 29761: bool) 29761: { 29761: if (__n > 0) 29761: { 29761: while (true) 29761: { 29761: *__result = *__first; 29761: ++__result; 29761: if (--__n > 0) 29761: ++__first; 29761: else 29761: break; 29761: } 29761: } 29761: return __result; 29761: } 29761: 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_char<_CharT>::__value, _CharT*>::__type 29761: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, 29761: _Size, _CharT*, bool); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_char<_CharT>::__value, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29761: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*>, 29761: bool); 29761: # 639 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _OI 29761: copy(_II __first, _II __last, _OI __result) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__copy_move_a<__is_move_iterator<_II>::__value> 29761: (std::__miter_base(__first), std::__miter_base(__last), __result); 29761: } 29761: # 672 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _OI 29761: move(_II __first, _II __last, _OI __result) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__copy_move_a(std::__miter_base(__first), 29761: std::__miter_base(__last), __result); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __copy_move_backward 29761: { 29761: template 29761: 29761: static _BI2 29761: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: while (__first != __last) 29761: *--__result = *--__last; 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct __copy_move_backward 29761: { 29761: template 29761: 29761: static _BI2 29761: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: while (__first != __last) 29761: *--__result = std::move(*--__last); 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: struct __copy_move_backward 29761: { 29761: template 29761: 29761: static _BI2 29761: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: typename iterator_traits<_BI1>::difference_type 29761: __n = __last - __first; 29761: for (; __n > 0; --__n) 29761: *--__result = *--__last; 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: struct __copy_move_backward 29761: { 29761: template 29761: 29761: static _BI2 29761: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: typename iterator_traits<_BI1>::difference_type 29761: __n = __last - __first; 29761: for (; __n > 0; --__n) 29761: *--__result = std::move(*--__last); 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> 29761: { 29761: template 29761: 29761: static _Up* 29761: __copy_move_b(_Tp* __first, _Tp* __last, _Up* __result) 29761: { 29761: const ptrdiff_t _Num = __last - __first; 29761: if (__builtin_expect(_Num > 1, true)) 29761: __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); 29761: else if (_Num == 1) 29761: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 29761: __assign_one(__result - 1, __first); 29761: return __result - _Num; 29761: } 29761: }; 29761: 29761: template 29761: 29761: inline _BI2 29761: __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: typedef typename iterator_traits<_BI1>::iterator_category _Category; 29761: 29761: 29761: 29761: 29761: 29761: return std::__copy_move_backward<_IsMove, 29761: __memcpyable<_BI2, _BI1>::__value, 29761: _Category>::__copy_move_b(__first, 29761: __last, 29761: __result); 29761: } 29761: 29761: template 29761: 29761: inline _BI2 29761: __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: _OI 29761: __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: _OI); 29761: 29761: template 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29761: __copy_move_backward_a1( 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29761: __copy_move_backward_a1(_II, _II, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 29761: 29761: template 29761: 29761: inline _OI 29761: __copy_move_backward_a(_II __first, _II __last, _OI __result) 29761: { 29761: return std::__niter_wrap(__result, 29761: std::__copy_move_backward_a1<_IsMove> 29761: (std::__niter_base(__first), std::__niter_base(__last), 29761: std::__niter_base(__result))); 29761: } 29761: 29761: template 29761: 29761: _OI 29761: __copy_move_backward_a( 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: _OI); 29761: 29761: template 29761: 29761: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29761: __copy_move_backward_a(_II, _II, 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 29761: 29761: template 29761: 29761: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 29761: __copy_move_backward_a( 29761: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29761: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29761: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 29761: # 875 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _BI2 29761: copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> 29761: (std::__miter_base(__first), std::__miter_base(__last), __result); 29761: } 29761: # 910 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _BI2 29761: move_backward(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__copy_move_backward_a(std::__miter_base(__first), 29761: std::__miter_base(__last), 29761: __result); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline typename 29761: __gnu_cxx::__enable_if::__value, void>::__type 29761: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __value) 29761: { 29761: for (; __first != __last; ++__first) 29761: *__first = __value; 29761: } 29761: 29761: template 29761: 29761: inline typename 29761: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type 29761: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __value) 29761: { 29761: const _Tp __tmp = __value; 29761: for (; __first != __last; ++__first) 29761: *__first = __tmp; 29761: } 29761: 29761: 29761: template 29761: 29761: inline typename 29761: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type 29761: __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) 29761: { 29761: const _Tp __tmp = __c; 29761: # 971 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: if (const size_t __len = __last - __first) 29761: __builtin_memset(__first, static_cast(__tmp), __len); 29761: } 29761: 29761: template 29761: 29761: inline void 29761: __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, 29761: ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, 29761: const _Tp& __value) 29761: { std::__fill_a1(__first.base(), __last.base(), __value); } 29761: 29761: template 29761: void 29761: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 29761: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 29761: const _VTp&); 29761: 29761: 29761: void 29761: __fill_a1(std::_Bit_iterator, std::_Bit_iterator, 29761: const bool&); 29761: 29761: template 29761: 29761: inline void 29761: __fill_a(_FIte __first, _FIte __last, const _Tp& __value) 29761: { std::__fill_a1(__first, __last, __value); } 29761: 29761: template 29761: 29761: void 29761: __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: const _Tp&); 29761: # 1019 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline void 29761: fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: std::__fill_a(__first, __last, __value); 29761: } 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: 29761: inline constexpr int 29761: __size_to_integer(int __n) { return __n; } 29761: inline constexpr unsigned 29761: __size_to_integer(unsigned __n) { return __n; } 29761: inline constexpr long 29761: __size_to_integer(long __n) { return __n; } 29761: inline constexpr unsigned long 29761: __size_to_integer(unsigned long __n) { return __n; } 29761: inline constexpr long long 29761: __size_to_integer(long long __n) { return __n; } 29761: inline constexpr unsigned long long 29761: __size_to_integer(unsigned long long __n) { return __n; } 29761: # 1073 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: inline constexpr long long 29761: __size_to_integer(float __n) { return (long long)__n; } 29761: inline constexpr long long 29761: __size_to_integer(double __n) { return (long long)__n; } 29761: inline constexpr long long 29761: __size_to_integer(long double __n) { return (long long)__n; } 29761: 29761: 29761: 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: template 29761: 29761: inline typename 29761: __gnu_cxx::__enable_if::__value, _OutputIterator>::__type 29761: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 29761: { 29761: for (; __n > 0; --__n, (void) ++__first) 29761: *__first = __value; 29761: return __first; 29761: } 29761: 29761: template 29761: 29761: inline typename 29761: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type 29761: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 29761: { 29761: const _Tp __tmp = __value; 29761: for (; __n > 0; --__n, (void) ++__first) 29761: *__first = __tmp; 29761: return __first; 29761: } 29761: 29761: template 29761: 29761: ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29761: __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, 29761: _Size __n, const _Tp& __value, 29761: std::input_iterator_tag); 29761: 29761: template 29761: 29761: inline _OutputIterator 29761: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29761: std::output_iterator_tag) 29761: { 29761: 29761: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29761: 29761: return __fill_n_a1(__first, __n, __value); 29761: } 29761: 29761: template 29761: 29761: inline _OutputIterator 29761: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29761: std::input_iterator_tag) 29761: { 29761: 29761: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29761: 29761: return __fill_n_a1(__first, __n, __value); 29761: } 29761: 29761: template 29761: 29761: inline _OutputIterator 29761: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29761: std::random_access_iterator_tag) 29761: { 29761: 29761: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29761: 29761: if (__n <= 0) 29761: return __first; 29761: 29761: ; 29761: 29761: std::__fill_a(__first, __first + __n, __value); 29761: return __first + __n; 29761: } 29761: # 1175 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _OI 29761: fill_n(_OI __first, _Size __n, const _Tp& __value) 29761: { 29761: 29761: 29761: 29761: return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: template 29761: struct __equal 29761: { 29761: template 29761: 29761: static bool 29761: equal(_II1 __first1, _II1 __last1, _II2 __first2) 29761: { 29761: for (; __first1 != __last1; ++__first1, (void) ++__first2) 29761: if (!(*__first1 == *__first2)) 29761: return false; 29761: return true; 29761: } 29761: }; 29761: 29761: template<> 29761: struct __equal 29761: { 29761: template 29761: 29761: static bool 29761: equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) 29761: { 29761: if (const size_t __len = (__last1 - __first1)) 29761: return !std::__memcmp(__first1, __first2, __len); 29761: return true; 29761: } 29761: }; 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, bool>::__type 29761: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: _II); 29761: 29761: template 29761: bool 29761: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, bool>::__type 29761: __equal_aux1(_II, _II, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr>); 29761: 29761: template 29761: 29761: inline bool 29761: __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) 29761: { 29761: typedef typename iterator_traits<_II1>::value_type _ValueType1; 29761: const bool __simple = ((__is_integer<_ValueType1>::__value 29761: || __is_pointer<_ValueType1>::__value) 29761: && __memcmpable<_II1, _II2>::__value); 29761: return std::__equal<__simple>::equal(__first1, __last1, __first2); 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) 29761: { 29761: return std::__equal_aux1(std::__niter_base(__first1), 29761: std::__niter_base(__last1), 29761: std::__niter_base(__first2)); 29761: } 29761: 29761: template 29761: 29761: bool 29761: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29761: _II2); 29761: 29761: template 29761: 29761: bool 29761: __equal_aux(_II1, _II1, 29761: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 29761: 29761: template 29761: 29761: bool 29761: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 29761: 29761: template 29761: struct __lc_rai 29761: { 29761: template 29761: 29761: static _II1 29761: __newlast1(_II1, _II1 __last1, _II2, _II2) 29761: { return __last1; } 29761: 29761: template 29761: 29761: static bool 29761: __cnd2(_II __first, _II __last) 29761: { return __first != __last; } 29761: }; 29761: 29761: template<> 29761: struct __lc_rai 29761: { 29761: template 29761: 29761: static _RAI1 29761: __newlast1(_RAI1 __first1, _RAI1 __last1, 29761: _RAI2 __first2, _RAI2 __last2) 29761: { 29761: const typename iterator_traits<_RAI1>::difference_type 29761: __diff1 = __last1 - __first1; 29761: const typename iterator_traits<_RAI2>::difference_type 29761: __diff2 = __last2 - __first2; 29761: return __diff2 < __diff1 ? __first1 + __diff2 : __last1; 29761: } 29761: 29761: template 29761: static bool 29761: __cnd2(_RAI, _RAI) 29761: { return true; } 29761: }; 29761: 29761: template 29761: 29761: bool 29761: __lexicographical_compare_impl(_II1 __first1, _II1 __last1, 29761: _II2 __first2, _II2 __last2, 29761: _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_II1>::iterator_category _Category1; 29761: typedef typename iterator_traits<_II2>::iterator_category _Category2; 29761: typedef std::__lc_rai<_Category1, _Category2> __rai_type; 29761: 29761: __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); 29761: for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); 29761: ++__first1, (void)++__first2) 29761: { 29761: if (__comp(__first1, __first2)) 29761: return true; 29761: if (__comp(__first2, __first1)) 29761: return false; 29761: } 29761: return __first1 == __last1 && __first2 != __last2; 29761: } 29761: 29761: template 29761: struct __lexicographical_compare 29761: { 29761: template 29761: 29761: static bool 29761: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29761: { 29761: using __gnu_cxx::__ops::__iter_less_iter; 29761: return std::__lexicographical_compare_impl(__first1, __last1, 29761: __first2, __last2, 29761: __iter_less_iter()); 29761: } 29761: 29761: template 29761: 29761: static int 29761: __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29761: { 29761: while (__first1 != __last1) 29761: { 29761: if (__first2 == __last2) 29761: return +1; 29761: if (*__first1 < *__first2) 29761: return -1; 29761: if (*__first2 < *__first1) 29761: return +1; 29761: ++__first1; 29761: ++__first2; 29761: } 29761: return int(__first2 == __last2) - 1; 29761: } 29761: }; 29761: 29761: template<> 29761: struct __lexicographical_compare 29761: { 29761: template 29761: 29761: static bool 29761: __lc(const _Tp* __first1, const _Tp* __last1, 29761: const _Up* __first2, const _Up* __last2) 29761: { return __3way(__first1, __last1, __first2, __last2) < 0; } 29761: 29761: template 29761: 29761: static ptrdiff_t 29761: __3way(const _Tp* __first1, const _Tp* __last1, 29761: const _Up* __first2, const _Up* __last2) 29761: { 29761: const size_t __len1 = __last1 - __first1; 29761: const size_t __len2 = __last2 - __first2; 29761: if (const size_t __len = std::min(__len1, __len2)) 29761: if (int __result = std::__memcmp(__first1, __first2, __len)) 29761: return __result; 29761: return ptrdiff_t(__len1 - __len2); 29761: } 29761: }; 29761: 29761: template 29761: 29761: inline bool 29761: __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, 29761: _II2 __first2, _II2 __last2) 29761: { 29761: typedef typename iterator_traits<_II1>::value_type _ValueType1; 29761: typedef typename iterator_traits<_II2>::value_type _ValueType2; 29761: const bool __simple = 29761: (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value 29761: && __is_pointer<_II1>::__value 29761: && __is_pointer<_II2>::__value 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ); 29761: 29761: return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, 29761: __first2, __last2); 29761: } 29761: 29761: template 29761: bool 29761: __lexicographical_compare_aux1( 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: _Tp2*, _Tp2*); 29761: 29761: template 29761: bool 29761: __lexicographical_compare_aux1(_Tp1*, _Tp1*, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29761: 29761: template 29761: bool 29761: __lexicographical_compare_aux1( 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29761: 29761: template 29761: 29761: inline bool 29761: __lexicographical_compare_aux(_II1 __first1, _II1 __last1, 29761: _II2 __first2, _II2 __last2) 29761: { 29761: return std::__lexicographical_compare_aux1(std::__niter_base(__first1), 29761: std::__niter_base(__last1), 29761: std::__niter_base(__first2), 29761: std::__niter_base(__last2)); 29761: } 29761: 29761: template 29761: 29761: bool 29761: __lexicographical_compare_aux( 29761: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29761: _II2, _II2); 29761: 29761: template 29761: 29761: bool 29761: __lexicographical_compare_aux( 29761: _II1, _II1, 29761: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 29761: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 29761: 29761: template 29761: 29761: bool 29761: __lexicographical_compare_aux( 29761: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 29761: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::difference_type 29761: _DistanceType; 29761: 29761: _DistanceType __len = std::distance(__first, __last); 29761: 29761: while (__len > 0) 29761: { 29761: _DistanceType __half = __len >> 1; 29761: _ForwardIterator __middle = __first; 29761: std::advance(__middle, __half); 29761: if (__comp(__middle, __val)) 29761: { 29761: __first = __middle; 29761: ++__first; 29761: __len = __len - __half - 1; 29761: } 29761: else 29761: __len = __half; 29761: } 29761: return __first; 29761: } 29761: # 1527 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__lower_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_less_val()); 29761: } 29761: 29761: 29761: 29761: template 29761: inline constexpr _Tp 29761: __lg(_Tp __n) 29761: { 29761: 29761: return std::__bit_width(make_unsigned_t<_Tp>(__n)) - 1; 29761: # 1563 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: } 29761: 29761: 29761: # 1579 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: equal(_II1 __first1, _II1 __last1, _II2 __first2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__equal_aux(__first1, __last1, __first2); 29761: } 29761: # 1610 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: equal(_IIter1 __first1, _IIter1 __last1, 29761: _IIter2 __first2, _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2) 29761: if (!bool(__binary_pred(*__first1, *__first2))) 29761: return false; 29761: return true; 29761: } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: 29761: 29761: template 29761: 29761: inline bool 29761: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29761: { 29761: using _RATag = random_access_iterator_tag; 29761: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 29761: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 29761: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 29761: if constexpr (_RAIters::value) 29761: { 29761: if ((__last1 - __first1) != (__last2 - __first2)) 29761: return false; 29761: return std::equal(__first1, __last1, __first2); 29761: } 29761: else 29761: { 29761: for (; __first1 != __last1 && __first2 != __last2; 29761: ++__first1, (void)++__first2) 29761: if (!(*__first1 == *__first2)) 29761: return false; 29761: return __first1 == __last1 && __first2 == __last2; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline bool 29761: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: using _RATag = random_access_iterator_tag; 29761: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 29761: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 29761: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 29761: if constexpr (_RAIters::value) 29761: { 29761: if ((__last1 - __first1) != (__last2 - __first2)) 29761: return false; 29761: return std::equal(__first1, __last1, __first2, 29761: __binary_pred); 29761: } 29761: else 29761: { 29761: for (; __first1 != __last1 && __first2 != __last2; 29761: ++__first1, (void)++__first2) 29761: if (!bool(__binary_pred(*__first1, *__first2))) 29761: return false; 29761: return __first1 == __last1 && __first2 == __last2; 29761: } 29761: } 29761: #pragma GCC diagnostic pop 29761: # 1701 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__equal4(__first1, __last1, __first2, __last2); 29761: } 29761: # 1734 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: equal(_IIter1 __first1, _IIter1 __last1, 29761: _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__equal4(__first1, __last1, __first2, __last2, 29761: __binary_pred); 29761: } 29761: # 1766 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: lexicographical_compare(_II1 __first1, _II1 __last1, 29761: _II2 __first2, _II2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__lexicographical_compare_aux(__first1, __last1, 29761: __first2, __last2); 29761: } 29761: # 1801 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: lexicographical_compare(_II1 __first1, _II1 __last1, 29761: _II2 __first2, _II2 __last2, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__lexicographical_compare_impl 29761: (__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 1916 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: pair<_InputIterator1, _InputIterator2> 29761: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 29761: { 29761: while (__first1 != __last1 && __binary_pred(__first1, __first2)) 29761: { 29761: ++__first1; 29761: ++__first2; 29761: } 29761: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 29761: } 29761: # 1944 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_InputIterator1, _InputIterator2> 29761: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__mismatch(__first1, __last1, __first2, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 1978 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_InputIterator1, _InputIterator2> 29761: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__mismatch(__first1, __last1, __first2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29761: } 29761: 29761: 29761: template 29761: 29761: pair<_InputIterator1, _InputIterator2> 29761: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2 29761: && __binary_pred(__first1, __first2)) 29761: { 29761: ++__first1; 29761: ++__first2; 29761: } 29761: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 29761: } 29761: # 2026 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_InputIterator1, _InputIterator2> 29761: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__mismatch(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 2062 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_InputIterator1, _InputIterator2> 29761: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__mismatch(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline _InputIterator 29761: __find_if(_InputIterator __first, _InputIterator __last, 29761: _Predicate __pred, input_iterator_tag) 29761: { 29761: while (__first != __last && !__pred(__first)) 29761: ++__first; 29761: return __first; 29761: } 29761: 29761: 29761: template 29761: 29761: _RandomAccessIterator 29761: __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Predicate __pred, random_access_iterator_tag) 29761: { 29761: typename iterator_traits<_RandomAccessIterator>::difference_type 29761: __trip_count = (__last - __first) >> 2; 29761: 29761: for (; __trip_count > 0; --__trip_count) 29761: { 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: } 29761: 29761: switch (__last - __first) 29761: { 29761: case 3: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: case 2: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: case 1: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: case 0: 29761: default: 29761: return __last; 29761: } 29761: } 29761: 29761: template 29761: 29761: inline _Iterator 29761: __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) 29761: { 29761: return __find_if(__first, __last, __pred, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: template 29761: 29761: typename iterator_traits<_InputIterator>::difference_type 29761: __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29761: { 29761: typename iterator_traits<_InputIterator>::difference_type __n = 0; 29761: for (; __first != __last; ++__first) 29761: if (__pred(__first)) 29761: ++__n; 29761: return __n; 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __remove_if(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: __first = std::__find_if(__first, __last, __pred); 29761: if (__first == __last) 29761: return __first; 29761: _ForwardIterator __result = __first; 29761: ++__first; 29761: for (; __first != __last; ++__first) 29761: if (!__pred(__first)) 29761: { 29761: *__result = std::move(*__first); 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator1 29761: __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: _BinaryPredicate __predicate) 29761: { 29761: 29761: if (__first1 == __last1 || __first2 == __last2) 29761: return __first1; 29761: 29761: 29761: _ForwardIterator2 __p1(__first2); 29761: if (++__p1 == __last2) 29761: return std::__find_if(__first1, __last1, 29761: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 29761: 29761: 29761: _ForwardIterator1 __current = __first1; 29761: 29761: for (;;) 29761: { 29761: __first1 = 29761: std::__find_if(__first1, __last1, 29761: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 29761: 29761: if (__first1 == __last1) 29761: return __last1; 29761: 29761: _ForwardIterator2 __p = __p1; 29761: __current = __first1; 29761: if (++__current == __last1) 29761: return __last1; 29761: 29761: while (__predicate(__current, __p)) 29761: { 29761: if (++__p == __last2) 29761: return __first1; 29761: if (++__current == __last1) 29761: return __last1; 29761: } 29761: ++__first1; 29761: } 29761: return __first1; 29761: } 29761: 29761: 29761: template 29761: 29761: bool 29761: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _BinaryPredicate __pred) 29761: { 29761: 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2) 29761: if (!__pred(__first1, __first2)) 29761: break; 29761: 29761: if (__first1 == __last1) 29761: return true; 29761: 29761: 29761: 29761: _ForwardIterator2 __last2 = __first2; 29761: std::advance(__last2, std::distance(__first1, __last1)); 29761: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 29761: { 29761: if (__scan != std::__find_if(__first1, __scan, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 29761: continue; 29761: 29761: auto __matches 29761: = std::__count_if(__first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 29761: if (0 == __matches || 29761: std::__count_if(__scan, __last1, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 29761: != __matches) 29761: return false; 29761: } 29761: return true; 29761: } 29761: # 2286 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline bool 29761: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__is_permutation(__first1, __last1, __first2, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: 29761: 29761: 29761: # 2328 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _ForwardIterator1 29761: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: _BinaryPredicate __predicate) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__search(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__predicate)); 29761: } 29761: 29761: 29761: 29761: } 29761: # 63 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/allocator.h" 1 3 29761: # 46 "/usr/include/c++/14/bits/allocator.h" 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 1 3 29761: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 29761: # 1 "/usr/include/c++/14/bits/new_allocator.h" 1 3 29761: # 41 "/usr/include/c++/14/bits/new_allocator.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 62 "/usr/include/c++/14/bits/new_allocator.h" 3 29761: template 29761: class __new_allocator 29761: { 29761: public: 29761: typedef _Tp value_type; 29761: typedef std::size_t size_type; 29761: typedef std::ptrdiff_t difference_type; 29761: 29761: typedef _Tp* pointer; 29761: typedef const _Tp* const_pointer; 29761: typedef _Tp& reference; 29761: typedef const _Tp& const_reference; 29761: 29761: template 29761: struct rebind 29761: { typedef __new_allocator<_Tp1> other; }; 29761: 29761: 29761: 29761: 29761: 29761: typedef std::true_type propagate_on_container_move_assignment; 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: 29761: __new_allocator() noexcept { } 29761: 29761: __attribute__((__always_inline__)) 29761: 29761: __new_allocator(const __new_allocator&) noexcept { } 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: 29761: __new_allocator(const __new_allocator<_Tp1>&) noexcept { } 29761: 29761: 29761: __new_allocator& operator=(const __new_allocator&) = default; 29761: 29761: 29761: 29761: ~__new_allocator() noexcept { } 29761: 29761: pointer 29761: address(reference __x) const noexcept 29761: { return std::__addressof(__x); } 29761: 29761: const_pointer 29761: address(const_reference __x) const noexcept 29761: { return std::__addressof(__x); } 29761: # 125 "/usr/include/c++/14/bits/new_allocator.h" 3 29761: [[__nodiscard__]] _Tp* 29761: allocate(size_type __n, const void* = static_cast(0)) 29761: { 29761: 29761: 29761: 29761: static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); 29761: 29761: 29761: if (__builtin_expect(__n > this->_M_max_size(), false)) 29761: { 29761: 29761: 29761: if (__n > (std::size_t(-1) / sizeof(_Tp))) 29761: std::__throw_bad_array_new_length(); 29761: std::__throw_bad_alloc(); 29761: } 29761: 29761: 29761: if (alignof(_Tp) > 8) 29761: { 29761: std::align_val_t __al = std::align_val_t(alignof(_Tp)); 29761: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), 29761: __al)); 29761: } 29761: 29761: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 29761: } 29761: 29761: 29761: void 29761: deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (alignof(_Tp) > 8) 29761: { 29761: ::operator delete((__p), (__n) * sizeof(_Tp), 29761: std::align_val_t(alignof(_Tp))); 29761: return; 29761: } 29761: 29761: ::operator delete((__p), (__n) * sizeof(_Tp)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: size_type 29761: max_size() const noexcept 29761: { return _M_max_size(); } 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: void 29761: construct(_Up* __p, _Args&&... __args) 29761: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 29761: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: void 29761: destroy(_Up* __p) 29761: noexcept(std::is_nothrow_destructible<_Up>::value) 29761: { __p->~_Up(); } 29761: # 213 "/usr/include/c++/14/bits/new_allocator.h" 3 29761: template 29761: friend __attribute__((__always_inline__)) bool 29761: operator==(const __new_allocator&, const __new_allocator<_Up>&) 29761: noexcept 29761: { return true; } 29761: 29761: 29761: template 29761: friend __attribute__((__always_inline__)) bool 29761: operator!=(const __new_allocator&, const __new_allocator<_Up>&) 29761: noexcept 29761: { return false; } 29761: 29761: 29761: private: 29761: __attribute__((__always_inline__)) 29761: constexpr size_type 29761: _M_max_size() const noexcept 29761: { 29761: 29761: return std::size_t(0x7fffffff) / sizeof(_Tp); 29761: 29761: 29761: 29761: } 29761: }; 29761: 29761: 29761: } 29761: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 2 3 29761: 29761: 29761: namespace std 29761: { 29761: # 46 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 29761: template 29761: using __allocator_base = __new_allocator<_Tp>; 29761: } 29761: # 47 "/usr/include/c++/14/bits/allocator.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/memoryfwd.h" 1 3 29761: # 46 "/usr/include/c++/14/bits/memoryfwd.h" 3 29761: 29761: # 47 "/usr/include/c++/14/bits/memoryfwd.h" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 64 "/usr/include/c++/14/bits/memoryfwd.h" 3 29761: template 29761: class allocator; 29761: 29761: template<> 29761: class allocator; 29761: 29761: 29761: 29761: template 29761: struct uses_allocator; 29761: 29761: template 29761: struct allocator_traits; 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 48 "/usr/include/c++/14/bits/allocator.h" 2 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 72 "/usr/include/c++/14/bits/allocator.h" 3 29761: template<> 29761: class allocator 29761: { 29761: public: 29761: typedef void value_type; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: 29761: 29761: 29761: typedef void* pointer; 29761: typedef const void* const_pointer; 29761: 29761: template 29761: struct rebind 29761: { typedef allocator<_Tp1> other; }; 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_move_assignment = true_type; 29761: 29761: using is_always_equal 29761: 29761: = true_type; 29761: # 115 "/usr/include/c++/14/bits/allocator.h" 3 29761: }; 29761: # 127 "/usr/include/c++/14/bits/allocator.h" 3 29761: template 29761: class allocator : public __allocator_base<_Tp> 29761: { 29761: public: 29761: typedef _Tp value_type; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: 29761: 29761: 29761: typedef _Tp* pointer; 29761: typedef const _Tp* const_pointer; 29761: typedef _Tp& reference; 29761: typedef const _Tp& const_reference; 29761: 29761: template 29761: struct rebind 29761: { typedef allocator<_Tp1> other; }; 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_move_assignment = true_type; 29761: 29761: using is_always_equal 29761: 29761: = true_type; 29761: 29761: 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: 29761: allocator() noexcept { } 29761: 29761: __attribute__((__always_inline__)) 29761: 29761: allocator(const allocator& __a) noexcept 29761: : __allocator_base<_Tp>(__a) { } 29761: 29761: 29761: 29761: allocator& operator=(const allocator&) = default; 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: 29761: allocator(const allocator<_Tp1>&) noexcept { } 29761: 29761: __attribute__((__always_inline__)) 29761: 29761: 29761: 29761: ~allocator() noexcept { } 29761: # 212 "/usr/include/c++/14/bits/allocator.h" 3 29761: friend __attribute__((__always_inline__)) 29761: bool 29761: operator==(const allocator&, const allocator&) noexcept 29761: { return true; } 29761: 29761: 29761: friend __attribute__((__always_inline__)) 29761: bool 29761: operator!=(const allocator&, const allocator&) noexcept 29761: { return false; } 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: inline bool 29761: operator==(const allocator<_T1>&, const allocator<_T2>&) 29761: noexcept 29761: { return true; } 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: inline bool 29761: operator!=(const allocator<_T1>&, const allocator<_T2>&) 29761: noexcept 29761: { return false; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class allocator 29761: { 29761: public: 29761: typedef _Tp value_type; 29761: allocator() { } 29761: template allocator(const allocator<_Up>&) { } 29761: }; 29761: 29761: template 29761: class allocator 29761: { 29761: public: 29761: typedef _Tp value_type; 29761: allocator() { } 29761: template allocator(const allocator<_Up>&) { } 29761: }; 29761: 29761: template 29761: class allocator 29761: { 29761: public: 29761: typedef _Tp value_type; 29761: allocator() { } 29761: template allocator(const allocator<_Up>&) { } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern template class allocator; 29761: extern template class allocator; 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 64 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_construct.h" 1 3 29761: # 73 "/usr/include/c++/14/bits/stl_construct.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: inline void 29761: destroy_at(_Tp* __location) 29761: { 29761: if constexpr (201703L > 201703L && is_array_v<_Tp>) 29761: { 29761: for (auto& __x : *__location) 29761: std::destroy_at(std::__addressof(__x)); 29761: } 29761: else 29761: __location->~_Tp(); 29761: } 29761: # 106 "/usr/include/c++/14/bits/stl_construct.h" 3 29761: template 29761: 29761: inline void 29761: _Construct(_Tp* __p, _Args&&... __args) 29761: { 29761: # 119 "/usr/include/c++/14/bits/stl_construct.h" 3 29761: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 29761: } 29761: # 132 "/usr/include/c++/14/bits/stl_construct.h" 3 29761: template 29761: inline void 29761: _Construct_novalue(_T1* __p) 29761: { ::new((void*)__p) _T1; } 29761: 29761: template 29761: void 29761: _Destroy(_ForwardIterator __first, _ForwardIterator __last); 29761: 29761: 29761: 29761: 29761: template 29761: constexpr inline void 29761: _Destroy(_Tp* __pointer) 29761: { 29761: 29761: 29761: 29761: __pointer->~_Tp(); 29761: 29761: } 29761: 29761: template 29761: struct _Destroy_aux 29761: { 29761: template 29761: static void 29761: __destroy(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: for (; __first != __last; ++__first) 29761: std::_Destroy(std::__addressof(*__first)); 29761: } 29761: }; 29761: 29761: template<> 29761: struct _Destroy_aux 29761: { 29761: template 29761: static void 29761: __destroy(_ForwardIterator, _ForwardIterator) { } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: _Destroy(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _Value_type; 29761: 29761: 29761: static_assert(is_destructible<_Value_type>::value, 29761: "value type is destructible"); 29761: 29761: 29761: 29761: 29761: 29761: std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: 29761: __destroy(__first, __last); 29761: } 29761: 29761: template 29761: struct _Destroy_n_aux 29761: { 29761: template 29761: static _ForwardIterator 29761: __destroy_n(_ForwardIterator __first, _Size __count) 29761: { 29761: for (; __count > 0; (void)++__first, --__count) 29761: std::_Destroy(std::__addressof(*__first)); 29761: return __first; 29761: } 29761: }; 29761: 29761: template<> 29761: struct _Destroy_n_aux 29761: { 29761: template 29761: static _ForwardIterator 29761: __destroy_n(_ForwardIterator __first, _Size __count) 29761: { 29761: std::advance(__first, __count); 29761: return __first; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline _ForwardIterator 29761: _Destroy_n(_ForwardIterator __first, _Size __count) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _Value_type; 29761: 29761: 29761: static_assert(is_destructible<_Value_type>::value, 29761: "value type is destructible"); 29761: 29761: 29761: 29761: 29761: 29761: return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: 29761: __destroy_n(__first, __count); 29761: } 29761: 29761: 29761: template 29761: inline void 29761: destroy(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: std::_Destroy(__first, __last); 29761: } 29761: 29761: template 29761: inline _ForwardIterator 29761: destroy_n(_ForwardIterator __first, _Size __count) 29761: { 29761: return std::_Destroy_n(__first, __count); 29761: } 29761: 29761: 29761: 29761: } 29761: # 65 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_uninitialized.h" 1 3 29761: # 64 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: # 1 "/usr/include/c++/14/ext/alloc_traits.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/alloc_traits.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/alloc_traits.h" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/alloc_traits.h" 1 3 29761: # 46 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: # 52 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++14-extensions" 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: 29761: 29761: struct __allocator_traits_base 29761: { 29761: template 29761: struct __rebind : __replace_first_arg<_Tp, _Up> 29761: { 29761: static_assert(is_same< 29761: typename __replace_first_arg<_Tp, typename _Tp::value_type>::type, 29761: _Tp>::value, 29761: "allocator_traits::rebind_alloc must be A"); 29761: }; 29761: 29761: template 29761: struct __rebind<_Tp, _Up, 29761: __void_t::other>> 29761: { 29761: using type = typename _Tp::template rebind<_Up>::other; 29761: 29761: static_assert(is_same< 29761: typename _Tp::template rebind::other, 29761: _Tp>::value, 29761: "allocator_traits::rebind_alloc must be A"); 29761: }; 29761: 29761: protected: 29761: template 29761: using __pointer = typename _Tp::pointer; 29761: template 29761: using __c_pointer = typename _Tp::const_pointer; 29761: template 29761: using __v_pointer = typename _Tp::void_pointer; 29761: template 29761: using __cv_pointer = typename _Tp::const_void_pointer; 29761: template 29761: using __pocca = typename _Tp::propagate_on_container_copy_assignment; 29761: template 29761: using __pocma = typename _Tp::propagate_on_container_move_assignment; 29761: template 29761: using __pocs = typename _Tp::propagate_on_container_swap; 29761: template 29761: using __equal = __type_identity; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: using __construct_t 29761: = decltype(std::declval<_Alloc&>().construct(std::declval<_Tp*>(), 29761: std::declval<_Args>()...)); 29761: template 29761: static constexpr bool __has_construct_impl = false; 29761: template 29761: static constexpr bool 29761: __has_construct_impl<_Alloc, _Tp, 29761: __void_t<__construct_t<_Alloc, _Tp, _Args...>>, 29761: _Args...> 29761: = true; 29761: template 29761: static constexpr bool __has_construct 29761: = __has_construct_impl<_Alloc, _Tp, void, _Args...>; 29761: template 29761: using __new_expr_t 29761: = decltype(::new((void*)0) _Tp(std::declval<_Args>()...)); 29761: template 29761: static constexpr bool __has_new_expr = false; 29761: template 29761: static constexpr bool 29761: __has_new_expr<_Tp, __void_t<__new_expr_t<_Tp, _Args...>>, _Args...> 29761: = true; 29761: template 29761: static constexpr bool __can_construct 29761: = __has_construct<_Alloc, _Tp, _Args...> 29761: || __has_new_expr<_Tp, void, _Args...>; 29761: }; 29761: 29761: template 29761: using __alloc_rebind 29761: = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; 29761: # 143 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: struct allocator_traits : __allocator_traits_base 29761: { 29761: 29761: typedef _Alloc allocator_type; 29761: 29761: typedef typename _Alloc::value_type value_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: using pointer = __detected_or_t; 29761: 29761: private: 29761: 29761: template class _Func, typename _Tp, typename = void> 29761: struct _Ptr 29761: { 29761: using type = typename pointer_traits::template rebind<_Tp>; 29761: }; 29761: 29761: template class _Func, typename _Tp> 29761: struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> 29761: { 29761: using type = _Func<_Alloc>; 29761: }; 29761: 29761: 29761: template 29761: struct _Diff 29761: { using type = typename pointer_traits<_PtrT>::difference_type; }; 29761: 29761: template 29761: struct _Diff<_A2, _PtrT, __void_t> 29761: { using type = typename _A2::difference_type; }; 29761: 29761: 29761: template 29761: struct _Size : make_unsigned<_DiffT> { }; 29761: 29761: template 29761: struct _Size<_A2, _DiffT, __void_t> 29761: { using type = typename _A2::size_type; }; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using void_pointer = typename _Ptr<__v_pointer, void>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using difference_type = typename _Diff<_Alloc, pointer>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using size_type = typename _Size<_Alloc, difference_type>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_copy_assignment 29761: = __detected_or_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_move_assignment 29761: = __detected_or_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_swap 29761: = __detected_or_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using is_always_equal 29761: = typename __detected_or_t, __equal, _Alloc>::type; 29761: 29761: template 29761: using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; 29761: template 29761: using rebind_traits = allocator_traits>; 29761: 29761: private: 29761: template 29761: static constexpr auto 29761: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) 29761: -> decltype(__a.allocate(__n, __hint)) 29761: { return __a.allocate(__n, __hint); } 29761: 29761: template 29761: static constexpr pointer 29761: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) 29761: { return __a.allocate(__n); } 29761: 29761: 29761: template 29761: static constexpr auto 29761: _S_destroy(_Alloc2& __a, _Tp* __p, int) 29761: noexcept(noexcept(__a.destroy(__p))) 29761: -> decltype(__a.destroy(__p)) 29761: { __a.destroy(__p); } 29761: 29761: template 29761: static constexpr void 29761: _S_destroy(_Alloc2&, _Tp* __p, ...) 29761: noexcept(std::is_nothrow_destructible<_Tp>::value) 29761: { std::_Destroy(__p); } 29761: 29761: template 29761: static constexpr auto 29761: _S_max_size(_Alloc2& __a, int) 29761: -> decltype(__a.max_size()) 29761: { return __a.max_size(); } 29761: 29761: template 29761: static constexpr size_type 29761: _S_max_size(_Alloc2&, ...) 29761: { 29761: 29761: 29761: return __gnu_cxx::__numeric_traits::__max 29761: / sizeof(value_type); 29761: } 29761: 29761: template 29761: static constexpr auto 29761: _S_select(_Alloc2& __a, int) 29761: -> decltype(__a.select_on_container_copy_construction()) 29761: { return __a.select_on_container_copy_construction(); } 29761: 29761: template 29761: static constexpr _Alloc2 29761: _S_select(_Alloc2& __a, ...) 29761: { return __a; } 29761: 29761: public: 29761: # 333 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: [[__nodiscard__]] static pointer 29761: allocate(_Alloc& __a, size_type __n) 29761: { return __a.allocate(__n); } 29761: # 348 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: [[__nodiscard__]] static pointer 29761: allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) 29761: { return _S_allocate(__a, __n, __hint, 0); } 29761: # 360 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: static void 29761: deallocate(_Alloc& __a, pointer __p, size_type __n) 29761: { __a.deallocate(__p, __n); } 29761: # 375 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: static 29761: __enable_if_t<__can_construct<_Alloc, _Tp, _Args...>> 29761: construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 29761: noexcept(_S_nothrow_construct<_Tp, _Args...>()) 29761: { 29761: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 29761: __a.construct(__p, std::forward<_Args>(__args)...); 29761: else 29761: std::_Construct(__p, std::forward<_Args>(__args)...); 29761: } 29761: # 395 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: static void 29761: destroy(_Alloc& __a, _Tp* __p) 29761: noexcept(noexcept(_S_destroy(__a, __p, 0))) 29761: { _S_destroy(__a, __p, 0); } 29761: # 409 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: static size_type 29761: max_size(const _Alloc& __a) noexcept 29761: { return _S_max_size(__a, 0); } 29761: # 421 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: static _Alloc 29761: select_on_container_copy_construction(const _Alloc& __rhs) 29761: { return _S_select(__rhs, 0); } 29761: 29761: private: 29761: 29761: template 29761: static constexpr bool 29761: _S_nothrow_construct(_Alloc* __a = nullptr, _Tp* __p = nullptr) 29761: { 29761: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 29761: return noexcept(__a->construct(__p, std::declval<_Args>()...)); 29761: else 29761: return __is_nothrow_new_constructible<_Tp, _Args...>; 29761: } 29761: # 449 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: }; 29761: #pragma GCC diagnostic pop 29761: # 460 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: struct allocator_traits> 29761: { 29761: 29761: using allocator_type = allocator<_Tp>; 29761: 29761: 29761: using value_type = _Tp; 29761: 29761: 29761: using pointer = _Tp*; 29761: 29761: 29761: using const_pointer = const _Tp*; 29761: 29761: 29761: using void_pointer = void*; 29761: 29761: 29761: using const_void_pointer = const void*; 29761: 29761: 29761: using difference_type = std::ptrdiff_t; 29761: 29761: 29761: using size_type = std::size_t; 29761: 29761: 29761: using propagate_on_container_copy_assignment = false_type; 29761: 29761: 29761: using propagate_on_container_move_assignment = true_type; 29761: 29761: 29761: using propagate_on_container_swap = false_type; 29761: 29761: 29761: using is_always_equal = true_type; 29761: 29761: template 29761: using rebind_alloc = allocator<_Up>; 29761: 29761: template 29761: using rebind_traits = allocator_traits>; 29761: # 512 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: [[__nodiscard__,__gnu__::__always_inline__]] 29761: static pointer 29761: allocate(allocator_type& __a, size_type __n) 29761: { return __a.allocate(__n); } 29761: # 527 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: [[__nodiscard__,__gnu__::__always_inline__]] 29761: static pointer 29761: allocate(allocator_type& __a, size_type __n, 29761: [[maybe_unused]] const_void_pointer __hint) 29761: { 29761: 29761: return __a.allocate(__n, __hint); 29761: 29761: 29761: 29761: } 29761: # 547 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: [[__gnu__::__always_inline__]] 29761: static void 29761: deallocate(allocator_type& __a, pointer __p, size_type __n) 29761: { __a.deallocate(__p, __n); } 29761: # 563 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static void 29761: construct(allocator_type& __a __attribute__((__unused__)), 29761: _Up* __p, _Args&&... __args) 29761: 29761: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 29761: 29761: 29761: 29761: { 29761: 29761: __a.construct(__p, std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 590 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static void 29761: destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) 29761: noexcept(is_nothrow_destructible<_Up>::value) 29761: { 29761: 29761: __a.destroy(__p); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__gnu__::__always_inline__]] 29761: static size_type 29761: max_size(const allocator_type& __a __attribute__((__unused__))) noexcept 29761: { 29761: 29761: return __a.max_size(); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__gnu__::__always_inline__]] 29761: static allocator_type 29761: select_on_container_copy_construction(const allocator_type& __rhs) 29761: { return __rhs; } 29761: }; 29761: # 637 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template<> 29761: struct allocator_traits> 29761: { 29761: 29761: using allocator_type = allocator; 29761: 29761: 29761: using value_type = void; 29761: 29761: 29761: using pointer = void*; 29761: 29761: 29761: using const_pointer = const void*; 29761: 29761: 29761: using void_pointer = void*; 29761: 29761: 29761: using const_void_pointer = const void*; 29761: 29761: 29761: using difference_type = std::ptrdiff_t; 29761: 29761: 29761: using size_type = std::size_t; 29761: 29761: 29761: using propagate_on_container_copy_assignment = false_type; 29761: 29761: 29761: using propagate_on_container_move_assignment = true_type; 29761: 29761: 29761: using propagate_on_container_swap = false_type; 29761: 29761: 29761: using is_always_equal = true_type; 29761: 29761: template 29761: using rebind_alloc = allocator<_Up>; 29761: 29761: template 29761: using rebind_traits = allocator_traits>; 29761: 29761: 29761: static void* 29761: allocate(allocator_type&, size_type, const void* = nullptr) = delete; 29761: 29761: 29761: static void 29761: deallocate(allocator_type&, void*, size_type) = delete; 29761: # 701 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static void 29761: construct(allocator_type&, _Up* __p, _Args&&... __args) 29761: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 29761: { std::_Construct(__p, std::forward<_Args>(__args)...); } 29761: # 715 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static void 29761: destroy(allocator_type&, _Up* __p) 29761: noexcept(is_nothrow_destructible<_Up>::value) 29761: { std::_Destroy(__p); } 29761: 29761: 29761: static size_type 29761: max_size(const allocator_type&) = delete; 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__gnu__::__always_inline__]] 29761: static allocator_type 29761: select_on_container_copy_construction(const allocator_type& __rhs) 29761: { return __rhs; } 29761: }; 29761: # 753 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr inline void 29761: __alloc_on_copy(_Alloc& __one, const _Alloc& __two) 29761: { 29761: using __traits = allocator_traits<_Alloc>; 29761: using __pocca = 29761: typename __traits::propagate_on_container_copy_assignment::type; 29761: 29761: if constexpr (__pocca::value) 29761: __one = __two; 29761: 29761: 29761: 29761: } 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr _Alloc 29761: __alloc_on_copy(const _Alloc& __a) 29761: { 29761: typedef allocator_traits<_Alloc> __traits; 29761: return __traits::select_on_container_copy_construction(__a); 29761: } 29761: # 790 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr inline void 29761: __alloc_on_move(_Alloc& __one, _Alloc& __two) 29761: { 29761: using __traits = allocator_traits<_Alloc>; 29761: using __pocma 29761: = typename __traits::propagate_on_container_move_assignment::type; 29761: 29761: if constexpr (__pocma::value) 29761: __one = std::move(__two); 29761: 29761: 29761: 29761: } 29761: # 821 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr inline void 29761: __alloc_on_swap(_Alloc& __one, _Alloc& __two) 29761: { 29761: using __traits = allocator_traits<_Alloc>; 29761: using __pocs = typename __traits::propagate_on_container_swap::type; 29761: 29761: if constexpr (__pocs::value) 29761: { 29761: using std::swap; 29761: swap(__one, __two); 29761: } 29761: 29761: 29761: 29761: } 29761: 29761: template, 29761: typename = void> 29761: struct __is_alloc_insertable_impl 29761: : false_type 29761: { }; 29761: 29761: template 29761: struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, 29761: __void_t::construct( 29761: std::declval<_Alloc&>(), std::declval<_ValueT*>(), 29761: std::declval<_Tp>()))>> 29761: : true_type 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_copy_insertable 29761: : __is_alloc_insertable_impl<_Alloc, 29761: typename _Alloc::value_type const&>::type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct __is_copy_insertable> 29761: : is_copy_constructible<_Tp> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_move_insertable 29761: : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct __is_move_insertable> 29761: : is_move_constructible<_Tp> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct __is_allocator : false_type { }; 29761: 29761: template 29761: struct __is_allocator<_Alloc, 29761: __void_t().allocate(size_t{}))>> 29761: : true_type { }; 29761: 29761: template 29761: using _RequireAllocator 29761: = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; 29761: 29761: template 29761: using _RequireNotAllocator 29761: = typename enable_if::value, _Alloc>::type; 29761: # 918 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: struct __alloc_swap 29761: { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; 29761: 29761: template 29761: struct __alloc_swap<_Alloc, false> 29761: { 29761: static void 29761: _S_do_it(_Alloc& __one, _Alloc& __two) noexcept 29761: { 29761: 29761: if (__one != __two) 29761: swap(__one, __two); 29761: } 29761: }; 29761: 29761: 29761: template, 29761: is_nothrow_move_constructible>::value> 29761: struct __shrink_to_fit_aux 29761: { static bool _S_do_it(_Tp&) noexcept { return false; } }; 29761: 29761: template 29761: struct __shrink_to_fit_aux<_Tp, true> 29761: { 29761: 29761: static bool 29761: _S_do_it(_Tp& __c) noexcept 29761: { 29761: 29761: try 29761: { 29761: _Tp(__make_move_if_noexcept_iterator(__c.begin()), 29761: __make_move_if_noexcept_iterator(__c.end()), 29761: __c.get_allocator()).swap(__c); 29761: return true; 29761: } 29761: catch(...) 29761: { return false; } 29761: 29761: 29761: 29761: } 29761: }; 29761: # 971 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: 29761: void 29761: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 29761: _Allocator& __alloc) 29761: { 29761: for (; __first != __last; ++__first) 29761: 29761: 29761: 29761: allocator_traits<_Allocator>::destroy(__alloc, 29761: std::__addressof(*__first)); 29761: 29761: } 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: inline void 29761: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 29761: allocator<_Tp>&) 29761: { 29761: std::_Destroy(__first, __last); 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 35 "/usr/include/c++/14/ext/alloc_traits.h" 2 3 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __alloc_traits 29761: 29761: : std::allocator_traits<_Alloc> 29761: 29761: { 29761: typedef _Alloc allocator_type; 29761: 29761: typedef std::allocator_traits<_Alloc> _Base_type; 29761: typedef typename _Base_type::value_type value_type; 29761: typedef typename _Base_type::pointer pointer; 29761: typedef typename _Base_type::const_pointer const_pointer; 29761: typedef typename _Base_type::size_type size_type; 29761: typedef typename _Base_type::difference_type difference_type; 29761: 29761: typedef value_type& reference; 29761: typedef const value_type& const_reference; 29761: using _Base_type::allocate; 29761: using _Base_type::deallocate; 29761: using _Base_type::construct; 29761: using _Base_type::destroy; 29761: using _Base_type::max_size; 29761: 29761: private: 29761: template 29761: using __is_custom_pointer 29761: = std::__and_, 29761: std::__not_>>; 29761: 29761: public: 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static constexpr 29761: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 29761: construct(_Alloc& __a, _Ptr __p, _Args&&... __args) 29761: noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), 29761: std::forward<_Args>(__args)...))) 29761: { 29761: _Base_type::construct(__a, std::__to_address(__p), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static constexpr 29761: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 29761: destroy(_Alloc& __a, _Ptr __p) 29761: noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) 29761: { _Base_type::destroy(__a, std::__to_address(__p)); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) 29761: { return _Base_type::select_on_container_copy_construction(__a); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) 29761: { std::__alloc_on_swap(__a, __b); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr bool _S_propagate_on_copy_assign() 29761: { return _Base_type::propagate_on_container_copy_assignment::value; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr bool _S_propagate_on_move_assign() 29761: { return _Base_type::propagate_on_container_move_assignment::value; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr bool _S_propagate_on_swap() 29761: { return _Base_type::propagate_on_container_swap::value; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr bool _S_always_equal() 29761: { return _Base_type::is_always_equal::value; } 29761: 29761: __attribute__((__always_inline__)) 29761: static constexpr bool _S_nothrow_move() 29761: { return _S_propagate_on_move_assign() || _S_always_equal(); } 29761: 29761: template 29761: struct rebind 29761: { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; 29761: # 180 "/usr/include/c++/14/ext/alloc_traits.h" 3 29761: }; 29761: 29761: 29761: } 29761: # 65 "/usr/include/c++/14/bits/stl_uninitialized.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 81 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: constexpr bool 29761: __check_constructible() 29761: { 29761: 29761: 29761: 29761: 29761: 29761: static_assert(is_constructible<_ValueType, _Tp>::value, 29761: "result type must be constructible from input type"); 29761: 29761: return true; 29761: } 29761: # 110 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: 29761: _ForwardIterator 29761: __do_uninit_copy(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result) 29761: { 29761: _ForwardIterator __cur = __result; 29761: try 29761: { 29761: for (; __first != __last; ++__first, (void)++__cur) 29761: std::_Construct(std::__addressof(*__cur), *__first); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: struct __uninitialized_copy 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_copy(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result) 29761: { return std::__do_uninit_copy(__first, __last, __result); } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_copy 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_copy(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result) 29761: { return std::copy(__first, __last, __result); } 29761: }; 29761: # 161 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_copy(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type 29761: _ValueType1; 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType2; 29761: 29761: 29761: 29761: 29761: const bool __can_memmove = __is_trivial(_ValueType1); 29761: 29761: 29761: 29761: 29761: using _From = decltype(*__first); 29761: 29761: const bool __assignable 29761: = __is_trivial(_ValueType2) && __is_assignable(_ValueType2&, _From) && std::__check_constructible<_ValueType2, _From>(); 29761: 29761: return std::__uninitialized_copy<__can_memmove && __assignable>:: 29761: __uninit_copy(__first, __last, __result); 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: __do_uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __cur != __last; ++__cur) 29761: std::_Construct(std::__addressof(*__cur), __x); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: struct __uninitialized_fill 29761: { 29761: template 29761: static void 29761: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x) 29761: { std::__do_uninit_fill(__first, __last, __x); } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_fill 29761: { 29761: template 29761: static void 29761: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x) 29761: { std::fill(__first, __last, __x); } 29761: }; 29761: # 239 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline void 29761: uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: 29761: 29761: const bool __can_fill 29761: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>(); 29761: 29761: std::__uninitialized_fill<__can_fill>:: 29761: __uninit_fill(__first, __last, __x); 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __do_uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __n > 0; --__n, (void) ++__cur) 29761: std::_Construct(std::__addressof(*__cur), __x); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: struct __uninitialized_fill_n 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_fill_n(_ForwardIterator __first, _Size __n, 29761: const _Tp& __x) 29761: { return std::__do_uninit_fill_n(__first, __n, __x); } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_fill_n 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_fill_n(_ForwardIterator __first, _Size __n, 29761: const _Tp& __x) 29761: { return std::fill_n(__first, __n, __x); } 29761: }; 29761: # 310 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: 29761: 29761: const bool __can_fill 29761: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>() 29761: 29761: 29761: 29761: && __is_integer<_Size>::__value; 29761: 29761: return __uninitialized_fill_n<__can_fill>:: 29761: __uninit_fill_n(__first, __n, __x); 29761: } 29761: # 340 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: 29761: _ForwardIterator 29761: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, _Allocator& __alloc) 29761: { 29761: _ForwardIterator __cur = __result; 29761: try 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29761: for (; __first != __last; ++__first, (void)++__cur) 29761: __traits::construct(__alloc, std::__addressof(*__cur), *__first); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __cur, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, allocator<_Tp>&) 29761: { 29761: 29761: 29761: 29761: 29761: return std::uninitialized_copy(__first, __last, __result); 29761: } 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_move_a(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, _Allocator& __alloc) 29761: { 29761: return std::__uninitialized_copy_a(std::make_move_iterator(__first), 29761: std::make_move_iterator(__last), 29761: __result, __alloc); 29761: } 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_move_if_noexcept_a(_InputIterator __first, 29761: _InputIterator __last, 29761: _ForwardIterator __result, 29761: _Allocator& __alloc) 29761: { 29761: return std::__uninitialized_copy_a 29761: (std::__make_move_if_noexcept_iterator(__first), 29761: std::__make_move_if_noexcept_iterator(__last), __result, __alloc); 29761: } 29761: 29761: template 29761: 29761: void 29761: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x, _Allocator& __alloc) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29761: for (; __cur != __last; ++__cur) 29761: __traits::construct(__alloc, std::__addressof(*__cur), __x); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline void 29761: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x, allocator<_Tp2>&) 29761: { 29761: 29761: 29761: 29761: 29761: std::uninitialized_fill(__first, __last, __x); 29761: } 29761: 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 29761: const _Tp& __x, _Allocator& __alloc) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29761: for (; __n > 0; --__n, (void) ++__cur) 29761: __traits::construct(__alloc, std::__addressof(*__cur), __x); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 29761: const _Tp& __x, allocator<_Tp2>&) 29761: { 29761: 29761: 29761: 29761: 29761: return std::uninitialized_fill_n(__first, __n, __x); 29761: } 29761: # 485 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: __uninitialized_copy_move(_InputIterator1 __first1, 29761: _InputIterator1 __last1, 29761: _InputIterator2 __first2, 29761: _InputIterator2 __last2, 29761: _ForwardIterator __result, 29761: _Allocator& __alloc) 29761: { 29761: _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, 29761: __result, 29761: __alloc); 29761: try 29761: { 29761: return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __mid, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline _ForwardIterator 29761: __uninitialized_move_copy(_InputIterator1 __first1, 29761: _InputIterator1 __last1, 29761: _InputIterator2 __first2, 29761: _InputIterator2 __last2, 29761: _ForwardIterator __result, 29761: _Allocator& __alloc) 29761: { 29761: _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, 29761: __result, 29761: __alloc); 29761: try 29761: { 29761: return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __mid, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline _ForwardIterator 29761: __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, 29761: const _Tp& __x, _InputIterator __first, 29761: _InputIterator __last, _Allocator& __alloc) 29761: { 29761: std::__uninitialized_fill_a(__result, __mid, __x, __alloc); 29761: try 29761: { 29761: return std::__uninitialized_move_a(__first, __last, __mid, __alloc); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __mid, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, 29761: _ForwardIterator __first2, 29761: _ForwardIterator __last2, const _Tp& __x, 29761: _Allocator& __alloc) 29761: { 29761: _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, 29761: __first2, 29761: __alloc); 29761: try 29761: { 29761: std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first2, __mid2, __alloc); 29761: throw; 29761: } 29761: } 29761: # 592 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: struct __uninitialized_default_1 29761: { 29761: template 29761: static void 29761: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __cur != __last; ++__cur) 29761: std::_Construct(std::__addressof(*__cur)); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_default_1 29761: { 29761: template 29761: static void 29761: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: if (__first == __last) 29761: return; 29761: 29761: typename iterator_traits<_ForwardIterator>::value_type* __val 29761: = std::__addressof(*__first); 29761: std::_Construct(__val); 29761: if (++__first != __last) 29761: std::fill(__first, __last, *__val); 29761: } 29761: }; 29761: 29761: template 29761: struct __uninitialized_default_n_1 29761: { 29761: template 29761: 29761: static _ForwardIterator 29761: __uninit_default_n(_ForwardIterator __first, _Size __n) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __n > 0; --__n, (void) ++__cur) 29761: std::_Construct(std::__addressof(*__cur)); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_default_n_1 29761: { 29761: template 29761: 29761: static _ForwardIterator 29761: __uninit_default_n(_ForwardIterator __first, _Size __n) 29761: { 29761: if (__n > 0) 29761: { 29761: typename iterator_traits<_ForwardIterator>::value_type* __val 29761: = std::__addressof(*__first); 29761: std::_Construct(__val); 29761: ++__first; 29761: __first = std::fill_n(__first, __n - 1, *__val); 29761: } 29761: return __first; 29761: } 29761: }; 29761: 29761: 29761: 29761: template 29761: inline void 29761: __uninitialized_default(_ForwardIterator __first, 29761: _ForwardIterator __last) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: const bool __assignable = is_copy_assignable<_ValueType>::value; 29761: 29761: std::__uninitialized_default_1<__is_trivial(_ValueType) 29761: && __assignable>:: 29761: __uninit_default(__first, __last); 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_default_n(_ForwardIterator __first, _Size __n) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: constexpr bool __can_fill 29761: = __and_, is_copy_assignable<_ValueType>>::value; 29761: 29761: return __uninitialized_default_n_1<__is_trivial(_ValueType) 29761: && __can_fill>:: 29761: __uninit_default_n(__first, __n); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __uninitialized_default_a(_ForwardIterator __first, 29761: _ForwardIterator __last, 29761: _Allocator& __alloc) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29761: for (; __cur != __last; ++__cur) 29761: __traits::construct(__alloc, std::__addressof(*__cur)); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: inline void 29761: __uninitialized_default_a(_ForwardIterator __first, 29761: _ForwardIterator __last, 29761: allocator<_Tp>&) 29761: { std::__uninitialized_default(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _ForwardIterator 29761: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 29761: _Allocator& __alloc) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29761: for (; __n > 0; --__n, (void) ++__cur) 29761: __traits::construct(__alloc, std::__addressof(*__cur)); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 29761: allocator<_Tp>&) 29761: { return std::__uninitialized_default_n(__first, __n); } 29761: 29761: 29761: template 29761: struct __uninitialized_default_novalue_1 29761: { 29761: template 29761: static void 29761: __uninit_default_novalue(_ForwardIterator __first, 29761: _ForwardIterator __last) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __cur != __last; ++__cur) 29761: std::_Construct_novalue(std::__addressof(*__cur)); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_default_novalue_1 29761: { 29761: template 29761: static void 29761: __uninit_default_novalue(_ForwardIterator, _ForwardIterator) 29761: { 29761: } 29761: }; 29761: 29761: template 29761: struct __uninitialized_default_novalue_n_1 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __n > 0; --__n, (void) ++__cur) 29761: std::_Construct_novalue(std::__addressof(*__cur)); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_default_novalue_n_1 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 29761: { return std::next(__first, __n); } 29761: }; 29761: 29761: 29761: 29761: template 29761: inline void 29761: __uninitialized_default_novalue(_ForwardIterator __first, 29761: _ForwardIterator __last) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: std::__uninitialized_default_novalue_1< 29761: is_trivially_default_constructible<_ValueType>::value>:: 29761: __uninit_default_novalue(__first, __last); 29761: } 29761: 29761: 29761: 29761: template 29761: inline _ForwardIterator 29761: __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: return __uninitialized_default_novalue_n_1< 29761: is_trivially_default_constructible<_ValueType>::value>:: 29761: __uninit_default_novalue_n(__first, __n); 29761: } 29761: 29761: template 29761: _ForwardIterator 29761: __uninitialized_copy_n(_InputIterator __first, _Size __n, 29761: _ForwardIterator __result, input_iterator_tag) 29761: { 29761: _ForwardIterator __cur = __result; 29761: try 29761: { 29761: for (; __n > 0; --__n, (void) ++__first, ++__cur) 29761: std::_Construct(std::__addressof(*__cur), *__first); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: inline _ForwardIterator 29761: __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, 29761: _ForwardIterator __result, 29761: random_access_iterator_tag) 29761: { return std::uninitialized_copy(__first, __first + __n, __result); } 29761: 29761: template 29761: pair<_InputIterator, _ForwardIterator> 29761: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 29761: _ForwardIterator __result, input_iterator_tag) 29761: { 29761: _ForwardIterator __cur = __result; 29761: try 29761: { 29761: for (; __n > 0; --__n, (void) ++__first, ++__cur) 29761: std::_Construct(std::__addressof(*__cur), *__first); 29761: return {__first, __cur}; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: inline pair<_RandomAccessIterator, _ForwardIterator> 29761: __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, 29761: _ForwardIterator __result, 29761: random_access_iterator_tag) 29761: { 29761: auto __second_res = uninitialized_copy(__first, __first + __n, __result); 29761: auto __first_res = std::next(__first, __n); 29761: return {__first_res, __second_res}; 29761: } 29761: # 946 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_copy_n(_InputIterator __first, _Size __n, 29761: _ForwardIterator __result) 29761: { return std::__uninitialized_copy_n(__first, __n, __result, 29761: std::__iterator_category(__first)); } 29761: 29761: 29761: template 29761: inline pair<_InputIterator, _ForwardIterator> 29761: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 29761: _ForwardIterator __result) 29761: { 29761: return 29761: std::__uninitialized_copy_n_pair(__first, __n, __result, 29761: std::__iterator_category(__first)); 29761: } 29761: # 973 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline void 29761: uninitialized_default_construct(_ForwardIterator __first, 29761: _ForwardIterator __last) 29761: { 29761: __uninitialized_default_novalue(__first, __last); 29761: } 29761: # 988 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_default_construct_n(_ForwardIterator __first, _Size __count) 29761: { 29761: return __uninitialized_default_novalue_n(__first, __count); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: uninitialized_value_construct(_ForwardIterator __first, 29761: _ForwardIterator __last) 29761: { 29761: return __uninitialized_default(__first, __last); 29761: } 29761: # 1016 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_value_construct_n(_ForwardIterator __first, _Size __count) 29761: { 29761: return __uninitialized_default_n(__first, __count); 29761: } 29761: # 1031 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_move(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result) 29761: { 29761: return std::uninitialized_copy 29761: (std::make_move_iterator(__first), 29761: std::make_move_iterator(__last), __result); 29761: } 29761: # 1049 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline pair<_InputIterator, _ForwardIterator> 29761: uninitialized_move_n(_InputIterator __first, _Size __count, 29761: _ForwardIterator __result) 29761: { 29761: auto __res = std::__uninitialized_copy_n_pair 29761: (std::make_move_iterator(__first), 29761: __count, __result); 29761: return {__res.first.base(), __res.second}; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline void 29761: __relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig, 29761: _Allocator& __alloc) 29761: noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, 29761: __dest, std::move(*__orig))) 29761: && noexcept(std::allocator_traits<_Allocator>::destroy( 29761: __alloc, std::__addressof(*__orig)))) 29761: { 29761: typedef std::allocator_traits<_Allocator> __traits; 29761: __traits::construct(__alloc, __dest, std::move(*__orig)); 29761: __traits::destroy(__alloc, std::__addressof(*__orig)); 29761: } 29761: 29761: 29761: 29761: template 29761: struct __is_bitwise_relocatable 29761: : is_trivial<_Tp> { }; 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __relocate_a_1(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, _Allocator& __alloc) 29761: noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), 29761: std::addressof(*__first), 29761: __alloc))) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType2; 29761: static_assert(std::is_same<_ValueType, _ValueType2>::value, 29761: "relocation is only possible for values of the same type"); 29761: _ForwardIterator __cur = __result; 29761: for (; __first != __last; ++__first, (void)++__cur) 29761: std::__relocate_object_a(std::__addressof(*__cur), 29761: std::__addressof(*__first), __alloc); 29761: return __cur; 29761: } 29761: 29761: 29761: template 29761: 29761: inline __enable_if_t::value, _Tp*> 29761: __relocate_a_1(_Tp* __first, _Tp* __last, 29761: _Tp* __result, 29761: [[__maybe_unused__]] allocator<_Up>& __alloc) noexcept 29761: { 29761: ptrdiff_t __count = __last - __first; 29761: if (__count > 0) 29761: { 29761: # 1129 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: __builtin_memcpy(__result, __first, __count * sizeof(_Tp)); 29761: } 29761: return __result + __count; 29761: } 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __relocate_a(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, _Allocator& __alloc) 29761: noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), 29761: std::__niter_base(__last), 29761: std::__niter_base(__result), __alloc))) 29761: { 29761: return std::__relocate_a_1(std::__niter_base(__first), 29761: std::__niter_base(__last), 29761: std::__niter_base(__result), __alloc); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_deque.h" 1 3 29761: # 63 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: # 1 "/usr/include/c++/14/initializer_list" 1 3 29761: # 33 "/usr/include/c++/14/initializer_list" 3 29761: 29761: # 34 "/usr/include/c++/14/initializer_list" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: template 29761: class initializer_list 29761: { 29761: public: 29761: typedef _E value_type; 29761: typedef const _E& reference; 29761: typedef const _E& const_reference; 29761: typedef size_t size_type; 29761: typedef const _E* iterator; 29761: typedef const _E* const_iterator; 29761: 29761: private: 29761: iterator _M_array; 29761: size_type _M_len; 29761: 29761: 29761: constexpr initializer_list(const_iterator __a, size_type __l) 29761: : _M_array(__a), _M_len(__l) { } 29761: 29761: public: 29761: constexpr initializer_list() noexcept 29761: : _M_array(0), _M_len(0) { } 29761: 29761: 29761: constexpr size_type 29761: size() const noexcept { return _M_len; } 29761: 29761: 29761: constexpr const_iterator 29761: begin() const noexcept { return _M_array; } 29761: 29761: 29761: constexpr const_iterator 29761: end() const noexcept { return begin() + size(); } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr const _Tp* 29761: begin(initializer_list<_Tp> __ils) noexcept 29761: { return __ils.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr const _Tp* 29761: end(initializer_list<_Tp> __ils) noexcept 29761: { return __ils.end(); } 29761: } 29761: # 64 "/usr/include/c++/14/bits/stl_deque.h" 2 3 29761: # 72 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: # 95 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: constexpr inline size_t 29761: __deque_buf_size(size_t __size) 29761: { return (__size < 512 29761: ? size_t(512 / __size) : size_t(1)); } 29761: # 112 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: struct _Deque_iterator 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: private: 29761: template 29761: using __iter = _Deque_iterator<_Tp, _CvTp&, __ptr_rebind<_Ptr, _CvTp>>; 29761: public: 29761: typedef __iter<_Tp> iterator; 29761: typedef __iter const_iterator; 29761: typedef __ptr_rebind<_Ptr, _Tp> _Elt_pointer; 29761: typedef __ptr_rebind<_Ptr, _Elt_pointer> _Map_pointer; 29761: 29761: 29761: static size_t _S_buffer_size() noexcept 29761: { return __deque_buf_size(sizeof(_Tp)); } 29761: 29761: typedef std::random_access_iterator_tag iterator_category; 29761: typedef _Tp value_type; 29761: typedef _Ptr pointer; 29761: typedef _Ref reference; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Deque_iterator _Self; 29761: 29761: _Elt_pointer _M_cur; 29761: _Elt_pointer _M_first; 29761: _Elt_pointer _M_last; 29761: _Map_pointer _M_node; 29761: 29761: _Deque_iterator(_Elt_pointer __x, _Map_pointer __y) noexcept 29761: : _M_cur(__x), _M_first(*__y), 29761: _M_last(*__y + _S_buffer_size()), _M_node(__y) { } 29761: 29761: _Deque_iterator() noexcept 29761: : _M_cur(), _M_first(), _M_last(), _M_node() { } 29761: # 161 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template, 29761: is_same<_Iter, iterator>>> 29761: _Deque_iterator(const _Iter& __x) noexcept 29761: : _M_cur(__x._M_cur), _M_first(__x._M_first), 29761: _M_last(__x._M_last), _M_node(__x._M_node) { } 29761: 29761: _Deque_iterator(const _Deque_iterator& __x) noexcept 29761: : _M_cur(__x._M_cur), _M_first(__x._M_first), 29761: _M_last(__x._M_last), _M_node(__x._M_node) { } 29761: 29761: _Deque_iterator& operator=(const _Deque_iterator&) = default; 29761: 29761: 29761: iterator 29761: _M_const_cast() const noexcept 29761: { return iterator(_M_cur, _M_node); } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator*() const noexcept 29761: { return *_M_cur; } 29761: 29761: [[__nodiscard__]] 29761: pointer 29761: operator->() const noexcept 29761: { return _M_cur; } 29761: 29761: _Self& 29761: operator++() noexcept 29761: { 29761: ++_M_cur; 29761: if (_M_cur == _M_last) 29761: { 29761: _M_set_node(_M_node + 1); 29761: _M_cur = _M_first; 29761: } 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator++(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: ++*this; 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator--() noexcept 29761: { 29761: if (_M_cur == _M_first) 29761: { 29761: _M_set_node(_M_node - 1); 29761: _M_cur = _M_last; 29761: } 29761: --_M_cur; 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator--(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: --*this; 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator+=(difference_type __n) noexcept 29761: { 29761: const difference_type __offset = __n + (_M_cur - _M_first); 29761: if (__offset >= 0 && __offset < difference_type(_S_buffer_size())) 29761: _M_cur += __n; 29761: else 29761: { 29761: const difference_type __node_offset = 29761: __offset > 0 ? __offset / difference_type(_S_buffer_size()) 29761: : -difference_type((-__offset - 1) 29761: / _S_buffer_size()) - 1; 29761: _M_set_node(_M_node + __node_offset); 29761: _M_cur = _M_first + (__offset - __node_offset 29761: * difference_type(_S_buffer_size())); 29761: } 29761: return *this; 29761: } 29761: 29761: _Self& 29761: operator-=(difference_type __n) noexcept 29761: { return *this += -__n; } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator[](difference_type __n) const noexcept 29761: { return *(*this + __n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: _M_set_node(_Map_pointer __new_node) noexcept 29761: { 29761: _M_node = __new_node; 29761: _M_first = *__new_node; 29761: _M_last = _M_first + difference_type(_S_buffer_size()); 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_cur == __y._M_cur; } 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { return __x._M_cur == __y._M_cur; } 29761: # 296 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const _Self& __x, const _Self& __y) noexcept 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { return !(__x == __y); } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<(const _Self& __x, const _Self& __y) noexcept 29761: { 29761: return (__x._M_node == __y._M_node) 29761: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { 29761: return (__x._M_node == __y._M_node) 29761: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>(const _Self& __x, const _Self& __y) noexcept 29761: { return __y < __x; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { return __y < __x; } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<=(const _Self& __x, const _Self& __y) noexcept 29761: { return !(__y < __x); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<=(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { return !(__y < __x); } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>=(const _Self& __x, const _Self& __y) noexcept 29761: { return !(__x < __y); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>=(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { return !(__x < __y); } 29761: 29761: 29761: [[__nodiscard__]] 29761: friend difference_type 29761: operator-(const _Self& __x, const _Self& __y) noexcept 29761: { 29761: return difference_type(_S_buffer_size()) 29761: * (__x._M_node - __y._M_node - bool(__x._M_node)) 29761: + (__x._M_cur - __x._M_first) 29761: + (__y._M_last - __y._M_cur); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend difference_type 29761: operator-(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { 29761: return difference_type(_S_buffer_size()) 29761: * (__x._M_node - __y._M_node - bool(__x._M_node)) 29761: + (__x._M_cur - __x._M_first) 29761: + (__y._M_last - __y._M_cur); 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend _Self 29761: operator+(const _Self& __x, difference_type __n) noexcept 29761: { 29761: _Self __tmp = __x; 29761: __tmp += __n; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend _Self 29761: operator-(const _Self& __x, difference_type __n) noexcept 29761: { 29761: _Self __tmp = __x; 29761: __tmp -= __n; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend _Self 29761: operator+(difference_type __n, const _Self& __x) noexcept 29761: { return __x + __n; } 29761: }; 29761: # 429 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: class _Deque_base 29761: { 29761: protected: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Tp>::other _Tp_alloc_type; 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 29761: 29761: 29761: 29761: 29761: 29761: typedef typename _Alloc_traits::pointer _Ptr; 29761: typedef typename _Alloc_traits::const_pointer _Ptr_const; 29761: 29761: 29761: typedef typename _Alloc_traits::template rebind<_Ptr>::other 29761: _Map_alloc_type; 29761: typedef __gnu_cxx::__alloc_traits<_Map_alloc_type> _Map_alloc_traits; 29761: 29761: typedef _Alloc allocator_type; 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_get_Tp_allocator()); } 29761: 29761: typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator; 29761: typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator; 29761: 29761: _Deque_base() 29761: : _M_impl() 29761: { _M_initialize_map(0); } 29761: 29761: _Deque_base(size_t __num_elements) 29761: : _M_impl() 29761: { _M_initialize_map(__num_elements); } 29761: 29761: _Deque_base(const allocator_type& __a, size_t __num_elements) 29761: : _M_impl(__a) 29761: { _M_initialize_map(__num_elements); } 29761: 29761: _Deque_base(const allocator_type& __a) 29761: : _M_impl(__a) 29761: { } 29761: 29761: 29761: _Deque_base(_Deque_base&& __x) 29761: : _M_impl(std::move(__x._M_get_Tp_allocator())) 29761: { 29761: _M_initialize_map(0); 29761: if (__x._M_impl._M_map) 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: } 29761: 29761: _Deque_base(_Deque_base&& __x, const allocator_type& __a) 29761: : _M_impl(std::move(__x._M_impl), _Tp_alloc_type(__a)) 29761: { __x._M_initialize_map(0); } 29761: 29761: _Deque_base(_Deque_base&& __x, const allocator_type& __a, size_t __n) 29761: : _M_impl(__a) 29761: { 29761: if (__x.get_allocator() == __a) 29761: { 29761: if (__x._M_impl._M_map) 29761: { 29761: _M_initialize_map(0); 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: } 29761: } 29761: else 29761: { 29761: _M_initialize_map(__n); 29761: } 29761: } 29761: 29761: 29761: ~_Deque_base() noexcept; 29761: 29761: typedef typename iterator::_Map_pointer _Map_pointer; 29761: 29761: struct _Deque_impl_data 29761: { 29761: _Map_pointer _M_map; 29761: size_t _M_map_size; 29761: iterator _M_start; 29761: iterator _M_finish; 29761: 29761: _Deque_impl_data() noexcept 29761: : _M_map(), _M_map_size(), _M_start(), _M_finish() 29761: { } 29761: 29761: 29761: _Deque_impl_data(const _Deque_impl_data&) = default; 29761: _Deque_impl_data& 29761: operator=(const _Deque_impl_data&) = default; 29761: 29761: _Deque_impl_data(_Deque_impl_data&& __x) noexcept 29761: : _Deque_impl_data(__x) 29761: { __x = _Deque_impl_data(); } 29761: 29761: 29761: void 29761: _M_swap_data(_Deque_impl_data& __x) noexcept 29761: { 29761: 29761: 29761: std::swap(*this, __x); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: struct _Deque_impl 29761: : public _Tp_alloc_type, public _Deque_impl_data 29761: { 29761: _Deque_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 29761: 29761: : _Tp_alloc_type() 29761: { } 29761: 29761: _Deque_impl(const _Tp_alloc_type& __a) noexcept 29761: : _Tp_alloc_type(__a) 29761: { } 29761: 29761: 29761: _Deque_impl(_Deque_impl&&) = default; 29761: 29761: _Deque_impl(_Tp_alloc_type&& __a) noexcept 29761: : _Tp_alloc_type(std::move(__a)) 29761: { } 29761: 29761: _Deque_impl(_Deque_impl&& __d, _Tp_alloc_type&& __a) 29761: : _Tp_alloc_type(std::move(__a)), _Deque_impl_data(std::move(__d)) 29761: { } 29761: 29761: }; 29761: 29761: _Tp_alloc_type& 29761: _M_get_Tp_allocator() noexcept 29761: { return this->_M_impl; } 29761: 29761: const _Tp_alloc_type& 29761: _M_get_Tp_allocator() const noexcept 29761: { return this->_M_impl; } 29761: 29761: _Map_alloc_type 29761: _M_get_map_allocator() const noexcept 29761: { return _Map_alloc_type(_M_get_Tp_allocator()); } 29761: 29761: _Ptr 29761: _M_allocate_node() 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 29761: return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp))); 29761: } 29761: 29761: void 29761: _M_deallocate_node(_Ptr __p) noexcept 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 29761: _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp))); 29761: } 29761: 29761: _Map_pointer 29761: _M_allocate_map(size_t __n) 29761: { 29761: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 29761: return _Map_alloc_traits::allocate(__map_alloc, __n); 29761: } 29761: 29761: void 29761: _M_deallocate_map(_Map_pointer __p, size_t __n) noexcept 29761: { 29761: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 29761: _Map_alloc_traits::deallocate(__map_alloc, __p, __n); 29761: } 29761: 29761: void _M_initialize_map(size_t); 29761: void _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish); 29761: void _M_destroy_nodes(_Map_pointer __nstart, 29761: _Map_pointer __nfinish) noexcept; 29761: enum { _S_initial_map_size = 8 }; 29761: 29761: _Deque_impl _M_impl; 29761: }; 29761: 29761: template 29761: _Deque_base<_Tp, _Alloc>:: 29761: ~_Deque_base() noexcept 29761: { 29761: if (this->_M_impl._M_map) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_start._M_node, 29761: this->_M_impl._M_finish._M_node + 1); 29761: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29761: } 29761: } 29761: # 636 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: void 29761: _Deque_base<_Tp, _Alloc>:: 29761: _M_initialize_map(size_t __num_elements) 29761: { 29761: const size_t __num_nodes = (__num_elements / __deque_buf_size(sizeof(_Tp)) 29761: + 1); 29761: 29761: this->_M_impl._M_map_size = std::max((size_t) _S_initial_map_size, 29761: size_t(__num_nodes + 2)); 29761: this->_M_impl._M_map = _M_allocate_map(this->_M_impl._M_map_size); 29761: 29761: 29761: 29761: 29761: 29761: 29761: _Map_pointer __nstart = (this->_M_impl._M_map 29761: + (this->_M_impl._M_map_size - __num_nodes) / 2); 29761: _Map_pointer __nfinish = __nstart + __num_nodes; 29761: 29761: try 29761: { _M_create_nodes(__nstart, __nfinish); } 29761: catch(...) 29761: { 29761: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29761: this->_M_impl._M_map = _Map_pointer(); 29761: this->_M_impl._M_map_size = 0; 29761: throw; 29761: } 29761: 29761: this->_M_impl._M_start._M_set_node(__nstart); 29761: this->_M_impl._M_finish._M_set_node(__nfinish - 1); 29761: this->_M_impl._M_start._M_cur = _M_impl._M_start._M_first; 29761: this->_M_impl._M_finish._M_cur = (this->_M_impl._M_finish._M_first 29761: + __num_elements 29761: % __deque_buf_size(sizeof(_Tp))); 29761: } 29761: 29761: template 29761: void 29761: _Deque_base<_Tp, _Alloc>:: 29761: _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) 29761: { 29761: _Map_pointer __cur; 29761: try 29761: { 29761: for (__cur = __nstart; __cur < __nfinish; ++__cur) 29761: *__cur = this->_M_allocate_node(); 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(__nstart, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: _Deque_base<_Tp, _Alloc>:: 29761: _M_destroy_nodes(_Map_pointer __nstart, 29761: _Map_pointer __nfinish) noexcept 29761: { 29761: for (_Map_pointer __n = __nstart; __n < __nfinish; ++__n) 29761: _M_deallocate_node(*__n); 29761: } 29761: # 787 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template > 29761: class deque : protected _Deque_base<_Tp, _Alloc> 29761: { 29761: # 800 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: static_assert(is_same::type, _Tp>::value, 29761: "std::deque must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _Deque_base<_Tp, _Alloc> _Base; 29761: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29761: typedef typename _Base::_Alloc_traits _Alloc_traits; 29761: typedef typename _Base::_Map_pointer _Map_pointer; 29761: 29761: public: 29761: typedef _Tp value_type; 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: typedef typename _Base::iterator iterator; 29761: typedef typename _Base::const_iterator const_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Alloc allocator_type; 29761: 29761: private: 29761: static size_t _S_buffer_size() noexcept 29761: { return __deque_buf_size(sizeof(_Tp)); } 29761: 29761: 29761: using _Base::_M_initialize_map; 29761: using _Base::_M_create_nodes; 29761: using _Base::_M_destroy_nodes; 29761: using _Base::_M_allocate_node; 29761: using _Base::_M_deallocate_node; 29761: using _Base::_M_allocate_map; 29761: using _Base::_M_deallocate_map; 29761: using _Base::_M_get_Tp_allocator; 29761: 29761: 29761: 29761: 29761: 29761: using _Base::_M_impl; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: deque() = default; 29761: # 864 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: explicit 29761: deque(const allocator_type& __a) 29761: : _Base(__a, 0) { } 29761: # 877 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: explicit 29761: deque(size_type __n, const allocator_type& __a = allocator_type()) 29761: : _Base(__a, _S_check_init_len(__n, __a)) 29761: { _M_default_initialize(); } 29761: # 890 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque(size_type __n, const value_type& __value, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a, _S_check_init_len(__n, __a)) 29761: { _M_fill_initialize(__value); } 29761: # 917 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque(const deque& __x) 29761: : _Base(_Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator()), 29761: __x.size()) 29761: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); } 29761: # 933 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque(deque&&) = default; 29761: 29761: 29761: deque(const deque& __x, const __type_identity_t& __a) 29761: : _Base(__a, __x.size()) 29761: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); } 29761: 29761: 29761: deque(deque&& __x, const __type_identity_t& __a) 29761: : deque(std::move(__x), __a, typename _Alloc_traits::is_always_equal{}) 29761: { } 29761: 29761: private: 29761: deque(deque&& __x, const allocator_type& __a, true_type) 29761: : _Base(std::move(__x), __a) 29761: { } 29761: 29761: deque(deque&& __x, const allocator_type& __a, false_type) 29761: : _Base(std::move(__x), __a, __x.size()) 29761: { 29761: if (__x.get_allocator() != __a && !__x.empty()) 29761: { 29761: std::__uninitialized_move_a(__x.begin(), __x.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); 29761: __x.clear(); 29761: } 29761: } 29761: 29761: public: 29761: # 976 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque(initializer_list __l, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_range_initialize(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: } 29761: # 1001 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template> 29761: deque(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_range_initialize(__first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: # 1027 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: ~deque() 29761: { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } 29761: # 1039 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque& 29761: operator=(const deque& __x); 29761: # 1051 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque& 29761: operator=(deque&& __x) noexcept(_Alloc_traits::_S_always_equal()) 29761: { 29761: using __always_equal = typename _Alloc_traits::is_always_equal; 29761: _M_move_assign1(std::move(__x), __always_equal{}); 29761: return *this; 29761: } 29761: # 1070 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque& 29761: operator=(initializer_list __l) 29761: { 29761: _M_assign_aux(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: return *this; 29761: } 29761: # 1089 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: assign(size_type __n, const value_type& __val) 29761: { _M_fill_assign(__n, __val); } 29761: # 1106 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template> 29761: void 29761: assign(_InputIterator __first, _InputIterator __last) 29761: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29761: # 1133 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: assign(initializer_list __l) 29761: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _Base::get_allocator(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: begin() noexcept 29761: { return this->_M_impl._M_start; } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: begin() const noexcept 29761: { return this->_M_impl._M_start; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: end() noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: end() const noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cbegin() const noexcept 29761: { return this->_M_impl._M_start; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cend() const noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: size() const noexcept 29761: { return this->_M_impl._M_finish - this->_M_impl._M_start; } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: max_size() const noexcept 29761: { return _S_max_size(_M_get_Tp_allocator()); } 29761: # 1287 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: resize(size_type __new_size) 29761: { 29761: const size_type __len = size(); 29761: if (__new_size > __len) 29761: _M_default_append(__new_size - __len); 29761: else if (__new_size < __len) 29761: _M_erase_at_end(this->_M_impl._M_start 29761: + difference_type(__new_size)); 29761: } 29761: # 1309 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: resize(size_type __new_size, const value_type& __x) 29761: # 1326 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: { 29761: const size_type __len = size(); 29761: if (__new_size > __len) 29761: _M_fill_insert(this->_M_impl._M_finish, __new_size - __len, __x); 29761: else if (__new_size < __len) 29761: _M_erase_at_end(this->_M_impl._M_start 29761: + difference_type(__new_size)); 29761: } 29761: 29761: 29761: 29761: void 29761: shrink_to_fit() noexcept 29761: { _M_shrink_to_fit(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return this->_M_impl._M_finish == this->_M_impl._M_start; } 29761: # 1362 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: operator[](size_type __n) noexcept 29761: { 29761: ; 29761: return this->_M_impl._M_start[difference_type(__n)]; 29761: } 29761: # 1381 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: [[__nodiscard__]] 29761: const_reference 29761: operator[](size_type __n) const noexcept 29761: { 29761: ; 29761: return this->_M_impl._M_start[difference_type(__n)]; 29761: } 29761: 29761: protected: 29761: 29761: void 29761: _M_range_check(size_type __n) const 29761: { 29761: if (__n >= this->size()) 29761: __throw_out_of_range_fmt(("deque::_M_range_check: __n " "(which is %zu)>= this->size() " "(which is %zu)") 29761: 29761: , 29761: __n, this->size()); 29761: } 29761: 29761: public: 29761: # 1413 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: reference 29761: at(size_type __n) 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: # 1431 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: const_reference 29761: at(size_type __n) const 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: front() noexcept 29761: { 29761: ; 29761: return *begin(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: front() const noexcept 29761: { 29761: ; 29761: return *begin(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: back() noexcept 29761: { 29761: ; 29761: iterator __tmp = end(); 29761: --__tmp; 29761: return *__tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: back() const noexcept 29761: { 29761: ; 29761: const_iterator __tmp = end(); 29761: --__tmp; 29761: return *__tmp; 29761: } 29761: # 1500 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: push_front(const value_type& __x) 29761: { 29761: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 29761: { 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_start._M_cur - 1, 29761: __x); 29761: --this->_M_impl._M_start._M_cur; 29761: } 29761: else 29761: _M_push_front_aux(__x); 29761: } 29761: 29761: 29761: void 29761: push_front(value_type&& __x) 29761: { emplace_front(std::move(__x)); } 29761: 29761: template 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_front(_Args&&... __args); 29761: # 1537 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: push_back(const value_type& __x) 29761: { 29761: if (this->_M_impl._M_finish._M_cur 29761: != this->_M_impl._M_finish._M_last - 1) 29761: { 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_finish._M_cur, __x); 29761: ++this->_M_impl._M_finish._M_cur; 29761: } 29761: else 29761: _M_push_back_aux(__x); 29761: } 29761: 29761: 29761: void 29761: push_back(value_type&& __x) 29761: { emplace_back(std::move(__x)); } 29761: 29761: template 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_back(_Args&&... __args); 29761: # 1573 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: pop_front() noexcept 29761: { 29761: ; 29761: if (this->_M_impl._M_start._M_cur 29761: != this->_M_impl._M_start._M_last - 1) 29761: { 29761: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29761: this->_M_impl._M_start._M_cur); 29761: ++this->_M_impl._M_start._M_cur; 29761: } 29761: else 29761: _M_pop_front_aux(); 29761: } 29761: # 1596 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: pop_back() noexcept 29761: { 29761: ; 29761: if (this->_M_impl._M_finish._M_cur 29761: != this->_M_impl._M_finish._M_first) 29761: { 29761: --this->_M_impl._M_finish._M_cur; 29761: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29761: this->_M_impl._M_finish._M_cur); 29761: } 29761: else 29761: _M_pop_back_aux(); 29761: } 29761: # 1621 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: iterator 29761: emplace(const_iterator __position, _Args&&... __args); 29761: # 1634 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: insert(const_iterator __position, const value_type& __x); 29761: # 1660 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return emplace(__position, std::move(__x)); } 29761: # 1674 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: insert(const_iterator __p, initializer_list __l) 29761: { 29761: auto __offset = __p - cbegin(); 29761: _M_range_insert_aux(__p._M_const_cast(), __l.begin(), __l.end(), 29761: std::random_access_iterator_tag()); 29761: return begin() + __offset; 29761: } 29761: # 1693 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: insert(const_iterator __position, size_type __n, const value_type& __x) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_fill_insert(__position._M_const_cast(), __n, __x); 29761: return begin() + __offset; 29761: } 29761: # 1727 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template> 29761: iterator 29761: insert(const_iterator __position, _InputIterator __first, 29761: _InputIterator __last) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_range_insert_aux(__position._M_const_cast(), __first, __last, 29761: std::__iterator_category(__first)); 29761: return begin() + __offset; 29761: } 29761: # 1773 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: 29761: erase(const_iterator __position) 29761: 29761: 29761: 29761: { return _M_erase(__position._M_const_cast()); } 29761: # 1797 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: 29761: erase(const_iterator __first, const_iterator __last) 29761: 29761: 29761: 29761: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 29761: # 1816 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: swap(deque& __x) noexcept 29761: { 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) std::__glibcxx_assert_fail(); } while (false) 29761: ; 29761: 29761: _M_impl._M_swap_data(__x._M_impl); 29761: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 29761: __x._M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_erase_at_end(begin()); } 29761: 29761: protected: 29761: # 1866 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: static size_t 29761: _S_check_init_len(size_t __n, const allocator_type& __a) 29761: { 29761: if (__n > _S_max_size(__a)) 29761: __throw_length_error( 29761: ("cannot create std::deque larger than max_size()")); 29761: return __n; 29761: } 29761: 29761: static size_type 29761: _S_max_size(const _Tp_alloc_type& __a) noexcept 29761: { 29761: const size_t __diffmax = __gnu_cxx::__numeric_traits::__max; 29761: const size_t __allocmax = _Alloc_traits::max_size(__a); 29761: return (std::min)(__diffmax, __allocmax); 29761: } 29761: # 1895 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: void 29761: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag); 29761: 29761: 29761: template 29761: void 29761: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag); 29761: # 1917 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: _M_fill_initialize(const value_type& __value); 29761: 29761: 29761: 29761: void 29761: _M_default_initialize(); 29761: # 1948 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: void 29761: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag); 29761: 29761: 29761: template 29761: void 29761: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __len = std::distance(__first, __last); 29761: if (__len > size()) 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, size()); 29761: std::copy(__first, __mid, begin()); 29761: _M_range_insert_aux(end(), __mid, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: else 29761: _M_erase_at_end(std::copy(__first, __last, begin())); 29761: } 29761: 29761: 29761: 29761: void 29761: _M_fill_assign(size_type __n, const value_type& __val) 29761: { 29761: if (__n > size()) 29761: { 29761: std::fill(begin(), end(), __val); 29761: _M_fill_insert(end(), __n - size(), __val); 29761: } 29761: else 29761: { 29761: _M_erase_at_end(begin() + difference_type(__n)); 29761: std::fill(begin(), end(), __val); 29761: } 29761: } 29761: # 1996 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: void _M_push_back_aux(_Args&&... __args); 29761: 29761: template 29761: void _M_push_front_aux(_Args&&... __args); 29761: 29761: 29761: void _M_pop_back_aux(); 29761: 29761: void _M_pop_front_aux(); 29761: # 2035 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: void 29761: _M_range_insert_aux(iterator __pos, _InputIterator __first, 29761: _InputIterator __last, std::input_iterator_tag); 29761: 29761: 29761: template 29761: void 29761: _M_range_insert_aux(iterator __pos, _ForwardIterator __first, 29761: _ForwardIterator __last, std::forward_iterator_tag); 29761: 29761: 29761: 29761: 29761: void 29761: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: _M_insert_aux(iterator __pos, const value_type& __x) 29761: { return _M_emplace_aux(__pos, __x); } 29761: 29761: template 29761: iterator 29761: _M_emplace_aux(iterator __pos, _Args&&... __args); 29761: 29761: 29761: 29761: void 29761: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x); 29761: 29761: 29761: template 29761: void 29761: _M_insert_aux(iterator __pos, 29761: _ForwardIterator __first, _ForwardIterator __last, 29761: size_type __n); 29761: 29761: 29761: 29761: 29761: void 29761: _M_destroy_data_aux(iterator __first, iterator __last); 29761: 29761: 29761: 29761: template 29761: void 29761: _M_destroy_data(iterator __first, iterator __last, const _Alloc1&) 29761: { _M_destroy_data_aux(__first, __last); } 29761: 29761: void 29761: _M_destroy_data(iterator __first, iterator __last, 29761: const std::allocator<_Tp>&) 29761: { 29761: if (!__has_trivial_destructor(value_type)) 29761: _M_destroy_data_aux(__first, __last); 29761: } 29761: 29761: 29761: void 29761: _M_erase_at_begin(iterator __pos) 29761: { 29761: _M_destroy_data(begin(), __pos, _M_get_Tp_allocator()); 29761: _M_destroy_nodes(this->_M_impl._M_start._M_node, __pos._M_node); 29761: this->_M_impl._M_start = __pos; 29761: } 29761: 29761: 29761: 29761: void 29761: _M_erase_at_end(iterator __pos) 29761: { 29761: _M_destroy_data(__pos, end(), _M_get_Tp_allocator()); 29761: _M_destroy_nodes(__pos._M_node + 1, 29761: this->_M_impl._M_finish._M_node + 1); 29761: this->_M_impl._M_finish = __pos; 29761: } 29761: 29761: iterator 29761: _M_erase(iterator __pos); 29761: 29761: iterator 29761: _M_erase(iterator __first, iterator __last); 29761: 29761: 29761: 29761: void 29761: _M_default_append(size_type __n); 29761: 29761: bool 29761: _M_shrink_to_fit(); 29761: 29761: 29761: 29761: 29761: iterator 29761: _M_reserve_elements_at_front(size_type __n) 29761: { 29761: const size_type __vacancies = this->_M_impl._M_start._M_cur 29761: - this->_M_impl._M_start._M_first; 29761: if (__n > __vacancies) 29761: _M_new_elements_at_front(__n - __vacancies); 29761: return this->_M_impl._M_start - difference_type(__n); 29761: } 29761: 29761: iterator 29761: _M_reserve_elements_at_back(size_type __n) 29761: { 29761: const size_type __vacancies = (this->_M_impl._M_finish._M_last 29761: - this->_M_impl._M_finish._M_cur) - 1; 29761: if (__n > __vacancies) 29761: _M_new_elements_at_back(__n - __vacancies); 29761: return this->_M_impl._M_finish + difference_type(__n); 29761: } 29761: 29761: void 29761: _M_new_elements_at_front(size_type __new_elements); 29761: 29761: void 29761: _M_new_elements_at_back(size_type __new_elements); 29761: # 2171 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: _M_reserve_map_at_back(size_type __nodes_to_add = 1) 29761: { 29761: if (__nodes_to_add + 1 > this->_M_impl._M_map_size 29761: - (this->_M_impl._M_finish._M_node - this->_M_impl._M_map)) 29761: _M_reallocate_map(__nodes_to_add, false); 29761: } 29761: 29761: void 29761: _M_reserve_map_at_front(size_type __nodes_to_add = 1) 29761: { 29761: if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node 29761: - this->_M_impl._M_map)) 29761: _M_reallocate_map(__nodes_to_add, true); 29761: } 29761: 29761: void 29761: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front); 29761: 29761: 29761: 29761: 29761: 29761: void 29761: _M_move_assign1(deque&& __x, true_type) noexcept 29761: { 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: __x.clear(); 29761: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: _M_move_assign1(deque&& __x, false_type) 29761: { 29761: if (_M_get_Tp_allocator() == __x._M_get_Tp_allocator()) 29761: return _M_move_assign1(std::move(__x), true_type()); 29761: 29761: constexpr bool __move_storage = 29761: _Alloc_traits::_S_propagate_on_move_assign(); 29761: _M_move_assign2(std::move(__x), __bool_constant<__move_storage>()); 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: _M_replace_map(_Args&&... __args) 29761: { 29761: 29761: deque __newobj(std::forward<_Args>(__args)...); 29761: 29761: clear(); 29761: _M_deallocate_node(*begin()._M_node); 29761: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29761: this->_M_impl._M_map = nullptr; 29761: this->_M_impl._M_map_size = 0; 29761: 29761: this->_M_impl._M_swap_data(__newobj._M_impl); 29761: } 29761: 29761: 29761: void 29761: _M_move_assign2(deque&& __x, true_type) 29761: { 29761: 29761: auto __alloc = __x._M_get_Tp_allocator(); 29761: 29761: 29761: _M_replace_map(std::move(__x)); 29761: 29761: _M_get_Tp_allocator() = std::move(__alloc); 29761: } 29761: 29761: 29761: 29761: void 29761: _M_move_assign2(deque&& __x, false_type) 29761: { 29761: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 29761: { 29761: 29761: 29761: _M_replace_map(std::move(__x), __x.get_allocator()); 29761: } 29761: else 29761: { 29761: 29761: 29761: _M_assign_aux(std::make_move_iterator(__x.begin()), 29761: std::make_move_iterator(__x.end()), 29761: std::random_access_iterator_tag()); 29761: __x.clear(); 29761: } 29761: } 29761: 29761: }; 29761: 29761: 29761: template::value_type, 29761: typename _Allocator = allocator<_ValT>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireAllocator<_Allocator>> 29761: deque(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29761: -> deque<_ValT, _Allocator>; 29761: # 2291 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return __x.size() == __y.size() 29761: && std::equal(__x.begin(), __x.end(), __y.begin()); } 29761: # 2331 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return std::lexicographical_compare(__x.begin(), __x.end(), 29761: __y.begin(), __y.end()); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_bitwise_relocatable> 29761: : true_type { }; 29761: 29761: 29761: 29761: } 29761: # 67 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/refwrap.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/refwrap.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/refwrap.h" 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/invoke.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/invoke.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/invoke.h" 3 29761: # 42 "/usr/include/c++/14/bits/invoke.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 53 "/usr/include/c++/14/bits/invoke.h" 3 29761: template::type> 29761: constexpr _Up&& 29761: __invfwd(typename remove_reference<_Tp>::type& __t) noexcept 29761: { return static_cast<_Up&&>(__t); } 29761: 29761: template 29761: constexpr _Res 29761: __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) 29761: { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } 29761: 29761: template 29761: constexpr _Res 29761: __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, 29761: _Args&&... __args) 29761: { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } 29761: 29761: template 29761: constexpr _Res 29761: __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, 29761: _Args&&... __args) 29761: { 29761: return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); 29761: } 29761: 29761: template 29761: constexpr _Res 29761: __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) 29761: { return __invfwd<_Tp>(__t).*__f; } 29761: 29761: template 29761: constexpr _Res 29761: __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) 29761: { return (*std::forward<_Tp>(__t)).*__f; } 29761: 29761: 29761: template 29761: constexpr typename __invoke_result<_Callable, _Args...>::type 29761: __invoke(_Callable&& __fn, _Args&&... __args) 29761: noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) 29761: { 29761: using __result = __invoke_result<_Callable, _Args...>; 29761: using __type = typename __result::type; 29761: using __tag = typename __result::__invoke_type; 29761: return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr enable_if_t, _Res> 29761: __invoke_r(_Callable&& __fn, _Args&&... __args) 29761: noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) 29761: { 29761: using __result = __invoke_result<_Callable, _Args...>; 29761: using __type = typename __result::type; 29761: using __tag = typename __result::__invoke_type; 29761: if constexpr (is_void_v<_Res>) 29761: std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 29761: std::forward<_Args>(__args)...); 29761: else 29761: return std::__invoke_impl<__type>(__tag{}, 29761: std::forward<_Callable>(__fn), 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 155 "/usr/include/c++/14/bits/invoke.h" 3 29761: 29761: } 29761: # 39 "/usr/include/c++/14/bits/refwrap.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_function.h" 1 3 29761: # 63 "/usr/include/c++/14/bits/stl_function.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 116 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: struct unary_function 29761: { 29761: 29761: typedef _Arg argument_type; 29761: 29761: 29761: typedef _Result result_type; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct binary_function 29761: { 29761: 29761: typedef _Arg1 first_argument_type; 29761: 29761: 29761: typedef _Arg2 second_argument_type; 29761: 29761: 29761: typedef _Result result_type; 29761: } __attribute__ ((__deprecated__)); 29761: # 157 "/usr/include/c++/14/bits/stl_function.h" 3 29761: struct __is_transparent; 29761: 29761: template 29761: struct plus; 29761: 29761: template 29761: struct minus; 29761: 29761: template 29761: struct multiplies; 29761: 29761: template 29761: struct divides; 29761: 29761: template 29761: struct modulus; 29761: 29761: template 29761: struct negate; 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: struct plus : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x + __y; } 29761: }; 29761: 29761: 29761: template 29761: struct minus : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x - __y; } 29761: }; 29761: 29761: 29761: template 29761: struct multiplies : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x * __y; } 29761: }; 29761: 29761: 29761: template 29761: struct divides : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x / __y; } 29761: }; 29761: 29761: 29761: template 29761: struct modulus : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x % __y; } 29761: }; 29761: 29761: 29761: template 29761: struct negate : public unary_function<_Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x) const 29761: { return -__x; } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: template<> 29761: struct plus 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct minus 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct multiplies 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct divides 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct modulus 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct negate 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t) const 29761: noexcept(noexcept(-std::forward<_Tp>(__t))) 29761: -> decltype(-std::forward<_Tp>(__t)) 29761: { return -std::forward<_Tp>(__t); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: # 346 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: struct equal_to; 29761: 29761: template 29761: struct not_equal_to; 29761: 29761: template 29761: struct greater; 29761: 29761: template 29761: struct less; 29761: 29761: template 29761: struct greater_equal; 29761: 29761: template 29761: struct less_equal; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: struct equal_to : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x == __y; } 29761: }; 29761: 29761: 29761: template 29761: struct not_equal_to : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x != __y; } 29761: }; 29761: 29761: 29761: template 29761: struct greater : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x > __y; } 29761: }; 29761: 29761: 29761: template 29761: struct less : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x < __y; } 29761: }; 29761: 29761: 29761: template 29761: struct greater_equal : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x >= __y; } 29761: }; 29761: 29761: 29761: template 29761: struct less_equal : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x <= __y; } 29761: }; 29761: 29761: 29761: template 29761: struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29761: { 29761: constexpr bool 29761: operator()(_Tp* __x, _Tp* __y) const noexcept 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __x > __y; 29761: 29761: return (unsigned int)__x > (unsigned int)__y; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29761: { 29761: constexpr bool 29761: operator()(_Tp* __x, _Tp* __y) const noexcept 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __x < __y; 29761: 29761: return (unsigned int)__x < (unsigned int)__y; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29761: { 29761: constexpr bool 29761: operator()(_Tp* __x, _Tp* __y) const noexcept 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __x >= __y; 29761: 29761: return (unsigned int)__x >= (unsigned int)__y; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29761: { 29761: constexpr bool 29761: operator()(_Tp* __x, _Tp* __y) const noexcept 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __x <= __y; 29761: 29761: return (unsigned int)__x <= (unsigned int)__y; 29761: } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: template<> 29761: struct equal_to 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct not_equal_to 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct greater 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) 29761: { 29761: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29761: __ptr_cmp<_Tp, _Up>{}); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator()(_Tp* __t, _Up* __u) const noexcept 29761: { return greater>{}(__t, __u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: 29761: private: 29761: template 29761: static constexpr decltype(auto) 29761: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29761: { return std::forward<_Tp>(__t) > std::forward<_Up>(__u); } 29761: 29761: template 29761: static constexpr bool 29761: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29761: { 29761: return greater{}( 29761: static_cast(std::forward<_Tp>(__t)), 29761: static_cast(std::forward<_Up>(__u))); 29761: } 29761: 29761: 29761: template 29761: struct __not_overloaded2 : true_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded2<_Tp, _Up, __void_t< 29761: decltype(std::declval<_Tp>().operator>(std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29761: 29761: 29761: template 29761: struct __not_overloaded<_Tp, _Up, __void_t< 29761: decltype(operator>(std::declval<_Tp>(), std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: template 29761: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29761: is_convertible<_Tp, const volatile void*>, 29761: is_convertible<_Up, const volatile void*>>; 29761: }; 29761: 29761: 29761: template<> 29761: struct less 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) 29761: { 29761: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29761: __ptr_cmp<_Tp, _Up>{}); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator()(_Tp* __t, _Up* __u) const noexcept 29761: { return less>{}(__t, __u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: 29761: private: 29761: template 29761: static constexpr decltype(auto) 29761: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29761: { return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } 29761: 29761: template 29761: static constexpr bool 29761: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29761: { 29761: return less{}( 29761: static_cast(std::forward<_Tp>(__t)), 29761: static_cast(std::forward<_Up>(__u))); 29761: } 29761: 29761: 29761: template 29761: struct __not_overloaded2 : true_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded2<_Tp, _Up, __void_t< 29761: decltype(std::declval<_Tp>().operator<(std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29761: 29761: 29761: template 29761: struct __not_overloaded<_Tp, _Up, __void_t< 29761: decltype(operator<(std::declval<_Tp>(), std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: template 29761: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29761: is_convertible<_Tp, const volatile void*>, 29761: is_convertible<_Up, const volatile void*>>; 29761: }; 29761: 29761: 29761: template<> 29761: struct greater_equal 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) 29761: { 29761: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29761: __ptr_cmp<_Tp, _Up>{}); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator()(_Tp* __t, _Up* __u) const noexcept 29761: { return greater_equal>{}(__t, __u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: 29761: private: 29761: template 29761: static constexpr decltype(auto) 29761: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29761: { return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); } 29761: 29761: template 29761: static constexpr bool 29761: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29761: { 29761: return greater_equal{}( 29761: static_cast(std::forward<_Tp>(__t)), 29761: static_cast(std::forward<_Up>(__u))); 29761: } 29761: 29761: 29761: template 29761: struct __not_overloaded2 : true_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded2<_Tp, _Up, __void_t< 29761: decltype(std::declval<_Tp>().operator>=(std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29761: 29761: 29761: template 29761: struct __not_overloaded<_Tp, _Up, __void_t< 29761: decltype(operator>=(std::declval<_Tp>(), std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: template 29761: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29761: is_convertible<_Tp, const volatile void*>, 29761: is_convertible<_Up, const volatile void*>>; 29761: }; 29761: 29761: 29761: template<> 29761: struct less_equal 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) 29761: { 29761: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29761: __ptr_cmp<_Tp, _Up>{}); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator()(_Tp* __t, _Up* __u) const noexcept 29761: { return less_equal>{}(__t, __u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: 29761: private: 29761: template 29761: static constexpr decltype(auto) 29761: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29761: { return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); } 29761: 29761: template 29761: static constexpr bool 29761: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29761: { 29761: return less_equal{}( 29761: static_cast(std::forward<_Tp>(__t)), 29761: static_cast(std::forward<_Up>(__u))); 29761: } 29761: 29761: 29761: template 29761: struct __not_overloaded2 : true_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded2<_Tp, _Up, __void_t< 29761: decltype(std::declval<_Tp>().operator<=(std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29761: 29761: 29761: template 29761: struct __not_overloaded<_Tp, _Up, __void_t< 29761: decltype(operator<=(std::declval<_Tp>(), std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: template 29761: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29761: is_convertible<_Tp, const volatile void*>, 29761: is_convertible<_Up, const volatile void*>>; 29761: }; 29761: # 778 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: struct logical_and; 29761: 29761: template 29761: struct logical_or; 29761: 29761: template 29761: struct logical_not; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: struct logical_and : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x && __y; } 29761: }; 29761: 29761: 29761: template 29761: struct logical_or : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x || __y; } 29761: }; 29761: 29761: 29761: template 29761: struct logical_not : public unary_function<_Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x) const 29761: { return !__x; } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: template<> 29761: struct logical_and 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct logical_or 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct logical_not 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t) const 29761: noexcept(noexcept(!std::forward<_Tp>(__t))) 29761: -> decltype(!std::forward<_Tp>(__t)) 29761: { return !std::forward<_Tp>(__t); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct bit_and; 29761: 29761: template 29761: struct bit_or; 29761: 29761: template 29761: struct bit_xor; 29761: 29761: template 29761: struct bit_not; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: 29761: template 29761: struct bit_and : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x & __y; } 29761: }; 29761: 29761: template 29761: struct bit_or : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x | __y; } 29761: }; 29761: 29761: template 29761: struct bit_xor : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x ^ __y; } 29761: }; 29761: 29761: template 29761: struct bit_not : public unary_function<_Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x) const 29761: { return ~__x; } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: template <> 29761: struct bit_and 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: template <> 29761: struct bit_or 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: template <> 29761: struct bit_xor 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: template <> 29761: struct bit_not 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t) const 29761: noexcept(noexcept(~std::forward<_Tp>(__t))) 29761: -> decltype(~std::forward<_Tp>(__t)) 29761: { return ~std::forward<_Tp>(__t); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: # 1020 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: class [[__deprecated__]] unary_negate 29761: : public unary_function 29761: { 29761: protected: 29761: _Predicate _M_pred; 29761: 29761: public: 29761: constexpr 29761: explicit 29761: unary_negate(const _Predicate& __x) : _M_pred(__x) { } 29761: 29761: constexpr 29761: bool 29761: operator()(const typename _Predicate::argument_type& __x) const 29761: { return !_M_pred(__x); } 29761: }; 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 29761: constexpr 29761: inline unary_negate<_Predicate> 29761: not1(const _Predicate& __pred) 29761: { return unary_negate<_Predicate>(__pred); } 29761: 29761: 29761: template 29761: class [[__deprecated__]] binary_negate 29761: : public binary_function 29761: { 29761: protected: 29761: _Predicate _M_pred; 29761: 29761: public: 29761: constexpr 29761: explicit 29761: binary_negate(const _Predicate& __x) : _M_pred(__x) { } 29761: 29761: constexpr 29761: bool 29761: operator()(const typename _Predicate::first_argument_type& __x, 29761: const typename _Predicate::second_argument_type& __y) const 29761: { return !_M_pred(__x, __y); } 29761: }; 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 29761: constexpr 29761: inline binary_negate<_Predicate> 29761: not2(const _Predicate& __pred) 29761: { return binary_negate<_Predicate>(__pred); } 29761: # 1101 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: class pointer_to_unary_function : public unary_function<_Arg, _Result> 29761: { 29761: protected: 29761: _Result (*_M_ptr)(_Arg); 29761: 29761: public: 29761: pointer_to_unary_function() { } 29761: 29761: explicit 29761: pointer_to_unary_function(_Result (*__x)(_Arg)) 29761: : _M_ptr(__x) { } 29761: 29761: _Result 29761: operator()(_Arg __x) const 29761: { return _M_ptr(__x); } 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 29761: inline pointer_to_unary_function<_Arg, _Result> 29761: ptr_fun(_Result (*__x)(_Arg)) 29761: { return pointer_to_unary_function<_Arg, _Result>(__x); } 29761: 29761: 29761: template 29761: class pointer_to_binary_function 29761: : public binary_function<_Arg1, _Arg2, _Result> 29761: { 29761: protected: 29761: _Result (*_M_ptr)(_Arg1, _Arg2); 29761: 29761: public: 29761: pointer_to_binary_function() { } 29761: 29761: explicit 29761: pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) 29761: : _M_ptr(__x) { } 29761: 29761: _Result 29761: operator()(_Arg1 __x, _Arg2 __y) const 29761: { return _M_ptr(__x, __y); } 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 29761: inline pointer_to_binary_function<_Arg1, _Arg2, _Result> 29761: ptr_fun(_Result (*__x)(_Arg1, _Arg2)) 29761: { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } 29761: 29761: 29761: template 29761: struct _Identity 29761: : public unary_function<_Tp, _Tp> 29761: { 29761: _Tp& 29761: operator()(_Tp& __x) const 29761: { return __x; } 29761: 29761: const _Tp& 29761: operator()(const _Tp& __x) const 29761: { return __x; } 29761: }; 29761: 29761: 29761: template struct _Identity : _Identity<_Tp> { }; 29761: 29761: template 29761: struct _Select1st 29761: : public unary_function<_Pair, typename _Pair::first_type> 29761: { 29761: typename _Pair::first_type& 29761: operator()(_Pair& __x) const 29761: { return __x.first; } 29761: 29761: const typename _Pair::first_type& 29761: operator()(const _Pair& __x) const 29761: { return __x.first; } 29761: 29761: 29761: template 29761: typename _Pair2::first_type& 29761: operator()(_Pair2& __x) const 29761: { return __x.first; } 29761: 29761: template 29761: const typename _Pair2::first_type& 29761: operator()(const _Pair2& __x) const 29761: { return __x.first; } 29761: 29761: }; 29761: 29761: template 29761: struct _Select2nd 29761: : public unary_function<_Pair, typename _Pair::second_type> 29761: { 29761: typename _Pair::second_type& 29761: operator()(_Pair& __x) const 29761: { return __x.second; } 29761: 29761: const typename _Pair::second_type& 29761: operator()(const _Pair& __x) const 29761: { return __x.second; } 29761: }; 29761: # 1228 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: class mem_fun_t : public unary_function<_Tp*, _Ret> 29761: { 29761: public: 29761: explicit 29761: mem_fun_t(_Ret (_Tp::*__pf)()) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(_Tp* __p) const 29761: { return (__p->*_M_f)(); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(); 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class const_mem_fun_t : public unary_function 29761: { 29761: public: 29761: explicit 29761: const_mem_fun_t(_Ret (_Tp::*__pf)() const) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(const _Tp* __p) const 29761: { return (__p->*_M_f)(); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)() const; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class mem_fun_ref_t : public unary_function<_Tp, _Ret> 29761: { 29761: public: 29761: explicit 29761: mem_fun_ref_t(_Ret (_Tp::*__pf)()) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(_Tp& __r) const 29761: { return (__r.*_M_f)(); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(); 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> 29761: { 29761: public: 29761: explicit 29761: const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(const _Tp& __r) const 29761: { return (__r.*_M_f)(); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)() const; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> 29761: { 29761: public: 29761: explicit 29761: mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(_Tp* __p, _Arg __x) const 29761: { return (__p->*_M_f)(__x); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(_Arg); 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class const_mem_fun1_t : public binary_function 29761: { 29761: public: 29761: explicit 29761: const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(const _Tp* __p, _Arg __x) const 29761: { return (__p->*_M_f)(__x); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(_Arg) const; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 29761: { 29761: public: 29761: explicit 29761: mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(_Tp& __r, _Arg __x) const 29761: { return (__r.*_M_f)(__x); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(_Arg); 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 29761: { 29761: public: 29761: explicit 29761: const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(const _Tp& __r, _Arg __x) const 29761: { return (__r.*_M_f)(__x); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(_Arg) const; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline mem_fun_t<_Ret, _Tp> 29761: mem_fun(_Ret (_Tp::*__f)()) 29761: { return mem_fun_t<_Ret, _Tp>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline const_mem_fun_t<_Ret, _Tp> 29761: mem_fun(_Ret (_Tp::*__f)() const) 29761: { return const_mem_fun_t<_Ret, _Tp>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline mem_fun_ref_t<_Ret, _Tp> 29761: mem_fun_ref(_Ret (_Tp::*__f)()) 29761: { return mem_fun_ref_t<_Ret, _Tp>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline const_mem_fun_ref_t<_Ret, _Tp> 29761: mem_fun_ref(_Ret (_Tp::*__f)() const) 29761: { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline mem_fun1_t<_Ret, _Tp, _Arg> 29761: mem_fun(_Ret (_Tp::*__f)(_Arg)) 29761: { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline const_mem_fun1_t<_Ret, _Tp, _Arg> 29761: mem_fun(_Ret (_Tp::*__f)(_Arg) const) 29761: { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline mem_fun1_ref_t<_Ret, _Tp, _Arg> 29761: mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) 29761: { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> 29761: mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) 29761: { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: template> 29761: struct __has_is_transparent 29761: { }; 29761: 29761: template 29761: struct __has_is_transparent<_Func, _SfinaeType, 29761: __void_t> 29761: { typedef void type; }; 29761: 29761: template 29761: using __has_is_transparent_t 29761: = typename __has_is_transparent<_Func, _SfinaeType>::type; 29761: 29761: 29761: 29761: } 29761: 29761: 29761: # 1 "/usr/include/c++/14/backward/binders.h" 1 3 29761: # 60 "/usr/include/c++/14/backward/binders.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 107 "/usr/include/c++/14/backward/binders.h" 3 29761: template 29761: class binder1st 29761: : public unary_function 29761: { 29761: protected: 29761: _Operation op; 29761: typename _Operation::first_argument_type value; 29761: 29761: public: 29761: binder1st(const _Operation& __x, 29761: const typename _Operation::first_argument_type& __y) 29761: : op(__x), value(__y) { } 29761: 29761: typename _Operation::result_type 29761: operator()(const typename _Operation::second_argument_type& __x) const 29761: { return op(value, __x); } 29761: 29761: 29761: 29761: typename _Operation::result_type 29761: operator()(typename _Operation::second_argument_type& __x) const 29761: { return op(value, __x); } 29761: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 29761: inline binder1st<_Operation> 29761: bind1st(const _Operation& __fn, const _Tp& __x) 29761: { 29761: typedef typename _Operation::first_argument_type _Arg1_type; 29761: return binder1st<_Operation>(__fn, _Arg1_type(__x)); 29761: } 29761: 29761: 29761: template 29761: class binder2nd 29761: : public unary_function 29761: { 29761: protected: 29761: _Operation op; 29761: typename _Operation::second_argument_type value; 29761: 29761: public: 29761: binder2nd(const _Operation& __x, 29761: const typename _Operation::second_argument_type& __y) 29761: : op(__x), value(__y) { } 29761: 29761: typename _Operation::result_type 29761: operator()(const typename _Operation::first_argument_type& __x) const 29761: { return op(__x, value); } 29761: 29761: 29761: 29761: typename _Operation::result_type 29761: operator()(typename _Operation::first_argument_type& __x) const 29761: { return op(__x, value); } 29761: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 29761: inline binder2nd<_Operation> 29761: bind2nd(const _Operation& __fn, const _Tp& __x) 29761: { 29761: typedef typename _Operation::second_argument_type _Arg2_type; 29761: return binder2nd<_Operation>(__fn, _Arg2_type(__x)); 29761: } 29761: 29761: 29761: 29761: } 29761: 29761: #pragma GCC diagnostic pop 29761: # 1436 "/usr/include/c++/14/bits/stl_function.h" 2 3 29761: # 40 "/usr/include/c++/14/bits/refwrap.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 56 "/usr/include/c++/14/bits/refwrap.h" 3 29761: template 29761: struct _Maybe_unary_or_binary_function { }; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: struct _Maybe_unary_or_binary_function<_Res, _T1> 29761: : std::unary_function<_T1, _Res> { }; 29761: 29761: 29761: template 29761: struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> 29761: : std::binary_function<_T1, _T2, _Res> { }; 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: template 29761: struct _Mem_fn_traits; 29761: 29761: template 29761: struct _Mem_fn_traits_base 29761: { 29761: using __result_type = _Res; 29761: using __maybe_type 29761: = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; 29761: using __arity = integral_constant; 29761: }; 29761: # 107 "/usr/include/c++/14/bits/refwrap.h" 3 29761: 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; }; 29761: 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; }; 29761: 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; }; 29761: 29761: 29761: 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; }; 29761: 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; }; 29761: 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; }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: struct _Maybe_get_result_type 29761: { }; 29761: 29761: template 29761: struct _Maybe_get_result_type<_Functor, 29761: __void_t> 29761: { typedef typename _Functor::result_type result_type; }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Weak_result_type_impl 29761: : _Maybe_get_result_type<_Functor> 29761: { }; 29761: 29761: 29761: template 29761: struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> 29761: { typedef _Res result_type; }; 29761: 29761: 29761: template 29761: struct _Weak_result_type_impl<_Res(_ArgTypes......) noexcept (_NE)> 29761: { typedef _Res result_type; }; 29761: 29761: 29761: template 29761: struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> 29761: { typedef _Res result_type; }; 29761: 29761: 29761: template 29761: struct 29761: _Weak_result_type_impl<_Res(*)(_ArgTypes......) noexcept (_NE)> 29761: { typedef _Res result_type; }; 29761: 29761: 29761: template::value> 29761: struct _Weak_result_type_memfun 29761: : _Weak_result_type_impl<_Functor> 29761: { }; 29761: 29761: 29761: template 29761: struct _Weak_result_type_memfun<_MemFunPtr, true> 29761: { 29761: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 29761: }; 29761: 29761: 29761: template 29761: struct _Weak_result_type_memfun<_Func _Class::*, false> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Weak_result_type 29761: : _Weak_result_type_memfun::type> 29761: { }; 29761: 29761: 29761: 29761: template> 29761: struct _Refwrap_base_arg1 29761: { }; 29761: 29761: 29761: template 29761: struct _Refwrap_base_arg1<_Tp, 29761: __void_t> 29761: { 29761: typedef typename _Tp::argument_type argument_type; 29761: }; 29761: 29761: 29761: template> 29761: struct _Refwrap_base_arg2 29761: { }; 29761: 29761: 29761: template 29761: struct _Refwrap_base_arg2<_Tp, 29761: __void_t> 29761: { 29761: typedef typename _Tp::first_argument_type first_argument_type; 29761: typedef typename _Tp::second_argument_type second_argument_type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Reference_wrapper_base 29761: : _Weak_result_type<_Tp>, _Refwrap_base_arg1<_Tp>, _Refwrap_base_arg2<_Tp> 29761: { }; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1) noexcept (_NE)> 29761: : unary_function<_T1, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1) const> 29761: : unary_function<_T1, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1) volatile> 29761: : unary_function<_T1, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1) const volatile> 29761: : unary_function<_T1, _Res> 29761: { }; 29761: 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1, _T2) noexcept (_NE)> 29761: : binary_function<_T1, _T2, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1, _T2) const> 29761: : binary_function<_T1, _T2, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1, _T2) volatile> 29761: : binary_function<_T1, _T2, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1, _T2) const volatile> 29761: : binary_function<_T1, _T2, _Res> 29761: { }; 29761: 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(*)(_T1) noexcept (_NE)> 29761: : unary_function<_T1, _Res> 29761: { }; 29761: 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(*)(_T1, _T2) noexcept (_NE)> 29761: : binary_function<_T1, _T2, _Res> 29761: { }; 29761: 29761: template::value> 29761: struct _Reference_wrapper_base_memfun 29761: : _Reference_wrapper_base<_Tp> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base_memfun<_MemFunPtr, true> 29761: : _Mem_fn_traits<_MemFunPtr>::__maybe_type 29761: { 29761: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 29761: }; 29761: #pragma GCC diagnostic pop 29761: # 306 "/usr/include/c++/14/bits/refwrap.h" 3 29761: template 29761: class reference_wrapper 29761: 29761: 29761: 29761: : public _Reference_wrapper_base_memfun::type> 29761: 29761: { 29761: _Tp* _M_data; 29761: 29761: 29761: static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } 29761: 29761: static void _S_fun(_Tp&&) = delete; 29761: 29761: template> 29761: using __not_same 29761: = typename enable_if::value>::type; 29761: 29761: public: 29761: typedef _Tp type; 29761: 29761: 29761: 29761: 29761: template, typename 29761: = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> 29761: 29761: reference_wrapper(_Up&& __uref) 29761: noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) 29761: : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) 29761: { } 29761: 29761: reference_wrapper(const reference_wrapper&) = default; 29761: 29761: reference_wrapper& 29761: operator=(const reference_wrapper&) = default; 29761: 29761: 29761: operator _Tp&() const noexcept 29761: { return this->get(); } 29761: 29761: 29761: _Tp& 29761: get() const noexcept 29761: { return *_M_data; } 29761: 29761: template 29761: 29761: typename __invoke_result<_Tp&, _Args...>::type 29761: operator()(_Args&&... __args) const 29761: noexcept(__is_nothrow_invocable<_Tp&, _Args...>::value) 29761: { 29761: 29761: 29761: 29761: 29761: return std::__invoke(get(), std::forward<_Args>(__args)...); 29761: } 29761: # 412 "/usr/include/c++/14/bits/refwrap.h" 3 29761: }; 29761: 29761: 29761: template 29761: reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline reference_wrapper<_Tp> 29761: ref(_Tp& __t) noexcept 29761: { return reference_wrapper<_Tp>(__t); } 29761: 29761: 29761: template 29761: 29761: inline reference_wrapper 29761: cref(const _Tp& __t) noexcept 29761: { return reference_wrapper(__t); } 29761: 29761: template 29761: void ref(const _Tp&&) = delete; 29761: 29761: template 29761: void cref(const _Tp&&) = delete; 29761: 29761: 29761: template 29761: 29761: inline reference_wrapper<_Tp> 29761: ref(reference_wrapper<_Tp> __t) noexcept 29761: { return __t; } 29761: 29761: 29761: template 29761: 29761: inline reference_wrapper 29761: cref(reference_wrapper<_Tp> __t) noexcept 29761: { return { __t.get() }; } 29761: 29761: 29761: 29761: 29761: } 29761: # 68 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/range_access.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/range_access.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/range_access.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: begin(_Container& __cont) -> decltype(__cont.begin()) 29761: { return __cont.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: begin(const _Container& __cont) -> decltype(__cont.begin()) 29761: { return __cont.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: end(_Container& __cont) -> decltype(__cont.end()) 29761: { return __cont.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: end(const _Container& __cont) -> decltype(__cont.end()) 29761: { return __cont.end(); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr _Tp* 29761: begin(_Tp (&__arr)[_Nm]) noexcept 29761: { return __arr; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr _Tp* 29761: end(_Tp (&__arr)[_Nm]) noexcept 29761: { return __arr + _Nm; } 29761: 29761: 29761: 29761: template class valarray; 29761: 29761: template _Tp* begin(valarray<_Tp>&) noexcept; 29761: template const _Tp* begin(const valarray<_Tp>&) noexcept; 29761: template _Tp* end(valarray<_Tp>&) noexcept; 29761: template const _Tp* end(const valarray<_Tp>&) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: constexpr auto 29761: cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) 29761: -> decltype(std::begin(__cont)) 29761: { return std::begin(__cont); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: constexpr auto 29761: cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) 29761: -> decltype(std::end(__cont)) 29761: { return std::end(__cont); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: rbegin(_Container& __cont) -> decltype(__cont.rbegin()) 29761: { return __cont.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: rbegin(const _Container& __cont) -> decltype(__cont.rbegin()) 29761: { return __cont.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: rend(_Container& __cont) -> decltype(__cont.rend()) 29761: { return __cont.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: rend(const _Container& __cont) -> decltype(__cont.rend()) 29761: { return __cont.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator<_Tp*> 29761: rbegin(_Tp (&__arr)[_Nm]) noexcept 29761: { return reverse_iterator<_Tp*>(__arr + _Nm); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator<_Tp*> 29761: rend(_Tp (&__arr)[_Nm]) noexcept 29761: { return reverse_iterator<_Tp*>(__arr); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator 29761: rbegin(initializer_list<_Tp> __il) noexcept 29761: { return reverse_iterator(__il.end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator 29761: rend(initializer_list<_Tp> __il) noexcept 29761: { return reverse_iterator(__il.begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont)) 29761: { return std::rbegin(__cont); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: crend(const _Container& __cont) -> decltype(std::rend(__cont)) 29761: { return std::rend(__cont); } 29761: # 259 "/usr/include/c++/14/bits/range_access.h" 3 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr auto 29761: size(const _Container& __cont) noexcept(noexcept(__cont.size())) 29761: -> decltype(__cont.size()) 29761: { return __cont.size(); } 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr size_t 29761: size(const _Tp (&)[_Nm]) noexcept 29761: { return _Nm; } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr auto 29761: empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) 29761: -> decltype(__cont.empty()) 29761: { return __cont.empty(); } 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr bool 29761: empty(const _Tp (&)[_Nm]) noexcept 29761: { return false; } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr bool 29761: empty(initializer_list<_Tp> __il) noexcept 29761: { return __il.size() == 0;} 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr auto 29761: data(_Container& __cont) noexcept(noexcept(__cont.data())) 29761: -> decltype(__cont.data()) 29761: { return __cont.data(); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr auto 29761: data(const _Container& __cont) noexcept(noexcept(__cont.data())) 29761: -> decltype(__cont.data()) 29761: { return __cont.data(); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr _Tp* 29761: data(_Tp (&__array)[_Nm]) noexcept 29761: { return __array; } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr const _Tp* 29761: data(initializer_list<_Tp> __il) noexcept 29761: { return __il.begin(); } 29761: # 366 "/usr/include/c++/14/bits/range_access.h" 3 29761: 29761: } 29761: # 69 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/deque.tcc" 1 3 29761: # 61 "/usr/include/c++/14/bits/deque.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_default_initialize() 29761: { 29761: _Map_pointer __cur; 29761: try 29761: { 29761: for (__cur = this->_M_impl._M_start._M_node; 29761: __cur < this->_M_impl._M_finish._M_node; 29761: ++__cur) 29761: std::__uninitialized_default_a(*__cur, *__cur + _S_buffer_size(), 29761: _M_get_Tp_allocator()); 29761: std::__uninitialized_default_a(this->_M_impl._M_finish._M_first, 29761: this->_M_impl._M_finish._M_cur, 29761: _M_get_Tp_allocator()); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 29761: _M_get_Tp_allocator()); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: deque<_Tp, _Alloc>& 29761: deque<_Tp, _Alloc>:: 29761: operator=(const deque& __x) 29761: { 29761: if (std::__addressof(__x) != this) 29761: { 29761: 29761: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: if (!_Alloc_traits::_S_always_equal() 29761: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 29761: { 29761: 29761: 29761: _M_replace_map(__x, __x.get_allocator()); 29761: std::__alloc_on_copy(_M_get_Tp_allocator(), 29761: __x._M_get_Tp_allocator()); 29761: return *this; 29761: } 29761: std::__alloc_on_copy(_M_get_Tp_allocator(), 29761: __x._M_get_Tp_allocator()); 29761: } 29761: 29761: const size_type __len = size(); 29761: if (__len >= __x.size()) 29761: _M_erase_at_end(std::copy(__x.begin(), __x.end(), 29761: this->_M_impl._M_start)); 29761: else 29761: { 29761: const_iterator __mid = __x.begin() + difference_type(__len); 29761: std::copy(__x.begin(), __mid, this->_M_impl._M_start); 29761: _M_range_insert_aux(this->_M_impl._M_finish, __mid, __x.end(), 29761: std::random_access_iterator_tag()); 29761: } 29761: } 29761: return *this; 29761: } 29761: 29761: 29761: template 29761: template 29761: 29761: typename deque<_Tp, _Alloc>::reference 29761: 29761: 29761: 29761: deque<_Tp, _Alloc>:: 29761: emplace_front(_Args&&... __args) 29761: { 29761: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 29761: { 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_start._M_cur - 1, 29761: std::forward<_Args>(__args)...); 29761: --this->_M_impl._M_start._M_cur; 29761: } 29761: else 29761: _M_push_front_aux(std::forward<_Args>(__args)...); 29761: 29761: return front(); 29761: 29761: } 29761: 29761: template 29761: template 29761: 29761: typename deque<_Tp, _Alloc>::reference 29761: 29761: 29761: 29761: deque<_Tp, _Alloc>:: 29761: emplace_back(_Args&&... __args) 29761: { 29761: if (this->_M_impl._M_finish._M_cur 29761: != this->_M_impl._M_finish._M_last - 1) 29761: { 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_finish._M_cur, 29761: std::forward<_Args>(__args)...); 29761: ++this->_M_impl._M_finish._M_cur; 29761: } 29761: else 29761: _M_push_back_aux(std::forward<_Args>(__args)...); 29761: 29761: return back(); 29761: 29761: } 29761: 29761: 29761: 29761: template 29761: template 29761: typename deque<_Tp, _Alloc>::iterator 29761: deque<_Tp, _Alloc>:: 29761: emplace(const_iterator __position, _Args&&... __args) 29761: { 29761: if (__position._M_cur == this->_M_impl._M_start._M_cur) 29761: { 29761: emplace_front(std::forward<_Args>(__args)...); 29761: return this->_M_impl._M_start; 29761: } 29761: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 29761: { 29761: emplace_back(std::forward<_Args>(__args)...); 29761: iterator __tmp = this->_M_impl._M_finish; 29761: --__tmp; 29761: return __tmp; 29761: } 29761: else 29761: return _M_emplace_aux(__position._M_const_cast(), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: template 29761: typename deque<_Tp, _Alloc>::iterator 29761: deque<_Tp, _Alloc>:: 29761: 29761: insert(const_iterator __position, const value_type& __x) 29761: 29761: 29761: 29761: { 29761: if (__position._M_cur == this->_M_impl._M_start._M_cur) 29761: { 29761: push_front(__x); 29761: return this->_M_impl._M_start; 29761: } 29761: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 29761: { 29761: push_back(__x); 29761: iterator __tmp = this->_M_impl._M_finish; 29761: --__tmp; 29761: return __tmp; 29761: } 29761: else 29761: return _M_insert_aux(__position._M_const_cast(), __x); 29761: } 29761: 29761: template 29761: typename deque<_Tp, _Alloc>::iterator 29761: deque<_Tp, _Alloc>:: 29761: _M_erase(iterator __position) 29761: { 29761: iterator __next = __position; 29761: ++__next; 29761: const difference_type __index = __position - begin(); 29761: if (static_cast(__index) < (size() >> 1)) 29761: { 29761: if (__position != begin()) 29761: std::move_backward(begin(), __position, __next); 29761: pop_front(); 29761: } 29761: else 29761: { 29761: if (__next != end()) 29761: std::move(__next, end(), __position); 29761: pop_back(); 29761: } 29761: return begin() + __index; 29761: } 29761: 29761: template 29761: typename deque<_Tp, _Alloc>::iterator 29761: deque<_Tp, _Alloc>:: 29761: _M_erase(iterator __first, iterator __last) 29761: { 29761: if (__first == __last) 29761: return __first; 29761: else if (__first == begin() && __last == end()) 29761: { 29761: clear(); 29761: return end(); 29761: } 29761: else 29761: { 29761: const difference_type __n = __last - __first; 29761: const difference_type __elems_before = __first - begin(); 29761: if (static_cast(__elems_before) <= (size() - __n) / 2) 29761: { 29761: if (__first != begin()) 29761: std::move_backward(begin(), __first, __last); 29761: _M_erase_at_begin(begin() + __n); 29761: } 29761: else 29761: { 29761: if (__last != end()) 29761: std::move(__last, end(), __first); 29761: _M_erase_at_end(end() - __n); 29761: } 29761: return begin() + __elems_before; 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: iterator __cur = begin(); 29761: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 29761: *__cur = *__first; 29761: if (__first == __last) 29761: _M_erase_at_end(__cur); 29761: else 29761: _M_range_insert_aux(end(), __first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x) 29761: { 29761: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 29761: { 29761: iterator __new_start = _M_reserve_elements_at_front(__n); 29761: try 29761: { 29761: std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, 29761: __x, _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(__new_start._M_node, 29761: this->_M_impl._M_start._M_node); 29761: throw; 29761: } 29761: } 29761: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 29761: { 29761: iterator __new_finish = _M_reserve_elements_at_back(__n); 29761: try 29761: { 29761: std::__uninitialized_fill_a(this->_M_impl._M_finish, 29761: __new_finish, __x, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29761: __new_finish._M_node + 1); 29761: throw; 29761: } 29761: } 29761: else 29761: _M_insert_aux(__pos, __n, __x); 29761: } 29761: 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_default_append(size_type __n) 29761: { 29761: if (__n) 29761: { 29761: iterator __new_finish = _M_reserve_elements_at_back(__n); 29761: try 29761: { 29761: std::__uninitialized_default_a(this->_M_impl._M_finish, 29761: __new_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29761: __new_finish._M_node + 1); 29761: throw; 29761: } 29761: } 29761: } 29761: 29761: template 29761: bool 29761: deque<_Tp, _Alloc>:: 29761: _M_shrink_to_fit() 29761: { 29761: const difference_type __front_capacity 29761: = (this->_M_impl._M_start._M_cur - this->_M_impl._M_start._M_first); 29761: if (__front_capacity == 0) 29761: return false; 29761: 29761: const difference_type __back_capacity 29761: = (this->_M_impl._M_finish._M_last - this->_M_impl._M_finish._M_cur); 29761: if (__front_capacity + __back_capacity < _S_buffer_size()) 29761: return false; 29761: 29761: return std::__shrink_to_fit_aux::_S_do_it(*this); 29761: } 29761: 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_fill_initialize(const value_type& __value) 29761: { 29761: _Map_pointer __cur; 29761: try 29761: { 29761: for (__cur = this->_M_impl._M_start._M_node; 29761: __cur < this->_M_impl._M_finish._M_node; 29761: ++__cur) 29761: std::__uninitialized_fill_a(*__cur, *__cur + _S_buffer_size(), 29761: __value, _M_get_Tp_allocator()); 29761: std::__uninitialized_fill_a(this->_M_impl._M_finish._M_first, 29761: this->_M_impl._M_finish._M_cur, 29761: __value, _M_get_Tp_allocator()); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 29761: _M_get_Tp_allocator()); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: this->_M_initialize_map(0); 29761: try 29761: { 29761: for (; __first != __last; ++__first) 29761: 29761: emplace_back(*__first); 29761: 29761: 29761: 29761: } 29761: catch(...) 29761: { 29761: clear(); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __n = std::distance(__first, __last); 29761: this->_M_initialize_map(_S_check_init_len(__n, _M_get_Tp_allocator())); 29761: 29761: _Map_pointer __cur_node; 29761: try 29761: { 29761: for (__cur_node = this->_M_impl._M_start._M_node; 29761: __cur_node < this->_M_impl._M_finish._M_node; 29761: ++__cur_node) 29761: { 29761: if (__n < _S_buffer_size()) 29761: __builtin_unreachable(); 29761: 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, _S_buffer_size()); 29761: std::__uninitialized_copy_a(__first, __mid, *__cur_node, 29761: _M_get_Tp_allocator()); 29761: __first = __mid; 29761: } 29761: std::__uninitialized_copy_a(__first, __last, 29761: this->_M_impl._M_finish._M_first, 29761: _M_get_Tp_allocator()); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(this->_M_impl._M_start, 29761: iterator(*__cur_node, __cur_node), 29761: _M_get_Tp_allocator()); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_push_back_aux(_Args&&... __args) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: if (size() == max_size()) 29761: __throw_length_error( 29761: ("cannot create std::deque larger than max_size()")); 29761: 29761: _M_reserve_map_at_back(); 29761: *(this->_M_impl._M_finish._M_node + 1) = this->_M_allocate_node(); 29761: try 29761: { 29761: 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_finish._M_cur, 29761: std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node 29761: + 1); 29761: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_first; 29761: } 29761: catch(...) 29761: { 29761: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + 1)); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_push_front_aux(_Args&&... __args) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: if (size() == max_size()) 29761: __throw_length_error( 29761: ("cannot create std::deque larger than max_size()")); 29761: 29761: _M_reserve_map_at_front(); 29761: *(this->_M_impl._M_start._M_node - 1) = this->_M_allocate_node(); 29761: try 29761: { 29761: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node 29761: - 1); 29761: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_last - 1; 29761: 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_start._M_cur, 29761: std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: } 29761: catch(...) 29761: { 29761: ++this->_M_impl._M_start; 29761: _M_deallocate_node(*(this->_M_impl._M_start._M_node - 1)); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: void deque<_Tp, _Alloc>:: 29761: _M_pop_back_aux() 29761: { 29761: _M_deallocate_node(this->_M_impl._M_finish._M_first); 29761: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node - 1); 29761: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_last - 1; 29761: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29761: this->_M_impl._M_finish._M_cur); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void deque<_Tp, _Alloc>:: 29761: _M_pop_front_aux() 29761: { 29761: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29761: this->_M_impl._M_start._M_cur); 29761: _M_deallocate_node(this->_M_impl._M_start._M_first); 29761: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node + 1); 29761: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_first; 29761: } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_range_insert_aux(iterator __pos, 29761: _InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { std::copy(__first, __last, std::inserter(*this, __pos)); } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_range_insert_aux(iterator __pos, 29761: _ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __n = std::distance(__first, __last); 29761: if (__builtin_expect(__n == 0, 0)) 29761: return; 29761: 29761: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 29761: { 29761: iterator __new_start = _M_reserve_elements_at_front(__n); 29761: try 29761: { 29761: std::__uninitialized_copy_a(__first, __last, __new_start, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(__new_start._M_node, 29761: this->_M_impl._M_start._M_node); 29761: throw; 29761: } 29761: } 29761: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 29761: { 29761: iterator __new_finish = _M_reserve_elements_at_back(__n); 29761: try 29761: { 29761: std::__uninitialized_copy_a(__first, __last, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29761: __new_finish._M_node + 1); 29761: throw; 29761: } 29761: } 29761: else 29761: _M_insert_aux(__pos, __first, __last, __n); 29761: } 29761: 29761: template 29761: 29761: template 29761: typename deque<_Tp, _Alloc>::iterator 29761: deque<_Tp, _Alloc>:: 29761: _M_emplace_aux(iterator __pos, _Args&&... __args) 29761: { 29761: value_type __x_copy(std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: difference_type __index = __pos - this->_M_impl._M_start; 29761: if (static_cast(__index) < size() / 2) 29761: { 29761: push_front(std::move(front())); 29761: iterator __front1 = this->_M_impl._M_start; 29761: ++__front1; 29761: iterator __front2 = __front1; 29761: ++__front2; 29761: __pos = this->_M_impl._M_start + __index; 29761: iterator __pos1 = __pos; 29761: ++__pos1; 29761: std::move(__front2, __pos1, __front1); 29761: } 29761: else 29761: { 29761: push_back(std::move(back())); 29761: iterator __back1 = this->_M_impl._M_finish; 29761: --__back1; 29761: iterator __back2 = __back1; 29761: --__back2; 29761: __pos = this->_M_impl._M_start + __index; 29761: std::move_backward(__pos, __back2, __back1); 29761: } 29761: *__pos = std::move(__x_copy); 29761: return __pos; 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x) 29761: { 29761: const difference_type __elems_before = __pos - this->_M_impl._M_start; 29761: const size_type __length = this->size(); 29761: value_type __x_copy = __x; 29761: if (__elems_before < difference_type(__length / 2)) 29761: { 29761: iterator __new_start = _M_reserve_elements_at_front(__n); 29761: iterator __old_start = this->_M_impl._M_start; 29761: __pos = this->_M_impl._M_start + __elems_before; 29761: try 29761: { 29761: if (__elems_before >= difference_type(__n)) 29761: { 29761: iterator __start_n = (this->_M_impl._M_start 29761: + difference_type(__n)); 29761: std::__uninitialized_move_a(this->_M_impl._M_start, 29761: __start_n, __new_start, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: std::move(__start_n, __pos, __old_start); 29761: std::fill(__pos - difference_type(__n), __pos, __x_copy); 29761: } 29761: else 29761: { 29761: std::__uninitialized_move_fill(this->_M_impl._M_start, 29761: __pos, __new_start, 29761: this->_M_impl._M_start, 29761: __x_copy, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: std::fill(__old_start, __pos, __x_copy); 29761: } 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(__new_start._M_node, 29761: this->_M_impl._M_start._M_node); 29761: throw; 29761: } 29761: } 29761: else 29761: { 29761: iterator __new_finish = _M_reserve_elements_at_back(__n); 29761: iterator __old_finish = this->_M_impl._M_finish; 29761: const difference_type __elems_after = 29761: difference_type(__length) - __elems_before; 29761: __pos = this->_M_impl._M_finish - __elems_after; 29761: try 29761: { 29761: if (__elems_after > difference_type(__n)) 29761: { 29761: iterator __finish_n = (this->_M_impl._M_finish 29761: - difference_type(__n)); 29761: std::__uninitialized_move_a(__finish_n, 29761: this->_M_impl._M_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: std::move_backward(__pos, __finish_n, __old_finish); 29761: std::fill(__pos, __pos + difference_type(__n), __x_copy); 29761: } 29761: else 29761: { 29761: std::__uninitialized_fill_move(this->_M_impl._M_finish, 29761: __pos + difference_type(__n), 29761: __x_copy, __pos, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: std::fill(__pos, __old_finish, __x_copy); 29761: } 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29761: __new_finish._M_node + 1); 29761: throw; 29761: } 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_insert_aux(iterator __pos, 29761: _ForwardIterator __first, _ForwardIterator __last, 29761: size_type __n) 29761: { 29761: const difference_type __elemsbefore = __pos - this->_M_impl._M_start; 29761: const size_type __length = size(); 29761: if (static_cast(__elemsbefore) < __length / 2) 29761: { 29761: iterator __new_start = _M_reserve_elements_at_front(__n); 29761: iterator __old_start = this->_M_impl._M_start; 29761: __pos = this->_M_impl._M_start + __elemsbefore; 29761: try 29761: { 29761: if (__elemsbefore >= difference_type(__n)) 29761: { 29761: iterator __start_n = (this->_M_impl._M_start 29761: + difference_type(__n)); 29761: std::__uninitialized_move_a(this->_M_impl._M_start, 29761: __start_n, __new_start, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: std::move(__start_n, __pos, __old_start); 29761: std::copy(__first, __last, __pos - difference_type(__n)); 29761: } 29761: else 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, difference_type(__n) - __elemsbefore); 29761: std::__uninitialized_move_copy(this->_M_impl._M_start, 29761: __pos, __first, __mid, 29761: __new_start, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: std::copy(__mid, __last, __old_start); 29761: } 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(__new_start._M_node, 29761: this->_M_impl._M_start._M_node); 29761: throw; 29761: } 29761: } 29761: else 29761: { 29761: iterator __new_finish = _M_reserve_elements_at_back(__n); 29761: iterator __old_finish = this->_M_impl._M_finish; 29761: const difference_type __elemsafter = 29761: difference_type(__length) - __elemsbefore; 29761: __pos = this->_M_impl._M_finish - __elemsafter; 29761: try 29761: { 29761: if (__elemsafter > difference_type(__n)) 29761: { 29761: iterator __finish_n = (this->_M_impl._M_finish 29761: - difference_type(__n)); 29761: std::__uninitialized_move_a(__finish_n, 29761: this->_M_impl._M_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: std::move_backward(__pos, __finish_n, __old_finish); 29761: std::copy(__first, __last, __pos); 29761: } 29761: else 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, __elemsafter); 29761: std::__uninitialized_copy_move(__mid, __last, __pos, 29761: this->_M_impl._M_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: std::copy(__first, __mid, __pos); 29761: } 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29761: __new_finish._M_node + 1); 29761: throw; 29761: } 29761: } 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_destroy_data_aux(iterator __first, iterator __last) 29761: { 29761: for (_Map_pointer __node = __first._M_node + 1; 29761: __node < __last._M_node; ++__node) 29761: std::_Destroy(*__node, *__node + _S_buffer_size(), 29761: _M_get_Tp_allocator()); 29761: 29761: if (__first._M_node != __last._M_node) 29761: { 29761: std::_Destroy(__first._M_cur, __first._M_last, 29761: _M_get_Tp_allocator()); 29761: std::_Destroy(__last._M_first, __last._M_cur, 29761: _M_get_Tp_allocator()); 29761: } 29761: else 29761: std::_Destroy(__first._M_cur, __last._M_cur, 29761: _M_get_Tp_allocator()); 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_new_elements_at_front(size_type __new_elems) 29761: { 29761: if (this->max_size() - this->size() < __new_elems) 29761: __throw_length_error(("deque::_M_new_elements_at_front")); 29761: 29761: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 29761: / _S_buffer_size()); 29761: _M_reserve_map_at_front(__new_nodes); 29761: size_type __i; 29761: try 29761: { 29761: for (__i = 1; __i <= __new_nodes; ++__i) 29761: *(this->_M_impl._M_start._M_node - __i) = this->_M_allocate_node(); 29761: } 29761: catch(...) 29761: { 29761: for (size_type __j = 1; __j < __i; ++__j) 29761: _M_deallocate_node(*(this->_M_impl._M_start._M_node - __j)); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_new_elements_at_back(size_type __new_elems) 29761: { 29761: if (this->max_size() - this->size() < __new_elems) 29761: __throw_length_error(("deque::_M_new_elements_at_back")); 29761: 29761: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 29761: / _S_buffer_size()); 29761: _M_reserve_map_at_back(__new_nodes); 29761: size_type __i; 29761: try 29761: { 29761: for (__i = 1; __i <= __new_nodes; ++__i) 29761: *(this->_M_impl._M_finish._M_node + __i) = this->_M_allocate_node(); 29761: } 29761: catch(...) 29761: { 29761: for (size_type __j = 1; __j < __i; ++__j) 29761: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + __j)); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front) 29761: { 29761: const size_type __old_num_nodes 29761: = this->_M_impl._M_finish._M_node - this->_M_impl._M_start._M_node + 1; 29761: const size_type __new_num_nodes = __old_num_nodes + __nodes_to_add; 29761: 29761: _Map_pointer __new_nstart; 29761: if (this->_M_impl._M_map_size > 2 * __new_num_nodes) 29761: { 29761: __new_nstart = this->_M_impl._M_map + (this->_M_impl._M_map_size 29761: - __new_num_nodes) / 2 29761: + (__add_at_front ? __nodes_to_add : 0); 29761: if (__new_nstart < this->_M_impl._M_start._M_node) 29761: std::copy(this->_M_impl._M_start._M_node, 29761: this->_M_impl._M_finish._M_node + 1, 29761: __new_nstart); 29761: else 29761: std::copy_backward(this->_M_impl._M_start._M_node, 29761: this->_M_impl._M_finish._M_node + 1, 29761: __new_nstart + __old_num_nodes); 29761: } 29761: else 29761: { 29761: size_type __new_map_size = this->_M_impl._M_map_size 29761: + std::max(this->_M_impl._M_map_size, 29761: __nodes_to_add) + 2; 29761: 29761: _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); 29761: __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 29761: + (__add_at_front ? __nodes_to_add : 0); 29761: std::copy(this->_M_impl._M_start._M_node, 29761: this->_M_impl._M_finish._M_node + 1, 29761: __new_nstart); 29761: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29761: 29761: this->_M_impl._M_map = __new_map; 29761: this->_M_impl._M_map_size = __new_map_size; 29761: } 29761: 29761: this->_M_impl._M_start._M_set_node(__new_nstart); 29761: this->_M_impl._M_finish._M_set_node(__new_nstart + __old_num_nodes - 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __first, 29761: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __last, 29761: const _VTp& __value) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29761: if (__first._M_node != __last._M_node) 29761: { 29761: std::__fill_a1(__first._M_cur, __first._M_last, __value); 29761: 29761: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 29761: __node < __last._M_node; ++__node) 29761: std::__fill_a1(*__node, *__node + _Iter::_S_buffer_size(), __value); 29761: 29761: std::__fill_a1(__last._M_first, __last._M_cur, __value); 29761: } 29761: else 29761: std::__fill_a1(__first._M_cur, __last._M_cur, __value); 29761: } 29761: 29761: template 29761: _OI 29761: __copy_move_dit(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29761: _OI __result) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29761: if (__first._M_node != __last._M_node) 29761: { 29761: __result 29761: = std::__copy_move_a1<_IsMove>(__first._M_cur, __first._M_last, 29761: __result); 29761: 29761: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 29761: __node != __last._M_node; ++__node) 29761: __result 29761: = std::__copy_move_a1<_IsMove>(*__node, 29761: *__node + _Iter::_S_buffer_size(), 29761: __result); 29761: 29761: return std::__copy_move_a1<_IsMove>(__last._M_first, __last._M_cur, 29761: __result); 29761: } 29761: 29761: return std::__copy_move_a1<_IsMove>(__first._M_cur, __last._M_cur, 29761: __result); 29761: } 29761: 29761: template 29761: _OI 29761: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29761: _OI __result) 29761: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29761: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 29761: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29761: __copy_move_a1(_II __first, _II __last, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29761: typedef typename _Iter::difference_type difference_type; 29761: 29761: difference_type __len = __last - __first; 29761: while (__len > 0) 29761: { 29761: const difference_type __clen 29761: = std::min(__len, __result._M_last - __result._M_cur); 29761: std::__copy_move_a1<_IsMove>(__first, __first + __clen, 29761: __result._M_cur); 29761: 29761: __first += __clen; 29761: __result += __clen; 29761: __len -= __clen; 29761: } 29761: 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_char<_CharT>::__value, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29761: __copy_move_a2( 29761: istreambuf_iterator<_CharT, char_traits<_CharT> > __first, 29761: istreambuf_iterator<_CharT, char_traits<_CharT> > __last, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result) 29761: { 29761: if (__first == __last) 29761: return __result; 29761: 29761: for (;;) 29761: { 29761: const std::ptrdiff_t __len = __result._M_last - __result._M_cur; 29761: const std::ptrdiff_t __nb 29761: = std::__copy_n_a(__first, __len, __result._M_cur, false) 29761: - __result._M_cur; 29761: __result += __nb; 29761: 29761: if (__nb != __len) 29761: break; 29761: } 29761: 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_char<_CharT>::__value, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29761: __copy_n_a( 29761: istreambuf_iterator<_CharT, char_traits<_CharT> > __it, _Size __size, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result, 29761: bool __strict) 29761: { 29761: if (__size == 0) 29761: return __result; 29761: 29761: do 29761: { 29761: const _Size __len 29761: = std::min<_Size>(__result._M_last - __result._M_cur, __size); 29761: std::__copy_n_a(__it, __len, __result._M_cur, __strict); 29761: __result += __len; 29761: __size -= __len; 29761: } 29761: while (__size != 0); 29761: return __result; 29761: } 29761: 29761: template 29761: _OI 29761: __copy_move_backward_dit( 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29761: _OI __result) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29761: if (__first._M_node != __last._M_node) 29761: { 29761: __result = std::__copy_move_backward_a1<_IsMove>( 29761: __last._M_first, __last._M_cur, __result); 29761: 29761: for (typename _Iter::_Map_pointer __node = __last._M_node - 1; 29761: __node != __first._M_node; --__node) 29761: __result = std::__copy_move_backward_a1<_IsMove>( 29761: *__node, *__node + _Iter::_S_buffer_size(), __result); 29761: 29761: return std::__copy_move_backward_a1<_IsMove>( 29761: __first._M_cur, __first._M_last, __result); 29761: } 29761: 29761: return std::__copy_move_backward_a1<_IsMove>( 29761: __first._M_cur, __last._M_cur, __result); 29761: } 29761: 29761: template 29761: _OI 29761: __copy_move_backward_a1( 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29761: _OI __result) 29761: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29761: __copy_move_backward_a1( 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 29761: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29761: __copy_move_backward_a1(_II __first, _II __last, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29761: typedef typename _Iter::difference_type difference_type; 29761: 29761: difference_type __len = __last - __first; 29761: while (__len > 0) 29761: { 29761: difference_type __rlen = __result._M_cur - __result._M_first; 29761: _Tp* __rend = __result._M_cur; 29761: if (!__rlen) 29761: { 29761: __rlen = _Iter::_S_buffer_size(); 29761: __rend = *(__result._M_node - 1) + __rlen; 29761: } 29761: 29761: const difference_type __clen = std::min(__len, __rlen); 29761: std::__copy_move_backward_a1<_IsMove>(__last - __clen, __last, __rend); 29761: 29761: __last -= __clen; 29761: __result -= __clen; 29761: __len -= __clen; 29761: } 29761: 29761: return __result; 29761: } 29761: 29761: template 29761: bool 29761: __equal_dit( 29761: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __first1, 29761: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __last1, 29761: _II __first2) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29761: if (__first1._M_node != __last1._M_node) 29761: { 29761: if (!std::__equal_aux1(__first1._M_cur, __first1._M_last, __first2)) 29761: return false; 29761: 29761: __first2 += __first1._M_last - __first1._M_cur; 29761: for (typename _Iter::_Map_pointer __node = __first1._M_node + 1; 29761: __node != __last1._M_node; 29761: __first2 += _Iter::_S_buffer_size(), ++__node) 29761: if (!std::__equal_aux1(*__node, *__node + _Iter::_S_buffer_size(), 29761: __first2)) 29761: return false; 29761: 29761: return std::__equal_aux1(__last1._M_first, __last1._M_cur, __first2); 29761: } 29761: 29761: return std::__equal_aux1(__first1._M_cur, __last1._M_cur, __first2); 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, bool>::__type 29761: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first1, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last1, 29761: _II __first2) 29761: { return std::__equal_dit(__first1, __last1, __first2); } 29761: 29761: template 29761: bool 29761: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2) 29761: { return std::__equal_dit(__first1, __last1, __first2); } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, bool>::__type 29761: __equal_aux1(_II __first1, _II __last1, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first2) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29761: typedef typename _Iter::difference_type difference_type; 29761: 29761: difference_type __len = __last1 - __first1; 29761: while (__len > 0) 29761: { 29761: const difference_type __clen 29761: = std::min(__len, __first2._M_last - __first2._M_cur); 29761: if (!std::__equal_aux1(__first1, __first1 + __clen, __first2._M_cur)) 29761: return false; 29761: 29761: __first1 += __clen; 29761: __len -= __clen; 29761: __first2 += __clen; 29761: } 29761: 29761: return true; 29761: } 29761: 29761: template 29761: int 29761: __lex_cmp_dit( 29761: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __first1, 29761: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __last1, 29761: const _Tp2* __first2, const _Tp2* __last2) 29761: { 29761: const bool __simple = 29761: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 29761: && __is_pointer<_Ptr>::__value 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ); 29761: typedef std::__lexicographical_compare<__simple> _Lc; 29761: 29761: while (__first1._M_node != __last1._M_node) 29761: { 29761: const ptrdiff_t __len1 = __first1._M_last - __first1._M_cur; 29761: const ptrdiff_t __len2 = __last2 - __first2; 29761: const ptrdiff_t __len = std::min(__len1, __len2); 29761: 29761: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_last, 29761: __first2, __first2 + __len)) 29761: return __ret; 29761: 29761: __first1 += __len; 29761: __first2 += __len; 29761: } 29761: return _Lc::__3way(__first1._M_cur, __last1._M_cur, 29761: __first2, __last2); 29761: } 29761: 29761: template 29761: inline bool 29761: __lexicographical_compare_aux1( 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29761: _Tp2* __first2, _Tp2* __last2) 29761: { return std::__lex_cmp_dit(__first1, __last1, __first2, __last2) < 0; } 29761: 29761: template 29761: inline bool 29761: __lexicographical_compare_aux1(_Tp1* __first1, _Tp1* __last1, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 29761: { return std::__lex_cmp_dit(__first2, __last2, __first1, __last1) > 0; } 29761: 29761: template 29761: inline bool 29761: __lexicographical_compare_aux1( 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 29761: { 29761: const bool __simple = 29761: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 29761: && __is_pointer<_Ptr1>::__value 29761: && __is_pointer<_Ptr2>::__value 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ); 29761: typedef std::__lexicographical_compare<__simple> _Lc; 29761: 29761: while (__first1 != __last1) 29761: { 29761: const ptrdiff_t __len2 = __first2._M_node == __last2._M_node 29761: ? __last2._M_cur - __first2._M_cur 29761: : __first2._M_last - __first2._M_cur; 29761: if (__len2 == 0) 29761: return false; 29761: const ptrdiff_t __len1 = __first1._M_node == __last1._M_node 29761: ? __last1._M_cur - __first1._M_cur 29761: : __first1._M_last - __first1._M_cur; 29761: const ptrdiff_t __len = std::min(__len1, __len2); 29761: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_cur + __len, 29761: __first2._M_cur, __first2._M_cur + __len)) 29761: return __ret < 0; 29761: 29761: __first1 += __len; 29761: __first2 += __len; 29761: } 29761: 29761: return __last2 != __first2; 29761: } 29761: 29761: 29761: } 29761: # 70 "/usr/include/c++/14/deque" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 75 "/usr/include/c++/14/deque" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/memory_resource.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstddef" 1 3 29761: # 42 "/usr/include/c++/14/cstddef" 3 29761: 29761: # 43 "/usr/include/c++/14/cstddef" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 145 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29761: typedef int ptrdiff_t; 29761: # 214 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29761: typedef unsigned int size_t; 29761: # 425 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29761: typedef struct { 29761: long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); 29761: long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); 29761: # 436 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29761: } max_align_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef decltype(nullptr) nullptr_t; 29761: # 51 "/usr/include/c++/14/cstddef" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 54 "/usr/include/c++/14/cstddef" 2 3 29761: 29761: extern "C++" 29761: { 29761: 29761: namespace std 29761: { 29761: 29761: using ::max_align_t; 29761: } 29761: 29761: 29761: 29761: namespace std 29761: { 29761: 29761: 29761: enum class byte : unsigned char {}; 29761: 29761: template struct __byte_operand { }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: 29761: 29761: 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: # 109 "/usr/include/c++/14/cstddef" 3 29761: template 29761: struct __byte_operand 29761: : __byte_operand<_IntegerType> { }; 29761: template 29761: struct __byte_operand 29761: : __byte_operand<_IntegerType> { }; 29761: template 29761: struct __byte_operand 29761: : __byte_operand<_IntegerType> { }; 29761: 29761: template 29761: using __byte_op_t = typename __byte_operand<_IntegerType>::__type; 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr __byte_op_t<_IntegerType> 29761: operator<<(byte __b, _IntegerType __shift) noexcept 29761: { return (byte)(unsigned char)((unsigned)__b << __shift); } 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr __byte_op_t<_IntegerType> 29761: operator>>(byte __b, _IntegerType __shift) noexcept 29761: { return (byte)(unsigned char)((unsigned)__b >> __shift); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte 29761: operator|(byte __l, byte __r) noexcept 29761: { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte 29761: operator&(byte __l, byte __r) noexcept 29761: { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte 29761: operator^(byte __l, byte __r) noexcept 29761: { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte 29761: operator~(byte __b) noexcept 29761: { return (byte)(unsigned char)~(unsigned)__b; } 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr __byte_op_t<_IntegerType>& 29761: operator<<=(byte& __b, _IntegerType __shift) noexcept 29761: { return __b = __b << __shift; } 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr __byte_op_t<_IntegerType>& 29761: operator>>=(byte& __b, _IntegerType __shift) noexcept 29761: { return __b = __b >> __shift; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte& 29761: operator|=(byte& __l, byte __r) noexcept 29761: { return __l = __l | __r; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte& 29761: operator&=(byte& __l, byte __r) noexcept 29761: { return __l = __l & __r; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte& 29761: operator^=(byte& __l, byte __r) noexcept 29761: { return __l = __l ^ __r; } 29761: 29761: template 29761: [[nodiscard,__gnu__::__always_inline__]] 29761: constexpr _IntegerType 29761: to_integer(__byte_op_t<_IntegerType> __b) noexcept 29761: { return _IntegerType(__b); } 29761: 29761: 29761: } 29761: 29761: } 29761: # 39 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/uses_allocator.h" 1 3 29761: # 40 "/usr/include/c++/14/bits/uses_allocator.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: struct __erased_type { }; 29761: 29761: 29761: 29761: 29761: template 29761: using __is_erased_or_convertible 29761: = __or_, is_same<_Tp, __erased_type>>; 29761: 29761: 29761: struct allocator_arg_t { explicit allocator_arg_t() = default; }; 29761: 29761: inline constexpr allocator_arg_t allocator_arg = 29761: allocator_arg_t(); 29761: 29761: template> 29761: struct __uses_allocator_helper 29761: : false_type { }; 29761: 29761: template 29761: struct __uses_allocator_helper<_Tp, _Alloc, 29761: __void_t> 29761: : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type 29761: { }; 29761: 29761: 29761: template 29761: struct uses_allocator 29761: : __uses_allocator_helper<_Tp, _Alloc>::type 29761: { }; 29761: 29761: struct __uses_alloc_base { }; 29761: 29761: struct __uses_alloc0 : __uses_alloc_base 29761: { 29761: struct _Sink { void operator=(const void*) { } } _M_a; 29761: }; 29761: 29761: template 29761: struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; 29761: 29761: template 29761: struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; 29761: 29761: template 29761: struct __uses_alloc; 29761: 29761: template 29761: struct __uses_alloc 29761: : __conditional_t< 29761: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, 29761: __uses_alloc1<_Alloc>, 29761: __uses_alloc2<_Alloc>> 29761: { 29761: 29761: 29761: static_assert(__or_< 29761: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, 29761: is_constructible<_Tp, _Args..., const _Alloc&>>::value, 29761: "construction with an allocator must be possible" 29761: " if uses_allocator is true"); 29761: }; 29761: 29761: template 29761: struct __uses_alloc 29761: : __uses_alloc0 { }; 29761: 29761: template 29761: using __uses_alloc_t = 29761: __uses_alloc::value, _Tp, _Alloc, _Args...>; 29761: 29761: template 29761: 29761: inline __uses_alloc_t<_Tp, _Alloc, _Args...> 29761: __use_alloc(const _Alloc& __a) 29761: { 29761: __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; 29761: __ret._M_a = std::__addressof(__a); 29761: return __ret; 29761: } 29761: 29761: template 29761: void 29761: __use_alloc(const _Alloc&&) = delete; 29761: 29761: 29761: template 29761: inline constexpr bool uses_allocator_v = 29761: uses_allocator<_Tp, _Alloc>::value; 29761: 29761: 29761: template class _Predicate, 29761: typename _Tp, typename _Alloc, typename... _Args> 29761: struct __is_uses_allocator_predicate 29761: : __conditional_t::value, 29761: __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, 29761: _Predicate<_Tp, _Args..., _Alloc>>, 29761: _Predicate<_Tp, _Args...>> { }; 29761: 29761: template 29761: struct __is_uses_allocator_constructible 29761: : __is_uses_allocator_predicate 29761: { }; 29761: 29761: 29761: template 29761: inline constexpr bool __is_uses_allocator_constructible_v = 29761: __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 29761: 29761: 29761: template 29761: struct __is_nothrow_uses_allocator_constructible 29761: : __is_uses_allocator_predicate 29761: { }; 29761: 29761: 29761: 29761: template 29761: inline constexpr bool 29761: __is_nothrow_uses_allocator_constructible_v = 29761: __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 29761: 29761: 29761: template 29761: void __uses_allocator_construct_impl(__uses_alloc0, _Tp* __ptr, 29761: _Args&&... __args) 29761: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } 29761: 29761: template 29761: void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, 29761: _Args&&... __args) 29761: { 29761: ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: template 29761: void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, 29761: _Args&&... __args) 29761: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } 29761: 29761: template 29761: void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, 29761: _Args&&... __args) 29761: { 29761: std::__uses_allocator_construct_impl( 29761: std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: 29761: } 29761: # 41 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/uses_allocator_args.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 36 "/usr/include/c++/14/bits/uses_allocator_args.h" 2 3 29761: # 42 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/tuple" 1 3 29761: # 32 "/usr/include/c++/14/tuple" 3 29761: 29761: # 33 "/usr/include/c++/14/tuple" 3 29761: # 54 "/usr/include/c++/14/tuple" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 55 "/usr/include/c++/14/tuple" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class tuple; 29761: 29761: template 29761: struct __is_empty_non_tuple : is_empty<_Tp> { }; 29761: 29761: 29761: template 29761: struct __is_empty_non_tuple> : false_type { }; 29761: 29761: 29761: template 29761: using __empty_not_final 29761: = __conditional_t<__is_final(_Tp), false_type, 29761: __is_empty_non_tuple<_Tp>>; 29761: 29761: template::value> 29761: struct _Head_base; 29761: 29761: 29761: template 29761: struct _Head_base<_Idx, _Head, true> 29761: { 29761: constexpr _Head_base() 29761: : _M_head_impl() { } 29761: 29761: constexpr _Head_base(const _Head& __h) 29761: : _M_head_impl(__h) { } 29761: 29761: constexpr _Head_base(const _Head_base&) = default; 29761: constexpr _Head_base(_Head_base&&) = default; 29761: 29761: template 29761: constexpr _Head_base(_UHead&& __h) 29761: : _M_head_impl(std::forward<_UHead>(__h)) { } 29761: 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc0) 29761: : _M_head_impl() { } 29761: 29761: template 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 29761: : _M_head_impl(allocator_arg, *__a._M_a) { } 29761: 29761: template 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 29761: : _M_head_impl(*__a._M_a) { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc0, _UHead&& __uhead) 29761: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 29761: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 29761: { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 29761: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 29761: 29761: static constexpr _Head& 29761: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 29761: 29761: static constexpr const _Head& 29761: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 29761: 29761: [[__no_unique_address__]] _Head _M_head_impl; 29761: }; 29761: # 195 "/usr/include/c++/14/tuple" 3 29761: template 29761: struct _Head_base<_Idx, _Head, false> 29761: { 29761: constexpr _Head_base() 29761: : _M_head_impl() { } 29761: 29761: constexpr _Head_base(const _Head& __h) 29761: : _M_head_impl(__h) { } 29761: 29761: constexpr _Head_base(const _Head_base&) = default; 29761: constexpr _Head_base(_Head_base&&) = default; 29761: 29761: template 29761: constexpr _Head_base(_UHead&& __h) 29761: : _M_head_impl(std::forward<_UHead>(__h)) { } 29761: 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc0) 29761: : _M_head_impl() { } 29761: 29761: template 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 29761: : _M_head_impl(allocator_arg, *__a._M_a) { } 29761: 29761: template 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 29761: : _M_head_impl(*__a._M_a) { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc0, _UHead&& __uhead) 29761: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 29761: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 29761: { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 29761: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 29761: 29761: static constexpr _Head& 29761: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 29761: 29761: static constexpr const _Head& 29761: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 29761: 29761: _Head _M_head_impl; 29761: }; 29761: # 274 "/usr/include/c++/14/tuple" 3 29761: template 29761: struct _Tuple_impl; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Tuple_impl<_Idx, _Head, _Tail...> 29761: : public _Tuple_impl<_Idx + 1, _Tail...>, 29761: private _Head_base<_Idx, _Head> 29761: { 29761: template friend struct _Tuple_impl; 29761: 29761: typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; 29761: typedef _Head_base<_Idx, _Head> _Base; 29761: 29761: static constexpr _Head& 29761: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29761: 29761: static constexpr const _Head& 29761: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29761: 29761: static constexpr _Inherited& 29761: _M_tail(_Tuple_impl& __t) noexcept { return __t; } 29761: 29761: static constexpr const _Inherited& 29761: _M_tail(const _Tuple_impl& __t) noexcept { return __t; } 29761: 29761: constexpr _Tuple_impl() 29761: : _Inherited(), _Base() { } 29761: 29761: explicit constexpr 29761: _Tuple_impl(const _Head& __head, const _Tail&... __tail) 29761: : _Inherited(__tail...), _Base(__head) 29761: { } 29761: 29761: template> 29761: explicit constexpr 29761: _Tuple_impl(_UHead&& __head, _UTail&&... __tail) 29761: : _Inherited(std::forward<_UTail>(__tail)...), 29761: _Base(std::forward<_UHead>(__head)) 29761: { } 29761: 29761: constexpr _Tuple_impl(const _Tuple_impl&) = default; 29761: 29761: 29761: 29761: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 29761: 29761: _Tuple_impl(_Tuple_impl&&) = default; 29761: 29761: template 29761: constexpr 29761: _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) 29761: : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 29761: _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29761: : _Inherited(std::move 29761: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 29761: _Base(std::forward<_UHead> 29761: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 29761: { } 29761: # 370 "/usr/include/c++/14/tuple" 3 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Inherited(__tag, __a), 29761: _Base(__tag, __use_alloc<_Head>(__a)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: const _Head& __head, const _Tail&... __tail) 29761: : _Inherited(__tag, __a, __tail...), 29761: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) 29761: { } 29761: 29761: template> 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: _UHead&& __head, _UTail&&... __tail) 29761: : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), 29761: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29761: std::forward<_UHead>(__head)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: const _Tuple_impl& __in) 29761: : _Inherited(__tag, __a, _M_tail(__in)), 29761: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: _Tuple_impl&& __in) 29761: : _Inherited(__tag, __a, std::move(_M_tail(__in))), 29761: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 29761: std::forward<_Head>(_M_head(__in))) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) 29761: : _Inherited(__tag, __a, 29761: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), 29761: _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 29761: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29761: : _Inherited(__tag, __a, std::move 29761: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 29761: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29761: std::forward<_UHead> 29761: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 29761: { } 29761: # 465 "/usr/include/c++/14/tuple" 3 29761: template 29761: 29761: void 29761: _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) 29761: { 29761: _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); 29761: _M_tail(*this)._M_assign( 29761: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29761: { 29761: _M_head(*this) = std::forward<_UHead> 29761: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); 29761: _M_tail(*this)._M_assign( 29761: std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); 29761: } 29761: # 525 "/usr/include/c++/14/tuple" 3 29761: protected: 29761: 29761: void 29761: _M_swap(_Tuple_impl& __in) 29761: { 29761: using std::swap; 29761: swap(_M_head(*this), _M_head(__in)); 29761: _Inherited::_M_swap(_M_tail(__in)); 29761: } 29761: # 544 "/usr/include/c++/14/tuple" 3 29761: }; 29761: 29761: 29761: template 29761: struct _Tuple_impl<_Idx, _Head> 29761: : private _Head_base<_Idx, _Head> 29761: { 29761: template friend struct _Tuple_impl; 29761: 29761: typedef _Head_base<_Idx, _Head> _Base; 29761: 29761: static constexpr _Head& 29761: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29761: 29761: static constexpr const _Head& 29761: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29761: 29761: constexpr 29761: _Tuple_impl() 29761: : _Base() { } 29761: 29761: explicit constexpr 29761: _Tuple_impl(const _Head& __head) 29761: : _Base(__head) 29761: { } 29761: 29761: template 29761: explicit constexpr 29761: _Tuple_impl(_UHead&& __head) 29761: : _Base(std::forward<_UHead>(__head)) 29761: { } 29761: 29761: constexpr _Tuple_impl(const _Tuple_impl&) = default; 29761: 29761: 29761: 29761: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 29761: 29761: 29761: 29761: 29761: constexpr 29761: _Tuple_impl(_Tuple_impl&& __in) 29761: noexcept(is_nothrow_move_constructible<_Head>::value) 29761: : _Base(static_cast<_Base&&>(__in)) 29761: { } 29761: 29761: 29761: template 29761: constexpr 29761: _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) 29761: : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) 29761: : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 29761: { } 29761: # 626 "/usr/include/c++/14/tuple" 3 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Base(__tag, __use_alloc<_Head>(__a)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: const _Head& __head) 29761: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: _UHead&& __head) 29761: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29761: std::forward<_UHead>(__head)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: const _Tuple_impl& __in) 29761: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: _Tuple_impl&& __in) 29761: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 29761: std::forward<_Head>(_M_head(__in))) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: const _Tuple_impl<_Idx, _UHead>& __in) 29761: : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 29761: _Tuple_impl<_Idx, _UHead>::_M_head(__in)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: _Tuple_impl<_Idx, _UHead>&& __in) 29761: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29761: std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 29761: { } 29761: # 705 "/usr/include/c++/14/tuple" 3 29761: template 29761: 29761: void 29761: _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) 29761: { 29761: _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) 29761: { 29761: _M_head(*this) 29761: = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); 29761: } 29761: # 751 "/usr/include/c++/14/tuple" 3 29761: protected: 29761: 29761: void 29761: _M_swap(_Tuple_impl& __in) 29761: { 29761: using std::swap; 29761: swap(_M_head(*this), _M_head(__in)); 29761: } 29761: # 768 "/usr/include/c++/14/tuple" 3 29761: }; 29761: 29761: 29761: 29761: template 29761: struct _TupleConstraints 29761: { 29761: template 29761: using __constructible = __and_...>; 29761: 29761: template 29761: using __convertible = __and_...>; 29761: 29761: 29761: 29761: 29761: template 29761: static constexpr bool __is_implicitly_constructible() 29761: { 29761: return __and_<__constructible<_UTypes...>, 29761: __convertible<_UTypes...> 29761: >::value; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: static constexpr bool __is_explicitly_constructible() 29761: { 29761: return __and_<__constructible<_UTypes...>, 29761: __not_<__convertible<_UTypes...>> 29761: >::value; 29761: } 29761: 29761: static constexpr bool __is_implicitly_default_constructible() 29761: { 29761: return __and_... 29761: >::value; 29761: } 29761: 29761: static constexpr bool __is_explicitly_default_constructible() 29761: { 29761: return __and_..., 29761: __not_<__and_< 29761: std::__is_implicitly_default_constructible<_Types>...> 29761: >>::value; 29761: } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct _TupleConstraints 29761: { 29761: template 29761: static constexpr bool __is_implicitly_constructible() 29761: { return false; } 29761: 29761: template 29761: static constexpr bool __is_explicitly_constructible() 29761: { return false; } 29761: }; 29761: 29761: 29761: template 29761: class tuple : public _Tuple_impl<0, _Elements...> 29761: { 29761: using _Inherited = _Tuple_impl<0, _Elements...>; 29761: # 1351 "/usr/include/c++/14/tuple" 3 29761: template 29761: using _TCC = _TupleConstraints<_Cond, _Elements...>; 29761: 29761: 29761: template 29761: using _ImplicitDefaultCtor = __enable_if_t< 29761: _TCC<_Dummy>::__is_implicitly_default_constructible(), 29761: bool>; 29761: 29761: 29761: template 29761: using _ExplicitDefaultCtor = __enable_if_t< 29761: _TCC<_Dummy>::__is_explicitly_default_constructible(), 29761: bool>; 29761: 29761: 29761: template 29761: using _ImplicitCtor = __enable_if_t< 29761: _TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), 29761: bool>; 29761: 29761: 29761: template 29761: using _ExplicitCtor = __enable_if_t< 29761: _TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), 29761: bool>; 29761: 29761: 29761: template 29761: static constexpr bool __nothrow_constructible() 29761: { 29761: return 29761: __and_...>::value; 29761: } 29761: 29761: 29761: template 29761: static constexpr bool __valid_args() 29761: { 29761: return sizeof...(_Elements) == 1 29761: && !is_same>::value; 29761: } 29761: 29761: 29761: template 29761: static constexpr bool __valid_args() 29761: { return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } 29761: # 1408 "/usr/include/c++/14/tuple" 3 29761: template> 29761: struct _UseOtherCtor 29761: : false_type 29761: { }; 29761: 29761: 29761: template 29761: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> 29761: : __or_, is_constructible<_Tp, _Tuple>>::type 29761: { }; 29761: 29761: 29761: template 29761: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> 29761: : true_type 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: static constexpr bool __use_other_ctor() 29761: { return _UseOtherCtor<_Tuple>::value; } 29761: # 1454 "/usr/include/c++/14/tuple" 3 29761: public: 29761: template::value> = true> 29761: constexpr 29761: tuple() 29761: noexcept(__and_...>::value) 29761: : _Inherited() { } 29761: 29761: template::value> = false> 29761: explicit constexpr 29761: tuple() 29761: noexcept(__and_...>::value) 29761: : _Inherited() { } 29761: 29761: template= 1), 29761: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 29761: constexpr 29761: tuple(const _Elements&... __elements) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__elements...) { } 29761: 29761: template= 1), 29761: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 29761: explicit constexpr 29761: tuple(const _Elements&... __elements) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__elements...) { } 29761: 29761: template(), 29761: _ImplicitCtor<_Valid, _UElements...> = true> 29761: constexpr 29761: tuple(_UElements&&... __elements) 29761: noexcept(__nothrow_constructible<_UElements...>()) 29761: : _Inherited(std::forward<_UElements>(__elements)...) 29761: { ; } 29761: 29761: template(), 29761: _ExplicitCtor<_Valid, _UElements...> = false> 29761: explicit constexpr 29761: tuple(_UElements&&... __elements) 29761: noexcept(__nothrow_constructible<_UElements...>()) 29761: : _Inherited(std::forward<_UElements>(__elements)...) 29761: { ; } 29761: 29761: constexpr tuple(const tuple&) = default; 29761: 29761: constexpr tuple(tuple&&) = default; 29761: 29761: template&>(), 29761: _ImplicitCtor<_Valid, const _UElements&...> = true> 29761: constexpr 29761: tuple(const tuple<_UElements...>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(static_cast&>(__in)) 29761: { ; } 29761: 29761: template&>(), 29761: _ExplicitCtor<_Valid, const _UElements&...> = false> 29761: explicit constexpr 29761: tuple(const tuple<_UElements...>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(static_cast&>(__in)) 29761: { ; } 29761: 29761: template&&>(), 29761: _ImplicitCtor<_Valid, _UElements...> = true> 29761: constexpr 29761: tuple(tuple<_UElements...>&& __in) 29761: noexcept(__nothrow_constructible<_UElements...>()) 29761: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29761: { ; } 29761: 29761: template&&>(), 29761: _ExplicitCtor<_Valid, _UElements...> = false> 29761: explicit constexpr 29761: tuple(tuple<_UElements...>&& __in) 29761: noexcept(__nothrow_constructible<_UElements...>()) 29761: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29761: { ; } 29761: 29761: 29761: 29761: template::value> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Inherited(__tag, __a) { } 29761: 29761: template::value> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Inherited(__tag, __a) { } 29761: 29761: template= 1), 29761: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const _Elements&... __elements) 29761: : _Inherited(__tag, __a, __elements...) { } 29761: 29761: template= 1), 29761: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const _Elements&... __elements) 29761: : _Inherited(__tag, __a, __elements...) { } 29761: 29761: template(), 29761: _ImplicitCtor<_Valid, _UElements...> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: _UElements&&... __elements) 29761: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 29761: { ; } 29761: 29761: template(), 29761: _ExplicitCtor<_Valid, _UElements...> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: _UElements&&... __elements) 29761: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 29761: { ; } 29761: 29761: template 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 29761: : _Inherited(__tag, __a, static_cast(__in)) { } 29761: 29761: template 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 29761: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 29761: 29761: template&>(), 29761: _ImplicitCtor<_Valid, const _UElements&...> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const tuple<_UElements...>& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast&>(__in)) 29761: { ; } 29761: 29761: template&>(), 29761: _ExplicitCtor<_Valid, const _UElements&...> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const tuple<_UElements...>& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast&>(__in)) 29761: { ; } 29761: 29761: template&&>(), 29761: _ImplicitCtor<_Valid, _UElements...> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: tuple<_UElements...>&& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29761: { ; } 29761: 29761: template&&>(), 29761: _ExplicitCtor<_Valid, _UElements...> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: tuple<_UElements...>&& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29761: { ; } 29761: # 1886 "/usr/include/c++/14/tuple" 3 29761: private: 29761: template 29761: static constexpr 29761: __enable_if_t 29761: __assignable() 29761: { return __and_...>::value; } 29761: 29761: 29761: template 29761: static constexpr bool __nothrow_assignable() 29761: { 29761: return 29761: __and_...>::value; 29761: } 29761: 29761: public: 29761: 29761: 29761: tuple& 29761: operator=(__conditional_t<__assignable(), 29761: const tuple&, 29761: const __nonesuch&> __in) 29761: noexcept(__nothrow_assignable()) 29761: { 29761: this->_M_assign(__in); 29761: return *this; 29761: } 29761: 29761: 29761: tuple& 29761: operator=(__conditional_t<__assignable<_Elements...>(), 29761: tuple&&, 29761: __nonesuch&&> __in) 29761: noexcept(__nothrow_assignable<_Elements...>()) 29761: { 29761: this->_M_assign(std::move(__in)); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable(), tuple&> 29761: operator=(const tuple<_UElements...>& __in) 29761: noexcept(__nothrow_assignable()) 29761: { 29761: this->_M_assign(__in); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable<_UElements...>(), tuple&> 29761: operator=(tuple<_UElements...>&& __in) 29761: noexcept(__nothrow_assignable<_UElements...>()) 29761: { 29761: this->_M_assign(std::move(__in)); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: swap(tuple& __in) 29761: noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) 29761: { _Inherited::_M_swap(__in); } 29761: # 1966 "/usr/include/c++/14/tuple" 3 29761: }; 29761: 29761: 29761: template 29761: tuple(_UTypes...) -> tuple<_UTypes...>; 29761: template 29761: tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; 29761: template 29761: tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; 29761: template 29761: tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; 29761: template 29761: tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; 29761: 29761: 29761: 29761: template<> 29761: class tuple<> 29761: { 29761: public: 29761: 29761: void swap(tuple&) noexcept { } 29761: 29761: 29761: 29761: 29761: 29761: tuple() = default; 29761: 29761: template 29761: 29761: tuple(allocator_arg_t, const _Alloc&) noexcept { } 29761: template 29761: 29761: tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> 29761: { 29761: typedef _Tuple_impl<0, _T1, _T2> _Inherited; 29761: 29761: 29761: template 29761: using _ImplicitDefaultCtor = __enable_if_t< 29761: _TupleConstraints<_Dummy, _U1, _U2>:: 29761: __is_implicitly_default_constructible(), 29761: bool>; 29761: 29761: 29761: template 29761: using _ExplicitDefaultCtor = __enable_if_t< 29761: _TupleConstraints<_Dummy, _U1, _U2>:: 29761: __is_explicitly_default_constructible(), 29761: bool>; 29761: 29761: template 29761: using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; 29761: 29761: 29761: template 29761: using _ImplicitCtor = __enable_if_t< 29761: _TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), 29761: bool>; 29761: 29761: 29761: template 29761: using _ExplicitCtor = __enable_if_t< 29761: _TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), 29761: bool>; 29761: 29761: template 29761: static constexpr bool __assignable() 29761: { 29761: return __and_, 29761: is_assignable<_T2&, _U2>>::value; 29761: } 29761: 29761: template 29761: static constexpr bool __nothrow_assignable() 29761: { 29761: return __and_, 29761: is_nothrow_assignable<_T2&, _U2>>::value; 29761: } 29761: 29761: template 29761: static constexpr bool __nothrow_constructible() 29761: { 29761: return __and_, 29761: is_nothrow_constructible<_T2, _U2>>::value; 29761: } 29761: 29761: static constexpr bool __nothrow_default_constructible() 29761: { 29761: return __and_, 29761: is_nothrow_default_constructible<_T2>>::value; 29761: } 29761: 29761: template 29761: static constexpr bool __is_alloc_arg() 29761: { return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } 29761: # 2085 "/usr/include/c++/14/tuple" 3 29761: public: 29761: template = true> 29761: constexpr 29761: tuple() 29761: noexcept(__nothrow_default_constructible()) 29761: : _Inherited() { } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple() 29761: noexcept(__nothrow_default_constructible()) 29761: : _Inherited() { } 29761: 29761: template = true> 29761: constexpr 29761: tuple(const _T1& __a1, const _T2& __a2) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__a1, __a2) { } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple(const _T1& __a1, const _T2& __a2) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__a1, __a2) { } 29761: 29761: template(), _U1, _U2> = true> 29761: constexpr 29761: tuple(_U1&& __a1, _U2&& __a2) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 29761: { ; } 29761: 29761: template(), _U1, _U2> = false> 29761: explicit constexpr 29761: tuple(_U1&& __a1, _U2&& __a2) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 29761: { ; } 29761: 29761: constexpr tuple(const tuple&) = default; 29761: 29761: constexpr tuple(tuple&&) = default; 29761: 29761: template = true> 29761: constexpr 29761: tuple(const tuple<_U1, _U2>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(static_cast&>(__in)) 29761: { ; } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple(const tuple<_U1, _U2>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(static_cast&>(__in)) 29761: { ; } 29761: 29761: template = true> 29761: constexpr 29761: tuple(tuple<_U1, _U2>&& __in) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29761: { ; } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple(tuple<_U1, _U2>&& __in) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29761: { ; } 29761: 29761: template = true> 29761: constexpr 29761: tuple(const pair<_U1, _U2>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__in.first, __in.second) 29761: { ; } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple(const pair<_U1, _U2>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__in.first, __in.second) 29761: { ; } 29761: 29761: template = true> 29761: constexpr 29761: tuple(pair<_U1, _U2>&& __in) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(std::forward<_U1>(__in.first), 29761: std::forward<_U2>(__in.second)) 29761: { ; } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple(pair<_U1, _U2>&& __in) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(std::forward<_U1>(__in.first), 29761: std::forward<_U2>(__in.second)) 29761: { ; } 29761: 29761: 29761: 29761: template::value, _T1, _T2> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Inherited(__tag, __a) { } 29761: 29761: template::value, _T1, _T2> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Inherited(__tag, __a) { } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const _T1& __a1, const _T2& __a2) 29761: : _Inherited(__tag, __a, __a1, __a2) { } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const _T1& __a1, const _T2& __a2) 29761: : _Inherited(__tag, __a, __a1, __a2) { } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) 29761: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 29761: std::forward<_U2>(__a2)) 29761: { ; } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: _U1&& __a1, _U2&& __a2) 29761: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 29761: std::forward<_U2>(__a2)) 29761: { ; } 29761: 29761: template 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 29761: : _Inherited(__tag, __a, static_cast(__in)) { } 29761: 29761: template 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 29761: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const tuple<_U1, _U2>& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast&>(__in)) 29761: { ; } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const tuple<_U1, _U2>& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast&>(__in)) 29761: { ; } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 29761: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29761: { ; } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 29761: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29761: { ; } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const pair<_U1, _U2>& __in) 29761: : _Inherited(__tag, __a, __in.first, __in.second) 29761: { ; } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const pair<_U1, _U2>& __in) 29761: : _Inherited(__tag, __a, __in.first, __in.second) 29761: { ; } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 29761: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 29761: std::forward<_U2>(__in.second)) 29761: { ; } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 29761: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 29761: std::forward<_U2>(__in.second)) 29761: { ; } 29761: 29761: 29761: 29761: 29761: tuple& 29761: operator=(__conditional_t<__assignable(), 29761: const tuple&, 29761: const __nonesuch&> __in) 29761: noexcept(__nothrow_assignable()) 29761: { 29761: this->_M_assign(__in); 29761: return *this; 29761: } 29761: 29761: 29761: tuple& 29761: operator=(__conditional_t<__assignable<_T1, _T2>(), 29761: tuple&&, 29761: __nonesuch&&> __in) 29761: noexcept(__nothrow_assignable<_T1, _T2>()) 29761: { 29761: this->_M_assign(std::move(__in)); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable(), tuple&> 29761: operator=(const tuple<_U1, _U2>& __in) 29761: noexcept(__nothrow_assignable()) 29761: { 29761: this->_M_assign(__in); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 29761: operator=(tuple<_U1, _U2>&& __in) 29761: noexcept(__nothrow_assignable<_U1, _U2>()) 29761: { 29761: this->_M_assign(std::move(__in)); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable(), tuple&> 29761: operator=(const pair<_U1, _U2>& __in) 29761: noexcept(__nothrow_assignable()) 29761: { 29761: this->_M_head(*this) = __in.first; 29761: this->_M_tail(*this)._M_head(*this) = __in.second; 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 29761: operator=(pair<_U1, _U2>&& __in) 29761: noexcept(__nothrow_assignable<_U1, _U2>()) 29761: { 29761: this->_M_head(*this) = std::forward<_U1>(__in.first); 29761: this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); 29761: return *this; 29761: } 29761: 29761: 29761: void 29761: swap(tuple& __in) 29761: noexcept(__and_<__is_nothrow_swappable<_T1>, 29761: __is_nothrow_swappable<_T2>>::value) 29761: { _Inherited::_M_swap(__in); } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct tuple_size> 29761: : public integral_constant { }; 29761: 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> 29761: = sizeof...(_Types); 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> 29761: = sizeof...(_Types); 29761: 29761: 29761: 29761: template 29761: struct tuple_element<__i, tuple<_Types...>> 29761: { 29761: static_assert(__i < sizeof...(_Types), "tuple index must be in range"); 29761: 29761: using type = typename _Nth_type<__i, _Types...>::type; 29761: }; 29761: 29761: template 29761: constexpr _Head& 29761: __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 29761: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 29761: 29761: template 29761: constexpr const _Head& 29761: __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 29761: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 29761: 29761: 29761: template 29761: __enable_if_t<(__i >= sizeof...(_Types))> 29761: __get_helper(const tuple<_Types...>&) = delete; 29761: 29761: 29761: template 29761: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 29761: get(tuple<_Elements...>& __t) noexcept 29761: { return std::__get_helper<__i>(__t); } 29761: 29761: 29761: template 29761: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 29761: get(const tuple<_Elements...>& __t) noexcept 29761: { return std::__get_helper<__i>(__t); } 29761: 29761: 29761: template 29761: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 29761: get(tuple<_Elements...>&& __t) noexcept 29761: { 29761: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 29761: return std::forward<__element_type>(std::__get_helper<__i>(__t)); 29761: } 29761: 29761: 29761: template 29761: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 29761: get(const tuple<_Elements...>&& __t) noexcept 29761: { 29761: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 29761: return std::forward(std::__get_helper<__i>(__t)); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr __enable_if_t<(__i >= sizeof...(_Elements))> 29761: get(const tuple<_Elements...>&) = delete; 29761: 29761: 29761: 29761: 29761: template 29761: constexpr _Tp& 29761: get(tuple<_Types...>& __t) noexcept 29761: { 29761: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29761: static_assert(__idx < sizeof...(_Types), 29761: "the type T in std::get must occur exactly once in the tuple"); 29761: return std::__get_helper<__idx>(__t); 29761: } 29761: 29761: 29761: template 29761: constexpr _Tp&& 29761: get(tuple<_Types...>&& __t) noexcept 29761: { 29761: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29761: static_assert(__idx < sizeof...(_Types), 29761: "the type T in std::get must occur exactly once in the tuple"); 29761: return std::forward<_Tp>(std::__get_helper<__idx>(__t)); 29761: } 29761: 29761: 29761: template 29761: constexpr const _Tp& 29761: get(const tuple<_Types...>& __t) noexcept 29761: { 29761: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29761: static_assert(__idx < sizeof...(_Types), 29761: "the type T in std::get must occur exactly once in the tuple"); 29761: return std::__get_helper<__idx>(__t); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr const _Tp&& 29761: get(const tuple<_Types...>&& __t) noexcept 29761: { 29761: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29761: static_assert(__idx < sizeof...(_Types), 29761: "the type T in std::get must occur exactly once in the tuple"); 29761: return std::forward(std::__get_helper<__idx>(__t)); 29761: } 29761: 29761: 29761: 29761: template 29761: struct __tuple_compare 29761: { 29761: static constexpr bool 29761: __eq(const _Tp& __t, const _Up& __u) 29761: { 29761: return bool(std::get<__i>(__t) == std::get<__i>(__u)) 29761: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); 29761: } 29761: 29761: static constexpr bool 29761: __less(const _Tp& __t, const _Up& __u) 29761: { 29761: return bool(std::get<__i>(__t) < std::get<__i>(__u)) 29761: || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) 29761: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); 29761: } 29761: }; 29761: 29761: template 29761: struct __tuple_compare<_Tp, _Up, __size, __size> 29761: { 29761: static constexpr bool 29761: __eq(const _Tp&, const _Up&) { return true; } 29761: 29761: static constexpr bool 29761: __less(const _Tp&, const _Up&) { return false; } 29761: }; 29761: 29761: template 29761: constexpr bool 29761: operator==(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { 29761: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 29761: "tuple objects can only be compared if they have equal sizes."); 29761: using __compare = __tuple_compare, 29761: tuple<_UElements...>, 29761: 0, sizeof...(_TElements)>; 29761: return __compare::__eq(__t, __u); 29761: } 29761: # 2596 "/usr/include/c++/14/tuple" 3 29761: template 29761: constexpr bool 29761: operator<(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { 29761: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 29761: "tuple objects can only be compared if they have equal sizes."); 29761: using __compare = __tuple_compare, 29761: tuple<_UElements...>, 29761: 0, sizeof...(_TElements)>; 29761: return __compare::__less(__t, __u); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator!=(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { return !(__t == __u); } 29761: 29761: template 29761: constexpr bool 29761: operator>(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { return __u < __t; } 29761: 29761: template 29761: constexpr bool 29761: operator<=(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { return !(__u < __t); } 29761: 29761: template 29761: constexpr bool 29761: operator>=(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { return !(__t < __u); } 29761: 29761: 29761: 29761: 29761: template 29761: constexpr tuple::__type...> 29761: make_tuple(_Elements&&... __args) 29761: { 29761: typedef tuple::__type...> 29761: __result_type; 29761: return __result_type(std::forward<_Elements>(__args)...); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: constexpr tuple<_Elements&&...> 29761: forward_as_tuple(_Elements&&... __args) noexcept 29761: { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } 29761: 29761: 29761: template 29761: struct __make_tuple_impl; 29761: 29761: template 29761: struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> 29761: : __make_tuple_impl<_Idx + 1, 29761: tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, 29761: _Tuple, _Nm> 29761: { }; 29761: 29761: template 29761: struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> 29761: { 29761: typedef tuple<_Tp...> __type; 29761: }; 29761: 29761: template 29761: struct __do_make_tuple 29761: : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> 29761: { }; 29761: 29761: 29761: template 29761: struct __make_tuple 29761: : public __do_make_tuple<__remove_cvref_t<_Tuple>> 29761: { }; 29761: 29761: 29761: template 29761: struct __combine_tuples; 29761: 29761: template<> 29761: struct __combine_tuples<> 29761: { 29761: typedef tuple<> __type; 29761: }; 29761: 29761: template 29761: struct __combine_tuples> 29761: { 29761: typedef tuple<_Ts...> __type; 29761: }; 29761: 29761: template 29761: struct __combine_tuples, tuple<_T2s...>, _Rem...> 29761: { 29761: typedef typename __combine_tuples, 29761: _Rem...>::__type __type; 29761: }; 29761: 29761: 29761: template 29761: struct __tuple_cat_result 29761: { 29761: typedef typename __combine_tuples 29761: ::__type...>::__type __type; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __make_1st_indices; 29761: 29761: template<> 29761: struct __make_1st_indices<> 29761: { 29761: typedef _Index_tuple<> __type; 29761: }; 29761: 29761: template 29761: struct __make_1st_indices<_Tp, _Tpls...> 29761: { 29761: typedef typename _Build_index_tuple::type>::value>::__type __type; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __tuple_concater; 29761: 29761: template 29761: struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> 29761: { 29761: template 29761: static constexpr _Ret 29761: _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) 29761: { 29761: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 29761: typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; 29761: return __next::_S_do(std::forward<_Tpls>(__tps)..., 29761: std::forward<_Us>(__us)..., 29761: std::get<_Is>(std::forward<_Tp>(__tp))...); 29761: } 29761: }; 29761: 29761: template 29761: struct __tuple_concater<_Ret, _Index_tuple<>> 29761: { 29761: template 29761: static constexpr _Ret 29761: _S_do(_Us&&... __us) 29761: { 29761: return _Ret(std::forward<_Us>(__us)...); 29761: } 29761: }; 29761: 29761: template 29761: struct __is_tuple_like_impl> : true_type 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template...>::value>::type> 29761: 29761: constexpr auto 29761: tuple_cat(_Tpls&&... __tpls) 29761: -> typename __tuple_cat_result<_Tpls...>::__type 29761: { 29761: typedef typename __tuple_cat_result<_Tpls...>::__type __ret; 29761: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 29761: typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; 29761: return __concater::_S_do(std::forward<_Tpls>(__tpls)...); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: constexpr tuple<_Elements&...> 29761: tie(_Elements&... __args) noexcept 29761: { return tuple<_Elements&...>(__args...); } 29761: 29761: 29761: template 29761: 29761: inline 29761: 29761: 29761: typename enable_if<__and_<__is_swappable<_Elements>...>::value 29761: >::type 29761: 29761: 29761: 29761: swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: # 2818 "/usr/include/c++/14/tuple" 3 29761: template 29761: 29761: typename enable_if...>::value>::type 29761: swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct _Swallow_assign 29761: { 29761: template 29761: constexpr const _Swallow_assign& 29761: operator=(const _Tp&) const 29761: { return *this; } 29761: }; 29761: # 2853 "/usr/include/c++/14/tuple" 3 29761: inline constexpr _Swallow_assign ignore{}; 29761: 29761: 29761: template 29761: struct uses_allocator, _Alloc> : true_type { }; 29761: # 2868 "/usr/include/c++/14/tuple" 3 29761: template 29761: template 29761: 29761: inline 29761: pair<_T1, _T2>:: 29761: pair(piecewise_construct_t, 29761: tuple<_Args1...> __first, tuple<_Args2...> __second) 29761: : pair(__first, __second, 29761: typename _Build_index_tuple::__type(), 29761: typename _Build_index_tuple::__type()) 29761: { } 29761: 29761: template 29761: template 29761: inline 29761: pair<_T1, _T2>:: 29761: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, 29761: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) 29761: : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), 29761: second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template class _Trait, typename _Tp, typename _Tuple> 29761: inline constexpr bool __unpack_std_tuple = false; 29761: 29761: template class _Trait, typename _Tp, typename... _Up> 29761: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> 29761: = _Trait<_Tp, _Up...>::value; 29761: 29761: template class _Trait, typename _Tp, typename... _Up> 29761: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> 29761: = _Trait<_Tp, _Up&...>::value; 29761: 29761: template class _Trait, typename _Tp, typename... _Up> 29761: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> 29761: = _Trait<_Tp, const _Up...>::value; 29761: 29761: template class _Trait, typename _Tp, typename... _Up> 29761: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> 29761: = _Trait<_Tp, const _Up&...>::value; 29761: 29761: 29761: 29761: template 29761: constexpr decltype(auto) 29761: __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) 29761: { 29761: return std::__invoke(std::forward<_Fn>(__f), 29761: std::get<_Idx>(std::forward<_Tuple>(__t))...); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: constexpr decltype(auto) 29761: apply(_Fn&& __f, _Tuple&& __t) 29761: noexcept(__unpack_std_tuple) 29761: { 29761: using _Indices 29761: = make_index_sequence>>; 29761: return std::__apply_impl(std::forward<_Fn>(__f), 29761: std::forward<_Tuple>(__t), 29761: _Indices{}); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr _Tp 29761: __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) 29761: { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: constexpr _Tp 29761: make_from_tuple(_Tuple&& __t) 29761: noexcept(__unpack_std_tuple) 29761: { 29761: constexpr size_t __n = tuple_size_v>; 29761: 29761: if constexpr (__n == 1) 29761: { 29761: using _Elt = decltype(std::get<0>(std::declval<_Tuple>())); 29761: static_assert(!__reference_constructs_from_temporary(_Tp, _Elt)); 29761: } 29761: 29761: return __make_from_tuple_impl<_Tp>(std::forward<_Tuple>(__t), 29761: make_index_sequence<__n>{}); 29761: } 29761: # 3030 "/usr/include/c++/14/tuple" 3 29761: 29761: } 29761: # 48 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class memory_resource 29761: { 29761: static constexpr size_t _S_max_align = alignof(max_align_t); 29761: 29761: public: 29761: memory_resource() = default; 29761: memory_resource(const memory_resource&) = default; 29761: virtual ~memory_resource(); 29761: 29761: memory_resource& operator=(const memory_resource&) = default; 29761: 29761: [[nodiscard]] 29761: void* 29761: allocate(size_t __bytes, size_t __alignment = _S_max_align) 29761: __attribute__((__returns_nonnull__,__alloc_size__(2),__alloc_align__(3))) 29761: { return ::operator new(__bytes, do_allocate(__bytes, __alignment)); } 29761: 29761: void 29761: deallocate(void* __p, size_t __bytes, size_t __alignment = _S_max_align) 29761: __attribute__((__nonnull__)) 29761: { return do_deallocate(__p, __bytes, __alignment); } 29761: 29761: [[nodiscard]] 29761: bool 29761: is_equal(const memory_resource& __other) const noexcept 29761: { return do_is_equal(__other); } 29761: 29761: private: 29761: virtual void* 29761: do_allocate(size_t __bytes, size_t __alignment) = 0; 29761: 29761: virtual void 29761: do_deallocate(void* __p, size_t __bytes, size_t __alignment) = 0; 29761: 29761: virtual bool 29761: do_is_equal(const memory_resource& __other) const noexcept = 0; 29761: }; 29761: 29761: [[nodiscard]] 29761: inline bool 29761: operator==(const memory_resource& __a, const memory_resource& __b) noexcept 29761: { return &__a == &__b || __a.is_equal(__b); } 29761: 29761: 29761: [[nodiscard]] 29761: inline bool 29761: operator!=(const memory_resource& __a, const memory_resource& __b) noexcept 29761: { return !(__a == __b); } 29761: # 119 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: template 29761: class polymorphic_allocator 29761: { 29761: 29761: 29761: template 29761: struct __not_pair { using type = void; }; 29761: 29761: template 29761: struct __not_pair> { }; 29761: 29761: public: 29761: using value_type = _Tp; 29761: 29761: polymorphic_allocator() noexcept 29761: { 29761: extern memory_resource* get_default_resource() noexcept 29761: __attribute__((__returns_nonnull__)); 29761: _M_resource = get_default_resource(); 29761: } 29761: 29761: polymorphic_allocator(memory_resource* __r) noexcept 29761: __attribute__((__nonnull__)) 29761: : _M_resource(__r) 29761: { ; } 29761: 29761: polymorphic_allocator(const polymorphic_allocator& __other) = default; 29761: 29761: template 29761: polymorphic_allocator(const polymorphic_allocator<_Up>& __x) noexcept 29761: : _M_resource(__x.resource()) 29761: { } 29761: 29761: polymorphic_allocator& 29761: operator=(const polymorphic_allocator&) = delete; 29761: 29761: [[nodiscard]] 29761: _Tp* 29761: allocate(size_t __n) 29761: __attribute__((__returns_nonnull__)) 29761: { 29761: if ((__gnu_cxx::__int_traits::__max / sizeof(_Tp)) < __n) 29761: std::__throw_bad_array_new_length(); 29761: return static_cast<_Tp*>(_M_resource->allocate(__n * sizeof(_Tp), 29761: alignof(_Tp))); 29761: } 29761: 29761: void 29761: deallocate(_Tp* __p, size_t __n) noexcept 29761: __attribute__((__nonnull__)) 29761: { _M_resource->deallocate(__p, __n * sizeof(_Tp), alignof(_Tp)); } 29761: # 224 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: template 29761: __attribute__((__nonnull__)) 29761: typename __not_pair<_Tp1>::type 29761: construct(_Tp1* __p, _Args&&... __args) 29761: { 29761: 29761: 29761: using __use_tag 29761: = std::__uses_alloc_t<_Tp1, polymorphic_allocator, _Args...>; 29761: if constexpr (is_base_of_v<__uses_alloc0, __use_tag>) 29761: ::new(__p) _Tp1(std::forward<_Args>(__args)...); 29761: else if constexpr (is_base_of_v<__uses_alloc1_, __use_tag>) 29761: ::new(__p) _Tp1(allocator_arg, *this, 29761: std::forward<_Args>(__args)...); 29761: else 29761: ::new(__p) _Tp1(std::forward<_Args>(__args)..., *this); 29761: } 29761: 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: construct(pair<_Tp1, _Tp2>* __p, piecewise_construct_t, 29761: tuple<_Args1...> __x, tuple<_Args2...> __y) 29761: { 29761: auto __x_tag = 29761: __use_alloc<_Tp1, polymorphic_allocator, _Args1...>(*this); 29761: auto __y_tag = 29761: __use_alloc<_Tp2, polymorphic_allocator, _Args2...>(*this); 29761: index_sequence_for<_Args1...> __x_i; 29761: index_sequence_for<_Args2...> __y_i; 29761: 29761: ::new(__p) pair<_Tp1, _Tp2>(piecewise_construct, 29761: _S_construct_p(__x_tag, __x_i, __x), 29761: _S_construct_p(__y_tag, __y_i, __y)); 29761: } 29761: 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: construct(pair<_Tp1, _Tp2>* __p) 29761: { this->construct(__p, piecewise_construct, tuple<>(), tuple<>()); } 29761: 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: construct(pair<_Tp1, _Tp2>* __p, _Up&& __x, _Vp&& __y) 29761: { 29761: this->construct(__p, piecewise_construct, 29761: std::forward_as_tuple(std::forward<_Up>(__x)), 29761: std::forward_as_tuple(std::forward<_Vp>(__y))); 29761: } 29761: 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: construct(pair<_Tp1, _Tp2>* __p, const std::pair<_Up, _Vp>& __pr) 29761: { 29761: this->construct(__p, piecewise_construct, 29761: std::forward_as_tuple(__pr.first), 29761: std::forward_as_tuple(__pr.second)); 29761: } 29761: 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: construct(pair<_Tp1, _Tp2>* __p, pair<_Up, _Vp>&& __pr) 29761: { 29761: this->construct(__p, piecewise_construct, 29761: std::forward_as_tuple(std::forward<_Up>(__pr.first)), 29761: std::forward_as_tuple(std::forward<_Vp>(__pr.second))); 29761: } 29761: # 307 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: destroy(_Up* __p) 29761: { __p->~_Up(); } 29761: 29761: polymorphic_allocator 29761: select_on_container_copy_construction() const noexcept 29761: { return polymorphic_allocator(); } 29761: 29761: memory_resource* 29761: resource() const noexcept 29761: __attribute__((__returns_nonnull__)) 29761: { return _M_resource; } 29761: 29761: 29761: 29761: [[nodiscard]] 29761: friend bool 29761: operator==(const polymorphic_allocator& __a, 29761: const polymorphic_allocator& __b) noexcept 29761: { return *__a.resource() == *__b.resource(); } 29761: 29761: 29761: [[nodiscard]] 29761: friend bool 29761: operator!=(const polymorphic_allocator& __a, 29761: const polymorphic_allocator& __b) noexcept 29761: { return !(__a == __b); } 29761: 29761: 29761: private: 29761: 29761: using __uses_alloc1_ = __uses_alloc1; 29761: using __uses_alloc2_ = __uses_alloc2; 29761: 29761: template 29761: static tuple<_Args&&...> 29761: _S_construct_p(__uses_alloc0, _Ind, tuple<_Args...>& __t) 29761: { return std::move(__t); } 29761: 29761: template 29761: static tuple 29761: _S_construct_p(__uses_alloc1_ __ua, index_sequence<_Ind...>, 29761: tuple<_Args...>& __t) 29761: { 29761: return { 29761: allocator_arg, *__ua._M_a, std::get<_Ind>(std::move(__t))... 29761: }; 29761: } 29761: 29761: template 29761: static tuple<_Args&&..., polymorphic_allocator> 29761: _S_construct_p(__uses_alloc2_ __ua, index_sequence<_Ind...>, 29761: tuple<_Args...>& __t) 29761: { return { std::get<_Ind>(std::move(__t))..., *__ua._M_a }; } 29761: 29761: 29761: memory_resource* _M_resource; 29761: }; 29761: 29761: template 29761: [[nodiscard]] 29761: inline bool 29761: operator==(const polymorphic_allocator<_Tp1>& __a, 29761: const polymorphic_allocator<_Tp2>& __b) noexcept 29761: { return *__a.resource() == *__b.resource(); } 29761: 29761: 29761: template 29761: [[nodiscard]] 29761: inline bool 29761: operator!=(const polymorphic_allocator<_Tp1>& __a, 29761: const polymorphic_allocator<_Tp2>& __b) noexcept 29761: { return !(__a == __b); } 29761: 29761: 29761: } 29761: 29761: template struct allocator_traits; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct allocator_traits> 29761: { 29761: 29761: using allocator_type = pmr::polymorphic_allocator<_Tp>; 29761: 29761: 29761: using value_type = _Tp; 29761: 29761: 29761: using pointer = _Tp*; 29761: 29761: 29761: using const_pointer = const _Tp*; 29761: 29761: 29761: using void_pointer = void*; 29761: 29761: 29761: using const_void_pointer = const void*; 29761: 29761: 29761: using difference_type = std::ptrdiff_t; 29761: 29761: 29761: using size_type = std::size_t; 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_copy_assignment = false_type; 29761: using propagate_on_container_move_assignment = false_type; 29761: using propagate_on_container_swap = false_type; 29761: 29761: static allocator_type 29761: select_on_container_copy_construction(const allocator_type&) noexcept 29761: { return allocator_type(); } 29761: 29761: 29761: 29761: using is_always_equal = false_type; 29761: 29761: template 29761: using rebind_alloc = pmr::polymorphic_allocator<_Up>; 29761: 29761: template 29761: using rebind_traits = allocator_traits>; 29761: # 450 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: [[nodiscard]] static pointer 29761: allocate(allocator_type& __a, size_type __n) 29761: { return __a.allocate(__n); } 29761: # 465 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: [[nodiscard]] static pointer 29761: allocate(allocator_type& __a, size_type __n, const_void_pointer) 29761: { return __a.allocate(__n); } 29761: # 477 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: static void 29761: deallocate(allocator_type& __a, pointer __p, size_type __n) 29761: { __a.deallocate(__p, __n); } 29761: # 492 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: template 29761: static void 29761: construct(allocator_type& __a, _Up* __p, _Args&&... __args) 29761: { __a.construct(__p, std::forward<_Args>(__args)...); } 29761: # 504 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: template 29761: static void 29761: destroy(allocator_type&, _Up* __p) 29761: noexcept(is_nothrow_destructible<_Up>::value) 29761: { __p->~_Up(); } 29761: 29761: 29761: 29761: 29761: 29761: static size_type 29761: max_size(const allocator_type&) noexcept 29761: { return size_t(-1) / sizeof(value_type); } 29761: }; 29761: 29761: 29761: } 29761: # 82 "/usr/include/c++/14/deque" 2 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template 29761: using deque = std::deque<_Tp, polymorphic_allocator<_Tp>>; 29761: } 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/usr/include/c++/14/functional" 1 3 29761: # 46 "/usr/include/c++/14/functional" 3 29761: 29761: # 47 "/usr/include/c++/14/functional" 3 29761: # 55 "/usr/include/c++/14/functional" 3 29761: # 1 "/usr/include/c++/14/bits/functional_hash.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/hash_bytes.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/hash_bytes.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/hash_bytes.h" 3 29761: 29761: 29761: 29761: namespace std 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t 29761: _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); 29761: 29761: 29761: 29761: 29761: 29761: size_t 29761: _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); 29761: 29761: 29761: } 29761: # 37 "/usr/include/c++/14/bits/functional_hash.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 50 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: template 29761: struct __hash_base 29761: { 29761: typedef _Result result_type [[__deprecated__]]; 29761: typedef _Arg argument_type [[__deprecated__]]; 29761: }; 29761: 29761: 29761: template 29761: struct hash; 29761: 29761: template 29761: struct __poison_hash 29761: { 29761: static constexpr bool __enable_hash_call = false; 29761: private: 29761: 29761: __poison_hash(__poison_hash&&); 29761: ~__poison_hash(); 29761: }; 29761: 29761: template 29761: struct __poison_hash<_Tp, __void_t()(declval<_Tp>()))>> 29761: { 29761: static constexpr bool __enable_hash_call = true; 29761: }; 29761: 29761: 29761: template::value> 29761: struct __hash_enum 29761: { 29761: private: 29761: 29761: __hash_enum(__hash_enum&&); 29761: ~__hash_enum(); 29761: }; 29761: 29761: 29761: template 29761: struct __hash_enum<_Tp, true> : public __hash_base 29761: { 29761: size_t 29761: operator()(_Tp __val) const noexcept 29761: { 29761: using __type = typename underlying_type<_Tp>::type; 29761: return hash<__type>{}(static_cast<__type>(__val)); 29761: } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct hash : __hash_enum<_Tp> 29761: { }; 29761: 29761: 29761: template 29761: struct hash<_Tp*> : public __hash_base 29761: { 29761: size_t 29761: operator()(_Tp* __p) const noexcept 29761: { return reinterpret_cast(__p); } 29761: }; 29761: # 125 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; 29761: # 201 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: struct _Hash_impl 29761: { 29761: static size_t 29761: hash(const void* __ptr, size_t __clength, 29761: size_t __seed = static_cast(0xc70f6907UL)) 29761: { return _Hash_bytes(__ptr, __clength, __seed); } 29761: 29761: template 29761: static size_t 29761: hash(const _Tp& __val) 29761: { return hash(&__val, sizeof(__val)); } 29761: 29761: template 29761: static size_t 29761: __hash_combine(const _Tp& __val, size_t __hash) 29761: { return hash(&__val, sizeof(__val), __hash); } 29761: }; 29761: 29761: 29761: struct _Fnv_hash_impl 29761: { 29761: static size_t 29761: hash(const void* __ptr, size_t __clength, 29761: size_t __seed = static_cast(2166136261UL)) 29761: { return _Fnv_hash_bytes(__ptr, __clength, __seed); } 29761: 29761: template 29761: static size_t 29761: hash(const _Tp& __val) 29761: { return hash(&__val, sizeof(__val)); } 29761: 29761: template 29761: static size_t 29761: __hash_combine(const _Tp& __val, size_t __hash) 29761: { return hash(&__val, sizeof(__val), __hash); } 29761: }; 29761: 29761: 29761: template<> 29761: struct hash : public __hash_base 29761: { 29761: size_t 29761: operator()(float __val) const noexcept 29761: { 29761: 29761: return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: struct hash : public __hash_base 29761: { 29761: size_t 29761: operator()(double __val) const noexcept 29761: { 29761: 29761: return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: __attribute__ ((__pure__)) size_t 29761: operator()(long double __val) const noexcept; 29761: }; 29761: 29761: 29761: template<> 29761: struct hash : public __hash_base 29761: { 29761: size_t 29761: operator()(nullptr_t) const noexcept 29761: { return 0; } 29761: }; 29761: # 294 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: template 29761: struct __is_fast_hash : public std::true_type 29761: { }; 29761: 29761: template<> 29761: struct __is_fast_hash> : public std::false_type 29761: { }; 29761: 29761: 29761: } 29761: # 56 "/usr/include/c++/14/functional" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/std_function.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/std_function.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/std_function.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/typeinfo" 1 3 29761: # 32 "/usr/include/c++/14/typeinfo" 3 29761: 29761: # 33 "/usr/include/c++/14/typeinfo" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 41 "/usr/include/c++/14/typeinfo" 2 3 29761: 29761: #pragma GCC visibility push(default) 29761: 29761: extern "C++" { 29761: 29761: namespace __cxxabiv1 29761: { 29761: class __class_type_info; 29761: } 29761: # 83 "/usr/include/c++/14/typeinfo" 3 29761: namespace std 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class type_info 29761: { 29761: public: 29761: 29761: 29761: 29761: 29761: virtual ~type_info(); 29761: 29761: 29761: 29761: const char* name() const noexcept 29761: { return __name[0] == '*' ? __name + 1 : __name; } 29761: 29761: 29761: 29761: bool before(const type_info& __arg) const noexcept; 29761: 29761: 29761: bool operator==(const type_info& __arg) const noexcept; 29761: 29761: 29761: bool operator!=(const type_info& __arg) const noexcept 29761: { return !operator==(__arg); } 29761: 29761: 29761: 29761: size_t hash_code() const noexcept 29761: { 29761: 29761: return _Hash_bytes(name(), __builtin_strlen(name()), 29761: static_cast(0xc70f6907UL)); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: virtual bool __is_pointer_p() const; 29761: 29761: 29761: virtual bool __is_function_p() const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, 29761: unsigned __outer) const; 29761: 29761: 29761: virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, 29761: void **__obj_ptr) const; 29761: 29761: protected: 29761: const char *__name; 29761: 29761: explicit type_info(const char *__n): __name(__n) { } 29761: 29761: private: 29761: 29761: 29761: type_info& operator=(const type_info&) = delete; 29761: type_info(const type_info&) = delete; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool __equal(const type_info&) const noexcept; 29761: 29761: }; 29761: # 219 "/usr/include/c++/14/typeinfo" 3 29761: class bad_cast : public exception 29761: { 29761: public: 29761: bad_cast() noexcept { } 29761: 29761: 29761: 29761: virtual ~bad_cast() noexcept; 29761: 29761: 29761: virtual const char* what() const noexcept; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class bad_typeid : public exception 29761: { 29761: public: 29761: bad_typeid () noexcept { } 29761: 29761: 29761: 29761: virtual ~bad_typeid() noexcept; 29761: 29761: 29761: virtual const char* what() const noexcept; 29761: }; 29761: } 29761: 29761: } 29761: 29761: #pragma GCC visibility pop 29761: # 41 "/usr/include/c++/14/bits/std_function.h" 2 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class bad_function_call : public std::exception 29761: { 29761: public: 29761: virtual ~bad_function_call() noexcept; 29761: 29761: const char* what() const noexcept; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_location_invariant 29761: : is_trivially_copyable<_Tp>::type 29761: { }; 29761: 29761: class _Undefined_class; 29761: 29761: union _Nocopy_types 29761: { 29761: void* _M_object; 29761: const void* _M_const_object; 29761: void (*_M_function_pointer)(); 29761: void (_Undefined_class::*_M_member_pointer)(); 29761: }; 29761: 29761: union [[gnu::may_alias]] _Any_data 29761: { 29761: void* _M_access() noexcept { return &_M_pod_data[0]; } 29761: const void* _M_access() const noexcept { return &_M_pod_data[0]; } 29761: 29761: template 29761: _Tp& 29761: _M_access() noexcept 29761: { return *static_cast<_Tp*>(_M_access()); } 29761: 29761: template 29761: const _Tp& 29761: _M_access() const noexcept 29761: { return *static_cast(_M_access()); } 29761: 29761: _Nocopy_types _M_unused; 29761: char _M_pod_data[sizeof(_Nocopy_types)]; 29761: }; 29761: 29761: enum _Manager_operation 29761: { 29761: __get_type_info, 29761: __get_functor_ptr, 29761: __clone_functor, 29761: __destroy_functor 29761: }; 29761: 29761: template 29761: class function; 29761: 29761: 29761: class _Function_base 29761: { 29761: public: 29761: static const size_t _M_max_size = sizeof(_Nocopy_types); 29761: static const size_t _M_max_align = __alignof__(_Nocopy_types); 29761: 29761: template 29761: class _Base_manager 29761: { 29761: protected: 29761: static const bool __stored_locally = 29761: (__is_location_invariant<_Functor>::value 29761: && sizeof(_Functor) <= _M_max_size 29761: && __alignof__(_Functor) <= _M_max_align 29761: && (_M_max_align % __alignof__(_Functor) == 0)); 29761: 29761: using _Local_storage = integral_constant; 29761: 29761: 29761: static _Functor* 29761: _M_get_pointer(const _Any_data& __source) noexcept 29761: { 29761: if constexpr (__stored_locally) 29761: { 29761: const _Functor& __f = __source._M_access<_Functor>(); 29761: return const_cast<_Functor*>(std::__addressof(__f)); 29761: } 29761: else 29761: return __source._M_access<_Functor*>(); 29761: } 29761: 29761: private: 29761: 29761: 29761: template 29761: static void 29761: _M_create(_Any_data& __dest, _Fn&& __f, true_type) 29761: { 29761: ::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f)); 29761: } 29761: 29761: 29761: template 29761: static void 29761: _M_create(_Any_data& __dest, _Fn&& __f, false_type) 29761: { 29761: __dest._M_access<_Functor*>() 29761: = new _Functor(std::forward<_Fn>(__f)); 29761: } 29761: 29761: 29761: static void 29761: _M_destroy(_Any_data& __victim, true_type) 29761: { 29761: __victim._M_access<_Functor>().~_Functor(); 29761: } 29761: 29761: 29761: static void 29761: _M_destroy(_Any_data& __victim, false_type) 29761: { 29761: delete __victim._M_access<_Functor*>(); 29761: } 29761: 29761: public: 29761: static bool 29761: _M_manager(_Any_data& __dest, const _Any_data& __source, 29761: _Manager_operation __op) 29761: { 29761: switch (__op) 29761: { 29761: case __get_type_info: 29761: 29761: __dest._M_access() = &typeid(_Functor); 29761: 29761: 29761: 29761: break; 29761: 29761: case __get_functor_ptr: 29761: __dest._M_access<_Functor*>() = _M_get_pointer(__source); 29761: break; 29761: 29761: case __clone_functor: 29761: _M_init_functor(__dest, 29761: *const_cast(_M_get_pointer(__source))); 29761: break; 29761: 29761: case __destroy_functor: 29761: _M_destroy(__dest, _Local_storage()); 29761: break; 29761: } 29761: return false; 29761: } 29761: 29761: template 29761: static void 29761: _M_init_functor(_Any_data& __functor, _Fn&& __f) 29761: noexcept(__and_<_Local_storage, 29761: is_nothrow_constructible<_Functor, _Fn>>::value) 29761: { 29761: _M_create(__functor, std::forward<_Fn>(__f), _Local_storage()); 29761: } 29761: 29761: template 29761: static bool 29761: _M_not_empty_function(const function<_Signature>& __f) noexcept 29761: { return static_cast(__f); } 29761: 29761: template 29761: static bool 29761: _M_not_empty_function(_Tp* __fp) noexcept 29761: { return __fp != nullptr; } 29761: 29761: template 29761: static bool 29761: _M_not_empty_function(_Tp _Class::* __mp) noexcept 29761: { return __mp != nullptr; } 29761: 29761: template 29761: static bool 29761: _M_not_empty_function(const _Tp&) noexcept 29761: { return true; } 29761: }; 29761: 29761: _Function_base() = default; 29761: 29761: ~_Function_base() 29761: { 29761: if (_M_manager) 29761: _M_manager(_M_functor, _M_functor, __destroy_functor); 29761: } 29761: 29761: bool _M_empty() const { return !_M_manager; } 29761: 29761: using _Manager_type 29761: = bool (*)(_Any_data&, const _Any_data&, _Manager_operation); 29761: 29761: _Any_data _M_functor{}; 29761: _Manager_type _M_manager{}; 29761: }; 29761: 29761: template 29761: class _Function_handler; 29761: 29761: template 29761: class _Function_handler<_Res(_ArgTypes...), _Functor> 29761: : public _Function_base::_Base_manager<_Functor> 29761: { 29761: using _Base = _Function_base::_Base_manager<_Functor>; 29761: 29761: public: 29761: static bool 29761: _M_manager(_Any_data& __dest, const _Any_data& __source, 29761: _Manager_operation __op) 29761: { 29761: switch (__op) 29761: { 29761: 29761: case __get_type_info: 29761: __dest._M_access() = &typeid(_Functor); 29761: break; 29761: 29761: case __get_functor_ptr: 29761: __dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source); 29761: break; 29761: 29761: default: 29761: _Base::_M_manager(__dest, __source, __op); 29761: } 29761: return false; 29761: } 29761: 29761: static _Res 29761: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 29761: { 29761: return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor), 29761: std::forward<_ArgTypes>(__args)...); 29761: } 29761: 29761: template 29761: static constexpr bool 29761: _S_nothrow_init() noexcept 29761: { 29761: return __and_>::value; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: class _Function_handler 29761: { 29761: public: 29761: static bool 29761: _M_manager(_Any_data&, const _Any_data&, _Manager_operation) 29761: { return false; } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template::value> 29761: struct _Target_handler 29761: : _Function_handler<_Signature, typename remove_cv<_Functor>::type> 29761: { }; 29761: 29761: template 29761: struct _Target_handler<_Signature, _Functor, false> 29761: : _Function_handler 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class function<_Res(_ArgTypes...)> 29761: : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, 29761: private _Function_base 29761: { 29761: 29761: 29761: template, function>::value> 29761: using _Decay_t 29761: = typename __enable_if_t>::type; 29761: 29761: template, 29761: typename _Res2 = __invoke_result<_DFunc&, _ArgTypes...>> 29761: struct _Callable 29761: : __is_invocable_impl<_Res2, _Res>::type 29761: { }; 29761: 29761: template 29761: using _Requires = __enable_if_t<_Cond::value, _Tp>; 29761: 29761: template 29761: using _Handler 29761: = _Function_handler<_Res(_ArgTypes...), __decay_t<_Functor>>; 29761: 29761: public: 29761: typedef _Res result_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: function() noexcept 29761: : _Function_base() { } 29761: 29761: 29761: 29761: 29761: 29761: function(nullptr_t) noexcept 29761: : _Function_base() { } 29761: # 386 "/usr/include/c++/14/bits/std_function.h" 3 29761: function(const function& __x) 29761: : _Function_base() 29761: { 29761: if (static_cast(__x)) 29761: { 29761: __x._M_manager(_M_functor, __x._M_functor, __clone_functor); 29761: _M_invoker = __x._M_invoker; 29761: _M_manager = __x._M_manager; 29761: } 29761: } 29761: # 404 "/usr/include/c++/14/bits/std_function.h" 3 29761: function(function&& __x) noexcept 29761: : _Function_base(), _M_invoker(__x._M_invoker) 29761: { 29761: if (static_cast(__x)) 29761: { 29761: _M_functor = __x._M_functor; 29761: _M_manager = __x._M_manager; 29761: __x._M_manager = nullptr; 29761: __x._M_invoker = nullptr; 29761: } 29761: } 29761: # 433 "/usr/include/c++/14/bits/std_function.h" 3 29761: template>> 29761: function(_Functor&& __f) 29761: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 29761: : _Function_base() 29761: { 29761: static_assert(is_copy_constructible<__decay_t<_Functor>>::value, 29761: "std::function target must be copy-constructible"); 29761: static_assert(is_constructible<__decay_t<_Functor>, _Functor>::value, 29761: "std::function target must be constructible from the " 29761: "constructor argument"); 29761: 29761: using _My_handler = _Handler<_Functor>; 29761: 29761: if (_My_handler::_M_not_empty_function(__f)) 29761: { 29761: _My_handler::_M_init_functor(_M_functor, 29761: std::forward<_Functor>(__f)); 29761: _M_invoker = &_My_handler::_M_invoke; 29761: _M_manager = &_My_handler::_M_manager; 29761: } 29761: } 29761: # 468 "/usr/include/c++/14/bits/std_function.h" 3 29761: function& 29761: operator=(const function& __x) 29761: { 29761: function(__x).swap(*this); 29761: return *this; 29761: } 29761: # 486 "/usr/include/c++/14/bits/std_function.h" 3 29761: function& 29761: operator=(function&& __x) noexcept 29761: { 29761: function(std::move(__x)).swap(*this); 29761: return *this; 29761: } 29761: # 500 "/usr/include/c++/14/bits/std_function.h" 3 29761: function& 29761: operator=(nullptr_t) noexcept 29761: { 29761: if (_M_manager) 29761: { 29761: _M_manager(_M_functor, _M_functor, __destroy_functor); 29761: _M_manager = nullptr; 29761: _M_invoker = nullptr; 29761: } 29761: return *this; 29761: } 29761: # 529 "/usr/include/c++/14/bits/std_function.h" 3 29761: template 29761: _Requires<_Callable<_Functor>, function&> 29761: operator=(_Functor&& __f) 29761: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 29761: { 29761: function(std::forward<_Functor>(__f)).swap(*this); 29761: return *this; 29761: } 29761: 29761: 29761: template 29761: function& 29761: operator=(reference_wrapper<_Functor> __f) noexcept 29761: { 29761: function(__f).swap(*this); 29761: return *this; 29761: } 29761: # 556 "/usr/include/c++/14/bits/std_function.h" 3 29761: void swap(function& __x) noexcept 29761: { 29761: std::swap(_M_functor, __x._M_functor); 29761: std::swap(_M_manager, __x._M_manager); 29761: std::swap(_M_invoker, __x._M_invoker); 29761: } 29761: # 573 "/usr/include/c++/14/bits/std_function.h" 3 29761: explicit operator bool() const noexcept 29761: { return !_M_empty(); } 29761: # 586 "/usr/include/c++/14/bits/std_function.h" 3 29761: _Res 29761: operator()(_ArgTypes... __args) const 29761: { 29761: if (_M_empty()) 29761: __throw_bad_function_call(); 29761: return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); 29761: } 29761: # 605 "/usr/include/c++/14/bits/std_function.h" 3 29761: const type_info& 29761: target_type() const noexcept 29761: { 29761: if (_M_manager) 29761: { 29761: _Any_data __typeinfo_result; 29761: _M_manager(__typeinfo_result, _M_functor, __get_type_info); 29761: if (auto __ti = __typeinfo_result._M_access()) 29761: return *__ti; 29761: } 29761: return typeid(void); 29761: } 29761: # 630 "/usr/include/c++/14/bits/std_function.h" 3 29761: template 29761: _Functor* 29761: target() noexcept 29761: { 29761: const function* __const_this = this; 29761: const _Functor* __func = __const_this->template target<_Functor>(); 29761: 29761: 29761: return *const_cast<_Functor**>(&__func); 29761: } 29761: 29761: template 29761: const _Functor* 29761: target() const noexcept 29761: { 29761: if constexpr (is_object<_Functor>::value) 29761: { 29761: 29761: 29761: using _Handler = _Target_handler<_Res(_ArgTypes...), _Functor>; 29761: 29761: if (_M_manager == &_Handler::_M_manager 29761: 29761: || (_M_manager && typeid(_Functor) == target_type()) 29761: 29761: ) 29761: { 29761: _Any_data __ptr; 29761: _M_manager(__ptr, _M_functor, __get_functor_ptr); 29761: return __ptr._M_access(); 29761: } 29761: } 29761: return nullptr; 29761: } 29761: 29761: 29761: private: 29761: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); 29761: _Invoker_type _M_invoker = nullptr; 29761: }; 29761: 29761: 29761: template 29761: struct __function_guide_helper 29761: { }; 29761: 29761: template 29761: struct __function_guide_helper< 29761: _Res (_Tp::*) (_Args...) noexcept(_Nx) 29761: > 29761: { using type = _Res(_Args...); }; 29761: 29761: template 29761: struct __function_guide_helper< 29761: _Res (_Tp::*) (_Args...) & noexcept(_Nx) 29761: > 29761: { using type = _Res(_Args...); }; 29761: 29761: template 29761: struct __function_guide_helper< 29761: _Res (_Tp::*) (_Args...) const noexcept(_Nx) 29761: > 29761: { using type = _Res(_Args...); }; 29761: 29761: template 29761: struct __function_guide_helper< 29761: _Res (_Tp::*) (_Args...) const & noexcept(_Nx) 29761: > 29761: { using type = _Res(_Args...); }; 29761: # 721 "/usr/include/c++/14/bits/std_function.h" 3 29761: template 29761: using __function_guide_t = typename __function_guide_helper<_Op>::type; 29761: 29761: 29761: template 29761: function(_Res(*)(_ArgTypes...)) -> function<_Res(_ArgTypes...)>; 29761: 29761: template> 29761: function(_Fn) -> function<_Signature>; 29761: # 741 "/usr/include/c++/14/bits/std_function.h" 3 29761: template 29761: inline bool 29761: operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 29761: { return !static_cast(__f); } 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 29761: { return !static_cast(__f); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 29761: { return static_cast(__f); } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 29761: { return static_cast(__f); } 29761: # 780 "/usr/include/c++/14/bits/std_function.h" 3 29761: template 29761: inline void 29761: swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept 29761: { __x.swap(__y); } 29761: 29761: 29761: namespace __detail::__variant 29761: { 29761: template struct _Never_valueless_alt; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : std::true_type 29761: { }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 60 "/usr/include/c++/14/functional" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/unordered_map" 1 3 29761: # 32 "/usr/include/c++/14/unordered_map" 3 29761: 29761: # 33 "/usr/include/c++/14/unordered_map" 3 29761: # 41 "/usr/include/c++/14/unordered_map" 3 29761: # 1 "/usr/include/c++/14/bits/unordered_map.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: # 1 "/usr/include/c++/14/bits/hashtable.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/hashtable.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/hashtable.h" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/hashtable_policy.h" 1 3 29761: # 38 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: # 1 "/usr/include/c++/14/ext/aligned_buffer.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/aligned_buffer.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/aligned_buffer.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __gnu_cxx 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: struct __aligned_membuf 29761: { 29761: 29761: 29761: 29761: 29761: 29761: struct _Tp2 { _Tp _M_t; }; 29761: 29761: alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; 29761: 29761: __aligned_membuf() = default; 29761: 29761: 29761: __aligned_membuf(std::nullptr_t) { } 29761: 29761: void* 29761: _M_addr() noexcept 29761: { return static_cast(&_M_storage); } 29761: 29761: const void* 29761: _M_addr() const noexcept 29761: { return static_cast(&_M_storage); } 29761: 29761: _Tp* 29761: _M_ptr() noexcept 29761: { return static_cast<_Tp*>(_M_addr()); } 29761: 29761: const _Tp* 29761: _M_ptr() const noexcept 29761: { return static_cast(_M_addr()); } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __aligned_buffer 29761: : std::aligned_storage 29761: { 29761: typename 29761: std::aligned_storage::type _M_storage; 29761: 29761: __aligned_buffer() = default; 29761: 29761: 29761: __aligned_buffer(std::nullptr_t) { } 29761: 29761: void* 29761: _M_addr() noexcept 29761: { 29761: return static_cast(&_M_storage); 29761: } 29761: 29761: const void* 29761: _M_addr() const noexcept 29761: { 29761: return static_cast(&_M_storage); 29761: } 29761: 29761: _Tp* 29761: _M_ptr() noexcept 29761: { return static_cast<_Tp*>(_M_addr()); } 29761: 29761: const _Tp* 29761: _M_ptr() const noexcept 29761: { return static_cast(_M_addr()); } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: } 29761: # 39 "/usr/include/c++/14/bits/hashtable_policy.h" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class _Hashtable; 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hashtable_base; 29761: 29761: 29761: 29761: template 29761: inline typename std::iterator_traits<_Iterator>::difference_type 29761: __distance_fw(_Iterator __first, _Iterator __last, 29761: std::input_iterator_tag) 29761: { return __first != __last ? 1 : 0; } 29761: 29761: template 29761: inline typename std::iterator_traits<_Iterator>::difference_type 29761: __distance_fw(_Iterator __first, _Iterator __last, 29761: std::forward_iterator_tag) 29761: { return std::distance(__first, __last); } 29761: 29761: template 29761: inline typename std::iterator_traits<_Iterator>::difference_type 29761: __distance_fw(_Iterator __first, _Iterator __last) 29761: { return __distance_fw(__first, __last, 29761: std::__iterator_category(__first)); } 29761: 29761: struct _Identity 29761: { 29761: template 29761: _Tp&& 29761: operator()(_Tp&& __x) const noexcept 29761: { return std::forward<_Tp>(__x); } 29761: }; 29761: 29761: struct _Select1st 29761: { 29761: template 29761: struct __1st_type; 29761: 29761: template 29761: struct __1st_type> 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct __1st_type> 29761: { using type = const _Tp; }; 29761: 29761: template 29761: struct __1st_type<_Pair&> 29761: { using type = typename __1st_type<_Pair>::type&; }; 29761: 29761: template 29761: typename __1st_type<_Tp>::type&& 29761: operator()(_Tp&& __x) const noexcept 29761: { return std::forward<_Tp>(__x).first; } 29761: }; 29761: 29761: template 29761: struct _ConvertToValueType; 29761: 29761: template 29761: struct _ConvertToValueType<_Identity, _Value> 29761: { 29761: template 29761: constexpr _Kt&& 29761: operator()(_Kt&& __k) const noexcept 29761: { return std::forward<_Kt>(__k); } 29761: }; 29761: 29761: template 29761: struct _ConvertToValueType<_Select1st, _Value> 29761: { 29761: constexpr _Value&& 29761: operator()(_Value&& __x) const noexcept 29761: { return std::move(__x); } 29761: 29761: constexpr const _Value& 29761: operator()(const _Value& __x) const noexcept 29761: { return __x; } 29761: 29761: template 29761: constexpr std::pair<_Kt, _Val>&& 29761: operator()(std::pair<_Kt, _Val>&& __x) const noexcept 29761: { return std::move(__x); } 29761: 29761: template 29761: constexpr const std::pair<_Kt, _Val>& 29761: operator()(const std::pair<_Kt, _Val>& __x) const noexcept 29761: { return __x; } 29761: }; 29761: 29761: template 29761: struct _NodeBuilder; 29761: 29761: template<> 29761: struct _NodeBuilder<_Select1st> 29761: { 29761: template 29761: static auto 29761: _S_build(_Kt&& __k, _Arg&& __arg, const _NodeGenerator& __node_gen) 29761: -> typename _NodeGenerator::__node_ptr 29761: { 29761: return __node_gen(std::forward<_Kt>(__k), 29761: std::forward<_Arg>(__arg).second); 29761: } 29761: }; 29761: 29761: template<> 29761: struct _NodeBuilder<_Identity> 29761: { 29761: template 29761: static auto 29761: _S_build(_Kt&& __k, _Arg&&, const _NodeGenerator& __node_gen) 29761: -> typename _NodeGenerator::__node_ptr 29761: { return __node_gen(std::forward<_Kt>(__k)); } 29761: }; 29761: 29761: template 29761: struct _NodePtrGuard 29761: { 29761: _HashtableAlloc& _M_h; 29761: _NodePtr _M_ptr; 29761: 29761: ~_NodePtrGuard() 29761: { 29761: if (_M_ptr) 29761: _M_h._M_deallocate_node_ptr(_M_ptr); 29761: } 29761: }; 29761: 29761: template 29761: struct _Hashtable_alloc; 29761: 29761: 29761: 29761: template 29761: struct _ReuseOrAllocNode 29761: { 29761: private: 29761: using __node_alloc_type = _NodeAlloc; 29761: using __hashtable_alloc = _Hashtable_alloc<__node_alloc_type>; 29761: using __node_alloc_traits = 29761: typename __hashtable_alloc::__node_alloc_traits; 29761: 29761: public: 29761: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29761: 29761: _ReuseOrAllocNode(__node_ptr __nodes, __hashtable_alloc& __h) 29761: : _M_nodes(__nodes), _M_h(__h) { } 29761: _ReuseOrAllocNode(const _ReuseOrAllocNode&) = delete; 29761: 29761: ~_ReuseOrAllocNode() 29761: { _M_h._M_deallocate_nodes(_M_nodes); } 29761: 29761: template 29761: __node_ptr 29761: operator()(_Args&&... __args) const 29761: { 29761: if (!_M_nodes) 29761: return _M_h._M_allocate_node(std::forward<_Args>(__args)...); 29761: 29761: __node_ptr __node = _M_nodes; 29761: _M_nodes = _M_nodes->_M_next(); 29761: __node->_M_nxt = nullptr; 29761: auto& __a = _M_h._M_node_allocator(); 29761: __node_alloc_traits::destroy(__a, __node->_M_valptr()); 29761: _NodePtrGuard<__hashtable_alloc, __node_ptr> __guard { _M_h, __node }; 29761: __node_alloc_traits::construct(__a, __node->_M_valptr(), 29761: std::forward<_Args>(__args)...); 29761: __guard._M_ptr = nullptr; 29761: return __node; 29761: } 29761: 29761: private: 29761: mutable __node_ptr _M_nodes; 29761: __hashtable_alloc& _M_h; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct _AllocNode 29761: { 29761: private: 29761: using __hashtable_alloc = _Hashtable_alloc<_NodeAlloc>; 29761: 29761: public: 29761: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29761: 29761: _AllocNode(__hashtable_alloc& __h) 29761: : _M_h(__h) { } 29761: 29761: template 29761: __node_ptr 29761: operator()(_Args&&... __args) const 29761: { return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } 29761: 29761: private: 29761: __hashtable_alloc& _M_h; 29761: }; 29761: # 285 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: template 29761: struct _Hashtable_traits 29761: { 29761: using __hash_cached = __bool_constant<_Cache_hash_code>; 29761: using __constant_iterators = __bool_constant<_Constant_iterators>; 29761: using __unique_keys = __bool_constant<_Unique_keys>; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hashtable_hash_traits 29761: { 29761: static constexpr std::size_t 29761: __small_size_threshold() noexcept 29761: { return std::__is_fast_hash<_Hash>::value ? 0 : 20; } 29761: }; 29761: # 315 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: struct _Hash_node_base 29761: { 29761: _Hash_node_base* _M_nxt; 29761: 29761: _Hash_node_base() noexcept : _M_nxt() { } 29761: 29761: _Hash_node_base(_Hash_node_base* __next) noexcept : _M_nxt(__next) { } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hash_node_value_base 29761: { 29761: typedef _Value value_type; 29761: 29761: __gnu_cxx::__aligned_buffer<_Value> _M_storage; 29761: 29761: [[__gnu__::__always_inline__]] 29761: _Value* 29761: _M_valptr() noexcept 29761: { return _M_storage._M_ptr(); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: const _Value* 29761: _M_valptr() const noexcept 29761: { return _M_storage._M_ptr(); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: _Value& 29761: _M_v() noexcept 29761: { return *_M_valptr(); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: const _Value& 29761: _M_v() const noexcept 29761: { return *_M_valptr(); } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hash_node_code_cache 29761: { }; 29761: 29761: 29761: 29761: 29761: template<> 29761: struct _Hash_node_code_cache 29761: { std::size_t _M_hash_code; }; 29761: 29761: template 29761: struct _Hash_node_value 29761: : _Hash_node_value_base<_Value> 29761: , _Hash_node_code_cache<_Cache_hash_code> 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hash_node 29761: : _Hash_node_base 29761: , _Hash_node_value<_Value, _Cache_hash_code> 29761: { 29761: _Hash_node* 29761: _M_next() const noexcept 29761: { return static_cast<_Hash_node*>(this->_M_nxt); } 29761: }; 29761: 29761: 29761: template 29761: struct _Node_iterator_base 29761: { 29761: using __node_type = _Hash_node<_Value, _Cache_hash_code>; 29761: 29761: __node_type* _M_cur; 29761: 29761: _Node_iterator_base() : _M_cur(nullptr) { } 29761: _Node_iterator_base(__node_type* __p) noexcept 29761: : _M_cur(__p) { } 29761: 29761: void 29761: _M_incr() noexcept 29761: { _M_cur = _M_cur->_M_next(); } 29761: 29761: friend bool 29761: operator==(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 29761: noexcept 29761: { return __x._M_cur == __y._M_cur; } 29761: 29761: 29761: friend bool 29761: operator!=(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 29761: noexcept 29761: { return __x._M_cur != __y._M_cur; } 29761: 29761: }; 29761: 29761: 29761: template 29761: struct _Node_iterator 29761: : public _Node_iterator_base<_Value, __cache> 29761: { 29761: private: 29761: using __base_type = _Node_iterator_base<_Value, __cache>; 29761: using __node_type = typename __base_type::__node_type; 29761: 29761: public: 29761: using value_type = _Value; 29761: using difference_type = std::ptrdiff_t; 29761: using iterator_category = std::forward_iterator_tag; 29761: 29761: using pointer = __conditional_t<__constant_iterators, 29761: const value_type*, value_type*>; 29761: 29761: using reference = __conditional_t<__constant_iterators, 29761: const value_type&, value_type&>; 29761: 29761: _Node_iterator() = default; 29761: 29761: explicit 29761: _Node_iterator(__node_type* __p) noexcept 29761: : __base_type(__p) { } 29761: 29761: reference 29761: operator*() const noexcept 29761: { return this->_M_cur->_M_v(); } 29761: 29761: pointer 29761: operator->() const noexcept 29761: { return this->_M_cur->_M_valptr(); } 29761: 29761: _Node_iterator& 29761: operator++() noexcept 29761: { 29761: this->_M_incr(); 29761: return *this; 29761: } 29761: 29761: _Node_iterator 29761: operator++(int) noexcept 29761: { 29761: _Node_iterator __tmp(*this); 29761: this->_M_incr(); 29761: return __tmp; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Node_const_iterator 29761: : public _Node_iterator_base<_Value, __cache> 29761: { 29761: private: 29761: using __base_type = _Node_iterator_base<_Value, __cache>; 29761: using __node_type = typename __base_type::__node_type; 29761: 29761: public: 29761: typedef _Value value_type; 29761: typedef std::ptrdiff_t difference_type; 29761: typedef std::forward_iterator_tag iterator_category; 29761: 29761: typedef const value_type* pointer; 29761: typedef const value_type& reference; 29761: 29761: _Node_const_iterator() = default; 29761: 29761: explicit 29761: _Node_const_iterator(__node_type* __p) noexcept 29761: : __base_type(__p) { } 29761: 29761: _Node_const_iterator(const _Node_iterator<_Value, __constant_iterators, 29761: __cache>& __x) noexcept 29761: : __base_type(__x._M_cur) { } 29761: 29761: reference 29761: operator*() const noexcept 29761: { return this->_M_cur->_M_v(); } 29761: 29761: pointer 29761: operator->() const noexcept 29761: { return this->_M_cur->_M_valptr(); } 29761: 29761: _Node_const_iterator& 29761: operator++() noexcept 29761: { 29761: this->_M_incr(); 29761: return *this; 29761: } 29761: 29761: _Node_const_iterator 29761: operator++(int) noexcept 29761: { 29761: _Node_const_iterator __tmp(*this); 29761: this->_M_incr(); 29761: return __tmp; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct _Mod_range_hashing 29761: { 29761: typedef std::size_t first_argument_type; 29761: typedef std::size_t second_argument_type; 29761: typedef std::size_t result_type; 29761: 29761: result_type 29761: operator()(first_argument_type __num, 29761: second_argument_type __den) const noexcept 29761: { return __num % __den; } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct _Default_ranged_hash { }; 29761: 29761: 29761: 29761: struct _Prime_rehash_policy 29761: { 29761: using __has_load_factor = true_type; 29761: 29761: _Prime_rehash_policy(float __z = 1.0) noexcept 29761: : _M_max_load_factor(__z), _M_next_resize(0) { } 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_max_load_factor; } 29761: 29761: 29761: std::size_t 29761: _M_next_bkt(std::size_t __n) const; 29761: 29761: 29761: std::size_t 29761: _M_bkt_for_elements(std::size_t __n) const 29761: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 29761: 29761: 29761: 29761: 29761: 29761: std::pair 29761: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 29761: std::size_t __n_ins) const; 29761: 29761: typedef std::size_t _State; 29761: 29761: _State 29761: _M_state() const 29761: { return _M_next_resize; } 29761: 29761: void 29761: _M_reset() noexcept 29761: { _M_next_resize = 0; } 29761: 29761: void 29761: _M_reset(_State __state) 29761: { _M_next_resize = __state; } 29761: 29761: static const std::size_t _S_growth_factor = 2; 29761: 29761: float _M_max_load_factor; 29761: mutable std::size_t _M_next_resize; 29761: }; 29761: 29761: 29761: struct _Mask_range_hashing 29761: { 29761: typedef std::size_t first_argument_type; 29761: typedef std::size_t second_argument_type; 29761: typedef std::size_t result_type; 29761: 29761: result_type 29761: operator()(first_argument_type __num, 29761: second_argument_type __den) const noexcept 29761: { return __num & (__den - 1); } 29761: }; 29761: 29761: 29761: inline std::size_t 29761: __clp2(std::size_t __n) noexcept 29761: { 29761: using __gnu_cxx::__int_traits; 29761: 29761: if (__n < 2) 29761: return __n; 29761: const unsigned __lz = sizeof(size_t) > sizeof(long) 29761: ? __builtin_clzll(__n - 1ull) 29761: : __builtin_clzl(__n - 1ul); 29761: 29761: return (size_t(1) << (__int_traits::__digits - __lz - 1)) << 1; 29761: } 29761: 29761: 29761: 29761: struct _Power2_rehash_policy 29761: { 29761: using __has_load_factor = true_type; 29761: 29761: _Power2_rehash_policy(float __z = 1.0) noexcept 29761: : _M_max_load_factor(__z), _M_next_resize(0) { } 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_max_load_factor; } 29761: 29761: 29761: 29761: std::size_t 29761: _M_next_bkt(std::size_t __n) noexcept 29761: { 29761: if (__n == 0) 29761: 29761: 29761: 29761: return 1; 29761: 29761: const auto __max_width = std::min(sizeof(size_t), 8); 29761: const auto __max_bkt = size_t(1) << (__max_width * 8 - 1); 29761: std::size_t __res = __clp2(__n); 29761: 29761: if (__res == 0) 29761: __res = __max_bkt; 29761: else if (__res == 1) 29761: 29761: 29761: 29761: __res = 2; 29761: 29761: if (__res == __max_bkt) 29761: 29761: 29761: 29761: _M_next_resize = size_t(-1); 29761: else 29761: _M_next_resize 29761: = __builtin_floor(__res * (double)_M_max_load_factor); 29761: 29761: return __res; 29761: } 29761: 29761: 29761: std::size_t 29761: _M_bkt_for_elements(std::size_t __n) const noexcept 29761: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 29761: 29761: 29761: 29761: 29761: 29761: std::pair 29761: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 29761: std::size_t __n_ins) noexcept 29761: { 29761: if (__n_elt + __n_ins > _M_next_resize) 29761: { 29761: 29761: 29761: 29761: double __min_bkts 29761: = std::max(__n_elt + __n_ins, _M_next_resize ? 0 : 11) 29761: / (double)_M_max_load_factor; 29761: if (__min_bkts >= __n_bkt) 29761: return { true, 29761: _M_next_bkt(std::max(__builtin_floor(__min_bkts) + 1, 29761: __n_bkt * _S_growth_factor)) }; 29761: 29761: _M_next_resize 29761: = __builtin_floor(__n_bkt * (double)_M_max_load_factor); 29761: return { false, 0 }; 29761: } 29761: else 29761: return { false, 0 }; 29761: } 29761: 29761: typedef std::size_t _State; 29761: 29761: _State 29761: _M_state() const noexcept 29761: { return _M_next_resize; } 29761: 29761: void 29761: _M_reset() noexcept 29761: { _M_next_resize = 0; } 29761: 29761: void 29761: _M_reset(_State __state) noexcept 29761: { _M_next_resize = __state; } 29761: 29761: static const std::size_t _S_growth_factor = 2; 29761: 29761: float _M_max_load_factor; 29761: std::size_t _M_next_resize; 29761: }; 29761: 29761: template 29761: struct _RehashStateGuard 29761: { 29761: _RehashPolicy* _M_guarded_obj; 29761: typename _RehashPolicy::_State _M_prev_state; 29761: 29761: _RehashStateGuard(_RehashPolicy& __policy) 29761: : _M_guarded_obj(std::__addressof(__policy)) 29761: , _M_prev_state(__policy._M_state()) 29761: { } 29761: _RehashStateGuard(const _RehashStateGuard&) = delete; 29761: 29761: ~_RehashStateGuard() 29761: { 29761: if (_M_guarded_obj) 29761: _M_guarded_obj->_M_reset(_M_prev_state); 29761: } 29761: }; 29761: # 761 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: template 29761: struct _Map_base { }; 29761: 29761: 29761: template 29761: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29761: { 29761: using mapped_type = _Val; 29761: }; 29761: 29761: 29761: template 29761: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 29761: { 29761: private: 29761: using __hashtable_base = _Hashtable_base<_Key, pair, 29761: _Select1st, _Equal, _Hash, 29761: _RangeHash, _Unused, 29761: _Traits>; 29761: 29761: using __hashtable = _Hashtable<_Key, pair, _Alloc, 29761: _Select1st, _Equal, _Hash, _RangeHash, 29761: _Unused, _RehashPolicy, _Traits>; 29761: 29761: using __hash_code = typename __hashtable_base::__hash_code; 29761: 29761: public: 29761: using key_type = typename __hashtable_base::key_type; 29761: using mapped_type = _Val; 29761: 29761: mapped_type& 29761: operator[](const key_type& __k); 29761: 29761: mapped_type& 29761: operator[](key_type&& __k); 29761: 29761: 29761: 29761: mapped_type& 29761: at(const key_type& __k) 29761: { 29761: auto __ite = static_cast<__hashtable*>(this)->find(__k); 29761: if (!__ite._M_cur) 29761: __throw_out_of_range(("unordered_map::at")); 29761: return __ite->second; 29761: } 29761: 29761: const mapped_type& 29761: at(const key_type& __k) const 29761: { 29761: auto __ite = static_cast(this)->find(__k); 29761: if (!__ite._M_cur) 29761: __throw_out_of_range(("unordered_map::at")); 29761: return __ite->second; 29761: } 29761: }; 29761: 29761: template 29761: auto 29761: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29761: operator[](const key_type& __k) 29761: -> mapped_type& 29761: { 29761: __hashtable* __h = static_cast<__hashtable*>(this); 29761: __hash_code __code = __h->_M_hash_code(__k); 29761: std::size_t __bkt = __h->_M_bucket_index(__code); 29761: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 29761: return __node->_M_v().second; 29761: 29761: typename __hashtable::_Scoped_node __node { 29761: __h, 29761: std::piecewise_construct, 29761: std::tuple(__k), 29761: std::tuple<>() 29761: }; 29761: auto __pos 29761: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 29761: __node._M_node = nullptr; 29761: return __pos->second; 29761: } 29761: 29761: template 29761: auto 29761: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29761: operator[](key_type&& __k) 29761: -> mapped_type& 29761: { 29761: __hashtable* __h = static_cast<__hashtable*>(this); 29761: __hash_code __code = __h->_M_hash_code(__k); 29761: std::size_t __bkt = __h->_M_bucket_index(__code); 29761: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 29761: return __node->_M_v().second; 29761: 29761: typename __hashtable::_Scoped_node __node { 29761: __h, 29761: std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::tuple<>() 29761: }; 29761: auto __pos 29761: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 29761: __node._M_node = nullptr; 29761: return __pos->second; 29761: } 29761: 29761: 29761: template 29761: struct _Map_base, 29761: _Alloc, _Select1st, _Equal, _Hash, 29761: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 29761: : _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, _Hash, 29761: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Insert_base 29761: { 29761: protected: 29761: using __hashtable_base = _Hashtable_base<_Key, _Value, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, 29761: _Unused, _Traits>; 29761: 29761: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, 29761: _Unused, _RehashPolicy, _Traits>; 29761: 29761: using __hash_cached = typename _Traits::__hash_cached; 29761: using __constant_iterators = typename _Traits::__constant_iterators; 29761: 29761: using __hashtable_alloc = _Hashtable_alloc< 29761: __alloc_rebind<_Alloc, _Hash_node<_Value, 29761: __hash_cached::value>>>; 29761: 29761: using value_type = typename __hashtable_base::value_type; 29761: using size_type = typename __hashtable_base::size_type; 29761: 29761: using __unique_keys = typename _Traits::__unique_keys; 29761: using __node_alloc_type = typename __hashtable_alloc::__node_alloc_type; 29761: using __node_gen_type = _AllocNode<__node_alloc_type>; 29761: 29761: __hashtable& 29761: _M_conjure_hashtable() 29761: { return *(static_cast<__hashtable*>(this)); } 29761: 29761: template 29761: void 29761: _M_insert_range(_InputIterator __first, _InputIterator __last, 29761: const _NodeGetter&, true_type __uks); 29761: 29761: template 29761: void 29761: _M_insert_range(_InputIterator __first, _InputIterator __last, 29761: const _NodeGetter&, false_type __uks); 29761: 29761: public: 29761: using iterator = _Node_iterator<_Value, __constant_iterators::value, 29761: __hash_cached::value>; 29761: 29761: using const_iterator = _Node_const_iterator<_Value, 29761: __constant_iterators::value, 29761: __hash_cached::value>; 29761: 29761: using __ireturn_type = __conditional_t<__unique_keys::value, 29761: std::pair, 29761: iterator>; 29761: 29761: __ireturn_type 29761: insert(const value_type& __v) 29761: { 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: __node_gen_type __node_gen(__h); 29761: return __h._M_insert(__v, __node_gen, __unique_keys{}); 29761: } 29761: 29761: iterator 29761: insert(const_iterator __hint, const value_type& __v) 29761: { 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: __node_gen_type __node_gen(__h); 29761: return __h._M_insert(__hint, __v, __node_gen, __unique_keys{}); 29761: } 29761: 29761: 29761: template 29761: std::pair 29761: try_emplace(const_iterator, _KType&& __k, _Args&&... __args) 29761: { 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: auto __code = __h._M_hash_code(__k); 29761: std::size_t __bkt = __h._M_bucket_index(__code); 29761: if (auto __node = __h._M_find_node(__bkt, __k, __code)) 29761: return { iterator(__node), false }; 29761: 29761: typename __hashtable::_Scoped_node __node { 29761: &__h, 29761: std::piecewise_construct, 29761: std::forward_as_tuple(std::forward<_KType>(__k)), 29761: std::forward_as_tuple(std::forward<_Args>(__args)...) 29761: }; 29761: auto __it 29761: = __h._M_insert_unique_node(__bkt, __code, __node._M_node); 29761: __node._M_node = nullptr; 29761: return { __it, true }; 29761: } 29761: 29761: 29761: void 29761: insert(initializer_list __l) 29761: { this->insert(__l.begin(), __l.end()); } 29761: 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: __node_gen_type __node_gen(__h); 29761: return _M_insert_range(__first, __last, __node_gen, __unique_keys{}); 29761: } 29761: }; 29761: 29761: template 29761: template 29761: void 29761: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>:: 29761: _M_insert_range(_InputIterator __first, _InputIterator __last, 29761: const _NodeGetter& __node_gen, true_type __uks) 29761: { 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: for (; __first != __last; ++__first) 29761: __h._M_insert(*__first, __node_gen, __uks); 29761: } 29761: 29761: template 29761: template 29761: void 29761: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>:: 29761: _M_insert_range(_InputIterator __first, _InputIterator __last, 29761: const _NodeGetter& __node_gen, false_type __uks) 29761: { 29761: using __rehash_guard_t = typename __hashtable::__rehash_guard_t; 29761: using __pair_type = std::pair; 29761: 29761: size_type __n_elt = __detail::__distance_fw(__first, __last); 29761: if (__n_elt == 0) 29761: return; 29761: 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: __rehash_guard_t __rehash_guard(__h._M_rehash_policy); 29761: __pair_type __do_rehash 29761: = __h._M_rehash_policy._M_need_rehash(__h._M_bucket_count, 29761: __h._M_element_count, 29761: __n_elt); 29761: 29761: if (__do_rehash.first) 29761: __h._M_rehash(__do_rehash.second, __uks); 29761: 29761: __rehash_guard._M_guarded_obj = nullptr; 29761: for (; __first != __last; ++__first) 29761: __h._M_insert(*__first, __node_gen, __uks); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Insert; 29761: 29761: 29761: template 29761: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits, true> 29761: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 29761: { 29761: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: using value_type = typename __base_type::value_type; 29761: using iterator = typename __base_type::iterator; 29761: using const_iterator = typename __base_type::const_iterator; 29761: using __ireturn_type = typename __base_type::__ireturn_type; 29761: 29761: using __unique_keys = typename __base_type::__unique_keys; 29761: using __hashtable = typename __base_type::__hashtable; 29761: using __node_gen_type = typename __base_type::__node_gen_type; 29761: 29761: using __base_type::insert; 29761: 29761: __ireturn_type 29761: insert(value_type&& __v) 29761: { 29761: __hashtable& __h = this->_M_conjure_hashtable(); 29761: __node_gen_type __node_gen(__h); 29761: return __h._M_insert(std::move(__v), __node_gen, __unique_keys{}); 29761: } 29761: 29761: iterator 29761: insert(const_iterator __hint, value_type&& __v) 29761: { 29761: __hashtable& __h = this->_M_conjure_hashtable(); 29761: __node_gen_type __node_gen(__h); 29761: return __h._M_insert(__hint, std::move(__v), __node_gen, 29761: __unique_keys{}); 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29761: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 29761: { 29761: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: using value_type = typename __base_type::value_type; 29761: using iterator = typename __base_type::iterator; 29761: using const_iterator = typename __base_type::const_iterator; 29761: 29761: using __unique_keys = typename __base_type::__unique_keys; 29761: using __hashtable = typename __base_type::__hashtable; 29761: using __ireturn_type = typename __base_type::__ireturn_type; 29761: 29761: using __base_type::insert; 29761: 29761: template 29761: using __is_cons = std::is_constructible; 29761: 29761: template 29761: using _IFcons = std::enable_if<__is_cons<_Pair>::value>; 29761: 29761: template 29761: using _IFconsp = typename _IFcons<_Pair>::type; 29761: 29761: template> 29761: __ireturn_type 29761: insert(_Pair&& __v) 29761: { 29761: __hashtable& __h = this->_M_conjure_hashtable(); 29761: return __h._M_emplace(__unique_keys{}, std::forward<_Pair>(__v)); 29761: } 29761: 29761: template> 29761: iterator 29761: insert(const_iterator __hint, _Pair&& __v) 29761: { 29761: __hashtable& __h = this->_M_conjure_hashtable(); 29761: return __h._M_emplace(__hint, __unique_keys{}, 29761: std::forward<_Pair>(__v)); 29761: } 29761: }; 29761: 29761: template 29761: using __has_load_factor = typename _Policy::__has_load_factor; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: struct _Rehash_base; 29761: 29761: 29761: template 29761: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 29761: false_type > 29761: { 29761: }; 29761: 29761: 29761: template 29761: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 29761: true_type > 29761: { 29761: private: 29761: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: public: 29761: float 29761: max_load_factor() const noexcept 29761: { 29761: const __hashtable* __this = static_cast(this); 29761: return __this->__rehash_policy().max_load_factor(); 29761: } 29761: 29761: void 29761: max_load_factor(float __z) 29761: { 29761: __hashtable* __this = static_cast<__hashtable*>(this); 29761: __this->__rehash_policy(_RehashPolicy(__z)); 29761: } 29761: 29761: void 29761: reserve(std::size_t __n) 29761: { 29761: __hashtable* __this = static_cast<__hashtable*>(this); 29761: __this->rehash(__this->__rehash_policy()._M_bkt_for_elements(__n)); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hashtable_ebo_helper; 29761: 29761: 29761: template 29761: struct _Hashtable_ebo_helper<_Nm, _Tp, true> 29761: : private _Tp 29761: { 29761: _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } 29761: 29761: template 29761: _Hashtable_ebo_helper(_OtherTp&& __tp) 29761: : _Tp(std::forward<_OtherTp>(__tp)) 29761: { } 29761: 29761: const _Tp& _M_cget() const { return static_cast(*this); } 29761: _Tp& _M_get() { return static_cast<_Tp&>(*this); } 29761: }; 29761: 29761: 29761: template 29761: struct _Hashtable_ebo_helper<_Nm, _Tp, false> 29761: { 29761: _Hashtable_ebo_helper() = default; 29761: 29761: template 29761: _Hashtable_ebo_helper(_OtherTp&& __tp) 29761: : _M_tp(std::forward<_OtherTp>(__tp)) 29761: { } 29761: 29761: const _Tp& _M_cget() const { return _M_tp; } 29761: _Tp& _M_get() { return _M_tp; } 29761: 29761: private: 29761: _Tp _M_tp{}; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Local_iterator_base; 29761: # 1303 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: template 29761: struct _Hash_code_base 29761: : private _Hashtable_ebo_helper<1, _Hash> 29761: { 29761: private: 29761: using __ebo_hash = _Hashtable_ebo_helper<1, _Hash>; 29761: 29761: 29761: friend struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, false>; 29761: 29761: public: 29761: typedef _Hash hasher; 29761: 29761: hasher 29761: hash_function() const 29761: { return _M_hash(); } 29761: 29761: protected: 29761: typedef std::size_t __hash_code; 29761: 29761: 29761: 29761: _Hash_code_base() = default; 29761: 29761: _Hash_code_base(const _Hash& __hash) : __ebo_hash(__hash) { } 29761: 29761: __hash_code 29761: _M_hash_code(const _Key& __k) const 29761: { 29761: static_assert(__is_invocable{}, 29761: "hash function must be invocable with an argument of key type"); 29761: return _M_hash()(__k); 29761: } 29761: 29761: template 29761: __hash_code 29761: _M_hash_code_tr(const _Kt& __k) const 29761: { 29761: static_assert(__is_invocable{}, 29761: "hash function must be invocable with an argument of key type"); 29761: return _M_hash()(__k); 29761: } 29761: 29761: __hash_code 29761: _M_hash_code(const _Hash_node_value<_Value, false>& __n) const 29761: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 29761: 29761: __hash_code 29761: _M_hash_code(const _Hash_node_value<_Value, true>& __n) const 29761: { return __n._M_hash_code; } 29761: 29761: std::size_t 29761: _M_bucket_index(__hash_code __c, std::size_t __bkt_count) const 29761: { return _RangeHash{}(__c, __bkt_count); } 29761: 29761: std::size_t 29761: _M_bucket_index(const _Hash_node_value<_Value, false>& __n, 29761: std::size_t __bkt_count) const 29761: noexcept( noexcept(declval()(declval())) 29761: && noexcept(declval()((__hash_code)0, 29761: (std::size_t)0)) ) 29761: { 29761: return _RangeHash{}(_M_hash_code(_ExtractKey{}(__n._M_v())), 29761: __bkt_count); 29761: } 29761: 29761: std::size_t 29761: _M_bucket_index(const _Hash_node_value<_Value, true>& __n, 29761: std::size_t __bkt_count) const 29761: noexcept( noexcept(declval()((__hash_code)0, 29761: (std::size_t)0)) ) 29761: { return _RangeHash{}(__n._M_hash_code, __bkt_count); } 29761: 29761: void 29761: _M_store_code(_Hash_node_code_cache&, __hash_code) const 29761: { } 29761: 29761: void 29761: _M_copy_code(_Hash_node_code_cache&, 29761: const _Hash_node_code_cache&) const 29761: { } 29761: 29761: void 29761: _M_store_code(_Hash_node_code_cache& __n, __hash_code __c) const 29761: { __n._M_hash_code = __c; } 29761: 29761: void 29761: _M_copy_code(_Hash_node_code_cache& __to, 29761: const _Hash_node_code_cache& __from) const 29761: { __to._M_hash_code = __from._M_hash_code; } 29761: 29761: void 29761: _M_swap(_Hash_code_base& __x) 29761: { std::swap(__ebo_hash::_M_get(), __x.__ebo_hash::_M_get()); } 29761: 29761: const _Hash& 29761: _M_hash() const { return __ebo_hash::_M_cget(); } 29761: }; 29761: 29761: 29761: template 29761: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, true> 29761: : public _Node_iterator_base<_Value, true> 29761: { 29761: protected: 29761: using __base_node_iter = _Node_iterator_base<_Value, true>; 29761: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, true>; 29761: 29761: _Local_iterator_base() = default; 29761: _Local_iterator_base(const __hash_code_base&, 29761: _Hash_node<_Value, true>* __p, 29761: std::size_t __bkt, std::size_t __bkt_count) 29761: : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 29761: { } 29761: 29761: void 29761: _M_incr() 29761: { 29761: __base_node_iter::_M_incr(); 29761: if (this->_M_cur) 29761: { 29761: std::size_t __bkt 29761: = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count); 29761: if (__bkt != _M_bucket) 29761: this->_M_cur = nullptr; 29761: } 29761: } 29761: 29761: std::size_t _M_bucket; 29761: std::size_t _M_bucket_count; 29761: 29761: public: 29761: std::size_t 29761: _M_get_bucket() const { return _M_bucket; } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template::value> 29761: struct _Hash_code_storage 29761: { 29761: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 29761: 29761: _Tp* 29761: _M_h() { return _M_storage._M_ptr(); } 29761: 29761: const _Tp* 29761: _M_h() const { return _M_storage._M_ptr(); } 29761: }; 29761: 29761: 29761: template 29761: struct _Hash_code_storage<_Tp, true> 29761: { 29761: static_assert( std::is_empty<_Tp>::value, "Type must be empty" ); 29761: 29761: 29761: 29761: _Tp* 29761: _M_h() { return reinterpret_cast<_Tp*>(this); } 29761: 29761: const _Tp* 29761: _M_h() const { return reinterpret_cast(this); } 29761: }; 29761: 29761: template 29761: using __hash_code_for_local_iter 29761: = _Hash_code_storage<_Hash_code_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, false>>; 29761: 29761: 29761: template 29761: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, false> 29761: : __hash_code_for_local_iter<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 29761: _Unused> 29761: , _Node_iterator_base<_Value, false> 29761: { 29761: protected: 29761: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, false>; 29761: using __node_iter_base = _Node_iterator_base<_Value, false>; 29761: 29761: _Local_iterator_base() : _M_bucket_count(-1) { } 29761: 29761: _Local_iterator_base(const __hash_code_base& __base, 29761: _Hash_node<_Value, false>* __p, 29761: std::size_t __bkt, std::size_t __bkt_count) 29761: : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 29761: { _M_init(__base); } 29761: 29761: ~_Local_iterator_base() 29761: { 29761: if (_M_bucket_count != size_t(-1)) 29761: _M_destroy(); 29761: } 29761: 29761: _Local_iterator_base(const _Local_iterator_base& __iter) 29761: : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket) 29761: , _M_bucket_count(__iter._M_bucket_count) 29761: { 29761: if (_M_bucket_count != size_t(-1)) 29761: _M_init(*__iter._M_h()); 29761: } 29761: 29761: _Local_iterator_base& 29761: operator=(const _Local_iterator_base& __iter) 29761: { 29761: if (_M_bucket_count != -1) 29761: _M_destroy(); 29761: this->_M_cur = __iter._M_cur; 29761: _M_bucket = __iter._M_bucket; 29761: _M_bucket_count = __iter._M_bucket_count; 29761: if (_M_bucket_count != -1) 29761: _M_init(*__iter._M_h()); 29761: return *this; 29761: } 29761: 29761: void 29761: _M_incr() 29761: { 29761: __node_iter_base::_M_incr(); 29761: if (this->_M_cur) 29761: { 29761: std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur, 29761: _M_bucket_count); 29761: if (__bkt != _M_bucket) 29761: this->_M_cur = nullptr; 29761: } 29761: } 29761: 29761: std::size_t _M_bucket; 29761: std::size_t _M_bucket_count; 29761: 29761: void 29761: _M_init(const __hash_code_base& __base) 29761: { ::new(this->_M_h()) __hash_code_base(__base); } 29761: 29761: void 29761: _M_destroy() { this->_M_h()->~__hash_code_base(); } 29761: 29761: public: 29761: std::size_t 29761: _M_get_bucket() const { return _M_bucket; } 29761: }; 29761: 29761: 29761: template 29761: struct _Local_iterator 29761: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, __cache> 29761: { 29761: private: 29761: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, __cache>; 29761: using __hash_code_base = typename __base_type::__hash_code_base; 29761: 29761: public: 29761: using value_type = _Value; 29761: using pointer = __conditional_t<__constant_iterators, 29761: const value_type*, value_type*>; 29761: using reference = __conditional_t<__constant_iterators, 29761: const value_type&, value_type&>; 29761: using difference_type = ptrdiff_t; 29761: using iterator_category = forward_iterator_tag; 29761: 29761: _Local_iterator() = default; 29761: 29761: _Local_iterator(const __hash_code_base& __base, 29761: _Hash_node<_Value, __cache>* __n, 29761: std::size_t __bkt, std::size_t __bkt_count) 29761: : __base_type(__base, __n, __bkt, __bkt_count) 29761: { } 29761: 29761: reference 29761: operator*() const 29761: { return this->_M_cur->_M_v(); } 29761: 29761: pointer 29761: operator->() const 29761: { return this->_M_cur->_M_valptr(); } 29761: 29761: _Local_iterator& 29761: operator++() 29761: { 29761: this->_M_incr(); 29761: return *this; 29761: } 29761: 29761: _Local_iterator 29761: operator++(int) 29761: { 29761: _Local_iterator __tmp(*this); 29761: this->_M_incr(); 29761: return __tmp; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Local_const_iterator 29761: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, __cache> 29761: { 29761: private: 29761: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, __cache>; 29761: using __hash_code_base = typename __base_type::__hash_code_base; 29761: 29761: public: 29761: typedef _Value value_type; 29761: typedef const value_type* pointer; 29761: typedef const value_type& reference; 29761: typedef std::ptrdiff_t difference_type; 29761: typedef std::forward_iterator_tag iterator_category; 29761: 29761: _Local_const_iterator() = default; 29761: 29761: _Local_const_iterator(const __hash_code_base& __base, 29761: _Hash_node<_Value, __cache>* __n, 29761: std::size_t __bkt, std::size_t __bkt_count) 29761: : __base_type(__base, __n, __bkt, __bkt_count) 29761: { } 29761: 29761: _Local_const_iterator(const _Local_iterator<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, 29761: __constant_iterators, 29761: __cache>& __x) 29761: : __base_type(__x) 29761: { } 29761: 29761: reference 29761: operator*() const 29761: { return this->_M_cur->_M_v(); } 29761: 29761: pointer 29761: operator->() const 29761: { return this->_M_cur->_M_valptr(); } 29761: 29761: _Local_const_iterator& 29761: operator++() 29761: { 29761: this->_M_incr(); 29761: return *this; 29761: } 29761: 29761: _Local_const_iterator 29761: operator++(int) 29761: { 29761: _Local_const_iterator __tmp(*this); 29761: this->_M_incr(); 29761: return __tmp; 29761: } 29761: }; 29761: # 1682 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: template 29761: struct _Hashtable_base 29761: : public _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 29761: _Unused, _Traits::__hash_cached::value>, 29761: private _Hashtable_ebo_helper<0, _Equal> 29761: { 29761: public: 29761: typedef _Key key_type; 29761: typedef _Value value_type; 29761: typedef _Equal key_equal; 29761: typedef std::size_t size_type; 29761: typedef std::ptrdiff_t difference_type; 29761: 29761: using __traits_type = _Traits; 29761: using __hash_cached = typename __traits_type::__hash_cached; 29761: 29761: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, 29761: __hash_cached::value>; 29761: 29761: using __hash_code = typename __hash_code_base::__hash_code; 29761: 29761: private: 29761: using _EqualEBO = _Hashtable_ebo_helper<0, _Equal>; 29761: 29761: static bool 29761: _S_equals(__hash_code, const _Hash_node_code_cache&) 29761: { return true; } 29761: 29761: static bool 29761: _S_node_equals(const _Hash_node_code_cache&, 29761: const _Hash_node_code_cache&) 29761: { return true; } 29761: 29761: static bool 29761: _S_equals(__hash_code __c, const _Hash_node_code_cache& __n) 29761: { return __c == __n._M_hash_code; } 29761: 29761: static bool 29761: _S_node_equals(const _Hash_node_code_cache& __lhn, 29761: const _Hash_node_code_cache& __rhn) 29761: { return __lhn._M_hash_code == __rhn._M_hash_code; } 29761: 29761: protected: 29761: _Hashtable_base() = default; 29761: 29761: _Hashtable_base(const _Hash& __hash, const _Equal& __eq) 29761: : __hash_code_base(__hash), _EqualEBO(__eq) 29761: { } 29761: 29761: bool 29761: _M_key_equals(const _Key& __k, 29761: const _Hash_node_value<_Value, 29761: __hash_cached::value>& __n) const 29761: { 29761: static_assert(__is_invocable{}, 29761: "key equality predicate must be invocable with two arguments of " 29761: "key type"); 29761: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 29761: } 29761: 29761: template 29761: bool 29761: _M_key_equals_tr(const _Kt& __k, 29761: const _Hash_node_value<_Value, 29761: __hash_cached::value>& __n) const 29761: { 29761: static_assert( 29761: __is_invocable{}, 29761: "key equality predicate must be invocable with two arguments of " 29761: "key type"); 29761: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 29761: } 29761: 29761: bool 29761: _M_equals(const _Key& __k, __hash_code __c, 29761: const _Hash_node_value<_Value, __hash_cached::value>& __n) const 29761: { return _S_equals(__c, __n) && _M_key_equals(__k, __n); } 29761: 29761: template 29761: bool 29761: _M_equals_tr(const _Kt& __k, __hash_code __c, 29761: const _Hash_node_value<_Value, 29761: __hash_cached::value>& __n) const 29761: { return _S_equals(__c, __n) && _M_key_equals_tr(__k, __n); } 29761: 29761: bool 29761: _M_node_equals( 29761: const _Hash_node_value<_Value, __hash_cached::value>& __lhn, 29761: const _Hash_node_value<_Value, __hash_cached::value>& __rhn) const 29761: { 29761: return _S_node_equals(__lhn, __rhn) 29761: && _M_key_equals(_ExtractKey{}(__lhn._M_v()), __rhn); 29761: } 29761: 29761: void 29761: _M_swap(_Hashtable_base& __x) 29761: { 29761: __hash_code_base::_M_swap(__x); 29761: std::swap(_EqualEBO::_M_get(), __x._EqualEBO::_M_get()); 29761: } 29761: 29761: const _Equal& 29761: _M_eq() const { return _EqualEBO::_M_cget(); } 29761: }; 29761: # 1798 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: template 29761: struct _Equality; 29761: 29761: 29761: template 29761: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 29761: { 29761: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: bool 29761: _M_equal(const __hashtable&) const; 29761: }; 29761: 29761: template 29761: bool 29761: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29761: _M_equal(const __hashtable& __other) const 29761: { 29761: using __node_ptr = typename __hashtable::__node_ptr; 29761: const __hashtable* __this = static_cast(this); 29761: if (__this->size() != __other.size()) 29761: return false; 29761: 29761: for (auto __x_n = __this->_M_begin(); __x_n; __x_n = __x_n->_M_next()) 29761: { 29761: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 29761: auto __prev_n = __other._M_buckets[__ybkt]; 29761: if (!__prev_n) 29761: return false; 29761: 29761: for (__node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt);; 29761: __n = __n->_M_next()) 29761: { 29761: if (__n->_M_v() == __x_n->_M_v()) 29761: break; 29761: 29761: if (!__n->_M_nxt 29761: || __other._M_bucket_index(*__n->_M_next()) != __ybkt) 29761: return false; 29761: } 29761: } 29761: 29761: return true; 29761: } 29761: 29761: 29761: template 29761: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29761: { 29761: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: bool 29761: _M_equal(const __hashtable&) const; 29761: }; 29761: 29761: template 29761: bool 29761: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>:: 29761: _M_equal(const __hashtable& __other) const 29761: { 29761: using __node_ptr = typename __hashtable::__node_ptr; 29761: using const_iterator = typename __hashtable::const_iterator; 29761: const __hashtable* __this = static_cast(this); 29761: if (__this->size() != __other.size()) 29761: return false; 29761: 29761: for (auto __x_n = __this->_M_begin(); __x_n;) 29761: { 29761: std::size_t __x_count = 1; 29761: auto __x_n_end = __x_n->_M_next(); 29761: for (; __x_n_end 29761: && __this->key_eq()(_ExtractKey{}(__x_n->_M_v()), 29761: _ExtractKey{}(__x_n_end->_M_v())); 29761: __x_n_end = __x_n_end->_M_next()) 29761: ++__x_count; 29761: 29761: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 29761: auto __y_prev_n = __other._M_buckets[__ybkt]; 29761: if (!__y_prev_n) 29761: return false; 29761: 29761: __node_ptr __y_n = static_cast<__node_ptr>(__y_prev_n->_M_nxt); 29761: for (;;) 29761: { 29761: if (__this->key_eq()(_ExtractKey{}(__y_n->_M_v()), 29761: _ExtractKey{}(__x_n->_M_v()))) 29761: break; 29761: 29761: auto __y_ref_n = __y_n; 29761: for (__y_n = __y_n->_M_next(); __y_n; __y_n = __y_n->_M_next()) 29761: if (!__other._M_node_equals(*__y_ref_n, *__y_n)) 29761: break; 29761: 29761: if (!__y_n || __other._M_bucket_index(*__y_n) != __ybkt) 29761: return false; 29761: } 29761: 29761: auto __y_n_end = __y_n; 29761: for (; __y_n_end; __y_n_end = __y_n_end->_M_next()) 29761: if (--__x_count == 0) 29761: break; 29761: 29761: if (__x_count != 0) 29761: return false; 29761: 29761: const_iterator __itx(__x_n), __itx_end(__x_n_end); 29761: const_iterator __ity(__y_n); 29761: if (!std::is_permutation(__itx, __itx_end, __ity)) 29761: return false; 29761: 29761: __x_n = __x_n_end; 29761: } 29761: return true; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hashtable_alloc : private _Hashtable_ebo_helper<0, _NodeAlloc> 29761: { 29761: private: 29761: using __ebo_node_alloc = _Hashtable_ebo_helper<0, _NodeAlloc>; 29761: 29761: template 29761: struct __get_value_type; 29761: template 29761: struct __get_value_type<_Hash_node<_Val, _Cache_hash_code>> 29761: { using type = _Val; }; 29761: 29761: public: 29761: using __node_type = typename _NodeAlloc::value_type; 29761: using __node_alloc_type = _NodeAlloc; 29761: 29761: using __node_alloc_traits = __gnu_cxx::__alloc_traits<__node_alloc_type>; 29761: 29761: using __value_alloc_traits = typename __node_alloc_traits::template 29761: rebind_traits::type>; 29761: 29761: using __node_ptr = __node_type*; 29761: using __node_base = _Hash_node_base; 29761: using __node_base_ptr = __node_base*; 29761: using __buckets_alloc_type = 29761: __alloc_rebind<__node_alloc_type, __node_base_ptr>; 29761: using __buckets_alloc_traits = std::allocator_traits<__buckets_alloc_type>; 29761: using __buckets_ptr = __node_base_ptr*; 29761: 29761: _Hashtable_alloc() = default; 29761: _Hashtable_alloc(const _Hashtable_alloc&) = default; 29761: _Hashtable_alloc(_Hashtable_alloc&&) = default; 29761: 29761: template 29761: _Hashtable_alloc(_Alloc&& __a) 29761: : __ebo_node_alloc(std::forward<_Alloc>(__a)) 29761: { } 29761: 29761: __node_alloc_type& 29761: _M_node_allocator() 29761: { return __ebo_node_alloc::_M_get(); } 29761: 29761: const __node_alloc_type& 29761: _M_node_allocator() const 29761: { return __ebo_node_alloc::_M_cget(); } 29761: 29761: 29761: template 29761: __node_ptr 29761: _M_allocate_node(_Args&&... __args); 29761: 29761: 29761: void 29761: _M_deallocate_node(__node_ptr __n); 29761: 29761: 29761: void 29761: _M_deallocate_node_ptr(__node_ptr __n); 29761: 29761: 29761: 29761: void 29761: _M_deallocate_nodes(__node_ptr __n); 29761: 29761: __buckets_ptr 29761: _M_allocate_buckets(std::size_t __bkt_count); 29761: 29761: void 29761: _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count); 29761: }; 29761: 29761: 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&... __args) 29761: -> __node_ptr 29761: { 29761: auto& __alloc = _M_node_allocator(); 29761: auto __nptr = __node_alloc_traits::allocate(__alloc, 1); 29761: __node_ptr __n = std::__to_address(__nptr); 29761: try 29761: { 29761: ::new ((void*)__n) __node_type; 29761: __node_alloc_traits::construct(__alloc, __n->_M_valptr(), 29761: std::forward<_Args>(__args)...); 29761: return __n; 29761: } 29761: catch(...) 29761: { 29761: __n->~__node_type(); 29761: __node_alloc_traits::deallocate(__alloc, __nptr, 1); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_ptr __n) 29761: { 29761: __node_alloc_traits::destroy(_M_node_allocator(), __n->_M_valptr()); 29761: _M_deallocate_node_ptr(__n); 29761: } 29761: 29761: template 29761: void 29761: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node_ptr(__node_ptr __n) 29761: { 29761: typedef typename __node_alloc_traits::pointer _Ptr; 29761: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__n); 29761: __n->~__node_type(); 29761: __node_alloc_traits::deallocate(_M_node_allocator(), __ptr, 1); 29761: } 29761: 29761: template 29761: void 29761: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_nodes(__node_ptr __n) 29761: { 29761: while (__n) 29761: { 29761: __node_ptr __tmp = __n; 29761: __n = __n->_M_next(); 29761: _M_deallocate_node(__tmp); 29761: } 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count) 29761: -> __buckets_ptr 29761: { 29761: __buckets_alloc_type __alloc(_M_node_allocator()); 29761: 29761: auto __ptr = __buckets_alloc_traits::allocate(__alloc, __bkt_count); 29761: __buckets_ptr __p = std::__to_address(__ptr); 29761: __builtin_memset(__p, 0, __bkt_count * sizeof(__node_base_ptr)); 29761: return __p; 29761: } 29761: 29761: template 29761: void 29761: _Hashtable_alloc<_NodeAlloc>:: 29761: _M_deallocate_buckets(__buckets_ptr __bkts, 29761: std::size_t __bkt_count) 29761: { 29761: typedef typename __buckets_alloc_traits::pointer _Ptr; 29761: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__bkts); 29761: __buckets_alloc_type __alloc(_M_node_allocator()); 29761: __buckets_alloc_traits::deallocate(__alloc, __ptr, __bkt_count); 29761: } 29761: 29761: 29761: } 29761: 29761: 29761: } 29761: # 36 "/usr/include/c++/14/bits/hashtable.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/enable_special_members.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/enable_special_members.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/enable_special_members.h" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: struct _Enable_default_constructor_tag 29761: { 29761: explicit constexpr _Enable_default_constructor_tag() = default; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Enable_default_constructor 29761: { 29761: constexpr _Enable_default_constructor() noexcept = default; 29761: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 29761: noexcept = default; 29761: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 29761: noexcept = default; 29761: _Enable_default_constructor& 29761: operator=(_Enable_default_constructor const&) noexcept = default; 29761: _Enable_default_constructor& 29761: operator=(_Enable_default_constructor&&) noexcept = default; 29761: 29761: 29761: constexpr explicit 29761: _Enable_default_constructor(_Enable_default_constructor_tag) { } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Enable_destructor { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Enable_copy_move { }; 29761: # 96 "/usr/include/c++/14/bits/enable_special_members.h" 3 29761: template 29761: struct _Enable_special_members 29761: : private _Enable_default_constructor<_Default, _Tag>, 29761: private _Enable_destructor<_Destructor, _Tag>, 29761: private _Enable_copy_move<_Copy, _CopyAssignment, 29761: _Move, _MoveAssignment, 29761: _Tag> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct _Enable_default_constructor 29761: { 29761: constexpr _Enable_default_constructor() noexcept = delete; 29761: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 29761: noexcept = default; 29761: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 29761: noexcept = default; 29761: _Enable_default_constructor& 29761: operator=(_Enable_default_constructor const&) noexcept = default; 29761: _Enable_default_constructor& 29761: operator=(_Enable_default_constructor&&) noexcept = default; 29761: 29761: 29761: constexpr explicit 29761: _Enable_default_constructor(_Enable_default_constructor_tag) { } 29761: }; 29761: 29761: template 29761: struct _Enable_destructor 29761: { ~_Enable_destructor() noexcept = delete; }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: 29761: 29761: } 29761: # 37 "/usr/include/c++/14/bits/hashtable.h" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/node_handle.h" 1 3 29761: # 34 "/usr/include/c++/14/bits/node_handle.h" 3 29761: 29761: # 35 "/usr/include/c++/14/bits/node_handle.h" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 37 "/usr/include/c++/14/bits/node_handle.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 64 "/usr/include/c++/14/bits/node_handle.h" 3 29761: template 29761: class _Node_handle_common 29761: { 29761: using _AllocTraits = allocator_traits<_NodeAlloc>; 29761: 29761: public: 29761: using allocator_type = __alloc_rebind<_NodeAlloc, _Val>; 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return allocator_type(_M_alloc._M_alloc); 29761: } 29761: 29761: explicit operator bool() const noexcept { return _M_ptr != nullptr; } 29761: 29761: [[nodiscard]] bool empty() const noexcept { return _M_ptr == nullptr; } 29761: 29761: 29761: protected: 29761: constexpr _Node_handle_common() noexcept : _M_ptr() { } 29761: 29761: ~_Node_handle_common() 29761: { 29761: if (!empty()) 29761: _M_reset(); 29761: } 29761: 29761: _Node_handle_common(_Node_handle_common&& __nh) noexcept 29761: : _M_ptr(__nh._M_ptr) 29761: { 29761: if (_M_ptr) 29761: _M_move(std::move(__nh)); 29761: } 29761: 29761: _Node_handle_common& 29761: operator=(_Node_handle_common&& __nh) noexcept 29761: { 29761: if (empty()) 29761: { 29761: if (!__nh.empty()) 29761: _M_move(std::move(__nh)); 29761: } 29761: else if (__nh.empty()) 29761: _M_reset(); 29761: else 29761: { 29761: 29761: _AllocTraits::destroy(*_M_alloc, _M_ptr->_M_valptr()); 29761: _AllocTraits::deallocate(*_M_alloc, _M_ptr, 1); 29761: 29761: _M_alloc = __nh._M_alloc.release(); 29761: _M_ptr = __nh._M_ptr; 29761: __nh._M_ptr = nullptr; 29761: } 29761: return *this; 29761: } 29761: 29761: _Node_handle_common(typename _AllocTraits::pointer __ptr, 29761: const _NodeAlloc& __alloc) 29761: : _M_ptr(__ptr), _M_alloc(__alloc) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__ptr != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: void 29761: _M_swap(_Node_handle_common& __nh) noexcept 29761: { 29761: if (empty()) 29761: { 29761: if (!__nh.empty()) 29761: _M_move(std::move(__nh)); 29761: } 29761: else if (__nh.empty()) 29761: __nh._M_move(std::move(*this)); 29761: else 29761: { 29761: using std::swap; 29761: swap(_M_ptr, __nh._M_ptr); 29761: _M_alloc.swap(__nh._M_alloc); 29761: } 29761: } 29761: 29761: private: 29761: 29761: 29761: 29761: void 29761: _M_move(_Node_handle_common&& __nh) noexcept 29761: { 29761: ::new (std::__addressof(_M_alloc)) _NodeAlloc(__nh._M_alloc.release()); 29761: _M_ptr = __nh._M_ptr; 29761: __nh._M_ptr = nullptr; 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: _M_reset() noexcept 29761: { 29761: _NodeAlloc __alloc = _M_alloc.release(); 29761: _AllocTraits::destroy(__alloc, _M_ptr->_M_valptr()); 29761: _AllocTraits::deallocate(__alloc, _M_ptr, 1); 29761: _M_ptr = nullptr; 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: release() noexcept 29761: { 29761: _M_alloc.release(); 29761: _M_ptr = nullptr; 29761: } 29761: 29761: protected: 29761: typename _AllocTraits::pointer _M_ptr; 29761: 29761: private: 29761: 29761: 29761: union _Optional_alloc 29761: { 29761: _Optional_alloc() { } 29761: ~_Optional_alloc() { } 29761: 29761: _Optional_alloc(_Optional_alloc&&) = delete; 29761: _Optional_alloc& operator=(_Optional_alloc&&) = delete; 29761: 29761: _Optional_alloc(const _NodeAlloc& __alloc) noexcept 29761: : _M_alloc(__alloc) 29761: { } 29761: 29761: 29761: void 29761: operator=(_NodeAlloc&& __alloc) noexcept 29761: { 29761: using _ATr = _AllocTraits; 29761: if constexpr (_ATr::propagate_on_container_move_assignment::value) 29761: _M_alloc = std::move(__alloc); 29761: else if constexpr (!_AllocTraits::is_always_equal::value) 29761: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: 29761: void 29761: swap(_Optional_alloc& __other) noexcept 29761: { 29761: using std::swap; 29761: if constexpr (_AllocTraits::propagate_on_container_swap::value) 29761: swap(_M_alloc, __other._M_alloc); 29761: else if constexpr (!_AllocTraits::is_always_equal::value) 29761: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __other._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: 29761: _NodeAlloc& operator*() noexcept { return _M_alloc; } 29761: 29761: 29761: _NodeAlloc release() noexcept 29761: { 29761: _NodeAlloc __tmp = std::move(_M_alloc); 29761: _M_alloc.~_NodeAlloc(); 29761: return __tmp; 29761: } 29761: 29761: [[__no_unique_address__]] _NodeAlloc _M_alloc; 29761: }; 29761: 29761: [[__no_unique_address__]] _Optional_alloc _M_alloc; 29761: 29761: template 29761: friend class _Rb_tree; 29761: 29761: template 29761: friend class _Hashtable; 29761: 29761: 29761: }; 29761: 29761: 29761: template 29761: class _Node_handle : public _Node_handle_common<_Value, _NodeAlloc> 29761: { 29761: public: 29761: constexpr _Node_handle() noexcept = default; 29761: ~_Node_handle() = default; 29761: _Node_handle(_Node_handle&&) noexcept = default; 29761: 29761: _Node_handle& 29761: operator=(_Node_handle&&) noexcept = default; 29761: 29761: using key_type = _Key; 29761: using mapped_type = typename _Value::second_type; 29761: 29761: key_type& 29761: key() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return *_M_pkey; 29761: } 29761: 29761: mapped_type& 29761: mapped() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return *_M_pmapped; 29761: } 29761: 29761: void 29761: swap(_Node_handle& __nh) noexcept 29761: { 29761: this->_M_swap(__nh); 29761: using std::swap; 29761: swap(_M_pkey, __nh._M_pkey); 29761: swap(_M_pmapped, __nh._M_pmapped); 29761: } 29761: 29761: friend void 29761: swap(_Node_handle& __x, _Node_handle& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: private: 29761: using _AllocTraits = allocator_traits<_NodeAlloc>; 29761: 29761: _Node_handle(typename _AllocTraits::pointer __ptr, 29761: const _NodeAlloc& __alloc) 29761: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) 29761: { 29761: if (__ptr) 29761: { 29761: auto& __key = const_cast<_Key&>(__ptr->_M_valptr()->first); 29761: _M_pkey = _S_pointer_to(__key); 29761: _M_pmapped = _S_pointer_to(__ptr->_M_valptr()->second); 29761: } 29761: else 29761: { 29761: _M_pkey = nullptr; 29761: _M_pmapped = nullptr; 29761: } 29761: } 29761: 29761: template 29761: using __pointer 29761: = __ptr_rebind>; 29761: 29761: __pointer<_Key> _M_pkey = nullptr; 29761: __pointer _M_pmapped = nullptr; 29761: 29761: template 29761: __pointer<_Tp> 29761: _S_pointer_to(_Tp& __obj) 29761: { return pointer_traits<__pointer<_Tp>>::pointer_to(__obj); } 29761: 29761: const key_type& 29761: _M_key() const noexcept { return key(); } 29761: 29761: template 29761: friend class _Rb_tree; 29761: 29761: template 29761: friend class _Hashtable; 29761: }; 29761: 29761: 29761: template 29761: class _Node_handle<_Value, _Value, _NodeAlloc> 29761: : public _Node_handle_common<_Value, _NodeAlloc> 29761: { 29761: public: 29761: constexpr _Node_handle() noexcept = default; 29761: ~_Node_handle() = default; 29761: _Node_handle(_Node_handle&&) noexcept = default; 29761: 29761: _Node_handle& 29761: operator=(_Node_handle&&) noexcept = default; 29761: 29761: using value_type = _Value; 29761: 29761: value_type& 29761: value() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return *this->_M_ptr->_M_valptr(); 29761: } 29761: 29761: void 29761: swap(_Node_handle& __nh) noexcept 29761: { this->_M_swap(__nh); } 29761: 29761: friend void 29761: swap(_Node_handle& __x, _Node_handle& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: private: 29761: using _AllocTraits = allocator_traits<_NodeAlloc>; 29761: 29761: _Node_handle(typename _AllocTraits::pointer __ptr, 29761: const _NodeAlloc& __alloc) 29761: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { } 29761: 29761: const value_type& 29761: _M_key() const noexcept { return value(); } 29761: 29761: template 29761: friend class _Rb_tree; 29761: 29761: template 29761: friend class _Hashtable; 29761: }; 29761: 29761: 29761: template 29761: struct _Node_insert_return 29761: { 29761: _Iterator position = _Iterator(); 29761: bool inserted = false; 29761: _NodeHandle node; 29761: }; 29761: 29761: 29761: 29761: 29761: } 29761: # 40 "/usr/include/c++/14/bits/hashtable.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: using __cache_default 29761: = __not_<__and_< 29761: __is_fast_hash<_Hash>, 29761: 29761: __is_nothrow_invocable>>; 29761: 29761: 29761: 29761: 29761: template 29761: using _Hashtable_enable_default_ctor 29761: = _Enable_default_constructor<__and_, 29761: is_default_constructible<_Hash>, 29761: is_default_constructible<_Allocator>>{}, 29761: __detail::_Hash_node_base>; 29761: # 181 "/usr/include/c++/14/bits/hashtable.h" 3 29761: template 29761: class _Hashtable 29761: : public __detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _Traits>, 29761: public __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>, 29761: public __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>, 29761: public __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>, 29761: public __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>, 29761: private __detail::_Hashtable_alloc< 29761: __alloc_rebind<_Alloc, 29761: __detail::_Hash_node<_Value, 29761: _Traits::__hash_cached::value>>>, 29761: private _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc> 29761: { 29761: static_assert(is_same::type, _Value>::value, 29761: "unordered container must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: using __traits_type = _Traits; 29761: using __hash_cached = typename __traits_type::__hash_cached; 29761: using __constant_iterators = typename __traits_type::__constant_iterators; 29761: using __node_type = __detail::_Hash_node<_Value, __hash_cached::value>; 29761: using __node_alloc_type = __alloc_rebind<_Alloc, __node_type>; 29761: 29761: using __hashtable_alloc = __detail::_Hashtable_alloc<__node_alloc_type>; 29761: 29761: using __node_value_type = 29761: __detail::_Hash_node_value<_Value, __hash_cached::value>; 29761: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29761: using __value_alloc_traits = 29761: typename __hashtable_alloc::__value_alloc_traits; 29761: using __node_alloc_traits = 29761: typename __hashtable_alloc::__node_alloc_traits; 29761: using __node_base = typename __hashtable_alloc::__node_base; 29761: using __node_base_ptr = typename __hashtable_alloc::__node_base_ptr; 29761: using __buckets_ptr = typename __hashtable_alloc::__buckets_ptr; 29761: 29761: using __insert_base = __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, 29761: _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: using __enable_default_ctor 29761: = _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc>; 29761: using __rehash_guard_t 29761: = __detail::_RehashStateGuard<_RehashPolicy>; 29761: 29761: public: 29761: typedef _Key key_type; 29761: typedef _Value value_type; 29761: typedef _Alloc allocator_type; 29761: typedef _Equal key_equal; 29761: 29761: 29761: 29761: typedef typename __value_alloc_traits::pointer pointer; 29761: typedef typename __value_alloc_traits::const_pointer const_pointer; 29761: typedef value_type& reference; 29761: typedef const value_type& const_reference; 29761: 29761: using iterator = typename __insert_base::iterator; 29761: 29761: using const_iterator = typename __insert_base::const_iterator; 29761: 29761: using local_iterator = __detail::_Local_iterator; 29761: 29761: using const_local_iterator = __detail::_Local_const_iterator< 29761: key_type, _Value, 29761: _ExtractKey, _Hash, _RangeHash, _Unused, 29761: __constant_iterators::value, __hash_cached::value>; 29761: 29761: private: 29761: using __rehash_type = _RehashPolicy; 29761: 29761: using __unique_keys = typename __traits_type::__unique_keys; 29761: 29761: using __hashtable_base = __detail:: 29761: _Hashtable_base<_Key, _Value, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, _Traits>; 29761: 29761: using __hash_code_base = typename __hashtable_base::__hash_code_base; 29761: using __hash_code = typename __hashtable_base::__hash_code; 29761: using __ireturn_type = typename __insert_base::__ireturn_type; 29761: 29761: using __map_base = __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: using __rehash_base = __detail::_Rehash_base<_Key, _Value, _Alloc, 29761: _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: using __eq_base = __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: using __reuse_or_alloc_node_gen_t = 29761: __detail::_ReuseOrAllocNode<__node_alloc_type>; 29761: using __alloc_node_gen_t = 29761: __detail::_AllocNode<__node_alloc_type>; 29761: using __node_builder_t = 29761: __detail::_NodeBuilder<_ExtractKey>; 29761: 29761: 29761: struct _Scoped_node 29761: { 29761: 29761: _Scoped_node(__node_ptr __n, __hashtable_alloc* __h) 29761: : _M_h(__h), _M_node(__n) { } 29761: 29761: 29761: template 29761: _Scoped_node(__hashtable_alloc* __h, _Args&&... __args) 29761: : _M_h(__h), 29761: _M_node(__h->_M_allocate_node(std::forward<_Args>(__args)...)) 29761: { } 29761: 29761: 29761: ~_Scoped_node() { if (_M_node) _M_h->_M_deallocate_node(_M_node); }; 29761: 29761: _Scoped_node(const _Scoped_node&) = delete; 29761: _Scoped_node& operator=(const _Scoped_node&) = delete; 29761: 29761: __hashtable_alloc* _M_h; 29761: __node_ptr _M_node; 29761: }; 29761: 29761: template 29761: static constexpr 29761: __conditional_t::value, 29761: const value_type&, value_type&&> 29761: __fwd_value_for(value_type& __val) noexcept 29761: { return std::move(__val); } 29761: 29761: 29761: 29761: 29761: 29761: struct __hash_code_base_access : __hash_code_base 29761: { using __hash_code_base::_M_bucket_index; }; 29761: 29761: 29761: static_assert(is_nothrow_default_constructible<_RangeHash>::value, 29761: "Functor used to map hash code to bucket index" 29761: " must be nothrow default constructible"); 29761: static_assert(noexcept( 29761: std::declval()((std::size_t)0, (std::size_t)0)), 29761: "Functor used to map hash code to bucket index must be" 29761: " noexcept"); 29761: 29761: 29761: static_assert(is_nothrow_default_constructible<_ExtractKey>::value, 29761: "_ExtractKey must be nothrow default constructible"); 29761: static_assert(noexcept( 29761: std::declval()(std::declval<_Value>())), 29761: "_ExtractKey functor must be noexcept invocable"); 29761: 29761: template 29761: friend struct __detail::_Map_base; 29761: 29761: template 29761: friend struct __detail::_Insert_base; 29761: 29761: template 29761: friend struct __detail::_Insert; 29761: 29761: template 29761: friend struct __detail::_Equality; 29761: 29761: public: 29761: using size_type = typename __hashtable_base::size_type; 29761: using difference_type = typename __hashtable_base::difference_type; 29761: 29761: 29761: using node_type = _Node_handle<_Key, _Value, __node_alloc_type>; 29761: using insert_return_type = _Node_insert_return; 29761: 29761: 29761: private: 29761: __buckets_ptr _M_buckets = &_M_single_bucket; 29761: size_type _M_bucket_count = 1; 29761: __node_base _M_before_begin; 29761: size_type _M_element_count = 0; 29761: _RehashPolicy _M_rehash_policy; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __node_base_ptr _M_single_bucket = nullptr; 29761: 29761: void 29761: _M_update_bbegin() 29761: { 29761: if (auto __begin = _M_begin()) 29761: _M_buckets[_M_bucket_index(*__begin)] = &_M_before_begin; 29761: } 29761: 29761: void 29761: _M_update_bbegin(__node_ptr __n) 29761: { 29761: _M_before_begin._M_nxt = __n; 29761: _M_update_bbegin(); 29761: } 29761: 29761: bool 29761: _M_uses_single_bucket(__buckets_ptr __bkts) const 29761: { return __builtin_expect(__bkts == &_M_single_bucket, false); } 29761: 29761: bool 29761: _M_uses_single_bucket() const 29761: { return _M_uses_single_bucket(_M_buckets); } 29761: 29761: static constexpr size_t 29761: __small_size_threshold() noexcept 29761: { 29761: return 29761: __detail::_Hashtable_hash_traits<_Hash>::__small_size_threshold(); 29761: } 29761: 29761: __hashtable_alloc& 29761: _M_base_alloc() { return *this; } 29761: 29761: __buckets_ptr 29761: _M_allocate_buckets(size_type __bkt_count) 29761: { 29761: if (__builtin_expect(__bkt_count == 1, false)) 29761: { 29761: _M_single_bucket = nullptr; 29761: return &_M_single_bucket; 29761: } 29761: 29761: return __hashtable_alloc::_M_allocate_buckets(__bkt_count); 29761: } 29761: 29761: void 29761: _M_deallocate_buckets(__buckets_ptr __bkts, size_type __bkt_count) 29761: { 29761: if (_M_uses_single_bucket(__bkts)) 29761: return; 29761: 29761: __hashtable_alloc::_M_deallocate_buckets(__bkts, __bkt_count); 29761: } 29761: 29761: void 29761: _M_deallocate_buckets() 29761: { _M_deallocate_buckets(_M_buckets, _M_bucket_count); } 29761: 29761: 29761: 29761: __node_ptr 29761: _M_bucket_begin(size_type __bkt) const 29761: { 29761: __node_base_ptr __n = _M_buckets[__bkt]; 29761: return __n ? static_cast<__node_ptr>(__n->_M_nxt) : nullptr; 29761: } 29761: 29761: __node_ptr 29761: _M_begin() const 29761: { return static_cast<__node_ptr>(_M_before_begin._M_nxt); } 29761: 29761: 29761: 29761: template 29761: void 29761: _M_assign_elements(_Ht&&); 29761: 29761: template 29761: void 29761: _M_assign(_Ht&&, const _NodeGenerator&); 29761: 29761: void 29761: _M_move_assign(_Hashtable&&, true_type); 29761: 29761: void 29761: _M_move_assign(_Hashtable&&, false_type); 29761: 29761: void 29761: _M_reset() noexcept; 29761: 29761: _Hashtable(const _Hash& __h, const _Equal& __eq, 29761: const allocator_type& __a) 29761: : __hashtable_base(__h, __eq), 29761: __hashtable_alloc(__node_alloc_type(__a)), 29761: __enable_default_ctor(_Enable_default_constructor_tag{}) 29761: { } 29761: 29761: template 29761: static constexpr bool 29761: _S_nothrow_move() 29761: { 29761: 29761: 29761: 29761: 29761: 29761: if constexpr (_No_realloc) 29761: if constexpr (is_nothrow_copy_constructible<_Hash>()) 29761: return is_nothrow_copy_constructible<_Equal>(); 29761: return false; 29761: 29761: } 29761: 29761: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29761: true_type ) 29761: noexcept(_S_nothrow_move()); 29761: 29761: _Hashtable(_Hashtable&&, __node_alloc_type&&, 29761: false_type ); 29761: 29761: template 29761: _Hashtable(_InputIterator __first, _InputIterator __last, 29761: size_type __bkt_count_hint, 29761: const _Hash&, const _Equal&, const allocator_type&, 29761: true_type __uks); 29761: 29761: template 29761: _Hashtable(_InputIterator __first, _InputIterator __last, 29761: size_type __bkt_count_hint, 29761: const _Hash&, const _Equal&, const allocator_type&, 29761: false_type __uks); 29761: 29761: public: 29761: 29761: _Hashtable() = default; 29761: 29761: _Hashtable(const _Hashtable&); 29761: 29761: _Hashtable(const _Hashtable&, const allocator_type&); 29761: 29761: explicit 29761: _Hashtable(size_type __bkt_count_hint, 29761: const _Hash& __hf = _Hash(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()); 29761: 29761: 29761: _Hashtable(_Hashtable&& __ht) 29761: noexcept(_S_nothrow_move()) 29761: : _Hashtable(std::move(__ht), std::move(__ht._M_node_allocator()), 29761: true_type{}) 29761: { } 29761: 29761: _Hashtable(_Hashtable&& __ht, const allocator_type& __a) 29761: noexcept(_S_nothrow_move<__node_alloc_traits::_S_always_equal()>()) 29761: : _Hashtable(std::move(__ht), __node_alloc_type(__a), 29761: typename __node_alloc_traits::is_always_equal{}) 29761: { } 29761: 29761: explicit 29761: _Hashtable(const allocator_type& __a) 29761: : __hashtable_alloc(__node_alloc_type(__a)), 29761: __enable_default_ctor(_Enable_default_constructor_tag{}) 29761: { } 29761: 29761: template 29761: _Hashtable(_InputIterator __f, _InputIterator __l, 29761: size_type __bkt_count_hint = 0, 29761: const _Hash& __hf = _Hash(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _Hashtable(__f, __l, __bkt_count_hint, __hf, __eql, __a, 29761: __unique_keys{}) 29761: { } 29761: 29761: _Hashtable(initializer_list __l, 29761: size_type __bkt_count_hint = 0, 29761: const _Hash& __hf = _Hash(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _Hashtable(__l.begin(), __l.end(), __bkt_count_hint, 29761: __hf, __eql, __a, __unique_keys{}) 29761: { } 29761: 29761: _Hashtable& 29761: operator=(const _Hashtable& __ht); 29761: 29761: _Hashtable& 29761: operator=(_Hashtable&& __ht) 29761: noexcept(__node_alloc_traits::_S_nothrow_move() 29761: && is_nothrow_move_assignable<_Hash>::value 29761: && is_nothrow_move_assignable<_Equal>::value) 29761: { 29761: constexpr bool __move_storage = 29761: __node_alloc_traits::_S_propagate_on_move_assign() 29761: || __node_alloc_traits::_S_always_equal(); 29761: _M_move_assign(std::move(__ht), __bool_constant<__move_storage>()); 29761: return *this; 29761: } 29761: 29761: _Hashtable& 29761: operator=(initializer_list __l) 29761: { 29761: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 29761: _M_before_begin._M_nxt = nullptr; 29761: clear(); 29761: 29761: 29761: auto __l_bkt_count = _M_rehash_policy._M_bkt_for_elements(__l.size()); 29761: 29761: 29761: if (_M_bucket_count < __l_bkt_count) 29761: rehash(__l_bkt_count); 29761: 29761: this->_M_insert_range(__l.begin(), __l.end(), __roan, __unique_keys{}); 29761: return *this; 29761: } 29761: 29761: ~_Hashtable() noexcept; 29761: 29761: void 29761: swap(_Hashtable&) 29761: noexcept(__and_<__is_nothrow_swappable<_Hash>, 29761: __is_nothrow_swappable<_Equal>>::value); 29761: 29761: 29761: iterator 29761: begin() noexcept 29761: { return iterator(_M_begin()); } 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(_M_begin()); } 29761: 29761: iterator 29761: end() noexcept 29761: { return iterator(nullptr); } 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return const_iterator(nullptr); } 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(_M_begin()); } 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return const_iterator(nullptr); } 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_element_count; } 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return size() == 0; } 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(this->_M_node_allocator()); } 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return __node_alloc_traits::max_size(this->_M_node_allocator()); } 29761: 29761: 29761: key_equal 29761: key_eq() const 29761: { return this->_M_eq(); } 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_count() const noexcept 29761: { return _M_bucket_count; } 29761: 29761: size_type 29761: max_bucket_count() const noexcept 29761: { return max_size(); } 29761: 29761: size_type 29761: bucket_size(size_type __bkt) const 29761: { return std::distance(begin(__bkt), end(__bkt)); } 29761: 29761: size_type 29761: bucket(const key_type& __k) const 29761: { return _M_bucket_index(this->_M_hash_code(__k)); } 29761: 29761: local_iterator 29761: begin(size_type __bkt) 29761: { 29761: return local_iterator(*this, _M_bucket_begin(__bkt), 29761: __bkt, _M_bucket_count); 29761: } 29761: 29761: local_iterator 29761: end(size_type __bkt) 29761: { return local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29761: 29761: const_local_iterator 29761: begin(size_type __bkt) const 29761: { 29761: return const_local_iterator(*this, _M_bucket_begin(__bkt), 29761: __bkt, _M_bucket_count); 29761: } 29761: 29761: const_local_iterator 29761: end(size_type __bkt) const 29761: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29761: 29761: 29761: const_local_iterator 29761: cbegin(size_type __bkt) const 29761: { 29761: return const_local_iterator(*this, _M_bucket_begin(__bkt), 29761: __bkt, _M_bucket_count); 29761: } 29761: 29761: const_local_iterator 29761: cend(size_type __bkt) const 29761: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29761: 29761: float 29761: load_factor() const noexcept 29761: { 29761: return static_cast(size()) / static_cast(bucket_count()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const _RehashPolicy& 29761: __rehash_policy() const 29761: { return _M_rehash_policy; } 29761: 29761: void 29761: __rehash_policy(const _RehashPolicy& __pol) 29761: { _M_rehash_policy = __pol; } 29761: 29761: 29761: iterator 29761: find(const key_type& __k); 29761: 29761: const_iterator 29761: find(const key_type& __k) const; 29761: 29761: size_type 29761: count(const key_type& __k) const; 29761: 29761: std::pair 29761: equal_range(const key_type& __k); 29761: 29761: std::pair 29761: equal_range(const key_type& __k) const; 29761: # 796 "/usr/include/c++/14/bits/hashtable.h" 3 29761: private: 29761: 29761: size_type 29761: _M_bucket_index(const __node_value_type& __n) const noexcept 29761: { return __hash_code_base::_M_bucket_index(__n, _M_bucket_count); } 29761: 29761: size_type 29761: _M_bucket_index(__hash_code __c) const 29761: { return __hash_code_base::_M_bucket_index(__c, _M_bucket_count); } 29761: 29761: __node_base_ptr 29761: _M_find_before_node(const key_type&); 29761: 29761: 29761: 29761: __node_base_ptr 29761: _M_find_before_node(size_type, const key_type&, __hash_code) const; 29761: 29761: template 29761: __node_base_ptr 29761: _M_find_before_node_tr(size_type, const _Kt&, __hash_code) const; 29761: 29761: __node_ptr 29761: _M_find_node(size_type __bkt, const key_type& __key, 29761: __hash_code __c) const 29761: { 29761: __node_base_ptr __before_n = _M_find_before_node(__bkt, __key, __c); 29761: if (__before_n) 29761: return static_cast<__node_ptr>(__before_n->_M_nxt); 29761: return nullptr; 29761: } 29761: 29761: template 29761: __node_ptr 29761: _M_find_node_tr(size_type __bkt, const _Kt& __key, 29761: __hash_code __c) const 29761: { 29761: auto __before_n = _M_find_before_node_tr(__bkt, __key, __c); 29761: if (__before_n) 29761: return static_cast<__node_ptr>(__before_n->_M_nxt); 29761: return nullptr; 29761: } 29761: 29761: 29761: void 29761: _M_insert_bucket_begin(size_type __bkt, __node_ptr __node) 29761: { 29761: if (_M_buckets[__bkt]) 29761: { 29761: 29761: 29761: __node->_M_nxt = _M_buckets[__bkt]->_M_nxt; 29761: _M_buckets[__bkt]->_M_nxt = __node; 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: __node->_M_nxt = _M_before_begin._M_nxt; 29761: _M_before_begin._M_nxt = __node; 29761: 29761: if (__node->_M_nxt) 29761: 29761: 29761: _M_buckets[_M_bucket_index(*__node->_M_next())] = __node; 29761: 29761: _M_buckets[__bkt] = &_M_before_begin; 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next_n, 29761: size_type __next_bkt) 29761: { 29761: if (!__next_n) 29761: _M_buckets[__bkt] = nullptr; 29761: else if (__next_bkt != __bkt) 29761: { 29761: _M_buckets[__next_bkt] = _M_buckets[__bkt]; 29761: _M_buckets[__bkt] = nullptr; 29761: } 29761: } 29761: 29761: 29761: __node_base_ptr 29761: _M_get_previous_node(size_type __bkt, __node_ptr __n); 29761: 29761: pair<__node_ptr, __hash_code> 29761: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: _M_insert_unique_node(size_type __bkt, __hash_code, 29761: __node_ptr __n, size_type __n_elt = 1); 29761: 29761: 29761: 29761: iterator 29761: _M_insert_multi_node(__node_ptr __hint, 29761: __hash_code __code, __node_ptr __n); 29761: 29761: template 29761: std::pair 29761: _M_emplace(true_type __uks, _Args&&... __args); 29761: 29761: template 29761: iterator 29761: _M_emplace(false_type __uks, _Args&&... __args) 29761: { return _M_emplace(cend(), __uks, std::forward<_Args>(__args)...); } 29761: 29761: 29761: template 29761: iterator 29761: _M_emplace(const_iterator, true_type __uks, _Args&&... __args) 29761: { return _M_emplace(__uks, std::forward<_Args>(__args)...).first; } 29761: 29761: template 29761: iterator 29761: _M_emplace(const_iterator, false_type __uks, _Args&&... __args); 29761: 29761: template 29761: std::pair 29761: _M_insert_unique(_Kt&&, _Arg&&, const _NodeGenerator&); 29761: 29761: template 29761: static __conditional_t< 29761: __and_<__is_nothrow_invocable<_Hash&, const key_type&>, 29761: __not_<__is_nothrow_invocable<_Hash&, _Kt>>>::value, 29761: key_type, _Kt&&> 29761: _S_forward_key(_Kt&& __k) 29761: { return std::forward<_Kt>(__k); } 29761: 29761: static const key_type& 29761: _S_forward_key(const key_type& __k) 29761: { return __k; } 29761: 29761: static key_type&& 29761: _S_forward_key(key_type&& __k) 29761: { return std::move(__k); } 29761: 29761: template 29761: std::pair 29761: _M_insert_unique_aux(_Arg&& __arg, const _NodeGenerator& __node_gen) 29761: { 29761: return _M_insert_unique( 29761: _S_forward_key(_ExtractKey{}(std::forward<_Arg>(__arg))), 29761: std::forward<_Arg>(__arg), __node_gen); 29761: } 29761: 29761: template 29761: std::pair 29761: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 29761: true_type ) 29761: { 29761: using __to_value 29761: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 29761: return _M_insert_unique_aux( 29761: __to_value{}(std::forward<_Arg>(__arg)), __node_gen); 29761: } 29761: 29761: template 29761: iterator 29761: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 29761: false_type __uks) 29761: { 29761: using __to_value 29761: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 29761: return _M_insert(cend(), 29761: __to_value{}(std::forward<_Arg>(__arg)), __node_gen, __uks); 29761: } 29761: 29761: 29761: template 29761: iterator 29761: _M_insert(const_iterator, _Arg&& __arg, 29761: const _NodeGenerator& __node_gen, true_type __uks) 29761: { 29761: return 29761: _M_insert(std::forward<_Arg>(__arg), __node_gen, __uks).first; 29761: } 29761: 29761: 29761: template 29761: iterator 29761: _M_insert(const_iterator, _Arg&&, 29761: const _NodeGenerator&, false_type __uks); 29761: 29761: size_type 29761: _M_erase(true_type __uks, const key_type&); 29761: 29761: size_type 29761: _M_erase(false_type __uks, const key_type&); 29761: 29761: iterator 29761: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n); 29761: 29761: public: 29761: 29761: template 29761: __ireturn_type 29761: emplace(_Args&&... __args) 29761: { return _M_emplace(__unique_keys{}, std::forward<_Args>(__args)...); } 29761: 29761: template 29761: iterator 29761: emplace_hint(const_iterator __hint, _Args&&... __args) 29761: { 29761: return _M_emplace(__hint, __unique_keys{}, 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: 29761: 29761: iterator 29761: erase(const_iterator); 29761: 29761: 29761: 29761: iterator 29761: erase(iterator __it) 29761: { return erase(const_iterator(__it)); } 29761: 29761: size_type 29761: erase(const key_type& __k) 29761: { return _M_erase(__unique_keys{}, __k); } 29761: 29761: iterator 29761: erase(const_iterator, const_iterator); 29761: 29761: void 29761: clear() noexcept; 29761: 29761: 29761: 29761: void rehash(size_type __bkt_count); 29761: 29761: 29761: 29761: 29761: 29761: 29761: insert_return_type 29761: _M_reinsert_node(node_type&& __nh) 29761: { 29761: insert_return_type __ret; 29761: if (__nh.empty()) 29761: __ret.position = end(); 29761: else 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __node_ptr __n = nullptr; 29761: const key_type& __k = __nh._M_key(); 29761: const size_type __size = size(); 29761: if (__size <= __small_size_threshold()) 29761: { 29761: for (__n = _M_begin(); __n; __n = __n->_M_next()) 29761: if (this->_M_key_equals(__k, *__n)) 29761: break; 29761: } 29761: 29761: __hash_code __code; 29761: size_type __bkt; 29761: if (!__n) 29761: { 29761: __code = this->_M_hash_code(__k); 29761: __bkt = _M_bucket_index(__code); 29761: if (__size > __small_size_threshold()) 29761: __n = _M_find_node(__bkt, __k, __code); 29761: } 29761: 29761: if (__n) 29761: { 29761: __ret.node = std::move(__nh); 29761: __ret.position = iterator(__n); 29761: __ret.inserted = false; 29761: } 29761: else 29761: { 29761: __ret.position 29761: = _M_insert_unique_node(__bkt, __code, __nh._M_ptr); 29761: __nh.release(); 29761: __ret.inserted = true; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: iterator 29761: _M_reinsert_node_multi(const_iterator __hint, node_type&& __nh) 29761: { 29761: if (__nh.empty()) 29761: return end(); 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: const key_type& __k = __nh._M_key(); 29761: auto __code = this->_M_hash_code(__k); 29761: auto __ret 29761: = _M_insert_multi_node(__hint._M_cur, __code, __nh._M_ptr); 29761: __nh.release(); 29761: return __ret; 29761: } 29761: 29761: private: 29761: node_type 29761: _M_extract_node(size_t __bkt, __node_base_ptr __prev_n) 29761: { 29761: __node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29761: if (__prev_n == _M_buckets[__bkt]) 29761: _M_remove_bucket_begin(__bkt, __n->_M_next(), 29761: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 29761: else if (__n->_M_nxt) 29761: { 29761: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 29761: if (__next_bkt != __bkt) 29761: _M_buckets[__next_bkt] = __prev_n; 29761: } 29761: 29761: __prev_n->_M_nxt = __n->_M_nxt; 29761: __n->_M_nxt = nullptr; 29761: --_M_element_count; 29761: return { __n, this->_M_node_allocator() }; 29761: } 29761: 29761: 29761: 29761: template 29761: __hash_code 29761: _M_src_hash_code(const _H2&, const key_type& __k, 29761: const __node_value_type& __src_n) const 29761: { 29761: if constexpr (std::is_same_v<_H2, _Hash>) 29761: if constexpr (std::is_empty_v<_Hash>) 29761: return this->_M_hash_code(__src_n); 29761: 29761: return this->_M_hash_code(__k); 29761: } 29761: 29761: public: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: size_t __bkt = _M_bucket_index(*__pos._M_cur); 29761: return _M_extract_node(__bkt, 29761: _M_get_previous_node(__bkt, __pos._M_cur)); 29761: } 29761: 29761: 29761: node_type 29761: extract(const _Key& __k) 29761: { 29761: node_type __nh; 29761: __hash_code __code = this->_M_hash_code(__k); 29761: std::size_t __bkt = _M_bucket_index(__code); 29761: if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code)) 29761: __nh = _M_extract_node(__bkt, __prev_node); 29761: return __nh; 29761: } 29761: 29761: 29761: template 29761: void 29761: _M_merge_unique(_Compatible_Hashtable& __src) 29761: { 29761: static_assert(is_same_v, "Node types are compatible"); 29761: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: auto __n_elt = __src.size(); 29761: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 29761: { 29761: auto __pos = __i++; 29761: const size_type __size = size(); 29761: const key_type& __k = _ExtractKey{}(*__pos); 29761: if (__size <= __small_size_threshold()) 29761: { 29761: bool __found = false; 29761: for (auto __n = _M_begin(); __n; __n = __n->_M_next()) 29761: if (this->_M_key_equals(__k, *__n)) 29761: { 29761: __found = true; 29761: break; 29761: } 29761: 29761: if (__found) 29761: { 29761: if (__n_elt != 1) 29761: --__n_elt; 29761: continue; 29761: } 29761: } 29761: 29761: __hash_code __code 29761: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 29761: size_type __bkt = _M_bucket_index(__code); 29761: if (__size <= __small_size_threshold() 29761: || _M_find_node(__bkt, __k, __code) == nullptr) 29761: { 29761: auto __nh = __src.extract(__pos); 29761: _M_insert_unique_node(__bkt, __code, __nh._M_ptr, __n_elt); 29761: __nh.release(); 29761: __n_elt = 1; 29761: } 29761: else if (__n_elt != 1) 29761: --__n_elt; 29761: } 29761: } 29761: 29761: 29761: template 29761: void 29761: _M_merge_multi(_Compatible_Hashtable& __src) 29761: { 29761: static_assert(is_same_v, "Node types are compatible"); 29761: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __node_ptr __hint = nullptr; 29761: this->reserve(size() + __src.size()); 29761: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 29761: { 29761: auto __pos = __i++; 29761: const key_type& __k = _ExtractKey{}(*__pos); 29761: __hash_code __code 29761: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 29761: auto __nh = __src.extract(__pos); 29761: __hint = _M_insert_multi_node(__hint, __code, __nh._M_ptr)._M_cur; 29761: __nh.release(); 29761: } 29761: } 29761: 29761: 29761: private: 29761: 29761: void _M_rehash(size_type __bkt_count, true_type __uks); 29761: 29761: 29761: void _M_rehash(size_type __bkt_count, false_type __uks); 29761: }; 29761: 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(size_type __bkt_count_hint, 29761: const _Hash& __h, const _Equal& __eq, const allocator_type& __a) 29761: : _Hashtable(__h, __eq, __a) 29761: { 29761: auto __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count_hint); 29761: if (__bkt_count > _M_bucket_count) 29761: { 29761: _M_buckets = _M_allocate_buckets(__bkt_count); 29761: _M_bucket_count = __bkt_count; 29761: } 29761: } 29761: 29761: template 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(_InputIterator __f, _InputIterator __l, 29761: size_type __bkt_count_hint, 29761: const _Hash& __h, const _Equal& __eq, 29761: const allocator_type& __a, true_type ) 29761: : _Hashtable(__bkt_count_hint, __h, __eq, __a) 29761: { this->insert(__f, __l); } 29761: 29761: template 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(_InputIterator __f, _InputIterator __l, 29761: size_type __bkt_count_hint, 29761: const _Hash& __h, const _Equal& __eq, 29761: const allocator_type& __a, false_type __uks) 29761: : _Hashtable(__h, __eq, __a) 29761: { 29761: auto __nb_elems = __detail::__distance_fw(__f, __l); 29761: auto __bkt_count = 29761: _M_rehash_policy._M_next_bkt( 29761: std::max(_M_rehash_policy._M_bkt_for_elements(__nb_elems), 29761: __bkt_count_hint)); 29761: 29761: if (__bkt_count > _M_bucket_count) 29761: { 29761: _M_buckets = _M_allocate_buckets(__bkt_count); 29761: _M_bucket_count = __bkt_count; 29761: } 29761: 29761: __alloc_node_gen_t __node_gen(*this); 29761: for (; __f != __l; ++__f) 29761: _M_insert(*__f, __node_gen, __uks); 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: operator=(const _Hashtable& __ht) 29761: -> _Hashtable& 29761: { 29761: if (&__ht == this) 29761: return *this; 29761: 29761: if (__node_alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: auto& __this_alloc = this->_M_node_allocator(); 29761: auto& __that_alloc = __ht._M_node_allocator(); 29761: if (!__node_alloc_traits::_S_always_equal() 29761: && __this_alloc != __that_alloc) 29761: { 29761: 29761: this->_M_deallocate_nodes(_M_begin()); 29761: _M_before_begin._M_nxt = nullptr; 29761: _M_deallocate_buckets(); 29761: _M_buckets = nullptr; 29761: std::__alloc_on_copy(__this_alloc, __that_alloc); 29761: __hashtable_base::operator=(__ht); 29761: _M_bucket_count = __ht._M_bucket_count; 29761: _M_element_count = __ht._M_element_count; 29761: _M_rehash_policy = __ht._M_rehash_policy; 29761: __alloc_node_gen_t __alloc_node_gen(*this); 29761: try 29761: { 29761: _M_assign(__ht, __alloc_node_gen); 29761: } 29761: catch(...) 29761: { 29761: 29761: 29761: _M_reset(); 29761: throw; 29761: } 29761: return *this; 29761: } 29761: std::__alloc_on_copy(__this_alloc, __that_alloc); 29761: } 29761: 29761: 29761: _M_assign_elements(__ht); 29761: return *this; 29761: } 29761: 29761: template 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_assign_elements(_Ht&& __ht) 29761: { 29761: __buckets_ptr __former_buckets = nullptr; 29761: std::size_t __former_bucket_count = _M_bucket_count; 29761: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29761: 29761: if (_M_bucket_count != __ht._M_bucket_count) 29761: { 29761: __former_buckets = _M_buckets; 29761: _M_buckets = _M_allocate_buckets(__ht._M_bucket_count); 29761: _M_bucket_count = __ht._M_bucket_count; 29761: } 29761: else 29761: __builtin_memset(_M_buckets, 0, 29761: _M_bucket_count * sizeof(__node_base_ptr)); 29761: 29761: try 29761: { 29761: __hashtable_base::operator=(std::forward<_Ht>(__ht)); 29761: _M_element_count = __ht._M_element_count; 29761: _M_rehash_policy = __ht._M_rehash_policy; 29761: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 29761: _M_before_begin._M_nxt = nullptr; 29761: _M_assign(std::forward<_Ht>(__ht), __roan); 29761: if (__former_buckets) 29761: _M_deallocate_buckets(__former_buckets, __former_bucket_count); 29761: __rehash_guard._M_guarded_obj = nullptr; 29761: } 29761: catch(...) 29761: { 29761: if (__former_buckets) 29761: { 29761: 29761: _M_deallocate_buckets(); 29761: _M_buckets = __former_buckets; 29761: _M_bucket_count = __former_bucket_count; 29761: } 29761: __builtin_memset(_M_buckets, 0, 29761: _M_bucket_count * sizeof(__node_base_ptr)); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_assign(_Ht&& __ht, const _NodeGenerator& __node_gen) 29761: { 29761: __buckets_ptr __buckets = nullptr; 29761: if (!_M_buckets) 29761: _M_buckets = __buckets = _M_allocate_buckets(_M_bucket_count); 29761: 29761: try 29761: { 29761: if (!__ht._M_before_begin._M_nxt) 29761: return; 29761: 29761: 29761: 29761: __node_ptr __ht_n = __ht._M_begin(); 29761: __node_ptr __this_n 29761: = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 29761: this->_M_copy_code(*__this_n, *__ht_n); 29761: _M_update_bbegin(__this_n); 29761: 29761: 29761: __node_ptr __prev_n = __this_n; 29761: for (__ht_n = __ht_n->_M_next(); __ht_n; __ht_n = __ht_n->_M_next()) 29761: { 29761: __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 29761: __prev_n->_M_nxt = __this_n; 29761: this->_M_copy_code(*__this_n, *__ht_n); 29761: size_type __bkt = _M_bucket_index(*__this_n); 29761: if (!_M_buckets[__bkt]) 29761: _M_buckets[__bkt] = __prev_n; 29761: __prev_n = __this_n; 29761: } 29761: } 29761: catch(...) 29761: { 29761: clear(); 29761: if (__buckets) 29761: _M_deallocate_buckets(); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_reset() noexcept 29761: { 29761: _M_rehash_policy._M_reset(); 29761: _M_bucket_count = 1; 29761: _M_single_bucket = nullptr; 29761: _M_buckets = &_M_single_bucket; 29761: _M_before_begin._M_nxt = nullptr; 29761: _M_element_count = 0; 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_move_assign(_Hashtable&& __ht, true_type) 29761: { 29761: if (__builtin_expect(std::__addressof(__ht) == this, false)) 29761: return; 29761: 29761: this->_M_deallocate_nodes(_M_begin()); 29761: _M_deallocate_buckets(); 29761: __hashtable_base::operator=(std::move(__ht)); 29761: _M_rehash_policy = __ht._M_rehash_policy; 29761: if (!__ht._M_uses_single_bucket()) 29761: _M_buckets = __ht._M_buckets; 29761: else 29761: { 29761: _M_buckets = &_M_single_bucket; 29761: _M_single_bucket = __ht._M_single_bucket; 29761: } 29761: 29761: _M_bucket_count = __ht._M_bucket_count; 29761: _M_before_begin._M_nxt = __ht._M_before_begin._M_nxt; 29761: _M_element_count = __ht._M_element_count; 29761: std::__alloc_on_move(this->_M_node_allocator(), __ht._M_node_allocator()); 29761: 29761: 29761: _M_update_bbegin(); 29761: __ht._M_reset(); 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_move_assign(_Hashtable&& __ht, false_type) 29761: { 29761: if (__ht._M_node_allocator() == this->_M_node_allocator()) 29761: _M_move_assign(std::move(__ht), true_type{}); 29761: else 29761: { 29761: 29761: _M_assign_elements(std::move(__ht)); 29761: __ht.clear(); 29761: } 29761: } 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(const _Hashtable& __ht) 29761: : __hashtable_base(__ht), 29761: __map_base(__ht), 29761: __rehash_base(__ht), 29761: __hashtable_alloc( 29761: __node_alloc_traits::_S_select_on_copy(__ht._M_node_allocator())), 29761: __enable_default_ctor(__ht), 29761: _M_buckets(nullptr), 29761: _M_bucket_count(__ht._M_bucket_count), 29761: _M_element_count(__ht._M_element_count), 29761: _M_rehash_policy(__ht._M_rehash_policy) 29761: { 29761: __alloc_node_gen_t __alloc_node_gen(*this); 29761: _M_assign(__ht, __alloc_node_gen); 29761: } 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29761: true_type ) 29761: noexcept(_S_nothrow_move()) 29761: : __hashtable_base(__ht), 29761: __map_base(__ht), 29761: __rehash_base(__ht), 29761: __hashtable_alloc(std::move(__a)), 29761: __enable_default_ctor(__ht), 29761: _M_buckets(__ht._M_buckets), 29761: _M_bucket_count(__ht._M_bucket_count), 29761: _M_before_begin(__ht._M_before_begin._M_nxt), 29761: _M_element_count(__ht._M_element_count), 29761: _M_rehash_policy(__ht._M_rehash_policy) 29761: { 29761: 29761: if (__ht._M_uses_single_bucket()) 29761: { 29761: _M_buckets = &_M_single_bucket; 29761: _M_single_bucket = __ht._M_single_bucket; 29761: } 29761: 29761: 29761: _M_update_bbegin(); 29761: 29761: __ht._M_reset(); 29761: } 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(const _Hashtable& __ht, const allocator_type& __a) 29761: : __hashtable_base(__ht), 29761: __map_base(__ht), 29761: __rehash_base(__ht), 29761: __hashtable_alloc(__node_alloc_type(__a)), 29761: __enable_default_ctor(__ht), 29761: _M_buckets(), 29761: _M_bucket_count(__ht._M_bucket_count), 29761: _M_element_count(__ht._M_element_count), 29761: _M_rehash_policy(__ht._M_rehash_policy) 29761: { 29761: __alloc_node_gen_t __alloc_node_gen(*this); 29761: _M_assign(__ht, __alloc_node_gen); 29761: } 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29761: false_type ) 29761: : __hashtable_base(__ht), 29761: __map_base(__ht), 29761: __rehash_base(__ht), 29761: __hashtable_alloc(std::move(__a)), 29761: __enable_default_ctor(__ht), 29761: _M_buckets(nullptr), 29761: _M_bucket_count(__ht._M_bucket_count), 29761: _M_element_count(__ht._M_element_count), 29761: _M_rehash_policy(__ht._M_rehash_policy) 29761: { 29761: if (__ht._M_node_allocator() == this->_M_node_allocator()) 29761: { 29761: if (__ht._M_uses_single_bucket()) 29761: { 29761: _M_buckets = &_M_single_bucket; 29761: _M_single_bucket = __ht._M_single_bucket; 29761: } 29761: else 29761: _M_buckets = __ht._M_buckets; 29761: 29761: 29761: 29761: _M_update_bbegin(__ht._M_begin()); 29761: 29761: __ht._M_reset(); 29761: } 29761: else 29761: { 29761: __alloc_node_gen_t __alloc_gen(*this); 29761: 29761: using _Fwd_Ht = __conditional_t< 29761: __move_if_noexcept_cond::value, 29761: const _Hashtable&, _Hashtable&&>; 29761: _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen); 29761: __ht.clear(); 29761: } 29761: } 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: ~_Hashtable() noexcept 29761: { 29761: 29761: 29761: 29761: static_assert(noexcept(declval() 29761: ._M_bucket_index(declval(), 29761: (std::size_t)0)), 29761: "Cache the hash code or qualify your functors involved" 29761: " in hash code and bucket index computation with noexcept"); 29761: 29761: clear(); 29761: _M_deallocate_buckets(); 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: swap(_Hashtable& __x) 29761: noexcept(__and_<__is_nothrow_swappable<_Hash>, 29761: __is_nothrow_swappable<_Equal>>::value) 29761: { 29761: 29761: 29761: 29761: this->_M_swap(__x); 29761: 29761: std::__alloc_on_swap(this->_M_node_allocator(), __x._M_node_allocator()); 29761: std::swap(_M_rehash_policy, __x._M_rehash_policy); 29761: 29761: 29761: if (this->_M_uses_single_bucket()) 29761: { 29761: if (!__x._M_uses_single_bucket()) 29761: { 29761: _M_buckets = __x._M_buckets; 29761: __x._M_buckets = &__x._M_single_bucket; 29761: } 29761: } 29761: else if (__x._M_uses_single_bucket()) 29761: { 29761: __x._M_buckets = _M_buckets; 29761: _M_buckets = &_M_single_bucket; 29761: } 29761: else 29761: std::swap(_M_buckets, __x._M_buckets); 29761: 29761: std::swap(_M_bucket_count, __x._M_bucket_count); 29761: std::swap(_M_before_begin._M_nxt, __x._M_before_begin._M_nxt); 29761: std::swap(_M_element_count, __x._M_element_count); 29761: std::swap(_M_single_bucket, __x._M_single_bucket); 29761: 29761: 29761: 29761: _M_update_bbegin(); 29761: __x._M_update_bbegin(); 29761: } 29761: 29761: template 29761: auto inline 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: find(const key_type& __k) 29761: -> iterator 29761: { 29761: if (size() <= __small_size_threshold()) 29761: { 29761: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29761: if (this->_M_key_equals(__k, *__it)) 29761: return iterator(__it); 29761: return end(); 29761: } 29761: 29761: __hash_code __code = this->_M_hash_code(__k); 29761: std::size_t __bkt = _M_bucket_index(__code); 29761: return iterator(_M_find_node(__bkt, __k, __code)); 29761: } 29761: 29761: template 29761: auto inline 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: find(const key_type& __k) const 29761: -> const_iterator 29761: { 29761: if (size() <= __small_size_threshold()) 29761: { 29761: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29761: if (this->_M_key_equals(__k, *__it)) 29761: return const_iterator(__it); 29761: return end(); 29761: } 29761: 29761: __hash_code __code = this->_M_hash_code(__k); 29761: std::size_t __bkt = _M_bucket_index(__code); 29761: return const_iterator(_M_find_node(__bkt, __k, __code)); 29761: } 29761: # 1818 "/usr/include/c++/14/bits/hashtable.h" 3 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: count(const key_type& __k) const 29761: -> size_type 29761: { 29761: auto __it = find(__k); 29761: if (!__it._M_cur) 29761: return 0; 29761: 29761: if (__unique_keys::value) 29761: return 1; 29761: 29761: size_type __result = 1; 29761: for (auto __ref = __it++; 29761: __it._M_cur && this->_M_node_equals(*__ref._M_cur, *__it._M_cur); 29761: ++__it) 29761: ++__result; 29761: 29761: return __result; 29761: } 29761: # 1891 "/usr/include/c++/14/bits/hashtable.h" 3 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: equal_range(const key_type& __k) 29761: -> pair 29761: { 29761: auto __ite = find(__k); 29761: if (!__ite._M_cur) 29761: return { __ite, __ite }; 29761: 29761: auto __beg = __ite++; 29761: if (__unique_keys::value) 29761: return { __beg, __ite }; 29761: 29761: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 29761: ++__ite; 29761: 29761: return { __beg, __ite }; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: equal_range(const key_type& __k) const 29761: -> pair 29761: { 29761: auto __ite = find(__k); 29761: if (!__ite._M_cur) 29761: return { __ite, __ite }; 29761: 29761: auto __beg = __ite++; 29761: if (__unique_keys::value) 29761: return { __beg, __ite }; 29761: 29761: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 29761: ++__ite; 29761: 29761: return { __beg, __ite }; 29761: } 29761: # 2031 "/usr/include/c++/14/bits/hashtable.h" 3 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_find_before_node(const key_type& __k) 29761: -> __node_base_ptr 29761: { 29761: __node_base_ptr __prev_p = &_M_before_begin; 29761: if (!__prev_p->_M_nxt) 29761: return nullptr; 29761: 29761: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt); 29761: __p != nullptr; 29761: __p = __p->_M_next()) 29761: { 29761: if (this->_M_key_equals(__k, *__p)) 29761: return __prev_p; 29761: 29761: __prev_p = __p; 29761: } 29761: 29761: return nullptr; 29761: } 29761: 29761: 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_find_before_node(size_type __bkt, const key_type& __k, 29761: __hash_code __code) const 29761: -> __node_base_ptr 29761: { 29761: __node_base_ptr __prev_p = _M_buckets[__bkt]; 29761: if (!__prev_p) 29761: return nullptr; 29761: 29761: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 29761: __p = __p->_M_next()) 29761: { 29761: if (this->_M_equals(__k, __code, *__p)) 29761: return __prev_p; 29761: 29761: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 29761: break; 29761: __prev_p = __p; 29761: } 29761: 29761: return nullptr; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_find_before_node_tr(size_type __bkt, const _Kt& __k, 29761: __hash_code __code) const 29761: -> __node_base_ptr 29761: { 29761: __node_base_ptr __prev_p = _M_buckets[__bkt]; 29761: if (!__prev_p) 29761: return nullptr; 29761: 29761: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 29761: __p = __p->_M_next()) 29761: { 29761: if (this->_M_equals_tr(__k, __code, *__p)) 29761: return __prev_p; 29761: 29761: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 29761: break; 29761: __prev_p = __p; 29761: } 29761: 29761: return nullptr; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_get_previous_node(size_type __bkt, __node_ptr __n) 29761: -> __node_base_ptr 29761: { 29761: __node_base_ptr __prev_n = _M_buckets[__bkt]; 29761: while (__prev_n->_M_nxt != __n) 29761: __prev_n = __prev_n->_M_nxt; 29761: return __prev_n; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_emplace(true_type , _Args&&... __args) 29761: -> pair 29761: { 29761: 29761: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 29761: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 29761: const size_type __size = size(); 29761: if (__size <= __small_size_threshold()) 29761: { 29761: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29761: if (this->_M_key_equals(__k, *__it)) 29761: 29761: return { iterator(__it), false }; 29761: } 29761: 29761: __hash_code __code = this->_M_hash_code(__k); 29761: size_type __bkt = _M_bucket_index(__code); 29761: if (__size > __small_size_threshold()) 29761: if (__node_ptr __p = _M_find_node(__bkt, __k, __code)) 29761: 29761: return { iterator(__p), false }; 29761: 29761: 29761: auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); 29761: __node._M_node = nullptr; 29761: return { __pos, true }; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_emplace(const_iterator __hint, false_type , 29761: _Args&&... __args) 29761: -> iterator 29761: { 29761: 29761: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 29761: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 29761: 29761: auto __res = this->_M_compute_hash_code(__hint._M_cur, __k); 29761: auto __pos 29761: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 29761: __node._M_node = nullptr; 29761: return __pos; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const 29761: -> pair<__node_ptr, __hash_code> 29761: { 29761: if (size() <= __small_size_threshold()) 29761: { 29761: if (__hint) 29761: { 29761: for (auto __it = __hint; __it; __it = __it->_M_next()) 29761: if (this->_M_key_equals(__k, *__it)) 29761: return { __it, this->_M_hash_code(*__it) }; 29761: } 29761: 29761: for (auto __it = _M_begin(); __it != __hint; __it = __it->_M_next()) 29761: if (this->_M_key_equals(__k, *__it)) 29761: return { __it, this->_M_hash_code(*__it) }; 29761: 29761: __hint = nullptr; 29761: } 29761: 29761: return { __hint, this->_M_hash_code(__k) }; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_insert_unique_node(size_type __bkt, __hash_code __code, 29761: __node_ptr __node, size_type __n_elt) 29761: -> iterator 29761: { 29761: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29761: std::pair __do_rehash 29761: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 29761: __n_elt); 29761: 29761: if (__do_rehash.first) 29761: { 29761: _M_rehash(__do_rehash.second, true_type{}); 29761: __bkt = _M_bucket_index(__code); 29761: } 29761: 29761: __rehash_guard._M_guarded_obj = nullptr; 29761: this->_M_store_code(*__node, __code); 29761: 29761: 29761: _M_insert_bucket_begin(__bkt, __node); 29761: ++_M_element_count; 29761: return iterator(__node); 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_insert_multi_node(__node_ptr __hint, 29761: __hash_code __code, __node_ptr __node) 29761: -> iterator 29761: { 29761: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29761: std::pair __do_rehash 29761: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 1); 29761: 29761: if (__do_rehash.first) 29761: _M_rehash(__do_rehash.second, false_type{}); 29761: 29761: __rehash_guard._M_guarded_obj = nullptr; 29761: this->_M_store_code(*__node, __code); 29761: const key_type& __k = _ExtractKey{}(__node->_M_v()); 29761: size_type __bkt = _M_bucket_index(__code); 29761: 29761: 29761: 29761: __node_base_ptr __prev 29761: = __builtin_expect(__hint != nullptr, false) 29761: && this->_M_equals(__k, __code, *__hint) 29761: ? __hint 29761: : _M_find_before_node(__bkt, __k, __code); 29761: 29761: if (__prev) 29761: { 29761: 29761: __node->_M_nxt = __prev->_M_nxt; 29761: __prev->_M_nxt = __node; 29761: if (__builtin_expect(__prev == __hint, false)) 29761: 29761: 29761: if (__node->_M_nxt 29761: && !this->_M_equals(__k, __code, *__node->_M_next())) 29761: { 29761: size_type __next_bkt = _M_bucket_index(*__node->_M_next()); 29761: if (__next_bkt != __bkt) 29761: _M_buckets[__next_bkt] = __node; 29761: } 29761: } 29761: else 29761: 29761: 29761: 29761: _M_insert_bucket_begin(__bkt, __node); 29761: ++_M_element_count; 29761: return iterator(__node); 29761: } 29761: 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_insert_unique(_Kt&& __k, _Arg&& __v, 29761: const _NodeGenerator& __node_gen) 29761: -> pair 29761: { 29761: const size_type __size = size(); 29761: if (__size <= __small_size_threshold()) 29761: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29761: if (this->_M_key_equals_tr(__k, *__it)) 29761: return { iterator(__it), false }; 29761: 29761: __hash_code __code = this->_M_hash_code_tr(__k); 29761: size_type __bkt = _M_bucket_index(__code); 29761: 29761: if (__size > __small_size_threshold()) 29761: if (__node_ptr __node = _M_find_node_tr(__bkt, __k, __code)) 29761: return { iterator(__node), false }; 29761: 29761: _Scoped_node __node { 29761: __node_builder_t::_S_build(std::forward<_Kt>(__k), 29761: std::forward<_Arg>(__v), 29761: __node_gen), 29761: this 29761: }; 29761: auto __pos 29761: = _M_insert_unique_node(__bkt, __code, __node._M_node); 29761: __node._M_node = nullptr; 29761: return { __pos, true }; 29761: } 29761: 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_insert(const_iterator __hint, _Arg&& __v, 29761: const _NodeGenerator& __node_gen, 29761: false_type ) 29761: -> iterator 29761: { 29761: 29761: _Scoped_node __node{ __node_gen(std::forward<_Arg>(__v)), this }; 29761: 29761: 29761: auto __res = this->_M_compute_hash_code( 29761: __hint._M_cur, _ExtractKey{}(__node._M_node->_M_v())); 29761: 29761: auto __pos 29761: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 29761: __node._M_node = nullptr; 29761: return __pos; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: erase(const_iterator __it) 29761: -> iterator 29761: { 29761: __node_ptr __n = __it._M_cur; 29761: std::size_t __bkt = _M_bucket_index(*__n); 29761: 29761: 29761: 29761: 29761: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 29761: return _M_erase(__bkt, __prev_n, __n); 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n) 29761: -> iterator 29761: { 29761: if (__prev_n == _M_buckets[__bkt]) 29761: _M_remove_bucket_begin(__bkt, __n->_M_next(), 29761: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 29761: else if (__n->_M_nxt) 29761: { 29761: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 29761: if (__next_bkt != __bkt) 29761: _M_buckets[__next_bkt] = __prev_n; 29761: } 29761: 29761: __prev_n->_M_nxt = __n->_M_nxt; 29761: iterator __result(__n->_M_next()); 29761: this->_M_deallocate_node(__n); 29761: --_M_element_count; 29761: 29761: return __result; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_erase(true_type , const key_type& __k) 29761: -> size_type 29761: { 29761: __node_base_ptr __prev_n; 29761: __node_ptr __n; 29761: std::size_t __bkt; 29761: if (size() <= __small_size_threshold()) 29761: { 29761: __prev_n = _M_find_before_node(__k); 29761: if (!__prev_n) 29761: return 0; 29761: 29761: 29761: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29761: __bkt = _M_bucket_index(*__n); 29761: } 29761: else 29761: { 29761: __hash_code __code = this->_M_hash_code(__k); 29761: __bkt = _M_bucket_index(__code); 29761: 29761: 29761: __prev_n = _M_find_before_node(__bkt, __k, __code); 29761: if (!__prev_n) 29761: return 0; 29761: 29761: 29761: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29761: } 29761: 29761: _M_erase(__bkt, __prev_n, __n); 29761: return 1; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_erase(false_type , const key_type& __k) 29761: -> size_type 29761: { 29761: std::size_t __bkt; 29761: __node_base_ptr __prev_n; 29761: __node_ptr __n; 29761: if (size() <= __small_size_threshold()) 29761: { 29761: __prev_n = _M_find_before_node(__k); 29761: if (!__prev_n) 29761: return 0; 29761: 29761: 29761: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29761: __bkt = _M_bucket_index(*__n); 29761: } 29761: else 29761: { 29761: __hash_code __code = this->_M_hash_code(__k); 29761: __bkt = _M_bucket_index(__code); 29761: 29761: 29761: __prev_n = _M_find_before_node(__bkt, __k, __code); 29761: if (!__prev_n) 29761: return 0; 29761: 29761: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __node_ptr __n_last = __n->_M_next(); 29761: while (__n_last && this->_M_node_equals(*__n, *__n_last)) 29761: __n_last = __n_last->_M_next(); 29761: 29761: std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt; 29761: 29761: 29761: size_type __result = 0; 29761: do 29761: { 29761: __node_ptr __p = __n->_M_next(); 29761: this->_M_deallocate_node(__n); 29761: __n = __p; 29761: ++__result; 29761: } 29761: while (__n != __n_last); 29761: 29761: _M_element_count -= __result; 29761: if (__prev_n == _M_buckets[__bkt]) 29761: _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt); 29761: else if (__n_last_bkt != __bkt) 29761: _M_buckets[__n_last_bkt] = __prev_n; 29761: __prev_n->_M_nxt = __n_last; 29761: return __result; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: erase(const_iterator __first, const_iterator __last) 29761: -> iterator 29761: { 29761: __node_ptr __n = __first._M_cur; 29761: __node_ptr __last_n = __last._M_cur; 29761: if (__n == __last_n) 29761: return iterator(__n); 29761: 29761: std::size_t __bkt = _M_bucket_index(*__n); 29761: 29761: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 29761: bool __is_bucket_begin = __n == _M_bucket_begin(__bkt); 29761: std::size_t __n_bkt = __bkt; 29761: for (;;) 29761: { 29761: do 29761: { 29761: __node_ptr __tmp = __n; 29761: __n = __n->_M_next(); 29761: this->_M_deallocate_node(__tmp); 29761: --_M_element_count; 29761: if (!__n) 29761: break; 29761: __n_bkt = _M_bucket_index(*__n); 29761: } 29761: while (__n != __last_n && __n_bkt == __bkt); 29761: if (__is_bucket_begin) 29761: _M_remove_bucket_begin(__bkt, __n, __n_bkt); 29761: if (__n == __last_n) 29761: break; 29761: __is_bucket_begin = true; 29761: __bkt = __n_bkt; 29761: } 29761: 29761: if (__n && (__n_bkt != __bkt || __is_bucket_begin)) 29761: _M_buckets[__n_bkt] = __prev_n; 29761: __prev_n->_M_nxt = __n; 29761: return iterator(__n); 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: clear() noexcept 29761: { 29761: this->_M_deallocate_nodes(_M_begin()); 29761: __builtin_memset(_M_buckets, 0, 29761: _M_bucket_count * sizeof(__node_base_ptr)); 29761: _M_element_count = 0; 29761: _M_before_begin._M_nxt = nullptr; 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: rehash(size_type __bkt_count) 29761: { 29761: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29761: __bkt_count 29761: = std::max(_M_rehash_policy._M_bkt_for_elements(_M_element_count + 1), 29761: __bkt_count); 29761: __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count); 29761: 29761: if (__bkt_count != _M_bucket_count) 29761: { 29761: _M_rehash(__bkt_count, __unique_keys{}); 29761: __rehash_guard._M_guarded_obj = nullptr; 29761: } 29761: } 29761: 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_rehash(size_type __bkt_count, true_type ) 29761: { 29761: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 29761: __node_ptr __p = _M_begin(); 29761: _M_before_begin._M_nxt = nullptr; 29761: std::size_t __bbegin_bkt = 0; 29761: while (__p) 29761: { 29761: __node_ptr __next = __p->_M_next(); 29761: std::size_t __bkt 29761: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 29761: if (!__new_buckets[__bkt]) 29761: { 29761: __p->_M_nxt = _M_before_begin._M_nxt; 29761: _M_before_begin._M_nxt = __p; 29761: __new_buckets[__bkt] = &_M_before_begin; 29761: if (__p->_M_nxt) 29761: __new_buckets[__bbegin_bkt] = __p; 29761: __bbegin_bkt = __bkt; 29761: } 29761: else 29761: { 29761: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 29761: __new_buckets[__bkt]->_M_nxt = __p; 29761: } 29761: 29761: __p = __next; 29761: } 29761: 29761: _M_deallocate_buckets(); 29761: _M_bucket_count = __bkt_count; 29761: _M_buckets = __new_buckets; 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_rehash(size_type __bkt_count, false_type ) 29761: { 29761: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 29761: __node_ptr __p = _M_begin(); 29761: _M_before_begin._M_nxt = nullptr; 29761: std::size_t __bbegin_bkt = 0; 29761: std::size_t __prev_bkt = 0; 29761: __node_ptr __prev_p = nullptr; 29761: bool __check_bucket = false; 29761: 29761: while (__p) 29761: { 29761: __node_ptr __next = __p->_M_next(); 29761: std::size_t __bkt 29761: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 29761: 29761: if (__prev_p && __prev_bkt == __bkt) 29761: { 29761: 29761: 29761: 29761: __p->_M_nxt = __prev_p->_M_nxt; 29761: __prev_p->_M_nxt = __p; 29761: 29761: 29761: 29761: 29761: 29761: 29761: __check_bucket = true; 29761: } 29761: else 29761: { 29761: if (__check_bucket) 29761: { 29761: 29761: 29761: if (__prev_p->_M_nxt) 29761: { 29761: std::size_t __next_bkt 29761: = __hash_code_base::_M_bucket_index( 29761: *__prev_p->_M_next(), __bkt_count); 29761: if (__next_bkt != __prev_bkt) 29761: __new_buckets[__next_bkt] = __prev_p; 29761: } 29761: __check_bucket = false; 29761: } 29761: 29761: if (!__new_buckets[__bkt]) 29761: { 29761: __p->_M_nxt = _M_before_begin._M_nxt; 29761: _M_before_begin._M_nxt = __p; 29761: __new_buckets[__bkt] = &_M_before_begin; 29761: if (__p->_M_nxt) 29761: __new_buckets[__bbegin_bkt] = __p; 29761: __bbegin_bkt = __bkt; 29761: } 29761: else 29761: { 29761: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 29761: __new_buckets[__bkt]->_M_nxt = __p; 29761: } 29761: } 29761: __prev_p = __p; 29761: __prev_bkt = __bkt; 29761: __p = __next; 29761: } 29761: 29761: if (__check_bucket && __prev_p->_M_nxt) 29761: { 29761: std::size_t __next_bkt 29761: = __hash_code_base::_M_bucket_index(*__prev_p->_M_next(), 29761: __bkt_count); 29761: if (__next_bkt != __prev_bkt) 29761: __new_buckets[__next_bkt] = __prev_p; 29761: } 29761: 29761: _M_deallocate_buckets(); 29761: _M_bucket_count = __bkt_count; 29761: _M_buckets = __new_buckets; 29761: } 29761: 29761: 29761: template class _Hash_merge_helper { }; 29761: 29761: 29761: 29761: 29761: template 29761: using _RequireNotAllocatorOrIntegral 29761: = __enable_if_t, __is_allocator<_Hash>>::value>; 29761: 29761: 29761: 29761: 29761: } 29761: # 34 "/usr/include/c++/14/bits/unordered_map.h" 2 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>; 29761: 29761: template, 29761: typename _Pred = std::equal_to<_Key>, 29761: typename _Alloc = std::allocator >, 29761: typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>> 29761: using __umap_hashtable = _Hashtable<_Key, std::pair, 29761: _Alloc, __detail::_Select1st, 29761: _Pred, _Hash, 29761: __detail::_Mod_range_hashing, 29761: __detail::_Default_ranged_hash, 29761: __detail::_Prime_rehash_policy, _Tr>; 29761: 29761: 29761: template 29761: using __ummap_traits = __detail::_Hashtable_traits<_Cache, false, false>; 29761: 29761: template, 29761: typename _Pred = std::equal_to<_Key>, 29761: typename _Alloc = std::allocator >, 29761: typename _Tr = __ummap_traits<__cache_default<_Key, _Hash>::value>> 29761: using __ummap_hashtable = _Hashtable<_Key, std::pair, 29761: _Alloc, __detail::_Select1st, 29761: _Pred, _Hash, 29761: __detail::_Mod_range_hashing, 29761: __detail::_Default_ranged_hash, 29761: __detail::_Prime_rehash_policy, _Tr>; 29761: 29761: template 29761: class unordered_multimap; 29761: # 105 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template, 29761: typename _Pred = equal_to<_Key>, 29761: typename _Alloc = allocator>> 29761: class unordered_map 29761: { 29761: typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 29761: _Hashtable _M_h; 29761: 29761: public: 29761: 29761: 29761: 29761: typedef typename _Hashtable::key_type key_type; 29761: typedef typename _Hashtable::value_type value_type; 29761: typedef typename _Hashtable::mapped_type mapped_type; 29761: typedef typename _Hashtable::hasher hasher; 29761: typedef typename _Hashtable::key_equal key_equal; 29761: typedef typename _Hashtable::allocator_type allocator_type; 29761: 29761: 29761: 29761: 29761: typedef typename _Hashtable::pointer pointer; 29761: typedef typename _Hashtable::const_pointer const_pointer; 29761: typedef typename _Hashtable::reference reference; 29761: typedef typename _Hashtable::const_reference const_reference; 29761: typedef typename _Hashtable::iterator iterator; 29761: typedef typename _Hashtable::const_iterator const_iterator; 29761: typedef typename _Hashtable::local_iterator local_iterator; 29761: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29761: typedef typename _Hashtable::size_type size_type; 29761: typedef typename _Hashtable::difference_type difference_type; 29761: 29761: 29761: 29761: using node_type = typename _Hashtable::node_type; 29761: using insert_return_type = typename _Hashtable::insert_return_type; 29761: 29761: 29761: 29761: 29761: 29761: unordered_map() = default; 29761: # 157 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: explicit 29761: unordered_map(size_type __n, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__n, __hf, __eql, __a) 29761: { } 29761: # 178 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: unordered_map(_InputIterator __first, _InputIterator __last, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__first, __last, __n, __hf, __eql, __a) 29761: { } 29761: 29761: 29761: unordered_map(const unordered_map&) = default; 29761: 29761: 29761: unordered_map(unordered_map&&) = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: unordered_map(const allocator_type& __a) 29761: : _M_h(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_map(const unordered_map& __umap, 29761: const allocator_type& __a) 29761: : _M_h(__umap._M_h, __a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_map(unordered_map&& __umap, 29761: const allocator_type& __a) 29761: noexcept( noexcept(_Hashtable(std::move(__umap._M_h), __a)) ) 29761: : _M_h(std::move(__umap._M_h), __a) 29761: { } 29761: # 234 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: unordered_map(initializer_list __l, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__l, __n, __hf, __eql, __a) 29761: { } 29761: 29761: unordered_map(size_type __n, const allocator_type& __a) 29761: : unordered_map(__n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_map(size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_map(__n, __hf, key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_map(_InputIterator __first, _InputIterator __last, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_map(__first, __last, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_map(_InputIterator __first, _InputIterator __last, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_map(__first, __last, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: unordered_map(initializer_list __l, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_map(__l, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_map(initializer_list __l, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_map(__l, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: 29761: unordered_map& 29761: operator=(const unordered_map&) = default; 29761: 29761: 29761: unordered_map& 29761: operator=(unordered_map&&) = default; 29761: # 296 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: unordered_map& 29761: operator=(initializer_list __l) 29761: { 29761: _M_h = __l; 29761: return *this; 29761: } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _M_h.get_allocator(); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_h.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_h.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_h.max_size(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_h.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_h.end(); } 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_h.end(); } 29761: # 393 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: std::pair 29761: emplace(_Args&&... __args) 29761: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29761: # 424 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_h.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __key) 29761: { return _M_h.extract(__key); } 29761: 29761: 29761: insert_return_type 29761: insert(node_type&& __nh) 29761: { return _M_h._M_reinsert_node(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator, node_type&& __nh) 29761: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 29761: # 477 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: pair 29761: try_emplace(const key_type& __k, _Args&&... __args) 29761: { 29761: return _M_h.try_emplace(cend(), __k, std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: template 29761: pair 29761: try_emplace(key_type&& __k, _Args&&... __args) 29761: { 29761: return _M_h.try_emplace(cend(), std::move(__k), 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 521 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: iterator 29761: try_emplace(const_iterator __hint, const key_type& __k, 29761: _Args&&... __args) 29761: { 29761: return _M_h.try_emplace(__hint, __k, 29761: std::forward<_Args>(__args)...).first; 29761: } 29761: 29761: 29761: template 29761: iterator 29761: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 29761: { 29761: return _M_h.try_emplace(__hint, std::move(__k), 29761: std::forward<_Args>(__args)...).first; 29761: } 29761: # 558 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: std::pair 29761: insert(const value_type& __x) 29761: { return _M_h.insert(__x); } 29761: 29761: 29761: 29761: std::pair 29761: insert(value_type&& __x) 29761: { return _M_h.insert(std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, 29761: pair> 29761: insert(_Pair&& __x) 29761: { return _M_h.emplace(std::forward<_Pair>(__x)); } 29761: # 597 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: insert(const_iterator __hint, const value_type& __x) 29761: { return _M_h.insert(__hint, __x); } 29761: 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, value_type&& __x) 29761: { return _M_h.insert(__hint, std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(const_iterator __hint, _Pair&& __x) 29761: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 29761: # 622 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_h.insert(__first, __last); } 29761: # 634 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { _M_h.insert(__l); } 29761: # 660 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: pair 29761: insert_or_assign(const key_type& __k, _Obj&& __obj) 29761: { 29761: auto __ret = _M_h.try_emplace(cend(), __k, 29761: std::forward<_Obj>(__obj)); 29761: if (!__ret.second) 29761: __ret.first->second = std::forward<_Obj>(__obj); 29761: return __ret; 29761: } 29761: 29761: 29761: template 29761: pair 29761: insert_or_assign(key_type&& __k, _Obj&& __obj) 29761: { 29761: auto __ret = _M_h.try_emplace(cend(), std::move(__k), 29761: std::forward<_Obj>(__obj)); 29761: if (!__ret.second) 29761: __ret.first->second = std::forward<_Obj>(__obj); 29761: return __ret; 29761: } 29761: # 709 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: iterator 29761: insert_or_assign(const_iterator __hint, const key_type& __k, 29761: _Obj&& __obj) 29761: { 29761: auto __ret = _M_h.try_emplace(__hint, __k, std::forward<_Obj>(__obj)); 29761: if (!__ret.second) 29761: __ret.first->second = std::forward<_Obj>(__obj); 29761: return __ret.first; 29761: } 29761: 29761: 29761: template 29761: iterator 29761: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 29761: { 29761: auto __ret = _M_h.try_emplace(__hint, std::move(__k), 29761: std::forward<_Obj>(__obj)); 29761: if (!__ret.second) 29761: __ret.first->second = std::forward<_Obj>(__obj); 29761: return __ret.first; 29761: } 29761: # 747 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_h.erase(__position); } 29761: 29761: 29761: iterator 29761: erase(iterator __position) 29761: { return _M_h.erase(__position); } 29761: # 769 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_h.erase(__x); } 29761: # 787 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_h.erase(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_h.clear(); } 29761: # 811 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: swap(unordered_map& __x) 29761: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29761: { _M_h.swap(__x._M_h); } 29761: 29761: 29761: template 29761: friend class std::_Hash_merge_helper; 29761: 29761: template 29761: void 29761: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Hash_merge_helper; 29761: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Hash_merge_helper; 29761: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: hasher 29761: hash_function() const 29761: { return _M_h.hash_function(); } 29761: 29761: 29761: 29761: key_equal 29761: key_eq() const 29761: { return _M_h.key_eq(); } 29761: # 875 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_h.find(__x); } 29761: # 886 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_h.find(__x); } 29761: # 908 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_h.count(__x); } 29761: # 948 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_h.equal_range(__x); } 29761: # 960 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_h.equal_range(__x); } 29761: # 986 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: mapped_type& 29761: operator[](const key_type& __k) 29761: { return _M_h[__k]; } 29761: 29761: mapped_type& 29761: operator[](key_type&& __k) 29761: { return _M_h[std::move(__k)]; } 29761: # 1003 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: mapped_type& 29761: at(const key_type& __k) 29761: { return _M_h.at(__k); } 29761: 29761: const mapped_type& 29761: at(const key_type& __k) const 29761: { return _M_h.at(__k); } 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_count() const noexcept 29761: { return _M_h.bucket_count(); } 29761: 29761: 29761: size_type 29761: max_bucket_count() const noexcept 29761: { return _M_h.max_bucket_count(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_size(size_type __n) const 29761: { return _M_h.bucket_size(__n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket(const key_type& __key) const 29761: { return _M_h.bucket(__key); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: local_iterator 29761: begin(size_type __n) 29761: { return _M_h.begin(__n); } 29761: # 1059 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_local_iterator 29761: begin(size_type __n) const 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: cbegin(size_type __n) const 29761: { return _M_h.cbegin(__n); } 29761: # 1074 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: local_iterator 29761: end(size_type __n) 29761: { return _M_h.end(__n); } 29761: # 1085 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_local_iterator 29761: end(size_type __n) const 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: cend(size_type __n) const 29761: { return _M_h.cend(__n); } 29761: 29761: 29761: 29761: 29761: 29761: float 29761: load_factor() const noexcept 29761: { return _M_h.load_factor(); } 29761: 29761: 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_h.max_load_factor(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: max_load_factor(float __z) 29761: { _M_h.max_load_factor(__z); } 29761: # 1122 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: rehash(size_type __n) 29761: { _M_h.rehash(__n); } 29761: # 1133 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: reserve(size_type __n) 29761: { _M_h.reserve(__n); } 29761: 29761: template 29761: friend bool 29761: operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, 29761: const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); 29761: }; 29761: 29761: 29761: 29761: template>, 29761: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 29761: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(_InputIterator, _InputIterator, 29761: typename unordered_map::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29761: -> unordered_map<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, 29761: _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename _Pred = equal_to<_Key>, 29761: typename _Allocator = allocator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(initializer_list>, 29761: typename unordered_map::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29761: -> unordered_map<_Key, _Tp, _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(_InputIterator, _InputIterator, 29761: typename unordered_map::size_type, _Allocator) 29761: -> unordered_map<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, 29761: hash<__iter_key_t<_InputIterator>>, 29761: equal_to<__iter_key_t<_InputIterator>>, 29761: _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(_InputIterator, _InputIterator, _Allocator) 29761: -> unordered_map<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, 29761: hash<__iter_key_t<_InputIterator>>, 29761: equal_to<__iter_key_t<_InputIterator>>, 29761: _Allocator>; 29761: 29761: template, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(_InputIterator, _InputIterator, 29761: typename unordered_map::size_type, 29761: _Hash, _Allocator) 29761: -> unordered_map<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, _Hash, 29761: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template> 29761: unordered_map(initializer_list>, 29761: typename unordered_map::size_type, 29761: _Allocator) 29761: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29761: 29761: template> 29761: unordered_map(initializer_list>, _Allocator) 29761: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(initializer_list>, 29761: typename unordered_map::size_type, 29761: _Hash, _Allocator) 29761: -> unordered_map<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 29761: # 1251 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template, 29761: typename _Pred = equal_to<_Key>, 29761: typename _Alloc = allocator>> 29761: class unordered_multimap 29761: { 29761: typedef __ummap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 29761: _Hashtable _M_h; 29761: 29761: public: 29761: 29761: 29761: 29761: typedef typename _Hashtable::key_type key_type; 29761: typedef typename _Hashtable::value_type value_type; 29761: typedef typename _Hashtable::mapped_type mapped_type; 29761: typedef typename _Hashtable::hasher hasher; 29761: typedef typename _Hashtable::key_equal key_equal; 29761: typedef typename _Hashtable::allocator_type allocator_type; 29761: 29761: 29761: 29761: 29761: typedef typename _Hashtable::pointer pointer; 29761: typedef typename _Hashtable::const_pointer const_pointer; 29761: typedef typename _Hashtable::reference reference; 29761: typedef typename _Hashtable::const_reference const_reference; 29761: typedef typename _Hashtable::iterator iterator; 29761: typedef typename _Hashtable::const_iterator const_iterator; 29761: typedef typename _Hashtable::local_iterator local_iterator; 29761: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29761: typedef typename _Hashtable::size_type size_type; 29761: typedef typename _Hashtable::difference_type difference_type; 29761: 29761: 29761: 29761: using node_type = typename _Hashtable::node_type; 29761: 29761: 29761: 29761: 29761: 29761: unordered_multimap() = default; 29761: # 1302 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: explicit 29761: unordered_multimap(size_type __n, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__n, __hf, __eql, __a) 29761: { } 29761: # 1323 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: unordered_multimap(_InputIterator __first, _InputIterator __last, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__first, __last, __n, __hf, __eql, __a) 29761: { } 29761: 29761: 29761: unordered_multimap(const unordered_multimap&) = default; 29761: 29761: 29761: unordered_multimap(unordered_multimap&&) = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: unordered_multimap(const allocator_type& __a) 29761: : _M_h(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_multimap(const unordered_multimap& __ummap, 29761: const allocator_type& __a) 29761: : _M_h(__ummap._M_h, __a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_multimap(unordered_multimap&& __ummap, 29761: const allocator_type& __a) 29761: noexcept( noexcept(_Hashtable(std::move(__ummap._M_h), __a)) ) 29761: : _M_h(std::move(__ummap._M_h), __a) 29761: { } 29761: # 1379 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: unordered_multimap(initializer_list __l, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__l, __n, __hf, __eql, __a) 29761: { } 29761: 29761: unordered_multimap(size_type __n, const allocator_type& __a) 29761: : unordered_multimap(__n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_multimap(size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multimap(__n, __hf, key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_multimap(_InputIterator __first, _InputIterator __last, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_multimap(__first, __last, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_multimap(_InputIterator __first, _InputIterator __last, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multimap(__first, __last, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: unordered_multimap(initializer_list __l, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_multimap(__l, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_multimap(initializer_list __l, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multimap(__l, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: 29761: unordered_multimap& 29761: operator=(const unordered_multimap&) = default; 29761: 29761: 29761: unordered_multimap& 29761: operator=(unordered_multimap&&) = default; 29761: # 1441 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: unordered_multimap& 29761: operator=(initializer_list __l) 29761: { 29761: _M_h = __l; 29761: return *this; 29761: } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _M_h.get_allocator(); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_h.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_h.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_h.max_size(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_h.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_h.end(); } 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_h.end(); } 29761: # 1533 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: iterator 29761: emplace(_Args&&... __args) 29761: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29761: # 1560 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29761: # 1575 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: insert(const value_type& __x) 29761: { return _M_h.insert(__x); } 29761: 29761: iterator 29761: insert(value_type&& __x) 29761: { return _M_h.insert(std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(_Pair&& __x) 29761: { return _M_h.emplace(std::forward<_Pair>(__x)); } 29761: # 1609 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: insert(const_iterator __hint, const value_type& __x) 29761: { return _M_h.insert(__hint, __x); } 29761: 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, value_type&& __x) 29761: { return _M_h.insert(__hint, std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(const_iterator __hint, _Pair&& __x) 29761: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 29761: # 1634 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_h.insert(__first, __last); } 29761: # 1647 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { _M_h.insert(__l); } 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_h.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __key) 29761: { return _M_h.extract(__key); } 29761: 29761: 29761: iterator 29761: insert(node_type&& __nh) 29761: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 29761: # 1690 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_h.erase(__position); } 29761: 29761: 29761: iterator 29761: erase(iterator __position) 29761: { return _M_h.erase(__position); } 29761: # 1711 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_h.erase(__x); } 29761: # 1730 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_h.erase(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_h.clear(); } 29761: # 1754 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: swap(unordered_multimap& __x) 29761: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29761: { _M_h.swap(__x._M_h); } 29761: 29761: 29761: template 29761: friend class std::_Hash_merge_helper; 29761: 29761: template 29761: void 29761: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper 29761: = _Hash_merge_helper; 29761: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper 29761: = _Hash_merge_helper; 29761: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: hasher 29761: hash_function() const 29761: { return _M_h.hash_function(); } 29761: 29761: 29761: 29761: key_equal 29761: key_eq() const 29761: { return _M_h.key_eq(); } 29761: # 1820 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_h.find(__x); } 29761: # 1831 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_h.find(__x); } 29761: # 1849 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_h.count(__x); } 29761: # 1887 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_h.equal_range(__x); } 29761: # 1899 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_h.equal_range(__x); } 29761: # 1915 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: size_type 29761: bucket_count() const noexcept 29761: { return _M_h.bucket_count(); } 29761: 29761: 29761: size_type 29761: max_bucket_count() const noexcept 29761: { return _M_h.max_bucket_count(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_size(size_type __n) const 29761: { return _M_h.bucket_size(__n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket(const key_type& __key) const 29761: { return _M_h.bucket(__key); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: local_iterator 29761: begin(size_type __n) 29761: { return _M_h.begin(__n); } 29761: # 1959 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_local_iterator 29761: begin(size_type __n) const 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: cbegin(size_type __n) const 29761: { return _M_h.cbegin(__n); } 29761: # 1974 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: local_iterator 29761: end(size_type __n) 29761: { return _M_h.end(__n); } 29761: # 1985 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_local_iterator 29761: end(size_type __n) const 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: cend(size_type __n) const 29761: { return _M_h.cend(__n); } 29761: 29761: 29761: 29761: 29761: 29761: float 29761: load_factor() const noexcept 29761: { return _M_h.load_factor(); } 29761: 29761: 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_h.max_load_factor(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: max_load_factor(float __z) 29761: { _M_h.max_load_factor(__z); } 29761: # 2022 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: rehash(size_type __n) 29761: { _M_h.rehash(__n); } 29761: # 2033 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: reserve(size_type __n) 29761: { _M_h.reserve(__n); } 29761: 29761: template 29761: friend bool 29761: operator==(const unordered_multimap<_Key1, _Tp1, 29761: _Hash1, _Pred1, _Alloc1>&, 29761: const unordered_multimap<_Key1, _Tp1, 29761: _Hash1, _Pred1, _Alloc1>&); 29761: }; 29761: 29761: 29761: 29761: template>, 29761: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 29761: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(_InputIterator, _InputIterator, 29761: unordered_multimap::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), 29761: _Allocator = _Allocator()) 29761: -> unordered_multimap<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, _Hash, _Pred, 29761: _Allocator>; 29761: 29761: template, 29761: typename _Pred = equal_to<_Key>, 29761: typename _Allocator = allocator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(initializer_list>, 29761: unordered_multimap::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), 29761: _Allocator = _Allocator()) 29761: -> unordered_multimap<_Key, _Tp, _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(_InputIterator, _InputIterator, 29761: unordered_multimap::size_type, _Allocator) 29761: -> unordered_multimap<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, 29761: hash<__iter_key_t<_InputIterator>>, 29761: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(_InputIterator, _InputIterator, _Allocator) 29761: -> unordered_multimap<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, 29761: hash<__iter_key_t<_InputIterator>>, 29761: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(_InputIterator, _InputIterator, 29761: unordered_multimap::size_type, _Hash, 29761: _Allocator) 29761: -> unordered_multimap<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, _Hash, 29761: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template> 29761: unordered_multimap(initializer_list>, 29761: unordered_multimap::size_type, 29761: _Allocator) 29761: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29761: 29761: template> 29761: unordered_multimap(initializer_list>, _Allocator) 29761: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(initializer_list>, 29761: unordered_multimap::size_type, 29761: _Hash, _Allocator) 29761: -> unordered_multimap<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: template 29761: inline void 29761: swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: template 29761: inline bool 29761: operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: { return __x._M_h._M_equal(__y._M_h); } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: { return __x._M_h._M_equal(__y._M_h); } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hash_merge_helper< 29761: std::unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>, 29761: _Hash2, _Eq2> 29761: { 29761: private: 29761: template 29761: using unordered_map = std::unordered_map<_Tp...>; 29761: template 29761: using unordered_multimap = std::unordered_multimap<_Tp...>; 29761: 29761: friend unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29761: { return __map._M_h; } 29761: 29761: static auto& 29761: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29761: { return __map._M_h; } 29761: }; 29761: 29761: 29761: template 29761: struct _Hash_merge_helper< 29761: std::unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>, 29761: _Hash2, _Eq2> 29761: { 29761: private: 29761: template 29761: using unordered_map = std::unordered_map<_Tp...>; 29761: template 29761: using unordered_multimap = std::unordered_multimap<_Tp...>; 29761: 29761: friend unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29761: { return __map._M_h; } 29761: 29761: static auto& 29761: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29761: { return __map._M_h; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 42 "/usr/include/c++/14/unordered_map" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/erase_if.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/erase_if.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/erase_if.h" 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std 29761: { 29761: 29761: 29761: namespace __detail 29761: { 29761: template 29761: typename _Container::size_type 29761: __erase_nodes_if(_Container& __cont, _UnsafeContainer& __ucont, 29761: _Predicate __pred) 29761: { 29761: typename _Container::size_type __num = 0; 29761: for (auto __iter = __ucont.begin(), __last = __ucont.end(); 29761: __iter != __last;) 29761: { 29761: if (__pred(*__iter)) 29761: { 29761: __iter = __cont.erase(__iter); 29761: ++__num; 29761: } 29761: else 29761: ++__iter; 29761: } 29761: return __num; 29761: } 29761: } 29761: 29761: 29761: } 29761: # 44 "/usr/include/c++/14/unordered_map" 2 3 29761: # 56 "/usr/include/c++/14/unordered_map" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 57 "/usr/include/c++/14/unordered_map" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template, 29761: typename _Pred = std::equal_to<_Key>> 29761: using unordered_map 29761: = std::unordered_map<_Key, _Tp, _Hash, _Pred, 29761: polymorphic_allocator>>; 29761: template, 29761: typename _Pred = std::equal_to<_Key>> 29761: using unordered_multimap 29761: = std::unordered_multimap<_Key, _Tp, _Hash, _Pred, 29761: polymorphic_allocator>>; 29761: } 29761: 29761: } 29761: # 64 "/usr/include/c++/14/functional" 2 3 29761: # 1 "/usr/include/c++/14/vector" 1 3 29761: # 58 "/usr/include/c++/14/vector" 3 29761: 29761: # 59 "/usr/include/c++/14/vector" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_vector.h" 1 3 29761: # 77 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: struct _Vector_base 29761: { 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Tp>::other _Tp_alloc_type; 29761: typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer 29761: pointer; 29761: 29761: struct _Vector_impl_data 29761: { 29761: pointer _M_start; 29761: pointer _M_finish; 29761: pointer _M_end_of_storage; 29761: 29761: 29761: _Vector_impl_data() noexcept 29761: : _M_start(), _M_finish(), _M_end_of_storage() 29761: { } 29761: 29761: 29761: 29761: _Vector_impl_data(_Vector_impl_data&& __x) noexcept 29761: : _M_start(__x._M_start), _M_finish(__x._M_finish), 29761: _M_end_of_storage(__x._M_end_of_storage) 29761: { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } 29761: 29761: 29761: 29761: void 29761: _M_copy_data(_Vector_impl_data const& __x) noexcept 29761: { 29761: _M_start = __x._M_start; 29761: _M_finish = __x._M_finish; 29761: _M_end_of_storage = __x._M_end_of_storage; 29761: } 29761: 29761: 29761: void 29761: _M_swap_data(_Vector_impl_data& __x) noexcept 29761: { 29761: 29761: 29761: _Vector_impl_data __tmp; 29761: __tmp._M_copy_data(*this); 29761: _M_copy_data(__x); 29761: __x._M_copy_data(__tmp); 29761: } 29761: }; 29761: 29761: struct _Vector_impl 29761: : public _Tp_alloc_type, public _Vector_impl_data 29761: { 29761: 29761: _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 29761: 29761: 29761: 29761: 29761: : _Tp_alloc_type() 29761: { } 29761: 29761: 29761: _Vector_impl(_Tp_alloc_type const& __a) noexcept 29761: : _Tp_alloc_type(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: _Vector_impl(_Vector_impl&& __x) noexcept 29761: : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) 29761: { } 29761: 29761: 29761: _Vector_impl(_Tp_alloc_type&& __a) noexcept 29761: : _Tp_alloc_type(std::move(__a)) 29761: { } 29761: 29761: 29761: _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept 29761: : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) 29761: { } 29761: # 293 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: }; 29761: 29761: public: 29761: typedef _Alloc allocator_type; 29761: 29761: 29761: _Tp_alloc_type& 29761: _M_get_Tp_allocator() noexcept 29761: { return this->_M_impl; } 29761: 29761: 29761: const _Tp_alloc_type& 29761: _M_get_Tp_allocator() const noexcept 29761: { return this->_M_impl; } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_get_Tp_allocator()); } 29761: 29761: 29761: _Vector_base() = default; 29761: 29761: 29761: 29761: 29761: 29761: _Vector_base(const allocator_type& __a) noexcept 29761: : _M_impl(__a) { } 29761: 29761: 29761: 29761: 29761: _Vector_base(size_t __n) 29761: : _M_impl() 29761: { _M_create_storage(__n); } 29761: 29761: 29761: 29761: _Vector_base(size_t __n, const allocator_type& __a) 29761: : _M_impl(__a) 29761: { _M_create_storage(__n); } 29761: 29761: 29761: _Vector_base(_Vector_base&&) = default; 29761: 29761: 29761: 29761: 29761: _Vector_base(_Tp_alloc_type&& __a) noexcept 29761: : _M_impl(std::move(__a)) { } 29761: 29761: 29761: _Vector_base(_Vector_base&& __x, const allocator_type& __a) 29761: : _M_impl(__a) 29761: { 29761: if (__x.get_allocator() == __a) 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: else 29761: { 29761: size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; 29761: _M_create_storage(__n); 29761: } 29761: } 29761: 29761: 29761: 29761: _Vector_base(const allocator_type& __a, _Vector_base&& __x) 29761: : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) 29761: { } 29761: 29761: 29761: 29761: ~_Vector_base() noexcept 29761: { 29761: _M_deallocate(_M_impl._M_start, 29761: _M_impl._M_end_of_storage - _M_impl._M_start); 29761: } 29761: 29761: public: 29761: _Vector_impl _M_impl; 29761: 29761: 29761: pointer 29761: _M_allocate(size_t __n) 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 29761: return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); 29761: } 29761: 29761: 29761: void 29761: _M_deallocate(pointer __p, size_t __n) 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 29761: if (__p) 29761: _Tr::deallocate(_M_impl, __p, __n); 29761: } 29761: 29761: protected: 29761: 29761: 29761: void 29761: _M_create_storage(size_t __n) 29761: { 29761: this->_M_impl._M_start = this->_M_allocate(__n); 29761: this->_M_impl._M_finish = this->_M_impl._M_start; 29761: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29761: } 29761: }; 29761: # 427 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template > 29761: class vector : protected _Vector_base<_Tp, _Alloc> 29761: { 29761: # 440 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: static_assert(is_same::type, _Tp>::value, 29761: "std::vector must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _Vector_base<_Tp, _Alloc> _Base; 29761: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 29761: 29761: public: 29761: typedef _Tp value_type; 29761: typedef typename _Base::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: typedef __gnu_cxx::__normal_iterator iterator; 29761: typedef __gnu_cxx::__normal_iterator 29761: const_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Alloc allocator_type; 29761: 29761: private: 29761: 29761: static constexpr bool 29761: _S_nothrow_relocate(true_type) 29761: { 29761: return noexcept(std::__relocate_a(std::declval(), 29761: std::declval(), 29761: std::declval(), 29761: std::declval<_Tp_alloc_type&>())); 29761: } 29761: 29761: static constexpr bool 29761: _S_nothrow_relocate(false_type) 29761: { return false; } 29761: 29761: static constexpr bool 29761: _S_use_relocate() 29761: { 29761: 29761: 29761: 29761: return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); 29761: } 29761: 29761: static pointer 29761: _S_do_relocate(pointer __first, pointer __last, pointer __result, 29761: _Tp_alloc_type& __alloc, true_type) noexcept 29761: { 29761: return std::__relocate_a(__first, __last, __result, __alloc); 29761: } 29761: 29761: static pointer 29761: _S_do_relocate(pointer, pointer, pointer __result, 29761: _Tp_alloc_type&, false_type) noexcept 29761: { return __result; } 29761: 29761: static pointer 29761: _S_relocate(pointer __first, pointer __last, pointer __result, 29761: _Tp_alloc_type& __alloc) noexcept 29761: { 29761: 29761: 29761: return std::__relocate_a(__first, __last, __result, __alloc); 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: protected: 29761: using _Base::_M_allocate; 29761: using _Base::_M_deallocate; 29761: using _Base::_M_impl; 29761: using _Base::_M_get_Tp_allocator; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: vector() = default; 29761: # 540 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: explicit 29761: 29761: vector(const allocator_type& __a) noexcept 29761: : _Base(__a) { } 29761: # 554 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: explicit 29761: 29761: vector(size_type __n, const allocator_type& __a = allocator_type()) 29761: : _Base(_S_check_init_len(__n, __a), __a) 29761: { _M_default_initialize(__n); } 29761: # 568 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector(size_type __n, const value_type& __value, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(_S_check_init_len(__n, __a), __a) 29761: { _M_fill_initialize(__n, __value); } 29761: # 600 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector(const vector& __x) 29761: : _Base(__x.size(), 29761: _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) 29761: { 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_copy_a(__x.begin(), __x.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); 29761: } 29761: # 620 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: vector(vector&&) noexcept = default; 29761: 29761: 29761: 29761: vector(const vector& __x, const __type_identity_t& __a) 29761: : _Base(__x.size(), __a) 29761: { 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_copy_a(__x.begin(), __x.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); 29761: } 29761: 29761: private: 29761: 29761: vector(vector&& __rv, const allocator_type& __m, true_type) noexcept 29761: : _Base(__m, std::move(__rv)) 29761: { } 29761: 29761: 29761: vector(vector&& __rv, const allocator_type& __m, false_type) 29761: : _Base(__m) 29761: { 29761: if (__rv.get_allocator() == __m) 29761: this->_M_impl._M_swap_data(__rv._M_impl); 29761: else if (!__rv.empty()) 29761: { 29761: this->_M_create_storage(__rv.size()); 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_move_a(__rv.begin(), __rv.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); 29761: __rv.clear(); 29761: } 29761: } 29761: 29761: public: 29761: 29761: 29761: vector(vector&& __rv, const __type_identity_t& __m) 29761: noexcept( noexcept( 29761: vector(std::declval(), std::declval(), 29761: std::declval())) ) 29761: : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) 29761: { } 29761: # 677 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector(initializer_list __l, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_range_initialize(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: } 29761: # 704 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template> 29761: 29761: vector(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_range_initialize(__first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: # 732 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: ~vector() noexcept 29761: { 29761: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: ; 29761: } 29761: # 749 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector& 29761: operator=(const vector& __x); 29761: # 764 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector& 29761: operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) 29761: { 29761: constexpr bool __move_storage = 29761: _Alloc_traits::_S_propagate_on_move_assign() 29761: || _Alloc_traits::_S_always_equal(); 29761: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 29761: return *this; 29761: } 29761: # 786 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector& 29761: operator=(initializer_list __l) 29761: { 29761: this->_M_assign_aux(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: return *this; 29761: } 29761: # 806 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: assign(size_type __n, const value_type& __val) 29761: { _M_fill_assign(__n, __val); } 29761: # 824 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template> 29761: 29761: void 29761: assign(_InputIterator __first, _InputIterator __last) 29761: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29761: # 853 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: assign(initializer_list __l) 29761: { 29761: this->_M_assign_aux(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: } 29761: 29761: 29761: 29761: using _Base::get_allocator; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: begin() noexcept 29761: { return iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: end() noexcept 29761: { return iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: end() const noexcept 29761: { return const_iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cend() const noexcept 29761: { return const_iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: size() const noexcept 29761: { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: max_size() const noexcept 29761: { return _S_max_size(_M_get_Tp_allocator()); } 29761: # 1011 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: resize(size_type __new_size) 29761: { 29761: if (__new_size > size()) 29761: _M_default_append(__new_size - size()); 29761: else if (__new_size < size()) 29761: _M_erase_at_end(this->_M_impl._M_start + __new_size); 29761: } 29761: # 1032 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: resize(size_type __new_size, const value_type& __x) 29761: { 29761: if (__new_size > size()) 29761: _M_fill_insert(end(), __new_size - size(), __x); 29761: else if (__new_size < size()) 29761: _M_erase_at_end(this->_M_impl._M_start + __new_size); 29761: } 29761: # 1066 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: shrink_to_fit() 29761: { _M_shrink_to_fit(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: capacity() const noexcept 29761: { 29761: return size_type(this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_start); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: bool 29761: empty() const noexcept 29761: { return begin() == end(); } 29761: # 1110 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: reserve(size_type __n); 29761: # 1126 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: operator[](size_type __n) noexcept 29761: { 29761: ; 29761: return *(this->_M_impl._M_start + __n); 29761: } 29761: # 1145 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: [[__nodiscard__]] 29761: const_reference 29761: operator[](size_type __n) const noexcept 29761: { 29761: ; 29761: return *(this->_M_impl._M_start + __n); 29761: } 29761: 29761: protected: 29761: 29761: 29761: void 29761: _M_range_check(size_type __n) const 29761: { 29761: if (__n >= this->size()) 29761: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29761: 29761: , 29761: __n, this->size()); 29761: } 29761: 29761: public: 29761: # 1178 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: at(size_type __n) 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: # 1197 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: [[__nodiscard__]] 29761: const_reference 29761: at(size_type __n) const 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: front() noexcept 29761: { 29761: ; 29761: return *begin(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: front() const noexcept 29761: { 29761: ; 29761: return *begin(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: back() noexcept 29761: { 29761: ; 29761: return *(end() - 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: back() const noexcept 29761: { 29761: ; 29761: return *(end() - 1); 29761: } 29761: # 1260 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: [[__nodiscard__]] 29761: _Tp* 29761: data() noexcept 29761: { return _M_data_ptr(this->_M_impl._M_start); } 29761: 29761: [[__nodiscard__]] 29761: const _Tp* 29761: data() const noexcept 29761: { return _M_data_ptr(this->_M_impl._M_start); } 29761: # 1281 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: push_back(const value_type& __x) 29761: { 29761: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: __x); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: } 29761: else 29761: _M_realloc_append(__x); 29761: } 29761: 29761: 29761: 29761: void 29761: push_back(value_type&& __x) 29761: { emplace_back(std::move(__x)); } 29761: 29761: template 29761: 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_back(_Args&&... __args); 29761: # 1322 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: pop_back() noexcept 29761: { 29761: ; 29761: --this->_M_impl._M_finish; 29761: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 29761: ; 29761: } 29761: # 1345 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template 29761: 29761: iterator 29761: emplace(const_iterator __position, _Args&&... __args) 29761: { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } 29761: # 1362 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: insert(const_iterator __position, const value_type& __x); 29761: # 1393 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return _M_insert_rval(__position, std::move(__x)); } 29761: # 1411 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: insert(const_iterator __position, initializer_list __l) 29761: { 29761: auto __offset = __position - cbegin(); 29761: _M_range_insert(begin() + __offset, __l.begin(), __l.end(), 29761: std::random_access_iterator_tag()); 29761: return begin() + __offset; 29761: } 29761: # 1437 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: insert(const_iterator __position, size_type __n, const value_type& __x) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_fill_insert(begin() + __offset, __n, __x); 29761: return begin() + __offset; 29761: } 29761: # 1480 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template> 29761: 29761: iterator 29761: insert(const_iterator __position, _InputIterator __first, 29761: _InputIterator __last) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_range_insert(begin() + __offset, __first, __last, 29761: std::__iterator_category(__first)); 29761: return begin() + __offset; 29761: } 29761: # 1533 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: 29761: erase(const_iterator __position) 29761: { return _M_erase(begin() + (__position - cbegin())); } 29761: # 1561 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: 29761: erase(const_iterator __first, const_iterator __last) 29761: { 29761: const auto __beg = begin(); 29761: const auto __cbeg = cbegin(); 29761: return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); 29761: } 29761: # 1586 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: swap(vector& __x) noexcept 29761: { 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) std::__glibcxx_assert_fail(); } while (false) 29761: ; 29761: 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 29761: __x._M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_erase_at_end(this->_M_impl._M_start); } 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: pointer 29761: _M_allocate_and_copy(size_type __n, 29761: _ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: pointer __result = this->_M_allocate(__n); 29761: try 29761: { 29761: std::__uninitialized_copy_a(__first, __last, __result, 29761: _M_get_Tp_allocator()); 29761: return __result; 29761: } 29761: catch(...) 29761: { 29761: _M_deallocate(__result, __n); 29761: throw; 29761: } 29761: } 29761: # 1666 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template 29761: 29761: void 29761: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: try { 29761: for (; __first != __last; ++__first) 29761: 29761: emplace_back(*__first); 29761: 29761: 29761: 29761: } catch(...) { 29761: clear(); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: void 29761: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __n = std::distance(__first, __last); 29761: this->_M_impl._M_start 29761: = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); 29761: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_copy_a(__first, __last, 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: _M_fill_initialize(size_type __n, const value_type& __value) 29761: { 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, 29761: _M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: _M_default_initialize(size_type __n) 29761: { 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, 29761: _M_get_Tp_allocator()); 29761: } 29761: # 1732 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template 29761: 29761: void 29761: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 29761: { _M_fill_assign(__n, __val); } 29761: 29761: 29761: template 29761: 29761: void 29761: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 29761: __false_type) 29761: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29761: 29761: 29761: template 29761: 29761: void 29761: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag); 29761: 29761: 29761: template 29761: 29761: void 29761: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag); 29761: 29761: 29761: 29761: 29761: void 29761: _M_fill_assign(size_type __n, const value_type& __val); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, 29761: __true_type) 29761: { _M_fill_insert(__pos, __n, __val); } 29761: 29761: 29761: template 29761: 29761: void 29761: _M_insert_dispatch(iterator __pos, _InputIterator __first, 29761: _InputIterator __last, __false_type) 29761: { 29761: _M_range_insert(__pos, __first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: 29761: template 29761: 29761: void 29761: _M_range_insert(iterator __pos, _InputIterator __first, 29761: _InputIterator __last, std::input_iterator_tag); 29761: 29761: 29761: template 29761: 29761: void 29761: _M_range_insert(iterator __pos, _ForwardIterator __first, 29761: _ForwardIterator __last, std::forward_iterator_tag); 29761: 29761: 29761: 29761: 29761: void 29761: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 29761: 29761: 29761: 29761: 29761: void 29761: _M_default_append(size_type __n); 29761: 29761: 29761: bool 29761: _M_shrink_to_fit(); 29761: # 1834 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: struct _Temporary_value 29761: { 29761: template 29761: explicit 29761: _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) 29761: { 29761: _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: ~_Temporary_value() 29761: { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } 29761: 29761: value_type& 29761: _M_val() noexcept { return _M_storage._M_val; } 29761: 29761: private: 29761: _Tp* 29761: _M_ptr() noexcept { return std::__addressof(_M_storage._M_val); } 29761: 29761: union _Storage 29761: { 29761: constexpr _Storage() : _M_byte() { } 29761: ~_Storage() { } 29761: _Storage& operator=(const _Storage&) = delete; 29761: unsigned char _M_byte; 29761: _Tp _M_val; 29761: }; 29761: 29761: vector* _M_this; 29761: _Storage _M_storage; 29761: }; 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: _M_insert_aux(iterator __position, _Arg&& __arg); 29761: 29761: template 29761: 29761: void 29761: _M_realloc_insert(iterator __position, _Args&&... __args); 29761: 29761: template 29761: 29761: void 29761: _M_realloc_append(_Args&&... __args); 29761: 29761: 29761: 29761: iterator 29761: _M_insert_rval(const_iterator __position, value_type&& __v); 29761: 29761: 29761: template 29761: 29761: iterator 29761: _M_emplace_aux(const_iterator __position, _Args&&... __args); 29761: 29761: 29761: 29761: iterator 29761: _M_emplace_aux(const_iterator __position, value_type&& __v) 29761: { return _M_insert_rval(__position, std::move(__v)); } 29761: 29761: 29761: 29761: 29761: size_type 29761: _M_check_len(size_type __n, const char* __s) const 29761: { 29761: if (max_size() - size() < __n) 29761: __throw_length_error((__s)); 29761: 29761: const size_type __len = size() + (std::max)(size(), __n); 29761: return (__len < size() || __len > max_size()) ? max_size() : __len; 29761: } 29761: 29761: 29761: static size_type 29761: _S_check_init_len(size_type __n, const allocator_type& __a) 29761: { 29761: if (__n > _S_max_size(_Tp_alloc_type(__a))) 29761: __throw_length_error( 29761: ("cannot create std::vector larger than max_size()")); 29761: return __n; 29761: } 29761: 29761: static size_type 29761: _S_max_size(const _Tp_alloc_type& __a) noexcept 29761: { 29761: 29761: 29761: 29761: const size_t __diffmax 29761: = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 29761: const size_t __allocmax = _Alloc_traits::max_size(__a); 29761: return (std::min)(__diffmax, __allocmax); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: _M_erase_at_end(pointer __pos) noexcept 29761: { 29761: if (size_type __n = this->_M_impl._M_finish - __pos) 29761: { 29761: std::_Destroy(__pos, this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __pos; 29761: ; 29761: } 29761: } 29761: 29761: 29761: iterator 29761: _M_erase(iterator __position); 29761: 29761: 29761: iterator 29761: _M_erase(iterator __first, iterator __last); 29761: 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: void 29761: _M_move_assign(vector&& __x, true_type) noexcept 29761: { 29761: vector __tmp(get_allocator()); 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: __tmp._M_impl._M_swap_data(__x._M_impl); 29761: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: _M_move_assign(vector&& __x, false_type) 29761: { 29761: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 29761: _M_move_assign(std::move(__x), true_type()); 29761: else 29761: { 29761: 29761: 29761: this->_M_assign_aux(std::make_move_iterator(__x.begin()), 29761: std::make_move_iterator(__x.end()), 29761: std::random_access_iterator_tag()); 29761: __x.clear(); 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: _Up* 29761: _M_data_ptr(_Up* __ptr) const noexcept 29761: { return __ptr; } 29761: 29761: 29761: template 29761: 29761: typename std::pointer_traits<_Ptr>::element_type* 29761: _M_data_ptr(_Ptr __ptr) const 29761: { return empty() ? nullptr : std::__to_address(__ptr); } 29761: # 2025 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: }; 29761: 29761: 29761: template::value_type, 29761: typename _Allocator = allocator<_ValT>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireAllocator<_Allocator>> 29761: vector(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29761: -> vector<_ValT, _Allocator>; 29761: # 2047 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return (__x.size() == __y.size() 29761: && std::equal(__x.begin(), __x.end(), __y.begin())); } 29761: # 2087 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return std::lexicographical_compare(__x.begin(), __x.end(), 29761: __y.begin(), __y.end()); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: 29761: inline void 29761: swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: namespace __detail::__variant 29761: { 29761: template struct _Never_valueless_alt; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : std::is_nothrow_move_assignable> 29761: { }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 67 "/usr/include/c++/14/vector" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_bvector.h" 1 3 29761: # 68 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: typedef unsigned long _Bit_type; 29761: enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; 29761: 29761: __attribute__((__nonnull__)) 29761: 29761: void 29761: __fill_bvector_n(_Bit_type*, size_t, bool) noexcept; 29761: 29761: 29761: 29761: struct _Bit_reference 29761: { 29761: _Bit_type * _M_p; 29761: _Bit_type _M_mask; 29761: 29761: 29761: _Bit_reference(_Bit_type * __x, _Bit_type __y) 29761: : _M_p(__x), _M_mask(__y) { } 29761: 29761: 29761: _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } 29761: 29761: 29761: _Bit_reference(const _Bit_reference&) = default; 29761: 29761: 29761: [[__nodiscard__]] 29761: operator bool() const noexcept 29761: { return !!(*_M_p & _M_mask); } 29761: 29761: 29761: _Bit_reference& 29761: operator=(bool __x) noexcept 29761: { 29761: if (__x) 29761: *_M_p |= _M_mask; 29761: else 29761: *_M_p &= ~_M_mask; 29761: return *this; 29761: } 29761: # 125 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: _Bit_reference& 29761: operator=(const _Bit_reference& __x) noexcept 29761: { return *this = bool(__x); } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: operator==(const _Bit_reference& __x) const 29761: { return bool(*this) == bool(__x); } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: operator<(const _Bit_reference& __x) const 29761: { return !bool(*this) && bool(__x); } 29761: 29761: 29761: void 29761: flip() noexcept 29761: { *_M_p ^= _M_mask; } 29761: 29761: 29761: 29761: friend void 29761: swap(_Bit_reference __x, _Bit_reference __y) noexcept 29761: { 29761: bool __tmp = __x; 29761: __x = __y; 29761: __y = __tmp; 29761: } 29761: 29761: 29761: friend void 29761: swap(_Bit_reference __x, bool& __y) noexcept 29761: { 29761: bool __tmp = __x; 29761: __x = __y; 29761: __y = __tmp; 29761: } 29761: 29761: 29761: friend void 29761: swap(bool& __x, _Bit_reference __y) noexcept 29761: { 29761: bool __tmp = __x; 29761: __x = __y; 29761: __y = __tmp; 29761: } 29761: 29761: }; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: struct _Bit_iterator_base 29761: : public std::iterator 29761: { 29761: _Bit_type * _M_p; 29761: unsigned int _M_offset; 29761: 29761: inline __attribute__((__always_inline__)) 29761: void 29761: _M_assume_normalized() const 29761: { 29761: 29761: unsigned int __ofst = _M_offset; 29761: __attribute__ ((__assume__ (__ofst < unsigned(_S_word_bit)))); 29761: 29761: } 29761: 29761: 29761: _Bit_iterator_base(_Bit_type * __x, unsigned int __y) 29761: : _M_p(__x), _M_offset(__y) { } 29761: 29761: 29761: void 29761: _M_bump_up() 29761: { 29761: _M_assume_normalized(); 29761: if (_M_offset++ == int(_S_word_bit) - 1) 29761: { 29761: _M_offset = 0; 29761: ++_M_p; 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_bump_down() 29761: { 29761: _M_assume_normalized(); 29761: if (_M_offset-- == 0) 29761: { 29761: _M_offset = int(_S_word_bit) - 1; 29761: --_M_p; 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_incr(ptrdiff_t __i) 29761: { 29761: _M_assume_normalized(); 29761: difference_type __n = __i + _M_offset; 29761: _M_p += __n / int(_S_word_bit); 29761: __n = __n % int(_S_word_bit); 29761: if (__n < 0) 29761: { 29761: __n += int(_S_word_bit); 29761: --_M_p; 29761: } 29761: _M_offset = static_cast(__n); 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { 29761: __x._M_assume_normalized(); 29761: __y._M_assume_normalized(); 29761: return __x._M_p == __y._M_p && __x._M_offset == __y._M_offset; 29761: } 29761: # 260 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { 29761: __x._M_assume_normalized(); 29761: __y._M_assume_normalized(); 29761: return __x._M_p < __y._M_p 29761: || (__x._M_p == __y._M_p && __x._M_offset < __y._M_offset); 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { return !(__x == __y); } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { return __y < __x; } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { return !(__y < __x); } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: friend ptrdiff_t 29761: operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { 29761: __x._M_assume_normalized(); 29761: __y._M_assume_normalized(); 29761: return (int(_S_word_bit) * (__x._M_p - __y._M_p) 29761: + __x._M_offset - __y._M_offset); 29761: } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: struct _Bit_iterator : public _Bit_iterator_base 29761: { 29761: typedef _Bit_reference reference; 29761: 29761: 29761: 29761: typedef _Bit_reference* pointer; 29761: 29761: typedef _Bit_iterator iterator; 29761: 29761: 29761: _Bit_iterator() : _Bit_iterator_base(0, 0) { } 29761: 29761: 29761: _Bit_iterator(_Bit_type * __x, unsigned int __y) 29761: : _Bit_iterator_base(__x, __y) { } 29761: 29761: 29761: iterator 29761: _M_const_cast() const 29761: { return *this; } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator*() const 29761: { 29761: _M_assume_normalized(); 29761: return reference(_M_p, 1UL << _M_offset); 29761: } 29761: 29761: 29761: iterator& 29761: operator++() 29761: { 29761: _M_bump_up(); 29761: return *this; 29761: } 29761: 29761: 29761: iterator 29761: operator++(int) 29761: { 29761: iterator __tmp = *this; 29761: _M_bump_up(); 29761: return __tmp; 29761: } 29761: 29761: 29761: iterator& 29761: operator--() 29761: { 29761: _M_bump_down(); 29761: return *this; 29761: } 29761: 29761: 29761: iterator 29761: operator--(int) 29761: { 29761: iterator __tmp = *this; 29761: _M_bump_down(); 29761: return __tmp; 29761: } 29761: 29761: 29761: iterator& 29761: operator+=(difference_type __i) 29761: { 29761: _M_incr(__i); 29761: return *this; 29761: } 29761: 29761: 29761: iterator& 29761: operator-=(difference_type __i) 29761: { 29761: *this += -__i; 29761: return *this; 29761: } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator[](difference_type __i) const 29761: { return *(*this + __i); } 29761: 29761: [[__nodiscard__]] 29761: friend iterator 29761: operator+(const iterator& __x, difference_type __n) 29761: { 29761: iterator __tmp = __x; 29761: __tmp += __n; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend iterator 29761: operator+(difference_type __n, const iterator& __x) 29761: { return __x + __n; } 29761: 29761: [[__nodiscard__]] 29761: friend iterator 29761: operator-(const iterator& __x, difference_type __n) 29761: { 29761: iterator __tmp = __x; 29761: __tmp -= __n; 29761: return __tmp; 29761: } 29761: }; 29761: 29761: struct _Bit_const_iterator : public _Bit_iterator_base 29761: { 29761: typedef bool reference; 29761: typedef bool const_reference; 29761: 29761: 29761: 29761: typedef const bool* pointer; 29761: 29761: typedef _Bit_const_iterator const_iterator; 29761: 29761: 29761: _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } 29761: 29761: 29761: _Bit_const_iterator(_Bit_type * __x, unsigned int __y) 29761: : _Bit_iterator_base(__x, __y) { } 29761: 29761: 29761: _Bit_const_iterator(const _Bit_iterator& __x) 29761: : _Bit_iterator_base(__x._M_p, __x._M_offset) { } 29761: 29761: 29761: _Bit_iterator 29761: _M_const_cast() const 29761: { return _Bit_iterator(_M_p, _M_offset); } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: operator*() const 29761: { 29761: _M_assume_normalized(); 29761: return _Bit_reference(_M_p, 1UL << _M_offset); 29761: } 29761: 29761: 29761: const_iterator& 29761: operator++() 29761: { 29761: _M_bump_up(); 29761: return *this; 29761: } 29761: 29761: 29761: const_iterator 29761: operator++(int) 29761: { 29761: const_iterator __tmp = *this; 29761: _M_bump_up(); 29761: return __tmp; 29761: } 29761: 29761: 29761: const_iterator& 29761: operator--() 29761: { 29761: _M_bump_down(); 29761: return *this; 29761: } 29761: 29761: 29761: const_iterator 29761: operator--(int) 29761: { 29761: const_iterator __tmp = *this; 29761: _M_bump_down(); 29761: return __tmp; 29761: } 29761: 29761: 29761: const_iterator& 29761: operator+=(difference_type __i) 29761: { 29761: _M_incr(__i); 29761: return *this; 29761: } 29761: 29761: 29761: const_iterator& 29761: operator-=(difference_type __i) 29761: { 29761: *this += -__i; 29761: return *this; 29761: } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: operator[](difference_type __i) const 29761: { return *(*this + __i); } 29761: 29761: [[__nodiscard__]] 29761: friend const_iterator 29761: operator+(const const_iterator& __x, difference_type __n) 29761: { 29761: const_iterator __tmp = __x; 29761: __tmp += __n; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend const_iterator 29761: operator-(const const_iterator& __x, difference_type __n) 29761: { 29761: const_iterator __tmp = __x; 29761: __tmp -= __n; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend const_iterator 29761: operator+(difference_type __n, const const_iterator& __x) 29761: { return __x + __n; } 29761: }; 29761: 29761: template 29761: struct _Bvector_base 29761: { 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Bit_type>::other _Bit_alloc_type; 29761: typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> 29761: _Bit_alloc_traits; 29761: typedef typename _Bit_alloc_traits::pointer _Bit_pointer; 29761: 29761: struct _Bvector_impl_data 29761: { 29761: 29761: _Bit_iterator _M_start; 29761: # 547 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: _Bit_iterator _M_finish; 29761: _Bit_pointer _M_end_of_storage; 29761: 29761: 29761: _Bvector_impl_data() noexcept 29761: : _M_start(), _M_finish(), _M_end_of_storage() 29761: { } 29761: 29761: 29761: _Bvector_impl_data(const _Bvector_impl_data&) = default; 29761: 29761: _Bvector_impl_data& 29761: operator=(const _Bvector_impl_data&) = default; 29761: 29761: 29761: _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept 29761: : _Bvector_impl_data(__x) 29761: { __x._M_reset(); } 29761: 29761: 29761: void 29761: _M_move_data(_Bvector_impl_data&& __x) noexcept 29761: { 29761: *this = __x; 29761: __x._M_reset(); 29761: } 29761: 29761: 29761: 29761: void 29761: _M_reset() noexcept 29761: { *this = _Bvector_impl_data(); } 29761: 29761: 29761: void 29761: _M_swap_data(_Bvector_impl_data& __x) noexcept 29761: { 29761: 29761: 29761: std::swap(*this, __x); 29761: } 29761: }; 29761: 29761: struct _Bvector_impl 29761: : public _Bit_alloc_type, public _Bvector_impl_data 29761: { 29761: 29761: _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) 29761: 29761: 29761: 29761: 29761: : _Bit_alloc_type() 29761: { } 29761: 29761: 29761: _Bvector_impl(const _Bit_alloc_type& __a) noexcept 29761: : _Bit_alloc_type(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: _Bvector_impl(_Bvector_impl&& __x) noexcept 29761: : _Bit_alloc_type(std::move(__x)), _Bvector_impl_data(std::move(__x)) 29761: { } 29761: 29761: 29761: _Bvector_impl(_Bit_alloc_type&& __a, _Bvector_impl&& __x) noexcept 29761: : _Bit_alloc_type(std::move(__a)), _Bvector_impl_data(std::move(__x)) 29761: { } 29761: 29761: 29761: 29761: _Bit_type* 29761: _M_end_addr() const noexcept 29761: { 29761: if (this->_M_end_of_storage) 29761: return std::__addressof(this->_M_end_of_storage[-1]) + 1; 29761: return 0; 29761: } 29761: }; 29761: 29761: public: 29761: typedef _Alloc allocator_type; 29761: 29761: 29761: _Bit_alloc_type& 29761: _M_get_Bit_allocator() noexcept 29761: { return this->_M_impl; } 29761: 29761: 29761: const _Bit_alloc_type& 29761: _M_get_Bit_allocator() const noexcept 29761: { return this->_M_impl; } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_get_Bit_allocator()); } 29761: 29761: 29761: _Bvector_base() = default; 29761: 29761: 29761: 29761: 29761: 29761: _Bvector_base(const allocator_type& __a) 29761: : _M_impl(_Bit_alloc_type(__a)) { } 29761: 29761: 29761: _Bvector_base(_Bvector_base&&) = default; 29761: 29761: 29761: _Bvector_base(_Bvector_base&& __x, const allocator_type& __a) noexcept 29761: : _M_impl(_Bit_alloc_type(__a), std::move(__x._M_impl)) 29761: { } 29761: 29761: 29761: 29761: ~_Bvector_base() 29761: { this->_M_deallocate(); } 29761: 29761: protected: 29761: _Bvector_impl _M_impl; 29761: 29761: 29761: _Bit_pointer 29761: _M_allocate(size_t __n) 29761: { 29761: _Bit_pointer __p = _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); 29761: # 688 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: return __p; 29761: } 29761: 29761: 29761: void 29761: _M_deallocate() 29761: { 29761: if (_M_impl._M_start._M_p) 29761: { 29761: const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; 29761: _Bit_alloc_traits::deallocate(_M_impl, 29761: _M_impl._M_end_of_storage - __n, 29761: __n); 29761: _M_impl._M_reset(); 29761: } 29761: } 29761: 29761: 29761: 29761: void 29761: _M_move_data(_Bvector_base&& __x) noexcept 29761: { _M_impl._M_move_data(std::move(__x._M_impl)); } 29761: 29761: 29761: constexpr 29761: static size_t 29761: _S_nword(size_t __n) 29761: { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } 29761: }; 29761: # 739 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: template 29761: class vector : protected _Bvector_base<_Alloc> 29761: { 29761: typedef _Bvector_base<_Alloc> _Base; 29761: typedef typename _Base::_Bit_pointer _Bit_pointer; 29761: typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; 29761: 29761: 29761: friend struct std::hash; 29761: 29761: 29761: public: 29761: typedef bool value_type; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Bit_reference reference; 29761: typedef bool const_reference; 29761: typedef _Bit_reference* pointer; 29761: typedef const bool* const_pointer; 29761: typedef _Bit_iterator iterator; 29761: typedef _Bit_const_iterator const_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef _Alloc allocator_type; 29761: 29761: 29761: allocator_type 29761: get_allocator() const 29761: { return _Base::get_allocator(); } 29761: 29761: protected: 29761: using _Base::_M_allocate; 29761: using _Base::_M_deallocate; 29761: using _Base::_S_nword; 29761: using _Base::_M_get_Bit_allocator; 29761: 29761: public: 29761: 29761: vector() = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: vector(const allocator_type& __a) 29761: : _Base(__a) { } 29761: 29761: 29761: 29761: explicit 29761: vector(size_type __n, const allocator_type& __a = allocator_type()) 29761: : vector(__n, false, __a) 29761: { } 29761: 29761: 29761: vector(size_type __n, const bool& __value, 29761: const allocator_type& __a = allocator_type()) 29761: 29761: 29761: 29761: 29761: 29761: : _Base(__a) 29761: { 29761: _M_initialize(__n); 29761: _M_initialize_value(__value); 29761: } 29761: 29761: 29761: vector(const vector& __x) 29761: : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) 29761: { 29761: const_iterator __xbegin = __x.begin(), __xend = __x.end(); 29761: _M_initialize(__x.size()); 29761: _M_copy_aligned(__xbegin, __xend, begin()); 29761: } 29761: 29761: 29761: vector(vector&&) = default; 29761: 29761: private: 29761: 29761: vector(vector&& __x, const allocator_type& __a, true_type) noexcept 29761: : _Base(std::move(__x), __a) 29761: { } 29761: 29761: 29761: vector(vector&& __x, const allocator_type& __a, false_type) 29761: : _Base(__a) 29761: { 29761: if (__x.get_allocator() == __a) 29761: this->_M_move_data(std::move(__x)); 29761: else 29761: { 29761: _M_initialize(__x.size()); 29761: _M_copy_aligned(__x.begin(), __x.end(), begin()); 29761: __x.clear(); 29761: } 29761: } 29761: 29761: public: 29761: 29761: vector(vector&& __x, const __type_identity_t& __a) 29761: noexcept(_Bit_alloc_traits::_S_always_equal()) 29761: : vector(std::move(__x), __a, 29761: typename _Bit_alloc_traits::is_always_equal{}) 29761: { } 29761: 29761: 29761: vector(const vector& __x, const __type_identity_t& __a) 29761: : _Base(__a) 29761: { 29761: _M_initialize(__x.size()); 29761: _M_copy_aligned(__x.begin(), __x.end(), begin()); 29761: } 29761: 29761: 29761: vector(initializer_list __l, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_initialize_range(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: } 29761: 29761: 29761: 29761: template> 29761: 29761: vector(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_initialize_range(__first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: # 889 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: ~vector() noexcept { } 29761: 29761: 29761: vector& 29761: operator=(const vector& __x) 29761: { 29761: if (&__x == this) 29761: return *this; 29761: 29761: if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) 29761: { 29761: this->_M_deallocate(); 29761: std::__alloc_on_copy(_M_get_Bit_allocator(), 29761: __x._M_get_Bit_allocator()); 29761: _M_initialize(__x.size()); 29761: } 29761: else 29761: std::__alloc_on_copy(_M_get_Bit_allocator(), 29761: __x._M_get_Bit_allocator()); 29761: } 29761: 29761: if (__x.size() > capacity()) 29761: { 29761: this->_M_deallocate(); 29761: _M_initialize(__x.size()); 29761: } 29761: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 29761: begin()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: vector& 29761: operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) 29761: { 29761: if (_Bit_alloc_traits::_S_propagate_on_move_assign() 29761: || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) 29761: { 29761: this->_M_deallocate(); 29761: this->_M_move_data(std::move(__x)); 29761: std::__alloc_on_move(_M_get_Bit_allocator(), 29761: __x._M_get_Bit_allocator()); 29761: } 29761: else 29761: { 29761: if (__x.size() > capacity()) 29761: { 29761: this->_M_deallocate(); 29761: _M_initialize(__x.size()); 29761: } 29761: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 29761: begin()); 29761: __x.clear(); 29761: } 29761: return *this; 29761: } 29761: 29761: 29761: vector& 29761: operator=(initializer_list __l) 29761: { 29761: this->assign(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: assign(size_type __n, const bool& __x) 29761: { _M_fill_assign(__n, __x); } 29761: 29761: 29761: template> 29761: 29761: void 29761: assign(_InputIterator __first, _InputIterator __last) 29761: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29761: # 987 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: void 29761: assign(initializer_list __l) 29761: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: begin() noexcept 29761: { return iterator(this->_M_impl._M_start._M_p, 0); } 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: end() noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: end() const noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(end()); } 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(begin()); } 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cend() const noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: size() const noexcept 29761: { return size_type(end() - begin()); } 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: max_size() const noexcept 29761: { 29761: const size_type __isize = 29761: __gnu_cxx::__numeric_traits::__max 29761: - int(_S_word_bit) + 1; 29761: const size_type __asize 29761: = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); 29761: return (__asize <= __isize / int(_S_word_bit) 29761: ? __asize * int(_S_word_bit) : __isize); 29761: } 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: capacity() const noexcept 29761: { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) 29761: - begin()); } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: empty() const noexcept 29761: { return begin() == end(); } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator[](size_type __n) 29761: { return begin()[__n]; } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: operator[](size_type __n) const 29761: { return begin()[__n]; } 29761: 29761: protected: 29761: 29761: void 29761: _M_range_check(size_type __n) const 29761: { 29761: if (__n >= this->size()) 29761: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29761: 29761: , 29761: __n, this->size()); 29761: } 29761: 29761: public: 29761: [[__nodiscard__]] 29761: reference 29761: at(size_type __n) 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: at(size_type __n) const 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: 29761: 29761: void 29761: reserve(size_type __n) 29761: { 29761: if (__n > max_size()) 29761: __throw_length_error(("vector::reserve")); 29761: if (capacity() < __n) 29761: _M_reallocate(__n); 29761: } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: front() 29761: { return *begin(); } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: front() const 29761: { return *begin(); } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: back() 29761: { return *(end() - 1); } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: back() const 29761: { return *(end() - 1); } 29761: 29761: 29761: void 29761: push_back(bool __x) 29761: { 29761: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 29761: *this->_M_impl._M_finish++ = __x; 29761: else 29761: _M_insert_aux(end(), __x); 29761: } 29761: 29761: 29761: void 29761: swap(vector& __x) noexcept 29761: { 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(_Bit_alloc_traits::propagate_on_container_swap::value || _M_get_Bit_allocator() == __x._M_get_Bit_allocator())) std::__glibcxx_assert_fail(); } while (false) 29761: ; 29761: 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), 29761: __x._M_get_Bit_allocator()); 29761: } 29761: 29761: 29761: 29761: static void 29761: swap(reference __x, reference __y) noexcept 29761: { 29761: bool __tmp = __x; 29761: __x = __y; 29761: __y = __tmp; 29761: } 29761: 29761: 29761: iterator 29761: 29761: insert(const_iterator __position, const bool& __x) 29761: 29761: 29761: 29761: { 29761: const difference_type __n = __position - begin(); 29761: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() 29761: && __position == end()) 29761: *this->_M_impl._M_finish++ = __x; 29761: else 29761: _M_insert_aux(__position._M_const_cast(), __x); 29761: return begin() + __n; 29761: } 29761: 29761: 29761: __attribute__ ((__deprecated__ ("use '" "insert(position, false)" "' instead"))) 29761: iterator 29761: insert(const_iterator __position) 29761: { return this->insert(__position._M_const_cast(), false); } 29761: 29761: 29761: 29761: template> 29761: 29761: iterator 29761: insert(const_iterator __position, 29761: _InputIterator __first, _InputIterator __last) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_insert_range(__position._M_const_cast(), 29761: __first, __last, 29761: std::__iterator_category(__first)); 29761: return begin() + __offset; 29761: } 29761: # 1237 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: iterator 29761: insert(const_iterator __position, size_type __n, const bool& __x) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_fill_insert(__position._M_const_cast(), __n, __x); 29761: return begin() + __offset; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: insert(const_iterator __p, initializer_list __l) 29761: { return this->insert(__p, __l.begin(), __l.end()); } 29761: 29761: 29761: 29761: void 29761: pop_back() 29761: { --this->_M_impl._M_finish; } 29761: 29761: 29761: iterator 29761: 29761: erase(const_iterator __position) 29761: 29761: 29761: 29761: { return _M_erase(__position._M_const_cast()); } 29761: 29761: 29761: iterator 29761: 29761: erase(const_iterator __first, const_iterator __last) 29761: 29761: 29761: 29761: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 29761: 29761: 29761: void 29761: resize(size_type __new_size, bool __x = bool()) 29761: { 29761: if (__new_size < size()) 29761: _M_erase_at_end(begin() + difference_type(__new_size)); 29761: else 29761: insert(end(), __new_size - size(), __x); 29761: } 29761: 29761: 29761: 29761: void 29761: shrink_to_fit() 29761: { _M_shrink_to_fit(); } 29761: 29761: 29761: 29761: void 29761: flip() noexcept 29761: { 29761: _Bit_type * const __end = this->_M_impl._M_end_addr(); 29761: for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) 29761: *__p = ~*__p; 29761: } 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_erase_at_end(begin()); } 29761: 29761: 29761: template 29761: 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_back(_Args&&... __args) 29761: { 29761: push_back(bool(std::forward<_Args>(__args)...)); 29761: 29761: return back(); 29761: 29761: } 29761: 29761: template 29761: 29761: iterator 29761: emplace(const_iterator __pos, _Args&&... __args) 29761: { return insert(__pos, bool(std::forward<_Args>(__args)...)); } 29761: 29761: 29761: protected: 29761: 29761: 29761: iterator 29761: _M_copy_aligned(const_iterator __first, const_iterator __last, 29761: iterator __result) 29761: { 29761: _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); 29761: return std::copy(const_iterator(__last._M_p, 0), __last, 29761: iterator(__q, 0)); 29761: } 29761: 29761: 29761: void 29761: _M_initialize(size_type __n) 29761: { 29761: if (__n) 29761: { 29761: _Bit_pointer __q = this->_M_allocate(__n); 29761: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 29761: iterator __start = iterator(std::__addressof(*__q), 0); 29761: this->_M_impl._M_start = __start; 29761: this->_M_impl._M_finish = __start + difference_type(__n); 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_initialize_value(bool __x) noexcept 29761: { 29761: if (_Bit_type* __p = this->_M_impl._M_start._M_p) 29761: __fill_bvector_n(__p, this->_M_impl._M_end_addr() - __p, __x); 29761: } 29761: 29761: 29761: void 29761: _M_reallocate(size_type __n); 29761: 29761: 29761: 29761: bool 29761: _M_shrink_to_fit(); 29761: # 1398 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: template 29761: 29761: void 29761: _M_initialize_range(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: for (; __first != __last; ++__first) 29761: push_back(*__first); 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __n = std::distance(__first, __last); 29761: _M_initialize(__n); 29761: std::copy(__first, __last, begin()); 29761: } 29761: # 1434 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: void 29761: _M_fill_assign(size_t __n, bool __x) 29761: { 29761: if (__n > size()) 29761: { 29761: _M_initialize_value(__x); 29761: insert(end(), __n - size(), __x); 29761: } 29761: else 29761: { 29761: _M_erase_at_end(begin() + __n); 29761: _M_initialize_value(__x); 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: iterator __cur = begin(); 29761: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 29761: *__cur = *__first; 29761: if (__first == __last) 29761: _M_erase_at_end(__cur); 29761: else 29761: insert(end(), __first, __last); 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __len = std::distance(__first, __last); 29761: if (__len < size()) 29761: _M_erase_at_end(std::copy(__first, __last, begin())); 29761: else 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, size()); 29761: std::copy(__first, __mid, begin()); 29761: insert(end(), __mid, __last); 29761: } 29761: } 29761: # 1501 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: void 29761: _M_fill_insert(iterator __position, size_type __n, bool __x); 29761: 29761: template 29761: 29761: void 29761: _M_insert_range(iterator __pos, _InputIterator __first, 29761: _InputIterator __last, std::input_iterator_tag) 29761: { 29761: for (; __first != __last; ++__first) 29761: { 29761: __pos = insert(__pos, *__first); 29761: ++__pos; 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_insert_range(iterator __position, _ForwardIterator __first, 29761: _ForwardIterator __last, std::forward_iterator_tag); 29761: 29761: 29761: void 29761: _M_insert_aux(iterator __position, bool __x); 29761: 29761: 29761: size_type 29761: _M_check_len(size_type __n, const char* __s) const 29761: { 29761: if (max_size() - size() < __n) 29761: __throw_length_error((__s)); 29761: 29761: const size_type __len = size() + std::max(size(), __n); 29761: return (__len < size() || __len > max_size()) ? max_size() : __len; 29761: } 29761: 29761: 29761: void 29761: _M_erase_at_end(iterator __pos) 29761: { this->_M_impl._M_finish = __pos; } 29761: 29761: 29761: iterator 29761: _M_erase(iterator __pos); 29761: 29761: 29761: iterator 29761: _M_erase(iterator __first, iterator __last); 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void data() = delete; 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: inline void 29761: __fill_bvector(_Bit_type* __v, unsigned int __first, unsigned int __last, 29761: bool __x) noexcept 29761: { 29761: const _Bit_type __fmask = ~0ul << __first; 29761: const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); 29761: const _Bit_type __mask = __fmask & __lmask; 29761: 29761: if (__x) 29761: *__v |= __mask; 29761: else 29761: *__v &= ~__mask; 29761: } 29761: 29761: 29761: __attribute__((__nonnull__)) 29761: 29761: inline void 29761: __fill_bvector_n(_Bit_type* __p, size_t __n, bool __x) noexcept 29761: { 29761: # 1597 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: __builtin_memset(__p, __x ? ~0 : 0, __n * sizeof(_Bit_type)); 29761: } 29761: 29761: 29761: 29761: inline void 29761: __fill_a1(std::_Bit_iterator __first, 29761: std::_Bit_iterator __last, const bool& __x) 29761: { 29761: if (__first._M_p != __last._M_p) 29761: { 29761: _Bit_type* __first_p = __first._M_p; 29761: if (__first._M_offset != 0) 29761: __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); 29761: 29761: __fill_bvector_n(__first_p, __last._M_p - __first_p, __x); 29761: 29761: if (__last._M_offset != 0) 29761: __fill_bvector(__last._M_p, 0, __last._M_offset, __x); 29761: } 29761: else if (__first._M_offset != __last._M_offset) 29761: __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: struct hash> 29761: : public __hash_base> 29761: { 29761: size_t 29761: operator()(const std::vector&) const noexcept; 29761: }; 29761: 29761: 29761: 29761: } 29761: # 68 "/usr/include/c++/14/vector" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/vector.tcc" 1 3 29761: # 59 "/usr/include/c++/14/bits/vector.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: reserve(size_type __n) 29761: { 29761: if (__n > this->max_size()) 29761: __throw_length_error(("vector::reserve")); 29761: if (this->capacity() < __n) 29761: { 29761: const size_type __old_size = size(); 29761: pointer __tmp; 29761: 29761: if constexpr (_S_use_relocate()) 29761: { 29761: __tmp = this->_M_allocate(__n); 29761: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 29761: __tmp, _M_get_Tp_allocator()); 29761: } 29761: else 29761: 29761: { 29761: __tmp = _M_allocate_and_copy(__n, 29761: std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), 29761: std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); 29761: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: } 29761: ; 29761: _M_deallocate(this->_M_impl._M_start, 29761: this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_start); 29761: this->_M_impl._M_start = __tmp; 29761: this->_M_impl._M_finish = __tmp + __old_size; 29761: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29761: } 29761: } 29761: 29761: 29761: template 29761: template 29761: 29761: 29761: typename vector<_Tp, _Alloc>::reference 29761: 29761: 29761: 29761: vector<_Tp, _Alloc>:: 29761: emplace_back(_Args&&... __args) 29761: { 29761: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: std::forward<_Args>(__args)...); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: } 29761: else 29761: _M_realloc_append(std::forward<_Args>(__args)...); 29761: 29761: return back(); 29761: 29761: } 29761: 29761: 29761: template 29761: 29761: typename vector<_Tp, _Alloc>::iterator 29761: vector<_Tp, _Alloc>:: 29761: 29761: insert(const_iterator __position, const value_type& __x) 29761: 29761: 29761: 29761: { 29761: const size_type __n = __position - begin(); 29761: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__position != const_iterator())) std::__glibcxx_assert_fail(); } while (false); 29761: if (!(__position != const_iterator())) 29761: __builtin_unreachable(); 29761: 29761: if (__position == end()) 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: __x); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: } 29761: else 29761: { 29761: 29761: const auto __pos = begin() + (__position - cbegin()); 29761: 29761: 29761: _Temporary_value __x_copy(this, __x); 29761: _M_insert_aux(__pos, std::move(__x_copy._M_val())); 29761: 29761: 29761: 29761: } 29761: } 29761: else 29761: 29761: _M_realloc_insert(begin() + (__position - cbegin()), __x); 29761: 29761: 29761: 29761: 29761: return iterator(this->_M_impl._M_start + __n); 29761: } 29761: 29761: template 29761: 29761: typename vector<_Tp, _Alloc>::iterator 29761: vector<_Tp, _Alloc>:: 29761: _M_erase(iterator __position) 29761: { 29761: if (__position + 1 != end()) 29761: std::move(__position + 1, end(), __position); 29761: --this->_M_impl._M_finish; 29761: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 29761: ; 29761: return __position; 29761: } 29761: 29761: template 29761: 29761: typename vector<_Tp, _Alloc>::iterator 29761: vector<_Tp, _Alloc>:: 29761: _M_erase(iterator __first, iterator __last) 29761: { 29761: if (__first != __last) 29761: { 29761: if (__last != end()) 29761: std::move(__last, end(), __first); 29761: _M_erase_at_end(__first.base() + (end() - __last)); 29761: } 29761: return __first; 29761: } 29761: 29761: template 29761: 29761: vector<_Tp, _Alloc>& 29761: vector<_Tp, _Alloc>:: 29761: operator=(const vector<_Tp, _Alloc>& __x) 29761: { 29761: if (std::__addressof(__x) != this) 29761: { 29761: ; 29761: 29761: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: if (!_Alloc_traits::_S_always_equal() 29761: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 29761: { 29761: 29761: this->clear(); 29761: _M_deallocate(this->_M_impl._M_start, 29761: this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_start); 29761: this->_M_impl._M_start = nullptr; 29761: this->_M_impl._M_finish = nullptr; 29761: this->_M_impl._M_end_of_storage = nullptr; 29761: } 29761: std::__alloc_on_copy(_M_get_Tp_allocator(), 29761: __x._M_get_Tp_allocator()); 29761: } 29761: 29761: const size_type __xlen = __x.size(); 29761: if (__xlen > capacity()) 29761: { 29761: pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), 29761: __x.end()); 29761: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: _M_deallocate(this->_M_impl._M_start, 29761: this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_start); 29761: this->_M_impl._M_start = __tmp; 29761: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; 29761: } 29761: else if (size() >= __xlen) 29761: { 29761: std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), 29761: end(), _M_get_Tp_allocator()); 29761: } 29761: else 29761: { 29761: std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), 29761: this->_M_impl._M_start); 29761: std::__uninitialized_copy_a(__x._M_impl._M_start + size(), 29761: __x._M_impl._M_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: } 29761: this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_fill_assign(size_t __n, const value_type& __val) 29761: { 29761: const size_type __sz = size(); 29761: if (__n > capacity()) 29761: { 29761: if (__n <= __sz) 29761: __builtin_unreachable(); 29761: vector __tmp(__n, __val, _M_get_Tp_allocator()); 29761: __tmp._M_impl._M_swap_data(this->_M_impl); 29761: } 29761: else if (__n > __sz) 29761: { 29761: std::fill(begin(), end(), __val); 29761: const size_type __add = __n - __sz; 29761: ; 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 29761: __add, __val, _M_get_Tp_allocator()); 29761: ; 29761: } 29761: else 29761: _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: pointer __cur(this->_M_impl._M_start); 29761: for (; __first != __last && __cur != this->_M_impl._M_finish; 29761: ++__cur, (void)++__first) 29761: *__cur = *__first; 29761: if (__first == __last) 29761: _M_erase_at_end(__cur); 29761: else 29761: _M_range_insert(end(), __first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __sz = size(); 29761: const size_type __len = std::distance(__first, __last); 29761: 29761: if (__len > capacity()) 29761: { 29761: if (__len <= __sz) 29761: __builtin_unreachable(); 29761: 29761: _S_check_init_len(__len, _M_get_Tp_allocator()); 29761: pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); 29761: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: ; 29761: _M_deallocate(this->_M_impl._M_start, 29761: this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_start); 29761: this->_M_impl._M_start = __tmp; 29761: this->_M_impl._M_finish = this->_M_impl._M_start + __len; 29761: this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; 29761: } 29761: else if (__sz >= __len) 29761: _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); 29761: else 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, __sz); 29761: std::copy(__first, __mid, this->_M_impl._M_start); 29761: const size_type __attribute__((__unused__)) __n = __len - __sz; 29761: ; 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_copy_a(__mid, __last, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: ; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: auto 29761: vector<_Tp, _Alloc>:: 29761: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator 29761: { 29761: const auto __n = __position - cbegin(); 29761: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29761: if (__position == cend()) 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: std::move(__v)); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: } 29761: else 29761: _M_insert_aux(begin() + __n, std::move(__v)); 29761: else 29761: _M_realloc_insert(begin() + __n, std::move(__v)); 29761: 29761: return iterator(this->_M_impl._M_start + __n); 29761: } 29761: 29761: template 29761: template 29761: 29761: auto 29761: vector<_Tp, _Alloc>:: 29761: _M_emplace_aux(const_iterator __position, _Args&&... __args) 29761: -> iterator 29761: { 29761: const auto __n = __position - cbegin(); 29761: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29761: if (__position == cend()) 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: std::forward<_Args>(__args)...); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: _Temporary_value __tmp(this, std::forward<_Args>(__args)...); 29761: _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); 29761: } 29761: else 29761: _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); 29761: 29761: return iterator(this->_M_impl._M_start + __n); 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_insert_aux(iterator __position, _Arg&& __arg) 29761: 29761: 29761: 29761: 29761: 29761: 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: std::move(*(this->_M_impl._M_finish - 1))); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: 29761: 29761: 29761: std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) 29761: 29761: ; 29761: 29761: 29761: 29761: *__position = std::forward<_Arg>(__arg); 29761: 29761: } 29761: 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_realloc_insert(iterator __position, _Args&&... __args) 29761: 29761: 29761: 29761: 29761: 29761: 29761: { 29761: const size_type __len = _M_check_len(1u, "vector::_M_realloc_insert"); 29761: if (__len <= 0) 29761: __builtin_unreachable (); 29761: pointer __old_start = this->_M_impl._M_start; 29761: pointer __old_finish = this->_M_impl._M_finish; 29761: const size_type __elems_before = __position - begin(); 29761: pointer __new_start(this->_M_allocate(__len)); 29761: pointer __new_finish(__new_start); 29761: 29761: 29761: struct _Guard 29761: { 29761: pointer _M_storage; 29761: size_type _M_len; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29761: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard() 29761: { 29761: if (_M_storage) 29761: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29761: deallocate(_M_alloc, _M_storage, _M_len); 29761: } 29761: 29761: private: 29761: _Guard(const _Guard&); 29761: }; 29761: 29761: { 29761: _Guard __guard(__new_start, __len, _M_impl); 29761: # 505 "/usr/include/c++/14/bits/vector.tcc" 3 29761: _Alloc_traits::construct(this->_M_impl, 29761: std::__to_address(__new_start + __elems_before), 29761: std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if constexpr (_S_use_relocate()) 29761: { 29761: 29761: __new_finish = _S_relocate(__old_start, __position.base(), 29761: __new_start, _M_get_Tp_allocator()); 29761: ++__new_finish; 29761: __new_finish = _S_relocate(__position.base(), __old_finish, 29761: __new_finish, _M_get_Tp_allocator()); 29761: } 29761: else 29761: 29761: { 29761: 29761: struct _Guard_elts 29761: { 29761: pointer _M_first, _M_last; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 29761: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard_elts() 29761: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29761: 29761: private: 29761: _Guard_elts(const _Guard_elts&); 29761: }; 29761: 29761: 29761: _Guard_elts __guard_elts(__new_start + __elems_before, _M_impl); 29761: 29761: __new_finish = std::__uninitialized_move_if_noexcept_a( 29761: __old_start, __position.base(), 29761: __new_start, _M_get_Tp_allocator()); 29761: 29761: ++__new_finish; 29761: 29761: __guard_elts._M_first = __new_start; 29761: 29761: __new_finish = std::__uninitialized_move_if_noexcept_a( 29761: __position.base(), __old_finish, 29761: __new_finish, _M_get_Tp_allocator()); 29761: 29761: 29761: __guard_elts._M_first = __old_start; 29761: __guard_elts._M_last = __old_finish; 29761: } 29761: __guard._M_storage = __old_start; 29761: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29761: } 29761: 29761: 29761: 29761: this->_M_impl._M_start = __new_start; 29761: this->_M_impl._M_finish = __new_finish; 29761: this->_M_impl._M_end_of_storage = __new_start + __len; 29761: } 29761: 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_realloc_append(_Args&&... __args) 29761: 29761: 29761: 29761: 29761: 29761: 29761: { 29761: const size_type __len = _M_check_len(1u, "vector::_M_realloc_append"); 29761: if (__len <= 0) 29761: __builtin_unreachable (); 29761: pointer __old_start = this->_M_impl._M_start; 29761: pointer __old_finish = this->_M_impl._M_finish; 29761: const size_type __elems = end() - begin(); 29761: pointer __new_start(this->_M_allocate(__len)); 29761: pointer __new_finish(__new_start); 29761: 29761: 29761: struct _Guard 29761: { 29761: pointer _M_storage; 29761: size_type _M_len; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29761: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard() 29761: { 29761: if (_M_storage) 29761: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29761: deallocate(_M_alloc, _M_storage, _M_len); 29761: } 29761: 29761: private: 29761: _Guard(const _Guard&); 29761: }; 29761: 29761: { 29761: _Guard __guard(__new_start, __len, _M_impl); 29761: # 634 "/usr/include/c++/14/bits/vector.tcc" 3 29761: _Alloc_traits::construct(this->_M_impl, 29761: std::__to_address(__new_start + __elems), 29761: std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if constexpr (_S_use_relocate()) 29761: { 29761: 29761: __new_finish = _S_relocate(__old_start, __old_finish, 29761: __new_start, _M_get_Tp_allocator()); 29761: ++__new_finish; 29761: } 29761: else 29761: 29761: { 29761: 29761: struct _Guard_elts 29761: { 29761: pointer _M_first, _M_last; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 29761: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard_elts() 29761: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29761: 29761: private: 29761: _Guard_elts(const _Guard_elts&); 29761: }; 29761: 29761: 29761: _Guard_elts __guard_elts(__new_start + __elems, _M_impl); 29761: 29761: __new_finish = std::__uninitialized_move_if_noexcept_a( 29761: __old_start, __old_finish, 29761: __new_start, _M_get_Tp_allocator()); 29761: 29761: ++__new_finish; 29761: 29761: 29761: __guard_elts._M_first = __old_start; 29761: __guard_elts._M_last = __old_finish; 29761: } 29761: __guard._M_storage = __old_start; 29761: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29761: } 29761: 29761: 29761: 29761: this->_M_impl._M_start = __new_start; 29761: this->_M_impl._M_finish = __new_finish; 29761: this->_M_impl._M_end_of_storage = __new_start + __len; 29761: } 29761: 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) 29761: { 29761: if (__n != 0) 29761: { 29761: if (size_type(this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_finish) >= __n) 29761: { 29761: 29761: 29761: 29761: _Temporary_value __tmp(this, __x); 29761: value_type& __x_copy = __tmp._M_val(); 29761: 29761: const size_type __elems_after = end() - __position; 29761: pointer __old_finish(this->_M_impl._M_finish); 29761: if (__elems_after > __n) 29761: { 29761: ; 29761: std::__uninitialized_move_a(__old_finish - __n, 29761: __old_finish, 29761: __old_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish += __n; 29761: ; 29761: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 29761: ; 29761: std::fill(__position.base(), __position.base() + __n, 29761: __x_copy); 29761: } 29761: else 29761: { 29761: ; 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_fill_n_a(__old_finish, 29761: __n - __elems_after, 29761: __x_copy, 29761: _M_get_Tp_allocator()); 29761: ; 29761: std::__uninitialized_move_a(__position.base(), __old_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish += __elems_after; 29761: ; 29761: std::fill(__position.base(), __old_finish, __x_copy); 29761: } 29761: } 29761: else 29761: { 29761: 29761: 29761: pointer __old_start = this->_M_impl._M_start; 29761: pointer __old_finish = this->_M_impl._M_finish; 29761: const pointer __pos = __position.base(); 29761: 29761: const size_type __len = 29761: _M_check_len(__n, "vector::_M_fill_insert"); 29761: const size_type __elems_before = __pos - __old_start; 29761: pointer __new_start(this->_M_allocate(__len)); 29761: pointer __new_finish(__new_start); 29761: try 29761: { 29761: 29761: std::__uninitialized_fill_n_a(__new_start + __elems_before, 29761: __n, __x, 29761: _M_get_Tp_allocator()); 29761: __new_finish = pointer(); 29761: 29761: __new_finish 29761: = std::__uninitialized_move_if_noexcept_a 29761: (__old_start, __pos, __new_start, _M_get_Tp_allocator()); 29761: 29761: __new_finish += __n; 29761: 29761: __new_finish 29761: = std::__uninitialized_move_if_noexcept_a 29761: (__pos, __old_finish, __new_finish, _M_get_Tp_allocator()); 29761: } 29761: catch(...) 29761: { 29761: if (!__new_finish) 29761: std::_Destroy(__new_start + __elems_before, 29761: __new_start + __elems_before + __n, 29761: _M_get_Tp_allocator()); 29761: else 29761: std::_Destroy(__new_start, __new_finish, 29761: _M_get_Tp_allocator()); 29761: _M_deallocate(__new_start, __len); 29761: throw; 29761: } 29761: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 29761: ; 29761: _M_deallocate(__old_start, 29761: this->_M_impl._M_end_of_storage - __old_start); 29761: this->_M_impl._M_start = __new_start; 29761: this->_M_impl._M_finish = __new_finish; 29761: this->_M_impl._M_end_of_storage = __new_start + __len; 29761: } 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_default_append(size_type __n) 29761: { 29761: if (__n != 0) 29761: { 29761: const size_type __size = size(); 29761: size_type __navail = size_type(this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_finish); 29761: 29761: if (__size > max_size() || __navail > max_size() - __size) 29761: __builtin_unreachable(); 29761: 29761: if (__navail >= __n) 29761: { 29761: ; 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_default_n_a(this->_M_impl._M_finish, 29761: __n, _M_get_Tp_allocator()); 29761: ; 29761: } 29761: else 29761: { 29761: 29761: 29761: pointer __old_start = this->_M_impl._M_start; 29761: pointer __old_finish = this->_M_impl._M_finish; 29761: 29761: const size_type __len = 29761: _M_check_len(__n, "vector::_M_default_append"); 29761: pointer __new_start(this->_M_allocate(__len)); 29761: 29761: 29761: struct _Guard 29761: { 29761: pointer _M_storage; 29761: size_type _M_len; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29761: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard() 29761: { 29761: if (_M_storage) 29761: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29761: deallocate(_M_alloc, _M_storage, _M_len); 29761: } 29761: 29761: private: 29761: _Guard(const _Guard&); 29761: }; 29761: 29761: { 29761: _Guard __guard(__new_start, __len, _M_impl); 29761: 29761: std::__uninitialized_default_n_a(__new_start + __size, __n, 29761: _M_get_Tp_allocator()); 29761: 29761: if constexpr (_S_use_relocate()) 29761: { 29761: _S_relocate(__old_start, __old_finish, 29761: __new_start, _M_get_Tp_allocator()); 29761: } 29761: else 29761: { 29761: 29761: struct _Guard_elts 29761: { 29761: pointer _M_first, _M_last; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard_elts(pointer __first, size_type __n, 29761: _Tp_alloc_type& __a) 29761: : _M_first(__first), _M_last(__first + __n), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard_elts() 29761: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29761: 29761: private: 29761: _Guard_elts(const _Guard_elts&); 29761: }; 29761: _Guard_elts __guard_elts(__new_start + __size, __n, _M_impl); 29761: 29761: std::__uninitialized_move_if_noexcept_a( 29761: __old_start, __old_finish, __new_start, 29761: _M_get_Tp_allocator()); 29761: 29761: __guard_elts._M_first = __old_start; 29761: __guard_elts._M_last = __old_finish; 29761: } 29761: ; 29761: __guard._M_storage = __old_start; 29761: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29761: } 29761: 29761: 29761: 29761: this->_M_impl._M_start = __new_start; 29761: this->_M_impl._M_finish = __new_start + __size + __n; 29761: this->_M_impl._M_end_of_storage = __new_start + __len; 29761: } 29761: } 29761: } 29761: 29761: template 29761: 29761: bool 29761: vector<_Tp, _Alloc>:: 29761: _M_shrink_to_fit() 29761: { 29761: if (capacity() == size()) 29761: return false; 29761: ; 29761: return std::__shrink_to_fit_aux::_S_do_it(*this); 29761: } 29761: 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_range_insert(iterator __pos, _InputIterator __first, 29761: _InputIterator __last, std::input_iterator_tag) 29761: { 29761: if (__pos == end()) 29761: { 29761: for (; __first != __last; ++__first) 29761: insert(end(), *__first); 29761: } 29761: else if (__first != __last) 29761: { 29761: vector __tmp(__first, __last, _M_get_Tp_allocator()); 29761: insert(__pos, 29761: std::make_move_iterator(__tmp.begin()), 29761: std::make_move_iterator(__tmp.end())); 29761: } 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_range_insert(iterator __position, _ForwardIterator __first, 29761: _ForwardIterator __last, std::forward_iterator_tag) 29761: { 29761: if (__first != __last) 29761: { 29761: const size_type __n = std::distance(__first, __last); 29761: if (size_type(this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_finish) >= __n) 29761: { 29761: const size_type __elems_after = end() - __position; 29761: pointer __old_finish(this->_M_impl._M_finish); 29761: if (__elems_after > __n) 29761: { 29761: ; 29761: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 29761: this->_M_impl._M_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish += __n; 29761: ; 29761: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 29761: ; 29761: std::copy(__first, __last, __position); 29761: } 29761: else 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, __elems_after); 29761: ; 29761: std::__uninitialized_copy_a(__mid, __last, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish += __n - __elems_after; 29761: ; 29761: std::__uninitialized_move_a(__position.base(), 29761: __old_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish += __elems_after; 29761: ; 29761: std::copy(__first, __mid, __position); 29761: } 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: pointer __old_start = this->_M_impl._M_start; 29761: pointer __old_finish = this->_M_impl._M_finish; 29761: 29761: const size_type __len = 29761: _M_check_len(__n, "vector::_M_range_insert"); 29761: 29761: 29761: 29761: 29761: 29761: pointer __new_start(this->_M_allocate(__len)); 29761: pointer __new_finish(__new_start); 29761: try 29761: { 29761: __new_finish 29761: = std::__uninitialized_move_if_noexcept_a 29761: (__old_start, __position.base(), 29761: __new_start, _M_get_Tp_allocator()); 29761: __new_finish 29761: = std::__uninitialized_copy_a(__first, __last, 29761: __new_finish, 29761: _M_get_Tp_allocator()); 29761: __new_finish 29761: = std::__uninitialized_move_if_noexcept_a 29761: (__position.base(), __old_finish, 29761: __new_finish, _M_get_Tp_allocator()); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__new_start, __new_finish, 29761: _M_get_Tp_allocator()); 29761: _M_deallocate(__new_start, __len); 29761: throw; 29761: } 29761: std::_Destroy(__old_start, __old_finish, 29761: _M_get_Tp_allocator()); 29761: ; 29761: _M_deallocate(__old_start, 29761: this->_M_impl._M_end_of_storage - __old_start); 29761: this->_M_impl._M_start = __new_start; 29761: this->_M_impl._M_finish = __new_finish; 29761: this->_M_impl._M_end_of_storage = __new_start + __len; 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: vector:: 29761: _M_reallocate(size_type __n) 29761: { 29761: _Bit_pointer __q = this->_M_allocate(__n); 29761: iterator __start(std::__addressof(*__q), 0); 29761: iterator __finish(_M_copy_aligned(begin(), end(), __start)); 29761: this->_M_deallocate(); 29761: this->_M_impl._M_start = __start; 29761: this->_M_impl._M_finish = __finish; 29761: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 29761: } 29761: 29761: template 29761: 29761: void 29761: vector:: 29761: _M_fill_insert(iterator __position, size_type __n, bool __x) 29761: { 29761: if (__n == 0) 29761: return; 29761: if (capacity() - size() >= __n) 29761: { 29761: std::copy_backward(__position, end(), 29761: this->_M_impl._M_finish + difference_type(__n)); 29761: std::fill(__position, __position + difference_type(__n), __x); 29761: this->_M_impl._M_finish += difference_type(__n); 29761: } 29761: else 29761: { 29761: const size_type __len = 29761: _M_check_len(__n, "vector::_M_fill_insert"); 29761: _Bit_pointer __q = this->_M_allocate(__len); 29761: iterator __start(std::__addressof(*__q), 0); 29761: iterator __i = _M_copy_aligned(begin(), __position, __start); 29761: std::fill(__i, __i + difference_type(__n), __x); 29761: iterator __finish = std::copy(__position, end(), 29761: __i + difference_type(__n)); 29761: this->_M_deallocate(); 29761: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29761: this->_M_impl._M_start = __start; 29761: this->_M_impl._M_finish = __finish; 29761: } 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: vector:: 29761: _M_insert_range(iterator __position, _ForwardIterator __first, 29761: _ForwardIterator __last, std::forward_iterator_tag) 29761: { 29761: if (__first != __last) 29761: { 29761: size_type __n = std::distance(__first, __last); 29761: if (capacity() - size() >= __n) 29761: { 29761: std::copy_backward(__position, end(), 29761: this->_M_impl._M_finish 29761: + difference_type(__n)); 29761: std::copy(__first, __last, __position); 29761: this->_M_impl._M_finish += difference_type(__n); 29761: } 29761: else 29761: { 29761: const size_type __len = 29761: _M_check_len(__n, "vector::_M_insert_range"); 29761: const iterator __begin = begin(), __end = end(); 29761: _Bit_pointer __q = this->_M_allocate(__len); 29761: iterator __start(std::__addressof(*__q), 0); 29761: iterator __i = _M_copy_aligned(__begin, __position, __start); 29761: __i = std::copy(__first, __last, __i); 29761: iterator __finish = std::copy(__position, __end, __i); 29761: this->_M_deallocate(); 29761: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29761: this->_M_impl._M_start = __start; 29761: this->_M_impl._M_finish = __finish; 29761: } 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: vector:: 29761: _M_insert_aux(iterator __position, bool __x) 29761: { 29761: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 29761: { 29761: std::copy_backward(__position, this->_M_impl._M_finish, 29761: this->_M_impl._M_finish + 1); 29761: *__position = __x; 29761: ++this->_M_impl._M_finish; 29761: } 29761: else 29761: { 29761: const size_type __len = 29761: _M_check_len(size_type(1), "vector::_M_insert_aux"); 29761: _Bit_pointer __q = this->_M_allocate(__len); 29761: iterator __start(std::__addressof(*__q), 0); 29761: iterator __i = _M_copy_aligned(begin(), __position, __start); 29761: *__i++ = __x; 29761: iterator __finish = std::copy(__position, end(), __i); 29761: this->_M_deallocate(); 29761: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29761: this->_M_impl._M_start = __start; 29761: this->_M_impl._M_finish = __finish; 29761: } 29761: } 29761: 29761: template 29761: 29761: typename vector::iterator 29761: vector:: 29761: _M_erase(iterator __position) 29761: { 29761: if (__position + 1 != end()) 29761: std::copy(__position + 1, end(), __position); 29761: --this->_M_impl._M_finish; 29761: return __position; 29761: } 29761: 29761: template 29761: 29761: typename vector::iterator 29761: vector:: 29761: _M_erase(iterator __first, iterator __last) 29761: { 29761: if (__first != __last) 29761: _M_erase_at_end(std::copy(__last, end(), __first)); 29761: return __first; 29761: } 29761: 29761: 29761: template 29761: 29761: bool 29761: vector:: 29761: _M_shrink_to_fit() 29761: { 29761: if (capacity() - size() < int(_S_word_bit)) 29761: return false; 29761: try 29761: { 29761: if (size_type __n = size()) 29761: _M_reallocate(__n); 29761: else 29761: { 29761: this->_M_deallocate(); 29761: this->_M_impl._M_reset(); 29761: } 29761: return true; 29761: } 29761: catch(...) 29761: { return false; } 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: size_t 29761: hash>:: 29761: operator()(const std::vector& __b) const noexcept 29761: { 29761: size_t __hash = 0; 29761: const size_t __words = __b.size() / _S_word_bit; 29761: if (__words) 29761: { 29761: const size_t __clength = __words * sizeof(_Bit_type); 29761: __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); 29761: } 29761: 29761: const size_t __extrabits = __b.size() % _S_word_bit; 29761: if (__extrabits) 29761: { 29761: _Bit_type __hiword = *__b._M_impl._M_finish._M_p; 29761: __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); 29761: 29761: const size_t __clength 29761: = (__extrabits + 8 - 1) / 8; 29761: if (__words) 29761: __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); 29761: else 29761: __hash = std::_Hash_impl::hash(&__hiword, __clength); 29761: } 29761: 29761: return __hash; 29761: } 29761: 29761: 29761: } 29761: # 73 "/usr/include/c++/14/vector" 2 3 29761: # 84 "/usr/include/c++/14/vector" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 85 "/usr/include/c++/14/vector" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr { 29761: template 29761: using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 65 "/usr/include/c++/14/functional" 2 3 29761: # 1 "/usr/include/c++/14/array" 1 3 29761: # 32 "/usr/include/c++/14/array" 3 29761: 29761: # 33 "/usr/include/c++/14/array" 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/compare" 1 3 29761: # 33 "/usr/include/c++/14/compare" 3 29761: 29761: # 34 "/usr/include/c++/14/compare" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 37 "/usr/include/c++/14/compare" 2 3 29761: # 39 "/usr/include/c++/14/array" 2 3 29761: # 52 "/usr/include/c++/14/array" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 53 "/usr/include/c++/14/array" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: struct __array_traits 29761: { 29761: using _Type = _Tp[_Nm]; 29761: using _Is_swappable = __is_swappable<_Tp>; 29761: using _Is_nothrow_swappable = __is_nothrow_swappable<_Tp>; 29761: }; 29761: 29761: template 29761: struct __array_traits<_Tp, 0> 29761: { 29761: 29761: struct _Type 29761: { 29761: 29761: __attribute__((__always_inline__,__noreturn__)) 29761: _Tp& operator[](size_t) const noexcept { __builtin_trap(); } 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: constexpr explicit operator _Tp*() const noexcept { return nullptr; } 29761: }; 29761: 29761: using _Is_swappable = true_type; 29761: using _Is_nothrow_swappable = true_type; 29761: }; 29761: # 99 "/usr/include/c++/14/array" 3 29761: template 29761: struct array 29761: { 29761: typedef _Tp value_type; 29761: typedef value_type* pointer; 29761: typedef const value_type* const_pointer; 29761: typedef value_type& reference; 29761: typedef const value_type& const_reference; 29761: typedef value_type* iterator; 29761: typedef const value_type* const_iterator; 29761: typedef std::size_t size_type; 29761: typedef std::ptrdiff_t difference_type; 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: 29761: 29761: typename __array_traits<_Tp, _Nm>::_Type _M_elems; 29761: 29761: 29761: 29761: 29761: void 29761: fill(const value_type& __u) 29761: { std::fill_n(begin(), size(), __u); } 29761: 29761: void 29761: swap(array& __other) 29761: noexcept(__array_traits<_Tp, _Nm>::_Is_nothrow_swappable::value) 29761: { std::swap_ranges(begin(), end(), __other.begin()); } 29761: 29761: 29761: [[__gnu__::__const__, __nodiscard__]] 29761: constexpr iterator 29761: begin() noexcept 29761: { return iterator(data()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_iterator 29761: begin() const noexcept 29761: { return const_iterator(data()); } 29761: 29761: [[__gnu__::__const__, __nodiscard__]] 29761: constexpr iterator 29761: end() noexcept 29761: { return iterator(data() + _Nm); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_iterator 29761: end() const noexcept 29761: { return const_iterator(data() + _Nm); } 29761: 29761: [[__gnu__::__const__, __nodiscard__]] 29761: constexpr reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(end()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: [[__gnu__::__const__, __nodiscard__]] 29761: constexpr reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(begin()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(data()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_iterator 29761: cend() const noexcept 29761: { return const_iterator(data() + _Nm); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29761: constexpr size_type 29761: size() const noexcept { return _Nm; } 29761: 29761: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29761: constexpr size_type 29761: max_size() const noexcept { return _Nm; } 29761: 29761: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29761: constexpr bool 29761: empty() const noexcept { return size() == 0; } 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr reference 29761: operator[](size_type __n) noexcept 29761: { 29761: ; 29761: return _M_elems[__n]; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reference 29761: operator[](size_type __n) const noexcept 29761: { 29761: 29761: ; 29761: 29761: return _M_elems[__n]; 29761: } 29761: 29761: constexpr reference 29761: at(size_type __n) 29761: { 29761: if (__n >= _Nm) 29761: std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 29761: , 29761: __n, _Nm); 29761: return _M_elems[__n]; 29761: } 29761: 29761: constexpr const_reference 29761: at(size_type __n) const 29761: { 29761: 29761: 29761: return __n < _Nm ? _M_elems[__n] 29761: : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 29761: , 29761: __n, _Nm), 29761: _M_elems[__n]); 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr reference 29761: front() noexcept 29761: { 29761: ; 29761: return _M_elems[(size_type)0]; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reference 29761: front() const noexcept 29761: { 29761: 29761: ; 29761: 29761: return _M_elems[(size_type)0]; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr reference 29761: back() noexcept 29761: { 29761: ; 29761: return _M_elems[_Nm - 1]; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reference 29761: back() const noexcept 29761: { 29761: 29761: ; 29761: 29761: return _M_elems[_Nm - 1]; 29761: } 29761: 29761: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29761: constexpr pointer 29761: data() noexcept 29761: { return static_cast(_M_elems); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_pointer 29761: data() const noexcept 29761: { return static_cast(_M_elems); } 29761: }; 29761: 29761: 29761: template 29761: array(_Tp, _Up...) 29761: -> array && ...), _Tp>, 29761: 1 + sizeof...(_Up)>; 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29761: { return std::__equal_aux1(__one.begin(), __one.end(), __two.begin()); } 29761: # 328 "/usr/include/c++/14/array" 3 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29761: { return !(__one == __two); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 29761: { 29761: return std::lexicographical_compare(__a.begin(), __a.end(), 29761: __b.begin(), __b.end()); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29761: { return __two < __one; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29761: { return !(__one > __two); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29761: { return !(__one < __two); } 29761: 29761: 29761: 29761: template 29761: 29761: inline 29761: 29761: 29761: __enable_if_t<__array_traits<_Tp, _Nm>::_Is_swappable::value> 29761: 29761: 29761: 29761: swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) 29761: noexcept(noexcept(__one.swap(__two))) 29761: { __one.swap(__two); } 29761: 29761: 29761: template 29761: __enable_if_t::_Is_swappable::value> 29761: swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: constexpr _Tp& 29761: get(array<_Tp, _Nm>& __arr) noexcept 29761: { 29761: static_assert(_Int < _Nm, "array index is within bounds"); 29761: return __arr._M_elems[_Int]; 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: constexpr _Tp&& 29761: get(array<_Tp, _Nm>&& __arr) noexcept 29761: { 29761: static_assert(_Int < _Nm, "array index is within bounds"); 29761: return std::move(std::get<_Int>(__arr)); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: constexpr const _Tp& 29761: get(const array<_Tp, _Nm>& __arr) noexcept 29761: { 29761: static_assert(_Int < _Nm, "array index is within bounds"); 29761: return __arr._M_elems[_Int]; 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: constexpr const _Tp&& 29761: get(const array<_Tp, _Nm>&& __arr) noexcept 29761: { 29761: static_assert(_Int < _Nm, "array index is within bounds"); 29761: return std::move(std::get<_Int>(__arr)); 29761: } 29761: # 490 "/usr/include/c++/14/array" 3 29761: template 29761: struct tuple_size> 29761: : public integral_constant { }; 29761: 29761: 29761: template 29761: struct tuple_element<_Ind, array<_Tp, _Nm>> 29761: { 29761: static_assert(_Ind < _Nm, "array index is in range"); 29761: using type = _Tp; 29761: }; 29761: 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> = _Nm; 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> = _Nm; 29761: 29761: 29761: template 29761: struct __is_tuple_like_impl> : true_type 29761: { }; 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/functional" 2 3 29761: # 88 "/usr/include/c++/14/functional" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 89 "/usr/include/c++/14/functional" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template struct _Placeholder { }; 29761: # 115 "/usr/include/c++/14/functional" 3 29761: template 29761: inline invoke_result_t<_Callable, _Args...> 29761: invoke(_Callable&& __fn, _Args&&... __args) 29761: noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 29761: { 29761: return std::__invoke(std::forward<_Callable>(__fn), 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 148 "/usr/include/c++/14/functional" 3 29761: template::value> 29761: class _Mem_fn_base 29761: : public _Mem_fn_traits<_MemFunPtr>::__maybe_type 29761: { 29761: using _Traits = _Mem_fn_traits<_MemFunPtr>; 29761: 29761: using _Arity = typename _Traits::__arity; 29761: using _Varargs = typename _Traits::__vararg; 29761: 29761: template 29761: friend struct _Bind_check_arity; 29761: 29761: _MemFunPtr _M_pmf; 29761: 29761: public: 29761: 29761: using result_type = typename _Traits::__result_type; 29761: 29761: explicit constexpr 29761: _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } 29761: 29761: template 29761: 29761: auto 29761: operator()(_Args&&... __args) const 29761: noexcept(noexcept( 29761: std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) 29761: -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) 29761: { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } 29761: }; 29761: 29761: 29761: template 29761: class _Mem_fn_base<_MemObjPtr, false> 29761: { 29761: using _Arity = integral_constant; 29761: using _Varargs = false_type; 29761: 29761: template 29761: friend struct _Bind_check_arity; 29761: 29761: _MemObjPtr _M_pm; 29761: 29761: public: 29761: explicit constexpr 29761: _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } 29761: 29761: template 29761: 29761: auto 29761: operator()(_Tp&& __obj) const 29761: noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) 29761: -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) 29761: { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } 29761: }; 29761: 29761: template 29761: struct _Mem_fn; 29761: 29761: template 29761: struct _Mem_fn<_Res _Class::*> 29761: : _Mem_fn_base<_Res _Class::*> 29761: { 29761: using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; 29761: }; 29761: # 241 "/usr/include/c++/14/functional" 3 29761: template 29761: 29761: inline _Mem_fn<_Tp _Class::*> 29761: mem_fn(_Tp _Class::* __pm) noexcept 29761: { 29761: return _Mem_fn<_Tp _Class::*>(__pm); 29761: } 29761: # 260 "/usr/include/c++/14/functional" 3 29761: template 29761: struct is_bind_expression 29761: : public false_type { }; 29761: # 272 "/usr/include/c++/14/functional" 3 29761: template 29761: struct is_placeholder 29761: : public integral_constant 29761: { }; 29761: 29761: 29761: template inline constexpr bool is_bind_expression_v 29761: = is_bind_expression<_Tp>::value; 29761: template inline constexpr int is_placeholder_v 29761: = is_placeholder<_Tp>::value; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace placeholders 29761: { 29761: # 301 "/usr/include/c++/14/functional" 3 29761: inline const _Placeholder<1> _1; 29761: inline const _Placeholder<2> _2; 29761: inline const _Placeholder<3> _3; 29761: inline const _Placeholder<4> _4; 29761: inline const _Placeholder<5> _5; 29761: inline const _Placeholder<6> _6; 29761: inline const _Placeholder<7> _7; 29761: inline const _Placeholder<8> _8; 29761: inline const _Placeholder<9> _9; 29761: inline const _Placeholder<10> _10; 29761: inline const _Placeholder<11> _11; 29761: inline const _Placeholder<12> _12; 29761: inline const _Placeholder<13> _13; 29761: inline const _Placeholder<14> _14; 29761: inline const _Placeholder<15> _15; 29761: inline const _Placeholder<16> _16; 29761: inline const _Placeholder<17> _17; 29761: inline const _Placeholder<18> _18; 29761: inline const _Placeholder<19> _19; 29761: inline const _Placeholder<20> _20; 29761: inline const _Placeholder<21> _21; 29761: inline const _Placeholder<22> _22; 29761: inline const _Placeholder<23> _23; 29761: inline const _Placeholder<24> _24; 29761: inline const _Placeholder<25> _25; 29761: inline const _Placeholder<26> _26; 29761: inline const _Placeholder<27> _27; 29761: inline const _Placeholder<28> _28; 29761: inline const _Placeholder<29> _29; 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_placeholder<_Placeholder<_Num> > 29761: : public integral_constant 29761: { }; 29761: 29761: template 29761: struct is_placeholder > 29761: : public integral_constant 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: using _Safe_tuple_element_t 29761: = typename enable_if<(__i < tuple_size<_Tuple>::value), 29761: tuple_element<__i, _Tuple>>::type::type; 29761: # 369 "/usr/include/c++/14/functional" 3 29761: template::value, 29761: bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> 29761: class _Mu; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Mu, false, false> 29761: { 29761: public: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _Tp& 29761: operator()(_CVRef& __arg, _Tuple&) const volatile 29761: { return __arg.get(); } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Mu<_Arg, true, false> 29761: { 29761: public: 29761: template 29761: 29761: auto 29761: operator()(_CVArg& __arg, 29761: tuple<_Args...>& __tuple) const volatile 29761: -> decltype(__arg(declval<_Args>()...)) 29761: { 29761: 29761: typedef typename _Build_index_tuple::__type 29761: _Indexes; 29761: return this->__call(__arg, __tuple, _Indexes()); 29761: } 29761: 29761: private: 29761: 29761: 29761: template 29761: 29761: auto 29761: __call(_CVArg& __arg, tuple<_Args...>& __tuple, 29761: const _Index_tuple<_Indexes...>&) const volatile 29761: -> decltype(__arg(declval<_Args>()...)) 29761: { 29761: return __arg(std::get<_Indexes>(std::move(__tuple))...); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Mu<_Arg, false, true> 29761: { 29761: public: 29761: template 29761: 29761: _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& 29761: operator()(const volatile _Arg&, _Tuple& __tuple) const volatile 29761: { 29761: return 29761: ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Mu<_Arg, false, false> 29761: { 29761: public: 29761: template 29761: 29761: _CVArg&& 29761: operator()(_CVArg&& __arg, _Tuple&) const volatile 29761: { return std::forward<_CVArg>(__arg); } 29761: }; 29761: 29761: 29761: template 29761: inline auto 29761: __volget(volatile tuple<_Tp...>& __tuple) 29761: -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& 29761: { return std::get<_Ind>(const_cast&>(__tuple)); } 29761: 29761: 29761: template 29761: inline auto 29761: __volget(const volatile tuple<_Tp...>& __tuple) 29761: -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& 29761: { return std::get<_Ind>(const_cast&>(__tuple)); } 29761: # 494 "/usr/include/c++/14/functional" 3 29761: template 29761: class _Bind; 29761: 29761: template 29761: class _Bind<_Functor(_Bound_args...)> 29761: : public _Weak_result_type<_Functor> 29761: { 29761: typedef typename _Build_index_tuple::__type 29761: _Bound_indexes; 29761: 29761: _Functor _M_f; 29761: tuple<_Bound_args...> _M_bound_args; 29761: 29761: 29761: template 29761: 29761: _Result 29761: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 29761: { 29761: return std::__invoke(_M_f, 29761: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 29761: ); 29761: } 29761: 29761: 29761: template 29761: 29761: _Result 29761: __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 29761: { 29761: return std::__invoke(_M_f, 29761: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 29761: ); 29761: } 29761: 29761: 29761: 29761: template 29761: _Result 29761: __call_v(tuple<_Args...>&& __args, 29761: _Index_tuple<_Indexes...>) volatile 29761: { 29761: return std::__invoke(_M_f, 29761: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 29761: ); 29761: } 29761: 29761: 29761: template 29761: _Result 29761: __call_c_v(tuple<_Args...>&& __args, 29761: _Index_tuple<_Indexes...>) const volatile 29761: { 29761: return std::__invoke(_M_f, 29761: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 29761: ); 29761: } 29761: 29761: 29761: template 29761: using _Mu_type = decltype( 29761: _Mu::type>()( 29761: std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); 29761: 29761: template 29761: using _Res_type_impl 29761: = __invoke_result_t<_Fn&, _Mu_type<_BArgs, _CallArgs>&&...>; 29761: 29761: template 29761: using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; 29761: 29761: template 29761: using __dependent = typename 29761: enable_if::value+1), _Functor>::type; 29761: 29761: template class __cv_quals> 29761: using _Res_type_cv = _Res_type_impl< 29761: typename __cv_quals<__dependent<_CallArgs>>::type, 29761: _CallArgs, 29761: typename __cv_quals<_Bound_args>::type...>; 29761: 29761: public: 29761: template 29761: explicit 29761: _Bind(const _Functor& __f, _Args&&... __args) 29761: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: explicit 29761: _Bind(_Functor&& __f, _Args&&... __args) 29761: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: _Bind(const _Bind&) = default; 29761: _Bind(_Bind&&) = default; 29761: 29761: 29761: template>> 29761: 29761: _Result 29761: operator()(_Args&&... __args) 29761: { 29761: return this->__call<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: template, add_const>> 29761: 29761: _Result 29761: operator()(_Args&&... __args) const 29761: { 29761: return this->__call_c<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: 29761: template, add_volatile>> 29761: [[deprecated("std::bind does not support volatile in C++17")]] 29761: _Result 29761: operator()(_Args&&... __args) volatile 29761: { 29761: return this->__call_v<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: template, add_cv>> 29761: [[deprecated("std::bind does not support volatile in C++17")]] 29761: _Result 29761: operator()(_Args&&... __args) const volatile 29761: { 29761: return this->__call_c_v<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: }; 29761: 29761: 29761: template 29761: class _Bind_result; 29761: 29761: template 29761: class _Bind_result<_Result, _Functor(_Bound_args...)> 29761: { 29761: typedef typename _Build_index_tuple::__type 29761: _Bound_indexes; 29761: 29761: _Functor _M_f; 29761: tuple<_Bound_args...> _M_bound_args; 29761: 29761: 29761: template 29761: 29761: _Res 29761: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 29761: { 29761: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29761: (std::get<_Indexes>(_M_bound_args), __args)...); 29761: } 29761: 29761: 29761: template 29761: 29761: _Res 29761: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 29761: { 29761: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29761: (std::get<_Indexes>(_M_bound_args), __args)...); 29761: } 29761: 29761: 29761: 29761: template 29761: _Res 29761: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 29761: { 29761: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29761: (__volget<_Indexes>(_M_bound_args), __args)...); 29761: } 29761: 29761: 29761: template 29761: _Res 29761: __call(tuple<_Args...>&& __args, 29761: _Index_tuple<_Indexes...>) const volatile 29761: { 29761: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29761: (__volget<_Indexes>(_M_bound_args), __args)...); 29761: } 29761: 29761: 29761: public: 29761: typedef _Result result_type; 29761: 29761: template 29761: explicit 29761: _Bind_result(const _Functor& __f, _Args&&... __args) 29761: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: explicit 29761: _Bind_result(_Functor&& __f, _Args&&... __args) 29761: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: _Bind_result(const _Bind_result&) = default; 29761: _Bind_result(_Bind_result&&) = default; 29761: 29761: 29761: template 29761: 29761: result_type 29761: operator()(_Args&&... __args) 29761: { 29761: return this->__call<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: template 29761: 29761: result_type 29761: operator()(_Args&&... __args) const 29761: { 29761: return this->__call<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: 29761: template 29761: [[deprecated("std::bind does not support volatile in C++17")]] 29761: result_type 29761: operator()(_Args&&... __args) volatile 29761: { 29761: return this->__call<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: template 29761: [[deprecated("std::bind does not support volatile in C++17")]] 29761: result_type 29761: operator()(_Args&&... __args) const volatile 29761: { 29761: return this->__call<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: 29761: 29761: }; 29761: # 771 "/usr/include/c++/14/functional" 3 29761: template 29761: struct is_bind_expression<_Bind<_Signature> > 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression > 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression > 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression> 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression<_Bind_result<_Result, _Signature>> 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression> 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression> 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression> 29761: : public true_type { }; 29761: 29761: template 29761: struct _Bind_check_arity { }; 29761: 29761: template 29761: struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> 29761: { 29761: static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), 29761: "Wrong number of arguments for function"); 29761: }; 29761: 29761: template 29761: struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> 29761: { 29761: static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), 29761: "Wrong number of arguments for function"); 29761: }; 29761: 29761: template 29761: struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> 29761: { 29761: using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; 29761: using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; 29761: static_assert(_Varargs::value 29761: ? sizeof...(_BoundArgs) >= _Arity::value + 1 29761: : sizeof...(_BoundArgs) == _Arity::value + 1, 29761: "Wrong number of arguments for pointer-to-member"); 29761: }; 29761: 29761: 29761: 29761: 29761: template::type> 29761: using __is_socketlike = __or_, is_enum<_Tp2>>; 29761: 29761: template 29761: struct _Bind_helper 29761: : _Bind_check_arity::type, _BoundArgs...> 29761: { 29761: typedef typename decay<_Func>::type __func_type; 29761: typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Bind_helper 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline typename 29761: _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type 29761: bind(_Func&& __f, _BoundArgs&&... __args) 29761: { 29761: typedef _Bind_helper __helper_type; 29761: return typename __helper_type::type(std::forward<_Func>(__f), 29761: std::forward<_BoundArgs>(__args)...); 29761: } 29761: 29761: template 29761: struct _Bindres_helper 29761: : _Bind_check_arity::type, _BoundArgs...> 29761: { 29761: typedef typename decay<_Func>::type __functor_type; 29761: typedef _Bind_result<_Result, 29761: __functor_type(typename decay<_BoundArgs>::type...)> 29761: type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline 29761: typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type 29761: bind(_Func&& __f, _BoundArgs&&... __args) 29761: { 29761: typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; 29761: return typename __helper_type::type(std::forward<_Func>(__f), 29761: std::forward<_BoundArgs>(__args)...); 29761: } 29761: # 1121 "/usr/include/c++/14/functional" 3 29761: template 29761: class _Not_fn 29761: { 29761: template 29761: using __inv_res_t = typename __invoke_result<_Fn2, _Args...>::type; 29761: 29761: template 29761: static decltype(!std::declval<_Tp>()) 29761: _S_not() noexcept(noexcept(!std::declval<_Tp>())); 29761: 29761: public: 29761: template 29761: constexpr 29761: _Not_fn(_Fn2&& __fn, int) 29761: : _M_fn(std::forward<_Fn2>(__fn)) { } 29761: 29761: _Not_fn(const _Not_fn& __fn) = default; 29761: _Not_fn(_Not_fn&& __fn) = default; 29761: ~_Not_fn() = default; 29761: # 1161 "/usr/include/c++/14/functional" 3 29761: template::value>> decltype(_S_not<__inv_res_t<_Fn &, _Args...>>()) operator()(_Args&&... __args) & noexcept(__is_nothrow_invocable<_Fn &, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn &, _Args...>>())) { return !std::__invoke(std::forward< _Fn & >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) & = delete; 29761: template::value>> decltype(_S_not<__inv_res_t<_Fn const &, _Args...>>()) operator()(_Args&&... __args) const & noexcept(__is_nothrow_invocable<_Fn const &, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn const &, _Args...>>())) { return !std::__invoke(std::forward< _Fn const & >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) const & = delete; 29761: template::value>> decltype(_S_not<__inv_res_t<_Fn &&, _Args...>>()) operator()(_Args&&... __args) && noexcept(__is_nothrow_invocable<_Fn &&, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn &&, _Args...>>())) { return !std::__invoke(std::forward< _Fn && >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) && = delete; 29761: template::value>> decltype(_S_not<__inv_res_t<_Fn const &&, _Args...>>()) operator()(_Args&&... __args) const && noexcept(__is_nothrow_invocable<_Fn const &&, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn const &&, _Args...>>())) { return !std::__invoke(std::forward< _Fn const && >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) const && = delete; 29761: 29761: 29761: private: 29761: _Fn _M_fn; 29761: }; 29761: 29761: template 29761: struct __is_byte_like : false_type { }; 29761: 29761: template 29761: struct __is_byte_like<_Tp, equal_to<_Tp>> 29761: : __bool_constant::value> { }; 29761: 29761: template 29761: struct __is_byte_like<_Tp, equal_to> 29761: : __bool_constant::value> { }; 29761: 29761: 29761: 29761: enum class byte : unsigned char; 29761: 29761: template<> 29761: struct __is_byte_like> 29761: : true_type { }; 29761: 29761: template<> 29761: struct __is_byte_like> 29761: : true_type { }; 29761: # 1209 "/usr/include/c++/14/functional" 3 29761: template 29761: 29761: inline auto 29761: not_fn(_Fn&& __fn) 29761: noexcept(std::is_nothrow_constructible, _Fn&&>::value) 29761: { 29761: return _Not_fn>{std::forward<_Fn>(__fn), 0}; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: class default_searcher 29761: { 29761: public: 29761: 29761: default_searcher(_ForwardIterator1 __pat_first, 29761: _ForwardIterator1 __pat_last, 29761: _BinaryPredicate __pred = _BinaryPredicate()) 29761: : _M_m(__pat_first, __pat_last, std::move(__pred)) 29761: { } 29761: 29761: template 29761: 29761: pair<_ForwardIterator2, _ForwardIterator2> 29761: operator()(_ForwardIterator2 __first, _ForwardIterator2 __last) const 29761: { 29761: _ForwardIterator2 __first_ret = 29761: std::search(__first, __last, std::get<0>(_M_m), std::get<1>(_M_m), 29761: std::get<2>(_M_m)); 29761: auto __ret = std::make_pair(__first_ret, __first_ret); 29761: if (__ret.first != __last) 29761: std::advance(__ret.second, std::distance(std::get<0>(_M_m), 29761: std::get<1>(_M_m))); 29761: return __ret; 29761: } 29761: 29761: private: 29761: tuple<_ForwardIterator1, _ForwardIterator1, _BinaryPredicate> _M_m; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __boyer_moore_map_base 29761: { 29761: template 29761: __boyer_moore_map_base(_RAIter __pat, size_t __patlen, 29761: _Hash&& __hf, _Pred&& __pred) 29761: : _M_bad_char{ __patlen, std::move(__hf), std::move(__pred) } 29761: { 29761: if (__patlen > 0) 29761: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 29761: _M_bad_char[__pat[__i]] = __patlen - 1 - __i; 29761: } 29761: 29761: using __diff_type = _Tp; 29761: 29761: __diff_type 29761: _M_lookup(_Key __key, __diff_type __not_found) const 29761: { 29761: auto __iter = _M_bad_char.find(__key); 29761: if (__iter == _M_bad_char.end()) 29761: return __not_found; 29761: return __iter->second; 29761: } 29761: 29761: _Pred 29761: _M_pred() const { return _M_bad_char.key_eq(); } 29761: 29761: std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; 29761: }; 29761: 29761: template 29761: struct __boyer_moore_array_base 29761: { 29761: template 29761: __boyer_moore_array_base(_RAIter __pat, size_t __patlen, 29761: _Unused&&, _Pred&& __pred) 29761: : _M_bad_char{ array<_Tp, _Len>{}, std::move(__pred) } 29761: { 29761: std::get<0>(_M_bad_char).fill(__patlen); 29761: if (__patlen > 0) 29761: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 29761: { 29761: auto __ch = __pat[__i]; 29761: using _UCh = make_unsigned_t; 29761: auto __uch = static_cast<_UCh>(__ch); 29761: std::get<0>(_M_bad_char)[__uch] = __patlen - 1 - __i; 29761: } 29761: } 29761: 29761: using __diff_type = _Tp; 29761: 29761: template 29761: __diff_type 29761: _M_lookup(_Key __key, __diff_type __not_found) const 29761: { 29761: auto __ukey = static_cast>(__key); 29761: if (__ukey >= _Len) 29761: return __not_found; 29761: return std::get<0>(_M_bad_char)[__ukey]; 29761: } 29761: 29761: const _Pred& 29761: _M_pred() const { return std::get<1>(_M_bad_char); } 29761: 29761: tuple, _Pred> _M_bad_char; 29761: }; 29761: 29761: 29761: 29761: template::value_type, 29761: typename _Diff = typename iterator_traits<_RAIter>::difference_type> 29761: using __boyer_moore_base_t 29761: = __conditional_t<__is_byte_like<_Val, _Pred>::value, 29761: __boyer_moore_array_base<_Diff, 256, _Pred>, 29761: __boyer_moore_map_base<_Val, _Diff, _Hash, _Pred>>; 29761: 29761: template::value_type>, 29761: typename _BinaryPredicate = equal_to<>> 29761: class boyer_moore_searcher 29761: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 29761: { 29761: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 29761: using typename _Base::__diff_type; 29761: 29761: public: 29761: boyer_moore_searcher(_RAIter __pat_first, _RAIter __pat_last, 29761: _Hash __hf = _Hash(), 29761: _BinaryPredicate __pred = _BinaryPredicate()); 29761: 29761: template 29761: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29761: operator()(_RandomAccessIterator2 __first, 29761: _RandomAccessIterator2 __last) const; 29761: 29761: private: 29761: bool 29761: _M_is_prefix(_RAIter __word, __diff_type __len, 29761: __diff_type __pos) 29761: { 29761: const auto& __pred = this->_M_pred(); 29761: __diff_type __suffixlen = __len - __pos; 29761: for (__diff_type __i = 0; __i < __suffixlen; ++__i) 29761: if (!__pred(__word[__i], __word[__pos + __i])) 29761: return false; 29761: return true; 29761: } 29761: 29761: __diff_type 29761: _M_suffix_length(_RAIter __word, __diff_type __len, 29761: __diff_type __pos) 29761: { 29761: const auto& __pred = this->_M_pred(); 29761: __diff_type __i = 0; 29761: while (__pred(__word[__pos - __i], __word[__len - 1 - __i]) 29761: && __i < __pos) 29761: { 29761: ++__i; 29761: } 29761: return __i; 29761: } 29761: 29761: template 29761: __diff_type 29761: _M_bad_char_shift(_Tp __c) const 29761: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 29761: 29761: _RAIter _M_pat; 29761: _RAIter _M_pat_end; 29761: std::vector<__diff_type> _M_good_suffix; 29761: }; 29761: 29761: template::value_type>, 29761: typename _BinaryPredicate = equal_to<>> 29761: class boyer_moore_horspool_searcher 29761: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 29761: { 29761: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 29761: using typename _Base::__diff_type; 29761: 29761: public: 29761: boyer_moore_horspool_searcher(_RAIter __pat, 29761: _RAIter __pat_end, 29761: _Hash __hf = _Hash(), 29761: _BinaryPredicate __pred 29761: = _BinaryPredicate()) 29761: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 29761: _M_pat(__pat), _M_pat_end(__pat_end) 29761: { } 29761: 29761: template 29761: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29761: operator()(_RandomAccessIterator2 __first, 29761: _RandomAccessIterator2 __last) const 29761: { 29761: const auto& __pred = this->_M_pred(); 29761: auto __patlen = _M_pat_end - _M_pat; 29761: if (__patlen == 0) 29761: return std::make_pair(__first, __first); 29761: auto __len = __last - __first; 29761: while (__len >= __patlen) 29761: { 29761: for (auto __scan = __patlen - 1; 29761: __pred(__first[__scan], _M_pat[__scan]); --__scan) 29761: if (__scan == 0) 29761: return std::make_pair(__first, __first + __patlen); 29761: auto __shift = _M_bad_char_shift(__first[__patlen - 1]); 29761: __len -= __shift; 29761: __first += __shift; 29761: } 29761: return std::make_pair(__last, __last); 29761: } 29761: 29761: private: 29761: template 29761: __diff_type 29761: _M_bad_char_shift(_Tp __c) const 29761: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 29761: 29761: _RAIter _M_pat; 29761: _RAIter _M_pat_end; 29761: }; 29761: 29761: template 29761: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 29761: boyer_moore_searcher(_RAIter __pat, _RAIter __pat_end, 29761: _Hash __hf, _BinaryPredicate __pred) 29761: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 29761: _M_pat(__pat), _M_pat_end(__pat_end), _M_good_suffix(__pat_end - __pat) 29761: { 29761: auto __patlen = __pat_end - __pat; 29761: if (__patlen == 0) 29761: return; 29761: __diff_type __last_prefix = __patlen - 1; 29761: for (__diff_type __p = __patlen - 1; __p >= 0; --__p) 29761: { 29761: if (_M_is_prefix(__pat, __patlen, __p + 1)) 29761: __last_prefix = __p + 1; 29761: _M_good_suffix[__p] = __last_prefix + (__patlen - 1 - __p); 29761: } 29761: for (__diff_type __p = 0; __p < __patlen - 1; ++__p) 29761: { 29761: auto __slen = _M_suffix_length(__pat, __patlen, __p); 29761: auto __pos = __patlen - 1 - __slen; 29761: if (!__pred(__pat[__p - __slen], __pat[__pos])) 29761: _M_good_suffix[__pos] = __patlen - 1 - __p + __slen; 29761: } 29761: } 29761: 29761: template 29761: template 29761: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29761: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 29761: operator()(_RandomAccessIterator2 __first, 29761: _RandomAccessIterator2 __last) const 29761: { 29761: auto __patlen = _M_pat_end - _M_pat; 29761: if (__patlen == 0) 29761: return std::make_pair(__first, __first); 29761: const auto& __pred = this->_M_pred(); 29761: __diff_type __i = __patlen - 1; 29761: auto __stringlen = __last - __first; 29761: while (__i < __stringlen) 29761: { 29761: __diff_type __j = __patlen - 1; 29761: while (__j >= 0 && __pred(__first[__i], _M_pat[__j])) 29761: { 29761: --__i; 29761: --__j; 29761: } 29761: if (__j < 0) 29761: { 29761: const auto __match = __first + __i + 1; 29761: return std::make_pair(__match, __match + __patlen); 29761: } 29761: __i += std::max(_M_bad_char_shift(__first[__i]), 29761: _M_good_suffix[__j]); 29761: } 29761: return std::make_pair(__last, __last); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/usr/include/c++/14/memory" 1 3 29761: # 47 "/usr/include/c++/14/memory" 3 29761: 29761: # 48 "/usr/include/c++/14/memory" 3 29761: # 66 "/usr/include/c++/14/memory" 3 29761: # 1 "/usr/include/c++/14/bits/stl_tempbuf.h" 1 3 29761: # 65 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: namespace __detail 29761: { 29761: template 29761: inline void 29761: __return_temporary_buffer(_Tp* __p, 29761: size_t __len __attribute__((__unused__))) 29761: { 29761: 29761: ::operator delete(__p, __len * sizeof(_Tp)); 29761: 29761: 29761: 29761: } 29761: } 29761: # 101 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29761: template 29761: [[__deprecated__]] 29761: pair<_Tp*, ptrdiff_t> 29761: get_temporary_buffer(ptrdiff_t __len) noexcept 29761: { 29761: const ptrdiff_t __max = 29761: __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 29761: if (__len > __max) 29761: __len = __max; 29761: 29761: while (__len > 0) 29761: { 29761: _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), 29761: std::nothrow)); 29761: if (__tmp != 0) 29761: return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); 29761: __len = __len == 1 ? 0 : ((__len + 1) / 2); 29761: } 29761: return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); 29761: } 29761: # 129 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29761: template 29761: inline void 29761: return_temporary_buffer(_Tp* __p) 29761: { ::operator delete(__p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Temporary_buffer 29761: { 29761: 29761: 29761: 29761: public: 29761: typedef _Tp value_type; 29761: typedef value_type* pointer; 29761: typedef pointer iterator; 29761: typedef ptrdiff_t size_type; 29761: 29761: protected: 29761: size_type _M_original_len; 29761: size_type _M_len; 29761: pointer _M_buffer; 29761: 29761: public: 29761: 29761: size_type 29761: size() const 29761: { return _M_len; } 29761: 29761: 29761: size_type 29761: requested_size() const 29761: { return _M_original_len; } 29761: 29761: 29761: iterator 29761: begin() 29761: { return _M_buffer; } 29761: 29761: 29761: iterator 29761: end() 29761: { return _M_buffer + _M_len; } 29761: 29761: 29761: 29761: 29761: 29761: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); 29761: 29761: ~_Temporary_buffer() 29761: { 29761: std::_Destroy(_M_buffer, _M_buffer + _M_len); 29761: std::__detail::__return_temporary_buffer(_M_buffer, _M_len); 29761: } 29761: 29761: private: 29761: 29761: _Temporary_buffer(const _Temporary_buffer&); 29761: 29761: void 29761: operator=(const _Temporary_buffer&); 29761: }; 29761: 29761: 29761: template 29761: struct __uninitialized_construct_buf_dispatch 29761: { 29761: template 29761: static void 29761: __ucr(_Pointer __first, _Pointer __last, 29761: _ForwardIterator __seed) 29761: { 29761: if (__first == __last) 29761: return; 29761: 29761: _Pointer __cur = __first; 29761: try 29761: { 29761: std::_Construct(std::__addressof(*__first), 29761: std::move(*__seed)); 29761: _Pointer __prev = __cur; 29761: ++__cur; 29761: for(; __cur != __last; ++__cur, ++__prev) 29761: std::_Construct(std::__addressof(*__cur), 29761: std::move(*__prev)); 29761: *__seed = std::move(*__prev); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_construct_buf_dispatch 29761: { 29761: template 29761: static void 29761: __ucr(_Pointer, _Pointer, _ForwardIterator) { } 29761: }; 29761: # 247 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29761: template 29761: inline void 29761: __uninitialized_construct_buf(_Pointer __first, _Pointer __last, 29761: _ForwardIterator __seed) 29761: { 29761: typedef typename std::iterator_traits<_Pointer>::value_type 29761: _ValueType; 29761: 29761: std::__uninitialized_construct_buf_dispatch< 29761: __has_trivial_constructor(_ValueType)>:: 29761: __ucr(__first, __last, __seed); 29761: } 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template 29761: _Temporary_buffer<_ForwardIterator, _Tp>:: 29761: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) 29761: : _M_original_len(__original_len), _M_len(0), _M_buffer(0) 29761: { 29761: std::pair __p( 29761: std::get_temporary_buffer(_M_original_len)); 29761: 29761: if (__p.first) 29761: { 29761: try 29761: { 29761: std::__uninitialized_construct_buf(__p.first, __p.first + __p.second, 29761: __seed); 29761: _M_buffer = __p.first; 29761: _M_len = __p.second; 29761: } 29761: catch(...) 29761: { 29761: std::__detail::__return_temporary_buffer(__p.first, __p.second); 29761: throw; 29761: } 29761: } 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: } 29761: # 67 "/usr/include/c++/14/memory" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 1 3 29761: # 59 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: # 64 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class [[__deprecated__]] raw_storage_iterator 29761: : public iterator 29761: { 29761: protected: 29761: _OutputIterator _M_iter; 29761: 29761: public: 29761: explicit 29761: raw_storage_iterator(_OutputIterator __x) 29761: : _M_iter(__x) {} 29761: 29761: raw_storage_iterator& 29761: operator*() { return *this; } 29761: 29761: raw_storage_iterator& 29761: operator=(const _Tp& __element) 29761: { 29761: std::_Construct(std::__addressof(*_M_iter), __element); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: raw_storage_iterator& 29761: operator=(_Tp&& __element) 29761: { 29761: std::_Construct(std::__addressof(*_M_iter), std::move(__element)); 29761: return *this; 29761: } 29761: 29761: 29761: raw_storage_iterator& 29761: operator++() 29761: { 29761: ++_M_iter; 29761: return *this; 29761: } 29761: 29761: raw_storage_iterator 29761: operator++(int) 29761: { 29761: raw_storage_iterator __tmp = *this; 29761: ++_M_iter; 29761: return __tmp; 29761: } 29761: 29761: 29761: 29761: _OutputIterator base() const { return _M_iter; } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: } 29761: # 71 "/usr/include/c++/14/memory" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/align.h" 1 3 29761: # 36 "/usr/include/c++/14/bits/align.h" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 37 "/usr/include/c++/14/bits/align.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 60 "/usr/include/c++/14/bits/align.h" 3 29761: inline void* 29761: align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept 29761: { 29761: if (__space < __size) 29761: return nullptr; 29761: const auto __intptr = reinterpret_cast(__ptr); 29761: const auto __aligned = (__intptr - 1u + __align) & -__align; 29761: const auto __diff = __aligned - __intptr; 29761: if (__diff > (__space - __size)) 29761: return nullptr; 29761: else 29761: { 29761: __space -= __diff; 29761: return __ptr = reinterpret_cast(__aligned); 29761: } 29761: } 29761: # 106 "/usr/include/c++/14/bits/align.h" 3 29761: 29761: } 29761: # 75 "/usr/include/c++/14/memory" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/unique_ptr.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 57 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template class auto_ptr; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct default_delete 29761: { 29761: 29761: constexpr default_delete() noexcept = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template>> 29761: 29761: default_delete(const default_delete<_Up>&) noexcept { } 29761: 29761: 29761: 29761: void 29761: operator()(_Tp* __ptr) const 29761: { 29761: static_assert(!is_void<_Tp>::value, 29761: "can't delete pointer to incomplete type"); 29761: static_assert(sizeof(_Tp)>0, 29761: "can't delete pointer to incomplete type"); 29761: delete __ptr; 29761: } 29761: }; 29761: # 105 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: struct default_delete<_Tp[]> 29761: { 29761: public: 29761: 29761: constexpr default_delete() noexcept = default; 29761: # 121 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template>> 29761: 29761: default_delete(const default_delete<_Up[]>&) noexcept { } 29761: 29761: 29761: template 29761: 29761: typename enable_if::value>::type 29761: operator()(_Up* __ptr) const 29761: { 29761: static_assert(sizeof(_Tp)>0, 29761: "can't delete pointer to incomplete type"); 29761: delete [] __ptr; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: class __uniq_ptr_impl 29761: { 29761: template 29761: struct _Ptr 29761: { 29761: using type = _Up*; 29761: }; 29761: 29761: template 29761: struct 29761: _Ptr<_Up, _Ep, __void_t::type::pointer>> 29761: { 29761: using type = typename remove_reference<_Ep>::type::pointer; 29761: }; 29761: 29761: public: 29761: using _DeleterConstraint = enable_if< 29761: __and_<__not_>, 29761: is_default_constructible<_Dp>>::value>; 29761: 29761: using pointer = typename _Ptr<_Tp, _Dp>::type; 29761: 29761: static_assert( !is_rvalue_reference<_Dp>::value, 29761: "unique_ptr's deleter type must be a function object type" 29761: " or an lvalue reference type" ); 29761: 29761: __uniq_ptr_impl() = default; 29761: 29761: __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } 29761: 29761: template 29761: 29761: __uniq_ptr_impl(pointer __p, _Del&& __d) 29761: : _M_t(__p, std::forward<_Del>(__d)) { } 29761: 29761: 29761: __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept 29761: : _M_t(std::move(__u._M_t)) 29761: { __u._M_ptr() = nullptr; } 29761: 29761: 29761: __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept 29761: { 29761: reset(__u.release()); 29761: _M_deleter() = std::forward<_Dp>(__u._M_deleter()); 29761: return *this; 29761: } 29761: 29761: 29761: pointer& _M_ptr() noexcept { return std::get<0>(_M_t); } 29761: 29761: pointer _M_ptr() const noexcept { return std::get<0>(_M_t); } 29761: 29761: _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); } 29761: 29761: const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); } 29761: 29761: 29761: void reset(pointer __p) noexcept 29761: { 29761: const pointer __old_p = _M_ptr(); 29761: _M_ptr() = __p; 29761: if (__old_p) 29761: _M_deleter()(__old_p); 29761: } 29761: 29761: 29761: pointer release() noexcept 29761: { 29761: pointer __p = _M_ptr(); 29761: _M_ptr() = nullptr; 29761: return __p; 29761: } 29761: 29761: 29761: void 29761: swap(__uniq_ptr_impl& __rhs) noexcept 29761: { 29761: using std::swap; 29761: swap(this->_M_ptr(), __rhs._M_ptr()); 29761: swap(this->_M_deleter(), __rhs._M_deleter()); 29761: } 29761: 29761: private: 29761: tuple _M_t; 29761: }; 29761: 29761: 29761: template ::value, 29761: bool = is_move_assignable<_Dp>::value> 29761: struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp> 29761: { 29761: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29761: __uniq_ptr_data(__uniq_ptr_data&&) = default; 29761: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 29761: }; 29761: 29761: template 29761: struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp> 29761: { 29761: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29761: __uniq_ptr_data(__uniq_ptr_data&&) = default; 29761: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 29761: }; 29761: 29761: template 29761: struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp> 29761: { 29761: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29761: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 29761: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 29761: }; 29761: 29761: template 29761: struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp> 29761: { 29761: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29761: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 29761: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template > 29761: class unique_ptr 29761: { 29761: template 29761: using _DeleterConstraint = 29761: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 29761: 29761: __uniq_ptr_data<_Tp, _Dp> _M_t; 29761: 29761: public: 29761: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 29761: using element_type = _Tp; 29761: using deleter_type = _Dp; 29761: 29761: private: 29761: 29761: 29761: template 29761: using __safe_conversion_up = __and_< 29761: is_convertible::pointer, pointer>, 29761: __not_> 29761: >; 29761: 29761: public: 29761: 29761: 29761: 29761: template> 29761: constexpr unique_ptr() noexcept 29761: : _M_t() 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: 29761: explicit 29761: unique_ptr(pointer __p) noexcept 29761: : _M_t(__p) 29761: { } 29761: # 322 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template>> 29761: 29761: unique_ptr(pointer __p, const deleter_type& __d) noexcept 29761: : _M_t(__p, __d) { } 29761: # 335 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template>> 29761: 29761: unique_ptr(pointer __p, 29761: __enable_if_t::value, 29761: _Del&&> __d) noexcept 29761: : _M_t(__p, std::move(__d)) 29761: { } 29761: 29761: template::type> 29761: 29761: unique_ptr(pointer, 29761: __enable_if_t::value, 29761: _DelUnref&&>) = delete; 29761: 29761: 29761: template> 29761: constexpr unique_ptr(nullptr_t) noexcept 29761: : _M_t() 29761: { } 29761: 29761: 29761: 29761: 29761: unique_ptr(unique_ptr&&) = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template, 29761: __conditional_t::value, 29761: is_same<_Ep, _Dp>, 29761: is_convertible<_Ep, _Dp>>>> 29761: 29761: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 29761: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 29761: { } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: template, 29761: is_same<_Dp, default_delete<_Tp>>>> 29761: unique_ptr(auto_ptr<_Up>&& __u) noexcept; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~unique_ptr() noexcept 29761: { 29761: static_assert(__is_invocable::value, 29761: "unique_ptr's deleter must be invocable with a pointer"); 29761: auto& __ptr = _M_t._M_ptr(); 29761: if (__ptr != nullptr) 29761: get_deleter()(std::move(__ptr)); 29761: __ptr = pointer(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: unique_ptr& operator=(unique_ptr&&) = default; 29761: # 418 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: 29761: typename enable_if< __and_< 29761: __safe_conversion_up<_Up, _Ep>, 29761: is_assignable 29761: >::value, 29761: unique_ptr&>::type 29761: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 29761: { 29761: reset(__u.release()); 29761: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: unique_ptr& 29761: operator=(nullptr_t) noexcept 29761: { 29761: reset(); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: typename add_lvalue_reference::type 29761: operator*() const noexcept(noexcept(*std::declval())) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) std::__glibcxx_assert_fail(); } while (false); 29761: return *get(); 29761: } 29761: 29761: 29761: 29761: pointer 29761: operator->() const noexcept 29761: { 29761: ; 29761: return get(); 29761: } 29761: 29761: 29761: 29761: pointer 29761: get() const noexcept 29761: { return _M_t._M_ptr(); } 29761: 29761: 29761: 29761: deleter_type& 29761: get_deleter() noexcept 29761: { return _M_t._M_deleter(); } 29761: 29761: 29761: 29761: const deleter_type& 29761: get_deleter() const noexcept 29761: { return _M_t._M_deleter(); } 29761: 29761: 29761: 29761: explicit operator bool() const noexcept 29761: { return get() == pointer() ? false : true; } 29761: 29761: 29761: 29761: 29761: 29761: pointer 29761: release() noexcept 29761: { return _M_t.release(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset(pointer __p = pointer()) noexcept 29761: { 29761: static_assert(__is_invocable::value, 29761: "unique_ptr's deleter must be invocable with a pointer"); 29761: _M_t.reset(std::move(__p)); 29761: } 29761: 29761: 29761: 29761: void 29761: swap(unique_ptr& __u) noexcept 29761: { 29761: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 29761: _M_t.swap(__u._M_t); 29761: } 29761: 29761: 29761: unique_ptr(const unique_ptr&) = delete; 29761: unique_ptr& operator=(const unique_ptr&) = delete; 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: # 537 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: class unique_ptr<_Tp[], _Dp> 29761: { 29761: template 29761: using _DeleterConstraint = 29761: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 29761: 29761: __uniq_ptr_data<_Tp, _Dp> _M_t; 29761: 29761: 29761: template 29761: using __is_derived_Tp 29761: = __and_< is_base_of<_Tp, _Up>, 29761: __not_, __remove_cv_t<_Up>>> >; 29761: 29761: public: 29761: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 29761: using element_type = _Tp; 29761: using deleter_type = _Dp; 29761: 29761: 29761: 29761: template, 29761: typename _UP_pointer = typename _UPtr::pointer, 29761: typename _UP_element_type = typename _UPtr::element_type> 29761: using __safe_conversion_up = __and_< 29761: is_array<_Up>, 29761: is_same, 29761: is_same<_UP_pointer, _UP_element_type*>, 29761: is_convertible<_UP_element_type(*)[], element_type(*)[]> 29761: >; 29761: 29761: 29761: template 29761: using __safe_conversion_raw = __and_< 29761: __or_<__or_, 29761: is_same<_Up, nullptr_t>>, 29761: __and_, 29761: is_same, 29761: is_convertible< 29761: typename remove_pointer<_Up>::type(*)[], 29761: element_type(*)[]> 29761: > 29761: > 29761: >; 29761: 29761: 29761: 29761: 29761: template> 29761: constexpr unique_ptr() noexcept 29761: : _M_t() 29761: { } 29761: # 599 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template, 29761: typename = typename enable_if< 29761: __safe_conversion_raw<_Up>::value, bool>::type> 29761: 29761: explicit 29761: unique_ptr(_Up __p) noexcept 29761: : _M_t(__p) 29761: { } 29761: # 618 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template, 29761: is_copy_constructible<_Del>>> 29761: 29761: unique_ptr(_Up __p, const deleter_type& __d) noexcept 29761: : _M_t(__p, __d) { } 29761: # 633 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template, 29761: is_move_constructible<_Del>>> 29761: 29761: unique_ptr(_Up __p, 29761: __enable_if_t::value, 29761: _Del&&> __d) noexcept 29761: : _M_t(std::move(__p), std::move(__d)) 29761: { } 29761: 29761: template::type, 29761: typename = _Require<__safe_conversion_raw<_Up>>> 29761: unique_ptr(_Up, 29761: __enable_if_t::value, 29761: _DelUnref&&>) = delete; 29761: 29761: 29761: unique_ptr(unique_ptr&&) = default; 29761: 29761: 29761: template> 29761: constexpr unique_ptr(nullptr_t) noexcept 29761: : _M_t() 29761: { } 29761: 29761: template, 29761: __conditional_t::value, 29761: is_same<_Ep, _Dp>, 29761: is_convertible<_Ep, _Dp>>>> 29761: 29761: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 29761: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: ~unique_ptr() 29761: { 29761: auto& __ptr = _M_t._M_ptr(); 29761: if (__ptr != nullptr) 29761: get_deleter()(__ptr); 29761: __ptr = pointer(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: unique_ptr& 29761: operator=(unique_ptr&&) = default; 29761: # 697 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: 29761: typename 29761: enable_if<__and_<__safe_conversion_up<_Up, _Ep>, 29761: is_assignable 29761: >::value, 29761: unique_ptr&>::type 29761: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 29761: { 29761: reset(__u.release()); 29761: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: unique_ptr& 29761: operator=(nullptr_t) noexcept 29761: { 29761: reset(); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: typename std::add_lvalue_reference::type 29761: operator[](size_t __i) const 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) std::__glibcxx_assert_fail(); } while (false); 29761: return get()[__i]; 29761: } 29761: 29761: 29761: 29761: pointer 29761: get() const noexcept 29761: { return _M_t._M_ptr(); } 29761: 29761: 29761: 29761: deleter_type& 29761: get_deleter() noexcept 29761: { return _M_t._M_deleter(); } 29761: 29761: 29761: 29761: const deleter_type& 29761: get_deleter() const noexcept 29761: { return _M_t._M_deleter(); } 29761: 29761: 29761: 29761: explicit operator bool() const noexcept 29761: { return get() == pointer() ? false : true; } 29761: 29761: 29761: 29761: 29761: 29761: pointer 29761: release() noexcept 29761: { return _M_t.release(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template , 29761: __and_, 29761: is_pointer<_Up>, 29761: is_convertible< 29761: typename remove_pointer<_Up>::type(*)[], 29761: element_type(*)[] 29761: > 29761: > 29761: > 29761: >> 29761: 29761: void 29761: reset(_Up __p) noexcept 29761: { _M_t.reset(std::move(__p)); } 29761: 29761: 29761: void reset(nullptr_t = nullptr) noexcept 29761: { reset(pointer()); } 29761: 29761: 29761: 29761: void 29761: swap(unique_ptr& __u) noexcept 29761: { 29761: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 29761: _M_t.swap(__u._M_t); 29761: } 29761: 29761: 29761: unique_ptr(const unique_ptr&) = delete; 29761: unique_ptr& operator=(const unique_ptr&) = delete; 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline 29761: 29761: 29761: 29761: typename enable_if<__is_swappable<_Dp>::value>::type 29761: 29761: 29761: 29761: swap(unique_ptr<_Tp, _Dp>& __x, 29761: unique_ptr<_Tp, _Dp>& __y) noexcept 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: typename enable_if::value>::type 29761: swap(unique_ptr<_Tp, _Dp>&, 29761: unique_ptr<_Tp, _Dp>&) = delete; 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { return __x.get() == __y.get(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 29761: { return !__x; } 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 29761: { return !__x; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { return __x.get() != __y.get(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 29761: { return (bool)__x; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 29761: { return (bool)__x; } 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { 29761: typedef typename 29761: std::common_type::pointer, 29761: typename unique_ptr<_Up, _Ep>::pointer>::type _CT; 29761: return std::less<_CT>()(__x.get(), __y.get()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29761: { 29761: return std::less::pointer>()(__x.get(), 29761: nullptr); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29761: { 29761: return std::less::pointer>()(nullptr, 29761: __x.get()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29761: { return !(nullptr < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29761: { return !(__x < nullptr); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { return (__y < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29761: { 29761: return std::less::pointer>()(nullptr, 29761: __x.get()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29761: { 29761: return std::less::pointer>()(__x.get(), 29761: nullptr); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29761: { return !(__x < nullptr); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29761: { return !(nullptr < __x); } 29761: # 1015 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template::__enable_hash_call> 29761: struct __uniq_ptr_hash 29761: 29761: : private __poison_hash<_Ptr> 29761: 29761: { 29761: size_t 29761: operator()(const _Up& __u) const 29761: noexcept(noexcept(std::declval>()(std::declval<_Ptr>()))) 29761: { return hash<_Ptr>()(__u.get()); } 29761: }; 29761: 29761: template 29761: struct __uniq_ptr_hash<_Up, _Ptr, false> 29761: : private __poison_hash<_Ptr> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct hash> 29761: : public __hash_base>, 29761: public __uniq_ptr_hash> 29761: { }; 29761: 29761: 29761: 29761: namespace __detail 29761: { 29761: template 29761: struct _MakeUniq 29761: { typedef unique_ptr<_Tp> __single_object; }; 29761: 29761: template 29761: struct _MakeUniq<_Tp[]> 29761: { typedef unique_ptr<_Tp[]> __array; }; 29761: 29761: template 29761: struct _MakeUniq<_Tp[_Bound]> 29761: { struct __invalid_type { }; }; 29761: 29761: template 29761: using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object; 29761: template 29761: using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array; 29761: template 29761: using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type; 29761: } 29761: # 1073 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: 29761: inline __detail::__unique_ptr_t<_Tp> 29761: make_unique(_Args&&... __args) 29761: { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } 29761: # 1088 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: 29761: inline __detail::__unique_ptr_array_t<_Tp> 29761: make_unique(size_t __num) 29761: { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: __detail::__invalid_make_unique_t<_Tp> 29761: make_unique(_Args&&...) = delete; 29761: # 1159 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: static constexpr bool __is_unique_ptr = false; 29761: template 29761: static constexpr bool __is_unique_ptr> = true; 29761: 29761: 29761: 29761: 29761: 29761: namespace __detail::__variant 29761: { 29761: template struct _Never_valueless_alt; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : std::true_type 29761: { }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 79 "/usr/include/c++/14/memory" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/shared_ptr.h" 1 3 29761: # 52 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: # 1 "/usr/include/c++/14/iosfwd" 1 3 29761: # 36 "/usr/include/c++/14/iosfwd" 3 29761: 29761: # 37 "/usr/include/c++/14/iosfwd" 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stringfwd.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/stringfwd.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/stringfwd.h" 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct char_traits; 29761: 29761: template<> struct char_traits; 29761: 29761: template<> struct char_traits; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> struct char_traits; 29761: template<> struct char_traits; 29761: 29761: 29761: namespace __cxx11 { 29761: 29761: template, 29761: typename _Alloc = allocator<_CharT> > 29761: class basic_string; 29761: 29761: } 29761: 29761: 29761: typedef basic_string string; 29761: 29761: 29761: typedef basic_string wstring; 29761: # 89 "/usr/include/c++/14/bits/stringfwd.h" 3 29761: typedef basic_string u16string; 29761: 29761: 29761: typedef basic_string u32string; 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 42 "/usr/include/c++/14/iosfwd" 2 3 29761: # 1 "/usr/include/c++/14/bits/postypes.h" 1 3 29761: # 38 "/usr/include/c++/14/bits/postypes.h" 3 29761: 29761: # 39 "/usr/include/c++/14/bits/postypes.h" 3 29761: 29761: # 1 "/usr/include/c++/14/cwchar" 1 3 29761: # 39 "/usr/include/c++/14/cwchar" 3 29761: 29761: # 40 "/usr/include/c++/14/cwchar" 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/wchar.h" 1 3 4 29761: # 27 "/usr/include/wchar.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 28 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29761: # 52 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 29761: # 25 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 2 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 2 3 4 29761: # 31 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 36 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29761: # 40 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 3 4 29761: typedef __builtin_va_list __gnuc_va_list; 29761: # 39 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: 29761: 29761: typedef __gnuc_va_list va_list; 29761: # 52 "/usr/include/wchar.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 1 3 4 29761: # 20 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 3 4 29761: typedef unsigned int wint_t; 29761: # 53 "/usr/include/wchar.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 1 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 1 3 4 29761: # 13 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 3 4 29761: typedef struct 29761: { 29761: int __count; 29761: union 29761: { 29761: unsigned int __wch; 29761: char __wchb[4]; 29761: } __value; 29761: } __mbstate_t; 29761: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 2 3 4 29761: 29761: typedef __mbstate_t mbstate_t; 29761: # 54 "/usr/include/wchar.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__FILE.h" 1 3 4 29761: 29761: 29761: 29761: struct _IO_FILE; 29761: typedef struct _IO_FILE __FILE; 29761: # 55 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/FILE.h" 1 3 4 29761: 29761: 29761: 29761: struct _IO_FILE; 29761: 29761: 29761: typedef struct _IO_FILE FILE; 29761: # 58 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 1 3 4 29761: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 3 4 29761: struct __locale_struct 29761: { 29761: 29761: struct __locale_data *__locales[13]; 29761: 29761: 29761: const unsigned short int *__ctype_b; 29761: const int *__ctype_tolower; 29761: const int *__ctype_toupper; 29761: 29761: 29761: const char *__names[13]; 29761: }; 29761: 29761: typedef struct __locale_struct *__locale_t; 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 2 3 4 29761: 29761: typedef __locale_t locale_t; 29761: # 61 "/usr/include/wchar.h" 2 3 4 29761: # 90 "/usr/include/wchar.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: struct tm; 29761: 29761: 29761: 29761: extern wchar_t *wcscpy (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern size_t wcslcpy (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: 29761: 29761: 29761: extern size_t wcslcat (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 29761: 29761: 29761: 29761: extern wchar_t *wcscat (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern wchar_t *wcsncat (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 29761: 29761: 29761: extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, 29761: size_t __n) noexcept (true); 29761: 29761: 29761: 29761: extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 29761: locale_t __loc) noexcept (true); 29761: 29761: extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 29761: size_t __n, locale_t __loc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 29761: 29761: 29761: 29761: extern size_t wcsxfrm (wchar_t *__restrict __s1, 29761: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, 29761: locale_t __loc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, 29761: size_t __n, locale_t __loc) noexcept (true); 29761: 29761: 29761: extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: 29761: 29761: extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) 29761: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) 29761: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) 29761: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) 29761: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 29761: # 206 "/usr/include/wchar.h" 3 4 29761: extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) 29761: noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) 29761: noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) 29761: noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) 29761: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, 29761: const wchar_t *__accept) 29761: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) 29761: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, 29761: const wchar_t *__needle) 29761: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wchar_t *wcstok (wchar_t *__restrict __s, 29761: const wchar_t *__restrict __delim, 29761: wchar_t **__restrict __ptr) noexcept (true); 29761: 29761: 29761: extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) 29761: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, 29761: const wchar_t *__needle) 29761: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 29761: # 265 "/usr/include/wchar.h" 3 4 29761: extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) 29761: noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) 29761: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, 29761: size_t __n) 29761: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, 29761: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 29761: 29761: 29761: 29761: extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) 29761: noexcept (true); 29761: 29761: 29761: extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern wchar_t *wmempcpy (wchar_t *__restrict __s1, 29761: const wchar_t *__restrict __s2, size_t __n) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t btowc (int __c) noexcept (true); 29761: 29761: 29761: 29761: extern int wctob (wint_t __c) noexcept (true); 29761: 29761: 29761: 29761: extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: extern size_t mbrtowc (wchar_t *__restrict __pwc, 29761: const char *__restrict __s, size_t __n, 29761: mbstate_t *__restrict __p) noexcept (true); 29761: 29761: 29761: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: extern size_t __mbrlen (const char *__restrict __s, size_t __n, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: extern size_t mbrlen (const char *__restrict __s, size_t __n, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t __btowc_alias (int __c) __asm ("btowc"); 29761: extern __inline __attribute__ ((__gnu_inline__)) wint_t 29761: __attribute__ ((__leaf__)) btowc (int __c) noexcept (true) 29761: { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' 29761: ? (wint_t) __c : __btowc_alias (__c)); } 29761: 29761: extern int __wctob_alias (wint_t __c) __asm ("wctob"); 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: __attribute__ ((__leaf__)) wctob (wint_t __wc) noexcept (true) 29761: { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' 29761: ? (int) __wc : __wctob_alias (__wc)); } 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) size_t 29761: __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: { return (__ps != __null 29761: ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } 29761: 29761: 29761: 29761: 29761: extern size_t mbsrtowcs (wchar_t *__restrict __dst, 29761: const char **__restrict __src, size_t __len, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: 29761: extern size_t wcsrtombs (char *__restrict __dst, 29761: const wchar_t **__restrict __src, size_t __len, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, 29761: const char **__restrict __src, size_t __nmc, 29761: size_t __len, mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: 29761: extern size_t wcsnrtombs (char *__restrict __dst, 29761: const wchar_t **__restrict __src, 29761: size_t __nwc, size_t __len, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int wcwidth (wchar_t __c) noexcept (true); 29761: 29761: 29761: 29761: extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern double wcstod (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: 29761: 29761: 29761: extern float wcstof (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: extern long double wcstold (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: # 422 "/usr/include/wchar.h" 3 4 29761: extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: # 437 "/usr/include/wchar.h" 3 4 29761: extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: # 455 "/usr/include/wchar.h" 3 4 29761: extern long int wcstol (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base) noexcept (true); 29761: 29761: 29761: 29761: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: __extension__ 29761: extern long long int wcstoll (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base) 29761: noexcept (true); 29761: 29761: 29761: 29761: __extension__ 29761: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: int __base) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: __extension__ 29761: extern long long int wcstoq (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base) 29761: noexcept (true); 29761: 29761: 29761: 29761: __extension__ 29761: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: int __base) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int wcstol (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstol") 29761: 29761: ; 29761: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoul") 29761: 29761: 29761: ; 29761: __extension__ 29761: extern long long int wcstoll (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 29761: 29761: 29761: ; 29761: __extension__ 29761: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 29761: 29761: 29761: ; 29761: 29761: __extension__ 29761: extern long long int wcstoq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 29761: 29761: ; 29761: __extension__ 29761: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 29761: 29761: 29761: ; 29761: # 561 "/usr/include/wchar.h" 3 4 29761: extern long int wcstol_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base, 29761: locale_t __loc) noexcept (true); 29761: 29761: extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: int __base, locale_t __loc) noexcept (true); 29761: 29761: __extension__ 29761: extern long long int wcstoll_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: int __base, locale_t __loc) noexcept (true); 29761: 29761: __extension__ 29761: extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: int __base, locale_t __loc) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 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") 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: ; 29761: __extension__ 29761: 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") 29761: 29761: 29761: 29761: ; 29761: __extension__ 29761: 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") 29761: 29761: 29761: 29761: ; 29761: # 630 "/usr/include/wchar.h" 3 4 29761: extern double wcstod_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, locale_t __loc) 29761: noexcept (true); 29761: 29761: extern float wcstof_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, locale_t __loc) 29761: noexcept (true); 29761: 29761: extern long double wcstold_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: locale_t __loc) noexcept (true); 29761: # 649 "/usr/include/wchar.h" 3 4 29761: extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: locale_t __loc) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: locale_t __loc) noexcept (true); 29761: # 667 "/usr/include/wchar.h" 3 4 29761: extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: locale_t __loc) noexcept (true); 29761: # 689 "/usr/include/wchar.h" 3 4 29761: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src) noexcept (true); 29761: 29761: 29761: 29761: extern wchar_t *wcpncpy (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n) 29761: noexcept (true); 29761: # 718 "/usr/include/wchar.h" 3 4 29761: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 29761: __attribute__ ((__malloc__)) ; 29761: 29761: 29761: 29761: 29761: 29761: extern int fwide (__FILE *__fp, int __mode) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fwprintf (__FILE *__restrict __stream, 29761: const wchar_t *__restrict __format, ...) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int wprintf (const wchar_t *__restrict __format, ...) 29761: ; 29761: 29761: extern int swprintf (wchar_t *__restrict __s, size_t __n, 29761: const wchar_t *__restrict __format, ...) 29761: noexcept (true) ; 29761: 29761: 29761: 29761: 29761: 29761: extern int vfwprintf (__FILE *__restrict __s, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int vwprintf (const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: ; 29761: 29761: 29761: extern int vswprintf (wchar_t *__restrict __s, size_t __n, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: noexcept (true) ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fwscanf (__FILE *__restrict __stream, 29761: const wchar_t *__restrict __format, ...) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int wscanf (const wchar_t *__restrict __format, ...) 29761: ; 29761: 29761: extern int swscanf (const wchar_t *__restrict __s, 29761: const wchar_t *__restrict __format, ...) 29761: noexcept (true) ; 29761: # 795 "/usr/include/wchar.h" 3 4 29761: extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_fwscanf") 29761: 29761: 29761: ; 29761: extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_wscanf") 29761: 29761: ; 29761: extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_swscanf") 29761: 29761: 29761: ; 29761: # 851 "/usr/include/wchar.h" 3 4 29761: extern int vfwscanf (__FILE *__restrict __s, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int vwscanf (const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: ; 29761: 29761: extern int vswscanf (const wchar_t *__restrict __s, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: noexcept (true) ; 29761: # 875 "/usr/include/wchar.h" 3 4 29761: extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfwscanf") 29761: 29761: 29761: ; 29761: extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vwscanf") 29761: 29761: ; 29761: extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vswscanf") 29761: 29761: 29761: ; 29761: # 935 "/usr/include/wchar.h" 3 4 29761: extern wint_t fgetwc (__FILE *__stream); 29761: extern wint_t getwc (__FILE *__stream); 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t getwchar (void); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t fputwc (wchar_t __wc, __FILE *__stream); 29761: extern wint_t putwc (wchar_t __wc, __FILE *__stream); 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t putwchar (wchar_t __wc); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, 29761: __FILE *__restrict __stream); 29761: 29761: 29761: 29761: 29761: 29761: extern int fputws (const wchar_t *__restrict __ws, 29761: __FILE *__restrict __stream); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t ungetwc (wint_t __wc, __FILE *__stream); 29761: # 990 "/usr/include/wchar.h" 3 4 29761: extern wint_t getwc_unlocked (__FILE *__stream); 29761: extern wint_t getwchar_unlocked (void); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t fgetwc_unlocked (__FILE *__stream); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); 29761: # 1016 "/usr/include/wchar.h" 3 4 29761: extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); 29761: extern wint_t putwchar_unlocked (wchar_t __wc); 29761: # 1026 "/usr/include/wchar.h" 3 4 29761: extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, 29761: __FILE *__restrict __stream); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fputws_unlocked (const wchar_t *__restrict __ws, 29761: __FILE *__restrict __stream); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, 29761: const wchar_t *__restrict __format, 29761: const struct tm *__restrict __tp) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, 29761: const wchar_t *__restrict __format, 29761: const struct tm *__restrict __tp, 29761: locale_t __loc) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 3 4 29761: extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, 29761: const wchar_t *__restrict __s2, size_t __n, 29761: size_t __ns1) noexcept (true); 29761: extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmemcpy") 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, 29761: size_t __n, size_t __ns1) noexcept (true); 29761: extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __asm__ ("" "wmemmove") 29761: 29761: ; 29761: extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemmove_chk") 29761: 29761: 29761: __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: 29761: 29761: 29761: extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, 29761: const wchar_t *__restrict __s2, size_t __n, 29761: size_t __ns1) noexcept (true); 29761: extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmempcpy") 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: 29761: 29761: 29761: extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, 29761: size_t __ns) noexcept (true); 29761: extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm__ ("" "wmemset") 29761: ; 29761: extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true) __asm__ ("" "__wmemset_chk") 29761: 29761: 29761: __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, 29761: size_t __n) noexcept (true); 29761: extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscpy") 29761: 29761: ; 29761: 29761: extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, 29761: size_t __destlen) noexcept (true); 29761: extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcpcpy") 29761: 29761: ; 29761: 29761: extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncpy") 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: 29761: extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcpncpy") 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, 29761: size_t __destlen) noexcept (true); 29761: extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscat") 29761: 29761: ; 29761: 29761: extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, 29761: size_t __n, size_t __destlen) noexcept (true); 29761: extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncat") 29761: 29761: 29761: ; 29761: 29761: extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, 29761: int __flag, size_t __s_len, 29761: const wchar_t *__restrict __format, ...) 29761: noexcept (true) ; 29761: extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) __asm__ ("" "swprintf") 29761: 29761: 29761: ; 29761: 29761: extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, 29761: int __flag, size_t __s_len, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: noexcept (true) ; 29761: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) __asm__ ("" "vswprintf") 29761: 29761: 29761: ; 29761: 29761: 29761: 29761: 29761: extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, 29761: const wchar_t *__restrict __format, ...); 29761: extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, 29761: ...); 29761: extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __ap); 29761: extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, 29761: __gnuc_va_list __ap); 29761: 29761: 29761: 29761: extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, 29761: __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 29761: extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, 29761: int __n, __FILE *__restrict __stream) 29761: __attribute__ ((__warn_unused_result__)); 29761: extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, 29761: mbstate_t *__restrict __p, 29761: size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcrtomb") 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: 29761: extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, 29761: const char **__restrict __src, 29761: size_t __len, mbstate_t *__restrict __ps, 29761: size_t __dstlen) noexcept (true); 29761: extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsrtowcs") 29761: 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: 29761: __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29761: ; 29761: 29761: extern size_t __wcsrtombs_chk (char *__restrict __dst, 29761: const wchar_t **__restrict __src, 29761: size_t __len, mbstate_t *__restrict __ps, 29761: size_t __dstlen) noexcept (true); 29761: extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsrtombs") 29761: 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); 29761: 29761: 29761: 29761: extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, 29761: const char **__restrict __src, size_t __nmc, 29761: size_t __len, mbstate_t *__restrict __ps, 29761: size_t __dstlen) noexcept (true); 29761: 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") 29761: 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: 29761: __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29761: ; 29761: 29761: extern size_t __wcsnrtombs_chk (char *__restrict __dst, 29761: const wchar_t **__restrict __src, 29761: size_t __nwc, size_t __len, 29761: mbstate_t *__restrict __ps, size_t __dstlen) 29761: noexcept (true); 29761: 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") 29761: 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); 29761: 29761: 29761: 29761: 29761: extern size_t __wcslcpy_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: extern size_t __wcslcpy_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcpy") 29761: 29761: ; 29761: 29761: extern size_t __wcslcat_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: extern size_t __wcslcat_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcat") 29761: 29761: ; 29761: # 1060 "/usr/include/wchar.h" 2 3 4 29761: # 1070 "/usr/include/wchar.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wmemcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmemcpy_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmemcpy_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wmemmove (wchar_t * __s1, const wchar_t *__s2, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmemmove_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmemmove_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wmempcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmempcpy_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmempcpy_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wmemset (wchar_t * __s, wchar_t __c, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__s, 0)) && (__builtin_object_size (__s, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s, 0)) / (sizeof (wchar_t)))) ? __wmemset_chk_warn (__s, __c, __n, (__builtin_object_size (__s, 0)) / (sizeof (wchar_t))) : __wmemset_chk (__s, __c, __n, (__builtin_object_size (__s, 0)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcscpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29761: if (__sz != (size_t) -1) 29761: return __wcscpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 29761: return __wcscpy_alias (__dest, __src); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcpcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29761: if (__sz != (size_t) -1) 29761: return __wcpcpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 29761: return __wcpcpy_alias (__dest, __src); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcsncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dest, 2 > 1)) && (__builtin_object_size (__dest, 2 > 1)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t)))))) ? __wcsncpy_alias (__dest, __src, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) ? __wcsncpy_chk_warn (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))) : __wcsncpy_chk (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcpncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dest, 2 > 1)) && (__builtin_object_size (__dest, 2 > 1)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t)))))) ? __wcpncpy_alias (__dest, __src, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) ? __wcpncpy_chk_warn (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))) : __wcpncpy_chk (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcscat (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29761: if (__sz != (size_t) -1) 29761: return __wcscat_chk (__dest, __src, __sz / sizeof (wchar_t)); 29761: return __wcscat_alias (__dest, __src); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcsncat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29761: if (__sz != (size_t) -1) 29761: return __wcsncat_chk (__dest, __src, __n, __sz / sizeof (wchar_t)); 29761: return __wcsncat_alias (__dest, __src, __n); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) wcslcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29761: && (!__builtin_constant_p (__n 29761: > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)) 29761: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 29761: return __wcslcpy_chk (__dest, __src, __n, 29761: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 29761: return __wcslcpy_alias (__dest, __src, __n); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) wcslcat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29761: 29761: { 29761: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29761: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1) 29761: / sizeof (wchar_t)) 29761: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 29761: return __wcslcat_chk (__dest, __src, __n, 29761: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 29761: return __wcslcat_alias (__dest, __src, __n); 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (__sz != (size_t) -1 || 2 > 1) 29761: return __swprintf_chk (__s, __n, 2 - 1, 29761: __sz / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); 29761: return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); 29761: } 29761: # 205 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (__sz != (size_t) -1 || 2 > 1) 29761: return __vswprintf_chk (__s, __n, 2 - 1, 29761: __sz / sizeof (wchar_t), __fmt, __ap); 29761: return __vswprintf_alias (__s, __n, __fmt, __ap); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: wprintf (const wchar_t *__restrict __fmt, ...) 29761: { 29761: return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) 29761: { 29761: return __fwprintf_chk (__stream, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 29761: { 29761: return __vwprintf_chk (2 - 1, __fmt, __ap); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: vfwprintf (__FILE *__restrict __stream, 29761: const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 29761: { 29761: return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 29761: fgetws (wchar_t * __restrict __s, int __n, 29761: __FILE *__restrict __stream) 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))))) 29761: return __fgetws_alias (__s, __n, __stream); 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t))))) 29761: return __fgetws_chk_warn (__s, __sz / sizeof (wchar_t), __n, __stream); 29761: 29761: return __fgetws_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 29761: fgetws_unlocked (wchar_t * __restrict __s, 29761: int __n, __FILE *__restrict __stream) 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))))) 29761: return __fgetws_unlocked_alias (__s, __n, __stream); 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t))))) 29761: return __fgetws_unlocked_chk_warn (__s, __sz / sizeof (wchar_t), __n, 29761: __stream); 29761: 29761: return __fgetws_unlocked_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 29761: __attribute__ ((__leaf__)) wcrtomb (char * __restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 29761: && 16 > __builtin_object_size (__s, 2 > 1)) 29761: return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); 29761: return __wcrtomb_alias (__s, __wchar, __ps); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) mbsrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbsrtowcs_chk_warn (__dst, __src, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbsrtowcs_chk (__dst, __src, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) wcsrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char)))))) ? __wcsrtombs_alias (__dst, __src, __len, __ps) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcsrtombs_chk_warn (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)) : __wcsrtombs_chk (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbsnrtowcs_chk_warn (__dst, __src, __nmc, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbsnrtowcs_chk (__dst, __src, __nmc, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) wcsnrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcsnrtombs_chk_warn (__dst, __src, __nwc, __len, __ps, __builtin_object_size (__dst, 2 > 1)) : __wcsnrtombs_chk (__dst, __src, __nwc, __len, __ps, __builtin_object_size (__dst, 2 > 1)))) 29761: 29761: ; 29761: } 29761: # 1071 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: } 29761: # 45 "/usr/include/c++/14/cwchar" 2 3 29761: # 62 "/usr/include/c++/14/cwchar" 3 29761: namespace std 29761: { 29761: using ::mbstate_t; 29761: } 29761: # 135 "/usr/include/c++/14/cwchar" 3 29761: extern "C++" 29761: { 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: using ::wint_t; 29761: 29761: using ::btowc; 29761: using ::fgetwc; 29761: using ::fgetws; 29761: using ::fputwc; 29761: using ::fputws; 29761: using ::fwide; 29761: using ::fwprintf; 29761: using ::fwscanf; 29761: using ::getwc; 29761: using ::getwchar; 29761: using ::mbrlen; 29761: using ::mbrtowc; 29761: using ::mbsinit; 29761: using ::mbsrtowcs; 29761: using ::putwc; 29761: using ::putwchar; 29761: 29761: using ::swprintf; 29761: 29761: using ::swscanf; 29761: using ::ungetwc; 29761: using ::vfwprintf; 29761: 29761: using ::vfwscanf; 29761: 29761: 29761: using ::vswprintf; 29761: 29761: 29761: using ::vswscanf; 29761: 29761: using ::vwprintf; 29761: 29761: using ::vwscanf; 29761: 29761: using ::wcrtomb; 29761: using ::wcscat; 29761: using ::wcscmp; 29761: using ::wcscoll; 29761: using ::wcscpy; 29761: using ::wcscspn; 29761: using ::wcsftime; 29761: using ::wcslen; 29761: using ::wcsncat; 29761: using ::wcsncmp; 29761: using ::wcsncpy; 29761: using ::wcsrtombs; 29761: using ::wcsspn; 29761: using ::wcstod; 29761: 29761: using ::wcstof; 29761: 29761: using ::wcstok; 29761: using ::wcstol; 29761: using ::wcstoul; 29761: using ::wcsxfrm; 29761: using ::wctob; 29761: using ::wmemcmp; 29761: using ::wmemcpy; 29761: using ::wmemmove; 29761: using ::wmemset; 29761: using ::wprintf; 29761: using ::wscanf; 29761: using ::wcschr; 29761: using ::wcspbrk; 29761: using ::wcsrchr; 29761: using ::wcsstr; 29761: using ::wmemchr; 29761: # 234 "/usr/include/c++/14/cwchar" 3 29761: 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __gnu_cxx 29761: { 29761: 29761: 29761: 29761: 29761: 29761: using ::wcstold; 29761: # 260 "/usr/include/c++/14/cwchar" 3 29761: using ::wcstoll; 29761: using ::wcstoull; 29761: 29761: } 29761: 29761: namespace std 29761: { 29761: using ::__gnu_cxx::wcstold; 29761: using ::__gnu_cxx::wcstoll; 29761: using ::__gnu_cxx::wcstoull; 29761: } 29761: # 280 "/usr/include/c++/14/cwchar" 3 29761: namespace std 29761: { 29761: 29761: using std::wcstof; 29761: 29761: 29761: using std::vfwscanf; 29761: 29761: 29761: using std::vswscanf; 29761: 29761: 29761: using std::vwscanf; 29761: 29761: 29761: 29761: using std::wcstold; 29761: using std::wcstoll; 29761: using std::wcstoull; 29761: 29761: } 29761: # 41 "/usr/include/c++/14/bits/postypes.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 62 "/usr/include/c++/14/bits/postypes.h" 3 29761: typedef long long int streamoff; 29761: 29761: 29761: 29761: 29761: 29761: typedef ptrdiff_t streamsize; 29761: # 81 "/usr/include/c++/14/bits/postypes.h" 3 29761: template 29761: class fpos 29761: { 29761: private: 29761: streamoff _M_off; 29761: _StateT _M_state; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: fpos() 29761: : _M_off(0), _M_state() { } 29761: # 103 "/usr/include/c++/14/bits/postypes.h" 3 29761: fpos(streamoff __off) 29761: : _M_off(__off), _M_state() { } 29761: 29761: 29761: fpos(const fpos&) = default; 29761: fpos& operator=(const fpos&) = default; 29761: ~fpos() = default; 29761: 29761: 29761: 29761: operator streamoff() const { return _M_off; } 29761: 29761: 29761: void 29761: state(_StateT __st) 29761: { _M_state = __st; } 29761: 29761: 29761: _StateT 29761: state() const 29761: { return _M_state; } 29761: 29761: 29761: 29761: 29761: 29761: fpos& 29761: operator+=(streamoff __off) 29761: { 29761: _M_off += __off; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: fpos& 29761: operator-=(streamoff __off) 29761: { 29761: _M_off -= __off; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: fpos 29761: operator+(streamoff __off) const 29761: { 29761: fpos __pos(*this); 29761: __pos += __off; 29761: return __pos; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: fpos 29761: operator-(streamoff __off) const 29761: { 29761: fpos __pos(*this); 29761: __pos -= __off; 29761: return __pos; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: streamoff 29761: operator-(const fpos& __other) const 29761: { return _M_off - __other._M_off; } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 29761: { return streamoff(__lhs) == streamoff(__rhs); } 29761: 29761: template 29761: inline bool 29761: operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 29761: { return streamoff(__lhs) != streamoff(__rhs); } 29761: 29761: 29761: 29761: 29761: 29761: typedef fpos streampos; 29761: 29761: typedef fpos wstreampos; 29761: # 215 "/usr/include/c++/14/bits/postypes.h" 3 29761: typedef fpos u16streampos; 29761: 29761: typedef fpos u32streampos; 29761: 29761: 29761: 29761: } 29761: # 43 "/usr/include/c++/14/iosfwd" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 76 "/usr/include/c++/14/iosfwd" 3 29761: class ios_base; 29761: 29761: template > 29761: class basic_ios; 29761: 29761: template > 29761: class basic_streambuf; 29761: 29761: template > 29761: class basic_istream; 29761: 29761: template > 29761: class basic_ostream; 29761: 29761: template > 29761: class basic_iostream; 29761: 29761: 29761: namespace __cxx11 { 29761: 29761: template, 29761: typename _Alloc = allocator<_CharT> > 29761: class basic_stringbuf; 29761: 29761: template, 29761: typename _Alloc = allocator<_CharT> > 29761: class basic_istringstream; 29761: 29761: template, 29761: typename _Alloc = allocator<_CharT> > 29761: class basic_ostringstream; 29761: 29761: template, 29761: typename _Alloc = allocator<_CharT> > 29761: class basic_stringstream; 29761: 29761: } 29761: 29761: template > 29761: class basic_filebuf; 29761: 29761: template > 29761: class basic_ifstream; 29761: 29761: template > 29761: class basic_ofstream; 29761: 29761: template > 29761: class basic_fstream; 29761: 29761: template > 29761: class istreambuf_iterator; 29761: 29761: template > 29761: class ostreambuf_iterator; 29761: 29761: 29761: 29761: typedef basic_ios ios; 29761: 29761: 29761: typedef basic_streambuf streambuf; 29761: 29761: 29761: typedef basic_istream istream; 29761: 29761: 29761: typedef basic_ostream ostream; 29761: 29761: 29761: typedef basic_iostream iostream; 29761: 29761: 29761: typedef basic_stringbuf stringbuf; 29761: 29761: 29761: typedef basic_istringstream istringstream; 29761: 29761: 29761: typedef basic_ostringstream ostringstream; 29761: 29761: 29761: typedef basic_stringstream stringstream; 29761: 29761: 29761: typedef basic_filebuf filebuf; 29761: 29761: 29761: typedef basic_ifstream ifstream; 29761: 29761: 29761: typedef basic_ofstream ofstream; 29761: 29761: 29761: typedef basic_fstream fstream; 29761: 29761: 29761: 29761: typedef basic_ios wios; 29761: 29761: 29761: typedef basic_streambuf wstreambuf; 29761: 29761: 29761: typedef basic_istream wistream; 29761: 29761: 29761: typedef basic_ostream wostream; 29761: 29761: 29761: typedef basic_iostream wiostream; 29761: 29761: 29761: typedef basic_stringbuf wstringbuf; 29761: 29761: 29761: typedef basic_istringstream wistringstream; 29761: 29761: 29761: typedef basic_ostringstream wostringstream; 29761: 29761: 29761: typedef basic_stringstream wstringstream; 29761: 29761: 29761: typedef basic_filebuf wfilebuf; 29761: 29761: 29761: typedef basic_ifstream wifstream; 29761: 29761: 29761: typedef basic_ofstream wofstream; 29761: 29761: 29761: typedef basic_fstream wfstream; 29761: # 255 "/usr/include/c++/14/iosfwd" 3 29761: 29761: } 29761: # 53 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/shared_ptr_base.h" 1 3 29761: # 53 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: # 1 "/usr/include/c++/14/bits/allocated_ptr.h" 1 3 29761: # 40 "/usr/include/c++/14/bits/allocated_ptr.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: struct __allocated_ptr 29761: { 29761: using pointer = typename allocator_traits<_Alloc>::pointer; 29761: using value_type = typename allocator_traits<_Alloc>::value_type; 29761: 29761: 29761: __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept 29761: : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) 29761: { } 29761: 29761: 29761: template>> 29761: __allocated_ptr(_Alloc& __a, _Ptr __ptr) 29761: : _M_alloc(std::__addressof(__a)), 29761: _M_ptr(pointer_traits::pointer_to(*__ptr)) 29761: { } 29761: 29761: 29761: __allocated_ptr(__allocated_ptr&& __gd) noexcept 29761: : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) 29761: { __gd._M_ptr = nullptr; } 29761: 29761: 29761: ~__allocated_ptr() 29761: { 29761: if (_M_ptr != nullptr) 29761: std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); 29761: } 29761: 29761: 29761: __allocated_ptr& 29761: operator=(std::nullptr_t) noexcept 29761: { 29761: _M_ptr = nullptr; 29761: return *this; 29761: } 29761: 29761: 29761: value_type* get() { return std::__to_address(_M_ptr); } 29761: 29761: private: 29761: _Alloc* _M_alloc; 29761: pointer _M_ptr; 29761: }; 29761: 29761: 29761: template 29761: __allocated_ptr<_Alloc> 29761: __allocate_guarded(_Alloc& __a) 29761: { 29761: return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 54 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ext/atomicity.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/atomicity.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/atomicity.h" 3 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 1 3 29761: # 30 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 29761: #pragma GCC visibility push(default) 29761: # 157 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 1 3 29761: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: # 1 "/usr/include/pthread.h" 1 3 4 29761: # 22 "/usr/include/pthread.h" 3 4 29761: # 1 "/usr/include/sched.h" 1 3 4 29761: # 29 "/usr/include/sched.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 30 "/usr/include/sched.h" 2 3 4 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __time64_t time_t; 29761: # 32 "/usr/include/sched.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 1 3 4 29761: # 35 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/endianness.h" 1 3 4 29761: # 36 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 2 3 4 29761: # 7 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 2 3 4 29761: 29761: 29761: 29761: 29761: struct timespec 29761: { 29761: 29761: __time64_t tv_sec; 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 29761: long int tv_nsec; 29761: int: 32; 29761: 29761: 29761: }; 29761: # 33 "/usr/include/sched.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: typedef __pid_t pid_t; 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 1 3 4 29761: # 80 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 3 4 29761: struct sched_param 29761: { 29761: int sched_priority; 29761: }; 29761: # 81 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: extern int clone (int (*__fn) (void *__arg), void *__child_stack, 29761: int __flags, void *__arg, ...) noexcept (true); 29761: 29761: 29761: extern int unshare (int __flags) noexcept (true); 29761: 29761: 29761: extern int sched_getcpu (void) noexcept (true); 29761: 29761: 29761: extern int getcpu (unsigned int *, unsigned int *) noexcept (true); 29761: 29761: 29761: extern int setns (int __fd, int __nstype) noexcept (true); 29761: 29761: 29761: } 29761: # 44 "/usr/include/sched.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 1 3 4 29761: # 32 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 29761: typedef unsigned long int __cpu_mask; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef struct 29761: { 29761: __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; 29761: } cpu_set_t; 29761: # 115 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 29761: extern "C" { 29761: 29761: extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 29761: noexcept (true); 29761: extern cpu_set_t *__sched_cpualloc (size_t __count) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: extern void __sched_cpufree (cpu_set_t *__set) noexcept (true); 29761: 29761: } 29761: # 45 "/usr/include/sched.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: 29761: 29761: extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) 29761: noexcept (true); 29761: 29761: 29761: extern int sched_getparam (__pid_t __pid, struct sched_param *__param) noexcept (true); 29761: 29761: 29761: extern int sched_setscheduler (__pid_t __pid, int __policy, 29761: const struct sched_param *__param) noexcept (true); 29761: 29761: 29761: extern int sched_getscheduler (__pid_t __pid) noexcept (true); 29761: 29761: 29761: extern int sched_yield (void) noexcept (true); 29761: 29761: 29761: extern int sched_get_priority_max (int __algorithm) noexcept (true); 29761: 29761: 29761: extern int sched_get_priority_min (int __algorithm) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) noexcept (true) __asm__ ("" "__sched_rr_get_interval64") 29761: 29761: ; 29761: # 130 "/usr/include/sched.h" 3 4 29761: extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, 29761: const cpu_set_t *__cpuset) noexcept (true); 29761: 29761: 29761: extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, 29761: cpu_set_t *__cpuset) noexcept (true); 29761: 29761: 29761: } 29761: # 23 "/usr/include/pthread.h" 2 3 4 29761: # 1 "/usr/include/time.h" 1 3 4 29761: # 29 "/usr/include/time.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 30 "/usr/include/time.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4 29761: # 73 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 1 3 4 29761: # 22 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timeval.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct timeval 29761: { 29761: 29761: __time64_t tv_sec; 29761: __suseconds64_t tv_usec; 29761: 29761: 29761: 29761: 29761: }; 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 2 3 4 29761: 29761: 29761: 29761: struct timex 29761: { 29761: 29761: unsigned int modes; 29761: int :32; 29761: long long offset; 29761: long long freq; 29761: long long maxerror; 29761: long long esterror; 29761: int status; 29761: int :32; 29761: long long constant; 29761: long long precision; 29761: long long tolerance; 29761: struct timeval time; 29761: long long tick; 29761: long long ppsfreq; 29761: long long jitter; 29761: int shift; 29761: int :32; 29761: long long stabil; 29761: long long jitcnt; 29761: long long calcnt; 29761: long long errcnt; 29761: long long stbcnt; 29761: 29761: int tai; 29761: 29761: int :32; int :32; int :32; int :32; 29761: int :32; int :32; int :32; int :32; 29761: int :32; int :32; int :32; 29761: # 85 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 29761: }; 29761: # 74 "/usr/include/arm-linux-gnueabihf/bits/time.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __asm__ ("" "__clock_adjtime64") 29761: 29761: __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 34 "/usr/include/time.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clock_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __clock_t clock_t; 29761: # 38 "/usr/include/time.h" 2 3 4 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_tm.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct tm 29761: { 29761: int tm_sec; 29761: int tm_min; 29761: int tm_hour; 29761: int tm_mday; 29761: int tm_mon; 29761: int tm_year; 29761: int tm_wday; 29761: int tm_yday; 29761: int tm_isdst; 29761: 29761: 29761: long int tm_gmtoff; 29761: const char *tm_zone; 29761: 29761: 29761: 29761: 29761: }; 29761: # 40 "/usr/include/time.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clockid_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __clockid_t clockid_t; 29761: # 47 "/usr/include/time.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/timer_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __timer_t timer_t; 29761: # 48 "/usr/include/time.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_itimerspec.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct itimerspec 29761: { 29761: struct timespec it_interval; 29761: struct timespec it_value; 29761: }; 29761: # 49 "/usr/include/time.h" 2 3 4 29761: struct sigevent; 29761: # 68 "/usr/include/time.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: extern clock_t clock (void) noexcept (true); 29761: # 85 "/usr/include/time.h" 3 4 29761: extern time_t time (time_t *__timer) noexcept (true) __asm__ ("" "__time64"); 29761: extern double difftime (time_t __time1, time_t __time0) noexcept (true) __asm__ ("" "__difftime64") 29761: ; 29761: extern time_t mktime (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 29761: # 99 "/usr/include/time.h" 3 4 29761: extern size_t strftime (char *__restrict __s, size_t __maxsize, 29761: const char *__restrict __format, 29761: const struct tm *__restrict __tp) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3, 4))); 29761: 29761: 29761: 29761: 29761: extern char *strptime (const char *__restrict __s, 29761: const char *__restrict __fmt, struct tm *__tp) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern size_t strftime_l (char *__restrict __s, size_t __maxsize, 29761: const char *__restrict __format, 29761: const struct tm *__restrict __tp, 29761: locale_t __loc) noexcept (true); 29761: 29761: 29761: 29761: extern char *strptime_l (const char *__restrict __s, 29761: const char *__restrict __fmt, struct tm *__tp, 29761: locale_t __loc) noexcept (true); 29761: # 140 "/usr/include/time.h" 3 4 29761: extern struct tm*gmtime (const time_t *__timer) noexcept (true) __asm__ ("" "__gmtime64"); 29761: extern struct tm *localtime (const time_t *__timer) noexcept (true) __asm__ ("" "__localtime64") 29761: ; 29761: # 163 "/usr/include/time.h" 3 4 29761: extern struct tm*gmtime_r (const time_t *__restrict __timer, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__gmtime64_r") 29761: 29761: ; 29761: 29761: extern struct tm*localtime_r (const time_t *__restrict __t, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__localtime64_r") 29761: 29761: ; 29761: # 179 "/usr/include/time.h" 3 4 29761: extern char *asctime (const struct tm *__tp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *ctime (const time_t *__timer) noexcept (true) __asm__ ("" "__ctime64"); 29761: # 197 "/usr/include/time.h" 3 4 29761: extern char *asctime_r (const struct tm *__restrict __tp, 29761: char *__restrict __buf) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *ctime_r (const time_t *__restrict __timer, char *__restrict __buf) noexcept (true) __asm__ ("" "__ctime64_r") 29761: ; 29761: # 217 "/usr/include/time.h" 3 4 29761: extern char *__tzname[2]; 29761: extern int __daylight; 29761: extern long int __timezone; 29761: 29761: 29761: 29761: 29761: extern char *tzname[2]; 29761: 29761: 29761: 29761: extern void tzset (void) noexcept (true); 29761: 29761: 29761: 29761: extern int daylight; 29761: extern long int timezone; 29761: # 249 "/usr/include/time.h" 3 4 29761: extern time_t timegm (struct tm *__tp) noexcept (true) __asm__ ("" "__timegm64"); 29761: # 266 "/usr/include/time.h" 3 4 29761: extern time_t timelocal (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 29761: 29761: 29761: 29761: 29761: extern int dysize (int __year) noexcept (true) __attribute__ ((__const__)); 29761: # 296 "/usr/include/time.h" 3 4 29761: extern int nanosleep (const struct timespec *__requested_time, struct timespec *__remaining) __asm__ ("" "__nanosleep64") 29761: 29761: ; 29761: extern int clock_getres (clockid_t __clock_id, struct timespec *__res) noexcept (true) __asm__ ("" "__clock_getres64") 29761: 29761: ; 29761: extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_gettime64") 29761: 29761: __attribute__ ((__nonnull__ (2))); 29761: extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_settime64") 29761: 29761: __attribute__ ((__nonnull__ (2))); 29761: # 328 "/usr/include/time.h" 3 4 29761: extern int clock_nanosleep (clockid_t __clock_id, int __flags, const struct timespec *__req, struct timespec *__rem) __asm__ ("" "__clock_nanosleep_time64") 29761: 29761: 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int timer_create (clockid_t __clock_id, 29761: struct sigevent *__restrict __evp, 29761: timer_t *__restrict __timerid) noexcept (true); 29761: 29761: 29761: extern int timer_delete (timer_t __timerid) noexcept (true); 29761: # 361 "/usr/include/time.h" 3 4 29761: extern int timer_settime (timer_t __timerid, int __flags, const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) noexcept (true) __asm__ ("" "__timer_settime64") 29761: 29761: 29761: ; 29761: 29761: extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) noexcept (true) __asm__ ("" "__timer_gettime64") 29761: 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int timer_getoverrun (timer_t __timerid) noexcept (true); 29761: # 387 "/usr/include/time.h" 3 4 29761: extern int timespec_get (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_get64") 29761: __attribute__ ((__nonnull__ (1))); 29761: # 403 "/usr/include/time.h" 3 4 29761: extern int timespec_getres (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_getres64") 29761: 29761: ; 29761: # 425 "/usr/include/time.h" 3 4 29761: extern int getdate_err; 29761: # 434 "/usr/include/time.h" 3 4 29761: extern struct tm *getdate (const char *__string); 29761: # 448 "/usr/include/time.h" 3 4 29761: extern int getdate_r (const char *__restrict __string, 29761: struct tm *__restrict __resbufp); 29761: 29761: 29761: } 29761: # 24 "/usr/include/pthread.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 1 3 4 29761: # 44 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 2 3 4 29761: # 45 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 1 3 4 29761: # 25 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 3 4 29761: typedef union 29761: { 29761: __extension__ unsigned long long int __value64; 29761: struct 29761: { 29761: unsigned int __low; 29761: unsigned int __high; 29761: } __value32; 29761: } __atomic_wide_counter; 29761: # 47 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29761: 29761: 29761: 29761: 29761: typedef struct __pthread_internal_list 29761: { 29761: struct __pthread_internal_list *__prev; 29761: struct __pthread_internal_list *__next; 29761: } __pthread_list_t; 29761: 29761: typedef struct __pthread_internal_slist 29761: { 29761: struct __pthread_internal_slist *__next; 29761: } __pthread_slist_t; 29761: # 76 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 29761: struct __pthread_mutex_s 29761: { 29761: int __lock ; 29761: unsigned int __count; 29761: int __owner; 29761: # 58 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 29761: int __kind; 29761: 29761: unsigned int __nusers; 29761: 29761: 29761: 29761: 29761: 29761: 29761: __extension__ union 29761: { 29761: int __spins; 29761: __pthread_slist_t __list; 29761: }; 29761: 29761: 29761: }; 29761: # 77 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29761: # 89 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 1 3 4 29761: # 29 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 29761: struct __pthread_rwlock_arch_t 29761: { 29761: unsigned int __readers; 29761: unsigned int __writers; 29761: unsigned int __wrphase_futex; 29761: unsigned int __writers_futex; 29761: unsigned int __pad3; 29761: unsigned int __pad4; 29761: # 45 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 29761: unsigned char __flags; 29761: unsigned char __shared; 29761: unsigned char __pad1; 29761: unsigned char __pad2; 29761: 29761: int __cur_writer; 29761: }; 29761: # 90 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29761: 29761: 29761: 29761: 29761: struct __pthread_cond_s 29761: { 29761: __atomic_wide_counter __wseq; 29761: __atomic_wide_counter __g1_start; 29761: unsigned int __g_refs[2] ; 29761: unsigned int __g_size[2]; 29761: unsigned int __g1_orig_size; 29761: unsigned int __wrefs; 29761: unsigned int __g_signals[2]; 29761: }; 29761: 29761: typedef unsigned int __tss_t; 29761: typedef unsigned long int __thrd_t; 29761: 29761: typedef struct 29761: { 29761: int __data ; 29761: } __once_flag; 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 2 3 4 29761: 29761: 29761: 29761: typedef unsigned long int pthread_t; 29761: 29761: 29761: 29761: 29761: typedef union 29761: { 29761: char __size[4]; 29761: int __align; 29761: } pthread_mutexattr_t; 29761: 29761: 29761: 29761: 29761: typedef union 29761: { 29761: char __size[4]; 29761: int __align; 29761: } pthread_condattr_t; 29761: 29761: 29761: 29761: typedef unsigned int pthread_key_t; 29761: 29761: 29761: 29761: typedef int pthread_once_t; 29761: 29761: 29761: union pthread_attr_t 29761: { 29761: char __size[36]; 29761: long int __align; 29761: }; 29761: 29761: typedef union pthread_attr_t pthread_attr_t; 29761: 29761: 29761: 29761: 29761: typedef union 29761: { 29761: struct __pthread_mutex_s __data; 29761: char __size[24]; 29761: long int __align; 29761: } pthread_mutex_t; 29761: 29761: 29761: typedef union 29761: { 29761: struct __pthread_cond_s __data; 29761: char __size[48]; 29761: __extension__ long long int __align; 29761: } pthread_cond_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef union 29761: { 29761: struct __pthread_rwlock_arch_t __data; 29761: char __size[32]; 29761: long int __align; 29761: } pthread_rwlock_t; 29761: 29761: typedef union 29761: { 29761: char __size[8]; 29761: long int __align; 29761: } pthread_rwlockattr_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef volatile int pthread_spinlock_t; 29761: 29761: 29761: 29761: 29761: typedef union 29761: { 29761: char __size[20]; 29761: long int __align; 29761: } pthread_barrier_t; 29761: 29761: typedef union 29761: { 29761: char __size[4]; 29761: int __align; 29761: } pthread_barrierattr_t; 29761: # 27 "/usr/include/pthread.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 1 3 4 29761: # 33 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 3 4 29761: typedef int __jmp_buf[64] __attribute__((__aligned__ (8))); 29761: # 28 "/usr/include/pthread.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 29 "/usr/include/pthread.h" 2 3 4 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__sigset_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: typedef struct 29761: { 29761: unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 29761: } __sigset_t; 29761: # 31 "/usr/include/pthread.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 3 4 29761: struct __jmp_buf_tag 29761: { 29761: 29761: 29761: 29761: 29761: __jmp_buf __jmpbuf; 29761: int __mask_was_saved; 29761: __sigset_t __saved_mask; 29761: }; 29761: # 32 "/usr/include/pthread.h" 2 3 4 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 3 4 29761: extern "C" { 29761: extern long int __sysconf (int __name) noexcept (true); 29761: } 29761: # 34 "/usr/include/pthread.h" 2 3 4 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_CREATE_JOINABLE, 29761: 29761: PTHREAD_CREATE_DETACHED 29761: 29761: }; 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_MUTEX_TIMED_NP, 29761: PTHREAD_MUTEX_RECURSIVE_NP, 29761: PTHREAD_MUTEX_ERRORCHECK_NP, 29761: PTHREAD_MUTEX_ADAPTIVE_NP 29761: 29761: , 29761: PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, 29761: PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, 29761: PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, 29761: PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL 29761: 29761: 29761: 29761: , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_MUTEX_STALLED, 29761: PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, 29761: PTHREAD_MUTEX_ROBUST, 29761: PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_PRIO_NONE, 29761: PTHREAD_PRIO_INHERIT, 29761: PTHREAD_PRIO_PROTECT 29761: }; 29761: # 104 "/usr/include/pthread.h" 3 4 29761: enum 29761: { 29761: PTHREAD_RWLOCK_PREFER_READER_NP, 29761: PTHREAD_RWLOCK_PREFER_WRITER_NP, 29761: PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 29761: PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP 29761: }; 29761: # 124 "/usr/include/pthread.h" 3 4 29761: enum 29761: { 29761: PTHREAD_INHERIT_SCHED, 29761: 29761: PTHREAD_EXPLICIT_SCHED 29761: 29761: }; 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_SCOPE_SYSTEM, 29761: 29761: PTHREAD_SCOPE_PROCESS 29761: 29761: }; 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_PROCESS_PRIVATE, 29761: 29761: PTHREAD_PROCESS_SHARED 29761: 29761: }; 29761: # 159 "/usr/include/pthread.h" 3 4 29761: struct _pthread_cleanup_buffer 29761: { 29761: void (*__routine) (void *); 29761: void *__arg; 29761: int __canceltype; 29761: struct _pthread_cleanup_buffer *__prev; 29761: }; 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_CANCEL_ENABLE, 29761: 29761: PTHREAD_CANCEL_DISABLE 29761: 29761: }; 29761: enum 29761: { 29761: PTHREAD_CANCEL_DEFERRED, 29761: 29761: PTHREAD_CANCEL_ASYNCHRONOUS 29761: 29761: }; 29761: # 197 "/usr/include/pthread.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: extern int pthread_create (pthread_t *__restrict __newthread, 29761: const pthread_attr_t *__restrict __attr, 29761: void *(*__start_routine) (void *), 29761: void *__restrict __arg) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_join (pthread_t __th, void **__thread_return); 29761: 29761: 29761: 29761: 29761: extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) noexcept (true); 29761: # 248 "/usr/include/pthread.h" 3 4 29761: extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, const struct timespec *__abstime) __asm__ ("" "__pthread_timedjoin_np64") 29761: 29761: 29761: ; 29761: 29761: extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, clockid_t __clockid, const struct timespec *__abstime) __asm__ ("" "__pthread_clockjoin_np64") 29761: 29761: 29761: 29761: ; 29761: # 269 "/usr/include/pthread.h" 3 4 29761: extern int pthread_detach (pthread_t __th) noexcept (true); 29761: 29761: 29761: 29761: extern pthread_t pthread_self (void) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) 29761: noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_init (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_attr_destroy (pthread_attr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, 29761: int *__detachstate) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, 29761: int __detachstate) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, 29761: size_t *__guardsize) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setguardsize (pthread_attr_t *__attr, 29761: size_t __guardsize) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, 29761: struct sched_param *__restrict __param) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, 29761: const struct sched_param *__restrict 29761: __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict 29761: __attr, int *__restrict __policy) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 29761: __attr, int *__restrict __inherit) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, 29761: int __inherit) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, 29761: int *__restrict __scope) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict 29761: __attr, void **__restrict __stackaddr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, 29761: void *__stackaddr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); 29761: 29761: 29761: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict 29761: __attr, size_t *__restrict __stacksize) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_setstacksize (pthread_attr_t *__attr, 29761: size_t __stacksize) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, 29761: void **__restrict __stackaddr, 29761: size_t *__restrict __stacksize) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, 29761: size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, 29761: size_t __cpusetsize, 29761: const cpu_set_t *__cpuset) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, 29761: size_t __cpusetsize, 29761: cpu_set_t *__cpuset) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: extern int pthread_getattr_default_np (pthread_attr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr, 29761: const __sigset_t *sigmask); 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr, 29761: __sigset_t *sigmask); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_setattr_default_np (const pthread_attr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_setschedparam (pthread_t __target_thread, int __policy, 29761: const struct sched_param *__param) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: extern int pthread_getschedparam (pthread_t __target_thread, 29761: int *__restrict __policy, 29761: struct sched_param *__restrict __param) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29761: 29761: 29761: extern int pthread_setschedprio (pthread_t __target_thread, int __prio) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int pthread_getname_np (pthread_t __target_thread, char *__buf, 29761: size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: extern int pthread_setname_np (pthread_t __target_thread, const char *__name) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_getconcurrency (void) noexcept (true); 29761: 29761: 29761: extern int pthread_setconcurrency (int __level) noexcept (true); 29761: 29761: 29761: 29761: extern int pthread_yield (void) noexcept (true); 29761: 29761: extern int pthread_yield (void) noexcept (true) __asm__ ("" "sched_yield") 29761: __attribute__ ((__deprecated__ ("pthread_yield is deprecated, use sched_yield instead"))) 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, 29761: const cpu_set_t *__cpuset) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, 29761: cpu_set_t *__cpuset) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: # 509 "/usr/include/pthread.h" 3 4 29761: extern int pthread_once (pthread_once_t *__once_control, 29761: void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); 29761: # 521 "/usr/include/pthread.h" 3 4 29761: extern int pthread_setcancelstate (int __state, int *__oldstate); 29761: 29761: 29761: 29761: extern int pthread_setcanceltype (int __type, int *__oldtype); 29761: 29761: 29761: extern int pthread_cancel (pthread_t __th); 29761: 29761: 29761: 29761: 29761: extern void pthread_testcancel (void); 29761: 29761: 29761: 29761: 29761: struct __cancel_jmp_buf_tag 29761: { 29761: __jmp_buf __cancel_jmp_buf; 29761: int __mask_was_saved; 29761: }; 29761: 29761: typedef struct 29761: { 29761: struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; 29761: void *__pad[4]; 29761: } __pthread_unwind_buf_t __attribute__ ((__aligned__)); 29761: # 557 "/usr/include/pthread.h" 3 4 29761: struct __pthread_cleanup_frame 29761: { 29761: void (*__cancel_routine) (void *); 29761: void *__cancel_arg; 29761: int __do_it; 29761: int __cancel_type; 29761: }; 29761: 29761: 29761: 29761: 29761: class __pthread_cleanup_class 29761: { 29761: void (*__cancel_routine) (void *); 29761: void *__cancel_arg; 29761: int __do_it; 29761: int __cancel_type; 29761: 29761: public: 29761: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) 29761: : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } 29761: ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } 29761: void __setdoit (int __newval) { __do_it = __newval; } 29761: void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, 29761: &__cancel_type); } 29761: void __restore () const { pthread_setcanceltype (__cancel_type, 0); } 29761: }; 29761: # 766 "/usr/include/pthread.h" 3 4 29761: extern int __sigsetjmp_cancel (struct __cancel_jmp_buf_tag __env[1], int __savemask) noexcept (true) __asm__ ("" "__sigsetjmp") 29761: 29761: 29761: __attribute__ ((__returns_twice__)); 29761: # 781 "/usr/include/pthread.h" 3 4 29761: extern int pthread_mutex_init (pthread_mutex_t *__mutex, 29761: const pthread_mutexattr_t *__mutexattr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutex_lock (pthread_mutex_t *__mutex) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 805 "/usr/include/pthread.h" 3 4 29761: extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_timedlock64") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2))); 29761: # 823 "/usr/include/pthread.h" 3 4 29761: extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_clocklock64") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_mutex_getprioceiling (const pthread_mutex_t * 29761: __restrict __mutex, 29761: int *__restrict __prioceiling) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, 29761: int __prioceiling, 29761: int *__restrict __old_ceiling) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: 29761: extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutex_consistent_np (pthread_mutex_t *) noexcept (true) __asm__ ("" "pthread_mutex_consistent") 29761: __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__deprecated__ ("pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent"))) 29761: ; 29761: # 874 "/usr/include/pthread.h" 3 4 29761: extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * 29761: __restrict __attr, 29761: int *__restrict __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, 29761: int __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict 29761: __attr, int *__restrict __kind) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * 29761: __restrict __attr, 29761: int *__restrict __protocol) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, 29761: int __protocol) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * 29761: __restrict __attr, 29761: int *__restrict __prioceiling) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, 29761: int __prioceiling) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, 29761: int *__robustness) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_mutexattr_getrobust_np (pthread_mutexattr_t *, int *) noexcept (true) __asm__ ("" "pthread_mutexattr_getrobust") 29761: 29761: __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__deprecated__ ("pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust"))) 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, 29761: int __robustness) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *, int) noexcept (true) __asm__ ("" "pthread_mutexattr_setrobust") 29761: 29761: __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__deprecated__ ("pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust"))) 29761: ; 29761: # 967 "/usr/include/pthread.h" 3 4 29761: extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, 29761: const pthread_rwlockattr_t *__restrict 29761: __attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 991 "/usr/include/pthread.h" 3 4 29761: extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedrdlock64") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2))); 29761: # 1010 "/usr/include/pthread.h" 3 4 29761: extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockrdlock64") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 1038 "/usr/include/pthread.h" 3 4 29761: extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedwrlock64") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2))); 29761: # 1058 "/usr/include/pthread.h" 3 4 29761: extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockwrlock64") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * 29761: __restrict __attr, 29761: int *__restrict __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, 29761: int __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * 29761: __restrict __attr, 29761: int *__restrict __pref) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, 29761: int __pref) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_cond_init (pthread_cond_t *__restrict __cond, 29761: const pthread_condattr_t *__restrict __cond_attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_cond_destroy (pthread_cond_t *__cond) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_cond_signal (pthread_cond_t *__cond) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_cond_broadcast (pthread_cond_t *__cond) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, 29761: pthread_mutex_t *__restrict __mutex) 29761: __attribute__ ((__nonnull__ (1, 2))); 29761: # 1151 "/usr/include/pthread.h" 3 4 29761: extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) __asm__ ("" "__pthread_cond_timedwait64") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2, 3))); 29761: # 1178 "/usr/include/pthread.h" 3 4 29761: extern int pthread_cond_clockwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, __clockid_t __clock_id, const struct timespec *__restrict __abstime) __asm__ ("" "__pthread_cond_clockwait64") 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2, 4))); 29761: # 1194 "/usr/include/pthread.h" 3 4 29761: extern int pthread_condattr_init (pthread_condattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_condattr_destroy (pthread_condattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_condattr_getpshared (const pthread_condattr_t * 29761: __restrict __attr, 29761: int *__restrict __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, 29761: int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_condattr_getclock (const pthread_condattr_t * 29761: __restrict __attr, 29761: __clockid_t *__restrict __clock_id) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_condattr_setclock (pthread_condattr_t *__attr, 29761: __clockid_t __clock_id) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 1230 "/usr/include/pthread.h" 3 4 29761: extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_spin_destroy (pthread_spinlock_t *__lock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_spin_lock (pthread_spinlock_t *__lock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_spin_trylock (pthread_spinlock_t *__lock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_spin_unlock (pthread_spinlock_t *__lock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, 29761: const pthread_barrierattr_t *__restrict 29761: __attr, unsigned int __count) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_barrier_wait (pthread_barrier_t *__barrier) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * 29761: __restrict __attr, 29761: int *__restrict __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, 29761: int __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 1297 "/usr/include/pthread.h" 3 4 29761: extern int pthread_key_create (pthread_key_t *__key, 29761: void (*__destr_function) (void *)) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_key_delete (pthread_key_t __key) noexcept (true); 29761: 29761: 29761: extern void *pthread_getspecific (pthread_key_t __key) noexcept (true); 29761: 29761: 29761: extern int pthread_setspecific (pthread_key_t __key, 29761: const void *__pointer) 29761: noexcept (true) __attribute__ ((__access__ (__none__, 2))); 29761: 29761: 29761: 29761: 29761: extern int pthread_getcpuclockid (pthread_t __thread_id, 29761: __clockid_t *__clock_id) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: # 1332 "/usr/include/pthread.h" 3 4 29761: extern int pthread_atfork (void (*__prepare) (void), 29761: void (*__parent) (void), 29761: void (*__child) (void)) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) noexcept (true) 29761: { 29761: return __thread1 == __thread2; 29761: } 29761: 29761: 29761: } 29761: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 2 3 29761: # 47 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: typedef pthread_t __gthread_t; 29761: typedef pthread_key_t __gthread_key_t; 29761: typedef pthread_once_t __gthread_once_t; 29761: typedef pthread_mutex_t __gthread_mutex_t; 29761: 29761: 29761: 29761: typedef pthread_mutex_t __gthread_recursive_mutex_t; 29761: typedef pthread_cond_t __gthread_cond_t; 29761: typedef struct timespec __gthread_time_t; 29761: # 108 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 312 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: static inline int 29761: __gthread_active_p (void) 29761: { 29761: return 1; 29761: } 29761: # 672 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: static inline int 29761: __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), 29761: void *__args) 29761: { 29761: return pthread_create (__threadid, __null, __func, __args); 29761: } 29761: 29761: static inline int 29761: __gthread_join (__gthread_t __threadid, void **__value_ptr) 29761: { 29761: return pthread_join (__threadid, __value_ptr); 29761: } 29761: 29761: static inline int 29761: __gthread_detach (__gthread_t __threadid) 29761: { 29761: return pthread_detach (__threadid); 29761: } 29761: 29761: static inline int 29761: __gthread_equal (__gthread_t __t1, __gthread_t __t2) 29761: { 29761: return pthread_equal (__t1, __t2); 29761: } 29761: 29761: static inline __gthread_t 29761: __gthread_self (void) 29761: { 29761: return pthread_self (); 29761: } 29761: 29761: static inline int 29761: __gthread_yield (void) 29761: { 29761: return sched_yield (); 29761: } 29761: 29761: static inline int 29761: __gthread_once (__gthread_once_t *__once, void (*__func) (void)) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_once (__once, __func); 29761: else 29761: return -1; 29761: } 29761: 29761: static inline int 29761: __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) 29761: { 29761: return pthread_key_create (__key, __dtor); 29761: } 29761: 29761: static inline int 29761: __gthread_key_delete (__gthread_key_t __key) 29761: { 29761: return pthread_key_delete (__key); 29761: } 29761: 29761: static inline void * 29761: __gthread_getspecific (__gthread_key_t __key) 29761: { 29761: return pthread_getspecific (__key); 29761: } 29761: 29761: static inline int 29761: __gthread_setspecific (__gthread_key_t __key, const void *__ptr) 29761: { 29761: return pthread_setspecific (__key, __ptr); 29761: } 29761: 29761: static inline void 29761: __gthread_mutex_init_function (__gthread_mutex_t *__mutex) 29761: { 29761: if (__gthread_active_p ()) 29761: pthread_mutex_init (__mutex, __null); 29761: } 29761: 29761: static inline int 29761: __gthread_mutex_destroy (__gthread_mutex_t *__mutex) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_mutex_destroy (__mutex); 29761: else 29761: return 0; 29761: } 29761: 29761: static inline int 29761: __gthread_mutex_lock (__gthread_mutex_t *__mutex) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_mutex_lock (__mutex); 29761: else 29761: return 0; 29761: } 29761: 29761: static inline int 29761: __gthread_mutex_trylock (__gthread_mutex_t *__mutex) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_mutex_trylock (__mutex); 29761: else 29761: return 0; 29761: } 29761: 29761: 29761: static inline int 29761: __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, 29761: const __gthread_time_t *__abs_timeout) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_mutex_timedlock (__mutex, __abs_timeout); 29761: else 29761: return 0; 29761: } 29761: 29761: 29761: static inline int 29761: __gthread_mutex_unlock (__gthread_mutex_t *__mutex) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_mutex_unlock (__mutex); 29761: else 29761: return 0; 29761: } 29761: # 821 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: static inline int 29761: __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) 29761: { 29761: return __gthread_mutex_lock (__mutex); 29761: } 29761: 29761: static inline int 29761: __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) 29761: { 29761: return __gthread_mutex_trylock (__mutex); 29761: } 29761: 29761: 29761: static inline int 29761: __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, 29761: const __gthread_time_t *__abs_timeout) 29761: { 29761: return __gthread_mutex_timedlock (__mutex, __abs_timeout); 29761: } 29761: 29761: 29761: static inline int 29761: __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) 29761: { 29761: return __gthread_mutex_unlock (__mutex); 29761: } 29761: 29761: static inline int 29761: __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) 29761: { 29761: return __gthread_mutex_destroy (__mutex); 29761: } 29761: # 863 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: static inline int 29761: __gthread_cond_broadcast (__gthread_cond_t *__cond) 29761: { 29761: return pthread_cond_broadcast (__cond); 29761: } 29761: 29761: static inline int 29761: __gthread_cond_signal (__gthread_cond_t *__cond) 29761: { 29761: return pthread_cond_signal (__cond); 29761: } 29761: 29761: static inline int 29761: __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) 29761: { 29761: return pthread_cond_wait (__cond, __mutex); 29761: } 29761: 29761: static inline int 29761: __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, 29761: const __gthread_time_t *__abs_timeout) 29761: { 29761: return pthread_cond_timedwait (__cond, __mutex, __abs_timeout); 29761: } 29761: 29761: static inline int 29761: __gthread_cond_wait_recursive (__gthread_cond_t *__cond, 29761: __gthread_recursive_mutex_t *__mutex) 29761: { 29761: return __gthread_cond_wait (__cond, __mutex); 29761: } 29761: 29761: static inline int 29761: __gthread_cond_destroy (__gthread_cond_t* __cond) 29761: { 29761: return pthread_cond_destroy (__cond); 29761: } 29761: # 158 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 2 3 29761: 29761: 29761: #pragma GCC visibility pop 29761: # 36 "/usr/include/c++/14/ext/atomicity.h" 2 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 1 3 29761: # 32 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 3 29761: typedef int _Atomic_word; 29761: # 37 "/usr/include/c++/14/ext/atomicity.h" 2 3 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: extern char __libc_single_threaded; 29761: 29761: } 29761: # 39 "/usr/include/c++/14/ext/atomicity.h" 2 3 29761: 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: inline bool 29761: __is_single_threaded() noexcept 29761: { 29761: 29761: 29761: 29761: return ::__libc_single_threaded; 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline _Atomic_word 29761: __attribute__((__always_inline__)) 29761: __exchange_and_add(volatile _Atomic_word* __mem, int __val) 29761: { return __atomic_fetch_add(__mem, __val, 4); } 29761: 29761: inline void 29761: __attribute__((__always_inline__)) 29761: __atomic_add(volatile _Atomic_word* __mem, int __val) 29761: { __atomic_fetch_add(__mem, __val, 4); } 29761: # 80 "/usr/include/c++/14/ext/atomicity.h" 3 29761: inline _Atomic_word 29761: __attribute__((__always_inline__)) 29761: __exchange_and_add_single(_Atomic_word* __mem, int __val) 29761: { 29761: _Atomic_word __result = *__mem; 29761: *__mem += __val; 29761: return __result; 29761: } 29761: 29761: inline void 29761: __attribute__((__always_inline__)) 29761: __atomic_add_single(_Atomic_word* __mem, int __val) 29761: { *__mem += __val; } 29761: 29761: inline _Atomic_word 29761: __attribute__ ((__always_inline__)) 29761: __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) 29761: { 29761: if (__is_single_threaded()) 29761: return __exchange_and_add_single(__mem, __val); 29761: else 29761: return __exchange_and_add(__mem, __val); 29761: } 29761: 29761: inline void 29761: __attribute__ ((__always_inline__)) 29761: __atomic_add_dispatch(_Atomic_word* __mem, int __val) 29761: { 29761: if (__is_single_threaded()) 29761: __atomic_add_single(__mem, __val); 29761: else 29761: __atomic_add(__mem, __val); 29761: } 29761: 29761: 29761: } 29761: # 62 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29761: # 1 "/usr/include/c++/14/ext/concurrence.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/concurrence.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/concurrence.h" 3 29761: 29761: # 1 "/usr/include/c++/14/exception" 1 3 29761: # 33 "/usr/include/c++/14/exception" 3 29761: 29761: # 34 "/usr/include/c++/14/exception" 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 40 "/usr/include/c++/14/exception" 2 3 29761: 29761: extern "C++" { 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: # 54 "/usr/include/c++/14/exception" 3 29761: class bad_exception : public exception 29761: { 29761: public: 29761: bad_exception() noexcept { } 29761: 29761: 29761: 29761: virtual ~bad_exception() noexcept; 29761: 29761: 29761: virtual const char* 29761: what() const noexcept; 29761: }; 29761: 29761: 29761: typedef void (*terminate_handler) (); 29761: 29761: 29761: terminate_handler set_terminate(terminate_handler) noexcept; 29761: 29761: 29761: 29761: terminate_handler get_terminate() noexcept; 29761: 29761: 29761: 29761: 29761: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 29761: 29761: 29761: 29761: typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((__deprecated__)) 29761: unexpected_handler set_unexpected(unexpected_handler) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((__deprecated__)) 29761: unexpected_handler get_unexpected() noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((__deprecated__)) 29761: void unexpected() __attribute__ ((__noreturn__,__cold__)); 29761: # 124 "/usr/include/c++/14/exception" 3 29761: __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) 29761: bool uncaught_exception() noexcept __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: int uncaught_exceptions() noexcept __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: } 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 158 "/usr/include/c++/14/exception" 3 29761: void __verbose_terminate_handler(); 29761: 29761: 29761: } 29761: 29761: } 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/exception_ptr.h" 1 3 29761: # 36 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: # 1 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 1 3 29761: # 34 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29761: 29761: # 35 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29761: 29761: #pragma GCC visibility push(default) 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 39 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 2 3 29761: # 50 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29761: namespace std 29761: { 29761: class type_info; 29761: } 29761: 29761: namespace __cxxabiv1 29761: { 29761: struct __cxa_refcounted_exception; 29761: 29761: extern "C" 29761: { 29761: 29761: void* 29761: __cxa_allocate_exception(size_t) noexcept; 29761: 29761: void 29761: __cxa_free_exception(void*) noexcept; 29761: 29761: 29761: __cxa_refcounted_exception* 29761: __cxa_init_primary_exception(void *__object, std::type_info *__tinfo, 29761: void ( *__dest) (void *)) 29761: noexcept; 29761: 29761: } 29761: } 29761: 29761: 29761: 29761: #pragma GCC visibility pop 29761: # 37 "/usr/include/c++/14/bits/exception_ptr.h" 2 3 29761: # 50 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: extern "C++" { 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: class type_info; 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __exception_ptr 29761: { 29761: class exception_ptr; 29761: } 29761: 29761: using __exception_ptr::exception_ptr; 29761: # 75 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: exception_ptr current_exception() noexcept; 29761: 29761: template 29761: exception_ptr make_exception_ptr(_Ex) noexcept; 29761: 29761: 29761: void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); 29761: 29761: namespace __exception_ptr 29761: { 29761: using std::rethrow_exception; 29761: # 97 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: class exception_ptr 29761: { 29761: void* _M_exception_object; 29761: 29761: explicit exception_ptr(void* __e) noexcept; 29761: 29761: void _M_addref() noexcept; 29761: void _M_release() noexcept; 29761: 29761: void *_M_get() const noexcept __attribute__ ((__pure__)); 29761: 29761: friend exception_ptr std::current_exception() noexcept; 29761: friend void std::rethrow_exception(exception_ptr); 29761: template 29761: friend exception_ptr std::make_exception_ptr(_Ex) noexcept; 29761: 29761: public: 29761: exception_ptr() noexcept; 29761: 29761: exception_ptr(const exception_ptr&) noexcept; 29761: 29761: 29761: exception_ptr(nullptr_t) noexcept 29761: : _M_exception_object(nullptr) 29761: { } 29761: 29761: exception_ptr(exception_ptr&& __o) noexcept 29761: : _M_exception_object(__o._M_exception_object) 29761: { __o._M_exception_object = nullptr; } 29761: # 135 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: exception_ptr& 29761: operator=(const exception_ptr&) noexcept; 29761: 29761: 29761: exception_ptr& 29761: operator=(exception_ptr&& __o) noexcept 29761: { 29761: exception_ptr(static_cast(__o)).swap(*this); 29761: return *this; 29761: } 29761: 29761: 29761: ~exception_ptr() noexcept; 29761: 29761: void 29761: swap(exception_ptr&) noexcept; 29761: # 161 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: explicit operator bool() const noexcept 29761: { return _M_exception_object; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const exception_ptr& __x, const exception_ptr& __y) 29761: noexcept 29761: { return __x._M_exception_object == __y._M_exception_object; } 29761: 29761: friend bool 29761: operator!=(const exception_ptr& __x, const exception_ptr& __y) 29761: noexcept 29761: { return __x._M_exception_object != __y._M_exception_object; } 29761: 29761: 29761: const class std::type_info* 29761: __cxa_exception_type() const noexcept 29761: __attribute__ ((__pure__)); 29761: }; 29761: 29761: 29761: inline 29761: exception_ptr::exception_ptr() noexcept 29761: : _M_exception_object(0) 29761: { } 29761: 29761: 29761: inline 29761: exception_ptr::exception_ptr(const exception_ptr& __other) 29761: noexcept 29761: : _M_exception_object(__other._M_exception_object) 29761: { 29761: if (_M_exception_object) 29761: _M_addref(); 29761: } 29761: 29761: 29761: inline 29761: exception_ptr::~exception_ptr() noexcept 29761: { 29761: if (_M_exception_object) 29761: _M_release(); 29761: } 29761: 29761: 29761: inline exception_ptr& 29761: exception_ptr::operator=(const exception_ptr& __other) noexcept 29761: { 29761: exception_ptr(__other).swap(*this); 29761: return *this; 29761: } 29761: 29761: 29761: inline void 29761: exception_ptr::swap(exception_ptr &__other) noexcept 29761: { 29761: void *__tmp = _M_exception_object; 29761: _M_exception_object = __other._M_exception_object; 29761: __other._M_exception_object = __tmp; 29761: } 29761: 29761: 29761: inline void 29761: swap(exception_ptr& __lhs, exception_ptr& __rhs) 29761: { __lhs.swap(__rhs); } 29761: 29761: 29761: template 29761: 29761: inline void 29761: __dest_thunk(void* __x) 29761: { static_cast<_Ex*>(__x)->~_Ex(); } 29761: 29761: 29761: } 29761: 29761: using __exception_ptr::swap; 29761: 29761: 29761: 29761: template 29761: exception_ptr 29761: make_exception_ptr(_Ex __ex) noexcept 29761: { 29761: 29761: using _Ex2 = typename decay<_Ex>::type; 29761: void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); 29761: (void) __cxxabiv1::__cxa_init_primary_exception( 29761: __e, const_cast(&typeid(_Ex)), 29761: __exception_ptr::__dest_thunk<_Ex2>); 29761: try 29761: { 29761: ::new (__e) _Ex2(__ex); 29761: return exception_ptr(__e); 29761: } 29761: catch(...) 29761: { 29761: __cxxabiv1::__cxa_free_exception(__e); 29761: return current_exception(); 29761: } 29761: # 276 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: } 29761: # 290 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: } 29761: 29761: } 29761: # 167 "/usr/include/c++/14/exception" 2 3 29761: # 1 "/usr/include/c++/14/bits/nested_exception.h" 1 3 29761: # 40 "/usr/include/c++/14/bits/nested_exception.h" 3 29761: extern "C++" { 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: # 59 "/usr/include/c++/14/bits/nested_exception.h" 3 29761: class nested_exception 29761: { 29761: exception_ptr _M_ptr; 29761: 29761: public: 29761: 29761: nested_exception() noexcept : _M_ptr(current_exception()) { } 29761: 29761: nested_exception(const nested_exception&) noexcept = default; 29761: 29761: nested_exception& operator=(const nested_exception&) noexcept = default; 29761: 29761: virtual ~nested_exception() noexcept; 29761: 29761: 29761: [[noreturn]] 29761: void 29761: rethrow_nested() const 29761: { 29761: if (_M_ptr) 29761: rethrow_exception(_M_ptr); 29761: std::terminate(); 29761: } 29761: 29761: 29761: exception_ptr 29761: nested_ptr() const noexcept 29761: { return _M_ptr; } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct _Nested_exception : public _Except, public nested_exception 29761: { 29761: explicit _Nested_exception(const _Except& __ex) 29761: : _Except(__ex) 29761: { } 29761: 29761: explicit _Nested_exception(_Except&& __ex) 29761: : _Except(static_cast<_Except&&>(__ex)) 29761: { } 29761: }; 29761: # 145 "/usr/include/c++/14/bits/nested_exception.h" 3 29761: template 29761: [[noreturn]] 29761: inline void 29761: throw_with_nested(_Tp&& __t) 29761: { 29761: using _Up = typename decay<_Tp>::type; 29761: using _CopyConstructible 29761: = __and_, is_move_constructible<_Up>>; 29761: static_assert(_CopyConstructible::value, 29761: "throw_with_nested argument must be CopyConstructible"); 29761: 29761: 29761: if constexpr (is_class_v<_Up>) 29761: if constexpr (!is_final_v<_Up>) 29761: if constexpr (!is_base_of_v) 29761: throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; 29761: throw std::forward<_Tp>(__t); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 203 "/usr/include/c++/14/bits/nested_exception.h" 3 29761: template 29761: 29761: 29761: 29761: inline void 29761: rethrow_if_nested(const _Ex& __ex) 29761: { 29761: const _Ex* __ptr = __builtin_addressof(__ex); 29761: # 223 "/usr/include/c++/14/bits/nested_exception.h" 3 29761: if constexpr (!is_polymorphic_v<_Ex>) 29761: return; 29761: else if constexpr (is_base_of_v 29761: && !is_convertible_v<_Ex*, nested_exception*>) 29761: return; 29761: 29761: 29761: 29761: 29761: else if (auto __ne_ptr = dynamic_cast(__ptr)) 29761: __ne_ptr->rethrow_nested(); 29761: 29761: } 29761: 29761: 29761: } 29761: 29761: } 29761: # 168 "/usr/include/c++/14/exception" 2 3 29761: # 35 "/usr/include/c++/14/ext/concurrence.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; 29761: 29761: 29761: 29761: inline const _Lock_policy __default_lock_policy = 29761: 29761: 29761: 29761: _S_atomic; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class __concurrence_lock_error : public std::exception 29761: { 29761: public: 29761: virtual char const* 29761: what() const throw() 29761: { return "__gnu_cxx::__concurrence_lock_error"; } 29761: }; 29761: 29761: class __concurrence_unlock_error : public std::exception 29761: { 29761: public: 29761: virtual char const* 29761: what() const throw() 29761: { return "__gnu_cxx::__concurrence_unlock_error"; } 29761: }; 29761: 29761: class __concurrence_broadcast_error : public std::exception 29761: { 29761: public: 29761: virtual char const* 29761: what() const throw() 29761: { return "__gnu_cxx::__concurrence_broadcast_error"; } 29761: }; 29761: 29761: class __concurrence_wait_error : public std::exception 29761: { 29761: public: 29761: virtual char const* 29761: what() const throw() 29761: { return "__gnu_cxx::__concurrence_wait_error"; } 29761: }; 29761: 29761: 29761: inline void 29761: __throw_concurrence_lock_error() 29761: { (throw (__concurrence_lock_error())); } 29761: 29761: inline void 29761: __throw_concurrence_unlock_error() 29761: { (throw (__concurrence_unlock_error())); } 29761: 29761: 29761: inline void 29761: __throw_concurrence_broadcast_error() 29761: { (throw (__concurrence_broadcast_error())); } 29761: 29761: inline void 29761: __throw_concurrence_wait_error() 29761: { (throw (__concurrence_wait_error())); } 29761: 29761: 29761: class __mutex 29761: { 29761: private: 29761: 29761: __gthread_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 29761: 29761: 29761: 29761: 29761: __mutex(const __mutex&); 29761: __mutex& operator=(const __mutex&); 29761: 29761: public: 29761: __mutex() 29761: { 29761: 29761: 29761: 29761: 29761: } 29761: # 144 "/usr/include/c++/14/ext/concurrence.h" 3 29761: void lock() 29761: { 29761: 29761: if (__gthread_active_p()) 29761: { 29761: if (__gthread_mutex_lock(&_M_mutex) != 0) 29761: __throw_concurrence_lock_error(); 29761: } 29761: 29761: } 29761: 29761: void unlock() 29761: { 29761: 29761: if (__gthread_active_p()) 29761: { 29761: if (__gthread_mutex_unlock(&_M_mutex) != 0) 29761: __throw_concurrence_unlock_error(); 29761: } 29761: 29761: } 29761: 29761: __gthread_mutex_t* gthread_mutex(void) 29761: { return &_M_mutex; } 29761: }; 29761: 29761: class __recursive_mutex 29761: { 29761: private: 29761: 29761: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 29761: 29761: 29761: 29761: 29761: __recursive_mutex(const __recursive_mutex&); 29761: __recursive_mutex& operator=(const __recursive_mutex&); 29761: 29761: public: 29761: __recursive_mutex() 29761: { 29761: 29761: 29761: 29761: 29761: } 29761: # 199 "/usr/include/c++/14/ext/concurrence.h" 3 29761: void lock() 29761: { 29761: 29761: if (__gthread_active_p()) 29761: { 29761: if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) 29761: __throw_concurrence_lock_error(); 29761: } 29761: 29761: } 29761: 29761: void unlock() 29761: { 29761: 29761: if (__gthread_active_p()) 29761: { 29761: if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) 29761: __throw_concurrence_unlock_error(); 29761: } 29761: 29761: } 29761: 29761: __gthread_recursive_mutex_t* gthread_recursive_mutex(void) 29761: { return &_M_mutex; } 29761: }; 29761: 29761: 29761: 29761: 29761: class __scoped_lock 29761: { 29761: public: 29761: typedef __mutex __mutex_type; 29761: 29761: private: 29761: __mutex_type& _M_device; 29761: 29761: __scoped_lock(const __scoped_lock&); 29761: __scoped_lock& operator=(const __scoped_lock&); 29761: 29761: public: 29761: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) 29761: { _M_device.lock(); } 29761: 29761: ~__scoped_lock() throw() 29761: { _M_device.unlock(); } 29761: }; 29761: 29761: 29761: class __cond 29761: { 29761: private: 29761: 29761: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 29761: 29761: 29761: 29761: 29761: __cond(const __cond&); 29761: __cond& operator=(const __cond&); 29761: 29761: public: 29761: __cond() 29761: { 29761: 29761: 29761: 29761: 29761: } 29761: # 277 "/usr/include/c++/14/ext/concurrence.h" 3 29761: void broadcast() 29761: { 29761: 29761: if (__gthread_active_p()) 29761: { 29761: if (__gthread_cond_broadcast(&_M_cond) != 0) 29761: __throw_concurrence_broadcast_error(); 29761: } 29761: 29761: } 29761: 29761: void wait(__mutex *mutex) 29761: { 29761: 29761: { 29761: if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) 29761: __throw_concurrence_wait_error(); 29761: } 29761: 29761: } 29761: 29761: void wait_recursive(__recursive_mutex *mutex) 29761: { 29761: 29761: { 29761: if (__gthread_cond_wait_recursive(&_M_cond, 29761: mutex->gthread_recursive_mutex()) 29761: != 0) 29761: __throw_concurrence_wait_error(); 29761: } 29761: 29761: } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 63 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: # 75 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template class auto_ptr; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: 29761: 29761: class bad_weak_ptr : public std::exception 29761: { 29761: public: 29761: virtual char const* what() const noexcept; 29761: 29761: virtual ~bad_weak_ptr() noexcept; 29761: }; 29761: 29761: 29761: inline void 29761: __throw_bad_weak_ptr() 29761: { (throw (bad_weak_ptr())); } 29761: 29761: using __gnu_cxx::_Lock_policy; 29761: using __gnu_cxx::__default_lock_policy; 29761: using __gnu_cxx::_S_single; 29761: using __gnu_cxx::_S_mutex; 29761: using __gnu_cxx::_S_atomic; 29761: 29761: 29761: template<_Lock_policy _Lp> 29761: class _Mutex_base 29761: { 29761: protected: 29761: 29761: enum { _S_need_barriers = 0 }; 29761: }; 29761: 29761: template<> 29761: class _Mutex_base<_S_mutex> 29761: : public __gnu_cxx::__mutex 29761: { 29761: protected: 29761: 29761: 29761: 29761: enum { _S_need_barriers = 1 }; 29761: }; 29761: 29761: template<_Lock_policy _Lp = __default_lock_policy> 29761: class _Sp_counted_base 29761: : public _Mutex_base<_Lp> 29761: { 29761: public: 29761: _Sp_counted_base() noexcept 29761: : _M_use_count(1), _M_weak_count(1) { } 29761: 29761: virtual 29761: ~_Sp_counted_base() noexcept 29761: { } 29761: 29761: 29761: 29761: virtual void 29761: _M_dispose() noexcept = 0; 29761: 29761: 29761: virtual void 29761: _M_destroy() noexcept 29761: { delete this; } 29761: 29761: virtual void* 29761: _M_get_deleter(const std::type_info&) noexcept = 0; 29761: 29761: 29761: void 29761: _M_add_ref_copy() 29761: { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } 29761: 29761: 29761: void 29761: _M_add_ref_lock() 29761: { 29761: if (!_M_add_ref_lock_nothrow()) 29761: __throw_bad_weak_ptr(); 29761: } 29761: 29761: 29761: bool 29761: _M_add_ref_lock_nothrow() noexcept; 29761: 29761: 29761: void 29761: _M_release() noexcept; 29761: 29761: 29761: void 29761: _M_release_last_use() noexcept 29761: { 29761: ; 29761: _M_dispose(); 29761: 29761: 29761: 29761: 29761: if (_Mutex_base<_Lp>::_S_need_barriers) 29761: { 29761: __atomic_thread_fence (4); 29761: } 29761: 29761: 29761: ; 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, 29761: -1) == 1) 29761: { 29761: ; 29761: _M_destroy(); 29761: } 29761: } 29761: 29761: 29761: __attribute__((__noinline__)) 29761: void 29761: _M_release_last_use_cold() noexcept 29761: { _M_release_last_use(); } 29761: 29761: 29761: void 29761: _M_weak_add_ref() noexcept 29761: { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } 29761: 29761: 29761: void 29761: _M_weak_release() noexcept 29761: { 29761: 29761: ; 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) 29761: { 29761: ; 29761: if (_Mutex_base<_Lp>::_S_need_barriers) 29761: { 29761: 29761: 29761: __atomic_thread_fence (4); 29761: } 29761: _M_destroy(); 29761: } 29761: } 29761: 29761: long 29761: _M_get_use_count() const noexcept 29761: { 29761: 29761: 29761: return __atomic_load_n(&_M_use_count, 0); 29761: } 29761: 29761: private: 29761: _Sp_counted_base(_Sp_counted_base const&) = delete; 29761: _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; 29761: 29761: _Atomic_word _M_use_count; 29761: _Atomic_word _M_weak_count; 29761: }; 29761: 29761: template<> 29761: inline bool 29761: _Sp_counted_base<_S_single>:: 29761: _M_add_ref_lock_nothrow() noexcept 29761: { 29761: if (_M_use_count == 0) 29761: return false; 29761: ++_M_use_count; 29761: return true; 29761: } 29761: 29761: template<> 29761: inline bool 29761: _Sp_counted_base<_S_mutex>:: 29761: _M_add_ref_lock_nothrow() noexcept 29761: { 29761: __gnu_cxx::__scoped_lock sentry(*this); 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 29761: { 29761: _M_use_count = 0; 29761: return false; 29761: } 29761: return true; 29761: } 29761: 29761: template<> 29761: inline bool 29761: _Sp_counted_base<_S_atomic>:: 29761: _M_add_ref_lock_nothrow() noexcept 29761: { 29761: 29761: _Atomic_word __count = _M_get_use_count(); 29761: do 29761: { 29761: if (__count == 0) 29761: return false; 29761: 29761: 29761: } 29761: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 29761: true, 4, 29761: 0)); 29761: return true; 29761: } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_single>::_M_add_ref_copy() 29761: { ++_M_use_count; } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_single>::_M_release() noexcept 29761: { 29761: if (--_M_use_count == 0) 29761: { 29761: _M_dispose(); 29761: if (--_M_weak_count == 0) 29761: _M_destroy(); 29761: } 29761: } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_mutex>::_M_release() noexcept 29761: { 29761: 29761: ; 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29761: { 29761: _M_release_last_use(); 29761: } 29761: } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_atomic>::_M_release() noexcept 29761: { 29761: ; 29761: 29761: constexpr bool __lock_free 29761: = __atomic_always_lock_free(sizeof(long long), 0) 29761: && __atomic_always_lock_free(sizeof(_Atomic_word), 0); 29761: constexpr bool __double_word 29761: = sizeof(long long) == 2 * sizeof(_Atomic_word); 29761: 29761: 29761: constexpr bool __aligned = __alignof(long long) <= alignof(void*); 29761: if constexpr (__lock_free && __double_word && __aligned) 29761: { 29761: constexpr int __wordbits = 8 * sizeof(_Atomic_word); 29761: constexpr int __shiftbits = __double_word ? __wordbits : 0; 29761: constexpr long long __unique_ref = 1LL + (1LL << __shiftbits); 29761: auto __both_counts = reinterpret_cast(&_M_use_count); 29761: 29761: ; 29761: if (__atomic_load_n(__both_counts, 2) == __unique_ref) 29761: { 29761: 29761: 29761: 29761: 29761: _M_weak_count = _M_use_count = 0; 29761: ; 29761: ; 29761: _M_dispose(); 29761: _M_destroy(); 29761: return; 29761: } 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29761: [[__unlikely__]] 29761: { 29761: _M_release_last_use_cold(); 29761: return; 29761: } 29761: } 29761: else 29761: 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29761: { 29761: _M_release_last_use(); 29761: } 29761: } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept 29761: { ++_M_weak_count; } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_single>::_M_weak_release() noexcept 29761: { 29761: if (--_M_weak_count == 0) 29761: _M_destroy(); 29761: } 29761: 29761: template<> 29761: inline long 29761: _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept 29761: { return _M_use_count; } 29761: 29761: 29761: 29761: template 29761: class __shared_ptr; 29761: 29761: template 29761: class __weak_ptr; 29761: 29761: template 29761: class __enable_shared_from_this; 29761: 29761: template 29761: class shared_ptr; 29761: 29761: template 29761: class weak_ptr; 29761: 29761: template 29761: struct owner_less; 29761: 29761: template 29761: class enable_shared_from_this; 29761: 29761: template<_Lock_policy _Lp = __default_lock_policy> 29761: class __weak_count; 29761: 29761: template<_Lock_policy _Lp = __default_lock_policy> 29761: class __shared_count; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> 29761: { 29761: public: 29761: explicit 29761: _Sp_counted_ptr(_Ptr __p) noexcept 29761: : _M_ptr(__p) { } 29761: 29761: virtual void 29761: _M_dispose() noexcept 29761: { delete _M_ptr; } 29761: 29761: virtual void 29761: _M_destroy() noexcept 29761: { delete this; } 29761: 29761: virtual void* 29761: _M_get_deleter(const std::type_info&) noexcept 29761: { return nullptr; } 29761: 29761: _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; 29761: _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; 29761: 29761: private: 29761: _Ptr _M_ptr; 29761: }; 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_ptr::_M_dispose() noexcept { } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_ptr::_M_dispose() noexcept { } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_ptr::_M_dispose() noexcept { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Sp_ebo_helper; 29761: 29761: 29761: template 29761: struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp 29761: { 29761: explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } 29761: explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } 29761: 29761: static _Tp& 29761: _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } 29761: }; 29761: 29761: 29761: template 29761: struct _Sp_ebo_helper<_Nm, _Tp, false> 29761: { 29761: explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } 29761: explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } 29761: 29761: static _Tp& 29761: _S_get(_Sp_ebo_helper& __eboh) 29761: { return __eboh._M_tp; } 29761: 29761: private: 29761: _Tp _M_tp; 29761: }; 29761: 29761: 29761: template 29761: class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> 29761: { 29761: class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> 29761: { 29761: typedef _Sp_ebo_helper<0, _Deleter> _Del_base; 29761: typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; 29761: 29761: public: 29761: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 29761: : _Del_base(std::move(__d)), _Alloc_base(__a), _M_ptr(__p) 29761: { } 29761: 29761: _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } 29761: _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } 29761: 29761: _Ptr _M_ptr; 29761: }; 29761: 29761: public: 29761: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; 29761: 29761: 29761: _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept 29761: : _M_impl(__p, std::move(__d), _Alloc()) { } 29761: 29761: 29761: _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 29761: : _M_impl(__p, std::move(__d), __a) { } 29761: 29761: ~_Sp_counted_deleter() noexcept { } 29761: 29761: virtual void 29761: _M_dispose() noexcept 29761: { _M_impl._M_del()(_M_impl._M_ptr); } 29761: 29761: virtual void 29761: _M_destroy() noexcept 29761: { 29761: __allocator_type __a(_M_impl._M_alloc()); 29761: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 29761: this->~_Sp_counted_deleter(); 29761: } 29761: 29761: virtual void* 29761: _M_get_deleter(const type_info& __ti [[__gnu__::__unused__]]) noexcept 29761: { 29761: 29761: 29761: 29761: return __ti == typeid(_Deleter) 29761: ? std::__addressof(_M_impl._M_del()) 29761: : nullptr; 29761: 29761: 29761: 29761: } 29761: 29761: private: 29761: 29761: 29761: 29761: _Impl _M_impl; 29761: }; 29761: 29761: 29761: 29761: struct _Sp_make_shared_tag 29761: { 29761: private: 29761: template 29761: friend class _Sp_counted_ptr_inplace; 29761: 29761: static const type_info& 29761: _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) 29761: { 29761: alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; 29761: return reinterpret_cast(__tag); 29761: } 29761: 29761: static bool _S_eq(const type_info&) noexcept; 29761: }; 29761: 29761: template 29761: struct _Sp_alloc_shared_tag 29761: { 29761: const _Alloc& _M_a; 29761: }; 29761: 29761: template 29761: class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> 29761: { 29761: class _Impl : _Sp_ebo_helper<0, _Alloc> 29761: { 29761: typedef _Sp_ebo_helper<0, _Alloc> _A_base; 29761: 29761: public: 29761: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } 29761: 29761: _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } 29761: 29761: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 29761: }; 29761: 29761: public: 29761: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; 29761: 29761: 29761: template 29761: _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) 29761: : _M_impl(__a) 29761: { 29761: 29761: 29761: allocator_traits<_Alloc>::construct(__a, _M_ptr(), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: ~_Sp_counted_ptr_inplace() noexcept { } 29761: 29761: virtual void 29761: _M_dispose() noexcept 29761: { 29761: allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); 29761: } 29761: 29761: 29761: virtual void 29761: _M_destroy() noexcept 29761: { 29761: __allocator_type __a(_M_impl._M_alloc()); 29761: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 29761: this->~_Sp_counted_ptr_inplace(); 29761: } 29761: 29761: private: 29761: friend class __shared_count<_Lp>; 29761: 29761: 29761: 29761: virtual void* 29761: _M_get_deleter(const std::type_info& __ti) noexcept override 29761: { 29761: auto __ptr = const_cast::type*>(_M_ptr()); 29761: 29761: 29761: 29761: 29761: if (&__ti == &_Sp_make_shared_tag::_S_ti() 29761: || 29761: 29761: __ti == typeid(_Sp_make_shared_tag) 29761: 29761: 29761: 29761: ) 29761: return __ptr; 29761: return nullptr; 29761: } 29761: 29761: _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } 29761: 29761: _Impl _M_impl; 29761: }; 29761: # 884 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: struct __sp_array_delete 29761: { 29761: template 29761: void operator()(_Yp* __p) const { delete[] __p; } 29761: }; 29761: 29761: template<_Lock_policy _Lp> 29761: class __shared_count 29761: { 29761: 29761: template 29761: struct __not_alloc_shared_tag { using type = void; }; 29761: 29761: template 29761: struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: public: 29761: constexpr __shared_count() noexcept : _M_pi(0) 29761: { } 29761: 29761: template 29761: explicit 29761: __shared_count(_Ptr __p) : _M_pi(0) 29761: { 29761: try 29761: { 29761: _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); 29761: } 29761: catch(...) 29761: { 29761: delete __p; 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: __shared_count(_Ptr __p, false_type) 29761: : __shared_count(__p) 29761: { } 29761: 29761: template 29761: __shared_count(_Ptr __p, true_type) 29761: : __shared_count(__p, __sp_array_delete{}, allocator()) 29761: { } 29761: 29761: template::type> 29761: __shared_count(_Ptr __p, _Deleter __d) 29761: : __shared_count(__p, std::move(__d), allocator()) 29761: { } 29761: 29761: template::type> 29761: __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) 29761: { 29761: typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; 29761: try 29761: { 29761: typename _Sp_cd_type::__allocator_type __a2(__a); 29761: auto __guard = std::__allocate_guarded(__a2); 29761: _Sp_cd_type* __mem = __guard.get(); 29761: ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); 29761: _M_pi = __mem; 29761: __guard = nullptr; 29761: } 29761: catch(...) 29761: { 29761: __d(__p); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, 29761: _Args&&... __args) 29761: { 29761: typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; 29761: typename _Sp_cp_type::__allocator_type __a2(__a._M_a); 29761: auto __guard = std::__allocate_guarded(__a2); 29761: _Sp_cp_type* __mem = __guard.get(); 29761: auto __pi = ::new (__mem) 29761: _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); 29761: __guard = nullptr; 29761: _M_pi = __pi; 29761: __p = __pi->_M_ptr(); 29761: } 29761: # 1022 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: template 29761: explicit 29761: __shared_count(std::auto_ptr<_Tp>&& __r); 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: template 29761: explicit 29761: __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) 29761: { 29761: 29761: 29761: if (__r.get() == nullptr) 29761: return; 29761: 29761: using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; 29761: using _Del2 = __conditional_t::value, 29761: reference_wrapper::type>, 29761: _Del>; 29761: using _Sp_cd_type 29761: = _Sp_counted_deleter<_Ptr, _Del2, allocator, _Lp>; 29761: using _Alloc = allocator<_Sp_cd_type>; 29761: using _Alloc_traits = allocator_traits<_Alloc>; 29761: _Alloc __a; 29761: _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); 29761: 29761: 29761: 29761: _Alloc_traits::construct(__a, __mem, __r.release(), 29761: std::forward<_Del>(__r.get_deleter())); 29761: _M_pi = __mem; 29761: } 29761: 29761: 29761: explicit __shared_count(const __weak_count<_Lp>& __r); 29761: 29761: 29761: explicit 29761: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept; 29761: 29761: ~__shared_count() noexcept 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_release(); 29761: } 29761: 29761: __shared_count(const __shared_count& __r) noexcept 29761: : _M_pi(__r._M_pi) 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_add_ref_copy(); 29761: } 29761: 29761: __shared_count& 29761: operator=(const __shared_count& __r) noexcept 29761: { 29761: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29761: if (__tmp != _M_pi) 29761: { 29761: if (__tmp != nullptr) 29761: __tmp->_M_add_ref_copy(); 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_release(); 29761: _M_pi = __tmp; 29761: } 29761: return *this; 29761: } 29761: 29761: void 29761: _M_swap(__shared_count& __r) noexcept 29761: { 29761: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29761: __r._M_pi = _M_pi; 29761: _M_pi = __tmp; 29761: } 29761: 29761: long 29761: _M_get_use_count() const noexcept 29761: { return _M_pi ? _M_pi->_M_get_use_count() : 0; } 29761: 29761: bool 29761: _M_unique() const noexcept 29761: { return this->_M_get_use_count() == 1; } 29761: 29761: void* 29761: _M_get_deleter(const std::type_info& __ti) const noexcept 29761: { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } 29761: 29761: bool 29761: _M_less(const __shared_count& __rhs) const noexcept 29761: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29761: 29761: bool 29761: _M_less(const __weak_count<_Lp>& __rhs) const noexcept 29761: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29761: 29761: 29761: friend inline bool 29761: operator==(const __shared_count& __a, const __shared_count& __b) noexcept 29761: { return __a._M_pi == __b._M_pi; } 29761: 29761: private: 29761: friend class __weak_count<_Lp>; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: _Sp_counted_base<_Lp>* _M_pi; 29761: }; 29761: 29761: 29761: template<_Lock_policy _Lp> 29761: class __weak_count 29761: { 29761: public: 29761: constexpr __weak_count() noexcept : _M_pi(nullptr) 29761: { } 29761: 29761: __weak_count(const __shared_count<_Lp>& __r) noexcept 29761: : _M_pi(__r._M_pi) 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_add_ref(); 29761: } 29761: 29761: __weak_count(const __weak_count& __r) noexcept 29761: : _M_pi(__r._M_pi) 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_add_ref(); 29761: } 29761: 29761: __weak_count(__weak_count&& __r) noexcept 29761: : _M_pi(__r._M_pi) 29761: { __r._M_pi = nullptr; } 29761: 29761: ~__weak_count() noexcept 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_release(); 29761: } 29761: 29761: __weak_count& 29761: operator=(const __shared_count<_Lp>& __r) noexcept 29761: { 29761: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29761: if (__tmp != nullptr) 29761: __tmp->_M_weak_add_ref(); 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_release(); 29761: _M_pi = __tmp; 29761: return *this; 29761: } 29761: 29761: __weak_count& 29761: operator=(const __weak_count& __r) noexcept 29761: { 29761: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29761: if (__tmp != nullptr) 29761: __tmp->_M_weak_add_ref(); 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_release(); 29761: _M_pi = __tmp; 29761: return *this; 29761: } 29761: 29761: __weak_count& 29761: operator=(__weak_count&& __r) noexcept 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_release(); 29761: _M_pi = __r._M_pi; 29761: __r._M_pi = nullptr; 29761: return *this; 29761: } 29761: 29761: void 29761: _M_swap(__weak_count& __r) noexcept 29761: { 29761: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29761: __r._M_pi = _M_pi; 29761: _M_pi = __tmp; 29761: } 29761: 29761: long 29761: _M_get_use_count() const noexcept 29761: { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } 29761: 29761: bool 29761: _M_less(const __weak_count& __rhs) const noexcept 29761: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29761: 29761: bool 29761: _M_less(const __shared_count<_Lp>& __rhs) const noexcept 29761: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29761: 29761: 29761: friend inline bool 29761: operator==(const __weak_count& __a, const __weak_count& __b) noexcept 29761: { return __a._M_pi == __b._M_pi; } 29761: 29761: private: 29761: friend class __shared_count<_Lp>; 29761: 29761: 29761: 29761: 29761: _Sp_counted_base<_Lp>* _M_pi; 29761: }; 29761: 29761: 29761: template<_Lock_policy _Lp> 29761: inline 29761: __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) 29761: : _M_pi(__r._M_pi) 29761: { 29761: if (_M_pi == nullptr || !_M_pi->_M_add_ref_lock_nothrow()) 29761: __throw_bad_weak_ptr(); 29761: } 29761: 29761: 29761: template<_Lock_policy _Lp> 29761: inline 29761: __shared_count<_Lp>:: 29761: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept 29761: : _M_pi(__r._M_pi) 29761: { 29761: if (_M_pi && !_M_pi->_M_add_ref_lock_nothrow()) 29761: _M_pi = nullptr; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __sp_compatible_with 29761: : false_type 29761: { }; 29761: 29761: template 29761: struct __sp_compatible_with<_Yp*, _Tp*> 29761: : is_convertible<_Yp*, _Tp*>::type 29761: { }; 29761: 29761: template 29761: struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> 29761: : true_type 29761: { }; 29761: 29761: template 29761: struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> 29761: : true_type 29761: { }; 29761: 29761: template 29761: struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> 29761: : true_type 29761: { }; 29761: 29761: template 29761: struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> 29761: : true_type 29761: { }; 29761: 29761: 29761: template 29761: struct __sp_is_constructible_arrN 29761: : false_type 29761: { }; 29761: 29761: template 29761: struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> 29761: : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type 29761: { }; 29761: 29761: 29761: template 29761: struct __sp_is_constructible_arr 29761: : false_type 29761: { }; 29761: 29761: template 29761: struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> 29761: : is_convertible<_Yp(*)[], _Up(*)[]>::type 29761: { }; 29761: 29761: 29761: template 29761: struct __sp_is_constructible; 29761: 29761: 29761: template 29761: struct __sp_is_constructible<_Up[_Nm], _Yp> 29761: : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type 29761: { }; 29761: 29761: 29761: template 29761: struct __sp_is_constructible<_Up[], _Yp> 29761: : __sp_is_constructible_arr<_Up, _Yp>::type 29761: { }; 29761: 29761: 29761: template 29761: struct __sp_is_constructible 29761: : is_convertible<_Yp*, _Tp*>::type 29761: { }; 29761: 29761: 29761: 29761: template::value, bool = is_void<_Tp>::value> 29761: class __shared_ptr_access 29761: { 29761: public: 29761: using element_type = _Tp; 29761: 29761: element_type& 29761: operator*() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29761: return *_M_get(); 29761: } 29761: 29761: element_type* 29761: operator->() const noexcept 29761: { 29761: ; 29761: return _M_get(); 29761: } 29761: 29761: private: 29761: element_type* 29761: _M_get() const noexcept 29761: { return static_cast*>(this)->get(); } 29761: }; 29761: 29761: 29761: template 29761: class __shared_ptr_access<_Tp, _Lp, false, true> 29761: { 29761: public: 29761: using element_type = _Tp; 29761: 29761: element_type* 29761: operator->() const noexcept 29761: { 29761: auto __ptr = static_cast*>(this)->get(); 29761: ; 29761: return __ptr; 29761: } 29761: }; 29761: 29761: 29761: template 29761: class __shared_ptr_access<_Tp, _Lp, true, false> 29761: { 29761: public: 29761: using element_type = typename remove_extent<_Tp>::type; 29761: # 1408 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: element_type& 29761: operator[](ptrdiff_t __i) const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(!extent<_Tp>::value || __i < extent<_Tp>::value)) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_get()[__i]; 29761: } 29761: 29761: private: 29761: element_type* 29761: _M_get() const noexcept 29761: { return static_cast*>(this)->get(); } 29761: }; 29761: 29761: template 29761: class __shared_ptr 29761: : public __shared_ptr_access<_Tp, _Lp> 29761: { 29761: public: 29761: using element_type = typename remove_extent<_Tp>::type; 29761: 29761: private: 29761: 29761: template 29761: using _SafeConv 29761: = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; 29761: 29761: 29761: template 29761: using _Compatible = typename 29761: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 29761: 29761: 29761: template 29761: using _Assignable = _Compatible<_Yp, __shared_ptr&>; 29761: 29761: 29761: template::pointer> 29761: using _UniqCompatible = __enable_if_t<__and_< 29761: __sp_compatible_with<_Yp*, _Tp*>, 29761: is_convertible<_Ptr, element_type*>, 29761: is_move_constructible<_Del> 29761: >::value, _Res>; 29761: 29761: 29761: template 29761: using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; 29761: 29761: public: 29761: 29761: 29761: using weak_type = __weak_ptr<_Tp, _Lp>; 29761: 29761: 29761: constexpr __shared_ptr() noexcept 29761: : _M_ptr(0), _M_refcount() 29761: { } 29761: 29761: template> 29761: explicit 29761: __shared_ptr(_Yp* __p) 29761: : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) 29761: { 29761: static_assert( !is_void<_Yp>::value, "incomplete type" ); 29761: static_assert( sizeof(_Yp) > 0, "incomplete type" ); 29761: _M_enable_shared_from_this_with(__p); 29761: } 29761: 29761: template> 29761: __shared_ptr(_Yp* __p, _Deleter __d) 29761: : _M_ptr(__p), _M_refcount(__p, std::move(__d)) 29761: { 29761: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 29761: "deleter expression d(p) is well-formed"); 29761: _M_enable_shared_from_this_with(__p); 29761: } 29761: 29761: template> 29761: __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 29761: : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) 29761: { 29761: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 29761: "deleter expression d(p) is well-formed"); 29761: _M_enable_shared_from_this_with(__p); 29761: } 29761: 29761: template 29761: __shared_ptr(nullptr_t __p, _Deleter __d) 29761: : _M_ptr(0), _M_refcount(__p, std::move(__d)) 29761: { } 29761: 29761: template 29761: __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 29761: : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) 29761: { } 29761: 29761: 29761: template 29761: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, 29761: element_type* __p) noexcept 29761: : _M_ptr(__p), _M_refcount(__r._M_refcount) 29761: { } 29761: 29761: 29761: template 29761: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r, 29761: element_type* __p) noexcept 29761: : _M_ptr(__p), _M_refcount() 29761: { 29761: _M_refcount._M_swap(__r._M_refcount); 29761: __r._M_ptr = nullptr; 29761: } 29761: 29761: __shared_ptr(const __shared_ptr&) noexcept = default; 29761: __shared_ptr& operator=(const __shared_ptr&) noexcept = default; 29761: ~__shared_ptr() = default; 29761: 29761: template> 29761: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29761: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 29761: { } 29761: 29761: __shared_ptr(__shared_ptr&& __r) noexcept 29761: : _M_ptr(__r._M_ptr), _M_refcount() 29761: { 29761: _M_refcount._M_swap(__r._M_refcount); 29761: __r._M_ptr = nullptr; 29761: } 29761: 29761: template> 29761: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 29761: : _M_ptr(__r._M_ptr), _M_refcount() 29761: { 29761: _M_refcount._M_swap(__r._M_refcount); 29761: __r._M_ptr = nullptr; 29761: } 29761: 29761: template> 29761: explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) 29761: : _M_refcount(__r._M_refcount) 29761: { 29761: 29761: 29761: _M_ptr = __r._M_ptr; 29761: } 29761: 29761: 29761: template> 29761: __shared_ptr(unique_ptr<_Yp, _Del>&& __r) 29761: : _M_ptr(__r.get()), _M_refcount() 29761: { 29761: auto __raw = __to_address(__r.get()); 29761: _M_refcount = __shared_count<_Lp>(std::move(__r)); 29761: _M_enable_shared_from_this_with(__raw); 29761: } 29761: # 1586 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: template> 29761: __shared_ptr(auto_ptr<_Yp>&& __r); 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } 29761: 29761: template 29761: _Assignable<_Yp> 29761: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29761: { 29761: _M_ptr = __r._M_ptr; 29761: _M_refcount = __r._M_refcount; 29761: return *this; 29761: } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template 29761: _Assignable<_Yp> 29761: operator=(auto_ptr<_Yp>&& __r) 29761: { 29761: __shared_ptr(std::move(__r)).swap(*this); 29761: return *this; 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: __shared_ptr& 29761: operator=(__shared_ptr&& __r) noexcept 29761: { 29761: __shared_ptr(std::move(__r)).swap(*this); 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable<_Yp> 29761: operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 29761: { 29761: __shared_ptr(std::move(__r)).swap(*this); 29761: return *this; 29761: } 29761: 29761: template 29761: _UniqAssignable<_Yp, _Del> 29761: operator=(unique_ptr<_Yp, _Del>&& __r) 29761: { 29761: __shared_ptr(std::move(__r)).swap(*this); 29761: return *this; 29761: } 29761: 29761: void 29761: reset() noexcept 29761: { __shared_ptr().swap(*this); } 29761: 29761: template 29761: _SafeConv<_Yp> 29761: reset(_Yp* __p) 29761: { 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__p == nullptr || __p != _M_ptr)) std::__glibcxx_assert_fail(); } while (false); 29761: __shared_ptr(__p).swap(*this); 29761: } 29761: 29761: template 29761: _SafeConv<_Yp> 29761: reset(_Yp* __p, _Deleter __d) 29761: { __shared_ptr(__p, std::move(__d)).swap(*this); } 29761: 29761: template 29761: _SafeConv<_Yp> 29761: reset(_Yp* __p, _Deleter __d, _Alloc __a) 29761: { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } 29761: 29761: 29761: element_type* 29761: get() const noexcept 29761: { return _M_ptr; } 29761: 29761: 29761: explicit operator bool() const noexcept 29761: { return _M_ptr != nullptr; } 29761: 29761: 29761: bool 29761: unique() const noexcept 29761: { return _M_refcount._M_unique(); } 29761: 29761: 29761: long 29761: use_count() const noexcept 29761: { return _M_refcount._M_get_use_count(); } 29761: 29761: 29761: void 29761: swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 29761: { 29761: std::swap(_M_ptr, __other._M_ptr); 29761: _M_refcount._M_swap(__other._M_refcount); 29761: } 29761: # 1698 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: template 29761: bool 29761: owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept 29761: { return _M_refcount._M_less(__rhs._M_refcount); } 29761: 29761: template 29761: bool 29761: owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept 29761: { return _M_refcount._M_less(__rhs._M_refcount); } 29761: 29761: 29761: protected: 29761: 29761: template 29761: __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 29761: : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) 29761: { _M_enable_shared_from_this_with(_M_ptr); } 29761: 29761: template 29761: friend __shared_ptr<_Tp1, _Lp1> 29761: __allocate_shared(const _Alloc& __a, _Args&&... __args); 29761: # 1732 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) noexcept 29761: : _M_refcount(__r._M_refcount, std::nothrow) 29761: { 29761: _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; 29761: } 29761: 29761: friend class __weak_ptr<_Tp, _Lp>; 29761: 29761: private: 29761: 29761: template 29761: using __esft_base_t = decltype(__enable_shared_from_this_base( 29761: std::declval&>(), 29761: std::declval<_Yp*>())); 29761: 29761: 29761: template 29761: struct __has_esft_base 29761: : false_type { }; 29761: 29761: template 29761: struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> 29761: : __not_> { }; 29761: 29761: template::type> 29761: typename enable_if<__has_esft_base<_Yp2>::value>::type 29761: _M_enable_shared_from_this_with(_Yp* __p) noexcept 29761: { 29761: if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) 29761: __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); 29761: } 29761: 29761: template::type> 29761: typename enable_if::value>::type 29761: _M_enable_shared_from_this_with(_Yp*) noexcept 29761: { } 29761: 29761: void* 29761: _M_get_deleter(const std::type_info& __ti) const noexcept 29761: { return _M_refcount._M_get_deleter(__ti); } 29761: 29761: template friend class __shared_ptr; 29761: template friend class __weak_ptr; 29761: 29761: template 29761: friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; 29761: 29761: template 29761: friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; 29761: # 1789 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: element_type* _M_ptr; 29761: __shared_count<_Lp> _M_refcount; 29761: }; 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator==(const __shared_ptr<_Tp1, _Lp>& __a, 29761: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29761: { return __a.get() == __b.get(); } 29761: 29761: template 29761: inline bool 29761: operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { return !__a; } 29761: # 1821 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: template 29761: inline bool 29761: operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { return !__a; } 29761: 29761: template 29761: inline bool 29761: operator!=(const __shared_ptr<_Tp1, _Lp>& __a, 29761: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29761: { return __a.get() != __b.get(); } 29761: 29761: template 29761: inline bool 29761: operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { return (bool)__a; } 29761: 29761: template 29761: inline bool 29761: operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { return (bool)__a; } 29761: 29761: template 29761: inline bool 29761: operator<(const __shared_ptr<_Tp, _Lp>& __a, 29761: const __shared_ptr<_Up, _Lp>& __b) noexcept 29761: { 29761: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29761: using _Up_elt = typename __shared_ptr<_Up, _Lp>::element_type; 29761: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 29761: return less<_Vp>()(__a.get(), __b.get()); 29761: } 29761: 29761: template 29761: inline bool 29761: operator<(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { 29761: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29761: return less<_Tp_elt*>()(__a.get(), nullptr); 29761: } 29761: 29761: template 29761: inline bool 29761: operator<(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { 29761: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29761: return less<_Tp_elt*>()(nullptr, __a.get()); 29761: } 29761: 29761: template 29761: inline bool 29761: operator<=(const __shared_ptr<_Tp1, _Lp>& __a, 29761: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29761: { return !(__b < __a); } 29761: 29761: template 29761: inline bool 29761: operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { return !(nullptr < __a); } 29761: 29761: template 29761: inline bool 29761: operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { return !(__a < nullptr); } 29761: 29761: template 29761: inline bool 29761: operator>(const __shared_ptr<_Tp1, _Lp>& __a, 29761: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29761: { return (__b < __a); } 29761: 29761: template 29761: inline bool 29761: operator>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { return nullptr < __a; } 29761: 29761: template 29761: inline bool 29761: operator>(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { return __a < nullptr; } 29761: 29761: template 29761: inline bool 29761: operator>=(const __shared_ptr<_Tp1, _Lp>& __a, 29761: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29761: { return !(__a < __b); } 29761: 29761: template 29761: inline bool 29761: operator>=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { return !(__a < nullptr); } 29761: 29761: template 29761: inline bool 29761: operator>=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { return !(nullptr < __a); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept 29761: { __a.swap(__b); } 29761: # 1931 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29761: { 29761: using _Sp = __shared_ptr<_Tp, _Lp>; 29761: return _Sp(__r, static_cast(__r.get())); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29761: { 29761: using _Sp = __shared_ptr<_Tp, _Lp>; 29761: return _Sp(__r, const_cast(__r.get())); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29761: { 29761: using _Sp = __shared_ptr<_Tp, _Lp>; 29761: if (auto* __p = dynamic_cast(__r.get())) 29761: return _Sp(__r, __p); 29761: return _Sp(); 29761: } 29761: 29761: 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: reinterpret_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29761: { 29761: using _Sp = __shared_ptr<_Tp, _Lp>; 29761: return _Sp(__r, reinterpret_cast(__r.get())); 29761: } 29761: 29761: 29761: template 29761: class __weak_ptr 29761: { 29761: template 29761: using _Compatible = typename 29761: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 29761: 29761: 29761: template 29761: using _Assignable = _Compatible<_Yp, __weak_ptr&>; 29761: 29761: public: 29761: using element_type = typename remove_extent<_Tp>::type; 29761: 29761: constexpr __weak_ptr() noexcept 29761: : _M_ptr(nullptr), _M_refcount() 29761: { } 29761: 29761: __weak_ptr(const __weak_ptr&) noexcept = default; 29761: 29761: ~__weak_ptr() = default; 29761: # 2013 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: template> 29761: __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept 29761: : _M_refcount(__r._M_refcount) 29761: { _M_ptr = __r.lock().get(); } 29761: 29761: template> 29761: __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29761: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 29761: { } 29761: 29761: __weak_ptr(__weak_ptr&& __r) noexcept 29761: : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) 29761: { __r._M_ptr = nullptr; } 29761: 29761: template> 29761: __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept 29761: : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) 29761: { __r._M_ptr = nullptr; } 29761: 29761: __weak_ptr& 29761: operator=(const __weak_ptr& __r) noexcept = default; 29761: 29761: template 29761: _Assignable<_Yp> 29761: operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept 29761: { 29761: _M_ptr = __r.lock().get(); 29761: _M_refcount = __r._M_refcount; 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable<_Yp> 29761: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29761: { 29761: _M_ptr = __r._M_ptr; 29761: _M_refcount = __r._M_refcount; 29761: return *this; 29761: } 29761: 29761: __weak_ptr& 29761: operator=(__weak_ptr&& __r) noexcept 29761: { 29761: __weak_ptr(std::move(__r)).swap(*this); 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable<_Yp> 29761: operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept 29761: { 29761: _M_ptr = __r.lock().get(); 29761: _M_refcount = std::move(__r._M_refcount); 29761: __r._M_ptr = nullptr; 29761: return *this; 29761: } 29761: 29761: __shared_ptr<_Tp, _Lp> 29761: lock() const noexcept 29761: { return __shared_ptr(*this, std::nothrow); } 29761: 29761: long 29761: use_count() const noexcept 29761: { return _M_refcount._M_get_use_count(); } 29761: 29761: bool 29761: expired() const noexcept 29761: { return _M_refcount._M_get_use_count() == 0; } 29761: 29761: template 29761: bool 29761: owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept 29761: { return _M_refcount._M_less(__rhs._M_refcount); } 29761: 29761: template 29761: bool 29761: owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept 29761: { return _M_refcount._M_less(__rhs._M_refcount); } 29761: 29761: void 29761: reset() noexcept 29761: { __weak_ptr().swap(*this); } 29761: 29761: void 29761: swap(__weak_ptr& __s) noexcept 29761: { 29761: std::swap(_M_ptr, __s._M_ptr); 29761: _M_refcount._M_swap(__s._M_refcount); 29761: } 29761: 29761: private: 29761: 29761: void 29761: _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept 29761: { 29761: if (use_count() == 0) 29761: { 29761: _M_ptr = __ptr; 29761: _M_refcount = __refcount; 29761: } 29761: } 29761: 29761: template friend class __shared_ptr; 29761: template friend class __weak_ptr; 29761: friend class __enable_shared_from_this<_Tp, _Lp>; 29761: friend class enable_shared_from_this<_Tp>; 29761: 29761: 29761: 29761: 29761: element_type* _M_ptr; 29761: __weak_count<_Lp> _M_refcount; 29761: }; 29761: 29761: 29761: template 29761: inline void 29761: swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept 29761: { __a.swap(__b); } 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template 29761: struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> 29761: { 29761: bool 29761: operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept 29761: { return __lhs.owner_before(__rhs); } 29761: 29761: bool 29761: operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept 29761: { return __lhs.owner_before(__rhs); } 29761: 29761: bool 29761: operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept 29761: { return __lhs.owner_before(__rhs); } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: template<> 29761: struct _Sp_owner_less 29761: { 29761: template 29761: auto 29761: operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept 29761: -> decltype(__lhs.owner_before(__rhs)) 29761: { return __lhs.owner_before(__rhs); } 29761: 29761: using is_transparent = void; 29761: }; 29761: 29761: template 29761: struct owner_less<__shared_ptr<_Tp, _Lp>> 29761: : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> 29761: { }; 29761: 29761: template 29761: struct owner_less<__weak_ptr<_Tp, _Lp>> 29761: : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> 29761: { }; 29761: 29761: 29761: template 29761: class __enable_shared_from_this 29761: { 29761: protected: 29761: constexpr __enable_shared_from_this() noexcept { } 29761: 29761: __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } 29761: 29761: __enable_shared_from_this& 29761: operator=(const __enable_shared_from_this&) noexcept 29761: { return *this; } 29761: 29761: ~__enable_shared_from_this() { } 29761: 29761: public: 29761: __shared_ptr<_Tp, _Lp> 29761: shared_from_this() 29761: { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } 29761: 29761: __shared_ptr 29761: shared_from_this() const 29761: { return __shared_ptr(this->_M_weak_this); } 29761: 29761: 29761: __weak_ptr<_Tp, _Lp> 29761: weak_from_this() noexcept 29761: { return this->_M_weak_this; } 29761: 29761: __weak_ptr 29761: weak_from_this() const noexcept 29761: { return this->_M_weak_this; } 29761: 29761: 29761: private: 29761: template 29761: void 29761: _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept 29761: { _M_weak_this._M_assign(__p, __n); } 29761: 29761: friend const __enable_shared_from_this* 29761: __enable_shared_from_this_base(const __shared_count<_Lp>&, 29761: const __enable_shared_from_this* __p) 29761: { return __p; } 29761: 29761: template 29761: friend class __shared_ptr; 29761: 29761: mutable __weak_ptr<_Tp, _Lp> _M_weak_this; 29761: }; 29761: 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: __allocate_shared(const _Alloc& __a, _Args&&... __args) 29761: { 29761: static_assert(!is_array<_Tp>::value, "make_shared not supported"); 29761: 29761: return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: __make_shared(_Args&&... __args) 29761: { 29761: typedef typename std::remove_const<_Tp>::type _Tp_nc; 29761: return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: template 29761: struct hash<__shared_ptr<_Tp, _Lp>> 29761: : public __hash_base> 29761: { 29761: size_t 29761: operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept 29761: { 29761: return hash::element_type*>()( 29761: __s.get()); 29761: } 29761: }; 29761: 29761: 29761: } 29761: # 54 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 68 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: inline std::basic_ostream<_Ch, _Tr>& 29761: operator<<(std::basic_ostream<_Ch, _Tr>& __os, 29761: const __shared_ptr<_Tp, _Lp>& __p) 29761: { 29761: __os << __p.get(); 29761: return __os; 29761: } 29761: 29761: template 29761: inline _Del* 29761: get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept 29761: { 29761: 29761: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline _Del* 29761: get_deleter(const shared_ptr<_Tp>& __p) noexcept 29761: { 29761: 29761: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 29761: 29761: 29761: 29761: } 29761: # 111 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: using _NonArray = __enable_if_t::value, _Tp>; 29761: # 174 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: class shared_ptr : public __shared_ptr<_Tp> 29761: { 29761: template 29761: using _Constructible = typename enable_if< 29761: is_constructible<__shared_ptr<_Tp>, _Args...>::value 29761: >::type; 29761: 29761: template 29761: using _Assignable = typename enable_if< 29761: is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& 29761: >::type; 29761: 29761: public: 29761: 29761: 29761: using element_type = typename __shared_ptr<_Tp>::element_type; 29761: 29761: 29761: 29761: 29761: using weak_type = weak_ptr<_Tp>; 29761: 29761: 29761: 29761: 29761: 29761: constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } 29761: 29761: shared_ptr(const shared_ptr&) noexcept = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 29761: # 228 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template> 29761: shared_ptr(_Yp* __p, _Deleter __d) 29761: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 29761: # 246 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: shared_ptr(nullptr_t __p, _Deleter __d) 29761: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 29761: # 265 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template> 29761: shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 29761: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 29761: # 285 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 29761: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 29761: # 309 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept 29761: : __shared_ptr<_Tp>(__r, __p) { } 29761: # 348 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template&>> 29761: shared_ptr(const shared_ptr<_Yp>& __r) noexcept 29761: : __shared_ptr<_Tp>(__r) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: shared_ptr(shared_ptr&& __r) noexcept 29761: : __shared_ptr<_Tp>(std::move(__r)) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template>> 29761: shared_ptr(shared_ptr<_Yp>&& __r) noexcept 29761: : __shared_ptr<_Tp>(std::move(__r)) { } 29761: # 378 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template&>> 29761: explicit shared_ptr(const weak_ptr<_Yp>& __r) 29761: : __shared_ptr<_Tp>(__r) { } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template>> 29761: shared_ptr(auto_ptr<_Yp>&& __r); 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: template>> 29761: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 29761: : __shared_ptr<_Tp>(std::move(__r)) { } 29761: # 411 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } 29761: 29761: shared_ptr& operator=(const shared_ptr&) noexcept = default; 29761: 29761: template 29761: _Assignable&> 29761: operator=(const shared_ptr<_Yp>& __r) noexcept 29761: { 29761: this->__shared_ptr<_Tp>::operator=(__r); 29761: return *this; 29761: } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template 29761: _Assignable> 29761: operator=(auto_ptr<_Yp>&& __r) 29761: { 29761: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29761: return *this; 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: shared_ptr& 29761: operator=(shared_ptr&& __r) noexcept 29761: { 29761: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable> 29761: operator=(shared_ptr<_Yp>&& __r) noexcept 29761: { 29761: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable> 29761: operator=(unique_ptr<_Yp, _Del>&& __r) 29761: { 29761: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29761: return *this; 29761: } 29761: 29761: private: 29761: 29761: template 29761: shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 29761: : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: friend shared_ptr<_NonArray<_Yp>> 29761: allocate_shared(const _Alloc&, _Args&&...); 29761: 29761: template 29761: friend shared_ptr<_NonArray<_Yp>> 29761: make_shared(_Args&&...); 29761: # 534 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept 29761: : __shared_ptr<_Tp>(__r, std::nothrow) { } 29761: 29761: friend class weak_ptr<_Tp>; 29761: }; 29761: 29761: 29761: template 29761: shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>; 29761: template 29761: shared_ptr(unique_ptr<_Tp, _Del>) -> shared_ptr<_Tp>; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { return __a.get() == __b.get(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { return !__a; } 29761: # 579 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { return !__a; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { return __a.get() != __b.get(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { return (bool)__a; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { return (bool)__a; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { 29761: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29761: using _Up_elt = typename shared_ptr<_Up>::element_type; 29761: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 29761: return less<_Vp>()(__a.get(), __b.get()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { 29761: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29761: return less<_Tp_elt*>()(__a.get(), nullptr); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { 29761: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29761: return less<_Tp_elt*>()(nullptr, __a.get()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { return !(__b < __a); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { return !(nullptr < __a); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { return !(__a < nullptr); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { return (__b < __a); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { return nullptr < __a; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { return __a < nullptr; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { return !(__a < __b); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { return !(__a < nullptr); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { return !(nullptr < __a); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept 29761: { __a.swap(__b); } 29761: 29761: 29761: 29761: 29761: template 29761: inline shared_ptr<_Tp> 29761: static_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29761: { 29761: using _Sp = shared_ptr<_Tp>; 29761: return _Sp(__r, static_cast(__r.get())); 29761: } 29761: 29761: 29761: template 29761: inline shared_ptr<_Tp> 29761: const_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29761: { 29761: using _Sp = shared_ptr<_Tp>; 29761: return _Sp(__r, const_cast(__r.get())); 29761: } 29761: 29761: 29761: template 29761: inline shared_ptr<_Tp> 29761: dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29761: { 29761: using _Sp = shared_ptr<_Tp>; 29761: if (auto* __p = dynamic_cast(__r.get())) 29761: return _Sp(__r, __p); 29761: return _Sp(); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline shared_ptr<_Tp> 29761: reinterpret_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29761: { 29761: using _Sp = shared_ptr<_Tp>; 29761: return _Sp(__r, reinterpret_cast(__r.get())); 29761: } 29761: # 809 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: class weak_ptr : public __weak_ptr<_Tp> 29761: { 29761: template 29761: using _Constructible = typename enable_if< 29761: is_constructible<__weak_ptr<_Tp>, _Arg>::value 29761: >::type; 29761: 29761: template 29761: using _Assignable = typename enable_if< 29761: is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& 29761: >::type; 29761: 29761: public: 29761: constexpr weak_ptr() noexcept = default; 29761: 29761: template&>> 29761: weak_ptr(const shared_ptr<_Yp>& __r) noexcept 29761: : __weak_ptr<_Tp>(__r) { } 29761: 29761: weak_ptr(const weak_ptr&) noexcept = default; 29761: 29761: template&>> 29761: weak_ptr(const weak_ptr<_Yp>& __r) noexcept 29761: : __weak_ptr<_Tp>(__r) { } 29761: 29761: weak_ptr(weak_ptr&&) noexcept = default; 29761: 29761: template>> 29761: weak_ptr(weak_ptr<_Yp>&& __r) noexcept 29761: : __weak_ptr<_Tp>(std::move(__r)) { } 29761: 29761: weak_ptr& 29761: operator=(const weak_ptr& __r) noexcept = default; 29761: 29761: template 29761: _Assignable&> 29761: operator=(const weak_ptr<_Yp>& __r) noexcept 29761: { 29761: this->__weak_ptr<_Tp>::operator=(__r); 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable&> 29761: operator=(const shared_ptr<_Yp>& __r) noexcept 29761: { 29761: this->__weak_ptr<_Tp>::operator=(__r); 29761: return *this; 29761: } 29761: 29761: weak_ptr& 29761: operator=(weak_ptr&& __r) noexcept = default; 29761: 29761: template 29761: _Assignable> 29761: operator=(weak_ptr<_Yp>&& __r) noexcept 29761: { 29761: this->__weak_ptr<_Tp>::operator=(std::move(__r)); 29761: return *this; 29761: } 29761: 29761: shared_ptr<_Tp> 29761: lock() const noexcept 29761: { return shared_ptr<_Tp>(*this, std::nothrow); } 29761: }; 29761: 29761: 29761: template 29761: weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept 29761: { __a.swap(__b); } 29761: 29761: 29761: 29761: template 29761: struct owner_less; 29761: 29761: 29761: template<> 29761: struct owner_less : _Sp_owner_less 29761: { }; 29761: 29761: 29761: template 29761: struct owner_less> 29761: : public _Sp_owner_less, weak_ptr<_Tp>> 29761: { }; 29761: 29761: 29761: template 29761: struct owner_less> 29761: : public _Sp_owner_less, shared_ptr<_Tp>> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class enable_shared_from_this 29761: { 29761: protected: 29761: constexpr enable_shared_from_this() noexcept { } 29761: 29761: enable_shared_from_this(const enable_shared_from_this&) noexcept { } 29761: 29761: enable_shared_from_this& 29761: operator=(const enable_shared_from_this&) noexcept 29761: { return *this; } 29761: 29761: ~enable_shared_from_this() { } 29761: 29761: public: 29761: shared_ptr<_Tp> 29761: shared_from_this() 29761: { return shared_ptr<_Tp>(this->_M_weak_this); } 29761: 29761: shared_ptr 29761: shared_from_this() const 29761: { return shared_ptr(this->_M_weak_this); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: weak_ptr<_Tp> 29761: weak_from_this() noexcept 29761: { return this->_M_weak_this; } 29761: 29761: weak_ptr 29761: weak_from_this() const noexcept 29761: { return this->_M_weak_this; } 29761: 29761: 29761: 29761: private: 29761: template 29761: void 29761: _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept 29761: { _M_weak_this._M_assign(__p, __n); } 29761: 29761: 29761: friend const enable_shared_from_this* 29761: __enable_shared_from_this_base(const __shared_count<>&, 29761: const enable_shared_from_this* __p) 29761: { return __p; } 29761: 29761: template 29761: friend class __shared_ptr; 29761: 29761: mutable weak_ptr<_Tp> _M_weak_this; 29761: }; 29761: # 986 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: inline shared_ptr<_NonArray<_Tp>> 29761: allocate_shared(const _Alloc& __a, _Args&&... __args) 29761: { 29761: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 1001 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: inline shared_ptr<_NonArray<_Tp>> 29761: make_shared(_Args&&... __args) 29761: { 29761: using _Alloc = allocator; 29761: _Alloc __a; 29761: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 1150 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: struct hash> 29761: : public __hash_base> 29761: { 29761: size_t 29761: operator()(const shared_ptr<_Tp>& __s) const noexcept 29761: { 29761: return std::hash::element_type*>()(__s.get()); 29761: } 29761: }; 29761: 29761: 29761: template 29761: static constexpr bool __is_shared_ptr = false; 29761: template 29761: static constexpr bool __is_shared_ptr> = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __detail::__variant 29761: { 29761: template struct _Never_valueless_alt; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : std::true_type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : std::true_type 29761: { }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 81 "/usr/include/c++/14/memory" 2 3 29761: # 1 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 1 3 29761: # 62 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 74 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: struct _Sp_locker 29761: { 29761: _Sp_locker(const _Sp_locker&) = delete; 29761: _Sp_locker& operator=(const _Sp_locker&) = delete; 29761: 29761: 29761: explicit 29761: _Sp_locker(const void*) noexcept; 29761: _Sp_locker(const void*, const void*) noexcept; 29761: ~_Sp_locker(); 29761: 29761: private: 29761: unsigned char _M_key1; 29761: unsigned char _M_key2; 29761: 29761: 29761: 29761: }; 29761: # 101 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: template 29761: 29761: inline bool 29761: atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>*) 29761: { 29761: 29761: return __gthread_active_p() == 0; 29761: 29761: 29761: 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_is_lock_free(const shared_ptr<_Tp>* __p) 29761: { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } 29761: # 130 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: template 29761: 29761: inline shared_ptr<_Tp> 29761: atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: return *__p; 29761: } 29761: 29761: template 29761: 29761: inline shared_ptr<_Tp> 29761: atomic_load(const shared_ptr<_Tp>* __p) 29761: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 29761: 29761: template 29761: 29761: inline __shared_ptr<_Tp, _Lp> 29761: atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: return *__p; 29761: } 29761: 29761: template 29761: 29761: inline __shared_ptr<_Tp, _Lp> 29761: atomic_load(const __shared_ptr<_Tp, _Lp>* __p) 29761: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 29761: # 170 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: template 29761: 29761: inline void 29761: atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 29761: memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: __p->swap(__r); 29761: } 29761: 29761: template 29761: 29761: inline void 29761: atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 29761: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 29761: 29761: template 29761: 29761: inline void 29761: atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp> __r, 29761: memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: __p->swap(__r); 29761: } 29761: 29761: template 29761: 29761: inline void 29761: atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 29761: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 29761: # 211 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: template 29761: 29761: inline shared_ptr<_Tp> 29761: atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 29761: memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: __p->swap(__r); 29761: return __r; 29761: } 29761: 29761: template 29761: 29761: inline shared_ptr<_Tp> 29761: atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 29761: { 29761: return std::atomic_exchange_explicit(__p, std::move(__r), 29761: memory_order_seq_cst); 29761: } 29761: 29761: template 29761: 29761: inline __shared_ptr<_Tp, _Lp> 29761: atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp> __r, 29761: memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: __p->swap(__r); 29761: return __r; 29761: } 29761: 29761: template 29761: 29761: inline __shared_ptr<_Tp, _Lp> 29761: atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 29761: { 29761: return std::atomic_exchange_explicit(__p, std::move(__r), 29761: memory_order_seq_cst); 29761: } 29761: # 264 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: template 29761: 29761: bool 29761: atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, 29761: shared_ptr<_Tp>* __v, 29761: shared_ptr<_Tp> __w, 29761: memory_order, 29761: memory_order) 29761: { 29761: shared_ptr<_Tp> __x; 29761: _Sp_locker __lock{__p, __v}; 29761: owner_less> __less; 29761: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 29761: { 29761: __x = std::move(*__p); 29761: *__p = std::move(__w); 29761: return true; 29761: } 29761: __x = std::move(*__v); 29761: *__v = *__p; 29761: return false; 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 29761: shared_ptr<_Tp> __w) 29761: { 29761: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29761: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, 29761: shared_ptr<_Tp>* __v, 29761: shared_ptr<_Tp> __w, 29761: memory_order __success, 29761: memory_order __failure) 29761: { 29761: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29761: std::move(__w), __success, __failure); 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 29761: shared_ptr<_Tp> __w) 29761: { 29761: return std::atomic_compare_exchange_weak_explicit(__p, __v, 29761: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29761: } 29761: 29761: template 29761: 29761: bool 29761: atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp>* __v, 29761: __shared_ptr<_Tp, _Lp> __w, 29761: memory_order, 29761: memory_order) 29761: { 29761: __shared_ptr<_Tp, _Lp> __x; 29761: _Sp_locker __lock{__p, __v}; 29761: owner_less<__shared_ptr<_Tp, _Lp>> __less; 29761: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 29761: { 29761: __x = std::move(*__p); 29761: *__p = std::move(__w); 29761: return true; 29761: } 29761: __x = std::move(*__v); 29761: *__v = *__p; 29761: return false; 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp>* __v, 29761: __shared_ptr<_Tp, _Lp> __w) 29761: { 29761: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29761: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp>* __v, 29761: __shared_ptr<_Tp, _Lp> __w, 29761: memory_order __success, 29761: memory_order __failure) 29761: { 29761: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29761: std::move(__w), __success, __failure); 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp>* __v, 29761: __shared_ptr<_Tp, _Lp> __w) 29761: { 29761: return std::atomic_compare_exchange_weak_explicit(__p, __v, 29761: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29761: } 29761: # 867 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: 29761: } 29761: # 82 "/usr/include/c++/14/memory" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/backward/auto_ptr.h" 1 3 29761: # 36 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 47 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: template 29761: struct auto_ptr_ref 29761: { 29761: _Tp1* _M_ptr; 29761: 29761: explicit 29761: auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } 29761: } __attribute__ ((__deprecated__)); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: # 92 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: template 29761: class auto_ptr 29761: { 29761: private: 29761: _Tp* _M_ptr; 29761: 29761: public: 29761: 29761: typedef _Tp element_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } 29761: # 118 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } 29761: # 130 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: template 29761: auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } 29761: # 141 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: auto_ptr& 29761: operator=(auto_ptr& __a) throw() 29761: { 29761: reset(__a.release()); 29761: return *this; 29761: } 29761: # 158 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: template 29761: auto_ptr& 29761: operator=(auto_ptr<_Tp1>& __a) throw() 29761: { 29761: reset(__a.release()); 29761: return *this; 29761: } 29761: # 176 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: ~auto_ptr() { delete _M_ptr; } 29761: # 186 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: element_type& 29761: operator*() const throw() 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) std::__glibcxx_assert_fail(); } while (false); 29761: return *_M_ptr; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: element_type* 29761: operator->() const throw() 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_ptr; 29761: } 29761: # 216 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: element_type* 29761: get() const throw() { return _M_ptr; } 29761: # 230 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: element_type* 29761: release() throw() 29761: { 29761: element_type* __tmp = _M_ptr; 29761: _M_ptr = 0; 29761: return __tmp; 29761: } 29761: # 245 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: void 29761: reset(element_type* __p = 0) throw() 29761: { 29761: if (__p != _M_ptr) 29761: { 29761: delete _M_ptr; 29761: _M_ptr = __p; 29761: } 29761: } 29761: # 270 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: auto_ptr(auto_ptr_ref __ref) throw() 29761: : _M_ptr(__ref._M_ptr) { } 29761: 29761: auto_ptr& 29761: operator=(auto_ptr_ref __ref) throw() 29761: { 29761: if (__ref._M_ptr != this->get()) 29761: { 29761: delete _M_ptr; 29761: _M_ptr = __ref._M_ptr; 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: operator auto_ptr_ref<_Tp1>() throw() 29761: { return auto_ptr_ref<_Tp1>(this->release()); } 29761: 29761: template 29761: operator auto_ptr<_Tp1>() throw() 29761: { return auto_ptr<_Tp1>(this->release()); } 29761: } __attribute__ ((__deprecated__ ("use '" "std::unique_ptr" "' instead"))); 29761: 29761: 29761: 29761: template<> 29761: class auto_ptr 29761: { 29761: public: 29761: typedef void element_type; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: 29761: template<_Lock_policy _Lp> 29761: template 29761: inline 29761: __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) 29761: : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) 29761: { __r.release(); } 29761: 29761: template 29761: template 29761: inline 29761: __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) 29761: : _M_ptr(__r.get()), _M_refcount() 29761: { 29761: 29761: static_assert( sizeof(_Tp1) > 0, "incomplete type" ); 29761: _Tp1* __tmp = __r.get(); 29761: _M_refcount = __shared_count<_Lp>(std::move(__r)); 29761: _M_enable_shared_from_this_with(__tmp); 29761: } 29761: 29761: template 29761: template 29761: inline 29761: shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) 29761: : __shared_ptr<_Tp>(std::move(__r)) { } 29761: 29761: 29761: template 29761: template 29761: inline 29761: unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept 29761: : _M_t(__u.release(), deleter_type()) { } 29761: 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: } 29761: # 87 "/usr/include/c++/14/memory" 2 3 29761: # 115 "/usr/include/c++/14/memory" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 116 "/usr/include/c++/14/memory" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 136 "/usr/include/c++/14/memory" 3 29761: enum class pointer_safety { relaxed, preferred, strict }; 29761: 29761: 29761: inline void 29761: declare_reachable(void*) { } 29761: 29761: 29761: template 29761: inline _Tp* 29761: undeclare_reachable(_Tp* __p) { return __p; } 29761: 29761: 29761: inline void 29761: declare_no_pointers(char*, size_t) { } 29761: 29761: 29761: inline void 29761: undeclare_no_pointers(char*, size_t) { } 29761: 29761: 29761: inline pointer_safety 29761: get_pointer_safety() noexcept { return pointer_safety::relaxed; } 29761: 29761: 29761: 29761: } 29761: # 171 "/usr/include/c++/14/memory" 3 29761: # 1 "/usr/include/c++/14/pstl/glue_memory_defs.h" 1 3 29761: # 13 "/usr/include/c++/14/pstl/glue_memory_defs.h" 3 29761: # 1 "/usr/include/c++/14/pstl/execution_defs.h" 1 3 29761: # 15 "/usr/include/c++/14/pstl/execution_defs.h" 3 29761: namespace __pstl 29761: { 29761: namespace execution 29761: { 29761: inline namespace v1 29761: { 29761: 29761: 29761: class sequenced_policy 29761: { 29761: }; 29761: 29761: 29761: class parallel_policy 29761: { 29761: }; 29761: 29761: 29761: class parallel_unsequenced_policy 29761: { 29761: }; 29761: 29761: class unsequenced_policy 29761: { 29761: }; 29761: 29761: 29761: inline constexpr sequenced_policy seq{}; 29761: inline constexpr parallel_policy par{}; 29761: inline constexpr parallel_unsequenced_policy par_unseq{}; 29761: inline constexpr unsequenced_policy unseq{}; 29761: 29761: 29761: template 29761: struct is_execution_policy : std::false_type 29761: { 29761: }; 29761: 29761: template <> 29761: struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type 29761: { 29761: }; 29761: template <> 29761: struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type 29761: { 29761: }; 29761: template <> 29761: struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type 29761: { 29761: }; 29761: template <> 29761: struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type 29761: { 29761: }; 29761: 29761: 29761: template 29761: constexpr bool is_execution_policy_v = __pstl::execution::is_execution_policy<_Tp>::value; 29761: 29761: 29761: } 29761: } 29761: 29761: namespace __internal 29761: { 29761: template 29761: 29761: using __enable_if_execution_policy = 29761: typename std::enable_if<__pstl::execution::is_execution_policy>::value, 29761: _Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __serial_tag; 29761: template 29761: struct __parallel_tag; 29761: 29761: } 29761: 29761: } 29761: # 14 "/usr/include/c++/14/pstl/glue_memory_defs.h" 2 3 29761: 29761: namespace std 29761: { 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: uninitialized_fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, const _Tp& __value); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: destroy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: destroy_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: uninitialized_default_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_default_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: uninitialized_value_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29761: 29761: } 29761: # 172 "/usr/include/c++/14/memory" 2 3 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/usr/include/c++/14/string" 1 3 29761: # 36 "/usr/include/c++/14/string" 3 29761: 29761: # 37 "/usr/include/c++/14/string" 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/char_traits.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/char_traits.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/char_traits.h" 3 29761: # 46 "/usr/include/c++/14/bits/char_traits.h" 3 29761: # 1 "/usr/include/c++/14/cwchar" 1 3 29761: # 39 "/usr/include/c++/14/cwchar" 3 29761: 29761: # 40 "/usr/include/c++/14/cwchar" 3 29761: # 47 "/usr/include/c++/14/bits/char_traits.h" 2 3 29761: # 64 "/usr/include/c++/14/bits/char_traits.h" 3 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: # 68 "/usr/include/c++/14/bits/char_traits.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wstringop-overflow" 29761: #pragma GCC diagnostic ignored "-Wstringop-overread" 29761: #pragma GCC diagnostic ignored "-Warray-bounds" 29761: # 83 "/usr/include/c++/14/bits/char_traits.h" 3 29761: template 29761: struct _Char_types 29761: { 29761: typedef unsigned long int_type; 29761: 29761: typedef std::streampos pos_type; 29761: typedef std::streamoff off_type; 29761: typedef std::mbstate_t state_type; 29761: 29761: }; 29761: # 110 "/usr/include/c++/14/bits/char_traits.h" 3 29761: template 29761: struct char_traits 29761: { 29761: typedef _CharT char_type; 29761: typedef typename _Char_types<_CharT>::int_type int_type; 29761: 29761: typedef typename _Char_types<_CharT>::pos_type pos_type; 29761: typedef typename _Char_types<_CharT>::off_type off_type; 29761: typedef typename _Char_types<_CharT>::state_type state_type; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr void 29761: assign(char_type& __c1, const char_type& __c2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: __c1 = __c2; 29761: } 29761: 29761: static constexpr bool 29761: eq(const char_type& __c1, const char_type& __c2) 29761: { return __c1 == __c2; } 29761: 29761: static constexpr bool 29761: lt(const char_type& __c1, const char_type& __c2) 29761: { return __c1 < __c2; } 29761: 29761: static constexpr int 29761: compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 29761: 29761: static constexpr std::size_t 29761: length(const char_type* __s); 29761: 29761: static constexpr const char_type* 29761: find(const char_type* __s, std::size_t __n, const char_type& __a); 29761: 29761: static char_type* 29761: move(char_type* __s1, const char_type* __s2, std::size_t __n); 29761: 29761: static char_type* 29761: copy(char_type* __s1, const char_type* __s2, std::size_t __n); 29761: 29761: static char_type* 29761: assign(char_type* __s, std::size_t __n, char_type __a); 29761: 29761: static constexpr char_type 29761: to_char_type(const int_type& __c) 29761: { return static_cast(__c); } 29761: 29761: static constexpr int_type 29761: to_int_type(const char_type& __c) 29761: { return static_cast(__c); } 29761: 29761: static constexpr bool 29761: eq_int_type(const int_type& __c1, const int_type& __c2) 29761: { return __c1 == __c2; } 29761: 29761: 29761: static constexpr int_type 29761: eof() 29761: { return static_cast(-1); } 29761: 29761: static constexpr int_type 29761: not_eof(const int_type& __c) 29761: { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } 29761: 29761: }; 29761: 29761: template 29761: constexpr int 29761: char_traits<_CharT>:: 29761: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) 29761: { 29761: for (std::size_t __i = 0; __i < __n; ++__i) 29761: if (lt(__s1[__i], __s2[__i])) 29761: return -1; 29761: else if (lt(__s2[__i], __s1[__i])) 29761: return 1; 29761: return 0; 29761: } 29761: 29761: template 29761: constexpr std::size_t 29761: char_traits<_CharT>:: 29761: length(const char_type* __p) 29761: { 29761: std::size_t __i = 0; 29761: while (!eq(__p[__i], char_type())) 29761: ++__i; 29761: return __i; 29761: } 29761: 29761: template 29761: constexpr const typename char_traits<_CharT>::char_type* 29761: char_traits<_CharT>:: 29761: find(const char_type* __s, std::size_t __n, const char_type& __a) 29761: { 29761: for (std::size_t __i = 0; __i < __n; ++__i) 29761: if (eq(__s[__i], __a)) 29761: return __s + __i; 29761: return 0; 29761: } 29761: 29761: template 29761: 29761: typename char_traits<_CharT>::char_type* 29761: char_traits<_CharT>:: 29761: move(char_type* __s1, const char_type* __s2, std::size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: # 246 "/usr/include/c++/14/bits/char_traits.h" 3 29761: __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); 29761: return __s1; 29761: } 29761: 29761: template 29761: 29761: typename char_traits<_CharT>::char_type* 29761: char_traits<_CharT>:: 29761: copy(char_type* __s1, const char_type* __s2, std::size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: # 266 "/usr/include/c++/14/bits/char_traits.h" 3 29761: __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); 29761: return __s1; 29761: } 29761: 29761: template 29761: 29761: typename char_traits<_CharT>::char_type* 29761: char_traits<_CharT>:: 29761: assign(char_type* __s, std::size_t __n, char_type __a) 29761: { 29761: # 285 "/usr/include/c++/14/bits/char_traits.h" 3 29761: if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) 29761: { 29761: if (__n) 29761: { 29761: unsigned char __c; 29761: __builtin_memcpy(&__c, __builtin_addressof(__a), 1); 29761: __builtin_memset(__s, __c, __n); 29761: } 29761: } 29761: else 29761: { 29761: for (std::size_t __i = 0; __i < __n; ++__i) 29761: __s[__i] = __a; 29761: } 29761: return __s; 29761: } 29761: 29761: 29761: } 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 322 "/usr/include/c++/14/bits/char_traits.h" 3 29761: template 29761: struct char_traits : public __gnu_cxx::char_traits<_CharT> 29761: { }; 29761: 29761: 29761: 29761: template<> 29761: struct char_traits 29761: { 29761: typedef char char_type; 29761: typedef int int_type; 29761: 29761: typedef streampos pos_type; 29761: typedef streamoff off_type; 29761: typedef mbstate_t state_type; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr void 29761: assign(char_type& __c1, const char_type& __c2) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: __c1 = __c2; 29761: } 29761: 29761: static constexpr bool 29761: eq(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: static constexpr bool 29761: lt(const char_type& __c1, const char_type& __c2) noexcept 29761: { 29761: 29761: return (static_cast(__c1) 29761: < static_cast(__c2)); 29761: } 29761: 29761: static constexpr int 29761: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return 0; 29761: 29761: if (std::__is_constant_evaluated()) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: if (lt(__s1[__i], __s2[__i])) 29761: return -1; 29761: else if (lt(__s2[__i], __s1[__i])) 29761: return 1; 29761: return 0; 29761: } 29761: 29761: return __builtin_memcmp(__s1, __s2, __n); 29761: } 29761: 29761: static constexpr size_t 29761: length(const char_type* __s) 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __gnu_cxx::char_traits::length(__s); 29761: 29761: return __builtin_strlen(__s); 29761: } 29761: 29761: static constexpr const char_type* 29761: find(const char_type* __s, size_t __n, const char_type& __a) 29761: { 29761: if (__n == 0) 29761: return 0; 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __gnu_cxx::char_traits::find(__s, __n, __a); 29761: 29761: return static_cast(__builtin_memchr(__s, __a, __n)); 29761: } 29761: 29761: static char_type* 29761: move(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return static_cast(__builtin_memmove(__s1, __s2, __n)); 29761: } 29761: 29761: static char_type* 29761: copy(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return static_cast(__builtin_memcpy(__s1, __s2, __n)); 29761: } 29761: 29761: static char_type* 29761: assign(char_type* __s, size_t __n, char_type __a) 29761: { 29761: if (__n == 0) 29761: return __s; 29761: 29761: 29761: 29761: 29761: return static_cast(__builtin_memset(__s, __a, __n)); 29761: } 29761: 29761: static constexpr char_type 29761: to_char_type(const int_type& __c) noexcept 29761: { return static_cast(__c); } 29761: 29761: 29761: 29761: static constexpr int_type 29761: to_int_type(const char_type& __c) noexcept 29761: { return static_cast(static_cast(__c)); } 29761: 29761: static constexpr bool 29761: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: 29761: static constexpr int_type 29761: eof() noexcept 29761: { return static_cast(-1); } 29761: 29761: static constexpr int_type 29761: not_eof(const int_type& __c) noexcept 29761: { return (__c == eof()) ? 0 : __c; } 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: template<> 29761: struct char_traits 29761: { 29761: typedef wchar_t char_type; 29761: typedef wint_t int_type; 29761: 29761: typedef streamoff off_type; 29761: typedef wstreampos pos_type; 29761: typedef mbstate_t state_type; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr void 29761: assign(char_type& __c1, const char_type& __c2) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: __c1 = __c2; 29761: } 29761: 29761: static constexpr bool 29761: eq(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: static constexpr bool 29761: lt(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 < __c2; } 29761: 29761: static constexpr int 29761: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return 0; 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __gnu_cxx::char_traits::compare(__s1, __s2, __n); 29761: 29761: return wmemcmp(__s1, __s2, __n); 29761: } 29761: 29761: static constexpr size_t 29761: length(const char_type* __s) 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __gnu_cxx::char_traits::length(__s); 29761: 29761: return wcslen(__s); 29761: } 29761: 29761: static constexpr const char_type* 29761: find(const char_type* __s, size_t __n, const char_type& __a) 29761: { 29761: if (__n == 0) 29761: return 0; 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __gnu_cxx::char_traits::find(__s, __n, __a); 29761: 29761: return wmemchr(__s, __a, __n); 29761: } 29761: 29761: static char_type* 29761: move(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return wmemmove(__s1, __s2, __n); 29761: } 29761: 29761: static char_type* 29761: copy(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return wmemcpy(__s1, __s2, __n); 29761: } 29761: 29761: static char_type* 29761: assign(char_type* __s, size_t __n, char_type __a) 29761: { 29761: if (__n == 0) 29761: return __s; 29761: 29761: 29761: 29761: 29761: return wmemset(__s, __a, __n); 29761: } 29761: 29761: static constexpr char_type 29761: to_char_type(const int_type& __c) noexcept 29761: { return char_type(__c); } 29761: 29761: static constexpr int_type 29761: to_int_type(const char_type& __c) noexcept 29761: { return int_type(__c); } 29761: 29761: static constexpr bool 29761: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: 29761: static constexpr int_type 29761: eof() noexcept 29761: { return static_cast((0xffffffffu)); } 29761: 29761: static constexpr int_type 29761: not_eof(const int_type& __c) noexcept 29761: { return eq_int_type(__c, eof()) ? 0 : __c; } 29761: 29761: }; 29761: # 732 "/usr/include/c++/14/bits/char_traits.h" 3 29761: 29761: } 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template<> 29761: struct char_traits 29761: { 29761: typedef char16_t char_type; 29761: 29761: typedef short unsigned int int_type; 29761: 29761: 29761: 29761: 29761: typedef streamoff off_type; 29761: typedef u16streampos pos_type; 29761: typedef mbstate_t state_type; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr void 29761: assign(char_type& __c1, const char_type& __c2) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: __c1 = __c2; 29761: } 29761: 29761: static constexpr bool 29761: eq(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: static constexpr bool 29761: lt(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 < __c2; } 29761: 29761: static constexpr int 29761: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: if (lt(__s1[__i], __s2[__i])) 29761: return -1; 29761: else if (lt(__s2[__i], __s1[__i])) 29761: return 1; 29761: return 0; 29761: } 29761: 29761: static constexpr size_t 29761: length(const char_type* __s) 29761: { 29761: size_t __i = 0; 29761: while (!eq(__s[__i], char_type())) 29761: ++__i; 29761: return __i; 29761: } 29761: 29761: static constexpr const char_type* 29761: find(const char_type* __s, size_t __n, const char_type& __a) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: if (eq(__s[__i], __a)) 29761: return __s + __i; 29761: return 0; 29761: } 29761: 29761: static char_type* 29761: move(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return (static_cast 29761: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 29761: } 29761: 29761: static char_type* 29761: copy(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return (static_cast 29761: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 29761: } 29761: 29761: static char_type* 29761: assign(char_type* __s, size_t __n, char_type __a) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: assign(__s[__i], __a); 29761: return __s; 29761: } 29761: 29761: static constexpr char_type 29761: to_char_type(const int_type& __c) noexcept 29761: { return char_type(__c); } 29761: 29761: static constexpr bool 29761: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: 29761: static constexpr int_type 29761: to_int_type(const char_type& __c) noexcept 29761: { return __c == eof() ? int_type(0xfffd) : int_type(__c); } 29761: 29761: static constexpr int_type 29761: eof() noexcept 29761: { return static_cast(-1); } 29761: 29761: static constexpr int_type 29761: not_eof(const int_type& __c) noexcept 29761: { return eq_int_type(__c, eof()) ? 0 : __c; } 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: template<> 29761: struct char_traits 29761: { 29761: typedef char32_t char_type; 29761: 29761: typedef unsigned int int_type; 29761: 29761: 29761: 29761: 29761: typedef streamoff off_type; 29761: typedef u32streampos pos_type; 29761: typedef mbstate_t state_type; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr void 29761: assign(char_type& __c1, const char_type& __c2) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: __c1 = __c2; 29761: } 29761: 29761: static constexpr bool 29761: eq(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: static constexpr bool 29761: lt(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 < __c2; } 29761: 29761: static constexpr int 29761: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: if (lt(__s1[__i], __s2[__i])) 29761: return -1; 29761: else if (lt(__s2[__i], __s1[__i])) 29761: return 1; 29761: return 0; 29761: } 29761: 29761: static constexpr size_t 29761: length(const char_type* __s) 29761: { 29761: size_t __i = 0; 29761: while (!eq(__s[__i], char_type())) 29761: ++__i; 29761: return __i; 29761: } 29761: 29761: static constexpr const char_type* 29761: find(const char_type* __s, size_t __n, const char_type& __a) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: if (eq(__s[__i], __a)) 29761: return __s + __i; 29761: return 0; 29761: } 29761: 29761: static char_type* 29761: move(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return (static_cast 29761: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 29761: } 29761: 29761: static char_type* 29761: copy(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return (static_cast 29761: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 29761: } 29761: 29761: static char_type* 29761: assign(char_type* __s, size_t __n, char_type __a) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: assign(__s[__i], __a); 29761: return __s; 29761: } 29761: 29761: static constexpr char_type 29761: to_char_type(const int_type& __c) noexcept 29761: { return char_type(__c); } 29761: 29761: static constexpr int_type 29761: to_int_type(const char_type& __c) noexcept 29761: { return int_type(__c); } 29761: 29761: static constexpr bool 29761: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: 29761: static constexpr int_type 29761: eof() noexcept 29761: { return static_cast(-1); } 29761: 29761: static constexpr int_type 29761: not_eof(const int_type& __c) noexcept 29761: { return eq_int_type(__c, eof()) ? 0 : __c; } 29761: 29761: }; 29761: # 1010 "/usr/include/c++/14/bits/char_traits.h" 3 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: } 29761: # 43 "/usr/include/c++/14/string" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/localefwd.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/localefwd.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/localefwd.h" 3 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 1 3 29761: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29761: 29761: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29761: 29761: # 1 "/usr/include/c++/14/clocale" 1 3 29761: # 39 "/usr/include/c++/14/clocale" 3 29761: 29761: # 40 "/usr/include/c++/14/clocale" 3 29761: 29761: 29761: # 1 "/usr/include/locale.h" 1 3 4 29761: # 28 "/usr/include/locale.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 29 "/usr/include/locale.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/locale.h" 1 3 4 29761: # 30 "/usr/include/locale.h" 2 3 4 29761: 29761: extern "C" { 29761: # 51 "/usr/include/locale.h" 3 4 29761: struct lconv 29761: { 29761: 29761: 29761: char *decimal_point; 29761: char *thousands_sep; 29761: 29761: 29761: 29761: 29761: 29761: char *grouping; 29761: 29761: 29761: 29761: 29761: 29761: char *int_curr_symbol; 29761: char *currency_symbol; 29761: char *mon_decimal_point; 29761: char *mon_thousands_sep; 29761: char *mon_grouping; 29761: char *positive_sign; 29761: char *negative_sign; 29761: char int_frac_digits; 29761: char frac_digits; 29761: 29761: char p_cs_precedes; 29761: 29761: char p_sep_by_space; 29761: 29761: char n_cs_precedes; 29761: 29761: char n_sep_by_space; 29761: 29761: 29761: 29761: 29761: 29761: 29761: char p_sign_posn; 29761: char n_sign_posn; 29761: 29761: 29761: char int_p_cs_precedes; 29761: 29761: char int_p_sep_by_space; 29761: 29761: char int_n_cs_precedes; 29761: 29761: char int_n_sep_by_space; 29761: 29761: 29761: 29761: 29761: 29761: 29761: char int_p_sign_posn; 29761: char int_n_sign_posn; 29761: # 118 "/usr/include/locale.h" 3 4 29761: }; 29761: 29761: 29761: 29761: extern char *setlocale (int __category, const char *__locale) noexcept (true); 29761: 29761: 29761: extern struct lconv *localeconv (void) noexcept (true); 29761: # 141 "/usr/include/locale.h" 3 4 29761: extern locale_t newlocale (int __category_mask, const char *__locale, 29761: locale_t __base) noexcept (true); 29761: # 176 "/usr/include/locale.h" 3 4 29761: extern locale_t duplocale (locale_t __dataset) noexcept (true); 29761: 29761: 29761: 29761: extern void freelocale (locale_t __dataset) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern locale_t uselocale (locale_t __dataset) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 43 "/usr/include/c++/14/clocale" 2 3 29761: # 51 "/usr/include/c++/14/clocale" 3 29761: namespace std 29761: { 29761: using ::lconv; 29761: using ::setlocale; 29761: using ::localeconv; 29761: } 29761: # 42 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: extern "C" __typeof(uselocale) __uselocale; 29761: 29761: 29761: } 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: typedef __locale_t __c_locale; 29761: # 73 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29761: inline int 29761: __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), 29761: char* __out, 29761: const int __size __attribute__ ((__unused__)), 29761: const char* __fmt, ...) 29761: { 29761: 29761: __c_locale __old = __gnu_cxx::__uselocale(__cloc); 29761: # 93 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29761: __builtin_va_list __args; 29761: __builtin_va_start(__args, __fmt); 29761: 29761: 29761: const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); 29761: 29761: 29761: 29761: 29761: __builtin_va_end(__args); 29761: 29761: 29761: __gnu_cxx::__uselocale(__old); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: return __ret; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 41 "/usr/include/c++/14/bits/localefwd.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/cctype" 1 3 29761: # 39 "/usr/include/c++/14/cctype" 3 29761: 29761: # 40 "/usr/include/c++/14/cctype" 3 29761: 29761: 29761: # 1 "/usr/include/ctype.h" 1 3 4 29761: # 28 "/usr/include/ctype.h" 3 4 29761: extern "C" { 29761: # 46 "/usr/include/ctype.h" 3 4 29761: enum 29761: { 29761: _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), 29761: _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), 29761: _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), 29761: _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), 29761: _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), 29761: _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), 29761: _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), 29761: _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), 29761: _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), 29761: _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), 29761: _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), 29761: _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) 29761: }; 29761: # 79 "/usr/include/ctype.h" 3 4 29761: extern const unsigned short int **__ctype_b_loc (void) 29761: noexcept (true) __attribute__ ((__const__)); 29761: extern const __int32_t **__ctype_tolower_loc (void) 29761: noexcept (true) __attribute__ ((__const__)); 29761: extern const __int32_t **__ctype_toupper_loc (void) 29761: noexcept (true) __attribute__ ((__const__)); 29761: # 108 "/usr/include/ctype.h" 3 4 29761: extern int isalnum (int) noexcept (true); 29761: extern int isalpha (int) noexcept (true); 29761: extern int iscntrl (int) noexcept (true); 29761: extern int isdigit (int) noexcept (true); 29761: extern int islower (int) noexcept (true); 29761: extern int isgraph (int) noexcept (true); 29761: extern int isprint (int) noexcept (true); 29761: extern int ispunct (int) noexcept (true); 29761: extern int isspace (int) noexcept (true); 29761: extern int isupper (int) noexcept (true); 29761: extern int isxdigit (int) noexcept (true); 29761: 29761: 29761: 29761: extern int tolower (int __c) noexcept (true); 29761: 29761: 29761: extern int toupper (int __c) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int isblank (int) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int isctype (int __c, int __mask) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int isascii (int __c) noexcept (true); 29761: 29761: 29761: 29761: extern int toascii (int __c) noexcept (true); 29761: 29761: 29761: 29761: extern int _toupper (int) noexcept (true); 29761: extern int _tolower (int) noexcept (true); 29761: # 251 "/usr/include/ctype.h" 3 4 29761: extern int isalnum_l (int, locale_t) noexcept (true); 29761: extern int isalpha_l (int, locale_t) noexcept (true); 29761: extern int iscntrl_l (int, locale_t) noexcept (true); 29761: extern int isdigit_l (int, locale_t) noexcept (true); 29761: extern int islower_l (int, locale_t) noexcept (true); 29761: extern int isgraph_l (int, locale_t) noexcept (true); 29761: extern int isprint_l (int, locale_t) noexcept (true); 29761: extern int ispunct_l (int, locale_t) noexcept (true); 29761: extern int isspace_l (int, locale_t) noexcept (true); 29761: extern int isupper_l (int, locale_t) noexcept (true); 29761: extern int isxdigit_l (int, locale_t) noexcept (true); 29761: 29761: extern int isblank_l (int, locale_t) noexcept (true); 29761: 29761: 29761: 29761: extern int __tolower_l (int __c, locale_t __l) noexcept (true); 29761: extern int tolower_l (int __c, locale_t __l) noexcept (true); 29761: 29761: 29761: extern int __toupper_l (int __c, locale_t __l) noexcept (true); 29761: extern int toupper_l (int __c, locale_t __l) noexcept (true); 29761: # 327 "/usr/include/ctype.h" 3 4 29761: } 29761: # 43 "/usr/include/c++/14/cctype" 2 3 29761: # 62 "/usr/include/c++/14/cctype" 3 29761: namespace std 29761: { 29761: using ::isalnum; 29761: using ::isalpha; 29761: using ::iscntrl; 29761: using ::isdigit; 29761: using ::isgraph; 29761: using ::islower; 29761: using ::isprint; 29761: using ::ispunct; 29761: using ::isspace; 29761: using ::isupper; 29761: using ::isxdigit; 29761: using ::tolower; 29761: using ::toupper; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std 29761: { 29761: using ::isblank; 29761: } 29761: # 43 "/usr/include/c++/14/bits/localefwd.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 55 "/usr/include/c++/14/bits/localefwd.h" 3 29761: class locale; 29761: 29761: template 29761: bool 29761: has_facet(const locale&) throw(); 29761: 29761: template 29761: const _Facet& 29761: use_facet(const locale&); 29761: 29761: 29761: template 29761: bool 29761: isspace(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isprint(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: iscntrl(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isupper(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: islower(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isalpha(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isdigit(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: ispunct(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isxdigit(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isalnum(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isgraph(_CharT, const locale&); 29761: 29761: 29761: template 29761: bool 29761: isblank(_CharT, const locale&); 29761: 29761: 29761: template 29761: _CharT 29761: toupper(_CharT, const locale&); 29761: 29761: template 29761: _CharT 29761: tolower(_CharT, const locale&); 29761: 29761: 29761: struct ctype_base; 29761: template 29761: class ctype; 29761: template<> class ctype; 29761: 29761: template<> class ctype; 29761: 29761: template 29761: class ctype_byname; 29761: 29761: 29761: class codecvt_base; 29761: template 29761: class codecvt; 29761: template<> class codecvt; 29761: 29761: template<> class codecvt; 29761: 29761: 29761: template<> class codecvt; 29761: template<> class codecvt; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class codecvt_byname; 29761: 29761: 29761: 29761: template > 29761: class num_get; 29761: template > 29761: class num_put; 29761: 29761: namespace __cxx11 { 29761: template class numpunct; 29761: template class numpunct_byname; 29761: } 29761: 29761: namespace __cxx11 { 29761: 29761: template 29761: class collate; 29761: template 29761: class collate_byname; 29761: } 29761: 29761: 29761: class time_base; 29761: namespace __cxx11 { 29761: template > 29761: class time_get; 29761: template > 29761: class time_get_byname; 29761: } 29761: template > 29761: class time_put; 29761: template > 29761: class time_put_byname; 29761: 29761: 29761: class money_base; 29761: namespace __cxx11 { 29761: template > 29761: class money_get; 29761: template > 29761: class money_put; 29761: } 29761: namespace __cxx11 { 29761: template 29761: class moneypunct; 29761: template 29761: class moneypunct_byname; 29761: } 29761: 29761: 29761: struct messages_base; 29761: namespace __cxx11 { 29761: template 29761: class messages; 29761: template 29761: class messages_byname; 29761: } 29761: 29761: 29761: } 29761: # 46 "/usr/include/c++/14/string" 2 3 29761: # 1 "/usr/include/c++/14/bits/ostream_insert.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/ostream_insert.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/ostream_insert.h" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/cxxabi_forced.h" 1 3 29761: # 34 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 29761: 29761: # 35 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 29761: 29761: #pragma GCC visibility push(default) 29761: 29761: 29761: namespace __cxxabiv1 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class __forced_unwind 29761: { 29761: virtual ~__forced_unwind() throw(); 29761: 29761: 29761: virtual void __pure_dummy() = 0; 29761: }; 29761: } 29761: 29761: 29761: #pragma GCC visibility pop 29761: # 37 "/usr/include/c++/14/bits/ostream_insert.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: __ostream_write(basic_ostream<_CharT, _Traits>& __out, 29761: const _CharT* __s, streamsize __n) 29761: { 29761: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29761: typedef typename __ostream_type::ios_base __ios_base; 29761: 29761: const streamsize __put = __out.rdbuf()->sputn(__s, __n); 29761: if (__put != __n) 29761: __out.setstate(__ios_base::badbit); 29761: } 29761: 29761: template 29761: inline void 29761: __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) 29761: { 29761: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29761: typedef typename __ostream_type::ios_base __ios_base; 29761: 29761: const _CharT __c = __out.fill(); 29761: for (; __n > 0; --__n) 29761: { 29761: const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); 29761: if (_Traits::eq_int_type(__put, _Traits::eof())) 29761: { 29761: __out.setstate(__ios_base::badbit); 29761: break; 29761: } 29761: } 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: __ostream_insert(basic_ostream<_CharT, _Traits>& __out, 29761: const _CharT* __s, streamsize __n) 29761: { 29761: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29761: typedef typename __ostream_type::ios_base __ios_base; 29761: 29761: typename __ostream_type::sentry __cerb(__out); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: const streamsize __w = __out.width(); 29761: if (__w > __n) 29761: { 29761: const bool __left = ((__out.flags() 29761: & __ios_base::adjustfield) 29761: == __ios_base::left); 29761: if (!__left) 29761: __ostream_fill(__out, __w - __n); 29761: if (__out.good()) 29761: __ostream_write(__out, __s, __n); 29761: if (__left && __out.good()) 29761: __ostream_fill(__out, __w - __n); 29761: } 29761: else 29761: __ostream_write(__out, __s, __n); 29761: __out.width(0); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __out._M_setstate(__ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { __out._M_setstate(__ios_base::badbit); } 29761: } 29761: return __out; 29761: } 29761: 29761: 29761: 29761: 29761: extern template ostream& __ostream_insert(ostream&, const char*, streamsize); 29761: 29761: 29761: extern template wostream& __ostream_insert(wostream&, const wchar_t*, 29761: streamsize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 47 "/usr/include/c++/14/string" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/basic_string.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/basic_string.h" 3 29761: # 47 "/usr/include/c++/14/bits/basic_string.h" 3 29761: # 1 "/usr/include/c++/14/string_view" 1 3 29761: # 36 "/usr/include/c++/14/string_view" 3 29761: 29761: # 37 "/usr/include/c++/14/string_view" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 45 "/usr/include/c++/14/string_view" 2 3 29761: # 64 "/usr/include/c++/14/string_view" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: constexpr size_t 29761: __sv_check(size_t __size, size_t __pos, const char* __s) 29761: { 29761: if (__pos > __size) 29761: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") 29761: , __s, __pos, __size); 29761: return __pos; 29761: } 29761: 29761: 29761: 29761: constexpr size_t 29761: __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept 29761: { 29761: const bool __testoff = __off < __size - __pos; 29761: return __testoff ? __off : __size - __pos; 29761: } 29761: # 105 "/usr/include/c++/14/string_view" 3 29761: template> 29761: class basic_string_view 29761: { 29761: static_assert(!is_array_v<_CharT>); 29761: static_assert(is_trivial_v<_CharT> && is_standard_layout_v<_CharT>); 29761: static_assert(is_same_v<_CharT, typename _Traits::char_type>); 29761: 29761: public: 29761: 29761: 29761: using traits_type = _Traits; 29761: using value_type = _CharT; 29761: using pointer = value_type*; 29761: using const_pointer = const value_type*; 29761: using reference = value_type&; 29761: using const_reference = const value_type&; 29761: using const_iterator = const value_type*; 29761: using iterator = const_iterator; 29761: using const_reverse_iterator = std::reverse_iterator; 29761: using reverse_iterator = const_reverse_iterator; 29761: using size_type = size_t; 29761: using difference_type = ptrdiff_t; 29761: static constexpr size_type npos = size_type(-1); 29761: 29761: 29761: 29761: constexpr 29761: basic_string_view() noexcept 29761: : _M_len{0}, _M_str{nullptr} 29761: { } 29761: 29761: constexpr basic_string_view(const basic_string_view&) noexcept = default; 29761: 29761: [[__gnu__::__nonnull__]] 29761: constexpr 29761: basic_string_view(const _CharT* __str) noexcept 29761: : _M_len{traits_type::length(__str)}, 29761: _M_str{__str} 29761: { } 29761: 29761: constexpr 29761: basic_string_view(const _CharT* __str, size_type __len) noexcept 29761: : _M_len{__len}, _M_str{__str} 29761: { } 29761: # 180 "/usr/include/c++/14/string_view" 3 29761: constexpr basic_string_view& 29761: operator=(const basic_string_view&) noexcept = default; 29761: 29761: 29761: 29761: [[nodiscard]] 29761: constexpr const_iterator 29761: begin() const noexcept 29761: { return this->_M_str; } 29761: 29761: [[nodiscard]] 29761: constexpr const_iterator 29761: end() const noexcept 29761: { return this->_M_str + this->_M_len; } 29761: 29761: [[nodiscard]] 29761: constexpr const_iterator 29761: cbegin() const noexcept 29761: { return this->_M_str; } 29761: 29761: [[nodiscard]] 29761: constexpr const_iterator 29761: cend() const noexcept 29761: { return this->_M_str + this->_M_len; } 29761: 29761: [[nodiscard]] 29761: constexpr const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(this->end()); } 29761: 29761: [[nodiscard]] 29761: constexpr const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(this->begin()); } 29761: 29761: [[nodiscard]] 29761: constexpr const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(this->end()); } 29761: 29761: [[nodiscard]] 29761: constexpr const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(this->begin()); } 29761: 29761: 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: size() const noexcept 29761: { return this->_M_len; } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: length() const noexcept 29761: { return _M_len; } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: max_size() const noexcept 29761: { 29761: return (npos - sizeof(size_type) - sizeof(void*)) 29761: / sizeof(value_type) / 4; 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr bool 29761: empty() const noexcept 29761: { return this->_M_len == 0; } 29761: 29761: 29761: 29761: [[nodiscard]] 29761: constexpr const_reference 29761: operator[](size_type __pos) const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos < this->_M_len)) std::__glibcxx_assert_fail(); } while (false); 29761: return *(this->_M_str + __pos); 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr const_reference 29761: at(size_type __pos) const 29761: { 29761: if (__pos >= _M_len) 29761: __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") 29761: 29761: , __pos, this->size()); 29761: return *(this->_M_str + __pos); 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr const_reference 29761: front() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: return *this->_M_str; 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr const_reference 29761: back() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: return *(this->_M_str + this->_M_len - 1); 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr const_pointer 29761: data() const noexcept 29761: { return this->_M_str; } 29761: 29761: 29761: 29761: constexpr void 29761: remove_prefix(size_type __n) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) std::__glibcxx_assert_fail(); } while (false); 29761: this->_M_str += __n; 29761: this->_M_len -= __n; 29761: } 29761: 29761: constexpr void 29761: remove_suffix(size_type __n) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) std::__glibcxx_assert_fail(); } while (false); 29761: this->_M_len -= __n; 29761: } 29761: 29761: constexpr void 29761: swap(basic_string_view& __sv) noexcept 29761: { 29761: auto __tmp = *this; 29761: *this = __sv; 29761: __sv = __tmp; 29761: } 29761: 29761: 29761: 29761: 29761: size_type 29761: copy(_CharT* __str, size_type __n, size_type __pos = 0) const 29761: { 29761: ; 29761: __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); 29761: const size_type __rlen = std::min(__n, _M_len - __pos); 29761: 29761: 29761: traits_type::copy(__str, data() + __pos, __rlen); 29761: return __rlen; 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr basic_string_view 29761: substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) 29761: { 29761: __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); 29761: const size_type __rlen = std::min(__n, _M_len - __pos); 29761: return basic_string_view{_M_str + __pos, __rlen}; 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr int 29761: compare(basic_string_view __str) const noexcept 29761: { 29761: const size_type __rlen = std::min(this->_M_len, __str._M_len); 29761: int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); 29761: if (__ret == 0) 29761: __ret = _S_compare(this->_M_len, __str._M_len); 29761: return __ret; 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr int 29761: compare(size_type __pos1, size_type __n1, basic_string_view __str) const 29761: { return this->substr(__pos1, __n1).compare(__str); } 29761: 29761: [[nodiscard]] 29761: constexpr int 29761: compare(size_type __pos1, size_type __n1, 29761: basic_string_view __str, size_type __pos2, size_type __n2) const 29761: { 29761: return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); 29761: } 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr int 29761: compare(const _CharT* __str) const noexcept 29761: { return this->compare(basic_string_view{__str}); } 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr int 29761: compare(size_type __pos1, size_type __n1, const _CharT* __str) const 29761: { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } 29761: 29761: [[nodiscard]] 29761: constexpr int 29761: compare(size_type __pos1, size_type __n1, 29761: const _CharT* __str, size_type __n2) const noexcept(false) 29761: { 29761: return this->substr(__pos1, __n1) 29761: .compare(basic_string_view(__str, __n2)); 29761: } 29761: # 445 "/usr/include/c++/14/string_view" 3 29761: [[nodiscard]] 29761: constexpr size_type 29761: find(basic_string_view __str, size_type __pos = 0) const noexcept 29761: { return this->find(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find(_CharT __c, size_type __pos = 0) const noexcept; 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: find(const _CharT* __str, size_type __pos = 0) const noexcept 29761: { return this->find(__str, __pos, traits_type::length(__str)); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: rfind(basic_string_view __str, size_type __pos = npos) const noexcept 29761: { return this->rfind(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: rfind(_CharT __c, size_type __pos = npos) const noexcept; 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: rfind(const _CharT* __str, size_type __pos = npos) const noexcept 29761: { return this->rfind(__str, __pos, traits_type::length(__str)); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept 29761: { return this->find_first_of(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 29761: { return this->find(__c, __pos); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept 29761: { return this->find_first_of(__str, __pos, traits_type::length(__str)); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_of(basic_string_view __str, 29761: size_type __pos = npos) const noexcept 29761: { return this->find_last_of(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_of(_CharT __c, size_type __pos=npos) const noexcept 29761: { return this->rfind(__c, __pos); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept 29761: { return this->find_last_of(__str, __pos, traits_type::length(__str)); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_not_of(basic_string_view __str, 29761: size_type __pos = 0) const noexcept 29761: { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_not_of(const _CharT* __str, 29761: size_type __pos, size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept 29761: { 29761: return this->find_first_not_of(__str, __pos, 29761: traits_type::length(__str)); 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_not_of(basic_string_view __str, 29761: size_type __pos = npos) const noexcept 29761: { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_not_of(const _CharT* __str, 29761: size_type __pos, size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: find_last_not_of(const _CharT* __str, 29761: size_type __pos = npos) const noexcept 29761: { 29761: return this->find_last_not_of(__str, __pos, 29761: traits_type::length(__str)); 29761: } 29761: 29761: private: 29761: 29761: static constexpr int 29761: _S_compare(size_type __n1, size_type __n2) noexcept 29761: { 29761: using __limits = __gnu_cxx::__int_traits; 29761: const difference_type __diff = __n1 - __n2; 29761: if (__diff > __limits::__max) 29761: return __limits::__max; 29761: if (__diff < __limits::__min) 29761: return __limits::__min; 29761: return static_cast(__diff); 29761: } 29761: 29761: size_t _M_len; 29761: const _CharT* _M_str; 29761: }; 29761: # 623 "/usr/include/c++/14/string_view" 3 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator==(basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator==(basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator==(__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator!=(basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator!=(basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator!=(__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator< (basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) < 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator< (basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return __x.compare(__y) < 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator< (__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) < 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator> (basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) > 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator> (basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return __x.compare(__y) > 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator> (__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) > 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator<=(basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) <= 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator<=(basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return __x.compare(__y) <= 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator<=(__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) <= 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator>=(basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) >= 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator>=(basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return __x.compare(__y) >= 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator>=(__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) >= 0; } 29761: 29761: 29761: 29761: 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __os, 29761: basic_string_view<_CharT,_Traits> __str) 29761: { return __ostream_insert(__os, __str.data(), __str.size()); } 29761: 29761: 29761: 29761: 29761: using string_view = basic_string_view; 29761: using wstring_view = basic_string_view; 29761: 29761: 29761: 29761: using u16string_view = basic_string_view; 29761: using u32string_view = basic_string_view; 29761: 29761: 29761: 29761: template 29761: struct hash; 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: [[nodiscard]] 29761: size_t 29761: operator()(const string_view& __str) const noexcept 29761: { return std::_Hash_impl::hash(__str.data(), __str.length()); } 29761: }; 29761: 29761: template<> 29761: struct __is_fast_hash> : std::false_type 29761: { }; 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: [[nodiscard]] 29761: size_t 29761: operator()(const wstring_view& __s) const noexcept 29761: { return std::_Hash_impl::hash(__s.data(), 29761: __s.length() * sizeof(wchar_t)); } 29761: }; 29761: 29761: template<> 29761: struct __is_fast_hash> : std::false_type 29761: { }; 29761: # 825 "/usr/include/c++/14/string_view" 3 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: [[nodiscard]] 29761: size_t 29761: operator()(const u16string_view& __s) const noexcept 29761: { return std::_Hash_impl::hash(__s.data(), 29761: __s.length() * sizeof(char16_t)); } 29761: }; 29761: 29761: template<> 29761: struct __is_fast_hash> : std::false_type 29761: { }; 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: [[nodiscard]] 29761: size_t 29761: operator()(const u32string_view& __s) const noexcept 29761: { return std::_Hash_impl::hash(__s.data(), 29761: __s.length() * sizeof(char32_t)); } 29761: }; 29761: 29761: template<> 29761: struct __is_fast_hash> : std::false_type 29761: { }; 29761: 29761: inline namespace literals 29761: { 29761: inline namespace string_view_literals 29761: { 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29761: inline constexpr basic_string_view 29761: operator""sv(const char* __str, size_t __len) noexcept 29761: { return basic_string_view{__str, __len}; } 29761: 29761: inline constexpr basic_string_view 29761: operator""sv(const wchar_t* __str, size_t __len) noexcept 29761: { return basic_string_view{__str, __len}; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline constexpr basic_string_view 29761: operator""sv(const char16_t* __str, size_t __len) noexcept 29761: { return basic_string_view{__str, __len}; } 29761: 29761: inline constexpr basic_string_view 29761: operator""sv(const char32_t* __str, size_t __len) noexcept 29761: { return basic_string_view{__str, __len}; } 29761: 29761: #pragma GCC diagnostic pop 29761: } 29761: } 29761: # 901 "/usr/include/c++/14/string_view" 3 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/string_view.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/string_view.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/string_view.tcc" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept 29761: { 29761: ; 29761: 29761: if (__n == 0) 29761: return __pos <= _M_len ? __pos : npos; 29761: if (__pos >= _M_len) 29761: return npos; 29761: 29761: const _CharT __elem0 = __str[0]; 29761: const _CharT* __first = _M_str + __pos; 29761: const _CharT* const __last = _M_str + _M_len; 29761: size_type __len = _M_len - __pos; 29761: 29761: while (__len >= __n) 29761: { 29761: 29761: __first = traits_type::find(__first, __len - __n + 1, __elem0); 29761: if (!__first) 29761: return npos; 29761: 29761: 29761: 29761: if (traits_type::compare(__first, __str, __n) == 0) 29761: return __first - _M_str; 29761: __len = __last - ++__first; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __ret = npos; 29761: if (__pos < this->_M_len) 29761: { 29761: const size_type __n = this->_M_len - __pos; 29761: const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); 29761: if (__p) 29761: __ret = __p - this->_M_str; 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept 29761: { 29761: ; 29761: 29761: if (__n <= this->_M_len) 29761: { 29761: __pos = std::min(size_type(this->_M_len - __n), __pos); 29761: do 29761: { 29761: if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) 29761: return __pos; 29761: } 29761: while (__pos-- > 0); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: rfind(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __size = this->_M_len; 29761: if (__size > 0) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: for (++__size; __size-- > 0; ) 29761: if (traits_type::eq(this->_M_str[__size], __c)) 29761: return __size; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_first_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept 29761: { 29761: ; 29761: for (; __n && __pos < this->_M_len; ++__pos) 29761: { 29761: const _CharT* __p = traits_type::find(__str, __n, 29761: this->_M_str[__pos]); 29761: if (__p) 29761: return __pos; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_last_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept 29761: { 29761: ; 29761: size_type __size = this->size(); 29761: if (__size && __n) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (traits_type::find(__str, __n, this->_M_str[__size])) 29761: return __size; 29761: } 29761: while (__size-- != 0); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_first_not_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept 29761: { 29761: ; 29761: for (; __pos < this->_M_len; ++__pos) 29761: if (!traits_type::find(__str, __n, this->_M_str[__pos])) 29761: return __pos; 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_first_not_of(_CharT __c, size_type __pos) const noexcept 29761: { 29761: for (; __pos < this->_M_len; ++__pos) 29761: if (!traits_type::eq(this->_M_str[__pos], __c)) 29761: return __pos; 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_last_not_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept 29761: { 29761: ; 29761: size_type __size = this->_M_len; 29761: if (__size) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (!traits_type::find(__str, __n, this->_M_str[__size])) 29761: return __size; 29761: } 29761: while (__size--); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_last_not_of(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __size = this->_M_len; 29761: if (__size) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (!traits_type::eq(this->_M_str[__size], __c)) 29761: return __size; 29761: } 29761: while (__size--); 29761: } 29761: return npos; 29761: } 29761: 29761: 29761: } 29761: # 905 "/usr/include/c++/14/string_view" 2 3 29761: # 48 "/usr/include/c++/14/bits/basic_string.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 55 "/usr/include/c++/14/bits/basic_string.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace __cxx11 { 29761: # 85 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: class basic_string 29761: { 29761: 29761: 29761: 29761: 29761: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_CharT>::other _Char_alloc_type; 29761: 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 29761: 29761: 29761: public: 29761: typedef _Traits traits_type; 29761: typedef typename _Traits::char_type value_type; 29761: typedef _Char_alloc_type allocator_type; 29761: typedef typename _Alloc_traits::size_type size_type; 29761: typedef typename _Alloc_traits::difference_type difference_type; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef __gnu_cxx::__normal_iterator iterator; 29761: typedef __gnu_cxx::__normal_iterator 29761: const_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: typedef std::reverse_iterator reverse_iterator; 29761: 29761: 29761: static const size_type npos = static_cast(-1); 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: typedef const_iterator __const_iterator; 29761: 29761: 29761: private: 29761: static pointer 29761: _S_allocate(_Char_alloc_type& __a, size_type __n) 29761: { 29761: pointer __p = _Alloc_traits::allocate(__a, __n); 29761: # 141 "/usr/include/c++/14/bits/basic_string.h" 3 29761: return __p; 29761: } 29761: 29761: 29761: 29761: typedef basic_string_view<_CharT, _Traits> __sv_type; 29761: 29761: template 29761: using _If_sv = enable_if_t< 29761: __and_, 29761: __not_>, 29761: __not_>>::value, 29761: _Res>; 29761: 29761: 29761: 29761: static __sv_type 29761: _S_to_string_view(__sv_type __svt) noexcept 29761: { return __svt; } 29761: 29761: 29761: 29761: 29761: 29761: struct __sv_wrapper 29761: { 29761: explicit 29761: __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } 29761: 29761: __sv_type _M_sv; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_string(__sv_wrapper __svw, const _Alloc& __a) 29761: : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } 29761: 29761: 29761: 29761: struct _Alloc_hider : allocator_type 29761: { 29761: 29761: 29761: 29761: 29761: 29761: _Alloc_hider(pointer __dat, const _Alloc& __a) 29761: : allocator_type(__a), _M_p(__dat) { } 29761: 29761: 29761: _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) 29761: : allocator_type(std::move(__a)), _M_p(__dat) { } 29761: 29761: 29761: pointer _M_p; 29761: }; 29761: 29761: _Alloc_hider _M_dataplus; 29761: size_type _M_string_length; 29761: 29761: enum { _S_local_capacity = 15 / sizeof(_CharT) }; 29761: 29761: union 29761: { 29761: _CharT _M_local_buf[_S_local_capacity + 1]; 29761: size_type _M_allocated_capacity; 29761: }; 29761: 29761: 29761: void 29761: _M_data(pointer __p) 29761: { _M_dataplus._M_p = __p; } 29761: 29761: 29761: void 29761: _M_length(size_type __length) 29761: { _M_string_length = __length; } 29761: 29761: 29761: pointer 29761: _M_data() const 29761: { return _M_dataplus._M_p; } 29761: 29761: 29761: pointer 29761: _M_local_data() 29761: { 29761: 29761: return std::pointer_traits::pointer_to(*_M_local_buf); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: const_pointer 29761: _M_local_data() const 29761: { 29761: 29761: return std::pointer_traits::pointer_to(*_M_local_buf); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: void 29761: _M_capacity(size_type __capacity) 29761: { _M_allocated_capacity = __capacity; } 29761: 29761: 29761: void 29761: _M_set_length(size_type __n) 29761: { 29761: _M_length(__n); 29761: traits_type::assign(_M_data()[__n], _CharT()); 29761: } 29761: 29761: 29761: bool 29761: _M_is_local() const 29761: { 29761: if (_M_data() == _M_local_data()) 29761: { 29761: if (_M_string_length > _S_local_capacity) 29761: __builtin_unreachable(); 29761: return true; 29761: } 29761: return false; 29761: } 29761: 29761: 29761: 29761: pointer 29761: _M_create(size_type&, size_type); 29761: 29761: 29761: void 29761: _M_dispose() 29761: { 29761: if (!_M_is_local()) 29761: _M_destroy(_M_allocated_capacity); 29761: } 29761: 29761: 29761: void 29761: _M_destroy(size_type __size) throw() 29761: { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } 29761: # 321 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: void 29761: _M_construct(_InIterator __beg, _InIterator __end, 29761: std::input_iterator_tag); 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: _M_construct(_FwdIterator __beg, _FwdIterator __end, 29761: std::forward_iterator_tag); 29761: 29761: 29761: void 29761: _M_construct(size_type __req, _CharT __c); 29761: 29761: 29761: allocator_type& 29761: _M_get_allocator() 29761: { return _M_dataplus; } 29761: 29761: 29761: const allocator_type& 29761: _M_get_allocator() const 29761: { return _M_dataplus; } 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: constexpr 29761: void 29761: _M_init_local_buf() noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: __attribute__((__always_inline__)) 29761: constexpr 29761: pointer 29761: _M_use_local_data() noexcept 29761: { 29761: 29761: 29761: 29761: return _M_local_data(); 29761: } 29761: 29761: private: 29761: # 389 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: size_type 29761: _M_check(size_type __pos, const char* __s) const 29761: { 29761: if (__pos > this->size()) 29761: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") 29761: , 29761: __s, __pos, this->size()); 29761: return __pos; 29761: } 29761: 29761: 29761: void 29761: _M_check_length(size_type __n1, size_type __n2, const char* __s) const 29761: { 29761: if (this->max_size() - (this->size() - __n1) < __n2) 29761: __throw_length_error((__s)); 29761: } 29761: 29761: 29761: 29761: 29761: size_type 29761: _M_limit(size_type __pos, size_type __off) const noexcept 29761: { 29761: const bool __testoff = __off < this->size() - __pos; 29761: return __testoff ? __off : this->size() - __pos; 29761: } 29761: 29761: 29761: bool 29761: _M_disjunct(const _CharT* __s) const noexcept 29761: { 29761: return (less()(__s, _M_data()) 29761: || less()(_M_data() + this->size(), __s)); 29761: } 29761: 29761: 29761: 29761: 29761: static void 29761: _S_copy(_CharT* __d, const _CharT* __s, size_type __n) 29761: { 29761: if (__n == 1) 29761: traits_type::assign(*__d, *__s); 29761: else 29761: traits_type::copy(__d, __s, __n); 29761: } 29761: 29761: 29761: static void 29761: _S_move(_CharT* __d, const _CharT* __s, size_type __n) 29761: { 29761: if (__n == 1) 29761: traits_type::assign(*__d, *__s); 29761: else 29761: traits_type::move(__d, __s, __n); 29761: } 29761: 29761: 29761: static void 29761: _S_assign(_CharT* __d, size_type __n, _CharT __c) 29761: { 29761: if (__n == 1) 29761: traits_type::assign(*__d, __c); 29761: else 29761: traits_type::assign(__d, __n, __c); 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: static void 29761: _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) 29761: { 29761: for (; __k1 != __k2; ++__k1, (void)++__p) 29761: traits_type::assign(*__p, *__k1); 29761: } 29761: 29761: 29761: static void 29761: _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept 29761: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 29761: 29761: 29761: static void 29761: _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) 29761: noexcept 29761: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 29761: 29761: 29761: static void 29761: _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept 29761: { _S_copy(__p, __k1, __k2 - __k1); } 29761: 29761: 29761: static void 29761: _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) 29761: noexcept 29761: { _S_copy(__p, __k1, __k2 - __k1); } 29761: 29761: 29761: static int 29761: _S_compare(size_type __n1, size_type __n2) noexcept 29761: { 29761: const difference_type __d = difference_type(__n1 - __n2); 29761: 29761: if (__d > __gnu_cxx::__numeric_traits::__max) 29761: return __gnu_cxx::__numeric_traits::__max; 29761: else if (__d < __gnu_cxx::__numeric_traits::__min) 29761: return __gnu_cxx::__numeric_traits::__min; 29761: else 29761: return int(__d); 29761: } 29761: 29761: 29761: void 29761: _M_assign(const basic_string&); 29761: 29761: 29761: void 29761: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 29761: size_type __len2); 29761: 29761: 29761: void 29761: _M_erase(size_type __pos, size_type __n); 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string() 29761: noexcept(is_nothrow_default_constructible<_Alloc>::value) 29761: : _M_dataplus(_M_local_data()) 29761: { 29761: _M_init_local_buf(); 29761: _M_set_length(0); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_string(const _Alloc& __a) noexcept 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: _M_init_local_buf(); 29761: _M_set_length(0); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string(const basic_string& __str) 29761: : _M_dataplus(_M_local_data(), 29761: _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) 29761: { 29761: _M_construct(__str._M_data(), __str._M_data() + __str.length(), 29761: std::forward_iterator_tag()); 29761: } 29761: # 568 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string(const basic_string& __str, size_type __pos, 29761: const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: const _CharT* __start = __str._M_data() 29761: + __str._M_check(__pos, "basic_string::basic_string"); 29761: _M_construct(__start, __start + __str._M_limit(__pos, npos), 29761: std::forward_iterator_tag()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string(const basic_string& __str, size_type __pos, 29761: size_type __n) 29761: : _M_dataplus(_M_local_data()) 29761: { 29761: const _CharT* __start = __str._M_data() 29761: + __str._M_check(__pos, "basic_string::basic_string"); 29761: _M_construct(__start, __start + __str._M_limit(__pos, __n), 29761: std::forward_iterator_tag()); 29761: } 29761: # 603 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string(const basic_string& __str, size_type __pos, 29761: size_type __n, const _Alloc& __a) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: const _CharT* __start 29761: = __str._M_data() + __str._M_check(__pos, "string::string"); 29761: _M_construct(__start, __start + __str._M_limit(__pos, __n), 29761: std::forward_iterator_tag()); 29761: } 29761: # 623 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string(const _CharT* __s, size_type __n, 29761: const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: 29761: if (__s == 0 && __n > 0) 29761: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 29761: ); 29761: _M_construct(__s, __s + __n, std::forward_iterator_tag()); 29761: } 29761: # 643 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: 29761: basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: 29761: if (__s == 0) 29761: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 29761: ); 29761: const _CharT* __end = __s + traits_type::length(__s); 29761: _M_construct(__s, __end, forward_iterator_tag()); 29761: } 29761: # 666 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: 29761: basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { _M_construct(__n, __c); } 29761: # 681 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string(basic_string&& __str) noexcept 29761: : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) 29761: { 29761: if (__str._M_is_local()) 29761: { 29761: _M_init_local_buf(); 29761: traits_type::copy(_M_local_buf, __str._M_local_buf, 29761: __str.length() + 1); 29761: } 29761: else 29761: { 29761: _M_data(__str._M_data()); 29761: _M_capacity(__str._M_allocated_capacity); 29761: } 29761: 29761: 29761: 29761: 29761: _M_length(__str.length()); 29761: __str._M_data(__str._M_use_local_data()); 29761: __str._M_set_length(0); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } 29761: 29761: 29761: basic_string(const basic_string& __str, const _Alloc& __a) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } 29761: 29761: 29761: basic_string(basic_string&& __str, const _Alloc& __a) 29761: noexcept(_Alloc_traits::_S_always_equal()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: if (__str._M_is_local()) 29761: { 29761: _M_init_local_buf(); 29761: traits_type::copy(_M_local_buf, __str._M_local_buf, 29761: __str.length() + 1); 29761: _M_length(__str.length()); 29761: __str._M_set_length(0); 29761: } 29761: else if (_Alloc_traits::_S_always_equal() 29761: || __str.get_allocator() == __a) 29761: { 29761: _M_data(__str._M_data()); 29761: _M_length(__str.length()); 29761: _M_capacity(__str._M_allocated_capacity); 29761: __str._M_data(__str._M_use_local_data()); 29761: __str._M_set_length(0); 29761: } 29761: else 29761: _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); 29761: } 29761: # 759 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: 29761: 29761: 29761: basic_string(_InputIterator __beg, _InputIterator __end, 29761: const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a), _M_string_length(0) 29761: { 29761: 29761: _M_construct(__beg, __end, std::__iterator_category(__beg)); 29761: 29761: 29761: 29761: 29761: } 29761: # 785 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template>> 29761: 29761: basic_string(const _Tp& __t, size_type __pos, size_type __n, 29761: const _Alloc& __a = _Alloc()) 29761: : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: 29761: explicit 29761: basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) 29761: : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~basic_string() 29761: { _M_dispose(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator=(const basic_string& __str) 29761: { 29761: return this->assign(__str); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator=(const _CharT* __s) 29761: { return this->assign(__s); } 29761: # 838 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: operator=(_CharT __c) 29761: { 29761: this->assign(1, __c); 29761: return *this; 29761: } 29761: # 856 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: operator=(basic_string&& __str) 29761: noexcept(_Alloc_traits::_S_nothrow_move()) 29761: { 29761: const bool __equal_allocs = _Alloc_traits::_S_always_equal() 29761: || _M_get_allocator() == __str._M_get_allocator(); 29761: if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() 29761: && !__equal_allocs) 29761: { 29761: 29761: _M_destroy(_M_allocated_capacity); 29761: _M_data(_M_local_data()); 29761: _M_set_length(0); 29761: } 29761: 29761: std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); 29761: 29761: if (__str._M_is_local()) 29761: { 29761: 29761: 29761: 29761: if (__builtin_expect(std::__addressof(__str) != this, true)) 29761: { 29761: if (__str.size()) 29761: this->_S_copy(_M_data(), __str._M_data(), __str.size()); 29761: _M_set_length(__str.size()); 29761: } 29761: } 29761: else if (_Alloc_traits::_S_propagate_on_move_assign() || __equal_allocs) 29761: { 29761: 29761: pointer __data = nullptr; 29761: size_type __capacity; 29761: if (!_M_is_local()) 29761: { 29761: if (__equal_allocs) 29761: { 29761: 29761: __data = _M_data(); 29761: __capacity = _M_allocated_capacity; 29761: } 29761: else 29761: _M_destroy(_M_allocated_capacity); 29761: } 29761: 29761: _M_data(__str._M_data()); 29761: _M_length(__str.length()); 29761: _M_capacity(__str._M_allocated_capacity); 29761: if (__data) 29761: { 29761: __str._M_data(__data); 29761: __str._M_capacity(__capacity); 29761: } 29761: else 29761: __str._M_data(__str._M_use_local_data()); 29761: } 29761: else 29761: _M_assign(__str); 29761: __str.clear(); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator=(initializer_list<_CharT> __l) 29761: { 29761: this->assign(__l.begin(), __l.size()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: operator=(const _Tp& __svt) 29761: { return this->assign(__svt); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: operator __sv_type() const noexcept 29761: { return __sv_type(data(), size()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: begin() noexcept 29761: { return iterator(_M_data()); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(_M_data()); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: end() noexcept 29761: { return iterator(_M_data() + this->size()); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: end() const noexcept 29761: { return const_iterator(_M_data() + this->size()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(this->end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(this->end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(this->begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(this->begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(this->_M_data()); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cend() const noexcept 29761: { return const_iterator(this->_M_data() + this->size()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(this->end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(this->begin()); } 29761: 29761: 29761: public: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: size() const noexcept 29761: { return _M_string_length; } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: length() const noexcept 29761: { return _M_string_length; } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: max_size() const noexcept 29761: { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } 29761: # 1102 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: void 29761: resize(size_type __n, _CharT __c); 29761: # 1116 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: void 29761: resize(size_type __n) 29761: { this->resize(__n, _CharT()); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: void 29761: shrink_to_fit() noexcept 29761: { reserve(); } 29761: #pragma GCC diagnostic pop 29761: # 1169 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: void 29761: __resize_and_overwrite(size_type __n, _Operation __op); 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: capacity() const noexcept 29761: { 29761: return _M_is_local() ? size_type(_S_local_capacity) 29761: : _M_allocated_capacity; 29761: } 29761: # 1203 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: void 29761: reserve(size_type __res_arg); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reserve(); 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_set_length(0); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: bool 29761: empty() const noexcept 29761: { return this->size() == 0; } 29761: # 1245 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: const_reference 29761: operator[] (size_type __pos) const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_data()[__pos]; 29761: } 29761: # 1263 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: operator[](size_type __pos) 29761: { 29761: 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: ; 29761: return _M_data()[__pos]; 29761: } 29761: # 1285 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: const_reference 29761: at(size_type __n) const 29761: { 29761: if (__n >= this->size()) 29761: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29761: 29761: , 29761: __n, this->size()); 29761: return _M_data()[__n]; 29761: } 29761: # 1307 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: at(size_type __n) 29761: { 29761: if (__n >= size()) 29761: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29761: 29761: , 29761: __n, this->size()); 29761: return _M_data()[__n]; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: front() noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return operator[](0); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: front() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return operator[](0); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: back() noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return operator[](this->size() - 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: back() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return operator[](this->size() - 1); 29761: } 29761: # 1375 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: operator+=(const basic_string& __str) 29761: { return this->append(__str); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator+=(const _CharT* __s) 29761: { return this->append(__s); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator+=(_CharT __c) 29761: { 29761: this->push_back(__c); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator+=(initializer_list<_CharT> __l) 29761: { return this->append(__l.begin(), __l.size()); } 29761: # 1421 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: operator+=(const _Tp& __svt) 29761: { return this->append(__svt); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: append(const basic_string& __str) 29761: { return this->append(__str._M_data(), __str.size()); } 29761: # 1451 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: append(const basic_string& __str, size_type __pos, size_type __n = npos) 29761: { return this->append(__str._M_data() 29761: + __str._M_check(__pos, "basic_string::append"), 29761: __str._M_limit(__pos, __n)); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: append(const _CharT* __s, size_type __n) 29761: { 29761: ; 29761: _M_check_length(size_type(0), __n, "basic_string::append"); 29761: return _M_append(__s, __n); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: append(const _CharT* __s) 29761: { 29761: ; 29761: const size_type __n = traits_type::length(__s); 29761: _M_check_length(size_type(0), __n, "basic_string::append"); 29761: return _M_append(__s, __n); 29761: } 29761: # 1496 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: append(size_type __n, _CharT __c) 29761: { return _M_replace_aux(this->size(), size_type(0), __n, __c); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: append(initializer_list<_CharT> __l) 29761: { return this->append(__l.begin(), __l.size()); } 29761: # 1522 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: 29761: 29761: 29761: basic_string& 29761: append(_InputIterator __first, _InputIterator __last) 29761: { return this->replace(end(), end(), __first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: append(const _Tp& __svt) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->append(__sv.data(), __sv.size()); 29761: } 29761: # 1554 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: append(const _Tp& __svt, size_type __pos, size_type __n = npos) 29761: { 29761: __sv_type __sv = __svt; 29761: return _M_append(__sv.data() 29761: + std::__sv_check(__sv.size(), __pos, "basic_string::append"), 29761: std::__sv_limit(__sv.size(), __pos, __n)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: push_back(_CharT __c) 29761: { 29761: const size_type __size = this->size(); 29761: if (__size + 1 > this->capacity()) 29761: this->_M_mutate(__size, size_type(0), 0, size_type(1)); 29761: traits_type::assign(this->_M_data()[__size], __c); 29761: this->_M_set_length(__size + 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: assign(const basic_string& __str) 29761: { 29761: 29761: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: if (!_Alloc_traits::_S_always_equal() && !_M_is_local() 29761: && _M_get_allocator() != __str._M_get_allocator()) 29761: { 29761: 29761: 29761: if (__str.size() <= _S_local_capacity) 29761: { 29761: _M_destroy(_M_allocated_capacity); 29761: _M_data(_M_use_local_data()); 29761: _M_set_length(0); 29761: } 29761: else 29761: { 29761: const auto __len = __str.size(); 29761: auto __alloc = __str._M_get_allocator(); 29761: 29761: auto __ptr = _S_allocate(__alloc, __len + 1); 29761: _M_destroy(_M_allocated_capacity); 29761: _M_data(__ptr); 29761: _M_capacity(__len); 29761: _M_set_length(__len); 29761: } 29761: } 29761: std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); 29761: } 29761: 29761: this->_M_assign(__str); 29761: return *this; 29761: } 29761: # 1632 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(basic_string&& __str) 29761: noexcept(_Alloc_traits::_S_nothrow_move()) 29761: { 29761: 29761: 29761: return *this = std::move(__str); 29761: } 29761: # 1656 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(const basic_string& __str, size_type __pos, size_type __n = npos) 29761: { return _M_replace(size_type(0), this->size(), __str._M_data() 29761: + __str._M_check(__pos, "basic_string::assign"), 29761: __str._M_limit(__pos, __n)); } 29761: # 1673 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(const _CharT* __s, size_type __n) 29761: { 29761: ; 29761: return _M_replace(size_type(0), this->size(), __s, __n); 29761: } 29761: # 1690 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(const _CharT* __s) 29761: { 29761: ; 29761: return _M_replace(size_type(0), this->size(), __s, 29761: traits_type::length(__s)); 29761: } 29761: # 1708 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(size_type __n, _CharT __c) 29761: { return _M_replace_aux(size_type(0), this->size(), __n, __c); } 29761: # 1722 "/usr/include/c++/14/bits/basic_string.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: template> 29761: 29761: basic_string& 29761: assign(_InputIterator __first, _InputIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: if constexpr (__is_one_of<_InputIterator, const_iterator, iterator, 29761: const _CharT*, _CharT*>::value) 29761: 29761: { 29761: ; 29761: return _M_replace(size_type(0), size(), 29761: std::__to_address(__first), __last - __first); 29761: } 29761: else 29761: return *this = basic_string(__first, __last, get_allocator()); 29761: } 29761: #pragma GCC diagnostic pop 29761: # 1759 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(initializer_list<_CharT> __l) 29761: { 29761: 29761: 29761: const size_type __n = __l.size(); 29761: if (__n > capacity()) 29761: *this = basic_string(__l.begin(), __l.end(), get_allocator()); 29761: else 29761: { 29761: if (__n) 29761: _S_copy(_M_data(), __l.begin(), __n); 29761: _M_set_length(__n); 29761: } 29761: return *this; 29761: } 29761: # 1784 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: assign(const _Tp& __svt) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->assign(__sv.data(), __sv.size()); 29761: } 29761: # 1800 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: assign(const _Tp& __svt, size_type __pos, size_type __n = npos) 29761: { 29761: __sv_type __sv = __svt; 29761: return _M_replace(size_type(0), this->size(), 29761: __sv.data() 29761: + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), 29761: std::__sv_limit(__sv.size(), __pos, __n)); 29761: } 29761: # 1829 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: iterator 29761: insert(const_iterator __p, size_type __n, _CharT __c) 29761: { 29761: ; 29761: const size_type __pos = __p - begin(); 29761: this->replace(__p, __p, __n, __c); 29761: return iterator(this->_M_data() + __pos); 29761: } 29761: # 1872 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: iterator 29761: insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) 29761: { 29761: ; 29761: const size_type __pos = __p - begin(); 29761: this->replace(__p, __p, __beg, __end); 29761: return iterator(this->_M_data() + __pos); 29761: } 29761: # 1909 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: iterator 29761: insert(const_iterator __p, initializer_list<_CharT> __l) 29761: { return this->insert(__p, __l.begin(), __l.end()); } 29761: # 1937 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: insert(size_type __pos1, const basic_string& __str) 29761: { return this->replace(__pos1, size_type(0), 29761: __str._M_data(), __str.size()); } 29761: # 1961 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: insert(size_type __pos1, const basic_string& __str, 29761: size_type __pos2, size_type __n = npos) 29761: { return this->replace(__pos1, size_type(0), __str._M_data() 29761: + __str._M_check(__pos2, "basic_string::insert"), 29761: __str._M_limit(__pos2, __n)); } 29761: # 1985 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: insert(size_type __pos, const _CharT* __s, size_type __n) 29761: { return this->replace(__pos, size_type(0), __s, __n); } 29761: # 2005 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: insert(size_type __pos, const _CharT* __s) 29761: { 29761: ; 29761: return this->replace(__pos, size_type(0), __s, 29761: traits_type::length(__s)); 29761: } 29761: # 2030 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: insert(size_type __pos, size_type __n, _CharT __c) 29761: { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), 29761: size_type(0), __n, __c); } 29761: # 2049 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: iterator 29761: insert(__const_iterator __p, _CharT __c) 29761: { 29761: ; 29761: const size_type __pos = __p - begin(); 29761: _M_replace_aux(__pos, size_type(0), size_type(1), __c); 29761: return iterator(_M_data() + __pos); 29761: } 29761: # 2066 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: insert(size_type __pos, const _Tp& __svt) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->insert(__pos, __sv.data(), __sv.size()); 29761: } 29761: # 2083 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: insert(size_type __pos1, const _Tp& __svt, 29761: size_type __pos2, size_type __n = npos) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->replace(__pos1, size_type(0), 29761: __sv.data() 29761: + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), 29761: std::__sv_limit(__sv.size(), __pos2, __n)); 29761: } 29761: # 2112 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: erase(size_type __pos = 0, size_type __n = npos) 29761: { 29761: _M_check(__pos, "basic_string::erase"); 29761: if (__n == npos) 29761: this->_M_set_length(__pos); 29761: else if (__n != 0) 29761: this->_M_erase(__pos, _M_limit(__pos, __n)); 29761: return *this; 29761: } 29761: # 2132 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: iterator 29761: erase(__const_iterator __position) 29761: { 29761: 29761: ; 29761: const size_type __pos = __position - begin(); 29761: this->_M_erase(__pos, size_type(1)); 29761: return iterator(_M_data() + __pos); 29761: } 29761: # 2152 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: iterator 29761: erase(__const_iterator __first, __const_iterator __last) 29761: { 29761: 29761: ; 29761: const size_type __pos = __first - begin(); 29761: if (__last == end()) 29761: this->_M_set_length(__pos); 29761: else 29761: this->_M_erase(__pos, __last - __first); 29761: return iterator(this->_M_data() + __pos); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: pop_back() noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29761: _M_erase(size() - 1, 1); 29761: } 29761: # 2198 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(size_type __pos, size_type __n, const basic_string& __str) 29761: { return this->replace(__pos, __n, __str._M_data(), __str.size()); } 29761: # 2221 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(size_type __pos1, size_type __n1, const basic_string& __str, 29761: size_type __pos2, size_type __n2 = npos) 29761: { return this->replace(__pos1, __n1, __str._M_data() 29761: + __str._M_check(__pos2, "basic_string::replace"), 29761: __str._M_limit(__pos2, __n2)); } 29761: # 2247 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(size_type __pos, size_type __n1, const _CharT* __s, 29761: size_type __n2) 29761: { 29761: ; 29761: return _M_replace(_M_check(__pos, "basic_string::replace"), 29761: _M_limit(__pos, __n1), __s, __n2); 29761: } 29761: # 2273 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(size_type __pos, size_type __n1, const _CharT* __s) 29761: { 29761: ; 29761: return this->replace(__pos, __n1, __s, traits_type::length(__s)); 29761: } 29761: # 2298 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) 29761: { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), 29761: _M_limit(__pos, __n1), __n2, __c); } 29761: # 2317 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: const basic_string& __str) 29761: { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } 29761: # 2338 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: const _CharT* __s, size_type __n) 29761: { 29761: 29761: ; 29761: return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); 29761: } 29761: # 2361 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) 29761: { 29761: ; 29761: return this->replace(__i1, __i2, __s, traits_type::length(__s)); 29761: } 29761: # 2383 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, size_type __n, 29761: _CharT __c) 29761: { 29761: 29761: ; 29761: return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); 29761: } 29761: # 2409 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: basic_string& 29761: replace(const_iterator __i1, const_iterator __i2, 29761: _InputIterator __k1, _InputIterator __k2) 29761: { 29761: 29761: ; 29761: ; 29761: return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, 29761: std::__false_type()); 29761: } 29761: # 2442 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: _CharT* __k1, _CharT* __k2) 29761: { 29761: 29761: ; 29761: ; 29761: return this->replace(__i1 - begin(), __i2 - __i1, 29761: __k1, __k2 - __k1); 29761: } 29761: 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: const _CharT* __k1, const _CharT* __k2) 29761: { 29761: 29761: ; 29761: ; 29761: return this->replace(__i1 - begin(), __i2 - __i1, 29761: __k1, __k2 - __k1); 29761: } 29761: 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: iterator __k1, iterator __k2) 29761: { 29761: 29761: ; 29761: ; 29761: return this->replace(__i1 - begin(), __i2 - __i1, 29761: __k1.base(), __k2 - __k1); 29761: } 29761: 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: const_iterator __k1, const_iterator __k2) 29761: { 29761: 29761: ; 29761: ; 29761: return this->replace(__i1 - begin(), __i2 - __i1, 29761: __k1.base(), __k2 - __k1); 29761: } 29761: # 2505 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& replace(const_iterator __i1, const_iterator __i2, 29761: initializer_list<_CharT> __l) 29761: { return this->replace(__i1, __i2, __l.begin(), __l.size()); } 29761: # 2519 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: replace(size_type __pos, size_type __n, const _Tp& __svt) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->replace(__pos, __n, __sv.data(), __sv.size()); 29761: } 29761: # 2537 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: replace(size_type __pos1, size_type __n1, const _Tp& __svt, 29761: size_type __pos2, size_type __n2 = npos) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->replace(__pos1, __n1, 29761: __sv.data() 29761: + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), 29761: std::__sv_limit(__sv.size(), __pos2, __n2)); 29761: } 29761: # 2559 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->replace(__i1 - begin(), __i2 - __i1, __sv); 29761: } 29761: 29761: 29761: private: 29761: template 29761: 29761: basic_string& 29761: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29761: _Integer __n, _Integer __val, __true_type) 29761: { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } 29761: 29761: template 29761: 29761: basic_string& 29761: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29761: _InputIterator __k1, _InputIterator __k2, 29761: __false_type); 29761: 29761: 29761: basic_string& 29761: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 29761: _CharT __c); 29761: 29761: __attribute__((__noinline__, __noclone__, __cold__)) void 29761: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 29761: const size_type __len2, const size_type __how_much); 29761: 29761: 29761: basic_string& 29761: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 29761: const size_type __len2); 29761: 29761: 29761: basic_string& 29761: _M_append(const _CharT* __s, size_type __n); 29761: 29761: public: 29761: # 2616 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: size_type 29761: copy(_CharT* __s, size_type __n, size_type __pos = 0) const; 29761: # 2627 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: void 29761: swap(basic_string& __s) noexcept; 29761: # 2638 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: const _CharT* 29761: c_str() const noexcept 29761: { return _M_data(); } 29761: # 2651 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: const _CharT* 29761: data() const noexcept 29761: { return _M_data(); } 29761: # 2663 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: _CharT* 29761: data() noexcept 29761: { return _M_data(); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _M_get_allocator(); } 29761: # 2689 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept; 29761: # 2704 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find(const basic_string& __str, size_type __pos = 0) const 29761: noexcept 29761: { return this->find(__str.data(), __pos, __str.size()); } 29761: # 2717 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: find(const _Tp& __svt, size_type __pos = 0) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->find(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 2738 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find(const _CharT* __s, size_type __pos = 0) const noexcept 29761: { 29761: ; 29761: return this->find(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 2756 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find(_CharT __c, size_type __pos = 0) const noexcept; 29761: # 2770 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: rfind(const basic_string& __str, size_type __pos = npos) const 29761: noexcept 29761: { return this->rfind(__str.data(), __pos, __str.size()); } 29761: # 2783 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: rfind(const _Tp& __svt, size_type __pos = npos) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->rfind(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 2806 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: rfind(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept; 29761: # 2821 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: rfind(const _CharT* __s, size_type __pos = npos) const 29761: { 29761: ; 29761: return this->rfind(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 2839 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: rfind(_CharT __c, size_type __pos = npos) const noexcept; 29761: # 2854 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_of(const basic_string& __str, size_type __pos = 0) const 29761: noexcept 29761: { return this->find_first_of(__str.data(), __pos, __str.size()); } 29761: # 2868 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: find_first_of(const _Tp& __svt, size_type __pos = 0) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->find_first_of(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 2891 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept; 29761: # 2906 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_of(const _CharT* __s, size_type __pos = 0) const 29761: noexcept 29761: { 29761: ; 29761: return this->find_first_of(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 2927 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 29761: { return this->find(__c, __pos); } 29761: # 2943 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_of(const basic_string& __str, size_type __pos = npos) const 29761: noexcept 29761: { return this->find_last_of(__str.data(), __pos, __str.size()); } 29761: # 2957 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: find_last_of(const _Tp& __svt, size_type __pos = npos) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->find_last_of(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 2980 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept; 29761: # 2995 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_of(const _CharT* __s, size_type __pos = npos) const 29761: noexcept 29761: { 29761: ; 29761: return this->find_last_of(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 3016 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_of(_CharT __c, size_type __pos = npos) const noexcept 29761: { return this->rfind(__c, __pos); } 29761: # 3031 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_not_of(const basic_string& __str, size_type __pos = 0) const 29761: noexcept 29761: { return this->find_first_not_of(__str.data(), __pos, __str.size()); } 29761: # 3045 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: find_first_not_of(const _Tp& __svt, size_type __pos = 0) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->find_first_not_of(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 3068 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_not_of(const _CharT* __s, size_type __pos, 29761: size_type __n) const noexcept; 29761: # 3083 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_not_of(const _CharT* __s, size_type __pos = 0) const 29761: noexcept 29761: { 29761: ; 29761: return this->find_first_not_of(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 3102 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_not_of(_CharT __c, size_type __pos = 0) const 29761: noexcept; 29761: # 3118 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_not_of(const basic_string& __str, size_type __pos = npos) const 29761: noexcept 29761: { return this->find_last_not_of(__str.data(), __pos, __str.size()); } 29761: # 3132 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: find_last_not_of(const _Tp& __svt, size_type __pos = npos) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->find_last_not_of(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 3155 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_not_of(const _CharT* __s, size_type __pos, 29761: size_type __n) const noexcept; 29761: # 3170 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_not_of(const _CharT* __s, size_type __pos = npos) const 29761: noexcept 29761: { 29761: ; 29761: return this->find_last_not_of(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 3189 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_not_of(_CharT __c, size_type __pos = npos) const 29761: noexcept; 29761: # 3206 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: basic_string 29761: substr(size_type __pos = 0, size_type __n = npos) const 29761: { return basic_string(*this, 29761: _M_check(__pos, "basic_string::substr"), __n); } 29761: # 3226 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(const basic_string& __str) const 29761: { 29761: const size_type __size = this->size(); 29761: const size_type __osize = __str.size(); 29761: const size_type __len = std::min(__size, __osize); 29761: 29761: int __r = traits_type::compare(_M_data(), __str.data(), __len); 29761: if (!__r) 29761: __r = _S_compare(__size, __osize); 29761: return __r; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, int> 29761: compare(const _Tp& __svt) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: const size_type __size = this->size(); 29761: const size_type __osize = __sv.size(); 29761: const size_type __len = std::min(__size, __osize); 29761: 29761: int __r = traits_type::compare(_M_data(), __sv.data(), __len); 29761: if (!__r) 29761: __r = _S_compare(__size, __osize); 29761: return __r; 29761: } 29761: # 3271 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, int> 29761: compare(size_type __pos, size_type __n, const _Tp& __svt) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return __sv_type(*this).substr(__pos, __n).compare(__sv); 29761: } 29761: # 3291 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, int> 29761: compare(size_type __pos1, size_type __n1, const _Tp& __svt, 29761: size_type __pos2, size_type __n2 = npos) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return __sv_type(*this) 29761: .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); 29761: } 29761: # 3323 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(size_type __pos, size_type __n, const basic_string& __str) const 29761: { 29761: _M_check(__pos, "basic_string::compare"); 29761: __n = _M_limit(__pos, __n); 29761: const size_type __osize = __str.size(); 29761: const size_type __len = std::min(__n, __osize); 29761: int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); 29761: if (!__r) 29761: __r = _S_compare(__n, __osize); 29761: return __r; 29761: } 29761: # 3360 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(size_type __pos1, size_type __n1, const basic_string& __str, 29761: size_type __pos2, size_type __n2 = npos) const 29761: { 29761: _M_check(__pos1, "basic_string::compare"); 29761: __str._M_check(__pos2, "basic_string::compare"); 29761: __n1 = _M_limit(__pos1, __n1); 29761: __n2 = __str._M_limit(__pos2, __n2); 29761: const size_type __len = std::min(__n1, __n2); 29761: int __r = traits_type::compare(_M_data() + __pos1, 29761: __str.data() + __pos2, __len); 29761: if (!__r) 29761: __r = _S_compare(__n1, __n2); 29761: return __r; 29761: } 29761: # 3391 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(const _CharT* __s) const noexcept 29761: { 29761: ; 29761: const size_type __size = this->size(); 29761: const size_type __osize = traits_type::length(__s); 29761: const size_type __len = std::min(__size, __osize); 29761: int __r = traits_type::compare(_M_data(), __s, __len); 29761: if (!__r) 29761: __r = _S_compare(__size, __osize); 29761: return __r; 29761: } 29761: # 3426 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(size_type __pos, size_type __n1, const _CharT* __s) const 29761: { 29761: ; 29761: _M_check(__pos, "basic_string::compare"); 29761: __n1 = _M_limit(__pos, __n1); 29761: const size_type __osize = traits_type::length(__s); 29761: const size_type __len = std::min(__n1, __osize); 29761: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 29761: if (!__r) 29761: __r = _S_compare(__n1, __osize); 29761: return __r; 29761: } 29761: # 3465 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(size_type __pos, size_type __n1, const _CharT* __s, 29761: size_type __n2) const 29761: { 29761: ; 29761: _M_check(__pos, "basic_string::compare"); 29761: __n1 = _M_limit(__pos, __n1); 29761: const size_type __len = std::min(__n1, __n2); 29761: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 29761: if (!__r) 29761: __r = _S_compare(__n1, __n2); 29761: return __r; 29761: } 29761: # 3530 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template friend class basic_stringbuf; 29761: }; 29761: } 29761: 29761: } 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: namespace __cxx11 { 29761: template::value_type, 29761: typename _Allocator = allocator<_CharT>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireAllocator<_Allocator>> 29761: basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29761: -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; 29761: 29761: 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) 29761: -> basic_string<_CharT, _Traits, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: basic_string(basic_string_view<_CharT, _Traits>, 29761: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 29761: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 29761: const _Allocator& = _Allocator()) 29761: -> basic_string<_CharT, _Traits, _Allocator>; 29761: } 29761: 29761: 29761: template 29761: 29761: inline _Str 29761: __str_concat(typename _Str::value_type const* __lhs, 29761: typename _Str::size_type __lhs_len, 29761: typename _Str::value_type const* __rhs, 29761: typename _Str::size_type __rhs_len, 29761: typename _Str::allocator_type const& __a) 29761: { 29761: typedef typename _Str::allocator_type allocator_type; 29761: typedef __gnu_cxx::__alloc_traits _Alloc_traits; 29761: _Str __str(_Alloc_traits::_S_select_on_copy(__a)); 29761: __str.reserve(__lhs_len + __rhs_len); 29761: __str.append(__lhs, __lhs_len); 29761: __str.append(__rhs, __rhs_len); 29761: return __str; 29761: } 29761: # 3595 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { 29761: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29761: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29761: __rhs.c_str(), __rhs.size(), 29761: __lhs.get_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT,_Traits,_Alloc> 29761: operator+(const _CharT* __lhs, 29761: const basic_string<_CharT,_Traits,_Alloc>& __rhs) 29761: { 29761: ; 29761: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29761: return std::__str_concat<_Str>(__lhs, _Traits::length(__lhs), 29761: __rhs.c_str(), __rhs.size(), 29761: __rhs.get_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT,_Traits,_Alloc> 29761: operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) 29761: { 29761: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29761: return std::__str_concat<_Str>(__builtin_addressof(__lhs), 1, 29761: __rhs.c_str(), __rhs.size(), 29761: __rhs.get_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { 29761: ; 29761: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29761: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29761: __rhs, _Traits::length(__rhs), 29761: __lhs.get_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) 29761: { 29761: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29761: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29761: __builtin_addressof(__rhs), 1, 29761: __lhs.get_allocator()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return std::move(__lhs.append(__rhs)); } 29761: 29761: template 29761: 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29761: { return std::move(__rhs.insert(0, __lhs)); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29761: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29761: { 29761: 29761: using _Alloc_traits = allocator_traits<_Alloc>; 29761: bool __use_rhs = false; 29761: if constexpr (typename _Alloc_traits::is_always_equal{}) 29761: __use_rhs = true; 29761: else if (__lhs.get_allocator() == __rhs.get_allocator()) 29761: __use_rhs = true; 29761: if (__use_rhs) 29761: 29761: { 29761: const auto __size = __lhs.size() + __rhs.size(); 29761: if (__size > __lhs.capacity() && __size <= __rhs.capacity()) 29761: return std::move(__rhs.insert(0, __lhs)); 29761: } 29761: return std::move(__lhs.append(__rhs)); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(const _CharT* __lhs, 29761: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29761: { return std::move(__rhs.insert(0, __lhs)); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(_CharT __lhs, 29761: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29761: { return std::move(__rhs.insert(0, 1, __lhs)); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29761: const _CharT* __rhs) 29761: { return std::move(__lhs.append(__rhs)); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29761: _CharT __rhs) 29761: { return std::move(__lhs.append(1, __rhs)); } 29761: # 3752 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { 29761: return __lhs.size() == __rhs.size() 29761: && !_Traits::compare(__lhs.data(), __rhs.data(), __lhs.size()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { 29761: return __lhs.size() == _Traits::length(__rhs) 29761: && !_Traits::compare(__lhs.data(), __rhs, __lhs.size()); 29761: } 29761: # 3816 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return __rhs == __lhs; } 29761: # 3830 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return !(__rhs == __lhs); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 3871 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { return __lhs.compare(__rhs) < 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { return __lhs.compare(__rhs) < 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return __rhs.compare(__lhs) > 0; } 29761: # 3912 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { return __lhs.compare(__rhs) > 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { return __lhs.compare(__rhs) > 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return __rhs.compare(__lhs) < 0; } 29761: # 3953 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { return __lhs.compare(__rhs) <= 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { return __lhs.compare(__rhs) <= 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return __rhs.compare(__lhs) >= 0; } 29761: # 3994 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { return __lhs.compare(__rhs) >= 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { return __lhs.compare(__rhs) >= 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return __rhs.compare(__lhs) <= 0; } 29761: # 4036 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: inline void 29761: swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept(noexcept(__lhs.swap(__rhs))) 29761: { __lhs.swap(__rhs); } 29761: # 4057 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: operator>>(basic_istream<_CharT, _Traits>& __is, 29761: basic_string<_CharT, _Traits, _Alloc>& __str); 29761: 29761: template<> 29761: basic_istream& 29761: operator>>(basic_istream& __is, basic_string& __str); 29761: # 4075 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __os, 29761: const basic_string<_CharT, _Traits, _Alloc>& __str) 29761: { 29761: 29761: 29761: return __ostream_insert(__os, __str.data(), __str.size()); 29761: } 29761: # 4098 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: getline(basic_istream<_CharT, _Traits>& __is, 29761: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); 29761: # 4115 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: inline basic_istream<_CharT, _Traits>& 29761: getline(basic_istream<_CharT, _Traits>& __is, 29761: basic_string<_CharT, _Traits, _Alloc>& __str) 29761: { return std::getline(__is, __str, __is.widen('\n')); } 29761: 29761: 29761: 29761: template 29761: inline basic_istream<_CharT, _Traits>& 29761: getline(basic_istream<_CharT, _Traits>&& __is, 29761: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 29761: { return std::getline(__is, __str, __delim); } 29761: 29761: 29761: template 29761: inline basic_istream<_CharT, _Traits>& 29761: getline(basic_istream<_CharT, _Traits>&& __is, 29761: basic_string<_CharT, _Traits, _Alloc>& __str) 29761: { return std::getline(__is, __str); } 29761: 29761: 29761: template<> 29761: basic_istream& 29761: getline(basic_istream& __in, basic_string& __str, 29761: char __delim); 29761: 29761: 29761: template<> 29761: basic_istream& 29761: getline(basic_istream& __in, basic_string& __str, 29761: wchar_t __delim); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ext/string_conversions.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/string_conversions.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/string_conversions.h" 3 29761: # 43 "/usr/include/c++/14/ext/string_conversions.h" 3 29761: # 1 "/usr/include/c++/14/cstdlib" 1 3 29761: # 39 "/usr/include/c++/14/cstdlib" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdlib" 3 29761: # 79 "/usr/include/c++/14/cstdlib" 3 29761: # 1 "/usr/include/stdlib.h" 1 3 4 29761: # 26 "/usr/include/stdlib.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 27 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 33 "/usr/include/stdlib.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitflags.h" 1 3 4 29761: # 41 "/usr/include/stdlib.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 1 3 4 29761: # 42 "/usr/include/stdlib.h" 2 3 4 29761: # 56 "/usr/include/stdlib.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29761: # 57 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: typedef struct 29761: { 29761: int quot; 29761: int rem; 29761: } div_t; 29761: 29761: 29761: 29761: typedef struct 29761: { 29761: long int quot; 29761: long int rem; 29761: } ldiv_t; 29761: 29761: 29761: 29761: 29761: 29761: __extension__ typedef struct 29761: { 29761: long long int quot; 29761: long long int rem; 29761: } lldiv_t; 29761: # 98 "/usr/include/stdlib.h" 3 4 29761: extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern double atof (const char *__nptr) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: extern int atoi (const char *__nptr) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: extern long int atol (const char *__nptr) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: __extension__ extern long long int atoll (const char *__nptr) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern double strtod (const char *__restrict __nptr, 29761: char **__restrict __endptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern float strtof (const char *__restrict __nptr, 29761: char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: extern long double strtold (const char *__restrict __nptr, 29761: char **__restrict __endptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 141 "/usr/include/stdlib.h" 3 4 29761: extern _Float32 strtof32 (const char *__restrict __nptr, 29761: char **__restrict __endptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern _Float64 strtof64 (const char *__restrict __nptr, 29761: char **__restrict __endptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 159 "/usr/include/stdlib.h" 3 4 29761: extern _Float32x strtof32x (const char *__restrict __nptr, 29761: char **__restrict __endptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 177 "/usr/include/stdlib.h" 3 4 29761: extern long int strtol (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: extern unsigned long int strtoul (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: __extension__ 29761: extern long long int strtoq (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: __extension__ 29761: extern unsigned long long int strtouq (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: __extension__ 29761: extern long long int strtoll (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: __extension__ 29761: extern unsigned long long int strtoull (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int strtol (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtol") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: extern unsigned long int strtoul (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoul") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: __extension__ 29761: extern long long int strtoq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: __extension__ 29761: extern unsigned long long int strtouq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: __extension__ 29761: extern long long int strtoll (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: __extension__ 29761: extern unsigned long long int strtoull (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: # 278 "/usr/include/stdlib.h" 3 4 29761: extern int strfromd (char *__dest, size_t __size, const char *__format, 29761: double __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: 29761: extern int strfromf (char *__dest, size_t __size, const char *__format, 29761: float __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: 29761: extern int strfroml (char *__dest, size_t __size, const char *__format, 29761: long double __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: # 298 "/usr/include/stdlib.h" 3 4 29761: extern int strfromf32 (char *__dest, size_t __size, const char * __format, 29761: _Float32 __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: 29761: extern int strfromf64 (char *__dest, size_t __size, const char * __format, 29761: _Float64 __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: # 316 "/usr/include/stdlib.h" 3 4 29761: extern int strfromf32x (char *__dest, size_t __size, const char * __format, 29761: _Float32x __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: # 340 "/usr/include/stdlib.h" 3 4 29761: extern long int strtol_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base, 29761: locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: extern unsigned long int strtoul_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: int __base, locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: __extension__ 29761: extern long long int strtoll_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base, 29761: locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: __extension__ 29761: extern unsigned long long int strtoull_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: int __base, locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: 29761: 29761: 29761: 29761: extern long int strtol_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtol_l") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 4))); 29761: extern unsigned long int strtoul_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoul_l") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 4))); 29761: __extension__ 29761: extern long long int strtoll_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoll_l") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 4))); 29761: __extension__ 29761: 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") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 4))); 29761: # 415 "/usr/include/stdlib.h" 3 4 29761: extern double strtod_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: extern float strtof_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: extern long double strtold_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: # 436 "/usr/include/stdlib.h" 3 4 29761: extern _Float32 strtof32_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: extern _Float64 strtof64_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: # 457 "/usr/include/stdlib.h" 3 4 29761: extern _Float32x strtof32x_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: # 480 "/usr/include/stdlib.h" 3 4 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: __attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) 29761: { 29761: return (int) strtol (__nptr, (char **) __null, 10); 29761: } 29761: extern __inline __attribute__ ((__gnu_inline__)) long int 29761: __attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) 29761: { 29761: return strtol (__nptr, (char **) __null, 10); 29761: } 29761: 29761: 29761: __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int 29761: __attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) 29761: { 29761: return strtoll (__nptr, (char **) __null, 10); 29761: } 29761: # 505 "/usr/include/stdlib.h" 3 4 29761: extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern long int a64l (const char *__s) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/types.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: typedef __u_char u_char; 29761: typedef __u_short u_short; 29761: typedef __u_int u_int; 29761: typedef __u_long u_long; 29761: typedef __quad_t quad_t; 29761: typedef __u_quad_t u_quad_t; 29761: typedef __fsid_t fsid_t; 29761: 29761: 29761: typedef __loff_t loff_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __ino64_t ino_t; 29761: 29761: 29761: 29761: 29761: typedef __ino64_t ino64_t; 29761: 29761: 29761: 29761: 29761: typedef __dev_t dev_t; 29761: 29761: 29761: 29761: 29761: typedef __gid_t gid_t; 29761: 29761: 29761: 29761: 29761: typedef __mode_t mode_t; 29761: 29761: 29761: 29761: 29761: typedef __nlink_t nlink_t; 29761: 29761: 29761: 29761: 29761: typedef __uid_t uid_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __off64_t off_t; 29761: 29761: 29761: 29761: 29761: typedef __off64_t off64_t; 29761: # 103 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: typedef __id_t id_t; 29761: 29761: 29761: 29761: 29761: typedef __ssize_t ssize_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef __daddr_t daddr_t; 29761: typedef __caddr_t caddr_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef __key_t key_t; 29761: # 134 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: typedef __useconds_t useconds_t; 29761: 29761: 29761: 29761: typedef __suseconds_t suseconds_t; 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 145 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29761: 29761: 29761: 29761: typedef unsigned long int ulong; 29761: typedef unsigned short int ushort; 29761: typedef unsigned int uint; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __uint8_t u_int8_t; 29761: typedef __uint16_t u_int16_t; 29761: typedef __uint32_t u_int32_t; 29761: typedef __uint64_t u_int64_t; 29761: 29761: 29761: typedef int register_t __attribute__ ((__mode__ (__word__))); 29761: # 176 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: # 1 "/usr/include/endian.h" 1 3 4 29761: # 35 "/usr/include/endian.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 1 3 4 29761: # 33 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 29761: static __inline __uint16_t 29761: __bswap_16 (__uint16_t __bsx) 29761: { 29761: 29761: return __builtin_bswap16 (__bsx); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: static __inline __uint32_t 29761: __bswap_32 (__uint32_t __bsx) 29761: { 29761: 29761: return __builtin_bswap32 (__bsx); 29761: 29761: 29761: 29761: } 29761: # 69 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 29761: __extension__ static __inline __uint64_t 29761: __bswap_64 (__uint64_t __bsx) 29761: { 29761: 29761: return __builtin_bswap64 (__bsx); 29761: 29761: 29761: 29761: } 29761: # 36 "/usr/include/endian.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 1 3 4 29761: # 32 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 3 4 29761: static __inline __uint16_t 29761: __uint16_identity (__uint16_t __x) 29761: { 29761: return __x; 29761: } 29761: 29761: static __inline __uint32_t 29761: __uint32_identity (__uint32_t __x) 29761: { 29761: return __x; 29761: } 29761: 29761: static __inline __uint64_t 29761: __uint64_identity (__uint64_t __x) 29761: { 29761: return __x; 29761: } 29761: # 37 "/usr/include/endian.h" 2 3 4 29761: # 177 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/select.h" 1 3 4 29761: # 30 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/select.h" 1 3 4 29761: # 31 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __sigset_t sigset_t; 29761: # 34 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29761: # 49 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: typedef long int __fd_mask; 29761: # 59 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: typedef struct 29761: { 29761: 29761: 29761: 29761: __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 29761: 29761: 29761: 29761: 29761: 29761: } fd_set; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __fd_mask fd_mask; 29761: # 91 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: extern "C" { 29761: # 108 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout) __asm__ ("" "__select64") 29761: 29761: 29761: 29761: 29761: ; 29761: # 134 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: 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) __asm__ ("" "__pselect64") 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: # 150 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 3 4 29761: extern long int __fdelt_chk (long int __d); 29761: extern long int __fdelt_warn (long int __d) 29761: __attribute__((__warning__ ("bit outside of fd_set selected"))); 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 2 3 4 29761: # 151 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29761: 29761: 29761: } 29761: # 180 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: typedef __blksize_t blksize_t; 29761: # 205 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: typedef __blkcnt64_t blkcnt_t; 29761: 29761: 29761: 29761: typedef __fsblkcnt64_t fsblkcnt_t; 29761: 29761: 29761: 29761: typedef __fsfilcnt64_t fsfilcnt_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef __blkcnt64_t blkcnt64_t; 29761: typedef __fsblkcnt64_t fsblkcnt64_t; 29761: typedef __fsfilcnt64_t fsfilcnt64_t; 29761: # 230 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: } 29761: # 515 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int random (void) noexcept (true); 29761: 29761: 29761: extern void srandom (unsigned int __seed) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern char *initstate (unsigned int __seed, char *__statebuf, 29761: size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct random_data 29761: { 29761: int32_t *fptr; 29761: int32_t *rptr; 29761: int32_t *state; 29761: int rand_type; 29761: int rand_deg; 29761: int rand_sep; 29761: int32_t *end_ptr; 29761: }; 29761: 29761: extern int random_r (struct random_data *__restrict __buf, 29761: int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern int srandom_r (unsigned int __seed, struct random_data *__buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, 29761: size_t __statelen, 29761: struct random_data *__restrict __buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 4))); 29761: 29761: extern int setstate_r (char *__restrict __statebuf, 29761: struct random_data *__restrict __buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int rand (void) noexcept (true); 29761: 29761: extern void srand (unsigned int __seed) noexcept (true); 29761: 29761: 29761: 29761: extern int rand_r (unsigned int *__seed) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double drand48 (void) noexcept (true); 29761: extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern long int lrand48 (void) noexcept (true); 29761: extern long int nrand48 (unsigned short int __xsubi[3]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern long int mrand48 (void) noexcept (true); 29761: extern long int jrand48 (unsigned short int __xsubi[3]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern void srand48 (long int __seedval) noexcept (true); 29761: extern unsigned short int *seed48 (unsigned short int __seed16v[3]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: struct drand48_data 29761: { 29761: unsigned short int __x[3]; 29761: unsigned short int __old_x[3]; 29761: unsigned short int __c; 29761: unsigned short int __init; 29761: __extension__ unsigned long long int __a; 29761: 29761: }; 29761: 29761: 29761: extern int drand48_r (struct drand48_data *__restrict __buffer, 29761: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern int erand48_r (unsigned short int __xsubi[3], 29761: struct drand48_data *__restrict __buffer, 29761: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int lrand48_r (struct drand48_data *__restrict __buffer, 29761: long int *__restrict __result) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern int nrand48_r (unsigned short int __xsubi[3], 29761: struct drand48_data *__restrict __buffer, 29761: long int *__restrict __result) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int mrand48_r (struct drand48_data *__restrict __buffer, 29761: long int *__restrict __result) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern int jrand48_r (unsigned short int __xsubi[3], 29761: struct drand48_data *__restrict __buffer, 29761: long int *__restrict __result) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int srand48_r (long int __seedval, struct drand48_data *__buffer) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: extern int seed48_r (unsigned short int __seed16v[3], 29761: struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern int lcong48_r (unsigned short int __param[7], 29761: struct drand48_data *__buffer) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern __uint32_t arc4random (void) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern void arc4random_buf (void *__buf, size_t __size) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29761: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: extern void *calloc (size_t __nmemb, size_t __size) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void *realloc (void *__ptr, size_t __size) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 29761: 29761: 29761: extern void free (void *__ptr) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__alloc_size__ (2, 3))) 29761: __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29761: noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); 29761: 29761: 29761: 29761: # 1 "/usr/include/alloca.h" 1 3 4 29761: # 24 "/usr/include/alloca.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 25 "/usr/include/alloca.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: extern void *alloca (size_t __size) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 707 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29761: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern void *aligned_alloc (size_t __alignment, size_t __size) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 29761: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern "C++" int at_quick_exit (void (*__func) (void)) 29761: noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); 29761: # 749 "/usr/include/stdlib.h" 3 4 29761: extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: 29761: extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: 29761: extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern char *secure_getenv (const char *__name) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int setenv (const char *__name, const char *__value, int __replace) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int clearenv (void) noexcept (true); 29761: # 814 "/usr/include/stdlib.h" 3 4 29761: extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 830 "/usr/include/stdlib.h" 3 4 29761: extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 852 "/usr/include/stdlib.h" 3 4 29761: extern int mkstemps (char *__template, int __suffixlen) __asm__ ("" "mkstemps64") 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int mkstemps64 (char *__template, int __suffixlen) 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 870 "/usr/include/stdlib.h" 3 4 29761: extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 884 "/usr/include/stdlib.h" 3 4 29761: extern int mkostemp (char *__template, int __flags) __asm__ ("" "mkostemp64") 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 905 "/usr/include/stdlib.h" 3 4 29761: extern int mkostemps (char *__template, int __suffixlen, int __flags) __asm__ ("" "mkostemps64") 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int mkostemps64 (char *__template, int __suffixlen, int __flags) 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 923 "/usr/include/stdlib.h" 3 4 29761: extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern char *canonicalize_file_name (const char *__name) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) 29761: __attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); 29761: # 940 "/usr/include/stdlib.h" 3 4 29761: extern char *realpath (const char *__restrict __name, 29761: char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef int (*__compar_fn_t) (const void *, const void *); 29761: 29761: 29761: typedef __compar_fn_t comparison_fn_t; 29761: 29761: 29761: 29761: typedef int (*__compar_d_fn_t) (const void *, const void *, void *); 29761: 29761: 29761: 29761: 29761: extern void *bsearch (const void *__key, const void *__base, 29761: size_t __nmemb, size_t __size, __compar_fn_t __compar) 29761: __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 1 3 4 29761: # 19 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 3 4 29761: extern __inline __attribute__ ((__gnu_inline__)) void * 29761: bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 29761: __compar_fn_t __compar) 29761: { 29761: size_t __l, __u, __idx; 29761: const void *__p; 29761: int __comparison; 29761: 29761: __l = 0; 29761: __u = __nmemb; 29761: while (__l < __u) 29761: { 29761: __idx = (__l + __u) / 2; 29761: __p = (const void *) (((const char *) __base) + (__idx * __size)); 29761: __comparison = (*__compar) (__key, __p); 29761: if (__comparison < 0) 29761: __u = __idx; 29761: else if (__comparison > 0) 29761: __l = __idx + 1; 29761: else 29761: { 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wcast-qual" 29761: 29761: return (void *) __p; 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: } 29761: } 29761: 29761: return __null; 29761: } 29761: # 966 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: 29761: extern void qsort (void *__base, size_t __nmemb, size_t __size, 29761: __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: extern void qsort_r (void *__base, size_t __nmemb, size_t __size, 29761: __compar_d_fn_t __compar, void *__arg) 29761: __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: 29761: 29761: 29761: extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: __extension__ extern long long int llabs (long long int __x) 29761: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern div_t div (int __numer, int __denom) 29761: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: extern ldiv_t ldiv (long int __numer, long int __denom) 29761: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: __extension__ extern lldiv_t lldiv (long long int __numer, 29761: long long int __denom) 29761: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: # 1012 "/usr/include/stdlib.h" 3 4 29761: extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, 29761: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, 29761: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern char *gcvt (double __value, int __ndigit, char *__buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern char *qecvt (long double __value, int __ndigit, 29761: int *__restrict __decpt, int *__restrict __sign) 29761: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29761: extern char *qfcvt (long double __value, int __ndigit, 29761: int *__restrict __decpt, int *__restrict __sign) 29761: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29761: extern char *qgcvt (long double __value, int __ndigit, char *__buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, 29761: int *__restrict __sign, char *__restrict __buf, 29761: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29761: extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, 29761: int *__restrict __sign, char *__restrict __buf, 29761: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29761: 29761: extern int qecvt_r (long double __value, int __ndigit, 29761: int *__restrict __decpt, int *__restrict __sign, 29761: char *__restrict __buf, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29761: extern int qfcvt_r (long double __value, int __ndigit, 29761: int *__restrict __decpt, int *__restrict __sign, 29761: char *__restrict __buf, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29761: 29761: 29761: 29761: 29761: 29761: extern int mblen (const char *__s, size_t __n) noexcept (true); 29761: 29761: 29761: extern int mbtowc (wchar_t *__restrict __pwc, 29761: const char *__restrict __s, size_t __n) noexcept (true); 29761: 29761: 29761: extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); 29761: 29761: 29761: 29761: extern size_t mbstowcs (wchar_t *__restrict __pwcs, 29761: const char *__restrict __s, size_t __n) noexcept (true) 29761: __attribute__ ((__access__ (__read_only__, 2))); 29761: 29761: extern size_t wcstombs (char *__restrict __s, 29761: const wchar_t *__restrict __pwcs, size_t __n) 29761: noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))) 29761: __attribute__ ((__access__ (__read_only__, 2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 1099 "/usr/include/stdlib.h" 3 4 29761: extern int getsubopt (char **__restrict __optionp, 29761: char *const *__restrict __tokens, 29761: char **__restrict __valuep) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int grantpt (int __fd) noexcept (true); 29761: 29761: 29761: 29761: extern int unlockpt (int __fd) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int ptsname_r (int __fd, char *__buf, size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: extern int getpt (void); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int getloadavg (double __loadavg[], int __nelem) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 1155 "/usr/include/stdlib.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 3 4 29761: extern __inline __attribute__ ((__gnu_inline__)) double 29761: __attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) 29761: { 29761: return strtod (__nptr, (char **) __null); 29761: } 29761: # 1156 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 3 4 29761: extern char *__realpath_chk (const char *__restrict __name, 29761: char *__restrict __resolved, 29761: size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) 29761: __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) 29761: ; 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 29761: __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char * __restrict __resolved) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__resolved, 2 > 1); 29761: 29761: if (__sz == (size_t) -1) 29761: return __realpath_alias (__name, __resolved); 29761: 29761: 29761: 29761: 29761: 29761: return __realpath_chk (__name, __resolved, __sz); 29761: } 29761: 29761: 29761: extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, 29761: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") 29761: 29761: __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") 29761: 29761: 29761: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) 29761: ; 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) ptsname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __ptsname_r_alias (__fd, __buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __ptsname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __ptsname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") 29761: __attribute__ ((__warn_unused_result__)); 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int 29761: __attribute__ ((__leaf__)) wctomb (char * __s, wchar_t __wchar) noexcept (true) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 29761: && 16 > __builtin_object_size (__s, 2 > 1)) 29761: return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); 29761: return __wctomb_alias (__s, __wchar); 29761: } 29761: 29761: 29761: extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, 29761: const char *__restrict __src, 29761: size_t __len, size_t __dstlen) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29761: extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 29761: 29761: 29761: 29761: __attribute__ ((__access__ (__read_only__, 2))); 29761: extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 29761: 29761: 29761: 29761: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29761: ; 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) mbstowcs (wchar_t * __restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: if (__builtin_constant_p (__dst == __null) && __dst == __null) 29761: return __mbstowcs_nulldst (__dst, __src, __len); 29761: else 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t)))))) ? __mbstowcs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbstowcs_chk_warn (__dst, __src, __len, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbstowcs_chk (__dst, __src, __len, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29761: ; 29761: } 29761: 29761: extern size_t __wcstombs_chk (char *__restrict __dst, 29761: const wchar_t *__restrict __src, 29761: size_t __len, size_t __dstlen) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29761: extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") 29761: 29761: 29761: 29761: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) wcstombs (char * __restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char)))))) ? __wcstombs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcstombs_chk_warn (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)) : __wcstombs_chk (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)))) 29761: 29761: ; 29761: } 29761: # 1160 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29761: # 1163 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: 29761: } 29761: # 80 "/usr/include/c++/14/cstdlib" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/std_abs.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/std_abs.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/std_abs.h" 3 29761: # 46 "/usr/include/c++/14/bits/std_abs.h" 3 29761: extern "C++" 29761: { 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: using ::abs; 29761: 29761: 29761: inline long 29761: abs(long __i) { return __builtin_labs(__i); } 29761: 29761: 29761: 29761: inline long long 29761: abs(long long __x) { return __builtin_llabs (__x); } 29761: # 70 "/usr/include/c++/14/bits/std_abs.h" 3 29761: inline constexpr double 29761: abs(double __x) 29761: { return __builtin_fabs(__x); } 29761: 29761: inline constexpr float 29761: abs(float __x) 29761: { return __builtin_fabsf(__x); } 29761: 29761: inline constexpr long double 29761: abs(long double __x) 29761: { return __builtin_fabsl(__x); } 29761: # 150 "/usr/include/c++/14/bits/std_abs.h" 3 29761: 29761: } 29761: } 29761: # 82 "/usr/include/c++/14/cstdlib" 2 3 29761: # 125 "/usr/include/c++/14/cstdlib" 3 29761: extern "C++" 29761: { 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: using ::div_t; 29761: using ::ldiv_t; 29761: 29761: using ::abort; 29761: 29761: using ::aligned_alloc; 29761: 29761: using ::atexit; 29761: 29761: 29761: using ::at_quick_exit; 29761: 29761: 29761: using ::atof; 29761: using ::atoi; 29761: using ::atol; 29761: using ::bsearch; 29761: using ::calloc; 29761: using ::div; 29761: using ::exit; 29761: using ::free; 29761: using ::getenv; 29761: using ::labs; 29761: using ::ldiv; 29761: using ::malloc; 29761: 29761: using ::mblen; 29761: using ::mbstowcs; 29761: using ::mbtowc; 29761: 29761: using ::qsort; 29761: 29761: 29761: using ::quick_exit; 29761: 29761: 29761: using ::rand; 29761: using ::realloc; 29761: using ::srand; 29761: using ::strtod; 29761: using ::strtol; 29761: using ::strtoul; 29761: using ::system; 29761: 29761: using ::wcstombs; 29761: using ::wctomb; 29761: 29761: 29761: 29761: inline ldiv_t 29761: div(long __i, long __j) noexcept { return ldiv(__i, __j); } 29761: 29761: 29761: 29761: 29761: } 29761: # 199 "/usr/include/c++/14/cstdlib" 3 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: using ::lldiv_t; 29761: 29761: 29761: 29761: 29761: 29761: using ::_Exit; 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: using ::llabs; 29761: 29761: inline lldiv_t 29761: div(long long __n, long long __d) 29761: { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } 29761: 29761: using ::lldiv; 29761: #pragma GCC diagnostic pop 29761: # 234 "/usr/include/c++/14/cstdlib" 3 29761: using ::atoll; 29761: using ::strtoll; 29761: using ::strtoull; 29761: 29761: using ::strtof; 29761: using ::strtold; 29761: 29761: 29761: } 29761: 29761: namespace std 29761: { 29761: 29761: using ::__gnu_cxx::lldiv_t; 29761: 29761: using ::__gnu_cxx::_Exit; 29761: 29761: using ::__gnu_cxx::llabs; 29761: using ::__gnu_cxx::div; 29761: using ::__gnu_cxx::lldiv; 29761: 29761: using ::__gnu_cxx::atoll; 29761: using ::__gnu_cxx::strtof; 29761: using ::__gnu_cxx::strtoll; 29761: using ::__gnu_cxx::strtoull; 29761: using ::__gnu_cxx::strtold; 29761: } 29761: # 278 "/usr/include/c++/14/cstdlib" 3 29761: } 29761: # 44 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29761: # 1 "/usr/include/c++/14/cwchar" 1 3 29761: # 39 "/usr/include/c++/14/cwchar" 3 29761: 29761: # 40 "/usr/include/c++/14/cwchar" 3 29761: # 45 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29761: # 1 "/usr/include/c++/14/cstdio" 1 3 29761: # 39 "/usr/include/c++/14/cstdio" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdio" 3 29761: 29761: 29761: # 1 "/usr/include/stdio.h" 1 3 4 29761: # 28 "/usr/include/stdio.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 29 "/usr/include/stdio.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 35 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29761: # 38 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 1 3 4 29761: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 3 4 29761: typedef struct _G_fpos_t 29761: { 29761: __off_t __pos; 29761: __mbstate_t __state; 29761: } __fpos_t; 29761: # 41 "/usr/include/stdio.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 1 3 4 29761: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 3 4 29761: typedef struct _G_fpos64_t 29761: { 29761: __off64_t __pos; 29761: __mbstate_t __state; 29761: } __fpos64_t; 29761: # 42 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 1 3 4 29761: # 35 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 3 4 29761: struct _IO_FILE; 29761: struct _IO_marker; 29761: struct _IO_codecvt; 29761: struct _IO_wide_data; 29761: 29761: 29761: 29761: 29761: typedef void _IO_lock_t; 29761: 29761: 29761: 29761: 29761: 29761: struct _IO_FILE 29761: { 29761: int _flags; 29761: 29761: 29761: char *_IO_read_ptr; 29761: char *_IO_read_end; 29761: char *_IO_read_base; 29761: char *_IO_write_base; 29761: char *_IO_write_ptr; 29761: char *_IO_write_end; 29761: char *_IO_buf_base; 29761: char *_IO_buf_end; 29761: 29761: 29761: char *_IO_save_base; 29761: char *_IO_backup_base; 29761: char *_IO_save_end; 29761: 29761: struct _IO_marker *_markers; 29761: 29761: struct _IO_FILE *_chain; 29761: 29761: int _fileno; 29761: int _flags2; 29761: __off_t _old_offset; 29761: 29761: 29761: unsigned short _cur_column; 29761: signed char _vtable_offset; 29761: char _shortbuf[1]; 29761: 29761: _IO_lock_t *_lock; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __off64_t _offset; 29761: 29761: struct _IO_codecvt *_codecvt; 29761: struct _IO_wide_data *_wide_data; 29761: struct _IO_FILE *_freeres_list; 29761: void *_freeres_buf; 29761: struct _IO_FILE **_prevchain; 29761: int _mode; 29761: 29761: char _unused2[15 * sizeof (int) - 5 * sizeof (void *)]; 29761: }; 29761: # 45 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 3 4 29761: typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, 29761: size_t __nbytes); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, 29761: size_t __nbytes); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); 29761: 29761: 29761: typedef int cookie_close_function_t (void *__cookie); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef struct _IO_cookie_io_functions_t 29761: { 29761: cookie_read_function_t *read; 29761: cookie_write_function_t *write; 29761: cookie_seek_function_t *seek; 29761: cookie_close_function_t *close; 29761: } cookie_io_functions_t; 29761: # 48 "/usr/include/stdio.h" 2 3 4 29761: # 87 "/usr/include/stdio.h" 3 4 29761: typedef __fpos64_t fpos_t; 29761: 29761: 29761: typedef __fpos64_t fpos64_t; 29761: # 129 "/usr/include/stdio.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio_lim.h" 1 3 4 29761: # 130 "/usr/include/stdio.h" 2 3 4 29761: # 149 "/usr/include/stdio.h" 3 4 29761: extern FILE *stdin; 29761: extern FILE *stdout; 29761: extern FILE *stderr; 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int remove (const char *__filename) noexcept (true); 29761: 29761: extern int rename (const char *__old, const char *__new) noexcept (true); 29761: 29761: 29761: 29761: extern int renameat (int __oldfd, const char *__old, int __newfd, 29761: const char *__new) noexcept (true); 29761: # 176 "/usr/include/stdio.h" 3 4 29761: extern int renameat2 (int __oldfd, const char *__old, int __newfd, 29761: const char *__new, unsigned int __flags) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: # 198 "/usr/include/stdio.h" 3 4 29761: extern FILE *tmpfile (void) __asm__ ("" "tmpfile64") 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern FILE *tmpfile64 (void) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern char *tmpnam (char[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern char *tmpnam_r (char __s[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: # 228 "/usr/include/stdio.h" 3 4 29761: extern char *tempnam (const char *__dir, const char *__pfx) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fflush (FILE *__stream); 29761: # 245 "/usr/include/stdio.h" 3 4 29761: extern int fflush_unlocked (FILE *__stream); 29761: # 255 "/usr/include/stdio.h" 3 4 29761: extern int fcloseall (void); 29761: # 276 "/usr/include/stdio.h" 3 4 29761: extern FILE *fopen (const char *__restrict __filename, const char *__restrict __modes) __asm__ ("" "fopen64") 29761: 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: extern FILE *freopen (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern FILE *fopen64 (const char *__restrict __filename, 29761: const char *__restrict __modes) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: extern FILE *freopen64 (const char *__restrict __filename, 29761: const char *__restrict __modes, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: 29761: 29761: extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern FILE *fopencookie (void *__restrict __magic_cookie, 29761: const char *__restrict __modes, 29761: cookie_io_functions_t __io_funcs) noexcept (true) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); 29761: 29761: 29761: 29761: 29761: 29761: extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true) 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 29761: int __modes, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 29761: size_t __size) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern void setlinebuf (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fprintf (FILE *__restrict __stream, 29761: const char *__restrict __format, ...) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int printf (const char *__restrict __format, ...); 29761: 29761: extern int sprintf (char *__restrict __s, 29761: const char *__restrict __format, ...) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 29761: __gnuc_va_list __arg) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 29761: 29761: extern int vsprintf (char *__restrict __s, const char *__restrict __format, 29761: __gnuc_va_list __arg) noexcept (true); 29761: 29761: 29761: 29761: extern int snprintf (char *__restrict __s, size_t __maxlen, 29761: const char *__restrict __format, ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 29761: 29761: extern int vsnprintf (char *__restrict __s, size_t __maxlen, 29761: const char *__restrict __format, __gnuc_va_list __arg) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 29761: 29761: 29761: 29761: 29761: 29761: extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, 29761: __gnuc_va_list __arg) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 29761: extern int __asprintf (char **__restrict __ptr, 29761: const char *__restrict __fmt, ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 29761: extern int asprintf (char **__restrict __ptr, 29761: const char *__restrict __fmt, ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int vdprintf (int __fd, const char *__restrict __fmt, 29761: __gnuc_va_list __arg) 29761: __attribute__ ((__format__ (__printf__, 2, 0))); 29761: extern int dprintf (int __fd, const char *__restrict __fmt, ...) 29761: __attribute__ ((__format__ (__printf__, 2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fscanf (FILE *__restrict __stream, 29761: const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 29761: 29761: extern int sscanf (const char *__restrict __s, 29761: const char *__restrict __format, ...) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29761: # 438 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: 29761: 29761: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc23_fscanf") 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc23_scanf") 29761: __attribute__ ((__warn_unused_result__)); 29761: extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_sscanf") 29761: 29761: ; 29761: # 490 "/usr/include/stdio.h" 3 4 29761: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 29761: __gnuc_va_list __arg) 29761: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 29761: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern int vsscanf (const char *__restrict __s, 29761: const char *__restrict __format, __gnuc_va_list __arg) 29761: noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfscanf") 29761: 29761: 29761: 29761: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vscanf") 29761: 29761: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 29761: extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vsscanf") 29761: 29761: 29761: 29761: __attribute__ ((__format__ (__scanf__, 2, 0))); 29761: # 575 "/usr/include/stdio.h" 3 4 29761: extern int fgetc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: extern int getc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int getchar (void); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int getc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: extern int getchar_unlocked (void); 29761: # 600 "/usr/include/stdio.h" 3 4 29761: extern int fgetc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: # 611 "/usr/include/stdio.h" 3 4 29761: extern int fputc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: extern int putc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int putchar (int __c); 29761: # 627 "/usr/include/stdio.h" 3 4 29761: extern int fputc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int putc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: extern int putchar_unlocked (int __c); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int getw (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int putw (int __w, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 29761: # 677 "/usr/include/stdio.h" 3 4 29761: extern char *fgets_unlocked (char *__restrict __s, int __n, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 29761: # 689 "/usr/include/stdio.h" 3 4 29761: extern __ssize_t __getdelim (char **__restrict __lineptr, 29761: size_t *__restrict __n, int __delimiter, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 29761: extern __ssize_t getdelim (char **__restrict __lineptr, 29761: size_t *__restrict __n, int __delimiter, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 29761: 29761: 29761: extern __ssize_t getline (char **__restrict __lineptr, 29761: size_t *__restrict __n, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fputs (const char *__restrict __s, FILE *__restrict __stream) 29761: __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int puts (const char *__s); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int ungetc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern size_t fread (void *__restrict __ptr, size_t __size, 29761: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__nonnull__ (4))); 29761: 29761: 29761: 29761: 29761: extern size_t fwrite (const void *__restrict __ptr, size_t __size, 29761: size_t __n, FILE *__restrict __s) __attribute__ ((__nonnull__ (4))); 29761: # 745 "/usr/include/stdio.h" 3 4 29761: extern int fputs_unlocked (const char *__restrict __s, 29761: FILE *__restrict __stream) __attribute__ ((__nonnull__ (2))); 29761: # 756 "/usr/include/stdio.h" 3 4 29761: extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 29761: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__nonnull__ (4))); 29761: extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 29761: size_t __n, FILE *__restrict __stream) 29761: __attribute__ ((__nonnull__ (4))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fseek (FILE *__stream, long int __off, int __whence) 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern void rewind (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: # 802 "/usr/include/stdio.h" 3 4 29761: extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64") 29761: __attribute__ ((__nonnull__ (1))); 29761: # 828 "/usr/include/stdio.h" 3 4 29761: extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: extern int fsetpos (FILE *__stream, const fpos_t *__pos) __asm__ ("" "fsetpos64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence) 29761: __attribute__ ((__nonnull__ (1))); 29761: extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos) 29761: __attribute__ ((__nonnull__ (1))); 29761: extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern void clearerr (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: extern int feof (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: extern int ferror (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern void clearerr_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: extern int feof_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: extern int ferror_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void perror (const char *__s) __attribute__ ((__cold__)); 29761: 29761: 29761: 29761: 29761: extern int fileno (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int fileno_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: # 887 "/usr/include/stdio.h" 3 4 29761: extern int pclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern FILE *popen (const char *__command, const char *__modes) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *ctermid (char *__s) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1))); 29761: 29761: 29761: 29761: 29761: 29761: extern char *cuserid (char *__s) 29761: __attribute__ ((__access__ (__write_only__, 1))); 29761: 29761: 29761: 29761: 29761: struct obstack; 29761: 29761: 29761: extern int obstack_printf (struct obstack *__restrict __obstack, 29761: const char *__restrict __format, ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); 29761: extern int obstack_vprintf (struct obstack *__restrict __obstack, 29761: const char *__restrict __format, 29761: __gnuc_va_list __args) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void flockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int ftrylockfile (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern void funlockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 949 "/usr/include/stdio.h" 3 4 29761: extern int __uflow (FILE *); 29761: extern int __overflow (FILE *, int); 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 29761: extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, 29761: const char *__restrict __format, ...) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, 29761: const char *__restrict __format, 29761: __gnuc_va_list __ap) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: 29761: 29761: 29761: extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, 29761: size_t __slen, const char *__restrict __format, 29761: ...) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, 29761: size_t __slen, const char *__restrict __format, 29761: __gnuc_va_list __ap) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int __fprintf_chk (FILE *__restrict __stream, int __flag, 29761: const char *__restrict __format, ...) 29761: __attribute__ ((__nonnull__ (1))); 29761: extern int __printf_chk (int __flag, const char *__restrict __format, ...); 29761: extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, 29761: const char *__restrict __format, 29761: __gnuc_va_list __ap) __attribute__ ((__nonnull__ (1))); 29761: extern int __vprintf_chk (int __flag, const char *__restrict __format, 29761: __gnuc_va_list __ap); 29761: 29761: 29761: extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, 29761: ...) __attribute__ ((__format__ (__printf__, 3, 4))); 29761: extern int __vdprintf_chk (int __fd, int __flag, 29761: const char *__restrict __fmt, __gnuc_va_list __arg) 29761: __attribute__ ((__format__ (__printf__, 3, 0))); 29761: 29761: 29761: 29761: 29761: extern int __asprintf_chk (char **__restrict __ptr, int __flag, 29761: const char *__restrict __fmt, ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); 29761: extern int __vasprintf_chk (char **__restrict __ptr, int __flag, 29761: const char *__restrict __fmt, __gnuc_va_list __arg) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); 29761: extern int __obstack_printf_chk (struct obstack *__restrict __obstack, 29761: int __flag, const char *__restrict __format, 29761: ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 29761: extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, 29761: int __flag, 29761: const char *__restrict __format, 29761: __gnuc_va_list __args) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 29761: # 96 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 29761: extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) 29761: ; 29761: 29761: extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, 29761: FILE *__restrict __stream) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 29761: 29761: extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) 29761: ; 29761: 29761: extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, 29761: size_t __size, size_t __n, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 29761: 29761: 29761: extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) 29761: ; 29761: 29761: 29761: extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, 29761: int __n, FILE *__restrict __stream) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 29761: 29761: 29761: 29761: 29761: extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: 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") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) 29761: ; 29761: 29761: extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, 29761: size_t __size, size_t __n, 29761: FILE *__restrict __stream) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 29761: # 955 "/usr/include/stdio.h" 2 3 4 29761: # 966 "/usr/include/stdio.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 1 3 4 29761: # 46 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 3 4 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: getchar (void) 29761: { 29761: return getc (stdin); 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: fgetc_unlocked (FILE *__fp) 29761: { 29761: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: getc_unlocked (FILE *__fp) 29761: { 29761: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: getchar_unlocked (void) 29761: { 29761: return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: putchar (int __c) 29761: { 29761: return putc (__c, stdout); 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: fputc_unlocked (int __c, FILE *__stream) 29761: { 29761: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: putc_unlocked (int __c, FILE *__stream) 29761: { 29761: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: putchar_unlocked (int __c) 29761: { 29761: return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) __ssize_t 29761: getline (char **__lineptr, size_t *__n, FILE *__stream) 29761: { 29761: return __getdelim (__lineptr, __n, '\n', __stream); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) noexcept (true) 29761: { 29761: return (((__stream)->_flags & 0x0010) != 0); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) noexcept (true) 29761: { 29761: return (((__stream)->_flags & 0x0020) != 0); 29761: } 29761: # 967 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) noexcept (true) 29761: { 29761: return __builtin___sprintf_chk (__s, 2 - 1, 29761: __builtin_object_size (__s, 2 > 1), __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: # 54 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) vsprintf (char * __restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29761: 29761: { 29761: return __builtin___vsprintf_chk (__s, 2 - 1, 29761: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) noexcept (true) 29761: 29761: { 29761: return __builtin___snprintf_chk (__s, __n, 2 - 1, 29761: __builtin_object_size (__s, 2 > 1), __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: # 92 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) vsnprintf (char * __restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return __builtin___vsnprintf_chk (__s, __n, 2 - 1, 29761: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 29761: fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) 29761: { 29761: return __fprintf_chk (__stream, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: printf (const char *__restrict __fmt, ...) 29761: { 29761: return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 29761: } 29761: # 151 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: vprintf (const char * __restrict __fmt, 29761: __gnuc_va_list __ap) 29761: { 29761: 29761: return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); 29761: 29761: 29761: 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 29761: vfprintf (FILE *__restrict __stream, 29761: const char *__restrict __fmt, __gnuc_va_list __ap) 29761: { 29761: return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: dprintf (int __fd, const char *__restrict __fmt, ...) 29761: { 29761: return __dprintf_chk (__fd, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: # 194 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) 29761: { 29761: return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 29761: { 29761: return __asprintf_chk (__ptr, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 29761: 29761: { 29761: return __asprintf_chk (__ptr, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) noexcept (true) 29761: 29761: { 29761: return __obstack_printf_chk (__obstack, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: # 271 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29761: 29761: { 29761: return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29761: 29761: { 29761: return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, 29761: __ap); 29761: } 29761: # 303 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 29761: __attribute__ ((__nonnull__ (3))) char * 29761: fgets (char * __restrict __s, int __n, 29761: FILE *__restrict __stream) 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))))) 29761: return __fgets_alias (__s, __n, __stream); 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (char)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (char))))) 29761: return __fgets_chk_warn (__s, __sz, __n, __stream); 29761: 29761: return __fgets_chk (__s, __sz, __n, __stream); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 29761: fread (void * __restrict __ptr, 29761: size_t __size, size_t __n, FILE *__restrict __stream) 29761: 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__ptr, 0); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((__size)))) && (((unsigned int) (__n)) <= ((__sz)) / ((__size)))))) 29761: return __fread_alias (__ptr, __size, __n, __stream); 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (__size))) && !(((unsigned int) (__n)) <= (__sz) / (__size)))) 29761: return __fread_chk_warn (__ptr, __sz, __size, __n, __stream); 29761: 29761: return __fread_chk (__ptr, __sz, __size, __n, __stream); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 29761: __attribute__ ((__nonnull__ (3))) char * 29761: fgets_unlocked (char * __restrict __s, 29761: int __n, FILE *__restrict __stream) 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))))) 29761: return __fgets_unlocked_alias (__s, __n, __stream); 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (char)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (char))))) 29761: return __fgets_unlocked_chk_warn (__s, __sz, __n, __stream); 29761: 29761: return __fgets_unlocked_chk (__s, __sz, __n, __stream); 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 29761: fread_unlocked (void * __restrict __ptr, 29761: size_t __size, size_t __n, FILE *__restrict __stream) 29761: 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__ptr, 0); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((__size)))) && (((unsigned int) (__n)) <= ((__sz)) / ((__size)))))) 29761: { 29761: 29761: if (__builtin_constant_p (__size) 29761: && __builtin_constant_p (__n) 29761: && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) 29761: && __size * __n <= 8) 29761: { 29761: size_t __cnt = __size * __n; 29761: char *__cptr = (char *) __ptr; 29761: if (__cnt == 0) 29761: return 0; 29761: 29761: for (; __cnt > 0; --__cnt) 29761: { 29761: int __c = getc_unlocked (__stream); 29761: if (__c == (-1)) 29761: break; 29761: *__cptr++ = __c; 29761: } 29761: return (__cptr - (char *) __ptr) / __size; 29761: } 29761: 29761: return __fread_unlocked_alias (__ptr, __size, __n, __stream); 29761: } 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (__size))) && !(((unsigned int) (__n)) <= (__sz) / (__size)))) 29761: return __fread_unlocked_chk_warn (__ptr, __sz, __size, __n, __stream); 29761: 29761: return __fread_unlocked_chk (__ptr, __sz, __size, __n, __stream); 29761: 29761: } 29761: # 971 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: } 29761: # 43 "/usr/include/c++/14/cstdio" 2 3 29761: # 96 "/usr/include/c++/14/cstdio" 3 29761: namespace std 29761: { 29761: using ::FILE; 29761: using ::fpos_t; 29761: 29761: using ::clearerr; 29761: using ::fclose; 29761: using ::feof; 29761: using ::ferror; 29761: using ::fflush; 29761: using ::fgetc; 29761: using ::fgetpos; 29761: using ::fgets; 29761: using ::fopen; 29761: using ::fprintf; 29761: using ::fputc; 29761: using ::fputs; 29761: using ::fread; 29761: using ::freopen; 29761: using ::fscanf; 29761: using ::fseek; 29761: using ::fsetpos; 29761: using ::ftell; 29761: using ::fwrite; 29761: using ::getc; 29761: using ::getchar; 29761: 29761: 29761: 29761: 29761: using ::perror; 29761: using ::printf; 29761: using ::putc; 29761: using ::putchar; 29761: using ::puts; 29761: using ::remove; 29761: using ::rename; 29761: using ::rewind; 29761: using ::scanf; 29761: using ::setbuf; 29761: using ::setvbuf; 29761: using ::sprintf; 29761: using ::sscanf; 29761: using ::tmpfile; 29761: 29761: using ::tmpnam; 29761: 29761: using ::ungetc; 29761: using ::vfprintf; 29761: using ::vprintf; 29761: using ::vsprintf; 29761: } 29761: # 157 "/usr/include/c++/14/cstdio" 3 29761: namespace __gnu_cxx 29761: { 29761: # 175 "/usr/include/c++/14/cstdio" 3 29761: using ::snprintf; 29761: using ::vfscanf; 29761: using ::vscanf; 29761: using ::vsnprintf; 29761: using ::vsscanf; 29761: 29761: } 29761: 29761: namespace std 29761: { 29761: using ::__gnu_cxx::snprintf; 29761: using ::__gnu_cxx::vfscanf; 29761: using ::__gnu_cxx::vscanf; 29761: using ::__gnu_cxx::vsnprintf; 29761: using ::__gnu_cxx::vsscanf; 29761: } 29761: # 46 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29761: # 1 "/usr/include/c++/14/cerrno" 1 3 29761: # 39 "/usr/include/c++/14/cerrno" 3 29761: 29761: # 40 "/usr/include/c++/14/cerrno" 3 29761: 29761: 29761: # 1 "/usr/include/errno.h" 1 3 4 29761: # 28 "/usr/include/errno.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 3 4 29761: # 1 "/usr/include/linux/errno.h" 1 3 4 29761: # 1 "/usr/lib/linux/uapi/arm/asm/errno.h" 1 3 4 29761: # 1 "/usr/include/asm-generic/errno.h" 1 3 4 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 29761: # 6 "/usr/include/asm-generic/errno.h" 2 3 4 29761: # 2 "/usr/lib/linux/uapi/arm/asm/errno.h" 2 3 4 29761: # 2 "/usr/include/linux/errno.h" 2 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 2 3 4 29761: # 29 "/usr/include/errno.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: 29761: 29761: extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *program_invocation_name; 29761: extern char *program_invocation_short_name; 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 1 3 4 29761: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 3 4 29761: typedef int error_t; 29761: # 49 "/usr/include/errno.h" 2 3 4 29761: 29761: 29761: 29761: } 29761: # 43 "/usr/include/c++/14/cerrno" 2 3 29761: # 47 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: _Ret 29761: __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), 29761: const char* __name, const _CharT* __str, std::size_t* __idx, 29761: _Base... __base) 29761: { 29761: _Ret __ret; 29761: 29761: _CharT* __endptr; 29761: 29761: struct _Save_errno { 29761: _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } 29761: ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } 29761: int _M_errno; 29761: } const __save_errno; 29761: 29761: struct _Range_chk { 29761: static bool 29761: _S_chk(_TRet, std::false_type) { return false; } 29761: 29761: static bool 29761: _S_chk(_TRet __val, std::true_type) 29761: { 29761: return __val < _TRet(__numeric_traits::__min) 29761: || __val > _TRet(__numeric_traits::__max); 29761: } 29761: }; 29761: 29761: const _TRet __tmp = __convf(__str, &__endptr, __base...); 29761: 29761: if (__endptr == __str) 29761: std::__throw_invalid_argument(__name); 29761: else if ((*__errno_location ()) == 34 29761: || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) 29761: std::__throw_out_of_range(__name); 29761: else 29761: __ret = __tmp; 29761: 29761: if (__idx) 29761: *__idx = __endptr - __str; 29761: 29761: return __ret; 29761: } 29761: 29761: 29761: template 29761: _String 29761: __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, 29761: __builtin_va_list), std::size_t __n, 29761: const _CharT* __fmt, ...) 29761: { 29761: 29761: 29761: _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __n)); 29761: 29761: __builtin_va_list __args; 29761: __builtin_va_start(__args, __fmt); 29761: 29761: const int __len = __convf(__s, __n, __fmt, __args); 29761: 29761: __builtin_va_end(__args); 29761: 29761: return _String(__s, __s + __len); 29761: } 29761: 29761: 29761: } 29761: # 4155 "/usr/include/c++/14/bits/basic_string.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/charconv.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/charconv.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/charconv.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: template 29761: constexpr bool __integer_to_chars_is_unsigned 29761: = ! __gnu_cxx::__int_traits<_Tp>::__is_signed; 29761: 29761: 29761: 29761: template 29761: constexpr unsigned 29761: __to_chars_len(_Tp __value, int __base = 10) noexcept 29761: { 29761: 29761: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 29761: 29761: 29761: unsigned __n = 1; 29761: const unsigned __b2 = __base * __base; 29761: const unsigned __b3 = __b2 * __base; 29761: const unsigned long __b4 = __b3 * __base; 29761: for (;;) 29761: { 29761: if (__value < (unsigned)__base) return __n; 29761: if (__value < __b2) return __n + 1; 29761: if (__value < __b3) return __n + 2; 29761: if (__value < __b4) return __n + 3; 29761: __value /= __b4; 29761: __n += 4; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept 29761: { 29761: 29761: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 29761: 29761: 29761: constexpr char __digits[201] = 29761: "0001020304050607080910111213141516171819" 29761: "2021222324252627282930313233343536373839" 29761: "4041424344454647484950515253545556575859" 29761: "6061626364656667686970717273747576777879" 29761: "8081828384858687888990919293949596979899"; 29761: unsigned __pos = __len - 1; 29761: while (__val >= 100) 29761: { 29761: auto const __num = (__val % 100) * 2; 29761: __val /= 100; 29761: __first[__pos] = __digits[__num + 1]; 29761: __first[__pos - 1] = __digits[__num]; 29761: __pos -= 2; 29761: } 29761: if (__val >= 10) 29761: { 29761: auto const __num = __val * 2; 29761: __first[1] = __digits[__num + 1]; 29761: __first[0] = __digits[__num]; 29761: } 29761: else 29761: __first[0] = '0' + __val; 29761: } 29761: 29761: } 29761: 29761: } 29761: # 4156 "/usr/include/c++/14/bits/basic_string.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace __cxx11 { 29761: 29761: 29761: inline int 29761: stoi(const string& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline long 29761: stol(const string& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline unsigned long 29761: stoul(const string& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), 29761: __idx, __base); } 29761: 29761: 29761: inline long long 29761: stoll(const string& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline unsigned long long 29761: stoull(const string& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), 29761: __idx, __base); } 29761: # 4198 "/usr/include/c++/14/bits/basic_string.h" 3 29761: inline double 29761: stod(const string& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } 29761: 29761: 29761: 29761: inline float 29761: stof(const string& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } 29761: # 4226 "/usr/include/c++/14/bits/basic_string.h" 3 29761: inline long double 29761: stold(const string& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } 29761: # 4238 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(int __val) 29761: 29761: noexcept 29761: 29761: { 29761: const bool __neg = __val < 0; 29761: const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; 29761: const auto __len = __detail::__to_chars_len(__uval); 29761: string __str; 29761: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29761: __p[0] = '-'; 29761: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(unsigned __val) 29761: 29761: noexcept 29761: 29761: { 29761: const auto __len = __detail::__to_chars_len(__val); 29761: string __str; 29761: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29761: __detail::__to_chars_10_impl(__p, __n, __val); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(long __val) 29761: 29761: noexcept 29761: 29761: { 29761: const bool __neg = __val < 0; 29761: const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; 29761: const auto __len = __detail::__to_chars_len(__uval); 29761: string __str; 29761: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29761: __p[0] = '-'; 29761: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(unsigned long __val) 29761: 29761: noexcept 29761: 29761: { 29761: const auto __len = __detail::__to_chars_len(__val); 29761: string __str; 29761: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29761: __detail::__to_chars_10_impl(__p, __n, __val); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(long long __val) 29761: { 29761: const bool __neg = __val < 0; 29761: const unsigned long long __uval 29761: = __neg ? (unsigned long long)~__val + 1ull : __val; 29761: const auto __len = __detail::__to_chars_len(__uval); 29761: string __str; 29761: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29761: __p[0] = '-'; 29761: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(unsigned long long __val) 29761: { 29761: const auto __len = __detail::__to_chars_len(__val); 29761: string __str; 29761: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29761: __detail::__to_chars_10_impl(__p, __n, __val); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: # 4399 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(float __val) 29761: { 29761: const int __n = 29761: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29761: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29761: "%f", __val); 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(double __val) 29761: { 29761: const int __n = 29761: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29761: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29761: "%f", __val); 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(long double __val) 29761: { 29761: const int __n = 29761: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29761: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29761: "%Lf", __val); 29761: } 29761: 29761: 29761: 29761: inline int 29761: stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline long 29761: stol(const wstring& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline unsigned long 29761: stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline long long 29761: stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline unsigned long long 29761: stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), 29761: __idx, __base); } 29761: 29761: 29761: inline float 29761: stof(const wstring& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } 29761: 29761: inline double 29761: stod(const wstring& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } 29761: 29761: inline long double 29761: stold(const wstring& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: 29761: inline void 29761: __to_wstring_numeric(const char* __s, int __len, wchar_t* __wout) 29761: { 29761: 29761: 29761: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 29761: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 29761: { 29761: for (int __i = 0; __i < __len; ++__i) 29761: __wout[__i] = (wchar_t) __s[__i]; 29761: } 29761: else 29761: { 29761: wchar_t __wc[256]; 29761: for (int __i = '0'; __i <= '9'; ++__i) 29761: __wc[__i] = L'0' + __i; 29761: __wc['.'] = L'.'; 29761: __wc['+'] = L'+'; 29761: __wc['-'] = L'-'; 29761: __wc['a'] = L'a'; 29761: __wc['b'] = L'b'; 29761: __wc['c'] = L'c'; 29761: __wc['d'] = L'd'; 29761: __wc['e'] = L'e'; 29761: __wc['f'] = L'f'; 29761: __wc['n'] = L'n'; 29761: __wc['p'] = L'p'; 29761: __wc['x'] = L'x'; 29761: __wc['A'] = L'A'; 29761: __wc['B'] = L'B'; 29761: __wc['C'] = L'C'; 29761: __wc['D'] = L'D'; 29761: __wc['E'] = L'E'; 29761: __wc['F'] = L'F'; 29761: __wc['N'] = L'N'; 29761: __wc['P'] = L'P'; 29761: __wc['X'] = L'X'; 29761: 29761: for (int __i = 0; __i < __len; ++__i) 29761: __wout[__i] = __wc[(int)__s[__i]]; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: inline wstring 29761: 29761: __to_wstring_numeric(string_view __s) 29761: 29761: 29761: 29761: { 29761: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 29761: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 29761: return wstring(__s.data(), __s.data() + __s.size()); 29761: else 29761: { 29761: wstring __ws; 29761: auto __f = __s.data(); 29761: __ws.__resize_and_overwrite(__s.size(), 29761: [__f] (wchar_t* __to, int __n) { 29761: std::__to_wstring_numeric(__f, __n, __to); 29761: return __n; 29761: }); 29761: return __ws; 29761: } 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(int __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(unsigned __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(long __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(unsigned long __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(long long __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(unsigned long long __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(float __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(double __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(long double __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: 29761: 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: template, _Alloc>> 29761: struct __str_hash_base 29761: : public __hash_base 29761: { 29761: [[__nodiscard__]] 29761: size_t 29761: operator()(const _StrT& __s) const noexcept 29761: { return _Hash_impl::hash(__s.data(), __s.length() * sizeof(_CharT)); } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct hash, _Alloc>> 29761: : public __str_hash_base 29761: { }; 29761: 29761: 29761: template 29761: struct hash, _Alloc>> 29761: : public __str_hash_base 29761: { }; 29761: 29761: template 29761: struct __is_fast_hash, 29761: _Alloc>>> 29761: : std::false_type 29761: { }; 29761: # 4649 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: struct hash, _Alloc>> 29761: : public __str_hash_base 29761: { }; 29761: 29761: 29761: template 29761: struct hash, _Alloc>> 29761: : public __str_hash_base 29761: { }; 29761: 29761: 29761: 29761: template<> struct __is_fast_hash> : std::false_type { }; 29761: template<> struct __is_fast_hash> : std::false_type { }; 29761: template<> struct __is_fast_hash> : std::false_type { }; 29761: template<> struct __is_fast_hash> : std::false_type { }; 29761: # 4678 "/usr/include/c++/14/bits/basic_string.h" 3 29761: inline namespace literals 29761: { 29761: inline namespace string_literals 29761: { 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: inline basic_string 29761: operator""s(const char* __str, size_t __len) 29761: { return basic_string{__str, __len}; } 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: inline basic_string 29761: operator""s(const wchar_t* __str, size_t __len) 29761: { return basic_string{__str, __len}; } 29761: # 4708 "/usr/include/c++/14/bits/basic_string.h" 3 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: inline basic_string 29761: operator""s(const char16_t* __str, size_t __len) 29761: { return basic_string{__str, __len}; } 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: inline basic_string 29761: operator""s(const char32_t* __str, size_t __len) 29761: { return basic_string{__str, __len}; } 29761: 29761: 29761: #pragma GCC diagnostic pop 29761: } 29761: } 29761: 29761: 29761: 29761: namespace __detail::__variant 29761: { 29761: template struct _Never_valueless_alt; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : __and_< 29761: is_nothrow_move_constructible>, 29761: is_nothrow_move_assignable> 29761: >::type 29761: { }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 55 "/usr/include/c++/14/string" 2 3 29761: # 1 "/usr/include/c++/14/bits/basic_string.tcc" 1 3 29761: # 42 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: 29761: # 43 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: const typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>::npos; 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: swap(basic_string& __s) noexcept 29761: { 29761: if (this == std::__addressof(__s)) 29761: return; 29761: 29761: _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); 29761: 29761: if (_M_is_local()) 29761: if (__s._M_is_local()) 29761: { 29761: if (length() && __s.length()) 29761: { 29761: _CharT __tmp_data[_S_local_capacity + 1]; 29761: traits_type::copy(__tmp_data, __s._M_local_buf, 29761: __s.length() + 1); 29761: traits_type::copy(__s._M_local_buf, _M_local_buf, 29761: length() + 1); 29761: traits_type::copy(_M_local_buf, __tmp_data, 29761: __s.length() + 1); 29761: } 29761: else if (__s.length()) 29761: { 29761: _M_init_local_buf(); 29761: traits_type::copy(_M_local_buf, __s._M_local_buf, 29761: __s.length() + 1); 29761: _M_length(__s.length()); 29761: __s._M_set_length(0); 29761: return; 29761: } 29761: else if (length()) 29761: { 29761: __s._M_init_local_buf(); 29761: traits_type::copy(__s._M_local_buf, _M_local_buf, 29761: length() + 1); 29761: __s._M_length(length()); 29761: _M_set_length(0); 29761: return; 29761: } 29761: } 29761: else 29761: { 29761: const size_type __tmp_capacity = __s._M_allocated_capacity; 29761: __s._M_init_local_buf(); 29761: traits_type::copy(__s._M_local_buf, _M_local_buf, 29761: length() + 1); 29761: _M_data(__s._M_data()); 29761: __s._M_data(__s._M_local_buf); 29761: _M_capacity(__tmp_capacity); 29761: } 29761: else 29761: { 29761: const size_type __tmp_capacity = _M_allocated_capacity; 29761: if (__s._M_is_local()) 29761: { 29761: _M_init_local_buf(); 29761: traits_type::copy(_M_local_buf, __s._M_local_buf, 29761: __s.length() + 1); 29761: __s._M_data(_M_data()); 29761: _M_data(_M_local_buf); 29761: } 29761: else 29761: { 29761: pointer __tmp_ptr = _M_data(); 29761: _M_data(__s._M_data()); 29761: __s._M_data(__tmp_ptr); 29761: _M_capacity(__s._M_allocated_capacity); 29761: } 29761: __s._M_capacity(__tmp_capacity); 29761: } 29761: 29761: const size_type __tmp_length = length(); 29761: _M_length(__s.length()); 29761: __s._M_length(__tmp_length); 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::pointer 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_create(size_type& __capacity, size_type __old_capacity) 29761: { 29761: 29761: 29761: if (__capacity > max_size()) 29761: std::__throw_length_error(("basic_string::_M_create")); 29761: 29761: 29761: 29761: 29761: if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) 29761: { 29761: __capacity = 2 * __old_capacity; 29761: 29761: if (__capacity > max_size()) 29761: __capacity = max_size(); 29761: } 29761: 29761: 29761: 29761: return _S_allocate(_M_get_allocator(), __capacity + 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_construct(_InIterator __beg, _InIterator __end, 29761: std::input_iterator_tag) 29761: { 29761: size_type __len = 0; 29761: size_type __capacity = size_type(_S_local_capacity); 29761: 29761: _M_init_local_buf(); 29761: 29761: while (__beg != __end && __len < __capacity) 29761: { 29761: _M_local_buf[__len++] = *__beg; 29761: ++__beg; 29761: } 29761: 29761: struct _Guard 29761: { 29761: 29761: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 29761: 29761: 29761: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 29761: 29761: basic_string* _M_guarded; 29761: } __guard(this); 29761: 29761: while (__beg != __end) 29761: { 29761: if (__len == __capacity) 29761: { 29761: 29761: __capacity = __len + 1; 29761: pointer __another = _M_create(__capacity, __len); 29761: this->_S_copy(__another, _M_data(), __len); 29761: _M_dispose(); 29761: _M_data(__another); 29761: _M_capacity(__capacity); 29761: } 29761: traits_type::assign(_M_data()[__len++], *__beg); 29761: ++__beg; 29761: } 29761: 29761: __guard._M_guarded = 0; 29761: 29761: _M_set_length(__len); 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_construct(_InIterator __beg, _InIterator __end, 29761: std::forward_iterator_tag) 29761: { 29761: size_type __dnew = static_cast(std::distance(__beg, __end)); 29761: 29761: if (__dnew > size_type(_S_local_capacity)) 29761: { 29761: _M_data(_M_create(__dnew, size_type(0))); 29761: _M_capacity(__dnew); 29761: } 29761: else 29761: _M_init_local_buf(); 29761: 29761: 29761: struct _Guard 29761: { 29761: 29761: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 29761: 29761: 29761: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 29761: 29761: basic_string* _M_guarded; 29761: } __guard(this); 29761: 29761: this->_S_copy_chars(_M_data(), __beg, __end); 29761: 29761: __guard._M_guarded = 0; 29761: 29761: _M_set_length(__dnew); 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_construct(size_type __n, _CharT __c) 29761: { 29761: if (__n > size_type(_S_local_capacity)) 29761: { 29761: _M_data(_M_create(__n, size_type(0))); 29761: _M_capacity(__n); 29761: } 29761: else 29761: _M_init_local_buf(); 29761: 29761: if (__n) 29761: this->_S_assign(_M_data(), __n, __c); 29761: 29761: _M_set_length(__n); 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_assign(const basic_string& __str) 29761: { 29761: if (this != std::__addressof(__str)) 29761: { 29761: const size_type __rsize = __str.length(); 29761: const size_type __capacity = capacity(); 29761: 29761: if (__rsize > __capacity) 29761: { 29761: size_type __new_capacity = __rsize; 29761: pointer __tmp = _M_create(__new_capacity, __capacity); 29761: _M_dispose(); 29761: _M_data(__tmp); 29761: _M_capacity(__new_capacity); 29761: } 29761: 29761: if (__rsize) 29761: this->_S_copy(_M_data(), __str._M_data(), __rsize); 29761: 29761: _M_set_length(__rsize); 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: reserve(size_type __res) 29761: { 29761: const size_type __capacity = capacity(); 29761: 29761: 29761: 29761: 29761: if (__res <= __capacity) 29761: return; 29761: 29761: pointer __tmp = _M_create(__res, __capacity); 29761: this->_S_copy(__tmp, _M_data(), length() + 1); 29761: _M_dispose(); 29761: _M_data(__tmp); 29761: _M_capacity(__res); 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 29761: size_type __len2) 29761: { 29761: const size_type __how_much = length() - __pos - __len1; 29761: 29761: size_type __new_capacity = length() + __len2 - __len1; 29761: pointer __r = _M_create(__new_capacity, capacity()); 29761: 29761: if (__pos) 29761: this->_S_copy(__r, _M_data(), __pos); 29761: if (__s && __len2) 29761: this->_S_copy(__r + __pos, __s, __len2); 29761: if (__how_much) 29761: this->_S_copy(__r + __pos + __len2, 29761: _M_data() + __pos + __len1, __how_much); 29761: 29761: _M_dispose(); 29761: _M_data(__r); 29761: _M_capacity(__new_capacity); 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_erase(size_type __pos, size_type __n) 29761: { 29761: const size_type __how_much = length() - __pos - __n; 29761: 29761: if (__how_much && __n) 29761: this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); 29761: 29761: _M_set_length(length() - __n); 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: reserve() 29761: { 29761: if (_M_is_local()) 29761: return; 29761: 29761: const size_type __length = length(); 29761: const size_type __capacity = _M_allocated_capacity; 29761: 29761: if (__length <= size_type(_S_local_capacity)) 29761: { 29761: _M_init_local_buf(); 29761: this->_S_copy(_M_local_buf, _M_data(), __length + 1); 29761: _M_destroy(__capacity); 29761: _M_data(_M_local_data()); 29761: } 29761: 29761: else if (__length < __capacity) 29761: try 29761: { 29761: pointer __tmp = _S_allocate(_M_get_allocator(), __length + 1); 29761: this->_S_copy(__tmp, _M_data(), __length + 1); 29761: _M_dispose(); 29761: _M_data(__tmp); 29761: _M_capacity(__length); 29761: } 29761: catch (const __cxxabiv1::__forced_unwind&) 29761: { throw; } 29761: catch (...) 29761: { } 29761: 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: resize(size_type __n, _CharT __c) 29761: { 29761: const size_type __size = this->size(); 29761: if (__size < __n) 29761: this->append(__n - __size, __c); 29761: else if (__n < __size) 29761: this->_M_set_length(__n); 29761: } 29761: 29761: template 29761: 29761: basic_string<_CharT, _Traits, _Alloc>& 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_append(const _CharT* __s, size_type __n) 29761: { 29761: const size_type __len = __n + this->size(); 29761: 29761: if (__len <= this->capacity()) 29761: { 29761: if (__n) 29761: this->_S_copy(this->_M_data() + this->size(), __s, __n); 29761: } 29761: else 29761: this->_M_mutate(this->size(), size_type(0), __s, __n); 29761: 29761: this->_M_set_length(__len); 29761: return *this; 29761: } 29761: 29761: template 29761: template 29761: 29761: basic_string<_CharT, _Traits, _Alloc>& 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29761: _InputIterator __k1, _InputIterator __k2, 29761: std::__false_type) 29761: { 29761: 29761: 29761: const basic_string __s(__k1, __k2, this->get_allocator()); 29761: const size_type __n1 = __i2 - __i1; 29761: return _M_replace(__i1 - begin(), __n1, __s._M_data(), 29761: __s.size()); 29761: } 29761: 29761: template 29761: 29761: basic_string<_CharT, _Traits, _Alloc>& 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 29761: _CharT __c) 29761: { 29761: _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); 29761: 29761: const size_type __old_size = this->size(); 29761: const size_type __new_size = __old_size + __n2 - __n1; 29761: 29761: if (__new_size <= this->capacity()) 29761: { 29761: pointer __p = this->_M_data() + __pos1; 29761: 29761: const size_type __how_much = __old_size - __pos1 - __n1; 29761: if (__how_much && __n1 != __n2) 29761: this->_S_move(__p + __n2, __p + __n1, __how_much); 29761: } 29761: else 29761: this->_M_mutate(__pos1, __n1, 0, __n2); 29761: 29761: if (__n2) 29761: this->_S_assign(this->_M_data() + __pos1, __n2, __c); 29761: 29761: this->_M_set_length(__new_size); 29761: return *this; 29761: } 29761: 29761: template 29761: __attribute__((__noinline__, __noclone__, __cold__)) void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 29761: const size_type __len2, const size_type __how_much) 29761: { 29761: 29761: if (__len2 && __len2 <= __len1) 29761: this->_S_move(__p, __s, __len2); 29761: if (__how_much && __len1 != __len2) 29761: this->_S_move(__p + __len2, __p + __len1, __how_much); 29761: if (__len2 > __len1) 29761: { 29761: if (__s + __len2 <= __p + __len1) 29761: this->_S_move(__p, __s, __len2); 29761: else if (__s >= __p + __len1) 29761: { 29761: 29761: 29761: const size_type __poff = (__s - __p) + (__len2 - __len1); 29761: this->_S_copy(__p, __p + __poff, __len2); 29761: } 29761: else 29761: { 29761: const size_type __nleft = (__p + __len1) - __s; 29761: this->_S_move(__p, __s, __nleft); 29761: this->_S_copy(__p + __nleft, __p + __len2, __len2 - __nleft); 29761: } 29761: } 29761: } 29761: 29761: template 29761: 29761: basic_string<_CharT, _Traits, _Alloc>& 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 29761: const size_type __len2) 29761: { 29761: _M_check_length(__len1, __len2, "basic_string::_M_replace"); 29761: 29761: const size_type __old_size = this->size(); 29761: const size_type __new_size = __old_size + __len2 - __len1; 29761: 29761: if (__new_size <= this->capacity()) 29761: { 29761: pointer __p = this->_M_data() + __pos; 29761: 29761: const size_type __how_much = __old_size - __pos - __len1; 29761: # 537 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: if (__builtin_expect(_M_disjunct(__s), true)) 29761: { 29761: if (__how_much && __len1 != __len2) 29761: this->_S_move(__p + __len2, __p + __len1, __how_much); 29761: if (__len2) 29761: this->_S_copy(__p, __s, __len2); 29761: } 29761: else 29761: _M_replace_cold(__p, __len1, __s, __len2, __how_much); 29761: } 29761: else 29761: this->_M_mutate(__pos, __len1, __s, __len2); 29761: 29761: this->_M_set_length(__new_size); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: copy(_CharT* __s, size_type __n, size_type __pos) const 29761: { 29761: _M_check(__pos, "basic_string::copy"); 29761: __n = _M_limit(__pos, __n); 29761: ; 29761: if (__n) 29761: _S_copy(__s, _M_data() + __pos, __n); 29761: 29761: return __n; 29761: } 29761: # 580 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: template 29761: template 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: 29761: 29761: 29761: __resize_and_overwrite(const size_type __n, _Operation __op) 29761: 29761: { 29761: reserve(__n); 29761: _CharT* const __p = _M_data(); 29761: 29761: 29761: 29761: 29761: struct _Terminator { 29761: ~_Terminator() { _M_this->_M_set_length(_M_r); } 29761: basic_string* _M_this; 29761: size_type _M_r; 29761: }; 29761: _Terminator __term{this, 0}; 29761: auto __r = std::move(__op)(__p + 0, __n + 0); 29761: 29761: 29761: 29761: static_assert(__gnu_cxx::__is_integer_nonstrict::__value, 29761: "resize_and_overwrite operation must return an integer"); 29761: 29761: ; 29761: __term._M_r = size_type(__r); 29761: if (__term._M_r > __n) 29761: __builtin_unreachable(); 29761: } 29761: # 623 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: const size_type __size = this->size(); 29761: 29761: if (__n == 0) 29761: return __pos <= __size ? __pos : npos; 29761: if (__pos >= __size) 29761: return npos; 29761: 29761: const _CharT __elem0 = __s[0]; 29761: const _CharT* const __data = data(); 29761: const _CharT* __first = __data + __pos; 29761: const _CharT* const __last = __data + __size; 29761: size_type __len = __size - __pos; 29761: 29761: while (__len >= __n) 29761: { 29761: 29761: __first = traits_type::find(__first, __len - __n + 1, __elem0); 29761: if (!__first) 29761: return npos; 29761: 29761: 29761: 29761: if (traits_type::compare(__first, __s, __n) == 0) 29761: return __first - __data; 29761: __len = __last - ++__first; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __ret = npos; 29761: const size_type __size = this->size(); 29761: if (__pos < __size) 29761: { 29761: const _CharT* __data = _M_data(); 29761: const size_type __n = __size - __pos; 29761: const _CharT* __p = traits_type::find(__data + __pos, __n, __c); 29761: if (__p) 29761: __ret = __p - __data; 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: rfind(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: const size_type __size = this->size(); 29761: if (__n <= __size) 29761: { 29761: __pos = std::min(size_type(__size - __n), __pos); 29761: const _CharT* __data = _M_data(); 29761: do 29761: { 29761: if (traits_type::compare(__data + __pos, __s, __n) == 0) 29761: return __pos; 29761: } 29761: while (__pos-- > 0); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: rfind(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __size = this->size(); 29761: if (__size) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: for (++__size; __size-- > 0; ) 29761: if (traits_type::eq(_M_data()[__size], __c)) 29761: return __size; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: for (; __n && __pos < this->size(); ++__pos) 29761: { 29761: const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); 29761: if (__p) 29761: return __pos; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: size_type __size = this->size(); 29761: if (__size && __n) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (traits_type::find(__s, __n, _M_data()[__size])) 29761: return __size; 29761: } 29761: while (__size-- != 0); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: for (; __pos < this->size(); ++__pos) 29761: if (!traits_type::find(__s, __n, _M_data()[__pos])) 29761: return __pos; 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_first_not_of(_CharT __c, size_type __pos) const noexcept 29761: { 29761: for (; __pos < this->size(); ++__pos) 29761: if (!traits_type::eq(_M_data()[__pos], __c)) 29761: return __pos; 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: size_type __size = this->size(); 29761: if (__size) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (!traits_type::find(__s, __n, _M_data()[__size])) 29761: return __size; 29761: } 29761: while (__size--); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_last_not_of(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __size = this->size(); 29761: if (__size) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (!traits_type::eq(_M_data()[__size], __c)) 29761: return __size; 29761: } 29761: while (__size--); 29761: } 29761: return npos; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: operator>>(basic_istream<_CharT, _Traits>& __in, 29761: basic_string<_CharT, _Traits, _Alloc>& __str) 29761: { 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29761: typedef typename __istream_type::ios_base __ios_base; 29761: typedef typename __istream_type::int_type __int_type; 29761: typedef typename __string_type::size_type __size_type; 29761: typedef ctype<_CharT> __ctype_type; 29761: typedef typename __ctype_type::ctype_base __ctype_base; 29761: 29761: __size_type __extracted = 0; 29761: typename __ios_base::iostate __err = __ios_base::goodbit; 29761: typename __istream_type::sentry __cerb(__in, false); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: 29761: __str.erase(); 29761: _CharT __buf[128]; 29761: __size_type __len = 0; 29761: const streamsize __w = __in.width(); 29761: const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) 29761: : __str.max_size(); 29761: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29761: const __int_type __eof = _Traits::eof(); 29761: __int_type __c = __in.rdbuf()->sgetc(); 29761: 29761: while (__extracted < __n 29761: && !_Traits::eq_int_type(__c, __eof) 29761: && !__ct.is(__ctype_base::space, 29761: _Traits::to_char_type(__c))) 29761: { 29761: if (__len == sizeof(__buf) / sizeof(_CharT)) 29761: { 29761: __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); 29761: __len = 0; 29761: } 29761: __buf[__len++] = _Traits::to_char_type(__c); 29761: ++__extracted; 29761: __c = __in.rdbuf()->snextc(); 29761: } 29761: __str.append(__buf, __len); 29761: 29761: if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) 29761: __err |= __ios_base::eofbit; 29761: __in.width(0); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(__ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { 29761: 29761: 29761: 29761: __in._M_setstate(__ios_base::badbit); 29761: } 29761: } 29761: 29761: if (!__extracted) 29761: __err |= __ios_base::failbit; 29761: if (__err) 29761: __in.setstate(__err); 29761: return __in; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: getline(basic_istream<_CharT, _Traits>& __in, 29761: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 29761: { 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29761: typedef typename __istream_type::ios_base __ios_base; 29761: typedef typename __istream_type::int_type __int_type; 29761: typedef typename __string_type::size_type __size_type; 29761: 29761: __size_type __extracted = 0; 29761: const __size_type __n = __str.max_size(); 29761: typename __ios_base::iostate __err = __ios_base::goodbit; 29761: typename __istream_type::sentry __cerb(__in, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: __str.erase(); 29761: const __int_type __idelim = _Traits::to_int_type(__delim); 29761: const __int_type __eof = _Traits::eof(); 29761: __int_type __c = __in.rdbuf()->sgetc(); 29761: 29761: while (__extracted < __n 29761: && !_Traits::eq_int_type(__c, __eof) 29761: && !_Traits::eq_int_type(__c, __idelim)) 29761: { 29761: __str += _Traits::to_char_type(__c); 29761: ++__extracted; 29761: __c = __in.rdbuf()->snextc(); 29761: } 29761: 29761: if (_Traits::eq_int_type(__c, __eof)) 29761: __err |= __ios_base::eofbit; 29761: else if (_Traits::eq_int_type(__c, __idelim)) 29761: { 29761: ++__extracted; 29761: __in.rdbuf()->sbumpc(); 29761: } 29761: else 29761: __err |= __ios_base::failbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(__ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { 29761: 29761: 29761: 29761: __in._M_setstate(__ios_base::badbit); 29761: } 29761: } 29761: if (!__extracted) 29761: __err |= __ios_base::failbit; 29761: if (__err) 29761: __in.setstate(__err); 29761: return __in; 29761: } 29761: # 977 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: extern template class basic_string; 29761: # 990 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: extern template 29761: basic_istream& 29761: operator>>(basic_istream&, string&); 29761: extern template 29761: basic_ostream& 29761: operator<<(basic_ostream&, const string&); 29761: extern template 29761: basic_istream& 29761: getline(basic_istream&, string&, char); 29761: extern template 29761: basic_istream& 29761: getline(basic_istream&, string&); 29761: 29761: 29761: 29761: extern template class basic_string; 29761: # 1016 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: extern template 29761: basic_istream& 29761: operator>>(basic_istream&, wstring&); 29761: extern template 29761: basic_ostream& 29761: operator<<(basic_ostream&, const wstring&); 29761: extern template 29761: basic_istream& 29761: getline(basic_istream&, wstring&, wchar_t); 29761: extern template 29761: basic_istream& 29761: getline(basic_istream&, wstring&); 29761: 29761: 29761: 29761: 29761: } 29761: # 56 "/usr/include/c++/14/string" 2 3 29761: # 65 "/usr/include/c++/14/string" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 66 "/usr/include/c++/14/string" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr { 29761: template> 29761: using basic_string = std::basic_string<_CharT, _Traits, 29761: polymorphic_allocator<_CharT>>; 29761: using string = basic_string; 29761: 29761: 29761: 29761: using u16string = basic_string; 29761: using u32string = basic_string; 29761: using wstring = basic_string; 29761: } 29761: 29761: } 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/usr/include/c++/14/unordered_set" 1 3 29761: # 32 "/usr/include/c++/14/unordered_set" 3 29761: 29761: # 33 "/usr/include/c++/14/unordered_set" 3 29761: # 41 "/usr/include/c++/14/unordered_set" 3 29761: # 1 "/usr/include/c++/14/bits/unordered_set.h" 1 3 29761: # 38 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: using __uset_traits = __detail::_Hashtable_traits<_Cache, true, true>; 29761: 29761: template, 29761: typename _Pred = std::equal_to<_Value>, 29761: typename _Alloc = std::allocator<_Value>, 29761: typename _Tr = __uset_traits<__cache_default<_Value, _Hash>::value>> 29761: using __uset_hashtable = _Hashtable<_Value, _Value, _Alloc, 29761: __detail::_Identity, _Pred, _Hash, 29761: __detail::_Mod_range_hashing, 29761: __detail::_Default_ranged_hash, 29761: __detail::_Prime_rehash_policy, _Tr>; 29761: 29761: 29761: template 29761: using __umset_traits = __detail::_Hashtable_traits<_Cache, true, false>; 29761: 29761: template, 29761: typename _Pred = std::equal_to<_Value>, 29761: typename _Alloc = std::allocator<_Value>, 29761: typename _Tr = __umset_traits<__cache_default<_Value, _Hash>::value>> 29761: using __umset_hashtable = _Hashtable<_Value, _Value, _Alloc, 29761: __detail::_Identity, 29761: _Pred, _Hash, 29761: __detail::_Mod_range_hashing, 29761: __detail::_Default_ranged_hash, 29761: __detail::_Prime_rehash_policy, _Tr>; 29761: 29761: template 29761: class unordered_multiset; 29761: # 100 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template, 29761: typename _Pred = equal_to<_Value>, 29761: typename _Alloc = allocator<_Value>> 29761: class unordered_set 29761: { 29761: typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 29761: _Hashtable _M_h; 29761: 29761: public: 29761: 29761: 29761: 29761: typedef typename _Hashtable::key_type key_type; 29761: typedef typename _Hashtable::value_type value_type; 29761: typedef typename _Hashtable::hasher hasher; 29761: typedef typename _Hashtable::key_equal key_equal; 29761: typedef typename _Hashtable::allocator_type allocator_type; 29761: 29761: 29761: 29761: 29761: typedef typename _Hashtable::pointer pointer; 29761: typedef typename _Hashtable::const_pointer const_pointer; 29761: typedef typename _Hashtable::reference reference; 29761: typedef typename _Hashtable::const_reference const_reference; 29761: typedef typename _Hashtable::iterator iterator; 29761: typedef typename _Hashtable::const_iterator const_iterator; 29761: typedef typename _Hashtable::local_iterator local_iterator; 29761: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29761: typedef typename _Hashtable::size_type size_type; 29761: typedef typename _Hashtable::difference_type difference_type; 29761: 29761: 29761: 29761: using node_type = typename _Hashtable::node_type; 29761: using insert_return_type = typename _Hashtable::insert_return_type; 29761: 29761: 29761: 29761: 29761: 29761: unordered_set() = default; 29761: # 151 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: explicit 29761: unordered_set(size_type __n, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__n, __hf, __eql, __a) 29761: { } 29761: # 172 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: unordered_set(_InputIterator __first, _InputIterator __last, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__first, __last, __n, __hf, __eql, __a) 29761: { } 29761: 29761: 29761: unordered_set(const unordered_set&) = default; 29761: 29761: 29761: unordered_set(unordered_set&&) = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: unordered_set(const allocator_type& __a) 29761: : _M_h(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_set(const unordered_set& __uset, 29761: const allocator_type& __a) 29761: : _M_h(__uset._M_h, __a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_set(unordered_set&& __uset, 29761: const allocator_type& __a) 29761: noexcept( noexcept(_Hashtable(std::move(__uset._M_h), __a)) ) 29761: : _M_h(std::move(__uset._M_h), __a) 29761: { } 29761: # 228 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: unordered_set(initializer_list __l, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__l, __n, __hf, __eql, __a) 29761: { } 29761: 29761: unordered_set(size_type __n, const allocator_type& __a) 29761: : unordered_set(__n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_set(size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_set(__n, __hf, key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_set(_InputIterator __first, _InputIterator __last, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_set(_InputIterator __first, _InputIterator __last, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_set(__first, __last, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: unordered_set(initializer_list __l, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_set(__l, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_set(initializer_list __l, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_set(__l, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: 29761: unordered_set& 29761: operator=(const unordered_set&) = default; 29761: 29761: 29761: unordered_set& 29761: operator=(unordered_set&&) = default; 29761: # 290 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: unordered_set& 29761: operator=(initializer_list __l) 29761: { 29761: _M_h = __l; 29761: return *this; 29761: } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _M_h.get_allocator(); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_h.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_h.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_h.max_size(); } 29761: # 326 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: begin() noexcept 29761: { return _M_h.begin(); } 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_h.end(); } 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_h.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_h.end(); } 29761: # 382 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: std::pair 29761: emplace(_Args&&... __args) 29761: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29761: # 408 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29761: # 427 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: std::pair 29761: insert(const value_type& __x) 29761: { return _M_h.insert(__x); } 29761: 29761: std::pair 29761: insert(value_type&& __x) 29761: { return _M_h.insert(std::move(__x)); } 29761: # 456 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: insert(const_iterator __hint, const value_type& __x) 29761: { return _M_h.insert(__hint, __x); } 29761: 29761: iterator 29761: insert(const_iterator __hint, value_type&& __x) 29761: { return _M_h.insert(__hint, std::move(__x)); } 29761: # 474 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_h.insert(__first, __last); } 29761: # 486 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { _M_h.insert(__l); } 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_h.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __key) 29761: { return _M_h.extract(__key); } 29761: 29761: 29761: insert_return_type 29761: insert(node_type&& __nh) 29761: { return _M_h._M_reinsert_node(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator, node_type&& __nh) 29761: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 29761: # 529 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_h.erase(__position); } 29761: 29761: 29761: iterator 29761: erase(iterator __position) 29761: { return _M_h.erase(__position); } 29761: # 551 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_h.erase(__x); } 29761: # 569 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_h.erase(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_h.clear(); } 29761: # 592 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: swap(unordered_set& __x) 29761: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29761: { _M_h.swap(__x._M_h); } 29761: 29761: 29761: template 29761: friend class std::_Hash_merge_helper; 29761: 29761: template 29761: void 29761: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Hash_merge_helper; 29761: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Hash_merge_helper; 29761: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: hasher 29761: hash_function() const 29761: { return _M_h.hash_function(); } 29761: 29761: 29761: 29761: key_equal 29761: key_eq() const 29761: { return _M_h.key_eq(); } 29761: # 656 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_h.find(__x); } 29761: # 668 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_h.find(__x); } 29761: # 691 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_h.count(__x); } 29761: # 732 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_h.equal_range(__x); } 29761: # 744 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_h.equal_range(__x); } 29761: # 760 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: bucket_count() const noexcept 29761: { return _M_h.bucket_count(); } 29761: 29761: 29761: size_type 29761: max_bucket_count() const noexcept 29761: { return _M_h.max_bucket_count(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_size(size_type __n) const 29761: { return _M_h.bucket_size(__n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket(const key_type& __key) const 29761: { return _M_h.bucket(__key); } 29761: # 794 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: local_iterator 29761: begin(size_type __n) 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: begin(size_type __n) const 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: cbegin(size_type __n) const 29761: { return _M_h.cbegin(__n); } 29761: # 814 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: local_iterator 29761: end(size_type __n) 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: end(size_type __n) const 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: cend(size_type __n) const 29761: { return _M_h.cend(__n); } 29761: 29761: 29761: 29761: 29761: 29761: float 29761: load_factor() const noexcept 29761: { return _M_h.load_factor(); } 29761: 29761: 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_h.max_load_factor(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: max_load_factor(float __z) 29761: { _M_h.max_load_factor(__z); } 29761: # 855 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: rehash(size_type __n) 29761: { _M_h.rehash(__n); } 29761: # 866 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: reserve(size_type __n) 29761: { _M_h.reserve(__n); } 29761: 29761: template 29761: friend bool 29761: operator==(const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, 29761: const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&); 29761: }; 29761: 29761: 29761: 29761: template::value_type>, 29761: typename _Pred = 29761: equal_to::value_type>, 29761: typename _Allocator = 29761: allocator::value_type>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_set(_InputIterator, _InputIterator, 29761: unordered_set::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29761: -> unordered_set::value_type, 29761: _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename _Pred = equal_to<_Tp>, 29761: typename _Allocator = allocator<_Tp>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_set(initializer_list<_Tp>, 29761: unordered_set::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29761: -> unordered_set<_Tp, _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_set(_InputIterator, _InputIterator, 29761: unordered_set::size_type, _Allocator) 29761: -> unordered_set::value_type, 29761: hash< 29761: typename iterator_traits<_InputIterator>::value_type>, 29761: equal_to< 29761: typename iterator_traits<_InputIterator>::value_type>, 29761: _Allocator>; 29761: 29761: template, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_set(_InputIterator, _InputIterator, 29761: unordered_set::size_type, 29761: _Hash, _Allocator) 29761: -> unordered_set::value_type, 29761: _Hash, 29761: equal_to< 29761: typename iterator_traits<_InputIterator>::value_type>, 29761: _Allocator>; 29761: 29761: template> 29761: unordered_set(initializer_list<_Tp>, 29761: unordered_set::size_type, _Allocator) 29761: -> unordered_set<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_set(initializer_list<_Tp>, 29761: unordered_set::size_type, _Hash, _Allocator) 29761: -> unordered_set<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 29761: # 968 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template, 29761: typename _Pred = equal_to<_Value>, 29761: typename _Alloc = allocator<_Value>> 29761: class unordered_multiset 29761: { 29761: typedef __umset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 29761: _Hashtable _M_h; 29761: 29761: public: 29761: 29761: 29761: 29761: typedef typename _Hashtable::key_type key_type; 29761: typedef typename _Hashtable::value_type value_type; 29761: typedef typename _Hashtable::hasher hasher; 29761: typedef typename _Hashtable::key_equal key_equal; 29761: typedef typename _Hashtable::allocator_type allocator_type; 29761: 29761: 29761: 29761: 29761: typedef typename _Hashtable::pointer pointer; 29761: typedef typename _Hashtable::const_pointer const_pointer; 29761: typedef typename _Hashtable::reference reference; 29761: typedef typename _Hashtable::const_reference const_reference; 29761: typedef typename _Hashtable::iterator iterator; 29761: typedef typename _Hashtable::const_iterator const_iterator; 29761: typedef typename _Hashtable::local_iterator local_iterator; 29761: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29761: typedef typename _Hashtable::size_type size_type; 29761: typedef typename _Hashtable::difference_type difference_type; 29761: 29761: 29761: 29761: using node_type = typename _Hashtable::node_type; 29761: 29761: 29761: 29761: 29761: 29761: unordered_multiset() = default; 29761: # 1018 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: explicit 29761: unordered_multiset(size_type __n, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__n, __hf, __eql, __a) 29761: { } 29761: # 1039 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: unordered_multiset(_InputIterator __first, _InputIterator __last, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__first, __last, __n, __hf, __eql, __a) 29761: { } 29761: 29761: 29761: unordered_multiset(const unordered_multiset&) = default; 29761: 29761: 29761: unordered_multiset(unordered_multiset&&) = default; 29761: # 1065 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: unordered_multiset(initializer_list __l, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__l, __n, __hf, __eql, __a) 29761: { } 29761: 29761: 29761: unordered_multiset& 29761: operator=(const unordered_multiset&) = default; 29761: 29761: 29761: unordered_multiset& 29761: operator=(unordered_multiset&&) = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: unordered_multiset(const allocator_type& __a) 29761: : _M_h(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_multiset(const unordered_multiset& __umset, 29761: const allocator_type& __a) 29761: : _M_h(__umset._M_h, __a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_multiset(unordered_multiset&& __umset, 29761: const allocator_type& __a) 29761: noexcept( noexcept(_Hashtable(std::move(__umset._M_h), __a)) ) 29761: : _M_h(std::move(__umset._M_h), __a) 29761: { } 29761: 29761: unordered_multiset(size_type __n, const allocator_type& __a) 29761: : unordered_multiset(__n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_multiset(size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multiset(__n, __hf, key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_multiset(_InputIterator __first, _InputIterator __last, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_multiset(__first, __last, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_multiset(_InputIterator __first, _InputIterator __last, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multiset(__first, __last, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: unordered_multiset(initializer_list __l, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_multiset(__l, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_multiset(initializer_list __l, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multiset(__l, __n, __hf, key_equal(), __a) 29761: { } 29761: # 1157 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: unordered_multiset& 29761: operator=(initializer_list __l) 29761: { 29761: _M_h = __l; 29761: return *this; 29761: } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _M_h.get_allocator(); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_h.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_h.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_h.max_size(); } 29761: # 1193 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: begin() noexcept 29761: { return _M_h.begin(); } 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_h.end(); } 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_h.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_h.end(); } 29761: # 1241 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: iterator 29761: emplace(_Args&&... __args) 29761: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29761: # 1263 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29761: # 1276 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: insert(const value_type& __x) 29761: { return _M_h.insert(__x); } 29761: 29761: iterator 29761: insert(value_type&& __x) 29761: { return _M_h.insert(std::move(__x)); } 29761: # 1302 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: insert(const_iterator __hint, const value_type& __x) 29761: { return _M_h.insert(__hint, __x); } 29761: 29761: iterator 29761: insert(const_iterator __hint, value_type&& __x) 29761: { return _M_h.insert(__hint, std::move(__x)); } 29761: # 1319 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_h.insert(__first, __last); } 29761: # 1331 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { _M_h.insert(__l); } 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_h.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __key) 29761: { return _M_h.extract(__key); } 29761: 29761: 29761: iterator 29761: insert(node_type&& __nh) 29761: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 29761: # 1375 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_h.erase(__position); } 29761: 29761: 29761: iterator 29761: erase(iterator __position) 29761: { return _M_h.erase(__position); } 29761: # 1398 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_h.erase(__x); } 29761: # 1418 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_h.erase(__first, __last); } 29761: # 1429 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: clear() noexcept 29761: { _M_h.clear(); } 29761: # 1442 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: swap(unordered_multiset& __x) 29761: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29761: { _M_h.swap(__x._M_h); } 29761: 29761: 29761: template 29761: friend class std::_Hash_merge_helper; 29761: 29761: template 29761: void 29761: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper 29761: = _Hash_merge_helper; 29761: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper 29761: = _Hash_merge_helper; 29761: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: hasher 29761: hash_function() const 29761: { return _M_h.hash_function(); } 29761: 29761: 29761: 29761: key_equal 29761: key_eq() const 29761: { return _M_h.key_eq(); } 29761: # 1508 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_h.find(__x); } 29761: # 1520 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_h.find(__x); } 29761: # 1539 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_h.count(__x); } 29761: # 1577 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_h.equal_range(__x); } 29761: # 1589 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_h.equal_range(__x); } 29761: # 1605 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: bucket_count() const noexcept 29761: { return _M_h.bucket_count(); } 29761: 29761: 29761: size_type 29761: max_bucket_count() const noexcept 29761: { return _M_h.max_bucket_count(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_size(size_type __n) const 29761: { return _M_h.bucket_size(__n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket(const key_type& __key) const 29761: { return _M_h.bucket(__key); } 29761: # 1639 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: local_iterator 29761: begin(size_type __n) 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: begin(size_type __n) const 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: cbegin(size_type __n) const 29761: { return _M_h.cbegin(__n); } 29761: # 1659 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: local_iterator 29761: end(size_type __n) 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: end(size_type __n) const 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: cend(size_type __n) const 29761: { return _M_h.cend(__n); } 29761: 29761: 29761: 29761: 29761: 29761: float 29761: load_factor() const noexcept 29761: { return _M_h.load_factor(); } 29761: 29761: 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_h.max_load_factor(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: max_load_factor(float __z) 29761: { _M_h.max_load_factor(__z); } 29761: # 1700 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: rehash(size_type __n) 29761: { _M_h.rehash(__n); } 29761: # 1711 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: reserve(size_type __n) 29761: { _M_h.reserve(__n); } 29761: 29761: template 29761: friend bool 29761: operator==(const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, 29761: const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&); 29761: }; 29761: 29761: 29761: 29761: 29761: template::value_type>, 29761: typename _Pred = 29761: equal_to::value_type>, 29761: typename _Allocator = 29761: allocator::value_type>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multiset(_InputIterator, _InputIterator, 29761: unordered_multiset::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), 29761: _Allocator = _Allocator()) 29761: -> unordered_multiset::value_type, 29761: _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename _Pred = equal_to<_Tp>, 29761: typename _Allocator = allocator<_Tp>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multiset(initializer_list<_Tp>, 29761: unordered_multiset::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), 29761: _Allocator = _Allocator()) 29761: -> unordered_multiset<_Tp, _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multiset(_InputIterator, _InputIterator, 29761: unordered_multiset::size_type, _Allocator) 29761: -> unordered_multiset::value_type, 29761: hash::value_type>, 29761: equal_to::value_type>, 29761: _Allocator>; 29761: 29761: template, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multiset(_InputIterator, _InputIterator, 29761: unordered_multiset::size_type, 29761: _Hash, _Allocator) 29761: -> unordered_multiset::value_type, 29761: _Hash, 29761: equal_to< 29761: typename 29761: iterator_traits<_InputIterator>::value_type>, 29761: _Allocator>; 29761: 29761: template> 29761: unordered_multiset(initializer_list<_Tp>, 29761: unordered_multiset::size_type, _Allocator) 29761: -> unordered_multiset<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multiset(initializer_list<_Tp>, 29761: unordered_multiset::size_type, _Hash, _Allocator) 29761: -> unordered_multiset<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29761: unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: template 29761: inline void 29761: swap(unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29761: unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: template 29761: inline bool 29761: operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29761: { return __x._M_h._M_equal(__y._M_h); } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29761: { return __x._M_h._M_equal(__y._M_h); } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hash_merge_helper< 29761: std::unordered_set<_Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> 29761: { 29761: private: 29761: template 29761: using unordered_set = std::unordered_set<_Tp...>; 29761: template 29761: using unordered_multiset = std::unordered_multiset<_Tp...>; 29761: 29761: friend unordered_set<_Val, _Hash1, _Eq1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 29761: { return __set._M_h; } 29761: 29761: static auto& 29761: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 29761: { return __set._M_h; } 29761: }; 29761: 29761: 29761: template 29761: struct _Hash_merge_helper< 29761: std::unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>, 29761: _Hash2, _Eq2> 29761: { 29761: private: 29761: template 29761: using unordered_set = std::unordered_set<_Tp...>; 29761: template 29761: using unordered_multiset = std::unordered_multiset<_Tp...>; 29761: 29761: friend unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 29761: { return __set._M_h; } 29761: 29761: static auto& 29761: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 29761: { return __set._M_h; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 42 "/usr/include/c++/14/unordered_set" 2 3 29761: # 54 "/usr/include/c++/14/unordered_set" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 55 "/usr/include/c++/14/unordered_set" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template, 29761: typename _Pred = std::equal_to<_Key>> 29761: using unordered_set 29761: = std::unordered_set<_Key, _Hash, _Pred, 29761: polymorphic_allocator<_Key>>; 29761: template, 29761: typename _Pred = std::equal_to<_Key>> 29761: using unordered_multiset 29761: = std::unordered_multiset<_Key, _Hash, _Pred, 29761: polymorphic_allocator<_Key>>; 29761: } 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/optional" 1 3 29761: # 33 "/usr/include/c++/14/optional" 3 29761: 29761: # 34 "/usr/include/c++/14/optional" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 38 "/usr/include/c++/14/optional" 2 3 29761: # 58 "/usr/include/c++/14/optional" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class optional; 29761: 29761: 29761: struct nullopt_t 29761: { 29761: 29761: 29761: 29761: 29761: 29761: enum class _Construct { _Token }; 29761: 29761: 29761: explicit constexpr nullopt_t(_Construct) noexcept { } 29761: }; 29761: 29761: 29761: inline constexpr nullopt_t nullopt { nullopt_t::_Construct::_Token }; 29761: 29761: template struct _Optional_func { _Fn& _M_f; }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class bad_optional_access : public exception 29761: { 29761: public: 29761: bad_optional_access() = default; 29761: virtual ~bad_optional_access() = default; 29761: 29761: const char* what() const noexcept override 29761: { return "bad optional access"; } 29761: }; 29761: 29761: 29761: [[__noreturn__]] inline void 29761: __throw_bad_optional_access() 29761: { (throw (bad_optional_access())); } 29761: 29761: 29761: 29761: template 29761: struct _Optional_payload_base 29761: { 29761: using _Stored_type = remove_const_t<_Tp>; 29761: 29761: _Optional_payload_base() = default; 29761: ~_Optional_payload_base() = default; 29761: 29761: template 29761: constexpr 29761: _Optional_payload_base(in_place_t __tag, _Args&&... __args) 29761: : _M_payload(__tag, std::forward<_Args>(__args)...), 29761: _M_engaged(true) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Optional_payload_base(std::initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : _M_payload(__il, std::forward<_Args>(__args)...), 29761: _M_engaged(true) 29761: { } 29761: 29761: 29761: 29761: constexpr 29761: _Optional_payload_base(bool , 29761: const _Optional_payload_base& __other) 29761: { 29761: if (__other._M_engaged) 29761: this->_M_construct(__other._M_get()); 29761: } 29761: 29761: 29761: 29761: constexpr 29761: _Optional_payload_base(bool , 29761: _Optional_payload_base&& __other) 29761: { 29761: if (__other._M_engaged) 29761: this->_M_construct(std::move(__other._M_get())); 29761: } 29761: 29761: 29761: 29761: _Optional_payload_base(const _Optional_payload_base&) = default; 29761: 29761: 29761: 29761: _Optional_payload_base(_Optional_payload_base&&) = default; 29761: 29761: _Optional_payload_base& 29761: operator=(const _Optional_payload_base&) = default; 29761: 29761: _Optional_payload_base& 29761: operator=(_Optional_payload_base&&) = default; 29761: 29761: 29761: constexpr void 29761: _M_copy_assign(const _Optional_payload_base& __other) 29761: { 29761: if (this->_M_engaged && __other._M_engaged) 29761: this->_M_get() = __other._M_get(); 29761: else 29761: { 29761: if (__other._M_engaged) 29761: this->_M_construct(__other._M_get()); 29761: else 29761: this->_M_reset(); 29761: } 29761: } 29761: 29761: 29761: constexpr void 29761: _M_move_assign(_Optional_payload_base&& __other) 29761: noexcept(__and_v, 29761: is_nothrow_move_assignable<_Tp>>) 29761: { 29761: if (this->_M_engaged && __other._M_engaged) 29761: this->_M_get() = std::move(__other._M_get()); 29761: else 29761: { 29761: if (__other._M_engaged) 29761: this->_M_construct(std::move(__other._M_get())); 29761: else 29761: this->_M_reset(); 29761: } 29761: } 29761: 29761: struct _Empty_byte { }; 29761: 29761: template> 29761: union _Storage 29761: { 29761: constexpr _Storage() noexcept : _M_empty() { } 29761: 29761: template 29761: constexpr 29761: _Storage(in_place_t, _Args&&... __args) 29761: : _M_value(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 29761: : _M_value(__il, std::forward<_Args>(__args)...) 29761: { } 29761: # 228 "/usr/include/c++/14/optional" 3 29761: _Empty_byte _M_empty; 29761: _Up _M_value; 29761: }; 29761: 29761: template 29761: union _Storage<_Up, false> 29761: { 29761: constexpr _Storage() noexcept : _M_empty() { } 29761: 29761: template 29761: constexpr 29761: _Storage(in_place_t, _Args&&... __args) 29761: : _M_value(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 29761: : _M_value(__il, std::forward<_Args>(__args)...) 29761: { } 29761: # 259 "/usr/include/c++/14/optional" 3 29761: ~_Storage() { } 29761: 29761: _Empty_byte _M_empty; 29761: _Up _M_value; 29761: }; 29761: 29761: _Storage<_Stored_type> _M_payload; 29761: 29761: bool _M_engaged = false; 29761: 29761: template 29761: constexpr void 29761: _M_construct(_Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 29761: { 29761: std::_Construct(std::__addressof(this->_M_payload._M_value), 29761: std::forward<_Args>(__args)...); 29761: this->_M_engaged = true; 29761: } 29761: 29761: constexpr void 29761: _M_destroy() noexcept 29761: { 29761: _M_engaged = false; 29761: _M_payload._M_value.~_Stored_type(); 29761: } 29761: # 301 "/usr/include/c++/14/optional" 3 29761: constexpr _Tp& 29761: _M_get() noexcept 29761: { return this->_M_payload._M_value; } 29761: 29761: constexpr const _Tp& 29761: _M_get() const noexcept 29761: { return this->_M_payload._M_value; } 29761: 29761: 29761: constexpr void 29761: _M_reset() noexcept 29761: { 29761: if (this->_M_engaged) 29761: _M_destroy(); 29761: else 29761: this->_M_engaged = false; 29761: } 29761: }; 29761: 29761: 29761: template , 29761: bool = 29761: is_trivially_copy_assignable_v<_Tp> 29761: && is_trivially_copy_constructible_v<_Tp>, 29761: bool = 29761: is_trivially_move_assignable_v<_Tp> 29761: && is_trivially_move_constructible_v<_Tp>> 29761: struct _Optional_payload; 29761: 29761: 29761: template 29761: struct _Optional_payload<_Tp, true, true, true> 29761: : _Optional_payload_base<_Tp> 29761: { 29761: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29761: 29761: _Optional_payload() = default; 29761: }; 29761: 29761: 29761: template 29761: struct _Optional_payload<_Tp, true, false, true> 29761: : _Optional_payload_base<_Tp> 29761: { 29761: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29761: 29761: _Optional_payload() = default; 29761: ~_Optional_payload() = default; 29761: _Optional_payload(const _Optional_payload&) = default; 29761: _Optional_payload(_Optional_payload&&) = default; 29761: _Optional_payload& operator=(_Optional_payload&&) = default; 29761: 29761: 29761: constexpr 29761: _Optional_payload& 29761: operator=(const _Optional_payload& __other) 29761: { 29761: this->_M_copy_assign(__other); 29761: return *this; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Optional_payload<_Tp, true, true, false> 29761: : _Optional_payload_base<_Tp> 29761: { 29761: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29761: 29761: _Optional_payload() = default; 29761: ~_Optional_payload() = default; 29761: _Optional_payload(const _Optional_payload&) = default; 29761: _Optional_payload(_Optional_payload&&) = default; 29761: _Optional_payload& operator=(const _Optional_payload&) = default; 29761: 29761: 29761: constexpr 29761: _Optional_payload& 29761: operator=(_Optional_payload&& __other) 29761: noexcept(__and_v, 29761: is_nothrow_move_assignable<_Tp>>) 29761: { 29761: this->_M_move_assign(std::move(__other)); 29761: return *this; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Optional_payload<_Tp, true, false, false> 29761: : _Optional_payload_base<_Tp> 29761: { 29761: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29761: 29761: _Optional_payload() = default; 29761: ~_Optional_payload() = default; 29761: _Optional_payload(const _Optional_payload&) = default; 29761: _Optional_payload(_Optional_payload&&) = default; 29761: 29761: 29761: constexpr 29761: _Optional_payload& 29761: operator=(const _Optional_payload& __other) 29761: { 29761: this->_M_copy_assign(__other); 29761: return *this; 29761: } 29761: 29761: 29761: constexpr 29761: _Optional_payload& 29761: operator=(_Optional_payload&& __other) 29761: noexcept(__and_v, 29761: is_nothrow_move_assignable<_Tp>>) 29761: { 29761: this->_M_move_assign(std::move(__other)); 29761: return *this; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Optional_payload<_Tp, false, _Copy, _Move> 29761: : _Optional_payload<_Tp, true, false, false> 29761: { 29761: 29761: using _Optional_payload<_Tp, true, false, false>::_Optional_payload; 29761: _Optional_payload() = default; 29761: _Optional_payload(const _Optional_payload&) = default; 29761: _Optional_payload(_Optional_payload&&) = default; 29761: _Optional_payload& operator=(const _Optional_payload&) = default; 29761: _Optional_payload& operator=(_Optional_payload&&) = default; 29761: 29761: 29761: ~_Optional_payload() { this->_M_reset(); } 29761: }; 29761: 29761: 29761: 29761: template 29761: class _Optional_base_impl 29761: { 29761: protected: 29761: using _Stored_type = remove_const_t<_Tp>; 29761: 29761: 29761: 29761: template 29761: constexpr void 29761: _M_construct(_Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 29761: { 29761: static_cast<_Dp*>(this)->_M_payload._M_construct( 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: constexpr void 29761: _M_destruct() noexcept 29761: { static_cast<_Dp*>(this)->_M_payload._M_destroy(); } 29761: 29761: 29761: constexpr void 29761: _M_reset() noexcept 29761: { static_cast<_Dp*>(this)->_M_payload._M_reset(); } 29761: 29761: constexpr bool _M_is_engaged() const noexcept 29761: { return static_cast(this)->_M_payload._M_engaged; } 29761: 29761: 29761: constexpr _Tp& 29761: _M_get() noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) std::__glibcxx_assert_fail(); } while (false); 29761: return static_cast<_Dp*>(this)->_M_payload._M_get(); 29761: } 29761: 29761: constexpr const _Tp& 29761: _M_get() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) std::__glibcxx_assert_fail(); } while (false); 29761: return static_cast(this)->_M_payload._M_get(); 29761: } 29761: }; 29761: # 505 "/usr/include/c++/14/optional" 3 29761: template, 29761: bool = is_trivially_move_constructible_v<_Tp>> 29761: struct _Optional_base 29761: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29761: { 29761: 29761: constexpr _Optional_base() = default; 29761: 29761: 29761: template, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, _Args&&... __args) 29761: : _M_payload(in_place, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template&, 29761: _Args...>, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, 29761: initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: 29761: constexpr 29761: _Optional_base(const _Optional_base& __other) 29761: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 29761: { } 29761: 29761: constexpr 29761: _Optional_base(_Optional_base&& __other) 29761: noexcept(is_nothrow_move_constructible_v<_Tp>) 29761: : _M_payload(__other._M_payload._M_engaged, 29761: std::move(__other._M_payload)) 29761: { } 29761: 29761: 29761: _Optional_base& operator=(const _Optional_base&) = default; 29761: _Optional_base& operator=(_Optional_base&&) = default; 29761: 29761: _Optional_payload<_Tp> _M_payload; 29761: }; 29761: 29761: template 29761: struct _Optional_base<_Tp, false, true> 29761: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29761: { 29761: 29761: constexpr _Optional_base() = default; 29761: 29761: 29761: template, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, _Args&&... __args) 29761: : _M_payload(in_place, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template&, 29761: _Args...>, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, 29761: initializer_list<_Up> __il, 29761: _Args... __args) 29761: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: 29761: constexpr _Optional_base(const _Optional_base& __other) 29761: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 29761: { } 29761: 29761: constexpr _Optional_base(_Optional_base&& __other) = default; 29761: 29761: 29761: _Optional_base& operator=(const _Optional_base&) = default; 29761: _Optional_base& operator=(_Optional_base&&) = default; 29761: 29761: _Optional_payload<_Tp> _M_payload; 29761: }; 29761: 29761: template 29761: struct _Optional_base<_Tp, true, false> 29761: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29761: { 29761: 29761: constexpr _Optional_base() = default; 29761: 29761: 29761: template, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, _Args&&... __args) 29761: : _M_payload(in_place, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template&, 29761: _Args...>, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, 29761: initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: 29761: constexpr _Optional_base(const _Optional_base& __other) = default; 29761: 29761: constexpr 29761: _Optional_base(_Optional_base&& __other) 29761: noexcept(is_nothrow_move_constructible_v<_Tp>) 29761: : _M_payload(__other._M_payload._M_engaged, 29761: std::move(__other._M_payload)) 29761: { } 29761: 29761: 29761: _Optional_base& operator=(const _Optional_base&) = default; 29761: _Optional_base& operator=(_Optional_base&&) = default; 29761: 29761: _Optional_payload<_Tp> _M_payload; 29761: }; 29761: 29761: template 29761: struct _Optional_base<_Tp, true, true> 29761: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29761: { 29761: 29761: constexpr _Optional_base() = default; 29761: 29761: 29761: template, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, _Args&&... __args) 29761: : _M_payload(in_place, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template&, 29761: _Args...>, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, 29761: initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: 29761: constexpr _Optional_base(const _Optional_base& __other) = default; 29761: constexpr _Optional_base(_Optional_base&& __other) = default; 29761: 29761: 29761: _Optional_base& operator=(const _Optional_base&) = default; 29761: _Optional_base& operator=(_Optional_base&&) = default; 29761: 29761: _Optional_payload<_Tp> _M_payload; 29761: }; 29761: 29761: template 29761: class optional; 29761: 29761: template 29761: inline constexpr bool __is_optional_v = false; 29761: template 29761: inline constexpr bool __is_optional_v> = true; 29761: 29761: template 29761: using __converts_from_optional = 29761: __or_&>, 29761: is_constructible<_Tp, optional<_Up>&>, 29761: is_constructible<_Tp, const optional<_Up>&&>, 29761: is_constructible<_Tp, optional<_Up>&&>, 29761: is_convertible&, _Tp>, 29761: is_convertible&, _Tp>, 29761: is_convertible&&, _Tp>, 29761: is_convertible&&, _Tp>>; 29761: 29761: template 29761: using __assigns_from_optional = 29761: __or_&>, 29761: is_assignable<_Tp&, optional<_Up>&>, 29761: is_assignable<_Tp&, const optional<_Up>&&>, 29761: is_assignable<_Tp&, optional<_Up>&&>>; 29761: 29761: 29761: 29761: 29761: template 29761: class optional 29761: : private _Optional_base<_Tp>, 29761: private _Enable_copy_move< 29761: 29761: is_copy_constructible_v<_Tp>, 29761: 29761: __and_v, is_copy_assignable<_Tp>>, 29761: 29761: is_move_constructible_v<_Tp>, 29761: 29761: __and_v, is_move_assignable<_Tp>>, 29761: 29761: optional<_Tp>> 29761: { 29761: static_assert(!is_same_v, nullopt_t>); 29761: static_assert(!is_same_v, in_place_t>); 29761: static_assert(is_object_v<_Tp> && !is_array_v<_Tp>); 29761: 29761: private: 29761: using _Base = _Optional_base<_Tp>; 29761: 29761: 29761: template 29761: using __not_self = __not_>>; 29761: template 29761: using __not_tag = __not_>>; 29761: template 29761: using _Requires = enable_if_t<__and_v<_Cond...>, bool>; 29761: 29761: public: 29761: using value_type = _Tp; 29761: 29761: constexpr optional() noexcept { } 29761: 29761: constexpr optional(nullopt_t) noexcept { } 29761: 29761: 29761: template, __not_tag<_Up>, 29761: is_constructible<_Tp, _Up>, 29761: is_convertible<_Up, _Tp>> = true> 29761: constexpr 29761: optional(_Up&& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29761: : _Base(std::in_place, std::forward<_Up>(__t)) { } 29761: 29761: template, __not_tag<_Up>, 29761: is_constructible<_Tp, _Up>, 29761: __not_>> = false> 29761: explicit constexpr 29761: optional(_Up&& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29761: : _Base(std::in_place, std::forward<_Up>(__t)) { } 29761: 29761: template>, 29761: is_constructible<_Tp, const _Up&>, 29761: is_convertible, 29761: __not_<__converts_from_optional<_Tp, _Up>>> = true> 29761: constexpr 29761: optional(const optional<_Up>& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 29761: { 29761: if (__t) 29761: emplace(*__t); 29761: } 29761: 29761: template>, 29761: is_constructible<_Tp, const _Up&>, 29761: __not_>, 29761: __not_<__converts_from_optional<_Tp, _Up>>> = false> 29761: explicit constexpr 29761: optional(const optional<_Up>& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 29761: { 29761: if (__t) 29761: emplace(*__t); 29761: } 29761: 29761: template>, 29761: is_constructible<_Tp, _Up>, 29761: is_convertible<_Up, _Tp>, 29761: __not_<__converts_from_optional<_Tp, _Up>>> = true> 29761: constexpr 29761: optional(optional<_Up>&& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29761: { 29761: if (__t) 29761: emplace(std::move(*__t)); 29761: } 29761: 29761: template>, 29761: is_constructible<_Tp, _Up>, 29761: __not_>, 29761: __not_<__converts_from_optional<_Tp, _Up>>> = false> 29761: explicit constexpr 29761: optional(optional<_Up>&& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29761: { 29761: if (__t) 29761: emplace(std::move(*__t)); 29761: } 29761: 29761: template> = false> 29761: explicit constexpr 29761: optional(in_place_t, _Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29761: : _Base(std::in_place, std::forward<_Args>(__args)...) { } 29761: 29761: template&, 29761: _Args...>> = false> 29761: explicit constexpr 29761: optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 29761: _Args...>) 29761: : _Base(std::in_place, __il, std::forward<_Args>(__args)...) { } 29761: 29761: 29761: 29761: optional& 29761: operator=(nullopt_t) noexcept 29761: { 29761: this->_M_reset(); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: enable_if_t<__and_v<__not_self<_Up>, 29761: __not_<__and_, 29761: is_same<_Tp, decay_t<_Up>>>>, 29761: is_constructible<_Tp, _Up>, 29761: is_assignable<_Tp&, _Up>>, 29761: optional&> 29761: operator=(_Up&& __u) 29761: noexcept(__and_v, 29761: is_nothrow_assignable<_Tp&, _Up>>) 29761: { 29761: if (this->_M_is_engaged()) 29761: this->_M_get() = std::forward<_Up>(__u); 29761: else 29761: this->_M_construct(std::forward<_Up>(__u)); 29761: 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: enable_if_t<__and_v<__not_>, 29761: is_constructible<_Tp, const _Up&>, 29761: is_assignable<_Tp&, const _Up&>, 29761: __not_<__converts_from_optional<_Tp, _Up>>, 29761: __not_<__assigns_from_optional<_Tp, _Up>>>, 29761: optional&> 29761: operator=(const optional<_Up>& __u) 29761: noexcept(__and_v, 29761: is_nothrow_assignable<_Tp&, const _Up&>>) 29761: { 29761: if (__u) 29761: { 29761: if (this->_M_is_engaged()) 29761: this->_M_get() = *__u; 29761: else 29761: this->_M_construct(*__u); 29761: } 29761: else 29761: { 29761: this->_M_reset(); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: enable_if_t<__and_v<__not_>, 29761: is_constructible<_Tp, _Up>, 29761: is_assignable<_Tp&, _Up>, 29761: __not_<__converts_from_optional<_Tp, _Up>>, 29761: __not_<__assigns_from_optional<_Tp, _Up>>>, 29761: optional&> 29761: operator=(optional<_Up>&& __u) 29761: noexcept(__and_v, 29761: is_nothrow_assignable<_Tp&, _Up>>) 29761: { 29761: if (__u) 29761: { 29761: if (this->_M_is_engaged()) 29761: this->_M_get() = std::move(*__u); 29761: else 29761: this->_M_construct(std::move(*__u)); 29761: } 29761: else 29761: { 29761: this->_M_reset(); 29761: } 29761: 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: enable_if_t, _Tp&> 29761: emplace(_Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29761: { 29761: this->_M_reset(); 29761: this->_M_construct(std::forward<_Args>(__args)...); 29761: return this->_M_get(); 29761: } 29761: 29761: template 29761: 29761: enable_if_t&, _Args...>, 29761: _Tp&> 29761: emplace(initializer_list<_Up> __il, _Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 29761: _Args...>) 29761: { 29761: this->_M_reset(); 29761: this->_M_construct(__il, std::forward<_Args>(__args)...); 29761: return this->_M_get(); 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: swap(optional& __other) 29761: noexcept(is_nothrow_move_constructible_v<_Tp> 29761: && is_nothrow_swappable_v<_Tp>) 29761: { 29761: using std::swap; 29761: 29761: if (this->_M_is_engaged() && __other._M_is_engaged()) 29761: swap(this->_M_get(), __other._M_get()); 29761: else if (this->_M_is_engaged()) 29761: { 29761: __other._M_construct(std::move(this->_M_get())); 29761: this->_M_destruct(); 29761: } 29761: else if (__other._M_is_engaged()) 29761: { 29761: this->_M_construct(std::move(__other._M_get())); 29761: __other._M_destruct(); 29761: } 29761: } 29761: 29761: 29761: constexpr const _Tp* 29761: operator->() const noexcept 29761: { return std::__addressof(this->_M_get()); } 29761: 29761: constexpr _Tp* 29761: operator->() noexcept 29761: { return std::__addressof(this->_M_get()); } 29761: 29761: constexpr const _Tp& 29761: operator*() const& noexcept 29761: { return this->_M_get(); } 29761: 29761: constexpr _Tp& 29761: operator*()& noexcept 29761: { return this->_M_get(); } 29761: 29761: constexpr _Tp&& 29761: operator*()&& noexcept 29761: { return std::move(this->_M_get()); } 29761: 29761: constexpr const _Tp&& 29761: operator*() const&& noexcept 29761: { return std::move(this->_M_get()); } 29761: 29761: constexpr explicit operator bool() const noexcept 29761: { return this->_M_is_engaged(); } 29761: 29761: constexpr bool has_value() const noexcept 29761: { return this->_M_is_engaged(); } 29761: 29761: constexpr const _Tp& 29761: value() const& 29761: { 29761: if (this->_M_is_engaged()) 29761: return this->_M_get(); 29761: __throw_bad_optional_access(); 29761: } 29761: 29761: constexpr _Tp& 29761: value()& 29761: { 29761: if (this->_M_is_engaged()) 29761: return this->_M_get(); 29761: __throw_bad_optional_access(); 29761: } 29761: 29761: constexpr _Tp&& 29761: value()&& 29761: { 29761: if (this->_M_is_engaged()) 29761: return std::move(this->_M_get()); 29761: __throw_bad_optional_access(); 29761: } 29761: 29761: constexpr const _Tp&& 29761: value() const&& 29761: { 29761: if (this->_M_is_engaged()) 29761: return std::move(this->_M_get()); 29761: __throw_bad_optional_access(); 29761: } 29761: 29761: template 29761: constexpr _Tp 29761: value_or(_Up&& __u) const& 29761: { 29761: static_assert(is_copy_constructible_v<_Tp>); 29761: static_assert(is_convertible_v<_Up&&, _Tp>); 29761: 29761: if (this->_M_is_engaged()) 29761: return this->_M_get(); 29761: else 29761: return static_cast<_Tp>(std::forward<_Up>(__u)); 29761: } 29761: 29761: template 29761: constexpr _Tp 29761: value_or(_Up&& __u) && 29761: { 29761: static_assert(is_move_constructible_v<_Tp>); 29761: static_assert(is_convertible_v<_Up&&, _Tp>); 29761: 29761: if (this->_M_is_engaged()) 29761: return std::move(this->_M_get()); 29761: else 29761: return static_cast<_Tp>(std::forward<_Up>(__u)); 29761: } 29761: # 1180 "/usr/include/c++/14/optional" 3 29761: void reset() noexcept { this->_M_reset(); } 29761: 29761: private: 29761: # 1193 "/usr/include/c++/14/optional" 3 29761: }; 29761: 29761: template 29761: using __optional_relop_t = 29761: enable_if_t::value, bool>; 29761: 29761: template 29761: using __optional_eq_t = __optional_relop_t< 29761: decltype(std::declval() == std::declval()) 29761: >; 29761: 29761: template 29761: using __optional_ne_t = __optional_relop_t< 29761: decltype(std::declval() != std::declval()) 29761: >; 29761: 29761: template 29761: using __optional_lt_t = __optional_relop_t< 29761: decltype(std::declval() < std::declval()) 29761: >; 29761: 29761: template 29761: using __optional_gt_t = __optional_relop_t< 29761: decltype(std::declval() > std::declval()) 29761: >; 29761: 29761: template 29761: using __optional_le_t = __optional_relop_t< 29761: decltype(std::declval() <= std::declval()) 29761: >; 29761: 29761: template 29761: using __optional_ge_t = __optional_relop_t< 29761: decltype(std::declval() >= std::declval()) 29761: >; 29761: 29761: 29761: template 29761: constexpr auto 29761: operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_eq_t<_Tp, _Up> 29761: { 29761: return static_cast(__lhs) == static_cast(__rhs) 29761: && (!__lhs || *__lhs == *__rhs); 29761: } 29761: 29761: template 29761: constexpr auto 29761: operator!=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_ne_t<_Tp, _Up> 29761: { 29761: return static_cast(__lhs) != static_cast(__rhs) 29761: || (static_cast(__lhs) && *__lhs != *__rhs); 29761: } 29761: 29761: template 29761: constexpr auto 29761: operator<(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_lt_t<_Tp, _Up> 29761: { 29761: return static_cast(__rhs) && (!__lhs || *__lhs < *__rhs); 29761: } 29761: 29761: template 29761: constexpr auto 29761: operator>(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_gt_t<_Tp, _Up> 29761: { 29761: return static_cast(__lhs) && (!__rhs || *__lhs > *__rhs); 29761: } 29761: 29761: template 29761: constexpr auto 29761: operator<=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_le_t<_Tp, _Up> 29761: { 29761: return !__lhs || (static_cast(__rhs) && *__lhs <= *__rhs); 29761: } 29761: 29761: template 29761: constexpr auto 29761: operator>=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_ge_t<_Tp, _Up> 29761: { 29761: return !__rhs || (static_cast(__lhs) && *__lhs >= *__rhs); 29761: } 29761: # 1290 "/usr/include/c++/14/optional" 3 29761: template 29761: constexpr bool 29761: operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept 29761: { return !__lhs; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr bool 29761: operator==(nullopt_t, const optional<_Tp>& __rhs) noexcept 29761: { return !__rhs; } 29761: 29761: template 29761: constexpr bool 29761: operator!=(const optional<_Tp>& __lhs, nullopt_t) noexcept 29761: { return static_cast(__lhs); } 29761: 29761: template 29761: constexpr bool 29761: operator!=(nullopt_t, const optional<_Tp>& __rhs) noexcept 29761: { return static_cast(__rhs); } 29761: 29761: template 29761: constexpr bool 29761: operator<(const optional<_Tp>& , nullopt_t) noexcept 29761: { return false; } 29761: 29761: template 29761: constexpr bool 29761: operator<(nullopt_t, const optional<_Tp>& __rhs) noexcept 29761: { return static_cast(__rhs); } 29761: 29761: template 29761: constexpr bool 29761: operator>(const optional<_Tp>& __lhs, nullopt_t) noexcept 29761: { return static_cast(__lhs); } 29761: 29761: template 29761: constexpr bool 29761: operator>(nullopt_t, const optional<_Tp>& ) noexcept 29761: { return false; } 29761: 29761: template 29761: constexpr bool 29761: operator<=(const optional<_Tp>& __lhs, nullopt_t) noexcept 29761: { return !__lhs; } 29761: 29761: template 29761: constexpr bool 29761: operator<=(nullopt_t, const optional<_Tp>& ) noexcept 29761: { return true; } 29761: 29761: template 29761: constexpr bool 29761: operator>=(const optional<_Tp>& , nullopt_t) noexcept 29761: { return true; } 29761: 29761: template 29761: constexpr bool 29761: operator>=(nullopt_t, const optional<_Tp>& __rhs) noexcept 29761: { return !__rhs; } 29761: 29761: 29761: 29761: template 29761: constexpr auto 29761: operator==(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_eq_t<_Tp, _Up> 29761: { return __lhs && *__lhs == __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator==(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_eq_t<_Up, _Tp> 29761: { return __rhs && __lhs == *__rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator!=(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_ne_t<_Tp, _Up> 29761: { return !__lhs || *__lhs != __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator!=(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_ne_t<_Up, _Tp> 29761: { return !__rhs || __lhs != *__rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator<(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_lt_t<_Tp, _Up> 29761: { return !__lhs || *__lhs < __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator<(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_lt_t<_Up, _Tp> 29761: { return __rhs && __lhs < *__rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator>(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_gt_t<_Tp, _Up> 29761: { return __lhs && *__lhs > __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator>(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_gt_t<_Up, _Tp> 29761: { return !__rhs || __lhs > *__rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator<=(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_le_t<_Tp, _Up> 29761: { return !__lhs || *__lhs <= __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator<=(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_le_t<_Up, _Tp> 29761: { return __rhs && __lhs <= *__rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator>=(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_ge_t<_Tp, _Up> 29761: { return __lhs && *__lhs >= __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator>=(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_ge_t<_Up, _Tp> 29761: { return !__rhs || __lhs >= *__rhs; } 29761: # 1443 "/usr/include/c++/14/optional" 3 29761: template 29761: 29761: inline enable_if_t && is_swappable_v<_Tp>> 29761: swap(optional<_Tp>& __lhs, optional<_Tp>& __rhs) 29761: noexcept(noexcept(__lhs.swap(__rhs))) 29761: { __lhs.swap(__rhs); } 29761: 29761: template 29761: enable_if_t && is_swappable_v<_Tp>)> 29761: swap(optional<_Tp>&, optional<_Tp>&) = delete; 29761: 29761: template 29761: constexpr 29761: enable_if_t, _Tp>, 29761: optional>> 29761: make_optional(_Tp&& __t) 29761: noexcept(is_nothrow_constructible_v>, _Tp>) 29761: { return optional>{ std::forward<_Tp>(__t) }; } 29761: 29761: template 29761: constexpr 29761: enable_if_t, 29761: optional<_Tp>> 29761: make_optional(_Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29761: { return optional<_Tp>{ in_place, std::forward<_Args>(__args)... }; } 29761: 29761: template 29761: constexpr 29761: enable_if_t&, _Args...>, 29761: optional<_Tp>> 29761: make_optional(initializer_list<_Up> __il, _Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) 29761: { return optional<_Tp>{ in_place, __il, std::forward<_Args>(__args)... }; } 29761: 29761: 29761: 29761: template, 29761: bool = __poison_hash<_Up>::__enable_hash_call> 29761: struct __optional_hash_call_base 29761: { 29761: size_t 29761: operator()(const optional<_Tp>& __t) const 29761: noexcept(noexcept(hash<_Up>{}(*__t))) 29761: { 29761: 29761: 29761: constexpr size_t __magic_disengaged_hash = static_cast(-3333); 29761: return __t ? hash<_Up>{}(*__t) : __magic_disengaged_hash; 29761: } 29761: }; 29761: 29761: template 29761: struct __optional_hash_call_base<_Tp, _Up, false> {}; 29761: 29761: template 29761: struct hash> 29761: : private __poison_hash>, 29761: public __optional_hash_call_base<_Tp> 29761: { 29761: using result_type [[__deprecated__]] = size_t; 29761: using argument_type [[__deprecated__]] = optional<_Tp>; 29761: }; 29761: 29761: template 29761: struct __is_fast_hash>> : __is_fast_hash> 29761: { }; 29761: 29761: 29761: 29761: 29761: template optional(_Tp) -> optional<_Tp>; 29761: 29761: 29761: 29761: } 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: 29761: # 1 "/usr/include/c++/14/utility" 1 3 29761: # 58 "/usr/include/c++/14/utility" 3 29761: 29761: # 59 "/usr/include/c++/14/utility" 3 29761: # 68 "/usr/include/c++/14/utility" 3 29761: # 1 "/usr/include/c++/14/bits/stl_relops.h" 1 3 29761: # 62 "/usr/include/c++/14/bits/stl_relops.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: namespace rel_ops 29761: { 29761: # 86 "/usr/include/c++/14/bits/stl_relops.h" 3 29761: template 29761: inline bool 29761: operator!=(const _Tp& __x, const _Tp& __y) 29761: { return !(__x == __y); } 29761: # 99 "/usr/include/c++/14/bits/stl_relops.h" 3 29761: template 29761: inline bool 29761: operator>(const _Tp& __x, const _Tp& __y) 29761: { return __y < __x; } 29761: # 112 "/usr/include/c++/14/bits/stl_relops.h" 3 29761: template 29761: inline bool 29761: operator<=(const _Tp& __x, const _Tp& __y) 29761: { return !(__y < __x); } 29761: # 125 "/usr/include/c++/14/bits/stl_relops.h" 3 29761: template 29761: inline bool 29761: operator>=(const _Tp& __x, const _Tp& __y) 29761: { return !(__x < __y); } 29761: } 29761: 29761: 29761: } 29761: # 69 "/usr/include/c++/14/utility" 2 3 29761: # 96 "/usr/include/c++/14/utility" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 97 "/usr/include/c++/14/utility" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline _Tp 29761: exchange(_Tp& __obj, _Up&& __new_val) 29761: noexcept(__and_, 29761: is_nothrow_assignable<_Tp&, _Up>>::value) 29761: { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } 29761: 29761: 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr add_const_t<_Tp>& 29761: as_const(_Tp& __t) noexcept 29761: { return __t; } 29761: 29761: template 29761: void as_const(const _Tp&&) = delete; 29761: # 230 "/usr/include/c++/14/utility" 3 29761: 29761: } 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rocksdb_namespace.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 1 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 29761: 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 1 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 66 "/usr/include/assert.h" 3 4 29761: extern "C" { 29761: 29761: 29761: extern void __assert_fail (const char *__assertion, const char *__file, 29761: unsigned int __line, const char *__function) 29761: noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: extern void __assert_perror_fail (int __errnum, const char *__file, 29761: unsigned int __line, const char *__function) 29761: noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: extern void __assert (const char *__assertion, const char *__file, int __line) 29761: noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: } 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29761: 29761: # 1 "/usr/include/c++/14/cstdio" 1 3 29761: # 39 "/usr/include/c++/14/cstdio" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdio" 3 29761: # 24 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29761: # 1 "/usr/include/c++/14/cstring" 1 3 29761: # 39 "/usr/include/c++/14/cstring" 3 29761: 29761: # 40 "/usr/include/c++/14/cstring" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 43 "/usr/include/c++/14/cstring" 2 3 29761: # 1 "/usr/include/string.h" 1 3 4 29761: # 26 "/usr/include/string.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 27 "/usr/include/string.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 34 "/usr/include/string.h" 2 3 4 29761: # 43 "/usr/include/string.h" 3 4 29761: extern void *memcpy (void *__restrict __dest, const void *__restrict __src, 29761: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern void *memmove (void *__dest, const void *__src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: extern void *memccpy (void *__restrict __dest, const void *__restrict __src, 29761: int __c, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); 29761: 29761: 29761: 29761: 29761: extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int memcmp (const void *__s1, const void *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: # 80 "/usr/include/string.h" 3 4 29761: extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern "C++" 29761: { 29761: extern void *memchr (void *__s, int __c, size_t __n) 29761: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern const void *memchr (const void *__s, int __c, size_t __n) 29761: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * 29761: memchr (void *__s, int __c, size_t __n) noexcept (true) 29761: { 29761: return __builtin_memchr (__s, __c, __n); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * 29761: memchr (const void *__s, int __c, size_t __n) noexcept (true) 29761: { 29761: return __builtin_memchr (__s, __c, __n); 29761: } 29761: 29761: } 29761: # 115 "/usr/include/string.h" 3 4 29761: extern "C++" void *rawmemchr (void *__s, int __c) 29761: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern "C++" const void *rawmemchr (const void *__s, int __c) 29761: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" void *memrchr (void *__s, int __c, size_t __n) 29761: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__read_only__, 1, 3))); 29761: extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) 29761: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__read_only__, 1, 3))); 29761: # 141 "/usr/include/string.h" 3 4 29761: extern char *strcpy (char *__restrict __dest, const char *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern char *strncpy (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern char *strcat (char *__restrict __dest, const char *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern char *strncat (char *__restrict __dest, const char *__restrict __src, 29761: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int strcmp (const char *__s1, const char *__s2) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern int strncmp (const char *__s1, const char *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int strcoll (const char *__s1, const char *__s2) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern size_t strxfrm (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 29761: 29761: 29761: extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, 29761: locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: extern char *strdup (const char *__s) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *strndup (const char *__string, size_t __n) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 29761: # 224 "/usr/include/string.h" 3 4 29761: extern "C++" 29761: { 29761: extern char *strchr (char *__s, int __c) 29761: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern const char *strchr (const char *__s, int __c) 29761: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: strchr (char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_strchr (__s, __c); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: strchr (const char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_strchr (__s, __c); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" 29761: { 29761: extern char *strrchr (char *__s, int __c) 29761: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern const char *strrchr (const char *__s, int __c) 29761: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: strrchr (char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_strrchr (__s, __c); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: strrchr (const char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_strrchr (__s, __c); 29761: } 29761: 29761: } 29761: # 281 "/usr/include/string.h" 3 4 29761: extern "C++" char *strchrnul (char *__s, int __c) 29761: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern "C++" const char *strchrnul (const char *__s, int __c) 29761: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: # 293 "/usr/include/string.h" 3 4 29761: extern size_t strcspn (const char *__s, const char *__reject) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern size_t strspn (const char *__s, const char *__accept) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern "C++" 29761: { 29761: extern char *strpbrk (char *__s, const char *__accept) 29761: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: extern const char *strpbrk (const char *__s, const char *__accept) 29761: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: strpbrk (char *__s, const char *__accept) noexcept (true) 29761: { 29761: return __builtin_strpbrk (__s, __accept); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: strpbrk (const char *__s, const char *__accept) noexcept (true) 29761: { 29761: return __builtin_strpbrk (__s, __accept); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" 29761: { 29761: extern char *strstr (char *__haystack, const char *__needle) 29761: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: extern const char *strstr (const char *__haystack, const char *__needle) 29761: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: strstr (char *__haystack, const char *__needle) noexcept (true) 29761: { 29761: return __builtin_strstr (__haystack, __needle); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: strstr (const char *__haystack, const char *__needle) noexcept (true) 29761: { 29761: return __builtin_strstr (__haystack, __needle); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *strtok (char *__restrict __s, const char *__restrict __delim) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern char *__strtok_r (char *__restrict __s, 29761: const char *__restrict __delim, 29761: char **__restrict __save_ptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29761: 29761: extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, 29761: char **__restrict __save_ptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" char *strcasestr (char *__haystack, const char *__needle) 29761: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: extern "C++" const char *strcasestr (const char *__haystack, 29761: const char *__needle) 29761: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: # 389 "/usr/include/string.h" 3 4 29761: extern void *memmem (const void *__haystack, size_t __haystacklen, 29761: const void *__needle, size_t __needlelen) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) 29761: __attribute__ ((__access__ (__read_only__, 1, 2))) 29761: __attribute__ ((__access__ (__read_only__, 3, 4))); 29761: 29761: 29761: 29761: extern void *__mempcpy (void *__restrict __dest, 29761: const void *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern void *mempcpy (void *__restrict __dest, 29761: const void *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern size_t strlen (const char *__s) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern size_t strnlen (const char *__string, size_t __maxlen) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern char *strerror (int __errnum) noexcept (true); 29761: # 444 "/usr/include/string.h" 3 4 29761: extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: 29761: 29761: extern const char *strerrordesc_np (int __err) noexcept (true); 29761: 29761: extern const char *strerrorname_np (int __err) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); 29761: 29761: 29761: 29761: # 1 "/usr/include/strings.h" 1 3 4 29761: # 23 "/usr/include/strings.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 24 "/usr/include/strings.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: extern int bcmp (const void *__s1, const void *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern void bcopy (const void *__src, void *__dest, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern "C++" 29761: { 29761: extern char *index (char *__s, int __c) 29761: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern const char *index (const char *__s, int __c) 29761: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: index (char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_index (__s, __c); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: index (const char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_index (__s, __c); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" 29761: { 29761: extern char *rindex (char *__s, int __c) 29761: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern const char *rindex (const char *__s, int __c) 29761: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: rindex (char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_rindex (__s, __c); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: rindex (const char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_rindex (__s, __c); 29761: } 29761: 29761: } 29761: # 104 "/usr/include/strings.h" 3 4 29761: extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); 29761: __extension__ extern int ffsll (long long int __ll) 29761: noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern int strcasecmp (const char *__s1, const char *__s2) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 29761: 29761: 29761: 29761: extern int strncasecmp_l (const char *__s1, const char *__s2, 29761: size_t __n, locale_t __loc) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 1 3 4 29761: # 22 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29761: __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) noexcept (true) 29761: { 29761: (void) __builtin___memmove_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29761: __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) noexcept (true) 29761: { 29761: (void) __builtin___memset_chk (__dest, '\0', __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: # 145 "/usr/include/strings.h" 2 3 4 29761: # 463 "/usr/include/string.h" 2 3 4 29761: 29761: 29761: 29761: extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: 29761: 29761: 29761: extern char *strsep (char **__restrict __stringp, 29761: const char *__restrict __delim) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern char *strsignal (int __sig) noexcept (true); 29761: 29761: 29761: 29761: extern const char *sigabbrev_np (int __sig) noexcept (true); 29761: 29761: 29761: extern const char *sigdescr_np (int __sig) noexcept (true); 29761: 29761: 29761: 29761: extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern char *__stpncpy (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern char *stpncpy (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern size_t strlcpy (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: 29761: 29761: 29761: extern size_t strlcat (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 29761: 29761: 29761: 29761: 29761: extern int strverscmp (const char *__s1, const char *__s2) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__read_write__, 1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" char *basename (char *__filename) 29761: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 29761: extern "C++" const char *basename (const char *__filename) 29761: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 29761: # 548 "/usr/include/string.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 1 3 4 29761: # 25 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29761: __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 29761: 29761: { 29761: return __builtin___memcpy_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29761: __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) noexcept (true) 29761: { 29761: return __builtin___memmove_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29761: __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 29761: 29761: { 29761: return __builtin___mempcpy_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: # 56 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29761: __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) noexcept (true) 29761: { 29761: return __builtin___memset_chk (__dest, __ch, __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: 29761: 29761: 29761: 29761: void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29761: __attribute__ ((__leaf__)) explicit_bzero (void *__dest, size_t __len) noexcept (true) 29761: { 29761: __explicit_bzero_chk (__dest, __len, __builtin_object_size (__dest, 0)); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) strcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) stpcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) strncpy (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___strncpy_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) stpncpy (char * __dest, const char *__src, size_t __n) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___stpncpy_chk (__dest, __src, __n, 29761: __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: # 135 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) strcat (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) strncat (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___strncat_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: 29761: 29761: extern size_t __strlcpy_chk (char *__dest, const char *__src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: extern size_t __strlcpy_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcpy") 29761: 29761: ; 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) strlcpy (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 29761: 29761: 29761: { 29761: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29761: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 29761: || __n > __builtin_object_size (__dest, 2 > 1))) 29761: return __strlcpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 29761: return __strlcpy_alias (__dest, __src, __n); 29761: } 29761: 29761: extern size_t __strlcat_chk (char *__dest, const char *__src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: extern size_t __strlcat_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcat") 29761: 29761: ; 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) strlcat (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 29761: 29761: { 29761: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29761: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 29761: || __n > __builtin_object_size (__dest, 2 > 1))) 29761: return __strlcat_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 29761: return __strlcat_alias (__dest, __src, __n); 29761: } 29761: # 549 "/usr/include/string.h" 2 3 4 29761: 29761: 29761: 29761: } 29761: # 44 "/usr/include/c++/14/cstring" 2 3 29761: # 72 "/usr/include/c++/14/cstring" 3 29761: extern "C++" 29761: { 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: using ::memchr; 29761: using ::memcmp; 29761: using ::memcpy; 29761: using ::memmove; 29761: using ::memset; 29761: using ::strcat; 29761: using ::strcmp; 29761: using ::strcoll; 29761: using ::strcpy; 29761: using ::strcspn; 29761: using ::strerror; 29761: using ::strlen; 29761: using ::strncat; 29761: using ::strncmp; 29761: using ::strncpy; 29761: using ::strspn; 29761: 29761: using ::strtok; 29761: 29761: using ::strxfrm; 29761: using ::strchr; 29761: using ::strpbrk; 29761: using ::strrchr; 29761: using ::strstr; 29761: # 125 "/usr/include/c++/14/cstring" 3 29761: 29761: } 29761: } 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29761: 29761: 29761: 29761: 29761: 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29761: namespace rocksdb { 29761: 29761: class Cleanable { 29761: public: 29761: Cleanable(); 29761: 29761: Cleanable(Cleanable&) = delete; 29761: Cleanable& operator=(Cleanable&) = delete; 29761: 29761: 29761: ~Cleanable(); 29761: 29761: 29761: Cleanable(Cleanable&&) noexcept; 29761: Cleanable& operator=(Cleanable&&) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: using CleanupFunction = void (*)(void* arg1, void* arg2); 29761: 29761: 29761: void RegisterCleanup(CleanupFunction function, void* arg1, void* arg2); 29761: 29761: 29761: 29761: void DelegateCleanupsTo(Cleanable* other); 29761: 29761: 29761: inline void Reset() { 29761: DoCleanup(); 29761: cleanup_.function = nullptr; 29761: cleanup_.next = nullptr; 29761: } 29761: 29761: inline bool HasCleanups() { return cleanup_.function != nullptr; } 29761: 29761: protected: 29761: struct Cleanup { 29761: CleanupFunction function; 29761: void* arg1; 29761: void* arg2; 29761: Cleanup* next; 29761: }; 29761: Cleanup cleanup_; 29761: 29761: void RegisterCleanup(Cleanup* c); 29761: 29761: private: 29761: 29761: 29761: 29761: inline void DoCleanup() { 29761: if (cleanup_.function != nullptr) { 29761: (*cleanup_.function)(cleanup_.arg1, cleanup_.arg2); 29761: for (Cleanup* c = cleanup_.next; c != nullptr;) { 29761: (*c->function)(c->arg1, c->arg2); 29761: Cleanup* next = c->next; 29761: delete c; 29761: c = next; 29761: } 29761: } 29761: } 29761: }; 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29761: class SharedCleanablePtr { 29761: public: 29761: 29761: SharedCleanablePtr() {} 29761: 29761: SharedCleanablePtr(const SharedCleanablePtr& from); 29761: SharedCleanablePtr(SharedCleanablePtr&& from) noexcept; 29761: SharedCleanablePtr& operator=(const SharedCleanablePtr& from); 29761: SharedCleanablePtr& operator=(SharedCleanablePtr&& from) noexcept; 29761: 29761: ~SharedCleanablePtr(); 29761: 29761: 29761: void Allocate(); 29761: 29761: void Reset(); 29761: 29761: Cleanable& operator*(); 29761: Cleanable* operator->(); 29761: 29761: Cleanable* get(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: void RegisterCopyWith(Cleanable* target); 29761: 29761: 29761: 29761: 29761: void MoveAsCleanupTo(Cleanable* target); 29761: 29761: private: 29761: struct Impl; 29761: Impl* ptr_ = nullptr; 29761: }; 29761: 29761: } 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Slice { 29761: public: 29761: 29761: Slice() : data_(""), size_(0) {} 29761: 29761: 29761: Slice(const char* d, size_t n) : data_(d), size_(n) {} 29761: 29761: 29761: 29761: Slice(const std::string& s) : data_(s.data()), size_(s.size()) {} 29761: 29761: 29761: 29761: Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size()) {} 29761: 29761: 29761: 29761: Slice(const char* s) : data_(s) { size_ = (s == nullptr) ? 0 : strlen(s); } 29761: 29761: 29761: 29761: Slice(const struct SliceParts& parts, std::string* buf); 29761: 29761: 29761: const char* data() const { return data_; } 29761: 29761: 29761: size_t size() const { return size_; } 29761: 29761: 29761: bool empty() const { return size_ == 0; } 29761: 29761: 29761: 29761: char operator[](size_t n) const { 29761: 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: n < size() 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "n < size()" 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: return data_[n]; 29761: } 29761: 29761: 29761: void clear() { 29761: data_ = ""; 29761: size_ = 0; 29761: } 29761: 29761: 29761: void remove_prefix(size_t n) { 29761: 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: n <= size() 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "n <= size()" 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: data_ += n; 29761: size_ -= n; 29761: } 29761: 29761: void remove_suffix(size_t n) { 29761: 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: n <= size() 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "n <= size()" 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: size_ -= n; 29761: } 29761: 29761: 29761: 29761: std::string ToString(bool hex = false) const; 29761: 29761: 29761: std::string_view ToStringView() const { 29761: return std::string_view(data_, size_); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool DecodeHex(std::string* result) const; 29761: 29761: 29761: 29761: 29761: 29761: int compare(const Slice& b) const; 29761: 29761: 29761: bool starts_with(const Slice& x) const { 29761: return ((size_ >= x.size_) && (memcmp(data_, x.data_, x.size_) == 0)); 29761: } 29761: 29761: bool ends_with(const Slice& x) const { 29761: return ((size_ >= x.size_) && 29761: (memcmp(data_ + size_ - x.size_, x.data_, x.size_) == 0)); 29761: } 29761: 29761: 29761: size_t difference_offset(const Slice& b) const; 29761: 29761: 29761: const char* data_; 29761: size_t size_; 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class PinnableSlice : public Slice, public Cleanable { 29761: public: 29761: PinnableSlice() { buf_ = &self_space_; } 29761: explicit PinnableSlice(std::string* buf) { buf_ = buf; } 29761: 29761: PinnableSlice(PinnableSlice&& other); 29761: PinnableSlice& operator=(PinnableSlice&& other); 29761: 29761: 29761: PinnableSlice(PinnableSlice&) = delete; 29761: PinnableSlice& operator=(PinnableSlice&) = delete; 29761: 29761: inline void PinSlice(const Slice& s, CleanupFunction f, void* arg1, 29761: void* arg2) { 29761: 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: pinned_ = true; 29761: data_ = s.data(); 29761: size_ = s.size(); 29761: RegisterCleanup(f, arg1, arg2); 29761: 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: pinned_ 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "pinned_" 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: } 29761: 29761: inline void PinSlice(const Slice& s, Cleanable* cleanable) { 29761: 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: pinned_ = true; 29761: data_ = s.data(); 29761: size_ = s.size(); 29761: if (cleanable != nullptr) { 29761: cleanable->DelegateCleanupsTo(this); 29761: } 29761: 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: pinned_ 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "pinned_" 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: } 29761: 29761: inline void PinSelf(const Slice& slice) { 29761: 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: buf_->assign(slice.data(), slice.size()); 29761: data_ = buf_->data(); 29761: size_ = buf_->size(); 29761: 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: } 29761: 29761: inline void PinSelf() { 29761: 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: data_ = buf_->data(); 29761: size_ = buf_->size(); 29761: 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: } 29761: 29761: void remove_suffix(size_t n) { 29761: 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: n <= size() 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "n <= size()" 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: if (pinned_) { 29761: size_ -= n; 29761: } else { 29761: buf_->erase(size() - n, n); 29761: PinSelf(); 29761: } 29761: } 29761: 29761: void remove_prefix(size_t n) { 29761: 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: n <= size() 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "n <= size()" 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: if (pinned_) { 29761: data_ += n; 29761: size_ -= n; 29761: } else { 29761: buf_->erase(0, n); 29761: PinSelf(); 29761: } 29761: } 29761: 29761: void Reset() { 29761: Cleanable::Reset(); 29761: pinned_ = false; 29761: size_ = 0; 29761: } 29761: 29761: inline std::string* GetSelf() { return buf_; } 29761: 29761: inline bool IsPinned() const { return pinned_; } 29761: 29761: private: 29761: friend class PinnableSlice4Test; 29761: std::string self_space_; 29761: std::string* buf_; 29761: bool pinned_ = false; 29761: }; 29761: 29761: 29761: 29761: struct SliceParts { 29761: SliceParts(const Slice* _parts, int _num_parts) 29761: : parts(_parts), num_parts(_num_parts) {} 29761: SliceParts() : parts(nullptr), num_parts(0) {} 29761: 29761: const Slice* parts; 29761: int num_parts; 29761: }; 29761: 29761: inline bool operator==(const Slice& x, const Slice& y) { 29761: return ((x.size() == y.size()) && 29761: (memcmp(x.data(), y.data(), x.size()) == 0)); 29761: } 29761: 29761: inline bool operator!=(const Slice& x, const Slice& y) { return !(x == y); } 29761: 29761: inline int Slice::compare(const Slice& b) const { 29761: 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: data_ != nullptr && b.data_ != nullptr 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "data_ != nullptr && b.data_ != nullptr" 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: const size_t min_len = (size_ < b.size_) ? size_ : b.size_; 29761: int r = memcmp(data_, b.data_, min_len); 29761: if (r == 0) { 29761: if (size_ < b.size_) 29761: r = -1; 29761: else if (size_ > b.size_) 29761: r = +1; 29761: } 29761: return r; 29761: } 29761: 29761: inline size_t Slice::difference_offset(const Slice& b) const { 29761: size_t off = 0; 29761: const size_t len = (size_ < b.size_) ? size_ : b.size_; 29761: for (; off < len; off++) { 29761: if (data_[off] != b.data_[off]) break; 29761: } 29761: return off; 29761: } 29761: 29761: } 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Status { 29761: public: 29761: 29761: Status() 29761: : code_(kOk), 29761: subcode_(kNone), 29761: sev_(kNoError), 29761: retryable_(false), 29761: data_loss_(false), 29761: scope_(0), 29761: state_(nullptr) {} 29761: ~Status() { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: Status(const Status& s); 29761: Status& operator=(const Status& s); 29761: Status(Status&& s) noexcept; 29761: Status& operator=(Status&& s) noexcept; 29761: bool operator==(const Status& rhs) const; 29761: bool operator!=(const Status& rhs) const; 29761: 29761: 29761: 29761: 29761: inline void PermitUncheckedError() const { MarkChecked(); } 29761: 29761: inline void MustCheck() const { 29761: 29761: 29761: 29761: } 29761: 29761: enum Code : unsigned char { 29761: kOk = 0, 29761: kNotFound = 1, 29761: kCorruption = 2, 29761: kNotSupported = 3, 29761: kInvalidArgument = 4, 29761: kIOError = 5, 29761: kMergeInProgress = 6, 29761: kIncomplete = 7, 29761: kShutdownInProgress = 8, 29761: kTimedOut = 9, 29761: kAborted = 10, 29761: kBusy = 11, 29761: kExpired = 12, 29761: kTryAgain = 13, 29761: kCompactionTooLarge = 14, 29761: kColumnFamilyDropped = 15, 29761: kMaxCode 29761: }; 29761: 29761: Code code() const { 29761: MarkChecked(); 29761: return code_; 29761: } 29761: 29761: enum SubCode : unsigned char { 29761: kNone = 0, 29761: kMutexTimeout = 1, 29761: kLockTimeout = 2, 29761: kLockLimit = 3, 29761: kNoSpace = 4, 29761: kDeadlock = 5, 29761: kStaleFile = 6, 29761: kMemoryLimit = 7, 29761: kSpaceLimit = 8, 29761: kPathNotFound = 9, 29761: KMergeOperandsInsufficientCapacity = 10, 29761: kManualCompactionPaused = 11, 29761: kOverwritten = 12, 29761: kTxnNotPrepared = 13, 29761: kIOFenced = 14, 29761: kMergeOperatorFailed = 15, 29761: kMergeOperandThresholdExceeded = 16, 29761: kMaxSubCode 29761: }; 29761: 29761: SubCode subcode() const { 29761: MarkChecked(); 29761: return subcode_; 29761: } 29761: 29761: enum Severity : unsigned char { 29761: kNoError = 0, 29761: kSoftError = 1, 29761: kHardError = 2, 29761: kFatalError = 3, 29761: kUnrecoverableError = 4, 29761: kMaxSeverity 29761: }; 29761: 29761: Status(const Status& s, Severity sev); 29761: 29761: Status(Code _code, SubCode _subcode, Severity _sev, const Slice& msg) 29761: : Status(_code, _subcode, msg, "", _sev) {} 29761: 29761: static Status CopyAppendMessage(const Status& s, const Slice& delim, 29761: const Slice& msg); 29761: 29761: Severity severity() const { 29761: MarkChecked(); 29761: return sev_; 29761: } 29761: 29761: 29761: const char* getState() const { 29761: MarkChecked(); 29761: return state_.get(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: Status& UpdateIfOk(Status&& s) { 29761: if (code() == kOk) { 29761: *this = std::move(s); 29761: } else { 29761: 29761: s.PermitUncheckedError(); 29761: } 29761: MustCheck(); 29761: return *this; 29761: } 29761: 29761: Status& UpdateIfOk(const Status& s) { 29761: return UpdateIfOk(std::forward(Status(s))); 29761: } 29761: 29761: 29761: static Status OK() { return Status(); } 29761: 29761: 29761: 29761: 29761: 29761: static Status OkOverwritten() { return Status(kOk, kOverwritten); } 29761: 29761: 29761: 29761: 29761: 29761: static Status OkMergeOperandThresholdExceeded() { 29761: return Status(kOk, kMergeOperandThresholdExceeded); 29761: } 29761: 29761: 29761: static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kNotFound, msg, msg2); 29761: } 29761: 29761: 29761: static Status NotFound(SubCode msg = kNone) { return Status(kNotFound, msg); } 29761: 29761: static Status NotFound(SubCode sc, const Slice& msg, 29761: const Slice& msg2 = Slice()) { 29761: return Status(kNotFound, sc, msg, msg2); 29761: } 29761: 29761: static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kCorruption, msg, msg2); 29761: } 29761: static Status Corruption(SubCode msg = kNone) { 29761: return Status(kCorruption, msg); 29761: } 29761: 29761: static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kNotSupported, msg, msg2); 29761: } 29761: static Status NotSupported(SubCode msg = kNone) { 29761: return Status(kNotSupported, msg); 29761: } 29761: 29761: static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kInvalidArgument, msg, msg2); 29761: } 29761: static Status InvalidArgument(SubCode msg = kNone) { 29761: return Status(kInvalidArgument, msg); 29761: } 29761: 29761: static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kIOError, msg, msg2); 29761: } 29761: static Status IOError(SubCode msg = kNone) { return Status(kIOError, msg); } 29761: 29761: static Status MergeInProgress(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kMergeInProgress, msg, msg2); 29761: } 29761: static Status MergeInProgress(SubCode msg = kNone) { 29761: return Status(kMergeInProgress, msg); 29761: } 29761: 29761: static Status Incomplete(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kIncomplete, msg, msg2); 29761: } 29761: static Status Incomplete(SubCode msg = kNone) { 29761: return Status(kIncomplete, msg); 29761: } 29761: 29761: static Status ShutdownInProgress(SubCode msg = kNone) { 29761: return Status(kShutdownInProgress, msg); 29761: } 29761: static Status ShutdownInProgress(const Slice& msg, 29761: const Slice& msg2 = Slice()) { 29761: return Status(kShutdownInProgress, msg, msg2); 29761: } 29761: static Status Aborted(SubCode msg = kNone) { return Status(kAborted, msg); } 29761: static Status Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kAborted, msg, msg2); 29761: } 29761: 29761: static Status Busy(SubCode msg = kNone) { return Status(kBusy, msg); } 29761: static Status Busy(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kBusy, msg, msg2); 29761: } 29761: 29761: static Status TimedOut(SubCode msg = kNone) { return Status(kTimedOut, msg); } 29761: static Status TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kTimedOut, msg, msg2); 29761: } 29761: 29761: static Status Expired(SubCode msg = kNone) { return Status(kExpired, msg); } 29761: static Status Expired(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kExpired, msg, msg2); 29761: } 29761: 29761: static Status TryAgain(SubCode msg = kNone) { return Status(kTryAgain, msg); } 29761: static Status TryAgain(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kTryAgain, msg, msg2); 29761: } 29761: 29761: static Status CompactionTooLarge(SubCode msg = kNone) { 29761: return Status(kCompactionTooLarge, msg); 29761: } 29761: static Status CompactionTooLarge(const Slice& msg, 29761: const Slice& msg2 = Slice()) { 29761: return Status(kCompactionTooLarge, msg, msg2); 29761: } 29761: 29761: static Status ColumnFamilyDropped(SubCode msg = kNone) { 29761: return Status(kColumnFamilyDropped, msg); 29761: } 29761: 29761: static Status ColumnFamilyDropped(const Slice& msg, 29761: const Slice& msg2 = Slice()) { 29761: return Status(kColumnFamilyDropped, msg, msg2); 29761: } 29761: 29761: static Status NoSpace() { return Status(kIOError, kNoSpace); } 29761: static Status NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kIOError, kNoSpace, msg, msg2); 29761: } 29761: 29761: static Status MemoryLimit() { return Status(kAborted, kMemoryLimit); } 29761: static Status MemoryLimit(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kAborted, kMemoryLimit, msg, msg2); 29761: } 29761: 29761: static Status SpaceLimit() { return Status(kIOError, kSpaceLimit); } 29761: static Status SpaceLimit(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kIOError, kSpaceLimit, msg, msg2); 29761: } 29761: 29761: static Status PathNotFound() { return Status(kIOError, kPathNotFound); } 29761: static Status PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kIOError, kPathNotFound, msg, msg2); 29761: } 29761: 29761: static Status TxnNotPrepared() { 29761: return Status(kInvalidArgument, kTxnNotPrepared); 29761: } 29761: static Status TxnNotPrepared(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kInvalidArgument, kTxnNotPrepared, msg, msg2); 29761: } 29761: 29761: 29761: bool ok() const { 29761: MarkChecked(); 29761: return code() == kOk; 29761: } 29761: 29761: 29761: 29761: bool IsOkOverwritten() const { 29761: MarkChecked(); 29761: return code() == kOk && subcode() == kOverwritten; 29761: } 29761: 29761: 29761: 29761: bool IsOkMergeOperandThresholdExceeded() const { 29761: MarkChecked(); 29761: return code() == kOk && subcode() == kMergeOperandThresholdExceeded; 29761: } 29761: 29761: 29761: bool IsNotFound() const { 29761: MarkChecked(); 29761: return code() == kNotFound; 29761: } 29761: 29761: 29761: bool IsCorruption() const { 29761: MarkChecked(); 29761: return code() == kCorruption; 29761: } 29761: 29761: 29761: bool IsNotSupported() const { 29761: MarkChecked(); 29761: return code() == kNotSupported; 29761: } 29761: 29761: 29761: bool IsInvalidArgument() const { 29761: MarkChecked(); 29761: return code() == kInvalidArgument; 29761: } 29761: 29761: 29761: bool IsIOError() const { 29761: MarkChecked(); 29761: return code() == kIOError; 29761: } 29761: 29761: 29761: bool IsMergeInProgress() const { 29761: MarkChecked(); 29761: return code() == kMergeInProgress; 29761: } 29761: 29761: 29761: bool IsIncomplete() const { 29761: MarkChecked(); 29761: return code() == kIncomplete; 29761: } 29761: 29761: 29761: bool IsShutdownInProgress() const { 29761: MarkChecked(); 29761: return code() == kShutdownInProgress; 29761: } 29761: 29761: bool IsTimedOut() const { 29761: MarkChecked(); 29761: return code() == kTimedOut; 29761: } 29761: 29761: bool IsAborted() const { 29761: MarkChecked(); 29761: return code() == kAborted; 29761: } 29761: 29761: bool IsLockLimit() const { 29761: MarkChecked(); 29761: return code() == kAborted && subcode() == kLockLimit; 29761: } 29761: 29761: 29761: 29761: bool IsBusy() const { 29761: MarkChecked(); 29761: return code() == kBusy; 29761: } 29761: 29761: bool IsDeadlock() const { 29761: MarkChecked(); 29761: return code() == kBusy && subcode() == kDeadlock; 29761: } 29761: 29761: 29761: bool IsExpired() const { 29761: MarkChecked(); 29761: return code() == kExpired; 29761: } 29761: 29761: 29761: 29761: 29761: bool IsTryAgain() const { 29761: MarkChecked(); 29761: return code() == kTryAgain; 29761: } 29761: 29761: 29761: bool IsCompactionTooLarge() const { 29761: MarkChecked(); 29761: return code() == kCompactionTooLarge; 29761: } 29761: 29761: 29761: bool IsColumnFamilyDropped() const { 29761: MarkChecked(); 29761: return code() == kColumnFamilyDropped; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool IsNoSpace() const { 29761: MarkChecked(); 29761: return (code() == kIOError) && (subcode() == kNoSpace); 29761: } 29761: 29761: 29761: 29761: 29761: bool IsMemoryLimit() const { 29761: MarkChecked(); 29761: return (code() == kAborted) && (subcode() == kMemoryLimit); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: bool IsPathNotFound() const { 29761: MarkChecked(); 29761: return (code() == kIOError || code() == kNotFound) && 29761: (subcode() == kPathNotFound); 29761: } 29761: 29761: 29761: 29761: bool IsManualCompactionPaused() const { 29761: MarkChecked(); 29761: return (code() == kIncomplete) && (subcode() == kManualCompactionPaused); 29761: } 29761: 29761: 29761: bool IsTxnNotPrepared() const { 29761: MarkChecked(); 29761: return (code() == kInvalidArgument) && (subcode() == kTxnNotPrepared); 29761: } 29761: 29761: 29761: bool IsIOFenced() const { 29761: MarkChecked(); 29761: return (code() == kIOError) && (subcode() == kIOFenced); 29761: } 29761: 29761: 29761: 29761: std::string ToString() const; 29761: 29761: protected: 29761: Code code_; 29761: SubCode subcode_; 29761: Severity sev_; 29761: bool retryable_; 29761: bool data_loss_; 29761: unsigned char scope_; 29761: 29761: 29761: std::unique_ptr state_; 29761: 29761: 29761: 29761: 29761: explicit Status(Code _code, SubCode _subcode = kNone) 29761: : code_(_code), 29761: subcode_(_subcode), 29761: sev_(kNoError), 29761: retryable_(false), 29761: data_loss_(false), 29761: scope_(0) {} 29761: 29761: explicit Status(Code _code, SubCode _subcode, bool retryable, bool data_loss, 29761: unsigned char scope) 29761: : code_(_code), 29761: subcode_(_subcode), 29761: sev_(kNoError), 29761: retryable_(retryable), 29761: data_loss_(data_loss), 29761: scope_(scope) {} 29761: 29761: Status(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2, 29761: Severity sev = kNoError); 29761: Status(Code _code, const Slice& msg, const Slice& msg2) 29761: : Status(_code, kNone, msg, msg2) {} 29761: 29761: static std::unique_ptr CopyState(const char* s); 29761: 29761: inline void MarkChecked() const { 29761: 29761: 29761: 29761: } 29761: }; 29761: 29761: inline Status::Status(const Status& s) 29761: : code_(s.code_), 29761: subcode_(s.subcode_), 29761: sev_(s.sev_), 29761: retryable_(s.retryable_), 29761: data_loss_(s.data_loss_), 29761: scope_(s.scope_) { 29761: s.MarkChecked(); 29761: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29761: } 29761: inline Status::Status(const Status& s, Severity sev) 29761: : code_(s.code_), 29761: subcode_(s.subcode_), 29761: sev_(sev), 29761: retryable_(s.retryable_), 29761: data_loss_(s.data_loss_), 29761: scope_(s.scope_) { 29761: s.MarkChecked(); 29761: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29761: } 29761: inline Status& Status::operator=(const Status& s) { 29761: if (this != &s) { 29761: s.MarkChecked(); 29761: MustCheck(); 29761: code_ = s.code_; 29761: subcode_ = s.subcode_; 29761: sev_ = s.sev_; 29761: retryable_ = s.retryable_; 29761: data_loss_ = s.data_loss_; 29761: scope_ = s.scope_; 29761: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29761: } 29761: return *this; 29761: } 29761: 29761: inline Status::Status(Status&& s) noexcept : Status() { 29761: s.MarkChecked(); 29761: *this = std::move(s); 29761: } 29761: 29761: inline Status& Status::operator=(Status&& s) noexcept { 29761: if (this != &s) { 29761: s.MarkChecked(); 29761: MustCheck(); 29761: code_ = std::move(s.code_); 29761: s.code_ = kOk; 29761: subcode_ = std::move(s.subcode_); 29761: s.subcode_ = kNone; 29761: sev_ = std::move(s.sev_); 29761: s.sev_ = kNoError; 29761: retryable_ = std::move(s.retryable_); 29761: s.retryable_ = false; 29761: data_loss_ = std::move(s.data_loss_); 29761: s.data_loss_ = false; 29761: scope_ = std::move(s.scope_); 29761: s.scope_ = 0; 29761: state_ = std::move(s.state_); 29761: } 29761: return *this; 29761: } 29761: 29761: inline bool Status::operator==(const Status& rhs) const { 29761: MarkChecked(); 29761: rhs.MarkChecked(); 29761: return (code_ == rhs.code_); 29761: } 29761: 29761: inline bool Status::operator!=(const Status& rhs) const { 29761: MarkChecked(); 29761: rhs.MarkChecked(); 29761: return !(*this == rhs); 29761: } 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 2 29761: 29761: namespace rocksdb { 29761: class Logger; 29761: class ObjectRegistry; 29761: class OptionTypeInfo; 29761: struct ColumnFamilyOptions; 29761: struct ConfigOptions; 29761: struct DBOptions; 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: class Configurable { 29761: protected: 29761: friend class ConfigurableHelper; 29761: struct RegisteredOptions { 29761: 29761: std::string name; 29761: 29761: 29761: 29761: intptr_t opt_offset; 29761: 29761: const std::unordered_map* type_map; 29761: }; 29761: 29761: public: 29761: virtual ~Configurable() {} 29761: # 70 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: template 29761: const T* GetOptions() const { 29761: return GetOptions(T::kName()); 29761: } 29761: template 29761: T* GetOptions() { 29761: return GetOptions(T::kName()); 29761: } 29761: template 29761: const T* GetOptions(const std::string& name) const { 29761: return reinterpret_cast(GetOptionsPtr(name)); 29761: } 29761: template 29761: T* GetOptions(const std::string& name) { 29761: 29761: 29761: return reinterpret_cast(const_cast(GetOptionsPtr(name))); 29761: } 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: Status ConfigureFromMap( 29761: const ConfigOptions& config_options, 29761: const std::unordered_map& opt_map); 29761: Status ConfigureFromMap( 29761: const ConfigOptions& config_options, 29761: const std::unordered_map& opt_map, 29761: std::unordered_map* unused); 29761: # 137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: Status ConfigureOption(const ConfigOptions& config_options, 29761: const std::string& name, const std::string& value); 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: Status ConfigureFromString(const ConfigOptions& config_options, 29761: const std::string& opts); 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: Status GetOptionString(const ConfigOptions& config_options, 29761: std::string* result) const; 29761: 29761: 29761: 29761: 29761: 29761: std::string ToString(const ConfigOptions& config_options) const { 29761: return ToString(config_options, ""); 29761: } 29761: std::string ToString(const ConfigOptions& config_options, 29761: const std::string& prefix) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status GetOptionNames(const ConfigOptions& config_options, 29761: std::unordered_set* result) const; 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual Status GetOption(const ConfigOptions& config_options, 29761: const std::string& name, std::string* value) const; 29761: # 212 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual bool AreEquivalent(const ConfigOptions& config_options, 29761: const Configurable* other, 29761: std::string* name) const; 29761: 29761: 29761: 29761: 29761: virtual std::string GetPrintableOptions() const { return ""; } 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual Status PrepareOptions(const ConfigOptions& config_options); 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual Status ValidateOptions(const DBOptions& db_opts, 29761: const ColumnFamilyOptions& cf_opts) const; 29761: # 276 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: static Status GetOptionsMap( 29761: const std::string& opt_value, const std::string& default_id, 29761: std::string* id, std::unordered_map* options); 29761: 29761: protected: 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual const void* GetOptionsPtr(const std::string& name) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status ParseStringOptions(const ConfigOptions& config_options, 29761: const std::string& opts_str); 29761: # 313 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual Status ConfigureOptions( 29761: const ConfigOptions& config_options, 29761: const std::unordered_map& opts_map, 29761: std::unordered_map* unused); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status ParseOption(const ConfigOptions& config_options, 29761: const OptionTypeInfo& opt_info, 29761: const std::string& opt_name, 29761: const std::string& opt_value, void* opt_ptr); 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual bool OptionsAreEqual(const ConfigOptions& config_options, 29761: const OptionTypeInfo& opt_info, 29761: const std::string& name, 29761: const void* const this_ptr, 29761: const void* const that_ptr, 29761: std::string* bad_name) const; 29761: 29761: 29761: virtual std::string SerializeOptions(const ConfigOptions& config_options, 29761: const std::string& header) const; 29761: 29761: 29761: virtual std::string GetOptionName(const std::string& long_name) const; 29761: # 375 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: template 29761: void RegisterOptions( 29761: T* opt_ptr, 29761: const std::unordered_map* opt_map) { 29761: RegisterOptions(T::kName(), opt_ptr, opt_map); 29761: } 29761: void RegisterOptions( 29761: const std::string& name, void* opt_ptr, 29761: const std::unordered_map* opt_map); 29761: 29761: 29761: inline bool HasRegisteredOptions() const { return !options_.empty(); } 29761: 29761: private: 29761: 29761: 29761: 29761: std::vector options_; 29761: }; 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: # 56 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: class Customizable : public Configurable { 29761: public: 29761: ~Customizable() override {} 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: 29761: 29761: virtual std::string GetId() const { 29761: std::string id = Name(); 29761: return id; 29761: } 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: virtual bool IsInstanceOf(const std::string& name) const { 29761: if (name.empty()) { 29761: return false; 29761: } else if (name == Name()) { 29761: return true; 29761: } else { 29761: const char* nickname = NickName(); 29761: if (nickname != nullptr && name == nickname) { 29761: return true; 29761: } else { 29761: return false; 29761: } 29761: } 29761: } 29761: 29761: const void* GetOptionsPtr(const std::string& name) const override { 29761: const void* ptr = Configurable::GetOptionsPtr(name); 29761: if (ptr != nullptr) { 29761: return ptr; 29761: } else { 29761: const auto inner = Inner(); 29761: if (inner != nullptr) { 29761: return inner->GetOptionsPtr(name); 29761: } else { 29761: return nullptr; 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: const T* CheckedCast() const { 29761: if (IsInstanceOf(T::kClassName())) { 29761: return static_cast(this); 29761: } else { 29761: const auto inner = Inner(); 29761: if (inner != nullptr) { 29761: return inner->CheckedCast(); 29761: } else { 29761: return nullptr; 29761: } 29761: } 29761: } 29761: 29761: template 29761: T* CheckedCast() { 29761: if (IsInstanceOf(T::kClassName())) { 29761: return static_cast(this); 29761: } else { 29761: auto inner = const_cast(Inner()); 29761: if (inner != nullptr) { 29761: return inner->CheckedCast(); 29761: } else { 29761: return nullptr; 29761: } 29761: } 29761: } 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: bool AreEquivalent(const ConfigOptions& config_options, 29761: const Configurable* other, 29761: std::string* mismatch) const override; 29761: 29761: 29761: Status GetOption(const ConfigOptions& config_options, const std::string& name, 29761: std::string* value) const override; 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: static Status GetOptionsMap( 29761: const ConfigOptions& config_options, const Customizable* custom, 29761: const std::string& opt_value, std::string* id, 29761: std::unordered_map* options); 29761: # 195 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: static Status ConfigureNewObject( 29761: const ConfigOptions& config_options, Customizable* object, 29761: const std::unordered_map& options); 29761: 29761: 29761: 29761: 29761: virtual const Customizable* Inner() const { return nullptr; } 29761: 29761: protected: 29761: # 217 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: std::string GenerateIndividualId() const; 29761: 29761: 29761: 29761: 29761: virtual const char* NickName() const { return ""; } 29761: 29761: std::string GetOptionName(const std::string& long_name) const override; 29761: std::string SerializeOptions(const ConfigOptions& options, 29761: const std::string& prefix) const override; 29761: }; 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: 29761: 29761: 29761: class CompareInterface { 29761: public: 29761: virtual ~CompareInterface() {} 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: virtual int Compare(const Slice& a, const Slice& b) const = 0; 29761: }; 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: class Comparator : public Customizable, public CompareInterface { 29761: public: 29761: Comparator() : timestamp_size_(0) {} 29761: 29761: Comparator(size_t ts_sz) : timestamp_size_(ts_sz) {} 29761: 29761: Comparator(const Comparator& orig) : timestamp_size_(orig.timestamp_size_) {} 29761: 29761: Comparator& operator=(const Comparator& rhs) { 29761: if (this != &rhs) { 29761: timestamp_size_ = rhs.timestamp_size_; 29761: } 29761: return *this; 29761: } 29761: 29761: ~Comparator() override {} 29761: 29761: static Status CreateFromString(const ConfigOptions& opts, 29761: const std::string& id, 29761: const Comparator** comp); 29761: static const char* Type() { return "Comparator"; } 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: const char* Name() const override = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool Equal(const Slice& a, const Slice& b) const { 29761: return Compare(a, b) == 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void FindShortestSeparator(std::string* start, 29761: const Slice& limit) const = 0; 29761: 29761: 29761: 29761: 29761: virtual void FindShortSuccessor(std::string* key) const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool IsSameLengthImmediateSuccessor(const Slice& , 29761: const Slice& ) const { 29761: return false; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual bool CanKeysWithDifferentByteContentsBeEqual() const { return true; } 29761: 29761: 29761: 29761: virtual const Comparator* GetRootComparator() const { return this; } 29761: 29761: inline size_t timestamp_size() const { return timestamp_size_; } 29761: 29761: 29761: 29761: 29761: virtual Slice GetMaxTimestamp() const { 29761: if (timestamp_size_ == 0) { 29761: return Slice(); 29761: } 29761: 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: (static_cast ( 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: false 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: "false" 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: ; 29761: return Slice(); 29761: } 29761: 29761: 29761: 29761: 29761: virtual Slice GetMinTimestamp() const { 29761: if (timestamp_size_ == 0) { 29761: return Slice(); 29761: } 29761: 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: (static_cast ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: false 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: "false" 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: ; 29761: return Slice(); 29761: } 29761: 29761: 29761: virtual std::string TimestampToString(const Slice& ) const { 29761: return ""; 29761: } 29761: 29761: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 29761: return CompareWithoutTimestamp(a, true, b, true); 29761: } 29761: # 163 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: virtual int CompareTimestamp(const Slice& , 29761: const Slice& ) const { 29761: return 0; 29761: } 29761: 29761: virtual int CompareWithoutTimestamp(const Slice& a, bool , 29761: const Slice& b, bool ) const { 29761: return Compare(a, b); 29761: } 29761: 29761: virtual bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 29761: return 0 == 29761: CompareWithoutTimestamp(a, true, b, true); 29761: } 29761: 29761: private: 29761: size_t timestamp_size_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: const Comparator* BytewiseComparator(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: const Comparator* ReverseBytewiseComparator(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: const Comparator* BytewiseComparatorWithU64Ts(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: const Comparator* ReverseBytewiseComparatorWithU64Ts(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status DecodeU64Ts(const Slice& ts, uint64_t* int_ts); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Slice EncodeU64Ts(uint64_t ts, std::string* ts_buf); 29761: 29761: 29761: 29761: 29761: Slice MaxU64Ts(); 29761: 29761: 29761: 29761: 29761: Slice MinU64Ts(); 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 1 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: struct ConfigOptions; 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29761: class SliceTransform : public Customizable { 29761: public: 29761: virtual ~SliceTransform(){} 29761: 29761: 29761: const char* Name() const override = 0; 29761: static const char* Type() { return "SliceTransform"; } 29761: 29761: 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& id, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: std::string AsString() const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Slice Transform(const Slice& key) const = 0; 29761: # 71 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29761: virtual bool InDomain(const Slice& key) const = 0; 29761: 29761: 29761: 29761: virtual bool InRange(const Slice& ) const { return false; } 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29761: virtual bool FullLengthEnabled(size_t* ) const { return false; } 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29761: virtual bool SameResultWhenAppended(const Slice& ) const { 29761: return false; 29761: } 29761: }; 29761: 29761: 29761: 29761: const SliceTransform* NewFixedPrefixTransform(size_t prefix_len); 29761: 29761: 29761: 29761: const SliceTransform* NewCappedPrefixTransform(size_t cap_len); 29761: 29761: 29761: const SliceTransform* NewNoopTransform(); 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/types.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/types.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: using ColumnFamilyId = uint32_t; 29761: 29761: 29761: using SequenceNumber = uint64_t; 29761: 29761: struct TableProperties; 29761: using TablePropertiesCollection = 29761: std::unordered_map>; 29761: 29761: const SequenceNumber kMinUnCommittedSeq = 1; 29761: 29761: enum class TableFileCreationReason { 29761: kFlush, 29761: kCompaction, 29761: kRecovery, 29761: kMisc, 29761: }; 29761: 29761: enum class BlobFileCreationReason { 29761: kFlush, 29761: kCompaction, 29761: kRecovery, 29761: }; 29761: 29761: 29761: 29761: enum FileType { 29761: kWalFile, 29761: kDBLockFile, 29761: kTableFile, 29761: kDescriptorFile, 29761: kCurrentFile, 29761: kTempFile, 29761: kInfoLogFile, 29761: kMetaDatabase, 29761: kIdentityFile, 29761: kOptionsFile, 29761: kBlobFile 29761: }; 29761: 29761: 29761: 29761: enum EntryType { 29761: kEntryPut, 29761: kEntryDelete, 29761: kEntrySingleDelete, 29761: kEntryMerge, 29761: kEntryRangeDeletion, 29761: kEntryBlobIndex, 29761: kEntryDeleteWithTimestamp, 29761: kEntryWideColumnEntity, 29761: kEntryTimedPut, 29761: kEntryOther, 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: struct ParsedEntryInfo { 29761: Slice user_key; 29761: Slice timestamp; 29761: SequenceNumber sequence; 29761: EntryType type; 29761: }; 29761: 29761: enum class WriteStallCause { 29761: 29761: 29761: 29761: kMemtableLimit, 29761: kL0FileCountLimit, 29761: kPendingCompactionBytes, 29761: kCFScopeWriteStallCauseEnumMax, 29761: 29761: 29761: 29761: 29761: 29761: kWriteBufferManagerLimit, 29761: kDBScopeWriteStallCauseEnumMax, 29761: 29761: 29761: 29761: kNone, 29761: }; 29761: 29761: enum class WriteStallCondition { 29761: kDelayed, 29761: kStopped, 29761: 29761: kNormal, 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: enum class Temperature : uint8_t { 29761: kUnknown = 0, 29761: kHot = 0x04, 29761: kWarm = 0x08, 29761: kCold = 0x0C, 29761: kLastTemperature, 29761: }; 29761: 29761: } 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 1 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 29761: 29761: # 1 "/usr/include/c++/14/algorithm" 1 3 29761: # 58 "/usr/include/c++/14/algorithm" 3 29761: 29761: # 59 "/usr/include/c++/14/algorithm" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_algo.h" 1 3 29761: # 59 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: # 1 "/usr/include/c++/14/bits/algorithmfwd.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: 29761: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 195 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: template 29761: 29761: bool 29761: all_of(_IIter, _IIter, _Predicate); 29761: 29761: template 29761: 29761: bool 29761: any_of(_IIter, _IIter, _Predicate); 29761: 29761: 29761: template 29761: 29761: bool 29761: binary_search(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: bool 29761: binary_search(_FIter, _FIter, const _Tp&, _Compare); 29761: 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: clamp(const _Tp&, const _Tp&, const _Tp&); 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: clamp(const _Tp&, const _Tp&, const _Tp&, _Compare); 29761: 29761: 29761: template 29761: 29761: _OIter 29761: copy(_IIter, _IIter, _OIter); 29761: 29761: template 29761: 29761: _BIter2 29761: copy_backward(_BIter1, _BIter1, _BIter2); 29761: 29761: 29761: template 29761: 29761: _OIter 29761: copy_if(_IIter, _IIter, _OIter, _Predicate); 29761: 29761: template 29761: 29761: _OIter 29761: copy_n(_IIter, _Size, _OIter); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: pair<_FIter, _FIter> 29761: equal_range(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: pair<_FIter, _FIter> 29761: equal_range(_FIter, _FIter, const _Tp&, _Compare); 29761: 29761: template 29761: 29761: void 29761: fill(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: _OIter 29761: fill_n(_OIter, _Size, const _Tp&); 29761: 29761: 29761: 29761: template 29761: 29761: _FIter1 29761: find_end(_FIter1, _FIter1, _FIter2, _FIter2); 29761: 29761: template 29761: 29761: _FIter1 29761: find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _IIter 29761: find_if_not(_IIter, _IIter, _Predicate); 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: bool 29761: includes(_IIter1, _IIter1, _IIter2, _IIter2); 29761: 29761: template 29761: 29761: bool 29761: includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 29761: 29761: template 29761: void 29761: inplace_merge(_BIter, _BIter, _BIter); 29761: 29761: template 29761: void 29761: inplace_merge(_BIter, _BIter, _BIter, _Compare); 29761: 29761: 29761: template 29761: 29761: bool 29761: is_heap(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: bool 29761: is_heap(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: _RAIter 29761: is_heap_until(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: _RAIter 29761: is_heap_until(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: bool 29761: is_partitioned(_IIter, _IIter, _Predicate); 29761: 29761: template 29761: 29761: bool 29761: is_permutation(_FIter1, _FIter1, _FIter2); 29761: 29761: template 29761: 29761: bool 29761: is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); 29761: 29761: template 29761: 29761: bool 29761: is_sorted(_FIter, _FIter); 29761: 29761: template 29761: 29761: bool 29761: is_sorted(_FIter, _FIter, _Compare); 29761: 29761: template 29761: 29761: _FIter 29761: is_sorted_until(_FIter, _FIter); 29761: 29761: template 29761: 29761: _FIter 29761: is_sorted_until(_FIter, _FIter, _Compare); 29761: 29761: 29761: template 29761: 29761: void 29761: iter_swap(_FIter1, _FIter2); 29761: 29761: template 29761: 29761: _FIter 29761: lower_bound(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: _FIter 29761: lower_bound(_FIter, _FIter, const _Tp&, _Compare); 29761: 29761: template 29761: 29761: void 29761: make_heap(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: make_heap(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: max(const _Tp&, const _Tp&); 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: max(const _Tp&, const _Tp&, _Compare); 29761: 29761: 29761: 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: min(const _Tp&, const _Tp&); 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: min(const _Tp&, const _Tp&, _Compare); 29761: 29761: 29761: 29761: 29761: template 29761: constexpr 29761: pair 29761: minmax(const _Tp&, const _Tp&); 29761: 29761: template 29761: constexpr 29761: pair 29761: minmax(const _Tp&, const _Tp&, _Compare); 29761: 29761: template 29761: constexpr 29761: pair<_FIter, _FIter> 29761: minmax_element(_FIter, _FIter); 29761: 29761: template 29761: constexpr 29761: pair<_FIter, _FIter> 29761: minmax_element(_FIter, _FIter, _Compare); 29761: 29761: template 29761: constexpr 29761: _Tp 29761: min(initializer_list<_Tp>); 29761: 29761: template 29761: constexpr 29761: _Tp 29761: min(initializer_list<_Tp>, _Compare); 29761: 29761: template 29761: constexpr 29761: _Tp 29761: max(initializer_list<_Tp>); 29761: 29761: template 29761: constexpr 29761: _Tp 29761: max(initializer_list<_Tp>, _Compare); 29761: 29761: template 29761: constexpr 29761: pair<_Tp, _Tp> 29761: minmax(initializer_list<_Tp>); 29761: 29761: template 29761: constexpr 29761: pair<_Tp, _Tp> 29761: minmax(initializer_list<_Tp>, _Compare); 29761: 29761: 29761: 29761: 29761: template 29761: 29761: bool 29761: next_permutation(_BIter, _BIter); 29761: 29761: template 29761: 29761: bool 29761: next_permutation(_BIter, _BIter, _Compare); 29761: 29761: 29761: template 29761: 29761: bool 29761: none_of(_IIter, _IIter, _Predicate); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _RAIter 29761: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); 29761: 29761: template 29761: 29761: _RAIter 29761: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); 29761: 29761: 29761: 29761: 29761: template 29761: 29761: pair<_OIter1, _OIter2> 29761: partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); 29761: 29761: template 29761: 29761: _FIter 29761: partition_point(_FIter, _FIter, _Predicate); 29761: 29761: 29761: template 29761: 29761: void 29761: pop_heap(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: pop_heap(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: bool 29761: prev_permutation(_BIter, _BIter); 29761: 29761: template 29761: 29761: bool 29761: prev_permutation(_BIter, _BIter, _Compare); 29761: 29761: template 29761: 29761: void 29761: push_heap(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: push_heap(_RAIter, _RAIter, _Compare); 29761: 29761: 29761: 29761: template 29761: 29761: _FIter 29761: remove(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: _FIter 29761: remove_if(_FIter, _FIter, _Predicate); 29761: 29761: template 29761: 29761: _OIter 29761: remove_copy(_IIter, _IIter, _OIter, const _Tp&); 29761: 29761: template 29761: 29761: _OIter 29761: remove_copy_if(_IIter, _IIter, _OIter, _Predicate); 29761: 29761: 29761: 29761: template 29761: 29761: _OIter 29761: replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); 29761: 29761: template 29761: 29761: _OIter 29761: replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: reverse(_BIter, _BIter); 29761: 29761: template 29761: 29761: _OIter 29761: reverse_copy(_BIter, _BIter, _OIter); 29761: 29761: inline namespace _V2 { 29761: 29761: template 29761: 29761: _FIter 29761: rotate(_FIter, _FIter, _FIter); 29761: 29761: } 29761: 29761: template 29761: 29761: _OIter 29761: rotate_copy(_FIter, _FIter, _FIter, _OIter); 29761: # 622 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: template 29761: void 29761: shuffle(_RAIter, _RAIter, _UGenerator&&); 29761: 29761: 29761: template 29761: 29761: void 29761: sort_heap(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: sort_heap(_RAIter, _RAIter, _Compare); 29761: 29761: 29761: template 29761: _BIter 29761: stable_partition(_BIter, _BIter, _Predicate); 29761: # 657 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: template 29761: 29761: _FIter2 29761: swap_ranges(_FIter1, _FIter1, _FIter2); 29761: 29761: 29761: 29761: template 29761: 29761: _FIter 29761: unique(_FIter, _FIter); 29761: 29761: template 29761: 29761: _FIter 29761: unique(_FIter, _FIter, _BinaryPredicate); 29761: 29761: 29761: 29761: template 29761: 29761: _FIter 29761: upper_bound(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: _FIter 29761: upper_bound(_FIter, _FIter, const _Tp&, _Compare); 29761: 29761: 29761: 29761: template 29761: 29761: _FIter 29761: adjacent_find(_FIter, _FIter); 29761: 29761: template 29761: 29761: _FIter 29761: adjacent_find(_FIter, _FIter, _BinaryPredicate); 29761: 29761: template 29761: 29761: typename iterator_traits<_IIter>::difference_type 29761: count(_IIter, _IIter, const _Tp&); 29761: 29761: template 29761: 29761: typename iterator_traits<_IIter>::difference_type 29761: count_if(_IIter, _IIter, _Predicate); 29761: 29761: template 29761: 29761: bool 29761: equal(_IIter1, _IIter1, _IIter2); 29761: 29761: template 29761: 29761: bool 29761: equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 29761: 29761: template 29761: 29761: _IIter 29761: find(_IIter, _IIter, const _Tp&); 29761: 29761: template 29761: 29761: _FIter1 29761: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); 29761: 29761: template 29761: 29761: _FIter1 29761: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29761: 29761: template 29761: 29761: _IIter 29761: find_if(_IIter, _IIter, _Predicate); 29761: 29761: template 29761: 29761: _Funct 29761: for_each(_IIter, _IIter, _Funct); 29761: 29761: template 29761: 29761: void 29761: generate(_FIter, _FIter, _Generator); 29761: 29761: template 29761: 29761: _OIter 29761: generate_n(_OIter, _Size, _Generator); 29761: 29761: template 29761: 29761: bool 29761: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); 29761: 29761: template 29761: 29761: bool 29761: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 29761: 29761: template 29761: constexpr 29761: _FIter 29761: max_element(_FIter, _FIter); 29761: 29761: template 29761: constexpr 29761: _FIter 29761: max_element(_FIter, _FIter, _Compare); 29761: 29761: template 29761: 29761: _OIter 29761: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29761: 29761: template 29761: constexpr 29761: _FIter 29761: min_element(_FIter, _FIter); 29761: 29761: template 29761: constexpr 29761: _FIter 29761: min_element(_FIter, _FIter, _Compare); 29761: 29761: template 29761: 29761: pair<_IIter1, _IIter2> 29761: mismatch(_IIter1, _IIter1, _IIter2); 29761: 29761: template 29761: 29761: pair<_IIter1, _IIter2> 29761: mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 29761: 29761: template 29761: 29761: void 29761: nth_element(_RAIter, _RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: nth_element(_RAIter, _RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: void 29761: partial_sort(_RAIter, _RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: partial_sort(_RAIter, _RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: _BIter 29761: partition(_BIter, _BIter, _Predicate); 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29761: void 29761: random_shuffle(_RAIter, _RAIter); 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29761: void 29761: random_shuffle(_RAIter, _RAIter, 29761: 29761: _Generator&&); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: replace(_FIter, _FIter, const _Tp&, const _Tp&); 29761: 29761: template 29761: 29761: void 29761: replace_if(_FIter, _FIter, _Predicate, const _Tp&); 29761: 29761: template 29761: 29761: _FIter1 29761: search(_FIter1, _FIter1, _FIter2, _FIter2); 29761: 29761: template 29761: 29761: _FIter1 29761: search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29761: 29761: template 29761: 29761: _FIter 29761: search_n(_FIter, _FIter, _Size, const _Tp&); 29761: 29761: template 29761: 29761: _FIter 29761: search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); 29761: 29761: template 29761: 29761: _OIter 29761: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29761: 29761: template 29761: 29761: _OIter 29761: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29761: 29761: template 29761: 29761: _OIter 29761: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, 29761: _OIter, _Compare); 29761: 29761: template 29761: 29761: _OIter 29761: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29761: 29761: template 29761: 29761: void 29761: sort(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: sort(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: void 29761: stable_sort(_RAIter, _RAIter); 29761: 29761: template 29761: void 29761: stable_sort(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: _OIter 29761: transform(_IIter, _IIter, _OIter, _UnaryOperation); 29761: 29761: template 29761: 29761: _OIter 29761: transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); 29761: 29761: template 29761: 29761: _OIter 29761: unique_copy(_IIter, _IIter, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); 29761: 29761: 29761: 29761: } 29761: # 60 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_heap.h" 1 3 29761: # 63 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _Distance 29761: __is_heap_until(_RandomAccessIterator __first, _Distance __n, 29761: _Compare& __comp) 29761: { 29761: _Distance __parent = 0; 29761: for (_Distance __child = 1; __child < __n; ++__child) 29761: { 29761: if (__comp(__first + __parent, __first + __child)) 29761: return __child; 29761: if ((__child & 1) == 0) 29761: ++__parent; 29761: } 29761: return __n; 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: inline bool 29761: __is_heap(_RandomAccessIterator __first, _Distance __n) 29761: { 29761: __gnu_cxx::__ops::_Iter_less_iter __comp; 29761: return std::__is_heap_until(__first, __n, __comp) == __n; 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) 29761: { 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: return std::__is_heap_until(__first, __n, __cmp) == __n; 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { return std::__is_heap(__first, std::distance(__first, __last)); } 29761: 29761: template 29761: 29761: inline bool 29761: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: return std::__is_heap(__first, std::move(__comp), 29761: std::distance(__first, __last)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __push_heap(_RandomAccessIterator __first, 29761: _Distance __holeIndex, _Distance __topIndex, _Tp __value, 29761: _Compare& __comp) 29761: { 29761: _Distance __parent = (__holeIndex - 1) / 2; 29761: while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) 29761: { 29761: *(__first + __holeIndex) = std::move(*(__first + __parent)); 29761: __holeIndex = __parent; 29761: __parent = (__holeIndex - 1) / 2; 29761: } 29761: *(__first + __holeIndex) = std::move(__value); 29761: } 29761: # 159 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: __gnu_cxx::__ops::_Iter_less_val __comp; 29761: _ValueType __value = std::move(*(__last - 1)); 29761: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 29761: _DistanceType(0), std::move(__value), __comp); 29761: } 29761: # 195 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 29761: __cmp(std::move(__comp)); 29761: _ValueType __value = std::move(*(__last - 1)); 29761: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 29761: _DistanceType(0), std::move(__value), __cmp); 29761: } 29761: 29761: template 29761: 29761: void 29761: __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, 29761: _Distance __len, _Tp __value, _Compare __comp) 29761: { 29761: const _Distance __topIndex = __holeIndex; 29761: _Distance __secondChild = __holeIndex; 29761: while (__secondChild < (__len - 1) / 2) 29761: { 29761: __secondChild = 2 * (__secondChild + 1); 29761: if (__comp(__first + __secondChild, 29761: __first + (__secondChild - 1))) 29761: __secondChild--; 29761: *(__first + __holeIndex) = std::move(*(__first + __secondChild)); 29761: __holeIndex = __secondChild; 29761: } 29761: if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) 29761: { 29761: __secondChild = 2 * (__secondChild + 1); 29761: *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) 29761: ; 29761: __holeIndex = __secondChild - 1; 29761: } 29761: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 29761: __cmp(std::move(__comp)); 29761: std::__push_heap(__first, __holeIndex, __topIndex, 29761: std::move(__value), __cmp); 29761: } 29761: 29761: template 29761: 29761: inline void 29761: __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _RandomAccessIterator __result, _Compare& __comp) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: _ValueType __value = std::move(*__result); 29761: *__result = std::move(*__first); 29761: std::__adjust_heap(__first, _DistanceType(0), 29761: _DistanceType(__last - __first), 29761: std::move(__value), __comp); 29761: } 29761: # 280 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: if (__last - __first > 1) 29761: { 29761: --__last; 29761: __gnu_cxx::__ops::_Iter_less_iter __comp; 29761: std::__pop_heap(__first, __last, __last, __comp); 29761: } 29761: } 29761: # 314 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: pop_heap(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: if (__last - __first > 1) 29761: { 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: --__last; 29761: std::__pop_heap(__first, __last, __last, __cmp); 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare& __comp) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: if (__last - __first < 2) 29761: return; 29761: 29761: const _DistanceType __len = __last - __first; 29761: _DistanceType __parent = (__len - 2) / 2; 29761: while (true) 29761: { 29761: _ValueType __value = std::move(*(__first + __parent)); 29761: std::__adjust_heap(__first, __parent, __len, std::move(__value), 29761: __comp); 29761: if (__parent == 0) 29761: return; 29761: __parent--; 29761: } 29761: } 29761: # 372 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: __gnu_cxx::__ops::_Iter_less_iter __comp; 29761: std::__make_heap(__first, __last, __comp); 29761: } 29761: # 399 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: std::__make_heap(__first, __last, __cmp); 29761: } 29761: 29761: template 29761: 29761: void 29761: __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare& __comp) 29761: { 29761: while (__last - __first > 1) 29761: { 29761: --__last; 29761: std::__pop_heap(__first, __last, __last, __comp); 29761: } 29761: } 29761: # 437 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: __gnu_cxx::__ops::_Iter_less_iter __comp; 29761: std::__sort_heap(__first, __last, __comp); 29761: } 29761: # 465 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: std::__sort_heap(__first, __last, __cmp); 29761: } 29761: # 494 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _RandomAccessIterator 29761: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: __gnu_cxx::__ops::_Iter_less_iter __comp; 29761: return __first + 29761: std::__is_heap_until(__first, std::distance(__first, __last), __comp); 29761: } 29761: # 523 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _RandomAccessIterator 29761: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: return __first 29761: + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); 29761: } 29761: # 548 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { return std::is_heap_until(__first, __last) == __last; } 29761: # 562 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: const auto __dist = std::distance(__first, __last); 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: return std::__is_heap_until(__first, __dist, __cmp) == __dist; 29761: } 29761: 29761: 29761: 29761: } 29761: # 62 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/uniform_int_dist.h" 1 3 29761: # 41 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 64 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: template 29761: constexpr bool 29761: _Power_of_2(_Tp __x) 29761: { 29761: return ((__x - 1) & __x) == 0; 29761: } 29761: } 29761: # 87 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: template 29761: class uniform_int_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "template argument must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: struct param_type 29761: { 29761: typedef uniform_int_distribution<_IntType> distribution_type; 29761: 29761: param_type() : param_type(0) { } 29761: 29761: explicit 29761: param_type(_IntType __a, 29761: _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) 29761: : _M_a(__a), _M_b(__b) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: result_type 29761: a() const 29761: { return _M_a; } 29761: 29761: result_type 29761: b() const 29761: { return _M_b; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: private: 29761: _IntType _M_a; 29761: _IntType _M_b; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: uniform_int_distribution() : uniform_int_distribution(0) { } 29761: 29761: 29761: 29761: 29761: explicit 29761: uniform_int_distribution(_IntType __a, 29761: _IntType __b 29761: = __gnu_cxx::__int_traits<_IntType>::__max) 29761: : _M_param(__a, __b) 29761: { } 29761: 29761: explicit 29761: uniform_int_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset() { } 29761: 29761: result_type 29761: a() const 29761: { return _M_param.a(); } 29761: 29761: result_type 29761: b() const 29761: { return _M_param.b(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return this->a(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return this->b(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomBitGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomBitGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomBitGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomBitGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomBitGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const uniform_int_distribution& __d1, 29761: const uniform_int_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomBitGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: 29761: 29761: 29761: template 29761: static _Up 29761: _S_nd(_Urbg& __g, _Up __range) 29761: { 29761: using _Up_traits = __gnu_cxx::__int_traits<_Up>; 29761: using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; 29761: static_assert(!_Up_traits::__is_signed, "U must be unsigned"); 29761: static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); 29761: static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), 29761: "W must be twice as wide as U"); 29761: 29761: 29761: 29761: 29761: _Wp __product = _Wp(__g()) * _Wp(__range); 29761: _Up __low = _Up(__product); 29761: if (__low < __range) 29761: { 29761: _Up __threshold = -__range % __range; 29761: while (__low < __threshold) 29761: { 29761: __product = _Wp(__g()) * _Wp(__range); 29761: __low = _Up(__product); 29761: } 29761: } 29761: return __product >> _Up_traits::__digits; 29761: } 29761: }; 29761: 29761: template 29761: template 29761: typename uniform_int_distribution<_IntType>::result_type 29761: uniform_int_distribution<_IntType>:: 29761: operator()(_UniformRandomBitGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 29761: typedef typename make_unsigned::type __utype; 29761: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 29761: 29761: constexpr __uctype __urngmin = _UniformRandomBitGenerator::min(); 29761: constexpr __uctype __urngmax = _UniformRandomBitGenerator::max(); 29761: static_assert( __urngmin < __urngmax, 29761: "Uniform random bit generator must define min() < max()"); 29761: constexpr __uctype __urngrange = __urngmax - __urngmin; 29761: 29761: const __uctype __urange 29761: = __uctype(__param.b()) - __uctype(__param.a()); 29761: 29761: __uctype __ret; 29761: if (__urngrange > __urange) 29761: { 29761: 29761: 29761: const __uctype __uerange = __urange + 1; 29761: # 323 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: if constexpr (__urngrange == 0xffffffffU) 29761: { 29761: 29761: 29761: unsigned int __u32erange = __uerange; 29761: __ret = _S_nd(__urng, __u32erange); 29761: } 29761: else 29761: 29761: { 29761: 29761: const __uctype __scaling = __urngrange / __uerange; 29761: const __uctype __past = __uerange * __scaling; 29761: do 29761: __ret = __uctype(__urng()) - __urngmin; 29761: while (__ret >= __past); 29761: __ret /= __scaling; 29761: } 29761: } 29761: else if (__urngrange < __urange) 29761: { 29761: # 359 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: __uctype __tmp; 29761: do 29761: { 29761: const __uctype __uerngrange = __urngrange + 1; 29761: __tmp = (__uerngrange * operator() 29761: (__urng, param_type(0, __urange / __uerngrange))); 29761: __ret = __tmp + (__uctype(__urng()) - __urngmin); 29761: } 29761: while (__ret > __urange || __ret < __tmp); 29761: } 29761: else 29761: __ret = __uctype(__urng()) - __urngmin; 29761: 29761: return __ret + __param.a(); 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: uniform_int_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomBitGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 29761: typedef typename make_unsigned::type __utype; 29761: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 29761: 29761: static_assert( __urng.min() < __urng.max(), 29761: "Uniform random bit generator must define min() < max()"); 29761: 29761: constexpr __uctype __urngmin = __urng.min(); 29761: constexpr __uctype __urngmax = __urng.max(); 29761: constexpr __uctype __urngrange = __urngmax - __urngmin; 29761: const __uctype __urange 29761: = __uctype(__param.b()) - __uctype(__param.a()); 29761: 29761: __uctype __ret; 29761: 29761: if (__urngrange > __urange) 29761: { 29761: if (__detail::_Power_of_2(__urngrange + 1) 29761: && __detail::_Power_of_2(__urange + 1)) 29761: { 29761: while (__f != __t) 29761: { 29761: __ret = __uctype(__urng()) - __urngmin; 29761: *__f++ = (__ret & __urange) + __param.a(); 29761: } 29761: } 29761: else 29761: { 29761: 29761: const __uctype __uerange = __urange + 1; 29761: const __uctype __scaling = __urngrange / __uerange; 29761: const __uctype __past = __uerange * __scaling; 29761: while (__f != __t) 29761: { 29761: do 29761: __ret = __uctype(__urng()) - __urngmin; 29761: while (__ret >= __past); 29761: *__f++ = __ret / __scaling + __param.a(); 29761: } 29761: } 29761: } 29761: else if (__urngrange < __urange) 29761: { 29761: # 444 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: __uctype __tmp; 29761: while (__f != __t) 29761: { 29761: do 29761: { 29761: constexpr __uctype __uerngrange = __urngrange + 1; 29761: __tmp = (__uerngrange * operator() 29761: (__urng, param_type(0, __urange / __uerngrange))); 29761: __ret = __tmp + (__uctype(__urng()) - __urngmin); 29761: } 29761: while (__ret > __urange || __ret < __tmp); 29761: *__f++ = __ret; 29761: } 29761: } 29761: else 29761: while (__f != __t) 29761: *__f++ = __uctype(__urng()) - __urngmin + __param.a(); 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstdlib" 1 3 29761: # 39 "/usr/include/c++/14/cstdlib" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdlib" 3 29761: # 72 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, 29761: _Iterator __c, _Compare __comp) 29761: { 29761: if (__comp(__a, __b)) 29761: { 29761: if (__comp(__b, __c)) 29761: std::iter_swap(__result, __b); 29761: else if (__comp(__a, __c)) 29761: std::iter_swap(__result, __c); 29761: else 29761: std::iter_swap(__result, __a); 29761: } 29761: else if (__comp(__a, __c)) 29761: std::iter_swap(__result, __a); 29761: else if (__comp(__b, __c)) 29761: std::iter_swap(__result, __c); 29761: else 29761: std::iter_swap(__result, __b); 29761: } 29761: 29761: 29761: template 29761: 29761: inline _InputIterator 29761: __find_if_not(_InputIterator __first, _InputIterator __last, 29761: _Predicate __pred) 29761: { 29761: return std::__find_if(__first, __last, 29761: __gnu_cxx::__ops::__negate(__pred), 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _InputIterator 29761: __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) 29761: { 29761: for (; __len; --__len, (void) ++__first) 29761: if (!__pred(__first)) 29761: break; 29761: return __first; 29761: } 29761: # 148 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _ForwardIterator 29761: __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, 29761: _Integer __count, _UnaryPredicate __unary_pred, 29761: std::forward_iterator_tag) 29761: { 29761: __first = std::__find_if(__first, __last, __unary_pred); 29761: while (__first != __last) 29761: { 29761: typename iterator_traits<_ForwardIterator>::difference_type 29761: __n = __count; 29761: _ForwardIterator __i = __first; 29761: ++__i; 29761: while (__i != __last && __n != 1 && __unary_pred(__i)) 29761: { 29761: ++__i; 29761: --__n; 29761: } 29761: if (__n == 1) 29761: return __first; 29761: if (__i == __last) 29761: return __last; 29761: __first = std::__find_if(++__i, __last, __unary_pred); 29761: } 29761: return __last; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _RandomAccessIter 29761: __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, 29761: _Integer __count, _UnaryPredicate __unary_pred, 29761: std::random_access_iterator_tag) 29761: { 29761: typedef typename std::iterator_traits<_RandomAccessIter>::difference_type 29761: _DistanceType; 29761: 29761: _DistanceType __tailSize = __last - __first; 29761: _DistanceType __remainder = __count; 29761: 29761: while (__remainder <= __tailSize) 29761: { 29761: __first += __remainder; 29761: __tailSize -= __remainder; 29761: 29761: 29761: _RandomAccessIter __backTrack = __first; 29761: while (__unary_pred(--__backTrack)) 29761: { 29761: if (--__remainder == 0) 29761: return (__first - __count); 29761: } 29761: __remainder = __count + 1 - (__first - __backTrack); 29761: } 29761: return __last; 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __search_n(_ForwardIterator __first, _ForwardIterator __last, 29761: _Integer __count, 29761: _UnaryPredicate __unary_pred) 29761: { 29761: if (__count <= 0) 29761: return __first; 29761: 29761: if (__count == 1) 29761: return std::__find_if(__first, __last, __unary_pred); 29761: 29761: return std::__search_n_aux(__first, __last, __count, __unary_pred, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: 29761: template 29761: 29761: _ForwardIterator1 29761: __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: forward_iterator_tag, forward_iterator_tag, 29761: _BinaryPredicate __comp) 29761: { 29761: if (__first2 == __last2) 29761: return __last1; 29761: 29761: _ForwardIterator1 __result = __last1; 29761: while (1) 29761: { 29761: _ForwardIterator1 __new_result 29761: = std::__search(__first1, __last1, __first2, __last2, __comp); 29761: if (__new_result == __last1) 29761: return __result; 29761: else 29761: { 29761: __result = __new_result; 29761: __first1 = __new_result; 29761: ++__first1; 29761: } 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: _BidirectionalIterator1 29761: __find_end(_BidirectionalIterator1 __first1, 29761: _BidirectionalIterator1 __last1, 29761: _BidirectionalIterator2 __first2, 29761: _BidirectionalIterator2 __last2, 29761: bidirectional_iterator_tag, bidirectional_iterator_tag, 29761: _BinaryPredicate __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; 29761: typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; 29761: 29761: _RevIterator1 __rlast1(__first1); 29761: _RevIterator2 __rlast2(__first2); 29761: _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, 29761: _RevIterator2(__last2), __rlast2, 29761: __comp); 29761: 29761: if (__rresult == __rlast1) 29761: return __last1; 29761: else 29761: { 29761: _BidirectionalIterator1 __result = __rresult.base(); 29761: std::advance(__result, -std::distance(__first2, __last2)); 29761: return __result; 29761: } 29761: } 29761: # 322 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator1 29761: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__find_end(__first1, __last1, __first2, __last2, 29761: std::__iterator_category(__first1), 29761: std::__iterator_category(__first2), 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 371 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator1 29761: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: _BinaryPredicate __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__find_end(__first1, __last1, __first2, __last2, 29761: std::__iterator_category(__first1), 29761: std::__iterator_category(__first2), 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 407 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29761: { return __last == std::find_if_not(__first, __last, __pred); } 29761: # 425 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29761: { return __last == std::find_if(__first, __last, __pred); } 29761: # 444 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29761: { return !std::none_of(__first, __last, __pred); } 29761: # 460 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _InputIterator 29761: find_if_not(_InputIterator __first, _InputIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: return std::__find_if_not(__first, __last, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: # 485 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_partitioned(_InputIterator __first, _InputIterator __last, 29761: _Predicate __pred) 29761: { 29761: __first = std::find_if_not(__first, __last, __pred); 29761: if (__first == __last) 29761: return true; 29761: ++__first; 29761: return std::none_of(__first, __last, __pred); 29761: } 29761: # 507 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _ForwardIterator 29761: partition_point(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: typedef typename iterator_traits<_ForwardIterator>::difference_type 29761: _DistanceType; 29761: 29761: _DistanceType __len = std::distance(__first, __last); 29761: 29761: while (__len > 0) 29761: { 29761: _DistanceType __half = __len >> 1; 29761: _ForwardIterator __middle = __first; 29761: std::advance(__middle, __half); 29761: if (__pred(*__middle)) 29761: { 29761: __first = __middle; 29761: ++__first; 29761: __len = __len - __half - 1; 29761: } 29761: else 29761: __len = __half; 29761: } 29761: return __first; 29761: } 29761: 29761: 29761: template 29761: 29761: _OutputIterator 29761: __remove_copy_if(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Predicate __pred) 29761: { 29761: for (; __first != __last; ++__first) 29761: if (!__pred(__first)) 29761: { 29761: *__result = *__first; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: # 574 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: remove_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, const _Tp& __value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__remove_copy_if(__first, __last, __result, 29761: __gnu_cxx::__ops::__iter_equals_val(__value)); 29761: } 29761: # 607 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: remove_copy_if(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__remove_copy_if(__first, __last, __result, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: # 642 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _OutputIterator 29761: copy_if(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: if (__pred(*__first)) 29761: { 29761: *__result = *__first; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __copy_n(_InputIterator __first, _Size __n, 29761: _OutputIterator __result, input_iterator_tag) 29761: { 29761: return std::__niter_wrap(__result, 29761: __copy_n_a(__first, __n, 29761: std::__niter_base(__result), true)); 29761: } 29761: 29761: template 29761: 29761: inline _OutputIterator 29761: __copy_n(_RandomAccessIterator __first, _Size __n, 29761: _OutputIterator __result, random_access_iterator_tag) 29761: { return std::copy(__first, __first + __n, __result); } 29761: # 698 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: const auto __n2 = std::__size_to_integer(__n); 29761: if (__n2 <= 0) 29761: return __result; 29761: 29761: ; 29761: ; 29761: 29761: return std::__copy_n(__first, __n2, __result, 29761: std::__iterator_category(__first)); 29761: } 29761: # 734 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: pair<_OutputIterator1, _OutputIterator2> 29761: partition_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator1 __out_true, _OutputIterator2 __out_false, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: if (__pred(*__first)) 29761: { 29761: *__out_true = *__first; 29761: ++__out_true; 29761: } 29761: else 29761: { 29761: *__out_false = *__first; 29761: ++__out_false; 29761: } 29761: 29761: return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); 29761: } 29761: # 785 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: remove(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__remove_if(__first, __last, 29761: __gnu_cxx::__ops::__iter_equals_val(__value)); 29761: } 29761: # 819 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: remove_if(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__remove_if(__first, __last, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: if (__first == __last) 29761: return __last; 29761: _ForwardIterator __next = __first; 29761: while (++__next != __last) 29761: { 29761: if (__binary_pred(__first, __next)) 29761: return __first; 29761: __first = __next; 29761: } 29761: return __last; 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __unique(_ForwardIterator __first, _ForwardIterator __last, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: __first = std::__adjacent_find(__first, __last, __binary_pred); 29761: if (__first == __last) 29761: return __last; 29761: 29761: 29761: _ForwardIterator __dest = __first; 29761: ++__first; 29761: while (++__first != __last) 29761: if (!__binary_pred(__dest, __first)) 29761: *++__dest = std::move(*__first); 29761: return ++__dest; 29761: } 29761: # 888 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: unique(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__unique(__first, __last, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 919 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: unique(_ForwardIterator __first, _ForwardIterator __last, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__unique(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _OutputIterator 29761: __unique_copy(_ForwardIterator __first, _ForwardIterator __last, 29761: _OutputIterator __result, _BinaryPredicate __binary_pred, 29761: forward_iterator_tag, output_iterator_tag) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: _ForwardIterator __next = __first; 29761: *__result = *__first; 29761: while (++__next != __last) 29761: if (!__binary_pred(__first, __next)) 29761: { 29761: __first = __next; 29761: *++__result = *__first; 29761: } 29761: return ++__result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _OutputIterator 29761: __unique_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _BinaryPredicate __binary_pred, 29761: input_iterator_tag, output_iterator_tag) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: typename iterator_traits<_InputIterator>::value_type __value = *__first; 29761: __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) 29761: __rebound_pred 29761: = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); 29761: *__result = __value; 29761: while (++__first != __last) 29761: if (!__rebound_pred(__first, __value)) 29761: { 29761: __value = *__first; 29761: *++__result = __value; 29761: } 29761: return ++__result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __unique_copy(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, _BinaryPredicate __binary_pred, 29761: input_iterator_tag, forward_iterator_tag) 29761: { 29761: 29761: 29761: 29761: 29761: *__result = *__first; 29761: while (++__first != __last) 29761: if (!__binary_pred(__result, __first)) 29761: *++__result = *__first; 29761: return ++__result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, 29761: bidirectional_iterator_tag) 29761: { 29761: while (true) 29761: if (__first == __last || __first == --__last) 29761: return; 29761: else 29761: { 29761: std::iter_swap(__first, __last); 29761: ++__first; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: random_access_iterator_tag) 29761: { 29761: if (__first == __last) 29761: return; 29761: --__last; 29761: while (__first < __last) 29761: { 29761: std::iter_swap(__first, __last); 29761: ++__first; 29761: --__last; 29761: } 29761: } 29761: # 1080 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) 29761: { 29761: 29761: 29761: 29761: ; 29761: std::__reverse(__first, __last, std::__iterator_category(__first)); 29761: } 29761: # 1108 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _OutputIterator 29761: reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: while (__first != __last) 29761: { 29761: --__last; 29761: *__result = *__last; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _EuclideanRingElement 29761: __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) 29761: { 29761: while (__n != 0) 29761: { 29761: _EuclideanRingElement __t = __m % __n; 29761: __m = __n; 29761: __n = __t; 29761: } 29761: return __m; 29761: } 29761: 29761: inline namespace _V2 { 29761: 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __rotate(_ForwardIterator __first, 29761: _ForwardIterator __middle, 29761: _ForwardIterator __last, 29761: forward_iterator_tag) 29761: { 29761: if (__first == __middle) 29761: return __last; 29761: else if (__last == __middle) 29761: return __first; 29761: 29761: _ForwardIterator __first2 = __middle; 29761: do 29761: { 29761: std::iter_swap(__first, __first2); 29761: ++__first; 29761: ++__first2; 29761: if (__first == __middle) 29761: __middle = __first2; 29761: } 29761: while (__first2 != __last); 29761: 29761: _ForwardIterator __ret = __first; 29761: 29761: __first2 = __middle; 29761: 29761: while (__first2 != __last) 29761: { 29761: std::iter_swap(__first, __first2); 29761: ++__first; 29761: ++__first2; 29761: if (__first == __middle) 29761: __middle = __first2; 29761: else if (__first2 == __last) 29761: __first2 = __middle; 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: template 29761: 29761: _BidirectionalIterator 29761: __rotate(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: bidirectional_iterator_tag) 29761: { 29761: 29761: 29761: 29761: 29761: if (__first == __middle) 29761: return __last; 29761: else if (__last == __middle) 29761: return __first; 29761: 29761: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 29761: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 29761: 29761: while (__first != __middle && __middle != __last) 29761: { 29761: std::iter_swap(__first, --__last); 29761: ++__first; 29761: } 29761: 29761: if (__first == __middle) 29761: { 29761: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 29761: return __last; 29761: } 29761: else 29761: { 29761: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 29761: return __first; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: _RandomAccessIterator 29761: __rotate(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, 29761: random_access_iterator_tag) 29761: { 29761: 29761: 29761: 29761: 29761: if (__first == __middle) 29761: return __last; 29761: else if (__last == __middle) 29761: return __first; 29761: 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _Distance; 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: 29761: 29761: typedef typename make_unsigned<_Distance>::type _UDistance; 29761: 29761: 29761: 29761: 29761: _Distance __n = __last - __first; 29761: _Distance __k = __middle - __first; 29761: 29761: if (__k == __n - __k) 29761: { 29761: std::swap_ranges(__first, __middle, __middle); 29761: return __middle; 29761: } 29761: 29761: _RandomAccessIterator __p = __first; 29761: _RandomAccessIterator __ret = __first + (__last - __middle); 29761: 29761: for (;;) 29761: { 29761: if (__k < __n - __k) 29761: { 29761: if (__is_pod(_ValueType) && __k == 1) 29761: { 29761: _ValueType __t = std::move(*__p); 29761: std::move(__p + 1, __p + __n, __p); 29761: *(__p + __n - 1) = std::move(__t); 29761: return __ret; 29761: } 29761: _RandomAccessIterator __q = __p + __k; 29761: for (_Distance __i = 0; __i < __n - __k; ++ __i) 29761: { 29761: std::iter_swap(__p, __q); 29761: ++__p; 29761: ++__q; 29761: } 29761: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 29761: if (__n == 0) 29761: return __ret; 29761: std::swap(__n, __k); 29761: __k = __n - __k; 29761: } 29761: else 29761: { 29761: __k = __n - __k; 29761: if (__is_pod(_ValueType) && __k == 1) 29761: { 29761: _ValueType __t = std::move(*(__p + __n - 1)); 29761: std::move_backward(__p, __p + __n - 1, __p + __n); 29761: *__p = std::move(__t); 29761: return __ret; 29761: } 29761: _RandomAccessIterator __q = __p + __n; 29761: __p = __q - __k; 29761: for (_Distance __i = 0; __i < __n - __k; ++ __i) 29761: { 29761: --__p; 29761: --__q; 29761: std::iter_swap(__p, __q); 29761: } 29761: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 29761: if (__n == 0) 29761: return __ret; 29761: std::swap(__n, __k); 29761: } 29761: } 29761: } 29761: # 1345 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _ForwardIterator 29761: rotate(_ForwardIterator __first, _ForwardIterator __middle, 29761: _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__rotate(__first, __middle, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: } 29761: # 1383 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, 29761: _ForwardIterator __last, _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::copy(__first, __middle, 29761: std::copy(__middle, __last, __result)); 29761: } 29761: 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __partition(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred, forward_iterator_tag) 29761: { 29761: if (__first == __last) 29761: return __first; 29761: 29761: while (__pred(*__first)) 29761: if (++__first == __last) 29761: return __first; 29761: 29761: _ForwardIterator __next = __first; 29761: 29761: while (++__next != __last) 29761: if (__pred(*__next)) 29761: { 29761: std::iter_swap(__first, __next); 29761: ++__first; 29761: } 29761: 29761: return __first; 29761: } 29761: 29761: 29761: template 29761: 29761: _BidirectionalIterator 29761: __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, 29761: _Predicate __pred, bidirectional_iterator_tag) 29761: { 29761: while (true) 29761: { 29761: while (true) 29761: if (__first == __last) 29761: return __first; 29761: else if (__pred(*__first)) 29761: ++__first; 29761: else 29761: break; 29761: --__last; 29761: while (true) 29761: if (__first == __last) 29761: return __first; 29761: else if (!bool(__pred(*__last))) 29761: --__last; 29761: else 29761: break; 29761: std::iter_swap(__first, __last); 29761: ++__first; 29761: } 29761: } 29761: # 1464 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: _ForwardIterator 29761: __stable_partition_adaptive(_ForwardIterator __first, 29761: _ForwardIterator __last, 29761: _Predicate __pred, _Distance __len, 29761: _Pointer __buffer, 29761: _Distance __buffer_size) 29761: { 29761: if (__len == 1) 29761: return __first; 29761: 29761: if (__len <= __buffer_size) 29761: { 29761: _ForwardIterator __result1 = __first; 29761: _Pointer __result2 = __buffer; 29761: 29761: 29761: 29761: 29761: *__result2 = std::move(*__first); 29761: ++__result2; 29761: ++__first; 29761: for (; __first != __last; ++__first) 29761: if (__pred(__first)) 29761: { 29761: *__result1 = std::move(*__first); 29761: ++__result1; 29761: } 29761: else 29761: { 29761: *__result2 = std::move(*__first); 29761: ++__result2; 29761: } 29761: 29761: std::move(__buffer, __result2, __result1); 29761: return __result1; 29761: } 29761: 29761: _ForwardIterator __middle = __first; 29761: std::advance(__middle, __len / 2); 29761: _ForwardIterator __left_split = 29761: std::__stable_partition_adaptive(__first, __middle, __pred, 29761: __len / 2, __buffer, 29761: __buffer_size); 29761: 29761: 29761: 29761: _Distance __right_len = __len - __len / 2; 29761: _ForwardIterator __right_split = 29761: std::__find_if_not_n(__middle, __right_len, __pred); 29761: 29761: if (__right_len) 29761: __right_split = 29761: std::__stable_partition_adaptive(__right_split, __last, __pred, 29761: __right_len, 29761: __buffer, __buffer_size); 29761: 29761: return std::rotate(__left_split, __middle, __right_split); 29761: } 29761: 29761: template 29761: _ForwardIterator 29761: __stable_partition(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: __first = std::__find_if_not(__first, __last, __pred); 29761: 29761: if (__first == __last) 29761: return __first; 29761: 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_ForwardIterator>::difference_type 29761: _DistanceType; 29761: 29761: _Temporary_buffer<_ForwardIterator, _ValueType> 29761: __buf(__first, std::distance(__first, __last)); 29761: return 29761: std::__stable_partition_adaptive(__first, __last, __pred, 29761: _DistanceType(__buf.requested_size()), 29761: __buf.begin(), 29761: _DistanceType(__buf.size())); 29761: } 29761: # 1566 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: inline _ForwardIterator 29761: stable_partition(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__stable_partition(__first, __last, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __heap_select(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: std::__make_heap(__first, __middle, __comp); 29761: for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) 29761: if (__comp(__i, __first)) 29761: std::__pop_heap(__first, __middle, __i, __comp); 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: _RandomAccessIterator 29761: __partial_sort_copy(_InputIterator __first, _InputIterator __last, 29761: _RandomAccessIterator __result_first, 29761: _RandomAccessIterator __result_last, 29761: _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type 29761: _InputValueType; 29761: typedef iterator_traits<_RandomAccessIterator> _RItTraits; 29761: typedef typename _RItTraits::difference_type _DistanceType; 29761: 29761: if (__result_first == __result_last) 29761: return __result_last; 29761: _RandomAccessIterator __result_real_last = __result_first; 29761: while (__first != __last && __result_real_last != __result_last) 29761: { 29761: *__result_real_last = *__first; 29761: ++__result_real_last; 29761: ++__first; 29761: } 29761: 29761: std::__make_heap(__result_first, __result_real_last, __comp); 29761: while (__first != __last) 29761: { 29761: if (__comp(__first, __result_first)) 29761: std::__adjust_heap(__result_first, _DistanceType(0), 29761: _DistanceType(__result_real_last 29761: - __result_first), 29761: _InputValueType(*__first), __comp); 29761: ++__first; 29761: } 29761: std::__sort_heap(__result_first, __result_real_last, __comp); 29761: return __result_real_last; 29761: } 29761: # 1659 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _RandomAccessIterator 29761: partial_sort_copy(_InputIterator __first, _InputIterator __last, 29761: _RandomAccessIterator __result_first, 29761: _RandomAccessIterator __result_last) 29761: { 29761: # 1674 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__partial_sort_copy(__first, __last, 29761: __result_first, __result_last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 1709 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _RandomAccessIterator 29761: partial_sort_copy(_InputIterator __first, _InputIterator __last, 29761: _RandomAccessIterator __result_first, 29761: _RandomAccessIterator __result_last, 29761: _Compare __comp) 29761: { 29761: # 1726 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__partial_sort_copy(__first, __last, 29761: __result_first, __result_last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __unguarded_linear_insert(_RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: typename iterator_traits<_RandomAccessIterator>::value_type 29761: __val = std::move(*__last); 29761: _RandomAccessIterator __next = __last; 29761: --__next; 29761: while (__comp(__val, __next)) 29761: { 29761: *__last = std::move(*__next); 29761: __last = __next; 29761: --__next; 29761: } 29761: *__last = std::move(__val); 29761: } 29761: 29761: 29761: template 29761: 29761: void 29761: __insertion_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: if (__first == __last) return; 29761: 29761: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29761: { 29761: if (__comp(__i, __first)) 29761: { 29761: typename iterator_traits<_RandomAccessIterator>::value_type 29761: __val = std::move(*__i); 29761: std::move_backward(__first, __i, __i + 1); 29761: *__first = std::move(__val); 29761: } 29761: else 29761: std::__unguarded_linear_insert(__i, 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline void 29761: __unguarded_insertion_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: for (_RandomAccessIterator __i = __first; __i != __last; ++__i) 29761: std::__unguarded_linear_insert(__i, 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: enum { _S_threshold = 16 }; 29761: 29761: 29761: template 29761: 29761: void 29761: __final_insertion_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: if (__last - __first > int(_S_threshold)) 29761: { 29761: std::__insertion_sort(__first, __first + int(_S_threshold), __comp); 29761: std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, 29761: __comp); 29761: } 29761: else 29761: std::__insertion_sort(__first, __last, __comp); 29761: } 29761: 29761: 29761: template 29761: 29761: _RandomAccessIterator 29761: __unguarded_partition(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, 29761: _RandomAccessIterator __pivot, _Compare __comp) 29761: { 29761: while (true) 29761: { 29761: while (__comp(__first, __pivot)) 29761: ++__first; 29761: --__last; 29761: while (__comp(__pivot, __last)) 29761: --__last; 29761: if (!(__first < __last)) 29761: return __first; 29761: std::iter_swap(__first, __last); 29761: ++__first; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline _RandomAccessIterator 29761: __unguarded_partition_pivot(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: _RandomAccessIterator __mid = __first + (__last - __first) / 2; 29761: std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, 29761: __comp); 29761: return std::__unguarded_partition(__first + 1, __last, __first, __comp); 29761: } 29761: 29761: template 29761: 29761: inline void 29761: __partial_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: std::__heap_select(__first, __middle, __last, __comp); 29761: std::__sort_heap(__first, __middle, __comp); 29761: } 29761: 29761: 29761: template 29761: 29761: void 29761: __introsort_loop(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, 29761: _Size __depth_limit, _Compare __comp) 29761: { 29761: while (__last - __first > int(_S_threshold)) 29761: { 29761: if (__depth_limit == 0) 29761: { 29761: std::__partial_sort(__first, __last, __last, __comp); 29761: return; 29761: } 29761: --__depth_limit; 29761: _RandomAccessIterator __cut = 29761: std::__unguarded_partition_pivot(__first, __last, __comp); 29761: std::__introsort_loop(__cut, __last, __depth_limit, __comp); 29761: __last = __cut; 29761: } 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: inline void 29761: __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: if (__first != __last) 29761: { 29761: std::__introsort_loop(__first, __last, 29761: std::__lg(__last - __first) * 2, 29761: __comp); 29761: std::__final_insertion_sort(__first, __last, __comp); 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29761: _RandomAccessIterator __last, _Size __depth_limit, 29761: _Compare __comp) 29761: { 29761: while (__last - __first > 3) 29761: { 29761: if (__depth_limit == 0) 29761: { 29761: std::__heap_select(__first, __nth + 1, __last, __comp); 29761: 29761: std::iter_swap(__first, __nth); 29761: return; 29761: } 29761: --__depth_limit; 29761: _RandomAccessIterator __cut = 29761: std::__unguarded_partition_pivot(__first, __last, __comp); 29761: if (__cut <= __nth) 29761: __first = __cut; 29761: else 29761: __last = __cut; 29761: } 29761: std::__insertion_sort(__first, __last, __comp); 29761: } 29761: # 1960 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__lower_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::difference_type 29761: _DistanceType; 29761: 29761: _DistanceType __len = std::distance(__first, __last); 29761: 29761: while (__len > 0) 29761: { 29761: _DistanceType __half = __len >> 1; 29761: _ForwardIterator __middle = __first; 29761: std::advance(__middle, __half); 29761: if (__comp(__val, __middle)) 29761: __len = __half; 29761: else 29761: { 29761: __first = __middle; 29761: ++__first; 29761: __len = __len - __half - 1; 29761: } 29761: } 29761: return __first; 29761: } 29761: # 2016 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__upper_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__val_less_iter()); 29761: } 29761: # 2047 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__upper_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: pair<_ForwardIterator, _ForwardIterator> 29761: __equal_range(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, 29761: _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::difference_type 29761: _DistanceType; 29761: 29761: _DistanceType __len = std::distance(__first, __last); 29761: 29761: while (__len > 0) 29761: { 29761: _DistanceType __half = __len >> 1; 29761: _ForwardIterator __middle = __first; 29761: std::advance(__middle, __half); 29761: if (__comp_it_val(__middle, __val)) 29761: { 29761: __first = __middle; 29761: ++__first; 29761: __len = __len - __half - 1; 29761: } 29761: else if (__comp_val_it(__val, __middle)) 29761: __len = __half; 29761: else 29761: { 29761: _ForwardIterator __left 29761: = std::__lower_bound(__first, __middle, __val, __comp_it_val); 29761: std::advance(__first, __len); 29761: _ForwardIterator __right 29761: = std::__upper_bound(++__middle, __first, __val, __comp_val_it); 29761: return pair<_ForwardIterator, _ForwardIterator>(__left, __right); 29761: } 29761: } 29761: return pair<_ForwardIterator, _ForwardIterator>(__first, __first); 29761: } 29761: # 2120 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_ForwardIterator, _ForwardIterator> 29761: equal_range(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__equal_range(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_less_val(), 29761: __gnu_cxx::__ops::__val_less_iter()); 29761: } 29761: # 2157 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_ForwardIterator, _ForwardIterator> 29761: equal_range(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: ; 29761: 29761: return std::__equal_range(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_comp_val(__comp), 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: } 29761: # 2191 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: binary_search(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: _ForwardIterator __i 29761: = std::__lower_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_less_val()); 29761: return __i != __last && !(__val < *__i); 29761: } 29761: # 2225 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: binary_search(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: ; 29761: 29761: _ForwardIterator __i 29761: = std::__lower_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29761: return __i != __last && !bool(__comp(__val, *__i)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first2, __first1)) 29761: { 29761: *__result = std::move(*__first2); 29761: ++__first2; 29761: } 29761: else 29761: { 29761: *__result = std::move(*__first1); 29761: ++__first1; 29761: } 29761: ++__result; 29761: } 29761: if (__first1 != __last1) 29761: std::move(__first1, __last1, __result); 29761: } 29761: 29761: 29761: template 29761: void 29761: __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, 29761: _BidirectionalIterator1 __last1, 29761: _BidirectionalIterator2 __first2, 29761: _BidirectionalIterator2 __last2, 29761: _BidirectionalIterator3 __result, 29761: _Compare __comp) 29761: { 29761: if (__first1 == __last1) 29761: { 29761: std::move_backward(__first2, __last2, __result); 29761: return; 29761: } 29761: else if (__first2 == __last2) 29761: return; 29761: 29761: --__last1; 29761: --__last2; 29761: while (true) 29761: { 29761: if (__comp(__last2, __last1)) 29761: { 29761: *--__result = std::move(*__last1); 29761: if (__first1 == __last1) 29761: { 29761: std::move_backward(__first2, ++__last2, __result); 29761: return; 29761: } 29761: --__last1; 29761: } 29761: else 29761: { 29761: *--__result = std::move(*__last2); 29761: if (__first2 == __last2) 29761: return; 29761: --__last2; 29761: } 29761: } 29761: } 29761: 29761: 29761: template 29761: _BidirectionalIterator1 29761: __rotate_adaptive(_BidirectionalIterator1 __first, 29761: _BidirectionalIterator1 __middle, 29761: _BidirectionalIterator1 __last, 29761: _Distance __len1, _Distance __len2, 29761: _BidirectionalIterator2 __buffer, 29761: _Distance __buffer_size) 29761: { 29761: _BidirectionalIterator2 __buffer_end; 29761: if (__len1 > __len2 && __len2 <= __buffer_size) 29761: { 29761: if (__len2) 29761: { 29761: __buffer_end = std::move(__middle, __last, __buffer); 29761: std::move_backward(__first, __middle, __last); 29761: return std::move(__buffer, __buffer_end, __first); 29761: } 29761: else 29761: return __first; 29761: } 29761: else if (__len1 <= __buffer_size) 29761: { 29761: if (__len1) 29761: { 29761: __buffer_end = std::move(__first, __middle, __buffer); 29761: std::move(__middle, __last, __first); 29761: return std::move_backward(__buffer, __buffer_end, __last); 29761: } 29761: else 29761: return __last; 29761: } 29761: else 29761: return std::rotate(__first, __middle, __last); 29761: } 29761: 29761: 29761: template 29761: void 29761: __merge_adaptive(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: _Distance __len1, _Distance __len2, 29761: _Pointer __buffer, _Compare __comp) 29761: { 29761: if (__len1 <= __len2) 29761: { 29761: _Pointer __buffer_end = std::move(__first, __middle, __buffer); 29761: std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, 29761: __first, __comp); 29761: } 29761: else 29761: { 29761: _Pointer __buffer_end = std::move(__middle, __last, __buffer); 29761: std::__move_merge_adaptive_backward(__first, __middle, __buffer, 29761: __buffer_end, __last, __comp); 29761: } 29761: } 29761: 29761: template 29761: void 29761: __merge_adaptive_resize(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: _Distance __len1, _Distance __len2, 29761: _Pointer __buffer, _Distance __buffer_size, 29761: _Compare __comp) 29761: { 29761: if (__len1 <= __buffer_size || __len2 <= __buffer_size) 29761: std::__merge_adaptive(__first, __middle, __last, 29761: __len1, __len2, __buffer, __comp); 29761: else 29761: { 29761: _BidirectionalIterator __first_cut = __first; 29761: _BidirectionalIterator __second_cut = __middle; 29761: _Distance __len11 = 0; 29761: _Distance __len22 = 0; 29761: if (__len1 > __len2) 29761: { 29761: __len11 = __len1 / 2; 29761: std::advance(__first_cut, __len11); 29761: __second_cut 29761: = std::__lower_bound(__middle, __last, *__first_cut, 29761: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29761: __len22 = std::distance(__middle, __second_cut); 29761: } 29761: else 29761: { 29761: __len22 = __len2 / 2; 29761: std::advance(__second_cut, __len22); 29761: __first_cut 29761: = std::__upper_bound(__first, __middle, *__second_cut, 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: __len11 = std::distance(__first, __first_cut); 29761: } 29761: 29761: _BidirectionalIterator __new_middle 29761: = std::__rotate_adaptive(__first_cut, __middle, __second_cut, 29761: _Distance(__len1 - __len11), __len22, 29761: __buffer, __buffer_size); 29761: std::__merge_adaptive_resize(__first, __first_cut, __new_middle, 29761: __len11, __len22, 29761: __buffer, __buffer_size, __comp); 29761: std::__merge_adaptive_resize(__new_middle, __second_cut, __last, 29761: _Distance(__len1 - __len11), 29761: _Distance(__len2 - __len22), 29761: __buffer, __buffer_size, __comp); 29761: } 29761: } 29761: 29761: 29761: template 29761: void 29761: __merge_without_buffer(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: _Distance __len1, _Distance __len2, 29761: _Compare __comp) 29761: { 29761: if (__len1 == 0 || __len2 == 0) 29761: return; 29761: 29761: if (__len1 + __len2 == 2) 29761: { 29761: if (__comp(__middle, __first)) 29761: std::iter_swap(__first, __middle); 29761: return; 29761: } 29761: 29761: _BidirectionalIterator __first_cut = __first; 29761: _BidirectionalIterator __second_cut = __middle; 29761: _Distance __len11 = 0; 29761: _Distance __len22 = 0; 29761: if (__len1 > __len2) 29761: { 29761: __len11 = __len1 / 2; 29761: std::advance(__first_cut, __len11); 29761: __second_cut 29761: = std::__lower_bound(__middle, __last, *__first_cut, 29761: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29761: __len22 = std::distance(__middle, __second_cut); 29761: } 29761: else 29761: { 29761: __len22 = __len2 / 2; 29761: std::advance(__second_cut, __len22); 29761: __first_cut 29761: = std::__upper_bound(__first, __middle, *__second_cut, 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: __len11 = std::distance(__first, __first_cut); 29761: } 29761: 29761: _BidirectionalIterator __new_middle 29761: = std::rotate(__first_cut, __middle, __second_cut); 29761: std::__merge_without_buffer(__first, __first_cut, __new_middle, 29761: __len11, __len22, __comp); 29761: std::__merge_without_buffer(__new_middle, __second_cut, __last, 29761: __len1 - __len11, __len2 - __len22, __comp); 29761: } 29761: 29761: template 29761: void 29761: __inplace_merge(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_BidirectionalIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_BidirectionalIterator>::difference_type 29761: _DistanceType; 29761: 29761: if (__first == __middle || __middle == __last) 29761: return; 29761: 29761: const _DistanceType __len1 = std::distance(__first, __middle); 29761: const _DistanceType __len2 = std::distance(__middle, __last); 29761: 29761: 29761: typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; 29761: 29761: 29761: _TmpBuf __buf(__first, std::min(__len1, __len2)); 29761: 29761: if (__builtin_expect(__buf.size() == __buf.requested_size(), true)) 29761: std::__merge_adaptive 29761: (__first, __middle, __last, __len1, __len2, __buf.begin(), __comp); 29761: else if (__builtin_expect(__buf.begin() == 0, false)) 29761: std::__merge_without_buffer 29761: (__first, __middle, __last, __len1, __len2, __comp); 29761: else 29761: std::__merge_adaptive_resize 29761: (__first, __middle, __last, __len1, __len2, __buf.begin(), 29761: _DistanceType(__buf.size()), __comp); 29761: 29761: 29761: 29761: 29761: } 29761: # 2540 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: inline void 29761: inplace_merge(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: std::__inplace_merge(__first, __middle, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 2581 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: inline void 29761: inplace_merge(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: std::__inplace_merge(__first, __middle, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: template 29761: _OutputIterator 29761: __move_merge(_InputIterator __first1, _InputIterator __last1, 29761: _InputIterator __first2, _InputIterator __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first2, __first1)) 29761: { 29761: *__result = std::move(*__first2); 29761: ++__first2; 29761: } 29761: else 29761: { 29761: *__result = std::move(*__first1); 29761: ++__first1; 29761: } 29761: ++__result; 29761: } 29761: return std::move(__first2, __last2, std::move(__first1, __last1, __result)) 29761: 29761: ; 29761: } 29761: 29761: template 29761: void 29761: __merge_sort_loop(_RandomAccessIterator1 __first, 29761: _RandomAccessIterator1 __last, 29761: _RandomAccessIterator2 __result, _Distance __step_size, 29761: _Compare __comp) 29761: { 29761: const _Distance __two_step = 2 * __step_size; 29761: 29761: while (__last - __first >= __two_step) 29761: { 29761: __result = std::__move_merge(__first, __first + __step_size, 29761: __first + __step_size, 29761: __first + __two_step, 29761: __result, __comp); 29761: __first += __two_step; 29761: } 29761: __step_size = std::min(_Distance(__last - __first), __step_size); 29761: 29761: std::__move_merge(__first, __first + __step_size, 29761: __first + __step_size, __last, __result, __comp); 29761: } 29761: 29761: template 29761: 29761: void 29761: __chunk_insertion_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, 29761: _Distance __chunk_size, _Compare __comp) 29761: { 29761: while (__last - __first >= __chunk_size) 29761: { 29761: std::__insertion_sort(__first, __first + __chunk_size, __comp); 29761: __first += __chunk_size; 29761: } 29761: std::__insertion_sort(__first, __last, __comp); 29761: } 29761: 29761: enum { _S_chunk_size = 7 }; 29761: 29761: template 29761: void 29761: __merge_sort_with_buffer(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, 29761: _Pointer __buffer, _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _Distance; 29761: 29761: const _Distance __len = __last - __first; 29761: const _Pointer __buffer_last = __buffer + __len; 29761: 29761: _Distance __step_size = _S_chunk_size; 29761: std::__chunk_insertion_sort(__first, __last, __step_size, __comp); 29761: 29761: while (__step_size < __len) 29761: { 29761: std::__merge_sort_loop(__first, __last, __buffer, 29761: __step_size, __comp); 29761: __step_size *= 2; 29761: std::__merge_sort_loop(__buffer, __buffer_last, __first, 29761: __step_size, __comp); 29761: __step_size *= 2; 29761: } 29761: } 29761: 29761: template 29761: void 29761: __stable_sort_adaptive(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, 29761: _Pointer __buffer, _Compare __comp) 29761: { 29761: std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); 29761: std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); 29761: 29761: std::__merge_adaptive(__first, __middle, __last, 29761: __middle - __first, __last - __middle, 29761: __buffer, __comp); 29761: } 29761: 29761: template 29761: void 29761: __stable_sort_adaptive_resize(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, 29761: _Pointer __buffer, _Distance __buffer_size, 29761: _Compare __comp) 29761: { 29761: const _Distance __len = (__last - __first + 1) / 2; 29761: const _RandomAccessIterator __middle = __first + __len; 29761: if (__len > __buffer_size) 29761: { 29761: std::__stable_sort_adaptive_resize(__first, __middle, __buffer, 29761: __buffer_size, __comp); 29761: std::__stable_sort_adaptive_resize(__middle, __last, __buffer, 29761: __buffer_size, __comp); 29761: std::__merge_adaptive_resize(__first, __middle, __last, 29761: _Distance(__middle - __first), 29761: _Distance(__last - __middle), 29761: __buffer, __buffer_size, 29761: __comp); 29761: } 29761: else 29761: std::__stable_sort_adaptive(__first, __middle, __last, 29761: __buffer, __comp); 29761: } 29761: 29761: 29761: template 29761: void 29761: __inplace_stable_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: if (__last - __first < 15) 29761: { 29761: std::__insertion_sort(__first, __last, __comp); 29761: return; 29761: } 29761: _RandomAccessIterator __middle = __first + (__last - __first) / 2; 29761: std::__inplace_stable_sort(__first, __middle, __comp); 29761: std::__inplace_stable_sort(__middle, __last, __comp); 29761: std::__merge_without_buffer(__first, __middle, __last, 29761: __middle - __first, 29761: __last - __middle, 29761: __comp); 29761: } 29761: # 2767 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: bool 29761: __includes(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first2, __first1)) 29761: return false; 29761: if (!__comp(__first1, __first2)) 29761: ++__first2; 29761: ++__first1; 29761: } 29761: 29761: return __first2 == __last2; 29761: } 29761: # 2805 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: includes(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__includes(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 2850 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: includes(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__includes(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 2886 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: bool 29761: __next_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last, _Compare __comp) 29761: { 29761: if (__first == __last) 29761: return false; 29761: _BidirectionalIterator __i = __first; 29761: ++__i; 29761: if (__i == __last) 29761: return false; 29761: __i = __last; 29761: --__i; 29761: 29761: for(;;) 29761: { 29761: _BidirectionalIterator __ii = __i; 29761: --__i; 29761: if (__comp(__i, __ii)) 29761: { 29761: _BidirectionalIterator __j = __last; 29761: while (!__comp(__i, --__j)) 29761: {} 29761: std::iter_swap(__i, __j); 29761: std::__reverse(__ii, __last, 29761: std::__iterator_category(__first)); 29761: return true; 29761: } 29761: if (__i == __first) 29761: { 29761: std::__reverse(__first, __last, 29761: std::__iterator_category(__first)); 29761: return false; 29761: } 29761: } 29761: } 29761: # 2936 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline bool 29761: next_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__next_permutation 29761: (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 2969 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline bool 29761: next_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__next_permutation 29761: (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: bool 29761: __prev_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last, _Compare __comp) 29761: { 29761: if (__first == __last) 29761: return false; 29761: _BidirectionalIterator __i = __first; 29761: ++__i; 29761: if (__i == __last) 29761: return false; 29761: __i = __last; 29761: --__i; 29761: 29761: for(;;) 29761: { 29761: _BidirectionalIterator __ii = __i; 29761: --__i; 29761: if (__comp(__ii, __i)) 29761: { 29761: _BidirectionalIterator __j = __last; 29761: while (!__comp(--__j, __i)) 29761: {} 29761: std::iter_swap(__i, __j); 29761: std::__reverse(__ii, __last, 29761: std::__iterator_category(__first)); 29761: return true; 29761: } 29761: if (__i == __first) 29761: { 29761: std::__reverse(__first, __last, 29761: std::__iterator_category(__first)); 29761: return false; 29761: } 29761: } 29761: } 29761: # 3039 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline bool 29761: prev_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__prev_permutation(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 3072 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline bool 29761: prev_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__prev_permutation(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _OutputIterator 29761: __replace_copy_if(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: _Predicate __pred, const _Tp& __new_value) 29761: { 29761: for (; __first != __last; ++__first, (void)++__result) 29761: if (__pred(__first)) 29761: *__result = __new_value; 29761: else 29761: *__result = *__first; 29761: return __result; 29761: } 29761: # 3124 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: replace_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: const _Tp& __old_value, const _Tp& __new_value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__replace_copy_if(__first, __last, __result, 29761: __gnu_cxx::__ops::__iter_equals_val(__old_value), 29761: __new_value); 29761: } 29761: # 3159 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: replace_copy_if(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: _Predicate __pred, const _Tp& __new_value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__replace_copy_if(__first, __last, __result, 29761: __gnu_cxx::__ops::__pred_iter(__pred), 29761: __new_value); 29761: } 29761: # 3188 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_sorted(_ForwardIterator __first, _ForwardIterator __last) 29761: { return std::is_sorted_until(__first, __last) == __last; } 29761: # 3203 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_sorted(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { return std::is_sorted_until(__first, __last, __comp) == __last; } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: if (__first == __last) 29761: return __last; 29761: 29761: _ForwardIterator __next = __first; 29761: for (++__next; __next != __last; __first = __next, (void)++__next) 29761: if (__comp(__next, __first)) 29761: return __next; 29761: return __next; 29761: } 29761: # 3234 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__is_sorted_until(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 3259 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__is_sorted_until(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 3285 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair 29761: minmax(const _Tp& __a, const _Tp& __b) 29761: { 29761: 29761: 29761: 29761: return __b < __a ? pair(__b, __a) 29761: : pair(__a, __b); 29761: } 29761: # 3306 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair 29761: minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) 29761: { 29761: return __comp(__b, __a) ? pair(__b, __a) 29761: : pair(__a, __b); 29761: } 29761: 29761: template 29761: constexpr 29761: pair<_ForwardIterator, _ForwardIterator> 29761: __minmax_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: _ForwardIterator __next = __first; 29761: if (__first == __last 29761: || ++__next == __last) 29761: return std::make_pair(__first, __first); 29761: 29761: _ForwardIterator __min{}, __max{}; 29761: if (__comp(__next, __first)) 29761: { 29761: __min = __next; 29761: __max = __first; 29761: } 29761: else 29761: { 29761: __min = __first; 29761: __max = __next; 29761: } 29761: 29761: __first = __next; 29761: ++__first; 29761: 29761: while (__first != __last) 29761: { 29761: __next = __first; 29761: if (++__next == __last) 29761: { 29761: if (__comp(__first, __min)) 29761: __min = __first; 29761: else if (!__comp(__first, __max)) 29761: __max = __first; 29761: break; 29761: } 29761: 29761: if (__comp(__next, __first)) 29761: { 29761: if (__comp(__next, __min)) 29761: __min = __next; 29761: if (!__comp(__first, __max)) 29761: __max = __first; 29761: } 29761: else 29761: { 29761: if (__comp(__first, __min)) 29761: __min = __first; 29761: if (!__comp(__next, __max)) 29761: __max = __next; 29761: } 29761: 29761: __first = __next; 29761: ++__first; 29761: } 29761: 29761: return std::make_pair(__min, __max); 29761: } 29761: # 3386 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair<_ForwardIterator, _ForwardIterator> 29761: minmax_element(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__minmax_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 3414 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair<_ForwardIterator, _ForwardIterator> 29761: minmax_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__minmax_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair<_Tp, _Tp> 29761: minmax(initializer_list<_Tp> __l) 29761: { 29761: ; 29761: pair __p = 29761: std::__minmax_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: return std::make_pair(*__p.first, *__p.second); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair<_Tp, _Tp> 29761: minmax(initializer_list<_Tp> __l, _Compare __comp) 29761: { 29761: ; 29761: pair __p = 29761: std::__minmax_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: return std::make_pair(*__p.first, *__p.second); 29761: } 29761: # 3470 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _BinaryPredicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__is_permutation(__first1, __last1, __first2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 29761: } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: template 29761: 29761: bool 29761: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: _BinaryPredicate __pred) 29761: { 29761: using _Cat1 29761: = typename iterator_traits<_ForwardIterator1>::iterator_category; 29761: using _Cat2 29761: = typename iterator_traits<_ForwardIterator2>::iterator_category; 29761: using _It1_is_RA = is_same<_Cat1, random_access_iterator_tag>; 29761: using _It2_is_RA = is_same<_Cat2, random_access_iterator_tag>; 29761: constexpr bool __ra_iters = __and_<_It1_is_RA, _It2_is_RA>::value; 29761: if constexpr (__ra_iters) 29761: { 29761: if ((__last1 - __first1) != (__last2 - __first2)) 29761: return false; 29761: } 29761: 29761: 29761: 29761: for (; __first1 != __last1 && __first2 != __last2; 29761: ++__first1, (void)++__first2) 29761: if (!__pred(__first1, __first2)) 29761: break; 29761: 29761: if constexpr (__ra_iters) 29761: { 29761: if (__first1 == __last1) 29761: return true; 29761: } 29761: else 29761: { 29761: auto __d1 = std::distance(__first1, __last1); 29761: auto __d2 = std::distance(__first2, __last2); 29761: if (__d1 == 0 && __d2 == 0) 29761: return true; 29761: if (__d1 != __d2) 29761: return false; 29761: } 29761: 29761: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 29761: { 29761: if (__scan != std::__find_if(__first1, __scan, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 29761: continue; 29761: 29761: auto __matches = std::__count_if(__first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 29761: if (0 == __matches 29761: || std::__count_if(__scan, __last1, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 29761: != __matches) 29761: return false; 29761: } 29761: return true; 29761: } 29761: #pragma GCC diagnostic pop 29761: # 3566 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29761: { 29761: ; 29761: ; 29761: 29761: return 29761: std::__is_permutation(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 3594 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: _BinaryPredicate __pred) 29761: { 29761: ; 29761: ; 29761: 29761: return std::__is_permutation(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 29761: } 29761: # 3622 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[nodiscard]] constexpr const _Tp& 29761: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!(__hi < __lo))) std::__glibcxx_assert_fail(); } while (false); 29761: return std::min(std::max(__val, __lo), __hi); 29761: } 29761: # 3642 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[nodiscard]] constexpr const _Tp& 29761: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!__comp(__hi, __lo))) std::__glibcxx_assert_fail(); } while (false); 29761: return std::min(std::max(__val, __lo, __comp), __hi, __comp); 29761: } 29761: # 3672 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: pair<_IntType, _IntType> 29761: __gen_two_uniform_ints(_IntType __b0, _IntType __b1, 29761: _UniformRandomBitGenerator&& __g) 29761: { 29761: _IntType __x 29761: = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); 29761: return std::make_pair(__x / __b1, __x % __b1); 29761: } 29761: # 3694 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: void 29761: shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _UniformRandomNumberGenerator&& __g) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return; 29761: 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: typedef typename std::make_unsigned<_DistanceType>::type __ud_type; 29761: typedef typename std::uniform_int_distribution<__ud_type> __distr_type; 29761: typedef typename __distr_type::param_type __p_type; 29761: 29761: typedef typename remove_reference<_UniformRandomNumberGenerator>::type 29761: _Gen; 29761: typedef typename common_type::type 29761: __uc_type; 29761: 29761: const __uc_type __urngrange = __g.max() - __g.min(); 29761: const __uc_type __urange = __uc_type(__last - __first); 29761: 29761: if (__urngrange / __urange >= __urange) 29761: 29761: { 29761: _RandomAccessIterator __i = __first + 1; 29761: 29761: 29761: 29761: 29761: 29761: if ((__urange % 2) == 0) 29761: { 29761: __distr_type __d{0, 1}; 29761: std::iter_swap(__i++, __first + __d(__g)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: while (__i != __last) 29761: { 29761: const __uc_type __swap_range = __uc_type(__i - __first) + 1; 29761: 29761: const pair<__uc_type, __uc_type> __pospos = 29761: __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); 29761: 29761: std::iter_swap(__i++, __first + __pospos.first); 29761: std::iter_swap(__i++, __first + __pospos.second); 29761: } 29761: 29761: return; 29761: } 29761: 29761: __distr_type __d; 29761: 29761: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29761: std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); 29761: } 29761: 29761: 29761: 29761: # 3777 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _Function 29761: for_each(_InputIterator __first, _InputIterator __last, _Function __f) 29761: { 29761: 29761: 29761: ; 29761: for (; __first != __last; ++__first) 29761: __f(*__first); 29761: return __f; 29761: } 29761: # 3803 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _InputIterator 29761: for_each_n(_InputIterator __first, _Size __n, _Function __f) 29761: { 29761: auto __n2 = std::__size_to_integer(__n); 29761: using _Cat = typename iterator_traits<_InputIterator>::iterator_category; 29761: if constexpr (is_base_of_v) 29761: { 29761: if (__n2 <= 0) 29761: return __first; 29761: auto __last = __first + __n2; 29761: std::for_each(__first, __last, std::move(__f)); 29761: return __last; 29761: } 29761: else 29761: { 29761: while (__n2-->0) 29761: { 29761: __f(*__first); 29761: ++__first; 29761: } 29761: return __first; 29761: } 29761: } 29761: # 3839 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _InputIterator 29761: find(_InputIterator __first, _InputIterator __last, 29761: const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: return std::__find_if(__first, __last, 29761: __gnu_cxx::__ops::__iter_equals_val(__val)); 29761: } 29761: # 3864 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _InputIterator 29761: find_if(_InputIterator __first, _InputIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__find_if(__first, __last, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: # 3896 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _InputIterator 29761: find_first_of(_InputIterator __first1, _InputIterator __last1, 29761: _ForwardIterator __first2, _ForwardIterator __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1) 29761: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 29761: if (*__first1 == *__iter) 29761: return __first1; 29761: return __last1; 29761: } 29761: # 3937 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _InputIterator 29761: find_first_of(_InputIterator __first1, _InputIterator __last1, 29761: _ForwardIterator __first2, _ForwardIterator __last2, 29761: _BinaryPredicate __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1) 29761: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 29761: if (__comp(*__first1, *__iter)) 29761: return __first1; 29761: return __last1; 29761: } 29761: # 3970 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: adjacent_find(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__adjacent_find(__first, __last, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 3996 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__adjacent_find(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29761: } 29761: # 4022 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline typename iterator_traits<_InputIterator>::difference_type 29761: count(_InputIterator __first, _InputIterator __last, const _Tp& __value) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__count_if(__first, __last, 29761: __gnu_cxx::__ops::__iter_equals_val(__value)); 29761: } 29761: # 4046 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline typename iterator_traits<_InputIterator>::difference_type 29761: count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__count_if(__first, __last, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: # 4087 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator1 29761: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__search(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 4121 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: search_n(_ForwardIterator __first, _ForwardIterator __last, 29761: _Integer __count, const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__search_n(__first, __last, __count, 29761: __gnu_cxx::__ops::__iter_equals_val(__val)); 29761: } 29761: # 4155 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: search_n(_ForwardIterator __first, _ForwardIterator __last, 29761: _Integer __count, const _Tp& __val, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__search_n(__first, __last, __count, 29761: __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); 29761: } 29761: # 4181 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: search(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Searcher& __searcher) 29761: { return __searcher(__first, __last).first; } 29761: # 4205 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _OutputIterator 29761: transform(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _UnaryOperation __unary_op) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first, (void)++__result) 29761: *__result = __unary_op(*__first); 29761: return __result; 29761: } 29761: # 4243 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _OutputIterator 29761: transform(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _OutputIterator __result, 29761: _BinaryOperation __binary_op) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) 29761: *__result = __binary_op(*__first1, *__first2); 29761: return __result; 29761: } 29761: # 4277 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: void 29761: replace(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __old_value, const _Tp& __new_value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: if (*__first == __old_value) 29761: *__first = __new_value; 29761: } 29761: # 4310 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: void 29761: replace_if(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred, const _Tp& __new_value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: if (__pred(*__first)) 29761: *__first = __new_value; 29761: } 29761: # 4342 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: void 29761: generate(_ForwardIterator __first, _ForwardIterator __last, 29761: _Generator __gen) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: *__first = __gen(); 29761: } 29761: # 4375 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _OutputIterator 29761: generate_n(_OutputIterator __first, _Size __n, _Generator __gen) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: typedef __decltype(std::__size_to_integer(__n)) _IntSize; 29761: for (_IntSize __niter = std::__size_to_integer(__n); 29761: __niter > 0; --__niter, (void) ++__first) 29761: *__first = __gen(); 29761: return __first; 29761: } 29761: # 4410 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: unique_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: return std::__unique_copy(__first, __last, __result, 29761: __gnu_cxx::__ops::__iter_equal_to_iter(), 29761: std::__iterator_category(__first), 29761: std::__iterator_category(__result)); 29761: } 29761: # 4450 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: unique_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: return std::__unique_copy(__first, __last, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), 29761: std::__iterator_category(__first), 29761: std::__iterator_category(__result)); 29761: } 29761: # 4489 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29761: inline void 29761: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first != __last) 29761: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29761: { 29761: 29761: _RandomAccessIterator __j = __first 29761: + std::rand() % ((__i - __first) + 1); 29761: if (__i != __j) 29761: std::iter_swap(__i, __j); 29761: } 29761: } 29761: # 4528 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29761: void 29761: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: 29761: _RandomNumberGenerator&& __rand) 29761: 29761: 29761: 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return; 29761: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29761: { 29761: _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); 29761: if (__i != __j) 29761: std::iter_swap(__i, __j); 29761: } 29761: } 29761: # 4570 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _ForwardIterator 29761: partition(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__partition(__first, __last, __pred, 29761: std::__iterator_category(__first)); 29761: } 29761: # 4605 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: partial_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: std::__partial_sort(__first, __middle, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 4644 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: partial_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: std::__partial_sort(__first, __middle, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 4681 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29761: _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: if (__first == __last || __nth == __last) 29761: return; 29761: 29761: std::__introselect(__first, __nth, __last, 29761: std::__lg(__last - __first) * 2, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 4721 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: if (__first == __last || __nth == __last) 29761: return; 29761: 29761: std::__introselect(__first, __nth, __last, 29761: std::__lg(__last - __first) * 2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 4759 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 4790 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __merge(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first2, __first1)) 29761: { 29761: *__result = *__first2; 29761: ++__first2; 29761: } 29761: else 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: } 29761: ++__result; 29761: } 29761: return std::copy(__first2, __last2, 29761: std::copy(__first1, __last1, __result)); 29761: } 29761: # 4853 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: merge(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__merge(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 4904 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: merge(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__merge(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: inline void 29761: __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: if (__first == __last) 29761: return; 29761: 29761: 29761: typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; 29761: 29761: 29761: _TmpBuf __buf(__first, (__last - __first + 1) / 2); 29761: 29761: if (__builtin_expect(__buf.requested_size() == __buf.size(), true)) 29761: std::__stable_sort_adaptive(__first, 29761: __first + _DistanceType(__buf.size()), 29761: __last, __buf.begin(), __comp); 29761: else if (__builtin_expect(__buf.begin() == 0, false)) 29761: std::__inplace_stable_sort(__first, __last, __comp); 29761: else 29761: std::__stable_sort_adaptive_resize(__first, __last, __buf.begin(), 29761: _DistanceType(__buf.size()), __comp); 29761: 29761: 29761: 29761: } 29761: # 4982 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: inline void 29761: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: std::__stable_sort(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5016 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: inline void 29761: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: std::__stable_sort(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first1, __first2)) 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: } 29761: else if (__comp(__first2, __first1)) 29761: { 29761: *__result = *__first2; 29761: ++__first2; 29761: } 29761: else 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: ++__first2; 29761: } 29761: ++__result; 29761: } 29761: return std::copy(__first2, __last2, 29761: std::copy(__first1, __last1, __result)); 29761: } 29761: # 5086 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_union(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5137 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_union(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: if (__comp(__first1, __first2)) 29761: ++__first1; 29761: else if (__comp(__first2, __first1)) 29761: ++__first2; 29761: else 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: ++__first2; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: # 5210 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_intersection(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5260 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_intersection(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: if (__comp(__first1, __first2)) 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: ++__result; 29761: } 29761: else if (__comp(__first2, __first1)) 29761: ++__first2; 29761: else 29761: { 29761: ++__first1; 29761: ++__first2; 29761: } 29761: return std::copy(__first1, __last1, __result); 29761: } 29761: # 5335 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_difference(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5387 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_difference(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __set_symmetric_difference(_InputIterator1 __first1, 29761: _InputIterator1 __last1, 29761: _InputIterator2 __first2, 29761: _InputIterator2 __last2, 29761: _OutputIterator __result, 29761: _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: if (__comp(__first1, __first2)) 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: ++__result; 29761: } 29761: else if (__comp(__first2, __first1)) 29761: { 29761: *__result = *__first2; 29761: ++__first2; 29761: ++__result; 29761: } 29761: else 29761: { 29761: ++__first1; 29761: ++__first2; 29761: } 29761: return std::copy(__first2, __last2, 29761: std::copy(__first1, __last1, __result)); 29761: } 29761: # 5468 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_symmetric_difference(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5520 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_symmetric_difference(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: constexpr 29761: _ForwardIterator 29761: __min_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: if (__first == __last) 29761: return __first; 29761: _ForwardIterator __result = __first; 29761: while (++__first != __last) 29761: if (__comp(__first, __result)) 29761: __result = __first; 29761: return __result; 29761: } 29761: # 5574 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: _ForwardIterator 29761: inline min_element(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__min_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5599 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline _ForwardIterator 29761: min_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__min_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: constexpr 29761: _ForwardIterator 29761: __max_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: if (__first == __last) return __first; 29761: _ForwardIterator __result = __first; 29761: while (++__first != __last) 29761: if (__comp(__result, __first)) 29761: __result = __first; 29761: return __result; 29761: } 29761: # 5638 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline _ForwardIterator 29761: max_element(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__max_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5663 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline _ForwardIterator 29761: max_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__max_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr 29761: inline _Tp 29761: min(initializer_list<_Tp> __l) 29761: { 29761: ; 29761: return *std::__min_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: 29761: template 29761: constexpr 29761: inline _Tp 29761: min(initializer_list<_Tp> __l, _Compare __comp) 29761: { 29761: ; 29761: return *std::__min_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: constexpr 29761: inline _Tp 29761: max(initializer_list<_Tp> __l) 29761: { 29761: ; 29761: return *std::__max_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: 29761: template 29761: constexpr 29761: inline _Tp 29761: max(initializer_list<_Tp> __l, _Compare __comp) 29761: { 29761: ; 29761: return *std::__max_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: _RandomAccessIterator 29761: __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, 29761: _RandomAccessIterator __out, random_access_iterator_tag, 29761: _Size __n, _UniformRandomBitGenerator&& __g) 29761: { 29761: using __distrib_type = uniform_int_distribution<_Size>; 29761: using __param_type = typename __distrib_type::param_type; 29761: __distrib_type __d{}; 29761: _Size __sample_sz = 0; 29761: while (__first != __last && __sample_sz != __n) 29761: { 29761: __out[__sample_sz++] = *__first; 29761: ++__first; 29761: } 29761: for (auto __pop_sz = __sample_sz; __first != __last; 29761: ++__first, (void) ++__pop_sz) 29761: { 29761: const auto __k = __d(__g, __param_type{0, __pop_sz}); 29761: if (__k < __n) 29761: __out[__k] = *__first; 29761: } 29761: return __out + __sample_sz; 29761: } 29761: 29761: 29761: template 29761: _OutputIterator 29761: __sample(_ForwardIterator __first, _ForwardIterator __last, 29761: forward_iterator_tag, 29761: _OutputIterator __out, _Cat, 29761: _Size __n, _UniformRandomBitGenerator&& __g) 29761: { 29761: using __distrib_type = uniform_int_distribution<_Size>; 29761: using __param_type = typename __distrib_type::param_type; 29761: using _USize = make_unsigned_t<_Size>; 29761: using _Gen = remove_reference_t<_UniformRandomBitGenerator>; 29761: using __uc_type = common_type_t; 29761: 29761: if (__first == __last) 29761: return __out; 29761: 29761: __distrib_type __d{}; 29761: _Size __unsampled_sz = std::distance(__first, __last); 29761: __n = std::min(__n, __unsampled_sz); 29761: 29761: 29761: 29761: 29761: const __uc_type __urngrange = __g.max() - __g.min(); 29761: if (__urngrange / __uc_type(__unsampled_sz) >= __uc_type(__unsampled_sz)) 29761: 29761: 29761: { 29761: while (__n != 0 && __unsampled_sz >= 2) 29761: { 29761: const pair<_Size, _Size> __p = 29761: __gen_two_uniform_ints(__unsampled_sz, __unsampled_sz - 1, __g); 29761: 29761: --__unsampled_sz; 29761: if (__p.first < __n) 29761: { 29761: *__out++ = *__first; 29761: --__n; 29761: } 29761: 29761: ++__first; 29761: 29761: if (__n == 0) break; 29761: 29761: --__unsampled_sz; 29761: if (__p.second < __n) 29761: { 29761: *__out++ = *__first; 29761: --__n; 29761: } 29761: 29761: ++__first; 29761: } 29761: } 29761: 29761: 29761: 29761: for (; __n != 0; ++__first) 29761: if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) 29761: { 29761: *__out++ = *__first; 29761: --__n; 29761: } 29761: return __out; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: _SampleIterator 29761: sample(_PopulationIterator __first, _PopulationIterator __last, 29761: _SampleIterator __out, _Distance __n, 29761: _UniformRandomBitGenerator&& __g) 29761: { 29761: using __pop_cat = typename 29761: std::iterator_traits<_PopulationIterator>::iterator_category; 29761: using __samp_cat = typename 29761: std::iterator_traits<_SampleIterator>::iterator_category; 29761: 29761: static_assert( 29761: __or_, 29761: is_convertible<__samp_cat, random_access_iterator_tag>>::value, 29761: "output range must use a RandomAccessIterator when input range" 29761: " does not meet the ForwardIterator requirements"); 29761: 29761: static_assert(is_integral<_Distance>::value, 29761: "sample size must be an integer type"); 29761: 29761: typename iterator_traits<_PopulationIterator>::difference_type __d = __n; 29761: return std:: 29761: __sample(__first, __last, __pop_cat{}, __out, __samp_cat{}, __d, 29761: std::forward<_UniformRandomBitGenerator>(__g)); 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 62 "/usr/include/c++/14/algorithm" 2 3 29761: # 77 "/usr/include/c++/14/algorithm" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 78 "/usr/include/c++/14/algorithm" 2 3 29761: # 86 "/usr/include/c++/14/algorithm" 3 29761: # 1 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 1 3 29761: # 17 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 3 29761: namespace std 29761: { 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: any_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: none_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: for_each(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Function __f); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: for_each_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, _Function __f); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: find_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: find_if_not(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29761: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29761: _ForwardIterator2 __s_last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29761: typename iterator_traits<_ForwardIterator>::difference_type> 29761: count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29761: typename iterator_traits<_ForwardIterator>::difference_type> 29761: count_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29761: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29761: _ForwardIterator2 __s_last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 29761: const _Tp& __value, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 29761: const _Tp& __value); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: copy_n(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 result, 29761: _Predicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: swap_ranges(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29761: _UnaryOperation __op); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator __result, _BinaryOperation __op); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred, 29761: const _Tp& __new_value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, 29761: const _Tp& __new_value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: replace_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: replace_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29761: const _Tp& __old_value, const _Tp& __new_value); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, const _Tp& __value); 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Generator __g); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: remove_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _Predicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: remove_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29761: const _Tp& __value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: remove_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29761: _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: reverse_copy(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 29761: _ForwardIterator __d_first); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: rotate_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __middle, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: is_partitioned(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: partition(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _BidirectionalIterator> 29761: stable_partition(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 29761: _UnaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29761: partition_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29761: _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29761: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29761: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29761: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29761: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _BinaryPredicate __p); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _BinaryPredicate __p); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2); 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: move(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __d_first); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29761: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29761: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29761: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29761: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last); 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 29761: _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 29761: _RandomAccessIterator __last); 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _ForwardIterator __d_first); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _ForwardIterator __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator result, 29761: _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29761: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29761: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 29761: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 29761: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2); 29761: 29761: } 29761: # 87 "/usr/include/c++/14/algorithm" 2 3 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 1 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: 29761: 29761: # 1 "/usr/include/c++/14/thread" 1 3 29761: # 32 "/usr/include/c++/14/thread" 3 29761: 29761: # 33 "/usr/include/c++/14/thread" 3 29761: # 45 "/usr/include/c++/14/thread" 3 29761: # 1 "/usr/include/c++/14/bits/std_thread.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/std_thread.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/std_thread.h" 3 29761: # 52 "/usr/include/c++/14/bits/std_thread.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 82 "/usr/include/c++/14/bits/std_thread.h" 3 29761: class thread 29761: { 29761: public: 29761: 29761: using native_handle_type = __gthread_t; 29761: # 96 "/usr/include/c++/14/bits/std_thread.h" 3 29761: class id 29761: { 29761: native_handle_type _M_thread; 29761: 29761: public: 29761: id() noexcept : _M_thread() { } 29761: 29761: explicit 29761: id(native_handle_type __id) : _M_thread(__id) { } 29761: 29761: private: 29761: friend class thread; 29761: friend struct hash; 29761: 29761: friend bool 29761: operator==(id __x, id __y) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator<(id __x, id __y) noexcept; 29761: 29761: 29761: template 29761: friend basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, id __id); 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: private: 29761: id _M_id; 29761: 29761: 29761: 29761: 29761: template 29761: using __not_same = __not_, thread>>; 29761: 29761: public: 29761: thread() noexcept = default; 29761: 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: 29761: 29761: static void 29761: _M_thread_deps_never_run() { 29761: 29761: 29761: 29761: 29761: } 29761: 29761: public: 29761: template>> 29761: explicit 29761: thread(_Callable&& __f, _Args&&... __args) 29761: { 29761: static_assert( __is_invocable::type, 29761: typename decay<_Args>::type...>::value, 29761: "std::thread arguments must be invocable after conversion to rvalues" 29761: ); 29761: 29761: using _Wrapper = _Call_wrapper<_Callable, _Args...>; 29761: 29761: 29761: _M_start_thread(_State_ptr(new _State_impl<_Wrapper>( 29761: std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), 29761: _M_thread_deps_never_run); 29761: } 29761: 29761: 29761: ~thread() 29761: { 29761: if (joinable()) 29761: std::__terminate(); 29761: } 29761: 29761: thread(const thread&) = delete; 29761: 29761: thread(thread&& __t) noexcept 29761: { swap(__t); } 29761: 29761: thread& operator=(const thread&) = delete; 29761: 29761: thread& operator=(thread&& __t) noexcept 29761: { 29761: if (joinable()) 29761: std::__terminate(); 29761: swap(__t); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(thread& __t) noexcept 29761: { std::swap(_M_id, __t._M_id); } 29761: 29761: bool 29761: joinable() const noexcept 29761: { return !(_M_id == id()); } 29761: 29761: void 29761: join(); 29761: 29761: void 29761: detach(); 29761: 29761: id 29761: get_id() const noexcept 29761: { return _M_id; } 29761: 29761: 29761: 29761: native_handle_type 29761: native_handle() 29761: { return _M_id._M_thread; } 29761: 29761: 29761: static unsigned int 29761: hardware_concurrency() noexcept; 29761: 29761: 29761: 29761: private: 29761: 29761: 29761: 29761: struct _State 29761: { 29761: virtual ~_State(); 29761: virtual void _M_run() = 0; 29761: }; 29761: using _State_ptr = unique_ptr<_State>; 29761: 29761: private: 29761: template 29761: struct _State_impl : public _State 29761: { 29761: _Callable _M_func; 29761: 29761: template 29761: _State_impl(_Args&&... __args) 29761: : _M_func(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: void 29761: _M_run() { _M_func(); } 29761: }; 29761: 29761: void 29761: _M_start_thread(_State_ptr, void (*)()); 29761: # 278 "/usr/include/c++/14/bits/std_thread.h" 3 29761: private: 29761: 29761: template 29761: struct _Invoker 29761: { 29761: template 29761: explicit 29761: _Invoker(_Args&&... __args) 29761: : _M_t(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: _Tuple _M_t; 29761: 29761: template 29761: struct __result; 29761: template 29761: struct __result> 29761: : __invoke_result<_Fn, _Args...> 29761: { }; 29761: 29761: template 29761: typename __result<_Tuple>::type 29761: _M_invoke(_Index_tuple<_Ind...>) 29761: { return std::__invoke(std::get<_Ind>(std::move(_M_t))...); } 29761: 29761: typename __result<_Tuple>::type 29761: operator()() 29761: { 29761: using _Indices 29761: = typename _Build_index_tuple::value>::__type; 29761: return _M_invoke(_Indices()); 29761: } 29761: }; 29761: 29761: public: 29761: 29761: template 29761: using _Call_wrapper = _Invoker::type...>>; 29761: 29761: 29761: }; 29761: # 327 "/usr/include/c++/14/bits/std_thread.h" 3 29761: inline void 29761: swap(thread& __x, thread& __y) noexcept 29761: { __x.swap(__y); } 29761: 29761: 29761: inline bool 29761: operator==(thread::id __x, thread::id __y) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: return __x._M_thread == __y._M_thread; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: size_t 29761: operator()(const thread::id& __id) const noexcept 29761: { return std::_Hash_impl::hash(__id._M_thread); } 29761: }; 29761: 29761: namespace this_thread 29761: { 29761: 29761: inline thread::id 29761: get_id() noexcept 29761: { 29761: 29761: 29761: 29761: return thread::id(pthread_self()); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: inline void 29761: yield() noexcept 29761: { 29761: 29761: __gthread_yield(); 29761: 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 46 "/usr/include/c++/14/thread" 2 3 29761: # 1 "/usr/include/c++/14/bits/this_thread_sleep.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/chrono.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/chrono.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/chrono.h" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ratio" 1 3 29761: # 33 "/usr/include/c++/14/ratio" 3 29761: 29761: # 34 "/usr/include/c++/14/ratio" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstdint" 1 3 29761: # 32 "/usr/include/c++/14/cstdint" 3 29761: 29761: # 33 "/usr/include/c++/14/cstdint" 3 29761: # 48 "/usr/include/c++/14/cstdint" 3 29761: namespace std 29761: { 29761: 29761: using ::int8_t; 29761: using ::int16_t; 29761: using ::int32_t; 29761: using ::int64_t; 29761: 29761: using ::int_fast8_t; 29761: using ::int_fast16_t; 29761: using ::int_fast32_t; 29761: using ::int_fast64_t; 29761: 29761: using ::int_least8_t; 29761: using ::int_least16_t; 29761: using ::int_least32_t; 29761: using ::int_least64_t; 29761: 29761: using ::intmax_t; 29761: using ::intptr_t; 29761: 29761: using ::uint8_t; 29761: using ::uint16_t; 29761: using ::uint32_t; 29761: using ::uint64_t; 29761: 29761: using ::uint_fast8_t; 29761: using ::uint_fast16_t; 29761: using ::uint_fast32_t; 29761: using ::uint_fast64_t; 29761: 29761: using ::uint_least8_t; 29761: using ::uint_least16_t; 29761: using ::uint_least32_t; 29761: using ::uint_least64_t; 29761: 29761: using ::uintmax_t; 29761: using ::uintptr_t; 29761: # 142 "/usr/include/c++/14/cstdint" 3 29761: } 29761: # 41 "/usr/include/c++/14/ratio" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 44 "/usr/include/c++/14/ratio" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 59 "/usr/include/c++/14/ratio" 3 29761: template 29761: struct __static_sign 29761: : integral_constant 29761: { }; 29761: 29761: template 29761: struct __static_abs 29761: : integral_constant::value> 29761: { }; 29761: 29761: template 29761: struct __static_gcd 29761: : __static_gcd<_Qn, (_Pn % _Qn)> 29761: { }; 29761: 29761: template 29761: struct __static_gcd<_Pn, 0> 29761: : integral_constant::value> 29761: { }; 29761: 29761: template 29761: struct __static_gcd<0, _Qn> 29761: : integral_constant::value> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __safe_multiply 29761: { 29761: private: 29761: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29761: 29761: static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; 29761: static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; 29761: static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; 29761: static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; 29761: 29761: static_assert(__a1 == 0 || __b1 == 0, 29761: "overflow in multiplication"); 29761: static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 29761: "overflow in multiplication"); 29761: static_assert(__b0 * __a0 <= 0x7fffffffffffffffLL, 29761: "overflow in multiplication"); 29761: static_assert((__a0 * __b1 + __b0 * __a1) * __c 29761: <= 0x7fffffffffffffffLL - __b0 * __a0, 29761: "overflow in multiplication"); 29761: 29761: public: 29761: static const intmax_t value = _Pn * _Qn; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __big_less 29761: : integral_constant 29761: { }; 29761: 29761: template 29761: struct __big_add 29761: { 29761: static constexpr uintmax_t __lo = __lo1 + __lo2; 29761: static constexpr uintmax_t __hi = (__hi1 + __hi2 + 29761: (__lo1 + __lo2 < __lo1)); 29761: }; 29761: 29761: 29761: template 29761: struct __big_sub 29761: { 29761: static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 29761: "Internal library error"); 29761: static constexpr uintmax_t __lo = __lo1 - __lo2; 29761: static constexpr uintmax_t __hi = (__hi1 - __hi2 - 29761: (__lo1 < __lo2)); 29761: }; 29761: 29761: 29761: template 29761: struct __big_mul 29761: { 29761: private: 29761: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29761: static constexpr uintmax_t __x0 = __x % __c; 29761: static constexpr uintmax_t __x1 = __x / __c; 29761: static constexpr uintmax_t __y0 = __y % __c; 29761: static constexpr uintmax_t __y1 = __y / __c; 29761: static constexpr uintmax_t __x0y0 = __x0 * __y0; 29761: static constexpr uintmax_t __x0y1 = __x0 * __y1; 29761: static constexpr uintmax_t __x1y0 = __x1 * __y0; 29761: static constexpr uintmax_t __x1y1 = __x1 * __y1; 29761: static constexpr uintmax_t __mix = __x0y1 + __x1y0; 29761: static constexpr uintmax_t __mix_lo = __mix * __c; 29761: static constexpr uintmax_t __mix_hi 29761: = __mix / __c + ((__mix < __x0y1) ? __c : 0); 29761: typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; 29761: public: 29761: static constexpr uintmax_t __hi = _Res::__hi; 29761: static constexpr uintmax_t __lo = _Res::__lo; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __big_div_impl 29761: { 29761: private: 29761: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 29761: "Internal library error"); 29761: static_assert(__n1 < __d, "Internal library error"); 29761: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29761: static constexpr uintmax_t __d1 = __d / __c; 29761: static constexpr uintmax_t __d0 = __d % __c; 29761: 29761: static constexpr uintmax_t __q1x = __n1 / __d1; 29761: static constexpr uintmax_t __r1x = __n1 % __d1; 29761: static constexpr uintmax_t __m = __q1x * __d0; 29761: static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; 29761: static constexpr uintmax_t __r1z = __r1y + __d; 29761: static constexpr uintmax_t __r1 29761: = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) 29761: ? (__r1z + __d) : __r1z : __r1y) - __m; 29761: static constexpr uintmax_t __q1 29761: = __q1x - ((__r1y < __m) 29761: ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); 29761: static constexpr uintmax_t __q0x = __r1 / __d1; 29761: static constexpr uintmax_t __r0x = __r1 % __d1; 29761: static constexpr uintmax_t __n = __q0x * __d0; 29761: static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; 29761: static constexpr uintmax_t __r0z = __r0y + __d; 29761: static constexpr uintmax_t __r0 29761: = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) 29761: ? (__r0z + __d) : __r0z : __r0y) - __n; 29761: static constexpr uintmax_t __q0 29761: = __q0x - ((__r0y < __n) ? ((__r0z >= __d) 29761: && (__r0z < __n)) ? 2 : 1 : 0); 29761: 29761: public: 29761: static constexpr uintmax_t __quot = __q1 * __c + __q0; 29761: static constexpr uintmax_t __rem = __r0; 29761: 29761: private: 29761: typedef __big_mul<__quot, __d> _Prod; 29761: typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; 29761: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 29761: "Internal library error"); 29761: }; 29761: 29761: template 29761: struct __big_div 29761: { 29761: private: 29761: static_assert(__d != 0, "Internal library error"); 29761: static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), 29761: "This library calls __builtin_clzll on uintmax_t, which " 29761: "is unsafe on your platform. Please complain to " 29761: "http://gcc.gnu.org/bugzilla/"); 29761: static constexpr int __shift = __builtin_clzll(__d); 29761: static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; 29761: static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; 29761: static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; 29761: static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; 29761: static constexpr uintmax_t __new_d = __d * __c1; 29761: static constexpr uintmax_t __new_n0 = __n0 * __c1; 29761: static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; 29761: static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; 29761: static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; 29761: typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; 29761: 29761: public: 29761: static constexpr uintmax_t __quot_hi = __n1 / __d; 29761: static constexpr uintmax_t __quot_lo = _Res::__quot; 29761: static constexpr uintmax_t __rem = _Res::__rem / __c1; 29761: 29761: private: 29761: typedef __big_mul<__quot_lo, __d> _P0; 29761: typedef __big_mul<__quot_hi, __d> _P1; 29761: typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; 29761: 29761: static_assert(_P1::__hi == 0, "Internal library error"); 29761: static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); 29761: 29761: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 29761: "Internal library error"); 29761: static_assert(__rem < __d, "Internal library error"); 29761: }; 29761: # 268 "/usr/include/c++/14/ratio" 3 29761: template 29761: struct ratio 29761: { 29761: static_assert(_Den != 0, "denominator cannot be zero"); 29761: static_assert(_Num >= -0x7fffffffffffffffLL && _Den >= -0x7fffffffffffffffLL, 29761: "out of range"); 29761: 29761: 29761: static constexpr intmax_t num = 29761: _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; 29761: 29761: static constexpr intmax_t den = 29761: __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; 29761: 29761: typedef ratio type; 29761: }; 29761: # 295 "/usr/include/c++/14/ratio" 3 29761: template 29761: struct __is_ratio 29761: : std::false_type 29761: { }; 29761: 29761: template 29761: struct __is_ratio> 29761: : std::true_type 29761: { }; 29761: 29761: 29761: template 29761: constexpr bool __is_ratio_v = false; 29761: template 29761: constexpr bool __is_ratio_v> = true; 29761: 29761: 29761: template 29761: constexpr bool 29761: __are_both_ratios() noexcept 29761: { 29761: 29761: if constexpr (__is_ratio_v<_R1>) 29761: if constexpr (__is_ratio_v<_R2>) 29761: return true; 29761: return false; 29761: 29761: 29761: 29761: } 29761: 29761: template 29761: struct __ratio_multiply 29761: { 29761: static_assert(std::__are_both_ratios<_R1, _R2>(), 29761: "both template arguments must be a std::ratio"); 29761: 29761: private: 29761: static const intmax_t __gcd1 = 29761: __static_gcd<_R1::num, _R2::den>::value; 29761: static const intmax_t __gcd2 = 29761: __static_gcd<_R2::num, _R1::den>::value; 29761: 29761: public: 29761: typedef ratio< 29761: __safe_multiply<(_R1::num / __gcd1), 29761: (_R2::num / __gcd2)>::value, 29761: __safe_multiply<(_R1::den / __gcd2), 29761: (_R2::den / __gcd1)>::value> type; 29761: 29761: static constexpr intmax_t num = type::num; 29761: static constexpr intmax_t den = type::den; 29761: }; 29761: # 360 "/usr/include/c++/14/ratio" 3 29761: template 29761: using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; 29761: 29761: 29761: 29761: template 29761: struct __ratio_divide 29761: { 29761: static_assert(_R2::num != 0, "division by 0"); 29761: 29761: typedef typename __ratio_multiply< 29761: _R1, 29761: ratio<_R2::den, _R2::num>>::type type; 29761: 29761: static constexpr intmax_t num = type::num; 29761: static constexpr intmax_t den = type::den; 29761: }; 29761: # 389 "/usr/include/c++/14/ratio" 3 29761: template 29761: using ratio_divide = typename __ratio_divide<_R1, _R2>::type; 29761: 29761: 29761: template 29761: struct ratio_equal 29761: : integral_constant 29761: { 29761: static_assert(std::__are_both_ratios<_R1, _R2>(), 29761: "both template arguments must be a std::ratio"); 29761: }; 29761: 29761: 29761: template 29761: struct ratio_not_equal 29761: : integral_constant::value> 29761: { }; 29761: 29761: 29761: 29761: 29761: template, 29761: typename _Right = __big_mul<_R2::num,_R1::den> > 29761: struct __ratio_less_impl_1 29761: : integral_constant::value> 29761: { }; 29761: 29761: template::value 29761: != __static_sign<_R2::num>::value)), 29761: bool = (__static_sign<_R1::num>::value == -1 29761: && __static_sign<_R2::num>::value == -1)> 29761: struct __ratio_less_impl 29761: : __ratio_less_impl_1<_R1, _R2>::type 29761: { }; 29761: 29761: template 29761: struct __ratio_less_impl<_R1, _R2, true, false> 29761: : integral_constant 29761: { }; 29761: 29761: template 29761: struct __ratio_less_impl<_R1, _R2, false, true> 29761: : __ratio_less_impl_1, 29761: ratio<-_R1::num, _R1::den> >::type 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct ratio_less 29761: : __ratio_less_impl<_R1, _R2>::type 29761: { 29761: static_assert(std::__are_both_ratios<_R1, _R2>(), 29761: "both template arguments must be a std::ratio"); 29761: }; 29761: 29761: 29761: template 29761: struct ratio_less_equal 29761: : integral_constant::value> 29761: { }; 29761: 29761: 29761: template 29761: struct ratio_greater 29761: : integral_constant::value> 29761: { }; 29761: 29761: 29761: template 29761: struct ratio_greater_equal 29761: : integral_constant::value> 29761: { }; 29761: 29761: 29761: template 29761: inline constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; 29761: template 29761: inline constexpr bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; 29761: template 29761: inline constexpr bool ratio_less_v = ratio_less<_R1, _R2>::value; 29761: template 29761: inline constexpr bool ratio_less_equal_v 29761: = ratio_less_equal<_R1, _R2>::value; 29761: template 29761: inline constexpr bool ratio_greater_v = ratio_greater<_R1, _R2>::value; 29761: template 29761: inline constexpr bool ratio_greater_equal_v 29761: = ratio_greater_equal<_R1, _R2>::value; 29761: 29761: 29761: 29761: 29761: template= 0), 29761: bool = (_R2::num >= 0), 29761: bool = ratio_less::value, _R1::den>, 29761: ratio<__static_abs<_R2::num>::value, _R2::den> >::value> 29761: struct __ratio_add_impl 29761: { 29761: private: 29761: typedef typename __ratio_add_impl< 29761: ratio<-_R1::num, _R1::den>, 29761: ratio<-_R2::num, _R2::den> >::type __t; 29761: public: 29761: typedef ratio<-__t::num, __t::den> type; 29761: }; 29761: 29761: 29761: template 29761: struct __ratio_add_impl<_R1, _R2, true, true, __b> 29761: { 29761: private: 29761: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 29761: static constexpr uintmax_t __d2 = _R2::den / __g; 29761: typedef __big_mul<_R1::den, __d2> __d; 29761: typedef __big_mul<_R1::num, _R2::den / __g> __x; 29761: typedef __big_mul<_R2::num, _R1::den / __g> __y; 29761: typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 29761: static_assert(__n::__hi >= __x::__hi, "Internal library error"); 29761: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 29761: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 29761: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 29761: static_assert(__n_final::__rem == 0, "Internal library error"); 29761: static_assert(__n_final::__quot_hi == 0 && 29761: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29761: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 29761: static_assert(__d_final::__hi == 0 && 29761: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29761: public: 29761: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 29761: }; 29761: 29761: template 29761: struct __ratio_add_impl<_R1, _R2, false, true, true> 29761: : __ratio_add_impl<_R2, _R1> 29761: { }; 29761: 29761: 29761: template 29761: struct __ratio_add_impl<_R1, _R2, true, false, false> 29761: { 29761: private: 29761: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 29761: static constexpr uintmax_t __d2 = _R2::den / __g; 29761: typedef __big_mul<_R1::den, __d2> __d; 29761: typedef __big_mul<_R1::num, _R2::den / __g> __x; 29761: typedef __big_mul<-_R2::num, _R1::den / __g> __y; 29761: typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 29761: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 29761: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 29761: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 29761: static_assert(__n_final::__rem == 0, "Internal library error"); 29761: static_assert(__n_final::__quot_hi == 0 && 29761: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29761: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 29761: static_assert(__d_final::__hi == 0 && 29761: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29761: public: 29761: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 29761: }; 29761: 29761: template 29761: struct __ratio_add 29761: { 29761: static_assert(std::__are_both_ratios<_R1, _R2>(), 29761: "both template arguments must be a std::ratio"); 29761: 29761: typedef typename __ratio_add_impl<_R1, _R2>::type type; 29761: static constexpr intmax_t num = type::num; 29761: static constexpr intmax_t den = type::den; 29761: }; 29761: # 578 "/usr/include/c++/14/ratio" 3 29761: template 29761: using ratio_add = typename __ratio_add<_R1, _R2>::type; 29761: 29761: 29761: 29761: template 29761: struct __ratio_subtract 29761: { 29761: typedef typename __ratio_add< 29761: _R1, 29761: ratio<-_R2::num, _R2::den>>::type type; 29761: 29761: static constexpr intmax_t num = type::num; 29761: static constexpr intmax_t den = type::den; 29761: }; 29761: # 605 "/usr/include/c++/14/ratio" 3 29761: template 29761: using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; 29761: # 618 "/usr/include/c++/14/ratio" 3 29761: using atto = ratio< 1, 1000000000000000000>; 29761: using femto = ratio< 1, 1000000000000000>; 29761: using pico = ratio< 1, 1000000000000>; 29761: using nano = ratio< 1, 1000000000>; 29761: using micro = ratio< 1, 1000000>; 29761: using milli = ratio< 1, 1000>; 29761: using centi = ratio< 1, 100>; 29761: using deci = ratio< 1, 10>; 29761: using deca = ratio< 10, 1>; 29761: using hecto = ratio< 100, 1>; 29761: using kilo = ratio< 1000, 1>; 29761: using mega = ratio< 1000000, 1>; 29761: using giga = ratio< 1000000000, 1>; 29761: using tera = ratio< 1000000000000, 1>; 29761: using peta = ratio< 1000000000000000, 1>; 29761: using exa = ratio< 1000000000000000000, 1>; 29761: # 646 "/usr/include/c++/14/ratio" 3 29761: 29761: } 29761: # 38 "/usr/include/c++/14/bits/chrono.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/limits" 1 3 29761: # 40 "/usr/include/c++/14/limits" 3 29761: 29761: # 41 "/usr/include/c++/14/limits" 3 29761: # 158 "/usr/include/c++/14/limits" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum float_round_style 29761: { 29761: round_indeterminate = -1, 29761: round_toward_zero = 0, 29761: round_to_nearest = 1, 29761: round_toward_infinity = 2, 29761: round_toward_neg_infinity = 3 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum float_denorm_style 29761: { 29761: 29761: denorm_indeterminate = -1, 29761: 29761: denorm_absent = 0, 29761: 29761: denorm_present = 1 29761: }; 29761: # 202 "/usr/include/c++/14/limits" 3 29761: struct __numeric_limits_base 29761: { 29761: 29761: 29761: static constexpr bool is_specialized = false; 29761: 29761: 29761: 29761: 29761: static constexpr int digits = 0; 29761: 29761: 29761: static constexpr int digits10 = 0; 29761: 29761: 29761: 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: 29761: 29761: static constexpr bool is_signed = false; 29761: 29761: 29761: static constexpr bool is_integer = false; 29761: 29761: 29761: 29761: 29761: static constexpr bool is_exact = false; 29761: 29761: 29761: 29761: static constexpr int radix = 0; 29761: 29761: 29761: 29761: static constexpr int min_exponent = 0; 29761: 29761: 29761: 29761: static constexpr int min_exponent10 = 0; 29761: 29761: 29761: 29761: 29761: static constexpr int max_exponent = 0; 29761: 29761: 29761: 29761: static constexpr int max_exponent10 = 0; 29761: 29761: 29761: static constexpr bool has_infinity = false; 29761: 29761: 29761: 29761: static constexpr bool has_quiet_NaN = false; 29761: 29761: 29761: 29761: static constexpr bool has_signaling_NaN = false; 29761: 29761: 29761: static constexpr float_denorm_style has_denorm = denorm_absent; 29761: 29761: 29761: 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: 29761: 29761: static constexpr bool is_iec559 = false; 29761: 29761: 29761: 29761: 29761: static constexpr bool is_bounded = false; 29761: # 288 "/usr/include/c++/14/limits" 3 29761: static constexpr bool is_modulo = false; 29761: 29761: 29761: static constexpr bool traps = false; 29761: 29761: 29761: static constexpr bool tinyness_before = false; 29761: 29761: 29761: 29761: 29761: static constexpr float_round_style round_style = 29761: round_toward_zero; 29761: }; 29761: # 311 "/usr/include/c++/14/limits" 3 29761: template 29761: struct numeric_limits : public __numeric_limits_base 29761: { 29761: 29761: 29761: static constexpr _Tp 29761: min() noexcept { return _Tp(); } 29761: 29761: 29761: static constexpr _Tp 29761: max() noexcept { return _Tp(); } 29761: 29761: 29761: 29761: 29761: static constexpr _Tp 29761: lowest() noexcept { return _Tp(); } 29761: 29761: 29761: 29761: 29761: static constexpr _Tp 29761: epsilon() noexcept { return _Tp(); } 29761: 29761: 29761: static constexpr _Tp 29761: round_error() noexcept { return _Tp(); } 29761: 29761: 29761: static constexpr _Tp 29761: infinity() noexcept { return _Tp(); } 29761: 29761: 29761: 29761: static constexpr _Tp 29761: quiet_NaN() noexcept { return _Tp(); } 29761: 29761: 29761: 29761: static constexpr _Tp 29761: signaling_NaN() noexcept { return _Tp(); } 29761: 29761: 29761: 29761: 29761: static constexpr _Tp 29761: denorm_min() noexcept { return _Tp(); } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct numeric_limits 29761: : public numeric_limits<_Tp> { }; 29761: 29761: template 29761: struct numeric_limits 29761: : public numeric_limits<_Tp> { }; 29761: 29761: template 29761: struct numeric_limits 29761: : public numeric_limits<_Tp> { }; 29761: # 383 "/usr/include/c++/14/limits" 3 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr bool 29761: min() noexcept { return false; } 29761: 29761: static constexpr bool 29761: max() noexcept { return true; } 29761: 29761: 29761: static constexpr bool 29761: lowest() noexcept { return min(); } 29761: 29761: static constexpr int digits = 1; 29761: static constexpr int digits10 = 0; 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr bool 29761: epsilon() noexcept { return false; } 29761: 29761: static constexpr bool 29761: round_error() noexcept { return false; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr bool 29761: infinity() noexcept { return false; } 29761: 29761: static constexpr bool 29761: quiet_NaN() noexcept { return false; } 29761: 29761: static constexpr bool 29761: signaling_NaN() noexcept { return false; } 29761: 29761: static constexpr bool 29761: denorm_min() noexcept { return false; } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: 29761: 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr char 29761: 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); } 29761: 29761: static constexpr char 29761: max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } 29761: 29761: 29761: static constexpr char 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = ((char)(-1) < 0); 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr char 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr char 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr 29761: char infinity() noexcept { return char(); } 29761: 29761: static constexpr char 29761: quiet_NaN() noexcept { return char(); } 29761: 29761: static constexpr char 29761: signaling_NaN() noexcept { return char(); } 29761: 29761: static constexpr char 29761: denorm_min() noexcept { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = !is_signed; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr signed char 29761: min() noexcept { return -0x7f - 1; } 29761: 29761: static constexpr signed char 29761: max() noexcept { return 0x7f; } 29761: 29761: 29761: static constexpr signed char 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr signed char 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr signed char 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr signed char 29761: infinity() noexcept { return static_cast(0); } 29761: 29761: static constexpr signed char 29761: quiet_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr signed char 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr signed char 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr unsigned char 29761: min() noexcept { return 0; } 29761: 29761: static constexpr unsigned char 29761: max() noexcept { return 0x7f * 2U + 1; } 29761: 29761: 29761: static constexpr unsigned char 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr unsigned char 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr unsigned char 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr unsigned char 29761: infinity() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned char 29761: quiet_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned char 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned char 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = true; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr wchar_t 29761: 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); } 29761: 29761: static constexpr wchar_t 29761: 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); } 29761: 29761: 29761: static constexpr wchar_t 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = ((wchar_t)(-1) < 0); 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr wchar_t 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr wchar_t 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr wchar_t 29761: infinity() noexcept { return wchar_t(); } 29761: 29761: static constexpr wchar_t 29761: quiet_NaN() noexcept { return wchar_t(); } 29761: 29761: static constexpr wchar_t 29761: signaling_NaN() noexcept { return wchar_t(); } 29761: 29761: static constexpr wchar_t 29761: denorm_min() noexcept { return wchar_t(); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = !is_signed; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: # 796 "/usr/include/c++/14/limits" 3 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr char16_t 29761: 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); } 29761: 29761: static constexpr char16_t 29761: 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); } 29761: 29761: static constexpr char16_t 29761: lowest() noexcept { return min(); } 29761: 29761: static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); 29761: static constexpr int max_digits10 = 0; 29761: static constexpr bool is_signed = ((char16_t)(-1) < 0); 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr char16_t 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr char16_t 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr char16_t 29761: infinity() noexcept { return char16_t(); } 29761: 29761: static constexpr char16_t 29761: quiet_NaN() noexcept { return char16_t(); } 29761: 29761: static constexpr char16_t 29761: signaling_NaN() noexcept { return char16_t(); } 29761: 29761: static constexpr char16_t 29761: denorm_min() noexcept { return char16_t(); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = !is_signed; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr char32_t 29761: 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); } 29761: 29761: static constexpr char32_t 29761: 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); } 29761: 29761: static constexpr char32_t 29761: lowest() noexcept { return min(); } 29761: 29761: static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); 29761: static constexpr int max_digits10 = 0; 29761: static constexpr bool is_signed = ((char32_t)(-1) < 0); 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr char32_t 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr char32_t 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr char32_t 29761: infinity() noexcept { return char32_t(); } 29761: 29761: static constexpr char32_t 29761: quiet_NaN() noexcept { return char32_t(); } 29761: 29761: static constexpr char32_t 29761: signaling_NaN() noexcept { return char32_t(); } 29761: 29761: static constexpr char32_t 29761: denorm_min() noexcept { return char32_t(); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = !is_signed; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style = round_toward_zero; 29761: }; 29761: 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr short 29761: min() noexcept { return -0x7fff - 1; } 29761: 29761: static constexpr short 29761: max() noexcept { return 0x7fff; } 29761: 29761: 29761: static constexpr short 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr short 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr short 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr short 29761: infinity() noexcept { return short(); } 29761: 29761: static constexpr short 29761: quiet_NaN() noexcept { return short(); } 29761: 29761: static constexpr short 29761: signaling_NaN() noexcept { return short(); } 29761: 29761: static constexpr short 29761: denorm_min() noexcept { return short(); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr unsigned short 29761: min() noexcept { return 0; } 29761: 29761: static constexpr unsigned short 29761: max() noexcept { return 0x7fff * 2U + 1; } 29761: 29761: 29761: static constexpr unsigned short 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr unsigned short 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr unsigned short 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr unsigned short 29761: infinity() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned short 29761: quiet_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned short 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned short 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = true; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr int 29761: min() noexcept { return -0x7fffffff - 1; } 29761: 29761: static constexpr int 29761: max() noexcept { return 0x7fffffff; } 29761: 29761: 29761: static constexpr int 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr int 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr int 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr int 29761: infinity() noexcept { return static_cast(0); } 29761: 29761: static constexpr int 29761: quiet_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr int 29761: signaling_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr int 29761: denorm_min() noexcept { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr unsigned int 29761: min() noexcept { return 0; } 29761: 29761: static constexpr unsigned int 29761: max() noexcept { return 0x7fffffff * 2U + 1; } 29761: 29761: 29761: static constexpr unsigned int 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr unsigned int 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr unsigned int 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr unsigned int 29761: infinity() noexcept { return static_cast(0); } 29761: 29761: static constexpr unsigned int 29761: quiet_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned int 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned int 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = true; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr long 29761: min() noexcept { return -0x7fffffffL - 1; } 29761: 29761: static constexpr long 29761: max() noexcept { return 0x7fffffffL; } 29761: 29761: 29761: static constexpr long 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr long 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr long 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr long 29761: infinity() noexcept { return static_cast(0); } 29761: 29761: static constexpr long 29761: quiet_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr long 29761: signaling_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr long 29761: denorm_min() noexcept { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr unsigned long 29761: min() noexcept { return 0; } 29761: 29761: static constexpr unsigned long 29761: max() noexcept { return 0x7fffffffL * 2UL + 1; } 29761: 29761: 29761: static constexpr unsigned long 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr unsigned long 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr unsigned long 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr unsigned long 29761: infinity() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long 29761: quiet_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = true; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr long long 29761: min() noexcept { return -0x7fffffffffffffffLL - 1; } 29761: 29761: static constexpr long long 29761: max() noexcept { return 0x7fffffffffffffffLL; } 29761: 29761: 29761: static constexpr long long 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(long long) * 8 - ((long long)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr long long 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr long long 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr long long 29761: infinity() noexcept { return static_cast(0); } 29761: 29761: static constexpr long long 29761: quiet_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr long long 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr long long 29761: denorm_min() noexcept { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr unsigned long long 29761: min() noexcept { return 0; } 29761: 29761: static constexpr unsigned long long 29761: max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } 29761: 29761: 29761: static constexpr unsigned long long 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr unsigned long long 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr unsigned long long 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr unsigned long long 29761: infinity() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long long 29761: quiet_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long long 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long long 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = true; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: # 1669 "/usr/include/c++/14/limits" 3 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr float 29761: min() noexcept { return 1.1754943508222875e-38F; } 29761: 29761: static constexpr float 29761: max() noexcept { return 3.4028234663852886e+38F; } 29761: 29761: 29761: static constexpr float 29761: lowest() noexcept { return -3.4028234663852886e+38F; } 29761: 29761: 29761: static constexpr int digits = 24; 29761: static constexpr int digits10 = 6; 29761: 29761: static constexpr int max_digits10 29761: = (2 + (24) * 643L / 2136); 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = false; 29761: static constexpr bool is_exact = false; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr float 29761: epsilon() noexcept { return 1.1920928955078125e-7F; } 29761: 29761: static constexpr float 29761: round_error() noexcept { return 0.5F; } 29761: 29761: static constexpr int min_exponent = (-125); 29761: static constexpr int min_exponent10 = (-37); 29761: static constexpr int max_exponent = 128; 29761: static constexpr int max_exponent10 = 38; 29761: 29761: static constexpr bool has_infinity = 1; 29761: static constexpr bool has_quiet_NaN = 1; 29761: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29761: static constexpr float_denorm_style has_denorm 29761: = bool(1) ? denorm_present : denorm_absent; 29761: static constexpr bool has_denorm_loss 29761: = false; 29761: 29761: static constexpr float 29761: infinity() noexcept { return __builtin_huge_valf(); } 29761: 29761: static constexpr float 29761: quiet_NaN() noexcept { return __builtin_nanf(""); } 29761: 29761: static constexpr float 29761: signaling_NaN() noexcept { return __builtin_nansf(""); } 29761: 29761: static constexpr float 29761: denorm_min() noexcept { return 1.4012984643248171e-45F; } 29761: 29761: static constexpr bool is_iec559 29761: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before 29761: = false; 29761: static constexpr float_round_style round_style 29761: = round_to_nearest; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr double 29761: min() noexcept { return double(2.2250738585072014e-308L); } 29761: 29761: static constexpr double 29761: max() noexcept { return double(1.7976931348623157e+308L); } 29761: 29761: 29761: static constexpr double 29761: lowest() noexcept { return -double(1.7976931348623157e+308L); } 29761: 29761: 29761: static constexpr int digits = 53; 29761: static constexpr int digits10 = 15; 29761: 29761: static constexpr int max_digits10 29761: = (2 + (53) * 643L / 2136); 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = false; 29761: static constexpr bool is_exact = false; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr double 29761: epsilon() noexcept { return double(2.2204460492503131e-16L); } 29761: 29761: static constexpr double 29761: round_error() noexcept { return 0.5; } 29761: 29761: static constexpr int min_exponent = (-1021); 29761: static constexpr int min_exponent10 = (-307); 29761: static constexpr int max_exponent = 1024; 29761: static constexpr int max_exponent10 = 308; 29761: 29761: static constexpr bool has_infinity = 1; 29761: static constexpr bool has_quiet_NaN = 1; 29761: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29761: static constexpr float_denorm_style has_denorm 29761: = bool(1) ? denorm_present : denorm_absent; 29761: static constexpr bool has_denorm_loss 29761: = false; 29761: 29761: static constexpr double 29761: infinity() noexcept { return __builtin_huge_val(); } 29761: 29761: static constexpr double 29761: quiet_NaN() noexcept { return __builtin_nan(""); } 29761: 29761: static constexpr double 29761: signaling_NaN() noexcept { return __builtin_nans(""); } 29761: 29761: static constexpr double 29761: denorm_min() noexcept { return double(4.9406564584124654e-324L); } 29761: 29761: static constexpr bool is_iec559 29761: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before 29761: = false; 29761: static constexpr float_round_style round_style 29761: = round_to_nearest; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr long double 29761: min() noexcept { return 2.2250738585072014e-308L; } 29761: 29761: static constexpr long double 29761: max() noexcept { return 1.7976931348623157e+308L; } 29761: 29761: 29761: static constexpr long double 29761: lowest() noexcept { return -1.7976931348623157e+308L; } 29761: 29761: 29761: static constexpr int digits = 53; 29761: static constexpr int digits10 = 15; 29761: 29761: static constexpr int max_digits10 29761: = (2 + (53) * 643L / 2136); 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = false; 29761: static constexpr bool is_exact = false; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr long double 29761: epsilon() noexcept { return 2.2204460492503131e-16L; } 29761: 29761: static constexpr long double 29761: round_error() noexcept { return 0.5L; } 29761: 29761: static constexpr int min_exponent = (-1021); 29761: static constexpr int min_exponent10 = (-307); 29761: static constexpr int max_exponent = 1024; 29761: static constexpr int max_exponent10 = 308; 29761: 29761: static constexpr bool has_infinity = 1; 29761: static constexpr bool has_quiet_NaN = 1; 29761: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29761: static constexpr float_denorm_style has_denorm 29761: = bool(1) ? denorm_present : denorm_absent; 29761: static constexpr bool has_denorm_loss 29761: = false; 29761: 29761: static constexpr long double 29761: infinity() noexcept { return __builtin_huge_vall(); } 29761: 29761: static constexpr long double 29761: quiet_NaN() noexcept { return __builtin_nanl(""); } 29761: 29761: static constexpr long double 29761: signaling_NaN() noexcept { return __builtin_nansl(""); } 29761: 29761: static constexpr long double 29761: denorm_min() noexcept { return 4.9406564584124654e-324L; } 29761: 29761: static constexpr bool is_iec559 29761: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = 29761: false; 29761: static constexpr float_round_style round_style = 29761: round_to_nearest; 29761: }; 29761: # 1989 "/usr/include/c++/14/limits" 3 29761: __extension__ template<> struct numeric_limits<_Float32> { static constexpr bool is_specialized = true; static constexpr _Float32 min() noexcept { return 1.1754943508222875e-38F32; } static constexpr _Float32 max() noexcept { return 3.4028234663852886e+38F32; } static constexpr _Float32 lowest() noexcept { return -3.4028234663852886e+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.1920928955078125e-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.4012984643248171e-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; }; 29761: 29761: 29761: __extension__ template<> struct numeric_limits<_Float64> { static constexpr bool is_specialized = true; static constexpr _Float64 min() noexcept { return 2.2250738585072014e-308F64; } static constexpr _Float64 max() noexcept { return 1.7976931348623157e+308F64; } static constexpr _Float64 lowest() noexcept { return -1.7976931348623157e+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.2204460492503131e-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.9406564584124654e-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; }; 29761: # 2222 "/usr/include/c++/14/limits" 3 29761: 29761: } 29761: # 40 "/usr/include/c++/14/bits/chrono.h" 2 3 29761: # 1 "/usr/include/c++/14/ctime" 1 3 29761: # 39 "/usr/include/c++/14/ctime" 3 29761: 29761: # 40 "/usr/include/c++/14/ctime" 3 29761: # 58 "/usr/include/c++/14/ctime" 3 29761: namespace std 29761: { 29761: using ::clock_t; 29761: using ::time_t; 29761: using ::tm; 29761: 29761: using ::clock; 29761: using ::difftime; 29761: using ::mktime; 29761: using ::time; 29761: using ::asctime; 29761: using ::ctime; 29761: using ::gmtime; 29761: using ::localtime; 29761: using ::strftime; 29761: } 29761: 29761: 29761: 29761: namespace std 29761: { 29761: using ::timespec; 29761: using ::timespec_get; 29761: } 29761: # 41 "/usr/include/c++/14/bits/chrono.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/parse_numbers.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/parse_numbers.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/parse_numbers.h" 3 29761: # 42 "/usr/include/c++/14/bits/parse_numbers.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: namespace __parse_int 29761: { 29761: template 29761: struct _Digit; 29761: 29761: template 29761: struct _Digit<_Base, '0'> : integral_constant 29761: { 29761: using __valid = true_type; 29761: }; 29761: 29761: template 29761: struct _Digit<_Base, '1'> : integral_constant 29761: { 29761: using __valid = true_type; 29761: }; 29761: 29761: template 29761: struct _Digit_impl : integral_constant 29761: { 29761: static_assert(_Base > _Val, "invalid digit"); 29761: using __valid = true_type; 29761: }; 29761: 29761: template 29761: struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> 29761: { }; 29761: 29761: 29761: template 29761: struct _Digit<_Base, '\''> : integral_constant 29761: { 29761: using __valid = false_type; 29761: }; 29761: 29761: 29761: 29761: template 29761: using __ull_constant = integral_constant; 29761: 29761: template 29761: struct _Power_help 29761: { 29761: using __next = typename _Power_help<_Base, _Digs...>::type; 29761: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 29761: using type 29761: = __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; 29761: }; 29761: 29761: template 29761: struct _Power_help<_Base, _Dig> 29761: { 29761: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 29761: using type = __ull_constant<__valid_digit::value>; 29761: }; 29761: 29761: template 29761: struct _Power : _Power_help<_Base, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Power<_Base> : __ull_constant<0> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct _Number_help 29761: { 29761: using __digit = _Digit<_Base, _Dig>; 29761: using __valid_digit = typename __digit::__valid; 29761: using __next = _Number_help<_Base, 29761: __valid_digit::value ? _Pow / _Base : _Pow, 29761: _Digs...>; 29761: using type = __ull_constant<_Pow * __digit::value + __next::type::value>; 29761: static_assert((type::value / _Pow) == __digit::value, 29761: "integer literal does not fit in unsigned long long"); 29761: }; 29761: 29761: 29761: template 29761: struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> 29761: : _Number_help<_Base, _Pow, _Dig, _Digs...> 29761: { }; 29761: 29761: 29761: template 29761: struct _Number_help<_Base, 1ULL, _Dig> 29761: { 29761: using type = __ull_constant<_Digit<_Base, _Dig>::value>; 29761: }; 29761: 29761: template 29761: struct _Number 29761: : _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Number<_Base> 29761: : __ull_constant<0> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct _Parse_int; 29761: 29761: template 29761: struct _Parse_int<'0', 'b', _Digs...> 29761: : _Number<2U, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Parse_int<'0', 'B', _Digs...> 29761: : _Number<2U, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Parse_int<'0', 'x', _Digs...> 29761: : _Number<16U, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Parse_int<'0', 'X', _Digs...> 29761: : _Number<16U, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Parse_int<'0', _Digs...> 29761: : _Number<8U, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Parse_int 29761: : _Number<10U, _Digs...>::type 29761: { }; 29761: 29761: } 29761: 29761: 29761: namespace __select_int 29761: { 29761: template 29761: struct _Select_int_base; 29761: 29761: template 29761: struct _Select_int_base<_Val, _IntType, _Ints...> 29761: : __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), 29761: integral_constant<_IntType, (_IntType)_Val>, 29761: _Select_int_base<_Val, _Ints...>> 29761: { }; 29761: 29761: template 29761: struct _Select_int_base<_Val> 29761: { }; 29761: 29761: template 29761: using _Select_int = typename _Select_int_base< 29761: __parse_int::_Parse_int<_Digs...>::value, 29761: unsigned char, 29761: unsigned short, 29761: unsigned int, 29761: unsigned long, 29761: unsigned long long 29761: >::type; 29761: 29761: } 29761: 29761: 29761: } 29761: # 42 "/usr/include/c++/14/bits/chrono.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 48 "/usr/include/c++/14/bits/chrono.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: namespace filesystem { struct __file_clock; }; 29761: 29761: 29761: namespace chrono 29761: { 29761: 29761: 29761: 29761: 29761: template> 29761: class duration; 29761: 29761: 29761: template 29761: class time_point; 29761: 29761: } 29761: # 79 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: struct __duration_common_type 29761: { }; 29761: 29761: template 29761: struct __duration_common_type<_CT, _Period1, _Period2, 29761: __void_t> 29761: { 29761: private: 29761: using __gcd_num = __static_gcd<_Period1::num, _Period2::num>; 29761: using __gcd_den = __static_gcd<_Period1::den, _Period2::den>; 29761: using __cr = typename _CT::type; 29761: using __r = ratio<__gcd_num::value, 29761: (_Period1::den / __gcd_den::value) * _Period2::den>; 29761: 29761: public: 29761: using type = chrono::duration<__cr, typename __r::type>; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct common_type, 29761: chrono::duration<_Rep2, _Period2>> 29761: : __duration_common_type, 29761: typename _Period1::type, 29761: typename _Period2::type> 29761: { }; 29761: 29761: 29761: template 29761: struct common_type, 29761: chrono::duration<_Rep, _Period>> 29761: { 29761: using type = chrono::duration::type, 29761: typename _Period::type>; 29761: }; 29761: 29761: 29761: template 29761: struct common_type> 29761: { 29761: using type = chrono::duration::type, 29761: typename _Period::type>; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __timepoint_common_type 29761: { }; 29761: 29761: template 29761: struct __timepoint_common_type<_CT, _Clock, __void_t> 29761: { 29761: using type = chrono::time_point<_Clock, typename _CT::type>; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct common_type, 29761: chrono::time_point<_Clock, _Duration2>> 29761: : __timepoint_common_type, _Clock> 29761: { }; 29761: 29761: 29761: template 29761: struct common_type, 29761: chrono::time_point<_Clock, _Duration>> 29761: { using type = chrono::time_point<_Clock, _Duration>; }; 29761: 29761: 29761: template 29761: struct common_type> 29761: { using type = chrono::time_point<_Clock, _Duration>; }; 29761: 29761: 29761: 29761: 29761: namespace chrono 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __duration_cast_impl 29761: { 29761: template 29761: static constexpr _ToDur 29761: __cast(const duration<_Rep, _Period>& __d) 29761: { 29761: typedef typename _ToDur::rep __to_rep; 29761: return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) 29761: * static_cast<_CR>(_CF::num) 29761: / static_cast<_CR>(_CF::den))); 29761: } 29761: }; 29761: 29761: template 29761: struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> 29761: { 29761: template 29761: static constexpr _ToDur 29761: __cast(const duration<_Rep, _Period>& __d) 29761: { 29761: typedef typename _ToDur::rep __to_rep; 29761: return _ToDur(static_cast<__to_rep>(__d.count())); 29761: } 29761: }; 29761: 29761: template 29761: struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> 29761: { 29761: template 29761: static constexpr _ToDur 29761: __cast(const duration<_Rep, _Period>& __d) 29761: { 29761: typedef typename _ToDur::rep __to_rep; 29761: return _ToDur(static_cast<__to_rep>( 29761: static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); 29761: } 29761: }; 29761: 29761: template 29761: struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> 29761: { 29761: template 29761: static constexpr _ToDur 29761: __cast(const duration<_Rep, _Period>& __d) 29761: { 29761: typedef typename _ToDur::rep __to_rep; 29761: return _ToDur(static_cast<__to_rep>( 29761: static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); 29761: } 29761: }; 29761: 29761: template 29761: struct __is_duration 29761: : std::false_type 29761: { }; 29761: 29761: template 29761: struct __is_duration> 29761: : std::true_type 29761: { }; 29761: 29761: template 29761: using __enable_if_is_duration 29761: = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; 29761: 29761: template 29761: using __disable_if_is_duration 29761: = typename enable_if::value, _Tp>::type; 29761: 29761: 29761: template 29761: inline constexpr bool __is_duration_v = false; 29761: template 29761: inline constexpr bool __is_duration_v> = true; 29761: template 29761: inline constexpr bool __is_time_point_v = false; 29761: template 29761: inline constexpr bool __is_time_point_v> = true; 29761: # 272 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[__nodiscard__]] 29761: constexpr __enable_if_is_duration<_ToDur> 29761: duration_cast(const duration<_Rep, _Period>& __d) 29761: { 29761: 29761: if constexpr (is_same_v<_ToDur, duration<_Rep, _Period>>) 29761: return __d; 29761: else 29761: { 29761: 29761: using __to_period = typename _ToDur::period; 29761: using __to_rep = typename _ToDur::rep; 29761: using __cf = ratio_divide<_Period, __to_period>; 29761: using __cr = typename common_type<__to_rep, _Rep, intmax_t>::type; 29761: using __dc = __duration_cast_impl<_ToDur, __cf, __cr, 29761: __cf::num == 1, __cf::den == 1>; 29761: return __dc::__cast(__d); 29761: 29761: } 29761: 29761: } 29761: # 306 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: struct treat_as_floating_point 29761: : is_floating_point<_Rep> 29761: { }; 29761: 29761: 29761: template 29761: inline constexpr bool treat_as_floating_point_v = 29761: treat_as_floating_point<_Rep>::value; 29761: 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = false; 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = false; 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = false; 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = true; 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = true; 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = true; 29761: # 386 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 29761: floor(const duration<_Rep, _Period>& __d) 29761: { 29761: auto __to = chrono::duration_cast<_ToDur>(__d); 29761: if (__to > __d) 29761: return __to - _ToDur{1}; 29761: return __to; 29761: } 29761: # 406 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 29761: ceil(const duration<_Rep, _Period>& __d) 29761: { 29761: auto __to = chrono::duration_cast<_ToDur>(__d); 29761: if (__to < __d) 29761: return __to + _ToDur{1}; 29761: return __to; 29761: } 29761: # 427 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr 29761: enable_if_t< 29761: __and_<__is_duration<_ToDur>, 29761: __not_>>::value, 29761: _ToDur> 29761: round(const duration<_Rep, _Period>& __d) 29761: { 29761: _ToDur __t0 = chrono::floor<_ToDur>(__d); 29761: _ToDur __t1 = __t0 + _ToDur{1}; 29761: auto __diff0 = __d - __t0; 29761: auto __diff1 = __t1 - __d; 29761: if (__diff0 == __diff1) 29761: { 29761: if (__t0.count() & 1) 29761: return __t1; 29761: return __t0; 29761: } 29761: else if (__diff0 < __diff1) 29761: return __t0; 29761: return __t1; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard]] constexpr 29761: enable_if_t::is_signed, duration<_Rep, _Period>> 29761: abs(duration<_Rep, _Period> __d) 29761: { 29761: if (__d >= __d.zero()) 29761: return __d; 29761: return -__d; 29761: } 29761: 29761: 29761: namespace __detail { using chrono::ceil; } 29761: # 494 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: struct duration_values 29761: { 29761: static constexpr _Rep 29761: zero() noexcept 29761: { return _Rep(0); } 29761: 29761: static constexpr _Rep 29761: max() noexcept 29761: { return numeric_limits<_Rep>::max(); } 29761: 29761: static constexpr _Rep 29761: min() noexcept 29761: { return numeric_limits<_Rep>::lowest(); } 29761: }; 29761: 29761: template 29761: class duration 29761: { 29761: static_assert(!__is_duration<_Rep>::value, 29761: "rep cannot be a std::chrono::duration"); 29761: static_assert(__is_ratio<_Period>::value, 29761: "period must be a specialization of std::ratio"); 29761: static_assert(_Period::num > 0, "period must be positive"); 29761: 29761: template 29761: using __is_float = treat_as_floating_point<_Rep2>; 29761: 29761: static constexpr intmax_t 29761: _S_gcd(intmax_t __m, intmax_t __n) noexcept 29761: { 29761: 29761: 29761: 29761: do 29761: { 29761: intmax_t __rem = __m % __n; 29761: __m = __n; 29761: __n = __rem; 29761: } 29761: while (__n != 0); 29761: return __m; 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), 29761: (_R1::den / __gcd2) * (_R2::num / __gcd1)>; 29761: 29761: 29761: template 29761: using __is_harmonic 29761: = __bool_constant<__divide<_Period2, _Period>::den == 1>; 29761: 29761: public: 29761: 29761: using rep = _Rep; 29761: using period = typename _Period::type; 29761: 29761: 29761: constexpr duration() = default; 29761: 29761: duration(const duration&) = default; 29761: 29761: 29761: 29761: template, 29761: __or_<__is_float, __not_<__is_float<_Rep2>>>>> 29761: constexpr explicit duration(const _Rep2& __rep) 29761: : __r(static_cast(__rep)) { } 29761: 29761: template, 29761: __or_<__is_float, 29761: __and_<__is_harmonic<_Period2>, 29761: __not_<__is_float<_Rep2>>>>>> 29761: constexpr duration(const duration<_Rep2, _Period2>& __d) 29761: : __r(duration_cast(__d).count()) { } 29761: 29761: ~duration() = default; 29761: duration& operator=(const duration&) = default; 29761: 29761: 29761: constexpr rep 29761: count() const 29761: { return __r; } 29761: 29761: 29761: 29761: constexpr duration::type, period> 29761: operator+() const 29761: { return duration::type, period>(__r); } 29761: 29761: constexpr duration::type, period> 29761: operator-() const 29761: { return duration::type, period>(-__r); } 29761: 29761: constexpr duration& 29761: operator++() 29761: { 29761: ++__r; 29761: return *this; 29761: } 29761: 29761: constexpr duration 29761: operator++(int) 29761: { return duration(__r++); } 29761: 29761: constexpr duration& 29761: operator--() 29761: { 29761: --__r; 29761: return *this; 29761: } 29761: 29761: constexpr duration 29761: operator--(int) 29761: { return duration(__r--); } 29761: 29761: constexpr duration& 29761: operator+=(const duration& __d) 29761: { 29761: __r += __d.count(); 29761: return *this; 29761: } 29761: 29761: constexpr duration& 29761: operator-=(const duration& __d) 29761: { 29761: __r -= __d.count(); 29761: return *this; 29761: } 29761: 29761: constexpr duration& 29761: operator*=(const rep& __rhs) 29761: { 29761: __r *= __rhs; 29761: return *this; 29761: } 29761: 29761: constexpr duration& 29761: operator/=(const rep& __rhs) 29761: { 29761: __r /= __rhs; 29761: return *this; 29761: } 29761: 29761: 29761: template 29761: constexpr 29761: __enable_if_t::value, duration&> 29761: operator%=(const rep& __rhs) 29761: { 29761: __r %= __rhs; 29761: return *this; 29761: } 29761: 29761: template 29761: constexpr 29761: __enable_if_t::value, duration&> 29761: operator%=(const duration& __d) 29761: { 29761: __r %= __d.count(); 29761: return *this; 29761: } 29761: 29761: 29761: static constexpr duration 29761: zero() noexcept 29761: { return duration(duration_values::zero()); } 29761: 29761: static constexpr duration 29761: min() noexcept 29761: { return duration(duration_values::min()); } 29761: 29761: static constexpr duration 29761: max() noexcept 29761: { return duration(duration_values::max()); } 29761: 29761: private: 29761: rep __r; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr typename common_type, 29761: duration<_Rep2, _Period2>>::type 29761: operator+(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __cd; 29761: return __cd(__cd(__lhs).count() + __cd(__rhs).count()); 29761: } 29761: 29761: 29761: template 29761: constexpr typename common_type, 29761: duration<_Rep2, _Period2>>::type 29761: operator-(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __cd; 29761: return __cd(__cd(__lhs).count() - __cd(__rhs).count()); 29761: } 29761: # 727 "/usr/include/c++/14/bits/chrono.h" 3 29761: template::type> 29761: using __common_rep_t = typename 29761: enable_if::value, _CRep>::type; 29761: # 739 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> 29761: operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29761: { 29761: typedef duration::type, _Period> 29761: __cd; 29761: return __cd(__cd(__d).count() * __s); 29761: } 29761: 29761: template 29761: constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> 29761: operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) 29761: { return __d * __s; } 29761: 29761: template 29761: constexpr 29761: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 29761: operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29761: { 29761: typedef duration::type, _Period> 29761: __cd; 29761: return __cd(__cd(__d).count() / __s); 29761: } 29761: 29761: template 29761: constexpr typename common_type<_Rep1, _Rep2>::type 29761: operator/(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __cd; 29761: return __cd(__lhs).count() / __cd(__rhs).count(); 29761: } 29761: 29761: 29761: template 29761: constexpr 29761: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 29761: operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29761: { 29761: typedef duration::type, _Period> 29761: __cd; 29761: return __cd(__cd(__d).count() % __s); 29761: } 29761: 29761: template 29761: constexpr typename common_type, 29761: duration<_Rep2, _Period2>>::type 29761: operator%(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __cd; 29761: return __cd(__cd(__lhs).count() % __cd(__rhs).count()); 29761: } 29761: # 807 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: constexpr bool 29761: operator==(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __ct; 29761: return __ct(__lhs).count() == __ct(__rhs).count(); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator<(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __ct; 29761: return __ct(__lhs).count() < __ct(__rhs).count(); 29761: } 29761: # 844 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: constexpr bool 29761: operator!=(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: template 29761: constexpr bool 29761: operator<=(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { return !(__rhs < __lhs); } 29761: 29761: template 29761: constexpr bool 29761: operator>(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { return __rhs < __lhs; } 29761: 29761: template 29761: constexpr bool 29761: operator>=(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { return !(__lhs < __rhs); } 29761: # 888 "/usr/include/c++/14/bits/chrono.h" 3 29761: using nanoseconds = duration; 29761: 29761: 29761: using microseconds = duration; 29761: 29761: 29761: using milliseconds = duration; 29761: 29761: 29761: using seconds = duration; 29761: 29761: 29761: using minutes = duration>; 29761: 29761: 29761: using hours = duration>; 29761: # 921 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: class time_point 29761: { 29761: static_assert(__is_duration<_Dur>::value, 29761: "duration must be a specialization of std::chrono::duration"); 29761: 29761: public: 29761: typedef _Clock clock; 29761: typedef _Dur duration; 29761: typedef typename duration::rep rep; 29761: typedef typename duration::period period; 29761: 29761: constexpr time_point() : __d(duration::zero()) 29761: { } 29761: 29761: constexpr explicit time_point(const duration& __dur) 29761: : __d(__dur) 29761: { } 29761: 29761: 29761: template>> 29761: constexpr time_point(const time_point& __t) 29761: : __d(__t.time_since_epoch()) 29761: { } 29761: 29761: 29761: constexpr duration 29761: time_since_epoch() const 29761: { return __d; } 29761: # 977 "/usr/include/c++/14/bits/chrono.h" 3 29761: constexpr time_point& 29761: operator+=(const duration& __dur) 29761: { 29761: __d += __dur; 29761: return *this; 29761: } 29761: 29761: constexpr time_point& 29761: operator-=(const duration& __dur) 29761: { 29761: __d -= __dur; 29761: return *this; 29761: } 29761: 29761: 29761: static constexpr time_point 29761: min() noexcept 29761: { return time_point(duration::min()); } 29761: 29761: static constexpr time_point 29761: max() noexcept 29761: { return time_point(duration::max()); } 29761: 29761: private: 29761: duration __d; 29761: }; 29761: # 1016 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: __enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 29761: time_point_cast(const time_point<_Clock, _Dur>& __t) 29761: { 29761: typedef time_point<_Clock, _ToDur> __time_point; 29761: return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); 29761: } 29761: # 1038 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr 29761: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 29761: floor(const time_point<_Clock, _Dur>& __tp) 29761: { 29761: return time_point<_Clock, _ToDur>{ 29761: chrono::floor<_ToDur>(__tp.time_since_epoch())}; 29761: } 29761: # 1059 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr 29761: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 29761: ceil(const time_point<_Clock, _Dur>& __tp) 29761: { 29761: return time_point<_Clock, _ToDur>{ 29761: chrono::ceil<_ToDur>(__tp.time_since_epoch())}; 29761: } 29761: # 1081 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr 29761: enable_if_t<__is_duration_v<_ToDur> 29761: && !treat_as_floating_point_v, 29761: time_point<_Clock, _ToDur>> 29761: round(const time_point<_Clock, _Dur>& __tp) 29761: { 29761: return time_point<_Clock, _ToDur>{ 29761: chrono::round<_ToDur>(__tp.time_since_epoch())}; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr time_point<_Clock, 29761: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 29761: operator+(const time_point<_Clock, _Dur1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<_Dur1,__dur2>::type __ct; 29761: typedef time_point<_Clock, __ct> __time_point; 29761: return __time_point(__lhs.time_since_epoch() + __rhs); 29761: } 29761: 29761: 29761: template 29761: constexpr time_point<_Clock, 29761: typename common_type, _Dur2>::type> 29761: operator+(const duration<_Rep1, _Period1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef typename common_type<__dur1,_Dur2>::type __ct; 29761: typedef time_point<_Clock, __ct> __time_point; 29761: return __time_point(__rhs.time_since_epoch() + __lhs); 29761: } 29761: 29761: 29761: template 29761: constexpr time_point<_Clock, 29761: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 29761: operator-(const time_point<_Clock, _Dur1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<_Dur1,__dur2>::type __ct; 29761: typedef time_point<_Clock, __ct> __time_point; 29761: return __time_point(__lhs.time_since_epoch() -__rhs); 29761: } 29761: 29761: 29761: template 29761: constexpr typename common_type<_Dur1, _Dur2>::type 29761: operator-(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr bool 29761: operator==(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } 29761: # 1165 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: constexpr bool 29761: operator!=(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: template 29761: constexpr bool 29761: operator<(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } 29761: 29761: template 29761: constexpr bool 29761: operator<=(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return !(__rhs < __lhs); } 29761: 29761: template 29761: constexpr bool 29761: operator>(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return __rhs < __lhs; } 29761: 29761: template 29761: constexpr bool 29761: operator>=(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return !(__lhs < __rhs); } 29761: # 1217 "/usr/include/c++/14/bits/chrono.h" 3 29761: inline namespace _V2 { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct system_clock 29761: { 29761: typedef chrono::nanoseconds duration; 29761: typedef duration::rep rep; 29761: typedef duration::period period; 29761: typedef chrono::time_point time_point; 29761: 29761: static_assert(system_clock::duration::min() 29761: < system_clock::duration::zero(), 29761: "a clock's minimum duration cannot be less than its epoch"); 29761: 29761: static constexpr bool is_steady = false; 29761: 29761: static time_point 29761: now() noexcept; 29761: 29761: 29761: 29761: static std::time_t 29761: to_time_t(const time_point& __t) noexcept 29761: { 29761: return std::time_t(duration_cast 29761: (__t.time_since_epoch()).count()); 29761: } 29761: 29761: 29761: static time_point 29761: from_time_t(std::time_t __t) noexcept 29761: { 29761: typedef chrono::time_point __from; 29761: return time_point_cast 29761: (__from(chrono::seconds(__t))); 29761: } 29761: }; 29761: # 1267 "/usr/include/c++/14/bits/chrono.h" 3 29761: struct steady_clock 29761: { 29761: typedef chrono::nanoseconds duration; 29761: typedef duration::rep rep; 29761: typedef duration::period period; 29761: typedef chrono::time_point time_point; 29761: 29761: static constexpr bool is_steady = true; 29761: 29761: static time_point 29761: now() noexcept; 29761: }; 29761: # 1289 "/usr/include/c++/14/bits/chrono.h" 3 29761: using high_resolution_clock = system_clock; 29761: 29761: } 29761: # 1315 "/usr/include/c++/14/bits/chrono.h" 3 29761: } 29761: 29761: 29761: inline namespace literals 29761: { 29761: # 1344 "/usr/include/c++/14/bits/chrono.h" 3 29761: inline namespace chrono_literals 29761: { 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29761: 29761: template 29761: constexpr _Dur __check_overflow() 29761: { 29761: using _Val = __parse_int::_Parse_int<_Digits...>; 29761: constexpr typename _Dur::rep __repval = _Val::value; 29761: static_assert(__repval >= 0 && __repval == _Val::value, 29761: "literal value cannot be represented by duration type"); 29761: return _Dur(__repval); 29761: } 29761: 29761: 29761: 29761: constexpr chrono::duration> 29761: operator""h(long double __hours) 29761: { return chrono::duration>{__hours}; } 29761: 29761: 29761: template 29761: constexpr chrono::hours 29761: operator""h() 29761: { return __check_overflow(); } 29761: 29761: 29761: constexpr chrono::duration> 29761: operator""min(long double __mins) 29761: { return chrono::duration>{__mins}; } 29761: 29761: 29761: template 29761: constexpr chrono::minutes 29761: operator""min() 29761: { return __check_overflow(); } 29761: 29761: 29761: constexpr chrono::duration 29761: operator""s(long double __secs) 29761: { return chrono::duration{__secs}; } 29761: 29761: 29761: template 29761: constexpr chrono::seconds 29761: operator""s() 29761: { return __check_overflow(); } 29761: 29761: 29761: constexpr chrono::duration 29761: operator""ms(long double __msecs) 29761: { return chrono::duration{__msecs}; } 29761: 29761: 29761: template 29761: constexpr chrono::milliseconds 29761: operator""ms() 29761: { return __check_overflow(); } 29761: 29761: 29761: constexpr chrono::duration 29761: operator""us(long double __usecs) 29761: { return chrono::duration{__usecs}; } 29761: 29761: 29761: template 29761: constexpr chrono::microseconds 29761: operator""us() 29761: { return __check_overflow(); } 29761: 29761: 29761: constexpr chrono::duration 29761: operator""ns(long double __nsecs) 29761: { return chrono::duration{__nsecs}; } 29761: 29761: 29761: template 29761: constexpr chrono::nanoseconds 29761: operator""ns() 29761: { return __check_overflow(); } 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: } 29761: } 29761: 29761: namespace chrono 29761: { 29761: using namespace literals::chrono_literals; 29761: } 29761: 29761: 29761: 29761: namespace filesystem 29761: { 29761: struct __file_clock 29761: { 29761: using duration = chrono::nanoseconds; 29761: using rep = duration::rep; 29761: using period = duration::period; 29761: using time_point = chrono::time_point<__file_clock>; 29761: static constexpr bool is_steady = false; 29761: 29761: static time_point 29761: now() noexcept 29761: { return _S_from_sys(chrono::system_clock::now()); } 29761: # 1470 "/usr/include/c++/14/bits/chrono.h" 3 29761: private: 29761: using __sys_clock = chrono::system_clock; 29761: 29761: 29761: 29761: 29761: static constexpr chrono::seconds _S_epoch_diff{6437664000}; 29761: 29761: protected: 29761: 29761: template 29761: static 29761: chrono::time_point<__file_clock, common_type_t<_Dur, chrono::seconds>> 29761: _S_from_sys(const chrono::time_point<__sys_clock, _Dur>& __t) noexcept 29761: { 29761: using _CDur = common_type_t<_Dur, chrono::seconds>; 29761: using __file_time = chrono::time_point<__file_clock, _CDur>; 29761: return __file_time{__t.time_since_epoch()} - _S_epoch_diff; 29761: } 29761: 29761: 29761: template 29761: static 29761: chrono::time_point<__sys_clock, common_type_t<_Dur, chrono::seconds>> 29761: _S_to_sys(const chrono::time_point<__file_clock, _Dur>& __t) noexcept 29761: { 29761: using _CDur = common_type_t<_Dur, chrono::seconds>; 29761: using __sys_time = chrono::time_point<__sys_clock, _CDur>; 29761: return __sys_time{__t.time_since_epoch()} + _S_epoch_diff; 29761: } 29761: }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 37 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/cerrno" 1 3 29761: # 39 "/usr/include/c++/14/cerrno" 3 29761: 29761: # 40 "/usr/include/c++/14/cerrno" 3 29761: # 40 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 56 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29761: namespace this_thread 29761: { 29761: # 66 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29761: template 29761: inline void 29761: sleep_for(const chrono::duration<_Rep, _Period>& __rtime) 29761: { 29761: if (__rtime <= __rtime.zero()) 29761: return; 29761: auto __s = chrono::duration_cast(__rtime); 29761: auto __ns = chrono::duration_cast(__rtime - __s); 29761: 29761: struct ::timespec __ts = 29761: { 29761: static_cast(__s.count()), 29761: static_cast(__ns.count()) 29761: }; 29761: while (::nanosleep(&__ts, &__ts) == -1 && (*__errno_location ()) == 4) 29761: { } 29761: 29761: 29761: 29761: } 29761: 29761: 29761: template 29761: inline void 29761: sleep_until(const chrono::time_point<_Clock, _Duration>& __atime) 29761: { 29761: 29761: 29761: 29761: auto __now = _Clock::now(); 29761: if (_Clock::is_steady) 29761: { 29761: if (__now < __atime) 29761: sleep_for(__atime - __now); 29761: return; 29761: } 29761: while (__now < __atime) 29761: { 29761: sleep_for(__atime - __now); 29761: __now = _Clock::now(); 29761: } 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 47 "/usr/include/c++/14/thread" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 51 "/usr/include/c++/14/thread" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 78 "/usr/include/c++/14/thread" 3 29761: inline bool 29761: operator!=(thread::id __x, thread::id __y) noexcept 29761: { return !(__x == __y); } 29761: 29761: inline bool 29761: operator<(thread::id __x, thread::id __y) noexcept 29761: { 29761: 29761: 29761: return __x._M_thread < __y._M_thread; 29761: } 29761: 29761: inline bool 29761: operator<=(thread::id __x, thread::id __y) noexcept 29761: { return !(__y < __x); } 29761: 29761: inline bool 29761: operator>(thread::id __x, thread::id __y) noexcept 29761: { return __y < __x; } 29761: 29761: inline bool 29761: operator>=(thread::id __x, thread::id __y) noexcept 29761: { return !(__x < __y); } 29761: 29761: 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id) 29761: { 29761: 29761: using __output_type 29761: = __conditional_t::value, 29761: const void*, 29761: thread::native_handle_type>; 29761: 29761: if (__id == thread::id()) 29761: return __out << "thread::id of a non-executing thread"; 29761: else 29761: return __out << static_cast<__output_type>(__id._M_thread); 29761: } 29761: # 372 "/usr/include/c++/14/thread" 3 29761: 29761: } 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 29761: 29761: 29761: 29761: 29761: 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 29761: namespace rocksdb { 29761: 29761: namespace port { 29761: class CondVar; 29761: } 29761: 29761: enum class CpuPriority { 29761: kIdle = 0, 29761: kLow = 1, 29761: kNormal = 2, 29761: kHigh = 3, 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 2 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: namespace rocksdb { 29761: 29761: extern const bool kDefaultToAdaptiveMutex; 29761: 29761: namespace port { 29761: constexpr bool kLittleEndian = ( 29761: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 3 4 29761: 1234 29761: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: == 29761: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 3 4 29761: 1234 29761: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: ); 29761: 29761: 29761: class CondVar; 29761: 29761: class Mutex { 29761: public: 29761: static const char* kName() { return "pthread_mutex_t"; } 29761: 29761: explicit Mutex(bool adaptive = kDefaultToAdaptiveMutex); 29761: 29761: Mutex(const Mutex&) = delete; 29761: void operator=(const Mutex&) = delete; 29761: 29761: ~Mutex(); 29761: 29761: void Lock(); 29761: void Unlock(); 29761: 29761: bool TryLock(); 29761: 29761: 29761: 29761: void AssertHeld() const; 29761: 29761: 29761: inline void lock() { Lock(); } 29761: inline void unlock() { Unlock(); } 29761: inline bool try_lock() { return TryLock(); } 29761: 29761: private: 29761: friend class CondVar; 29761: pthread_mutex_t mu_; 29761: 29761: bool locked_ = false; 29761: 29761: }; 29761: 29761: class RWMutex { 29761: public: 29761: RWMutex(); 29761: 29761: RWMutex(const RWMutex&) = delete; 29761: void operator=(const RWMutex&) = delete; 29761: 29761: ~RWMutex(); 29761: 29761: void ReadLock(); 29761: void WriteLock(); 29761: void ReadUnlock(); 29761: void WriteUnlock(); 29761: void AssertHeld() const {} 29761: 29761: private: 29761: pthread_rwlock_t mu_; 29761: }; 29761: 29761: class CondVar { 29761: public: 29761: explicit CondVar(Mutex* mu); 29761: ~CondVar(); 29761: 29761: Mutex* GetMutex() const { return mu_; } 29761: 29761: void Wait(); 29761: 29761: bool TimedWait(uint64_t abs_time_us); 29761: void Signal(); 29761: void SignalAll(); 29761: 29761: private: 29761: pthread_cond_t cv_; 29761: Mutex* mu_; 29761: }; 29761: 29761: using Thread = std::thread; 29761: 29761: static inline void AsmVolatilePause() { 29761: # 179 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: } 29761: 29761: 29761: int PhysicalCoreID(); 29761: 29761: using OnceType = pthread_once_t; 29761: 29761: void InitOnce(OnceType* once, void (*initializer)()); 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: static_assert((64U & (64U - 1)) == 0, 29761: "Cache line size must be a power of 2 number of bytes"); 29761: 29761: void* cacheline_aligned_alloc(size_t size); 29761: 29761: void cacheline_aligned_free(void* memblock); 29761: # 229 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: void Crash(const std::string& srcfile, int srcline); 29761: 29761: int GetMaxOpenFiles(); 29761: 29761: extern const size_t kPageSize; 29761: 29761: using ThreadId = pid_t; 29761: 29761: void SetCpuPriority(ThreadId id, CpuPriority priority); 29761: 29761: int64_t GetProcessID(); 29761: 29761: 29761: 29761: bool GenerateRfcUuid(std::string* output); 29761: 29761: } 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 2 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 29761: extern "C" bool RocksDbThreadYieldAndCheckAbort() __attribute__((__weak__)); 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 1 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstring" 1 3 29761: # 39 "/usr/include/c++/14/cstring" 3 29761: 29761: # 40 "/usr/include/c++/14/cstring" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 43 "/usr/include/c++/14/cstring" 2 3 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 2 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: inline void EncodeFixed16(char* buf, uint16_t value) { 29761: if (port::kLittleEndian) { 29761: memcpy(buf, &value, sizeof(value)); 29761: } else { 29761: buf[0] = value & 0xff; 29761: buf[1] = (value >> 8) & 0xff; 29761: } 29761: } 29761: 29761: inline void EncodeFixed32(char* buf, uint32_t value) { 29761: if (port::kLittleEndian) { 29761: memcpy(buf, &value, sizeof(value)); 29761: } else { 29761: buf[0] = value & 0xff; 29761: buf[1] = (value >> 8) & 0xff; 29761: buf[2] = (value >> 16) & 0xff; 29761: buf[3] = (value >> 24) & 0xff; 29761: } 29761: } 29761: 29761: inline void EncodeFixed64(char* buf, uint64_t value) { 29761: if (port::kLittleEndian) { 29761: memcpy(buf, &value, sizeof(value)); 29761: } else { 29761: buf[0] = value & 0xff; 29761: buf[1] = (value >> 8) & 0xff; 29761: buf[2] = (value >> 16) & 0xff; 29761: buf[3] = (value >> 24) & 0xff; 29761: buf[4] = (value >> 32) & 0xff; 29761: buf[5] = (value >> 40) & 0xff; 29761: buf[6] = (value >> 48) & 0xff; 29761: buf[7] = (value >> 56) & 0xff; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: inline uint16_t DecodeFixed16(const char* ptr) { 29761: if (port::kLittleEndian) { 29761: 29761: uint16_t result; 29761: memcpy(&result, ptr, sizeof(result)); 29761: return result; 29761: } else { 29761: return ((static_cast(static_cast(ptr[0]))) | 29761: (static_cast(static_cast(ptr[1])) << 8)); 29761: } 29761: } 29761: 29761: inline uint32_t DecodeFixed32(const char* ptr) { 29761: if (port::kLittleEndian) { 29761: 29761: uint32_t result; 29761: memcpy(&result, ptr, sizeof(result)); 29761: return result; 29761: } else { 29761: return ((static_cast(static_cast(ptr[0]))) | 29761: (static_cast(static_cast(ptr[1])) << 8) | 29761: (static_cast(static_cast(ptr[2])) << 16) | 29761: (static_cast(static_cast(ptr[3])) << 24)); 29761: } 29761: } 29761: 29761: inline uint64_t DecodeFixed64(const char* ptr) { 29761: if (port::kLittleEndian) { 29761: 29761: uint64_t result; 29761: memcpy(&result, ptr, sizeof(result)); 29761: return result; 29761: } else { 29761: uint64_t lo = DecodeFixed32(ptr); 29761: uint64_t hi = DecodeFixed32(ptr + 4); 29761: return (hi << 32) | lo; 29761: } 29761: } 29761: 29761: } 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: const uint32_t kMaxVarint64Length = 10; 29761: 29761: 29761: void PutFixed16(std::string* dst, uint16_t value); 29761: void PutFixed32(std::string* dst, uint32_t value); 29761: void PutFixed64(std::string* dst, uint64_t value); 29761: void PutVarint32(std::string* dst, uint32_t value); 29761: void PutVarint32Varint32(std::string* dst, uint32_t value1, uint32_t value2); 29761: void PutVarint32Varint32Varint32(std::string* dst, uint32_t value1, 29761: uint32_t value2, uint32_t value3); 29761: void PutVarint64(std::string* dst, uint64_t value); 29761: void PutVarint64Varint64(std::string* dst, uint64_t value1, uint64_t value2); 29761: void PutVarint32Varint64(std::string* dst, uint32_t value1, uint64_t value2); 29761: void PutVarint32Varint32Varint64(std::string* dst, uint32_t value1, 29761: uint32_t value2, uint64_t value3); 29761: void PutLengthPrefixedSlice(std::string* dst, const Slice& value); 29761: void PutLengthPrefixedSliceParts(std::string* dst, 29761: const SliceParts& slice_parts); 29761: void PutLengthPrefixedSlicePartsWithPadding(std::string* dst, 29761: const SliceParts& slice_parts, 29761: size_t pad_sz); 29761: 29761: 29761: 29761: bool GetFixed64(Slice* input, uint64_t* value); 29761: bool GetFixed32(Slice* input, uint32_t* value); 29761: bool GetFixed16(Slice* input, uint16_t* value); 29761: bool GetVarint32(Slice* input, uint32_t* value); 29761: bool GetVarint64(Slice* input, uint64_t* value); 29761: bool GetVarsignedint64(Slice* input, int64_t* value); 29761: bool GetLengthPrefixedSlice(Slice* input, Slice* result); 29761: 29761: Slice GetLengthPrefixedSlice(const char* data); 29761: 29761: Slice GetSliceUntil(Slice* slice, char delimiter); 29761: 29761: 29761: 29761: constexpr inline uint64_t i64ToZigzag(const int64_t l) { 29761: return (static_cast(l) << 1) ^ static_cast(l >> 63); 29761: } 29761: inline int64_t zigzagToI64(uint64_t n) { 29761: return (n >> 1) ^ -static_cast(n & 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: const char* GetVarint32Ptr(const char* p, const char* limit, uint32_t* v); 29761: const char* GetVarint64Ptr(const char* p, const char* limit, uint64_t* v); 29761: inline const char* GetVarsignedint64Ptr(const char* p, const char* limit, 29761: int64_t* value) { 29761: uint64_t u = 0; 29761: const char* ret = GetVarint64Ptr(p, limit, &u); 29761: *value = zigzagToI64(u); 29761: return ret; 29761: } 29761: 29761: 29761: int VarintLength(uint64_t v); 29761: 29761: 29761: 29761: 29761: char* EncodeVarint32(char* dst, uint32_t value); 29761: char* EncodeVarint64(char* dst, uint64_t value); 29761: 29761: 29761: const char* GetVarint32PtrFallback(const char* p, const char* limit, 29761: uint32_t* value); 29761: inline const char* GetVarint32Ptr(const char* p, const char* limit, 29761: uint32_t* value) { 29761: if (p < limit) { 29761: uint32_t result = *(reinterpret_cast(p)); 29761: if ((result & 128) == 0) { 29761: *value = result; 29761: return p + 1; 29761: } 29761: } 29761: return GetVarint32PtrFallback(p, limit, value); 29761: } 29761: 29761: 29761: inline void PutFixed16(std::string* dst, uint16_t value) { 29761: if (port::kLittleEndian) { 29761: dst->append(const_cast(reinterpret_cast(&value)), 29761: sizeof(value)); 29761: } else { 29761: char buf[sizeof(value)]; 29761: EncodeFixed16(buf, value); 29761: dst->append(buf, sizeof(buf)); 29761: } 29761: } 29761: 29761: inline void PutFixed32(std::string* dst, uint32_t value) { 29761: if (port::kLittleEndian) { 29761: dst->append(const_cast(reinterpret_cast(&value)), 29761: sizeof(value)); 29761: } else { 29761: char buf[sizeof(value)]; 29761: EncodeFixed32(buf, value); 29761: dst->append(buf, sizeof(buf)); 29761: } 29761: } 29761: 29761: inline void PutFixed64(std::string* dst, uint64_t value) { 29761: if (port::kLittleEndian) { 29761: dst->append(const_cast(reinterpret_cast(&value)), 29761: sizeof(value)); 29761: } else { 29761: char buf[sizeof(value)]; 29761: EncodeFixed64(buf, value); 29761: dst->append(buf, sizeof(buf)); 29761: } 29761: } 29761: 29761: inline void PutVarint32(std::string* dst, uint32_t v) { 29761: char buf[5]; 29761: char* ptr = EncodeVarint32(buf, v); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarint32Varint32(std::string* dst, uint32_t v1, uint32_t v2) { 29761: char buf[10]; 29761: char* ptr = EncodeVarint32(buf, v1); 29761: ptr = EncodeVarint32(ptr, v2); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarint32Varint32Varint32(std::string* dst, uint32_t v1, 29761: uint32_t v2, uint32_t v3) { 29761: char buf[15]; 29761: char* ptr = EncodeVarint32(buf, v1); 29761: ptr = EncodeVarint32(ptr, v2); 29761: ptr = EncodeVarint32(ptr, v3); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline char* EncodeVarint64(char* dst, uint64_t v) { 29761: static const unsigned int B = 128; 29761: unsigned char* ptr = reinterpret_cast(dst); 29761: while (v >= B) { 29761: *(ptr++) = (v & (B - 1)) | B; 29761: v >>= 7; 29761: } 29761: *(ptr++) = static_cast(v); 29761: return reinterpret_cast(ptr); 29761: } 29761: 29761: inline void PutVarint64(std::string* dst, uint64_t v) { 29761: char buf[kMaxVarint64Length]; 29761: char* ptr = EncodeVarint64(buf, v); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarsignedint64(std::string* dst, int64_t v) { 29761: char buf[kMaxVarint64Length]; 29761: 29761: char* ptr = EncodeVarint64(buf, i64ToZigzag(v)); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarint64Varint64(std::string* dst, uint64_t v1, uint64_t v2) { 29761: char buf[20]; 29761: char* ptr = EncodeVarint64(buf, v1); 29761: ptr = EncodeVarint64(ptr, v2); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarint32Varint64(std::string* dst, uint32_t v1, uint64_t v2) { 29761: char buf[15]; 29761: char* ptr = EncodeVarint32(buf, v1); 29761: ptr = EncodeVarint64(ptr, v2); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarint32Varint32Varint64(std::string* dst, uint32_t v1, 29761: uint32_t v2, uint64_t v3) { 29761: char buf[20]; 29761: char* ptr = EncodeVarint32(buf, v1); 29761: ptr = EncodeVarint32(ptr, v2); 29761: ptr = EncodeVarint64(ptr, v3); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { 29761: PutVarint32(dst, static_cast(value.size())); 29761: dst->append(value.data(), value.size()); 29761: } 29761: 29761: inline void PutLengthPrefixedSliceParts(std::string* dst, size_t total_bytes, 29761: const SliceParts& slice_parts) { 29761: for (int i = 0; i < slice_parts.num_parts; ++i) { 29761: total_bytes += slice_parts.parts[i].size(); 29761: } 29761: PutVarint32(dst, static_cast(total_bytes)); 29761: for (int i = 0; i < slice_parts.num_parts; ++i) { 29761: dst->append(slice_parts.parts[i].data(), slice_parts.parts[i].size()); 29761: } 29761: } 29761: 29761: inline void PutLengthPrefixedSliceParts(std::string* dst, 29761: const SliceParts& slice_parts) { 29761: PutLengthPrefixedSliceParts(dst, 0, slice_parts); 29761: } 29761: 29761: inline void PutLengthPrefixedSlicePartsWithPadding( 29761: std::string* dst, const SliceParts& slice_parts, size_t pad_sz) { 29761: PutLengthPrefixedSliceParts(dst, pad_sz, slice_parts); 29761: dst->append(pad_sz, '\0'); 29761: } 29761: 29761: inline int VarintLength(uint64_t v) { 29761: int len = 1; 29761: while (v >= 128) { 29761: v >>= 7; 29761: len++; 29761: } 29761: return len; 29761: } 29761: 29761: inline bool GetFixed64(Slice* input, uint64_t* value) { 29761: if (input->size() < sizeof(uint64_t)) { 29761: return false; 29761: } 29761: *value = DecodeFixed64(input->data()); 29761: input->remove_prefix(sizeof(uint64_t)); 29761: return true; 29761: } 29761: 29761: inline bool GetFixed32(Slice* input, uint32_t* value) { 29761: if (input->size() < sizeof(uint32_t)) { 29761: return false; 29761: } 29761: *value = DecodeFixed32(input->data()); 29761: input->remove_prefix(sizeof(uint32_t)); 29761: return true; 29761: } 29761: 29761: inline bool GetFixed16(Slice* input, uint16_t* value) { 29761: if (input->size() < sizeof(uint16_t)) { 29761: return false; 29761: } 29761: *value = DecodeFixed16(input->data()); 29761: input->remove_prefix(sizeof(uint16_t)); 29761: return true; 29761: } 29761: 29761: inline bool GetVarint32(Slice* input, uint32_t* value) { 29761: const char* p = input->data(); 29761: const char* limit = p + input->size(); 29761: const char* q = GetVarint32Ptr(p, limit, value); 29761: if (q == nullptr) { 29761: return false; 29761: } else { 29761: *input = Slice(q, static_cast(limit - q)); 29761: return true; 29761: } 29761: } 29761: 29761: inline bool GetVarint64(Slice* input, uint64_t* value) { 29761: const char* p = input->data(); 29761: const char* limit = p + input->size(); 29761: const char* q = GetVarint64Ptr(p, limit, value); 29761: if (q == nullptr) { 29761: return false; 29761: } else { 29761: *input = Slice(q, static_cast(limit - q)); 29761: return true; 29761: } 29761: } 29761: 29761: inline bool GetVarsignedint64(Slice* input, int64_t* value) { 29761: const char* p = input->data(); 29761: const char* limit = p + input->size(); 29761: const char* q = GetVarsignedint64Ptr(p, limit, value); 29761: if (q == nullptr) { 29761: return false; 29761: } else { 29761: *input = Slice(q, static_cast(limit - q)); 29761: return true; 29761: } 29761: } 29761: 29761: inline bool GetLengthPrefixedSlice(Slice* input, Slice* result) { 29761: uint32_t len = 0; 29761: if (GetVarint32(input, &len) && input->size() >= len) { 29761: *result = Slice(input->data(), len); 29761: input->remove_prefix(len); 29761: return true; 29761: } else { 29761: return false; 29761: } 29761: } 29761: 29761: inline Slice GetLengthPrefixedSlice(const char* data) { 29761: uint32_t len = 0; 29761: 29761: 29761: auto p = GetVarint32Ptr(data, data + 5 , &len); 29761: return Slice(p, len); 29761: } 29761: 29761: inline Slice GetSliceUntil(Slice* slice, char delimiter) { 29761: uint32_t len = 0; 29761: for (len = 0; len < slice->size() && slice->data()[len] != delimiter; ++len) { 29761: 29761: } 29761: 29761: Slice ret(slice->data(), len); 29761: slice->remove_prefix(len + ((len < slice->size()) ? 1 : 0)); 29761: return ret; 29761: } 29761: 29761: template 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline void 29761: PutUnaligned(T* memory, const T& value) { 29761: 29761: 29761: 29761: 29761: *memory = value; 29761: 29761: } 29761: 29761: template 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline void 29761: GetUnaligned(const T* memory, T* value) { 29761: 29761: 29761: 29761: 29761: *value = *memory; 29761: 29761: } 29761: 29761: } 29761: # 24 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_level_imp.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_level.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: enum PerfLevel : unsigned char { 29761: kUninitialized = 0, 29761: kDisable = 1, 29761: kEnableCount = 2, 29761: kEnableWait = 3, 29761: 29761: 29761: kEnableTimeExceptForMutex = 4, 29761: 29761: 29761: 29761: kEnableTimeAndCPUTimeExceptForMutex = 5, 29761: kEnableTime = 6, 29761: kOutOfBounds = 7 29761: }; 29761: 29761: 29761: void SetPerfLevel(PerfLevel level); 29761: 29761: 29761: PerfLevel GetPerfLevel(); 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_level_imp.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: extern thread_local PerfLevel perf_level; 29761: 29761: } 29761: # 8 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/map" 1 3 29761: # 58 "/usr/include/c++/14/map" 3 29761: 29761: # 59 "/usr/include/c++/14/map" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_tree.h" 1 3 29761: # 61 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: 29761: # 62 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: 29761: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 95 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: enum _Rb_tree_color { _S_red = false, _S_black = true }; 29761: 29761: struct _Rb_tree_node_base 29761: { 29761: typedef _Rb_tree_node_base* _Base_ptr; 29761: typedef const _Rb_tree_node_base* _Const_Base_ptr; 29761: 29761: _Rb_tree_color _M_color; 29761: _Base_ptr _M_parent; 29761: _Base_ptr _M_left; 29761: _Base_ptr _M_right; 29761: 29761: static _Base_ptr 29761: _S_minimum(_Base_ptr __x) noexcept 29761: { 29761: while (__x->_M_left != 0) __x = __x->_M_left; 29761: return __x; 29761: } 29761: 29761: static _Const_Base_ptr 29761: _S_minimum(_Const_Base_ptr __x) noexcept 29761: { 29761: while (__x->_M_left != 0) __x = __x->_M_left; 29761: return __x; 29761: } 29761: 29761: static _Base_ptr 29761: _S_maximum(_Base_ptr __x) noexcept 29761: { 29761: while (__x->_M_right != 0) __x = __x->_M_right; 29761: return __x; 29761: } 29761: 29761: static _Const_Base_ptr 29761: _S_maximum(_Const_Base_ptr __x) noexcept 29761: { 29761: while (__x->_M_right != 0) __x = __x->_M_right; 29761: return __x; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Rb_tree_key_compare 29761: { 29761: _Key_compare _M_key_compare; 29761: 29761: _Rb_tree_key_compare() 29761: noexcept(is_nothrow_default_constructible<_Key_compare>::value) 29761: 29761: : _M_key_compare() 29761: { } 29761: 29761: _Rb_tree_key_compare(const _Key_compare& __comp) 29761: : _M_key_compare(__comp) 29761: { } 29761: 29761: 29761: 29761: _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; 29761: 29761: _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) 29761: noexcept(is_nothrow_copy_constructible<_Key_compare>::value) 29761: : _M_key_compare(__x._M_key_compare) 29761: { } 29761: 29761: }; 29761: 29761: 29761: struct _Rb_tree_header 29761: { 29761: _Rb_tree_node_base _M_header; 29761: size_t _M_node_count; 29761: 29761: _Rb_tree_header() noexcept 29761: { 29761: _M_header._M_color = _S_red; 29761: _M_reset(); 29761: } 29761: 29761: 29761: _Rb_tree_header(_Rb_tree_header&& __x) noexcept 29761: { 29761: if (__x._M_header._M_parent != nullptr) 29761: _M_move_data(__x); 29761: else 29761: { 29761: _M_header._M_color = _S_red; 29761: _M_reset(); 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_move_data(_Rb_tree_header& __from) 29761: { 29761: _M_header._M_color = __from._M_header._M_color; 29761: _M_header._M_parent = __from._M_header._M_parent; 29761: _M_header._M_left = __from._M_header._M_left; 29761: _M_header._M_right = __from._M_header._M_right; 29761: _M_header._M_parent->_M_parent = &_M_header; 29761: _M_node_count = __from._M_node_count; 29761: 29761: __from._M_reset(); 29761: } 29761: 29761: void 29761: _M_reset() 29761: { 29761: _M_header._M_parent = 0; 29761: _M_header._M_left = &_M_header; 29761: _M_header._M_right = &_M_header; 29761: _M_node_count = 0; 29761: } 29761: }; 29761: 29761: template 29761: struct _Rb_tree_node : public _Rb_tree_node_base 29761: { 29761: typedef _Rb_tree_node<_Val>* _Link_type; 29761: # 227 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: __gnu_cxx::__aligned_membuf<_Val> _M_storage; 29761: 29761: _Val* 29761: _M_valptr() 29761: { return _M_storage._M_ptr(); } 29761: 29761: const _Val* 29761: _M_valptr() const 29761: { return _M_storage._M_ptr(); } 29761: 29761: }; 29761: 29761: __attribute__ ((__pure__)) _Rb_tree_node_base* 29761: _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); 29761: 29761: __attribute__ ((__pure__)) const _Rb_tree_node_base* 29761: _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); 29761: 29761: __attribute__ ((__pure__)) _Rb_tree_node_base* 29761: _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); 29761: 29761: __attribute__ ((__pure__)) const _Rb_tree_node_base* 29761: _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); 29761: 29761: template 29761: struct _Rb_tree_iterator 29761: { 29761: typedef _Tp value_type; 29761: typedef _Tp& reference; 29761: typedef _Tp* pointer; 29761: 29761: typedef bidirectional_iterator_tag iterator_category; 29761: typedef ptrdiff_t difference_type; 29761: 29761: typedef _Rb_tree_iterator<_Tp> _Self; 29761: typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; 29761: typedef _Rb_tree_node<_Tp>* _Link_type; 29761: 29761: _Rb_tree_iterator() noexcept 29761: : _M_node() { } 29761: 29761: explicit 29761: _Rb_tree_iterator(_Base_ptr __x) noexcept 29761: : _M_node(__x) { } 29761: 29761: reference 29761: operator*() const noexcept 29761: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 29761: 29761: pointer 29761: operator->() const noexcept 29761: { return static_cast<_Link_type> (_M_node)->_M_valptr(); } 29761: 29761: _Self& 29761: operator++() noexcept 29761: { 29761: _M_node = _Rb_tree_increment(_M_node); 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator++(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _Rb_tree_increment(_M_node); 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator--() noexcept 29761: { 29761: _M_node = _Rb_tree_decrement(_M_node); 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator--(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _Rb_tree_decrement(_M_node); 29761: return __tmp; 29761: } 29761: 29761: friend bool 29761: operator==(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node == __y._M_node; } 29761: 29761: 29761: friend bool 29761: operator!=(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node != __y._M_node; } 29761: 29761: 29761: _Base_ptr _M_node; 29761: }; 29761: 29761: template 29761: struct _Rb_tree_const_iterator 29761: { 29761: typedef _Tp value_type; 29761: typedef const _Tp& reference; 29761: typedef const _Tp* pointer; 29761: 29761: typedef _Rb_tree_iterator<_Tp> iterator; 29761: 29761: typedef bidirectional_iterator_tag iterator_category; 29761: typedef ptrdiff_t difference_type; 29761: 29761: typedef _Rb_tree_const_iterator<_Tp> _Self; 29761: typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; 29761: typedef const _Rb_tree_node<_Tp>* _Link_type; 29761: 29761: _Rb_tree_const_iterator() noexcept 29761: : _M_node() { } 29761: 29761: explicit 29761: _Rb_tree_const_iterator(_Base_ptr __x) noexcept 29761: : _M_node(__x) { } 29761: 29761: _Rb_tree_const_iterator(const iterator& __it) noexcept 29761: : _M_node(__it._M_node) { } 29761: 29761: iterator 29761: _M_const_cast() const noexcept 29761: { return iterator(const_cast(_M_node)); } 29761: 29761: reference 29761: operator*() const noexcept 29761: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 29761: 29761: pointer 29761: operator->() const noexcept 29761: { return static_cast<_Link_type>(_M_node)->_M_valptr(); } 29761: 29761: _Self& 29761: operator++() noexcept 29761: { 29761: _M_node = _Rb_tree_increment(_M_node); 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator++(int) noexcept 29761: { 29761: _Self __tmp = *this; [ 23%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o 29761: _M_node = _Rb_tree_increment(_M_node); 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator--() noexcept 29761: { 29761: _M_node = _Rb_tree_decrement(_M_node); 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator--(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _Rb_tree_decrement(_M_node); 29761: return __tmp; 29761: } 29761: 29761: friend bool 29761: operator==(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node == __y._M_node; } 29761: 29761: 29761: friend bool 29761: operator!=(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node != __y._M_node; } 29761: 29761: 29761: _Base_ptr _M_node; 29761: }; 29761: 29761: __attribute__((__nonnull__)) 29761: void 29761: _Rb_tree_insert_and_rebalance(const bool __insert_left, 29761: _Rb_tree_node_base* __x, 29761: _Rb_tree_node_base* __p, 29761: _Rb_tree_node_base& __header) throw (); 29761: 29761: __attribute__((__nonnull__,__returns_nonnull__)) 29761: _Rb_tree_node_base* 29761: _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, 29761: _Rb_tree_node_base& __header) throw (); 29761: 29761: 29761: template 29761: struct _Rb_tree_merge_helper { }; 29761: 29761: 29761: template > 29761: class _Rb_tree 29761: { 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Rb_tree_node<_Val> >::other _Node_allocator; 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; 29761: 29761: protected: 29761: typedef _Rb_tree_node_base* _Base_ptr; 29761: typedef const _Rb_tree_node_base* _Const_Base_ptr; 29761: typedef _Rb_tree_node<_Val>* _Link_type; 29761: typedef const _Rb_tree_node<_Val>* _Const_Link_type; 29761: 29761: private: 29761: 29761: 29761: struct _Reuse_or_alloc_node 29761: { 29761: _Reuse_or_alloc_node(_Rb_tree& __t) 29761: : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) 29761: { 29761: if (_M_root) 29761: { 29761: _M_root->_M_parent = 0; 29761: 29761: if (_M_nodes->_M_left) 29761: _M_nodes = _M_nodes->_M_left; 29761: } 29761: else 29761: _M_nodes = 0; 29761: } 29761: 29761: 29761: _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; 29761: 29761: 29761: ~_Reuse_or_alloc_node() 29761: { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } 29761: 29761: template 29761: _Link_type 29761: operator()(_Arg&& __arg) 29761: { 29761: _Link_type __node = static_cast<_Link_type>(_M_extract()); 29761: if (__node) 29761: { 29761: _M_t._M_destroy_node(__node); 29761: _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); 29761: return __node; 29761: } 29761: 29761: return _M_t._M_create_node(std::forward<_Arg>(__arg)); 29761: } 29761: 29761: private: 29761: _Base_ptr 29761: _M_extract() 29761: { 29761: if (!_M_nodes) 29761: return _M_nodes; 29761: 29761: _Base_ptr __node = _M_nodes; 29761: _M_nodes = _M_nodes->_M_parent; 29761: if (_M_nodes) 29761: { 29761: if (_M_nodes->_M_right == __node) 29761: { 29761: _M_nodes->_M_right = 0; 29761: 29761: if (_M_nodes->_M_left) 29761: { 29761: _M_nodes = _M_nodes->_M_left; 29761: 29761: while (_M_nodes->_M_right) 29761: _M_nodes = _M_nodes->_M_right; 29761: 29761: if (_M_nodes->_M_left) 29761: _M_nodes = _M_nodes->_M_left; 29761: } 29761: } 29761: else 29761: _M_nodes->_M_left = 0; 29761: } 29761: else 29761: _M_root = 0; 29761: 29761: return __node; 29761: } 29761: 29761: _Base_ptr _M_root; 29761: _Base_ptr _M_nodes; 29761: _Rb_tree& _M_t; 29761: }; 29761: 29761: 29761: 29761: struct _Alloc_node 29761: { 29761: _Alloc_node(_Rb_tree& __t) 29761: : _M_t(__t) { } 29761: 29761: template 29761: _Link_type 29761: operator()(_Arg&& __arg) const 29761: { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } 29761: 29761: private: 29761: _Rb_tree& _M_t; 29761: }; 29761: 29761: public: 29761: typedef _Key key_type; 29761: typedef _Val value_type; 29761: typedef value_type* pointer; 29761: typedef const value_type* const_pointer; 29761: typedef value_type& reference; 29761: typedef const value_type& const_reference; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Alloc allocator_type; 29761: 29761: _Node_allocator& 29761: _M_get_Node_allocator() noexcept 29761: { return this->_M_impl; } 29761: 29761: const _Node_allocator& 29761: _M_get_Node_allocator() const noexcept 29761: { return this->_M_impl; } 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_get_Node_allocator()); } 29761: 29761: protected: 29761: _Link_type 29761: _M_get_node() 29761: { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } 29761: 29761: void 29761: _M_put_node(_Link_type __p) noexcept 29761: { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } 29761: # 586 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: template 29761: void 29761: _M_construct_node(_Link_type __node, _Args&&... __args) 29761: { 29761: try 29761: { 29761: ::new(__node) _Rb_tree_node<_Val>; 29761: _Alloc_traits::construct(_M_get_Node_allocator(), 29761: __node->_M_valptr(), 29761: std::forward<_Args>(__args)...); 29761: } 29761: catch(...) 29761: { 29761: __node->~_Rb_tree_node<_Val>(); 29761: _M_put_node(__node); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: _Link_type 29761: _M_create_node(_Args&&... __args) 29761: { 29761: _Link_type __tmp = _M_get_node(); 29761: _M_construct_node(__tmp, std::forward<_Args>(__args)...); 29761: return __tmp; 29761: } 29761: 29761: 29761: void 29761: _M_destroy_node(_Link_type __p) noexcept 29761: { 29761: 29761: 29761: 29761: _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); 29761: __p->~_Rb_tree_node<_Val>(); 29761: 29761: } 29761: 29761: void 29761: _M_drop_node(_Link_type __p) noexcept 29761: { 29761: _M_destroy_node(__p); 29761: _M_put_node(__p); 29761: } 29761: 29761: template 29761: _Link_type 29761: _M_clone_node(_Link_type __x, _NodeGen& __node_gen) 29761: { 29761: 29761: using _Vp = __conditional_t<_MoveValue, 29761: value_type&&, 29761: const value_type&>; 29761: 29761: _Link_type __tmp 29761: = __node_gen(std::forward<_Vp>(*__x->_M_valptr())); 29761: __tmp->_M_color = __x->_M_color; 29761: __tmp->_M_left = 0; 29761: __tmp->_M_right = 0; 29761: return __tmp; 29761: } 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: struct _Rb_tree_impl 29761: : public _Node_allocator 29761: , public _Rb_tree_key_compare<_Key_compare> 29761: , public _Rb_tree_header 29761: { 29761: typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; 29761: 29761: _Rb_tree_impl() 29761: noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) 29761: 29761: 29761: : _Node_allocator() 29761: { } 29761: 29761: _Rb_tree_impl(const _Rb_tree_impl& __x) 29761: : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) 29761: , _Base_key_compare(__x._M_key_compare) 29761: , _Rb_tree_header() 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: _Rb_tree_impl(_Rb_tree_impl&&) 29761: noexcept( is_nothrow_move_constructible<_Base_key_compare>::value ) 29761: = default; 29761: 29761: explicit 29761: _Rb_tree_impl(_Node_allocator&& __a) 29761: : _Node_allocator(std::move(__a)) 29761: { } 29761: 29761: _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) 29761: : _Node_allocator(std::move(__a)), 29761: _Base_key_compare(std::move(__x)), 29761: _Rb_tree_header(std::move(__x)) 29761: { } 29761: 29761: _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) 29761: : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) 29761: { } 29761: 29761: }; 29761: 29761: _Rb_tree_impl<_Compare> _M_impl; 29761: 29761: protected: 29761: _Base_ptr& 29761: _M_root() noexcept 29761: { return this->_M_impl._M_header._M_parent; } 29761: 29761: _Const_Base_ptr 29761: _M_root() const noexcept 29761: { return this->_M_impl._M_header._M_parent; } 29761: 29761: _Base_ptr& 29761: _M_leftmost() noexcept 29761: { return this->_M_impl._M_header._M_left; } 29761: 29761: _Const_Base_ptr 29761: _M_leftmost() const noexcept 29761: { return this->_M_impl._M_header._M_left; } 29761: 29761: _Base_ptr& 29761: _M_rightmost() noexcept 29761: { return this->_M_impl._M_header._M_right; } 29761: 29761: _Const_Base_ptr 29761: _M_rightmost() const noexcept 29761: { return this->_M_impl._M_header._M_right; } 29761: 29761: _Link_type 29761: _M_mbegin() const noexcept 29761: { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } 29761: 29761: _Link_type 29761: _M_begin() noexcept 29761: { return _M_mbegin(); } 29761: 29761: _Const_Link_type 29761: _M_begin() const noexcept 29761: { 29761: return static_cast<_Const_Link_type> 29761: (this->_M_impl._M_header._M_parent); 29761: } 29761: 29761: _Base_ptr 29761: _M_end() noexcept 29761: { return &this->_M_impl._M_header; } 29761: 29761: _Const_Base_ptr 29761: _M_end() const noexcept 29761: { return &this->_M_impl._M_header; } 29761: 29761: static const _Key& 29761: _S_key(_Const_Link_type __x) 29761: { 29761: 29761: 29761: 29761: static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, 29761: "comparison object must be invocable " 29761: "with two arguments of key type"); 29761: 29761: 29761: 29761: if constexpr (__is_invocable<_Compare&, const _Key&, const _Key&>{}) 29761: static_assert( 29761: is_invocable_v, 29761: "comparison object must be invocable as const"); 29761: 29761: 29761: 29761: return _KeyOfValue()(*__x->_M_valptr()); 29761: } 29761: 29761: static _Link_type 29761: _S_left(_Base_ptr __x) noexcept 29761: { return static_cast<_Link_type>(__x->_M_left); } 29761: 29761: static _Const_Link_type 29761: _S_left(_Const_Base_ptr __x) noexcept 29761: { return static_cast<_Const_Link_type>(__x->_M_left); } 29761: 29761: static _Link_type 29761: _S_right(_Base_ptr __x) noexcept 29761: { return static_cast<_Link_type>(__x->_M_right); } 29761: 29761: static _Const_Link_type 29761: _S_right(_Const_Base_ptr __x) noexcept 29761: { return static_cast<_Const_Link_type>(__x->_M_right); } 29761: 29761: static const _Key& 29761: _S_key(_Const_Base_ptr __x) 29761: { return _S_key(static_cast<_Const_Link_type>(__x)); } 29761: 29761: static _Base_ptr 29761: _S_minimum(_Base_ptr __x) noexcept 29761: { return _Rb_tree_node_base::_S_minimum(__x); } 29761: 29761: static _Const_Base_ptr 29761: _S_minimum(_Const_Base_ptr __x) noexcept 29761: { return _Rb_tree_node_base::_S_minimum(__x); } 29761: 29761: static _Base_ptr 29761: _S_maximum(_Base_ptr __x) noexcept 29761: { return _Rb_tree_node_base::_S_maximum(__x); } 29761: 29761: static _Const_Base_ptr 29761: _S_maximum(_Const_Base_ptr __x) noexcept 29761: { return _Rb_tree_node_base::_S_maximum(__x); } 29761: 29761: public: 29761: typedef _Rb_tree_iterator iterator; 29761: typedef _Rb_tree_const_iterator const_iterator; 29761: 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: 29761: 29761: using node_type = _Node_handle<_Key, _Val, _Node_allocator>; 29761: using insert_return_type = _Node_insert_return< 29761: __conditional_t, const_iterator, iterator>, 29761: node_type>; 29761: 29761: 29761: pair<_Base_ptr, _Base_ptr> 29761: _M_get_insert_unique_pos(const key_type& __k); 29761: 29761: pair<_Base_ptr, _Base_ptr> 29761: _M_get_insert_equal_pos(const key_type& __k); 29761: 29761: pair<_Base_ptr, _Base_ptr> 29761: _M_get_insert_hint_unique_pos(const_iterator __pos, 29761: const key_type& __k); 29761: 29761: pair<_Base_ptr, _Base_ptr> 29761: _M_get_insert_hint_equal_pos(const_iterator __pos, 29761: const key_type& __k); 29761: 29761: private: 29761: 29761: template 29761: iterator 29761: _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); 29761: 29761: iterator 29761: _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); 29761: 29761: template 29761: iterator 29761: _M_insert_lower(_Base_ptr __y, _Arg&& __v); 29761: 29761: template 29761: iterator 29761: _M_insert_equal_lower(_Arg&& __x); 29761: 29761: iterator 29761: _M_insert_lower_node(_Base_ptr __p, _Link_type __z); 29761: 29761: iterator 29761: _M_insert_equal_lower_node(_Link_type __z); 29761: # 877 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: enum { __as_lvalue, __as_rvalue }; 29761: 29761: template 29761: _Link_type 29761: _M_copy(_Link_type, _Base_ptr, _NodeGen&); 29761: 29761: template 29761: _Link_type 29761: _M_copy(const _Rb_tree& __x, _NodeGen& __gen) 29761: { 29761: _Link_type __root = 29761: _M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen); 29761: _M_leftmost() = _S_minimum(__root); 29761: _M_rightmost() = _S_maximum(__root); 29761: _M_impl._M_node_count = __x._M_impl._M_node_count; 29761: return __root; 29761: } 29761: 29761: _Link_type 29761: _M_copy(const _Rb_tree& __x) 29761: { 29761: _Alloc_node __an(*this); 29761: return _M_copy<__as_lvalue>(__x, __an); 29761: } 29761: 29761: void 29761: _M_erase(_Link_type __x); 29761: 29761: iterator 29761: _M_lower_bound(_Link_type __x, _Base_ptr __y, 29761: const _Key& __k); 29761: 29761: const_iterator 29761: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29761: const _Key& __k) const; 29761: 29761: iterator 29761: _M_upper_bound(_Link_type __x, _Base_ptr __y, 29761: const _Key& __k); 29761: 29761: const_iterator 29761: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29761: const _Key& __k) const; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: _Rb_tree() = default; 29761: 29761: 29761: _Rb_tree(const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_impl(__comp, _Node_allocator(__a)) { } 29761: 29761: _Rb_tree(const _Rb_tree& __x) 29761: : _M_impl(__x._M_impl) 29761: { 29761: if (__x._M_root() != 0) 29761: _M_root() = _M_copy(__x); 29761: } 29761: 29761: 29761: _Rb_tree(const allocator_type& __a) 29761: : _M_impl(_Node_allocator(__a)) 29761: { } 29761: 29761: _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) 29761: : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) 29761: { 29761: if (__x._M_root() != nullptr) 29761: _M_root() = _M_copy(__x); 29761: } 29761: 29761: _Rb_tree(_Rb_tree&&) = default; 29761: 29761: _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) 29761: : _Rb_tree(std::move(__x), _Node_allocator(__a)) 29761: { } 29761: 29761: private: 29761: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) 29761: noexcept(is_nothrow_default_constructible<_Compare>::value) 29761: : _M_impl(std::move(__x._M_impl), std::move(__a)) 29761: { } 29761: 29761: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) 29761: : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) 29761: { 29761: if (__x._M_root() != nullptr) 29761: _M_move_data(__x, false_type{}); 29761: } 29761: 29761: public: 29761: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) 29761: noexcept( noexcept( 29761: _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), 29761: std::declval())) ) 29761: : _Rb_tree(std::move(__x), std::move(__a), 29761: typename _Alloc_traits::is_always_equal{}) 29761: { } 29761: 29761: 29761: ~_Rb_tree() noexcept 29761: { _M_erase(_M_begin()); } 29761: 29761: _Rb_tree& 29761: operator=(const _Rb_tree& __x); 29761: 29761: 29761: _Compare 29761: key_comp() const 29761: { return _M_impl._M_key_compare; } 29761: 29761: iterator 29761: begin() noexcept 29761: { return iterator(this->_M_impl._M_header._M_left); } 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(this->_M_impl._M_header._M_left); } 29761: 29761: iterator 29761: end() noexcept 29761: { return iterator(&this->_M_impl._M_header); } 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return const_iterator(&this->_M_impl._M_header); } 29761: 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(end()); } 29761: 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(begin()); } 29761: 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_impl._M_node_count == 0; } 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_impl._M_node_count; } 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _Alloc_traits::max_size(_M_get_Node_allocator()); } 29761: 29761: void 29761: swap(_Rb_tree& __t) 29761: noexcept(__is_nothrow_swappable<_Compare>::value); 29761: 29761: 29761: 29761: template 29761: pair 29761: _M_insert_unique(_Arg&& __x); 29761: 29761: template 29761: iterator 29761: _M_insert_equal(_Arg&& __x); 29761: 29761: template 29761: iterator 29761: _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); 29761: 29761: template 29761: iterator 29761: _M_insert_unique_(const_iterator __pos, _Arg&& __x) 29761: { 29761: _Alloc_node __an(*this); 29761: return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); 29761: } 29761: 29761: template 29761: iterator 29761: _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); 29761: 29761: template 29761: iterator 29761: _M_insert_equal_(const_iterator __pos, _Arg&& __x) 29761: { 29761: _Alloc_node __an(*this); 29761: return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); 29761: } 29761: 29761: template 29761: pair 29761: _M_emplace_unique(_Args&&... __args); 29761: 29761: template 29761: iterator 29761: _M_emplace_equal(_Args&&... __args); 29761: 29761: template 29761: iterator 29761: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); 29761: 29761: template 29761: iterator 29761: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); 29761: 29761: template 29761: using __same_value_type 29761: = is_same::value_type>; 29761: 29761: template 29761: __enable_if_t<__same_value_type<_InputIterator>::value> 29761: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 29761: { 29761: _Alloc_node __an(*this); 29761: for (; __first != __last; ++__first) 29761: _M_insert_unique_(end(), *__first, __an); 29761: } 29761: 29761: template 29761: __enable_if_t::value> 29761: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 29761: { 29761: for (; __first != __last; ++__first) 29761: _M_emplace_unique(*__first); 29761: } 29761: 29761: template 29761: __enable_if_t<__same_value_type<_InputIterator>::value> 29761: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 29761: { 29761: _Alloc_node __an(*this); 29761: for (; __first != __last; ++__first) 29761: _M_insert_equal_(end(), *__first, __an); 29761: } 29761: 29761: template 29761: __enable_if_t::value> 29761: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 29761: { 29761: for (; __first != __last; ++__first) 29761: _M_emplace_equal(*__first); 29761: } 29761: # 1176 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: private: 29761: void 29761: _M_erase_aux(const_iterator __position); 29761: 29761: void 29761: _M_erase_aux(const_iterator __first, const_iterator __last); 29761: 29761: public: 29761: 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __position) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__position != end())) std::__glibcxx_assert_fail(); } while (false); 29761: const_iterator __result = __position; 29761: ++__result; 29761: _M_erase_aux(__position); 29761: return __result._M_const_cast(); 29761: } 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(iterator __position) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__position != end())) std::__glibcxx_assert_fail(); } while (false); 29761: iterator __result = __position; 29761: ++__result; 29761: _M_erase_aux(__position); 29761: return __result; 29761: } 29761: # 1225 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: size_type 29761: erase(const key_type& __x); 29761: 29761: 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { 29761: _M_erase_aux(__first, __last); 29761: return __last._M_const_cast(); 29761: } 29761: # 1248 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: void 29761: clear() noexcept 29761: { 29761: _M_erase(_M_begin()); 29761: _M_impl._M_reset(); 29761: } 29761: 29761: 29761: iterator 29761: find(const key_type& __k); 29761: 29761: const_iterator 29761: find(const key_type& __k) const; 29761: 29761: size_type 29761: count(const key_type& __k) const; 29761: 29761: iterator 29761: lower_bound(const key_type& __k) 29761: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 29761: 29761: const_iterator 29761: lower_bound(const key_type& __k) const 29761: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 29761: 29761: iterator 29761: upper_bound(const key_type& __k) 29761: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 29761: 29761: const_iterator 29761: upper_bound(const key_type& __k) const 29761: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 29761: 29761: pair 29761: equal_range(const key_type& __k); 29761: 29761: pair 29761: equal_range(const key_type& __k) const; 29761: 29761: 29761: template> 29761: iterator 29761: _M_find_tr(const _Kt& __k) 29761: { 29761: const _Rb_tree* __const_this = this; 29761: return __const_this->_M_find_tr(__k)._M_const_cast(); 29761: } 29761: 29761: template> 29761: const_iterator 29761: _M_find_tr(const _Kt& __k) const 29761: { 29761: auto __j = _M_lower_bound_tr(__k); 29761: if (__j != end() && _M_impl._M_key_compare(__k, _S_key(__j._M_node))) 29761: __j = end(); 29761: return __j; 29761: } 29761: 29761: template> 29761: size_type 29761: _M_count_tr(const _Kt& __k) const 29761: { 29761: auto __p = _M_equal_range_tr(__k); 29761: return std::distance(__p.first, __p.second); 29761: } 29761: 29761: template> 29761: iterator 29761: _M_lower_bound_tr(const _Kt& __k) 29761: { 29761: const _Rb_tree* __const_this = this; 29761: return __const_this->_M_lower_bound_tr(__k)._M_const_cast(); 29761: } 29761: 29761: template> 29761: const_iterator 29761: _M_lower_bound_tr(const _Kt& __k) const 29761: { 29761: auto __x = _M_begin(); 29761: auto __y = _M_end(); 29761: while (__x != 0) 29761: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29761: { 29761: __y = __x; 29761: __x = _S_left(__x); 29761: } 29761: else 29761: __x = _S_right(__x); 29761: return const_iterator(__y); 29761: } 29761: 29761: template> 29761: iterator 29761: _M_upper_bound_tr(const _Kt& __k) 29761: { 29761: const _Rb_tree* __const_this = this; 29761: return __const_this->_M_upper_bound_tr(__k)._M_const_cast(); 29761: } 29761: 29761: template> 29761: const_iterator 29761: _M_upper_bound_tr(const _Kt& __k) const 29761: { 29761: auto __x = _M_begin(); 29761: auto __y = _M_end(); 29761: while (__x != 0) 29761: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29761: { 29761: __y = __x; 29761: __x = _S_left(__x); 29761: } 29761: else 29761: __x = _S_right(__x); 29761: return const_iterator(__y); 29761: } 29761: 29761: template> 29761: pair 29761: _M_equal_range_tr(const _Kt& __k) 29761: { 29761: const _Rb_tree* __const_this = this; 29761: auto __ret = __const_this->_M_equal_range_tr(__k); 29761: return { __ret.first._M_const_cast(), __ret.second._M_const_cast() }; 29761: } 29761: 29761: template> 29761: pair 29761: _M_equal_range_tr(const _Kt& __k) const 29761: { 29761: auto __low = _M_lower_bound_tr(__k); 29761: auto __high = __low; 29761: auto& __cmp = _M_impl._M_key_compare; 29761: while (__high != end() && !__cmp(__k, _S_key(__high._M_node))) 29761: ++__high; 29761: return { __low, __high }; 29761: } 29761: 29761: 29761: 29761: bool 29761: __rb_verify() const; 29761: 29761: 29761: _Rb_tree& 29761: operator=(_Rb_tree&&) 29761: noexcept(_Alloc_traits::_S_nothrow_move() 29761: && is_nothrow_move_assignable<_Compare>::value); 29761: 29761: template 29761: void 29761: _M_assign_unique(_Iterator, _Iterator); 29761: 29761: template 29761: void 29761: _M_assign_equal(_Iterator, _Iterator); 29761: 29761: private: 29761: 29761: void 29761: _M_move_data(_Rb_tree& __x, true_type) 29761: { _M_impl._M_move_data(__x._M_impl); } 29761: 29761: 29761: 29761: void 29761: _M_move_data(_Rb_tree&, false_type); 29761: 29761: 29761: void 29761: _M_move_assign(_Rb_tree&, true_type); 29761: 29761: 29761: 29761: void 29761: _M_move_assign(_Rb_tree&, false_type); 29761: 29761: 29761: 29761: public: 29761: 29761: insert_return_type 29761: _M_reinsert_node_unique(node_type&& __nh) 29761: { 29761: insert_return_type __ret; 29761: if (__nh.empty()) 29761: __ret.position = end(); 29761: else 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: auto __res = _M_get_insert_unique_pos(__nh._M_key()); 29761: if (__res.second) 29761: { 29761: __ret.position 29761: = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29761: __nh.release(); 29761: __ret.inserted = true; 29761: } 29761: else 29761: { 29761: __ret.node = std::move(__nh); 29761: __ret.position = iterator(__res.first); 29761: __ret.inserted = false; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: iterator 29761: _M_reinsert_node_equal(node_type&& __nh) 29761: { 29761: iterator __ret; 29761: if (__nh.empty()) 29761: __ret = end(); 29761: else 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: auto __res = _M_get_insert_equal_pos(__nh._M_key()); 29761: if (__res.second) 29761: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29761: else 29761: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 29761: __nh.release(); 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: iterator 29761: _M_reinsert_node_hint_unique(const_iterator __hint, node_type&& __nh) 29761: { 29761: iterator __ret; 29761: if (__nh.empty()) 29761: __ret = end(); 29761: else 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: auto __res = _M_get_insert_hint_unique_pos(__hint, __nh._M_key()); 29761: if (__res.second) 29761: { 29761: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29761: __nh.release(); 29761: } 29761: else 29761: __ret = iterator(__res.first); 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: iterator 29761: _M_reinsert_node_hint_equal(const_iterator __hint, node_type&& __nh) 29761: { 29761: iterator __ret; 29761: if (__nh.empty()) 29761: __ret = end(); 29761: else 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: auto __res = _M_get_insert_hint_equal_pos(__hint, __nh._M_key()); 29761: if (__res.second) 29761: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29761: else 29761: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 29761: __nh.release(); 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: auto __ptr = _Rb_tree_rebalance_for_erase( 29761: __pos._M_const_cast()._M_node, _M_impl._M_header); 29761: --_M_impl._M_node_count; 29761: return { static_cast<_Link_type>(__ptr), _M_get_Node_allocator() }; 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __k) 29761: { 29761: node_type __nh; 29761: auto __pos = find(__k); 29761: if (__pos != end()) 29761: __nh = extract(const_iterator(__pos)); 29761: return __nh; 29761: } 29761: 29761: template 29761: using _Compatible_tree 29761: = _Rb_tree<_Key, _Val, _KeyOfValue, _Compare2, _Alloc>; 29761: 29761: template 29761: friend struct _Rb_tree_merge_helper; 29761: 29761: 29761: template 29761: void 29761: _M_merge_unique(_Compatible_tree<_Compare2>& __src) noexcept 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 29761: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 29761: { 29761: auto __pos = __i++; 29761: auto __res = _M_get_insert_unique_pos(_KeyOfValue()(*__pos)); 29761: if (__res.second) 29761: { 29761: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 29761: auto __ptr = _Rb_tree_rebalance_for_erase( 29761: __pos._M_node, __src_impl._M_header); 29761: --__src_impl._M_node_count; 29761: _M_insert_node(__res.first, __res.second, 29761: static_cast<_Link_type>(__ptr)); 29761: } 29761: } 29761: } 29761: 29761: 29761: template 29761: void 29761: _M_merge_equal(_Compatible_tree<_Compare2>& __src) noexcept 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 29761: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 29761: { 29761: auto __pos = __i++; 29761: auto __res = _M_get_insert_equal_pos(_KeyOfValue()(*__pos)); 29761: if (__res.second) 29761: { 29761: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 29761: auto __ptr = _Rb_tree_rebalance_for_erase( 29761: __pos._M_node, __src_impl._M_header); 29761: --__src_impl._M_node_count; 29761: _M_insert_node(__res.first, __res.second, 29761: static_cast<_Link_type>(__ptr)); 29761: } 29761: } 29761: } 29761: 29761: 29761: friend bool 29761: operator==(const _Rb_tree& __x, const _Rb_tree& __y) 29761: { 29761: return __x.size() == __y.size() 29761: && std::equal(__x.begin(), __x.end(), __y.begin()); 29761: } 29761: # 1617 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: friend bool 29761: operator<(const _Rb_tree& __x, const _Rb_tree& __y) 29761: { 29761: return std::lexicographical_compare(__x.begin(), __x.end(), 29761: __y.begin(), __y.end()); 29761: } 29761: 29761: 29761: private: 29761: 29761: 29761: struct _Auto_node 29761: { 29761: template 29761: _Auto_node(_Rb_tree& __t, _Args&&... __args) 29761: : _M_t(__t), 29761: _M_node(__t._M_create_node(std::forward<_Args>(__args)...)) 29761: { } 29761: 29761: ~_Auto_node() 29761: { 29761: if (_M_node) 29761: _M_t._M_drop_node(_M_node); 29761: } 29761: 29761: _Auto_node(_Auto_node&& __n) 29761: : _M_t(__n._M_t), _M_node(__n._M_node) 29761: { __n._M_node = nullptr; } 29761: 29761: const _Key& 29761: _M_key() const 29761: { return _S_key(_M_node); } 29761: 29761: iterator 29761: _M_insert(pair<_Base_ptr, _Base_ptr> __p) 29761: { 29761: auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node); 29761: _M_node = nullptr; 29761: return __it; 29761: } 29761: 29761: iterator 29761: _M_insert_equal_lower() 29761: { 29761: auto __it = _M_t._M_insert_equal_lower_node(_M_node); 29761: _M_node = nullptr; 29761: return __it; 29761: } 29761: 29761: _Rb_tree& _M_t; 29761: _Link_type _M_node; 29761: }; 29761: 29761: }; 29761: 29761: template 29761: inline void 29761: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_move_data(_Rb_tree& __x, false_type) 29761: { 29761: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 29761: _M_move_data(__x, true_type()); 29761: else 29761: { 29761: constexpr bool __move = !__move_if_noexcept_cond::value; 29761: _Alloc_node __an(*this); 29761: _M_root() = _M_copy<__move>(__x, __an); 29761: if constexpr (__move) 29761: __x.clear(); 29761: } 29761: } 29761: 29761: template 29761: inline void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_move_assign(_Rb_tree& __x, true_type) 29761: { 29761: clear(); 29761: if (__x._M_root() != nullptr) 29761: _M_move_data(__x, true_type()); 29761: std::__alloc_on_move(_M_get_Node_allocator(), 29761: __x._M_get_Node_allocator()); 29761: } 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_move_assign(_Rb_tree& __x, false_type) 29761: { 29761: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 29761: return _M_move_assign(__x, true_type{}); 29761: 29761: 29761: 29761: _Reuse_or_alloc_node __roan(*this); 29761: _M_impl._M_reset(); 29761: if (__x._M_root() != nullptr) 29761: { 29761: _M_root() = _M_copy<__as_rvalue>(__x, __roan); 29761: __x.clear(); 29761: } 29761: } 29761: 29761: template 29761: inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: operator=(_Rb_tree&& __x) 29761: noexcept(_Alloc_traits::_S_nothrow_move() 29761: && is_nothrow_move_assignable<_Compare>::value) 29761: { 29761: _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); 29761: _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); 29761: return *this; 29761: } 29761: 29761: template 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_assign_unique(_Iterator __first, _Iterator __last) 29761: { 29761: _Reuse_or_alloc_node __roan(*this); 29761: _M_impl._M_reset(); 29761: for (; __first != __last; ++__first) 29761: _M_insert_unique_(end(), *__first, __roan); 29761: } 29761: 29761: template 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_assign_equal(_Iterator __first, _Iterator __last) 29761: { 29761: _Reuse_or_alloc_node __roan(*this); 29761: _M_impl._M_reset(); 29761: for (; __first != __last; ++__first) 29761: _M_insert_equal_(end(), *__first, __roan); 29761: } 29761: 29761: 29761: template 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: operator=(const _Rb_tree& __x) 29761: { 29761: if (this != std::__addressof(__x)) 29761: { 29761: 29761: 29761: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: auto& __this_alloc = this->_M_get_Node_allocator(); 29761: auto& __that_alloc = __x._M_get_Node_allocator(); 29761: if (!_Alloc_traits::_S_always_equal() 29761: && __this_alloc != __that_alloc) 29761: { 29761: 29761: 29761: clear(); 29761: std::__alloc_on_copy(__this_alloc, __that_alloc); 29761: } 29761: } 29761: 29761: 29761: _Reuse_or_alloc_node __roan(*this); 29761: _M_impl._M_reset(); 29761: _M_impl._M_key_compare = __x._M_impl._M_key_compare; 29761: if (__x._M_root() != 0) 29761: _M_root() = _M_copy<__as_lvalue>(__x, __roan); 29761: } 29761: 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_(_Base_ptr __x, _Base_ptr __p, 29761: 29761: _Arg&& __v, 29761: 29761: 29761: 29761: _NodeGen& __node_gen) 29761: { 29761: bool __insert_left = (__x != 0 || __p == _M_end() 29761: || _M_impl._M_key_compare(_KeyOfValue()(__v), 29761: _S_key(__p))); 29761: 29761: _Link_type __z = __node_gen(std::forward<_Arg>(__v)); 29761: 29761: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29761: this->_M_impl._M_header); 29761: ++_M_impl._M_node_count; 29761: return iterator(__z); 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: 29761: _M_insert_lower(_Base_ptr __p, _Arg&& __v) 29761: 29761: 29761: 29761: { 29761: bool __insert_left = (__p == _M_end() 29761: || !_M_impl._M_key_compare(_S_key(__p), 29761: _KeyOfValue()(__v))); 29761: 29761: _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); 29761: 29761: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29761: this->_M_impl._M_header); 29761: ++_M_impl._M_node_count; 29761: return iterator(__z); 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: 29761: _M_insert_equal_lower(_Arg&& __v) 29761: 29761: 29761: 29761: { 29761: _Link_type __x = _M_begin(); 29761: _Base_ptr __y = _M_end(); 29761: while (__x != 0) 29761: { 29761: __y = __x; 29761: __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? 29761: _S_left(__x) : _S_right(__x); 29761: } 29761: return _M_insert_lower(__y, std::forward<_Arg>(__v)); 29761: } 29761: 29761: template 29761: template 29761: typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type 29761: _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: 29761: _M_copy(_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) 29761: { 29761: 29761: _Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen); 29761: __top->_M_parent = __p; 29761: 29761: try 29761: { 29761: if (__x->_M_right) 29761: __top->_M_right = 29761: _M_copy<_MoveValues>(_S_right(__x), __top, __node_gen); 29761: __p = __top; 29761: __x = _S_left(__x); 29761: 29761: while (__x != 0) 29761: { 29761: _Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen); 29761: __p->_M_left = __y; 29761: __y->_M_parent = __p; 29761: if (__x->_M_right) 29761: __y->_M_right = _M_copy<_MoveValues>(_S_right(__x), 29761: __y, __node_gen); 29761: __p = __y; 29761: __x = _S_left(__x); 29761: } 29761: } 29761: catch(...) 29761: { 29761: _M_erase(__top); 29761: throw; 29761: } 29761: return __top; 29761: } 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_erase(_Link_type __x) 29761: { 29761: 29761: while (__x != 0) 29761: { 29761: _M_erase(_S_right(__x)); 29761: _Link_type __y = _S_left(__x); 29761: _M_drop_node(__x); 29761: __x = __y; 29761: } 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_lower_bound(_Link_type __x, _Base_ptr __y, 29761: const _Key& __k) 29761: { 29761: while (__x != 0) 29761: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: __x = _S_right(__x); 29761: return iterator(__y); 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::const_iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29761: const _Key& __k) const 29761: { 29761: while (__x != 0) 29761: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: __x = _S_right(__x); 29761: return const_iterator(__y); 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_upper_bound(_Link_type __x, _Base_ptr __y, 29761: const _Key& __k) 29761: { 29761: while (__x != 0) 29761: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: __x = _S_right(__x); 29761: return iterator(__y); 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::const_iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29761: const _Key& __k) const 29761: { 29761: while (__x != 0) 29761: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: __x = _S_right(__x); 29761: return const_iterator(__y); 29761: } 29761: 29761: template 29761: pair::iterator, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::iterator> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: equal_range(const _Key& __k) 29761: { 29761: _Link_type __x = _M_begin(); 29761: _Base_ptr __y = _M_end(); 29761: while (__x != 0) 29761: { 29761: if (_M_impl._M_key_compare(_S_key(__x), __k)) 29761: __x = _S_right(__x); 29761: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: { 29761: _Link_type __xu(__x); 29761: _Base_ptr __yu(__y); 29761: __y = __x, __x = _S_left(__x); 29761: __xu = _S_right(__xu); 29761: return pair(_M_lower_bound(__x, __y, __k), 29761: _M_upper_bound(__xu, __yu, __k)); 29761: } 29761: } 29761: return pair(iterator(__y), 29761: iterator(__y)); 29761: } 29761: 29761: template 29761: pair::const_iterator, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::const_iterator> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: equal_range(const _Key& __k) const 29761: { 29761: _Const_Link_type __x = _M_begin(); 29761: _Const_Base_ptr __y = _M_end(); 29761: while (__x != 0) 29761: { 29761: if (_M_impl._M_key_compare(_S_key(__x), __k)) 29761: __x = _S_right(__x); 29761: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: { 29761: _Const_Link_type __xu(__x); 29761: _Const_Base_ptr __yu(__y); 29761: __y = __x, __x = _S_left(__x); 29761: __xu = _S_right(__xu); 29761: return pair(_M_lower_bound(__x, __y, __k), 29761: _M_upper_bound(__xu, __yu, __k)); 29761: } 29761: } 29761: return pair(const_iterator(__y), 29761: const_iterator(__y)); 29761: } 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: swap(_Rb_tree& __t) 29761: noexcept(__is_nothrow_swappable<_Compare>::value) 29761: { 29761: if (_M_root() == 0) 29761: { 29761: if (__t._M_root() != 0) 29761: _M_impl._M_move_data(__t._M_impl); 29761: } 29761: else if (__t._M_root() == 0) 29761: __t._M_impl._M_move_data(_M_impl); 29761: else 29761: { 29761: std::swap(_M_root(),__t._M_root()); 29761: std::swap(_M_leftmost(),__t._M_leftmost()); 29761: std::swap(_M_rightmost(),__t._M_rightmost()); 29761: 29761: _M_root()->_M_parent = _M_end(); 29761: __t._M_root()->_M_parent = __t._M_end(); 29761: std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); 29761: } 29761: 29761: std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); 29761: 29761: _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), 29761: __t._M_get_Node_allocator()); 29761: } 29761: 29761: template 29761: pair::_Base_ptr, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::_Base_ptr> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_get_insert_unique_pos(const key_type& __k) 29761: { 29761: typedef pair<_Base_ptr, _Base_ptr> _Res; 29761: _Link_type __x = _M_begin(); 29761: _Base_ptr __y = _M_end(); 29761: bool __comp = true; 29761: while (__x != 0) 29761: { 29761: __y = __x; 29761: __comp = _M_impl._M_key_compare(__k, _S_key(__x)); 29761: __x = __comp ? _S_left(__x) : _S_right(__x); 29761: } 29761: iterator __j = iterator(__y); 29761: if (__comp) 29761: { 29761: if (__j == begin()) 29761: return _Res(__x, __y); 29761: else 29761: --__j; 29761: } 29761: if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) 29761: return _Res(__x, __y); 29761: return _Res(__j._M_node, 0); 29761: } 29761: 29761: template 29761: pair::_Base_ptr, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::_Base_ptr> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_get_insert_equal_pos(const key_type& __k) 29761: { 29761: typedef pair<_Base_ptr, _Base_ptr> _Res; 29761: _Link_type __x = _M_begin(); 29761: _Base_ptr __y = _M_end(); 29761: while (__x != 0) 29761: { 29761: __y = __x; 29761: __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? 29761: _S_left(__x) : _S_right(__x); 29761: } 29761: return _Res(__x, __y); 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: pair::iterator, bool> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: 29761: _M_insert_unique(_Arg&& __v) 29761: 29761: 29761: 29761: { 29761: typedef pair _Res; 29761: pair<_Base_ptr, _Base_ptr> __res 29761: = _M_get_insert_unique_pos(_KeyOfValue()(__v)); 29761: 29761: if (__res.second) 29761: { 29761: _Alloc_node __an(*this); 29761: return _Res(_M_insert_(__res.first, __res.second, 29761: std::forward<_Arg>(__v), __an), 29761: true); 29761: } 29761: 29761: return _Res(iterator(__res.first), false); 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: 29761: _M_insert_equal(_Arg&& __v) 29761: 29761: 29761: 29761: { 29761: pair<_Base_ptr, _Base_ptr> __res 29761: = _M_get_insert_equal_pos(_KeyOfValue()(__v)); 29761: _Alloc_node __an(*this); 29761: return _M_insert_(__res.first, __res.second, 29761: std::forward<_Arg>(__v), __an); 29761: } 29761: 29761: template 29761: pair::_Base_ptr, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::_Base_ptr> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_get_insert_hint_unique_pos(const_iterator __position, 29761: const key_type& __k) 29761: { 29761: iterator __pos = __position._M_const_cast(); 29761: typedef pair<_Base_ptr, _Base_ptr> _Res; 29761: 29761: 29761: if (__pos._M_node == _M_end()) 29761: { 29761: if (size() > 0 29761: && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) 29761: return _Res(0, _M_rightmost()); 29761: else 29761: return _M_get_insert_unique_pos(__k); 29761: } 29761: else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) 29761: { 29761: 29761: iterator __before = __pos; 29761: if (__pos._M_node == _M_leftmost()) 29761: return _Res(_M_leftmost(), _M_leftmost()); 29761: else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) 29761: { 29761: if (_S_right(__before._M_node) == 0) 29761: return _Res(0, __before._M_node); 29761: else 29761: return _Res(__pos._M_node, __pos._M_node); 29761: } 29761: else 29761: return _M_get_insert_unique_pos(__k); 29761: } 29761: else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 29761: { 29761: 29761: iterator __after = __pos; 29761: if (__pos._M_node == _M_rightmost()) 29761: return _Res(0, _M_rightmost()); 29761: else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) 29761: { 29761: if (_S_right(__pos._M_node) == 0) 29761: return _Res(0, __pos._M_node); 29761: else 29761: return _Res(__after._M_node, __after._M_node); 29761: } 29761: else 29761: return _M_get_insert_unique_pos(__k); 29761: } 29761: else 29761: 29761: return _Res(__pos._M_node, 0); 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_unique_(const_iterator __position, 29761: 29761: _Arg&& __v, 29761: 29761: 29761: 29761: _NodeGen& __node_gen) 29761: { 29761: pair<_Base_ptr, _Base_ptr> __res 29761: = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); 29761: 29761: if (__res.second) 29761: return _M_insert_(__res.first, __res.second, 29761: std::forward<_Arg>(__v), 29761: __node_gen); 29761: return iterator(__res.first); 29761: } 29761: 29761: template 29761: pair::_Base_ptr, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::_Base_ptr> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) 29761: { 29761: iterator __pos = __position._M_const_cast(); 29761: typedef pair<_Base_ptr, _Base_ptr> _Res; 29761: 29761: 29761: if (__pos._M_node == _M_end()) 29761: { 29761: if (size() > 0 29761: && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) 29761: return _Res(0, _M_rightmost()); 29761: else 29761: return _M_get_insert_equal_pos(__k); 29761: } 29761: else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 29761: { 29761: 29761: iterator __before = __pos; 29761: if (__pos._M_node == _M_leftmost()) 29761: return _Res(_M_leftmost(), _M_leftmost()); 29761: else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) 29761: { 29761: if (_S_right(__before._M_node) == 0) 29761: return _Res(0, __before._M_node); 29761: else 29761: return _Res(__pos._M_node, __pos._M_node); 29761: } 29761: else 29761: return _M_get_insert_equal_pos(__k); 29761: } 29761: else 29761: { 29761: 29761: iterator __after = __pos; 29761: if (__pos._M_node == _M_rightmost()) 29761: return _Res(0, _M_rightmost()); 29761: else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) 29761: { 29761: if (_S_right(__pos._M_node) == 0) 29761: return _Res(0, __pos._M_node); 29761: else 29761: return _Res(__after._M_node, __after._M_node); 29761: } 29761: else 29761: return _Res(0, 0); 29761: } 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_equal_(const_iterator __position, 29761: 29761: _Arg&& __v, 29761: 29761: 29761: 29761: _NodeGen& __node_gen) 29761: { 29761: pair<_Base_ptr, _Base_ptr> __res 29761: = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); 29761: 29761: if (__res.second) 29761: return _M_insert_(__res.first, __res.second, 29761: std::forward<_Arg>(__v), 29761: __node_gen); 29761: 29761: return _M_insert_equal_lower(std::forward<_Arg>(__v)); 29761: } 29761: 29761: 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) 29761: -> iterator 29761: { 29761: bool __insert_left = (__x != 0 || __p == _M_end() 29761: || _M_impl._M_key_compare(_S_key(__z), 29761: _S_key(__p))); 29761: 29761: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29761: this->_M_impl._M_header); 29761: ++_M_impl._M_node_count; 29761: return iterator(__z); 29761: } 29761: 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) 29761: -> iterator 29761: { 29761: bool __insert_left = (__p == _M_end() 29761: || !_M_impl._M_key_compare(_S_key(__p), 29761: _S_key(__z))); 29761: 29761: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29761: this->_M_impl._M_header); 29761: ++_M_impl._M_node_count; 29761: return iterator(__z); 29761: } 29761: 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_equal_lower_node(_Link_type __z) 29761: -> iterator 29761: { 29761: _Link_type __x = _M_begin(); 29761: _Base_ptr __y = _M_end(); 29761: while (__x != 0) 29761: { 29761: __y = __x; 29761: __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? 29761: _S_left(__x) : _S_right(__x); 29761: } 29761: return _M_insert_lower_node(__y, __z); 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_emplace_unique(_Args&&... __args) 29761: -> pair 29761: { 29761: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29761: auto __res = _M_get_insert_unique_pos(__z._M_key()); 29761: if (__res.second) 29761: return {__z._M_insert(__res), true}; 29761: return {iterator(__res.first), false}; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_emplace_equal(_Args&&... __args) 29761: -> iterator 29761: { 29761: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29761: auto __res = _M_get_insert_equal_pos(__z._M_key()); 29761: return __z._M_insert(__res); 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) 29761: -> iterator 29761: { 29761: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29761: auto __res = _M_get_insert_hint_unique_pos(__pos, __z._M_key()); 29761: if (__res.second) 29761: return __z._M_insert(__res); 29761: return iterator(__res.first); 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) 29761: -> iterator 29761: { 29761: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29761: auto __res = _M_get_insert_hint_equal_pos(__pos, __z._M_key()); 29761: if (__res.second) 29761: return __z._M_insert(__res); 29761: return __z._M_insert_equal_lower(); 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_erase_aux(const_iterator __position) 29761: { 29761: _Link_type __y = 29761: static_cast<_Link_type>(_Rb_tree_rebalance_for_erase 29761: (const_cast<_Base_ptr>(__position._M_node), 29761: this->_M_impl._M_header)); 29761: _M_drop_node(__y); 29761: --_M_impl._M_node_count; 29761: } 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_erase_aux(const_iterator __first, const_iterator __last) 29761: { 29761: if (__first == begin() && __last == end()) 29761: clear(); 29761: else 29761: while (__first != __last) 29761: _M_erase_aux(__first++); 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: erase(const _Key& __x) 29761: { 29761: pair __p = equal_range(__x); 29761: const size_type __old_size = size(); 29761: _M_erase_aux(__p.first, __p.second); 29761: return __old_size - size(); 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: find(const _Key& __k) 29761: { 29761: iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 29761: return (__j == end() 29761: || _M_impl._M_key_compare(__k, 29761: _S_key(__j._M_node))) ? end() : __j; 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::const_iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: find(const _Key& __k) const 29761: { 29761: const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 29761: return (__j == end() 29761: || _M_impl._M_key_compare(__k, 29761: _S_key(__j._M_node))) ? end() : __j; 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: count(const _Key& __k) const 29761: { 29761: pair __p = equal_range(__k); 29761: const size_type __n = std::distance(__p.first, __p.second); 29761: return __n; 29761: } 29761: 29761: __attribute__ ((__pure__)) unsigned int 29761: _Rb_tree_black_count(const _Rb_tree_node_base* __node, 29761: const _Rb_tree_node_base* __root) throw (); 29761: 29761: template 29761: bool 29761: _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const 29761: { 29761: if (_M_impl._M_node_count == 0 || begin() == end()) 29761: return _M_impl._M_node_count == 0 && begin() == end() 29761: && this->_M_impl._M_header._M_left == _M_end() 29761: && this->_M_impl._M_header._M_right == _M_end(); 29761: 29761: unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); 29761: for (const_iterator __it = begin(); __it != end(); ++__it) 29761: { 29761: _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); 29761: _Const_Link_type __L = _S_left(__x); 29761: _Const_Link_type __R = _S_right(__x); 29761: 29761: if (__x->_M_color == _S_red) 29761: if ((__L && __L->_M_color == _S_red) 29761: || (__R && __R->_M_color == _S_red)) 29761: return false; 29761: 29761: if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) 29761: return false; 29761: if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) 29761: return false; 29761: 29761: if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) 29761: return false; 29761: } 29761: 29761: if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) 29761: return false; 29761: if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) 29761: return false; 29761: return true; 29761: } 29761: 29761: 29761: 29761: template 29761: struct _Rb_tree_merge_helper<_Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>, 29761: _Cmp2> 29761: { 29761: private: 29761: friend class _Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_impl(_Rb_tree<_Key, _Val, _Sel, _Cmp2, _Alloc>& __tree) 29761: { return __tree._M_impl; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 63 "/usr/include/c++/14/map" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_map.h" 1 3 29761: # 66 "/usr/include/c++/14/bits/stl_map.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class multimap; 29761: # 100 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template , 29761: typename _Alloc = std::allocator > > 29761: class map 29761: { 29761: public: 29761: typedef _Key key_type; 29761: typedef _Tp mapped_type; 29761: typedef std::pair value_type; 29761: typedef _Compare key_compare; 29761: typedef _Alloc allocator_type; 29761: 29761: private: 29761: # 130 "/usr/include/c++/14/bits/stl_map.h" 3 29761: public: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: class value_compare 29761: : public std::binary_function 29761: { 29761: friend class map<_Key, _Tp, _Compare, _Alloc>; 29761: protected: 29761: _Compare comp; 29761: 29761: value_compare(_Compare __c) 29761: : comp(__c) { } 29761: 29761: public: 29761: bool operator()(const value_type& __x, const value_type& __y) const 29761: { return comp(__x.first, __y.first); } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: private: 29761: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind::other _Pair_alloc_type; 29761: 29761: typedef _Rb_tree, 29761: key_compare, _Pair_alloc_type> _Rep_type; 29761: 29761: 29761: _Rep_type _M_t; 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 29761: 29761: 29761: template> 29761: static constexpr bool __usable_key 29761: = __or_v, 29761: __and_, is_scalar<_Key>>>; 29761: 29761: 29761: public: 29761: 29761: 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: typedef typename _Rep_type::iterator iterator; 29761: typedef typename _Rep_type::const_iterator const_iterator; 29761: typedef typename _Rep_type::size_type size_type; 29761: typedef typename _Rep_type::difference_type difference_type; 29761: typedef typename _Rep_type::reverse_iterator reverse_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29761: 29761: 29761: using node_type = typename _Rep_type::node_type; 29761: using insert_return_type = typename _Rep_type::insert_return_type; 29761: # 197 "/usr/include/c++/14/bits/stl_map.h" 3 29761: map() = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: map(const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) { } 29761: # 219 "/usr/include/c++/14/bits/stl_map.h" 3 29761: map(const map&) = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: map(map&&) = default; 29761: # 240 "/usr/include/c++/14/bits/stl_map.h" 3 29761: map(initializer_list __l, 29761: const _Compare& __comp = _Compare(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29761: 29761: 29761: explicit 29761: map(const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) { } 29761: 29761: 29761: map(const map& __m, const __type_identity_t& __a) 29761: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 29761: 29761: 29761: map(map&& __m, const __type_identity_t& __a) 29761: noexcept(is_nothrow_copy_constructible<_Compare>::value 29761: && _Alloc_traits::_S_always_equal()) 29761: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 29761: 29761: 29761: map(initializer_list __l, const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29761: 29761: 29761: template 29761: map(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 284 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: map(_InputIterator __first, _InputIterator __last) 29761: : _M_t() 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 301 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: map(_InputIterator __first, _InputIterator __last, 29761: const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~map() = default; 29761: # 330 "/usr/include/c++/14/bits/stl_map.h" 3 29761: map& 29761: operator=(const map&) = default; 29761: 29761: 29761: map& 29761: operator=(map&&) = default; 29761: # 348 "/usr/include/c++/14/bits/stl_map.h" 3 29761: map& 29761: operator=(initializer_list __l) 29761: { 29761: _M_t._M_assign_unique(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_t.get_allocator()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rend() noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_t.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_t.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_t.max_size(); } 29761: # 503 "/usr/include/c++/14/bits/stl_map.h" 3 29761: mapped_type& 29761: operator[](const key_type& __k) 29761: { 29761: 29761: 29761: 29761: iterator __i = lower_bound(__k); 29761: 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: 29761: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 29761: std::tuple(__k), 29761: std::tuple<>()); 29761: 29761: 29761: 29761: return (*__i).second; 29761: } 29761: 29761: 29761: mapped_type& 29761: operator[](key_type&& __k) 29761: { 29761: 29761: 29761: 29761: iterator __i = lower_bound(__k); 29761: 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::tuple<>()); 29761: return (*__i).second; 29761: } 29761: # 548 "/usr/include/c++/14/bits/stl_map.h" 3 29761: mapped_type& 29761: at(const key_type& __k) 29761: { 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: __throw_out_of_range(("map::at")); 29761: return (*__i).second; 29761: } 29761: 29761: const mapped_type& 29761: at(const key_type& __k) const 29761: { 29761: const_iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: __throw_out_of_range(("map::at")); 29761: return (*__i).second; 29761: } 29761: # 586 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: std::pair 29761: emplace(_Args&&... __args) 29761: { 29761: 29761: if constexpr (sizeof...(_Args) == 2) 29761: if constexpr (is_same_v>) 29761: { 29761: auto&& [__a, __v] = pair<_Args&...>(__args...); 29761: if constexpr (__usable_key) 29761: { 29761: const key_type& __k = __a; 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::forward<_Args>(__args)...); 29761: return {__i, true}; 29761: } 29761: return {__i, false}; 29761: } 29761: } 29761: 29761: return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); 29761: } 29761: # 636 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { 29761: return _M_t._M_emplace_hint_unique(__pos, 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_t.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __x) 29761: { return _M_t.extract(__x); } 29761: 29761: 29761: insert_return_type 29761: insert(node_type&& __nh) 29761: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 29761: 29761: template 29761: friend struct std::_Rb_tree_merge_helper; 29761: 29761: template 29761: void 29761: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29761: { merge(__source); } 29761: # 720 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: pair 29761: try_emplace(const key_type& __k, _Args&&... __args) 29761: { 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::piecewise_construct, 29761: std::forward_as_tuple(__k), 29761: std::forward_as_tuple( 29761: std::forward<_Args>(__args)...)); 29761: return {__i, true}; 29761: } 29761: return {__i, false}; 29761: } 29761: 29761: 29761: template 29761: pair 29761: try_emplace(key_type&& __k, _Args&&... __args) 29761: { 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::forward_as_tuple( 29761: std::forward<_Args>(__args)...)); 29761: return {__i, true}; 29761: } 29761: return {__i, false}; 29761: } 29761: # 780 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: iterator 29761: try_emplace(const_iterator __hint, const key_type& __k, 29761: _Args&&... __args) 29761: { 29761: iterator __i; 29761: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29761: if (__true_hint.second) 29761: __i = emplace_hint(iterator(__true_hint.second), 29761: std::piecewise_construct, 29761: std::forward_as_tuple(__k), 29761: std::forward_as_tuple( 29761: std::forward<_Args>(__args)...)); 29761: else 29761: __i = iterator(__true_hint.first); 29761: return __i; 29761: } 29761: 29761: 29761: template 29761: iterator 29761: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 29761: { 29761: iterator __i; 29761: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29761: if (__true_hint.second) 29761: __i = emplace_hint(iterator(__true_hint.second), 29761: std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::forward_as_tuple( 29761: std::forward<_Args>(__args)...)); 29761: else 29761: __i = iterator(__true_hint.first); 29761: return __i; 29761: } 29761: # 833 "/usr/include/c++/14/bits/stl_map.h" 3 29761: std::pair 29761: insert(const value_type& __x) 29761: { return _M_t._M_insert_unique(__x); } 29761: 29761: 29761: 29761: 29761: std::pair 29761: insert(value_type&& __x) 29761: { return _M_t._M_insert_unique(std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, 29761: pair> 29761: insert(_Pair&& __x) 29761: { 29761: 29761: using _P2 = remove_reference_t<_Pair>; 29761: if constexpr (__is_pair>) 29761: if constexpr (is_same_v>) 29761: if constexpr (__usable_key) 29761: { 29761: const key_type& __k = __x.first; 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::forward<_Pair>(__x)); 29761: return {__i, true}; 29761: } 29761: return {__i, false}; 29761: } 29761: 29761: return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); 29761: } 29761: # 878 "/usr/include/c++/14/bits/stl_map.h" 3 29761: void 29761: insert(std::initializer_list __list) 29761: { insert(__list.begin(), __list.end()); } 29761: # 907 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: 29761: insert(const_iterator __position, const value_type& __x) 29761: 29761: 29761: 29761: { return _M_t._M_insert_unique_(__position, __x); } 29761: 29761: 29761: 29761: 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(const_iterator __position, _Pair&& __x) 29761: { 29761: return _M_t._M_emplace_hint_unique(__position, 29761: std::forward<_Pair>(__x)); 29761: } 29761: # 940 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 965 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: pair 29761: insert_or_assign(const key_type& __k, _Obj&& __obj) 29761: { 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::piecewise_construct, 29761: std::forward_as_tuple(__k), 29761: std::forward_as_tuple( 29761: std::forward<_Obj>(__obj))); 29761: return {__i, true}; 29761: } 29761: (*__i).second = std::forward<_Obj>(__obj); 29761: return {__i, false}; 29761: } 29761: 29761: 29761: template 29761: pair 29761: insert_or_assign(key_type&& __k, _Obj&& __obj) 29761: { 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::forward_as_tuple( 29761: std::forward<_Obj>(__obj))); 29761: return {__i, true}; 29761: } 29761: (*__i).second = std::forward<_Obj>(__obj); 29761: return {__i, false}; 29761: } 29761: # 1020 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: iterator 29761: insert_or_assign(const_iterator __hint, 29761: const key_type& __k, _Obj&& __obj) 29761: { 29761: iterator __i; 29761: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29761: if (__true_hint.second) 29761: { 29761: return emplace_hint(iterator(__true_hint.second), 29761: std::piecewise_construct, 29761: std::forward_as_tuple(__k), 29761: std::forward_as_tuple( 29761: std::forward<_Obj>(__obj))); 29761: } 29761: __i = iterator(__true_hint.first); 29761: (*__i).second = std::forward<_Obj>(__obj); 29761: return __i; 29761: } 29761: 29761: 29761: template 29761: iterator 29761: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 29761: { 29761: iterator __i; 29761: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29761: if (__true_hint.second) 29761: { 29761: return emplace_hint(iterator(__true_hint.second), 29761: std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::forward_as_tuple( 29761: std::forward<_Obj>(__obj))); 29761: } 29761: __i = iterator(__true_hint.first); 29761: (*__i).second = std::forward<_Obj>(__obj); 29761: return __i; 29761: } 29761: # 1079 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_t.erase(__position); } 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(iterator __position) 29761: { return _M_t.erase(__position); } 29761: # 1116 "/usr/include/c++/14/bits/stl_map.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_t.erase(__x); } 29761: # 1136 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_t.erase(__first, __last); } 29761: # 1170 "/usr/include/c++/14/bits/stl_map.h" 3 29761: void 29761: swap(map& __x) 29761: noexcept(__is_nothrow_swappable<_Compare>::value) 29761: { _M_t.swap(__x._M_t); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_t.clear(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: key_compare 29761: key_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: 29761: 29761: 29761: 29761: value_compare 29761: value_comp() const 29761: { return value_compare(_M_t.key_comp()); } 29761: # 1217 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 29761: { return _M_t._M_find_tr(__x); } 29761: # 1242 "/usr/include/c++/14/bits/stl_map.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 29761: { return _M_t._M_find_tr(__x); } 29761: # 1263 "/usr/include/c++/14/bits/stl_map.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 29761: 29761: 29761: template 29761: auto 29761: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29761: { return _M_t._M_count_tr(__x); } 29761: # 1306 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: lower_bound(const key_type& __x) 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 1331 "/usr/include/c++/14/bits/stl_map.h" 3 29761: const_iterator 29761: lower_bound(const key_type& __x) const 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) const 29761: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 1351 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: upper_bound(const key_type& __x) 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 1371 "/usr/include/c++/14/bits/stl_map.h" 3 29761: const_iterator 29761: upper_bound(const key_type& __x) const 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) const 29761: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 1400 "/usr/include/c++/14/bits/stl_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: # 1429 "/usr/include/c++/14/bits/stl_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) const 29761: -> decltype(pair( 29761: _M_t._M_equal_range_tr(__x))) 29761: { 29761: return pair( 29761: _M_t._M_equal_range_tr(__x)); 29761: } 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator==(const map<_K1, _T1, _C1, _A1>&, 29761: const map<_K1, _T1, _C1, _A1>&); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator<(const map<_K1, _T1, _C1, _A1>&, 29761: const map<_K1, _T1, _C1, _A1>&); 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: template>, 29761: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: map(_InputIterator, _InputIterator, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29761: _Compare, _Allocator>; 29761: 29761: template, 29761: typename _Allocator = allocator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: map(initializer_list>, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> map<_Key, _Tp, _Compare, _Allocator>; 29761: 29761: template , 29761: typename = _RequireAllocator<_Allocator>> 29761: map(_InputIterator, _InputIterator, _Allocator) 29761: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29761: less<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template> 29761: map(initializer_list>, _Allocator) 29761: -> map<_Key, _Tp, less<_Key>, _Allocator>; 29761: # 1510 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: inline bool 29761: operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __x._M_t == __y._M_t; } 29761: # 1548 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: inline bool 29761: operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __x._M_t < __y._M_t; } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: inline bool 29761: operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: _Rb_tree_merge_helper, 29761: _Cmp2> 29761: { 29761: private: 29761: friend class std::map<_Key, _Val, _Cmp1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 29761: { return __map._M_t; } 29761: 29761: static auto& 29761: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 29761: { return __map._M_t; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 64 "/usr/include/c++/14/map" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_multimap.h" 1 3 29761: # 64 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class map; 29761: # 98 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template , 29761: typename _Alloc = std::allocator > > 29761: class multimap 29761: { 29761: public: 29761: typedef _Key key_type; 29761: typedef _Tp mapped_type; 29761: typedef std::pair value_type; 29761: typedef _Compare key_compare; 29761: typedef _Alloc allocator_type; 29761: 29761: private: 29761: # 129 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: public: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: class value_compare 29761: : public std::binary_function 29761: { 29761: friend class multimap<_Key, _Tp, _Compare, _Alloc>; 29761: protected: 29761: _Compare comp; 29761: 29761: value_compare(_Compare __c) 29761: : comp(__c) { } 29761: 29761: public: 29761: bool operator()(const value_type& __x, const value_type& __y) const 29761: { return comp(__x.first, __y.first); } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: private: 29761: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind::other _Pair_alloc_type; 29761: 29761: typedef _Rb_tree, 29761: key_compare, _Pair_alloc_type> _Rep_type; 29761: 29761: _Rep_type _M_t; 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 29761: 29761: public: 29761: 29761: 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: typedef typename _Rep_type::iterator iterator; 29761: typedef typename _Rep_type::const_iterator const_iterator; 29761: typedef typename _Rep_type::size_type size_type; 29761: typedef typename _Rep_type::difference_type difference_type; 29761: typedef typename _Rep_type::reverse_iterator reverse_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29761: 29761: 29761: using node_type = typename _Rep_type::node_type; 29761: # 187 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap() = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: multimap(const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) { } 29761: # 209 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap(const multimap&) = default; 29761: # 218 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap(multimap&&) = default; 29761: # 230 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap(initializer_list __l, 29761: const _Compare& __comp = _Compare(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29761: 29761: 29761: explicit 29761: multimap(const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) { } 29761: 29761: 29761: multimap(const multimap& __m, 29761: const __type_identity_t& __a) 29761: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 29761: 29761: 29761: multimap(multimap&& __m, const __type_identity_t& __a) 29761: noexcept(is_nothrow_copy_constructible<_Compare>::value 29761: && _Alloc_traits::_S_always_equal()) 29761: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 29761: 29761: 29761: multimap(initializer_list __l, const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29761: 29761: 29761: template 29761: multimap(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 274 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: multimap(_InputIterator __first, _InputIterator __last) 29761: : _M_t() 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 290 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: multimap(_InputIterator __first, _InputIterator __last, 29761: const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~multimap() = default; 29761: # 319 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap& 29761: operator=(const multimap&) = default; 29761: 29761: 29761: multimap& 29761: operator=(multimap&&) = default; 29761: # 337 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap& 29761: operator=(initializer_list __l) 29761: { 29761: _M_t._M_assign_equal(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_t.get_allocator()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rend() noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_t.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_t.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_t.max_size(); } 29761: # 495 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: iterator 29761: emplace(_Args&&... __args) 29761: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 29761: # 522 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { 29761: return _M_t._M_emplace_hint_equal(__pos, 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 544 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: insert(const value_type& __x) 29761: { return _M_t._M_insert_equal(__x); } 29761: 29761: 29761: 29761: 29761: iterator 29761: insert(value_type&& __x) 29761: { return _M_t._M_insert_equal(std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(_Pair&& __x) 29761: { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } 29761: # 583 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: 29761: insert(const_iterator __position, const value_type& __x) 29761: 29761: 29761: 29761: { return _M_t._M_insert_equal_(__position, __x); } 29761: 29761: 29761: 29761: 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(const_iterator __position, _Pair&& __x) 29761: { 29761: return _M_t._M_emplace_hint_equal(__position, 29761: std::forward<_Pair>(__x)); 29761: } 29761: # 617 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 630 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { this->insert(__l.begin(), __l.end()); } 29761: 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_t.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __x) 29761: { return _M_t.extract(__x); } 29761: 29761: 29761: iterator 29761: insert(node_type&& __nh) 29761: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 29761: 29761: template 29761: friend struct std::_Rb_tree_merge_helper; 29761: 29761: template 29761: void 29761: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29761: { merge(__source); } 29761: # 707 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_t.erase(__position); } 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(iterator __position) 29761: { return _M_t.erase(__position); } 29761: # 744 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_t.erase(__x); } 29761: # 765 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_t.erase(__first, __last); } 29761: # 802 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: void 29761: swap(multimap& __x) 29761: noexcept(__is_nothrow_swappable<_Compare>::value) 29761: { _M_t.swap(__x._M_t); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_t.clear(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: key_compare 29761: key_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: 29761: 29761: 29761: 29761: value_compare 29761: value_comp() const 29761: { return value_compare(_M_t.key_comp()); } 29761: # 848 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 29761: { return _M_t._M_find_tr(__x); } 29761: # 872 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 29761: { return _M_t._M_find_tr(__x); } 29761: # 890 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_t.count(__x); } 29761: 29761: 29761: template 29761: auto 29761: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29761: { return _M_t._M_count_tr(__x); } 29761: # 933 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: lower_bound(const key_type& __x) 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 958 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: const_iterator 29761: lower_bound(const key_type& __x) const 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) const 29761: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 978 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: upper_bound(const key_type& __x) 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 998 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: const_iterator 29761: upper_bound(const key_type& __x) const 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) const 29761: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 1025 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: # 1052 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) const 29761: -> decltype(pair( 29761: _M_t._M_equal_range_tr(__x))) 29761: { 29761: return pair( 29761: _M_t._M_equal_range_tr(__x)); 29761: } 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator==(const multimap<_K1, _T1, _C1, _A1>&, 29761: const multimap<_K1, _T1, _C1, _A1>&); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator<(const multimap<_K1, _T1, _C1, _A1>&, 29761: const multimap<_K1, _T1, _C1, _A1>&); 29761: 29761: }; 29761: 29761: 29761: 29761: template>, 29761: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: multimap(_InputIterator, _InputIterator, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29761: _Compare, _Allocator>; 29761: 29761: template, 29761: typename _Allocator = allocator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: multimap(initializer_list>, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> multimap<_Key, _Tp, _Compare, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: multimap(_InputIterator, _InputIterator, _Allocator) 29761: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29761: less<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template> 29761: multimap(initializer_list>, _Allocator) 29761: -> multimap<_Key, _Tp, less<_Key>, _Allocator>; 29761: # 1132 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: inline bool 29761: operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __x._M_t == __y._M_t; } 29761: # 1170 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: inline bool 29761: operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __x._M_t < __y._M_t; } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: inline bool 29761: operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: _Rb_tree_merge_helper, 29761: _Cmp2> 29761: { 29761: private: 29761: friend class std::multimap<_Key, _Val, _Cmp1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 29761: { return __map._M_t; } 29761: 29761: static auto& 29761: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 29761: { return __map._M_t; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 65 "/usr/include/c++/14/map" 2 3 29761: # 79 "/usr/include/c++/14/map" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 80 "/usr/include/c++/14/map" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template> 29761: using map 29761: = std::map<_Key, _Tp, _Cmp, 29761: polymorphic_allocator>>; 29761: template> 29761: using multimap 29761: = std::multimap<_Key, _Tp, _Cmp, 29761: polymorphic_allocator>>; 29761: } 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29761: 29761: # 1 "/usr/include/c++/14/mutex" 1 3 29761: # 32 "/usr/include/c++/14/mutex" 3 29761: 29761: # 33 "/usr/include/c++/14/mutex" 3 29761: # 47 "/usr/include/c++/14/mutex" 3 29761: # 1 "/usr/include/c++/14/bits/std_mutex.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: # 43 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 59 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: class __mutex_base 29761: { 29761: protected: 29761: typedef __gthread_mutex_t __native_type; 29761: 29761: 29761: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 29761: 29761: constexpr __mutex_base() noexcept = default; 29761: # 80 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: __mutex_base(const __mutex_base&) = delete; 29761: __mutex_base& operator=(const __mutex_base&) = delete; 29761: }; 29761: # 96 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: class mutex : private __mutex_base 29761: { 29761: public: 29761: typedef __native_type* native_handle_type; 29761: 29761: 29761: constexpr 29761: 29761: mutex() noexcept = default; 29761: ~mutex() = default; 29761: 29761: mutex(const mutex&) = delete; 29761: mutex& operator=(const mutex&) = delete; 29761: 29761: void 29761: lock() 29761: { 29761: int __e = __gthread_mutex_lock(&_M_mutex); 29761: 29761: 29761: if (__e) 29761: __throw_system_error(__e); 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: try_lock() noexcept 29761: { 29761: 29761: return !__gthread_mutex_trylock(&_M_mutex); 29761: } 29761: 29761: void 29761: unlock() 29761: { 29761: 29761: __gthread_mutex_unlock(&_M_mutex); 29761: } 29761: 29761: native_handle_type 29761: native_handle() noexcept 29761: { return &_M_mutex; } 29761: }; 29761: 29761: 29761: 29761: 29761: class __condvar 29761: { 29761: using timespec = __gthread_time_t; 29761: 29761: public: 29761: __condvar() noexcept 29761: { 29761: 29761: 29761: 29761: } 29761: 29761: ~__condvar() 29761: { 29761: int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); 29761: do { if (std::__is_constant_evaluated() && !bool(__e != 16)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: __condvar(const __condvar&) = delete; 29761: __condvar& operator=(const __condvar&) = delete; 29761: 29761: __gthread_cond_t* native_handle() noexcept { return &_M_cond; } 29761: 29761: 29761: void 29761: wait(mutex& __m) 29761: { 29761: int __e __attribute__((__unused__)) 29761: = __gthread_cond_wait(&_M_cond, __m.native_handle()); 29761: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: void 29761: wait_until(mutex& __m, timespec& __abs_time) 29761: { 29761: __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); 29761: } 29761: 29761: 29761: void 29761: wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) 29761: { 29761: pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, 29761: &__abs_time); 29761: } 29761: 29761: 29761: void 29761: notify_one() noexcept 29761: { 29761: int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); 29761: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: void 29761: notify_all() noexcept 29761: { 29761: int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); 29761: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: protected: 29761: 29761: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: struct defer_lock_t { explicit defer_lock_t() = default; }; 29761: 29761: 29761: struct try_to_lock_t { explicit try_to_lock_t() = default; }; 29761: 29761: 29761: 29761: struct adopt_lock_t { explicit adopt_lock_t() = default; }; 29761: 29761: 29761: inline constexpr defer_lock_t defer_lock { }; 29761: 29761: 29761: inline constexpr try_to_lock_t try_to_lock { }; 29761: 29761: 29761: inline constexpr adopt_lock_t adopt_lock { }; 29761: # 242 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: template 29761: class lock_guard 29761: { 29761: public: 29761: typedef _Mutex mutex_type; 29761: 29761: [[__nodiscard__]] 29761: explicit lock_guard(mutex_type& __m) : _M_device(__m) 29761: { _M_device.lock(); } 29761: 29761: [[__nodiscard__]] 29761: lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) 29761: { } 29761: 29761: ~lock_guard() 29761: { _M_device.unlock(); } 29761: 29761: lock_guard(const lock_guard&) = delete; 29761: lock_guard& operator=(const lock_guard&) = delete; 29761: 29761: private: 29761: mutex_type& _M_device; 29761: }; 29761: 29761: 29761: 29761: } 29761: # 48 "/usr/include/c++/14/mutex" 2 3 29761: # 1 "/usr/include/c++/14/bits/unique_lock.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/unique_lock.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/unique_lock.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 1 3 29761: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 3 29761: # 1 "/usr/include/c++/14/cerrno" 1 3 29761: # 39 "/usr/include/c++/14/cerrno" 3 29761: 29761: # 40 "/usr/include/c++/14/cerrno" 3 29761: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: enum class errc 29761: { 29761: address_family_not_supported = 97, 29761: address_in_use = 98, 29761: address_not_available = 99, 29761: already_connected = 106, 29761: argument_list_too_long = 7, 29761: argument_out_of_domain = 33, 29761: bad_address = 14, 29761: bad_file_descriptor = 9, 29761: 29761: 29761: bad_message = 74, 29761: 29761: 29761: broken_pipe = 32, 29761: connection_aborted = 103, 29761: connection_already_in_progress = 114, 29761: connection_refused = 111, 29761: connection_reset = 104, 29761: cross_device_link = 18, 29761: destination_address_required = 89, 29761: device_or_resource_busy = 16, 29761: directory_not_empty = 39, 29761: executable_format_error = 8, 29761: file_exists = 17, 29761: file_too_large = 27, 29761: filename_too_long = 36, 29761: function_not_supported = 38, 29761: host_unreachable = 113, 29761: 29761: 29761: identifier_removed = 43, 29761: 29761: 29761: illegal_byte_sequence = 84, 29761: inappropriate_io_control_operation = 25, 29761: interrupted = 4, 29761: invalid_argument = 22, 29761: invalid_seek = 29, 29761: io_error = 5, 29761: is_a_directory = 21, 29761: message_size = 90, 29761: network_down = 100, 29761: network_reset = 102, 29761: network_unreachable = 101, 29761: no_buffer_space = 105, 29761: no_child_process = 10, 29761: 29761: 29761: no_link = 67, 29761: 29761: 29761: no_lock_available = 37, 29761: 29761: 29761: no_message_available = 61, 29761: 29761: 29761: no_message = 42, 29761: no_protocol_option = 92, 29761: no_space_on_device = 28, 29761: 29761: 29761: no_stream_resources = 63, 29761: 29761: 29761: no_such_device_or_address = 6, 29761: no_such_device = 19, 29761: no_such_file_or_directory = 2, 29761: no_such_process = 3, 29761: not_a_directory = 20, 29761: not_a_socket = 88, 29761: 29761: 29761: not_a_stream = 60, 29761: 29761: 29761: not_connected = 107, 29761: not_enough_memory = 12, 29761: 29761: 29761: not_supported = 95, 29761: 29761: 29761: 29761: operation_canceled = 125, 29761: 29761: 29761: operation_in_progress = 115, 29761: operation_not_permitted = 1, 29761: operation_not_supported = 95, 29761: operation_would_block = 11, 29761: 29761: 29761: owner_dead = 130, 29761: 29761: 29761: permission_denied = 13, 29761: 29761: 29761: protocol_error = 71, 29761: 29761: 29761: protocol_not_supported = 93, 29761: read_only_file_system = 30, 29761: resource_deadlock_would_occur = 35, 29761: resource_unavailable_try_again = 11, 29761: result_out_of_range = 34, 29761: 29761: 29761: state_not_recoverable = 131, 29761: 29761: 29761: 29761: stream_timeout = 62, 29761: 29761: 29761: 29761: text_file_busy = 26, 29761: 29761: 29761: timed_out = 110, 29761: too_many_files_open_in_system = 23, 29761: too_many_files_open = 24, 29761: too_many_links = 31, 29761: too_many_symbolic_link_levels = 40, 29761: 29761: 29761: value_too_large = 75, 29761: 29761: 29761: 29761: 29761: wrong_protocol_type = 91 29761: }; 29761: 29761: 29761: } 29761: # 41 "/usr/include/c++/14/bits/unique_lock.h" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 59 "/usr/include/c++/14/bits/unique_lock.h" 3 29761: template 29761: class unique_lock 29761: { 29761: public: 29761: typedef _Mutex mutex_type; 29761: 29761: unique_lock() noexcept 29761: : _M_device(0), _M_owns(false) 29761: { } 29761: 29761: [[__nodiscard__]] 29761: explicit unique_lock(mutex_type& __m) 29761: : _M_device(std::__addressof(__m)), _M_owns(false) 29761: { 29761: lock(); 29761: _M_owns = true; 29761: } 29761: 29761: unique_lock(mutex_type& __m, defer_lock_t) noexcept 29761: : _M_device(std::__addressof(__m)), _M_owns(false) 29761: { } 29761: 29761: [[__nodiscard__]] 29761: unique_lock(mutex_type& __m, try_to_lock_t) 29761: : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) 29761: { } 29761: 29761: [[__nodiscard__]] 29761: unique_lock(mutex_type& __m, adopt_lock_t) noexcept 29761: : _M_device(std::__addressof(__m)), _M_owns(true) 29761: { 29761: 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: unique_lock(mutex_type& __m, 29761: const chrono::time_point<_Clock, _Duration>& __atime) 29761: : _M_device(std::__addressof(__m)), 29761: _M_owns(_M_device->try_lock_until(__atime)) 29761: { } 29761: 29761: template 29761: [[__nodiscard__]] 29761: unique_lock(mutex_type& __m, 29761: const chrono::duration<_Rep, _Period>& __rtime) 29761: : _M_device(std::__addressof(__m)), 29761: _M_owns(_M_device->try_lock_for(__rtime)) 29761: { } 29761: 29761: ~unique_lock() 29761: { 29761: if (_M_owns) 29761: unlock(); 29761: } 29761: 29761: unique_lock(const unique_lock&) = delete; 29761: unique_lock& operator=(const unique_lock&) = delete; 29761: 29761: unique_lock(unique_lock&& __u) noexcept 29761: : _M_device(__u._M_device), _M_owns(__u._M_owns) 29761: { 29761: __u._M_device = 0; 29761: __u._M_owns = false; 29761: } 29761: 29761: unique_lock& operator=(unique_lock&& __u) noexcept 29761: { 29761: if(_M_owns) 29761: unlock(); 29761: 29761: unique_lock(std::move(__u)).swap(*this); 29761: 29761: __u._M_device = 0; 29761: __u._M_owns = false; 29761: 29761: return *this; 29761: } 29761: 29761: void 29761: lock() 29761: { 29761: if (!_M_device) 29761: __throw_system_error(int(errc::operation_not_permitted)); 29761: else if (_M_owns) 29761: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29761: else 29761: { 29761: _M_device->lock(); 29761: _M_owns = true; 29761: } 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: try_lock() 29761: { 29761: if (!_M_device) 29761: __throw_system_error(int(errc::operation_not_permitted)); 29761: else if (_M_owns) 29761: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29761: else 29761: { 29761: _M_owns = _M_device->try_lock(); 29761: return _M_owns; 29761: } 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29761: { 29761: if (!_M_device) 29761: __throw_system_error(int(errc::operation_not_permitted)); 29761: else if (_M_owns) 29761: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29761: else 29761: { 29761: _M_owns = _M_device->try_lock_until(__atime); 29761: return _M_owns; 29761: } 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29761: { 29761: if (!_M_device) 29761: __throw_system_error(int(errc::operation_not_permitted)); 29761: else if (_M_owns) 29761: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29761: else 29761: { 29761: _M_owns = _M_device->try_lock_for(__rtime); 29761: return _M_owns; 29761: } 29761: } 29761: 29761: void 29761: unlock() 29761: { 29761: if (!_M_owns) 29761: __throw_system_error(int(errc::operation_not_permitted)); 29761: else if (_M_device) 29761: { 29761: _M_device->unlock(); 29761: _M_owns = false; 29761: } 29761: } 29761: 29761: void 29761: swap(unique_lock& __u) noexcept 29761: { 29761: std::swap(_M_device, __u._M_device); 29761: std::swap(_M_owns, __u._M_owns); 29761: } 29761: 29761: mutex_type* 29761: release() noexcept 29761: { 29761: mutex_type* __ret = _M_device; 29761: _M_device = 0; 29761: _M_owns = false; 29761: return __ret; 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: owns_lock() const noexcept 29761: { return _M_owns; } 29761: 29761: explicit operator bool() const noexcept 29761: { return owns_lock(); } 29761: 29761: [[__nodiscard__]] 29761: mutex_type* 29761: mutex() const noexcept 29761: { return _M_device; } 29761: 29761: private: 29761: mutex_type* _M_device; 29761: bool _M_owns; 29761: }; 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept 29761: { __x.swap(__y); } 29761: 29761: 29761: } 29761: # 49 "/usr/include/c++/14/mutex" 2 3 29761: # 60 "/usr/include/c++/14/mutex" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 61 "/usr/include/c++/14/mutex" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 75 "/usr/include/c++/14/mutex" 3 29761: class __recursive_mutex_base 29761: { 29761: protected: 29761: typedef __gthread_recursive_mutex_t __native_type; 29761: 29761: __recursive_mutex_base(const __recursive_mutex_base&) = delete; 29761: __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; 29761: 29761: 29761: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 29761: 29761: __recursive_mutex_base() = default; 29761: # 99 "/usr/include/c++/14/mutex" 3 29761: }; 29761: # 111 "/usr/include/c++/14/mutex" 3 29761: class recursive_mutex : private __recursive_mutex_base 29761: { 29761: public: 29761: typedef __native_type* native_handle_type; 29761: 29761: recursive_mutex() = default; 29761: ~recursive_mutex() = default; 29761: 29761: recursive_mutex(const recursive_mutex&) = delete; 29761: recursive_mutex& operator=(const recursive_mutex&) = delete; 29761: 29761: void 29761: lock() 29761: { 29761: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 29761: 29761: 29761: if (__e) 29761: __throw_system_error(__e); 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: try_lock() noexcept 29761: { 29761: 29761: return !__gthread_recursive_mutex_trylock(&_M_mutex); 29761: } 29761: 29761: void 29761: unlock() 29761: { 29761: 29761: __gthread_recursive_mutex_unlock(&_M_mutex); 29761: } 29761: 29761: native_handle_type 29761: native_handle() noexcept 29761: { return &_M_mutex; } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: class __timed_mutex_impl 29761: { 29761: protected: 29761: template 29761: bool 29761: _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29761: { 29761: 29761: using __clock = chrono::steady_clock; 29761: 29761: 29761: 29761: 29761: auto __rt = chrono::duration_cast<__clock::duration>(__rtime); 29761: if (ratio_greater<__clock::period, _Period>()) 29761: ++__rt; 29761: return _M_try_lock_until(__clock::now() + __rt); 29761: } 29761: 29761: template 29761: bool 29761: _M_try_lock_until(const chrono::time_point& __atime) 29761: { 29761: auto __s = chrono::time_point_cast(__atime); 29761: auto __ns = chrono::duration_cast(__atime - __s); 29761: 29761: __gthread_time_t __ts = { 29761: static_cast(__s.time_since_epoch().count()), 29761: static_cast(__ns.count()) 29761: }; 29761: 29761: return static_cast<_Derived*>(this)->_M_timedlock(__ts); 29761: } 29761: 29761: 29761: template 29761: bool 29761: _M_try_lock_until(const chrono::time_point& __atime) 29761: { 29761: auto __s = chrono::time_point_cast(__atime); 29761: auto __ns = chrono::duration_cast(__atime - __s); 29761: 29761: __gthread_time_t __ts = { 29761: static_cast(__s.time_since_epoch().count()), 29761: static_cast(__ns.count()) 29761: }; 29761: 29761: return static_cast<_Derived*>(this)->_M_clocklock(1, 29761: __ts); 29761: } 29761: 29761: 29761: template 29761: bool 29761: _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: auto __now = _Clock::now(); 29761: do { 29761: auto __rtime = __atime - __now; 29761: if (_M_try_lock_for(__rtime)) 29761: return true; 29761: __now = _Clock::now(); 29761: } while (__atime > __now); 29761: return false; 29761: } 29761: }; 29761: # 240 "/usr/include/c++/14/mutex" 3 29761: class timed_mutex 29761: : private __mutex_base, public __timed_mutex_impl 29761: { 29761: public: 29761: typedef __native_type* native_handle_type; 29761: 29761: timed_mutex() = default; 29761: ~timed_mutex() = default; 29761: 29761: timed_mutex(const timed_mutex&) = delete; 29761: timed_mutex& operator=(const timed_mutex&) = delete; 29761: 29761: void 29761: lock() 29761: { 29761: int __e = __gthread_mutex_lock(&_M_mutex); 29761: 29761: 29761: if (__e) 29761: __throw_system_error(__e); 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: try_lock() noexcept 29761: { 29761: 29761: return !__gthread_mutex_trylock(&_M_mutex); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29761: { return _M_try_lock_for(__rtime); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29761: { return _M_try_lock_until(__atime); } 29761: 29761: void 29761: unlock() 29761: { 29761: 29761: __gthread_mutex_unlock(&_M_mutex); 29761: } 29761: 29761: native_handle_type 29761: native_handle() noexcept 29761: { return &_M_mutex; } 29761: 29761: private: 29761: friend class __timed_mutex_impl; 29761: 29761: bool 29761: _M_timedlock(const __gthread_time_t& __ts) 29761: { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } 29761: 29761: 29761: bool 29761: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 29761: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 29761: 29761: }; 29761: # 317 "/usr/include/c++/14/mutex" 3 29761: class recursive_timed_mutex 29761: : private __recursive_mutex_base, 29761: public __timed_mutex_impl 29761: { 29761: public: 29761: typedef __native_type* native_handle_type; 29761: 29761: recursive_timed_mutex() = default; 29761: ~recursive_timed_mutex() = default; 29761: 29761: recursive_timed_mutex(const recursive_timed_mutex&) = delete; 29761: recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; 29761: 29761: void 29761: lock() 29761: { 29761: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 29761: 29761: 29761: if (__e) 29761: __throw_system_error(__e); 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: try_lock() noexcept 29761: { 29761: 29761: return !__gthread_recursive_mutex_trylock(&_M_mutex); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29761: { return _M_try_lock_for(__rtime); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29761: { return _M_try_lock_until(__atime); } 29761: 29761: void 29761: unlock() 29761: { 29761: 29761: __gthread_recursive_mutex_unlock(&_M_mutex); 29761: } 29761: 29761: native_handle_type 29761: native_handle() noexcept 29761: { return &_M_mutex; } 29761: 29761: private: 29761: friend class __timed_mutex_impl; 29761: 29761: bool 29761: _M_timedlock(const __gthread_time_t& __ts) 29761: { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } 29761: 29761: 29761: bool 29761: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 29761: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 29761: 29761: }; 29761: # 564 "/usr/include/c++/14/mutex" 3 29761: namespace __detail 29761: { 29761: 29761: template 29761: inline int 29761: __try_lock_impl(_Lockable& __l) 29761: { 29761: if (unique_lock<_Lockable> __lock{__l, try_to_lock}) 29761: { 29761: __lock.release(); 29761: return -1; 29761: } 29761: else 29761: return 0; 29761: } 29761: 29761: 29761: 29761: template 29761: inline int 29761: __try_lock_impl(_L0& __l0, _Lockables&... __lockables) 29761: { 29761: 29761: if constexpr ((is_same_v<_L0, _Lockables> && ...)) 29761: { 29761: constexpr int _Np = 1 + sizeof...(_Lockables); 29761: unique_lock<_L0> __locks[_Np] = { 29761: {__l0, defer_lock}, {__lockables, defer_lock}... 29761: }; 29761: for (int __i = 0; __i < _Np; ++__i) 29761: { 29761: if (!__locks[__i].try_lock()) 29761: { 29761: const int __failed = __i; 29761: while (__i--) 29761: __locks[__i].unlock(); 29761: return __failed; 29761: } 29761: } 29761: for (auto& __l : __locks) 29761: __l.release(); 29761: return -1; 29761: } 29761: else 29761: 29761: if (unique_lock<_L0> __lock{__l0, try_to_lock}) 29761: { 29761: int __idx = __detail::__try_lock_impl(__lockables...); 29761: if (__idx == -1) 29761: { 29761: __lock.release(); 29761: return -1; 29761: } 29761: return __idx + 1; 29761: } 29761: else 29761: return 0; 29761: } 29761: 29761: } 29761: # 636 "/usr/include/c++/14/mutex" 3 29761: template 29761: [[__nodiscard__]] 29761: inline int 29761: try_lock(_L1& __l1, _L2& __l2, _L3&... __l3) 29761: { 29761: return __detail::__try_lock_impl(__l1, __l2, __l3...); 29761: } 29761: 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __lock_impl(int& __i, int __depth, _L0& __l0, _L1&... __l1) 29761: { 29761: while (__i >= __depth) 29761: { 29761: if (__i == __depth) 29761: { 29761: int __failed = 1; 29761: { 29761: unique_lock<_L0> __first(__l0); 29761: __failed += __detail::__try_lock_impl(__l1...); 29761: if (!__failed) 29761: { 29761: __i = -1; 29761: __first.release(); 29761: return; 29761: } 29761: } 29761: 29761: __gthread_yield(); 29761: 29761: constexpr auto __n = 1 + sizeof...(_L1); 29761: __i = (__depth + __failed) % __n; 29761: } 29761: else 29761: __detail::__lock_impl(__i, __depth + 1, __l1..., __l0); 29761: } 29761: } 29761: 29761: } 29761: # 696 "/usr/include/c++/14/mutex" 3 29761: template 29761: void 29761: lock(_L1& __l1, _L2& __l2, _L3&... __l3) 29761: { 29761: 29761: if constexpr (is_same_v<_L1, _L2> && (is_same_v<_L1, _L3> && ...)) 29761: { 29761: constexpr int _Np = 2 + sizeof...(_L3); 29761: unique_lock<_L1> __locks[] = { 29761: {__l1, defer_lock}, {__l2, defer_lock}, {__l3, defer_lock}... 29761: }; 29761: int __first = 0; 29761: do { 29761: __locks[__first].lock(); 29761: for (int __j = 1; __j < _Np; ++__j) 29761: { 29761: const int __idx = (__first + __j) % _Np; 29761: if (!__locks[__idx].try_lock()) 29761: { 29761: for (int __k = __j; __k != 0; --__k) 29761: __locks[(__first + __k - 1) % _Np].unlock(); 29761: __first = __idx; 29761: break; 29761: } 29761: } 29761: } while (!__locks[__first].owns_lock()); 29761: 29761: for (auto& __l : __locks) 29761: __l.release(); 29761: } 29761: else 29761: 29761: { 29761: int __i = 0; 29761: __detail::__lock_impl(__i, 0, __l1, __l2, __l3...); 29761: } 29761: } 29761: # 743 "/usr/include/c++/14/mutex" 3 29761: template 29761: class scoped_lock 29761: { 29761: public: 29761: 29761: [[nodiscard]] 29761: explicit scoped_lock(_MutexTypes&... __m) : _M_devices(std::tie(__m...)) 29761: { std::lock(__m...); } 29761: 29761: [[nodiscard]] 29761: explicit scoped_lock(adopt_lock_t, _MutexTypes&... __m) noexcept 29761: : _M_devices(std::tie(__m...)) 29761: { } 29761: 29761: ~scoped_lock() 29761: { std::apply([](auto&... __m) { (__m.unlock(), ...); }, _M_devices); } 29761: 29761: scoped_lock(const scoped_lock&) = delete; 29761: scoped_lock& operator=(const scoped_lock&) = delete; 29761: 29761: private: 29761: tuple<_MutexTypes&...> _M_devices; 29761: }; 29761: 29761: template<> 29761: class scoped_lock<> 29761: { 29761: public: 29761: explicit scoped_lock() = default; 29761: explicit scoped_lock(adopt_lock_t) noexcept { } 29761: ~scoped_lock() = default; 29761: 29761: scoped_lock(const scoped_lock&) = delete; 29761: scoped_lock& operator=(const scoped_lock&) = delete; 29761: }; 29761: 29761: template 29761: class scoped_lock<_Mutex> 29761: { 29761: public: 29761: using mutex_type = _Mutex; 29761: 29761: [[nodiscard]] 29761: explicit scoped_lock(mutex_type& __m) : _M_device(__m) 29761: { _M_device.lock(); } 29761: 29761: [[nodiscard]] 29761: explicit scoped_lock(adopt_lock_t, mutex_type& __m) noexcept 29761: : _M_device(__m) 29761: { } 29761: 29761: ~scoped_lock() 29761: { _M_device.unlock(); } 29761: 29761: scoped_lock(const scoped_lock&) = delete; 29761: scoped_lock& operator=(const scoped_lock&) = delete; 29761: 29761: private: 29761: mutex_type& _M_device; 29761: }; 29761: 29761: 29761: 29761: 29761: struct once_flag 29761: { 29761: constexpr once_flag() noexcept = default; 29761: 29761: 29761: once_flag(const once_flag&) = delete; 29761: 29761: once_flag& operator=(const once_flag&) = delete; 29761: 29761: private: 29761: 29761: 29761: __gthread_once_t _M_once = 0; 29761: 29761: struct _Prepare_execution; 29761: 29761: template 29761: friend void 29761: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: extern __thread void* __once_callable; 29761: extern __thread void (*__once_call)(); 29761: 29761: 29761: struct once_flag::_Prepare_execution 29761: { 29761: template 29761: explicit 29761: _Prepare_execution(_Callable& __c) 29761: { 29761: 29761: __once_callable = std::__addressof(__c); 29761: 29761: __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; 29761: } 29761: 29761: ~_Prepare_execution() 29761: { 29761: 29761: __once_callable = nullptr; 29761: __once_call = nullptr; 29761: } 29761: 29761: _Prepare_execution(const _Prepare_execution&) = delete; 29761: _Prepare_execution& operator=(const _Prepare_execution&) = delete; 29761: }; 29761: # 900 "/usr/include/c++/14/mutex" 3 29761: extern "C" void __once_proxy(void); 29761: 29761: 29761: template 29761: void 29761: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 29761: { 29761: 29761: auto __callable = [&] { 29761: std::__invoke(std::forward<_Callable>(__f), 29761: std::forward<_Args>(__args)...); 29761: }; 29761: 29761: once_flag::_Prepare_execution __exec(__callable); 29761: 29761: 29761: if (int __e = __gthread_once(&__once._M_once, &__once_proxy)) 29761: __throw_system_error(__e); 29761: } 29761: # 1021 "/usr/include/c++/14/mutex" 3 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: namespace rocksdb { 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: enum Tickers : uint32_t { 29761: 29761: 29761: 29761: 29761: BLOCK_CACHE_MISS = 0, 29761: 29761: 29761: 29761: 29761: BLOCK_CACHE_HIT, 29761: 29761: BLOCK_CACHE_ADD, 29761: 29761: BLOCK_CACHE_ADD_FAILURES, 29761: 29761: BLOCK_CACHE_INDEX_MISS, 29761: 29761: BLOCK_CACHE_INDEX_HIT, 29761: 29761: BLOCK_CACHE_INDEX_ADD, 29761: 29761: BLOCK_CACHE_INDEX_BYTES_INSERT, 29761: 29761: BLOCK_CACHE_FILTER_MISS, 29761: 29761: BLOCK_CACHE_FILTER_HIT, 29761: 29761: BLOCK_CACHE_FILTER_ADD, 29761: 29761: BLOCK_CACHE_FILTER_BYTES_INSERT, 29761: 29761: BLOCK_CACHE_DATA_MISS, 29761: 29761: BLOCK_CACHE_DATA_HIT, 29761: 29761: BLOCK_CACHE_DATA_ADD, 29761: 29761: BLOCK_CACHE_DATA_BYTES_INSERT, 29761: 29761: BLOCK_CACHE_BYTES_READ, 29761: 29761: BLOCK_CACHE_BYTES_WRITE, 29761: 29761: BLOCK_CACHE_COMPRESSION_DICT_MISS, 29761: BLOCK_CACHE_COMPRESSION_DICT_HIT, 29761: BLOCK_CACHE_COMPRESSION_DICT_ADD, 29761: BLOCK_CACHE_COMPRESSION_DICT_BYTES_INSERT, 29761: 29761: 29761: 29761: BLOCK_CACHE_ADD_REDUNDANT, 29761: 29761: 29761: BLOCK_CACHE_INDEX_ADD_REDUNDANT, 29761: 29761: 29761: BLOCK_CACHE_FILTER_ADD_REDUNDANT, 29761: 29761: 29761: BLOCK_CACHE_DATA_ADD_REDUNDANT, 29761: 29761: 29761: 29761: BLOCK_CACHE_COMPRESSION_DICT_ADD_REDUNDANT, 29761: 29761: 29761: SECONDARY_CACHE_HITS, 29761: 29761: 29761: SECONDARY_CACHE_FILTER_HITS, 29761: SECONDARY_CACHE_INDEX_HITS, 29761: SECONDARY_CACHE_DATA_HITS, 29761: 29761: 29761: COMPRESSED_SECONDARY_CACHE_DUMMY_HITS, 29761: COMPRESSED_SECONDARY_CACHE_HITS, 29761: COMPRESSED_SECONDARY_CACHE_PROMOTIONS, 29761: COMPRESSED_SECONDARY_CACHE_PROMOTION_SKIPS, 29761: 29761: 29761: BLOOM_FILTER_USEFUL, 29761: 29761: BLOOM_FILTER_FULL_POSITIVE, 29761: 29761: 29761: BLOOM_FILTER_FULL_TRUE_POSITIVE, 29761: 29761: 29761: 29761: BLOOM_FILTER_PREFIX_CHECKED, 29761: 29761: BLOOM_FILTER_PREFIX_USEFUL, 29761: 29761: 29761: 29761: BLOOM_FILTER_PREFIX_TRUE_POSITIVE, 29761: 29761: 29761: PERSISTENT_CACHE_HIT, 29761: 29761: PERSISTENT_CACHE_MISS, 29761: 29761: 29761: SIM_BLOCK_CACHE_HIT, 29761: 29761: SIM_BLOCK_CACHE_MISS, 29761: 29761: 29761: MEMTABLE_HIT, 29761: 29761: MEMTABLE_MISS, 29761: 29761: 29761: GET_HIT_L0, 29761: 29761: GET_HIT_L1, 29761: 29761: GET_HIT_L2_AND_UP, 29761: 29761: 29761: 29761: 29761: 29761: COMPACTION_KEY_DROP_NEWER_ENTRY, 29761: 29761: COMPACTION_KEY_DROP_OBSOLETE, 29761: COMPACTION_KEY_DROP_RANGE_DEL, 29761: COMPACTION_KEY_DROP_USER, 29761: COMPACTION_RANGE_DEL_DROP_OBSOLETE, 29761: 29761: COMPACTION_OPTIMIZED_DEL_DROP_OBSOLETE, 29761: 29761: COMPACTION_CANCELLED, 29761: 29761: 29761: NUMBER_KEYS_WRITTEN, 29761: 29761: NUMBER_KEYS_READ, 29761: 29761: NUMBER_KEYS_UPDATED, 29761: 29761: 29761: BYTES_WRITTEN, 29761: 29761: 29761: 29761: 29761: BYTES_READ, 29761: 29761: NUMBER_DB_SEEK, 29761: NUMBER_DB_NEXT, 29761: NUMBER_DB_PREV, 29761: 29761: NUMBER_DB_SEEK_FOUND, 29761: NUMBER_DB_NEXT_FOUND, 29761: NUMBER_DB_PREV_FOUND, 29761: 29761: 29761: ITER_BYTES_READ, 29761: 29761: NUMBER_ITER_SKIP, 29761: 29761: 29761: NUMBER_OF_RESEEKS_IN_ITERATION, 29761: 29761: NO_ITERATOR_CREATED, 29761: NO_ITERATOR_DELETED, 29761: 29761: NO_FILE_OPENS, 29761: NO_FILE_ERRORS, 29761: 29761: STALL_MICROS, 29761: 29761: 29761: DB_MUTEX_WAIT_MICROS, 29761: 29761: 29761: NUMBER_MULTIGET_CALLS, 29761: NUMBER_MULTIGET_KEYS_READ, 29761: NUMBER_MULTIGET_BYTES_READ, 29761: 29761: 29761: 29761: NUMBER_MULTIGET_KEYS_FOUND, 29761: 29761: NUMBER_MERGE_FAILURES, 29761: 29761: 29761: 29761: GET_UPDATES_SINCE_CALLS, 29761: WAL_FILE_SYNCED, 29761: WAL_FILE_BYTES, 29761: 29761: 29761: 29761: WRITE_DONE_BY_SELF, 29761: WRITE_DONE_BY_OTHER, 29761: WRITE_WITH_WAL, 29761: COMPACT_READ_BYTES, 29761: COMPACT_WRITE_BYTES, 29761: FLUSH_WRITE_BYTES, 29761: 29761: 29761: COMPACT_READ_BYTES_MARKED, 29761: COMPACT_READ_BYTES_PERIODIC, 29761: COMPACT_READ_BYTES_TTL, 29761: COMPACT_WRITE_BYTES_MARKED, 29761: COMPACT_WRITE_BYTES_PERIODIC, 29761: COMPACT_WRITE_BYTES_TTL, 29761: 29761: 29761: 29761: NUMBER_DIRECT_LOAD_TABLE_PROPERTIES, 29761: NUMBER_SUPERVERSION_ACQUIRES, 29761: NUMBER_SUPERVERSION_RELEASES, 29761: NUMBER_SUPERVERSION_CLEANUPS, 29761: 29761: 29761: NUMBER_BLOCK_COMPRESSED, 29761: NUMBER_BLOCK_DECOMPRESSED, 29761: 29761: 29761: 29761: BYTES_COMPRESSED_FROM, 29761: 29761: 29761: BYTES_COMPRESSED_TO, 29761: 29761: 29761: 29761: 29761: BYTES_COMPRESSION_BYPASSED, 29761: 29761: 29761: 29761: 29761: 29761: BYTES_COMPRESSION_REJECTED, 29761: 29761: 29761: NUMBER_BLOCK_COMPRESSION_BYPASSED, 29761: 29761: NUMBER_BLOCK_COMPRESSION_REJECTED, 29761: 29761: 29761: 29761: BYTES_DECOMPRESSED_FROM, 29761: 29761: 29761: BYTES_DECOMPRESSED_TO, 29761: 29761: 29761: MERGE_OPERATION_TOTAL_TIME, 29761: FILTER_OPERATION_TOTAL_TIME, 29761: COMPACTION_CPU_TOTAL_TIME, 29761: 29761: 29761: ROW_CACHE_HIT, 29761: ROW_CACHE_MISS, 29761: 29761: 29761: 29761: 29761: 29761: 29761: READ_AMP_ESTIMATE_USEFUL_BYTES, 29761: READ_AMP_TOTAL_READ_BYTES, 29761: 29761: 29761: NUMBER_RATE_LIMITER_DRAINS, 29761: 29761: 29761: 29761: BLOB_DB_NUM_PUT, 29761: 29761: BLOB_DB_NUM_WRITE, 29761: 29761: BLOB_DB_NUM_GET, 29761: 29761: BLOB_DB_NUM_MULTIGET, 29761: 29761: 29761: BLOB_DB_NUM_SEEK, 29761: 29761: BLOB_DB_NUM_NEXT, 29761: 29761: BLOB_DB_NUM_PREV, 29761: 29761: BLOB_DB_NUM_KEYS_WRITTEN, 29761: 29761: BLOB_DB_NUM_KEYS_READ, 29761: 29761: 29761: BLOB_DB_BYTES_WRITTEN, 29761: 29761: 29761: BLOB_DB_BYTES_READ, 29761: 29761: 29761: BLOB_DB_WRITE_INLINED, 29761: 29761: 29761: BLOB_DB_WRITE_INLINED_TTL, 29761: 29761: 29761: BLOB_DB_WRITE_BLOB, 29761: 29761: 29761: BLOB_DB_WRITE_BLOB_TTL, 29761: 29761: BLOB_DB_BLOB_FILE_BYTES_WRITTEN, 29761: 29761: BLOB_DB_BLOB_FILE_BYTES_READ, 29761: 29761: BLOB_DB_BLOB_FILE_SYNCED, 29761: 29761: 29761: BLOB_DB_BLOB_INDEX_EXPIRED_COUNT, 29761: 29761: 29761: BLOB_DB_BLOB_INDEX_EXPIRED_SIZE, 29761: 29761: 29761: BLOB_DB_BLOB_INDEX_EVICTED_COUNT, 29761: 29761: 29761: BLOB_DB_BLOB_INDEX_EVICTED_SIZE, 29761: 29761: 29761: BLOB_DB_GC_NUM_FILES, 29761: 29761: 29761: BLOB_DB_GC_NUM_NEW_FILES, 29761: 29761: BLOB_DB_GC_FAILURES, 29761: 29761: BLOB_DB_GC_NUM_KEYS_RELOCATED, 29761: 29761: BLOB_DB_GC_BYTES_RELOCATED, 29761: 29761: 29761: BLOB_DB_FIFO_NUM_FILES_EVICTED, 29761: 29761: 29761: BLOB_DB_FIFO_NUM_KEYS_EVICTED, 29761: 29761: 29761: BLOB_DB_FIFO_BYTES_EVICTED, 29761: 29761: 29761: 29761: BLOB_DB_CACHE_MISS, 29761: 29761: BLOB_DB_CACHE_HIT, 29761: 29761: BLOB_DB_CACHE_ADD, 29761: 29761: BLOB_DB_CACHE_ADD_FAILURES, 29761: 29761: BLOB_DB_CACHE_BYTES_READ, 29761: 29761: BLOB_DB_CACHE_BYTES_WRITE, 29761: 29761: 29761: 29761: 29761: TXN_PREPARE_MUTEX_OVERHEAD, 29761: 29761: TXN_OLD_COMMIT_MAP_MUTEX_OVERHEAD, 29761: 29761: TXN_DUPLICATE_KEY_OVERHEAD, 29761: 29761: TXN_SNAPSHOT_MUTEX_OVERHEAD, 29761: 29761: TXN_GET_TRY_AGAIN, 29761: 29761: 29761: 29761: FILES_MARKED_TRASH, 29761: 29761: FILES_DELETED_FROM_TRASH_QUEUE, 29761: 29761: 29761: FILES_DELETED_IMMEDIATELY, 29761: 29761: 29761: 29761: ERROR_HANDLER_BG_ERROR_COUNT, 29761: ERROR_HANDLER_BG_IO_ERROR_COUNT, 29761: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT, 29761: ERROR_HANDLER_AUTORESUME_COUNT, 29761: ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT, 29761: ERROR_HANDLER_AUTORESUME_SUCCESS_COUNT, 29761: 29761: 29761: 29761: MEMTABLE_PAYLOAD_BYTES_AT_FLUSH, 29761: 29761: MEMTABLE_GARBAGE_BYTES_AT_FLUSH, 29761: 29761: 29761: VERIFY_CHECKSUM_READ_BYTES, 29761: 29761: 29761: BACKUP_READ_BYTES, 29761: BACKUP_WRITE_BYTES, 29761: 29761: 29761: REMOTE_COMPACT_READ_BYTES, 29761: REMOTE_COMPACT_WRITE_BYTES, 29761: 29761: 29761: HOT_FILE_READ_BYTES, 29761: WARM_FILE_READ_BYTES, 29761: COLD_FILE_READ_BYTES, 29761: HOT_FILE_READ_COUNT, 29761: WARM_FILE_READ_COUNT, 29761: COLD_FILE_READ_COUNT, 29761: 29761: 29761: LAST_LEVEL_READ_BYTES, 29761: LAST_LEVEL_READ_COUNT, 29761: NON_LAST_LEVEL_READ_BYTES, 29761: NON_LAST_LEVEL_READ_COUNT, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: LAST_LEVEL_SEEK_FILTERED, 29761: 29761: 29761: LAST_LEVEL_SEEK_FILTER_MATCH, 29761: 29761: 29761: LAST_LEVEL_SEEK_DATA, 29761: 29761: 29761: LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 29761: 29761: 29761: LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 29761: 29761: NON_LAST_LEVEL_SEEK_FILTERED, 29761: NON_LAST_LEVEL_SEEK_FILTER_MATCH, 29761: NON_LAST_LEVEL_SEEK_DATA, 29761: NON_LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 29761: NON_LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 29761: 29761: 29761: BLOCK_CHECKSUM_COMPUTE_COUNT, 29761: 29761: 29761: 29761: BLOCK_CHECKSUM_MISMATCH_COUNT, 29761: 29761: MULTIGET_COROUTINE_COUNT, 29761: 29761: 29761: READ_ASYNC_MICROS, 29761: 29761: ASYNC_READ_ERROR_COUNT, 29761: 29761: 29761: 29761: 29761: TABLE_OPEN_PREFETCH_TAIL_MISS, 29761: 29761: 29761: 29761: TABLE_OPEN_PREFETCH_TAIL_HIT, 29761: 29761: 29761: 29761: TIMESTAMP_FILTER_TABLE_CHECKED, 29761: 29761: TIMESTAMP_FILTER_TABLE_FILTERED, 29761: 29761: 29761: 29761: READAHEAD_TRIMMED, 29761: 29761: 29761: FIFO_MAX_SIZE_COMPACTIONS, 29761: FIFO_TTL_COMPACTIONS, 29761: 29761: 29761: PREFETCH_BYTES, 29761: 29761: 29761: PREFETCH_BYTES_USEFUL, 29761: 29761: 29761: PREFETCH_HITS, 29761: 29761: 29761: SST_FOOTER_CORRUPTION_COUNT, 29761: 29761: 29761: 29761: FILE_READ_CORRUPTION_RETRY_COUNT, 29761: FILE_READ_CORRUPTION_RETRY_SUCCESS_COUNT, 29761: 29761: TICKER_ENUM_MAX 29761: }; 29761: 29761: 29761: 29761: extern const std::vector> TickersNameMap; 29761: # 555 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: enum Histograms : uint32_t { 29761: DB_GET = 0, 29761: DB_WRITE, 29761: COMPACTION_TIME, 29761: COMPACTION_CPU_TIME, 29761: SUBCOMPACTION_SETUP_TIME, 29761: TABLE_SYNC_MICROS, 29761: COMPACTION_OUTFILE_SYNC_MICROS, 29761: WAL_FILE_SYNC_MICROS, 29761: MANIFEST_FILE_SYNC_MICROS, 29761: 29761: TABLE_OPEN_IO_MICROS, 29761: DB_MULTIGET, 29761: READ_BLOCK_COMPACTION_MICROS, 29761: READ_BLOCK_GET_MICROS, 29761: WRITE_RAW_BLOCK_MICROS, 29761: NUM_FILES_IN_SINGLE_COMPACTION, 29761: DB_SEEK, 29761: WRITE_STALL, 29761: 29761: SST_READ_MICROS, 29761: 29761: 29761: FILE_READ_FLUSH_MICROS, 29761: FILE_READ_COMPACTION_MICROS, 29761: FILE_READ_DB_OPEN_MICROS, 29761: 29761: 29761: FILE_READ_GET_MICROS, 29761: FILE_READ_MULTIGET_MICROS, 29761: FILE_READ_DB_ITERATOR_MICROS, 29761: FILE_READ_VERIFY_DB_CHECKSUM_MICROS, 29761: FILE_READ_VERIFY_FILE_CHECKSUMS_MICROS, 29761: 29761: 29761: SST_WRITE_MICROS, 29761: 29761: 29761: FILE_WRITE_FLUSH_MICROS, 29761: FILE_WRITE_COMPACTION_MICROS, 29761: FILE_WRITE_DB_OPEN_MICROS, 29761: 29761: 29761: NUM_SUBCOMPACTIONS_SCHEDULED, 29761: 29761: BYTES_PER_READ, 29761: BYTES_PER_WRITE, 29761: BYTES_PER_MULTIGET, 29761: 29761: COMPRESSION_TIMES_NANOS, 29761: DECOMPRESSION_TIMES_NANOS, 29761: 29761: 29761: READ_NUM_MERGE_OPERANDS, 29761: 29761: 29761: 29761: BLOB_DB_KEY_SIZE, 29761: 29761: BLOB_DB_VALUE_SIZE, 29761: 29761: 29761: BLOB_DB_WRITE_MICROS, 29761: 29761: BLOB_DB_GET_MICROS, 29761: 29761: BLOB_DB_MULTIGET_MICROS, 29761: 29761: 29761: BLOB_DB_SEEK_MICROS, 29761: 29761: BLOB_DB_NEXT_MICROS, 29761: 29761: BLOB_DB_PREV_MICROS, 29761: 29761: BLOB_DB_BLOB_FILE_WRITE_MICROS, 29761: 29761: BLOB_DB_BLOB_FILE_READ_MICROS, 29761: 29761: BLOB_DB_BLOB_FILE_SYNC_MICROS, 29761: 29761: BLOB_DB_COMPRESSION_MICROS, 29761: 29761: BLOB_DB_DECOMPRESSION_MICROS, 29761: 29761: FLUSH_TIME, 29761: SST_BATCH_SIZE, 29761: 29761: 29761: MULTIGET_IO_BATCH_SIZE, 29761: 29761: 29761: NUM_INDEX_AND_FILTER_BLOCKS_READ_PER_LEVEL, 29761: 29761: NUM_SST_READ_PER_LEVEL, 29761: 29761: NUM_LEVEL_READ_PER_MULTIGET, 29761: 29761: 29761: ERROR_HANDLER_AUTORESUME_RETRY_COUNT, 29761: 29761: 29761: ASYNC_READ_BYTES, 29761: POLL_WAIT_MICROS, 29761: 29761: 29761: PREFETCHED_BYTES_DISCARDED, 29761: 29761: 29761: ASYNC_PREFETCH_ABORT_MICROS, 29761: 29761: 29761: 29761: TABLE_OPEN_PREFETCH_TAIL_READ_BYTES, 29761: 29761: HISTOGRAM_ENUM_MAX 29761: }; 29761: 29761: extern const std::vector> HistogramsNameMap; 29761: 29761: struct HistogramData { 29761: double median; 29761: double percentile95; 29761: double percentile99; 29761: double average; 29761: double standard_deviation; 29761: 29761: 29761: double max = 0.0; 29761: uint64_t count = 0; 29761: uint64_t sum = 0; 29761: double min = 0.0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: enum StatsLevel : uint8_t { 29761: 29761: kDisableAll, 29761: 29761: kExceptTickers = kDisableAll, 29761: 29761: kExceptHistogramOrTimers, 29761: 29761: kExceptTimers, 29761: 29761: 29761: kExceptDetailedTimers, 29761: 29761: 29761: kExceptTimeForMutex, 29761: 29761: 29761: 29761: kAll, 29761: }; 29761: # 727 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: class Statistics : public Customizable { 29761: public: 29761: ~Statistics() override {} 29761: static const char* Type() { return "Statistics"; } 29761: static Status CreateFromString(const ConfigOptions& opts, 29761: const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: const char* Name() const override { return ""; } 29761: virtual uint64_t getTickerCount(uint32_t tickerType) const = 0; 29761: virtual void histogramData(uint32_t type, 29761: HistogramData* const data) const = 0; 29761: virtual std::string getHistogramString(uint32_t ) const { return ""; } 29761: virtual void recordTick(uint32_t tickerType, uint64_t count = 1) = 0; 29761: virtual void setTickerCount(uint32_t tickerType, uint64_t count) = 0; 29761: virtual uint64_t getAndResetTickerCount(uint32_t tickerType) = 0; 29761: virtual void reportTimeToHistogram(uint32_t histogramType, uint64_t time) { 29761: if (get_stats_level() <= StatsLevel::kExceptTimers) { 29761: return; 29761: } 29761: recordInHistogram(histogramType, time); 29761: } 29761: 29761: 29761: 29761: virtual void measureTime(uint32_t , uint64_t ) { 29761: 29761: 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29761: (static_cast ( 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: false 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: "false" 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: ; 29761: } 29761: virtual void recordInHistogram(uint32_t histogramType, uint64_t time) { 29761: 29761: 29761: 29761: 29761: measureTime(histogramType, time); 29761: } 29761: 29761: 29761: virtual Status Reset() { return Status::NotSupported("Not implemented"); } 29761: 29761: using Customizable::ToString; 29761: 29761: virtual std::string ToString() const { 29761: 29761: return std::string("ToString(): not implemented"); 29761: } 29761: 29761: virtual bool getTickerMap(std::map*) const { 29761: 29761: return false; 29761: } 29761: 29761: 29761: virtual bool HistEnabledForType(uint32_t type) const { 29761: return type < HISTOGRAM_ENUM_MAX; 29761: } 29761: void set_stats_level(StatsLevel sl) { 29761: stats_level_.store(sl, std::memory_order_relaxed); 29761: } 29761: StatsLevel get_stats_level() const { 29761: return stats_level_.load(std::memory_order_relaxed); 29761: } 29761: 29761: private: 29761: std::atomic stats_level_{kExceptDetailedTimers}; 29761: }; 29761: 29761: 29761: std::shared_ptr CreateDBStatistics(); 29761: 29761: } 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class HistogramBucketMapper { 29761: public: 29761: HistogramBucketMapper(); 29761: 29761: 29761: size_t IndexForValue(uint64_t value) const; 29761: 29761: 29761: size_t BucketCount() const { return bucketValues_.size(); } 29761: 29761: uint64_t LastValue() const { return maxBucketValue_; } 29761: 29761: uint64_t FirstValue() const { return minBucketValue_; } 29761: 29761: uint64_t BucketLimit(const size_t bucketNumber) const { 29761: 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29761: (static_cast ( 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29761: bucketNumber < BucketCount() 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29761: "bucketNumber < BucketCount()" 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29761: ; 29761: return bucketValues_[bucketNumber]; 29761: } 29761: 29761: private: 29761: std::vector bucketValues_; 29761: uint64_t maxBucketValue_; 29761: uint64_t minBucketValue_; 29761: }; 29761: 29761: struct HistogramStat { 29761: HistogramStat(); 29761: ~HistogramStat() {} 29761: 29761: HistogramStat(const HistogramStat&) = delete; 29761: HistogramStat& operator=(const HistogramStat&) = delete; 29761: 29761: void Clear(); 29761: bool Empty() const; 29761: void Add(uint64_t value); 29761: void Merge(const HistogramStat& other); 29761: 29761: inline uint64_t min() const { return min_.load(std::memory_order_relaxed); } 29761: inline uint64_t max() const { return max_.load(std::memory_order_relaxed); } 29761: inline uint64_t num() const { return num_.load(std::memory_order_relaxed); } 29761: inline uint64_t sum() const { return sum_.load(std::memory_order_relaxed); } 29761: inline uint64_t sum_squares() const { 29761: return sum_squares_.load(std::memory_order_relaxed); 29761: } 29761: inline uint64_t bucket_at(size_t b) const { 29761: return buckets_[b].load(std::memory_order_relaxed); 29761: } 29761: 29761: double Median() const; 29761: double Percentile(double p) const; 29761: double Average() const; 29761: double StandardDeviation() const; 29761: void Data(HistogramData* const data) const; 29761: std::string ToString() const; 29761: 29761: 29761: 29761: 29761: std::atomic_uint_fast64_t min_; 29761: std::atomic_uint_fast64_t max_; 29761: std::atomic_uint_fast64_t num_; 29761: std::atomic_uint_fast64_t sum_; 29761: std::atomic_uint_fast64_t sum_squares_; 29761: std::atomic_uint_fast64_t buckets_[109]; 29761: const uint64_t num_buckets_; 29761: }; 29761: 29761: class Histogram { 29761: public: 29761: Histogram() {} 29761: virtual ~Histogram(){} 29761: 29761: virtual void Clear() = 0; 29761: virtual bool Empty() const = 0; 29761: virtual void Add(uint64_t value) = 0; 29761: virtual void Merge(const Histogram&) = 0; 29761: 29761: virtual std::string ToString() const = 0; 29761: virtual const char* Name() const = 0; 29761: virtual uint64_t min() const = 0; 29761: virtual uint64_t max() const = 0; 29761: virtual uint64_t num() const = 0; 29761: virtual double Median() const = 0; 29761: virtual double Percentile(double p) const = 0; 29761: virtual double Average() const = 0; 29761: virtual double StandardDeviation() const = 0; 29761: virtual void Data(HistogramData* const data) const = 0; 29761: }; 29761: 29761: class HistogramImpl : public Histogram { 29761: public: 29761: HistogramImpl() { Clear(); } 29761: 29761: HistogramImpl(const HistogramImpl&) = delete; 29761: HistogramImpl& operator=(const HistogramImpl&) = delete; 29761: 29761: void Clear() override; 29761: bool Empty() const override; 29761: void Add(uint64_t value) override; 29761: void Merge(const Histogram& other) override; 29761: void Merge(const HistogramImpl& other); 29761: 29761: std::string ToString() const override; 29761: const char* Name() const override { return "HistogramImpl"; } 29761: uint64_t min() const override { return stats_.min(); } 29761: uint64_t max() const override { return stats_.max(); } 29761: uint64_t num() const override { return stats_.num(); } 29761: double Median() const override; 29761: double Percentile(double p) const override; 29761: double Average() const override; 29761: double StandardDeviation() const override; 29761: void Data(HistogramData* const data) const override; 29761: 29761: virtual ~HistogramImpl() {} 29761: 29761: inline HistogramStat& TEST_GetStats() { return stats_; } 29761: 29761: private: 29761: HistogramStat stats_; 29761: std::mutex mutex_; 29761: }; 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/likely.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/port/likely.h" 29761: 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 2 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/lang.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/port/lang.h" 29761: constexpr bool kMustFreeHeapAllocations = false; 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 2 29761: 29761: 29761: static_assert(true, "Semicolon required"); 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: template 29761: inline T BottomNBits(T v, int nbits) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: (static_cast ( 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: nbits >= 0 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: "nbits >= 0" 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: ; 29761: 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: (static_cast ( 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: nbits < int{8 * sizeof(T)} 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: "nbits < int{8 * sizeof(T)}" 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: ; 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: return static_cast(v & ((T{1} << nbits) - 1)); 29761: } 29761: 29761: 29761: 29761: template 29761: inline int FloorLog2(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: (static_cast ( 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: v > 0 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: "v > 0" 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: ; 29761: # 74 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29761: if (sizeof(T) <= sizeof(unsigned int)) { 29761: int lz = __builtin_clz(static_cast(v)); 29761: return int{sizeof(unsigned int)} * 8 - 1 - lz; 29761: } else if (sizeof(T) <= sizeof(unsigned long)) { 29761: int lz = __builtin_clzl(static_cast(v)); 29761: return int{sizeof(unsigned long)} * 8 - 1 - lz; 29761: } else { 29761: int lz = __builtin_clzll(static_cast(v)); 29761: return int{sizeof(unsigned long long)} * 8 - 1 - lz; 29761: } 29761: 29761: } 29761: 29761: 29761: template 29761: constexpr int ConstexprFloorLog2(T v) { 29761: 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: int rv = 0; 29761: while (v > T{1}) { 29761: ++rv; 29761: v >>= 1; 29761: } 29761: return rv; 29761: } 29761: 29761: 29761: template 29761: inline int CountTrailingZeroBits(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: (static_cast ( 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: v != 0 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: "v != 0" 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: ; 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29761: if (sizeof(T) <= sizeof(unsigned int)) { 29761: return __builtin_ctz(static_cast(v)); 29761: } else if (sizeof(T) <= sizeof(unsigned long)) { 29761: return __builtin_ctzl(static_cast(v)); 29761: } else { 29761: return __builtin_ctzll(static_cast(v)); 29761: } 29761: 29761: } 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: template 29761: inline int BitsSetToOne(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: # 209 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29761: if (sizeof(T) < sizeof(unsigned int)) { 29761: 29761: constexpr auto mm = 8 * sizeof(unsigned int) - 1; 29761: 29761: constexpr unsigned int m = (1U << ((8 * sizeof(T)) & mm)) - 1; 29761: return __builtin_popcount(static_cast(v) & m); 29761: } else if (sizeof(T) == sizeof(unsigned int)) { 29761: return __builtin_popcount(static_cast(v)); 29761: } else if (sizeof(T) <= sizeof(unsigned long)) { 29761: return __builtin_popcountl(static_cast(v)); 29761: } else { 29761: return __builtin_popcountll(static_cast(v)); 29761: } 29761: 29761: } 29761: 29761: template 29761: inline int BitParity(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: 29761: 29761: 29761: 29761: 29761: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29761: if (sizeof(T) <= sizeof(unsigned int)) { 29761: 29761: return __builtin_parity(static_cast(v)); 29761: } else if (sizeof(T) <= sizeof(unsigned long)) { 29761: return __builtin_parityl(static_cast(v)); 29761: } else { 29761: return __builtin_parityll(static_cast(v)); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline T EndianSwapValue(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: if (sizeof(T) == 2) { 29761: return static_cast(__builtin_bswap16(static_cast(v))); 29761: } else if (sizeof(T) == 4) { 29761: return static_cast(__builtin_bswap32(static_cast(v))); 29761: } else if (sizeof(T) == 8) { 29761: return static_cast(__builtin_bswap64(static_cast(v))); 29761: } 29761: 29761: 29761: T ret_val = 0; 29761: for (std::size_t i = 0; i < sizeof(T); ++i) { 29761: ret_val |= ((v >> (8 * i)) & 0xff) << (8 * (sizeof(T) - 1 - i)); 29761: } 29761: return ret_val; 29761: } 29761: 29761: 29761: template 29761: inline T ReverseBits(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: 29761: T r = EndianSwapValue(v); 29761: const T kHighestByte = T{1} << ((sizeof(T) - 1) * 8); 29761: const T kEveryByte = kHighestByte | (kHighestByte / 255); 29761: 29761: r = ((r & (kEveryByte * 0x0f)) << 4) | ((r >> 4) & (kEveryByte * 0x0f)); 29761: r = ((r & (kEveryByte * 0x33)) << 2) | ((r >> 2) & (kEveryByte * 0x33)); 29761: r = ((r & (kEveryByte * 0x55)) << 1) | ((r >> 1) & (kEveryByte * 0x55)); 29761: 29761: return r; 29761: } 29761: # 317 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: template 29761: inline T DownwardInvolution(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: static_assert(sizeof(T) <= 8, "only supported up to 64 bits"); 29761: 29761: uint64_t r = static_cast(v); 29761: if constexpr (sizeof(T) > 4) { 29761: r ^= r >> 32; 29761: } 29761: if constexpr (sizeof(T) > 2) { 29761: r ^= (r & 0xffff0000ffff0000U) >> 16; 29761: } 29761: if constexpr (sizeof(T) > 1) { 29761: r ^= (r & 0xff00ff00ff00ff00U) >> 8; 29761: } 29761: r ^= (r & 0xf0f0f0f0f0f0f0f0U) >> 4; 29761: r ^= (r & 0xccccccccccccccccU) >> 2; 29761: r ^= (r & 0xaaaaaaaaaaaaaaaaU) >> 1; 29761: return static_cast(r); 29761: } 29761: 29761: 29761: 29761: template 29761: inline std::conditional_t BitwiseAnd(A a, B b) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: using Smaller = std::conditional_t; 29761: return static_cast(a & b); 29761: } 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/random" 1 3 29761: # 32 "/usr/include/c++/14/random" 3 29761: 29761: # 33 "/usr/include/c++/14/random" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cmath" 1 3 29761: # 39 "/usr/include/c++/14/cmath" 3 29761: 29761: # 40 "/usr/include/c++/14/cmath" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/math.h" 1 3 4 29761: # 27 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 28 "/usr/include/math.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 34 "/usr/include/math.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libm-simd-decl-stubs.h" 1 3 4 29761: # 28 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 2 3 4 29761: # 41 "/usr/include/math.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29761: # 44 "/usr/include/math.h" 2 3 4 29761: # 152 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/flt-eval-method.h" 1 3 4 29761: # 153 "/usr/include/math.h" 2 3 4 29761: # 163 "/usr/include/math.h" 3 4 29761: typedef float float_t; 29761: typedef double double_t; 29761: # 204 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-logb.h" 1 3 4 29761: # 205 "/usr/include/math.h" 2 3 4 29761: # 247 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-fast.h" 1 3 4 29761: # 248 "/usr/include/math.h" 2 3 4 29761: 29761: 29761: 29761: enum 29761: { 29761: FP_INT_UPWARD = 29761: 29761: 0, 29761: FP_INT_DOWNWARD = 29761: 29761: 1, 29761: FP_INT_TOWARDZERO = 29761: 29761: 2, 29761: FP_INT_TONEARESTFROMZERO = 29761: 29761: 3, 29761: FP_INT_TONEAREST = 29761: 29761: 4, 29761: }; 29761: # 312 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29761: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29761: extern int __fpclassify (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __signbit (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern int __isinf (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __finite (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __isnan (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __iseqsig (double __x, double __y) noexcept (true); 29761: 29761: 29761: extern int __issignaling (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: # 313 "/usr/include/math.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); 29761: 29761: extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); 29761: 29761: extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); 29761: 29761: extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); 29761: 29761: 29761: extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); 29761: 29761: extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); 29761: 29761: extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); 29761: 29761: extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); 29761: 29761: extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); 29761: 29761: extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); 29761: 29761: extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); 29761: 29761: 29761: extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); 29761: 29761: 29761: extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); 29761: 29761: 29761: extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); 29761: 29761: 29761: extern double exp2m1 (double __x) noexcept (true); extern double __exp2m1 (double __x) noexcept (true); 29761: 29761: 29761: extern double exp10m1 (double __x) noexcept (true); extern double __exp10m1 (double __x) noexcept (true); 29761: 29761: 29761: extern double log2p1 (double __x) noexcept (true); extern double __log2p1 (double __x) noexcept (true); 29761: 29761: 29761: extern double log10p1 (double __x) noexcept (true); extern double __log10p1 (double __x) noexcept (true); 29761: 29761: 29761: extern double logp1 (double __x) noexcept (true); extern double __logp1 (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); 29761: 29761: 29761: extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); 29761: 29761: 29761: extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); 29761: 29761: 29761: extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); 29761: 29761: 29761: extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); 29761: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern int finite (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); 29761: 29761: 29761: 29761: extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); 29761: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); 29761: extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); 29761: extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); 29761: extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); 29761: extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); 29761: extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); 29761: extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); 29761: extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); 29761: 29761: 29761: extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); 29761: 29761: extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); 29761: 29761: extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); 29761: 29761: 29761: 29761: extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); 29761: __extension__ 29761: extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); 29761: 29761: 29761: 29761: extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfp (double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfp (double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpx (double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpx (double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalize (double *__cx, const double *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int totalorder (const double *__x, const double *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermag (const double *__x, const double *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); 29761: 29761: 29761: extern int setpayload (double *__x, double __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsig (double *__x, double __payload) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); 29761: # 314 "/usr/include/math.h" 2 3 4 29761: # 329 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29761: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29761: extern int __fpclassifyf (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __signbitf (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern int __isinff (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __finitef (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __isnanf (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __iseqsigf (float __x, float __y) noexcept (true); 29761: 29761: 29761: extern int __issignalingf (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: # 330 "/usr/include/math.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); 29761: 29761: extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); 29761: 29761: extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); 29761: 29761: extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); 29761: 29761: 29761: extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); 29761: 29761: extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); 29761: 29761: extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); 29761: 29761: extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); 29761: 29761: extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); 29761: 29761: extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); 29761: 29761: extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); 29761: 29761: 29761: extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); 29761: 29761: 29761: extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); 29761: 29761: 29761: extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); 29761: 29761: 29761: extern float exp2m1f (float __x) noexcept (true); extern float __exp2m1f (float __x) noexcept (true); 29761: 29761: 29761: extern float exp10m1f (float __x) noexcept (true); extern float __exp10m1f (float __x) noexcept (true); 29761: 29761: 29761: extern float log2p1f (float __x) noexcept (true); extern float __log2p1f (float __x) noexcept (true); 29761: 29761: 29761: extern float log10p1f (float __x) noexcept (true); extern float __log10p1f (float __x) noexcept (true); 29761: 29761: 29761: extern float logp1f (float __x) noexcept (true); extern float __logp1f (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); 29761: 29761: 29761: extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); 29761: 29761: 29761: extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); 29761: 29761: 29761: extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); 29761: 29761: 29761: extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); 29761: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern int isinff (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int finitef (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); 29761: 29761: 29761: 29761: extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); 29761: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern int isnanf (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 29761: extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); 29761: extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); 29761: extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); 29761: extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); 29761: extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); 29761: extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); 29761: extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); 29761: extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); 29761: 29761: 29761: extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); 29761: 29761: extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); 29761: 29761: extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); 29761: 29761: 29761: 29761: extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); 29761: __extension__ 29761: extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); 29761: 29761: 29761: 29761: extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf (float __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf (float __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf (float __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalizef (float *__cx, const float *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int totalorderf (const float *__x, const float *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermagf (const float *__x, const float *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); 29761: 29761: 29761: extern int setpayloadf (float *__x, float __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsigf (float *__x, float __payload) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); 29761: # 331 "/usr/include/math.h" 2 3 4 29761: # 398 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29761: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29761: extern int __fpclassifyl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __signbitl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern int __isinfl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __finitel (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __isnanl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __iseqsigl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern int __issignalingl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: # 399 "/usr/include/math.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); 29761: 29761: extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); 29761: 29761: extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); 29761: 29761: extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); 29761: 29761: 29761: extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); 29761: 29761: extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); 29761: 29761: extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); 29761: 29761: extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); 29761: 29761: extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 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) 29761: ; 29761: 29761: 29761: 29761: 29761: extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); 29761: 29761: extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); 29761: 29761: extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); 29761: 29761: 29761: extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); 29761: 29761: 29761: extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); 29761: 29761: 29761: 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))); 29761: 29761: 29761: 29761: extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double exp2m1l (long double __x) noexcept (true); extern long double __exp2m1l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double exp10m1l (long double __x) noexcept (true); extern long double __exp10m1l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double log2p1l (long double __x) noexcept (true); extern long double __log2p1l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double log10p1l (long double __x) noexcept (true); extern long double __log10p1l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double logp1l (long double __x) noexcept (true); extern long double __logp1l (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); 29761: 29761: 29761: extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); 29761: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern int isinfl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int finitel (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); 29761: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern int isnanl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 29761: extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); 29761: extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); 29761: extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); 29761: extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); 29761: extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); 29761: extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); 29761: extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); 29761: extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); 29761: 29761: 29761: extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); 29761: 29761: extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); 29761: 29761: extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 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); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); 29761: __extension__ 29761: extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: extern long double fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 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); 29761: 29761: 29761: 29761: 29761: extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpl (long double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern long double fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fmaximum_numl (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__)); 29761: 29761: 29761: extern long double fminimum_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__)); 29761: 29761: 29761: extern long double fmaximum_magl (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__)); 29761: 29761: 29761: extern long double fminimum_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__)); 29761: 29761: 29761: extern long double fmaximum_mag_numl (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__)); 29761: 29761: 29761: extern long double fminimum_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__)); 29761: 29761: 29761: 29761: 29761: extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); 29761: 29761: 29761: extern int setpayloadl (long double *__x, long double __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); 29761: # 400 "/usr/include/math.h" 2 3 4 29761: # 450 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 exp2m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2m1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 exp10m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10m1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 log2p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log2p1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 log10p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log10p1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 logp1f32 (_Float32 __x) noexcept (true); extern _Float32 __logp1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: 29761: 29761: extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); 29761: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); 29761: extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); 29761: extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); 29761: extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); 29761: extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); 29761: extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); 29761: extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); 29761: extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); 29761: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); 29761: __extension__ 29761: extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); 29761: 29761: 29761: extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 29761: # 451 "/usr/include/math.h" 2 3 4 29761: # 467 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 exp2m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2m1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 exp10m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10m1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 log2p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log2p1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 log10p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log10p1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 logp1f64 (_Float64 __x) noexcept (true); extern _Float64 __logp1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); 29761: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); 29761: extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); 29761: extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); 29761: extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); 29761: extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); 29761: extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); 29761: extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); 29761: extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); 29761: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); 29761: __extension__ 29761: extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); 29761: 29761: 29761: extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 29761: # 468 "/usr/include/math.h" 2 3 4 29761: # 501 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x exp2m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2m1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x exp10m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10m1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x log2p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log2p1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x log10p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log10p1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x logp1f32x (_Float32x __x) noexcept (true); extern _Float32x __logp1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); 29761: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); 29761: extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); 29761: extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); 29761: extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); 29761: extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); 29761: extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); 29761: extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); 29761: extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); 29761: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); 29761: __extension__ 29761: extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); 29761: 29761: 29761: extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 29761: # 502 "/usr/include/math.h" 2 3 4 29761: # 566 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern float fadd (double __x, double __y) noexcept (true); 29761: 29761: 29761: extern float fdiv (double __x, double __y) noexcept (true); 29761: 29761: 29761: extern float ffma (double __x, double __y, double __z) noexcept (true); 29761: 29761: 29761: extern float fmul (double __x, double __y) noexcept (true); 29761: 29761: 29761: extern float fsqrt (double __x) noexcept (true); 29761: 29761: 29761: extern float fsub (double __x, double __y) noexcept (true); 29761: # 567 "/usr/include/math.h" 2 3 4 29761: # 587 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern float faddl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern float fdivl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); 29761: 29761: 29761: extern float fmull (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern float fsqrtl (long double __x) noexcept (true); 29761: 29761: 29761: extern float fsubl (long double __x, long double __y) noexcept (true); 29761: # 588 "/usr/include/math.h" 2 3 4 29761: # 616 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern double daddl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern double ddivl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); 29761: 29761: 29761: extern double dmull (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern double dsqrtl (long double __x) noexcept (true); 29761: 29761: 29761: extern double dsubl (long double __x, long double __y) noexcept (true); 29761: # 617 "/usr/include/math.h" 2 3 4 29761: # 697 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 29761: 29761: 29761: extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: # 698 "/usr/include/math.h" 2 3 4 29761: # 707 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29761: 29761: 29761: extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: # 708 "/usr/include/math.h" 2 3 4 29761: # 747 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29761: 29761: 29761: extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: # 748 "/usr/include/math.h" 2 3 4 29761: # 854 "/usr/include/math.h" 3 4 29761: extern int signgam; 29761: # 934 "/usr/include/math.h" 3 4 29761: enum 29761: { 29761: FP_NAN = 29761: 29761: 0, 29761: FP_INFINITE = 29761: 29761: 1, 29761: FP_ZERO = 29761: 29761: 2, 29761: FP_SUBNORMAL = 29761: 29761: 3, 29761: FP_NORMAL = 29761: 29761: 4 29761: }; 29761: # 1055 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/iscanonical.h" 1 3 4 29761: # 1056 "/usr/include/math.h" 2 3 4 29761: # 1067 "/usr/include/math.h" 3 4 29761: extern "C++" { 29761: inline int issignaling (float __val) { return __issignalingf (__val); } 29761: inline int issignaling (double __val) { return __issignaling (__val); } 29761: inline int 29761: issignaling (long double __val) 29761: { 29761: 29761: return __issignaling (__val); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 1098 "/usr/include/math.h" 3 4 29761: extern "C++" { 29761: # 1129 "/usr/include/math.h" 3 4 29761: template inline bool 29761: iszero (__T __val) 29761: { 29761: return __val == 0; 29761: } 29761: 29761: } 29761: # 1364 "/usr/include/math.h" 3 4 29761: extern "C++" { 29761: template struct __iseqsig_type; 29761: 29761: template<> struct __iseqsig_type 29761: { 29761: static int __call (float __x, float __y) throw () 29761: { 29761: return __iseqsigf (__x, __y); 29761: } 29761: }; 29761: 29761: template<> struct __iseqsig_type 29761: { 29761: static int __call (double __x, double __y) throw () 29761: { 29761: return __iseqsig (__x, __y); 29761: } 29761: }; 29761: 29761: template<> struct __iseqsig_type 29761: { 29761: static int __call (long double __x, long double __y) throw () 29761: { 29761: 29761: 29761: 29761: return __iseqsig (__x, __y); 29761: 29761: } 29761: }; 29761: 29761: 29761: template<> struct __iseqsig_type<_Float32> 29761: { 29761: static int __call (_Float32 __x, _Float32 __y) throw () 29761: { 29761: return __iseqsigf (__x, __y); 29761: } 29761: }; 29761: 29761: 29761: 29761: template<> struct __iseqsig_type<_Float64> 29761: { 29761: static int __call (_Float64 __x, _Float64 __y) throw () 29761: { 29761: return __iseqsig (__x, __y); 29761: } 29761: }; 29761: # 1432 "/usr/include/math.h" 3 4 29761: template<> struct __iseqsig_type<_Float32x> 29761: { 29761: static int __call (_Float32x __x, _Float32x __y) throw () 29761: { 29761: return __iseqsig (__x, __y); 29761: } 29761: }; 29761: # 1455 "/usr/include/math.h" 3 4 29761: template 29761: inline int 29761: iseqsig (_T1 __x, _T2 __y) throw () 29761: { 29761: 29761: typedef decltype (((__x) + (__y) + 0.0f)) _T3; 29761: 29761: 29761: 29761: return __iseqsig_type<_T3>::__call (__x, __y); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 48 "/usr/include/c++/14/cmath" 2 3 29761: # 56 "/usr/include/c++/14/cmath" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 57 "/usr/include/c++/14/cmath" 2 3 29761: # 83 "/usr/include/c++/14/cmath" 3 29761: extern "C++" 29761: { 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: using ::acos; 29761: 29761: 29761: inline constexpr float 29761: acos(float __x) 29761: { return __builtin_acosf(__x); } 29761: 29761: inline constexpr long double 29761: acos(long double __x) 29761: { return __builtin_acosl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: acos(_Tp __x) 29761: { return __builtin_acos(__x); } 29761: 29761: using ::asin; 29761: 29761: 29761: inline constexpr float 29761: asin(float __x) 29761: { return __builtin_asinf(__x); } 29761: 29761: inline constexpr long double 29761: asin(long double __x) 29761: { return __builtin_asinl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: asin(_Tp __x) 29761: { return __builtin_asin(__x); } 29761: 29761: using ::atan; 29761: 29761: 29761: inline constexpr float 29761: atan(float __x) 29761: { return __builtin_atanf(__x); } 29761: 29761: inline constexpr long double 29761: atan(long double __x) 29761: { return __builtin_atanl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: atan(_Tp __x) 29761: { return __builtin_atan(__x); } 29761: 29761: using ::atan2; 29761: 29761: 29761: inline constexpr float 29761: atan2(float __y, float __x) 29761: { return __builtin_atan2f(__y, __x); } 29761: 29761: inline constexpr long double 29761: atan2(long double __y, long double __x) 29761: { return __builtin_atan2l(__y, __x); } 29761: 29761: 29761: using ::ceil; 29761: 29761: 29761: inline constexpr float 29761: ceil(float __x) 29761: { return __builtin_ceilf(__x); } 29761: 29761: inline constexpr long double 29761: ceil(long double __x) 29761: { return __builtin_ceill(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: ceil(_Tp __x) 29761: { return __builtin_ceil(__x); } 29761: 29761: using ::cos; 29761: 29761: 29761: inline constexpr float 29761: cos(float __x) 29761: { return __builtin_cosf(__x); } 29761: 29761: inline constexpr long double 29761: cos(long double __x) 29761: { return __builtin_cosl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: cos(_Tp __x) 29761: { return __builtin_cos(__x); } 29761: 29761: using ::cosh; 29761: 29761: 29761: inline constexpr float 29761: cosh(float __x) 29761: { return __builtin_coshf(__x); } 29761: 29761: inline constexpr long double 29761: cosh(long double __x) 29761: { return __builtin_coshl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: cosh(_Tp __x) 29761: { return __builtin_cosh(__x); } 29761: 29761: using ::exp; 29761: 29761: 29761: inline constexpr float 29761: exp(float __x) 29761: { return __builtin_expf(__x); } 29761: 29761: inline constexpr long double 29761: exp(long double __x) 29761: { return __builtin_expl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: exp(_Tp __x) 29761: { return __builtin_exp(__x); } 29761: 29761: using ::fabs; 29761: 29761: 29761: inline constexpr float 29761: fabs(float __x) 29761: { return __builtin_fabsf(__x); } 29761: 29761: inline constexpr long double 29761: fabs(long double __x) 29761: { return __builtin_fabsl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: fabs(_Tp __x) 29761: { return __builtin_fabs(__x); } 29761: 29761: using ::floor; 29761: 29761: 29761: inline constexpr float 29761: floor(float __x) 29761: { return __builtin_floorf(__x); } 29761: 29761: inline constexpr long double 29761: floor(long double __x) 29761: { return __builtin_floorl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: floor(_Tp __x) 29761: { return __builtin_floor(__x); } 29761: 29761: using ::fmod; 29761: 29761: 29761: inline constexpr float 29761: fmod(float __x, float __y) 29761: { return __builtin_fmodf(__x, __y); } 29761: 29761: inline constexpr long double 29761: fmod(long double __x, long double __y) 29761: { return __builtin_fmodl(__x, __y); } 29761: 29761: 29761: using ::frexp; 29761: 29761: 29761: inline float 29761: frexp(float __x, int* __exp) 29761: { return __builtin_frexpf(__x, __exp); } 29761: 29761: inline long double 29761: frexp(long double __x, int* __exp) 29761: { return __builtin_frexpl(__x, __exp); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: frexp(_Tp __x, int* __exp) 29761: { return __builtin_frexp(__x, __exp); } 29761: 29761: using ::ldexp; 29761: 29761: 29761: inline constexpr float 29761: ldexp(float __x, int __exp) 29761: { return __builtin_ldexpf(__x, __exp); } 29761: 29761: inline constexpr long double 29761: ldexp(long double __x, int __exp) 29761: { return __builtin_ldexpl(__x, __exp); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: ldexp(_Tp __x, int __exp) 29761: { return __builtin_ldexp(__x, __exp); } 29761: 29761: using ::log; 29761: 29761: 29761: inline constexpr float 29761: log(float __x) 29761: { return __builtin_logf(__x); } 29761: 29761: inline constexpr long double 29761: log(long double __x) 29761: { return __builtin_logl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: log(_Tp __x) 29761: { return __builtin_log(__x); } 29761: 29761: using ::log10; 29761: 29761: 29761: inline constexpr float 29761: log10(float __x) 29761: { return __builtin_log10f(__x); } 29761: 29761: inline constexpr long double 29761: log10(long double __x) 29761: { return __builtin_log10l(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: log10(_Tp __x) 29761: { return __builtin_log10(__x); } 29761: 29761: using ::modf; 29761: 29761: 29761: inline float 29761: modf(float __x, float* __iptr) 29761: { return __builtin_modff(__x, __iptr); } 29761: 29761: inline long double 29761: modf(long double __x, long double* __iptr) 29761: { return __builtin_modfl(__x, __iptr); } 29761: 29761: 29761: using ::pow; 29761: 29761: 29761: inline constexpr float 29761: pow(float __x, float __y) 29761: { return __builtin_powf(__x, __y); } 29761: 29761: inline constexpr long double 29761: pow(long double __x, long double __y) 29761: { return __builtin_powl(__x, __y); } 29761: # 400 "/usr/include/c++/14/cmath" 3 29761: using ::sin; 29761: 29761: 29761: inline constexpr float 29761: sin(float __x) 29761: { return __builtin_sinf(__x); } 29761: 29761: inline constexpr long double 29761: sin(long double __x) 29761: { return __builtin_sinl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: sin(_Tp __x) 29761: { return __builtin_sin(__x); } 29761: 29761: using ::sinh; 29761: 29761: 29761: inline constexpr float 29761: sinh(float __x) 29761: { return __builtin_sinhf(__x); } 29761: 29761: inline constexpr long double 29761: sinh(long double __x) 29761: { return __builtin_sinhl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: sinh(_Tp __x) 29761: { return __builtin_sinh(__x); } 29761: 29761: using ::sqrt; 29761: 29761: 29761: inline constexpr float 29761: sqrt(float __x) 29761: { return __builtin_sqrtf(__x); } 29761: 29761: inline constexpr long double 29761: sqrt(long double __x) 29761: { return __builtin_sqrtl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: sqrt(_Tp __x) 29761: { return __builtin_sqrt(__x); } 29761: 29761: using ::tan; 29761: 29761: 29761: inline constexpr float 29761: tan(float __x) 29761: { return __builtin_tanf(__x); } 29761: 29761: inline constexpr long double 29761: tan(long double __x) 29761: { return __builtin_tanl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: tan(_Tp __x) 29761: { return __builtin_tan(__x); } 29761: 29761: using ::tanh; 29761: 29761: 29761: inline constexpr float 29761: tanh(float __x) 29761: { return __builtin_tanhf(__x); } 29761: 29761: inline constexpr long double 29761: tanh(long double __x) 29761: { return __builtin_tanhl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: tanh(_Tp __x) 29761: { return __builtin_tanh(__x); } 29761: # 1053 "/usr/include/c++/14/cmath" 3 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: atan2(_Tp __y, _Up __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return atan2(__type(__y), __type(__x)); 29761: } 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: fmod(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return fmod(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: pow(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return pow(__type(__x), __type(__y)); 29761: } 29761: # 1100 "/usr/include/c++/14/cmath" 3 29761: constexpr int 29761: fpclassify(float __x) 29761: { return __builtin_fpclassify(0, 1, 4, 29761: 3, 2, __x); } 29761: 29761: constexpr int 29761: fpclassify(double __x) 29761: { return __builtin_fpclassify(0, 1, 4, 29761: 3, 2, __x); } 29761: 29761: constexpr int 29761: fpclassify(long double __x) 29761: { return __builtin_fpclassify(0, 1, 4, 29761: 3, 2, __x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: int>::__type 29761: fpclassify(_Tp __x) 29761: { return __x != 0 ? 4 : 2; } 29761: 29761: 29761: 29761: constexpr bool 29761: isfinite(float __x) 29761: { return __builtin_isfinite(__x); } 29761: 29761: constexpr bool 29761: isfinite(double __x) 29761: { return __builtin_isfinite(__x); } 29761: 29761: constexpr bool 29761: isfinite(long double __x) 29761: { return __builtin_isfinite(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: bool>::__type 29761: isfinite(_Tp) 29761: { return true; } 29761: 29761: 29761: 29761: constexpr bool 29761: isinf(float __x) 29761: { return __builtin_isinf(__x); } 29761: 29761: 29761: 29761: 29761: 29761: constexpr bool 29761: isinf(double __x) 29761: { return __builtin_isinf(__x); } 29761: 29761: 29761: constexpr bool 29761: isinf(long double __x) 29761: { return __builtin_isinf(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: bool>::__type 29761: isinf(_Tp) 29761: { return false; } 29761: 29761: 29761: 29761: constexpr bool 29761: isnan(float __x) 29761: { return __builtin_isnan(__x); } 29761: 29761: 29761: 29761: 29761: 29761: constexpr bool 29761: isnan(double __x) 29761: { return __builtin_isnan(__x); } 29761: 29761: 29761: constexpr bool 29761: isnan(long double __x) 29761: { return __builtin_isnan(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: bool>::__type 29761: isnan(_Tp) 29761: { return false; } 29761: 29761: 29761: 29761: constexpr bool 29761: isnormal(float __x) 29761: { return __builtin_isnormal(__x); } 29761: 29761: constexpr bool 29761: isnormal(double __x) 29761: { return __builtin_isnormal(__x); } 29761: 29761: constexpr bool 29761: isnormal(long double __x) 29761: { return __builtin_isnormal(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: bool>::__type 29761: isnormal(_Tp __x) 29761: { return __x != 0 ? true : false; } 29761: 29761: 29761: 29761: 29761: constexpr bool 29761: signbit(float __x) 29761: { return __builtin_signbit(__x); } 29761: 29761: constexpr bool 29761: signbit(double __x) 29761: { return __builtin_signbit(__x); } 29761: 29761: constexpr bool 29761: signbit(long double __x) 29761: { return __builtin_signbit(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: bool>::__type 29761: signbit(_Tp __x) 29761: { return __x < 0 ? true : false; } 29761: 29761: 29761: 29761: constexpr bool 29761: isgreater(float __x, float __y) 29761: { return __builtin_isgreater(__x, __y); } 29761: 29761: constexpr bool 29761: isgreater(double __x, double __y) 29761: { return __builtin_isgreater(__x, __y); } 29761: 29761: constexpr bool 29761: isgreater(long double __x, long double __y) 29761: { return __builtin_isgreater(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: isgreater(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_isgreater(__type(__x), __type(__y)); 29761: } 29761: 29761: 29761: 29761: constexpr bool 29761: isgreaterequal(float __x, float __y) 29761: { return __builtin_isgreaterequal(__x, __y); } 29761: 29761: constexpr bool 29761: isgreaterequal(double __x, double __y) 29761: { return __builtin_isgreaterequal(__x, __y); } 29761: 29761: constexpr bool 29761: isgreaterequal(long double __x, long double __y) 29761: { return __builtin_isgreaterequal(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: isgreaterequal(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_isgreaterequal(__type(__x), __type(__y)); 29761: } 29761: 29761: 29761: 29761: constexpr bool 29761: isless(float __x, float __y) 29761: { return __builtin_isless(__x, __y); } 29761: 29761: constexpr bool 29761: isless(double __x, double __y) 29761: { return __builtin_isless(__x, __y); } 29761: 29761: constexpr bool 29761: isless(long double __x, long double __y) 29761: { return __builtin_isless(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: isless(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_isless(__type(__x), __type(__y)); 29761: } 29761: 29761: 29761: 29761: constexpr bool 29761: islessequal(float __x, float __y) 29761: { return __builtin_islessequal(__x, __y); } 29761: 29761: constexpr bool 29761: islessequal(double __x, double __y) 29761: { return __builtin_islessequal(__x, __y); } 29761: 29761: constexpr bool 29761: islessequal(long double __x, long double __y) 29761: { return __builtin_islessequal(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: islessequal(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_islessequal(__type(__x), __type(__y)); 29761: } 29761: 29761: 29761: 29761: constexpr bool 29761: islessgreater(float __x, float __y) 29761: { return __builtin_islessgreater(__x, __y); } 29761: 29761: constexpr bool 29761: islessgreater(double __x, double __y) 29761: { return __builtin_islessgreater(__x, __y); } 29761: 29761: constexpr bool 29761: islessgreater(long double __x, long double __y) 29761: { return __builtin_islessgreater(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: islessgreater(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_islessgreater(__type(__x), __type(__y)); 29761: } 29761: 29761: 29761: 29761: constexpr bool 29761: isunordered(float __x, float __y) 29761: { return __builtin_isunordered(__x, __y); } 29761: 29761: constexpr bool 29761: isunordered(double __x, double __y) 29761: { return __builtin_isunordered(__x, __y); } 29761: 29761: constexpr bool 29761: isunordered(long double __x, long double __y) 29761: { return __builtin_isunordered(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: isunordered(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_isunordered(__type(__x), __type(__y)); 29761: } 29761: # 1820 "/usr/include/c++/14/cmath" 3 29761: using ::acosf; 29761: 29761: 29761: using ::acosl; 29761: 29761: 29761: 29761: using ::asinf; 29761: 29761: 29761: using ::asinl; 29761: 29761: 29761: 29761: using ::atanf; 29761: 29761: 29761: using ::atanl; 29761: 29761: 29761: 29761: using ::atan2f; 29761: 29761: 29761: using ::atan2l; 29761: 29761: 29761: 29761: using ::ceilf; 29761: 29761: 29761: using ::ceill; 29761: 29761: 29761: 29761: using ::cosf; 29761: 29761: 29761: using ::cosl; 29761: 29761: 29761: 29761: using ::coshf; 29761: 29761: 29761: using ::coshl; 29761: 29761: 29761: 29761: using ::expf; 29761: 29761: 29761: using ::expl; 29761: 29761: 29761: 29761: using ::fabsf; 29761: 29761: 29761: using ::fabsl; 29761: 29761: 29761: 29761: using ::floorf; 29761: 29761: 29761: using ::floorl; 29761: 29761: 29761: 29761: using ::fmodf; 29761: 29761: 29761: using ::fmodl; 29761: 29761: 29761: 29761: using ::frexpf; 29761: 29761: 29761: using ::frexpl; 29761: 29761: 29761: 29761: using ::ldexpf; 29761: 29761: 29761: using ::ldexpl; 29761: 29761: 29761: 29761: using ::logf; 29761: 29761: 29761: using ::logl; 29761: 29761: 29761: 29761: using ::log10f; 29761: 29761: 29761: using ::log10l; 29761: 29761: 29761: 29761: using ::modff; 29761: 29761: 29761: using ::modfl; 29761: 29761: 29761: 29761: using ::powf; 29761: 29761: 29761: using ::powl; 29761: 29761: 29761: 29761: using ::sinf; 29761: 29761: 29761: using ::sinl; 29761: 29761: 29761: 29761: using ::sinhf; 29761: 29761: 29761: using ::sinhl; 29761: 29761: 29761: 29761: using ::sqrtf; 29761: 29761: 29761: using ::sqrtl; 29761: 29761: 29761: 29761: using ::tanf; 29761: 29761: 29761: using ::tanl; 29761: 29761: 29761: 29761: using ::tanhf; 29761: 29761: 29761: using ::tanhl; 29761: # 2085 "/usr/include/c++/14/cmath" 3 29761: using ::double_t; 29761: using ::float_t; 29761: 29761: 29761: 29761: using ::acosh; 29761: using ::acoshf; 29761: using ::acoshl; 29761: 29761: using ::asinh; 29761: using ::asinhf; 29761: using ::asinhl; 29761: 29761: using ::atanh; 29761: using ::atanhf; 29761: using ::atanhl; 29761: 29761: using ::cbrt; 29761: using ::cbrtf; 29761: using ::cbrtl; 29761: 29761: using ::copysign; 29761: using ::copysignf; 29761: using ::copysignl; 29761: 29761: using ::erf; 29761: using ::erff; 29761: using ::erfl; 29761: 29761: using ::erfc; 29761: using ::erfcf; 29761: using ::erfcl; 29761: 29761: using ::exp2; 29761: using ::exp2f; 29761: using ::exp2l; 29761: 29761: using ::expm1; 29761: using ::expm1f; 29761: using ::expm1l; 29761: 29761: using ::fdim; 29761: using ::fdimf; 29761: using ::fdiml; 29761: 29761: using ::fma; 29761: using ::fmaf; 29761: using ::fmal; 29761: 29761: using ::fmax; 29761: using ::fmaxf; 29761: using ::fmaxl; 29761: 29761: using ::fmin; 29761: using ::fminf; 29761: using ::fminl; 29761: 29761: using ::hypot; 29761: using ::hypotf; 29761: using ::hypotl; 29761: 29761: using ::ilogb; 29761: using ::ilogbf; 29761: using ::ilogbl; 29761: 29761: using ::lgamma; 29761: using ::lgammaf; 29761: using ::lgammal; 29761: 29761: 29761: using ::llrint; 29761: using ::llrintf; 29761: using ::llrintl; 29761: 29761: using ::llround; 29761: using ::llroundf; 29761: using ::llroundl; 29761: 29761: 29761: using ::log1p; 29761: using ::log1pf; 29761: using ::log1pl; 29761: 29761: using ::log2; 29761: using ::log2f; 29761: using ::log2l; 29761: 29761: using ::logb; 29761: using ::logbf; 29761: using ::logbl; 29761: 29761: using ::lrint; 29761: using ::lrintf; 29761: using ::lrintl; 29761: 29761: using ::lround; 29761: using ::lroundf; 29761: using ::lroundl; 29761: 29761: using ::nan; 29761: using ::nanf; 29761: using ::nanl; 29761: 29761: using ::nearbyint; 29761: using ::nearbyintf; 29761: using ::nearbyintl; 29761: 29761: using ::nextafter; 29761: using ::nextafterf; 29761: using ::nextafterl; 29761: 29761: using ::nexttoward; 29761: using ::nexttowardf; 29761: using ::nexttowardl; 29761: 29761: using ::remainder; 29761: using ::remainderf; 29761: using ::remainderl; 29761: 29761: using ::remquo; 29761: using ::remquof; 29761: using ::remquol; 29761: 29761: using ::rint; 29761: using ::rintf; 29761: using ::rintl; 29761: 29761: using ::round; 29761: using ::roundf; 29761: using ::roundl; 29761: 29761: using ::scalbln; 29761: using ::scalblnf; 29761: using ::scalblnl; 29761: 29761: using ::scalbn; 29761: using ::scalbnf; 29761: using ::scalbnl; 29761: 29761: using ::tgamma; 29761: using ::tgammaf; 29761: using ::tgammal; 29761: 29761: using ::trunc; 29761: using ::truncf; 29761: using ::truncl; 29761: 29761: 29761: 29761: constexpr float 29761: acosh(float __x) 29761: { return __builtin_acoshf(__x); } 29761: 29761: constexpr long double 29761: acosh(long double __x) 29761: { return __builtin_acoshl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: acosh(_Tp __x) 29761: { return __builtin_acosh(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: asinh(float __x) 29761: { return __builtin_asinhf(__x); } 29761: 29761: constexpr long double 29761: asinh(long double __x) 29761: { return __builtin_asinhl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: asinh(_Tp __x) 29761: { return __builtin_asinh(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: atanh(float __x) 29761: { return __builtin_atanhf(__x); } 29761: 29761: constexpr long double 29761: atanh(long double __x) 29761: { return __builtin_atanhl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: atanh(_Tp __x) 29761: { return __builtin_atanh(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: cbrt(float __x) 29761: { return __builtin_cbrtf(__x); } 29761: 29761: constexpr long double 29761: cbrt(long double __x) 29761: { return __builtin_cbrtl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: cbrt(_Tp __x) 29761: { return __builtin_cbrt(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: copysign(float __x, float __y) 29761: { return __builtin_copysignf(__x, __y); } 29761: 29761: constexpr long double 29761: copysign(long double __x, long double __y) 29761: { return __builtin_copysignl(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: erf(float __x) 29761: { return __builtin_erff(__x); } 29761: 29761: constexpr long double 29761: erf(long double __x) 29761: { return __builtin_erfl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: erf(_Tp __x) 29761: { return __builtin_erf(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: erfc(float __x) 29761: { return __builtin_erfcf(__x); } 29761: 29761: constexpr long double 29761: erfc(long double __x) 29761: { return __builtin_erfcl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: erfc(_Tp __x) 29761: { return __builtin_erfc(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: exp2(float __x) 29761: { return __builtin_exp2f(__x); } 29761: 29761: constexpr long double 29761: exp2(long double __x) 29761: { return __builtin_exp2l(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: exp2(_Tp __x) 29761: { return __builtin_exp2(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: expm1(float __x) 29761: { return __builtin_expm1f(__x); } 29761: 29761: constexpr long double 29761: expm1(long double __x) 29761: { return __builtin_expm1l(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: expm1(_Tp __x) 29761: { return __builtin_expm1(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: fdim(float __x, float __y) 29761: { return __builtin_fdimf(__x, __y); } 29761: 29761: constexpr long double 29761: fdim(long double __x, long double __y) 29761: { return __builtin_fdiml(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: fma(float __x, float __y, float __z) 29761: { return __builtin_fmaf(__x, __y, __z); } 29761: 29761: constexpr long double 29761: fma(long double __x, long double __y, long double __z) 29761: { return __builtin_fmal(__x, __y, __z); } 29761: 29761: 29761: 29761: constexpr float 29761: fmax(float __x, float __y) 29761: { return __builtin_fmaxf(__x, __y); } 29761: 29761: constexpr long double 29761: fmax(long double __x, long double __y) 29761: { return __builtin_fmaxl(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: fmin(float __x, float __y) 29761: { return __builtin_fminf(__x, __y); } 29761: 29761: constexpr long double 29761: fmin(long double __x, long double __y) 29761: { return __builtin_fminl(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: hypot(float __x, float __y) 29761: { return __builtin_hypotf(__x, __y); } 29761: 29761: constexpr long double 29761: hypot(long double __x, long double __y) 29761: { return __builtin_hypotl(__x, __y); } 29761: 29761: 29761: 29761: constexpr int 29761: ilogb(float __x) 29761: { return __builtin_ilogbf(__x); } 29761: 29761: constexpr int 29761: ilogb(long double __x) 29761: { return __builtin_ilogbl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: int>::__type 29761: ilogb(_Tp __x) 29761: { return __builtin_ilogb(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: lgamma(float __x) 29761: { return __builtin_lgammaf(__x); } 29761: 29761: constexpr long double 29761: lgamma(long double __x) 29761: { return __builtin_lgammal(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: lgamma(_Tp __x) 29761: { return __builtin_lgamma(__x); } 29761: 29761: 29761: 29761: constexpr long long 29761: llrint(float __x) 29761: { return __builtin_llrintf(__x); } 29761: 29761: constexpr long long 29761: llrint(long double __x) 29761: { return __builtin_llrintl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: long long>::__type 29761: llrint(_Tp __x) 29761: { return __builtin_llrint(__x); } 29761: 29761: 29761: 29761: constexpr long long 29761: llround(float __x) 29761: { return __builtin_llroundf(__x); } 29761: 29761: constexpr long long 29761: llround(long double __x) 29761: { return __builtin_llroundl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: long long>::__type 29761: llround(_Tp __x) 29761: { return __builtin_llround(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: log1p(float __x) 29761: { return __builtin_log1pf(__x); } 29761: 29761: constexpr long double 29761: log1p(long double __x) 29761: { return __builtin_log1pl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: log1p(_Tp __x) 29761: { return __builtin_log1p(__x); } 29761: 29761: 29761: 29761: 29761: constexpr float 29761: log2(float __x) 29761: { return __builtin_log2f(__x); } 29761: 29761: constexpr long double 29761: log2(long double __x) 29761: { return __builtin_log2l(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: log2(_Tp __x) 29761: { return __builtin_log2(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: logb(float __x) 29761: { return __builtin_logbf(__x); } 29761: 29761: constexpr long double 29761: logb(long double __x) 29761: { return __builtin_logbl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: logb(_Tp __x) 29761: { return __builtin_logb(__x); } 29761: 29761: 29761: 29761: constexpr long 29761: lrint(float __x) 29761: { return __builtin_lrintf(__x); } 29761: 29761: constexpr long 29761: lrint(long double __x) 29761: { return __builtin_lrintl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: long>::__type 29761: lrint(_Tp __x) 29761: { return __builtin_lrint(__x); } 29761: 29761: 29761: 29761: constexpr long 29761: lround(float __x) 29761: { return __builtin_lroundf(__x); } 29761: 29761: constexpr long 29761: lround(long double __x) 29761: { return __builtin_lroundl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: long>::__type 29761: lround(_Tp __x) 29761: { return __builtin_lround(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: nearbyint(float __x) 29761: { return __builtin_nearbyintf(__x); } 29761: 29761: constexpr long double 29761: nearbyint(long double __x) 29761: { return __builtin_nearbyintl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: nearbyint(_Tp __x) 29761: { return __builtin_nearbyint(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: nextafter(float __x, float __y) 29761: { return __builtin_nextafterf(__x, __y); } 29761: 29761: constexpr long double 29761: nextafter(long double __x, long double __y) 29761: { return __builtin_nextafterl(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: nexttoward(float __x, long double __y) 29761: { return __builtin_nexttowardf(__x, __y); } 29761: 29761: constexpr long double 29761: nexttoward(long double __x, long double __y) 29761: { return __builtin_nexttowardl(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: nexttoward(_Tp __x, long double __y) 29761: { return __builtin_nexttoward(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: remainder(float __x, float __y) 29761: { return __builtin_remainderf(__x, __y); } 29761: 29761: constexpr long double 29761: remainder(long double __x, long double __y) 29761: { return __builtin_remainderl(__x, __y); } 29761: 29761: 29761: 29761: inline float 29761: remquo(float __x, float __y, int* __pquo) 29761: { return __builtin_remquof(__x, __y, __pquo); } 29761: 29761: inline long double 29761: remquo(long double __x, long double __y, int* __pquo) 29761: { return __builtin_remquol(__x, __y, __pquo); } 29761: 29761: 29761: 29761: constexpr float 29761: rint(float __x) 29761: { return __builtin_rintf(__x); } 29761: 29761: constexpr long double 29761: rint(long double __x) 29761: { return __builtin_rintl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: rint(_Tp __x) 29761: { return __builtin_rint(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: round(float __x) 29761: { return __builtin_roundf(__x); } 29761: 29761: constexpr long double 29761: round(long double __x) 29761: { return __builtin_roundl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: round(_Tp __x) 29761: { return __builtin_round(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: scalbln(float __x, long __ex) 29761: { return __builtin_scalblnf(__x, __ex); } 29761: 29761: constexpr long double 29761: scalbln(long double __x, long __ex) 29761: { return __builtin_scalblnl(__x, __ex); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: scalbln(_Tp __x, long __ex) 29761: { return __builtin_scalbln(__x, __ex); } 29761: 29761: 29761: 29761: constexpr float 29761: scalbn(float __x, int __ex) 29761: { return __builtin_scalbnf(__x, __ex); } 29761: 29761: constexpr long double 29761: scalbn(long double __x, int __ex) 29761: { return __builtin_scalbnl(__x, __ex); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: scalbn(_Tp __x, int __ex) 29761: { return __builtin_scalbn(__x, __ex); } 29761: 29761: 29761: 29761: constexpr float 29761: tgamma(float __x) 29761: { return __builtin_tgammaf(__x); } 29761: 29761: constexpr long double 29761: tgamma(long double __x) 29761: { return __builtin_tgammal(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: tgamma(_Tp __x) 29761: { return __builtin_tgamma(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: trunc(float __x) 29761: { return __builtin_truncf(__x); } 29761: 29761: constexpr long double 29761: trunc(long double __x) 29761: { return __builtin_truncl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: trunc(_Tp __x) 29761: { return __builtin_trunc(__x); } 29761: # 3682 "/usr/include/c++/14/cmath" 3 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: copysign(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return copysign(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: fdim(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return fdim(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: fmax(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return fmax(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: fmin(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return fmin(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: hypot(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return hypot(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: nextafter(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return nextafter(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: remainder(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return remainder(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: remquo(_Tp __x, _Up __y, int* __pquo) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return remquo(__type(__x), __type(__y), __pquo); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type 29761: fma(_Tp __x, _Up __y, _Vp __z) 29761: { 29761: typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; 29761: return fma(__type(__x), __type(__y), __type(__z)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline _Tp 29761: __hypot3(_Tp __x, _Tp __y, _Tp __z) 29761: { 29761: __x = std::abs(__x); 29761: __y = std::abs(__y); 29761: __z = std::abs(__z); 29761: if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) 29761: return __a * std::sqrt((__x / __a) * (__x / __a) 29761: + (__y / __a) * (__y / __a) 29761: + (__z / __a) * (__z / __a)); 29761: else 29761: return {}; 29761: } 29761: 29761: inline float 29761: hypot(float __x, float __y, float __z) 29761: { return std::__hypot3(__x, __y, __z); } 29761: 29761: inline double 29761: hypot(double __x, double __y, double __z) 29761: { return std::__hypot3(__x, __y, __z); } 29761: 29761: inline long double 29761: hypot(long double __x, long double __y, long double __z) 29761: { return std::__hypot3(__x, __y, __z); } 29761: 29761: template 29761: __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> 29761: hypot(_Tp __x, _Up __y, _Vp __z) 29761: { 29761: using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; 29761: return std::__hypot3<__type>(__x, __y, __z); 29761: } 29761: # 3902 "/usr/include/c++/14/cmath" 3 29761: 29761: } 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/specfun.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/specfun.h" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 38 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 47 "/usr/include/c++/14/bits/specfun.h" 3 29761: # 1 "/usr/include/c++/14/tr1/gamma.tcc" 1 3 29761: # 49 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: # 1 "/usr/include/c++/14/tr1/special_function_util.h" 1 3 29761: # 39 "/usr/include/c++/14/tr1/special_function_util.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 50 "/usr/include/c++/14/tr1/special_function_util.h" 3 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: template 29761: struct __floating_point_constant 29761: { 29761: static const _Tp __value; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __numeric_constants 29761: { 29761: 29761: static _Tp __pi() throw() 29761: { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } 29761: 29761: static _Tp __pi_2() throw() 29761: { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } 29761: 29761: static _Tp __pi_3() throw() 29761: { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } 29761: 29761: static _Tp __pi_4() throw() 29761: { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } 29761: 29761: static _Tp __1_pi() throw() 29761: { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } 29761: 29761: static _Tp __2_sqrtpi() throw() 29761: { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } 29761: 29761: static _Tp __sqrt2() throw() 29761: { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } 29761: 29761: static _Tp __sqrt3() throw() 29761: { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } 29761: 29761: static _Tp __sqrtpio2() throw() 29761: { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } 29761: 29761: static _Tp __sqrt1_2() throw() 29761: { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } 29761: 29761: static _Tp __lnpi() throw() 29761: { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } 29761: 29761: static _Tp __gamma_e() throw() 29761: { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } 29761: 29761: static _Tp __euler() throw() 29761: { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } 29761: }; 29761: # 114 "/usr/include/c++/14/tr1/special_function_util.h" 3 29761: template 29761: inline bool __isnan(_Tp __x) 29761: { return std::isnan(__x); } 29761: # 133 "/usr/include/c++/14/tr1/special_function_util.h" 3 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 50 "/usr/include/c++/14/tr1/gamma.tcc" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 65 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: namespace __detail 29761: { 29761: # 76 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __bernoulli_series(unsigned int __n) 29761: { 29761: 29761: static const _Tp __num[28] = { 29761: _Tp(1UL), -_Tp(1UL) / _Tp(2UL), 29761: _Tp(1UL) / _Tp(6UL), _Tp(0UL), 29761: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 29761: _Tp(1UL) / _Tp(42UL), _Tp(0UL), 29761: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 29761: _Tp(5UL) / _Tp(66UL), _Tp(0UL), 29761: -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), 29761: _Tp(7UL) / _Tp(6UL), _Tp(0UL), 29761: -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), 29761: _Tp(43867UL) / _Tp(798UL), _Tp(0UL), 29761: -_Tp(174611) / _Tp(330UL), _Tp(0UL), 29761: _Tp(854513UL) / _Tp(138UL), _Tp(0UL), 29761: -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), 29761: _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) 29761: }; 29761: 29761: if (__n == 0) 29761: return _Tp(1); 29761: 29761: if (__n == 1) 29761: return -_Tp(1) / _Tp(2); 29761: 29761: 29761: if (__n % 2 == 1) 29761: return _Tp(0); 29761: 29761: 29761: if (__n < 28) 29761: return __num[__n]; 29761: 29761: 29761: _Tp __fact = _Tp(1); 29761: if ((__n / 2) % 2 == 0) 29761: __fact *= _Tp(-1); 29761: for (unsigned int __k = 1; __k <= __n; ++__k) 29761: __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); 29761: __fact *= _Tp(2); 29761: 29761: _Tp __sum = _Tp(0); 29761: for (unsigned int __i = 1; __i < 1000; ++__i) 29761: { 29761: _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); 29761: if (__term < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __sum += __term; 29761: } 29761: 29761: return __fact * __sum; 29761: } 29761: # 139 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: inline _Tp 29761: __bernoulli(int __n) 29761: { return __bernoulli_series<_Tp>(__n); } 29761: # 153 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __log_gamma_bernoulli(_Tp __x) 29761: { 29761: _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x 29761: + _Tp(0.5L) * std::log(_Tp(2) 29761: * __numeric_constants<_Tp>::__pi()); 29761: 29761: const _Tp __xx = __x * __x; 29761: _Tp __help = _Tp(1) / __x; 29761: for ( unsigned int __i = 1; __i < 20; ++__i ) 29761: { 29761: const _Tp __2i = _Tp(2 * __i); 29761: __help /= __2i * (__2i - _Tp(1)) * __xx; 29761: __lg += __bernoulli<_Tp>(2 * __i) * __help; 29761: } 29761: 29761: return __lg; 29761: } 29761: # 181 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __log_gamma_lanczos(_Tp __x) 29761: { 29761: const _Tp __xm1 = __x - _Tp(1); 29761: 29761: static const _Tp __lanczos_cheb_7[9] = { 29761: _Tp( 0.99999999999980993227684700473478L), 29761: _Tp( 676.520368121885098567009190444019L), 29761: _Tp(-1259.13921672240287047156078755283L), 29761: _Tp( 771.3234287776530788486528258894L), 29761: _Tp(-176.61502916214059906584551354L), 29761: _Tp( 12.507343278686904814458936853L), 29761: _Tp(-0.13857109526572011689554707L), 29761: _Tp( 9.984369578019570859563e-6L), 29761: _Tp( 1.50563273514931155834e-7L) 29761: }; 29761: 29761: static const _Tp __LOGROOT2PI 29761: = _Tp(0.9189385332046727417803297364056176L); 29761: 29761: _Tp __sum = __lanczos_cheb_7[0]; 29761: for(unsigned int __k = 1; __k < 9; ++__k) 29761: __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); 29761: 29761: const _Tp __term1 = (__xm1 + _Tp(0.5L)) 29761: * std::log((__xm1 + _Tp(7.5L)) 29761: / __numeric_constants<_Tp>::__euler()); 29761: const _Tp __term2 = __LOGROOT2PI + std::log(__sum); 29761: const _Tp __result = __term1 + (__term2 - _Tp(7)); 29761: 29761: return __result; 29761: } 29761: # 225 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __log_gamma(_Tp __x) 29761: { 29761: if (__x > _Tp(0.5L)) 29761: return __log_gamma_lanczos(__x); 29761: else 29761: { 29761: const _Tp __sin_fact 29761: = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); 29761: if (__sin_fact == _Tp(0)) 29761: std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") 29761: ); 29761: return __numeric_constants<_Tp>::__lnpi() 29761: - std::log(__sin_fact) 29761: - __log_gamma_lanczos(_Tp(1) - __x); 29761: } 29761: } 29761: # 252 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __log_gamma_sign(_Tp __x) 29761: { 29761: if (__x > _Tp(0)) 29761: return _Tp(1); 29761: else 29761: { 29761: const _Tp __sin_fact 29761: = std::sin(__numeric_constants<_Tp>::__pi() * __x); 29761: if (__sin_fact > _Tp(0)) 29761: return (1); 29761: else if (__sin_fact < _Tp(0)) 29761: return -_Tp(1); 29761: else 29761: return _Tp(0); 29761: } 29761: } 29761: # 283 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __log_bincoef(unsigned int __n, unsigned int __k) 29761: { 29761: 29761: static const _Tp __max_bincoeff 29761: = std::numeric_limits<_Tp>::max_exponent10 29761: * std::log(_Tp(10)) - _Tp(1); 29761: 29761: _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) 29761: - ::std::lgamma(_Tp(1 + __k)) 29761: - ::std::lgamma(_Tp(1 + __n - __k)); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 314 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __bincoef(unsigned int __n, unsigned int __k) 29761: { 29761: 29761: static const _Tp __max_bincoeff 29761: = std::numeric_limits<_Tp>::max_exponent10 29761: * std::log(_Tp(10)) - _Tp(1); 29761: 29761: const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); 29761: if (__log_coeff > __max_bincoeff) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: return std::exp(__log_coeff); 29761: } 29761: # 337 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: inline _Tp 29761: __gamma(_Tp __x) 29761: { return std::exp(__log_gamma(__x)); } 29761: # 356 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __psi_series(_Tp __x) 29761: { 29761: _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; 29761: const unsigned int __max_iter = 100000; 29761: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29761: { 29761: const _Tp __term = __x / (__k * (__k + __x)); 29761: __sum += __term; 29761: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: } 29761: return __sum; 29761: } 29761: # 386 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __psi_asymp(_Tp __x) 29761: { 29761: _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; 29761: const _Tp __xx = __x * __x; 29761: _Tp __xp = __xx; 29761: const unsigned int __max_iter = 100; 29761: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29761: { 29761: const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); 29761: __sum -= __term; 29761: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __xp *= __xx; 29761: } 29761: return __sum; 29761: } 29761: # 417 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __psi(_Tp __x) 29761: { 29761: const int __n = static_cast(__x + 0.5L); 29761: const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); 29761: if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x < _Tp(0)) 29761: { 29761: const _Tp __pi = __numeric_constants<_Tp>::__pi(); 29761: return __psi(_Tp(1) - __x) 29761: - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); 29761: } 29761: else if (__x > _Tp(100)) 29761: return __psi_asymp(__x); 29761: else 29761: return __psi_series(__x); 29761: } 29761: # 446 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __psi(unsigned int __n, _Tp __x) 29761: { 29761: if (__x <= _Tp(0)) 29761: std::__throw_domain_error(("Argument out of range " "in __psi") 29761: ); 29761: else if (__n == 0) 29761: return __psi(__x); 29761: else 29761: { 29761: const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); 29761: 29761: const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); 29761: 29761: 29761: 29761: _Tp __result = std::exp(__ln_nfact) * __hzeta; 29761: if (__n % 2 == 1) 29761: __result = -__result; 29761: return __result; 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 48 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/bessel_function.tcc" 1 3 29761: # 55 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 71 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: namespace __detail 29761: { 29761: # 98 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: void 29761: __gamma_temme(_Tp __mu, 29761: _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) 29761: { 29761: 29761: __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); 29761: __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); 29761: 29761: 29761: 29761: 29761: 29761: if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) 29761: __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); 29761: else 29761: __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); 29761: 29761: __gam2 = (__gammi + __gampl) / (_Tp(2)); 29761: 29761: return; 29761: } 29761: # 136 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: void 29761: __bessel_jn(_Tp __nu, _Tp __x, 29761: _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) 29761: { 29761: if (__x == _Tp(0)) 29761: { 29761: if (__nu == _Tp(0)) 29761: { 29761: __Jnu = _Tp(1); 29761: __Jpnu = _Tp(0); 29761: } 29761: else if (__nu == _Tp(1)) 29761: { 29761: __Jnu = _Tp(0); 29761: __Jpnu = _Tp(0.5L); 29761: } 29761: else 29761: { 29761: __Jnu = _Tp(0); 29761: __Jpnu = _Tp(0); 29761: } 29761: __Nnu = -std::numeric_limits<_Tp>::infinity(); 29761: __Npnu = std::numeric_limits<_Tp>::infinity(); 29761: return; 29761: } 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: 29761: 29761: 29761: const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); 29761: const int __max_iter = 15000; 29761: const _Tp __x_min = _Tp(2); 29761: 29761: const int __nl = (__x < __x_min 29761: ? static_cast(__nu + _Tp(0.5L)) 29761: : std::max(0, static_cast(__nu - __x + _Tp(1.5L)))); 29761: 29761: const _Tp __mu = __nu - __nl; 29761: const _Tp __mu2 = __mu * __mu; 29761: const _Tp __xi = _Tp(1) / __x; 29761: const _Tp __xi2 = _Tp(2) * __xi; 29761: _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); 29761: int __isign = 1; 29761: _Tp __h = __nu * __xi; 29761: if (__h < __fp_min) 29761: __h = __fp_min; 29761: _Tp __b = __xi2 * __nu; 29761: _Tp __d = _Tp(0); 29761: _Tp __c = __h; 29761: int __i; 29761: for (__i = 1; __i <= __max_iter; ++__i) 29761: { 29761: __b += __xi2; 29761: __d = __b - __d; 29761: if (std::abs(__d) < __fp_min) 29761: __d = __fp_min; 29761: __c = __b - _Tp(1) / __c; 29761: if (std::abs(__c) < __fp_min) 29761: __c = __fp_min; 29761: __d = _Tp(1) / __d; 29761: const _Tp __del = __c * __d; 29761: __h *= __del; 29761: if (__d < _Tp(0)) 29761: __isign = -__isign; 29761: if (std::abs(__del - _Tp(1)) < __eps) 29761: break; 29761: } 29761: if (__i > __max_iter) 29761: std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") 29761: ); 29761: _Tp __Jnul = __isign * __fp_min; 29761: _Tp __Jpnul = __h * __Jnul; 29761: _Tp __Jnul1 = __Jnul; 29761: _Tp __Jpnu1 = __Jpnul; 29761: _Tp __fact = __nu * __xi; 29761: for ( int __l = __nl; __l >= 1; --__l ) 29761: { 29761: const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; 29761: __fact -= __xi; 29761: __Jpnul = __fact * __Jnutemp - __Jnul; 29761: __Jnul = __Jnutemp; 29761: } 29761: if (__Jnul == _Tp(0)) 29761: __Jnul = __eps; 29761: _Tp __f= __Jpnul / __Jnul; 29761: _Tp __Nmu, __Nnu1, __Npmu, __Jmu; 29761: if (__x < __x_min) 29761: { 29761: const _Tp __x2 = __x / _Tp(2); 29761: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 29761: _Tp __fact = (std::abs(__pimu) < __eps 29761: ? _Tp(1) : __pimu / std::sin(__pimu)); 29761: _Tp __d = -std::log(__x2); 29761: _Tp __e = __mu * __d; 29761: _Tp __fact2 = (std::abs(__e) < __eps 29761: ? _Tp(1) : std::sinh(__e) / __e); 29761: _Tp __gam1, __gam2, __gampl, __gammi; 29761: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 29761: _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) 29761: * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 29761: __e = std::exp(__e); 29761: _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); 29761: _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); 29761: const _Tp __pimu2 = __pimu / _Tp(2); 29761: _Tp __fact3 = (std::abs(__pimu2) < __eps 29761: ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); 29761: _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; 29761: _Tp __c = _Tp(1); 29761: __d = -__x2 * __x2; 29761: _Tp __sum = __ff + __r * __q; 29761: _Tp __sum1 = __p; 29761: for (__i = 1; __i <= __max_iter; ++__i) 29761: { 29761: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 29761: __c *= __d / _Tp(__i); 29761: __p /= _Tp(__i) - __mu; 29761: __q /= _Tp(__i) + __mu; 29761: const _Tp __del = __c * (__ff + __r * __q); 29761: __sum += __del; 29761: const _Tp __del1 = __c * __p - __i * __del; 29761: __sum1 += __del1; 29761: if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) 29761: break; 29761: } 29761: if ( __i > __max_iter ) 29761: std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") 29761: ); 29761: __Nmu = -__sum; 29761: __Nnu1 = -__sum1 * __xi2; 29761: __Npmu = __mu * __xi * __Nmu - __Nnu1; 29761: __Jmu = __w / (__Npmu - __f * __Nmu); 29761: } 29761: else 29761: { 29761: _Tp __a = _Tp(0.25L) - __mu2; 29761: _Tp __q = _Tp(1); 29761: _Tp __p = -__xi / _Tp(2); 29761: _Tp __br = _Tp(2) * __x; 29761: _Tp __bi = _Tp(2); 29761: _Tp __fact = __a * __xi / (__p * __p + __q * __q); 29761: _Tp __cr = __br + __q * __fact; 29761: _Tp __ci = __bi + __p * __fact; 29761: _Tp __den = __br * __br + __bi * __bi; 29761: _Tp __dr = __br / __den; 29761: _Tp __di = -__bi / __den; 29761: _Tp __dlr = __cr * __dr - __ci * __di; 29761: _Tp __dli = __cr * __di + __ci * __dr; 29761: _Tp __temp = __p * __dlr - __q * __dli; 29761: __q = __p * __dli + __q * __dlr; 29761: __p = __temp; 29761: int __i; 29761: for (__i = 2; __i <= __max_iter; ++__i) 29761: { 29761: __a += _Tp(2 * (__i - 1)); 29761: __bi += _Tp(2); 29761: __dr = __a * __dr + __br; 29761: __di = __a * __di + __bi; 29761: if (std::abs(__dr) + std::abs(__di) < __fp_min) 29761: __dr = __fp_min; 29761: __fact = __a / (__cr * __cr + __ci * __ci); 29761: __cr = __br + __cr * __fact; 29761: __ci = __bi - __ci * __fact; 29761: if (std::abs(__cr) + std::abs(__ci) < __fp_min) 29761: __cr = __fp_min; 29761: __den = __dr * __dr + __di * __di; 29761: __dr /= __den; 29761: __di /= -__den; 29761: __dlr = __cr * __dr - __ci * __di; 29761: __dli = __cr * __di + __ci * __dr; 29761: __temp = __p * __dlr - __q * __dli; 29761: __q = __p * __dli + __q * __dlr; 29761: __p = __temp; 29761: if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) 29761: break; 29761: } 29761: if (__i > __max_iter) 29761: std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") 29761: ); 29761: const _Tp __gam = (__p - __f) / __q; 29761: __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); 29761: 29761: __Jmu = ::std::copysign(__Jmu, __Jnul); 29761: 29761: 29761: 29761: 29761: __Nmu = __gam * __Jmu; 29761: __Npmu = (__p + __q / __gam) * __Nmu; 29761: __Nnu1 = __mu * __xi * __Nmu - __Npmu; 29761: } 29761: __fact = __Jmu / __Jnul; 29761: __Jnu = __fact * __Jnul1; 29761: __Jpnu = __fact * __Jpnu1; 29761: for (__i = 1; __i <= __nl; ++__i) 29761: { 29761: const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; 29761: __Nmu = __Nnu1; 29761: __Nnu1 = __Nnutemp; 29761: } 29761: __Nnu = __Nmu; 29761: __Npnu = __nu * __xi * __Nmu - __Nnu1; 29761: 29761: return; 29761: } 29761: # 361 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: void 29761: __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) 29761: { 29761: const _Tp __mu = _Tp(4) * __nu * __nu; 29761: const _Tp __8x = _Tp(8) * __x; 29761: 29761: _Tp __P = _Tp(0); 29761: _Tp __Q = _Tp(0); 29761: 29761: _Tp __k = _Tp(0); 29761: _Tp __term = _Tp(1); 29761: 29761: int __epsP = 0; 29761: int __epsQ = 0; 29761: 29761: _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: do 29761: { 29761: __term *= (__k == 0 29761: ? _Tp(1) 29761: : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); 29761: 29761: __epsP = std::abs(__term) < __eps * std::abs(__P); 29761: __P += __term; 29761: 29761: __k++; 29761: 29761: __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); 29761: __epsQ = std::abs(__term) < __eps * std::abs(__Q); 29761: __Q += __term; 29761: 29761: if (__epsP && __epsQ && __k > (__nu / 2.)) 29761: break; 29761: 29761: __k++; 29761: } 29761: while (__k < 1000); 29761: 29761: const _Tp __chi = __x - (__nu + _Tp(0.5L)) 29761: * __numeric_constants<_Tp>::__pi_2(); 29761: 29761: const _Tp __c = std::cos(__chi); 29761: const _Tp __s = std::sin(__chi); 29761: 29761: const _Tp __coef = std::sqrt(_Tp(2) 29761: / (__numeric_constants<_Tp>::__pi() * __x)); 29761: 29761: __Jnu = __coef * (__c * __P - __s * __Q); 29761: __Nnu = __coef * (__s * __P + __c * __Q); 29761: 29761: return; 29761: } 29761: # 444 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: _Tp 29761: __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, 29761: unsigned int __max_iter) 29761: { 29761: if (__x == _Tp(0)) 29761: return __nu == _Tp(0) ? _Tp(1) : _Tp(0); 29761: 29761: const _Tp __x2 = __x / _Tp(2); 29761: _Tp __fact = __nu * std::log(__x2); 29761: 29761: __fact -= ::std::lgamma(__nu + _Tp(1)); 29761: 29761: 29761: 29761: __fact = std::exp(__fact); 29761: const _Tp __xx4 = __sgn * __x2 * __x2; 29761: _Tp __Jn = _Tp(1); 29761: _Tp __term = _Tp(1); 29761: 29761: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29761: { 29761: __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); 29761: __Jn += __term; 29761: if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: } 29761: 29761: return __fact * __Jn; 29761: } 29761: # 490 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: _Tp 29761: __cyl_bessel_j(_Tp __nu, _Tp __x) 29761: { 29761: if (__nu < _Tp(0) || __x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") 29761: ); 29761: else if (__isnan(__nu) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 29761: return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); 29761: else if (__x > _Tp(1000)) 29761: { 29761: _Tp __J_nu, __N_nu; 29761: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 29761: return __J_nu; 29761: } 29761: else 29761: { 29761: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29761: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29761: return __J_nu; 29761: } 29761: } 29761: # 532 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: _Tp 29761: __cyl_neumann_n(_Tp __nu, _Tp __x) 29761: { 29761: if (__nu < _Tp(0) || __x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") 29761: ); 29761: else if (__isnan(__nu) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x > _Tp(1000)) 29761: { 29761: _Tp __J_nu, __N_nu; 29761: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 29761: return __N_nu; 29761: } 29761: else 29761: { 29761: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29761: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29761: return __N_nu; 29761: } 29761: } 29761: # 569 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: void 29761: __sph_bessel_jn(unsigned int __n, _Tp __x, 29761: _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) 29761: { 29761: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 29761: 29761: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29761: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29761: 29761: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 29761: / std::sqrt(__x); 29761: 29761: __j_n = __factor * __J_nu; 29761: __n_n = __factor * __N_nu; 29761: __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); 29761: __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); 29761: 29761: return; 29761: } 29761: # 604 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: _Tp 29761: __sph_bessel(unsigned int __n, _Tp __x) 29761: { 29761: if (__x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __sph_bessel.") 29761: ); 29761: else if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x == _Tp(0)) 29761: { 29761: if (__n == 0) 29761: return _Tp(1); 29761: else 29761: return _Tp(0); 29761: } 29761: else 29761: { 29761: _Tp __j_n, __n_n, __jp_n, __np_n; 29761: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 29761: return __j_n; 29761: } 29761: } 29761: # 642 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: _Tp 29761: __sph_neumann(unsigned int __n, _Tp __x) 29761: { 29761: if (__x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __sph_neumann.") 29761: ); 29761: else if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x == _Tp(0)) 29761: return -std::numeric_limits<_Tp>::infinity(); 29761: else 29761: { 29761: _Tp __j_n, __n_n, __jp_n, __np_n; 29761: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 29761: return __n_n; 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 49 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/beta_function.tcc" 1 3 29761: # 49 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 65 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: namespace __detail 29761: { 29761: # 79 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: template 29761: _Tp 29761: __beta_gamma(_Tp __x, _Tp __y) 29761: { 29761: 29761: _Tp __bet; 29761: 29761: if (__x > __y) 29761: { 29761: __bet = ::std::tgamma(__x) 29761: / ::std::tgamma(__x + __y); 29761: __bet *= ::std::tgamma(__y); 29761: } 29761: else 29761: { 29761: __bet = ::std::tgamma(__y) 29761: / ::std::tgamma(__x + __y); 29761: __bet *= ::std::tgamma(__x); 29761: } 29761: # 111 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: return __bet; 29761: } 29761: # 127 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: template 29761: _Tp 29761: __beta_lgamma(_Tp __x, _Tp __y) 29761: { 29761: 29761: _Tp __bet = ::std::lgamma(__x) 29761: + ::std::lgamma(__y) 29761: - ::std::lgamma(__x + __y); 29761: 29761: 29761: 29761: 29761: 29761: __bet = std::exp(__bet); 29761: return __bet; 29761: } 29761: # 158 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: template 29761: _Tp 29761: __beta_product(_Tp __x, _Tp __y) 29761: { 29761: 29761: _Tp __bet = (__x + __y) / (__x * __y); 29761: 29761: unsigned int __max_iter = 1000000; 29761: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29761: { 29761: _Tp __term = (_Tp(1) + (__x + __y) / __k) 29761: / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); 29761: __bet *= __term; 29761: } 29761: 29761: return __bet; 29761: } 29761: # 189 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: template 29761: inline _Tp 29761: __beta(_Tp __x, _Tp __y) 29761: { 29761: if (__isnan(__x) || __isnan(__y)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: return __beta_lgamma(__x, __y); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 50 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/ell_integral.tcc" 1 3 29761: # 45 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 59 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: namespace __detail 29761: { 29761: # 76 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_rf(_Tp __x, _Tp __y, _Tp __z) 29761: { 29761: const _Tp __min = std::numeric_limits<_Tp>::min(); 29761: const _Tp __lolim = _Tp(5) * __min; 29761: 29761: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 29761: std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") 29761: ); 29761: else if (__x + __y < __lolim || __x + __z < __lolim 29761: || __y + __z < __lolim) 29761: std::__throw_domain_error(("Argument too small in __ellint_rf")); 29761: else 29761: { 29761: const _Tp __c0 = _Tp(1) / _Tp(4); 29761: const _Tp __c1 = _Tp(1) / _Tp(24); 29761: const _Tp __c2 = _Tp(1) / _Tp(10); 29761: const _Tp __c3 = _Tp(3) / _Tp(44); 29761: const _Tp __c4 = _Tp(1) / _Tp(14); 29761: 29761: _Tp __xn = __x; 29761: _Tp __yn = __y; 29761: _Tp __zn = __z; 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); 29761: _Tp __mu; 29761: _Tp __xndev, __yndev, __zndev; 29761: 29761: const unsigned int __max_iter = 100; 29761: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29761: { 29761: __mu = (__xn + __yn + __zn) / _Tp(3); 29761: __xndev = 2 - (__mu + __xn) / __mu; 29761: __yndev = 2 - (__mu + __yn) / __mu; 29761: __zndev = 2 - (__mu + __zn) / __mu; 29761: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29761: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29761: if (__epsilon < __errtol) 29761: break; 29761: const _Tp __xnroot = std::sqrt(__xn); 29761: const _Tp __ynroot = std::sqrt(__yn); 29761: const _Tp __znroot = std::sqrt(__zn); 29761: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 29761: + __ynroot * __znroot; 29761: __xn = __c0 * (__xn + __lambda); 29761: __yn = __c0 * (__yn + __lambda); 29761: __zn = __c0 * (__zn + __lambda); 29761: } 29761: 29761: const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; 29761: const _Tp __e3 = __xndev * __yndev * __zndev; 29761: const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 29761: + __c4 * __e3; 29761: 29761: return __s / std::sqrt(__mu); 29761: } 29761: } 29761: # 153 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __comp_ellint_1_series(_Tp __k) 29761: { 29761: 29761: const _Tp __kk = __k * __k; 29761: 29761: _Tp __term = __kk / _Tp(4); 29761: _Tp __sum = _Tp(1) + __term; 29761: 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 2; __i < __max_iter; ++__i) 29761: { 29761: __term *= (2 * __i - 1) * __kk / (2 * __i); 29761: if (__term < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __sum += __term; 29761: } 29761: 29761: return __numeric_constants<_Tp>::__pi_2() * __sum; 29761: } 29761: # 191 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __comp_ellint_1(_Tp __k) 29761: { 29761: 29761: if (__isnan(__k)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (std::abs(__k) >= _Tp(1)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); 29761: } 29761: # 219 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_1(_Tp __k, _Tp __phi) 29761: { 29761: 29761: if (__isnan(__k) || __isnan(__phi)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (std::abs(__k) > _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in __ellint_1.")); 29761: else 29761: { 29761: 29761: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29761: + _Tp(0.5L)); 29761: const _Tp __phi_red = __phi 29761: - __n * __numeric_constants<_Tp>::__pi(); 29761: 29761: const _Tp __s = std::sin(__phi_red); 29761: const _Tp __c = std::cos(__phi_red); 29761: 29761: const _Tp __F = __s 29761: * __ellint_rf(__c * __c, 29761: _Tp(1) - __k * __k * __s * __s, _Tp(1)); 29761: 29761: if (__n == 0) 29761: return __F; 29761: else 29761: return __F + _Tp(2) * __n * __comp_ellint_1(__k); 29761: } 29761: } 29761: # 266 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __comp_ellint_2_series(_Tp __k) 29761: { 29761: 29761: const _Tp __kk = __k * __k; 29761: 29761: _Tp __term = __kk; 29761: _Tp __sum = __term; 29761: 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 2; __i < __max_iter; ++__i) 29761: { 29761: const _Tp __i2m = 2 * __i - 1; 29761: const _Tp __i2 = 2 * __i; 29761: __term *= __i2m * __i2m * __kk / (__i2 * __i2); 29761: if (__term < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __sum += __term / __i2m; 29761: } 29761: 29761: return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); 29761: } 29761: # 314 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_rd(_Tp __x, _Tp __y, _Tp __z) 29761: { 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 29761: const _Tp __max = std::numeric_limits<_Tp>::max(); 29761: const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); 29761: 29761: if (__x < _Tp(0) || __y < _Tp(0)) 29761: std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") 29761: ); 29761: else if (__x + __y < __lolim || __z < __lolim) 29761: std::__throw_domain_error(("Argument too small " "in __ellint_rd.") 29761: ); 29761: else 29761: { 29761: const _Tp __c0 = _Tp(1) / _Tp(4); 29761: const _Tp __c1 = _Tp(3) / _Tp(14); 29761: const _Tp __c2 = _Tp(1) / _Tp(6); 29761: const _Tp __c3 = _Tp(9) / _Tp(22); 29761: const _Tp __c4 = _Tp(3) / _Tp(26); 29761: 29761: _Tp __xn = __x; 29761: _Tp __yn = __y; 29761: _Tp __zn = __z; 29761: _Tp __sigma = _Tp(0); 29761: _Tp __power4 = _Tp(1); 29761: 29761: _Tp __mu; 29761: _Tp __xndev, __yndev, __zndev; 29761: 29761: const unsigned int __max_iter = 100; 29761: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29761: { 29761: __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); 29761: __xndev = (__mu - __xn) / __mu; 29761: __yndev = (__mu - __yn) / __mu; 29761: __zndev = (__mu - __zn) / __mu; 29761: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29761: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29761: if (__epsilon < __errtol) 29761: break; 29761: _Tp __xnroot = std::sqrt(__xn); 29761: _Tp __ynroot = std::sqrt(__yn); 29761: _Tp __znroot = std::sqrt(__zn); 29761: _Tp __lambda = __xnroot * (__ynroot + __znroot) 29761: + __ynroot * __znroot; 29761: __sigma += __power4 / (__znroot * (__zn + __lambda)); 29761: __power4 *= __c0; 29761: __xn = __c0 * (__xn + __lambda); 29761: __yn = __c0 * (__yn + __lambda); 29761: __zn = __c0 * (__zn + __lambda); 29761: } 29761: 29761: _Tp __ea = __xndev * __yndev; 29761: _Tp __eb = __zndev * __zndev; 29761: _Tp __ec = __ea - __eb; 29761: _Tp __ed = __ea - _Tp(6) * __eb; 29761: _Tp __ef = __ed + __ec + __ec; 29761: _Tp __s1 = __ed * (-__c1 + __c3 * __ed 29761: / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef 29761: / _Tp(2)); 29761: _Tp __s2 = __zndev 29761: * (__c2 * __ef 29761: + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); 29761: 29761: return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) 29761: / (__mu * std::sqrt(__mu)); 29761: } 29761: } 29761: # 399 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __comp_ellint_2(_Tp __k) 29761: { 29761: 29761: if (__isnan(__k)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (std::abs(__k) == 1) 29761: return _Tp(1); 29761: else if (std::abs(__k) > _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); 29761: else 29761: { 29761: const _Tp __kk = __k * __k; 29761: 29761: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 29761: - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); 29761: } 29761: } 29761: # 433 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_2(_Tp __k, _Tp __phi) 29761: { 29761: 29761: if (__isnan(__k) || __isnan(__phi)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (std::abs(__k) > _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in __ellint_2.")); 29761: else 29761: { 29761: 29761: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29761: + _Tp(0.5L)); 29761: const _Tp __phi_red = __phi 29761: - __n * __numeric_constants<_Tp>::__pi(); 29761: 29761: const _Tp __kk = __k * __k; 29761: const _Tp __s = std::sin(__phi_red); 29761: const _Tp __ss = __s * __s; 29761: const _Tp __sss = __ss * __s; 29761: const _Tp __c = std::cos(__phi_red); 29761: const _Tp __cc = __c * __c; 29761: 29761: const _Tp __E = __s 29761: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29761: - __kk * __sss 29761: * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29761: / _Tp(3); 29761: 29761: if (__n == 0) 29761: return __E; 29761: else 29761: return __E + _Tp(2) * __n * __comp_ellint_2(__k); 29761: } 29761: } 29761: # 492 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_rc(_Tp __x, _Tp __y) 29761: { 29761: const _Tp __min = std::numeric_limits<_Tp>::min(); 29761: const _Tp __lolim = _Tp(5) * __min; 29761: 29761: if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) 29761: std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") 29761: ); 29761: else 29761: { 29761: const _Tp __c0 = _Tp(1) / _Tp(4); 29761: const _Tp __c1 = _Tp(1) / _Tp(7); 29761: const _Tp __c2 = _Tp(9) / _Tp(22); 29761: const _Tp __c3 = _Tp(3) / _Tp(10); 29761: const _Tp __c4 = _Tp(3) / _Tp(8); 29761: 29761: _Tp __xn = __x; 29761: _Tp __yn = __y; 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); 29761: _Tp __mu; 29761: _Tp __sn; 29761: 29761: const unsigned int __max_iter = 100; 29761: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29761: { 29761: __mu = (__xn + _Tp(2) * __yn) / _Tp(3); 29761: __sn = (__yn + __mu) / __mu - _Tp(2); 29761: if (std::abs(__sn) < __errtol) 29761: break; 29761: const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) 29761: + __yn; 29761: __xn = __c0 * (__xn + __lambda); 29761: __yn = __c0 * (__yn + __lambda); 29761: } 29761: 29761: _Tp __s = __sn * __sn 29761: * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); 29761: 29761: return (_Tp(1) + __s) / std::sqrt(__mu); 29761: } 29761: } 29761: # 561 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) 29761: { 29761: const _Tp __min = std::numeric_limits<_Tp>::min(); 29761: const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); 29761: 29761: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 29761: std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") 29761: ); 29761: else if (__x + __y < __lolim || __x + __z < __lolim 29761: || __y + __z < __lolim || __p < __lolim) 29761: std::__throw_domain_error(("Argument too small " "in __ellint_rj") 29761: ); 29761: else 29761: { 29761: const _Tp __c0 = _Tp(1) / _Tp(4); 29761: const _Tp __c1 = _Tp(3) / _Tp(14); 29761: const _Tp __c2 = _Tp(1) / _Tp(3); 29761: const _Tp __c3 = _Tp(3) / _Tp(22); 29761: const _Tp __c4 = _Tp(3) / _Tp(26); 29761: 29761: _Tp __xn = __x; 29761: _Tp __yn = __y; 29761: _Tp __zn = __z; 29761: _Tp __pn = __p; 29761: _Tp __sigma = _Tp(0); 29761: _Tp __power4 = _Tp(1); 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 29761: 29761: _Tp __mu; 29761: _Tp __xndev, __yndev, __zndev, __pndev; 29761: 29761: const unsigned int __max_iter = 100; 29761: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29761: { 29761: __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); 29761: __xndev = (__mu - __xn) / __mu; 29761: __yndev = (__mu - __yn) / __mu; 29761: __zndev = (__mu - __zn) / __mu; 29761: __pndev = (__mu - __pn) / __mu; 29761: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29761: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29761: __epsilon = std::max(__epsilon, std::abs(__pndev)); 29761: if (__epsilon < __errtol) 29761: break; 29761: const _Tp __xnroot = std::sqrt(__xn); 29761: const _Tp __ynroot = std::sqrt(__yn); 29761: const _Tp __znroot = std::sqrt(__zn); 29761: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 29761: + __ynroot * __znroot; 29761: const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) 29761: + __xnroot * __ynroot * __znroot; 29761: const _Tp __alpha2 = __alpha1 * __alpha1; 29761: const _Tp __beta = __pn * (__pn + __lambda) 29761: * (__pn + __lambda); 29761: __sigma += __power4 * __ellint_rc(__alpha2, __beta); 29761: __power4 *= __c0; 29761: __xn = __c0 * (__xn + __lambda); 29761: __yn = __c0 * (__yn + __lambda); 29761: __zn = __c0 * (__zn + __lambda); 29761: __pn = __c0 * (__pn + __lambda); 29761: } 29761: 29761: _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; 29761: _Tp __eb = __xndev * __yndev * __zndev; 29761: _Tp __ec = __pndev * __pndev; 29761: _Tp __e2 = __ea - _Tp(3) * __ec; 29761: _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); 29761: _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) 29761: - _Tp(3) * __c4 * __e3 / _Tp(2)); 29761: _Tp __s2 = __eb * (__c2 / _Tp(2) 29761: + __pndev * (-__c3 - __c3 + __pndev * __c4)); 29761: _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) 29761: - __c2 * __pndev * __ec; 29761: 29761: return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) 29761: / (__mu * std::sqrt(__mu)); 29761: } 29761: } 29761: # 661 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __comp_ellint_3(_Tp __k, _Tp __nu) 29761: { 29761: 29761: if (__isnan(__k) || __isnan(__nu)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__nu == _Tp(1)) 29761: return std::numeric_limits<_Tp>::infinity(); 29761: else if (std::abs(__k) > _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); 29761: else 29761: { 29761: const _Tp __kk = __k * __k; 29761: 29761: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 29761: + __nu 29761: * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) 29761: / _Tp(3); 29761: } 29761: } 29761: # 701 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) 29761: { 29761: 29761: if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (std::abs(__k) > _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in __ellint_3.")); 29761: else 29761: { 29761: 29761: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29761: + _Tp(0.5L)); 29761: const _Tp __phi_red = __phi 29761: - __n * __numeric_constants<_Tp>::__pi(); 29761: 29761: const _Tp __kk = __k * __k; 29761: const _Tp __s = std::sin(__phi_red); 29761: const _Tp __ss = __s * __s; 29761: const _Tp __sss = __ss * __s; 29761: const _Tp __c = std::cos(__phi_red); 29761: const _Tp __cc = __c * __c; 29761: 29761: const _Tp __Pi = __s 29761: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29761: + __nu * __sss 29761: * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), 29761: _Tp(1) - __nu * __ss) / _Tp(3); 29761: 29761: if (__n == 0) 29761: return __Pi; 29761: else 29761: return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 51 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/exp_integral.tcc" 1 3 29761: # 50 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 64 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: namespace __detail 29761: { 29761: template _Tp __expint_E1(_Tp); 29761: # 81 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_E1_series(_Tp __x) 29761: { 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: _Tp __term = _Tp(1); 29761: _Tp __esum = _Tp(0); 29761: _Tp __osum = _Tp(0); 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29761: { 29761: __term *= - __x / __i; 29761: if (std::abs(__term) < __eps) 29761: break; 29761: if (__term >= _Tp(0)) 29761: __esum += __term / __i; 29761: else 29761: __osum += __term / __i; 29761: } 29761: 29761: return - __esum - __osum 29761: - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); 29761: } 29761: # 118 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_E1_asymp(_Tp __x) 29761: { 29761: _Tp __term = _Tp(1); 29761: _Tp __esum = _Tp(1); 29761: _Tp __osum = _Tp(0); 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29761: { 29761: _Tp __prev = __term; 29761: __term *= - __i / __x; 29761: if (std::abs(__term) > std::abs(__prev)) 29761: break; 29761: if (__term >= _Tp(0)) 29761: __esum += __term; 29761: else 29761: __osum += __term; 29761: } 29761: 29761: return std::exp(- __x) * (__esum + __osum) / __x; 29761: } 29761: # 155 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_En_series(unsigned int __n, _Tp __x) 29761: { 29761: const unsigned int __max_iter = 1000; 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const int __nm1 = __n - 1; 29761: _Tp __ans = (__nm1 != 0 29761: ? _Tp(1) / __nm1 : -std::log(__x) 29761: - __numeric_constants<_Tp>::__gamma_e()); 29761: _Tp __fact = _Tp(1); 29761: for (int __i = 1; __i <= __max_iter; ++__i) 29761: { 29761: __fact *= -__x / _Tp(__i); 29761: _Tp __del; 29761: if ( __i != __nm1 ) 29761: __del = -__fact / _Tp(__i - __nm1); 29761: else 29761: { 29761: _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); 29761: for (int __ii = 1; __ii <= __nm1; ++__ii) 29761: __psi += _Tp(1) / _Tp(__ii); 29761: __del = __fact * (__psi - std::log(__x)); 29761: } 29761: __ans += __del; 29761: if (std::abs(__del) < __eps * std::abs(__ans)) 29761: return __ans; 29761: } 29761: std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") 29761: ); 29761: } 29761: # 201 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_En_cont_frac(unsigned int __n, _Tp __x) 29761: { 29761: const unsigned int __max_iter = 1000; 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __fp_min = std::numeric_limits<_Tp>::min(); 29761: const int __nm1 = __n - 1; 29761: _Tp __b = __x + _Tp(__n); 29761: _Tp __c = _Tp(1) / __fp_min; 29761: _Tp __d = _Tp(1) / __b; 29761: _Tp __h = __d; 29761: for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) 29761: { 29761: _Tp __a = -_Tp(__i * (__nm1 + __i)); 29761: __b += _Tp(2); 29761: __d = _Tp(1) / (__a * __d + __b); 29761: __c = __b + __a / __c; 29761: const _Tp __del = __c * __d; 29761: __h *= __del; 29761: if (std::abs(__del - _Tp(1)) < __eps) 29761: { 29761: const _Tp __ans = __h * std::exp(-__x); 29761: return __ans; 29761: } 29761: } 29761: std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") 29761: ); 29761: } 29761: # 246 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_En_recursion(unsigned int __n, _Tp __x) 29761: { 29761: _Tp __En; 29761: _Tp __E1 = __expint_E1(__x); 29761: if (__x < _Tp(__n)) 29761: { 29761: 29761: __En = __E1; 29761: for (unsigned int __j = 2; __j < __n; ++__j) 29761: __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); 29761: } 29761: else 29761: { 29761: 29761: __En = _Tp(1); 29761: const int __N = __n + 20; 29761: _Tp __save = _Tp(0); 29761: for (int __j = __N; __j > 0; --__j) 29761: { 29761: __En = (std::exp(-__x) - __j * __En) / __x; 29761: if (__j == __n) 29761: __save = __En; 29761: } 29761: _Tp __norm = __En / __E1; 29761: __En /= __norm; 29761: } 29761: 29761: return __En; 29761: } 29761: # 290 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_Ei_series(_Tp __x) 29761: { 29761: _Tp __term = _Tp(1); 29761: _Tp __sum = _Tp(0); 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29761: { 29761: __term *= __x / __i; 29761: __sum += __term / __i; 29761: if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) 29761: break; 29761: } 29761: 29761: return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); 29761: } 29761: # 321 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_Ei_asymp(_Tp __x) 29761: { 29761: _Tp __term = _Tp(1); 29761: _Tp __sum = _Tp(1); 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29761: { 29761: _Tp __prev = __term; 29761: __term *= __i / __x; 29761: if (__term < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: if (__term >= __prev) 29761: break; 29761: __sum += __term; 29761: } 29761: 29761: return std::exp(__x) * __sum / __x; 29761: } 29761: # 354 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_Ei(_Tp __x) 29761: { 29761: if (__x < _Tp(0)) 29761: return -__expint_E1(-__x); 29761: else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) 29761: return __expint_Ei_series(__x); 29761: else 29761: return __expint_Ei_asymp(__x); 29761: } 29761: # 378 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_E1(_Tp __x) 29761: { 29761: if (__x < _Tp(0)) 29761: return -__expint_Ei(-__x); 29761: else if (__x < _Tp(1)) 29761: return __expint_E1_series(__x); 29761: else if (__x < _Tp(100)) 29761: return __expint_En_cont_frac(1, __x); 29761: else 29761: return __expint_E1_asymp(__x); 29761: } 29761: # 408 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_asymp(unsigned int __n, _Tp __x) 29761: { 29761: _Tp __term = _Tp(1); 29761: _Tp __sum = _Tp(1); 29761: for (unsigned int __i = 1; __i <= __n; ++__i) 29761: { 29761: _Tp __prev = __term; 29761: __term *= -(__n - __i + 1) / __x; 29761: if (std::abs(__term) > std::abs(__prev)) 29761: break; 29761: __sum += __term; 29761: } 29761: 29761: return std::exp(-__x) * __sum / __x; 29761: } 29761: # 442 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_large_n(unsigned int __n, _Tp __x) 29761: { 29761: const _Tp __xpn = __x + __n; 29761: const _Tp __xpn2 = __xpn * __xpn; 29761: _Tp __term = _Tp(1); 29761: _Tp __sum = _Tp(1); 29761: for (unsigned int __i = 1; __i <= __n; ++__i) 29761: { 29761: _Tp __prev = __term; 29761: __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; 29761: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __sum += __term; 29761: } 29761: 29761: return std::exp(-__x) * __sum / __xpn; 29761: } 29761: # 476 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint(unsigned int __n, _Tp __x) 29761: { 29761: 29761: if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__n <= 1 && __x == _Tp(0)) 29761: return std::numeric_limits<_Tp>::infinity(); 29761: else 29761: { 29761: _Tp __E0 = std::exp(__x) / __x; 29761: if (__n == 0) 29761: return __E0; 29761: 29761: _Tp __E1 = __expint_E1(__x); 29761: if (__n == 1) 29761: return __E1; 29761: 29761: if (__x == _Tp(0)) 29761: return _Tp(1) / static_cast<_Tp>(__n - 1); 29761: 29761: _Tp __En = __expint_En_recursion(__n, __x); 29761: 29761: return __En; 29761: } 29761: } 29761: # 516 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: inline _Tp 29761: __expint(_Tp __x) 29761: { 29761: if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: return __expint_Ei(__x); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 52 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/hypergeometric.tcc" 1 3 29761: # 44 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 60 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: namespace __detail 29761: { 29761: # 83 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) 29761: { 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: _Tp __term = _Tp(1); 29761: _Tp __Fac = _Tp(1); 29761: const unsigned int __max_iter = 100000; 29761: unsigned int __i; 29761: for (__i = 0; __i < __max_iter; ++__i) 29761: { 29761: __term *= (__a + _Tp(__i)) * __x 29761: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 29761: if (std::abs(__term) < __eps) 29761: { 29761: break; 29761: } 29761: __Fac += __term; 29761: } 29761: if (__i == __max_iter) 29761: std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") 29761: ); 29761: 29761: return __Fac; 29761: } 29761: # 120 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) 29761: { 29761: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 29761: const int __nmax = 20000; 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __x = -__xin; 29761: const _Tp __x3 = __x * __x * __x; 29761: const _Tp __t0 = __a / __c; 29761: const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); 29761: const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); 29761: _Tp __F = _Tp(1); 29761: _Tp __prec; 29761: 29761: _Tp __Bnm3 = _Tp(1); 29761: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 29761: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 29761: 29761: _Tp __Anm3 = _Tp(1); 29761: _Tp __Anm2 = __Bnm2 - __t0 * __x; 29761: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 29761: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 29761: 29761: int __n = 3; 29761: while(1) 29761: { 29761: _Tp __npam1 = _Tp(__n - 1) + __a; 29761: _Tp __npcm1 = _Tp(__n - 1) + __c; 29761: _Tp __npam2 = _Tp(__n - 2) + __a; 29761: _Tp __npcm2 = _Tp(__n - 2) + __c; 29761: _Tp __tnm1 = _Tp(2 * __n - 1); 29761: _Tp __tnm3 = _Tp(2 * __n - 3); 29761: _Tp __tnm5 = _Tp(2 * __n - 5); 29761: _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); 29761: _Tp __F2 = (_Tp(__n) + __a) * __npam1 29761: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 29761: _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) 29761: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 29761: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 29761: _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) 29761: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 29761: 29761: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 29761: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 29761: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 29761: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 29761: _Tp __r = __An / __Bn; 29761: 29761: __prec = std::abs((__F - __r) / __F); 29761: __F = __r; 29761: 29761: if (__prec < __eps || __n > __nmax) 29761: break; 29761: 29761: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 29761: { 29761: __An /= __big; 29761: __Bn /= __big; 29761: __Anm1 /= __big; 29761: __Bnm1 /= __big; 29761: __Anm2 /= __big; 29761: __Bnm2 /= __big; 29761: __Anm3 /= __big; 29761: __Bnm3 /= __big; 29761: } 29761: else if (std::abs(__An) < _Tp(1) / __big 29761: || std::abs(__Bn) < _Tp(1) / __big) 29761: { 29761: __An *= __big; 29761: __Bn *= __big; 29761: __Anm1 *= __big; 29761: __Bnm1 *= __big; 29761: __Anm2 *= __big; 29761: __Bnm2 *= __big; 29761: __Anm3 *= __big; 29761: __Bnm3 *= __big; 29761: } 29761: 29761: ++__n; 29761: __Bnm3 = __Bnm2; 29761: __Bnm2 = __Bnm1; 29761: __Bnm1 = __Bn; 29761: __Anm3 = __Anm2; 29761: __Anm2 = __Anm1; 29761: __Anm1 = __An; 29761: } 29761: 29761: if (__n >= __nmax) 29761: std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") 29761: ); 29761: 29761: return __F; 29761: } 29761: # 227 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) 29761: { 29761: 29761: const _Tp __c_nint = ::std::nearbyint(__c); 29761: 29761: 29761: 29761: if (__isnan(__a) || __isnan(__c) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__c_nint == __c && __c_nint <= 0) 29761: return std::numeric_limits<_Tp>::infinity(); 29761: else if (__a == _Tp(0)) 29761: return _Tp(1); 29761: else if (__c == __a) 29761: return std::exp(__x); 29761: else if (__x < _Tp(0)) 29761: return __conf_hyperg_luke(__a, __c, __x); 29761: else 29761: return __conf_hyperg_series(__a, __c, __x); 29761: } 29761: # 271 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29761: { 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: _Tp __term = _Tp(1); 29761: _Tp __Fabc = _Tp(1); 29761: const unsigned int __max_iter = 100000; 29761: unsigned int __i; 29761: for (__i = 0; __i < __max_iter; ++__i) 29761: { 29761: __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x 29761: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 29761: if (std::abs(__term) < __eps) 29761: { 29761: break; 29761: } 29761: __Fabc += __term; 29761: } 29761: if (__i == __max_iter) 29761: std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") 29761: ); 29761: 29761: return __Fabc; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _Tp 29761: __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) 29761: { 29761: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 29761: const int __nmax = 20000; 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __x = -__xin; 29761: const _Tp __x3 = __x * __x * __x; 29761: const _Tp __t0 = __a * __b / __c; 29761: const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); 29761: const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) 29761: / (_Tp(2) * (__c + _Tp(1))); 29761: 29761: _Tp __F = _Tp(1); 29761: 29761: _Tp __Bnm3 = _Tp(1); 29761: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 29761: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 29761: 29761: _Tp __Anm3 = _Tp(1); 29761: _Tp __Anm2 = __Bnm2 - __t0 * __x; 29761: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 29761: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 29761: 29761: int __n = 3; 29761: while (1) 29761: { 29761: const _Tp __npam1 = _Tp(__n - 1) + __a; 29761: const _Tp __npbm1 = _Tp(__n - 1) + __b; 29761: const _Tp __npcm1 = _Tp(__n - 1) + __c; 29761: const _Tp __npam2 = _Tp(__n - 2) + __a; 29761: const _Tp __npbm2 = _Tp(__n - 2) + __b; 29761: const _Tp __npcm2 = _Tp(__n - 2) + __c; 29761: const _Tp __tnm1 = _Tp(2 * __n - 1); 29761: const _Tp __tnm3 = _Tp(2 * __n - 3); 29761: const _Tp __tnm5 = _Tp(2 * __n - 5); 29761: const _Tp __n2 = __n * __n; 29761: const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n 29761: + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) 29761: / (_Tp(2) * __tnm3 * __npcm1); 29761: const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n 29761: + _Tp(2) - __a * __b) * __npam1 * __npbm1 29761: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 29761: const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 29761: * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) 29761: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 29761: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 29761: const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) 29761: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 29761: 29761: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 29761: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 29761: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 29761: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 29761: const _Tp __r = __An / __Bn; 29761: 29761: const _Tp __prec = std::abs((__F - __r) / __F); 29761: __F = __r; 29761: 29761: if (__prec < __eps || __n > __nmax) 29761: break; 29761: 29761: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 29761: { 29761: __An /= __big; 29761: __Bn /= __big; 29761: __Anm1 /= __big; 29761: __Bnm1 /= __big; 29761: __Anm2 /= __big; 29761: __Bnm2 /= __big; 29761: __Anm3 /= __big; 29761: __Bnm3 /= __big; 29761: } 29761: else if (std::abs(__An) < _Tp(1) / __big 29761: || std::abs(__Bn) < _Tp(1) / __big) 29761: { 29761: __An *= __big; 29761: __Bn *= __big; 29761: __Anm1 *= __big; 29761: __Bnm1 *= __big; 29761: __Anm2 *= __big; 29761: __Bnm2 *= __big; 29761: __Anm3 *= __big; 29761: __Bnm3 *= __big; 29761: } 29761: 29761: ++__n; 29761: __Bnm3 = __Bnm2; 29761: __Bnm2 = __Bnm1; 29761: __Bnm1 = __Bn; 29761: __Anm3 = __Anm2; 29761: __Anm2 = __Anm1; 29761: __Anm1 = __An; 29761: } 29761: 29761: if (__n >= __nmax) 29761: std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") 29761: ); 29761: 29761: return __F; 29761: } 29761: # 438 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29761: { 29761: const _Tp __d = __c - __a - __b; 29761: const int __intd = std::floor(__d + _Tp(0.5L)); 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __toler = _Tp(1000) * __eps; 29761: const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); 29761: const bool __d_integer = (std::abs(__d - __intd) < __toler); 29761: 29761: if (__d_integer) 29761: { 29761: const _Tp __ln_omx = std::log(_Tp(1) - __x); 29761: const _Tp __ad = std::abs(__d); 29761: _Tp __F1, __F2; 29761: 29761: _Tp __d1, __d2; 29761: if (__d >= _Tp(0)) 29761: { 29761: __d1 = __d; 29761: __d2 = _Tp(0); 29761: } 29761: else 29761: { 29761: __d1 = _Tp(0); 29761: __d2 = __d; 29761: } 29761: 29761: const _Tp __lng_c = __log_gamma(__c); 29761: 29761: 29761: if (__ad < __eps) 29761: { 29761: 29761: __F1 = _Tp(0); 29761: } 29761: else 29761: { 29761: 29761: bool __ok_d1 = true; 29761: _Tp __lng_ad, __lng_ad1, __lng_bd1; 29761: try 29761: { 29761: __lng_ad = __log_gamma(__ad); 29761: __lng_ad1 = __log_gamma(__a + __d1); 29761: __lng_bd1 = __log_gamma(__b + __d1); 29761: } 29761: catch(...) 29761: { 29761: __ok_d1 = false; 29761: } 29761: 29761: if (__ok_d1) 29761: { 29761: 29761: 29761: 29761: _Tp __sum1 = _Tp(1); 29761: _Tp __term = _Tp(1); 29761: _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx 29761: - __lng_ad1 - __lng_bd1; 29761: 29761: 29761: 29761: for (int __i = 1; __i < __ad; ++__i) 29761: { 29761: const int __j = __i - 1; 29761: __term *= (__a + __d2 + __j) * (__b + __d2 + __j) 29761: / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); 29761: __sum1 += __term; 29761: } 29761: 29761: if (__ln_pre1 > __log_max) 29761: std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") 29761: ); 29761: else 29761: __F1 = std::exp(__ln_pre1) * __sum1; 29761: } 29761: else 29761: { 29761: 29761: 29761: __F1 = _Tp(0); 29761: } 29761: } 29761: 29761: 29761: bool __ok_d2 = true; 29761: _Tp __lng_ad2, __lng_bd2; 29761: try 29761: { 29761: __lng_ad2 = __log_gamma(__a + __d2); 29761: __lng_bd2 = __log_gamma(__b + __d2); 29761: } 29761: catch(...) 29761: { 29761: __ok_d2 = false; 29761: } 29761: 29761: if (__ok_d2) 29761: { 29761: 29761: 29761: const int __maxiter = 2000; 29761: const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); 29761: const _Tp __psi_1pd = __psi(_Tp(1) + __ad); 29761: const _Tp __psi_apd1 = __psi(__a + __d1); 29761: const _Tp __psi_bpd1 = __psi(__b + __d1); 29761: 29761: _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 29761: - __psi_bpd1 - __ln_omx; 29761: _Tp __fact = _Tp(1); 29761: _Tp __sum2 = __psi_term; 29761: _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx 29761: - __lng_ad2 - __lng_bd2; 29761: 29761: 29761: int __j; 29761: for (__j = 1; __j < __maxiter; ++__j) 29761: { 29761: 29761: 29761: const _Tp __term1 = _Tp(1) / _Tp(__j) 29761: + _Tp(1) / (__ad + __j); 29761: const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) 29761: + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); 29761: __psi_term += __term1 - __term2; 29761: __fact *= (__a + __d1 + _Tp(__j - 1)) 29761: * (__b + __d1 + _Tp(__j - 1)) 29761: / ((__ad + __j) * __j) * (_Tp(1) - __x); 29761: const _Tp __delta = __fact * __psi_term; 29761: __sum2 += __delta; 29761: if (std::abs(__delta) < __eps * std::abs(__sum2)) 29761: break; 29761: } 29761: if (__j == __maxiter) 29761: std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") 29761: ); 29761: 29761: if (__sum2 == _Tp(0)) 29761: __F2 = _Tp(0); 29761: else 29761: __F2 = std::exp(__ln_pre2) * __sum2; 29761: } 29761: else 29761: { 29761: 29761: 29761: __F2 = _Tp(0); 29761: } 29761: 29761: const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); 29761: const _Tp __F = __F1 + __sgn_2 * __F2; 29761: 29761: return __F; 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: 29761: bool __ok1 = true; 29761: _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); 29761: _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); 29761: try 29761: { 29761: __sgn_g1ca = __log_gamma_sign(__c - __a); 29761: __ln_g1ca = __log_gamma(__c - __a); 29761: __sgn_g1cb = __log_gamma_sign(__c - __b); 29761: __ln_g1cb = __log_gamma(__c - __b); 29761: } 29761: catch(...) 29761: { 29761: __ok1 = false; 29761: } 29761: 29761: bool __ok2 = true; 29761: _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); 29761: _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); 29761: try 29761: { 29761: __sgn_g2a = __log_gamma_sign(__a); 29761: __ln_g2a = __log_gamma(__a); 29761: __sgn_g2b = __log_gamma_sign(__b); 29761: __ln_g2b = __log_gamma(__b); 29761: } 29761: catch(...) 29761: { 29761: __ok2 = false; 29761: } 29761: 29761: const _Tp __sgn_gc = __log_gamma_sign(__c); 29761: const _Tp __ln_gc = __log_gamma(__c); 29761: const _Tp __sgn_gd = __log_gamma_sign(__d); 29761: const _Tp __ln_gd = __log_gamma(__d); 29761: const _Tp __sgn_gmd = __log_gamma_sign(-__d); 29761: const _Tp __ln_gmd = __log_gamma(-__d); 29761: 29761: const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; 29761: const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; 29761: 29761: _Tp __pre1, __pre2; 29761: if (__ok1 && __ok2) 29761: { 29761: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 29761: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 29761: + __d * std::log(_Tp(1) - __x); 29761: if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) 29761: { 29761: __pre1 = std::exp(__ln_pre1); 29761: __pre2 = std::exp(__ln_pre2); 29761: __pre1 *= __sgn1; 29761: __pre2 *= __sgn2; 29761: } 29761: else 29761: { 29761: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29761: ); 29761: } 29761: } 29761: else if (__ok1 && !__ok2) 29761: { 29761: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 29761: if (__ln_pre1 < __log_max) 29761: { 29761: __pre1 = std::exp(__ln_pre1); 29761: __pre1 *= __sgn1; 29761: __pre2 = _Tp(0); 29761: } 29761: else 29761: { 29761: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29761: ); 29761: } 29761: } 29761: else if (!__ok1 && __ok2) 29761: { 29761: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 29761: + __d * std::log(_Tp(1) - __x); 29761: if (__ln_pre2 < __log_max) 29761: { 29761: __pre1 = _Tp(0); 29761: __pre2 = std::exp(__ln_pre2); 29761: __pre2 *= __sgn2; 29761: } 29761: else 29761: { 29761: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29761: ); 29761: } 29761: } 29761: else 29761: { 29761: __pre1 = _Tp(0); 29761: __pre2 = _Tp(0); 29761: std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") 29761: ); 29761: } 29761: 29761: const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, 29761: _Tp(1) - __x); 29761: const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, 29761: _Tp(1) - __x); 29761: 29761: const _Tp __F = __pre1 * __F1 + __pre2 * __F2; 29761: 29761: return __F; 29761: } 29761: } 29761: # 728 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29761: { 29761: 29761: const _Tp __a_nint = ::std::nearbyint(__a); 29761: const _Tp __b_nint = ::std::nearbyint(__b); 29761: const _Tp __c_nint = ::std::nearbyint(__c); 29761: 29761: 29761: 29761: 29761: 29761: const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); 29761: if (std::abs(__x) >= _Tp(1)) 29761: std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") 29761: ); 29761: else if (__isnan(__a) || __isnan(__b) 29761: || __isnan(__c) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__c_nint == __c && __c_nint <= _Tp(0)) 29761: return std::numeric_limits<_Tp>::infinity(); 29761: else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) 29761: return std::pow(_Tp(1) - __x, __c - __a - __b); 29761: else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) 29761: && __x >= _Tp(0) && __x < _Tp(0.995L)) 29761: return __hyperg_series(__a, __b, __c, __x); 29761: else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) 29761: { 29761: 29761: 29761: if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) 29761: return __hyperg_series(__a_nint, __b, __c, __x); 29761: else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) 29761: return __hyperg_series(__a, __b_nint, __c, __x); 29761: else if (__x < -_Tp(0.25L)) 29761: return __hyperg_luke(__a, __b, __c, __x); 29761: else if (__x < _Tp(0.5L)) 29761: return __hyperg_series(__a, __b, __c, __x); 29761: else 29761: if (std::abs(__c) > _Tp(10)) 29761: return __hyperg_series(__a, __b, __c, __x); 29761: else 29761: return __hyperg_reflect(__a, __b, __c, __x); 29761: } 29761: else 29761: return __hyperg_luke(__a, __b, __c, __x); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 53 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/legendre_function.tcc" 1 3 29761: # 49 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 65 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29761: namespace __detail 29761: { 29761: # 80 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29761: template 29761: _Tp 29761: __poly_legendre_p(unsigned int __l, _Tp __x) 29761: { 29761: 29761: if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x == +_Tp(1)) 29761: return +_Tp(1); 29761: else if (__x == -_Tp(1)) 29761: return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); 29761: else 29761: { 29761: _Tp __p_lm2 = _Tp(1); 29761: if (__l == 0) 29761: return __p_lm2; 29761: 29761: _Tp __p_lm1 = __x; 29761: if (__l == 1) 29761: return __p_lm1; 29761: 29761: _Tp __p_l = 0; 29761: for (unsigned int __ll = 2; __ll <= __l; ++__ll) 29761: { 29761: 29761: 29761: __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 29761: - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); 29761: __p_lm2 = __p_lm1; 29761: __p_lm1 = __p_l; 29761: } 29761: 29761: return __p_l; 29761: } 29761: } 29761: # 136 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29761: template 29761: _Tp 29761: __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, 29761: _Tp __phase = _Tp(+1)) 29761: { 29761: 29761: if (__m > __l) 29761: return _Tp(0); 29761: else if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__m == 0) 29761: return __poly_legendre_p(__l, __x); 29761: else 29761: { 29761: _Tp __p_mm = _Tp(1); 29761: if (__m > 0) 29761: { 29761: 29761: 29761: _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); 29761: _Tp __fact = _Tp(1); 29761: for (unsigned int __i = 1; __i <= __m; ++__i) 29761: { 29761: __p_mm *= __phase * __fact * __root; 29761: __fact += _Tp(2); 29761: } 29761: } 29761: if (__l == __m) 29761: return __p_mm; 29761: 29761: _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; 29761: if (__l == __m + 1) 29761: return __p_mp1m; 29761: 29761: _Tp __p_lm2m = __p_mm; 29761: _Tp __P_lm1m = __p_mp1m; 29761: _Tp __p_lm = _Tp(0); 29761: for (unsigned int __j = __m + 2; __j <= __l; ++__j) 29761: { 29761: __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m 29761: - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); 29761: __p_lm2m = __P_lm1m; 29761: __P_lm1m = __p_lm; 29761: } 29761: 29761: return __p_lm; 29761: } 29761: } 29761: # 214 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29761: template 29761: _Tp 29761: __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 29761: { 29761: if (__isnan(__theta)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: 29761: const _Tp __x = std::cos(__theta); 29761: 29761: if (__m > __l) 29761: return _Tp(0); 29761: else if (__m == 0) 29761: { 29761: _Tp __P = __poly_legendre_p(__l, __x); 29761: _Tp __fact = std::sqrt(_Tp(2 * __l + 1) 29761: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 29761: __P *= __fact; 29761: return __P; 29761: } 29761: else if (__x == _Tp(1) || __x == -_Tp(1)) 29761: { 29761: 29761: return _Tp(0); 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: 29761: 29761: const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); 29761: const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); 29761: 29761: const _Tp __lncirc = ::std::log1p(-__x * __x); 29761: 29761: 29761: 29761: 29761: 29761: const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) 29761: - ::std::lgamma(_Tp(__m)); 29761: 29761: 29761: 29761: 29761: const _Tp __lnpre_val = 29761: -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() 29761: + _Tp(0.5L) * (__lnpoch + __m * __lncirc); 29761: const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) 29761: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 29761: _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); 29761: _Tp __y_mp1m = __y_mp1m_factor * __y_mm; 29761: 29761: if (__l == __m) 29761: return __y_mm; 29761: else if (__l == __m + 1) 29761: return __y_mp1m; 29761: else 29761: { 29761: _Tp __y_lm = _Tp(0); 29761: 29761: 29761: for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) 29761: { 29761: const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); 29761: const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); 29761: const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) 29761: * _Tp(2 * __ll - 1)); 29761: const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) 29761: / _Tp(2 * __ll - 3)); 29761: __y_lm = (__x * __y_mp1m * __fact1 29761: - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); 29761: __y_mm = __y_mp1m; 29761: __y_mp1m = __y_lm; 29761: } 29761: 29761: return __y_lm; 29761: } 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 54 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 1 3 29761: # 51 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 65 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: namespace __detail 29761: { 29761: # 83 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: template 29761: void 29761: __bessel_ik(_Tp __nu, _Tp __x, 29761: _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) 29761: { 29761: if (__x == _Tp(0)) 29761: { 29761: if (__nu == _Tp(0)) 29761: { 29761: __Inu = _Tp(1); 29761: __Ipnu = _Tp(0); 29761: } 29761: else if (__nu == _Tp(1)) 29761: { 29761: __Inu = _Tp(0); 29761: __Ipnu = _Tp(0.5L); 29761: } 29761: else 29761: { 29761: __Inu = _Tp(0); 29761: __Ipnu = _Tp(0); 29761: } 29761: __Knu = std::numeric_limits<_Tp>::infinity(); 29761: __Kpnu = -std::numeric_limits<_Tp>::infinity(); 29761: return; 29761: } 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); 29761: const int __max_iter = 15000; 29761: const _Tp __x_min = _Tp(2); 29761: 29761: const int __nl = static_cast(__nu + _Tp(0.5L)); 29761: 29761: const _Tp __mu = __nu - __nl; 29761: const _Tp __mu2 = __mu * __mu; 29761: const _Tp __xi = _Tp(1) / __x; 29761: const _Tp __xi2 = _Tp(2) * __xi; 29761: _Tp __h = __nu * __xi; 29761: if ( __h < __fp_min ) 29761: __h = __fp_min; 29761: _Tp __b = __xi2 * __nu; 29761: _Tp __d = _Tp(0); 29761: _Tp __c = __h; 29761: int __i; 29761: for ( __i = 1; __i <= __max_iter; ++__i ) 29761: { 29761: __b += __xi2; 29761: __d = _Tp(1) / (__b + __d); 29761: __c = __b + _Tp(1) / __c; 29761: const _Tp __del = __c * __d; 29761: __h *= __del; 29761: if (std::abs(__del - _Tp(1)) < __eps) 29761: break; 29761: } 29761: if (__i > __max_iter) 29761: std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") 29761: 29761: ); 29761: _Tp __Inul = __fp_min; 29761: _Tp __Ipnul = __h * __Inul; 29761: _Tp __Inul1 = __Inul; 29761: _Tp __Ipnu1 = __Ipnul; 29761: _Tp __fact = __nu * __xi; 29761: for (int __l = __nl; __l >= 1; --__l) 29761: { 29761: const _Tp __Inutemp = __fact * __Inul + __Ipnul; 29761: __fact -= __xi; 29761: __Ipnul = __fact * __Inutemp + __Inul; 29761: __Inul = __Inutemp; 29761: } 29761: _Tp __f = __Ipnul / __Inul; 29761: _Tp __Kmu, __Knu1; 29761: if (__x < __x_min) 29761: { 29761: const _Tp __x2 = __x / _Tp(2); 29761: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 29761: const _Tp __fact = (std::abs(__pimu) < __eps 29761: ? _Tp(1) : __pimu / std::sin(__pimu)); 29761: _Tp __d = -std::log(__x2); 29761: _Tp __e = __mu * __d; 29761: const _Tp __fact2 = (std::abs(__e) < __eps 29761: ? _Tp(1) : std::sinh(__e) / __e); 29761: _Tp __gam1, __gam2, __gampl, __gammi; 29761: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 29761: _Tp __ff = __fact 29761: * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 29761: _Tp __sum = __ff; 29761: __e = std::exp(__e); 29761: _Tp __p = __e / (_Tp(2) * __gampl); 29761: _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); 29761: _Tp __c = _Tp(1); 29761: __d = __x2 * __x2; 29761: _Tp __sum1 = __p; 29761: int __i; 29761: for (__i = 1; __i <= __max_iter; ++__i) 29761: { 29761: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 29761: __c *= __d / __i; 29761: __p /= __i - __mu; 29761: __q /= __i + __mu; 29761: const _Tp __del = __c * __ff; 29761: __sum += __del; 29761: const _Tp __del1 = __c * (__p - __i * __ff); 29761: __sum1 += __del1; 29761: if (std::abs(__del) < __eps * std::abs(__sum)) 29761: break; 29761: } 29761: if (__i > __max_iter) 29761: std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") 29761: ); 29761: __Kmu = __sum; 29761: __Knu1 = __sum1 * __xi2; 29761: } 29761: else 29761: { 29761: _Tp __b = _Tp(2) * (_Tp(1) + __x); 29761: _Tp __d = _Tp(1) / __b; 29761: _Tp __delh = __d; 29761: _Tp __h = __delh; 29761: _Tp __q1 = _Tp(0); 29761: _Tp __q2 = _Tp(1); 29761: _Tp __a1 = _Tp(0.25L) - __mu2; 29761: _Tp __q = __c = __a1; 29761: _Tp __a = -__a1; 29761: _Tp __s = _Tp(1) + __q * __delh; 29761: int __i; 29761: for (__i = 2; __i <= __max_iter; ++__i) 29761: { 29761: __a -= 2 * (__i - 1); 29761: __c = -__a * __c / __i; 29761: const _Tp __qnew = (__q1 - __b * __q2) / __a; 29761: __q1 = __q2; 29761: __q2 = __qnew; 29761: __q += __c * __qnew; 29761: __b += _Tp(2); 29761: __d = _Tp(1) / (__b + __a * __d); 29761: __delh = (__b * __d - _Tp(1)) * __delh; 29761: __h += __delh; 29761: const _Tp __dels = __q * __delh; 29761: __s += __dels; 29761: if ( std::abs(__dels / __s) < __eps ) 29761: break; 29761: } 29761: if (__i > __max_iter) 29761: std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") 29761: ); 29761: __h = __a1 * __h; 29761: __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) 29761: * std::exp(-__x) / __s; 29761: __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; 29761: } 29761: 29761: _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; 29761: _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); 29761: __Inu = __Inumu * __Inul1 / __Inul; 29761: __Ipnu = __Inumu * __Ipnu1 / __Inul; 29761: for ( __i = 1; __i <= __nl; ++__i ) 29761: { 29761: const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; 29761: __Kmu = __Knu1; 29761: __Knu1 = __Knutemp; 29761: } 29761: __Knu = __Kmu; 29761: __Kpnu = __nu * __xi * __Kmu - __Knu1; 29761: 29761: return; 29761: } 29761: # 267 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: template 29761: _Tp 29761: __cyl_bessel_i(_Tp __nu, _Tp __x) 29761: { 29761: if (__nu < _Tp(0) || __x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") 29761: ); 29761: else if (__isnan(__nu) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 29761: return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); 29761: else 29761: { 29761: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 29761: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29761: return __I_nu; 29761: } 29761: } 29761: # 303 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: template 29761: _Tp 29761: __cyl_bessel_k(_Tp __nu, _Tp __x) 29761: { 29761: if (__nu < _Tp(0) || __x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") 29761: ); 29761: else if (__isnan(__nu) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: { 29761: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 29761: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29761: return __K_nu; 29761: } 29761: } 29761: # 337 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: template 29761: void 29761: __sph_bessel_ik(unsigned int __n, _Tp __x, 29761: _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) 29761: { 29761: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 29761: 29761: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 29761: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29761: 29761: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 29761: / std::sqrt(__x); 29761: 29761: __i_n = __factor * __I_nu; 29761: __k_n = __factor * __K_nu; 29761: __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); 29761: __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); 29761: 29761: return; 29761: } 29761: # 373 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: template 29761: void 29761: __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) 29761: { 29761: const _Tp __absx = std::abs(__x); 29761: const _Tp __rootx = std::sqrt(__absx); 29761: const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); 29761: const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); 29761: 29761: if (__isnan(__x)) 29761: __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__z == _S_inf) 29761: { 29761: __Aip = __Ai = _Tp(0); 29761: __Bip = __Bi = _S_inf; 29761: } 29761: else if (__z == -_S_inf) 29761: __Bip = __Aip = __Bi = __Ai = _Tp(0); 29761: else if (__x > _Tp(0)) 29761: { 29761: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 29761: 29761: __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29761: __Ai = __rootx * __K_nu 29761: / (__numeric_constants<_Tp>::__sqrt3() 29761: * __numeric_constants<_Tp>::__pi()); 29761: __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() 29761: + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); 29761: 29761: __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29761: __Aip = -__x * __K_nu 29761: / (__numeric_constants<_Tp>::__sqrt3() 29761: * __numeric_constants<_Tp>::__pi()); 29761: __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() 29761: + _Tp(2) * __I_nu 29761: / __numeric_constants<_Tp>::__sqrt3()); 29761: } 29761: else if (__x < _Tp(0)) 29761: { 29761: _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; 29761: 29761: __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29761: __Ai = __rootx * (__J_nu 29761: - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 29761: __Bi = -__rootx * (__N_nu 29761: + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 29761: 29761: __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29761: __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() 29761: + __J_nu) / _Tp(2); 29761: __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() 29761: - __N_nu) / _Tp(2); 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: __Ai = _Tp(0.35502805388781723926L); 29761: __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); 29761: 29761: 29761: 29761: 29761: __Aip = -_Tp(0.25881940379280679840L); 29761: __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); 29761: } 29761: 29761: return; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 55 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/poly_hermite.tcc" 1 3 29761: # 42 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 56 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29761: namespace __detail 29761: { 29761: # 72 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29761: template 29761: _Tp 29761: __poly_hermite_recursion(unsigned int __n, _Tp __x) 29761: { 29761: 29761: _Tp __H_0 = 1; 29761: if (__n == 0) 29761: return __H_0; 29761: 29761: 29761: _Tp __H_1 = 2 * __x; 29761: if (__n == 1) 29761: return __H_1; 29761: 29761: 29761: _Tp __H_n, __H_nm1, __H_nm2; 29761: unsigned int __i; 29761: for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) 29761: { 29761: __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); 29761: __H_nm2 = __H_nm1; 29761: __H_nm1 = __H_n; 29761: } 29761: 29761: return __H_n; 29761: } 29761: # 114 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29761: template 29761: inline _Tp 29761: __poly_hermite(unsigned int __n, _Tp __x) 29761: { 29761: if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: return __poly_hermite_recursion(__n, __x); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 56 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 1 3 29761: # 44 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 60 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: namespace __detail 29761: { 29761: # 75 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: _Tp 29761: __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) 29761: { 29761: const _Tp __a = -_Tp(__n); 29761: const _Tp __b = _Tp(__alpha1) + _Tp(1); 29761: const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; 29761: const _Tp __cos2th = __x / __eta; 29761: const _Tp __sin2th = _Tp(1) - __cos2th; 29761: const _Tp __th = std::acos(std::sqrt(__cos2th)); 29761: const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() 29761: * __numeric_constants<_Tp>::__pi_2() 29761: * __eta * __eta * __cos2th * __sin2th; 29761: 29761: 29761: const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); 29761: const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); 29761: 29761: 29761: 29761: 29761: 29761: _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) 29761: * std::log(_Tp(0.25L) * __x * __eta); 29761: _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); 29761: _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x 29761: + __pre_term1 - __pre_term2; 29761: _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); 29761: _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta 29761: * (_Tp(2) * __th 29761: - std::sin(_Tp(2) * __th)) 29761: + __numeric_constants<_Tp>::__pi_4()); 29761: _Tp __ser = __ser_term1 + __ser_term2; 29761: 29761: return std::exp(__lnpre) * __ser; 29761: } 29761: # 129 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: _Tp 29761: __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) 29761: { 29761: const _Tp __b = _Tp(__alpha1) + _Tp(1); 29761: const _Tp __mx = -__x; 29761: const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) 29761: : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); 29761: 29761: _Tp __tc = _Tp(1); 29761: const _Tp __ax = std::abs(__x); 29761: for (unsigned int __k = 1; __k <= __n; ++__k) 29761: __tc *= (__ax / __k); 29761: 29761: _Tp __term = __tc * __tc_sgn; 29761: _Tp __sum = __term; 29761: for (int __k = int(__n) - 1; __k >= 0; --__k) 29761: { 29761: __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) 29761: * _Tp(__k + 1) / __mx; 29761: __sum += __term; 29761: } 29761: 29761: return __sum; 29761: } 29761: # 185 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: _Tp 29761: __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) 29761: { 29761: 29761: _Tp __l_0 = _Tp(1); 29761: if (__n == 0) 29761: return __l_0; 29761: 29761: 29761: _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); 29761: if (__n == 1) 29761: return __l_1; 29761: 29761: 29761: _Tp __l_n2 = __l_0; 29761: _Tp __l_n1 = __l_1; 29761: _Tp __l_n = _Tp(0); 29761: for (unsigned int __nn = 2; __nn <= __n; ++__nn) 29761: { 29761: __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) 29761: * __l_n1 / _Tp(__nn) 29761: - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); 29761: __l_n2 = __l_n1; 29761: __l_n1 = __l_n; 29761: } 29761: 29761: return __l_n; 29761: } 29761: # 244 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: _Tp 29761: __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) 29761: { 29761: if (__x < _Tp(0)) 29761: std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") 29761: ); 29761: 29761: else if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__n == 0) 29761: return _Tp(1); 29761: else if (__n == 1) 29761: return _Tp(1) + _Tp(__alpha1) - __x; 29761: else if (__x == _Tp(0)) 29761: { 29761: _Tp __prod = _Tp(__alpha1) + _Tp(1); 29761: for (unsigned int __k = 2; __k <= __n; ++__k) 29761: __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); 29761: return __prod; 29761: } 29761: else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) 29761: && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) 29761: return __poly_laguerre_large_n(__n, __alpha1, __x); 29761: else if (_Tp(__alpha1) >= _Tp(0) 29761: || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) 29761: return __poly_laguerre_recursion(__n, __alpha1, __x); 29761: else 29761: return __poly_laguerre_hyperg(__n, __alpha1, __x); 29761: } 29761: # 296 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: inline _Tp 29761: __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 29761: { return __poly_laguerre(__n, __m, __x); } 29761: # 316 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: inline _Tp 29761: __laguerre(unsigned int __n, _Tp __x) 29761: { return __poly_laguerre(__n, 0, __x); } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 57 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 1 3 29761: # 47 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 63 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: namespace __detail 29761: { 29761: # 78 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __riemann_zeta_sum(_Tp __s) 29761: { 29761: 29761: if (__s < _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in zeta sum.")); 29761: 29761: const unsigned int max_iter = 10000; 29761: _Tp __zeta = _Tp(0); 29761: for (unsigned int __k = 1; __k < max_iter; ++__k) 29761: { 29761: _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); 29761: if (__term < std::numeric_limits<_Tp>::epsilon()) 29761: { 29761: break; 29761: } 29761: __zeta += __term; 29761: } 29761: 29761: return __zeta; 29761: } 29761: # 115 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __riemann_zeta_alt(_Tp __s) 29761: { 29761: _Tp __sgn = _Tp(1); 29761: _Tp __zeta = _Tp(0); 29761: for (unsigned int __i = 1; __i < 10000000; ++__i) 29761: { 29761: _Tp __term = __sgn / std::pow(__i, __s); 29761: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __zeta += __term; 29761: __sgn *= _Tp(-1); 29761: } 29761: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 29761: 29761: return __zeta; 29761: } 29761: # 157 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __riemann_zeta_glob(_Tp __s) 29761: { 29761: _Tp __zeta = _Tp(0); 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 29761: * std::log(_Tp(10)) - _Tp(1); 29761: 29761: 29761: 29761: if (__s < _Tp(0)) 29761: { 29761: 29761: if (::std::fmod(__s,_Tp(2)) == _Tp(0)) 29761: return _Tp(0); 29761: else 29761: 29761: { 29761: _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); 29761: __zeta *= std::pow(_Tp(2) 29761: * __numeric_constants<_Tp>::__pi(), __s) 29761: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29761: 29761: * std::exp(::std::lgamma(_Tp(1) - __s)) 29761: 29761: 29761: 29761: / __numeric_constants<_Tp>::__pi(); 29761: return __zeta; 29761: } 29761: } 29761: 29761: _Tp __num = _Tp(0.5L); 29761: const unsigned int __maxit = 10000; 29761: for (unsigned int __i = 0; __i < __maxit; ++__i) 29761: { 29761: bool __punt = false; 29761: _Tp __sgn = _Tp(1); 29761: _Tp __term = _Tp(0); 29761: for (unsigned int __j = 0; __j <= __i; ++__j) 29761: { 29761: 29761: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 29761: - ::std::lgamma(_Tp(1 + __j)) 29761: - ::std::lgamma(_Tp(1 + __i - __j)); 29761: 29761: 29761: 29761: 29761: 29761: if (__bincoeff > __max_bincoeff) 29761: { 29761: 29761: __punt = true; 29761: break; 29761: } 29761: __bincoeff = std::exp(__bincoeff); 29761: __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); 29761: __sgn *= _Tp(-1); 29761: } 29761: if (__punt) 29761: break; 29761: __term *= __num; 29761: __zeta += __term; 29761: if (std::abs(__term/__zeta) < __eps) 29761: break; 29761: __num *= _Tp(0.5L); 29761: } 29761: 29761: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 29761: 29761: return __zeta; 29761: } 29761: # 252 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __riemann_zeta_product(_Tp __s) 29761: { 29761: static const _Tp __prime[] = { 29761: _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), 29761: _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), 29761: _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), 29761: _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) 29761: }; 29761: static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); 29761: 29761: _Tp __zeta = _Tp(1); 29761: for (unsigned int __i = 0; __i < __num_primes; ++__i) 29761: { 29761: const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); 29761: __zeta *= __fact; 29761: if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: } 29761: 29761: __zeta = _Tp(1) / __zeta; 29761: 29761: return __zeta; 29761: } 29761: # 293 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __riemann_zeta(_Tp __s) 29761: { 29761: if (__isnan(__s)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__s == _Tp(1)) 29761: return std::numeric_limits<_Tp>::infinity(); 29761: else if (__s < -_Tp(19)) 29761: { 29761: _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); 29761: __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) 29761: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29761: 29761: * std::exp(::std::lgamma(_Tp(1) - __s)) 29761: 29761: 29761: 29761: / __numeric_constants<_Tp>::__pi(); 29761: return __zeta; 29761: } 29761: else if (__s < _Tp(20)) 29761: { 29761: 29761: bool __glob = true; 29761: if (__glob) 29761: return __riemann_zeta_glob(__s); 29761: else 29761: { 29761: if (__s > _Tp(1)) 29761: return __riemann_zeta_sum(__s); 29761: else 29761: { 29761: _Tp __zeta = std::pow(_Tp(2) 29761: * __numeric_constants<_Tp>::__pi(), __s) 29761: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29761: 29761: * ::std::tgamma(_Tp(1) - __s) 29761: 29761: 29761: 29761: * __riemann_zeta_sum(_Tp(1) - __s); 29761: return __zeta; 29761: } 29761: } 29761: } 29761: else 29761: return __riemann_zeta_product(__s); 29761: } 29761: # 365 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __hurwitz_zeta_glob(_Tp __a, _Tp __s) 29761: { 29761: _Tp __zeta = _Tp(0); 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 29761: * std::log(_Tp(10)) - _Tp(1); 29761: 29761: const unsigned int __maxit = 10000; 29761: for (unsigned int __i = 0; __i < __maxit; ++__i) 29761: { 29761: bool __punt = false; 29761: _Tp __sgn = _Tp(1); 29761: _Tp __term = _Tp(0); 29761: for (unsigned int __j = 0; __j <= __i; ++__j) 29761: { 29761: 29761: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 29761: - ::std::lgamma(_Tp(1 + __j)) 29761: - ::std::lgamma(_Tp(1 + __i - __j)); 29761: 29761: 29761: 29761: 29761: 29761: if (__bincoeff > __max_bincoeff) 29761: { 29761: 29761: __punt = true; 29761: break; 29761: } 29761: __bincoeff = std::exp(__bincoeff); 29761: __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); 29761: __sgn *= _Tp(-1); 29761: } 29761: if (__punt) 29761: break; 29761: __term /= _Tp(__i + 1); 29761: if (std::abs(__term / __zeta) < __eps) 29761: break; 29761: __zeta += __term; 29761: } 29761: 29761: __zeta /= __s - _Tp(1); 29761: 29761: return __zeta; 29761: } 29761: # 430 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: inline _Tp 29761: __hurwitz_zeta(_Tp __a, _Tp __s) 29761: { return __hurwitz_zeta_glob(__a, __s); } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 58 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 203 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: assoc_laguerref(unsigned int __n, unsigned int __m, float __x) 29761: { return __detail::__assoc_laguerre(__n, __m, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) 29761: { return __detail::__assoc_laguerre(__n, __m, __x); } 29761: # 248 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__assoc_laguerre<__type>(__n, __m, __x); 29761: } 29761: # 264 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: assoc_legendref(unsigned int __l, unsigned int __m, float __x) 29761: { return __detail::__assoc_legendre_p(__l, __m, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) 29761: { return __detail::__assoc_legendre_p(__l, __m, __x); } 29761: # 294 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__assoc_legendre_p<__type>(__l, __m, __x); 29761: } 29761: # 309 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: betaf(float __a, float __b) 29761: { return __detail::__beta(__a, __b); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: betal(long double __a, long double __b) 29761: { return __detail::__beta(__a, __b); } 29761: # 339 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type 29761: beta(_Tpa __a, _Tpb __b) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; 29761: return __detail::__beta<__type>(__a, __b); 29761: } 29761: # 355 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: comp_ellint_1f(float __k) 29761: { return __detail::__comp_ellint_1(__k); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: comp_ellint_1l(long double __k) 29761: { return __detail::__comp_ellint_1(__k); } 29761: # 387 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: comp_ellint_1(_Tp __k) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__comp_ellint_1<__type>(__k); 29761: } 29761: # 403 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: comp_ellint_2f(float __k) 29761: { return __detail::__comp_ellint_2(__k); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: comp_ellint_2l(long double __k) 29761: { return __detail::__comp_ellint_2(__k); } 29761: # 434 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: comp_ellint_2(_Tp __k) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__comp_ellint_2<__type>(__k); 29761: } 29761: # 450 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: comp_ellint_3f(float __k, float __nu) 29761: { return __detail::__comp_ellint_3(__k, __nu); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: comp_ellint_3l(long double __k, long double __nu) 29761: { return __detail::__comp_ellint_3(__k, __nu); } 29761: # 485 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type 29761: comp_ellint_3(_Tp __k, _Tpn __nu) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; 29761: return __detail::__comp_ellint_3<__type>(__k, __nu); 29761: } 29761: # 501 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: cyl_bessel_if(float __nu, float __x) 29761: { return __detail::__cyl_bessel_i(__nu, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: cyl_bessel_il(long double __nu, long double __x) 29761: { return __detail::__cyl_bessel_i(__nu, __x); } 29761: # 531 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29761: cyl_bessel_i(_Tpnu __nu, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29761: return __detail::__cyl_bessel_i<__type>(__nu, __x); 29761: } 29761: # 547 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: cyl_bessel_jf(float __nu, float __x) 29761: { return __detail::__cyl_bessel_j(__nu, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: cyl_bessel_jl(long double __nu, long double __x) 29761: { return __detail::__cyl_bessel_j(__nu, __x); } 29761: # 577 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29761: cyl_bessel_j(_Tpnu __nu, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29761: return __detail::__cyl_bessel_j<__type>(__nu, __x); 29761: } 29761: # 593 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: cyl_bessel_kf(float __nu, float __x) 29761: { return __detail::__cyl_bessel_k(__nu, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: cyl_bessel_kl(long double __nu, long double __x) 29761: { return __detail::__cyl_bessel_k(__nu, __x); } 29761: # 629 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29761: cyl_bessel_k(_Tpnu __nu, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29761: return __detail::__cyl_bessel_k<__type>(__nu, __x); 29761: } 29761: # 645 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: cyl_neumannf(float __nu, float __x) 29761: { return __detail::__cyl_neumann_n(__nu, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: cyl_neumannl(long double __nu, long double __x) 29761: { return __detail::__cyl_neumann_n(__nu, __x); } 29761: # 677 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29761: cyl_neumann(_Tpnu __nu, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29761: return __detail::__cyl_neumann_n<__type>(__nu, __x); 29761: } 29761: # 693 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: ellint_1f(float __k, float __phi) 29761: { return __detail::__ellint_1(__k, __phi); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: ellint_1l(long double __k, long double __phi) 29761: { return __detail::__ellint_1(__k, __phi); } 29761: # 725 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 29761: ellint_1(_Tp __k, _Tpp __phi) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 29761: return __detail::__ellint_1<__type>(__k, __phi); 29761: } 29761: # 741 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: ellint_2f(float __k, float __phi) 29761: { return __detail::__ellint_2(__k, __phi); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: ellint_2l(long double __k, long double __phi) 29761: { return __detail::__ellint_2(__k, __phi); } 29761: # 773 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 29761: ellint_2(_Tp __k, _Tpp __phi) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 29761: return __detail::__ellint_2<__type>(__k, __phi); 29761: } 29761: # 789 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: ellint_3f(float __k, float __nu, float __phi) 29761: { return __detail::__ellint_3(__k, __nu, __phi); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: ellint_3l(long double __k, long double __nu, long double __phi) 29761: { return __detail::__ellint_3(__k, __nu, __phi); } 29761: # 826 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type 29761: ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) 29761: { 29761: typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; 29761: return __detail::__ellint_3<__type>(__k, __nu, __phi); 29761: } 29761: # 841 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: expintf(float __x) 29761: { return __detail::__expint(__x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: expintl(long double __x) 29761: { return __detail::__expint(__x); } 29761: # 866 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: expint(_Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__expint<__type>(__x); 29761: } 29761: # 882 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: hermitef(unsigned int __n, float __x) 29761: { return __detail::__poly_hermite(__n, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: hermitel(unsigned int __n, long double __x) 29761: { return __detail::__poly_hermite(__n, __x); } 29761: # 914 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: hermite(unsigned int __n, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__poly_hermite<__type>(__n, __x); 29761: } 29761: # 930 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: laguerref(unsigned int __n, float __x) 29761: { return __detail::__laguerre(__n, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: laguerrel(unsigned int __n, long double __x) 29761: { return __detail::__laguerre(__n, __x); } 29761: # 958 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: laguerre(unsigned int __n, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__laguerre<__type>(__n, __x); 29761: } 29761: # 974 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: legendref(unsigned int __l, float __x) 29761: { return __detail::__poly_legendre_p(__l, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: legendrel(unsigned int __l, long double __x) 29761: { return __detail::__poly_legendre_p(__l, __x); } 29761: # 1003 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: legendre(unsigned int __l, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__poly_legendre_p<__type>(__l, __x); 29761: } 29761: # 1019 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: riemann_zetaf(float __s) 29761: { return __detail::__riemann_zeta(__s); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: riemann_zetal(long double __s) 29761: { return __detail::__riemann_zeta(__s); } 29761: # 1054 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: riemann_zeta(_Tp __s) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__riemann_zeta<__type>(__s); 29761: } 29761: # 1070 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: sph_besself(unsigned int __n, float __x) 29761: { return __detail::__sph_bessel(__n, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: sph_bessell(unsigned int __n, long double __x) 29761: { return __detail::__sph_bessel(__n, __x); } 29761: # 1098 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: sph_bessel(unsigned int __n, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__sph_bessel<__type>(__n, __x); 29761: } 29761: # 1114 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: sph_legendref(unsigned int __l, unsigned int __m, float __theta) 29761: { return __detail::__sph_legendre(__l, __m, __theta); } 29761: # 1125 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline long double 29761: sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) 29761: { return __detail::__sph_legendre(__l, __m, __theta); } 29761: # 1145 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__sph_legendre<__type>(__l, __m, __theta); 29761: } 29761: # 1161 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: sph_neumannf(unsigned int __n, float __x) 29761: { return __detail::__sph_neumann(__n, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: sph_neumannl(unsigned int __n, long double __x) 29761: { return __detail::__sph_neumann(__n, __x); } 29761: # 1189 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: sph_neumann(unsigned int __n, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__sph_neumann<__type>(__n, __x); 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 1216 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: airy_aif(float __x) 29761: { 29761: float __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Ai; 29761: } 29761: 29761: 29761: 29761: 29761: inline long double 29761: airy_ail(long double __x) 29761: { 29761: long double __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Ai; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: airy_ai(_Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: __type __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Ai; 29761: } 29761: 29761: 29761: 29761: 29761: inline float 29761: airy_bif(float __x) 29761: { 29761: float __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Bi; 29761: } 29761: 29761: 29761: 29761: 29761: inline long double 29761: airy_bil(long double __x) 29761: { 29761: long double __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Bi; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: airy_bi(_Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: __type __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Bi; 29761: } 29761: # 1292 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: conf_hypergf(float __a, float __c, float __x) 29761: { return std::__detail::__conf_hyperg(__a, __c, __x); } 29761: # 1303 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline long double 29761: conf_hypergl(long double __a, long double __c, long double __x) 29761: { return std::__detail::__conf_hyperg(__a, __c, __x); } 29761: # 1323 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type 29761: conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; 29761: return std::__detail::__conf_hyperg<__type>(__a, __c, __x); 29761: } 29761: # 1340 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: hypergf(float __a, float __b, float __c, float __x) 29761: { return std::__detail::__hyperg(__a, __b, __c, __x); } 29761: # 1351 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline long double 29761: hypergl(long double __a, long double __b, long double __c, long double __x) 29761: { return std::__detail::__hyperg(__a, __b, __c, __x); } 29761: # 1372 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type 29761: hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> 29761: ::__type __type; 29761: return std::__detail::__hyperg<__type>(__a, __b, __c, __x); 29761: } 29761: 29761: 29761: 29761: } 29761: # 3907 "/usr/include/c++/14/cmath" 2 3 29761: 29761: 29761: } 29761: # 41 "/usr/include/c++/14/random" 2 3 29761: 29761: # 1 "/usr/include/c++/14/cstdlib" 1 3 29761: # 39 "/usr/include/c++/14/cstdlib" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdlib" 3 29761: # 43 "/usr/include/c++/14/random" 2 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/random.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/random.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 58 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: _RealType 29761: generate_canonical(_UniformRandomNumberGenerator& __g); 29761: 29761: 29761: 29761: namespace __detail 29761: { 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: 29761: template 29761: (std::numeric_limits<_UIntType>::digits)> 29761: struct _Shift 29761: { static constexpr _UIntType __value = 0; }; 29761: 29761: template 29761: struct _Shift<_UIntType, __w, true> 29761: { static constexpr _UIntType __value = _UIntType(1) << __w; }; 29761: 29761: template 29761: struct _Select_uint_least_t 29761: { 29761: static_assert(__which < 0, 29761: "sorry, would be too much trouble for a slow result"); 29761: }; 29761: 29761: template 29761: struct _Select_uint_least_t<__s, 4> 29761: { using type = unsigned int; }; 29761: 29761: template 29761: struct _Select_uint_least_t<__s, 3> 29761: { using type = unsigned long; }; 29761: 29761: template 29761: struct _Select_uint_least_t<__s, 2> 29761: { using type = unsigned long long; }; 29761: # 111 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: struct _Select_uint_least_t<__s, 1> 29761: { 29761: 29761: 29761: struct type 29761: { 29761: explicit 29761: type(uint64_t __a) noexcept : _M_lo(__a), _M_hi(0) { } 29761: 29761: 29761: friend type 29761: operator*(type __l, uint64_t __x) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: constexpr uint64_t __mask = 0xffffffff; 29761: uint64_t __ll[2] = { __l._M_lo >> 32, __l._M_lo & __mask }; 29761: uint64_t __xx[2] = { __x >> 32, __x & __mask }; 29761: uint64_t __l0x0 = __ll[0] * __xx[0]; 29761: uint64_t __l0x1 = __ll[0] * __xx[1]; 29761: uint64_t __l1x0 = __ll[1] * __xx[0]; 29761: uint64_t __l1x1 = __ll[1] * __xx[1]; 29761: 29761: 29761: uint64_t __mid 29761: = (__l0x1 & __mask) + (__l1x0 & __mask) + (__l1x1 >> 32); 29761: __l._M_hi = __l0x0 + (__l0x1 >> 32) + (__l1x0 >> 32) + (__mid >> 32); 29761: __l._M_lo = (__mid << 32) + (__l1x1 & __mask); 29761: return __l; 29761: } 29761: 29761: friend type 29761: operator+(type __l, uint64_t __c) noexcept 29761: { 29761: __l._M_hi += __builtin_add_overflow(__l._M_lo, __c, &__l._M_lo); 29761: return __l; 29761: } 29761: 29761: friend type 29761: operator%(type __l, uint64_t __m) noexcept 29761: { 29761: if (__builtin_expect(__l._M_hi == 0, 0)) 29761: { 29761: __l._M_lo %= __m; 29761: return __l; 29761: } 29761: 29761: int __shift = __builtin_clzll(__m) + 64 29761: - __builtin_clzll(__l._M_hi); 29761: type __x(0); 29761: if (__shift >= 64) 29761: { 29761: __x._M_hi = __m << (__shift - 64); 29761: __x._M_lo = 0; 29761: } 29761: else 29761: { 29761: __x._M_hi = __m >> (64 - __shift); 29761: __x._M_lo = __m << __shift; 29761: } 29761: 29761: while (__l._M_hi != 0 || __l._M_lo >= __m) 29761: { 29761: if (__x <= __l) 29761: { 29761: __l._M_hi -= __x._M_hi; 29761: __l._M_hi -= __builtin_sub_overflow(__l._M_lo, __x._M_lo, 29761: &__l._M_lo); 29761: } 29761: __x._M_lo = (__x._M_lo >> 1) | (__x._M_hi << 63); 29761: __x._M_hi >>= 1; 29761: } 29761: return __l; 29761: } 29761: 29761: 29761: explicit operator uint64_t() const noexcept 29761: { return _M_lo; } 29761: 29761: friend bool operator<(const type& __l, const type& __r) noexcept 29761: { 29761: if (__l._M_hi < __r._M_hi) 29761: return true; 29761: else if (__l._M_hi == __r._M_hi) 29761: return __l._M_lo < __r._M_lo; 29761: else 29761: return false; 29761: } 29761: 29761: friend bool operator<=(const type& __l, const type& __r) noexcept 29761: { return !(__r < __l); } 29761: 29761: uint64_t _M_lo; 29761: uint64_t _M_hi; 29761: }; 29761: }; 29761: 29761: 29761: 29761: template= __m - 1), 29761: bool __schrage_ok = __m % __a < __m / __a> 29761: struct _Mod 29761: { 29761: static _Tp 29761: __calc(_Tp __x) 29761: { 29761: using _Tp2 29761: = typename _Select_uint_least_t::type; 29761: return static_cast<_Tp>((_Tp2(__a) * __x + __c) % __m); 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Mod<_Tp, __m, __a, __c, false, true> 29761: { 29761: static _Tp 29761: __calc(_Tp __x); 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Mod<_Tp, __m, __a, __c, true, __s> 29761: { 29761: static _Tp 29761: __calc(_Tp __x) 29761: { 29761: _Tp __res = __a * __x + __c; 29761: if (__m) 29761: __res %= __m; 29761: return __res; 29761: } 29761: }; 29761: 29761: template 29761: inline _Tp 29761: __mod(_Tp __x) 29761: { 29761: if constexpr (__a == 0) 29761: return __c; 29761: else 29761: return _Mod<_Tp, __m, __a, __c>::__calc(__x); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Adaptor 29761: { 29761: static_assert(std::is_floating_point<_DInputType>::value, 29761: "template argument must be a floating point type"); 29761: 29761: public: 29761: _Adaptor(_Engine& __g) 29761: : _M_g(__g) { } 29761: 29761: _DInputType 29761: min() const 29761: { return _DInputType(0); } 29761: 29761: _DInputType 29761: max() const 29761: { return _DInputType(1); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: _DInputType 29761: operator()() 29761: { 29761: return std::generate_canonical<_DInputType, 29761: std::numeric_limits<_DInputType>::digits, 29761: _Engine>(_M_g); 29761: } 29761: 29761: private: 29761: _Engine& _M_g; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: using __seed_seq_generate_t = decltype( 29761: std::declval<_Sseq&>().generate(std::declval(), 29761: std::declval())); 29761: 29761: template> 29761: using _If_seed_seq_for = _Require< 29761: __not_, _Engine>>, 29761: is_unsigned, 29761: __not_> 29761: >; 29761: 29761: #pragma GCC diagnostic pop 29761: } 29761: # 365 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class linear_congruential_engine 29761: { 29761: static_assert(std::is_unsigned<_UIntType>::value, 29761: "result_type must be an unsigned integral type"); 29761: static_assert(__m == 0u || (__a < __m && __c < __m), 29761: "template argument substituting __m out of bounds"); 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, linear_congruential_engine, 29761: _UIntType>; 29761: 29761: public: 29761: 29761: typedef _UIntType result_type; 29761: 29761: 29761: static constexpr result_type multiplier = __a; 29761: 29761: static constexpr result_type increment = __c; 29761: 29761: static constexpr result_type modulus = __m; 29761: static constexpr result_type default_seed = 1u; 29761: 29761: 29761: 29761: 29761: 29761: linear_congruential_engine() : linear_congruential_engine(default_seed) 29761: { } 29761: # 404 "/usr/include/c++/14/bits/random.h" 3 29761: explicit 29761: linear_congruential_engine(result_type __s) 29761: { seed(__s); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: linear_congruential_engine(_Sseq& __q) 29761: { seed(__q); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed(result_type __s = default_seed); 29761: # 435 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return __c == 0u ? 1u : 0u; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return __m - 1u; } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z) 29761: { 29761: for (; __z != 0ULL; --__z) 29761: (*this)(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: operator()() 29761: { 29761: _M_x = __detail::__mod<_UIntType, __m, __a, __c>(_M_x); 29761: return _M_x; 29761: } 29761: # 487 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const linear_congruential_engine& __lhs, 29761: const linear_congruential_engine& __rhs) 29761: { return __lhs._M_x == __rhs._M_x; } 29761: # 500 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::linear_congruential_engine<_UIntType1, 29761: __a1, __c1, __m1>& __lcr); 29761: # 520 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::linear_congruential_engine<_UIntType1, __a1, 29761: __c1, __m1>& __lcr); 29761: 29761: private: 29761: _UIntType _M_x; 29761: }; 29761: # 543 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::linear_congruential_engine<_UIntType, __a, 29761: __c, __m>& __lhs, 29761: const std::linear_congruential_engine<_UIntType, __a, 29761: __c, __m>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 583 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class mersenne_twister_engine 29761: { 29761: static_assert(std::is_unsigned<_UIntType>::value, 29761: "result_type must be an unsigned integral type"); 29761: static_assert(1u <= __m && __m <= __n, 29761: "template argument substituting __m out of bounds"); 29761: static_assert(__r <= __w, "template argument substituting " 29761: "__r out of bound"); 29761: static_assert(__u <= __w, "template argument substituting " 29761: "__u out of bound"); 29761: static_assert(__s <= __w, "template argument substituting " 29761: "__s out of bound"); 29761: static_assert(__t <= __w, "template argument substituting " 29761: "__t out of bound"); 29761: static_assert(__l <= __w, "template argument substituting " 29761: "__l out of bound"); 29761: static_assert(__w <= std::numeric_limits<_UIntType>::digits, 29761: "template argument substituting __w out of bound"); 29761: static_assert(__a <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29761: "template argument substituting __a out of bound"); 29761: static_assert(__b <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29761: "template argument substituting __b out of bound"); 29761: static_assert(__c <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29761: "template argument substituting __c out of bound"); 29761: static_assert(__d <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29761: "template argument substituting __d out of bound"); 29761: static_assert(__f <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29761: "template argument substituting __f out of bound"); 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, mersenne_twister_engine, 29761: _UIntType>; 29761: 29761: public: 29761: 29761: typedef _UIntType result_type; 29761: 29761: 29761: static constexpr size_t word_size = __w; 29761: static constexpr size_t state_size = __n; 29761: static constexpr size_t shift_size = __m; 29761: static constexpr size_t mask_bits = __r; 29761: static constexpr result_type xor_mask = __a; 29761: static constexpr size_t tempering_u = __u; 29761: static constexpr result_type tempering_d = __d; 29761: static constexpr size_t tempering_s = __s; 29761: static constexpr result_type tempering_b = __b; 29761: static constexpr size_t tempering_t = __t; 29761: static constexpr result_type tempering_c = __c; 29761: static constexpr size_t tempering_l = __l; 29761: static constexpr result_type initialization_multiplier = __f; 29761: static constexpr result_type default_seed = 5489u; 29761: 29761: 29761: 29761: mersenne_twister_engine() : mersenne_twister_engine(default_seed) { } 29761: 29761: explicit 29761: mersenne_twister_engine(result_type __sd) 29761: { seed(__sd); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: mersenne_twister_engine(_Sseq& __q) 29761: { seed(__q); } 29761: 29761: void 29761: seed(result_type __sd = default_seed); 29761: 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q); 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return 0; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z); 29761: 29761: result_type 29761: operator()(); 29761: # 703 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const mersenne_twister_engine& __lhs, 29761: const mersenne_twister_engine& __rhs) 29761: { return (std::equal(__lhs._M_x, __lhs._M_x + state_size, __rhs._M_x) 29761: && __lhs._M_p == __rhs._M_p); } 29761: # 721 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::mersenne_twister_engine<_UIntType1, __w1, __n1, 29761: __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 29761: __l1, __f1>& __x); 29761: # 747 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, 29761: __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 29761: __l1, __f1>& __x); 29761: 29761: private: 29761: void _M_gen_rand(); 29761: 29761: _UIntType _M_x[state_size]; 29761: size_t _M_p; 29761: }; 29761: # 781 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 29761: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __lhs, 29761: const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 29761: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 812 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class subtract_with_carry_engine 29761: { 29761: static_assert(std::is_unsigned<_UIntType>::value, 29761: "result_type must be an unsigned integral type"); 29761: static_assert(0u < __s && __s < __r, 29761: "0 < s < r"); 29761: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 29761: "template argument substituting __w out of bounds"); 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, subtract_with_carry_engine, 29761: _UIntType>; 29761: 29761: public: 29761: 29761: typedef _UIntType result_type; 29761: 29761: 29761: static constexpr size_t word_size = __w; 29761: static constexpr size_t short_lag = __s; 29761: static constexpr size_t long_lag = __r; 29761: static constexpr uint_least32_t default_seed = 19780503u; 29761: 29761: subtract_with_carry_engine() : subtract_with_carry_engine(0u) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: subtract_with_carry_engine(result_type __sd) 29761: { seed(__sd); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: subtract_with_carry_engine(_Sseq& __q) 29761: { seed(__q); } 29761: # 871 "/usr/include/c++/14/bits/random.h" 3 29761: void 29761: seed(result_type __sd = 0u); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q); 29761: 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return 0; } 29761: 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z) 29761: { 29761: for (; __z != 0ULL; --__z) 29761: (*this)(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: operator()(); 29761: # 926 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const subtract_with_carry_engine& __lhs, 29761: const subtract_with_carry_engine& __rhs) 29761: { return (std::equal(__lhs._M_x, __lhs._M_x + long_lag, __rhs._M_x) 29761: && __lhs._M_carry == __rhs._M_carry 29761: && __lhs._M_p == __rhs._M_p); } 29761: # 945 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::subtract_with_carry_engine<_UIntType1, __w1, 29761: __s1, __r1>& __x); 29761: # 964 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::subtract_with_carry_engine<_UIntType1, __w1, 29761: __s1, __r1>& __x); 29761: 29761: private: 29761: 29761: _UIntType _M_x[long_lag]; 29761: _UIntType _M_carry; 29761: size_t _M_p; 29761: }; 29761: # 991 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::subtract_with_carry_engine<_UIntType, __w, 29761: __s, __r>& __lhs, 29761: const std::subtract_with_carry_engine<_UIntType, __w, 29761: __s, __r>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 1009 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class discard_block_engine 29761: { 29761: static_assert(1 <= __r && __r <= __p, 29761: "template argument substituting __r out of bounds"); 29761: 29761: public: 29761: 29761: typedef typename _RandomNumberEngine::result_type result_type; 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, discard_block_engine, 29761: result_type>; 29761: 29761: 29761: static constexpr size_t block_size = __p; 29761: static constexpr size_t used_block = __r; 29761: 29761: 29761: 29761: 29761: 29761: 29761: discard_block_engine() 29761: : _M_b(), _M_n(0) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: discard_block_engine(const _RandomNumberEngine& __rng) 29761: : _M_b(__rng), _M_n(0) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: discard_block_engine(_RandomNumberEngine&& __rng) 29761: : _M_b(std::move(__rng)), _M_n(0) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: discard_block_engine(result_type __s) 29761: : _M_b(__s), _M_n(0) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: discard_block_engine(_Sseq& __q) 29761: : _M_b(__q), _M_n(0) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed() 29761: { 29761: _M_b.seed(); 29761: _M_n = 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed(result_type __s) 29761: { 29761: _M_b.seed(__s); 29761: _M_n = 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q) 29761: { 29761: _M_b.seed(__q); 29761: _M_n = 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: const _RandomNumberEngine& 29761: base() const noexcept 29761: { return _M_b; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return _RandomNumberEngine::min(); } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return _RandomNumberEngine::max(); } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z) 29761: { 29761: for (; __z != 0ULL; --__z) 29761: (*this)(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: operator()(); 29761: # 1161 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const discard_block_engine& __lhs, 29761: const discard_block_engine& __rhs) 29761: { return __lhs._M_b == __rhs._M_b && __lhs._M_n == __rhs._M_n; } 29761: # 1177 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::discard_block_engine<_RandomNumberEngine1, 29761: __p1, __r1>& __x); 29761: # 1195 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::discard_block_engine<_RandomNumberEngine1, 29761: __p1, __r1>& __x); 29761: 29761: private: 29761: _RandomNumberEngine _M_b; 29761: size_t _M_n; 29761: }; 29761: # 1219 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::discard_block_engine<_RandomNumberEngine, __p, 29761: __r>& __lhs, 29761: const std::discard_block_engine<_RandomNumberEngine, __p, 29761: __r>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 1235 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class independent_bits_engine 29761: { 29761: static_assert(std::is_unsigned<_UIntType>::value, 29761: "result_type must be an unsigned integral type"); 29761: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 29761: "template argument substituting __w out of bounds"); 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, independent_bits_engine, 29761: _UIntType>; 29761: 29761: public: 29761: 29761: typedef _UIntType result_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: independent_bits_engine() 29761: : _M_b() { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: independent_bits_engine(const _RandomNumberEngine& __rng) 29761: : _M_b(__rng) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: independent_bits_engine(_RandomNumberEngine&& __rng) 29761: : _M_b(std::move(__rng)) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: independent_bits_engine(result_type __s) 29761: : _M_b(__s) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: independent_bits_engine(_Sseq& __q) 29761: : _M_b(__q) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed() 29761: { _M_b.seed(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed(result_type __s) 29761: { _M_b.seed(__s); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q) 29761: { _M_b.seed(__q); } 29761: 29761: 29761: 29761: 29761: 29761: const _RandomNumberEngine& 29761: base() const noexcept 29761: { return _M_b; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return 0U; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z) 29761: { 29761: for (; __z != 0ULL; --__z) 29761: (*this)(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: operator()(); 29761: # 1377 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const independent_bits_engine& __lhs, 29761: const independent_bits_engine& __rhs) 29761: { return __lhs._M_b == __rhs._M_b; } 29761: # 1394 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::independent_bits_engine<_RandomNumberEngine, 29761: __w, _UIntType>& __x) 29761: { 29761: __is >> __x._M_b; 29761: return __is; 29761: } 29761: 29761: private: 29761: _RandomNumberEngine _M_b; 29761: }; 29761: # 1421 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::independent_bits_engine<_RandomNumberEngine, __w, 29761: _UIntType>& __lhs, 29761: const std::independent_bits_engine<_RandomNumberEngine, __w, 29761: _UIntType>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 1440 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::independent_bits_engine<_RandomNumberEngine, 29761: __w, _UIntType>& __x) 29761: { 29761: __os << __x.base(); 29761: return __os; 29761: } 29761: # 1462 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class shuffle_order_engine 29761: { 29761: static_assert(1u <= __k, "template argument substituting " 29761: "__k out of bound"); 29761: 29761: public: 29761: 29761: typedef typename _RandomNumberEngine::result_type result_type; 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, shuffle_order_engine, 29761: result_type>; 29761: 29761: static constexpr size_t table_size = __k; 29761: 29761: 29761: 29761: 29761: 29761: 29761: shuffle_order_engine() 29761: : _M_b() 29761: { _M_initialize(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: shuffle_order_engine(const _RandomNumberEngine& __rng) 29761: : _M_b(__rng) 29761: { _M_initialize(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: shuffle_order_engine(_RandomNumberEngine&& __rng) 29761: : _M_b(std::move(__rng)) 29761: { _M_initialize(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: shuffle_order_engine(result_type __s) 29761: : _M_b(__s) 29761: { _M_initialize(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: shuffle_order_engine(_Sseq& __q) 29761: : _M_b(__q) 29761: { _M_initialize(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed() 29761: { 29761: _M_b.seed(); 29761: _M_initialize(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed(result_type __s) 29761: { 29761: _M_b.seed(__s); 29761: _M_initialize(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q) 29761: { 29761: _M_b.seed(__q); 29761: _M_initialize(); 29761: } 29761: 29761: 29761: 29761: 29761: const _RandomNumberEngine& 29761: base() const noexcept 29761: { return _M_b; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return _RandomNumberEngine::min(); } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return _RandomNumberEngine::max(); } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z) 29761: { 29761: for (; __z != 0ULL; --__z) 29761: (*this)(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: operator()(); 29761: # 1615 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const shuffle_order_engine& __lhs, 29761: const shuffle_order_engine& __rhs) 29761: { return (__lhs._M_b == __rhs._M_b 29761: && std::equal(__lhs._M_v, __lhs._M_v + __k, __rhs._M_v) 29761: && __lhs._M_y == __rhs._M_y); } 29761: # 1633 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::shuffle_order_engine<_RandomNumberEngine1, 29761: __k1>& __x); 29761: # 1651 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::shuffle_order_engine<_RandomNumberEngine1, __k1>& __x); 29761: 29761: private: 29761: void _M_initialize() 29761: { 29761: for (size_t __i = 0; __i < __k; ++__i) 29761: _M_v[__i] = _M_b(); 29761: _M_y = _M_b(); 29761: } 29761: 29761: _RandomNumberEngine _M_b; 29761: result_type _M_v[__k]; 29761: result_type _M_y; 29761: }; 29761: # 1682 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::shuffle_order_engine<_RandomNumberEngine, 29761: __k>& __lhs, 29761: const std::shuffle_order_engine<_RandomNumberEngine, 29761: __k>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: 29761: 29761: 29761: typedef linear_congruential_engine 29761: minstd_rand0; 29761: 29761: 29761: 29761: 29761: typedef linear_congruential_engine 29761: minstd_rand; 29761: # 1711 "/usr/include/c++/14/bits/random.h" 3 29761: typedef mersenne_twister_engine< 29761: uint_fast32_t, 29761: 32, 624, 397, 31, 29761: 0x9908b0dfUL, 11, 29761: 0xffffffffUL, 7, 29761: 0x9d2c5680UL, 15, 29761: 0xefc60000UL, 18, 1812433253UL> mt19937; 29761: 29761: 29761: 29761: 29761: typedef mersenne_twister_engine< 29761: uint_fast64_t, 29761: 64, 312, 156, 31, 29761: 0xb5026f5aa96619e9ULL, 29, 29761: 0x5555555555555555ULL, 17, 29761: 0x71d67fffeda60000ULL, 37, 29761: 0xfff7eee000000000ULL, 43, 29761: 6364136223846793005ULL> mt19937_64; 29761: 29761: typedef subtract_with_carry_engine 29761: ranlux24_base; 29761: 29761: typedef subtract_with_carry_engine 29761: ranlux48_base; 29761: 29761: typedef discard_block_engine ranlux24; 29761: 29761: typedef discard_block_engine ranlux48; 29761: 29761: typedef shuffle_order_engine knuth_b; 29761: 29761: typedef minstd_rand0 default_random_engine; 29761: # 1752 "/usr/include/c++/14/bits/random.h" 3 29761: class random_device 29761: { 29761: public: 29761: 29761: typedef unsigned int result_type; 29761: 29761: 29761: 29761: random_device() { _M_init("default"); } 29761: 29761: explicit 29761: random_device(const std::string& __token) { _M_init(__token); } 29761: 29761: ~random_device() 29761: { _M_fini(); } 29761: 29761: static constexpr result_type 29761: min() 29761: { return std::numeric_limits::min(); } 29761: 29761: static constexpr result_type 29761: max() 29761: { return std::numeric_limits::max(); } 29761: 29761: double 29761: entropy() const noexcept 29761: { return this->_M_getentropy(); } 29761: 29761: result_type 29761: operator()() 29761: { return this->_M_getval(); } 29761: 29761: 29761: random_device(const random_device&) = delete; 29761: void operator=(const random_device&) = delete; 29761: 29761: private: 29761: 29761: void _M_init(const std::string& __token); 29761: void _M_init_pretr1(const std::string& __token); 29761: void _M_fini(); 29761: 29761: result_type _M_getval(); 29761: result_type _M_getval_pretr1(); 29761: double _M_getentropy() const noexcept; 29761: 29761: void _M_init(const char*, size_t); 29761: 29761: __extension__ union 29761: { 29761: struct 29761: { 29761: void* _M_file; 29761: result_type (*_M_func)(void*); 29761: int _M_fd; 29761: }; 29761: mt19937 _M_mt; 29761: }; 29761: }; 29761: # 1833 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::uniform_int_distribution<_IntType>& __d1, 29761: const std::uniform_int_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 1850 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>&, 29761: const std::uniform_int_distribution<_IntType>&); 29761: # 1864 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>&, 29761: std::uniform_int_distribution<_IntType>&); 29761: # 1880 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class uniform_real_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef uniform_real_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(0) { } 29761: 29761: explicit 29761: param_type(_RealType __a, _RealType __b = _RealType(1)) 29761: : _M_a(__a), _M_b(__b) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: result_type 29761: a() const 29761: { return _M_a; } 29761: 29761: result_type 29761: b() const 29761: { return _M_b; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_a; 29761: _RealType _M_b; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: uniform_real_distribution() : uniform_real_distribution(0.0) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: uniform_real_distribution(_RealType __a, _RealType __b = _RealType(1)) 29761: : _M_param(__a, __b) 29761: { } 29761: 29761: explicit 29761: uniform_real_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset() { } 29761: 29761: result_type 29761: a() const 29761: { return _M_param.a(); } 29761: 29761: result_type 29761: b() const 29761: { return _M_param.b(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return this->a(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return this->b(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: return (__aurng() * (__p.b() - __p.a())) + __p.a(); 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const uniform_real_distribution& __d1, 29761: const uniform_real_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::uniform_real_distribution<_IntType>& __d1, 29761: const std::uniform_real_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 2078 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>&, 29761: const std::uniform_real_distribution<_RealType>&); 29761: # 2092 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>&, 29761: std::uniform_real_distribution<_RealType>&); 29761: # 2117 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class normal_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef normal_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(0.0) { } 29761: 29761: explicit 29761: param_type(_RealType __mean, _RealType __stddev = _RealType(1)) 29761: : _M_mean(__mean), _M_stddev(__stddev) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_stddev > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: _RealType 29761: mean() const 29761: { return _M_mean; } 29761: 29761: _RealType 29761: stddev() const 29761: { return _M_stddev; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return (__p1._M_mean == __p2._M_mean 29761: && __p1._M_stddev == __p2._M_stddev); } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_mean; 29761: _RealType _M_stddev; 29761: }; 29761: 29761: public: 29761: normal_distribution() : normal_distribution(0.0) { } 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: normal_distribution(result_type __mean, 29761: result_type __stddev = result_type(1)) 29761: : _M_param(__mean, __stddev) 29761: { } 29761: 29761: explicit 29761: normal_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_saved_available = false; } 29761: 29761: 29761: 29761: 29761: _RealType 29761: mean() const 29761: { return _M_param.mean(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: stddev() const 29761: { return _M_param.stddev(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return std::numeric_limits::lowest(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator==(const std::normal_distribution<_RealType1>& __d1, 29761: const std::normal_distribution<_RealType1>& __d2); 29761: # 2288 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::normal_distribution<_RealType1>& __x); 29761: # 2303 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::normal_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: result_type _M_saved = 0; 29761: bool _M_saved_available = false; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::normal_distribution<_RealType>& __d1, 29761: const std::normal_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 2344 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class lognormal_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef lognormal_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(0.0) { } 29761: 29761: explicit 29761: param_type(_RealType __m, _RealType __s = _RealType(1)) 29761: : _M_m(__m), _M_s(__s) 29761: { } 29761: 29761: _RealType 29761: m() const 29761: { return _M_m; } 29761: 29761: _RealType 29761: s() const 29761: { return _M_s; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_m == __p2._M_m && __p1._M_s == __p2._M_s; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_m; 29761: _RealType _M_s; 29761: }; 29761: 29761: lognormal_distribution() : lognormal_distribution(0.0) { } 29761: 29761: explicit 29761: lognormal_distribution(_RealType __m, _RealType __s = _RealType(1)) 29761: : _M_param(__m, __s), _M_nd() 29761: { } 29761: 29761: explicit 29761: lognormal_distribution(const param_type& __p) 29761: : _M_param(__p), _M_nd() 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_nd.reset(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: m() const 29761: { return _M_param.m(); } 29761: 29761: _RealType 29761: s() const 29761: { return _M_param.s(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { return std::exp(__p.s() * _M_nd(__urng) + __p.m()); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const lognormal_distribution& __d1, 29761: const lognormal_distribution& __d2) 29761: { return (__d1._M_param == __d2._M_param 29761: && __d1._M_nd == __d2._M_nd); } 29761: # 2505 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::lognormal_distribution<_RealType1>& __x); 29761: # 2520 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::lognormal_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::normal_distribution _M_nd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::lognormal_distribution<_RealType>& __d1, 29761: const std::lognormal_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 2569 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class gamma_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef gamma_distribution<_RealType> distribution_type; 29761: friend class gamma_distribution<_RealType>; 29761: 29761: param_type() : param_type(1.0) { } 29761: 29761: explicit 29761: param_type(_RealType __alpha_val, _RealType __beta_val = _RealType(1)) 29761: : _M_alpha(__alpha_val), _M_beta(__beta_val) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_alpha > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29761: _M_initialize(); 29761: } 29761: 29761: _RealType 29761: alpha() const 29761: { return _M_alpha; } 29761: 29761: _RealType 29761: beta() const 29761: { return _M_beta; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return (__p1._M_alpha == __p2._M_alpha 29761: && __p1._M_beta == __p2._M_beta); } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize(); 29761: 29761: _RealType _M_alpha; 29761: _RealType _M_beta; 29761: 29761: _RealType _M_malpha, _M_a2; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: gamma_distribution() : gamma_distribution(1.0) { } 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: gamma_distribution(_RealType __alpha_val, 29761: _RealType __beta_val = _RealType(1)) 29761: : _M_param(__alpha_val, __beta_val), _M_nd() 29761: { } 29761: 29761: explicit 29761: gamma_distribution(const param_type& __p) 29761: : _M_param(__p), _M_nd() 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_nd.reset(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: alpha() const 29761: { return _M_param.alpha(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: beta() const 29761: { return _M_param.beta(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const gamma_distribution& __d1, 29761: const gamma_distribution& __d2) 29761: { return (__d1._M_param == __d2._M_param 29761: && __d1._M_nd == __d2._M_nd); } 29761: # 2751 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::gamma_distribution<_RealType1>& __x); 29761: # 2765 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::gamma_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::normal_distribution _M_nd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::gamma_distribution<_RealType>& __d1, 29761: const std::gamma_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 2811 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class chi_squared_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef chi_squared_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(1) { } 29761: 29761: explicit 29761: param_type(_RealType __n) 29761: : _M_n(__n) 29761: { } 29761: 29761: _RealType 29761: n() const 29761: { return _M_n; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_n == __p2._M_n; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_n; 29761: }; 29761: 29761: chi_squared_distribution() : chi_squared_distribution(1) { } 29761: 29761: explicit 29761: chi_squared_distribution(_RealType __n) 29761: : _M_param(__n), _M_gd(__n / 2) 29761: { } 29761: 29761: explicit 29761: chi_squared_distribution(const param_type& __p) 29761: : _M_param(__p), _M_gd(__p.n() / 2) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_gd.reset(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: n() const 29761: { return _M_param.n(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { 29761: _M_param = __param; 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: _M_gd.param(param_type{__param.n() / 2}); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return 2 * _M_gd(__urng); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: return 2 * _M_gd(__urng, param_type(__p.n() / 2)); 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { typename std::gamma_distribution::param_type 29761: __p2(__p.n() / 2); 29761: this->__generate_impl(__f, __t, __urng, __p2); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { typename std::gamma_distribution::param_type 29761: __p2(__p.n() / 2); 29761: this->__generate_impl(__f, __t, __urng, __p2); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const chi_squared_distribution& __d1, 29761: const chi_squared_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 29761: # 2981 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::chi_squared_distribution<_RealType1>& __x); 29761: # 2996 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::chi_squared_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng); 29761: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const typename 29761: std::gamma_distribution::param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::gamma_distribution _M_gd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::chi_squared_distribution<_RealType>& __d1, 29761: const std::chi_squared_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 3041 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class cauchy_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef cauchy_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(0) { } 29761: 29761: explicit 29761: param_type(_RealType __a, _RealType __b = _RealType(1)) 29761: : _M_a(__a), _M_b(__b) 29761: { } 29761: 29761: _RealType 29761: a() const 29761: { return _M_a; } 29761: 29761: _RealType 29761: b() const 29761: { return _M_b; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_a; 29761: _RealType _M_b; 29761: }; 29761: 29761: cauchy_distribution() : cauchy_distribution(0.0) { } 29761: 29761: explicit 29761: cauchy_distribution(_RealType __a, _RealType __b = 1.0) 29761: : _M_param(__a, __b) 29761: { } 29761: 29761: explicit 29761: cauchy_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: _RealType 29761: a() const 29761: { return _M_param.a(); } 29761: 29761: _RealType 29761: b() const 29761: { return _M_param.b(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return std::numeric_limits::lowest(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const cauchy_distribution& __d1, 29761: const cauchy_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::cauchy_distribution<_RealType>& __d1, 29761: const std::cauchy_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 3222 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::cauchy_distribution<_RealType>& __x); 29761: # 3237 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::cauchy_distribution<_RealType>& __x); 29761: # 3256 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class fisher_f_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef fisher_f_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(1) { } 29761: 29761: explicit 29761: param_type(_RealType __m, _RealType __n = _RealType(1)) 29761: : _M_m(__m), _M_n(__n) 29761: { } 29761: 29761: _RealType 29761: m() const 29761: { return _M_m; } 29761: 29761: _RealType 29761: n() const 29761: { return _M_n; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_m == __p2._M_m && __p1._M_n == __p2._M_n; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_m; 29761: _RealType _M_n; 29761: }; 29761: 29761: fisher_f_distribution() : fisher_f_distribution(1.0) { } 29761: 29761: explicit 29761: fisher_f_distribution(_RealType __m, 29761: _RealType __n = _RealType(1)) 29761: : _M_param(__m, __n), _M_gd_x(__m / 2), _M_gd_y(__n / 2) 29761: { } 29761: 29761: explicit 29761: fisher_f_distribution(const param_type& __p) 29761: : _M_param(__p), _M_gd_x(__p.m() / 2), _M_gd_y(__p.n() / 2) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { 29761: _M_gd_x.reset(); 29761: _M_gd_y.reset(); 29761: } 29761: 29761: 29761: 29761: 29761: _RealType 29761: m() const 29761: { return _M_param.m(); } 29761: 29761: _RealType 29761: n() const 29761: { return _M_param.n(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return (_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m()); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: return ((_M_gd_x(__urng, param_type(__p.m() / 2)) * n()) 29761: / (_M_gd_y(__urng, param_type(__p.n() / 2)) * m())); 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const fisher_f_distribution& __d1, 29761: const fisher_f_distribution& __d2) 29761: { return (__d1._M_param == __d2._M_param 29761: && __d1._M_gd_x == __d2._M_gd_x 29761: && __d1._M_gd_y == __d2._M_gd_y); } 29761: # 3433 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::fisher_f_distribution<_RealType1>& __x); 29761: # 3448 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::fisher_f_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng); 29761: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::gamma_distribution _M_gd_x, _M_gd_y; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::fisher_f_distribution<_RealType>& __d1, 29761: const std::fisher_f_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 3495 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class student_t_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef student_t_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(1) { } 29761: 29761: explicit 29761: param_type(_RealType __n) 29761: : _M_n(__n) 29761: { } 29761: 29761: _RealType 29761: n() const 29761: { return _M_n; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_n == __p2._M_n; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_n; 29761: }; 29761: 29761: student_t_distribution() : student_t_distribution(1.0) { } 29761: 29761: explicit 29761: student_t_distribution(_RealType __n) 29761: : _M_param(__n), _M_nd(), _M_gd(__n / 2, 2) 29761: { } 29761: 29761: explicit 29761: student_t_distribution(const param_type& __p) 29761: : _M_param(__p), _M_nd(), _M_gd(__p.n() / 2, 2) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { 29761: _M_nd.reset(); 29761: _M_gd.reset(); 29761: } 29761: 29761: 29761: 29761: 29761: _RealType 29761: n() const 29761: { return _M_param.n(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return std::numeric_limits::lowest(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: 29761: const result_type __g = _M_gd(__urng, param_type(__p.n() / 2, 2)); 29761: return _M_nd(__urng) * std::sqrt(__p.n() / __g); 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const student_t_distribution& __d1, 29761: const student_t_distribution& __d2) 29761: { return (__d1._M_param == __d2._M_param 29761: && __d1._M_nd == __d2._M_nd && __d1._M_gd == __d2._M_gd); } 29761: # 3662 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::student_t_distribution<_RealType1>& __x); 29761: # 3677 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::student_t_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng); 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::normal_distribution _M_nd; 29761: std::gamma_distribution _M_gd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::student_t_distribution<_RealType>& __d1, 29761: const std::student_t_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 3729 "/usr/include/c++/14/bits/random.h" 3 29761: class bernoulli_distribution 29761: { 29761: public: 29761: 29761: typedef bool result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef bernoulli_distribution distribution_type; 29761: 29761: param_type() : param_type(0.5) { } 29761: 29761: explicit 29761: param_type(double __p) 29761: : _M_p(__p) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool((_M_p >= 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: double 29761: p() const 29761: { return _M_p; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_p == __p2._M_p; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: double _M_p; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: bernoulli_distribution() : bernoulli_distribution(0.5) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: bernoulli_distribution(double __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: explicit 29761: bernoulli_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset() { } 29761: 29761: 29761: 29761: 29761: double 29761: p() const 29761: { return _M_param.p(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return std::numeric_limits::min(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: if ((__aurng() - __aurng.min()) 29761: < __p.p() * (__aurng.max() - __aurng.min())) 29761: return true; 29761: return false; 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const bernoulli_distribution& __d1, 29761: const bernoulli_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline bool 29761: operator!=(const std::bernoulli_distribution& __d1, 29761: const std::bernoulli_distribution& __d2) 29761: { return !(__d1 == __d2); } 29761: # 3916 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::bernoulli_distribution& __x); 29761: # 3930 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::bernoulli_distribution& __x) 29761: { 29761: double __p; 29761: if (__is >> __p) 29761: __x.param(bernoulli_distribution::param_type(__p)); 29761: return __is; 29761: } 29761: # 3952 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class binomial_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "result_type must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef binomial_distribution<_IntType> distribution_type; 29761: friend class binomial_distribution<_IntType>; 29761: 29761: param_type() : param_type(1) { } 29761: 29761: explicit 29761: param_type(_IntType __t, double __p = 0.5) 29761: : _M_t(__t), _M_p(__p) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool((_M_t >= _IntType(0)) && (_M_p >= 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false) 29761: 29761: ; 29761: _M_initialize(); 29761: } 29761: 29761: _IntType 29761: t() const 29761: { return _M_t; } 29761: 29761: double 29761: p() const 29761: { return _M_p; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_t == __p2._M_t && __p1._M_p == __p2._M_p; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize(); 29761: 29761: _IntType _M_t; 29761: double _M_p; 29761: 29761: double _M_q; 29761: 29761: double _M_d1, _M_d2, _M_s1, _M_s2, _M_c, 29761: _M_a1, _M_a123, _M_s, _M_lf, _M_lp1p; 29761: 29761: bool _M_easy; 29761: }; 29761: 29761: 29761: 29761: binomial_distribution() : binomial_distribution(1) { } 29761: 29761: explicit 29761: binomial_distribution(_IntType __t, double __p = 0.5) 29761: : _M_param(__t, __p), _M_nd() 29761: { } 29761: 29761: explicit 29761: binomial_distribution(const param_type& __p) 29761: : _M_param(__p), _M_nd() 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_nd.reset(); } 29761: 29761: 29761: 29761: 29761: _IntType 29761: t() const 29761: { return _M_param.t(); } 29761: 29761: 29761: 29761: 29761: double 29761: p() const 29761: { return _M_param.p(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return 0; } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return _M_param.t(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const binomial_distribution& __d1, 29761: const binomial_distribution& __d2) 29761: 29761: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 29761: # 4136 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::binomial_distribution<_IntType1>& __x); 29761: # 4152 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::binomial_distribution<_IntType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: result_type 29761: _M_waiting(_UniformRandomNumberGenerator& __urng, 29761: _IntType __t, double __q); 29761: 29761: param_type _M_param; 29761: 29761: 29761: std::normal_distribution _M_nd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::binomial_distribution<_IntType>& __d1, 29761: const std::binomial_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 4198 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class geometric_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "result_type must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef geometric_distribution<_IntType> distribution_type; 29761: friend class geometric_distribution<_IntType>; 29761: 29761: param_type() : param_type(0.5) { } 29761: 29761: explicit 29761: param_type(double __p) 29761: : _M_p(__p) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool((_M_p > 0.0) && (_M_p < 1.0))) std::__glibcxx_assert_fail(); } while (false); 29761: _M_initialize(); 29761: } 29761: 29761: double 29761: p() const 29761: { return _M_p; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_p == __p2._M_p; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize() 29761: { _M_log_1_p = std::log(1.0 - _M_p); } 29761: 29761: double _M_p; 29761: 29761: double _M_log_1_p; 29761: }; 29761: 29761: 29761: 29761: geometric_distribution() : geometric_distribution(0.5) { } 29761: 29761: explicit 29761: geometric_distribution(double __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: explicit 29761: geometric_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset() { } 29761: 29761: 29761: 29761: 29761: double 29761: p() const 29761: { return _M_param.p(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return 0; } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const geometric_distribution& __d1, 29761: const geometric_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::geometric_distribution<_IntType>& __d1, 29761: const std::geometric_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 4383 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::geometric_distribution<_IntType>& __x); 29761: # 4398 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::geometric_distribution<_IntType>& __x); 29761: # 4415 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class negative_binomial_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "result_type must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef negative_binomial_distribution<_IntType> distribution_type; 29761: 29761: param_type() : param_type(1) { } 29761: 29761: explicit 29761: param_type(_IntType __k, double __p = 0.5) 29761: : _M_k(__k), _M_p(__p) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool((_M_k > 0) && (_M_p > 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: _IntType 29761: k() const 29761: { return _M_k; } 29761: 29761: double 29761: p() const 29761: { return _M_p; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_k == __p2._M_k && __p1._M_p == __p2._M_p; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _IntType _M_k; 29761: double _M_p; 29761: }; 29761: 29761: negative_binomial_distribution() : negative_binomial_distribution(1) { } 29761: 29761: explicit 29761: negative_binomial_distribution(_IntType __k, double __p = 0.5) 29761: : _M_param(__k, __p), _M_gd(__k, (1.0 - __p) / __p) 29761: { } 29761: 29761: explicit 29761: negative_binomial_distribution(const param_type& __p) 29761: : _M_param(__p), _M_gd(__p.k(), (1.0 - __p.p()) / __p.p()) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_gd.reset(); } 29761: 29761: 29761: 29761: 29761: _IntType 29761: k() const 29761: { return _M_param.k(); } 29761: 29761: 29761: 29761: 29761: double 29761: p() const 29761: { return _M_param.p(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng); 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const negative_binomial_distribution& __d1, 29761: const negative_binomial_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 29761: # 4585 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::negative_binomial_distribution<_IntType1>& __x); 29761: # 4600 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::negative_binomial_distribution<_IntType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng); 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::gamma_distribution _M_gd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::negative_binomial_distribution<_IntType>& __d1, 29761: const std::negative_binomial_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 4652 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class poisson_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "result_type must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef poisson_distribution<_IntType> distribution_type; 29761: friend class poisson_distribution<_IntType>; 29761: 29761: param_type() : param_type(1.0) { } 29761: 29761: explicit 29761: param_type(double __mean) 29761: : _M_mean(__mean) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_mean > 0.0)) std::__glibcxx_assert_fail(); } while (false); 29761: _M_initialize(); 29761: } 29761: 29761: double 29761: mean() const 29761: { return _M_mean; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_mean == __p2._M_mean; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: 29761: void 29761: _M_initialize(); 29761: 29761: double _M_mean; 29761: 29761: double _M_lm_thr; 29761: 29761: double _M_lfm, _M_sm, _M_d, _M_scx, _M_1cx, _M_c2b, _M_cb; 29761: 29761: }; 29761: 29761: 29761: 29761: poisson_distribution() : poisson_distribution(1.0) { } 29761: 29761: explicit 29761: poisson_distribution(double __mean) 29761: : _M_param(__mean), _M_nd() 29761: { } 29761: 29761: explicit 29761: poisson_distribution(const param_type& __p) 29761: : _M_param(__p), _M_nd() 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_nd.reset(); } 29761: 29761: 29761: 29761: 29761: double 29761: mean() const 29761: { return _M_param.mean(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return 0; } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const poisson_distribution& __d1, 29761: const poisson_distribution& __d2) 29761: 29761: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 29761: # 4821 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::poisson_distribution<_IntType1>& __x); 29761: # 4836 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::poisson_distribution<_IntType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: 29761: std::normal_distribution _M_nd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::poisson_distribution<_IntType>& __d1, 29761: const std::poisson_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 4884 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class exponential_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef exponential_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(1.0) { } 29761: 29761: explicit 29761: param_type(_RealType __lambda) 29761: : _M_lambda(__lambda) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_lambda > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: _RealType 29761: lambda() const 29761: { return _M_lambda; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_lambda == __p2._M_lambda; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_lambda; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: exponential_distribution() : exponential_distribution(1.0) { } 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: exponential_distribution(_RealType __lambda) 29761: : _M_param(__lambda) 29761: { } 29761: 29761: explicit 29761: exponential_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset() { } 29761: 29761: 29761: 29761: 29761: _RealType 29761: lambda() const 29761: { return _M_param.lambda(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: return -std::log(result_type(1) - __aurng()) / __p.lambda(); 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const exponential_distribution& __d1, 29761: const exponential_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::exponential_distribution<_RealType>& __d1, 29761: const std::exponential_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 5073 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::exponential_distribution<_RealType>& __x); 29761: # 5088 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::exponential_distribution<_RealType>& __x); 29761: # 5106 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class weibull_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef weibull_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(1.0) { } 29761: 29761: explicit 29761: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 29761: : _M_a(__a), _M_b(__b) 29761: { } 29761: 29761: _RealType 29761: a() const 29761: { return _M_a; } 29761: 29761: _RealType 29761: b() const 29761: { return _M_b; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_a; 29761: _RealType _M_b; 29761: }; 29761: 29761: weibull_distribution() : weibull_distribution(1.0) { } 29761: 29761: explicit 29761: weibull_distribution(_RealType __a, _RealType __b = _RealType(1)) 29761: : _M_param(__a, __b) 29761: { } 29761: 29761: explicit 29761: weibull_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: _RealType 29761: a() const 29761: { return _M_param.a(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: b() const 29761: { return _M_param.b(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const weibull_distribution& __d1, 29761: const weibull_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::weibull_distribution<_RealType>& __d1, 29761: const std::weibull_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 5290 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::weibull_distribution<_RealType>& __x); 29761: # 5305 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::weibull_distribution<_RealType>& __x); 29761: # 5323 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class extreme_value_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef extreme_value_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(0.0) { } 29761: 29761: explicit 29761: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 29761: : _M_a(__a), _M_b(__b) 29761: { } 29761: 29761: _RealType 29761: a() const 29761: { return _M_a; } 29761: 29761: _RealType 29761: b() const 29761: { return _M_b; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_a; 29761: _RealType _M_b; 29761: }; 29761: 29761: extreme_value_distribution() : extreme_value_distribution(0.0) { } 29761: 29761: explicit 29761: extreme_value_distribution(_RealType __a, _RealType __b = _RealType(1)) 29761: : _M_param(__a, __b) 29761: { } 29761: 29761: explicit 29761: extreme_value_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: _RealType 29761: a() const 29761: { return _M_param.a(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: b() const 29761: { return _M_param.b(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return std::numeric_limits::lowest(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const extreme_value_distribution& __d1, 29761: const extreme_value_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::extreme_value_distribution<_RealType>& __d1, 29761: const std::extreme_value_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 5507 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::extreme_value_distribution<_RealType>& __x); 29761: # 5522 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::extreme_value_distribution<_RealType>& __x); 29761: # 5545 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class discrete_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "result_type must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef discrete_distribution<_IntType> distribution_type; 29761: friend class discrete_distribution<_IntType>; 29761: 29761: param_type() 29761: : _M_prob(), _M_cp() 29761: { } 29761: 29761: template 29761: param_type(_InputIterator __wbegin, 29761: _InputIterator __wend) 29761: : _M_prob(__wbegin, __wend), _M_cp() 29761: { _M_initialize(); } 29761: 29761: param_type(initializer_list __wil) 29761: : _M_prob(__wil.begin(), __wil.end()), _M_cp() 29761: { _M_initialize(); } 29761: 29761: template 29761: param_type(size_t __nw, double __xmin, double __xmax, 29761: _Func __fw); 29761: 29761: 29761: param_type(const param_type&) = default; 29761: param_type& operator=(const param_type&) = default; 29761: 29761: std::vector 29761: probabilities() const 29761: { return _M_prob.empty() ? std::vector(1, 1.0) : _M_prob; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_prob == __p2._M_prob; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize(); 29761: 29761: std::vector _M_prob; 29761: std::vector _M_cp; 29761: }; 29761: 29761: discrete_distribution() 29761: : _M_param() 29761: { } 29761: 29761: template 29761: discrete_distribution(_InputIterator __wbegin, 29761: _InputIterator __wend) 29761: : _M_param(__wbegin, __wend) 29761: { } 29761: 29761: discrete_distribution(initializer_list __wl) 29761: : _M_param(__wl) 29761: { } 29761: 29761: template 29761: discrete_distribution(size_t __nw, double __xmin, double __xmax, 29761: _Func __fw) 29761: : _M_param(__nw, __xmin, __xmax, __fw) 29761: { } 29761: 29761: explicit 29761: discrete_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: std::vector 29761: probabilities() const 29761: { 29761: return _M_param._M_prob.empty() 29761: ? std::vector(1, 1.0) : _M_param._M_prob; 29761: } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { 29761: return _M_param._M_prob.empty() 29761: ? result_type(0) : result_type(_M_param._M_prob.size() - 1); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const discrete_distribution& __d1, 29761: const discrete_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: # 5733 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::discrete_distribution<_IntType1>& __x); 29761: # 5749 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::discrete_distribution<_IntType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::discrete_distribution<_IntType>& __d1, 29761: const std::discrete_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 5793 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class piecewise_constant_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef piecewise_constant_distribution<_RealType> distribution_type; 29761: friend class piecewise_constant_distribution<_RealType>; 29761: 29761: param_type() 29761: : _M_int(), _M_den(), _M_cp() 29761: { } 29761: 29761: template 29761: param_type(_InputIteratorB __bfirst, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin); 29761: 29761: template 29761: param_type(initializer_list<_RealType> __bi, _Func __fw); 29761: 29761: template 29761: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 29761: _Func __fw); 29761: 29761: 29761: param_type(const param_type&) = default; 29761: param_type& operator=(const param_type&) = default; 29761: 29761: std::vector<_RealType> 29761: intervals() const 29761: { 29761: if (_M_int.empty()) 29761: { 29761: std::vector<_RealType> __tmp(2); 29761: __tmp[1] = _RealType(1); 29761: return __tmp; 29761: } 29761: else 29761: return _M_int; 29761: } 29761: 29761: std::vector 29761: densities() const 29761: { return _M_den.empty() ? std::vector(1, 1.0) : _M_den; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize(); 29761: 29761: std::vector<_RealType> _M_int; 29761: std::vector _M_den; 29761: std::vector _M_cp; 29761: }; 29761: 29761: piecewise_constant_distribution() 29761: : _M_param() 29761: { } 29761: 29761: template 29761: piecewise_constant_distribution(_InputIteratorB __bfirst, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin) 29761: : _M_param(__bfirst, __bend, __wbegin) 29761: { } 29761: 29761: template 29761: piecewise_constant_distribution(initializer_list<_RealType> __bl, 29761: _Func __fw) 29761: : _M_param(__bl, __fw) 29761: { } 29761: 29761: template 29761: piecewise_constant_distribution(size_t __nw, 29761: _RealType __xmin, _RealType __xmax, 29761: _Func __fw) 29761: : _M_param(__nw, __xmin, __xmax, __fw) 29761: { } 29761: 29761: explicit 29761: piecewise_constant_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: std::vector<_RealType> 29761: intervals() const 29761: { 29761: if (_M_param._M_int.empty()) 29761: { 29761: std::vector<_RealType> __tmp(2); 29761: __tmp[1] = _RealType(1); 29761: return __tmp; 29761: } 29761: else 29761: return _M_param._M_int; 29761: } 29761: 29761: 29761: 29761: 29761: std::vector 29761: densities() const 29761: { 29761: return _M_param._M_den.empty() 29761: ? std::vector(1, 1.0) : _M_param._M_den; 29761: } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { 29761: return _M_param._M_int.empty() 29761: ? result_type(0) : _M_param._M_int.front(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { 29761: return _M_param._M_int.empty() 29761: ? result_type(1) : _M_param._M_int.back(); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const piecewise_constant_distribution& __d1, 29761: const piecewise_constant_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: # 6017 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::piecewise_constant_distribution<_RealType1>& __x); 29761: # 6033 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::piecewise_constant_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::piecewise_constant_distribution<_RealType>& __d1, 29761: const std::piecewise_constant_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 6073 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class piecewise_linear_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef piecewise_linear_distribution<_RealType> distribution_type; 29761: friend class piecewise_linear_distribution<_RealType>; 29761: 29761: param_type() 29761: : _M_int(), _M_den(), _M_cp(), _M_m() 29761: { } 29761: 29761: template 29761: param_type(_InputIteratorB __bfirst, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin); 29761: 29761: template 29761: param_type(initializer_list<_RealType> __bl, _Func __fw); 29761: 29761: template 29761: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 29761: _Func __fw); 29761: 29761: 29761: param_type(const param_type&) = default; 29761: param_type& operator=(const param_type&) = default; 29761: 29761: std::vector<_RealType> 29761: intervals() const 29761: { 29761: if (_M_int.empty()) 29761: { 29761: std::vector<_RealType> __tmp(2); 29761: __tmp[1] = _RealType(1); 29761: return __tmp; 29761: } 29761: else 29761: return _M_int; 29761: } 29761: 29761: std::vector 29761: densities() const 29761: { return _M_den.empty() ? std::vector(2, 1.0) : _M_den; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize(); 29761: 29761: std::vector<_RealType> _M_int; 29761: std::vector _M_den; 29761: std::vector _M_cp; 29761: std::vector _M_m; 29761: }; 29761: 29761: piecewise_linear_distribution() 29761: : _M_param() 29761: { } 29761: 29761: template 29761: piecewise_linear_distribution(_InputIteratorB __bfirst, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin) 29761: : _M_param(__bfirst, __bend, __wbegin) 29761: { } 29761: 29761: template 29761: piecewise_linear_distribution(initializer_list<_RealType> __bl, 29761: _Func __fw) 29761: : _M_param(__bl, __fw) 29761: { } 29761: 29761: template 29761: piecewise_linear_distribution(size_t __nw, 29761: _RealType __xmin, _RealType __xmax, 29761: _Func __fw) 29761: : _M_param(__nw, __xmin, __xmax, __fw) 29761: { } 29761: 29761: explicit 29761: piecewise_linear_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: std::vector<_RealType> 29761: intervals() const 29761: { 29761: if (_M_param._M_int.empty()) 29761: { 29761: std::vector<_RealType> __tmp(2); 29761: __tmp[1] = _RealType(1); 29761: return __tmp; 29761: } 29761: else 29761: return _M_param._M_int; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: std::vector 29761: densities() const 29761: { 29761: return _M_param._M_den.empty() 29761: ? std::vector(2, 1.0) : _M_param._M_den; 29761: } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { 29761: return _M_param._M_int.empty() 29761: ? result_type(0) : _M_param._M_int.front(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { 29761: return _M_param._M_int.empty() 29761: ? result_type(1) : _M_param._M_int.back(); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const piecewise_linear_distribution& __d1, 29761: const piecewise_linear_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: # 6299 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::piecewise_linear_distribution<_RealType1>& __x); 29761: # 6315 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::piecewise_linear_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::piecewise_linear_distribution<_RealType>& __d1, 29761: const std::piecewise_linear_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 6360 "/usr/include/c++/14/bits/random.h" 3 29761: class seed_seq 29761: { 29761: public: 29761: 29761: typedef uint_least32_t result_type; 29761: 29761: 29761: seed_seq() noexcept 29761: : _M_v() 29761: { } 29761: 29761: template>> 29761: seed_seq(std::initializer_list<_IntType> __il); 29761: 29761: template 29761: seed_seq(_InputIterator __begin, _InputIterator __end); 29761: 29761: 29761: template 29761: void 29761: generate(_RandomAccessIterator __begin, _RandomAccessIterator __end); 29761: 29761: 29761: size_t size() const noexcept 29761: { return _M_v.size(); } 29761: 29761: template 29761: void 29761: param(_OutputIterator __dest) const 29761: { std::copy(_M_v.begin(), _M_v.end(), __dest); } 29761: 29761: 29761: seed_seq(const seed_seq&) = delete; 29761: seed_seq& operator=(const seed_seq&) = delete; 29761: 29761: private: 29761: std::vector _M_v; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 49 "/usr/include/c++/14/random" 2 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 1 3 29761: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 29761: 29761: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 29761: # 50 "/usr/include/c++/14/random" 2 3 29761: # 1 "/usr/include/c++/14/bits/random.tcc" 1 3 29761: # 33 "/usr/include/c++/14/bits/random.tcc" 3 29761: # 1 "/usr/include/c++/14/numeric" 1 3 29761: # 58 "/usr/include/c++/14/numeric" 3 29761: 29761: # 59 "/usr/include/c++/14/numeric" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_numeric.h" 1 3 29761: # 64 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 85 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: void 29761: iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: { 29761: *__first = __value; 29761: ++__value; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: # 131 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: inline _Tp 29761: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init) 29761: { 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: __init = __init + *__first; 29761: return __init; 29761: } 29761: # 158 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: inline _Tp 29761: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, 29761: _BinaryOperation __binary_op) 29761: { 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: __init = __binary_op(__init, *__first); 29761: return __init; 29761: } 29761: # 187 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: inline _Tp 29761: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _Tp __init) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2) 29761: __init = __init + (*__first1 * *__first2); 29761: return __init; 29761: } 29761: # 219 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: inline _Tp 29761: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _Tp __init, 29761: _BinaryOperation1 __binary_op1, 29761: _BinaryOperation2 __binary_op2) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2) 29761: __init = __binary_op1(__init, 29761: __binary_op2(*__first1, *__first2)); 29761: return __init; 29761: } 29761: # 253 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: _OutputIterator 29761: partial_sum(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: _ValueType __value = *__first; 29761: *__result = __value; 29761: while (++__first != __last) 29761: { 29761: __value = __value + *__first; 29761: *++__result = __value; 29761: } 29761: return ++__result; 29761: } 29761: # 294 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: _OutputIterator 29761: partial_sum(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _BinaryOperation __binary_op) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: _ValueType __value = *__first; 29761: *__result = __value; 29761: while (++__first != __last) 29761: { 29761: __value = __binary_op(__value, *__first); 29761: *++__result = __value; 29761: } 29761: return ++__result; 29761: } 29761: # 334 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: _OutputIterator 29761: adjacent_difference(_InputIterator __first, 29761: _InputIterator __last, _OutputIterator __result) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: _ValueType __value = *__first; 29761: *__result = __value; 29761: while (++__first != __last) 29761: { 29761: _ValueType __tmp = *__first; 29761: *++__result = __tmp - __value; 29761: __value = std::move(__tmp); 29761: } 29761: return ++__result; 29761: } 29761: # 376 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: _OutputIterator 29761: adjacent_difference(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _BinaryOperation __binary_op) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: _ValueType __value = *__first; 29761: *__result = __value; 29761: while (++__first != __last) 29761: { 29761: _ValueType __tmp = *__first; 29761: *++__result = __binary_op(__tmp, __value); 29761: __value = std::move(__tmp); 29761: } 29761: return ++__result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 63 "/usr/include/c++/14/numeric" 2 3 29761: # 90 "/usr/include/c++/14/numeric" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 91 "/usr/include/c++/14/numeric" 2 3 29761: # 104 "/usr/include/c++/14/numeric" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: template 29761: constexpr _Res 29761: __abs_r(_Tp __val) 29761: { 29761: static_assert(sizeof(_Res) >= sizeof(_Tp), 29761: "result type must be at least as wide as the input type"); 29761: 29761: if (__val >= 0) 29761: return __val; 29761: 29761: 29761: 29761: 29761: return -static_cast<_Res>(__val); 29761: } 29761: 29761: template void __abs_r(bool) = delete; 29761: 29761: 29761: template 29761: constexpr _Tp 29761: __gcd(_Tp __m, _Tp __n) 29761: { 29761: static_assert(is_unsigned<_Tp>::value, "type must be unsigned"); 29761: 29761: if (__m == 0) 29761: return __n; 29761: if (__n == 0) 29761: return __m; 29761: 29761: const int __i = std::__countr_zero(__m); 29761: __m >>= __i; 29761: const int __j = std::__countr_zero(__n); 29761: __n >>= __j; 29761: const int __k = __i < __j ? __i : __j; 29761: 29761: while (true) 29761: { 29761: if (__m > __n) 29761: { 29761: _Tp __tmp = __m; 29761: __m = __n; 29761: __n = __tmp; 29761: } 29761: 29761: __n -= __m; 29761: 29761: if (__n == 0) 29761: return __m << __k; 29761: 29761: __n >>= std::__countr_zero(__n); 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: constexpr common_type_t<_Mn, _Nn> 29761: gcd(_Mn __m, _Nn __n) noexcept 29761: { 29761: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 29761: "std::gcd arguments must be integers"); 29761: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 29761: "std::gcd arguments must not be bool"); 29761: using _Ct = common_type_t<_Mn, _Nn>; 29761: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 29761: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 29761: return __detail::__gcd>(__m2, __n2); 29761: } 29761: 29761: 29761: template 29761: constexpr common_type_t<_Mn, _Nn> 29761: lcm(_Mn __m, _Nn __n) noexcept 29761: { 29761: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 29761: "std::lcm arguments must be integers"); 29761: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 29761: "std::lcm arguments must not be bool"); 29761: using _Ct = common_type_t<_Mn, _Nn>; 29761: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 29761: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 29761: if (__m2 == 0 || __n2 == 0) 29761: return 0; 29761: _Ct __r = __m2 / __detail::__gcd>(__m2, __n2); 29761: 29761: if constexpr (is_signed_v<_Ct>) 29761: if (__is_constant_evaluated()) 29761: return __r * __n2; 29761: 29761: bool __overflow = __builtin_mul_overflow(__r, __n2, &__r); 29761: do { if (std::__is_constant_evaluated() && !bool(!__overflow)) std::__glibcxx_assert_fail(); } while (false); 29761: return __r; 29761: } 29761: # 284 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _Tp 29761: reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 29761: _BinaryOperation __binary_op) 29761: { 29761: using __ref = typename iterator_traits<_InputIterator>::reference; 29761: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, __ref>); 29761: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, _Tp&>); 29761: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, _Tp&>); 29761: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, __ref>); 29761: if constexpr (__is_random_access_iter<_InputIterator>::value) 29761: { 29761: while ((__last - __first) >= 4) 29761: { 29761: _Tp __v1 = __binary_op(__first[0], __first[1]); 29761: _Tp __v2 = __binary_op(__first[2], __first[3]); 29761: _Tp __v3 = __binary_op(__v1, __v2); 29761: __init = __binary_op(__init, __v3); 29761: __first += 4; 29761: } 29761: } 29761: for (; __first != __last; ++__first) 29761: __init = __binary_op(__init, *__first); 29761: return __init; 29761: } 29761: # 322 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: inline _Tp 29761: reduce(_InputIterator __first, _InputIterator __last, _Tp __init) 29761: { return std::reduce(__first, __last, std::move(__init), plus<>()); } 29761: # 339 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: inline typename iterator_traits<_InputIterator>::value_type 29761: reduce(_InputIterator __first, _InputIterator __last) 29761: { 29761: using value_type = typename iterator_traits<_InputIterator>::value_type; 29761: return std::reduce(__first, __last, value_type{}, plus<>()); 29761: } 29761: # 366 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _Tp 29761: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _Tp __init, 29761: _BinaryOperation1 __binary_op1, 29761: _BinaryOperation2 __binary_op2) 29761: { 29761: if constexpr (__and_v<__is_random_access_iter<_InputIterator1>, 29761: __is_random_access_iter<_InputIterator2>>) 29761: { 29761: while ((__last1 - __first1) >= 4) 29761: { 29761: _Tp __v1 = __binary_op1(__binary_op2(__first1[0], __first2[0]), 29761: __binary_op2(__first1[1], __first2[1])); 29761: _Tp __v2 = __binary_op1(__binary_op2(__first1[2], __first2[2]), 29761: __binary_op2(__first1[3], __first2[3])); 29761: _Tp __v3 = __binary_op1(__v1, __v2); 29761: __init = __binary_op1(__init, __v3); 29761: __first1 += 4; 29761: __first2 += 4; 29761: } 29761: } 29761: for (; __first1 != __last1; ++__first1, (void) ++__first2) 29761: __init = __binary_op1(__init, __binary_op2(*__first1, *__first2)); 29761: return __init; 29761: } 29761: # 410 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: inline _Tp 29761: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _Tp __init) 29761: { 29761: return std::transform_reduce(__first1, __last1, __first2, 29761: std::move(__init), 29761: plus<>(), multiplies<>()); 29761: } 29761: # 435 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _Tp 29761: transform_reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 29761: _BinaryOperation __binary_op, _UnaryOperation __unary_op) 29761: { 29761: if constexpr (__is_random_access_iter<_InputIterator>::value) 29761: { 29761: while ((__last - __first) >= 4) 29761: { 29761: _Tp __v1 = __binary_op(__unary_op(__first[0]), 29761: __unary_op(__first[1])); 29761: _Tp __v2 = __binary_op(__unary_op(__first[2]), 29761: __unary_op(__first[3])); 29761: _Tp __v3 = __binary_op(__v1, __v2); 29761: __init = __binary_op(__init, __v3); 29761: __first += 4; 29761: } 29761: } 29761: for (; __first != __last; ++__first) 29761: __init = __binary_op(__init, __unary_op(*__first)); 29761: return __init; 29761: } 29761: # 478 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: exclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Tp __init, 29761: _BinaryOperation __binary_op) 29761: { 29761: while (__first != __last) 29761: { 29761: _Tp __v = std::move(__init); 29761: __init = __binary_op(__v, *__first); 29761: ++__first; 29761: *__result++ = std::move(__v); 29761: } 29761: return __result; 29761: } 29761: # 513 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: inline _OutputIterator 29761: exclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Tp __init) 29761: { 29761: return std::exclusive_scan(__first, __last, __result, std::move(__init), 29761: plus<>()); 29761: } 29761: # 541 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: inclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _BinaryOperation __binary_op, 29761: _Tp __init) 29761: { 29761: for (; __first != __last; ++__first) 29761: *__result++ = __init = __binary_op(__init, *__first); 29761: return __result; 29761: } 29761: # 570 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: inclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _BinaryOperation __binary_op) 29761: { 29761: if (__first != __last) 29761: { 29761: auto __init = *__first; 29761: *__result++ = __init; 29761: ++__first; 29761: if (__first != __last) 29761: __result = std::inclusive_scan(__first, __last, __result, 29761: __binary_op, std::move(__init)); 29761: } 29761: return __result; 29761: } 29761: # 604 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: inline _OutputIterator 29761: inclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result) 29761: { return std::inclusive_scan(__first, __last, __result, plus<>()); } 29761: # 631 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: transform_exclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Tp __init, 29761: _BinaryOperation __binary_op, 29761: _UnaryOperation __unary_op) 29761: { 29761: while (__first != __last) 29761: { 29761: auto __v = __init; 29761: __init = __binary_op(__init, __unary_op(*__first)); 29761: ++__first; 29761: *__result++ = std::move(__v); 29761: } 29761: return __result; 29761: } 29761: # 670 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: _BinaryOperation __binary_op, 29761: _UnaryOperation __unary_op, 29761: _Tp __init) 29761: { 29761: for (; __first != __last; ++__first) 29761: *__result++ = __init = __binary_op(__init, __unary_op(*__first)); 29761: return __result; 29761: } 29761: # 704 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: _BinaryOperation __binary_op, 29761: _UnaryOperation __unary_op) 29761: { 29761: if (__first != __last) 29761: { 29761: auto __init = __unary_op(*__first); 29761: *__result++ = __init; 29761: ++__first; 29761: if (__first != __last) 29761: __result = std::transform_inclusive_scan(__first, __last, __result, 29761: __binary_op, __unary_op, 29761: std::move(__init)); 29761: } 29761: return __result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 739 "/usr/include/c++/14/numeric" 3 29761: # 1 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 1 3 29761: # 15 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 3 29761: namespace std 29761: { 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29761: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 29761: _BinaryOperation __binary_op); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29761: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29761: typename iterator_traits<_ForwardIterator>::value_type> 29761: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29761: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _Tp __init); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29761: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, 29761: _BinaryOperation2 __binary_op2); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29761: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 29761: _BinaryOperation __binary_op, _UnaryOperation __unary_op); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _Tp __init); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _BinaryOperation __binary_op); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: transform_exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, 29761: _UnaryOperation __unary_op); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, 29761: _Tp __init); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __d_first, _BinaryOperation __op); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __d_first); 29761: 29761: } 29761: # 740 "/usr/include/c++/14/numeric" 2 3 29761: # 34 "/usr/include/c++/14/bits/random.tcc" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _Tp 29761: _Mod<_Tp, __m, __a, __c, false, true>:: 29761: __calc(_Tp __x) 29761: { 29761: if (__a == 1) 29761: __x %= __m; 29761: else 29761: { 29761: static const _Tp __q = __m / __a; 29761: static const _Tp __r = __m % __a; 29761: 29761: _Tp __t1 = __a * (__x % __q); 29761: _Tp __t2 = __r * (__x / __q); 29761: if (__t1 >= __t2) 29761: __x = __t1 - __t2; 29761: else 29761: __x = __m - __t2 + __t1; 29761: } 29761: 29761: if (__c != 0) 29761: { 29761: const _Tp __d = __m - __x; 29761: if (__d > __c) 29761: __x += __c; 29761: else 29761: __x = __c - __d; 29761: } 29761: return __x; 29761: } 29761: 29761: template 29761: _OutputIterator 29761: __normalize(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, const _Tp& __factor) 29761: { 29761: for (; __first != __last; ++__first, ++__result) 29761: *__result = *__first / __factor; 29761: return __result; 29761: } 29761: 29761: } 29761: # 116 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: void 29761: linear_congruential_engine<_UIntType, __a, __c, __m>:: 29761: seed(result_type __s) 29761: { 29761: if ((__detail::__mod<_UIntType, __m>(__c) == 0) 29761: && (__detail::__mod<_UIntType, __m>(__s) == 0)) 29761: _M_x = 1; 29761: else 29761: _M_x = __detail::__mod<_UIntType, __m>(__s); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: template 29761: auto 29761: linear_congruential_engine<_UIntType, __a, __c, __m>:: 29761: seed(_Sseq& __q) 29761: -> _If_seed_seq<_Sseq> 29761: { 29761: const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits 29761: : std::__lg(__m); 29761: const _UIntType __k = (__k0 + 31) / 32; 29761: uint_least32_t __arr[__k + 3]; 29761: __q.generate(__arr + 0, __arr + __k + 3); 29761: _UIntType __factor = 1u; 29761: _UIntType __sum = 0u; 29761: for (size_t __j = 0; __j < __k; ++__j) 29761: { 29761: __sum += __arr[__j + 3] * __factor; 29761: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29761: } 29761: seed(__sum); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const linear_congruential_engine<_UIntType, 29761: __a, __c, __m>& __lcr) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29761: __os.fill(__os.widen(' ')); 29761: 29761: __os << __lcr._M_x; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: linear_congruential_engine<_UIntType, __a, __c, __m>& __lcr) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec); 29761: 29761: __is >> __lcr._M_x; 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: # 320 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: void 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>:: 29761: seed(result_type __sd) 29761: { 29761: _M_x[0] = __detail::__mod<_UIntType, 29761: __detail::_Shift<_UIntType, __w>::__value>(__sd); 29761: 29761: for (size_t __i = 1; __i < state_size; ++__i) 29761: { 29761: _UIntType __x = _M_x[__i - 1]; 29761: __x ^= __x >> (__w - 2); 29761: __x *= __f; 29761: __x += __detail::__mod<_UIntType, __n>(__i); 29761: _M_x[__i] = __detail::__mod<_UIntType, 29761: __detail::_Shift<_UIntType, __w>::__value>(__x); 29761: } 29761: _M_p = state_size; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>:: 29761: seed(_Sseq& __q) 29761: -> _If_seed_seq<_Sseq> 29761: { 29761: const _UIntType __upper_mask = (~_UIntType()) << __r; 29761: const size_t __k = (__w + 31) / 32; 29761: uint_least32_t __arr[__n * __k]; 29761: __q.generate(__arr + 0, __arr + __n * __k); 29761: 29761: bool __zero = true; 29761: for (size_t __i = 0; __i < state_size; ++__i) 29761: { 29761: _UIntType __factor = 1u; 29761: _UIntType __sum = 0u; 29761: for (size_t __j = 0; __j < __k; ++__j) 29761: { 29761: __sum += __arr[__k * __i + __j] * __factor; 29761: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29761: } 29761: _M_x[__i] = __detail::__mod<_UIntType, 29761: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29761: 29761: if (__zero) 29761: { 29761: if (__i == 0) 29761: { 29761: if ((_M_x[0] & __upper_mask) != 0u) 29761: __zero = false; 29761: } 29761: else if (_M_x[__i] != 0u) 29761: __zero = false; 29761: } 29761: } 29761: if (__zero) 29761: _M_x[0] = __detail::_Shift<_UIntType, __w - 1>::__value; 29761: _M_p = state_size; 29761: } 29761: 29761: template 29761: void 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>:: 29761: _M_gen_rand(void) 29761: { 29761: const _UIntType __upper_mask = (~_UIntType()) << __r; 29761: const _UIntType __lower_mask = ~__upper_mask; 29761: 29761: for (size_t __k = 0; __k < (__n - __m); ++__k) 29761: { 29761: _UIntType __y = ((_M_x[__k] & __upper_mask) 29761: | (_M_x[__k + 1] & __lower_mask)); 29761: _M_x[__k] = (_M_x[__k + __m] ^ (__y >> 1) 29761: ^ ((__y & 0x01) ? __a : 0)); 29761: } 29761: 29761: for (size_t __k = (__n - __m); __k < (__n - 1); ++__k) 29761: { 29761: _UIntType __y = ((_M_x[__k] & __upper_mask) 29761: | (_M_x[__k + 1] & __lower_mask)); 29761: _M_x[__k] = (_M_x[__k + (__m - __n)] ^ (__y >> 1) 29761: ^ ((__y & 0x01) ? __a : 0)); 29761: } 29761: 29761: _UIntType __y = ((_M_x[__n - 1] & __upper_mask) 29761: | (_M_x[0] & __lower_mask)); 29761: _M_x[__n - 1] = (_M_x[__m - 1] ^ (__y >> 1) 29761: ^ ((__y & 0x01) ? __a : 0)); 29761: _M_p = 0; 29761: } 29761: 29761: template 29761: void 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>:: 29761: discard(unsigned long long __z) 29761: { 29761: while (__z > state_size - _M_p) 29761: { 29761: __z -= state_size - _M_p; 29761: _M_gen_rand(); 29761: } 29761: _M_p += __z; 29761: } 29761: 29761: template 29761: typename 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>::result_type 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>:: 29761: operator()() 29761: { 29761: 29761: if (_M_p >= state_size) 29761: _M_gen_rand(); 29761: 29761: 29761: result_type __z = _M_x[_M_p++]; 29761: __z ^= (__z >> __u) & __d; 29761: __z ^= (__z << __s) & __b; 29761: __z ^= (__z << __t) & __c; 29761: __z ^= (__z >> __l); 29761: 29761: return __z; 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const mersenne_twister_engine<_UIntType, __w, __n, __m, 29761: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29761: __os.fill(__space); 29761: 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: __os << __x._M_x[__i] << __space; 29761: __os << __x._M_p; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, 29761: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: __is >> __x._M_x[__i]; 29761: __is >> __x._M_p; 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: # 539 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: void 29761: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29761: seed(result_type __value) 29761: { 29761: 29761: 29761: 29761: std::linear_congruential_engine 29761: __lcg(__value == 0u ? default_seed : __value % 2147483563u); 29761: 29761: const size_t __n = (__w + 31) / 32; 29761: 29761: for (size_t __i = 0; __i < long_lag; ++__i) 29761: { 29761: _UIntType __sum = 0u; 29761: _UIntType __factor = 1u; 29761: for (size_t __j = 0; __j < __n; ++__j) 29761: { 29761: __sum += __detail::__mod::__value> 29761: (__lcg()) * __factor; 29761: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29761: } 29761: _M_x[__i] = __detail::__mod<_UIntType, 29761: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29761: } 29761: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 29761: _M_p = 0; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29761: seed(_Sseq& __q) 29761: -> _If_seed_seq<_Sseq> 29761: { 29761: const size_t __k = (__w + 31) / 32; 29761: uint_least32_t __arr[__r * __k]; 29761: __q.generate(__arr + 0, __arr + __r * __k); 29761: 29761: for (size_t __i = 0; __i < long_lag; ++__i) 29761: { 29761: _UIntType __sum = 0u; 29761: _UIntType __factor = 1u; 29761: for (size_t __j = 0; __j < __k; ++__j) 29761: { 29761: __sum += __arr[__k * __i + __j] * __factor; 29761: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29761: } 29761: _M_x[__i] = __detail::__mod<_UIntType, 29761: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29761: } 29761: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 29761: _M_p = 0; 29761: } 29761: 29761: template 29761: typename subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29761: result_type 29761: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29761: operator()() 29761: { 29761: 29761: long __ps = _M_p - short_lag; 29761: if (__ps < 0) 29761: __ps += long_lag; 29761: 29761: 29761: 29761: 29761: _UIntType __xi; 29761: if (_M_x[__ps] >= _M_x[_M_p] + _M_carry) 29761: { 29761: __xi = _M_x[__ps] - _M_x[_M_p] - _M_carry; 29761: _M_carry = 0; 29761: } 29761: else 29761: { 29761: __xi = (__detail::_Shift<_UIntType, __w>::__value 29761: - _M_x[_M_p] - _M_carry + _M_x[__ps]); 29761: _M_carry = 1; 29761: } 29761: _M_x[_M_p] = __xi; 29761: 29761: 29761: if (++_M_p >= long_lag) 29761: _M_p = 0; 29761: 29761: return __xi; 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const subtract_with_carry_engine<_UIntType, 29761: __w, __s, __r>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29761: __os.fill(__space); 29761: 29761: for (size_t __i = 0; __i < __r; ++__i) 29761: __os << __x._M_x[__i] << __space; 29761: __os << __x._M_carry << __space << __x._M_p; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: subtract_with_carry_engine<_UIntType, __w, __s, __r>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: for (size_t __i = 0; __i < __r; ++__i) 29761: __is >> __x._M_x[__i]; 29761: __is >> __x._M_carry; 29761: __is >> __x._M_p; 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: # 686 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: typename discard_block_engine<_RandomNumberEngine, 29761: __p, __r>::result_type 29761: discard_block_engine<_RandomNumberEngine, __p, __r>:: 29761: operator()() 29761: { 29761: if (_M_n >= used_block) 29761: { 29761: _M_b.discard(block_size - _M_n); 29761: _M_n = 0; 29761: } 29761: ++_M_n; 29761: return _M_b(); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const discard_block_engine<_RandomNumberEngine, 29761: __p, __r>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29761: __os.fill(__space); 29761: 29761: __os << __x.base() << __space << __x._M_n; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: discard_block_engine<_RandomNumberEngine, __p, __r>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: __is >> __x._M_b >> __x._M_n; 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: typename independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 29761: result_type 29761: independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 29761: operator()() 29761: { 29761: typedef typename _RandomNumberEngine::result_type _Eresult_type; 29761: const _Eresult_type __r 29761: = (_M_b.max() - _M_b.min() < std::numeric_limits<_Eresult_type>::max() 29761: ? _M_b.max() - _M_b.min() + 1 : 0); 29761: const unsigned __edig = std::numeric_limits<_Eresult_type>::digits; 29761: const unsigned __m = __r ? std::__lg(__r) : __edig; 29761: 29761: typedef typename std::common_type<_Eresult_type, result_type>::type 29761: __ctype; 29761: const unsigned __cdig = std::numeric_limits<__ctype>::digits; 29761: 29761: unsigned __n, __n0; 29761: __ctype __s0, __s1, __y0, __y1; 29761: 29761: for (size_t __i = 0; __i < 2; ++__i) 29761: { 29761: __n = (__w + __m - 1) / __m + __i; 29761: __n0 = __n - __w % __n; 29761: const unsigned __w0 = __w / __n; 29761: 29761: __s0 = 0; 29761: __s1 = 0; 29761: if (__w0 < __cdig) 29761: { 29761: __s0 = __ctype(1) << __w0; 29761: __s1 = __s0 << 1; 29761: } 29761: 29761: __y0 = 0; 29761: __y1 = 0; 29761: if (__r) 29761: { 29761: __y0 = __s0 * (__r / __s0); 29761: if (__s1) 29761: __y1 = __s1 * (__r / __s1); 29761: 29761: if (__r - __y0 <= __y0 / __n) 29761: break; 29761: } 29761: else 29761: break; 29761: } 29761: 29761: result_type __sum = 0; 29761: for (size_t __k = 0; __k < __n0; ++__k) 29761: { 29761: __ctype __u; 29761: do 29761: __u = _M_b() - _M_b.min(); 29761: while (__y0 && __u >= __y0); 29761: __sum = __s0 * __sum + (__s0 ? __u % __s0 : __u); 29761: } 29761: for (size_t __k = __n0; __k < __n; ++__k) 29761: { 29761: __ctype __u; 29761: do 29761: __u = _M_b() - _M_b.min(); 29761: while (__y1 && __u >= __y1); 29761: __sum = __s1 * __sum + (__s1 ? __u % __s1 : __u); 29761: } 29761: return __sum; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __detail 29761: { 29761: 29761: template 29761: constexpr bool 29761: __representable_as_double(_Tp __x) noexcept 29761: { 29761: static_assert(numeric_limits<_Tp>::is_integer, ""); 29761: static_assert(!numeric_limits<_Tp>::is_signed, ""); 29761: 29761: return (__x <= (1ull << 53)) 29761: 29761: || (!(__x & 1) && __detail::__representable_as_double(__x >> 1)); 29761: } 29761: 29761: 29761: template 29761: constexpr bool 29761: __p1_representable_as_double(_Tp __x) noexcept 29761: { 29761: static_assert(numeric_limits<_Tp>::is_integer, ""); 29761: static_assert(!numeric_limits<_Tp>::is_signed, ""); 29761: return numeric_limits<_Tp>::digits < 53 29761: || (bool(__x + 1u) 29761: && __detail::__representable_as_double(__x + 1u)); 29761: } 29761: } 29761: 29761: template 29761: typename shuffle_order_engine<_RandomNumberEngine, __k>::result_type 29761: shuffle_order_engine<_RandomNumberEngine, __k>:: 29761: operator()() 29761: { 29761: constexpr result_type __range = max() - min(); 29761: size_t __j = __k; 29761: const result_type __y = _M_y - min(); 29761: 29761: if constexpr (__detail::__p1_representable_as_double(__range)) 29761: __j *= __y / (__range + 1.0); 29761: else 29761: __j *= __y / (__range + 1.0L); 29761: _M_y = _M_v[__j]; 29761: _M_v[__j] = _M_b(); 29761: 29761: return _M_y; 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const shuffle_order_engine<_RandomNumberEngine, __k>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29761: __os.fill(__space); 29761: 29761: __os << __x.base(); 29761: for (size_t __i = 0; __i < __k; ++__i) 29761: __os << __space << __x._M_v[__i]; 29761: __os << __space << __x._M_y; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: shuffle_order_engine<_RandomNumberEngine, __k>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: __is >> __x._M_b; 29761: for (size_t __i = 0; __i < __k; ++__i) 29761: __is >> __x._M_v[__i]; 29761: __is >> __x._M_y; 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const uniform_int_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: 29761: __os << __x.a() << __space << __x.b(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: uniform_int_distribution<_IntType>& __x) 29761: { 29761: using param_type 29761: = typename uniform_int_distribution<_IntType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _IntType __a, __b; 29761: if (__is >> __a >> __b) 29761: __x.param(param_type(__a, __b)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: uniform_real_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: auto __range = __p.b() - __p.a(); 29761: while (__f != __t) 29761: *__f++ = __aurng() * __range + __p.a(); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const uniform_real_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.a() << __space << __x.b(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: uniform_real_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename uniform_real_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::skipws); 29761: 29761: _RealType __a, __b; 29761: if (__is >> __a >> __b) 29761: __x.param(param_type(__a, __b)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: std::bernoulli_distribution:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: auto __limit = __p.p() * (__aurng.max() - __aurng.min()); 29761: 29761: while (__f != __t) 29761: *__f++ = (__aurng() - __aurng.min()) < __limit; 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const bernoulli_distribution& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__os.widen(' ')); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: __os << __x.p(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: 29761: template 29761: template 29761: typename geometric_distribution<_IntType>::result_type 29761: geometric_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: const double __naf = 29761: (1 - std::numeric_limits::epsilon()) / 2; 29761: 29761: const double __thr = 29761: std::numeric_limits<_IntType>::max() + __naf; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: double __cand; 29761: do 29761: __cand = std::floor(std::log(1.0 - __aurng()) / __param._M_log_1_p); 29761: while (__cand >= __thr); 29761: 29761: return result_type(__cand + __naf); 29761: } 29761: 29761: template 29761: template 29761: void 29761: geometric_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: 29761: const double __naf = 29761: (1 - std::numeric_limits::epsilon()) / 2; 29761: 29761: const double __thr = 29761: std::numeric_limits<_IntType>::max() + __naf; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: while (__f != __t) 29761: { 29761: double __cand; 29761: do 29761: __cand = std::floor(std::log(1.0 - __aurng()) 29761: / __param._M_log_1_p); 29761: while (__cand >= __thr); 29761: 29761: *__f++ = __cand + __naf; 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const geometric_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__os.widen(' ')); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: __os << __x.p(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: geometric_distribution<_IntType>& __x) 29761: { 29761: using param_type = typename geometric_distribution<_IntType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::skipws); 29761: 29761: double __p; 29761: if (__is >> __p) 29761: __x.param(param_type(__p)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: typename negative_binomial_distribution<_IntType>::result_type 29761: negative_binomial_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { 29761: const double __y = _M_gd(__urng); 29761: 29761: 29761: std::poisson_distribution __poisson(__y); 29761: return __poisson(__urng); 29761: } 29761: 29761: template 29761: template 29761: typename negative_binomial_distribution<_IntType>::result_type 29761: negative_binomial_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: 29761: const double __y = 29761: _M_gd(__urng, param_type(__p.k(), (1.0 - __p.p()) / __p.p())); 29761: 29761: std::poisson_distribution __poisson(__y); 29761: return __poisson(__urng); 29761: } 29761: 29761: template 29761: template 29761: void 29761: negative_binomial_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { 29761: 29761: while (__f != __t) 29761: { 29761: const double __y = _M_gd(__urng); 29761: 29761: 29761: std::poisson_distribution __poisson(__y); 29761: *__f++ = __poisson(__urng); 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: negative_binomial_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: typename std::gamma_distribution::param_type 29761: __p2(__p.k(), (1.0 - __p.p()) / __p.p()); 29761: 29761: while (__f != __t) 29761: { 29761: const double __y = _M_gd(__urng, __p2); 29761: 29761: std::poisson_distribution __poisson(__y); 29761: *__f++ = __poisson(__urng); 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const negative_binomial_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__os.widen(' ')); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: __os << __x.k() << __space << __x.p() 29761: << __space << __x._M_gd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: negative_binomial_distribution<_IntType>& __x) 29761: { 29761: using param_type 29761: = typename negative_binomial_distribution<_IntType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::skipws); 29761: 29761: _IntType __k; 29761: double __p; 29761: if (__is >> __k >> __p >> __x._M_gd) 29761: __x.param(param_type(__k, __p)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: poisson_distribution<_IntType>::param_type:: 29761: _M_initialize() 29761: { 29761: 29761: if (_M_mean >= 12) 29761: { 29761: const double __m = std::floor(_M_mean); 29761: _M_lm_thr = std::log(_M_mean); 29761: _M_lfm = std::lgamma(__m + 1); 29761: _M_sm = std::sqrt(__m); 29761: 29761: const double __pi_4 = 0.7853981633974483096156608458198757L; 29761: const double __dx = std::sqrt(2 * __m * std::log(32 * __m 29761: / __pi_4)); 29761: _M_d = std::round(std::max(6.0, std::min(__m, __dx))); 29761: const double __cx = 2 * __m + _M_d; 29761: _M_scx = std::sqrt(__cx / 2); 29761: _M_1cx = 1 / __cx; 29761: 29761: _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx); 29761: _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2)) 29761: / _M_d; 29761: } 29761: else 29761: 29761: _M_lm_thr = std::exp(-_M_mean); 29761: } 29761: # 1308 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: template 29761: typename poisson_distribution<_IntType>::result_type 29761: poisson_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: if (__param.mean() >= 12) 29761: { 29761: double __x; 29761: 29761: 29761: const double __naf = 29761: (1 - std::numeric_limits::epsilon()) / 2; 29761: const double __thr = 29761: std::numeric_limits<_IntType>::max() + __naf; 29761: 29761: const double __m = std::floor(__param.mean()); 29761: 29761: const double __spi_2 = 1.2533141373155002512078826424055226L; 29761: const double __c1 = __param._M_sm * __spi_2; 29761: const double __c2 = __param._M_c2b + __c1; 29761: const double __c3 = __c2 + 1; 29761: const double __c4 = __c3 + 1; 29761: 29761: const double __178 = 0.0128205128205128205128205128205128L; 29761: 29761: const double __e178 = 1.0129030479320018583185514777512983L; 29761: const double __c5 = __c4 + __e178; 29761: const double __c = __param._M_cb + __c5; 29761: const double __2cx = 2 * (2 * __m + __param._M_d); 29761: 29761: bool __reject = true; 29761: do 29761: { 29761: const double __u = __c * __aurng(); 29761: const double __e = -std::log(1.0 - __aurng()); 29761: 29761: double __w = 0.0; 29761: 29761: if (__u <= __c1) 29761: { 29761: const double __n = _M_nd(__urng); 29761: const double __y = -std::abs(__n) * __param._M_sm - 1; 29761: __x = std::floor(__y); 29761: __w = -__n * __n / 2; 29761: if (__x < -__m) 29761: continue; 29761: } 29761: else if (__u <= __c2) 29761: { 29761: const double __n = _M_nd(__urng); 29761: const double __y = 1 + std::abs(__n) * __param._M_scx; 29761: __x = std::ceil(__y); 29761: __w = __y * (2 - __y) * __param._M_1cx; 29761: if (__x > __param._M_d) 29761: continue; 29761: } 29761: else if (__u <= __c3) 29761: 29761: 29761: __x = -1; 29761: else if (__u <= __c4) 29761: __x = 0; 29761: else if (__u <= __c5) 29761: { 29761: __x = 1; 29761: 29761: __w = __178; 29761: } 29761: else 29761: { 29761: const double __v = -std::log(1.0 - __aurng()); 29761: const double __y = __param._M_d 29761: + __v * __2cx / __param._M_d; 29761: __x = std::ceil(__y); 29761: __w = -__param._M_d * __param._M_1cx * (1 + __y / 2); 29761: } 29761: 29761: __reject = (__w - __e - __x * __param._M_lm_thr 29761: > __param._M_lfm - std::lgamma(__x + __m + 1)); 29761: 29761: __reject |= __x + __m >= __thr; 29761: 29761: } while (__reject); 29761: 29761: return result_type(__x + __m + __naf); 29761: } 29761: else 29761: 29761: { 29761: _IntType __x = 0; 29761: double __prod = 1.0; 29761: 29761: do 29761: { 29761: __prod *= __aurng(); 29761: __x += 1; 29761: } 29761: while (__prod > __param._M_lm_thr); 29761: 29761: return __x - 1; 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: poisson_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: while (__f != __t) 29761: *__f++ = this->operator()(__urng, __param); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const poisson_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: __os << __x.mean() << __space << __x._M_nd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: poisson_distribution<_IntType>& __x) 29761: { 29761: using param_type = typename poisson_distribution<_IntType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::skipws); 29761: 29761: double __mean; 29761: if (__is >> __mean >> __x._M_nd) 29761: __x.param(param_type(__mean)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: binomial_distribution<_IntType>::param_type:: 29761: _M_initialize() 29761: { 29761: const double __p12 = _M_p <= 0.5 ? _M_p : 1.0 - _M_p; 29761: 29761: _M_easy = true; 29761: 29761: 29761: if (_M_t * __p12 >= 8) 29761: { 29761: _M_easy = false; 29761: const double __np = std::floor(_M_t * __p12); 29761: const double __pa = __np / _M_t; 29761: const double __1p = 1 - __pa; 29761: 29761: const double __pi_4 = 0.7853981633974483096156608458198757L; 29761: const double __d1x = 29761: std::sqrt(__np * __1p * std::log(32 * __np 29761: / (81 * __pi_4 * __1p))); 29761: _M_d1 = std::round(std::max(1.0, __d1x)); 29761: const double __d2x = 29761: std::sqrt(__np * __1p * std::log(32 * _M_t * __1p 29761: / (__pi_4 * __pa))); 29761: _M_d2 = std::round(std::max(1.0, __d2x)); 29761: 29761: 29761: const double __spi_2 = 1.2533141373155002512078826424055226L; 29761: _M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np)); 29761: _M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * (_M_t * __1p))); 29761: _M_c = 2 * _M_d1 / __np; 29761: _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2; 29761: const double __a12 = _M_a1 + _M_s2 * __spi_2; 29761: const double __s1s = _M_s1 * _M_s1; 29761: _M_a123 = __a12 + (std::exp(_M_d1 / (_M_t * __1p)) 29761: * 2 * __s1s / _M_d1 29761: * std::exp(-_M_d1 * _M_d1 / (2 * __s1s))); 29761: const double __s2s = _M_s2 * _M_s2; 29761: _M_s = (_M_a123 + 2 * __s2s / _M_d2 29761: * std::exp(-_M_d2 * _M_d2 / (2 * __s2s))); 29761: _M_lf = (std::lgamma(__np + 1) 29761: + std::lgamma(_M_t - __np + 1)); 29761: _M_lp1p = std::log(__pa / __1p); 29761: 29761: _M_q = -std::log(1 - (__p12 - __pa) / __1p); 29761: } 29761: else 29761: 29761: _M_q = -std::log(1 - __p12); 29761: } 29761: 29761: template 29761: template 29761: typename binomial_distribution<_IntType>::result_type 29761: binomial_distribution<_IntType>:: 29761: _M_waiting(_UniformRandomNumberGenerator& __urng, 29761: _IntType __t, double __q) 29761: { 29761: _IntType __x = 0; 29761: double __sum = 0.0; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: do 29761: { 29761: if (__t == __x) 29761: return __x; 29761: const double __e = -std::log(1.0 - __aurng()); 29761: __sum += __e / (__t - __x); 29761: __x += 1; 29761: } 29761: while (__sum <= __q); 29761: 29761: return __x - 1; 29761: } 29761: # 1563 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: template 29761: typename binomial_distribution<_IntType>::result_type 29761: binomial_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: result_type __ret; 29761: const _IntType __t = __param.t(); 29761: const double __p = __param.p(); 29761: const double __p12 = __p <= 0.5 ? __p : 1.0 - __p; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: 29761: if (!__param._M_easy) 29761: { 29761: double __x; 29761: 29761: 29761: const double __naf = 29761: (1 - std::numeric_limits::epsilon()) / 2; 29761: const double __thr = 29761: std::numeric_limits<_IntType>::max() + __naf; 29761: 29761: const double __np = std::floor(__t * __p12); 29761: 29761: 29761: const double __spi_2 = 1.2533141373155002512078826424055226L; 29761: const double __a1 = __param._M_a1; 29761: const double __a12 = __a1 + __param._M_s2 * __spi_2; 29761: const double __a123 = __param._M_a123; 29761: const double __s1s = __param._M_s1 * __param._M_s1; 29761: const double __s2s = __param._M_s2 * __param._M_s2; 29761: 29761: bool __reject; 29761: do 29761: { 29761: const double __u = __param._M_s * __aurng(); 29761: 29761: double __v; 29761: 29761: if (__u <= __a1) 29761: { 29761: const double __n = _M_nd(__urng); 29761: const double __y = __param._M_s1 * std::abs(__n); 29761: __reject = __y >= __param._M_d1; 29761: if (!__reject) 29761: { 29761: const double __e = -std::log(1.0 - __aurng()); 29761: __x = std::floor(__y); 29761: __v = -__e - __n * __n / 2 + __param._M_c; 29761: } 29761: } 29761: else if (__u <= __a12) 29761: { 29761: const double __n = _M_nd(__urng); 29761: const double __y = __param._M_s2 * std::abs(__n); 29761: __reject = __y >= __param._M_d2; 29761: if (!__reject) 29761: { 29761: const double __e = -std::log(1.0 - __aurng()); 29761: __x = std::floor(-__y); 29761: __v = -__e - __n * __n / 2; 29761: } 29761: } 29761: else if (__u <= __a123) 29761: { 29761: const double __e1 = -std::log(1.0 - __aurng()); 29761: const double __e2 = -std::log(1.0 - __aurng()); 29761: 29761: const double __y = __param._M_d1 29761: + 2 * __s1s * __e1 / __param._M_d1; 29761: __x = std::floor(__y); 29761: __v = (-__e2 + __param._M_d1 * (1 / (__t - __np) 29761: -__y / (2 * __s1s))); 29761: __reject = false; 29761: } 29761: else 29761: { 29761: const double __e1 = -std::log(1.0 - __aurng()); 29761: const double __e2 = -std::log(1.0 - __aurng()); 29761: 29761: const double __y = __param._M_d2 29761: + 2 * __s2s * __e1 / __param._M_d2; 29761: __x = std::floor(-__y); 29761: __v = -__e2 - __param._M_d2 * __y / (2 * __s2s); 29761: __reject = false; 29761: } 29761: 29761: __reject = __reject || __x < -__np || __x > __t - __np; 29761: if (!__reject) 29761: { 29761: const double __lfx = 29761: std::lgamma(__np + __x + 1) 29761: + std::lgamma(__t - (__np + __x) + 1); 29761: __reject = __v > __param._M_lf - __lfx 29761: + __x * __param._M_lp1p; 29761: } 29761: 29761: __reject |= __x + __np >= __thr; 29761: } 29761: while (__reject); 29761: 29761: __x += __np + __naf; 29761: 29761: const _IntType __z = _M_waiting(__urng, __t - _IntType(__x), 29761: __param._M_q); 29761: __ret = _IntType(__x) + __z; 29761: } 29761: else 29761: 29761: __ret = _M_waiting(__urng, __t, __param._M_q); 29761: 29761: if (__p12 != __p) 29761: __ret = __t - __ret; 29761: return __ret; 29761: } 29761: 29761: template 29761: template 29761: void 29761: binomial_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: while (__f != __t) 29761: *__f++ = this->operator()(__urng, __param); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const binomial_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: __os << __x.t() << __space << __x.p() 29761: << __space << __x._M_nd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: binomial_distribution<_IntType>& __x) 29761: { 29761: using param_type = typename binomial_distribution<_IntType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _IntType __t; 29761: double __p; 29761: if (__is >> __t >> __p >> __x._M_nd) 29761: __x.param(param_type(__t, __p)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: std::exponential_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: while (__f != __t) 29761: *__f++ = -std::log(result_type(1) - __aurng()) / __p.lambda(); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const exponential_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__os.widen(' ')); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.lambda(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: exponential_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename exponential_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __lambda; 29761: if (__is >> __lambda) 29761: __x.param(param_type(__lambda)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: # 1809 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: template 29761: typename normal_distribution<_RealType>::result_type 29761: normal_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: result_type __ret; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: 29761: if (_M_saved_available) 29761: { 29761: _M_saved_available = false; 29761: __ret = _M_saved; 29761: } 29761: else 29761: { 29761: result_type __x, __y, __r2; 29761: do 29761: { 29761: __x = result_type(2.0) * __aurng() - 1.0; 29761: __y = result_type(2.0) * __aurng() - 1.0; 29761: __r2 = __x * __x + __y * __y; 29761: } 29761: while (__r2 > 1.0 || __r2 == 0.0); 29761: 29761: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29761: _M_saved = __x * __mult; 29761: _M_saved_available = true; 29761: __ret = __y * __mult; 29761: } 29761: 29761: __ret = __ret * __param.stddev() + __param.mean(); 29761: return __ret; 29761: } 29761: 29761: template 29761: template 29761: void 29761: normal_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: if (__f == __t) 29761: return; 29761: 29761: if (_M_saved_available) 29761: { 29761: _M_saved_available = false; 29761: *__f++ = _M_saved * __param.stddev() + __param.mean(); 29761: 29761: if (__f == __t) 29761: return; 29761: } 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: 29761: while (__f + 1 < __t) 29761: { 29761: result_type __x, __y, __r2; 29761: do 29761: { 29761: __x = result_type(2.0) * __aurng() - 1.0; 29761: __y = result_type(2.0) * __aurng() - 1.0; 29761: __r2 = __x * __x + __y * __y; 29761: } 29761: while (__r2 > 1.0 || __r2 == 0.0); 29761: 29761: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29761: *__f++ = __y * __mult * __param.stddev() + __param.mean(); 29761: *__f++ = __x * __mult * __param.stddev() + __param.mean(); 29761: } 29761: 29761: if (__f != __t) 29761: { 29761: result_type __x, __y, __r2; 29761: do 29761: { 29761: __x = result_type(2.0) * __aurng() - 1.0; 29761: __y = result_type(2.0) * __aurng() - 1.0; 29761: __r2 = __x * __x + __y * __y; 29761: } 29761: while (__r2 > 1.0 || __r2 == 0.0); 29761: 29761: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29761: _M_saved = __x * __mult; 29761: _M_saved_available = true; 29761: *__f = __y * __mult * __param.stddev() + __param.mean(); 29761: } 29761: } 29761: 29761: template 29761: bool 29761: operator==(const std::normal_distribution<_RealType>& __d1, 29761: const std::normal_distribution<_RealType>& __d2) 29761: { 29761: if (__d1._M_param == __d2._M_param 29761: && __d1._M_saved_available == __d2._M_saved_available) 29761: return __d1._M_saved_available ? __d1._M_saved == __d2._M_saved : true; 29761: else 29761: return false; 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const normal_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.mean() << __space << __x.stddev() 29761: << __space << __x._M_saved_available; 29761: if (__x._M_saved_available) 29761: __os << __space << __x._M_saved; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: normal_distribution<_RealType>& __x) 29761: { 29761: using param_type = typename normal_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: double __mean, __stddev; 29761: bool __saved_avail; 29761: if (__is >> __mean >> __stddev >> __saved_avail) 29761: { 29761: if (!__saved_avail || (__is >> __x._M_saved)) 29761: { 29761: __x._M_saved_available = __saved_avail; 29761: __x.param(param_type(__mean, __stddev)); 29761: } 29761: } 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: lognormal_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: while (__f != __t) 29761: *__f++ = std::exp(__p.s() * _M_nd(__urng) + __p.m()); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const lognormal_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.m() << __space << __x.s() 29761: << __space << __x._M_nd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: lognormal_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename lognormal_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __m, __s; 29761: if (__is >> __m >> __s >> __x._M_nd) 29761: __x.param(param_type(__m, __s)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: template 29761: template 29761: void 29761: std::chi_squared_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { 29761: 29761: while (__f != __t) 29761: *__f++ = 2 * _M_gd(__urng); 29761: } 29761: 29761: template 29761: template 29761: void 29761: std::chi_squared_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const typename 29761: std::gamma_distribution::param_type& __p) 29761: { 29761: 29761: while (__f != __t) 29761: *__f++ = 2 * _M_gd(__urng, __p); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const chi_squared_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.n() << __space << __x._M_gd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: chi_squared_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename chi_squared_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __n; 29761: if (__is >> __n >> __x._M_gd) 29761: __x.param(param_type(__n)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: typename cauchy_distribution<_RealType>::result_type 29761: cauchy_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: _RealType __u; 29761: do 29761: __u = __aurng(); 29761: while (__u == 0.5); 29761: 29761: const _RealType __pi = 3.1415926535897932384626433832795029L; 29761: return __p.a() + __p.b() * std::tan(__pi * __u); 29761: } 29761: 29761: template 29761: template 29761: void 29761: cauchy_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: const _RealType __pi = 3.1415926535897932384626433832795029L; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: while (__f != __t) 29761: { 29761: _RealType __u; 29761: do 29761: __u = __aurng(); 29761: while (__u == 0.5); 29761: 29761: *__f++ = __p.a() + __p.b() * std::tan(__pi * __u); 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const cauchy_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.a() << __space << __x.b(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: cauchy_distribution<_RealType>& __x) 29761: { 29761: using param_type = typename cauchy_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __a, __b; 29761: if (__is >> __a >> __b) 29761: __x.param(param_type(__a, __b)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: std::fisher_f_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { 29761: 29761: while (__f != __t) 29761: *__f++ = ((_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m())); 29761: } 29761: 29761: template 29761: template 29761: void 29761: std::fisher_f_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: param_type __p1(__p.m() / 2); 29761: param_type __p2(__p.n() / 2); 29761: while (__f != __t) 29761: *__f++ = ((_M_gd_x(__urng, __p1) * n()) 29761: / (_M_gd_y(__urng, __p2) * m())); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const fisher_f_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.m() << __space << __x.n() 29761: << __space << __x._M_gd_x << __space << __x._M_gd_y; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: fisher_f_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename fisher_f_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __m, __n; 29761: if (__is >> __m >> __n >> __x._M_gd_x >> __x._M_gd_y) 29761: __x.param(param_type(__m, __n)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: std::student_t_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { 29761: 29761: while (__f != __t) 29761: *__f++ = _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); 29761: } 29761: 29761: template 29761: template 29761: void 29761: std::student_t_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: typename std::gamma_distribution::param_type 29761: __p2(__p.n() / 2, 2); 29761: while (__f != __t) 29761: *__f++ = _M_nd(__urng) * std::sqrt(__p.n() / _M_gd(__urng, __p2)); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const student_t_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.n() << __space << __x._M_nd << __space << __x._M_gd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: student_t_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename student_t_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __n; 29761: if (__is >> __n >> __x._M_nd >> __x._M_gd) 29761: __x.param(param_type(__n)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: gamma_distribution<_RealType>::param_type:: 29761: _M_initialize() 29761: { 29761: _M_malpha = _M_alpha < 1.0 ? _M_alpha + _RealType(1.0) : _M_alpha; 29761: 29761: const _RealType __a1 = _M_malpha - _RealType(1.0) / _RealType(3.0); 29761: _M_a2 = _RealType(1.0) / std::sqrt(_RealType(9.0) * __a1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: template 29761: typename gamma_distribution<_RealType>::result_type 29761: gamma_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: 29761: result_type __u, __v, __n; 29761: const result_type __a1 = (__param._M_malpha 29761: - _RealType(1.0) / _RealType(3.0)); 29761: 29761: do 29761: { 29761: do 29761: { 29761: __n = _M_nd(__urng); 29761: __v = result_type(1.0) + __param._M_a2 * __n; 29761: } 29761: while (__v <= 0.0); 29761: 29761: __v = __v * __v * __v; 29761: __u = __aurng(); 29761: } 29761: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29761: && (std::log(__u) > (0.5 * __n * __n + __a1 29761: * (1.0 - __v + std::log(__v))))); 29761: 29761: if (__param.alpha() == __param._M_malpha) 29761: return __a1 * __v * __param.beta(); 29761: else 29761: { 29761: do 29761: __u = __aurng(); 29761: while (__u == 0.0); 29761: 29761: return (std::pow(__u, result_type(1.0) / __param.alpha()) 29761: * __a1 * __v * __param.beta()); 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: gamma_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: 29761: result_type __u, __v, __n; 29761: const result_type __a1 = (__param._M_malpha 29761: - _RealType(1.0) / _RealType(3.0)); 29761: 29761: if (__param.alpha() == __param._M_malpha) 29761: while (__f != __t) 29761: { 29761: do 29761: { 29761: do 29761: { 29761: __n = _M_nd(__urng); 29761: __v = result_type(1.0) + __param._M_a2 * __n; 29761: } 29761: while (__v <= 0.0); 29761: 29761: __v = __v * __v * __v; 29761: __u = __aurng(); 29761: } 29761: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29761: && (std::log(__u) > (0.5 * __n * __n + __a1 29761: * (1.0 - __v + std::log(__v))))); 29761: 29761: *__f++ = __a1 * __v * __param.beta(); 29761: } 29761: else 29761: while (__f != __t) 29761: { 29761: do 29761: { 29761: do 29761: { 29761: __n = _M_nd(__urng); 29761: __v = result_type(1.0) + __param._M_a2 * __n; 29761: } 29761: while (__v <= 0.0); 29761: 29761: __v = __v * __v * __v; 29761: __u = __aurng(); 29761: } 29761: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29761: && (std::log(__u) > (0.5 * __n * __n + __a1 29761: * (1.0 - __v + std::log(__v))))); 29761: 29761: do 29761: __u = __aurng(); 29761: while (__u == 0.0); 29761: 29761: *__f++ = (std::pow(__u, result_type(1.0) / __param.alpha()) 29761: * __a1 * __v * __param.beta()); 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const gamma_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.alpha() << __space << __x.beta() 29761: << __space << __x._M_nd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: gamma_distribution<_RealType>& __x) 29761: { 29761: using param_type = typename gamma_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __alpha_val, __beta_val; 29761: if (__is >> __alpha_val >> __beta_val >> __x._M_nd) 29761: __x.param(param_type(__alpha_val, __beta_val)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: typename weibull_distribution<_RealType>::result_type 29761: weibull_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: return __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 29761: result_type(1) / __p.a()); 29761: } 29761: 29761: template 29761: template 29761: void 29761: weibull_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: auto __inv_a = result_type(1) / __p.a(); 29761: 29761: while (__f != __t) 29761: *__f++ = __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 29761: __inv_a); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const weibull_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.a() << __space << __x.b(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: weibull_distribution<_RealType>& __x) 29761: { 29761: using param_type = typename weibull_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __a, __b; 29761: if (__is >> __a >> __b) 29761: __x.param(param_type(__a, __b)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: typename extreme_value_distribution<_RealType>::result_type 29761: extreme_value_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: return __p.a() - __p.b() * std::log(-std::log(result_type(1) 29761: - __aurng())); 29761: } 29761: 29761: template 29761: template 29761: void 29761: extreme_value_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: 29761: while (__f != __t) 29761: *__f++ = __p.a() - __p.b() * std::log(-std::log(result_type(1) 29761: - __aurng())); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const extreme_value_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.a() << __space << __x.b(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: extreme_value_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename extreme_value_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __a, __b; 29761: if (__is >> __a >> __b) 29761: __x.param(param_type(__a, __b)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: discrete_distribution<_IntType>::param_type:: 29761: _M_initialize() 29761: { 29761: if (_M_prob.size() < 2) 29761: { 29761: _M_prob.clear(); 29761: return; 29761: } 29761: 29761: const double __sum = std::accumulate(_M_prob.begin(), 29761: _M_prob.end(), 0.0); 29761: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __detail::__normalize(_M_prob.begin(), _M_prob.end(), _M_prob.begin(), 29761: __sum); 29761: 29761: _M_cp.reserve(_M_prob.size()); 29761: std::partial_sum(_M_prob.begin(), _M_prob.end(), 29761: std::back_inserter(_M_cp)); 29761: 29761: _M_cp[_M_cp.size() - 1] = 1.0; 29761: } 29761: 29761: template 29761: template 29761: discrete_distribution<_IntType>::param_type:: 29761: param_type(size_t __nw, double __xmin, double __xmax, _Func __fw) 29761: : _M_prob(), _M_cp() 29761: { 29761: const size_t __n = __nw == 0 ? 1 : __nw; 29761: const double __delta = (__xmax - __xmin) / __n; 29761: 29761: _M_prob.reserve(__n); 29761: for (size_t __k = 0; __k < __nw; ++__k) 29761: _M_prob.push_back(__fw(__xmin + __k * __delta + 0.5 * __delta)); 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: typename discrete_distribution<_IntType>::result_type 29761: discrete_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: if (__param._M_cp.empty()) 29761: return result_type(0); 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: const double __p = __aurng(); 29761: auto __pos = std::lower_bound(__param._M_cp.begin(), 29761: __param._M_cp.end(), __p); 29761: 29761: return __pos - __param._M_cp.begin(); 29761: } 29761: 29761: template 29761: template 29761: void 29761: discrete_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: if (__param._M_cp.empty()) 29761: { 29761: while (__f != __t) 29761: *__f++ = result_type(0); 29761: return; 29761: } 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: while (__f != __t) 29761: { 29761: const double __p = __aurng(); 29761: auto __pos = std::lower_bound(__param._M_cp.begin(), 29761: __param._M_cp.end(), __p); 29761: 29761: *__f++ = __pos - __param._M_cp.begin(); 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const discrete_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: std::vector __prob = __x.probabilities(); 29761: __os << __prob.size(); 29761: for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit) 29761: __os << __space << *__dit; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: namespace __detail 29761: { 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: __extract_params(basic_istream<_CharT, _Traits>& __is, 29761: vector<_ValT>& __vals, size_t __n) 29761: { 29761: __vals.reserve(__n); 29761: while (__n--) 29761: { 29761: _ValT __val; 29761: if (__is >> __val) 29761: __vals.push_back(__val); 29761: else 29761: break; 29761: } 29761: return __is; 29761: } 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: discrete_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: size_t __n; 29761: if (__is >> __n) 29761: { 29761: std::vector __prob_vec; 29761: if (__detail::__extract_params(__is, __prob_vec, __n)) 29761: __x.param({__prob_vec.begin(), __prob_vec.end()}); 29761: } 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: piecewise_constant_distribution<_RealType>::param_type:: 29761: _M_initialize() 29761: { 29761: if (_M_int.size() < 2 29761: || (_M_int.size() == 2 29761: && _M_int[0] == _RealType(0) 29761: && _M_int[1] == _RealType(1))) 29761: { 29761: _M_int.clear(); 29761: _M_den.clear(); 29761: return; 29761: } 29761: 29761: const double __sum = std::accumulate(_M_den.begin(), 29761: _M_den.end(), 0.0); 29761: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 29761: __sum); 29761: 29761: _M_cp.reserve(_M_den.size()); 29761: std::partial_sum(_M_den.begin(), _M_den.end(), 29761: std::back_inserter(_M_cp)); 29761: 29761: 29761: _M_cp[_M_cp.size() - 1] = 1.0; 29761: 29761: for (size_t __k = 0; __k < _M_den.size(); ++__k) 29761: _M_den[__k] /= _M_int[__k + 1] - _M_int[__k]; 29761: } 29761: 29761: template 29761: template 29761: piecewise_constant_distribution<_RealType>::param_type:: 29761: param_type(_InputIteratorB __bbegin, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin) 29761: : _M_int(), _M_den(), _M_cp() 29761: { 29761: if (__bbegin != __bend) 29761: { 29761: for (;;) 29761: { 29761: _M_int.push_back(*__bbegin); 29761: ++__bbegin; 29761: if (__bbegin == __bend) 29761: break; 29761: 29761: _M_den.push_back(*__wbegin); 29761: ++__wbegin; 29761: } 29761: } 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: piecewise_constant_distribution<_RealType>::param_type:: 29761: param_type(initializer_list<_RealType> __bl, _Func __fw) 29761: : _M_int(), _M_den(), _M_cp() 29761: { 29761: _M_int.reserve(__bl.size()); 29761: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 29761: _M_int.push_back(*__biter); 29761: 29761: _M_den.reserve(_M_int.size() - 1); 29761: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 29761: _M_den.push_back(__fw(0.5 * (_M_int[__k + 1] + _M_int[__k]))); 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: piecewise_constant_distribution<_RealType>::param_type:: 29761: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 29761: : _M_int(), _M_den(), _M_cp() 29761: { 29761: const size_t __n = __nw == 0 ? 1 : __nw; 29761: const _RealType __delta = (__xmax - __xmin) / __n; 29761: 29761: _M_int.reserve(__n + 1); 29761: for (size_t __k = 0; __k <= __nw; ++__k) 29761: _M_int.push_back(__xmin + __k * __delta); 29761: 29761: _M_den.reserve(__n); 29761: for (size_t __k = 0; __k < __nw; ++__k) 29761: _M_den.push_back(__fw(_M_int[__k] + 0.5 * __delta)); 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: typename piecewise_constant_distribution<_RealType>::result_type 29761: piecewise_constant_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: const double __p = __aurng(); 29761: if (__param._M_cp.empty()) 29761: return __p; 29761: 29761: auto __pos = std::lower_bound(__param._M_cp.begin(), 29761: __param._M_cp.end(), __p); 29761: const size_t __i = __pos - __param._M_cp.begin(); 29761: 29761: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29761: 29761: return __param._M_int[__i] + (__p - __pref) / __param._M_den[__i]; 29761: } 29761: 29761: template 29761: template 29761: void 29761: piecewise_constant_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: if (__param._M_cp.empty()) 29761: { 29761: while (__f != __t) 29761: *__f++ = __aurng(); 29761: return; 29761: } 29761: 29761: while (__f != __t) 29761: { 29761: const double __p = __aurng(); 29761: 29761: auto __pos = std::lower_bound(__param._M_cp.begin(), 29761: __param._M_cp.end(), __p); 29761: const size_t __i = __pos - __param._M_cp.begin(); 29761: 29761: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29761: 29761: *__f++ = (__param._M_int[__i] 29761: + (__p - __pref) / __param._M_den[__i]); 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const piecewise_constant_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: std::vector<_RealType> __int = __x.intervals(); 29761: __os << __int.size() - 1; 29761: 29761: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 29761: __os << __space << *__xit; 29761: 29761: std::vector __den = __x.densities(); 29761: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 29761: __os << __space << *__dit; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: piecewise_constant_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: size_t __n; 29761: if (__is >> __n) 29761: { 29761: std::vector<_RealType> __int_vec; 29761: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 29761: { 29761: std::vector __den_vec; 29761: if (__detail::__extract_params(__is, __den_vec, __n)) 29761: { 29761: __x.param({ __int_vec.begin(), __int_vec.end(), 29761: __den_vec.begin() }); 29761: } 29761: } 29761: } 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: piecewise_linear_distribution<_RealType>::param_type:: 29761: _M_initialize() 29761: { 29761: if (_M_int.size() < 2 29761: || (_M_int.size() == 2 29761: && _M_int[0] == _RealType(0) 29761: && _M_int[1] == _RealType(1) 29761: && _M_den[0] == _M_den[1])) 29761: { 29761: _M_int.clear(); 29761: _M_den.clear(); 29761: return; 29761: } 29761: 29761: double __sum = 0.0; 29761: _M_cp.reserve(_M_int.size() - 1); 29761: _M_m.reserve(_M_int.size() - 1); 29761: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 29761: { 29761: const _RealType __delta = _M_int[__k + 1] - _M_int[__k]; 29761: __sum += 0.5 * (_M_den[__k + 1] + _M_den[__k]) * __delta; 29761: _M_cp.push_back(__sum); 29761: _M_m.push_back((_M_den[__k + 1] - _M_den[__k]) / __delta); 29761: } 29761: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: 29761: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 29761: __sum); 29761: 29761: __detail::__normalize(_M_cp.begin(), _M_cp.end(), _M_cp.begin(), __sum); 29761: 29761: __detail::__normalize(_M_m.begin(), _M_m.end(), _M_m.begin(), __sum); 29761: 29761: 29761: _M_cp[_M_cp.size() - 1] = 1.0; 29761: } 29761: 29761: template 29761: template 29761: piecewise_linear_distribution<_RealType>::param_type:: 29761: param_type(_InputIteratorB __bbegin, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin) 29761: : _M_int(), _M_den(), _M_cp(), _M_m() 29761: { 29761: for (; __bbegin != __bend; ++__bbegin, ++__wbegin) 29761: { 29761: _M_int.push_back(*__bbegin); 29761: _M_den.push_back(*__wbegin); 29761: } 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: piecewise_linear_distribution<_RealType>::param_type:: 29761: param_type(initializer_list<_RealType> __bl, _Func __fw) 29761: : _M_int(), _M_den(), _M_cp(), _M_m() 29761: { 29761: _M_int.reserve(__bl.size()); 29761: _M_den.reserve(__bl.size()); 29761: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 29761: { 29761: _M_int.push_back(*__biter); 29761: _M_den.push_back(__fw(*__biter)); 29761: } 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: piecewise_linear_distribution<_RealType>::param_type:: 29761: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 29761: : _M_int(), _M_den(), _M_cp(), _M_m() 29761: { 29761: const size_t __n = __nw == 0 ? 1 : __nw; 29761: const _RealType __delta = (__xmax - __xmin) / __n; 29761: 29761: _M_int.reserve(__n + 1); 29761: _M_den.reserve(__n + 1); 29761: for (size_t __k = 0; __k <= __nw; ++__k) 29761: { 29761: _M_int.push_back(__xmin + __k * __delta); 29761: _M_den.push_back(__fw(_M_int[__k] + __delta)); 29761: } 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: typename piecewise_linear_distribution<_RealType>::result_type 29761: piecewise_linear_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: const double __p = __aurng(); 29761: if (__param._M_cp.empty()) 29761: return __p; 29761: 29761: auto __pos = std::lower_bound(__param._M_cp.begin(), 29761: __param._M_cp.end(), __p); 29761: const size_t __i = __pos - __param._M_cp.begin(); 29761: 29761: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29761: 29761: const double __a = 0.5 * __param._M_m[__i]; 29761: const double __b = __param._M_den[__i]; 29761: const double __cm = __p - __pref; 29761: 29761: _RealType __x = __param._M_int[__i]; 29761: if (__a == 0) 29761: __x += __cm / __b; 29761: else 29761: { 29761: const double __d = __b * __b + 4.0 * __a * __cm; 29761: __x += 0.5 * (std::sqrt(__d) - __b) / __a; 29761: } 29761: 29761: return __x; 29761: } 29761: 29761: template 29761: template 29761: void 29761: piecewise_linear_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: while (__f != __t) 29761: *__f++ = this->operator()(__urng, __param); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const piecewise_linear_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: std::vector<_RealType> __int = __x.intervals(); 29761: __os << __int.size() - 1; 29761: 29761: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 29761: __os << __space << *__xit; 29761: 29761: std::vector __den = __x.densities(); 29761: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 29761: __os << __space << *__dit; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: piecewise_linear_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: size_t __n; 29761: if (__is >> __n) 29761: { 29761: vector<_RealType> __int_vec; 29761: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 29761: { 29761: vector __den_vec; 29761: if (__detail::__extract_params(__is, __den_vec, __n + 1)) 29761: { 29761: __x.param({ __int_vec.begin(), __int_vec.end(), 29761: __den_vec.begin() }); 29761: } 29761: } 29761: } 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: seed_seq::seed_seq(std::initializer_list<_IntType> __il) 29761: { 29761: _M_v.reserve(__il.size()); 29761: for (auto __iter = __il.begin(); __iter != __il.end(); ++__iter) 29761: _M_v.push_back(__detail::__mod::__value>(*__iter)); 29761: } 29761: 29761: template 29761: seed_seq::seed_seq(_InputIterator __begin, _InputIterator __end) 29761: { 29761: if constexpr (__is_random_access_iter<_InputIterator>::value) 29761: _M_v.reserve(std::distance(__begin, __end)); 29761: 29761: for (_InputIterator __iter = __begin; __iter != __end; ++__iter) 29761: _M_v.push_back(__detail::__mod::__value>(*__iter)); 29761: } 29761: 29761: template 29761: void 29761: seed_seq::generate(_RandomAccessIterator __begin, 29761: _RandomAccessIterator __end) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _Type; 29761: 29761: if (__begin == __end) 29761: return; 29761: 29761: std::fill(__begin, __end, _Type(0x8b8b8b8bu)); 29761: 29761: const size_t __n = __end - __begin; 29761: const size_t __s = _M_v.size(); 29761: const size_t __t = (__n >= 623) ? 11 29761: : (__n >= 68) ? 7 29761: : (__n >= 39) ? 5 29761: : (__n >= 7) ? 3 29761: : (__n - 1) / 2; 29761: const size_t __p = (__n - __t) / 2; 29761: const size_t __q = __p + __t; 29761: const size_t __m = std::max(size_t(__s + 1), __n); 29761: # 3292 "/usr/include/c++/14/bits/random.tcc" 3 29761: { 29761: uint32_t __r1 = 1371501266u; 29761: uint32_t __r2 = __r1 + __s; 29761: __begin[__p] += __r1; 29761: __begin[__q] = (uint32_t)__begin[__q] + __r2; 29761: __begin[0] = __r2; 29761: } 29761: 29761: for (size_t __k = 1; __k <= __s; ++__k) 29761: { 29761: const size_t __kn = __k % __n; 29761: const size_t __kpn = (__k + __p) % __n; 29761: const size_t __kqn = (__k + __q) % __n; 29761: uint32_t __arg = (__begin[__kn] 29761: ^ __begin[__kpn] 29761: ^ __begin[(__k - 1) % __n]); 29761: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 29761: uint32_t __r2 = __r1 + (uint32_t)__kn + _M_v[__k - 1]; 29761: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 29761: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 29761: __begin[__kn] = __r2; 29761: } 29761: 29761: for (size_t __k = __s + 1; __k < __m; ++__k) 29761: { 29761: const size_t __kn = __k % __n; 29761: const size_t __kpn = (__k + __p) % __n; 29761: const size_t __kqn = (__k + __q) % __n; 29761: uint32_t __arg = (__begin[__kn] 29761: ^ __begin[__kpn] 29761: ^ __begin[(__k - 1) % __n]); 29761: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 29761: uint32_t __r2 = __r1 + (uint32_t)__kn; 29761: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 29761: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 29761: __begin[__kn] = __r2; 29761: } 29761: 29761: for (size_t __k = __m; __k < __m + __n; ++__k) 29761: { 29761: const size_t __kn = __k % __n; 29761: const size_t __kpn = (__k + __p) % __n; 29761: const size_t __kqn = (__k + __q) % __n; 29761: uint32_t __arg = (__begin[__kn] 29761: + __begin[__kpn] 29761: + __begin[(__k - 1) % __n]); 29761: uint32_t __r3 = 1566083941u * (__arg ^ (__arg >> 27)); 29761: uint32_t __r4 = __r3 - __kn; 29761: __begin[__kpn] ^= __r3; 29761: __begin[__kqn] ^= __r4; 29761: __begin[__kn] = __r4; 29761: } 29761: } 29761: 29761: template 29761: _RealType 29761: generate_canonical(_UniformRandomNumberGenerator& __urng) 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "template argument must be a floating point type"); 29761: 29761: const size_t __b 29761: = std::min(static_cast(std::numeric_limits<_RealType>::digits), 29761: __bits); 29761: const long double __r = static_cast(__urng.max()) 29761: - static_cast(__urng.min()) + 1.0L; 29761: const size_t __log2r = std::log(__r) / std::log(2.0L); 29761: const size_t __m = std::max(1UL, 29761: (__b + __log2r - 1UL) / __log2r); 29761: _RealType __ret; 29761: _RealType __sum = _RealType(0); 29761: _RealType __tmp = _RealType(1); 29761: for (size_t __k = __m; __k != 0; --__k) 29761: { 29761: __sum += _RealType(__urng() - __urng.min()) * __tmp; 29761: __tmp *= __r; 29761: } 29761: __ret = __sum / __tmp; 29761: if (__builtin_expect(__ret >= _RealType(1), 0)) 29761: { 29761: 29761: __ret = std::nextafter(_RealType(1), _RealType(0)); 29761: 29761: 29761: 29761: 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: } 29761: # 51 "/usr/include/c++/14/random" 2 3 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 2 29761: 29761: 29761: 29761: 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: class Random { 29761: private: 29761: enum : uint32_t { 29761: M = 2147483647L 29761: }; 29761: enum : uint64_t { 29761: A = 16807 29761: }; 29761: 29761: uint32_t seed_; 29761: 29761: static uint32_t GoodSeed(uint32_t s) { return (s & M) != 0 ? (s & M) : 1; } 29761: 29761: public: 29761: 29761: enum : uint32_t { kMaxNext = M }; 29761: 29761: explicit Random(uint32_t s) : seed_(GoodSeed(s)) {} 29761: 29761: void Reset(uint32_t s) { seed_ = GoodSeed(s); } 29761: 29761: uint32_t Next() { 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t product = seed_ * A; 29761: 29761: 29761: seed_ = static_cast((product >> 31) + (product & M)); 29761: 29761: 29761: 29761: if (seed_ > M) { 29761: seed_ -= M; 29761: } 29761: return seed_; 29761: } 29761: 29761: uint64_t Next64() { return (uint64_t{Next()} << 32) | Next(); } 29761: 29761: 29761: 29761: uint32_t Uniform(int n) { return Next() % n; } 29761: 29761: 29761: 29761: bool OneIn(int n) { return Uniform(n) == 0; } 29761: 29761: 29761: 29761: bool OneInOpt(int n) { return n > 0 && OneIn(n); } 29761: 29761: 29761: 29761: 29761: bool PercentTrue(int percentage) { 29761: return static_cast(Uniform(100)) < percentage; 29761: } 29761: 29761: 29761: 29761: 29761: uint32_t Skewed(int max_log) { return Uniform(1 << Uniform(max_log + 1)); } 29761: 29761: 29761: std::string RandomString(int len); 29761: 29761: 29761: std::string HumanReadableString(int len); 29761: 29761: 29761: std::string RandomBinaryString(int len); 29761: 29761: 29761: 29761: static Random* GetTLSInstance(); 29761: }; 29761: 29761: 29761: 29761: 29761: class Random32 { 29761: private: 29761: std::mt19937 generator_; 29761: 29761: public: 29761: explicit Random32(uint32_t s) : generator_(s) {} 29761: 29761: 29761: uint32_t Next() { return static_cast(generator_()); } 29761: 29761: 29761: 29761: uint32_t Uniform(uint32_t n) { 29761: return static_cast( 29761: std::uniform_int_distribution( 29761: 0, n - 1)(generator_)); 29761: } 29761: 29761: 29761: 29761: 29761: uint32_t Uniformish(uint32_t n) { 29761: 29761: return static_cast((uint64_t(generator_()) * uint64_t(n)) >> 32); 29761: } 29761: 29761: 29761: 29761: bool OneIn(uint32_t n) { return Uniform(n) == 0; } 29761: 29761: 29761: 29761: 29761: uint32_t Skewed(int max_log) { 29761: return Uniform(uint32_t{1} << Uniform(max_log + 1)); 29761: } 29761: 29761: 29761: void Seed(uint32_t new_seed) { generator_.seed(new_seed); } 29761: }; 29761: 29761: 29761: class Random64 { 29761: private: 29761: std::mt19937_64 generator_; 29761: 29761: public: 29761: explicit Random64(uint64_t s) : generator_(s) {} 29761: 29761: 29761: uint64_t Next() { return generator_(); } 29761: 29761: 29761: 29761: uint64_t Uniform(uint64_t n) { 29761: return std::uniform_int_distribution(0, n - 1)(generator_); 29761: } 29761: 29761: 29761: 29761: bool OneIn(uint64_t n) { return Uniform(n) == 0; } 29761: 29761: 29761: 29761: 29761: uint64_t Skewed(int max_log) { 29761: return Uniform(uint64_t(1) << Uniform(max_log + 1)); 29761: } 29761: }; 29761: 29761: 29761: template 29761: void RandomShuffle(RandomIt first, RandomIt last, uint32_t seed) { 29761: std::mt19937 rng(seed); 29761: std::shuffle(first, last, rng); 29761: } 29761: 29761: 29761: template 29761: void RandomShuffle(RandomIt first, RandomIt last) { 29761: RandomShuffle(first, last, std::random_device{}()); 29761: } 29761: 29761: } 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: template 29761: class CoreLocalArray { 29761: public: 29761: CoreLocalArray(); 29761: 29761: size_t Size() const; 29761: 29761: 29761: T* Access() const; 29761: 29761: 29761: 29761: std::pair AccessElementAndIndex() const; 29761: 29761: 29761: T* AccessAtCore(size_t core_idx) const; 29761: 29761: private: 29761: std::unique_ptr data_; 29761: int size_shift_; 29761: }; 29761: 29761: template 29761: CoreLocalArray::CoreLocalArray() { 29761: int num_cpus = static_cast(std::thread::hardware_concurrency()); 29761: 29761: size_shift_ = 3; 29761: while (1 << size_shift_ < num_cpus) { 29761: ++size_shift_; 29761: } 29761: data_.reset(new T[static_cast(1) << size_shift_]); 29761: } 29761: 29761: template 29761: size_t CoreLocalArray::Size() const { 29761: return static_cast(1) << size_shift_; 29761: } 29761: 29761: template 29761: T* CoreLocalArray::Access() const { 29761: return AccessElementAndIndex().first; 29761: } 29761: 29761: template 29761: std::pair CoreLocalArray::AccessElementAndIndex() const { 29761: int cpuid = port::PhysicalCoreID(); 29761: size_t core_idx; 29761: if ((__builtin_expect((cpuid < 0), 0))) { 29761: 29761: core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); 29761: } else { 29761: core_idx = static_cast(BottomNBits(cpuid, size_shift_)); 29761: } 29761: return {AccessAtCore(core_idx), core_idx}; 29761: } 29761: 29761: template 29761: T* CoreLocalArray::AccessAtCore(size_t core_idx) const { 29761: 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29761: (static_cast ( 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29761: core_idx < static_cast(1) << size_shift_ 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29761: "core_idx < static_cast(1) << size_shift_" 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29761: ; 29761: return &data_[core_idx]; 29761: } 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 1 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29761: 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29761: namespace rocksdb { 29761: 29761: namespace detail { 29761: 29761: 29761: template 29761: struct FastRangeGenericImpl { 29761: 29761: }; 29761: 29761: template 29761: struct FastRangeGenericImpl { 29761: static inline Range Fn(uint32_t hash, Range range) { 29761: static_assert(std::is_unsigned::value, "must be unsigned"); 29761: static_assert(sizeof(Range) <= sizeof(uint32_t), 29761: "cannot be larger than hash (32 bits)"); 29761: 29761: uint64_t product = uint64_t{range} * hash; 29761: return static_cast(product >> 32); 29761: } 29761: }; 29761: 29761: template 29761: struct FastRangeGenericImpl { 29761: static inline Range Fn(uint64_t hash, Range range) { 29761: static_assert(std::is_unsigned::value, "must be unsigned"); 29761: static_assert(sizeof(Range) <= sizeof(uint64_t), 29761: "cannot be larger than hash (64 bits)"); 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29761: uint64_t range64 = range; 29761: uint64_t tmp = uint64_t{range64 & 0xffffFFFF} * uint64_t{hash & 0xffffFFFF}; 29761: tmp >>= 32; 29761: tmp += uint64_t{range64 & 0xffffFFFF} * uint64_t{hash >> 32}; 29761: 29761: uint64_t tmp2 = uint64_t{range64 >> 32} * uint64_t{hash & 0xffffFFFF}; 29761: tmp += static_cast(tmp2); 29761: tmp >>= 32; 29761: tmp += (tmp2 >> 32); 29761: tmp += uint64_t{range64 >> 32} * uint64_t{hash >> 32}; 29761: return static_cast(tmp); 29761: 29761: } 29761: }; 29761: 29761: } 29761: # 96 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29761: template 29761: inline Range FastRangeGeneric(Hash hash, Range range) { 29761: return detail::FastRangeGenericImpl::Fn(hash, range); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: inline size_t FastRange64(uint64_t hash, size_t range) { 29761: return FastRangeGeneric(hash, range); 29761: } 29761: 29761: 29761: inline uint32_t FastRange32(uint32_t hash, uint32_t range) { 29761: return FastRangeGeneric(hash, range); 29761: } 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/hash.h" 1 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/hash.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: uint64_t Hash64(const char* data, size_t n, uint64_t seed); 29761: 29761: 29761: uint64_t Hash64(const char* data, size_t n); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline uint64_t NPHash64(const char* data, size_t n, uint64_t seed) { 29761: 29761: 29761: 29761: 29761: 29761: return Hash64(data, n, seed); 29761: 29761: } 29761: 29761: 29761: inline uint64_t NPHash64(const char* data, size_t n) { 29761: 29761: 29761: 29761: 29761: 29761: return Hash64(data, n); 29761: 29761: } 29761: 29761: 29761: 29761: void Hash2x64(const char* data, size_t n, uint64_t* high64, uint64_t* low64); 29761: void Hash2x64(const char* data, size_t n, uint64_t seed, uint64_t* high64, 29761: uint64_t* low64); 29761: 29761: 29761: 29761: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, 29761: uint64_t* out_high64, uint64_t* out_low64); 29761: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 29761: uint64_t* out_high64, uint64_t* out_low64); 29761: 29761: 29761: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, 29761: uint64_t* out_high64, uint64_t* out_low64); 29761: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 29761: uint64_t* out_high64, uint64_t* out_low64); 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t Hash(const char* data, size_t n, uint32_t seed); 29761: 29761: 29761: inline uint32_t BloomHash(const Slice& key) { 29761: return Hash(key.data(), key.size(), 0xbc9f1d34); 29761: } 29761: 29761: inline uint64_t GetSliceHash64(const Slice& key) { 29761: return Hash64(key.data(), key.size()); 29761: } 29761: 29761: 29761: extern uint64_t (*kGetSliceNPHash64UnseededFnPtr)(const Slice&); 29761: 29761: inline uint64_t GetSliceNPHash64(const Slice& s) { 29761: return NPHash64(s.data(), s.size()); 29761: } 29761: 29761: inline uint64_t GetSliceNPHash64(const Slice& s, uint64_t seed) { 29761: return NPHash64(s.data(), s.size(), seed); 29761: } 29761: 29761: 29761: 29761: uint64_t GetSlicePartsNPHash64(const SliceParts& data, uint64_t seed); 29761: 29761: inline size_t GetSliceRangedNPHash(const Slice& s, size_t range) { 29761: return FastRange64(NPHash64(s.data(), s.size()), range); 29761: } 29761: 29761: 29761: inline uint32_t GetSliceHash(const Slice& s) { 29761: return Hash(s.data(), s.size(), 397); 29761: } 29761: 29761: 29761: inline uint32_t Upper32of64(uint64_t v) { 29761: return static_cast(v >> 32); 29761: } 29761: inline uint32_t Lower32of64(uint64_t v) { return static_cast(v); } 29761: 29761: 29761: struct SliceHasher32 { 29761: uint32_t operator()(const Slice& s) const { return GetSliceHash(s); } 29761: }; 29761: struct SliceNPHasher64 { 29761: uint64_t operator()(const Slice& s, uint64_t seed = 0) const { 29761: return GetSliceNPHash64(s, seed); 29761: } 29761: }; 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29761: 29761: namespace rocksdb { 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29761: class MutexLock { 29761: public: 29761: explicit MutexLock(port::Mutex *mu) : mu_(mu) { this->mu_->Lock(); } 29761: 29761: MutexLock(const MutexLock &) = delete; 29761: void operator=(const MutexLock &) = delete; 29761: 29761: ~MutexLock() { this->mu_->Unlock(); } 29761: 29761: private: 29761: port::Mutex *const mu_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class ReadLock { 29761: public: 29761: explicit ReadLock(port::RWMutex *mu) : mu_(mu) { this->mu_->ReadLock(); } 29761: 29761: ReadLock(const ReadLock &) = delete; 29761: void operator=(const ReadLock &) = delete; 29761: 29761: ~ReadLock() { this->mu_->ReadUnlock(); } 29761: 29761: private: 29761: port::RWMutex *const mu_; 29761: }; 29761: 29761: 29761: 29761: 29761: class ReadUnlock { 29761: public: 29761: explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); } 29761: 29761: ReadUnlock(const ReadUnlock &) = delete; 29761: ReadUnlock &operator=(const ReadUnlock &) = delete; 29761: 29761: ~ReadUnlock() { mu_->ReadUnlock(); } 29761: 29761: private: 29761: port::RWMutex *const mu_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class WriteLock { 29761: public: 29761: explicit WriteLock(port::RWMutex *mu) : mu_(mu) { this->mu_->WriteLock(); } 29761: 29761: WriteLock(const WriteLock &) = delete; 29761: void operator=(const WriteLock &) = delete; 29761: 29761: ~WriteLock() { this->mu_->WriteUnlock(); } 29761: 29761: private: 29761: port::RWMutex *const mu_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class SpinMutex { 29761: public: 29761: SpinMutex() : locked_(false) {} 29761: 29761: bool try_lock() { 29761: auto currently_locked = locked_.load(std::memory_order_relaxed); 29761: return !currently_locked && 29761: locked_.compare_exchange_weak(currently_locked, true, 29761: std::memory_order_acquire, 29761: std::memory_order_relaxed); 29761: } 29761: 29761: void lock() { 29761: for (size_t tries = 0;; ++tries) { 29761: if (try_lock()) { 29761: 29761: break; 29761: } 29761: port::AsmVolatilePause(); 29761: if (tries > 100) { 29761: std::this_thread::yield(); 29761: } 29761: } 29761: } 29761: 29761: void unlock() { locked_.store(false, std::memory_order_release); } 29761: 29761: private: 29761: std::atomic locked_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct alignas(64U) CacheAlignedWrapper { 29761: T obj_; 29761: }; 29761: template 29761: struct Unwrap { 29761: using type = T; 29761: static type &Go(T &t) { return t; } 29761: }; 29761: template 29761: struct Unwrap> { 29761: using type = T; 29761: static type &Go(CacheAlignedWrapper &t) { return t.obj_; } 29761: }; 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29761: template 29761: class Striped { 29761: public: 29761: explicit Striped(size_t stripe_count) 29761: : stripe_count_(stripe_count), data_(new T[stripe_count]) {} 29761: 29761: using Unwrapped = typename Unwrap::type; 29761: Unwrapped &Get(const Key &key, uint64_t seed = 0) { 29761: size_t index = FastRangeGeneric(hash_(key, seed), stripe_count_); 29761: return Unwrap::Go(data_[index]); 29761: } 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: 29761: 29761: return sizeof(*this) + stripe_count_ * sizeof(T); 29761: } 29761: 29761: private: 29761: size_t stripe_count_; 29761: std::unique_ptr data_; 29761: Hash hash_; 29761: }; 29761: 29761: } 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 29761: namespace rocksdb { 29761: 29761: enum TickersInternal : uint32_t { 29761: INTERNAL_TICKER_ENUM_START = TICKER_ENUM_MAX, 29761: INTERNAL_TICKER_ENUM_MAX 29761: }; 29761: 29761: enum HistogramsInternal : uint32_t { 29761: INTERNAL_HISTOGRAM_START = HISTOGRAM_ENUM_MAX, 29761: INTERNAL_HISTOGRAM_ENUM_MAX 29761: }; 29761: 29761: class StatisticsImpl : public Statistics { 29761: public: 29761: StatisticsImpl(std::shared_ptr stats); 29761: virtual ~StatisticsImpl(); 29761: const char* Name() const override { return kClassName(); } 29761: static const char* kClassName() { return "BasicStatistics"; } 29761: 29761: uint64_t getTickerCount(uint32_t ticker_type) const override; 29761: void histogramData(uint32_t histogram_type, 29761: HistogramData* const data) const override; 29761: std::string getHistogramString(uint32_t histogram_type) const override; 29761: 29761: void setTickerCount(uint32_t ticker_type, uint64_t count) override; 29761: uint64_t getAndResetTickerCount(uint32_t ticker_type) override; 29761: void recordTick(uint32_t ticker_type, uint64_t count) override; 29761: 29761: 29761: 29761: 29761: void measureTime(uint32_t histogramType, uint64_t time) override { 29761: recordInHistogram(histogramType, time); 29761: } 29761: void recordInHistogram(uint32_t histogram_type, uint64_t value) override; 29761: 29761: Status Reset() override; 29761: std::string ToString() const override; 29761: bool getTickerMap(std::map*) const override; 29761: bool HistEnabledForType(uint32_t type) const override; 29761: 29761: const Customizable* Inner() const override { return stats_.get(); } 29761: 29761: private: 29761: 29761: std::shared_ptr stats_; 29761: 29761: 29761: mutable port::Mutex aggregate_lock_; 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct alignas(64U) StatisticsData { 29761: std::atomic_uint_fast64_t tickers_[INTERNAL_TICKER_ENUM_MAX] = {{0}}; 29761: HistogramImpl histograms_[INTERNAL_HISTOGRAM_ENUM_MAX]; 29761: 29761: char 29761: padding[(64U - 29761: (INTERNAL_TICKER_ENUM_MAX * sizeof(std::atomic_uint_fast64_t) + 29761: INTERNAL_HISTOGRAM_ENUM_MAX * sizeof(HistogramImpl)) % 29761: 64U)] ; 29761: 29761: void* operator new(size_t s) { return port::cacheline_aligned_alloc(s); } 29761: void* operator new[](size_t s) { return port::cacheline_aligned_alloc(s); } 29761: void operator delete(void* p) { port::cacheline_aligned_free(p); } 29761: void operator delete[](void* p) { port::cacheline_aligned_free(p); } 29761: }; 29761: 29761: 29761: static_assert(sizeof(StatisticsData) % 64U == 0, 29761: "Expected " "64U" "-byte aligned"); 29761: 29761: 29761: CoreLocalArray per_core_stats_; 29761: 29761: uint64_t getTickerCountLocked(uint32_t ticker_type) const; 29761: std::unique_ptr getHistogramImplLocked( 29761: uint32_t histogram_type) const; 29761: void setTickerCountLocked(uint32_t ticker_type, uint64_t count); 29761: }; 29761: 29761: 29761: inline void RecordInHistogram(Statistics* statistics, uint32_t histogram_type, 29761: uint64_t value) { 29761: if (statistics) { 29761: statistics->recordInHistogram(histogram_type, value); 29761: } 29761: } 29761: 29761: inline void RecordTimeToHistogram(Statistics* statistics, 29761: uint32_t histogram_type, uint64_t value) { 29761: if (statistics) { 29761: statistics->reportTimeToHistogram(histogram_type, value); 29761: } 29761: } 29761: 29761: inline void RecordTick(Statistics* statistics, uint32_t ticker_type, 29761: uint64_t count = 1) { 29761: if (statistics) { 29761: statistics->recordTick(ticker_type, count); 29761: } 29761: } 29761: 29761: inline void SetTickerCount(Statistics* statistics, uint32_t ticker_type, 29761: uint64_t count) { 29761: if (statistics) { 29761: statistics->setTickerCount(ticker_type, count); 29761: } 29761: } 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/chrono" 1 3 29761: # 33 "/usr/include/c++/14/chrono" 3 29761: 29761: # 34 "/usr/include/c++/14/chrono" 3 29761: # 55 "/usr/include/c++/14/chrono" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 56 "/usr/include/c++/14/chrono" 2 3 29761: 29761: 29761: # 57 "/usr/include/c++/14/chrono" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 74 "/usr/include/c++/14/chrono" 3 29761: namespace chrono 29761: { 29761: # 3328 "/usr/include/c++/14/chrono" 3 29761: } 29761: # 3356 "/usr/include/c++/14/chrono" 3 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 2 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29761: 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29761: namespace rocksdb { 29761: struct ConfigOptions; 29761: 29761: 29761: 29761: class SystemClock : public Customizable { 29761: public: 29761: ~SystemClock() override {} 29761: 29761: static const char* Type() { return "SystemClock"; } 29761: static Status CreateFromString(const ConfigOptions& options, 29761: const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: 29761: static const char* kDefaultName() { return "DefaultClock"; } 29761: 29761: 29761: 29761: static const std::shared_ptr& Default(); 29761: 29761: 29761: 29761: 29761: virtual uint64_t NowMicros() = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 29761: 29761: 29761: 29761: virtual uint64_t CPUMicros() { return 0; } 29761: 29761: 29761: 29761: 29761: virtual uint64_t CPUNanos() { return CPUMicros() * 1000; } 29761: 29761: 29761: virtual void SleepForMicroseconds(int micros) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool TimedWait(port::CondVar* cv, std::chrono::microseconds deadline); 29761: 29761: 29761: 29761: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 29761: 29761: 29761: virtual std::string TimeToString(uint64_t time) = 0; 29761: }; 29761: 29761: 29761: 29761: class SystemClockWrapper : public SystemClock { 29761: public: 29761: explicit SystemClockWrapper(const std::shared_ptr& t); 29761: 29761: uint64_t NowMicros() override { return target_->NowMicros(); } 29761: 29761: uint64_t NowNanos() override { return target_->NowNanos(); } 29761: 29761: uint64_t CPUMicros() override { return target_->CPUMicros(); } 29761: 29761: uint64_t CPUNanos() override { return target_->CPUNanos(); } 29761: 29761: void SleepForMicroseconds(int micros) override { 29761: return target_->SleepForMicroseconds(micros); 29761: } 29761: 29761: bool TimedWait(port::CondVar* cv, 29761: std::chrono::microseconds deadline) override { 29761: return target_->TimedWait(cv, deadline); 29761: } 29761: 29761: Status GetCurrentTime(int64_t* unix_time) override { 29761: return target_->GetCurrentTime(unix_time); 29761: } 29761: 29761: std::string TimeToString(uint64_t time) override { 29761: return target_->TimeToString(time); 29761: } 29761: 29761: Status PrepareOptions(const ConfigOptions& options) override; 29761: std::string SerializeOptions(const ConfigOptions& config_options, 29761: const std::string& header) const override; 29761: const Customizable* Inner() const override { return target_.get(); } 29761: 29761: protected: 29761: std::shared_ptr target_; 29761: }; 29761: 29761: } 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class PerfStepTimer { 29761: public: 29761: explicit PerfStepTimer( 29761: uint64_t* metric, SystemClock* clock = nullptr, bool use_cpu_time = false, 29761: PerfLevel enable_level = PerfLevel::kEnableTimeExceptForMutex, 29761: Statistics* statistics = nullptr, uint32_t ticker_type = 0) 29761: : perf_counter_enabled_(perf_level >= enable_level), 29761: use_cpu_time_(use_cpu_time), 29761: ticker_type_(ticker_type), 29761: clock_((perf_counter_enabled_ || statistics != nullptr) 29761: ? (clock ? clock : SystemClock::Default().get()) 29761: : nullptr), 29761: start_(0), 29761: metric_(metric), 29761: statistics_(statistics) {} 29761: 29761: ~PerfStepTimer() { Stop(); } 29761: 29761: void Start() { 29761: if (perf_counter_enabled_ || statistics_ != nullptr) { 29761: start_ = time_now(); 29761: } 29761: } 29761: 29761: void Measure() { 29761: if (start_) { 29761: uint64_t now = time_now(); 29761: *metric_ += now - start_; 29761: start_ = now; 29761: } 29761: } 29761: 29761: void Stop() { 29761: if (start_) { 29761: uint64_t duration = time_now() - start_; 29761: if (perf_counter_enabled_) { 29761: *metric_ += duration; 29761: } 29761: 29761: if (statistics_ != nullptr) { 29761: RecordTick(statistics_, ticker_type_, duration); 29761: } 29761: start_ = 0; 29761: } 29761: } 29761: 29761: private: 29761: uint64_t time_now() { 29761: if (!use_cpu_time_) { 29761: return clock_->NowNanos(); 29761: } else { 29761: return clock_->CPUNanos(); 29761: } 29761: } 29761: 29761: const bool perf_counter_enabled_; 29761: const bool use_cpu_time_; 29761: uint32_t ticker_type_; 29761: SystemClock* const clock_; 29761: uint64_t start_; 29761: uint64_t* metric_; 29761: Statistics* statistics_; 29761: }; 29761: 29761: } 29761: # 8 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29761: namespace rocksdb { 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29761: struct PerfContextByLevelBase { 29761: 29761: 29761: 29761: uint64_t bloom_filter_useful = 0; 29761: 29761: uint64_t bloom_filter_full_positive = 0; 29761: 29761: 29761: uint64_t bloom_filter_full_true_positive = 0; 29761: 29761: 29761: 29761: uint64_t user_key_return_count = 0; 29761: 29761: 29761: uint64_t get_from_table_nanos = 0; 29761: 29761: uint64_t block_cache_hit_count = 0; 29761: uint64_t block_cache_miss_count = 0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct PerfContextByLevel : public PerfContextByLevelBase { 29761: void Reset(); 29761: }; 29761: # 67 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29761: struct PerfContextBase { 29761: uint64_t user_key_comparison_count; 29761: uint64_t block_cache_hit_count; 29761: uint64_t block_read_count; 29761: uint64_t block_read_byte; 29761: uint64_t block_read_time; 29761: 29761: uint64_t block_read_cpu_time; 29761: uint64_t block_cache_index_hit_count; 29761: 29761: uint64_t block_cache_standalone_handle_count; 29761: 29761: 29761: uint64_t block_cache_real_handle_count; 29761: uint64_t index_block_read_count; 29761: uint64_t block_cache_filter_hit_count; 29761: uint64_t filter_block_read_count; 29761: uint64_t compression_dict_block_read_count; 29761: 29761: 29761: uint64_t block_cache_index_read_byte; 29761: uint64_t block_cache_filter_read_byte; 29761: uint64_t block_cache_compression_dict_read_byte; 29761: uint64_t block_cache_read_byte; 29761: 29761: uint64_t secondary_cache_hit_count; 29761: 29761: uint64_t compressed_sec_cache_insert_real_count; 29761: 29761: uint64_t compressed_sec_cache_insert_dummy_count; 29761: 29761: uint64_t compressed_sec_cache_uncompressed_bytes; 29761: 29761: uint64_t compressed_sec_cache_compressed_bytes; 29761: 29761: uint64_t block_checksum_time; 29761: uint64_t block_decompress_time; 29761: 29761: uint64_t get_read_bytes; 29761: uint64_t multiget_read_bytes; 29761: uint64_t iter_read_bytes; 29761: 29761: uint64_t blob_cache_hit_count; 29761: uint64_t blob_read_count; 29761: uint64_t blob_read_byte; 29761: uint64_t blob_read_time; 29761: uint64_t blob_checksum_time; 29761: uint64_t blob_decompress_time; 29761: # 133 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29761: uint64_t internal_key_skipped_count; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t internal_delete_skipped_count; 29761: 29761: 29761: 29761: uint64_t internal_recent_skipped_count; 29761: 29761: 29761: 29761: uint64_t internal_merge_count; 29761: 29761: 29761: 29761: uint64_t internal_merge_point_lookup_count; 29761: 29761: 29761: 29761: uint64_t internal_range_del_reseek_count; 29761: 29761: uint64_t get_snapshot_time; 29761: uint64_t get_from_memtable_time; 29761: uint64_t get_from_memtable_count; 29761: 29761: uint64_t get_post_process_time; 29761: uint64_t get_from_output_files_time; 29761: 29761: uint64_t seek_on_memtable_time; 29761: 29761: 29761: uint64_t seek_on_memtable_count; 29761: 29761: uint64_t next_on_memtable_count; 29761: 29761: uint64_t prev_on_memtable_count; 29761: 29761: uint64_t seek_child_seek_time; 29761: 29761: uint64_t seek_child_seek_count; 29761: uint64_t seek_min_heap_time; 29761: uint64_t seek_max_heap_time; 29761: 29761: uint64_t seek_internal_seek_time; 29761: 29761: uint64_t find_next_user_entry_time; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t write_wal_time; 29761: 29761: uint64_t write_memtable_time; 29761: 29761: uint64_t write_delay_time; 29761: 29761: 29761: uint64_t write_scheduling_flushes_compactions_time; 29761: 29761: uint64_t write_pre_and_post_process_time; 29761: 29761: 29761: uint64_t write_thread_wait_nanos; 29761: 29761: 29761: uint64_t db_mutex_lock_nanos; 29761: 29761: uint64_t db_condition_wait_nanos; 29761: 29761: uint64_t merge_operator_time_nanos; 29761: 29761: 29761: uint64_t read_index_block_nanos; 29761: 29761: uint64_t read_filter_block_nanos; 29761: 29761: uint64_t new_table_block_iter_nanos; 29761: 29761: uint64_t new_table_iterator_nanos; 29761: 29761: uint64_t block_seek_nanos; 29761: 29761: uint64_t find_table_nanos; 29761: 29761: uint64_t bloom_memtable_hit_count; 29761: 29761: uint64_t bloom_memtable_miss_count; 29761: 29761: uint64_t bloom_sst_hit_count; 29761: 29761: uint64_t bloom_sst_miss_count; 29761: 29761: 29761: uint64_t key_lock_wait_time; 29761: 29761: uint64_t key_lock_wait_count; 29761: 29761: 29761: 29761: uint64_t env_new_sequential_file_nanos; 29761: uint64_t env_new_random_access_file_nanos; 29761: uint64_t env_new_writable_file_nanos; 29761: uint64_t env_reuse_writable_file_nanos; 29761: uint64_t env_new_random_rw_file_nanos; 29761: uint64_t env_new_directory_nanos; 29761: uint64_t env_file_exists_nanos; 29761: uint64_t env_get_children_nanos; 29761: uint64_t env_get_children_file_attributes_nanos; 29761: uint64_t env_delete_file_nanos; 29761: uint64_t env_create_dir_nanos; 29761: uint64_t env_create_dir_if_missing_nanos; 29761: uint64_t env_delete_dir_nanos; 29761: uint64_t env_get_file_size_nanos; 29761: uint64_t env_get_file_modification_time_nanos; 29761: uint64_t env_rename_file_nanos; 29761: uint64_t env_link_file_nanos; 29761: uint64_t env_lock_file_nanos; 29761: uint64_t env_unlock_file_nanos; 29761: uint64_t env_new_logger_nanos; 29761: 29761: uint64_t get_cpu_nanos; 29761: uint64_t iter_next_cpu_nanos; 29761: uint64_t iter_prev_cpu_nanos; 29761: uint64_t iter_seek_cpu_nanos; 29761: 29761: 29761: 29761: 29761: uint64_t iter_next_count; 29761: uint64_t iter_prev_count; 29761: uint64_t iter_seek_count; 29761: 29761: 29761: uint64_t encrypt_data_nanos; 29761: 29761: uint64_t decrypt_data_nanos; 29761: 29761: uint64_t number_async_seek; 29761: }; 29761: 29761: struct PerfContext : public PerfContextBase { 29761: ~PerfContext(); 29761: 29761: PerfContext() { Reset(); } 29761: 29761: PerfContext(const PerfContext&); 29761: PerfContext& operator=(const PerfContext&); 29761: PerfContext(PerfContext&&) noexcept; 29761: 29761: void Reset(); 29761: 29761: std::string ToString(bool exclude_zero_counters = false) const; 29761: 29761: 29761: void EnablePerLevelPerfContext(); 29761: 29761: 29761: void DisablePerLevelPerfContext(); 29761: 29761: 29761: void ClearPerLevelPerfContext(); 29761: 29761: std::map* level_to_perf_context = nullptr; 29761: bool per_level_perf_context_enabled = false; 29761: 29761: void copyMetrics(const PerfContext* other) noexcept; 29761: }; 29761: # 317 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29761: PerfContext* get_perf_context(); 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/stop_watch.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class StopWatch { 29761: public: 29761: StopWatch(SystemClock* clock, Statistics* statistics, 29761: const uint32_t hist_type_1, 29761: const uint32_t hist_type_2 = Histograms::HISTOGRAM_ENUM_MAX, 29761: uint64_t* elapsed = nullptr, bool overwrite = true, 29761: bool delay_enabled = false) 29761: : clock_(clock), 29761: statistics_(statistics), 29761: hist_type_1_(statistics && statistics->HistEnabledForType(hist_type_1) 29761: ? hist_type_1 29761: : Histograms::HISTOGRAM_ENUM_MAX), 29761: hist_type_2_(statistics && statistics->HistEnabledForType(hist_type_2) 29761: ? hist_type_2 29761: : Histograms::HISTOGRAM_ENUM_MAX), 29761: elapsed_(elapsed), 29761: overwrite_(overwrite), 29761: stats_enabled_(statistics && 29761: statistics->get_stats_level() > 29761: StatsLevel::kExceptTimers && 29761: (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX || 29761: hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX)), 29761: delay_enabled_(delay_enabled), 29761: total_delay_(0), 29761: delay_start_time_(0), 29761: start_time_((stats_enabled_ || elapsed != nullptr) ? clock->NowMicros() 29761: : 0) {} 29761: 29761: ~StopWatch() { 29761: if (elapsed_) { 29761: if (overwrite_) { 29761: *elapsed_ = clock_->NowMicros() - start_time_; 29761: } else { 29761: *elapsed_ += clock_->NowMicros() - start_time_; 29761: } 29761: } 29761: if (elapsed_ && delay_enabled_) { 29761: *elapsed_ -= total_delay_; 29761: } 29761: if (stats_enabled_) { 29761: const auto time = (elapsed_ != nullptr) 29761: ? *elapsed_ 29761: : (clock_->NowMicros() - start_time_); 29761: if (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX) { 29761: statistics_->reportTimeToHistogram(hist_type_1_, time); 29761: } 29761: if (hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX) { 29761: statistics_->reportTimeToHistogram(hist_type_2_, time); 29761: } 29761: } 29761: } 29761: 29761: void DelayStart() { 29761: 29761: 29761: if (elapsed_ && delay_enabled_ && delay_start_time_ == 0) { 29761: delay_start_time_ = clock_->NowMicros(); 29761: } 29761: } 29761: 29761: void DelayStop() { 29761: if (elapsed_ && delay_enabled_ && delay_start_time_ != 0) { 29761: total_delay_ += clock_->NowMicros() - delay_start_time_; 29761: } 29761: 29761: 29761: delay_start_time_ = 0; 29761: } 29761: 29761: uint64_t GetDelay() const { return delay_enabled_ ? total_delay_ : 0; } 29761: 29761: uint64_t start_time() const { return start_time_; } 29761: 29761: private: 29761: SystemClock* clock_; 29761: Statistics* statistics_; 29761: const uint32_t hist_type_1_; 29761: const uint32_t hist_type_2_; 29761: uint64_t* elapsed_; 29761: bool overwrite_; 29761: bool stats_enabled_; 29761: bool delay_enabled_; 29761: uint64_t total_delay_; 29761: uint64_t delay_start_time_; 29761: const uint64_t start_time_; 29761: }; 29761: 29761: 29761: class StopWatchNano { 29761: public: 29761: explicit StopWatchNano(SystemClock* clock, bool auto_start = false) 29761: : clock_(clock), start_(0) { 29761: if (auto_start) { 29761: Start(); 29761: } 29761: } 29761: 29761: void Start() { start_ = clock_->NowNanos(); } 29761: 29761: uint64_t ElapsedNanos(bool reset = false) { 29761: auto now = clock_->NowNanos(); 29761: auto elapsed = now - start_; 29761: if (reset) { 29761: start_ = now; 29761: } 29761: return elapsed; 29761: } 29761: 29761: uint64_t ElapsedNanosSafe(bool reset = false) { 29761: return (clock_ != nullptr) ? ElapsedNanos(reset) : 0U; 29761: } 29761: 29761: bool IsStarted() { return start_ != 0; } 29761: 29761: private: 29761: SystemClock* clock_; 29761: uint64_t start_; 29761: }; 29761: 29761: } 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern thread_local PerfContext perf_context; 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: class UserComparatorWrapper { 29761: public: 29761: 29761: 29761: UserComparatorWrapper() : user_comparator_(nullptr) {} 29761: 29761: explicit UserComparatorWrapper(const Comparator* const user_cmp) 29761: : user_comparator_(user_cmp) {} 29761: 29761: ~UserComparatorWrapper() = default; 29761: 29761: const Comparator* user_comparator() const { return user_comparator_; } 29761: 29761: int Compare(const Slice& a, const Slice& b) const { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29761: return user_comparator_->Compare(a, b); 29761: } 29761: 29761: bool Equal(const Slice& a, const Slice& b) const { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29761: return user_comparator_->Equal(a, b); 29761: } 29761: 29761: int CompareTimestamp(const Slice& ts1, const Slice& ts2) const { 29761: return user_comparator_->CompareTimestamp(ts1, ts2); 29761: } 29761: 29761: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29761: return user_comparator_->CompareWithoutTimestamp(a, b); 29761: } 29761: 29761: int CompareWithoutTimestamp(const Slice& a, bool a_has_ts, const Slice& b, 29761: bool b_has_ts) const { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29761: return user_comparator_->CompareWithoutTimestamp(a, a_has_ts, b, b_has_ts); 29761: } 29761: 29761: bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 29761: return user_comparator_->EqualWithoutTimestamp(a, b); 29761: } 29761: 29761: private: 29761: const Comparator* user_comparator_; 29761: }; 29761: 29761: } 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class InternalKey; 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum ValueType : unsigned char { 29761: kTypeDeletion = 0x0, 29761: kTypeValue = 0x1, 29761: kTypeMerge = 0x2, 29761: kTypeLogData = 0x3, 29761: kTypeColumnFamilyDeletion = 0x4, 29761: kTypeColumnFamilyValue = 0x5, 29761: kTypeColumnFamilyMerge = 0x6, 29761: kTypeSingleDeletion = 0x7, 29761: kTypeColumnFamilySingleDeletion = 0x8, 29761: kTypeBeginPrepareXID = 0x9, 29761: kTypeEndPrepareXID = 0xA, 29761: kTypeCommitXID = 0xB, 29761: kTypeRollbackXID = 0xC, 29761: kTypeNoop = 0xD, 29761: kTypeColumnFamilyRangeDeletion = 0xE, 29761: kTypeRangeDeletion = 0xF, 29761: kTypeColumnFamilyBlobIndex = 0x10, 29761: kTypeBlobIndex = 0x11, 29761: 29761: 29761: 29761: 29761: kTypeBeginPersistedPrepareXID = 0x12, 29761: 29761: 29761: 29761: kTypeBeginUnprepareXID = 0x13, 29761: kTypeDeletionWithTimestamp = 0x14, 29761: kTypeCommitXIDAndTimestamp = 0x15, 29761: kTypeWideColumnEntity = 0x16, 29761: kTypeColumnFamilyWideColumnEntity = 0x17, 29761: kTypeValuePreferredSeqno = 0x18, 29761: kTypeColumnFamilyValuePreferredSeqno = 0x19, 29761: kTypeMaxValid, 29761: 29761: kMaxValue = 0x7F 29761: }; 29761: 29761: 29761: extern const ValueType kValueTypeForSeek; 29761: extern const ValueType kValueTypeForSeekForPrev; 29761: 29761: 29761: 29761: struct UserKeyRange { 29761: 29761: 29761: Slice start; 29761: Slice limit; 29761: 29761: UserKeyRange() = default; 29761: UserKeyRange(const Slice& s, const Slice& l) : start(s), limit(l) {} 29761: }; 29761: 29761: 29761: 29761: struct UserKeyRangePtr { 29761: 29761: 29761: 29761: std::optional start; 29761: 29761: std::optional limit; 29761: 29761: UserKeyRangePtr(const std::optional& s, const std::optional& l) 29761: : start(s), limit(l) {} 29761: }; 29761: 29761: 29761: 29761: inline bool IsValueType(ValueType t) { 29761: return t <= kTypeMerge || kTypeSingleDeletion == t || kTypeBlobIndex == t || 29761: kTypeDeletionWithTimestamp == t || kTypeWideColumnEntity == t || 29761: kTypeValuePreferredSeqno == t; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: inline bool IsExtendedValueType(ValueType t) { 29761: return IsValueType(t) || t == kTypeRangeDeletion || t == kTypeMaxValid; 29761: } 29761: 29761: 29761: 29761: static const SequenceNumber kMaxSequenceNumber = ((0x1ull << 56) - 1); 29761: 29761: static const SequenceNumber kDisableGlobalSequenceNumber = 29761: std::numeric_limits::max(); 29761: 29761: constexpr uint64_t kNumInternalBytes = 8; 29761: 29761: 29761: extern const std::string kDisableUserTimestamp; 29761: 29761: 29761: 29761: struct ParsedInternalKey { 29761: Slice user_key; 29761: SequenceNumber sequence; 29761: ValueType type; 29761: 29761: ParsedInternalKey() 29761: : sequence(kMaxSequenceNumber), 29761: type(kTypeDeletion) 29761: {} 29761: 29761: ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) 29761: : user_key(u), sequence(seq), type(t) {} 29761: std::string DebugString(bool log_err_key, bool hex, 29761: const Comparator* ucmp = nullptr) const; 29761: 29761: void clear() { 29761: user_key.clear(); 29761: sequence = 0; 29761: type = kTypeDeletion; 29761: } 29761: 29761: void SetTimestamp(const Slice& ts) { 29761: 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts.size() <= user_key.size() 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts.size() <= user_key.size()" 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: const char* addr = user_key.data() + user_key.size() - ts.size(); 29761: memcpy(const_cast(addr), ts.data(), ts.size()); 29761: } 29761: 29761: Slice GetTimestamp(size_t ts_sz) { 29761: 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts_sz <= user_key.size() 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts_sz <= user_key.size()" 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: const char* addr = user_key.data() + user_key.size() - ts_sz; 29761: return Slice(const_cast(addr), ts_sz); 29761: } 29761: }; 29761: 29761: 29761: inline size_t InternalKeyEncodingLength(const ParsedInternalKey& key) { 29761: return key.user_key.size() + kNumInternalBytes; 29761: } 29761: 29761: 29761: inline uint64_t PackSequenceAndType(uint64_t seq, ValueType t) { 29761: 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: seq <= kMaxSequenceNumber 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "seq <= kMaxSequenceNumber" 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: 29761: 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: IsExtendedValueType(t) || t == kTypeMaxValid 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "IsExtendedValueType(t) || t == kTypeMaxValid" 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return (seq << 8) | t; 29761: } 29761: 29761: 29761: 29761: inline void UnPackSequenceAndType(uint64_t packed, uint64_t* seq, 29761: ValueType* t) { 29761: *seq = packed >> 8; 29761: *t = static_cast(packed & 0xff); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: const uint64_t kRangeTombstoneSentinel = 29761: PackSequenceAndType(kMaxSequenceNumber, kTypeRangeDeletion); 29761: 29761: EntryType GetEntryType(ValueType value_type); 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendInternalKey(std::string* result, const ParsedInternalKey& key); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendInternalKeyWithDifferentTimestamp(std::string* result, 29761: const ParsedInternalKey& key, 29761: const Slice& ts); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendUserKeyWithDifferentTimestamp(std::string* result, const Slice& key, 29761: const Slice& ts); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendInternalKeyFooter(std::string* result, SequenceNumber s, 29761: ValueType t); 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendKeyWithMinTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendKeyWithMaxTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendUserKeyWithMinTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendUserKeyWithMaxTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: # 281 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: void PadInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: void PadInternalKeyWithMaxTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: # 301 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: void StripTimestampFromInternalKey(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: # 311 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: void ReplaceInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: 29761: 29761: 29761: 29761: 29761: Status ParseInternalKey(const Slice& internal_key, ParsedInternalKey* result, 29761: bool log_err_key); 29761: 29761: 29761: 29761: 29761: 29761: inline Slice ExtractUserKey(const Slice& internal_key) { 29761: 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: internal_key.size() >= kNumInternalBytes 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "internal_key.size() >= kNumInternalBytes" 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(internal_key.data(), internal_key.size() - kNumInternalBytes); 29761: } 29761: 29761: 29761: 29761: inline Slice ExtractUserKeyAndStripTimestamp(const Slice& internal_key, 29761: size_t ts_sz) { 29761: 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: internal_key.size() >= kNumInternalBytes + ts_sz 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "internal_key.size() >= kNumInternalBytes + ts_sz" 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(internal_key.data(), 29761: internal_key.size() - (kNumInternalBytes + ts_sz)); 29761: } 29761: 29761: 29761: 29761: inline Slice StripTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 29761: 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: user_key.size() >= ts_sz 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "user_key.size() >= ts_sz" 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(user_key.data(), user_key.size() - ts_sz); 29761: } 29761: 29761: 29761: 29761: inline Slice ExtractTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 29761: 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: user_key.size() >= ts_sz 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "user_key.size() >= ts_sz" 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(user_key.data() + user_key.size() - ts_sz, ts_sz); 29761: } 29761: 29761: 29761: 29761: inline Slice ExtractTimestampFromKey(const Slice& internal_key, size_t ts_sz) { 29761: const size_t key_size = internal_key.size(); 29761: 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_size >= kNumInternalBytes + ts_sz 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_size >= kNumInternalBytes + ts_sz" 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(internal_key.data() + key_size - ts_sz - kNumInternalBytes, 29761: ts_sz); 29761: } 29761: 29761: 29761: 29761: inline uint64_t ExtractInternalKeyFooter(const Slice& internal_key) { 29761: 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: internal_key.size() >= kNumInternalBytes 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "internal_key.size() >= kNumInternalBytes" 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: const size_t n = internal_key.size(); 29761: return DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29761: } 29761: 29761: 29761: 29761: inline ValueType ExtractValueType(const Slice& internal_key) { 29761: uint64_t num = ExtractInternalKeyFooter(internal_key); 29761: unsigned char c = num & 0xff; 29761: return static_cast(c); 29761: } 29761: 29761: 29761: 29761: class InternalKeyComparator 29761: 29761: 29761: 29761: : public CompareInterface { 29761: private: 29761: UserComparatorWrapper user_comparator_; 29761: 29761: public: 29761: 29761: 29761: InternalKeyComparator() = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit InternalKeyComparator(const Comparator* c) : user_comparator_(c) {} 29761: virtual ~InternalKeyComparator() {} 29761: 29761: int Compare(const Slice& a, const Slice& b) const override; 29761: 29761: bool Equal(const Slice& a, const Slice& b) const { 29761: 29761: 29761: return Compare(a, b) == 0; 29761: } 29761: 29761: 29761: int CompareKeySeq(const Slice& a, const Slice& b) const; 29761: int CompareKeySeq(const ParsedInternalKey& a, const Slice& b) const; 29761: 29761: const Comparator* user_comparator() const { 29761: return user_comparator_.user_comparator(); 29761: } 29761: 29761: int Compare(const InternalKey& a, const InternalKey& b) const; 29761: int Compare(const ParsedInternalKey& a, const ParsedInternalKey& b) const; 29761: int Compare(const Slice& a, const ParsedInternalKey& b) const; 29761: int Compare(const ParsedInternalKey& a, const Slice& b) const; 29761: 29761: 29761: 29761: 29761: int Compare(const Slice& a, SequenceNumber a_global_seqno, const Slice& b, 29761: SequenceNumber b_global_seqno) const; 29761: }; 29761: 29761: 29761: class InternalKey { 29761: private: 29761: std::string rep_; 29761: 29761: public: 29761: InternalKey() {} 29761: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t) { 29761: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, s, t)); 29761: } 29761: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t, Slice ts) { 29761: AppendInternalKeyWithDifferentTimestamp( 29761: &rep_, ParsedInternalKey(_user_key, s, t), ts); 29761: } 29761: 29761: 29761: 29761: void SetMaxPossibleForUserKey(const Slice& _user_key) { 29761: AppendInternalKey( 29761: &rep_, ParsedInternalKey(_user_key, 0, static_cast(0))); 29761: } 29761: 29761: 29761: 29761: void SetMinPossibleForUserKey(const Slice& _user_key) { 29761: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, kMaxSequenceNumber, 29761: kValueTypeForSeek)); 29761: } 29761: 29761: bool Valid() const { 29761: ParsedInternalKey parsed; 29761: return (ParseInternalKey(Slice(rep_), &parsed, false ) 29761: .ok()); 29761: } 29761: 29761: void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } 29761: Slice Encode() const { 29761: 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: !rep_.empty() 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "!rep_.empty()" 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return rep_; 29761: } 29761: 29761: Slice user_key() const { return ExtractUserKey(rep_); } 29761: size_t size() const { return rep_.size(); } 29761: 29761: void Set(const Slice& _user_key, SequenceNumber s, ValueType t) { 29761: SetFrom(ParsedInternalKey(_user_key, s, t)); 29761: } 29761: 29761: void Set(const Slice& _user_key_with_ts, SequenceNumber s, ValueType t, 29761: const Slice& ts) { 29761: ParsedInternalKey pik(_user_key_with_ts, s, t); 29761: 29761: 29761: SetFrom(pik, ts); 29761: } 29761: 29761: void SetFrom(const ParsedInternalKey& p) { 29761: rep_.clear(); 29761: AppendInternalKey(&rep_, p); 29761: } 29761: 29761: void SetFrom(const ParsedInternalKey& p, const Slice& ts) { 29761: rep_.clear(); 29761: AppendInternalKeyWithDifferentTimestamp(&rep_, p, ts); 29761: } 29761: 29761: void Clear() { rep_.clear(); } 29761: 29761: 29761: 29761: std::string* rep() { return &rep_; } 29761: 29761: 29761: 29761: void ConvertFromUserKey(SequenceNumber s, ValueType t) { 29761: AppendInternalKeyFooter(&rep_, s, t); 29761: } 29761: 29761: std::string DebugString(bool hex, const Comparator* ucmp = nullptr) const; 29761: }; 29761: 29761: inline int InternalKeyComparator::Compare(const InternalKey& a, 29761: const InternalKey& b) const { 29761: return Compare(a.Encode(), b.Encode()); 29761: } 29761: 29761: inline Status ParseInternalKey(const Slice& internal_key, 29761: ParsedInternalKey* result, bool log_err_key) { 29761: const size_t n = internal_key.size(); 29761: 29761: if (n < kNumInternalBytes) { 29761: return Status::Corruption("Corrupted Key: Internal Key too small. Size=" + 29761: std::to_string(n) + ". "); 29761: } 29761: 29761: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29761: unsigned char c = num & 0xff; 29761: result->sequence = num >> 8; 29761: result->type = static_cast(c); 29761: 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: result->type <= ValueType::kMaxValue 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "result->type <= ValueType::kMaxValue" 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: result->user_key = Slice(internal_key.data(), n - kNumInternalBytes); 29761: 29761: if (IsExtendedValueType(result->type)) { 29761: return Status::OK(); 29761: } else { 29761: return Status::Corruption("Corrupted Key", 29761: result->DebugString(log_err_key, true)); 29761: } 29761: } 29761: 29761: 29761: 29761: inline void UpdateInternalKey(std::string* ikey, uint64_t seq, ValueType t) { 29761: size_t ikey_sz = ikey->size(); 29761: 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ikey_sz >= kNumInternalBytes 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ikey_sz >= kNumInternalBytes" 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: uint64_t newval = (seq << 8) | t; 29761: 29761: 29761: 29761: EncodeFixed64(&(*ikey)[ikey_sz - kNumInternalBytes], newval); 29761: } 29761: 29761: 29761: inline uint64_t GetInternalKeySeqno(const Slice& internal_key) { 29761: const size_t n = internal_key.size(); 29761: 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: n >= kNumInternalBytes 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "n >= kNumInternalBytes" 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29761: return num >> 8; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class IterKey { 29761: static constexpr size_t kInlineBufferSize = 39; 29761: 29761: 29761: static constexpr char kTsMin[] = "\x00\x00\x00\x00\x00\x00\x00\x00"; 29761: 29761: public: 29761: IterKey() 29761: : buf_(space_), 29761: key_(buf_), 29761: key_size_(0), 29761: buf_size_(kInlineBufferSize), 29761: is_user_key_(true), 29761: secondary_buf_(space_for_secondary_buf_), 29761: secondary_buf_size_(kInlineBufferSize) {} 29761: 29761: IterKey(const IterKey&) = delete; 29761: void operator=(const IterKey&) = delete; 29761: 29761: ~IterKey() { 29761: ResetBuffer(); 29761: ResetSecondaryBuffer(); 29761: } 29761: 29761: 29761: void SetIsUserKey(bool is_user_key) { is_user_key_ = is_user_key; } 29761: 29761: 29761: 29761: 29761: Slice GetKey() const { return Slice(key_, key_size_); } 29761: 29761: Slice GetInternalKey() const { 29761: 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: !IsUserKey() 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "!IsUserKey()" 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(key_, key_size_); 29761: } 29761: 29761: 29761: 29761: Slice GetUserKey() const { 29761: if (IsUserKey()) { 29761: return Slice(key_, key_size_); 29761: } else { 29761: 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_size_ >= kNumInternalBytes 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_size_ >= kNumInternalBytes" 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(key_, key_size_ - kNumInternalBytes); 29761: } 29761: } 29761: 29761: size_t Size() const { return key_size_; } 29761: 29761: void Clear() { key_size_ = 0; } 29761: 29761: 29761: 29761: 29761: 29761: void TrimAppend(const size_t shared_len, const char* non_shared_data, 29761: const size_t non_shared_len) { 29761: 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: shared_len <= key_size_ 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "shared_len <= key_size_" 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: size_t total_size = shared_len + non_shared_len; 29761: 29761: if (IsKeyPinned() ) { 29761: 29761: EnlargeBufferIfNeeded(total_size); 29761: memcpy(buf_, key_, shared_len); 29761: } else if (total_size > buf_size_) { 29761: 29761: char* p = new char[total_size]; 29761: memcpy(p, key_, shared_len); 29761: 29761: if (buf_ != space_) { 29761: delete[] buf_; 29761: } 29761: 29761: buf_ = p; 29761: buf_size_ = total_size; 29761: } 29761: 29761: memcpy(buf_ + shared_len, non_shared_data, non_shared_len); 29761: key_ = buf_; 29761: key_size_ = total_size; 29761: } 29761: 29761: 29761: 29761: 29761: void TrimAppendWithTimestamp(const size_t shared_len, 29761: const char* non_shared_data, 29761: const size_t non_shared_len, 29761: const size_t ts_sz) { 29761: 29761: 29761: 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts_sz == sizeof(uint64_t) 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts_sz == sizeof(uint64_t)" 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: size_t next_key_slice_index = 0; 29761: if (IsUserKey()) { 29761: key_slices_[next_key_slice_index++] = Slice(key_, shared_len); 29761: key_slices_[next_key_slice_index++] = 29761: Slice(non_shared_data, non_shared_len); 29761: key_slices_[next_key_slice_index++] = Slice(kTsMin, ts_sz); 29761: } else { 29761: 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: shared_len + non_shared_len >= kNumInternalBytes 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "shared_len + non_shared_len >= kNumInternalBytes" 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: const size_t user_key_len = key_size_ - kNumInternalBytes; 29761: const size_t sharable_user_key_len = user_key_len - ts_sz; 29761: const size_t shared_user_key_len = 29761: std::min(shared_len, sharable_user_key_len); 29761: const size_t shared_internal_bytes_len = shared_len - shared_user_key_len; 29761: 29761: 29761: 29761: bool ts_added = false; 29761: 29761: MaybeAddKeyPartsWithTimestamp( 29761: key_, shared_user_key_len, 29761: shared_internal_bytes_len + non_shared_len < kNumInternalBytes, 29761: shared_len + non_shared_len - kNumInternalBytes, ts_sz, 29761: &next_key_slice_index, &ts_added); 29761: MaybeAddKeyPartsWithTimestamp( 29761: key_ + user_key_len, shared_internal_bytes_len, 29761: non_shared_len < kNumInternalBytes, 29761: shared_internal_bytes_len + non_shared_len - kNumInternalBytes, ts_sz, 29761: &next_key_slice_index, &ts_added); 29761: MaybeAddKeyPartsWithTimestamp(non_shared_data, non_shared_len, 29761: non_shared_len >= kNumInternalBytes, 29761: non_shared_len - kNumInternalBytes, ts_sz, 29761: &next_key_slice_index, &ts_added); 29761: 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts_added 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts_added" 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: } 29761: SetKeyImpl(next_key_slice_index, 29761: shared_len + non_shared_len + ts_sz); 29761: } 29761: 29761: Slice SetKeyWithPaddedMinTimestamp(const Slice& key, size_t ts_sz) { 29761: 29761: 29761: 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts_sz == sizeof(uint64_t) 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts_sz == sizeof(uint64_t)" 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: size_t num_key_slices = 0; 29761: if (is_user_key_) { 29761: key_slices_[0] = key; 29761: key_slices_[1] = Slice(kTsMin, ts_sz); 29761: num_key_slices = 2; 29761: } else { 29761: 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key.size() >= kNumInternalBytes 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key.size() >= kNumInternalBytes" 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: size_t user_key_size = key.size() - kNumInternalBytes; 29761: key_slices_[0] = Slice(key.data(), user_key_size); 29761: key_slices_[1] = Slice(kTsMin, ts_sz); 29761: key_slices_[2] = Slice(key.data() + user_key_size, kNumInternalBytes); 29761: num_key_slices = 3; 29761: } 29761: return SetKeyImpl(num_key_slices, key.size() + ts_sz); 29761: } 29761: 29761: Slice SetKey(const Slice& key, bool copy = true) { 29761: 29761: return SetKeyImpl(key, copy); 29761: } 29761: 29761: 29761: 29761: 29761: Slice SetUserKey(const Slice& key, bool copy = true) { 29761: is_user_key_ = true; 29761: return SetKeyImpl(key, copy); 29761: } 29761: 29761: Slice SetInternalKey(const Slice& key, bool copy = true) { 29761: is_user_key_ = false; 29761: return SetKeyImpl(key, copy); 29761: } 29761: 29761: 29761: 29761: Slice SetInternalKey(const Slice& key, ParsedInternalKey* ikey) { 29761: size_t key_n = key.size(); 29761: 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_n >= kNumInternalBytes 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_n >= kNumInternalBytes" 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: SetInternalKey(key); 29761: ikey->user_key = Slice(key_, key_n - kNumInternalBytes); 29761: return Slice(key_, key_n); 29761: } 29761: 29761: 29761: 29761: void UpdateInternalKey(uint64_t seq, ValueType t, const Slice* ts = nullptr) { 29761: 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: !IsKeyPinned() 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "!IsKeyPinned()" 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_size_ >= kNumInternalBytes 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_size_ >= kNumInternalBytes" 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: if (ts) { 29761: 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_size_ >= kNumInternalBytes + ts->size() 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_size_ >= kNumInternalBytes + ts->size()" 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: memcpy(&buf_[key_size_ - kNumInternalBytes - ts->size()], ts->data(), 29761: ts->size()); 29761: } 29761: uint64_t newval = (seq << 8) | t; 29761: if (key_ == buf_) { 29761: EncodeFixed64(&buf_[key_size_ - kNumInternalBytes], newval); 29761: } else { 29761: 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_ == secondary_buf_ 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_ == secondary_buf_" 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: EncodeFixed64(&secondary_buf_[key_size_ - kNumInternalBytes], newval); 29761: } 29761: } 29761: 29761: bool IsKeyPinned() const { return key_ != buf_ && key_ != secondary_buf_; } 29761: 29761: 29761: 29761: 29761: void SetInternalKey(const Slice& key_prefix, const Slice& user_key, 29761: SequenceNumber s, 29761: ValueType value_type = kValueTypeForSeek, 29761: const Slice* ts = nullptr) { 29761: size_t psize = key_prefix.size(); 29761: size_t usize = user_key.size(); 29761: size_t ts_sz = (ts != nullptr ? ts->size() : 0); 29761: EnlargeBufferIfNeeded(psize + usize + sizeof(uint64_t) + ts_sz); 29761: if (psize > 0) { 29761: memcpy(buf_, key_prefix.data(), psize); 29761: } 29761: memcpy(buf_ + psize, user_key.data(), usize); 29761: if (ts) { 29761: memcpy(buf_ + psize + usize, ts->data(), ts_sz); 29761: } 29761: EncodeFixed64(buf_ + usize + psize + ts_sz, 29761: PackSequenceAndType(s, value_type)); 29761: 29761: key_ = buf_; 29761: key_size_ = psize + usize + sizeof(uint64_t) + ts_sz; 29761: is_user_key_ = false; 29761: } 29761: 29761: void SetInternalKey(const Slice& user_key, SequenceNumber s, 29761: ValueType value_type = kValueTypeForSeek, 29761: const Slice* ts = nullptr) { 29761: SetInternalKey(Slice(), user_key, s, value_type, ts); 29761: } 29761: 29761: void Reserve(size_t size) { 29761: EnlargeBufferIfNeeded(size); 29761: key_size_ = size; 29761: } 29761: 29761: void SetInternalKey(const ParsedInternalKey& parsed_key) { 29761: SetInternalKey(Slice(), parsed_key); 29761: } 29761: 29761: void SetInternalKey(const Slice& key_prefix, 29761: const ParsedInternalKey& parsed_key_suffix) { 29761: SetInternalKey(key_prefix, parsed_key_suffix.user_key, 29761: parsed_key_suffix.sequence, parsed_key_suffix.type); 29761: } 29761: 29761: void EncodeLengthPrefixedKey(const Slice& key) { 29761: auto size = key.size(); 29761: EnlargeBufferIfNeeded(size + static_cast(VarintLength(size))); 29761: char* ptr = EncodeVarint32(buf_, static_cast(size)); 29761: memcpy(ptr, key.data(), size); 29761: key_ = buf_; 29761: is_user_key_ = true; 29761: } 29761: 29761: bool IsUserKey() const { return is_user_key_; } 29761: 29761: private: 29761: char* buf_; 29761: const char* key_; 29761: size_t key_size_; 29761: size_t buf_size_; 29761: char space_[kInlineBufferSize]; 29761: bool is_user_key_; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: char space_for_secondary_buf_[kInlineBufferSize]; 29761: 29761: char* secondary_buf_; 29761: size_t secondary_buf_size_; 29761: 29761: 29761: 29761: std::array key_slices_; 29761: 29761: 29761: Slice SetKeyImpl(const Slice& key, bool copy) { 29761: size_t size = key.size(); 29761: if (copy) { 29761: 29761: EnlargeBufferIfNeeded(size); 29761: memcpy(buf_, key.data(), size); 29761: key_ = buf_; 29761: } else { 29761: 29761: key_ = key.data(); 29761: } 29761: key_size_ = size; 29761: return Slice(key_, key_size_); 29761: } 29761: 29761: Slice SetKeyImpl(size_t num_key_slices, size_t total_bytes) { 29761: 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: num_key_slices <= 5 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "num_key_slices <= 5" 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: char* buf_start = nullptr; 29761: if (key_ == buf_) { 29761: 29761: 29761: EnlargeSecondaryBufferIfNeeded(total_bytes); 29761: buf_start = secondary_buf_; 29761: key_ = secondary_buf_; 29761: } else { 29761: 29761: EnlargeBufferIfNeeded(total_bytes); 29761: buf_start = buf_; 29761: key_ = buf_; 29761: } 29761: 29761: size_t actual_total_bytes = 0; 29761: 29761: for (size_t i = 0; i < num_key_slices; i++) { 29761: size_t key_slice_size = key_slices_[i].size(); 29761: memcpy(buf_start, key_slices_[i].data(), key_slice_size); 29761: buf_start += key_slice_size; 29761: 29761: actual_total_bytes += key_slice_size; 29761: 29761: } 29761: 29761: 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: actual_total_bytes == total_bytes 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "actual_total_bytes == total_bytes" 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: 29761: key_size_ = total_bytes; 29761: return Slice(key_, key_size_); 29761: } 29761: 29761: void ResetBuffer() { 29761: if (key_ == buf_) { 29761: key_size_ = 0; 29761: } 29761: if (buf_ != space_) { 29761: delete[] buf_; 29761: buf_ = space_; 29761: } 29761: buf_size_ = kInlineBufferSize; 29761: } 29761: 29761: void ResetSecondaryBuffer() { 29761: if (key_ == secondary_buf_) { 29761: key_size_ = 0; 29761: } 29761: if (secondary_buf_ != space_for_secondary_buf_) { 29761: delete[] secondary_buf_; 29761: secondary_buf_ = space_for_secondary_buf_; 29761: } 29761: secondary_buf_size_ = kInlineBufferSize; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void EnlargeBufferIfNeeded(size_t key_size) { 29761: 29761: 29761: if (key_size > buf_size_) { 29761: EnlargeBuffer(key_size); 29761: } 29761: } 29761: 29761: void EnlargeSecondaryBufferIfNeeded(size_t key_size); 29761: 29761: void EnlargeBuffer(size_t key_size); 29761: 29761: void MaybeAddKeyPartsWithTimestamp(const char* slice_data, 29761: const size_t slice_sz, bool add_timestamp, 29761: const size_t left_sz, const size_t ts_sz, 29761: size_t* next_key_slice_idx, 29761: bool* ts_added) { 29761: 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: next_key_slice_idx 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "next_key_slice_idx" 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: if (add_timestamp && !*ts_added) { 29761: 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: slice_sz >= left_sz 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "slice_sz >= left_sz" 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, left_sz); 29761: key_slices_[(*next_key_slice_idx)++] = Slice(kTsMin, ts_sz); 29761: key_slices_[(*next_key_slice_idx)++] = 29761: Slice(slice_data + left_sz, slice_sz - left_sz); 29761: *ts_added = true; 29761: } else { 29761: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, slice_sz); 29761: } 29761: 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: *next_key_slice_idx <= 5 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "*next_key_slice_idx <= 5" 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: } 29761: }; 29761: 29761: 29761: 29761: class InternalKeySliceTransform : public SliceTransform { 29761: public: 29761: explicit InternalKeySliceTransform(const SliceTransform* transform) 29761: : transform_(transform) {} 29761: 29761: const char* Name() const override { return transform_->Name(); } 29761: 29761: Slice Transform(const Slice& src) const override { 29761: auto user_key = ExtractUserKey(src); 29761: return transform_->Transform(user_key); 29761: } 29761: 29761: bool InDomain(const Slice& src) const override { 29761: auto user_key = ExtractUserKey(src); 29761: return transform_->InDomain(user_key); 29761: } 29761: 29761: bool InRange(const Slice& dst) const override { 29761: auto user_key = ExtractUserKey(dst); 29761: return transform_->InRange(user_key); 29761: } 29761: 29761: const SliceTransform* user_prefix_extractor() const { return transform_; } 29761: 29761: private: 29761: 29761: 29761: const SliceTransform* const transform_; 29761: }; 29761: 29761: 29761: 29761: 29761: bool ReadKeyFromWriteBatchEntry(Slice* input, Slice* key, bool cf_record); 29761: # 1004 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: Status ReadRecordFromWriteBatch(Slice* input, char* tag, 29761: uint32_t* column_family, Slice* key, 29761: Slice* value, Slice* blob, Slice* xid, 29761: uint64_t* write_unix_time); 29761: 29761: 29761: 29761: 29761: 29761: struct RangeTombstone { 29761: Slice start_key_; 29761: Slice end_key_; 29761: SequenceNumber seq_; 29761: 29761: 29761: Slice ts_; 29761: std::string pinned_start_key_; 29761: std::string pinned_end_key_; 29761: 29761: RangeTombstone() = default; 29761: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn) 29761: : start_key_(sk), end_key_(ek), seq_(sn) {} 29761: 29761: 29761: 29761: 29761: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn, Slice ts) : seq_(sn) { 29761: const size_t ts_sz = ts.size(); 29761: 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts_sz > 0 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts_sz > 0" 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: pinned_start_key_.reserve(sk.size()); 29761: pinned_end_key_.reserve(ek.size()); 29761: AppendUserKeyWithDifferentTimestamp(&pinned_start_key_, sk, ts); 29761: AppendUserKeyWithDifferentTimestamp(&pinned_end_key_, ek, ts); 29761: start_key_ = pinned_start_key_; 29761: end_key_ = pinned_end_key_; 29761: ts_ = Slice(pinned_start_key_.data() + sk.size() - ts_sz, ts_sz); 29761: } 29761: 29761: RangeTombstone(ParsedInternalKey parsed_key, Slice value) { 29761: start_key_ = parsed_key.user_key; 29761: seq_ = parsed_key.sequence; 29761: end_key_ = value; 29761: } 29761: 29761: 29761: std::pair Serialize() const { 29761: auto key = InternalKey(start_key_, seq_, kTypeRangeDeletion); 29761: return std::make_pair(std::move(key), end_key_); 29761: } 29761: 29761: 29761: InternalKey SerializeKey() const { 29761: return InternalKey(start_key_, seq_, kTypeRangeDeletion); 29761: } 29761: # 1066 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: InternalKey SerializeEndKey() const { 29761: if (!ts_.empty()) { 29761: static constexpr char kTsMax[] = "\xff\xff\xff\xff\xff\xff\xff\xff\xff"; 29761: if (ts_.size() <= strlen(kTsMax)) { 29761: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 29761: Slice(kTsMax, ts_.size())); 29761: } else { 29761: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 29761: std::string(ts_.size(), '\xff')); 29761: } 29761: } 29761: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion); 29761: } 29761: }; 29761: 29761: inline int InternalKeyComparator::Compare(const Slice& akey, 29761: const Slice& bkey) const { 29761: 29761: 29761: 29761: 29761: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 29761: if (r == 0) { 29761: const uint64_t anum = 29761: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes); 29761: const uint64_t bnum = 29761: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes); 29761: if (anum > bnum) { 29761: r = -1; 29761: } else if (anum < bnum) { 29761: r = +1; 29761: } 29761: } 29761: return r; 29761: } 29761: 29761: inline int InternalKeyComparator::CompareKeySeq(const Slice& akey, 29761: const Slice& bkey) const { 29761: 29761: 29761: 29761: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 29761: if (r == 0) { 29761: 29761: const uint64_t anum = 29761: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes) >> 8; 29761: const uint64_t bnum = 29761: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes) >> 8; 29761: if (anum > bnum) { 29761: r = -1; 29761: } else if (anum < bnum) { 29761: r = +1; 29761: } 29761: } 29761: return r; 29761: } 29761: 29761: inline int InternalKeyComparator::CompareKeySeq(const ParsedInternalKey& a, 29761: const Slice& b) const { 29761: 29761: 29761: 29761: int r = user_comparator_.Compare(a.user_key, ExtractUserKey(b)); 29761: if (r == 0) { 29761: 29761: const uint64_t anum = a.sequence; 29761: const uint64_t bnum = 29761: DecodeFixed64(b.data() + b.size() - kNumInternalBytes) >> 8; 29761: if (anum > bnum) { 29761: r = -1; 29761: } else if (anum < bnum) { 29761: r = +1; 29761: } 29761: } 29761: return r; 29761: } 29761: 29761: inline int InternalKeyComparator::Compare(const Slice& a, 29761: SequenceNumber a_global_seqno, 29761: const Slice& b, 29761: SequenceNumber b_global_seqno) const { 29761: int r = user_comparator_.Compare(ExtractUserKey(a), ExtractUserKey(b)); 29761: if (r == 0) { 29761: uint64_t a_footer, b_footer; 29761: if (a_global_seqno == kDisableGlobalSequenceNumber) { 29761: a_footer = ExtractInternalKeyFooter(a); 29761: } else { 29761: a_footer = PackSequenceAndType(a_global_seqno, ExtractValueType(a)); 29761: } 29761: if (b_global_seqno == kDisableGlobalSequenceNumber) { 29761: b_footer = ExtractInternalKeyFooter(b); 29761: } else { 29761: b_footer = PackSequenceAndType(b_global_seqno, ExtractValueType(b)); 29761: } 29761: if (a_footer > b_footer) { 29761: r = -1; 29761: } else if (a_footer < b_footer) { 29761: r = +1; 29761: } 29761: } 29761: return r; 29761: } 29761: 29761: 29761: struct ParsedInternalKeyComparator { 29761: explicit ParsedInternalKeyComparator(const InternalKeyComparator* c) 29761: : cmp(c) {} 29761: 29761: bool operator()(const ParsedInternalKey& a, 29761: const ParsedInternalKey& b) const { 29761: return cmp->Compare(a, b) < 0; 29761: } 29761: 29761: const InternalKeyComparator* cmp; 29761: }; 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 1 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: template 29761: class ProtectionInfo; 29761: template 29761: class ProtectionInfoKVO; 29761: template 29761: class ProtectionInfoKVOC; 29761: template 29761: class ProtectionInfoKVOS; 29761: template 29761: class ProtectionInfoKV; 29761: 29761: 29761: using ProtectionInfo64 = ProtectionInfo; 29761: using ProtectionInfoKVO64 = ProtectionInfoKVO; 29761: using ProtectionInfoKVOC64 = ProtectionInfoKVOC; 29761: using ProtectionInfoKVOS64 = ProtectionInfoKVOS; 29761: 29761: template 29761: class ProtectionInfo { 29761: public: 29761: ProtectionInfo() = default; 29761: 29761: Status GetStatus() const; 29761: ProtectionInfoKVO ProtectKVO(const Slice& key, const Slice& value, 29761: ValueType op_type) const; 29761: ProtectionInfoKVO ProtectKVO(const SliceParts& key, 29761: const SliceParts& value, 29761: ValueType op_type) const; 29761: ProtectionInfoKV ProtectKV(const Slice& key, const Slice& value) const; 29761: 29761: private: 29761: friend class ProtectionInfoKVO; 29761: friend class ProtectionInfoKVOS; 29761: friend class ProtectionInfoKVOC; 29761: friend class ProtectionInfoKV; 29761: # 84 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: static const uint64_t kSeedK = 0; 29761: static const uint64_t kSeedV = 0xD28AAD72F49BD50B; 29761: static const uint64_t kSeedO = 0xA5155AE5E937AA16; 29761: static const uint64_t kSeedS = 0x77A00858DDD37F21; 29761: static const uint64_t kSeedC = 0x4A2AB5CBD26F542C; 29761: 29761: ProtectionInfo(T val) : val_(val) { 29761: static_assert(sizeof(ProtectionInfo) == sizeof(T), ""); 29761: } 29761: 29761: T GetVal() const { return val_; } 29761: void SetVal(T val) { val_ = val; } 29761: 29761: void Encode(uint8_t len, char* dst) const { 29761: 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: (static_cast ( 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: sizeof(val_) >= len 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: "sizeof(val_) >= len" 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: ; 29761: switch (len) { 29761: case 1: 29761: dst[0] = static_cast(val_); 29761: break; 29761: case 2: 29761: EncodeFixed16(dst, static_cast(val_)); 29761: break; 29761: case 4: 29761: EncodeFixed32(dst, static_cast(val_)); 29761: break; 29761: case 8: 29761: EncodeFixed64(dst, static_cast(val_)); 29761: break; 29761: default: 29761: 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: (static_cast ( 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: false 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: "false" 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: ; 29761: } 29761: } 29761: 29761: bool Verify(uint8_t len, const char* checksum_ptr) const { 29761: 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: (static_cast ( 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: sizeof(val_) >= len 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: "sizeof(val_) >= len" 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: ; 29761: switch (len) { 29761: case 1: 29761: return static_cast(checksum_ptr[0]) == 29761: static_cast(val_); 29761: case 2: 29761: return DecodeFixed16(checksum_ptr) == static_cast(val_); 29761: case 4: 29761: return DecodeFixed32(checksum_ptr) == static_cast(val_); 29761: case 8: 29761: return DecodeFixed64(checksum_ptr) == static_cast(val_); 29761: default: 29761: 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: (static_cast ( 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: false 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: "false" 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: ; 29761: return false; 29761: } 29761: } 29761: 29761: T val_ = 0; 29761: }; 29761: 29761: template 29761: class ProtectionInfoKVO { 29761: public: 29761: ProtectionInfoKVO() = default; 29761: 29761: ProtectionInfo StripKVO(const Slice& key, const Slice& value, 29761: ValueType op_type) const; 29761: ProtectionInfo StripKVO(const SliceParts& key, const SliceParts& value, 29761: ValueType op_type) const; 29761: 29761: ProtectionInfoKVOC ProtectC(ColumnFamilyId column_family_id) const; 29761: ProtectionInfoKVOS ProtectS(SequenceNumber sequence_number) const; 29761: 29761: void UpdateK(const Slice& old_key, const Slice& new_key); 29761: void UpdateK(const SliceParts& old_key, const SliceParts& new_key); 29761: void UpdateV(const Slice& old_value, const Slice& new_value); 29761: void UpdateV(const SliceParts& old_value, const SliceParts& new_value); 29761: void UpdateO(ValueType old_op_type, ValueType new_op_type); 29761: 29761: 29761: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 29761: 29761: 29761: 29761: bool Verify(uint8_t len, const char* checksum_ptr) const { 29761: return info_.Verify(len, checksum_ptr); 29761: } 29761: 29761: private: 29761: friend class ProtectionInfo; 29761: friend class ProtectionInfoKVOS; 29761: friend class ProtectionInfoKVOC; 29761: 29761: explicit ProtectionInfoKVO(T val) : info_(val) { 29761: static_assert(sizeof(ProtectionInfoKVO) == sizeof(T), ""); 29761: } 29761: 29761: T GetVal() const { return info_.GetVal(); } 29761: void SetVal(T val) { info_.SetVal(val); } 29761: 29761: ProtectionInfo info_; 29761: }; 29761: 29761: template 29761: class ProtectionInfoKVOC { 29761: public: 29761: ProtectionInfoKVOC() = default; 29761: 29761: ProtectionInfoKVO StripC(ColumnFamilyId column_family_id) const; 29761: 29761: void UpdateK(const Slice& old_key, const Slice& new_key) { 29761: kvo_.UpdateK(old_key, new_key); 29761: } 29761: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 29761: kvo_.UpdateK(old_key, new_key); 29761: } 29761: void UpdateV(const Slice& old_value, const Slice& new_value) { 29761: kvo_.UpdateV(old_value, new_value); 29761: } 29761: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 29761: kvo_.UpdateV(old_value, new_value); 29761: } 29761: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 29761: kvo_.UpdateO(old_op_type, new_op_type); 29761: } 29761: void UpdateC(ColumnFamilyId old_column_family_id, 29761: ColumnFamilyId new_column_family_id); 29761: 29761: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 29761: bool Verify(uint8_t len, const char* checksum_ptr) const { 29761: return kvo_.Verify(len, checksum_ptr); 29761: } 29761: 29761: private: 29761: friend class ProtectionInfoKVO; 29761: 29761: explicit ProtectionInfoKVOC(T val) : kvo_(val) { 29761: static_assert(sizeof(ProtectionInfoKVOC) == sizeof(T), ""); 29761: } 29761: 29761: T GetVal() const { return kvo_.GetVal(); } 29761: void SetVal(T val) { kvo_.SetVal(val); } 29761: 29761: ProtectionInfoKVO kvo_; 29761: }; 29761: 29761: template 29761: class ProtectionInfoKVOS { 29761: public: 29761: ProtectionInfoKVOS() = default; 29761: 29761: ProtectionInfoKVO StripS(SequenceNumber sequence_number) const; 29761: 29761: void UpdateK(const Slice& old_key, const Slice& new_key) { 29761: kvo_.UpdateK(old_key, new_key); 29761: } 29761: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 29761: kvo_.UpdateK(old_key, new_key); 29761: } 29761: void UpdateV(const Slice& old_value, const Slice& new_value) { 29761: kvo_.UpdateV(old_value, new_value); 29761: } 29761: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 29761: kvo_.UpdateV(old_value, new_value); 29761: } 29761: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 29761: kvo_.UpdateO(old_op_type, new_op_type); 29761: } 29761: void UpdateS(SequenceNumber old_sequence_number, 29761: SequenceNumber new_sequence_number); 29761: 29761: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 29761: bool Verify(uint8_t len, const char* checksum_ptr) const { 29761: return kvo_.Verify(len, checksum_ptr); 29761: } 29761: 29761: private: 29761: friend class ProtectionInfoKVO; 29761: 29761: explicit ProtectionInfoKVOS(T val) : kvo_(val) { 29761: static_assert(sizeof(ProtectionInfoKVOS) == sizeof(T), ""); 29761: } 29761: 29761: T GetVal() const { return kvo_.GetVal(); } 29761: void SetVal(T val) { kvo_.SetVal(val); } 29761: 29761: ProtectionInfoKVO kvo_; 29761: }; 29761: 29761: template 29761: class ProtectionInfoKV { 29761: public: 29761: ProtectionInfoKV() = default; 29761: 29761: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 29761: bool Verify(uint8_t len, const char* checksum_ptr) const { 29761: return info_.Verify(len, checksum_ptr); 29761: } 29761: 29761: private: 29761: friend class ProtectionInfo; 29761: 29761: explicit ProtectionInfoKV(T val) : info_(val) { 29761: static_assert(sizeof(ProtectionInfoKV) == sizeof(T)); 29761: } 29761: 29761: ProtectionInfo info_; 29761: }; 29761: 29761: template 29761: Status ProtectionInfo::GetStatus() const { 29761: if (val_ != 0) { 29761: return Status::Corruption("ProtectionInfo mismatch"); 29761: } 29761: return Status::OK(); 29761: } 29761: 29761: template 29761: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const Slice& key, 29761: const Slice& value, 29761: ValueType op_type) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29761: val = 29761: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29761: val = val ^ 29761: static_cast(NPHash64(reinterpret_cast(&op_type), 29761: sizeof(op_type), ProtectionInfo::kSeedO)); 29761: return ProtectionInfoKVO(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const SliceParts& key, 29761: const SliceParts& value, 29761: ValueType op_type) const { 29761: T val = GetVal(); 29761: val = val ^ 29761: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 29761: val = val ^ 29761: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 29761: val = val ^ 29761: static_cast(NPHash64(reinterpret_cast(&op_type), 29761: sizeof(op_type), ProtectionInfo::kSeedO)); 29761: return ProtectionInfoKVO(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKV ProtectionInfo::ProtectKV(const Slice& key, 29761: const Slice& value) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29761: val = 29761: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29761: return ProtectionInfoKV(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVO::UpdateK(const Slice& old_key, const Slice& new_key) { 29761: T val = GetVal(); 29761: val = val ^ 29761: static_cast(GetSliceNPHash64(old_key, ProtectionInfo::kSeedK)); 29761: val = val ^ 29761: static_cast(GetSliceNPHash64(new_key, ProtectionInfo::kSeedK)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVO::UpdateK(const SliceParts& old_key, 29761: const SliceParts& new_key) { 29761: T val = GetVal(); 29761: val = val ^ static_cast( 29761: GetSlicePartsNPHash64(old_key, ProtectionInfo::kSeedK)); 29761: val = val ^ static_cast( 29761: GetSlicePartsNPHash64(new_key, ProtectionInfo::kSeedK)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVO::UpdateV(const Slice& old_value, 29761: const Slice& new_value) { 29761: T val = GetVal(); 29761: val = val ^ 29761: static_cast(GetSliceNPHash64(old_value, ProtectionInfo::kSeedV)); 29761: val = val ^ 29761: static_cast(GetSliceNPHash64(new_value, ProtectionInfo::kSeedV)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVO::UpdateV(const SliceParts& old_value, 29761: const SliceParts& new_value) { 29761: T val = GetVal(); 29761: val = val ^ static_cast( 29761: GetSlicePartsNPHash64(old_value, ProtectionInfo::kSeedV)); 29761: val = val ^ static_cast( 29761: GetSlicePartsNPHash64(new_value, ProtectionInfo::kSeedV)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVO::UpdateO(ValueType old_op_type, 29761: ValueType new_op_type) { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64(reinterpret_cast(&old_op_type), 29761: sizeof(old_op_type), 29761: ProtectionInfo::kSeedO)); 29761: val = val ^ static_cast(NPHash64(reinterpret_cast(&new_op_type), 29761: sizeof(new_op_type), 29761: ProtectionInfo::kSeedO)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: ProtectionInfo ProtectionInfoKVO::StripKVO(const Slice& key, 29761: const Slice& value, 29761: ValueType op_type) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29761: val = 29761: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29761: val = val ^ 29761: static_cast(NPHash64(reinterpret_cast(&op_type), 29761: sizeof(op_type), ProtectionInfo::kSeedO)); 29761: return ProtectionInfo(val); 29761: } 29761: 29761: template 29761: ProtectionInfo ProtectionInfoKVO::StripKVO(const SliceParts& key, 29761: const SliceParts& value, 29761: ValueType op_type) const { 29761: T val = GetVal(); 29761: val = val ^ 29761: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 29761: val = val ^ 29761: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 29761: val = val ^ 29761: static_cast(NPHash64(reinterpret_cast(&op_type), 29761: sizeof(op_type), ProtectionInfo::kSeedO)); 29761: return ProtectionInfo(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKVOC ProtectionInfoKVO::ProtectC( 29761: ColumnFamilyId column_family_id) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&column_family_id), 29761: sizeof(column_family_id), ProtectionInfo::kSeedC)); 29761: return ProtectionInfoKVOC(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKVO ProtectionInfoKVOC::StripC( 29761: ColumnFamilyId column_family_id) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&column_family_id), 29761: sizeof(column_family_id), ProtectionInfo::kSeedC)); 29761: return ProtectionInfoKVO(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVOC::UpdateC(ColumnFamilyId old_column_family_id, 29761: ColumnFamilyId new_column_family_id) { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&old_column_family_id), 29761: sizeof(old_column_family_id), ProtectionInfo::kSeedC)); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&new_column_family_id), 29761: sizeof(new_column_family_id), ProtectionInfo::kSeedC)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKVOS ProtectionInfoKVO::ProtectS( 29761: SequenceNumber sequence_number) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 29761: sizeof(sequence_number), 29761: ProtectionInfo::kSeedS)); 29761: return ProtectionInfoKVOS(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKVO ProtectionInfoKVOS::StripS( 29761: SequenceNumber sequence_number) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 29761: sizeof(sequence_number), 29761: ProtectionInfo::kSeedS)); 29761: return ProtectionInfoKVO(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVOS::UpdateS(SequenceNumber old_sequence_number, 29761: SequenceNumber new_sequence_number) { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&old_sequence_number), 29761: sizeof(old_sequence_number), ProtectionInfo::kSeedS)); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&new_sequence_number), 29761: sizeof(new_sequence_number), ProtectionInfo::kSeedS)); 29761: SetVal(val); 29761: } 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class IteratorBase : public Cleanable { 29761: public: 29761: IteratorBase() {} 29761: 29761: IteratorBase(const IteratorBase&) = delete; 29761: void operator=(const IteratorBase&) = delete; 29761: 29761: virtual ~IteratorBase() {} 29761: 29761: 29761: 29761: 29761: virtual bool Valid() const = 0; 29761: 29761: 29761: 29761: virtual void SeekToFirst() = 0; 29761: 29761: 29761: 29761: virtual void SeekToLast() = 0; 29761: # 43 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29761: virtual void Seek(const Slice& target) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void SeekForPrev(const Slice& target) = 0; 29761: 29761: 29761: 29761: 29761: virtual void Next() = 0; 29761: 29761: 29761: 29761: 29761: virtual void Prev() = 0; 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29761: virtual Status Refresh() { return Refresh(nullptr); } 29761: 29761: 29761: 29761: virtual Status Refresh(const class Snapshot*) { 29761: return Status::NotSupported("Refresh() is not supported"); 29761: } 29761: # 96 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29761: virtual bool PrepareValue() { return true; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Slice key() const = 0; 29761: 29761: 29761: 29761: 29761: virtual Status status() const = 0; 29761: }; 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ostream" 1 3 29761: # 36 "/usr/include/c++/14/ostream" 3 29761: 29761: # 37 "/usr/include/c++/14/ostream" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ios" 1 3 29761: # 36 "/usr/include/c++/14/ios" 3 29761: 29761: # 37 "/usr/include/c++/14/ios" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/ios_base.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/ios_base.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/ios_base.h" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/locale_classes.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: 29761: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 66 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: class locale 29761: { 29761: public: 29761: 29761: 29761: typedef int category; 29761: 29761: 29761: class facet; 29761: class id; 29761: class _Impl; 29761: 29761: friend class facet; 29761: friend class _Impl; 29761: 29761: template 29761: friend bool 29761: has_facet(const locale&) throw(); 29761: 29761: template 29761: friend const _Facet& 29761: use_facet(const locale&); 29761: 29761: template 29761: friend const _Facet* 29761: __try_use_facet(const locale&) noexcept; 29761: 29761: template 29761: friend struct __use_cache; 29761: # 106 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: static const category none = 0; 29761: static const category ctype = 1L << 0; 29761: static const category numeric = 1L << 1; 29761: static const category collate = 1L << 2; 29761: static const category time = 1L << 3; 29761: static const category monetary = 1L << 4; 29761: static const category messages = 1L << 5; 29761: static const category all = (ctype | numeric | collate | 29761: time | monetary | messages); 29761: # 125 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: locale() throw(); 29761: # 134 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: locale(const locale& __other) throw(); 29761: # 144 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: explicit 29761: locale(const char* __s); 29761: # 159 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: locale(const locale& __base, const char* __s, category __cat); 29761: # 170 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: explicit 29761: locale(const std::string& __s) : locale(__s.c_str()) { } 29761: # 185 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: locale(const locale& __base, const std::string& __s, category __cat) 29761: : locale(__base, __s.c_str(), __cat) { } 29761: # 200 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: locale(const locale& __base, const locale& __add, category __cat); 29761: # 213 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: template 29761: locale(const locale& __other, _Facet* __f); 29761: 29761: 29761: ~locale() throw(); 29761: # 227 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: const locale& 29761: operator=(const locale& __other) throw(); 29761: # 242 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: template 29761: [[__nodiscard__]] 29761: locale 29761: combine(const locale& __other) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] __attribute ((__abi_tag__ ("cxx11"))) 29761: string 29761: name() const; 29761: # 273 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: [[__nodiscard__]] 29761: bool 29761: operator==(const locale& __other) const throw(); 29761: # 284 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: [[__nodiscard__]] 29761: bool 29761: operator!=(const locale& __other) const throw() 29761: { return !(this->operator==(__other)); } 29761: # 305 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, 29761: const basic_string<_Char, _Traits, _Alloc>& __s2) const; 29761: # 322 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: static locale 29761: global(const locale& __loc); 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: static const locale& 29761: classic(); 29761: 29761: private: 29761: 29761: _Impl* _M_impl; 29761: 29761: 29761: static _Impl* _S_classic; 29761: 29761: 29761: static _Impl* _S_global; 29761: 29761: 29761: 29761: 29761: 29761: static const char* const* const _S_categories; 29761: # 358 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: enum { _S_categories_size = 6 + 6 }; 29761: 29761: 29761: static __gthread_once_t _S_once; 29761: 29761: 29761: explicit 29761: locale(_Impl*) throw(); 29761: 29761: static void 29761: _S_initialize(); 29761: 29761: static void 29761: _S_initialize_once() throw(); 29761: 29761: static category 29761: _S_normalize_category(category); 29761: 29761: void 29761: _M_coalesce(const locale& __base, const locale& __add, category __cat); 29761: 29761: 29761: static const id* const _S_twinned_facets[]; 29761: 29761: }; 29761: # 396 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: class locale::facet 29761: { 29761: private: 29761: friend class locale; 29761: friend class locale::_Impl; 29761: 29761: mutable _Atomic_word _M_refcount; 29761: 29761: 29761: static __c_locale _S_c_locale; 29761: 29761: 29761: static const char _S_c_name[2]; 29761: 29761: 29761: static __gthread_once_t _S_once; 29761: 29761: 29761: static void 29761: _S_initialize_once(); 29761: 29761: protected: 29761: # 427 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: explicit 29761: facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) 29761: { } 29761: 29761: 29761: virtual 29761: ~facet(); 29761: 29761: static void 29761: _S_create_c_locale(__c_locale& __cloc, const char* __s, 29761: __c_locale __old = 0); 29761: 29761: static __c_locale 29761: _S_clone_c_locale(__c_locale& __cloc) throw(); 29761: 29761: static void 29761: _S_destroy_c_locale(__c_locale& __cloc); 29761: 29761: static __c_locale 29761: _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); 29761: 29761: 29761: 29761: static __c_locale 29761: _S_get_c_locale(); 29761: 29761: __attribute__ ((__const__)) static const char* 29761: _S_get_c_name() throw(); 29761: # 463 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: facet(const facet&) = delete; 29761: 29761: facet& 29761: operator=(const facet&) = delete; 29761: 29761: 29761: private: 29761: void 29761: _M_add_reference() const throw() 29761: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29761: 29761: void 29761: _M_remove_reference() const throw() 29761: { 29761: 29761: ; 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 29761: { 29761: ; 29761: try 29761: { delete this; } 29761: catch(...) 29761: { } 29761: } 29761: } 29761: 29761: const facet* _M_sso_shim(const id*) const; 29761: const facet* _M_cow_shim(const id*) const; 29761: 29761: protected: 29761: class __shim; 29761: }; 29761: # 508 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: class locale::id 29761: { 29761: private: 29761: friend class locale; 29761: friend class locale::_Impl; 29761: 29761: template 29761: friend const _Facet& 29761: use_facet(const locale&); 29761: 29761: template 29761: friend bool 29761: has_facet(const locale&) throw(); 29761: 29761: template 29761: friend const _Facet* 29761: __try_use_facet(const locale&) noexcept; 29761: 29761: 29761: 29761: 29761: mutable size_t _M_index; 29761: 29761: 29761: static _Atomic_word _S_refcount; 29761: 29761: void 29761: operator=(const id&); 29761: 29761: id(const id&); 29761: 29761: public: 29761: 29761: 29761: 29761: id() { } 29761: 29761: size_t 29761: _M_id() const throw(); 29761: }; 29761: 29761: 29761: 29761: class locale::_Impl 29761: { 29761: public: 29761: 29761: friend class locale; 29761: friend class locale::facet; 29761: 29761: template 29761: friend bool 29761: has_facet(const locale&) throw(); 29761: 29761: template 29761: friend const _Facet& 29761: use_facet(const locale&); 29761: 29761: template 29761: friend const _Facet* 29761: __try_use_facet(const locale&) noexcept; 29761: 29761: template 29761: friend struct __use_cache; 29761: 29761: private: 29761: 29761: _Atomic_word _M_refcount; 29761: const facet** _M_facets; 29761: size_t _M_facets_size; 29761: const facet** _M_caches; 29761: char** _M_names; 29761: static const locale::id* const _S_id_ctype[]; 29761: static const locale::id* const _S_id_numeric[]; 29761: static const locale::id* const _S_id_collate[]; 29761: static const locale::id* const _S_id_time[]; 29761: static const locale::id* const _S_id_monetary[]; 29761: static const locale::id* const _S_id_messages[]; 29761: static const locale::id* const* const _S_facet_categories[]; 29761: 29761: void 29761: _M_add_reference() throw() 29761: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29761: 29761: void 29761: _M_remove_reference() throw() 29761: { 29761: 29761: ; 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 29761: { 29761: ; 29761: try 29761: { delete this; } 29761: catch(...) 29761: { } 29761: } 29761: } 29761: 29761: _Impl(const _Impl&, size_t); 29761: _Impl(const char*, size_t); 29761: _Impl(size_t) throw(); 29761: 29761: ~_Impl() throw(); 29761: 29761: _Impl(const _Impl&); 29761: 29761: void 29761: operator=(const _Impl&); 29761: 29761: bool 29761: _M_check_same_name() 29761: { 29761: bool __ret = true; 29761: if (_M_names[1]) 29761: 29761: for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) 29761: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; 29761: return __ret; 29761: } 29761: 29761: void 29761: _M_replace_categories(const _Impl*, category); 29761: 29761: void 29761: _M_replace_category(const _Impl*, const locale::id* const*); 29761: 29761: void 29761: _M_replace_facet(const _Impl*, const locale::id*); 29761: 29761: void 29761: _M_install_facet(const locale::id*, const facet*); 29761: 29761: template 29761: void 29761: _M_init_facet(_Facet* __facet) 29761: { _M_install_facet(&_Facet::id, __facet); } 29761: 29761: template 29761: void 29761: _M_init_facet_unchecked(_Facet* __facet) 29761: { 29761: __facet->_M_add_reference(); 29761: _M_facets[_Facet::id._M_id()] = __facet; 29761: } 29761: 29761: void 29761: _M_install_cache(const facet*, size_t); 29761: 29761: void _M_init_extra(facet**); 29761: void _M_init_extra(void*, void*, const char*, const char*); 29761: 29761: 29761: 29761: 29761: }; 29761: # 678 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: template 29761: class __cxx11:: collate : public locale::facet 29761: { 29761: public: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef basic_string<_CharT> string_type; 29761: 29761: 29761: protected: 29761: 29761: 29761: __c_locale _M_c_locale_collate; 29761: 29761: public: 29761: 29761: static locale::id id; 29761: # 705 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: explicit 29761: collate(size_t __refs = 0) 29761: : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) 29761: { } 29761: # 719 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: explicit 29761: collate(__c_locale __cloc, size_t __refs = 0) 29761: : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) 29761: { } 29761: # 736 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: int 29761: compare(const _CharT* __lo1, const _CharT* __hi1, 29761: const _CharT* __lo2, const _CharT* __hi2) const 29761: { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } 29761: # 755 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: string_type 29761: transform(const _CharT* __lo, const _CharT* __hi) const 29761: { return this->do_transform(__lo, __hi); } 29761: # 769 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: long 29761: hash(const _CharT* __lo, const _CharT* __hi) const 29761: { return this->do_hash(__lo, __hi); } 29761: 29761: 29761: int 29761: _M_compare(const _CharT*, const _CharT*) const throw(); 29761: 29761: size_t 29761: _M_transform(_CharT*, const _CharT*, size_t) const throw(); 29761: 29761: protected: 29761: 29761: virtual 29761: ~collate() 29761: { _S_destroy_c_locale(_M_c_locale_collate); } 29761: # 798 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: virtual int 29761: do_compare(const _CharT* __lo1, const _CharT* __hi1, 29761: const _CharT* __lo2, const _CharT* __hi2) const; 29761: # 812 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: virtual string_type 29761: do_transform(const _CharT* __lo, const _CharT* __hi) const; 29761: # 825 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: virtual long 29761: do_hash(const _CharT* __lo, const _CharT* __hi) const; 29761: }; 29761: 29761: template 29761: locale::id collate<_CharT>::id; 29761: 29761: 29761: template<> 29761: int 29761: collate::_M_compare(const char*, const char*) const throw(); 29761: 29761: template<> 29761: size_t 29761: collate::_M_transform(char*, const char*, size_t) const throw(); 29761: 29761: 29761: template<> 29761: int 29761: collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); 29761: 29761: template<> 29761: size_t 29761: collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); 29761: 29761: 29761: 29761: template 29761: class __cxx11:: collate_byname : public collate<_CharT> 29761: { 29761: public: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef basic_string<_CharT> string_type; 29761: 29761: 29761: explicit 29761: collate_byname(const char* __s, size_t __refs = 0) 29761: : collate<_CharT>(__refs) 29761: { 29761: if (__builtin_strcmp(__s, "C") != 0 29761: && __builtin_strcmp(__s, "POSIX") != 0) 29761: { 29761: this->_S_destroy_c_locale(this->_M_c_locale_collate); 29761: this->_S_create_c_locale(this->_M_c_locale_collate, __s); 29761: } 29761: } 29761: 29761: 29761: explicit 29761: collate_byname(const string& __s, size_t __refs = 0) 29761: : collate_byname(__s.c_str(), __refs) { } 29761: 29761: 29761: protected: 29761: virtual 29761: ~collate_byname() { } 29761: }; 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/locale_classes.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: locale:: 29761: locale(const locale& __other, _Facet* __f) 29761: { 29761: _M_impl = new _Impl(*__other._M_impl, 1); 29761: 29761: try 29761: { _M_impl->_M_install_facet(&_Facet::id, __f); } 29761: catch(...) 29761: { 29761: _M_impl->_M_remove_reference(); 29761: throw; 29761: } 29761: delete [] _M_impl->_M_names[0]; 29761: _M_impl->_M_names[0] = 0; 29761: } 29761: 29761: template 29761: locale 29761: locale:: 29761: combine(const locale& __other) const 29761: { 29761: _Impl* __tmp = new _Impl(*_M_impl, 1); 29761: try 29761: { 29761: __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); 29761: } 29761: catch(...) 29761: { 29761: __tmp->_M_remove_reference(); 29761: throw; 29761: } 29761: return locale(__tmp); 29761: } 29761: 29761: template 29761: bool 29761: locale:: 29761: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, 29761: const basic_string<_CharT, _Traits, _Alloc>& __s2) const 29761: { 29761: typedef std::collate<_CharT> __collate_type; 29761: const __collate_type& __collate = use_facet<__collate_type>(*this); 29761: return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), 29761: __s2.data(), __s2.data() + __s2.length()) < 0); 29761: } 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: template 29761: inline const _Facet* 29761: __try_use_facet(const locale& __loc) noexcept 29761: { 29761: const size_t __i = _Facet::id._M_id(); 29761: const locale::facet** __facets = __loc._M_impl->_M_facets; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 29761: 29761: 29761: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 29761: 29761: 29761: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29761: 29761: 29761: 29761: 29761: if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) 29761: return 0; 29761: 29761: 29761: return dynamic_cast(__facets[__i]); 29761: 29761: 29761: 29761: } 29761: #pragma GCC diagnostic pop 29761: # 164 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: has_facet(const locale& __loc) throw() 29761: { 29761: 29761: static_assert(__is_base_of(locale::facet, _Facet), 29761: "template argument must be derived from locale::facet"); 29761: 29761: 29761: 29761: return std::__try_use_facet<_Facet>(__loc) != 0; 29761: } 29761: # 192 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdangling-reference" 29761: template 29761: [[__nodiscard__]] 29761: inline const _Facet& 29761: use_facet(const locale& __loc) 29761: { 29761: 29761: static_assert(__is_base_of(locale::facet, _Facet), 29761: "template argument must be derived from locale::facet"); 29761: 29761: 29761: 29761: if (const _Facet* __f = std::__try_use_facet<_Facet>(__loc)) 29761: return *__f; 29761: __throw_bad_cast(); 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: template 29761: int 29761: collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () 29761: { return 0; } 29761: 29761: 29761: template 29761: size_t 29761: collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () 29761: { return 0; } 29761: 29761: template 29761: int 29761: collate<_CharT>:: 29761: do_compare(const _CharT* __lo1, const _CharT* __hi1, 29761: const _CharT* __lo2, const _CharT* __hi2) const 29761: { 29761: 29761: 29761: const string_type __one(__lo1, __hi1); 29761: const string_type __two(__lo2, __hi2); 29761: 29761: const _CharT* __p = __one.c_str(); 29761: const _CharT* __pend = __one.data() + __one.length(); 29761: const _CharT* __q = __two.c_str(); 29761: const _CharT* __qend = __two.data() + __two.length(); 29761: 29761: 29761: 29761: 29761: for (;;) 29761: { 29761: const int __res = _M_compare(__p, __q); 29761: if (__res) 29761: return __res; 29761: 29761: __p += char_traits<_CharT>::length(__p); 29761: __q += char_traits<_CharT>::length(__q); 29761: if (__p == __pend && __q == __qend) 29761: return 0; 29761: else if (__p == __pend) 29761: return -1; 29761: else if (__q == __qend) 29761: return 1; 29761: 29761: __p++; 29761: __q++; 29761: } 29761: } 29761: 29761: template 29761: typename collate<_CharT>::string_type 29761: collate<_CharT>:: 29761: do_transform(const _CharT* __lo, const _CharT* __hi) const 29761: { 29761: string_type __ret; 29761: 29761: 29761: const string_type __str(__lo, __hi); 29761: 29761: const _CharT* __p = __str.c_str(); 29761: const _CharT* __pend = __str.data() + __str.length(); 29761: 29761: size_t __len = (__hi - __lo) * 2; 29761: 29761: _CharT* __c = new _CharT[__len]; 29761: 29761: try 29761: { 29761: 29761: 29761: 29761: for (;;) 29761: { 29761: 29761: size_t __res = _M_transform(__c, __p, __len); 29761: 29761: 29761: if (__res >= __len) 29761: { 29761: __len = __res + 1; 29761: delete [] __c, __c = 0; 29761: __c = new _CharT[__len]; 29761: __res = _M_transform(__c, __p, __len); 29761: } 29761: 29761: __ret.append(__c, __res); 29761: __p += char_traits<_CharT>::length(__p); 29761: if (__p == __pend) 29761: break; 29761: 29761: __p++; 29761: __ret.push_back(_CharT()); 29761: } 29761: } 29761: catch(...) 29761: { 29761: delete [] __c; 29761: throw; 29761: } 29761: 29761: delete [] __c; 29761: 29761: return __ret; 29761: } 29761: 29761: template 29761: long 29761: collate<_CharT>:: 29761: do_hash(const _CharT* __lo, const _CharT* __hi) const 29761: { 29761: unsigned long __val = 0; 29761: for (; __lo < __hi; ++__lo) 29761: __val = 29761: *__lo + ((__val << 7) 29761: | (__val >> (__gnu_cxx::__numeric_traits:: 29761: __digits - 7))); 29761: return static_cast(__val); 29761: } 29761: 29761: 29761: 29761: 29761: extern template class collate; 29761: extern template class collate_byname; 29761: 29761: extern template 29761: const collate* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const collate& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: extern template class collate; 29761: extern template class collate_byname; 29761: 29761: extern template 29761: const collate* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const collate& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: 29761: 29761: } 29761: # 889 "/usr/include/c++/14/bits/locale_classes.h" 2 3 29761: # 42 "/usr/include/c++/14/bits/ios_base.h" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/system_error" 1 3 29761: # 32 "/usr/include/c++/14/system_error" 3 29761: 29761: # 33 "/usr/include/c++/14/system_error" 3 29761: # 43 "/usr/include/c++/14/system_error" 3 29761: # 1 "/usr/include/c++/14/stdexcept" 1 3 29761: # 36 "/usr/include/c++/14/stdexcept" 3 29761: 29761: # 37 "/usr/include/c++/14/stdexcept" 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: struct __cow_string 29761: { 29761: union { 29761: const char* _M_p; 29761: char _M_bytes[sizeof(const char*)]; 29761: }; 29761: 29761: __cow_string(); 29761: __cow_string(const std::string&); 29761: __cow_string(const char*, size_t); 29761: __cow_string(const __cow_string&) noexcept; 29761: __cow_string& operator=(const __cow_string&) noexcept; 29761: ~__cow_string(); 29761: 29761: __cow_string(__cow_string&&) noexcept; 29761: __cow_string& operator=(__cow_string&&) noexcept; 29761: 29761: }; 29761: 29761: typedef basic_string __sso_string; 29761: # 113 "/usr/include/c++/14/stdexcept" 3 29761: class logic_error : public exception 29761: { 29761: __cow_string _M_msg; 29761: 29761: public: 29761: 29761: explicit 29761: logic_error(const string& __arg) ; 29761: 29761: 29761: explicit 29761: logic_error(const char*) ; 29761: 29761: logic_error(logic_error&&) noexcept; 29761: logic_error& operator=(logic_error&&) noexcept; 29761: 29761: 29761: 29761: logic_error(const logic_error&) noexcept; 29761: logic_error& operator=(const logic_error&) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: virtual ~logic_error() noexcept; 29761: 29761: 29761: 29761: virtual const char* 29761: what() const noexcept; 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: class domain_error : public logic_error 29761: { 29761: public: 29761: explicit domain_error(const string& __arg) ; 29761: 29761: explicit domain_error(const char*) ; 29761: domain_error(const domain_error&) = default; 29761: domain_error& operator=(const domain_error&) = default; 29761: domain_error(domain_error&&) = default; 29761: domain_error& operator=(domain_error&&) = default; 29761: 29761: virtual ~domain_error() noexcept; 29761: }; 29761: 29761: 29761: class invalid_argument : public logic_error 29761: { 29761: public: 29761: explicit invalid_argument(const string& __arg) ; 29761: 29761: explicit invalid_argument(const char*) ; 29761: invalid_argument(const invalid_argument&) = default; 29761: invalid_argument& operator=(const invalid_argument&) = default; 29761: invalid_argument(invalid_argument&&) = default; 29761: invalid_argument& operator=(invalid_argument&&) = default; 29761: 29761: virtual ~invalid_argument() noexcept; 29761: }; 29761: 29761: 29761: 29761: class length_error : public logic_error 29761: { 29761: public: 29761: explicit length_error(const string& __arg) ; 29761: 29761: explicit length_error(const char*) ; 29761: length_error(const length_error&) = default; 29761: length_error& operator=(const length_error&) = default; 29761: length_error(length_error&&) = default; 29761: length_error& operator=(length_error&&) = default; 29761: 29761: virtual ~length_error() noexcept; 29761: }; 29761: 29761: 29761: 29761: class out_of_range : public logic_error 29761: { 29761: public: 29761: explicit out_of_range(const string& __arg) ; 29761: 29761: explicit out_of_range(const char*) ; 29761: out_of_range(const out_of_range&) = default; 29761: out_of_range& operator=(const out_of_range&) = default; 29761: out_of_range(out_of_range&&) = default; 29761: out_of_range& operator=(out_of_range&&) = default; 29761: 29761: virtual ~out_of_range() noexcept; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class runtime_error : public exception 29761: { 29761: __cow_string _M_msg; 29761: 29761: public: 29761: 29761: explicit 29761: runtime_error(const string& __arg) ; 29761: 29761: 29761: explicit 29761: runtime_error(const char*) ; 29761: 29761: runtime_error(runtime_error&&) noexcept; 29761: runtime_error& operator=(runtime_error&&) noexcept; 29761: 29761: 29761: 29761: runtime_error(const runtime_error&) noexcept; 29761: runtime_error& operator=(const runtime_error&) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: virtual ~runtime_error() noexcept; 29761: 29761: 29761: 29761: virtual const char* 29761: what() const noexcept; 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: class range_error : public runtime_error 29761: { 29761: public: 29761: explicit range_error(const string& __arg) ; 29761: 29761: explicit range_error(const char*) ; 29761: range_error(const range_error&) = default; 29761: range_error& operator=(const range_error&) = default; 29761: range_error(range_error&&) = default; 29761: range_error& operator=(range_error&&) = default; 29761: 29761: virtual ~range_error() noexcept; 29761: }; 29761: 29761: 29761: class overflow_error : public runtime_error 29761: { 29761: public: 29761: explicit overflow_error(const string& __arg) ; 29761: 29761: explicit overflow_error(const char*) ; 29761: overflow_error(const overflow_error&) = default; 29761: overflow_error& operator=(const overflow_error&) = default; 29761: overflow_error(overflow_error&&) = default; 29761: overflow_error& operator=(overflow_error&&) = default; 29761: 29761: virtual ~overflow_error() noexcept; 29761: }; 29761: 29761: 29761: class underflow_error : public runtime_error 29761: { 29761: public: 29761: explicit underflow_error(const string& __arg) ; 29761: 29761: explicit underflow_error(const char*) ; 29761: underflow_error(const underflow_error&) = default; 29761: underflow_error& operator=(const underflow_error&) = default; 29761: underflow_error(underflow_error&&) = default; 29761: underflow_error& operator=(underflow_error&&) = default; 29761: 29761: virtual ~underflow_error() noexcept; 29761: }; 29761: 29761: 29761: 29761: 29761: } 29761: # 44 "/usr/include/c++/14/system_error" 2 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class error_code; 29761: class error_condition; 29761: class system_error; 29761: 29761: 29761: template 29761: struct is_error_code_enum : public false_type { }; 29761: 29761: 29761: template 29761: struct is_error_condition_enum : public false_type { }; 29761: 29761: template<> 29761: struct is_error_condition_enum 29761: : public true_type { }; 29761: 29761: 29761: template 29761: inline constexpr bool is_error_code_enum_v = 29761: is_error_code_enum<_Tp>::value; 29761: template 29761: inline constexpr bool is_error_condition_enum_v = 29761: is_error_condition_enum<_Tp>::value; 29761: 29761: 29761: 29761: inline namespace _V2 { 29761: # 106 "/usr/include/c++/14/system_error" 3 29761: class error_category 29761: { 29761: public: 29761: constexpr error_category() noexcept = default; 29761: 29761: virtual ~error_category(); 29761: 29761: error_category(const error_category&) = delete; 29761: error_category& operator=(const error_category&) = delete; 29761: 29761: 29761: virtual const char* 29761: name() const noexcept = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: private: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: virtual __cow_string 29761: _M_message(int) const; 29761: 29761: public: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: virtual string 29761: message(int) const = 0; 29761: # 144 "/usr/include/c++/14/system_error" 3 29761: public: 29761: 29761: virtual error_condition 29761: default_error_condition(int __i) const noexcept; 29761: 29761: 29761: virtual bool 29761: equivalent(int __i, const error_condition& __cond) const noexcept; 29761: 29761: 29761: virtual bool 29761: equivalent(const error_code& __code, int __i) const noexcept; 29761: 29761: 29761: [[__nodiscard__]] 29761: bool 29761: operator==(const error_category& __other) const noexcept 29761: { return this == &__other; } 29761: # 170 "/usr/include/c++/14/system_error" 3 29761: bool 29761: operator<(const error_category& __other) const noexcept 29761: { return less()(this, &__other); } 29761: 29761: bool 29761: operator!=(const error_category& __other) const noexcept 29761: { return this != &__other; } 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: [[__nodiscard__, __gnu__::__const__]] 29761: const error_category& 29761: generic_category() noexcept; 29761: 29761: 29761: [[__nodiscard__, __gnu__::__const__]] 29761: const error_category& 29761: system_category() noexcept; 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: namespace __adl_only 29761: { 29761: void make_error_code() = delete; 29761: void make_error_condition() = delete; 29761: } 29761: # 223 "/usr/include/c++/14/system_error" 3 29761: class error_code 29761: { 29761: template 29761: using _Check 29761: = __enable_if_t::value>; 29761: 29761: public: 29761: error_code() noexcept 29761: : _M_value(0), _M_cat(&system_category()) { } 29761: 29761: error_code(int __v, const error_category& __cat) noexcept 29761: : _M_value(__v), _M_cat(&__cat) { } 29761: 29761: 29761: template> 29761: error_code(_ErrorCodeEnum __e) noexcept 29761: { 29761: using __adl_only::make_error_code; 29761: *this = make_error_code(__e); 29761: } 29761: 29761: error_code(const error_code&) = default; 29761: error_code& operator=(const error_code&) = default; 29761: 29761: void 29761: assign(int __v, const error_category& __cat) noexcept 29761: { 29761: _M_value = __v; 29761: _M_cat = &__cat; 29761: } 29761: 29761: void 29761: clear() noexcept 29761: { assign(0, system_category()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: int 29761: value() const noexcept { return _M_value; } 29761: 29761: 29761: [[__nodiscard__]] 29761: const error_category& 29761: category() const noexcept { return *_M_cat; } 29761: 29761: 29761: error_condition 29761: default_error_condition() const noexcept; 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: string 29761: message() const 29761: { return category().message(value()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: explicit operator bool() const noexcept 29761: { return _M_value != 0; } 29761: 29761: 29761: private: 29761: int _M_value; 29761: const error_category* _M_cat; 29761: }; 29761: # 300 "/usr/include/c++/14/system_error" 3 29761: [[__nodiscard__]] 29761: inline error_code 29761: make_error_code(errc __e) noexcept 29761: { return error_code(static_cast(__e), generic_category()); } 29761: # 323 "/usr/include/c++/14/system_error" 3 29761: inline bool 29761: operator<(const error_code& __lhs, const error_code& __rhs) noexcept 29761: { 29761: return (__lhs.category() < __rhs.category() 29761: || (__lhs.category() == __rhs.category() 29761: && __lhs.value() < __rhs.value())); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) 29761: { return (__os << __e.category().name() << ':' << __e.value()); } 29761: # 354 "/usr/include/c++/14/system_error" 3 29761: class error_condition 29761: { 29761: template 29761: using _Check 29761: = __enable_if_t::value>; 29761: 29761: public: 29761: 29761: error_condition() noexcept 29761: : _M_value(0), _M_cat(&generic_category()) { } 29761: 29761: 29761: error_condition(int __v, const error_category& __cat) noexcept 29761: : _M_value(__v), _M_cat(&__cat) { } 29761: 29761: 29761: template> 29761: error_condition(_ErrorConditionEnum __e) noexcept 29761: { 29761: using __adl_only::make_error_condition; 29761: *this = make_error_condition(__e); 29761: } 29761: 29761: error_condition(const error_condition&) = default; 29761: error_condition& operator=(const error_condition&) = default; 29761: 29761: 29761: void 29761: assign(int __v, const error_category& __cat) noexcept 29761: { 29761: _M_value = __v; 29761: _M_cat = &__cat; 29761: } 29761: 29761: 29761: void 29761: clear() noexcept 29761: { assign(0, generic_category()); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: int 29761: value() const noexcept { return _M_value; } 29761: 29761: 29761: [[__nodiscard__]] 29761: const error_category& 29761: category() const noexcept { return *_M_cat; } 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: string 29761: message() const 29761: { return category().message(value()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: explicit operator bool() const noexcept 29761: { return _M_value != 0; } 29761: 29761: 29761: private: 29761: int _M_value; 29761: const error_category* _M_cat; 29761: }; 29761: # 433 "/usr/include/c++/14/system_error" 3 29761: [[__nodiscard__]] 29761: inline error_condition 29761: make_error_condition(errc __e) noexcept 29761: { return error_condition(static_cast(__e), generic_category()); } 29761: # 447 "/usr/include/c++/14/system_error" 3 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const error_code& __lhs, const error_code& __rhs) noexcept 29761: { 29761: return __lhs.category() == __rhs.category() 29761: && __lhs.value() == __rhs.value(); 29761: } 29761: # 463 "/usr/include/c++/14/system_error" 3 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const error_code& __lhs, const error_condition& __rhs) noexcept 29761: { 29761: return __lhs.category().equivalent(__lhs.value(), __rhs) 29761: || __rhs.category().equivalent(__lhs, __rhs.value()); 29761: } 29761: # 478 "/usr/include/c++/14/system_error" 3 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const error_condition& __lhs, 29761: const error_condition& __rhs) noexcept 29761: { 29761: return __lhs.category() == __rhs.category() 29761: && __lhs.value() == __rhs.value(); 29761: } 29761: # 506 "/usr/include/c++/14/system_error" 3 29761: inline bool 29761: operator<(const error_condition& __lhs, 29761: const error_condition& __rhs) noexcept 29761: { 29761: return (__lhs.category() < __rhs.category() 29761: || (__lhs.category() == __rhs.category() 29761: && __lhs.value() < __rhs.value())); 29761: } 29761: 29761: 29761: inline bool 29761: operator==(const error_condition& __lhs, const error_code& __rhs) noexcept 29761: { 29761: return (__rhs.category().equivalent(__rhs.value(), __lhs) 29761: || __lhs.category().equivalent(__rhs, __lhs.value())); 29761: } 29761: 29761: 29761: inline bool 29761: operator!=(const error_code& __lhs, const error_code& __rhs) noexcept 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: inline bool 29761: operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: inline bool 29761: operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: inline bool 29761: operator!=(const error_condition& __lhs, 29761: const error_condition& __rhs) noexcept 29761: { return !(__lhs == __rhs); } 29761: # 556 "/usr/include/c++/14/system_error" 3 29761: class system_error : public std::runtime_error 29761: { 29761: private: 29761: error_code _M_code; 29761: 29761: public: 29761: system_error(error_code __ec = error_code()) 29761: : runtime_error(__ec.message()), _M_code(__ec) { } 29761: 29761: system_error(error_code __ec, const string& __what) 29761: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 29761: 29761: system_error(error_code __ec, const char* __what) 29761: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 29761: 29761: system_error(int __v, const error_category& __ecat, const char* __what) 29761: : system_error(error_code(__v, __ecat), __what) { } 29761: 29761: system_error(int __v, const error_category& __ecat) 29761: : runtime_error(error_code(__v, __ecat).message()), 29761: _M_code(__v, __ecat) { } 29761: 29761: system_error(int __v, const error_category& __ecat, const string& __what) 29761: : runtime_error(__what + (": " + error_code(__v, __ecat).message())), 29761: _M_code(__v, __ecat) { } 29761: 29761: 29761: system_error (const system_error &) = default; 29761: system_error &operator= (const system_error &) = default; 29761: 29761: 29761: virtual ~system_error() noexcept; 29761: 29761: const error_code& 29761: code() const noexcept { return _M_code; } 29761: }; 29761: 29761: 29761: } 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: size_t 29761: operator()(const error_code& __e) const noexcept 29761: { 29761: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 29761: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: size_t 29761: operator()(const error_condition& __e) const noexcept 29761: { 29761: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 29761: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 29761: } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 47 "/usr/include/c++/14/bits/ios_base.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum _Ios_Fmtflags 29761: { 29761: _S_boolalpha = 1L << 0, 29761: _S_dec = 1L << 1, 29761: _S_fixed = 1L << 2, 29761: _S_hex = 1L << 3, 29761: _S_internal = 1L << 4, 29761: _S_left = 1L << 5, 29761: _S_oct = 1L << 6, 29761: _S_right = 1L << 7, 29761: _S_scientific = 1L << 8, 29761: _S_showbase = 1L << 9, 29761: _S_showpoint = 1L << 10, 29761: _S_showpos = 1L << 11, 29761: _S_skipws = 1L << 12, 29761: _S_unitbuf = 1L << 13, 29761: _S_uppercase = 1L << 14, 29761: _S_adjustfield = _S_left | _S_right | _S_internal, 29761: _S_basefield = _S_dec | _S_oct | _S_hex, 29761: _S_floatfield = _S_scientific | _S_fixed, 29761: _S_ios_fmtflags_end = 1L << 16, 29761: _S_ios_fmtflags_max = 0x7fffffff, 29761: _S_ios_fmtflags_min = ~0x7fffffff 29761: }; 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Fmtflags 29761: operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29761: { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Fmtflags 29761: operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29761: { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Fmtflags 29761: operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29761: { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Fmtflags 29761: operator~(_Ios_Fmtflags __a) noexcept 29761: { return _Ios_Fmtflags(~static_cast(__a)); } 29761: 29761: constexpr 29761: inline const _Ios_Fmtflags& 29761: operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29761: { return __a = __a | __b; } 29761: 29761: constexpr 29761: inline const _Ios_Fmtflags& 29761: operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29761: { return __a = __a & __b; } 29761: 29761: constexpr 29761: inline const _Ios_Fmtflags& 29761: operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29761: { return __a = __a ^ __b; } 29761: 29761: 29761: enum _Ios_Openmode 29761: { 29761: _S_app = 1L << 0, 29761: _S_ate = 1L << 1, 29761: _S_bin = 1L << 2, 29761: _S_in = 1L << 3, 29761: _S_out = 1L << 4, 29761: _S_trunc = 1L << 5, 29761: _S_noreplace = 1L << 6, 29761: _S_ios_openmode_end = 1L << 16, 29761: _S_ios_openmode_max = 0x7fffffff, 29761: _S_ios_openmode_min = ~0x7fffffff 29761: }; 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Openmode 29761: operator&(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29761: { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Openmode 29761: operator|(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29761: { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Openmode 29761: operator^(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29761: { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Openmode 29761: operator~(_Ios_Openmode __a) noexcept 29761: { return _Ios_Openmode(~static_cast(__a)); } 29761: 29761: constexpr 29761: inline const _Ios_Openmode& 29761: operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29761: { return __a = __a | __b; } 29761: 29761: constexpr 29761: inline const _Ios_Openmode& 29761: operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29761: { return __a = __a & __b; } 29761: 29761: constexpr 29761: inline const _Ios_Openmode& 29761: operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29761: { return __a = __a ^ __b; } 29761: 29761: 29761: enum _Ios_Iostate 29761: { 29761: _S_goodbit = 0, 29761: _S_badbit = 1L << 0, 29761: _S_eofbit = 1L << 1, 29761: _S_failbit = 1L << 2, 29761: _S_ios_iostate_end = 1L << 16, 29761: _S_ios_iostate_max = 0x7fffffff, 29761: _S_ios_iostate_min = ~0x7fffffff 29761: }; 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Iostate 29761: operator&(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29761: { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Iostate 29761: operator|(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29761: { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Iostate 29761: operator^(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29761: { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Iostate 29761: operator~(_Ios_Iostate __a) noexcept 29761: { return _Ios_Iostate(~static_cast(__a)); } 29761: 29761: constexpr 29761: inline const _Ios_Iostate& 29761: operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29761: { return __a = __a | __b; } 29761: 29761: constexpr 29761: inline const _Ios_Iostate& 29761: operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29761: { return __a = __a & __b; } 29761: 29761: constexpr 29761: inline const _Ios_Iostate& 29761: operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29761: { return __a = __a ^ __b; } 29761: 29761: 29761: enum _Ios_Seekdir 29761: { 29761: _S_beg = 0, 29761: _S_cur = 1, 29761: _S_end = 2, 29761: _S_ios_seekdir_end = 1L << 16 29761: }; 29761: 29761: 29761: 29761: enum class io_errc { stream = 1 }; 29761: 29761: template <> struct is_error_code_enum : public true_type { }; 29761: 29761: [[__nodiscard__, __gnu__::__const__]] 29761: const error_category& 29761: iostream_category() noexcept; 29761: 29761: [[__nodiscard__]] 29761: inline error_code 29761: make_error_code(io_errc __e) noexcept 29761: { return error_code(static_cast(__e), iostream_category()); } 29761: 29761: [[__nodiscard__]] 29761: inline error_condition 29761: make_error_condition(io_errc __e) noexcept 29761: { return error_condition(static_cast(__e), iostream_category()); } 29761: # 254 "/usr/include/c++/14/bits/ios_base.h" 3 29761: class ios_base 29761: { 29761: # 272 "/usr/include/c++/14/bits/ios_base.h" 3 29761: public: 29761: # 281 "/usr/include/c++/14/bits/ios_base.h" 3 29761: class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error 29761: { 29761: public: 29761: explicit 29761: failure(const string& __str); 29761: 29761: 29761: explicit 29761: failure(const string&, const error_code&); 29761: 29761: explicit 29761: failure(const char*, const error_code& = io_errc::stream); 29761: 29761: 29761: virtual 29761: ~failure() throw(); 29761: 29761: virtual const char* 29761: what() const throw(); 29761: }; 29761: # 367 "/usr/include/c++/14/bits/ios_base.h" 3 29761: typedef _Ios_Fmtflags fmtflags; 29761: 29761: 29761: static const fmtflags boolalpha = _S_boolalpha; 29761: 29761: 29761: static const fmtflags dec = _S_dec; 29761: 29761: 29761: static const fmtflags fixed = _S_fixed; 29761: 29761: 29761: static const fmtflags hex = _S_hex; 29761: 29761: 29761: 29761: 29761: static const fmtflags internal = _S_internal; 29761: 29761: 29761: 29761: static const fmtflags left = _S_left; 29761: 29761: 29761: static const fmtflags oct = _S_oct; 29761: 29761: 29761: 29761: static const fmtflags right = _S_right; 29761: 29761: 29761: static const fmtflags scientific = _S_scientific; 29761: 29761: 29761: 29761: static const fmtflags showbase = _S_showbase; 29761: 29761: 29761: 29761: static const fmtflags showpoint = _S_showpoint; 29761: 29761: 29761: static const fmtflags showpos = _S_showpos; 29761: 29761: 29761: static const fmtflags skipws = _S_skipws; 29761: 29761: 29761: static const fmtflags unitbuf = _S_unitbuf; 29761: 29761: 29761: 29761: static const fmtflags uppercase = _S_uppercase; 29761: 29761: 29761: static const fmtflags adjustfield = _S_adjustfield; 29761: 29761: 29761: static const fmtflags basefield = _S_basefield; 29761: 29761: 29761: static const fmtflags floatfield = _S_floatfield; 29761: # 442 "/usr/include/c++/14/bits/ios_base.h" 3 29761: typedef _Ios_Iostate iostate; 29761: 29761: 29761: 29761: static const iostate badbit = _S_badbit; 29761: 29761: 29761: static const iostate eofbit = _S_eofbit; 29761: 29761: 29761: 29761: 29761: static const iostate failbit = _S_failbit; 29761: 29761: 29761: static const iostate goodbit = _S_goodbit; 29761: # 473 "/usr/include/c++/14/bits/ios_base.h" 3 29761: typedef _Ios_Openmode openmode; 29761: 29761: 29761: static const openmode app = _S_app; 29761: 29761: 29761: static const openmode ate = _S_ate; 29761: 29761: 29761: 29761: 29761: static const openmode binary = _S_bin; 29761: 29761: 29761: static const openmode in = _S_in; 29761: 29761: 29761: static const openmode out = _S_out; 29761: 29761: 29761: static const openmode trunc = _S_trunc; 29761: 29761: static const openmode __noreplace = _S_noreplace; 29761: # 512 "/usr/include/c++/14/bits/ios_base.h" 3 29761: typedef _Ios_Seekdir seekdir; 29761: 29761: 29761: static const seekdir beg = _S_beg; 29761: 29761: 29761: static const seekdir cur = _S_cur; 29761: 29761: 29761: static const seekdir end = _S_end; 29761: # 545 "/usr/include/c++/14/bits/ios_base.h" 3 29761: enum event 29761: { 29761: erase_event, 29761: imbue_event, 29761: copyfmt_event 29761: }; 29761: # 562 "/usr/include/c++/14/bits/ios_base.h" 3 29761: typedef void (*event_callback) (event __e, ios_base& __b, int __i); 29761: # 574 "/usr/include/c++/14/bits/ios_base.h" 3 29761: void 29761: register_callback(event_callback __fn, int __index); 29761: 29761: protected: 29761: streamsize _M_precision; 29761: streamsize _M_width; 29761: fmtflags _M_flags; 29761: iostate _M_exception; 29761: iostate _M_streambuf_state; 29761: 29761: 29761: 29761: struct _Callback_list 29761: { 29761: 29761: _Callback_list* _M_next; 29761: ios_base::event_callback _M_fn; 29761: int _M_index; 29761: _Atomic_word _M_refcount; 29761: 29761: _Callback_list(ios_base::event_callback __fn, int __index, 29761: _Callback_list* __cb) 29761: : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } 29761: 29761: void 29761: _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29761: 29761: 29761: int 29761: _M_remove_reference() 29761: { 29761: 29761: ; 29761: int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); 29761: if (__res == 0) 29761: { 29761: ; 29761: } 29761: return __res; 29761: } 29761: }; 29761: 29761: _Callback_list* _M_callbacks; 29761: 29761: void 29761: _M_call_callbacks(event __ev) throw(); 29761: 29761: void 29761: _M_dispose_callbacks(void) throw(); 29761: 29761: 29761: struct _Words 29761: { 29761: void* _M_pword; 29761: long _M_iword; 29761: _Words() : _M_pword(0), _M_iword(0) { } 29761: }; 29761: 29761: 29761: _Words _M_word_zero; 29761: 29761: 29761: 29761: enum { _S_local_word_size = 8 }; 29761: _Words _M_local_word[_S_local_word_size]; 29761: 29761: 29761: int _M_word_size; 29761: _Words* _M_word; 29761: 29761: _Words& 29761: _M_grow_words(int __index, bool __iword); 29761: 29761: 29761: locale _M_ios_locale; 29761: 29761: void 29761: _M_init() throw(); 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: class Init 29761: { 29761: friend class ios_base; 29761: public: 29761: Init(); 29761: ~Init(); 29761: 29761: 29761: Init(const Init&) = default; 29761: Init& operator=(const Init&) = default; 29761: 29761: 29761: private: 29761: static _Atomic_word _S_refcount; 29761: static bool _S_synced_with_stdio; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: fmtflags 29761: flags() const 29761: { return _M_flags; } 29761: # 692 "/usr/include/c++/14/bits/ios_base.h" 3 29761: fmtflags 29761: flags(fmtflags __fmtfl) 29761: { 29761: fmtflags __old = _M_flags; 29761: _M_flags = __fmtfl; 29761: return __old; 29761: } 29761: # 708 "/usr/include/c++/14/bits/ios_base.h" 3 29761: fmtflags 29761: setf(fmtflags __fmtfl) 29761: { 29761: fmtflags __old = _M_flags; 29761: _M_flags |= __fmtfl; 29761: return __old; 29761: } 29761: # 725 "/usr/include/c++/14/bits/ios_base.h" 3 29761: fmtflags 29761: setf(fmtflags __fmtfl, fmtflags __mask) 29761: { 29761: fmtflags __old = _M_flags; 29761: _M_flags &= ~__mask; 29761: _M_flags |= (__fmtfl & __mask); 29761: return __old; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: unsetf(fmtflags __mask) 29761: { _M_flags &= ~__mask; } 29761: # 751 "/usr/include/c++/14/bits/ios_base.h" 3 29761: streamsize 29761: precision() const 29761: { return _M_precision; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: streamsize 29761: precision(streamsize __prec) 29761: { 29761: streamsize __old = _M_precision; 29761: _M_precision = __prec; 29761: return __old; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: streamsize 29761: width() const 29761: { return _M_width; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: streamsize 29761: width(streamsize __wide) 29761: { 29761: streamsize __old = _M_width; 29761: _M_width = __wide; 29761: return __old; 29761: } 29761: # 802 "/usr/include/c++/14/bits/ios_base.h" 3 29761: static bool 29761: sync_with_stdio(bool __sync = true); 29761: # 814 "/usr/include/c++/14/bits/ios_base.h" 3 29761: locale 29761: imbue(const locale& __loc) throw(); 29761: # 825 "/usr/include/c++/14/bits/ios_base.h" 3 29761: locale 29761: getloc() const 29761: { return _M_ios_locale; } 29761: # 836 "/usr/include/c++/14/bits/ios_base.h" 3 29761: const locale& 29761: _M_getloc() const 29761: { return _M_ios_locale; } 29761: # 855 "/usr/include/c++/14/bits/ios_base.h" 3 29761: static int 29761: xalloc() throw(); 29761: # 871 "/usr/include/c++/14/bits/ios_base.h" 3 29761: long& 29761: iword(int __ix) 29761: { 29761: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 29761: ? _M_word[__ix] : _M_grow_words(__ix, true); 29761: return __word._M_iword; 29761: } 29761: # 892 "/usr/include/c++/14/bits/ios_base.h" 3 29761: void*& 29761: pword(int __ix) 29761: { 29761: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 29761: ? _M_word[__ix] : _M_grow_words(__ix, false); 29761: return __word._M_pword; 29761: } 29761: # 909 "/usr/include/c++/14/bits/ios_base.h" 3 29761: virtual ~ios_base(); 29761: 29761: protected: 29761: ios_base() throw (); 29761: # 923 "/usr/include/c++/14/bits/ios_base.h" 3 29761: public: 29761: ios_base(const ios_base&) = delete; 29761: 29761: ios_base& 29761: operator=(const ios_base&) = delete; 29761: 29761: protected: 29761: void 29761: _M_move(ios_base&) noexcept; 29761: 29761: void 29761: _M_swap(ios_base& __rhs) noexcept; 29761: 29761: }; 29761: 29761: 29761: 29761: inline ios_base& 29761: boolalpha(ios_base& __base) 29761: { 29761: __base.setf(ios_base::boolalpha); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: noboolalpha(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::boolalpha); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: showbase(ios_base& __base) 29761: { 29761: __base.setf(ios_base::showbase); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: noshowbase(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::showbase); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: showpoint(ios_base& __base) 29761: { 29761: __base.setf(ios_base::showpoint); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: noshowpoint(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::showpoint); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: showpos(ios_base& __base) 29761: { 29761: __base.setf(ios_base::showpos); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: noshowpos(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::showpos); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: skipws(ios_base& __base) 29761: { 29761: __base.setf(ios_base::skipws); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: noskipws(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::skipws); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: uppercase(ios_base& __base) 29761: { 29761: __base.setf(ios_base::uppercase); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: nouppercase(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::uppercase); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: unitbuf(ios_base& __base) 29761: { 29761: __base.setf(ios_base::unitbuf); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: nounitbuf(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::unitbuf); 29761: return __base; 29761: } 29761: 29761: 29761: 29761: inline ios_base& 29761: internal(ios_base& __base) 29761: { 29761: __base.setf(ios_base::internal, ios_base::adjustfield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: left(ios_base& __base) 29761: { 29761: __base.setf(ios_base::left, ios_base::adjustfield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: right(ios_base& __base) 29761: { 29761: __base.setf(ios_base::right, ios_base::adjustfield); 29761: return __base; 29761: } 29761: 29761: 29761: 29761: inline ios_base& 29761: dec(ios_base& __base) 29761: { 29761: __base.setf(ios_base::dec, ios_base::basefield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: hex(ios_base& __base) 29761: { 29761: __base.setf(ios_base::hex, ios_base::basefield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: oct(ios_base& __base) 29761: { 29761: __base.setf(ios_base::oct, ios_base::basefield); 29761: return __base; 29761: } 29761: 29761: 29761: 29761: inline ios_base& 29761: fixed(ios_base& __base) 29761: { 29761: __base.setf(ios_base::fixed, ios_base::floatfield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: scientific(ios_base& __base) 29761: { 29761: __base.setf(ios_base::scientific, ios_base::floatfield); 29761: return __base; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline ios_base& 29761: hexfloat(ios_base& __base) 29761: { 29761: __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: defaultfloat(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::floatfield); 29761: return __base; 29761: } 29761: 29761: 29761: 29761: } 29761: # 45 "/usr/include/c++/14/ios" 2 3 29761: # 1 "/usr/include/c++/14/streambuf" 1 3 29761: # 36 "/usr/include/c++/14/streambuf" 3 29761: 29761: # 37 "/usr/include/c++/14/streambuf" 3 29761: # 47 "/usr/include/c++/14/streambuf" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: streamsize 29761: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, 29761: basic_streambuf<_CharT, _Traits>*, bool&); 29761: # 123 "/usr/include/c++/14/streambuf" 3 29761: template 29761: class basic_streambuf 29761: { 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: 29761: 29761: typedef basic_streambuf __streambuf_type; 29761: 29761: 29761: friend class basic_ios; 29761: friend class basic_istream; 29761: friend class basic_ostream; 29761: friend class istreambuf_iterator; 29761: friend class ostreambuf_iterator; 29761: 29761: friend streamsize 29761: __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: _CharT2*>::__type 29761: __copy_move_a2(istreambuf_iterator<_CharT2>, 29761: istreambuf_iterator<_CharT2>, _CharT2*); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: istreambuf_iterator<_CharT2> >::__type 29761: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29761: const _CharT2&); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: void>::__type 29761: advance(istreambuf_iterator<_CharT2>&, _Distance); 29761: 29761: friend void __istream_extract(istream&, char*, streamsize); 29761: 29761: template 29761: friend basic_istream<_CharT2, _Traits2>& 29761: operator>>(basic_istream<_CharT2, _Traits2>&, 29761: basic_string<_CharT2, _Traits2, _Alloc>&); 29761: 29761: template 29761: friend basic_istream<_CharT2, _Traits2>& 29761: getline(basic_istream<_CharT2, _Traits2>&, 29761: basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: char_type* _M_in_beg; 29761: char_type* _M_in_cur; 29761: char_type* _M_in_end; 29761: char_type* _M_out_beg; 29761: char_type* _M_out_cur; 29761: char_type* _M_out_end; 29761: 29761: 29761: locale _M_buf_locale; 29761: 29761: public: 29761: 29761: virtual 29761: ~basic_streambuf() 29761: { } 29761: # 215 "/usr/include/c++/14/streambuf" 3 29761: locale 29761: pubimbue(const locale& __loc) 29761: { 29761: locale __tmp(this->getloc()); 29761: this->imbue(__loc); 29761: _M_buf_locale = __loc; 29761: return __tmp; 29761: } 29761: # 232 "/usr/include/c++/14/streambuf" 3 29761: locale 29761: getloc() const 29761: { return _M_buf_locale; } 29761: # 245 "/usr/include/c++/14/streambuf" 3 29761: basic_streambuf* 29761: pubsetbuf(char_type* __s, streamsize __n) 29761: { return this->setbuf(__s, __n); } 29761: # 257 "/usr/include/c++/14/streambuf" 3 29761: pos_type 29761: pubseekoff(off_type __off, ios_base::seekdir __way, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: { return this->seekoff(__off, __way, __mode); } 29761: # 269 "/usr/include/c++/14/streambuf" 3 29761: pos_type 29761: pubseekpos(pos_type __sp, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: { return this->seekpos(__sp, __mode); } 29761: 29761: 29761: 29761: 29761: int 29761: pubsync() { return this->sync(); } 29761: # 290 "/usr/include/c++/14/streambuf" 3 29761: streamsize 29761: in_avail() 29761: { 29761: const streamsize __ret = this->egptr() - this->gptr(); 29761: return __ret ? __ret : this->showmanyc(); 29761: } 29761: # 304 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: snextc() 29761: { 29761: int_type __ret = traits_type::eof(); 29761: if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), 29761: __ret), true)) 29761: __ret = this->sgetc(); 29761: return __ret; 29761: } 29761: # 322 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: sbumpc() 29761: { 29761: int_type __ret; 29761: if (__builtin_expect(this->gptr() < this->egptr(), true)) 29761: { 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: this->gbump(1); 29761: } 29761: else 29761: __ret = this->uflow(); 29761: return __ret; 29761: } 29761: # 344 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: sgetc() 29761: { 29761: int_type __ret; 29761: if (__builtin_expect(this->gptr() < this->egptr(), true)) 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: else 29761: __ret = this->underflow(); 29761: return __ret; 29761: } 29761: # 363 "/usr/include/c++/14/streambuf" 3 29761: streamsize 29761: sgetn(char_type* __s, streamsize __n) 29761: { return this->xsgetn(__s, __n); } 29761: # 378 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: sputbackc(char_type __c) 29761: { 29761: int_type __ret; 29761: const bool __testpos = this->eback() < this->gptr(); 29761: if (__builtin_expect(!__testpos || 29761: !traits_type::eq(__c, this->gptr()[-1]), false)) 29761: __ret = this->pbackfail(traits_type::to_int_type(__c)); 29761: else 29761: { 29761: this->gbump(-1); 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: } 29761: return __ret; 29761: } 29761: # 403 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: sungetc() 29761: { 29761: int_type __ret; 29761: if (__builtin_expect(this->eback() < this->gptr(), true)) 29761: { 29761: this->gbump(-1); 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: } 29761: else 29761: __ret = this->pbackfail(); 29761: return __ret; 29761: } 29761: # 430 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: sputc(char_type __c) 29761: { 29761: int_type __ret; 29761: if (__builtin_expect(this->pptr() < this->epptr(), true)) 29761: { 29761: *this->pptr() = __c; 29761: this->pbump(1); 29761: __ret = traits_type::to_int_type(__c); 29761: } 29761: else 29761: __ret = this->overflow(traits_type::to_int_type(__c)); 29761: return __ret; 29761: } 29761: # 456 "/usr/include/c++/14/streambuf" 3 29761: streamsize 29761: sputn(const char_type* __s, streamsize __n) 29761: { return this->xsputn(__s, __n); } 29761: 29761: protected: 29761: # 470 "/usr/include/c++/14/streambuf" 3 29761: basic_streambuf() 29761: : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), 29761: _M_out_beg(0), _M_out_cur(0), _M_out_end(0), 29761: _M_buf_locale(locale()) 29761: { } 29761: # 488 "/usr/include/c++/14/streambuf" 3 29761: char_type* 29761: eback() const { return _M_in_beg; } 29761: 29761: char_type* 29761: gptr() const { return _M_in_cur; } 29761: 29761: char_type* 29761: egptr() const { return _M_in_end; } 29761: # 504 "/usr/include/c++/14/streambuf" 3 29761: void 29761: gbump(int __n) { _M_in_cur += __n; } 29761: # 515 "/usr/include/c++/14/streambuf" 3 29761: void 29761: setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) 29761: { 29761: _M_in_beg = __gbeg; 29761: _M_in_cur = __gnext; 29761: _M_in_end = __gend; 29761: } 29761: # 535 "/usr/include/c++/14/streambuf" 3 29761: char_type* 29761: pbase() const { return _M_out_beg; } 29761: 29761: char_type* 29761: pptr() const { return _M_out_cur; } 29761: 29761: char_type* 29761: epptr() const { return _M_out_end; } 29761: # 551 "/usr/include/c++/14/streambuf" 3 29761: void 29761: pbump(int __n) { _M_out_cur += __n; } 29761: # 561 "/usr/include/c++/14/streambuf" 3 29761: void 29761: setp(char_type* __pbeg, char_type* __pend) 29761: { 29761: _M_out_beg = _M_out_cur = __pbeg; 29761: _M_out_end = __pend; 29761: } 29761: # 582 "/usr/include/c++/14/streambuf" 3 29761: virtual void 29761: imbue(const locale& __loc __attribute__ ((__unused__))) 29761: { } 29761: # 597 "/usr/include/c++/14/streambuf" 3 29761: virtual basic_streambuf* 29761: setbuf(char_type*, streamsize) 29761: { return this; } 29761: # 608 "/usr/include/c++/14/streambuf" 3 29761: virtual pos_type 29761: seekoff(off_type, ios_base::seekdir, 29761: ios_base::openmode = ios_base::in | ios_base::out) 29761: { return pos_type(off_type(-1)); } 29761: # 620 "/usr/include/c++/14/streambuf" 3 29761: virtual pos_type 29761: seekpos(pos_type, 29761: ios_base::openmode = ios_base::in | ios_base::out) 29761: { return pos_type(off_type(-1)); } 29761: # 633 "/usr/include/c++/14/streambuf" 3 29761: virtual int 29761: sync() { return 0; } 29761: # 655 "/usr/include/c++/14/streambuf" 3 29761: virtual streamsize 29761: showmanyc() { return 0; } 29761: # 671 "/usr/include/c++/14/streambuf" 3 29761: virtual streamsize 29761: xsgetn(char_type* __s, streamsize __n); 29761: # 693 "/usr/include/c++/14/streambuf" 3 29761: virtual int_type 29761: underflow() 29761: { return traits_type::eof(); } 29761: # 706 "/usr/include/c++/14/streambuf" 3 29761: virtual int_type 29761: uflow() 29761: { 29761: int_type __ret = traits_type::eof(); 29761: const bool __testeof = traits_type::eq_int_type(this->underflow(), 29761: __ret); 29761: if (!__testeof) 29761: { 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: this->gbump(1); 29761: } 29761: return __ret; 29761: } 29761: # 730 "/usr/include/c++/14/streambuf" 3 29761: virtual int_type 29761: pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 29761: { return traits_type::eof(); } 29761: # 748 "/usr/include/c++/14/streambuf" 3 29761: virtual streamsize 29761: xsputn(const char_type* __s, streamsize __n); 29761: # 774 "/usr/include/c++/14/streambuf" 3 29761: virtual int_type 29761: overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 29761: { return traits_type::eof(); } 29761: # 801 "/usr/include/c++/14/streambuf" 3 29761: void 29761: __safe_gbump(streamsize __n) { _M_in_cur += __n; } 29761: 29761: void 29761: __safe_pbump(streamsize __n) { _M_out_cur += __n; } 29761: 29761: 29761: 29761: 29761: protected: 29761: 29761: basic_streambuf(const basic_streambuf&); 29761: 29761: basic_streambuf& 29761: operator=(const basic_streambuf&); 29761: 29761: 29761: void 29761: swap(basic_streambuf& __sb) 29761: { 29761: std::swap(_M_in_beg, __sb._M_in_beg); 29761: std::swap(_M_in_cur, __sb._M_in_cur); 29761: std::swap(_M_in_end, __sb._M_in_end); 29761: std::swap(_M_out_beg, __sb._M_out_beg); 29761: std::swap(_M_out_cur, __sb._M_out_cur); 29761: std::swap(_M_out_end, __sb._M_out_end); 29761: std::swap(_M_buf_locale, __sb._M_buf_locale); 29761: } 29761: 29761: }; 29761: 29761: 29761: template 29761: std::basic_streambuf<_CharT, _Traits>:: 29761: basic_streambuf(const basic_streambuf&) = default; 29761: 29761: template 29761: std::basic_streambuf<_CharT, _Traits>& 29761: std::basic_streambuf<_CharT, _Traits>:: 29761: operator=(const basic_streambuf&) = default; 29761: 29761: 29761: 29761: template<> 29761: streamsize 29761: __copy_streambufs_eof(basic_streambuf* __sbin, 29761: basic_streambuf* __sbout, bool& __ineof); 29761: 29761: template<> 29761: streamsize 29761: __copy_streambufs_eof(basic_streambuf* __sbin, 29761: basic_streambuf* __sbout, bool& __ineof); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/streambuf.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/streambuf.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/streambuf.tcc" 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: streamsize 29761: basic_streambuf<_CharT, _Traits>:: 29761: xsgetn(char_type* __s, streamsize __n) 29761: { 29761: streamsize __ret = 0; 29761: while (__ret < __n) 29761: { 29761: const streamsize __buf_len = this->egptr() - this->gptr(); 29761: if (__buf_len) 29761: { 29761: const streamsize __remaining = __n - __ret; 29761: const streamsize __len = std::min(__buf_len, __remaining); 29761: traits_type::copy(__s, this->gptr(), __len); 29761: __ret += __len; 29761: __s += __len; 29761: this->__safe_gbump(__len); 29761: } 29761: 29761: if (__ret < __n) 29761: { 29761: const int_type __c = this->uflow(); 29761: if (!traits_type::eq_int_type(__c, traits_type::eof())) 29761: { 29761: traits_type::assign(*__s++, traits_type::to_char_type(__c)); 29761: ++__ret; 29761: } 29761: else 29761: break; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: streamsize 29761: basic_streambuf<_CharT, _Traits>:: 29761: xsputn(const char_type* __s, streamsize __n) 29761: { 29761: streamsize __ret = 0; 29761: while (__ret < __n) 29761: { 29761: const streamsize __buf_len = this->epptr() - this->pptr(); 29761: if (__buf_len) 29761: { 29761: const streamsize __remaining = __n - __ret; 29761: const streamsize __len = std::min(__buf_len, __remaining); 29761: traits_type::copy(this->pptr(), __s, __len); 29761: __ret += __len; 29761: __s += __len; 29761: this->__safe_pbump(__len); 29761: } 29761: 29761: if (__ret < __n) 29761: { 29761: int_type __c = this->overflow(traits_type::to_int_type(*__s)); 29761: if (!traits_type::eq_int_type(__c, traits_type::eof())) 29761: { 29761: ++__ret; 29761: ++__s; 29761: } 29761: else 29761: break; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: streamsize 29761: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, 29761: basic_streambuf<_CharT, _Traits>* __sbout, 29761: bool& __ineof) 29761: { 29761: streamsize __ret = 0; 29761: __ineof = true; 29761: typename _Traits::int_type __c = __sbin->sgetc(); 29761: while (!_Traits::eq_int_type(__c, _Traits::eof())) 29761: { 29761: __c = __sbout->sputc(_Traits::to_char_type(__c)); 29761: if (_Traits::eq_int_type(__c, _Traits::eof())) 29761: { 29761: __ineof = false; 29761: break; 29761: } 29761: ++__ret; 29761: __c = __sbin->snextc(); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: inline streamsize 29761: __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, 29761: basic_streambuf<_CharT, _Traits>* __sbout) 29761: { 29761: bool __ineof; 29761: return __copy_streambufs_eof(__sbin, __sbout, __ineof); 29761: } 29761: 29761: 29761: 29761: 29761: extern template class basic_streambuf; 29761: 29761: extern template 29761: streamsize 29761: __copy_streambufs(basic_streambuf*, 29761: basic_streambuf*); 29761: 29761: 29761: extern template class basic_streambuf; 29761: 29761: extern template 29761: streamsize 29761: __copy_streambufs(basic_streambuf*, 29761: basic_streambuf*); 29761: 29761: 29761: 29761: 29761: } 29761: # 861 "/usr/include/c++/14/streambuf" 2 3 29761: # 46 "/usr/include/c++/14/ios" 2 3 29761: # 1 "/usr/include/c++/14/bits/basic_ios.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/locale_facets.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: 29761: # 1 "/usr/include/c++/14/cwctype" 1 3 29761: # 39 "/usr/include/c++/14/cwctype" 3 29761: 29761: # 40 "/usr/include/c++/14/cwctype" 3 29761: # 50 "/usr/include/c++/14/cwctype" 3 29761: # 1 "/usr/include/wctype.h" 1 3 4 29761: # 38 "/usr/include/wctype.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 1 3 4 29761: # 38 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29761: typedef unsigned long int wctype_t; 29761: # 56 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29761: enum 29761: { 29761: __ISwupper = 0, 29761: __ISwlower = 1, 29761: __ISwalpha = 2, 29761: __ISwdigit = 3, 29761: __ISwxdigit = 4, 29761: __ISwspace = 5, 29761: __ISwprint = 6, 29761: __ISwgraph = 7, 29761: __ISwblank = 8, 29761: __ISwcntrl = 9, 29761: __ISwpunct = 10, 29761: __ISwalnum = 11, 29761: 29761: _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), 29761: _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), 29761: _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), 29761: _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), 29761: _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), 29761: _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), 29761: _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), 29761: _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), 29761: _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), 29761: _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), 29761: _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), 29761: _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) 29761: }; 29761: 29761: 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int iswalnum (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int iswalpha (wint_t __wc) noexcept (true); 29761: 29761: 29761: extern int iswcntrl (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: extern int iswdigit (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: extern int iswgraph (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswlower (wint_t __wc) noexcept (true); 29761: 29761: 29761: extern int iswprint (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswpunct (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswspace (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswupper (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswxdigit (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int iswblank (wint_t __wc) noexcept (true); 29761: # 155 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29761: extern wctype_t wctype (const char *__property) noexcept (true); 29761: 29761: 29761: 29761: extern int iswctype (wint_t __wc, wctype_t __desc) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t towlower (wint_t __wc) noexcept (true); 29761: 29761: 29761: extern wint_t towupper (wint_t __wc) noexcept (true); 29761: 29761: } 29761: # 39 "/usr/include/wctype.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: typedef const __int32_t *wctrans_t; 29761: 29761: 29761: 29761: extern wctrans_t wctrans (const char *__property) noexcept (true); 29761: 29761: 29761: extern wint_t towctrans (wint_t __wc, wctrans_t __desc) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int iswalnum_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int iswalpha_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: extern int iswcntrl_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: extern int iswdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: extern int iswgraph_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswlower_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: extern int iswprint_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswpunct_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswspace_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswupper_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswxdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswblank_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: extern wctype_t wctype_l (const char *__property, locale_t __locale) 29761: noexcept (true); 29761: 29761: 29761: 29761: extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t towlower_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: extern wint_t towupper_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: extern wctrans_t wctrans_l (const char *__property, locale_t __locale) 29761: noexcept (true); 29761: 29761: 29761: extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, 29761: locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: } 29761: # 51 "/usr/include/c++/14/cwctype" 2 3 29761: # 80 "/usr/include/c++/14/cwctype" 3 29761: namespace std 29761: { 29761: using ::wctrans_t; 29761: using ::wctype_t; 29761: using ::wint_t; 29761: 29761: using ::iswalnum; 29761: using ::iswalpha; 29761: 29761: using ::iswblank; 29761: 29761: using ::iswcntrl; 29761: using ::iswctype; 29761: using ::iswdigit; 29761: using ::iswgraph; 29761: using ::iswlower; 29761: using ::iswprint; 29761: using ::iswpunct; 29761: using ::iswspace; 29761: using ::iswupper; 29761: using ::iswxdigit; 29761: using ::towctrans; 29761: using ::towlower; 29761: using ::towupper; 29761: using ::wctrans; 29761: using ::wctype; 29761: } 29761: # 40 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: # 1 "/usr/include/c++/14/cctype" 1 3 29761: # 39 "/usr/include/c++/14/cctype" 3 29761: 29761: # 40 "/usr/include/c++/14/cctype" 3 29761: # 41 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 1 3 29761: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: struct ctype_base 29761: { 29761: 29761: typedef const int* __to_type; 29761: 29761: 29761: 29761: typedef unsigned short mask; 29761: static const mask upper = _ISupper; 29761: static const mask lower = _ISlower; 29761: static const mask alpha = _ISalpha; 29761: static const mask digit = _ISdigit; 29761: static const mask xdigit = _ISxdigit; 29761: static const mask space = _ISspace; 29761: static const mask print = _ISprint; 29761: static const mask graph = _ISalpha | _ISdigit | _ISpunct; 29761: static const mask cntrl = _IScntrl; 29761: static const mask punct = _ISpunct; 29761: static const mask alnum = _ISalpha | _ISdigit; 29761: 29761: static const mask blank = _ISblank; 29761: 29761: }; 29761: 29761: 29761: } 29761: # 42 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/streambuf_iterator.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 49 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: class istreambuf_iterator 29761: : public iterator 29761: { 29761: public: 29761: # 70 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 29761: typedef basic_istream<_CharT, _Traits> istream_type; 29761: 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: ostreambuf_iterator<_CharT2> >::__type 29761: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29761: ostreambuf_iterator<_CharT2>); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: _CharT2*>::__type 29761: __copy_move_a2(istreambuf_iterator<_CharT2>, 29761: istreambuf_iterator<_CharT2>, _CharT2*); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: _CharT2*>::__type 29761: __copy_n_a(istreambuf_iterator<_CharT2>, _Size, _CharT2*, bool); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: istreambuf_iterator<_CharT2> >::__type 29761: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29761: const _CharT2&); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: void>::__type 29761: advance(istreambuf_iterator<_CharT2>&, _Distance); 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: mutable streambuf_type* _M_sbuf; 29761: int_type _M_c; 29761: 29761: public: 29761: 29761: constexpr istreambuf_iterator() noexcept 29761: : _M_sbuf(0), _M_c(traits_type::eof()) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: istreambuf_iterator(const istreambuf_iterator&) noexcept = default; 29761: 29761: ~istreambuf_iterator() = default; 29761: 29761: 29761: 29761: istreambuf_iterator(istream_type& __s) noexcept 29761: : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } 29761: 29761: 29761: istreambuf_iterator(streambuf_type* __s) noexcept 29761: : _M_sbuf(__s), _M_c(traits_type::eof()) { } 29761: 29761: 29761: istreambuf_iterator& 29761: operator=(const istreambuf_iterator&) noexcept = default; 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: char_type 29761: operator*() const 29761: { 29761: int_type __c = _M_get(); 29761: # 161 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: return traits_type::to_char_type(__c); 29761: } 29761: 29761: 29761: istreambuf_iterator& 29761: operator++() 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: _M_sbuf->sbumpc(); 29761: _M_c = traits_type::eof(); 29761: return *this; 29761: } 29761: 29761: 29761: istreambuf_iterator 29761: operator++(int) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: istreambuf_iterator __old = *this; 29761: __old._M_c = _M_sbuf->sbumpc(); 29761: _M_c = traits_type::eof(); 29761: return __old; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: bool 29761: equal(const istreambuf_iterator& __b) const 29761: { return _M_at_eof() == __b._M_at_eof(); } 29761: 29761: private: 29761: int_type 29761: _M_get() const 29761: { 29761: int_type __ret = _M_c; 29761: if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) 29761: _M_sbuf = 0; 29761: return __ret; 29761: } 29761: 29761: bool 29761: _M_at_eof() const 29761: { return _S_is_eof(_M_get()); } 29761: 29761: static bool 29761: _S_is_eof(int_type __c) 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: return traits_type::eq_int_type(__c, __eof); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const istreambuf_iterator<_CharT, _Traits>& __a, 29761: const istreambuf_iterator<_CharT, _Traits>& __b) 29761: { return __a.equal(__b); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, 29761: const istreambuf_iterator<_CharT, _Traits>& __b) 29761: { return !__a.equal(__b); } 29761: 29761: 29761: 29761: template 29761: class ostreambuf_iterator 29761: : public iterator 29761: { 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 29761: typedef basic_ostream<_CharT, _Traits> ostream_type; 29761: 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: ostreambuf_iterator<_CharT2> >::__type 29761: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29761: ostreambuf_iterator<_CharT2>); 29761: 29761: private: 29761: streambuf_type* _M_sbuf; 29761: bool _M_failed; 29761: 29761: public: 29761: # 284 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: ostreambuf_iterator(ostream_type& __s) noexcept 29761: : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } 29761: 29761: 29761: ostreambuf_iterator(streambuf_type* __s) noexcept 29761: : _M_sbuf(__s), _M_failed(!_M_sbuf) { } 29761: 29761: 29761: ostreambuf_iterator& 29761: operator=(_CharT __c) 29761: { 29761: if (!_M_failed && 29761: _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) 29761: _M_failed = true; 29761: return *this; 29761: } 29761: 29761: 29761: [[__nodiscard__]] 29761: ostreambuf_iterator& 29761: operator*() 29761: { return *this; } 29761: 29761: 29761: ostreambuf_iterator& 29761: operator++(int) 29761: { return *this; } 29761: 29761: 29761: ostreambuf_iterator& 29761: operator++() 29761: { return *this; } 29761: 29761: 29761: [[__nodiscard__]] 29761: bool 29761: failed() const noexcept 29761: { return _M_failed; } 29761: 29761: ostreambuf_iterator& 29761: _M_put(const _CharT* __ws, streamsize __len) 29761: { 29761: if (__builtin_expect(!_M_failed, true) 29761: && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, 29761: false)) 29761: _M_failed = true; 29761: return *this; 29761: } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: ostreambuf_iterator<_CharT> >::__type 29761: copy(istreambuf_iterator<_CharT> __first, 29761: istreambuf_iterator<_CharT> __last, 29761: ostreambuf_iterator<_CharT> __result) 29761: { 29761: if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) 29761: { 29761: bool __ineof; 29761: __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); 29761: if (!__ineof) 29761: __result._M_failed = true; 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: ostreambuf_iterator<_CharT> >::__type 29761: __copy_move_a2(_CharT* __first, _CharT* __last, 29761: ostreambuf_iterator<_CharT> __result) 29761: { 29761: const streamsize __num = __last - __first; 29761: if (__num > 0) 29761: __result._M_put(__first, __num); 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: ostreambuf_iterator<_CharT> >::__type 29761: __copy_move_a2(const _CharT* __first, const _CharT* __last, 29761: ostreambuf_iterator<_CharT> __result) 29761: { 29761: const streamsize __num = __last - __first; 29761: if (__num > 0) 29761: __result._M_put(__first, __num); 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: _CharT*>::__type 29761: __copy_move_a2(istreambuf_iterator<_CharT> __first, 29761: istreambuf_iterator<_CharT> __last, _CharT* __result) 29761: { 29761: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29761: typedef typename __is_iterator_type::traits_type traits_type; 29761: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29761: typedef typename traits_type::int_type int_type; 29761: 29761: if (__first._M_sbuf && !__last._M_sbuf) 29761: { 29761: streambuf_type* __sb = __first._M_sbuf; 29761: int_type __c = __sb->sgetc(); 29761: while (!traits_type::eq_int_type(__c, traits_type::eof())) 29761: { 29761: const streamsize __n = __sb->egptr() - __sb->gptr(); 29761: if (__n > 1) 29761: { 29761: traits_type::copy(__result, __sb->gptr(), __n); 29761: __sb->__safe_gbump(__n); 29761: __result += __n; 29761: __c = __sb->underflow(); 29761: } 29761: else 29761: { 29761: *__result++ = traits_type::to_char_type(__c); 29761: __c = __sb->snextc(); 29761: } 29761: } 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: _CharT*>::__type 29761: __copy_n_a(istreambuf_iterator<_CharT> __it, _Size __n, _CharT* __result, 29761: bool __strict __attribute__((__unused__))) 29761: { 29761: if (__n == 0) 29761: return __result; 29761: 29761: 29761: 29761: ; 29761: _CharT* __beg = __result; 29761: __result += __it._M_sbuf->sgetn(__beg, __n); 29761: 29761: 29761: ; 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: istreambuf_iterator<_CharT> >::__type 29761: find(istreambuf_iterator<_CharT> __first, 29761: istreambuf_iterator<_CharT> __last, const _CharT& __val) 29761: { 29761: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29761: typedef typename __is_iterator_type::traits_type traits_type; 29761: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29761: typedef typename traits_type::int_type int_type; 29761: const int_type __eof = traits_type::eof(); 29761: 29761: if (__first._M_sbuf && !__last._M_sbuf) 29761: { 29761: const int_type __ival = traits_type::to_int_type(__val); 29761: streambuf_type* __sb = __first._M_sbuf; 29761: int_type __c = __sb->sgetc(); 29761: while (!traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __ival)) 29761: { 29761: streamsize __n = __sb->egptr() - __sb->gptr(); 29761: if (__n > 1) 29761: { 29761: const _CharT* __p = traits_type::find(__sb->gptr(), 29761: __n, __val); 29761: if (__p) 29761: __n = __p - __sb->gptr(); 29761: __sb->__safe_gbump(__n); 29761: __c = __sb->sgetc(); 29761: } 29761: else 29761: __c = __sb->snextc(); 29761: } 29761: 29761: __first._M_c = __eof; 29761: } 29761: 29761: return __first; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: void>::__type 29761: advance(istreambuf_iterator<_CharT>& __i, _Distance __n) 29761: { 29761: if (__n == 0) 29761: return; 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__n > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: 29761: ; 29761: 29761: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29761: typedef typename __is_iterator_type::traits_type traits_type; 29761: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29761: typedef typename traits_type::int_type int_type; 29761: const int_type __eof = traits_type::eof(); 29761: 29761: streambuf_type* __sb = __i._M_sbuf; 29761: while (__n > 0) 29761: { 29761: streamsize __size = __sb->egptr() - __sb->gptr(); 29761: if (__size > __n) 29761: { 29761: __sb->__safe_gbump(__n); 29761: break; 29761: } 29761: 29761: __sb->__safe_gbump(__size); 29761: __n -= __size; 29761: if (traits_type::eq_int_type(__sb->underflow(), __eof)) 29761: { 29761: 29761: 29761: ; 29761: break; 29761: } 29761: } 29761: 29761: __i._M_c = __eof; 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 49 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 74 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: void 29761: __convert_to_v(const char*, _Tp&, ios_base::iostate&, 29761: const __c_locale&) throw(); 29761: 29761: 29761: template<> 29761: void 29761: __convert_to_v(const char*, float&, ios_base::iostate&, 29761: const __c_locale&) throw(); 29761: 29761: template<> 29761: void 29761: __convert_to_v(const char*, double&, ios_base::iostate&, 29761: const __c_locale&) throw(); 29761: 29761: template<> 29761: void 29761: __convert_to_v(const char*, long double&, ios_base::iostate&, 29761: const __c_locale&) throw(); 29761: 29761: 29761: 29761: template 29761: struct __pad 29761: { 29761: static void 29761: _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, 29761: const _CharT* __olds, streamsize __newlen, streamsize __oldlen); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _CharT* 29761: __add_grouping(_CharT* __s, _CharT __sep, 29761: const char* __gbeg, size_t __gsize, 29761: const _CharT* __first, const _CharT* __last); 29761: 29761: 29761: 29761: 29761: template 29761: inline 29761: ostreambuf_iterator<_CharT> 29761: __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) 29761: { 29761: __s._M_put(__ws, __len); 29761: return __s; 29761: } 29761: 29761: 29761: template 29761: inline 29761: _OutIter 29761: __write(_OutIter __s, const _CharT* __ws, int __len) 29761: { 29761: for (int __j = 0; __j < __len; __j++, ++__s) 29761: *__s = __ws[__j]; 29761: return __s; 29761: } 29761: # 152 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: class __ctype_abstract_base : public locale::facet, public ctype_base 29761: { 29761: public: 29761: 29761: 29761: typedef _CharT char_type; 29761: # 171 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: bool 29761: is(mask __m, char_type __c) const 29761: { return this->do_is(__m, __c); } 29761: # 188 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: is(const char_type *__lo, const char_type *__hi, mask *__vec) const 29761: { return this->do_is(__lo, __hi, __vec); } 29761: # 204 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: scan_is(mask __m, const char_type* __lo, const char_type* __hi) const 29761: { return this->do_scan_is(__m, __lo, __hi); } 29761: # 220 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: scan_not(mask __m, const char_type* __lo, const char_type* __hi) const 29761: { return this->do_scan_not(__m, __lo, __hi); } 29761: # 234 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: toupper(char_type __c) const 29761: { return this->do_toupper(__c); } 29761: # 249 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: toupper(char_type *__lo, const char_type* __hi) const 29761: { return this->do_toupper(__lo, __hi); } 29761: # 263 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: tolower(char_type __c) const 29761: { return this->do_tolower(__c); } 29761: # 278 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: tolower(char_type* __lo, const char_type* __hi) const 29761: { return this->do_tolower(__lo, __hi); } 29761: # 295 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: widen(char __c) const 29761: { return this->do_widen(__c); } 29761: # 314 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char* 29761: widen(const char* __lo, const char* __hi, char_type* __to) const 29761: { return this->do_widen(__lo, __hi, __to); } 29761: # 333 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char 29761: narrow(char_type __c, char __dfault) const 29761: { return this->do_narrow(__c, __dfault); } 29761: # 355 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault, char* __to) const 29761: { return this->do_narrow(__lo, __hi, __dfault, __to); } 29761: 29761: protected: 29761: explicit 29761: __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } 29761: 29761: virtual 29761: ~__ctype_abstract_base() { } 29761: # 380 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual bool 29761: do_is(mask __m, char_type __c) const = 0; 29761: # 399 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_is(const char_type* __lo, const char_type* __hi, 29761: mask* __vec) const = 0; 29761: # 418 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_scan_is(mask __m, const char_type* __lo, 29761: const char_type* __hi) const = 0; 29761: # 437 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_scan_not(mask __m, const char_type* __lo, 29761: const char_type* __hi) const = 0; 29761: # 455 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_toupper(char_type __c) const = 0; 29761: # 472 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_toupper(char_type* __lo, const char_type* __hi) const = 0; 29761: # 488 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_tolower(char_type __c) const = 0; 29761: # 505 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_tolower(char_type* __lo, const char_type* __hi) const = 0; 29761: # 524 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_widen(char __c) const = 0; 29761: # 545 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char* 29761: do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; 29761: # 566 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char 29761: do_narrow(char_type __c, char __dfault) const = 0; 29761: # 591 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault, char* __to) const = 0; 29761: }; 29761: # 614 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: class ctype : public __ctype_abstract_base<_CharT> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef typename __ctype_abstract_base<_CharT>::mask mask; 29761: 29761: 29761: static locale::id id; 29761: 29761: explicit 29761: ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } 29761: 29761: protected: 29761: virtual 29761: ~ctype(); 29761: 29761: virtual bool 29761: do_is(mask __m, char_type __c) const; 29761: 29761: virtual const char_type* 29761: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 29761: 29761: virtual const char_type* 29761: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 29761: 29761: virtual const char_type* 29761: do_scan_not(mask __m, const char_type* __lo, 29761: const char_type* __hi) const; 29761: 29761: virtual char_type 29761: do_toupper(char_type __c) const; 29761: 29761: virtual const char_type* 29761: do_toupper(char_type* __lo, const char_type* __hi) const; 29761: 29761: virtual char_type 29761: do_tolower(char_type __c) const; 29761: 29761: virtual const char_type* 29761: do_tolower(char_type* __lo, const char_type* __hi) const; 29761: 29761: virtual char_type 29761: do_widen(char __c) const; 29761: 29761: virtual const char* 29761: do_widen(const char* __lo, const char* __hi, char_type* __dest) const; 29761: 29761: virtual char 29761: do_narrow(char_type, char __dfault) const; 29761: 29761: virtual const char_type* 29761: do_narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault, char* __to) const; 29761: }; 29761: 29761: template 29761: locale::id ctype<_CharT>::id; 29761: 29761: 29761: 29761: template 29761: class ctype >; 29761: # 688 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template<> 29761: class ctype : public locale::facet, public ctype_base 29761: { 29761: public: 29761: 29761: 29761: typedef char char_type; 29761: 29761: protected: 29761: 29761: __c_locale _M_c_locale_ctype; 29761: bool _M_del; 29761: __to_type _M_toupper; 29761: __to_type _M_tolower; 29761: const mask* _M_table; 29761: mutable char _M_widen_ok; 29761: mutable char _M_widen[1 + static_cast(-1)]; 29761: mutable char _M_narrow[1 + static_cast(-1)]; 29761: mutable char _M_narrow_ok; 29761: 29761: 29761: public: 29761: 29761: static locale::id id; 29761: 29761: static const size_t table_size = 1 + static_cast(-1); 29761: # 725 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); 29761: # 738 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, 29761: size_t __refs = 0); 29761: # 751 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: inline bool 29761: is(mask __m, char __c) const; 29761: # 766 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: inline const char* 29761: is(const char* __lo, const char* __hi, mask* __vec) const; 29761: # 780 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: inline const char* 29761: scan_is(mask __m, const char* __lo, const char* __hi) const; 29761: # 794 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: inline const char* 29761: scan_not(mask __m, const char* __lo, const char* __hi) const; 29761: # 809 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: toupper(char_type __c) const 29761: { return this->do_toupper(__c); } 29761: # 826 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: toupper(char_type *__lo, const char_type* __hi) const 29761: { return this->do_toupper(__lo, __hi); } 29761: # 842 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: tolower(char_type __c) const 29761: { return this->do_tolower(__c); } 29761: # 859 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: tolower(char_type* __lo, const char_type* __hi) const 29761: { return this->do_tolower(__lo, __hi); } 29761: # 879 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: widen(char __c) const 29761: { 29761: if (_M_widen_ok) 29761: return _M_widen[static_cast(__c)]; 29761: this->_M_widen_init(); 29761: return this->do_widen(__c); 29761: } 29761: # 906 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char* 29761: widen(const char* __lo, const char* __hi, char_type* __to) const 29761: { 29761: if (_M_widen_ok == 1) 29761: { 29761: if (__builtin_expect(__hi != __lo, true)) 29761: __builtin_memcpy(__to, __lo, __hi - __lo); 29761: return __hi; 29761: } 29761: if (!_M_widen_ok) 29761: _M_widen_init(); 29761: return this->do_widen(__lo, __hi, __to); 29761: } 29761: # 938 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char 29761: narrow(char_type __c, char __dfault) const 29761: { 29761: if (_M_narrow[static_cast(__c)]) 29761: return _M_narrow[static_cast(__c)]; 29761: const char __t = do_narrow(__c, __dfault); 29761: if (__t != __dfault) 29761: _M_narrow[static_cast(__c)] = __t; 29761: return __t; 29761: } 29761: # 971 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault, char* __to) const 29761: { 29761: if (__builtin_expect(_M_narrow_ok == 1, true)) 29761: { 29761: if (__builtin_expect(__hi != __lo, true)) 29761: __builtin_memcpy(__to, __lo, __hi - __lo); 29761: return __hi; 29761: } 29761: if (!_M_narrow_ok) 29761: _M_narrow_init(); 29761: return this->do_narrow(__lo, __hi, __dfault, __to); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: const mask* 29761: table() const throw() 29761: { return _M_table; } 29761: 29761: 29761: static const mask* 29761: classic_table() throw(); 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual 29761: ~ctype(); 29761: # 1021 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_toupper(char_type __c) const; 29761: # 1038 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_toupper(char_type* __lo, const char_type* __hi) const; 29761: # 1054 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_tolower(char_type __c) const; 29761: # 1071 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_tolower(char_type* __lo, const char_type* __hi) const; 29761: # 1091 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_widen(char __c) const 29761: { return __c; } 29761: # 1114 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char* 29761: do_widen(const char* __lo, const char* __hi, char_type* __to) const 29761: { 29761: if (__builtin_expect(__hi != __lo, true)) 29761: __builtin_memcpy(__to, __lo, __hi - __lo); 29761: return __hi; 29761: } 29761: # 1141 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char 29761: do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const 29761: { return __c; } 29761: # 1167 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault __attribute__((__unused__)), char* __to) const 29761: { 29761: if (__builtin_expect(__hi != __lo, true)) 29761: __builtin_memcpy(__to, __lo, __hi - __lo); 29761: return __hi; 29761: } 29761: 29761: private: 29761: void _M_narrow_init() const; 29761: void _M_widen_init() const; 29761: }; 29761: # 1193 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template<> 29761: class ctype : public __ctype_abstract_base 29761: { 29761: public: 29761: 29761: 29761: typedef wchar_t char_type; 29761: typedef wctype_t __wmask_type; 29761: 29761: protected: 29761: __c_locale _M_c_locale_ctype; 29761: 29761: 29761: bool _M_narrow_ok; 29761: char _M_narrow[128]; 29761: wint_t _M_widen[1 + static_cast(-1)]; 29761: 29761: 29761: mask _M_bit[16]; 29761: __wmask_type _M_wmask[16]; 29761: 29761: public: 29761: 29761: 29761: static locale::id id; 29761: # 1226 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: ctype(size_t __refs = 0); 29761: # 1237 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: ctype(__c_locale __cloc, size_t __refs = 0); 29761: 29761: protected: 29761: __wmask_type 29761: _M_convert_to_wmask(const mask __m) const throw(); 29761: 29761: 29761: virtual 29761: ~ctype(); 29761: # 1261 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual bool 29761: do_is(mask __m, char_type __c) const; 29761: # 1280 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 29761: # 1298 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 29761: # 1316 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_scan_not(mask __m, const char_type* __lo, 29761: const char_type* __hi) const; 29761: # 1333 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_toupper(char_type __c) const; 29761: # 1350 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_toupper(char_type* __lo, const char_type* __hi) const; 29761: # 1366 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_tolower(char_type __c) const; 29761: # 1383 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_tolower(char_type* __lo, const char_type* __hi) const; 29761: # 1403 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_widen(char __c) const; 29761: # 1425 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char* 29761: do_widen(const char* __lo, const char* __hi, char_type* __to) const; 29761: # 1448 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char 29761: do_narrow(char_type __c, char __dfault) const; 29761: # 1474 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault, char* __to) const; 29761: 29761: 29761: void 29761: _M_initialize_ctype() throw(); 29761: }; 29761: 29761: 29761: 29761: template 29761: class ctype_byname : public ctype<_CharT> 29761: { 29761: public: 29761: typedef typename ctype<_CharT>::mask mask; 29761: 29761: explicit 29761: ctype_byname(const char* __s, size_t __refs = 0); 29761: 29761: 29761: explicit 29761: ctype_byname(const string& __s, size_t __refs = 0) 29761: : ctype_byname(__s.c_str(), __refs) { } 29761: 29761: 29761: protected: 29761: virtual 29761: ~ctype_byname() { } 29761: }; 29761: 29761: 29761: template<> 29761: class ctype_byname : public ctype 29761: { 29761: public: 29761: explicit 29761: ctype_byname(const char* __s, size_t __refs = 0); 29761: 29761: 29761: explicit 29761: ctype_byname(const string& __s, size_t __refs = 0); 29761: 29761: 29761: protected: 29761: virtual 29761: ~ctype_byname(); 29761: }; 29761: 29761: 29761: template<> 29761: class ctype_byname : public ctype 29761: { 29761: public: 29761: explicit 29761: ctype_byname(const char* __s, size_t __refs = 0); 29761: 29761: 29761: explicit 29761: ctype_byname(const string& __s, size_t __refs = 0); 29761: 29761: 29761: protected: 29761: virtual 29761: ~ctype_byname(); 29761: }; 29761: 29761: 29761: 29761: } 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 1 3 29761: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: bool 29761: ctype:: 29761: is(mask __m, char __c) const 29761: { return _M_table[static_cast(__c)] & __m; } 29761: 29761: const char* 29761: ctype:: 29761: is(const char* __low, const char* __high, mask* __vec) const 29761: { 29761: while (__low < __high) 29761: *__vec++ = _M_table[static_cast(*__low++)]; 29761: return __high; 29761: } 29761: 29761: const char* 29761: ctype:: 29761: scan_is(mask __m, const char* __low, const char* __high) const 29761: { 29761: while (__low < __high 29761: && !(_M_table[static_cast(*__low)] & __m)) 29761: ++__low; 29761: return __low; 29761: } 29761: 29761: const char* 29761: ctype:: 29761: scan_not(mask __m, const char* __low, const char* __high) const 29761: { 29761: while (__low < __high 29761: && (_M_table[static_cast(*__low)] & __m) != 0) 29761: ++__low; 29761: return __low; 29761: } 29761: 29761: 29761: } 29761: # 1547 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: class __num_base 29761: { 29761: public: 29761: 29761: 29761: enum 29761: { 29761: _S_ominus, 29761: _S_oplus, 29761: _S_ox, 29761: _S_oX, 29761: _S_odigits, 29761: _S_odigits_end = _S_odigits + 16, 29761: _S_oudigits = _S_odigits_end, 29761: _S_oudigits_end = _S_oudigits + 16, 29761: _S_oe = _S_odigits + 14, 29761: _S_oE = _S_oudigits + 14, 29761: _S_oend = _S_oudigits_end 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static const char* _S_atoms_out; 29761: 29761: 29761: 29761: static const char* _S_atoms_in; 29761: 29761: enum 29761: { 29761: _S_iminus, 29761: _S_iplus, 29761: _S_ix, 29761: _S_iX, 29761: _S_izero, 29761: _S_ie = _S_izero + 14, 29761: _S_iE = _S_izero + 20, 29761: _S_iend = 26 29761: }; 29761: 29761: 29761: 29761: static void 29761: _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); 29761: }; 29761: 29761: template 29761: struct __numpunct_cache : public locale::facet 29761: { 29761: const char* _M_grouping; 29761: size_t _M_grouping_size; 29761: bool _M_use_grouping; 29761: const _CharT* _M_truename; 29761: size_t _M_truename_size; 29761: const _CharT* _M_falsename; 29761: size_t _M_falsename_size; 29761: _CharT _M_decimal_point; 29761: _CharT _M_thousands_sep; 29761: 29761: 29761: 29761: 29761: 29761: _CharT _M_atoms_out[__num_base::_S_oend]; 29761: 29761: 29761: 29761: 29761: 29761: _CharT _M_atoms_in[__num_base::_S_iend]; 29761: 29761: bool _M_allocated; 29761: 29761: __numpunct_cache(size_t __refs = 0) 29761: : facet(__refs), _M_grouping(0), _M_grouping_size(0), 29761: _M_use_grouping(false), 29761: _M_truename(0), _M_truename_size(0), _M_falsename(0), 29761: _M_falsename_size(0), _M_decimal_point(_CharT()), 29761: _M_thousands_sep(_CharT()), _M_allocated(false) 29761: { } 29761: 29761: ~__numpunct_cache(); 29761: 29761: void 29761: _M_cache(const locale& __loc); 29761: 29761: private: 29761: __numpunct_cache& 29761: operator=(const __numpunct_cache&); 29761: 29761: explicit 29761: __numpunct_cache(const __numpunct_cache&); 29761: }; 29761: 29761: template 29761: __numpunct_cache<_CharT>::~__numpunct_cache() 29761: { 29761: if (_M_allocated) 29761: { 29761: delete [] _M_grouping; 29761: delete [] _M_truename; 29761: delete [] _M_falsename; 29761: } 29761: } 29761: 29761: namespace __cxx11 { 29761: # 1677 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: class numpunct : public locale::facet 29761: { 29761: public: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef basic_string<_CharT> string_type; 29761: 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: 29761: protected: 29761: __cache_type* _M_data; 29761: 29761: public: 29761: 29761: static locale::id id; 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: numpunct(size_t __refs = 0) 29761: : facet(__refs), _M_data(0) 29761: { _M_initialize_numpunct(); } 29761: # 1715 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: numpunct(__cache_type* __cache, size_t __refs = 0) 29761: : facet(__refs), _M_data(__cache) 29761: { _M_initialize_numpunct(); } 29761: # 1729 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: numpunct(__c_locale __cloc, size_t __refs = 0) 29761: : facet(__refs), _M_data(0) 29761: { _M_initialize_numpunct(__cloc); } 29761: # 1743 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: decimal_point() const 29761: { return this->do_decimal_point(); } 29761: # 1756 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: thousands_sep() const 29761: { return this->do_thousands_sep(); } 29761: # 1787 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: string 29761: grouping() const 29761: { return this->do_grouping(); } 29761: # 1800 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: string_type 29761: truename() const 29761: { return this->do_truename(); } 29761: # 1813 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: string_type 29761: falsename() const 29761: { return this->do_falsename(); } 29761: 29761: protected: 29761: 29761: virtual 29761: ~numpunct(); 29761: # 1830 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_decimal_point() const 29761: { return _M_data->_M_decimal_point; } 29761: # 1842 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_thousands_sep() const 29761: { return _M_data->_M_thousands_sep; } 29761: # 1855 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual string 29761: do_grouping() const 29761: { return _M_data->_M_grouping; } 29761: # 1868 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual string_type 29761: do_truename() const 29761: { return _M_data->_M_truename; } 29761: # 1881 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual string_type 29761: do_falsename() const 29761: { return _M_data->_M_falsename; } 29761: 29761: 29761: void 29761: _M_initialize_numpunct(__c_locale __cloc = 0); 29761: }; 29761: 29761: template 29761: locale::id numpunct<_CharT>::id; 29761: 29761: template<> 29761: numpunct::~numpunct(); 29761: 29761: template<> 29761: void 29761: numpunct::_M_initialize_numpunct(__c_locale __cloc); 29761: 29761: 29761: template<> 29761: numpunct::~numpunct(); 29761: 29761: template<> 29761: void 29761: numpunct::_M_initialize_numpunct(__c_locale __cloc); 29761: 29761: 29761: 29761: template 29761: class numpunct_byname : public numpunct<_CharT> 29761: { 29761: public: 29761: typedef _CharT char_type; 29761: typedef basic_string<_CharT> string_type; 29761: 29761: explicit 29761: numpunct_byname(const char* __s, size_t __refs = 0) 29761: : numpunct<_CharT>(__refs) 29761: { 29761: if (__builtin_strcmp(__s, "C") != 0 29761: && __builtin_strcmp(__s, "POSIX") != 0) 29761: { 29761: __c_locale __tmp; 29761: this->_S_create_c_locale(__tmp, __s); 29761: this->_M_initialize_numpunct(__tmp); 29761: this->_S_destroy_c_locale(__tmp); 29761: } 29761: } 29761: 29761: 29761: explicit 29761: numpunct_byname(const string& __s, size_t __refs = 0) 29761: : numpunct_byname(__s.c_str(), __refs) { } 29761: 29761: 29761: protected: 29761: virtual 29761: ~numpunct_byname() { } 29761: }; 29761: 29761: } 29761: 29761: 29761: # 1959 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: class num_get : public locale::facet 29761: { 29761: public: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef _InIter iter_type; 29761: 29761: 29761: 29761: static locale::id id; 29761: # 1980 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: num_get(size_t __refs = 0) : facet(__refs) { } 29761: # 2006 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, bool& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: # 2043 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned short& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned int& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned long& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long long& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned long long& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: #pragma GCC diagnostic pop 29761: # 2106 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, float& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, double& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long double& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: # 2149 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, void*& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: protected: 29761: 29761: virtual ~num_get() { } 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iter_type 29761: _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, 29761: string&) const; 29761: 29761: template 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iter_type 29761: _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, 29761: _ValueT&) const; 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type 29761: _M_find(const _CharT2*, size_t __len, _CharT2 __c) const 29761: { 29761: int __ret = -1; 29761: if (__len <= 10) 29761: { 29761: if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) 29761: __ret = __c - _CharT2('0'); 29761: } 29761: else 29761: { 29761: if (__c >= _CharT2('0') && __c <= _CharT2('9')) 29761: __ret = __c - _CharT2('0'); 29761: else if (__c >= _CharT2('a') && __c <= _CharT2('f')) 29761: __ret = 10 + (__c - _CharT2('a')); 29761: else if (__c >= _CharT2('A') && __c <= _CharT2('F')) 29761: __ret = 10 + (__c - _CharT2('A')); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if::__value, 29761: int>::__type 29761: _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const 29761: { 29761: int __ret = -1; 29761: const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); 29761: if (__q) 29761: { 29761: __ret = __q - __zero; 29761: if (__ret > 15) 29761: __ret -= 6; 29761: } 29761: return __ret; 29761: } 29761: # 2222 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual iter_type 29761: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; 29761: 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned short& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned int& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned long& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long long& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned long long& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: virtual iter_type 29761: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; 29761: 29761: virtual iter_type 29761: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 29761: double&) const; 29761: # 2277 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual iter_type 29761: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 29761: long double&) const; 29761: 29761: 29761: virtual iter_type 29761: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; 29761: # 2305 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: }; 29761: 29761: template 29761: locale::id num_get<_CharT, _InIter>::id; 29761: # 2323 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: class num_put : public locale::facet 29761: { 29761: public: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef _OutIter iter_type; 29761: 29761: 29761: 29761: static locale::id id; 29761: # 2344 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: num_put(size_t __refs = 0) : facet(__refs) { } 29761: # 2362 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: # 2404 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, 29761: unsigned long __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, 29761: unsigned long long __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: #pragma GCC diagnostic pop 29761: # 2470 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, 29761: long double __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: # 2495 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, 29761: const void* __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: 29761: protected: 29761: template 29761: iter_type 29761: _M_insert_float(iter_type, ios_base& __io, char_type __fill, 29761: char __mod, _ValueT __v) const; 29761: 29761: void 29761: _M_group_float(const char* __grouping, size_t __grouping_size, 29761: char_type __sep, const char_type* __p, char_type* __new, 29761: char_type* __cs, int& __len) const; 29761: 29761: template 29761: iter_type 29761: _M_insert_int(iter_type, ios_base& __io, char_type __fill, 29761: _ValueT __v) const; 29761: 29761: void 29761: _M_group_int(const char* __grouping, size_t __grouping_size, 29761: char_type __sep, ios_base& __io, char_type* __new, 29761: char_type* __cs, int& __len) const; 29761: 29761: void 29761: _M_pad(char_type __fill, streamsize __w, ios_base& __io, 29761: char_type* __new, const char_type* __cs, int& __len) const; 29761: 29761: 29761: virtual 29761: ~num_put() { } 29761: # 2543 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual iter_type 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; 29761: 29761: virtual iter_type 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 29761: { return _M_insert_int(__s, __io, __fill, __v); } 29761: 29761: virtual iter_type 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, 29761: unsigned long __v) const 29761: { return _M_insert_int(__s, __io, __fill, __v); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: virtual iter_type 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, 29761: long long __v) const 29761: { return _M_insert_int(__s, __io, __fill, __v); } 29761: 29761: virtual iter_type 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, 29761: unsigned long long __v) const 29761: { return _M_insert_int(__s, __io, __fill, __v); } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: virtual iter_type 29761: do_put(iter_type, ios_base&, char_type, double) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual iter_type 29761: do_put(iter_type, ios_base&, char_type, long double) const; 29761: 29761: 29761: virtual iter_type 29761: do_put(iter_type, ios_base&, char_type, const void*) const; 29761: # 2598 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: }; 29761: 29761: template 29761: locale::id num_put<_CharT, _OutIter>::id; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: isspace(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::space, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isprint(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::print, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: iscntrl(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::cntrl, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isupper(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::upper, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: islower(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::lower, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isalpha(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::alpha, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isdigit(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::digit, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: ispunct(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::punct, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isxdigit(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::xdigit, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isalnum(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::alnum, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isgraph(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::graph, __c); } 29761: 29761: 29761: 29761: template 29761: inline bool 29761: isblank(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::blank, __c); } 29761: 29761: 29761: 29761: template 29761: inline _CharT 29761: toupper(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).toupper(__c); } 29761: 29761: 29761: template 29761: inline _CharT 29761: tolower(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).tolower(__c); } 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/locale_facets.tcc" 1 3 29761: # 33 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: struct __use_cache 29761: { 29761: const _Facet* 29761: operator() (const locale& __loc) const; 29761: }; 29761: 29761: 29761: template 29761: struct __use_cache<__numpunct_cache<_CharT> > 29761: { 29761: const __numpunct_cache<_CharT>* 29761: operator() (const locale& __loc) const 29761: { 29761: const size_t __i = numpunct<_CharT>::id._M_id(); 29761: const locale::facet** __caches = __loc._M_impl->_M_caches; 29761: if (!__caches[__i]) 29761: { 29761: __numpunct_cache<_CharT>* __tmp = 0; 29761: try 29761: { 29761: __tmp = new __numpunct_cache<_CharT>; 29761: __tmp->_M_cache(__loc); 29761: } 29761: catch(...) 29761: { 29761: delete __tmp; 29761: throw; 29761: } 29761: __loc._M_impl->_M_install_cache(__tmp, __i); 29761: } 29761: return static_cast*>(__caches[__i]); 29761: } 29761: }; 29761: 29761: template 29761: void 29761: __numpunct_cache<_CharT>::_M_cache(const locale& __loc) 29761: { 29761: const numpunct<_CharT>& __np = use_facet >(__loc); 29761: 29761: char* __grouping = 0; 29761: _CharT* __truename = 0; 29761: _CharT* __falsename = 0; 29761: try 29761: { 29761: const string& __g = __np.grouping(); 29761: _M_grouping_size = __g.size(); 29761: __grouping = new char[_M_grouping_size]; 29761: __g.copy(__grouping, _M_grouping_size); 29761: _M_use_grouping = (_M_grouping_size 29761: && static_cast(__grouping[0]) > 0 29761: && (__grouping[0] 29761: != __gnu_cxx::__numeric_traits::__max)); 29761: 29761: const basic_string<_CharT>& __tn = __np.truename(); 29761: _M_truename_size = __tn.size(); 29761: __truename = new _CharT[_M_truename_size]; 29761: __tn.copy(__truename, _M_truename_size); 29761: 29761: const basic_string<_CharT>& __fn = __np.falsename(); 29761: _M_falsename_size = __fn.size(); 29761: __falsename = new _CharT[_M_falsename_size]; 29761: __fn.copy(__falsename, _M_falsename_size); 29761: 29761: _M_decimal_point = __np.decimal_point(); 29761: _M_thousands_sep = __np.thousands_sep(); 29761: 29761: const ctype<_CharT>& __ct = use_facet >(__loc); 29761: __ct.widen(__num_base::_S_atoms_out, 29761: __num_base::_S_atoms_out 29761: + __num_base::_S_oend, _M_atoms_out); 29761: __ct.widen(__num_base::_S_atoms_in, 29761: __num_base::_S_atoms_in 29761: + __num_base::_S_iend, _M_atoms_in); 29761: 29761: _M_grouping = __grouping; 29761: _M_truename = __truename; 29761: _M_falsename = __falsename; 29761: _M_allocated = true; 29761: } 29761: catch(...) 29761: { 29761: delete [] __grouping; 29761: delete [] __truename; 29761: delete [] __falsename; 29761: throw; 29761: } 29761: } 29761: # 139 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: __attribute__ ((__pure__)) bool 29761: __verify_grouping(const char* __grouping, size_t __grouping_size, 29761: const string& __grouping_tmp) throw (); 29761: 29761: 29761: 29761: template 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, 29761: ios_base::iostate& __err, string& __xtrc) const 29761: { 29761: typedef char_traits<_CharT> __traits_type; 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: const _CharT* __lit = __lc->_M_atoms_in; 29761: char_type __c = char_type(); 29761: 29761: 29761: bool __testeof = __beg == __end; 29761: 29761: 29761: if (!__testeof) 29761: { 29761: __c = *__beg; 29761: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29761: if ((__plus || __c == __lit[__num_base::_S_iminus]) 29761: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: && !(__c == __lc->_M_decimal_point)) 29761: { 29761: __xtrc += __plus ? '+' : '-'; 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: } 29761: 29761: 29761: bool __found_mantissa = false; 29761: int __sep_pos = 0; 29761: while (!__testeof) 29761: { 29761: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: || __c == __lc->_M_decimal_point) 29761: break; 29761: else if (__c == __lit[__num_base::_S_izero]) 29761: { 29761: if (!__found_mantissa) 29761: { 29761: __xtrc += '0'; 29761: __found_mantissa = true; 29761: } 29761: ++__sep_pos; 29761: 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: else 29761: break; 29761: } 29761: 29761: 29761: bool __found_dec = false; 29761: bool __found_sci = false; 29761: string __found_grouping; 29761: if (__lc->_M_use_grouping) 29761: __found_grouping.reserve(32); 29761: const char_type* __lit_zero = __lit + __num_base::_S_izero; 29761: 29761: if (!__lc->_M_allocated) 29761: 29761: while (!__testeof) 29761: { 29761: const int __digit = _M_find(__lit_zero, 10, __c); 29761: if (__digit != -1) 29761: { 29761: __xtrc += '0' + __digit; 29761: __found_mantissa = true; 29761: } 29761: else if (__c == __lc->_M_decimal_point 29761: && !__found_dec && !__found_sci) 29761: { 29761: __xtrc += '.'; 29761: __found_dec = true; 29761: } 29761: else if ((__c == __lit[__num_base::_S_ie] 29761: || __c == __lit[__num_base::_S_iE]) 29761: && !__found_sci && __found_mantissa) 29761: { 29761: 29761: __xtrc += 'e'; 29761: __found_sci = true; 29761: 29761: 29761: if (++__beg != __end) 29761: { 29761: __c = *__beg; 29761: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29761: if (__plus || __c == __lit[__num_base::_S_iminus]) 29761: __xtrc += __plus ? '+' : '-'; 29761: else 29761: continue; 29761: } 29761: else 29761: { 29761: __testeof = true; 29761: break; 29761: } 29761: } 29761: else 29761: break; 29761: 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: else 29761: while (!__testeof) 29761: { 29761: 29761: 29761: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: { 29761: if (!__found_dec && !__found_sci) 29761: { 29761: 29761: 29761: if (__sep_pos) 29761: { 29761: __found_grouping += static_cast(__sep_pos); 29761: __sep_pos = 0; 29761: } 29761: else 29761: { 29761: 29761: 29761: __xtrc.clear(); 29761: break; 29761: } 29761: } 29761: else 29761: break; 29761: } 29761: else if (__c == __lc->_M_decimal_point) 29761: { 29761: if (!__found_dec && !__found_sci) 29761: { 29761: 29761: 29761: 29761: if (__found_grouping.size()) 29761: __found_grouping += static_cast(__sep_pos); 29761: __xtrc += '.'; 29761: __found_dec = true; 29761: } 29761: else 29761: break; 29761: } 29761: else 29761: { 29761: const char_type* __q = 29761: __traits_type::find(__lit_zero, 10, __c); 29761: if (__q) 29761: { 29761: __xtrc += '0' + (__q - __lit_zero); 29761: __found_mantissa = true; 29761: ++__sep_pos; 29761: } 29761: else if ((__c == __lit[__num_base::_S_ie] 29761: || __c == __lit[__num_base::_S_iE]) 29761: && !__found_sci && __found_mantissa) 29761: { 29761: 29761: if (__found_grouping.size() && !__found_dec) 29761: __found_grouping += static_cast(__sep_pos); 29761: __xtrc += 'e'; 29761: __found_sci = true; 29761: 29761: 29761: if (++__beg != __end) 29761: { 29761: __c = *__beg; 29761: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29761: if ((__plus || __c == __lit[__num_base::_S_iminus]) 29761: && !(__lc->_M_use_grouping 29761: && __c == __lc->_M_thousands_sep) 29761: && !(__c == __lc->_M_decimal_point)) 29761: __xtrc += __plus ? '+' : '-'; 29761: else 29761: continue; 29761: } 29761: else 29761: { 29761: __testeof = true; 29761: break; 29761: } 29761: } 29761: else 29761: break; 29761: } 29761: 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: 29761: 29761: 29761: if (__found_grouping.size()) 29761: { 29761: 29761: if (!__found_dec && !__found_sci) 29761: __found_grouping += static_cast(__sep_pos); 29761: 29761: if (!std::__verify_grouping(__lc->_M_grouping, 29761: __lc->_M_grouping_size, 29761: __found_grouping)) 29761: __err = ios_base::failbit; 29761: } 29761: 29761: return __beg; 29761: } 29761: 29761: template 29761: template 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, 29761: ios_base::iostate& __err, _ValueT& __v) const 29761: { 29761: typedef char_traits<_CharT> __traits_type; 29761: using __gnu_cxx::__add_unsigned; 29761: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: const _CharT* __lit = __lc->_M_atoms_in; 29761: char_type __c = char_type(); 29761: 29761: 29761: const ios_base::fmtflags __basefield = __io.flags() 29761: & ios_base::basefield; 29761: const bool __oct = __basefield == ios_base::oct; 29761: int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); 29761: 29761: 29761: bool __testeof = __beg == __end; 29761: 29761: 29761: bool __negative = false; 29761: if (!__testeof) 29761: { 29761: __c = *__beg; 29761: __negative = __c == __lit[__num_base::_S_iminus]; 29761: if ((__negative || __c == __lit[__num_base::_S_iplus]) 29761: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: && !(__c == __lc->_M_decimal_point)) 29761: { 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: } 29761: 29761: 29761: 29761: bool __found_zero = false; 29761: int __sep_pos = 0; 29761: while (!__testeof) 29761: { 29761: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: || __c == __lc->_M_decimal_point) 29761: break; 29761: else if (__c == __lit[__num_base::_S_izero] 29761: && (!__found_zero || __base == 10)) 29761: { 29761: __found_zero = true; 29761: ++__sep_pos; 29761: if (__basefield == 0) 29761: __base = 8; 29761: if (__base == 8) 29761: __sep_pos = 0; 29761: } 29761: else if (__found_zero 29761: && (__c == __lit[__num_base::_S_ix] 29761: || __c == __lit[__num_base::_S_iX])) 29761: { 29761: if (__basefield == 0) 29761: __base = 16; 29761: if (__base == 16) 29761: { 29761: __found_zero = false; 29761: __sep_pos = 0; 29761: } 29761: else 29761: break; 29761: } 29761: else 29761: break; 29761: 29761: if (++__beg != __end) 29761: { 29761: __c = *__beg; 29761: if (!__found_zero) 29761: break; 29761: } 29761: else 29761: __testeof = true; 29761: } 29761: 29761: 29761: 29761: const size_t __len = (__base == 16 ? __num_base::_S_iend 29761: - __num_base::_S_izero : __base); 29761: 29761: 29761: typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; 29761: string __found_grouping; 29761: if (__lc->_M_use_grouping) 29761: __found_grouping.reserve(32); 29761: bool __testfail = false; 29761: bool __testoverflow = false; 29761: const __unsigned_type __max = 29761: (__negative && __num_traits::__is_signed) 29761: ? -static_cast<__unsigned_type>(__num_traits::__min) 29761: : __num_traits::__max; 29761: const __unsigned_type __smax = __max / __base; 29761: __unsigned_type __result = 0; 29761: int __digit = 0; 29761: const char_type* __lit_zero = __lit + __num_base::_S_izero; 29761: 29761: if (!__lc->_M_allocated) 29761: 29761: while (!__testeof) 29761: { 29761: __digit = _M_find(__lit_zero, __len, __c); 29761: if (__digit == -1) 29761: break; 29761: 29761: if (__result > __smax) 29761: __testoverflow = true; 29761: else 29761: { 29761: __result *= __base; 29761: __testoverflow |= __result > __max - __digit; 29761: __result += __digit; 29761: ++__sep_pos; 29761: } 29761: 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: else 29761: while (!__testeof) 29761: { 29761: 29761: 29761: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: { 29761: 29761: 29761: if (__sep_pos) 29761: { 29761: __found_grouping += static_cast(__sep_pos); 29761: __sep_pos = 0; 29761: } 29761: else 29761: { 29761: __testfail = true; 29761: break; 29761: } 29761: } 29761: else if (__c == __lc->_M_decimal_point) 29761: break; 29761: else 29761: { 29761: const char_type* __q = 29761: __traits_type::find(__lit_zero, __len, __c); 29761: if (!__q) 29761: break; 29761: 29761: __digit = __q - __lit_zero; 29761: if (__digit > 15) 29761: __digit -= 6; 29761: if (__result > __smax) 29761: __testoverflow = true; 29761: else 29761: { 29761: __result *= __base; 29761: __testoverflow |= __result > __max - __digit; 29761: __result += __digit; 29761: ++__sep_pos; 29761: } 29761: } 29761: 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: 29761: 29761: 29761: if (__found_grouping.size()) 29761: { 29761: 29761: __found_grouping += static_cast(__sep_pos); 29761: 29761: if (!std::__verify_grouping(__lc->_M_grouping, 29761: __lc->_M_grouping_size, 29761: __found_grouping)) 29761: __err = ios_base::failbit; 29761: } 29761: 29761: 29761: 29761: if ((!__sep_pos && !__found_zero && !__found_grouping.size()) 29761: || __testfail) 29761: { 29761: __v = 0; 29761: __err = ios_base::failbit; 29761: } 29761: else if (__testoverflow) 29761: { 29761: if (__negative && __num_traits::__is_signed) 29761: __v = __num_traits::__min; 29761: else 29761: __v = __num_traits::__max; 29761: __err = ios_base::failbit; 29761: } 29761: else 29761: __v = __negative ? -__result : __result; 29761: 29761: if (__testeof) 29761: __err |= ios_base::eofbit; 29761: return __beg; 29761: } 29761: 29761: 29761: 29761: template 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, bool& __v) const 29761: { 29761: if (!(__io.flags() & ios_base::boolalpha)) 29761: { 29761: 29761: 29761: 29761: long __l = -1; 29761: __beg = _M_extract_int(__beg, __end, __io, __err, __l); 29761: if (__l == 0 || __l == 1) 29761: __v = bool(__l); 29761: else 29761: { 29761: 29761: 29761: __v = true; 29761: __err = ios_base::failbit; 29761: if (__beg == __end) 29761: __err |= ios_base::eofbit; 29761: } 29761: } 29761: else 29761: { 29761: 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: 29761: bool __testf = true; 29761: bool __testt = true; 29761: bool __donef = __lc->_M_falsename_size == 0; 29761: bool __donet = __lc->_M_truename_size == 0; 29761: bool __testeof = false; 29761: size_t __n = 0; 29761: while (!__donef || !__donet) 29761: { 29761: if (__beg == __end) 29761: { 29761: __testeof = true; 29761: break; 29761: } 29761: 29761: const char_type __c = *__beg; 29761: 29761: if (!__donef) 29761: __testf = __c == __lc->_M_falsename[__n]; 29761: 29761: if (!__testf && __donet) 29761: break; 29761: 29761: if (!__donet) 29761: __testt = __c == __lc->_M_truename[__n]; 29761: 29761: if (!__testt && __donef) 29761: break; 29761: 29761: if (!__testt && !__testf) 29761: break; 29761: 29761: ++__n; 29761: ++__beg; 29761: 29761: __donef = !__testf || __n >= __lc->_M_falsename_size; 29761: __donet = !__testt || __n >= __lc->_M_truename_size; 29761: } 29761: if (__testf && __n == __lc->_M_falsename_size && __n) 29761: { 29761: __v = false; 29761: if (__testt && __n == __lc->_M_truename_size) 29761: __err = ios_base::failbit; 29761: else 29761: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 29761: } 29761: else if (__testt && __n == __lc->_M_truename_size && __n) 29761: { 29761: __v = true; 29761: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 29761: } 29761: else 29761: { 29761: 29761: 29761: __v = false; 29761: __err = ios_base::failbit; 29761: if (__testeof) 29761: __err |= ios_base::eofbit; 29761: } 29761: } 29761: return __beg; 29761: } 29761: 29761: template 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, float& __v) const 29761: { 29761: string __xtrc; 29761: __xtrc.reserve(32); 29761: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29761: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29761: if (__beg == __end) 29761: __err |= ios_base::eofbit; 29761: return __beg; 29761: } 29761: 29761: template 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, double& __v) const 29761: { 29761: string __xtrc; 29761: __xtrc.reserve(32); 29761: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29761: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29761: if (__beg == __end) 29761: __err |= ios_base::eofbit; 29761: return __beg; 29761: } 29761: # 735 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: template 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long double& __v) const 29761: { 29761: string __xtrc; 29761: __xtrc.reserve(32); 29761: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29761: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29761: if (__beg == __end) 29761: __err |= ios_base::eofbit; 29761: return __beg; 29761: } 29761: 29761: template 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, void*& __v) const 29761: { 29761: 29761: typedef ios_base::fmtflags fmtflags; 29761: const fmtflags __fmt = __io.flags(); 29761: __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: typedef __gnu_cxx::__conditional_type<(sizeof(void*) 29761: <= sizeof(unsigned long)), 29761: unsigned long, unsigned long long>::__type _UIntPtrType; 29761: #pragma GCC diagnostic pop 29761: 29761: _UIntPtrType __ul; 29761: __beg = _M_extract_int(__beg, __end, __io, __err, __ul); 29761: 29761: 29761: __io.flags(__fmt); 29761: 29761: __v = reinterpret_cast(__ul); 29761: return __beg; 29761: } 29761: # 798 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: template 29761: void 29761: num_put<_CharT, _OutIter>:: 29761: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, 29761: _CharT* __new, const _CharT* __cs, int& __len) const 29761: { 29761: 29761: 29761: __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, 29761: __cs, __w, __len); 29761: __len = static_cast(__w); 29761: } 29761: 29761: 29761: 29761: template 29761: int 29761: __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, 29761: ios_base::fmtflags __flags, bool __dec) 29761: { 29761: _CharT* __buf = __bufend; 29761: if (__builtin_expect(__dec, true)) 29761: { 29761: 29761: do 29761: { 29761: *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; 29761: __v /= 10; 29761: } 29761: while (__v != 0); 29761: } 29761: else if ((__flags & ios_base::basefield) == ios_base::oct) 29761: { 29761: 29761: do 29761: { 29761: *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; 29761: __v >>= 3; 29761: } 29761: while (__v != 0); 29761: } 29761: else 29761: { 29761: 29761: const bool __uppercase = __flags & ios_base::uppercase; 29761: const int __case_offset = __uppercase ? __num_base::_S_oudigits 29761: : __num_base::_S_odigits; 29761: do 29761: { 29761: *--__buf = __lit[(__v & 0xf) + __case_offset]; 29761: __v >>= 4; 29761: } 29761: while (__v != 0); 29761: } 29761: return __bufend - __buf; 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: num_put<_CharT, _OutIter>:: 29761: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, 29761: ios_base&, _CharT* __new, _CharT* __cs, int& __len) const 29761: { 29761: _CharT* __p = std::__add_grouping(__new, __sep, __grouping, 29761: __grouping_size, __cs, __cs + __len); 29761: __len = __p - __new; 29761: } 29761: 29761: template 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, 29761: _ValueT __v) const 29761: { 29761: using __gnu_cxx::__add_unsigned; 29761: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: const _CharT* __lit = __lc->_M_atoms_out; 29761: const ios_base::fmtflags __flags = __io.flags(); 29761: 29761: 29761: const int __ilen = 5 * sizeof(_ValueT); 29761: _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __ilen)); 29761: 29761: 29761: 29761: const ios_base::fmtflags __basefield = __flags & ios_base::basefield; 29761: const bool __dec = (__basefield != ios_base::oct 29761: && __basefield != ios_base::hex); 29761: const __unsigned_type __u = ((__v > 0 || !__dec) 29761: ? __unsigned_type(__v) 29761: : -__unsigned_type(__v)); 29761: int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); 29761: __cs += __ilen - __len; 29761: 29761: 29761: if (__lc->_M_use_grouping) 29761: { 29761: 29761: 29761: _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * (__len + 1) 29761: * 2)); 29761: _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, 29761: __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); 29761: __cs = __cs2 + 2; 29761: } 29761: 29761: 29761: if (__builtin_expect(__dec, true)) 29761: { 29761: 29761: if (__v >= 0) 29761: { 29761: if (bool(__flags & ios_base::showpos) 29761: && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) 29761: *--__cs = __lit[__num_base::_S_oplus], ++__len; 29761: } 29761: else 29761: *--__cs = __lit[__num_base::_S_ominus], ++__len; 29761: } 29761: else if (bool(__flags & ios_base::showbase) && __v) 29761: { 29761: if (__basefield == ios_base::oct) 29761: *--__cs = __lit[__num_base::_S_odigits], ++__len; 29761: else 29761: { 29761: 29761: const bool __uppercase = __flags & ios_base::uppercase; 29761: *--__cs = __lit[__num_base::_S_ox + __uppercase]; 29761: 29761: *--__cs = __lit[__num_base::_S_odigits]; 29761: __len += 2; 29761: } 29761: } 29761: 29761: 29761: const streamsize __w = __io.width(); 29761: if (__w > static_cast(__len)) 29761: { 29761: _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __w)); 29761: _M_pad(__fill, __w, __io, __cs3, __cs, __len); 29761: __cs = __cs3; 29761: } 29761: __io.width(0); 29761: 29761: 29761: 29761: return std::__write(__s, __cs, __len); 29761: } 29761: 29761: template 29761: void 29761: num_put<_CharT, _OutIter>:: 29761: _M_group_float(const char* __grouping, size_t __grouping_size, 29761: _CharT __sep, const _CharT* __p, _CharT* __new, 29761: _CharT* __cs, int& __len) const 29761: { 29761: 29761: 29761: 29761: const int __declen = __p ? __p - __cs : __len; 29761: _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, 29761: __grouping_size, 29761: __cs, __cs + __declen); 29761: 29761: 29761: int __newlen = __p2 - __new; 29761: if (__p) 29761: { 29761: char_traits<_CharT>::copy(__p2, __p, __len - __declen); 29761: __newlen += __len - __declen; 29761: } 29761: __len = __newlen; 29761: } 29761: # 992 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: template 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, 29761: _ValueT __v) const 29761: { 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: 29761: 29761: const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); 29761: 29761: const int __max_digits = 29761: __gnu_cxx::__numeric_traits<_ValueT>::__digits10; 29761: 29761: 29761: int __len; 29761: 29761: char __fbuf[16]; 29761: __num_base::_S_format_float(__io, __fbuf, __mod); 29761: 29761: 29761: 29761: const bool __use_prec = 29761: (__io.flags() & ios_base::floatfield) != ios_base::floatfield; 29761: 29761: 29761: 29761: int __cs_size = __max_digits * 3; 29761: char* __cs = static_cast(__builtin_alloca(__cs_size)); 29761: if (__use_prec) 29761: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29761: __fbuf, __prec, __v); 29761: else 29761: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29761: __fbuf, __v); 29761: 29761: 29761: if (__len >= __cs_size) 29761: { 29761: __cs_size = __len + 1; 29761: __cs = static_cast(__builtin_alloca(__cs_size)); 29761: if (__use_prec) 29761: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29761: __fbuf, __prec, __v); 29761: else 29761: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29761: __fbuf, __v); 29761: } 29761: # 1065 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: const ctype<_CharT>& __ctype = use_facet >(__loc); 29761: 29761: _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __len)); 29761: __ctype.widen(__cs, __cs + __len, __ws); 29761: 29761: 29761: _CharT* __wp = 0; 29761: const char* __p = char_traits::find(__cs, __len, '.'); 29761: if (__p) 29761: { 29761: __wp = __ws + (__p - __cs); 29761: *__wp = __lc->_M_decimal_point; 29761: } 29761: 29761: 29761: 29761: 29761: if (__lc->_M_use_grouping 29761: && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' 29761: && __cs[1] >= '0' && __cs[2] >= '0'))) 29761: { 29761: 29761: 29761: _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __len * 2)); 29761: 29761: streamsize __off = 0; 29761: if (__cs[0] == '-' || __cs[0] == '+') 29761: { 29761: __off = 1; 29761: __ws2[0] = __ws[0]; 29761: __len -= 1; 29761: } 29761: 29761: _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, 29761: __lc->_M_thousands_sep, __wp, __ws2 + __off, 29761: __ws + __off, __len); 29761: __len += __off; 29761: 29761: __ws = __ws2; 29761: } 29761: 29761: 29761: const streamsize __w = __io.width(); 29761: if (__w > static_cast(__len)) 29761: { 29761: _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __w)); 29761: _M_pad(__fill, __w, __io, __ws3, __ws, __len); 29761: __ws = __ws3; 29761: } 29761: __io.width(0); 29761: 29761: 29761: 29761: return std::__write(__s, __ws, __len); 29761: } 29761: 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 29761: { 29761: const ios_base::fmtflags __flags = __io.flags(); 29761: if ((__flags & ios_base::boolalpha) == 0) 29761: { 29761: const long __l = __v; 29761: __s = _M_insert_int(__s, __io, __fill, __l); 29761: } 29761: else 29761: { 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: 29761: const _CharT* __name = __v ? __lc->_M_truename 29761: : __lc->_M_falsename; 29761: int __len = __v ? __lc->_M_truename_size 29761: : __lc->_M_falsename_size; 29761: 29761: const streamsize __w = __io.width(); 29761: if (__w > static_cast(__len)) 29761: { 29761: const streamsize __plen = __w - __len; 29761: _CharT* __ps 29761: = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __plen)); 29761: 29761: char_traits<_CharT>::assign(__ps, __plen, __fill); 29761: __io.width(0); 29761: 29761: if ((__flags & ios_base::adjustfield) == ios_base::left) 29761: { 29761: __s = std::__write(__s, __name, __len); 29761: __s = std::__write(__s, __ps, __plen); 29761: } 29761: else 29761: { 29761: __s = std::__write(__s, __ps, __plen); 29761: __s = std::__write(__s, __name, __len); 29761: } 29761: return __s; 29761: } 29761: __io.width(0); 29761: __s = std::__write(__s, __name, __len); 29761: } 29761: return __s; 29761: } 29761: 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 29761: { return _M_insert_float(__s, __io, __fill, char(), __v); } 29761: # 1190 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, 29761: long double __v) const 29761: { return _M_insert_float(__s, __io, __fill, 'L', __v); } 29761: 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, 29761: const void* __v) const 29761: { 29761: const ios_base::fmtflags __flags = __io.flags(); 29761: const ios_base::fmtflags __fmt = ~(ios_base::basefield 29761: | ios_base::uppercase); 29761: __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: typedef __gnu_cxx::__conditional_type<(sizeof(const void*) 29761: <= sizeof(unsigned long)), 29761: unsigned long, unsigned long long>::__type _UIntPtrType; 29761: #pragma GCC diagnostic pop 29761: 29761: __s = _M_insert_int(__s, __io, __fill, 29761: reinterpret_cast<_UIntPtrType>(__v)); 29761: __io.flags(__flags); 29761: return __s; 29761: } 29761: # 1230 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: 29761: # 1239 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: template 29761: void 29761: __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, 29761: _CharT* __news, const _CharT* __olds, 29761: streamsize __newlen, streamsize __oldlen) 29761: { 29761: const size_t __plen = static_cast(__newlen - __oldlen); 29761: const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; 29761: 29761: 29761: if (__adjust == ios_base::left) 29761: { 29761: _Traits::copy(__news, __olds, __oldlen); 29761: _Traits::assign(__news + __oldlen, __plen, __fill); 29761: return; 29761: } 29761: 29761: size_t __mod = 0; 29761: if (__adjust == ios_base::internal) 29761: { 29761: 29761: 29761: 29761: const locale& __loc = __io._M_getloc(); 29761: const ctype<_CharT>& __ctype = use_facet >(__loc); 29761: 29761: if (__ctype.widen('-') == __olds[0] 29761: || __ctype.widen('+') == __olds[0]) 29761: { 29761: __news[0] = __olds[0]; 29761: __mod = 1; 29761: ++__news; 29761: } 29761: else if (__ctype.widen('0') == __olds[0] 29761: && __oldlen > 1 29761: && (__ctype.widen('x') == __olds[1] 29761: || __ctype.widen('X') == __olds[1])) 29761: { 29761: __news[0] = __olds[0]; 29761: __news[1] = __olds[1]; 29761: __mod = 2; 29761: __news += 2; 29761: } 29761: 29761: } 29761: _Traits::assign(__news, __plen, __fill); 29761: _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); 29761: } 29761: 29761: template 29761: _CharT* 29761: __add_grouping(_CharT* __s, _CharT __sep, 29761: const char* __gbeg, size_t __gsize, 29761: const _CharT* __first, const _CharT* __last) 29761: { 29761: size_t __idx = 0; 29761: size_t __ctr = 0; 29761: 29761: while (__last - __first > __gbeg[__idx] 29761: && static_cast(__gbeg[__idx]) > 0 29761: && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) 29761: { 29761: __last -= __gbeg[__idx]; 29761: __idx < __gsize - 1 ? ++__idx : ++__ctr; 29761: } 29761: 29761: while (__first != __last) 29761: *__s++ = *__first++; 29761: 29761: while (__ctr--) 29761: { 29761: *__s++ = __sep; 29761: for (char __i = __gbeg[__idx]; __i > 0; --__i) 29761: *__s++ = *__first++; 29761: } 29761: 29761: while (__idx--) 29761: { 29761: *__s++ = __sep; 29761: for (char __i = __gbeg[__idx]; __i > 0; --__i) 29761: *__s++ = *__first++; 29761: } 29761: 29761: return __s; 29761: } 29761: 29761: 29761: 29761: 29761: extern template class __cxx11:: numpunct; 29761: extern template class __cxx11:: numpunct_byname; 29761: extern template class num_get; 29761: extern template class num_put; 29761: extern template class ctype_byname; 29761: 29761: extern template 29761: const ctype* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const numpunct* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const num_put* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const num_get* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const ctype& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const numpunct& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const num_put& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const num_get& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: extern template class __cxx11:: numpunct; 29761: extern template class __cxx11:: numpunct_byname; 29761: extern template class num_get; 29761: extern template class num_put; 29761: extern template class ctype_byname; 29761: 29761: extern template 29761: const ctype* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const numpunct* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const num_put* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const num_get* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const ctype& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const numpunct& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const num_put& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const num_get& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: 29761: 29761: } 29761: # 2700 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: # 38 "/usr/include/c++/14/bits/basic_ios.h" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: inline const _Facet& 29761: __check_facet(const _Facet* __f) 29761: { 29761: if (!__f) 29761: __throw_bad_cast(); 29761: return *__f; 29761: } 29761: # 66 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: template 29761: class basic_ios : public ios_base 29761: { 29761: 29761: 29761: 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef typename _Traits::pos_type pos_type; 29761: typedef typename _Traits::off_type off_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef ctype<_CharT> __ctype_type; 29761: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 29761: __num_put_type; 29761: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 29761: __num_get_type; 29761: 29761: 29761: 29761: protected: 29761: basic_ostream<_CharT, _Traits>* _M_tie; 29761: mutable char_type _M_fill; 29761: mutable bool _M_fill_init; 29761: basic_streambuf<_CharT, _Traits>* _M_streambuf; 29761: 29761: 29761: const __ctype_type* _M_ctype; 29761: 29761: const __num_put_type* _M_num_put; 29761: 29761: const __num_get_type* _M_num_get; 29761: 29761: public: 29761: # 121 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: explicit operator bool() const 29761: { return !this->fail(); } 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: operator!() const 29761: { return this->fail(); } 29761: # 140 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: iostate 29761: rdstate() const 29761: { return _M_streambuf_state; } 29761: # 151 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: void 29761: clear(iostate __state = goodbit); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: setstate(iostate __state) 29761: { this->clear(this->rdstate() | __state); } 29761: 29761: 29761: 29761: 29761: void 29761: _M_setstate(iostate __state) 29761: { 29761: 29761: 29761: _M_streambuf_state |= __state; 29761: if (this->exceptions() & __state) 29761: throw; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: good() const 29761: { return this->rdstate() == 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: eof() const 29761: { return (this->rdstate() & eofbit) != 0; } 29761: # 204 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: bool 29761: fail() const 29761: { return (this->rdstate() & (badbit | failbit)) != 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: bad() const 29761: { return (this->rdstate() & badbit) != 0; } 29761: # 225 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: iostate 29761: exceptions() const 29761: { return _M_exception; } 29761: # 260 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: void 29761: exceptions(iostate __except) 29761: { 29761: _M_exception = __except; 29761: this->clear(_M_streambuf_state); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_ios(basic_streambuf<_CharT, _Traits>* __sb) 29761: : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), 29761: _M_ctype(0), _M_num_put(0), _M_num_get(0) 29761: { this->init(__sb); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual 29761: ~basic_ios() { } 29761: # 298 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: basic_ostream<_CharT, _Traits>* 29761: tie() const 29761: { return _M_tie; } 29761: # 310 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: basic_ostream<_CharT, _Traits>* 29761: tie(basic_ostream<_CharT, _Traits>* __tiestr) 29761: { 29761: basic_ostream<_CharT, _Traits>* __old = _M_tie; 29761: _M_tie = __tiestr; 29761: return __old; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_streambuf<_CharT, _Traits>* 29761: rdbuf() const 29761: { return _M_streambuf; } 29761: # 350 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: basic_streambuf<_CharT, _Traits>* 29761: rdbuf(basic_streambuf<_CharT, _Traits>* __sb); 29761: # 364 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: basic_ios& 29761: copyfmt(const basic_ios& __rhs); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: char_type 29761: fill() const 29761: { 29761: if (!_M_fill_init) 29761: { 29761: _M_fill = this->widen(' '); 29761: _M_fill_init = true; 29761: } 29761: return _M_fill; 29761: } 29761: # 393 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: char_type 29761: fill(char_type __ch) 29761: { 29761: char_type __old = this->fill(); 29761: _M_fill = __ch; 29761: return __old; 29761: } 29761: # 413 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: locale 29761: imbue(const locale& __loc); 29761: # 433 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: char 29761: narrow(char_type __c, char __dfault) const 29761: { return __check_facet(_M_ctype).narrow(__c, __dfault); } 29761: # 452 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: char_type 29761: widen(char __c) const 29761: { return __check_facet(_M_ctype).widen(__c); } 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_ios() 29761: : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), 29761: _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: init(basic_streambuf<_CharT, _Traits>* __sb); 29761: 29761: 29761: basic_ios(const basic_ios&) = delete; 29761: basic_ios& operator=(const basic_ios&) = delete; 29761: 29761: void 29761: move(basic_ios& __rhs) 29761: { 29761: ios_base::_M_move(__rhs); 29761: _M_cache_locale(_M_ios_locale); 29761: this->tie(__rhs.tie(nullptr)); 29761: _M_fill = __rhs._M_fill; 29761: _M_fill_init = __rhs._M_fill_init; 29761: _M_streambuf = nullptr; 29761: } 29761: 29761: void 29761: move(basic_ios&& __rhs) 29761: { this->move(__rhs); } 29761: 29761: void 29761: swap(basic_ios& __rhs) noexcept 29761: { 29761: ios_base::_M_swap(__rhs); 29761: _M_cache_locale(_M_ios_locale); 29761: __rhs._M_cache_locale(__rhs._M_ios_locale); 29761: std::swap(_M_tie, __rhs._M_tie); 29761: std::swap(_M_fill, __rhs._M_fill); 29761: std::swap(_M_fill_init, __rhs._M_fill_init); 29761: } 29761: 29761: void 29761: set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 29761: { _M_streambuf = __sb; } 29761: 29761: 29761: void 29761: _M_cache_locale(const locale& __loc); 29761: }; 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/basic_ios.tcc" 1 3 29761: # 33 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: void 29761: basic_ios<_CharT, _Traits>::clear(iostate __state) 29761: { 29761: if (this->rdbuf()) 29761: _M_streambuf_state = __state; 29761: else 29761: _M_streambuf_state = __state | badbit; 29761: if (this->exceptions() & this->rdstate()) 29761: __throw_ios_failure(("basic_ios::clear")); 29761: } 29761: 29761: template 29761: basic_streambuf<_CharT, _Traits>* 29761: basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 29761: { 29761: basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; 29761: _M_streambuf = __sb; 29761: this->clear(); 29761: return __old; 29761: } 29761: 29761: template 29761: basic_ios<_CharT, _Traits>& 29761: basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) 29761: { 29761: 29761: 29761: if (this != std::__addressof(__rhs)) 29761: { 29761: 29761: 29761: 29761: 29761: _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? 29761: _M_local_word : new _Words[__rhs._M_word_size]; 29761: 29761: 29761: _Callback_list* __cb = __rhs._M_callbacks; 29761: if (__cb) 29761: __cb->_M_add_reference(); 29761: _M_call_callbacks(erase_event); 29761: if (_M_word != _M_local_word) 29761: { 29761: delete [] _M_word; 29761: _M_word = 0; 29761: } 29761: _M_dispose_callbacks(); 29761: 29761: 29761: _M_callbacks = __cb; 29761: for (int __i = 0; __i < __rhs._M_word_size; ++__i) 29761: __words[__i] = __rhs._M_word[__i]; 29761: _M_word = __words; 29761: _M_word_size = __rhs._M_word_size; 29761: 29761: this->flags(__rhs.flags()); 29761: this->width(__rhs.width()); 29761: this->precision(__rhs.precision()); 29761: this->tie(__rhs.tie()); 29761: this->fill(__rhs.fill()); 29761: _M_ios_locale = __rhs.getloc(); 29761: _M_cache_locale(_M_ios_locale); 29761: 29761: _M_call_callbacks(copyfmt_event); 29761: 29761: 29761: this->exceptions(__rhs.exceptions()); 29761: } 29761: return *this; 29761: } 29761: 29761: 29761: template 29761: locale 29761: basic_ios<_CharT, _Traits>::imbue(const locale& __loc) 29761: { 29761: locale __old(this->getloc()); 29761: ios_base::imbue(__loc); 29761: _M_cache_locale(__loc); 29761: if (this->rdbuf() != 0) 29761: this->rdbuf()->pubimbue(__loc); 29761: return __old; 29761: } 29761: 29761: template 29761: void 29761: basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) 29761: { 29761: 29761: ios_base::_M_init(); 29761: 29761: 29761: _M_cache_locale(_M_ios_locale); 29761: # 146 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29761: _M_fill = _CharT(); 29761: _M_fill_init = false; 29761: 29761: _M_tie = 0; 29761: _M_exception = goodbit; 29761: _M_streambuf = __sb; 29761: _M_streambuf_state = __sb ? goodbit : badbit; 29761: } 29761: 29761: template 29761: void 29761: basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) 29761: { 29761: _M_ctype = std::__try_use_facet<__ctype_type>(__loc); 29761: _M_num_put = std::__try_use_facet<__num_put_type>(__loc); 29761: _M_num_get = std::__try_use_facet<__num_get_type>(__loc); 29761: } 29761: 29761: 29761: 29761: 29761: extern template class basic_ios; 29761: 29761: 29761: extern template class basic_ios; 29761: 29761: 29761: 29761: 29761: } 29761: # 521 "/usr/include/c++/14/bits/basic_ios.h" 2 3 29761: # 47 "/usr/include/c++/14/ios" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 50 "/usr/include/c++/14/ios" 2 3 29761: # 41 "/usr/include/c++/14/ostream" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 48 "/usr/include/c++/14/ostream" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 65 "/usr/include/c++/14/ostream" 3 29761: template 29761: class basic_ostream : virtual public basic_ios<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef typename _Traits::pos_type pos_type; 29761: typedef typename _Traits::off_type off_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29761: typedef basic_ios<_CharT, _Traits> __ios_type; 29761: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29761: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 29761: __num_put_type; 29761: typedef ctype<_CharT> __ctype_type; 29761: # 91 "/usr/include/c++/14/ostream" 3 29761: explicit 29761: basic_ostream(__streambuf_type* __sb) 29761: { this->init(__sb); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual 29761: ~basic_ostream() { } 29761: 29761: 29761: class sentry; 29761: friend class sentry; 29761: # 115 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: operator<<(__ostream_type& (*__pf)(__ostream_type&)) 29761: { 29761: 29761: 29761: 29761: return __pf(*this); 29761: } 29761: 29761: __ostream_type& 29761: operator<<(__ios_type& (*__pf)(__ios_type&)) 29761: { 29761: 29761: 29761: 29761: __pf(*this); 29761: return *this; 29761: } 29761: 29761: __ostream_type& 29761: operator<<(ios_base& (*__pf) (ios_base&)) 29761: { 29761: 29761: 29761: 29761: __pf(*this); 29761: return *this; 29761: } 29761: # 173 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: operator<<(long __n) 29761: { return _M_insert(__n); } 29761: 29761: __ostream_type& 29761: operator<<(unsigned long __n) 29761: { return _M_insert(__n); } 29761: 29761: __ostream_type& 29761: operator<<(bool __n) 29761: { return _M_insert(__n); } 29761: 29761: __ostream_type& 29761: operator<<(short __n); 29761: 29761: __ostream_type& 29761: operator<<(unsigned short __n) 29761: { 29761: 29761: 29761: return _M_insert(static_cast(__n)); 29761: } 29761: 29761: __ostream_type& 29761: operator<<(int __n); 29761: 29761: __ostream_type& 29761: operator<<(unsigned int __n) 29761: { 29761: 29761: 29761: return _M_insert(static_cast(__n)); 29761: } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: __ostream_type& 29761: operator<<(long long __n) 29761: { return _M_insert(__n); } 29761: 29761: __ostream_type& 29761: operator<<(unsigned long long __n) 29761: { return _M_insert(__n); } 29761: #pragma GCC diagnostic pop 29761: # 230 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: operator<<(double __f) 29761: { return _M_insert(__f); } 29761: 29761: __ostream_type& 29761: operator<<(float __f) 29761: { 29761: 29761: 29761: return _M_insert(static_cast(__f)); 29761: } 29761: 29761: __ostream_type& 29761: operator<<(long double __f) 29761: { return _M_insert(__f); } 29761: # 300 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: operator<<(const void* __p) 29761: { return _M_insert(__p); } 29761: 29761: 29761: __ostream_type& 29761: operator<<(nullptr_t) 29761: { return *this << "nullptr"; } 29761: # 338 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: operator<<(__streambuf_type* __sb); 29761: # 371 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: put(char_type __c); 29761: # 390 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: write(const char_type* __s, streamsize __n); 29761: # 403 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: flush(); 29761: # 413 "/usr/include/c++/14/ostream" 3 29761: pos_type 29761: tellp(); 29761: # 424 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: seekp(pos_type); 29761: # 436 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: seekp(off_type, ios_base::seekdir); 29761: 29761: protected: 29761: basic_ostream() 29761: { this->init(0); } 29761: 29761: 29761: 29761: basic_ostream(basic_iostream<_CharT, _Traits>&) { } 29761: 29761: basic_ostream(const basic_ostream&) = delete; 29761: 29761: basic_ostream(basic_ostream&& __rhs) 29761: : __ios_type() 29761: { __ios_type::move(__rhs); } 29761: 29761: 29761: 29761: basic_ostream& operator=(const basic_ostream&) = delete; 29761: 29761: basic_ostream& 29761: operator=(basic_ostream&& __rhs) 29761: { 29761: swap(__rhs); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_ostream& __rhs) 29761: { __ios_type::swap(__rhs); } 29761: 29761: 29761: template 29761: __ostream_type& 29761: _M_insert(_ValueT __v); 29761: 29761: private: 29761: 29761: void 29761: _M_write(const char_type* __s, streamsize __n) 29761: { std::__ostream_insert(*this, __s, __n); } 29761: 29761: }; 29761: # 488 "/usr/include/c++/14/ostream" 3 29761: template 29761: class basic_ostream<_CharT, _Traits>::sentry 29761: { 29761: 29761: bool _M_ok; 29761: basic_ostream<_CharT, _Traits>& _M_os; 29761: 29761: public: 29761: # 507 "/usr/include/c++/14/ostream" 3 29761: explicit 29761: sentry(basic_ostream<_CharT, _Traits>& __os); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~sentry() 29761: { 29761: 29761: if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) 29761: { 29761: 29761: if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) 29761: _M_os.setstate(ios_base::badbit); 29761: } 29761: } 29761: #pragma GCC diagnostic pop 29761: # 539 "/usr/include/c++/14/ostream" 3 29761: explicit 29761: 29761: operator bool() const 29761: { return _M_ok; } 29761: }; 29761: # 561 "/usr/include/c++/14/ostream" 3 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) 29761: { 29761: if (__out.width() != 0) 29761: return __ostream_insert(__out, &__c, 1); 29761: __out.put(__c); 29761: return __out; 29761: } 29761: 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) 29761: { return (__out << __out.widen(__c)); } 29761: 29761: 29761: template 29761: inline basic_ostream& 29761: operator<<(basic_ostream& __out, char __c) 29761: { 29761: if (__out.width() != 0) 29761: return __ostream_insert(__out, &__c, 1); 29761: __out.put(__c); 29761: return __out; 29761: } 29761: 29761: 29761: template 29761: inline basic_ostream& 29761: operator<<(basic_ostream& __out, signed char __c) 29761: { return (__out << static_cast(__c)); } 29761: 29761: template 29761: inline basic_ostream& 29761: operator<<(basic_ostream& __out, unsigned char __c) 29761: { return (__out << static_cast(__c)); } 29761: # 652 "/usr/include/c++/14/ostream" 3 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) 29761: { 29761: if (!__s) 29761: __out.setstate(ios_base::badbit); 29761: else 29761: __ostream_insert(__out, __s, 29761: static_cast(_Traits::length(__s))); 29761: return __out; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits> & 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); 29761: 29761: 29761: template 29761: inline basic_ostream& 29761: operator<<(basic_ostream& __out, const char* __s) 29761: { 29761: if (!__s) 29761: __out.setstate(ios_base::badbit); 29761: else 29761: __ostream_insert(__out, __s, 29761: static_cast(_Traits::length(__s))); 29761: return __out; 29761: } 29761: 29761: 29761: template 29761: inline basic_ostream& 29761: operator<<(basic_ostream& __out, const signed char* __s) 29761: { return (__out << reinterpret_cast(__s)); } 29761: 29761: template 29761: inline basic_ostream & 29761: operator<<(basic_ostream& __out, const unsigned char* __s) 29761: { return (__out << reinterpret_cast(__s)); } 29761: # 742 "/usr/include/c++/14/ostream" 3 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: endl(basic_ostream<_CharT, _Traits>& __os) 29761: { return flush(__os.put(__os.widen('\n'))); } 29761: # 754 "/usr/include/c++/14/ostream" 3 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: ends(basic_ostream<_CharT, _Traits>& __os) 29761: { return __os.put(_CharT()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: flush(basic_ostream<_CharT, _Traits>& __os) 29761: { return __os.flush(); } 29761: # 786 "/usr/include/c++/14/ostream" 3 29761: template 29761: using _Require_derived_from_ios_base 29761: = _Require, __not_>, 29761: is_convertible::type, ios_base*>>; 29761: 29761: template, 29761: typename 29761: = decltype(std::declval<_Os&>() << std::declval())> 29761: using __rvalue_stream_insertion_t = _Os&&; 29761: # 808 "/usr/include/c++/14/ostream" 3 29761: template 29761: inline __rvalue_stream_insertion_t<_Ostream, _Tp> 29761: operator<<(_Ostream&& __os, const _Tp& __x) 29761: { 29761: __os << __x; 29761: return std::move(__os); 29761: } 29761: # 1019 "/usr/include/c++/14/ostream" 3 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/ostream.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/ostream.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/ostream.tcc" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>::sentry:: 29761: sentry(basic_ostream<_CharT, _Traits>& __os) 29761: : _M_ok(false), _M_os(__os) 29761: { 29761: 29761: if (__os.tie() && __os.good()) 29761: __os.tie()->flush(); 29761: 29761: if (__os.good()) 29761: _M_ok = true; 29761: else if (__os.bad()) 29761: __os.setstate(ios_base::failbit); 29761: } 29761: 29761: template 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: _M_insert(_ValueT __v) 29761: { 29761: sentry __cerb(*this); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: 29761: const __num_put_type& __np = __check_facet(this->_M_num_put); 29761: 29761: 29761: 29761: 29761: if (__np.put(*this, *this, this->fill(), __v).failed()) 29761: __err |= ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: operator<<(short __n) 29761: { 29761: 29761: 29761: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 29761: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 29761: return _M_insert(static_cast(static_cast(__n))); 29761: else 29761: return _M_insert(static_cast(__n)); 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: operator<<(int __n) 29761: { 29761: 29761: 29761: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 29761: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 29761: return _M_insert(static_cast(static_cast(__n))); 29761: else 29761: return _M_insert(static_cast(__n)); 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: operator<<(__streambuf_type* __sbin) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this); 29761: if (__cerb && __sbin) 29761: { 29761: try 29761: { 29761: if (!__copy_streambufs(__sbin, this->rdbuf())) 29761: __err |= ios_base::failbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::failbit); } 29761: } 29761: else if (!__sbin) 29761: __err |= ios_base::badbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: put(char_type __c) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: sentry __cerb(*this); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __put = this->rdbuf()->sputc(__c); 29761: if (traits_type::eq_int_type(__put, traits_type::eof())) 29761: __err |= ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: write(const _CharT* __s, streamsize __n) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: sentry __cerb(*this); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: if (this->rdbuf()->sputn(__s, __n) != __n) 29761: __err = ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(ios_base::badbit); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: flush() 29761: { 29761: 29761: 29761: 29761: 29761: 29761: if (__streambuf_type* __buf = this->rdbuf()) 29761: { 29761: sentry __cerb(*this); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: if (this->rdbuf()->pubsync() == -1) 29761: __err |= ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: typename basic_ostream<_CharT, _Traits>::pos_type 29761: basic_ostream<_CharT, _Traits>:: 29761: tellp() 29761: { 29761: sentry __cerb(*this); 29761: pos_type __ret = pos_type(-1); 29761: if (!this->fail()) 29761: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); 29761: return __ret; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: seekp(pos_type __pos) 29761: { 29761: sentry __cerb(*this); 29761: if (!this->fail()) 29761: { 29761: 29761: 29761: const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); 29761: 29761: 29761: if (__p == pos_type(off_type(-1))) 29761: this->setstate(ios_base::failbit); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: seekp(off_type __off, ios_base::seekdir __dir) 29761: { 29761: sentry __cerb(*this); 29761: if (!this->fail()) 29761: { 29761: 29761: 29761: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 29761: ios_base::out); 29761: 29761: 29761: if (__p == pos_type(off_type(-1))) 29761: this->setstate(ios_base::failbit); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) 29761: { 29761: if (!__s) 29761: __out.setstate(ios_base::badbit); 29761: else 29761: { 29761: 29761: 29761: const size_t __clen = char_traits::length(__s); 29761: try 29761: { 29761: struct __ptr_guard 29761: { 29761: _CharT *__p; 29761: __ptr_guard (_CharT *__ip): __p(__ip) { } 29761: ~__ptr_guard() { delete[] __p; } 29761: _CharT* __get() { return __p; } 29761: } __pg (new _CharT[__clen]); 29761: 29761: _CharT *__ws = __pg.__get(); 29761: for (size_t __i = 0; __i < __clen; ++__i) 29761: __ws[__i] = __out.widen(__s[__i]); 29761: __ostream_insert(__out, __ws, __clen); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __out._M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { __out._M_setstate(ios_base::badbit); } 29761: } 29761: return __out; 29761: } 29761: 29761: 29761: 29761: 29761: extern template class basic_ostream; 29761: extern template ostream& endl(ostream&); 29761: extern template ostream& ends(ostream&); 29761: extern template ostream& flush(ostream&); 29761: extern template ostream& operator<<(ostream&, char); 29761: extern template ostream& operator<<(ostream&, unsigned char); 29761: extern template ostream& operator<<(ostream&, signed char); 29761: extern template ostream& operator<<(ostream&, const char*); 29761: extern template ostream& operator<<(ostream&, const unsigned char*); 29761: extern template ostream& operator<<(ostream&, const signed char*); 29761: 29761: extern template ostream& ostream::_M_insert(long); 29761: extern template ostream& ostream::_M_insert(unsigned long); 29761: extern template ostream& ostream::_M_insert(bool); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: extern template ostream& ostream::_M_insert(long long); 29761: extern template ostream& ostream::_M_insert(unsigned long long); 29761: #pragma GCC diagnostic pop 29761: 29761: extern template ostream& ostream::_M_insert(double); 29761: extern template ostream& ostream::_M_insert(long double); 29761: extern template ostream& ostream::_M_insert(const void*); 29761: 29761: 29761: extern template class basic_ostream; 29761: extern template wostream& endl(wostream&); 29761: extern template wostream& ends(wostream&); 29761: extern template wostream& flush(wostream&); 29761: extern template wostream& operator<<(wostream&, wchar_t); 29761: extern template wostream& operator<<(wostream&, char); 29761: extern template wostream& operator<<(wostream&, const wchar_t*); 29761: extern template wostream& operator<<(wostream&, const char*); 29761: 29761: extern template wostream& wostream::_M_insert(long); 29761: extern template wostream& wostream::_M_insert(unsigned long); 29761: extern template wostream& wostream::_M_insert(bool); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: extern template wostream& wostream::_M_insert(long long); 29761: extern template wostream& wostream::_M_insert(unsigned long long); 29761: #pragma GCC diagnostic pop 29761: 29761: extern template wostream& wostream::_M_insert(double); 29761: extern template wostream& wostream::_M_insert(long double); 29761: extern template wostream& wostream::_M_insert(const void*); 29761: 29761: 29761: 29761: 29761: } 29761: # 1023 "/usr/include/c++/14/ostream" 2 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 2 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: namespace rocksdb { 29761: 29761: class ColumnFamilyHandle; 29761: 29761: 29761: 29761: class WideColumn { 29761: public: 29761: WideColumn() = default; 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: template 29761: WideColumn(N&& name, V&& value) 29761: : name_(std::forward(name)), value_(std::forward(value)) {} 29761: # 49 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: template 29761: WideColumn(std::piecewise_construct_t, NTuple&& name_tuple, 29761: VTuple&& value_tuple) 29761: : name_(std::make_from_tuple(std::forward(name_tuple))), 29761: value_(std::make_from_tuple(std::forward(value_tuple))) { 29761: } 29761: 29761: const Slice& name() const { return name_; } 29761: const Slice& value() const { return value_; } 29761: 29761: Slice& name() { return name_; } 29761: Slice& value() { return value_; } 29761: 29761: private: 29761: Slice name_; 29761: Slice value_; 29761: }; 29761: 29761: 29761: inline bool operator==(const WideColumn& lhs, const WideColumn& rhs) { 29761: return lhs.name() == rhs.name() && lhs.value() == rhs.value(); 29761: } 29761: 29761: inline bool operator!=(const WideColumn& lhs, const WideColumn& rhs) { 29761: return !(lhs == rhs); 29761: } 29761: 29761: inline std::ostream& operator<<(std::ostream& os, const WideColumn& column) { 29761: const bool hex = 29761: (os.flags() & std::ios_base::basefield) == std::ios_base::hex; 29761: if (!column.name().empty()) { 29761: if (hex) { 29761: os << "0x"; 29761: } 29761: os << column.name().ToString(hex); 29761: } 29761: os << ':'; 29761: if (!column.value().empty()) { 29761: if (hex) { 29761: os << "0x"; 29761: } 29761: os << column.value().ToString(hex); 29761: } 29761: return os; 29761: } 29761: 29761: 29761: using WideColumns = std::vector; 29761: 29761: 29761: extern const Slice kDefaultWideColumnName; 29761: 29761: 29761: extern const WideColumns kNoWideColumns; 29761: 29761: 29761: 29761: class PinnableWideColumns { 29761: public: 29761: PinnableWideColumns() = default; 29761: 29761: PinnableWideColumns(const PinnableWideColumns&) = delete; 29761: PinnableWideColumns& operator=(const PinnableWideColumns&) = delete; 29761: 29761: PinnableWideColumns(PinnableWideColumns&&); 29761: PinnableWideColumns& operator=(PinnableWideColumns&&); 29761: 29761: ~PinnableWideColumns() = default; 29761: 29761: const WideColumns& columns() const { return columns_; } 29761: size_t serialized_size() const { return value_.size(); } 29761: 29761: void SetPlainValue(const Slice& value); 29761: void SetPlainValue(const Slice& value, Cleanable* cleanable); 29761: void SetPlainValue(PinnableSlice&& value); 29761: void SetPlainValue(std::string&& value); 29761: 29761: Status SetWideColumnValue(const Slice& value); 29761: Status SetWideColumnValue(const Slice& value, Cleanable* cleanable); 29761: Status SetWideColumnValue(PinnableSlice&& value); 29761: Status SetWideColumnValue(std::string&& value); 29761: 29761: void Reset(); 29761: 29761: private: 29761: void Move(PinnableWideColumns&& other); 29761: void CopyValue(const Slice& value); 29761: void PinOrCopyValue(const Slice& value, Cleanable* cleanable); 29761: void MoveValue(PinnableSlice&& value); 29761: void MoveValue(std::string&& value); 29761: 29761: void CreateIndexForPlainValue(); 29761: Status CreateIndexForWideColumns(); 29761: 29761: PinnableSlice value_; 29761: WideColumns columns_; 29761: }; 29761: 29761: inline void PinnableWideColumns::Reset() { 29761: value_.Reset(); 29761: columns_.clear(); 29761: } 29761: 29761: inline void PinnableWideColumns::Move(PinnableWideColumns&& other) { 29761: 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: (static_cast ( 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: columns_.empty() 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: "columns_.empty()" 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: ; 29761: 29761: if (other.columns_.empty()) { 29761: return; 29761: } 29761: 29761: const char* const data = other.value_.data(); 29761: const bool is_plain_value = 29761: other.columns_.size() == 1 && 29761: other.columns_.front().name() == kDefaultWideColumnName && 29761: other.columns_.front().value() == other.value_; 29761: 29761: MoveValue(std::move(other.value_)); 29761: 29761: if (value_.data() == data) { 29761: columns_ = std::move(other.columns_); 29761: } else { 29761: if (is_plain_value) { 29761: CreateIndexForPlainValue(); 29761: } else { 29761: const Status s = CreateIndexForWideColumns(); 29761: 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: (static_cast ( 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: s.ok() 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: "s.ok()" 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: ; 29761: 29761: s.PermitUncheckedError(); 29761: } 29761: } 29761: 29761: other.Reset(); 29761: } 29761: 29761: inline void PinnableWideColumns::CopyValue(const Slice& value) { 29761: value_.PinSelf(value); 29761: } 29761: 29761: inline void PinnableWideColumns::PinOrCopyValue(const Slice& value, 29761: Cleanable* cleanable) { 29761: if (!cleanable) { 29761: CopyValue(value); 29761: return; 29761: } 29761: 29761: value_.PinSlice(value, cleanable); 29761: } 29761: 29761: inline void PinnableWideColumns::MoveValue(PinnableSlice&& value) { 29761: value_ = std::move(value); 29761: } 29761: 29761: inline void PinnableWideColumns::MoveValue(std::string&& value) { 29761: std::string* const buf = value_.GetSelf(); 29761: 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: (static_cast ( 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: buf 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: "buf" 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: ; 29761: 29761: *buf = std::move(value); 29761: value_.PinSelf(); 29761: } 29761: 29761: inline void PinnableWideColumns::CreateIndexForPlainValue() { 29761: columns_ = WideColumns{{kDefaultWideColumnName, value_}}; 29761: } 29761: 29761: inline void PinnableWideColumns::SetPlainValue(const Slice& value) { 29761: CopyValue(value); 29761: CreateIndexForPlainValue(); 29761: } 29761: 29761: inline void PinnableWideColumns::SetPlainValue(const Slice& value, 29761: Cleanable* cleanable) { 29761: PinOrCopyValue(value, cleanable); 29761: CreateIndexForPlainValue(); 29761: } 29761: 29761: inline void PinnableWideColumns::SetPlainValue(PinnableSlice&& value) { 29761: MoveValue(std::move(value)); 29761: CreateIndexForPlainValue(); 29761: } 29761: 29761: inline void PinnableWideColumns::SetPlainValue(std::string&& value) { 29761: MoveValue(std::move(value)); 29761: CreateIndexForPlainValue(); 29761: } 29761: 29761: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value) { 29761: CopyValue(value); 29761: 29761: const Status s = CreateIndexForWideColumns(); 29761: if (!s.ok()) { 29761: Reset(); 29761: } 29761: 29761: return s; 29761: } 29761: 29761: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value, 29761: Cleanable* cleanable) { 29761: PinOrCopyValue(value, cleanable); 29761: 29761: const Status s = CreateIndexForWideColumns(); 29761: if (!s.ok()) { 29761: Reset(); 29761: } 29761: 29761: return s; 29761: } 29761: 29761: inline Status PinnableWideColumns::SetWideColumnValue(PinnableSlice&& value) { 29761: MoveValue(std::move(value)); 29761: 29761: const Status s = CreateIndexForWideColumns(); 29761: if (!s.ok()) { 29761: Reset(); 29761: } 29761: 29761: return s; 29761: } 29761: 29761: inline Status PinnableWideColumns::SetWideColumnValue(std::string&& value) { 29761: MoveValue(std::move(value)); 29761: 29761: const Status s = CreateIndexForWideColumns(); 29761: if (!s.ok()) { 29761: Reset(); 29761: } 29761: 29761: return s; 29761: } 29761: 29761: inline PinnableWideColumns::PinnableWideColumns(PinnableWideColumns&& other) { 29761: Move(std::move(other)); 29761: } 29761: 29761: inline PinnableWideColumns& PinnableWideColumns::operator=( 29761: PinnableWideColumns&& other) { 29761: if (this != &other) { 29761: Reset(); 29761: Move(std::move(other)); 29761: } 29761: 29761: return *this; 29761: } 29761: 29761: inline bool operator==(const PinnableWideColumns& lhs, 29761: const PinnableWideColumns& rhs) { 29761: return lhs.columns() == rhs.columns(); 29761: } 29761: 29761: inline bool operator!=(const PinnableWideColumns& lhs, 29761: const PinnableWideColumns& rhs) { 29761: return !(lhs == rhs); 29761: } 29761: 29761: } 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class ColumnFamilyHandle; 29761: 29761: 29761: 29761: 29761: class AttributeGroup { 29761: public: 29761: explicit AttributeGroup(ColumnFamilyHandle* column_family, 29761: const WideColumns& columns) 29761: : column_family_(column_family), columns_(columns) {} 29761: 29761: ColumnFamilyHandle* column_family() const { return column_family_; } 29761: const WideColumns& columns() const { return columns_; } 29761: WideColumns& columns() { return columns_; } 29761: 29761: private: 29761: ColumnFamilyHandle* column_family_; 29761: WideColumns columns_; 29761: }; 29761: 29761: inline bool operator==(const AttributeGroup& lhs, const AttributeGroup& rhs) { 29761: return lhs.column_family() == rhs.column_family() && 29761: lhs.columns() == rhs.columns(); 29761: } 29761: 29761: inline bool operator!=(const AttributeGroup& lhs, const AttributeGroup& rhs) { 29761: return !(lhs == rhs); 29761: } 29761: 29761: 29761: using AttributeGroups = std::vector; 29761: 29761: 29761: extern const AttributeGroups kNoAttributeGroups; 29761: 29761: 29761: class PinnableAttributeGroup { 29761: public: 29761: explicit PinnableAttributeGroup(ColumnFamilyHandle* column_family) 29761: : column_family_(column_family), status_(Status::OK()) {} 29761: 29761: ColumnFamilyHandle* column_family() const { return column_family_; } 29761: const Status& status() const { return status_; } 29761: const WideColumns& columns() const { return columns_.columns(); } 29761: 29761: void SetStatus(const Status& status); 29761: void SetColumns(PinnableWideColumns&& columns); 29761: 29761: void Reset(); 29761: 29761: private: 29761: ColumnFamilyHandle* column_family_; 29761: Status status_; 29761: PinnableWideColumns columns_; 29761: }; 29761: 29761: inline void PinnableAttributeGroup::SetStatus(const Status& status) { 29761: status_ = status; 29761: } 29761: inline void PinnableAttributeGroup::SetColumns(PinnableWideColumns&& columns) { 29761: columns_ = std::move(columns); 29761: } 29761: 29761: inline void PinnableAttributeGroup::Reset() { 29761: SetStatus(Status::OK()); 29761: columns_.Reset(); 29761: } 29761: 29761: 29761: using PinnableAttributeGroups = std::vector; 29761: 29761: 29761: 29761: class IteratorAttributeGroup { 29761: public: 29761: explicit IteratorAttributeGroup(ColumnFamilyHandle* column_family, 29761: const WideColumns* columns) 29761: : column_family_(column_family), columns_(columns) {} 29761: 29761: explicit IteratorAttributeGroup(const AttributeGroup& attribute_group) 29761: : IteratorAttributeGroup(attribute_group.column_family(), 29761: &attribute_group.columns()) {} 29761: 29761: ColumnFamilyHandle* column_family() const { return column_family_; } 29761: const WideColumns& columns() const { return *columns_; } 29761: 29761: private: 29761: ColumnFamilyHandle* column_family_; 29761: const WideColumns* columns_; 29761: }; 29761: 29761: inline bool operator==(const IteratorAttributeGroup& lhs, 29761: const IteratorAttributeGroup& rhs) { 29761: return lhs.column_family() == rhs.column_family() && 29761: lhs.columns() == rhs.columns(); 29761: } 29761: 29761: inline bool operator!=(const IteratorAttributeGroup& lhs, 29761: const IteratorAttributeGroup& rhs) { 29761: return !(lhs == rhs); 29761: } 29761: 29761: using IteratorAttributeGroups = std::vector; 29761: 29761: extern const IteratorAttributeGroups kNoIteratorAttributeGroups; 29761: 29761: 29761: 29761: class AttributeGroupIterator : public IteratorBase { 29761: public: 29761: AttributeGroupIterator() {} 29761: ~AttributeGroupIterator() override {} 29761: 29761: 29761: AttributeGroupIterator(const AttributeGroupIterator&) = delete; 29761: AttributeGroupIterator& operator=(const AttributeGroupIterator&) = delete; 29761: 29761: virtual const IteratorAttributeGroups& attribute_groups() const = 0; 29761: }; 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 1 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum CompressionType : unsigned char { 29761: 29761: 29761: kNoCompression = 0x0, 29761: kSnappyCompression = 0x1, 29761: kZlibCompression = 0x2, 29761: kBZip2Compression = 0x3, 29761: kLZ4Compression = 0x4, 29761: kLZ4HCCompression = 0x5, 29761: kXpressCompression = 0x6, 29761: kZSTD = 0x7, 29761: 29761: 29761: 29761: 29761: 29761: 29761: kZSTDNotFinalCompression = 0x40, 29761: 29761: 29761: kDisableCompressionOption = 0xff, 29761: }; 29761: 29761: 29761: struct CompressionOptions { 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: static constexpr int kDefaultCompressionLevel = 32767; 29761: 29761: 29761: int window_bits = -14; 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: int level = kDefaultCompressionLevel; 29761: 29761: 29761: int strategy = 0; 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: uint32_t max_dict_bytes = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t zstd_max_train_bytes = 0; 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: uint32_t parallel_threads = 1; 29761: # 122 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: bool enabled = false; 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: uint64_t max_dict_buffer_bytes = 0; 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: bool use_zstd_dict_trainer = true; 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: int max_compressed_bytes_per_kb = 1024 * 7 / 8; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool checksum = false; 29761: 29761: 29761: 29761: 29761: void SetMinRatio(double min_ratio) { 29761: max_compressed_bytes_per_kb = static_cast(1024.0 / min_ratio + 0.5); 29761: } 29761: }; 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: namespace detail { 29761: int CountTrailingZeroBitsForSmallEnumSet(uint64_t); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: class SmallEnumSet { 29761: private: 29761: using StateT = uint64_t; 29761: static constexpr int kStateBits = sizeof(StateT) * 8; 29761: static constexpr int kMaxMax = kStateBits - 1; 29761: static constexpr int kMaxValue = static_cast(MAX_ENUMERATOR); 29761: static_assert(kMaxValue >= 0); 29761: static_assert(kMaxValue <= kMaxMax); 29761: 29761: public: 29761: 29761: SmallEnumSet() : state_(0) {} 29761: 29761: template 29761: constexpr SmallEnumSet(const ENUM_TYPE e, TRest... rest) { 29761: *this = SmallEnumSet(rest...).With(e); 29761: } 29761: 29761: 29761: 29761: static constexpr SmallEnumSet All() { 29761: StateT tmp = StateT{1} << kMaxValue; 29761: return SmallEnumSet(RawStateMarker(), tmp | (tmp - 1)); 29761: } 29761: 29761: 29761: bool operator==(const SmallEnumSet& that) const { 29761: return this->state_ == that.state_; 29761: } 29761: bool operator!=(const SmallEnumSet& that) const { return !(*this == that); } 29761: 29761: 29761: 29761: 29761: bool Contains(const ENUM_TYPE e) const { 29761: int value = static_cast(e); 29761: 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: value >= 0 && value <= kMaxValue 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "value >= 0 && value <= kMaxValue" 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: StateT tmp = 1; 29761: return state_ & (tmp << value); 29761: } 29761: 29761: bool empty() const { return state_ == 0; } 29761: 29761: 29761: class const_iterator { 29761: public: 29761: 29761: const_iterator(const const_iterator& that) = default; 29761: const_iterator& operator=(const const_iterator& that) = default; 29761: 29761: 29761: const_iterator(const_iterator&& that) noexcept = default; 29761: const_iterator& operator=(const_iterator&& that) noexcept = default; 29761: 29761: 29761: bool operator==(const const_iterator& that) const { 29761: 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: set_ == that.set_ 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "set_ == that.set_" 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: return this->pos_ == that.pos_; 29761: } 29761: 29761: bool operator!=(const const_iterator& that) const { 29761: return !(*this == that); 29761: } 29761: 29761: 29761: const_iterator& operator++() { 29761: if (pos_ < kMaxValue) { 29761: pos_ = set_->SkipUnset(pos_ + 1); 29761: } else { 29761: pos_ = kStateBits; 29761: } 29761: return *this; 29761: } 29761: 29761: 29761: const_iterator operator++(int) { 29761: auto old = *this; 29761: ++*this; 29761: return old; 29761: } 29761: 29761: ENUM_TYPE operator*() const { 29761: 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: pos_ <= kMaxValue 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "pos_ <= kMaxValue" 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: return static_cast(pos_); 29761: } 29761: 29761: private: 29761: friend class SmallEnumSet; 29761: const_iterator(const SmallEnumSet* set, int pos) : set_(set), pos_(pos) {} 29761: const SmallEnumSet* set_; 29761: int pos_; 29761: }; 29761: 29761: const_iterator begin() const { return const_iterator(this, SkipUnset(0)); } 29761: 29761: const_iterator end() const { return const_iterator(this, kStateBits); } 29761: 29761: 29761: 29761: 29761: 29761: bool Add(const ENUM_TYPE e) { 29761: int value = static_cast(e); 29761: 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: value >= 0 && value <= kMaxValue 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "value >= 0 && value <= kMaxValue" 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: StateT old_state = state_; 29761: state_ |= (StateT{1} << value); 29761: return old_state != state_; 29761: } 29761: 29761: 29761: 29761: bool Remove(const ENUM_TYPE e) { 29761: int value = static_cast(e); 29761: 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: value >= 0 && value <= kMaxValue 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "value >= 0 && value <= kMaxValue" 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: StateT old_state = state_; 29761: state_ &= ~(StateT{1} << value); 29761: return old_state != state_; 29761: } 29761: 29761: 29761: 29761: 29761: constexpr SmallEnumSet With(const ENUM_TYPE e) const { 29761: int value = static_cast(e); 29761: 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: value >= 0 && value <= kMaxValue 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "value >= 0 && value <= kMaxValue" 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: return SmallEnumSet(RawStateMarker(), state_ | (StateT{1} << value)); 29761: } 29761: template 29761: constexpr SmallEnumSet With(const ENUM_TYPE e1, const ENUM_TYPE e2, 29761: TRest... rest) const { 29761: return With(e1).With(e2, rest...); 29761: } 29761: 29761: 29761: constexpr SmallEnumSet Without(const ENUM_TYPE e) const { 29761: int value = static_cast(e); 29761: 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: value >= 0 && value <= kMaxValue 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "value >= 0 && value <= kMaxValue" 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: return SmallEnumSet(RawStateMarker(), state_ & ~(StateT{1} << value)); 29761: } 29761: template 29761: constexpr SmallEnumSet Without(const ENUM_TYPE e1, const ENUM_TYPE e2, 29761: TRest... rest) const { 29761: return Without(e1).Without(e2, rest...); 29761: } 29761: 29761: private: 29761: int SkipUnset(int pos) const { 29761: StateT tmp = state_ >> pos; 29761: if (tmp == 0) { 29761: return kStateBits; 29761: } else { 29761: return pos + detail::CountTrailingZeroBitsForSmallEnumSet(tmp); 29761: } 29761: } 29761: struct RawStateMarker {}; 29761: explicit SmallEnumSet(RawStateMarker, StateT state) : state_(state) {} 29761: 29761: StateT state_; 29761: }; 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memory_allocator.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: class MemoryAllocator : public Customizable { 29761: public: 29761: static const char* Type() { return "MemoryAllocator"; } 29761: static Status CreateFromString(const ConfigOptions& options, 29761: const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: 29761: virtual void* Allocate(size_t size) = 0; 29761: 29761: 29761: virtual void Deallocate(void* p) = 0; 29761: 29761: 29761: 29761: virtual size_t UsableSize(void* , size_t allocation_size) const { 29761: 29761: return allocation_size; 29761: } 29761: 29761: std::string GetId() const override { return GenerateIndividualId(); } 29761: }; 29761: 29761: struct JemallocAllocatorOptions { 29761: static const char* kName() { return "JemallocAllocatorOptions"; } 29761: 29761: 29761: 29761: 29761: 29761: bool limit_tcache_size = false; 29761: 29761: 29761: 29761: size_t tcache_size_lower_bound = 1024; 29761: 29761: 29761: 29761: size_t tcache_size_upper_bound = 16 * 1024; 29761: 29761: 29761: 29761: 29761: size_t num_arenas = 1; 29761: }; 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memory_allocator.h" 29761: Status NewJemallocNodumpAllocator( 29761: const JemallocAllocatorOptions& options, 29761: std::shared_ptr* memory_allocator); 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Cache; 29761: struct ConfigOptions; 29761: class SecondaryCache; 29761: # 46 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: using BlockCache = Cache; 29761: using RowCache = Cache; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum class CacheEntryRole { 29761: 29761: kDataBlock, 29761: 29761: kFilterBlock, 29761: 29761: kFilterMetaBlock, 29761: 29761: kDeprecatedFilterBlock, 29761: 29761: kIndexBlock, 29761: 29761: kOtherBlock, 29761: 29761: kWriteBuffer, 29761: 29761: 29761: kCompressionDictionaryBuildingBuffer, 29761: 29761: 29761: kFilterConstruction, 29761: 29761: kBlockBasedTableReader, 29761: 29761: kFileMetadata, 29761: 29761: kBlobValue, 29761: 29761: 29761: kBlobCache, 29761: 29761: 29761: kMisc, 29761: }; 29761: constexpr uint32_t kNumCacheEntryRoles = 29761: static_cast(CacheEntryRole::kMisc) + 1; 29761: 29761: 29761: const std::string& GetCacheEntryRoleName(CacheEntryRole); 29761: 29761: 29761: using CacheEntryRoleSet = SmallEnumSet; 29761: 29761: 29761: 29761: 29761: struct BlockCacheEntryStatsMapKeys { 29761: static const std::string& CacheId(); 29761: static const std::string& CacheCapacityBytes(); 29761: static const std::string& LastCollectionDurationSeconds(); 29761: static const std::string& LastCollectionAgeSeconds(); 29761: 29761: static std::string EntryCount(CacheEntryRole); 29761: static std::string UsedBytes(CacheEntryRole); 29761: static std::string UsedPercent(CacheEntryRole); 29761: }; 29761: 29761: extern const bool kDefaultToAdaptiveMutex; 29761: 29761: enum CacheMetadataChargePolicy { 29761: 29761: 29761: kDontChargeCacheMetadata, 29761: 29761: 29761: 29761: kFullChargeCacheMetadata 29761: }; 29761: const CacheMetadataChargePolicy kDefaultCacheMetadataChargePolicy = 29761: kFullChargeCacheMetadata; 29761: 29761: 29761: 29761: struct ShardedCacheOptions { 29761: 29761: 29761: 29761: size_t capacity = 0; 29761: 29761: 29761: 29761: 29761: 29761: int num_shard_bits = -1; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool strict_capacity_limit = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr memory_allocator; 29761: 29761: 29761: CacheMetadataChargePolicy metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy; 29761: 29761: 29761: 29761: std::shared_ptr secondary_cache; 29761: 29761: 29761: static constexpr int32_t kQuasiRandomHashSeed = -1; 29761: static constexpr int32_t kHostHashSeed = -2; 29761: # 190 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: int32_t hash_seed = kHostHashSeed; 29761: 29761: ShardedCacheOptions() {} 29761: ShardedCacheOptions( 29761: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 29761: std::shared_ptr _memory_allocator = nullptr, 29761: CacheMetadataChargePolicy _metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy) 29761: : capacity(_capacity), 29761: num_shard_bits(_num_shard_bits), 29761: strict_capacity_limit(_strict_capacity_limit), 29761: memory_allocator(std::move(_memory_allocator)), 29761: metadata_charge_policy(_metadata_charge_policy) {} 29761: 29761: virtual ~ShardedCacheOptions() = default; 29761: }; 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: struct LRUCacheOptions : public ShardedCacheOptions { 29761: # 237 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: double high_pri_pool_ratio = 0.5; 29761: double low_pri_pool_ratio = 0.0; 29761: 29761: 29761: 29761: 29761: 29761: bool use_adaptive_mutex = kDefaultToAdaptiveMutex; 29761: 29761: LRUCacheOptions() {} 29761: LRUCacheOptions(size_t _capacity, int _num_shard_bits, 29761: bool _strict_capacity_limit, double _high_pri_pool_ratio, 29761: std::shared_ptr _memory_allocator = nullptr, 29761: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 29761: CacheMetadataChargePolicy _metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy, 29761: double _low_pri_pool_ratio = 0.0) 29761: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29761: std::move(_memory_allocator), 29761: _metadata_charge_policy), 29761: high_pri_pool_ratio(_high_pri_pool_ratio), 29761: low_pri_pool_ratio(_low_pri_pool_ratio), 29761: use_adaptive_mutex(_use_adaptive_mutex) {} 29761: 29761: 29761: std::shared_ptr MakeSharedCache() const; 29761: 29761: 29761: 29761: std::shared_ptr MakeSharedRowCache() const; 29761: }; 29761: 29761: 29761: inline std::shared_ptr NewLRUCache( 29761: size_t capacity, int num_shard_bits = -1, 29761: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 29761: std::shared_ptr memory_allocator = nullptr, 29761: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 29761: CacheMetadataChargePolicy metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy, 29761: double low_pri_pool_ratio = 0.0) { 29761: return LRUCacheOptions(capacity, num_shard_bits, strict_capacity_limit, 29761: high_pri_pool_ratio, memory_allocator, 29761: use_adaptive_mutex, metadata_charge_policy, 29761: low_pri_pool_ratio) 29761: .MakeSharedCache(); 29761: } 29761: 29761: 29761: inline std::shared_ptr NewLRUCache(const LRUCacheOptions& cache_opts) { 29761: return cache_opts.MakeSharedCache(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: struct CompressedSecondaryCacheOptions : LRUCacheOptions { 29761: 29761: CompressionType compression_type = CompressionType::kLZ4Compression; 29761: 29761: 29761: CompressionOptions compression_opts; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t compress_format_version = 2; 29761: 29761: 29761: 29761: bool enable_custom_split_merge = false; 29761: 29761: 29761: 29761: CacheEntryRoleSet do_not_compress_roles = {CacheEntryRole::kFilterBlock}; 29761: 29761: CompressedSecondaryCacheOptions() {} 29761: CompressedSecondaryCacheOptions( 29761: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 29761: double _high_pri_pool_ratio, double _low_pri_pool_ratio = 0.0, 29761: std::shared_ptr _memory_allocator = nullptr, 29761: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 29761: CacheMetadataChargePolicy _metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy, 29761: CompressionType _compression_type = CompressionType::kLZ4Compression, 29761: uint32_t _compress_format_version = 2, 29761: bool _enable_custom_split_merge = false, 29761: const CacheEntryRoleSet& _do_not_compress_roles = 29761: {CacheEntryRole::kFilterBlock}) 29761: : LRUCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29761: _high_pri_pool_ratio, std::move(_memory_allocator), 29761: _use_adaptive_mutex, _metadata_charge_policy, 29761: _low_pri_pool_ratio), 29761: compression_type(_compression_type), 29761: compress_format_version(_compress_format_version), 29761: enable_custom_split_merge(_enable_custom_split_merge), 29761: do_not_compress_roles(_do_not_compress_roles) {} 29761: 29761: 29761: std::shared_ptr MakeSharedSecondaryCache() const; 29761: 29761: 29761: std::shared_ptr MakeSharedCache() const = delete; 29761: }; 29761: 29761: 29761: inline std::shared_ptr NewCompressedSecondaryCache( 29761: size_t capacity, int num_shard_bits = -1, 29761: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 29761: double low_pri_pool_ratio = 0.0, 29761: std::shared_ptr memory_allocator = nullptr, 29761: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 29761: CacheMetadataChargePolicy metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy, 29761: CompressionType compression_type = CompressionType::kLZ4Compression, 29761: uint32_t compress_format_version = 2, 29761: bool enable_custom_split_merge = false, 29761: const CacheEntryRoleSet& _do_not_compress_roles = { 29761: CacheEntryRole::kFilterBlock}) { 29761: return CompressedSecondaryCacheOptions( 29761: capacity, num_shard_bits, strict_capacity_limit, 29761: high_pri_pool_ratio, low_pri_pool_ratio, memory_allocator, 29761: use_adaptive_mutex, metadata_charge_policy, compression_type, 29761: compress_format_version, enable_custom_split_merge, 29761: _do_not_compress_roles) 29761: .MakeSharedSecondaryCache(); 29761: } 29761: 29761: 29761: inline std::shared_ptr NewCompressedSecondaryCache( 29761: const CompressedSecondaryCacheOptions& opts) { 29761: return opts.MakeSharedSecondaryCache(); 29761: } 29761: # 388 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: struct HyperClockCacheOptions : public ShardedCacheOptions { 29761: # 425 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: size_t estimated_entry_charge; 29761: # 442 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: size_t min_avg_entry_charge = 450; 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: int eviction_effort_cap = 30; 29761: 29761: HyperClockCacheOptions( 29761: size_t _capacity, size_t _estimated_entry_charge, 29761: int _num_shard_bits = -1, bool _strict_capacity_limit = false, 29761: std::shared_ptr _memory_allocator = nullptr, 29761: CacheMetadataChargePolicy _metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy) 29761: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29761: std::move(_memory_allocator), 29761: _metadata_charge_policy), 29761: estimated_entry_charge(_estimated_entry_charge) {} 29761: 29761: 29761: std::shared_ptr MakeSharedCache() const; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr NewClockCache( 29761: size_t capacity, int num_shard_bits = -1, 29761: bool strict_capacity_limit = false, 29761: CacheMetadataChargePolicy metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy); 29761: 29761: enum PrimaryCacheType { 29761: kCacheTypeLRU, 29761: kCacheTypeHCC, 29761: kCacheTypeMax, 29761: }; 29761: 29761: enum TieredAdmissionPolicy { 29761: 29761: kAdmPolicyAuto, 29761: 29761: 29761: 29761: kAdmPolicyPlaceholder, 29761: 29761: 29761: kAdmPolicyAllowCacheHits, 29761: 29761: 29761: 29761: kAdmPolicyThreeQueue, 29761: 29761: 29761: 29761: 29761: kAdmPolicyAllowAll, 29761: kAdmPolicyMax, 29761: }; 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: struct TieredCacheOptions { 29761: 29761: 29761: 29761: 29761: ShardedCacheOptions* cache_opts = nullptr; 29761: PrimaryCacheType cache_type = PrimaryCacheType::kCacheTypeLRU; 29761: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyAuto; 29761: CompressedSecondaryCacheOptions comp_cache_opts; 29761: 29761: 29761: 29761: 29761: size_t total_capacity = 0; 29761: double compressed_secondary_ratio = 0.0; 29761: 29761: 29761: 29761: std::shared_ptr nvm_sec_cache; 29761: }; 29761: 29761: std::shared_ptr NewTieredCache(const TieredCacheOptions& cache_opts); 29761: # 575 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: Status UpdateTieredCache( 29761: const std::shared_ptr& cache, int64_t total_capacity = -1, 29761: double compressed_secondary_ratio = std::numeric_limits::max(), 29761: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyMax); 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 1 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/stdlib.h" 1 3 29761: # 36 "/usr/include/c++/14/stdlib.h" 3 29761: # 1 "/usr/include/c++/14/cstdlib" 1 3 29761: # 39 "/usr/include/c++/14/cstdlib" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdlib" 3 29761: # 37 "/usr/include/c++/14/stdlib.h" 2 3 29761: 29761: 29761: # 38 "/usr/include/c++/14/stdlib.h" 3 29761: using std::abort; 29761: using std::atexit; 29761: using std::exit; 29761: 29761: 29761: using std::at_quick_exit; 29761: 29761: 29761: using std::quick_exit; 29761: 29761: 29761: using std::_Exit; 29761: 29761: 29761: 29761: 29761: using std::div_t; 29761: using std::ldiv_t; 29761: 29761: using std::abs; 29761: using std::atof; 29761: using std::atoi; 29761: using std::atol; 29761: using std::bsearch; 29761: using std::calloc; 29761: using std::div; 29761: using std::free; 29761: using std::getenv; 29761: using std::labs; 29761: using std::ldiv; 29761: using std::malloc; 29761: 29761: using std::mblen; 29761: using std::mbstowcs; 29761: using std::mbtowc; 29761: 29761: using std::qsort; 29761: using std::rand; 29761: using std::realloc; 29761: using std::srand; 29761: using std::strtod; 29761: using std::strtol; 29761: using std::strtoul; 29761: using std::system; 29761: 29761: using std::wcstombs; 29761: using std::wctomb; 29761: # 40 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 2 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: namespace rocksdb { 29761: 29761: class Arena; 29761: class Allocator; 29761: class LookupKey; 29761: class SliceTransform; 29761: class Logger; 29761: struct DBOptions; 29761: 29761: using KeyHandle = void*; 29761: 29761: Slice GetLengthPrefixedSlice(const char* data); 29761: 29761: class MemTableRep { 29761: public: 29761: 29761: 29761: class KeyComparator { 29761: public: 29761: using DecodedType = rocksdb::Slice; 29761: 29761: virtual DecodedType decode_key(const char* key) const { 29761: 29761: 29761: return GetLengthPrefixedSlice(key); 29761: } 29761: 29761: 29761: 29761: virtual int operator()(const char* prefix_len_key1, 29761: const char* prefix_len_key2) const = 0; 29761: 29761: virtual int operator()(const char* prefix_len_key, 29761: const Slice& key) const = 0; 29761: 29761: virtual ~KeyComparator() {} 29761: }; 29761: 29761: explicit MemTableRep(Allocator* allocator) : allocator_(allocator) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual KeyHandle Allocate(const size_t len, char** buf); 29761: 29761: 29761: 29761: 29761: 29761: virtual void Insert(KeyHandle handle) = 0; 29761: 29761: 29761: 29761: 29761: virtual bool InsertKey(KeyHandle handle) { 29761: Insert(handle); 29761: return true; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void InsertWithHint(KeyHandle handle, void** ) { 29761: 29761: Insert(handle); 29761: } 29761: 29761: 29761: 29761: 29761: virtual bool InsertKeyWithHint(KeyHandle handle, void** hint) { 29761: InsertWithHint(handle, hint); 29761: return true; 29761: } 29761: # 137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: virtual void InsertWithHintConcurrently(KeyHandle handle, void** ) { 29761: 29761: InsertConcurrently(handle); 29761: } 29761: 29761: 29761: 29761: 29761: virtual bool InsertKeyWithHintConcurrently(KeyHandle handle, void** hint) { 29761: InsertWithHintConcurrently(handle, hint); 29761: return true; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void InsertConcurrently(KeyHandle handle); 29761: 29761: 29761: 29761: 29761: virtual bool InsertKeyConcurrently(KeyHandle handle) { 29761: InsertConcurrently(handle); 29761: return true; 29761: } 29761: 29761: 29761: virtual bool Contains(const char* key) const = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void MarkReadOnly() {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void MarkFlushed() {} 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: virtual void Get(const LookupKey& k, void* callback_args, 29761: bool (*callback_func)(void* arg, const char* entry)); 29761: 29761: 29761: virtual Status GetAndValidate(const LookupKey& , 29761: void* , 29761: bool (* )(void* arg, 29761: const char* entry), 29761: bool ) { 29761: return Status::NotSupported("GetAndValidate() not implemented."); 29761: } 29761: 29761: virtual uint64_t ApproximateNumEntries(const Slice& , 29761: const Slice& ) { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: virtual void UniqueRandomSample(const uint64_t num_entries, 29761: const uint64_t target_sample_size, 29761: std::unordered_set* entries) { 29761: (void)num_entries; 29761: (void)target_sample_size; 29761: (void)entries; 29761: 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29761: (static_cast ( 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: false 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: "false" 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: ; 29761: } 29761: 29761: 29761: 29761: virtual size_t ApproximateMemoryUsage() = 0; 29761: 29761: virtual ~MemTableRep() {} 29761: 29761: 29761: class Iterator { 29761: public: 29761: 29761: 29761: 29761: virtual ~Iterator() {} 29761: 29761: 29761: virtual bool Valid() const = 0; 29761: 29761: 29761: 29761: virtual const char* key() const = 0; 29761: 29761: 29761: 29761: virtual void Next() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status NextAndValidate(bool ) { 29761: return Status::NotSupported("NextAndValidate() not implemented."); 29761: } 29761: 29761: 29761: 29761: virtual void Prev() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status PrevAndValidate(bool ) { 29761: return Status::NotSupported("PrevAndValidate() not implemented."); 29761: } 29761: 29761: 29761: virtual void Seek(const Slice& internal_key, const char* memtable_key) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status SeekAndValidate(const Slice& , 29761: const char* , 29761: bool ) { 29761: return Status::NotSupported("SeekAndValidate() not implemented."); 29761: } 29761: 29761: 29761: virtual void SeekForPrev(const Slice& internal_key, 29761: const char* memtable_key) = 0; 29761: 29761: virtual void RandomSeek() {} 29761: 29761: 29761: 29761: virtual void SeekToFirst() = 0; 29761: 29761: 29761: 29761: virtual void SeekToLast() = 0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Iterator* GetIterator(Arena* arena = nullptr) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Iterator* GetDynamicPrefixIterator(Arena* arena = nullptr) { 29761: return GetIterator(arena); 29761: } 29761: 29761: 29761: 29761: virtual bool IsMergeOperatorSupported() const { return true; } 29761: 29761: 29761: 29761: virtual bool IsSnapshotSupported() const { return true; } 29761: 29761: protected: 29761: 29761: 29761: virtual Slice UserKey(const char* key) const; 29761: 29761: Allocator* allocator_; 29761: }; 29761: 29761: 29761: 29761: class MemTableRepFactory : public Customizable { 29761: public: 29761: ~MemTableRepFactory() override {} 29761: 29761: static const char* Type() { return "MemTableRepFactory"; } 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& id, 29761: std::unique_ptr* factory); 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& id, 29761: std::shared_ptr* factory); 29761: 29761: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 29761: Allocator*, const SliceTransform*, 29761: Logger* logger) = 0; 29761: virtual MemTableRep* CreateMemTableRep( 29761: const MemTableRep::KeyComparator& key_cmp, Allocator* allocator, 29761: const SliceTransform* slice_transform, Logger* logger, 29761: uint32_t ) { 29761: return CreateMemTableRep(key_cmp, allocator, slice_transform, logger); 29761: } 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: 29761: virtual bool IsInsertConcurrentlySupported() const { return false; } 29761: 29761: 29761: 29761: 29761: 29761: virtual bool CanHandleDuplicatedKey() const { return false; } 29761: }; 29761: # 371 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: class SkipListFactory : public MemTableRepFactory { 29761: public: 29761: explicit SkipListFactory(size_t lookahead = 0); 29761: 29761: 29761: static const char* kClassName() { return "SkipListFactory"; } 29761: static const char* kNickName() { return "skip_list"; } 29761: const char* Name() const override { return kClassName(); } 29761: const char* NickName() const override { return kNickName(); } 29761: std::string GetId() const override; 29761: 29761: 29761: using MemTableRepFactory::CreateMemTableRep; 29761: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 29761: const SliceTransform*, 29761: Logger* logger) override; 29761: 29761: bool IsInsertConcurrentlySupported() const override { return true; } 29761: 29761: bool CanHandleDuplicatedKey() const override { return true; } 29761: 29761: private: 29761: size_t lookahead_; 29761: }; 29761: # 404 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: class VectorRepFactory : public MemTableRepFactory { 29761: size_t count_; 29761: 29761: public: 29761: explicit VectorRepFactory(size_t count = 0); 29761: 29761: 29761: static const char* kClassName() { return "VectorRepFactory"; } 29761: static const char* kNickName() { return "vector"; } 29761: const char* Name() const override { return kClassName(); } 29761: const char* NickName() const override { return kNickName(); } 29761: 29761: 29761: using MemTableRepFactory::CreateMemTableRep; 29761: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 29761: const SliceTransform*, 29761: Logger* logger) override; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: MemTableRepFactory* NewHashSkipListRepFactory( 29761: size_t bucket_count = 1000000, int32_t skiplist_height = 4, 29761: int32_t skiplist_branching_factor = 4); 29761: # 449 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: MemTableRepFactory* NewHashLinkListRepFactory( 29761: size_t bucket_count = 50000, size_t huge_page_tlb_size = 0, 29761: int bucket_entries_logging_threshold = 4096, 29761: bool if_log_bucket_dist_when_flash = true, 29761: uint32_t threshold_use_skiplist = 256); 29761: 29761: } 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/climits" 1 3 29761: # 39 "/usr/include/c++/14/climits" 3 29761: 29761: # 40 "/usr/include/c++/14/climits" 3 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29761: # 34 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29761: # 210 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 29761: # 1 "/usr/include/limits.h" 1 3 4 29761: # 26 "/usr/include/limits.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 27 "/usr/include/limits.h" 2 3 4 29761: # 195 "/usr/include/limits.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 28 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 29761: # 161 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 1 3 4 29761: # 38 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 3 4 29761: # 1 "/usr/include/linux/limits.h" 1 3 4 29761: # 39 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 2 3 4 29761: # 162 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 29761: # 196 "/usr/include/limits.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix2_lim.h" 1 3 4 29761: # 200 "/usr/include/limits.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 1 3 4 29761: # 64 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio_lim.h" 1 3 4 29761: # 65 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 2 3 4 29761: # 204 "/usr/include/limits.h" 2 3 4 29761: # 211 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 29761: # 8 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 2 3 4 29761: # 35 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 29761: # 43 "/usr/include/c++/14/climits" 2 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 2 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: enum CompactionStopStyle { 29761: kCompactionStopStyleSimilarSize, 29761: kCompactionStopStyleTotalSize 29761: }; 29761: 29761: class CompactionOptionsUniversal { 29761: public: 29761: 29761: 29761: 29761: unsigned int size_ratio; 29761: 29761: 29761: unsigned int min_merge_width; 29761: 29761: 29761: unsigned int max_merge_width; 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29761: unsigned int max_size_amplification_percent; 29761: # 66 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29761: int compression_size_percent; 29761: # 96 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29761: int max_read_amp; 29761: 29761: 29761: 29761: CompactionStopStyle stop_style; 29761: 29761: 29761: 29761: 29761: bool allow_trivial_move; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool incremental; 29761: 29761: 29761: CompactionOptionsUniversal() 29761: : size_ratio(1), 29761: min_merge_width(2), 29761: max_merge_width( 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 3 4 29761: (0x7fffffff * 2U + 1U) 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29761: ), 29761: max_size_amplification_percent(200), 29761: compression_size_percent(-1), 29761: max_read_amp(-1), 29761: stop_style(kCompactionStopStyleTotalSize), 29761: allow_trivial_move(false), 29761: incremental(false) {} 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class SliceTransform; 29761: class TablePropertiesCollectorFactory; 29761: class TableFactory; 29761: struct Options; 29761: 29761: enum CompactionStyle : char { 29761: 29761: kCompactionStyleLevel = 0x0, 29761: 29761: kCompactionStyleUniversal = 0x1, 29761: 29761: kCompactionStyleFIFO = 0x2, 29761: 29761: 29761: kCompactionStyleNone = 0x3, 29761: }; 29761: 29761: 29761: 29761: 29761: enum CompactionPri : char { 29761: 29761: kByCompensatedSize = 0x0, 29761: 29761: 29761: kOldestLargestSeqFirst = 0x1, 29761: 29761: 29761: 29761: kOldestSmallestSeqFirst = 0x2, 29761: 29761: 29761: 29761: 29761: 29761: kMinOverlappingRatio = 0x3, 29761: 29761: 29761: 29761: 29761: kRoundRobin = 0x4, 29761: }; 29761: 29761: struct FileTemperatureAge { 29761: Temperature temperature = Temperature::kUnknown; 29761: uint64_t age = 0; 29761: }; 29761: 29761: struct CompactionOptionsFIFO { 29761: 29761: 29761: 29761: uint64_t max_table_files_size; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool allow_compaction = false; 29761: 29761: 29761: 29761: 29761: uint64_t age_for_warm = 0; 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: std::vector file_temperature_age_thresholds{}; 29761: 29761: CompactionOptionsFIFO() : max_table_files_size(1 * 1024 * 1024 * 1024) {} 29761: CompactionOptionsFIFO(uint64_t _max_table_files_size, bool _allow_compaction) 29761: : max_table_files_size(_max_table_files_size), 29761: allow_compaction(_allow_compaction) {} 29761: }; 29761: 29761: 29761: 29761: 29761: enum class CacheTier : uint8_t { 29761: kVolatileTier = 0, 29761: kVolatileCompressedTier = 0x01, 29761: kNonVolatileBlockTier = 0x02, 29761: }; 29761: 29761: enum UpdateStatus { 29761: UPDATE_FAILED = 0, 29761: UPDATED_INPLACE = 1, 29761: UPDATED = 2, 29761: }; 29761: 29761: enum class PrepopulateBlobCache : uint8_t { 29761: kDisable = 0x0, 29761: kFlushOnly = 0x1, 29761: }; 29761: 29761: struct AdvancedColumnFamilyOptions { 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int max_write_buffer_number = 2; 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int min_write_buffer_number_to_merge = 1; 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int max_write_buffer_number_to_maintain = 0; 29761: # 221 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int64_t max_write_buffer_size_to_maintain = 0; 29761: # 242 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool inplace_update_support = false; 29761: 29761: 29761: 29761: 29761: 29761: size_t inplace_update_num_locks = 10000; 29761: # 265 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: double experimental_mempurge_threshold = 0.0; 29761: # 308 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: UpdateStatus (*inplace_callback)(char* existing_value, 29761: uint32_t* existing_value_size, 29761: Slice delta_value, 29761: std::string* merged_value) = nullptr; 29761: # 327 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: double memtable_prefix_bloom_size_ratio = 0.0; 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool memtable_whole_key_filtering = false; 29761: # 348 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: size_t memtable_huge_page_size = 0; 29761: # 369 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: std::shared_ptr 29761: memtable_insert_with_hint_prefix_extractor = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t bloom_locality = 0; 29761: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: size_t arena_block_size = 0; 29761: # 426 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: std::vector compression_per_level; 29761: 29761: 29761: int num_levels = 7; 29761: # 438 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int level0_slowdown_writes_trigger = 20; 29761: 29761: 29761: 29761: 29761: 29761: 29761: int level0_stop_writes_trigger = 36; 29761: # 459 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t target_file_size_base = 64 * 1048576; 29761: 29761: 29761: 29761: 29761: 29761: int target_file_size_multiplier = 1; 29761: # 546 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool level_compaction_dynamic_level_bytes = true; 29761: 29761: 29761: 29761: 29761: double max_bytes_for_level_multiplier = 10; 29761: # 562 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: std::vector max_bytes_for_level_multiplier_additional = 29761: std::vector(static_cast(num_levels), 1); 29761: # 572 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t max_compaction_bytes = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t soft_pending_compaction_bytes_limit = 64 * 1073741824ull; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t hard_pending_compaction_bytes_limit = 256 * 1073741824ull; 29761: 29761: 29761: CompactionStyle compaction_style = kCompactionStyleLevel; 29761: 29761: 29761: 29761: 29761: CompactionPri compaction_pri = kMinOverlappingRatio; 29761: 29761: 29761: 29761: 29761: 29761: 29761: CompactionOptionsUniversal compaction_options_universal; 29761: 29761: 29761: 29761: 29761: 29761: 29761: CompactionOptionsFIFO compaction_options_fifo; 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t max_sequential_skip_in_iterations = 8; 29761: 29761: 29761: 29761: 29761: std::shared_ptr memtable_factory = 29761: std::shared_ptr(new SkipListFactory); 29761: # 645 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: using TablePropertiesCollectorFactories = 29761: std::vector>; 29761: TablePropertiesCollectorFactories table_properties_collector_factories; 29761: # 661 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: size_t max_successive_merges = 0; 29761: # 671 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool strict_max_successive_merges = false; 29761: # 687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool optimize_filters_for_hits = false; 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool paranoid_file_checks = false; 29761: # 706 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool force_consistency_checks = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool report_bg_io_stats = false; 29761: # 747 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t ttl = 0xfffffffffffffffe; 29761: # 795 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t periodic_compaction_seconds = 0xfffffffffffffffe; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t sample_for_compression = 0; 29761: # 810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: Temperature last_level_temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Temperature default_write_temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Temperature default_temperature = Temperature::kUnknown; 29761: # 843 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t preclude_last_level_data_seconds = 0; 29761: # 866 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t preserve_internal_time_seconds = 0; 29761: # 880 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool enable_blob_files = false; 29761: # 892 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t min_blob_size = 0; 29761: # 901 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t blob_file_size = 1ULL << 28; 29761: # 910 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: CompressionType blob_compression_type = kNoCompression; 29761: # 922 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool enable_blob_garbage_collection = false; 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: double blob_garbage_collection_age_cutoff = 0.25; 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: double blob_garbage_collection_force_threshold = 1.0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t blob_compaction_readahead_size = 0; 29761: # 967 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int blob_file_starting_level = 0; 29761: # 977 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: std::shared_ptr blob_cache = nullptr; 29761: # 988 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: PrepopulateBlobCache prepopulate_blob_cache = PrepopulateBlobCache::kDisable; 29761: # 1004 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint32_t memtable_protection_bytes_per_key = 0; 29761: # 1054 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool persist_user_defined_timestamps = true; 29761: # 1069 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint8_t block_protection_bytes_per_key = 0; 29761: # 1081 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint32_t bottommost_file_compaction_delay = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool paranoid_memory_checks = false; 29761: 29761: 29761: AdvancedColumnFamilyOptions(); 29761: 29761: explicit AdvancedColumnFamilyOptions(const Options& options); 29761: 29761: 29761: }; 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 1 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstdarg" 1 3 29761: # 39 "/usr/include/c++/14/cstdarg" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdarg" 3 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29761: # 44 "/usr/include/c++/14/cstdarg" 2 3 29761: # 53 "/usr/include/c++/14/cstdarg" 3 29761: 29761: # 53 "/usr/include/c++/14/cstdarg" 3 29761: namespace std 29761: { 29761: using ::va_list; 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/functor_wrapper.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/functor_wrapper.h" 29761: namespace rocksdb { 29761: 29761: namespace detail { 29761: template 29761: struct IndexSequence {}; 29761: 29761: template 29761: struct IndexSequenceHelper 29761: : public IndexSequenceHelper {}; 29761: 29761: template 29761: struct IndexSequenceHelper<0U, Next...> { 29761: using type = IndexSequence; 29761: }; 29761: 29761: template 29761: using make_index_sequence = typename IndexSequenceHelper::type; 29761: 29761: template 29761: void call(Function f, Tuple t, IndexSequence) { 29761: f(std::get(t)...); 29761: } 29761: 29761: template 29761: void call(Function f, Tuple t) { 29761: static constexpr auto size = std::tuple_size::value; 29761: call(f, t, make_index_sequence{}); 29761: } 29761: } 29761: 29761: template 29761: class FunctorWrapper { 29761: public: 29761: explicit FunctorWrapper(std::function functor, Args &&...args) 29761: : functor_(std::move(functor)), args_(std::forward(args)...) {} 29761: 29761: void invoke() { detail::call(functor_, args_); } 29761: 29761: private: 29761: std::function functor_; 29761: std::tuple args_; 29761: }; 29761: } 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 1 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 29761: 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: template 29761: struct constexpr_max { 29761: static const int result = (A > B) ? A : B; 29761: }; 29761: 29761: 29761: 29761: 29761: struct ThreadStatus { 29761: 29761: enum ThreadType : int { 29761: HIGH_PRIORITY = 0, 29761: LOW_PRIORITY, 29761: USER, 29761: BOTTOM_PRIORITY, 29761: NUM_THREAD_TYPES 29761: }; 29761: 29761: 29761: 29761: 29761: enum OperationType : int { 29761: OP_UNKNOWN = 0, 29761: OP_COMPACTION, 29761: OP_FLUSH, 29761: OP_DBOPEN, 29761: OP_GET, 29761: OP_MULTIGET, 29761: OP_DBITERATOR, 29761: OP_VERIFY_DB_CHECKSUM, 29761: OP_VERIFY_FILE_CHECKSUMS, 29761: OP_GETENTITY, 29761: OP_MULTIGETENTITY, 29761: OP_READ_MANIFEST, 29761: NUM_OP_TYPES 29761: }; 29761: 29761: enum OperationStage : int { 29761: STAGE_UNKNOWN = 0, 29761: STAGE_FLUSH_RUN, 29761: STAGE_FLUSH_WRITE_L0, 29761: STAGE_COMPACTION_PREPARE, 29761: STAGE_COMPACTION_RUN, 29761: STAGE_COMPACTION_PROCESS_KV, 29761: STAGE_COMPACTION_INSTALL, 29761: STAGE_COMPACTION_SYNC_FILE, 29761: STAGE_PICK_MEMTABLES_TO_FLUSH, 29761: STAGE_MEMTABLE_ROLLBACK, 29761: STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 29761: NUM_OP_STAGES 29761: }; 29761: 29761: enum CompactionPropertyType : int { 29761: COMPACTION_JOB_ID = 0, 29761: COMPACTION_INPUT_OUTPUT_LEVEL, 29761: COMPACTION_PROP_FLAGS, 29761: COMPACTION_TOTAL_INPUT_BYTES, 29761: COMPACTION_BYTES_READ, 29761: COMPACTION_BYTES_WRITTEN, 29761: NUM_COMPACTION_PROPERTIES 29761: }; 29761: 29761: enum FlushPropertyType : int { 29761: FLUSH_JOB_ID = 0, 29761: FLUSH_BYTES_MEMTABLES, 29761: FLUSH_BYTES_WRITTEN, 29761: NUM_FLUSH_PROPERTIES 29761: }; 29761: 29761: 29761: 29761: static const int kNumOperationProperties = 29761: constexpr_max::result; 29761: 29761: 29761: 29761: 29761: enum StateType : int { 29761: STATE_UNKNOWN = 0, 29761: STATE_MUTEX_WAIT = 1, 29761: NUM_STATE_TYPES 29761: }; 29761: 29761: ThreadStatus(const uint64_t _id, const ThreadType _thread_type, 29761: const std::string& _db_name, const std::string& _cf_name, 29761: const OperationType _operation_type, 29761: const uint64_t _op_elapsed_micros, 29761: const OperationStage _operation_stage, 29761: const uint64_t _op_props[], const StateType _state_type) 29761: : thread_id(_id), 29761: thread_type(_thread_type), 29761: db_name(_db_name), 29761: cf_name(_cf_name), 29761: operation_type(_operation_type), 29761: op_elapsed_micros(_op_elapsed_micros), 29761: operation_stage(_operation_stage), 29761: state_type(_state_type) { 29761: for (int i = 0; i < kNumOperationProperties; ++i) { 29761: op_properties[i] = _op_props[i]; 29761: } 29761: } 29761: 29761: 29761: const uint64_t thread_id; 29761: 29761: 29761: 29761: const ThreadType thread_type; 29761: 29761: 29761: 29761: 29761: const std::string db_name; 29761: 29761: 29761: 29761: 29761: const std::string cf_name; 29761: 29761: 29761: const OperationType operation_type; 29761: 29761: 29761: const uint64_t op_elapsed_micros; 29761: 29761: 29761: 29761: const OperationStage operation_stage; 29761: 29761: 29761: 29761: 29761: uint64_t op_properties[kNumOperationProperties]; 29761: 29761: 29761: const StateType state_type; 29761: 29761: 29761: 29761: 29761: static std::string GetThreadTypeName(ThreadType thread_type); 29761: 29761: 29761: static const std::string& GetOperationName(OperationType op_type); 29761: 29761: static const std::string MicrosToString(uint64_t op_elapsed_time); 29761: 29761: 29761: static const std::string& GetOperationStageName(OperationStage stage); 29761: 29761: 29761: 29761: static const std::string& GetOperationPropertyName(OperationType op_type, 29761: int i); 29761: 29761: 29761: 29761: static std::map InterpretOperationProperties( 29761: OperationType op_type, const uint64_t* op_properties); 29761: 29761: 29761: static const std::string& GetStateName(StateType state_type); 29761: }; 29761: 29761: } 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29761: # 49 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: namespace rocksdb { 29761: 29761: class DynamicLibrary; 29761: class FileLock; 29761: class Logger; 29761: class RandomAccessFile; 29761: class SequentialFile; 29761: class Slice; 29761: struct DataVerificationInfo; 29761: class WritableFile; 29761: class RandomRWFile; 29761: class MemoryMappedFileBuffer; 29761: class Directory; 29761: struct DBOptions; 29761: struct ImmutableDBOptions; 29761: struct MutableDBOptions; 29761: class RateLimiter; 29761: class ThreadStatusUpdater; 29761: struct ThreadStatus; 29761: class FileSystem; 29761: class SystemClock; 29761: struct ConfigOptions; 29761: struct IOOptions; 29761: 29761: const size_t kDefaultPageSize = 4 * 1024; 29761: 29761: 29761: struct EnvOptions { 29761: 29761: EnvOptions(); 29761: 29761: 29761: explicit EnvOptions(const DBOptions& options); 29761: 29761: 29761: 29761: bool use_mmap_reads = false; 29761: 29761: 29761: bool use_mmap_writes = true; 29761: 29761: 29761: bool use_direct_reads = false; 29761: 29761: 29761: bool use_direct_writes = false; 29761: 29761: 29761: bool allow_fallocate = true; 29761: 29761: 29761: bool set_fd_cloexec = true; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t bytes_per_sync = 0; 29761: # 123 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: bool strict_bytes_per_sync = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool fallocate_with_keep_size = true; 29761: 29761: 29761: size_t compaction_readahead_size = 0; 29761: 29761: 29761: size_t random_access_max_buffer_size = 0; 29761: 29761: 29761: size_t writable_file_max_buffer_size = 1024 * 1024; 29761: 29761: 29761: RateLimiter* rate_limiter = nullptr; 29761: }; 29761: # 154 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: class Env : public Customizable { 29761: public: 29761: static const char* kDefaultName() { return "DefaultEnv"; } 29761: struct FileAttributes { 29761: 29761: std::string name; 29761: 29761: 29761: uint64_t size_bytes; 29761: 29761: 29761: Temperature temperature = Temperature::kUnknown; 29761: }; 29761: 29761: Env(); 29761: 29761: 29761: explicit Env(const std::shared_ptr& fs); 29761: Env(const std::shared_ptr& fs, 29761: const std::shared_ptr& clock); 29761: 29761: Env(const Env&) = delete; 29761: void operator=(const Env&) = delete; 29761: 29761: ~Env() override; 29761: 29761: static const char* Type() { return "Environment"; } 29761: 29761: 29761: 29761: const char* Name() const override { return ""; } 29761: # 199 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& value, Env** result); 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& value, Env** result, 29761: std::shared_ptr* guard); 29761: 29761: 29761: 29761: 29761: 29761: static Status CreateFromUri(const ConfigOptions& options, 29761: const std::string& env_uri, 29761: const std::string& fs_uri, Env** result, 29761: std::shared_ptr* guard); 29761: 29761: 29761: 29761: 29761: 29761: 29761: static Env* Default(); 29761: 29761: 29761: virtual Status RegisterDbPaths(const std::vector& ) { 29761: return Status::OK(); 29761: } 29761: 29761: virtual Status UnregisterDbPaths(const std::vector& ) { 29761: return Status::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status NewSequentialFile(const std::string& fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options) = 0; 29761: # 247 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status NewRandomAccessFile(const std::string& fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options) = 0; 29761: 29761: 29761: enum WriteLifeTimeHint { 29761: WLTH_NOT_SET = 0, 29761: WLTH_NONE, 29761: WLTH_SHORT, 29761: WLTH_MEDIUM, 29761: WLTH_LONG, 29761: WLTH_EXTREME, 29761: }; 29761: # 268 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status NewWritableFile(const std::string& fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options) = 0; 29761: # 280 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status ReopenWritableFile(const std::string& , 29761: std::unique_ptr* , 29761: const EnvOptions& ) { 29761: return Status::NotSupported("Env::ReopenWritableFile() not supported."); 29761: } 29761: 29761: 29761: virtual Status ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status NewRandomRWFile(const std::string& , 29761: std::unique_ptr* , 29761: const EnvOptions& ) { 29761: return Status::NotSupported("RandomRWFile is not implemented in this Env"); 29761: } 29761: 29761: 29761: 29761: 29761: virtual Status NewMemoryMappedFileBuffer( 29761: const std::string& , 29761: std::unique_ptr* ) { 29761: return Status::NotSupported( 29761: "MemoryMappedFileBuffer is not implemented in this Env"); 29761: } 29761: # 320 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status NewDirectory(const std::string& name, 29761: std::unique_ptr* result) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status FileExists(const std::string& fname) = 0; 29761: # 338 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status GetChildren(const std::string& dir, 29761: std::vector* result) = 0; 29761: # 352 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status GetChildrenFileAttributes(const std::string& dir, 29761: std::vector* result); 29761: 29761: 29761: virtual Status DeleteFile(const std::string& fname) = 0; 29761: 29761: 29761: virtual Status Truncate(const std::string& , size_t ) { 29761: return Status::NotSupported("Truncate is not supported for this Env"); 29761: } 29761: 29761: 29761: virtual Status CreateDir(const std::string& dirname) = 0; 29761: 29761: 29761: 29761: virtual Status CreateDirIfMissing(const std::string& dirname) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status DeleteDir(const std::string& dirname) = 0; 29761: 29761: 29761: virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0; 29761: 29761: 29761: virtual Status GetFileModificationTime(const std::string& fname, 29761: uint64_t* file_mtime) = 0; 29761: 29761: virtual Status RenameFile(const std::string& src, 29761: const std::string& target) = 0; 29761: 29761: 29761: virtual Status LinkFile(const std::string& , 29761: const std::string& ) { 29761: return Status::NotSupported("LinkFile is not supported for this Env"); 29761: } 29761: 29761: virtual Status NumFileLinks(const std::string& , 29761: uint64_t* ) { 29761: return Status::NotSupported( 29761: "Getting number of file links is not supported for this Env"); 29761: } 29761: 29761: virtual Status AreFilesSame(const std::string& , 29761: const std::string& , bool* ) { 29761: return Status::NotSupported("AreFilesSame is not supported for this Env"); 29761: } 29761: # 416 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status LockFile(const std::string& fname, FileLock** lock) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status UnlockFile(FileLock* lock) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status LoadLibrary(const std::string& , 29761: const std::string& , 29761: std::shared_ptr* ) { 29761: return Status::NotSupported("LoadLibrary is not implemented in this Env"); 29761: } 29761: 29761: 29761: enum Priority { BOTTOM, LOW, HIGH, USER, TOTAL }; 29761: 29761: static std::string PriorityToString(Priority priority); 29761: 29761: 29761: enum IOPriority { 29761: IO_LOW = 0, 29761: IO_MID = 1, 29761: IO_HIGH = 2, 29761: IO_USER = 3, 29761: IO_TOTAL = 4 29761: }; 29761: 29761: 29761: enum class IOActivity : uint8_t { 29761: kFlush = 0, 29761: kCompaction = 1, 29761: kDBOpen = 2, 29761: kGet = 3, 29761: kMultiGet = 4, 29761: kDBIterator = 5, 29761: kVerifyDBChecksum = 6, 29761: kVerifyFileChecksums = 7, 29761: kGetEntity = 8, 29761: kMultiGetEntity = 9, 29761: kReadManifest = 10, 29761: kUnknown, 29761: }; 29761: # 475 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual void Schedule(void (*function)(void* arg), void* arg, 29761: Priority pri = LOW, void* tag = nullptr, 29761: void (*unschedFunction)(void* arg) = nullptr) = 0; 29761: 29761: 29761: 29761: virtual int UnSchedule(void* , Priority ) { return 0; } 29761: 29761: 29761: 29761: virtual void StartThread(void (*function)(void* arg), void* arg) = 0; 29761: 29761: 29761: 29761: template 29761: void StartThreadTyped(FunctionT function, Args&&... args) { 29761: using FWType = FunctorWrapper; 29761: StartThread( 29761: [](void* arg) { 29761: auto* functor = static_cast(arg); 29761: functor->invoke(); 29761: delete functor; 29761: }, 29761: new FWType(std::function(function), 29761: std::forward(args)...)); 29761: } 29761: 29761: 29761: virtual void WaitForJoin() {} 29761: 29761: 29761: virtual int ReserveThreads(int , Priority ) { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: virtual int ReleaseThreads(int , Priority ) { 29761: return 0; 29761: } 29761: 29761: 29761: virtual unsigned int GetThreadPoolQueueLen(Priority = LOW) const { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetTestDirectory(std::string* path) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status NewLogger(const std::string& fname, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: 29761: virtual uint64_t NowMicros() = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 29761: 29761: 29761: virtual uint64_t NowCPUNanos() { return 0; } 29761: 29761: 29761: virtual void SleepForMicroseconds(int micros) = 0; 29761: 29761: 29761: 29761: virtual Status GetHostName(char* name, uint64_t len) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status GetHostNameString(std::string* result); 29761: 29761: 29761: 29761: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 29761: 29761: 29761: virtual Status GetAbsolutePath(const std::string& db_path, 29761: std::string* output_path) = 0; 29761: 29761: 29761: 29761: 29761: virtual void SetBackgroundThreads(int number, Priority pri = LOW) = 0; 29761: virtual int GetBackgroundThreads(Priority pri = LOW) = 0; 29761: 29761: virtual Status SetAllowNonOwnerAccess(bool ) { 29761: return Status::NotSupported("Env::SetAllowNonOwnerAccess() not supported."); 29761: } 29761: 29761: 29761: 29761: 29761: virtual void IncBackgroundThreadsIfNeeded(int number, Priority pri) = 0; 29761: 29761: 29761: virtual void LowerThreadPoolIOPriority(Priority = LOW) {} 29761: 29761: 29761: virtual Status LowerThreadPoolCPUPriority(Priority , 29761: CpuPriority ) { 29761: return Status::NotSupported( 29761: "Env::LowerThreadPoolCPUPriority(Priority, CpuPriority) not supported"); 29761: } 29761: 29761: 29761: virtual void LowerThreadPoolCPUPriority(Priority = LOW) {} 29761: 29761: 29761: virtual std::string TimeToString(uint64_t time) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual std::string GenerateUniqueId(); 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const; 29761: 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForManifestRead( 29761: const EnvOptions& env_options) const; 29761: 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 29761: const DBOptions& db_options) const; 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForManifestWrite( 29761: const EnvOptions& env_options) const; 29761: 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForCompactionTableWrite( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& immutable_ops) const; 29761: 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForCompactionTableRead( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& db_options) const; 29761: 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForBlobFileRead( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& db_options) const; 29761: 29761: 29761: virtual Status GetThreadList(std::vector* ) { 29761: return Status::NotSupported("Env::GetThreadList() not supported."); 29761: } 29761: 29761: 29761: 29761: 29761: virtual ThreadStatusUpdater* GetThreadStatusUpdater() const { 29761: return thread_status_updater_; 29761: } 29761: 29761: 29761: virtual uint64_t GetThreadID() const; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetFreeSpace(const std::string& , 29761: uint64_t* ) { 29761: return Status::NotSupported("Env::GetFreeSpace() not supported."); 29761: } 29761: 29761: 29761: virtual Status IsDirectory(const std::string& , bool* ) { 29761: return Status::NotSupported("Env::IsDirectory() not supported."); 29761: } 29761: 29761: virtual void SanitizeEnvOptions(EnvOptions* ) const {} 29761: 29761: 29761: 29761: const std::shared_ptr& GetFileSystem() const; 29761: 29761: 29761: 29761: const std::shared_ptr& GetSystemClock() const; 29761: 29761: 29761: 29761: protected: 29761: 29761: 29761: ThreadStatusUpdater* thread_status_updater_; 29761: 29761: 29761: std::shared_ptr file_system_; 29761: 29761: 29761: std::shared_ptr system_clock_; 29761: 29761: private: 29761: static const size_t kMaxHostNameLen = 256; 29761: }; 29761: 29761: 29761: 29761: 29761: ThreadStatusUpdater* CreateThreadStatusUpdater(); 29761: 29761: 29761: class SequentialFile { 29761: public: 29761: SequentialFile() {} 29761: virtual ~SequentialFile(); 29761: # 726 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status Read(size_t n, Slice* result, char* scratch) = 0; 29761: # 735 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status Skip(uint64_t n) = 0; 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: 29761: virtual Status InvalidateCache(size_t , size_t ) { 29761: return Status::NotSupported( 29761: "SequentialFile::InvalidateCache not supported."); 29761: } 29761: 29761: 29761: 29761: virtual Status PositionedRead(uint64_t , size_t , 29761: Slice* , char* ) { 29761: return Status::NotSupported( 29761: "SequentialFile::PositionedRead() not supported."); 29761: } 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: struct ReadRequest { 29761: 29761: uint64_t offset; 29761: 29761: 29761: 29761: size_t len; 29761: 29761: 29761: 29761: char* scratch; 29761: 29761: 29761: 29761: Slice result; 29761: 29761: 29761: Status status; 29761: }; 29761: 29761: 29761: class RandomAccessFile { 29761: public: 29761: RandomAccessFile() {} 29761: virtual ~RandomAccessFile(); 29761: # 806 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status Read(uint64_t offset, size_t n, Slice* result, 29761: char* scratch) const = 0; 29761: 29761: 29761: virtual Status Prefetch(uint64_t , size_t ) { 29761: return Status::OK(); 29761: } 29761: # 821 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status MultiRead(ReadRequest* reqs, size_t num_reqs) { 29761: 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: (static_cast ( 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: reqs != nullptr 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: "reqs != nullptr" 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: ; 29761: for (size_t i = 0; i < num_reqs; ++i) { 29761: ReadRequest& req = reqs[i]; 29761: req.status = Read(req.offset, req.len, &req.result, req.scratch); 29761: } 29761: return Status::OK(); 29761: } 29761: # 845 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: 29761: } 29761: 29761: enum AccessPattern { NORMAL, RANDOM, SEQUENTIAL, WILLNEED, DONTNEED }; 29761: 29761: virtual void Hint(AccessPattern ) {} 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: 29761: virtual Status InvalidateCache(size_t , size_t ) { 29761: return Status::NotSupported( 29761: "RandomAccessFile::InvalidateCache not supported."); 29761: } 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: class WritableFile { 29761: public: 29761: WritableFile() 29761: : last_preallocated_block_(0), 29761: preallocation_block_size_(0), 29761: io_priority_(Env::IO_TOTAL), 29761: write_hint_(Env::WLTH_NOT_SET), 29761: strict_bytes_per_sync_(false) {} 29761: 29761: explicit WritableFile(const EnvOptions& options) 29761: : last_preallocated_block_(0), 29761: preallocation_block_size_(0), 29761: io_priority_(Env::IO_TOTAL), 29761: write_hint_(Env::WLTH_NOT_SET), 29761: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 29761: 29761: WritableFile(const WritableFile&) = delete; 29761: void operator=(const WritableFile&) = delete; 29761: 29761: 29761: 29761: 29761: virtual ~WritableFile(); 29761: 29761: 29761: 29761: 29761: virtual Status Append(const Slice& data) = 0; 29761: # 913 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status Append(const Slice& data, 29761: const DataVerificationInfo& ) { 29761: return Append(data); 29761: } 29761: # 938 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status PositionedAppend(const Slice& , 29761: uint64_t ) { 29761: return Status::NotSupported( 29761: "WritableFile::PositionedAppend() not supported."); 29761: } 29761: # 951 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status PositionedAppend( 29761: const Slice& , uint64_t , 29761: const DataVerificationInfo& ) { 29761: return Status::NotSupported("PositionedAppend"); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Truncate(uint64_t ) { return Status::OK(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Close() = 0; 29761: virtual Status Flush() = 0; 29761: virtual Status Sync() = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Fsync() { return Sync(); } 29761: 29761: 29761: 29761: virtual bool IsSyncThreadSafe() const { return false; } 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: # 1003 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 29761: 29761: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 29761: 29761: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 29761: write_hint_ = hint; 29761: } 29761: 29761: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 29761: 29761: 29761: 29761: virtual uint64_t GetFileSize() = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void SetPreallocationBlockSize(size_t size) { 29761: preallocation_block_size_ = size; 29761: } 29761: 29761: virtual void GetPreallocationStatus(size_t* block_size, 29761: size_t* last_allocated_block) { 29761: *last_allocated_block = last_preallocated_block_; 29761: *block_size = preallocation_block_size_; 29761: } 29761: 29761: 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status InvalidateCache(size_t , size_t ) { 29761: return Status::NotSupported("WritableFile::InvalidateCache not supported."); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status RangeSync(uint64_t , uint64_t ) { 29761: if (strict_bytes_per_sync_) { 29761: return Sync(); 29761: } 29761: return Status::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void PrepareWrite(size_t offset, size_t len) { 29761: if (preallocation_block_size_ == 0) { 29761: return; 29761: } 29761: 29761: 29761: 29761: const auto block_size = preallocation_block_size_; 29761: size_t new_last_preallocated_block = 29761: (offset + len + block_size - 1) / block_size; 29761: if (new_last_preallocated_block > last_preallocated_block_) { 29761: size_t num_spanned_blocks = 29761: new_last_preallocated_block - last_preallocated_block_; 29761: 29761: Allocate(block_size * last_preallocated_block_, 29761: block_size * num_spanned_blocks) 29761: .PermitUncheckedError(); 29761: last_preallocated_block_ = new_last_preallocated_block; 29761: } 29761: } 29761: 29761: 29761: virtual Status Allocate(uint64_t , uint64_t ) { 29761: return Status::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: protected: 29761: size_t preallocation_block_size() { return preallocation_block_size_; } 29761: 29761: private: 29761: size_t last_preallocated_block_; 29761: size_t preallocation_block_size_; 29761: 29761: protected: 29761: Env::IOPriority io_priority_; 29761: Env::WriteLifeTimeHint write_hint_; 29761: const bool strict_bytes_per_sync_; 29761: }; 29761: 29761: 29761: class RandomRWFile { 29761: public: 29761: RandomRWFile() {} 29761: 29761: RandomRWFile(const RandomRWFile&) = delete; 29761: RandomRWFile& operator=(const RandomRWFile&) = delete; 29761: 29761: 29761: 29761: 29761: virtual ~RandomRWFile() {} 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: virtual Status Write(uint64_t offset, const Slice& data) = 0; 29761: # 1139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status Read(uint64_t offset, size_t n, Slice* result, 29761: char* scratch) const = 0; 29761: 29761: virtual Status Flush() = 0; 29761: 29761: virtual Status Sync() = 0; 29761: 29761: virtual Status Fsync() { return Sync(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Close() = 0; 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: class MemoryMappedFileBuffer { 29761: public: 29761: MemoryMappedFileBuffer(void* _base, size_t _length) 29761: : base_(_base), length_(_length) {} 29761: 29761: virtual ~MemoryMappedFileBuffer() = 0; 29761: 29761: 29761: 29761: MemoryMappedFileBuffer(const MemoryMappedFileBuffer&) = delete; 29761: MemoryMappedFileBuffer& operator=(const MemoryMappedFileBuffer&) = delete; 29761: 29761: void* GetBase() const { return base_; } 29761: size_t GetLen() const { return length_; } 29761: 29761: protected: 29761: void* base_; 29761: const size_t length_; 29761: }; 29761: 29761: 29761: 29761: class Directory { 29761: public: 29761: 29761: 29761: virtual ~Directory() {} 29761: 29761: virtual Status Fsync() = 0; 29761: 29761: 29761: 29761: virtual Status Close() { return Status::NotSupported("Close"); } 29761: 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: }; 29761: 29761: enum InfoLogLevel : unsigned char { 29761: DEBUG_LEVEL = 0, 29761: INFO_LEVEL, 29761: WARN_LEVEL, 29761: ERROR_LEVEL, 29761: FATAL_LEVEL, 29761: HEADER_LEVEL, 29761: NUM_INFO_LOG_LEVELS, 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class Logger { 29761: public: 29761: static constexpr size_t kDoNotSupportGetLogFileSize = 29761: # 1220 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: (4294967295U) 29761: # 1220 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: ; 29761: 29761: 29761: 29761: static const InfoLogLevel kDefaultLogLevel; 29761: 29761: explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL) 29761: : closed_(false), log_level_(log_level) {} 29761: 29761: Logger(const Logger&) = delete; 29761: void operator=(const Logger&) = delete; 29761: 29761: virtual ~Logger(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Close(); 29761: 29761: 29761: 29761: 29761: virtual void LogHeader(const char* format, va_list ap) { 29761: 29761: 29761: Logv(InfoLogLevel::INFO_LEVEL, format, ap); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void Logv(const char* , va_list ) { 29761: 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: (static_cast ( 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: false 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: "false" 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: ; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual void Logv(const InfoLogLevel log_level, const char* format, 29761: va_list ap); 29761: 29761: virtual size_t GetLogFileSize() const { return kDoNotSupportGetLogFileSize; } 29761: 29761: virtual void Flush() {} 29761: virtual InfoLogLevel GetInfoLogLevel() const { return log_level_; } 29761: virtual void SetInfoLogLevel(const InfoLogLevel log_level) { 29761: log_level_ = log_level; 29761: } 29761: 29761: 29761: 29761: protected: 29761: virtual Status CloseImpl(); 29761: bool closed_; 29761: 29761: private: 29761: InfoLogLevel log_level_; 29761: }; 29761: 29761: 29761: 29761: 29761: class FileLock { 29761: public: 29761: FileLock() {} 29761: virtual ~FileLock(); 29761: 29761: private: 29761: 29761: FileLock(const FileLock&) = delete; 29761: void operator=(const FileLock&) = delete; 29761: }; 29761: 29761: class DynamicLibrary { 29761: public: 29761: virtual ~DynamicLibrary() {} 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: 29761: template 29761: Status LoadFunction(const std::string& sym_name, std::function* function) { 29761: 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: (static_cast ( 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: nullptr != function 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: "nullptr != function" 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: ; 29761: void* ptr = nullptr; 29761: Status s = LoadSymbol(sym_name, &ptr); 29761: *function = reinterpret_cast(ptr); 29761: return s; 29761: } 29761: 29761: virtual Status LoadSymbol(const std::string& sym_name, void** func) = 0; 29761: }; 29761: 29761: void LogFlush(const std::shared_ptr& info_log); 29761: 29761: void Log(const InfoLogLevel log_level, const std::shared_ptr& info_log, 29761: const char* format, ...) __attribute__((__format__(__printf__, 3, 4))); 29761: 29761: 29761: void Header(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Debug(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Info(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Warn(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Error(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Fatal(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: 29761: 29761: 29761: void Log(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: 29761: void LogFlush(Logger* info_log); 29761: 29761: void Log(const InfoLogLevel log_level, Logger* info_log, const char* format, 29761: ...) __attribute__((__format__(__printf__, 3, 4))); 29761: 29761: 29761: void Log(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: 29761: 29761: void Header(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Debug(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Info(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Warn(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Error(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Fatal(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: 29761: 29761: Status WriteStringToFile(Env* env, const Slice& data, const std::string& fname, 29761: bool should_sync = false, 29761: const IOOptions* io_options = nullptr); 29761: 29761: 29761: Status ReadFileToString(Env* env, const std::string& fname, std::string* data); 29761: # 1402 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: class EnvWrapper : public Env { 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: struct Target { 29761: Env* env; 29761: std::shared_ptr guard; 29761: 29761: 29761: explicit Target(Env* t) : env(t) {} 29761: 29761: 29761: explicit Target(std::unique_ptr&& t) : guard(t.release()) { 29761: env = guard.get(); 29761: } 29761: 29761: 29761: explicit Target(const std::shared_ptr& t) : guard(t) { 29761: env = guard.get(); 29761: } 29761: 29761: 29761: void Prepare() { 29761: if (guard.get() != nullptr) { 29761: env = guard.get(); 29761: } else if (env == nullptr) { 29761: env = Env::Default(); 29761: } 29761: } 29761: }; 29761: 29761: 29761: explicit EnvWrapper(Env* t); 29761: explicit EnvWrapper(std::unique_ptr&& t); 29761: explicit EnvWrapper(const std::shared_ptr& t); 29761: ~EnvWrapper() override; 29761: 29761: 29761: Env* target() const { return target_.env; } 29761: 29761: 29761: 29761: const char* Name() const override { return target_.env->Name(); } 29761: 29761: 29761: Status RegisterDbPaths(const std::vector& paths) override { 29761: return target_.env->RegisterDbPaths(paths); 29761: } 29761: 29761: Status UnregisterDbPaths(const std::vector& paths) override { 29761: return target_.env->UnregisterDbPaths(paths); 29761: } 29761: 29761: Status NewSequentialFile(const std::string& f, 29761: std::unique_ptr* r, 29761: const EnvOptions& options) override { 29761: return target_.env->NewSequentialFile(f, r, options); 29761: } 29761: Status NewRandomAccessFile(const std::string& f, 29761: std::unique_ptr* r, 29761: const EnvOptions& options) override { 29761: return target_.env->NewRandomAccessFile(f, r, options); 29761: } 29761: Status NewWritableFile(const std::string& f, std::unique_ptr* r, 29761: const EnvOptions& options) override { 29761: return target_.env->NewWritableFile(f, r, options); 29761: } 29761: Status ReopenWritableFile(const std::string& fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options) override { 29761: return target_.env->ReopenWritableFile(fname, result, options); 29761: } 29761: Status ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: std::unique_ptr* r, 29761: const EnvOptions& options) override { 29761: return target_.env->ReuseWritableFile(fname, old_fname, r, options); 29761: } 29761: Status NewRandomRWFile(const std::string& fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options) override { 29761: return target_.env->NewRandomRWFile(fname, result, options); 29761: } 29761: Status NewMemoryMappedFileBuffer( 29761: const std::string& fname, 29761: std::unique_ptr* result) override { 29761: return target_.env->NewMemoryMappedFileBuffer(fname, result); 29761: } 29761: Status NewDirectory(const std::string& name, 29761: std::unique_ptr* result) override { 29761: return target_.env->NewDirectory(name, result); 29761: } 29761: Status FileExists(const std::string& f) override { 29761: return target_.env->FileExists(f); 29761: } 29761: Status GetChildren(const std::string& dir, 29761: std::vector* r) override { 29761: return target_.env->GetChildren(dir, r); 29761: } 29761: Status GetChildrenFileAttributes( 29761: const std::string& dir, std::vector* result) override { 29761: return target_.env->GetChildrenFileAttributes(dir, result); 29761: } 29761: Status DeleteFile(const std::string& f) override { 29761: return target_.env->DeleteFile(f); 29761: } 29761: Status Truncate(const std::string& fname, size_t size) override { 29761: return target_.env->Truncate(fname, size); 29761: } 29761: Status CreateDir(const std::string& d) override { 29761: return target_.env->CreateDir(d); 29761: } 29761: Status CreateDirIfMissing(const std::string& d) override { 29761: return target_.env->CreateDirIfMissing(d); 29761: } 29761: Status DeleteDir(const std::string& d) override { 29761: return target_.env->DeleteDir(d); 29761: } 29761: Status GetFileSize(const std::string& f, uint64_t* s) override { 29761: return target_.env->GetFileSize(f, s); 29761: } 29761: 29761: Status GetFileModificationTime(const std::string& fname, 29761: uint64_t* file_mtime) override { 29761: return target_.env->GetFileModificationTime(fname, file_mtime); 29761: } 29761: 29761: Status RenameFile(const std::string& s, const std::string& t) override { 29761: return target_.env->RenameFile(s, t); 29761: } 29761: 29761: Status LinkFile(const std::string& s, const std::string& t) override { 29761: return target_.env->LinkFile(s, t); 29761: } 29761: 29761: Status NumFileLinks(const std::string& fname, uint64_t* count) override { 29761: return target_.env->NumFileLinks(fname, count); 29761: } 29761: 29761: Status AreFilesSame(const std::string& first, const std::string& second, 29761: bool* res) override { 29761: return target_.env->AreFilesSame(first, second, res); 29761: } 29761: 29761: Status LockFile(const std::string& f, FileLock** l) override { 29761: return target_.env->LockFile(f, l); 29761: } 29761: 29761: Status UnlockFile(FileLock* l) override { return target_.env->UnlockFile(l); } 29761: 29761: Status IsDirectory(const std::string& path, bool* is_dir) override { 29761: return target_.env->IsDirectory(path, is_dir); 29761: } 29761: 29761: Status LoadLibrary(const std::string& lib_name, 29761: const std::string& search_path, 29761: std::shared_ptr* result) override { 29761: return target_.env->LoadLibrary(lib_name, search_path, result); 29761: } 29761: 29761: void Schedule(void (*f)(void* arg), void* a, Priority pri, 29761: void* tag = nullptr, void (*u)(void* arg) = nullptr) override { 29761: return target_.env->Schedule(f, a, pri, tag, u); 29761: } 29761: 29761: int UnSchedule(void* tag, Priority pri) override { 29761: return target_.env->UnSchedule(tag, pri); 29761: } 29761: 29761: void StartThread(void (*f)(void*), void* a) override { 29761: return target_.env->StartThread(f, a); 29761: } 29761: void WaitForJoin() override { return target_.env->WaitForJoin(); } 29761: unsigned int GetThreadPoolQueueLen(Priority pri = LOW) const override { 29761: return target_.env->GetThreadPoolQueueLen(pri); 29761: } 29761: 29761: int ReserveThreads(int threads_to_be_reserved, Priority pri) override { 29761: return target_.env->ReserveThreads(threads_to_be_reserved, pri); 29761: } 29761: 29761: int ReleaseThreads(int threads_to_be_released, Priority pri) override { 29761: return target_.env->ReleaseThreads(threads_to_be_released, pri); 29761: } 29761: 29761: Status GetTestDirectory(std::string* path) override { 29761: return target_.env->GetTestDirectory(path); 29761: } 29761: Status NewLogger(const std::string& fname, 29761: std::shared_ptr* result) override { 29761: return target_.env->NewLogger(fname, result); 29761: } 29761: uint64_t NowMicros() override { return target_.env->NowMicros(); } 29761: uint64_t NowNanos() override { return target_.env->NowNanos(); } 29761: uint64_t NowCPUNanos() override { return target_.env->NowCPUNanos(); } 29761: 29761: void SleepForMicroseconds(int micros) override { 29761: target_.env->SleepForMicroseconds(micros); 29761: } 29761: Status GetHostName(char* name, uint64_t len) override { 29761: return target_.env->GetHostName(name, len); 29761: } 29761: Status GetCurrentTime(int64_t* unix_time) override { 29761: return target_.env->GetCurrentTime(unix_time); 29761: } 29761: Status GetAbsolutePath(const std::string& db_path, 29761: std::string* output_path) override { 29761: return target_.env->GetAbsolutePath(db_path, output_path); 29761: } 29761: void SetBackgroundThreads(int num, Priority pri) override { 29761: return target_.env->SetBackgroundThreads(num, pri); 29761: } 29761: int GetBackgroundThreads(Priority pri) override { 29761: return target_.env->GetBackgroundThreads(pri); 29761: } 29761: 29761: Status SetAllowNonOwnerAccess(bool allow_non_owner_access) override { 29761: return target_.env->SetAllowNonOwnerAccess(allow_non_owner_access); 29761: } 29761: 29761: void IncBackgroundThreadsIfNeeded(int num, Priority pri) override { 29761: return target_.env->IncBackgroundThreadsIfNeeded(num, pri); 29761: } 29761: 29761: void LowerThreadPoolIOPriority(Priority pool) override { 29761: target_.env->LowerThreadPoolIOPriority(pool); 29761: } 29761: 29761: void LowerThreadPoolCPUPriority(Priority pool) override { 29761: target_.env->LowerThreadPoolCPUPriority(pool); 29761: } 29761: 29761: Status LowerThreadPoolCPUPriority(Priority pool, CpuPriority pri) override { 29761: return target_.env->LowerThreadPoolCPUPriority(pool, pri); 29761: } 29761: 29761: std::string TimeToString(uint64_t time) override { 29761: return target_.env->TimeToString(time); 29761: } 29761: 29761: Status GetThreadList(std::vector* thread_list) override { 29761: return target_.env->GetThreadList(thread_list); 29761: } 29761: 29761: ThreadStatusUpdater* GetThreadStatusUpdater() const override { 29761: return target_.env->GetThreadStatusUpdater(); 29761: } 29761: 29761: uint64_t GetThreadID() const override { return target_.env->GetThreadID(); } 29761: 29761: std::string GenerateUniqueId() override { 29761: return target_.env->GenerateUniqueId(); 29761: } 29761: 29761: EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const override { 29761: return target_.env->OptimizeForLogRead(env_options); 29761: } 29761: EnvOptions OptimizeForManifestRead( 29761: const EnvOptions& env_options) const override { 29761: return target_.env->OptimizeForManifestRead(env_options); 29761: } 29761: EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 29761: const DBOptions& db_options) const override { 29761: return target_.env->OptimizeForLogWrite(env_options, db_options); 29761: } 29761: EnvOptions OptimizeForManifestWrite( 29761: const EnvOptions& env_options) const override { 29761: return target_.env->OptimizeForManifestWrite(env_options); 29761: } 29761: EnvOptions OptimizeForCompactionTableWrite( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& immutable_ops) const override { 29761: return target_.env->OptimizeForCompactionTableWrite(env_options, 29761: immutable_ops); 29761: } 29761: EnvOptions OptimizeForCompactionTableRead( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& db_options) const override { 29761: return target_.env->OptimizeForCompactionTableRead(env_options, db_options); 29761: } 29761: EnvOptions OptimizeForBlobFileRead( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& db_options) const override { 29761: return target_.env->OptimizeForBlobFileRead(env_options, db_options); 29761: } 29761: Status GetFreeSpace(const std::string& path, uint64_t* diskfree) override { 29761: return target_.env->GetFreeSpace(path, diskfree); 29761: } 29761: void SanitizeEnvOptions(EnvOptions* env_opts) const override { 29761: target_.env->SanitizeEnvOptions(env_opts); 29761: } 29761: Status PrepareOptions(const ConfigOptions& options) override; 29761: std::string SerializeOptions(const ConfigOptions& config_options, 29761: const std::string& header) const override; 29761: 29761: private: 29761: Target target_; 29761: }; 29761: 29761: class SequentialFileWrapper : public SequentialFile { 29761: public: 29761: explicit SequentialFileWrapper(SequentialFile* target) : target_(target) {} 29761: 29761: Status Read(size_t n, Slice* result, char* scratch) override { 29761: return target_->Read(n, result, scratch); 29761: } 29761: Status Skip(uint64_t n) override { return target_->Skip(n); } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: Status InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: Status PositionedRead(uint64_t offset, size_t n, Slice* result, 29761: char* scratch) override { 29761: return target_->PositionedRead(offset, n, result, scratch); 29761: } 29761: 29761: private: 29761: SequentialFile* target_; 29761: }; 29761: 29761: class RandomAccessFileWrapper : public RandomAccessFile { 29761: public: 29761: explicit RandomAccessFileWrapper(RandomAccessFile* target) 29761: : target_(target) {} 29761: 29761: Status Read(uint64_t offset, size_t n, Slice* result, 29761: char* scratch) const override { 29761: return target_->Read(offset, n, result, scratch); 29761: } 29761: Status MultiRead(ReadRequest* reqs, size_t num_reqs) override { 29761: return target_->MultiRead(reqs, num_reqs); 29761: } 29761: Status Prefetch(uint64_t offset, size_t n) override { 29761: return target_->Prefetch(offset, n); 29761: } 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: Status InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: 29761: private: 29761: RandomAccessFile* target_; 29761: }; 29761: 29761: class WritableFileWrapper : public WritableFile { 29761: public: 29761: explicit WritableFileWrapper(WritableFile* t) : target_(t) {} 29761: 29761: Status Append(const Slice& data) override { return target_->Append(data); } 29761: Status Append(const Slice& data, 29761: const DataVerificationInfo& verification_info) override { 29761: return target_->Append(data, verification_info); 29761: } 29761: Status PositionedAppend(const Slice& data, uint64_t offset) override { 29761: return target_->PositionedAppend(data, offset); 29761: } 29761: Status PositionedAppend( 29761: const Slice& data, uint64_t offset, 29761: const DataVerificationInfo& verification_info) override { 29761: return target_->PositionedAppend(data, offset, verification_info); 29761: } 29761: Status Truncate(uint64_t size) override { return target_->Truncate(size); } 29761: Status Close() override { return target_->Close(); } 29761: Status Flush() override { return target_->Flush(); } 29761: Status Sync() override { return target_->Sync(); } 29761: Status Fsync() override { return target_->Fsync(); } 29761: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 29761: 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: 29761: void SetIOPriority(Env::IOPriority pri) override { 29761: target_->SetIOPriority(pri); 29761: } 29761: 29761: Env::IOPriority GetIOPriority() override { return target_->GetIOPriority(); } 29761: 29761: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 29761: target_->SetWriteLifeTimeHint(hint); 29761: } 29761: 29761: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 29761: return target_->GetWriteLifeTimeHint(); 29761: } 29761: 29761: uint64_t GetFileSize() override { return target_->GetFileSize(); } 29761: 29761: void SetPreallocationBlockSize(size_t size) override { 29761: target_->SetPreallocationBlockSize(size); 29761: } 29761: 29761: void GetPreallocationStatus(size_t* block_size, 29761: size_t* last_allocated_block) override { 29761: target_->GetPreallocationStatus(block_size, last_allocated_block); 29761: } 29761: 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: 29761: Status InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: 29761: Status RangeSync(uint64_t offset, uint64_t nbytes) override { 29761: return target_->RangeSync(offset, nbytes); 29761: } 29761: 29761: void PrepareWrite(size_t offset, size_t len) override { 29761: target_->PrepareWrite(offset, len); 29761: } 29761: 29761: Status Allocate(uint64_t offset, uint64_t len) override { 29761: return target_->Allocate(offset, len); 29761: } 29761: 29761: private: 29761: WritableFile* target_; 29761: }; 29761: 29761: class RandomRWFileWrapper : public RandomRWFile { 29761: public: 29761: explicit RandomRWFileWrapper(RandomRWFile* target) : target_(target) {} 29761: 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: Status Write(uint64_t offset, const Slice& data) override { 29761: return target_->Write(offset, data); 29761: } 29761: Status Read(uint64_t offset, size_t n, Slice* result, 29761: char* scratch) const override { 29761: return target_->Read(offset, n, result, scratch); 29761: } 29761: Status Flush() override { return target_->Flush(); } 29761: Status Sync() override { return target_->Sync(); } 29761: Status Fsync() override { return target_->Fsync(); } 29761: Status Close() override { return target_->Close(); } 29761: 29761: private: 29761: RandomRWFile* target_; 29761: }; 29761: 29761: class DirectoryWrapper : public Directory { 29761: public: 29761: explicit DirectoryWrapper(Directory* target) : target_(target) {} 29761: 29761: Status Fsync() override { return target_->Fsync(); } 29761: Status Close() override { return target_->Close(); } 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: 29761: private: 29761: Directory* target_; 29761: }; 29761: 29761: class LoggerWrapper : public Logger { 29761: public: 29761: explicit LoggerWrapper(Logger* target) : target_(target) {} 29761: 29761: Status Close() override { return target_->Close(); } 29761: void LogHeader(const char* format, va_list ap) override { 29761: return target_->LogHeader(format, ap); 29761: } 29761: void Logv(const char* format, va_list ap) override { 29761: return target_->Logv(format, ap); 29761: } 29761: void Logv(const InfoLogLevel log_level, const char* format, 29761: va_list ap) override { 29761: return target_->Logv(log_level, format, ap); 29761: } 29761: size_t GetLogFileSize() const override { return target_->GetLogFileSize(); } 29761: void Flush() override { return target_->Flush(); } 29761: InfoLogLevel GetInfoLogLevel() const override { 29761: return target_->GetInfoLogLevel(); 29761: } 29761: void SetInfoLogLevel(const InfoLogLevel log_level) override { 29761: return target_->SetInfoLogLevel(log_level); 29761: } 29761: 29761: private: 29761: Logger* target_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: Env* NewMemEnv(Env* base_env); 29761: 29761: 29761: 29761: 29761: Env* NewTimedEnv(Env* base_env); 29761: 29761: 29761: 29761: 29761: Status NewEnvLogger(const std::string& fname, Env* env, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: std::unique_ptr NewCompositeEnv(const std::shared_ptr& fs); 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 2 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29761: namespace rocksdb { 29761: 29761: 29761: constexpr char kUnknownFileChecksum[] = ""; 29761: 29761: constexpr char kUnknownFileChecksumFuncName[] = "Unknown"; 29761: 29761: 29761: 29761: constexpr char kStandardDbFileChecksumFuncName[] = "FileChecksumCrc32c"; 29761: 29761: struct FileChecksumGenContext { 29761: std::string file_name; 29761: 29761: 29761: 29761: 29761: std::string requested_checksum_func_name; 29761: }; 29761: # 50 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29761: class FileChecksumGenerator { 29761: public: 29761: virtual ~FileChecksumGenerator() {} 29761: 29761: 29761: 29761: 29761: virtual void Update(const char* data, size_t n) = 0; 29761: 29761: 29761: virtual void Finalize() = 0; 29761: 29761: 29761: 29761: virtual std::string GetChecksum() const = 0; 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FileChecksumGenFactory : public Customizable { 29761: public: 29761: ~FileChecksumGenFactory() override {} 29761: static const char* Type() { return "FileChecksumGenFactory"; } 29761: static Status CreateFromString( 29761: const ConfigOptions& options, const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: 29761: virtual std::unique_ptr CreateFileChecksumGenerator( 29761: const FileChecksumGenContext& context) = 0; 29761: 29761: 29761: const char* Name() const override = 0; 29761: }; 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29761: class FileChecksumList { 29761: public: 29761: virtual ~FileChecksumList() {} 29761: 29761: 29761: virtual void reset() = 0; 29761: 29761: 29761: virtual size_t size() const = 0; 29761: 29761: 29761: 29761: 29761: virtual Status GetAllFileChecksums( 29761: std::vector* file_numbers, std::vector* checksums, 29761: std::vector* checksum_func_names) = 0; 29761: 29761: 29761: 29761: virtual Status SearchOneFileChecksum(uint64_t file_number, 29761: std::string* checksum, 29761: std::string* checksum_func_name) = 0; 29761: 29761: 29761: virtual Status InsertOneFileChecksum( 29761: uint64_t file_number, const std::string& checksum, 29761: const std::string& checksum_func_name) = 0; 29761: 29761: 29761: virtual Status RemoveOneFileChecksum(uint64_t file_number) = 0; 29761: }; 29761: 29761: 29761: FileChecksumList* NewFileChecksumList(); 29761: # 143 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29761: extern std::shared_ptr 29761: GetFileChecksumGenCrc32cFactory(); 29761: 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_job_stats.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 8 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_job_stats.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: struct CompactionJobStats { 29761: CompactionJobStats() { Reset(); } 29761: void Reset(); 29761: 29761: void Add(const CompactionJobStats& stats); 29761: 29761: 29761: uint64_t elapsed_micros = 0; 29761: 29761: 29761: uint64_t cpu_micros = 0; 29761: 29761: 29761: 29761: bool has_num_input_records = false; 29761: 29761: uint64_t num_input_records = 0; 29761: 29761: uint64_t num_blobs_read = 0; 29761: 29761: size_t num_input_files = 0; 29761: 29761: size_t num_input_files_at_output_level = 0; 29761: 29761: 29761: size_t num_filtered_input_files = 0; 29761: 29761: 29761: size_t num_filtered_input_files_at_output_level = 0; 29761: 29761: 29761: uint64_t num_output_records = 0; 29761: 29761: size_t num_output_files = 0; 29761: 29761: size_t num_output_files_blob = 0; 29761: 29761: 29761: bool is_full_compaction = false; 29761: 29761: bool is_manual_compaction = false; 29761: 29761: bool is_remote_compaction = false; 29761: 29761: 29761: uint64_t total_input_bytes = 0; 29761: 29761: uint64_t total_blob_bytes_read = 0; 29761: 29761: uint64_t total_output_bytes = 0; 29761: 29761: uint64_t total_output_bytes_blob = 0; 29761: 29761: 29761: uint64_t total_skipped_input_bytes = 0; 29761: 29761: 29761: 29761: 29761: uint64_t num_records_replaced = 0; 29761: 29761: 29761: uint64_t total_input_raw_key_bytes = 0; 29761: 29761: uint64_t total_input_raw_value_bytes = 0; 29761: 29761: 29761: 29761: uint64_t num_input_deletion_records = 0; 29761: 29761: 29761: 29761: uint64_t num_expired_deletion_records = 0; 29761: 29761: 29761: 29761: uint64_t num_corrupt_keys = 0; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t file_write_nanos = 0; 29761: 29761: 29761: uint64_t file_range_sync_nanos = 0; 29761: 29761: 29761: uint64_t file_fsync_nanos = 0; 29761: 29761: 29761: uint64_t file_prepare_write_nanos = 0; 29761: 29761: 29761: 29761: static const size_t kMaxPrefixLength = 8; 29761: 29761: std::string smallest_output_key_prefix; 29761: std::string largest_output_key_prefix; 29761: 29761: 29761: uint64_t num_single_del_fallthru = 0; 29761: 29761: 29761: uint64_t num_single_del_mismatch = 0; 29761: 29761: 29761: }; 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 1 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstring" 1 3 29761: # 39 "/usr/include/c++/14/cstring" 3 29761: 29761: # 40 "/usr/include/c++/14/cstring" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 43 "/usr/include/c++/14/cstring" 2 3 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 2 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class IOStatus : public Status { 29761: public: 29761: using Code = Status::Code; 29761: using SubCode = Status::SubCode; 29761: 29761: enum IOErrorScope : unsigned char { 29761: kIOErrorScopeFileSystem, 29761: kIOErrorScopeFile, 29761: kIOErrorScopeRange, 29761: kIOErrorScopeMax, 29761: }; 29761: 29761: 29761: IOStatus() : IOStatus(kOk, kNone) {} 29761: ~IOStatus() {} 29761: 29761: 29761: IOStatus(const IOStatus& s); 29761: IOStatus& operator=(const IOStatus& s); 29761: IOStatus(IOStatus&& s) noexcept; 29761: IOStatus& operator=(IOStatus&& s) noexcept; 29761: bool operator==(const IOStatus& rhs) const; 29761: bool operator!=(const IOStatus& rhs) const; 29761: 29761: void SetRetryable(bool retryable) { retryable_ = retryable; } 29761: void SetDataLoss(bool data_loss) { data_loss_ = data_loss; } 29761: void SetScope(IOErrorScope scope) { 29761: scope_ = static_cast(scope); 29761: } 29761: 29761: bool GetRetryable() const { return retryable_; } 29761: bool GetDataLoss() const { return data_loss_; } 29761: IOErrorScope GetScope() const { return static_cast(scope_); } 29761: 29761: 29761: static IOStatus OK() { return IOStatus(); } 29761: 29761: static IOStatus NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kNotSupported, msg, msg2); 29761: } 29761: static IOStatus NotSupported(SubCode msg = kNone) { 29761: return IOStatus(kNotSupported, msg); 29761: } 29761: 29761: 29761: static IOStatus NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kNotFound, msg, msg2); 29761: } 29761: 29761: static IOStatus NotFound(SubCode msg = kNone) { 29761: return IOStatus(kNotFound, msg); 29761: } 29761: 29761: static IOStatus Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kCorruption, msg, msg2); 29761: } 29761: static IOStatus Corruption(SubCode msg = kNone) { 29761: return IOStatus(kCorruption, msg); 29761: } 29761: 29761: static IOStatus InvalidArgument(const Slice& msg, 29761: const Slice& msg2 = Slice()) { 29761: return IOStatus(kInvalidArgument, msg, msg2); 29761: } 29761: static IOStatus InvalidArgument(SubCode msg = kNone) { 29761: return IOStatus(kInvalidArgument, msg); 29761: } 29761: 29761: static IOStatus IOError(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kIOError, msg, msg2); 29761: } 29761: static IOStatus IOError(SubCode msg = kNone) { 29761: return IOStatus(kIOError, msg); 29761: } 29761: 29761: static IOStatus Busy(SubCode msg = kNone) { return IOStatus(kBusy, msg); } 29761: static IOStatus Busy(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kBusy, msg, msg2); 29761: } 29761: 29761: static IOStatus TimedOut(SubCode msg = kNone) { 29761: return IOStatus(kTimedOut, msg); 29761: } 29761: static IOStatus TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kTimedOut, msg, msg2); 29761: } 29761: 29761: static IOStatus NoSpace() { return IOStatus(kIOError, kNoSpace); } 29761: static IOStatus NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kIOError, kNoSpace, msg, msg2); 29761: } 29761: 29761: static IOStatus PathNotFound() { return IOStatus(kIOError, kPathNotFound); } 29761: static IOStatus PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kIOError, kPathNotFound, msg, msg2); 29761: } 29761: 29761: static IOStatus IOFenced() { return IOStatus(kIOError, kIOFenced); } 29761: static IOStatus IOFenced(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kIOError, kIOFenced, msg, msg2); 29761: } 29761: 29761: static IOStatus Aborted(SubCode msg = kNone) { 29761: return IOStatus(kAborted, msg); 29761: } 29761: static IOStatus Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kAborted, msg, msg2); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: private: 29761: friend IOStatus status_to_io_status(Status&&); 29761: 29761: explicit IOStatus(Code _code, SubCode _subcode = kNone) 29761: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) {} 29761: 29761: IOStatus(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2); 29761: IOStatus(Code _code, const Slice& msg, const Slice& msg2) 29761: : IOStatus(_code, kNone, msg, msg2) {} 29761: }; 29761: 29761: inline IOStatus::IOStatus(Code _code, SubCode _subcode, const Slice& msg, 29761: const Slice& msg2) 29761: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) { 29761: 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: (static_cast ( 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: code_ != kOk 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: "code_ != kOk" 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: ; 29761: 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: (static_cast ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: subcode_ != kMaxSubCode 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: "subcode_ != kMaxSubCode" 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: ; 29761: const size_t len1 = msg.size(); 29761: const size_t len2 = msg2.size(); 29761: const size_t size = len1 + (len2 ? (2 + len2) : 0); 29761: char* const result = new char[size + 1]; 29761: memcpy(result, msg.data(), len1); 29761: if (len2) { 29761: result[len1] = ':'; 29761: result[len1 + 1] = ' '; 29761: memcpy(result + len1 + 2, msg2.data(), len2); 29761: } 29761: result[size] = '\0'; 29761: state_.reset(result); 29761: } 29761: 29761: inline IOStatus::IOStatus(const IOStatus& s) : Status(s.code_, s.subcode_) { 29761: 29761: 29761: 29761: retryable_ = s.retryable_; 29761: data_loss_ = s.data_loss_; 29761: scope_ = s.scope_; 29761: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29761: } 29761: inline IOStatus& IOStatus::operator=(const IOStatus& s) { 29761: 29761: 29761: if (this != &s) { 29761: 29761: 29761: 29761: 29761: code_ = s.code_; 29761: subcode_ = s.subcode_; 29761: retryable_ = s.retryable_; 29761: data_loss_ = s.data_loss_; 29761: scope_ = s.scope_; 29761: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29761: } 29761: return *this; 29761: } 29761: 29761: inline IOStatus::IOStatus(IOStatus&& s) noexcept : IOStatus() { 29761: *this = std::move(s); 29761: } 29761: 29761: inline IOStatus& IOStatus::operator=(IOStatus&& s) noexcept { 29761: if (this != &s) { 29761: 29761: 29761: 29761: 29761: code_ = std::move(s.code_); 29761: s.code_ = kOk; 29761: subcode_ = std::move(s.subcode_); 29761: s.subcode_ = kNone; 29761: retryable_ = s.retryable_; 29761: data_loss_ = s.data_loss_; 29761: scope_ = s.scope_; 29761: s.scope_ = kIOErrorScopeFileSystem; 29761: state_ = std::move(s.state_); 29761: } 29761: return *this; 29761: } 29761: 29761: inline bool IOStatus::operator==(const IOStatus& rhs) const { 29761: 29761: 29761: 29761: 29761: return (code_ == rhs.code_); 29761: } 29761: 29761: inline bool IOStatus::operator!=(const IOStatus& rhs) const { 29761: 29761: 29761: 29761: 29761: return !(*this == rhs); 29761: } 29761: 29761: inline IOStatus status_to_io_status(Status&& status) { 29761: IOStatus io_s; 29761: Status& s = io_s; 29761: s = std::move(status); 29761: return io_s; 29761: } 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 1 29761: 29761: 29761: 29761: 29761: 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: namespace rocksdb { 29761: 29761: class InternalTblPropColl; 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: using UserCollectedProperties = std::map; 29761: 29761: 29761: struct TablePropertiesNames { 29761: static const std::string kDbId; 29761: static const std::string kDbSessionId; 29761: static const std::string kDbHostId; 29761: static const std::string kOriginalFileNumber; 29761: static const std::string kDataSize; 29761: static const std::string kIndexSize; 29761: static const std::string kIndexPartitions; 29761: static const std::string kTopLevelIndexSize; 29761: static const std::string kIndexKeyIsUserKey; 29761: static const std::string kIndexValueIsDeltaEncoded; 29761: static const std::string kFilterSize; 29761: static const std::string kRawKeySize; 29761: static const std::string kRawValueSize; 29761: static const std::string kNumDataBlocks; 29761: static const std::string kNumEntries; 29761: static const std::string kNumFilterEntries; 29761: static const std::string kDeletedKeys; 29761: static const std::string kMergeOperands; 29761: static const std::string kNumRangeDeletions; 29761: static const std::string kFormatVersion; 29761: static const std::string kFixedKeyLen; 29761: static const std::string kFilterPolicy; 29761: static const std::string kColumnFamilyName; 29761: static const std::string kColumnFamilyId; 29761: static const std::string kComparator; 29761: static const std::string kMergeOperator; 29761: static const std::string kPrefixExtractorName; 29761: static const std::string kPropertyCollectors; 29761: static const std::string kCompression; 29761: static const std::string kCompressionOptions; 29761: static const std::string kCreationTime; 29761: static const std::string kOldestKeyTime; 29761: static const std::string kNewestKeyTime; 29761: static const std::string kFileCreationTime; 29761: static const std::string kSlowCompressionEstimatedDataSize; 29761: static const std::string kFastCompressionEstimatedDataSize; 29761: static const std::string kSequenceNumberTimeMapping; 29761: static const std::string kTailStartOffset; 29761: static const std::string kUserDefinedTimestampsPersisted; 29761: static const std::string kKeyLargestSeqno; 29761: }; 29761: # 94 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: class TablePropertiesCollector { 29761: public: 29761: virtual ~TablePropertiesCollector() {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Add(const Slice& , const Slice& ) { 29761: return Status::InvalidArgument( 29761: "TablePropertiesCollector::Add() deprecated."); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status AddUserKey(const Slice& key, const Slice& value, 29761: EntryType , SequenceNumber , 29761: uint64_t ) { 29761: 29761: return Add(key, value); 29761: } 29761: 29761: 29761: virtual void BlockAdd(uint64_t , 29761: uint64_t , 29761: uint64_t ) { 29761: 29761: return; 29761: } 29761: # 135 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: virtual Status Finish(UserCollectedProperties* properties) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual UserCollectedProperties GetReadableProperties() const = 0; 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: virtual bool NeedCompact() const { return false; } 29761: 29761: 29761: virtual InternalTblPropColl* AsInternal() { return nullptr; } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class TablePropertiesCollectorFactory : public Customizable { 29761: public: 29761: struct Context { 29761: uint32_t column_family_id; 29761: 29761: 29761: int level_at_creation = kUnknownLevelAtCreation; 29761: int num_levels = kUnknownNumLevels; 29761: 29761: 29761: 29761: 29761: SequenceNumber last_level_inclusive_max_seqno_threshold; 29761: static const uint32_t kUnknownColumnFamily; 29761: static const int kUnknownLevelAtCreation = -1; 29761: static const int kUnknownNumLevels = -1; 29761: 29761: Context() {} 29761: 29761: Context(uint32_t _column_family_id, int _level_at_creation, int _num_levels, 29761: SequenceNumber _last_level_inclusive_max_seqno_threshold) 29761: : column_family_id(_column_family_id), 29761: level_at_creation(_level_at_creation), 29761: num_levels(_num_levels), 29761: last_level_inclusive_max_seqno_threshold( 29761: _last_level_inclusive_max_seqno_threshold) {} 29761: }; 29761: 29761: ~TablePropertiesCollectorFactory() override {} 29761: static const char* Type() { return "TablePropertiesCollectorFactory"; } 29761: static Status CreateFromString( 29761: const ConfigOptions& options, const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual TablePropertiesCollector* CreateTablePropertiesCollector( 29761: TablePropertiesCollectorFactory::Context context) = 0; 29761: 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: 29761: 29761: virtual std::string ToString() const { return Name(); } 29761: }; 29761: 29761: 29761: 29761: struct TableProperties { 29761: public: 29761: 29761: 29761: uint64_t orig_file_number = 0; 29761: 29761: uint64_t data_size = 0; 29761: 29761: uint64_t index_size = 0; 29761: 29761: uint64_t index_partitions = 0; 29761: 29761: uint64_t top_level_index_size = 0; 29761: 29761: 29761: uint64_t index_key_is_user_key = 0; 29761: 29761: uint64_t index_value_is_delta_encoded = 0; 29761: 29761: uint64_t filter_size = 0; 29761: 29761: uint64_t raw_key_size = 0; 29761: 29761: uint64_t raw_value_size = 0; 29761: 29761: uint64_t num_data_blocks = 0; 29761: 29761: uint64_t num_entries = 0; 29761: 29761: uint64_t num_filter_entries = 0; 29761: 29761: uint64_t num_deletions = 0; 29761: 29761: uint64_t num_merge_operands = 0; 29761: 29761: uint64_t num_range_deletions = 0; 29761: 29761: uint64_t format_version = 0; 29761: 29761: uint64_t fixed_key_len = 0; 29761: 29761: 29761: uint64_t column_family_id = rocksdb:: 29761: TablePropertiesCollectorFactory::Context::kUnknownColumnFamily; 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: uint64_t creation_time = 0; 29761: 29761: 29761: uint64_t oldest_key_time = 0; 29761: 29761: uint64_t newest_key_time = 0; 29761: 29761: uint64_t file_creation_time = 0; 29761: 29761: 29761: 29761: uint64_t slow_compression_estimated_data_size = 0; 29761: 29761: 29761: 29761: uint64_t fast_compression_estimated_data_size = 0; 29761: 29761: 29761: 29761: uint64_t external_sst_file_global_seqno_offset = 0; 29761: 29761: 29761: 29761: uint64_t tail_start_offset = 0; 29761: 29761: 29761: 29761: 29761: uint64_t user_defined_timestamps_persisted = 1; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t key_largest_seqno = 29761: # 304 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 3 4 29761: (18446744073709551615ULL) 29761: # 304 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: ; 29761: 29761: 29761: 29761: 29761: std::string db_id; 29761: 29761: 29761: 29761: 29761: 29761: std::string db_session_id; 29761: 29761: 29761: 29761: 29761: 29761: std::string db_host_id; 29761: 29761: 29761: 29761: std::string column_family_name; 29761: 29761: 29761: 29761: std::string filter_policy_name; 29761: 29761: 29761: std::string comparator_name; 29761: 29761: 29761: 29761: std::string merge_operator_name; 29761: 29761: 29761: 29761: std::string prefix_extractor_name; 29761: 29761: 29761: 29761: 29761: std::string property_collectors_names; 29761: 29761: 29761: std::string compression_name; 29761: 29761: 29761: std::string compression_options; 29761: 29761: 29761: std::string seqno_to_time_mapping; 29761: 29761: 29761: UserCollectedProperties user_collected_properties; 29761: UserCollectedProperties readable_properties; 29761: 29761: 29761: 29761: std::string ToString(const std::string& prop_delim = "; ", 29761: const std::string& kv_delim = "=") const; 29761: 29761: 29761: 29761: void Add(const TableProperties& tp); 29761: 29761: 29761: 29761: 29761: std::map GetAggregatablePropertiesAsMap() const; 29761: 29761: 29761: 29761: std::size_t ApproximateMemoryUsage() const; 29761: 29761: 29761: Status Serialize(const ConfigOptions& opts, std::string* output) const; 29761: static Status Parse(const ConfigOptions& opts, const std::string& serialized, 29761: TableProperties* table_properties); 29761: bool AreEqual(const ConfigOptions& opts, 29761: const TableProperties* other_table_properties, 29761: std::string* mismatch) const; 29761: }; 29761: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: uint64_t GetDeletedKeys(const UserCollectedProperties& props); 29761: uint64_t GetMergeOperands(const UserCollectedProperties& props, 29761: bool* property_present); 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: using TablePropertiesCollection = 29761: std::unordered_map>; 29761: 29761: class DB; 29761: class ColumnFamilyHandle; 29761: class Status; 29761: struct CompactionJobStats; 29761: 29761: struct FileCreationBriefInfo { 29761: FileCreationBriefInfo() = default; 29761: FileCreationBriefInfo(const std::string& _db_name, 29761: const std::string& _cf_name, 29761: const std::string& _file_path, int _job_id) 29761: : db_name(_db_name), 29761: cf_name(_cf_name), 29761: file_path(_file_path), 29761: job_id(_job_id) {} 29761: 29761: std::string db_name; 29761: 29761: std::string cf_name; 29761: 29761: std::string file_path; 29761: 29761: 29761: int job_id = 0; 29761: }; 29761: 29761: struct TableFileCreationBriefInfo : public FileCreationBriefInfo { 29761: 29761: TableFileCreationReason reason; 29761: }; 29761: 29761: struct TableFileCreationInfo : public TableFileCreationBriefInfo { 29761: TableFileCreationInfo() = default; 29761: explicit TableFileCreationInfo(TableProperties&& prop) 29761: : table_properties(prop) {} 29761: 29761: uint64_t file_size; 29761: 29761: TableProperties table_properties; 29761: 29761: Status status; 29761: 29761: std::string file_checksum; 29761: 29761: std::string file_checksum_func_name; 29761: }; 29761: 29761: struct BlobFileCreationBriefInfo : public FileCreationBriefInfo { 29761: BlobFileCreationBriefInfo(const std::string& _db_name, 29761: const std::string& _cf_name, 29761: const std::string& _file_path, int _job_id, 29761: BlobFileCreationReason _reason) 29761: : FileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id), 29761: reason(_reason) {} 29761: 29761: BlobFileCreationReason reason; 29761: }; 29761: 29761: struct BlobFileCreationInfo : public BlobFileCreationBriefInfo { 29761: BlobFileCreationInfo(const std::string& _db_name, const std::string& _cf_name, 29761: const std::string& _file_path, int _job_id, 29761: BlobFileCreationReason _reason, 29761: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 29761: Status _status, const std::string& _file_checksum, 29761: const std::string& _file_checksum_func_name) 29761: : BlobFileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id, 29761: _reason), 29761: total_blob_count(_total_blob_count), 29761: total_blob_bytes(_total_blob_bytes), 29761: status(_status), 29761: file_checksum(_file_checksum), 29761: file_checksum_func_name(_file_checksum_func_name) {} 29761: 29761: 29761: uint64_t total_blob_count; 29761: 29761: uint64_t total_blob_bytes; 29761: 29761: Status status; 29761: 29761: std::string file_checksum; 29761: 29761: std::string file_checksum_func_name; 29761: }; 29761: 29761: enum class CompactionReason : int { 29761: kUnknown = 0, 29761: 29761: kLevelL0FilesNum, 29761: 29761: kLevelMaxLevelSize, 29761: 29761: kUniversalSizeAmplification, 29761: 29761: kUniversalSizeRatio, 29761: 29761: kUniversalSortedRunNum, 29761: 29761: kFIFOMaxSize, 29761: 29761: kFIFOReduceNumFiles, 29761: 29761: kFIFOTtl, 29761: 29761: kManualCompaction, 29761: 29761: kFilesMarkedForCompaction, 29761: 29761: 29761: kBottommostFiles, 29761: 29761: kTtl, 29761: 29761: 29761: kFlush, 29761: 29761: 29761: 29761: 29761: kExternalSstIngestion, 29761: 29761: kPeriodicCompaction, 29761: 29761: kChangeTemperature, 29761: 29761: kForcedBlobGC, 29761: 29761: 29761: kRoundRobinTtl, 29761: 29761: 29761: kRefitLevel, 29761: 29761: kNumOfReasons, 29761: }; 29761: 29761: const char* GetCompactionReasonString(CompactionReason compaction_reason); 29761: 29761: 29761: enum class FlushReason : int { 29761: kOthers = 0x00, 29761: kGetLiveFiles = 0x01, 29761: kShutDown = 0x02, 29761: kExternalFileIngestion = 0x03, 29761: kManualCompaction = 0x04, 29761: kWriteBufferManager = 0x05, 29761: kWriteBufferFull = 0x06, 29761: kTest = 0x07, 29761: kDeleteFiles = 0x08, 29761: kAutoCompaction = 0x09, 29761: kManualFlush = 0x0a, 29761: kErrorRecovery = 0xb, 29761: 29761: 29761: kErrorRecoveryRetryFlush = 0xc, 29761: kWalFull = 0xd, 29761: 29761: kCatchUpAfterErrorRecovery = 0xe, 29761: }; 29761: 29761: const char* GetFlushReasonString(FlushReason flush_reason); 29761: 29761: 29761: 29761: 29761: 29761: enum class BackgroundErrorReason { 29761: kFlush, 29761: kCompaction, 29761: kWriteCallback, 29761: kMemTable, 29761: kManifestWrite, 29761: kFlushNoWAL, 29761: kManifestWriteNoWAL, 29761: }; 29761: 29761: struct WriteStallInfo { 29761: 29761: std::string cf_name; 29761: 29761: struct { 29761: WriteStallCondition cur; 29761: WriteStallCondition prev; 29761: } condition; 29761: }; 29761: 29761: 29761: struct FileDeletionInfo { 29761: FileDeletionInfo() = default; 29761: 29761: FileDeletionInfo(const std::string& _db_name, const std::string& _file_path, 29761: int _job_id, Status _status) 29761: : db_name(_db_name), 29761: file_path(_file_path), 29761: job_id(_job_id), 29761: status(_status) {} 29761: 29761: std::string db_name; 29761: 29761: std::string file_path; 29761: 29761: int job_id = 0; 29761: 29761: Status status; 29761: }; 29761: 29761: struct TableFileDeletionInfo : public FileDeletionInfo {}; 29761: 29761: struct BlobFileDeletionInfo : public FileDeletionInfo { 29761: BlobFileDeletionInfo(const std::string& _db_name, 29761: const std::string& _file_path, int _job_id, 29761: Status _status) 29761: : FileDeletionInfo(_db_name, _file_path, _job_id, _status) {} 29761: }; 29761: 29761: enum class FileOperationType { 29761: kRead, 29761: kWrite, 29761: kTruncate, 29761: kClose, 29761: kFlush, 29761: kSync, 29761: kFsync, 29761: kRangeSync, 29761: kAppend, 29761: kPositionedAppend, 29761: kOpen, 29761: kVerify 29761: }; 29761: 29761: struct FileOperationInfo { 29761: using Duration = std::chrono::nanoseconds; 29761: using SteadyTimePoint = 29761: std::chrono::time_point; 29761: using SystemTimePoint = 29761: std::chrono::time_point; 29761: using StartTimePoint = std::pair; 29761: using FinishTimePoint = SteadyTimePoint; 29761: 29761: FileOperationType type; 29761: const std::string& path; 29761: 29761: 29761: Temperature temperature; 29761: uint64_t offset; 29761: size_t length; 29761: const Duration duration; 29761: const SystemTimePoint& start_ts; 29761: Status status; 29761: 29761: FileOperationInfo(const FileOperationType _type, const std::string& _path, 29761: const StartTimePoint& _start_ts, 29761: const FinishTimePoint& _finish_ts, const Status& _status, 29761: const Temperature _temperature = Temperature::kUnknown) 29761: : type(_type), 29761: path(_path), 29761: temperature(_temperature), 29761: duration(std::chrono::duration_cast( 29761: _finish_ts - _start_ts.second)), 29761: start_ts(_start_ts.first), 29761: status(_status) {} 29761: static StartTimePoint StartNow() { 29761: return std::make_pair( 29761: std::chrono::system_clock::now(), std::chrono::steady_clock::now()); 29761: } 29761: static FinishTimePoint FinishNow() { 29761: return std::chrono::steady_clock::now(); 29761: } 29761: }; 29761: 29761: struct BlobFileInfo { 29761: BlobFileInfo(const std::string& _blob_file_path, 29761: const uint64_t _blob_file_number) 29761: : blob_file_path(_blob_file_path), blob_file_number(_blob_file_number) {} 29761: 29761: std::string blob_file_path; 29761: uint64_t blob_file_number; 29761: }; 29761: 29761: struct BlobFileAdditionInfo : public BlobFileInfo { 29761: BlobFileAdditionInfo(const std::string& _blob_file_path, 29761: const uint64_t _blob_file_number, 29761: const uint64_t _total_blob_count, 29761: const uint64_t _total_blob_bytes) 29761: : BlobFileInfo(_blob_file_path, _blob_file_number), 29761: total_blob_count(_total_blob_count), 29761: total_blob_bytes(_total_blob_bytes) {} 29761: uint64_t total_blob_count; 29761: uint64_t total_blob_bytes; 29761: }; 29761: 29761: struct BlobFileGarbageInfo : public BlobFileInfo { 29761: BlobFileGarbageInfo(const std::string& _blob_file_path, 29761: const uint64_t _blob_file_number, 29761: const uint64_t _garbage_blob_count, 29761: const uint64_t _garbage_blob_bytes) 29761: : BlobFileInfo(_blob_file_path, _blob_file_number), 29761: garbage_blob_count(_garbage_blob_count), 29761: garbage_blob_bytes(_garbage_blob_bytes) {} 29761: uint64_t garbage_blob_count; 29761: uint64_t garbage_blob_bytes; 29761: }; 29761: 29761: struct ManualFlushInfo { 29761: 29761: uint32_t cf_id; 29761: 29761: std::string cf_name; 29761: 29761: FlushReason flush_reason; 29761: }; 29761: 29761: struct FlushJobInfo { 29761: 29761: uint32_t cf_id; 29761: 29761: std::string cf_name; 29761: 29761: std::string file_path; 29761: 29761: uint64_t file_number; 29761: 29761: uint64_t oldest_blob_file_number; 29761: 29761: uint64_t thread_id; 29761: 29761: int job_id; 29761: 29761: 29761: 29761: 29761: bool triggered_writes_slowdown; 29761: 29761: 29761: 29761: 29761: bool triggered_writes_stop; 29761: 29761: SequenceNumber smallest_seqno; 29761: 29761: SequenceNumber largest_seqno; 29761: 29761: TableProperties table_properties; 29761: 29761: FlushReason flush_reason; 29761: 29761: 29761: CompressionType blob_compression_type; 29761: 29761: 29761: std::vector blob_file_addition_infos; 29761: }; 29761: 29761: struct CompactionFileInfo { 29761: 29761: int level; 29761: 29761: 29761: uint64_t file_number; 29761: 29761: 29761: uint64_t oldest_blob_file_number; 29761: }; 29761: 29761: struct SubcompactionJobInfo { 29761: ~SubcompactionJobInfo() { status.PermitUncheckedError(); } 29761: 29761: uint32_t cf_id; 29761: 29761: std::string cf_name; 29761: 29761: Status status; 29761: 29761: uint64_t thread_id; 29761: 29761: int job_id; 29761: 29761: 29761: 29761: 29761: 29761: int subcompaction_job_id; 29761: 29761: int base_input_level; 29761: 29761: int output_level; 29761: 29761: 29761: CompactionReason compaction_reason; 29761: 29761: 29761: CompressionType compression; 29761: 29761: 29761: CompactionJobStats stats; 29761: 29761: 29761: CompressionType blob_compression_type; 29761: }; 29761: 29761: struct CompactionJobInfo { 29761: ~CompactionJobInfo() { status.PermitUncheckedError(); } 29761: 29761: uint32_t cf_id; 29761: 29761: std::string cf_name; 29761: 29761: Status status; 29761: 29761: uint64_t thread_id; 29761: 29761: int job_id; 29761: 29761: 29761: int base_input_level; 29761: 29761: int output_level; 29761: # 453 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: std::vector input_files; 29761: 29761: 29761: std::vector input_file_infos; 29761: 29761: 29761: std::vector output_files; 29761: 29761: 29761: std::vector output_file_infos; 29761: 29761: 29761: 29761: TablePropertiesCollection table_properties; 29761: 29761: 29761: CompactionReason compaction_reason; 29761: 29761: 29761: CompressionType compression; 29761: 29761: 29761: CompactionJobStats stats; 29761: 29761: 29761: CompressionType blob_compression_type; 29761: 29761: 29761: 29761: std::vector blob_file_addition_infos; 29761: 29761: 29761: 29761: std::vector blob_file_garbage_infos; 29761: }; 29761: 29761: struct MemTableInfo { 29761: 29761: std::string cf_name; 29761: 29761: 29761: SequenceNumber first_seqno; 29761: 29761: 29761: 29761: 29761: SequenceNumber earliest_seqno; 29761: 29761: uint64_t num_entries; 29761: 29761: uint64_t num_deletes; 29761: 29761: 29761: 29761: std::string newest_udt; 29761: }; 29761: 29761: struct ExternalFileIngestionInfo { 29761: 29761: std::string cf_name; 29761: 29761: std::string external_file_path; 29761: 29761: std::string internal_file_path; 29761: 29761: SequenceNumber global_seqno; 29761: 29761: TableProperties table_properties; 29761: }; 29761: 29761: 29761: struct BackgroundErrorRecoveryInfo { 29761: 29761: Status old_bg_error; 29761: 29761: 29761: 29761: Status new_bg_error; 29761: }; 29761: 29761: struct IOErrorInfo { 29761: IOErrorInfo(const IOStatus& _io_status, FileOperationType _operation, 29761: const std::string& _file_path, size_t _length, uint64_t _offset) 29761: : io_status(_io_status), 29761: operation(_operation), 29761: file_path(_file_path), 29761: length(_length), 29761: offset(_offset) {} 29761: 29761: IOStatus io_status; 29761: FileOperationType operation; 29761: std::string file_path; 29761: size_t length; 29761: uint64_t offset; 29761: }; 29761: # 580 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: class EventListener : public Customizable { 29761: public: 29761: static const char* Type() { return "EventListener"; } 29761: static Status CreateFromString(const ConfigOptions& options, 29761: const std::string& id, 29761: std::shared_ptr* result); 29761: const char* Name() const override { 29761: 29761: 29761: return ""; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnFlushCompleted(DB* , 29761: const FlushJobInfo& ) {} 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnFlushBegin(DB* , 29761: const FlushJobInfo& ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnManualFlushScheduled( 29761: DB* , const std::vector& ) {} 29761: # 630 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnTableFileDeleted(const TableFileDeletionInfo& ) {} 29761: # 639 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnCompactionBegin(DB* , const CompactionJobInfo& ) {} 29761: # 654 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnCompactionCompleted(DB* , 29761: const CompactionJobInfo& ) {} 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnSubcompactionBegin(const SubcompactionJobInfo& ) {} 29761: # 692 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnSubcompactionCompleted(const SubcompactionJobInfo& ) {} 29761: # 709 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnTableFileCreated(const TableFileCreationInfo& ) {} 29761: # 718 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnTableFileCreationStarted( 29761: const TableFileCreationBriefInfo& ) {} 29761: # 731 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnMemTableSealed(const MemTableInfo& ) {} 29761: # 741 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnColumnFamilyHandleDeletionStarted( 29761: ColumnFamilyHandle* ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnExternalFileIngested( 29761: DB* , const ExternalFileIngestionInfo& ) {} 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnBackgroundError(BackgroundErrorReason , 29761: Status* ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnStallConditionsChanged(const WriteStallInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileReadFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileWriteFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileFlushFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileSyncFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileRangeSyncFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileTruncateFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileCloseFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual bool ShouldBeNotifiedOnFileIO() { return false; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnErrorRecoveryBegin(BackgroundErrorReason , 29761: Status , 29761: bool* ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnErrorRecoveryCompleted(Status old_bg_error) { 29761: old_bg_error.PermitUncheckedError(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnErrorRecoveryEnd(const BackgroundErrorRecoveryInfo& ) { 29761: } 29761: # 840 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnBlobFileCreationStarted( 29761: const BlobFileCreationBriefInfo& ) {} 29761: # 851 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnBlobFileCreated(const BlobFileCreationInfo& ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnBlobFileDeleted(const BlobFileDeletionInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnIOError(const IOErrorInfo& ) {} 29761: 29761: ~EventListener() override {} 29761: }; 29761: 29761: 29761: } 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_partitioner.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_partitioner.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: 29761: enum PartitionerResult : char { 29761: 29761: kNotRequired = 0x0, 29761: 29761: kRequired = 0x1 29761: 29761: }; 29761: 29761: struct PartitionerRequest { 29761: PartitionerRequest(const Slice& prev_user_key_, 29761: const Slice& current_user_key_, 29761: uint64_t current_output_file_size_) 29761: : prev_user_key(&prev_user_key_), 29761: current_user_key(¤t_user_key_), 29761: current_output_file_size(current_output_file_size_) {} 29761: const Slice* prev_user_key; 29761: const Slice* current_user_key; 29761: uint64_t current_output_file_size; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class SstPartitioner { 29761: public: 29761: virtual ~SstPartitioner() {} 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual PartitionerResult ShouldPartition( 29761: const PartitionerRequest& request) = 0; 29761: 29761: 29761: 29761: virtual bool CanDoTrivialMove(const Slice& smallest_user_key, 29761: const Slice& largest_user_key) = 0; 29761: 29761: 29761: struct Context { 29761: 29761: bool is_full_compaction; 29761: 29761: 29761: bool is_manual_compaction; 29761: 29761: int output_level; 29761: 29761: Slice smallest_user_key; 29761: 29761: Slice largest_user_key; 29761: }; 29761: }; 29761: 29761: 29761: 29761: 29761: class SstPartitionerFactory : public Customizable { 29761: public: 29761: ~SstPartitionerFactory() override {} 29761: static const char* Type() { return "SstPartitionerFactory"; } 29761: static Status CreateFromString( 29761: const ConfigOptions& options, const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: virtual std::unique_ptr CreatePartitioner( 29761: const SstPartitioner::Context& context) const = 0; 29761: 29761: 29761: const char* Name() const override = 0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class SstPartitionerFixedPrefix : public SstPartitioner { 29761: public: 29761: explicit SstPartitionerFixedPrefix(size_t len) : len_(len) {} 29761: 29761: ~SstPartitionerFixedPrefix() override {} 29761: 29761: const char* Name() const override { return "SstPartitionerFixedPrefix"; } 29761: 29761: PartitionerResult ShouldPartition(const PartitionerRequest& request) override; 29761: 29761: bool CanDoTrivialMove(const Slice& smallest_user_key, 29761: const Slice& largest_user_key) override; 29761: 29761: private: 29761: size_t len_; 29761: }; 29761: 29761: 29761: 29761: 29761: class SstPartitionerFixedPrefixFactory : public SstPartitionerFactory { 29761: public: 29761: explicit SstPartitionerFixedPrefixFactory(size_t len); 29761: 29761: ~SstPartitionerFixedPrefixFactory() override {} 29761: 29761: static const char* kClassName() { return "SstPartitionerFixedPrefixFactory"; } 29761: const char* Name() const override { return kClassName(); } 29761: 29761: std::unique_ptr CreatePartitioner( 29761: const SstPartitioner::Context& ) const override; 29761: 29761: private: 29761: size_t len_; 29761: }; 29761: 29761: std::shared_ptr NewSstPartitionerFixedPrefixFactory( 29761: size_t prefix_len); 29761: 29761: } 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/version.h" 1 29761: 29761: 29761: 29761: 29761: 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/version.h" 29761: namespace rocksdb { 29761: 29761: 29761: const std::unordered_map& GetRocksBuildProperties(); 29761: 29761: 29761: 29761: 29761: std::string GetRocksVersionAsString(bool with_patch = true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::string GetRocksBuildInfoAsString(const std::string& program, 29761: bool verbose = false); 29761: } 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 1 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/condition_variable" 1 3 29761: # 32 "/usr/include/c++/14/condition_variable" 3 29761: 29761: # 33 "/usr/include/c++/14/condition_variable" 3 29761: # 54 "/usr/include/c++/14/condition_variable" 3 29761: 29761: # 54 "/usr/include/c++/14/condition_variable" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 67 "/usr/include/c++/14/condition_variable" 3 29761: enum class cv_status { no_timeout, timeout }; 29761: 29761: 29761: class condition_variable 29761: { 29761: using steady_clock = chrono::steady_clock; 29761: using system_clock = chrono::system_clock; 29761: 29761: using __clock_t = steady_clock; 29761: 29761: 29761: 29761: 29761: __condvar _M_cond; 29761: 29761: public: 29761: typedef __gthread_cond_t* native_handle_type; 29761: 29761: condition_variable() noexcept; 29761: ~condition_variable() noexcept; 29761: 29761: condition_variable(const condition_variable&) = delete; 29761: condition_variable& operator=(const condition_variable&) = delete; 29761: 29761: void 29761: notify_one() noexcept; 29761: 29761: void 29761: notify_all() noexcept; 29761: 29761: void 29761: wait(unique_lock& __lock); 29761: 29761: template 29761: void 29761: wait(unique_lock& __lock, _Predicate __p) 29761: { 29761: while (!__p()) 29761: wait(__lock); 29761: } 29761: 29761: 29761: template 29761: cv_status 29761: wait_until(unique_lock& __lock, 29761: const chrono::time_point& __atime) 29761: { return __wait_until_impl(__lock, __atime); } 29761: 29761: 29761: template 29761: cv_status 29761: wait_until(unique_lock& __lock, 29761: const chrono::time_point& __atime) 29761: { return __wait_until_impl(__lock, __atime); } 29761: 29761: template 29761: cv_status 29761: wait_until(unique_lock& __lock, 29761: const chrono::time_point<_Clock, _Duration>& __atime) 29761: { 29761: 29761: 29761: 29761: using __s_dur = typename __clock_t::duration; 29761: const typename _Clock::time_point __c_entry = _Clock::now(); 29761: const __clock_t::time_point __s_entry = __clock_t::now(); 29761: const auto __delta = __atime - __c_entry; 29761: const auto __s_atime = __s_entry + 29761: chrono::__detail::ceil<__s_dur>(__delta); 29761: 29761: if (__wait_until_impl(__lock, __s_atime) == cv_status::no_timeout) 29761: return cv_status::no_timeout; 29761: 29761: 29761: 29761: if (_Clock::now() < __atime) 29761: return cv_status::no_timeout; 29761: return cv_status::timeout; 29761: } 29761: 29761: template 29761: bool 29761: wait_until(unique_lock& __lock, 29761: const chrono::time_point<_Clock, _Duration>& __atime, 29761: _Predicate __p) 29761: { 29761: while (!__p()) 29761: if (wait_until(__lock, __atime) == cv_status::timeout) 29761: return __p(); 29761: return true; 29761: } 29761: 29761: template 29761: cv_status 29761: wait_for(unique_lock& __lock, 29761: const chrono::duration<_Rep, _Period>& __rtime) 29761: { 29761: using __dur = typename steady_clock::duration; 29761: return wait_until(__lock, 29761: steady_clock::now() + 29761: chrono::__detail::ceil<__dur>(__rtime)); 29761: } 29761: 29761: template 29761: bool 29761: wait_for(unique_lock& __lock, 29761: const chrono::duration<_Rep, _Period>& __rtime, 29761: _Predicate __p) 29761: { 29761: using __dur = typename steady_clock::duration; 29761: return wait_until(__lock, 29761: steady_clock::now() + 29761: chrono::__detail::ceil<__dur>(__rtime), 29761: std::move(__p)); 29761: } 29761: 29761: native_handle_type 29761: native_handle() 29761: { return _M_cond.native_handle(); } 29761: 29761: private: 29761: 29761: template 29761: cv_status 29761: __wait_until_impl(unique_lock& __lock, 29761: const chrono::time_point& __atime) 29761: { 29761: auto __s = chrono::time_point_cast(__atime); 29761: auto __ns = chrono::duration_cast(__atime - __s); 29761: 29761: __gthread_time_t __ts = 29761: { 29761: static_cast(__s.time_since_epoch().count()), 29761: static_cast(__ns.count()) 29761: }; 29761: 29761: _M_cond.wait_until(*__lock.mutex(), 1, __ts); 29761: 29761: return (steady_clock::now() < __atime 29761: ? cv_status::no_timeout : cv_status::timeout); 29761: } 29761: 29761: 29761: template 29761: cv_status 29761: __wait_until_impl(unique_lock& __lock, 29761: const chrono::time_point& __atime) 29761: { 29761: auto __s = chrono::time_point_cast(__atime); 29761: auto __ns = chrono::duration_cast(__atime - __s); 29761: 29761: __gthread_time_t __ts = 29761: { 29761: static_cast(__s.time_since_epoch().count()), 29761: static_cast(__ns.count()) 29761: }; 29761: 29761: _M_cond.wait_until(*__lock.mutex(), __ts); 29761: 29761: return (system_clock::now() < __atime 29761: ? cv_status::no_timeout : cv_status::timeout); 29761: } 29761: }; 29761: 29761: void 29761: notify_all_at_thread_exit(condition_variable&, unique_lock); 29761: 29761: struct __at_thread_exit_elt 29761: { 29761: __at_thread_exit_elt* _M_next; 29761: void (*_M_cb)(void*); 29761: }; 29761: 29761: inline namespace _V2 { 29761: 29761: 29761: 29761: class condition_variable_any 29761: { 29761: 29761: using __clock_t = chrono::steady_clock; 29761: 29761: 29761: 29761: condition_variable _M_cond; 29761: shared_ptr _M_mutex; 29761: 29761: 29761: template 29761: struct _Unlock 29761: { 29761: explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: ~_Unlock() noexcept(false) 29761: { 29761: if (uncaught_exception()) 29761: { 29761: try 29761: { _M_lock.lock(); } 29761: catch(const __cxxabiv1::__forced_unwind&) 29761: { throw; } 29761: catch(...) 29761: { } 29761: } 29761: else 29761: _M_lock.lock(); 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: _Unlock(const _Unlock&) = delete; 29761: _Unlock& operator=(const _Unlock&) = delete; 29761: 29761: _Lock& _M_lock; 29761: }; 29761: 29761: public: 29761: condition_variable_any() : _M_mutex(std::make_shared()) { } 29761: ~condition_variable_any() = default; 29761: 29761: condition_variable_any(const condition_variable_any&) = delete; 29761: condition_variable_any& operator=(const condition_variable_any&) = delete; 29761: 29761: void 29761: notify_one() noexcept 29761: { 29761: lock_guard __lock(*_M_mutex); 29761: _M_cond.notify_one(); 29761: } 29761: 29761: void 29761: notify_all() noexcept 29761: { 29761: lock_guard __lock(*_M_mutex); 29761: _M_cond.notify_all(); 29761: } 29761: 29761: template 29761: void 29761: wait(_Lock& __lock) 29761: { 29761: shared_ptr __mutex = _M_mutex; 29761: unique_lock __my_lock(*__mutex); 29761: _Unlock<_Lock> __unlock(__lock); 29761: 29761: 29761: unique_lock __my_lock2(std::move(__my_lock)); 29761: _M_cond.wait(__my_lock2); 29761: } 29761: 29761: 29761: template 29761: void 29761: wait(_Lock& __lock, _Predicate __p) 29761: { 29761: while (!__p()) 29761: wait(__lock); 29761: } 29761: 29761: template 29761: cv_status 29761: wait_until(_Lock& __lock, 29761: const chrono::time_point<_Clock, _Duration>& __atime) 29761: { 29761: shared_ptr __mutex = _M_mutex; 29761: unique_lock __my_lock(*__mutex); 29761: _Unlock<_Lock> __unlock(__lock); 29761: 29761: 29761: unique_lock __my_lock2(std::move(__my_lock)); 29761: return _M_cond.wait_until(__my_lock2, __atime); 29761: } 29761: 29761: template 29761: bool 29761: wait_until(_Lock& __lock, 29761: const chrono::time_point<_Clock, _Duration>& __atime, 29761: _Predicate __p) 29761: { 29761: while (!__p()) 29761: if (wait_until(__lock, __atime) == cv_status::timeout) 29761: return __p(); 29761: return true; 29761: } 29761: 29761: template 29761: cv_status 29761: wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) 29761: { return wait_until(__lock, __clock_t::now() + __rtime); } 29761: 29761: template 29761: bool 29761: wait_for(_Lock& __lock, 29761: const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) 29761: { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } 29761: # 443 "/usr/include/c++/14/condition_variable" 3 29761: }; 29761: 29761: } 29761: 29761: 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 2 29761: 29761: # 1 "/usr/include/c++/14/list" 1 3 29761: # 58 "/usr/include/c++/14/list" 3 29761: 29761: # 59 "/usr/include/c++/14/list" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_list.h" 1 3 29761: # 68 "/usr/include/c++/14/bits/stl_list.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct _List_node_base 29761: { 29761: _List_node_base* _M_next; 29761: _List_node_base* _M_prev; 29761: 29761: static void 29761: swap(_List_node_base& __x, _List_node_base& __y) noexcept; 29761: 29761: void 29761: _M_transfer(_List_node_base* const __first, 29761: _List_node_base* const __last) noexcept; 29761: 29761: void 29761: _M_reverse() noexcept; 29761: 29761: void 29761: _M_hook(_List_node_base* const __position) noexcept; 29761: 29761: void 29761: _M_unhook() noexcept; 29761: }; 29761: 29761: 29761: struct _List_node_header : public _List_node_base 29761: { 29761: 29761: std::size_t _M_size; 29761: 29761: 29761: _List_node_header() noexcept 29761: { _M_init(); } 29761: 29761: 29761: _List_node_header(_List_node_header&& __x) noexcept 29761: : _List_node_base{ __x._M_next, __x._M_prev } 29761: 29761: , _M_size(__x._M_size) 29761: 29761: { 29761: if (__x._M_base()->_M_next == __x._M_base()) 29761: this->_M_next = this->_M_prev = this; 29761: else 29761: { 29761: this->_M_next->_M_prev = this->_M_prev->_M_next = this->_M_base(); 29761: __x._M_init(); 29761: } 29761: } 29761: 29761: void 29761: _M_move_nodes(_List_node_header&& __x) 29761: { 29761: _List_node_base* const __xnode = __x._M_base(); 29761: if (__xnode->_M_next == __xnode) 29761: _M_init(); 29761: else 29761: { 29761: _List_node_base* const __node = this->_M_base(); 29761: __node->_M_next = __xnode->_M_next; 29761: __node->_M_prev = __xnode->_M_prev; 29761: __node->_M_next->_M_prev = __node->_M_prev->_M_next = __node; 29761: 29761: _M_size = __x._M_size; 29761: 29761: __x._M_init(); 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_init() noexcept 29761: { 29761: this->_M_next = this->_M_prev = this; 29761: 29761: this->_M_size = 0; 29761: 29761: } 29761: 29761: private: 29761: _List_node_base* _M_base() { return this; } 29761: }; 29761: 29761: 29761: struct _Scratch_list : _List_node_base 29761: { 29761: _Scratch_list() { _M_next = _M_prev = this; } 29761: 29761: bool empty() const { return _M_next == this; } 29761: 29761: void swap(_List_node_base& __l) { _List_node_base::swap(*this, __l); } 29761: 29761: template 29761: struct _Ptr_cmp 29761: { 29761: _Cmp _M_cmp; 29761: 29761: bool 29761: operator()(__detail::_List_node_base* __lhs, 29761: __detail::_List_node_base* __rhs) 29761: { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); } 29761: }; 29761: 29761: template 29761: struct _Ptr_cmp<_Iter, void> 29761: { 29761: bool 29761: operator()(__detail::_List_node_base* __lhs, 29761: __detail::_List_node_base* __rhs) const 29761: { return *_Iter(__lhs) < *_Iter(__rhs); } 29761: }; 29761: 29761: 29761: template 29761: void 29761: merge(_List_node_base& __x, _Cmp __comp) 29761: { 29761: _List_node_base* __first1 = _M_next; 29761: _List_node_base* const __last1 = this; 29761: _List_node_base* __first2 = __x._M_next; 29761: _List_node_base* const __last2 = std::__addressof(__x); 29761: 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first2, __first1)) 29761: { 29761: _List_node_base* __next = __first2->_M_next; 29761: __first1->_M_transfer(__first2, __next); 29761: __first2 = __next; 29761: } 29761: else 29761: __first1 = __first1->_M_next; 29761: } 29761: if (__first2 != __last2) 29761: this->_M_transfer(__first2, __last2); 29761: } 29761: 29761: 29761: void _M_take_one(_List_node_base* __i) 29761: { this->_M_transfer(__i, __i->_M_next); } 29761: 29761: 29761: void _M_put_all(_List_node_base* __i) 29761: { 29761: if (!empty()) 29761: __i->_M_transfer(_M_next, this); 29761: } 29761: }; 29761: 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: struct _List_node : public __detail::_List_node_base 29761: { 29761: 29761: __gnu_cxx::__aligned_membuf<_Tp> _M_storage; 29761: _Tp* _M_valptr() { return _M_storage._M_ptr(); } 29761: _Tp const* _M_valptr() const { return _M_storage._M_ptr(); } 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _List_iterator 29761: { 29761: typedef _List_iterator<_Tp> _Self; 29761: typedef _List_node<_Tp> _Node; 29761: 29761: typedef ptrdiff_t difference_type; 29761: typedef std::bidirectional_iterator_tag iterator_category; 29761: typedef _Tp value_type; 29761: typedef _Tp* pointer; 29761: typedef _Tp& reference; 29761: 29761: _List_iterator() noexcept 29761: : _M_node() { } 29761: 29761: explicit 29761: _List_iterator(__detail::_List_node_base* __x) noexcept 29761: : _M_node(__x) { } 29761: 29761: _Self 29761: _M_const_cast() const noexcept 29761: { return *this; } 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator*() const noexcept 29761: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 29761: 29761: [[__nodiscard__]] 29761: pointer 29761: operator->() const noexcept 29761: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 29761: 29761: _Self& 29761: operator++() noexcept 29761: { 29761: _M_node = _M_node->_M_next; 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator++(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _M_node->_M_next; 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator--() noexcept 29761: { 29761: _M_node = _M_node->_M_prev; 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator--(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _M_node->_M_prev; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node == __y._M_node; } 29761: 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node != __y._M_node; } 29761: 29761: 29761: 29761: __detail::_List_node_base* _M_node; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _List_const_iterator 29761: { 29761: typedef _List_const_iterator<_Tp> _Self; 29761: typedef const _List_node<_Tp> _Node; 29761: typedef _List_iterator<_Tp> iterator; 29761: 29761: typedef ptrdiff_t difference_type; 29761: typedef std::bidirectional_iterator_tag iterator_category; 29761: typedef _Tp value_type; 29761: typedef const _Tp* pointer; 29761: typedef const _Tp& reference; 29761: 29761: _List_const_iterator() noexcept 29761: : _M_node() { } 29761: 29761: explicit 29761: _List_const_iterator(const __detail::_List_node_base* __x) 29761: noexcept 29761: : _M_node(__x) { } 29761: 29761: _List_const_iterator(const iterator& __x) noexcept 29761: : _M_node(__x._M_node) { } 29761: 29761: iterator 29761: _M_const_cast() const noexcept 29761: { return iterator(const_cast<__detail::_List_node_base*>(_M_node)); } 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator*() const noexcept 29761: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 29761: 29761: [[__nodiscard__]] 29761: pointer 29761: operator->() const noexcept 29761: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 29761: 29761: _Self& 29761: operator++() noexcept 29761: { 29761: _M_node = _M_node->_M_next; 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator++(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _M_node->_M_next; 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator--() noexcept 29761: { 29761: _M_node = _M_node->_M_prev; 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator--(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _M_node->_M_prev; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node == __y._M_node; } 29761: 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node != __y._M_node; } 29761: 29761: 29761: 29761: const __detail::_List_node_base* _M_node; 29761: }; 29761: 29761: namespace __cxx11 { 29761: 29761: template 29761: class _List_base 29761: { 29761: protected: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Tp>::other _Tp_alloc_type; 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tp_alloc_traits; 29761: typedef typename _Tp_alloc_traits::template 29761: rebind<_List_node<_Tp> >::other _Node_alloc_type; 29761: typedef __gnu_cxx::__alloc_traits<_Node_alloc_type> _Node_alloc_traits; 29761: 29761: 29761: static size_t 29761: _S_distance(const __detail::_List_node_base* __first, 29761: const __detail::_List_node_base* __last) 29761: { 29761: size_t __n = 0; 29761: while (__first != __last) 29761: { 29761: __first = __first->_M_next; 29761: ++__n; 29761: } 29761: return __n; 29761: } 29761: 29761: 29761: struct _List_impl 29761: : public _Node_alloc_type 29761: { 29761: __detail::_List_node_header _M_node; 29761: 29761: _List_impl() noexcept(is_nothrow_default_constructible<_Node_alloc_type>::value) 29761: 29761: : _Node_alloc_type() 29761: { } 29761: 29761: _List_impl(const _Node_alloc_type& __a) noexcept 29761: : _Node_alloc_type(__a) 29761: { } 29761: 29761: 29761: _List_impl(_List_impl&&) = default; 29761: 29761: _List_impl(_Node_alloc_type&& __a, _List_impl&& __x) 29761: : _Node_alloc_type(std::move(__a)), _M_node(std::move(__x._M_node)) 29761: { } 29761: 29761: _List_impl(_Node_alloc_type&& __a) noexcept 29761: : _Node_alloc_type(std::move(__a)) 29761: { } 29761: 29761: }; 29761: 29761: _List_impl _M_impl; 29761: 29761: 29761: size_t _M_get_size() const { return _M_impl._M_node._M_size; } 29761: 29761: void _M_set_size(size_t __n) { _M_impl._M_node._M_size = __n; } 29761: 29761: void _M_inc_size(size_t __n) { _M_impl._M_node._M_size += __n; } 29761: 29761: void _M_dec_size(size_t __n) { _M_impl._M_node._M_size -= __n; } 29761: 29761: 29761: size_t 29761: _M_distance(const __detail::_List_node_base* __first, 29761: const __detail::_List_node_base* __last) const 29761: { return _S_distance(__first, __last); } 29761: 29761: 29761: size_t _M_node_count() const { return _M_get_size(); } 29761: # 516 "/usr/include/c++/14/bits/stl_list.h" 3 29761: typename _Node_alloc_traits::pointer 29761: _M_get_node() 29761: { return _Node_alloc_traits::allocate(_M_impl, 1); } 29761: 29761: void 29761: _M_put_node(typename _Node_alloc_traits::pointer __p) noexcept 29761: { _Node_alloc_traits::deallocate(_M_impl, __p, 1); } 29761: 29761: public: 29761: typedef _Alloc allocator_type; 29761: 29761: _Node_alloc_type& 29761: _M_get_Node_allocator() noexcept 29761: { return _M_impl; } 29761: 29761: const _Node_alloc_type& 29761: _M_get_Node_allocator() const noexcept 29761: { return _M_impl; } 29761: 29761: 29761: _List_base() = default; 29761: 29761: 29761: 29761: 29761: _List_base(const _Node_alloc_type& __a) noexcept 29761: : _M_impl(__a) 29761: { } 29761: 29761: 29761: _List_base(_List_base&&) = default; 29761: 29761: 29761: _List_base(_List_base&& __x, _Node_alloc_type&& __a) 29761: : _M_impl(std::move(__a)) 29761: { 29761: if (__x._M_get_Node_allocator() == _M_get_Node_allocator()) 29761: _M_move_nodes(std::move(__x)); 29761: 29761: } 29761: 29761: 29761: 29761: _List_base(_Node_alloc_type&& __a, _List_base&& __x) 29761: : _M_impl(std::move(__a), std::move(__x._M_impl)) 29761: { } 29761: 29761: 29761: _List_base(_Node_alloc_type&& __a) 29761: : _M_impl(std::move(__a)) 29761: { } 29761: 29761: void 29761: _M_move_nodes(_List_base&& __x) 29761: { _M_impl._M_node._M_move_nodes(std::move(__x._M_impl._M_node)); } 29761: 29761: 29761: 29761: ~_List_base() noexcept 29761: { _M_clear(); } 29761: 29761: void 29761: _M_clear() noexcept; 29761: 29761: void 29761: _M_init() noexcept 29761: { this->_M_impl._M_node._M_init(); } 29761: }; 29761: # 631 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template > 29761: class list : protected _List_base<_Tp, _Alloc> 29761: { 29761: # 644 "/usr/include/c++/14/bits/stl_list.h" 3 29761: static_assert(is_same::type, _Tp>::value, 29761: "std::list must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _List_base<_Tp, _Alloc> _Base; 29761: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29761: typedef typename _Base::_Tp_alloc_traits _Tp_alloc_traits; 29761: typedef typename _Base::_Node_alloc_type _Node_alloc_type; 29761: typedef typename _Base::_Node_alloc_traits _Node_alloc_traits; 29761: 29761: public: 29761: typedef _Tp value_type; 29761: typedef typename _Tp_alloc_traits::pointer pointer; 29761: typedef typename _Tp_alloc_traits::const_pointer const_pointer; 29761: typedef typename _Tp_alloc_traits::reference reference; 29761: typedef typename _Tp_alloc_traits::const_reference const_reference; 29761: typedef _List_iterator<_Tp> iterator; 29761: typedef _List_const_iterator<_Tp> const_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Alloc allocator_type; 29761: 29761: protected: 29761: 29761: 29761: typedef _List_node<_Tp> _Node; 29761: 29761: using _Base::_M_impl; 29761: using _Base::_M_put_node; 29761: using _Base::_M_get_node; 29761: using _Base::_M_get_Node_allocator; 29761: # 706 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: _Node* 29761: _M_create_node(_Args&&... __args) 29761: { 29761: auto __p = this->_M_get_node(); 29761: auto& __alloc = _M_get_Node_allocator(); 29761: __allocated_ptr<_Node_alloc_type> __guard{__alloc, __p}; 29761: _Node_alloc_traits::construct(__alloc, __p->_M_valptr(), 29761: std::forward<_Args>(__args)...); 29761: __guard = nullptr; 29761: return __p; 29761: } 29761: 29761: 29761: 29761: static size_t 29761: _S_distance(const_iterator __first, const_iterator __last) 29761: { return std::distance(__first, __last); } 29761: 29761: 29761: size_t 29761: _M_node_count() const 29761: { return this->_M_get_size(); } 29761: # 741 "/usr/include/c++/14/bits/stl_list.h" 3 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: list() = default; 29761: # 758 "/usr/include/c++/14/bits/stl_list.h" 3 29761: explicit 29761: list(const allocator_type& __a) noexcept 29761: : _Base(_Node_alloc_type(__a)) { } 29761: # 771 "/usr/include/c++/14/bits/stl_list.h" 3 29761: explicit 29761: list(size_type __n, const allocator_type& __a = allocator_type()) 29761: : _Base(_Node_alloc_type(__a)) 29761: { _M_default_initialize(__n); } 29761: # 784 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list(size_type __n, const value_type& __value, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(_Node_alloc_type(__a)) 29761: { _M_fill_initialize(__n, __value); } 29761: # 811 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list(const list& __x) 29761: : _Base(_Node_alloc_traits:: 29761: _S_select_on_copy(__x._M_get_Node_allocator())) 29761: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 29761: # 824 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list(list&&) = default; 29761: # 834 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list(initializer_list __l, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(_Node_alloc_type(__a)) 29761: { _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); } 29761: 29761: list(const list& __x, const __type_identity_t& __a) 29761: : _Base(_Node_alloc_type(__a)) 29761: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 29761: 29761: private: 29761: list(list&& __x, const allocator_type& __a, true_type) noexcept 29761: : _Base(_Node_alloc_type(__a), std::move(__x)) 29761: { } 29761: 29761: list(list&& __x, const allocator_type& __a, false_type) 29761: : _Base(_Node_alloc_type(__a)) 29761: { 29761: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 29761: this->_M_move_nodes(std::move(__x)); 29761: else 29761: insert(begin(), std::__make_move_if_noexcept_iterator(__x.begin()), 29761: std::__make_move_if_noexcept_iterator(__x.end())); 29761: } 29761: 29761: public: 29761: list(list&& __x, const __type_identity_t& __a) 29761: noexcept(_Node_alloc_traits::_S_always_equal()) 29761: : list(std::move(__x), __a, 29761: typename _Node_alloc_traits::is_always_equal{}) 29761: { } 29761: # 877 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template> 29761: list(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(_Node_alloc_type(__a)) 29761: { _M_initialize_dispatch(__first, __last, __false_type()); } 29761: # 903 "/usr/include/c++/14/bits/stl_list.h" 3 29761: ~list() = default; 29761: # 914 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list& 29761: operator=(const list& __x); 29761: # 928 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list& 29761: operator=(list&& __x) 29761: noexcept(_Node_alloc_traits::_S_nothrow_move()) 29761: { 29761: constexpr bool __move_storage = 29761: _Node_alloc_traits::_S_propagate_on_move_assign() 29761: || _Node_alloc_traits::_S_always_equal(); 29761: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 29761: return *this; 29761: } 29761: # 946 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list& 29761: operator=(initializer_list __l) 29761: { 29761: this->assign(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: # 964 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: assign(size_type __n, const value_type& __val) 29761: { _M_fill_assign(__n, __val); } 29761: # 981 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template> 29761: void 29761: assign(_InputIterator __first, _InputIterator __last) 29761: { _M_assign_dispatch(__first, __last, __false_type()); } 29761: # 1005 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: assign(initializer_list __l) 29761: { this->_M_assign_dispatch(__l.begin(), __l.end(), __false_type()); } 29761: 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_Base::_M_get_Node_allocator()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: begin() noexcept 29761: { return iterator(this->_M_impl._M_node._M_next); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(this->_M_impl._M_node._M_next); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: end() noexcept 29761: { return iterator(&this->_M_impl._M_node); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: end() const noexcept 29761: { return const_iterator(&this->_M_impl._M_node); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(this->_M_impl._M_node._M_next); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cend() const noexcept 29761: { return const_iterator(&this->_M_impl._M_node); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: size() const noexcept 29761: { return _M_node_count(); } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: max_size() const noexcept 29761: { return _Node_alloc_traits::max_size(_M_get_Node_allocator()); } 29761: # 1168 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: resize(size_type __new_size); 29761: # 1181 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: resize(size_type __new_size, const value_type& __x); 29761: # 1203 "/usr/include/c++/14/bits/stl_list.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: front() noexcept 29761: { return *begin(); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: front() const noexcept 29761: { return *begin(); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: back() noexcept 29761: { 29761: iterator __tmp = end(); 29761: --__tmp; 29761: return *__tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: back() const noexcept 29761: { 29761: const_iterator __tmp = end(); 29761: --__tmp; 29761: return *__tmp; 29761: } 29761: # 1254 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: push_front(const value_type& __x) 29761: { this->_M_insert(begin(), __x); } 29761: 29761: 29761: void 29761: push_front(value_type&& __x) 29761: { this->_M_insert(begin(), std::move(__x)); } 29761: 29761: template 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_front(_Args&&... __args) 29761: { 29761: this->_M_insert(begin(), std::forward<_Args>(__args)...); 29761: 29761: return front(); 29761: 29761: } 29761: # 1290 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: pop_front() noexcept 29761: { this->_M_erase(begin()); } 29761: # 1304 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: push_back(const value_type& __x) 29761: { this->_M_insert(end(), __x); } 29761: 29761: 29761: void 29761: push_back(value_type&& __x) 29761: { this->_M_insert(end(), std::move(__x)); } 29761: 29761: template 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_back(_Args&&... __args) 29761: { 29761: this->_M_insert(end(), std::forward<_Args>(__args)...); 29761: 29761: return back(); 29761: 29761: } 29761: # 1339 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: pop_back() noexcept 29761: { this->_M_erase(iterator(this->_M_impl._M_node._M_prev)); } 29761: # 1356 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: iterator 29761: emplace(const_iterator __position, _Args&&... __args); 29761: # 1371 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: insert(const_iterator __position, const value_type& __x); 29761: # 1401 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return emplace(__position, std::move(__x)); } 29761: # 1420 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: insert(const_iterator __p, initializer_list __l) 29761: { return this->insert(__p, __l.begin(), __l.end()); } 29761: # 1440 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: insert(const_iterator __position, size_type __n, const value_type& __x); 29761: # 1479 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template> 29761: iterator 29761: insert(const_iterator __position, _InputIterator __first, 29761: _InputIterator __last); 29761: # 1523 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: 29761: erase(const_iterator __position) noexcept; 29761: # 1548 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: 29761: erase(const_iterator __first, const_iterator __last) noexcept 29761: 29761: 29761: 29761: { 29761: while (__first != __last) 29761: __first = erase(__first); 29761: return __last._M_const_cast(); 29761: } 29761: # 1571 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: swap(list& __x) noexcept 29761: { 29761: __detail::_List_node_base::swap(this->_M_impl._M_node, 29761: __x._M_impl._M_node); 29761: 29761: size_t __xsize = __x._M_get_size(); 29761: __x._M_set_size(this->_M_get_size()); 29761: this->_M_set_size(__xsize); 29761: 29761: _Node_alloc_traits::_S_on_swap(this->_M_get_Node_allocator(), 29761: __x._M_get_Node_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { 29761: _Base::_M_clear(); 29761: _Base::_M_init(); 29761: } 29761: # 1610 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: 29761: splice(const_iterator __position, list&& __x) noexcept 29761: 29761: 29761: 29761: { 29761: if (!__x.empty()) 29761: { 29761: _M_check_equal_allocators(__x); 29761: 29761: this->_M_transfer(__position._M_const_cast(), 29761: __x.begin(), __x.end()); 29761: 29761: this->_M_inc_size(__x._M_get_size()); 29761: __x._M_set_size(0); 29761: } 29761: } 29761: 29761: 29761: void 29761: splice(const_iterator __position, list& __x) noexcept 29761: { splice(__position, std::move(__x)); } 29761: # 1646 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: splice(const_iterator __position, list&& __x, const_iterator __i) noexcept 29761: # 1661 "/usr/include/c++/14/bits/stl_list.h" 3 29761: { 29761: iterator __j = __i._M_const_cast(); 29761: ++__j; 29761: if (__position == __i || __position == __j) 29761: return; 29761: 29761: if (this != std::__addressof(__x)) 29761: _M_check_equal_allocators(__x); 29761: 29761: this->_M_transfer(__position._M_const_cast(), 29761: __i._M_const_cast(), __j); 29761: 29761: this->_M_inc_size(1); 29761: __x._M_dec_size(1); 29761: } 29761: # 1688 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: splice(const_iterator __position, list& __x, const_iterator __i) noexcept 29761: { splice(__position, std::move(__x), __i); } 29761: # 1707 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: splice(const_iterator __position, list&& __x, const_iterator __first, 29761: const_iterator __last) noexcept 29761: # 1727 "/usr/include/c++/14/bits/stl_list.h" 3 29761: { 29761: if (__first != __last) 29761: { 29761: if (this != std::__addressof(__x)) 29761: _M_check_equal_allocators(__x); 29761: 29761: size_t __n = _S_distance(__first, __last); 29761: this->_M_inc_size(__n); 29761: __x._M_dec_size(__n); 29761: 29761: this->_M_transfer(__position._M_const_cast(), 29761: __first._M_const_cast(), 29761: __last._M_const_cast()); 29761: } 29761: } 29761: # 1757 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: splice(const_iterator __position, list& __x, const_iterator __first, 29761: const_iterator __last) noexcept 29761: { splice(__position, std::move(__x), __first, __last); } 29761: 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: 29761: typedef void __remove_return_type; 29761: 29761: 29761: public: 29761: # 1785 "/usr/include/c++/14/bits/stl_list.h" 3 29761: 29761: __remove_return_type 29761: remove(const _Tp& __value); 29761: # 1800 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: __remove_return_type 29761: remove_if(_Predicate); 29761: # 1814 "/usr/include/c++/14/bits/stl_list.h" 3 29761: 29761: __remove_return_type 29761: unique(); 29761: # 1830 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: __remove_return_type 29761: unique(_BinaryPredicate); 29761: # 1846 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: merge(list&& __x); 29761: 29761: void 29761: merge(list& __x) 29761: { merge(std::move(__x)); } 29761: # 1871 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: void 29761: merge(list&& __x, _StrictWeakOrdering __comp); 29761: 29761: template 29761: void 29761: merge(list& __x, _StrictWeakOrdering __comp) 29761: { merge(std::move(__x), __comp); } 29761: # 1890 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: reverse() noexcept 29761: { this->_M_impl._M_node._M_reverse(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: sort(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: sort(_StrictWeakOrdering); 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) 29761: { _M_fill_initialize(static_cast(__n), __x); } 29761: 29761: 29761: template 29761: void 29761: _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, 29761: __false_type) 29761: { 29761: for (; __first != __last; ++__first) 29761: 29761: emplace_back(*__first); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: void 29761: _M_fill_initialize(size_type __n, const value_type& __x) 29761: { 29761: for (; __n; --__n) 29761: push_back(__x); 29761: } 29761: 29761: 29761: 29761: void 29761: _M_default_initialize(size_type __n) 29761: { 29761: for (; __n; --__n) 29761: emplace_back(); 29761: } 29761: 29761: 29761: void 29761: _M_default_append(size_type __n); 29761: # 1968 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: void 29761: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 29761: { _M_fill_assign(__n, __val); } 29761: 29761: 29761: template 29761: void 29761: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 29761: __false_type); 29761: 29761: 29761: 29761: void 29761: _M_fill_assign(size_type __n, const value_type& __val); 29761: 29761: 29761: 29761: void 29761: _M_transfer(iterator __position, iterator __first, iterator __last) 29761: { __position._M_node->_M_transfer(__first._M_node, __last._M_node); } 29761: # 2000 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: void 29761: _M_insert(iterator __position, _Args&&... __args) 29761: { 29761: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 29761: __tmp->_M_hook(__position._M_node); 29761: this->_M_inc_size(1); 29761: } 29761: 29761: 29761: 29761: void 29761: _M_erase(iterator __position) noexcept 29761: { 29761: this->_M_dec_size(1); 29761: __position._M_node->_M_unhook(); 29761: _Node* __n = static_cast<_Node*>(__position._M_node); 29761: 29761: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __n->_M_valptr()); 29761: 29761: 29761: 29761: 29761: _M_put_node(__n); 29761: } 29761: 29761: 29761: void 29761: _M_check_equal_allocators(const list& __x) noexcept 29761: { 29761: if (_M_get_Node_allocator() != __x._M_get_Node_allocator()) 29761: __builtin_abort(); 29761: } 29761: 29761: 29761: const_iterator 29761: _M_resize_pos(size_type& __new_size) const; 29761: 29761: 29761: void 29761: _M_move_assign(list&& __x, true_type) noexcept 29761: { 29761: this->clear(); 29761: this->_M_move_nodes(std::move(__x)); 29761: std::__alloc_on_move(this->_M_get_Node_allocator(), 29761: __x._M_get_Node_allocator()); 29761: } 29761: 29761: void 29761: _M_move_assign(list&& __x, false_type) 29761: { 29761: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 29761: _M_move_assign(std::move(__x), true_type{}); 29761: else 29761: 29761: 29761: _M_assign_dispatch(std::make_move_iterator(__x.begin()), 29761: std::make_move_iterator(__x.end()), 29761: __false_type{}); 29761: } 29761: 29761: 29761: 29761: 29761: struct _Finalize_merge 29761: { 29761: explicit 29761: _Finalize_merge(list& __dest, list& __src, const iterator& __src_next) 29761: : _M_dest(__dest), _M_src(__src), _M_next(__src_next) 29761: { } 29761: 29761: ~_Finalize_merge() 29761: { 29761: 29761: 29761: 29761: const size_t __num_unmerged = std::distance(_M_next, _M_src.end()); 29761: const size_t __orig_size = _M_src._M_get_size(); 29761: _M_dest._M_inc_size(__orig_size - __num_unmerged); 29761: _M_src._M_set_size(__num_unmerged); 29761: } 29761: 29761: list& _M_dest; 29761: list& _M_src; 29761: const iterator& _M_next; 29761: 29761: 29761: _Finalize_merge(const _Finalize_merge&) = delete; 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: template::value_type, 29761: typename _Allocator = allocator<_ValT>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireAllocator<_Allocator>> 29761: list(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29761: -> list<_ValT, _Allocator>; 29761: 29761: 29761: } 29761: # 2119 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { 29761: 29761: if (__x.size() != __y.size()) 29761: return false; 29761: 29761: 29761: typedef typename list<_Tp, _Alloc>::const_iterator const_iterator; 29761: const_iterator __end1 = __x.end(); 29761: const_iterator __end2 = __y.end(); 29761: 29761: const_iterator __i1 = __x.begin(); 29761: const_iterator __i2 = __y.begin(); 29761: while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) 29761: { 29761: ++__i1; 29761: ++__i2; 29761: } 29761: return __i1 == __end1 && __i2 == __end2; 29761: } 29761: # 2176 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { return std::lexicographical_compare(__x.begin(), __x.end(), 29761: __y.begin(), __y.end()); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline ptrdiff_t 29761: __distance(std::_List_iterator<_Tp> __first, 29761: std::_List_iterator<_Tp> __last, 29761: input_iterator_tag __tag) 29761: { 29761: typedef std::_List_const_iterator<_Tp> _CIter; 29761: return std::__distance(_CIter(__first), _CIter(__last), __tag); 29761: } 29761: 29761: template 29761: inline ptrdiff_t 29761: __distance(std::_List_const_iterator<_Tp> __first, 29761: std::_List_const_iterator<_Tp> __last, 29761: input_iterator_tag) 29761: { 29761: typedef __detail::_List_node_header _Sentinel; 29761: std::_List_const_iterator<_Tp> __beyond = __last; 29761: ++__beyond; 29761: const bool __whole = __first == __beyond; 29761: if (__builtin_constant_p (__whole) && __whole) 29761: return static_cast(__last._M_node)->_M_size; 29761: 29761: ptrdiff_t __n = 0; 29761: while (__first != __last) 29761: { 29761: ++__first; 29761: ++__n; 29761: } 29761: return __n; 29761: } 29761: 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/list" 2 3 29761: # 1 "/usr/include/c++/14/bits/list.tcc" 1 3 29761: # 59 "/usr/include/c++/14/bits/list.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: void 29761: _List_base<_Tp, _Alloc>:: 29761: _M_clear() noexcept 29761: { 29761: typedef _List_node<_Tp> _Node; 29761: __detail::_List_node_base* __cur = _M_impl._M_node._M_next; 29761: while (__cur != &_M_impl._M_node) 29761: { 29761: _Node* __tmp = static_cast<_Node*>(__cur); 29761: __cur = __tmp->_M_next; 29761: _Tp* __val = __tmp->_M_valptr(); 29761: 29761: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __val); 29761: 29761: 29761: 29761: _M_put_node(__tmp); 29761: } 29761: } 29761: 29761: 29761: template 29761: template 29761: typename list<_Tp, _Alloc>::iterator 29761: list<_Tp, _Alloc>:: 29761: emplace(const_iterator __position, _Args&&... __args) 29761: { 29761: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 29761: __tmp->_M_hook(__position._M_const_cast()._M_node); 29761: this->_M_inc_size(1); 29761: return iterator(__tmp); 29761: } 29761: 29761: 29761: template 29761: typename list<_Tp, _Alloc>::iterator 29761: list<_Tp, _Alloc>:: 29761: 29761: insert(const_iterator __position, const value_type& __x) 29761: 29761: 29761: 29761: { 29761: _Node* __tmp = _M_create_node(__x); 29761: __tmp->_M_hook(__position._M_const_cast()._M_node); 29761: this->_M_inc_size(1); 29761: return iterator(__tmp); 29761: } 29761: 29761: 29761: template 29761: typename list<_Tp, _Alloc>::iterator 29761: list<_Tp, _Alloc>:: 29761: insert(const_iterator __position, size_type __n, const value_type& __x) 29761: { 29761: if (__n) 29761: { 29761: list __tmp(__n, __x, get_allocator()); 29761: iterator __it = __tmp.begin(); 29761: splice(__position, __tmp); 29761: return __it; 29761: } 29761: return __position._M_const_cast(); 29761: } 29761: 29761: template 29761: template 29761: typename list<_Tp, _Alloc>::iterator 29761: list<_Tp, _Alloc>:: 29761: insert(const_iterator __position, _InputIterator __first, 29761: _InputIterator __last) 29761: { 29761: list __tmp(__first, __last, get_allocator()); 29761: if (!__tmp.empty()) 29761: { 29761: iterator __it = __tmp.begin(); 29761: splice(__position, __tmp); 29761: return __it; 29761: } 29761: return __position._M_const_cast(); 29761: } 29761: 29761: 29761: template 29761: typename list<_Tp, _Alloc>::iterator 29761: list<_Tp, _Alloc>:: 29761: 29761: erase(const_iterator __position) noexcept 29761: 29761: 29761: 29761: { 29761: iterator __ret = iterator(__position._M_node->_M_next); 29761: _M_erase(__position._M_const_cast()); 29761: return __ret; 29761: } 29761: # 173 "/usr/include/c++/14/bits/list.tcc" 3 29761: template 29761: typename list<_Tp, _Alloc>::const_iterator 29761: list<_Tp, _Alloc>:: 29761: _M_resize_pos(size_type& __new_size) const 29761: { 29761: const_iterator __i; 29761: 29761: const size_type __len = size(); 29761: if (__new_size < __len) 29761: { 29761: if (__new_size <= __len / 2) 29761: { 29761: __i = begin(); 29761: std::advance(__i, __new_size); 29761: } 29761: else 29761: { 29761: __i = end(); 29761: ptrdiff_t __num_erase = __len - __new_size; 29761: std::advance(__i, -__num_erase); 29761: } 29761: __new_size = 0; 29761: return __i; 29761: } 29761: else 29761: __i = end(); 29761: 29761: 29761: 29761: 29761: 29761: __new_size -= __len; 29761: return __i; 29761: } 29761: 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: _M_default_append(size_type __n) 29761: { 29761: size_type __i = 0; 29761: try 29761: { 29761: for (; __i < __n; ++__i) 29761: emplace_back(); 29761: } 29761: catch(...) 29761: { 29761: for (; __i; --__i) 29761: pop_back(); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: resize(size_type __new_size) 29761: { 29761: const_iterator __i = _M_resize_pos(__new_size); 29761: if (__new_size) 29761: _M_default_append(__new_size); 29761: else 29761: erase(__i, end()); 29761: } 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: resize(size_type __new_size, const value_type& __x) 29761: { 29761: const_iterator __i = _M_resize_pos(__new_size); 29761: if (__new_size) 29761: insert(end(), __new_size, __x); 29761: else 29761: erase(__i, end()); 29761: } 29761: # 265 "/usr/include/c++/14/bits/list.tcc" 3 29761: template 29761: list<_Tp, _Alloc>& 29761: list<_Tp, _Alloc>:: 29761: operator=(const list& __x) 29761: { 29761: if (this != std::__addressof(__x)) 29761: { 29761: 29761: if (_Node_alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: auto& __this_alloc = this->_M_get_Node_allocator(); 29761: auto& __that_alloc = __x._M_get_Node_allocator(); 29761: if (!_Node_alloc_traits::_S_always_equal() 29761: && __this_alloc != __that_alloc) 29761: { 29761: 29761: clear(); 29761: } 29761: std::__alloc_on_copy(__this_alloc, __that_alloc); 29761: } 29761: 29761: _M_assign_dispatch(__x.begin(), __x.end(), __false_type()); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: _M_fill_assign(size_type __n, const value_type& __val) 29761: { 29761: iterator __i = begin(); 29761: for (; __i != end() && __n > 0; ++__i, --__n) 29761: *__i = __val; 29761: if (__n > 0) 29761: insert(end(), __n, __val); 29761: else 29761: erase(__i, end()); 29761: } 29761: 29761: template 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: _M_assign_dispatch(_InputIterator __first2, _InputIterator __last2, 29761: __false_type) 29761: { 29761: iterator __first1 = begin(); 29761: iterator __last1 = end(); 29761: for (; __first1 != __last1 && __first2 != __last2; 29761: ++__first1, (void)++__first2) 29761: *__first1 = *__first2; 29761: if (__first2 == __last2) 29761: erase(__first1, __last1); 29761: else 29761: insert(__last1, __first2, __last2); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: typename list<_Tp, _Alloc>::__remove_return_type 29761: list<_Tp, _Alloc>:: 29761: remove(const value_type& __value) 29761: { 29761: 29761: 29761: 29761: list __to_destroy(get_allocator()); 29761: iterator __first = begin(); 29761: iterator __last = end(); 29761: while (__first != __last) 29761: { 29761: iterator __next = __first; 29761: ++__next; 29761: if (*__first == __value) 29761: { 29761: 29761: 29761: 29761: __to_destroy.splice(__to_destroy.begin(), *this, __first); 29761: 29761: 29761: 29761: } 29761: 29761: __first = __next; 29761: } 29761: 29761: 29761: 29761: 29761: return ; 29761: 29761: } 29761: 29761: template 29761: typename list<_Tp, _Alloc>::__remove_return_type 29761: list<_Tp, _Alloc>:: 29761: unique() 29761: { 29761: iterator __first = begin(); 29761: iterator __last = end(); 29761: if (__first == __last) 29761: return ; 29761: 29761: 29761: 29761: list __to_destroy(get_allocator()); 29761: iterator __next = __first; 29761: while (++__next != __last) 29761: { 29761: if (*__first == *__next) 29761: { 29761: __to_destroy.splice(__to_destroy.begin(), *this, __next); 29761: 29761: 29761: 29761: } 29761: else 29761: __first = __next; 29761: __next = __first; 29761: } 29761: 29761: 29761: 29761: 29761: return ; 29761: 29761: } 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: 29761: merge(list&& __x) 29761: 29761: 29761: 29761: { 29761: 29761: 29761: if (this != std::__addressof(__x)) 29761: { 29761: _M_check_equal_allocators(__x); 29761: 29761: iterator __first1 = begin(); 29761: iterator __last1 = end(); 29761: iterator __first2 = __x.begin(); 29761: iterator __last2 = __x.end(); 29761: 29761: const _Finalize_merge __fin(*this, __x, __first2); 29761: 29761: while (__first1 != __last1 && __first2 != __last2) 29761: if (*__first2 < *__first1) 29761: { 29761: iterator __next = __first2; 29761: _M_transfer(__first1, __first2, ++__next); 29761: __first2 = __next; 29761: } 29761: else 29761: ++__first1; 29761: if (__first2 != __last2) 29761: { 29761: _M_transfer(__last1, __first2, __last2); 29761: __first2 = __last2; 29761: } 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: 29761: merge(list&& __x, _StrictWeakOrdering __comp) 29761: 29761: 29761: 29761: { 29761: 29761: 29761: if (this != std::__addressof(__x)) 29761: { 29761: _M_check_equal_allocators(__x); 29761: 29761: iterator __first1 = begin(); 29761: iterator __last1 = end(); 29761: iterator __first2 = __x.begin(); 29761: iterator __last2 = __x.end(); 29761: 29761: const _Finalize_merge __fin(*this, __x, __first2); 29761: 29761: while (__first1 != __last1 && __first2 != __last2) 29761: if (__comp(*__first2, *__first1)) 29761: { 29761: iterator __next = __first2; 29761: _M_transfer(__first1, __first2, ++__next); 29761: __first2 = __next; 29761: } 29761: else 29761: ++__first1; 29761: if (__first2 != __last2) 29761: { 29761: _M_transfer(__last1, __first2, __last2); 29761: __first2 = __last2; 29761: } 29761: } 29761: } 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: sort() 29761: { 29761: 29761: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 29761: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 29761: { 29761: using __detail::_Scratch_list; 29761: # 497 "/usr/include/c++/14/bits/list.tcc" 3 29761: _Scratch_list __carry; 29761: _Scratch_list __tmp[64]; 29761: _Scratch_list* __fill = __tmp; 29761: _Scratch_list* __counter; 29761: 29761: _Scratch_list::_Ptr_cmp __ptr_comp; 29761: 29761: try 29761: { 29761: do 29761: { 29761: __carry._M_take_one(begin()._M_node); 29761: 29761: for(__counter = __tmp; 29761: __counter != __fill && !__counter->empty(); 29761: ++__counter) 29761: { 29761: 29761: __counter->merge(__carry, __ptr_comp); 29761: __carry.swap(*__counter); 29761: } 29761: __carry.swap(*__counter); 29761: if (__counter == __fill) 29761: ++__fill; 29761: } 29761: while ( !empty() ); 29761: 29761: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 29761: __counter->merge(__counter[-1], __ptr_comp); 29761: __fill[-1].swap(this->_M_impl._M_node); 29761: } 29761: catch(...) 29761: { 29761: 29761: __carry._M_put_all(end()._M_node); 29761: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 29761: __tmp[__i]._M_put_all(end()._M_node); 29761: throw; 29761: } 29761: } 29761: } 29761: 29761: template 29761: template 29761: typename list<_Tp, _Alloc>::__remove_return_type 29761: list<_Tp, _Alloc>:: 29761: remove_if(_Predicate __pred) 29761: { 29761: 29761: 29761: 29761: list __to_destroy(get_allocator()); 29761: iterator __first = begin(); 29761: iterator __last = end(); 29761: while (__first != __last) 29761: { 29761: iterator __next = __first; 29761: ++__next; 29761: if (__pred(*__first)) 29761: { 29761: __to_destroy.splice(__to_destroy.begin(), *this, __first); 29761: 29761: 29761: 29761: } 29761: __first = __next; 29761: } 29761: 29761: 29761: 29761: 29761: return ; 29761: 29761: } 29761: 29761: template 29761: template 29761: typename list<_Tp, _Alloc>::__remove_return_type 29761: list<_Tp, _Alloc>:: 29761: unique(_BinaryPredicate __binary_pred) 29761: { 29761: iterator __first = begin(); 29761: iterator __last = end(); 29761: if (__first == __last) 29761: return ; 29761: 29761: 29761: 29761: list __to_destroy(get_allocator()); 29761: iterator __next = __first; 29761: while (++__next != __last) 29761: { 29761: if (__binary_pred(*__first, *__next)) 29761: { 29761: __to_destroy.splice(__to_destroy.begin(), *this, __next); 29761: 29761: 29761: 29761: } 29761: else 29761: __first = __next; 29761: __next = __first; 29761: } 29761: 29761: 29761: 29761: 29761: return ; 29761: 29761: } 29761: 29761: 29761: 29761: template 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: sort(_StrictWeakOrdering __comp) 29761: { 29761: 29761: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 29761: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 29761: { 29761: using __detail::_Scratch_list; 29761: _Scratch_list __carry; 29761: _Scratch_list __tmp[64]; 29761: _Scratch_list* __fill = __tmp; 29761: _Scratch_list* __counter; 29761: 29761: _Scratch_list::_Ptr_cmp __ptr_comp 29761: = { __comp }; 29761: 29761: try 29761: { 29761: do 29761: { 29761: __carry._M_take_one(begin()._M_node); 29761: 29761: for(__counter = __tmp; 29761: __counter != __fill && !__counter->empty(); 29761: ++__counter) 29761: { 29761: 29761: __counter->merge(__carry, __ptr_comp); 29761: __carry.swap(*__counter); 29761: } 29761: __carry.swap(*__counter); 29761: if (__counter == __fill) 29761: ++__fill; 29761: } 29761: while ( !empty() ); 29761: 29761: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 29761: __counter->merge(__counter[-1], __ptr_comp); 29761: __fill[-1].swap(this->_M_impl._M_node); 29761: } 29761: catch(...) 29761: { 29761: 29761: __carry._M_put_all(end()._M_node); 29761: for (size_t __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 29761: __tmp[__i]._M_put_all(end()._M_node); 29761: throw; 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: } 29761: # 67 "/usr/include/c++/14/list" 2 3 29761: # 77 "/usr/include/c++/14/list" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 78 "/usr/include/c++/14/list" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template 29761: using list = std::list<_Tp, polymorphic_allocator<_Tp>>; 29761: } 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 2 29761: 29761: 29761: 29761: 29761: 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: namespace rocksdb { 29761: class CacheReservationManager; 29761: 29761: 29761: 29761: class StallInterface { 29761: public: 29761: virtual ~StallInterface() {} 29761: 29761: virtual void Block() = 0; 29761: 29761: virtual void Signal() = 0; 29761: }; 29761: 29761: class WriteBufferManager final { 29761: public: 29761: # 50 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: explicit WriteBufferManager(size_t _buffer_size, 29761: std::shared_ptr cache = {}, 29761: bool allow_stall = false); 29761: 29761: WriteBufferManager(const WriteBufferManager&) = delete; 29761: WriteBufferManager& operator=(const WriteBufferManager&) = delete; 29761: 29761: ~WriteBufferManager(); 29761: 29761: 29761: 29761: bool enabled() const { return buffer_size() > 0; } 29761: 29761: 29761: bool cost_to_cache() const { return cache_res_mgr_ != nullptr; } 29761: 29761: 29761: 29761: size_t memory_usage() const { 29761: return memory_used_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: size_t mutable_memtable_memory_usage() const { 29761: return memory_active_.load(std::memory_order_relaxed); 29761: } 29761: 29761: size_t dummy_entries_in_cache_usage() const; 29761: 29761: 29761: size_t buffer_size() const { 29761: return buffer_size_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: void SetBufferSize(size_t new_size) { 29761: 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29761: (static_cast ( 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: new_size > 0 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: "new_size > 0" 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: ; 29761: buffer_size_.store(new_size, std::memory_order_relaxed); 29761: mutable_limit_.store(new_size * 7 / 8, std::memory_order_relaxed); 29761: 29761: MaybeEndWriteStall(); 29761: } 29761: 29761: void SetAllowStall(bool new_allow_stall) { 29761: allow_stall_.store(new_allow_stall, std::memory_order_relaxed); 29761: MaybeEndWriteStall(); 29761: } 29761: 29761: 29761: 29761: 29761: bool ShouldFlush() const { 29761: if (enabled()) { 29761: if (mutable_memtable_memory_usage() > 29761: mutable_limit_.load(std::memory_order_relaxed)) { 29761: return true; 29761: } 29761: size_t local_size = buffer_size(); 29761: if (memory_usage() >= local_size && 29761: mutable_memtable_memory_usage() >= local_size / 2) { 29761: 29761: 29761: 29761: return true; 29761: } 29761: } 29761: return false; 29761: } 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: bool ShouldStall() const { 29761: if (!allow_stall_.load(std::memory_order_relaxed) || !enabled()) { 29761: return false; 29761: } 29761: 29761: return IsStallActive() || IsStallThresholdExceeded(); 29761: } 29761: 29761: 29761: bool IsStallActive() const { 29761: return stall_active_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: bool IsStallThresholdExceeded() const { 29761: return memory_usage() >= buffer_size_; 29761: } 29761: 29761: void ReserveMem(size_t mem); 29761: 29761: 29761: 29761: void ScheduleFreeMem(size_t mem); 29761: 29761: void FreeMem(size_t mem); 29761: 29761: 29761: 29761: void BeginWriteStall(StallInterface* wbm_stall); 29761: 29761: 29761: 29761: void MaybeEndWriteStall(); 29761: 29761: void RemoveDBFromQueue(StallInterface* wbm_stall); 29761: 29761: private: 29761: std::atomic buffer_size_; 29761: std::atomic mutable_limit_; 29761: std::atomic memory_used_; 29761: 29761: std::atomic memory_active_; 29761: std::shared_ptr cache_res_mgr_; 29761: 29761: std::mutex cache_res_mgr_mu_; 29761: 29761: std::list queue_; 29761: 29761: std::mutex mu_; 29761: std::atomic allow_stall_; 29761: 29761: 29761: std::atomic stall_active_; 29761: 29761: void ReserveMemWithCache(size_t mem); 29761: void FreeMemWithCache(size_t mem); 29761: }; 29761: } 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Cache; 29761: class CompactionFilter; 29761: class CompactionFilterFactory; 29761: class Comparator; 29761: class ConcurrentTaskLimiter; 29761: class Env; 29761: enum InfoLogLevel : unsigned char; 29761: class SstFileManager; 29761: class FilterPolicy; 29761: class Logger; 29761: class MergeOperator; 29761: class Snapshot; 29761: class MemTableRepFactory; 29761: class RateLimiter; 29761: class Slice; 29761: class Statistics; 29761: class InternalKeyComparator; 29761: class WalFilter; 29761: class FileSystem; 29761: 29761: struct Options; 29761: struct DbPath; 29761: 29761: using FileTypeSet = SmallEnumSet; 29761: 29761: struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ColumnFamilyOptions* OldDefaults(int rocksdb_major_version = 4, 29761: int rocksdb_minor_version = 6); 29761: 29761: 29761: 29761: 29761: 29761: ColumnFamilyOptions* OptimizeForSmallDb( 29761: std::shared_ptr* cache = nullptr); 29761: 29761: 29761: 29761: 29761: ColumnFamilyOptions* OptimizeForPointLookup(uint64_t block_cache_size_mb); 29761: # 102 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: ColumnFamilyOptions* OptimizeLevelStyleCompaction( 29761: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 29761: ColumnFamilyOptions* OptimizeUniversalStyleCompaction( 29761: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: const Comparator* comparator = BytewiseComparator(); 29761: # 128 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr merge_operator = nullptr; 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: const CompactionFilter* compaction_filter = nullptr; 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr compaction_filter_factory = nullptr; 29761: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t write_buffer_size = 64 << 20; 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: CompressionType compression; 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: CompressionType bottommost_compression = kDisableCompressionOption; 29761: 29761: 29761: 29761: 29761: 29761: CompressionOptions bottommost_compression_opts; 29761: 29761: 29761: CompressionOptions compression_opts; 29761: # 246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: int level0_file_num_compaction_trigger = 4; 29761: # 280 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr prefix_extractor = nullptr; 29761: # 294 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t max_bytes_for_level_base = 256 * 1048576; 29761: 29761: 29761: uint64_t snap_refresh_nanos = 0; 29761: 29761: 29761: 29761: 29761: 29761: bool disable_auto_compactions = false; 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr table_factory; 29761: # 323 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::vector cf_paths; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr compaction_thread_limiter = nullptr; 29761: # 340 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr sst_partitioner_factory = nullptr; 29761: # 351 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint32_t memtable_max_range_deletions = 0; 29761: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint32_t uncache_aggressiveness = 0; 29761: 29761: 29761: ColumnFamilyOptions(); 29761: 29761: explicit ColumnFamilyOptions(const Options& options); 29761: 29761: void Dump(Logger* log) const; 29761: }; 29761: 29761: enum class WALRecoveryMode : char { 29761: # 425 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: kTolerateCorruptedTailRecords = 0x00, 29761: 29761: 29761: 29761: 29761: kAbsoluteConsistency = 0x01, 29761: 29761: 29761: 29761: 29761: kPointInTimeRecovery = 0x02, 29761: 29761: 29761: 29761: 29761: 29761: kSkipAnyCorruptedRecords = 0x03, 29761: }; 29761: 29761: struct DbPath { 29761: std::string path; 29761: uint64_t target_size; 29761: 29761: DbPath() : target_size(0) {} 29761: DbPath(const std::string& p, uint64_t t) : path(p), target_size(t) {} 29761: }; 29761: 29761: extern const char* kHostnameForDbHostId; 29761: 29761: enum class CompactionServiceJobStatus : char { 29761: kSuccess, 29761: kFailure, 29761: kUseLocal, 29761: }; 29761: 29761: struct CompactionServiceJobInfo { 29761: std::string db_name; 29761: std::string db_id; 29761: std::string db_session_id; 29761: uint64_t job_id; 29761: 29761: 29761: 29761: 29761: Env::Priority priority; 29761: 29761: 29761: CompactionReason compaction_reason; 29761: bool is_full_compaction; 29761: bool is_manual_compaction; 29761: bool bottommost_level; 29761: 29761: CompactionServiceJobInfo(std::string db_name_, std::string db_id_, 29761: std::string db_session_id_, uint64_t job_id_, 29761: Env::Priority priority_, 29761: CompactionReason compaction_reason_, 29761: bool is_full_compaction_, bool is_manual_compaction_, 29761: bool bottommost_level_) 29761: : db_name(std::move(db_name_)), 29761: db_id(std::move(db_id_)), 29761: db_session_id(std::move(db_session_id_)), 29761: job_id(job_id_), 29761: priority(priority_), 29761: compaction_reason(compaction_reason_), 29761: is_full_compaction(is_full_compaction_), 29761: is_manual_compaction(is_manual_compaction_), 29761: bottommost_level(bottommost_level_) {} 29761: }; 29761: 29761: struct CompactionServiceScheduleResponse { 29761: std::string scheduled_job_id; 29761: 29761: CompactionServiceJobStatus status; 29761: CompactionServiceScheduleResponse(std::string scheduled_job_id_, 29761: CompactionServiceJobStatus status_) 29761: : scheduled_job_id(scheduled_job_id_), status(status_) {} 29761: explicit CompactionServiceScheduleResponse(CompactionServiceJobStatus status_) 29761: : status(status_) {} 29761: }; 29761: 29761: 29761: 29761: 29761: class CompactionService : public Customizable { 29761: public: 29761: static const char* Type() { return "CompactionService"; } 29761: 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: virtual CompactionServiceScheduleResponse Schedule( 29761: const CompactionServiceJobInfo& , 29761: const std::string& ) { 29761: CompactionServiceScheduleResponse response( 29761: CompactionServiceJobStatus::kUseLocal); 29761: return response; 29761: } 29761: 29761: 29761: virtual CompactionServiceJobStatus Wait( 29761: const std::string& , std::string* ) { 29761: return CompactionServiceJobStatus::kUseLocal; 29761: } 29761: 29761: 29761: virtual void OnInstallation(const std::string& , 29761: CompactionServiceJobStatus ) {} 29761: 29761: ~CompactionService() override = default; 29761: }; 29761: 29761: struct DBOptions { 29761: 29761: 29761: 29761: 29761: 29761: DBOptions* OldDefaults(int rocksdb_major_version = 4, 29761: int rocksdb_minor_version = 6); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: DBOptions* OptimizeForSmallDb(std::shared_ptr* cache = nullptr); 29761: 29761: 29761: 29761: 29761: 29761: 29761: DBOptions* IncreaseParallelism(int total_threads = 16); 29761: 29761: 29761: 29761: bool create_if_missing = false; 29761: 29761: 29761: 29761: 29761: bool create_missing_column_families = false; 29761: 29761: 29761: 29761: bool error_if_exists = false; 29761: # 588 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool paranoid_checks = true; 29761: # 600 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool flush_verify_memtable_count = true; 29761: # 617 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool compaction_verify_record_count = true; 29761: # 633 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool track_and_verify_wals_in_manifest = false; 29761: # 653 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool verify_sst_unique_id_in_manifest = true; 29761: 29761: 29761: 29761: 29761: Env* env = Env::Default(); 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr rate_limiter = nullptr; 29761: # 692 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr sst_file_manager = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr info_log = nullptr; 29761: 29761: 29761: 29761: 29761: InfoLogLevel info_log_level = Logger::kDefaultLogLevel; 29761: # 718 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: int max_open_files = -1; 29761: 29761: 29761: 29761: 29761: int max_file_opening_threads = 16; 29761: # 746 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t max_total_wal_size = 0; 29761: 29761: 29761: std::shared_ptr statistics = nullptr; 29761: # 759 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool use_fsync = false; 29761: # 785 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::vector db_paths; 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::string db_log_dir = ""; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::string wal_dir = ""; 29761: # 810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t delete_obsolete_files_period_micros = 6ULL * 60 * 60 * 1000000; 29761: 29761: 29761: 29761: 29761: 29761: 29761: int max_background_jobs = 2; 29761: # 835 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: int max_background_compactions = -1; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t max_subcompactions = 1; 29761: # 865 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: int max_background_flushes = -1; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t max_log_file_size = 0; 29761: 29761: 29761: 29761: 29761: 29761: size_t log_file_time_to_roll = 0; 29761: 29761: 29761: 29761: size_t keep_log_file_num = 1000; 29761: # 892 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t recycle_log_file_num = 0; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t max_manifest_file_size = 1024 * 1024 * 1024; 29761: 29761: 29761: int table_cache_numshardbits = 6; 29761: # 920 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t WAL_ttl_seconds = 0; 29761: uint64_t WAL_size_limit_MB = 0; 29761: 29761: 29761: 29761: 29761: 29761: size_t manifest_preallocation_size = 4 * 1024 * 1024; 29761: # 940 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_mmap_reads = false; 29761: 29761: 29761: 29761: 29761: bool allow_mmap_writes = false; 29761: # 957 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool use_direct_reads = false; 29761: 29761: 29761: 29761: bool use_direct_io_for_flush_and_compaction = false; 29761: # 972 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_fallocate = true; 29761: 29761: 29761: bool is_fd_close_on_exec = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: unsigned int stats_dump_period_sec = 600; 29761: 29761: 29761: 29761: unsigned int stats_persist_period_sec = 600; 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool persist_stats_to_disk = false; 29761: 29761: 29761: 29761: 29761: size_t stats_history_buffer_size = 1024 * 1024; 29761: 29761: 29761: 29761: 29761: bool advise_random_on_open = true; 29761: # 1020 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t db_write_buffer_size = 0; 29761: # 1037 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr write_buffer_manager = nullptr; 29761: # 1046 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t compaction_readahead_size = 2 * 1024 * 1024; 29761: # 1063 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t random_access_max_buffer_size = 1024 * 1024; 29761: # 1074 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t writable_file_max_buffer_size = 1024 * 1024; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool use_adaptive_mutex = false; 29761: 29761: 29761: DBOptions(); 29761: 29761: explicit DBOptions(const Options& options); 29761: 29761: void Dump(Logger* log) const; 29761: # 1106 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t bytes_per_sync = 0; 29761: # 1116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t wal_bytes_per_sync = 0; 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool strict_bytes_per_sync = false; 29761: 29761: 29761: 29761: std::vector> listeners; 29761: 29761: 29761: 29761: 29761: 29761: bool enable_thread_tracking = false; 29761: # 1165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t delayed_write_rate = 0; 29761: # 1180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool enable_pipelined_write = false; 29761: # 1206 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool unordered_write = false; 29761: # 1216 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_concurrent_memtable_write = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool enable_write_thread_adaptive_yield = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t max_write_batch_group_size_bytes = 1 << 20; 29761: # 1240 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t write_thread_max_yield_usec = 100; 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t write_thread_slow_yield_usec = 3; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool skip_stats_update_on_db_open = false; 29761: # 1268 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool skip_checking_sst_file_sizes_on_db_open = false; 29761: 29761: 29761: 29761: WALRecoveryMode wal_recovery_mode = WALRecoveryMode::kPointInTimeRecovery; 29761: 29761: 29761: 29761: bool allow_2pc = false; 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr row_cache = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: 29761: WalFilter* wal_filter = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool fail_if_options_file_error = true; 29761: 29761: 29761: 29761: 29761: bool dump_malloc_stats = false; 29761: # 1311 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool avoid_flush_during_recovery = false; 29761: # 1320 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool avoid_flush_during_shutdown = false; 29761: # 1335 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_ingest_behind = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool two_write_queues = false; 29761: 29761: 29761: 29761: 29761: bool manual_wal_flush = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: CompressionType wal_compression = kNoCompression; 29761: # 1363 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool background_close_inactive_wals = false; 29761: # 1377 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool atomic_flush = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool avoid_unnecessary_blocking_io = false; 29761: # 1397 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool write_dbid_to_manifest = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool write_identity_file = true; 29761: # 1415 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool prefix_seek_opt_in_only = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t log_readahead_size = 0; 29761: # 1431 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr file_checksum_gen_factory = nullptr; 29761: # 1480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool best_efforts_recovery = false; 29761: # 1490 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: int max_bgerror_resume_count = 0x7fffffff 29761: # 1490 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t bgerror_resume_retry_interval = 1000000; 29761: # 1506 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_data_in_errors = false; 29761: # 1519 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::string db_host_id = kHostnameForDbHostId; 29761: # 1529 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: FileTypeSet checksum_handoff_file_types; 29761: # 1538 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr compaction_service = nullptr; 29761: # 1550 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: CacheTier lowest_used_cache_tier = CacheTier::kNonVolatileBlockTier; 29761: # 1565 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool enforce_single_del_contracts = true; 29761: # 1582 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::string daily_offpeak_time_utc = ""; 29761: # 1592 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t follower_refresh_catchup_period_ms = 10000; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t follower_catchup_retry_count = 10; 29761: 29761: 29761: 29761: uint64_t follower_catchup_retry_wait_ms = 100; 29761: 29761: 29761: 29761: 29761: 29761: Temperature metadata_write_temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: 29761: Temperature wal_write_temperature = Temperature::kUnknown; 29761: 29761: }; 29761: 29761: 29761: struct Options : public DBOptions, public ColumnFamilyOptions { 29761: 29761: Options() : DBOptions(), ColumnFamilyOptions() {} 29761: 29761: Options(const DBOptions& db_options, 29761: const ColumnFamilyOptions& column_family_options) 29761: : DBOptions(db_options), ColumnFamilyOptions(column_family_options) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: Options* OldDefaults(int rocksdb_major_version = 4, 29761: int rocksdb_minor_version = 6); 29761: 29761: void Dump(Logger* log) const; 29761: 29761: void DumpCFOptions(Logger* log) const; 29761: # 1650 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: Options* PrepareForBulkLoad(); 29761: 29761: 29761: 29761: Options* OptimizeForSmallDb(); 29761: 29761: 29761: 29761: 29761: 29761: Options* DisableExtraChecks(); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum ReadTier { 29761: kReadAllTier = 0x0, 29761: kBlockCacheTier = 0x1, 29761: kPersistedTier = 0x2, 29761: 29761: 29761: 29761: kMemtableTier = 0x3 29761: }; 29761: 29761: 29761: struct ReadOptions { 29761: 29761: 29761: 29761: 29761: 29761: 29761: const Snapshot* snapshot = nullptr; 29761: # 1699 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: const Slice* timestamp = nullptr; 29761: const Slice* iter_start_ts = nullptr; 29761: # 1711 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::chrono::microseconds deadline = std::chrono::microseconds::zero(); 29761: 29761: 29761: 29761: 29761: 29761: std::chrono::microseconds io_timeout = std::chrono::microseconds::zero(); 29761: 29761: 29761: 29761: 29761: ReadTier read_tier = kReadAllTier; 29761: # 1736 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 29761: 29761: 29761: 29761: 29761: uint64_t value_size_soft_limit = std::numeric_limits::max(); 29761: 29761: 29761: 29761: 29761: 29761: std::optional merge_operand_count_threshold; 29761: 29761: 29761: 29761: bool verify_checksums = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool fill_cache = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool ignore_range_deletions = false; 29761: 29761: 29761: 29761: 29761: bool async_io = false; 29761: # 1779 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool optimize_multiget_for_io = true; 29761: # 1792 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t readahead_size = 0; 29761: 29761: 29761: 29761: 29761: uint64_t max_skippable_internal_keys = 0; 29761: # 1810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: const Slice* iterate_lower_bound = nullptr; 29761: # 1830 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: const Slice* iterate_upper_bound = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: bool tailing = false; 29761: 29761: 29761: 29761: bool managed = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool total_order_seek = false; 29761: # 1863 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool auto_prefix_mode = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool prefix_same_as_start = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool pin_data = false; 29761: # 1888 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool adaptive_readahead = false; 29761: 29761: 29761: 29761: 29761: bool background_purge_on_iterator_cleanup = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::function table_filter; 29761: # 1928 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool auto_readahead_size = true; 29761: # 1941 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_unprepared_value = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29761: 29761: 29761: 29761: ReadOptions() {} 29761: ReadOptions(bool _verify_checksums, bool _fill_cache); 29761: explicit ReadOptions(Env::IOActivity _io_activity); 29761: }; 29761: 29761: 29761: struct WriteOptions { 29761: # 1975 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool sync = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool disableWAL = false; 29761: 29761: 29761: 29761: 29761: 29761: bool ignore_missing_column_families = false; 29761: 29761: 29761: 29761: 29761: bool no_slowdown = false; 29761: # 2003 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool low_pri = false; 29761: # 2012 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool memtable_insert_hint_per_batch = false; 29761: # 2027 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t protection_bytes_per_key = 0; 29761: 29761: 29761: 29761: 29761: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29761: 29761: WriteOptions() {} 29761: explicit WriteOptions(Env::IOActivity _io_activity); 29761: explicit WriteOptions( 29761: Env::IOPriority _rate_limiter_priority, 29761: Env::IOActivity _io_activity = Env::IOActivity::kUnknown); 29761: }; 29761: 29761: 29761: struct FlushOptions { 29761: 29761: 29761: bool wait; 29761: 29761: 29761: 29761: 29761: 29761: bool allow_write_stall; 29761: 29761: FlushOptions() : wait(true), allow_write_stall(false) {} 29761: }; 29761: 29761: 29761: Status CreateLoggerFromOptions(const std::string& dbname, 29761: const DBOptions& options, 29761: std::shared_ptr* logger); 29761: 29761: 29761: struct CompactionOptions { 29761: # 2082 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: CompressionType compression; 29761: 29761: 29761: 29761: uint64_t output_file_size_limit; 29761: 29761: 29761: uint32_t max_subcompactions; 29761: 29761: CompactionOptions() 29761: : compression(kDisableCompressionOption), 29761: output_file_size_limit(std::numeric_limits::max()), 29761: max_subcompactions(0) {} 29761: }; 29761: 29761: 29761: 29761: enum class BottommostLevelCompaction { 29761: 29761: kSkip, 29761: 29761: 29761: 29761: 29761: 29761: kIfHaveCompactionFilter, 29761: 29761: kForce, 29761: 29761: 29761: kForceOptimized, 29761: }; 29761: 29761: 29761: 29761: enum class BlobGarbageCollectionPolicy { 29761: 29761: kForce, 29761: 29761: kDisable, 29761: 29761: kUseDefault, 29761: }; 29761: 29761: 29761: struct CompactRangeOptions { 29761: 29761: 29761: 29761: 29761: bool exclusive_manual_compaction = false; 29761: 29761: 29761: 29761: bool change_level = false; 29761: 29761: 29761: int target_level = -1; 29761: 29761: 29761: uint32_t target_path_id = 0; 29761: 29761: 29761: BottommostLevelCompaction bottommost_level_compaction = 29761: BottommostLevelCompaction::kIfHaveCompactionFilter; 29761: 29761: 29761: bool allow_write_stall = false; 29761: 29761: uint32_t max_subcompactions = 0; 29761: 29761: 29761: const Slice* full_history_ts_low = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: std::atomic* canceled = nullptr; 29761: # 2173 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: BlobGarbageCollectionPolicy blob_garbage_collection_policy = 29761: BlobGarbageCollectionPolicy::kUseDefault; 29761: 29761: 29761: 29761: 29761: 29761: double blob_garbage_collection_age_cutoff = -1; 29761: }; 29761: 29761: 29761: struct IngestExternalFileOptions { 29761: 29761: 29761: 29761: 29761: 29761: bool move_files = false; 29761: 29761: 29761: bool link_files = false; 29761: 29761: 29761: bool failed_move_fall_back_to_copy = true; 29761: 29761: 29761: bool snapshot_consistency = true; 29761: 29761: 29761: 29761: 29761: bool allow_global_seqno = true; 29761: 29761: 29761: bool allow_blocking_flush = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool ingest_behind = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool write_global_seqno = false; 29761: 29761: 29761: 29761: 29761: bool verify_checksums_before_ingest = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t verify_checksums_readahead_size = 0; 29761: # 2255 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool verify_file_checksum = true; 29761: # 2265 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool fail_if_not_bottommost_level = false; 29761: # 2278 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_db_generated_files = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool fill_cache = true; 29761: }; 29761: 29761: enum TraceFilterType : uint64_t { 29761: 29761: kTraceFilterNone = 0x0, 29761: 29761: kTraceFilterGet = 0x1 << 0, 29761: 29761: kTraceFilterWrite = 0x1 << 1, 29761: 29761: kTraceFilterIteratorSeek = 0x1 << 2, 29761: 29761: kTraceFilterIteratorSeekForPrev = 0x1 << 3, 29761: 29761: kTraceFilterMultiGet = 0x1 << 4, 29761: }; 29761: 29761: 29761: struct TraceOptions { 29761: 29761: 29761: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 29761: 29761: 29761: uint64_t sampling_frequency = 1; 29761: 29761: uint64_t filter = kTraceFilterNone; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool preserve_write_order = false; 29761: }; 29761: 29761: 29761: struct ImportColumnFamilyOptions { 29761: 29761: bool move_files = false; 29761: }; 29761: 29761: 29761: struct SizeApproximationOptions { 29761: 29761: 29761: bool include_memtables = false; 29761: 29761: 29761: bool include_files = true; 29761: # 2346 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: double files_size_error_margin = -1.0; 29761: }; 29761: 29761: struct CompactionServiceOptionsOverride { 29761: Env* env = Env::Default(); 29761: std::shared_ptr file_checksum_gen_factory = nullptr; 29761: 29761: const Comparator* comparator = BytewiseComparator(); 29761: std::shared_ptr merge_operator = nullptr; 29761: const CompactionFilter* compaction_filter = nullptr; 29761: std::shared_ptr compaction_filter_factory = nullptr; 29761: std::shared_ptr prefix_extractor = nullptr; 29761: std::shared_ptr table_factory; 29761: std::shared_ptr sst_partitioner_factory = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::vector> listeners; 29761: 29761: 29761: 29761: 29761: std::shared_ptr statistics = nullptr; 29761: 29761: 29761: 29761: std::vector> 29761: table_properties_collector_factories; 29761: }; 29761: 29761: struct OpenAndCompactOptions { 29761: 29761: std::atomic* canceled = nullptr; 29761: }; 29761: 29761: struct LiveFilesStorageInfoOptions { 29761: 29761: bool include_checksum_info = false; 29761: 29761: 29761: 29761: uint64_t wal_size_for_flush = 0; 29761: }; 29761: 29761: struct WaitForCompactOptions { 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool abort_on_pause = false; 29761: 29761: 29761: bool flush = false; 29761: 29761: 29761: bool wait_for_purge = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool close_db = false; 29761: 29761: 29761: 29761: 29761: 29761: std::chrono::microseconds timeout = std::chrono::microseconds::zero(); 29761: }; 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_reader_caller.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: enum TableReaderCaller : char { 29761: kUserGet = 1, 29761: kUserMultiGet = 2, 29761: kUserIterator = 3, 29761: kUserApproximateSize = 4, 29761: kUserVerifyChecksum = 5, 29761: kSSTDumpTool = 6, 29761: kExternalSSTIngestion = 7, 29761: kRepair = 8, 29761: kPrefetch = 9, 29761: kCompaction = 10, 29761: 29761: 29761: kCompactionRefill = 11, 29761: 29761: 29761: kFlush = 12, 29761: 29761: kSSTFileReader = 13, 29761: 29761: 29761: kUncategorized = 14, 29761: 29761: kMaxBlockCacheLookupCaller 29761: }; 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_reader_writer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_reader_writer.h" 29761: class TraceWriter { 29761: public: 29761: virtual ~TraceWriter() = default; 29761: 29761: virtual Status Write(const Slice& data) = 0; 29761: virtual Status Close() = 0; 29761: virtual uint64_t GetFileSize() = 0; 29761: }; 29761: 29761: 29761: 29761: class TraceReader { 29761: public: 29761: virtual ~TraceReader() = default; 29761: 29761: virtual Status Read(std::string* data) = 0; 29761: virtual Status Close() = 0; 29761: 29761: 29761: 29761: virtual Status Reset() = 0; 29761: }; 29761: 29761: 29761: 29761: Status NewFileTraceWriter(Env* env, const EnvOptions& env_options, 29761: const std::string& trace_filename, 29761: std::unique_ptr* trace_writer); 29761: Status NewFileTraceReader(Env* env, const EnvOptions& env_options, 29761: const std::string& trace_filename, 29761: std::unique_ptr* trace_reader); 29761: 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_record.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_record.h" 29761: namespace rocksdb { 29761: 29761: class ColumnFamilyHandle; 29761: class DB; 29761: 29761: 29761: enum TraceType : char { 29761: kTraceNone = 0, 29761: kTraceBegin = 1, 29761: kTraceEnd = 2, 29761: 29761: kTraceWrite = 3, 29761: kTraceGet = 4, 29761: kTraceIteratorSeek = 5, 29761: kTraceIteratorSeekForPrev = 6, 29761: 29761: kBlockTraceIndexBlock = 7, 29761: 29761: kBlockTraceFilterBlock = 8, 29761: kBlockTraceDataBlock = 9, 29761: kBlockTraceUncompressionDictBlock = 10, 29761: kBlockTraceRangeDeletionBlock = 11, 29761: 29761: kIOTracer = 12, 29761: 29761: kTraceMultiGet = 13, 29761: 29761: kTraceMax, 29761: }; 29761: 29761: class GetQueryTraceRecord; 29761: class IteratorSeekQueryTraceRecord; 29761: class MultiGetQueryTraceRecord; 29761: class TraceRecordResult; 29761: class WriteQueryTraceRecord; 29761: 29761: 29761: class TraceRecord { 29761: public: 29761: explicit TraceRecord(uint64_t timestamp); 29761: 29761: virtual ~TraceRecord() = default; 29761: 29761: 29761: virtual TraceType GetTraceType() const = 0; 29761: 29761: 29761: virtual uint64_t GetTimestamp() const; 29761: 29761: class Handler { 29761: public: 29761: virtual ~Handler() = default; 29761: 29761: virtual Status Handle(const WriteQueryTraceRecord& record, 29761: std::unique_ptr* result) = 0; 29761: 29761: virtual Status Handle(const GetQueryTraceRecord& record, 29761: std::unique_ptr* result) = 0; 29761: 29761: virtual Status Handle(const IteratorSeekQueryTraceRecord& record, 29761: std::unique_ptr* result) = 0; 29761: 29761: virtual Status Handle(const MultiGetQueryTraceRecord& record, 29761: std::unique_ptr* result) = 0; 29761: }; 29761: 29761: 29761: virtual Status Accept(Handler* handler, 29761: std::unique_ptr* result) = 0; 29761: 29761: 29761: static Handler* NewExecutionHandler( 29761: DB* db, const std::vector& handles); 29761: 29761: private: 29761: uint64_t timestamp_; 29761: }; 29761: 29761: 29761: class QueryTraceRecord : public TraceRecord { 29761: public: 29761: explicit QueryTraceRecord(uint64_t timestamp); 29761: }; 29761: 29761: 29761: class WriteQueryTraceRecord : public QueryTraceRecord { 29761: public: 29761: WriteQueryTraceRecord(PinnableSlice&& write_batch_rep, uint64_t timestamp); 29761: 29761: WriteQueryTraceRecord(const std::string& write_batch_rep, uint64_t timestamp); 29761: 29761: ~WriteQueryTraceRecord() override; 29761: 29761: TraceType GetTraceType() const override { return kTraceWrite; } 29761: 29761: 29761: virtual Slice GetWriteBatchRep() const; 29761: 29761: Status Accept(Handler* handler, 29761: std::unique_ptr* result) override; 29761: 29761: private: 29761: PinnableSlice rep_; 29761: }; 29761: 29761: 29761: class GetQueryTraceRecord : public QueryTraceRecord { 29761: public: 29761: GetQueryTraceRecord(uint32_t column_family_id, PinnableSlice&& key, 29761: uint64_t timestamp); 29761: 29761: GetQueryTraceRecord(uint32_t column_family_id, const std::string& key, 29761: uint64_t timestamp); 29761: 29761: ~GetQueryTraceRecord() override; 29761: 29761: TraceType GetTraceType() const override { return kTraceGet; } 29761: 29761: 29761: virtual uint32_t GetColumnFamilyID() const; 29761: 29761: 29761: virtual Slice GetKey() const; 29761: 29761: Status Accept(Handler* handler, 29761: std::unique_ptr* result) override; 29761: 29761: private: 29761: uint32_t cf_id_; 29761: PinnableSlice key_; 29761: }; 29761: 29761: 29761: class IteratorQueryTraceRecord : public QueryTraceRecord { 29761: public: 29761: explicit IteratorQueryTraceRecord(uint64_t timestamp); 29761: 29761: IteratorQueryTraceRecord(PinnableSlice&& lower_bound, 29761: PinnableSlice&& upper_bound, uint64_t timestamp); 29761: 29761: IteratorQueryTraceRecord(const std::string& lower_bound, 29761: const std::string& upper_bound, uint64_t timestamp); 29761: 29761: ~IteratorQueryTraceRecord() override; 29761: 29761: 29761: 29761: virtual Slice GetLowerBound() const; 29761: virtual Slice GetUpperBound() const; 29761: 29761: private: 29761: PinnableSlice lower_; 29761: PinnableSlice upper_; 29761: }; 29761: 29761: 29761: class IteratorSeekQueryTraceRecord : public IteratorQueryTraceRecord { 29761: public: 29761: 29761: enum SeekType { 29761: kSeek = kTraceIteratorSeek, 29761: kSeekForPrev = kTraceIteratorSeekForPrev 29761: }; 29761: 29761: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29761: PinnableSlice&& key, uint64_t timestamp); 29761: 29761: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29761: const std::string& key, uint64_t timestamp); 29761: 29761: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29761: PinnableSlice&& key, PinnableSlice&& lower_bound, 29761: PinnableSlice&& upper_bound, uint64_t timestamp); 29761: 29761: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29761: const std::string& key, 29761: const std::string& lower_bound, 29761: const std::string& upper_bound, 29761: uint64_t timestamp); 29761: 29761: ~IteratorSeekQueryTraceRecord() override; 29761: 29761: 29761: TraceType GetTraceType() const override; 29761: 29761: 29761: virtual SeekType GetSeekType() const; 29761: 29761: 29761: virtual uint32_t GetColumnFamilyID() const; 29761: 29761: 29761: virtual Slice GetKey() const; 29761: 29761: Status Accept(Handler* handler, 29761: std::unique_ptr* result) override; 29761: 29761: private: 29761: SeekType type_; 29761: uint32_t cf_id_; 29761: PinnableSlice key_; 29761: }; 29761: 29761: 29761: class MultiGetQueryTraceRecord : public QueryTraceRecord { 29761: public: 29761: MultiGetQueryTraceRecord(std::vector column_family_ids, 29761: std::vector&& keys, 29761: uint64_t timestamp); 29761: 29761: MultiGetQueryTraceRecord(std::vector column_family_ids, 29761: const std::vector& keys, 29761: uint64_t timestamp); 29761: 29761: ~MultiGetQueryTraceRecord() override; 29761: 29761: TraceType GetTraceType() const override { return kTraceMultiGet; } 29761: 29761: 29761: virtual std::vector GetColumnFamilyIDs() const; 29761: 29761: 29761: virtual std::vector GetKeys() const; 29761: 29761: Status Accept(Handler* handler, 29761: std::unique_ptr* result) override; 29761: 29761: private: 29761: std::vector cf_ids_; 29761: std::vector keys_; 29761: }; 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: struct BlockCacheTraceRecord { 29761: 29761: uint64_t access_timestamp = 0; 29761: 29761: 29761: 29761: 29761: std::string block_key; 29761: 29761: 29761: TraceType block_type = TraceType::kTraceMax; 29761: 29761: 29761: uint64_t block_size = 0; 29761: 29761: 29761: 29761: 29761: uint64_t cf_id = 0; 29761: 29761: 29761: std::string cf_name; 29761: 29761: 29761: uint32_t level = 0; 29761: 29761: 29761: uint64_t sst_fd_number = 0; 29761: 29761: 29761: 29761: 29761: TableReaderCaller caller = TableReaderCaller::kMaxBlockCacheLookupCaller; 29761: 29761: 29761: bool is_cache_hit = false; 29761: 29761: 29761: bool no_insert = false; 29761: 29761: 29761: 29761: 29761: uint64_t get_id = kReservedGetId; 29761: 29761: 29761: bool get_from_user_specified_snapshot = false; 29761: 29761: 29761: std::string referenced_key; 29761: 29761: 29761: 29761: 29761: uint64_t referenced_data_size = 0; 29761: 29761: 29761: uint64_t num_keys_in_block = 0; 29761: 29761: 29761: bool referenced_key_exist_in_block = false; 29761: 29761: static const uint64_t kReservedGetId; 29761: 29761: BlockCacheTraceRecord() {} 29761: 29761: BlockCacheTraceRecord(uint64_t _access_timestamp, std::string _block_key, 29761: TraceType _block_type, uint64_t _block_size, 29761: uint64_t _cf_id, std::string _cf_name, uint32_t _level, 29761: uint64_t _sst_fd_number, TableReaderCaller _caller, 29761: bool _is_cache_hit, bool _no_insert, uint64_t _get_id, 29761: bool _get_from_user_specified_snapshot = false, 29761: std::string _referenced_key = "", 29761: uint64_t _referenced_data_size = 0, 29761: uint64_t _num_keys_in_block = 0, 29761: bool _referenced_key_exist_in_block = false) 29761: : access_timestamp(_access_timestamp), 29761: block_key(_block_key), 29761: block_type(_block_type), 29761: block_size(_block_size), 29761: cf_id(_cf_id), 29761: cf_name(_cf_name), 29761: level(_level), 29761: sst_fd_number(_sst_fd_number), 29761: caller(_caller), 29761: is_cache_hit(_is_cache_hit), 29761: no_insert(_no_insert), 29761: get_id(_get_id), 29761: get_from_user_specified_snapshot(_get_from_user_specified_snapshot), 29761: referenced_key(_referenced_key), 29761: referenced_data_size(_referenced_data_size), 29761: num_keys_in_block(_num_keys_in_block), 29761: referenced_key_exist_in_block(_referenced_key_exist_in_block) {} 29761: }; 29761: 29761: 29761: struct BlockCacheTraceOptions { 29761: 29761: 29761: uint64_t sampling_frequency = 1; 29761: }; 29761: 29761: 29761: struct BlockCacheTraceWriterOptions { 29761: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 29761: }; 29761: 29761: 29761: 29761: 29761: class BlockCacheTraceWriter { 29761: public: 29761: virtual ~BlockCacheTraceWriter() {} 29761: 29761: 29761: virtual Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29761: const Slice& block_key, const Slice& cf_name, 29761: const Slice& referenced_key) = 0; 29761: 29761: 29761: 29761: virtual Status WriteHeader() = 0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: std::unique_ptr NewBlockCacheTraceWriter( 29761: SystemClock* clock, const BlockCacheTraceWriterOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 1 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Iterator : public IteratorBase { 29761: public: 29761: Iterator() {} 29761: 29761: Iterator(const Iterator&) = delete; 29761: void operator=(const Iterator&) = delete; 29761: 29761: virtual ~Iterator() override {} 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: virtual Slice value() const = 0; 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: virtual const WideColumns& columns() const { 29761: 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: (static_cast ( 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: false 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: "false" 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: ; 29761: return kNoWideColumns; 29761: } 29761: # 90 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: virtual Status GetProperty(std::string prop_name, std::string* prop); 29761: 29761: virtual Slice timestamp() const { 29761: 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: (static_cast ( 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: false 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: "false" 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: ; 29761: return Slice(); 29761: } 29761: }; 29761: 29761: 29761: Iterator* NewEmptyIterator(); 29761: 29761: 29761: Iterator* NewErrorIterator(const Status& status); 29761: 29761: } 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct FileStorageInfo { 29761: 29761: std::string relative_filename; 29761: 29761: 29761: std::string directory; 29761: 29761: 29761: 29761: uint64_t file_number = 0; 29761: 29761: FileType file_type = kTempFile; 29761: 29761: 29761: uint64_t size = 0; 29761: 29761: 29761: Temperature temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: 29761: 29761: std::string file_checksum; 29761: 29761: 29761: 29761: 29761: 29761: std::string file_checksum_func_name; 29761: }; 29761: 29761: 29761: 29761: struct LiveFileStorageInfo : public FileStorageInfo { 29761: 29761: 29761: 29761: 29761: 29761: std::string replacement_contents; 29761: 29761: 29761: 29761: 29761: bool trim_to_size = false; 29761: }; 29761: 29761: 29761: 29761: struct SstFileMetaData : public FileStorageInfo { 29761: SstFileMetaData() { file_type = kTableFile; } 29761: 29761: SstFileMetaData(const std::string& _file_name, uint64_t _file_number, 29761: const std::string& _directory, uint64_t _size, 29761: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno, 29761: const std::string& _smallestkey, 29761: const std::string& _largestkey, uint64_t _num_reads_sampled, 29761: bool _being_compacted, Temperature _temperature, 29761: uint64_t _oldest_blob_file_number, 29761: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 29761: uint64_t _epoch_number, std::string& _file_checksum, 29761: std::string& _file_checksum_func_name) 29761: : smallest_seqno(_smallest_seqno), 29761: largest_seqno(_largest_seqno), 29761: smallestkey(_smallestkey), 29761: largestkey(_largestkey), 29761: num_reads_sampled(_num_reads_sampled), 29761: being_compacted(_being_compacted), 29761: num_entries(0), 29761: num_deletions(0), 29761: oldest_blob_file_number(_oldest_blob_file_number), 29761: oldest_ancester_time(_oldest_ancester_time), 29761: file_creation_time(_file_creation_time), 29761: epoch_number(_epoch_number) { 29761: if (!_file_name.empty()) { 29761: if (_file_name[0] == '/') { 29761: relative_filename = _file_name.substr(1); 29761: name = _file_name; 29761: } else { 29761: relative_filename = _file_name; 29761: name = std::string("/") + _file_name; 29761: } 29761: 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: (static_cast ( 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: relative_filename.size() + 1 == name.size() 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: "relative_filename.size() + 1 == name.size()" 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: ; 29761: 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: (static_cast ( 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: relative_filename[0] != '/' 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: "relative_filename[0] != '/'" 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: ; 29761: 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: (static_cast ( 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: name[0] == '/' 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: "name[0] == '/'" 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: ; 29761: } 29761: directory = _directory; 29761: db_path = _directory; 29761: file_number = _file_number; 29761: file_type = kTableFile; 29761: size = _size; 29761: temperature = _temperature; 29761: file_checksum = _file_checksum; 29761: file_checksum_func_name = _file_checksum_func_name; 29761: } 29761: 29761: SequenceNumber smallest_seqno = 0; 29761: SequenceNumber largest_seqno = 0; 29761: std::string smallestkey; 29761: std::string largestkey; 29761: uint64_t num_reads_sampled = 0; 29761: bool being_compacted = 29761: false; 29761: 29761: uint64_t num_entries = 0; 29761: uint64_t num_deletions = 0; 29761: 29761: uint64_t oldest_blob_file_number = 0; 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: uint64_t oldest_ancester_time = 0; 29761: 29761: 29761: uint64_t file_creation_time = 0; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t epoch_number = 0; 29761: 29761: 29761: 29761: 29761: std::string smallest{}; 29761: std::string largest{}; 29761: 29761: 29761: 29761: 29761: std::string name; 29761: 29761: 29761: std::string db_path; 29761: }; 29761: 29761: 29761: struct LiveFileMetaData : SstFileMetaData { 29761: std::string column_family_name; 29761: int level; 29761: LiveFileMetaData() : column_family_name(), level(0) {} 29761: }; 29761: 29761: 29761: struct BlobMetaData { 29761: BlobMetaData() 29761: : blob_file_number(0), 29761: blob_file_size(0), 29761: total_blob_count(0), 29761: total_blob_bytes(0), 29761: garbage_blob_count(0), 29761: garbage_blob_bytes(0) {} 29761: 29761: BlobMetaData(uint64_t _file_number, const std::string& _file_name, 29761: const std::string& _file_path, uint64_t _file_size, 29761: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 29761: uint64_t _garbage_blob_count, uint64_t _garbage_blob_bytes, 29761: const std::string& _file_checksum, 29761: const std::string& _file_checksum_func_name) 29761: : blob_file_number(_file_number), 29761: blob_file_name(_file_name), 29761: blob_file_path(_file_path), 29761: blob_file_size(_file_size), 29761: total_blob_count(_total_blob_count), 29761: total_blob_bytes(_total_blob_bytes), 29761: garbage_blob_count(_garbage_blob_count), 29761: garbage_blob_bytes(_garbage_blob_bytes), 29761: checksum_method(_file_checksum), 29761: checksum_value(_file_checksum_func_name) {} 29761: uint64_t blob_file_number; 29761: std::string blob_file_name; 29761: std::string blob_file_path; 29761: uint64_t blob_file_size; 29761: uint64_t total_blob_count; 29761: uint64_t total_blob_bytes; 29761: uint64_t garbage_blob_count; 29761: uint64_t garbage_blob_bytes; 29761: std::string checksum_method; 29761: std::string checksum_value; 29761: }; 29761: 29761: 29761: struct LevelMetaData { 29761: LevelMetaData(int _level, uint64_t _size, 29761: const std::vector&& _files) 29761: : level(_level), size(_size), files(_files) {} 29761: 29761: 29761: const int level; 29761: 29761: 29761: const uint64_t size; 29761: 29761: const std::vector files; 29761: }; 29761: 29761: 29761: struct ColumnFamilyMetaData { 29761: ColumnFamilyMetaData() : size(0), file_count(0), name("") {} 29761: ColumnFamilyMetaData(const std::string& _name, uint64_t _size, 29761: const std::vector&& _levels) 29761: : size(_size), name(_name), levels(_levels) {} 29761: 29761: 29761: 29761: uint64_t size; 29761: 29761: size_t file_count; 29761: 29761: std::string name; 29761: 29761: std::vector levels; 29761: 29761: 29761: uint64_t blob_file_size = 0; 29761: 29761: size_t blob_file_count = 0; 29761: 29761: std::vector blob_files; 29761: }; 29761: 29761: 29761: 29761: struct ExportImportFilesMetaData { 29761: std::string db_comparator_name; 29761: std::vector files; 29761: }; 29761: } 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/snapshot.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class DB; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class Snapshot { 29761: public: 29761: virtual SequenceNumber GetSequenceNumber() const = 0; 29761: 29761: 29761: 29761: virtual int64_t GetUnixTime() const = 0; 29761: 29761: virtual uint64_t GetTimestamp() const = 0; 29761: 29761: protected: 29761: virtual ~Snapshot(); 29761: }; 29761: 29761: 29761: 29761: 29761: class ManagedSnapshot { 29761: public: 29761: explicit ManagedSnapshot(DB* db); 29761: 29761: 29761: ManagedSnapshot(DB* db, const Snapshot* _snapshot); 29761: 29761: ~ManagedSnapshot(); 29761: 29761: const Snapshot* snapshot(); 29761: 29761: private: 29761: DB* db_; 29761: const Snapshot* snapshot_; 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29761: namespace rocksdb { 29761: 29761: class Comparator; 29761: 29761: 29761: 29761: struct ExternalSstFileInfo { 29761: ExternalSstFileInfo() 29761: : file_path(""), 29761: smallest_key(""), 29761: largest_key(""), 29761: smallest_range_del_key(""), 29761: largest_range_del_key(""), 29761: file_checksum(""), 29761: file_checksum_func_name(""), 29761: sequence_number(0), 29761: file_size(0), 29761: num_entries(0), 29761: num_range_del_entries(0), 29761: version(0) {} 29761: 29761: ExternalSstFileInfo(const std::string& _file_path, 29761: const std::string& _smallest_key, 29761: const std::string& _largest_key, 29761: SequenceNumber _sequence_number, uint64_t _file_size, 29761: uint64_t _num_entries, int32_t _version) 29761: : file_path(_file_path), 29761: smallest_key(_smallest_key), 29761: largest_key(_largest_key), 29761: smallest_range_del_key(""), 29761: largest_range_del_key(""), 29761: file_checksum(""), 29761: file_checksum_func_name(""), 29761: sequence_number(_sequence_number), 29761: file_size(_file_size), 29761: num_entries(_num_entries), 29761: num_range_del_entries(0), 29761: version(_version) {} 29761: 29761: std::string file_path; 29761: std::string smallest_key; 29761: std::string largest_key; 29761: std::string 29761: smallest_range_del_key; 29761: std::string largest_range_del_key; 29761: std::string file_checksum; 29761: std::string file_checksum_func_name; 29761: SequenceNumber sequence_number; 29761: uint64_t file_size; 29761: uint64_t num_entries; 29761: uint64_t num_range_del_entries; 29761: int32_t version; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class SstFileWriter { 29761: public: 29761: # 95 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29761: SstFileWriter(const EnvOptions& env_options, const Options& options, 29761: ColumnFamilyHandle* column_family = nullptr, 29761: bool invalidate_page_cache = true, 29761: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 29761: bool skip_filters = false) 29761: : SstFileWriter(env_options, options, options.comparator, column_family, 29761: invalidate_page_cache, io_priority, skip_filters) {} 29761: 29761: 29761: SstFileWriter(const EnvOptions& env_options, const Options& options, 29761: const Comparator* user_comparator, 29761: ColumnFamilyHandle* column_family = nullptr, 29761: bool invalidate_page_cache = true, 29761: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 29761: bool skip_filters = false); 29761: 29761: ~SstFileWriter(); 29761: 29761: 29761: Status Open(const std::string& file_path, 29761: Temperature temp = Temperature::kUnknown); 29761: 29761: 29761: 29761: 29761: 29761: __attribute__((__deprecated__)) Status Add(const Slice& user_key, const Slice& value); 29761: 29761: 29761: 29761: 29761: 29761: Status Put(const Slice& user_key, const Slice& value); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status Put(const Slice& user_key, const Slice& timestamp, const Slice& value); 29761: 29761: 29761: 29761: Status PutEntity(const Slice& user_key, const WideColumns& columns); 29761: 29761: 29761: 29761: 29761: 29761: Status Merge(const Slice& user_key, const Slice& value); 29761: 29761: 29761: 29761: 29761: 29761: Status Delete(const Slice& user_key); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status Delete(const Slice& user_key, const Slice& timestamp); 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29761: Status DeleteRange(const Slice& begin_key, const Slice& end_key); 29761: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29761: Status DeleteRange(const Slice& begin_key, const Slice& end_key, 29761: const Slice& timestamp); 29761: 29761: 29761: 29761: 29761: 29761: Status Finish(ExternalSstFileInfo* file_info = nullptr); 29761: 29761: 29761: uint64_t FileSize(); 29761: 29761: 29761: static bool CreatedBySstFileWriter(const TableProperties&); 29761: 29761: private: 29761: void InvalidatePageCache(bool closing); 29761: struct Rep; 29761: std::unique_ptr rep_; 29761: }; 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/transaction_log.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 1 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class Status; 29761: class ColumnFamilyHandle; 29761: class WriteBatch; 29761: struct SliceParts; 29761: 29761: 29761: 29761: 29761: class WriteBatchBase { 29761: public: 29761: virtual ~WriteBatchBase() {} 29761: 29761: 29761: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) = 0; 29761: virtual Status Put(const Slice& key, const Slice& value) = 0; 29761: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts, const Slice& value) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 29761: const SliceParts& value); 29761: virtual Status Put(const SliceParts& key, const SliceParts& value); 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29761: virtual Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value, uint64_t write_unix_time) = 0; 29761: 29761: 29761: 29761: virtual Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 29761: const WideColumns& columns) = 0; 29761: 29761: 29761: 29761: virtual Status PutEntity(const Slice& key, 29761: const AttributeGroups& attribute_groups) = 0; 29761: 29761: 29761: 29761: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) = 0; 29761: virtual Status Merge(const Slice& key, const Slice& value) = 0; 29761: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts, const Slice& value) = 0; 29761: 29761: 29761: virtual Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 29761: const SliceParts& value); 29761: virtual Status Merge(const SliceParts& key, const SliceParts& value); 29761: 29761: 29761: virtual Status Delete(ColumnFamilyHandle* column_family, 29761: const Slice& key) = 0; 29761: virtual Status Delete(const Slice& key) = 0; 29761: virtual Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts) = 0; 29761: 29761: 29761: virtual Status Delete(ColumnFamilyHandle* column_family, 29761: const SliceParts& key); 29761: virtual Status Delete(const SliceParts& key); 29761: 29761: 29761: 29761: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29761: const Slice& key) = 0; 29761: virtual Status SingleDelete(const Slice& key) = 0; 29761: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29761: const Slice& key, const Slice& ts) = 0; 29761: 29761: 29761: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29761: const SliceParts& key); 29761: virtual Status SingleDelete(const SliceParts& key); 29761: 29761: 29761: 29761: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29761: const Slice& begin_key, const Slice& end_key) = 0; 29761: virtual Status DeleteRange(const Slice& begin_key, const Slice& end_key) = 0; 29761: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29761: const Slice& begin_key, const Slice& end_key, 29761: const Slice& ts) = 0; 29761: 29761: 29761: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29761: const SliceParts& begin_key, 29761: const SliceParts& end_key); 29761: virtual Status DeleteRange(const SliceParts& begin_key, 29761: const SliceParts& end_key); 29761: # 135 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29761: virtual Status PutLogData(const Slice& blob) = 0; 29761: 29761: 29761: virtual void Clear() = 0; 29761: 29761: 29761: 29761: 29761: virtual WriteBatch* GetWriteBatch() = 0; 29761: 29761: 29761: 29761: virtual void SetSavePoint() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status RollbackToSavePoint() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status PopSavePoint() = 0; 29761: 29761: 29761: virtual void SetMaxBytes(size_t max_bytes) = 0; 29761: }; 29761: 29761: } 29761: # 37 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class ColumnFamilyHandle; 29761: struct SavePoints; 29761: struct SliceParts; 29761: 29761: struct SavePoint { 29761: size_t size; 29761: uint32_t count; 29761: uint32_t content_flags; 29761: 29761: SavePoint() : size(0), count(0), content_flags(0) {} 29761: 29761: SavePoint(size_t _size, uint32_t _count, uint32_t _flags) 29761: : size(_size), count(_count), content_flags(_flags) {} 29761: 29761: void clear() { 29761: size = 0; 29761: count = 0; 29761: content_flags = 0; 29761: } 29761: 29761: bool is_cleared() const { return (size | count | content_flags) == 0; } 29761: }; 29761: 29761: class WriteBatch : public WriteBatchBase { 29761: public: 29761: explicit WriteBatch(size_t reserved_bytes = 0, size_t max_bytes = 0) 29761: : WriteBatch(reserved_bytes, max_bytes, 0, 0) {} 29761: 29761: 29761: 29761: 29761: explicit WriteBatch(size_t reserved_bytes, size_t max_bytes, 29761: size_t protection_bytes_per_key, size_t default_cf_ts_sz); 29761: ~WriteBatch() override; 29761: 29761: using WriteBatchBase::Put; 29761: 29761: 29761: 29761: 29761: 29761: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) override; 29761: Status Put(const Slice& key, const Slice& value) override { 29761: return Put(nullptr, key, value); 29761: } 29761: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts, const Slice& value) override; 29761: # 97 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 29761: const SliceParts& value) override; 29761: Status Put(const SliceParts& key, const SliceParts& value) override { 29761: return Put(nullptr, key, value); 29761: } 29761: 29761: using WriteBatchBase::TimedPut; 29761: 29761: 29761: 29761: 29761: Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value, uint64_t write_unix_time) override; 29761: 29761: 29761: 29761: using WriteBatchBase::PutEntity; 29761: Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 29761: const WideColumns& columns) override; 29761: 29761: 29761: 29761: Status PutEntity(const Slice& key, 29761: const AttributeGroups& attribute_groups) override; 29761: 29761: using WriteBatchBase::Delete; 29761: 29761: 29761: 29761: 29761: 29761: Status Delete(ColumnFamilyHandle* column_family, const Slice& key) override; 29761: Status Delete(const Slice& key) override { return Delete(nullptr, key); } 29761: Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts) override; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status Delete(ColumnFamilyHandle* column_family, 29761: const SliceParts& key) override; 29761: Status Delete(const SliceParts& key) override { return Delete(nullptr, key); } 29761: 29761: using WriteBatchBase::SingleDelete; 29761: 29761: Status SingleDelete(ColumnFamilyHandle* column_family, 29761: const Slice& key) override; 29761: Status SingleDelete(const Slice& key) override { 29761: return SingleDelete(nullptr, key); 29761: } 29761: Status SingleDelete(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts) override; 29761: 29761: 29761: Status SingleDelete(ColumnFamilyHandle* column_family, 29761: const SliceParts& key) override; 29761: Status SingleDelete(const SliceParts& key) override { 29761: return SingleDelete(nullptr, key); 29761: } 29761: 29761: using WriteBatchBase::DeleteRange; 29761: 29761: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 29761: const Slice& end_key) override; 29761: Status DeleteRange(const Slice& begin_key, const Slice& end_key) override { 29761: return DeleteRange(nullptr, begin_key, end_key); 29761: } 29761: 29761: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 29761: const Slice& end_key, const Slice& ts) override; 29761: 29761: 29761: Status DeleteRange(ColumnFamilyHandle* column_family, 29761: const SliceParts& begin_key, 29761: const SliceParts& end_key) override; 29761: Status DeleteRange(const SliceParts& begin_key, 29761: const SliceParts& end_key) override { 29761: return DeleteRange(nullptr, begin_key, end_key); 29761: } 29761: 29761: using WriteBatchBase::Merge; 29761: 29761: 29761: Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) override; 29761: Status Merge(const Slice& key, const Slice& value) override { 29761: return Merge(nullptr, key, value); 29761: } 29761: Status Merge(ColumnFamilyHandle* , const Slice& , 29761: const Slice& , const Slice& ) override; 29761: 29761: 29761: Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 29761: const SliceParts& value) override; 29761: Status Merge(const SliceParts& key, const SliceParts& value) override { 29761: return Merge(nullptr, key, value); 29761: } 29761: 29761: using WriteBatchBase::PutLogData; 29761: # 208 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: Status PutLogData(const Slice& blob) override; 29761: 29761: using WriteBatchBase::Clear; 29761: 29761: 29761: 29761: void Clear() override; 29761: 29761: 29761: 29761: void SetSavePoint() override; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status RollbackToSavePoint() override; 29761: 29761: 29761: 29761: 29761: 29761: Status PopSavePoint() override; 29761: 29761: 29761: 29761: class Handler { 29761: public: 29761: virtual ~Handler(); 29761: # 246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: virtual Status PutCF(uint32_t column_family_id, const Slice& key, 29761: const Slice& value) { 29761: if (column_family_id == 0) { 29761: 29761: 29761: 29761: Put(key, value); 29761: return Status::OK(); 29761: } 29761: return Status::InvalidArgument( 29761: "non-default column family and PutCF not implemented"); 29761: } 29761: 29761: virtual void Put(const Slice& , const Slice& ) {} 29761: 29761: 29761: virtual Status TimedPutCF(uint32_t , 29761: const Slice& , const Slice& , 29761: uint64_t ) { 29761: return Status::InvalidArgument("TimedPutCF not implemented"); 29761: } 29761: 29761: 29761: virtual Status PutEntityCF(uint32_t , 29761: const Slice& , 29761: const Slice& ) { 29761: return Status::NotSupported("PutEntityCF not implemented"); 29761: } 29761: 29761: 29761: virtual Status DeleteCF(uint32_t column_family_id, const Slice& key) { 29761: if (column_family_id == 0) { 29761: Delete(key); 29761: return Status::OK(); 29761: } 29761: return Status::InvalidArgument( 29761: "non-default column family and DeleteCF not implemented"); 29761: } 29761: 29761: virtual void Delete(const Slice& ) {} 29761: 29761: 29761: virtual Status SingleDeleteCF(uint32_t column_family_id, const Slice& key) { 29761: if (column_family_id == 0) { 29761: SingleDelete(key); 29761: return Status::OK(); 29761: } 29761: return Status::InvalidArgument( 29761: "non-default column family and SingleDeleteCF not implemented"); 29761: } 29761: 29761: virtual void SingleDelete(const Slice& ) {} 29761: 29761: 29761: 29761: virtual Status DeleteRangeCF(uint32_t , 29761: const Slice& , 29761: const Slice& ) { 29761: return Status::InvalidArgument("DeleteRangeCF not implemented"); 29761: } 29761: 29761: 29761: virtual Status MergeCF(uint32_t column_family_id, const Slice& key, 29761: const Slice& value) { 29761: if (column_family_id == 0) { 29761: Merge(key, value); 29761: return Status::OK(); 29761: } 29761: return Status::InvalidArgument( 29761: "non-default column family and MergeCF not implemented"); 29761: } 29761: 29761: virtual void Merge(const Slice& , const Slice& ) {} 29761: 29761: 29761: virtual Status PutBlobIndexCF(uint32_t , 29761: const Slice& , 29761: const Slice& ) { 29761: return Status::InvalidArgument("PutBlobIndexCF not implemented"); 29761: } 29761: 29761: 29761: virtual void LogData(const Slice& blob); 29761: 29761: virtual Status MarkBeginPrepare(bool = false) { 29761: return Status::InvalidArgument("MarkBeginPrepare() handler not defined."); 29761: } 29761: 29761: virtual Status MarkEndPrepare(const Slice& ) { 29761: return Status::InvalidArgument("MarkEndPrepare() handler not defined."); 29761: } 29761: 29761: virtual Status MarkNoop(bool ) { 29761: return Status::InvalidArgument("MarkNoop() handler not defined."); 29761: } 29761: 29761: virtual Status MarkRollback(const Slice& ) { 29761: return Status::InvalidArgument( 29761: "MarkRollbackPrepare() handler not defined."); 29761: } 29761: 29761: virtual Status MarkCommit(const Slice& ) { 29761: return Status::InvalidArgument("MarkCommit() handler not defined."); 29761: } 29761: 29761: virtual Status MarkCommitWithTimestamp(const Slice& , 29761: const Slice& ) { 29761: return Status::InvalidArgument( 29761: "MarkCommitWithTimestamp() handler not defined."); 29761: } 29761: 29761: 29761: 29761: 29761: virtual bool Continue(); 29761: 29761: protected: 29761: friend class WriteBatchInternal; 29761: enum class OptionState { 29761: kUnknown, 29761: kDisabled, 29761: kEnabled, 29761: }; 29761: virtual OptionState WriteAfterCommit() const { 29761: return OptionState::kUnknown; 29761: } 29761: virtual OptionState WriteBeforePrepare() const { 29761: return OptionState::kUnknown; 29761: } 29761: }; 29761: Status Iterate(Handler* handler) const; 29761: 29761: 29761: const std::string& Data() const { return rep_; } 29761: 29761: 29761: std::string Release(); 29761: 29761: 29761: size_t GetDataSize() const { return rep_.size(); } 29761: 29761: 29761: uint32_t Count() const; 29761: 29761: 29761: bool HasPut() const; 29761: 29761: 29761: bool HasTimedPut() const; 29761: 29761: 29761: bool HasPutEntity() const; 29761: 29761: 29761: bool HasDelete() const; 29761: 29761: 29761: bool HasSingleDelete() const; 29761: 29761: 29761: bool HasDeleteRange() const; 29761: 29761: 29761: bool HasMerge() const; 29761: 29761: 29761: bool HasBeginPrepare() const; 29761: 29761: 29761: bool HasEndPrepare() const; 29761: 29761: 29761: bool HasCommit() const; 29761: 29761: 29761: bool HasRollback() const; 29761: # 439 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: Status UpdateTimestamps(const Slice& ts, 29761: std::function ts_sz_func); 29761: 29761: 29761: 29761: 29761: 29761: void SetTrackTimestampSize(bool track_timestamp_size) { 29761: track_timestamp_size_ = track_timestamp_size; 29761: } 29761: 29761: inline void MaybeTrackTimestampSize(uint32_t column_family_id, size_t ts_sz) { 29761: if (!track_timestamp_size_) { 29761: return; 29761: } 29761: auto iter = cf_id_to_ts_sz_.find(column_family_id); 29761: if (iter == cf_id_to_ts_sz_.end()) { 29761: cf_id_to_ts_sz_.emplace(column_family_id, ts_sz); 29761: } 29761: } 29761: 29761: 29761: 29761: const std::unordered_map& GetColumnFamilyToTimestampSize() { 29761: return cf_id_to_ts_sz_; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: Status VerifyChecksum() const; 29761: 29761: using WriteBatchBase::GetWriteBatch; 29761: WriteBatch* GetWriteBatch() override { return this; } 29761: 29761: 29761: explicit WriteBatch(const std::string& rep); 29761: explicit WriteBatch(std::string&& rep); 29761: 29761: WriteBatch(const WriteBatch& src); 29761: WriteBatch(WriteBatch&& src) noexcept; 29761: WriteBatch& operator=(const WriteBatch& src); 29761: WriteBatch& operator=(WriteBatch&& src); 29761: 29761: 29761: 29761: void MarkWalTerminationPoint(); 29761: const SavePoint& GetWalTerminationPoint() const { return wal_term_point_; } 29761: 29761: void SetMaxBytes(size_t max_bytes) override { max_bytes_ = max_bytes; } 29761: 29761: struct ProtectionInfo; 29761: size_t GetProtectionBytesPerKey() const; 29761: 29761: private: 29761: friend class WriteBatchInternal; 29761: friend class LocalSavePoint; 29761: 29761: 29761: 29761: friend class WriteBatchWithIndex; 29761: std::unique_ptr save_points_; 29761: 29761: 29761: 29761: 29761: SavePoint wal_term_point_; 29761: 29761: 29761: 29761: 29761: 29761: bool is_latest_persistent_state_ = false; 29761: # 521 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: bool needs_in_place_update_ts_ = false; 29761: 29761: 29761: 29761: bool has_key_with_ts_ = false; 29761: 29761: 29761: mutable std::atomic content_flags_; 29761: 29761: 29761: uint32_t ComputeContentFlags() const; 29761: 29761: 29761: size_t max_bytes_; 29761: 29761: std::unique_ptr prot_info_; 29761: 29761: size_t default_cf_ts_sz_ = 0; 29761: 29761: bool track_timestamp_size_ = false; 29761: 29761: std::unordered_map cf_id_to_ts_sz_; 29761: 29761: protected: 29761: std::string rep_; 29761: }; 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/transaction_log.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class WalFile; 29761: using VectorWalPtr = std::vector>; 29761: 29761: using VectorLogPtr = VectorWalPtr; 29761: 29761: enum WalFileType { 29761: 29761: 29761: 29761: 29761: 29761: 29761: kArchivedLogFile = 0, 29761: 29761: 29761: kAliveLogFile = 1 29761: }; 29761: 29761: class WalFile { 29761: public: 29761: WalFile() {} 29761: virtual ~WalFile() {} 29761: 29761: 29761: 29761: 29761: virtual std::string PathName() const = 0; 29761: 29761: 29761: 29761: virtual uint64_t LogNumber() const = 0; 29761: 29761: 29761: virtual WalFileType Type() const = 0; 29761: 29761: 29761: virtual SequenceNumber StartSequence() const = 0; 29761: 29761: 29761: 29761: virtual uint64_t SizeFileBytes() const = 0; 29761: }; 29761: 29761: 29761: using LogFile = WalFile; 29761: 29761: struct BatchResult { 29761: SequenceNumber sequence = 0; 29761: std::unique_ptr writeBatchPtr; 29761: 29761: 29761: 29761: 29761: BatchResult() {} 29761: 29761: ~BatchResult() {} 29761: 29761: BatchResult(const BatchResult&) = delete; 29761: 29761: BatchResult& operator=(const BatchResult&) = delete; 29761: 29761: BatchResult(BatchResult&& bResult) 29761: : sequence(std::move(bResult.sequence)), 29761: writeBatchPtr(std::move(bResult.writeBatchPtr)) {} 29761: 29761: BatchResult& operator=(BatchResult&& bResult) { 29761: sequence = std::move(bResult.sequence); 29761: writeBatchPtr = std::move(bResult.writeBatchPtr); 29761: return *this; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: class TransactionLogIterator { 29761: public: 29761: TransactionLogIterator() {} 29761: virtual ~TransactionLogIterator() {} 29761: 29761: 29761: 29761: 29761: virtual bool Valid() = 0; 29761: 29761: 29761: 29761: virtual void Next() = 0; 29761: 29761: 29761: 29761: virtual Status status() = 0; 29761: 29761: 29761: 29761: 29761: virtual BatchResult GetBatch() = 0; 29761: 29761: 29761: struct ReadOptions { 29761: 29761: 29761: 29761: bool verify_checksums_; 29761: 29761: ReadOptions() : verify_checksums_(true) {} 29761: 29761: explicit ReadOptions(bool verify_checksums) 29761: : verify_checksums_(verify_checksums) {} 29761: }; 29761: }; 29761: } 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/user_write_callback.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class UserWriteCallback { 29761: public: 29761: virtual ~UserWriteCallback() {} 29761: 29761: 29761: virtual void OnWriteEnqueued() = 0; 29761: 29761: 29761: virtual void OnWalWriteFinish() = 0; 29761: }; 29761: 29761: } 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: class CompactOnDeletionCollectorFactory 29761: : public TablePropertiesCollectorFactory { 29761: public: 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29761: CompactOnDeletionCollectorFactory(size_t sliding_window_size, 29761: size_t deletion_trigger, 29761: double deletion_ratio); 29761: 29761: ~CompactOnDeletionCollectorFactory() override {} 29761: 29761: TablePropertiesCollector* CreateTablePropertiesCollector( 29761: TablePropertiesCollectorFactory::Context context) override; 29761: 29761: 29761: 29761: void SetWindowSize(size_t sliding_window_size) { 29761: sliding_window_size_.store(sliding_window_size); 29761: } 29761: size_t GetWindowSize() const { return sliding_window_size_.load(); } 29761: 29761: 29761: void SetDeletionTrigger(size_t deletion_trigger) { 29761: deletion_trigger_.store(deletion_trigger); 29761: } 29761: 29761: size_t GetDeletionTrigger() const { return deletion_trigger_.load(); } 29761: 29761: 29761: 29761: void SetDeletionRatio(double deletion_ratio) { 29761: deletion_ratio_.store(deletion_ratio); 29761: } 29761: 29761: double GetDeletionRatio() const { return deletion_ratio_.load(); } 29761: static const char* kClassName() { return "CompactOnDeletionCollector"; } 29761: const char* Name() const override { return kClassName(); } 29761: 29761: std::string ToString() const override; 29761: 29761: private: 29761: std::atomic sliding_window_size_; 29761: std::atomic deletion_trigger_; 29761: std::atomic deletion_ratio_; 29761: }; 29761: # 85 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29761: std::shared_ptr 29761: NewCompactOnDeletionCollectorFactory(size_t sliding_window_size, 29761: size_t deletion_trigger, 29761: double deletion_ratio = 0); 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29761: class CompactForTieringCollectorFactory 29761: : public TablePropertiesCollectorFactory { 29761: public: 29761: 29761: 29761: 29761: CompactForTieringCollectorFactory(double compaction_trigger_ratio); 29761: 29761: ~CompactForTieringCollectorFactory() override {} 29761: 29761: TablePropertiesCollector* CreateTablePropertiesCollector( 29761: TablePropertiesCollectorFactory::Context context) override; 29761: 29761: void SetCompactionTriggerRatio(double new_ratio) { 29761: compaction_trigger_ratio_.store(new_ratio); 29761: } 29761: 29761: double GetCompactionTriggerRatio() const { 29761: return compaction_trigger_ratio_.load(); 29761: } 29761: 29761: static const char* kClassName() { return "CompactForTieringCollector"; } 29761: const char* Name() const override { return kClassName(); } 29761: 29761: std::string ToString() const override; 29761: 29761: private: 29761: std::atomic compaction_trigger_ratio_; 29761: }; 29761: 29761: std::shared_ptr 29761: NewCompactForTieringCollectorFactory(double compaction_trigger_ratio); 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct DataCollectionUnixWriteTimeInfo { 29761: 29761: uint64_t min_write_time = 0; 29761: 29761: uint64_t max_write_time = 0; 29761: 29761: uint64_t average_write_time = 0; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t num_entries_infinitely_old = 0; 29761: 29761: 29761: uint64_t num_entries_write_time_aggregated = 0; 29761: 29761: 29761: uint64_t num_entries_write_time_untracked = 0; 29761: 29761: DataCollectionUnixWriteTimeInfo() {} 29761: 29761: DataCollectionUnixWriteTimeInfo(uint64_t _min_write_time, 29761: uint64_t _max_write_time, 29761: uint64_t _average_write_time, 29761: uint64_t _num_entries_infinitely_old, 29761: uint64_t _num_entries_write_time_aggregated, 29761: uint64_t _num_entries_write_time_untracked) 29761: : min_write_time(_min_write_time), 29761: max_write_time(_max_write_time), 29761: average_write_time(_average_write_time), 29761: num_entries_infinitely_old(_num_entries_infinitely_old), 29761: num_entries_write_time_aggregated(_num_entries_write_time_aggregated), 29761: num_entries_write_time_untracked(_num_entries_write_time_untracked) {} 29761: 29761: 29761: 29761: bool DataCollectionIsEmpty() const { 29761: return num_entries_infinitely_old == 0 && 29761: num_entries_write_time_aggregated == 0 && 29761: num_entries_write_time_untracked == 0; 29761: } 29761: # 193 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29761: double TrackedDataRatio() const { 29761: if (DataCollectionIsEmpty()) { 29761: return 0; 29761: } 29761: uint64_t num_entries_write_time_tracked = 29761: num_entries_infinitely_old + num_entries_write_time_aggregated; 29761: return num_entries_write_time_tracked / 29761: static_cast(num_entries_write_time_tracked + 29761: num_entries_write_time_untracked); 29761: } 29761: 29761: 29761: bool HasInfinitelyOldData() const { return num_entries_infinitely_old > 0; } 29761: }; 29761: 29761: 29761: 29761: Status GetDataCollectionUnixWriteTimeInfoForFile( 29761: const std::shared_ptr& table_properties, 29761: std::unique_ptr* file_info); 29761: 29761: 29761: 29761: Status GetDataCollectionUnixWriteTimeInfoForLevels( 29761: const std::vector>& 29761: levels_table_properties, 29761: std::vector>* levels_info); 29761: } 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: # 47 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: namespace rocksdb { 29761: 29761: struct ColumnFamilyOptions; 29761: struct CompactionOptions; 29761: struct CompactRangeOptions; 29761: struct DBOptions; 29761: struct ExternalSstFileInfo; 29761: struct FlushOptions; 29761: struct Options; 29761: struct ReadOptions; 29761: struct TableProperties; 29761: struct WriteOptions; 29761: struct WaitForCompactOptions; 29761: class Env; 29761: class EventListener; 29761: class FileSystem; 29761: class Replayer; 29761: class StatsHistoryIterator; 29761: class TraceReader; 29761: class TraceWriter; 29761: class WriteBatch; 29761: 29761: extern const std::string kDefaultColumnFamilyName; 29761: extern const std::string kPersistentStatsColumnFamilyName; 29761: struct ColumnFamilyDescriptor { 29761: std::string name; 29761: ColumnFamilyOptions options; 29761: ColumnFamilyDescriptor() 29761: : name(kDefaultColumnFamilyName), options(ColumnFamilyOptions()) {} 29761: ColumnFamilyDescriptor(const std::string& _name, 29761: const ColumnFamilyOptions& _options) 29761: : name(_name), options(_options) {} 29761: }; 29761: 29761: class ColumnFamilyHandle { 29761: public: 29761: virtual ~ColumnFamilyHandle() {} 29761: 29761: virtual const std::string& GetName() const = 0; 29761: 29761: virtual uint32_t GetID() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetDescriptor(ColumnFamilyDescriptor* desc) = 0; 29761: 29761: 29761: virtual const Comparator* GetComparator() const = 0; 29761: }; 29761: 29761: static const int kMajorVersion = 9; 29761: static const int kMinorVersion = 10; 29761: 29761: 29761: struct Range { 29761: 29761: 29761: Slice start; 29761: Slice limit; 29761: 29761: Range() {} 29761: Range(const Slice& s, const Slice& l) : start(s), limit(l) {} 29761: }; 29761: 29761: struct RangePtr { 29761: 29761: 29761: const Slice* start; 29761: const Slice* limit; 29761: 29761: RangePtr() : start(nullptr), limit(nullptr) {} 29761: RangePtr(const Slice* s, const Slice* l) : start(s), limit(l) {} 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct IngestExternalFileArg { 29761: ColumnFamilyHandle* column_family = nullptr; 29761: std::vector external_files; 29761: IngestExternalFileOptions options; 29761: std::vector files_checksums; 29761: std::vector files_checksum_func_names; 29761: 29761: Temperature file_temperature = Temperature::kUnknown; 29761: }; 29761: 29761: struct GetMergeOperandsOptions { 29761: using ContinueCallback = std::function; 29761: 29761: 29761: 29761: 29761: 29761: 29761: int expected_max_number_of_operands = 0; 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: ContinueCallback continue_cb; 29761: }; 29761: 29761: 29761: 29761: 29761: using TablePropertiesCollection = 29761: std::unordered_map>; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class DB { 29761: public: 29761: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status Open(const Options& options, const std::string& name, 29761: DB** dbptr); 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status Open(const DBOptions& db_options, const std::string& name, 29761: const std::vector& column_families, 29761: std::vector* handles, DB** dbptr); 29761: # 221 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenForReadOnly(const Options& options, const std::string& name, 29761: DB** dbptr, 29761: bool error_if_wal_file_exists = false); 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenForReadOnly( 29761: const DBOptions& db_options, const std::string& name, 29761: const std::vector& column_families, 29761: std::vector* handles, DB** dbptr, 29761: bool error_if_wal_file_exists = false); 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenAsSecondary(const Options& options, const std::string& name, 29761: const std::string& secondary_path, DB** dbptr); 29761: # 297 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenAsSecondary( 29761: const DBOptions& db_options, const std::string& name, 29761: const std::string& secondary_path, 29761: const std::vector& column_families, 29761: std::vector* handles, DB** dbptr); 29761: # 314 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenAsFollower(const Options& options, const std::string& name, 29761: const std::string& leader_path, 29761: std::unique_ptr* dbptr); 29761: 29761: 29761: static Status OpenAsFollower( 29761: const DBOptions& db_options, const std::string& name, 29761: const std::string& leader_path, 29761: const std::vector& column_families, 29761: std::vector* handles, std::unique_ptr* dbptr); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: static Status OpenAndCompact( 29761: const std::string& name, const std::string& output_directory, 29761: const std::string& input, std::string* output, 29761: const CompactionServiceOptionsOverride& override_options); 29761: 29761: static Status OpenAndCompact( 29761: const OpenAndCompactOptions& options, const std::string& name, 29761: const std::string& output_directory, const std::string& input, 29761: std::string* output, 29761: const CompactionServiceOptionsOverride& override_options); 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenAndTrimHistory( 29761: const DBOptions& db_options, const std::string& dbname, 29761: const std::vector& column_families, 29761: std::vector* handles, DB** dbptr, 29761: std::string trim_ts); 29761: # 367 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status Resume() { return Status::NotSupported(); } 29761: # 386 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status Close() { return Status::NotSupported(); } 29761: 29761: 29761: 29761: 29761: 29761: static Status ListColumnFamilies(const DBOptions& db_options, 29761: const std::string& name, 29761: std::vector* column_families); 29761: 29761: 29761: DB() {} 29761: 29761: DB(const DB&) = delete; 29761: void operator=(const DB&) = delete; 29761: 29761: virtual ~DB(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status CreateColumnFamily(const ColumnFamilyOptions& options, 29761: const std::string& column_family_name, 29761: ColumnFamilyHandle** handle); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status CreateColumnFamilies( 29761: const ColumnFamilyOptions& options, 29761: const std::vector& column_family_names, 29761: std::vector* handles); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status CreateColumnFamilies( 29761: const std::vector& column_families, 29761: std::vector* handles); 29761: 29761: 29761: 29761: 29761: virtual Status DropColumnFamily(ColumnFamilyHandle* column_family); 29761: 29761: 29761: 29761: 29761: 29761: virtual Status DropColumnFamilies( 29761: const std::vector& column_families); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status DestroyColumnFamilyHandle(ColumnFamilyHandle* column_family); 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Put(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) = 0; 29761: virtual Status Put(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts, const Slice& value) = 0; 29761: virtual Status Put(const WriteOptions& options, const Slice& key, 29761: const Slice& value) { 29761: return Put(options, DefaultColumnFamily(), key, value); 29761: } 29761: virtual Status Put(const WriteOptions& options, const Slice& key, 29761: const Slice& ts, const Slice& value) { 29761: return Put(options, DefaultColumnFamily(), key, ts, value); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status PutEntity(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: const WideColumns& columns); 29761: 29761: 29761: virtual Status PutEntity(const WriteOptions& options, const Slice& key, 29761: const AttributeGroups& attribute_groups); 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Delete(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice& key) = 0; 29761: virtual Status Delete(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts) = 0; 29761: virtual Status Delete(const WriteOptions& options, const Slice& key) { 29761: return Delete(options, DefaultColumnFamily(), key); 29761: } 29761: virtual Status Delete(const WriteOptions& options, const Slice& key, 29761: const Slice& ts) { 29761: return Delete(options, DefaultColumnFamily(), key, ts); 29761: } 29761: # 518 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status SingleDelete(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice& key) = 0; 29761: virtual Status SingleDelete(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice& key, const Slice& ts) = 0; 29761: virtual Status SingleDelete(const WriteOptions& options, const Slice& key) { 29761: return SingleDelete(options, DefaultColumnFamily(), key); 29761: } 29761: virtual Status SingleDelete(const WriteOptions& options, const Slice& key, 29761: const Slice& ts) { 29761: return SingleDelete(options, DefaultColumnFamily(), key, ts); 29761: } 29761: # 548 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status DeleteRange(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice& begin_key, const Slice& end_key); 29761: virtual Status DeleteRange(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice& begin_key, const Slice& end_key, 29761: const Slice& ts); 29761: virtual Status DeleteRange(const WriteOptions& options, 29761: const Slice& begin_key, const Slice& end_key) { 29761: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key); 29761: } 29761: virtual Status DeleteRange(const WriteOptions& options, 29761: const Slice& begin_key, const Slice& end_key, 29761: const Slice& ts) { 29761: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key, ts); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Merge(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) = 0; 29761: virtual Status Merge(const WriteOptions& options, const Slice& key, 29761: const Slice& value) { 29761: return Merge(options, DefaultColumnFamily(), key, value); 29761: } 29761: virtual Status Merge(const WriteOptions& , 29761: ColumnFamilyHandle* , 29761: const Slice& , const Slice& , 29761: const Slice& ); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0; 29761: 29761: 29761: 29761: virtual Status WriteWithCallback(const WriteOptions& , 29761: WriteBatch* , 29761: UserWriteCallback* ) { 29761: return Status::NotSupported( 29761: "WriteWithCallback not implemented for this interface."); 29761: } 29761: # 611 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status Get(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: PinnableSlice* value, std::string* timestamp) = 0; 29761: 29761: 29761: 29761: 29761: virtual inline Status Get(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: std::string* value, std::string* timestamp) final { 29761: 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: (static_cast ( 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: value != nullptr 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: "value != nullptr" 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: ; 29761: PinnableSlice pinnable_val(value); 29761: 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: (static_cast ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: !pinnable_val.IsPinned() 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: "!pinnable_val.IsPinned()" 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: ; 29761: auto s = Get(options, column_family, key, &pinnable_val, timestamp); 29761: if (s.ok() && pinnable_val.IsPinned()) { 29761: value->assign(pinnable_val.data(), pinnable_val.size()); 29761: } 29761: return s; 29761: } 29761: 29761: 29761: 29761: virtual Status Get(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: PinnableSlice* value) final { 29761: return Get(options, column_family, key, value, nullptr); 29761: } 29761: 29761: 29761: 29761: virtual inline Status Get(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: std::string* value) final { 29761: 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: (static_cast ( 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: value != nullptr 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: "value != nullptr" 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: ; 29761: PinnableSlice pinnable_val(value); 29761: 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: (static_cast ( 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: !pinnable_val.IsPinned() 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: "!pinnable_val.IsPinned()" 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: ; 29761: auto s = Get(options, column_family, key, &pinnable_val); 29761: if (s.ok() && pinnable_val.IsPinned()) { 29761: value->assign(pinnable_val.data(), pinnable_val.size()); 29761: } 29761: return s; 29761: } 29761: 29761: 29761: 29761: 29761: virtual Status Get(const ReadOptions& options, const Slice& key, 29761: std::string* value) final { 29761: return Get(options, DefaultColumnFamily(), key, value); 29761: } 29761: 29761: 29761: 29761: 29761: virtual Status Get(const ReadOptions& options, const Slice& key, 29761: std::string* value, std::string* timestamp) final { 29761: return Get(options, DefaultColumnFamily(), key, value, timestamp); 29761: } 29761: # 679 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetEntity(const ReadOptions& , 29761: ColumnFamilyHandle* , 29761: const Slice& , 29761: PinnableWideColumns* ) { 29761: return Status::NotSupported("GetEntity not supported"); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetEntity(const ReadOptions& , 29761: const Slice& , 29761: PinnableAttributeGroups* ) { 29761: return Status::NotSupported("GetEntity not supported"); 29761: } 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetMergeOperands( 29761: const ReadOptions& options, ColumnFamilyHandle* column_family, 29761: const Slice& key, PinnableSlice* merge_operands, 29761: GetMergeOperandsOptions* get_merge_operands_options, 29761: int* number_of_operands) = 0; 29761: # 741 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual std::vector MultiGet( 29761: const ReadOptions& options, 29761: const std::vector& column_families, 29761: const std::vector& keys, std::vector* values, 29761: std::vector* timestamps) final { 29761: size_t num_keys = keys.size(); 29761: std::vector statuses(num_keys); 29761: std::vector pin_values(num_keys); 29761: 29761: values->resize(num_keys); 29761: if (timestamps) { 29761: timestamps->resize(num_keys); 29761: } 29761: MultiGet(options, num_keys, 29761: const_cast(column_families.data()), 29761: keys.data(), pin_values.data(), 29761: timestamps ? timestamps->data() : nullptr, statuses.data(), 29761: false); 29761: for (size_t i = 0; i < num_keys; ++i) { 29761: if (statuses[i].ok()) { 29761: (*values)[i].assign(pin_values[i].data(), pin_values[i].size()); 29761: } 29761: } 29761: return statuses; 29761: } 29761: 29761: 29761: 29761: virtual std::vector MultiGet( 29761: const ReadOptions& options, 29761: const std::vector& column_family, 29761: const std::vector& keys, std::vector* values) final { 29761: values->resize(keys.size()); 29761: return MultiGet(options, column_family, keys, values, nullptr); 29761: } 29761: 29761: 29761: 29761: virtual std::vector MultiGet(const ReadOptions& options, 29761: const std::vector& keys, 29761: std::vector* values) final { 29761: values->resize(keys.size()); 29761: return MultiGet( 29761: options, 29761: std::vector(keys.size(), DefaultColumnFamily()), 29761: keys, values); 29761: } 29761: 29761: 29761: 29761: virtual std::vector MultiGet( 29761: const ReadOptions& options, const std::vector& keys, 29761: std::vector* values, 29761: std::vector* timestamps) final { 29761: values->resize(keys.size()); 29761: return MultiGet( 29761: options, 29761: std::vector(keys.size(), DefaultColumnFamily()), 29761: keys, values, timestamps); 29761: } 29761: # 830 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 29761: ColumnFamilyHandle** column_families, const Slice* keys, 29761: PinnableSlice* values, std::string* timestamps, 29761: Status* statuses, const bool sorted_input = false) = 0; 29761: 29761: 29761: 29761: virtual void MultiGet(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const size_t num_keys, const Slice* keys, 29761: PinnableSlice* values, std::string* timestamps, 29761: Status* statuses, 29761: const bool sorted_input = false) final; 29761: 29761: 29761: 29761: virtual void MultiGet(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const size_t num_keys, const Slice* keys, 29761: PinnableSlice* values, Status* statuses, 29761: const bool sorted_input = false) final { 29761: MultiGet(options, column_family, num_keys, keys, values, nullptr, statuses, 29761: sorted_input); 29761: } 29761: 29761: 29761: 29761: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 29761: ColumnFamilyHandle** column_families, const Slice* keys, 29761: PinnableSlice* values, Status* statuses, 29761: const bool sorted_input = false) final { 29761: MultiGet(options, num_keys, column_families, keys, values, nullptr, 29761: statuses, sorted_input); 29761: } 29761: # 884 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual void MultiGetEntity(const ReadOptions& , 29761: ColumnFamilyHandle* , 29761: size_t num_keys, const Slice* , 29761: PinnableWideColumns* , 29761: Status* statuses, 29761: bool = false) { 29761: for (size_t i = 0; i < num_keys; ++i) { 29761: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 29761: } 29761: } 29761: # 916 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 29761: ColumnFamilyHandle** , 29761: const Slice* , 29761: PinnableWideColumns* , 29761: Status* statuses, 29761: bool = false) { 29761: for (size_t i = 0; i < num_keys; ++i) { 29761: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 29761: } 29761: } 29761: # 944 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 29761: const Slice* , 29761: PinnableAttributeGroups* results) { 29761: for (size_t i = 0; i < num_keys; ++i) { 29761: for (size_t j = 0; j < results[i].size(); ++j) { 29761: results[i][j].SetStatus( 29761: Status::NotSupported("MultiGetEntity not supported")); 29761: } 29761: } 29761: } 29761: # 962 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual bool KeyMayExist(const ReadOptions& , 29761: ColumnFamilyHandle* , 29761: const Slice& , std::string* , 29761: std::string* , 29761: bool* value_found = nullptr) { 29761: if (value_found != nullptr) { 29761: *value_found = false; 29761: } 29761: return true; 29761: } 29761: 29761: virtual bool KeyMayExist(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: std::string* value, bool* value_found = nullptr) { 29761: return KeyMayExist(options, column_family, key, value, 29761: nullptr, value_found); 29761: } 29761: 29761: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 29761: std::string* value, bool* value_found = nullptr) { 29761: return KeyMayExist(options, DefaultColumnFamily(), key, value, value_found); 29761: } 29761: 29761: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 29761: std::string* value, std::string* timestamp, 29761: bool* value_found = nullptr) { 29761: return KeyMayExist(options, DefaultColumnFamily(), key, value, timestamp, 29761: value_found); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Iterator* NewIterator(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family) = 0; 29761: virtual Iterator* NewIterator(const ReadOptions& options) { 29761: return NewIterator(options, DefaultColumnFamily()); 29761: } 29761: 29761: 29761: 29761: virtual Status NewIterators( 29761: const ReadOptions& options, 29761: const std::vector& column_families, 29761: std::vector* iterators) = 0; 29761: # 1024 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual std::unique_ptr NewCoalescingIterator( 29761: const ReadOptions& options, 29761: const std::vector& column_families) = 0; 29761: 29761: 29761: 29761: virtual std::unique_ptr NewAttributeGroupIterator( 29761: const ReadOptions& options, 29761: const std::vector& column_families) = 0; 29761: # 1041 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual const Snapshot* GetSnapshot() = 0; 29761: 29761: 29761: 29761: virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct Properties { 29761: 29761: 29761: 29761: static const std::string kNumFilesAtLevelPrefix; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kCompressionRatioAtLevelPrefix; 29761: 29761: 29761: 29761: static const std::string kStats; 29761: 29761: 29761: 29761: static const std::string kSSTables; 29761: 29761: 29761: 29761: static const std::string kCFStats; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kCFStatsNoFileHistogram; 29761: 29761: 29761: 29761: static const std::string kCFFileHistogram; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kCFWriteStallStats; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kDBWriteStallStats; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kDBStats; 29761: 29761: 29761: 29761: static const std::string kLevelStats; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kBlockCacheEntryStats; 29761: 29761: 29761: 29761: static const std::string kFastBlockCacheEntryStats; 29761: 29761: 29761: 29761: static const std::string kNumImmutableMemTable; 29761: 29761: 29761: 29761: static const std::string kNumImmutableMemTableFlushed; 29761: 29761: 29761: 29761: static const std::string kMemTableFlushPending; 29761: 29761: 29761: 29761: static const std::string kNumRunningFlushes; 29761: 29761: 29761: 29761: static const std::string kCompactionPending; 29761: 29761: 29761: 29761: static const std::string kNumRunningCompactions; 29761: 29761: 29761: 29761: static const std::string kBackgroundErrors; 29761: 29761: 29761: 29761: static const std::string kCurSizeActiveMemTable; 29761: 29761: 29761: 29761: static const std::string kCurSizeAllMemTables; 29761: 29761: 29761: 29761: static const std::string kSizeAllMemTables; 29761: 29761: 29761: 29761: static const std::string kNumEntriesActiveMemTable; 29761: 29761: 29761: 29761: static const std::string kNumEntriesImmMemTables; 29761: 29761: 29761: 29761: static const std::string kNumDeletesActiveMemTable; 29761: 29761: 29761: 29761: static const std::string kNumDeletesImmMemTables; 29761: 29761: 29761: 29761: static const std::string kEstimateNumKeys; 29761: 29761: 29761: 29761: 29761: static const std::string kEstimateTableReadersMem; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kIsFileDeletionsEnabled; 29761: 29761: 29761: 29761: static const std::string kNumSnapshots; 29761: 29761: 29761: 29761: static const std::string kOldestSnapshotTime; 29761: 29761: 29761: 29761: static const std::string kOldestSnapshotSequence; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kNumLiveVersions; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kCurrentSuperVersionNumber; 29761: 29761: 29761: 29761: 29761: static const std::string kEstimateLiveDataSize; 29761: 29761: 29761: 29761: static const std::string kMinLogNumberToKeep; 29761: 29761: 29761: 29761: 29761: static const std::string kMinObsoleteSstNumberToKeep; 29761: 29761: 29761: 29761: 29761: static const std::string kTotalSstFilesSize; 29761: 29761: 29761: 29761: static const std::string kLiveSstFilesSize; 29761: # 1246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static const std::string kObsoleteSstFilesSize; 29761: 29761: 29761: 29761: static const std::string kLiveSstFilesSizeAtTemperature; 29761: 29761: 29761: 29761: static const std::string kBaseLevel; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kEstimatePendingCompactionBytes; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kAggregatedTableProperties; 29761: 29761: 29761: 29761: 29761: static const std::string kAggregatedTablePropertiesAtLevel; 29761: 29761: 29761: 29761: static const std::string kActualDelayedWriteRate; 29761: 29761: 29761: static const std::string kIsWriteStopped; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kEstimateOldestKeyTime; 29761: 29761: 29761: static const std::string kBlockCacheCapacity; 29761: 29761: 29761: 29761: static const std::string kBlockCacheUsage; 29761: 29761: 29761: 29761: static const std::string kBlockCachePinnedUsage; 29761: 29761: 29761: 29761: static const std::string kOptionsStatistics; 29761: 29761: 29761: 29761: static const std::string kNumBlobFiles; 29761: 29761: 29761: 29761: 29761: static const std::string kBlobStats; 29761: 29761: 29761: 29761: static const std::string kTotalBlobFileSize; 29761: 29761: 29761: 29761: static const std::string kLiveBlobFileSize; 29761: 29761: 29761: 29761: static const std::string kLiveBlobFileGarbageSize; 29761: 29761: 29761: static const std::string kBlobCacheCapacity; 29761: 29761: 29761: 29761: static const std::string kBlobCacheUsage; 29761: 29761: 29761: 29761: static const std::string kBlobCachePinnedUsage; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool GetProperty(ColumnFamilyHandle* column_family, 29761: const Slice& property, std::string* value) = 0; 29761: virtual bool GetProperty(const Slice& property, std::string* value) { 29761: return GetProperty(DefaultColumnFamily(), property, value); 29761: } 29761: 29761: 29761: 29761: virtual bool GetMapProperty(ColumnFamilyHandle* column_family, 29761: const Slice& property, 29761: std::map* value) = 0; 29761: virtual bool GetMapProperty(const Slice& property, 29761: std::map* value) { 29761: return GetMapProperty(DefaultColumnFamily(), property, value); 29761: } 29761: # 1401 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual bool GetIntProperty(ColumnFamilyHandle* column_family, 29761: const Slice& property, uint64_t* value) = 0; 29761: virtual bool GetIntProperty(const Slice& property, uint64_t* value) { 29761: return GetIntProperty(DefaultColumnFamily(), property, value); 29761: } 29761: 29761: 29761: 29761: 29761: virtual Status ResetStats() { 29761: return Status::NotSupported("Not implemented"); 29761: } 29761: 29761: 29761: 29761: virtual bool GetAggregatedIntProperty(const Slice& property, 29761: uint64_t* value) = 0; 29761: 29761: 29761: 29761: enum class SizeApproximationFlags : uint8_t { 29761: NONE = 0, 29761: INCLUDE_MEMTABLES = 1 << 0, 29761: INCLUDE_FILES = 1 << 1 29761: }; 29761: # 1434 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetApproximateSizes(const SizeApproximationOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Range* ranges, int n, 29761: uint64_t* sizes) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status GetApproximateSizes(ColumnFamilyHandle* column_family, 29761: const Range* ranges, int n, 29761: uint64_t* sizes, 29761: SizeApproximationFlags include_flags = 29761: SizeApproximationFlags::INCLUDE_FILES); 29761: 29761: virtual Status GetApproximateSizes( 29761: const Range* ranges, int n, uint64_t* sizes, 29761: SizeApproximationFlags include_flags = 29761: SizeApproximationFlags::INCLUDE_FILES) { 29761: return GetApproximateSizes(DefaultColumnFamily(), ranges, n, sizes, 29761: include_flags); 29761: } 29761: 29761: 29761: 29761: virtual void GetApproximateMemTableStats(ColumnFamilyHandle* column_family, 29761: const Range& range, 29761: uint64_t* const count, 29761: uint64_t* const size) = 0; 29761: virtual void GetApproximateMemTableStats(const Range& range, 29761: uint64_t* const count, 29761: uint64_t* const size) { 29761: GetApproximateMemTableStats(DefaultColumnFamily(), range, count, size); 29761: } 29761: # 1493 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status CompactRange(const CompactRangeOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice* begin, const Slice* end) = 0; 29761: virtual Status CompactRange(const CompactRangeOptions& options, 29761: const Slice* begin, const Slice* end) { 29761: return CompactRange(options, DefaultColumnFamily(), begin, end); 29761: } 29761: # 1519 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status SetOptions( 29761: ColumnFamilyHandle* , 29761: const std::unordered_map& ) { 29761: return Status::NotSupported("Not implemented"); 29761: } 29761: 29761: virtual Status SetOptions( 29761: const std::unordered_map& new_options) { 29761: return SetOptions(DefaultColumnFamily(), new_options); 29761: } 29761: # 1539 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status SetDBOptions( 29761: const std::unordered_map& new_options) = 0; 29761: # 1549 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status CompactFiles( 29761: const CompactionOptions& compact_options, 29761: ColumnFamilyHandle* column_family, 29761: const std::vector& input_file_names, const int output_level, 29761: const int output_path_id = -1, 29761: std::vector* const output_file_names = nullptr, 29761: CompactionJobInfo* compaction_job_info = nullptr) = 0; 29761: 29761: virtual Status CompactFiles( 29761: const CompactionOptions& compact_options, 29761: const std::vector& input_file_names, const int output_level, 29761: const int output_path_id = -1, 29761: std::vector* const output_file_names = nullptr, 29761: CompactionJobInfo* compaction_job_info = nullptr) { 29761: return CompactFiles(compact_options, DefaultColumnFamily(), 29761: input_file_names, output_level, output_path_id, 29761: output_file_names, compaction_job_info); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status PauseBackgroundWork() = 0; 29761: virtual Status ContinueBackgroundWork() = 0; 29761: # 1584 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status EnableAutoCompaction( 29761: const std::vector& column_family_handles) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void DisableManualCompaction() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void EnableManualCompaction() = 0; 29761: # 1608 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status WaitForCompact( 29761: const WaitForCompactOptions& ) = 0; 29761: 29761: 29761: virtual int NumberLevels(ColumnFamilyHandle* column_family) = 0; 29761: virtual int NumberLevels() { return NumberLevels(DefaultColumnFamily()); } 29761: 29761: 29761: 29761: virtual int MaxMemCompactionLevel(ColumnFamilyHandle* column_family) = 0; 29761: virtual int MaxMemCompactionLevel() { 29761: return MaxMemCompactionLevel(DefaultColumnFamily()); 29761: } 29761: 29761: 29761: virtual int Level0StopWriteTrigger(ColumnFamilyHandle* column_family) = 0; 29761: virtual int Level0StopWriteTrigger() { 29761: return Level0StopWriteTrigger(DefaultColumnFamily()); 29761: } 29761: 29761: 29761: 29761: virtual const std::string& GetName() const = 0; 29761: 29761: 29761: virtual Env* GetEnv() const = 0; 29761: 29761: 29761: 29761: virtual FileSystem* GetFileSystem() const; 29761: 29761: 29761: 29761: 29761: 29761: virtual Options GetOptions(ColumnFamilyHandle* column_family) const = 0; 29761: virtual Options GetOptions() const { 29761: return GetOptions(DefaultColumnFamily()); 29761: } 29761: 29761: virtual DBOptions GetDBOptions() const = 0; 29761: 29761: 29761: 29761: 29761: virtual Status Flush(const FlushOptions& options, 29761: ColumnFamilyHandle* column_family) = 0; 29761: virtual Status Flush(const FlushOptions& options) { 29761: return Flush(options, DefaultColumnFamily()); 29761: } 29761: # 1666 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status Flush( 29761: const FlushOptions& options, 29761: const std::vector& column_families) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status FlushWAL(bool ) { 29761: return Status::NotSupported("FlushWAL not implemented"); 29761: } 29761: # 1687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status SyncWAL() = 0; 29761: # 1698 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status LockWAL() { 29761: return Status::NotSupported("LockWAL not implemented"); 29761: } 29761: 29761: 29761: 29761: 29761: virtual Status UnlockWAL() { 29761: return Status::NotSupported("UnlockWAL not implemented"); 29761: } 29761: 29761: 29761: virtual SequenceNumber GetLatestSequenceNumber() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status IncreaseFullHistoryTsLow(ColumnFamilyHandle* column_family, 29761: std::string ts_low) = 0; 29761: 29761: 29761: virtual Status GetFullHistoryTsLow(ColumnFamilyHandle* column_family, 29761: std::string* ts_low) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status DisableFileDeletions() = 0; 29761: # 1740 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status EnableFileDeletions() = 0; 29761: # 1752 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetCreationTimeOfOldestFile(uint64_t* creation_time) = 0; 29761: # 1766 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetUpdatesSince( 29761: SequenceNumber seq_number, std::unique_ptr* iter, 29761: const TransactionLogIterator::ReadOptions& read_options = 29761: TransactionLogIterator::ReadOptions()) = 0; 29761: # 1784 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status DeleteFile(std::string name) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void GetLiveFilesMetaData( 29761: std::vector* ) {} 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetLiveFilesChecksumInfo(FileChecksumList* checksum_list) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetLiveFilesStorageInfo( 29761: const LiveFilesStorageInfoOptions& opts, 29761: std::vector* files) = 0; 29761: 29761: 29761: 29761: virtual void GetColumnFamilyMetaData(ColumnFamilyHandle* , 29761: ColumnFamilyMetaData* ) {} 29761: 29761: 29761: void GetColumnFamilyMetaData(ColumnFamilyMetaData* metadata) { 29761: GetColumnFamilyMetaData(DefaultColumnFamily(), metadata); 29761: } 29761: 29761: 29761: 29761: virtual void GetAllColumnFamilyMetaData( 29761: std::vector* ) {} 29761: # 1839 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetLiveFiles(std::vector&, 29761: uint64_t* manifest_file_size, 29761: bool flush_memtable = true) = 0; 29761: 29761: 29761: virtual Status GetSortedWalFiles(VectorWalPtr& files) = 0; 29761: # 1853 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetCurrentWalFile( 29761: std::unique_ptr* current_log_file) = 0; 29761: # 1897 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status IngestExternalFile( 29761: ColumnFamilyHandle* column_family, 29761: const std::vector& external_files, 29761: const IngestExternalFileOptions& options) = 0; 29761: 29761: virtual Status IngestExternalFile( 29761: const std::vector& external_files, 29761: const IngestExternalFileOptions& options) { 29761: return IngestExternalFile(DefaultColumnFamily(), external_files, options); 29761: } 29761: # 1923 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status IngestExternalFiles( 29761: const std::vector& args) = 0; 29761: # 1943 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status CreateColumnFamilyWithImport( 29761: const ColumnFamilyOptions& options, const std::string& column_family_name, 29761: const ImportColumnFamilyOptions& import_options, 29761: const ExportImportFilesMetaData& metadata, ColumnFamilyHandle** handle) { 29761: const std::vector& metadatas{&metadata}; 29761: return CreateColumnFamilyWithImport(options, column_family_name, 29761: import_options, metadatas, handle); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status CreateColumnFamilyWithImport( 29761: const ColumnFamilyOptions& options, const std::string& column_family_name, 29761: const ImportColumnFamilyOptions& import_options, 29761: const std::vector& metadatas, 29761: ColumnFamilyHandle** handle) = 0; 29761: # 1976 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status ClipColumnFamily(ColumnFamilyHandle* column_family, 29761: const Slice& begin_key, 29761: const Slice& end_key) = 0; 29761: 29761: 29761: 29761: virtual Status VerifyFileChecksums(const ReadOptions& ) { 29761: return Status::NotSupported("File verification not supported"); 29761: } 29761: 29761: 29761: 29761: virtual Status VerifyChecksum(const ReadOptions& read_options) = 0; 29761: 29761: virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); } 29761: 29761: 29761: 29761: 29761: virtual Status GetDbIdentity(std::string& identity) const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetDbSessionId(std::string& session_id) const = 0; 29761: 29761: 29761: virtual ColumnFamilyHandle* DefaultColumnFamily() const = 0; 29761: 29761: virtual Status GetPropertiesOfAllTables(ColumnFamilyHandle* column_family, 29761: TablePropertiesCollection* props) = 0; 29761: virtual Status GetPropertiesOfAllTables(TablePropertiesCollection* props) { 29761: return GetPropertiesOfAllTables(DefaultColumnFamily(), props); 29761: } 29761: virtual Status GetPropertiesOfTablesInRange( 29761: ColumnFamilyHandle* column_family, const Range* range, std::size_t n, 29761: TablePropertiesCollection* props) = 0; 29761: 29761: 29761: virtual Status GetPropertiesOfTablesForLevels( 29761: ColumnFamilyHandle* , 29761: std::vector< 29761: std::unique_ptr>* ) { 29761: return Status::NotSupported( 29761: "GetPropertiesOfTablesForLevels() is not implemented."); 29761: } 29761: 29761: virtual Status SuggestCompactRange(ColumnFamilyHandle* , 29761: const Slice* , 29761: const Slice* ) { 29761: return Status::NotSupported("SuggestCompactRange() is not implemented."); 29761: } 29761: 29761: 29761: 29761: virtual Status PromoteL0(ColumnFamilyHandle* , 29761: int ) { 29761: return Status::NotSupported("PromoteL0() is not implemented."); 29761: } 29761: 29761: 29761: virtual Status StartTrace(const TraceOptions& , 29761: std::unique_ptr&& ) { 29761: return Status::NotSupported("StartTrace() is not implemented."); 29761: } 29761: 29761: virtual Status EndTrace() { 29761: return Status::NotSupported("EndTrace() is not implemented."); 29761: } 29761: 29761: 29761: virtual Status StartIOTrace(const TraceOptions& , 29761: std::unique_ptr&& ) { 29761: return Status::NotSupported("StartIOTrace() is not implemented."); 29761: } 29761: 29761: virtual Status EndIOTrace() { 29761: return Status::NotSupported("EndIOTrace() is not implemented."); 29761: } 29761: 29761: 29761: virtual Status StartBlockCacheTrace( 29761: const TraceOptions& , 29761: std::unique_ptr&& ) { 29761: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 29761: } 29761: 29761: virtual Status StartBlockCacheTrace( 29761: const BlockCacheTraceOptions& , 29761: std::unique_ptr&& ) { 29761: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 29761: } 29761: 29761: virtual Status EndBlockCacheTrace() { 29761: return Status::NotSupported("EndBlockCacheTrace() is not implemented."); 29761: } 29761: 29761: 29761: virtual Status NewDefaultReplayer( 29761: const std::vector& , 29761: std::unique_ptr&& , 29761: std::unique_ptr* ) { 29761: return Status::NotSupported("NewDefaultReplayer() is not implemented."); 29761: } 29761: 29761: 29761: virtual DB* GetRootDB() { return this; } 29761: 29761: 29761: 29761: 29761: virtual Status GetStatsHistory( 29761: uint64_t , uint64_t , 29761: std::unique_ptr* ) { 29761: return Status::NotSupported("GetStatsHistory() is not implemented."); 29761: } 29761: # 2105 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status TryCatchUpWithPrimary() { 29761: return Status::NotSupported("Supported only by secondary instance"); 29761: } 29761: }; 29761: 29761: struct WriteStallStatsMapKeys { 29761: static const std::string& TotalStops(); 29761: static const std::string& TotalDelays(); 29761: 29761: static const std::string& CFL0FileCountLimitDelaysWithOngoingCompaction(); 29761: static const std::string& CFL0FileCountLimitStopsWithOngoingCompaction(); 29761: # 2124 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static std::string CauseConditionCount(WriteStallCause cause, 29761: WriteStallCondition condition); 29761: }; 29761: 29761: 29761: inline DB::SizeApproximationFlags operator&(DB::SizeApproximationFlags lhs, 29761: DB::SizeApproximationFlags rhs) { 29761: return static_cast(static_cast(lhs) & 29761: static_cast(rhs)); 29761: } 29761: inline DB::SizeApproximationFlags operator|(DB::SizeApproximationFlags lhs, 29761: DB::SizeApproximationFlags rhs) { 29761: return static_cast(static_cast(lhs) | 29761: static_cast(rhs)); 29761: } 29761: 29761: inline Status DB::GetApproximateSizes(ColumnFamilyHandle* column_family, 29761: const Range* ranges, int n, 29761: uint64_t* sizes, 29761: SizeApproximationFlags include_flags) { 29761: SizeApproximationOptions options; 29761: options.include_memtables = 29761: ((include_flags & SizeApproximationFlags::INCLUDE_MEMTABLES) != 29761: SizeApproximationFlags::NONE); 29761: options.include_files = 29761: ((include_flags & SizeApproximationFlags::INCLUDE_FILES) != 29761: SizeApproximationFlags::NONE); 29761: return GetApproximateSizes(options, column_family, ranges, n, sizes); 29761: } 29761: 29761: 29761: 29761: Status DestroyDB(const std::string& name, const Options& options, 29761: const std::vector& column_families = 29761: std::vector()); 29761: # 2169 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 29761: const std::vector& column_families); 29761: 29761: 29761: 29761: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 29761: const std::vector& column_families, 29761: const ColumnFamilyOptions& unknown_cf_opts); 29761: 29761: 29761: 29761: Status RepairDB(const std::string& dbname, const Options& options); 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: const std::vector empty_operand_list; 29761: 29761: 29761: 29761: 29761: 29761: class MergeContext { 29761: public: 29761: GetMergeOperandsOptions* get_merge_operands_options = nullptr; 29761: 29761: 29761: void Clear() { 29761: if (operand_list_) { 29761: operand_list_->clear(); 29761: copied_operands_->clear(); 29761: } 29761: } 29761: 29761: 29761: void PushOperand(const Slice& operand_slice, bool operand_pinned = false) { 29761: Initialize(); 29761: SetDirectionBackward(); 29761: 29761: if (operand_pinned) { 29761: operand_list_->push_back(operand_slice); 29761: } else { 29761: 29761: copied_operands_->emplace_back( 29761: new std::string(operand_slice.data(), operand_slice.size())); 29761: operand_list_->push_back(*copied_operands_->back()); 29761: } 29761: } 29761: 29761: 29761: void PushOperandBack(const Slice& operand_slice, 29761: bool operand_pinned = false) { 29761: Initialize(); 29761: SetDirectionForward(); 29761: 29761: if (operand_pinned) { 29761: operand_list_->push_back(operand_slice); 29761: } else { 29761: 29761: copied_operands_->emplace_back( 29761: new std::string(operand_slice.data(), operand_slice.size())); 29761: operand_list_->push_back(*copied_operands_->back()); 29761: } 29761: } 29761: 29761: 29761: size_t GetNumOperands() const { 29761: if (!operand_list_) { 29761: return 0; 29761: } 29761: return operand_list_->size(); 29761: } 29761: 29761: 29761: Slice GetOperand(int index) const { 29761: 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29761: (static_cast ( 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29761: operand_list_ 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29761: "operand_list_" 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29761: ; 29761: 29761: SetDirectionForward(); 29761: return (*operand_list_)[index]; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const std::vector& GetOperands() const { 29761: return GetOperandsDirectionForward(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const std::vector& GetOperandsDirectionForward() const { 29761: if (!operand_list_) { 29761: return empty_operand_list; 29761: } 29761: 29761: SetDirectionForward(); 29761: return *operand_list_; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const std::vector& GetOperandsDirectionBackward() const { 29761: if (!operand_list_) { 29761: return empty_operand_list; 29761: } 29761: 29761: SetDirectionBackward(); 29761: return *operand_list_; 29761: } 29761: 29761: private: 29761: void Initialize() { 29761: if (!operand_list_) { 29761: operand_list_.reset(new std::vector()); 29761: copied_operands_.reset(new std::vector>()); 29761: } 29761: } 29761: 29761: void SetDirectionForward() const { 29761: if (operands_reversed_ == true) { 29761: std::reverse(operand_list_->begin(), operand_list_->end()); 29761: operands_reversed_ = false; 29761: } 29761: } 29761: 29761: void SetDirectionBackward() const { 29761: if (operands_reversed_ == false) { 29761: std::reverse(operand_list_->begin(), operand_list_->end()); 29761: operands_reversed_ = true; 29761: } 29761: } 29761: 29761: 29761: mutable std::unique_ptr> operand_list_; 29761: 29761: std::unique_ptr>> copied_operands_; 29761: mutable bool operands_reversed_ = true; 29761: }; 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/iterator" 1 3 29761: # 58 "/usr/include/c++/14/iterator" 3 29761: 29761: # 59 "/usr/include/c++/14/iterator" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stream_iterator.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 40 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 50 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template, typename _Dist = ptrdiff_t> 29761: class istream_iterator 29761: : public iterator 29761: { 29761: public: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef basic_istream<_CharT, _Traits> istream_type; 29761: 29761: private: 29761: istream_type* _M_stream; 29761: _Tp _M_value; 29761: 29761: 29761: 29761: bool _M_ok; 29761: 29761: public: 29761: 29761: constexpr istream_iterator() 29761: noexcept(is_nothrow_default_constructible<_Tp>::value) 29761: : _M_stream(0), _M_value(), _M_ok(false) {} 29761: 29761: 29761: istream_iterator(istream_type& __s) 29761: : _M_stream(std::__addressof(__s)), _M_ok(true) 29761: { _M_read(); } 29761: 29761: constexpr 29761: istream_iterator(const istream_iterator& __obj) 29761: noexcept(is_nothrow_copy_constructible<_Tp>::value) 29761: : _M_stream(__obj._M_stream), _M_value(__obj._M_value), 29761: _M_ok(__obj._M_ok) 29761: { } 29761: # 98 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: istream_iterator& operator=(const istream_iterator&) = default; 29761: ~istream_iterator() = default; 29761: 29761: 29761: [[__nodiscard__]] 29761: const _Tp& 29761: operator*() const noexcept 29761: { 29761: 29761: 29761: ; 29761: return _M_value; 29761: } 29761: 29761: [[__nodiscard__]] 29761: const _Tp* 29761: operator->() const noexcept 29761: { return std::__addressof((operator*())); } 29761: 29761: istream_iterator& 29761: operator++() 29761: { 29761: 29761: 29761: ; 29761: _M_read(); 29761: return *this; 29761: } 29761: 29761: istream_iterator 29761: operator++(int) 29761: { 29761: 29761: 29761: ; 29761: istream_iterator __tmp = *this; 29761: _M_read(); 29761: return __tmp; 29761: } 29761: 29761: private: 29761: bool 29761: _M_equal(const istream_iterator& __x) const noexcept 29761: { 29761: 29761: 29761: return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); 29761: } 29761: 29761: void 29761: _M_read() 29761: { 29761: if (_M_stream && !(*_M_stream >> _M_value)) 29761: { 29761: _M_stream = 0; 29761: _M_ok = false; 29761: } 29761: } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const istream_iterator& __x, const istream_iterator& __y) 29761: noexcept 29761: { return __x._M_equal(__y); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const istream_iterator& __x, const istream_iterator& __y) 29761: noexcept 29761: { return !__x._M_equal(__y); } 29761: # 181 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: }; 29761: # 194 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: template > 29761: class ostream_iterator 29761: : public iterator 29761: { 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef basic_ostream<_CharT, _Traits> ostream_type; 29761: 29761: 29761: private: 29761: ostream_type* _M_stream; 29761: const _CharT* _M_string; 29761: 29761: public: 29761: 29761: ostream_iterator(ostream_type& __s) noexcept 29761: : _M_stream(std::__addressof(__s)), _M_string(0) {} 29761: # 229 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: ostream_iterator(ostream_type& __s, const _CharT* __c) noexcept 29761: : _M_stream(std::__addressof(__s)), _M_string(__c) { } 29761: 29761: 29761: ostream_iterator(const ostream_iterator& __obj) noexcept 29761: : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } 29761: 29761: 29761: ostream_iterator& operator=(const ostream_iterator&) = default; 29761: 29761: 29761: 29761: 29761: ostream_iterator& 29761: operator=(const _Tp& __value) 29761: { 29761: 29761: 29761: ; 29761: *_M_stream << __value; 29761: if (_M_string) 29761: *_M_stream << _M_string; 29761: return *this; 29761: } 29761: 29761: [[__nodiscard__]] 29761: ostream_iterator& 29761: operator*() noexcept 29761: { return *this; } 29761: 29761: ostream_iterator& 29761: operator++() noexcept 29761: { return *this; } 29761: 29761: ostream_iterator& 29761: operator++(int) noexcept 29761: { return *this; } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/iterator" 2 3 29761: # 78 "/usr/include/c++/14/iterator" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 79 "/usr/include/c++/14/iterator" 2 3 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: 29761: # 1 "/usr/include/c++/14/set" 1 3 29761: # 58 "/usr/include/c++/14/set" 3 29761: 29761: # 59 "/usr/include/c++/14/set" 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_set.h" 1 3 29761: # 64 "/usr/include/c++/14/bits/stl_set.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class multiset; 29761: # 94 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template, 29761: typename _Alloc = std::allocator<_Key> > 29761: class set 29761: { 29761: # 110 "/usr/include/c++/14/bits/stl_set.h" 3 29761: static_assert(is_same::type, _Key>::value, 29761: "std::set must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: 29761: public: 29761: 29761: 29761: 29761: typedef _Key key_type; 29761: typedef _Key value_type; 29761: typedef _Compare key_compare; 29761: typedef _Compare value_compare; 29761: typedef _Alloc allocator_type; 29761: 29761: 29761: private: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Key>::other _Key_alloc_type; 29761: 29761: typedef _Rb_tree, 29761: key_compare, _Key_alloc_type> _Rep_type; 29761: _Rep_type _M_t; 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 29761: 29761: public: 29761: 29761: 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: 29761: 29761: 29761: typedef typename _Rep_type::const_iterator iterator; 29761: typedef typename _Rep_type::const_iterator const_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29761: typedef typename _Rep_type::size_type size_type; 29761: typedef typename _Rep_type::difference_type difference_type; 29761: 29761: 29761: 29761: using node_type = typename _Rep_type::node_type; 29761: using insert_return_type = typename _Rep_type::insert_return_type; 29761: # 169 "/usr/include/c++/14/bits/stl_set.h" 3 29761: set() = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: set(const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) { } 29761: # 192 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: set(_InputIterator __first, _InputIterator __last) 29761: : _M_t() 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 209 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: set(_InputIterator __first, _InputIterator __last, 29761: const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 225 "/usr/include/c++/14/bits/stl_set.h" 3 29761: set(const set&) = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: set(set&&) = default; 29761: # 245 "/usr/include/c++/14/bits/stl_set.h" 3 29761: set(initializer_list __l, 29761: const _Compare& __comp = _Compare(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29761: 29761: 29761: explicit 29761: set(const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) { } 29761: 29761: 29761: set(const set& __x, const __type_identity_t& __a) 29761: : _M_t(__x._M_t, _Key_alloc_type(__a)) { } 29761: 29761: 29761: set(set&& __x, const __type_identity_t& __a) 29761: noexcept(is_nothrow_copy_constructible<_Compare>::value 29761: && _Alloc_traits::_S_always_equal()) 29761: : _M_t(std::move(__x._M_t), _Key_alloc_type(__a)) { } 29761: 29761: 29761: set(initializer_list __l, const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29761: 29761: 29761: template 29761: set(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~set() = default; 29761: # 299 "/usr/include/c++/14/bits/stl_set.h" 3 29761: set& 29761: operator=(const set&) = default; 29761: 29761: 29761: set& 29761: operator=(set&&) = default; 29761: # 317 "/usr/include/c++/14/bits/stl_set.h" 3 29761: set& 29761: operator=(initializer_list __l) 29761: { 29761: _M_t._M_assign_unique(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: key_compare 29761: key_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: value_compare 29761: value_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_t.get_allocator()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: cbegin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: cend() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: crbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: crend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_t.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_t.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_t.max_size(); } 29761: # 442 "/usr/include/c++/14/bits/stl_set.h" 3 29761: void 29761: swap(set& __x) 29761: noexcept(__is_nothrow_swappable<_Compare>::value) 29761: { _M_t.swap(__x._M_t); } 29761: # 462 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: std::pair 29761: emplace(_Args&&... __args) 29761: { return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } 29761: # 488 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { 29761: return _M_t._M_emplace_hint_unique(__pos, 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 510 "/usr/include/c++/14/bits/stl_set.h" 3 29761: std::pair 29761: insert(const value_type& __x) 29761: { 29761: std::pair __p = 29761: _M_t._M_insert_unique(__x); 29761: return std::pair(__p.first, __p.second); 29761: } 29761: 29761: 29761: std::pair 29761: insert(value_type&& __x) 29761: { 29761: std::pair __p = 29761: _M_t._M_insert_unique(std::move(__x)); 29761: return std::pair(__p.first, __p.second); 29761: } 29761: # 547 "/usr/include/c++/14/bits/stl_set.h" 3 29761: iterator 29761: insert(const_iterator __position, const value_type& __x) 29761: { return _M_t._M_insert_unique_(__position, __x); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 29761: # 566 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 579 "/usr/include/c++/14/bits/stl_set.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { this->insert(__l.begin(), __l.end()); } 29761: 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_t.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __x) 29761: { return _M_t.extract(__x); } 29761: 29761: 29761: insert_return_type 29761: insert(node_type&& __nh) 29761: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 29761: 29761: template 29761: friend struct std::_Rb_tree_merge_helper; 29761: 29761: template 29761: void 29761: merge(set<_Key, _Compare1, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(set<_Key, _Compare1, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(multiset<_Key, _Compare1, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 29761: { merge(__source); } 29761: # 654 "/usr/include/c++/14/bits/stl_set.h" 3 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_t.erase(__position); } 29761: # 685 "/usr/include/c++/14/bits/stl_set.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_t.erase(__x); } 29761: # 706 "/usr/include/c++/14/bits/stl_set.h" 3 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_t.erase(__first, __last); } 29761: # 734 "/usr/include/c++/14/bits/stl_set.h" 3 29761: void 29761: clear() noexcept 29761: { _M_t.clear(); } 29761: # 749 "/usr/include/c++/14/bits/stl_set.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 29761: 29761: 29761: template 29761: auto 29761: count(const _Kt& __x) const 29761: -> decltype(_M_t._M_count_tr(__x)) 29761: { return _M_t._M_count_tr(__x); } 29761: # 795 "/usr/include/c++/14/bits/stl_set.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_t.find(__x); } 29761: 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) 29761: -> decltype(iterator{_M_t._M_find_tr(__x)}) 29761: { return iterator{_M_t._M_find_tr(__x)}; } 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) const 29761: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 29761: { return const_iterator{_M_t._M_find_tr(__x)}; } 29761: # 830 "/usr/include/c++/14/bits/stl_set.h" 3 29761: iterator 29761: lower_bound(const key_type& __x) 29761: { return _M_t.lower_bound(__x); } 29761: 29761: const_iterator 29761: lower_bound(const key_type& __x) const 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) const 29761: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 860 "/usr/include/c++/14/bits/stl_set.h" 3 29761: iterator 29761: upper_bound(const key_type& __x) 29761: { return _M_t.upper_bound(__x); } 29761: 29761: const_iterator 29761: upper_bound(const key_type& __x) const 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) const 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 899 "/usr/include/c++/14/bits/stl_set.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_t.equal_range(__x); } 29761: 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) const 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 29761: 29761: }; 29761: 29761: 29761: 29761: template::value_type>, 29761: typename _Allocator = 29761: allocator::value_type>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: set(_InputIterator, _InputIterator, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> set::value_type, 29761: _Compare, _Allocator>; 29761: 29761: template, 29761: typename _Allocator = allocator<_Key>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: set(initializer_list<_Key>, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> set<_Key, _Compare, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: set(_InputIterator, _InputIterator, _Allocator) 29761: -> set::value_type, 29761: less::value_type>, 29761: _Allocator>; 29761: 29761: template> 29761: set(initializer_list<_Key>, _Allocator) 29761: -> set<_Key, less<_Key>, _Allocator>; 29761: # 985 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: inline bool 29761: operator==(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return __x._M_t == __y._M_t; } 29761: # 1023 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: inline bool 29761: operator<(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return __x._M_t < __y._M_t; } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: inline bool 29761: operator<=(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>=(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: _Rb_tree_merge_helper, _Cmp2> 29761: { 29761: private: 29761: friend class std::set<_Val, _Cmp1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 29761: { return __set._M_t; } 29761: 29761: static auto& 29761: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 29761: { return __set._M_t; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 64 "/usr/include/c++/14/set" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_multiset.h" 1 3 29761: # 64 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class set; 29761: # 95 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template , 29761: typename _Alloc = std::allocator<_Key> > 29761: class multiset 29761: { 29761: # 111 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: static_assert(is_same::type, _Key>::value, 29761: "std::multiset must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: 29761: public: 29761: 29761: typedef _Key key_type; 29761: typedef _Key value_type; 29761: typedef _Compare key_compare; 29761: typedef _Compare value_compare; 29761: typedef _Alloc allocator_type; 29761: 29761: private: 29761: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Key>::other _Key_alloc_type; 29761: 29761: typedef _Rb_tree, 29761: key_compare, _Key_alloc_type> _Rep_type; 29761: 29761: _Rep_type _M_t; 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 29761: 29761: public: 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: 29761: 29761: 29761: typedef typename _Rep_type::const_iterator iterator; 29761: typedef typename _Rep_type::const_iterator const_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29761: typedef typename _Rep_type::size_type size_type; 29761: typedef typename _Rep_type::difference_type difference_type; 29761: 29761: 29761: using node_type = typename _Rep_type::node_type; 29761: # 165 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset() = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: multiset(const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) { } 29761: # 187 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: multiset(_InputIterator __first, _InputIterator __last) 29761: : _M_t() 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 203 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: multiset(_InputIterator __first, _InputIterator __last, 29761: const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 219 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset(const multiset&) = default; 29761: # 228 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset(multiset&&) = default; 29761: # 240 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset(initializer_list __l, 29761: const _Compare& __comp = _Compare(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29761: 29761: 29761: explicit 29761: multiset(const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) { } 29761: 29761: 29761: multiset(const multiset& __m, 29761: const __type_identity_t& __a) 29761: : _M_t(__m._M_t, _Key_alloc_type(__a)) { } 29761: 29761: 29761: multiset(multiset&& __m, const __type_identity_t& __a) 29761: noexcept(is_nothrow_copy_constructible<_Compare>::value 29761: && _Alloc_traits::_S_always_equal()) 29761: : _M_t(std::move(__m._M_t), _Key_alloc_type(__a)) { } 29761: 29761: 29761: multiset(initializer_list __l, const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29761: 29761: 29761: template 29761: multiset(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~multiset() = default; 29761: # 295 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset& 29761: operator=(const multiset&) = default; 29761: 29761: 29761: multiset& 29761: operator=(multiset&&) = default; 29761: # 313 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset& 29761: operator=(initializer_list __l) 29761: { 29761: _M_t._M_assign_equal(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: key_compare 29761: key_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: value_compare 29761: value_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_t.get_allocator()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: cbegin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: cend() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: crbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: crend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_t.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_t.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_t.max_size(); } 29761: # 438 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: void 29761: swap(multiset& __x) 29761: noexcept(__is_nothrow_swappable<_Compare>::value) 29761: { _M_t.swap(__x._M_t); } 29761: # 457 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: iterator 29761: emplace(_Args&&... __args) 29761: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 29761: # 483 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { 29761: return _M_t._M_emplace_hint_equal(__pos, 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 503 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: iterator 29761: insert(const value_type& __x) 29761: { return _M_t._M_insert_equal(__x); } 29761: 29761: 29761: iterator 29761: insert(value_type&& __x) 29761: { return _M_t._M_insert_equal(std::move(__x)); } 29761: # 533 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: iterator 29761: insert(const_iterator __position, const value_type& __x) 29761: { return _M_t._M_insert_equal_(__position, __x); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 29761: # 551 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 564 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { this->insert(__l.begin(), __l.end()); } 29761: 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_t.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __x) 29761: { return _M_t.extract(__x); } 29761: 29761: 29761: iterator 29761: insert(node_type&& __nh) 29761: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 29761: 29761: template 29761: friend struct std::_Rb_tree_merge_helper; 29761: 29761: template 29761: void 29761: merge(multiset<_Key, _Compare1, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(set<_Key, _Compare1, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(set<_Key, _Compare1, _Alloc>&& __source) 29761: { merge(__source); } 29761: # 639 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_t.erase(__position); } 29761: # 670 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_t.erase(__x); } 29761: # 691 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_t.erase(__first, __last); } 29761: # 719 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: void 29761: clear() noexcept 29761: { _M_t.clear(); } 29761: # 731 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_t.count(__x); } 29761: 29761: 29761: template 29761: auto 29761: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29761: { return _M_t._M_count_tr(__x); } 29761: # 776 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_t.find(__x); } 29761: 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) 29761: -> decltype(iterator{_M_t._M_find_tr(__x)}) 29761: { return iterator{_M_t._M_find_tr(__x)}; } 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) const 29761: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 29761: { return const_iterator{_M_t._M_find_tr(__x)}; } 29761: # 811 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: iterator 29761: lower_bound(const key_type& __x) 29761: { return _M_t.lower_bound(__x); } 29761: 29761: const_iterator 29761: lower_bound(const key_type& __x) const 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) const 29761: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 841 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: iterator 29761: upper_bound(const key_type& __x) 29761: { return _M_t.upper_bound(__x); } 29761: 29761: const_iterator 29761: upper_bound(const key_type& __x) const 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) const 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 880 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_t.equal_range(__x); } 29761: 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) const 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator==(const multiset<_K1, _C1, _A1>&, 29761: const multiset<_K1, _C1, _A1>&); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator< (const multiset<_K1, _C1, _A1>&, 29761: const multiset<_K1, _C1, _A1>&); 29761: 29761: }; 29761: 29761: 29761: 29761: template::value_type>, 29761: typename _Allocator = 29761: allocator::value_type>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: multiset(_InputIterator, _InputIterator, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> multiset::value_type, 29761: _Compare, _Allocator>; 29761: 29761: template, 29761: typename _Allocator = allocator<_Key>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: multiset(initializer_list<_Key>, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> multiset<_Key, _Compare, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: multiset(_InputIterator, _InputIterator, _Allocator) 29761: -> multiset::value_type, 29761: less::value_type>, 29761: _Allocator>; 29761: 29761: template> 29761: multiset(initializer_list<_Key>, _Allocator) 29761: -> multiset<_Key, less<_Key>, _Allocator>; 29761: # 971 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: inline bool 29761: operator==(const multiset<_Key, _Compare, _Alloc>& __x, 29761: const multiset<_Key, _Compare, _Alloc>& __y) 29761: { return __x._M_t == __y._M_t; } 29761: # 1009 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: inline bool 29761: operator<(const multiset<_Key, _Compare, _Alloc>& __x, 29761: const multiset<_Key, _Compare, _Alloc>& __y) 29761: { return __x._M_t < __y._M_t; } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const multiset<_Key, _Compare, _Alloc>& __x, 29761: const multiset<_Key, _Compare, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>(const multiset<_Key,_Compare,_Alloc>& __x, 29761: const multiset<_Key,_Compare,_Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: inline bool 29761: operator<=(const multiset<_Key, _Compare, _Alloc>& __x, 29761: const multiset<_Key, _Compare, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>=(const multiset<_Key, _Compare, _Alloc>& __x, 29761: const multiset<_Key, _Compare, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(multiset<_Key, _Compare, _Alloc>& __x, 29761: multiset<_Key, _Compare, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: _Rb_tree_merge_helper, 29761: _Cmp2> 29761: { 29761: private: 29761: friend class std::multiset<_Val, _Cmp1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 29761: { return __set._M_t; } 29761: 29761: static auto& 29761: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 29761: { return __set._M_t; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 65 "/usr/include/c++/14/set" 2 3 29761: # 77 "/usr/include/c++/14/set" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 78 "/usr/include/c++/14/set" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template> 29761: using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>; 29761: template> 29761: using multiset = std::multiset<_Key, _Cmp, polymorphic_allocator<_Key>>; 29761: } 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iteration_stats.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iteration_stats.h" 29761: namespace rocksdb { 29761: 29761: struct CompactionIterationStats { 29761: 29761: 29761: 29761: 29761: int64_t num_record_drop_user = 0; 29761: 29761: int64_t num_record_drop_hidden = 0; 29761: int64_t num_record_drop_obsolete = 0; 29761: int64_t num_record_drop_range_del = 0; 29761: int64_t num_range_del_drop_obsolete = 0; 29761: 29761: int64_t num_optimized_del_drop_obsolete = 0; 29761: uint64_t total_filter_time = 0; 29761: 29761: 29761: 29761: 29761: uint64_t num_input_records = 0; 29761: uint64_t num_input_deletion_records = 0; 29761: uint64_t num_input_corrupt_records = 0; 29761: uint64_t total_input_raw_key_bytes = 0; 29761: uint64_t total_input_raw_value_bytes = 0; 29761: 29761: 29761: uint64_t num_single_del_fallthru = 0; 29761: uint64_t num_single_del_mismatch = 0; 29761: 29761: 29761: uint64_t num_blobs_read = 0; 29761: uint64_t total_blob_bytes_read = 0; 29761: uint64_t num_blobs_relocated = 0; 29761: uint64_t total_blob_bytes_relocated = 0; 29761: 29761: 29761: 29761: uint64_t num_input_timed_put_records = 0; 29761: 29761: 29761: uint64_t num_timed_put_swap_preferred_seqno = 0; 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/readahead_file_info.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct ReadaheadFileInfo { 29761: struct ReadaheadInfo { 29761: size_t readahead_size = 0; 29761: int64_t num_file_reads = 0; 29761: }; 29761: 29761: 29761: ReadaheadInfo data_block_readahead_info; 29761: 29761: 29761: ReadaheadInfo index_block_readahead_info; 29761: }; 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/sstream" 1 3 29761: # 36 "/usr/include/c++/14/sstream" 3 29761: 29761: # 37 "/usr/include/c++/14/sstream" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/istream" 1 3 29761: # 36 "/usr/include/c++/14/istream" 3 29761: 29761: # 37 "/usr/include/c++/14/istream" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 43 "/usr/include/c++/14/istream" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 59 "/usr/include/c++/14/istream" 3 29761: template 29761: class basic_istream : virtual public basic_ios<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef typename _Traits::pos_type pos_type; 29761: typedef typename _Traits::off_type off_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29761: typedef basic_ios<_CharT, _Traits> __ios_type; 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 29761: __num_get_type; 29761: typedef ctype<_CharT> __ctype_type; 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: streamsize _M_gcount; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_istream(__streambuf_type* __sb) 29761: : _M_gcount(streamsize(0)) 29761: { this->init(__sb); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual 29761: ~basic_istream() 29761: { _M_gcount = streamsize(0); } 29761: 29761: 29761: class sentry; 29761: friend class sentry; 29761: # 121 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: operator>>(__istream_type& (*__pf)(__istream_type&)) 29761: { return __pf(*this); } 29761: 29761: __istream_type& 29761: operator>>(__ios_type& (*__pf)(__ios_type&)) 29761: { 29761: __pf(*this); 29761: return *this; 29761: } 29761: 29761: __istream_type& 29761: operator>>(ios_base& (*__pf)(ios_base&)) 29761: { 29761: __pf(*this); 29761: return *this; 29761: } 29761: # 169 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: operator>>(bool& __n) 29761: { return _M_extract(__n); } 29761: 29761: __istream_type& 29761: operator>>(short& __n); 29761: 29761: __istream_type& 29761: operator>>(unsigned short& __n) 29761: { return _M_extract(__n); } 29761: 29761: __istream_type& 29761: operator>>(int& __n); 29761: 29761: __istream_type& 29761: operator>>(unsigned int& __n) 29761: { return _M_extract(__n); } 29761: 29761: __istream_type& 29761: operator>>(long& __n) 29761: { return _M_extract(__n); } 29761: 29761: __istream_type& 29761: operator>>(unsigned long& __n) 29761: { return _M_extract(__n); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: __istream_type& 29761: operator>>(long long& __n) 29761: { return _M_extract(__n); } 29761: 29761: __istream_type& 29761: operator>>(unsigned long long& __n) 29761: { return _M_extract(__n); } 29761: #pragma GCC diagnostic pop 29761: # 218 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: operator>>(float& __f) 29761: { return _M_extract(__f); } 29761: 29761: __istream_type& 29761: operator>>(double& __f) 29761: { return _M_extract(__f); } 29761: 29761: __istream_type& 29761: operator>>(long double& __f) 29761: { return _M_extract(__f); } 29761: # 327 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: operator>>(void*& __p) 29761: { return _M_extract(__p); } 29761: # 351 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: operator>>(__streambuf_type* __sb); 29761: # 361 "/usr/include/c++/14/istream" 3 29761: streamsize 29761: gcount() const 29761: { return _M_gcount; } 29761: # 394 "/usr/include/c++/14/istream" 3 29761: int_type 29761: get(); 29761: # 408 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: get(char_type& __c); 29761: # 435 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: get(char_type* __s, streamsize __n, char_type __delim); 29761: # 446 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: get(char_type* __s, streamsize __n) 29761: { return this->get(__s, __n, this->widen('\n')); } 29761: # 469 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: get(__streambuf_type& __sb, char_type __delim); 29761: # 479 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: get(__streambuf_type& __sb) 29761: { return this->get(__sb, this->widen('\n')); } 29761: # 508 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: getline(char_type* __s, streamsize __n, char_type __delim); 29761: # 519 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: getline(char_type* __s, streamsize __n) 29761: { return this->getline(__s, __n, this->widen('\n')); } 29761: # 543 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: ignore(streamsize __n, int_type __delim); 29761: 29761: __istream_type& 29761: ignore(streamsize __n); 29761: 29761: __istream_type& 29761: ignore(); 29761: # 560 "/usr/include/c++/14/istream" 3 29761: int_type 29761: peek(); 29761: # 578 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: read(char_type* __s, streamsize __n); 29761: # 597 "/usr/include/c++/14/istream" 3 29761: streamsize 29761: readsome(char_type* __s, streamsize __n); 29761: # 614 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: putback(char_type __c); 29761: # 630 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: unget(); 29761: # 648 "/usr/include/c++/14/istream" 3 29761: int 29761: sync(); 29761: # 663 "/usr/include/c++/14/istream" 3 29761: pos_type 29761: tellg(); 29761: # 678 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: seekg(pos_type); 29761: # 694 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: seekg(off_type, ios_base::seekdir); 29761: 29761: 29761: protected: 29761: basic_istream() 29761: : _M_gcount(streamsize(0)) 29761: { this->init(0); } 29761: 29761: 29761: basic_istream(const basic_istream&) = delete; 29761: 29761: basic_istream(basic_istream&& __rhs) 29761: : __ios_type(), _M_gcount(__rhs._M_gcount) 29761: { 29761: __ios_type::move(__rhs); 29761: __rhs._M_gcount = 0; 29761: } 29761: 29761: 29761: 29761: basic_istream& operator=(const basic_istream&) = delete; 29761: 29761: basic_istream& 29761: operator=(basic_istream&& __rhs) 29761: { 29761: swap(__rhs); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_istream& __rhs) 29761: { 29761: __ios_type::swap(__rhs); 29761: std::swap(_M_gcount, __rhs._M_gcount); 29761: } 29761: 29761: 29761: template 29761: __istream_type& 29761: _M_extract(_ValueT& __v); 29761: }; 29761: 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: getline(char_type* __s, streamsize __n, char_type __delim); 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: ignore(streamsize __n); 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: ignore(streamsize __n, int_type __delim); 29761: 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: getline(char_type* __s, streamsize __n, char_type __delim); 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: ignore(streamsize __n); 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: ignore(streamsize __n, int_type __delim); 29761: # 778 "/usr/include/c++/14/istream" 3 29761: template 29761: class basic_istream<_CharT, _Traits>::sentry 29761: { 29761: 29761: bool _M_ok; 29761: 29761: public: 29761: 29761: typedef _Traits traits_type; 29761: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef typename __istream_type::__ctype_type __ctype_type; 29761: typedef typename _Traits::int_type __int_type; 29761: # 814 "/usr/include/c++/14/istream" 3 29761: explicit 29761: sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); 29761: # 825 "/usr/include/c++/14/istream" 3 29761: explicit 29761: 29761: operator bool() const 29761: { return _M_ok; } 29761: }; 29761: # 843 "/usr/include/c++/14/istream" 3 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); 29761: 29761: template 29761: inline basic_istream& 29761: operator>>(basic_istream& __in, unsigned char& __c) 29761: { return (__in >> reinterpret_cast(__c)); } 29761: 29761: template 29761: inline basic_istream& 29761: operator>>(basic_istream& __in, signed char& __c) 29761: { return (__in >> reinterpret_cast(__c)); } 29761: 29761: 29761: 29761: template 29761: void 29761: __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize); 29761: 29761: void __istream_extract(istream&, char*, streamsize); 29761: # 893 "/usr/include/c++/14/istream" 3 29761: template 29761: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29761: inline basic_istream<_CharT, _Traits>& 29761: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) 29761: { 29761: 29761: 29761: 29761: size_t __n = __builtin_object_size(__s, 0); 29761: if (__n < sizeof(_CharT)) 29761: { 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__n >= sizeof(_CharT))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __in.width(0); 29761: __in.setstate(ios_base::failbit); 29761: } 29761: else if (__n != (size_t)-1) 29761: { 29761: __n /= sizeof(_CharT); 29761: streamsize __w = __in.width(); 29761: std::__istream_extract(__in, __s, __n); 29761: if (__in.good() && (__w <= 0 || __n < (size_t)__w)) 29761: { 29761: 29761: 29761: const typename _Traits::int_type __c = __in.rdbuf()->sgetc(); 29761: const bool __eof = _Traits::eq_int_type(__c, _Traits::eof()); 29761: if (__builtin_expect(__eof, true)) 29761: __in.setstate(ios_base::eofbit); 29761: } 29761: } 29761: else 29761: 29761: { 29761: 29761: streamsize __n = __gnu_cxx::__numeric_traits::__max; 29761: __n /= sizeof(_CharT); 29761: std::__istream_extract(__in, __s, __n); 29761: } 29761: return __in; 29761: } 29761: 29761: template 29761: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29761: inline basic_istream& 29761: operator>>(basic_istream& __in, unsigned char* __s) 29761: { return __in >> reinterpret_cast(__s); } 29761: 29761: template 29761: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29761: inline basic_istream& 29761: operator>>(basic_istream& __in, signed char* __s) 29761: { return __in >> reinterpret_cast(__s); } 29761: # 982 "/usr/include/c++/14/istream" 3 29761: template 29761: class basic_iostream 29761: : public basic_istream<_CharT, _Traits>, 29761: public basic_ostream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef typename _Traits::pos_type pos_type; 29761: typedef typename _Traits::off_type off_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) 29761: : __istream_type(__sb), __ostream_type(__sb) { } 29761: 29761: 29761: 29761: 29761: virtual 29761: ~basic_iostream() { } 29761: 29761: protected: 29761: basic_iostream() 29761: : __istream_type(), __ostream_type() { } 29761: 29761: 29761: basic_iostream(const basic_iostream&) = delete; 29761: 29761: basic_iostream(basic_iostream&& __rhs) 29761: : __istream_type(std::move(__rhs)), __ostream_type(*this) 29761: { } 29761: 29761: 29761: 29761: basic_iostream& operator=(const basic_iostream&) = delete; 29761: 29761: basic_iostream& 29761: operator=(basic_iostream&& __rhs) 29761: { 29761: swap(__rhs); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_iostream& __rhs) 29761: { __istream_type::swap(__rhs); } 29761: 29761: }; 29761: # 1065 "/usr/include/c++/14/istream" 3 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: ws(basic_istream<_CharT, _Traits>& __is); 29761: # 1081 "/usr/include/c++/14/istream" 3 29761: template, 29761: typename = decltype(std::declval<_Is&>() >> std::declval<_Tp>())> 29761: using __rvalue_stream_extraction_t = _Is&&; 29761: # 1097 "/usr/include/c++/14/istream" 3 29761: template 29761: inline __rvalue_stream_extraction_t<_Istream, _Tp> 29761: operator>>(_Istream&& __is, _Tp&& __x) 29761: { 29761: __is >> std::forward<_Tp>(__x); 29761: return std::move(__is); 29761: } 29761: 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/istream.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/istream.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/istream.tcc" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: basic_istream<_CharT, _Traits>::sentry:: 29761: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: if (__in.good()) 29761: { 29761: try 29761: { 29761: if (__in.tie()) 29761: __in.tie()->flush(); 29761: if (!__noskip && bool(__in.flags() & ios_base::skipws)) 29761: { 29761: const __int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = __in.rdbuf(); 29761: __int_type __c = __sb->sgetc(); 29761: 29761: const __ctype_type& __ct = __check_facet(__in._M_ctype); 29761: while (!traits_type::eq_int_type(__c, __eof) 29761: && __ct.is(ctype_base::space, 29761: traits_type::to_char_type(__c))) 29761: __c = __sb->snextc(); 29761: 29761: 29761: 29761: 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { __in._M_setstate(ios_base::badbit); } 29761: } 29761: 29761: if (__in.good() && __err == ios_base::goodbit) 29761: _M_ok = true; 29761: else 29761: { 29761: __err |= ios_base::failbit; 29761: __in.setstate(__err); 29761: } 29761: } 29761: 29761: template 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: _M_extract(_ValueT& __v) 29761: { 29761: sentry __cerb(*this, false); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: 29761: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29761: 29761: 29761: 29761: 29761: __ng.get(*this, 0, *this, __err, __v); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: operator>>(short& __n) 29761: { 29761: 29761: 29761: sentry __cerb(*this, false); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: long __l; 29761: 29761: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29761: 29761: 29761: 29761: 29761: __ng.get(*this, 0, *this, __err, __l); 29761: 29761: 29761: 29761: if (__l < __gnu_cxx::__numeric_traits::__min) 29761: { 29761: __err |= ios_base::failbit; 29761: __n = __gnu_cxx::__numeric_traits::__min; 29761: } 29761: else if (__l > __gnu_cxx::__numeric_traits::__max) 29761: { 29761: __err |= ios_base::failbit; 29761: __n = __gnu_cxx::__numeric_traits::__max; 29761: } 29761: else 29761: __n = short(__l); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: operator>>(int& __n) 29761: { 29761: 29761: 29761: sentry __cerb(*this, false); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: long __l; 29761: 29761: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29761: 29761: 29761: 29761: 29761: __ng.get(*this, 0, *this, __err, __l); 29761: 29761: 29761: 29761: if (__l < __gnu_cxx::__numeric_traits::__min) 29761: { 29761: __err |= ios_base::failbit; 29761: __n = __gnu_cxx::__numeric_traits::__min; 29761: } 29761: else if (__l > __gnu_cxx::__numeric_traits::__max) 29761: { 29761: __err |= ios_base::failbit; 29761: __n = __gnu_cxx::__numeric_traits::__max; 29761: } 29761: else 29761: __n = int(__l); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: operator>>(__streambuf_type* __sbout) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, false); 29761: if (__cerb && __sbout) 29761: { 29761: try 29761: { 29761: bool __ineof; 29761: if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) 29761: __err |= ios_base::failbit; 29761: if (__ineof) 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::failbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::failbit); } 29761: } 29761: else if (!__sbout) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: template 29761: typename basic_istream<_CharT, _Traits>::int_type 29761: basic_istream<_CharT, _Traits>:: 29761: get(void) 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: int_type __c = __eof; 29761: _M_gcount = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: __c = this->rdbuf()->sbumpc(); 29761: 29761: if (!traits_type::eq_int_type(__c, __eof)) 29761: _M_gcount = 1; 29761: else 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: if (!_M_gcount) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return __c; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: get(char_type& __c) 29761: { 29761: _M_gcount = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: const int_type __cb = this->rdbuf()->sbumpc(); 29761: 29761: if (!traits_type::eq_int_type(__cb, traits_type::eof())) 29761: { 29761: _M_gcount = 1; 29761: __c = traits_type::to_char_type(__cb); 29761: } 29761: else 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: if (!_M_gcount) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: get(char_type* __s, streamsize __n, char_type __delim) 29761: { 29761: _M_gcount = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: const int_type __idelim = traits_type::to_int_type(__delim); 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: int_type __c = __sb->sgetc(); 29761: 29761: while (_M_gcount + 1 < __n 29761: && !traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __idelim)) 29761: { 29761: *__s++ = traits_type::to_char_type(__c); 29761: ++_M_gcount; 29761: __c = __sb->snextc(); 29761: } 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: 29761: 29761: if (__n > 0) 29761: *__s = char_type(); 29761: if (!_M_gcount) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: get(__streambuf_type& __sb, char_type __delim) 29761: { 29761: _M_gcount = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: const int_type __idelim = traits_type::to_int_type(__delim); 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __this_sb = this->rdbuf(); 29761: int_type __c = __this_sb->sgetc(); 29761: char_type __c2 = traits_type::to_char_type(__c); 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: unsigned long long __gcount = 0; 29761: #pragma GCC diagnostic pop 29761: 29761: while (!traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __idelim) 29761: && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) 29761: { 29761: ++__gcount; 29761: __c = __this_sb->snextc(); 29761: __c2 = traits_type::to_char_type(__c); 29761: } 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: 29761: 29761: if (__gcount <= __gnu_cxx::__numeric_traits::__max) 29761: _M_gcount = __gcount; 29761: else 29761: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: if (!_M_gcount) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: getline(char_type* __s, streamsize __n, char_type __delim) 29761: { 29761: _M_gcount = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: const int_type __idelim = traits_type::to_int_type(__delim); 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: int_type __c = __sb->sgetc(); 29761: 29761: while (_M_gcount + 1 < __n 29761: && !traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __idelim)) 29761: { 29761: *__s++ = traits_type::to_char_type(__c); 29761: __c = __sb->snextc(); 29761: ++_M_gcount; 29761: } 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: else 29761: { 29761: if (traits_type::eq_int_type(__c, __idelim)) 29761: { 29761: __sb->sbumpc(); 29761: ++_M_gcount; 29761: } 29761: else 29761: __err |= ios_base::failbit; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: 29761: 29761: if (__n > 0) 29761: *__s = char_type(); 29761: if (!_M_gcount) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: ignore(void) 29761: { 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: 29761: if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) 29761: __err |= ios_base::eofbit; 29761: else 29761: _M_gcount = 1; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: ignore(streamsize __n) 29761: { 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb && __n > 0) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: int_type __c = __sb->sgetc(); 29761: # 548 "/usr/include/c++/14/bits/istream.tcc" 3 29761: bool __large_ignore = false; 29761: while (true) 29761: { 29761: while (_M_gcount < __n 29761: && !traits_type::eq_int_type(__c, __eof)) 29761: { 29761: ++_M_gcount; 29761: __c = __sb->snextc(); 29761: } 29761: if (__n == __gnu_cxx::__numeric_traits::__max 29761: && !traits_type::eq_int_type(__c, __eof)) 29761: { 29761: _M_gcount = 29761: __gnu_cxx::__numeric_traits::__min; 29761: __large_ignore = true; 29761: } 29761: else 29761: break; 29761: } 29761: 29761: if (__n == __gnu_cxx::__numeric_traits::__max) 29761: { 29761: if (__large_ignore) 29761: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29761: 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: } 29761: else if (_M_gcount < __n) 29761: { 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: ignore(streamsize __n, int_type __delim) 29761: { 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb && __n > 0) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: int_type __c = __sb->sgetc(); 29761: 29761: 29761: bool __large_ignore = false; 29761: while (true) 29761: { 29761: while (_M_gcount < __n 29761: && !traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __delim)) 29761: { 29761: ++_M_gcount; 29761: __c = __sb->snextc(); 29761: } 29761: if (__n == __gnu_cxx::__numeric_traits::__max 29761: && !traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __delim)) 29761: { 29761: _M_gcount = 29761: __gnu_cxx::__numeric_traits::__min; 29761: __large_ignore = true; 29761: } 29761: else 29761: break; 29761: } 29761: 29761: if (__n == __gnu_cxx::__numeric_traits::__max) 29761: { 29761: if (__large_ignore) 29761: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29761: 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: else 29761: { 29761: if (_M_gcount != __n) 29761: ++_M_gcount; 29761: __sb->sbumpc(); 29761: } 29761: } 29761: else if (_M_gcount < __n) 29761: { 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: else 29761: { 29761: ++_M_gcount; 29761: __sb->sbumpc(); 29761: } 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: typename basic_istream<_CharT, _Traits>::int_type 29761: basic_istream<_CharT, _Traits>:: 29761: peek(void) 29761: { 29761: int_type __c = traits_type::eof(); 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: __c = this->rdbuf()->sgetc(); 29761: if (traits_type::eq_int_type(__c, traits_type::eof())) 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return __c; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: read(char_type* __s, streamsize __n) 29761: { 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: _M_gcount = this->rdbuf()->sgetn(__s, __n); 29761: if (_M_gcount != __n) 29761: __err |= (ios_base::eofbit | ios_base::failbit); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: streamsize 29761: basic_istream<_CharT, _Traits>:: 29761: readsome(char_type* __s, streamsize __n) 29761: { 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: 29761: const streamsize __num = this->rdbuf()->in_avail(); 29761: if (__num > 0) 29761: _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); 29761: else if (__num == -1) 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return _M_gcount; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: putback(char_type __c) 29761: { 29761: 29761: 29761: _M_gcount = 0; 29761: 29761: this->clear(this->rdstate() & ~ios_base::eofbit); 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: if (!__sb 29761: || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) 29761: __err |= ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: unget(void) 29761: { 29761: 29761: 29761: _M_gcount = 0; 29761: 29761: this->clear(this->rdstate() & ~ios_base::eofbit); 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: if (!__sb 29761: || traits_type::eq_int_type(__sb->sungetc(), __eof)) 29761: __err |= ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: int 29761: basic_istream<_CharT, _Traits>:: 29761: sync(void) 29761: { 29761: 29761: 29761: int __ret = -1; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: __streambuf_type* __sb = this->rdbuf(); 29761: if (__sb) 29761: { 29761: if (__sb->pubsync() == -1) 29761: __err |= ios_base::badbit; 29761: else 29761: __ret = 0; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_istream<_CharT, _Traits>::pos_type 29761: basic_istream<_CharT, _Traits>:: 29761: tellg(void) 29761: { 29761: 29761: 29761: pos_type __ret = pos_type(-1); 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: if (!this->fail()) 29761: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, 29761: ios_base::in); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: seekg(pos_type __pos) 29761: { 29761: 29761: 29761: 29761: this->clear(this->rdstate() & ~ios_base::eofbit); 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: if (!this->fail()) 29761: { 29761: 29761: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 29761: ios_base::in); 29761: 29761: 29761: if (__p == pos_type(off_type(-1))) 29761: __err |= ios_base::failbit; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: seekg(off_type __off, ios_base::seekdir __dir) 29761: { 29761: 29761: 29761: 29761: this->clear(this->rdstate() & ~ios_base::eofbit); 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: if (!this->fail()) 29761: { 29761: 29761: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 29761: ios_base::in); 29761: 29761: 29761: if (__p == pos_type(off_type(-1))) 29761: __err |= ios_base::failbit; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) 29761: { 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef typename __istream_type::int_type __int_type; 29761: 29761: typename __istream_type::sentry __cerb(__in, false); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const __int_type __cb = __in.rdbuf()->sbumpc(); 29761: if (!_Traits::eq_int_type(__cb, _Traits::eof())) 29761: __c = _Traits::to_char_type(__cb); 29761: else 29761: __err |= (ios_base::eofbit | ios_base::failbit); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { __in._M_setstate(ios_base::badbit); } 29761: if (__err) 29761: __in.setstate(__err); 29761: } 29761: return __in; 29761: } 29761: 29761: template 29761: void 29761: __istream_extract(basic_istream<_CharT, _Traits>& __in, _CharT* __s, 29761: streamsize __num) 29761: { 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef _CharT char_type; 29761: typedef ctype<_CharT> __ctype_type; 29761: 29761: streamsize __extracted = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: typename __istream_type::sentry __cerb(__in, false); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: 29761: streamsize __width = __in.width(); 29761: if (0 < __width && __width < __num) 29761: __num = __width; 29761: 29761: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29761: 29761: const int_type __eof = _Traits::eof(); 29761: __streambuf_type* __sb = __in.rdbuf(); 29761: int_type __c = __sb->sgetc(); 29761: 29761: while (__extracted < __num - 1 29761: && !_Traits::eq_int_type(__c, __eof) 29761: && !__ct.is(ctype_base::space, 29761: _Traits::to_char_type(__c))) 29761: { 29761: *__s++ = _Traits::to_char_type(__c); 29761: ++__extracted; 29761: __c = __sb->snextc(); 29761: } 29761: 29761: if (__extracted < __num - 1 29761: && _Traits::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: 29761: 29761: 29761: *__s = char_type(); 29761: __in.width(0); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { __in._M_setstate(ios_base::badbit); } 29761: } 29761: if (!__extracted) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: __in.setstate(__err); 29761: } 29761: 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: ws(basic_istream<_CharT, _Traits>& __in) 29761: { 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29761: typedef typename __istream_type::int_type __int_type; 29761: typedef ctype<_CharT> __ctype_type; 29761: 29761: 29761: 29761: typename __istream_type::sentry __cerb(__in, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29761: const __int_type __eof = _Traits::eof(); 29761: __streambuf_type* __sb = __in.rdbuf(); 29761: __int_type __c = __sb->sgetc(); 29761: 29761: while (true) 29761: { 29761: if (_Traits::eq_int_type(__c, __eof)) 29761: { 29761: __err = ios_base::eofbit; 29761: break; 29761: } 29761: if (!__ct.is(ctype_base::space, _Traits::to_char_type(__c))) 29761: break; 29761: __c = __sb->snextc(); 29761: } 29761: } 29761: catch(const __cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { 29761: __in._M_setstate(ios_base::badbit); 29761: } 29761: if (__err) 29761: __in.setstate(__err); 29761: } 29761: return __in; 29761: } 29761: 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++11-extensions" 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: extern template class basic_istream; 29761: extern template istream& ws(istream&); 29761: extern template istream& operator>>(istream&, char&); 29761: extern template istream& operator>>(istream&, unsigned char&); 29761: extern template istream& operator>>(istream&, signed char&); 29761: 29761: extern template istream& istream::_M_extract(unsigned short&); 29761: extern template istream& istream::_M_extract(unsigned int&); 29761: extern template istream& istream::_M_extract(long&); 29761: extern template istream& istream::_M_extract(unsigned long&); 29761: extern template istream& istream::_M_extract(bool&); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: extern template istream& istream::_M_extract(long long&); 29761: extern template istream& istream::_M_extract(unsigned long long&); 29761: #pragma GCC diagnostic pop 29761: 29761: extern template istream& istream::_M_extract(float&); 29761: extern template istream& istream::_M_extract(double&); 29761: extern template istream& istream::_M_extract(long double&); 29761: extern template istream& istream::_M_extract(void*&); 29761: 29761: extern template class basic_iostream; 29761: 29761: 29761: extern template class basic_istream; 29761: extern template wistream& ws(wistream&); 29761: extern template wistream& operator>>(wistream&, wchar_t&); 29761: extern template void __istream_extract(wistream&, wchar_t*, streamsize); 29761: 29761: extern template wistream& wistream::_M_extract(unsigned short&); 29761: extern template wistream& wistream::_M_extract(unsigned int&); 29761: extern template wistream& wistream::_M_extract(long&); 29761: extern template wistream& wistream::_M_extract(unsigned long&); 29761: extern template wistream& wistream::_M_extract(bool&); 29761: 29761: extern template wistream& wistream::_M_extract(long long&); 29761: extern template wistream& wistream::_M_extract(unsigned long long&); 29761: 29761: extern template wistream& wistream::_M_extract(float&); 29761: extern template wistream& wistream::_M_extract(double&); 29761: extern template wistream& wistream::_M_extract(long double&); 29761: extern template wistream& wistream::_M_extract(void*&); 29761: 29761: extern template class basic_iostream; 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: } 29761: # 1110 "/usr/include/c++/14/istream" 2 3 29761: # 41 "/usr/include/c++/14/sstream" 2 3 29761: # 55 "/usr/include/c++/14/sstream" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace __cxx11 { 29761: # 78 "/usr/include/c++/14/sstream" 3 29761: template 29761: class basic_stringbuf : public basic_streambuf<_CharT, _Traits> 29761: { 29761: struct __xfer_bufptrs; 29761: 29761: 29761: using allocator_traits = std::allocator_traits<_Alloc>; 29761: using _Noexcept_swap 29761: = __or_; 29761: 29761: 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef _Alloc allocator_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: typedef basic_streambuf __streambuf_type; 29761: typedef basic_string __string_type; 29761: typedef typename __string_type::size_type __size_type; 29761: 29761: protected: 29761: 29761: ios_base::openmode _M_mode; 29761: 29761: 29761: __string_type _M_string; 29761: 29761: public: 29761: # 121 "/usr/include/c++/14/sstream" 3 29761: basic_stringbuf() 29761: : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() 29761: { } 29761: # 132 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_stringbuf(ios_base::openmode __mode) 29761: : __streambuf_type(), _M_mode(__mode), _M_string() 29761: { } 29761: # 145 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_stringbuf(const __string_type& __str, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: : __streambuf_type(), _M_mode(), 29761: _M_string(__str.data(), __str.size(), __str.get_allocator()) 29761: { _M_stringbuf_init(__mode); } 29761: 29761: 29761: basic_stringbuf(const basic_stringbuf&) = delete; 29761: 29761: basic_stringbuf(basic_stringbuf&& __rhs) 29761: : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) 29761: { __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); } 29761: # 209 "/usr/include/c++/14/sstream" 3 29761: basic_stringbuf& 29761: operator=(const basic_stringbuf&) = delete; 29761: 29761: basic_stringbuf& 29761: operator=(basic_stringbuf&& __rhs) 29761: { 29761: __xfer_bufptrs __st{__rhs, this}; 29761: const __streambuf_type& __base = __rhs; 29761: __streambuf_type::operator=(__base); 29761: this->pubimbue(__rhs.getloc()); 29761: _M_mode = __rhs._M_mode; 29761: _M_string = std::move(__rhs._M_string); 29761: __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_stringbuf& __rhs) noexcept(_Noexcept_swap::value) 29761: { 29761: __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; 29761: __xfer_bufptrs __r_st{__rhs, this}; 29761: __streambuf_type& __base = __rhs; 29761: __streambuf_type::swap(__base); 29761: __rhs.pubimbue(this->pubimbue(__rhs.getloc())); 29761: std::swap(_M_mode, __rhs._M_mode); 29761: std::swap(_M_string, __rhs._M_string); 29761: } 29761: # 248 "/usr/include/c++/14/sstream" 3 29761: __string_type 29761: str() const 29761: { 29761: __string_type __ret(_M_string.get_allocator()); 29761: if (char_type* __hi = _M_high_mark()) 29761: __ret.assign(this->pbase(), __hi); 29761: else 29761: __ret = _M_string; 29761: return __ret; 29761: } 29761: # 304 "/usr/include/c++/14/sstream" 3 29761: void 29761: str(const __string_type& __s) 29761: { 29761: 29761: 29761: _M_string.assign(__s.data(), __s.size()); 29761: _M_stringbuf_init(_M_mode); 29761: } 29761: # 333 "/usr/include/c++/14/sstream" 3 29761: protected: 29761: 29761: void 29761: _M_stringbuf_init(ios_base::openmode __mode) 29761: { 29761: _M_mode = __mode; 29761: __size_type __len = 0; 29761: if (_M_mode & (ios_base::ate | ios_base::app)) 29761: __len = _M_string.size(); 29761: _M_sync(const_cast(_M_string.data()), 0, __len); 29761: } 29761: 29761: virtual streamsize 29761: showmanyc() 29761: { 29761: streamsize __ret = -1; 29761: if (_M_mode & ios_base::in) 29761: { 29761: _M_update_egptr(); 29761: __ret = this->egptr() - this->gptr(); 29761: } 29761: return __ret; 29761: } 29761: 29761: virtual int_type 29761: underflow(); 29761: 29761: virtual int_type 29761: pbackfail(int_type __c = traits_type::eof()); 29761: 29761: virtual int_type 29761: overflow(int_type __c = traits_type::eof()); 29761: # 377 "/usr/include/c++/14/sstream" 3 29761: virtual __streambuf_type* 29761: setbuf(char_type* __s, streamsize __n) 29761: { 29761: if (__s && __n >= 0) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: _M_string.clear(); 29761: 29761: 29761: _M_sync(__s, __n, 0); 29761: } 29761: return this; 29761: } 29761: 29761: virtual pos_type 29761: seekoff(off_type __off, ios_base::seekdir __way, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out); 29761: 29761: virtual pos_type 29761: seekpos(pos_type __sp, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out); 29761: 29761: 29761: 29761: 29761: void 29761: _M_sync(char_type* __base, __size_type __i, __size_type __o); 29761: 29761: 29761: 29761: void 29761: _M_update_egptr() 29761: { 29761: if (char_type* __pptr = this->pptr()) 29761: { 29761: char_type* __egptr = this->egptr(); 29761: if (!__egptr || __pptr > __egptr) 29761: { 29761: if (_M_mode & ios_base::in) 29761: this->setg(this->eback(), this->gptr(), __pptr); 29761: else 29761: this->setg(__pptr, __pptr, __pptr); 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: void 29761: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: char_type* 29761: _M_high_mark() const noexcept 29761: { 29761: if (char_type* __pptr = this->pptr()) 29761: { 29761: char_type* __egptr = this->egptr(); 29761: if (!__egptr || __pptr > __egptr) 29761: return __pptr; 29761: else 29761: return __egptr; 29761: } 29761: return 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: struct __xfer_bufptrs 29761: { 29761: __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) 29761: : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} 29761: { 29761: const _CharT* const __str = __from._M_string.data(); 29761: const _CharT* __end = nullptr; 29761: if (__from.eback()) 29761: { 29761: _M_goff[0] = __from.eback() - __str; 29761: _M_goff[1] = __from.gptr() - __str; 29761: _M_goff[2] = __from.egptr() - __str; 29761: __end = __from.egptr(); 29761: } 29761: if (__from.pbase()) 29761: { 29761: _M_poff[0] = __from.pbase() - __str; 29761: _M_poff[1] = __from.pptr() - __from.pbase(); 29761: _M_poff[2] = __from.epptr() - __str; 29761: if (!__end || __from.pptr() > __end) 29761: __end = __from.pptr(); 29761: } 29761: 29761: 29761: if (__end) 29761: { 29761: 29761: 29761: auto& __mut_from = const_cast(__from); 29761: __mut_from._M_string._M_length(__end - __str); 29761: } 29761: } 29761: 29761: ~__xfer_bufptrs() 29761: { 29761: char_type* __str = const_cast(_M_to->_M_string.data()); 29761: if (_M_goff[0] != -1) 29761: _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); 29761: if (_M_poff[0] != -1) 29761: _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); 29761: } 29761: 29761: basic_stringbuf* _M_to; 29761: off_type _M_goff[3]; 29761: off_type _M_poff[3]; 29761: }; 29761: # 513 "/usr/include/c++/14/sstream" 3 29761: basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) 29761: : __streambuf_type(static_cast(__rhs)), 29761: _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) 29761: { } 29761: # 528 "/usr/include/c++/14/sstream" 3 29761: }; 29761: # 546 "/usr/include/c++/14/sstream" 3 29761: template 29761: class basic_istringstream : public basic_istream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef _Alloc allocator_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29761: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29761: typedef basic_istream __istream_type; 29761: 29761: private: 29761: __stringbuf_type _M_stringbuf; 29761: 29761: public: 29761: # 580 "/usr/include/c++/14/sstream" 3 29761: basic_istringstream() 29761: : __istream_type(), _M_stringbuf(ios_base::in) 29761: { this->init(&_M_stringbuf); } 29761: # 596 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_istringstream(ios_base::openmode __mode) 29761: : __istream_type(), _M_stringbuf(__mode | ios_base::in) 29761: { this->init(&_M_stringbuf); } 29761: # 614 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_istringstream(const __string_type& __str, 29761: ios_base::openmode __mode = ios_base::in) 29761: : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) 29761: { this->init(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~basic_istringstream() 29761: { } 29761: 29761: 29761: basic_istringstream(const basic_istringstream&) = delete; 29761: 29761: basic_istringstream(basic_istringstream&& __rhs) 29761: : __istream_type(std::move(__rhs)), 29761: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29761: { __istream_type::set_rdbuf(&_M_stringbuf); } 29761: # 671 "/usr/include/c++/14/sstream" 3 29761: basic_istringstream& 29761: operator=(const basic_istringstream&) = delete; 29761: 29761: basic_istringstream& 29761: operator=(basic_istringstream&& __rhs) 29761: { 29761: __istream_type::operator=(std::move(__rhs)); 29761: _M_stringbuf = std::move(__rhs._M_stringbuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_istringstream& __rhs) 29761: { 29761: __istream_type::swap(__rhs); 29761: _M_stringbuf.swap(__rhs._M_stringbuf); 29761: } 29761: # 697 "/usr/include/c++/14/sstream" 3 29761: __stringbuf_type* 29761: rdbuf() const 29761: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: __string_type 29761: str() const 29761: { return _M_stringbuf.str(); } 29761: # 735 "/usr/include/c++/14/sstream" 3 29761: void 29761: str(const __string_type& __s) 29761: { _M_stringbuf.str(__s); } 29761: # 752 "/usr/include/c++/14/sstream" 3 29761: }; 29761: # 770 "/usr/include/c++/14/sstream" 3 29761: template 29761: class basic_ostringstream : public basic_ostream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef _Alloc allocator_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29761: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29761: typedef basic_ostream __ostream_type; 29761: 29761: private: 29761: __stringbuf_type _M_stringbuf; 29761: 29761: public: 29761: # 804 "/usr/include/c++/14/sstream" 3 29761: basic_ostringstream() 29761: : __ostream_type(), _M_stringbuf(ios_base::out) 29761: { this->init(&_M_stringbuf); } 29761: # 820 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_ostringstream(ios_base::openmode __mode) 29761: : __ostream_type(), _M_stringbuf(__mode | ios_base::out) 29761: { this->init(&_M_stringbuf); } 29761: # 838 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_ostringstream(const __string_type& __str, 29761: ios_base::openmode __mode = ios_base::out) 29761: : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) 29761: { this->init(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~basic_ostringstream() 29761: { } 29761: 29761: 29761: basic_ostringstream(const basic_ostringstream&) = delete; 29761: 29761: basic_ostringstream(basic_ostringstream&& __rhs) 29761: : __ostream_type(std::move(__rhs)), 29761: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29761: { __ostream_type::set_rdbuf(&_M_stringbuf); } 29761: # 895 "/usr/include/c++/14/sstream" 3 29761: basic_ostringstream& 29761: operator=(const basic_ostringstream&) = delete; 29761: 29761: basic_ostringstream& 29761: operator=(basic_ostringstream&& __rhs) 29761: { 29761: __ostream_type::operator=(std::move(__rhs)); 29761: _M_stringbuf = std::move(__rhs._M_stringbuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_ostringstream& __rhs) 29761: { 29761: __ostream_type::swap(__rhs); 29761: _M_stringbuf.swap(__rhs._M_stringbuf); 29761: } 29761: # 921 "/usr/include/c++/14/sstream" 3 29761: __stringbuf_type* 29761: rdbuf() const 29761: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: __string_type 29761: str() const 29761: { return _M_stringbuf.str(); } 29761: # 959 "/usr/include/c++/14/sstream" 3 29761: void 29761: str(const __string_type& __s) 29761: { _M_stringbuf.str(__s); } 29761: # 976 "/usr/include/c++/14/sstream" 3 29761: }; 29761: # 994 "/usr/include/c++/14/sstream" 3 29761: template 29761: class basic_stringstream : public basic_iostream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef _Alloc allocator_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29761: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29761: typedef basic_iostream __iostream_type; 29761: 29761: private: 29761: __stringbuf_type _M_stringbuf; 29761: 29761: public: 29761: # 1028 "/usr/include/c++/14/sstream" 3 29761: basic_stringstream() 29761: : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) 29761: { this->init(&_M_stringbuf); } 29761: # 1042 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_stringstream(ios_base::openmode __m) 29761: : __iostream_type(), _M_stringbuf(__m) 29761: { this->init(&_M_stringbuf); } 29761: # 1058 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_stringstream(const __string_type& __str, 29761: ios_base::openmode __m = ios_base::out | ios_base::in) 29761: : __iostream_type(), _M_stringbuf(__str, __m) 29761: { this->init(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~basic_stringstream() 29761: { } 29761: 29761: 29761: basic_stringstream(const basic_stringstream&) = delete; 29761: 29761: basic_stringstream(basic_stringstream&& __rhs) 29761: : __iostream_type(std::move(__rhs)), 29761: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29761: { __iostream_type::set_rdbuf(&_M_stringbuf); } 29761: # 1117 "/usr/include/c++/14/sstream" 3 29761: basic_stringstream& 29761: operator=(const basic_stringstream&) = delete; 29761: 29761: basic_stringstream& 29761: operator=(basic_stringstream&& __rhs) 29761: { 29761: __iostream_type::operator=(std::move(__rhs)); 29761: _M_stringbuf = std::move(__rhs._M_stringbuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_stringstream& __rhs) 29761: { 29761: __iostream_type::swap(__rhs); 29761: _M_stringbuf.swap(__rhs._M_stringbuf); 29761: } 29761: # 1143 "/usr/include/c++/14/sstream" 3 29761: __stringbuf_type* 29761: rdbuf() const 29761: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: __string_type 29761: str() const 29761: { return _M_stringbuf.str(); } 29761: # 1181 "/usr/include/c++/14/sstream" 3 29761: void 29761: str(const __string_type& __s) 29761: { _M_stringbuf.str(__s); } 29761: # 1198 "/usr/include/c++/14/sstream" 3 29761: }; 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, 29761: basic_stringbuf<_CharT, _Traits, _Allocator>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, 29761: basic_istringstream<_CharT, _Traits, _Allocator>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, 29761: basic_ostringstream<_CharT, _Traits, _Allocator>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, 29761: basic_stringstream<_CharT, _Traits, _Allocator>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/sstream.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/sstream.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/sstream.tcc" 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: pbackfail(int_type __c) 29761: { 29761: int_type __ret = traits_type::eof(); 29761: if (this->eback() < this->gptr()) 29761: { 29761: 29761: 29761: const bool __testeof = traits_type::eq_int_type(__c, __ret); 29761: if (!__testeof) 29761: { 29761: const bool __testeq = traits_type::eq(traits_type:: 29761: to_char_type(__c), 29761: this->gptr()[-1]); 29761: const bool __testout = this->_M_mode & ios_base::out; 29761: if (__testeq || __testout) 29761: { 29761: this->gbump(-1); 29761: if (!__testeq) 29761: *this->gptr() = traits_type::to_char_type(__c); 29761: __ret = __c; 29761: } 29761: } 29761: else 29761: { 29761: this->gbump(-1); 29761: __ret = traits_type::not_eof(__c); 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: overflow(int_type __c) 29761: { 29761: const bool __testout = this->_M_mode & ios_base::out; 29761: if (__builtin_expect(!__testout, false)) 29761: return traits_type::eof(); 29761: 29761: const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); 29761: if (__builtin_expect(__testeof, false)) 29761: return traits_type::not_eof(__c); 29761: 29761: const __size_type __capacity = _M_string.capacity(); 29761: 29761: 29761: if (size_t(this->epptr() - this->pbase()) < __capacity) 29761: { 29761: 29761: char_type* __base = const_cast(_M_string.data()); 29761: _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); 29761: if (_M_mode & ios_base::in) 29761: { 29761: const __size_type __nget = this->gptr() - this->eback(); 29761: const __size_type __eget = this->egptr() - this->eback(); 29761: this->setg(__base, __base + __nget, __base + __eget + 1); 29761: } 29761: *this->pptr() = traits_type::to_char_type(__c); 29761: this->pbump(1); 29761: return __c; 29761: } 29761: 29761: 29761: const __size_type __max_size = _M_string.max_size(); 29761: const bool __testput = this->pptr() < this->epptr(); 29761: if (__builtin_expect(!__testput && __capacity == __max_size, false)) 29761: return traits_type::eof(); 29761: 29761: 29761: 29761: const char_type __conv = traits_type::to_char_type(__c); 29761: if (!__testput) 29761: { 29761: # 129 "/usr/include/c++/14/bits/sstream.tcc" 3 29761: const __size_type __opt_len = std::max(__size_type(2 * __capacity), 29761: __size_type(512)); 29761: const __size_type __len = std::min(__opt_len, __max_size); 29761: __string_type __tmp(_M_string.get_allocator()); 29761: __tmp.reserve(__len); 29761: if (this->pbase()) 29761: __tmp.assign(this->pbase(), this->epptr() - this->pbase()); 29761: __tmp.push_back(__conv); 29761: _M_string.swap(__tmp); 29761: _M_sync(const_cast(_M_string.data()), 29761: this->gptr() - this->eback(), this->pptr() - this->pbase()); 29761: } 29761: else 29761: *this->pptr() = __conv; 29761: this->pbump(1); 29761: return __c; 29761: } 29761: 29761: template 29761: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: underflow() 29761: { 29761: int_type __ret = traits_type::eof(); 29761: const bool __testin = this->_M_mode & ios_base::in; 29761: if (__testin) 29761: { 29761: 29761: _M_update_egptr(); 29761: 29761: if (this->gptr() < this->egptr()) 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) 29761: { 29761: pos_type __ret = pos_type(off_type(-1)); 29761: bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 29761: bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 29761: const bool __testboth = __testin && __testout && __way != ios_base::cur; 29761: __testin &= !(__mode & ios_base::out); 29761: __testout &= !(__mode & ios_base::in); 29761: 29761: 29761: 29761: const char_type* __beg = __testin ? this->eback() : this->pbase(); 29761: if ((__beg || !__off) && (__testin || __testout || __testboth)) 29761: { 29761: _M_update_egptr(); 29761: 29761: off_type __newoffi = __off; 29761: off_type __newoffo = __newoffi; 29761: if (__way == ios_base::cur) 29761: { 29761: __newoffi += this->gptr() - __beg; 29761: __newoffo += this->pptr() - __beg; 29761: } 29761: else if (__way == ios_base::end) 29761: __newoffo = __newoffi += this->egptr() - __beg; 29761: 29761: if ((__testin || __testboth) 29761: && __newoffi >= 0 29761: && this->egptr() - __beg >= __newoffi) 29761: { 29761: this->setg(this->eback(), this->eback() + __newoffi, 29761: this->egptr()); 29761: __ret = pos_type(__newoffi); 29761: } 29761: if ((__testout || __testboth) 29761: && __newoffo >= 0 29761: && this->egptr() - __beg >= __newoffo) 29761: { 29761: _M_pbump(this->pbase(), this->epptr(), __newoffo); 29761: __ret = pos_type(__newoffo); 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: seekpos(pos_type __sp, ios_base::openmode __mode) 29761: { 29761: pos_type __ret = pos_type(off_type(-1)); 29761: const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 29761: const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 29761: 29761: const char_type* __beg = __testin ? this->eback() : this->pbase(); 29761: if ((__beg || !off_type(__sp)) && (__testin || __testout)) 29761: { 29761: _M_update_egptr(); 29761: 29761: const off_type __pos(__sp); 29761: const bool __testpos = (0 <= __pos 29761: && __pos <= this->egptr() - __beg); 29761: if (__testpos) 29761: { 29761: if (__testin) 29761: this->setg(this->eback(), this->eback() + __pos, 29761: this->egptr()); 29761: if (__testout) 29761: _M_pbump(this->pbase(), this->epptr(), __pos); 29761: __ret = __sp; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: void 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: _M_sync(char_type* __base, __size_type __i, __size_type __o) 29761: { 29761: const bool __testin = _M_mode & ios_base::in; 29761: const bool __testout = _M_mode & ios_base::out; 29761: char_type* __endg = __base + _M_string.size(); 29761: char_type* __endp = __base + _M_string.capacity(); 29761: 29761: if (__base != _M_string.data()) 29761: { 29761: 29761: __endg += __i; 29761: __i = 0; 29761: __endp = __endg; 29761: } 29761: 29761: if (__testin) 29761: this->setg(__base, __base + __i, __endg); 29761: if (__testout) 29761: { 29761: _M_pbump(__base, __endp, __o); 29761: 29761: 29761: 29761: if (!__testin) 29761: this->setg(__endg, __endg, __endg); 29761: } 29761: } 29761: 29761: template 29761: void 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) 29761: { 29761: this->setp(__pbeg, __pend); 29761: while (__off > __gnu_cxx::__numeric_traits::__max) 29761: { 29761: this->pbump(__gnu_cxx::__numeric_traits::__max); 29761: __off -= __gnu_cxx::__numeric_traits::__max; 29761: } 29761: this->pbump(__off); 29761: } 29761: 29761: 29761: 29761: 29761: extern template class basic_stringbuf; 29761: extern template class basic_istringstream; 29761: extern template class basic_ostringstream; 29761: extern template class basic_stringstream; 29761: 29761: 29761: extern template class basic_stringbuf; 29761: extern template class basic_istringstream; 29761: extern template class basic_ostringstream; 29761: extern template class basic_stringstream; 29761: 29761: 29761: 29761: 29761: } 29761: # 1239 "/usr/include/c++/14/sstream" 2 3 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 1 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstdarg" 1 3 29761: # 39 "/usr/include/c++/14/cstdarg" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdarg" 3 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 2 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 1 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: namespace rocksdb { 29761: 29761: 29761: class Cache; 29761: class FilterPolicy; 29761: class FlushBlockPolicyFactory; 29761: class PersistentCache; 29761: class RandomAccessFile; 29761: struct TableReaderOptions; 29761: struct TableBuilderOptions; 29761: class TableBuilder; 29761: class TableFactory; 29761: class TableReader; 29761: class WritableFileWriter; 29761: struct ConfigOptions; 29761: struct EnvOptions; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum ChecksumType : char { 29761: kNoChecksum = 0x0, 29761: kCRC32c = 0x1, 29761: kxxHash = 0x2, 29761: kxxHash64 = 0x3, 29761: kXXH3 = 0x4, 29761: }; 29761: 29761: 29761: 29761: 29761: enum class PinningTier { 29761: 29761: 29761: 29761: 29761: kFallback, 29761: 29761: 29761: kNone, 29761: 29761: 29761: 29761: 29761: 29761: 29761: kFlushedAndSimilar, 29761: 29761: 29761: kAll, 29761: }; 29761: 29761: 29761: 29761: struct MetadataCacheOptions { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: PinningTier top_level_index_pinning = PinningTier::kFallback; 29761: 29761: 29761: 29761: PinningTier partition_pinning = PinningTier::kFallback; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: PinningTier unpartitioned_pinning = PinningTier::kFallback; 29761: }; 29761: 29761: struct CacheEntryRoleOptions { 29761: enum class Decision { 29761: kEnabled, 29761: kDisabled, 29761: kFallback, 29761: }; 29761: Decision charged = Decision::kFallback; 29761: bool operator==(const CacheEntryRoleOptions& other) const { 29761: return charged == other.charged; 29761: } 29761: }; 29761: 29761: struct CacheUsageOptions { 29761: CacheEntryRoleOptions options; 29761: std::map options_overrides; 29761: }; 29761: # 147 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: struct BlockBasedTableOptions { 29761: static const char* kName() { return "BlockTableOptions"; } 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr flush_block_policy_factory; 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool cache_index_and_filter_blocks = false; 29761: 29761: 29761: 29761: 29761: 29761: bool cache_index_and_filter_blocks_with_high_priority = true; 29761: # 196 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool pin_l0_filter_and_index_blocks_in_cache = false; 29761: # 218 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool pin_top_level_index_and_filter = true; 29761: 29761: 29761: 29761: 29761: 29761: MetadataCacheOptions metadata_cache_options; 29761: 29761: 29761: enum IndexType : char { 29761: 29761: 29761: kBinarySearch = 0x00, 29761: 29761: 29761: 29761: kHashSearch = 0x01, 29761: 29761: 29761: 29761: 29761: kTwoLevelIndexSearch = 0x02, 29761: # 252 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: kBinarySearchWithFirstKey = 0x03, 29761: }; 29761: 29761: IndexType index_type = kBinarySearch; 29761: 29761: 29761: enum DataBlockIndexType : char { 29761: kDataBlockBinarySearch = 0, 29761: kDataBlockBinaryAndHash = 1, 29761: }; 29761: 29761: DataBlockIndexType data_block_index_type = kDataBlockBinarySearch; 29761: 29761: 29761: 29761: double data_block_hash_table_util_ratio = 0.75; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ChecksumType checksum = kXXH3; 29761: 29761: 29761: 29761: 29761: 29761: bool no_block_cache = false; 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: std::shared_ptr block_cache = nullptr; 29761: 29761: 29761: 29761: std::shared_ptr persistent_cache = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t block_size = 4 * 1024; 29761: 29761: 29761: 29761: 29761: 29761: 29761: int block_size_deviation = 10; 29761: 29761: 29761: 29761: 29761: 29761: int block_restart_interval = 16; 29761: 29761: 29761: int index_block_restart_interval = 1; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t metadata_block_size = 4096; 29761: # 412 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: CacheUsageOptions cache_usage_options; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool partition_filters = false; 29761: # 437 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool decouple_partitioned_filters = false; 29761: # 472 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool optimize_filters_for_memory = true; 29761: 29761: 29761: 29761: 29761: 29761: bool use_delta_encoding = true; 29761: 29761: 29761: 29761: 29761: std::shared_ptr filter_policy = nullptr; 29761: 29761: 29761: 29761: bool whole_key_filtering = true; 29761: # 497 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool detect_filter_construct_corruption = false; 29761: 29761: 29761: 29761: 29761: bool verify_compression = false; 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: uint32_t read_amp_bytes_per_bit = 0; 29761: # 563 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: uint32_t format_version = 6; 29761: 29761: 29761: 29761: 29761: bool enable_index_compression = true; 29761: 29761: 29761: bool block_align = false; 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: enum class IndexShorteningMode : char { 29761: 29761: kNoShortening, 29761: 29761: 29761: kShortenSeparators, 29761: 29761: kShortenSeparatorsAndSuccessor, 29761: }; 29761: 29761: IndexShorteningMode index_shortening = 29761: IndexShorteningMode::kShortenSeparators; 29761: # 627 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: size_t max_auto_readahead_size = 256 * 1024; 29761: # 637 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: enum class PrepopulateBlockCache : char { 29761: 29761: kDisable, 29761: 29761: kFlushOnly, 29761: }; 29761: 29761: PrepopulateBlockCache prepopulate_block_cache = 29761: PrepopulateBlockCache::kDisable; 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: size_t initial_auto_readahead_size = 8 * 1024; 29761: # 687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: uint64_t num_file_reads_for_auto_readahead = 2; 29761: }; 29761: 29761: 29761: struct BlockBasedTablePropertyNames { 29761: 29761: static const std::string kIndexType; 29761: 29761: static const std::string kWholeKeyFiltering; 29761: 29761: static const std::string kPrefixFiltering; 29761: 29761: 29761: 29761: 29761: static const std::string kDecoupledPartitionedFilters; 29761: }; 29761: 29761: 29761: TableFactory* NewBlockBasedTableFactory( 29761: const BlockBasedTableOptions& table_options = BlockBasedTableOptions()); 29761: 29761: enum EncodingType : char { 29761: 29761: kPlain, 29761: # 723 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: kPrefix, 29761: }; 29761: 29761: 29761: struct PlainTablePropertyNames { 29761: static const std::string kEncodingType; 29761: static const std::string kBloomVersion; 29761: static const std::string kNumBloomBlocks; 29761: }; 29761: 29761: const uint32_t kPlainTableVariableLength = 0; 29761: 29761: struct PlainTableOptions { 29761: static const char* kName() { return "PlainTableOptions"; } 29761: 29761: 29761: 29761: 29761: uint32_t user_key_len = kPlainTableVariableLength; 29761: 29761: 29761: 29761: int bloom_bits_per_key = 10; 29761: 29761: 29761: 29761: 29761: 29761: double hash_table_ratio = 0.75; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t index_sparseness = 16; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t huge_page_tlb_size = 0; 29761: # 776 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: EncodingType encoding_type = kPlain; 29761: 29761: 29761: 29761: bool full_scan_mode = false; 29761: 29761: 29761: 29761: 29761: bool store_index_in_file = false; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: TableFactory* NewPlainTableFactory( 29761: const PlainTableOptions& options = PlainTableOptions()); 29761: 29761: struct CuckooTablePropertyNames { 29761: 29761: static const std::string kEmptyKey; 29761: 29761: static const std::string kValueLength; 29761: 29761: static const std::string kNumHashFunc; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kCuckooBlockSize; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kHashTableSize; 29761: 29761: 29761: static const std::string kIsLastLevel; 29761: 29761: static const std::string kIdentityAsFirstHash; 29761: 29761: static const std::string kUseModuleHash; 29761: 29761: static const std::string kUserKeyLength; 29761: }; 29761: 29761: struct CuckooTableOptions { 29761: static const char* kName() { return "CuckooTableOptions"; } 29761: 29761: 29761: 29761: double hash_table_ratio = 0.9; 29761: 29761: 29761: 29761: 29761: 29761: uint32_t max_search_depth = 100; 29761: 29761: 29761: 29761: 29761: 29761: uint32_t cuckoo_block_size = 5; 29761: 29761: 29761: 29761: 29761: bool identity_as_first_hash = false; 29761: 29761: 29761: 29761: 29761: 29761: bool use_module_hash = true; 29761: }; 29761: 29761: 29761: TableFactory* NewCuckooTableFactory( 29761: const CuckooTableOptions& table_options = CuckooTableOptions()); 29761: 29761: class RandomAccessFileReader; 29761: 29761: 29761: class TableFactory : public Customizable { 29761: public: 29761: ~TableFactory() override {} 29761: 29761: static const char* kBlockCacheOpts() { return "BlockCache"; } 29761: static const char* kBlockBasedTableName() { return "BlockBasedTable"; } 29761: static const char* kPlainTableName() { return "PlainTable"; } 29761: static const char* kCuckooTableName() { return "CuckooTable"; } 29761: 29761: 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& id, 29761: std::shared_ptr* factory); 29761: 29761: static const char* Type() { return "TableFactory"; } 29761: # 900 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: virtual Status NewTableReader( 29761: const TableReaderOptions& table_reader_options, 29761: std::unique_ptr&& file, uint64_t file_size, 29761: std::unique_ptr* table_reader, 29761: bool prefetch_index_and_filter_in_cache = true) const { 29761: ReadOptions ro; 29761: return NewTableReader(ro, table_reader_options, std::move(file), file_size, 29761: table_reader, prefetch_index_and_filter_in_cache); 29761: } 29761: 29761: 29761: 29761: virtual Status NewTableReader( 29761: const ReadOptions& ro, const TableReaderOptions& table_reader_options, 29761: std::unique_ptr&& file, uint64_t file_size, 29761: std::unique_ptr* table_reader, 29761: bool prefetch_index_and_filter_in_cache) const = 0; 29761: # 936 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: virtual TableBuilder* NewTableBuilder( 29761: const TableBuilderOptions& table_builder_options, 29761: WritableFileWriter* file) const = 0; 29761: 29761: 29761: 29761: 29761: virtual std::unique_ptr Clone() const = 0; 29761: 29761: 29761: virtual bool IsDeleteRangeSupported() const { return false; } 29761: }; 29761: # 958 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: TableFactory* NewAdaptiveTableFactory( 29761: std::shared_ptr table_factory_to_write = nullptr, 29761: std::shared_ptr block_based_table_factory = nullptr, 29761: std::shared_ptr plain_table_factory = nullptr, 29761: std::shared_ptr cuckoo_table_factory = nullptr); 29761: 29761: } 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class FileLock; 29761: class FSDirectory; 29761: class FSRandomAccessFile; 29761: class FSRandomRWFile; 29761: class FSSequentialFile; 29761: class FSWritableFile; 29761: class Logger; 29761: class Slice; 29761: struct ImmutableDBOptions; 29761: struct MutableDBOptions; 29761: class RateLimiter; 29761: struct ConfigOptions; 29761: 29761: using AccessPattern = RandomAccessFile::AccessPattern; 29761: using FileAttributes = Env::FileAttributes; 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum class IOPriority : uint8_t { 29761: kIOLow, 29761: kIOHigh, 29761: kIOTotal, 29761: }; 29761: 29761: 29761: 29761: 29761: enum class IOType : uint8_t { 29761: kData, 29761: kFilter, 29761: kIndex, 29761: kMetadata, 29761: kWAL, 29761: kManifest, 29761: kLog, 29761: kUnknown, 29761: kInvalid, 29761: }; 29761: 29761: 29761: 29761: enum FSSupportedOps { 29761: kAsyncIO, 29761: kFSBuffer, 29761: 29761: kVerifyAndReconstructRead, 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: struct IOOptions { 29761: 29761: std::chrono::microseconds timeout; 29761: 29761: 29761: 29761: IOPriority prio; 29761: 29761: 29761: 29761: 29761: 29761: Env::IOPriority rate_limiter_priority; 29761: 29761: 29761: IOType type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::unordered_map property_bag; 29761: 29761: 29761: 29761: bool force_dir_fsync; 29761: 29761: 29761: 29761: bool do_not_recurse; 29761: # 140 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: bool verify_and_reconstruct_read; 29761: 29761: 29761: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29761: 29761: IOOptions() : IOOptions(false) {} 29761: 29761: explicit IOOptions(bool force_dir_fsync_) 29761: : timeout(std::chrono::microseconds::zero()), 29761: prio(IOPriority::kIOLow), 29761: rate_limiter_priority(Env::IO_TOTAL), 29761: type(IOType::kUnknown), 29761: force_dir_fsync(force_dir_fsync_), 29761: do_not_recurse(false), 29761: verify_and_reconstruct_read(false) {} 29761: }; 29761: 29761: struct DirFsyncOptions { 29761: enum FsyncReason : uint8_t { 29761: kNewFileSynced, 29761: kFileRenamed, 29761: kDirRenamed, 29761: kFileDeleted, 29761: kDefault, 29761: } reason; 29761: 29761: std::string renamed_new_name; 29761: 29761: 29761: DirFsyncOptions(); 29761: 29761: explicit DirFsyncOptions(std::string file_renamed_new_name); 29761: 29761: explicit DirFsyncOptions(FsyncReason fsync_reason); 29761: }; 29761: 29761: 29761: 29761: 29761: struct FileOptions : EnvOptions { 29761: 29761: 29761: IOOptions io_options; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Temperature temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: ChecksumType handoff_checksum_type; 29761: 29761: FileOptions() : EnvOptions(), handoff_checksum_type(ChecksumType::kCRC32c) {} 29761: 29761: FileOptions(const DBOptions& opts) 29761: : EnvOptions(opts), 29761: temperature(opts.metadata_write_temperature), 29761: handoff_checksum_type(ChecksumType::kCRC32c) {} 29761: 29761: FileOptions(const EnvOptions& opts) 29761: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 29761: 29761: FileOptions(const FileOptions& opts) 29761: : EnvOptions(opts), 29761: io_options(opts.io_options), 29761: temperature(opts.temperature), 29761: handoff_checksum_type(opts.handoff_checksum_type) {} 29761: 29761: FileOptions& operator=(const FileOptions&) = default; 29761: }; 29761: 29761: 29761: 29761: struct IODebugContext { 29761: 29761: std::string file_path; 29761: 29761: 29761: std::map counters; 29761: 29761: 29761: std::string msg; 29761: 29761: 29761: std::string request_id; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum TraceData : char { 29761: 29761: 29761: 29761: kRequestID = 0, 29761: }; 29761: uint64_t trace_data = 0; 29761: 29761: IODebugContext() {} 29761: 29761: void AddCounter(std::string& name, uint64_t value) { 29761: counters.emplace(name, value); 29761: } 29761: 29761: 29761: 29761: void SetRequestId(const std::string& _request_id) { 29761: request_id = _request_id; 29761: trace_data |= (1 << TraceData::kRequestID); 29761: } 29761: 29761: std::string ToString() { 29761: std::ostringstream ss; 29761: ss << file_path << ", "; 29761: for (auto counter : counters) { 29761: ss << counter.first << " = " << counter.second << ","; 29761: } 29761: ss << msg; 29761: return ss.str(); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: using IOHandleDeleter = std::function; 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: class FileSystem : public Customizable { 29761: public: 29761: FileSystem(); 29761: 29761: 29761: FileSystem(const FileSystem&) = delete; 29761: 29761: virtual ~FileSystem(); 29761: 29761: static const char* Type() { return "FileSystem"; } 29761: static const char* kDefaultName() { return "DefaultFileSystem"; } 29761: # 313 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: static Status CreateFromString(const ConfigOptions& options, 29761: const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: static std::shared_ptr Default(); 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual Status RegisterDbPaths(const std::vector& ) { 29761: return Status::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status UnregisterDbPaths(const std::vector& ) { 29761: return Status::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus NewSequentialFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) = 0; 29761: # 368 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus NewRandomAccessFile( 29761: const std::string& fname, const FileOptions& file_opts, 29761: std::unique_ptr* result, IODebugContext* dbg) = 0; 29761: 29761: 29761: enum WriteLifeTimeHint { 29761: kWLTHNotSet = 0, 29761: kWLTHNone, 29761: kWLTHShort, 29761: kWLTHMedium, 29761: kWLTHLong, 29761: kWLTHExtreme, 29761: }; 29761: # 389 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus NewWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) = 0; 29761: # 402 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus ReopenWritableFile( 29761: const std::string& , const FileOptions& , 29761: std::unique_ptr* , IODebugContext* ) { 29761: return IOStatus::NotSupported("ReopenWritableFile"); 29761: } 29761: 29761: 29761: virtual IOStatus ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus NewRandomRWFile(const std::string& , 29761: const FileOptions& , 29761: std::unique_ptr* , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported( 29761: "RandomRWFile is not implemented in this FileSystem"); 29761: } 29761: 29761: 29761: 29761: 29761: virtual IOStatus NewMemoryMappedFileBuffer( 29761: const std::string& , 29761: std::unique_ptr* ) { 29761: return IOStatus::NotSupported( 29761: "MemoryMappedFileBuffer is not implemented in this FileSystem"); 29761: } 29761: # 445 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus NewDirectory(const std::string& name, 29761: const IOOptions& io_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus FileExists(const std::string& fname, 29761: const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus GetChildren(const std::string& dir, const IOOptions& options, 29761: std::vector* result, 29761: IODebugContext* dbg) = 0; 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus GetChildrenFileAttributes( 29761: const std::string& dir, const IOOptions& options, 29761: std::vector* result, IODebugContext* dbg) { 29761: 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: (static_cast ( 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: result != nullptr 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: "result != nullptr" 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: ; 29761: std::vector child_fnames; 29761: IOStatus s = GetChildren(dir, options, &child_fnames, dbg); 29761: if (!s.ok()) { 29761: return s; 29761: } 29761: result->resize(child_fnames.size()); 29761: size_t result_size = 0; 29761: for (size_t i = 0; i < child_fnames.size(); ++i) { 29761: const std::string path = dir + "/" + child_fnames[i]; 29761: if (!(s = GetFileSize(path, options, &(*result)[result_size].size_bytes, 29761: dbg)) 29761: .ok()) { 29761: if (FileExists(path, options, dbg).IsNotFound()) { 29761: 29761: continue; 29761: } 29761: return s; 29761: } 29761: (*result)[result_size].name = std::move(child_fnames[i]); 29761: result_size++; 29761: } 29761: result->resize(result_size); 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus DeleteFile(const std::string& fname, 29761: const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: virtual IOStatus Truncate(const std::string& , size_t , 29761: const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported( 29761: "Truncate is not supported for this FileSystem"); 29761: } 29761: 29761: 29761: virtual IOStatus CreateDir(const std::string& dirname, 29761: const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: virtual IOStatus CreateDirIfMissing(const std::string& dirname, 29761: const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: virtual IOStatus DeleteDir(const std::string& dirname, 29761: const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: 29761: virtual IOStatus GetFileSize(const std::string& fname, 29761: const IOOptions& options, uint64_t* file_size, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: virtual IOStatus GetFileModificationTime(const std::string& fname, 29761: const IOOptions& options, 29761: uint64_t* file_mtime, 29761: IODebugContext* dbg) = 0; 29761: 29761: virtual IOStatus RenameFile(const std::string& src, const std::string& target, 29761: const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: virtual IOStatus LinkFile(const std::string& , 29761: const std::string& , 29761: const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported( 29761: "LinkFile is not supported for this FileSystem"); 29761: } 29761: 29761: virtual IOStatus NumFileLinks(const std::string& , 29761: const IOOptions& , 29761: uint64_t* , IODebugContext* ) { 29761: return IOStatus::NotSupported( 29761: "Getting number of file links is not supported for this FileSystem"); 29761: } 29761: 29761: virtual IOStatus AreFilesSame(const std::string& , 29761: const std::string& , 29761: const IOOptions& , bool* , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported( 29761: "AreFilesSame is not supported for this FileSystem"); 29761: } 29761: # 593 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus LockFile(const std::string& fname, const IOOptions& options, 29761: FileLock** lock, IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: virtual IOStatus UnlockFile(FileLock* lock, const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: virtual IOStatus NewLogger(const std::string& fname, const IOOptions& io_opts, 29761: std::shared_ptr* result, 29761: IODebugContext* dbg); 29761: 29761: 29761: virtual IOStatus GetAbsolutePath(const std::string& db_path, 29761: const IOOptions& options, 29761: std::string* output_path, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: virtual void SanitizeFileOptions(FileOptions* ) const {} 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForLogRead(const FileOptions& file_options) const; 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForManifestRead( 29761: const FileOptions& file_options) const; 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForLogWrite(const FileOptions& file_options, 29761: const DBOptions& db_options) const; 29761: 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForManifestWrite( 29761: const FileOptions& file_options) const; 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForCompactionTableWrite( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& immutable_ops) const; 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForCompactionTableRead( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& db_options) const; 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForBlobFileRead( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& db_options) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus GetFreeSpace(const std::string& , 29761: const IOOptions& , 29761: uint64_t* , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("GetFreeSpace"); 29761: } 29761: 29761: virtual IOStatus IsDirectory(const std::string& , 29761: const IOOptions& options, bool* is_dir, 29761: IODebugContext* ) = 0; 29761: # 694 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Poll(std::vector& , 29761: size_t ) { 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus AbortIO(std::vector& ) { 29761: return IOStatus::OK(); 29761: } 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual void DiscardCacheForDirectory(const std::string& ) {} 29761: # 727 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual void SupportedOps(int64_t& supported_ops) { 29761: supported_ops = 0; 29761: supported_ops |= (1 << FSSupportedOps::kAsyncIO); 29761: } 29761: 29761: 29761: 29761: private: 29761: void operator=(const FileSystem&); 29761: }; 29761: 29761: 29761: class FSSequentialFile { 29761: public: 29761: FSSequentialFile() {} 29761: 29761: virtual ~FSSequentialFile() {} 29761: # 757 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29761: char* scratch, IODebugContext* dbg) = 0; 29761: # 767 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Skip(uint64_t n) = 0; 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: 29761: virtual IOStatus InvalidateCache(size_t , size_t ) { 29761: return IOStatus::NotSupported("InvalidateCache not supported."); 29761: } 29761: 29761: 29761: 29761: virtual IOStatus PositionedRead(uint64_t , size_t , 29761: const IOOptions& , 29761: Slice* , char* , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("PositionedRead"); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29761: 29761: 29761: 29761: }; 29761: 29761: using FSAllocationPtr = std::unique_ptr>; 29761: 29761: 29761: struct FSReadRequest { 29761: 29761: uint64_t offset; 29761: 29761: 29761: 29761: size_t len; 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: char* scratch; 29761: # 836 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: Slice result; 29761: 29761: 29761: 29761: IOStatus status; 29761: # 865 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: FSAllocationPtr fs_scratch; 29761: }; 29761: 29761: 29761: class FSRandomAccessFile { 29761: public: 29761: FSRandomAccessFile() {} 29761: 29761: virtual ~FSRandomAccessFile() {} 29761: # 889 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const = 0; 29761: 29761: 29761: 29761: 29761: virtual IOStatus Prefetch(uint64_t , size_t , 29761: const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("Prefetch"); 29761: } 29761: # 910 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29761: const IOOptions& options, IODebugContext* dbg) { 29761: 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: (static_cast ( 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: reqs != nullptr 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: "reqs != nullptr" 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: ; 29761: for (size_t i = 0; i < num_reqs; ++i) { 29761: FSReadRequest& req = reqs[i]; 29761: req.status = 29761: Read(req.offset, req.len, options, &req.result, req.scratch, dbg); 29761: } 29761: return IOStatus::OK(); 29761: } 29761: # 936 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: 29761: } 29761: 29761: enum AccessPattern { kNormal, kRandom, kSequential, kWillNeed, kWontNeed }; 29761: 29761: virtual void Hint(AccessPattern ) {} 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: 29761: virtual IOStatus InvalidateCache(size_t , size_t ) { 29761: return IOStatus::NotSupported("InvalidateCache not supported."); 29761: } 29761: # 992 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29761: std::function cb, 29761: void* cb_arg, void** , 29761: IOHandleDeleter* , IODebugContext* dbg) { 29761: req.status = 29761: Read(req.offset, req.len, opts, &(req.result), req.scratch, dbg); 29761: cb(req, cb_arg); 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: struct DataVerificationInfo { 29761: 29761: Slice checksum; 29761: }; 29761: 29761: 29761: 29761: 29761: class FSWritableFile { 29761: public: 29761: FSWritableFile() 29761: : last_preallocated_block_(0), 29761: preallocation_block_size_(0), 29761: io_priority_(Env::IO_TOTAL), 29761: write_hint_(Env::WLTH_NOT_SET), 29761: strict_bytes_per_sync_(false) {} 29761: 29761: explicit FSWritableFile(const FileOptions& options) 29761: : last_preallocated_block_(0), 29761: preallocation_block_size_(0), 29761: io_priority_(Env::IO_TOTAL), 29761: write_hint_(Env::WLTH_NOT_SET), 29761: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 29761: 29761: 29761: 29761: 29761: virtual ~FSWritableFile() {} 29761: 29761: 29761: 29761: 29761: virtual IOStatus Append(const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: # 1058 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Append(const Slice& data, const IOOptions& options, 29761: const DataVerificationInfo& , 29761: IODebugContext* dbg) { 29761: return Append(data, options, dbg); 29761: } 29761: # 1084 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus PositionedAppend(const Slice& , 29761: uint64_t , 29761: const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("PositionedAppend"); 29761: } 29761: # 1099 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus PositionedAppend( 29761: const Slice& , uint64_t , 29761: const IOOptions& , 29761: const DataVerificationInfo& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("PositionedAppend"); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus Truncate(uint64_t , const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus Close(const IOOptions& , 29761: IODebugContext* ) = 0; 29761: 29761: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 29761: virtual IOStatus Sync(const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 29761: return Sync(options, dbg); 29761: } 29761: 29761: 29761: 29761: virtual bool IsSyncThreadSafe() const { return false; } 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 29761: write_hint_ = hint; 29761: } 29761: # 1165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 29761: 29761: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 29761: 29761: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 29761: 29761: 29761: 29761: virtual uint64_t GetFileSize(const IOOptions& , 29761: IODebugContext* ) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void SetPreallocationBlockSize(size_t size) { 29761: preallocation_block_size_ = size; 29761: } 29761: 29761: virtual void GetPreallocationStatus(size_t* block_size, 29761: size_t* last_allocated_block) { 29761: *last_allocated_block = last_preallocated_block_; 29761: *block_size = preallocation_block_size_; 29761: } 29761: 29761: 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus InvalidateCache(size_t , size_t ) { 29761: return IOStatus::NotSupported("InvalidateCache not supported."); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus RangeSync(uint64_t , uint64_t , 29761: const IOOptions& options, IODebugContext* dbg) { 29761: if (strict_bytes_per_sync_) { 29761: return Sync(options, dbg); 29761: } 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 29761: IODebugContext* dbg) { 29761: if (preallocation_block_size_ == 0) { 29761: return; 29761: } 29761: 29761: 29761: 29761: const auto block_size = preallocation_block_size_; 29761: size_t new_last_preallocated_block = 29761: (offset + len + block_size - 1) / block_size; 29761: if (new_last_preallocated_block > last_preallocated_block_) { 29761: size_t num_spanned_blocks = 29761: new_last_preallocated_block - last_preallocated_block_; 29761: Allocate(block_size * last_preallocated_block_, 29761: block_size * num_spanned_blocks, options, dbg) 29761: .PermitUncheckedError(); 29761: last_preallocated_block_ = new_last_preallocated_block; 29761: } 29761: } 29761: 29761: 29761: virtual IOStatus Allocate(uint64_t , uint64_t , 29761: const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: protected: 29761: size_t preallocation_block_size() { return preallocation_block_size_; } 29761: 29761: private: 29761: size_t last_preallocated_block_; 29761: size_t preallocation_block_size_; 29761: 29761: FSWritableFile(const FSWritableFile&); 29761: void operator=(const FSWritableFile&); 29761: 29761: protected: 29761: Env::IOPriority io_priority_; 29761: Env::WriteLifeTimeHint write_hint_; 29761: const bool strict_bytes_per_sync_; 29761: }; 29761: 29761: 29761: class FSRandomRWFile { 29761: public: 29761: FSRandomRWFile() {} 29761: 29761: 29761: 29761: 29761: virtual ~FSRandomRWFile() {} 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: virtual IOStatus Write(uint64_t offset, const Slice& data, 29761: const IOOptions& options, IODebugContext* dbg) = 0; 29761: # 1302 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const = 0; 29761: 29761: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 29761: return Sync(options, dbg); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29761: 29761: 29761: 29761: 29761: 29761: FSRandomRWFile(const RandomRWFile&) = delete; 29761: FSRandomRWFile& operator=(const RandomRWFile&) = delete; 29761: }; 29761: 29761: 29761: 29761: class FSMemoryMappedFileBuffer { 29761: public: 29761: FSMemoryMappedFileBuffer(void* _base, size_t _length) 29761: : base_(_base), length_(_length) {} 29761: 29761: virtual ~FSMemoryMappedFileBuffer() = 0; 29761: 29761: 29761: 29761: FSMemoryMappedFileBuffer(const FSMemoryMappedFileBuffer&) = delete; 29761: FSMemoryMappedFileBuffer& operator=(const FSMemoryMappedFileBuffer&) = delete; 29761: 29761: void* GetBase() const { return base_; } 29761: size_t GetLen() const { return length_; } 29761: 29761: protected: 29761: void* base_; 29761: const size_t length_; 29761: }; 29761: 29761: 29761: 29761: class FSDirectory { 29761: public: 29761: 29761: 29761: 29761: virtual ~FSDirectory() {} 29761: 29761: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: virtual IOStatus FsyncWithDirOptions( 29761: const IOOptions& options, IODebugContext* dbg, 29761: const DirFsyncOptions& ) { 29761: return Fsync(options, dbg); 29761: } 29761: 29761: 29761: 29761: 29761: virtual IOStatus Close(const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("Close"); 29761: } 29761: 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: }; 29761: # 1424 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: class FileSystemWrapper : public FileSystem { 29761: public: 29761: 29761: explicit FileSystemWrapper(const std::shared_ptr& t); 29761: ~FileSystemWrapper() override {} 29761: 29761: 29761: FileSystem* target() const { return target_.get(); } 29761: 29761: 29761: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 29761: std::unique_ptr* r, 29761: IODebugContext* dbg) override { 29761: return target_->NewSequentialFile(f, file_opts, r, dbg); 29761: } 29761: IOStatus NewRandomAccessFile(const std::string& f, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* r, 29761: IODebugContext* dbg) override { 29761: return target_->NewRandomAccessFile(f, file_opts, r, dbg); 29761: } 29761: IOStatus NewWritableFile(const std::string& f, const FileOptions& file_opts, 29761: std::unique_ptr* r, 29761: IODebugContext* dbg) override { 29761: return target_->NewWritableFile(f, file_opts, r, dbg); 29761: } 29761: IOStatus ReopenWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override { 29761: return target_->ReopenWritableFile(fname, file_opts, result, dbg); 29761: } 29761: IOStatus ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* r, 29761: IODebugContext* dbg) override { 29761: return target_->ReuseWritableFile(fname, old_fname, file_opts, r, dbg); 29761: } 29761: IOStatus NewRandomRWFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override { 29761: return target_->NewRandomRWFile(fname, file_opts, result, dbg); 29761: } 29761: IOStatus NewMemoryMappedFileBuffer( 29761: const std::string& fname, 29761: std::unique_ptr* result) override { 29761: return target_->NewMemoryMappedFileBuffer(fname, result); 29761: } 29761: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override { 29761: return target_->NewDirectory(name, io_opts, result, dbg); 29761: } 29761: IOStatus FileExists(const std::string& f, const IOOptions& io_opts, 29761: IODebugContext* dbg) override { 29761: return target_->FileExists(f, io_opts, dbg); 29761: } 29761: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 29761: std::vector* r, 29761: IODebugContext* dbg) override { 29761: return target_->GetChildren(dir, io_opts, r, dbg); 29761: } 29761: IOStatus GetChildrenFileAttributes(const std::string& dir, 29761: const IOOptions& options, 29761: std::vector* result, 29761: IODebugContext* dbg) override { 29761: return target_->GetChildrenFileAttributes(dir, options, result, dbg); 29761: } 29761: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->DeleteFile(f, options, dbg); 29761: } 29761: IOStatus Truncate(const std::string& fname, size_t size, 29761: const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Truncate(fname, size, options, dbg); 29761: } 29761: IOStatus CreateDir(const std::string& d, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->CreateDir(d, options, dbg); 29761: } 29761: IOStatus CreateDirIfMissing(const std::string& d, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->CreateDirIfMissing(d, options, dbg); 29761: } 29761: IOStatus DeleteDir(const std::string& d, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->DeleteDir(d, options, dbg); 29761: } 29761: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 29761: uint64_t* s, IODebugContext* dbg) override { 29761: return target_->GetFileSize(f, options, s, dbg); 29761: } 29761: 29761: IOStatus GetFileModificationTime(const std::string& fname, 29761: const IOOptions& options, 29761: uint64_t* file_mtime, 29761: IODebugContext* dbg) override { 29761: return target_->GetFileModificationTime(fname, options, file_mtime, dbg); 29761: } 29761: 29761: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 29761: std::string* output_path, 29761: IODebugContext* dbg) override { 29761: return target_->GetAbsolutePath(db_path, options, output_path, dbg); 29761: } 29761: 29761: IOStatus RenameFile(const std::string& s, const std::string& t, 29761: const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->RenameFile(s, t, options, dbg); 29761: } 29761: 29761: IOStatus LinkFile(const std::string& s, const std::string& t, 29761: const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->LinkFile(s, t, options, dbg); 29761: } 29761: 29761: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 29761: uint64_t* count, IODebugContext* dbg) override { 29761: return target_->NumFileLinks(fname, options, count, dbg); 29761: } 29761: 29761: IOStatus AreFilesSame(const std::string& first, const std::string& second, 29761: const IOOptions& options, bool* res, 29761: IODebugContext* dbg) override { 29761: return target_->AreFilesSame(first, second, options, res, dbg); 29761: } 29761: 29761: IOStatus LockFile(const std::string& f, const IOOptions& options, 29761: FileLock** l, IODebugContext* dbg) override { 29761: return target_->LockFile(f, options, l, dbg); 29761: } 29761: 29761: IOStatus UnlockFile(FileLock* l, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->UnlockFile(l, options, dbg); 29761: } 29761: 29761: IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 29761: IODebugContext* dbg) override { 29761: return target_->GetTestDirectory(options, path, dbg); 29761: } 29761: IOStatus NewLogger(const std::string& fname, const IOOptions& options, 29761: std::shared_ptr* result, 29761: IODebugContext* dbg) override { 29761: return target_->NewLogger(fname, options, result, dbg); 29761: } 29761: 29761: void SanitizeFileOptions(FileOptions* opts) const override { 29761: target_->SanitizeFileOptions(opts); 29761: } 29761: 29761: FileOptions OptimizeForLogRead( 29761: const FileOptions& file_options) const override { 29761: return target_->OptimizeForLogRead(file_options); 29761: } 29761: FileOptions OptimizeForManifestRead( 29761: const FileOptions& file_options) const override { 29761: return target_->OptimizeForManifestRead(file_options); 29761: } 29761: FileOptions OptimizeForLogWrite(const FileOptions& file_options, 29761: const DBOptions& db_options) const override { 29761: return target_->OptimizeForLogWrite(file_options, db_options); 29761: } 29761: FileOptions OptimizeForManifestWrite( 29761: const FileOptions& file_options) const override { 29761: return target_->OptimizeForManifestWrite(file_options); 29761: } 29761: FileOptions OptimizeForCompactionTableWrite( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& immutable_ops) const override { 29761: return target_->OptimizeForCompactionTableWrite(file_options, 29761: immutable_ops); 29761: } 29761: FileOptions OptimizeForCompactionTableRead( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& db_options) const override { 29761: return target_->OptimizeForCompactionTableRead(file_options, db_options); 29761: } 29761: FileOptions OptimizeForBlobFileRead( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& db_options) const override { 29761: return target_->OptimizeForBlobFileRead(file_options, db_options); 29761: } 29761: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 29761: uint64_t* diskfree, IODebugContext* dbg) override { 29761: return target_->GetFreeSpace(path, options, diskfree, dbg); 29761: } 29761: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 29761: bool* is_dir, IODebugContext* dbg) override { 29761: return target_->IsDirectory(path, options, is_dir, dbg); 29761: } 29761: 29761: const Customizable* Inner() const override { return target_.get(); } 29761: Status PrepareOptions(const ConfigOptions& options) override; 29761: std::string SerializeOptions(const ConfigOptions& config_options, 29761: const std::string& header) const override; 29761: 29761: IOStatus Poll(std::vector& io_handles, 29761: size_t min_completions) override { 29761: return target_->Poll(io_handles, min_completions); 29761: } 29761: 29761: IOStatus AbortIO(std::vector& io_handles) override { 29761: return target_->AbortIO(io_handles); 29761: } 29761: 29761: void DiscardCacheForDirectory(const std::string& path) override { 29761: target_->DiscardCacheForDirectory(path); 29761: } 29761: 29761: void SupportedOps(int64_t& supported_ops) override { 29761: return target_->SupportedOps(supported_ops); 29761: } 29761: 29761: protected: 29761: std::shared_ptr target_; 29761: }; 29761: 29761: class FSSequentialFileWrapper : public FSSequentialFile { 29761: public: 29761: 29761: 29761: explicit FSSequentialFileWrapper(FSSequentialFile* t) : target_(t) {} 29761: 29761: FSSequentialFile* target() const { return target_; } 29761: 29761: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29761: char* scratch, IODebugContext* dbg) override { 29761: return target_->Read(n, options, result, scratch, dbg); 29761: } 29761: IOStatus Skip(uint64_t n) override { return target_->Skip(n); } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: IOStatus InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) override { 29761: return target_->PositionedRead(offset, n, options, result, scratch, dbg); 29761: } 29761: Temperature GetTemperature() const override { 29761: return target_->GetTemperature(); 29761: } 29761: 29761: private: 29761: FSSequentialFile* target_; 29761: }; 29761: 29761: class FSSequentialFileOwnerWrapper : public FSSequentialFileWrapper { 29761: public: 29761: 29761: 29761: explicit FSSequentialFileOwnerWrapper(std::unique_ptr&& t) 29761: : FSSequentialFileWrapper(t.get()), guard_(std::move(t)) {} 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: }; 29761: 29761: class FSRandomAccessFileWrapper : public FSRandomAccessFile { 29761: public: 29761: 29761: 29761: explicit FSRandomAccessFileWrapper(FSRandomAccessFile* t) : target_(t) {} 29761: 29761: FSRandomAccessFile* target() const { return target_; } 29761: 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override { 29761: return target_->Read(offset, n, options, result, scratch, dbg); 29761: } 29761: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29761: const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->MultiRead(reqs, num_reqs, options, dbg); 29761: } 29761: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->Prefetch(offset, n, options, dbg); 29761: } 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: IOStatus InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29761: std::function cb, 29761: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29761: IODebugContext* dbg) override { 29761: return target()->ReadAsync(req, opts, cb, cb_arg, io_handle, del_fn, dbg); 29761: } 29761: Temperature GetTemperature() const override { 29761: return target_->GetTemperature(); 29761: } 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: FSRandomAccessFile* target_; 29761: }; 29761: 29761: class FSRandomAccessFileOwnerWrapper : public FSRandomAccessFileWrapper { 29761: public: 29761: 29761: 29761: explicit FSRandomAccessFileOwnerWrapper( 29761: std::unique_ptr&& t) 29761: : FSRandomAccessFileWrapper(t.get()), guard_(std::move(t)) {} 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: }; 29761: 29761: class FSWritableFileWrapper : public FSWritableFile { 29761: public: 29761: 29761: 29761: explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {} 29761: 29761: FSWritableFile* target() const { return target_; } 29761: 29761: IOStatus Append(const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->Append(data, options, dbg); 29761: } 29761: IOStatus Append(const Slice& data, const IOOptions& options, 29761: const DataVerificationInfo& verification_info, 29761: IODebugContext* dbg) override { 29761: return target_->Append(data, options, verification_info, dbg); 29761: } 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->PositionedAppend(data, offset, options, dbg); 29761: } 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: const DataVerificationInfo& verification_info, 29761: IODebugContext* dbg) override { 29761: return target_->PositionedAppend(data, offset, options, verification_info, 29761: dbg); 29761: } 29761: IOStatus Truncate(uint64_t size, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->Truncate(size, options, dbg); 29761: } 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Close(options, dbg); 29761: } 29761: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Flush(options, dbg); 29761: } 29761: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Sync(options, dbg); 29761: } 29761: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Fsync(options, dbg); 29761: } 29761: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 29761: 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: 29761: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 29761: target_->SetWriteLifeTimeHint(hint); 29761: } 29761: 29761: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 29761: return target_->GetWriteLifeTimeHint(); 29761: } 29761: 29761: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->GetFileSize(options, dbg); 29761: } 29761: 29761: void SetPreallocationBlockSize(size_t size) override { 29761: target_->SetPreallocationBlockSize(size); 29761: } 29761: 29761: void GetPreallocationStatus(size_t* block_size, 29761: size_t* last_allocated_block) override { 29761: target_->GetPreallocationStatus(block_size, last_allocated_block); 29761: } 29761: 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: 29761: IOStatus InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: 29761: IOStatus RangeSync(uint64_t offset, uint64_t nbytes, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->RangeSync(offset, nbytes, options, dbg); 29761: } 29761: 29761: void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: target_->PrepareWrite(offset, len, options, dbg); 29761: } 29761: 29761: IOStatus Allocate(uint64_t offset, uint64_t len, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->Allocate(offset, len, options, dbg); 29761: } 29761: 29761: private: 29761: FSWritableFile* target_; 29761: }; 29761: 29761: class FSWritableFileOwnerWrapper : public FSWritableFileWrapper { 29761: public: 29761: 29761: 29761: explicit FSWritableFileOwnerWrapper(std::unique_ptr&& t) 29761: : FSWritableFileWrapper(t.get()), guard_(std::move(t)) {} 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: }; 29761: 29761: class FSRandomRWFileWrapper : public FSRandomRWFile { 29761: public: 29761: 29761: 29761: explicit FSRandomRWFileWrapper(FSRandomRWFile* t) : target_(t) {} 29761: 29761: FSRandomRWFile* target() const { return target_; } 29761: 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->Write(offset, data, options, dbg); 29761: } 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override { 29761: return target_->Read(offset, n, options, result, scratch, dbg); 29761: } 29761: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Flush(options, dbg); 29761: } 29761: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Sync(options, dbg); 29761: } 29761: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Fsync(options, dbg); 29761: } 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Close(options, dbg); 29761: } 29761: Temperature GetTemperature() const override { 29761: return target_->GetTemperature(); 29761: } 29761: 29761: private: 29761: FSRandomRWFile* target_; 29761: }; 29761: 29761: class FSRandomRWFileOwnerWrapper : public FSRandomRWFileWrapper { 29761: public: 29761: 29761: 29761: explicit FSRandomRWFileOwnerWrapper(std::unique_ptr&& t) 29761: : FSRandomRWFileWrapper(t.get()), guard_(std::move(t)) {} 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: }; 29761: 29761: class FSDirectoryWrapper : public FSDirectory { 29761: public: 29761: 29761: 29761: explicit FSDirectoryWrapper(std::unique_ptr&& t) 29761: : guard_(std::move(t)) { 29761: target_ = guard_.get(); 29761: } 29761: 29761: 29761: 29761: explicit FSDirectoryWrapper(FSDirectory* t) : target_(t) {} 29761: 29761: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Fsync(options, dbg); 29761: } 29761: 29761: IOStatus FsyncWithDirOptions( 29761: const IOOptions& options, IODebugContext* dbg, 29761: const DirFsyncOptions& dir_fsync_options) override { 29761: return target_->FsyncWithDirOptions(options, dbg, dir_fsync_options); 29761: } 29761: 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Close(options, dbg); 29761: } 29761: 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: FSDirectory* target_; 29761: }; 29761: 29761: 29761: IOStatus WriteStringToFile(FileSystem* fs, const Slice& data, 29761: const std::string& fname, bool should_sync = false, 29761: const IOOptions& io_options = IOOptions(), 29761: const FileOptions& file_options = FileOptions()); 29761: 29761: 29761: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 29761: std::string* data); 29761: 29761: 29761: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 29761: const IOOptions& opts, std::string* data); 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/fstream" 1 3 29761: # 36 "/usr/include/c++/14/fstream" 3 29761: 29761: # 37 "/usr/include/c++/14/fstream" 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/codecvt.h" 1 3 29761: # 39 "/usr/include/c++/14/bits/codecvt.h" 3 29761: 29761: # 40 "/usr/include/c++/14/bits/codecvt.h" 3 29761: 29761: 29761: 29761: 29761: 29761: # 44 "/usr/include/c++/14/bits/codecvt.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: class codecvt_base 29761: { 29761: public: 29761: enum result 29761: { 29761: ok, 29761: partial, 29761: error, 29761: noconv 29761: }; 29761: }; 29761: # 70 "/usr/include/c++/14/bits/codecvt.h" 3 29761: template 29761: class __codecvt_abstract_base 29761: : public locale::facet, public codecvt_base 29761: { 29761: public: 29761: 29761: typedef codecvt_base::result result; 29761: typedef _InternT intern_type; 29761: typedef _ExternT extern_type; 29761: typedef _StateT state_type; 29761: # 118 "/usr/include/c++/14/bits/codecvt.h" 3 29761: result 29761: out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const 29761: { 29761: return this->do_out(__state, __from, __from_end, __from_next, 29761: __to, __to_end, __to_next); 29761: } 29761: # 157 "/usr/include/c++/14/bits/codecvt.h" 3 29761: result 29761: unshift(state_type& __state, extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const 29761: { return this->do_unshift(__state, __to,__to_end,__to_next); } 29761: # 198 "/usr/include/c++/14/bits/codecvt.h" 3 29761: result 29761: in(state_type& __state, const extern_type* __from, 29761: const extern_type* __from_end, const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const 29761: { 29761: return this->do_in(__state, __from, __from_end, __from_next, 29761: __to, __to_end, __to_next); 29761: } 29761: 29761: int 29761: encoding() const throw() 29761: { return this->do_encoding(); } 29761: 29761: bool 29761: always_noconv() const throw() 29761: { return this->do_always_noconv(); } 29761: 29761: int 29761: length(state_type& __state, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const 29761: { return this->do_length(__state, __from, __end, __max); } 29761: 29761: int 29761: max_length() const throw() 29761: { return this->do_max_length(); } 29761: 29761: protected: 29761: explicit 29761: __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } 29761: 29761: virtual 29761: ~__codecvt_abstract_base() { } 29761: # 239 "/usr/include/c++/14/bits/codecvt.h" 3 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const = 0; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, extern_type* __to, 29761: extern_type* __to_end, extern_type*& __to_next) const = 0; 29761: 29761: virtual result 29761: do_in(state_type& __state, const extern_type* __from, 29761: const extern_type* __from_end, const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const = 0; 29761: 29761: virtual int 29761: do_encoding() const throw() = 0; 29761: 29761: virtual bool 29761: do_always_noconv() const throw() = 0; 29761: 29761: virtual int 29761: do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const = 0; 29761: 29761: virtual int 29761: do_max_length() const throw() = 0; 29761: }; 29761: # 276 "/usr/include/c++/14/bits/codecvt.h" 3 29761: template 29761: class codecvt 29761: : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> 29761: { 29761: public: 29761: 29761: typedef codecvt_base::result result; 29761: typedef _InternT intern_type; 29761: typedef _ExternT extern_type; 29761: typedef _StateT state_type; 29761: 29761: protected: 29761: __c_locale _M_c_locale_codecvt; 29761: 29761: public: 29761: static locale::id id; 29761: 29761: explicit 29761: codecvt(size_t __refs = 0) 29761: : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), 29761: _M_c_locale_codecvt(0) 29761: { } 29761: 29761: explicit 29761: codecvt(__c_locale __cloc, size_t __refs = 0); 29761: 29761: protected: 29761: virtual 29761: ~codecvt() { } 29761: 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, extern_type* __to, 29761: extern_type* __to_end, extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_in(state_type& __state, const extern_type* __from, 29761: const extern_type* __from_end, const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const; 29761: 29761: virtual int 29761: do_encoding() const throw(); 29761: 29761: virtual bool 29761: do_always_noconv() const throw(); 29761: 29761: virtual int 29761: do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const; 29761: 29761: virtual int 29761: do_max_length() const throw(); 29761: }; 29761: 29761: template 29761: locale::id codecvt<_InternT, _ExternT, _StateT>::id; 29761: 29761: 29761: template<> 29761: class codecvt 29761: : public __codecvt_abstract_base 29761: { 29761: friend class messages; 29761: 29761: public: 29761: 29761: typedef char intern_type; 29761: typedef char extern_type; 29761: typedef mbstate_t state_type; 29761: 29761: protected: 29761: __c_locale _M_c_locale_codecvt; 29761: 29761: public: 29761: static locale::id id; 29761: 29761: explicit 29761: codecvt(size_t __refs = 0); 29761: 29761: explicit 29761: codecvt(__c_locale __cloc, size_t __refs = 0); 29761: 29761: protected: 29761: virtual 29761: ~codecvt(); 29761: 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, extern_type* __to, 29761: extern_type* __to_end, extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_in(state_type& __state, const extern_type* __from, 29761: const extern_type* __from_end, const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const; 29761: 29761: virtual int 29761: do_encoding() const throw(); 29761: 29761: virtual bool 29761: do_always_noconv() const throw(); 29761: 29761: virtual int 29761: do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const; 29761: 29761: virtual int 29761: do_max_length() const throw(); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: class codecvt 29761: : public __codecvt_abstract_base 29761: { 29761: friend class messages; 29761: 29761: public: 29761: 29761: typedef wchar_t intern_type; 29761: typedef char extern_type; 29761: typedef mbstate_t state_type; 29761: 29761: protected: 29761: __c_locale _M_c_locale_codecvt; 29761: 29761: public: 29761: static locale::id id; 29761: 29761: explicit 29761: codecvt(size_t __refs = 0); 29761: 29761: explicit 29761: codecvt(__c_locale __cloc, size_t __refs = 0); 29761: 29761: protected: 29761: virtual 29761: ~codecvt(); 29761: 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_in(state_type& __state, 29761: const extern_type* __from, const extern_type* __from_end, 29761: const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const; 29761: 29761: virtual 29761: int do_encoding() const throw(); 29761: 29761: virtual 29761: bool do_always_noconv() const throw(); 29761: 29761: virtual 29761: int do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const; 29761: 29761: virtual int 29761: do_max_length() const throw(); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: class codecvt 29761: : public __codecvt_abstract_base 29761: { 29761: public: 29761: 29761: typedef char16_t intern_type; 29761: typedef char extern_type; 29761: typedef mbstate_t state_type; 29761: 29761: public: 29761: static locale::id id; 29761: 29761: explicit 29761: codecvt(size_t __refs = 0) 29761: : __codecvt_abstract_base(__refs) { } 29761: 29761: protected: 29761: virtual 29761: ~codecvt(); 29761: 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_in(state_type& __state, 29761: const extern_type* __from, const extern_type* __from_end, 29761: const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const; 29761: 29761: virtual 29761: int do_encoding() const throw(); 29761: 29761: virtual 29761: bool do_always_noconv() const throw(); 29761: 29761: virtual 29761: int do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const; 29761: 29761: virtual int 29761: do_max_length() const throw(); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: class codecvt 29761: : public __codecvt_abstract_base 29761: { 29761: public: 29761: 29761: typedef char32_t intern_type; 29761: typedef char extern_type; 29761: typedef mbstate_t state_type; 29761: 29761: public: 29761: static locale::id id; 29761: 29761: explicit 29761: codecvt(size_t __refs = 0) 29761: : __codecvt_abstract_base(__refs) { } 29761: 29761: protected: 29761: virtual 29761: ~codecvt(); 29761: 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_in(state_type& __state, 29761: const extern_type* __from, const extern_type* __from_end, 29761: const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const; 29761: 29761: virtual 29761: int do_encoding() const throw(); 29761: 29761: virtual 29761: bool do_always_noconv() const throw(); 29761: 29761: virtual 29761: int do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const; 29761: 29761: virtual int 29761: do_max_length() const throw(); 29761: }; 29761: # 698 "/usr/include/c++/14/bits/codecvt.h" 3 29761: template 29761: class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> 29761: { 29761: public: 29761: explicit 29761: codecvt_byname(const char* __s, size_t __refs = 0) 29761: : codecvt<_InternT, _ExternT, _StateT>(__refs) 29761: { 29761: if (__builtin_strcmp(__s, "C") != 0 29761: && __builtin_strcmp(__s, "POSIX") != 0) 29761: { 29761: this->_S_destroy_c_locale(this->_M_c_locale_codecvt); 29761: this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); 29761: } 29761: } 29761: 29761: 29761: explicit 29761: codecvt_byname(const string& __s, size_t __refs = 0) 29761: : codecvt_byname(__s.c_str(), __refs) { } 29761: 29761: 29761: protected: 29761: virtual 29761: ~codecvt_byname() { } 29761: }; 29761: 29761: 29761: template<> 29761: class codecvt_byname 29761: : public codecvt 29761: { 29761: public: 29761: explicit 29761: codecvt_byname(const char*, size_t __refs = 0) 29761: : codecvt(__refs) { } 29761: 29761: explicit 29761: codecvt_byname(const string& __s, size_t __refs = 0) 29761: : codecvt_byname(__s.c_str(), __refs) { } 29761: 29761: protected: 29761: virtual 29761: ~codecvt_byname() { } 29761: }; 29761: 29761: template<> 29761: class codecvt_byname 29761: : public codecvt 29761: { 29761: public: 29761: explicit 29761: codecvt_byname(const char*, size_t __refs = 0) 29761: : codecvt(__refs) { } 29761: 29761: explicit 29761: codecvt_byname(const string& __s, size_t __refs = 0) 29761: : codecvt_byname(__s.c_str(), __refs) { } 29761: 29761: protected: 29761: virtual 29761: ~codecvt_byname() { } 29761: }; 29761: # 805 "/usr/include/c++/14/bits/codecvt.h" 3 29761: extern template class codecvt_byname; 29761: 29761: extern template 29761: const codecvt& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: extern template class codecvt_byname; 29761: 29761: extern template 29761: const codecvt& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: 29761: extern template class codecvt_byname; 29761: extern template class codecvt_byname; 29761: # 840 "/usr/include/c++/14/bits/codecvt.h" 3 29761: 29761: } 29761: # 43 "/usr/include/c++/14/fstream" 2 3 29761: # 1 "/usr/include/c++/14/cstdio" 1 3 29761: # 39 "/usr/include/c++/14/cstdio" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdio" 3 29761: # 44 "/usr/include/c++/14/fstream" 2 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 1 3 29761: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 29761: 29761: # 38 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 1 3 29761: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 3 29761: # 1 "/usr/include/c++/14/cstdio" 1 3 29761: # 39 "/usr/include/c++/14/cstdio" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdio" 3 29761: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __gthread_mutex_t __c_lock; 29761: 29761: 29761: 29761: typedef FILE __c_file; 29761: 29761: 29761: } 29761: # 41 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class __basic_file; 29761: 29761: 29761: template<> 29761: class __basic_file 29761: { 29761: 29761: __c_file* _M_cfile; 29761: 29761: 29761: bool _M_cfile_created; 29761: 29761: public: 29761: __basic_file(__c_lock* __lock = 0) throw (); 29761: 29761: 29761: __basic_file(__basic_file&& __rv, __c_lock* = 0) noexcept 29761: : _M_cfile(__rv._M_cfile), _M_cfile_created(__rv._M_cfile_created) 29761: { 29761: __rv._M_cfile = nullptr; 29761: __rv._M_cfile_created = false; 29761: } 29761: 29761: __basic_file& operator=(const __basic_file&) = delete; 29761: __basic_file& operator=(__basic_file&&) = delete; 29761: 29761: void 29761: swap(__basic_file& __f) noexcept 29761: { 29761: std::swap(_M_cfile, __f._M_cfile); 29761: std::swap(_M_cfile_created, __f._M_cfile_created); 29761: } 29761: 29761: 29761: __basic_file* 29761: open(const char* __name, ios_base::openmode __mode, int __prot = 0664); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __basic_file* 29761: sys_open(__c_file* __file, ios_base::openmode); 29761: 29761: __basic_file* 29761: sys_open(int __fd, ios_base::openmode __mode) throw (); 29761: 29761: __basic_file* 29761: close(); 29761: 29761: __attribute__ ((__pure__)) bool 29761: is_open() const throw (); 29761: 29761: __attribute__ ((__pure__)) int 29761: fd() throw (); 29761: 29761: __attribute__ ((__pure__)) __c_file* 29761: file() throw (); 29761: 29761: ~__basic_file(); 29761: 29761: streamsize 29761: xsputn(const char* __s, streamsize __n); 29761: 29761: streamsize 29761: xsputn_2(const char* __s1, streamsize __n1, 29761: const char* __s2, streamsize __n2); 29761: 29761: streamsize 29761: xsgetn(char* __s, streamsize __n); 29761: 29761: streamoff 29761: seekoff(streamoff __off, ios_base::seekdir __way) throw (); 29761: 29761: int 29761: sync(); 29761: 29761: streamsize 29761: showmanyc(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using native_handle_type = int; 29761: 29761: 29761: native_handle_type 29761: native_handle() const noexcept; 29761: 29761: }; 29761: 29761: 29761: } 29761: # 45 "/usr/include/c++/14/fstream" 2 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 51 "/usr/include/c++/14/fstream" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template().make_preferred().filename())> 29761: using _If_fs_path = enable_if_t, _Result>; 29761: # 89 "/usr/include/c++/14/fstream" 3 29761: template 29761: class basic_filebuf : public basic_streambuf<_CharT, _Traits> 29761: { 29761: 29761: template 29761: using __chk_state = __and_, 29761: is_copy_constructible<_Tp>, 29761: is_default_constructible<_Tp>>; 29761: 29761: static_assert(__chk_state::value, 29761: "state_type must be CopyAssignable, CopyConstructible" 29761: " and DefaultConstructible"); 29761: 29761: static_assert(is_same>::value, 29761: "pos_type must be fpos"); 29761: 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: typedef basic_streambuf __streambuf_type; 29761: typedef basic_filebuf __filebuf_type; 29761: typedef __basic_file __file_type; 29761: typedef typename traits_type::state_type __state_type; 29761: typedef codecvt __codecvt_type; 29761: 29761: friend class ios_base; 29761: 29761: protected: 29761: 29761: 29761: __c_lock _M_lock; 29761: 29761: 29761: __file_type _M_file; 29761: 29761: 29761: ios_base::openmode _M_mode; 29761: 29761: 29761: __state_type _M_state_beg; 29761: 29761: 29761: 29761: 29761: __state_type _M_state_cur; 29761: 29761: 29761: 29761: __state_type _M_state_last; 29761: 29761: 29761: char_type* _M_buf; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t _M_buf_size; 29761: 29761: 29761: bool _M_buf_allocated; 29761: # 165 "/usr/include/c++/14/fstream" 3 29761: bool _M_reading; 29761: bool _M_writing; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: char_type _M_pback; 29761: char_type* _M_pback_cur_save; 29761: char_type* _M_pback_end_save; 29761: bool _M_pback_init; 29761: 29761: 29761: 29761: const __codecvt_type* _M_codecvt; 29761: 29761: 29761: 29761: 29761: 29761: 29761: char* _M_ext_buf; 29761: 29761: 29761: 29761: 29761: streamsize _M_ext_buf_size; 29761: 29761: 29761: 29761: 29761: 29761: 29761: const char* _M_ext_next; 29761: char* _M_ext_end; 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: _M_create_pback() 29761: { 29761: if (!_M_pback_init) 29761: { 29761: _M_pback_cur_save = this->gptr(); 29761: _M_pback_end_save = this->egptr(); 29761: this->setg(&_M_pback, &_M_pback, &_M_pback + 1); 29761: _M_pback_init = true; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: _M_destroy_pback() throw() 29761: { 29761: if (_M_pback_init) 29761: { 29761: 29761: _M_pback_cur_save += this->gptr() != this->eback(); 29761: this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); 29761: _M_pback_init = false; 29761: } 29761: } 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_filebuf(); 29761: 29761: 29761: basic_filebuf(const basic_filebuf&) = delete; 29761: basic_filebuf(basic_filebuf&&); 29761: 29761: 29761: 29761: 29761: 29761: virtual 29761: ~basic_filebuf() 29761: { 29761: try 29761: { this->close(); } 29761: catch(...) 29761: { } 29761: } 29761: 29761: 29761: basic_filebuf& operator=(const basic_filebuf&) = delete; 29761: basic_filebuf& operator=(basic_filebuf&&); 29761: void swap(basic_filebuf&); 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: is_open() const throw() 29761: { return _M_file.is_open(); } 29761: # 319 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: open(const char* __s, ios_base::openmode __mode); 29761: # 340 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: open(const std::string& __s, ios_base::openmode __mode) 29761: { return open(__s.c_str(), __mode); } 29761: # 351 "/usr/include/c++/14/fstream" 3 29761: template 29761: _If_fs_path<_Path, __filebuf_type*> 29761: open(const _Path& __s, ios_base::openmode __mode) 29761: { return open(__s.c_str(), __mode); } 29761: # 370 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: close(); 29761: # 403 "/usr/include/c++/14/fstream" 3 29761: protected: 29761: void 29761: _M_allocate_internal_buffer(); 29761: 29761: void 29761: _M_destroy_internal_buffer() throw(); 29761: 29761: 29761: virtual streamsize 29761: showmanyc(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual int_type 29761: underflow(); 29761: 29761: virtual int_type 29761: pbackfail(int_type __c = _Traits::eof()); 29761: # 432 "/usr/include/c++/14/fstream" 3 29761: virtual int_type 29761: overflow(int_type __c = _Traits::eof()); 29761: 29761: 29761: 29761: bool 29761: _M_convert_to_external(char_type*, streamsize); 29761: # 452 "/usr/include/c++/14/fstream" 3 29761: virtual __streambuf_type* 29761: setbuf(char_type* __s, streamsize __n); 29761: 29761: virtual pos_type 29761: seekoff(off_type __off, ios_base::seekdir __way, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out); 29761: 29761: virtual pos_type 29761: seekpos(pos_type __pos, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out); 29761: 29761: 29761: pos_type 29761: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); 29761: 29761: int 29761: _M_get_ext_pos(__state_type &__state); 29761: 29761: virtual int 29761: sync(); 29761: 29761: virtual void 29761: imbue(const locale& __loc); 29761: 29761: virtual streamsize 29761: xsgetn(char_type* __s, streamsize __n); 29761: 29761: virtual streamsize 29761: xsputn(const char_type* __s, streamsize __n); 29761: 29761: 29761: bool 29761: _M_terminate_output(); 29761: # 498 "/usr/include/c++/14/fstream" 3 29761: void 29761: _M_set_buffer(streamsize __off) 29761: { 29761: const bool __testin = _M_mode & ios_base::in; 29761: const bool __testout = (_M_mode & ios_base::out 29761: || _M_mode & ios_base::app); 29761: 29761: if (__testin && __off > 0) 29761: this->setg(_M_buf, _M_buf, _M_buf + __off); 29761: else 29761: this->setg(_M_buf, _M_buf, _M_buf); 29761: 29761: if (__testout && __off == 0 && _M_buf_size > 1 ) 29761: this->setp(_M_buf, _M_buf + _M_buf_size - 1); 29761: else 29761: this->setp(0, 0); 29761: } 29761: }; 29761: # 531 "/usr/include/c++/14/fstream" 3 29761: template 29761: class basic_ifstream : public basic_istream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_filebuf __filebuf_type; 29761: typedef basic_istream __istream_type; 29761: 29761: private: 29761: __filebuf_type _M_filebuf; 29761: 29761: public: 29761: # 558 "/usr/include/c++/14/fstream" 3 29761: basic_ifstream() : __istream_type(), _M_filebuf() 29761: { this->init(&_M_filebuf); } 29761: # 568 "/usr/include/c++/14/fstream" 3 29761: explicit 29761: basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) 29761: : __istream_type(), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: # 601 "/usr/include/c++/14/fstream" 3 29761: explicit 29761: basic_ifstream(const std::string& __s, 29761: ios_base::openmode __mode = ios_base::in) 29761: : __istream_type(), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: # 618 "/usr/include/c++/14/fstream" 3 29761: template> 29761: basic_ifstream(const _Path& __s, 29761: ios_base::openmode __mode = ios_base::in) 29761: : basic_ifstream(__s.c_str(), __mode) 29761: { } 29761: 29761: 29761: basic_ifstream(const basic_ifstream&) = delete; 29761: 29761: basic_ifstream(basic_ifstream&& __rhs) 29761: : __istream_type(std::move(__rhs)), 29761: _M_filebuf(std::move(__rhs._M_filebuf)) 29761: { __istream_type::set_rdbuf(&_M_filebuf); } 29761: # 639 "/usr/include/c++/14/fstream" 3 29761: ~basic_ifstream() 29761: { } 29761: 29761: 29761: 29761: 29761: basic_ifstream& 29761: operator=(const basic_ifstream&) = delete; 29761: 29761: basic_ifstream& 29761: operator=(basic_ifstream&& __rhs) 29761: { 29761: __istream_type::operator=(std::move(__rhs)); 29761: _M_filebuf = std::move(__rhs._M_filebuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_ifstream& __rhs) 29761: { 29761: __istream_type::swap(__rhs); 29761: _M_filebuf.swap(__rhs._M_filebuf); 29761: } 29761: # 671 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: rdbuf() const 29761: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: is_open() 29761: { return _M_filebuf.is_open(); } 29761: 29761: 29761: 29761: bool 29761: is_open() const 29761: { return _M_filebuf.is_open(); } 29761: # 697 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const char* __s, ios_base::openmode __mode = ios_base::in) 29761: { 29761: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 736 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const std::string& __s, ios_base::openmode __mode = ios_base::in) 29761: { 29761: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 756 "/usr/include/c++/14/fstream" 3 29761: template 29761: _If_fs_path<_Path, void> 29761: open(const _Path& __s, ios_base::openmode __mode = ios_base::in) 29761: { open(__s.c_str(), __mode); } 29761: # 769 "/usr/include/c++/14/fstream" 3 29761: void 29761: close() 29761: { 29761: if (!_M_filebuf.close()) 29761: this->setstate(ios_base::failbit); 29761: } 29761: # 784 "/usr/include/c++/14/fstream" 3 29761: }; 29761: # 801 "/usr/include/c++/14/fstream" 3 29761: template 29761: class basic_ofstream : public basic_ostream<_CharT,_Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_filebuf __filebuf_type; 29761: typedef basic_ostream __ostream_type; 29761: 29761: private: 29761: __filebuf_type _M_filebuf; 29761: 29761: public: 29761: # 828 "/usr/include/c++/14/fstream" 3 29761: basic_ofstream(): __ostream_type(), _M_filebuf() 29761: { this->init(&_M_filebuf); } 29761: # 838 "/usr/include/c++/14/fstream" 3 29761: explicit 29761: basic_ofstream(const char* __s, 29761: ios_base::openmode __mode = ios_base::out) 29761: : __ostream_type(), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: # 873 "/usr/include/c++/14/fstream" 3 29761: explicit 29761: basic_ofstream(const std::string& __s, 29761: ios_base::openmode __mode = ios_base::out) 29761: : __ostream_type(), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: # 890 "/usr/include/c++/14/fstream" 3 29761: template> 29761: basic_ofstream(const _Path& __s, 29761: ios_base::openmode __mode = ios_base::out) 29761: : basic_ofstream(__s.c_str(), __mode) 29761: { } 29761: 29761: 29761: basic_ofstream(const basic_ofstream&) = delete; 29761: 29761: basic_ofstream(basic_ofstream&& __rhs) 29761: : __ostream_type(std::move(__rhs)), 29761: _M_filebuf(std::move(__rhs._M_filebuf)) 29761: { __ostream_type::set_rdbuf(&_M_filebuf); } 29761: # 911 "/usr/include/c++/14/fstream" 3 29761: ~basic_ofstream() 29761: { } 29761: 29761: 29761: 29761: 29761: basic_ofstream& 29761: operator=(const basic_ofstream&) = delete; 29761: 29761: basic_ofstream& 29761: operator=(basic_ofstream&& __rhs) 29761: { 29761: __ostream_type::operator=(std::move(__rhs)); 29761: _M_filebuf = std::move(__rhs._M_filebuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_ofstream& __rhs) 29761: { 29761: __ostream_type::swap(__rhs); 29761: _M_filebuf.swap(__rhs._M_filebuf); 29761: } 29761: # 943 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: rdbuf() const 29761: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: is_open() 29761: { return _M_filebuf.is_open(); } 29761: 29761: 29761: 29761: bool 29761: is_open() const 29761: { return _M_filebuf.is_open(); } 29761: # 969 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const char* __s, ios_base::openmode __mode = ios_base::out) 29761: { 29761: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 1008 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const std::string& __s, ios_base::openmode __mode = ios_base::out) 29761: { 29761: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 1028 "/usr/include/c++/14/fstream" 3 29761: template 29761: _If_fs_path<_Path, void> 29761: open(const _Path& __s, ios_base::openmode __mode = ios_base::out) 29761: { open(__s.c_str(), __mode); } 29761: # 1041 "/usr/include/c++/14/fstream" 3 29761: void 29761: close() 29761: { 29761: if (!_M_filebuf.close()) 29761: this->setstate(ios_base::failbit); 29761: } 29761: # 1056 "/usr/include/c++/14/fstream" 3 29761: }; 29761: # 1073 "/usr/include/c++/14/fstream" 3 29761: template 29761: class basic_fstream : public basic_iostream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_filebuf __filebuf_type; 29761: typedef basic_ios __ios_type; 29761: typedef basic_iostream __iostream_type; 29761: 29761: private: 29761: __filebuf_type _M_filebuf; 29761: 29761: public: 29761: # 1101 "/usr/include/c++/14/fstream" 3 29761: basic_fstream() 29761: : __iostream_type(), _M_filebuf() 29761: { this->init(&_M_filebuf); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_fstream(const char* __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: : __iostream_type(0), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: # 1140 "/usr/include/c++/14/fstream" 3 29761: explicit 29761: basic_fstream(const std::string& __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: : __iostream_type(0), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: basic_fstream(const _Path& __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: : basic_fstream(__s.c_str(), __mode) 29761: { } 29761: 29761: 29761: basic_fstream(const basic_fstream&) = delete; 29761: 29761: basic_fstream(basic_fstream&& __rhs) 29761: : __iostream_type(std::move(__rhs)), 29761: _M_filebuf(std::move(__rhs._M_filebuf)) 29761: { __iostream_type::set_rdbuf(&_M_filebuf); } 29761: # 1176 "/usr/include/c++/14/fstream" 3 29761: ~basic_fstream() 29761: { } 29761: 29761: 29761: 29761: 29761: basic_fstream& 29761: operator=(const basic_fstream&) = delete; 29761: 29761: basic_fstream& 29761: operator=(basic_fstream&& __rhs) 29761: { 29761: __iostream_type::operator=(std::move(__rhs)); 29761: _M_filebuf = std::move(__rhs._M_filebuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_fstream& __rhs) 29761: { 29761: __iostream_type::swap(__rhs); 29761: _M_filebuf.swap(__rhs._M_filebuf); 29761: } 29761: # 1208 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: rdbuf() const 29761: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: is_open() 29761: { return _M_filebuf.is_open(); } 29761: 29761: 29761: 29761: bool 29761: is_open() const 29761: { return _M_filebuf.is_open(); } 29761: # 1234 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const char* __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: { 29761: if (!_M_filebuf.open(__s, __mode)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 1275 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const std::string& __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: { 29761: if (!_M_filebuf.open(__s, __mode)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 1296 "/usr/include/c++/14/fstream" 3 29761: template 29761: _If_fs_path<_Path, void> 29761: open(const _Path& __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: { open(__s.c_str(), __mode); } 29761: # 1310 "/usr/include/c++/14/fstream" 3 29761: void 29761: close() 29761: { 29761: if (!_M_filebuf.close()) 29761: this->setstate(ios_base::failbit); 29761: } 29761: # 1325 "/usr/include/c++/14/fstream" 3 29761: }; 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_filebuf<_CharT, _Traits>& __x, 29761: basic_filebuf<_CharT, _Traits>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_ifstream<_CharT, _Traits>& __x, 29761: basic_ifstream<_CharT, _Traits>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_ofstream<_CharT, _Traits>& __x, 29761: basic_ofstream<_CharT, _Traits>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_fstream<_CharT, _Traits>& __x, 29761: basic_fstream<_CharT, _Traits>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/fstream.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/fstream.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/fstream.tcc" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cerrno" 1 3 29761: # 39 "/usr/include/c++/14/cerrno" 3 29761: 29761: # 40 "/usr/include/c++/14/cerrno" 3 29761: # 42 "/usr/include/c++/14/bits/fstream.tcc" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: void 29761: basic_filebuf<_CharT, _Traits>:: 29761: _M_allocate_internal_buffer() 29761: { 29761: 29761: 29761: if (!_M_buf_allocated && !_M_buf) 29761: { 29761: _M_buf = new char_type[_M_buf_size]; 29761: _M_buf_allocated = true; 29761: } 29761: } 29761: 29761: template 29761: void 29761: basic_filebuf<_CharT, _Traits>:: 29761: _M_destroy_internal_buffer() throw() 29761: { 29761: if (_M_buf_allocated) 29761: { 29761: delete [] _M_buf; 29761: _M_buf = 0; 29761: _M_buf_allocated = false; 29761: } 29761: delete [] _M_ext_buf; 29761: _M_ext_buf = 0; 29761: _M_ext_buf_size = 0; 29761: _M_ext_next = 0; 29761: _M_ext_end = 0; 29761: } 29761: 29761: template 29761: basic_filebuf<_CharT, _Traits>:: 29761: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), 29761: _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), 29761: _M_state_last(), _M_buf(0), _M_buf_size(8192), 29761: _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), 29761: _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), 29761: _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), 29761: _M_ext_end(0) 29761: { 29761: _M_codecvt = std::__try_use_facet<__codecvt_type>(this->_M_buf_locale); 29761: } 29761: 29761: 29761: template 29761: basic_filebuf<_CharT, _Traits>:: 29761: basic_filebuf(basic_filebuf&& __rhs) 29761: : __streambuf_type(__rhs), 29761: _M_lock(), _M_file(std::move(__rhs._M_file), &_M_lock), 29761: _M_mode(std::__exchange(__rhs._M_mode, ios_base::openmode(0))), 29761: _M_state_beg(std::move(__rhs._M_state_beg)), 29761: _M_state_cur(std::move(__rhs._M_state_cur)), 29761: _M_state_last(std::move(__rhs._M_state_last)), 29761: _M_buf(std::__exchange(__rhs._M_buf, nullptr)), 29761: _M_buf_size(std::__exchange(__rhs._M_buf_size, 1)), 29761: _M_buf_allocated(std::__exchange(__rhs._M_buf_allocated, false)), 29761: _M_reading(std::__exchange(__rhs._M_reading, false)), 29761: _M_writing(std::__exchange(__rhs._M_writing, false)), 29761: _M_pback(__rhs._M_pback), 29761: _M_pback_cur_save(std::__exchange(__rhs._M_pback_cur_save, nullptr)), 29761: _M_pback_end_save(std::__exchange(__rhs._M_pback_end_save, nullptr)), 29761: _M_pback_init(std::__exchange(__rhs._M_pback_init, false)), 29761: _M_codecvt(__rhs._M_codecvt), 29761: _M_ext_buf(std::__exchange(__rhs._M_ext_buf, nullptr)), 29761: _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), 29761: _M_ext_next(std::__exchange(__rhs._M_ext_next, nullptr)), 29761: _M_ext_end(std::__exchange(__rhs._M_ext_end, nullptr)) 29761: { 29761: __rhs._M_set_buffer(-1); 29761: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 29761: } 29761: 29761: template 29761: basic_filebuf<_CharT, _Traits>& 29761: basic_filebuf<_CharT, _Traits>:: 29761: operator=(basic_filebuf&& __rhs) 29761: { 29761: this->close(); 29761: __streambuf_type::operator=(__rhs); 29761: _M_file.swap(__rhs._M_file); 29761: _M_mode = std::__exchange(__rhs._M_mode, ios_base::openmode(0)); 29761: _M_state_beg = std::move(__rhs._M_state_beg); 29761: _M_state_cur = std::move(__rhs._M_state_cur); 29761: _M_state_last = std::move(__rhs._M_state_last); 29761: _M_buf = std::__exchange(__rhs._M_buf, nullptr); 29761: _M_buf_size = std::__exchange(__rhs._M_buf_size, 1); 29761: _M_buf_allocated = std::__exchange(__rhs._M_buf_allocated, false); 29761: _M_ext_buf = std::__exchange(__rhs._M_ext_buf, nullptr); 29761: _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); 29761: _M_ext_next = std::__exchange(__rhs._M_ext_next, nullptr); 29761: _M_ext_end = std::__exchange(__rhs._M_ext_end, nullptr); 29761: _M_reading = std::__exchange(__rhs._M_reading, false); 29761: _M_writing = std::__exchange(__rhs._M_writing, false); 29761: _M_pback_cur_save = std::__exchange(__rhs._M_pback_cur_save, nullptr); 29761: _M_pback_end_save = std::__exchange(__rhs._M_pback_end_save, nullptr); 29761: _M_pback_init = std::__exchange(__rhs._M_pback_init, false); 29761: __rhs._M_set_buffer(-1); 29761: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 29761: return *this; 29761: } 29761: 29761: template 29761: void 29761: basic_filebuf<_CharT, _Traits>:: 29761: swap(basic_filebuf& __rhs) 29761: { 29761: __streambuf_type::swap(__rhs); 29761: _M_file.swap(__rhs._M_file); 29761: std::swap(_M_mode, __rhs._M_mode); 29761: std::swap(_M_state_beg, __rhs._M_state_beg); 29761: std::swap(_M_state_cur, __rhs._M_state_cur); 29761: std::swap(_M_state_last, __rhs._M_state_last); 29761: std::swap(_M_buf, __rhs._M_buf); 29761: std::swap(_M_buf_size, __rhs._M_buf_size); 29761: std::swap(_M_buf_allocated, __rhs._M_buf_allocated); 29761: std::swap(_M_ext_buf, __rhs._M_ext_buf); 29761: std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); 29761: std::swap(_M_ext_next, __rhs._M_ext_next); 29761: std::swap(_M_ext_end, __rhs._M_ext_end); 29761: std::swap(_M_reading, __rhs._M_reading); 29761: std::swap(_M_writing, __rhs._M_writing); 29761: std::swap(_M_pback_cur_save, __rhs._M_pback_cur_save); 29761: std::swap(_M_pback_end_save, __rhs._M_pback_end_save); 29761: std::swap(_M_pback_init, __rhs._M_pback_init); 29761: } 29761: 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 29761: basic_filebuf<_CharT, _Traits>:: 29761: open(const char* __s, ios_base::openmode __mode) 29761: { 29761: __filebuf_type *__ret = 0; 29761: if (!this->is_open()) 29761: { 29761: _M_file.open(__s, __mode); 29761: if (this->is_open()) 29761: { 29761: _M_allocate_internal_buffer(); 29761: _M_mode = __mode; 29761: 29761: 29761: _M_reading = false; 29761: _M_writing = false; 29761: _M_set_buffer(-1); 29761: 29761: 29761: _M_state_last = _M_state_cur = _M_state_beg; 29761: 29761: 29761: if ((__mode & ios_base::ate) 29761: && this->seekoff(0, ios_base::end, __mode) 29761: == pos_type(off_type(-1))) 29761: this->close(); 29761: else 29761: __ret = this; 29761: } 29761: } 29761: return __ret; 29761: } 29761: # 246 "/usr/include/c++/14/bits/fstream.tcc" 3 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 29761: basic_filebuf<_CharT, _Traits>:: 29761: close() 29761: { 29761: if (!this->is_open()) 29761: return 0; 29761: 29761: bool __testfail = false; 29761: { 29761: 29761: struct __close_sentry 29761: { 29761: basic_filebuf *__fb; 29761: __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } 29761: ~__close_sentry () 29761: { 29761: __fb->_M_mode = ios_base::openmode(0); 29761: __fb->_M_pback_init = false; 29761: __fb->_M_destroy_internal_buffer(); 29761: __fb->_M_reading = false; 29761: __fb->_M_writing = false; 29761: __fb->_M_set_buffer(-1); 29761: __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; 29761: } 29761: } __cs (this); 29761: 29761: try 29761: { 29761: if (!_M_terminate_output()) 29761: __testfail = true; 29761: } 29761: catch(...) 29761: { 29761: _M_file.close(); 29761: throw; 29761: } 29761: } 29761: 29761: if (!_M_file.close()) 29761: __testfail = true; 29761: 29761: if (__testfail) 29761: return 0; 29761: else 29761: return this; 29761: } 29761: 29761: template 29761: streamsize 29761: basic_filebuf<_CharT, _Traits>:: 29761: showmanyc() 29761: { 29761: streamsize __ret = -1; 29761: const bool __testin = _M_mode & ios_base::in; 29761: if (__testin && this->is_open()) 29761: { 29761: 29761: 29761: __ret = this->egptr() - this->gptr(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (__check_facet(_M_codecvt).encoding() >= 0) 29761: 29761: __ret += _M_file.showmanyc() / _M_codecvt->max_length(); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::int_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: underflow() 29761: { 29761: int_type __ret = traits_type::eof(); 29761: const bool __testin = _M_mode & ios_base::in; 29761: if (__testin) 29761: { 29761: if (_M_writing) 29761: { 29761: if (overflow() == traits_type::eof()) 29761: return __ret; 29761: _M_set_buffer(-1); 29761: _M_writing = false; 29761: } 29761: 29761: 29761: 29761: _M_destroy_pback(); 29761: 29761: if (this->gptr() < this->egptr()) 29761: return traits_type::to_int_type(*this->gptr()); 29761: 29761: 29761: const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 29761: 29761: 29761: bool __got_eof = false; 29761: 29761: streamsize __ilen = 0; 29761: codecvt_base::result __r = codecvt_base::ok; 29761: if (__check_facet(_M_codecvt).always_noconv()) 29761: { 29761: __ilen = _M_file.xsgetn(reinterpret_cast(this->eback()), 29761: __buflen); 29761: if (__ilen == 0) 29761: __got_eof = true; 29761: } 29761: else 29761: { 29761: 29761: 29761: const int __enc = _M_codecvt->encoding(); 29761: streamsize __blen; 29761: streamsize __rlen; 29761: if (__enc > 0) 29761: __blen = __rlen = __buflen * __enc; 29761: else 29761: { 29761: __blen = __buflen + _M_codecvt->max_length() - 1; 29761: __rlen = __buflen; 29761: } 29761: const streamsize __remainder = _M_ext_end - _M_ext_next; 29761: __rlen = __rlen > __remainder ? __rlen - __remainder : 0; 29761: 29761: 29761: 29761: if (_M_reading && this->egptr() == this->eback() && __remainder) 29761: __rlen = 0; 29761: 29761: 29761: 29761: if (_M_ext_buf_size < __blen) 29761: { 29761: char* __buf = new char[__blen]; 29761: if (__remainder) 29761: __builtin_memcpy(__buf, _M_ext_next, __remainder); 29761: 29761: delete [] _M_ext_buf; 29761: _M_ext_buf = __buf; 29761: _M_ext_buf_size = __blen; 29761: } 29761: else if (__remainder) 29761: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 29761: 29761: _M_ext_next = _M_ext_buf; 29761: _M_ext_end = _M_ext_buf + __remainder; 29761: _M_state_last = _M_state_cur; 29761: 29761: do 29761: { 29761: if (__rlen > 0) 29761: { 29761: 29761: 29761: 29761: if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) 29761: { 29761: __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") 29761: 29761: ); 29761: } 29761: streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); 29761: if (__elen == 0) 29761: __got_eof = true; 29761: else if (__elen == -1) 29761: break; 29761: _M_ext_end += __elen; 29761: } 29761: 29761: char_type* __iend = this->eback(); 29761: if (_M_ext_next < _M_ext_end) 29761: __r = _M_codecvt->in(_M_state_cur, _M_ext_next, 29761: _M_ext_end, _M_ext_next, 29761: this->eback(), 29761: this->eback() + __buflen, __iend); 29761: if (__r == codecvt_base::noconv) 29761: { 29761: size_t __avail = _M_ext_end - _M_ext_buf; 29761: __ilen = std::min(__avail, __buflen); 29761: traits_type::copy(this->eback(), 29761: reinterpret_cast 29761: (_M_ext_buf), __ilen); 29761: _M_ext_next = _M_ext_buf + __ilen; 29761: } 29761: else 29761: __ilen = __iend - this->eback(); 29761: 29761: 29761: 29761: 29761: if (__r == codecvt_base::error) 29761: break; 29761: 29761: __rlen = 1; 29761: } 29761: while (__ilen == 0 && !__got_eof); 29761: } 29761: 29761: if (__ilen > 0) 29761: { 29761: _M_set_buffer(__ilen); 29761: _M_reading = true; 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: } 29761: else if (__got_eof) 29761: { 29761: 29761: 29761: 29761: _M_set_buffer(-1); 29761: _M_reading = false; 29761: 29761: 29761: if (__r == codecvt_base::partial) 29761: __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") 29761: ); 29761: } 29761: else if (__r == codecvt_base::error) 29761: __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") 29761: ); 29761: else 29761: __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") 29761: , (*__errno_location ())); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::int_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: pbackfail(int_type __i) 29761: { 29761: int_type __ret = traits_type::eof(); 29761: const bool __testin = _M_mode & ios_base::in; 29761: if (__testin) 29761: { 29761: if (_M_writing) 29761: { 29761: if (overflow() == traits_type::eof()) 29761: return __ret; 29761: _M_set_buffer(-1); 29761: _M_writing = false; 29761: } 29761: 29761: 29761: const bool __testpb = _M_pback_init; 29761: const bool __testeof = traits_type::eq_int_type(__i, __ret); 29761: int_type __tmp; 29761: if (this->eback() < this->gptr()) 29761: { 29761: this->gbump(-1); 29761: __tmp = traits_type::to_int_type(*this->gptr()); 29761: } 29761: else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) 29761: { 29761: __tmp = this->underflow(); 29761: if (traits_type::eq_int_type(__tmp, __ret)) 29761: return __ret; 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: 29761: 29761: return __ret; 29761: } 29761: 29761: 29761: 29761: if (!__testeof && traits_type::eq_int_type(__i, __tmp)) 29761: __ret = __i; 29761: else if (__testeof) 29761: __ret = traits_type::not_eof(__i); 29761: else if (!__testpb) 29761: { 29761: _M_create_pback(); 29761: _M_reading = true; 29761: *this->gptr() = traits_type::to_char_type(__i); 29761: __ret = __i; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::int_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: overflow(int_type __c) 29761: { 29761: int_type __ret = traits_type::eof(); 29761: const bool __testeof = traits_type::eq_int_type(__c, __ret); 29761: const bool __testout = (_M_mode & ios_base::out 29761: || _M_mode & ios_base::app); 29761: if (__testout) 29761: { 29761: if (_M_reading) 29761: { 29761: _M_destroy_pback(); 29761: const int __gptr_off = _M_get_ext_pos(_M_state_last); 29761: if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) 29761: == pos_type(off_type(-1))) 29761: return __ret; 29761: } 29761: if (this->pbase() < this->pptr()) 29761: { 29761: 29761: if (!__testeof) 29761: { 29761: *this->pptr() = traits_type::to_char_type(__c); 29761: this->pbump(1); 29761: } 29761: 29761: 29761: 29761: if (_M_convert_to_external(this->pbase(), 29761: this->pptr() - this->pbase())) 29761: { 29761: _M_set_buffer(0); 29761: __ret = traits_type::not_eof(__c); 29761: } 29761: } 29761: else if (_M_buf_size > 1) 29761: { 29761: 29761: 29761: 29761: _M_set_buffer(0); 29761: _M_writing = true; 29761: if (!__testeof) 29761: { 29761: *this->pptr() = traits_type::to_char_type(__c); 29761: this->pbump(1); 29761: } 29761: __ret = traits_type::not_eof(__c); 29761: } 29761: else 29761: { 29761: 29761: char_type __conv = traits_type::to_char_type(__c); 29761: if (__testeof || _M_convert_to_external(&__conv, 1)) 29761: { 29761: _M_writing = true; 29761: __ret = traits_type::not_eof(__c); 29761: } 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: bool 29761: basic_filebuf<_CharT, _Traits>:: 29761: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) 29761: { 29761: 29761: streamsize __elen; 29761: streamsize __plen; 29761: if (__check_facet(_M_codecvt).always_noconv()) 29761: { 29761: __elen = _M_file.xsputn(reinterpret_cast(__ibuf), __ilen); 29761: __plen = __ilen; 29761: } 29761: else 29761: { 29761: 29761: 29761: streamsize __blen = __ilen * _M_codecvt->max_length(); 29761: char* __buf = static_cast(__builtin_alloca(__blen)); 29761: 29761: char* __bend; 29761: const char_type* __iend; 29761: codecvt_base::result __r; 29761: __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, 29761: __iend, __buf, __buf + __blen, __bend); 29761: 29761: if (__r == codecvt_base::ok || __r == codecvt_base::partial) 29761: __blen = __bend - __buf; 29761: else if (__r == codecvt_base::noconv) 29761: { 29761: 29761: __buf = reinterpret_cast(__ibuf); 29761: __blen = __ilen; 29761: } 29761: else 29761: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 29761: ); 29761: 29761: __elen = _M_file.xsputn(__buf, __blen); 29761: __plen = __blen; 29761: 29761: 29761: if (__r == codecvt_base::partial && __elen == __plen) 29761: { 29761: const char_type* __iresume = __iend; 29761: streamsize __rlen = this->pptr() - __iend; 29761: __r = _M_codecvt->out(_M_state_cur, __iresume, 29761: __iresume + __rlen, __iend, __buf, 29761: __buf + __blen, __bend); 29761: if (__r != codecvt_base::error) 29761: { 29761: __rlen = __bend - __buf; 29761: __elen = _M_file.xsputn(__buf, __rlen); 29761: __plen = __rlen; 29761: } 29761: else 29761: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 29761: ); 29761: } 29761: } 29761: return __elen == __plen; 29761: } 29761: 29761: template 29761: streamsize 29761: basic_filebuf<_CharT, _Traits>:: 29761: xsgetn(_CharT* __s, streamsize __n) 29761: { 29761: 29761: streamsize __ret = 0; 29761: if (_M_pback_init) 29761: { 29761: if (__n > 0 && this->gptr() == this->eback()) 29761: { 29761: *__s++ = *this->gptr(); 29761: this->gbump(1); 29761: __ret = 1; 29761: --__n; 29761: } 29761: _M_destroy_pback(); 29761: } 29761: else if (_M_writing) 29761: { 29761: if (overflow() == traits_type::eof()) 29761: return __ret; 29761: _M_set_buffer(-1); 29761: _M_writing = false; 29761: } 29761: 29761: 29761: 29761: 29761: const bool __testin = _M_mode & ios_base::in; 29761: const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 29761: 29761: if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() 29761: && __testin) 29761: { 29761: 29761: const streamsize __avail = this->egptr() - this->gptr(); 29761: if (__avail != 0) 29761: { 29761: traits_type::copy(__s, this->gptr(), __avail); 29761: __s += __avail; 29761: this->setg(this->eback(), this->gptr() + __avail, this->egptr()); 29761: __ret += __avail; 29761: __n -= __avail; 29761: } 29761: 29761: 29761: 29761: streamsize __len; 29761: for (;;) 29761: { 29761: __len = _M_file.xsgetn(reinterpret_cast(__s), __n); 29761: if (__len == -1) 29761: __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") 29761: , (*__errno_location ())); 29761: if (__len == 0) 29761: break; 29761: 29761: __n -= __len; 29761: __ret += __len; 29761: if (__n == 0) 29761: break; 29761: 29761: __s += __len; 29761: } 29761: 29761: if (__n == 0) 29761: { 29761: 29761: _M_reading = true; 29761: } 29761: else if (__len == 0) 29761: { 29761: 29761: 29761: 29761: _M_set_buffer(-1); 29761: _M_reading = false; 29761: } 29761: } 29761: else 29761: __ret += __streambuf_type::xsgetn(__s, __n); 29761: 29761: return __ret; 29761: } 29761: 29761: template 29761: streamsize 29761: basic_filebuf<_CharT, _Traits>:: 29761: xsputn(const _CharT* __s, streamsize __n) 29761: { 29761: streamsize __ret = 0; 29761: 29761: 29761: 29761: const bool __testout = (_M_mode & ios_base::out 29761: || _M_mode & ios_base::app); 29761: if (__check_facet(_M_codecvt).always_noconv() 29761: && __testout && !_M_reading) 29761: { 29761: streamsize __bufavail = this->epptr() - this->pptr(); 29761: 29761: 29761: if (!_M_writing && _M_buf_size > 1) 29761: __bufavail = _M_buf_size - 1; 29761: 29761: if (__n >= __bufavail) 29761: { 29761: const streamsize __buffill = this->pptr() - this->pbase(); 29761: const char* __buf = reinterpret_cast(this->pbase()); 29761: __ret = _M_file.xsputn_2(__buf, __buffill, 29761: reinterpret_cast(__s), 29761: __n); 29761: if (__ret == __buffill + __n) 29761: { 29761: _M_set_buffer(0); 29761: _M_writing = true; 29761: } 29761: if (__ret > __buffill) 29761: __ret -= __buffill; 29761: else 29761: __ret = 0; 29761: } 29761: else 29761: __ret = __streambuf_type::xsputn(__s, __n); 29761: } 29761: else 29761: __ret = __streambuf_type::xsputn(__s, __n); 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::__streambuf_type* 29761: basic_filebuf<_CharT, _Traits>:: 29761: setbuf(char_type* __s, streamsize __n) 29761: { 29761: if (!this->is_open()) 29761: { 29761: if (__s == 0 && __n == 0) 29761: _M_buf_size = 1; 29761: else if (__s && __n > 0) 29761: { 29761: # 816 "/usr/include/c++/14/bits/fstream.tcc" 3 29761: _M_buf = __s; 29761: _M_buf_size = __n; 29761: } 29761: } 29761: return this; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::pos_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) 29761: { 29761: int __width = 0; 29761: if (_M_codecvt) 29761: __width = _M_codecvt->encoding(); 29761: if (__width < 0) 29761: __width = 0; 29761: 29761: pos_type __ret = pos_type(off_type(-1)); 29761: const bool __testfail = __off != 0 && __width <= 0; 29761: if (this->is_open() && !__testfail) 29761: { 29761: 29761: 29761: 29761: 29761: bool __no_movement = __way == ios_base::cur && __off == 0 29761: && (!_M_writing || _M_codecvt->always_noconv()); 29761: 29761: 29761: if (!__no_movement) 29761: _M_destroy_pback(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __state_type __state = _M_state_beg; 29761: off_type __computed_off = __off * __width; 29761: if (_M_reading && __way == ios_base::cur) 29761: { 29761: __state = _M_state_last; 29761: __computed_off += _M_get_ext_pos(__state); 29761: } 29761: if (!__no_movement) 29761: __ret = _M_seek(__computed_off, __way, __state); 29761: else 29761: { 29761: if (_M_writing) 29761: __computed_off = this->pptr() - this->pbase(); 29761: 29761: off_type __file_off = _M_file.seekoff(0, ios_base::cur); 29761: if (__file_off != off_type(-1)) 29761: { 29761: __ret = __file_off + __computed_off; 29761: __ret.state(__state); 29761: } 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::pos_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: seekpos(pos_type __pos, ios_base::openmode) 29761: { 29761: pos_type __ret = pos_type(off_type(-1)); 29761: if (this->is_open()) 29761: { 29761: 29761: _M_destroy_pback(); 29761: __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::pos_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) 29761: { 29761: pos_type __ret = pos_type(off_type(-1)); 29761: if (_M_terminate_output()) 29761: { 29761: off_type __file_off = _M_file.seekoff(__off, __way); 29761: if (__file_off != off_type(-1)) 29761: { 29761: _M_reading = false; 29761: _M_writing = false; 29761: _M_ext_next = _M_ext_end = _M_ext_buf; 29761: _M_set_buffer(-1); 29761: _M_state_cur = __state; 29761: __ret = __file_off; 29761: __ret.state(_M_state_cur); 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: int basic_filebuf<_CharT, _Traits>:: 29761: _M_get_ext_pos(__state_type& __state) 29761: { 29761: if (_M_codecvt->always_noconv()) 29761: return this->gptr() - this->egptr(); 29761: else 29761: { 29761: 29761: 29761: 29761: const int __gptr_off = 29761: _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, 29761: this->gptr() - this->eback()); 29761: return _M_ext_buf + __gptr_off - _M_ext_end; 29761: } 29761: } 29761: 29761: template 29761: bool 29761: basic_filebuf<_CharT, _Traits>:: 29761: _M_terminate_output() 29761: { 29761: 29761: bool __testvalid = true; 29761: if (this->pbase() < this->pptr()) 29761: { 29761: const int_type __tmp = this->overflow(); 29761: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29761: __testvalid = false; 29761: } 29761: 29761: 29761: if (_M_writing && !__check_facet(_M_codecvt).always_noconv() 29761: && __testvalid) 29761: { 29761: 29761: 29761: 29761: const size_t __blen = 128; 29761: char __buf[__blen]; 29761: codecvt_base::result __r; 29761: streamsize __ilen = 0; 29761: 29761: do 29761: { 29761: char* __next; 29761: __r = _M_codecvt->unshift(_M_state_cur, __buf, 29761: __buf + __blen, __next); 29761: if (__r == codecvt_base::error) 29761: __testvalid = false; 29761: else if (__r == codecvt_base::ok || 29761: __r == codecvt_base::partial) 29761: { 29761: __ilen = __next - __buf; 29761: if (__ilen > 0) 29761: { 29761: const streamsize __elen = _M_file.xsputn(__buf, __ilen); 29761: if (__elen != __ilen) 29761: __testvalid = false; 29761: } 29761: } 29761: } 29761: while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); 29761: 29761: if (__testvalid) 29761: { 29761: 29761: 29761: 29761: 29761: const int_type __tmp = this->overflow(); 29761: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29761: __testvalid = false; 29761: } 29761: } 29761: return __testvalid; 29761: } 29761: 29761: template 29761: int 29761: basic_filebuf<_CharT, _Traits>:: 29761: sync() 29761: { 29761: 29761: 29761: int __ret = 0; 29761: if (this->pbase() < this->pptr()) 29761: { 29761: const int_type __tmp = this->overflow(); 29761: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29761: __ret = -1; 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: void 29761: basic_filebuf<_CharT, _Traits>:: 29761: imbue(const locale& __loc) 29761: { 29761: bool __testvalid = true; 29761: 29761: const __codecvt_type* const _M_codecvt_tmp 29761: = __try_use_facet<__codecvt_type>(__loc); 29761: 29761: if (this->is_open()) 29761: { 29761: 29761: if ((_M_reading || _M_writing) 29761: && __check_facet(_M_codecvt).encoding() == -1) 29761: __testvalid = false; 29761: else 29761: { 29761: if (_M_reading) 29761: { 29761: if (__check_facet(_M_codecvt).always_noconv()) 29761: { 29761: if (_M_codecvt_tmp 29761: && !__check_facet(_M_codecvt_tmp).always_noconv()) 29761: __testvalid = this->seekoff(0, ios_base::cur, _M_mode) 29761: != pos_type(off_type(-1)); 29761: } 29761: else 29761: { 29761: 29761: _M_ext_next = _M_ext_buf 29761: + _M_codecvt->length(_M_state_last, _M_ext_buf, 29761: _M_ext_next, 29761: this->gptr() - this->eback()); 29761: const streamsize __remainder = _M_ext_end - _M_ext_next; 29761: if (__remainder) 29761: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 29761: 29761: _M_ext_next = _M_ext_buf; 29761: _M_ext_end = _M_ext_buf + __remainder; 29761: _M_set_buffer(-1); 29761: _M_state_last = _M_state_cur = _M_state_beg; 29761: } 29761: } 29761: else if (_M_writing && (__testvalid = _M_terminate_output())) 29761: _M_set_buffer(-1); 29761: } 29761: } 29761: 29761: if (__testvalid) 29761: _M_codecvt = _M_codecvt_tmp; 29761: else 29761: _M_codecvt = 0; 29761: } 29761: 29761: 29761: 29761: 29761: extern template class basic_filebuf; 29761: extern template class basic_ifstream; 29761: extern template class basic_ofstream; 29761: extern template class basic_fstream; 29761: 29761: 29761: extern template class basic_filebuf; 29761: extern template class basic_ifstream; 29761: extern template class basic_ofstream; 29761: extern template class basic_fstream; 29761: 29761: 29761: 29761: 29761: } 29761: # 1361 "/usr/include/c++/14/fstream" 2 3 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29761: namespace rocksdb { 29761: class InstrumentedCondVar; 29761: 29761: 29761: 29761: class InstrumentedMutex { 29761: public: 29761: explicit InstrumentedMutex(bool adaptive = false) 29761: : mutex_(adaptive), stats_(nullptr), clock_(nullptr), stats_code_(0) {} 29761: 29761: explicit InstrumentedMutex(SystemClock* clock, bool adaptive = false) 29761: : mutex_(adaptive), stats_(nullptr), clock_(clock), stats_code_(0) {} 29761: 29761: InstrumentedMutex(Statistics* stats, SystemClock* clock, int stats_code, 29761: bool adaptive = false) 29761: : mutex_(adaptive), 29761: stats_(stats), 29761: clock_(clock), 29761: stats_code_(stats_code) {} 29761: # 45 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29761: void Lock(); 29761: 29761: void Unlock() { mutex_.Unlock(); } 29761: 29761: void AssertHeld() const { mutex_.AssertHeld(); } 29761: 29761: private: 29761: void LockInternal(); 29761: friend class InstrumentedCondVar; 29761: port::Mutex mutex_; 29761: Statistics* stats_; 29761: SystemClock* clock_; 29761: int stats_code_; 29761: 29761: 29761: 29761: }; 29761: 29761: class alignas(64U) CacheAlignedInstrumentedMutex 29761: : public InstrumentedMutex { 29761: using InstrumentedMutex::InstrumentedMutex; 29761: }; 29761: static_assert(alignof(CacheAlignedInstrumentedMutex) != 64U || 29761: sizeof(CacheAlignedInstrumentedMutex) % 64U == 0); 29761: 29761: 29761: class InstrumentedMutexLock { 29761: public: 29761: explicit InstrumentedMutexLock(InstrumentedMutex* mutex) : mutex_(mutex) { 29761: mutex_->Lock(); 29761: } 29761: 29761: ~InstrumentedMutexLock() { mutex_->Unlock(); } 29761: 29761: private: 29761: InstrumentedMutex* const mutex_; 29761: InstrumentedMutexLock(const InstrumentedMutexLock&) = delete; 29761: void operator=(const InstrumentedMutexLock&) = delete; 29761: }; 29761: 29761: 29761: 29761: class InstrumentedMutexUnlock { 29761: public: 29761: explicit InstrumentedMutexUnlock(InstrumentedMutex* mutex) : mutex_(mutex) { 29761: mutex_->Unlock(); 29761: } 29761: 29761: ~InstrumentedMutexUnlock() { mutex_->Lock(); } 29761: 29761: private: 29761: InstrumentedMutex* const mutex_; 29761: InstrumentedMutexUnlock(const InstrumentedMutexUnlock&) = delete; 29761: void operator=(const InstrumentedMutexUnlock&) = delete; 29761: }; 29761: 29761: class InstrumentedCondVar { 29761: public: 29761: explicit InstrumentedCondVar(InstrumentedMutex* instrumented_mutex) 29761: : cond_(&(instrumented_mutex->mutex_)), 29761: stats_(instrumented_mutex->stats_), 29761: clock_(instrumented_mutex->clock_), 29761: stats_code_(instrumented_mutex->stats_code_) {} 29761: 29761: void Wait(); 29761: 29761: bool TimedWait(uint64_t abs_time_us); 29761: 29761: void Signal() { cond_.Signal(); } 29761: 29761: void SignalAll() { cond_.SignalAll(); } 29761: 29761: private: 29761: void WaitInternal(); 29761: bool TimedWaitInternal(uint64_t abs_time_us); 29761: port::CondVar cond_; 29761: Statistics* stats_; 29761: SystemClock* clock_; 29761: int stats_code_; 29761: }; 29761: 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/replayer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class TraceRecord; 29761: class TraceRecordResult; 29761: 29761: struct ReplayOptions { 29761: 29761: 29761: uint32_t num_threads; 29761: 29761: 29761: 29761: 29761: 29761: 29761: double fast_forward; 29761: 29761: ReplayOptions() : num_threads(1), fast_forward(1.0) {} 29761: 29761: ReplayOptions(uint32_t num_of_threads, double fast_forward_ratio) 29761: : num_threads(num_of_threads), fast_forward(fast_forward_ratio) {} 29761: }; 29761: 29761: 29761: 29761: 29761: class Replayer { 29761: public: 29761: virtual ~Replayer() = default; 29761: 29761: 29761: 29761: virtual Status Prepare() = 0; 29761: 29761: 29761: virtual uint64_t GetHeaderTimestamp() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Next(std::unique_ptr* record) = 0; 29761: # 71 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/replayer.h" 29761: virtual Status Execute(const std::unique_ptr& record, 29761: std::unique_ptr* result) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Replay( 29761: const ReplayOptions& options, 29761: const std::function&&)>& 29761: result_callback) = 0; 29761: }; 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: class ColumnFamilyHandle; 29761: class ColumnFamilyData; 29761: class DB; 29761: class DBImpl; 29761: class Env; 29761: class Slice; 29761: class SystemClock; 29761: class TraceReader; 29761: class TraceWriter; 29761: class WriteBatch; 29761: 29761: struct ReadOptions; 29761: struct TraceOptions; 29761: struct WriteOptions; 29761: 29761: extern const std::string kTraceMagic; 29761: const unsigned int kTraceTimestampSize = 8; 29761: const unsigned int kTraceTypeSize = 1; 29761: const unsigned int kTracePayloadLengthSize = 4; 29761: const unsigned int kTraceMetadataSize = 29761: kTraceTimestampSize + kTraceTypeSize + kTracePayloadLengthSize; 29761: 29761: static const int kTraceFileMajorVersion = 0; 29761: static const int kTraceFileMinorVersion = 2; 29761: 29761: 29761: struct Trace { 29761: uint64_t ts; 29761: TraceType type; 29761: 29761: 29761: 29761: 29761: uint64_t payload_map = 0; 29761: 29761: 29761: std::string payload; 29761: 29761: void reset() { 29761: ts = 0; 29761: type = kTraceMax; 29761: payload_map = 0; 29761: payload.clear(); 29761: } 29761: }; 29761: 29761: enum TracePayloadType : char { 29761: 29761: 29761: kEmptyPayload = 0, 29761: kWriteBatchData = 1, 29761: kGetCFID = 2, 29761: kGetKey = 3, 29761: kIterCFID = 4, 29761: kIterKey = 5, 29761: kIterLowerBound = 6, 29761: kIterUpperBound = 7, 29761: kMultiGetSize = 8, 29761: kMultiGetCFIDs = 9, 29761: kMultiGetKeys = 10, 29761: }; 29761: 29761: class TracerHelper { 29761: public: 29761: 29761: static Status ParseVersionStr(std::string& v_string, int* v_num); 29761: 29761: 29761: static Status ParseTraceHeader(const Trace& header, int* trace_version, 29761: int* db_version); 29761: 29761: 29761: static void EncodeTrace(const Trace& trace, std::string* encoded_trace); 29761: 29761: 29761: static Status DecodeTrace(const std::string& encoded_trace, Trace* trace); 29761: 29761: 29761: static Status DecodeHeader(const std::string& encoded_trace, Trace* header); 29761: 29761: 29761: static bool SetPayloadMap(uint64_t& payload_map, 29761: const TracePayloadType payload_type); 29761: 29761: 29761: 29761: 29761: 29761: static Status DecodeTraceRecord(Trace* trace, int trace_file_version, 29761: std::unique_ptr* record); 29761: }; 29761: 29761: 29761: 29761: 29761: class Tracer { 29761: public: 29761: Tracer(SystemClock* clock, const TraceOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: ~Tracer(); 29761: 29761: 29761: Status Write(WriteBatch* write_batch); 29761: 29761: 29761: Status Get(ColumnFamilyHandle* cfname, const Slice& key); 29761: 29761: 29761: Status IteratorSeek(const uint32_t& cf_id, const Slice& key, 29761: const Slice& lower_bound, const Slice upper_bound); 29761: Status IteratorSeekForPrev(const uint32_t& cf_id, const Slice& key, 29761: const Slice& lower_bound, const Slice upper_bound); 29761: 29761: 29761: 29761: Status MultiGet(const size_t num_keys, ColumnFamilyHandle** column_families, 29761: const Slice* keys); 29761: 29761: Status MultiGet(const size_t num_keys, ColumnFamilyHandle* column_family, 29761: const Slice* keys); 29761: 29761: Status MultiGet(const std::vector& column_family, 29761: const std::vector& keys); 29761: 29761: 29761: 29761: bool IsTraceFileOverMax(); 29761: 29761: 29761: 29761: bool IsWriteOrderPreserved() { return trace_options_.preserve_write_order; } 29761: 29761: 29761: Status Close(); 29761: 29761: private: 29761: 29761: 29761: 29761: Status WriteHeader(); 29761: 29761: 29761: Status WriteFooter(); 29761: 29761: 29761: 29761: Status WriteTrace(const Trace& trace); 29761: 29761: 29761: 29761: bool ShouldSkipTrace(const TraceType& type); 29761: 29761: SystemClock* clock_; 29761: TraceOptions trace_options_; 29761: std::unique_ptr trace_writer_; 29761: uint64_t trace_request_count_; 29761: Status trace_write_status_; 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29761: 29761: namespace rocksdb { 29761: class SystemClock; 29761: class TraceReader; 29761: class TraceWriter; 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 29761: enum IOTraceOp : char { 29761: 29761: 29761: kIOFileSize = 0, 29761: kIOLen = 1, 29761: kIOOffset = 2, 29761: }; 29761: 29761: struct IOTraceRecord { 29761: 29761: uint64_t access_timestamp = 0; 29761: TraceType trace_type = TraceType::kTraceMax; 29761: 29761: 29761: 29761: uint64_t io_op_data = 0; 29761: std::string file_operation; 29761: uint64_t latency = 0; 29761: std::string io_status; 29761: 29761: std::string file_name; 29761: 29761: 29761: uint64_t len = 0; 29761: uint64_t offset = 0; 29761: uint64_t file_size = 0; 29761: 29761: 29761: uint64_t trace_data = 0; 29761: std::string request_id; 29761: 29761: IOTraceRecord() {} 29761: 29761: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 29761: const uint64_t& _io_op_data, const std::string& _file_operation, 29761: const uint64_t& _latency, const std::string& _io_status, 29761: const std::string& _file_name, const uint64_t& _file_size = 0) 29761: : access_timestamp(_access_timestamp), 29761: trace_type(_trace_type), 29761: io_op_data(_io_op_data), 29761: file_operation(_file_operation), 29761: latency(_latency), 29761: io_status(_io_status), 29761: file_name(_file_name), 29761: file_size(_file_size) {} 29761: 29761: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 29761: const uint64_t& _io_op_data, const std::string& _file_operation, 29761: const uint64_t& _latency, const std::string& _io_status, 29761: const std::string& _file_name, const uint64_t& _len, 29761: const uint64_t& _offset) 29761: : access_timestamp(_access_timestamp), 29761: trace_type(_trace_type), 29761: io_op_data(_io_op_data), 29761: file_operation(_file_operation), 29761: latency(_latency), 29761: io_status(_io_status), 29761: file_name(_file_name), 29761: len(_len), 29761: offset(_offset) {} 29761: }; 29761: 29761: struct IOTraceHeader { 29761: uint64_t start_time; 29761: uint32_t rocksdb_major_version; 29761: uint32_t rocksdb_minor_version; 29761: }; 29761: 29761: 29761: 29761: class IOTraceWriter { 29761: public: 29761: IOTraceWriter(SystemClock* clock, const TraceOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: ~IOTraceWriter() = default; 29761: 29761: IOTraceWriter(const IOTraceWriter&) = delete; 29761: IOTraceWriter& operator=(const IOTraceWriter&) = delete; 29761: IOTraceWriter(IOTraceWriter&&) = delete; 29761: IOTraceWriter& operator=(IOTraceWriter&&) = delete; 29761: 29761: Status WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 29761: 29761: 29761: 29761: Status WriteHeader(); 29761: 29761: private: 29761: SystemClock* clock_; 29761: TraceOptions trace_options_; 29761: std::unique_ptr trace_writer_; 29761: }; 29761: 29761: 29761: class IOTraceReader { 29761: public: 29761: explicit IOTraceReader(std::unique_ptr&& reader); 29761: ~IOTraceReader() = default; 29761: 29761: IOTraceReader(const IOTraceReader&) = delete; 29761: IOTraceReader& operator=(const IOTraceReader&) = delete; 29761: IOTraceReader(IOTraceReader&&) = delete; 29761: IOTraceReader& operator=(IOTraceReader&&) = delete; 29761: 29761: Status ReadHeader(IOTraceHeader* header); 29761: 29761: Status ReadIOOp(IOTraceRecord* record); 29761: 29761: private: 29761: std::unique_ptr trace_reader_; 29761: }; 29761: 29761: 29761: 29761: class IOTracer { 29761: public: 29761: IOTracer(); 29761: ~IOTracer(); 29761: 29761: IOTracer(const IOTracer&) = delete; 29761: IOTracer& operator=(const IOTracer&) = delete; 29761: IOTracer(IOTracer&&) = delete; 29761: IOTracer& operator=(IOTracer&&) = delete; 29761: # 163 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 29761: Status 29761: StartIOTrace(SystemClock* clock, const TraceOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: 29761: 29761: void EndIOTrace(); 29761: 29761: bool is_tracing_enabled() const { return tracing_enabled; } 29761: 29761: void WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 29761: 29761: private: 29761: TraceOptions trace_options_; 29761: 29761: InstrumentedMutex trace_writer_mutex_; 29761: std::atomic writer_; 29761: 29761: 29761: 29761: bool tracing_enabled; 29761: }; 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FileSystemTracingWrapper : public FileSystemWrapper { 29761: public: 29761: FileSystemTracingWrapper(const std::shared_ptr& t, 29761: const std::shared_ptr& io_tracer) 29761: : FileSystemWrapper(t), 29761: io_tracer_(io_tracer), 29761: clock_(SystemClock::Default().get()) {} 29761: 29761: ~FileSystemTracingWrapper() override {} 29761: 29761: static const char* kClassName() { return "FileSystemTracing"; } 29761: const char* Name() const override { return kClassName(); } 29761: 29761: IOStatus NewSequentialFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewRandomAccessFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus ReopenWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewRandomRWFile(const std::string& fname, const FileOptions& options, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 29761: std::vector* r, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus DeleteFile(const std::string& fname, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus CreateDir(const std::string& dirname, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus CreateDirIfMissing(const std::string& dirname, 29761: const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus DeleteDir(const std::string& dirname, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus GetFileSize(const std::string& fname, const IOOptions& options, 29761: uint64_t* file_size, IODebugContext* dbg) override; 29761: 29761: IOStatus Truncate(const std::string& fname, size_t size, 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: SystemClock* clock_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FileSystemPtr { 29761: public: 29761: FileSystemPtr(std::shared_ptr fs, 29761: const std::shared_ptr& io_tracer) 29761: : fs_(fs), io_tracer_(io_tracer) { 29761: fs_tracer_ = std::make_shared(fs_, io_tracer_); 29761: } 29761: 29761: std::shared_ptr operator->() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return fs_tracer_; 29761: } else { 29761: return fs_; 29761: } 29761: } 29761: 29761: 29761: FileSystem* get() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return fs_tracer_.get(); 29761: } else { 29761: return fs_.get(); 29761: } 29761: } 29761: 29761: private: 29761: std::shared_ptr fs_; 29761: std::shared_ptr io_tracer_; 29761: std::shared_ptr fs_tracer_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSSequentialFileTracingWrapper : public FSSequentialFileOwnerWrapper { 29761: public: 29761: FSSequentialFileTracingWrapper(std::unique_ptr&& t, 29761: std::shared_ptr io_tracer, 29761: const std::string& file_name) 29761: : FSSequentialFileOwnerWrapper(std::move(t)), 29761: io_tracer_(io_tracer), 29761: clock_(SystemClock::Default().get()), 29761: file_name_(file_name) {} 29761: 29761: ~FSSequentialFileTracingWrapper() override {} 29761: 29761: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29761: char* scratch, IODebugContext* dbg) override; 29761: 29761: IOStatus InvalidateCache(size_t offset, size_t length) override; 29761: 29761: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) override; 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: SystemClock* clock_; 29761: std::string file_name_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSSequentialFilePtr { 29761: public: 29761: FSSequentialFilePtr() = delete; 29761: FSSequentialFilePtr(std::unique_ptr&& fs, 29761: const std::shared_ptr& io_tracer, 29761: const std::string& file_name) 29761: : io_tracer_(io_tracer), 29761: fs_tracer_(std::move(fs), io_tracer_, 29761: file_name.substr(file_name.find_last_of("/\\") + 29761: 1) ) {} 29761: 29761: FSSequentialFile* operator->() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: FSSequentialFile* get() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: FSSequentialFileTracingWrapper fs_tracer_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSRandomAccessFileTracingWrapper : public FSRandomAccessFileOwnerWrapper { 29761: public: 29761: FSRandomAccessFileTracingWrapper(std::unique_ptr&& t, 29761: std::shared_ptr io_tracer, 29761: const std::string& file_name) 29761: : FSRandomAccessFileOwnerWrapper(std::move(t)), 29761: io_tracer_(io_tracer), 29761: clock_(SystemClock::Default().get()), 29761: file_name_(file_name) {} 29761: 29761: ~FSRandomAccessFileTracingWrapper() override {} 29761: 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override; 29761: 29761: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus InvalidateCache(size_t offset, size_t length) override; 29761: 29761: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29761: std::function cb, 29761: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29761: IODebugContext* dbg) override; 29761: 29761: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: SystemClock* clock_; 29761: 29761: std::string file_name_; 29761: 29761: struct ReadAsyncCallbackInfo { 29761: uint64_t start_time_; 29761: std::function cb_; 29761: void* cb_arg_; 29761: std::string file_op_; 29761: }; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSRandomAccessFilePtr { 29761: public: 29761: FSRandomAccessFilePtr(std::unique_ptr&& fs, 29761: const std::shared_ptr& io_tracer, 29761: const std::string& file_name) 29761: : io_tracer_(io_tracer), 29761: fs_tracer_(std::move(fs), io_tracer_, 29761: file_name.substr(file_name.find_last_of("/\\") + 29761: 1) ) {} 29761: 29761: FSRandomAccessFile* operator->() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: FSRandomAccessFile* get() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: FSRandomAccessFileTracingWrapper fs_tracer_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSWritableFileTracingWrapper : public FSWritableFileOwnerWrapper { 29761: public: 29761: FSWritableFileTracingWrapper(std::unique_ptr&& t, 29761: std::shared_ptr io_tracer, 29761: const std::string& file_name) 29761: : FSWritableFileOwnerWrapper(std::move(t)), 29761: io_tracer_(io_tracer), 29761: clock_(SystemClock::Default().get()), 29761: file_name_(file_name) {} 29761: 29761: ~FSWritableFileTracingWrapper() override {} 29761: 29761: IOStatus Append(const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: IOStatus Append(const Slice& data, const IOOptions& options, 29761: const DataVerificationInfo& , 29761: IODebugContext* dbg) override { 29761: return Append(data, options, dbg); 29761: } 29761: 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: const DataVerificationInfo& , 29761: IODebugContext* dbg) override { 29761: return PositionedAppend(data, offset, options, dbg); 29761: } 29761: 29761: IOStatus Truncate(uint64_t size, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus InvalidateCache(size_t offset, size_t length) override; 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: SystemClock* clock_; 29761: 29761: std::string file_name_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSWritableFilePtr { 29761: public: 29761: FSWritableFilePtr(std::unique_ptr&& fs, 29761: const std::shared_ptr& io_tracer, 29761: const std::string& file_name) 29761: : io_tracer_(io_tracer) { 29761: fs_tracer_.reset(new FSWritableFileTracingWrapper( 29761: std::move(fs), io_tracer_, 29761: file_name.substr(file_name.find_last_of("/\\") + 29761: 1) )); 29761: } 29761: 29761: FSWritableFile* operator->() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return fs_tracer_.get(); 29761: } else { 29761: return fs_tracer_->target(); 29761: } 29761: } 29761: 29761: FSWritableFile* get() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return fs_tracer_.get(); 29761: } else if (fs_tracer_) { 29761: return fs_tracer_->target(); 29761: } else { 29761: return nullptr; 29761: } 29761: } 29761: 29761: void reset() { 29761: fs_tracer_.reset(); 29761: io_tracer_ = nullptr; 29761: } 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: std::unique_ptr fs_tracer_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSRandomRWFileTracingWrapper : public FSRandomRWFileOwnerWrapper { 29761: public: 29761: FSRandomRWFileTracingWrapper(std::unique_ptr&& t, 29761: std::shared_ptr io_tracer, 29761: const std::string& file_name) 29761: : FSRandomRWFileOwnerWrapper(std::move(t)), 29761: io_tracer_(io_tracer), 29761: clock_(SystemClock::Default().get()), 29761: file_name_(file_name) {} 29761: 29761: ~FSRandomRWFileTracingWrapper() override {} 29761: 29761: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override; 29761: 29761: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: SystemClock* clock_; 29761: 29761: std::string file_name_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSRandomRWFilePtr { 29761: public: 29761: FSRandomRWFilePtr(std::unique_ptr&& fs, 29761: std::shared_ptr io_tracer, 29761: const std::string& file_name) 29761: : io_tracer_(io_tracer), 29761: fs_tracer_(std::move(fs), io_tracer_, 29761: file_name.substr(file_name.find_last_of("/\\") + 29761: 1) ) {} 29761: 29761: FSRandomRWFile* operator->() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: FSRandomRWFile* get() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: FSRandomRWFileTracingWrapper fs_tracer_; 29761: }; 29761: 29761: } 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: class RateLimiter { 29761: public: 29761: enum class OpType { 29761: kRead, 29761: kWrite, 29761: }; 29761: 29761: enum class Mode { 29761: kReadsOnly = 0, 29761: kWritesOnly = 1, 29761: kAllIo = 2, 29761: }; 29761: 29761: 29761: explicit RateLimiter(Mode mode = Mode::kWritesOnly) : mode_(mode) {} 29761: 29761: virtual ~RateLimiter() {} 29761: 29761: 29761: 29761: virtual void SetBytesPerSecond(int64_t bytes_per_second) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status SetSingleBurstBytes(int64_t ) { 29761: return Status::NotSupported(); 29761: } 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: virtual void Request(const int64_t , const Env::IOPriority ) { 29761: 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: (static_cast ( 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: false 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: "false" 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: ; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 29761: Statistics* ) { 29761: 29761: 29761: Request(bytes, pri); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 29761: Statistics* stats, OpType op_type) { 29761: if (IsRateLimited(op_type)) { 29761: Request(bytes, pri, stats); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual size_t RequestToken(size_t bytes, size_t alignment, 29761: Env::IOPriority io_priority, Statistics* stats, 29761: RateLimiter::OpType op_type); 29761: 29761: 29761: virtual int64_t GetSingleBurstBytes() const = 0; 29761: 29761: 29761: virtual int64_t GetTotalBytesThrough( 29761: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 29761: 29761: 29761: virtual int64_t GetTotalRequests( 29761: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetTotalPendingRequests( 29761: int64_t* total_pending_requests, 29761: const Env::IOPriority pri = Env::IO_TOTAL) const { 29761: 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: (static_cast ( 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: total_pending_requests != nullptr 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: "total_pending_requests != nullptr" 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: ; 29761: (void)total_pending_requests; 29761: (void)pri; 29761: return Status::NotSupported(); 29761: } 29761: 29761: virtual int64_t GetBytesPerSecond() const = 0; 29761: 29761: virtual bool IsRateLimited(OpType op_type) { 29761: if ((mode_ == RateLimiter::Mode::kWritesOnly && 29761: op_type == RateLimiter::OpType::kRead) || 29761: (mode_ == RateLimiter::Mode::kReadsOnly && 29761: op_type == RateLimiter::OpType::kWrite)) { 29761: return false; 29761: } 29761: return true; 29761: } 29761: 29761: protected: 29761: Mode GetMode() { return mode_; } 29761: 29761: private: 29761: const Mode mode_; 29761: }; 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: RateLimiter* NewGenericRateLimiter( 29761: int64_t rate_bytes_per_sec, int64_t refill_period_us = 100 * 1000, 29761: int32_t fairness = 10, 29761: RateLimiter::Mode mode = RateLimiter::Mode::kWritesOnly, 29761: bool auto_tuned = false, int64_t single_burst_bytes = 0); 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 2 29761: 29761: 29761: 29761: namespace rocksdb { 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: inline size_t TruncateToPageBoundary(size_t page_size, size_t s) { 29761: s -= (s & (page_size - 1)); 29761: 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: (s % page_size) == 0 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "(s % page_size) == 0" 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: return s; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: inline size_t Roundup(size_t x, size_t y) { return ((x + y - 1) / y) * y; } 29761: 29761: 29761: 29761: 29761: 29761: inline size_t Rounddown(size_t x, size_t y) { return (x / y) * y; } 29761: # 57 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: class AlignedBuffer { 29761: size_t alignment_; 29761: FSAllocationPtr buf_; 29761: size_t capacity_; 29761: size_t cursize_; 29761: char* bufstart_; 29761: 29761: public: 29761: AlignedBuffer() 29761: : alignment_(), capacity_(0), cursize_(0), bufstart_(nullptr) {} 29761: 29761: AlignedBuffer(AlignedBuffer&& o) noexcept { *this = std::move(o); } 29761: 29761: AlignedBuffer& operator=(AlignedBuffer&& o) noexcept { 29761: alignment_ = std::move(o.alignment_); 29761: buf_ = std::move(o.buf_); 29761: capacity_ = std::move(o.capacity_); 29761: cursize_ = std::move(o.cursize_); 29761: bufstart_ = std::move(o.bufstart_); 29761: return *this; 29761: } 29761: 29761: AlignedBuffer(const AlignedBuffer&) = delete; 29761: 29761: AlignedBuffer& operator=(const AlignedBuffer&) = delete; 29761: 29761: static bool isAligned(const void* ptr, size_t alignment) { 29761: return reinterpret_cast(ptr) % alignment == 0; 29761: } 29761: 29761: static bool isAligned(size_t n, size_t alignment) { 29761: return n % alignment == 0; 29761: } 29761: 29761: size_t Alignment() const { return alignment_; } 29761: 29761: size_t Capacity() const { return capacity_; } 29761: 29761: size_t CurrentSize() const { return cursize_; } 29761: 29761: const char* BufferStart() const { return bufstart_; } 29761: 29761: char* BufferStart() { return bufstart_; } 29761: 29761: void Clear() { cursize_ = 0; } 29761: 29761: FSAllocationPtr Release() { 29761: cursize_ = 0; 29761: capacity_ = 0; 29761: bufstart_ = nullptr; 29761: return std::move(buf_); 29761: } 29761: 29761: void Alignment(size_t alignment) { 29761: 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: alignment > 0 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "alignment > 0" 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: (alignment & (alignment - 1)) == 0 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "(alignment & (alignment - 1)) == 0" 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: alignment_ = alignment; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: void SetBuffer(Slice& result, FSAllocationPtr new_buf) { 29761: alignment_ = 1; 29761: capacity_ = result.size(); 29761: cursize_ = result.size(); 29761: buf_ = std::move(new_buf); 29761: 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: buf_.get() != nullptr 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "buf_.get() != nullptr" 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: 29761: 29761: bufstart_ = const_cast(result.data()); 29761: } 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: void AllocateNewBuffer(size_t requested_capacity, bool copy_data = false, 29761: uint64_t copy_offset = 0, size_t copy_len = 0) { 29761: 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: alignment_ > 0 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "alignment_ > 0" 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: (alignment_ & (alignment_ - 1)) == 0 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "(alignment_ & (alignment_ - 1)) == 0" 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: 29761: copy_len = copy_len > 0 ? copy_len : cursize_; 29761: if (copy_data && requested_capacity < copy_len) { 29761: 29761: 29761: return; 29761: } 29761: 29761: size_t new_capacity = Roundup(requested_capacity, alignment_); 29761: char* new_buf = new char[new_capacity + alignment_]; 29761: char* new_bufstart = reinterpret_cast( 29761: (reinterpret_cast(new_buf) + (alignment_ - 1)) & 29761: ~static_cast(alignment_ - 1)); 29761: 29761: if (copy_data) { 29761: 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_ 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_" 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: memcpy(new_bufstart, bufstart_ + copy_offset, copy_len); 29761: cursize_ = copy_len; 29761: } else { 29761: cursize_ = 0; 29761: } 29761: 29761: bufstart_ = new_bufstart; 29761: capacity_ = new_capacity; 29761: 29761: 29761: buf_ = std::unique_ptr>( 29761: static_cast(new_buf), 29761: [](void* p) { delete[] static_cast(p); }); 29761: } 29761: # 189 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: size_t Append(const char* src, size_t append_size) { 29761: size_t buffer_remaining = capacity_ - cursize_; 29761: size_t to_copy = std::min(append_size, buffer_remaining); 29761: 29761: if (to_copy > 0) { 29761: memcpy(bufstart_ + cursize_, src, to_copy); 29761: cursize_ += to_copy; 29761: } 29761: return to_copy; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t Read(char* dest, size_t offset, size_t read_size) const { 29761: 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: offset < cursize_ 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "offset < cursize_" 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: 29761: size_t to_read = 0; 29761: if (offset < cursize_) { 29761: to_read = std::min(cursize_ - offset, read_size); 29761: } 29761: if (to_read > 0) { 29761: memcpy(dest, bufstart_ + offset, to_read); 29761: } 29761: return to_read; 29761: } 29761: 29761: 29761: void PadToAlignmentWith(int padding) { 29761: size_t total_size = Roundup(cursize_, alignment_); 29761: size_t pad_size = total_size - cursize_; 29761: 29761: if (pad_size > 0) { 29761: 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: (pad_size + cursize_) <= capacity_ 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "(pad_size + cursize_) <= capacity_" 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: memset(bufstart_ + cursize_, padding, pad_size); 29761: cursize_ += pad_size; 29761: } 29761: } 29761: 29761: void PadWith(size_t pad_size, int padding) { 29761: 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: (pad_size + cursize_) <= capacity_ 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "(pad_size + cursize_) <= capacity_" 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: memset(bufstart_ + cursize_, padding, pad_size); 29761: cursize_ += pad_size; 29761: } 29761: 29761: 29761: void RefitTail(size_t tail_offset, size_t tail_size) { 29761: if (tail_size > 0) { 29761: memmove(bufstart_, bufstart_ + tail_offset, tail_size); 29761: } 29761: cursize_ = tail_size; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: char* Destination() { return bufstart_ + cursize_; } 29761: 29761: void Size(size_t cursize) { cursize_ = cursize; } 29761: }; 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29761: 29761: namespace rocksdb { 29761: class Statistics; 29761: class HistogramImpl; 29761: class SystemClock; 29761: 29761: using AlignedBuf = FSAllocationPtr; 29761: 29761: 29761: FSReadRequest Align(const FSReadRequest& r, size_t alignment); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool TryMerge(FSReadRequest* dest, const FSReadRequest& src); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class RandomAccessFileReader { 29761: private: 29761: void NotifyOnFileReadFinish( 29761: uint64_t offset, size_t length, 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const Status& status) const { 29761: FileOperationInfo info(FileOperationType::kRead, file_name_, start_ts, 29761: finish_ts, status, file_temperature_); 29761: info.offset = offset; 29761: info.length = length; 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileReadFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: 29761: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 29761: const std::string& file_path, size_t length, 29761: uint64_t offset) const { 29761: if (listeners_.empty()) { 29761: return; 29761: } 29761: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnIOError(io_error_info); 29761: } 29761: io_status.PermitUncheckedError(); 29761: } 29761: 29761: 29761: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 29761: 29761: FSRandomAccessFilePtr file_; 29761: std::string file_name_; 29761: SystemClock* clock_; 29761: Statistics* stats_; 29761: uint32_t hist_type_; 29761: HistogramImpl* file_read_hist_; 29761: RateLimiter* rate_limiter_; 29761: std::vector> listeners_; 29761: const Temperature file_temperature_; 29761: const bool is_last_level_; 29761: 29761: struct ReadAsyncInfo { 29761: ReadAsyncInfo(std::function cb, void* cb_arg, 29761: uint64_t start_time) 29761: : cb_(cb), 29761: cb_arg_(cb_arg), 29761: start_time_(start_time), 29761: user_scratch_(nullptr), 29761: user_aligned_buf_(nullptr), 29761: user_offset_(0), 29761: user_len_(0), 29761: is_aligned_(false) {} 29761: 29761: std::function cb_; 29761: void* cb_arg_; 29761: uint64_t start_time_; 29761: FileOperationInfo::StartTimePoint fs_start_ts_; 29761: 29761: char* user_scratch_; 29761: AlignedBuf* user_aligned_buf_; 29761: uint64_t user_offset_; 29761: size_t user_len_; 29761: Slice user_result_; 29761: 29761: AlignedBuffer buf_; 29761: bool is_aligned_; 29761: }; 29761: 29761: public: 29761: explicit RandomAccessFileReader( 29761: std::unique_ptr&& raf, const std::string& _file_name, 29761: SystemClock* clock = nullptr, 29761: const std::shared_ptr& io_tracer = nullptr, 29761: Statistics* stats = nullptr, 29761: uint32_t hist_type = Histograms::HISTOGRAM_ENUM_MAX, 29761: HistogramImpl* file_read_hist = nullptr, 29761: RateLimiter* rate_limiter = nullptr, 29761: const std::vector>& listeners = {}, 29761: Temperature file_temperature = Temperature::kUnknown, 29761: bool is_last_level = false) 29761: : file_(std::move(raf), io_tracer, _file_name), 29761: file_name_(std::move(_file_name)), 29761: clock_(clock), 29761: stats_(stats), 29761: hist_type_(hist_type), 29761: file_read_hist_(file_read_hist), 29761: rate_limiter_(rate_limiter), 29761: listeners_(), 29761: file_temperature_(file_temperature), 29761: is_last_level_(is_last_level) { 29761: std::for_each(listeners.begin(), listeners.end(), 29761: [this](const std::shared_ptr& e) { 29761: if (e->ShouldBeNotifiedOnFileIO()) { 29761: listeners_.emplace_back(e); 29761: } 29761: }); 29761: } 29761: 29761: static IOStatus Create(const std::shared_ptr& fs, 29761: const std::string& fname, const FileOptions& file_opts, 29761: std::unique_ptr* reader, 29761: IODebugContext* dbg); 29761: RandomAccessFileReader(const RandomAccessFileReader&) = delete; 29761: RandomAccessFileReader& operator=(const RandomAccessFileReader&) = delete; 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 29761: IOStatus Read(const IOOptions& opts, uint64_t offset, size_t n, Slice* result, 29761: char* scratch, AlignedBuf* aligned_buf) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: IOStatus MultiRead(const IOOptions& opts, FSReadRequest* reqs, 29761: size_t num_reqs, AlignedBuf* aligned_buf) const; 29761: 29761: IOStatus Prefetch(const IOOptions& opts, uint64_t offset, size_t n) const { 29761: return file_->Prefetch(offset, n, opts, nullptr); 29761: } 29761: 29761: FSRandomAccessFile* file() { return file_.get(); } 29761: 29761: const std::string& file_name() const { return file_name_; } 29761: 29761: bool use_direct_io() const { return file_->use_direct_io(); } 29761: 29761: IOStatus PrepareIOOptions(const ReadOptions& ro, IOOptions& opts) const; 29761: 29761: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29761: std::function cb, 29761: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29761: AlignedBuf* aligned_buf); 29761: 29761: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 29761: }; 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 1 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/options/db_options.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: class SystemClock; 29761: 29761: struct ImmutableDBOptions { 29761: static const char* kName() { return "ImmutableDBOptions"; } 29761: ImmutableDBOptions(); 29761: explicit ImmutableDBOptions(const DBOptions& options); 29761: 29761: void Dump(Logger* log) const; 29761: 29761: bool create_if_missing; 29761: bool create_missing_column_families; 29761: bool error_if_exists; 29761: bool paranoid_checks; 29761: bool flush_verify_memtable_count; 29761: bool compaction_verify_record_count; 29761: bool track_and_verify_wals_in_manifest; 29761: bool verify_sst_unique_id_in_manifest; 29761: Env* env; 29761: std::shared_ptr rate_limiter; 29761: std::shared_ptr sst_file_manager; 29761: std::shared_ptr info_log; 29761: InfoLogLevel info_log_level; 29761: int max_file_opening_threads; 29761: std::shared_ptr statistics; 29761: bool use_fsync; 29761: std::vector db_paths; 29761: std::string db_log_dir; 29761: 29761: 29761: 29761: std::string wal_dir; 29761: size_t max_log_file_size; 29761: size_t log_file_time_to_roll; 29761: size_t keep_log_file_num; 29761: size_t recycle_log_file_num; 29761: uint64_t max_manifest_file_size; 29761: int table_cache_numshardbits; 29761: uint64_t WAL_ttl_seconds; 29761: uint64_t WAL_size_limit_MB; 29761: uint64_t max_write_batch_group_size_bytes; 29761: size_t manifest_preallocation_size; 29761: bool allow_mmap_reads; 29761: bool allow_mmap_writes; 29761: bool use_direct_reads; 29761: bool use_direct_io_for_flush_and_compaction; 29761: bool allow_fallocate; 29761: bool is_fd_close_on_exec; 29761: bool advise_random_on_open; 29761: size_t db_write_buffer_size; 29761: std::shared_ptr write_buffer_manager; 29761: size_t random_access_max_buffer_size; 29761: bool use_adaptive_mutex; 29761: std::vector> listeners; 29761: bool enable_thread_tracking; 29761: bool enable_pipelined_write; 29761: bool unordered_write; 29761: bool allow_concurrent_memtable_write; 29761: bool enable_write_thread_adaptive_yield; 29761: uint64_t write_thread_max_yield_usec; 29761: uint64_t write_thread_slow_yield_usec; 29761: bool skip_stats_update_on_db_open; 29761: bool skip_checking_sst_file_sizes_on_db_open; 29761: WALRecoveryMode wal_recovery_mode; 29761: bool allow_2pc; 29761: std::shared_ptr row_cache; 29761: WalFilter* wal_filter; 29761: bool fail_if_options_file_error; 29761: bool dump_malloc_stats; 29761: bool avoid_flush_during_recovery; 29761: bool allow_ingest_behind; 29761: bool two_write_queues; 29761: bool manual_wal_flush; 29761: CompressionType wal_compression; 29761: bool background_close_inactive_wals; 29761: bool atomic_flush; 29761: bool avoid_unnecessary_blocking_io; 29761: bool prefix_seek_opt_in_only; 29761: bool persist_stats_to_disk; 29761: bool write_dbid_to_manifest; 29761: bool write_identity_file; 29761: size_t log_readahead_size; 29761: std::shared_ptr file_checksum_gen_factory; 29761: bool best_efforts_recovery; 29761: int max_bgerror_resume_count; 29761: uint64_t bgerror_resume_retry_interval; 29761: bool allow_data_in_errors; 29761: std::string db_host_id; 29761: FileTypeSet checksum_handoff_file_types; 29761: CacheTier lowest_used_cache_tier; 29761: std::shared_ptr compaction_service; 29761: bool enforce_single_del_contracts; 29761: uint64_t follower_refresh_catchup_period_ms; 29761: uint64_t follower_catchup_retry_count; 29761: uint64_t follower_catchup_retry_wait_ms; 29761: Temperature metadata_write_temperature; 29761: Temperature wal_write_temperature; 29761: 29761: 29761: 29761: std::shared_ptr fs; 29761: SystemClock* clock; 29761: Statistics* stats; 29761: Logger* logger; 29761: 29761: 29761: bool IsWalDirSameAsDBPath() const; 29761: bool IsWalDirSameAsDBPath(const std::string& path) const; 29761: const std::string& GetWalDir() const; 29761: const std::string& GetWalDir(const std::string& path) const; 29761: }; 29761: 29761: struct MutableDBOptions { 29761: static const char* kName() { return "MutableDBOptions"; } 29761: MutableDBOptions(); 29761: explicit MutableDBOptions(const DBOptions& options); 29761: 29761: void Dump(Logger* log) const; 29761: 29761: int max_background_jobs; 29761: int max_background_compactions; 29761: uint32_t max_subcompactions; 29761: bool avoid_flush_during_shutdown; 29761: size_t writable_file_max_buffer_size; 29761: uint64_t delayed_write_rate; 29761: uint64_t max_total_wal_size; 29761: uint64_t delete_obsolete_files_period_micros; 29761: unsigned int stats_dump_period_sec; 29761: unsigned int stats_persist_period_sec; 29761: size_t stats_history_buffer_size; 29761: int max_open_files; 29761: uint64_t bytes_per_sync; 29761: uint64_t wal_bytes_per_sync; 29761: bool strict_bytes_per_sync; 29761: size_t compaction_readahead_size; 29761: int max_background_flushes; 29761: std::string daily_offpeak_time_utc; 29761: }; 29761: 29761: Status GetStringFromMutableDBOptions(const ConfigOptions& config_options, 29761: const MutableDBOptions& mutable_opts, 29761: std::string* opt_string); 29761: 29761: Status GetMutableDBOptionsFromStrings( 29761: const MutableDBOptions& base_options, 29761: const std::unordered_map& options_map, 29761: MutableDBOptions* new_options); 29761: 29761: bool MutableDBOptionsAreEqual(const MutableDBOptions& this_options, 29761: const MutableDBOptions& that_options); 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Env; 29761: class Directory; 29761: class SystemClock; 29761: class WritableFileWriter; 29761: 29761: 29761: 29761: 29761: constexpr char kFilePathSeparator = '/'; 29761: 29761: 29761: 29761: 29761: 29761: std::string LogFileName(const std::string& dbname, uint64_t number); 29761: 29761: std::string LogFileName(uint64_t number); 29761: 29761: std::string BlobFileName(uint64_t number); 29761: 29761: std::string BlobFileName(const std::string& bdirname, uint64_t number); 29761: 29761: std::string BlobFileName(const std::string& dbname, const std::string& blob_dir, 29761: uint64_t number); 29761: 29761: std::string ArchivalDirectory(const std::string& dbname); 29761: 29761: 29761: 29761: std::string ArchivedLogFileName(const std::string& dbname, uint64_t num); 29761: 29761: std::string MakeTableFileName(const std::string& name, uint64_t number); 29761: 29761: std::string MakeTableFileName(uint64_t number); 29761: 29761: 29761: 29761: std::string Rocks2LevelTableFileName(const std::string& fullname); 29761: 29761: 29761: 29761: uint64_t TableFileNameToNumber(const std::string& name); 29761: 29761: 29761: 29761: 29761: std::string TableFileName(const std::vector& db_paths, uint64_t number, 29761: uint32_t path_id); 29761: 29761: 29761: const size_t kFormatFileNumberBufSize = 38; 29761: 29761: void FormatFileNumber(uint64_t number, uint32_t path_id, char* out_buf, 29761: size_t out_buf_size); 29761: 29761: 29761: 29761: 29761: std::string DescriptorFileName(const std::string& dbname, uint64_t number); 29761: 29761: std::string DescriptorFileName(uint64_t number); 29761: 29761: extern const std::string kCurrentFileName; 29761: 29761: 29761: 29761: 29761: std::string CurrentFileName(const std::string& dbname); 29761: 29761: 29761: 29761: std::string LockFileName(const std::string& dbname); 29761: 29761: 29761: 29761: std::string TempFileName(const std::string& dbname, uint64_t number); 29761: 29761: 29761: struct InfoLogPrefix { 29761: char buf[260]; 29761: Slice prefix; 29761: 29761: explicit InfoLogPrefix(bool has_log_dir, const std::string& db_absolute_path); 29761: 29761: explicit InfoLogPrefix(); 29761: }; 29761: 29761: 29761: std::string InfoLogFileName(const std::string& dbname, 29761: const std::string& db_path = "", 29761: const std::string& log_dir = ""); 29761: 29761: 29761: std::string OldInfoLogFileName(const std::string& dbname, uint64_t ts, 29761: const std::string& db_path = "", 29761: const std::string& log_dir = ""); 29761: 29761: extern const std::string kOptionsFileNamePrefix; 29761: extern const std::string kTempFileNameSuffix; 29761: 29761: 29761: 29761: std::string OptionsFileName(const std::string& dbname, uint64_t file_num); 29761: std::string OptionsFileName(uint64_t file_num); 29761: 29761: 29761: 29761: std::string TempOptionsFileName(const std::string& dbname, uint64_t file_num); 29761: 29761: 29761: 29761: std::string MetaDatabaseName(const std::string& dbname, uint64_t number); 29761: 29761: 29761: 29761: 29761: std::string IdentityFileName(const std::string& dbname); 29761: 29761: 29761: 29761: 29761: 29761: bool ParseFileName(const std::string& filename, uint64_t* number, 29761: const Slice& info_log_name_prefix, FileType* type, 29761: WalFileType* log_type = nullptr); 29761: 29761: bool ParseFileName(const std::string& filename, uint64_t* number, 29761: FileType* type, WalFileType* log_type = nullptr); 29761: 29761: 29761: 29761: 29761: 29761: IOStatus SetCurrentFile(const WriteOptions& write_options, FileSystem* fs, 29761: const std::string& dbname, uint64_t descriptor_number, 29761: Temperature temp, 29761: FSDirectory* dir_contains_current_file); 29761: 29761: 29761: Status SetIdentityFile(const WriteOptions& write_options, Env* env, 29761: const std::string& dbname, Temperature temp, 29761: const std::string& db_id = {}); 29761: 29761: 29761: IOStatus SyncManifest(const ImmutableDBOptions* db_options, 29761: const WriteOptions& write_options, 29761: WritableFileWriter* file); 29761: 29761: 29761: 29761: 29761: 29761: Status GetInfoLogFiles(const std::shared_ptr& fs, 29761: const std::string& db_log_dir, const std::string& dbname, 29761: std::string* parent_dir, 29761: std::vector* file_names); 29761: 29761: std::string NormalizePath(const std::string& path); 29761: } 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 2 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 29761: namespace rocksdb { 29761: 29761: 29761: IOStatus CopyFile(FileSystem* fs, const std::string& source, 29761: Temperature src_temp_hint, 29761: std::unique_ptr& dest_writer, 29761: uint64_t size, bool use_fsync, 29761: const std::shared_ptr& io_tracer); 29761: IOStatus CopyFile(FileSystem* fs, const std::string& source, 29761: Temperature src_temp_hint, const std::string& destination, 29761: Temperature dst_temp, uint64_t size, bool use_fsync, 29761: const std::shared_ptr& io_tracer); 29761: inline IOStatus CopyFile(const std::shared_ptr& fs, 29761: const std::string& source, Temperature src_temp_hint, 29761: const std::string& destination, Temperature dst_temp, 29761: uint64_t size, bool use_fsync, 29761: const std::shared_ptr& io_tracer) { 29761: return CopyFile(fs.get(), source, src_temp_hint, destination, dst_temp, size, 29761: use_fsync, io_tracer); 29761: } 29761: IOStatus CreateFile(FileSystem* fs, const std::string& destination, 29761: const std::string& contents, bool use_fsync); 29761: 29761: inline IOStatus CreateFile(const std::shared_ptr& fs, 29761: const std::string& destination, 29761: const std::string& contents, bool use_fsync) { 29761: return CreateFile(fs.get(), destination, contents, use_fsync); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status DeleteDBFile(const ImmutableDBOptions* db_options, 29761: const std::string& fname, const std::string& path_to_sync, 29761: const bool force_bg, const bool force_fg); 29761: 29761: 29761: 29761: 29761: 29761: Status DeleteUnaccountedDBFile(const ImmutableDBOptions* db_options, 29761: const std::string& fname, 29761: const std::string& dir_to_sync, 29761: const bool force_bg, const bool force_fg, 29761: std::optional bucket); 29761: 29761: 29761: IOStatus GenerateOneFileChecksum( 29761: FileSystem* fs, const std::string& file_path, 29761: FileChecksumGenFactory* checksum_factory, 29761: const std::string& requested_checksum_func_name, std::string* file_checksum, 29761: std::string* file_checksum_func_name, 29761: size_t verify_checksums_readahead_size, bool allow_mmap_reads, 29761: std::shared_ptr& io_tracer, RateLimiter* rate_limiter, 29761: const ReadOptions& read_options, Statistics* stats, SystemClock* clock); 29761: 29761: inline IOStatus PrepareIOFromReadOptions(const ReadOptions& ro, 29761: SystemClock* clock, IOOptions& opts) { 29761: if (ro.deadline.count()) { 29761: std::chrono::microseconds now = 29761: std::chrono::microseconds(clock->NowMicros()); 29761: 29761: 29761: if (now >= ro.deadline) { 29761: return IOStatus::TimedOut("Deadline exceeded"); 29761: } 29761: opts.timeout = ro.deadline - now; 29761: } 29761: 29761: if (ro.io_timeout.count() && 29761: (!opts.timeout.count() || ro.io_timeout < opts.timeout)) { 29761: opts.timeout = ro.io_timeout; 29761: } 29761: 29761: opts.rate_limiter_priority = ro.rate_limiter_priority; 29761: opts.io_activity = ro.io_activity; 29761: 29761: return IOStatus::OK(); 29761: } 29761: 29761: inline IOStatus PrepareIOFromWriteOptions(const WriteOptions& wo, 29761: IOOptions& opts) { 29761: opts.rate_limiter_priority = wo.rate_limiter_priority; 29761: opts.io_activity = wo.io_activity; 29761: 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: Status DestroyDir(Env* env, const std::string& dir); 29761: 29761: inline bool CheckFSFeatureSupport(FileSystem* fs, FSSupportedOps feat) { 29761: int64_t supported_ops = 0; 29761: fs->SupportedOps(supported_ops); 29761: if (supported_ops & (1ULL << feat)) { 29761: return true; 29761: } 29761: return false; 29761: } 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 2 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: namespace rocksdb { 29761: # 39 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: template 29761: class autovector { 29761: public: 29761: 29761: using value_type = T; 29761: using difference_type = typename std::vector::difference_type; 29761: using size_type = typename std::vector::size_type; 29761: using reference = value_type&; 29761: using const_reference = const value_type&; 29761: using pointer = value_type*; 29761: using const_pointer = const value_type*; 29761: 29761: 29761: template 29761: class iterator_impl { 29761: public: 29761: 29761: using self_type = iterator_impl; 29761: using value_type = TValueType; 29761: using reference = TValueType&; 29761: using pointer = TValueType*; 29761: using difference_type = typename TAutoVector::difference_type; 29761: using iterator_category = std::random_access_iterator_tag; 29761: 29761: iterator_impl(TAutoVector* vect, size_t index) 29761: : vect_(vect), index_(index){} 29761: iterator_impl(const iterator_impl&) = default; 29761: ~iterator_impl() {} 29761: iterator_impl& operator=(const iterator_impl&) = default; 29761: 29761: 29761: 29761: self_type& operator++() { 29761: ++index_; 29761: return *this; 29761: } 29761: 29761: 29761: self_type operator++(int) { 29761: auto old = *this; 29761: ++index_; 29761: return old; 29761: } 29761: 29761: 29761: self_type& operator--() { 29761: --index_; 29761: return *this; 29761: } 29761: 29761: 29761: self_type operator--(int) { 29761: auto old = *this; 29761: --index_; 29761: return old; 29761: } 29761: 29761: self_type operator-(difference_type len) const { 29761: return self_type(vect_, index_ - len); 29761: } 29761: 29761: difference_type operator-(const self_type& other) const { 29761: 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ - other.index_; 29761: } 29761: 29761: self_type operator+(difference_type len) const { 29761: return self_type(vect_, index_ + len); 29761: } 29761: 29761: self_type& operator+=(difference_type len) { 29761: index_ += len; 29761: return *this; 29761: } 29761: 29761: self_type& operator-=(difference_type len) { 29761: index_ -= len; 29761: return *this; 29761: } 29761: 29761: 29761: reference operator*() const { 29761: 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_->size() >= index_ 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_->size() >= index_" 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return (*vect_)[index_]; 29761: } 29761: 29761: pointer operator->() const { 29761: 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_->size() >= index_ 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_->size() >= index_" 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return &(*vect_)[index_]; 29761: } 29761: 29761: reference operator[](difference_type len) const { return *(*this + len); } 29761: 29761: 29761: bool operator==(const self_type& other) const { 29761: 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ == other.index_; 29761: } 29761: 29761: bool operator!=(const self_type& other) const { return !(*this == other); } 29761: 29761: bool operator>(const self_type& other) const { 29761: 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ > other.index_; 29761: } 29761: 29761: bool operator<(const self_type& other) const { 29761: 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ < other.index_; 29761: } 29761: 29761: bool operator>=(const self_type& other) const { 29761: 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ >= other.index_; 29761: } 29761: 29761: bool operator<=(const self_type& other) const { 29761: 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ <= other.index_; 29761: } 29761: 29761: private: 29761: TAutoVector* vect_ = nullptr; 29761: size_t index_ = 0; 29761: }; 29761: 29761: using iterator = iterator_impl; 29761: using const_iterator = iterator_impl; 29761: using reverse_iterator = std::reverse_iterator; 29761: using const_reverse_iterator = std::reverse_iterator; 29761: 29761: autovector() : values_(reinterpret_cast(buf_)) {} 29761: 29761: autovector(std::initializer_list init_list) 29761: : values_(reinterpret_cast(buf_)) { 29761: for (const T& item : init_list) { 29761: push_back(item); 29761: } 29761: } 29761: 29761: ~autovector() { clear(); } 29761: 29761: 29761: 29761: bool only_in_stack() const { 29761: 29761: return vect_.capacity() == 0; 29761: } 29761: 29761: size_type size() const { return num_stack_items_ + vect_.size(); } 29761: 29761: 29761: 29761: void resize(size_type n) { 29761: if (n > kSize) { 29761: vect_.resize(n - kSize); 29761: while (num_stack_items_ < kSize) { 29761: new ((void*)(&values_[num_stack_items_++])) value_type(); 29761: } 29761: num_stack_items_ = kSize; 29761: } else { 29761: vect_.clear(); 29761: while (num_stack_items_ < n) { 29761: new ((void*)(&values_[num_stack_items_++])) value_type(); 29761: } 29761: while (num_stack_items_ > n) { 29761: values_[--num_stack_items_].~value_type(); 29761: } 29761: } 29761: } 29761: 29761: bool empty() const { return size() == 0; } 29761: 29761: size_type capacity() const { return kSize + vect_.capacity(); } 29761: 29761: void reserve(size_t cap) { 29761: if (cap > kSize) { 29761: vect_.reserve(cap - kSize); 29761: } 29761: 29761: 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: cap <= capacity() 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "cap <= capacity()" 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: } 29761: 29761: const_reference operator[](size_type n) const { 29761: 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: n < size() 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "n < size()" 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: if (n < kSize) { 29761: return values_[n]; 29761: } 29761: return vect_[n - kSize]; 29761: } 29761: 29761: reference operator[](size_type n) { 29761: 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: n < size() 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "n < size()" 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: if (n < kSize) { 29761: return values_[n]; 29761: } 29761: return vect_[n - kSize]; 29761: } 29761: 29761: const_reference at(size_type n) const { 29761: 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: n < size() 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "n < size()" 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return (*this)[n]; 29761: } 29761: 29761: reference at(size_type n) { 29761: 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: n < size() 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "n < size()" 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return (*this)[n]; 29761: } 29761: 29761: reference front() { 29761: 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: !empty() 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "!empty()" 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return *begin(); 29761: } 29761: 29761: const_reference front() const { 29761: 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: !empty() 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "!empty()" 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return *begin(); 29761: } 29761: 29761: reference back() { 29761: 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: !empty() 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "!empty()" 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return *(end() - 1); 29761: } 29761: 29761: const_reference back() const { 29761: 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: !empty() 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "!empty()" 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return *(end() - 1); 29761: } 29761: 29761: 29761: void push_back(T&& item) { 29761: if (num_stack_items_ < kSize) { 29761: new ((void*)(&values_[num_stack_items_])) value_type(); 29761: values_[num_stack_items_++] = std::move(item); 29761: } else { 29761: vect_.push_back(item); 29761: } 29761: } 29761: 29761: void push_back(const T& item) { 29761: if (num_stack_items_ < kSize) { 29761: new ((void*)(&values_[num_stack_items_])) value_type(); 29761: values_[num_stack_items_++] = item; 29761: } else { 29761: vect_.push_back(item); 29761: } 29761: } 29761: 29761: template 29761: # 298 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: void emplace_back(Args&&... args) { 29761: if (num_stack_items_ < kSize) { 29761: new ((void*)(&values_[num_stack_items_++])) 29761: value_type(std::forward(args)...); 29761: } else { 29761: vect_.emplace_back(std::forward(args)...); 29761: } 29761: } 29761: 29761: 29761: void pop_back() { 29761: 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: !empty() 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "!empty()" 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: if (!vect_.empty()) { 29761: vect_.pop_back(); 29761: } else { 29761: values_[--num_stack_items_].~value_type(); 29761: } 29761: } 29761: 29761: void clear() { 29761: while (num_stack_items_ > 0) { 29761: values_[--num_stack_items_].~value_type(); 29761: } 29761: vect_.clear(); 29761: } 29761: 29761: 29761: autovector& assign(const autovector& other); 29761: 29761: autovector(const autovector& other) { assign(other); } 29761: 29761: autovector& operator=(const autovector& other) { return assign(other); } 29761: 29761: autovector(autovector&& other) noexcept { *this = std::move(other); } 29761: autovector& operator=(autovector&& other); 29761: 29761: 29761: iterator begin() { return iterator(this, 0); } 29761: 29761: const_iterator begin() const { return const_iterator(this, 0); } 29761: 29761: iterator end() { return iterator(this, this->size()); } 29761: 29761: const_iterator end() const { return const_iterator(this, this->size()); } 29761: 29761: reverse_iterator rbegin() { return reverse_iterator(end()); } 29761: 29761: const_reverse_iterator rbegin() const { 29761: return const_reverse_iterator(end()); 29761: } 29761: 29761: reverse_iterator rend() { return reverse_iterator(begin()); } 29761: 29761: const_reverse_iterator rend() const { 29761: return const_reverse_iterator(begin()); 29761: } 29761: 29761: private: 29761: size_type num_stack_items_ = 0; 29761: alignas(alignof( 29761: value_type)) char buf_[kSize * 29761: sizeof(value_type)]; 29761: pointer values_; 29761: 29761: std::vector vect_; 29761: }; 29761: 29761: template 29761: autovector& autovector::assign( 29761: const autovector& other) { 29761: values_ = reinterpret_cast(buf_); 29761: 29761: vect_.assign(other.vect_.begin(), other.vect_.end()); 29761: 29761: 29761: num_stack_items_ = other.num_stack_items_; 29761: for (size_t i = 0; i < num_stack_items_; ++i) { 29761: new ((void*)(&values_[i])) value_type(); 29761: } 29761: std::copy(other.values_, other.values_ + num_stack_items_, values_); 29761: 29761: return *this; 29761: } 29761: 29761: template 29761: autovector& autovector::operator=( 29761: autovector&& other) { 29761: values_ = reinterpret_cast(buf_); 29761: vect_ = std::move(other.vect_); 29761: size_t n = other.num_stack_items_; 29761: num_stack_items_ = n; 29761: other.num_stack_items_ = 0; 29761: for (size_t i = 0; i < n; ++i) { 29761: new ((void*)(&values_[i])) value_type(); 29761: values_[i] = std::move(other.values_[i]); 29761: } 29761: return *this; 29761: } 29761: 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: struct IOOptions; 29761: class RandomAccessFileReader; 29761: 29761: struct ReadaheadParams { 29761: ReadaheadParams() {} 29761: 29761: 29761: size_t initial_readahead_size = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t max_readahead_size = 0; 29761: 29761: 29761: 29761: bool implicit_auto_readahead = false; 29761: 29761: 29761: uint64_t num_file_reads = 0; 29761: uint64_t num_file_reads_for_auto_readahead = 0; 29761: 29761: 29761: 29761: size_t num_buffers = 1; 29761: }; 29761: 29761: struct BufferInfo { 29761: void ClearBuffer() { 29761: buffer_.Clear(); 29761: initial_end_offset_ = 0; 29761: async_req_len_ = 0; 29761: } 29761: 29761: AlignedBuffer buffer_; 29761: 29761: uint64_t offset_ = 0; 29761: 29761: 29761: 29761: size_t async_req_len_ = 0; 29761: 29761: 29761: 29761: bool async_read_in_progress_ = false; 29761: 29761: 29761: 29761: void* io_handle_ = nullptr; 29761: 29761: IOHandleDeleter del_fn_ = nullptr; 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: uint64_t initial_end_offset_ = 0; 29761: 29761: bool IsDataBlockInBuffer(uint64_t offset, size_t length) { 29761: 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: async_read_in_progress_ == false 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "async_read_in_progress_ == false" 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: return (offset >= offset_ && 29761: offset + length <= offset_ + buffer_.CurrentSize()); 29761: } 29761: 29761: bool IsOffsetInBuffer(uint64_t offset) { 29761: 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: async_read_in_progress_ == false 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "async_read_in_progress_ == false" 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: return (offset >= offset_ && offset < offset_ + buffer_.CurrentSize()); 29761: } 29761: 29761: bool DoesBufferContainData() { 29761: 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: async_read_in_progress_ == false 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "async_read_in_progress_ == false" 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: return buffer_.CurrentSize() > 0; 29761: } 29761: 29761: bool IsBufferOutdated(uint64_t offset) { 29761: return (!async_read_in_progress_ && DoesBufferContainData() && 29761: offset >= offset_ + buffer_.CurrentSize()); 29761: } 29761: 29761: bool IsBufferOutdatedWithAsyncProgress(uint64_t offset) { 29761: return (async_read_in_progress_ && io_handle_ != nullptr && 29761: offset >= offset_ + async_req_len_); 29761: } 29761: 29761: bool IsOffsetInBufferWithAsyncProgress(uint64_t offset) { 29761: return (async_read_in_progress_ && offset >= offset_ && 29761: offset < offset_ + async_req_len_); 29761: } 29761: 29761: size_t CurrentSize() { return buffer_.CurrentSize(); } 29761: }; 29761: 29761: enum class FilePrefetchBufferUsage { 29761: kTableOpenPrefetchTail, 29761: kUserScanPrefetch, 29761: kUnknown, 29761: }; 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: class FilePrefetchBuffer { 29761: public: 29761: # 186 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: FilePrefetchBuffer( 29761: const ReadaheadParams& readahead_params = {}, bool enable = true, 29761: bool track_min_offset = false, FileSystem* fs = nullptr, 29761: SystemClock* clock = nullptr, Statistics* stats = nullptr, 29761: const std::function& cb = nullptr, 29761: FilePrefetchBufferUsage usage = FilePrefetchBufferUsage::kUnknown) 29761: : readahead_size_(readahead_params.initial_readahead_size), 29761: initial_auto_readahead_size_(readahead_params.initial_readahead_size), 29761: max_readahead_size_(readahead_params.max_readahead_size), 29761: min_offset_read_(std::numeric_limits::max()), 29761: enable_(enable), 29761: track_min_offset_(track_min_offset), 29761: implicit_auto_readahead_(readahead_params.implicit_auto_readahead), 29761: prev_offset_(0), 29761: prev_len_(0), 29761: num_file_reads_for_auto_readahead_( 29761: readahead_params.num_file_reads_for_auto_readahead), 29761: num_file_reads_(readahead_params.num_file_reads), 29761: explicit_prefetch_submitted_(false), 29761: fs_(fs), 29761: clock_(clock), 29761: stats_(stats), 29761: usage_(usage), 29761: readaheadsize_cb_(cb), 29761: num_buffers_(readahead_params.num_buffers) { 29761: 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: (num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0) 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "(num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0)" 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: 29761: # 212 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (num_buffers_ > 1 || 29761: (fs_ != nullptr && 29761: CheckFSFeatureSupport(fs_, FSSupportedOps::kFSBuffer))) { 29761: overlap_buf_ = new BufferInfo(); 29761: } 29761: 29761: free_bufs_.resize(num_buffers_); 29761: for (uint32_t i = 0; i < num_buffers_; i++) { 29761: free_bufs_[i] = new BufferInfo(); 29761: } 29761: } 29761: 29761: ~FilePrefetchBuffer() { 29761: 29761: if (fs_ != nullptr) { 29761: std::vector handles; 29761: for (auto& buf : bufs_) { 29761: if (buf->async_read_in_progress_ && buf->io_handle_ != nullptr) { 29761: handles.emplace_back(buf->io_handle_); 29761: } 29761: } 29761: if (!handles.empty()) { 29761: StopWatch sw(clock_, stats_, ASYNC_PREFETCH_ABORT_MICROS); 29761: Status s = fs_->AbortIO(handles); 29761: 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: s.ok() 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "s.ok()" 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: } 29761: 29761: for (auto& buf : bufs_) { 29761: if (buf->io_handle_ != nullptr) { 29761: DestroyAndClearIOHandle(buf); 29761: buf->ClearBuffer(); 29761: } 29761: buf->async_read_in_progress_ = false; 29761: } 29761: } 29761: 29761: 29761: uint64_t bytes_discarded = 0; 29761: 29761: for (auto& buf : bufs_) { 29761: if (buf->DoesBufferContainData()) { 29761: 29761: if (prev_offset_ >= buf->offset_ && 29761: prev_offset_ + prev_len_ < buf->offset_ + buf->CurrentSize()) { 29761: bytes_discarded += 29761: buf->CurrentSize() - (prev_offset_ + prev_len_ - buf->offset_); 29761: } 29761: 29761: else if (prev_offset_ < buf->offset_ && 29761: prev_offset_ + prev_len_ <= buf->offset_) { 29761: bytes_discarded += buf->CurrentSize(); 29761: } 29761: } 29761: } 29761: 29761: RecordInHistogram(stats_, PREFETCHED_BYTES_DISCARDED, bytes_discarded); 29761: 29761: for (auto& buf : bufs_) { 29761: delete buf; 29761: buf = nullptr; 29761: } 29761: 29761: for (auto& buf : free_bufs_) { 29761: delete buf; 29761: buf = nullptr; 29761: } 29761: 29761: if (overlap_buf_ != nullptr) { 29761: delete overlap_buf_; 29761: overlap_buf_ = nullptr; 29761: } 29761: } 29761: 29761: bool Enabled() const { return enable_; } 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: Status Prefetch(const IOOptions& opts, RandomAccessFileReader* reader, 29761: uint64_t offset, size_t n); 29761: # 316 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: Status PrefetchAsync(const IOOptions& opts, RandomAccessFileReader* reader, 29761: uint64_t offset, size_t n, Slice* result); 29761: # 332 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: bool TryReadFromCache(const IOOptions& opts, RandomAccessFileReader* reader, 29761: uint64_t offset, size_t n, Slice* result, Status* s, 29761: bool for_compaction = false); 29761: 29761: 29761: 29761: size_t min_offset_read() const { return min_offset_read_; } 29761: 29761: size_t GetPrefetchOffset() const { return bufs_.front()->offset_; } 29761: 29761: 29761: void UpdateReadPattern(const uint64_t& offset, const size_t& len, 29761: bool decrease_readaheadsize) { 29761: if (decrease_readaheadsize) { 29761: DecreaseReadAheadIfEligible(offset, len); 29761: } 29761: prev_offset_ = offset; 29761: prev_len_ = len; 29761: explicit_prefetch_submitted_ = false; 29761: } 29761: 29761: void GetReadaheadState(ReadaheadFileInfo::ReadaheadInfo* readahead_info) { 29761: readahead_info->readahead_size = readahead_size_; 29761: readahead_info->num_file_reads = num_file_reads_; 29761: } 29761: 29761: void DecreaseReadAheadIfEligible(uint64_t offset, size_t size, 29761: size_t value = 8 * 1024) { 29761: if (bufs_.empty()) { 29761: return; 29761: } 29761: # 374 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: size_t curr_size = bufs_.front()->async_read_in_progress_ 29761: ? bufs_.front()->async_req_len_ 29761: : bufs_.front()->CurrentSize(); 29761: if (implicit_auto_readahead_ && readahead_size_ > 0) { 29761: if ((offset + size > bufs_.front()->offset_ + curr_size) && 29761: IsBlockSequential(offset) && 29761: (num_file_reads_ + 1 > num_file_reads_for_auto_readahead_)) { 29761: readahead_size_ = 29761: std::max(initial_auto_readahead_size_, 29761: (readahead_size_ >= value ? readahead_size_ - value : 0)); 29761: } 29761: } 29761: } 29761: 29761: 29761: void PrefetchAsyncCallback(FSReadRequest& req, void* cb_arg); 29761: 29761: void TEST_GetBufferOffsetandSize( 29761: std::vector>& buffer_info) { 29761: for (size_t i = 0; i < bufs_.size(); i++) { 29761: std::get<0>(buffer_info[i]) = bufs_[i]->offset_; 29761: std::get<1>(buffer_info[i]) = bufs_[i]->async_read_in_progress_ 29761: ? bufs_[i]->async_req_len_ 29761: : bufs_[i]->CurrentSize(); 29761: std::get<2>(buffer_info[i]) = bufs_[i]->async_read_in_progress_; 29761: } 29761: } 29761: 29761: void TEST_GetOverlapBufferOffsetandSize( 29761: std::pair& buffer_info) { 29761: if (overlap_buf_ != nullptr) { 29761: buffer_info.first = overlap_buf_->offset_; 29761: buffer_info.second = overlap_buf_->CurrentSize(); 29761: } 29761: } 29761: 29761: private: 29761: 29761: 29761: 29761: void PrepareBufferForRead(BufferInfo* buf, size_t alignment, uint64_t offset, 29761: size_t roundup_len, bool refit_tail, 29761: bool use_fs_buffer, uint64_t& aligned_useful_len); 29761: 29761: void AbortOutdatedIO(uint64_t offset); 29761: 29761: void AbortAllIOs(); 29761: 29761: void ClearOutdatedData(uint64_t offset, size_t len); 29761: 29761: 29761: void PollIfNeeded(uint64_t offset, size_t len); 29761: 29761: Status PrefetchInternal(const IOOptions& opts, RandomAccessFileReader* reader, 29761: uint64_t offset, size_t length, size_t readahead_size, 29761: bool& copy_to_third_buffer); 29761: 29761: Status Read(BufferInfo* buf, const IOOptions& opts, 29761: RandomAccessFileReader* reader, uint64_t read_len, 29761: uint64_t aligned_useful_len, uint64_t start_offset, 29761: bool use_fs_buffer); 29761: 29761: Status ReadAsync(BufferInfo* buf, const IOOptions& opts, 29761: RandomAccessFileReader* reader, uint64_t read_len, 29761: uint64_t start_offset); 29761: 29761: 29761: void CopyDataToOverlapBuffer(BufferInfo* src, uint64_t& offset, 29761: size_t& length); 29761: 29761: bool IsBlockSequential(const size_t& offset) { 29761: return (prev_len_ == 0 || (prev_offset_ + prev_len_ == offset)); 29761: } 29761: 29761: 29761: void ResetValues() { 29761: num_file_reads_ = 1; 29761: readahead_size_ = initial_auto_readahead_size_; 29761: } 29761: 29761: 29761: bool IsEligibleForPrefetch(uint64_t offset, size_t n) { 29761: 29761: 29761: if (!IsBlockSequential(offset)) { 29761: UpdateReadPattern(offset, n, false ); 29761: ResetValues(); 29761: return false; 29761: } 29761: num_file_reads_++; 29761: 29761: 29761: 29761: 29761: if (explicit_prefetch_submitted_) { 29761: return true; 29761: } 29761: if (num_file_reads_ <= num_file_reads_for_auto_readahead_) { 29761: UpdateReadPattern(offset, n, false ); 29761: return false; 29761: } 29761: return true; 29761: } 29761: 29761: bool IsEligibleForFurtherPrefetching() { 29761: if (free_bufs_.empty()) { 29761: return false; 29761: } 29761: 29761: if (readahead_size_ == 0) { 29761: return false; 29761: } 29761: return true; 29761: } 29761: 29761: 29761: 29761: 29761: bool UseFSBuffer(RandomAccessFileReader* reader) { 29761: return reader->file() != nullptr && !reader->use_direct_io() && 29761: fs_ != nullptr && 29761: CheckFSFeatureSupport(fs_, FSSupportedOps::kFSBuffer) && 29761: num_buffers_ == 1; 29761: } 29761: 29761: 29761: 29761: 29761: size_t GetRequiredBufferAlignment(RandomAccessFileReader* reader) { 29761: if (UseFSBuffer(reader)) { 29761: return 1; 29761: } 29761: return reader->file()->GetRequiredBufferAlignment(); 29761: } 29761: 29761: 29761: IOStatus FSBufferDirectRead(RandomAccessFileReader* reader, BufferInfo* buf, 29761: const IOOptions& opts, uint64_t offset, size_t n, 29761: Slice& result) { 29761: FSReadRequest read_req; 29761: read_req.offset = offset; 29761: read_req.len = n; 29761: read_req.scratch = nullptr; 29761: IOStatus s = reader->MultiRead(opts, &read_req, 1, nullptr); 29761: if (!s.ok()) { 29761: return s; 29761: } 29761: s = read_req.status; 29761: if (!s.ok()) { 29761: return s; 29761: } 29761: buf->buffer_.SetBuffer(read_req.result, std::move(read_req.fs_scratch)); 29761: buf->offset_ = offset; 29761: buf->initial_end_offset_ = offset + read_req.result.size(); 29761: result = read_req.result; 29761: return s; 29761: } 29761: 29761: void DestroyAndClearIOHandle(BufferInfo* buf) { 29761: if (buf->io_handle_ != nullptr && buf->del_fn_ != nullptr) { 29761: buf->del_fn_(buf->io_handle_); 29761: buf->io_handle_ = nullptr; 29761: buf->del_fn_ = nullptr; 29761: } 29761: buf->async_read_in_progress_ = false; 29761: } 29761: 29761: void HandleOverlappingSyncData(uint64_t offset, size_t length, 29761: uint64_t& tmp_offset, size_t& tmp_length, 29761: bool& use_overlap_buffer); 29761: 29761: Status HandleOverlappingAsyncData(const IOOptions& opts, 29761: RandomAccessFileReader* reader, 29761: uint64_t offset, size_t length, 29761: size_t readahead_size, 29761: bool& copy_to_third_buffer, 29761: uint64_t& tmp_offset, size_t& tmp_length); 29761: 29761: bool TryReadFromCacheUntracked(const IOOptions& opts, 29761: RandomAccessFileReader* reader, 29761: uint64_t offset, size_t n, Slice* result, 29761: Status* s, bool for_compaction = false); 29761: 29761: void ReadAheadSizeTuning(BufferInfo* buf, bool read_curr_block, 29761: bool refit_tail, bool use_fs_buffer, 29761: uint64_t prev_buf_end_offset, size_t alignment, 29761: size_t length, size_t readahead_size, 29761: uint64_t& offset, uint64_t& end_offset, 29761: size_t& read_len, uint64_t& aligned_useful_len); 29761: 29761: void UpdateStats(bool found_in_buffer, size_t length_found) { 29761: if (found_in_buffer) { 29761: RecordTick(stats_, PREFETCH_HITS); 29761: } 29761: if (length_found > 0) { 29761: RecordTick(stats_, PREFETCH_BYTES_USEFUL, length_found); 29761: } 29761: } 29761: 29761: void UpdateReadAheadTrimmedStat(size_t initial_length, 29761: size_t updated_length) { 29761: if (initial_length != updated_length) { 29761: RecordTick(stats_, READAHEAD_TRIMMED); 29761: } 29761: } 29761: 29761: Status PrefetchRemBuffers(const IOOptions& opts, 29761: RandomAccessFileReader* reader, 29761: uint64_t end_offset1, size_t alignment, 29761: size_t readahead_size); 29761: 29761: 29761: bool IsBufferQueueEmpty() { return bufs_.empty(); } 29761: 29761: BufferInfo* GetFirstBuffer() { return bufs_.front(); } 29761: 29761: BufferInfo* GetLastBuffer() { return bufs_.back(); } 29761: 29761: size_t NumBuffersAllocated() { return bufs_.size(); } 29761: 29761: void AllocateBuffer() { 29761: 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: !free_bufs_.empty() 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "!free_bufs_.empty()" 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: BufferInfo* buf = free_bufs_.front(); 29761: free_bufs_.pop_front(); 29761: bufs_.emplace_back(buf); 29761: } 29761: 29761: void AllocateBufferIfEmpty() { 29761: if (bufs_.empty()) { 29761: AllocateBuffer(); 29761: } 29761: } 29761: 29761: void FreeFrontBuffer() { 29761: BufferInfo* buf = bufs_.front(); 29761: buf->ClearBuffer(); 29761: bufs_.pop_front(); 29761: free_bufs_.emplace_back(buf); 29761: } 29761: 29761: void FreeLastBuffer() { 29761: BufferInfo* buf = bufs_.back(); 29761: buf->ClearBuffer(); 29761: bufs_.pop_back(); 29761: free_bufs_.emplace_back(buf); 29761: } 29761: 29761: void FreeAllBuffers() { 29761: while (!bufs_.empty()) { 29761: BufferInfo* buf = bufs_.front(); 29761: buf->ClearBuffer(); 29761: bufs_.pop_front(); 29761: free_bufs_.emplace_back(buf); 29761: } 29761: } 29761: 29761: void FreeEmptyBuffers() { 29761: if (bufs_.empty()) { 29761: return; 29761: } 29761: 29761: std::deque tmp_buf; 29761: while (!bufs_.empty()) { 29761: BufferInfo* buf = bufs_.front(); 29761: bufs_.pop_front(); 29761: if (buf->async_read_in_progress_ || buf->DoesBufferContainData()) { 29761: tmp_buf.emplace_back(buf); 29761: } else { 29761: free_bufs_.emplace_back(buf); 29761: } 29761: } 29761: bufs_ = tmp_buf; 29761: } 29761: 29761: 29761: 29761: std::deque bufs_; 29761: std::deque free_bufs_; 29761: BufferInfo* overlap_buf_ = nullptr; 29761: 29761: size_t readahead_size_; 29761: size_t initial_auto_readahead_size_; 29761: 29761: 29761: size_t max_readahead_size_; 29761: 29761: 29761: size_t min_offset_read_; 29761: 29761: 29761: bool enable_; 29761: 29761: 29761: bool track_min_offset_; 29761: 29761: 29761: 29761: bool implicit_auto_readahead_; 29761: uint64_t prev_offset_; 29761: size_t prev_len_; 29761: 29761: 29761: uint64_t num_file_reads_for_auto_readahead_; 29761: uint64_t num_file_reads_; 29761: 29761: 29761: 29761: 29761: 29761: bool explicit_prefetch_submitted_; 29761: 29761: FileSystem* fs_; 29761: SystemClock* clock_; 29761: Statistics* stats_; 29761: 29761: FilePrefetchBufferUsage usage_; 29761: 29761: std::function readaheadsize_cb_; 29761: 29761: 29761: 29761: size_t num_buffers_; 29761: }; 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_allocator_impl.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: struct CustomDeleter { 29761: CustomDeleter(MemoryAllocator* a = nullptr) : allocator(a) {} 29761: 29761: void operator()(char* ptr) const { 29761: if (allocator) { 29761: allocator->Deallocate(ptr); 29761: } else { 29761: delete[] ptr; 29761: } 29761: } 29761: 29761: MemoryAllocator* allocator; 29761: }; 29761: 29761: using CacheAllocationPtr = std::unique_ptr; 29761: 29761: inline CacheAllocationPtr AllocateBlock(size_t size, 29761: MemoryAllocator* allocator) { 29761: if (allocator) { 29761: auto block = reinterpret_cast(allocator->Allocate(size)); 29761: return CacheAllocationPtr(block, allocator); 29761: } 29761: return CacheAllocationPtr(new char[size]); 29761: } 29761: 29761: inline CacheAllocationPtr AllocateAndCopyBlock(const Slice& data, 29761: MemoryAllocator* allocator) { 29761: CacheAllocationPtr cap = AllocateBlock(data.size(), allocator); 29761: std::copy_n(data.data(), data.size(), cap.get()); 29761: return cap; 29761: } 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/malloc.h" 1 3 4 29761: # 24 "/usr/include/malloc.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 25 "/usr/include/malloc.h" 2 3 4 29761: # 36 "/usr/include/malloc.h" 3 4 29761: 29761: # 36 "/usr/include/malloc.h" 3 4 29761: extern "C" { 29761: 29761: 29761: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29761: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern void *calloc (size_t __nmemb, size_t __size) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void *realloc (void *__ptr, size_t __size) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) 29761: __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: extern void free (void *__ptr) noexcept (true); 29761: 29761: 29761: extern void *memalign (size_t __alignment, size_t __size) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 29761: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29761: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: 29761: extern void *pvalloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: 29761: struct mallinfo 29761: { 29761: int arena; 29761: int ordblks; 29761: int smblks; 29761: int hblks; 29761: int hblkhd; 29761: int usmblks; 29761: int fsmblks; 29761: int uordblks; 29761: int fordblks; 29761: int keepcost; 29761: }; 29761: 29761: 29761: 29761: 29761: struct mallinfo2 29761: { 29761: size_t arena; 29761: size_t ordblks; 29761: size_t smblks; 29761: size_t hblks; 29761: size_t hblkhd; 29761: size_t usmblks; 29761: size_t fsmblks; 29761: size_t uordblks; 29761: size_t fordblks; 29761: size_t keepcost; 29761: }; 29761: 29761: 29761: extern struct mallinfo mallinfo (void) noexcept (true) __attribute__ ((__deprecated__)); 29761: 29761: 29761: extern struct mallinfo2 mallinfo2 (void) noexcept (true); 29761: # 144 "/usr/include/malloc.h" 3 4 29761: extern int mallopt (int __param, int __val) noexcept (true); 29761: 29761: 29761: 29761: extern int malloc_trim (size_t __pad) noexcept (true); 29761: 29761: 29761: 29761: extern size_t malloc_usable_size (void *__ptr) noexcept (true); 29761: 29761: 29761: extern void malloc_stats (void) noexcept (true); 29761: 29761: 29761: extern int malloc_info (int __options, FILE *__fp) noexcept (true); 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/block_based/block_type.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/table/block_based/block_type.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum class BlockType : uint8_t { 29761: kData, 29761: kFilter, 29761: kFilterPartitionIndex, 29761: kProperties, 29761: kCompressionDictionary, 29761: kRangeDeletion, 29761: kHashIndexPrefixes, 29761: kHashIndexMetadata, 29761: kMetaIndex, 29761: kIndex, 29761: 29761: kInvalid 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 8 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 2 29761: # 24 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct KillPoint { 29761: public: 29761: 29761: 29761: int rocksdb_kill_odds = 0; 29761: 29761: std::vector rocksdb_kill_exclude_prefixes; 29761: 29761: void TestKillRandom(std::string kill_point, int odds, 29761: const std::string& srcfile, int srcline); 29761: 29761: static KillPoint* GetInstance(); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: namespace rocksdb { 29761: # 74 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: class SyncPoint { 29761: public: 29761: static SyncPoint* GetInstance(); 29761: 29761: SyncPoint(const SyncPoint&) = delete; 29761: SyncPoint& operator=(const SyncPoint&) = delete; 29761: ~SyncPoint(); 29761: 29761: struct SyncPointPair { 29761: std::string predecessor; 29761: std::string successor; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: void LoadDependency(const std::vector& dependencies); 29761: 29761: 29761: 29761: 29761: 29761: void LoadDependencyAndMarkers(const std::vector& dependencies, 29761: const std::vector& markers); 29761: 29761: 29761: 29761: 29761: void SetCallBack(const std::string& point, 29761: const std::function& callback); 29761: 29761: 29761: void ClearCallBack(const std::string& point); 29761: 29761: 29761: void ClearAllCallBacks(); 29761: 29761: 29761: void EnableProcessing(); 29761: 29761: 29761: void DisableProcessing(); 29761: 29761: 29761: void ClearTrace(); 29761: 29761: 29761: 29761: 29761: void Process(const Slice& point, void* cb_arg = nullptr); 29761: 29761: 29761: 29761: template 29761: void Process(const char (&point)[kLen], void* cb_arg = nullptr) { 29761: static_assert(kLen > 0, "Must not be empty"); 29761: 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29761: (static_cast ( 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: point[kLen - 1] == '\0' 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: "point[kLen - 1] == '\\0'" 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: ; 29761: Process(Slice(point, kLen - 1), cb_arg); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct Data; 29761: 29761: private: 29761: 29761: SyncPoint(); 29761: Data* impl_; 29761: }; 29761: 29761: 29761: 29761: void SetupSyncPointsToMockDirectIO(); 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/compression_context_cache.h" 1 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/compression_context_cache.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: class ZSTDUncompressCachedData; 29761: 29761: class CompressionContextCache { 29761: public: 29761: 29761: static CompressionContextCache* Instance(); 29761: static void InitSingleton(); 29761: CompressionContextCache(const CompressionContextCache&) = delete; 29761: CompressionContextCache& operator=(const CompressionContextCache&) = delete; 29761: 29761: ZSTDUncompressCachedData GetCachedZSTDUncompressData(); 29761: void ReturnCachedZSTDUncompressData(int64_t idx); 29761: 29761: private: 29761: 29761: CompressionContextCache(); 29761: ~CompressionContextCache(); 29761: 29761: class Rep; 29761: Rep* rep_; 29761: }; 29761: 29761: } 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: 29761: std::vector StringSplit(const std::string& arg, char delim); 29761: 29761: 29761: void AppendNumberTo(std::string* str, uint64_t num); 29761: 29761: 29761: 29761: void AppendEscapedStringTo(std::string* str, const Slice& value); 29761: 29761: 29761: 29761: template 29761: inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { 29761: const char* digitChars = uppercase ? "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" 29761: : "0123456789abcdefghijklmnopqrstuvwxyz"; 29761: for (size_t i = n; i > 0; --i) { 29761: (*buf)[i - 1] = digitChars[static_cast(v % kBase)]; 29761: v /= kBase; 29761: } 29761: *buf += n; 29761: } 29761: # 52 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29761: template 29761: inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { 29761: while (n) { 29761: char c = **buf; 29761: *v *= static_cast(kBase); 29761: if (c >= '0' && (kBase >= 10 ? c <= '9' : c < '0' + kBase)) { 29761: *v += static_cast(c - '0'); 29761: } else if (kBase > 10 && c >= 'A' && c < 'A' + kBase - 10) { 29761: *v += static_cast(c - 'A' + 10); 29761: } else if (kBase > 10 && c >= 'a' && c < 'a' + kBase - 10) { 29761: *v += static_cast(c - 'a' + 10); 29761: } else { 29761: return false; 29761: } 29761: --n; 29761: ++*buf; 29761: } 29761: return true; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: std::string NumberToHumanString(int64_t num); 29761: 29761: 29761: 29761: std::string BytesToHumanString(uint64_t bytes); 29761: 29761: 29761: 29761: std::string TimeToHumanString(int unixtime); 29761: 29761: 29761: int AppendHumanMicros(uint64_t micros, char* output, int len, 29761: bool fixed_format); 29761: 29761: 29761: int AppendHumanBytes(uint64_t bytes, char* output, int len); 29761: 29761: 29761: 29761: std::string EscapeString(const Slice& value); 29761: 29761: 29761: 29761: 29761: 29761: bool ConsumeDecimalNumber(Slice* in, uint64_t* val); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool isSpecialChar(const char c); 29761: 29761: 29761: 29761: 29761: char UnescapeChar(const char c); 29761: 29761: 29761: 29761: 29761: char EscapeChar(const char c); 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29761: std::string EscapeOptionString(const std::string& raw_string); 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::string UnescapeOptionString(const std::string& escaped_string); 29761: 29761: std::string trim(const std::string& str); 29761: 29761: 29761: bool EndsWith(const std::string& string, const std::string& pattern); 29761: 29761: 29761: bool StartsWith(const std::string& string, const std::string& pattern); 29761: 29761: bool ParseBoolean(const std::string& type, const std::string& value); 29761: 29761: uint8_t ParseUint8(const std::string& value); 29761: 29761: uint32_t ParseUint32(const std::string& value); 29761: 29761: int32_t ParseInt32(const std::string& value); 29761: 29761: uint64_t ParseUint64(const std::string& value); 29761: 29761: int ParseInt(const std::string& value); 29761: 29761: int64_t ParseInt64(const std::string& value); 29761: 29761: double ParseDouble(const std::string& value); 29761: 29761: size_t ParseSizeT(const std::string& value); 29761: 29761: std::vector ParseVectorInt(const std::string& value); 29761: 29761: bool SerializeIntVector(const std::vector& vec, std::string* value); 29761: 29761: 29761: 29761: int ParseTimeStringToSeconds(const std::string& value); 29761: 29761: 29761: 29761: 29761: bool TryParseTimeRangeString(const std::string& value, int& start_time, 29761: int& end_time); 29761: 29761: extern const std::string kNullptrString; 29761: 29761: 29761: 29761: std::string errnoStr(int err); 29761: 29761: } 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: # 1 "/usr/include/snappy.h" 1 3 4 29761: # 42 "/usr/include/snappy.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 43 "/usr/include/snappy.h" 2 3 4 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/snappy-stubs-public.h" 1 3 4 29761: # 41 "/usr/include/snappy-stubs-public.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 2 3 4 29761: 29761: 29761: 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 29761: struct iovec 29761: { 29761: void *iov_base; 29761: size_t iov_len; 29761: }; 29761: # 24 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: # 41 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 52 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 86 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "preadv64") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "pwritev64") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 110 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, 29761: __off64_t __offset) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 123 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, 29761: __off64_t __offset) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 143 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t pwritev2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "pwritev64v2") 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: extern ssize_t preadv2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "preadv64v2") 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 161 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t preadv64v2 (int __fp, const struct iovec *__iovec, 29761: int __count, __off64_t __offset, 29761: int ___flags) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: 29761: 29761: extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, 29761: int __count, __off64_t __offset, 29761: int __flags) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 29761: extern "C" { 29761: 29761: 29761: extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, 29761: unsigned long int __liovcnt, 29761: const struct iovec *__rvec, 29761: unsigned long int __riovcnt, 29761: unsigned long int __flags) 29761: noexcept (true); 29761: 29761: 29761: extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, 29761: unsigned long int __liovcnt, 29761: const struct iovec *__rvec, 29761: unsigned long int __riovcnt, 29761: unsigned long int __flags) 29761: noexcept (true); 29761: # 52 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 29761: } 29761: # 180 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 29761: # 42 "/usr/include/snappy-stubs-public.h" 2 3 4 29761: # 50 "/usr/include/snappy-stubs-public.h" 3 4 29761: namespace snappy { 29761: # 61 "/usr/include/snappy-stubs-public.h" 3 4 29761: } 29761: # 48 "/usr/include/snappy.h" 2 3 4 29761: 29761: namespace snappy { 29761: class Source; 29761: class Sink; 29761: 29761: struct CompressionOptions { 29761: # 65 "/usr/include/snappy.h" 3 4 29761: int level = DefaultCompressionLevel(); 29761: 29761: constexpr CompressionOptions() = default; 29761: constexpr CompressionOptions(int compression_level) 29761: : level(compression_level) {} 29761: static constexpr int MinCompressionLevel() { return 1; } 29761: static constexpr int MaxCompressionLevel() { return 2; } 29761: static constexpr int DefaultCompressionLevel() { return 1; } 29761: }; 29761: # 82 "/usr/include/snappy.h" 3 4 29761: size_t Compress(Source* reader, Sink* writer); 29761: size_t Compress(Source* reader, Sink* writer, 29761: CompressionOptions options); 29761: # 93 "/usr/include/snappy.h" 3 4 29761: bool GetUncompressedLength(Source* source, uint32_t* result); 29761: # 104 "/usr/include/snappy.h" 3 4 29761: size_t Compress(const char* input, size_t input_length, 29761: std::string* compressed); 29761: size_t Compress(const char* input, size_t input_length, 29761: std::string* compressed, CompressionOptions options); 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 29761: std::string* compressed); 29761: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 29761: std::string* compressed, 29761: CompressionOptions options); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool Uncompress(const char* compressed, size_t compressed_length, 29761: std::string* uncompressed); 29761: 29761: 29761: 29761: 29761: bool Uncompress(Source* compressed, Sink* uncompressed); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t UncompressAsMuchAsPossible(Source* compressed, Sink* uncompressed); 29761: # 161 "/usr/include/snappy.h" 3 4 29761: void RawCompress(const char* input, size_t input_length, char* compressed, 29761: size_t* compressed_length); 29761: void RawCompress(const char* input, size_t input_length, char* compressed, 29761: size_t* compressed_length, CompressionOptions options); 29761: 29761: 29761: 29761: 29761: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 29761: char* compressed, size_t* compressed_length); 29761: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 29761: char* compressed, size_t* compressed_length, 29761: CompressionOptions options); 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool RawUncompress(const char* compressed, size_t compressed_length, 29761: char* uncompressed); 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool RawUncompress(Source* compressed, char* uncompressed); 29761: # 198 "/usr/include/snappy.h" 3 4 29761: bool RawUncompressToIOVec(const char* compressed, size_t compressed_length, 29761: const struct iovec* iov, size_t iov_cnt); 29761: # 209 "/usr/include/snappy.h" 3 4 29761: bool RawUncompressToIOVec(Source* compressed, const struct iovec* iov, 29761: size_t iov_cnt); 29761: 29761: 29761: 29761: size_t MaxCompressedLength(size_t source_bytes); 29761: 29761: 29761: 29761: 29761: 29761: bool GetUncompressedLength(const char* compressed, size_t compressed_length, 29761: size_t* result); 29761: 29761: 29761: 29761: 29761: 29761: bool IsValidCompressedBuffer(const char* compressed, 29761: size_t compressed_length); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool IsValidCompressed(Source* compressed); 29761: # 247 "/usr/include/snappy.h" 3 4 29761: static constexpr int kBlockLog = 16; 29761: static constexpr size_t kBlockSize = 1 << kBlockLog; 29761: 29761: static constexpr int kMinHashTableBits = 8; 29761: static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits; 29761: 29761: static constexpr int kMaxHashTableBits = 15; 29761: static constexpr size_t kMaxHashTableSize = 1 << kMaxHashTableBits; 29761: } 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: 29761: # 1 "/usr/include/zlib.h" 1 3 4 29761: # 34 "/usr/include/zlib.h" 3 4 29761: # 1 "/usr/include/zconf.h" 1 3 4 29761: # 254 "/usr/include/zconf.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 255 "/usr/include/zconf.h" 2 3 4 29761: typedef size_t z_size_t; 29761: # 393 "/usr/include/zconf.h" 3 4 29761: typedef unsigned char Byte; 29761: 29761: typedef unsigned int uInt; 29761: typedef unsigned long uLong; 29761: 29761: 29761: 29761: 29761: 29761: typedef Byte Bytef; 29761: 29761: typedef char charf; 29761: typedef int intf; 29761: typedef uInt uIntf; 29761: typedef uLong uLongf; 29761: 29761: 29761: typedef void const *voidpc; 29761: typedef void *voidpf; 29761: typedef void *voidp; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29761: # 421 "/usr/include/zconf.h" 2 3 4 29761: # 431 "/usr/include/zconf.h" 3 4 29761: typedef unsigned z_crc_t; 29761: # 484 "/usr/include/zconf.h" 3 4 29761: # 1 "/usr/include/unistd.h" 1 3 4 29761: # 27 "/usr/include/unistd.h" 3 4 29761: extern "C" { 29761: # 202 "/usr/include/unistd.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix_opt.h" 1 3 4 29761: # 203 "/usr/include/unistd.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 1 3 4 29761: # 22 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 2 3 4 29761: # 207 "/usr/include/unistd.h" 2 3 4 29761: # 226 "/usr/include/unistd.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 227 "/usr/include/unistd.h" 2 3 4 29761: # 274 "/usr/include/unistd.h" 3 4 29761: typedef __socklen_t socklen_t; 29761: # 287 "/usr/include/unistd.h" 3 4 29761: extern int access (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int euidaccess (const char *__name, int __type) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int eaccess (const char *__name, int __type) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int execveat (int __fd, const char *__path, char *const __argv[], 29761: char *const __envp[], int __flags) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int faccessat (int __fd, const char *__file, int __type, int __flag) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 29761: # 342 "/usr/include/unistd.h" 3 4 29761: extern __off64_t lseek (int __fd, __off64_t __offset, int __whence) noexcept (true) __asm__ ("" "lseek64") 29761: 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int close (int __fd); 29761: 29761: 29761: 29761: 29761: extern void closefrom (int __lowfd) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 404 "/usr/include/unistd.h" 3 4 29761: extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 29761: 29761: __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t pwrite (int __fd, const void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pwrite64") 29761: 29761: __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 422 "/usr/include/unistd.h" 3 4 29761: extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, 29761: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, 29761: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pipe (int __pipedes[2]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int pipe2 (int __pipedes[2], int __flags) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: # 452 "/usr/include/unistd.h" 3 4 29761: extern unsigned int alarm (unsigned int __seconds) noexcept (true); 29761: # 464 "/usr/include/unistd.h" 3 4 29761: extern unsigned int sleep (unsigned int __seconds); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int usleep (__useconds_t __useconds); 29761: # 489 "/usr/include/unistd.h" 3 4 29761: extern int pause (void); 29761: 29761: 29761: 29761: extern int chown (const char *__file, __uid_t __owner, __gid_t __group) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern int fchown (int __fd, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fchownat (int __fd, const char *__file, __uid_t __owner, 29761: __gid_t __group, int __flag) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern int chdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern int fchdir (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: # 531 "/usr/include/unistd.h" 3 4 29761: extern char *getcwd (char *__buf, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern char *get_current_dir_name (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *getwd (char *__buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 1))); 29761: 29761: 29761: 29761: 29761: extern int dup (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern int dup2 (int __fd, int __fd2) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int dup3 (int __fd, int __fd2, int __flags) noexcept (true); 29761: 29761: 29761: 29761: extern char **__environ; 29761: 29761: extern char **environ; 29761: 29761: 29761: 29761: 29761: 29761: extern int execve (const char *__path, char *const __argv[], 29761: char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: extern int execv (const char *__path, char *const __argv[]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int execle (const char *__path, const char *__arg, ...) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int execl (const char *__path, const char *__arg, ...) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int execvp (const char *__file, char *const __argv[]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern int execlp (const char *__file, const char *__arg, ...) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern int execvpe (const char *__file, char *const __argv[], 29761: char *const __envp[]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int nice (int __inc) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern void _exit (int __status) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 3 4 29761: enum 29761: { 29761: _PC_LINK_MAX, 29761: 29761: _PC_MAX_CANON, 29761: 29761: _PC_MAX_INPUT, 29761: 29761: _PC_NAME_MAX, 29761: 29761: _PC_PATH_MAX, 29761: 29761: _PC_PIPE_BUF, 29761: 29761: _PC_CHOWN_RESTRICTED, 29761: 29761: _PC_NO_TRUNC, 29761: 29761: _PC_VDISABLE, 29761: 29761: _PC_SYNC_IO, 29761: 29761: _PC_ASYNC_IO, 29761: 29761: _PC_PRIO_IO, 29761: 29761: _PC_SOCK_MAXBUF, 29761: 29761: _PC_FILESIZEBITS, 29761: 29761: _PC_REC_INCR_XFER_SIZE, 29761: 29761: _PC_REC_MAX_XFER_SIZE, 29761: 29761: _PC_REC_MIN_XFER_SIZE, 29761: 29761: _PC_REC_XFER_ALIGN, 29761: 29761: _PC_ALLOC_SIZE_MIN, 29761: 29761: _PC_SYMLINK_MAX, 29761: 29761: _PC_2_SYMLINKS 29761: 29761: }; 29761: 29761: 29761: enum 29761: { 29761: _SC_ARG_MAX, 29761: 29761: _SC_CHILD_MAX, 29761: 29761: _SC_CLK_TCK, 29761: 29761: _SC_NGROUPS_MAX, 29761: 29761: _SC_OPEN_MAX, 29761: 29761: _SC_STREAM_MAX, 29761: 29761: _SC_TZNAME_MAX, 29761: 29761: _SC_JOB_CONTROL, 29761: 29761: _SC_SAVED_IDS, 29761: 29761: _SC_REALTIME_SIGNALS, 29761: 29761: _SC_PRIORITY_SCHEDULING, 29761: 29761: _SC_TIMERS, 29761: 29761: _SC_ASYNCHRONOUS_IO, 29761: 29761: _SC_PRIORITIZED_IO, 29761: 29761: _SC_SYNCHRONIZED_IO, 29761: 29761: _SC_FSYNC, 29761: 29761: _SC_MAPPED_FILES, 29761: 29761: _SC_MEMLOCK, 29761: 29761: _SC_MEMLOCK_RANGE, 29761: 29761: _SC_MEMORY_PROTECTION, 29761: 29761: _SC_MESSAGE_PASSING, 29761: 29761: _SC_SEMAPHORES, 29761: 29761: _SC_SHARED_MEMORY_OBJECTS, 29761: 29761: _SC_AIO_LISTIO_MAX, 29761: 29761: _SC_AIO_MAX, 29761: 29761: _SC_AIO_PRIO_DELTA_MAX, 29761: 29761: _SC_DELAYTIMER_MAX, 29761: 29761: _SC_MQ_OPEN_MAX, 29761: 29761: _SC_MQ_PRIO_MAX, 29761: 29761: _SC_VERSION, 29761: 29761: _SC_PAGESIZE, 29761: 29761: 29761: _SC_RTSIG_MAX, 29761: 29761: _SC_SEM_NSEMS_MAX, 29761: 29761: _SC_SEM_VALUE_MAX, 29761: 29761: _SC_SIGQUEUE_MAX, 29761: 29761: _SC_TIMER_MAX, 29761: 29761: 29761: 29761: 29761: _SC_BC_BASE_MAX, 29761: 29761: _SC_BC_DIM_MAX, 29761: 29761: _SC_BC_SCALE_MAX, 29761: 29761: _SC_BC_STRING_MAX, 29761: 29761: _SC_COLL_WEIGHTS_MAX, 29761: 29761: _SC_EQUIV_CLASS_MAX, 29761: 29761: _SC_EXPR_NEST_MAX, 29761: 29761: _SC_LINE_MAX, 29761: 29761: _SC_RE_DUP_MAX, 29761: 29761: _SC_CHARCLASS_NAME_MAX, 29761: 29761: 29761: _SC_2_VERSION, 29761: 29761: _SC_2_C_BIND, 29761: 29761: _SC_2_C_DEV, 29761: 29761: _SC_2_FORT_DEV, 29761: 29761: _SC_2_FORT_RUN, 29761: 29761: _SC_2_SW_DEV, 29761: 29761: _SC_2_LOCALEDEF, 29761: 29761: 29761: _SC_PII, 29761: 29761: _SC_PII_XTI, 29761: 29761: _SC_PII_SOCKET, 29761: 29761: _SC_PII_INTERNET, 29761: 29761: _SC_PII_OSI, 29761: 29761: _SC_POLL, 29761: 29761: _SC_SELECT, 29761: 29761: _SC_UIO_MAXIOV, 29761: 29761: _SC_IOV_MAX = _SC_UIO_MAXIOV, 29761: 29761: _SC_PII_INTERNET_STREAM, 29761: 29761: _SC_PII_INTERNET_DGRAM, 29761: 29761: _SC_PII_OSI_COTS, 29761: 29761: _SC_PII_OSI_CLTS, 29761: 29761: _SC_PII_OSI_M, 29761: 29761: _SC_T_IOV_MAX, 29761: 29761: 29761: 29761: _SC_THREADS, 29761: 29761: _SC_THREAD_SAFE_FUNCTIONS, 29761: 29761: _SC_GETGR_R_SIZE_MAX, 29761: 29761: _SC_GETPW_R_SIZE_MAX, 29761: 29761: _SC_LOGIN_NAME_MAX, 29761: 29761: _SC_TTY_NAME_MAX, 29761: 29761: _SC_THREAD_DESTRUCTOR_ITERATIONS, 29761: 29761: _SC_THREAD_KEYS_MAX, 29761: 29761: _SC_THREAD_STACK_MIN, 29761: 29761: _SC_THREAD_THREADS_MAX, 29761: 29761: _SC_THREAD_ATTR_STACKADDR, 29761: 29761: _SC_THREAD_ATTR_STACKSIZE, 29761: 29761: _SC_THREAD_PRIORITY_SCHEDULING, 29761: 29761: _SC_THREAD_PRIO_INHERIT, 29761: 29761: _SC_THREAD_PRIO_PROTECT, 29761: 29761: _SC_THREAD_PROCESS_SHARED, 29761: 29761: 29761: _SC_NPROCESSORS_CONF, 29761: 29761: _SC_NPROCESSORS_ONLN, 29761: 29761: _SC_PHYS_PAGES, 29761: 29761: _SC_AVPHYS_PAGES, 29761: 29761: _SC_ATEXIT_MAX, 29761: 29761: _SC_PASS_MAX, 29761: 29761: 29761: _SC_XOPEN_VERSION, 29761: 29761: _SC_XOPEN_XCU_VERSION, 29761: 29761: _SC_XOPEN_UNIX, 29761: 29761: _SC_XOPEN_CRYPT, 29761: 29761: _SC_XOPEN_ENH_I18N, 29761: 29761: _SC_XOPEN_SHM, 29761: 29761: 29761: _SC_2_CHAR_TERM, 29761: 29761: _SC_2_C_VERSION, 29761: 29761: _SC_2_UPE, 29761: 29761: 29761: _SC_XOPEN_XPG2, 29761: 29761: _SC_XOPEN_XPG3, 29761: 29761: _SC_XOPEN_XPG4, 29761: 29761: 29761: _SC_CHAR_BIT, 29761: 29761: _SC_CHAR_MAX, 29761: 29761: _SC_CHAR_MIN, 29761: 29761: _SC_INT_MAX, 29761: 29761: _SC_INT_MIN, 29761: 29761: _SC_LONG_BIT, 29761: 29761: _SC_WORD_BIT, 29761: 29761: _SC_MB_LEN_MAX, 29761: 29761: _SC_NZERO, 29761: 29761: _SC_SSIZE_MAX, 29761: 29761: _SC_SCHAR_MAX, 29761: 29761: _SC_SCHAR_MIN, 29761: 29761: _SC_SHRT_MAX, 29761: 29761: _SC_SHRT_MIN, 29761: 29761: _SC_UCHAR_MAX, 29761: 29761: _SC_UINT_MAX, 29761: 29761: _SC_ULONG_MAX, 29761: 29761: _SC_USHRT_MAX, 29761: 29761: 29761: _SC_NL_ARGMAX, 29761: 29761: _SC_NL_LANGMAX, 29761: 29761: _SC_NL_MSGMAX, 29761: 29761: _SC_NL_NMAX, 29761: 29761: _SC_NL_SETMAX, 29761: 29761: _SC_NL_TEXTMAX, 29761: 29761: 29761: _SC_XBS5_ILP32_OFF32, 29761: 29761: _SC_XBS5_ILP32_OFFBIG, 29761: 29761: _SC_XBS5_LP64_OFF64, 29761: 29761: _SC_XBS5_LPBIG_OFFBIG, 29761: 29761: 29761: _SC_XOPEN_LEGACY, 29761: 29761: _SC_XOPEN_REALTIME, 29761: 29761: _SC_XOPEN_REALTIME_THREADS, 29761: 29761: 29761: _SC_ADVISORY_INFO, 29761: 29761: _SC_BARRIERS, 29761: 29761: _SC_BASE, 29761: 29761: _SC_C_LANG_SUPPORT, 29761: 29761: _SC_C_LANG_SUPPORT_R, 29761: 29761: _SC_CLOCK_SELECTION, 29761: 29761: _SC_CPUTIME, 29761: 29761: _SC_THREAD_CPUTIME, 29761: 29761: _SC_DEVICE_IO, 29761: 29761: _SC_DEVICE_SPECIFIC, 29761: 29761: _SC_DEVICE_SPECIFIC_R, 29761: 29761: _SC_FD_MGMT, 29761: 29761: _SC_FIFO, 29761: 29761: _SC_PIPE, 29761: 29761: _SC_FILE_ATTRIBUTES, 29761: 29761: _SC_FILE_LOCKING, 29761: 29761: _SC_FILE_SYSTEM, 29761: 29761: _SC_MONOTONIC_CLOCK, 29761: 29761: _SC_MULTI_PROCESS, 29761: 29761: _SC_SINGLE_PROCESS, 29761: 29761: _SC_NETWORKING, 29761: 29761: _SC_READER_WRITER_LOCKS, 29761: 29761: _SC_SPIN_LOCKS, 29761: 29761: _SC_REGEXP, 29761: 29761: _SC_REGEX_VERSION, 29761: 29761: _SC_SHELL, 29761: 29761: _SC_SIGNALS, 29761: 29761: _SC_SPAWN, 29761: 29761: _SC_SPORADIC_SERVER, 29761: 29761: _SC_THREAD_SPORADIC_SERVER, 29761: 29761: _SC_SYSTEM_DATABASE, 29761: 29761: _SC_SYSTEM_DATABASE_R, 29761: 29761: _SC_TIMEOUTS, 29761: 29761: _SC_TYPED_MEMORY_OBJECTS, 29761: 29761: _SC_USER_GROUPS, 29761: 29761: _SC_USER_GROUPS_R, 29761: 29761: _SC_2_PBS, 29761: 29761: _SC_2_PBS_ACCOUNTING, 29761: 29761: _SC_2_PBS_LOCATE, 29761: 29761: _SC_2_PBS_MESSAGE, 29761: 29761: _SC_2_PBS_TRACK, 29761: 29761: _SC_SYMLOOP_MAX, 29761: 29761: _SC_STREAMS, 29761: 29761: _SC_2_PBS_CHECKPOINT, 29761: 29761: 29761: _SC_V6_ILP32_OFF32, 29761: 29761: _SC_V6_ILP32_OFFBIG, 29761: 29761: _SC_V6_LP64_OFF64, 29761: 29761: _SC_V6_LPBIG_OFFBIG, 29761: 29761: 29761: _SC_HOST_NAME_MAX, 29761: 29761: _SC_TRACE, 29761: 29761: _SC_TRACE_EVENT_FILTER, 29761: 29761: _SC_TRACE_INHERIT, 29761: 29761: _SC_TRACE_LOG, 29761: 29761: 29761: _SC_LEVEL1_ICACHE_SIZE, 29761: 29761: _SC_LEVEL1_ICACHE_ASSOC, 29761: 29761: _SC_LEVEL1_ICACHE_LINESIZE, 29761: 29761: _SC_LEVEL1_DCACHE_SIZE, 29761: 29761: _SC_LEVEL1_DCACHE_ASSOC, 29761: 29761: _SC_LEVEL1_DCACHE_LINESIZE, 29761: 29761: _SC_LEVEL2_CACHE_SIZE, 29761: 29761: _SC_LEVEL2_CACHE_ASSOC, 29761: 29761: _SC_LEVEL2_CACHE_LINESIZE, 29761: 29761: _SC_LEVEL3_CACHE_SIZE, 29761: 29761: _SC_LEVEL3_CACHE_ASSOC, 29761: 29761: _SC_LEVEL3_CACHE_LINESIZE, 29761: 29761: _SC_LEVEL4_CACHE_SIZE, 29761: 29761: _SC_LEVEL4_CACHE_ASSOC, 29761: 29761: _SC_LEVEL4_CACHE_LINESIZE, 29761: 29761: 29761: 29761: _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, 29761: 29761: _SC_RAW_SOCKETS, 29761: 29761: 29761: _SC_V7_ILP32_OFF32, 29761: 29761: _SC_V7_ILP32_OFFBIG, 29761: 29761: _SC_V7_LP64_OFF64, 29761: 29761: _SC_V7_LPBIG_OFFBIG, 29761: 29761: 29761: _SC_SS_REPL_MAX, 29761: 29761: 29761: _SC_TRACE_EVENT_NAME_MAX, 29761: 29761: _SC_TRACE_NAME_MAX, 29761: 29761: _SC_TRACE_SYS_MAX, 29761: 29761: _SC_TRACE_USER_EVENT_MAX, 29761: 29761: 29761: _SC_XOPEN_STREAMS, 29761: 29761: 29761: _SC_THREAD_ROBUST_PRIO_INHERIT, 29761: 29761: _SC_THREAD_ROBUST_PRIO_PROTECT, 29761: 29761: 29761: _SC_MINSIGSTKSZ, 29761: 29761: 29761: _SC_SIGSTKSZ 29761: 29761: }; 29761: 29761: 29761: enum 29761: { 29761: _CS_PATH, 29761: 29761: 29761: _CS_V6_WIDTH_RESTRICTED_ENVS, 29761: 29761: 29761: 29761: _CS_GNU_LIBC_VERSION, 29761: 29761: _CS_GNU_LIBPTHREAD_VERSION, 29761: 29761: 29761: _CS_V5_WIDTH_RESTRICTED_ENVS, 29761: 29761: 29761: 29761: _CS_V7_WIDTH_RESTRICTED_ENVS, 29761: 29761: 29761: 29761: _CS_LFS_CFLAGS = 1000, 29761: 29761: _CS_LFS_LDFLAGS, 29761: 29761: _CS_LFS_LIBS, 29761: 29761: _CS_LFS_LINTFLAGS, 29761: 29761: _CS_LFS64_CFLAGS, 29761: 29761: _CS_LFS64_LDFLAGS, 29761: 29761: _CS_LFS64_LIBS, 29761: 29761: _CS_LFS64_LINTFLAGS, 29761: 29761: 29761: _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, 29761: 29761: _CS_XBS5_ILP32_OFF32_LDFLAGS, 29761: 29761: _CS_XBS5_ILP32_OFF32_LIBS, 29761: 29761: _CS_XBS5_ILP32_OFF32_LINTFLAGS, 29761: 29761: _CS_XBS5_ILP32_OFFBIG_CFLAGS, 29761: 29761: _CS_XBS5_ILP32_OFFBIG_LDFLAGS, 29761: 29761: _CS_XBS5_ILP32_OFFBIG_LIBS, 29761: 29761: _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, 29761: 29761: _CS_XBS5_LP64_OFF64_CFLAGS, 29761: 29761: _CS_XBS5_LP64_OFF64_LDFLAGS, 29761: 29761: _CS_XBS5_LP64_OFF64_LIBS, 29761: 29761: _CS_XBS5_LP64_OFF64_LINTFLAGS, 29761: 29761: _CS_XBS5_LPBIG_OFFBIG_CFLAGS, 29761: 29761: _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, 29761: 29761: _CS_XBS5_LPBIG_OFFBIG_LIBS, 29761: 29761: _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, 29761: 29761: 29761: _CS_POSIX_V6_ILP32_OFF32_CFLAGS, 29761: 29761: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, 29761: 29761: _CS_POSIX_V6_ILP32_OFF32_LIBS, 29761: 29761: _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, 29761: 29761: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, 29761: 29761: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, 29761: 29761: _CS_POSIX_V6_ILP32_OFFBIG_LIBS, 29761: 29761: _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, 29761: 29761: _CS_POSIX_V6_LP64_OFF64_CFLAGS, 29761: 29761: _CS_POSIX_V6_LP64_OFF64_LDFLAGS, 29761: 29761: _CS_POSIX_V6_LP64_OFF64_LIBS, 29761: 29761: _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, 29761: 29761: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, 29761: 29761: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, 29761: 29761: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, 29761: 29761: _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, 29761: 29761: 29761: _CS_POSIX_V7_ILP32_OFF32_CFLAGS, 29761: 29761: _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, 29761: 29761: _CS_POSIX_V7_ILP32_OFF32_LIBS, 29761: 29761: _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, 29761: 29761: _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, 29761: 29761: _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, 29761: 29761: _CS_POSIX_V7_ILP32_OFFBIG_LIBS, 29761: 29761: _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, 29761: 29761: _CS_POSIX_V7_LP64_OFF64_CFLAGS, 29761: 29761: _CS_POSIX_V7_LP64_OFF64_LDFLAGS, 29761: 29761: _CS_POSIX_V7_LP64_OFF64_LIBS, 29761: 29761: _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, 29761: 29761: _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, 29761: 29761: _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, 29761: 29761: _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, 29761: 29761: _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, 29761: 29761: 29761: _CS_V6_ENV, 29761: 29761: _CS_V7_ENV 29761: 29761: }; 29761: # 631 "/usr/include/unistd.h" 2 3 4 29761: 29761: 29761: extern long int pathconf (const char *__path, int __name) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern long int fpathconf (int __fd, int __name) noexcept (true); 29761: 29761: 29761: extern long int sysconf (int __name) noexcept (true); 29761: 29761: 29761: 29761: extern size_t confstr (int __name, char *__buf, size_t __len) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: 29761: 29761: extern __pid_t getpid (void) noexcept (true); 29761: 29761: 29761: extern __pid_t getppid (void) noexcept (true); 29761: 29761: 29761: extern __pid_t getpgrp (void) noexcept (true); 29761: 29761: 29761: extern __pid_t __getpgid (__pid_t __pid) noexcept (true); 29761: 29761: extern __pid_t getpgid (__pid_t __pid) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int setpgid (__pid_t __pid, __pid_t __pgid) noexcept (true); 29761: # 682 "/usr/include/unistd.h" 3 4 29761: extern int setpgrp (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __pid_t setsid (void) noexcept (true); 29761: 29761: 29761: 29761: extern __pid_t getsid (__pid_t __pid) noexcept (true); 29761: 29761: 29761: 29761: extern __uid_t getuid (void) noexcept (true); 29761: 29761: 29761: extern __uid_t geteuid (void) noexcept (true); 29761: 29761: 29761: extern __gid_t getgid (void) noexcept (true); 29761: 29761: 29761: extern __gid_t getegid (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int getgroups (int __size, __gid_t __list[]) noexcept (true) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 1))); 29761: 29761: 29761: extern int group_member (__gid_t __gid) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int setuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int setreuid (__uid_t __ruid, __uid_t __euid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int seteuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int setgid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int setregid (__gid_t __rgid, __gid_t __egid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int setegid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) 29761: noexcept (true); 29761: 29761: 29761: 29761: extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) 29761: noexcept (true); 29761: 29761: 29761: 29761: extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __pid_t fork (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __pid_t vfork (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __pid_t _Fork (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern char *ttyname (int __fd) noexcept (true); 29761: 29761: 29761: 29761: extern int ttyname_r (int __fd, char *__buf, size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: 29761: extern int isatty (int __fd) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int ttyslot (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int link (const char *__from, const char *__to) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int linkat (int __fromfd, const char *__from, int __tofd, 29761: const char *__to, int __flags) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int symlink (const char *__from, const char *__to) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern ssize_t readlink (const char *__restrict __path, 29761: char *__restrict __buf, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: extern int symlinkat (const char *__from, int __tofd, 29761: const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern ssize_t readlinkat (int __fd, const char *__restrict __path, 29761: char *__restrict __buf, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 3, 4))); 29761: 29761: 29761: 29761: extern int unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int unlinkat (int __fd, const char *__name, int __flag) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern int rmdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern __pid_t tcgetpgrp (int __fd) noexcept (true); 29761: 29761: 29761: extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *getlogin (void); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: 29761: 29761: 29761: 29761: extern int setlogin (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 1 3 4 29761: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *optarg; 29761: # 50 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29761: extern int optind; 29761: 29761: 29761: 29761: 29761: extern int opterr; 29761: 29761: 29761: 29761: extern int optopt; 29761: # 91 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29761: extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29761: 29761: } 29761: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 2 3 4 29761: 29761: extern "C" { 29761: # 49 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 29761: } 29761: # 904 "/usr/include/unistd.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int gethostname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int sethostname (const char *__name, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 29761: 29761: 29761: 29761: extern int sethostid (long int __id) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int getdomainname (char *__name, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int setdomainname (const char *__name, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 29761: 29761: 29761: 29761: 29761: extern int vhangup (void) noexcept (true); 29761: 29761: 29761: extern int revoke (const char *__file) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int profil (unsigned short int *__sample_buffer, size_t __size, 29761: size_t __offset, unsigned int __scale) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int acct (const char *__name) noexcept (true); 29761: 29761: 29761: 29761: extern char *getusershell (void) noexcept (true); 29761: extern void endusershell (void) noexcept (true); 29761: extern void setusershell (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int daemon (int __nochdir, int __noclose) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int chroot (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fsync (int __fd); 29761: 29761: 29761: 29761: 29761: 29761: extern int syncfs (int __fd) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int gethostid (void); 29761: 29761: 29761: extern void sync (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int getpagesize (void) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int getdtablesize (void) noexcept (true); 29761: # 1030 "/usr/include/unistd.h" 3 4 29761: extern int truncate (const char *__file, __off64_t __length) noexcept (true) __asm__ ("" "truncate64") 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int truncate64 (const char *__file, __off64_t __length) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 1052 "/usr/include/unistd.h" 3 4 29761: extern int ftruncate (int __fd, __off64_t __length) noexcept (true) __asm__ ("" "ftruncate64") 29761: __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int ftruncate64 (int __fd, __off64_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: # 1070 "/usr/include/unistd.h" 3 4 29761: extern int brk (void *__addr) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern void *sbrk (intptr_t __delta) noexcept (true); 29761: # 1091 "/usr/include/unistd.h" 3 4 29761: extern long int syscall (long int __sysno, ...) noexcept (true); 29761: # 1117 "/usr/include/unistd.h" 3 4 29761: extern int lockf (int __fd, int __cmd, __off64_t __len) __asm__ ("" "lockf64") 29761: __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int lockf64 (int __fd, int __cmd, __off64_t __len) __attribute__ ((__warn_unused_result__)); 29761: # 1142 "/usr/include/unistd.h" 3 4 29761: ssize_t copy_file_range (int __infd, __off64_t *__pinoff, 29761: int __outfd, __off64_t *__poutoff, 29761: size_t __length, unsigned int __flags); 29761: 29761: 29761: 29761: 29761: 29761: extern int fdatasync (int __fildes); 29761: # 1162 "/usr/include/unistd.h" 3 4 29761: extern char *crypt (const char *__key, const char *__salt) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void swab (const void *__restrict __from, void *__restrict __to, 29761: ssize_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) 29761: __attribute__ ((__access__ (__read_only__, 1, 3))) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: # 1201 "/usr/include/unistd.h" 3 4 29761: int getentropy (void *__buffer, size_t __length) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: # 1211 "/usr/include/unistd.h" 3 4 29761: extern int close_range (unsigned int __fd, unsigned int __max_fd, 29761: int __flags) noexcept (true); 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 3 4 29761: extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, 29761: size_t __buflen) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) 29761: ; 29761: 29761: 29761: extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, 29761: __off_t __offset, size_t __bufsize) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, 29761: __off64_t __offset, size_t __bufsize) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __pread_alias (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __asm__ ("" "pread") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __pread_chk_warn (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __asm__ ("" "__pread_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread called with bigger length than size of " "the destination buffer"))) 29761: ; 29761: extern ssize_t __pread64_chk_warn (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __asm__ ("" "__pread64_chk") 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread64 called with bigger length than size of " "the destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: extern ssize_t __readlink_chk (const char *__restrict __path, 29761: char *__restrict __buf, size_t __len, 29761: size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlink") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlink_chk") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, 29761: char *__restrict __buf, size_t __len, 29761: size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 29761: extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlinkat") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 29761: extern ssize_t __readlinkat_chk_warn (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlinkat_chk") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) 29761: 29761: ; 29761: 29761: 29761: extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: extern char *__getcwd_alias (char *__buf, size_t __size) noexcept (true) __asm__ ("" "getcwd") 29761: __attribute__ ((__warn_unused_result__)); 29761: extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) noexcept (true) __asm__ ("" "__getcwd_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) 29761: ; 29761: 29761: 29761: extern char *__getwd_chk (char *__buf, size_t buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern char *__getwd_warn (char *__buf) noexcept (true) __asm__ ("" "getwd") 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) 29761: ; 29761: 29761: 29761: extern size_t __confstr_chk (int __name, char *__buf, size_t __len, 29761: size_t __buflen) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern size_t __confstr_alias (int __name, char *__buf, size_t __len) noexcept (true) __asm__ ("" "confstr") 29761: 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__confstr_chk") 29761: 29761: 29761: __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) 29761: ; 29761: 29761: 29761: extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 29761: extern int __getgroups_alias (int __size, __gid_t __list[]) noexcept (true) __asm__ ("" "getgroups") 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 29761: extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) noexcept (true) __asm__ ("" "__getgroups_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) 29761: ; 29761: 29761: 29761: extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, 29761: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ttyname_r") 29761: 29761: __attribute__ ((__nonnull__ (2))); 29761: extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ttyname_r_chk") 29761: 29761: 29761: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") 29761: __attribute__ ((__nonnull__ (1))); 29761: extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __gethostname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "gethostname") 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__gethostname_chk") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __getdomainname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "getdomainname") 29761: 29761: __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__getdomainname_chk") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) 29761: 29761: ; 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 2 3 4 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29761: read (int __fd, void * __buf, size_t __nbytes) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __read_alias (__fd, __buf, __nbytes) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __read_chk_warn (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)) : __read_chk (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)))) 29761: 29761: ; 29761: } 29761: # 51 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29761: pread (int __fd, void * __buf, 29761: size_t __nbytes, __off64_t __offset) 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __pread64_alias (__fd, __buf, __nbytes, __offset) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __pread64_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)) : __pread64_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29761: pread64 (int __fd, void * __buf, 29761: size_t __nbytes, __off64_t __offset) 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __pread64_alias (__fd, __buf, __nbytes, __offset) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __pread64_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)) : __pread64_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t 29761: __attribute__ ((__leaf__)) readlink (const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __readlink_alias (__path, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __readlink_chk_warn (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __readlink_chk (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t 29761: __attribute__ ((__leaf__)) readlinkat (int __fd, const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __readlinkat_alias (__fd, __path, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __readlinkat_chk_warn (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __readlinkat_chk (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 29761: __attribute__ ((__leaf__)) getcwd (char * __buf, size_t __size) noexcept (true) 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__size)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getcwd_alias (__buf, __size) : ((((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__size)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getcwd_chk_warn (__buf, __size, __builtin_object_size (__buf, 2 > 1)) : __getcwd_chk (__buf, __size, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * 29761: __attribute__ ((__leaf__)) getwd (char * __buf) noexcept (true) 29761: { 29761: if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) 29761: return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); 29761: return __getwd_warn (__buf); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) confstr (int __name, char * __buf, size_t __len) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __confstr_alias (__name, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __confstr_chk_warn (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __confstr_chk (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) getgroups (int __size, __gid_t * __list) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__list, 2 > 1)) && (__builtin_object_size (__list, 2 > 1)) == (unsigned int) -1) || (((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= ((__builtin_object_size (__list, 2 > 1))) / ((sizeof (__gid_t))))) && (((unsigned int) (__size)) <= ((__builtin_object_size (__list, 2 > 1))) / ((sizeof (__gid_t)))))) ? __getgroups_alias (__size, __list) : ((((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= (__builtin_object_size (__list, 2 > 1)) / (sizeof (__gid_t)))) && !(((unsigned int) (__size)) <= (__builtin_object_size (__list, 2 > 1)) / (sizeof (__gid_t)))) ? __getgroups_chk_warn (__size, __list, __builtin_object_size (__list, 2 > 1)) : __getgroups_chk (__size, __list, __builtin_object_size (__list, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) ttyname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __ttyname_r_alias (__fd, __buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __ttyname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __ttyname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: getlogin_r (char * __buf, size_t __buflen) 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getlogin_r_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getlogin_r_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __getlogin_r_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) gethostname (char * __buf, size_t __buflen) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __gethostname_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __gethostname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __gethostname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) getdomainname (char * __buf, size_t __buflen) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getdomainname_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getdomainname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __getdomainname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: # 1218 "/usr/include/unistd.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 1 3 4 29761: # 34 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 3 4 29761: extern __pid_t gettid (void) noexcept (true); 29761: 29761: 29761: 29761: # 1 "/usr/include/linux/close_range.h" 1 3 4 29761: # 39 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 2 3 4 29761: # 1222 "/usr/include/unistd.h" 2 3 4 29761: 29761: } 29761: # 485 "/usr/include/zconf.h" 2 3 4 29761: # 35 "/usr/include/zlib.h" 2 3 4 29761: 29761: 29761: extern "C" { 29761: # 81 "/usr/include/zlib.h" 3 4 29761: typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size); 29761: typedef void (*free_func)(voidpf opaque, voidpf address); 29761: 29761: struct internal_state; 29761: 29761: typedef struct z_stream_s { 29761: Bytef *next_in; 29761: uInt avail_in; 29761: uLong total_in; 29761: 29761: Bytef *next_out; 29761: uInt avail_out; 29761: uLong total_out; 29761: 29761: char *msg; 29761: struct internal_state *state; 29761: 29761: alloc_func zalloc; 29761: free_func zfree; 29761: voidpf opaque; 29761: 29761: int data_type; 29761: 29761: uLong adler; 29761: uLong reserved; 29761: } z_stream; 29761: 29761: typedef z_stream *z_streamp; 29761: 29761: 29761: 29761: 29761: 29761: typedef struct gz_header_s { 29761: int text; 29761: uLong time; 29761: int xflags; 29761: int os; 29761: Bytef *extra; 29761: uInt extra_len; 29761: uInt extra_max; 29761: Bytef *name; 29761: uInt name_max; 29761: Bytef *comment; 29761: uInt comm_max; 29761: int hcrc; 29761: int done; 29761: 29761: } gz_header; 29761: 29761: typedef gz_header *gz_headerp; 29761: # 220 "/usr/include/zlib.h" 3 4 29761: extern const char * zlibVersion(void); 29761: # 250 "/usr/include/zlib.h" 3 4 29761: extern int deflate(z_streamp strm, int flush); 29761: # 363 "/usr/include/zlib.h" 3 4 29761: extern int deflateEnd(z_streamp strm); 29761: # 401 "/usr/include/zlib.h" 3 4 29761: extern int inflate(z_streamp strm, int flush); 29761: # 521 "/usr/include/zlib.h" 3 4 29761: extern int inflateEnd(z_streamp strm); 29761: # 611 "/usr/include/zlib.h" 3 4 29761: extern int deflateSetDictionary(z_streamp strm, 29761: const Bytef *dictionary, 29761: uInt dictLength); 29761: # 655 "/usr/include/zlib.h" 3 4 29761: extern int deflateGetDictionary(z_streamp strm, 29761: Bytef *dictionary, 29761: uInt *dictLength); 29761: # 677 "/usr/include/zlib.h" 3 4 29761: extern int deflateCopy(z_streamp dest, 29761: z_streamp source); 29761: # 695 "/usr/include/zlib.h" 3 4 29761: extern int deflateReset(z_streamp strm); 29761: # 706 "/usr/include/zlib.h" 3 4 29761: extern int deflateParams(z_streamp strm, 29761: int level, 29761: int strategy); 29761: # 744 "/usr/include/zlib.h" 3 4 29761: extern int deflateTune(z_streamp strm, 29761: int good_length, 29761: int max_lazy, 29761: int nice_length, 29761: int max_chain); 29761: # 761 "/usr/include/zlib.h" 3 4 29761: extern uLong deflateBound(z_streamp strm, 29761: uLong sourceLen); 29761: # 776 "/usr/include/zlib.h" 3 4 29761: extern int deflatePending(z_streamp strm, 29761: unsigned *pending, 29761: int *bits); 29761: # 791 "/usr/include/zlib.h" 3 4 29761: extern int deflatePrime(z_streamp strm, 29761: int bits, 29761: int value); 29761: # 808 "/usr/include/zlib.h" 3 4 29761: extern int deflateSetHeader(z_streamp strm, 29761: gz_headerp head); 29761: # 888 "/usr/include/zlib.h" 3 4 29761: extern int inflateSetDictionary(z_streamp strm, 29761: const Bytef *dictionary, 29761: uInt dictLength); 29761: # 911 "/usr/include/zlib.h" 3 4 29761: extern int inflateGetDictionary(z_streamp strm, 29761: Bytef *dictionary, 29761: uInt *dictLength); 29761: # 926 "/usr/include/zlib.h" 3 4 29761: extern int inflateSync(z_streamp strm); 29761: # 945 "/usr/include/zlib.h" 3 4 29761: extern int inflateCopy(z_streamp dest, 29761: z_streamp source); 29761: # 961 "/usr/include/zlib.h" 3 4 29761: extern int inflateReset(z_streamp strm); 29761: # 972 "/usr/include/zlib.h" 3 4 29761: extern int inflateReset2(z_streamp strm, 29761: int windowBits); 29761: # 986 "/usr/include/zlib.h" 3 4 29761: extern int inflatePrime(z_streamp strm, 29761: int bits, 29761: int value); 29761: # 1007 "/usr/include/zlib.h" 3 4 29761: extern long inflateMark(z_streamp strm); 29761: # 1035 "/usr/include/zlib.h" 3 4 29761: extern int inflateGetHeader(z_streamp strm, 29761: gz_headerp head); 29761: # 1097 "/usr/include/zlib.h" 3 4 29761: typedef unsigned (*in_func)(void *, 29761: unsigned char * *); 29761: typedef int (*out_func)(void *, unsigned char *, unsigned); 29761: 29761: extern int inflateBack(z_streamp strm, 29761: in_func in, void *in_desc, 29761: out_func out, void *out_desc); 29761: # 1171 "/usr/include/zlib.h" 3 4 29761: extern int inflateBackEnd(z_streamp strm); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern uLong zlibCompileFlags(void); 29761: # 1232 "/usr/include/zlib.h" 3 4 29761: extern int compress(Bytef *dest, uLongf *destLen, 29761: const Bytef *source, uLong sourceLen); 29761: # 1247 "/usr/include/zlib.h" 3 4 29761: extern int compress2(Bytef *dest, uLongf *destLen, 29761: const Bytef *source, uLong sourceLen, 29761: int level); 29761: # 1263 "/usr/include/zlib.h" 3 4 29761: extern uLong compressBound(uLong sourceLen); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int uncompress(Bytef *dest, uLongf *destLen, 29761: const Bytef *source, uLong sourceLen); 29761: # 1288 "/usr/include/zlib.h" 3 4 29761: extern int uncompress2(Bytef *dest, uLongf *destLen, 29761: const Bytef *source, uLong *sourceLen); 29761: # 1305 "/usr/include/zlib.h" 3 4 29761: typedef struct gzFile_s *gzFile; 29761: # 1345 "/usr/include/zlib.h" 3 4 29761: extern gzFile gzdopen(int fd, const char *mode); 29761: # 1368 "/usr/include/zlib.h" 3 4 29761: extern int gzbuffer(gzFile file, unsigned size); 29761: # 1384 "/usr/include/zlib.h" 3 4 29761: extern int gzsetparams(gzFile file, int level, int strategy); 29761: # 1395 "/usr/include/zlib.h" 3 4 29761: extern int gzread(gzFile file, voidp buf, unsigned len); 29761: # 1425 "/usr/include/zlib.h" 3 4 29761: extern z_size_t gzfread(voidp buf, z_size_t size, z_size_t nitems, 29761: gzFile file); 29761: # 1451 "/usr/include/zlib.h" 3 4 29761: extern int gzwrite(gzFile file, voidpc buf, unsigned len); 29761: 29761: 29761: 29761: 29761: 29761: extern z_size_t gzfwrite(voidpc buf, z_size_t size, 29761: z_size_t nitems, gzFile file); 29761: # 1471 "/usr/include/zlib.h" 3 4 29761: extern int gzprintf(gzFile file, const char *format, ...); 29761: # 1486 "/usr/include/zlib.h" 3 4 29761: extern int gzputs(gzFile file, const char *s); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char * gzgets(gzFile file, char *buf, int len); 29761: # 1508 "/usr/include/zlib.h" 3 4 29761: extern int gzputc(gzFile file, int c); 29761: 29761: 29761: 29761: 29761: 29761: extern int gzgetc(gzFile file); 29761: # 1523 "/usr/include/zlib.h" 3 4 29761: extern int gzungetc(int c, gzFile file); 29761: # 1535 "/usr/include/zlib.h" 3 4 29761: extern int gzflush(gzFile file, int flush); 29761: # 1570 "/usr/include/zlib.h" 3 4 29761: extern int gzrewind(gzFile file); 29761: # 1598 "/usr/include/zlib.h" 3 4 29761: extern int gzeof(gzFile file); 29761: # 1613 "/usr/include/zlib.h" 3 4 29761: extern int gzdirect(gzFile file); 29761: # 1634 "/usr/include/zlib.h" 3 4 29761: extern int gzclose(gzFile file); 29761: # 1647 "/usr/include/zlib.h" 3 4 29761: extern int gzclose_r(gzFile file); 29761: extern int gzclose_w(gzFile file); 29761: # 1659 "/usr/include/zlib.h" 3 4 29761: extern const char * gzerror(gzFile file, int *errnum); 29761: # 1675 "/usr/include/zlib.h" 3 4 29761: extern void gzclearerr(gzFile file); 29761: # 1692 "/usr/include/zlib.h" 3 4 29761: extern uLong adler32(uLong adler, const Bytef *buf, uInt len); 29761: # 1712 "/usr/include/zlib.h" 3 4 29761: extern uLong adler32_z(uLong adler, const Bytef *buf, 29761: z_size_t len); 29761: # 1730 "/usr/include/zlib.h" 3 4 29761: extern uLong crc32(uLong crc, const Bytef *buf, uInt len); 29761: # 1748 "/usr/include/zlib.h" 3 4 29761: extern uLong crc32_z(uLong crc, const Bytef *buf, 29761: z_size_t len); 29761: # 1771 "/usr/include/zlib.h" 3 4 29761: extern uLong crc32_combine_op(uLong crc1, uLong crc2, uLong op); 29761: # 1784 "/usr/include/zlib.h" 3 4 29761: extern int deflateInit_(z_streamp strm, int level, 29761: const char *version, int stream_size); 29761: extern int inflateInit_(z_streamp strm, 29761: const char *version, int stream_size); 29761: extern int deflateInit2_(z_streamp strm, int level, int method, 29761: int windowBits, int memLevel, 29761: int strategy, const char *version, 29761: int stream_size); 29761: extern int inflateInit2_(z_streamp strm, int windowBits, 29761: const char *version, int stream_size); 29761: extern int inflateBackInit_(z_streamp strm, int windowBits, 29761: unsigned char *window, 29761: const char *version, 29761: int stream_size); 29761: # 1837 "/usr/include/zlib.h" 3 4 29761: struct gzFile_s { 29761: unsigned have; 29761: unsigned char *next; 29761: off64_t pos; 29761: }; 29761: extern int gzgetc_(gzFile file); 29761: # 1859 "/usr/include/zlib.h" 3 4 29761: extern gzFile gzopen64(const char *, const char *); 29761: extern off64_t gzseek64(gzFile, off64_t, int); 29761: extern off64_t gztell64(gzFile); 29761: extern off64_t gzoffset64(gzFile); 29761: extern uLong adler32_combine64(uLong, uLong, off64_t); 29761: extern uLong crc32_combine64(uLong, uLong, off64_t); 29761: extern uLong crc32_combine_gen64(off64_t); 29761: # 1914 "/usr/include/zlib.h" 3 4 29761: extern const char * zError(int); 29761: extern int inflateSyncPoint(z_streamp); 29761: extern const z_crc_t * get_crc_table(void); 29761: extern int inflateUndermine(z_streamp, int); 29761: extern int inflateValidate(z_streamp, int); 29761: extern unsigned long inflateCodesUsed(z_streamp); 29761: extern int inflateResetKeep(z_streamp); 29761: extern int deflateResetKeep(z_streamp); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int gzvprintf(gzFile file, 29761: const char *format, 29761: va_list va); 29761: 29761: 29761: 29761: 29761: } 29761: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: 29761: # 1 "/usr/include/bzlib.h" 1 3 4 29761: # 26 "/usr/include/bzlib.h" 3 4 29761: extern "C" { 29761: # 48 "/usr/include/bzlib.h" 3 4 29761: typedef 29761: struct { 29761: char *next_in; 29761: unsigned int avail_in; 29761: unsigned int total_in_lo32; 29761: unsigned int total_in_hi32; 29761: 29761: char *next_out; 29761: unsigned int avail_out; 29761: unsigned int total_out_lo32; 29761: unsigned int total_out_hi32; 29761: 29761: void *state; 29761: 29761: void *(*bzalloc)(void *,int,int); 29761: void (*bzfree)(void *,void *); 29761: void *opaque; 29761: } 29761: bz_stream; 29761: # 100 "/usr/include/bzlib.h" 3 4 29761: extern int BZ2_bzCompressInit ( 29761: bz_stream* strm, 29761: int blockSize100k, 29761: int verbosity, 29761: int workFactor 29761: ); 29761: 29761: extern int BZ2_bzCompress ( 29761: bz_stream* strm, 29761: int action 29761: ); 29761: 29761: extern int BZ2_bzCompressEnd ( 29761: bz_stream* strm 29761: ); 29761: 29761: extern int BZ2_bzDecompressInit ( 29761: bz_stream *strm, 29761: int verbosity, 29761: int small 29761: ); 29761: 29761: extern int BZ2_bzDecompress ( 29761: bz_stream* strm 29761: ); 29761: 29761: extern int BZ2_bzDecompressEnd ( 29761: bz_stream *strm 29761: ); 29761: # 137 "/usr/include/bzlib.h" 3 4 29761: typedef void BZFILE; 29761: 29761: extern BZFILE* BZ2_bzReadOpen ( 29761: int* bzerror, 29761: FILE* f, 29761: int verbosity, 29761: int small, 29761: void* unused, 29761: int nUnused 29761: ); 29761: 29761: extern void BZ2_bzReadClose ( 29761: int* bzerror, 29761: BZFILE* b 29761: ); 29761: 29761: extern void BZ2_bzReadGetUnused ( 29761: int* bzerror, 29761: BZFILE* b, 29761: void** unused, 29761: int* nUnused 29761: ); 29761: 29761: extern int BZ2_bzRead ( 29761: int* bzerror, 29761: BZFILE* b, 29761: void* buf, 29761: int len 29761: ); 29761: 29761: extern BZFILE* BZ2_bzWriteOpen ( 29761: int* bzerror, 29761: FILE* f, 29761: int blockSize100k, 29761: int verbosity, 29761: int workFactor 29761: ); 29761: 29761: extern void BZ2_bzWrite ( 29761: int* bzerror, 29761: BZFILE* b, 29761: void* buf, 29761: int len 29761: ); 29761: 29761: extern void BZ2_bzWriteClose ( 29761: int* bzerror, 29761: BZFILE* b, 29761: int abandon, 29761: unsigned int* nbytes_in, 29761: unsigned int* nbytes_out 29761: ); 29761: 29761: extern void BZ2_bzWriteClose64 ( 29761: int* bzerror, 29761: BZFILE* b, 29761: int abandon, 29761: unsigned int* nbytes_in_lo32, 29761: unsigned int* nbytes_in_hi32, 29761: unsigned int* nbytes_out_lo32, 29761: unsigned int* nbytes_out_hi32 29761: ); 29761: 29761: 29761: 29761: 29761: 29761: extern int BZ2_bzBuffToBuffCompress ( 29761: char* dest, 29761: unsigned int* destLen, 29761: char* source, 29761: unsigned int sourceLen, 29761: int blockSize100k, 29761: int verbosity, 29761: int workFactor 29761: ); 29761: 29761: extern int BZ2_bzBuffToBuffDecompress ( 29761: char* dest, 29761: unsigned int* destLen, 29761: char* source, 29761: unsigned int sourceLen, 29761: int small, 29761: int verbosity 29761: ); 29761: # 233 "/usr/include/bzlib.h" 3 4 29761: extern const char * BZ2_bzlibVersion ( 29761: void 29761: ); 29761: 29761: 29761: extern BZFILE * BZ2_bzopen ( 29761: const char *path, 29761: const char *mode 29761: ); 29761: 29761: extern BZFILE * BZ2_bzdopen ( 29761: int fd, 29761: const char *mode 29761: ); 29761: 29761: extern int BZ2_bzread ( 29761: BZFILE* b, 29761: void* buf, 29761: int len 29761: ); 29761: 29761: extern int BZ2_bzwrite ( 29761: BZFILE* b, 29761: void* buf, 29761: int len 29761: ); 29761: 29761: extern int BZ2_bzflush ( 29761: BZFILE* b 29761: ); 29761: 29761: extern void BZ2_bzclose ( 29761: BZFILE* b 29761: ); 29761: 29761: extern const char * BZ2_bzerror ( 29761: BZFILE *b, 29761: int *errnum 29761: ); 29761: 29761: 29761: 29761: } 29761: # 42 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: 29761: # 1 "/usr/include/lz4.h" 1 3 4 29761: # 36 "/usr/include/lz4.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 44 "/usr/include/lz4.h" 2 3 4 29761: # 142 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_versionNumber (void); 29761: __attribute__ ((visibility ("default"))) const char* LZ4_versionString (void); 29761: # 191 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 29761: # 208 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity); 29761: # 226 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compressBound(int inputSize); 29761: # 236 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29761: # 245 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_sizeofState(void); 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29761: # 272 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_destSize(const char* src, char* dst, int* srcSizePtr, int targetDstSize); 29761: # 308 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 29761: 29761: 29761: 29761: 29761: 29761: typedef union LZ4_stream_u LZ4_stream_t; 29761: # 331 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_createStream(void); 29761: __attribute__ ((visibility ("default"))) int LZ4_freeStream (LZ4_stream_t* streamPtr); 29761: # 358 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) void LZ4_resetStream_fast (LZ4_stream_t* streamPtr); 29761: # 371 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 29761: # 380 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_loadDictSlow(LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 29761: # 414 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) void 29761: LZ4_attach_dictionary(LZ4_stream_t* workingStream, 29761: const LZ4_stream_t* dictionaryStream); 29761: # 441 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29761: # 450 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_saveDict (LZ4_stream_t* streamPtr, char* safeBuffer, int maxDictSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef union LZ4_streamDecode_u LZ4_streamDecode_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) LZ4_streamDecode_t* LZ4_createStreamDecode(void); 29761: __attribute__ ((visibility ("default"))) int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream); 29761: # 477 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize); 29761: # 490 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_decoderRingBufferSize(int maxBlockSize); 29761: # 531 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int 29761: LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, 29761: const char* src, char* dst, 29761: int srcSize, int dstCapacity); 29761: # 545 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int 29761: LZ4_decompress_safe_usingDict(const char* src, char* dst, 29761: int srcSize, int dstCapacity, 29761: const char* dictStart, int dictSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) int 29761: LZ4_decompress_safe_partial_usingDict(const char* src, char* dst, 29761: int compressedSize, 29761: int targetOutputSize, int maxOutputSize, 29761: const char* dictStart, int dictSize); 29761: # 701 "/usr/include/lz4.h" 3 4 29761: typedef int8_t LZ4_i8; 29761: typedef uint8_t LZ4_byte; 29761: typedef uint16_t LZ4_u16; 29761: typedef uint32_t LZ4_u32; 29761: # 718 "/usr/include/lz4.h" 3 4 29761: typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; 29761: struct LZ4_stream_t_internal { 29761: LZ4_u32 hashTable[(1 << (14 -2))]; 29761: const LZ4_byte* dictionary; 29761: const LZ4_stream_t_internal* dictCtx; 29761: LZ4_u32 currentOffset; 29761: LZ4_u32 tableType; 29761: LZ4_u32 dictSize; 29761: 29761: }; 29761: 29761: 29761: union LZ4_stream_u { 29761: char minStateSize[((1UL << (14)) + 32)]; 29761: LZ4_stream_t_internal internal_donotuse; 29761: }; 29761: # 750 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_initStream (void* stateBuffer, size_t size); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef struct { 29761: const LZ4_byte* externalDict; 29761: const LZ4_byte* prefixEnd; 29761: size_t extDictSize; 29761: size_t prefixSize; 29761: } LZ4_streamDecode_t_internal; 29761: 29761: 29761: union LZ4_streamDecode_u { 29761: char minStateSize[32]; 29761: LZ4_streamDecode_t_internal internal_donotuse; 29761: } ; 29761: # 806 "/usr/include/lz4.h" 3 4 29761: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress (const char* src, char* dest, int srcSize); 29761: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput (const char* src, char* dest, int srcSize, int maxOutputSize); 29761: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_withState (void* state, const char* source, char* dest, int inputSize); 29761: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput_withState (void* state, const char* source, char* dest, int inputSize, int maxOutputSize); 29761: [[deprecated("use LZ4_compress_fast_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_continue (LZ4_stream_t* LZ4_streamPtr, const char* source, char* dest, int inputSize); 29761: [[deprecated("use LZ4_compress_fast_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput_continue (LZ4_stream_t* LZ4_streamPtr, const char* source, char* dest, int inputSize, int maxOutputSize); 29761: 29761: 29761: [[deprecated("use LZ4_decompress_fast() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress (const char* source, char* dest, int outputSize); 29761: [[deprecated("use LZ4_decompress_safe() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); 29761: # 827 "/usr/include/lz4.h" 3 4 29761: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_create (char* inputBuffer); 29761: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamState(void); 29761: [[deprecated("Use LZ4_resetStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamState(void* state, char* inputBuffer); 29761: [[deprecated("Use LZ4_saveDict() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBuffer (void* state); 29761: 29761: 29761: [[deprecated("use LZ4_decompress_safe_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, int maxDstSize); 29761: [[deprecated("use LZ4_decompress_fast_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_withPrefix64k (const char* src, char* dst, int originalSize); 29761: # 862 "/usr/include/lz4.h" 3 4 29761: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_partial() instead")]] 29761: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast (const char* src, char* dst, int originalSize); 29761: [[deprecated("This function is deprecated and unsafe. Consider migrating towards LZ4_decompress_safe_continue() instead. " "Note that the contract will change (requires block's compressed size, instead of decompressed size)")]] 29761: 29761: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int originalSize); 29761: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_partial_usingDict() instead")]] 29761: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) void LZ4_resetStream (LZ4_stream_t* streamPtr); 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 46 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: # 1 "/usr/include/lz4hc.h" 1 3 4 29761: # 38 "/usr/include/lz4hc.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/lz4.h" 1 3 4 29761: # 36 "/usr/include/lz4.h" 3 4 29761: extern "C" { 29761: # 883 "/usr/include/lz4.h" 3 4 29761: } 29761: # 44 "/usr/include/lz4hc.h" 2 3 4 29761: # 66 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 29761: # 79 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_sizeofStateHC(void); 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_extStateHC(void* stateHC, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 29761: # 91 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_destSize(void* stateHC, 29761: const char* src, char* dst, 29761: int* srcSizePtr, int targetDstSize, 29761: int compressionLevel); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef union LZ4_streamHC_u LZ4_streamHC_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_createStreamHC(void); 29761: __attribute__ ((visibility ("default"))) int LZ4_freeStreamHC (LZ4_streamHC_t* streamHCPtr); 29761: # 157 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC_fast(LZ4_streamHC_t* streamHCPtr, int compressionLevel); 29761: __attribute__ ((visibility ("default"))) int LZ4_loadDictHC (LZ4_streamHC_t* streamHCPtr, const char* dictionary, int dictSize); 29761: 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue (LZ4_streamHC_t* streamHCPtr, 29761: const char* src, char* dst, 29761: int srcSize, int maxDstSize); 29761: # 174 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t* LZ4_streamHCPtr, 29761: const char* src, char* dst, 29761: int* srcSizePtr, int targetDstSize); 29761: 29761: __attribute__ ((visibility ("default"))) int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, int maxDictSize); 29761: # 205 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) void 29761: LZ4_attach_HC_dictionary(LZ4_streamHC_t* working_stream, 29761: const LZ4_streamHC_t* dictionary_stream); 29761: # 234 "/usr/include/lz4hc.h" 3 4 29761: typedef struct LZ4HC_CCtx_internal LZ4HC_CCtx_internal; 29761: struct LZ4HC_CCtx_internal 29761: { 29761: LZ4_u32 hashTable[(1 << 15)]; 29761: LZ4_u16 chainTable[(1<<16)]; 29761: const LZ4_byte* end; 29761: const LZ4_byte* prefixStart; 29761: const LZ4_byte* dictStart; 29761: LZ4_u32 dictLimit; 29761: LZ4_u32 lowLimit; 29761: LZ4_u32 nextToUpdate; 29761: short compressionLevel; 29761: LZ4_i8 favorDecSpeed; 29761: 29761: LZ4_i8 dirty; 29761: const LZ4HC_CCtx_internal* dictCtx; 29761: }; 29761: 29761: 29761: union LZ4_streamHC_u { 29761: char minStateSize[262200]; 29761: LZ4HC_CCtx_internal internal_donotuse; 29761: }; 29761: # 275 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_initStreamHC(void* buffer, size_t size); 29761: # 284 "/usr/include/lz4hc.h" 3 4 29761: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC (const char* source, char* dest, int inputSize); 29761: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); 29761: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); 29761: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput(const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29761: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_withStateHC (void* state, const char* source, char* dest, int inputSize); 29761: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput_withStateHC (void* state, const char* source, char* dest, int inputSize, int maxOutputSize); 29761: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_withStateHC (void* state, const char* source, char* dest, int inputSize, int compressionLevel); 29761: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput_withStateHC(void* state, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29761: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize); 29761: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize, int maxOutputSize); 29761: # 304 "/usr/include/lz4hc.h" 3 4 29761: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_createHC (const char* inputBuffer); 29761: [[deprecated("use LZ4_freeStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_freeHC (void* LZ4HC_Data); 29761: 29761: [[deprecated("use LZ4_saveDictHC() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBufferHC (void* LZ4HC_Data); 29761: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int compressionLevel); 29761: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29761: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamStateHC(void); 29761: [[deprecated("use LZ4_initStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamStateHC(void* state, char* inputBuffer); 29761: # 322 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionLevel); 29761: 29761: 29761: 29761: } 29761: # 47 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: 29761: # 1 "/usr/include/zstd.h" 1 3 4 29761: # 11 "/usr/include/zstd.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29761: # 19 "/usr/include/zstd.h" 2 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 20 "/usr/include/zstd.h" 2 3 4 29761: # 114 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_versionNumber(void); 29761: # 123 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) const char* ZSTD_versionString(void); 29761: # 155 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compress( void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: int compressionLevel); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress( void* dst, size_t dstCapacity, 29761: const void* src, size_t compressedSize); 29761: # 193 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[deprecated("Replaced by ZSTD_getFrameContentSize")]] 29761: __attribute__ ((visibility ("default"))) 29761: unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_findFrameCompressedSize(const void* src, size_t srcSize); 29761: # 233 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compressBound(size_t srcSize); 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_isError(size_t code); 29761: __attribute__ ((visibility ("default"))) const char* ZSTD_getErrorName(size_t code); 29761: __attribute__ ((visibility ("default"))) int ZSTD_minCLevel(void); 29761: __attribute__ ((visibility ("default"))) int ZSTD_maxCLevel(void); 29761: __attribute__ ((visibility ("default"))) int ZSTD_defaultCLevel(void); 29761: # 259 "/usr/include/zstd.h" 3 4 29761: typedef struct ZSTD_CCtx_s ZSTD_CCtx; 29761: __attribute__ ((visibility ("default"))) ZSTD_CCtx* ZSTD_createCCtx(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 29761: # 271 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: int compressionLevel); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef struct ZSTD_DCtx_s ZSTD_DCtx; 29761: __attribute__ ((visibility ("default"))) ZSTD_DCtx* ZSTD_createDCtx(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize); 29761: # 315 "/usr/include/zstd.h" 3 4 29761: typedef enum { ZSTD_fast=1, 29761: ZSTD_dfast=2, 29761: ZSTD_greedy=3, 29761: ZSTD_lazy=4, 29761: ZSTD_lazy2=5, 29761: ZSTD_btlazy2=6, 29761: ZSTD_btopt=7, 29761: ZSTD_btultra=8, 29761: ZSTD_btultra2=9 29761: 29761: 29761: } ZSTD_strategy; 29761: 29761: typedef enum { 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_compressionLevel=100, 29761: # 347 "/usr/include/zstd.h" 3 4 29761: ZSTD_c_windowLog=101, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_hashLog=102, 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_chainLog=103, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_searchLog=104, 29761: 29761: 29761: 29761: ZSTD_c_minMatch=105, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_targetLength=106, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_strategy=107, 29761: 29761: 29761: 29761: 29761: ZSTD_c_targetCBlockSize=130, 29761: # 407 "/usr/include/zstd.h" 3 4 29761: ZSTD_c_enableLongDistanceMatching=160, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_ldmHashLog=161, 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_ldmMinMatch=162, 29761: 29761: 29761: 29761: ZSTD_c_ldmBucketSizeLog=163, 29761: 29761: 29761: 29761: ZSTD_c_ldmHashRateLog=164, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_contentSizeFlag=200, 29761: 29761: 29761: 29761: ZSTD_c_checksumFlag=201, 29761: ZSTD_c_dictIDFlag=202, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_nbWorkers=400, 29761: # 459 "/usr/include/zstd.h" 3 4 29761: ZSTD_c_jobSize=401, 29761: 29761: 29761: 29761: 29761: ZSTD_c_overlapLog=402, 29761: # 500 "/usr/include/zstd.h" 3 4 29761: ZSTD_c_experimentalParam1=500, 29761: ZSTD_c_experimentalParam2=10, 29761: ZSTD_c_experimentalParam3=1000, 29761: ZSTD_c_experimentalParam4=1001, 29761: ZSTD_c_experimentalParam5=1002, 29761: 29761: ZSTD_c_experimentalParam7=1004, 29761: ZSTD_c_experimentalParam8=1005, 29761: ZSTD_c_experimentalParam9=1006, 29761: ZSTD_c_experimentalParam10=1007, 29761: ZSTD_c_experimentalParam11=1008, 29761: ZSTD_c_experimentalParam12=1009, 29761: ZSTD_c_experimentalParam13=1010, 29761: ZSTD_c_experimentalParam14=1011, 29761: ZSTD_c_experimentalParam15=1012, 29761: ZSTD_c_experimentalParam16=1013, 29761: ZSTD_c_experimentalParam17=1014, 29761: ZSTD_c_experimentalParam18=1015, 29761: ZSTD_c_experimentalParam19=1016 29761: } ZSTD_cParameter; 29761: 29761: typedef struct { 29761: size_t error; 29761: int lowerBound; 29761: int upperBound; 29761: } ZSTD_bounds; 29761: # 534 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam); 29761: # 547 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value); 29761: # 564 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 29761: 29761: typedef enum { 29761: ZSTD_reset_session_only = 1, 29761: ZSTD_reset_parameters = 2, 29761: ZSTD_reset_session_and_parameters = 3 29761: } ZSTD_ResetDirective; 29761: # 586 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); 29761: # 600 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compress2( ZSTD_CCtx* cctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize); 29761: # 617 "/usr/include/zstd.h" 3 4 29761: typedef enum { 29761: 29761: ZSTD_d_windowLogMax=100, 29761: # 638 "/usr/include/zstd.h" 3 4 29761: ZSTD_d_experimentalParam1=1000, 29761: ZSTD_d_experimentalParam2=1001, 29761: ZSTD_d_experimentalParam3=1002, 29761: ZSTD_d_experimentalParam4=1003, 29761: ZSTD_d_experimentalParam5=1004, 29761: ZSTD_d_experimentalParam6=1005 29761: 29761: } ZSTD_dParameter; 29761: # 654 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam); 29761: # 663 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int value); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef struct ZSTD_inBuffer_s { 29761: const void* src; 29761: size_t size; 29761: size_t pos; 29761: } ZSTD_inBuffer; 29761: 29761: typedef struct ZSTD_outBuffer_s { 29761: void* dst; 29761: size_t size; 29761: size_t pos; 29761: } ZSTD_outBuffer; 29761: # 753 "/usr/include/zstd.h" 3 4 29761: typedef ZSTD_CCtx ZSTD_CStream; 29761: 29761: 29761: __attribute__ ((visibility ("default"))) ZSTD_CStream* ZSTD_createCStream(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCStream(ZSTD_CStream* zcs); 29761: 29761: 29761: typedef enum { 29761: ZSTD_e_continue=0, 29761: ZSTD_e_flush=1, 29761: 29761: 29761: 29761: ZSTD_e_end=2 29761: 29761: 29761: 29761: 29761: } ZSTD_EndDirective; 29761: # 800 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 29761: ZSTD_outBuffer* output, 29761: ZSTD_inBuffer* input, 29761: ZSTD_EndDirective endOp); 29761: # 819 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamInSize(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamOutSize(void); 29761: # 839 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 29761: # 880 "/usr/include/zstd.h" 3 4 29761: typedef ZSTD_DCtx ZSTD_DStream; 29761: 29761: 29761: __attribute__ ((visibility ("default"))) ZSTD_DStream* ZSTD_createDStream(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDStream(ZSTD_DStream* zds); 29761: # 896 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_initDStream(ZSTD_DStream* zds); 29761: # 919 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamInSize(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamOutSize(void); 29761: # 935 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingDict(ZSTD_CCtx* ctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: const void* dict,size_t dictSize, 29761: int compressionLevel); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: const void* dict,size_t dictSize); 29761: 29761: 29761: 29761: 29761: 29761: typedef struct ZSTD_CDict_s ZSTD_CDict; 29761: # 970 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 29761: int compressionLevel); 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: const ZSTD_CDict* cdict); 29761: 29761: 29761: typedef struct ZSTD_DDict_s ZSTD_DDict; 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDDict(ZSTD_DDict* ddict); 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: const ZSTD_DDict* ddict); 29761: # 1018 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict); 29761: # 1042 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize); 29761: # 1079 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); 29761: # 1093 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 29761: # 1114 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 29761: const void* prefix, size_t prefixSize); 29761: # 1132 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); 29761: # 1151 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 29761: # 1169 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, 29761: const void* prefix, size_t prefixSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CStream(const ZSTD_CStream* zcs); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DStream(const ZSTD_DStream* zds); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict); 29761: # 3088 "/usr/include/zstd.h" 3 4 29761: } 29761: # 51 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: # 1 "/usr/include/zdict.h" 1 3 4 29761: # 12 "/usr/include/zdict.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 20 "/usr/include/zdict.h" 2 3 4 29761: # 210 "/usr/include/zdict.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity, 29761: const void* samplesBuffer, 29761: const size_t* samplesSizes, unsigned nbSamples); 29761: 29761: typedef struct { 29761: int compressionLevel; 29761: unsigned notificationLevel; 29761: unsigned dictID; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } ZDICT_params_t; 29761: # 262 "/usr/include/zdict.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZDICT_finalizeDictionary(void* dstDictBuffer, size_t maxDictSize, 29761: const void* dictContent, size_t dictContentSize, 29761: const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, 29761: ZDICT_params_t parameters); 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); 29761: __attribute__ ((visibility ("default"))) size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize); 29761: __attribute__ ((visibility ("default"))) unsigned ZDICT_isError(size_t errorCode); 29761: __attribute__ ((visibility ("default"))) const char* ZDICT_getErrorName(size_t errorCode); 29761: # 473 "/usr/include/zdict.h" 3 4 29761: } 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: namespace rocksdb { 29761: # 88 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: class ZSTDUncompressCachedData { 29761: public: 29761: using ZSTDNativeContext = ZSTD_DCtx*; 29761: ZSTDUncompressCachedData() {} 29761: 29761: ZSTDUncompressCachedData(const ZSTDUncompressCachedData& o) = delete; 29761: ZSTDUncompressCachedData& operator=(const ZSTDUncompressCachedData&) = delete; 29761: ZSTDUncompressCachedData(ZSTDUncompressCachedData&& o) noexcept 29761: : ZSTDUncompressCachedData() { 29761: *this = std::move(o); 29761: } 29761: ZSTDUncompressCachedData& operator=(ZSTDUncompressCachedData&& o) noexcept { 29761: 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: zstd_ctx_ == nullptr 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "zstd_ctx_ == nullptr" 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: std::swap(zstd_ctx_, o.zstd_ctx_); 29761: std::swap(cache_idx_, o.cache_idx_); 29761: return *this; 29761: } 29761: ZSTDNativeContext Get() const { return zstd_ctx_; } 29761: int64_t GetCacheIndex() const { return cache_idx_; } 29761: void CreateIfNeeded() { 29761: if (zstd_ctx_ == nullptr) { 29761: 29761: 29761: 29761: 29761: zstd_ctx_ = ZSTD_createDCtx(); 29761: 29761: cache_idx_ = -1; 29761: } 29761: } 29761: void InitFromCache(const ZSTDUncompressCachedData& o, int64_t idx) { 29761: zstd_ctx_ = o.zstd_ctx_; 29761: cache_idx_ = idx; 29761: } 29761: ~ZSTDUncompressCachedData() { 29761: if (zstd_ctx_ != nullptr && cache_idx_ == -1) { 29761: ZSTD_freeDCtx(zstd_ctx_); 29761: } 29761: } 29761: 29761: private: 29761: ZSTDNativeContext zstd_ctx_ = nullptr; 29761: int64_t cache_idx_ = -1; 29761: }; 29761: 29761: } 29761: # 163 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: struct CompressionDict { 29761: 29761: ZSTD_CDict* zstd_cdict_ = nullptr; 29761: 29761: std::string dict_; 29761: 29761: public: 29761: 29761: CompressionDict(std::string dict, CompressionType type, int level) { 29761: 29761: 29761: 29761: dict_ = std::move(dict); 29761: 29761: zstd_cdict_ = nullptr; 29761: if (!dict_.empty() && (type == kZSTD || type == kZSTDNotFinalCompression)) { 29761: if (level == CompressionOptions::kDefaultCompressionLevel) { 29761: 29761: 29761: 29761: 29761: 29761: level = 3; 29761: } 29761: 29761: 29761: zstd_cdict_ = ZSTD_createCDict(dict_.data(), dict_.size(), level); 29761: 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: zstd_cdict_ != nullptr 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "zstd_cdict_ != nullptr" 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: } 29761: 29761: } 29761: 29761: ~CompressionDict() { 29761: 29761: size_t res = 0; 29761: if (zstd_cdict_ != nullptr) { 29761: res = ZSTD_freeCDict(zstd_cdict_); 29761: } 29761: 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: res == 0 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "res == 0" 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: (void)res; 29761: 29761: } 29761: 29761: 29761: const ZSTD_CDict* GetDigestedZstdCDict() const { return zstd_cdict_; } 29761: 29761: 29761: Slice GetRawDict() const { return dict_; } 29761: 29761: static const CompressionDict& GetEmptyDict() { 29761: static CompressionDict empty_dict{}; 29761: return empty_dict; 29761: } 29761: 29761: CompressionDict() = default; 29761: 29761: CompressionDict(const CompressionDict&) = delete; 29761: CompressionDict& operator=(const CompressionDict&) = delete; 29761: CompressionDict(CompressionDict&&) = delete; 29761: CompressionDict& operator=(CompressionDict&&) = delete; 29761: }; 29761: 29761: 29761: 29761: struct UncompressionDict { 29761: 29761: 29761: std::string dict_; 29761: 29761: 29761: 29761: 29761: CacheAllocationPtr allocation_; 29761: 29761: 29761: 29761: 29761: Slice slice_; 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: UncompressionDict(std::string dict, bool ) 29761: 29761: : dict_(std::move(dict)), slice_(dict_) { 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: UncompressionDict(Slice slice, CacheAllocationPtr&& allocation, 29761: bool ) 29761: 29761: : allocation_(std::move(allocation)), slice_(std::move(slice)) { 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: UncompressionDict(UncompressionDict&& rhs) 29761: : dict_(std::move(rhs.dict_)), 29761: allocation_(std::move(rhs.allocation_)), 29761: slice_(std::move(rhs.slice_)) 29761: 29761: 29761: 29761: 29761: { 29761: 29761: 29761: 29761: } 29761: 29761: ~UncompressionDict() { 29761: # 304 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: UncompressionDict& operator=(UncompressionDict&& rhs) { 29761: if (this == &rhs) { 29761: return *this; 29761: } 29761: 29761: dict_ = std::move(rhs.dict_); 29761: allocation_ = std::move(rhs.allocation_); 29761: slice_ = std::move(rhs.slice_); 29761: 29761: 29761: 29761: 29761: 29761: 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: bool own_bytes() const { return !dict_.empty() || allocation_; } 29761: 29761: const Slice& GetRawDict() const { return slice_; } 29761: 29761: 29761: const Slice& ContentSlice() const { return slice_; } 29761: static constexpr CacheEntryRole kCacheEntryRole = CacheEntryRole::kOtherBlock; 29761: static constexpr BlockType kBlockType = BlockType::kCompressionDictionary; 29761: 29761: 29761: 29761: 29761: 29761: static const UncompressionDict& GetEmptyDict() { 29761: static UncompressionDict empty_dict{}; 29761: return empty_dict; 29761: } 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: size_t usage = sizeof(struct UncompressionDict); 29761: usage += dict_.size(); 29761: if (allocation_) { 29761: auto allocator = allocation_.get_deleter().allocator; 29761: if (allocator) { 29761: usage += allocator->UsableSize(allocation_.get(), slice_.size()); 29761: } else { 29761: usage += slice_.size(); 29761: } 29761: } 29761: 29761: 29761: 29761: return usage; 29761: } 29761: 29761: UncompressionDict() = default; 29761: 29761: UncompressionDict(const CompressionDict&) = delete; 29761: UncompressionDict& operator=(const CompressionDict&) = delete; 29761: }; 29761: 29761: class CompressionContext { 29761: private: 29761: 29761: ZSTD_CCtx* zstd_ctx_ = nullptr; 29761: 29761: ZSTD_CCtx* CreateZSTDContext() { 29761: 29761: 29761: 29761: return ZSTD_createCCtx(); 29761: 29761: } 29761: 29761: void CreateNativeContext(CompressionType type, int level, bool checksum) { 29761: if (type == kZSTD || type == kZSTDNotFinalCompression) { 29761: zstd_ctx_ = CreateZSTDContext(); 29761: 29761: if (level == CompressionOptions::kDefaultCompressionLevel) { 29761: 29761: 29761: level = 3; 29761: } 29761: size_t err = 29761: ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_compressionLevel, level); 29761: if (ZSTD_isError(err)) { 29761: 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: false 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "false" 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: ZSTD_freeCCtx(zstd_ctx_); 29761: zstd_ctx_ = CreateZSTDContext(); 29761: } 29761: if (checksum) { 29761: err = ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_checksumFlag, 1); 29761: if (ZSTD_isError(err)) { 29761: 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: false 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "false" 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: ZSTD_freeCCtx(zstd_ctx_); 29761: zstd_ctx_ = CreateZSTDContext(); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: } 29761: void DestroyNativeContext() { 29761: if (zstd_ctx_ != nullptr) { 29761: ZSTD_freeCCtx(zstd_ctx_); 29761: } 29761: } 29761: 29761: public: 29761: 29761: ZSTD_CCtx* ZSTDPreallocCtx() const { 29761: 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: zstd_ctx_ != nullptr 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "zstd_ctx_ != nullptr" 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: return zstd_ctx_; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: public: 29761: explicit CompressionContext(CompressionType type, 29761: const CompressionOptions& options) { 29761: CreateNativeContext(type, options.level, options.checksum); 29761: } 29761: ~CompressionContext() { DestroyNativeContext(); } 29761: CompressionContext(const CompressionContext&) = delete; 29761: CompressionContext& operator=(const CompressionContext&) = delete; 29761: }; 29761: 29761: class CompressionInfo { 29761: const CompressionOptions& opts_; 29761: const CompressionContext& context_; 29761: const CompressionDict& dict_; 29761: const CompressionType type_; 29761: const uint64_t sample_for_compression_; 29761: 29761: public: 29761: CompressionInfo(const CompressionOptions& _opts, 29761: const CompressionContext& _context, 29761: const CompressionDict& _dict, CompressionType _type, 29761: uint64_t _sample_for_compression) 29761: : opts_(_opts), 29761: context_(_context), 29761: dict_(_dict), 29761: type_(_type), 29761: sample_for_compression_(_sample_for_compression) {} 29761: 29761: const CompressionOptions& options() const { return opts_; } 29761: const CompressionContext& context() const { return context_; } 29761: const CompressionDict& dict() const { return dict_; } 29761: CompressionType type() const { return type_; } 29761: uint64_t SampleForCompression() const { return sample_for_compression_; } 29761: }; 29761: 29761: class UncompressionContext { 29761: private: 29761: CompressionContextCache* ctx_cache_ = nullptr; 29761: ZSTDUncompressCachedData uncomp_cached_data_; 29761: 29761: public: 29761: explicit UncompressionContext(CompressionType type) { 29761: if (type == kZSTD || type == kZSTDNotFinalCompression) { 29761: ctx_cache_ = CompressionContextCache::Instance(); 29761: uncomp_cached_data_ = ctx_cache_->GetCachedZSTDUncompressData(); 29761: } 29761: } 29761: ~UncompressionContext() { 29761: if (uncomp_cached_data_.GetCacheIndex() != -1) { 29761: 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ctx_cache_ != nullptr 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "ctx_cache_ != nullptr" 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: ctx_cache_->ReturnCachedZSTDUncompressData( 29761: uncomp_cached_data_.GetCacheIndex()); 29761: } 29761: } 29761: UncompressionContext(const UncompressionContext&) = delete; 29761: UncompressionContext& operator=(const UncompressionContext&) = delete; 29761: 29761: ZSTDUncompressCachedData::ZSTDNativeContext GetZSTDContext() const { 29761: return uncomp_cached_data_.Get(); 29761: } 29761: }; 29761: 29761: class UncompressionInfo { 29761: const UncompressionContext& context_; 29761: const UncompressionDict& dict_; 29761: const CompressionType type_; 29761: 29761: public: 29761: UncompressionInfo(const UncompressionContext& _context, 29761: const UncompressionDict& _dict, CompressionType _type) 29761: : context_(_context), dict_(_dict), type_(_type) {} 29761: 29761: const UncompressionContext& context() const { return context_; } 29761: const UncompressionDict& dict() const { return dict_; } 29761: CompressionType type() const { return type_; } 29761: }; 29761: 29761: inline bool Snappy_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool Zlib_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool BZip2_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool LZ4_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool XPRESS_Supported() { 29761: 29761: 29761: 29761: return false; 29761: 29761: } 29761: 29761: inline bool ZSTD_Supported() { 29761: 29761: 29761: return (ZSTD_versionNumber() >= 800); 29761: 29761: 29761: 29761: } 29761: 29761: inline bool ZSTDNotFinal_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool ZSTD_Streaming_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool StreamingCompressionTypeSupported( 29761: CompressionType compression_type) { 29761: switch (compression_type) { 29761: case kNoCompression: 29761: return true; 29761: case kZSTD: 29761: return ZSTD_Streaming_Supported(); 29761: default: 29761: return false; 29761: } 29761: } 29761: 29761: inline bool CompressionTypeSupported(CompressionType compression_type) { 29761: switch (compression_type) { 29761: case kNoCompression: 29761: return true; 29761: case kSnappyCompression: 29761: return Snappy_Supported(); 29761: case kZlibCompression: 29761: return Zlib_Supported(); 29761: case kBZip2Compression: 29761: return BZip2_Supported(); 29761: case kLZ4Compression: 29761: return LZ4_Supported(); 29761: case kLZ4HCCompression: 29761: return LZ4_Supported(); 29761: case kXpressCompression: 29761: return XPRESS_Supported(); 29761: case kZSTDNotFinalCompression: 29761: return ZSTDNotFinal_Supported(); 29761: case kZSTD: 29761: return ZSTD_Supported(); 29761: default: 29761: 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: false 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "false" 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: return false; 29761: } 29761: } 29761: 29761: inline bool DictCompressionTypeSupported(CompressionType compression_type) { 29761: switch (compression_type) { 29761: case kNoCompression: 29761: return false; 29761: case kSnappyCompression: 29761: return false; 29761: case kZlibCompression: 29761: return Zlib_Supported(); 29761: case kBZip2Compression: 29761: return false; 29761: case kLZ4Compression: 29761: case kLZ4HCCompression: 29761: 29761: return LZ4_Supported(); 29761: 29761: 29761: 29761: case kXpressCompression: 29761: return false; 29761: case kZSTDNotFinalCompression: 29761: 29761: return ZSTDNotFinal_Supported(); 29761: 29761: 29761: 29761: case kZSTD: 29761: 29761: return ZSTD_Supported(); 29761: 29761: 29761: 29761: default: 29761: 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: false 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "false" 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: return false; 29761: } 29761: } 29761: 29761: inline std::string CompressionTypeToString(CompressionType compression_type) { 29761: switch (compression_type) { 29761: case kNoCompression: 29761: return "NoCompression"; 29761: case kSnappyCompression: 29761: return "Snappy"; 29761: case kZlibCompression: 29761: return "Zlib"; 29761: case kBZip2Compression: 29761: return "BZip2"; 29761: case kLZ4Compression: 29761: return "LZ4"; 29761: case kLZ4HCCompression: 29761: return "LZ4HC"; 29761: case kXpressCompression: 29761: return "Xpress"; 29761: case kZSTD: 29761: return "ZSTD"; 29761: case kZSTDNotFinalCompression: 29761: return "ZSTDNotFinal"; 29761: case kDisableCompressionOption: 29761: return "DisableOption"; 29761: default: 29761: 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: false 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "false" 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: return ""; 29761: } 29761: } 29761: 29761: inline std::string CompressionOptionsToString( 29761: CompressionOptions& compression_options) { 29761: std::string result; 29761: result.reserve(512); 29761: result.append("window_bits=") 29761: .append(std::to_string(compression_options.window_bits)) 29761: .append("; "); 29761: result.append("level=") 29761: .append(std::to_string(compression_options.level)) 29761: .append("; "); 29761: result.append("strategy=") 29761: .append(std::to_string(compression_options.strategy)) 29761: .append("; "); 29761: result.append("max_dict_bytes=") 29761: .append(std::to_string(compression_options.max_dict_bytes)) 29761: .append("; "); 29761: result.append("zstd_max_train_bytes=") 29761: .append(std::to_string(compression_options.zstd_max_train_bytes)) 29761: .append("; "); 29761: result.append("enabled=") 29761: .append(std::to_string(compression_options.enabled)) 29761: .append("; "); 29761: result.append("max_dict_buffer_bytes=") 29761: .append(std::to_string(compression_options.max_dict_buffer_bytes)) 29761: .append("; "); 29761: result.append("use_zstd_dict_trainer=") 29761: .append(std::to_string(compression_options.use_zstd_dict_trainer)) 29761: .append("; "); 29761: return result; 29761: } 29761: # 713 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: inline bool Snappy_Compress(const CompressionInfo& , const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: output->resize(snappy::MaxCompressedLength(length)); 29761: size_t outlen; 29761: snappy::RawCompress(input, length, &(*output)[0], &outlen); 29761: output->resize(outlen); 29761: return true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: inline CacheAllocationPtr Snappy_Uncompress( 29761: const char* input, size_t length, size_t* uncompressed_size, 29761: MemoryAllocator* allocator = nullptr) { 29761: 29761: size_t uncompressed_length = 0; 29761: if (!snappy::GetUncompressedLength(input, length, &uncompressed_length)) { 29761: return nullptr; 29761: } 29761: 29761: CacheAllocationPtr output = AllocateBlock(uncompressed_length, allocator); 29761: 29761: if (!snappy::RawUncompress(input, length, output.get())) { 29761: return nullptr; 29761: } 29761: 29761: *uncompressed_size = uncompressed_length; 29761: 29761: return output; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: namespace compression { 29761: 29761: inline size_t PutDecompressedSizeInfo(std::string* output, uint32_t length) { 29761: PutVarint32(output, length); 29761: return output->size(); 29761: } 29761: 29761: inline bool GetDecompressedSizeInfo(const char** input_data, 29761: size_t* input_length, 29761: uint32_t* output_len) { 29761: auto new_input_data = 29761: GetVarint32Ptr(*input_data, *input_data + *input_length, output_len); 29761: if (new_input_data == nullptr) { 29761: return false; 29761: } 29761: *input_length -= (new_input_data - *input_data); 29761: *input_data = new_input_data; 29761: return true; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline bool Zlib_Compress(const CompressionInfo& info, 29761: uint32_t compress_format_version, const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: if (length > std::numeric_limits::max()) { 29761: 29761: return false; 29761: } 29761: 29761: size_t output_header_len = 0; 29761: if (compress_format_version == 2) { 29761: output_header_len = compression::PutDecompressedSizeInfo( 29761: output, static_cast(length)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: static const int memLevel = 8; 29761: int level; 29761: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 29761: level = 29761: # 806 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (-1) 29761: # 806 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: } else { 29761: level = info.options().level; 29761: } 29761: z_stream _stream; 29761: memset(&_stream, 0, sizeof(z_stream)); 29761: int st = 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: deflateInit2_(( 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: &_stream 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ),( 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: level 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ),(8),( 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: info.options().window_bits 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ),( 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: memLevel 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ), ( 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: info.options().strategy 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ), "1.3.1", (int)sizeof(z_stream)) 29761: 29761: # 813 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: if (st != 29761: # 814 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 814 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: return false; 29761: } 29761: 29761: Slice compression_dict = info.dict().GetRawDict(); 29761: if (compression_dict.size()) { 29761: 29761: st = deflateSetDictionary( 29761: &_stream, reinterpret_cast(compression_dict.data()), 29761: static_cast(compression_dict.size())); 29761: if (st != 29761: # 824 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 824 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: deflateEnd(&_stream); 29761: return false; 29761: } 29761: } 29761: 29761: 29761: size_t upper_bound = 29761: deflateBound(&_stream, static_cast(length)); 29761: output->resize(output_header_len + upper_bound); 29761: 29761: 29761: _stream.next_in = (Bytef*)input; 29761: _stream.avail_in = static_cast(length); 29761: 29761: 29761: _stream.avail_out = static_cast(upper_bound); 29761: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 29761: 29761: bool compressed = false; 29761: st = deflate(&_stream, 29761: # 844 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 4 29761: # 844 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ); 29761: if (st == 29761: # 845 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 1 29761: # 845 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: compressed = true; 29761: output->resize(output->size() - _stream.avail_out); 29761: } 29761: 29761: 29761: 29761: 29761: deflateEnd(&_stream); 29761: return compressed; 29761: # 863 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline CacheAllocationPtr Zlib_Uncompress( 29761: const UncompressionInfo& info, const char* input_data, size_t input_length, 29761: size_t* uncompressed_size, uint32_t compress_format_version, 29761: MemoryAllocator* allocator = nullptr, int windowBits = -14) { 29761: 29761: uint32_t output_len = 0; 29761: if (compress_format_version == 2) { 29761: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29761: &output_len)) { 29761: return nullptr; 29761: } 29761: } else { 29761: 29761: 29761: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 29761: output_len = static_cast( 29761: std::min(proposed_output_len, 29761: static_cast(std::numeric_limits::max()))); 29761: } 29761: 29761: z_stream _stream; 29761: memset(&_stream, 0, sizeof(z_stream)); 29761: 29761: 29761: 29761: 29761: int st = 29761: 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: inflateInit2_(( 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: &_stream 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ), ( 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: windowBits > 0 ? windowBits + 32 : windowBits 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ), "1.3.1", (int)sizeof(z_stream)) 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: if (st != 29761: # 899 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 899 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: return nullptr; 29761: } 29761: 29761: const Slice& compression_dict = info.dict().GetRawDict(); 29761: if (compression_dict.size()) { 29761: 29761: st = inflateSetDictionary( 29761: &_stream, reinterpret_cast(compression_dict.data()), 29761: static_cast(compression_dict.size())); 29761: if (st != 29761: # 909 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 909 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: return nullptr; 29761: } 29761: } 29761: 29761: _stream.next_in = (Bytef*)input_data; 29761: _stream.avail_in = static_cast(input_length); 29761: 29761: auto output = AllocateBlock(output_len, allocator); 29761: 29761: _stream.next_out = (Bytef*)output.get(); 29761: _stream.avail_out = static_cast(output_len); 29761: 29761: bool done = false; 29761: while (!done) { 29761: st = inflate(&_stream, 29761: # 924 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 2 29761: # 924 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ); 29761: switch (st) { 29761: case 29761: # 926 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 1 29761: # 926 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: : 29761: done = true; 29761: break; 29761: case 29761: # 929 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 929 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: : { 29761: 29761: 29761: 29761: 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: compress_format_version != 2 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "compress_format_version != 2" 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: size_t old_sz = output_len; 29761: uint32_t output_len_delta = output_len / 5; 29761: output_len += output_len_delta < 10 ? 10 : output_len_delta; 29761: auto tmp = AllocateBlock(output_len, allocator); 29761: memcpy(tmp.get(), output.get(), old_sz); 29761: output = std::move(tmp); 29761: 29761: 29761: _stream.next_out = (Bytef*)(output.get() + old_sz); 29761: _stream.avail_out = static_cast(output_len - old_sz); 29761: break; 29761: } 29761: case 29761: # 946 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (-5) 29761: # 946 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: : 29761: default: 29761: inflateEnd(&_stream); 29761: return nullptr; 29761: } 29761: } 29761: 29761: 29761: 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: compress_format_version != 2 || _stream.avail_out == 0 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "compress_format_version != 2 || _stream.avail_out == 0" 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: output_len >= _stream.avail_out 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "output_len >= _stream.avail_out" 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: *uncompressed_size = output_len - _stream.avail_out; 29761: inflateEnd(&_stream); 29761: return output; 29761: # 969 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: inline bool BZip2_Compress(const CompressionInfo& , 29761: uint32_t compress_format_version, const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: if (length > std::numeric_limits::max()) { 29761: 29761: return false; 29761: } 29761: size_t output_header_len = 0; 29761: if (compress_format_version == 2) { 29761: output_header_len = compression::PutDecompressedSizeInfo( 29761: output, static_cast(length)); 29761: } 29761: 29761: 29761: output->resize(output_header_len + length); 29761: 29761: bz_stream _stream; 29761: memset(&_stream, 0, sizeof(bz_stream)); 29761: 29761: 29761: 29761: 29761: int st = BZ2_bzCompressInit(&_stream, 1, 0, 30); 29761: if (st != 29761: # 999 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 999 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: return false; 29761: } 29761: 29761: 29761: _stream.next_in = (char*)input; 29761: _stream.avail_in = static_cast(length); 29761: 29761: 29761: _stream.avail_out = static_cast(length); 29761: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 29761: 29761: bool compressed = false; 29761: st = BZ2_bzCompress(&_stream, 29761: # 1012 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 2 29761: # 1012 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ); 29761: if (st == 29761: # 1013 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 4 29761: # 1013 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: compressed = true; 29761: output->resize(output->size() - _stream.avail_out); 29761: } 29761: 29761: 29761: 29761: 29761: BZ2_bzCompressEnd(&_stream); 29761: return compressed; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: inline CacheAllocationPtr BZip2_Uncompress( 29761: const char* input_data, size_t input_length, size_t* uncompressed_size, 29761: uint32_t compress_format_version, MemoryAllocator* allocator = nullptr) { 29761: 29761: uint32_t output_len = 0; 29761: if (compress_format_version == 2) { 29761: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29761: &output_len)) { 29761: return nullptr; 29761: } 29761: } else { 29761: 29761: 29761: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 29761: output_len = static_cast( 29761: std::min(proposed_output_len, 29761: static_cast(std::numeric_limits::max()))); 29761: } 29761: 29761: bz_stream _stream; 29761: memset(&_stream, 0, sizeof(bz_stream)); 29761: 29761: int st = BZ2_bzDecompressInit(&_stream, 0, 0); 29761: if (st != 29761: # 1059 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 1059 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: return nullptr; 29761: } 29761: 29761: _stream.next_in = (char*)input_data; 29761: _stream.avail_in = static_cast(input_length); 29761: 29761: auto output = AllocateBlock(output_len, allocator); 29761: 29761: _stream.next_out = (char*)output.get(); 29761: _stream.avail_out = static_cast(output_len); 29761: 29761: bool done = false; 29761: while (!done) { 29761: st = BZ2_bzDecompress(&_stream); 29761: switch (st) { 29761: case 29761: # 1075 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 4 29761: # 1075 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: : 29761: done = true; 29761: break; 29761: case 29761: # 1078 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 1078 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: : { 29761: 29761: 29761: 29761: 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: compress_format_version != 2 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "compress_format_version != 2" 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: uint32_t old_sz = output_len; 29761: output_len = output_len * 1.2; 29761: auto tmp = AllocateBlock(output_len, allocator); 29761: memcpy(tmp.get(), output.get(), old_sz); 29761: output = std::move(tmp); 29761: 29761: 29761: _stream.next_out = (char*)(output.get() + old_sz); 29761: _stream.avail_out = static_cast(output_len - old_sz); 29761: break; 29761: } 29761: default: 29761: BZ2_bzDecompressEnd(&_stream); 29761: return nullptr; 29761: } 29761: } 29761: 29761: 29761: 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: compress_format_version != 2 || _stream.avail_out == 0 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "compress_format_version != 2 || _stream.avail_out == 0" 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: output_len >= _stream.avail_out 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "output_len >= _stream.avail_out" 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: *uncompressed_size = output_len - _stream.avail_out; 29761: BZ2_bzDecompressEnd(&_stream); 29761: return output; 29761: # 1114 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline bool LZ4_Compress(const CompressionInfo& info, 29761: uint32_t compress_format_version, const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: if (length > std::numeric_limits::max()) { 29761: 29761: return false; 29761: } 29761: 29761: size_t output_header_len = 0; 29761: if (compress_format_version == 2) { 29761: 29761: output_header_len = compression::PutDecompressedSizeInfo( 29761: output, static_cast(length)); 29761: } else { 29761: 29761: 29761: output_header_len = 8; 29761: output->resize(output_header_len); 29761: char* p = const_cast(output->c_str()); 29761: memcpy(p, &length, sizeof(length)); 29761: } 29761: int compress_bound = LZ4_compressBound(static_cast(length)); 29761: output->resize(static_cast(output_header_len + compress_bound)); 29761: 29761: int outlen; 29761: 29761: LZ4_stream_t* stream = LZ4_createStream(); 29761: Slice compression_dict = info.dict().GetRawDict(); 29761: if (compression_dict.size()) { 29761: LZ4_loadDict(stream, compression_dict.data(), 29761: static_cast(compression_dict.size())); 29761: } 29761: 29761: int acceleration; 29761: if (info.options().level < 0) { 29761: acceleration = -info.options().level; 29761: } else { 29761: acceleration = 1; 29761: } 29761: outlen = LZ4_compress_fast_continue( 29761: stream, input, &(*output)[output_header_len], static_cast(length), 29761: compress_bound, acceleration); 29761: 29761: 29761: 29761: 29761: 29761: LZ4_freeStream(stream); 29761: 29761: 29761: 29761: 29761: 29761: if (outlen == 0) { 29761: return false; 29761: } 29761: output->resize(static_cast(output_header_len + outlen)); 29761: return true; 29761: # 1189 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline CacheAllocationPtr LZ4_Uncompress(const UncompressionInfo& info, 29761: const char* input_data, 29761: size_t input_length, 29761: size_t* uncompressed_size, 29761: uint32_t compress_format_version, 29761: MemoryAllocator* allocator = nullptr) { 29761: 29761: uint32_t output_len = 0; 29761: if (compress_format_version == 2) { 29761: 29761: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29761: &output_len)) { 29761: return nullptr; 29761: } 29761: } else { 29761: 29761: 29761: if (input_length < 8) { 29761: return nullptr; 29761: } 29761: if (port::kLittleEndian) { 29761: memcpy(&output_len, input_data, sizeof(output_len)); 29761: } else { 29761: memcpy(&output_len, input_data + 4, sizeof(output_len)); 29761: } 29761: input_length -= 8; 29761: input_data += 8; 29761: } 29761: 29761: auto output = AllocateBlock(output_len, allocator); 29761: 29761: int decompress_bytes = 0; 29761: 29761: 29761: LZ4_streamDecode_t* stream = LZ4_createStreamDecode(); 29761: const Slice& compression_dict = info.dict().GetRawDict(); 29761: if (compression_dict.size()) { 29761: LZ4_setStreamDecode(stream, compression_dict.data(), 29761: static_cast(compression_dict.size())); 29761: } 29761: decompress_bytes = LZ4_decompress_safe_continue( 29761: stream, input_data, output.get(), static_cast(input_length), 29761: static_cast(output_len)); 29761: LZ4_freeStreamDecode(stream); 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (decompress_bytes < 0) { 29761: return nullptr; 29761: } 29761: 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: decompress_bytes == static_cast(output_len) 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "decompress_bytes == static_cast(output_len)" 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: *uncompressed_size = decompress_bytes; 29761: return output; 29761: # 1262 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline bool LZ4HC_Compress(const CompressionInfo& info, 29761: uint32_t compress_format_version, const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: if (length > std::numeric_limits::max()) { 29761: 29761: return false; 29761: } 29761: 29761: size_t output_header_len = 0; 29761: if (compress_format_version == 2) { 29761: 29761: output_header_len = compression::PutDecompressedSizeInfo( 29761: output, static_cast(length)); 29761: } else { 29761: 29761: 29761: output_header_len = 8; 29761: output->resize(output_header_len); 29761: char* p = const_cast(output->c_str()); 29761: memcpy(p, &length, sizeof(length)); 29761: } 29761: int compress_bound = LZ4_compressBound(static_cast(length)); 29761: output->resize(static_cast(output_header_len + compress_bound)); 29761: 29761: int outlen; 29761: int level; 29761: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 29761: level = 0; 29761: } else { 29761: level = info.options().level; 29761: } 29761: 29761: LZ4_streamHC_t* stream = LZ4_createStreamHC(); 29761: LZ4_resetStreamHC(stream, level); 29761: Slice compression_dict = info.dict().GetRawDict(); 29761: const char* compression_dict_data = 29761: compression_dict.size() > 0 ? compression_dict.data() : nullptr; 29761: size_t compression_dict_size = compression_dict.size(); 29761: if (compression_dict_data != nullptr) { 29761: LZ4_loadDictHC(stream, compression_dict_data, 29761: static_cast(compression_dict_size)); 29761: } 29761: 29761: 29761: outlen = 29761: LZ4_compress_HC_continue(stream, input, &(*output)[output_header_len], 29761: static_cast(length), compress_bound); 29761: 29761: 29761: 29761: 29761: 29761: LZ4_freeStreamHC(stream); 29761: # 1335 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: if (outlen == 0) { 29761: return false; 29761: } 29761: output->resize(static_cast(output_header_len + outlen)); 29761: return true; 29761: # 1348 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline bool XPRESS_Compress(const char* , size_t , 29761: std::string* ) { 29761: return false; 29761: } 29761: # 1368 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: inline char* XPRESS_Uncompress(const char* , 29761: size_t , 29761: size_t* ) { 29761: return nullptr; 29761: } 29761: 29761: 29761: inline bool ZSTD_Compress(const CompressionInfo& info, const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: if (length > std::numeric_limits::max()) { 29761: 29761: return false; 29761: } 29761: 29761: size_t output_header_len = compression::PutDecompressedSizeInfo( 29761: output, static_cast(length)); 29761: 29761: size_t compressBound = ZSTD_compressBound(length); 29761: output->resize(static_cast(output_header_len + compressBound)); 29761: size_t outlen = 0; 29761: 29761: ZSTD_CCtx* context = info.context().ZSTDPreallocCtx(); 29761: 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: context != nullptr 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "context != nullptr" 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: 29761: if (info.dict().GetDigestedZstdCDict() != nullptr) { 29761: ZSTD_CCtx_refCDict(context, info.dict().GetDigestedZstdCDict()); 29761: } else { 29761: ZSTD_CCtx_loadDictionary(context, info.dict().GetRawDict().data(), 29761: info.dict().GetRawDict().size()); 29761: } 29761: 29761: 29761: outlen = ZSTD_compress2(context, &(*output)[output_header_len], compressBound, 29761: input, length); 29761: # 1431 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: if (outlen == 0) { 29761: return false; 29761: } 29761: output->resize(output_header_len + outlen); 29761: return true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline CacheAllocationPtr ZSTD_Uncompress( 29761: const UncompressionInfo& info, const char* input_data, size_t input_length, 29761: size_t* uncompressed_size, MemoryAllocator* allocator = nullptr, 29761: const char** error_message = nullptr) { 29761: 29761: static const char* const kErrorDecodeOutputSize = 29761: "Cannot decode output size."; 29761: static const char* const kErrorOutputLenMismatch = 29761: "Decompressed size does not match header."; 29761: uint32_t output_len = 0; 29761: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29761: &output_len)) { 29761: if (error_message) { 29761: *error_message = kErrorDecodeOutputSize; 29761: } 29761: return nullptr; 29761: } 29761: 29761: CacheAllocationPtr output = AllocateBlock(output_len, allocator); 29761: size_t actual_output_length = 0; 29761: 29761: ZSTD_DCtx* context = info.context().GetZSTDContext(); 29761: 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: context != nullptr 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "context != nullptr" 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: 29761: 29761: 29761: 29/usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/merge_operator.cc 761: 29761: 29761: 29761: actual_output_length = ZSTD_decompress_usingDict( 29761: context, output.get(), output_len, input_data, input_length, 29761: info.dict().GetRawDict().data(), info.dict().GetRawDict().size()); 29761: # 1491 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: if (ZSTD_isError(actual_output_length)) { 29761: if (error_message) { 29761: *error_message = ZSTD_getErrorName(actual_output_length); 29761: } 29761: return nullptr; 29761: } else if (actual_output_length != output_len) { 29761: if (error_message) { 29761: *error_message = kErrorOutputLenMismatch; 29761: } 29761: return nullptr; 29761: } 29761: 29761: *uncompressed_size = actual_output_length; 29761: return output; 29761: # 1514 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: inline bool ZSTD_TrainDictionarySupported() { 29761: 29761: 29761: 29761: 29761: return (ZSTD_versionNumber() >= 10103); 29761: 29761: 29761: 29761: } 29761: 29761: inline std::string ZSTD_TrainDictionary(const std::string& samples, 29761: const std::vector& sample_lens, 29761: size_t max_dict_bytes) { 29761: 29761: 29761: 29761: 29761: 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: samples.empty() == sample_lens.empty() 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "samples.empty() == sample_lens.empty()" 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: if (samples.empty()) { 29761: return ""; 29761: } 29761: std::string dict_data(max_dict_bytes, '\0'); 29761: size_t dict_len = ZDICT_trainFromBuffer( 29761: &dict_data[0], max_dict_bytes, &samples[0], &sample_lens[0], 29761: static_cast(sample_lens.size())); 29761: if (ZDICT_isError(dict_len)) { 29761: return ""; 29761: } 29761: 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: dict_len <= max_dict_bytes 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "dict_len <= max_dict_bytes" 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: dict_data.resize(dict_len); 29761: return dict_data; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: inline std::string ZSTD_TrainDictionary(const std::string& samples, 29761: size_t sample_len_shift, 29761: size_t max_dict_bytes) { 29761: 29761: 29761: 29761: 29761: size_t num_samples = samples.size() >> sample_len_shift; 29761: std::vector sample_lens(num_samples, size_t(1) << sample_len_shift); 29761: return ZSTD_TrainDictionary(samples, sample_lens, max_dict_bytes); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: inline bool ZSTD_FinalizeDictionarySupported() { 29761: 29761: 29761: return (ZSTD_versionNumber() >= 10405); 29761: 29761: 29761: 29761: } 29761: 29761: inline std::string ZSTD_FinalizeDictionary( 29761: const std::string& samples, const std::vector& sample_lens, 29761: size_t max_dict_bytes, int level) { 29761: 29761: 29761: 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: samples.empty() == sample_lens.empty() 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "samples.empty() == sample_lens.empty()" 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: if (samples.empty()) { 29761: return ""; 29761: } 29761: if (level == CompressionOptions::kDefaultCompressionLevel) { 29761: 29761: 29761: level = 3; 29761: } 29761: std::string dict_data(max_dict_bytes, '\0'); 29761: size_t dict_len = ZDICT_finalizeDictionary( 29761: dict_data.data(), max_dict_bytes, samples.data(), 29761: std::min(static_cast(samples.size()), max_dict_bytes), 29761: samples.data(), sample_lens.data(), 29761: static_cast(sample_lens.size()), 29761: {level, 0 , 0 }); 29761: if (ZDICT_isError(dict_len)) { 29761: return ""; 29761: } else { 29761: 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: dict_len <= max_dict_bytes 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "dict_len <= max_dict_bytes" 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: dict_data.resize(dict_len); 29761: return dict_data; 29761: } 29761: # 1621 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: inline bool CompressData(const Slice& raw, 29761: const CompressionInfo& compression_info, 29761: uint32_t compress_format_version, 29761: std::string* compressed_output) { 29761: bool ret = false; 29761: 29761: 29761: 29761: switch (compression_info.type()) { 29761: case kSnappyCompression: 29761: ret = Snappy_Compress(compression_info, raw.data(), raw.size(), 29761: compressed_output); 29761: break; 29761: case kZlibCompression: 29761: ret = Zlib_Compress(compression_info, compress_format_version, raw.data(), 29761: raw.size(), compressed_output); 29761: break; 29761: case kBZip2Compression: 29761: ret = BZip2_Compress(compression_info, compress_format_version, 29761: raw.data(), raw.size(), compressed_output); 29761: break; 29761: case kLZ4Compression: 29761: ret = LZ4_Compress(compression_info, compress_format_version, raw.data(), 29761: raw.size(), compressed_output); 29761: break; 29761: case kLZ4HCCompression: 29761: ret = LZ4HC_Compress(compression_info, compress_format_version, 29761: raw.data(), raw.size(), compressed_output); 29761: break; 29761: case kXpressCompression: 29761: ret = XPRESS_Compress(raw.data(), raw.size(), compressed_output); 29761: break; 29761: case kZSTD: 29761: case kZSTDNotFinalCompression: 29761: ret = ZSTD_Compress(compression_info, raw.data(), raw.size(), 29761: compressed_output); 29761: break; 29761: default: 29761: 29761: break; 29761: } 29761: 29761: rocksdb::SyncPoint::GetInstance()->Process("CompressData:TamperWithReturnValue", static_cast(&ret)) 29761: ; 29761: 29761: return ret; 29761: } 29761: 29761: inline CacheAllocationPtr UncompressData( 29761: const UncompressionInfo& uncompression_info, const char* data, size_t n, 29761: size_t* uncompressed_size, uint32_t compress_format_version, 29761: MemoryAllocator* allocator = nullptr, 29761: const char** error_message = nullptr) { 29761: switch (uncompression_info.type()) { 29761: case kSnappyCompression: 29761: return Snappy_Uncompress(data, n, uncompressed_size, allocator); 29761: case kZlibCompression: 29761: return Zlib_Uncompress(uncompression_info, data, n, uncompressed_size, 29761: compress_format_version, allocator); 29761: case kBZip2Compression: 29761: return BZip2_Uncompress(data, n, uncompressed_size, 29761: compress_format_version, allocator); 29761: case kLZ4Compression: 29761: case kLZ4HCCompression: 29761: return LZ4_Uncompress(uncompression_info, data, n, uncompressed_size, 29761: compress_format_version, allocator); 29761: case kXpressCompression: 29761: 29761: 29761: return CacheAllocationPtr(XPRESS_Uncompress(data, n, uncompressed_size)); 29761: case kZSTD: 29761: case kZSTDNotFinalCompression: 29761: 29761: return ZSTD_Uncompress(uncompression_info, data, n, uncompressed_size, 29761: allocator, error_message); 29761: default: 29761: return CacheAllocationPtr(); 29761: } 29761: } 29761: 29761: 29761: class CompressionTypeRecord { 29761: public: 29761: explicit CompressionTypeRecord(CompressionType compression_type) 29761: : compression_type_(compression_type) {} 29761: 29761: CompressionType GetCompressionType() const { return compression_type_; } 29761: 29761: inline void EncodeTo(std::string* dst) const { 29761: 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: dst != nullptr 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "dst != nullptr" 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: PutFixed32(dst, compression_type_); 29761: } 29761: 29761: inline Status DecodeFrom(Slice* src) { 29761: constexpr char class_name[] = "CompressionTypeRecord"; 29761: 29761: uint32_t val; 29761: if (!GetFixed32(src, &val)) { 29761: return Status::Corruption(class_name, 29761: "Error decoding WAL compression type"); 29761: } 29761: CompressionType compression_type = static_cast(val); 29761: if (!StreamingCompressionTypeSupported(compression_type)) { 29761: return Status::Corruption(class_name, 29761: "WAL compression type not supported"); 29761: } 29761: compression_type_ = compression_type; 29761: return Status::OK(); 29761: } 29761: 29761: inline std::string DebugString() const { 29761: return "compression_type: " + CompressionTypeToString(compression_type_); 29761: } 29761: 29761: private: 29761: CompressionType compression_type_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class StreamingCompress { 29761: public: 29761: StreamingCompress(CompressionType compression_type, 29761: const CompressionOptions& opts, 29761: uint32_t compress_format_version, size_t max_output_len) 29761: : compression_type_(compression_type), 29761: opts_(opts), 29761: compress_format_version_(compress_format_version), 29761: max_output_len_(max_output_len) {} 29761: virtual ~StreamingCompress() = default; 29761: # 1767 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: virtual int Compress(const char* input, size_t input_size, char* output, 29761: size_t* output_pos) = 0; 29761: 29761: 29761: static StreamingCompress* Create(CompressionType compression_type, 29761: const CompressionOptions& opts, 29761: uint32_t compress_format_version, 29761: size_t max_output_len); 29761: virtual void Reset() = 0; 29761: 29761: protected: 29761: const CompressionType compression_type_; 29761: const CompressionOptions opts_; 29761: const uint32_t compress_format_version_; 29761: const size_t max_output_len_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class StreamingUncompress { 29761: public: 29761: StreamingUncompress(CompressionType compression_type, 29761: uint32_t compress_format_version, size_t max_output_len) 29761: : compression_type_(compression_type), 29761: compress_format_version_(compress_format_version), 29761: max_output_len_(max_output_len) {} 29761: virtual ~StreamingUncompress() = default; 29761: # 1810 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: virtual int Uncompress(const char* input, size_t input_size, char* output, 29761: size_t* output_pos) = 0; 29761: static StreamingUncompress* Create(CompressionType compression_type, 29761: uint32_t compress_format_version, 29761: size_t max_output_len); 29761: virtual void Reset() = 0; 29761: 29761: protected: 29761: CompressionType compression_type_; 29761: uint32_t compress_format_version_; 29761: size_t max_output_len_; 29761: }; 29761: 29761: class ZSTDStreamingCompress final : public StreamingCompress { 29761: public: 29761: explicit ZSTDStreamingCompress(const CompressionOptions& opts, 29761: uint32_t compress_format_version, 29761: size_t max_output_len) 29761: : StreamingCompress(kZSTD, opts, compress_format_version, 29761: max_output_len) { 29761: 29761: cctx_ = ZSTD_createCCtx(); 29761: 29761: ZSTD_CCtx_setParameter(cctx_, ZSTD_c_checksumFlag, 1); 29761: 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: cctx_ != nullptr 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "cctx_ != nullptr" 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: input_buffer_ = { nullptr, 0, 0}; 29761: 29761: } 29761: ~ZSTDStreamingCompress() override { 29761: 29761: ZSTD_freeCCtx(cctx_); 29761: 29761: } 29761: int Compress(const char* input, size_t input_size, char* output, 29761: size_t* output_pos) override; 29761: void Reset() override; 29761: 29761: ZSTD_CCtx* cctx_; 29761: ZSTD_inBuffer input_buffer_; 29761: 29761: }; 29761: 29761: class ZSTDStreamingUncompress final : public StreamingUncompress { 29761: public: 29761: explicit ZSTDStreamingUncompress(uint32_t compress_format_version, 29761: size_t max_output_len) 29761: : StreamingUncompress(kZSTD, compress_format_version, max_output_len) { 29761: 29761: dctx_ = ZSTD_createDCtx(); 29761: 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: dctx_ != nullptr 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "dctx_ != nullptr" 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: input_buffer_ = { nullptr, 0, 0}; 29761: 29761: } 29761: ~ZSTDStreamingUncompress() override { 29761: 29761: ZSTD_freeDCtx(dctx_); 29761: 29761: } 29761: int Uncompress(const char* input, size_t input_size, char* output, 29761: size_t* output_size) override; 29761: void Reset() override; 29761: 29761: private: 29761: 29761: ZSTD_DCtx* dctx_; 29761: ZSTD_inBuffer input_buffer_; 29761: 29761: }; 29761: 29761: } 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: struct ImmutableCFOptions { 29761: public: 29761: static const char* kName() { return "ImmutableCFOptions"; } 29761: explicit ImmutableCFOptions(); 29761: explicit ImmutableCFOptions(const ColumnFamilyOptions& cf_options); 29761: 29761: CompactionStyle compaction_style; 29761: 29761: CompactionPri compaction_pri; 29761: 29761: const Comparator* user_comparator; 29761: InternalKeyComparator internal_comparator; 29761: 29761: std::shared_ptr merge_operator; 29761: 29761: const CompactionFilter* compaction_filter; 29761: 29761: std::shared_ptr compaction_filter_factory; 29761: 29761: int min_write_buffer_number_to_merge; 29761: 29761: int max_write_buffer_number_to_maintain; 29761: 29761: int64_t max_write_buffer_size_to_maintain; 29761: 29761: bool inplace_update_support; 29761: 29761: UpdateStatus (*inplace_callback)(char* existing_value, 29761: uint32_t* existing_value_size, 29761: Slice delta_value, 29761: std::string* merged_value); 29761: 29761: std::shared_ptr memtable_factory; 29761: 29761: Options::TablePropertiesCollectorFactories 29761: table_properties_collector_factories; 29761: 29761: 29761: 29761: uint32_t bloom_locality; 29761: 29761: bool level_compaction_dynamic_level_bytes; 29761: 29761: int num_levels; 29761: 29761: bool optimize_filters_for_hits; 29761: 29761: bool force_consistency_checks; 29761: 29761: Temperature default_temperature; 29761: 29761: std::shared_ptr 29761: memtable_insert_with_hint_prefix_extractor; 29761: 29761: std::vector cf_paths; 29761: 29761: std::shared_ptr compaction_thread_limiter; 29761: 29761: std::shared_ptr sst_partitioner_factory; 29761: 29761: std::shared_ptr blob_cache; 29761: 29761: bool persist_user_defined_timestamps; 29761: }; 29761: 29761: struct ImmutableOptions : public ImmutableDBOptions, public ImmutableCFOptions { 29761: explicit ImmutableOptions(); 29761: explicit ImmutableOptions(const Options& options); 29761: 29761: ImmutableOptions(const DBOptions& db_options, 29761: const ColumnFamilyOptions& cf_options); 29761: 29761: ImmutableOptions(const ImmutableDBOptions& db_options, 29761: const ImmutableCFOptions& cf_options); 29761: 29761: ImmutableOptions(const DBOptions& db_options, 29761: const ImmutableCFOptions& cf_options); 29761: 29761: ImmutableOptions(const ImmutableDBOptions& db_options, 29761: const ColumnFamilyOptions& cf_options); 29761: }; 29761: 29761: struct MutableCFOptions { 29761: static const char* kName() { return "MutableCFOptions"; } 29761: explicit MutableCFOptions(const ColumnFamilyOptions& options) 29761: : write_buffer_size(options.write_buffer_size), 29761: max_write_buffer_number(options.max_write_buffer_number), 29761: arena_block_size(options.arena_block_size), 29761: memtable_prefix_bloom_size_ratio( 29761: options.memtable_prefix_bloom_size_ratio), 29761: memtable_whole_key_filtering(options.memtable_whole_key_filtering), 29761: memtable_huge_page_size(options.memtable_huge_page_size), 29761: max_successive_merges(options.max_successive_merges), 29761: strict_max_successive_merges(options.strict_max_successive_merges), 29761: inplace_update_num_locks(options.inplace_update_num_locks), 29761: prefix_extractor(options.prefix_extractor), 29761: experimental_mempurge_threshold( 29761: options.experimental_mempurge_threshold), 29761: disable_auto_compactions(options.disable_auto_compactions), 29761: table_factory(options.table_factory), 29761: soft_pending_compaction_bytes_limit( 29761: options.soft_pending_compaction_bytes_limit), 29761: hard_pending_compaction_bytes_limit( 29761: options.hard_pending_compaction_bytes_limit), 29761: level0_file_num_compaction_trigger( 29761: options.level0_file_num_compaction_trigger), 29761: level0_slowdown_writes_trigger(options.level0_slowdown_writes_trigger), 29761: level0_stop_writes_trigger(options.level0_stop_writes_trigger), 29761: max_compaction_bytes(options.max_compaction_bytes), 29761: target_file_size_base(options.target_file_size_base), 29761: target_file_size_multiplier(options.target_file_size_multiplier), 29761: max_bytes_for_level_base(options.max_bytes_for_level_base), 29761: max_bytes_for_level_multiplier(options.max_bytes_for_level_multiplier), 29761: ttl(options.ttl), 29761: periodic_compaction_seconds(options.periodic_compaction_seconds), 29761: max_bytes_for_level_multiplier_additional( 29761: options.max_bytes_for_level_multiplier_additional), 29761: compaction_options_fifo(options.compaction_options_fifo), 29761: compaction_options_universal(options.compaction_options_universal), 29761: preclude_last_level_data_seconds( 29761: options.preclude_last_level_data_seconds), 29761: preserve_internal_time_seconds(options.preserve_internal_time_seconds), 29761: enable_blob_files(options.enable_blob_files), 29761: min_blob_size(options.min_blob_size), 29761: blob_file_size(options.blob_file_size), 29761: blob_compression_type(options.blob_compression_type), 29761: enable_blob_garbage_collection(options.enable_blob_garbage_collection), 29761: blob_garbage_collection_age_cutoff( 29761: options.blob_garbage_collection_age_cutoff), 29761: blob_garbage_collection_force_threshold( 29761: options.blob_garbage_collection_force_threshold), 29761: blob_compaction_readahead_size(options.blob_compaction_readahead_size), 29761: blob_file_starting_level(options.blob_file_starting_level), 29761: prepopulate_blob_cache(options.prepopulate_blob_cache), 29761: max_sequential_skip_in_iterations( 29761: options.max_sequential_skip_in_iterations), 29761: paranoid_file_checks(options.paranoid_file_checks), 29761: report_bg_io_stats(options.report_bg_io_stats), 29761: compression(options.compression), 29761: bottommost_compression(options.bottommost_compression), 29761: compression_opts(options.compression_opts), 29761: bottommost_compression_opts(options.bottommost_compression_opts), 29761: last_level_temperature(options.last_level_temperature), 29761: default_write_temperature(options.default_write_temperature), 29761: memtable_protection_bytes_per_key( 29761: options.memtable_protection_bytes_per_key), 29761: block_protection_bytes_per_key(options.block_protection_bytes_per_key), 29761: paranoid_memory_checks(options.paranoid_memory_checks), 29761: sample_for_compression( 29761: options.sample_for_compression), 29761: compression_per_level(options.compression_per_level), 29761: memtable_max_range_deletions(options.memtable_max_range_deletions), 29761: bottommost_file_compaction_delay( 29761: options.bottommost_file_compaction_delay), 29761: uncache_aggressiveness(options.uncache_aggressiveness) { 29761: RefreshDerivedOptions(options.num_levels, options.compaction_style); 29761: } 29761: 29761: MutableCFOptions() 29761: : write_buffer_size(0), 29761: max_write_buffer_number(0), 29761: arena_block_size(0), 29761: memtable_prefix_bloom_size_ratio(0), 29761: memtable_whole_key_filtering(false), 29761: memtable_huge_page_size(0), 29761: max_successive_merges(0), 29761: strict_max_successive_merges(false), 29761: inplace_update_num_locks(0), 29761: prefix_extractor(nullptr), 29761: experimental_mempurge_threshold(0.0), 29761: disable_auto_compactions(false), 29761: soft_pending_compaction_bytes_limit(0), 29761: hard_pending_compaction_bytes_limit(0), 29761: level0_file_num_compaction_trigger(0), 29761: level0_slowdown_writes_trigger(0), 29761: level0_stop_writes_trigger(0), 29761: max_compaction_bytes(0), 29761: target_file_size_base(0), 29761: target_file_size_multiplier(0), 29761: max_bytes_for_level_base(0), 29761: max_bytes_for_level_multiplier(0), 29761: ttl(0), 29761: periodic_compaction_seconds(0), 29761: compaction_options_fifo(), 29761: preclude_last_level_data_seconds(0), 29761: preserve_internal_time_seconds(0), 29761: enable_blob_files(false), 29761: min_blob_size(0), 29761: blob_file_size(0), 29761: blob_compression_type(kNoCompression), 29761: enable_blob_garbage_collection(false), 29761: blob_garbage_collection_age_cutoff(0.0), 29761: blob_garbage_collection_force_threshold(0.0), 29761: blob_compaction_readahead_size(0), 29761: blob_file_starting_level(0), 29761: prepopulate_blob_cache(PrepopulateBlobCache::kDisable), 29761: max_sequential_skip_in_iterations(0), 29761: paranoid_file_checks(false), 29761: report_bg_io_stats(false), 29761: compression(Snappy_Supported() ? kSnappyCompression : kNoCompression), 29761: bottommost_compression(kDisableCompressionOption), 29761: last_level_temperature(Temperature::kUnknown), 29761: default_write_temperature(Temperature::kUnknown), 29761: memtable_protection_bytes_per_key(0), 29761: block_protection_bytes_per_key(0), 29761: paranoid_memory_checks(false), 29761: sample_for_compression(0), 29761: memtable_max_range_deletions(0), 29761: bottommost_file_compaction_delay(0), 29761: uncache_aggressiveness(0) {} 29761: 29761: explicit MutableCFOptions(const Options& options); 29761: 29761: 29761: void RefreshDerivedOptions(int num_levels, CompactionStyle compaction_style); 29761: 29761: void RefreshDerivedOptions(const ImmutableCFOptions& ioptions) { 29761: RefreshDerivedOptions(ioptions.num_levels, ioptions.compaction_style); 29761: } 29761: 29761: int MaxBytesMultiplerAdditional(int level) const { 29761: if (level >= 29761: static_cast(max_bytes_for_level_multiplier_additional.size())) { 29761: return 1; 29761: } 29761: return max_bytes_for_level_multiplier_additional[level]; 29761: } 29761: 29761: void Dump(Logger* log) const; 29761: 29761: 29761: size_t write_buffer_size; 29761: int max_write_buffer_number; 29761: size_t arena_block_size; 29761: double memtable_prefix_bloom_size_ratio; 29761: bool memtable_whole_key_filtering; 29761: size_t memtable_huge_page_size; 29761: size_t max_successive_merges; 29761: bool strict_max_successive_merges; 29761: size_t inplace_update_num_locks; 29761: 29761: 29761: 29761: std::shared_ptr prefix_extractor; 29761: # 281 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 29761: double experimental_mempurge_threshold; 29761: 29761: 29761: bool disable_auto_compactions; 29761: std::shared_ptr table_factory; 29761: uint64_t soft_pending_compaction_bytes_limit; 29761: uint64_t hard_pending_compaction_bytes_limit; 29761: int level0_file_num_compaction_trigger; 29761: int level0_slowdown_writes_trigger; 29761: int level0_stop_writes_trigger; 29761: uint64_t max_compaction_bytes; 29761: uint64_t target_file_size_base; 29761: int target_file_size_multiplier; 29761: uint64_t max_bytes_for_level_base; 29761: double max_bytes_for_level_multiplier; 29761: uint64_t ttl; 29761: uint64_t periodic_compaction_seconds; 29761: std::vector max_bytes_for_level_multiplier_additional; 29761: CompactionOptionsFIFO compaction_options_fifo; 29761: CompactionOptionsUniversal compaction_options_universal; 29761: uint64_t preclude_last_level_data_seconds; 29761: uint64_t preserve_internal_time_seconds; 29761: 29761: 29761: bool enable_blob_files; 29761: uint64_t min_blob_size; 29761: uint64_t blob_file_size; 29761: CompressionType blob_compression_type; 29761: bool enable_blob_garbage_collection; 29761: double blob_garbage_collection_age_cutoff; 29761: double blob_garbage_collection_force_threshold; 29761: uint64_t blob_compaction_readahead_size; 29761: int blob_file_starting_level; 29761: PrepopulateBlobCache prepopulate_blob_cache; 29761: 29761: 29761: uint64_t max_sequential_skip_in_iterations; 29761: bool paranoid_file_checks; 29761: bool report_bg_io_stats; 29761: CompressionType compression; 29761: CompressionType bottommost_compression; 29761: CompressionOptions compression_opts; 29761: CompressionOptions bottommost_compression_opts; 29761: Temperature last_level_temperature; 29761: Temperature default_write_temperature; 29761: uint32_t memtable_protection_bytes_per_key; 29761: uint8_t block_protection_bytes_per_key; 29761: bool paranoid_memory_checks; 29761: 29761: uint64_t sample_for_compression; 29761: std::vector compression_per_level; 29761: uint32_t memtable_max_range_deletions; 29761: uint32_t bottommost_file_compaction_delay; 29761: uint32_t uncache_aggressiveness; 29761: 29761: 29761: 29761: std::vector max_file_size; 29761: }; 29761: 29761: uint64_t MultiplyCheckOverflow(uint64_t op1, double op2); 29761: 29761: 29761: uint64_t MaxFileSizeForLevel(const MutableCFOptions& cf_options, 29761: int level, CompactionStyle compaction_style, int base_level = 1, 29761: bool level_compaction_dynamic_level_bytes = false); 29761: 29761: 29761: 29761: size_t MaxFileSizeForL0MetaPin(const MutableCFOptions& cf_options); 29761: 29761: Status GetStringFromMutableCFOptions(const ConfigOptions& config_options, 29761: const MutableCFOptions& mutable_opts, 29761: std::string* opt_string); 29761: 29761: Status GetMutableOptionsFromStrings( 29761: const MutableCFOptions& base_options, 29761: const std::unordered_map& options_map, 29761: Logger* info_log, MutableCFOptions* new_options); 29761: 29761: 29761: std::vector TEST_GetImmutableInMutableCFOptions(); 29761: extern bool TEST_allowSetOptionsImmutableInMutable; 29761: 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/malloc.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/port/malloc.h" 29761: 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class RandomAccessFile; 29761: struct ReadOptions; 29761: 29761: bool ShouldReportDetailedTime(Env* env, Statistics* stats); 29761: 29761: 29761: constexpr uint32_t kMagicNumberLengthByte = 8; 29761: 29761: extern const uint64_t kLegacyBlockBasedTableMagicNumber; 29761: extern const uint64_t kBlockBasedTableMagicNumber; 29761: 29761: extern const uint64_t kLegacyPlainTableMagicNumber; 29761: extern const uint64_t kPlainTableMagicNumber; 29761: 29761: extern const uint64_t kCuckooTableMagicNumber; 29761: 29761: 29761: 29761: class BlockHandle { 29761: public: 29761: 29761: 29761: BlockHandle(); 29761: BlockHandle(uint64_t offset, uint64_t size); 29761: 29761: 29761: uint64_t offset() const { return offset_; } 29761: void set_offset(uint64_t _offset) { offset_ = _offset; } 29761: 29761: 29761: uint64_t size() const { return size_; } 29761: void set_size(uint64_t _size) { size_ = _size; } 29761: 29761: void EncodeTo(std::string* dst) const; 29761: char* EncodeTo(char* dst) const; 29761: Status DecodeFrom(Slice* input); 29761: Status DecodeSizeFrom(uint64_t offset, Slice* input); 29761: 29761: 29761: std::string ToString(bool hex = true) const; 29761: 29761: 29761: 29761: bool IsNull() const { return offset_ == 0 && size_ == 0; } 29761: 29761: static const BlockHandle& NullBlockHandle() { return kNullBlockHandle; } 29761: 29761: 29761: static constexpr uint32_t kMaxEncodedLength = 2 * kMaxVarint64Length; 29761: 29761: inline bool operator==(const BlockHandle& rhs) const { 29761: return offset_ == rhs.offset_ && size_ == rhs.size_; 29761: } 29761: inline bool operator!=(const BlockHandle& rhs) const { 29761: return !(*this == rhs); 29761: } 29761: 29761: private: 29761: uint64_t offset_; 29761: uint64_t size_; 29761: 29761: static const BlockHandle kNullBlockHandle; 29761: }; 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: struct IndexValue { 29761: BlockHandle handle; 29761: 29761: Slice first_internal_key; 29761: 29761: IndexValue() = default; 29761: IndexValue(BlockHandle _handle, Slice _first_internal_key) 29761: : handle(_handle), first_internal_key(_first_internal_key) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: void EncodeTo(std::string* dst, bool have_first_key, 29761: const BlockHandle* previous_handle) const; 29761: Status DecodeFrom(Slice* input, bool have_first_key, 29761: const BlockHandle* previous_handle); 29761: 29761: std::string ToString(bool hex, bool have_first_key) const; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline uint32_t ChecksumModifierForContext(uint32_t base_context_checksum, 29761: uint64_t offset) { 29761: 29761: 29761: 29761: 29761: 29761: uint32_t all_or_nothing = uint32_t{0} - (base_context_checksum != 0); 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: uint32_t modifier = 29761: base_context_checksum ^ (Lower32of64(offset) + Upper32of64(offset)); 29761: 29761: return modifier & all_or_nothing; 29761: } 29761: 29761: inline uint32_t GetCompressFormatForVersion(uint32_t format_version) { 29761: 29761: 29761: 29761: return format_version >= 2 ? 2 : 1; 29761: } 29761: 29761: constexpr uint32_t kLatestFormatVersion = 6; 29761: 29761: inline bool IsSupportedFormatVersion(uint32_t version) { 29761: return version <= kLatestFormatVersion; 29761: } 29761: 29761: 29761: inline bool FormatVersionUsesContextChecksum(uint32_t version) { 29761: return version >= 6; 29761: } 29761: 29761: inline bool FormatVersionUsesIndexHandleInFooter(uint32_t version) { 29761: return version < 6; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class Footer { 29761: public: 29761: 29761: Footer() {} 29761: 29761: void Reset() { 29761: table_magic_number_ = kNullTableMagicNumber; 29761: format_version_ = kInvalidFormatVersion; 29761: base_context_checksum_ = 0; 29761: metaindex_handle_ = BlockHandle::NullBlockHandle(); 29761: index_handle_ = BlockHandle::NullBlockHandle(); 29761: checksum_type_ = kInvalidChecksumType; 29761: block_trailer_size_ = 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status DecodeFrom(Slice input, uint64_t input_offset, 29761: uint64_t enforce_table_magic_number = 0); 29761: 29761: 29761: 29761: uint64_t table_magic_number() const { return table_magic_number_; } 29761: 29761: 29761: 29761: 29761: uint32_t format_version() const { return format_version_; } 29761: 29761: 29761: uint32_t base_context_checksum() const { return base_context_checksum_; } 29761: 29761: 29761: const BlockHandle& metaindex_handle() const { return metaindex_handle_; } 29761: 29761: 29761: 29761: const BlockHandle& index_handle() const { return index_handle_; } 29761: 29761: 29761: ChecksumType checksum_type() const { 29761: return static_cast(checksum_type_); 29761: } 29761: 29761: 29761: 29761: 29761: inline size_t GetBlockTrailerSize() const { return block_trailer_size_; } 29761: 29761: 29761: std::string ToString() const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static constexpr uint32_t kVersion0EncodedLength = 29761: 2 * BlockHandle::kMaxEncodedLength + kMagicNumberLengthByte; 29761: static constexpr uint32_t kMinEncodedLength = kVersion0EncodedLength; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr uint32_t kNewVersionsEncodedLength = 29761: 1 + 2 * BlockHandle::kMaxEncodedLength + 4 + kMagicNumberLengthByte; 29761: static constexpr uint32_t kMaxEncodedLength = kNewVersionsEncodedLength; 29761: 29761: static constexpr uint64_t kNullTableMagicNumber = 0; 29761: 29761: static constexpr uint32_t kInvalidFormatVersion = 0xffffffffU; 29761: 29761: private: 29761: static constexpr int kInvalidChecksumType = 29761: (1 << (sizeof(ChecksumType) * 8)) | kNoChecksum; 29761: 29761: uint64_t table_magic_number_ = kNullTableMagicNumber; 29761: uint32_t format_version_ = kInvalidFormatVersion; 29761: uint32_t base_context_checksum_ = 0; 29761: BlockHandle metaindex_handle_; 29761: BlockHandle index_handle_; 29761: int checksum_type_ = kInvalidChecksumType; 29761: uint8_t block_trailer_size_ = 0; 29761: }; 29761: 29761: 29761: class FooterBuilder { 29761: public: 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: Status Build(uint64_t table_magic_number, uint32_t format_version, 29761: uint64_t footer_offset, ChecksumType checksum_type, 29761: const BlockHandle& metaindex_handle, 29761: const BlockHandle& index_handle = BlockHandle::NullBlockHandle(), 29761: uint32_t base_context_checksum = 0); 29761: 29761: 29761: 29761: const Slice& GetSlice() const { 29761: 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29761: (static_cast ( 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: slice_.size() 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: "slice_.size()" 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: ; 29761: return slice_; 29761: } 29761: 29761: private: 29761: Slice slice_; 29761: std::array data_; 29761: }; 29761: 29761: 29761: 29761: 29761: Status ReadFooterFromFile(const IOOptions& opts, RandomAccessFileReader* file, 29761: FileSystem& fs, FilePrefetchBuffer* prefetch_buffer, 29761: uint64_t file_size, Footer* footer, 29761: uint64_t enforce_table_magic_number = 0, 29761: Statistics* stats = nullptr); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t ComputeBuiltinChecksum(ChecksumType type, const char* data, 29761: size_t size); 29761: uint32_t ComputeBuiltinChecksumWithLastByte(ChecksumType type, const char* data, 29761: size_t size, char last_byte); 29761: # 354 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: struct BlockContents { 29761: 29761: Slice data; 29761: CacheAllocationPtr allocation; 29761: 29761: 29761: 29761: 29761: bool has_trailer = false; 29761: 29761: 29761: BlockContents() {} 29761: 29761: 29761: BlockContents(const Slice& _data) : data(_data) {} 29761: 29761: 29761: BlockContents(CacheAllocationPtr&& _data, size_t _size) 29761: : data(_data.get(), _size), allocation(std::move(_data)) {} 29761: 29761: 29761: BlockContents(std::unique_ptr&& _data, size_t _size) 29761: : data(_data.get(), _size) { 29761: allocation.reset(_data.release()); 29761: } 29761: 29761: 29761: bool own_bytes() const { return allocation.get() != nullptr; } 29761: 29761: 29761: size_t usable_size() const { 29761: if (allocation.get() != nullptr) { 29761: auto allocator = allocation.get_deleter().allocator; 29761: if (allocator) { 29761: return allocator->UsableSize(allocation.get(), data.size()); 29761: } 29761: 29761: return malloc_usable_size(allocation.get()); 29761: 29761: 29761: 29761: } else { 29761: return 0; 29761: } 29761: } 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: return usable_size() + sizeof(*this); 29761: } 29761: 29761: BlockContents(BlockContents&& other) noexcept { *this = std::move(other); } 29761: 29761: BlockContents& operator=(BlockContents&& other) { 29761: data = std::move(other.data); 29761: allocation = std::move(other.allocation); 29761: 29761: has_trailer = other.has_trailer; 29761: 29761: return *this; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status UncompressSerializedBlock(const UncompressionInfo& info, 29761: const char* data, size_t size, 29761: BlockContents* out_contents, 29761: uint32_t format_version, 29761: const ImmutableOptions& ioptions, 29761: MemoryAllocator* allocator = nullptr); 29761: 29761: 29761: 29761: Status UncompressBlockData(const UncompressionInfo& info, const char* data, 29761: size_t size, BlockContents* out_contents, 29761: uint32_t format_version, 29761: const ImmutableOptions& ioptions, 29761: MemoryAllocator* allocator = nullptr); 29761: 29761: 29761: Status ReifyDbHostIdProperty(Env* env, std::string* db_host_id); 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline BlockHandle::BlockHandle() : BlockHandle(~uint64_t{0}, ~uint64_t{0}) {} 29761: 29761: inline BlockHandle::BlockHandle(uint64_t _offset, uint64_t _size) 29761: : offset_(_offset), size_(_size) {} 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class PinnedIteratorsManager; 29761: 29761: enum class IterBoundCheck : char { 29761: kUnknown = 0, 29761: kOutOfBound, 29761: kInbound, 29761: }; 29761: 29761: struct IterateResult { 29761: Slice key; 29761: IterBoundCheck bound_check_result = IterBoundCheck::kUnknown; 29761: 29761: bool value_prepared = true; 29761: }; 29761: 29761: template 29761: class InternalIteratorBase : public Cleanable { 29761: public: 29761: InternalIteratorBase() {} 29761: 29761: 29761: InternalIteratorBase(const InternalIteratorBase&) = delete; 29761: InternalIteratorBase& operator=(const InternalIteratorBase&) = delete; 29761: 29761: virtual ~InternalIteratorBase() {} 29761: # 55 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: virtual void SetRangeDelReadSeqno(SequenceNumber ) {} 29761: 29761: 29761: 29761: 29761: virtual bool Valid() const = 0; 29761: 29761: 29761: 29761: virtual void SeekToFirst() = 0; 29761: 29761: 29761: 29761: virtual void SeekToLast() = 0; 29761: # 77 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: virtual void Seek(const Slice& target) = 0; 29761: 29761: 29761: 29761: 29761: virtual void SeekForPrev(const Slice& target) = 0; 29761: 29761: 29761: 29761: 29761: virtual void Next() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual bool NextAndGetResult(IterateResult* result) { 29761: Next(); 29761: bool is_valid = Valid(); 29761: if (is_valid) { 29761: result->key = key(); 29761: 29761: 29761: 29761: result->bound_check_result = IterBoundCheck::kUnknown; 29761: result->value_prepared = false; 29761: 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29761: (static_cast ( 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: UpperBoundCheckResult() != IterBoundCheck::kOutOfBound 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: "UpperBoundCheckResult() != IterBoundCheck::kOutOfBound" 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: ; 29761: } 29761: return is_valid; 29761: } 29761: 29761: 29761: 29761: 29761: virtual void Prev() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Slice key() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual uint64_t write_unix_time() const { 29761: return std::numeric_limits::max(); 29761: } 29761: 29761: 29761: 29761: virtual Slice user_key() const { return ExtractUserKey(key()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual TValue value() const = 0; 29761: 29761: 29761: 29761: 29761: virtual Status status() const = 0; 29761: # 154 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: virtual bool PrepareValue() { return true; } 29761: 29761: 29761: virtual bool MayBeOutOfLowerBound() { return true; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IterBoundCheck UpperBoundCheckResult() { 29761: return IterBoundCheck::kUnknown; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void SetPinnedItersMgr(PinnedIteratorsManager* ) { 29761: } 29761: # 184 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: virtual bool IsKeyPinned() const { return false; } 29761: 29761: 29761: 29761: 29761: 29761: virtual bool IsValuePinned() const { return false; } 29761: 29761: virtual Status GetProperty(std::string , std::string* ) { 29761: return Status::NotSupported(""); 29761: } 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: virtual void GetReadaheadState(ReadaheadFileInfo* ) {} 29761: 29761: 29761: virtual void SetReadaheadState(ReadaheadFileInfo* ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool IsDeleteRangeSentinelKey() const { return false; } 29761: 29761: protected: 29761: void SeekForPrevImpl(const Slice& target, const CompareInterface* cmp) { 29761: Seek(target); 29761: if (!Valid()) { 29761: SeekToLast(); 29761: } 29761: while (Valid() && cmp->Compare(target, key()) < 0) { 29761: Prev(); 29761: } 29761: } 29761: }; 29761: 29761: using InternalIterator = InternalIteratorBase; 29761: 29761: 29761: template 29761: InternalIteratorBase* NewEmptyInternalIterator(); 29761: 29761: 29761: template 29761: InternalIteratorBase* NewErrorInternalIterator(const Status& status); 29761: 29761: 29761: template 29761: InternalIteratorBase* NewErrorInternalIterator(const Status& status, 29761: Arena* arena); 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: class PinnedIteratorsManager : public Cleanable { 29761: public: 29761: PinnedIteratorsManager() : pinning_enabled(false) {} 29761: ~PinnedIteratorsManager() { 29761: if (pinning_enabled) { 29761: ReleasePinnedData(); 29761: } 29761: } 29761: 29761: 29761: PinnedIteratorsManager(PinnedIteratorsManager&& other) noexcept = default; 29761: PinnedIteratorsManager& operator=(PinnedIteratorsManager&& other) noexcept = 29761: default; 29761: 29761: 29761: void StartPinning() { 29761: 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: (static_cast ( 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: pinning_enabled == false 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: "pinning_enabled == false" 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: ; 29761: pinning_enabled = true; 29761: } 29761: 29761: 29761: bool PinningEnabled() { return pinning_enabled; } 29761: 29761: 29761: void PinIterator(InternalIterator* iter, bool arena = false) { 29761: if (arena) { 29761: PinPtr(iter, &PinnedIteratorsManager::ReleaseArenaInternalIterator); 29761: } else { 29761: PinPtr(iter, &PinnedIteratorsManager::ReleaseInternalIterator); 29761: } 29761: } 29761: 29761: using ReleaseFunction = void (*)(void* arg1); 29761: void PinPtr(void* ptr, ReleaseFunction release_func) { 29761: 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: (static_cast ( 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: pinning_enabled 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: "pinning_enabled" 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: ; 29761: if (ptr == nullptr) { 29761: return; 29761: } 29761: pinned_ptrs_.emplace_back(ptr, release_func); 29761: } 29761: 29761: 29761: inline void ReleasePinnedData() { 29761: 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: (static_cast ( 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: pinning_enabled == true 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: "pinning_enabled == true" 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: ; 29761: pinning_enabled = false; 29761: 29761: 29761: std::sort(pinned_ptrs_.begin(), pinned_ptrs_.end()); 29761: auto unique_end = std::unique(pinned_ptrs_.begin(), pinned_ptrs_.end()); 29761: 29761: for (auto i = pinned_ptrs_.begin(); i != unique_end; ++i) { 29761: void* ptr = i->first; 29761: ReleaseFunction release_func = i->second; 29761: release_func(ptr); 29761: } 29761: pinned_ptrs_.clear(); 29761: 29761: Cleanable::Reset(); 29761: } 29761: 29761: private: 29761: static void ReleaseInternalIterator(void* ptr) { 29761: delete static_cast(ptr); 29761: } 29761: 29761: static void ReleaseArenaInternalIterator(void* ptr) { 29761: static_cast(ptr)->~InternalIterator(); 29761: } 29761: 29761: bool pinning_enabled; 29761: std::vector> pinned_ptrs_; 29761: }; 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: namespace rocksdb { 29761: struct FragmentedRangeTombstoneList { 29761: public: 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: struct RangeTombstoneStack { 29761: RangeTombstoneStack(const Slice& start, const Slice& end, size_t start_idx, 29761: size_t end_idx) 29761: : start_key(start), 29761: end_key(end), 29761: seq_start_idx(start_idx), 29761: seq_end_idx(end_idx) {} 29761: Slice start_key; 29761: Slice end_key; 29761: size_t seq_start_idx; 29761: size_t seq_end_idx; 29761: }; 29761: 29761: 29761: FragmentedRangeTombstoneList( 29761: std::unique_ptr unfragmented_tombstones, 29761: const InternalKeyComparator& icmp, bool for_compaction = false, 29761: const std::vector& snapshots = {}, 29761: const bool tombstone_end_include_ts = true); 29761: 29761: std::vector::const_iterator begin() const { 29761: return tombstones_.begin(); 29761: } 29761: 29761: std::vector::const_iterator end() const { 29761: return tombstones_.end(); 29761: } 29761: 29761: std::vector::const_iterator seq_iter(size_t idx) const { 29761: return std::next(tombstone_seqs_.begin(), idx); 29761: } 29761: 29761: std::vector::const_iterator ts_iter(size_t idx) const { 29761: return std::next(tombstone_timestamps_.begin(), idx); 29761: } 29761: 29761: std::vector::const_iterator seq_begin() const { 29761: return tombstone_seqs_.begin(); 29761: } 29761: 29761: std::vector::const_iterator seq_end() const { 29761: return tombstone_seqs_.end(); 29761: } 29761: 29761: bool empty() const { return tombstones_.empty(); } 29761: 29761: 29761: 29761: 29761: 29761: bool ContainsRange(SequenceNumber lower, SequenceNumber upper); 29761: 29761: uint64_t num_unfragmented_tombstones() const { 29761: return num_unfragmented_tombstones_; 29761: } 29761: 29761: uint64_t total_tombstone_payload_bytes() const { 29761: return total_tombstone_payload_bytes_; 29761: } 29761: 29761: private: 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: void FragmentTombstones( 29761: std::unique_ptr unfragmented_tombstones, 29761: const InternalKeyComparator& icmp, bool for_compaction, 29761: const std::vector& snapshots); 29761: 29761: std::vector tombstones_; 29761: std::vector tombstone_seqs_; 29761: std::vector tombstone_timestamps_; 29761: std::once_flag seq_set_init_once_flag_; 29761: std::set seq_set_; 29761: std::list pinned_slices_; 29761: PinnedIteratorsManager pinned_iters_mgr_; 29761: uint64_t num_unfragmented_tombstones_; 29761: uint64_t total_tombstone_payload_bytes_; 29761: }; 29761: 29761: struct FragmentedRangeTombstoneListCache { 29761: 29761: std::mutex reader_mutex; 29761: std::unique_ptr tombstones = nullptr; 29761: 29761: std::atomic initialized = false; 29761: }; 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: class FragmentedRangeTombstoneIterator : public InternalIterator { 29761: public: 29761: FragmentedRangeTombstoneIterator(FragmentedRangeTombstoneList* tombstones, 29761: const InternalKeyComparator& icmp, 29761: SequenceNumber upper_bound, 29761: const Slice* ts_upper_bound = nullptr, 29761: SequenceNumber lower_bound = 0); 29761: FragmentedRangeTombstoneIterator( 29761: const std::shared_ptr& tombstones, 29761: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 29761: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 29761: FragmentedRangeTombstoneIterator( 29761: const std::shared_ptr& tombstones, 29761: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 29761: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 29761: 29761: void SetRangeDelReadSeqno(SequenceNumber read_seqno) override { 29761: upper_bound_ = read_seqno; 29761: } 29761: 29761: void SeekToFirst() override; 29761: void SeekToLast() override; 29761: 29761: void SeekToTopFirst(); 29761: void SeekToTopLast(); 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: void Seek(const Slice& target) override; 29761: 29761: 29761: 29761: void SeekForPrev(const Slice& target) override; 29761: 29761: void Next() override; 29761: void Prev() override; 29761: 29761: void TopNext(); 29761: void TopPrev(); 29761: 29761: bool Valid() const override; 29761: 29761: 29761: Slice key() const override { 29761: MaybePinKey(); 29761: return current_start_key_.Encode(); 29761: } 29761: Slice value() const override { return pos_->end_key; } 29761: bool IsKeyPinned() const override { return false; } 29761: bool IsValuePinned() const override { return true; } 29761: Status status() const override { return Status::OK(); } 29761: 29761: bool empty() const { return tombstones_->empty(); } 29761: void Invalidate() { 29761: pos_ = tombstones_->end(); 29761: seq_pos_ = tombstones_->seq_end(); 29761: pinned_pos_ = tombstones_->end(); 29761: pinned_seq_pos_ = tombstones_->seq_end(); 29761: } 29761: 29761: RangeTombstone Tombstone() const { 29761: 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29761: (static_cast ( 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: Valid() 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: "Valid()" 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: ; 29761: if (icmp_->user_comparator()->timestamp_size()) { 29761: return RangeTombstone(start_key(), end_key(), seq(), timestamp()); 29761: } 29761: return RangeTombstone(start_key(), end_key(), seq()); 29761: } 29761: 29761: 29761: 29761: 29761: Slice start_key() const { return pos_->start_key; } 29761: Slice end_key() const { return pos_->end_key; } 29761: SequenceNumber seq() const { return *seq_pos_; } 29761: Slice timestamp() const { 29761: 29761: return *tombstones_->ts_iter(seq_pos_ - tombstones_->seq_begin()); 29761: } 29761: 29761: 29761: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 29761: ts_upper_bound_ = ts_upper_bound; 29761: } 29761: 29761: ParsedInternalKey parsed_start_key() const { 29761: return ParsedInternalKey(pos_->start_key, seq(), kTypeRangeDeletion); 29761: } 29761: ParsedInternalKey parsed_end_key() const { 29761: return ParsedInternalKey(pos_->end_key, kMaxSequenceNumber, 29761: kTypeRangeDeletion); 29761: } 29761: 29761: 29761: 29761: 29761: SequenceNumber MaxCoveringTombstoneSeqnum(const Slice& user_key); 29761: # 246 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: std::map> 29761: SplitBySnapshot(const std::vector& snapshots); 29761: 29761: SequenceNumber upper_bound() const { return upper_bound_; } 29761: SequenceNumber lower_bound() const { return lower_bound_; } 29761: 29761: uint64_t num_unfragmented_tombstones() const { 29761: return tombstones_->num_unfragmented_tombstones(); 29761: } 29761: uint64_t total_tombstone_payload_bytes() const { 29761: return tombstones_->total_tombstone_payload_bytes(); 29761: } 29761: 29761: private: 29761: using RangeTombstoneStack = FragmentedRangeTombstoneList::RangeTombstoneStack; 29761: 29761: struct RangeTombstoneStackStartComparator { 29761: explicit RangeTombstoneStackStartComparator(const Comparator* c) : cmp(c) {} 29761: 29761: bool operator()(const RangeTombstoneStack& a, 29761: const RangeTombstoneStack& b) const { 29761: return cmp->CompareWithoutTimestamp(a.start_key, b.start_key) < 0; 29761: } 29761: 29761: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 29761: return cmp->CompareWithoutTimestamp(a.start_key, b) < 0; 29761: } 29761: 29761: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 29761: return cmp->CompareWithoutTimestamp(a, b.start_key) < 0; 29761: } 29761: 29761: const Comparator* cmp; 29761: }; 29761: 29761: struct RangeTombstoneStackEndComparator { 29761: explicit RangeTombstoneStackEndComparator(const Comparator* c) : cmp(c) {} 29761: 29761: bool operator()(const RangeTombstoneStack& a, 29761: const RangeTombstoneStack& b) const { 29761: return cmp->CompareWithoutTimestamp(a.end_key, b.end_key) < 0; 29761: } 29761: 29761: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 29761: return cmp->CompareWithoutTimestamp(a.end_key, b) < 0; 29761: } 29761: 29761: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 29761: return cmp->CompareWithoutTimestamp(a, b.end_key) < 0; 29761: } 29761: 29761: const Comparator* cmp; 29761: }; 29761: 29761: void MaybePinKey() const { 29761: if (pos_ != tombstones_->end() && seq_pos_ != tombstones_->seq_end() && 29761: (pinned_pos_ != pos_ || pinned_seq_pos_ != seq_pos_)) { 29761: current_start_key_.Set(pos_->start_key, *seq_pos_, kTypeRangeDeletion); 29761: pinned_pos_ = pos_; 29761: pinned_seq_pos_ = seq_pos_; 29761: } 29761: } 29761: 29761: void SeekToCoveringTombstone(const Slice& key); 29761: void SeekForPrevToCoveringTombstone(const Slice& key); 29761: void ScanForwardToVisibleTombstone(); 29761: void ScanBackwardToVisibleTombstone(); 29761: bool ValidPos() const { 29761: return Valid() && seq_pos_ != tombstones_->seq_iter(pos_->seq_end_idx); 29761: } 29761: 29761: const RangeTombstoneStackStartComparator tombstone_start_cmp_; 29761: const RangeTombstoneStackEndComparator tombstone_end_cmp_; 29761: const InternalKeyComparator* icmp_; 29761: const Comparator* ucmp_; 29761: std::shared_ptr tombstones_ref_; 29761: std::shared_ptr tombstones_cache_ref_; 29761: FragmentedRangeTombstoneList* tombstones_; 29761: SequenceNumber upper_bound_; 29761: SequenceNumber lower_bound_; 29761: 29761: const Slice* ts_upper_bound_; 29761: std::vector::const_iterator pos_; 29761: std::vector::const_iterator seq_pos_; 29761: mutable std::vector::const_iterator pinned_pos_; 29761: mutable std::vector::const_iterator pinned_seq_pos_; 29761: mutable InternalKey current_start_key_; 29761: 29761: 29761: 29761: 29761: 29761: void SetMaxVisibleSeqAndTimestamp() { 29761: seq_pos_ = std::lower_bound(tombstones_->seq_iter(pos_->seq_start_idx), 29761: tombstones_->seq_iter(pos_->seq_end_idx), 29761: upper_bound_, std::greater()); 29761: if (ts_upper_bound_ && !ts_upper_bound_->empty()) { 29761: auto ts_pos = std::lower_bound( 29761: tombstones_->ts_iter(pos_->seq_start_idx), 29761: tombstones_->ts_iter(pos_->seq_end_idx), *ts_upper_bound_, 29761: [this](const Slice& s1, const Slice& s2) { 29761: return ucmp_->CompareTimestamp(s1, s2) > 0; 29761: }); 29761: auto ts_idx = ts_pos - tombstones_->ts_iter(pos_->seq_start_idx); 29761: auto seq_idx = seq_pos_ - tombstones_->seq_iter(pos_->seq_start_idx); 29761: if (seq_idx < ts_idx) { 29761: 29761: 29761: seq_pos_ = tombstones_->seq_iter(pos_->seq_start_idx + ts_idx); 29761: } 29761: } 29761: } 29761: }; 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 2 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_constants.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: constexpr uint64_t kInvalidBlobFileNumber = 0; 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class JSONWriter; 29761: class Slice; 29761: class Status; 29761: 29761: class BlobFileAddition { 29761: public: 29761: BlobFileAddition() = default; 29761: 29761: BlobFileAddition(uint64_t blob_file_number, uint64_t total_blob_count, 29761: uint64_t total_blob_bytes, std::string checksum_method, 29761: std::string checksum_value) 29761: : blob_file_number_(blob_file_number), 29761: total_blob_count_(total_blob_count), 29761: total_blob_bytes_(total_blob_bytes), 29761: checksum_method_(std::move(checksum_method)), 29761: checksum_value_(std::move(checksum_value)) { 29761: 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29761: (static_cast ( 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29761: checksum_method_.empty() == checksum_value_.empty() 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29761: "checksum_method_.empty() == checksum_value_.empty()" 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29761: ; 29761: } 29761: 29761: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 29761: uint64_t GetTotalBlobCount() const { return total_blob_count_; } 29761: uint64_t GetTotalBlobBytes() const { return total_blob_bytes_; } 29761: const std::string& GetChecksumMethod() const { return checksum_method_; } 29761: const std::string& GetChecksumValue() const { return checksum_value_; } 29761: 29761: void EncodeTo(std::string* output) const; 29761: Status DecodeFrom(Slice* input); 29761: 29761: std::string DebugString() const; 29761: std::string DebugJSON() const; 29761: 29761: private: 29761: enum CustomFieldTags : uint32_t; 29761: 29761: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 29761: uint64_t total_blob_count_ = 0; 29761: uint64_t total_blob_bytes_ = 0; 29761: std::string checksum_method_; 29761: std::string checksum_value_; 29761: }; 29761: 29761: bool operator==(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 29761: bool operator!=(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 29761: 29761: std::ostream& operator<<(std::ostream& os, 29761: const BlobFileAddition& blob_file_addition); 29761: JSONWriter& operator<<(JSONWriter& jw, 29761: const BlobFileAddition& blob_file_addition); 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.h" 29761: namespace rocksdb { 29761: 29761: class JSONWriter; 29761: class Slice; 29761: class Status; 29761: 29761: class BlobFileGarbage { 29761: public: 29761: BlobFileGarbage() = default; 29761: 29761: BlobFileGarbage(uint64_t blob_file_number, uint64_t garbage_blob_count, 29761: uint64_t garbage_blob_bytes) 29761: : blob_file_number_(blob_file_number), 29761: garbage_blob_count_(garbage_blob_count), 29761: garbage_blob_bytes_(garbage_blob_bytes) {} 29761: 29761: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 29761: uint64_t GetGarbageBlobCount() const { return garbage_blob_count_; } 29761: uint64_t GetGarbageBlobBytes() const { return garbage_blob_bytes_; } 29761: 29761: void EncodeTo(std::string* output) const; 29761: Status DecodeFrom(Slice* input); 29761: 29761: std::string DebugString() const; 29761: std::string DebugJSON() const; 29761: 29761: private: 29761: enum CustomFieldTags : uint32_t; 29761: 29761: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 29761: uint64_t garbage_blob_count_ = 0; 29761: uint64_t garbage_blob_bytes_ = 0; 29761: }; 29761: 29761: bool operator==(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 29761: bool operator!=(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 29761: 29761: std::ostream& operator<<(std::ostream& os, 29761: const BlobFileGarbage& blob_file_garbage); 29761: JSONWriter& operator<<(JSONWriter& jw, 29761: const BlobFileGarbage& blob_file_garbage); 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ctime" 1 3 29761: # 39 "/usr/include/c++/14/ctime" 3 29761: 29761: # 40 "/usr/include/c++/14/ctime" 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 1 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 1 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 29761: 29761: # 1 "/usr/include/c++/14/cerrno" 1 3 29761: # 39 "/usr/include/c++/14/cerrno" 3 29761: 29761: # 40 "/usr/include/c++/14/cerrno" 3 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 2 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Logger; 29761: 29761: class Allocator { 29761: public: 29761: virtual ~Allocator() {} 29761: 29761: virtual char* Allocate(size_t bytes) = 0; 29761: virtual char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29761: Logger* logger = nullptr) = 0; 29761: 29761: virtual size_t BlockSize() const = 0; 29761: }; 29761: 29761: class AllocTracker { 29761: public: 29761: explicit AllocTracker(WriteBufferManager* write_buffer_manager); 29761: 29761: AllocTracker(const AllocTracker&) = delete; 29761: void operator=(const AllocTracker&) = delete; 29761: 29761: ~AllocTracker(); 29761: void Allocate(size_t bytes); 29761: 29761: 29761: void DoneAllocating(); 29761: 29761: void FreeMem(); 29761: 29761: bool is_freed() const { return write_buffer_manager_ == nullptr || freed_; } 29761: 29761: private: 29761: WriteBufferManager* write_buffer_manager_; 29761: std::atomic bytes_allocated_; 29761: bool done_allocating_; 29761: bool freed_; 29761: }; 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 1 3 4 29761: # 25 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29761: # 41 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 1 3 4 29761: # 29 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-map-flags-generic.h" 1 3 4 29761: # 30 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 1 3 4 29761: # 135 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 1 3 4 29761: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 29761: 29761: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: int memfd_create (const char *__name, unsigned int __flags) noexcept (true); 29761: 29761: 29761: 29761: int mlock2 (const void *__addr, size_t __length, unsigned int __flags) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: int pkey_alloc (unsigned int __flags, unsigned int __access_rights) noexcept (true); 29761: 29761: 29761: 29761: int pkey_set (int __key, unsigned int __access_rights) noexcept (true); 29761: 29761: 29761: 29761: int pkey_get (int __key) noexcept (true); 29761: 29761: 29761: 29761: int pkey_free (int __key) noexcept (true); 29761: 29761: 29761: 29761: int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) noexcept (true); 29761: 29761: } 29761: # 136 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 2 3 4 29761: # 33 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 29761: # 42 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: # 61 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29761: extern void * mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off64_t __offset) noexcept (true) __asm__ ("" "mmap64") 29761: 29761: 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: extern void *mmap64 (void *__addr, size_t __len, int __prot, 29761: int __flags, int __fd, __off64_t __offset) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int munmap (void *__addr, size_t __len) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int mprotect (void *__addr, size_t __len, int __prot) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int msync (void *__addr, size_t __len, int __flags); 29761: 29761: 29761: 29761: 29761: extern int madvise (void *__addr, size_t __len, int __advice) noexcept (true); 29761: 29761: 29761: 29761: extern int posix_madvise (void *__addr, size_t __len, int __advice) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int mlock (const void *__addr, size_t __len) noexcept (true); 29761: 29761: 29761: extern int munlock (const void *__addr, size_t __len) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int mlockall (int __flags) noexcept (true); 29761: 29761: 29761: 29761: extern int munlockall (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int mincore (void *__start, size_t __len, unsigned char *__vec) 29761: noexcept (true); 29761: # 133 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29761: extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, 29761: int __flags, ...) noexcept (true); 29761: 29761: 29761: 29761: extern int remap_file_pages (void *__start, size_t __size, int __prot, 29761: size_t __pgoff, int __flags) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int shm_open (const char *__name, int __oflag, mode_t __mode); 29761: 29761: 29761: extern int shm_unlink (const char *__name); 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 3 4 29761: struct iovec; 29761: extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov, 29761: size_t __count, int __advice, 29761: unsigned __flags) 29761: noexcept (true); 29761: 29761: extern int process_mrelease (int pidfd, unsigned int flags) noexcept (true); 29761: # 151 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 29761: namespace rocksdb { 29761: 29761: 29761: class MemMapping { 29761: public: 29761: static constexpr bool kHugePageSupported = 29761: 29761: true; 29761: 29761: 29761: 29761: 29761: 29761: static MemMapping AllocateHuge(size_t length); 29761: 29761: 29761: 29761: 29761: 29761: 29761: static MemMapping AllocateLazyZeroed(size_t length); 29761: 29761: 29761: MemMapping(const MemMapping&) = delete; 29761: MemMapping& operator=(const MemMapping&) = delete; 29761: 29761: MemMapping(MemMapping&&) noexcept; 29761: MemMapping& operator=(MemMapping&&) noexcept; 29761: 29761: 29761: ~MemMapping(); 29761: 29761: inline void* Get() const { return addr_; } 29761: inline size_t Length() const { return length_; } 29761: 29761: private: 29761: MemMapping() {} 29761: 29761: 29761: void* addr_ = nullptr; 29761: 29761: size_t length_ = 0; 29761: 29761: 29761: 29761: 29761: 29761: static MemMapping AllocateAnonymous(size_t length, bool huge); 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: class TypedMemMapping : public MemMapping { 29761: public: 29761: TypedMemMapping(MemMapping&& v) noexcept 29761: : MemMapping(std::move(v)) {} 29761: TypedMemMapping& operator=(MemMapping&& v) noexcept { 29761: MemMapping& base = *this; 29761: base = std::move(v); 29761: } 29761: 29761: inline T* Get() const { return static_cast(MemMapping::Get()); } 29761: inline size_t Count() const { return MemMapping::Length() / sizeof(T); } 29761: 29761: inline T& operator[](size_t index) const { return Get()[index]; } 29761: }; 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Arena : public Allocator { 29761: public: 29761: 29761: Arena(const Arena&) = delete; 29761: void operator=(const Arena&) = delete; 29761: 29761: static constexpr size_t kInlineSize = 2048; 29761: static constexpr size_t kMinBlockSize = 4096; 29761: static constexpr size_t kMaxBlockSize = 2u << 30; 29761: 29761: static constexpr unsigned kAlignUnit = alignof(std::max_align_t); 29761: static_assert((kAlignUnit & (kAlignUnit - 1)) == 0, 29761: "Pointer size should be power of 2"); 29761: 29761: 29761: 29761: 29761: explicit Arena(size_t block_size = kMinBlockSize, 29761: AllocTracker* tracker = nullptr, size_t huge_page_size = 0); 29761: ~Arena(); 29761: 29761: char* Allocate(size_t bytes) override; 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29761: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29761: Logger* logger = nullptr) override; 29761: 29761: 29761: 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: return blocks_memory_ + blocks_.size() * sizeof(char*) - 29761: alloc_bytes_remaining_; 29761: } 29761: 29761: size_t MemoryAllocatedBytes() const { return blocks_memory_; } 29761: 29761: size_t AllocatedAndUnused() const { return alloc_bytes_remaining_; } 29761: 29761: 29761: 29761: size_t IrregularBlockNum() const { return irregular_block_num; } 29761: 29761: size_t BlockSize() const override { return kBlockSize; } 29761: 29761: bool IsInInlineBlock() const { 29761: return blocks_.empty() && huge_blocks_.empty(); 29761: } 29761: 29761: 29761: 29761: 29761: static size_t OptimizeBlockSize(size_t block_size); 29761: 29761: private: 29761: alignas(std::max_align_t) char inline_block_[kInlineSize]; 29761: 29761: const size_t kBlockSize; 29761: 29761: std::deque> blocks_; 29761: 29761: std::deque huge_blocks_; 29761: size_t irregular_block_num = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: char* unaligned_alloc_ptr_ = nullptr; 29761: char* aligned_alloc_ptr_ = nullptr; 29761: 29761: size_t alloc_bytes_remaining_ = 0; 29761: 29761: size_t hugetlb_size_ = 0; 29761: 29761: char* AllocateFromHugePage(size_t bytes); 29761: char* AllocateFallback(size_t bytes, bool aligned); 29761: char* AllocateNewBlock(size_t block_bytes); 29761: 29761: 29761: size_t blocks_memory_ = 0; 29761: 29761: AllocTracker* tracker_; 29761: }; 29761: 29761: inline char* Arena::Allocate(size_t bytes) { 29761: 29761: 29761: 29761: 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29761: (static_cast ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29761: bytes > 0 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29761: "bytes > 0" 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29761: ; 29761: if (bytes <= alloc_bytes_remaining_) { 29761: unaligned_alloc_ptr_ -= bytes; 29761: alloc_bytes_remaining_ -= bytes; 29761: return unaligned_alloc_ptr_; 29761: } 29761: return AllocateFallback(bytes, false ); 29761: } 29761: 29761: 29761: template 29761: struct Destroyer { 29761: void operator()(T* ptr) { ptr->~T(); } 29761: }; 29761: 29761: 29761: 29761: template 29761: using ScopedArenaPtr = std::unique_ptr>; 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 1 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29761: 29761: # 42 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/time.h" 1 3 4 29761: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: 29761: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern "C" { 29761: # 52 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: struct timezone 29761: { 29761: int tz_minuteswest; 29761: int tz_dsttime; 29761: }; 29761: # 71 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern int gettimeofday (struct timeval *__restrict __tv, void *__restrict __tz) noexcept (true) __asm__ ("" "__gettimeofday64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: # 98 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern int settimeofday (const struct timeval *__tv, const struct timezone *__tz) noexcept (true) __asm__ ("" "__settimeofday64") 29761: 29761: ; 29761: 29761: extern int adjtime (const struct timeval *__delta, struct timeval *__olddelta) noexcept (true) __asm__ ("" "__adjtime64") 29761: 29761: ; 29761: # 114 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: enum __itimer_which 29761: { 29761: 29761: ITIMER_REAL = 0, 29761: 29761: 29761: ITIMER_VIRTUAL = 1, 29761: 29761: 29761: 29761: ITIMER_PROF = 2 29761: 29761: }; 29761: 29761: 29761: 29761: struct itimerval 29761: { 29761: 29761: struct timeval it_interval; 29761: 29761: struct timeval it_value; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef int __itimer_which_t; 29761: # 167 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern int getitimer (__itimer_which_t __which, struct itimerval *__value) noexcept (true) __asm__ ("" "__getitimer64") 29761: 29761: ; 29761: 29761: extern int setitimer (__itimer_which_t __which, const struct itimerval *__restrict __new, struct itimerval *__restrict __old) noexcept (true) __asm__ ("" "__setitimer64") 29761: 29761: 29761: ; 29761: 29761: extern int utimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__utimes64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: # 196 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern int lutimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__lutimes64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: extern int futimes (int __fd, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimes64") 29761: ; 29761: # 218 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern int futimesat (int __fd, const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimesat64") 29761: 29761: ; 29761: # 258 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: } 29761: # 43 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 2 29761: 29761: 29761: 29761: # 45 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29761: namespace rocksdb { 29761: 29761: namespace port { 29761: 29761: using TimeVal = struct timeval; 29761: 29761: inline void GetTimeOfDay(TimeVal* tv, struct timezone* tz) { 29761: gettimeofday(tv, tz); 29761: } 29761: 29761: inline struct tm* LocalTimeR(const time_t* timep, struct tm* result) { 29761: return localtime_r(timep, result); 29761: } 29761: 29761: } 29761: 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Logger; 29761: 29761: 29761: class LogBuffer { 29761: public: 29761: 29761: 29761: LogBuffer(const InfoLogLevel log_level, Logger* info_log); 29761: 29761: 29761: 29761: void AddLogToBuffer(size_t max_log_size, const char* format, va_list ap); 29761: 29761: size_t IsEmpty() const { return logs_.empty(); } 29761: 29761: 29761: void FlushBufferToLog(); 29761: static const size_t kDefaultMaxLogSize = 512; 29761: 29761: private: 29761: 29761: struct BufferedLog { 29761: port::TimeVal now_tv; 29761: char message[1]; 29761: }; 29761: 29761: const InfoLogLevel log_level_; 29761: Logger* info_log_; 29761: Arena arena_; 29761: autovector logs_; 29761: }; 29761: 29761: 29761: 29761: 29761: void LogToBuffer(LogBuffer* log_buffer, size_t max_log_size, const char* format, 29761: ...); 29761: 29761: void LogToBuffer(LogBuffer* log_buffer, const char* format, ...); 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class JSONWriter { 29761: public: 29761: JSONWriter() : state_(kExpectKey), first_element_(true), in_array_(false) { 29761: stream_ << "{"; 29761: } 29761: 29761: void AddKey(const std::string& key) { 29761: 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectKey 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectKey" 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: if (!first_element_) { 29761: stream_ << ", "; 29761: } 29761: stream_ << "\"" << key << "\": "; 29761: state_ = kExpectValue; 29761: first_element_ = false; 29761: } 29761: 29761: void AddValue(const char* value) { 29761: 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectValue || state_ == kInArray 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectValue || state_ == kInArray" 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: if (state_ == kInArray && !first_element_) { 29761: stream_ << ", "; 29761: } 29761: stream_ << "\"" << value << "\""; 29761: if (state_ != kInArray) { 29761: state_ = kExpectKey; 29761: } 29761: first_element_ = false; 29761: } 29761: 29761: template 29761: void AddValue(const T& value) { 29761: 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectValue || state_ == kInArray 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectValue || state_ == kInArray" 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: if (state_ == kInArray && !first_element_) { 29761: stream_ << ", "; 29761: } 29761: stream_ << value; 29761: if (state_ != kInArray) { 29761: state_ = kExpectKey; 29761: } 29761: first_element_ = false; 29761: } 29761: 29761: void StartArray() { 29761: 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectValue 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectValue" 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: state_ = kInArray; 29761: in_array_ = true; 29761: stream_ << "["; 29761: first_element_ = true; 29761: } 29761: 29761: void EndArray() { 29761: 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kInArray 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kInArray" 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: state_ = kExpectKey; 29761: in_array_ = false; 29761: stream_ << "]"; 29761: first_element_ = false; 29761: } 29761: 29761: void StartObject() { 29761: 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectValue 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectValue" 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: state_ = kExpectKey; 29761: stream_ << "{"; 29761: first_element_ = true; 29761: } 29761: 29761: void EndObject() { 29761: 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectKey 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectKey" 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: stream_ << "}"; 29761: first_element_ = false; 29761: } 29761: 29761: void StartArrayedObject() { 29761: 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kInArray && in_array_ 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kInArray && in_array_" 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: state_ = kExpectValue; 29761: if (!first_element_) { 29761: stream_ << ", "; 29761: } 29761: StartObject(); 29761: } 29761: 29761: void EndArrayedObject() { 29761: 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: in_array_ 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "in_array_" 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: EndObject(); 29761: state_ = kInArray; 29761: } 29761: 29761: std::string Get() const { return stream_.str(); } 29761: 29761: JSONWriter& operator<<(const char* val) { 29761: if (state_ == kExpectKey) { 29761: AddKey(val); 29761: } else { 29761: AddValue(val); 29761: } 29761: return *this; 29761: } 29761: 29761: JSONWriter& operator<<(const std::string& val) { 29761: return *this << val.c_str(); 29761: } 29761: 29761: template 29761: JSONWriter& operator<<(const T& val) { 29761: 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ != kExpectKey 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ != kExpectKey" 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: AddValue(val); 29761: return *this; 29761: } 29761: 29761: private: 29761: enum JSONWriterState { 29761: kExpectKey, 29761: kExpectValue, 29761: kInArray, 29761: kInArrayedObject, 29761: }; 29761: JSONWriterState state_; 29761: bool first_element_; 29761: bool in_array_; 29761: std::ostringstream stream_; 29761: }; 29761: 29761: class EventLoggerStream { 29761: public: 29761: template 29761: EventLoggerStream& operator<<(const T& val) { 29761: MakeStream(); 29761: *json_writer_ << val; 29761: return *this; 29761: } 29761: 29761: void StartArray() { json_writer_->StartArray(); } 29761: void EndArray() { json_writer_->EndArray(); } 29761: void StartObject() { json_writer_->StartObject(); } 29761: void EndObject() { json_writer_->EndObject(); } 29761: 29761: ~EventLoggerStream(); 29761: 29761: private: 29761: void MakeStream() { 29761: if (!json_writer_) { 29761: json_writer_ = new JSONWriter(); 29761: *this << "time_micros" 29761: << std::chrono::duration_cast( 29761: std::chrono::system_clock::now().time_since_epoch()) 29761: .count(); 29761: } 29761: } 29761: friend class EventLogger; 29761: explicit EventLoggerStream(Logger* logger); 29761: explicit EventLoggerStream(LogBuffer* log_buffer, const size_t max_log_size); 29761: 29761: Logger* const logger_; 29761: LogBuffer* const log_buffer_; 29761: const size_t max_log_size_; 29761: 29761: JSONWriter* json_writer_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class EventLogger { 29761: public: 29761: static const char* Prefix() { return "EVENT_LOG_v1"; } 29761: 29761: explicit EventLogger(Logger* logger) : logger_(logger) {} 29761: EventLoggerStream Log() { return EventLoggerStream(logger_); } 29761: EventLoggerStream LogToBuffer(LogBuffer* log_buffer) { 29761: return EventLoggerStream(log_buffer, LogBuffer::kDefaultMaxLogSize); 29761: } 29761: EventLoggerStream LogToBuffer(LogBuffer* log_buffer, 29761: const size_t max_log_size) { 29761: return EventLoggerStream(log_buffer, max_log_size); 29761: } 29761: void Log(const JSONWriter& jwriter); 29761: static void Log(Logger* logger, const JSONWriter& jwriter); 29761: static void LogToBuffer( 29761: LogBuffer* log_buffer, const JSONWriter& jwriter, 29761: const size_t max_log_size = LogBuffer::kDefaultMaxLogSize); 29761: 29761: private: 29761: Logger* logger_; 29761: }; 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 2 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class JSONWriter; 29761: class Slice; 29761: class Status; 29761: 29761: using WalNumber = uint64_t; 29761: 29761: 29761: class WalMetadata { 29761: public: 29761: WalMetadata() = default; 29761: 29761: explicit WalMetadata(uint64_t synced_size_bytes) 29761: : synced_size_bytes_(synced_size_bytes) {} 29761: 29761: bool HasSyncedSize() const { return synced_size_bytes_ != kUnknownWalSize; } 29761: 29761: void SetSyncedSizeInBytes(uint64_t bytes) { synced_size_bytes_ = bytes; } 29761: 29761: uint64_t GetSyncedSizeInBytes() const { return synced_size_bytes_; } 29761: 29761: private: 29761: friend bool operator==(const WalMetadata& lhs, const WalMetadata& rhs); 29761: friend bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs); 29761: 29761: 29761: constexpr static uint64_t kUnknownWalSize = 29761: std::numeric_limits::max(); 29761: 29761: 29761: uint64_t synced_size_bytes_ = kUnknownWalSize; 29761: }; 29761: 29761: inline bool operator==(const WalMetadata& lhs, const WalMetadata& rhs) { 29761: return lhs.synced_size_bytes_ == rhs.synced_size_bytes_; 29761: } 29761: 29761: inline bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs) { 29761: return !(lhs == rhs); 29761: } 29761: 29761: 29761: enum class WalAdditionTag : uint32_t { 29761: 29761: kTerminate = 1, 29761: 29761: kSyncedSize = 2, 29761: 29761: }; 29761: 29761: 29761: class WalAddition { 29761: public: 29761: WalAddition() : number_(0), metadata_() {} 29761: 29761: explicit WalAddition(WalNumber number) : number_(number), metadata_() {} 29761: 29761: WalAddition(WalNumber number, WalMetadata meta) 29761: : number_(number), metadata_(std::move(meta)) {} 29761: 29761: WalNumber GetLogNumber() const { return number_; } 29761: 29761: const WalMetadata& GetMetadata() const { return metadata_; } 29761: 29761: void EncodeTo(std::string* dst) const; 29761: 29761: Status DecodeFrom(Slice* src); 29761: 29761: std::string DebugString() const; 29761: 29761: private: 29761: WalNumber number_; 29761: WalMetadata metadata_; 29761: }; 29761: 29761: std::ostream& operator<<(std::ostream& os, const WalAddition& wal); 29761: JSONWriter& operator<<(JSONWriter& jw, const WalAddition& wal); 29761: 29761: using WalAdditions = std::vector; 29761: 29761: 29761: class WalDeletion { 29761: public: 29761: WalDeletion() : number_(kEmpty) {} 29761: 29761: explicit WalDeletion(WalNumber number) : number_(number) {} 29761: 29761: WalNumber GetLogNumber() const { return number_; } 29761: 29761: void EncodeTo(std::string* dst) const; 29761: 29761: Status DecodeFrom(Slice* src); 29761: 29761: std::string DebugString() const; 29761: 29761: bool IsEmpty() const { return number_ == kEmpty; } 29761: 29761: void Reset() { number_ = kEmpty; } 29761: 29761: private: 29761: static constexpr WalNumber kEmpty = 0; 29761: 29761: WalNumber number_; 29761: }; 29761: 29761: std::ostream& operator<<(std::ostream& os, const WalDeletion& wal); 29761: JSONWriter& operator<<(JSONWriter& jw, const WalDeletion& wal); 29761: # 138 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 29761: class WalSet { 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: Status AddWal(const WalAddition& wal); 29761: Status AddWals(const WalAdditions& wals); 29761: 29761: 29761: 29761: Status DeleteWalsBefore(WalNumber wal); 29761: 29761: 29761: void Reset(); 29761: 29761: 29761: WalNumber GetMinWalNumberToKeep() const { return min_wal_number_to_keep_; } 29761: 29761: const std::map& GetWals() const { return wals_; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status CheckWals( 29761: Env* env, 29761: const std::unordered_map& logs_on_disk) const; 29761: 29761: private: 29761: std::map wals_; 29761: 29761: 29761: WalNumber min_wal_number_to_keep_ = 0; 29761: }; 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: namespace rocksdb { 29761: 29761: class Logger; 29761: class SecondaryCacheResultHandle; 29761: class Statistics; 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: class Cache : public Customizable { 29761: public: 29761: 29761: struct Handle {}; 29761: 29761: public: 29761: 29761: 29761: using ObjectPtr = void*; 29761: 29761: 29761: 29761: struct CreateContext {}; 29761: 29761: public: 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: enum class Priority { HIGH, LOW, BOTTOM }; 29761: # 97 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: using SizeCallback = size_t (*)(ObjectPtr obj); 29761: 29761: 29761: 29761: 29761: 29761: using SaveToCallback = Status (*)(ObjectPtr from_obj, size_t from_offset, 29761: size_t length, char* out_buf); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using DeleterFn = void (*)(ObjectPtr obj, MemoryAllocator* allocator); 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: using CreateCallback = Status (*)(const Slice& data, CompressionType type, 29761: CacheTier source, CreateContext* context, 29761: MemoryAllocator* allocator, 29761: ObjectPtr* out_obj, size_t* out_charge); 29761: 29761: 29761: 29761: 29761: struct CacheItemHelper { 29761: 29761: 29761: 29761: DeleterFn del_cb; 29761: 29761: 29761: 29761: SizeCallback size_cb; 29761: SaveToCallback saveto_cb; 29761: CreateCallback create_cb; 29761: 29761: CacheEntryRole role; 29761: 29761: 29761: 29761: 29761: const CacheItemHelper* without_secondary_compat; 29761: 29761: CacheItemHelper() : CacheItemHelper(CacheEntryRole::kMisc) {} 29761: 29761: 29761: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb = nullptr) 29761: : CacheItemHelper(_role, _del_cb, nullptr, nullptr, nullptr, this) {} 29761: 29761: 29761: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb, 29761: SizeCallback _size_cb, SaveToCallback _saveto_cb, 29761: CreateCallback _create_cb, 29761: const CacheItemHelper* _without_secondary_compat) 29761: : del_cb(_del_cb), 29761: size_cb(_size_cb), 29761: saveto_cb(_saveto_cb), 29761: create_cb(_create_cb), 29761: role(_role), 29761: without_secondary_compat(_without_secondary_compat) { 29761: 29761: 29761: 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: (size_cb != nullptr) == (saveto_cb != nullptr) 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "(size_cb != nullptr) == (saveto_cb != nullptr)" 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; 29761: 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: (size_cb != nullptr) == (create_cb != nullptr) 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "(size_cb != nullptr) == (create_cb != nullptr)" 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; 29761: 29761: 29761: 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: role == without_secondary_compat->role 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "role == without_secondary_compat->role" 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; 29761: 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: del_cb == without_secondary_compat->del_cb 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "del_cb == without_secondary_compat->del_cb" 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; 29761: 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: !without_secondary_compat->IsSecondaryCacheCompatible() 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "!without_secondary_compat->IsSecondaryCacheCompatible()" 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; 29761: } 29761: inline bool IsSecondaryCacheCompatible() const { 29761: return size_cb != nullptr; 29761: } 29761: }; 29761: 29761: public: 29761: Cache(std::shared_ptr allocator = nullptr) 29761: : memory_allocator_(std::move(allocator)) {} 29761: 29761: Cache(const Cache&) = delete; 29761: Cache& operator=(const Cache&) = delete; 29761: 29761: 29761: virtual ~Cache() {} 29761: 29761: static const char* Type() { return "Cache"; } 29761: # 206 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: public: 29761: 29761: virtual const char* Name() const = 0; 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual Status Insert( 29761: const Slice& key, ObjectPtr obj, const CacheItemHelper* helper, 29761: size_t charge, Handle** handle = nullptr, 29761: Priority priority = Priority::LOW, const Slice& compressed = Slice(), 29761: CompressionType type = CompressionType::kNoCompression) = 0; 29761: # 277 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 29761: const CacheItemHelper* helper, size_t charge, 29761: bool allow_uncharged) = 0; 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual Handle* Lookup(const Slice& key, 29761: const CacheItemHelper* helper = nullptr, 29761: CreateContext* create_context = nullptr, 29761: Priority priority = Priority::LOW, 29761: Statistics* stats = nullptr) = 0; 29761: 29761: 29761: inline Handle* BasicLookup(const Slice& key, Statistics* stats) { 29761: return Lookup(key, nullptr, nullptr, Priority::LOW, stats); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual bool Ref(Handle* handle) = 0; 29761: # 319 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual bool Release(Handle* handle, bool erase_if_last_ref = false) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual ObjectPtr Value(Handle* handle) = 0; 29761: 29761: 29761: 29761: 29761: virtual void Erase(const Slice& key) = 0; 29761: 29761: 29761: 29761: 29761: virtual uint64_t NewId() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void SetCapacity(size_t capacity) = 0; 29761: 29761: 29761: 29761: virtual void SetStrictCapacityLimit(bool strict_capacity_limit) = 0; 29761: 29761: 29761: 29761: virtual bool HasStrictCapacityLimit() const = 0; 29761: 29761: 29761: virtual size_t GetCapacity() const = 0; 29761: 29761: 29761: virtual size_t GetUsage() const = 0; 29761: 29761: 29761: 29761: 29761: virtual size_t GetOccupancyCount() const { return 29761: # 361 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (4294967295U) 29761: # 361 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; } 29761: 29761: 29761: 29761: 29761: virtual size_t GetTableAddressCount() const { return 0; } 29761: 29761: 29761: virtual size_t GetUsage(Handle* handle) const = 0; 29761: 29761: 29761: virtual size_t GetPinnedUsage() const = 0; 29761: 29761: 29761: virtual size_t GetCharge(Handle* handle) const = 0; 29761: 29761: 29761: virtual const CacheItemHelper* GetCacheItemHelper(Handle* handle) const = 0; 29761: 29761: virtual Status GetSecondaryCacheCapacity(size_t& ) const { 29761: return Status::NotSupported(); 29761: } 29761: 29761: virtual Status GetSecondaryCachePinnedUsage(size_t& ) const { 29761: return Status::NotSupported(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void DisownData() { 29761: 29761: } 29761: 29761: struct ApplyToAllEntriesOptions { 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t average_entries_per_lock = 256; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: virtual void ApplyToAllEntries( 29761: const std::function& callback, 29761: const ApplyToAllEntriesOptions& opts) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void ApplyToHandle( 29761: Cache* cache, Handle* handle, 29761: const std::function& callback) = 0; 29761: 29761: 29761: virtual void EraseUnRefEntries() = 0; 29761: 29761: virtual std::string GetPrintableOptions() const { return ""; } 29761: 29761: 29761: 29761: 29761: 29761: virtual void ReportProblems( 29761: const std::shared_ptr& ) const {} 29761: 29761: MemoryAllocator* memory_allocator() const { return memory_allocator_.get(); } 29761: 29761: 29761: virtual uint32_t GetHashSeed() const { return 0; } 29761: # 450 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual bool Release(Handle* handle, bool , 29761: bool erase_if_last_ref) { 29761: return Release(handle, erase_if_last_ref); 29761: } 29761: 29761: 29761: 29761: 29761: struct AsyncLookupHandle { 29761: 29761: 29761: 29761: Slice key; 29761: const CacheItemHelper* helper = nullptr; 29761: CreateContext* create_context = nullptr; 29761: Priority priority = Priority::LOW; 29761: Statistics* stats = nullptr; 29761: 29761: AsyncLookupHandle() {} 29761: AsyncLookupHandle(const Slice& _key, const CacheItemHelper* _helper, 29761: CreateContext* _create_context, 29761: Priority _priority = Priority::LOW, 29761: Statistics* _stats = nullptr) 29761: : key(_key), 29761: helper(_helper), 29761: create_context(_create_context), 29761: priority(_priority), 29761: stats(_stats) {} 29761: 29761: 29761: ~AsyncLookupHandle() { 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: !IsPending() 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "!IsPending()" 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; } 29761: 29761: 29761: AsyncLookupHandle(const AsyncLookupHandle&) = delete; 29761: AsyncLookupHandle operator=(const AsyncLookupHandle&) = delete; 29761: AsyncLookupHandle(AsyncLookupHandle&&) = delete; 29761: AsyncLookupHandle operator=(AsyncLookupHandle&&) = delete; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool IsReady(); 29761: 29761: 29761: bool IsPending(); 29761: 29761: 29761: 29761: 29761: 29761: Handle* Result(); 29761: 29761: 29761: Handle* result_handle = nullptr; 29761: SecondaryCacheResultHandle* pending_handle = nullptr; 29761: SecondaryCache* pending_cache = nullptr; 29761: bool found_dummy_entry = false; 29761: bool kept_in_sec_cache = false; 29761: }; 29761: # 531 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual void StartAsyncLookup(AsyncLookupHandle& async_handle); 29761: 29761: 29761: 29761: Handle* Wait(AsyncLookupHandle& async_handle); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void WaitAll(AsyncLookupHandle* , size_t ); 29761: 29761: 29761: 29761: 29761: 29761: using EvictionCallback = 29761: std::function; 29761: 29761: 29761: 29761: void SetEvictionCallback(EvictionCallback&& fn); 29761: 29761: protected: 29761: std::shared_ptr memory_allocator_; 29761: EvictionCallback eviction_callback_; 29761: }; 29761: 29761: 29761: 29761: class CacheWrapper : public Cache { 29761: public: 29761: explicit CacheWrapper(std::shared_ptr target) 29761: : target_(std::move(target)) {} 29761: 29761: 29761: 29761: 29761: Status Insert( 29761: const Slice& key, ObjectPtr value, const CacheItemHelper* helper, 29761: size_t charge, Handle** handle = nullptr, 29761: Priority priority = Priority::LOW, 29761: const Slice& compressed_value = Slice(), 29761: CompressionType type = CompressionType::kNoCompression) override { 29761: return target_->Insert(key, value, helper, charge, handle, priority, 29761: compressed_value, type); 29761: } 29761: 29761: Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 29761: const CacheItemHelper* helper, size_t charge, 29761: bool allow_uncharged) override { 29761: return target_->CreateStandalone(key, obj, helper, charge, allow_uncharged); 29761: } 29761: 29761: Handle* Lookup(const Slice& key, const CacheItemHelper* helper, 29761: CreateContext* create_context, 29761: Priority priority = Priority::LOW, 29761: Statistics* stats = nullptr) override { 29761: return target_->Lookup(key, helper, create_context, priority, stats); 29761: } 29761: 29761: bool Ref(Handle* handle) override { return target_->Ref(handle); } 29761: 29761: using Cache::Release; 29761: bool Release(Handle* handle, bool erase_if_last_ref = false) override { 29761: return target_->Release(handle, erase_if_last_ref); 29761: } 29761: 29761: ObjectPtr Value(Handle* handle) override { return target_->Value(handle); } 29761: 29761: void Erase(const Slice& key) override { target_->Erase(key); } 29761: uint64_t NewId() override { return target_->NewId(); } 29761: 29761: void SetCapacity(size_t capacity) override { target_->SetCapacity(capacity); } 29761: 29761: void SetStrictCapacityLimit(bool strict_capacity_limit) override { 29761: target_->SetStrictCapacityLimit(strict_capacity_limit); 29761: } 29761: 29761: bool HasStrictCapacityLimit() const override { 29761: return target_->HasStrictCapacityLimit(); 29761: } 29761: 29761: size_t GetOccupancyCount() const override { 29761: return target_->GetOccupancyCount(); 29761: } 29761: 29761: size_t GetTableAddressCount() const override { 29761: return target_->GetTableAddressCount(); 29761: } 29761: 29761: size_t GetCapacity() const override { return target_->GetCapacity(); } 29761: 29761: size_t GetUsage() const override { return target_->GetUsage(); } 29761: 29761: size_t GetUsage(Handle* handle) const override { 29761: return target_->GetUsage(handle); 29761: } 29761: 29761: size_t GetPinnedUsage() const override { return target_->GetPinnedUsage(); } 29761: 29761: size_t GetCharge(Handle* handle) const override { 29761: return target_->GetCharge(handle); 29761: } 29761: 29761: const CacheItemHelper* GetCacheItemHelper(Handle* handle) const override { 29761: return target_->GetCacheItemHelper(handle); 29761: } 29761: 29761: void ApplyToAllEntries( 29761: const std::function& callback, 29761: const ApplyToAllEntriesOptions& opts) override { 29761: target_->ApplyToAllEntries(callback, opts); 29761: } 29761: 29761: virtual void ApplyToHandle( 29761: Cache* cache, Handle* handle, 29761: const std::function& callback) 29761: override { 29761: auto cache_ptr = static_cast(cache); 29761: target_->ApplyToHandle(cache_ptr->target_.get(), handle, callback); 29761: } 29761: 29761: void EraseUnRefEntries() override { target_->EraseUnRefEntries(); } 29761: 29761: void StartAsyncLookup(AsyncLookupHandle& async_handle) override { 29761: target_->StartAsyncLookup(async_handle); 29761: } 29761: 29761: void WaitAll(AsyncLookupHandle* async_handles, size_t count) override { 29761: target_->WaitAll(async_handles, count); 29761: } 29761: 29761: uint32_t GetHashSeed() const override { return target_->GetHashSeed(); } 29761: 29761: void ReportProblems(const std::shared_ptr& info_log) const override { 29761: target_->ReportProblems(info_log); 29761: } 29761: 29761: const std::shared_ptr& GetTarget() { return target_; } 29761: 29761: protected: 29761: std::shared_ptr target_; 29761: }; 29761: 29761: 29761: 29761: extern const Cache::CacheItemHelper kNoopCacheItemHelper; 29761: 29761: } 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class ReadCallback { 29761: public: 29761: explicit ReadCallback(SequenceNumber last_visible_seq) 29761: : max_visible_seq_(last_visible_seq) {} 29761: ReadCallback(SequenceNumber last_visible_seq, SequenceNumber min_uncommitted) 29761: : max_visible_seq_(last_visible_seq), min_uncommitted_(min_uncommitted) {} 29761: 29761: virtual ~ReadCallback() {} 29761: 29761: 29761: 29761: virtual bool IsVisibleFullCheck(SequenceNumber seq) = 0; 29761: 29761: inline bool IsVisible(SequenceNumber seq) { 29761: 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: (static_cast ( 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: min_uncommitted_ > 0 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: "min_uncommitted_ > 0" 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: ; 29761: 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: (static_cast ( 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: min_uncommitted_ >= kMinUnCommittedSeq 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: "min_uncommitted_ >= kMinUnCommittedSeq" 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: ; 29761: if (seq < min_uncommitted_) { 29761: 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: (static_cast ( 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: seq <= max_visible_seq_ 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: "seq <= max_visible_seq_" 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: ; 29761: return true; 29761: } else if (max_visible_seq_ < seq) { 29761: 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: (static_cast ( 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: seq != 0 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: "seq != 0" 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: ; 29761: return false; 29761: } else { 29761: 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: (static_cast ( 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: seq != 0 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: "seq != 0" 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: ; 29761: return IsVisibleFullCheck(seq); 29761: } 29761: } 29761: 29761: inline SequenceNumber max_visible_seq() { return max_visible_seq_; } 29761: 29761: 29761: virtual void Refresh(SequenceNumber seq) { max_visible_seq_ = seq; } 29761: 29761: protected: 29761: 29761: 29761: SequenceNumber max_visible_seq_ = kMaxSequenceNumber; 29761: 29761: const SequenceNumber min_uncommitted_ = kMinUnCommittedSeq; 29761: }; 29761: 29761: } 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: class BlobFetcher; 29761: class Comparator; 29761: class Logger; 29761: class MergeContext; 29761: class MergeOperator; 29761: class PinnableWideColumns; 29761: class PinnedIteratorsManager; 29761: class Statistics; 29761: class SystemClock; 29761: struct ParsedInternalKey; 29761: 29761: 29761: 29761: 29761: struct GetContextStats { 29761: uint64_t num_cache_hit = 0; 29761: uint64_t num_cache_index_hit = 0; 29761: uint64_t num_cache_data_hit = 0; 29761: uint64_t num_cache_filter_hit = 0; 29761: uint64_t num_cache_compression_dict_hit = 0; 29761: uint64_t num_cache_index_miss = 0; 29761: uint64_t num_cache_filter_miss = 0; 29761: uint64_t num_cache_data_miss = 0; 29761: uint64_t num_cache_compression_dict_miss = 0; 29761: uint64_t num_cache_bytes_read = 0; 29761: uint64_t num_cache_miss = 0; 29761: uint64_t num_cache_add = 0; 29761: uint64_t num_cache_add_redundant = 0; 29761: uint64_t num_cache_bytes_write = 0; 29761: uint64_t num_cache_index_add = 0; 29761: uint64_t num_cache_index_add_redundant = 0; 29761: uint64_t num_cache_index_bytes_insert = 0; 29761: uint64_t num_cache_data_add = 0; 29761: uint64_t num_cache_data_add_redundant = 0; 29761: uint64_t num_cache_data_bytes_insert = 0; 29761: uint64_t num_cache_filter_add = 0; 29761: uint64_t num_cache_filter_add_redundant = 0; 29761: uint64_t num_cache_filter_bytes_insert = 0; 29761: uint64_t num_cache_compression_dict_add = 0; 29761: uint64_t num_cache_compression_dict_add_redundant = 0; 29761: uint64_t num_cache_compression_dict_bytes_insert = 0; 29761: 29761: uint64_t num_filter_read = 0; 29761: uint64_t num_index_read = 0; 29761: uint64_t num_sst_read = 0; 29761: }; 29761: # 67 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: class GetContext { 29761: public: 29761: 29761: 29761: enum GetState { 29761: kNotFound, 29761: kFound, 29761: kDeleted, 29761: kCorrupt, 29761: kMerge, 29761: kUnexpectedBlobIndex, 29761: kMergeOperatorFailed, 29761: }; 29761: GetContextStats get_context_stats_; 29761: # 102 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 29761: Logger* logger, Statistics* statistics, GetState init_state, 29761: const Slice& user_key, PinnableSlice* value, 29761: PinnableWideColumns* columns, bool* value_found, 29761: MergeContext* merge_context, bool do_merge, 29761: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 29761: SequenceNumber* seq = nullptr, 29761: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 29761: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29761: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 29761: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 29761: Logger* logger, Statistics* statistics, GetState init_state, 29761: const Slice& user_key, PinnableSlice* value, 29761: PinnableWideColumns* columns, std::string* timestamp, 29761: bool* value_found, MergeContext* merge_context, bool do_merge, 29761: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 29761: SequenceNumber* seq = nullptr, 29761: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 29761: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29761: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 29761: 29761: GetContext() = delete; 29761: 29761: 29761: 29761: void MarkKeyMayExist(); 29761: # 137 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: bool SaveValue(const ParsedInternalKey& parsed_key, const Slice& value, 29761: bool* matched, Status* read_status, 29761: Cleanable* value_pinner = nullptr); 29761: 29761: 29761: 29761: void SaveValue(const Slice& value, SequenceNumber seq); 29761: 29761: GetState State() const { return state_; } 29761: 29761: SequenceNumber* max_covering_tombstone_seq() { 29761: return max_covering_tombstone_seq_; 29761: } 29761: 29761: bool NeedTimestamp() { return timestamp_ != nullptr; } 29761: 29761: inline size_t TimestampSize() { return ucmp_->timestamp_size(); } 29761: 29761: void SetTimestampFromRangeTombstone(const Slice& timestamp) { 29761: 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29761: (static_cast ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: timestamp_ 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: "timestamp_" 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: ; 29761: timestamp_->assign(timestamp.data(), timestamp.size()); 29761: ts_from_rangetombstone_ = true; 29761: } 29761: 29761: PinnedIteratorsManager* pinned_iters_mgr() { return pinned_iters_mgr_; } 29761: 29761: 29761: 29761: 29761: void SetReplayLog(std::string* replay_log) { replay_log_ = replay_log; } 29761: 29761: 29761: bool NeedToReadSequence() const { return (seq_ != nullptr); } 29761: 29761: bool sample() const { return sample_; } 29761: 29761: bool CheckCallback(SequenceNumber seq) { 29761: if (callback_) { 29761: return callback_->IsVisible(seq); 29761: } 29761: return true; 29761: } 29761: 29761: void ReportCounters(); 29761: 29761: bool has_callback() const { return callback_ != nullptr; } 29761: 29761: const Slice& ukey_to_get_blob_value() const { 29761: if (!ukey_with_ts_found_.empty()) { 29761: return ukey_with_ts_found_; 29761: } else { 29761: return user_key_; 29761: } 29761: } 29761: 29761: uint64_t get_tracing_get_id() const { return tracing_get_id_; } 29761: 29761: void push_operand(const Slice& value, Cleanable* value_pinner); 29761: 29761: private: 29761: 29761: 29761: void PostprocessMerge(const Status& merge_status); 29761: 29761: 29761: 29761: void MergeWithNoBaseValue(); 29761: void MergeWithPlainBaseValue(const Slice& value); 29761: void MergeWithWideColumnBaseValue(const Slice& entity); 29761: 29761: bool GetBlobValue(const Slice& user_key, const Slice& blob_index, 29761: PinnableSlice* blob_value, Status* read_status); 29761: 29761: void appendToReplayLog(ValueType type, Slice value, Slice ts); 29761: 29761: const Comparator* ucmp_; 29761: const MergeOperator* merge_operator_; 29761: 29761: Logger* logger_; 29761: Statistics* statistics_; 29761: 29761: GetState state_; 29761: Slice user_key_; 29761: 29761: 29761: 29761: PinnableSlice ukey_with_ts_found_; 29761: PinnableSlice* pinnable_val_; 29761: PinnableWideColumns* columns_; 29761: std::string* timestamp_; 29761: bool ts_from_rangetombstone_{false}; 29761: bool* value_found_; 29761: MergeContext* merge_context_; 29761: SequenceNumber* max_covering_tombstone_seq_; 29761: SystemClock* clock_; 29761: 29761: 29761: SequenceNumber* seq_; 29761: std::string* replay_log_; 29761: 29761: PinnedIteratorsManager* pinned_iters_mgr_; 29761: ReadCallback* callback_; 29761: bool sample_; 29761: 29761: 29761: 29761: bool do_merge_; 29761: bool* is_blob_index_; 29761: 29761: 29761: const uint64_t tracing_get_id_; 29761: BlobFetcher* blob_fetcher_; 29761: }; 29761: 29761: 29761: 29761: 29761: Status replayGetContextLog(const Slice& replay_log, const Slice& user_key, 29761: GetContext* get_context, 29761: Cleanable* value_pinner = nullptr, 29761: SequenceNumber seq_no = kMaxSequenceNumber); 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/lookup_key.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/lookup_key.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: class LookupKey { 29761: public: 29761: 29761: 29761: LookupKey(const Slice& _user_key, SequenceNumber sequence, 29761: const Slice* ts = nullptr); 29761: 29761: ~LookupKey(); 29761: 29761: 29761: Slice memtable_key() const { 29761: return Slice(start_, static_cast(end_ - start_)); 29761: } 29761: 29761: 29761: Slice internal_key() const { 29761: return Slice(kstart_, static_cast(end_ - kstart_)); 29761: } 29761: 29761: 29761: 29761: 29761: Slice user_key() const { 29761: return Slice(kstart_, static_cast(end_ - kstart_ - 8)); 29761: } 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const char* start_; 29761: const char* kstart_; 29761: const char* end_; 29761: char space_[200]; 29761: 29761: 29761: LookupKey(const LookupKey&); 29761: void operator=(const LookupKey&); 29761: }; 29761: 29761: inline LookupKey::~LookupKey() { 29761: if (start_ != space_) delete[] start_; 29761: } 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/async_file_reader.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/single_thread_executor.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29761: 29761: namespace rocksdb { 29761: class GetContext; 29761: class PinnableWideColumns; 29761: 29761: struct KeyContext { 29761: const Slice* key; 29761: LookupKey* lkey; 29761: Slice ukey_with_ts; 29761: Slice ukey_without_ts; 29761: Slice ikey; 29761: ColumnFamilyHandle* column_family; 29761: Status* s; 29761: MergeContext merge_context; 29761: SequenceNumber max_covering_tombstone_seq; 29761: bool key_exists; 29761: bool is_blob_index; 29761: void* cb_arg; 29761: PinnableSlice* value; 29761: PinnableWideColumns* columns; 29761: std::string* timestamp; 29761: GetContext* get_context; 29761: 29761: KeyContext(ColumnFamilyHandle* col_family, const Slice& user_key, 29761: PinnableSlice* val, PinnableWideColumns* cols, std::string* ts, 29761: Status* stat) 29761: : key(&user_key), 29761: lkey(nullptr), 29761: column_family(col_family), 29761: s(stat), 29761: max_covering_tombstone_seq(0), 29761: key_exists(false), 29761: is_blob_index(false), 29761: cb_arg(nullptr), 29761: value(val), 29761: columns(cols), 29761: timestamp(ts), 29761: get_context(nullptr) {} 29761: }; 29761: # 97 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: class MultiGetContext { 29761: public: 29761: 29761: 29761: 29761: 29761: static const int MAX_BATCH_SIZE = 32; 29761: 29761: 29761: 29761: using Mask = uint64_t; 29761: static_assert(MAX_BATCH_SIZE < sizeof(Mask) * 8); 29761: 29761: MultiGetContext(autovector* sorted_keys, 29761: size_t begin, size_t num_keys, SequenceNumber snapshot, 29761: const ReadOptions& read_opts, FileSystem* fs, 29761: Statistics* stats) 29761: : num_keys_(num_keys), 29761: value_mask_(0), 29761: value_size_(0), 29761: lookup_key_ptr_(reinterpret_cast(lookup_key_stack_buf)) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: (void)fs; 29761: (void)stats; 29761: 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: num_keys <= MAX_BATCH_SIZE 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "num_keys <= MAX_BATCH_SIZE" 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: if (num_keys > MAX_LOOKUP_KEYS_ON_STACK) { 29761: lookup_key_heap_buf.reset(new char[sizeof(LookupKey) * num_keys]); 29761: lookup_key_ptr_ = reinterpret_cast(lookup_key_heap_buf.get()); 29761: } 29761: 29761: for (size_t iter = 0; iter != num_keys_; ++iter) { 29761: 29761: sorted_keys_[iter] = (*sorted_keys)[begin + iter]; 29761: sorted_keys_[iter]->lkey = new (&lookup_key_ptr_[iter]) 29761: LookupKey(*sorted_keys_[iter]->key, snapshot, read_opts.timestamp); 29761: sorted_keys_[iter]->ukey_with_ts = sorted_keys_[iter]->lkey->user_key(); 29761: sorted_keys_[iter]->ukey_without_ts = StripTimestampFromUserKey( 29761: sorted_keys_[iter]->lkey->user_key(), 29761: read_opts.timestamp == nullptr ? 0 : read_opts.timestamp->size()); 29761: sorted_keys_[iter]->ikey = sorted_keys_[iter]->lkey->internal_key(); 29761: sorted_keys_[iter]->timestamp = (*sorted_keys)[begin + iter]->timestamp; 29761: sorted_keys_[iter]->get_context = 29761: (*sorted_keys)[begin + iter]->get_context; 29761: } 29761: } 29761: 29761: ~MultiGetContext() { 29761: for (size_t i = 0; i < num_keys_; ++i) { 29761: lookup_key_ptr_[i].~LookupKey(); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: private: 29761: static const int MAX_LOOKUP_KEYS_ON_STACK = 16; 29761: alignas( 29761: alignof(LookupKey)) char lookup_key_stack_buf[sizeof(LookupKey) * 29761: MAX_LOOKUP_KEYS_ON_STACK]; 29761: std::array sorted_keys_; 29761: size_t num_keys_; 29761: Mask value_mask_; 29761: uint64_t value_size_; 29761: std::unique_ptr lookup_key_heap_buf; 29761: LookupKey* lookup_key_ptr_; 29761: 29761: 29761: 29761: 29761: 29761: public: 29761: # 186 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: class Range { 29761: public: 29761: 29761: 29761: 29761: class Iterator { 29761: public: 29761: 29761: using self_type = Iterator; 29761: using value_type = KeyContext; 29761: using reference = KeyContext&; 29761: using pointer = KeyContext*; 29761: using difference_type = int; 29761: using iterator_category = std::forward_iterator_tag; 29761: 29761: Iterator(const Range* range, size_t idx) 29761: : range_(range), ctx_(range->ctx_), index_(idx) { 29761: while (index_ < range_->end_ && 29761: (Mask{1} << index_) & 29761: (range_->ctx_->value_mask_ | range_->skip_mask_ | 29761: range_->invalid_mask_)) 29761: index_++; 29761: } 29761: 29761: Iterator(const Iterator&) = default; 29761: 29761: Iterator(const Iterator& other, const Range* range) 29761: : range_(range), ctx_(other.ctx_), index_(other.index_) { 29761: 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: range->ctx_ == other.ctx_ 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "range->ctx_ == other.ctx_" 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: } 29761: Iterator& operator=(const Iterator&) = default; 29761: 29761: Iterator& operator++() { 29761: while (++index_ < range_->end_ && 29761: (Mask{1} << index_) & 29761: (range_->ctx_->value_mask_ | range_->skip_mask_ | 29761: range_->invalid_mask_)) 29761: ; 29761: return *this; 29761: } 29761: 29761: bool operator==(Iterator other) const { 29761: 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: range_->ctx_ == other.range_->ctx_ 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "range_->ctx_ == other.range_->ctx_" 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: return index_ == other.index_; 29761: } 29761: 29761: bool operator!=(Iterator other) const { 29761: 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: range_->ctx_ == other.range_->ctx_ 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "range_->ctx_ == other.range_->ctx_" 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: return index_ != other.index_; 29761: } 29761: 29761: KeyContext& operator*() { 29761: 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: index_ < range_->end_ && index_ >= range_->start_ 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "index_ < range_->end_ && index_ >= range_->start_" 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: return *(ctx_->sorted_keys_[index_]); 29761: } 29761: 29761: KeyContext* operator->() { 29761: 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: index_ < range_->end_ && index_ >= range_->start_ 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "index_ < range_->end_ && index_ >= range_->start_" 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: return ctx_->sorted_keys_[index_]; 29761: } 29761: 29761: size_t index() { return index_; } 29761: 29761: private: 29761: friend Range; 29761: const Range* range_; 29761: const MultiGetContext* ctx_; 29761: size_t index_; 29761: }; 29761: 29761: Range(const Range& mget_range, const Iterator& first, 29761: const Iterator& last) { 29761: ctx_ = mget_range.ctx_; 29761: if (first == last) { 29761: 29761: 29761: start_ = mget_range.start_; 29761: end_ = start_; 29761: } else { 29761: start_ = first.index_; 29761: end_ = last.index_; 29761: } 29761: skip_mask_ = mget_range.skip_mask_; 29761: invalid_mask_ = mget_range.invalid_mask_; 29761: 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: start_ < 64 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "start_ < 64" 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: end_ < 64 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "end_ < 64" 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: } 29761: 29761: Range() = default; 29761: 29761: Iterator begin() const { return Iterator(this, start_); } 29761: 29761: Iterator end() const { return Iterator(this, end_); } 29761: 29761: bool empty() const { return RemainingMask() == 0; } 29761: 29761: void SkipIndex(size_t index) { skip_mask_ |= Mask{1} << index; } 29761: 29761: void SkipKey(const Iterator& iter) { SkipIndex(iter.index_); } 29761: 29761: bool IsKeySkipped(const Iterator& iter) const { 29761: return skip_mask_ & (Mask{1} << iter.index_); 29761: } 29761: 29761: 29761: 29761: void MarkKeyDone(Iterator& iter) { 29761: ctx_->value_mask_ |= (Mask{1} << iter.index_); 29761: } 29761: 29761: bool CheckKeyDone(Iterator& iter) const { 29761: return ctx_->value_mask_ & (Mask{1} << iter.index_); 29761: } 29761: 29761: uint64_t KeysLeft() const { return BitsSetToOne(RemainingMask()); } 29761: 29761: void AddSkipsFrom(const Range& other) { 29761: 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ctx_ == other.ctx_ 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "ctx_ == other.ctx_" 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: skip_mask_ |= other.skip_mask_; 29761: } 29761: 29761: uint64_t GetValueSize() { return ctx_->value_size_; } 29761: 29761: void AddValueSize(uint64_t value_size) { ctx_->value_size_ += value_size; } 29761: 29761: MultiGetContext* context() const { return ctx_; } 29761: 29761: Range Suffix(const Range& other) const { 29761: size_t other_last = other.FindLastRemaining(); 29761: size_t my_last = FindLastRemaining(); 29761: 29761: if (my_last > other_last) { 29761: return Range(*this, Iterator(this, other_last), 29761: Iterator(this, my_last)); 29761: } else { 29761: return Range(*this, begin(), begin()); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: Range& operator+=(const Range& rhs) { 29761: 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: rhs.start_ >= end_ 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "rhs.start_ >= end_" 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: 29761: if (end_ < rhs.start_) { 29761: invalid_mask_ |= RangeMask(end_, rhs.start_); 29761: skip_mask_ |= RangeMask(end_, rhs.start_); 29761: } 29761: start_ = std::min(start_, rhs.start_); 29761: end_ = std::max(end_, rhs.end_); 29761: skip_mask_ |= rhs.skip_mask_ & RangeMask(rhs.start_, rhs.end_); 29761: invalid_mask_ |= (rhs.invalid_mask_ | rhs.skip_mask_) & 29761: RangeMask(rhs.start_, rhs.end_); 29761: 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: start_ < 64 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "start_ < 64" 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: end_ < 64 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "end_ < 64" 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: Range& operator-=(const Range& rhs) { 29761: 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: start_ <= rhs.start_ && end_ >= rhs.end_ 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "start_ <= rhs.start_ && end_ >= rhs.end_" 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: skip_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 29761: RangeMask(rhs.start_, rhs.end_); 29761: invalid_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 29761: RangeMask(rhs.start_, rhs.end_); 29761: return *this; 29761: } 29761: 29761: 29761: Range operator~() { 29761: Range res = *this; 29761: res.skip_mask_ = ~skip_mask_ & RangeMask(start_, end_); 29761: return res; 29761: } 29761: 29761: private: 29761: friend MultiGetContext; 29761: MultiGetContext* ctx_; 29761: size_t start_; 29761: size_t end_; 29761: Mask skip_mask_; 29761: Mask invalid_mask_; 29761: 29761: Range(MultiGetContext* ctx, size_t num_keys) 29761: : ctx_(ctx), 29761: start_(0), 29761: end_(num_keys), 29761: skip_mask_(0), 29761: invalid_mask_(0) { 29761: 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: num_keys < 64 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "num_keys < 64" 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: } 29761: 29761: static Mask RangeMask(size_t start, size_t end) { 29761: return (((Mask{1} << (end - start)) - 1) << start); 29761: } 29761: 29761: Mask RemainingMask() const { 29761: return (((Mask{1} << end_) - 1) & ~((Mask{1} << start_) - 1) & 29761: ~(ctx_->value_mask_ | skip_mask_)); 29761: } 29761: 29761: size_t FindLastRemaining() const { 29761: Mask mask = RemainingMask(); 29761: size_t index = (mask >>= start_) ? start_ : 0; 29761: while (mask >>= 1) { 29761: index++; 29761: } 29761: return index; 29761: } 29761: }; 29761: 29761: 29761: Range GetMultiGetRange() { return Range(this, num_keys_); } 29761: }; 29761: 29761: } 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Iterator; 29761: struct ParsedInternalKey; 29761: class Slice; 29761: class Arena; 29761: struct ReadOptions; 29761: struct TableProperties; 29761: class GetContext; 29761: class MultiGetContext; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class TableReader { 29761: public: 29761: virtual ~TableReader() {} 29761: # 57 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: virtual InternalIterator* NewIterator( 29761: const ReadOptions& read_options, const SliceTransform* prefix_extractor, 29761: Arena* arena, bool skip_filters, TableReaderCaller caller, 29761: size_t compaction_readahead_size = 0, 29761: bool allow_unprepared_value = false) = 0; 29761: 29761: 29761: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29761: const ReadOptions& ) { 29761: return nullptr; 29761: } 29761: 29761: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29761: SequenceNumber , const Slice* ) { 29761: return nullptr; 29761: } 29761: # 85 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: virtual uint64_t ApproximateOffsetOf(const ReadOptions& read_options, 29761: const Slice& key, 29761: TableReaderCaller caller) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual uint64_t ApproximateSize(const ReadOptions& read_options, 29761: const Slice& start, const Slice& end, 29761: TableReaderCaller caller) = 0; 29761: 29761: struct Anchor { 29761: Anchor(const Slice& _user_key, size_t _range_size) 29761: : user_key(_user_key.ToStringView()), range_size(_range_size) {} 29761: std::string user_key; 29761: size_t range_size; 29761: }; 29761: 29761: 29761: 29761: virtual Status ApproximateKeyAnchors(const ReadOptions& , 29761: std::vector& ) { 29761: return Status::NotSupported("ApproximateKeyAnchors() not supported."); 29761: } 29761: 29761: 29761: 29761: virtual void SetupForCompaction() = 0; 29761: 29761: virtual std::shared_ptr GetTableProperties() const = 0; 29761: 29761: 29761: virtual void Prepare(const Slice& ) {} 29761: 29761: 29761: virtual size_t ApproximateMemoryUsage() const = 0; 29761: # 135 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: virtual Status Get(const ReadOptions& readOptions, const Slice& key, 29761: GetContext* get_context, 29761: const SliceTransform* prefix_extractor, 29761: bool skip_filters = false) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status MultiGetFilter(const ReadOptions& , 29761: const SliceTransform* , 29761: MultiGetContext::Range* ) { 29761: return Status::NotSupported(); 29761: } 29761: 29761: virtual void MultiGet(const ReadOptions& readOptions, 29761: const MultiGetContext::Range* mget_range, 29761: const SliceTransform* prefix_extractor, 29761: bool skip_filters = false) { 29761: for (auto iter = mget_range->begin(); iter != mget_range->end(); ++iter) { 29761: *iter->s = Get(readOptions, iter->ikey, iter->get_context, 29761: prefix_extractor, skip_filters); 29761: } 29761: } 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: virtual Status Prefetch(const ReadOptions& , 29761: const Slice* begin = nullptr, 29761: const Slice* end = nullptr) { 29761: (void)begin; 29761: (void)end; 29761: 29761: 29761: return Status::OK(); 29761: } 29761: 29761: 29761: virtual Status DumpTable(WritableFile* ) { 29761: return Status::NotSupported("DumpTable() not supported"); 29761: } 29761: 29761: 29761: virtual Status VerifyChecksum(const ReadOptions& , 29761: TableReaderCaller ) { 29761: return Status::NotSupported("VerifyChecksum() not supported"); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void MarkObsolete(uint32_t ) { 29761: 29761: } 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 29761: Status GetUniqueIdFromTableProperties(const TableProperties &props, 29761: std::string *out_id); 29761: # 47 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 29761: Status GetExtendedUniqueIdFromTableProperties(const TableProperties &props, 29761: std::string *out_id); 29761: 29761: 29761: 29761: 29761: std::string UniqueIdToHumanString(const std::string &id); 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: using UniqueId64x2 = std::array; 29761: 29761: 29761: constexpr UniqueId64x2 kNullUniqueId64x2 = {}; 29761: 29761: 29761: 29761: using UniqueId64x3 = std::array; 29761: 29761: 29761: constexpr UniqueId64x3 kNullUniqueId64x3 = {}; 29761: 29761: 29761: struct UniqueIdPtr { 29761: uint64_t *ptr = nullptr; 29761: bool extended = false; 29761: 29761: UniqueIdPtr(UniqueId64x2 *id) { 29761: ptr = (*id).data(); 29761: extended = false; 29761: } 29761: UniqueIdPtr(UniqueId64x3 *id) { 29761: ptr = (*id).data(); 29761: extended = true; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status GetSstInternalUniqueId(const std::string &db_id, 29761: const std::string &db_session_id, 29761: uint64_t file_number, UniqueIdPtr out, 29761: bool force = false); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void InternalUniqueIdToExternal(UniqueIdPtr in_out); 29761: 29761: 29761: 29761: void ExternalUniqueIdToInternal(UniqueIdPtr in_out); 29761: 29761: 29761: std::string EncodeUniqueIdBytes(UniqueIdPtr in); 29761: 29761: 29761: Status DecodeUniqueIdBytes(const std::string &unique_id, UniqueIdPtr out); 29761: 29761: 29761: 29761: std::string InternalUniqueIdToHumanString(UniqueIdPtr in); 29761: # 85 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 29761: std::string EncodeSessionId(uint64_t upper, uint64_t lower); 29761: 29761: 29761: 29761: 29761: Status DecodeSessionId(const std::string &db_session_id, uint64_t *upper, 29761: uint64_t *lower); 29761: 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: enum Tag : uint32_t { 29761: kComparator = 1, 29761: kLogNumber = 2, 29761: kNextFileNumber = 3, 29761: kLastSequence = 4, 29761: kCompactCursor = 5, 29761: kDeletedFile = 6, 29761: kNewFile = 7, 29761: 29761: kPrevLogNumber = 9, 29761: kMinLogNumberToKeep = 10, 29761: 29761: 29761: kNewFile2 = 100, 29761: kNewFile3 = 102, 29761: kNewFile4 = 103, 29761: kColumnFamily = 200, 29761: kColumnFamilyAdd = 201, 29761: kColumnFamilyDrop = 202, 29761: kMaxColumnFamily = 203, 29761: 29761: kInAtomicGroup = 300, 29761: 29761: kBlobFileAddition = 400, 29761: kBlobFileGarbage, 29761: 29761: 29761: kTagSafeIgnoreMask = 1 << 13, 29761: 29761: 29761: kDbId, 29761: kBlobFileAddition_DEPRECATED, 29761: kBlobFileGarbage_DEPRECATED, 29761: kWalAddition, 29761: kWalDeletion, 29761: kFullHistoryTsLow, 29761: kWalAddition2, 29761: kWalDeletion2, 29761: kPersistUserDefinedTimestamps, 29761: }; 29761: 29761: enum NewFileCustomTag : uint32_t { 29761: kTerminate = 1, 29761: kNeedCompaction = 2, 29761: 29761: 29761: 29761: kMinLogNumberToKeepHack = 3, 29761: kOldestBlobFileNumber = 4, 29761: kOldestAncesterTime = 5, 29761: kFileCreationTime = 6, 29761: kFileChecksum = 7, 29761: kFileChecksumFuncName = 8, 29761: kTemperature = 9, 29761: kMinTimestamp = 10, 29761: kMaxTimestamp = 11, 29761: kUniqueId = 12, 29761: kEpochNumber = 13, 29761: kCompensatedRangeDeletionSize = 14, 29761: kTailSize = 15, 29761: kUserDefinedTimestampsPersisted = 16, 29761: 29761: 29761: 29761: kCustomTagNonSafeIgnoreMask = 1 << 6, 29761: 29761: 29761: kPathId, 29761: }; 29761: 29761: class VersionSet; 29761: 29761: constexpr uint64_t kFileNumberMask = 0x3FFFFFFFFFFFFFFF; 29761: constexpr uint64_t kUnknownOldestAncesterTime = 0; 29761: constexpr uint64_t kUnknownNewestKeyTime = 0; 29761: constexpr uint64_t kUnknownFileCreationTime = 0; 29761: constexpr uint64_t kUnknownEpochNumber = 0; 29761: 29761: 29761: constexpr uint64_t kReservedEpochNumberForFileIngestedBehind = 1; 29761: 29761: uint64_t PackFileNumberAndPathId(uint64_t number, uint64_t path_id); 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct FileDescriptor { 29761: 29761: TableReader* table_reader; 29761: uint64_t packed_number_and_path_id; 29761: uint64_t file_size; 29761: SequenceNumber smallest_seqno; 29761: SequenceNumber largest_seqno; 29761: 29761: FileDescriptor() : FileDescriptor(0, 0, 0) {} 29761: 29761: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size) 29761: : FileDescriptor(number, path_id, _file_size, kMaxSequenceNumber, 0) {} 29761: 29761: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size, 29761: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno) 29761: : table_reader(nullptr), 29761: packed_number_and_path_id(PackFileNumberAndPathId(number, path_id)), 29761: file_size(_file_size), 29761: smallest_seqno(_smallest_seqno), 29761: largest_seqno(_largest_seqno) {} 29761: 29761: FileDescriptor(const FileDescriptor& fd) { *this = fd; } 29761: 29761: FileDescriptor& operator=(const FileDescriptor& fd) { 29761: table_reader = fd.table_reader; 29761: packed_number_and_path_id = fd.packed_number_and_path_id; 29761: file_size = fd.file_size; 29761: smallest_seqno = fd.smallest_seqno; 29761: largest_seqno = fd.largest_seqno; 29761: return *this; 29761: } 29761: 29761: uint64_t GetNumber() const { 29761: return packed_number_and_path_id & kFileNumberMask; 29761: } 29761: uint32_t GetPathId() const { 29761: return static_cast(packed_number_and_path_id / 29761: (kFileNumberMask + 1)); 29761: } 29761: uint64_t GetFileSize() const { return file_size; } 29761: }; 29761: 29761: struct FileSampledStats { 29761: FileSampledStats() : num_reads_sampled(0) {} 29761: FileSampledStats(const FileSampledStats& other) { *this = other; } 29761: FileSampledStats& operator=(const FileSampledStats& other) { 29761: num_reads_sampled = other.num_reads_sampled.load(); 29761: return *this; 29761: } 29761: 29761: 29761: mutable std::atomic num_reads_sampled; 29761: }; 29761: 29761: struct FileMetaData { 29761: FileDescriptor fd; 29761: InternalKey smallest; 29761: InternalKey largest; 29761: 29761: 29761: Cache::Handle* table_reader_handle = nullptr; 29761: 29761: FileSampledStats stats; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t compensated_file_size = 0; 29761: 29761: 29761: uint64_t num_entries = 29761: 0; 29761: 29761: uint64_t num_deletions = 0; 29761: uint64_t raw_key_size = 0; 29761: uint64_t raw_value_size = 0; 29761: uint64_t num_range_deletions = 0; 29761: 29761: 29761: 29761: uint64_t compensated_range_deletion_size = 0; 29761: 29761: int refs = 0; 29761: 29761: bool being_compacted = false; 29761: bool init_stats_from_file = false; 29761: 29761: 29761: bool marked_for_compaction = false; 29761: 29761: Temperature temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: uint64_t oldest_blob_file_number = kInvalidBlobFileNumber; 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: uint64_t oldest_ancester_time = kUnknownOldestAncesterTime; 29761: 29761: 29761: uint64_t file_creation_time = kUnknownFileCreationTime; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t epoch_number = kUnknownEpochNumber; 29761: 29761: 29761: std::string file_checksum = kUnknownFileChecksum; 29761: 29761: 29761: std::string file_checksum_func_name = kUnknownFileChecksumFuncName; 29761: 29761: 29761: UniqueId64x2 unique_id{}; 29761: 29761: 29761: 29761: uint64_t tail_size = 0; 29761: 29761: 29761: 29761: 29761: bool user_defined_timestamps_persisted = true; 29761: 29761: FileMetaData() = default; 29761: 29761: FileMetaData(uint64_t file, uint32_t file_path_id, uint64_t file_size, 29761: const InternalKey& smallest_key, const InternalKey& largest_key, 29761: const SequenceNumber& smallest_seq, 29761: const SequenceNumber& largest_seq, bool marked_for_compact, 29761: Temperature _temperature, uint64_t oldest_blob_file, 29761: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 29761: uint64_t _epoch_number, const std::string& _file_checksum, 29761: const std::string& _file_checksum_func_name, 29761: UniqueId64x2 _unique_id, 29761: const uint64_t _compensated_range_deletion_size, 29761: uint64_t _tail_size, bool _user_defined_timestamps_persisted) 29761: : fd(file, file_path_id, file_size, smallest_seq, largest_seq), 29761: smallest(smallest_key), 29761: largest(largest_key), 29761: compensated_range_deletion_size(_compensated_range_deletion_size), 29761: marked_for_compaction(marked_for_compact), 29761: temperature(_temperature), 29761: oldest_blob_file_number(oldest_blob_file), 29761: oldest_ancester_time(_oldest_ancester_time), 29761: file_creation_time(_file_creation_time), 29761: epoch_number(_epoch_number), 29761: file_checksum(_file_checksum), 29761: file_checksum_func_name(_file_checksum_func_name), 29761: unique_id(std::move(_unique_id)), 29761: tail_size(_tail_size), 29761: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) { 29761: rocksdb::SyncPoint::GetInstance()->Process("FileMetaData::FileMetaData", this); 29761: } 29761: 29761: 29761: 29761: Status UpdateBoundaries(const Slice& key, const Slice& value, 29761: SequenceNumber seqno, ValueType value_type); 29761: 29761: 29761: 29761: void UpdateBoundariesForRange(const InternalKey& start, 29761: const InternalKey& end, SequenceNumber seqno, 29761: const InternalKeyComparator& icmp) { 29761: if (smallest.size() == 0 || icmp.Compare(start, smallest) < 0) { 29761: smallest = start; 29761: } 29761: if (largest.size() == 0 || icmp.Compare(largest, end) < 0) { 29761: largest = end; 29761: } 29761: 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: icmp.Compare(smallest, largest) <= 0 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "icmp.Compare(smallest, largest) <= 0" 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: fd.smallest_seqno = std::min(fd.smallest_seqno, seqno); 29761: fd.largest_seqno = std::max(fd.largest_seqno, seqno); 29761: } 29761: 29761: 29761: 29761: 29761: uint64_t TryGetOldestAncesterTime() { 29761: if (oldest_ancester_time != kUnknownOldestAncesterTime) { 29761: return oldest_ancester_time; 29761: } else if (fd.table_reader != nullptr && 29761: fd.table_reader->GetTableProperties() != nullptr) { 29761: return fd.table_reader->GetTableProperties()->creation_time; 29761: } 29761: return kUnknownOldestAncesterTime; 29761: } 29761: 29761: uint64_t TryGetFileCreationTime() { 29761: if (file_creation_time != kUnknownFileCreationTime) { 29761: return file_creation_time; 29761: } else if (fd.table_reader != nullptr && 29761: fd.table_reader->GetTableProperties() != nullptr) { 29761: return fd.table_reader->GetTableProperties()->file_creation_time; 29761: } 29761: return kUnknownFileCreationTime; 29761: } 29761: 29761: 29761: 29761: uint64_t TryGetNewestKeyTime(FileMetaData* prev_file = nullptr) { 29761: if (fd.table_reader != nullptr && 29761: fd.table_reader->GetTableProperties() != nullptr) { 29761: uint64_t newest_key_time = 29761: fd.table_reader->GetTableProperties()->newest_key_time; 29761: if (newest_key_time != kUnknownNewestKeyTime) { 29761: return newest_key_time; 29761: } 29761: } 29761: if (prev_file != nullptr) { 29761: uint64_t prev_oldest_ancestor_time = 29761: prev_file->TryGetOldestAncesterTime(); 29761: if (prev_oldest_ancestor_time != kUnknownOldestAncesterTime) { 29761: return prev_oldest_ancestor_time; 29761: } 29761: } 29761: return kUnknownNewestKeyTime; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: size_t usage = 0; 29761: 29761: usage += malloc_usable_size(const_cast(this)); 29761: 29761: 29761: 29761: usage += smallest.size() + largest.size() + file_checksum.size() + 29761: file_checksum_func_name.size(); 29761: return usage; 29761: } 29761: 29761: 29761: 29761: bool FileIsStandAloneRangeTombstone() const { 29761: bool res = num_range_deletions == 1 && num_entries == num_range_deletions; 29761: 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !res || fd.smallest_seqno == fd.largest_seqno 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!res || fd.smallest_seqno == fd.largest_seqno" 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: return res; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: struct FdWithKeyRange { 29761: FileDescriptor fd; 29761: FileMetaData* file_metadata; 29761: Slice smallest_key; 29761: Slice largest_key; 29761: 29761: FdWithKeyRange() 29761: : fd(), file_metadata(nullptr), smallest_key(), largest_key() {} 29761: 29761: FdWithKeyRange(FileDescriptor _fd, Slice _smallest_key, Slice _largest_key, 29761: FileMetaData* _file_metadata) 29761: : fd(_fd), 29761: file_metadata(_file_metadata), 29761: smallest_key(_smallest_key), 29761: largest_key(_largest_key) {} 29761: }; 29761: 29761: 29761: 29761: struct LevelFilesBrief { 29761: size_t num_files; 29761: FdWithKeyRange* files; 29761: LevelFilesBrief() { 29761: num_files = 0; 29761: files = nullptr; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class VersionEdit { 29761: public: 29761: void Clear(); 29761: 29761: void SetDBId(const std::string& db_id) { 29761: has_db_id_ = true; 29761: db_id_ = db_id; 29761: } 29761: bool HasDbId() const { return has_db_id_; } 29761: const std::string& GetDbId() const { return db_id_; } 29761: 29761: void SetComparatorName(const Slice& name) { 29761: has_comparator_ = true; 29761: comparator_ = name.ToString(); 29761: } 29761: bool HasComparatorName() const { return has_comparator_; } 29761: const std::string& GetComparatorName() const { return comparator_; } 29761: 29761: void SetPersistUserDefinedTimestamps(bool persist_user_defined_timestamps) { 29761: has_persist_user_defined_timestamps_ = true; 29761: persist_user_defined_timestamps_ = persist_user_defined_timestamps; 29761: } 29761: bool HasPersistUserDefinedTimestamps() const { 29761: return has_persist_user_defined_timestamps_; 29761: } 29761: bool GetPersistUserDefinedTimestamps() const { 29761: return persist_user_defined_timestamps_; 29761: } 29761: 29761: void SetLogNumber(uint64_t num) { 29761: has_log_number_ = true; 29761: log_number_ = num; 29761: } 29761: bool HasLogNumber() const { return has_log_number_; } 29761: uint64_t GetLogNumber() const { return log_number_; } 29761: 29761: void SetPrevLogNumber(uint64_t num) { 29761: has_prev_log_number_ = true; 29761: prev_log_number_ = num; 29761: } 29761: bool HasPrevLogNumber() const { return has_prev_log_number_; } 29761: uint64_t GetPrevLogNumber() const { return prev_log_number_; } 29761: 29761: void SetNextFile(uint64_t num) { 29761: has_next_file_number_ = true; 29761: next_file_number_ = num; 29761: } 29761: bool HasNextFile() const { return has_next_file_number_; } 29761: uint64_t GetNextFile() const { return next_file_number_; } 29761: 29761: void SetMaxColumnFamily(uint32_t max_column_family) { 29761: has_max_column_family_ = true; 29761: max_column_family_ = max_column_family; 29761: } 29761: bool HasMaxColumnFamily() const { return has_max_column_family_; } 29761: uint32_t GetMaxColumnFamily() const { return max_column_family_; } 29761: 29761: void SetMinLogNumberToKeep(uint64_t num) { 29761: has_min_log_number_to_keep_ = true; 29761: min_log_number_to_keep_ = num; 29761: } 29761: bool HasMinLogNumberToKeep() const { return has_min_log_number_to_keep_; } 29761: uint64_t GetMinLogNumberToKeep() const { return min_log_number_to_keep_; } 29761: 29761: void SetLastSequence(SequenceNumber seq) { 29761: has_last_sequence_ = true; 29761: last_sequence_ = seq; 29761: } 29761: bool HasLastSequence() const { return has_last_sequence_; } 29761: SequenceNumber GetLastSequence() const { return last_sequence_; } 29761: 29761: 29761: void DeleteFile(int level, uint64_t file) { 29761: deleted_files_.emplace(level, file); 29761: } 29761: 29761: 29761: using DeletedFiles = std::set>; 29761: const DeletedFiles& GetDeletedFiles() const { return deleted_files_; } 29761: 29761: 29761: 29761: 29761: 29761: void AddFile(int level, uint64_t file, uint32_t file_path_id, 29761: uint64_t file_size, const InternalKey& smallest, 29761: const InternalKey& largest, const SequenceNumber& smallest_seqno, 29761: const SequenceNumber& largest_seqno, bool marked_for_compaction, 29761: Temperature temperature, uint64_t oldest_blob_file_number, 29761: uint64_t oldest_ancester_time, uint64_t file_creation_time, 29761: uint64_t epoch_number, const std::string& file_checksum, 29761: const std::string& file_checksum_func_name, 29761: const UniqueId64x2& unique_id, 29761: const uint64_t compensated_range_deletion_size, 29761: uint64_t tail_size, bool user_defined_timestamps_persisted) { 29761: 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: smallest_seqno <= largest_seqno 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "smallest_seqno <= largest_seqno" 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: new_files_.emplace_back( 29761: level, 29761: FileMetaData(file, file_path_id, file_size, smallest, largest, 29761: smallest_seqno, largest_seqno, marked_for_compaction, 29761: temperature, oldest_blob_file_number, oldest_ancester_time, 29761: file_creation_time, epoch_number, file_checksum, 29761: file_checksum_func_name, unique_id, 29761: compensated_range_deletion_size, tail_size, 29761: user_defined_timestamps_persisted)); 29761: files_to_quarantine_.push_back(file); 29761: if (!HasLastSequence() || largest_seqno > GetLastSequence()) { 29761: SetLastSequence(largest_seqno); 29761: } 29761: } 29761: 29761: void AddFile(int level, const FileMetaData& f) { 29761: 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: f.fd.smallest_seqno <= f.fd.largest_seqno 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "f.fd.smallest_seqno <= f.fd.largest_seqno" 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: new_files_.emplace_back(level, f); 29761: files_to_quarantine_.push_back(f.fd.GetNumber()); 29761: if (!HasLastSequence() || f.fd.largest_seqno > GetLastSequence()) { 29761: SetLastSequence(f.fd.largest_seqno); 29761: } 29761: } 29761: 29761: 29761: using NewFiles = std::vector>; 29761: const NewFiles& GetNewFiles() const { return new_files_; } 29761: 29761: NewFiles& GetMutableNewFiles() { return new_files_; } 29761: 29761: 29761: using CompactCursors = std::vector>; 29761: const CompactCursors& GetCompactCursors() const { return compact_cursors_; } 29761: void AddCompactCursor(int level, const InternalKey& cursor) { 29761: compact_cursors_.push_back(std::make_pair(level, cursor)); 29761: } 29761: void SetCompactCursors( 29761: const std::vector& compact_cursors_by_level) { 29761: compact_cursors_.clear(); 29761: compact_cursors_.reserve(compact_cursors_by_level.size()); 29761: for (int i = 0; i < (int)compact_cursors_by_level.size(); i++) { 29761: if (compact_cursors_by_level[i].Valid()) { 29761: compact_cursors_.push_back( 29761: std::make_pair(i, compact_cursors_by_level[i])); 29761: } 29761: } 29761: } 29761: 29761: 29761: void AddBlobFile(uint64_t blob_file_number, uint64_t total_blob_count, 29761: uint64_t total_blob_bytes, std::string checksum_method, 29761: std::string checksum_value) { 29761: blob_file_additions_.emplace_back( 29761: blob_file_number, total_blob_count, total_blob_bytes, 29761: std::move(checksum_method), std::move(checksum_value)); 29761: files_to_quarantine_.push_back(blob_file_number); 29761: } 29761: 29761: void AddBlobFile(BlobFileAddition blob_file_addition) { 29761: blob_file_additions_.emplace_back(std::move(blob_file_addition)); 29761: files_to_quarantine_.push_back( 29761: blob_file_additions_.back().GetBlobFileNumber()); 29761: } 29761: 29761: 29761: using BlobFileAdditions = std::vector; 29761: const BlobFileAdditions& GetBlobFileAdditions() const { 29761: return blob_file_additions_; 29761: } 29761: 29761: void SetBlobFileAdditions(BlobFileAdditions blob_file_additions) { 29761: 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: blob_file_additions_.empty() 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "blob_file_additions_.empty()" 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: blob_file_additions_ = std::move(blob_file_additions); 29761: std::for_each( 29761: blob_file_additions_.begin(), blob_file_additions_.end(), 29761: [&](const BlobFileAddition& blob_file) { 29761: files_to_quarantine_.push_back(blob_file.GetBlobFileNumber()); 29761: }); 29761: } 29761: 29761: 29761: 29761: void AddBlobFileGarbage(uint64_t blob_file_number, 29761: uint64_t garbage_blob_count, 29761: uint64_t garbage_blob_bytes) { 29761: blob_file_garbages_.emplace_back(blob_file_number, garbage_blob_count, 29761: garbage_blob_bytes); 29761: } 29761: 29761: void AddBlobFileGarbage(BlobFileGarbage blob_file_garbage) { 29761: blob_file_garbages_.emplace_back(std::move(blob_file_garbage)); 29761: } 29761: 29761: 29761: using BlobFileGarbages = std::vector; 29761: const BlobFileGarbages& GetBlobFileGarbages() const { 29761: return blob_file_garbages_; 29761: } 29761: 29761: void SetBlobFileGarbages(BlobFileGarbages blob_file_garbages) { 29761: 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: blob_file_garbages_.empty() 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "blob_file_garbages_.empty()" 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: blob_file_garbages_ = std::move(blob_file_garbages); 29761: } 29761: 29761: 29761: 29761: void AddWal(WalNumber number, WalMetadata metadata = WalMetadata()) { 29761: 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: NumEntries() == wal_additions_.size() 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "NumEntries() == wal_additions_.size()" 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: wal_additions_.emplace_back(number, std::move(metadata)); 29761: } 29761: 29761: 29761: const WalAdditions& GetWalAdditions() const { return wal_additions_; } 29761: 29761: bool IsWalAddition() const { return !wal_additions_.empty(); } 29761: 29761: 29761: 29761: void DeleteWalsBefore(WalNumber number) { 29761: 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: (NumEntries() == 1) == !wal_deletion_.IsEmpty() 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "(NumEntries() == 1) == !wal_deletion_.IsEmpty()" 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: wal_deletion_ = WalDeletion(number); 29761: } 29761: 29761: const WalDeletion& GetWalDeletion() const { return wal_deletion_; } 29761: 29761: bool IsWalDeletion() const { return !wal_deletion_.IsEmpty(); } 29761: 29761: bool IsWalManipulation() const { 29761: size_t entries = NumEntries(); 29761: return (entries > 0) && ((entries == wal_additions_.size()) || 29761: (entries == !wal_deletion_.IsEmpty())); 29761: } 29761: 29761: 29761: size_t NumEntries() const { 29761: return new_files_.size() + deleted_files_.size() + 29761: blob_file_additions_.size() + blob_file_garbages_.size() + 29761: wal_additions_.size() + !wal_deletion_.IsEmpty(); 29761: } 29761: 29761: void SetColumnFamily(uint32_t column_family_id) { 29761: column_family_ = column_family_id; 29761: } 29761: uint32_t GetColumnFamily() const { return column_family_; } 29761: 29761: const std::string& GetColumnFamilyName() const { return column_family_name_; } 29761: 29761: 29761: void AddColumnFamily(const std::string& name) { 29761: 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !is_column_family_drop_ 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!is_column_family_drop_" 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !is_column_family_add_ 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!is_column_family_add_" 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: NumEntries() == 0 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "NumEntries() == 0" 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: is_column_family_add_ = true; 29761: column_family_name_ = name; 29761: } 29761: 29761: 29761: void DropColumnFamily() { 29761: 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !is_column_family_drop_ 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!is_column_family_drop_" 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !is_column_family_add_ 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!is_column_family_add_" 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: NumEntries() == 0 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "NumEntries() == 0" 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: is_column_family_drop_ = true; 29761: } 29761: 29761: bool IsColumnFamilyManipulation() const { 29761: return is_column_family_add_ || is_column_family_drop_; 29761: } 29761: 29761: bool IsColumnFamilyAdd() const { return is_column_family_add_; } 29761: 29761: bool IsColumnFamilyDrop() const { return is_column_family_drop_; } 29761: 29761: void MarkAtomicGroup(uint32_t remaining_entries) { 29761: is_in_atomic_group_ = true; 29761: remaining_entries_ = remaining_entries; 29761: } 29761: bool IsInAtomicGroup() const { return is_in_atomic_group_; } 29761: void SetRemainingEntries(uint32_t remaining_entries) { 29761: remaining_entries_ = remaining_entries; 29761: } 29761: uint32_t GetRemainingEntries() const { return remaining_entries_; } 29761: 29761: bool HasFullHistoryTsLow() const { return !full_history_ts_low_.empty(); } 29761: const std::string& GetFullHistoryTsLow() const { 29761: 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: HasFullHistoryTsLow() 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "HasFullHistoryTsLow()" 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: return full_history_ts_low_; 29761: } 29761: void SetFullHistoryTsLow(std::string full_history_ts_low) { 29761: 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !full_history_ts_low.empty() 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!full_history_ts_low.empty()" 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: full_history_ts_low_ = std::move(full_history_ts_low); 29761: } 29761: # 718 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: bool EncodeTo(std::string* dst, 29761: std::optional ts_sz = std::nullopt) const; 29761: Status DecodeFrom(const Slice& src); 29761: 29761: const autovector* GetFilesToQuarantineIfCommitFail() const { 29761: return &files_to_quarantine_; 29761: } 29761: 29761: std::string DebugString(bool hex_key = false) const; 29761: std::string DebugJSON(int edit_num, bool hex_key = false) const; 29761: 29761: private: 29761: bool GetLevel(Slice* input, int* level, const char** msg); 29761: 29761: const char* DecodeNewFile4From(Slice* input); 29761: 29761: 29761: 29761: 29761: void EncodeFileBoundaries(std::string* dst, const FileMetaData& meta, 29761: size_t ts_sz) const; 29761: 29761: int max_level_ = 0; 29761: std::string db_id_; 29761: std::string comparator_; 29761: uint64_t log_number_ = 0; 29761: uint64_t prev_log_number_ = 0; 29761: uint64_t next_file_number_ = 0; 29761: uint32_t max_column_family_ = 0; 29761: 29761: uint64_t min_log_number_to_keep_ = 0; 29761: SequenceNumber last_sequence_ = 0; 29761: bool has_db_id_ = false; 29761: bool has_comparator_ = false; 29761: bool has_log_number_ = false; 29761: bool has_prev_log_number_ = false; 29761: bool has_next_file_number_ = false; 29761: bool has_max_column_family_ = false; 29761: bool has_min_log_number_to_keep_ = false; 29761: bool has_last_sequence_ = false; 29761: bool has_persist_user_defined_timestamps_ = false; 29761: 29761: 29761: CompactCursors compact_cursors_; 29761: 29761: DeletedFiles deleted_files_; 29761: NewFiles new_files_; 29761: 29761: BlobFileAdditions blob_file_additions_; 29761: BlobFileGarbages blob_file_garbages_; 29761: 29761: WalAdditions wal_additions_; 29761: WalDeletion wal_deletion_; 29761: 29761: 29761: 29761: uint32_t column_family_ = 0; 29761: 29761: 29761: 29761: bool is_column_family_drop_ = false; 29761: bool is_column_family_add_ = false; 29761: std::string column_family_name_; 29761: 29761: bool is_in_atomic_group_ = false; 29761: uint32_t remaining_entries_ = 0; 29761: 29761: std::string full_history_ts_low_; 29761: bool persist_user_defined_timestamps_ = true; 29761: # 796 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: autovector files_to_quarantine_; 29761: }; 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cinttypes" 1 3 29761: # 32 "/usr/include/c++/14/cinttypes" 3 29761: 29761: # 33 "/usr/include/c++/14/cinttypes" 3 29761: # 46 "/usr/include/c++/14/cinttypes" 3 29761: # 1 "/usr/include/inttypes.h" 1 3 4 29761: # 327 "/usr/include/inttypes.h" 3 4 29761: 29761: # 327 "/usr/include/inttypes.h" 3 4 29761: extern "C" { 29761: # 341 "/usr/include/inttypes.h" 3 4 29761: typedef struct 29761: { 29761: __extension__ long long int quot; 29761: __extension__ long long int rem; 29761: } imaxdiv_t; 29761: 29761: 29761: 29761: 29761: 29761: extern intmax_t imaxabs (intmax_t __n) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) 29761: noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern intmax_t strtoimax (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) noexcept (true); 29761: 29761: 29761: extern uintmax_t strtoumax (const char *__restrict __nptr, 29761: char ** __restrict __endptr, int __base) noexcept (true); 29761: 29761: 29761: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base) 29761: noexcept (true); 29761: 29761: 29761: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, 29761: wchar_t ** __restrict __endptr, int __base) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern intmax_t strtoimax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoimax") 29761: 29761: ; 29761: extern uintmax_t strtoumax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoumax") 29761: 29761: ; 29761: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoimax") 29761: 29761: 29761: ; 29761: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoumax") 29761: 29761: 29761: ; 29761: # 415 "/usr/include/inttypes.h" 3 4 29761: } 29761: # 47 "/usr/include/c++/14/cinttypes" 2 3 29761: # 55 "/usr/include/c++/14/cinttypes" 3 29761: namespace std 29761: { 29761: 29761: using ::imaxdiv_t; 29761: 29761: 29761: using ::imaxabs; 29761: using ::imaxdiv; 29761: 29761: 29761: 29761: 29761: 29761: using ::strtoimax; 29761: using ::strtoumax; 29761: 29761: 29761: using ::wcstoimax; 29761: using ::wcstoumax; 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 2 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: namespace rocksdb { 29761: 29761: constexpr uint64_t kUnknownTimeBeforeAll = 0; 29761: constexpr SequenceNumber kUnknownSeqnoBeforeAll = 0; 29761: 29761: 29761: 29761: constexpr uint64_t kMaxSeqnoTimePairsPerSST = 100; 29761: # 38 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: constexpr uint64_t kMaxSeqnoTimePairsPerCF = 100; 29761: 29761: constexpr uint64_t kMaxSeqnoToTimeEntries = kMaxSeqnoTimePairsPerCF * 10; 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: class SeqnoToTimeMapping { 29761: public: 29761: 29761: struct SeqnoTimePair { 29761: SequenceNumber seqno = 0; 29761: uint64_t time = 0; 29761: 29761: SeqnoTimePair() = default; 29761: SeqnoTimePair(SequenceNumber _seqno, uint64_t _time) 29761: : seqno(_seqno), time(_time) {} 29761: 29761: 29761: void Encode(std::string& dest) const; 29761: 29761: 29761: Status Decode(Slice& input); 29761: 29761: 29761: SeqnoTimePair ComputeDelta(const SeqnoTimePair& base) const { 29761: return {seqno - base.seqno, time - base.time}; 29761: } 29761: 29761: 29761: void ApplyDelta(const SeqnoTimePair& delta_or_base) { 29761: seqno += delta_or_base.seqno; 29761: time += delta_or_base.time; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: bool Merge(const SeqnoTimePair& other); 29761: 29761: 29761: bool operator<(const SeqnoTimePair& other) const { 29761: return std::tie(seqno, time) < std::tie(other.seqno, other.time); 29761: } 29761: 29761: bool operator==(const SeqnoTimePair& other) const { 29761: return std::tie(seqno, time) == std::tie(other.seqno, other.time); 29761: } 29761: 29761: static bool SeqnoLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 29761: return a.seqno < b.seqno; 29761: } 29761: 29761: static bool TimeLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 29761: return a.time < b.time; 29761: } 29761: }; 29761: 29761: 29761: SeqnoToTimeMapping() {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: SeqnoToTimeMapping& SetMaxTimeSpan(uint64_t max_time_span); 29761: 29761: 29761: 29761: 29761: 29761: SeqnoToTimeMapping& SetCapacity(uint64_t capacity); 29761: 29761: 29761: 29761: 29761: 29761: bool PrePopulate(SequenceNumber from_seqno, SequenceNumber to_seqno, 29761: uint64_t from_time, uint64_t to_time); 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool Append(SequenceNumber seqno, uint64_t time); 29761: 29761: 29761: 29761: void Clear() { 29761: pairs_.clear(); 29761: enforced_ = true; 29761: } 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: SeqnoToTimeMapping& Enforce(uint64_t now = 0); 29761: 29761: 29761: 29761: 29761: void AddUnenforced(SequenceNumber seqno, uint64_t time); 29761: 29761: 29761: 29761: 29761: Status DecodeFrom(const std::string& pairs_str); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void CopyFromSeqnoRange(const SeqnoToTimeMapping& src, 29761: SequenceNumber from_seqno, 29761: SequenceNumber to_seqno = kMaxSequenceNumber); 29761: void CopyFrom(const SeqnoToTimeMapping& src) { 29761: CopyFromSeqnoRange(src, kUnknownSeqnoBeforeAll, kMaxSequenceNumber); 29761: } 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: uint64_t GetProximalTimeBeforeSeqno(SequenceNumber seqno) const; 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: SequenceNumber GetProximalSeqnoBeforeTime(uint64_t time) const; 29761: 29761: 29761: 29761: 29761: void GetCurrentTieringCutoffSeqnos( 29761: uint64_t current_time, uint64_t preserve_internal_time_seconds, 29761: uint64_t preclude_last_level_data_seconds, 29761: SequenceNumber* preserve_time_min_seqno, 29761: SequenceNumber* preclude_last_level_min_seqno) const; 29761: 29761: 29761: 29761: 29761: void EncodeTo(std::string& dest) const; 29761: 29761: 29761: size_t Size() const { return pairs_.size(); } 29761: 29761: uint64_t GetCapacity() const { return capacity_; } 29761: 29761: 29761: bool Empty() const { return pairs_.empty(); } 29761: 29761: 29761: 29761: std::string ToHumanString() const; 29761: 29761: 29761: const SeqnoTimePair& TEST_GetLastEntry() const { return pairs_.back(); } 29761: const std::deque& TEST_GetInternalMapping() const { 29761: return pairs_; 29761: } 29761: bool TEST_IsEnforced() const { return enforced_; } 29761: 29761: 29761: private: 29761: uint64_t max_time_span_ = 29761: # 251 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 3 4 29761: (18446744073709551615ULL) 29761: # 251 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: ; 29761: uint64_t capacity_ = 29761: # 252 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 3 4 29761: (18446744073709551615ULL) 29761: # 252 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: ; 29761: 29761: std::deque pairs_; 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: bool enforced_ = true; 29761: 29761: void EnforceMaxTimeSpan(uint64_t now = 0); 29761: void EnforceCapacity(bool strict); 29761: void SortAndMerge(); 29761: 29761: using pair_const_iterator = 29761: std::deque::const_iterator; 29761: pair_const_iterator FindGreaterTime(uint64_t time) const; 29761: pair_const_iterator FindGreaterSeqno(SequenceNumber seqno) const; 29761: pair_const_iterator FindGreaterEqSeqno(SequenceNumber seqno) const; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: Slice PackValueAndWriteTime(const Slice& value, uint64_t unix_write_time, 29761: std::string* buf); 29761: 29761: 29761: 29761: Slice PackValueAndSeqno(const Slice& value, SequenceNumber seqno, 29761: std::string* buf); 29761: 29761: 29761: uint64_t ParsePackedValueForWriteTime(const Slice& value); 29761: 29761: 29761: 29761: std::tuple ParsePackedValueWithWriteTime(const Slice& value); 29761: 29761: 29761: SequenceNumber ParsePackedValueForSeqno(const Slice& value); 29761: 29761: 29761: 29761: std::tuple ParsePackedValueWithSeqno(const Slice& value); 29761: 29761: 29761: 29761: Slice ParsePackedValueForValue(const Slice& value); 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: namespace rocksdb { 29761: 29761: 29761: class InternalTblPropColl { 29761: public: 29761: virtual ~InternalTblPropColl() {} 29761: virtual Status Finish(UserCollectedProperties* properties) = 0; 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: 29761: virtual Status InternalAdd(const Slice& key, const Slice& value, 29761: uint64_t file_size) = 0; 29761: 29761: virtual void BlockAdd(uint64_t block_uncomp_bytes, 29761: uint64_t block_compressed_bytes_fast, 29761: uint64_t block_compressed_bytes_slow) = 0; 29761: 29761: virtual UserCollectedProperties GetReadableProperties() const = 0; 29761: 29761: virtual bool NeedCompact() const { return false; } 29761: }; 29761: 29761: 29761: class InternalTblPropCollFactory { 29761: public: 29761: virtual ~InternalTblPropCollFactory() {} 29761: 29761: virtual InternalTblPropColl* CreateInternalTblPropColl( 29761: uint32_t column_family_id, int level_at_creation, int num_levels, 29761: SequenceNumber last_level_inclusive_max_seqno_threshold = 29761: kMaxSequenceNumber) = 0; 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: }; 29761: 29761: using InternalTblPropCollFactories = 29761: std::vector>; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class UserKeyTablePropertiesCollector : public InternalTblPropColl { 29761: public: 29761: 29761: explicit UserKeyTablePropertiesCollector(TablePropertiesCollector* collector) 29761: : collector_(collector) {} 29761: 29761: virtual ~UserKeyTablePropertiesCollector() {} 29761: 29761: Status InternalAdd(const Slice& key, const Slice& value, 29761: uint64_t file_size) override; 29761: 29761: void BlockAdd(uint64_t block_uncomp_bytes, 29761: uint64_t block_compressed_bytes_fast, 29761: uint64_t block_compressed_bytes_slow) override; 29761: 29761: Status Finish(UserCollectedProperties* properties) override; 29761: 29761: const char* Name() const override { return collector_->Name(); } 29761: 29761: UserCollectedProperties GetReadableProperties() const override; 29761: 29761: bool NeedCompact() const override { return collector_->NeedCompact(); } 29761: 29761: protected: 29761: std::unique_ptr collector_; 29761: }; 29761: 29761: class UserKeyTablePropertiesCollectorFactory 29761: : public InternalTblPropCollFactory { 29761: public: 29761: explicit UserKeyTablePropertiesCollectorFactory( 29761: std::shared_ptr user_collector_factory) 29761: : user_collector_factory_(user_collector_factory) {} 29761: InternalTblPropColl* CreateInternalTblPropColl( 29761: uint32_t column_family_id, int level_at_creation, int num_levels, 29761: SequenceNumber last_level_inclusive_max_seqno_threshold = 29761: kMaxSequenceNumber) override { 29761: TablePropertiesCollectorFactory::Context context; 29761: context.column_family_id = column_family_id; 29761: context.level_at_creation = level_at_creation; 29761: context.num_levels = num_levels; 29761: context.last_level_inclusive_max_seqno_threshold = 29761: last_level_inclusive_max_seqno_threshold; 29761: TablePropertiesCollector* collector = 29761: user_collector_factory_->CreateTablePropertiesCollector(context); 29761: if (collector) { 29761: return new UserKeyTablePropertiesCollector(collector); 29761: } else { 29761: return nullptr; 29761: } 29761: } 29761: 29761: const char* Name() const override { return user_collector_factory_->Name(); } 29761: 29761: private: 29761: std::shared_ptr user_collector_factory_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class TimestampTablePropertiesCollector : public InternalTblPropColl { 29761: public: 29761: explicit TimestampTablePropertiesCollector(const Comparator* cmp) 29761: : cmp_(cmp), 29761: timestamp_min_(kDisableUserTimestamp), 29761: timestamp_max_(kDisableUserTimestamp) {} 29761: 29761: Status InternalAdd(const Slice& key, const Slice& , 29761: uint64_t ) override { 29761: auto user_key = ExtractUserKey(key); 29761: 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: (static_cast ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: cmp_ && cmp_->timestamp_size() > 0 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: "cmp_ && cmp_->timestamp_size() > 0" 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: ; 29761: if (user_key.size() < cmp_->timestamp_size()) { 29761: return Status::Corruption( 29761: "User key size mismatch when comparing to timestamp size."); 29761: } 29761: auto timestamp_in_key = 29761: ExtractTimestampFromUserKey(user_key, cmp_->timestamp_size()); 29761: if (timestamp_max_ == kDisableUserTimestamp || 29761: cmp_->CompareTimestamp(timestamp_in_key, timestamp_max_) > 0) { 29761: timestamp_max_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 29761: } 29761: if (timestamp_min_ == kDisableUserTimestamp || 29761: cmp_->CompareTimestamp(timestamp_min_, timestamp_in_key) > 0) { 29761: timestamp_min_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 29761: } 29761: return Status::OK(); 29761: } 29761: 29761: void BlockAdd(uint64_t , 29761: uint64_t , 29761: uint64_t ) override { 29761: return; 29761: } 29761: 29761: Status Finish(UserCollectedProperties* properties) override { 29761: 29761: 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: (static_cast ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size()) 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: "timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size())" 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: 29761: 29761: # 164 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: ; 29761: properties->insert({"rocksdb.timestamp_min", timestamp_min_}); 29761: properties->insert({"rocksdb.timestamp_max", timestamp_max_}); 29761: return Status::OK(); 29761: } 29761: 29761: const char* Name() const override { 29761: return "TimestampTablePropertiesCollector"; 29761: } 29761: 29761: UserCollectedProperties GetReadableProperties() const override { 29761: return {{"rocksdb.timestamp_min", Slice(timestamp_min_).ToString(true)}, 29761: {"rocksdb.timestamp_max", Slice(timestamp_max_).ToString(true)}}; 29761: } 29761: 29761: protected: 29761: const Comparator* const cmp_; 29761: std::string timestamp_min_; 29761: std::string timestamp_max_; 29761: }; 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 1 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29761: 29761: # 42 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 1 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: struct OperationInfo { 29761: const ThreadStatus::OperationType type; 29761: const std::string name; 29761: }; 29761: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29761: static OperationInfo global_operation_table[] = { 29761: {ThreadStatus::OP_UNKNOWN, ""}, 29761: {ThreadStatus::OP_COMPACTION, "Compaction"}, 29761: {ThreadStatus::OP_FLUSH, "Flush"}, 29761: {ThreadStatus::OP_DBOPEN, "DBOpen"}, 29761: {ThreadStatus::OP_GET, "Get"}, 29761: {ThreadStatus::OP_MULTIGET, "MultiGet"}, 29761: {ThreadStatus::OP_DBITERATOR, "DBIterator"}, 29761: {ThreadStatus::OP_VERIFY_DB_CHECKSUM, "VerifyDBChecksum"}, 29761: {ThreadStatus::OP_VERIFY_FILE_CHECKSUMS, "VerifyFileChecksums"}, 29761: {ThreadStatus::OP_GETENTITY, "GetEntity"}, 29761: {ThreadStatus::OP_MULTIGETENTITY, "MultiGetEntity"}, 29761: {ThreadStatus::OP_READ_MANIFEST, "ReadManifest"}, 29761: 29761: }; 29761: 29761: struct OperationStageInfo { 29761: const ThreadStatus::OperationStage stage; 29761: const std::string name; 29761: }; 29761: 29761: 29761: 29761: 29761: static OperationStageInfo global_op_stage_table[] = { 29761: {ThreadStatus::STAGE_UNKNOWN, ""}, 29761: {ThreadStatus::STAGE_FLUSH_RUN, "FlushJob::Run"}, 29761: {ThreadStatus::STAGE_FLUSH_WRITE_L0, "FlushJob::WriteLevel0Table"}, 29761: {ThreadStatus::STAGE_COMPACTION_PREPARE, "CompactionJob::Prepare"}, 29761: {ThreadStatus::STAGE_COMPACTION_RUN, "CompactionJob::Run"}, 29761: {ThreadStatus::STAGE_COMPACTION_PROCESS_KV, 29761: "CompactionJob::ProcessKeyValueCompaction"}, 29761: {ThreadStatus::STAGE_COMPACTION_INSTALL, "CompactionJob::Install"}, 29761: {ThreadStatus::STAGE_COMPACTION_SYNC_FILE, 29761: "CompactionJob::FinishCompactionOutputFile"}, 29761: {ThreadStatus::STAGE_PICK_MEMTABLES_TO_FLUSH, 29761: "MemTableList::PickMemtablesToFlush"}, 29761: {ThreadStatus::STAGE_MEMTABLE_ROLLBACK, 29761: "MemTableList::RollbackMemtableFlush"}, 29761: {ThreadStatus::STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 29761: "MemTableList::TryInstallMemtableFlushResults"}, 29761: }; 29761: 29761: 29761: struct StateInfo { 29761: const ThreadStatus::StateType type; 29761: const std::string name; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static StateInfo global_state_table[] = { 29761: {ThreadStatus::STATE_UNKNOWN, ""}, 29761: {ThreadStatus::STATE_MUTEX_WAIT, "Mutex Wait"}, 29761: }; 29761: 29761: struct OperationProperty { 29761: int code; 29761: std::string name; 29761: }; 29761: 29761: static OperationProperty compaction_operation_properties[] = { 29761: {ThreadStatus::COMPACTION_JOB_ID, "JobID"}, 29761: {ThreadStatus::COMPACTION_INPUT_OUTPUT_LEVEL, "InputOutputLevel"}, 29761: {ThreadStatus::COMPACTION_PROP_FLAGS, "Manual/Deletion/Trivial"}, 29761: {ThreadStatus::COMPACTION_TOTAL_INPUT_BYTES, "TotalInputBytes"}, 29761: {ThreadStatus::COMPACTION_BYTES_READ, "BytesRead"}, 29761: {ThreadStatus::COMPACTION_BYTES_WRITTEN, "BytesWritten"}, 29761: }; 29761: 29761: static OperationProperty flush_operation_properties[] = { 29761: {ThreadStatus::FLUSH_JOB_ID, "JobID"}, 29761: {ThreadStatus::FLUSH_BYTES_MEMTABLES, "BytesMemtables"}, 29761: {ThreadStatus::FLUSH_BYTES_WRITTEN, "BytesWritten"}}; 29761: # 123 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29761: } 29761: # 43 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class ColumnFamilyHandle; 29761: 29761: 29761: struct ConstantColumnFamilyInfo { 29761: 29761: public: 29761: ConstantColumnFamilyInfo(const void* _db_key, const std::string& _db_name, 29761: const std::string& _cf_name) 29761: : db_key(_db_key), db_name(_db_name), cf_name(_cf_name) {} 29761: const void* db_key; 29761: const std::string db_name; 29761: const std::string cf_name; 29761: 29761: }; 29761: 29761: 29761: 29761: struct ThreadStatusData { 29761: 29761: explicit ThreadStatusData() { 29761: enable_tracking.store(false); 29761: thread_id.store(0); 29761: thread_type.store(ThreadStatus::USER); 29761: cf_key.store(nullptr); 29761: operation_type.store(ThreadStatus::OP_UNKNOWN); 29761: op_start_time.store(0); 29761: state_type.store(ThreadStatus::STATE_UNKNOWN); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: std::atomic enable_tracking; 29761: 29761: std::atomic thread_id; 29761: std::atomic thread_type; 29761: std::atomic cf_key; 29761: std::atomic operation_type; 29761: std::atomic op_start_time; 29761: std::atomic operation_stage; 29761: std::atomic op_properties[ThreadStatus::kNumOperationProperties]; 29761: std::atomic state_type; 29761: 29761: }; 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29761: class ThreadStatusUpdater { 29761: public: 29761: ThreadStatusUpdater() {} 29761: 29761: 29761: virtual ~ThreadStatusUpdater() {} 29761: 29761: 29761: void UnregisterThread(); 29761: 29761: 29761: 29761: void ResetThreadStatus(); 29761: 29761: 29761: void SetThreadID(uint64_t thread_id); 29761: 29761: 29761: void RegisterThread(ThreadStatus::ThreadType ttype, uint64_t thread_id); 29761: 29761: void SetEnableTracking(bool enable_tracking); 29761: 29761: 29761: 29761: void SetColumnFamilyInfoKey(const void* cf_key); 29761: 29761: 29761: const void* GetColumnFamilyInfoKey(); 29761: 29761: 29761: void SetThreadOperation(const ThreadStatus::OperationType type); 29761: 29761: 29761: ThreadStatus::OperationType GetThreadOperation(); 29761: 29761: 29761: 29761: void SetOperationStartTime(const uint64_t start_time); 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29761: void SetThreadOperationProperty(int i, uint64_t value); 29761: 29761: 29761: 29761: void IncreaseThreadOperationProperty(int i, uint64_t delta); 29761: 29761: 29761: ThreadStatus::OperationStage SetThreadOperationStage( 29761: const ThreadStatus::OperationStage stage); 29761: 29761: 29761: void ClearThreadOperation(); 29761: 29761: 29761: void ClearThreadOperationProperties(); 29761: 29761: 29761: void SetThreadState(const ThreadStatus::StateType type); 29761: 29761: 29761: void ClearThreadState(); 29761: 29761: 29761: Status GetThreadList(std::vector* thread_list); 29761: 29761: 29761: 29761: 29761: void NewColumnFamilyInfo(const void* db_key, const std::string& db_name, 29761: const void* cf_key, const std::string& cf_name); 29761: 29761: 29761: 29761: 29761: void EraseDatabaseInfo(const void* db_key); 29761: 29761: 29761: 29761: 29761: void EraseColumnFamilyInfo(const void* cf_key); 29761: 29761: 29761: 29761: void TEST_VerifyColumnFamilyInfoMap( 29761: const std::vector& handles, bool check_exist); 29761: 29761: protected: 29761: 29761: 29761: static thread_local ThreadStatusData* thread_status_data_; 29761: 29761: 29761: 29761: ThreadStatusData* GetLocalThreadStatus(); 29761: 29761: 29761: 29761: ThreadStatusData* Get() { return thread_status_data_; } 29761: 29761: 29761: std::mutex thread_list_mutex_; 29761: 29761: 29761: std::unordered_set thread_data_set_; 29761: 29761: 29761: 29761: 29761: 29761: std::unordered_map cf_info_map_; 29761: 29761: 29761: 29761: std::unordered_map> db_key_map_; 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 2 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class ColumnFamilyData; 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29761: class ThreadStatusUtil { 29761: public: 29761: 29761: static void RegisterThread(const Env* env, 29761: ThreadStatus::ThreadType thread_type); 29761: 29761: 29761: static void UnregisterThread(); 29761: 29761: 29761: 29761: 29761: static void NewColumnFamilyInfo(const DB* db, const ColumnFamilyData* cfd, 29761: const std::string& cf_name, const Env* env); 29761: 29761: 29761: 29761: 29761: static void EraseColumnFamilyInfo(const ColumnFamilyData* cfd); 29761: 29761: 29761: 29761: 29761: static void EraseDatabaseInfo(const DB* db); 29761: 29761: static void SetEnableTracking(bool enable_tracking); 29761: 29761: 29761: 29761: 29761: 29761: static void SetColumnFamily(const ColumnFamilyData* cfd); 29761: 29761: static void SetThreadOperation(ThreadStatus::OperationType type); 29761: 29761: static ThreadStatus::OperationType GetThreadOperation(); 29761: 29761: static ThreadStatus::OperationStage SetThreadOperationStage( 29761: ThreadStatus::OperationStage stage); 29761: 29761: static void SetThreadOperationProperty(int code, uint64_t value); 29761: 29761: static void IncreaseThreadOperationProperty(int code, uint64_t delta); 29761: 29761: static void SetThreadState(ThreadStatus::StateType type); 29761: 29761: static void ResetThreadStatus(); 29761: 29761: 29761: static void TEST_SetStateDelay(const ThreadStatus::StateType state, 29761: int micro); 29761: static void TEST_StateDelay(const ThreadStatus::StateType state); 29761: 29761: static Env::IOActivity TEST_GetExpectedIOActivity( 29761: ThreadStatus::OperationType thread_op); 29761: 29761: 29761: protected: 29761: 29761: 29761: 29761: static bool MaybeInitThreadLocalUpdater(const Env* env); 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29761: static thread_local bool thread_updater_initialized_; 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29761: static thread_local ThreadStatusUpdater* thread_updater_local_cache_; 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: class AutoThreadOperationStageUpdater { 29761: public: 29761: explicit AutoThreadOperationStageUpdater(ThreadStatus::OperationStage stage); 29761: ~AutoThreadOperationStageUpdater(); 29761: 29761: 29761: private: 29761: ThreadStatus::OperationStage prev_stage_; 29761: 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 2 29761: # 26 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 1 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29761: 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29761: namespace rocksdb { 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29761: using UnrefHandler = void (*)(void* ptr); 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29761: class ThreadLocalPtr { 29761: public: 29761: explicit ThreadLocalPtr(UnrefHandler handler = nullptr); 29761: 29761: ThreadLocalPtr(const ThreadLocalPtr&) = delete; 29761: ThreadLocalPtr& operator=(const ThreadLocalPtr&) = delete; 29761: 29761: ~ThreadLocalPtr(); 29761: 29761: 29761: void* Get() const; 29761: 29761: 29761: void Reset(void* ptr); 29761: 29761: 29761: void* Swap(void* ptr); 29761: 29761: 29761: 29761: 29761: 29761: bool CompareAndSwap(void* ptr, void*& expected); 29761: 29761: 29761: 29761: void Scrape(autovector* ptrs, void* const replacement); 29761: 29761: using FoldFunc = std::function; 29761: 29761: 29761: 29761: 29761: void Fold(FoldFunc func, void* res); 29761: 29761: 29761: 29761: static uint32_t TEST_PeekId(); 29761: # 90 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29761: static void InitSingletons(); 29761: 29761: class StaticMeta; 29761: 29761: private: 29761: static StaticMeta* Instance(); 29761: 29761: const uint32_t id_; 29761: }; 29761: 29761: } 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class TestFSWritableFile; 29761: class FaultInjectionTestFS; 29761: 29761: enum class FaultInjectionIOType { 29761: kRead = 0, 29761: kWrite, 29761: kMetadataRead, 29761: kMetadataWrite, 29761: }; 29761: 29761: struct FSFileState { 29761: std::string filename_; 29761: uint64_t pos_at_last_append_ = 0; 29761: uint64_t pos_at_last_sync_ = 0; 29761: std::string buffer_; 29761: 29761: explicit FSFileState(const std::string& filename = {}) 29761: : filename_(filename) {} 29761: 29761: bool IsFullySynced() const { 29761: return pos_at_last_append_ == pos_at_last_sync_; 29761: } 29761: 29761: IOStatus DropUnsyncedData(); 29761: 29761: IOStatus DropRandomUnsyncedData(Random* rand); 29761: }; 29761: 29761: 29761: 29761: class TestFSWritableFile : public FSWritableFile { 29761: public: 29761: explicit TestFSWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr&& f, 29761: FaultInjectionTestFS* fs); 29761: virtual ~TestFSWritableFile(); 29761: IOStatus Append(const Slice& data, const IOOptions&, 29761: IODebugContext*) override; 29761: IOStatus Append(const Slice& data, const IOOptions& options, 29761: const DataVerificationInfo& verification_info, 29761: IODebugContext* dbg) override; 29761: IOStatus Truncate(uint64_t size, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29761: IOStatus Flush(const IOOptions&, IODebugContext*) override; 29761: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29761: IOStatus RangeSync(uint64_t , uint64_t , 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: bool IsSyncThreadSafe() const override { return true; } 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: const DataVerificationInfo& verification_info, 29761: IODebugContext* dbg) override; 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: 29761: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 29761: MutexLock l(&mutex_); 29761: return target_->GetFileSize(options, dbg); 29761: } 29761: 29761: private: 29761: FSFileState state_; 29761: FileOptions file_opts_; 29761: std::unique_ptr target_; 29761: bool writable_file_opened_; 29761: FaultInjectionTestFS* fs_; 29761: port::Mutex mutex_; 29761: const bool unsync_data_loss_; 29761: }; 29761: 29761: 29761: 29761: class TestFSRandomRWFile : public FSRandomRWFile { 29761: public: 29761: explicit TestFSRandomRWFile(const std::string& fname, 29761: std::unique_ptr&& f, 29761: FaultInjectionTestFS* fs); 29761: virtual ~TestFSRandomRWFile(); 29761: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override; 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29761: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 29761: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: 29761: private: 29761: std::unique_ptr target_; 29761: bool file_opened_; 29761: FaultInjectionTestFS* fs_; 29761: }; 29761: 29761: class TestFSRandomAccessFile : public FSRandomAccessFile { 29761: public: 29761: explicit TestFSRandomAccessFile(const std::string& fname, 29761: std::unique_ptr&& f, 29761: FaultInjectionTestFS* fs); 29761: ~TestFSRandomAccessFile() override {} 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override; 29761: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29761: std::function cb, 29761: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29761: IODebugContext* dbg) override; 29761: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: 29761: size_t GetUniqueId(char* id, size_t max_size) const override; 29761: 29761: private: 29761: std::unique_ptr target_; 29761: FaultInjectionTestFS* fs_; 29761: }; 29761: 29761: class TestFSSequentialFile : public FSSequentialFileOwnerWrapper { 29761: public: 29761: explicit TestFSSequentialFile(std::unique_ptr&& f, 29761: FaultInjectionTestFS* fs, std::string fname) 29761: : FSSequentialFileOwnerWrapper(std::move(f)), 29761: fs_(fs), 29761: fname_(std::move(fname)) {} 29761: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29761: char* scratch, IODebugContext* dbg) override; 29761: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) override; 29761: 29761: private: 29761: FaultInjectionTestFS* fs_; 29761: std::string fname_; 29761: uint64_t read_pos_ = 0; 29761: uint64_t target_read_pos_ = 0; 29761: }; 29761: 29761: class TestFSDirectory : public FSDirectory { 29761: public: 29761: explicit TestFSDirectory(FaultInjectionTestFS* fs, std::string dirname, 29761: FSDirectory* dir) 29761: : fs_(fs), dirname_(std::move(dirname)), dir_(dir) {} 29761: ~TestFSDirectory() {} 29761: 29761: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus FsyncWithDirOptions( 29761: const IOOptions& options, IODebugContext* dbg, 29761: const DirFsyncOptions& dir_fsync_options) override; 29761: 29761: private: 29761: FaultInjectionTestFS* fs_; 29761: std::string dirname_; 29761: std::unique_ptr dir_; 29761: }; 29761: 29761: class FaultInjectionTestFS : public FileSystemWrapper { 29761: public: 29761: explicit FaultInjectionTestFS(const std::shared_ptr& base) 29761: : FileSystemWrapper(base), 29761: filesystem_active_(true), 29761: filesystem_writable_(false), 29761: inject_unsynced_data_loss_(false), 29761: read_unsynced_data_(true), 29761: allow_link_open_file_(false), 29761: injected_thread_local_read_error_(DeleteThreadLocalErrorContext), 29761: injected_thread_local_write_error_(DeleteThreadLocalErrorContext), 29761: injected_thread_local_metadata_read_error_( 29761: DeleteThreadLocalErrorContext), 29761: injected_thread_local_metadata_write_error_( 29761: DeleteThreadLocalErrorContext), 29761: ingest_data_corruption_before_write_(false), 29761: checksum_handoff_func_type_(kCRC32c), 29761: fail_get_file_unique_id_(false) {} 29761: virtual ~FaultInjectionTestFS() override { fs_error_.PermitUncheckedError(); } 29761: 29761: static const char* kClassName() { return "FaultInjectionTestFS"; } 29761: const char* Name() const override { return kClassName(); } 29761: 29761: static bool IsInjectedError(const Status& s) { 29761: 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: !s.ok() 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "!s.ok()" 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; 29761: return std::strstr(s.getState(), kInjected.c_str()); 29761: } 29761: 29761: static bool IsFailedToWriteToWALError(const Status& s) { 29761: 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: !s.ok() 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "!s.ok()" 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; 29761: return std::strstr(s.getState(), kFailedToWriteToWAL.c_str()); 29761: } 29761: 29761: IOStatus NewDirectory(const std::string& name, const IOOptions& options, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus FileExists(const std::string& fname, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus GetChildren(const std::string& dir, const IOOptions& options, 29761: std::vector* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus GetChildrenFileAttributes(const std::string& dir, 29761: const IOOptions& options, 29761: std::vector* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus ReopenWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewRandomRWFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewRandomAccessFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 29761: std::unique_ptr* r, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 29761: uint64_t* file_size, IODebugContext* dbg) override; 29761: 29761: IOStatus GetFileModificationTime(const std::string& fname, 29761: const IOOptions& options, 29761: uint64_t* file_mtime, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus RenameFile(const std::string& s, const std::string& t, 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus LinkFile(const std::string& src, const std::string& target, 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 29761: uint64_t* count, IODebugContext* dbg) override; 29761: 29761: IOStatus AreFilesSame(const std::string& first, const std::string& second, 29761: const IOOptions& options, bool* res, 29761: IODebugContext* dbg) override; 29761: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 29761: std::string* output_path, 29761: IODebugContext* dbg) override; 29761: 29761: 29761: 29761: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 29761: uint64_t* disk_free, IODebugContext* dbg) override { 29761: IOStatus io_s; 29761: if (!IsFilesystemActive() && 29761: fs_error_.subcode() == IOStatus::SubCode::kNoSpace) { 29761: *disk_free = 0; 29761: } else { 29761: io_s = MaybeInjectThreadLocalError(FaultInjectionIOType::kMetadataRead, 29761: options); 29761: if (io_s.ok()) { 29761: io_s = target()->GetFreeSpace(path, options, disk_free, dbg); 29761: } 29761: } 29761: return io_s; 29761: } 29761: 29761: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 29761: bool* is_dir, IODebugContext* dgb) override; 29761: 29761: IOStatus Poll(std::vector& io_handles, 29761: size_t min_completions) override; 29761: 29761: IOStatus AbortIO(std::vector& io_handles) override; 29761: 29761: void WritableFileClosed(const FSFileState& state); 29761: 29761: void WritableFileSynced(const FSFileState& state); 29761: 29761: void WritableFileAppended(const FSFileState& state); 29761: 29761: IOStatus DropUnsyncedFileData(); 29761: 29761: IOStatus DropRandomUnsyncedFileData(Random* rnd); 29761: 29761: IOStatus DeleteFilesCreatedAfterLastDirSync(const IOOptions& options, 29761: IODebugContext* dbg); 29761: 29761: void ResetState(); 29761: 29761: void UntrackFile(const std::string& f); 29761: 29761: void SyncDir(const std::string& dirname) { 29761: MutexLock l(&mutex_); 29761: dir_to_new_files_since_last_sync_.erase(dirname); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: bool IsFilesystemActive() { 29761: MutexLock l(&mutex_); 29761: return filesystem_active_; 29761: } 29761: 29761: 29761: 29761: 29761: bool IsFilesystemDirectWritable() { 29761: MutexLock l(&mutex_); 29761: return filesystem_writable_; 29761: } 29761: void SetFilesystemActiveNoLock( 29761: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 29761: error.PermitUncheckedError(); 29761: filesystem_active_ = active; 29761: if (!active) { 29761: fs_error_ = error; 29761: } 29761: } 29761: void SetFilesystemActive( 29761: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 29761: MutexLock l(&mutex_); 29761: error.PermitUncheckedError(); 29761: SetFilesystemActiveNoLock(active, error); 29761: } 29761: void SetFilesystemDirectWritable(bool writable) { 29761: MutexLock l(&mutex_); 29761: filesystem_writable_ = writable; 29761: } 29761: 29761: 29761: 29761: void SetInjectUnsyncedDataLoss(bool inject) { 29761: MutexLock l(&mutex_); 29761: inject_unsynced_data_loss_ = inject; 29761: } 29761: 29761: bool InjectUnsyncedDataLoss() { 29761: MutexLock l(&mutex_); 29761: return inject_unsynced_data_loss_; 29761: } 29761: # 415 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: void SetReadUnsyncedData(bool read_unsynced_data) { 29761: read_unsynced_data_ = read_unsynced_data; 29761: } 29761: bool ReadUnsyncedData() const { return read_unsynced_data_; } 29761: 29761: 29761: 29761: 29761: void SetAllowLinkOpenFile(bool allow_link_open_file = true) { 29761: allow_link_open_file_ = allow_link_open_file; 29761: } 29761: 29761: bool ShouldIOActivtiesExcludedFromFaultInjection(Env::IOActivity io_activty) { 29761: MutexLock l(&mutex_); 29761: return io_activties_excluded_from_fault_injection.find(io_activty) != 29761: io_activties_excluded_from_fault_injection.end(); 29761: } 29761: 29761: void AssertNoOpenFile() { 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: open_managed_files_.empty() 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "open_managed_files_.empty()" 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; } 29761: 29761: IOStatus GetError() { return fs_error_; } 29761: 29761: void SetFileSystemIOError(IOStatus io_error) { 29761: MutexLock l(&mutex_); 29761: io_error.PermitUncheckedError(); 29761: fs_error_ = io_error; 29761: } 29761: 29761: 29761: void IngestDataCorruptionBeforeWrite() { 29761: MutexLock l(&mutex_); 29761: ingest_data_corruption_before_write_ = true; 29761: } 29761: 29761: void NoDataCorruptionBeforeWrite() { 29761: MutexLock l(&mutex_); 29761: ingest_data_corruption_before_write_ = false; 29761: } 29761: 29761: bool ShouldDataCorruptionBeforeWrite() { 29761: MutexLock l(&mutex_); 29761: return ingest_data_corruption_before_write_; 29761: } 29761: 29761: void SetChecksumHandoffFuncType(const ChecksumType& func_type) { 29761: MutexLock l(&mutex_); 29761: checksum_handoff_func_type_ = func_type; 29761: } 29761: 29761: const ChecksumType& GetChecksumHandoffFuncType() { 29761: MutexLock l(&mutex_); 29761: return checksum_handoff_func_type_; 29761: } 29761: 29761: void SetFailGetUniqueId(bool flag) { 29761: MutexLock l(&mutex_); 29761: fail_get_file_unique_id_ = flag; 29761: } 29761: 29761: bool ShouldFailGetUniqueId() { 29761: MutexLock l(&mutex_); 29761: return fail_get_file_unique_id_; 29761: } 29761: 29761: 29761: enum ErrorOperation : char { 29761: kRead = 0, 29761: kMultiReadSingleReq = 1, 29761: kMultiRead = 2, 29761: kOpen, 29761: kAppend, 29761: kPositionedAppend, 29761: kUnknown, 29761: }; 29761: 29761: void SetThreadLocalErrorContext(FaultInjectionIOType type, uint32_t seed, 29761: int one_in, bool retryable, 29761: bool has_data_loss) { 29761: struct ErrorContext* new_ctx = new ErrorContext(seed); 29761: new_ctx->one_in = one_in; 29761: new_ctx->count = 0; 29761: new_ctx->retryable = retryable; 29761: new_ctx->has_data_loss = has_data_loss; 29761: 29761: SetErrorContextOfFaultInjectionIOType(type, new_ctx); 29761: } 29761: 29761: static void DeleteThreadLocalErrorContext(void* p) { 29761: ErrorContext* ctx = static_cast(p); 29761: delete ctx; 29761: } 29761: 29761: IOStatus MaybeInjectThreadLocalError( 29761: FaultInjectionIOType type, const IOOptions& io_options, 29761: const std::string& file_name = "", ErrorOperation op = kUnknown, 29761: Slice* slice = nullptr, bool direct_io = false, char* scratch = nullptr, 29761: bool need_count_increase = false, bool* fault_injected = nullptr); 29761: 29761: int GetAndResetInjectedThreadLocalErrorCount(FaultInjectionIOType type) { 29761: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29761: int count = 0; 29761: if (ctx) { 29761: count = ctx->count; 29761: ctx->count = 0; 29761: } 29761: return count; 29761: } 29761: 29761: void SetIOActivtiesExcludedFromFaultInjection( 29761: const std::set& io_activties) { 29761: MutexLock l(&mutex_); 29761: io_activties_excluded_from_fault_injection = io_activties; 29761: } 29761: 29761: void SetFileTypesExcludedFromWriteFaultInjection( 29761: const std::set& types) { 29761: MutexLock l(&mutex_); 29761: file_types_excluded_from_write_fault_injection_ = types; 29761: } 29761: 29761: void EnableThreadLocalErrorInjection(FaultInjectionIOType type) { 29761: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29761: if (ctx) { 29761: ctx->enable_error_injection = true; 29761: } 29761: } 29761: 29761: void EnableAllThreadLocalErrorInjection() { 29761: EnableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 29761: EnableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 29761: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 29761: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 29761: } 29761: 29761: void DisableThreadLocalErrorInjection(FaultInjectionIOType type) { 29761: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29761: if (ctx) { 29761: ctx->enable_error_injection = false; 29761: } 29761: } 29761: 29761: void DisableAllThreadLocalErrorInjection() { 29761: DisableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 29761: DisableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 29761: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 29761: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 29761: } 29761: 29761: void PrintInjectedThreadLocalErrorBacktrace(FaultInjectionIOType type); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void ReadUnsynced(const std::string& fname, uint64_t offset, size_t n, 29761: Slice* result, char* scratch, int64_t* pos_at_last_sync); 29761: 29761: inline static const std::string kInjected = "injected"; 29761: 29761: private: 29761: inline static const std::string kFailedToWriteToWAL = 29761: "failed to write to WAL"; 29761: port::Mutex mutex_; 29761: std::map db_file_state_; 29761: std::set open_managed_files_; 29761: 29761: 29761: 29761: 29761: std::unordered_map> 29761: dir_to_new_files_since_last_sync_; 29761: bool filesystem_active_; 29761: bool filesystem_writable_; 29761: 29761: bool inject_unsynced_data_loss_; 29761: bool read_unsynced_data_; 29761: bool allow_link_open_file_; 29761: IOStatus fs_error_; 29761: 29761: enum ErrorType : int { 29761: kErrorTypeStatus = 0, 29761: kErrorTypeCorruption, 29761: kErrorTypeTruncated, 29761: kErrorTypeMax 29761: }; 29761: 29761: struct ErrorContext { 29761: Random rand; 29761: int one_in; 29761: int count; 29761: bool enable_error_injection; 29761: void* callstack; 29761: std::string message; 29761: int frames; 29761: ErrorType type; 29761: bool retryable; 29761: bool has_data_loss; 29761: 29761: explicit ErrorContext(uint32_t seed) 29761: : rand(seed), 29761: enable_error_injection(false), 29761: callstack(nullptr), 29761: frames(0), 29761: retryable(false), 29761: has_data_loss(false) {} 29761: ~ErrorContext() { 29761: if (callstack) { 29761: free(callstack); 29761: } 29761: } 29761: }; 29761: 29761: std::set file_types_excluded_from_write_fault_injection_; 29761: std::set io_activties_excluded_from_fault_injection; 29761: ThreadLocalPtr injected_thread_local_read_error_; 29761: ThreadLocalPtr injected_thread_local_write_error_; 29761: ThreadLocalPtr injected_thread_local_metadata_read_error_; 29761: ThreadLocalPtr injected_thread_local_metadata_write_error_; 29761: bool ingest_data_corruption_before_write_; 29761: ChecksumType checksum_handoff_func_type_; 29761: bool fail_get_file_unique_id_; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: IOStatus MaybeInjectThreadLocalReadError(const IOOptions& io_options, 29761: ErrorOperation op, Slice* slice, 29761: bool direct_io, char* scratch, 29761: bool need_count_increase, 29761: bool* fault_injected); 29761: 29761: bool ShouldExcludeFromWriteFaultInjection(const std::string& file_name) { 29761: MutexLock l(&mutex_); 29761: FileType file_type = kTempFile; 29761: uint64_t file_number = 0; 29761: if (!TryParseFileName(file_name, &file_number, &file_type)) { 29761: return false; 29761: } 29761: return file_types_excluded_from_write_fault_injection_.find(file_type) != 29761: file_types_excluded_from_write_fault_injection_.end(); 29761: } 29761: 29761: 29761: 29761: bool TryParseFileName(const std::string& file_name, uint64_t* number, 29761: FileType* type); 29761: 29761: ErrorContext* GetErrorContextFromFaultInjectionIOType( 29761: FaultInjectionIOType type) { 29761: ErrorContext* ctx = nullptr; 29761: switch (type) { 29761: case FaultInjectionIOType::kRead: 29761: ctx = static_cast( 29761: injected_thread_local_read_error_.Get()); 29761: break; 29761: case FaultInjectionIOType::kWrite: 29761: ctx = static_cast( 29761: injected_thread_local_write_error_.Get()); 29761: break; 29761: case FaultInjectionIOType::kMetadataRead: 29761: ctx = static_cast( 29761: injected_thread_local_metadata_read_error_.Get()); 29761: break; 29761: case FaultInjectionIOType::kMetadataWrite: 29761: ctx = static_cast( 29761: injected_thread_local_metadata_write_error_.Get()); 29761: break; 29761: default: 29761: 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: false 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "false" 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; 29761: break; 29761: } 29761: return ctx; 29761: } 29761: 29761: void SetErrorContextOfFaultInjectionIOType(FaultInjectionIOType type, 29761: ErrorContext* new_ctx) { 29761: ErrorContext* old_ctx = nullptr; 29761: switch (type) { 29761: case FaultInjectionIOType::kRead: 29761: old_ctx = static_cast( 29761: injected_thread_local_read_error_.Swap(new_ctx)); 29761: break; 29761: case FaultInjectionIOType::kWrite: 29761: old_ctx = static_cast( 29761: injected_thread_local_write_error_.Swap(new_ctx)); 29761: break; 29761: case FaultInjectionIOType::kMetadataRead: 29761: old_ctx = static_cast( 29761: injected_thread_local_metadata_read_error_.Swap(new_ctx)); 29761: break; 29761: case FaultInjectionIOType::kMetadataWrite: 29761: old_ctx = static_cast( 29761: injected_thread_local_metadata_write_error_.Swap(new_ctx)); 29761: break; 29761: default: 29761: 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: false 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "false" 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; 29761: break; 29761: } 29761: 29761: if (old_ctx) { 29761: DeleteThreadLocalErrorContext(old_ctx); 29761: } 29761: } 29761: 29761: std::string GetErrorMessage(FaultInjectionIOType type, 29761: const std::string& file_name, ErrorOperation op) { 29761: std::ostringstream msg; 29761: msg << kInjected << " "; 29761: switch (type) { 29761: case FaultInjectionIOType::kRead: 29761: msg << "read error"; 29761: break; 29761: case FaultInjectionIOType::kWrite: 29761: msg << "write error"; 29761: break; 29761: case FaultInjectionIOType::kMetadataRead: 29761: msg << "metadata read error"; 29761: break; 29761: case FaultInjectionIOType::kMetadataWrite: 29761: msg << "metadata write error"; 29761: break; 29761: default: 29761: 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: false 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "false" 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; 29761: break; 29761: } 29761: 29761: if (type == FaultInjectionIOType::kWrite && 29761: (op == ErrorOperation::kOpen || op == ErrorOperation::kAppend || 29761: op == ErrorOperation::kPositionedAppend)) { 29761: FileType file_type = kTempFile; 29761: uint64_t ignore = 0; 29761: if (TryParseFileName(file_name, &ignore, &file_type) && 29761: file_type == FileType::kWalFile) { 29761: msg << " " << kFailedToWriteToWAL; 29761: } 29761: } 29761: return msg.str(); 29761: } 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: class Statistics; 29761: class SystemClock; 29761: # 40 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: class WritableFileWriter { 29761: private: 29761: void NotifyOnFileWriteFinish( 29761: uint64_t offset, size_t length, 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status) { 29761: FileOperationInfo info(FileOperationType::kWrite, file_name_, start_ts, 29761: finish_ts, io_status, temperature_); 29761: info.offset = offset; 29761: info.length = length; 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileWriteFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: void NotifyOnFileFlushFinish( 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status) { 29761: FileOperationInfo info(FileOperationType::kFlush, file_name_, start_ts, 29761: finish_ts, io_status, temperature_); 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileFlushFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: void NotifyOnFileSyncFinish( 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status, 29761: FileOperationType type = FileOperationType::kSync) { 29761: FileOperationInfo info(type, file_name_, start_ts, finish_ts, io_status, 29761: temperature_); 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileSyncFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: void NotifyOnFileRangeSyncFinish( 29761: uint64_t offset, size_t length, 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status) { 29761: FileOperationInfo info(FileOperationType::kRangeSync, file_name_, start_ts, 29761: finish_ts, io_status, temperature_); 29761: info.offset = offset; 29761: info.length = length; 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileRangeSyncFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: void NotifyOnFileTruncateFinish( 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status) { 29761: FileOperationInfo info(FileOperationType::kTruncate, file_name_, start_ts, 29761: finish_ts, io_status, temperature_); 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileTruncateFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: void NotifyOnFileCloseFinish( 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status) { 29761: FileOperationInfo info(FileOperationType::kClose, file_name_, start_ts, 29761: finish_ts, io_status, temperature_); 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileCloseFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: 29761: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 29761: const std::string& file_path, size_t length = 0, 29761: uint64_t offset = 0) { 29761: if (listeners_.empty()) { 29761: return; 29761: } 29761: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 29761: for (auto& listener : listeners_) { 29761: listener->OnIOError(io_error_info); 29761: } 29761: io_error_info.io_status.PermitUncheckedError(); 29761: } 29761: 29761: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 29761: void UpdateFileChecksum(const Slice& data); 29761: void Crc32cHandoffChecksumCalculation(const char* data, size_t size, 29761: char* buf); 29761: 29761: std::string file_name_; 29761: FSWritableFilePtr writable_file_; 29761: SystemClock* clock_; 29761: AlignedBuffer buf_; 29761: size_t max_buffer_size_; 29761: 29761: 29761: std::atomic filesize_; 29761: std::atomic flushed_size_; 29761: 29761: 29761: 29761: uint64_t next_write_offset_; 29761: bool pending_sync_; 29761: std::atomic seen_error_; 29761: 29761: std::atomic seen_injected_error_; 29761: 29761: uint64_t last_sync_size_; 29761: uint64_t bytes_per_sync_; 29761: RateLimiter* rate_limiter_; 29761: Statistics* stats_; 29761: Histograms hist_type_; 29761: std::vector> listeners_; 29761: std::unique_ptr checksum_generator_; 29761: bool checksum_finalized_; 29761: bool perform_data_verification_; 29761: uint32_t buffered_data_crc32c_checksum_; 29761: bool buffered_data_with_checksum_; 29761: Temperature temperature_; 29761: 29761: public: 29761: WritableFileWriter( 29761: std::unique_ptr&& file, const std::string& _file_name, 29761: const FileOptions& options, SystemClock* clock = nullptr, 29761: const std::shared_ptr& io_tracer = nullptr, 29761: Statistics* stats = nullptr, 29761: Histograms hist_type = Histograms::HISTOGRAM_ENUM_MAX, 29761: const std::vector>& listeners = {}, 29761: FileChecksumGenFactory* file_checksum_gen_factory = nullptr, 29761: bool perform_data_verification = false, 29761: bool buffered_data_with_checksum = false) 29761: : file_name_(_file_name), 29761: writable_file_(std::move(file), io_tracer, _file_name), 29761: clock_(clock), 29761: buf_(), 29761: max_buffer_size_(options.writable_file_max_buffer_size), 29761: filesize_(0), 29761: flushed_size_(0), 29761: next_write_offset_(0), 29761: pending_sync_(false), 29761: seen_error_(false), 29761: 29761: seen_injected_error_(false), 29761: 29761: last_sync_size_(0), 29761: bytes_per_sync_(options.bytes_per_sync), 29761: rate_limiter_(options.rate_limiter), 29761: stats_(stats), 29761: hist_type_(hist_type), 29761: listeners_(), 29761: checksum_generator_(nullptr), 29761: checksum_finalized_(false), 29761: perform_data_verification_(perform_data_verification), 29761: buffered_data_crc32c_checksum_(0), 29761: buffered_data_with_checksum_(buffered_data_with_checksum) { 29761: temperature_ = options.temperature; 29761: 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29761: (static_cast ( 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: !use_direct_io() || max_buffer_size_ > 0 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: "!use_direct_io() || max_buffer_size_ > 0" 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: ; 29761: rocksdb::SyncPoint::GetInstance()->Process("WritableFileWriter::WritableFileWriter:0", reinterpret_cast(max_buffer_size_)) 29761: ; 29761: buf_.Alignment(writable_file_->GetRequiredBufferAlignment()); 29761: buf_.AllocateNewBuffer(std::min((size_t)65536, max_buffer_size_)); 29761: std::for_each(listeners.begin(), listeners.end(), 29761: [this](const std::shared_ptr& e) { 29761: if (e->ShouldBeNotifiedOnFileIO()) { 29761: listeners_.emplace_back(e); 29761: } 29761: }); 29761: if (file_checksum_gen_factory != nullptr) { 29761: FileChecksumGenContext checksum_gen_context; 29761: checksum_gen_context.file_name = _file_name; 29761: checksum_generator_ = 29761: file_checksum_gen_factory->CreateFileChecksumGenerator( 29761: checksum_gen_context); 29761: } 29761: } 29761: 29761: static IOStatus Create(const std::shared_ptr& fs, 29761: const std::string& fname, const FileOptions& file_opts, 29761: std::unique_ptr* writer, 29761: IODebugContext* dbg); 29761: 29761: static IOStatus PrepareIOOptions(const WriteOptions& wo, IOOptions& opts); 29761: 29761: WritableFileWriter(const WritableFileWriter&) = delete; 29761: 29761: WritableFileWriter& operator=(const WritableFileWriter&) = delete; 29761: 29761: ~WritableFileWriter() { 29761: IOOptions io_options; 29761: 29761: 29761: 29761: ThreadStatus::OperationType op_type = 29761: ThreadStatusUtil::GetThreadOperation(); 29761: io_options.io_activity = 29761: ThreadStatusUtil::TEST_GetExpectedIOActivity(op_type); 29761: 29761: auto s = Close(io_options); 29761: s.PermitUncheckedError(); 29761: } 29761: 29761: std::string file_name() const { return file_name_; } 29761: 29761: 29761: 29761: IOStatus Append(const IOOptions& opts, const Slice& data, 29761: uint32_t crc32c_checksum = 0); 29761: 29761: IOStatus Pad(const IOOptions& opts, const size_t pad_bytes); 29761: 29761: IOStatus Flush(const IOOptions& opts); 29761: 29761: IOStatus Close(const IOOptions& opts); 29761: 29761: IOStatus Sync(const IOOptions& opts, bool use_fsync); 29761: 29761: 29761: 29761: 29761: IOStatus SyncWithoutFlush(const IOOptions& opts, bool use_fsync); 29761: 29761: 29761: 29761: uint64_t GetFileSize() const { 29761: return filesize_.load(std::memory_order_acquire); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: uint64_t GetFlushedSize() const { 29761: return flushed_size_.load(std::memory_order_acquire); 29761: } 29761: 29761: IOStatus InvalidateCache(size_t offset, size_t length) { 29761: return writable_file_->InvalidateCache(offset, length); 29761: } 29761: 29761: FSWritableFile* writable_file() const { return writable_file_.get(); } 29761: 29761: bool use_direct_io() { return writable_file_->use_direct_io(); } 29761: 29761: bool BufferIsEmpty() const { return buf_.CurrentSize() == 0; } 29761: 29761: bool IsClosed() const { return writable_file_.get() == nullptr; } 29761: 29761: void TEST_SetFileChecksumGenerator( 29761: FileChecksumGenerator* checksum_generator) { 29761: checksum_generator_.reset(checksum_generator); 29761: } 29761: 29761: std::string GetFileChecksum(); 29761: 29761: const char* GetFileChecksumFuncName() const; 29761: 29761: bool seen_error() const { 29761: return seen_error_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: void reset_seen_error() { 29761: seen_error_.store(false, std::memory_order_relaxed); 29761: 29761: seen_injected_error_.store(false, std::memory_order_relaxed); 29761: 29761: } 29761: void set_seen_error(const Status& s) { 29761: seen_error_.store(true, std::memory_order_relaxed); 29761: (void)s; 29761: 29761: if (s.getState() && std::strstr(s.getState(), "inject")) { 29761: seen_injected_error_.store(true, std::memory_order_relaxed); 29761: } 29761: 29761: } 29761: 29761: bool seen_injected_error() const { 29761: return seen_injected_error_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: 29761: IOStatus GetWriterHasPreviousErrorStatus() { 29761: 29761: if (seen_injected_error_.load(std::memory_order_relaxed)) { 29761: std::stringstream msg; 29761: msg << "Writer has previous " << FaultInjectionTestFS::kInjected 29761: << " error."; 29761: return IOStatus::IOError(msg.str()); 29761: } 29761: 29761: return IOStatus::IOError("Writer has previous error."); 29761: } 29761: 29761: private: 29761: 29761: static Env::IOPriority DecideRateLimiterPriority( 29761: Env::IOPriority writable_file_io_priority, 29761: Env::IOPriority op_rate_limiter_priority); 29761: 29761: 29761: 29761: 29761: IOStatus WriteDirect(const IOOptions& opts); 29761: 29761: IOStatus WriteDirectWithChecksum(const IOOptions& opts); 29761: 29761: 29761: IOStatus WriteBuffered(const IOOptions& opts, const char* data, size_t size); 29761: 29761: IOStatus WriteBufferedWithChecksum(const IOOptions& opts, const char* data, 29761: size_t size); 29761: 29761: IOStatus RangeSync(const IOOptions& opts, uint64_t offset, uint64_t nbytes); 29761: 29761: IOStatus SyncInternal(const IOOptions& opts, bool use_fsync); 29761: IOOptions FinalizeIOOptions(const IOOptions& opts) const; 29761: }; 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 29761: namespace rocksdb { 29761: class Env; 29761: class SystemClock; 29761: 29761: extern const uint64_t kMicrosInSecond; 29761: extern const uint64_t kSecondInMinute; 29761: extern const uint64_t kSecondInHour; 29761: 29761: struct BlockCacheTraceRecord; 29761: 29761: class BlockCacheTraceHelper { 29761: public: 29761: static bool IsGetOrMultiGetOnDataBlock(TraceType block_type, 29761: TableReaderCaller caller); 29761: static bool IsGetOrMultiGet(TableReaderCaller caller); 29761: static bool IsUserAccess(TableReaderCaller caller); 29761: 29761: 29761: static std::string ComputeRowKey(const BlockCacheTraceRecord& access); 29761: 29761: 29761: static uint64_t GetTableId(const BlockCacheTraceRecord& access); 29761: 29761: 29761: static uint64_t GetSequenceNumber(const BlockCacheTraceRecord& access); 29761: 29761: static uint64_t GetBlockOffsetInFile(const BlockCacheTraceRecord& access); 29761: 29761: static const std::string kUnknownColumnFamilyName; 29761: static const uint64_t kReservedGetId; 29761: }; 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 29761: struct BlockCacheLookupContext { 29761: BlockCacheLookupContext(const TableReaderCaller& _caller) : caller(_caller) {} 29761: BlockCacheLookupContext(const TableReaderCaller& _caller, uint64_t _get_id, 29761: bool _get_from_user_specified_snapshot) 29761: : caller(_caller), 29761: get_id(_get_id), 29761: get_from_user_specified_snapshot(_get_from_user_specified_snapshot) {} 29761: const TableReaderCaller caller; 29761: 29761: 29761: 29761: bool is_cache_hit = false; 29761: bool no_insert = false; 29761: TraceType block_type = TraceType::kTraceMax; 29761: uint64_t block_size = 0; 29761: std::string block_key; 29761: uint64_t num_keys_in_block = 0; 29761: 29761: 29761: 29761: uint64_t get_id = 0; 29761: std::string referenced_key; 29761: bool get_from_user_specified_snapshot = false; 29761: 29761: void FillLookupContext(bool _is_cache_hit, bool _no_insert, 29761: TraceType _block_type, uint64_t _block_size, 29761: const std::string& _block_key, 29761: uint64_t _num_keys_in_block) { 29761: is_cache_hit = _is_cache_hit; 29761: no_insert = _no_insert; 29761: block_type = _block_type; 29761: block_size = _block_size; 29761: block_key = _block_key; 29761: num_keys_in_block = _num_keys_in_block; 29761: } 29761: }; 29761: 29761: struct BlockCacheTraceHeader { 29761: uint64_t start_time; 29761: uint32_t rocksdb_major_version; 29761: uint32_t rocksdb_minor_version; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class BlockCacheTraceWriterImpl : public BlockCacheTraceWriter { 29761: public: 29761: BlockCacheTraceWriterImpl(SystemClock* clock, 29761: const BlockCacheTraceWriterOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: ~BlockCacheTraceWriterImpl() = default; 29761: 29761: BlockCacheTraceWriterImpl(const BlockCacheTraceWriterImpl&) = delete; 29761: BlockCacheTraceWriterImpl& operator=(const BlockCacheTraceWriterImpl&) = 29761: delete; 29761: BlockCacheTraceWriterImpl(BlockCacheTraceWriterImpl&&) = delete; 29761: BlockCacheTraceWriterImpl& operator=(BlockCacheTraceWriterImpl&&) = delete; 29761: 29761: 29761: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29761: const Slice& block_key, const Slice& cf_name, 29761: const Slice& referenced_key) override; 29761: 29761: 29761: 29761: Status WriteHeader() override; 29761: 29761: private: 29761: SystemClock* clock_; 29761: BlockCacheTraceWriterOptions trace_options_; 29761: std::unique_ptr trace_writer_; 29761: }; 29761: 29761: 29761: 29761: 29761: class BlockCacheHumanReadableTraceWriter { 29761: public: 29761: ~BlockCacheHumanReadableTraceWriter(); 29761: 29761: Status NewWritableFile(const std::string& human_readable_trace_file_path, 29761: rocksdb::Env* env); 29761: 29761: Status WriteHumanReadableTraceRecord(const BlockCacheTraceRecord& access, 29761: uint64_t block_id, uint64_t get_key_id); 29761: 29761: private: 29761: char trace_record_buffer_[1024 * 1024]; 29761: std::unique_ptr 29761: human_readable_trace_file_writer_; 29761: }; 29761: 29761: 29761: 29761: class BlockCacheTraceReader { 29761: public: 29761: BlockCacheTraceReader(std::unique_ptr&& reader); 29761: virtual ~BlockCacheTraceReader() = default; 29761: 29761: BlockCacheTraceReader(const BlockCacheTraceReader&) = delete; 29761: BlockCacheTraceReader& operator=(const BlockCacheTraceReader&) = delete; 29761: BlockCacheTraceReader(BlockCacheTraceReader&&) = delete; 29761: BlockCacheTraceReader& operator=(BlockCacheTraceReader&&) = delete; 29761: 29761: Status ReadHeader(BlockCacheTraceHeader* header); 29761: 29761: Status ReadAccess(BlockCacheTraceRecord* record); 29761: 29761: private: 29761: std::unique_ptr trace_reader_; 29761: }; 29761: 29761: 29761: 29761: 29761: class BlockCacheHumanReadableTraceReader : public BlockCacheTraceReader { 29761: public: 29761: BlockCacheHumanReadableTraceReader(const std::string& trace_file_path); 29761: 29761: ~BlockCacheHumanReadableTraceReader(); 29761: 29761: Status ReadHeader(BlockCacheTraceHeader* header); 29761: 29761: Status ReadAccess(BlockCacheTraceRecord* record); 29761: 29761: private: 29761: std::ifstream human_readable_trace_reader_; 29761: }; 29761: 29761: 29761: 29761: 29761: class BlockCacheTracer { 29761: public: 29761: BlockCacheTracer(); 29761: ~BlockCacheTracer(); 29761: 29761: BlockCacheTracer(const BlockCacheTracer&) = delete; 29761: BlockCacheTracer& operator=(const BlockCacheTracer&) = delete; 29761: BlockCacheTracer(BlockCacheTracer&&) = delete; 29761: BlockCacheTracer& operator=(BlockCacheTracer&&) = delete; 29761: 29761: 29761: Status StartTrace(const BlockCacheTraceOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: 29761: 29761: void EndTrace(); 29761: 29761: bool is_tracing_enabled() const { 29761: return writer_.load(std::memory_order_relaxed); 29761: } 29761: 29761: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29761: const Slice& block_key, const Slice& cf_name, 29761: const Slice& referenced_key); 29761: 29761: 29761: uint64_t NextGetId(); 29761: 29761: private: 29761: BlockCacheTraceOptions trace_options_; 29761: 29761: InstrumentedMutex trace_writer_mutex_; 29761: std::atomic writer_; 29761: std::atomic get_id_counter_; 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class Status; 29761: 29761: struct TableReaderOptions { 29761: 29761: TableReaderOptions( 29761: const ImmutableOptions& _ioptions, 29761: const std::shared_ptr& _prefix_extractor, 29761: const EnvOptions& _env_options, 29761: const InternalKeyComparator& _internal_comparator, 29761: uint8_t _block_protection_bytes_per_key, bool _skip_filters = false, 29761: bool _immortal = false, bool _force_direct_prefetch = false, 29761: int _level = -1, BlockCacheTracer* const _block_cache_tracer = nullptr, 29761: size_t _max_file_size_for_l0_meta_pin = 0, 29761: const std::string& _cur_db_session_id = "", uint64_t _cur_file_num = 0, 29761: UniqueId64x2 _unique_id = {}, SequenceNumber _largest_seqno = 0, 29761: uint64_t _tail_size = 0, bool _user_defined_timestamps_persisted = true) 29761: : ioptions(_ioptions), 29761: prefix_extractor(_prefix_extractor), 29761: env_options(_env_options), 29761: internal_comparator(_internal_comparator), 29761: skip_filters(_skip_filters), 29761: immortal(_immortal), 29761: force_direct_prefetch(_force_direct_prefetch), 29761: level(_level), 29761: largest_seqno(_largest_seqno), 29761: block_cache_tracer(_block_cache_tracer), 29761: max_file_size_for_l0_meta_pin(_max_file_size_for_l0_meta_pin), 29761: cur_db_session_id(_cur_db_session_id), 29761: cur_file_num(_cur_file_num), 29761: unique_id(_unique_id), 29761: block_protection_bytes_per_key(_block_protection_bytes_per_key), 29761: tail_size(_tail_size), 29761: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) {} 29761: 29761: const ImmutableOptions& ioptions; 29761: const std::shared_ptr& prefix_extractor; 29761: const EnvOptions& env_options; 29761: const InternalKeyComparator& internal_comparator; 29761: 29761: bool skip_filters; 29761: 29761: bool immortal; 29761: 29761: 29761: 29761: bool force_direct_prefetch; 29761: 29761: 29761: int level; 29761: 29761: SequenceNumber largest_seqno; 29761: BlockCacheTracer* const block_cache_tracer; 29761: 29761: 29761: const size_t max_file_size_for_l0_meta_pin; 29761: 29761: std::string cur_db_session_id; 29761: 29761: uint64_t cur_file_num; 29761: 29761: 29761: UniqueId64x2 unique_id; 29761: 29761: uint8_t block_protection_bytes_per_key; 29761: 29761: uint64_t tail_size; 29761: 29761: 29761: bool user_defined_timestamps_persisted; 29761: }; 29761: 29761: struct TableBuilderOptions : public TablePropertiesCollectorFactory::Context { 29761: TableBuilderOptions( 29761: const ImmutableOptions& _ioptions, const MutableCFOptions& _moptions, 29761: const ReadOptions& _read_options, const WriteOptions& _write_options, 29761: const InternalKeyComparator& _internal_comparator, 29761: const InternalTblPropCollFactories* _internal_tbl_prop_coll_factories, 29761: CompressionType _compression_type, 29761: const CompressionOptions& _compression_opts, uint32_t _column_family_id, 29761: const std::string& _column_family_name, int _level, 29761: const int64_t _newest_key_time, bool _is_bottommost = false, 29761: TableFileCreationReason _reason = TableFileCreationReason::kMisc, 29761: const int64_t _oldest_key_time = 0, 29761: const uint64_t _file_creation_time = 0, const std::string& _db_id = "", 29761: const std::string& _db_session_id = "", 29761: const uint64_t _target_file_size = 0, const uint64_t _cur_file_num = 0, 29761: const SequenceNumber _last_level_inclusive_max_seqno_threshold = 29761: kMaxSequenceNumber) 29761: : TablePropertiesCollectorFactory::Context( 29761: _column_family_id, _level, _ioptions.num_levels, 29761: _last_level_inclusive_max_seqno_threshold), 29761: ioptions(_ioptions), 29761: moptions(_moptions), 29761: read_options(_read_options), 29761: write_options(_write_options), 29761: internal_comparator(_internal_comparator), 29761: internal_tbl_prop_coll_factories(_internal_tbl_prop_coll_factories), 29761: compression_type(_compression_type), 29761: compression_opts(_compression_opts), 29761: column_family_name(_column_family_name), 29761: oldest_key_time(_oldest_key_time), 29761: newest_key_time(_newest_key_time), 29761: target_file_size(_target_file_size), 29761: file_creation_time(_file_creation_time), 29761: db_id(_db_id), 29761: db_session_id(_db_session_id), 29761: is_bottommost(_is_bottommost), 29761: reason(_reason), 29761: cur_file_num(_cur_file_num) {} 29761: 29761: const ImmutableOptions& ioptions; 29761: const MutableCFOptions& moptions; 29761: const ReadOptions& read_options; 29761: const WriteOptions& write_options; 29761: const InternalKeyComparator& internal_comparator; 29761: const InternalTblPropCollFactories* internal_tbl_prop_coll_factories; 29761: const CompressionType compression_type; 29761: const CompressionOptions& compression_opts; 29761: const std::string& column_family_name; 29761: const int64_t oldest_key_time; 29761: const int64_t newest_key_time; 29761: const uint64_t target_file_size; 29761: const uint64_t file_creation_time; 29761: const std::string db_id; 29761: const std::string db_session_id; 29761: 29761: const bool is_bottommost; 29761: const TableFileCreationReason reason; 29761: 29761: 29761: 29761: 29761: 29761: bool skip_filters = false; 29761: const uint64_t cur_file_num; 29761: }; 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29761: class TableBuilder { 29761: public: 29761: 29761: virtual ~TableBuilder() {} 29761: 29761: 29761: 29761: 29761: virtual void Add(const Slice& key, const Slice& value) = 0; 29761: 29761: 29761: virtual Status status() const = 0; 29761: 29761: 29761: virtual IOStatus io_status() const = 0; 29761: 29761: 29761: 29761: virtual Status Finish() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void Abandon() = 0; 29761: 29761: 29761: virtual uint64_t NumEntries() const = 0; 29761: 29761: 29761: 29761: virtual bool IsEmpty() const { 29761: return NumEntries() == 0 && GetTableProperties().num_range_deletions == 0; 29761: } 29761: 29761: 29761: 29761: virtual uint64_t FileSize() const = 0; 29761: 29761: 29761: 29761: 29761: virtual uint64_t EstimatedFileSize() const { return FileSize(); } 29761: 29761: virtual uint64_t GetTailSize() const { return 0; } 29761: 29761: 29761: 29761: virtual bool NeedCompact() const { return false; } 29761: 29761: 29761: virtual TableProperties GetTableProperties() const = 0; 29761: 29761: 29761: virtual std::string GetFileChecksum() const = 0; 29761: 29761: 29761: virtual const char* GetFileChecksumFuncName() const = 0; 29761: 29761: 29761: 29761: virtual void SetSeqnoTimeTableProperties( 29761: const SeqnoToTimeMapping& , 29761: uint64_t ){} 29761: }; 29761: 29761: } 29761: # 26 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: namespace rocksdb { 29761: # 41 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: template > 29761: class BinaryHeap { 29761: public: 29761: BinaryHeap() {} 29761: explicit BinaryHeap(Compare cmp) : cmp_(std::move(cmp)) {} 29761: 29761: void push(const T& value) { 29761: data_.push_back(value); 29761: upheap(data_.size() - 1); 29761: } 29761: 29761: void push(T&& value) { 29761: data_.push_back(std::move(value)); 29761: upheap(data_.size() - 1); 29761: } 29761: 29761: const T& top() const { 29761: 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: (static_cast ( 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: !empty() 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: "!empty()" 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: ; 29761: return data_.front(); 29761: } 29761: 29761: void replace_top(const T& value) { 29761: 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: (static_cast ( 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: !empty() 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: "!empty()" 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: ; 29761: data_.front() = value; 29761: downheap(get_root()); 29761: } 29761: 29761: void replace_top(T&& value) { 29761: 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: (static_cast ( 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: !empty() 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: "!empty()" 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: ; 29761: data_.front() = std::move(value); 29761: downheap(get_root()); 29761: } 29761: 29761: void pop() { 29761: 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: (static_cast ( 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: !empty() 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: "!empty()" 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: ; 29761: if (data_.size() > 1) { 29761: 29761: 29761: 29761: data_.front() = std::move(data_.back()); 29761: } 29761: data_.pop_back(); 29761: if (!empty()) { 29761: downheap(get_root()); 29761: } else { 29761: reset_root_cmp_cache(); 29761: } 29761: } 29761: 29761: void swap(BinaryHeap& other) { 29761: std::swap(cmp_, other.cmp_); 29761: data_.swap(other.data_); 29761: std::swap(root_cmp_cache_, other.root_cmp_cache_); 29761: } 29761: 29761: void clear() { 29761: data_.clear(); 29761: reset_root_cmp_cache(); 29761: } 29761: 29761: bool empty() const { return data_.empty(); } 29761: 29761: size_t size() const { return data_.size(); } 29761: 29761: void reset_root_cmp_cache() { 29761: root_cmp_cache_ = std::numeric_limits::max(); 29761: } 29761: 29761: private: 29761: static inline size_t get_root() { return 0; } 29761: static inline size_t get_parent(size_t index) { return (index - 1) / 2; } 29761: static inline size_t get_left(size_t index) { return 2 * index + 1; } 29761: static inline size_t get_right(size_t index) { return 2 * index + 2; } 29761: 29761: void upheap(size_t index) { 29761: T v = std::move(data_[index]); 29761: while (index > get_root()) { 29761: const size_t parent = get_parent(index); 29761: if (!cmp_(data_[parent], v)) { 29761: break; 29761: } 29761: data_[index] = std::move(data_[parent]); 29761: index = parent; 29761: } 29761: data_[index] = std::move(v); 29761: reset_root_cmp_cache(); 29761: } 29761: 29761: void downheap(size_t index) { 29761: T v = std::move(data_[index]); 29761: 29761: size_t picked_child = std::numeric_limits::max(); 29761: while (1) { 29761: const size_t left_child = get_left(index); 29761: if (get_left(index) >= data_.size()) { 29761: break; 29761: } 29761: const size_t right_child = left_child + 1; 29761: 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: (static_cast ( 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: right_child == get_right(index) 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: "right_child == get_right(index)" 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: ; 29761: picked_child = left_child; 29761: if (index == 0 && root_cmp_cache_ < data_.size()) { 29761: picked_child = root_cmp_cache_; 29761: } else if (right_child < data_.size() && 29761: cmp_(data_[left_child], data_[right_child])) { 29761: picked_child = right_child; 29761: } 29761: if (!cmp_(v, data_[picked_child])) { 29761: break; 29761: } 29761: data_[index] = std::move(data_[picked_child]); 29761: index = picked_child; 29761: } 29761: 29761: if (index == 0) { 29761: 29761: 29761: 29761: 29761: root_cmp_cache_ = picked_child; 29761: } else { 29761: 29761: reset_root_cmp_cache(); 29761: } 29761: 29761: data_[index] = std::move(v); 29761: } 29761: 29761: Compare cmp_; 29761: autovector data_; 29761: 29761: size_t root_cmp_cache_ = std::numeric_limits::max(); 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/kv_map.h" 1 29761: 29761: 29761: 29761: 29761: 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/util/kv_map.h" 29761: namespace rocksdb { 29761: namespace stl_wrappers { 29761: 29761: struct LessOfComparator { 29761: explicit LessOfComparator(const Comparator* c = BytewiseComparator()) 29761: : cmp(c) {} 29761: 29761: bool operator()(const std::string& a, const std::string& b) const { 29761: return cmp->Compare(Slice(a), Slice(b)) < 0; 29761: } 29761: bool operator()(const Slice& a, const Slice& b) const { 29761: return cmp->Compare(a, b) < 0; 29761: } 29761: 29761: const Comparator* cmp; 29761: }; 29761: 29761: using KVMap = std::map; 29761: } 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class TruncatedRangeDelIterator { 29761: public: 29761: TruncatedRangeDelIterator( 29761: std::unique_ptr iter, 29761: const InternalKeyComparator* icmp, const InternalKey* smallest, 29761: const InternalKey* largest); 29761: 29761: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 29761: iter_->SetRangeDelReadSeqno(read_seqno); 29761: } 29761: 29761: bool Valid() const; 29761: 29761: void Next() { iter_->TopNext(); } 29761: void Prev() { iter_->TopPrev(); } 29761: 29761: void InternalNext() { iter_->Next(); } 29761: 29761: 29761: 29761: 29761: 29761: void Seek(const Slice& target); 29761: 29761: 29761: void SeekInternalKey(const Slice& target); 29761: 29761: 29761: 29761: 29761: void SeekForPrev(const Slice& target); 29761: 29761: void SeekToFirst(); 29761: void SeekToLast(); 29761: 29761: ParsedInternalKey start_key() const { 29761: return (smallest_ == nullptr || 29761: icmp_->Compare(*smallest_, iter_->parsed_start_key()) <= 0) 29761: ? iter_->parsed_start_key() 29761: : *smallest_; 29761: } 29761: 29761: ParsedInternalKey end_key() const { 29761: return (largest_ == nullptr || 29761: icmp_->Compare(iter_->parsed_end_key(), *largest_) <= 0) 29761: ? iter_->parsed_end_key() 29761: : *largest_; 29761: } 29761: 29761: SequenceNumber seq() const { return iter_->seq(); } 29761: Slice timestamp() const { 29761: 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: (static_cast ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: icmp_->user_comparator()->timestamp_size() 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: "icmp_->user_comparator()->timestamp_size()" 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: ; 29761: return iter_->timestamp(); 29761: } 29761: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 29761: iter_->SetTimestampUpperBound(ts_upper_bound); 29761: } 29761: 29761: std::map> 29761: SplitBySnapshot(const std::vector& snapshots); 29761: 29761: SequenceNumber upper_bound() const { return iter_->upper_bound(); } 29761: 29761: SequenceNumber lower_bound() const { return iter_->lower_bound(); } 29761: 29761: private: 29761: std::unique_ptr iter_; 29761: const InternalKeyComparator* icmp_; 29761: const ParsedInternalKey* smallest_ = nullptr; 29761: const ParsedInternalKey* largest_ = nullptr; 29761: std::list pinned_bounds_; 29761: 29761: const InternalKey* smallest_ikey_; 29761: const InternalKey* largest_ikey_; 29761: }; 29761: 29761: struct SeqMaxComparator { 29761: bool operator()(const TruncatedRangeDelIterator* a, 29761: const TruncatedRangeDelIterator* b) const { 29761: return a->seq() > b->seq(); 29761: } 29761: }; 29761: 29761: struct StartKeyMinComparator { 29761: explicit StartKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 29761: 29761: bool operator()(const TruncatedRangeDelIterator* a, 29761: const TruncatedRangeDelIterator* b) const { 29761: return icmp->Compare(a->start_key(), b->start_key()) > 0; 29761: } 29761: 29761: const InternalKeyComparator* icmp; 29761: }; 29761: 29761: class ForwardRangeDelIterator { 29761: public: 29761: explicit ForwardRangeDelIterator(const InternalKeyComparator* icmp); 29761: 29761: bool ShouldDelete(const ParsedInternalKey& parsed); 29761: void Invalidate(); 29761: 29761: void AddNewIter(TruncatedRangeDelIterator* iter, 29761: const ParsedInternalKey& parsed) { 29761: iter->Seek(parsed.user_key); 29761: PushIter(iter, parsed); 29761: 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: (static_cast ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: active_iters_.size() == active_seqnums_.size() 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: "active_iters_.size() == active_seqnums_.size()" 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: ; 29761: } 29761: 29761: size_t UnusedIdx() const { return unused_idx_; } 29761: void IncUnusedIdx() { unused_idx_++; } 29761: 29761: private: 29761: using ActiveSeqSet = 29761: std::multiset; 29761: 29761: struct EndKeyMinComparator { 29761: explicit EndKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 29761: 29761: bool operator()(const ActiveSeqSet::const_iterator& a, 29761: const ActiveSeqSet::const_iterator& b) const { 29761: return icmp->Compare((*a)->end_key(), (*b)->end_key()) > 0; 29761: } 29761: 29761: const InternalKeyComparator* icmp; 29761: }; 29761: 29761: void PushIter(TruncatedRangeDelIterator* iter, 29761: const ParsedInternalKey& parsed) { 29761: if (!iter->Valid()) { 29761: 29761: 29761: return; 29761: } 29761: int cmp = icmp_->Compare(parsed, iter->start_key()); 29761: if (cmp < 0) { 29761: PushInactiveIter(iter); 29761: } else { 29761: PushActiveIter(iter); 29761: } 29761: } 29761: 29761: void PushActiveIter(TruncatedRangeDelIterator* iter) { 29761: auto seq_pos = active_seqnums_.insert(iter); 29761: active_iters_.push(seq_pos); 29761: } 29761: 29761: TruncatedRangeDelIterator* PopActiveIter() { 29761: auto active_top = active_iters_.top(); 29761: auto iter = *active_top; 29761: active_iters_.pop(); 29761: active_seqnums_.erase(active_top); 29761: return iter; 29761: } 29761: 29761: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 29761: inactive_iters_.push(iter); 29761: } 29761: 29761: TruncatedRangeDelIterator* PopInactiveIter() { 29761: auto* iter = inactive_iters_.top(); 29761: inactive_iters_.pop(); 29761: return iter; 29761: } 29761: 29761: const InternalKeyComparator* icmp_; 29761: size_t unused_idx_; 29761: ActiveSeqSet active_seqnums_; 29761: BinaryHeap active_iters_; 29761: BinaryHeap inactive_iters_; 29761: }; 29761: 29761: class ReverseRangeDelIterator { 29761: public: 29761: explicit ReverseRangeDelIterator(const InternalKeyComparator* icmp); 29761: 29761: bool ShouldDelete(const ParsedInternalKey& parsed); 29761: void Invalidate(); 29761: 29761: void AddNewIter(TruncatedRangeDelIterator* iter, 29761: const ParsedInternalKey& parsed) { 29761: iter->SeekForPrev(parsed.user_key); 29761: PushIter(iter, parsed); 29761: 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: (static_cast ( 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: active_iters_.size() == active_seqnums_.size() 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: "active_iters_.size() == active_seqnums_.size()" 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: ; 29761: } 29761: 29761: size_t UnusedIdx() const { return unused_idx_; } 29761: void IncUnusedIdx() { unused_idx_++; } 29761: 29761: private: 29761: using ActiveSeqSet = 29761: std::multiset; 29761: 29761: struct EndKeyMaxComparator { 29761: explicit EndKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 29761: 29761: bool operator()(const TruncatedRangeDelIterator* a, 29761: const TruncatedRangeDelIterator* b) const { 29761: return icmp->Compare(a->end_key(), b->end_key()) < 0; 29761: } 29761: 29761: const InternalKeyComparator* icmp; 29761: }; 29761: struct StartKeyMaxComparator { 29761: explicit StartKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 29761: 29761: bool operator()(const ActiveSeqSet::const_iterator& a, 29761: const ActiveSeqSet::const_iterator& b) const { 29761: return icmp->Compare((*a)->start_key(), (*b)->start_key()) < 0; 29761: } 29761: 29761: const InternalKeyComparator* icmp; 29761: }; 29761: 29761: void PushIter(TruncatedRangeDelIterator* iter, 29761: const ParsedInternalKey& parsed) { 29761: if (!iter->Valid()) { 29761: 29761: 29761: } else if (icmp_->Compare(iter->end_key(), parsed) <= 0) { 29761: PushInactiveIter(iter); 29761: } else { 29761: PushActiveIter(iter); 29761: } 29761: } 29761: 29761: void PushActiveIter(TruncatedRangeDelIterator* iter) { 29761: auto seq_pos = active_seqnums_.insert(iter); 29761: active_iters_.push(seq_pos); 29761: } 29761: 29761: TruncatedRangeDelIterator* PopActiveIter() { 29761: auto active_top = active_iters_.top(); 29761: auto iter = *active_top; 29761: active_iters_.pop(); 29761: active_seqnums_.erase(active_top); 29761: return iter; 29761: } 29761: 29761: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 29761: inactive_iters_.push(iter); 29761: } 29761: 29761: TruncatedRangeDelIterator* PopInactiveIter() { 29761: auto* iter = inactive_iters_.top(); 29761: inactive_iters_.pop(); 29761: return iter; 29761: } 29761: 29761: const InternalKeyComparator* icmp_; 29761: size_t unused_idx_; 29761: ActiveSeqSet active_seqnums_; 29761: BinaryHeap active_iters_; 29761: BinaryHeap inactive_iters_; 29761: }; 29761: 29761: enum class RangeDelPositioningMode { kForwardTraversal, kBackwardTraversal }; 29761: class RangeDelAggregator { 29761: public: 29761: explicit RangeDelAggregator(const InternalKeyComparator* icmp) 29761: : icmp_(icmp) {} 29761: virtual ~RangeDelAggregator() {} 29761: 29761: virtual void AddTombstones( 29761: std::unique_ptr input_iter, 29761: const InternalKey* smallest = nullptr, 29761: const InternalKey* largest = nullptr) = 0; 29761: 29761: bool ShouldDelete(const Slice& ikey, RangeDelPositioningMode mode) { 29761: ParsedInternalKey parsed; 29761: 29761: Status pik_status = 29761: ParseInternalKey(ikey, &parsed, false ); 29761: 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: (static_cast ( 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: pik_status.ok() 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: "pik_status.ok()" 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: ; 29761: if (!pik_status.ok()) { 29761: return false; 29761: } 29761: 29761: return ShouldDelete(parsed, mode); 29761: } 29761: virtual bool ShouldDelete(const ParsedInternalKey& parsed, 29761: RangeDelPositioningMode mode) = 0; 29761: 29761: virtual void InvalidateRangeDelMapPositions() = 0; 29761: 29761: virtual bool IsEmpty() const = 0; 29761: 29761: bool AddFile(uint64_t file_number) { 29761: return files_seen_.insert(file_number).second; 29761: } 29761: 29761: protected: 29761: class StripeRep { 29761: public: 29761: StripeRep(const InternalKeyComparator* icmp, SequenceNumber upper_bound, 29761: SequenceNumber lower_bound) 29761: : icmp_(icmp), 29761: forward_iter_(icmp), 29761: reverse_iter_(icmp), 29761: upper_bound_(upper_bound), 29761: lower_bound_(lower_bound) {} 29761: 29761: void AddTombstones(std::unique_ptr input_iter) { 29761: iters_.push_back(std::move(input_iter)); 29761: } 29761: 29761: bool IsEmpty() const { return iters_.empty(); } 29761: 29761: bool ShouldDelete(const ParsedInternalKey& parsed, 29761: RangeDelPositioningMode mode); 29761: 29761: void Invalidate() { 29761: if (!IsEmpty()) { 29761: InvalidateForwardIter(); 29761: InvalidateReverseIter(); 29761: } 29761: } 29761: 29761: 29761: 29761: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29761: 29761: private: 29761: bool InStripe(SequenceNumber seq) const { 29761: return lower_bound_ <= seq && seq <= upper_bound_; 29761: } 29761: 29761: void InvalidateForwardIter() { forward_iter_.Invalidate(); } 29761: 29761: void InvalidateReverseIter() { reverse_iter_.Invalidate(); } 29761: 29761: const InternalKeyComparator* icmp_; 29761: std::vector> iters_; 29761: ForwardRangeDelIterator forward_iter_; 29761: ReverseRangeDelIterator reverse_iter_; 29761: SequenceNumber upper_bound_; 29761: SequenceNumber lower_bound_; 29761: }; 29761: 29761: const InternalKeyComparator* icmp_; 29761: 29761: private: 29761: std::set files_seen_; 29761: }; 29761: 29761: class ReadRangeDelAggregator final : public RangeDelAggregator { 29761: public: 29761: ReadRangeDelAggregator(const InternalKeyComparator* icmp, 29761: SequenceNumber upper_bound) 29761: : RangeDelAggregator(icmp), 29761: rep_(icmp, upper_bound, 0 ) {} 29761: ~ReadRangeDelAggregator() override {} 29761: 29761: using RangeDelAggregator::ShouldDelete; 29761: void AddTombstones( 29761: std::unique_ptr input_iter, 29761: const InternalKey* smallest = nullptr, 29761: const InternalKey* largest = nullptr) override; 29761: 29761: bool ShouldDelete(const ParsedInternalKey& parsed, 29761: RangeDelPositioningMode mode) final override { 29761: if (rep_.IsEmpty()) { 29761: return false; 29761: } 29761: return ShouldDeleteImpl(parsed, mode); 29761: } 29761: 29761: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29761: 29761: void InvalidateRangeDelMapPositions() override { rep_.Invalidate(); } 29761: 29761: bool IsEmpty() const override { return rep_.IsEmpty(); } 29761: 29761: private: 29761: StripeRep rep_; 29761: 29761: bool ShouldDeleteImpl(const ParsedInternalKey& parsed, 29761: RangeDelPositioningMode mode); 29761: }; 29761: 29761: class CompactionRangeDelAggregator : public RangeDelAggregator { 29761: public: 29761: CompactionRangeDelAggregator(const InternalKeyComparator* icmp, 29761: const std::vector& snapshots, 29761: const std::string* full_history_ts_low = nullptr, 29761: const std::string* trim_ts = nullptr) 29761: : RangeDelAggregator(icmp), snapshots_(&snapshots) { 29761: if (full_history_ts_low) { 29761: ts_upper_bound_ = *full_history_ts_low; 29761: } 29761: if (trim_ts) { 29761: trim_ts_ = *trim_ts; 29761: 29761: 29761: if (ts_upper_bound_.empty()) { 29761: ts_upper_bound_ = trim_ts_; 29761: } else if (!trim_ts_.empty() && icmp->user_comparator()->CompareTimestamp( 29761: trim_ts_, ts_upper_bound_) < 0) { 29761: ts_upper_bound_ = trim_ts_; 29761: } 29761: } 29761: } 29761: ~CompactionRangeDelAggregator() override {} 29761: 29761: void AddTombstones( 29761: std::unique_ptr input_iter, 29761: const InternalKey* smallest = nullptr, 29761: const InternalKey* largest = nullptr) override; 29761: 29761: using RangeDelAggregator::ShouldDelete; 29761: bool ShouldDelete(const ParsedInternalKey& parsed, 29761: RangeDelPositioningMode mode) override; 29761: 29761: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29761: 29761: void InvalidateRangeDelMapPositions() override { 29761: for (auto& rep : reps_) { 29761: rep.second.Invalidate(); 29761: } 29761: } 29761: 29761: bool IsEmpty() const override { 29761: for (const auto& rep : reps_) { 29761: if (!rep.second.IsEmpty()) { 29761: return false; 29761: } 29761: } 29761: return true; 29761: } 29761: # 468 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: std::unique_ptr NewIterator( 29761: const Slice* lower_bound = nullptr, const Slice* upper_bound = nullptr); 29761: 29761: private: 29761: std::vector> parent_iters_; 29761: std::map reps_; 29761: 29761: const std::vector* snapshots_; 29761: 29761: Slice ts_upper_bound_{}; 29761: Slice trim_ts_{}; 29761: }; 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/snapshot_checker.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: enum class SnapshotCheckerResult : int { 29761: kInSnapshot = 0, 29761: kNotInSnapshot = 1, 29761: 29761: 29761: kSnapshotReleased = 2, 29761: }; 29761: 29761: 29761: class SnapshotChecker { 29761: public: 29761: virtual ~SnapshotChecker() {} 29761: virtual SnapshotCheckerResult CheckInSnapshot( 29761: SequenceNumber sequence, SequenceNumber snapshot_sequence) const = 0; 29761: }; 29761: 29761: class DisableGCSnapshotChecker : public SnapshotChecker { 29761: public: 29761: virtual ~DisableGCSnapshotChecker() {} 29761: SnapshotCheckerResult CheckInSnapshot( 29761: SequenceNumber , 29761: SequenceNumber ) const override { 29761: 29761: return SnapshotCheckerResult::kNotInSnapshot; 29761: } 29761: static DisableGCSnapshotChecker* Instance(); 29761: 29761: protected: 29761: explicit DisableGCSnapshotChecker() {} 29761: }; 29761: 29761: class WritePreparedTxnDB; 29761: 29761: 29761: 29761: class WritePreparedSnapshotChecker : public SnapshotChecker { 29761: public: 29761: explicit WritePreparedSnapshotChecker(WritePreparedTxnDB* txn_db); 29761: virtual ~WritePreparedSnapshotChecker() {} 29761: 29761: SnapshotCheckerResult CheckInSnapshot( 29761: SequenceNumber sequence, SequenceNumber snapshot_sequence) const override; 29761: 29761: private: 29761: const WritePreparedTxnDB* const txn_db_; 29761: }; 29761: 29761: bool DataIsDefinitelyInSnapshot(SequenceNumber seqno, SequenceNumber snapshot, 29761: const SnapshotChecker* snapshot_checker); 29761: 29761: bool DataIsDefinitelyNotInSnapshot(SequenceNumber seqno, 29761: SequenceNumber snapshot, 29761: const SnapshotChecker* snapshot_checker); 29761: 29761: } 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 29761: class WideColumnSerialization { 29761: public: 29761: static Status Serialize(const WideColumns& columns, std::string& output); 29761: 29761: static Status Deserialize(Slice& input, WideColumns& columns); 29761: 29761: static Status GetValueOfDefaultColumn(Slice& input, Slice& value); 29761: 29761: static constexpr uint32_t kCurrentVersion = 1; 29761: }; 29761: 29761: } 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 2 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class SliceTransform; 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: class CompactionFilter : public Customizable { 29761: public: 29761: 29761: 29761: enum ValueType { 29761: 29761: kValue, 29761: 29761: kMergeOperand, 29761: 29761: 29761: 29761: 29761: kBlobIndex, 29761: 29761: kWideColumnEntity, 29761: }; 29761: 29761: 29761: 29761: 29761: enum class Decision { 29761: 29761: kKeep, 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: kRemove, 29761: 29761: 29761: 29761: 29761: 29761: kChangeValue, 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: kRemoveAndSkipUntil, 29761: 29761: 29761: 29761: kChangeBlobIndex, 29761: 29761: 29761: 29761: kIOError, 29761: 29761: 29761: 29761: 29761: 29761: kPurge, 29761: 29761: 29761: 29761: 29761: 29761: 29761: kChangeWideColumnEntity, 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: kUndetermined, 29761: }; 29761: 29761: 29761: enum class BlobDecision { kKeep, kChangeValue, kCorruption, kIOError }; 29761: 29761: 29761: struct Context { 29761: 29761: 29761: bool is_full_compaction; 29761: 29761: 29761: bool is_manual_compaction; 29761: 29761: 29761: int input_start_level = kUnknownStartLevel; 29761: 29761: uint32_t column_family_id; 29761: 29761: TableFileCreationReason reason; 29761: 29761: 29761: 29761: 29761: TablePropertiesCollection input_table_properties; 29761: 29761: static const int kUnknownStartLevel = -1; 29761: }; 29761: 29761: virtual ~CompactionFilter() {} 29761: static const char* Type() { return "CompactionFilter"; } 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& name, 29761: const CompactionFilter** result); 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: virtual bool Filter(int , const Slice& , 29761: const Slice& , 29761: std::string* , 29761: bool* ) const { 29761: return false; 29761: } 29761: # 217 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: virtual bool FilterMergeOperand(int , const Slice& , 29761: const Slice& ) const { 29761: return false; 29761: } 29761: # 234 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: virtual Decision FilterV2(int level, const Slice& key, ValueType value_type, 29761: const Slice& existing_value, std::string* new_value, 29761: std::string* ) const { 29761: switch (value_type) { 29761: case ValueType::kValue: { 29761: bool value_changed = false; 29761: bool rv = Filter(level, key, existing_value, new_value, &value_changed); 29761: if (rv) { 29761: return Decision::kRemove; 29761: } 29761: return value_changed ? Decision::kChangeValue : Decision::kKeep; 29761: } 29761: 29761: case ValueType::kMergeOperand: { 29761: bool rv = FilterMergeOperand(level, key, existing_value); 29761: return rv ? Decision::kRemove : Decision::kKeep; 29761: } 29761: 29761: case ValueType::kBlobIndex: 29761: return Decision::kKeep; 29761: 29761: default: 29761: 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: (static_cast ( 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: false 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: "false" 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: ; 29761: return Decision::kKeep; 29761: } 29761: } 29761: # 281 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: virtual Decision FilterV3( 29761: int level, const Slice& key, ValueType value_type, 29761: const Slice* existing_value, const WideColumns* existing_columns, 29761: std::string* new_value, 29761: std::vector>* , 29761: std::string* skip_until) const { 29761: 29761: 29761: 29761: 29761: 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: (static_cast ( 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: !existing_value || !existing_columns 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: "!existing_value || !existing_columns" 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: ; 29761: 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: (static_cast ( 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: value_type == ValueType::kWideColumnEntity || existing_value 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: "value_type == ValueType::kWideColumnEntity || existing_value" 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: ; 29761: 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: (static_cast ( 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: value_type != ValueType::kWideColumnEntity || existing_columns 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: "value_type != ValueType::kWideColumnEntity || existing_columns" 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: ; 29761: 29761: if (value_type == ValueType::kWideColumnEntity) { 29761: return Decision::kKeep; 29761: } 29761: 29761: return FilterV2(level, key, value_type, *existing_value, new_value, 29761: skip_until); 29761: } 29761: 29761: 29761: virtual BlobDecision PrepareBlobOutput(const Slice& , 29761: const Slice& , 29761: std::string* ) const { 29761: return BlobDecision::kKeep; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool IgnoreSnapshots() const { return true; } 29761: 29761: 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: virtual bool IsStackedBlobDbInternalCompactionFilter() const { return false; } 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: virtual Decision FilterBlobByKey(int , const Slice& , 29761: std::string* , 29761: std::string* ) const { 29761: return Decision::kUndetermined; 29761: } 29761: }; 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: class CompactionFilterFactory : public Customizable { 29761: public: 29761: virtual ~CompactionFilterFactory() {} 29761: static const char* Type() { return "CompactionFilterFactory"; } 29761: static Status CreateFromString( 29761: const ConfigOptions& config_options, const std::string& name, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: 29761: virtual bool ShouldFilterTableFileCreation( 29761: TableFileCreationReason reason) const { 29761: 29761: 29761: return reason == TableFileCreationReason::kCompaction; 29761: } 29761: 29761: virtual std::unique_ptr CreateCompactionFilter( 29761: const CompactionFilter::Context& context) = 0; 29761: 29761: 29761: const char* Name() const override = 0; 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/variant" 1 3 29761: # 32 "/usr/include/c++/14/variant" 3 29761: 29761: # 33 "/usr/include/c++/14/variant" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 37 "/usr/include/c++/14/variant" 2 3 29761: # 59 "/usr/include/c++/14/variant" 3 29761: 29761: # 59 "/usr/include/c++/14/variant" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template class tuple; 29761: template class variant; 29761: template struct hash; 29761: 29761: template 29761: struct variant_size; 29761: 29761: template 29761: struct variant_size : variant_size<_Variant> {}; 29761: 29761: template 29761: struct variant_size : variant_size<_Variant> {}; 29761: 29761: template 29761: struct variant_size : variant_size<_Variant> {}; 29761: 29761: template 29761: struct variant_size> 29761: : std::integral_constant {}; 29761: 29761: template 29761: inline constexpr size_t variant_size_v = variant_size<_Variant>::value; 29761: 29761: template 29761: inline constexpr size_t 29761: variant_size_v> = sizeof...(_Types); 29761: 29761: template 29761: inline constexpr size_t 29761: variant_size_v> = sizeof...(_Types); 29761: 29761: template 29761: struct variant_alternative; 29761: 29761: template 29761: struct variant_alternative<_Np, variant<_Types...>> 29761: { 29761: static_assert(_Np < sizeof...(_Types)); 29761: 29761: using type = typename _Nth_type<_Np, _Types...>::type; 29761: }; 29761: 29761: template 29761: using variant_alternative_t = 29761: typename variant_alternative<_Np, _Variant>::type; 29761: 29761: template 29761: struct variant_alternative<_Np, const _Variant> 29761: { using type = const variant_alternative_t<_Np, _Variant>; }; 29761: 29761: template 29761: struct variant_alternative<_Np, volatile _Variant> 29761: { using type = volatile variant_alternative_t<_Np, _Variant>; }; 29761: 29761: template 29761: struct variant_alternative<_Np, const volatile _Variant> 29761: { using type = const volatile variant_alternative_t<_Np, _Variant>; }; 29761: 29761: inline constexpr size_t variant_npos = -1; 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>>& 29761: get(variant<_Types...>&); 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 29761: get(variant<_Types...>&&); 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>> const& 29761: get(const variant<_Types...>&); 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>> const&& 29761: get(const variant<_Types...>&&); 29761: 29761: template 29761: constexpr decltype(auto) 29761: __do_visit(_Visitor&& __visitor, _Variants&&... __variants); 29761: 29761: template 29761: 29761: decltype(auto) 29761: __variant_cast(_Tp&& __rhs) 29761: { 29761: if constexpr (is_lvalue_reference_v<_Tp>) 29761: { 29761: if constexpr (is_const_v>) 29761: return static_cast&>(__rhs); 29761: else 29761: return static_cast&>(__rhs); 29761: } 29761: else 29761: return static_cast&&>(__rhs); 29761: } 29761: 29761: namespace __detail 29761: { 29761: namespace __variant 29761: { 29761: 29761: struct __variant_cookie {}; 29761: 29761: struct __variant_idx_cookie { using type = __variant_idx_cookie; }; 29761: 29761: template struct __deduce_visit_result { using type = _Tp; }; 29761: 29761: 29761: template 29761: constexpr void 29761: __raw_visit(_Visitor&& __visitor, _Variants&&... __variants) 29761: { 29761: std::__do_visit<__variant_cookie>(std::forward<_Visitor>(__visitor), 29761: std::forward<_Variants>(__variants)...); 29761: } 29761: 29761: 29761: template 29761: constexpr void 29761: __raw_idx_visit(_Visitor&& __visitor, _Variants&&... __variants) 29761: { 29761: std::__do_visit<__variant_idx_cookie>(std::forward<_Visitor>(__visitor), 29761: std::forward<_Variants>(__variants)...); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr std::variant<_Types...>& 29761: __as(std::variant<_Types...>& __v) noexcept 29761: { return __v; } 29761: 29761: template 29761: constexpr const std::variant<_Types...>& 29761: __as(const std::variant<_Types...>& __v) noexcept 29761: { return __v; } 29761: 29761: template 29761: constexpr std::variant<_Types...>&& 29761: __as(std::variant<_Types...>&& __v) noexcept 29761: { return std::move(__v); } 29761: 29761: template 29761: constexpr const std::variant<_Types...>&& 29761: __as(const std::variant<_Types...>&& __v) noexcept 29761: { return std::move(__v); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: struct _Uninitialized; 29761: 29761: template 29761: struct _Uninitialized<_Type, true> 29761: { 29761: template 29761: constexpr 29761: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 29761: : _M_storage(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: constexpr const _Type& _M_get() const & noexcept 29761: { return _M_storage; } 29761: 29761: constexpr _Type& _M_get() & noexcept 29761: { return _M_storage; } 29761: 29761: constexpr const _Type&& _M_get() const && noexcept 29761: { return std::move(_M_storage); } 29761: 29761: constexpr _Type&& _M_get() && noexcept 29761: { return std::move(_M_storage); } 29761: 29761: _Type _M_storage; 29761: }; 29761: 29761: template 29761: struct _Uninitialized<_Type, false> 29761: { 29761: # 279 "/usr/include/c++/14/variant" 3 29761: template 29761: constexpr 29761: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 29761: { 29761: ::new ((void*)std::addressof(_M_storage)) 29761: _Type(std::forward<_Args>(__args)...); 29761: } 29761: 29761: const _Type& _M_get() const & noexcept 29761: { return *_M_storage._M_ptr(); } 29761: 29761: _Type& _M_get() & noexcept 29761: { return *_M_storage._M_ptr(); } 29761: 29761: const _Type&& _M_get() const && noexcept 29761: { return std::move(*_M_storage._M_ptr()); } 29761: 29761: _Type&& _M_get() && noexcept 29761: { return std::move(*_M_storage._M_ptr()); } 29761: 29761: __gnu_cxx::__aligned_membuf<_Type> _M_storage; 29761: 29761: }; 29761: 29761: template 29761: constexpr decltype(auto) 29761: __get_n(_Union&& __u) noexcept 29761: { 29761: if constexpr (_Np == 0) 29761: return std::forward<_Union>(__u)._M_first._M_get(); 29761: else if constexpr (_Np == 1) 29761: return std::forward<_Union>(__u)._M_rest._M_first._M_get(); 29761: else if constexpr (_Np == 2) 29761: return std::forward<_Union>(__u)._M_rest._M_rest._M_first._M_get(); 29761: else 29761: return __variant::__get_n<_Np - 3>( 29761: std::forward<_Union>(__u)._M_rest._M_rest._M_rest); 29761: } 29761: 29761: 29761: template 29761: constexpr decltype(auto) 29761: __get(_Variant&& __v) noexcept 29761: { return __variant::__get_n<_Np>(std::forward<_Variant>(__v)._M_u); } 29761: 29761: 29761: template 29761: constexpr decltype(auto) 29761: __construct_n(_Union& __u) noexcept 29761: { 29761: if constexpr (_Np == 0) 29761: return &__u._M_first; 29761: else if constexpr (_Np == 1) 29761: { 29761: std::_Construct(&__u._M_rest); 29761: return &__u._M_rest._M_first; 29761: } 29761: else if constexpr (_Np == 2) 29761: { 29761: std::_Construct(&__u._M_rest); 29761: std::_Construct(&__u._M_rest._M_rest); 29761: return &__u._M_rest._M_rest._M_first; 29761: } 29761: else 29761: { 29761: std::_Construct(&__u._M_rest); 29761: std::_Construct(&__u._M_rest._M_rest); 29761: std::_Construct(&__u._M_rest._M_rest._M_rest); 29761: return __variant::__construct_n<_Np - 3>(__u._M_rest._M_rest._M_rest); 29761: } 29761: } 29761: 29761: template 29761: struct _Traits 29761: { 29761: static constexpr bool _S_default_ctor = 29761: is_default_constructible_v::type>; 29761: static constexpr bool _S_copy_ctor = 29761: (is_copy_constructible_v<_Types> && ...); 29761: static constexpr bool _S_move_ctor = 29761: (is_move_constructible_v<_Types> && ...); 29761: static constexpr bool _S_copy_assign = 29761: _S_copy_ctor 29761: && (is_copy_assignable_v<_Types> && ...); 29761: static constexpr bool _S_move_assign = 29761: _S_move_ctor 29761: && (is_move_assignable_v<_Types> && ...); 29761: 29761: static constexpr bool _S_trivial_dtor = 29761: (is_trivially_destructible_v<_Types> && ...); 29761: static constexpr bool _S_trivial_copy_ctor = 29761: (is_trivially_copy_constructible_v<_Types> && ...); 29761: static constexpr bool _S_trivial_move_ctor = 29761: (is_trivially_move_constructible_v<_Types> && ...); 29761: static constexpr bool _S_trivial_copy_assign = 29761: _S_trivial_dtor && _S_trivial_copy_ctor 29761: && (is_trivially_copy_assignable_v<_Types> && ...); 29761: static constexpr bool _S_trivial_move_assign = 29761: _S_trivial_dtor && _S_trivial_move_ctor 29761: && (is_trivially_move_assignable_v<_Types> && ...); 29761: 29761: 29761: 29761: static constexpr bool _S_nothrow_default_ctor = 29761: is_nothrow_default_constructible_v< 29761: typename _Nth_type<0, _Types...>::type>; 29761: static constexpr bool _S_nothrow_copy_ctor = false; 29761: static constexpr bool _S_nothrow_move_ctor = 29761: (is_nothrow_move_constructible_v<_Types> && ...); 29761: static constexpr bool _S_nothrow_copy_assign = false; 29761: static constexpr bool _S_nothrow_move_assign = 29761: _S_nothrow_move_ctor 29761: && (is_nothrow_move_assignable_v<_Types> && ...); 29761: }; 29761: 29761: 29761: template 29761: union _Variadic_union 29761: { 29761: _Variadic_union() = default; 29761: 29761: template 29761: _Variadic_union(in_place_index_t<_Np>, _Args&&...) = delete; 29761: }; 29761: 29761: template 29761: union _Variadic_union<__trivially_destructible, _First, _Rest...> 29761: { 29761: constexpr _Variadic_union() : _M_rest() { } 29761: 29761: template 29761: constexpr 29761: _Variadic_union(in_place_index_t<0>, _Args&&... __args) 29761: : _M_first(in_place_index<0>, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Variadic_union(in_place_index_t<_Np>, _Args&&... __args) 29761: : _M_rest(in_place_index<_Np-1>, std::forward<_Args>(__args)...) 29761: { } 29761: # 434 "/usr/include/c++/14/variant" 3 29761: _Uninitialized<_First> _M_first; 29761: _Variadic_union<__trivially_destructible, _Rest...> _M_rest; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt 29761: : __and_, is_trivially_copyable<_Tp>> 29761: { }; 29761: # 458 "/usr/include/c++/14/variant" 3 29761: template 29761: constexpr bool __never_valueless() 29761: { 29761: return _Traits<_Types...>::_S_move_assign 29761: && (_Never_valueless_alt<_Types>::value && ...); 29761: } 29761: 29761: 29761: template 29761: struct _Variant_storage; 29761: 29761: template 29761: using __select_index = 29761: typename __select_int::_Select_int_base::type::value_type; 29761: 29761: template 29761: struct _Variant_storage 29761: { 29761: constexpr 29761: _Variant_storage() 29761: : _M_index(static_cast<__index_type>(variant_npos)) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 29761: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 29761: _M_index{_Np} 29761: { } 29761: 29761: constexpr void 29761: _M_reset() 29761: { 29761: if (!_M_valid()) [[__unlikely__]] 29761: return; 29761: 29761: std::__do_visit([](auto&& __this_mem) mutable 29761: { 29761: std::_Destroy(std::__addressof(__this_mem)); 29761: }, __variant_cast<_Types...>(*this)); 29761: 29761: _M_index = static_cast<__index_type>(variant_npos); 29761: } 29761: 29761: 29761: ~_Variant_storage() 29761: { _M_reset(); } 29761: 29761: constexpr bool 29761: _M_valid() const noexcept 29761: { 29761: if constexpr (__variant::__never_valueless<_Types...>()) 29761: return true; 29761: return this->_M_index != __index_type(variant_npos); 29761: } 29761: 29761: _Variadic_union _M_u; 29761: using __index_type = __select_index<_Types...>; 29761: __index_type _M_index; 29761: }; 29761: 29761: template 29761: struct _Variant_storage 29761: { 29761: constexpr 29761: _Variant_storage() 29761: : _M_index(static_cast<__index_type>(variant_npos)) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 29761: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 29761: _M_index{_Np} 29761: { } 29761: 29761: constexpr void 29761: _M_reset() noexcept 29761: { _M_index = static_cast<__index_type>(variant_npos); } 29761: 29761: constexpr bool 29761: _M_valid() const noexcept 29761: { 29761: if constexpr (__variant::__never_valueless<_Types...>()) 29761: return true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: return this->_M_index != static_cast<__index_type>(variant_npos); 29761: } 29761: 29761: _Variadic_union _M_u; 29761: using __index_type = __select_index<_Types...>; 29761: __index_type _M_index; 29761: }; 29761: 29761: 29761: template 29761: 29761: inline void 29761: __emplace(_Variant_storage<_Triv, _Types...>& __v, _Args&&... __args) 29761: { 29761: __v._M_reset(); 29761: auto* __addr = __variant::__construct_n<_Np>(__v._M_u); 29761: std::_Construct(__addr, in_place_index<0>, 29761: std::forward<_Args>(__args)...); 29761: 29761: __v._M_index = _Np; 29761: } 29761: 29761: template 29761: using _Variant_storage_alias = 29761: _Variant_storage<_Traits<_Types...>::_S_trivial_dtor, _Types...>; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 29761: { 29761: using _Base = _Variant_storage_alias<_Types...>; 29761: using _Base::_Base; 29761: 29761: 29761: _Copy_ctor_base(const _Copy_ctor_base& __rhs) 29761: noexcept(_Traits<_Types...>::_S_nothrow_copy_ctor) 29761: { 29761: __variant::__raw_idx_visit( 29761: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29761: { 29761: constexpr size_t __j = __rhs_index; 29761: if constexpr (__j != variant_npos) 29761: std::_Construct(std::__addressof(this->_M_u), 29761: in_place_index<__j>, __rhs_mem); 29761: }, __variant_cast<_Types...>(__rhs)); 29761: this->_M_index = __rhs._M_index; 29761: } 29761: 29761: _Copy_ctor_base(_Copy_ctor_base&&) = default; 29761: _Copy_ctor_base& operator=(const _Copy_ctor_base&) = default; 29761: _Copy_ctor_base& operator=(_Copy_ctor_base&&) = default; 29761: }; 29761: 29761: template 29761: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 29761: { 29761: using _Base = _Variant_storage_alias<_Types...>; 29761: using _Base::_Base; 29761: }; 29761: 29761: template 29761: using _Copy_ctor_alias = 29761: _Copy_ctor_base<_Traits<_Types...>::_S_trivial_copy_ctor, _Types...>; 29761: 29761: template 29761: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 29761: { 29761: using _Base = _Copy_ctor_alias<_Types...>; 29761: using _Base::_Base; 29761: 29761: 29761: _Move_ctor_base(_Move_ctor_base&& __rhs) 29761: noexcept(_Traits<_Types...>::_S_nothrow_move_ctor) 29761: { 29761: __variant::__raw_idx_visit( 29761: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29761: { 29761: constexpr size_t __j = __rhs_index; 29761: if constexpr (__j != variant_npos) 29761: std::_Construct(std::__addressof(this->_M_u), 29761: in_place_index<__j>, 29761: std::forward(__rhs_mem)); 29761: }, __variant_cast<_Types...>(std::move(__rhs))); 29761: this->_M_index = __rhs._M_index; 29761: } 29761: 29761: _Move_ctor_base(const _Move_ctor_base&) = default; 29761: _Move_ctor_base& operator=(const _Move_ctor_base&) = default; 29761: _Move_ctor_base& operator=(_Move_ctor_base&&) = default; 29761: }; 29761: 29761: template 29761: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 29761: { 29761: using _Base = _Copy_ctor_alias<_Types...>; 29761: using _Base::_Base; 29761: }; 29761: 29761: template 29761: using _Move_ctor_alias = 29761: _Move_ctor_base<_Traits<_Types...>::_S_trivial_move_ctor, _Types...>; 29761: 29761: template 29761: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 29761: { 29761: using _Base = _Move_ctor_alias<_Types...>; 29761: using _Base::_Base; 29761: 29761: 29761: _Copy_assign_base& 29761: operator=(const _Copy_assign_base& __rhs) 29761: noexcept(_Traits<_Types...>::_S_nothrow_copy_assign) 29761: { 29761: __variant::__raw_idx_visit( 29761: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29761: { 29761: constexpr size_t __j = __rhs_index; 29761: if constexpr (__j == variant_npos) 29761: this->_M_reset(); 29761: else if (this->_M_index == __j) 29761: __variant::__get<__j>(*this) = __rhs_mem; 29761: else 29761: { 29761: using _Tj = typename _Nth_type<__j, _Types...>::type; 29761: if constexpr (is_nothrow_copy_constructible_v<_Tj> 29761: || !is_nothrow_move_constructible_v<_Tj>) 29761: __variant::__emplace<__j>(*this, __rhs_mem); 29761: else 29761: { 29761: using _Variant = variant<_Types...>; 29761: _Variant& __self = __variant_cast<_Types...>(*this); 29761: __self = _Variant(in_place_index<__j>, __rhs_mem); 29761: } 29761: } 29761: }, __variant_cast<_Types...>(__rhs)); 29761: return *this; 29761: } 29761: 29761: _Copy_assign_base(const _Copy_assign_base&) = default; 29761: _Copy_assign_base(_Copy_assign_base&&) = default; 29761: _Copy_assign_base& operator=(_Copy_assign_base&&) = default; 29761: }; 29761: 29761: template 29761: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 29761: { 29761: using _Base = _Move_ctor_alias<_Types...>; 29761: using _Base::_Base; 29761: }; 29761: 29761: template 29761: using _Copy_assign_alias = 29761: _Copy_assign_base<_Traits<_Types...>::_S_trivial_copy_assign, _Types...>; 29761: 29761: template 29761: struct _Move_assign_base : _Copy_assign_alias<_Types...> 29761: { 29761: using _Base = _Copy_assign_alias<_Types...>; 29761: using _Base::_Base; 29761: 29761: 29761: _Move_assign_base& 29761: operator=(_Move_assign_base&& __rhs) 29761: noexcept(_Traits<_Types...>::_S_nothrow_move_assign) 29761: { 29761: __variant::__raw_idx_visit( 29761: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29761: { 29761: constexpr size_t __j = __rhs_index; 29761: if constexpr (__j != variant_npos) 29761: { 29761: if (this->_M_index == __j) 29761: __variant::__get<__j>(*this) = std::move(__rhs_mem); 29761: else 29761: { 29761: using _Tj = typename _Nth_type<__j, _Types...>::type; 29761: if constexpr (is_nothrow_move_constructible_v<_Tj>) 29761: __variant::__emplace<__j>(*this, std::move(__rhs_mem)); 29761: else 29761: { 29761: using _Variant = variant<_Types...>; 29761: _Variant& __self = __variant_cast<_Types...>(*this); 29761: __self.template emplace<__j>(std::move(__rhs_mem)); 29761: } 29761: } 29761: } 29761: else 29761: this->_M_reset(); 29761: }, __variant_cast<_Types...>(__rhs)); 29761: return *this; 29761: } 29761: 29761: _Move_assign_base(const _Move_assign_base&) = default; 29761: _Move_assign_base(_Move_assign_base&&) = default; 29761: _Move_assign_base& operator=(const _Move_assign_base&) = default; 29761: }; 29761: 29761: template 29761: struct _Move_assign_base : _Copy_assign_alias<_Types...> 29761: { 29761: using _Base = _Copy_assign_alias<_Types...>; 29761: using _Base::_Base; 29761: }; 29761: 29761: template 29761: using _Move_assign_alias = 29761: _Move_assign_base<_Traits<_Types...>::_S_trivial_move_assign, _Types...>; 29761: 29761: template 29761: struct _Variant_base : _Move_assign_alias<_Types...> 29761: { 29761: using _Base = _Move_assign_alias<_Types...>; 29761: 29761: constexpr 29761: _Variant_base() noexcept(_Traits<_Types...>::_S_nothrow_default_ctor) 29761: : _Variant_base(in_place_index<0>) { } 29761: 29761: template 29761: constexpr explicit 29761: _Variant_base(in_place_index_t<_Np> __i, _Args&&... __args) 29761: : _Base(__i, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: _Variant_base(const _Variant_base&) = default; 29761: _Variant_base(_Variant_base&&) = default; 29761: _Variant_base& operator=(const _Variant_base&) = default; 29761: _Variant_base& operator=(_Variant_base&&) = default; 29761: }; 29761: 29761: template 29761: inline constexpr bool __exactly_once 29761: = std::__find_uniq_type_in_pack<_Tp, _Types...>() < sizeof...(_Types); 29761: 29761: 29761: template struct _Arr { _Ti _M_x[1]; }; 29761: 29761: 29761: template 29761: struct _Build_FUN 29761: { 29761: 29761: 29761: void _S_fun() = delete; 29761: }; 29761: 29761: 29761: template 29761: struct _Build_FUN<_Ind, _Tp, _Ti, 29761: void_t{{std::declval<_Tp>()}})>> 29761: { 29761: 29761: static integral_constant _S_fun(_Ti); 29761: }; 29761: 29761: template>> 29761: struct _Build_FUNs; 29761: 29761: template 29761: struct _Build_FUNs<_Tp, variant<_Ti...>, index_sequence<_Ind...>> 29761: : _Build_FUN<_Ind, _Tp, _Ti>... 29761: { 29761: using _Build_FUN<_Ind, _Tp, _Ti>::_S_fun...; 29761: }; 29761: 29761: 29761: 29761: template 29761: using _FUN_type 29761: = decltype(_Build_FUNs<_Tp, _Variant>::_S_fun(std::declval<_Tp>())); 29761: 29761: 29761: template 29761: inline constexpr size_t 29761: __accepted_index = variant_npos; 29761: 29761: template 29761: inline constexpr size_t 29761: __accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> 29761: = _FUN_type<_Tp, _Variant>::value; 29761: 29761: template> 29761: inline constexpr bool 29761: __extra_visit_slot_needed = false; 29761: 29761: template 29761: inline constexpr bool 29761: __extra_visit_slot_needed<__variant_cookie, _Var, variant<_Types...>> 29761: = !__variant::__never_valueless<_Types...>(); 29761: 29761: template 29761: inline constexpr bool 29761: __extra_visit_slot_needed<__variant_idx_cookie, _Var, variant<_Types...>> 29761: = !__variant::__never_valueless<_Types...>(); 29761: 29761: 29761: template 29761: struct _Multi_array; 29761: 29761: 29761: template 29761: struct _Multi_array<_Tp> 29761: { 29761: template 29761: struct __untag_result 29761: : false_type 29761: { using element_type = _Tp; }; 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wignored-qualifiers" 29761: template 29761: struct __untag_result 29761: : false_type 29761: { using element_type = void(*)(_Args...); }; 29761: #pragma GCC diagnostic pop 29761: 29761: template 29761: struct __untag_result<__variant_cookie(*)(_Args...)> 29761: : false_type 29761: { using element_type = void(*)(_Args...); }; 29761: 29761: template 29761: struct __untag_result<__variant_idx_cookie(*)(_Args...)> 29761: : false_type 29761: { using element_type = void(*)(_Args...); }; 29761: 29761: template 29761: struct __untag_result<__deduce_visit_result<_Res>(*)(_Args...)> 29761: : true_type 29761: { using element_type = _Res(*)(_Args...); }; 29761: 29761: using __result_is_deduced = __untag_result<_Tp>; 29761: 29761: constexpr const typename __untag_result<_Tp>::element_type& 29761: _M_access() const 29761: { return _M_data; } 29761: 29761: typename __untag_result<_Tp>::element_type _M_data; 29761: }; 29761: 29761: 29761: template 29761: struct _Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...> 29761: { 29761: static constexpr size_t __index = 29761: sizeof...(_Variants) - sizeof...(__rest) - 1; 29761: 29761: using _Variant = typename _Nth_type<__index, _Variants...>::type; 29761: 29761: static constexpr int __do_cookie = 29761: __extra_visit_slot_needed<_Ret, _Variant> ? 1 : 0; 29761: 29761: using _Tp = _Ret(*)(_Visitor, _Variants...); 29761: 29761: template 29761: constexpr decltype(auto) 29761: _M_access(size_t __first_index, _Args... __rest_indices) const 29761: { 29761: return _M_arr[__first_index + __do_cookie] 29761: ._M_access(__rest_indices...); 29761: } 29761: 29761: _Multi_array<_Tp, __rest...> _M_arr[__first + __do_cookie]; 29761: }; 29761: # 949 "/usr/include/c++/14/variant" 3 29761: template 29761: struct __gen_vtable_impl; 29761: # 959 "/usr/include/c++/14/variant" 3 29761: template 29761: struct __gen_vtable_impl< 29761: _Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>, 29761: std::index_sequence<__indices...>> 29761: { 29761: using _Next = 29761: remove_reference_t::type>; 29761: using _Array_type = 29761: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 29761: __dimensions...>; 29761: 29761: static constexpr _Array_type 29761: _S_apply() 29761: { 29761: _Array_type __vtable{}; 29761: _S_apply_all_alts( 29761: __vtable, make_index_sequence>()); 29761: return __vtable; 29761: } 29761: 29761: template 29761: static constexpr void 29761: _S_apply_all_alts(_Array_type& __vtable, 29761: std::index_sequence<__var_indices...>) 29761: { 29761: if constexpr (__extra_visit_slot_needed<_Result_type, _Next>) 29761: (_S_apply_single_alt( 29761: __vtable._M_arr[__var_indices + 1], 29761: &(__vtable._M_arr[0])), ...); 29761: else 29761: (_S_apply_single_alt( 29761: __vtable._M_arr[__var_indices]), ...); 29761: } 29761: 29761: template 29761: static constexpr void 29761: _S_apply_single_alt(_Tp& __element, _Tp* __cookie_element = nullptr) 29761: { 29761: if constexpr (__do_cookie) 29761: { 29761: __element = __gen_vtable_impl< 29761: _Tp, 29761: std::index_sequence<__indices..., __index>>::_S_apply(); 29761: *__cookie_element = __gen_vtable_impl< 29761: _Tp, 29761: std::index_sequence<__indices..., variant_npos>>::_S_apply(); 29761: } 29761: else 29761: { 29761: auto __tmp_element = __gen_vtable_impl< 29761: remove_reference_t, 29761: std::index_sequence<__indices..., __index>>::_S_apply(); 29761: static_assert(is_same_v<_Tp, decltype(__tmp_element)>, 29761: "std::visit requires the visitor to have the same " 29761: "return type for all alternatives of a variant"); 29761: __element = __tmp_element; 29761: } 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __gen_vtable_impl< 29761: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>, 29761: std::index_sequence<__indices...>> 29761: { 29761: using _Array_type = 29761: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>; 29761: 29761: template 29761: static constexpr decltype(auto) 29761: __element_by_index_or_cookie(_Variant&& __var) noexcept 29761: { 29761: if constexpr (__index != variant_npos) 29761: return __variant::__get<__index>(std::forward<_Variant>(__var)); 29761: else 29761: return __variant_cookie{}; 29761: } 29761: 29761: static constexpr decltype(auto) 29761: __visit_invoke(_Visitor&& __visitor, _Variants... __vars) 29761: { 29761: if constexpr (is_same_v<_Result_type, __variant_idx_cookie>) 29761: 29761: 29761: std::__invoke(std::forward<_Visitor>(__visitor), 29761: __element_by_index_or_cookie<__indices>( 29761: std::forward<_Variants>(__vars))..., 29761: integral_constant()...); 29761: else if constexpr (is_same_v<_Result_type, __variant_cookie>) 29761: 29761: std::__invoke(std::forward<_Visitor>(__visitor), 29761: __element_by_index_or_cookie<__indices>( 29761: std::forward<_Variants>(__vars))...); 29761: else if constexpr (_Array_type::__result_is_deduced::value) 29761: 29761: return std::__invoke(std::forward<_Visitor>(__visitor), 29761: __element_by_index_or_cookie<__indices>( 29761: std::forward<_Variants>(__vars))...); 29761: else 29761: return std::__invoke_r<_Result_type>( 29761: std::forward<_Visitor>(__visitor), 29761: __variant::__get<__indices>(std::forward<_Variants>(__vars))...); 29761: } 29761: 29761: static constexpr auto 29761: _S_apply() 29761: { 29761: if constexpr (_Array_type::__result_is_deduced::value) 29761: { 29761: constexpr bool __visit_ret_type_mismatch = 29761: !is_same_v(), 29761: std::declval<_Variants>()...))>; 29761: if constexpr (__visit_ret_type_mismatch) 29761: { 29761: struct __cannot_match {}; 29761: return __cannot_match{}; 29761: } 29761: else 29761: return _Array_type{&__visit_invoke}; 29761: } 29761: else 29761: return _Array_type{&__visit_invoke}; 29761: } 29761: }; 29761: 29761: template 29761: struct __gen_vtable 29761: { 29761: using _Array_type = 29761: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 29761: variant_size_v>...>; 29761: 29761: static constexpr _Array_type _S_vtable 29761: = __gen_vtable_impl<_Array_type, std::index_sequence<>>::_S_apply(); 29761: }; 29761: 29761: template 29761: struct _Base_dedup : public _Tp { }; 29761: 29761: template 29761: struct _Variant_hash_base; 29761: 29761: template 29761: struct _Variant_hash_base, 29761: std::index_sequence<__indices...>> 29761: : _Base_dedup<__indices, __poison_hash>>... { }; 29761: 29761: 29761: template())), 29761: typename _Tp = variant_alternative_t<_Np, remove_reference_t<_AsV>>> 29761: using __get_t 29761: = __conditional_t, _Tp&, _Tp&&>; 29761: 29761: 29761: template 29761: using __visit_result_t 29761: = invoke_result_t<_Visitor, __get_t<0, _Variants>...>; 29761: 29761: template 29761: constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); 29761: 29761: template 29761: constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) 29761: { 29761: return __same_types< 29761: invoke_result_t<_Visitor, __get_t<_Idxs, _Variant>>... 29761: >; 29761: } 29761: 29761: } 29761: } 29761: 29761: template 29761: constexpr bool 29761: holds_alternative(const variant<_Types...>& __v) noexcept 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: return __v.index() == std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: } 29761: 29761: template 29761: constexpr _Tp& 29761: get(variant<_Types...>& __v) 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get<__n>(__v); 29761: } 29761: 29761: template 29761: constexpr _Tp&& 29761: get(variant<_Types...>&& __v) 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get<__n>(std::move(__v)); 29761: } 29761: 29761: template 29761: constexpr const _Tp& 29761: get(const variant<_Types...>& __v) 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get<__n>(__v); 29761: } 29761: 29761: template 29761: constexpr const _Tp&& 29761: get(const variant<_Types...>&& __v) 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get<__n>(std::move(__v)); 29761: } 29761: 29761: template 29761: constexpr add_pointer_t>> 29761: get_if(variant<_Types...>* __ptr) noexcept 29761: { 29761: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 29761: if (__ptr && __ptr->index() == _Np) 29761: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 29761: return nullptr; 29761: } 29761: 29761: template 29761: constexpr 29761: add_pointer_t>> 29761: get_if(const variant<_Types...>* __ptr) noexcept 29761: { 29761: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 29761: if (__ptr && __ptr->index() == _Np) 29761: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 29761: return nullptr; 29761: } 29761: 29761: template 29761: constexpr add_pointer_t<_Tp> 29761: get_if(variant<_Types...>* __ptr) noexcept 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get_if<__n>(__ptr); 29761: } 29761: 29761: template 29761: constexpr add_pointer_t 29761: get_if(const variant<_Types...>* __ptr) noexcept 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get_if<__n>(__ptr); 29761: } 29761: 29761: struct monostate { }; 29761: # 1264 "/usr/include/c++/14/variant" 3 29761: template constexpr bool operator <(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem < __rhs_mem; } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); }, __rhs); return __ret; } 29761: template constexpr bool operator <=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem <= __rhs_mem; } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); }, __rhs); return __ret; } 29761: template constexpr bool operator ==(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem == __rhs_mem; } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); }, __rhs); return __ret; } 29761: template constexpr bool operator !=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem != __rhs_mem; } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); }, __rhs); return __ret; } 29761: template constexpr bool operator >=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem >= __rhs_mem; } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); }, __rhs); return __ret; } 29761: template constexpr bool operator >(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem > __rhs_mem; } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); }, __rhs); return __ret; } 29761: 29761: 29761: 29761: constexpr bool operator==(monostate, monostate) noexcept { return true; } 29761: # 1305 "/usr/include/c++/14/variant" 3 29761: constexpr bool operator!=(monostate, monostate) noexcept { return false; } 29761: constexpr bool operator<(monostate, monostate) noexcept { return false; } 29761: constexpr bool operator>(monostate, monostate) noexcept { return false; } 29761: constexpr bool operator<=(monostate, monostate) noexcept { return true; } 29761: constexpr bool operator>=(monostate, monostate) noexcept { return true; } 29761: 29761: 29761: template 29761: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 29761: visit(_Visitor&&, _Variants&&...); 29761: 29761: template 29761: 29761: inline enable_if_t<(is_move_constructible_v<_Types> && ...) 29761: && (is_swappable_v<_Types> && ...)> 29761: swap(variant<_Types...>& __lhs, variant<_Types...>& __rhs) 29761: noexcept(noexcept(__lhs.swap(__rhs))) 29761: { __lhs.swap(__rhs); } 29761: 29761: template 29761: enable_if_t && ...) 29761: && (is_swappable_v<_Types> && ...))> 29761: swap(variant<_Types...>&, variant<_Types...>&) = delete; 29761: 29761: class bad_variant_access : public exception 29761: { 29761: public: 29761: bad_variant_access() noexcept { } 29761: 29761: const char* what() const noexcept override 29761: { return _M_reason; } 29761: 29761: private: 29761: bad_variant_access(const char* __reason) noexcept : _M_reason(__reason) { } 29761: 29761: 29761: const char* _M_reason = "bad variant access"; 29761: 29761: friend void __throw_bad_variant_access(const char* __what); 29761: }; 29761: 29761: 29761: inline void 29761: __throw_bad_variant_access(const char* __what) 29761: { (throw (bad_variant_access(__what))); } 29761: 29761: inline void 29761: __throw_bad_variant_access(bool __valueless) 29761: { 29761: if (__valueless) [[__unlikely__]] 29761: __throw_bad_variant_access("std::get: variant is valueless"); 29761: else 29761: __throw_bad_variant_access("std::get: wrong index for variant"); 29761: } 29761: 29761: template 29761: class variant 29761: : private __detail::__variant::_Variant_base<_Types...>, 29761: private _Enable_copy_move< 29761: __detail::__variant::_Traits<_Types...>::_S_copy_ctor, 29761: __detail::__variant::_Traits<_Types...>::_S_copy_assign, 29761: __detail::__variant::_Traits<_Types...>::_S_move_ctor, 29761: __detail::__variant::_Traits<_Types...>::_S_move_assign, 29761: variant<_Types...>> 29761: { 29761: private: 29761: template 29761: friend decltype(auto) 29761: __variant_cast(_Tp&&); 29761: 29761: static_assert(sizeof...(_Types) > 0, 29761: "variant must have at least one alternative"); 29761: 29761: 29761: 29761: 29761: static_assert((std::is_object_v<_Types> && ...), 29761: "variant alternatives must be object types"); 29761: 29761: 29761: using _Base = __detail::__variant::_Variant_base<_Types...>; 29761: 29761: template 29761: static constexpr bool __not_self 29761: = !is_same_v<__remove_cvref_t<_Tp>, variant>; 29761: 29761: template 29761: static constexpr bool 29761: __exactly_once = __detail::__variant::__exactly_once<_Tp, _Types...>; 29761: 29761: template 29761: static constexpr size_t __accepted_index 29761: = __detail::__variant::__accepted_index<_Tp, variant>; 29761: 29761: template> 29761: using __to_type = typename _Nth_type<_Np, _Types...>::type; 29761: 29761: template>> 29761: using __accepted_type = __to_type<__accepted_index<_Tp>>; 29761: 29761: template 29761: static constexpr size_t __index_of 29761: = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: 29761: using _Traits = __detail::__variant::_Traits<_Types...>; 29761: 29761: template 29761: struct __is_in_place_tag : false_type { }; 29761: template 29761: struct __is_in_place_tag> : true_type { }; 29761: template 29761: struct __is_in_place_tag> : true_type { }; 29761: 29761: template 29761: static constexpr bool __not_in_place_tag 29761: = !__is_in_place_type_v<__remove_cvref_t<_Tp>> 29761: && !__is_in_place_index_v<__remove_cvref_t<_Tp>>; 29761: 29761: public: 29761: 29761: 29761: 29761: template, 29761: typename = enable_if_t>> 29761: constexpr 29761: variant() noexcept(is_nothrow_default_constructible_v<__to_type<0>>) 29761: { } 29761: 29761: 29761: variant(const variant& __rhs) = default; 29761: variant(variant&&) = default; 29761: variant& operator=(const variant&) = default; 29761: variant& operator=(variant&&) = default; 29761: ~variant() = default; 29761: 29761: template, 29761: typename = enable_if_t<__not_in_place_tag<_Tp>>, 29761: typename _Tj = __accepted_type<_Tp&&>, 29761: typename = enable_if_t<__exactly_once<_Tj> 29761: && is_constructible_v<_Tj, _Tp>>> 29761: constexpr 29761: variant(_Tp&& __t) 29761: noexcept(is_nothrow_constructible_v<_Tj, _Tp>) 29761: : variant(in_place_index<__accepted_index<_Tp>>, 29761: std::forward<_Tp>(__t)) 29761: { } 29761: 29761: template 29761: && is_constructible_v<_Tp, _Args...>>> 29761: constexpr explicit 29761: variant(in_place_type_t<_Tp>, _Args&&... __args) 29761: : variant(in_place_index<__index_of<_Tp>>, 29761: std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: && is_constructible_v<_Tp, 29761: initializer_list<_Up>&, _Args...>>> 29761: constexpr explicit 29761: variant(in_place_type_t<_Tp>, initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : variant(in_place_index<__index_of<_Tp>>, __il, 29761: std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template, 29761: typename = enable_if_t>> 29761: constexpr explicit 29761: variant(in_place_index_t<_Np>, _Args&&... __args) 29761: : _Base(in_place_index<_Np>, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template, 29761: typename = enable_if_t&, 29761: _Args...>>> 29761: constexpr explicit 29761: variant(in_place_index_t<_Np>, initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : _Base(in_place_index<_Np>, __il, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: 29761: enable_if_t<__exactly_once<__accepted_type<_Tp&&>> 29761: && is_constructible_v<__accepted_type<_Tp&&>, _Tp> 29761: && is_assignable_v<__accepted_type<_Tp&&>&, _Tp>, 29761: variant&> 29761: operator=(_Tp&& __rhs) 29761: noexcept(is_nothrow_assignable_v<__accepted_type<_Tp&&>&, _Tp> 29761: && is_nothrow_constructible_v<__accepted_type<_Tp&&>, _Tp>) 29761: { 29761: constexpr auto __index = __accepted_index<_Tp>; 29761: if (index() == __index) 29761: std::get<__index>(*this) = std::forward<_Tp>(__rhs); 29761: else 29761: { 29761: using _Tj = __accepted_type<_Tp&&>; 29761: if constexpr (is_nothrow_constructible_v<_Tj, _Tp> 29761: || !is_nothrow_move_constructible_v<_Tj>) 29761: this->emplace<__index>(std::forward<_Tp>(__rhs)); 29761: else 29761: 29761: 29761: this->emplace<__index>(_Tj(std::forward<_Tp>(__rhs))); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: enable_if_t && __exactly_once<_Tp>, 29761: _Tp&> 29761: emplace(_Args&&... __args) 29761: { 29761: constexpr size_t __index = __index_of<_Tp>; 29761: return this->emplace<__index>(std::forward<_Args>(__args)...); 29761: } 29761: 29761: template 29761: 29761: enable_if_t&, _Args...> 29761: && __exactly_once<_Tp>, 29761: _Tp&> 29761: emplace(initializer_list<_Up> __il, _Args&&... __args) 29761: { 29761: constexpr size_t __index = __index_of<_Tp>; 29761: return this->emplace<__index>(__il, std::forward<_Args>(__args)...); 29761: } 29761: 29761: template 29761: 29761: enable_if_t, _Args...>, 29761: __to_type<_Np>&> 29761: emplace(_Args&&... __args) 29761: { 29761: namespace __variant = std::__detail::__variant; 29761: using type = typename _Nth_type<_Np, _Types...>::type; 29761: 29761: 29761: if constexpr (is_nothrow_constructible_v) 29761: { 29761: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 29761: } 29761: else if constexpr (is_scalar_v) 29761: { 29761: 29761: const type __tmp(std::forward<_Args>(__args)...); 29761: 29761: __variant::__emplace<_Np>(*this, __tmp); 29761: } 29761: else if constexpr (__variant::_Never_valueless_alt() 29761: && _Traits::_S_move_assign) 29761: { 29761: 29761: variant __tmp(in_place_index<_Np>, 29761: std::forward<_Args>(__args)...); 29761: 29761: *this = std::move(__tmp); 29761: } 29761: else 29761: { 29761: 29761: 29761: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 29761: } 29761: return std::get<_Np>(*this); 29761: } 29761: 29761: template 29761: 29761: enable_if_t, 29761: initializer_list<_Up>&, _Args...>, 29761: __to_type<_Np>&> 29761: emplace(initializer_list<_Up> __il, _Args&&... __args) 29761: { 29761: namespace __variant = std::__detail::__variant; 29761: using type = typename _Nth_type<_Np, _Types...>::type; 29761: 29761: 29761: if constexpr (is_nothrow_constructible_v&, 29761: _Args...>) 29761: { 29761: __variant::__emplace<_Np>(*this, __il, 29761: std::forward<_Args>(__args)...); 29761: } 29761: else if constexpr (__variant::_Never_valueless_alt() 29761: && _Traits::_S_move_assign) 29761: { 29761: 29761: variant __tmp(in_place_index<_Np>, __il, 29761: std::forward<_Args>(__args)...); 29761: 29761: *this = std::move(__tmp); 29761: } 29761: else 29761: { 29761: 29761: 29761: __variant::__emplace<_Np>(*this, __il, 29761: std::forward<_Args>(__args)...); 29761: } 29761: return std::get<_Np>(*this); 29761: } 29761: 29761: template 29761: enable_if_t emplace(_Args&&...) = delete; 29761: 29761: template 29761: enable_if_t> emplace(_Args&&...) = delete; 29761: 29761: constexpr bool valueless_by_exception() const noexcept 29761: { return !this->_M_valid(); } 29761: 29761: constexpr size_t index() const noexcept 29761: { 29761: using __index_type = typename _Base::__index_type; 29761: if constexpr (__detail::__variant::__never_valueless<_Types...>()) 29761: return this->_M_index; 29761: else if constexpr (sizeof...(_Types) <= __index_type(-1) / 2) 29761: return make_signed_t<__index_type>(this->_M_index); 29761: else 29761: return size_t(__index_type(this->_M_index + 1)) - 1; 29761: } 29761: 29761: 29761: void 29761: swap(variant& __rhs) 29761: noexcept((__is_nothrow_swappable<_Types>::value && ...) 29761: && is_nothrow_move_constructible_v) 29761: { 29761: static_assert((is_move_constructible_v<_Types> && ...)); 29761: 29761: 29761: if (__rhs.valueless_by_exception()) [[__unlikely__]] 29761: { 29761: if (!this->valueless_by_exception()) [[__likely__]] 29761: __rhs.swap(*this); 29761: return; 29761: } 29761: 29761: namespace __variant = __detail::__variant; 29761: 29761: __variant::__raw_idx_visit( 29761: [this, &__rhs](auto&& __rhs_mem, auto __rhs_index) mutable 29761: { 29761: constexpr size_t __j = __rhs_index; 29761: if constexpr (__j != variant_npos) 29761: { 29761: if (this->index() == __j) 29761: { 29761: using std::swap; 29761: swap(std::get<__j>(*this), __rhs_mem); 29761: } 29761: else 29761: { 29761: auto __tmp(std::move(__rhs_mem)); 29761: 29761: if constexpr (_Traits::_S_trivial_move_assign) 29761: __rhs = std::move(*this); 29761: else 29761: __variant::__raw_idx_visit( 29761: [&__rhs](auto&& __this_mem, auto __this_index) mutable 29761: { 29761: constexpr size_t __k = __this_index; 29761: if constexpr (__k != variant_npos) 29761: __variant::__emplace<__k>(__rhs, 29761: std::move(__this_mem)); 29761: }, *this); 29761: 29761: __variant::__emplace<__j>(*this, std::move(__tmp)); 29761: } 29761: } 29761: }, __rhs); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: private: 29761: template 29761: friend constexpr decltype(auto) 29761: __detail::__variant::__get(_Vp&& __v) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template friend constexpr bool operator <(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: template friend constexpr bool operator <=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: template friend constexpr bool operator ==(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: template friend constexpr bool operator !=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: template friend constexpr bool operator >=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: template friend constexpr bool operator >(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: 29761: 29761: }; 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>>& 29761: get(variant<_Types...>& __v) 29761: { 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: if (__v.index() != _Np) 29761: __throw_bad_variant_access(__v.valueless_by_exception()); 29761: return __detail::__variant::__get<_Np>(__v); 29761: } 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 29761: get(variant<_Types...>&& __v) 29761: { 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: if (__v.index() != _Np) 29761: __throw_bad_variant_access(__v.valueless_by_exception()); 29761: return __detail::__variant::__get<_Np>(std::move(__v)); 29761: } 29761: 29761: template 29761: constexpr const variant_alternative_t<_Np, variant<_Types...>>& 29761: get(const variant<_Types...>& __v) 29761: { 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: if (__v.index() != _Np) 29761: __throw_bad_variant_access(__v.valueless_by_exception()); 29761: return __detail::__variant::__get<_Np>(__v); 29761: } 29761: 29761: template 29761: constexpr const variant_alternative_t<_Np, variant<_Types...>>&& 29761: get(const variant<_Types...>&& __v) 29761: { 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: if (__v.index() != _Np) 29761: __throw_bad_variant_access(__v.valueless_by_exception()); 29761: return __detail::__variant::__get<_Np>(std::move(__v)); 29761: } 29761: 29761: 29761: template 29761: constexpr decltype(auto) 29761: __do_visit(_Visitor&& __visitor, _Variants&&... __variants) 29761: { 29761: 29761: if constexpr (sizeof...(_Variants) == 0) 29761: { 29761: if constexpr (is_void_v<_Result_type>) 29761: return (void) std::forward<_Visitor>(__visitor)(); 29761: else 29761: return std::forward<_Visitor>(__visitor)(); 29761: } 29761: else 29761: { 29761: constexpr size_t __max = 11; 29761: 29761: 29761: using _V0 = typename _Nth_type<0, _Variants...>::type; 29761: 29761: constexpr auto __n = variant_size_v>; 29761: 29761: if constexpr (sizeof...(_Variants) > 1 || __n > __max) 29761: { 29761: 29761: constexpr auto& __vtable = __detail::__variant::__gen_vtable< 29761: _Result_type, _Visitor&&, _Variants&&...>::_S_vtable; 29761: 29761: auto __func_ptr = __vtable._M_access(__variants.index()...); 29761: return (*__func_ptr)(std::forward<_Visitor>(__visitor), 29761: std::forward<_Variants>(__variants)...); 29761: } 29761: else 29761: { 29761: 29761: _V0& __v0 29761: = [](_V0& __v, ...) -> _V0& { return __v; }(__variants...); 29761: 29761: using __detail::__variant::_Multi_array; 29761: using __detail::__variant::__gen_vtable_impl; 29761: using _Ma = _Multi_array<_Result_type (*)(_Visitor&&, _V0&&)>; 29761: # 1817 "/usr/include/c++/14/variant" 3 29761: switch (__v0.index()) 29761: { 29761: case 0: { if constexpr (0 < __n) { return __gen_vtable_impl<_Ma, index_sequence<0>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 1: { if constexpr (1 < __n) { return __gen_vtable_impl<_Ma, index_sequence<1>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 2: { if constexpr (2 < __n) { return __gen_vtable_impl<_Ma, index_sequence<2>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 3: { if constexpr (3 < __n) { return __gen_vtable_impl<_Ma, index_sequence<3>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 4: { if constexpr (4 < __n) { return __gen_vtable_impl<_Ma, index_sequence<4>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 5: { if constexpr (5 < __n) { return __gen_vtable_impl<_Ma, index_sequence<5>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 6: { if constexpr (6 < __n) { return __gen_vtable_impl<_Ma, index_sequence<6>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 7: { if constexpr (7 < __n) { return __gen_vtable_impl<_Ma, index_sequence<7>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 8: { if constexpr (8 < __n) { return __gen_vtable_impl<_Ma, index_sequence<8>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 9: { if constexpr (9 < __n) { return __gen_vtable_impl<_Ma, index_sequence<9>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 10: { if constexpr (10 < __n) { return __gen_vtable_impl<_Ma, index_sequence<10>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case variant_npos: 29761: using __detail::__variant::__variant_idx_cookie; 29761: using __detail::__variant::__variant_cookie; 29761: if constexpr (is_same_v<_Result_type, __variant_idx_cookie> 29761: || is_same_v<_Result_type, __variant_cookie>) 29761: { 29761: using _Npos = index_sequence; 29761: return __gen_vtable_impl<_Ma, _Npos>:: 29761: __visit_invoke(std::forward<_Visitor>(__visitor), 29761: std::forward<_V0>(__v0)); 29761: } 29761: else 29761: __builtin_unreachable(); 29761: default: 29761: __builtin_unreachable(); 29761: } 29761: 29761: 29761: } 29761: } 29761: } 29761: 29761: 29761: template 29761: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 29761: visit(_Visitor&& __visitor, _Variants&&... __variants) 29761: { 29761: namespace __variant = std::__detail::__variant; 29761: 29761: if ((__variant::__as(__variants).valueless_by_exception() || ...)) 29761: __throw_bad_variant_access("std::visit: variant is valueless"); 29761: 29761: using _Result_type 29761: = __detail::__variant::__visit_result_t<_Visitor, _Variants...>; 29761: 29761: using _Tag = __detail::__variant::__deduce_visit_result<_Result_type>; 29761: 29761: if constexpr (sizeof...(_Variants) == 1) 29761: { 29761: using _Vp = decltype(__variant::__as(std::declval<_Variants>()...)); 29761: 29761: constexpr bool __visit_rettypes_match = __detail::__variant:: 29761: __check_visitor_results<_Visitor, _Vp>( 29761: make_index_sequence>>()); 29761: if constexpr (!__visit_rettypes_match) 29761: { 29761: static_assert(__visit_rettypes_match, 29761: "std::visit requires the visitor to have the same " 29761: "return type for all alternatives of a variant"); 29761: return; 29761: } 29761: else 29761: return std::__do_visit<_Tag>( 29761: std::forward<_Visitor>(__visitor), 29761: static_cast<_Vp>(__variants)...); 29761: } 29761: else 29761: return std::__do_visit<_Tag>( 29761: std::forward<_Visitor>(__visitor), 29761: __variant::__as(std::forward<_Variants>(__variants))...); 29761: } 29761: # 1908 "/usr/include/c++/14/variant" 3 29761: template 29761: struct __variant_hash_call_base_impl 29761: { 29761: size_t 29761: operator()(const variant<_Types...>& __t) const 29761: noexcept((is_nothrow_invocable_v>, _Types> && ...)) 29761: { 29761: size_t __ret; 29761: __detail::__variant::__raw_visit( 29761: [&__t, &__ret](auto&& __t_mem) mutable 29761: { 29761: using _Type = __remove_cvref_t; 29761: if constexpr (!is_same_v<_Type, 29761: __detail::__variant::__variant_cookie>) 29761: __ret = std::hash{}(__t.index()) 29761: + std::hash<_Type>{}(__t_mem); 29761: else 29761: __ret = std::hash{}(__t.index()); 29761: }, __t); 29761: return __ret; 29761: } 29761: }; 29761: 29761: template 29761: struct __variant_hash_call_base_impl {}; 29761: 29761: template 29761: using __variant_hash_call_base = 29761: __variant_hash_call_base_impl<(__poison_hash>:: 29761: __enable_hash_call &&...), _Types...>; 29761: 29761: 29761: template 29761: struct hash> 29761: : private __detail::__variant::_Variant_hash_base< 29761: variant<_Types...>, std::index_sequence_for<_Types...>>, 29761: public __variant_hash_call_base<_Types...> 29761: { 29761: using result_type [[__deprecated__]] = size_t; 29761: using argument_type [[__deprecated__]] = variant<_Types...>; 29761: }; 29761: 29761: template<> 29761: struct hash 29761: { 29761: using result_type [[__deprecated__]] = size_t; 29761: using argument_type [[__deprecated__]] = monostate; 29761: 29761: size_t 29761: operator()(const monostate&) const noexcept 29761: { 29761: constexpr size_t __magic_monostate_hash = -7777; 29761: return __magic_monostate_hash; 29761: } 29761: }; 29761: 29761: template 29761: struct __is_fast_hash>> 29761: : bool_constant<(__is_fast_hash<_Types>::value && ...)> 29761: { }; 29761: 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class Logger; 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: class MergeOperator : public Customizable { 29761: public: 29761: virtual ~MergeOperator() {} 29761: static const char* Type() { return "MergeOperator"; } 29761: static Status CreateFromString(const ConfigOptions& opts, 29761: const std::string& id, 29761: std::shared_ptr* result); 29761: # 79 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool FullMerge(const Slice& , const Slice* , 29761: const std::deque& , 29761: std::string* , Logger* ) const { 29761: 29761: 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29761: (static_cast ( 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: false 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: "false" 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: ; 29761: return false; 29761: } 29761: 29761: struct MergeOperationInput { 29761: 29761: explicit MergeOperationInput(const Slice& _key, 29761: const Slice* _existing_value, 29761: const std::vector& _operand_list, 29761: Logger* _logger) 29761: : key(_key), 29761: existing_value(_existing_value), 29761: operand_list(_operand_list), 29761: logger(_logger) {} 29761: 29761: 29761: const Slice& key; 29761: 29761: 29761: const Slice* existing_value; 29761: 29761: const std::vector& operand_list; 29761: 29761: 29761: Logger* logger; 29761: }; 29761: 29761: enum class OpFailureScope { 29761: kDefault, 29761: kTryMerge, 29761: kMustMerge, 29761: kOpFailureScopeMax, 29761: }; 29761: 29761: struct MergeOperationOutput { 29761: explicit MergeOperationOutput(std::string& _new_value, 29761: Slice& _existing_operand) 29761: : new_value(_new_value), existing_operand(_existing_operand) {} 29761: 29761: 29761: std::string& new_value; 29761: 29761: 29761: 29761: Slice& existing_operand; 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 29761: }; 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool FullMergeV2(const MergeOperationInput& merge_in, 29761: MergeOperationOutput* merge_out) const; 29761: 29761: struct MergeOperationInputV3 { 29761: using ExistingValue = std::variant; 29761: using OperandList = std::vector; 29761: 29761: explicit MergeOperationInputV3(const Slice& _key, 29761: ExistingValue&& _existing_value, 29761: const OperandList& _operand_list, 29761: Logger* _logger) 29761: : key(_key), 29761: existing_value(std::move(_existing_value)), 29761: operand_list(_operand_list), 29761: logger(_logger) {} 29761: 29761: 29761: const Slice& key; 29761: 29761: 29761: 29761: ExistingValue existing_value; 29761: 29761: const OperandList& operand_list; 29761: 29761: Logger* logger; 29761: }; 29761: 29761: struct MergeOperationOutputV3 { 29761: using NewColumns = std::vector>; 29761: using NewValue = std::variant; 29761: 29761: 29761: 29761: 29761: NewValue new_value; 29761: 29761: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 29761: }; 29761: # 209 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool FullMergeV3(const MergeOperationInputV3& merge_in, 29761: MergeOperationOutputV3* merge_out) const; 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool PartialMerge(const Slice& , const Slice& , 29761: const Slice& , 29761: std::string* , 29761: Logger* ) const { 29761: return false; 29761: } 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool PartialMergeMulti(const Slice& key, 29761: const std::deque& operand_list, 29761: std::string* new_value, Logger* logger) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool AllowSingleOperand() const { return false; } 29761: # 300 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool ShouldMerge(const std::vector& ) const { 29761: return false; 29761: } 29761: }; 29761: 29761: 29761: class AssociativeMergeOperator : public MergeOperator { 29761: public: 29761: ~AssociativeMergeOperator() override {} 29761: # 323 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool Merge(const Slice& key, const Slice* existing_value, 29761: const Slice& value, std::string* new_value, 29761: Logger* logger) const = 0; 29761: 29761: private: 29761: 29761: bool FullMergeV2(const MergeOperationInput& merge_in, 29761: MergeOperationOutput* merge_out) const override; 29761: 29761: bool PartialMerge(const Slice& key, const Slice& left_operand, 29761: const Slice& right_operand, std::string* new_value, 29761: Logger* logger) const override; 29761: }; 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Comparator; 29761: class Iterator; 29761: class Logger; 29761: class MergeOperator; 29761: class Statistics; 29761: class SystemClock; 29761: class BlobFetcher; 29761: class PrefetchBufferCollection; 29761: struct CompactionIterationStats; 29761: 29761: class MergeHelper { 29761: public: 29761: MergeHelper(Env* env, const Comparator* user_comparator, 29761: const MergeOperator* user_merge_operator, 29761: const CompactionFilter* compaction_filter, Logger* logger, 29761: bool assert_valid_internal_key, SequenceNumber latest_snapshot, 29761: const SnapshotChecker* snapshot_checker = nullptr, int level = 0, 29761: Statistics* stats = nullptr, 29761: const std::atomic* shutting_down = nullptr); 29761: # 55 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: struct NoBaseValueTag {}; 29761: static constexpr NoBaseValueTag kNoBaseValue{}; 29761: 29761: struct PlainBaseValueTag {}; 29761: static constexpr PlainBaseValueTag kPlainBaseValue{}; 29761: 29761: struct WideBaseValueTag {}; 29761: static constexpr WideBaseValueTag kWideBaseValue{}; 29761: 29761: template 29761: static Status TimedFullMerge(const MergeOperator* merge_operator, 29761: const Slice& key, NoBaseValueTag, 29761: const std::vector& operands, 29761: Logger* logger, Statistics* statistics, 29761: SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, 29761: ResultTs... results) { 29761: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 29761: 29761: return TimedFullMergeImpl( 29761: merge_operator, key, std::move(existing_value), operands, logger, 29761: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29761: } 29761: 29761: template 29761: static Status TimedFullMerge( 29761: const MergeOperator* merge_operator, const Slice& key, PlainBaseValueTag, 29761: const Slice& value, const std::vector& operands, Logger* logger, 29761: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 29761: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(value); 29761: 29761: return TimedFullMergeImpl( 29761: merge_operator, key, std::move(existing_value), operands, logger, 29761: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29761: } 29761: 29761: template 29761: static Status TimedFullMerge( 29761: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 29761: const Slice& entity, const std::vector& operands, Logger* logger, 29761: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 29761: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 29761: 29761: Slice entity_copy(entity); 29761: WideColumns existing_columns; 29761: 29761: const Status s = 29761: WideColumnSerialization::Deserialize(entity_copy, existing_columns); 29761: if (!s.ok()) { 29761: return s; 29761: } 29761: 29761: existing_value = std::move(existing_columns); 29761: 29761: return TimedFullMergeImpl( 29761: merge_operator, key, std::move(existing_value), operands, logger, 29761: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29761: } 29761: 29761: template 29761: static Status TimedFullMerge(const MergeOperator* merge_operator, 29761: const Slice& key, WideBaseValueTag, 29761: const WideColumns& columns, 29761: const std::vector& operands, 29761: Logger* logger, Statistics* statistics, 29761: SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, 29761: ResultTs... results) { 29761: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(columns); 29761: 29761: return TimedFullMergeImpl( 29761: merge_operator, key, std::move(existing_value), operands, logger, 29761: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29761: } 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: Status MergeUntil(InternalIterator* iter, 29761: CompactionRangeDelAggregator* range_del_agg, 29761: const SequenceNumber stop_before, const bool at_bottom, 29761: const bool allow_data_in_errors, 29761: const BlobFetcher* blob_fetcher, 29761: const std::string* const full_history_ts_low, 29761: PrefetchBufferCollection* prefetch_buffers, 29761: CompactionIterationStats* c_iter_stats); 29761: 29761: 29761: 29761: 29761: 29761: 29761: CompactionFilter::Decision FilterMerge(const Slice& user_key, 29761: const Slice& value_slice); 29761: # 210 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: const std::deque& keys() const { return keys_; } 29761: const std::vector& values() const { 29761: return merge_context_.GetOperands(); 29761: } 29761: uint64_t TotalFilterTime() const { return total_filter_time_; } 29761: bool HasOperator() const { return user_merge_operator_ != nullptr; } 29761: 29761: 29761: 29761: 29761: bool FilteredUntil(Slice* skip_until) const { 29761: if (!has_compaction_filter_skip_until_) { 29761: return false; 29761: } 29761: 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: (static_cast ( 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: compaction_filter_ != nullptr 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: "compaction_filter_ != nullptr" 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: ; 29761: 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: (static_cast ( 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: skip_until != nullptr 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: "skip_until != nullptr" 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: ; 29761: 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: (static_cast ( 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: compaction_filter_skip_until_.Valid() 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: "compaction_filter_skip_until_.Valid()" 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: ; 29761: *skip_until = compaction_filter_skip_until_.Encode(); 29761: return true; 29761: } 29761: 29761: private: 29761: Env* env_; 29761: SystemClock* clock_; 29761: const Comparator* user_comparator_; 29761: const MergeOperator* user_merge_operator_; 29761: const CompactionFilter* compaction_filter_; 29761: const std::atomic* shutting_down_; 29761: Logger* logger_; 29761: bool assert_valid_internal_key_; 29761: bool allow_single_operand_; 29761: SequenceNumber latest_snapshot_; 29761: const SnapshotChecker* const snapshot_checker_; 29761: int level_; 29761: 29761: 29761: 29761: 29761: 29761: std::deque keys_; 29761: 29761: mutable MergeContext merge_context_; 29761: 29761: StopWatchNano filter_timer_; 29761: uint64_t total_filter_time_; 29761: Statistics* stats_; 29761: 29761: bool has_compaction_filter_skip_until_ = false; 29761: std::string compaction_filter_value_; 29761: InternalKey compaction_filter_skip_until_; 29761: 29761: bool IsShuttingDown() { 29761: 29761: return shutting_down_ && shutting_down_->load(std::memory_order_relaxed); 29761: } 29761: 29761: template 29761: static Status TimedFullMergeCommonImpl( 29761: const MergeOperator* merge_operator, const Slice& key, 29761: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29761: const std::vector& operands, Logger* logger, 29761: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, Visitor&& visitor); 29761: 29761: 29761: 29761: static Status TimedFullMergeImpl( 29761: const MergeOperator* merge_operator, const Slice& key, 29761: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29761: const std::vector& operands, Logger* logger, 29761: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, std::string* result, 29761: Slice* result_operand, ValueType* result_type); 29761: 29761: 29761: 29761: 29761: 29761: static Status TimedFullMergeImpl( 29761: const MergeOperator* merge_operator, const Slice& key, 29761: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29761: const std::vector& operands, Logger* logger, 29761: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, 29761: std::string* result_value, PinnableWideColumns* result_entity); 29761: }; 29761: 29761: 29761: class MergeOutputIterator { 29761: public: 29761: 29761: explicit MergeOutputIterator(const MergeHelper* merge_helper); 29761: 29761: 29761: void SeekToFirst(); 29761: 29761: void Next(); 29761: 29761: Slice key() { return Slice(*it_keys_); } 29761: Slice value() { return Slice(*it_values_); } 29761: bool Valid() { return it_keys_ != merge_helper_->keys().rend(); } 29761: 29761: private: 29761: const MergeHelper* merge_helper_; 29761: std::deque::const_reverse_iterator it_keys_; 29761: std::vector::const_reverse_iterator it_values_; 29761: }; 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: namespace rocksdb { 29761: 29761: class Logger; 29761: # 42 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: class ConcurrentArena : public Allocator { 29761: public: 29761: 29761: 29761: 29761: 29761: explicit ConcurrentArena(size_t block_size = Arena::kMinBlockSize, 29761: AllocTracker* tracker = nullptr, 29761: size_t huge_page_size = 0); 29761: 29761: char* Allocate(size_t bytes) override { 29761: return AllocateImpl(bytes, false , 29761: [this, bytes]() { return arena_.Allocate(bytes); }); 29761: } 29761: 29761: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29761: Logger* logger = nullptr) override { 29761: size_t rounded_up = ((bytes - 1) | (sizeof(void*) - 1)) + 1; 29761: 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: (static_cast ( 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: "rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0" 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: 29761: # 61 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: ; 29761: 29761: return AllocateImpl(rounded_up, huge_page_size != 0 , 29761: [this, rounded_up, huge_page_size, logger]() { 29761: return arena_.AllocateAligned(rounded_up, 29761: huge_page_size, logger); 29761: }); 29761: } 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: std::unique_lock lock(arena_mutex_, std::defer_lock); 29761: lock.lock(); 29761: return arena_.ApproximateMemoryUsage() - ShardAllocatedAndUnused(); 29761: } 29761: 29761: size_t MemoryAllocatedBytes() const { 29761: return memory_allocated_bytes_.load(std::memory_order_relaxed); 29761: } 29761: 29761: size_t AllocatedAndUnused() const { 29761: return arena_allocated_and_unused_.load(std::memory_order_relaxed) + 29761: ShardAllocatedAndUnused(); 29761: } 29761: 29761: size_t IrregularBlockNum() const { 29761: return irregular_block_num_.load(std::memory_order_relaxed); 29761: } 29761: 29761: size_t BlockSize() const override { return arena_.BlockSize(); } 29761: 29761: private: 29761: struct Shard { 29761: char padding[40] ; 29761: mutable SpinMutex mutex; 29761: char* free_begin_; 29761: std::atomic allocated_and_unused_; 29761: 29761: Shard() : free_begin_(nullptr), allocated_and_unused_(0) {} 29761: }; 29761: 29761: static thread_local size_t tls_cpuid; 29761: 29761: char padding0[56] ; 29761: 29761: size_t shard_block_size_; 29761: 29761: CoreLocalArray shards_; 29761: 29761: Arena arena_; 29761: mutable SpinMutex arena_mutex_; 29761: std::atomic arena_allocated_and_unused_; 29761: std::atomic memory_allocated_bytes_; 29761: std::atomic irregular_block_num_; 29761: 29761: char padding1[56] ; 29761: 29761: Shard* Repick(); 29761: 29761: size_t ShardAllocatedAndUnused() const { 29761: size_t total = 0; 29761: for (size_t i = 0; i < shards_.Size(); ++i) { 29761: total += shards_.AccessAtCore(i)->allocated_and_unused_.load( 29761: std::memory_order_relaxed); 29761: } 29761: return total; 29761: } 29761: 29761: template 29761: char* AllocateImpl(size_t bytes, bool force_arena, const Func& func) { 29761: size_t cpu; 29761: 29761: 29761: 29761: 29761: 29761: std::unique_lock arena_lock(arena_mutex_, std::defer_lock); 29761: if (bytes > shard_block_size_ / 4 || force_arena || 29761: ((cpu = tls_cpuid) == 0 && 29761: !shards_.AccessAtCore(0)->allocated_and_unused_.load( 29761: std::memory_order_relaxed) && 29761: arena_lock.try_lock())) { 29761: if (!arena_lock.owns_lock()) { 29761: arena_lock.lock(); 29761: } 29761: auto rv = func(); 29761: Fixup(); 29761: return rv; 29761: } 29761: 29761: 29761: Shard* s = shards_.AccessAtCore(cpu & (shards_.Size() - 1)); 29761: if (!s->mutex.try_lock()) { 29761: s = Repick(); 29761: s->mutex.lock(); 29761: } 29761: std::unique_lock lock(s->mutex, std::adopt_lock); 29761: 29761: size_t avail = s->allocated_and_unused_.load(std::memory_order_relaxed); 29761: if (avail < bytes) { 29761: 29761: std::lock_guard reload_lock(arena_mutex_); 29761: 29761: 29761: 29761: auto exact = arena_allocated_and_unused_.load(std::memory_order_relaxed); 29761: 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: (static_cast ( 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: exact == arena_.AllocatedAndUnused() 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: "exact == arena_.AllocatedAndUnused()" 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: ; 29761: 29761: if (exact >= bytes && arena_.IsInInlineBlock()) { 29761: # 177 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: auto rv = func(); 29761: Fixup(); 29761: return rv; 29761: } 29761: 29761: avail = exact >= shard_block_size_ / 2 && exact < shard_block_size_ * 2 29761: ? exact 29761: : shard_block_size_; 29761: s->free_begin_ = arena_.AllocateAligned(avail); 29761: Fixup(); 29761: } 29761: s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); 29761: 29761: char* rv; 29761: if ((bytes % sizeof(void*)) == 0) { 29761: 29761: rv = s->free_begin_; 29761: s->free_begin_ += bytes; 29761: } else { 29761: 29761: rv = s->free_begin_ + avail - bytes; 29761: } 29761: return rv; 29761: } 29761: 29761: void Fixup() { 29761: arena_allocated_and_unused_.store(arena_.AllocatedAndUnused(), 29761: std::memory_order_relaxed); 29761: memory_allocated_bytes_.store(arena_.MemoryAllocatedBytes(), 29761: std::memory_order_relaxed); 29761: irregular_block_num_.store(arena_.IrregularBlockNum(), 29761: std::memory_order_relaxed); 29761: } 29761: 29761: ConcurrentArena(const ConcurrentArena&) = delete; 29761: ConcurrentArena& operator=(const ConcurrentArena&) = delete; 29761: }; 29761: 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/cast_util.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: template 29761: inline DestClass* static_cast_with_check(SrcClass* x) { 29761: DestClass* ret = static_cast(x); 29761: 29761: 29761: 29761: return ret; 29761: } 29761: 29761: template 29761: inline std::shared_ptr static_cast_with_check( 29761: std::shared_ptr&& x) { 29761: 29761: 29761: 29761: auto ret = std::static_pointer_cast(std::move(x)); 29761: 29761: 29761: 29761: return ret; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline To lossless_cast(From x) { 29761: using FromValue = typename std::remove_reference::type; 29761: static_assert( 29761: std::is_integral::value || std::is_enum::value, 29761: "Only works on integral types"); 29761: static_assert(std::is_integral::value || std::is_enum::value, 29761: "Only works on integral types"); 29761: static_assert(sizeof(To) >= sizeof(FromValue), "Must be lossless"); 29761: return static_cast(x); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline const std::initializer_list& List( 29761: const std::initializer_list& list) { 29761: return list; 29761: } 29761: 29761: 29761: 29761: template 29761: class UnownedPtr { 29761: public: 29761: UnownedPtr() = default; 29761: UnownedPtr(std::nullptr_t) {} 29761: UnownedPtr(T* ptr) : ptr_(ptr) {} 29761: UnownedPtr(const UnownedPtr&) = default; 29761: UnownedPtr(UnownedPtr&&) = default; 29761: UnownedPtr& operator=(const UnownedPtr&) = default; 29761: UnownedPtr& operator=(UnownedPtr&&) = default; 29761: 29761: T* get() const { return ptr_; } 29761: T* operator->() const { return ptr_; } 29761: T& operator*() const { return *ptr_; } 29761: operator bool() const { return ptr_ != nullptr; } 29761: 29761: private: 29761: T* ptr_ = nullptr; 29761: }; 29761: 29761: } 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class Allocator; 29761: class Logger; 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29761: class DynamicBloom { 29761: public: 29761: # 47 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29761: explicit DynamicBloom(Allocator* allocator, uint32_t total_bits, 29761: uint32_t num_probes = 6, size_t huge_page_tlb_size = 0, 29761: Logger* logger = nullptr); 29761: 29761: ~DynamicBloom() {} 29761: 29761: 29761: void Add(const Slice& key); 29761: 29761: 29761: void AddConcurrently(const Slice& key); 29761: 29761: 29761: void AddHash(uint32_t hash); 29761: 29761: 29761: void AddHashConcurrently(uint32_t hash); 29761: 29761: 29761: bool MayContain(const Slice& key) const; 29761: 29761: void MayContain(int num_keys, Slice* keys, bool* may_match) const; 29761: 29761: 29761: bool MayContainHash(uint32_t hash) const; 29761: 29761: void Prefetch(uint32_t h); 29761: 29761: private: 29761: 29761: 29761: uint32_t kLen; 29761: 29761: 29761: const uint32_t kNumDoubleProbes; 29761: 29761: std::atomic* data_; 29761: 29761: 29761: 29761: template 29761: void AddHash(uint32_t hash, const OrFunc& or_func); 29761: 29761: bool DoubleProbe(uint32_t h32, size_t a) const; 29761: }; 29761: 29761: inline void DynamicBloom::Add(const Slice& key) { AddHash(BloomHash(key)); } 29761: 29761: inline void DynamicBloom::AddConcurrently(const Slice& key) { 29761: AddHashConcurrently(BloomHash(key)); 29761: } 29761: 29761: inline void DynamicBloom::AddHash(uint32_t hash) { 29761: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 29761: ptr->store(ptr->load(std::memory_order_relaxed) | mask, 29761: std::memory_order_relaxed); 29761: }); 29761: } 29761: 29761: inline void DynamicBloom::AddHashConcurrently(uint32_t hash) { 29761: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 29761: 29761: 29761: 29761: 29761: 29761: if ((mask & ptr->load(std::memory_order_relaxed)) != mask) { 29761: ptr->fetch_or(mask, std::memory_order_relaxed); 29761: } 29761: }); 29761: } 29761: 29761: inline bool DynamicBloom::MayContain(const Slice& key) const { 29761: return (MayContainHash(BloomHash(key))); 29761: } 29761: 29761: inline void DynamicBloom::MayContain(int num_keys, Slice* keys, 29761: bool* may_match) const { 29761: std::array hashes; 29761: std::array byte_offsets; 29761: for (int i = 0; i < num_keys; ++i) { 29761: hashes[i] = BloomHash(keys[i]); 29761: size_t a = FastRange32(hashes[i], kLen); 29761: __builtin_prefetch(data_ + a, 0, 3); 29761: byte_offsets[i] = a; 29761: } 29761: 29761: for (int i = 0; i < num_keys; i++) { 29761: may_match[i] = DoubleProbe(hashes[i], byte_offsets[i]); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline void DynamicBloom::Prefetch(uint32_t h32) { 29761: size_t a = FastRange32(h32, kLen); 29761: __builtin_prefetch(data_ + a, 0, 3); 29761: } 29761: # 173 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29761: inline bool DynamicBloom::MayContainHash(uint32_t h32) const { 29761: size_t a = FastRange32(h32, kLen); 29761: __builtin_prefetch(data_ + a, 0, 3); 29761: return DoubleProbe(h32, a); 29761: } 29761: 29761: inline bool DynamicBloom::DoubleProbe(uint32_t h32, size_t byte_offset) const { 29761: 29761: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 29761: for (unsigned i = 0;; ++i) { 29761: 29761: uint64_t mask = 29761: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 29761: uint64_t val = data_[byte_offset ^ i].load(std::memory_order_relaxed); 29761: if (i + 1 >= kNumDoubleProbes) { 29761: return (val & mask) == mask; 29761: } else if ((val & mask) != mask) { 29761: return false; 29761: } 29761: h = (h >> 12) | (h << 52); 29761: } 29761: } 29761: 29761: template 29761: inline void DynamicBloom::AddHash(uint32_t h32, const OrFunc& or_func) { 29761: size_t a = FastRange32(h32, kLen); 29761: __builtin_prefetch(data_ + a, 0, 3); 29761: 29761: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 29761: for (unsigned i = 0;; ++i) { 29761: 29761: uint64_t mask = 29761: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 29761: or_func(&data_[a ^ i], mask); 29761: if (i + 1 >= kNumDoubleProbes) { 29761: return; 29761: } 29761: h = (h >> 12) | (h << 52); 29761: } 29761: } 29761: 29761: } 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 1 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 29761: 29761: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 29761: namespace rocksdb { 29761: 29761: template 29761: using UnorderedMap = std::unordered_map; 29761: 29761: template 29761: using UnorderedMapH = std::unordered_map; 29761: 29761: template 29761: using UnorderedSet = std::unordered_set; 29761: 29761: } 29761: # 37 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: struct FlushJobInfo; 29761: class Mutex; 29761: class MemTableIterator; 29761: class MergeContext; 29761: class SystemClock; 29761: 29761: struct ImmutableMemTableOptions { 29761: explicit ImmutableMemTableOptions(const ImmutableOptions& ioptions, 29761: const MutableCFOptions& mutable_cf_options); 29761: size_t arena_block_size; 29761: uint32_t memtable_prefix_bloom_bits; 29761: size_t memtable_huge_page_size; 29761: bool memtable_whole_key_filtering; 29761: bool inplace_update_support; 29761: size_t inplace_update_num_locks; 29761: UpdateStatus (*inplace_callback)(char* existing_value, 29761: uint32_t* existing_value_size, 29761: Slice delta_value, 29761: std::string* merged_value); 29761: size_t max_successive_merges; 29761: bool strict_max_successive_merges; 29761: Statistics* statistics; 29761: MergeOperator* merge_operator; 29761: Logger* info_log; 29761: uint32_t protection_bytes_per_key; 29761: bool allow_data_in_errors; 29761: bool paranoid_memory_checks; 29761: }; 29761: 29761: 29761: 29761: 29761: struct MemTablePostProcessInfo { 29761: uint64_t data_size = 0; 29761: uint64_t num_entries = 0; 29761: uint64_t num_deletes = 0; 29761: uint64_t num_range_deletes = 0; 29761: }; 29761: 29761: using MultiGetRange = MultiGetContext::Range; 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: class ReadOnlyMemTable { 29761: public: 29761: 29761: virtual ~ReadOnlyMemTable() = default; 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual size_t ApproximateMemoryUsage() = 0; 29761: 29761: 29761: virtual size_t MemoryAllocatedBytes() const = 0; 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: virtual void UniqueRandomSample(const uint64_t& target_sample_size, 29761: std::unordered_set* entries) = 0; 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: virtual InternalIterator* NewIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, bool for_flush) = 0; 29761: 29761: 29761: 29761: 29761: virtual InternalIterator* NewTimestampStrippingIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, size_t ts_sz) = 0; 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: bool immutable_memtable) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual FragmentedRangeTombstoneIterator* 29761: NewTimestampStrippingRangeTombstoneIterator(const ReadOptions& read_options, 29761: SequenceNumber read_seq, 29761: size_t ts_sz) = 0; 29761: # 221 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: virtual bool Get(const LookupKey& key, std::string* value, 29761: PinnableWideColumns* columns, std::string* timestamp, 29761: Status* s, MergeContext* merge_context, 29761: SequenceNumber* max_covering_tombstone_seq, 29761: SequenceNumber* seq, const ReadOptions& read_opts, 29761: bool immutable_memtable, ReadCallback* callback = nullptr, 29761: bool* is_blob_index = nullptr, bool do_merge = true) = 0; 29761: bool Get(const LookupKey& key, std::string* value, 29761: PinnableWideColumns* columns, std::string* timestamp, Status* s, 29761: MergeContext* merge_context, 29761: SequenceNumber* max_covering_tombstone_seq, 29761: const ReadOptions& read_opts, bool immutable_memtable, 29761: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29761: bool do_merge = true) { 29761: SequenceNumber seq; 29761: return Get(key, value, columns, timestamp, s, merge_context, 29761: max_covering_tombstone_seq, &seq, read_opts, immutable_memtable, 29761: callback, is_blob_index, do_merge); 29761: } 29761: 29761: 29761: 29761: 29761: virtual void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29761: ReadCallback* callback, bool immutable_memtable) = 0; 29761: 29761: 29761: 29761: 29761: virtual uint64_t NumEntries() const = 0; 29761: 29761: 29761: 29761: 29761: virtual uint64_t NumDeletion() const = 0; 29761: 29761: 29761: 29761: 29761: virtual uint64_t NumRangeDeletion() const = 0; 29761: 29761: virtual uint64_t GetDataSize() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual SequenceNumber GetFirstSequenceNumber() = 0; 29761: 29761: 29761: 29761: 29761: virtual bool IsEmpty() const = 0; 29761: # 282 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: virtual SequenceNumber GetEarliestSequenceNumber() = 0; 29761: 29761: virtual uint64_t GetMinLogContainingPrepSection() = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void MarkImmutable() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void MarkFlushed() = 0; 29761: 29761: struct MemTableStats { 29761: uint64_t size; 29761: uint64_t count; 29761: }; 29761: virtual MemTableStats ApproximateStats(const Slice& start_ikey, 29761: const Slice& end_ikey) = 0; 29761: 29761: virtual const InternalKeyComparator& GetInternalKeyComparator() const = 0; 29761: 29761: virtual uint64_t ApproximateOldestKeyTime() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool IsFragmentedRangeTombstonesConstructed() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual const Slice& GetNewestUDT() const = 0; 29761: 29761: 29761: 29761: 29761: void Ref() { ++refs_; } 29761: 29761: 29761: 29761: 29761: 29761: ReadOnlyMemTable* Unref() { 29761: --refs_; 29761: 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: (static_cast ( 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: refs_ >= 0 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: "refs_ >= 0" 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: ; 29761: if (refs_ <= 0) { 29761: return this; 29761: } 29761: return nullptr; 29761: } 29761: 29761: 29761: VersionEdit* GetEdits() { return &edit_; } 29761: 29761: 29761: 29761: 29761: 29761: uint64_t GetNextLogNumber() const { return mem_next_logfile_number_; } 29761: 29761: 29761: 29761: 29761: 29761: void SetNextLogNumber(uint64_t num) { mem_next_logfile_number_ = num; } 29761: 29761: 29761: void SetID(uint64_t id) { id_ = id; } 29761: 29761: uint64_t GetID() const { return id_; } 29761: 29761: void SetFlushCompleted(bool completed) { flush_completed_ = completed; } 29761: 29761: uint64_t GetFileNumber() const { return file_number_; } 29761: 29761: void SetFileNumber(uint64_t file_num) { file_number_ = file_num; } 29761: 29761: void SetFlushInProgress(bool in_progress) { 29761: flush_in_progress_ = in_progress; 29761: } 29761: 29761: void SetFlushJobInfo(std::unique_ptr&& info) { 29761: flush_job_info_ = std::move(info); 29761: } 29761: 29761: std::unique_ptr ReleaseFlushJobInfo() { 29761: return std::move(flush_job_info_); 29761: } 29761: 29761: static void HandleTypeValue( 29761: const Slice& lookup_user_key, const Slice& value, bool value_pinned, 29761: bool do_merge, bool merge_in_progress, MergeContext* merge_context, 29761: const MergeOperator* merge_operator, SystemClock* clock, 29761: Statistics* statistics, Logger* info_log, Status* s, 29761: std::string* out_value, PinnableWideColumns* out_columns, 29761: bool* is_blob_index) { 29761: *s = Status::OK(); 29761: 29761: if (!do_merge) { 29761: 29761: 29761: 29761: 29761: merge_context->PushOperand(value, value_pinned); 29761: } else if (merge_in_progress) { 29761: 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: (static_cast ( 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: do_merge 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: "do_merge" 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: ; 29761: 29761: 29761: 29761: if (out_value || out_columns) { 29761: *s = MergeHelper::TimedFullMerge( 29761: merge_operator, lookup_user_key, MergeHelper::kPlainBaseValue, 29761: value, merge_context->GetOperands(), info_log, statistics, clock, 29761: true, 29761: nullptr, out_value, out_columns); 29761: } 29761: } else if (out_value) { 29761: out_value->assign(value.data(), value.size()); 29761: } else if (out_columns) { 29761: out_columns->SetPlainValue(value); 29761: } 29761: 29761: if (is_blob_index) { 29761: *is_blob_index = false; 29761: } 29761: } 29761: 29761: static void HandleTypeDeletion( 29761: const Slice& lookup_user_key, bool merge_in_progress, 29761: MergeContext* merge_context, const MergeOperator* merge_operator, 29761: SystemClock* clock, Statistics* statistics, Logger* logger, Status* s, 29761: std::string* out_value, PinnableWideColumns* out_columns) { 29761: if (merge_in_progress) { 29761: if (out_value || out_columns) { 29761: 29761: 29761: 29761: *s = MergeHelper::TimedFullMerge( 29761: merge_operator, lookup_user_key, MergeHelper::kNoBaseValue, 29761: merge_context->GetOperands(), logger, statistics, clock, 29761: true, 29761: nullptr, out_value, out_columns); 29761: } else { 29761: 29761: 29761: 29761: *s = Status::OK(); 29761: } 29761: } else { 29761: *s = Status::NotFound(); 29761: } 29761: } 29761: 29761: protected: 29761: friend class MemTableList; 29761: 29761: int refs_{0}; 29761: 29761: 29761: bool flush_in_progress_{false}; 29761: bool flush_completed_{false}; 29761: uint64_t file_number_{0}; 29761: 29761: 29761: 29761: VersionEdit edit_; 29761: 29761: 29761: uint64_t mem_next_logfile_number_{0}; 29761: 29761: 29761: uint64_t id_ = 0; 29761: 29761: 29761: 29761: 29761: 29761: SequenceNumber atomic_flush_seqno_{kMaxSequenceNumber}; 29761: 29761: 29761: std::unique_ptr flush_job_info_; 29761: }; 29761: 29761: class MemTable final : public ReadOnlyMemTable { 29761: public: 29761: struct KeyComparator final : public MemTableRep::KeyComparator { 29761: const InternalKeyComparator comparator; 29761: explicit KeyComparator(const InternalKeyComparator& c) : comparator(c) {} 29761: int operator()(const char* prefix_len_key1, 29761: const char* prefix_len_key2) const override; 29761: int operator()(const char* prefix_len_key, 29761: const DecodedType& key) const override; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit MemTable(const InternalKeyComparator& comparator, 29761: const ImmutableOptions& ioptions, 29761: const MutableCFOptions& mutable_cf_options, 29761: WriteBufferManager* write_buffer_manager, 29761: SequenceNumber earliest_seq, uint32_t column_family_id); 29761: 29761: MemTable(const MemTable&) = delete; 29761: MemTable& operator=(const MemTable&) = delete; 29761: 29761: ~MemTable() override; 29761: 29761: const char* Name() const override { return "MemTable"; } 29761: 29761: size_t ApproximateMemoryUsage() override; 29761: 29761: 29761: 29761: size_t ApproximateMemoryUsageFast() const { 29761: return approximate_memory_usage_.load(std::memory_order_relaxed); 29761: } 29761: 29761: size_t MemoryAllocatedBytes() const override { 29761: return table_->ApproximateMemoryUsage() + 29761: range_del_table_->ApproximateMemoryUsage() + 29761: arena_.MemoryAllocatedBytes(); 29761: } 29761: 29761: void UniqueRandomSample(const uint64_t& target_sample_size, 29761: std::unordered_set* entries) override { 29761: 29761: 29761: table_->UniqueRandomSample(NumEntries(), target_sample_size, entries); 29761: } 29761: 29761: 29761: 29761: bool ShouldScheduleFlush() const { 29761: return flush_state_.load(std::memory_order_relaxed) == FLUSH_REQUESTED; 29761: } 29761: 29761: 29761: 29761: bool MarkFlushScheduled() { 29761: auto before = FLUSH_REQUESTED; 29761: return flush_state_.compare_exchange_strong(before, FLUSH_SCHEDULED, 29761: std::memory_order_relaxed, 29761: std::memory_order_relaxed); 29761: } 29761: 29761: InternalIterator* NewIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, bool for_flush) override; 29761: 29761: InternalIterator* NewTimestampStrippingIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, size_t ts_sz) override; 29761: 29761: FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: bool immutable_memtable) override; 29761: 29761: FragmentedRangeTombstoneIterator* NewTimestampStrippingRangeTombstoneIterator( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: size_t ts_sz) override; 29761: 29761: Status VerifyEncodedEntry(Slice encoded, 29761: const ProtectionInfoKVOS64& kv_prot_info); 29761: # 572 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: Status Add(SequenceNumber seq, ValueType type, const Slice& key, 29761: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info, 29761: bool allow_concurrent = false, 29761: MemTablePostProcessInfo* post_process_info = nullptr, 29761: void** hint = nullptr); 29761: 29761: using ReadOnlyMemTable::Get; 29761: bool Get(const LookupKey& key, std::string* value, 29761: PinnableWideColumns* columns, std::string* timestamp, Status* s, 29761: MergeContext* merge_context, 29761: SequenceNumber* max_covering_tombstone_seq, SequenceNumber* seq, 29761: const ReadOptions& read_opts, bool immutable_memtable, 29761: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29761: bool do_merge = true) override; 29761: 29761: void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29761: ReadCallback* callback, bool immutable_memtable) override; 29761: # 600 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: Status Update(SequenceNumber seq, ValueType value_type, const Slice& key, 29761: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info); 29761: # 617 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: Status UpdateCallback(SequenceNumber seq, const Slice& key, 29761: const Slice& delta, 29761: const ProtectionInfoKVOS64* kv_prot_info); 29761: 29761: 29761: 29761: 29761: 29761: size_t CountSuccessiveMergeEntries(const LookupKey& key, size_t limit); 29761: 29761: 29761: 29761: void BatchPostProcess(const MemTablePostProcessInfo& update_counters) { 29761: num_entries_.fetch_add(update_counters.num_entries, 29761: std::memory_order_relaxed); 29761: data_size_.fetch_add(update_counters.data_size, std::memory_order_relaxed); 29761: if (update_counters.num_deletes != 0) { 29761: num_deletes_.fetch_add(update_counters.num_deletes, 29761: std::memory_order_relaxed); 29761: } 29761: if (update_counters.num_range_deletes > 0) { 29761: num_range_deletes_.fetch_add(update_counters.num_range_deletes, 29761: std::memory_order_relaxed); 29761: } 29761: UpdateFlushState(); 29761: } 29761: 29761: uint64_t NumEntries() const override { 29761: return num_entries_.load(std::memory_order_relaxed); 29761: } 29761: 29761: uint64_t NumDeletion() const override { 29761: return num_deletes_.load(std::memory_order_relaxed); 29761: } 29761: 29761: uint64_t NumRangeDeletion() const override { 29761: return num_range_deletes_.load(std::memory_order_relaxed); 29761: } 29761: 29761: uint64_t GetDataSize() const override { 29761: return data_size_.load(std::memory_order_relaxed); 29761: } 29761: 29761: size_t write_buffer_size() const { 29761: return write_buffer_size_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: void UpdateWriteBufferSize(size_t new_write_buffer_size) { 29761: if (bloom_filter_ == nullptr || 29761: new_write_buffer_size < write_buffer_size_) { 29761: write_buffer_size_.store(new_write_buffer_size, 29761: std::memory_order_relaxed); 29761: } 29761: } 29761: 29761: bool IsEmpty() const override { return first_seqno_ == 0; } 29761: 29761: SequenceNumber GetFirstSequenceNumber() override { 29761: return first_seqno_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: void SetFirstSequenceNumber(SequenceNumber first_seqno) { 29761: return first_seqno_.store(first_seqno, std::memory_order_relaxed); 29761: } 29761: 29761: SequenceNumber GetEarliestSequenceNumber() override { 29761: 29761: return earliest_seqno_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void SetEarliestSequenceNumber(SequenceNumber earliest_seqno) { 29761: return earliest_seqno_.store(earliest_seqno, std::memory_order_relaxed); 29761: } 29761: 29761: 29761: 29761: SequenceNumber GetCreationSeq() const { return creation_seq_; } 29761: 29761: void SetCreationSeq(SequenceNumber sn) { creation_seq_ = sn; } 29761: 29761: 29761: 29761: 29761: void RefLogContainingPrepSection(uint64_t log); 29761: uint64_t GetMinLogContainingPrepSection() override; 29761: 29761: void MarkImmutable() override { 29761: table_->MarkReadOnly(); 29761: mem_tracker_.DoneAllocating(); 29761: } 29761: 29761: void MarkFlushed() override { table_->MarkFlushed(); } 29761: 29761: 29761: bool IsMergeOperatorSupported() const { 29761: return table_->IsMergeOperatorSupported(); 29761: } 29761: 29761: 29761: 29761: bool IsSnapshotSupported() const { 29761: return table_->IsSnapshotSupported() && !moptions_.inplace_update_support; 29761: } 29761: 29761: MemTableStats ApproximateStats(const Slice& start_ikey, 29761: const Slice& end_ikey) override; 29761: 29761: 29761: port::RWMutex* GetLock(const Slice& key); 29761: 29761: const InternalKeyComparator& GetInternalKeyComparator() const override { 29761: return comparator_.comparator; 29761: } 29761: 29761: const ImmutableMemTableOptions* GetImmutableMemTableOptions() const { 29761: return &moptions_; 29761: } 29761: 29761: uint64_t ApproximateOldestKeyTime() const override { 29761: return oldest_key_time_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: bool ShouldFlushNow(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: void ConstructFragmentedRangeTombstones(); 29761: 29761: bool IsFragmentedRangeTombstonesConstructed() const override { 29761: return fragmented_range_tombstone_list_.get() != nullptr || 29761: is_range_del_table_empty_; 29761: } 29761: 29761: const Slice& GetNewestUDT() const override; 29761: 29761: 29761: static Status VerifyEntryChecksum(const char* entry, 29761: uint32_t protection_bytes_per_key, 29761: bool allow_data_in_errors = false); 29761: 29761: private: 29761: enum FlushStateEnum { FLUSH_NOT_REQUESTED, FLUSH_REQUESTED, FLUSH_SCHEDULED }; 29761: 29761: friend class MemTableIterator; 29761: friend class MemTableBackwardIterator; 29761: friend class MemTableList; 29761: 29761: KeyComparator comparator_; 29761: const ImmutableMemTableOptions moptions_; 29761: const size_t kArenaBlockSize; 29761: AllocTracker mem_tracker_; 29761: ConcurrentArena arena_; 29761: std::unique_ptr table_; 29761: std::unique_ptr range_del_table_; 29761: std::atomic_bool is_range_del_table_empty_; 29761: 29761: 29761: std::atomic data_size_; 29761: std::atomic num_entries_; 29761: std::atomic num_deletes_; 29761: std::atomic num_range_deletes_; 29761: 29761: 29761: std::atomic write_buffer_size_; 29761: 29761: 29761: std::atomic first_seqno_; 29761: 29761: 29761: 29761: std::atomic earliest_seqno_; 29761: 29761: SequenceNumber creation_seq_; 29761: 29761: 29761: 29761: std::atomic min_prep_log_referenced_; 29761: 29761: 29761: std::vector locks_; 29761: 29761: const SliceTransform* const prefix_extractor_; 29761: std::unique_ptr bloom_filter_; 29761: 29761: std::atomic flush_state_; 29761: 29761: SystemClock* clock_; 29761: 29761: 29761: const SliceTransform* insert_with_hint_prefix_extractor_; 29761: 29761: 29761: UnorderedMapH insert_hints_; 29761: 29761: 29761: std::atomic oldest_key_time_; 29761: 29761: 29761: 29761: std::atomic approximate_memory_usage_; 29761: 29761: 29761: 29761: uint32_t memtable_max_range_deletions_ = 0; 29761: 29761: 29761: size_t ts_sz_; 29761: 29761: 29761: bool persist_user_defined_timestamps_; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Slice newest_udt_; 29761: 29761: 29761: void UpdateFlushState(); 29761: 29761: void UpdateOldestKeyTime(); 29761: 29761: void GetFromTable(const LookupKey& key, 29761: SequenceNumber max_covering_tombstone_seq, bool do_merge, 29761: ReadCallback* callback, bool* is_blob_index, 29761: std::string* value, PinnableWideColumns* columns, 29761: std::string* timestamp, Status* s, 29761: MergeContext* merge_context, SequenceNumber* seq, 29761: bool* found_final_value, bool* merge_in_progress); 29761: 29761: 29761: 29761: 29761: 29761: 29761: FragmentedRangeTombstoneIterator* NewRangeTombstoneIteratorInternal( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: bool immutable_memtable); 29761: 29761: 29761: 29761: 29761: std::unique_ptr 29761: fragmented_range_tombstone_list_; 29761: 29761: 29761: 29761: 29761: std::unique_ptr 29761: timestamp_stripping_fragmented_range_tombstone_list_; 29761: 29761: 29761: std::mutex range_del_mutex_; 29761: CoreLocalArray> 29761: cached_range_tombstone_; 29761: 29761: void UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 29761: const Slice& key, const Slice& value, ValueType type, 29761: SequenceNumber s, char* checksum_ptr); 29761: 29761: void MaybeUpdateNewestUDT(const Slice& user_key); 29761: }; 29761: 29761: const char* EncodeKey(std::string* scratch, const Slice& target); 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29761: # 26 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/logging.h" 1 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/logging/logging.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline const char* RocksLogShorterFileName(const char* file) { 29761: 29761: 29761: return file + (sizeof("./logging/logging.h") > 18 ? sizeof("./logging/logging.h") - 18 : 0); 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: template 29761: size_t ApproximateMemoryUsage( 29761: const std::unordered_map& umap) { 29761: using Map = std::unordered_map; 29761: return sizeof(umap) + 29761: 29761: (sizeof(typename Map::value_type) + sizeof(void*)) * umap.size() + 29761: 29761: umap.bucket_count() * sizeof(void*); 29761: } 29761: # 38 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 29761: } 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29761: # 41 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class IteratorWrapperBase { 29761: public: 29761: IteratorWrapperBase() : iter_(nullptr), valid_(false) {} 29761: explicit IteratorWrapperBase(InternalIteratorBase* _iter) 29761: : iter_(nullptr) { 29761: Set(_iter); 29761: } 29761: ~IteratorWrapperBase() {} 29761: InternalIteratorBase* iter() const { return iter_; } 29761: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 29761: if (iter_) { 29761: iter_->SetRangeDelReadSeqno(read_seqno); 29761: } 29761: } 29761: 29761: 29761: 29761: InternalIteratorBase* Set(InternalIteratorBase* _iter) { 29761: InternalIteratorBase* old_iter = iter_; 29761: 29761: iter_ = _iter; 29761: if (iter_ == nullptr) { 29761: valid_ = false; 29761: } else { 29761: Update(); 29761: } 29761: return old_iter; 29761: } 29761: 29761: void DeleteIter(bool is_arena_mode) { 29761: if (iter_) { 29761: # 66 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: if (!is_arena_mode) { 29761: delete iter_; 29761: } else { 29761: iter_->~InternalIteratorBase(); 29761: } 29761: } 29761: } 29761: 29761: 29761: bool Valid() const { 29761: 29761: 29761: 29761: return valid_; 29761: } 29761: Slice key() const { 29761: 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return result_.key; 29761: } 29761: 29761: uint64_t write_unix_time() const { 29761: 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->write_unix_time(); 29761: } 29761: 29761: TValue value() const { 29761: 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->value(); 29761: } 29761: 29761: Status status() const { 29761: 29761: 29761: 29761: 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->status(); 29761: } 29761: bool PrepareValue() { 29761: 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: if (result_.value_prepared) { 29761: return true; 29761: } 29761: if (iter_->PrepareValue()) { 29761: result_.value_prepared = true; 29761: result_.key = iter_->key(); 29761: return true; 29761: } 29761: 29761: 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: !iter_->Valid() 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "!iter_->Valid()" 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: valid_ = false; 29761: return false; 29761: } 29761: void Next() { 29761: 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: valid_ = iter_->NextAndGetResult(&result_); 29761: 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: !valid_ || iter_->status().ok() 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "!valid_ || iter_->status().ok()" 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: } 29761: bool NextAndGetResult(IterateResult* result) { 29761: 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: valid_ = iter_->NextAndGetResult(&result_); 29761: *result = result_; 29761: 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: !valid_ || iter_->status().ok() 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "!valid_ || iter_->status().ok()" 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return valid_; 29761: } 29761: void Prev() { 29761: 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->Prev(); 29761: Update(); 29761: } 29761: void Seek(const Slice& k) { 29761: 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->Seek(k); 29761: Update(); 29761: } 29761: void SeekForPrev(const Slice& k) { 29761: 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->SeekForPrev(k); 29761: Update(); 29761: } 29761: void SeekToFirst() { 29761: 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->SeekToFirst(); 29761: Update(); 29761: } 29761: void SeekToLast() { 29761: 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->SeekToLast(); 29761: Update(); 29761: } 29761: 29761: bool MayBeOutOfLowerBound() { 29761: 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->MayBeOutOfLowerBound(); 29761: } 29761: 29761: IterBoundCheck UpperBoundCheckResult() { 29761: 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return result_.bound_check_result; 29761: } 29761: 29761: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) { 29761: 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->SetPinnedItersMgr(pinned_iters_mgr); 29761: } 29761: bool IsKeyPinned() const { 29761: 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->IsKeyPinned(); 29761: } 29761: bool IsValuePinned() const { 29761: 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->IsValuePinned(); 29761: } 29761: 29761: bool IsValuePrepared() const { return result_.value_prepared; } 29761: 29761: Slice user_key() const { 29761: 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->user_key(); 29761: } 29761: 29761: void UpdateReadaheadState(InternalIteratorBase* old_iter) { 29761: if (old_iter && iter_) { 29761: ReadaheadFileInfo readahead_file_info; 29761: old_iter->GetReadaheadState(&readahead_file_info); 29761: iter_->SetReadaheadState(&readahead_file_info); 29761: } 29761: } 29761: 29761: bool IsDeleteRangeSentinelKey() const { 29761: return iter_->IsDeleteRangeSentinelKey(); 29761: } 29761: 29761: private: 29761: void Update() { 29761: valid_ = iter_->Valid(); 29761: if (valid_) { 29761: 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_->status().ok() 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_->status().ok()" 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: result_.key = iter_->key(); 29761: result_.bound_check_result = IterBoundCheck::kUnknown; 29761: result_.value_prepared = false; 29761: } 29761: } 29761: 29761: InternalIteratorBase* iter_; 29761: IterateResult result_; 29761: bool valid_; 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: using IteratorWrapper = IteratorWrapperBase; 29761: 29761: class Arena; 29761: 29761: template 29761: InternalIteratorBase* NewEmptyInternalIterator(Arena* arena); 29761: 29761: } 29761: # 42 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Arena; 29761: class ArenaWrappedDBIter; 29761: class InternalKeyComparator; 29761: 29761: template 29761: class InternalIteratorBase; 29761: using InternalIterator = InternalIteratorBase; 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29761: InternalIterator* NewMergingIterator(const InternalKeyComparator* comparator, 29761: InternalIterator** children, int n, 29761: Arena* arena = nullptr, 29761: bool prefix_seek_mode = false); 29761: 29761: 29761: 29761: 29761: class MergingIterator; 29761: 29761: 29761: 29761: 29761: 29761: class MergeIteratorBuilder { 29761: public: 29761: 29761: 29761: explicit MergeIteratorBuilder(const InternalKeyComparator* comparator, 29761: Arena* arena, bool prefix_seek_mode = false, 29761: const Slice* iterate_upper_bound = nullptr); 29761: ~MergeIteratorBuilder(); 29761: 29761: 29761: void AddIterator(InternalIterator* iter); 29761: # 72 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29761: void AddPointAndTombstoneIterator( 29761: InternalIterator* point_iter, 29761: std::unique_ptr&& tombstone_iter, 29761: std::unique_ptr** tombstone_iter_ptr = 29761: nullptr); 29761: 29761: 29761: 29761: Arena* GetArena() { return arena; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: InternalIterator* Finish(ArenaWrappedDBIter* db_iter = nullptr); 29761: 29761: private: 29761: MergingIterator* merge_iter; 29761: InternalIterator* first_iter; 29761: bool use_merging_iter; 29761: Arena* arena; 29761: 29761: 29761: std::vector**>> 29761: range_del_iter_ptrs_; 29761: }; 29761: 29761: } 29761: # 43 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: ImmutableMemTableOptions::ImmutableMemTableOptions( 29761: const ImmutableOptions& ioptions, 29761: const MutableCFOptions& mutable_cf_options) 29761: : arena_block_size(mutable_cf_options.arena_block_size), 29761: memtable_prefix_bloom_bits( 29761: static_cast( 29761: static_cast(mutable_cf_options.write_buffer_size) * 29761: mutable_cf_options.memtable_prefix_bloom_size_ratio) * 29761: 8u), 29761: memtable_huge_page_size(mutable_cf_options.memtable_huge_page_size), 29761: memtable_whole_key_filtering( 29761: mutable_cf_options.memtable_whole_key_filtering), 29761: inplace_update_support(ioptions.inplace_update_support), 29761: inplace_update_num_locks(mutable_cf_options.inplace_update_num_locks), 29761: inplace_callback(ioptions.inplace_callback), 29761: max_successive_merges(mutable_cf_options.max_successive_merges), 29761: strict_max_successive_merges( 29761: mutable_cf_options.strict_max_successive_merges), 29761: statistics(ioptions.stats), 29761: merge_operator(ioptions.merge_operator.get()), 29761: info_log(ioptions.logger), 29761: protection_bytes_per_key( 29761: mutable_cf_options.memtable_protection_bytes_per_key), 29761: allow_data_in_errors(ioptions.allow_data_in_errors), 29761: paranoid_memory_checks(mutable_cf_options.paranoid_memory_checks) {} 29761: 29761: MemTable::MemTable(const InternalKeyComparator& cmp, 29761: const ImmutableOptions& ioptions, 29761: const MutableCFOptions& mutable_cf_options, 29761: WriteBufferManager* write_buffer_manager, 29761: SequenceNumber latest_seq, uint32_t column_family_id) 29761: : comparator_(cmp), 29761: moptions_(ioptions, mutable_cf_options), 29761: kArenaBlockSize(Arena::OptimizeBlockSize(moptions_.arena_block_size)), 29761: mem_tracker_(write_buffer_manager), 29761: arena_(moptions_.arena_block_size, 29761: (write_buffer_manager != nullptr && 29761: (write_buffer_manager->enabled() || 29761: write_buffer_manager->cost_to_cache())) 29761: ? &mem_tracker_ 29761: : nullptr, 29761: mutable_cf_options.memtable_huge_page_size), 29761: table_(ioptions.memtable_factory->CreateMemTableRep( 29761: comparator_, &arena_, mutable_cf_options.prefix_extractor.get(), 29761: ioptions.logger, column_family_id)), 29761: range_del_table_(SkipListFactory().CreateMemTableRep( 29761: comparator_, &arena_, nullptr , ioptions.logger, 29761: column_family_id)), 29761: is_range_del_table_empty_(true), 29761: data_size_(0), 29761: num_entries_(0), 29761: num_deletes_(0), 29761: num_range_deletes_(0), 29761: write_buffer_size_(mutable_cf_options.write_buffer_size), 29761: first_seqno_(0), 29761: earliest_seqno_(latest_seq), 29761: creation_seq_(latest_seq), 29761: min_prep_log_referenced_(0), 29761: locks_(moptions_.inplace_update_support 29761: ? moptions_.inplace_update_num_locks 29761: : 0), 29761: prefix_extractor_(mutable_cf_options.prefix_extractor.get()), 29761: flush_state_(FLUSH_NOT_REQUESTED), 29761: clock_(ioptions.clock), 29761: insert_with_hint_prefix_extractor_( 29761: ioptions.memtable_insert_with_hint_prefix_extractor.get()), 29761: oldest_key_time_(std::numeric_limits::max()), 29761: approximate_memory_usage_(0), 29761: memtable_max_range_deletions_( 29761: mutable_cf_options.memtable_max_range_deletions) { 29761: UpdateFlushState(); 29761: 29761: 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: !ShouldScheduleFlush() 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "!ShouldScheduleFlush()" 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: 29761: if ((prefix_extractor_ || moptions_.memtable_whole_key_filtering) && 29761: moptions_.memtable_prefix_bloom_bits > 0) { 29761: bloom_filter_.reset( 29761: new DynamicBloom(&arena_, moptions_.memtable_prefix_bloom_bits, 29761: 6 , 29761: moptions_.memtable_huge_page_size, ioptions.logger)); 29761: } 29761: 29761: 29761: 29761: auto new_cache = std::make_shared(); 29761: size_t size = cached_range_tombstone_.Size(); 29761: for (size_t i = 0; i < size; ++i) { 29761: std::shared_ptr* local_cache_ref_ptr = 29761: cached_range_tombstone_.AccessAtCore(i); 29761: auto new_local_cache_ref = std::make_shared< 29761: const std::shared_ptr>(new_cache); 29761: std::atomic_store_explicit( 29761: local_cache_ref_ptr, 29761: std::shared_ptr(new_local_cache_ref, 29761: new_cache.get()), 29761: std::memory_order_relaxed); 29761: } 29761: const Comparator* ucmp = cmp.user_comparator(); 29761: 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ucmp 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "ucmp" 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: ts_sz_ = ucmp->timestamp_size(); 29761: persist_user_defined_timestamps_ = ioptions.persist_user_defined_timestamps; 29761: } 29761: 29761: MemTable::~MemTable() { 29761: mem_tracker_.FreeMem(); 29761: 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: refs_ == 0 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "refs_ == 0" 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: 29761: size_t MemTable::ApproximateMemoryUsage() { 29761: autovector usages = { 29761: arena_.ApproximateMemoryUsage(), table_->ApproximateMemoryUsage(), 29761: range_del_table_->ApproximateMemoryUsage(), 29761: rocksdb::ApproximateMemoryUsage(insert_hints_)}; 29761: size_t total_usage = 0; 29761: for (size_t usage : usages) { 29761: 29761: 29761: if (usage >= std::numeric_limits::max() - total_usage) { 29761: return std::numeric_limits::max(); 29761: } 29761: total_usage += usage; 29761: } 29761: approximate_memory_usage_.store(total_usage, std::memory_order_relaxed); 29761: 29761: return total_usage; 29761: } 29761: 29761: bool MemTable::ShouldFlushNow() { 29761: 29761: 29761: if (memtable_max_range_deletions_ > 0 && 29761: num_range_deletes_.load(std::memory_order_relaxed) >= 29761: static_cast(memtable_max_range_deletions_)) { 29761: return true; 29761: } 29761: 29761: size_t write_buffer_size = write_buffer_size_.load(std::memory_order_relaxed); 29761: 29761: 29761: 29761: 29761: 29761: 29761: const double kAllowOverAllocationRatio = 0.6; 29761: 29761: 29761: 29761: auto allocated_memory = table_->ApproximateMemoryUsage() + 29761: range_del_table_->ApproximateMemoryUsage() + 29761: arena_.MemoryAllocatedBytes(); 29761: 29761: approximate_memory_usage_.store(allocated_memory, std::memory_order_relaxed); 29761: 29761: 29761: 29761: if (allocated_memory + kArenaBlockSize < 29761: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 29761: return false; 29761: } 29761: 29761: 29761: 29761: if (allocated_memory > 29761: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 29761: return true; 29761: } 29761: # 242 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: return arena_.AllocatedAndUnused() < kArenaBlockSize / 4; 29761: } 29761: 29761: void MemTable::UpdateFlushState() { 29761: auto state = flush_state_.load(std::memory_order_relaxed); 29761: if (state == FLUSH_NOT_REQUESTED && ShouldFlushNow()) { 29761: 29761: 29761: flush_state_.compare_exchange_strong(state, FLUSH_REQUESTED, 29761: std::memory_order_relaxed, 29761: std::memory_order_relaxed); 29761: } 29761: } 29761: 29761: void MemTable::UpdateOldestKeyTime() { 29761: uint64_t oldest_key_time = oldest_key_time_.load(std::memory_order_relaxed); 29761: if (oldest_key_time == std::numeric_limits::max()) { 29761: int64_t current_time = 0; 29761: auto s = clock_->GetCurrentTime(¤t_time); 29761: if (s.ok()) { 29761: 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: current_time >= 0 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "current_time >= 0" 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: oldest_key_time_.compare_exchange_strong( 29761: oldest_key_time, static_cast(current_time), 29761: std::memory_order_relaxed, std::memory_order_relaxed); 29761: } 29761: } 29761: } 29761: 29761: Status MemTable::VerifyEntryChecksum(const char* entry, 29761: uint32_t protection_bytes_per_key, 29761: bool allow_data_in_errors) { 29761: if (protection_bytes_per_key == 0) { 29761: return Status::OK(); 29761: } 29761: uint32_t key_length; 29761: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29761: if (key_ptr == nullptr) { 29761: return Status::Corruption("Unable to parse internal key length"); 29761: } 29761: if (key_length < 8) { 29761: return Status::Corruption("Memtable entry internal key length too short."); 29761: } 29761: Slice user_key = Slice(key_ptr, key_length - 8); 29761: 29761: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29761: ValueType type; 29761: SequenceNumber seq; 29761: UnPackSequenceAndType(tag, &seq, &type); 29761: 29761: uint32_t value_length = 0; 29761: const char* value_ptr = GetVarint32Ptr( 29761: key_ptr + key_length, key_ptr + key_length + 5, &value_length); 29761: if (value_ptr == nullptr) { 29761: return Status::Corruption("Unable to parse internal key value"); 29761: } 29761: Slice value = Slice(value_ptr, value_length); 29761: 29761: const char* checksum_ptr = value_ptr + value_length; 29761: bool match = 29761: ProtectionInfo64() 29761: .ProtectKVO(user_key, value, type) 29761: .ProtectS(seq) 29761: .Verify(static_cast(protection_bytes_per_key), checksum_ptr); 29761: if (!match) { 29761: std::string msg( 29761: "Corrupted memtable entry, per key-value checksum verification " 29761: "failed."); 29761: if (allow_data_in_errors) { 29761: msg.append("Unrecognized value type: " + 29761: std::to_string(static_cast(type)) + ". "); 29761: msg.append("User key: " + user_key.ToString( true) + ". "); 29761: msg.append("seq: " + std::to_string(seq) + "."); 29761: } 29761: return Status::Corruption(msg.c_str()); 29761: } 29761: return Status::OK(); 29761: } 29761: 29761: int MemTable::KeyComparator::operator()(const char* prefix_len_key1, 29761: const char* prefix_len_key2) const { 29761: 29761: Slice k1 = GetLengthPrefixedSlice(prefix_len_key1); 29761: Slice k2 = GetLengthPrefixedSlice(prefix_len_key2); 29761: return comparator.CompareKeySeq(k1, k2); 29761: } 29761: 29761: int MemTable::KeyComparator::operator()( 29761: const char* prefix_len_key, const KeyComparator::DecodedType& key) const { 29761: 29761: Slice a = GetLengthPrefixedSlice(prefix_len_key); 29761: return comparator.CompareKeySeq(a, key); 29761: } 29761: 29761: void MemTableRep::InsertConcurrently(KeyHandle ) { 29761: throw std::runtime_error("concurrent insert not supported"); 29761: } 29761: 29761: Slice MemTableRep::UserKey(const char* key) const { 29761: Slice slice = GetLengthPrefixedSlice(key); 29761: return Slice(slice.data(), slice.size() - 8); 29761: } 29761: 29761: KeyHandle MemTableRep::Allocate(const size_t len, char** buf) { 29761: *buf = allocator_->Allocate(len); 29761: return static_cast(*buf); 29761: } 29761: 29761: 29761: 29761: 29761: const char* EncodeKey(std::string* scratch, const Slice& target) { 29761: scratch->clear(); 29761: PutVarint32(scratch, static_cast(target.size())); 29761: scratch->append(target.data(), target.size()); 29761: return scratch->data(); 29761: } 29761: 29761: class MemTableIterator : public InternalIterator { 29761: public: 29761: enum Kind { kPointEntries, kRangeDelEntries }; 29761: MemTableIterator( 29761: Kind kind, const MemTable& mem, const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping = nullptr, 29761: Arena* arena = nullptr, 29761: const SliceTransform* cf_prefix_extractor = nullptr) 29761: : bloom_(nullptr), 29761: prefix_extractor_(mem.prefix_extractor_), 29761: comparator_(mem.comparator_), 29761: seqno_to_time_mapping_(seqno_to_time_mapping), 29761: status_(Status::OK()), 29761: logger_(mem.moptions_.info_log), 29761: ts_sz_(mem.ts_sz_), 29761: protection_bytes_per_key_(mem.moptions_.protection_bytes_per_key), 29761: valid_(false), 29761: value_pinned_( 29761: !mem.GetImmutableMemTableOptions()->inplace_update_support), 29761: arena_mode_(arena != nullptr), 29761: paranoid_memory_checks_(mem.moptions_.paranoid_memory_checks), 29761: allow_data_in_error(mem.moptions_.allow_data_in_errors) { 29761: if (kind == kRangeDelEntries) { 29761: iter_ = mem.range_del_table_->GetIterator(arena); 29761: } else if (prefix_extractor_ != nullptr && 29761: 29761: 29761: prefix_extractor_ == cf_prefix_extractor && 29761: (read_options.prefix_same_as_start || 29761: (!read_options.total_order_seek && 29761: !read_options.auto_prefix_mode))) { 29761: 29761: 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: kind == kPointEntries 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "kind == kPointEntries" 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: bloom_ = mem.bloom_filter_.get(); 29761: iter_ = mem.table_->GetDynamicPrefixIterator(arena); 29761: } else { 29761: 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: kind == kPointEntries 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "kind == kPointEntries" 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: iter_ = mem.table_->GetIterator(arena); 29761: } 29761: status_.PermitUncheckedError(); 29761: } 29761: 29761: MemTableIterator(const MemTableIterator&) = delete; 29761: void operator=(const MemTableIterator&) = delete; 29761: 29761: ~MemTableIterator() override { 29761: 29761: 29761: 29761: 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: !pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled() 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "!pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled()" 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: if (arena_mode_) { 29761: iter_->~Iterator(); 29761: } else { 29761: delete iter_; 29761: } 29761: status_.PermitUncheckedError(); 29761: } 29761: 29761: 29761: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 29761: pinned_iters_mgr_ = pinned_iters_mgr; 29761: } 29761: PinnedIteratorsManager* pinned_iters_mgr_ = nullptr; 29761: 29761: 29761: bool Valid() const override { 29761: 29761: 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: iter_->Valid() || !(valid_ && status_.ok()) 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "iter_->Valid() || !(valid_ && status_.ok())" 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: return valid_ && status_.ok(); 29761: } 29761: 29761: void Seek(const Slice& k) override { 29761: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: status_ = Status::OK(); 29761: if (bloom_) { 29761: 29761: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 29761: if (prefix_extractor_->InDomain(user_k_without_ts)) { 29761: Slice prefix = prefix_extractor_->Transform(user_k_without_ts); 29761: if (!bloom_->MayContain(prefix)) { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29761: valid_ = false; 29761: return; 29761: } else { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29761: } 29761: } 29761: } 29761: if (paranoid_memory_checks_) { 29761: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 29761: } else { 29761: iter_->Seek(k, nullptr); 29761: } 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: } 29761: void SeekForPrev(const Slice& k) override { 29761: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: status_ = Status::OK(); 29761: if (bloom_) { 29761: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 29761: if (prefix_extractor_->InDomain(user_k_without_ts)) { 29761: if (!bloom_->MayContain( 29761: prefix_extractor_->Transform(user_k_without_ts))) { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29761: valid_ = false; 29761: return; 29761: } else { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29761: } 29761: } 29761: } 29761: if (paranoid_memory_checks_) { 29761: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 29761: } else { 29761: iter_->Seek(k, nullptr); 29761: } 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: if (!Valid() && status().ok()) { 29761: SeekToLast(); 29761: } 29761: while (Valid() && comparator_.comparator.Compare(k, key()) < 0) { 29761: Prev(); 29761: } 29761: } 29761: void SeekToFirst() override { 29761: status_ = Status::OK(); 29761: iter_->SeekToFirst(); 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: } 29761: void SeekToLast() override { 29761: status_ = Status::OK(); 29761: iter_->SeekToLast(); 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: } 29761: void Next() override { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.next_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (paranoid_memory_checks_) { 29761: status_ = iter_->NextAndValidate(allow_data_in_error); 29761: } else { 29761: iter_->Next(); 29761: rocksdb::SyncPoint::GetInstance()->Process("MemTableIterator::Next:0", iter_); 29761: } 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: } 29761: bool NextAndGetResult(IterateResult* result) override { 29761: Next(); 29761: bool is_valid = Valid(); 29761: if (is_valid) { 29761: result->key = key(); 29761: result->bound_check_result = IterBoundCheck::kUnknown; 29761: result->value_prepared = true; 29761: } 29761: return is_valid; 29761: } 29761: void Prev() override { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.prev_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (paranoid_memory_checks_) { 29761: status_ = iter_->PrevAndValidate(allow_data_in_error); 29761: } else { 29761: iter_->Prev(); 29761: } 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: } 29761: Slice key() const override { 29761: 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: return GetLengthPrefixedSlice(iter_->key()); 29761: } 29761: 29761: uint64_t write_unix_time() const override { 29761: 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: ParsedInternalKey pikey; 29761: Status s = ParseInternalKey(key(), &pikey, false); 29761: if (!s.ok()) { 29761: return std::numeric_limits::max(); 29761: } else if (kTypeValuePreferredSeqno == pikey.type) { 29761: return ParsePackedValueForWriteTime(value()); 29761: } else if (!seqno_to_time_mapping_ || seqno_to_time_mapping_->Empty()) { 29761: return std::numeric_limits::max(); 29761: } 29761: return seqno_to_time_mapping_->GetProximalTimeBeforeSeqno(pikey.sequence); 29761: } 29761: 29761: Slice value() const override { 29761: 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: Slice key_slice = GetLengthPrefixedSlice(iter_->key()); 29761: return GetLengthPrefixedSlice(key_slice.data() + key_slice.size()); 29761: } 29761: 29761: Status status() const override { return status_; } 29761: 29761: bool IsKeyPinned() const override { 29761: 29761: return true; 29761: } 29761: 29761: bool IsValuePinned() const override { 29761: 29761: return value_pinned_; 29761: } 29761: 29761: private: 29761: DynamicBloom* bloom_; 29761: const SliceTransform* const prefix_extractor_; 29761: const MemTable::KeyComparator comparator_; 29761: MemTableRep::Iterator* iter_; 29761: 29761: UnownedPtr seqno_to_time_mapping_; 29761: Status status_; 29761: Logger* logger_; 29761: size_t ts_sz_; 29761: uint32_t protection_bytes_per_key_; 29761: bool valid_; 29761: bool value_pinned_; 29761: bool arena_mode_; 29761: const bool paranoid_memory_checks_; 29761: const bool allow_data_in_error; 29761: 29761: void VerifyEntryChecksum() { 29761: if (protection_bytes_per_key_ > 0 && Valid()) { 29761: status_ = MemTable::VerifyEntryChecksum(iter_->key(), 29761: protection_bytes_per_key_); 29761: if (!status_.ok()) { 29761: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((logger_)), ("[%s:" "593" "] " "In MemtableIterator: %s"), RocksLogShorterFileName("./db/memtable.cc"), status_.getState()); 29761: } 29761: } 29761: } 29761: }; 29761: 29761: InternalIterator* MemTable::NewIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, bool ) { 29761: 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: arena != nullptr 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "arena != nullptr" 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: auto mem = arena->AllocateAligned(sizeof(MemTableIterator)); 29761: return new (mem) 29761: MemTableIterator(MemTableIterator::kPointEntries, *this, read_options, 29761: seqno_to_time_mapping, arena, prefix_extractor); 29761: } 29761: 29761: 29761: 29761: class TimestampStrippingIterator : public InternalIterator { 29761: public: 29761: TimestampStrippingIterator( 29761: MemTableIterator::Kind kind, const MemTable& memtable, 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* cf_prefix_extractor, size_t ts_sz) 29761: : arena_mode_(arena != nullptr), kind_(kind), ts_sz_(ts_sz) { 29761: 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ts_sz_ != 0 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "ts_sz_ != 0" 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: void* mem = arena ? arena->AllocateAligned(sizeof(MemTableIterator)) : 29761: operator new(sizeof(MemTableIterator)); 29761: iter_ = new (mem) 29761: MemTableIterator(kind, memtable, read_options, seqno_to_time_mapping, 29761: arena, cf_prefix_extractor); 29761: } 29761: 29761: 29761: TimestampStrippingIterator(const TimestampStrippingIterator&) = delete; 29761: void operator=(const TimestampStrippingIterator&) = delete; 29761: 29761: ~TimestampStrippingIterator() override { 29761: if (arena_mode_) { 29761: iter_->~MemTableIterator(); 29761: } else { 29761: delete iter_; 29761: } 29761: } 29761: 29761: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 29761: iter_->SetPinnedItersMgr(pinned_iters_mgr); 29761: } 29761: 29761: bool Valid() const override { return iter_->Valid(); } 29761: void Seek(const Slice& k) override { 29761: iter_->Seek(k); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: void SeekForPrev(const Slice& k) override { 29761: iter_->SeekForPrev(k); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: void SeekToFirst() override { 29761: iter_->SeekToFirst(); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: void SeekToLast() override { 29761: iter_->SeekToLast(); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: void Next() override { 29761: iter_->Next(); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: bool NextAndGetResult(IterateResult* result) override { 29761: iter_->Next(); 29761: UpdateKeyAndValueBuffer(); 29761: bool is_valid = Valid(); 29761: if (is_valid) { 29761: result->key = key(); 29761: result->bound_check_result = IterBoundCheck::kUnknown; 29761: result->value_prepared = true; 29761: } 29761: return is_valid; 29761: } 29761: void Prev() override { 29761: iter_->Prev(); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: Slice key() const override { 29761: 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: return key_buf_; 29761: } 29761: 29761: uint64_t write_unix_time() const override { return iter_->write_unix_time(); } 29761: Slice value() const override { 29761: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29761: return value_buf_; 29761: } 29761: return iter_->value(); 29761: } 29761: Status status() const override { return iter_->status(); } 29761: bool IsKeyPinned() const override { 29761: 29761: return false; 29761: } 29761: bool IsValuePinned() const override { 29761: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29761: return false; 29761: } 29761: return iter_->IsValuePinned(); 29761: } 29761: 29761: private: 29761: void UpdateKeyAndValueBuffer() { 29761: key_buf_.clear(); 29761: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29761: value_buf_.clear(); 29761: } 29761: if (!Valid()) { 29761: return; 29761: } 29761: Slice original_key = iter_->key(); 29761: ReplaceInternalKeyWithMinTimestamp(&key_buf_, original_key, ts_sz_); 29761: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29761: Slice original_value = iter_->value(); 29761: AppendUserKeyWithMinTimestamp(&value_buf_, original_value, ts_sz_); 29761: } 29761: } 29761: bool arena_mode_; 29761: MemTableIterator::Kind kind_; 29761: size_t ts_sz_; 29761: MemTableIterator* iter_; 29761: std::string key_buf_; 29761: std::string value_buf_; 29761: }; 29761: 29761: InternalIterator* MemTable::NewTimestampStrippingIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, size_t ts_sz) { 29761: 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: arena != nullptr 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "arena != nullptr" 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: auto mem = arena->AllocateAligned(sizeof(TimestampStrippingIterator)); 29761: return new (mem) TimestampStrippingIterator( 29761: MemTableIterator::kPointEntries, *this, read_options, 29761: seqno_to_time_mapping, arena, prefix_extractor, ts_sz); 29761: } 29761: 29761: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIterator( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: bool immutable_memtable) { 29761: if (read_options.ignore_range_deletions || 29761: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29761: return nullptr; 29761: } 29761: return NewRangeTombstoneIteratorInternal(read_options, read_seq, 29761: immutable_memtable); 29761: } 29761: 29761: FragmentedRangeTombstoneIterator* 29761: MemTable::NewTimestampStrippingRangeTombstoneIterator( 29761: const ReadOptions& read_options, SequenceNumber read_seq, size_t ts_sz) { 29761: if (read_options.ignore_range_deletions || 29761: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29761: return nullptr; 29761: } 29761: if (!timestamp_stripping_fragmented_range_tombstone_list_) { 29761: 29761: auto* unfragmented_iter = new TimestampStrippingIterator( 29761: MemTableIterator::kRangeDelEntries, *this, ReadOptions(), 29761: nullptr, nullptr, 29761: nullptr, ts_sz); 29761: 29761: timestamp_stripping_fragmented_range_tombstone_list_ = 29761: std::make_unique( 29761: std::unique_ptr(unfragmented_iter), 29761: comparator_.comparator); 29761: } 29761: return new FragmentedRangeTombstoneIterator( 29761: timestamp_stripping_fragmented_range_tombstone_list_.get(), 29761: comparator_.comparator, read_seq, read_options.timestamp); 29761: } 29761: 29761: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIteratorInternal( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: bool immutable_memtable) { 29761: if (immutable_memtable) { 29761: 29761: 29761: 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: IsFragmentedRangeTombstonesConstructed() 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "IsFragmentedRangeTombstonesConstructed()" 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: return new FragmentedRangeTombstoneIterator( 29761: fragmented_range_tombstone_list_.get(), comparator_.comparator, 29761: read_seq, read_options.timestamp); 29761: } 29761: 29761: 29761: std::shared_ptr cache = 29761: std::atomic_load_explicit(cached_range_tombstone_.Access(), 29761: std::memory_order_relaxed); 29761: 29761: if (!cache->initialized.load(std::memory_order_acquire)) { 29761: cache->reader_mutex.lock(); 29761: if (!cache->tombstones) { 29761: auto* unfragmented_iter = new MemTableIterator( 29761: MemTableIterator::kRangeDelEntries, *this, read_options); 29761: cache->tombstones.reset(new FragmentedRangeTombstoneList( 29761: std::unique_ptr(unfragmented_iter), 29761: comparator_.comparator)); 29761: cache->initialized.store(true, std::memory_order_release); 29761: } 29761: cache->reader_mutex.unlock(); 29761: } 29761: 29761: auto* fragmented_iter = new FragmentedRangeTombstoneIterator( 29761: cache, comparator_.comparator, read_seq, read_options.timestamp); 29761: return fragmented_iter; 29761: } 29761: 29761: void MemTable::ConstructFragmentedRangeTombstones() { 29761: 29761: 29761: 29761: if (!is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29761: 29761: auto* unfragmented_iter = new MemTableIterator( 29761: MemTableIterator::kRangeDelEntries, *this, ReadOptions()); 29761: 29761: fragmented_range_tombstone_list_ = 29761: std::make_unique( 29761: std::unique_ptr(unfragmented_iter), 29761: comparator_.comparator); 29761: } 29761: } 29761: 29761: port::RWMutex* MemTable::GetLock(const Slice& key) { 29761: return &locks_[GetSliceRangedNPHash(key, locks_.size())]; 29761: } 29761: 29761: ReadOnlyMemTable::MemTableStats MemTable::ApproximateStats( 29761: const Slice& start_ikey, const Slice& end_ikey) { 29761: uint64_t entry_count = table_->ApproximateNumEntries(start_ikey, end_ikey); 29761: entry_count += range_del_table_->ApproximateNumEntries(start_ikey, end_ikey); 29761: if (entry_count == 0) { 29761: return {0, 0}; 29761: } 29761: uint64_t n = num_entries_.load(std::memory_order_relaxed); 29761: if (n == 0) { 29761: return {0, 0}; 29761: } 29761: if (entry_count > n) { 29761: 29761: 29761: 29761: entry_count = n; 29761: } 29761: uint64_t data_size = data_size_.load(std::memory_order_relaxed); 29761: return {entry_count * (data_size / n), entry_count}; 29761: } 29761: 29761: Status MemTable::VerifyEncodedEntry(Slice encoded, 29761: const ProtectionInfoKVOS64& kv_prot_info) { 29761: uint32_t ikey_len = 0; 29761: if (!GetVarint32(&encoded, &ikey_len)) { 29761: return Status::Corruption("Unable to parse internal key length"); 29761: } 29761: if (ikey_len < 8 + ts_sz_) { 29761: return Status::Corruption("Internal key length too short"); 29761: } 29761: if (ikey_len > encoded.size()) { 29761: return Status::Corruption("Internal key length too long"); 29761: } 29761: uint32_t value_len = 0; 29761: const size_t user_key_len = ikey_len - 8; 29761: Slice key(encoded.data(), user_key_len); 29761: encoded.remove_prefix(user_key_len); 29761: 29761: uint64_t packed = DecodeFixed64(encoded.data()); 29761: ValueType value_type = kMaxValue; 29761: SequenceNumber sequence_number = kMaxSequenceNumber; 29761: UnPackSequenceAndType(packed, &sequence_number, &value_type); 29761: encoded.remove_prefix(8); 29761: 29761: if (!GetVarint32(&encoded, &value_len)) { 29761: return Status::Corruption("Unable to parse value length"); 29761: } 29761: if (value_len < encoded.size()) { 29761: return Status::Corruption("Value length too short"); 29761: } 29761: if (value_len > encoded.size()) { 29761: return Status::Corruption("Value length too long"); 29761: } 29761: Slice value(encoded.data(), value_len); 29761: 29761: return kv_prot_info.StripS(sequence_number) 29761: .StripKVO(key, value, value_type) 29761: .GetStatus(); 29761: } 29761: 29761: void MemTable::UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 29761: const Slice& key, const Slice& value, 29761: ValueType type, SequenceNumber s, 29761: char* checksum_ptr) { 29761: if (moptions_.protection_bytes_per_key == 0) { 29761: return; 29761: } 29761: 29761: if (kv_prot_info == nullptr) { 29761: ProtectionInfo64() 29761: .ProtectKVO(key, value, type) 29761: .ProtectS(s) 29761: .Encode(static_cast(moptions_.protection_bytes_per_key), 29761: checksum_ptr); 29761: } else { 29761: kv_prot_info->Encode( 29761: static_cast(moptions_.protection_bytes_per_key), checksum_ptr); 29761: } 29761: } 29761: 29761: Status MemTable::Add(SequenceNumber s, ValueType type, 29761: const Slice& key, 29761: const Slice& value, 29761: const ProtectionInfoKVOS64* kv_prot_info, 29761: bool allow_concurrent, 29761: MemTablePostProcessInfo* post_process_info, void** hint) { 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t key_size = static_cast(key.size()); 29761: uint32_t val_size = static_cast(value.size()); 29761: uint32_t internal_key_size = key_size + 8; 29761: const uint32_t encoded_len = VarintLength(internal_key_size) + 29761: internal_key_size + VarintLength(val_size) + 29761: val_size + moptions_.protection_bytes_per_key; 29761: char* buf = nullptr; 29761: std::unique_ptr& table = 29761: type == kTypeRangeDeletion ? range_del_table_ : table_; 29761: KeyHandle handle = table->Allocate(encoded_len, &buf); 29761: 29761: char* p = EncodeVarint32(buf, internal_key_size); 29761: memcpy(p, key.data(), key_size); 29761: Slice key_slice(p, key_size); 29761: p += key_size; 29761: uint64_t packed = PackSequenceAndType(s, type); 29761: EncodeFixed64(p, packed); 29761: p += 8; 29761: p = EncodeVarint32(p, val_size); 29761: memcpy(p, value.data(), val_size); 29761: 29761: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: (unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len 29761: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "(unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len" 29761: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: 29761: # 942 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: UpdateEntryChecksum(kv_prot_info, key, value, type, s, 29761: buf + encoded_len - moptions_.protection_bytes_per_key); 29761: Slice encoded(buf, encoded_len - moptions_.protection_bytes_per_key); 29761: if (kv_prot_info != nullptr) { 29761: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:Encoded", &encoded); 29761: Status status = VerifyEncodedEntry(encoded, *kv_prot_info); 29761: if (!status.ok()) { 29761: return status; 29761: } 29761: } 29761: 29761: Slice key_without_ts = StripTimestampFromUserKey(key, ts_sz_); 29761: 29761: if (!allow_concurrent) { 29761: 29761: 29761: if (table == table_ && insert_with_hint_prefix_extractor_ != nullptr && 29761: insert_with_hint_prefix_extractor_->InDomain(key_slice)) { 29761: Slice prefix = insert_with_hint_prefix_extractor_->Transform(key_slice); 29761: bool res = table->InsertKeyWithHint(handle, &insert_hints_[prefix]); 29761: if ((__builtin_expect((!res), 0))) { 29761: return Status::TryAgain("key+seq exists"); 29761: } 29761: } else { 29761: bool res = table->InsertKey(handle); 29761: if ((__builtin_expect((!res), 0))) { 29761: return Status::TryAgain("key+seq exists"); 29761: } 29761: } 29761: 29761: 29761: 29761: num_entries_.store(num_entries_.load(std::memory_order_relaxed) + 1, 29761: std::memory_order_relaxed); 29761: data_size_.store(data_size_.load(std::memory_order_relaxed) + encoded_len, 29761: std::memory_order_relaxed); 29761: if (type == kTypeDeletion || type == kTypeSingleDeletion || 29761: type == kTypeDeletionWithTimestamp) { 29761: num_deletes_.store(num_deletes_.load(std::memory_order_relaxed) + 1, 29761: std::memory_order_relaxed); 29761: } else if (type == kTypeRangeDeletion) { 29761: uint64_t val = num_range_deletes_.load(std::memory_order_relaxed) + 1; 29761: num_range_deletes_.store(val, std::memory_order_relaxed); 29761: } 29761: 29761: if (bloom_filter_ && prefix_extractor_ && 29761: prefix_extractor_->InDomain(key_without_ts)) { 29761: bloom_filter_->Add(prefix_extractor_->Transform(key_without_ts)); 29761: } 29761: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 29761: bloom_filter_->Add(key_without_ts); 29761: } 29761: 29761: 29761: 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: first_seqno_ == 0 || s >= first_seqno_ 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "first_seqno_ == 0 || s >= first_seqno_" 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (first_seqno_ == 0) { 29761: first_seqno_.store(s, std::memory_order_relaxed); 29761: 29761: if (earliest_seqno_ == kMaxSequenceNumber) { 29761: earliest_seqno_.store(GetFirstSequenceNumber(), 29761: std::memory_order_relaxed); 29761: } 29761: 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: first_seqno_.load() >= earliest_seqno_.load() 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "first_seqno_.load() >= earliest_seqno_.load()" 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: post_process_info == nullptr 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "post_process_info == nullptr" 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: 29761: MaybeUpdateNewestUDT(key_slice); 29761: UpdateFlushState(); 29761: } else { 29761: bool res = (hint == nullptr) 29761: ? table->InsertKeyConcurrently(handle) 29761: : table->InsertKeyWithHintConcurrently(handle, hint); 29761: if ((__builtin_expect((!res), 0))) { 29761: return Status::TryAgain("key+seq exists"); 29761: } 29761: 29761: 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: post_process_info != nullptr 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "post_process_info != nullptr" 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: post_process_info->num_entries++; 29761: post_process_info->data_size += encoded_len; 29761: if (type == kTypeDeletion) { 29761: post_process_info->num_deletes++; 29761: } 29761: 29761: if (bloom_filter_ && prefix_extractor_ && 29761: prefix_extractor_->InDomain(key_without_ts)) { 29761: bloom_filter_->AddConcurrently( 29761: prefix_extractor_->Transform(key_without_ts)); 29761: } 29761: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 29761: bloom_filter_->AddConcurrently(key_without_ts); 29761: } 29761: 29761: 29761: uint64_t cur_seq_num = first_seqno_.load(std::memory_order_relaxed); 29761: while ((cur_seq_num == 0 || s < cur_seq_num) && 29761: !first_seqno_.compare_exchange_weak(cur_seq_num, s)) { 29761: } 29761: uint64_t cur_earliest_seqno = 29761: earliest_seqno_.load(std::memory_order_relaxed); 29761: while ( 29761: (cur_earliest_seqno == kMaxSequenceNumber || s < cur_earliest_seqno) && 29761: !earliest_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) { 29761: } 29761: } 29761: if (type == kTypeRangeDeletion) { 29761: auto new_cache = std::make_shared(); 29761: size_t size = cached_range_tombstone_.Size(); 29761: if (allow_concurrent) { 29761: post_process_info->num_range_deletes++; 29761: range_del_mutex_.lock(); 29761: } 29761: for (size_t i = 0; i < size; ++i) { 29761: std::shared_ptr* local_cache_ref_ptr = 29761: cached_range_tombstone_.AccessAtCore(i); 29761: auto new_local_cache_ref = std::make_shared< 29761: const std::shared_ptr>(new_cache); 29761: 29761: 29761: 29761: 29761: 29761: std::atomic_store_explicit( 29761: local_cache_ref_ptr, 29761: std::shared_ptr( 29761: new_local_cache_ref, new_cache.get()), 29761: std::memory_order_relaxed); 29761: } 29761: 29761: if (allow_concurrent) { 29761: range_del_mutex_.unlock(); 29761: } 29761: is_range_del_table_empty_.store(false, std::memory_order_relaxed); 29761: } 29761: UpdateOldestKeyTime(); 29761: 29761: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:BeforeReturn:Encoded", &encoded); 29761: return Status::OK(); 29761: } 29761: 29761: 29761: namespace { 29761: 29761: struct Saver { 29761: Status* status; 29761: const LookupKey* key; 29761: bool* found_final_value; 29761: bool* merge_in_progress; 29761: std::string* value; 29761: PinnableWideColumns* columns; 29761: SequenceNumber seq; 29761: std::string* timestamp; 29761: const MergeOperator* merge_operator; 29761: 29761: MergeContext* merge_context; 29761: SequenceNumber max_covering_tombstone_seq; 29761: MemTable* mem; 29761: Logger* logger; 29761: Statistics* statistics; 29761: bool inplace_update_support; 29761: bool do_merge; 29761: SystemClock* clock; 29761: 29761: ReadCallback* callback_; 29761: bool* is_blob_index; 29761: bool allow_data_in_errors; 29761: uint32_t protection_bytes_per_key; 29761: bool CheckCallback(SequenceNumber _seq) { 29761: if (callback_) { 29761: return callback_->IsVisible(_seq); 29761: } 29761: return true; 29761: } 29761: }; 29761: } 29761: 29761: static bool SaveValue(void* arg, const char* entry) { 29761: Saver* s = static_cast(arg); 29761: 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s != nullptr 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s != nullptr" 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: !s->value || !s->columns 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "!s->value || !s->columns" 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: !*(s->found_final_value) 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "!*(s->found_final_value)" 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s->status->ok() || s->status->IsMergeInProgress() 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s->status->ok() || s->status->IsMergeInProgress()" 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: MergeContext* merge_context = s->merge_context; 29761: SequenceNumber max_covering_tombstone_seq = s->max_covering_tombstone_seq; 29761: const MergeOperator* merge_operator = s->merge_operator; 29761: 29761: 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: merge_context != nullptr 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "merge_context != nullptr" 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: 29761: 29761: uint32_t key_length = 0; 29761: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29761: 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: key_length >= 8 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "key_length >= 8" 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: Slice user_key_slice = Slice(key_ptr, key_length - 8); 29761: const Comparator* user_comparator = 29761: s->mem->GetInternalKeyComparator().user_comparator(); 29761: size_t ts_sz = user_comparator->timestamp_size(); 29761: if (ts_sz && s->timestamp && max_covering_tombstone_seq > 0) { 29761: 29761: 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s->timestamp->size() == ts_sz 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s->timestamp->size() == ts_sz" 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: if (user_comparator->EqualWithoutTimestamp(user_key_slice, 29761: s->key->user_key())) { 29761: 29761: rocksdb::SyncPoint::GetInstance()->Process("Memtable::SaveValue:Found:entry", &entry); 29761: std::optional read_lock; 29761: if (s->inplace_update_support) { 29761: read_lock.emplace(s->mem->GetLock(s->key->user_key())); 29761: } 29761: 29761: if (s->protection_bytes_per_key > 0) { 29761: *(s->status) = MemTable::VerifyEntryChecksum( 29761: entry, s->protection_bytes_per_key, s->allow_data_in_errors); 29761: if (!s->status->ok()) { 29761: *(s->found_final_value) = true; 29761: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1160" "] " "In SaveValue: %s"), RocksLogShorterFileName("./db/memtable.cc"), s->status->getState()); 29761: 29761: return false; 29761: } 29761: } 29761: 29761: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29761: ValueType type; 29761: SequenceNumber seq; 29761: UnPackSequenceAndType(tag, &seq, &type); 29761: 29761: if (!s->CheckCallback(seq)) { 29761: return true; 29761: } 29761: 29761: if (s->seq == kMaxSequenceNumber) { 29761: s->seq = seq; 29761: if (s->seq > max_covering_tombstone_seq) { 29761: if (ts_sz && s->timestamp != nullptr) { 29761: 29761: 29761: 29761: 29761: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 29761: s->timestamp->assign(ts.data(), ts_sz); 29761: } 29761: } else { 29761: s->seq = max_covering_tombstone_seq; 29761: } 29761: } 29761: 29761: if (ts_sz > 0 && s->timestamp != nullptr) { 29761: if (!s->timestamp->empty()) { 29761: 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ts_sz == s->timestamp->size() 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "ts_sz == s->timestamp->size()" 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: 29761: const std::string kMaxTs(ts_sz, '\xff'); 29761: if (s->timestamp->empty() || 29761: user_comparator->CompareTimestamp(*(s->timestamp), kMaxTs) == 0) { 29761: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 29761: s->timestamp->assign(ts.data(), ts_sz); 29761: } 29761: } 29761: 29761: if ((type == kTypeValue || type == kTypeMerge || type == kTypeBlobIndex || 29761: type == kTypeWideColumnEntity || type == kTypeDeletion || 29761: type == kTypeSingleDeletion || type == kTypeDeletionWithTimestamp || 29761: type == kTypeValuePreferredSeqno) && 29761: max_covering_tombstone_seq > seq) { 29761: type = kTypeRangeDeletion; 29761: } 29761: switch (type) { 29761: case kTypeBlobIndex: { 29761: if (!s->do_merge) { 29761: *(s->status) = Status::NotSupported( 29761: "GetMergeOperands not supported by stacked BlobDB"); 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: 29761: if (*(s->merge_in_progress)) { 29761: *(s->status) = Status::NotSupported( 29761: "Merge operator not supported by stacked BlobDB"); 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: 29761: if (s->is_blob_index == nullptr) { 29761: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1228" "] " "Encountered unexpected blob index."), RocksLogShorterFileName("./db/memtable.cc")); 29761: *(s->status) = Status::NotSupported( 29761: "Encountered unexpected blob index. Please open DB with " 29761: "ROCKSDB_NAMESPACE::blob_db::BlobDB."); 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: 29761: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29761: 29761: *(s->status) = Status::OK(); 29761: 29761: if (s->value) { 29761: s->value->assign(v.data(), v.size()); 29761: } else if (s->columns) { 29761: s->columns->SetPlainValue(v); 29761: } 29761: 29761: *(s->found_final_value) = true; 29761: *(s->is_blob_index) = true; 29761: 29761: return false; 29761: } 29761: case kTypeValue: 29761: case kTypeValuePreferredSeqno: { 29761: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29761: if (type == kTypeValuePreferredSeqno) { 29761: v = ParsePackedValueForValue(v); 29761: } 29761: 29761: ReadOnlyMemTable::HandleTypeValue( 29761: s->key->user_key(), v, s->inplace_update_support == false, 29761: s->do_merge, *(s->merge_in_progress), merge_context, 29761: s->merge_operator, s->clock, s->statistics, s->logger, s->status, 29761: s->value, s->columns, s->is_blob_index); 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: case kTypeWideColumnEntity: { 29761: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29761: 29761: *(s->status) = Status::OK(); 29761: 29761: if (!s->do_merge) { 29761: 29761: 29761: 29761: Slice value_of_default; 29761: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 29761: v, value_of_default); 29761: 29761: if (s->status->ok()) { 29761: merge_context->PushOperand( 29761: value_of_default, 29761: s->inplace_update_support == false ); 29761: } 29761: } else if (*(s->merge_in_progress)) { 29761: 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s->do_merge 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s->do_merge" 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: if (s->value || s->columns) { 29761: 29761: 29761: 29761: *(s->status) = MergeHelper::TimedFullMerge( 29761: merge_operator, s->key->user_key(), MergeHelper::kWideBaseValue, 29761: v, merge_context->GetOperands(), s->logger, s->statistics, 29761: s->clock, true, 29761: nullptr, s->value, s->columns); 29761: } 29761: } else if (s->value) { 29761: Slice value_of_default; 29761: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 29761: v, value_of_default); 29761: if (s->status->ok()) { 29761: s->value->assign(value_of_default.data(), value_of_default.size()); 29761: } 29761: } else if (s->columns) { 29761: *(s->status) = s->columns->SetWideColumnValue(v); 29761: } 29761: 29761: *(s->found_final_value) = true; 29761: 29761: if (s->is_blob_index != nullptr) { 29761: *(s->is_blob_index) = false; 29761: } 29761: 29761: return false; 29761: } 29761: case kTypeDeletion: 29761: case kTypeDeletionWithTimestamp: 29761: case kTypeSingleDeletion: 29761: case kTypeRangeDeletion: { 29761: ReadOnlyMemTable::HandleTypeDeletion( 29761: s->key->user_key(), *(s->merge_in_progress), s->merge_context, 29761: s->merge_operator, s->clock, s->statistics, s->logger, s->status, 29761: s->value, s->columns); 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: case kTypeMerge: { 29761: if (!merge_operator) { 29761: *(s->status) = Status::InvalidArgument( 29761: "merge_operator is not properly initialized."); 29761: 29761: 29761: 29761: 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29761: *(s->merge_in_progress) = true; 29761: merge_context->PushOperand( 29761: v, s->inplace_update_support == false ); 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.internal_merge_point_lookup_count += 1; } static_assert(true, "semicolon required"); 29761: 29761: if (s->do_merge && merge_operator->ShouldMerge( 29761: merge_context->GetOperandsDirectionBackward())) { 29761: if (s->value || s->columns) { 29761: 29761: 29761: 29761: *(s->status) = MergeHelper::TimedFullMerge( 29761: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 29761: merge_context->GetOperands(), s->logger, s->statistics, 29761: s->clock, true, 29761: nullptr, s->value, s->columns); 29761: } 29761: 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: if (merge_context->get_merge_operands_options != nullptr && 29761: merge_context->get_merge_operands_options->continue_cb != nullptr && 29761: !merge_context->get_merge_operands_options->continue_cb(v)) { 29761: 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: 29761: return true; 29761: } 29761: default: { 29761: std::string msg("Corrupted value not expected."); 29761: if (s->allow_data_in_errors) { 29761: msg.append("Unrecognized value type: " + 29761: std::to_string(static_cast(type)) + ". "); 29761: msg.append("User key: " + user_key_slice.ToString( true) + 29761: ". "); 29761: msg.append("seq: " + std::to_string(seq) + "."); 29761: } 29761: *(s->found_final_value) = true; 29761: *(s->status) = Status::Corruption(msg.c_str()); 29761: return false; 29761: } 29761: } 29761: } 29761: 29761: 29761: return false; 29761: } 29761: 29761: bool MemTable::Get(const LookupKey& key, std::string* value, 29761: PinnableWideColumns* columns, std::string* timestamp, 29761: Status* s, MergeContext* merge_context, 29761: SequenceNumber* max_covering_tombstone_seq, 29761: SequenceNumber* seq, const ReadOptions& read_opts, 29761: bool immutable_memtable, ReadCallback* callback, 29761: bool* is_blob_index, bool do_merge) { 29761: 29761: if (IsEmpty()) { 29761: 29761: return false; 29761: } 29761: 29761: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 29761: 29761: std::unique_ptr range_del_iter( 29761: NewRangeTombstoneIterator(read_opts, 29761: GetInternalKeySeqno(key.internal_key()), 29761: immutable_memtable)); 29761: if (range_del_iter != nullptr) { 29761: SequenceNumber covering_seq = 29761: range_del_iter->MaxCoveringTombstoneSeqnum(key.user_key()); 29761: if (covering_seq > *max_covering_tombstone_seq) { 29761: *max_covering_tombstone_seq = covering_seq; 29761: if (timestamp) { 29761: 29761: 29761: timestamp->assign(range_del_iter->timestamp().data(), 29761: range_del_iter->timestamp().size()); 29761: } 29761: } 29761: } 29761: 29761: bool found_final_value = false; 29761: bool merge_in_progress = s->IsMergeInProgress(); 29761: bool may_contain = true; 29761: Slice user_key_without_ts = StripTimestampFromUserKey(key.user_key(), ts_sz_); 29761: bool bloom_checked = false; 29761: if (bloom_filter_) { 29761: 29761: 29761: if (moptions_.memtable_whole_key_filtering) { 29761: may_contain = bloom_filter_->MayContain(user_key_without_ts); 29761: bloom_checked = true; 29761: } else { 29761: 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: prefix_extractor_ 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "prefix_extractor_" 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (prefix_extractor_->InDomain(user_key_without_ts)) { 29761: may_contain = bloom_filter_->MayContain( 29761: prefix_extractor_->Transform(user_key_without_ts)); 29761: bloom_checked = true; 29761: } 29761: } 29761: } 29761: 29761: if (bloom_filter_ && !may_contain) { 29761: 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29761: *seq = kMaxSequenceNumber; 29761: } else { 29761: if (bloom_checked) { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29761: } 29761: GetFromTable(key, *max_covering_tombstone_seq, do_merge, callback, 29761: is_blob_index, value, columns, timestamp, s, merge_context, 29761: seq, &found_final_value, &merge_in_progress); 29761: } 29761: 29761: 29761: 29761: if (!found_final_value && merge_in_progress) { 29761: if (s->ok()) { 29761: *s = Status::MergeInProgress(); 29761: } else { 29761: 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s->IsMergeInProgress() 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s->IsMergeInProgress()" 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: } 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: return found_final_value; 29761: } 29761: 29761: void MemTable::GetFromTable(const LookupKey& key, 29761: SequenceNumber max_covering_tombstone_seq, 29761: bool do_merge, ReadCallback* callback, 29761: bool* is_blob_index, std::string* value, 29761: PinnableWideColumns* columns, 29761: std::string* timestamp, Status* s, 29761: MergeContext* merge_context, SequenceNumber* seq, 29761: bool* found_final_value, bool* merge_in_progress) { 29761: Saver saver; 29761: saver.status = s; 29761: saver.found_final_value = found_final_value; 29761: saver.merge_in_progress = merge_in_progress; 29761: saver.key = &key; 29761: saver.value = value; 29761: saver.columns = columns; 29761: saver.timestamp = timestamp; 29761: saver.seq = kMaxSequenceNumber; 29761: saver.mem = this; 29761: saver.merge_context = merge_context; 29761: saver.max_covering_tombstone_seq = max_covering_tombstone_seq; 29761: saver.merge_operator = moptions_.merge_operator; 29761: saver.logger = moptions_.info_log; 29761: saver.inplace_update_support = moptions_.inplace_update_support; 29761: saver.statistics = moptions_.statistics; 29761: saver.clock = clock_; 29761: saver.callback_ = callback; 29761: saver.is_blob_index = is_blob_index; 29761: saver.do_merge = do_merge; 29761: saver.allow_data_in_errors = moptions_.allow_data_in_errors; 29761: saver.protection_bytes_per_key = moptions_.protection_bytes_per_key; 29761: 29761: if (!moptions_.paranoid_memory_checks) { 29761: table_->Get(key, &saver, SaveValue); 29761: } else { 29761: Status check_s = table_->GetAndValidate(key, &saver, SaveValue, 29761: moptions_.allow_data_in_errors); 29761: if (check_s.IsCorruption()) { 29761: *(saver.status) = check_s; 29761: 29761: *(saver.found_final_value) = true; 29761: } 29761: } 29761: 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s->ok() || s->IsMergeInProgress() || *found_final_value 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s->ok() || s->IsMergeInProgress() || *found_final_value" 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: *seq = saver.seq; 29761: } 29761: 29761: void MemTable::MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29761: ReadCallback* callback, bool immutable_memtable) { 29761: 29761: if (IsEmpty()) { 29761: 29761: return; 29761: } 29761: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 29761: 29761: 29761: 29761: 29761: bool no_range_del = read_options.ignore_range_deletions || 29761: is_range_del_table_empty_.load(std::memory_order_relaxed); 29761: MultiGetRange temp_range(*range, range->begin(), range->end()); 29761: if (bloom_filter_ && no_range_del) { 29761: bool whole_key = 29761: !prefix_extractor_ || moptions_.memtable_whole_key_filtering; 29761: std::array bloom_keys; 29761: std::array may_match; 29761: std::array range_indexes; 29761: int num_keys = 0; 29761: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 29761: if (whole_key) { 29761: bloom_keys[num_keys] = iter->ukey_without_ts; 29761: range_indexes[num_keys++] = iter.index(); 29761: } else if (prefix_extractor_->InDomain(iter->ukey_without_ts)) { 29761: bloom_keys[num_keys] = 29761: prefix_extractor_->Transform(iter->ukey_without_ts); 29761: range_indexes[num_keys++] = iter.index(); 29761: } 29761: } 29761: bloom_filter_->MayContain(num_keys, bloom_keys.data(), may_match.data()); 29761: for (int i = 0; i < num_keys; ++i) { 29761: if (!may_match[i]) { 29761: temp_range.SkipIndex(range_indexes[i]); 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29761: } else { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29761: } 29761: } 29761: } 29761: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 29761: bool found_final_value{false}; 29761: bool merge_in_progress = iter->s->IsMergeInProgress(); 29761: if (!no_range_del) { 29761: std::unique_ptr range_del_iter( 29761: NewRangeTombstoneIteratorInternal( 29761: read_options, GetInternalKeySeqno(iter->lkey->internal_key()), 29761: immutable_memtable)); 29761: SequenceNumber covering_seq = 29761: range_del_iter->MaxCoveringTombstoneSeqnum(iter->lkey->user_key()); 29761: if (covering_seq > iter->max_covering_tombstone_seq) { 29761: iter->max_covering_tombstone_seq = covering_seq; 29761: if (iter->timestamp) { 29761: 29761: 29761: iter->timestamp->assign(range_del_iter->timestamp().data(), 29761: range_del_iter->timestamp().size()); 29761: } 29761: } 29761: } 29761: SequenceNumber dummy_seq; 29761: GetFromTable(*(iter->lkey), iter->max_covering_tombstone_seq, true, 29761: callback, &iter->is_blob_index, 29761: iter->value ? iter->value->GetSelf() : nullptr, iter->columns, 29761: iter->timestamp, iter->s, &(iter->merge_context), &dummy_seq, 29761: &found_final_value, &merge_in_progress); 29761: 29761: if (!found_final_value && merge_in_progress) { 29761: if (iter->s->ok()) { 29761: *(iter->s) = Status::MergeInProgress(); 29761: } else { 29761: 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: iter->s->IsMergeInProgress() 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "iter->s->IsMergeInProgress()" 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: } 29761: 29761: if (found_final_value || 29761: (!iter->s->ok() && !iter->s->IsMergeInProgress())) { 29761: 29761: 29761: 29761: 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: found_final_value 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "found_final_value" 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (iter->value) { 29761: iter->value->PinSelf(); 29761: range->AddValueSize(iter->value->size()); 29761: } else { 29761: 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: iter->columns 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "iter->columns" 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: range->AddValueSize(iter->columns->serialized_size()); 29761: } 29761: 29761: range->MarkKeyDone(iter); 29761: RecordTick(moptions_.statistics, MEMTABLE_HIT); 29761: if (range->GetValueSize() > read_options.value_size_soft_limit) { 29761: 29761: for (auto range_iter = range->begin(); range_iter != range->end(); 29761: ++range_iter) { 29761: range->MarkKeyDone(range_iter); 29761: *(range_iter->s) = Status::Aborted(); 29761: } 29761: break; 29761: } 29761: } 29761: } 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: } 29761: 29761: Status MemTable::Update(SequenceNumber seq, ValueType value_type, 29761: const Slice& key, const Slice& value, 29761: const ProtectionInfoKVOS64* kv_prot_info) { 29761: LookupKey lkey(key, seq); 29761: Slice mem_key = lkey.memtable_key(); 29761: 29761: std::unique_ptr iter( 29761: table_->GetDynamicPrefixIterator()); 29761: iter->Seek(lkey.internal_key(), mem_key.data()); 29761: 29761: if (iter->Valid()) { 29761: 29761: 29761: 29761: 29761: const char* entry = iter->key(); 29761: uint32_t key_length = 0; 29761: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29761: if (comparator_.comparator.user_comparator()->Equal( 29761: Slice(key_ptr, key_length - 8), lkey.user_key())) { 29761: 29761: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29761: ValueType type; 29761: SequenceNumber existing_seq; 29761: UnPackSequenceAndType(tag, &existing_seq, &type); 29761: 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: existing_seq != seq 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "existing_seq != seq" 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (type == value_type) { 29761: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 29761: uint32_t prev_size = static_cast(prev_value.size()); 29761: uint32_t new_size = static_cast(value.size()); 29761: 29761: 29761: if (new_size <= prev_size) { 29761: WriteLock wl(GetLock(lkey.user_key())); 29761: char* p = 29761: EncodeVarint32(const_cast(key_ptr) + key_length, new_size); 29761: memcpy(p, value.data(), value.size()); 29761: 29761: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: (unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size()) 29761: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "(unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size())" 29761: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: 29761: 29761: # 1662 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 29761: if (kv_prot_info != nullptr) { 29761: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29761: 29761: updated_kv_prot_info.UpdateS(seq, existing_seq); 29761: UpdateEntryChecksum(&updated_kv_prot_info, key, value, type, 29761: existing_seq, p + value.size()); 29761: Slice encoded(entry, p + value.size() - entry); 29761: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 29761: } else { 29761: UpdateEntryChecksum(nullptr, key, value, type, existing_seq, 29761: p + value.size()); 29761: } 29761: return Status::OK(); 29761: } 29761: } 29761: } 29761: } 29761: 29761: 29761: return Add(seq, value_type, key, value, kv_prot_info); 29761: } 29761: 29761: Status MemTable::UpdateCallback(SequenceNumber seq, const Slice& key, 29761: const Slice& delta, 29761: const ProtectionInfoKVOS64* kv_prot_info) { 29761: LookupKey lkey(key, seq); 29761: Slice memkey = lkey.memtable_key(); 29761: 29761: std::unique_ptr iter( 29761: table_->GetDynamicPrefixIterator()); 29761: iter->Seek(lkey.internal_key(), memkey.data()); 29761: 29761: if (iter->Valid()) { 29761: 29761: 29761: 29761: 29761: const char* entry = iter->key(); 29761: uint32_t key_length = 0; 29761: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29761: if (comparator_.comparator.user_comparator()->Equal( 29761: Slice(key_ptr, key_length - 8), lkey.user_key())) { 29761: 29761: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29761: ValueType type; 29761: uint64_t existing_seq; 29761: UnPackSequenceAndType(tag, &existing_seq, &type); 29761: if (type == kTypeValue) { 29761: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 29761: uint32_t prev_size = static_cast(prev_value.size()); 29761: 29761: char* prev_buffer = const_cast(prev_value.data()); 29761: uint32_t new_prev_size = prev_size; 29761: 29761: std::string str_value; 29761: WriteLock wl(GetLock(lkey.user_key())); 29761: auto status = moptions_.inplace_callback(prev_buffer, &new_prev_size, 29761: delta, &str_value); 29761: if (status == UpdateStatus::UPDATED_INPLACE) { 29761: 29761: 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: new_prev_size <= prev_size 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "new_prev_size <= prev_size" 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (new_prev_size < prev_size) { 29761: 29761: char* p = EncodeVarint32(const_cast(key_ptr) + key_length, 29761: new_prev_size); 29761: if (VarintLength(new_prev_size) < VarintLength(prev_size)) { 29761: 29761: memcpy(p, prev_buffer, new_prev_size); 29761: prev_buffer = p; 29761: } 29761: } 29761: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 29761: UpdateFlushState(); 29761: Slice new_value(prev_buffer, new_prev_size); 29761: if (kv_prot_info != nullptr) { 29761: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29761: 29761: updated_kv_prot_info.UpdateS(seq, existing_seq); 29761: updated_kv_prot_info.UpdateV(delta, new_value); 29761: Slice encoded(entry, prev_buffer + new_prev_size - entry); 29761: UpdateEntryChecksum(&updated_kv_prot_info, key, new_value, type, 29761: existing_seq, prev_buffer + new_prev_size); 29761: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 29761: } else { 29761: UpdateEntryChecksum(nullptr, key, new_value, type, existing_seq, 29761: prev_buffer + new_prev_size); 29761: } 29761: return Status::OK(); 29761: } else if (status == UpdateStatus::UPDATED) { 29761: Status s; 29761: if (kv_prot_info != nullptr) { 29761: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29761: updated_kv_prot_info.UpdateV(delta, str_value); 29761: s = Add(seq, kTypeValue, key, Slice(str_value), 29761: &updated_kv_prot_info); 29761: } else { 29761: s = Add(seq, kTypeValue, key, Slice(str_value), 29761: nullptr ); 29761: } 29761: RecordTick(moptions_.statistics, NUMBER_KEYS_WRITTEN); 29761: UpdateFlushState(); 29761: return s; 29761: } else if (status == UpdateStatus::UPDATE_FAILED) { 29761: 29761: 29761: UpdateFlushState(); 29761: return Status::OK(); 29761: } 29761: } 29761: } 29761: } 29761: 29761: return Status::NotFound(); 29761: } 29761: 29761: size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key, 29761: size_t limit) { 29761: Slice memkey = key.memtable_key(); 29761: 29761: 29761: 29761: 29761: std::unique_ptr iter( 29761: table_->GetDynamicPrefixIterator()); 29761: iter->Seek(key.internal_key(), memkey.data()); 29761: 29761: size_t num_successive_merges = 0; 29761: 29761: for (; iter->Valid() && num_successive_merges < limit; iter->Next()) { 29761: const char* entry = iter->key(); 29761: uint32_t key_length = 0; 29761: const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29761: if (!comparator_.comparator.user_comparator()->Equal( 29761: Slice(iter_key_ptr, key_length - 8), key.user_key())) { 29761: break; 29761: } 29761: 29761: const uint64_t tag = DecodeFixed64(iter_key_ptr + key_length - 8); 29761: ValueType type; 29761: uint64_t unused; 29761: UnPackSequenceAndType(tag, &unused, &type); 29761: if (type != kTypeMerge) { 29761: break; 29761: } 29761: 29761: ++num_successive_merges; 29761: } 29761: 29761: return num_successive_merges; 29761: } 29761: 29761: void MemTableRep::Get(const LookupKey& k, void* callback_args, 29761: bool (*callback_func)(void* arg, const char* entry)) { 29761: auto iter = GetDynamicPrefixIterator(); 29761: for (iter->Seek(k.internal_key(), k.memtable_key().data()); 29761: iter->Valid() && callback_func(callback_args, iter->key()); 29761: iter->Next()) { 29761: } 29761: } 29761: 29761: void MemTable::RefLogContainingPrepSection(uint64_t log) { 29761: 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: log > 0 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "log > 0" 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: auto cur = min_prep_log_referenced_.load(); 29761: while ((log < cur || cur == 0) && 29761: !min_prep_log_referenced_.compare_exchange_strong(cur, log)) { 29761: cur = min_prep_log_referenced_.load(); 29761: } 29761: } 29761: 29761: uint64_t MemTable::GetMinLogContainingPrepSection() { 29761: return min_prep_log_referenced_.load(); 29761: } 29761: 29761: void MemTable::MaybeUpdateNewestUDT(const Slice& user_key) { 29761: if (ts_sz_ == 0 || persist_user_defined_timestamps_) { 29761: return; 29761: } 29761: const Comparator* ucmp = GetInternalKeyComparator().user_comparator(); 29761: Slice udt = ExtractTimestampFromUserKey(user_key, ts_sz_); 29761: if (newest_udt_.empty() || ucmp->CompareTimestamp(udt, newest_udt_) > 0) { 29761: newest_udt_ = udt; 29761: } 29761: } 29761: 29761: const Slice& MemTable::GetNewestUDT() const { 29761: 29761: 29761: 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ts_sz_ > 0 && !persist_user_defined_timestamps_ 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "ts_sz_ > 0 && !persist_user_defined_timestamps_" 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: return newest_udt_; 29761: } 29761: 29761: } [ 23%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o === END GCC DUMP === /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/output_validator.cc make[3]: *** [CMakeFiles/rocksdb-shared.dir/build.make:1146: CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make[2]: *** [CMakeFiles/Makefile2:244: CMakeFiles/rocksdb-shared.dir/all] Error 2 make[2]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make[1]: *** [Makefile:139: all] Error 2 make[1]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' dh_auto_build: error: cd obj-arm-linux-gnueabihf && make -j3 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2 make: *** [debian/rules:51: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 I: copying local configuration E: Failed autobuilding of package I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env I: removing directory /srv/workspace/pbuilder/26332 and its subdirectories Starting cleanup. All cleanup done. Sat Feb 22 17:58:22 UTC 2025 - reproducible_build.sh stopped running as /tmp/jenkins-script-QJgbzA4q, removing. /srv/reproducible-results/rbuild-debian/r-b-build.dJLIIwyR: total 16 drwxr-xr-x 2 jenkins jenkins 4096 Feb 22 17:59 b1 drwxr-xr-x 2 jenkins jenkins 4096 Feb 22 17:36 b2 -rw------- 1 jenkins jenkins 3547 Feb 22 17:36 rbuildlog.q9pHCbp -rw-r--r-- 1 jenkins jenkins 2440 Feb 6 06:36 rocksdb_9.10.0-1.dsc /srv/reproducible-results/rbuild-debian/r-b-build.dJLIIwyR/b1: total 10288 -rw-r--r-- 1 jenkins jenkins 10520328 Feb 22 17:59 build.log /srv/reproducible-results/rbuild-debian/r-b-build.dJLIIwyR/b2: total 0 Sat Feb 22 17:59:24 UTC 2025 I: Deleting $TMPDIR on virt64b-armhf-rb.debian.net. I: pbuilder: network access will be disabled during build I: Current time: Sat Feb 22 05:36:13 -12 2025 I: pbuilder-time-stamp: 1740245773 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration W: --override-config is not set; not updating apt.conf Read the manpage for details. I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: Copying source file I: copying [rocksdb_9.10.0-1.dsc] I: copying [./rocksdb_9.10.0.orig.tar.gz] I: copying [./rocksdb_9.10.0-1.debian.tar.xz] I: Extracting source dpkg-source: warning: cannot verify inline signature for ./rocksdb_9.10.0-1.dsc: unsupported subcommand dpkg-source: info: extracting rocksdb in rocksdb-9.10.0 dpkg-source: info: unpacking rocksdb_9.10.0.orig.tar.gz dpkg-source: info: unpacking rocksdb_9.10.0-1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying build_reproducible.patch dpkg-source: info: applying fix_db_test.patch dpkg-source: info: applying no_rpath.patch dpkg-source: info: applying library_version.patch dpkg-source: info: applying ppc64.patch dpkg-source: info: applying armv7_support.patch dpkg-source: info: applying mips.patch dpkg-source: info: applying arm.patch dpkg-source: info: applying 0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch dpkg-source: info: applying rely-on-default-for-optimization-on-Power.patch I: Not using root during the build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/26332/tmp/hooks/D02_print_environment starting I: set BUILDDIR='/build/reproducible-path' BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' BUILDUSERNAME='pbuilder1' BUILD_ARCH='armhf' DEBIAN_FRONTEND='noninteractive' DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' DISTRIBUTION='trixie' HOME='/root' HOST_ARCH='armhf' IFS=' ' INVOCATION_ID='e6b4e25db6444b728181667e011b9dc6' LANG='C' LANGUAGE='en_US:en' LC_ALL='C' MAIL='/var/mail/root' OPTIND='1' PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' PBCURRENTCOMMANDLINEOPERATION='build' PBUILDER_OPERATION='build' PBUILDER_PKGDATADIR='/usr/share/pbuilder' PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' PBUILDER_SYSCONFDIR='/etc' PPID='26332' PS1='# ' PS2='> ' PS4='+ ' PWD='/' SHELL='/bin/bash' SHLVL='2' SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.dJLIIwyR/pbuilderrc_PAUX --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.dJLIIwyR/b1 --logfile b1/build.log rocksdb_9.10.0-1.dsc' SUDO_GID='113' SUDO_UID='107' SUDO_USER='jenkins' TERM='unknown' TZ='/usr/share/zoneinfo/Etc/GMT+12' USER='root' _='/usr/bin/systemd-run' http_proxy='http://10.0.0.15:3142/' I: uname -a Linux virt64b 6.1.0-31-arm64 #1 SMP Debian 6.1.128-1 (2025-02-07) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin I: user script /srv/workspace/pbuilder/26332/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: armhf Maintainer: Debian Pbuilder Team Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: cmake, debhelper-compat (= 13), libbz2-dev, libgflags-dev, liblz4-dev, libsnappy-dev, libzstd-dev, zlib1g-dev dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 19583 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on cmake; however: Package cmake is not installed. pbuilder-satisfydepends-dummy depends on debhelper-compat (= 13); however: Package debhelper-compat is not installed. pbuilder-satisfydepends-dummy depends on libbz2-dev; however: Package libbz2-dev is not installed. pbuilder-satisfydepends-dummy depends on libgflags-dev; however: Package libgflags-dev is not installed. pbuilder-satisfydepends-dummy depends on liblz4-dev; however: Package liblz4-dev is not installed. pbuilder-satisfydepends-dummy depends on libsnappy-dev; however: Package libsnappy-dev is not installed. pbuilder-satisfydepends-dummy depends on libzstd-dev; however: Package libzstd-dev is not installed. pbuilder-satisfydepends-dummy depends on zlib1g-dev; however: Package zlib1g-dev is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdextrautils{a} cmake{a} cmake-data{a} debhelper{a} dh-autoreconf{a} dh-strip-nondeterminism{a} dwz{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libarchive13t64{a} libbrotli1{a} libbz2-dev{a} libcom-err2{a} libcurl4t64{a} libdebhelper-perl{a} libelf1t64{a} libexpat1{a} libffi8{a} libfile-stripnondeterminism-perl{a} libgflags-dev{a} libgflags2.2{a} libgnutls30t64{a} libgssapi-krb5-2{a} libicu72{a} libidn2-0{a} libjsoncpp26{a} libk5crypto3{a} libkeyutils1{a} libkrb5-3{a} libkrb5support0{a} libldap2{a} liblz4-dev{a} libmagic-mgc{a} libmagic1t64{a} libnghttp2-14{a} libnghttp3-9{a} libp11-kit0{a} libpipeline1{a} libproc2-0{a} libpsl5t64{a} librhash1{a} librtmp1{a} libsasl2-2{a} libsasl2-modules-db{a} libsnappy-dev{a} libsnappy1v5{a} libssh2-1t64{a} libtasn1-6{a} libtool{a} libuchardet0{a} libunistring5{a} libuv1t64{a} libxml2{a} libxxhash-dev{a} libzstd-dev{a} m4{a} man-db{a} po-debconf{a} procps{a} sensible-utils{a} zlib1g-dev{a} The following packages are RECOMMENDED but will NOT be installed: bzip2-doc ca-certificates curl krb5-locales libarchive-cpio-perl libldap-common libltdl-dev libmail-sendmail-perl libsasl2-modules linux-sysctl-defaults lynx psmisc publicsuffix wget 0 packages upgraded, 69 newly installed, 0 to remove and 0 not upgraded. Need to get 35.1 MB of archives. After unpacking 128 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian trixie/main armhf libproc2-0 armhf 2:4.0.4-7 [56.3 kB] Get: 2 http://deb.debian.org/debian trixie/main armhf procps armhf 2:4.0.4-7 [866 kB] Get: 3 http://deb.debian.org/debian trixie/main armhf sensible-utils all 0.0.24 [24.8 kB] Get: 4 http://deb.debian.org/debian trixie/main armhf libmagic-mgc armhf 1:5.45-3+b1 [314 kB] Get: 5 http://deb.debian.org/debian trixie/main armhf libmagic1t64 armhf 1:5.45-3+b1 [98.5 kB] Get: 6 http://deb.debian.org/debian trixie/main armhf file armhf 1:5.45-3+b1 [42.3 kB] Get: 7 http://deb.debian.org/debian trixie/main armhf gettext-base armhf 0.23.1-1 [238 kB] Get: 8 http://deb.debian.org/debian trixie/main armhf libuchardet0 armhf 0.0.8-1+b2 [65.6 kB] Get: 9 http://deb.debian.org/debian trixie/main armhf groff-base armhf 1.23.0-7 [1095 kB] Get: 10 http://deb.debian.org/debian trixie/main armhf bsdextrautils armhf 2.40.4-3 [84.6 kB] Get: 11 http://deb.debian.org/debian trixie/main armhf libpipeline1 armhf 1.5.8-1 [35.0 kB] Get: 12 http://deb.debian.org/debian trixie/main armhf man-db armhf 2.13.0-1 [1382 kB] Get: 13 http://deb.debian.org/debian trixie/main armhf m4 armhf 1.4.19-5 [272 kB] Get: 14 http://deb.debian.org/debian trixie/main armhf autoconf all 2.72-3 [493 kB] Get: 15 http://deb.debian.org/debian trixie/main armhf autotools-dev all 20220109.1 [51.6 kB] Get: 16 http://deb.debian.org/debian trixie/main armhf automake all 1:1.17-3 [862 kB] Get: 17 http://deb.debian.org/debian trixie/main armhf autopoint all 0.23.1-1 [770 kB] Get: 18 http://deb.debian.org/debian trixie/main armhf cmake-data all 3.31.5-2 [2267 kB] Get: 19 http://deb.debian.org/debian trixie/main armhf libicu72 armhf 72.1-6 [9086 kB] Get: 20 http://deb.debian.org/debian trixie/main armhf libxml2 armhf 2.12.7+dfsg+really2.9.14-0.2+b1 [605 kB] Get: 21 http://deb.debian.org/debian trixie/main armhf libarchive13t64 armhf 3.7.4-1.1 [306 kB] Get: 22 http://deb.debian.org/debian trixie/main armhf libbrotli1 armhf 1.1.0-2+b6 [282 kB] Get: 23 http://deb.debian.org/debian trixie/main armhf libkrb5support0 armhf 1.21.3-4 [30.3 kB] Get: 24 http://deb.debian.org/debian trixie/main armhf libcom-err2 armhf 1.47.2-1 [23.3 kB] Get: 25 http://deb.debian.org/debian trixie/main armhf libk5crypto3 armhf 1.21.3-4 [75.8 kB] Get: 26 http://deb.debian.org/debian trixie/main armhf libkeyutils1 armhf 1.6.3-4 [8096 B] Get: 27 http://deb.debian.org/debian trixie/main armhf libkrb5-3 armhf 1.21.3-4 [285 kB] Get: 28 http://deb.debian.org/debian trixie/main armhf libgssapi-krb5-2 armhf 1.21.3-4 [116 kB] Get: 29 http://deb.debian.org/debian trixie/main armhf libunistring5 armhf 1.3-1 [444 kB] Get: 30 http://deb.debian.org/debian trixie/main armhf libidn2-0 armhf 2.3.7-2+b1 [125 kB] Get: 31 http://deb.debian.org/debian trixie/main armhf libsasl2-modules-db armhf 2.1.28+dfsg1-8+b1 [18.6 kB] Get: 32 http://deb.debian.org/debian trixie/main armhf libsasl2-2 armhf 2.1.28+dfsg1-8+b1 [50.6 kB] Get: 33 http://deb.debian.org/debian trixie/main armhf libldap2 armhf 2.6.9+dfsg-1 [167 kB] Get: 34 http://deb.debian.org/debian trixie/main armhf libnghttp2-14 armhf 1.64.0-1 [62.9 kB] Get: 35 http://deb.debian.org/debian trixie/main armhf libnghttp3-9 armhf 1.6.0-2 [56.8 kB] Get: 36 http://deb.debian.org/debian trixie/main armhf libpsl5t64 armhf 0.21.2-1.1+b1 [55.8 kB] Get: 37 http://deb.debian.org/debian trixie/main armhf libffi8 armhf 3.4.7-1 [20.3 kB] Get: 38 http://deb.debian.org/debian trixie/main armhf libp11-kit0 armhf 0.25.5-3 [385 kB] Get: 39 http://deb.debian.org/debian trixie/main armhf libtasn1-6 armhf 4.20.0-2 [44.4 kB] Get: 40 http://deb.debian.org/debian trixie/main armhf libgnutls30t64 armhf 3.8.9-2 [1382 kB] Get: 41 http://deb.debian.org/debian trixie/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2+b5 [53.2 kB] Get: 42 http://deb.debian.org/debian trixie/main armhf libssh2-1t64 armhf 1.11.1-1 [227 kB] Get: 43 http://deb.debian.org/debian trixie/main armhf libcurl4t64 armhf 8.12.1-2 [320 kB] Get: 44 http://deb.debian.org/debian trixie/main armhf libexpat1 armhf 2.6.4-1 [83.5 kB] Get: 45 http://deb.debian.org/debian trixie/main armhf libjsoncpp26 armhf 1.9.6-3 [69.9 kB] Get: 46 http://deb.debian.org/debian trixie/main armhf librhash1 armhf 1.4.5-1 [143 kB] Get: 47 http://deb.debian.org/debian trixie/main armhf libuv1t64 armhf 1.50.0-2 [140 kB] Get: 48 http://deb.debian.org/debian trixie/main armhf cmake armhf 3.31.5-2 [5911 kB] Get: 49 http://deb.debian.org/debian trixie/main armhf libdebhelper-perl all 13.24.1 [90.9 kB] Get: 50 http://deb.debian.org/debian trixie/main armhf libtool all 2.5.4-3 [539 kB] Get: 51 http://deb.debian.org/debian trixie/main armhf dh-autoreconf all 20 [17.1 kB] Get: 52 http://deb.debian.org/debian trixie/main armhf libarchive-zip-perl all 1.68-1 [104 kB] Get: 53 http://deb.debian.org/debian trixie/main armhf libfile-stripnondeterminism-perl all 1.14.1-2 [19.7 kB] Get: 54 http://deb.debian.org/debian trixie/main armhf dh-strip-nondeterminism all 1.14.1-2 [8620 B] Get: 55 http://deb.debian.org/debian trixie/main armhf libelf1t64 armhf 0.192-4 [184 kB] Get: 56 http://deb.debian.org/debian trixie/main armhf dwz armhf 0.15-1+b2 [106 kB] Get: 57 http://deb.debian.org/debian trixie/main armhf gettext armhf 0.23.1-1 [1560 kB] Get: 58 http://deb.debian.org/debian trixie/main armhf intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 59 http://deb.debian.org/debian trixie/main armhf po-debconf all 1.0.21+nmu1 [248 kB] Get: 60 http://deb.debian.org/debian trixie/main armhf debhelper all 13.24.1 [920 kB] Get: 61 http://deb.debian.org/debian trixie/main armhf libbz2-dev armhf 1.0.8-6 [28.7 kB] Get: 62 http://deb.debian.org/debian trixie/main armhf libgflags2.2 armhf 2.2.2-2 [66.4 kB] Get: 63 http://deb.debian.org/debian trixie/main armhf libgflags-dev armhf 2.2.2-2 [88.6 kB] Get: 64 http://deb.debian.org/debian trixie/main armhf libxxhash-dev armhf 0.8.3-2 [91.2 kB] Get: 65 http://deb.debian.org/debian trixie/main armhf liblz4-dev armhf 1.10.0-3 [77.5 kB] Get: 66 http://deb.debian.org/debian trixie/main armhf libsnappy1v5 armhf 1.2.1-1+b1 [27.0 kB] Get: 67 http://deb.debian.org/debian trixie/main armhf libsnappy-dev armhf 1.2.1-1+b1 [41.9 kB] Get: 68 http://deb.debian.org/debian trixie/main armhf libzstd-dev armhf 1.5.6+dfsg-2 [326 kB] Get: 69 http://deb.debian.org/debian trixie/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1+b1 [905 kB] Fetched 35.1 MB in 1s (46.0 MB/s) Preconfiguring packages ... Selecting previously unselected package libproc2-0:armhf. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19583 files and directories currently installed.) Preparing to unpack .../00-libproc2-0_2%3a4.0.4-7_armhf.deb ... Unpacking libproc2-0:armhf (2:4.0.4-7) ... Selecting previously unselected package procps. Preparing to unpack .../01-procps_2%3a4.0.4-7_armhf.deb ... Unpacking procps (2:4.0.4-7) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../02-sensible-utils_0.0.24_all.deb ... Unpacking sensible-utils (0.0.24) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../03-libmagic-mgc_1%3a5.45-3+b1_armhf.deb ... Unpacking libmagic-mgc (1:5.45-3+b1) ... Selecting previously unselected package libmagic1t64:armhf. Preparing to unpack .../04-libmagic1t64_1%3a5.45-3+b1_armhf.deb ... Unpacking libmagic1t64:armhf (1:5.45-3+b1) ... Selecting previously unselected package file. Preparing to unpack .../05-file_1%3a5.45-3+b1_armhf.deb ... Unpacking file (1:5.45-3+b1) ... Selecting previously unselected package gettext-base. Preparing to unpack .../06-gettext-base_0.23.1-1_armhf.deb ... Unpacking gettext-base (0.23.1-1) ... Selecting previously unselected package libuchardet0:armhf. Preparing to unpack .../07-libuchardet0_0.0.8-1+b2_armhf.deb ... Unpacking libuchardet0:armhf (0.0.8-1+b2) ... Selecting previously unselected package groff-base. Preparing to unpack .../08-groff-base_1.23.0-7_armhf.deb ... Unpacking groff-base (1.23.0-7) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../09-bsdextrautils_2.40.4-3_armhf.deb ... Unpacking bsdextrautils (2.40.4-3) ... Selecting previously unselected package libpipeline1:armhf. Preparing to unpack .../10-libpipeline1_1.5.8-1_armhf.deb ... Unpacking libpipeline1:armhf (1.5.8-1) ... Selecting previously unselected package man-db. Preparing to unpack .../11-man-db_2.13.0-1_armhf.deb ... Unpacking man-db (2.13.0-1) ... Selecting previously unselected package m4. Preparing to unpack .../12-m4_1.4.19-5_armhf.deb ... Unpacking m4 (1.4.19-5) ... Selecting previously unselected package autoconf. Preparing to unpack .../13-autoconf_2.72-3_all.deb ... Unpacking autoconf (2.72-3) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../14-autotools-dev_20220109.1_all.deb ... Unpacking autotools-dev (20220109.1) ... Selecting previously unselected package automake. Preparing to unpack .../15-automake_1%3a1.17-3_all.deb ... Unpacking automake (1:1.17-3) ... Selecting previously unselected package autopoint. Preparing to unpack .../16-autopoint_0.23.1-1_all.deb ... Unpacking autopoint (0.23.1-1) ... Selecting previously unselected package cmake-data. Preparing to unpack .../17-cmake-data_3.31.5-2_all.deb ... Unpacking cmake-data (3.31.5-2) ... Selecting previously unselected package libicu72:armhf. Preparing to unpack .../18-libicu72_72.1-6_armhf.deb ... Unpacking libicu72:armhf (72.1-6) ... Selecting previously unselected package libxml2:armhf. Preparing to unpack .../19-libxml2_2.12.7+dfsg+really2.9.14-0.2+b1_armhf.deb ... Unpacking libxml2:armhf (2.12.7+dfsg+really2.9.14-0.2+b1) ... Selecting previously unselected package libarchive13t64:armhf. Preparing to unpack .../20-libarchive13t64_3.7.4-1.1_armhf.deb ... Unpacking libarchive13t64:armhf (3.7.4-1.1) ... Selecting previously unselected package libbrotli1:armhf. Preparing to unpack .../21-libbrotli1_1.1.0-2+b6_armhf.deb ... Unpacking libbrotli1:armhf (1.1.0-2+b6) ... Selecting previously unselected package libkrb5support0:armhf. Preparing to unpack .../22-libkrb5support0_1.21.3-4_armhf.deb ... Unpacking libkrb5support0:armhf (1.21.3-4) ... Selecting previously unselected package libcom-err2:armhf. Preparing to unpack .../23-libcom-err2_1.47.2-1_armhf.deb ... Unpacking libcom-err2:armhf (1.47.2-1) ... Selecting previously unselected package libk5crypto3:armhf. Preparing to unpack .../24-libk5crypto3_1.21.3-4_armhf.deb ... Unpacking libk5crypto3:armhf (1.21.3-4) ... Selecting previously unselected package libkeyutils1:armhf. Preparing to unpack .../25-libkeyutils1_1.6.3-4_armhf.deb ... Unpacking libkeyutils1:armhf (1.6.3-4) ... Selecting previously unselected package libkrb5-3:armhf. Preparing to unpack .../26-libkrb5-3_1.21.3-4_armhf.deb ... Unpacking libkrb5-3:armhf (1.21.3-4) ... Selecting previously unselected package libgssapi-krb5-2:armhf. Preparing to unpack .../27-libgssapi-krb5-2_1.21.3-4_armhf.deb ... Unpacking libgssapi-krb5-2:armhf (1.21.3-4) ... Selecting previously unselected package libunistring5:armhf. Preparing to unpack .../28-libunistring5_1.3-1_armhf.deb ... Unpacking libunistring5:armhf (1.3-1) ... Selecting previously unselected package libidn2-0:armhf. Preparing to unpack .../29-libidn2-0_2.3.7-2+b1_armhf.deb ... Unpacking libidn2-0:armhf (2.3.7-2+b1) ... Selecting previously unselected package libsasl2-modules-db:armhf. Preparing to unpack .../30-libsasl2-modules-db_2.1.28+dfsg1-8+b1_armhf.deb ... Unpacking libsasl2-modules-db:armhf (2.1.28+dfsg1-8+b1) ... Selecting previously unselected package libsasl2-2:armhf. Preparing to unpack .../31-libsasl2-2_2.1.28+dfsg1-8+b1_armhf.deb ... Unpacking libsasl2-2:armhf (2.1.28+dfsg1-8+b1) ... Selecting previously unselected package libldap2:armhf. Preparing to unpack .../32-libldap2_2.6.9+dfsg-1_armhf.deb ... Unpacking libldap2:armhf (2.6.9+dfsg-1) ... Selecting previously unselected package libnghttp2-14:armhf. Preparing to unpack .../33-libnghttp2-14_1.64.0-1_armhf.deb ... Unpacking libnghttp2-14:armhf (1.64.0-1) ... Selecting previously unselected package libnghttp3-9:armhf. Preparing to unpack .../34-libnghttp3-9_1.6.0-2_armhf.deb ... Unpacking libnghttp3-9:armhf (1.6.0-2) ... Selecting previously unselected package libpsl5t64:armhf. Preparing to unpack .../35-libpsl5t64_0.21.2-1.1+b1_armhf.deb ... Unpacking libpsl5t64:armhf (0.21.2-1.1+b1) ... Selecting previously unselected package libffi8:armhf. Preparing to unpack .../36-libffi8_3.4.7-1_armhf.deb ... Unpacking libffi8:armhf (3.4.7-1) ... Selecting previously unselected package libp11-kit0:armhf. Preparing to unpack .../37-libp11-kit0_0.25.5-3_armhf.deb ... Unpacking libp11-kit0:armhf (0.25.5-3) ... Selecting previously unselected package libtasn1-6:armhf. Preparing to unpack .../38-libtasn1-6_4.20.0-2_armhf.deb ... Unpacking libtasn1-6:armhf (4.20.0-2) ... Selecting previously unselected package libgnutls30t64:armhf. Preparing to unpack .../39-libgnutls30t64_3.8.9-2_armhf.deb ... Unpacking libgnutls30t64:armhf (3.8.9-2) ... Selecting previously unselected package librtmp1:armhf. Preparing to unpack .../40-librtmp1_2.4+20151223.gitfa8646d.1-2+b5_armhf.deb ... Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b5) ... Selecting previously unselected package libssh2-1t64:armhf. Preparing to unpack .../41-libssh2-1t64_1.11.1-1_armhf.deb ... Unpacking libssh2-1t64:armhf (1.11.1-1) ... Selecting previously unselected package libcurl4t64:armhf. Preparing to unpack .../42-libcurl4t64_8.12.1-2_armhf.deb ... Unpacking libcurl4t64:armhf (8.12.1-2) ... Selecting previously unselected package libexpat1:armhf. Preparing to unpack .../43-libexpat1_2.6.4-1_armhf.deb ... Unpacking libexpat1:armhf (2.6.4-1) ... Selecting previously unselected package libjsoncpp26:armhf. Preparing to unpack .../44-libjsoncpp26_1.9.6-3_armhf.deb ... Unpacking libjsoncpp26:armhf (1.9.6-3) ... Selecting previously unselected package librhash1:armhf. Preparing to unpack .../45-librhash1_1.4.5-1_armhf.deb ... Unpacking librhash1:armhf (1.4.5-1) ... Selecting previously unselected package libuv1t64:armhf. Preparing to unpack .../46-libuv1t64_1.50.0-2_armhf.deb ... Unpacking libuv1t64:armhf (1.50.0-2) ... Selecting previously unselected package cmake. Preparing to unpack .../47-cmake_3.31.5-2_armhf.deb ... Unpacking cmake (3.31.5-2) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../48-libdebhelper-perl_13.24.1_all.deb ... Unpacking libdebhelper-perl (13.24.1) ... Selecting previously unselected package libtool. Preparing to unpack .../49-libtool_2.5.4-3_all.deb ... Unpacking libtool (2.5.4-3) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../50-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../51-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../52-libfile-stripnondeterminism-perl_1.14.1-2_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.14.1-2) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../53-dh-strip-nondeterminism_1.14.1-2_all.deb ... Unpacking dh-strip-nondeterminism (1.14.1-2) ... Selecting previously unselected package libelf1t64:armhf. Preparing to unpack .../54-libelf1t64_0.192-4_armhf.deb ... Unpacking libelf1t64:armhf (0.192-4) ... Selecting previously unselected package dwz. Preparing to unpack .../55-dwz_0.15-1+b2_armhf.deb ... Unpacking dwz (0.15-1+b2) ... Selecting previously unselected package gettext. Preparing to unpack .../56-gettext_0.23.1-1_armhf.deb ... Unpacking gettext (0.23.1-1) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../57-intltool-debian_0.35.0+20060710.6_all.deb ... Unpacking intltool-debian (0.35.0+20060710.6) ... Selecting previously unselected package po-debconf. Preparing to unpack .../58-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../59-debhelper_13.24.1_all.deb ... Unpacking debhelper (13.24.1) ... Selecting previously unselected package libbz2-dev:armhf. Preparing to unpack .../60-libbz2-dev_1.0.8-6_armhf.deb ... Unpacking libbz2-dev:armhf (1.0.8-6) ... Selecting previously unselected package libgflags2.2. Preparing to unpack .../61-libgflags2.2_2.2.2-2_armhf.deb ... Unpacking libgflags2.2 (2.2.2-2) ... Selecting previously unselected package libgflags-dev. Preparing to unpack .../62-libgflags-dev_2.2.2-2_armhf.deb ... Unpacking libgflags-dev (2.2.2-2) ... Selecting previously unselected package libxxhash-dev:armhf. Preparing to unpack .../63-libxxhash-dev_0.8.3-2_armhf.deb ... Unpacking libxxhash-dev:armhf (0.8.3-2) ... Selecting previously unselected package liblz4-dev:armhf. Preparing to unpack .../64-liblz4-dev_1.10.0-3_armhf.deb ... Unpacking liblz4-dev:armhf (1.10.0-3) ... Selecting previously unselected package libsnappy1v5:armhf. Preparing to unpack .../65-libsnappy1v5_1.2.1-1+b1_armhf.deb ... Unpacking libsnappy1v5:armhf (1.2.1-1+b1) ... Selecting previously unselected package libsnappy-dev:armhf. Preparing to unpack .../66-libsnappy-dev_1.2.1-1+b1_armhf.deb ... Unpacking libsnappy-dev:armhf (1.2.1-1+b1) ... Selecting previously unselected package libzstd-dev:armhf. Preparing to unpack .../67-libzstd-dev_1.5.6+dfsg-2_armhf.deb ... Unpacking libzstd-dev:armhf (1.5.6+dfsg-2) ... Selecting previously unselected package zlib1g-dev:armhf. Preparing to unpack .../68-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1+b1_armhf.deb ... Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1+b1) ... Setting up libexpat1:armhf (2.6.4-1) ... Setting up libpipeline1:armhf (1.5.8-1) ... Setting up libkeyutils1:armhf (1.6.3-4) ... Setting up libicu72:armhf (72.1-6) ... Setting up libzstd-dev:armhf (1.5.6+dfsg-2) ... Setting up bsdextrautils (2.40.4-3) ... Setting up libmagic-mgc (1:5.45-3+b1) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.24.1) ... Setting up libbrotli1:armhf (1.1.0-2+b6) ... Setting up libuv1t64:armhf (1.50.0-2) ... Setting up libmagic1t64:armhf (1:5.45-3+b1) ... Setting up libnghttp2-14:armhf (1.64.0-1) ... Setting up gettext-base (0.23.1-1) ... Setting up m4 (1.4.19-5) ... Setting up libcom-err2:armhf (1.47.2-1) ... Setting up file (1:5.45-3+b1) ... Setting up libelf1t64:armhf (0.192-4) ... Setting up libsnappy1v5:armhf (1.2.1-1+b1) ... Setting up libkrb5support0:armhf (1.21.3-4) ... Setting up libsasl2-modules-db:armhf (2.1.28+dfsg1-8+b1) ... Setting up autotools-dev (20220109.1) ... Setting up libjsoncpp26:armhf (1.9.6-3) ... Setting up libproc2-0:armhf (2:4.0.4-7) ... Setting up libunistring5:armhf (1.3-1) ... Setting up autopoint (0.23.1-1) ... Setting up libk5crypto3:armhf (1.21.3-4) ... Setting up libsasl2-2:armhf (2.1.28+dfsg1-8+b1) ... Setting up autoconf (2.72-3) ... Setting up libnghttp3-9:armhf (1.6.0-2) ... Setting up libxxhash-dev:armhf (0.8.3-2) ... Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1+b1) ... Setting up libffi8:armhf (3.4.7-1) ... Setting up dwz (0.15-1+b2) ... Setting up sensible-utils (0.0.24) ... Setting up libuchardet0:armhf (0.0.8-1+b2) ... Setting up procps (2:4.0.4-7) ... Setting up libtasn1-6:armhf (4.20.0-2) ... Setting up cmake-data (3.31.5-2) ... Setting up librhash1:armhf (1.4.5-1) ... Setting up libkrb5-3:armhf (1.21.3-4) ... Setting up libssh2-1t64:armhf (1.11.1-1) ... Setting up libxml2:armhf (2.12.7+dfsg+really2.9.14-0.2+b1) ... Setting up libldap2:armhf (2.6.9+dfsg-1) ... Setting up libgflags2.2 (2.2.2-2) ... Setting up libbz2-dev:armhf (1.0.8-6) ... Setting up automake (1:1.17-3) ... update-alternatives: using /usr/bin/automake-1.17 to provide /usr/bin/automake (automake) in auto mode Setting up libfile-stripnondeterminism-perl (1.14.1-2) ... Setting up gettext (0.23.1-1) ... Setting up libtool (2.5.4-3) ... Setting up libsnappy-dev:armhf (1.2.1-1+b1) ... Setting up libidn2-0:armhf (2.3.7-2+b1) ... Setting up intltool-debian (0.35.0+20060710.6) ... Setting up dh-autoreconf (20) ... Setting up libp11-kit0:armhf (0.25.5-3) ... Setting up libgssapi-krb5-2:armhf (1.21.3-4) ... Setting up libgflags-dev (2.2.2-2) ... Setting up liblz4-dev:armhf (1.10.0-3) ... Setting up dh-strip-nondeterminism (1.14.1-2) ... Setting up groff-base (1.23.0-7) ... Setting up libarchive13t64:armhf (3.7.4-1.1) ... Setting up libgnutls30t64:armhf (3.8.9-2) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up libpsl5t64:armhf (0.21.2-1.1+b1) ... Setting up man-db (2.13.0-1) ... Not building database; man-db/auto-update is not 'true'. Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b5) ... Setting up libcurl4t64:armhf (8.12.1-2) ... Setting up debhelper (13.24.1) ... Setting up cmake (3.31.5-2) ... Processing triggers for libc-bin (2.40-7) ... Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps I: Building the package I: Running cd /build/reproducible-path/rocksdb-9.10.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../rocksdb_9.10.0-1_source.changes dpkg-buildpackage: info: source package rocksdb dpkg-buildpackage: info: source version 9.10.0-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Otto Kekäläinen dpkg-source --before-build . dpkg-buildpackage: info: host architecture armhf debian/rules clean dh clean --buildsystem=cmake dh_auto_clean -O--buildsystem=cmake dh_autoreconf_clean -O--buildsystem=cmake dh_clean -O--buildsystem=cmake debian/rules binary dh binary --buildsystem=cmake dh_update_autotools_config -O--buildsystem=cmake dh_autoreconf -O--buildsystem=cmake debian/rules override_dh_auto_configure make[1]: Entering directory '/build/reproducible-path/rocksdb-9.10.0' dh_auto_configure -O--buildsystem=cmake \ -- \ -DWITH_BZ2=ON \ -DWITH_LZ4=ON \ -DWITH_ZLIB=ON \ -DWITH_ZSTD=ON \ -DWITH_SNAPPY=ON \ -DROCKSDB_BUILD_SHARED=ON \ -DWITH_BENCHMARK_TOOLS=ON \ -DWITH_CORE_TOOLS=ON \ -DWITH_TOOLS=ON \ -DWITH_TESTS=ON \ -DPORTABLE=1 \ -DFAIL_ON_WARNINGS=OFF cd obj-arm-linux-gnueabihf && DEB_PYTHON_INSTALL_LAYOUT=deb PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/arm-linux-gnueabihf -DWITH_BZ2=ON -DWITH_LZ4=ON -DWITH_ZLIB=ON -DWITH_ZSTD=ON -DWITH_SNAPPY=ON -DROCKSDB_BUILD_SHARED=ON -DWITH_BENCHMARK_TOOLS=ON -DWITH_CORE_TOOLS=ON -DWITH_TOOLS=ON -DWITH_TESTS=ON -DPORTABLE=1 -DFAIL_ON_WARNINGS=OFF .. -- The CXX compiler identification is GNU 14.2.0 -- The C compiler identification is GNU 14.2.0 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.3.1") -- Found BZip2: /usr/lib/arm-linux-gnueabihf/libbz2.so (found version "1.0.8") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Found lz4: /usr/lib/arm-linux-gnueabihf/liblz4.so -- Found zstd: /usr/lib/arm-linux-gnueabihf/libzstd.so -- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER -- Performing Test HAVE_OMIT_LEAF_FRAME_POINTER - Failed -- Performing Test HAS_ARMV8_CRC -- Performing Test HAS_ARMV8_CRC - Success -- HAS_ARMV8_CRC yes -- Performing Test BUILTIN_ATOMIC -- Performing Test BUILTIN_ATOMIC - Success -- Could NOT find uring (missing: uring_LIBRARIES uring_INCLUDE_DIR) -- Enabling RTTI in Debug builds only (default) -- Performing Test HAVE_FALLOCATE -- Performing Test HAVE_FALLOCATE - Success -- Performing Test HAVE_SYNC_FILE_RANGE_WRITE -- Performing Test HAVE_SYNC_FILE_RANGE_WRITE - Success -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP -- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP - Success -- Looking for malloc_usable_size -- Looking for malloc_usable_size - found -- Looking for sched_getcpu -- Looking for sched_getcpu - found -- Looking for getauxval -- Looking for getauxval - found -- Looking for F_FULLFSYNC -- Looking for F_FULLFSYNC - not found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- ROCKSDB_PLUGINS: -- ROCKSDB PLUGINS TO BUILD -- Could NOT find Git (missing: GIT_EXECUTABLE) -- JNI library is disabled -- Configuring done (5.5s) -- Generating done (0.6s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY FETCHCONTENT_FULLY_DISCONNECTED -- Build files have been written to: /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf make[1]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0' dh_auto_build -O--buildsystem=cmake cd obj-arm-linux-gnueabihf && make -j3 "INSTALL=install --strip-program=true" VERBOSE=1 make[1]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' /usr/bin/cmake -S/build/reproducible-path/rocksdb-9.10.0 -B/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/CMakeFiles /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf//CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[2]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/depend make -f CMakeFiles/rocksdb-shared.dir/build.make CMakeFiles/rocksdb-shared.dir/depend make -f third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/build.make third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/depend make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src/gtest /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/DependInfo.cmake "--color=" make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/CMakeFiles/rocksdb.dir/DependInfo.cmake "--color=" make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/CMakeFiles/rocksdb-shared.dir/DependInfo.cmake "--color=" make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make -f third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/build.make third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/build make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' [ 0%] Building CXX object third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/gtest-all.cc.o cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest && /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT third-party/gtest-1.8.1/fused-src/gtest/CMakeFiles/gtest.dir/gtest-all.cc.o -MF CMakeFiles/gtest.dir/gtest-all.cc.o.d -o CMakeFiles/gtest.dir/gtest-all.cc.o -c /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/build make -f CMakeFiles/rocksdb-shared.dir/build.make CMakeFiles/rocksdb-shared.dir/build make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' [ 0%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache.cc.o [ 0%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache.cc /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache.cc [ 1%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_entry_roles.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_entry_roles.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o -MF CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o.d -o CMakeFiles/rocksdb.dir/cache/cache_entry_roles.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_entry_roles.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_key.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_key.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_key.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/cache_key.cc.o -MF CMakeFiles/rocksdb.dir/cache/cache_key.cc.o.d -o CMakeFiles/rocksdb.dir/cache/cache_key.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_key.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_helpers.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_helpers.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/cache_helpers.cc.o -MF CMakeFiles/rocksdb.dir/cache/cache_helpers.cc.o.d -o CMakeFiles/rocksdb.dir/cache/cache_helpers.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_helpers.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/cache_reservation_manager.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_reservation_manager.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o -MF CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o.d -o CMakeFiles/rocksdb.dir/cache/cache_reservation_manager.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/cache_reservation_manager.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/charged_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/charged_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/charged_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/charged_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/clock_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc [ 2%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/clock_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc [ 2%] Linking CXX static library libgtest.a cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest && /usr/bin/cmake -P CMakeFiles/gtest.dir/cmake_clean_target.cmake cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/third-party/gtest-1.8.1/fused-src/gtest && /usr/bin/cmake -E cmake_link_script CMakeFiles/gtest.dir/link.txt --verbose=1 /usr/bin/ar qc libgtest.a "CMakeFiles/gtest.dir/gtest-all.cc.o" /usr/bin/ranlib libgtest.a make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' [ 2%] Built target gtest make -f CMakeFiles/testharness.dir/build.make CMakeFiles/testharness.dir/depend make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' cd /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0 /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf /build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf/CMakeFiles/testharness.dir/DependInfo.cmake "--color=" make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make -f CMakeFiles/testharness.dir/build.make CMakeFiles/testharness.dir/build make[3]: Entering directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' [ 3%] Building CXX object CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o -MF CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o.d -o CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o -c /build/reproducible-path/rocksdb-9.10.0/test_util/mock_time_env.cc [ 3%] Building CXX object CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o -MF CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o.d -o CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o -c /build/reproducible-path/rocksdb-9.10.0/test_util/secondary_cache_test_util.cc In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:7, from /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.h:29, from /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:10: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = double; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:7, from /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.h:29, from /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:10: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = double; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 3%] Building CXX object CMakeFiles/testharness.dir/test_util/testharness.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/testharness.dir/test_util/testharness.cc.o -MF CMakeFiles/testharness.dir/test_util/testharness.cc.o.d -o CMakeFiles/testharness.dir/test_util/testharness.cc.o -c /build/reproducible-path/rocksdb-9.10.0/test_util/testharness.cc In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:1593:12: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:1593:12: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:1593:12: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual void rocksdb::clock_cache::FixedHyperClockCache::ReportProblems(const std::shared_ptr&) const' at /build/reproducible-path/rocksdb-9.10.0/cache/clock_cache.cc:1593:12: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 3%] Building CXX object CMakeFiles/rocksdb.dir/cache/compressed_secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/compressed_secondary_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/compressed_secondary_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/compressed_secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/compressed_secondary_cache.cc [ 3%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/compressed_secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/compressed_secondary_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/compressed_secondary_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/compressed_secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/compressed_secondary_cache.cc [ 3%] Building CXX object CMakeFiles/rocksdb.dir/cache/lru_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/lru_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/lru_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/lru_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/lru_cache.cc [ 4%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/lru_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/lru_cache.cc [ 4%] Linking CXX static library libtestharness.a /usr/bin/cmake -P CMakeFiles/testharness.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/testharness.dir/link.txt --verbose=1 /usr/bin/ar qc libtestharness.a CMakeFiles/testharness.dir/test_util/mock_time_env.cc.o CMakeFiles/testharness.dir/test_util/secondary_cache_test_util.cc.o CMakeFiles/testharness.dir/test_util/testharness.cc.o /usr/bin/ranlib libtestharness.a make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' [ 4%] Built target testharness [ 4%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/secondary_cache.cc [ 4%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/secondary_cache_adapter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/secondary_cache_adapter.cc [ 5%] Building CXX object CMakeFiles/rocksdb.dir/cache/secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/secondary_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/secondary_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/secondary_cache.cc [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/sharded_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/sharded_cache.cc [ 5%] Building CXX object CMakeFiles/rocksdb.dir/cache/secondary_cache_adapter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/secondary_cache_adapter.cc.o -MF CMakeFiles/rocksdb.dir/cache/secondary_cache_adapter.cc.o.d -o CMakeFiles/rocksdb.dir/cache/secondary_cache_adapter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/secondary_cache_adapter.cc [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/cache/tiered_secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/tiered_secondary_cache.cc [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/arena_wrapped_db_iter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/arena_wrapped_db_iter.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/arena_wrapped_db_iter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/arena_wrapped_db_iter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/arena_wrapped_db_iter.cc [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/attribute_group_iterator_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/attribute_group_iterator_impl.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/attribute_group_iterator_impl.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/attribute_group_iterator_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/attribute_group_iterator_impl.cc [ 5%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_contents.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_contents.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_contents.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_contents.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_contents.cc [ 5%] Building CXX object CMakeFiles/rocksdb.dir/cache/sharded_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/sharded_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/sharded_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/sharded_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/sharded_cache.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_fetcher.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_fetcher.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_fetcher.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_fetcher.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_fetcher.cc [ 6%] Building CXX object CMakeFiles/rocksdb.dir/cache/tiered_secondary_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/cache/tiered_secondary_cache.cc.o -MF CMakeFiles/rocksdb.dir/cache/tiered_secondary_cache.cc.o.d -o CMakeFiles/rocksdb.dir/cache/tiered_secondary_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/cache/tiered_secondary_cache.cc [ 6%] Building CXX object CMakeFiles/rocksdb.dir/db/arena_wrapped_db_iter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/arena_wrapped_db_iter.cc.o -MF CMakeFiles/rocksdb.dir/db/arena_wrapped_db_iter.cc.o.d -o CMakeFiles/rocksdb.dir/db/arena_wrapped_db_iter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/arena_wrapped_db_iter.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_addition.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_addition.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_addition.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_addition.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_builder.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_builder.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_builder.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_builder.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_cache.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_garbage.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_meta.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_meta.cc [ 6%] Building CXX object CMakeFiles/rocksdb.dir/db/attribute_group_iterator_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/attribute_group_iterator_impl.cc.o -MF CMakeFiles/rocksdb.dir/db/attribute_group_iterator_impl.cc.o.d -o CMakeFiles/rocksdb.dir/db/attribute_group_iterator_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/attribute_group_iterator_impl.cc [ 6%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_file_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_reader.cc [ 7%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_garbage_meter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_garbage_meter.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_garbage_meter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_garbage_meter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_garbage_meter.cc [ 7%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_contents.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_contents.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_contents.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_contents.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_contents.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_fetcher.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_fetcher.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_fetcher.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_fetcher.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_fetcher.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_format.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_format.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_format.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_format.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_format.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_sequential_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_sequential_reader.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_sequential_reader.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_sequential_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_sequential_reader.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_log_writer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_writer.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_addition.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_addition.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_addition.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_addition.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_builder.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_builder.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_builder.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_builder.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_cache.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_cache.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_cache.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_cache.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_cache.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/blob_source.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_source.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_garbage.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_garbage.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_garbage.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_garbage.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_meta.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_meta.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_meta.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_meta.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_meta.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/blob/prefetch_buffer_collection.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/prefetch_buffer_collection.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_file_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_file_reader.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_file_reader.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_file_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_reader.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/builder.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/builder.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/builder.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/builder.cc [ 8%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_garbage_meter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_garbage_meter.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_garbage_meter.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_garbage_meter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_garbage_meter.cc [ 8%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/c.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/c.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/c.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/c.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/c.cc [ 9%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_log_format.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_log_format.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_log_format.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_log_format.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_format.cc [ 9%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_log_sequential_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_log_sequential_reader.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_log_sequential_reader.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_log_sequential_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_sequential_reader.cc [ 9%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_log_writer.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_log_writer.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_log_writer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_log_writer.cc [ 10%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/coalescing_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/coalescing_iterator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/coalescing_iterator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/coalescing_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/coalescing_iterator.cc [ 10%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/column_family.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc [ 10%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/blob_source.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/blob_source.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/blob_source.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/blob_source.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/blob_source.cc [ 10%] Building CXX object CMakeFiles/rocksdb.dir/db/blob/prefetch_buffer_collection.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/blob/prefetch_buffer_collection.cc.o -MF CMakeFiles/rocksdb.dir/db/blob/prefetch_buffer_collection.cc.o.d -o CMakeFiles/rocksdb.dir/db/blob/prefetch_buffer_collection.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/blob/prefetch_buffer_collection.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/c.cc:15: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:238:44: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::DBOptions::DBOptions(const rocksdb::DBOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:537:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.h:15, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc:10: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:238:44, inlined from 'rocksdb::ColumnFamilyOptions rocksdb::SanitizeOptions(const ImmutableDBOptions&, const ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc:356:34: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 10%] Building CXX object CMakeFiles/rocksdb.dir/db/builder.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/builder.cc.o -MF CMakeFiles/rocksdb.dir/db/builder.cc.o.d -o CMakeFiles/rocksdb.dir/db/builder.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/builder.cc [ 10%] Building CXX object CMakeFiles/rocksdb.dir/db/c.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/c.cc.o -MF CMakeFiles/rocksdb.dir/db/c.cc.o.d -o CMakeFiles/rocksdb.dir/db/c.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/c.cc [ 10%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/coalescing_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/coalescing_iterator.cc.o -MF CMakeFiles/rocksdb.dir/db/coalescing_iterator.cc.o.d -o CMakeFiles/rocksdb.dir/db/coalescing_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/coalescing_iterator.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/column_family.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/column_family.cc.o -MF CMakeFiles/rocksdb.dir/db/column_family.cc.o.d -o CMakeFiles/rocksdb.dir/db/column_family.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iterator.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/c.cc:15: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:238:44: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::DBOptions::DBOptions(const rocksdb::DBOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:537:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction.cc [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.h:15, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc:10: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:238:44, inlined from 'rocksdb::ColumnFamilyOptions rocksdb::SanitizeOptions(const ImmutableDBOptions&, const ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/db/column_family.cc:356:34: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_job.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_iterator.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_iterator.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iterator.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_picker.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_picker.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_picker.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_job.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_job.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_fifo.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_fifo.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_fifo.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_fifo.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_fifo.cc [ 11%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_fifo.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_fifo.cc [ 11%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_level.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_level.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_level.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_level.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_level.cc [ 12%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_level.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_level.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_universal.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_universal.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_universal.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_picker_universal.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_universal.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_service_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_service_job.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_service_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_service_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_service_job.cc [ 13%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_picker_universal.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_picker_universal.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_state.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_state.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_state.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_state.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_state.cc [ 13%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_service_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_service_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_service_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_service_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_service_job.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/compaction_outputs.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/compaction_outputs.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/compaction_outputs.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/compaction_outputs.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_outputs.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/sst_partitioner.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/sst_partitioner.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/sst_partitioner.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/sst_partitioner.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/sst_partitioner.cc [ 13%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_state.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_state.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_state.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_state.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_state.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/compaction/subcompaction_state.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/compaction/subcompaction_state.cc.o -MF CMakeFiles/rocksdb.dir/db/compaction/subcompaction_state.cc.o.d -o CMakeFiles/rocksdb.dir/db/compaction/subcompaction_state.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/subcompaction_state.cc [ 13%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/compaction_outputs.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_outputs.cc [ 13%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/sst_partitioner.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/sst_partitioner.cc [ 13%] Building CXX object CMakeFiles/rocksdb.dir/db/convenience.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/convenience.cc.o -MF CMakeFiles/rocksdb.dir/db/convenience.cc.o.d -o CMakeFiles/rocksdb.dir/db/convenience.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/convenience.cc [ 14%] Building CXX object CMakeFiles/rocksdb.dir/db/db_filesnapshot.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_filesnapshot.cc.o -MF CMakeFiles/rocksdb.dir/db/db_filesnapshot.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_filesnapshot.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_filesnapshot.cc [ 14%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/compaction/subcompaction_state.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/compaction/subcompaction_state.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/compaction/subcompaction_state.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/compaction/subcompaction_state.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/compaction/subcompaction_state.cc [ 14%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/convenience.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/convenience.cc [ 14%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/compacted_db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/compacted_db_impl.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/compacted_db_impl.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/compacted_db_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_filesnapshot.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_filesnapshot.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/compacted_db_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.h:8, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.cc:6: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.h:8, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/compacted_db_impl.cc:6: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_write.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_write.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_write.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_write.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_write.cc In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:17, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:9: /usr/include/c++/14/bits/stl_tree.h: In function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple, std::allocator >&>, std::tuple<>}; _Key = std::__cxx11::basic_string; _Val = std::pair, long long unsigned int>; _KeyOfValue = std::_Select1st, long long unsigned int> >; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]': /usr/include/c++/14/bits/stl_tree.h:2454:7: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 2454 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:17, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:9: /usr/include/c++/14/bits/stl_tree.h: In function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple, std::allocator >&>, std::tuple<>}; _Key = std::__cxx11::basic_string; _Val = std::pair, long long unsigned int>; _KeyOfValue = std::_Select1st, long long unsigned int> >; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]': /usr/include/c++/14/bits/stl_tree.h:2454:7: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 2454 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_write.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_write.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_write.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_write.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_write.cc In file included from /usr/include/c++/14/map:63: /usr/include/c++/14/bits/stl_map.h: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]': /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/map:63: /usr/include/c++/14/bits/stl_map.h: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]': /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/deque:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:13: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _ForwardIterator = std::pair*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*; _Tp = pair]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-9.10.0/db/version_edit.h:420:7: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/deque:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:13: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _ForwardIterator = std::pair*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*; _Tp = pair]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-9.10.0/db/version_edit.h:420:7: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_compaction_flush.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_compaction_flush.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_compaction_flush.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_compaction_flush.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_compaction_flush.cc /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; _Tp = rocksdb::IngestedFileInfo]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:331:40, inlined from 'void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; = void; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:829:17, inlined from 'rocksdb::autovector& rocksdb::autovector::assign(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:370:15, inlined from 'rocksdb::autovector::autovector(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:327:47, inlined from 'rocksdb::ExternalSstFileIngestionJob::ExternalSstFileIngestionJob(const rocksdb::ExternalSstFileIngestionJob&)' at /build/reproducible-path/rocksdb-9.10.0/db/external_sst_file_ingestion_job.h:182:7, inlined from 'void std::_Construct(_Tp*, _Args&& ...) [with _Tp = rocksdb::ExternalSstFileIngestionJob; _Args = {const rocksdb::ExternalSstFileIngestionJob&}]' at /usr/include/c++/14/bits/stl_construct.h:119:7, inlined from '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const rocksdb::ExternalSstFileIngestionJob*; _ForwardIterator = rocksdb::ExternalSstFileIngestionJob*]' at /usr/include/c++/14/bits/stl_uninitialized.h:120:21: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:1080:74: /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:1080:33: /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator > >; _ForwardIterator = rocksdb::IngestedFileInfo*; _Tp = rocksdb::IngestedFileInfo]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:1624:35, inlined from 'void std::vector<_Tp, _Alloc>::_M_assign_aux(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator > >; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/vector.tcc:331:40, inlined from 'void std::vector<_Tp, _Alloc>::assign(_InputIterator, _InputIterator) [with _InputIterator = __gnu_cxx::__normal_iterator > >; = void; _Tp = rocksdb::IngestedFileInfo; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:829:17, inlined from 'rocksdb::autovector& rocksdb::autovector::assign(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:370:15, inlined from 'rocksdb::autovector::autovector(const rocksdb::autovector&) [with T = rocksdb::IngestedFileInfo; unsigned int kSize = 8]' at /build/reproducible-path/rocksdb-9.10.0/util/autovector.h:327:47, inlined from 'rocksdb::ExternalSstFileIngestionJob::ExternalSstFileIngestionJob(const rocksdb::ExternalSstFileIngestionJob&)' at /build/reproducible-path/rocksdb-9.10.0/db/external_sst_file_ingestion_job.h:182:7, inlined from 'void std::_Construct(_Tp*, _Args&& ...) [with _Tp = rocksdb::ExternalSstFileIngestionJob; _Args = {const rocksdb::ExternalSstFileIngestionJob&}]' at /usr/include/c++/14/bits/stl_construct.h:119:7, inlined from '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const rocksdb::ExternalSstFileIngestionJob*; _ForwardIterator = rocksdb::ExternalSstFileIngestionJob*]' at /usr/include/c++/14/bits/stl_uninitialized.h:120:21: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:1080:74: /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = long long unsigned int; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]', inlined from 'void rocksdb::DBImpl::PersistStats()' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.cc:1080:33: /usr/include/c++/14/bits/stl_map.h:513:44: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' changed in GCC 7.1 513 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 514 | std::tuple(__k), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 515 | std::tuple<>()); | ~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_files.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_files.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_files.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_files.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_files.cc [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_compaction_flush.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_compaction_flush.cc In file included from /usr/include/c++/14/deque:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_files.cc:13: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _ForwardIterator = std::pair*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*; _Tp = pair]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-9.10.0/db/version_edit.h:420:7: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_files.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_files.cc [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_follower.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_follower.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_follower.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_follower.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_follower.cc In file included from /usr/include/c++/14/deque:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:13, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_files.cc:13: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _ForwardIterator = std::pair*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator*, vector > >; _ForwardIterator = pair*; _Tp = pair]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = std::pair; _Alloc = std::allocator >]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::VersionEdit::VersionEdit(const rocksdb::VersionEdit&)' at /build/reproducible-path/rocksdb-9.10.0/db/version_edit.h:420:7: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 15%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_open.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_open.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_open.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_open.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc [ 16%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_debug.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_debug.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_debug.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_debug.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_debug.cc [ 16%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_follower.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_follower.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_follower.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_follower.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_follower.cc [ 16%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_experimental.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_experimental.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_experimental.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_experimental.cc In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/util/coding.h:19, from /build/reproducible-path/rocksdb-9.10.0/db/dbformat.h:23, from /build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h:14, from /build/reproducible-path/rocksdb-9.10.0/db/builder.h:13, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:11: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = long long unsigned int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_open.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, bool, uint64_t*, RecoveryContext*, bool*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:808:16: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, bool, uint64_t*, RecoveryContext*, bool*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:808:16: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 17%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_readonly.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_readonly.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_readonly.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_readonly.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.cc [ 17%] Building CXX object CMakeFiles/rocksdb.dir/db/db_impl/db_impl_secondary.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_impl/db_impl_secondary.cc.o -MF CMakeFiles/rocksdb.dir/db/db_impl/db_impl_secondary.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_impl/db_impl_secondary.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/util/coding.h:19, from /build/reproducible-path/rocksdb-9.10.0/db/dbformat.h:23, from /build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h:14, from /build/reproducible-path/rocksdb-9.10.0/db/builder.h:13, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:11: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = long long unsigned int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.h:10, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.cc:6: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/cache/typed_cache.h:26, from /build/reproducible-path/rocksdb-9.10.0/cache/cache_reservation_manager.h:21, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.h:17, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:24, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.h:12, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:6: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = long long unsigned int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, bool, uint64_t*, RecoveryContext*, bool*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:808:16: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'virtual rocksdb::Status rocksdb::DBImpl::Recover(const std::vector&, bool, bool, bool, bool, uint64_t*, RecoveryContext*, bool*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_open.cc:808:16: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ [ 17%] Building CXX object CMakeFiles/rocksdb.dir/db/db_info_dumper.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_info_dumper.cc.o -MF CMakeFiles/rocksdb.dir/db/db_info_dumper.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_info_dumper.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_info_dumper.cc In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:133:14: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:133:14: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:17: /usr/include/c++/14/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2485:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2485 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = {std::pair > >}; _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2454:7: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2454 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(iterator) [with _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:1087:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:146:25: /usr/include/c++/14/bits/stl_tree.h:1206:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1206 | _M_erase_aux(__position); | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/14/map:63: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {std::pair > >}; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::__enable_if_t<((bool)std::is_constructible, _Pair>::value), std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind >::other>::iterator, bool> > std::map<_Key, _Tp, _Compare, _Alloc>::insert(_Pair&&) [with _Pair = std::pair >; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:859:27, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:175:24: /usr/include/c++/14/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map >::const_iterator' {aka 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_debug.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_debug.cc [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_experimental.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_experimental.cc /usr/include/c++/14/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(const_iterator, const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2499:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2499 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_tree.h:2499:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(const_iterator, const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(const_iterator, const_iterator) [with _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:1138:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::RecoverLogFiles(const std::vector&, rocksdb::SequenceNumber*, std::unordered_set*, rocksdb::JobContext*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:338:23: /usr/include/c++/14/bits/stl_tree.h:1235:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1235 | _M_erase_aux(__first, __last); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ [ 17%] Building CXX object CMakeFiles/rocksdb.dir/db/db_iter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/db_iter.cc.o -MF CMakeFiles/rocksdb.dir/db/db_iter.cc.o.d -o CMakeFiles/rocksdb.dir/db/db_iter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_iter.cc [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_readonly.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.cc [ 17%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_impl/db_impl_secondary.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc [ 17%] Building CXX object CMakeFiles/rocksdb.dir/db/dbformat.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/dbformat.cc.o -MF CMakeFiles/rocksdb.dir/db/dbformat.cc.o.d -o CMakeFiles/rocksdb.dir/db/dbformat.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/dbformat.cc [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/error_handler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/error_handler.cc.o -MF CMakeFiles/rocksdb.dir/db/error_handler.cc.o.d -o CMakeFiles/rocksdb.dir/db/error_handler.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/error_handler.cc In file included from /usr/include/c++/14/vector:65, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.h:10, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_readonly.cc:6: /usr/include/c++/14/bits/stl_uninitialized.h: In function '_ForwardIterator std::__do_uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]': /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 113 | __do_uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_uninitialized.h:113:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; bool _TrivialValueTypes = false]', inlined from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*]' at /usr/include/c++/14/bits/stl_uninitialized.h:185:15, inlined from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = rocksdb::DbPath*; _Tp = rocksdb::DbPath]' at /usr/include/c++/14/bits/stl_uninitialized.h:373:37, inlined from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = rocksdb::DbPath; _Alloc = std::allocator]' at /usr/include/c++/14/bits/stl_vector.h:606:31, inlined from 'rocksdb::ColumnFamilyOptions::ColumnFamilyOptions(const rocksdb::ColumnFamilyOptions&)' at /build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h:66:8: /usr/include/c++/14/bits/stl_uninitialized.h:137:39: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 137 | { return std::__do_uninit_copy(__first, __last, __result); } | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/bits/stl_algo.h:61, from /usr/include/c++/14/algorithm:61, from /build/reproducible-path/rocksdb-9.10.0/cache/typed_cache.h:26, from /build/reproducible-path/rocksdb-9.10.0/cache/cache_reservation_manager.h:21, from /build/reproducible-path/rocksdb-9.10.0/db/column_family.h:17, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:24, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.h:12, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:6: /usr/include/c++/14/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = long long unsigned int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1876 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1876:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/14/bits/stl_algo.h:1890:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1890 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1770 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1770:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_info_dumper.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_info_dumper.cc In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:133:14: /usr/include/c++/14/bits/stl_algo.h:1905:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1905 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1906 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1907 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]' at /usr/include/c++/14/bits/stl_algo.h:1908:31, inlined from 'void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator >]' at /usr/include/c++/14/bits/stl_algo.h:4772:18, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::FindNewLogNumbers(std::vector*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:133:14: /usr/include/c++/14/bits/stl_algo.h:1817:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1817 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_algo.h:1822:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1822 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/14/map:62, from /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl.h:17: /usr/include/c++/14/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2485:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2485 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = {std::pair > >}; _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2454:7: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2454 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(iterator) [with _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:1087:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:146:25: /usr/include/c++/14/bits/stl_tree.h:1206:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1206 | _M_erase_aux(__position); | ~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/14/map:63: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {std::pair > >}; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::__enable_if_t<((bool)std::is_constructible, _Pair>::value), std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind >::other>::iterator, bool> > std::map<_Key, _Tp, _Compare, _Alloc>::insert(_Pair&&) [with _Pair = std::pair >; _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:859:27, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::MaybeInitLogReader(uint64_t, rocksdb::log::FragmentBufferedReader**)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:175:24: /usr/include/c++/14/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map >::const_iterator' {aka 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(const_iterator, const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]': /usr/include/c++/14/bits/stl_tree.h:2499:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 2499 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_tree.h:2499:5: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/event_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/event_helpers.cc.o -MF CMakeFiles/rocksdb.dir/db/event_helpers.cc.o.d -o CMakeFiles/rocksdb.dir/db/event_helpers.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/event_helpers.cc In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(const_iterator, const_iterator) [with _Key = long long unsigned int; _Val = std::pair >; _KeyOfValue = std::_Select1st > >; _Compare = std::less; _Alloc = std::allocator > >]', inlined from 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(const_iterator, const_iterator) [with _Key = long long unsigned int; _Tp = std::unique_ptr; _Compare = std::less; _Alloc = std::allocator > >]' at /usr/include/c++/14/bits/stl_map.h:1138:26, inlined from 'rocksdb::Status rocksdb::DBImplSecondary::RecoverLogFiles(const std::vector&, rocksdb::SequenceNumber*, std::unordered_set*, rocksdb::JobContext*)' at /build/reproducible-path/rocksdb-9.10.0/db/db_impl/db_impl_secondary.cc:338:23: /usr/include/c++/14/bits/stl_tree.h:1235:21: note: parameter passing for argument of type 'std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::const_iterator' changed in GCC 7.1 1235 | _M_erase_aux(__first, __last); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/experimental.cc.o -MF CMakeFiles/rocksdb.dir/db/experimental.cc.o.d -o CMakeFiles/rocksdb.dir/db/experimental.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/experimental.cc [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/db_iter.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/db_iter.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/db_iter.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/db_iter.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/db_iter.cc [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o -MF CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/external_sst_file_ingestion_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/external_sst_file_ingestion_job.cc [ 18%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/dbformat.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/dbformat.cc [ 18%] Building CXX object CMakeFiles/rocksdb.dir/db/file_indexer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/file_indexer.cc.o -MF CMakeFiles/rocksdb.dir/db/file_indexer.cc.o.d -o CMakeFiles/rocksdb.dir/db/file_indexer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/file_indexer.cc [ 19%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/error_handler.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/error_handler.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/flush_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/flush_job.cc.o -MF CMakeFiles/rocksdb.dir/db/flush_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/flush_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/flush_job.cc [ 19%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/event_helpers.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/event_helpers.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/flush_scheduler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/flush_scheduler.cc.o -MF CMakeFiles/rocksdb.dir/db/flush_scheduler.cc.o.d -o CMakeFiles/rocksdb.dir/db/flush_scheduler.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/flush_scheduler.cc [ 19%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/experimental.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/experimental.cc [ 19%] Building CXX object CMakeFiles/rocksdb.dir/db/forward_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/forward_iterator.cc.o -MF CMakeFiles/rocksdb.dir/db/forward_iterator.cc.o.d -o CMakeFiles/rocksdb.dir/db/forward_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/forward_iterator.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/import_column_family_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/import_column_family_job.cc.o -MF CMakeFiles/rocksdb.dir/db/import_column_family_job.cc.o.d -o CMakeFiles/rocksdb.dir/db/import_column_family_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/import_column_family_job.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/internal_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/internal_stats.cc.o -MF CMakeFiles/rocksdb.dir/db/internal_stats.cc.o.d -o CMakeFiles/rocksdb.dir/db/internal_stats.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/internal_stats.cc [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/external_sst_file_ingestion_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/external_sst_file_ingestion_job.cc [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/file_indexer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/file_indexer.cc [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/flush_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/flush_job.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/logs_with_prep_tracker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/logs_with_prep_tracker.cc.o -MF CMakeFiles/rocksdb.dir/db/logs_with_prep_tracker.cc.o.d -o CMakeFiles/rocksdb.dir/db/logs_with_prep_tracker.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/logs_with_prep_tracker.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/log_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/log_reader.cc.o -MF CMakeFiles/rocksdb.dir/db/log_reader.cc.o.d -o CMakeFiles/rocksdb.dir/db/log_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/log_reader.cc [ 20%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/flush_scheduler.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/flush_scheduler.cc [ 20%] Building CXX object CMakeFiles/rocksdb.dir/db/log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/log_writer.cc.o -MF CMakeFiles/rocksdb.dir/db/log_writer.cc.o.d -o CMakeFiles/rocksdb.dir/db/log_writer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/log_writer.cc [ 21%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/forward_iterator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/forward_iterator.cc [ 21%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/import_column_family_job.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/import_column_family_job.cc [ 21%] Building CXX object CMakeFiles/rocksdb.dir/db/malloc_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/malloc_stats.cc.o -MF CMakeFiles/rocksdb.dir/db/malloc_stats.cc.o.d -o CMakeFiles/rocksdb.dir/db/malloc_stats.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/malloc_stats.cc [ 21%] Building CXX object CMakeFiles/rocksdb.dir/db/manifest_ops.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/manifest_ops.cc.o -MF CMakeFiles/rocksdb.dir/db/manifest_ops.cc.o.d -o CMakeFiles/rocksdb.dir/db/manifest_ops.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/manifest_ops.cc [ 22%] Building CXX object CMakeFiles/rocksdb.dir/db/memtable.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/memtable.cc.o -MF CMakeFiles/rocksdb.dir/db/memtable.cc.o.d -o CMakeFiles/rocksdb.dir/db/memtable.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/internal_stats.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/internal_stats.cc /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: error: insn does not satisfy its constraints: 269 | } | ^ (insn 271 270 272 13 (set (reg:CC_DNE 100 cc) (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) (const_int -1 [0xffffffffffffffff])) (ne:SI (reg:SI 1 r1 [+4 ]) (const_int -1 [0xffffffffffffffff]))) (const_int 0 [0]))) "/usr/include/c++/14/bits/atomic_base.h":573:36 343 {*cmp_ior} (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) (expr_list:REG_DEAD (reg:SI 0 r0 [164]) (nil)))) during RTL pass: cprop_hardreg /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 0x6a4a17 internal_error(char const*, ...) ???:0 0x6a4acd fancy_abort(char const*, int, char const*) ???:0 0x3d10f1 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x3d1123 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ???:0 0x946eb5 extract_constrain_insn(rtx_insn*) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/logs_with_prep_tracker.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/logs_with_prep_tracker.cc [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/log_reader.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/log_reader.cc [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/log_writer.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/log_writer.cc [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/malloc_stats.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/malloc_stats.cc [ 22%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/manifest_ops.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/manifest_ops.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/manifest_ops.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/manifest_ops.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/manifest_ops.cc [ 23%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc [ 23%] Building CXX object CMakeFiles/rocksdb.dir/db/memtable_list.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/memtable_list.cc.o -MF CMakeFiles/rocksdb.dir/db/memtable_list.cc.o.d -o CMakeFiles/rocksdb.dir/db/memtable_list.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/memtable_list.cc /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: error: insn does not satisfy its constraints: 269 | } | ^ (insn 271 270 272 13 (set (reg:CC_DNE 100 cc) (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) (const_int -1 [0xffffffffffffffff])) (ne:SI (reg:SI 1 r1 [+4 ]) (const_int -1 [0xffffffffffffffff]))) (const_int 0 [0]))) "/usr/include/c++/14/bits/atomic_base.h":573:36 343 {*cmp_ior} (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) (expr_list:REG_DEAD (reg:SI 0 r0 [164]) (nil)))) during RTL pass: cprop_hardreg /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 0x6a4a17 internal_error(char const*, ...) ???:0 0x6a4acd fancy_abort(char const*, int, char const*) ???:0 0x3d10f1 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ???:0 0x3d1123 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ???:0 0x946eb5 extract_constrain_insn(rtx_insn*) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Preprocessed source stored into /tmp/ccnNfuLv.out file, please attach this to your bugreport. === BEGIN GCC DUMP === 29724: // Target: arm-linux-gnueabihf 29724: // Configured with: ../src/configure -v --with-pkgversion='Debian 14.2.0-16' --with-bugurl=file:///usr/share/doc/gcc-14/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust --prefix=/usr --with-gcc-major-version-only --program-suffix=-14 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf 29724: // Thread model: posix 29724: // Supported LTO compression algorithms: zlib zstd 29724: // gcc version 14.2.0 (Debian 14.2.0-16) 29724: // 29724: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': 29724: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: error: insn does not satisfy its constraints: 29724: // 269 | } 29724: // | ^ 29724: // (insn 271 270 272 13 (set (reg:CC_DNE 100 cc) 29724: // (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) 29724: // (const_int -1 [0xffffffffffffffff])) 29724: // (ne:SI (reg:SI 1 r1 [+4 ]) 29724: // (const_int -1 [0xffffffffffffffff]))) 29724: // (const_int 0 [0]))) "/usr/include/c++/14/bits/atomic_base.h":573:36 343 {*cmp_ior} 29724: // (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) 29724: // (expr_list:REG_DEAD (reg:SI 0 r0 [164]) 29724: // (nil)))) 29724: // during RTL pass: cprop_hardreg 29724: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 29724: // 0x6a4a17 internal_error(char const*, ...) 29724: // ???:0 29724: // 0x6a4acd fancy_abort(char const*, int, char const*) 29724: // ???:0 29724: // 0x3d10f1 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) 29724: // ???:0 29724: // 0x3d1123 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) 29724: // ???:0 29724: // 0x946eb5 extract_constrain_insn(rtx_insn*) 29724: // ???:0 29724: // Please submit a full bug report, with preprocessed source (by using -freport-bug). 29724: // Please include the complete backtrace with any bug report. 29724: // See for instructions. 29724: 29724: // /usr/libexec/gcc/arm-linux-gnueabihf/14/cc1plus -quiet -I /build/reproducible-path/rocksdb-9.10.0 -I /build/reproducible-path/rocksdb-9.10.0/include -imultilib . -imultiarch arm-linux-gnueabihf -MD CMakeFiles/rocksdb.dir/db/memtable.cc.d -MF CMakeFiles/rocksdb.dir/db/memtable.cc.o.d -MT CMakeFiles/rocksdb.dir/db/memtable.cc.o -D_GNU_SOURCE -D_REENTRANT -D BZIP2 -D GFLAGS=1 -D GFLAGS_IS_A_DLL=0 -D LZ4 -D OS_LINUX -D ROCKSDB_AUXV_GETAUXVAL_PRESENT -D ROCKSDB_FALLOCATE_PRESENT -D ROCKSDB_LIB_IO_POSIX -D ROCKSDB_MALLOC_USABLE_SIZE -D ROCKSDB_NO_DYNAMIC_EXTENSION -D ROCKSDB_PLATFORM_POSIX -D ROCKSDB_PTHREAD_ADAPTIVE_MUTEX -D ROCKSDB_RANGESYNC_PRESENT -D ROCKSDB_SCHED_GETCPU_PRESENT -D SNAPPY -D ZLIB -D ZSTD -D _LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D _TIME_BITS=64 -D _FORTIFY_SOURCE=2 -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc -quiet -dumpdir CMakeFiles/rocksdb.dir/db/ -dumpbase memtable.cc.cc -dumpbase-ext .cc -mfloat-abi=hard -mtls-dialect=gnu -mthumb -mlibarch=armv8-a+crc+crypto -march=armv8-a+crc+crypto -g -O2 -Wformat=1 -Werror=format-security -Wdate-time -Wextra -Wall -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual=2 -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -Wno-unused-function -std=gnu++17 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -fno-omit-frame-pointer -fno-builtin-memcmp -o - -frandom-seed=0 -fdump-noaddr 29724: 29724: # 0 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf//" 29724: # 0 "" 29724: # 0 "" 29724: # 1 "/usr/include/stdc-predef.h" 1 3 4 29724: # 0 "" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: 29724: # 1 "/usr/include/c++/14/atomic" 1 3 29724: # 35 "/usr/include/c++/14/atomic" 3 29724: 29724: # 36 "/usr/include/c++/14/atomic" 3 29724: # 48 "/usr/include/c++/14/atomic" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 1 3 29724: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: 29724: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: 29724: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: namespace std 29724: { 29724: typedef unsigned int size_t; 29724: typedef int ptrdiff_t; 29724: 29724: 29724: typedef decltype(nullptr) nullptr_t; 29724: 29724: 29724: #pragma GCC visibility push(default) 29724: 29724: 29724: extern "C++" __attribute__ ((__noreturn__, __always_inline__)) 29724: inline void __terminate() noexcept 29724: { 29724: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 29724: terminate(); 29724: } 29724: #pragma GCC visibility pop 29724: } 29724: # 341 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: namespace std 29724: { 29724: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 29724: } 29724: namespace __gnu_cxx 29724: { 29724: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 29724: } 29724: # 534 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: namespace std 29724: { 29724: #pragma GCC visibility push(default) 29724: 29724: 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: constexpr inline bool 29724: __is_constant_evaluated() noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: return __builtin_is_constant_evaluated(); 29724: 29724: 29724: 29724: } 29724: #pragma GCC visibility pop 29724: } 29724: # 573 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: namespace std 29724: { 29724: #pragma GCC visibility push(default) 29724: 29724: extern "C++" __attribute__ ((__noreturn__)) 29724: void 29724: __glibcxx_assert_fail 29724: (const char* __file, int __line, const char* __function, 29724: const char* __condition) 29724: noexcept; 29724: #pragma GCC visibility pop 29724: } 29724: # 604 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: namespace std 29724: { 29724: __attribute__((__always_inline__,__visibility__("default"))) 29724: inline void 29724: __glibcxx_assert_fail() 29724: { } 29724: } 29724: # 683 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 1 3 29724: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 3 29724: # 1 "/usr/include/features.h" 1 3 4 29724: # 402 "/usr/include/features.h" 3 4 29724: # 1 "/usr/include/features-time64.h" 1 3 4 29724: # 20 "/usr/include/features-time64.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 21 "/usr/include/features-time64.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 29724: # 22 "/usr/include/features-time64.h" 2 3 4 29724: # 403 "/usr/include/features.h" 2 3 4 29724: # 510 "/usr/include/features.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 1 3 4 29724: # 730 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 731 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 29724: # 732 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 29724: # 511 "/usr/include/features.h" 2 3 4 29724: # 534 "/usr/include/features.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 1 3 4 29724: # 10 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs-hard.h" 1 3 4 29724: # 11 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 2 3 4 29724: # 535 "/usr/include/features.h" 2 3 4 29724: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 2 3 29724: # 684 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/cpu_defines.h" 1 3 29724: # 687 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29724: # 890 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29724: # 1 "/usr/include/c++/14/pstl/pstl_config.h" 1 3 29724: # 891 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29724: # 50 "/usr/include/c++/14/bits/version.h" 2 3 29724: # 49 "/usr/include/c++/14/atomic" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/atomic_base.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/new" 1 3 29724: # 38 "/usr/include/c++/14/new" 3 29724: 29724: # 39 "/usr/include/c++/14/new" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/exception.h" 1 3 29724: # 34 "/usr/include/c++/14/bits/exception.h" 3 29724: 29724: # 35 "/usr/include/c++/14/bits/exception.h" 3 29724: 29724: 29724: 29724: extern "C++" { 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: # 59 "/usr/include/c++/14/bits/exception.h" 3 29724: class exception 29724: { 29724: public: 29724: exception() noexcept { } 29724: virtual ~exception() noexcept; 29724: 29724: exception(const exception&) = default; 29724: exception& operator=(const exception&) = default; 29724: exception(exception&&) = default; 29724: exception& operator=(exception&&) = default; 29724: 29724: 29724: 29724: 29724: virtual const char* 29724: what() const noexcept; 29724: }; 29724: 29724: 29724: 29724: } 29724: 29724: } 29724: # 42 "/usr/include/c++/14/new" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 47 "/usr/include/c++/14/new" 2 3 29724: 29724: #pragma GCC visibility push(default) 29724: 29724: extern "C++" { 29724: 29724: namespace std 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class bad_alloc : public exception 29724: { 29724: public: 29724: bad_alloc() throw() { } 29724: 29724: 29724: bad_alloc(const bad_alloc&) = default; 29724: bad_alloc& operator=(const bad_alloc&) = default; 29724: 29724: 29724: 29724: 29724: virtual ~bad_alloc() throw(); 29724: 29724: 29724: virtual const char* what() const throw(); 29724: }; 29724: 29724: 29724: class bad_array_new_length : public bad_alloc 29724: { 29724: public: 29724: bad_array_new_length() throw() { } 29724: 29724: 29724: 29724: virtual ~bad_array_new_length() throw(); 29724: 29724: 29724: virtual const char* what() const throw(); 29724: }; 29724: 29724: 29724: 29724: enum class align_val_t: size_t {}; 29724: 29724: 29724: struct nothrow_t 29724: { 29724: 29724: explicit nothrow_t() = default; 29724: 29724: }; 29724: 29724: extern const nothrow_t nothrow; 29724: 29724: 29724: 29724: typedef void (*new_handler)(); 29724: 29724: 29724: 29724: new_handler set_new_handler(new_handler) throw(); 29724: 29724: 29724: 29724: new_handler get_new_handler() noexcept; 29724: 29724: } 29724: # 131 "/usr/include/c++/14/new" 3 29724: [[__nodiscard__]] void* operator new(std::size_t) 29724: __attribute__((__externally_visible__)); 29724: [[__nodiscard__]] void* operator new[](std::size_t) 29724: __attribute__((__externally_visible__)); 29724: void operator delete(void*) noexcept 29724: __attribute__((__externally_visible__)); 29724: void operator delete[](void*) noexcept 29724: __attribute__((__externally_visible__)); 29724: 29724: void operator delete(void*, std::size_t) noexcept 29724: __attribute__((__externally_visible__)); 29724: void operator delete[](void*, std::size_t) noexcept 29724: __attribute__((__externally_visible__)); 29724: 29724: [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept 29724: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept 29724: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: void operator delete(void*, const std::nothrow_t&) noexcept 29724: __attribute__((__externally_visible__)); 29724: void operator delete[](void*, const std::nothrow_t&) noexcept 29724: __attribute__((__externally_visible__)); 29724: 29724: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) 29724: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) 29724: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: void operator delete(void*, std::align_val_t) 29724: noexcept __attribute__((__externally_visible__)); 29724: void operator delete(void*, std::align_val_t, const std::nothrow_t&) 29724: noexcept __attribute__((__externally_visible__)); 29724: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) 29724: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) 29724: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29724: void operator delete[](void*, std::align_val_t) 29724: noexcept __attribute__((__externally_visible__)); 29724: void operator delete[](void*, std::align_val_t, const std::nothrow_t&) 29724: noexcept __attribute__((__externally_visible__)); 29724: 29724: void operator delete(void*, std::size_t, std::align_val_t) 29724: noexcept __attribute__((__externally_visible__)); 29724: void operator delete[](void*, std::size_t, std::align_val_t) 29724: noexcept __attribute__((__externally_visible__)); 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept 29724: { return __p; } 29724: [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept 29724: { return __p; } 29724: 29724: 29724: inline void operator delete (void*, void*) noexcept { } 29724: inline void operator delete[](void*, void*) noexcept { } 29724: 29724: } 29724: 29724: 29724: namespace std 29724: { 29724: 29724: 29724: template 29724: [[nodiscard]] constexpr _Tp* 29724: launder(_Tp* __p) noexcept 29724: { return __builtin_launder(__p); } 29724: 29724: 29724: 29724: 29724: template 29724: void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; 29724: template 29724: void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; 29724: 29724: void launder(void*) = delete; 29724: void launder(const void*) = delete; 29724: void launder(volatile void*) = delete; 29724: void launder(const volatile void*) = delete; 29724: 29724: 29724: 29724: inline constexpr size_t hardware_destructive_interference_size = 64; 29724: inline constexpr size_t hardware_constructive_interference_size = 64; 29724: 29724: } 29724: # 236 "/usr/include/c++/14/new" 3 29724: #pragma GCC visibility pop 29724: # 37 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 1 3 4 29724: # 9 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 3 4 29724: # 1 "/usr/include/stdint.h" 1 3 4 29724: # 26 "/usr/include/stdint.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 27 "/usr/include/stdint.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 28 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 29724: # 29 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29724: 29724: 29724: typedef unsigned char __u_char; 29724: typedef unsigned short int __u_short; 29724: typedef unsigned int __u_int; 29724: typedef unsigned long int __u_long; 29724: 29724: 29724: typedef signed char __int8_t; 29724: typedef unsigned char __uint8_t; 29724: typedef signed short int __int16_t; 29724: typedef unsigned short int __uint16_t; 29724: typedef signed int __int32_t; 29724: typedef unsigned int __uint32_t; 29724: 29724: 29724: 29724: 29724: __extension__ typedef signed long long int __int64_t; 29724: __extension__ typedef unsigned long long int __uint64_t; 29724: 29724: 29724: 29724: typedef __int8_t __int_least8_t; 29724: typedef __uint8_t __uint_least8_t; 29724: typedef __int16_t __int_least16_t; 29724: typedef __uint16_t __uint_least16_t; 29724: typedef __int32_t __int_least32_t; 29724: typedef __uint32_t __uint_least32_t; 29724: typedef __int64_t __int_least64_t; 29724: typedef __uint64_t __uint_least64_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: __extension__ typedef long long int __quad_t; 29724: __extension__ typedef unsigned long long int __u_quad_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __extension__ typedef long long int __intmax_t; 29724: __extension__ typedef unsigned long long int __uintmax_t; 29724: # 141 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/typesizes.h" 1 3 4 29724: # 142 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/time64.h" 1 3 4 29724: # 143 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29724: 29724: 29724: __extension__ typedef __uint64_t __dev_t; 29724: __extension__ typedef unsigned int __uid_t; 29724: __extension__ typedef unsigned int __gid_t; 29724: __extension__ typedef unsigned long int __ino_t; 29724: __extension__ typedef __uint64_t __ino64_t; 29724: __extension__ typedef unsigned int __mode_t; 29724: __extension__ typedef unsigned int __nlink_t; 29724: __extension__ typedef long int __off_t; 29724: __extension__ typedef __int64_t __off64_t; 29724: __extension__ typedef int __pid_t; 29724: __extension__ typedef struct { int __val[2]; } __fsid_t; 29724: __extension__ typedef long int __clock_t; 29724: __extension__ typedef unsigned long int __rlim_t; 29724: __extension__ typedef __uint64_t __rlim64_t; 29724: __extension__ typedef unsigned int __id_t; 29724: __extension__ typedef long int __time_t; 29724: __extension__ typedef unsigned int __useconds_t; 29724: __extension__ typedef long int __suseconds_t; 29724: __extension__ typedef __int64_t __suseconds64_t; 29724: 29724: __extension__ typedef int __daddr_t; 29724: __extension__ typedef int __key_t; 29724: 29724: 29724: __extension__ typedef int __clockid_t; 29724: 29724: 29724: __extension__ typedef void * __timer_t; 29724: 29724: 29724: __extension__ typedef long int __blksize_t; 29724: 29724: 29724: 29724: 29724: __extension__ typedef long int __blkcnt_t; 29724: __extension__ typedef __int64_t __blkcnt64_t; 29724: 29724: 29724: __extension__ typedef unsigned long int __fsblkcnt_t; 29724: __extension__ typedef __uint64_t __fsblkcnt64_t; 29724: 29724: 29724: __extension__ typedef unsigned long int __fsfilcnt_t; 29724: __extension__ typedef __uint64_t __fsfilcnt64_t; 29724: 29724: 29724: __extension__ typedef int __fsword_t; 29724: 29724: __extension__ typedef int __ssize_t; 29724: 29724: 29724: __extension__ typedef long int __syscall_slong_t; 29724: 29724: __extension__ typedef unsigned long int __syscall_ulong_t; 29724: 29724: 29724: 29724: typedef __off64_t __loff_t; 29724: typedef char *__caddr_t; 29724: 29724: 29724: __extension__ typedef int __intptr_t; 29724: 29724: 29724: __extension__ typedef unsigned int __socklen_t; 29724: 29724: 29724: 29724: 29724: typedef int __sig_atomic_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __extension__ typedef __int64_t __time64_t; 29724: # 28 "/usr/include/stdint.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar.h" 1 3 4 29724: # 29 "/usr/include/stdint.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 30 "/usr/include/stdint.h" 2 3 4 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 3 4 29724: typedef __int8_t int8_t; 29724: typedef __int16_t int16_t; 29724: typedef __int32_t int32_t; 29724: typedef __int64_t int64_t; 29724: # 35 "/usr/include/stdint.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 3 4 29724: typedef __uint8_t uint8_t; 29724: typedef __uint16_t uint16_t; 29724: typedef __uint32_t uint32_t; 29724: typedef __uint64_t uint64_t; 29724: # 38 "/usr/include/stdint.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 1 3 4 29724: # 25 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 3 4 29724: typedef __int_least8_t int_least8_t; 29724: typedef __int_least16_t int_least16_t; 29724: typedef __int_least32_t int_least32_t; 29724: typedef __int_least64_t int_least64_t; 29724: 29724: 29724: typedef __uint_least8_t uint_least8_t; 29724: typedef __uint_least16_t uint_least16_t; 29724: typedef __uint_least32_t uint_least32_t; 29724: typedef __uint_least64_t uint_least64_t; 29724: # 42 "/usr/include/stdint.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: typedef signed char int_fast8_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef int int_fast16_t; 29724: typedef int int_fast32_t; 29724: __extension__ 29724: typedef long long int int_fast64_t; 29724: 29724: 29724: 29724: typedef unsigned char uint_fast8_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef unsigned int uint_fast16_t; 29724: typedef unsigned int uint_fast32_t; 29724: __extension__ 29724: typedef unsigned long long int uint_fast64_t; 29724: # 82 "/usr/include/stdint.h" 3 4 29724: typedef int intptr_t; 29724: 29724: 29724: typedef unsigned int uintptr_t; 29724: 29724: 29724: 29724: 29724: typedef __intmax_t intmax_t; 29724: typedef __uintmax_t uintmax_t; 29724: # 10 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 2 3 4 29724: # 38 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 29724: # 39 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/move.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/move.h" 3 29724: # 1 "/usr/include/c++/14/type_traits" 1 3 29724: # 32 "/usr/include/c++/14/type_traits" 3 29724: 29724: # 33 "/usr/include/c++/14/type_traits" 3 29724: # 63 "/usr/include/c++/14/type_traits" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 64 "/usr/include/c++/14/type_traits" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: class reference_wrapper; 29724: # 86 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct integral_constant 29724: { 29724: static constexpr _Tp value = __v; 29724: using value_type = _Tp; 29724: using type = integral_constant<_Tp, __v>; 29724: constexpr operator value_type() const noexcept { return value; } 29724: 29724: 29724: constexpr value_type operator()() const noexcept { return value; } 29724: 29724: }; 29724: # 106 "/usr/include/c++/14/type_traits" 3 29724: template 29724: using __bool_constant = integral_constant; 29724: 29724: 29724: 29724: using true_type = __bool_constant; 29724: 29724: 29724: using false_type = __bool_constant; 29724: 29724: 29724: 29724: 29724: template 29724: using bool_constant = __bool_constant<__v>; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct enable_if 29724: { }; 29724: 29724: 29724: template 29724: struct enable_if 29724: { using type = _Tp; }; 29724: 29724: 29724: template 29724: using __enable_if_t = typename enable_if<_Cond, _Tp>::type; 29724: 29724: template 29724: struct __conditional 29724: { 29724: template 29724: using type = _Tp; 29724: }; 29724: 29724: template<> 29724: struct __conditional 29724: { 29724: template 29724: using type = _Up; 29724: }; 29724: 29724: 29724: template 29724: using __conditional_t 29724: = typename __conditional<_Cond>::template type<_If, _Else>; 29724: 29724: 29724: template 29724: struct __type_identity 29724: { using type = _Type; }; 29724: 29724: template 29724: using __type_identity_t = typename __type_identity<_Tp>::type; 29724: 29724: namespace __detail 29724: { 29724: 29724: template 29724: using __first_t = _Tp; 29724: 29724: 29724: template 29724: auto __or_fn(int) -> __first_t...>; 29724: 29724: template 29724: auto __or_fn(...) -> true_type; 29724: 29724: template 29724: auto __and_fn(int) -> __first_t...>; 29724: 29724: template 29724: auto __and_fn(...) -> false_type; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: struct __or_ 29724: : decltype(__detail::__or_fn<_Bn...>(0)) 29724: { }; 29724: 29724: template 29724: struct __and_ 29724: : decltype(__detail::__and_fn<_Bn...>(0)) 29724: { }; 29724: 29724: template 29724: struct __not_ 29724: : __bool_constant 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool __or_v = __or_<_Bn...>::value; 29724: template 29724: inline constexpr bool __and_v = __and_<_Bn...>::value; 29724: 29724: namespace __detail 29724: { 29724: template 29724: struct __disjunction_impl 29724: { using type = _B1; }; 29724: 29724: template 29724: struct __disjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 29724: { using type = typename __disjunction_impl::type; }; 29724: 29724: template 29724: struct __conjunction_impl 29724: { using type = _B1; }; 29724: 29724: template 29724: struct __conjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 29724: { using type = typename __conjunction_impl::type; }; 29724: } 29724: 29724: 29724: template 29724: struct conjunction 29724: : __detail::__conjunction_impl::type 29724: { }; 29724: 29724: template<> 29724: struct conjunction<> 29724: : true_type 29724: { }; 29724: 29724: template 29724: struct disjunction 29724: : __detail::__disjunction_impl::type 29724: { }; 29724: 29724: template<> 29724: struct disjunction<> 29724: : false_type 29724: { }; 29724: 29724: template 29724: struct negation 29724: : __not_<_Pp>::type 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool conjunction_v = conjunction<_Bn...>::value; 29724: 29724: template 29724: inline constexpr bool disjunction_v = disjunction<_Bn...>::value; 29724: 29724: template 29724: inline constexpr bool negation_v = negation<_Pp>::value; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_reference; 29724: template 29724: struct is_function; 29724: template 29724: struct is_void; 29724: template 29724: struct remove_cv; 29724: template 29724: struct is_const; 29724: 29724: 29724: template 29724: struct __is_array_unknown_bounds; 29724: 29724: 29724: 29724: 29724: template 29724: constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) 29724: { return {}; } 29724: 29724: template 29724: constexpr typename __or_< 29724: is_reference<_NestedType>, 29724: is_function<_NestedType>, 29724: is_void<_NestedType>, 29724: __is_array_unknown_bounds<_NestedType> 29724: >::type __is_complete_or_unbounded(_TypeIdentity) 29724: { return {}; } 29724: 29724: 29724: template 29724: using __remove_cv_t = typename remove_cv<_Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_void 29724: : public false_type { }; 29724: 29724: template<> 29724: struct is_void 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_void 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_void 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_void 29724: : public true_type { }; 29724: 29724: 29724: template 29724: struct __is_integral_helper 29724: : public false_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_integral_helper 29724: : public true_type { }; 29724: # 460 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_integral 29724: : public __is_integral_helper<__remove_cv_t<_Tp>>::type 29724: { }; 29724: 29724: 29724: template 29724: struct __is_floating_point_helper 29724: : public false_type { }; 29724: 29724: template<> 29724: struct __is_floating_point_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_floating_point_helper 29724: : public true_type { }; 29724: 29724: template<> 29724: struct __is_floating_point_helper 29724: : public true_type { }; 29724: # 520 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_floating_point 29724: : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_array 29724: : public __bool_constant<__is_array(_Tp)> 29724: { }; 29724: # 545 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct __is_pointer_helper 29724: : public false_type { }; 29724: 29724: template 29724: struct __is_pointer_helper<_Tp*> 29724: : public true_type { }; 29724: 29724: 29724: template 29724: struct is_pointer 29724: : public __is_pointer_helper<__remove_cv_t<_Tp>>::type 29724: { }; 29724: 29724: 29724: template 29724: struct is_lvalue_reference 29724: : public false_type { }; 29724: 29724: template 29724: struct is_lvalue_reference<_Tp&> 29724: : public true_type { }; 29724: 29724: 29724: template 29724: struct is_rvalue_reference 29724: : public false_type { }; 29724: 29724: template 29724: struct is_rvalue_reference<_Tp&&> 29724: : public true_type { }; 29724: 29724: 29724: 29724: template 29724: struct is_member_object_pointer 29724: : public __bool_constant<__is_member_object_pointer(_Tp)> 29724: { }; 29724: # 601 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_member_function_pointer 29724: : public __bool_constant<__is_member_function_pointer(_Tp)> 29724: { }; 29724: # 622 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_enum 29724: : public __bool_constant<__is_enum(_Tp)> 29724: { }; 29724: 29724: 29724: template 29724: struct is_union 29724: : public __bool_constant<__is_union(_Tp)> 29724: { }; 29724: 29724: 29724: template 29724: struct is_class 29724: : public __bool_constant<__is_class(_Tp)> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_function 29724: : public __bool_constant<__is_function(_Tp)> 29724: { }; 29724: # 661 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_null_pointer 29724: : public false_type { }; 29724: 29724: template<> 29724: struct is_null_pointer 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_null_pointer 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_null_pointer 29724: : public true_type { }; 29724: 29724: template<> 29724: struct is_null_pointer 29724: : public true_type { }; 29724: 29724: 29724: 29724: template 29724: struct __is_nullptr_t 29724: : public is_null_pointer<_Tp> 29724: { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_reference 29724: : public __bool_constant<__is_reference(_Tp)> 29724: { }; 29724: # 715 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_arithmetic 29724: : public __or_, is_floating_point<_Tp>>::type 29724: { }; 29724: 29724: 29724: template 29724: struct is_fundamental 29724: : public __or_, is_void<_Tp>, 29724: is_null_pointer<_Tp>>::type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_object 29724: : public __bool_constant<__is_object(_Tp)> 29724: { }; 29724: # 741 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_member_pointer; 29724: 29724: 29724: template 29724: struct is_scalar 29724: : public __or_, is_enum<_Tp>, is_pointer<_Tp>, 29724: is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 29724: { }; 29724: 29724: 29724: template 29724: struct is_compound 29724: : public __bool_constant::value> { }; 29724: 29724: 29724: 29724: template 29724: struct is_member_pointer 29724: : public __bool_constant<__is_member_pointer(_Tp)> 29724: { }; 29724: # 779 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_same; 29724: 29724: 29724: template 29724: using __is_one_of = __or_...>; 29724: 29724: 29724: __extension__ 29724: template 29724: using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, 29724: signed char, signed short, signed int, signed long, 29724: signed long long 29724: # 804 "/usr/include/c++/14/type_traits" 3 29724: >; 29724: 29724: 29724: __extension__ 29724: template 29724: using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, 29724: unsigned char, unsigned short, unsigned int, unsigned long, 29724: unsigned long long 29724: # 824 "/usr/include/c++/14/type_traits" 3 29724: >; 29724: 29724: 29724: template 29724: using __is_standard_integer 29724: = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; 29724: 29724: 29724: template using __void_t = void; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_const 29724: : public false_type { }; 29724: 29724: template 29724: struct is_const<_Tp const> 29724: : public true_type { }; 29724: 29724: 29724: template 29724: struct is_volatile 29724: : public false_type { }; 29724: 29724: template 29724: struct is_volatile<_Tp volatile> 29724: : public true_type { }; 29724: 29724: 29724: template 29724: struct is_trivial 29724: : public __bool_constant<__is_trivial(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_copyable 29724: : public __bool_constant<__is_trivially_copyable(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_standard_layout 29724: : public __bool_constant<__is_standard_layout(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: 29724: is_pod 29724: : public __bool_constant<__is_pod(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: [[__deprecated__]] 29724: is_literal_type 29724: : public __bool_constant<__is_literal_type(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_empty 29724: : public __bool_constant<__is_empty(_Tp)> 29724: { }; 29724: 29724: 29724: template 29724: struct is_polymorphic 29724: : public __bool_constant<__is_polymorphic(_Tp)> 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct is_final 29724: : public __bool_constant<__is_final(_Tp)> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_abstract 29724: : public __bool_constant<__is_abstract(_Tp)> 29724: { }; 29724: 29724: 29724: template::value> 29724: struct __is_signed_helper 29724: : public false_type { }; 29724: 29724: template 29724: struct __is_signed_helper<_Tp, true> 29724: : public __bool_constant<_Tp(-1) < _Tp(0)> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_signed 29724: : public __is_signed_helper<_Tp>::type 29724: { }; 29724: 29724: 29724: template 29724: struct is_unsigned 29724: : public __and_, __not_>>::type 29724: { }; 29724: 29724: 29724: template 29724: _Up 29724: __declval(int); 29724: 29724: template 29724: _Tp 29724: __declval(long); 29724: 29724: 29724: template 29724: auto declval() noexcept -> decltype(__declval<_Tp>(0)); 29724: 29724: template 29724: struct remove_all_extents; 29724: 29724: 29724: template 29724: struct __is_array_known_bounds 29724: : public false_type 29724: { }; 29724: 29724: template 29724: struct __is_array_known_bounds<_Tp[_Size]> 29724: : public true_type 29724: { }; 29724: 29724: template 29724: struct __is_array_unknown_bounds 29724: : public false_type 29724: { }; 29724: 29724: template 29724: struct __is_array_unknown_bounds<_Tp[]> 29724: : public true_type 29724: { }; 29724: # 1006 "/usr/include/c++/14/type_traits" 3 29724: struct __do_is_destructible_impl 29724: { 29724: template().~_Tp())> 29724: static true_type __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: template 29724: struct __is_destructible_impl 29724: : public __do_is_destructible_impl 29724: { 29724: using type = decltype(__test<_Tp>(0)); 29724: }; 29724: 29724: template, 29724: __is_array_unknown_bounds<_Tp>, 29724: is_function<_Tp>>::value, 29724: bool = __or_, is_scalar<_Tp>>::value> 29724: struct __is_destructible_safe; 29724: 29724: template 29724: struct __is_destructible_safe<_Tp, false, false> 29724: : public __is_destructible_impl::type>::type 29724: { }; 29724: 29724: template 29724: struct __is_destructible_safe<_Tp, true, false> 29724: : public false_type { }; 29724: 29724: template 29724: struct __is_destructible_safe<_Tp, false, true> 29724: : public true_type { }; 29724: 29724: 29724: 29724: template 29724: struct is_destructible 29724: : public __is_destructible_safe<_Tp>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct __do_is_nt_destructible_impl 29724: { 29724: template 29724: static __bool_constant().~_Tp())> 29724: __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: template 29724: struct __is_nt_destructible_impl 29724: : public __do_is_nt_destructible_impl 29724: { 29724: using type = decltype(__test<_Tp>(0)); 29724: }; 29724: 29724: template, 29724: __is_array_unknown_bounds<_Tp>, 29724: is_function<_Tp>>::value, 29724: bool = __or_, is_scalar<_Tp>>::value> 29724: struct __is_nt_destructible_safe; 29724: 29724: template 29724: struct __is_nt_destructible_safe<_Tp, false, false> 29724: : public __is_nt_destructible_impl::type>::type 29724: { }; 29724: 29724: template 29724: struct __is_nt_destructible_safe<_Tp, true, false> 29724: : public false_type { }; 29724: 29724: template 29724: struct __is_nt_destructible_safe<_Tp, false, true> 29724: : public true_type { }; 29724: 29724: 29724: 29724: template 29724: struct is_nothrow_destructible 29724: : public __is_nt_destructible_safe<_Tp>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_constructible_impl 29724: = __bool_constant<__is_constructible(_Tp, _Args...)>; 29724: 29724: 29724: 29724: template 29724: struct is_constructible 29724: : public __is_constructible_impl<_Tp, _Args...> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_default_constructible 29724: : public __is_constructible_impl<_Tp> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct __add_lvalue_reference_helper 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct __add_lvalue_reference_helper<_Tp, __void_t<_Tp&>> 29724: { using type = _Tp&; }; 29724: 29724: template 29724: using __add_lval_ref_t = typename __add_lvalue_reference_helper<_Tp>::type; 29724: 29724: 29724: 29724: template 29724: struct is_copy_constructible 29724: : public __is_constructible_impl<_Tp, __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct __add_rvalue_reference_helper 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct __add_rvalue_reference_helper<_Tp, __void_t<_Tp&&>> 29724: { using type = _Tp&&; }; 29724: 29724: template 29724: using __add_rval_ref_t = typename __add_rvalue_reference_helper<_Tp>::type; 29724: 29724: 29724: 29724: template 29724: struct is_move_constructible 29724: : public __is_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_nothrow_constructible_impl 29724: = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; 29724: 29724: 29724: 29724: template 29724: struct is_nothrow_constructible 29724: : public __is_nothrow_constructible_impl<_Tp, _Args...> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_default_constructible 29724: : public __is_nothrow_constructible_impl<_Tp> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_copy_constructible 29724: : public __is_nothrow_constructible_impl<_Tp, __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_move_constructible 29724: : public __is_nothrow_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>; 29724: 29724: 29724: 29724: template 29724: struct is_assignable 29724: : public __is_assignable_impl<_Tp, _Up> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_copy_assignable 29724: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, 29724: __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_move_assignable 29724: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_nothrow_assignable_impl 29724: = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; 29724: 29724: 29724: 29724: template 29724: struct is_nothrow_assignable 29724: : public __is_nothrow_assignable_impl<_Tp, _Up> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_copy_assignable 29724: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 29724: __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_move_assignable 29724: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 29724: __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_trivially_constructible_impl 29724: = __bool_constant<__is_trivially_constructible(_Tp, _Args...)>; 29724: 29724: 29724: 29724: template 29724: struct is_trivially_constructible 29724: : public __is_trivially_constructible_impl<_Tp, _Args...> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_default_constructible 29724: : public __is_trivially_constructible_impl<_Tp> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: # 1319 "/usr/include/c++/14/type_traits" 3 29724: struct __do_is_implicitly_default_constructible_impl 29724: { 29724: template 29724: static void __helper(const _Tp&); 29724: 29724: template 29724: static true_type __test(const _Tp&, 29724: decltype(__helper({}))* = 0); 29724: 29724: static false_type __test(...); 29724: }; 29724: 29724: template 29724: struct __is_implicitly_default_constructible_impl 29724: : public __do_is_implicitly_default_constructible_impl 29724: { 29724: using type = decltype(__test(declval<_Tp>())); 29724: }; 29724: 29724: template 29724: struct __is_implicitly_default_constructible_safe 29724: : public __is_implicitly_default_constructible_impl<_Tp>::type 29724: { }; 29724: 29724: template 29724: struct __is_implicitly_default_constructible 29724: : public __and_<__is_constructible_impl<_Tp>, 29724: __is_implicitly_default_constructible_safe<_Tp>>::type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct is_trivially_copy_constructible 29724: : public __is_trivially_constructible_impl<_Tp, __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_move_constructible 29724: : public __is_trivially_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using __is_trivially_assignable_impl 29724: = __bool_constant<__is_trivially_assignable(_Tp, _Up)>; 29724: 29724: 29724: 29724: template 29724: struct is_trivially_assignable 29724: : public __is_trivially_assignable_impl<_Tp, _Up> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_copy_assignable 29724: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 29724: __add_lval_ref_t> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_move_assignable 29724: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 29724: __add_rval_ref_t<_Tp>> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_trivially_destructible 29724: : public __and_<__is_destructible_safe<_Tp>, 29724: __bool_constant<__has_trivial_destructor(_Tp)>>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: template 29724: struct has_virtual_destructor 29724: : public __bool_constant<__has_virtual_destructor(_Tp)> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct alignment_of 29724: : public integral_constant 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct rank 29724: : public integral_constant { }; 29724: 29724: template 29724: struct rank<_Tp[_Size]> 29724: : public integral_constant::value> { }; 29724: 29724: template 29724: struct rank<_Tp[]> 29724: : public integral_constant::value> { }; 29724: 29724: 29724: template 29724: struct extent 29724: : public integral_constant { }; 29724: 29724: template 29724: struct extent<_Tp[_Size], 0> 29724: : public integral_constant { }; 29724: 29724: template 29724: struct extent<_Tp[_Size], _Uint> 29724: : public extent<_Tp, _Uint - 1>::type { }; 29724: 29724: template 29724: struct extent<_Tp[], 0> 29724: : public integral_constant { }; 29724: 29724: template 29724: struct extent<_Tp[], _Uint> 29724: : public extent<_Tp, _Uint - 1>::type { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_same 29724: : public __bool_constant<__is_same(_Tp, _Up)> 29724: { }; 29724: # 1491 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct is_base_of 29724: : public __bool_constant<__is_base_of(_Base, _Derived)> 29724: { }; 29724: 29724: 29724: template 29724: struct is_convertible 29724: : public __bool_constant<__is_convertible(_From, _To)> 29724: { }; 29724: # 1540 "/usr/include/c++/14/type_traits" 3 29724: template 29724: using __is_array_convertible 29724: = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; 29724: # 1600 "/usr/include/c++/14/type_traits" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++14-extensions" 29724: template 29724: struct __is_nothrow_new_constructible_impl 29724: : __bool_constant< 29724: noexcept(::new(std::declval()) _Tp(std::declval<_Args>()...)) 29724: > 29724: { }; 29724: 29724: template 29724: inline constexpr bool __is_nothrow_new_constructible 29724: = __and_, 29724: __is_nothrow_new_constructible_impl<_Tp, _Args...>>::value; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: template 29724: struct remove_const 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct remove_const<_Tp const> 29724: { using type = _Tp; }; 29724: 29724: 29724: template 29724: struct remove_volatile 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct remove_volatile<_Tp volatile> 29724: { using type = _Tp; }; 29724: 29724: 29724: 29724: template 29724: struct remove_cv 29724: { using type = __remove_cv(_Tp); }; 29724: # 1659 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct add_const 29724: { using type = _Tp const; }; 29724: 29724: 29724: template 29724: struct add_volatile 29724: { using type = _Tp volatile; }; 29724: 29724: 29724: template 29724: struct add_cv 29724: { using type = _Tp const volatile; }; 29724: 29724: 29724: 29724: template 29724: using remove_const_t = typename remove_const<_Tp>::type; 29724: 29724: 29724: template 29724: using remove_volatile_t = typename remove_volatile<_Tp>::type; 29724: 29724: 29724: template 29724: using remove_cv_t = typename remove_cv<_Tp>::type; 29724: 29724: 29724: template 29724: using add_const_t = typename add_const<_Tp>::type; 29724: 29724: 29724: template 29724: using add_volatile_t = typename add_volatile<_Tp>::type; 29724: 29724: 29724: template 29724: using add_cv_t = typename add_cv<_Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct remove_reference 29724: { using type = __remove_reference(_Tp); }; 29724: # 1721 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct add_lvalue_reference 29724: { using type = __add_lval_ref_t<_Tp>; }; 29724: 29724: 29724: template 29724: struct add_rvalue_reference 29724: { using type = __add_rval_ref_t<_Tp>; }; 29724: 29724: 29724: 29724: template 29724: using remove_reference_t = typename remove_reference<_Tp>::type; 29724: 29724: 29724: template 29724: using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; 29724: 29724: 29724: template 29724: using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __cv_selector; 29724: 29724: template 29724: struct __cv_selector<_Unqualified, false, false> 29724: { using __type = _Unqualified; }; 29724: 29724: template 29724: struct __cv_selector<_Unqualified, false, true> 29724: { using __type = volatile _Unqualified; }; 29724: 29724: template 29724: struct __cv_selector<_Unqualified, true, false> 29724: { using __type = const _Unqualified; }; 29724: 29724: template 29724: struct __cv_selector<_Unqualified, true, true> 29724: { using __type = const volatile _Unqualified; }; 29724: 29724: template::value, 29724: bool _IsVol = is_volatile<_Qualified>::value> 29724: class __match_cv_qualifiers 29724: { 29724: using __match = __cv_selector<_Unqualified, _IsConst, _IsVol>; 29724: 29724: public: 29724: using __type = typename __match::__type; 29724: }; 29724: 29724: 29724: template 29724: struct __make_unsigned 29724: { using __type = _Tp; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned char; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned char; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned short; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned int; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned long; }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { using __type = unsigned long long; }; 29724: # 1834 "/usr/include/c++/14/type_traits" 3 29724: template::value, 29724: bool _IsEnum = __is_enum(_Tp)> 29724: class __make_unsigned_selector; 29724: 29724: template 29724: class __make_unsigned_selector<_Tp, true, false> 29724: { 29724: using __unsigned_type 29724: = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; 29724: 29724: public: 29724: using __type 29724: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 29724: }; 29724: 29724: class __make_unsigned_selector_base 29724: { 29724: protected: 29724: template struct _List { }; 29724: 29724: template 29724: struct _List<_Tp, _Up...> : _List<_Up...> 29724: { static constexpr size_t __size = sizeof(_Tp); }; 29724: 29724: template 29724: struct __select; 29724: 29724: template 29724: struct __select<_Sz, _List<_Uint, _UInts...>, true> 29724: { using __type = _Uint; }; 29724: 29724: template 29724: struct __select<_Sz, _List<_Uint, _UInts...>, false> 29724: : __select<_Sz, _List<_UInts...>> 29724: { }; 29724: }; 29724: 29724: 29724: template 29724: class __make_unsigned_selector<_Tp, false, true> 29724: : __make_unsigned_selector_base 29724: { 29724: 29724: using _UInts = _List; 29724: 29724: using __unsigned_type = typename __select::__type; 29724: 29724: public: 29724: using __type 29724: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct __make_unsigned 29724: { 29724: using __type 29724: = typename __make_unsigned_selector::__type; 29724: }; 29724: # 1908 "/usr/include/c++/14/type_traits" 3 29724: template<> 29724: struct __make_unsigned 29724: { 29724: using __type 29724: = typename __make_unsigned_selector::__type; 29724: }; 29724: 29724: template<> 29724: struct __make_unsigned 29724: { 29724: using __type 29724: = typename __make_unsigned_selector::__type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct make_unsigned 29724: { using type = typename __make_unsigned_selector<_Tp>::__type; }; 29724: 29724: 29724: template<> struct make_unsigned; 29724: template<> struct make_unsigned; 29724: template<> struct make_unsigned; 29724: template<> struct make_unsigned; 29724: 29724: 29724: 29724: 29724: template 29724: struct __make_signed 29724: { using __type = _Tp; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed char; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed char; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed short; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed int; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed long; }; 29724: 29724: template<> 29724: struct __make_signed 29724: { using __type = signed long long; }; 29724: # 1994 "/usr/include/c++/14/type_traits" 3 29724: template::value, 29724: bool _IsEnum = __is_enum(_Tp)> 29724: class __make_signed_selector; 29724: 29724: template 29724: class __make_signed_selector<_Tp, true, false> 29724: { 29724: using __signed_type 29724: = typename __make_signed<__remove_cv_t<_Tp>>::__type; 29724: 29724: public: 29724: using __type 29724: = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; 29724: }; 29724: 29724: 29724: template 29724: class __make_signed_selector<_Tp, false, true> 29724: { 29724: using __unsigned_type = typename __make_unsigned_selector<_Tp>::__type; 29724: 29724: public: 29724: using __type = typename __make_signed_selector<__unsigned_type>::__type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct __make_signed 29724: { 29724: using __type 29724: = typename __make_signed_selector::__type; 29724: }; 29724: # 2040 "/usr/include/c++/14/type_traits" 3 29724: template<> 29724: struct __make_signed 29724: { 29724: using __type 29724: = typename __make_signed_selector::__type; 29724: }; 29724: 29724: template<> 29724: struct __make_signed 29724: { 29724: using __type 29724: = typename __make_signed_selector::__type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct make_signed 29724: { using type = typename __make_signed_selector<_Tp>::__type; }; 29724: 29724: 29724: template<> struct make_signed; 29724: template<> struct make_signed; 29724: template<> struct make_signed; 29724: template<> struct make_signed; 29724: 29724: 29724: 29724: template 29724: using make_signed_t = typename make_signed<_Tp>::type; 29724: 29724: 29724: template 29724: using make_unsigned_t = typename make_unsigned<_Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct remove_extent 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct remove_extent<_Tp[_Size]> 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct remove_extent<_Tp[]> 29724: { using type = _Tp; }; 29724: 29724: 29724: template 29724: struct remove_all_extents 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct remove_all_extents<_Tp[_Size]> 29724: { using type = typename remove_all_extents<_Tp>::type; }; 29724: 29724: template 29724: struct remove_all_extents<_Tp[]> 29724: { using type = typename remove_all_extents<_Tp>::type; }; 29724: 29724: 29724: 29724: template 29724: using remove_extent_t = typename remove_extent<_Tp>::type; 29724: 29724: 29724: template 29724: using remove_all_extents_t = typename remove_all_extents<_Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct remove_pointer 29724: { using type = __remove_pointer(_Tp); }; 29724: # 2139 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct __add_pointer_helper 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct __add_pointer_helper<_Tp, __void_t<_Tp*>> 29724: { using type = _Tp*; }; 29724: 29724: 29724: template 29724: struct add_pointer 29724: : public __add_pointer_helper<_Tp> 29724: { }; 29724: 29724: template 29724: struct add_pointer<_Tp&> 29724: { using type = _Tp*; }; 29724: 29724: template 29724: struct add_pointer<_Tp&&> 29724: { using type = _Tp*; }; 29724: 29724: 29724: 29724: template 29724: using remove_pointer_t = typename remove_pointer<_Tp>::type; 29724: 29724: 29724: template 29724: using add_pointer_t = typename add_pointer<_Tp>::type; 29724: 29724: 29724: template 29724: struct __aligned_storage_msa 29724: { 29724: union __type 29724: { 29724: unsigned char __data[_Len]; 29724: struct __attribute__((__aligned__)) { } __align; 29724: }; 29724: }; 29724: # 2194 "/usr/include/c++/14/type_traits" 3 29724: template::__type)> 29724: struct 29724: 29724: aligned_storage 29724: { 29724: union type 29724: { 29724: unsigned char __data[_Len]; 29724: struct __attribute__((__aligned__((_Align)))) { } __align; 29724: }; 29724: }; 29724: 29724: template 29724: struct __strictest_alignment 29724: { 29724: static const size_t _S_alignment = 0; 29724: static const size_t _S_size = 0; 29724: }; 29724: 29724: template 29724: struct __strictest_alignment<_Tp, _Types...> 29724: { 29724: static const size_t _S_alignment = 29724: alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment 29724: ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; 29724: static const size_t _S_size = 29724: sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size 29724: ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; 29724: }; 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: # 2240 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct 29724: 29724: aligned_union 29724: { 29724: private: 29724: static_assert(sizeof...(_Types) != 0, "At least one type is required"); 29724: 29724: using __strictest = __strictest_alignment<_Types...>; 29724: static const size_t _S_len = _Len > __strictest::_S_size 29724: ? _Len : __strictest::_S_size; 29724: public: 29724: 29724: static const size_t alignment_value = __strictest::_S_alignment; 29724: 29724: using type = typename aligned_storage<_S_len, alignment_value>::type; 29724: }; 29724: 29724: template 29724: const size_t aligned_union<_Len, _Types...>::alignment_value; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __decay_selector 29724: : __conditional_t::value, 29724: remove_cv<_Up>, 29724: add_pointer<_Up>> 29724: { }; 29724: 29724: template 29724: struct __decay_selector<_Up[_Nm]> 29724: { using type = _Up*; }; 29724: 29724: template 29724: struct __decay_selector<_Up[]> 29724: { using type = _Up*; }; 29724: 29724: 29724: 29724: 29724: template 29724: struct decay 29724: { using type = typename __decay_selector<_Tp>::type; }; 29724: 29724: template 29724: struct decay<_Tp&> 29724: { using type = typename __decay_selector<_Tp>::type; }; 29724: 29724: template 29724: struct decay<_Tp&&> 29724: { using type = typename __decay_selector<_Tp>::type; }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __strip_reference_wrapper 29724: { 29724: using __type = _Tp; 29724: }; 29724: 29724: template 29724: struct __strip_reference_wrapper > 29724: { 29724: using __type = _Tp&; 29724: }; 29724: 29724: 29724: template 29724: using __decay_t = typename decay<_Tp>::type; 29724: 29724: template 29724: using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: using _Require = __enable_if_t<__and_<_Cond...>::value>; 29724: 29724: 29724: template 29724: using __remove_cvref_t 29724: = typename remove_cv::type>::type; 29724: 29724: 29724: 29724: 29724: template 29724: struct conditional 29724: { using type = _Iftrue; }; 29724: 29724: 29724: template 29724: struct conditional 29724: { using type = _Iffalse; }; 29724: 29724: 29724: template 29724: struct common_type; 29724: # 2355 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct __success_type 29724: { using type = _Tp; }; 29724: 29724: struct __failure_type 29724: { }; 29724: 29724: struct __do_common_type_impl 29724: { 29724: template 29724: using __cond_t 29724: = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); 29724: 29724: 29724: 29724: template 29724: static __success_type<__decay_t<__cond_t<_Tp, _Up>>> 29724: _S_test(int); 29724: # 2382 "/usr/include/c++/14/type_traits" 3 29724: template 29724: static __failure_type 29724: _S_test_2(...); 29724: 29724: template 29724: static decltype(_S_test_2<_Tp, _Up>(0)) 29724: _S_test(...); 29724: }; 29724: 29724: 29724: template<> 29724: struct common_type<> 29724: { }; 29724: 29724: 29724: template 29724: struct common_type<_Tp0> 29724: : public common_type<_Tp0, _Tp0> 29724: { }; 29724: 29724: 29724: template, typename _Dp2 = __decay_t<_Tp2>> 29724: struct __common_type_impl 29724: { 29724: 29724: 29724: using type = common_type<_Dp1, _Dp2>; 29724: }; 29724: 29724: template 29724: struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> 29724: : private __do_common_type_impl 29724: { 29724: 29724: 29724: using type = decltype(_S_test<_Tp1, _Tp2>(0)); 29724: }; 29724: 29724: 29724: template 29724: struct common_type<_Tp1, _Tp2> 29724: : public __common_type_impl<_Tp1, _Tp2>::type 29724: { }; 29724: 29724: template 29724: struct __common_type_pack 29724: { }; 29724: 29724: template 29724: struct __common_type_fold; 29724: 29724: 29724: template 29724: struct common_type<_Tp1, _Tp2, _Rp...> 29724: : public __common_type_fold, 29724: __common_type_pack<_Rp...>> 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, 29724: __void_t> 29724: : public common_type 29724: { }; 29724: 29724: 29724: template 29724: struct __common_type_fold<_CTp, _Rp, void> 29724: { }; 29724: 29724: template 29724: struct __underlying_type_impl 29724: { 29724: using type = __underlying_type(_Tp); 29724: }; 29724: 29724: template 29724: struct __underlying_type_impl<_Tp, false> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct underlying_type 29724: : public __underlying_type_impl<_Tp> 29724: { }; 29724: 29724: 29724: template 29724: struct __declval_protector 29724: { 29724: static const bool __stop = false; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: auto declval() noexcept -> decltype(__declval<_Tp>(0)) 29724: { 29724: static_assert(__declval_protector<_Tp>::__stop, 29724: "declval() must not be used!"); 29724: return __declval<_Tp>(0); 29724: } 29724: 29724: 29724: template 29724: struct result_of; 29724: 29724: 29724: 29724: 29724: struct __invoke_memfun_ref { }; 29724: struct __invoke_memfun_deref { }; 29724: struct __invoke_memobj_ref { }; 29724: struct __invoke_memobj_deref { }; 29724: struct __invoke_other { }; 29724: 29724: 29724: template 29724: struct __result_of_success : __success_type<_Tp> 29724: { using __invoke_type = _Tag; }; 29724: 29724: 29724: struct __result_of_memfun_ref_impl 29724: { 29724: template 29724: static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) 29724: ), __invoke_memfun_ref> _S_test(int); 29724: 29724: template 29724: static __failure_type _S_test(...); 29724: }; 29724: 29724: template 29724: struct __result_of_memfun_ref 29724: : private __result_of_memfun_ref_impl 29724: { 29724: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 29724: }; 29724: 29724: 29724: struct __result_of_memfun_deref_impl 29724: { 29724: template 29724: static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) 29724: ), __invoke_memfun_deref> _S_test(int); 29724: 29724: template 29724: static __failure_type _S_test(...); 29724: }; 29724: 29724: template 29724: struct __result_of_memfun_deref 29724: : private __result_of_memfun_deref_impl 29724: { 29724: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 29724: }; 29724: 29724: 29724: struct __result_of_memobj_ref_impl 29724: { 29724: template 29724: static __result_of_success().*std::declval<_Fp>() 29724: ), __invoke_memobj_ref> _S_test(int); 29724: 29724: template 29724: static __failure_type _S_test(...); 29724: }; 29724: 29724: template 29724: struct __result_of_memobj_ref 29724: : private __result_of_memobj_ref_impl 29724: { 29724: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 29724: }; 29724: 29724: 29724: struct __result_of_memobj_deref_impl 29724: { 29724: template 29724: static __result_of_success()).*std::declval<_Fp>() 29724: ), __invoke_memobj_deref> _S_test(int); 29724: 29724: template 29724: static __failure_type _S_test(...); 29724: }; 29724: 29724: template 29724: struct __result_of_memobj_deref 29724: : private __result_of_memobj_deref_impl 29724: { 29724: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 29724: }; 29724: 29724: template 29724: struct __result_of_memobj; 29724: 29724: template 29724: struct __result_of_memobj<_Res _Class::*, _Arg> 29724: { 29724: using _Argval = __remove_cvref_t<_Arg>; 29724: using _MemPtr = _Res _Class::*; 29724: using type = typename __conditional_t<__or_, 29724: is_base_of<_Class, _Argval>>::value, 29724: __result_of_memobj_ref<_MemPtr, _Arg>, 29724: __result_of_memobj_deref<_MemPtr, _Arg> 29724: >::type; 29724: }; 29724: 29724: template 29724: struct __result_of_memfun; 29724: 29724: template 29724: struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> 29724: { 29724: using _Argval = typename remove_reference<_Arg>::type; 29724: using _MemPtr = _Res _Class::*; 29724: using type = typename __conditional_t::value, 29724: __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, 29724: __result_of_memfun_deref<_MemPtr, _Arg, _Args...> 29724: >::type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: struct __inv_unwrap 29724: { 29724: using type = _Tp; 29724: }; 29724: 29724: template 29724: struct __inv_unwrap<_Tp, reference_wrapper<_Up>> 29724: { 29724: using type = _Up&; 29724: }; 29724: 29724: template 29724: struct __result_of_impl 29724: { 29724: using type = __failure_type; 29724: }; 29724: 29724: template 29724: struct __result_of_impl 29724: : public __result_of_memobj<__decay_t<_MemPtr>, 29724: typename __inv_unwrap<_Arg>::type> 29724: { }; 29724: 29724: template 29724: struct __result_of_impl 29724: : public __result_of_memfun<__decay_t<_MemPtr>, 29724: typename __inv_unwrap<_Arg>::type, _Args...> 29724: { }; 29724: 29724: 29724: struct __result_of_other_impl 29724: { 29724: template 29724: static __result_of_success()(std::declval<_Args>()...) 29724: ), __invoke_other> _S_test(int); 29724: 29724: template 29724: static __failure_type _S_test(...); 29724: }; 29724: 29724: template 29724: struct __result_of_impl 29724: : private __result_of_other_impl 29724: { 29724: using type = decltype(_S_test<_Functor, _ArgTypes...>(0)); 29724: }; 29724: 29724: 29724: template 29724: struct __invoke_result 29724: : public __result_of_impl< 29724: is_member_object_pointer< 29724: typename remove_reference<_Functor>::type 29724: >::value, 29724: is_member_function_pointer< 29724: typename remove_reference<_Functor>::type 29724: >::value, 29724: _Functor, _ArgTypes... 29724: >::type 29724: { }; 29724: 29724: 29724: template 29724: using __invoke_result_t = typename __invoke_result<_Fn, _Args...>::type; 29724: 29724: 29724: template 29724: struct result_of<_Functor(_ArgTypes...)> 29724: : public __invoke_result<_Functor, _ArgTypes...> 29724: { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: template::__type)> 29724: using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; 29724: 29724: template 29724: using aligned_union_t = typename aligned_union<_Len, _Types...>::type; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: template 29724: using decay_t = typename decay<_Tp>::type; 29724: 29724: 29724: template 29724: using enable_if_t = typename enable_if<_Cond, _Tp>::type; 29724: 29724: 29724: template 29724: using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; 29724: 29724: 29724: template 29724: using common_type_t = typename common_type<_Tp...>::type; 29724: 29724: 29724: template 29724: using underlying_type_t = typename underlying_type<_Tp>::type; 29724: 29724: 29724: template 29724: using result_of_t = typename result_of<_Tp>::type; 29724: 29724: 29724: 29724: 29724: template using void_t = void; 29724: # 2759 "/usr/include/c++/14/type_traits" 3 29724: template class _Op, typename... _Args> 29724: struct __detector 29724: { 29724: using type = _Default; 29724: using __is_detected = false_type; 29724: }; 29724: 29724: 29724: template class _Op, 29724: typename... _Args> 29724: struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> 29724: { 29724: using type = _Op<_Args...>; 29724: using __is_detected = true_type; 29724: }; 29724: 29724: template class _Op, 29724: typename... _Args> 29724: using __detected_or = __detector<_Default, void, _Op, _Args...>; 29724: 29724: 29724: 29724: template class _Op, 29724: typename... _Args> 29724: using __detected_or_t 29724: = typename __detected_or<_Default, _Op, _Args...>::type; 29724: # 2801 "/usr/include/c++/14/type_traits" 3 29724: template 29724: struct __is_swappable; 29724: 29724: template 29724: struct __is_nothrow_swappable; 29724: 29724: template 29724: struct __is_tuple_like_impl : false_type 29724: { }; 29724: 29724: 29724: template 29724: struct __is_tuple_like 29724: : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type 29724: { }; 29724: 29724: 29724: template 29724: 29724: inline 29724: _Require<__not_<__is_tuple_like<_Tp>>, 29724: is_move_constructible<_Tp>, 29724: is_move_assignable<_Tp>> 29724: swap(_Tp&, _Tp&) 29724: noexcept(__and_, 29724: is_nothrow_move_assignable<_Tp>>::value); 29724: 29724: template 29724: 29724: inline 29724: __enable_if_t<__is_swappable<_Tp>::value> 29724: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 29724: noexcept(__is_nothrow_swappable<_Tp>::value); 29724: 29724: 29724: namespace __swappable_details { 29724: using std::swap; 29724: 29724: struct __do_is_swappable_impl 29724: { 29724: template(), std::declval<_Tp&>()))> 29724: static true_type __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: struct __do_is_nothrow_swappable_impl 29724: { 29724: template 29724: static __bool_constant< 29724: noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) 29724: > __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: } 29724: 29724: template 29724: struct __is_swappable_impl 29724: : public __swappable_details::__do_is_swappable_impl 29724: { 29724: using type = decltype(__test<_Tp>(0)); 29724: }; 29724: 29724: template 29724: struct __is_nothrow_swappable_impl 29724: : public __swappable_details::__do_is_nothrow_swappable_impl 29724: { 29724: using type = decltype(__test<_Tp>(0)); 29724: }; 29724: 29724: template 29724: struct __is_swappable 29724: : public __is_swappable_impl<_Tp>::type 29724: { }; 29724: 29724: template 29724: struct __is_nothrow_swappable 29724: : public __is_nothrow_swappable_impl<_Tp>::type 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_swappable 29724: : public __is_swappable_impl<_Tp>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_swappable 29724: : public __is_nothrow_swappable_impl<_Tp>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_swappable_v = 29724: is_swappable<_Tp>::value; 29724: 29724: 29724: template 29724: inline constexpr bool is_nothrow_swappable_v = 29724: is_nothrow_swappable<_Tp>::value; 29724: 29724: 29724: 29724: namespace __swappable_with_details { 29724: using std::swap; 29724: 29724: struct __do_is_swappable_with_impl 29724: { 29724: template(), std::declval<_Up>())), 29724: typename 29724: = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> 29724: static true_type __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: struct __do_is_nothrow_swappable_with_impl 29724: { 29724: template 29724: static __bool_constant< 29724: noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) 29724: && 29724: noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) 29724: > __test(int); 29724: 29724: template 29724: static false_type __test(...); 29724: }; 29724: 29724: } 29724: 29724: template 29724: struct __is_swappable_with_impl 29724: : public __swappable_with_details::__do_is_swappable_with_impl 29724: { 29724: using type = decltype(__test<_Tp, _Up>(0)); 29724: }; 29724: 29724: 29724: template 29724: struct __is_swappable_with_impl<_Tp&, _Tp&> 29724: : public __swappable_details::__do_is_swappable_impl 29724: { 29724: using type = decltype(__test<_Tp&>(0)); 29724: }; 29724: 29724: template 29724: struct __is_nothrow_swappable_with_impl 29724: : public __swappable_with_details::__do_is_nothrow_swappable_with_impl 29724: { 29724: using type = decltype(__test<_Tp, _Up>(0)); 29724: }; 29724: 29724: 29724: template 29724: struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> 29724: : public __swappable_details::__do_is_nothrow_swappable_impl 29724: { 29724: using type = decltype(__test<_Tp&>(0)); 29724: }; 29724: 29724: 29724: 29724: template 29724: struct is_swappable_with 29724: : public __is_swappable_with_impl<_Tp, _Up>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "first template argument must be a complete class or an unbounded array"); 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 29724: "second template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_swappable_with 29724: : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "first template argument must be a complete class or an unbounded array"); 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 29724: "second template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_swappable_with_v = 29724: is_swappable_with<_Tp, _Up>::value; 29724: 29724: 29724: template 29724: inline constexpr bool is_nothrow_swappable_with_v = 29724: is_nothrow_swappable_with<_Tp, _Up>::value; 29724: # 3023 "/usr/include/c++/14/type_traits" 3 29724: template::value, typename = void> 29724: struct __is_invocable_impl 29724: : false_type 29724: { 29724: using __nothrow_conv = false_type; 29724: }; 29724: 29724: 29724: template 29724: struct __is_invocable_impl<_Result, _Ret, 29724: true, 29724: __void_t> 29724: : true_type 29724: { 29724: using __nothrow_conv = true_type; 29724: }; 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 29724: 29724: template 29724: struct __is_invocable_impl<_Result, _Ret, 29724: false, 29724: __void_t> 29724: { 29724: private: 29724: 29724: using _Res_t = typename _Result::type; 29724: 29724: 29724: 29724: static _Res_t _S_get() noexcept; 29724: 29724: 29724: template 29724: static void _S_conv(__type_identity_t<_Tp>) noexcept; 29724: 29724: 29724: template(_S_get())), 29724: typename = decltype(_S_conv<_Tp>(_S_get())), 29724: 29724: bool _Dangle = __reference_converts_from_temporary(_Tp, _Res_t) 29724: 29724: 29724: 29724: > 29724: static __bool_constant<_Nothrow && !_Dangle> 29724: _S_test(int); 29724: 29724: template 29724: static false_type 29724: _S_test(...); 29724: 29724: public: 29724: 29724: using type = decltype(_S_test<_Ret, true>(1)); 29724: 29724: 29724: using __nothrow_conv = decltype(_S_test<_Ret>(1)); 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: template 29724: struct __is_invocable 29724: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 29724: { }; 29724: 29724: template 29724: constexpr bool __call_is_nt(__invoke_memfun_ref) 29724: { 29724: using _Up = typename __inv_unwrap<_Tp>::type; 29724: return noexcept((std::declval<_Up>().*std::declval<_Fn>())( 29724: std::declval<_Args>()...)); 29724: } 29724: 29724: template 29724: constexpr bool __call_is_nt(__invoke_memfun_deref) 29724: { 29724: return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( 29724: std::declval<_Args>()...)); 29724: } 29724: 29724: template 29724: constexpr bool __call_is_nt(__invoke_memobj_ref) 29724: { 29724: using _Up = typename __inv_unwrap<_Tp>::type; 29724: return noexcept(std::declval<_Up>().*std::declval<_Fn>()); 29724: } 29724: 29724: template 29724: constexpr bool __call_is_nt(__invoke_memobj_deref) 29724: { 29724: return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); 29724: } 29724: 29724: template 29724: constexpr bool __call_is_nt(__invoke_other) 29724: { 29724: return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); 29724: } 29724: 29724: template 29724: struct __call_is_nothrow 29724: : __bool_constant< 29724: std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) 29724: > 29724: { }; 29724: 29724: template 29724: using __call_is_nothrow_ 29724: = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; 29724: 29724: 29724: template 29724: struct __is_nothrow_invocable 29724: : __and_<__is_invocable<_Fn, _Args...>, 29724: __call_is_nothrow_<_Fn, _Args...>>::type 29724: { }; 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 29724: struct __nonesuchbase {}; 29724: struct __nonesuch : private __nonesuchbase { 29724: ~__nonesuch() = delete; 29724: __nonesuch(__nonesuch const&) = delete; 29724: void operator=(__nonesuch const&) = delete; 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: template 29724: struct invoke_result 29724: : public __invoke_result<_Functor, _ArgTypes...> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), 29724: "_Functor must be a complete class or an unbounded array"); 29724: static_assert((std::__is_complete_or_unbounded( 29724: __type_identity<_ArgTypes>{}) && ...), 29724: "each argument type must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; 29724: 29724: 29724: template 29724: struct is_invocable 29724: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29724: "_Fn must be a complete class or an unbounded array"); 29724: static_assert((std::__is_complete_or_unbounded( 29724: __type_identity<_ArgTypes>{}) && ...), 29724: "each argument type must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_invocable_r 29724: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29724: "_Fn must be a complete class or an unbounded array"); 29724: static_assert((std::__is_complete_or_unbounded( 29724: __type_identity<_ArgTypes>{}) && ...), 29724: "each argument type must be a complete class or an unbounded array"); 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 29724: "_Ret must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: template 29724: struct is_nothrow_invocable 29724: : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, 29724: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29724: "_Fn must be a complete class or an unbounded array"); 29724: static_assert((std::__is_complete_or_unbounded( 29724: __type_identity<_ArgTypes>{}) && ...), 29724: "each argument type must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: using __is_nt_invocable_impl 29724: = typename __is_invocable_impl<_Result, _Ret>::__nothrow_conv; 29724: 29724: 29724: 29724: template 29724: struct is_nothrow_invocable_r 29724: : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, 29724: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29724: "_Fn must be a complete class or an unbounded array"); 29724: static_assert((std::__is_complete_or_unbounded( 29724: __type_identity<_ArgTypes>{}) && ...), 29724: "each argument type must be a complete class or an unbounded array"); 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 29724: "_Ret must be a complete class or an unbounded array"); 29724: }; 29724: # 3251 "/usr/include/c++/14/type_traits" 3 29724: template 29724: inline constexpr bool is_void_v = is_void<_Tp>::value; 29724: template 29724: inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; 29724: template 29724: inline constexpr bool is_integral_v = is_integral<_Tp>::value; 29724: template 29724: inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; 29724: 29724: 29724: template 29724: inline constexpr bool is_array_v = __is_array(_Tp); 29724: # 3272 "/usr/include/c++/14/type_traits" 3 29724: template 29724: inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; 29724: template 29724: inline constexpr bool is_lvalue_reference_v = false; 29724: template 29724: inline constexpr bool is_lvalue_reference_v<_Tp&> = true; 29724: template 29724: inline constexpr bool is_rvalue_reference_v = false; 29724: template 29724: inline constexpr bool is_rvalue_reference_v<_Tp&&> = true; 29724: 29724: 29724: template 29724: inline constexpr bool is_member_object_pointer_v = 29724: __is_member_object_pointer(_Tp); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_member_function_pointer_v = 29724: __is_member_function_pointer(_Tp); 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_enum_v = __is_enum(_Tp); 29724: template 29724: inline constexpr bool is_union_v = __is_union(_Tp); 29724: template 29724: inline constexpr bool is_class_v = __is_class(_Tp); 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_reference_v = __is_reference(_Tp); 29724: # 3323 "/usr/include/c++/14/type_traits" 3 29724: template 29724: inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; 29724: template 29724: inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; 29724: 29724: 29724: template 29724: inline constexpr bool is_object_v = __is_object(_Tp); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; 29724: template 29724: inline constexpr bool is_compound_v = !is_fundamental_v<_Tp>; 29724: 29724: 29724: template 29724: inline constexpr bool is_member_pointer_v = __is_member_pointer(_Tp); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_const_v = false; 29724: template 29724: inline constexpr bool is_const_v = true; 29724: 29724: 29724: template 29724: inline constexpr bool is_function_v = __is_function(_Tp); 29724: # 3366 "/usr/include/c++/14/type_traits" 3 29724: template 29724: inline constexpr bool is_volatile_v = false; 29724: template 29724: inline constexpr bool is_volatile_v = true; 29724: 29724: template 29724: inline constexpr bool is_trivial_v = __is_trivial(_Tp); 29724: template 29724: inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(_Tp); 29724: template 29724: inline constexpr bool is_standard_layout_v = __is_standard_layout(_Tp); 29724: template 29724: 29724: inline constexpr bool is_pod_v = __is_pod(_Tp); 29724: template 29724: [[__deprecated__]] 29724: inline constexpr bool is_literal_type_v = __is_literal_type(_Tp); 29724: template 29724: inline constexpr bool is_empty_v = __is_empty(_Tp); 29724: template 29724: inline constexpr bool is_polymorphic_v = __is_polymorphic(_Tp); 29724: template 29724: inline constexpr bool is_abstract_v = __is_abstract(_Tp); 29724: template 29724: inline constexpr bool is_final_v = __is_final(_Tp); 29724: 29724: template 29724: inline constexpr bool is_signed_v = is_signed<_Tp>::value; 29724: template 29724: inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; 29724: 29724: template 29724: inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); 29724: template 29724: inline constexpr bool is_default_constructible_v = __is_constructible(_Tp); 29724: template 29724: inline constexpr bool is_copy_constructible_v 29724: = __is_constructible(_Tp, __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_move_constructible_v 29724: = __is_constructible(_Tp, __add_rval_ref_t<_Tp>); 29724: 29724: template 29724: inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up); 29724: template 29724: inline constexpr bool is_copy_assignable_v 29724: = __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_move_assignable_v 29724: = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 29724: 29724: template 29724: inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; 29724: 29724: template 29724: inline constexpr bool is_trivially_constructible_v 29724: = __is_trivially_constructible(_Tp, _Args...); 29724: template 29724: inline constexpr bool is_trivially_default_constructible_v 29724: = __is_trivially_constructible(_Tp); 29724: template 29724: inline constexpr bool is_trivially_copy_constructible_v 29724: = __is_trivially_constructible(_Tp, __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_trivially_move_constructible_v 29724: = __is_trivially_constructible(_Tp, __add_rval_ref_t<_Tp>); 29724: 29724: template 29724: inline constexpr bool is_trivially_assignable_v 29724: = __is_trivially_assignable(_Tp, _Up); 29724: template 29724: inline constexpr bool is_trivially_copy_assignable_v 29724: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 29724: __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_trivially_move_assignable_v 29724: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 29724: __add_rval_ref_t<_Tp>); 29724: # 3461 "/usr/include/c++/14/type_traits" 3 29724: template 29724: inline constexpr bool is_trivially_destructible_v = 29724: is_trivially_destructible<_Tp>::value; 29724: 29724: 29724: template 29724: inline constexpr bool is_nothrow_constructible_v 29724: = __is_nothrow_constructible(_Tp, _Args...); 29724: template 29724: inline constexpr bool is_nothrow_default_constructible_v 29724: = __is_nothrow_constructible(_Tp); 29724: template 29724: inline constexpr bool is_nothrow_copy_constructible_v 29724: = __is_nothrow_constructible(_Tp, __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_nothrow_move_constructible_v 29724: = __is_nothrow_constructible(_Tp, __add_rval_ref_t<_Tp>); 29724: 29724: template 29724: inline constexpr bool is_nothrow_assignable_v 29724: = __is_nothrow_assignable(_Tp, _Up); 29724: template 29724: inline constexpr bool is_nothrow_copy_assignable_v 29724: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, 29724: __add_lval_ref_t); 29724: template 29724: inline constexpr bool is_nothrow_move_assignable_v 29724: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 29724: 29724: template 29724: inline constexpr bool is_nothrow_destructible_v = 29724: is_nothrow_destructible<_Tp>::value; 29724: 29724: template 29724: inline constexpr bool has_virtual_destructor_v 29724: = __has_virtual_destructor(_Tp); 29724: 29724: template 29724: inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; 29724: 29724: template 29724: inline constexpr size_t rank_v = 0; 29724: template 29724: inline constexpr size_t rank_v<_Tp[_Size]> = 1 + rank_v<_Tp>; 29724: template 29724: inline constexpr size_t rank_v<_Tp[]> = 1 + rank_v<_Tp>; 29724: 29724: template 29724: inline constexpr size_t extent_v = 0; 29724: template 29724: inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size; 29724: template 29724: inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>; 29724: template 29724: inline constexpr size_t extent_v<_Tp[], 0> = 0; 29724: template 29724: inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>; 29724: 29724: 29724: template 29724: inline constexpr bool is_same_v = __is_same(_Tp, _Up); 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); 29724: 29724: template 29724: inline constexpr bool is_convertible_v = __is_convertible(_From, _To); 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; 29724: template 29724: inline constexpr bool is_nothrow_invocable_v 29724: = is_nothrow_invocable<_Fn, _Args...>::value; 29724: template 29724: inline constexpr bool is_invocable_r_v 29724: = is_invocable_r<_Ret, _Fn, _Args...>::value; 29724: template 29724: inline constexpr bool is_nothrow_invocable_r_v 29724: = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct has_unique_object_representations 29724: : bool_constant<__has_unique_object_representations( 29724: remove_cv_t> 29724: )> 29724: { 29724: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29724: "template argument must be a complete class or an unbounded array"); 29724: }; 29724: 29724: 29724: 29724: template 29724: inline constexpr bool has_unique_object_representations_v 29724: = has_unique_object_representations<_Tp>::value; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_aggregate 29724: : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<_Tp>); 29724: # 4017 "/usr/include/c++/14/type_traits" 3 29724: 29724: } 29724: # 38 "/usr/include/c++/14/bits/move.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline constexpr _Tp* 29724: __addressof(_Tp& __r) noexcept 29724: { return __builtin_addressof(__r); } 29724: # 68 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: [[__nodiscard__]] 29724: constexpr _Tp&& 29724: forward(typename std::remove_reference<_Tp>::type& __t) noexcept 29724: { return static_cast<_Tp&&>(__t); } 29724: # 81 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: [[__nodiscard__]] 29724: constexpr _Tp&& 29724: forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 29724: { 29724: static_assert(!std::is_lvalue_reference<_Tp>::value, 29724: "std::forward must not be used to convert an rvalue to an lvalue"); 29724: return static_cast<_Tp&&>(__t); 29724: } 29724: # 134 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: [[__nodiscard__]] 29724: constexpr typename std::remove_reference<_Tp>::type&& 29724: move(_Tp&& __t) noexcept 29724: { return static_cast::type&&>(__t); } 29724: 29724: 29724: template 29724: struct __move_if_noexcept_cond 29724: : public __and_<__not_>, 29724: is_copy_constructible<_Tp>>::type { }; 29724: # 155 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: [[__nodiscard__]] 29724: constexpr 29724: __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> 29724: move_if_noexcept(_Tp& __x) noexcept 29724: { return std::move(__x); } 29724: # 172 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr _Tp* 29724: addressof(_Tp& __r) noexcept 29724: { return std::__addressof(__r); } 29724: 29724: 29724: 29724: template 29724: const _Tp* addressof(const _Tp&&) = delete; 29724: 29724: 29724: template 29724: 29724: inline _Tp 29724: __exchange(_Tp& __obj, _Up&& __new_val) 29724: { 29724: _Tp __old_val = std::move(__obj); 29724: __obj = std::forward<_Up>(__new_val); 29724: return __old_val; 29724: } 29724: # 216 "/usr/include/c++/14/bits/move.h" 3 29724: template 29724: 29724: inline 29724: 29724: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 29724: is_move_constructible<_Tp>, 29724: is_move_assignable<_Tp>>::value>::type 29724: 29724: 29724: 29724: swap(_Tp& __a, _Tp& __b) 29724: noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value) 29724: 29724: { 29724: 29724: 29724: 29724: 29724: _Tp __tmp = std::move(__a); 29724: __a = std::move(__b); 29724: __b = std::move(__tmp); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline 29724: 29724: typename enable_if<__is_swappable<_Tp>::value>::type 29724: 29724: 29724: 29724: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 29724: noexcept(__is_nothrow_swappable<_Tp>::value) 29724: { 29724: for (size_t __n = 0; __n < _Nm; ++__n) 29724: swap(__a[__n], __b[__n]); 29724: } 29724: 29724: 29724: 29724: } 29724: # 40 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29724: # 49 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 50 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 81 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: enum memory_order : int 29724: { 29724: memory_order_relaxed, 29724: memory_order_consume, 29724: memory_order_acquire, 29724: memory_order_release, 29724: memory_order_acq_rel, 29724: memory_order_seq_cst 29724: }; 29724: 29724: 29724: 29724: enum __memory_order_modifier 29724: { 29724: __memory_order_mask = 0x0ffff, 29724: __memory_order_modifier_mask = 0xffff0000, 29724: __memory_order_hle_acquire = 0x10000, 29724: __memory_order_hle_release = 0x20000 29724: }; 29724: 29724: 29724: constexpr memory_order 29724: operator|(memory_order __m, __memory_order_modifier __mod) noexcept 29724: { 29724: return memory_order(int(__m) | int(__mod)); 29724: } 29724: 29724: constexpr memory_order 29724: operator&(memory_order __m, __memory_order_modifier __mod) noexcept 29724: { 29724: return memory_order(int(__m) & int(__mod)); 29724: } 29724: 29724: 29724: 29724: 29724: constexpr memory_order 29724: __cmpexch_failure_order2(memory_order __m) noexcept 29724: { 29724: return __m == memory_order_acq_rel ? memory_order_acquire 29724: : __m == memory_order_release ? memory_order_relaxed : __m; 29724: } 29724: 29724: constexpr memory_order 29724: __cmpexch_failure_order(memory_order __m) noexcept 29724: { 29724: return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) 29724: | __memory_order_modifier(__m & __memory_order_modifier_mask)); 29724: } 29724: 29724: constexpr bool 29724: __is_valid_cmpexch_failure_order(memory_order __m) noexcept 29724: { 29724: return (__m & __memory_order_mask) != memory_order_release 29724: && (__m & __memory_order_mask) != memory_order_acq_rel; 29724: } 29724: 29724: 29724: template 29724: struct __atomic_base; 29724: 29724: 29724: 29724: inline __attribute__((__always_inline__)) void 29724: atomic_thread_fence(memory_order __m) noexcept 29724: { __atomic_thread_fence(int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: atomic_signal_fence(memory_order __m) noexcept 29724: { __atomic_signal_fence(int(__m)); } 29724: 29724: 29724: template 29724: inline _Tp 29724: kill_dependency(_Tp __y) noexcept 29724: { 29724: _Tp __ret(__y); 29724: return __ret; 29724: } 29724: # 171 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: template 29724: struct atomic; 29724: 29724: template 29724: struct atomic<_Tp*>; 29724: 29724: 29724: 29724: typedef bool __atomic_flag_data_type; 29724: # 196 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: extern "C" { 29724: 29724: struct __atomic_flag_base 29724: { 29724: __atomic_flag_data_type _M_i ; 29724: }; 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct atomic_flag : public __atomic_flag_base 29724: { 29724: atomic_flag() noexcept = default; 29724: ~atomic_flag() noexcept = default; 29724: atomic_flag(const atomic_flag&) = delete; 29724: atomic_flag& operator=(const atomic_flag&) = delete; 29724: atomic_flag& operator=(const atomic_flag&) volatile = delete; 29724: 29724: 29724: constexpr atomic_flag(bool __i) noexcept 29724: : __atomic_flag_base{ _S_init(__i) } 29724: { } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: test_and_set(memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return __atomic_test_and_set (&_M_i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return __atomic_test_and_set (&_M_i, int(__m)); 29724: } 29724: # 280 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: inline __attribute__((__always_inline__)) void 29724: clear(memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_clear (&_M_i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: clear(memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_clear (&_M_i, int(__m)); 29724: } 29724: 29724: private: 29724: static constexpr __atomic_flag_data_type 29724: _S_init(bool __i) 29724: { return __i ? 1 : 0; } 29724: }; 29724: # 336 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: template 29724: struct __atomic_base 29724: { 29724: using value_type = _ITp; 29724: using difference_type = value_type; 29724: 29724: private: 29724: typedef _ITp __int_type; 29724: 29724: static constexpr int _S_alignment = 29724: sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); 29724: 29724: alignas(_S_alignment) __int_type _M_i ; 29724: 29724: public: 29724: __atomic_base() noexcept = default; 29724: ~__atomic_base() noexcept = default; 29724: __atomic_base(const __atomic_base&) = delete; 29724: __atomic_base& operator=(const __atomic_base&) = delete; 29724: __atomic_base& operator=(const __atomic_base&) volatile = delete; 29724: 29724: 29724: constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } 29724: 29724: operator __int_type() const noexcept 29724: { return load(); } 29724: 29724: operator __int_type() const volatile noexcept 29724: { return load(); } 29724: 29724: __int_type 29724: operator=(__int_type __i) noexcept 29724: { 29724: store(__i); 29724: return __i; 29724: } 29724: 29724: __int_type 29724: operator=(__int_type __i) volatile noexcept 29724: { 29724: store(__i); 29724: return __i; 29724: } 29724: 29724: __int_type 29724: operator++(int) noexcept 29724: { return fetch_add(1); } 29724: 29724: __int_type 29724: operator++(int) volatile noexcept 29724: { return fetch_add(1); } 29724: 29724: __int_type 29724: operator--(int) noexcept 29724: { return fetch_sub(1); } 29724: 29724: __int_type 29724: operator--(int) volatile noexcept 29724: { return fetch_sub(1); } 29724: 29724: __int_type 29724: operator++() noexcept 29724: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator++() volatile noexcept 29724: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator--() noexcept 29724: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator--() volatile noexcept 29724: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator+=(__int_type __i) noexcept 29724: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator+=(__int_type __i) volatile noexcept 29724: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator-=(__int_type __i) noexcept 29724: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator-=(__int_type __i) volatile noexcept 29724: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator&=(__int_type __i) noexcept 29724: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator&=(__int_type __i) volatile noexcept 29724: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator|=(__int_type __i) noexcept 29724: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator|=(__int_type __i) volatile noexcept 29724: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator^=(__int_type __i) noexcept 29724: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: __int_type 29724: operator^=(__int_type __i) volatile noexcept 29724: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29724: 29724: bool 29724: is_lock_free() const noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_i), 29724: reinterpret_cast(-_S_alignment)); 29724: } 29724: 29724: bool 29724: is_lock_free() const volatile noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_i), 29724: reinterpret_cast(-_S_alignment)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_store_n(&_M_i, __i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: store(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_store_n(&_M_i, __i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: load(memory_order __m = memory_order_seq_cst) const noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_load_n(&_M_i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_load_n(&_M_i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: exchange(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return __atomic_exchange_n(&_M_i, __i, int(__m)); 29724: } 29724: 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: exchange(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return __atomic_exchange_n(&_M_i, __i, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29724: memory_order __m1, memory_order __m2) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return compare_exchange_weak(__i1, __i2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return compare_exchange_weak(__i1, __i2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29724: memory_order __m1, memory_order __m2) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return compare_exchange_strong(__i1, __i2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return compare_exchange_strong(__i1, __i2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: # 628 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_add(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_add(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_sub(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_sub(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_and(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_and(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_or(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_or(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_xor(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __int_type 29724: fetch_xor(__int_type __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __atomic_base<_PTp*> 29724: { 29724: private: 29724: typedef _PTp* __pointer_type; 29724: 29724: __pointer_type _M_p ; 29724: 29724: 29724: constexpr ptrdiff_t 29724: _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } 29724: 29724: constexpr ptrdiff_t 29724: _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } 29724: 29724: public: 29724: __atomic_base() noexcept = default; 29724: ~__atomic_base() noexcept = default; 29724: __atomic_base(const __atomic_base&) = delete; 29724: __atomic_base& operator=(const __atomic_base&) = delete; 29724: __atomic_base& operator=(const __atomic_base&) volatile = delete; 29724: 29724: 29724: constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } 29724: 29724: operator __pointer_type() const noexcept 29724: { return load(); } 29724: 29724: operator __pointer_type() const volatile noexcept 29724: { return load(); } 29724: 29724: __pointer_type 29724: operator=(__pointer_type __p) noexcept 29724: { 29724: store(__p); 29724: return __p; 29724: } 29724: 29724: __pointer_type 29724: operator=(__pointer_type __p) volatile noexcept 29724: { 29724: store(__p); 29724: return __p; 29724: } 29724: 29724: __pointer_type 29724: operator++(int) noexcept 29724: { return fetch_add(1); } 29724: 29724: __pointer_type 29724: operator++(int) volatile noexcept 29724: { return fetch_add(1); } 29724: 29724: __pointer_type 29724: operator--(int) noexcept 29724: { return fetch_sub(1); } 29724: 29724: __pointer_type 29724: operator--(int) volatile noexcept 29724: { return fetch_sub(1); } 29724: 29724: __pointer_type 29724: operator++() noexcept 29724: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator++() volatile noexcept 29724: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator--() noexcept 29724: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator--() volatile noexcept 29724: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator+=(ptrdiff_t __d) noexcept 29724: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator+=(ptrdiff_t __d) volatile noexcept 29724: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator-=(ptrdiff_t __d) noexcept 29724: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 29724: int(memory_order_seq_cst)); } 29724: 29724: __pointer_type 29724: operator-=(ptrdiff_t __d) volatile noexcept 29724: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 29724: int(memory_order_seq_cst)); } 29724: 29724: bool 29724: is_lock_free() const noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_p), 29724: reinterpret_cast(-__alignof(_M_p))); 29724: } 29724: 29724: bool 29724: is_lock_free() const volatile noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_p), 29724: reinterpret_cast(-__alignof(_M_p))); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: store(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_store_n(&_M_p, __p, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) void 29724: store(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __atomic_store_n(&_M_p, __p, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: load(memory_order __m = memory_order_seq_cst) const noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_load_n(&_M_p, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29724: { 29724: memory_order __b __attribute__ ((__unused__)) 29724: = __m & __memory_order_mask; 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_load_n(&_M_p, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: exchange(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return __atomic_exchange_n(&_M_p, __p, int(__m)); 29724: } 29724: 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: exchange(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return __atomic_exchange_n(&_M_p, __p, int(__m)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 29724: int(__m1), int(__m2)); 29724: } 29724: 29724: inline __attribute__((__always_inline__)) bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 29724: int(__m1), int(__m2)); 29724: } 29724: # 931 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: fetch_add(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: fetch_add(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: fetch_sub(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 29724: 29724: inline __attribute__((__always_inline__)) __pointer_type 29724: fetch_sub(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 29724: }; 29724: 29724: namespace __atomic_impl 29724: { 29724: 29724: 29724: template 29724: constexpr bool 29724: __maybe_has_padding() 29724: { 29724: 29724: 29724: 29724: return !__has_unique_object_representations(_Tp) 29724: && !is_same<_Tp, float>::value && !is_same<_Tp, double>::value; 29724: 29724: 29724: 29724: } 29724: 29724: template 29724: inline __attribute__((__always_inline__)) constexpr _Tp* 29724: __clear_padding(_Tp& __val) noexcept 29724: { 29724: auto* __ptr = std::__addressof(__val); 29724: 29724: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 29724: __builtin_clear_padding(__ptr); 29724: 29724: return __ptr; 29724: } 29724: 29724: 29724: template 29724: using _Val = typename remove_volatile<_Tp>::type; 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: 29724: template 29724: inline __attribute__((__always_inline__)) bool 29724: __compare_exchange(_Tp& __val, _Val<_Tp>& __e, _Val<_Tp>& __i, 29724: bool __is_weak, 29724: memory_order __s, memory_order __f) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: using _Vp = _Val<_Tp>; 29724: _Tp* const __pval = std::__addressof(__val); 29724: 29724: if constexpr (!__atomic_impl::__maybe_has_padding<_Vp>()) 29724: { 29724: return __atomic_compare_exchange(__pval, std::__addressof(__e), 29724: std::__addressof(__i), __is_weak, 29724: int(__s), int(__f)); 29724: } 29724: else if constexpr (!_AtomicRef) 29724: { 29724: 29724: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 29724: 29724: _Vp __exp = __e; 29724: 29724: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 29724: 29724: 29724: 29724: if (__atomic_compare_exchange(__pval, __pexp, __pi, 29724: __is_weak, int(__s), int(__f))) 29724: return true; 29724: 29724: __builtin_memcpy(std::__addressof(__e), __pexp, sizeof(_Vp)); 29724: return false; 29724: } 29724: else 29724: { 29724: 29724: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 29724: 29724: 29724: _Vp __exp = __e; 29724: 29724: 29724: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 29724: # 1045 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: while (true) 29724: { 29724: 29724: _Vp __orig = __exp; 29724: 29724: if (__atomic_compare_exchange(__pval, __pexp, __pi, 29724: __is_weak, int(__s), int(__f))) 29724: return true; 29724: 29724: 29724: _Vp __curr = __exp; 29724: 29724: 29724: if (__builtin_memcmp(__atomic_impl::__clear_padding(__orig), 29724: __atomic_impl::__clear_padding(__curr), 29724: sizeof(_Vp))) 29724: { 29724: 29724: __builtin_memcpy(std::__addressof(__e), __pexp, 29724: sizeof(_Vp)); 29724: return false; 29724: } 29724: } 29724: } 29724: } 29724: #pragma GCC diagnostic pop 29724: } 29724: # 2065 "/usr/include/c++/14/bits/atomic_base.h" 3 29724: 29724: } 29724: # 51 "/usr/include/c++/14/atomic" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct atomic; 29724: 29724: 29724: 29724: template<> 29724: struct atomic 29724: { 29724: using value_type = bool; 29724: 29724: private: 29724: __atomic_base _M_base; 29724: 29724: public: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(bool __i) noexcept : _M_base(__i) { } 29724: 29724: bool 29724: operator=(bool __i) noexcept 29724: { return _M_base.operator=(__i); } 29724: 29724: bool 29724: operator=(bool __i) volatile noexcept 29724: { return _M_base.operator=(__i); } 29724: 29724: operator bool() const noexcept 29724: { return _M_base.load(); } 29724: 29724: operator bool() const volatile noexcept 29724: { return _M_base.load(); } 29724: 29724: bool 29724: is_lock_free() const noexcept { return _M_base.is_lock_free(); } 29724: 29724: bool 29724: is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: 29724: void 29724: store(bool __i, memory_order __m = memory_order_seq_cst) noexcept 29724: { _M_base.store(__i, __m); } 29724: 29724: void 29724: store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { _M_base.store(__i, __m); } 29724: 29724: bool 29724: load(memory_order __m = memory_order_seq_cst) const noexcept 29724: { return _M_base.load(__m); } 29724: 29724: bool 29724: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29724: { return _M_base.load(__m); } 29724: 29724: bool 29724: exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept 29724: { return _M_base.exchange(__i, __m); } 29724: 29724: bool 29724: exchange(bool __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return _M_base.exchange(__i, __m); } 29724: 29724: bool 29724: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_weak(bool& __i1, bool __i2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 29724: 29724: bool 29724: compare_exchange_weak(bool& __i1, bool __i2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 29724: 29724: bool 29724: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_strong(bool& __i1, bool __i2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 29724: 29724: bool 29724: compare_exchange_strong(bool& __i1, bool __i2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 29724: # 187 "/usr/include/c++/14/atomic" 3 29724: }; 29724: # 202 "/usr/include/c++/14/atomic" 3 29724: template 29724: struct atomic 29724: { 29724: using value_type = _Tp; 29724: 29724: private: 29724: 29724: static constexpr int _S_min_alignment 29724: = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 29724: ? 0 : sizeof(_Tp); 29724: 29724: static constexpr int _S_alignment 29724: = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); 29724: 29724: alignas(_S_alignment) _Tp _M_i ; 29724: 29724: static_assert(__is_trivially_copyable(_Tp), 29724: "std::atomic requires a trivially copyable type"); 29724: 29724: static_assert(sizeof(_Tp) > 0, 29724: "Incomplete or zero-sized types are not supported"); 29724: # 231 "/usr/include/c++/14/atomic" 3 29724: public: 29724: atomic() = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(_Tp __i) noexcept : _M_i(__i) 29724: { 29724: 29724: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 29724: __builtin_clear_padding(std::__addressof(_M_i)); 29724: 29724: } 29724: 29724: operator _Tp() const noexcept 29724: { return load(); } 29724: 29724: operator _Tp() const volatile noexcept 29724: { return load(); } 29724: 29724: _Tp 29724: operator=(_Tp __i) noexcept 29724: { store(__i); return __i; } 29724: 29724: _Tp 29724: operator=(_Tp __i) volatile noexcept 29724: { store(__i); return __i; } 29724: 29724: bool 29724: is_lock_free() const noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_i), 29724: reinterpret_cast(-_S_alignment)); 29724: } 29724: 29724: bool 29724: is_lock_free() const volatile noexcept 29724: { 29724: 29724: return __atomic_is_lock_free(sizeof(_M_i), 29724: reinterpret_cast(-_S_alignment)); 29724: } 29724: 29724: 29724: static constexpr bool is_always_lock_free 29724: = __atomic_always_lock_free(sizeof(_M_i), 0); 29724: 29724: 29724: void 29724: store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: __atomic_store(std::__addressof(_M_i), 29724: __atomic_impl::__clear_padding(__i), 29724: int(__m)); 29724: } 29724: 29724: void 29724: store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: __atomic_store(std::__addressof(_M_i), 29724: __atomic_impl::__clear_padding(__i), 29724: int(__m)); 29724: } 29724: 29724: _Tp 29724: load(memory_order __m = memory_order_seq_cst) const noexcept 29724: { 29724: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29724: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29724: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 29724: return *__ptr; 29724: } 29724: 29724: _Tp 29724: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29724: { 29724: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29724: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29724: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 29724: return *__ptr; 29724: } 29724: 29724: _Tp 29724: exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29724: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29724: __atomic_exchange(std::__addressof(_M_i), 29724: __atomic_impl::__clear_padding(__i), 29724: __ptr, int(__m)); 29724: return *__ptr; 29724: } 29724: 29724: _Tp 29724: exchange(_Tp __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29724: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29724: __atomic_exchange(std::__addressof(_M_i), 29724: __atomic_impl::__clear_padding(__i), 29724: __ptr, int(__m)); 29724: return *__ptr; 29724: } 29724: 29724: bool 29724: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 29724: memory_order __f) noexcept 29724: { 29724: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 29724: __s, __f); 29724: } 29724: 29724: bool 29724: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 29724: memory_order __f) volatile noexcept 29724: { 29724: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 29724: __s, __f); 29724: } 29724: 29724: bool 29724: compare_exchange_weak(_Tp& __e, _Tp __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return compare_exchange_weak(__e, __i, __m, 29724: __cmpexch_failure_order(__m)); } 29724: 29724: bool 29724: compare_exchange_weak(_Tp& __e, _Tp __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return compare_exchange_weak(__e, __i, __m, 29724: __cmpexch_failure_order(__m)); } 29724: 29724: bool 29724: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 29724: memory_order __f) noexcept 29724: { 29724: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 29724: __s, __f); 29724: } 29724: 29724: bool 29724: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 29724: memory_order __f) volatile noexcept 29724: { 29724: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 29724: __s, __f); 29724: } 29724: 29724: bool 29724: compare_exchange_strong(_Tp& __e, _Tp __i, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return compare_exchange_strong(__e, __i, __m, 29724: __cmpexch_failure_order(__m)); } 29724: 29724: bool 29724: compare_exchange_strong(_Tp& __e, _Tp __i, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return compare_exchange_strong(__e, __i, __m, 29724: __cmpexch_failure_order(__m)); } 29724: # 413 "/usr/include/c++/14/atomic" 3 29724: }; 29724: 29724: 29724: 29724: template 29724: struct atomic<_Tp*> 29724: { 29724: using value_type = _Tp*; 29724: using difference_type = ptrdiff_t; 29724: 29724: typedef _Tp* __pointer_type; 29724: typedef __atomic_base<_Tp*> __base_type; 29724: __base_type _M_b; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } 29724: 29724: operator __pointer_type() const noexcept 29724: { return __pointer_type(_M_b); } 29724: 29724: operator __pointer_type() const volatile noexcept 29724: { return __pointer_type(_M_b); } 29724: 29724: __pointer_type 29724: operator=(__pointer_type __p) noexcept 29724: { return _M_b.operator=(__p); } 29724: 29724: __pointer_type 29724: operator=(__pointer_type __p) volatile noexcept 29724: { return _M_b.operator=(__p); } 29724: 29724: __pointer_type 29724: operator++(int) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b++; 29724: } 29724: 29724: __pointer_type 29724: operator++(int) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b++; 29724: } 29724: 29724: __pointer_type 29724: operator--(int) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b--; 29724: } 29724: 29724: __pointer_type 29724: operator--(int) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b--; 29724: } 29724: 29724: __pointer_type 29724: operator++() noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return ++_M_b; 29724: } 29724: 29724: __pointer_type 29724: operator++() volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return ++_M_b; 29724: } 29724: 29724: __pointer_type 29724: operator--() noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return --_M_b; 29724: } 29724: 29724: __pointer_type 29724: operator--() volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return --_M_b; 29724: } 29724: 29724: __pointer_type 29724: operator+=(ptrdiff_t __d) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.operator+=(__d); 29724: } 29724: 29724: __pointer_type 29724: operator+=(ptrdiff_t __d) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.operator+=(__d); 29724: } 29724: 29724: __pointer_type 29724: operator-=(ptrdiff_t __d) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.operator-=(__d); 29724: } 29724: 29724: __pointer_type 29724: operator-=(ptrdiff_t __d) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.operator-=(__d); 29724: } 29724: 29724: bool 29724: is_lock_free() const noexcept 29724: { return _M_b.is_lock_free(); } 29724: 29724: bool 29724: is_lock_free() const volatile noexcept 29724: { return _M_b.is_lock_free(); } 29724: 29724: 29724: static constexpr bool is_always_lock_free 29724: = 2 == 2; 29724: 29724: 29724: void 29724: store(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return _M_b.store(__p, __m); } 29724: 29724: void 29724: store(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return _M_b.store(__p, __m); } 29724: 29724: __pointer_type 29724: load(memory_order __m = memory_order_seq_cst) const noexcept 29724: { return _M_b.load(__m); } 29724: 29724: __pointer_type 29724: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29724: { return _M_b.load(__m); } 29724: 29724: __pointer_type 29724: exchange(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { return _M_b.exchange(__p, __m); } 29724: 29724: __pointer_type 29724: exchange(__pointer_type __p, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { return _M_b.exchange(__p, __m); } 29724: 29724: bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, memory_order __m2) noexcept 29724: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return compare_exchange_weak(__p1, __p2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: bool 29724: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return compare_exchange_weak(__p1, __p2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, memory_order __m2) noexcept 29724: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m1, 29724: memory_order __m2) volatile noexcept 29724: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 29724: 29724: bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: return _M_b.compare_exchange_strong(__p1, __p2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: 29724: bool 29724: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: return _M_b.compare_exchange_strong(__p1, __p2, __m, 29724: __cmpexch_failure_order(__m)); 29724: } 29724: # 668 "/usr/include/c++/14/atomic" 3 29724: __pointer_type 29724: fetch_add(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.fetch_add(__d, __m); 29724: } 29724: 29724: __pointer_type 29724: fetch_add(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.fetch_add(__d, __m); 29724: } 29724: 29724: __pointer_type 29724: fetch_sub(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.fetch_sub(__d, __m); 29724: } 29724: 29724: __pointer_type 29724: fetch_sub(ptrdiff_t __d, 29724: memory_order __m = memory_order_seq_cst) volatile noexcept 29724: { 29724: 29724: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29724: 29724: return _M_b.fetch_sub(__d, __m); 29724: } 29724: }; 29724: 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef char __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef signed char __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept= default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef unsigned char __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept= default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef short __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef unsigned short __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef int __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef unsigned int __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef long __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef unsigned long __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef long long __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef unsigned long long __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef wchar_t __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free = 2 == 2; 29724: 29724: }; 29724: # 1013 "/usr/include/c++/14/atomic" 3 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef char16_t __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free 29724: = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: template<> 29724: struct atomic : __atomic_base 29724: { 29724: typedef char32_t __integral_type; 29724: typedef __atomic_base __base_type; 29724: 29724: atomic() noexcept = default; 29724: ~atomic() noexcept = default; 29724: atomic(const atomic&) = delete; 29724: atomic& operator=(const atomic&) = delete; 29724: atomic& operator=(const atomic&) volatile = delete; 29724: 29724: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29724: 29724: using __base_type::operator __integral_type; 29724: using __base_type::operator=; 29724: 29724: 29724: static constexpr bool is_always_lock_free 29724: = 2 == 2; 29724: 29724: }; 29724: 29724: 29724: 29724: typedef atomic atomic_bool; 29724: 29724: 29724: typedef atomic atomic_char; 29724: 29724: 29724: typedef atomic atomic_schar; 29724: 29724: 29724: typedef atomic atomic_uchar; 29724: 29724: 29724: typedef atomic atomic_short; 29724: 29724: 29724: typedef atomic atomic_ushort; 29724: 29724: 29724: typedef atomic atomic_int; 29724: 29724: 29724: typedef atomic atomic_uint; 29724: 29724: 29724: typedef atomic atomic_long; 29724: 29724: 29724: typedef atomic atomic_ulong; 29724: 29724: 29724: typedef atomic atomic_llong; 29724: 29724: 29724: typedef atomic atomic_ullong; 29724: 29724: 29724: typedef atomic atomic_wchar_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef atomic atomic_char16_t; 29724: 29724: 29724: typedef atomic atomic_char32_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef atomic atomic_int8_t; 29724: 29724: 29724: typedef atomic atomic_uint8_t; 29724: 29724: 29724: typedef atomic atomic_int16_t; 29724: 29724: 29724: typedef atomic atomic_uint16_t; 29724: 29724: 29724: typedef atomic atomic_int32_t; 29724: 29724: 29724: typedef atomic atomic_uint32_t; 29724: 29724: 29724: typedef atomic atomic_int64_t; 29724: 29724: 29724: typedef atomic atomic_uint64_t; 29724: 29724: 29724: 29724: typedef atomic atomic_int_least8_t; 29724: 29724: 29724: typedef atomic atomic_uint_least8_t; 29724: 29724: 29724: typedef atomic atomic_int_least16_t; 29724: 29724: 29724: typedef atomic atomic_uint_least16_t; 29724: 29724: 29724: typedef atomic atomic_int_least32_t; 29724: 29724: 29724: typedef atomic atomic_uint_least32_t; 29724: 29724: 29724: typedef atomic atomic_int_least64_t; 29724: 29724: 29724: typedef atomic atomic_uint_least64_t; 29724: 29724: 29724: 29724: typedef atomic atomic_int_fast8_t; 29724: 29724: 29724: typedef atomic atomic_uint_fast8_t; 29724: 29724: 29724: typedef atomic atomic_int_fast16_t; 29724: 29724: 29724: typedef atomic atomic_uint_fast16_t; 29724: 29724: 29724: typedef atomic atomic_int_fast32_t; 29724: 29724: 29724: typedef atomic atomic_uint_fast32_t; 29724: 29724: 29724: typedef atomic atomic_int_fast64_t; 29724: 29724: 29724: typedef atomic atomic_uint_fast64_t; 29724: 29724: 29724: 29724: typedef atomic atomic_intptr_t; 29724: 29724: 29724: typedef atomic atomic_uintptr_t; 29724: 29724: 29724: typedef atomic atomic_size_t; 29724: 29724: 29724: typedef atomic atomic_ptrdiff_t; 29724: 29724: 29724: typedef atomic atomic_intmax_t; 29724: 29724: 29724: typedef atomic atomic_uintmax_t; 29724: 29724: 29724: inline bool 29724: atomic_flag_test_and_set_explicit(atomic_flag* __a, 29724: memory_order __m) noexcept 29724: { return __a->test_and_set(__m); } 29724: 29724: inline bool 29724: atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, 29724: memory_order __m) noexcept 29724: { return __a->test_and_set(__m); } 29724: # 1239 "/usr/include/c++/14/atomic" 3 29724: inline void 29724: atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept 29724: { __a->clear(__m); } 29724: 29724: inline void 29724: atomic_flag_clear_explicit(volatile atomic_flag* __a, 29724: memory_order __m) noexcept 29724: { __a->clear(__m); } 29724: 29724: inline bool 29724: atomic_flag_test_and_set(atomic_flag* __a) noexcept 29724: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 29724: 29724: inline bool 29724: atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept 29724: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 29724: 29724: inline void 29724: atomic_flag_clear(atomic_flag* __a) noexcept 29724: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 29724: 29724: inline void 29724: atomic_flag_clear(volatile atomic_flag* __a) noexcept 29724: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 29724: # 1286 "/usr/include/c++/14/atomic" 3 29724: template 29724: using __atomic_val_t = __type_identity_t<_Tp>; 29724: template 29724: using __atomic_diff_t = typename atomic<_Tp>::difference_type; 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: atomic_is_lock_free(const atomic<_ITp>* __a) noexcept 29724: { return __a->is_lock_free(); } 29724: 29724: template 29724: inline bool 29724: atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept 29724: { return __a->is_lock_free(); } 29724: 29724: template 29724: inline void 29724: atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29724: { __a->store(__i, memory_order_relaxed); } 29724: 29724: template 29724: inline void 29724: atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29724: { __a->store(__i, memory_order_relaxed); } 29724: 29724: template 29724: inline void 29724: atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { __a->store(__i, __m); } 29724: 29724: template 29724: inline void 29724: atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { __a->store(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept 29724: { return __a->load(__m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_load_explicit(const volatile atomic<_ITp>* __a, 29724: memory_order __m) noexcept 29724: { return __a->load(__m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->exchange(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_exchange_explicit(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->exchange(__i, __m); } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2, 29724: memory_order __m1, 29724: memory_order __m2) noexcept 29724: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 29724: 29724: 29724: template 29724: inline void 29724: atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29724: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline void 29724: atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29724: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_load(const atomic<_ITp>* __a) noexcept 29724: { return atomic_load_explicit(__a, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_load(const volatile atomic<_ITp>* __a) noexcept 29724: { return atomic_load_explicit(__a, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_exchange(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_weak(atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2) noexcept 29724: { 29724: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 29724: memory_order_seq_cst, 29724: memory_order_seq_cst); 29724: } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2) noexcept 29724: { 29724: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 29724: memory_order_seq_cst, 29724: memory_order_seq_cst); 29724: } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_strong(atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2) noexcept 29724: { 29724: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 29724: memory_order_seq_cst, 29724: memory_order_seq_cst); 29724: } 29724: 29724: template 29724: inline bool 29724: atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, 29724: __atomic_val_t<_ITp>* __i1, 29724: __atomic_val_t<_ITp> __i2) noexcept 29724: { 29724: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 29724: memory_order_seq_cst, 29724: memory_order_seq_cst); 29724: } 29724: # 1492 "/usr/include/c++/14/atomic" 3 29724: template 29724: inline _ITp 29724: atomic_fetch_add_explicit(atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_add(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_add(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_sub_explicit(atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_sub(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_sub(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_and(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_and(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_or(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_or(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_xor(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i, 29724: memory_order __m) noexcept 29724: { return __a->fetch_xor(__i, __m); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_add(atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i) noexcept 29724: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_add(volatile atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i) noexcept 29724: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_sub(atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i) noexcept 29724: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_sub(volatile atomic<_ITp>* __a, 29724: __atomic_diff_t<_ITp> __i) noexcept 29724: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_and(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_and(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_or(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_or(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_xor(__atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 29724: 29724: template 29724: inline _ITp 29724: atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, 29724: __atomic_val_t<_ITp> __i) noexcept 29724: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 29724: # 1793 "/usr/include/c++/14/atomic" 3 29724: 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/usr/include/c++/14/deque" 1 3 29724: # 58 "/usr/include/c++/14/deque" 3 29724: 29724: # 59 "/usr/include/c++/14/deque" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/requires_hosted.h" 1 3 29724: # 61 "/usr/include/c++/14/deque" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_algobase.h" 1 3 29724: # 60 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: # 1 "/usr/include/c++/14/bits/functexcept.h" 1 3 29724: # 40 "/usr/include/c++/14/bits/functexcept.h" 3 29724: # 1 "/usr/include/c++/14/bits/exception_defines.h" 1 3 29724: # 41 "/usr/include/c++/14/bits/functexcept.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: void 29724: __throw_bad_exception(void) __attribute__((__noreturn__)); 29724: 29724: 29724: void 29724: __throw_bad_alloc(void) __attribute__((__noreturn__)); 29724: 29724: void 29724: __throw_bad_array_new_length(void) __attribute__((__noreturn__)); 29724: 29724: 29724: void 29724: __throw_bad_cast(void) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_bad_typeid(void) __attribute__((__noreturn__,__cold__)); 29724: 29724: 29724: void 29724: __throw_logic_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_domain_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_invalid_argument(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_length_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_out_of_range(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__,__cold__)) 29724: __attribute__((__format__(__gnu_printf__, 1, 2))); 29724: 29724: void 29724: __throw_runtime_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_range_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_overflow_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_underflow_error(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: 29724: void 29724: __throw_ios_failure(const char*) __attribute__((__noreturn__,__cold__)); 29724: 29724: void 29724: __throw_ios_failure(const char*, int) __attribute__((__noreturn__,__cold__)); 29724: 29724: 29724: void 29724: __throw_system_error(int) __attribute__((__noreturn__,__cold__)); 29724: 29724: 29724: void 29724: __throw_future_error(int) __attribute__((__noreturn__,__cold__)); 29724: 29724: 29724: void 29724: __throw_bad_function_call() __attribute__((__noreturn__,__cold__)); 29724: # 140 "/usr/include/c++/14/bits/functexcept.h" 3 29724: 29724: } 29724: # 61 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/cpp_type_traits.h" 1 3 29724: # 35 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: 29724: # 36 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 39 "/usr/include/c++/14/bits/cpp_type_traits.h" 2 3 29724: # 68 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: extern "C++" { 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: struct __true_type { }; 29724: struct __false_type { }; 29724: 29724: template 29724: struct __truth_type 29724: { typedef __false_type __type; }; 29724: 29724: template<> 29724: struct __truth_type 29724: { typedef __true_type __type; }; 29724: 29724: 29724: 29724: template 29724: struct __traitor 29724: { 29724: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; 29724: typedef typename __truth_type<__value>::__type __type; 29724: }; 29724: 29724: 29724: template 29724: struct __are_same 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: template 29724: struct __are_same<_Tp, _Tp> 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: template 29724: struct __is_void 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_void 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_integer 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: # 185 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_integer 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: # 290 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: template 29724: struct __is_floating 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: 29724: template<> 29724: struct __is_floating 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_floating 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_floating 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: # 367 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: template 29724: struct __is_pointer 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: template 29724: struct __is_pointer<_Tp*> 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_arithmetic 29724: : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_scalar 29724: : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_char 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_char 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: template<> 29724: struct __is_char 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: template 29724: struct __is_byte 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_byte 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_byte 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template<> 29724: struct __is_byte 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: 29724: enum class byte : unsigned char; 29724: 29724: template<> 29724: struct __is_byte 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: # 471 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: template struct iterator_traits; 29724: 29724: 29724: template 29724: struct __is_nonvolatile_trivially_copyable 29724: { 29724: enum { __value = __is_trivially_copyable(_Tp) }; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_nonvolatile_trivially_copyable 29724: { 29724: enum { __value = 0 }; 29724: }; 29724: 29724: 29724: template 29724: struct __memcpyable 29724: { 29724: enum { __value = 0 }; 29724: }; 29724: 29724: template 29724: struct __memcpyable<_Tp*, _Tp*> 29724: : __is_nonvolatile_trivially_copyable<_Tp> 29724: { }; 29724: 29724: template 29724: struct __memcpyable<_Tp*, const _Tp*> 29724: : __is_nonvolatile_trivially_copyable<_Tp> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __memcmpable 29724: { 29724: enum { __value = 0 }; 29724: }; 29724: 29724: 29724: template 29724: struct __memcmpable<_Tp*, _Tp*> 29724: : __is_nonvolatile_trivially_copyable<_Tp> 29724: { }; 29724: 29724: template 29724: struct __memcmpable 29724: : __is_nonvolatile_trivially_copyable<_Tp> 29724: { }; 29724: 29724: template 29724: struct __memcmpable<_Tp*, const _Tp*> 29724: : __is_nonvolatile_trivially_copyable<_Tp> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template::__value 29724: 29724: > 29724: struct __is_memcmp_ordered 29724: { 29724: static const bool __value = _Tp(-1) > _Tp(1); 29724: }; 29724: 29724: template 29724: struct __is_memcmp_ordered<_Tp, false> 29724: { 29724: static const bool __value = false; 29724: }; 29724: 29724: 29724: template 29724: struct __is_memcmp_ordered_with 29724: { 29724: static const bool __value = __is_memcmp_ordered<_Tp>::__value 29724: && __is_memcmp_ordered<_Up>::__value; 29724: }; 29724: 29724: template 29724: struct __is_memcmp_ordered_with<_Tp, _Up, false> 29724: { 29724: static const bool __value = false; 29724: }; 29724: # 580 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29724: template<> 29724: struct __is_memcmp_ordered_with 29724: { static constexpr bool __value = true; }; 29724: 29724: template 29724: struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> 29724: { static constexpr bool __value = false; }; 29724: 29724: template 29724: struct __is_memcmp_ordered_with 29724: { static constexpr bool __value = false; }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_move_iterator 29724: { 29724: enum { __value = 0 }; 29724: typedef __false_type __type; 29724: }; 29724: 29724: 29724: 29724: template 29724: 29724: inline _Iterator 29724: __miter_base(_Iterator __it) 29724: { return __it; } 29724: 29724: 29724: } 29724: } 29724: # 62 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/ext/type_traits.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/type_traits.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/type_traits.h" 3 29724: 29724: 29724: 29724: 29724: extern "C++" { 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: struct __enable_if 29724: { }; 29724: 29724: template 29724: struct __enable_if 29724: { typedef _Tp __type; }; 29724: 29724: 29724: 29724: template 29724: struct __conditional_type 29724: { typedef _Iftrue __type; }; 29724: 29724: template 29724: struct __conditional_type 29724: { typedef _Iffalse __type; }; 29724: 29724: 29724: 29724: template 29724: struct __add_unsigned 29724: { 29724: private: 29724: typedef __enable_if::__value, _Tp> __if_type; 29724: 29724: public: 29724: typedef typename __if_type::__type __type; 29724: }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned char __type; }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned char __type; }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned short __type; }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned int __type; }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned long __type; }; 29724: 29724: template<> 29724: struct __add_unsigned 29724: { typedef unsigned long long __type; }; 29724: 29724: 29724: template<> 29724: struct __add_unsigned; 29724: 29724: template<> 29724: struct __add_unsigned; 29724: 29724: 29724: 29724: template 29724: struct __remove_unsigned 29724: { 29724: private: 29724: typedef __enable_if::__value, _Tp> __if_type; 29724: 29724: public: 29724: typedef typename __if_type::__type __type; 29724: }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef signed char __type; }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef signed char __type; }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef short __type; }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef int __type; }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef long __type; }; 29724: 29724: template<> 29724: struct __remove_unsigned 29724: { typedef long long __type; }; 29724: 29724: 29724: template<> 29724: struct __remove_unsigned; 29724: 29724: template<> 29724: struct __remove_unsigned; 29724: 29724: 29724: 29724: template 29724: constexpr 29724: inline bool 29724: __is_null_pointer(_Type* __ptr) 29724: { return __ptr == 0; } 29724: 29724: template 29724: constexpr 29724: inline bool 29724: __is_null_pointer(_Type) 29724: { return false; } 29724: 29724: 29724: constexpr bool 29724: __is_null_pointer(std::nullptr_t) 29724: { return true; } 29724: 29724: 29724: 29724: 29724: template::__value> 29724: struct __promote 29724: { typedef double __type; }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __promote<_Tp, false> 29724: { }; 29724: 29724: template<> 29724: struct __promote 29724: { typedef long double __type; }; 29724: 29724: template<> 29724: struct __promote 29724: { typedef double __type; }; 29724: 29724: template<> 29724: struct __promote 29724: { typedef float __type; }; 29724: # 225 "/usr/include/c++/14/ext/type_traits.h" 3 29724: template 29724: using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); 29724: 29724: 29724: 29724: template 29724: using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; 29724: 29724: template 29724: using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; 29724: 29724: template 29724: using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; 29724: # 269 "/usr/include/c++/14/ext/type_traits.h" 3 29724: 29724: } 29724: } 29724: # 63 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/ext/numeric_traits.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: 29724: 29724: 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 50 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: template 29724: struct __is_integer_nonstrict 29724: : public std::__is_integer<_Tp> 29724: { 29724: using std::__is_integer<_Tp>::__value; 29724: 29724: 29724: enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; 29724: }; 29724: 29724: template 29724: struct __numeric_traits_integer 29724: { 29724: 29724: static_assert(__is_integer_nonstrict<_Value>::__value, 29724: "invalid specialization"); 29724: 29724: 29724: 29724: 29724: static const bool __is_signed = (_Value)(-1) < 0; 29724: static const int __digits 29724: = __is_integer_nonstrict<_Value>::__width - __is_signed; 29724: 29724: 29724: static const _Value __max = __is_signed 29724: ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) 29724: : ~(_Value)0; 29724: static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; 29724: }; 29724: 29724: template 29724: const _Value __numeric_traits_integer<_Value>::__min; 29724: 29724: template 29724: const _Value __numeric_traits_integer<_Value>::__max; 29724: 29724: template 29724: const bool __numeric_traits_integer<_Value>::__is_signed; 29724: 29724: template 29724: const int __numeric_traits_integer<_Value>::__digits; 29724: # 137 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: template 29724: using __int_traits = __numeric_traits_integer<_Tp>; 29724: # 157 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: template 29724: struct __numeric_traits_floating 29724: { 29724: 29724: static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 53) * 643L / 2136); 29724: 29724: 29724: static const bool __is_signed = true; 29724: static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 15); 29724: static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 308); 29724: }; 29724: 29724: template 29724: const int __numeric_traits_floating<_Value>::__max_digits10; 29724: 29724: template 29724: const bool __numeric_traits_floating<_Value>::__is_signed; 29724: 29724: template 29724: const int __numeric_traits_floating<_Value>::__digits10; 29724: 29724: template 29724: const int __numeric_traits_floating<_Value>::__max_exponent10; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __numeric_traits 29724: : public __numeric_traits_integer<_Value> 29724: { }; 29724: 29724: template<> 29724: struct __numeric_traits 29724: : public __numeric_traits_floating 29724: { }; 29724: 29724: template<> 29724: struct __numeric_traits 29724: : public __numeric_traits_floating 29724: { }; 29724: 29724: template<> 29724: struct __numeric_traits 29724: : public __numeric_traits_floating 29724: { }; 29724: # 238 "/usr/include/c++/14/ext/numeric_traits.h" 3 29724: 29724: } 29724: # 64 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_pair.h" 1 3 29724: # 62 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: # 1 "/usr/include/c++/14/bits/utility.h" 1 3 29724: # 36 "/usr/include/c++/14/bits/utility.h" 3 29724: 29724: # 37 "/usr/include/c++/14/bits/utility.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: struct tuple_size; 29724: 29724: 29724: 29724: 29724: 29724: template::type, 29724: typename = typename enable_if::value>::type, 29724: size_t = tuple_size<_Tp>::value> 29724: using __enable_if_has_tuple_size = _Tp; 29724: 29724: template 29724: struct tuple_size> 29724: : public tuple_size<_Tp> { }; 29724: 29724: template 29724: struct tuple_size> 29724: : public tuple_size<_Tp> { }; 29724: 29724: template 29724: struct tuple_size> 29724: : public tuple_size<_Tp> { }; 29724: 29724: 29724: template 29724: inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; 29724: 29724: 29724: 29724: template 29724: struct tuple_element; 29724: 29724: 29724: template 29724: using __tuple_element_t = typename tuple_element<__i, _Tp>::type; 29724: 29724: template 29724: struct tuple_element<__i, const _Tp> 29724: { 29724: using type = const __tuple_element_t<__i, _Tp>; 29724: }; 29724: 29724: template 29724: struct tuple_element<__i, volatile _Tp> 29724: { 29724: using type = volatile __tuple_element_t<__i, _Tp>; 29724: }; 29724: 29724: template 29724: struct tuple_element<__i, const volatile _Tp> 29724: { 29724: using type = const volatile __tuple_element_t<__i, _Tp>; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr size_t 29724: __find_uniq_type_in_pack() 29724: { 29724: constexpr size_t __sz = sizeof...(_Types); 29724: constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; 29724: size_t __n = __sz; 29724: for (size_t __i = 0; __i < __sz; ++__i) 29724: { 29724: if (__found[__i]) 29724: { 29724: if (__n < __sz) 29724: return __sz; 29724: __n = __i; 29724: } 29724: } 29724: return __n; 29724: } 29724: # 134 "/usr/include/c++/14/bits/utility.h" 3 29724: template 29724: using tuple_element_t = typename tuple_element<__i, _Tp>::type; 29724: 29724: 29724: 29724: 29724: template struct _Index_tuple { }; 29724: 29724: 29724: template 29724: struct _Build_index_tuple 29724: { 29724: # 154 "/usr/include/c++/14/bits/utility.h" 3 29724: using __type = _Index_tuple<__integer_pack(_Num)...>; 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct integer_sequence 29724: { 29724: 29724: 29724: 29724: typedef _Tp value_type; 29724: static constexpr size_t size() noexcept { return sizeof...(_Idx); } 29724: }; 29724: 29724: 29724: template 29724: using make_integer_sequence 29724: 29724: 29724: 29724: = integer_sequence<_Tp, __integer_pack(_Num)...>; 29724: 29724: 29724: 29724: template 29724: using index_sequence = integer_sequence; 29724: 29724: 29724: template 29724: using make_index_sequence = make_integer_sequence; 29724: 29724: 29724: template 29724: using index_sequence_for = make_index_sequence; 29724: 29724: 29724: 29724: 29724: struct in_place_t { 29724: explicit in_place_t() = default; 29724: }; 29724: 29724: inline constexpr in_place_t in_place{}; 29724: 29724: template struct in_place_type_t 29724: { 29724: explicit in_place_type_t() = default; 29724: }; 29724: 29724: template 29724: inline constexpr in_place_type_t<_Tp> in_place_type{}; 29724: 29724: template struct in_place_index_t 29724: { 29724: explicit in_place_index_t() = default; 29724: }; 29724: 29724: template 29724: inline constexpr in_place_index_t<_Idx> in_place_index{}; 29724: 29724: template 29724: inline constexpr bool __is_in_place_type_v = false; 29724: 29724: template 29724: inline constexpr bool __is_in_place_type_v> = true; 29724: 29724: template 29724: using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; 29724: 29724: template 29724: inline constexpr bool __is_in_place_index_v = false; 29724: 29724: template 29724: inline constexpr bool __is_in_place_index_v> = true; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Nth_type 29724: { using type = __type_pack_element<_Np, _Types...>; }; 29724: # 283 "/usr/include/c++/14/bits/utility.h" 3 29724: 29724: } 29724: # 63 "/usr/include/c++/14/bits/stl_pair.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 79 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; 29724: 29724: 29724: inline constexpr piecewise_construct_t piecewise_construct = 29724: piecewise_construct_t(); 29724: 29724: 29724: 29724: 29724: template 29724: struct pair; 29724: 29724: template 29724: class tuple; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct array; 29724: 29724: template 29724: struct _Index_tuple; 29724: 29724: template 29724: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29724: get(pair<_Tp1, _Tp2>& __in) noexcept; 29724: 29724: template 29724: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29724: get(pair<_Tp1, _Tp2>&& __in) noexcept; 29724: 29724: template 29724: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29724: get(const pair<_Tp1, _Tp2>& __in) noexcept; 29724: 29724: template 29724: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29724: get(const pair<_Tp1, _Tp2>&& __in) noexcept; 29724: 29724: template 29724: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 29724: get(tuple<_Elements...>& __t) noexcept; 29724: 29724: template 29724: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 29724: get(const tuple<_Elements...>& __t) noexcept; 29724: 29724: template 29724: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 29724: get(tuple<_Elements...>&& __t) noexcept; 29724: 29724: template 29724: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 29724: get(const tuple<_Elements...>&& __t) noexcept; 29724: 29724: template 29724: constexpr _Tp& 29724: get(array<_Tp, _Nm>&) noexcept; 29724: 29724: template 29724: constexpr _Tp&& 29724: get(array<_Tp, _Nm>&&) noexcept; 29724: 29724: template 29724: constexpr const _Tp& 29724: get(const array<_Tp, _Nm>&) noexcept; 29724: 29724: template 29724: constexpr const _Tp&& 29724: get(const array<_Tp, _Nm>&&) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _PCC 29724: { 29724: template 29724: static constexpr bool _ConstructiblePair() 29724: { 29724: return __and_, 29724: is_constructible<_T2, const _U2&>>::value; 29724: } 29724: 29724: template 29724: static constexpr bool _ImplicitlyConvertiblePair() 29724: { 29724: return __and_, 29724: is_convertible>::value; 29724: } 29724: 29724: template 29724: static constexpr bool _MoveConstructiblePair() 29724: { 29724: return __and_, 29724: is_constructible<_T2, _U2&&>>::value; 29724: } 29724: 29724: template 29724: static constexpr bool _ImplicitlyMoveConvertiblePair() 29724: { 29724: return __and_, 29724: is_convertible<_U2&&, _T2>>::value; 29724: } 29724: }; 29724: 29724: template 29724: struct _PCC 29724: { 29724: template 29724: static constexpr bool _ConstructiblePair() 29724: { 29724: return false; 29724: } 29724: 29724: template 29724: static constexpr bool _ImplicitlyConvertiblePair() 29724: { 29724: return false; 29724: } 29724: 29724: template 29724: static constexpr bool _MoveConstructiblePair() 29724: { 29724: return false; 29724: } 29724: 29724: template 29724: static constexpr bool _ImplicitlyMoveConvertiblePair() 29724: { 29724: return false; 29724: } 29724: }; 29724: # 260 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template class __pair_base 29724: { 29724: 29724: template friend struct pair; 29724: __pair_base() = default; 29724: ~__pair_base() = default; 29724: __pair_base(const __pair_base&) = default; 29724: __pair_base& operator=(const __pair_base&) = delete; 29724: 29724: }; 29724: # 283 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: struct pair 29724: : public __pair_base<_T1, _T2> 29724: { 29724: typedef _T1 first_type; 29724: typedef _T2 second_type; 29724: 29724: _T1 first; 29724: _T2 second; 29724: 29724: 29724: constexpr pair(const pair&) = default; 29724: constexpr pair(pair&&) = default; 29724: 29724: template 29724: 29724: pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); 29724: 29724: 29724: void 29724: swap(pair& __p) 29724: noexcept(__and_<__is_nothrow_swappable<_T1>, 29724: __is_nothrow_swappable<_T2>>::value) 29724: { 29724: using std::swap; 29724: swap(first, __p.first); 29724: swap(second, __p.second); 29724: } 29724: # 331 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: private: 29724: template 29724: 29724: pair(tuple<_Args1...>&, tuple<_Args2...>&, 29724: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); 29724: public: 29724: # 719 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template , 29724: __is_implicitly_default_constructible<_U2>> 29724: ::value, bool>::type = true> 29724: constexpr pair() 29724: : first(), second() { } 29724: 29724: template , 29724: is_default_constructible<_U2>, 29724: __not_< 29724: __and_<__is_implicitly_default_constructible<_U1>, 29724: __is_implicitly_default_constructible<_U2>>>> 29724: ::value, bool>::type = false> 29724: explicit constexpr pair() 29724: : first(), second() { } 29724: 29724: 29724: 29724: using _PCCP = _PCC; 29724: 29724: 29724: 29724: template() 29724: && _PCCP::template 29724: _ImplicitlyConvertiblePair<_U1, _U2>(), 29724: bool>::type=true> 29724: constexpr pair(const _T1& __a, const _T2& __b) 29724: : first(__a), second(__b) { } 29724: 29724: 29724: template() 29724: && !_PCCP::template 29724: _ImplicitlyConvertiblePair<_U1, _U2>(), 29724: bool>::type=false> 29724: explicit constexpr pair(const _T1& __a, const _T2& __b) 29724: : first(__a), second(__b) { } 29724: 29724: 29724: 29724: template 29724: using _PCCFP = _PCC::value 29724: || !is_same<_T2, _U2>::value, 29724: _T1, _T2>; 29724: 29724: 29724: template::template 29724: _ConstructiblePair<_U1, _U2>() 29724: && _PCCFP<_U1, _U2>::template 29724: _ImplicitlyConvertiblePair<_U1, _U2>(), 29724: bool>::type=true> 29724: constexpr pair(const pair<_U1, _U2>& __p) 29724: : first(__p.first), second(__p.second) 29724: { ; } 29724: 29724: template::template 29724: _ConstructiblePair<_U1, _U2>() 29724: && !_PCCFP<_U1, _U2>::template 29724: _ImplicitlyConvertiblePair<_U1, _U2>(), 29724: bool>::type=false> 29724: explicit constexpr pair(const pair<_U1, _U2>& __p) 29724: : first(__p.first), second(__p.second) 29724: { ; } 29724: # 803 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: private: 29724: 29724: 29724: 29724: struct __zero_as_null_pointer_constant 29724: { 29724: __zero_as_null_pointer_constant(int __zero_as_null_pointer_constant::*) 29724: { } 29724: template::value>> 29724: __zero_as_null_pointer_constant(_Tp) = delete; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: template>, 29724: is_pointer<_T2>, 29724: is_constructible<_T1, _U1>, 29724: __not_>, 29724: is_convertible<_U1, _T1>>::value, 29724: bool> = true> 29724: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29724: constexpr 29724: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 29724: : first(std::forward<_U1>(__x)), second(nullptr) 29724: { ; } 29724: 29724: template>, 29724: is_pointer<_T2>, 29724: is_constructible<_T1, _U1>, 29724: __not_>, 29724: __not_>>::value, 29724: bool> = false> 29724: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29724: explicit constexpr 29724: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 29724: : first(std::forward<_U1>(__x)), second(nullptr) 29724: { ; } 29724: 29724: template, 29724: __not_>, 29724: is_constructible<_T2, _U2>, 29724: __not_>, 29724: is_convertible<_U2, _T2>>::value, 29724: bool> = true> 29724: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29724: constexpr 29724: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 29724: : first(nullptr), second(std::forward<_U2>(__y)) 29724: { ; } 29724: 29724: template, 29724: __not_>, 29724: is_constructible<_T2, _U2>, 29724: __not_>, 29724: __not_>>::value, 29724: bool> = false> 29724: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29724: explicit constexpr 29724: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 29724: : first(nullptr), second(std::forward<_U2>(__y)) 29724: { ; } 29724: 29724: 29724: 29724: template() 29724: && _PCCP::template 29724: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29724: bool>::type=true> 29724: constexpr pair(_U1&& __x, _U2&& __y) 29724: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 29724: { ; } 29724: 29724: template() 29724: && !_PCCP::template 29724: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29724: bool>::type=false> 29724: explicit constexpr pair(_U1&& __x, _U2&& __y) 29724: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 29724: { ; } 29724: 29724: 29724: template::template 29724: _MoveConstructiblePair<_U1, _U2>() 29724: && _PCCFP<_U1, _U2>::template 29724: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29724: bool>::type=true> 29724: constexpr pair(pair<_U1, _U2>&& __p) 29724: : first(std::forward<_U1>(__p.first)), 29724: second(std::forward<_U2>(__p.second)) 29724: { ; } 29724: 29724: template::template 29724: _MoveConstructiblePair<_U1, _U2>() 29724: && !_PCCFP<_U1, _U2>::template 29724: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29724: bool>::type=false> 29724: explicit constexpr pair(pair<_U1, _U2>&& __p) 29724: : first(std::forward<_U1>(__p.first)), 29724: second(std::forward<_U2>(__p.second)) 29724: { ; } 29724: 29724: 29724: 29724: pair& 29724: operator=(__conditional_t<__and_, 29724: is_copy_assignable<_T2>>::value, 29724: const pair&, const __nonesuch&> __p) 29724: { 29724: first = __p.first; 29724: second = __p.second; 29724: return *this; 29724: } 29724: 29724: pair& 29724: operator=(__conditional_t<__and_, 29724: is_move_assignable<_T2>>::value, 29724: pair&&, __nonesuch&&> __p) 29724: noexcept(__and_, 29724: is_nothrow_move_assignable<_T2>>::value) 29724: { 29724: first = std::forward(__p.first); 29724: second = std::forward(__p.second); 29724: return *this; 29724: } 29724: 29724: template 29724: typename enable_if<__and_, 29724: is_assignable<_T2&, const _U2&>>::value, 29724: pair&>::type 29724: operator=(const pair<_U1, _U2>& __p) 29724: { 29724: first = __p.first; 29724: second = __p.second; 29724: return *this; 29724: } 29724: 29724: template 29724: typename enable_if<__and_, 29724: is_assignable<_T2&, _U2&&>>::value, 29724: pair&>::type 29724: operator=(pair<_U1, _U2>&& __p) 29724: { 29724: first = std::forward<_U1>(__p.first); 29724: second = std::forward<_U2>(__p.second); 29724: return *this; 29724: } 29724: # 995 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: }; 29724: 29724: 29724: 29724: 29724: template pair(_T1, _T2) -> pair<_T1, _T2>; 29724: # 1031 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: inline constexpr bool 29724: operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return __x.first == __y.first && __x.second == __y.second; } 29724: # 1043 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: inline constexpr bool 29724: operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return __x.first < __y.first 29724: || (!(__y.first < __x.first) && __x.second < __y.second); } 29724: 29724: 29724: template 29724: inline constexpr bool 29724: operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline constexpr bool 29724: operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: inline constexpr bool 29724: operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: inline constexpr bool 29724: operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29724: { return !(__x < __y); } 29724: # 1080 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: inline 29724: 29724: 29724: typename enable_if<__and_<__is_swappable<_T1>, 29724: __is_swappable<_T2>>::value>::type 29724: 29724: 29724: 29724: swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: # 1103 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: typename enable_if, 29724: __is_swappable<_T2>>::value>::type 29724: swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; 29724: # 1129 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: constexpr pair::__type, 29724: typename __decay_and_strip<_T2>::__type> 29724: make_pair(_T1&& __x, _T2&& __y) 29724: { 29724: typedef typename __decay_and_strip<_T1>::__type __ds_type1; 29724: typedef typename __decay_and_strip<_T2>::__type __ds_type2; 29724: typedef pair<__ds_type1, __ds_type2> __pair_type; 29724: return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); 29724: } 29724: # 1152 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: template 29724: struct __is_tuple_like_impl> : true_type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct tuple_size> 29724: : public integral_constant { }; 29724: 29724: 29724: template 29724: struct tuple_element<0, pair<_Tp1, _Tp2>> 29724: { typedef _Tp1 type; }; 29724: 29724: 29724: template 29724: struct tuple_element<1, pair<_Tp1, _Tp2>> 29724: { typedef _Tp2 type; }; 29724: 29724: 29724: 29724: template 29724: struct tuple_element<__i, tuple<_Types...>>; 29724: 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> = 2; 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> = 2; 29724: 29724: template 29724: inline constexpr bool __is_pair = false; 29724: 29724: template 29724: inline constexpr bool __is_pair> = true; 29724: 29724: 29724: 29724: template 29724: struct __pair_get; 29724: 29724: template<> 29724: struct __pair_get<0> 29724: { 29724: template 29724: static constexpr _Tp1& 29724: __get(pair<_Tp1, _Tp2>& __pair) noexcept 29724: { return __pair.first; } 29724: 29724: template 29724: static constexpr _Tp1&& 29724: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 29724: { return std::forward<_Tp1>(__pair.first); } 29724: 29724: template 29724: static constexpr const _Tp1& 29724: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 29724: { return __pair.first; } 29724: 29724: template 29724: static constexpr const _Tp1&& 29724: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 29724: { return std::forward(__pair.first); } 29724: }; 29724: 29724: template<> 29724: struct __pair_get<1> 29724: { 29724: template 29724: static constexpr _Tp2& 29724: __get(pair<_Tp1, _Tp2>& __pair) noexcept 29724: { return __pair.second; } 29724: 29724: template 29724: static constexpr _Tp2&& 29724: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 29724: { return std::forward<_Tp2>(__pair.second); } 29724: 29724: template 29724: static constexpr const _Tp2& 29724: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 29724: { return __pair.second; } 29724: 29724: template 29724: static constexpr const _Tp2&& 29724: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 29724: { return std::forward(__pair.second); } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29724: get(pair<_Tp1, _Tp2>& __in) noexcept 29724: { return __pair_get<_Int>::__get(__in); } 29724: 29724: template 29724: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29724: get(pair<_Tp1, _Tp2>&& __in) noexcept 29724: { return __pair_get<_Int>::__move_get(std::move(__in)); } 29724: 29724: template 29724: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29724: get(const pair<_Tp1, _Tp2>& __in) noexcept 29724: { return __pair_get<_Int>::__const_get(__in); } 29724: 29724: template 29724: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29724: get(const pair<_Tp1, _Tp2>&& __in) noexcept 29724: { return __pair_get<_Int>::__const_move_get(std::move(__in)); } 29724: 29724: 29724: 29724: template 29724: constexpr _Tp& 29724: get(pair<_Tp, _Up>& __p) noexcept 29724: { return __p.first; } 29724: 29724: template 29724: constexpr const _Tp& 29724: get(const pair<_Tp, _Up>& __p) noexcept 29724: { return __p.first; } 29724: 29724: template 29724: constexpr _Tp&& 29724: get(pair<_Tp, _Up>&& __p) noexcept 29724: { return std::move(__p.first); } 29724: 29724: template 29724: constexpr const _Tp&& 29724: get(const pair<_Tp, _Up>&& __p) noexcept 29724: { return std::move(__p.first); } 29724: 29724: template 29724: constexpr _Tp& 29724: get(pair<_Up, _Tp>& __p) noexcept 29724: { return __p.second; } 29724: 29724: template 29724: constexpr const _Tp& 29724: get(const pair<_Up, _Tp>& __p) noexcept 29724: { return __p.second; } 29724: 29724: template 29724: constexpr _Tp&& 29724: get(pair<_Up, _Tp>&& __p) noexcept 29724: { return std::move(__p.second); } 29724: 29724: template 29724: constexpr const _Tp&& 29724: get(const pair<_Up, _Tp>&& __p) noexcept 29724: { return std::move(__p.second); } 29724: # 1332 "/usr/include/c++/14/bits/stl_pair.h" 3 29724: 29724: } 29724: # 65 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 1 3 29724: # 62 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: 29724: # 63 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: # 74 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 93 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: struct input_iterator_tag { }; 29724: 29724: 29724: struct output_iterator_tag { }; 29724: 29724: 29724: struct forward_iterator_tag : public input_iterator_tag { }; 29724: 29724: 29724: 29724: struct bidirectional_iterator_tag : public forward_iterator_tag { }; 29724: 29724: 29724: 29724: struct random_access_iterator_tag : public bidirectional_iterator_tag { }; 29724: # 125 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: template 29724: struct [[__deprecated__]] iterator 29724: { 29724: 29724: typedef _Category iterator_category; 29724: 29724: typedef _Tp value_type; 29724: 29724: typedef _Distance difference_type; 29724: 29724: typedef _Pointer pointer; 29724: 29724: typedef _Reference reference; 29724: }; 29724: # 149 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: template 29724: struct iterator_traits; 29724: 29724: 29724: 29724: 29724: template> 29724: struct __iterator_traits { }; 29724: 29724: 29724: 29724: template 29724: struct __iterator_traits<_Iterator, 29724: __void_t> 29724: { 29724: typedef typename _Iterator::iterator_category iterator_category; 29724: typedef typename _Iterator::value_type value_type; 29724: typedef typename _Iterator::difference_type difference_type; 29724: typedef typename _Iterator::pointer pointer; 29724: typedef typename _Iterator::reference reference; 29724: }; 29724: 29724: 29724: template 29724: struct iterator_traits 29724: : public __iterator_traits<_Iterator> { }; 29724: # 209 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29724: template 29724: struct iterator_traits<_Tp*> 29724: { 29724: typedef random_access_iterator_tag iterator_category; 29724: typedef _Tp value_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Tp* pointer; 29724: typedef _Tp& reference; 29724: }; 29724: 29724: 29724: template 29724: struct iterator_traits 29724: { 29724: typedef random_access_iterator_tag iterator_category; 29724: typedef _Tp value_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef const _Tp* pointer; 29724: typedef const _Tp& reference; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: inline constexpr 29724: typename iterator_traits<_Iter>::iterator_category 29724: __iterator_category(const _Iter&) 29724: { return typename iterator_traits<_Iter>::iterator_category(); } 29724: 29724: 29724: 29724: 29724: template 29724: using __iter_category_t 29724: = typename iterator_traits<_Iter>::iterator_category; 29724: 29724: template 29724: using _RequireInputIter = 29724: __enable_if_t, 29724: input_iterator_tag>::value>; 29724: 29724: template> 29724: struct __is_random_access_iter 29724: : is_base_of 29724: { 29724: typedef is_base_of _Base; 29724: enum { __value = _Base::value }; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 1 3 29724: # 62 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29724: 29724: # 63 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/concept_check.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/concept_check.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/concept_check.h" 3 29724: # 65 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 29724: # 1 "/usr/include/c++/14/debug/assertions.h" 1 3 29724: # 66 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template struct _List_iterator; 29724: template struct _List_const_iterator; 29724: 29724: 29724: template 29724: inline constexpr 29724: typename iterator_traits<_InputIterator>::difference_type 29724: __distance(_InputIterator __first, _InputIterator __last, 29724: input_iterator_tag) 29724: { 29724: 29724: 29724: 29724: typename iterator_traits<_InputIterator>::difference_type __n = 0; 29724: while (__first != __last) 29724: { 29724: ++__first; 29724: ++__n; 29724: } 29724: return __n; 29724: } 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: inline constexpr 29724: typename iterator_traits<_RandomAccessIterator>::difference_type 29724: __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: random_access_iterator_tag) 29724: { 29724: 29724: 29724: 29724: return __last - __first; 29724: } 29724: 29724: 29724: 29724: template 29724: ptrdiff_t 29724: __distance(std::_List_iterator<_Tp>, 29724: std::_List_iterator<_Tp>, 29724: input_iterator_tag); 29724: 29724: template 29724: ptrdiff_t 29724: __distance(std::_List_const_iterator<_Tp>, 29724: std::_List_const_iterator<_Tp>, 29724: input_iterator_tag); 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; 29724: # 144 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29724: template 29724: [[__nodiscard__]] __attribute__((__always_inline__)) 29724: inline constexpr 29724: typename iterator_traits<_InputIterator>::difference_type 29724: distance(_InputIterator __first, _InputIterator __last) 29724: { 29724: 29724: return std::__distance(__first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: template 29724: inline constexpr void 29724: __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) 29724: { 29724: 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) std::__glibcxx_assert_fail(); } while (false); 29724: while (__n--) 29724: ++__i; 29724: } 29724: 29724: template 29724: inline constexpr void 29724: __advance(_BidirectionalIterator& __i, _Distance __n, 29724: bidirectional_iterator_tag) 29724: { 29724: 29724: 29724: 29724: if (__n > 0) 29724: while (__n--) 29724: ++__i; 29724: else 29724: while (__n++) 29724: --__i; 29724: } 29724: 29724: template 29724: inline constexpr void 29724: __advance(_RandomAccessIterator& __i, _Distance __n, 29724: random_access_iterator_tag) 29724: { 29724: 29724: 29724: 29724: if (__builtin_constant_p(__n) && __n == 1) 29724: ++__i; 29724: else if (__builtin_constant_p(__n) && __n == -1) 29724: --__i; 29724: else 29724: __i += __n; 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; 29724: # 217 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29724: template 29724: __attribute__((__always_inline__)) 29724: inline constexpr void 29724: advance(_InputIterator& __i, _Distance __n) 29724: { 29724: 29724: typename iterator_traits<_InputIterator>::difference_type __d = __n; 29724: std::__advance(__i, __d, std::__iterator_category(__i)); 29724: } 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] [[__gnu__::__always_inline__]] 29724: inline constexpr _InputIterator 29724: next(_InputIterator __x, typename 29724: iterator_traits<_InputIterator>::difference_type __n = 1) 29724: { 29724: 29724: 29724: std::advance(__x, __n); 29724: return __x; 29724: } 29724: 29724: template 29724: [[__nodiscard__]] [[__gnu__::__always_inline__]] 29724: inline constexpr _BidirectionalIterator 29724: prev(_BidirectionalIterator __x, typename 29724: iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 29724: { 29724: 29724: 29724: 29724: std::advance(__x, -__n); 29724: return __x; 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 67 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_iterator.h" 1 3 29724: # 67 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: # 1 "/usr/include/c++/14/bits/ptr_traits.h" 1 3 29724: # 42 "/usr/include/c++/14/bits/ptr_traits.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: class __undefined; 29724: 29724: 29724: 29724: template 29724: struct __get_first_arg 29724: { using type = __undefined; }; 29724: 29724: template class _SomeTemplate, typename _Tp, 29724: typename... _Types> 29724: struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> 29724: { using type = _Tp; }; 29724: 29724: 29724: 29724: template 29724: struct __replace_first_arg 29724: { }; 29724: 29724: template class _SomeTemplate, typename _Up, 29724: typename _Tp, typename... _Types> 29724: struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> 29724: { using type = _SomeTemplate<_Up, _Types...>; }; 29724: 29724: 29724: template 29724: struct __ptr_traits_elem : __get_first_arg<_Ptr> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __ptr_traits_elem<_Ptr, __void_t> 29724: { using type = typename _Ptr::element_type; }; 29724: 29724: 29724: template 29724: using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; 29724: 29724: 29724: 29724: 29724: template::value> 29724: struct __ptr_traits_ptr_to 29724: { 29724: using pointer = _Ptr; 29724: using element_type = _Elt; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: static pointer 29724: pointer_to(element_type& __r) 29724: 29724: 29724: 29724: 29724: 29724: { return pointer::pointer_to(__r); } 29724: }; 29724: 29724: 29724: template 29724: struct __ptr_traits_ptr_to<_Ptr, _Elt, true> 29724: { }; 29724: 29724: 29724: template 29724: struct __ptr_traits_ptr_to<_Tp*, _Tp, false> 29724: { 29724: using pointer = _Tp*; 29724: using element_type = _Tp; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static pointer 29724: pointer_to(element_type& __r) noexcept 29724: { return std::addressof(__r); } 29724: }; 29724: 29724: template 29724: struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> 29724: { 29724: private: 29724: template 29724: using __diff_t = typename _Tp::difference_type; 29724: 29724: template 29724: using __rebind = __type_identity>; 29724: 29724: public: 29724: 29724: using pointer = _Ptr; 29724: 29724: 29724: using element_type = _Elt; 29724: 29724: 29724: using difference_type = __detected_or_t; 29724: 29724: 29724: template 29724: using rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, 29724: __rebind, _Ptr, _Up>::type; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __ptr_traits_impl<_Ptr, __undefined> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> 29724: { 29724: 29724: typedef _Tp* pointer; 29724: 29724: typedef _Tp element_type; 29724: 29724: typedef ptrdiff_t difference_type; 29724: 29724: template using rebind = _Up*; 29724: }; 29724: 29724: 29724: template 29724: using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; 29724: 29724: template 29724: constexpr _Tp* 29724: __to_address(_Tp* __ptr) noexcept 29724: { 29724: static_assert(!std::is_function<_Tp>::value, "not a function pointer"); 29724: return __ptr; 29724: } 29724: 29724: 29724: template 29724: constexpr typename std::pointer_traits<_Ptr>::element_type* 29724: __to_address(const _Ptr& __ptr) 29724: { return std::__to_address(__ptr.operator->()); } 29724: # 257 "/usr/include/c++/14/bits/ptr_traits.h" 3 29724: 29724: } 29724: # 68 "/usr/include/c++/14/bits/stl_iterator.h" 2 3 29724: # 85 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: 29724: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: # 128 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class reverse_iterator 29724: : public iterator::iterator_category, 29724: typename iterator_traits<_Iterator>::value_type, 29724: typename iterator_traits<_Iterator>::difference_type, 29724: typename iterator_traits<_Iterator>::pointer, 29724: typename iterator_traits<_Iterator>::reference> 29724: { 29724: template 29724: friend class reverse_iterator; 29724: # 147 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: protected: 29724: _Iterator current; 29724: 29724: typedef iterator_traits<_Iterator> __traits_type; 29724: 29724: public: 29724: typedef _Iterator iterator_type; 29724: typedef typename __traits_type::pointer pointer; 29724: 29724: typedef typename __traits_type::difference_type difference_type; 29724: typedef typename __traits_type::reference reference; 29724: # 178 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: constexpr 29724: reverse_iterator() 29724: noexcept(noexcept(_Iterator())) 29724: : current() 29724: { } 29724: 29724: 29724: 29724: 29724: explicit constexpr 29724: reverse_iterator(iterator_type __x) 29724: noexcept(noexcept(_Iterator(__x))) 29724: : current(__x) 29724: { } 29724: 29724: 29724: 29724: 29724: constexpr 29724: reverse_iterator(const reverse_iterator& __x) 29724: noexcept(noexcept(_Iterator(__x.current))) 29724: : current(__x.current) 29724: { } 29724: 29724: 29724: reverse_iterator& operator=(const reverse_iterator&) = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: 29724: 29724: constexpr 29724: reverse_iterator(const reverse_iterator<_Iter>& __x) 29724: noexcept(noexcept(_Iterator(__x.current))) 29724: : current(__x.current) 29724: { } 29724: 29724: 29724: template 29724: 29724: 29724: 29724: 29724: constexpr 29724: reverse_iterator& 29724: operator=(const reverse_iterator<_Iter>& __x) 29724: noexcept(noexcept(current = __x.current)) 29724: { 29724: current = __x.current; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr iterator_type 29724: base() const 29724: noexcept(noexcept(_Iterator(current))) 29724: { return current; } 29724: # 255 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: [[__nodiscard__]] 29724: constexpr reference 29724: operator*() const 29724: { 29724: _Iterator __tmp = current; 29724: return *--__tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr pointer 29724: operator->() const 29724: 29724: 29724: 29724: 29724: { 29724: 29724: 29724: _Iterator __tmp = current; 29724: --__tmp; 29724: return _S_to_pointer(__tmp); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator& 29724: operator++() 29724: { 29724: --current; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator 29724: operator++(int) 29724: { 29724: reverse_iterator __tmp = *this; 29724: --current; 29724: return __tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator& 29724: operator--() 29724: { 29724: ++current; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator 29724: operator--(int) 29724: { 29724: reverse_iterator __tmp = *this; 29724: ++current; 29724: return __tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr reverse_iterator 29724: operator+(difference_type __n) const 29724: { return reverse_iterator(current - __n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator& 29724: operator+=(difference_type __n) 29724: { 29724: current -= __n; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr reverse_iterator 29724: operator-(difference_type __n) const 29724: { return reverse_iterator(current + __n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr reverse_iterator& 29724: operator-=(difference_type __n) 29724: { 29724: current += __n; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr reference 29724: operator[](difference_type __n) const 29724: { return *(*this + __n); } 29724: # 415 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: private: 29724: template 29724: static constexpr _Tp* 29724: _S_to_pointer(_Tp* __p) 29724: { return __p; } 29724: 29724: template 29724: static constexpr pointer 29724: _S_to_pointer(_Tp __t) 29724: { return __t.operator->(); } 29724: }; 29724: # 438 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator==(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return __x.base() == __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return __y.base() < __x.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator!=(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return __y < __x; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<=(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return !(__y < __x); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>=(const reverse_iterator<_Iterator>& __x, 29724: const reverse_iterator<_Iterator>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator==(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() == __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() > __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator!=(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() != __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() < __y.base(); } 29724: 29724: template 29724: inline constexpr bool 29724: operator<=(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() >= __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>=(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: { return __x.base() <= __y.base(); } 29724: # 615 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr auto 29724: operator-(const reverse_iterator<_IteratorL>& __x, 29724: const reverse_iterator<_IteratorR>& __y) 29724: -> decltype(__y.base() - __x.base()) 29724: { return __y.base() - __x.base(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator<_Iterator> 29724: operator+(typename reverse_iterator<_Iterator>::difference_type __n, 29724: const reverse_iterator<_Iterator>& __x) 29724: { return reverse_iterator<_Iterator>(__x.base() - __n); } 29724: 29724: 29724: 29724: template 29724: inline constexpr reverse_iterator<_Iterator> 29724: __make_reverse_iterator(_Iterator __i) 29724: { return reverse_iterator<_Iterator>(__i); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator<_Iterator> 29724: make_reverse_iterator(_Iterator __i) 29724: { return reverse_iterator<_Iterator>(__i); } 29724: # 657 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: 29724: auto 29724: __niter_base(reverse_iterator<_Iterator> __it) 29724: -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) 29724: { return __make_reverse_iterator(__niter_base(__it.base())); } 29724: 29724: template 29724: struct __is_move_iterator > 29724: : __is_move_iterator<_Iterator> 29724: { }; 29724: 29724: template 29724: 29724: auto 29724: __miter_base(reverse_iterator<_Iterator> __it) 29724: -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) 29724: { return __make_reverse_iterator(__miter_base(__it.base())); } 29724: # 688 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class back_insert_iterator 29724: : public iterator 29724: { 29724: protected: 29724: _Container* container; 29724: 29724: public: 29724: 29724: typedef _Container container_type; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: back_insert_iterator(_Container& __x) 29724: : container(std::__addressof(__x)) { } 29724: # 726 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: 29724: back_insert_iterator& 29724: operator=(const typename _Container::value_type& __value) 29724: { 29724: container->push_back(__value); 29724: return *this; 29724: } 29724: 29724: 29724: back_insert_iterator& 29724: operator=(typename _Container::value_type&& __value) 29724: { 29724: container->push_back(std::move(__value)); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: back_insert_iterator& 29724: operator*() 29724: { return *this; } 29724: 29724: 29724: 29724: back_insert_iterator& 29724: operator++() 29724: { return *this; } 29724: 29724: 29724: 29724: back_insert_iterator 29724: operator++(int) 29724: { return *this; } 29724: }; 29724: # 773 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline back_insert_iterator<_Container> 29724: back_inserter(_Container& __x) 29724: { return back_insert_iterator<_Container>(__x); } 29724: # 789 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class front_insert_iterator 29724: : public iterator 29724: { 29724: protected: 29724: _Container* container; 29724: 29724: public: 29724: 29724: typedef _Container container_type; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: front_insert_iterator(_Container& __x) 29724: : container(std::__addressof(__x)) { } 29724: # 827 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: 29724: front_insert_iterator& 29724: operator=(const typename _Container::value_type& __value) 29724: { 29724: container->push_front(__value); 29724: return *this; 29724: } 29724: 29724: 29724: front_insert_iterator& 29724: operator=(typename _Container::value_type&& __value) 29724: { 29724: container->push_front(std::move(__value)); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: front_insert_iterator& 29724: operator*() 29724: { return *this; } 29724: 29724: 29724: 29724: front_insert_iterator& 29724: operator++() 29724: { return *this; } 29724: 29724: 29724: 29724: front_insert_iterator 29724: operator++(int) 29724: { return *this; } 29724: }; 29724: # 874 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline front_insert_iterator<_Container> 29724: front_inserter(_Container& __x) 29724: { return front_insert_iterator<_Container>(__x); } 29724: # 894 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class insert_iterator 29724: : public iterator 29724: { 29724: 29724: 29724: 29724: typedef typename _Container::iterator _Iter; 29724: 29724: protected: 29724: _Container* container; 29724: _Iter iter; 29724: 29724: public: 29724: 29724: typedef _Container container_type; 29724: # 919 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: 29724: insert_iterator(_Container& __x, _Iter __i) 29724: : container(std::__addressof(__x)), iter(__i) {} 29724: # 955 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: 29724: insert_iterator& 29724: operator=(const typename _Container::value_type& __value) 29724: { 29724: iter = container->insert(iter, __value); 29724: ++iter; 29724: return *this; 29724: } 29724: 29724: 29724: insert_iterator& 29724: operator=(typename _Container::value_type&& __value) 29724: { 29724: iter = container->insert(iter, std::move(__value)); 29724: ++iter; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: insert_iterator& 29724: operator*() 29724: { return *this; } 29724: 29724: 29724: 29724: insert_iterator& 29724: operator++() 29724: { return *this; } 29724: 29724: 29724: 29724: insert_iterator& 29724: operator++(int) 29724: { return *this; } 29724: }; 29724: 29724: #pragma GCC diagnostic pop 29724: # 1014 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline insert_iterator<_Container> 29724: inserter(_Container& __x, typename _Container::iterator __i) 29724: { return insert_iterator<_Container>(__x, __i); } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 1037 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class __normal_iterator 29724: { 29724: protected: 29724: _Iterator _M_current; 29724: 29724: typedef std::iterator_traits<_Iterator> __traits_type; 29724: 29724: 29724: template 29724: using __convertible_from 29724: = std::__enable_if_t::value>; 29724: 29724: 29724: public: 29724: typedef _Iterator iterator_type; 29724: typedef typename __traits_type::iterator_category iterator_category; 29724: typedef typename __traits_type::value_type value_type; 29724: typedef typename __traits_type::difference_type difference_type; 29724: typedef typename __traits_type::reference reference; 29724: typedef typename __traits_type::pointer pointer; 29724: 29724: 29724: 29724: 29724: 29724: constexpr __normal_iterator() noexcept 29724: : _M_current(_Iterator()) { } 29724: 29724: explicit 29724: __normal_iterator(const _Iterator& __i) noexcept 29724: : _M_current(__i) { } 29724: 29724: 29724: 29724: template> 29724: 29724: __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) 29724: noexcept 29724: # 1085 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: : _M_current(__i.base()) { } 29724: 29724: 29724: 29724: reference 29724: operator*() const noexcept 29724: { return *_M_current; } 29724: 29724: 29724: pointer 29724: operator->() const noexcept 29724: { return _M_current; } 29724: 29724: 29724: __normal_iterator& 29724: operator++() noexcept 29724: { 29724: ++_M_current; 29724: return *this; 29724: } 29724: 29724: 29724: __normal_iterator 29724: operator++(int) noexcept 29724: { return __normal_iterator(_M_current++); } 29724: 29724: 29724: 29724: __normal_iterator& 29724: operator--() noexcept 29724: { 29724: --_M_current; 29724: return *this; 29724: } 29724: 29724: 29724: __normal_iterator 29724: operator--(int) noexcept 29724: { return __normal_iterator(_M_current--); } 29724: 29724: 29724: 29724: reference 29724: operator[](difference_type __n) const noexcept 29724: { return _M_current[__n]; } 29724: 29724: 29724: __normal_iterator& 29724: operator+=(difference_type __n) noexcept 29724: { _M_current += __n; return *this; } 29724: 29724: 29724: __normal_iterator 29724: operator+(difference_type __n) const noexcept 29724: { return __normal_iterator(_M_current + __n); } 29724: 29724: 29724: __normal_iterator& 29724: operator-=(difference_type __n) noexcept 29724: { _M_current -= __n; return *this; } 29724: 29724: 29724: __normal_iterator 29724: operator-(difference_type __n) const noexcept 29724: { return __normal_iterator(_M_current - __n); } 29724: 29724: 29724: const _Iterator& 29724: base() const noexcept 29724: { return _M_current; } 29724: }; 29724: # 1205 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() == __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() == __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() != __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() != __rhs.base(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() < __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() < __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() > __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() > __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() <= __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() <= __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() >= __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() >= __rhs.base(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: 29724: [[__nodiscard__]] 29724: inline auto 29724: operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, 29724: const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept 29724: -> decltype(__lhs.base() - __rhs.base()) 29724: 29724: 29724: 29724: 29724: 29724: { return __lhs.base() - __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline typename __normal_iterator<_Iterator, _Container>::difference_type 29724: operator-(const __normal_iterator<_Iterator, _Container>& __lhs, 29724: const __normal_iterator<_Iterator, _Container>& __rhs) 29724: noexcept 29724: { return __lhs.base() - __rhs.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline __normal_iterator<_Iterator, _Container> 29724: operator+(typename __normal_iterator<_Iterator, _Container>::difference_type 29724: __n, const __normal_iterator<_Iterator, _Container>& __i) 29724: noexcept 29724: { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } 29724: 29724: 29724: } 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: 29724: _Iterator 29724: __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) 29724: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 29724: { return __it.base(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr auto 29724: __to_address(const __gnu_cxx::__normal_iterator<_Iterator, 29724: _Container>& __it) noexcept 29724: -> decltype(std::__to_address(__it.base())) 29724: { return std::__to_address(__it.base()); } 29724: # 1412 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: namespace __detail 29724: { 29724: # 1428 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: } 29724: # 1439 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: class move_iterator 29724: 29724: 29724: 29724: { 29724: _Iterator _M_current; 29724: 29724: using __traits_type = iterator_traits<_Iterator>; 29724: 29724: using __base_ref = typename __traits_type::reference; 29724: 29724: 29724: template 29724: friend class move_iterator; 29724: # 1478 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: public: 29724: using iterator_type = _Iterator; 29724: # 1490 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: typedef typename __traits_type::iterator_category iterator_category; 29724: typedef typename __traits_type::value_type value_type; 29724: typedef typename __traits_type::difference_type difference_type; 29724: 29724: typedef _Iterator pointer; 29724: 29724: 29724: using reference 29724: = __conditional_t::value, 29724: typename remove_reference<__base_ref>::type&&, 29724: __base_ref>; 29724: 29724: 29724: constexpr 29724: move_iterator() 29724: : _M_current() { } 29724: 29724: explicit constexpr 29724: move_iterator(iterator_type __i) 29724: : _M_current(std::move(__i)) { } 29724: 29724: template 29724: 29724: 29724: 29724: constexpr 29724: move_iterator(const move_iterator<_Iter>& __i) 29724: : _M_current(__i._M_current) { } 29724: 29724: template 29724: 29724: 29724: 29724: 29724: constexpr 29724: move_iterator& operator=(const move_iterator<_Iter>& __i) 29724: { 29724: _M_current = __i._M_current; 29724: return *this; 29724: } 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr iterator_type 29724: base() const 29724: { return _M_current; } 29724: # 1548 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: [[__nodiscard__]] 29724: constexpr reference 29724: operator*() const 29724: 29724: 29724: 29724: { return static_cast(*_M_current); } 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr pointer 29724: operator->() const 29724: { return _M_current; } 29724: 29724: constexpr move_iterator& 29724: operator++() 29724: { 29724: ++_M_current; 29724: return *this; 29724: } 29724: 29724: constexpr move_iterator 29724: operator++(int) 29724: { 29724: move_iterator __tmp = *this; 29724: ++_M_current; 29724: return __tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: constexpr move_iterator& 29724: operator--() 29724: { 29724: --_M_current; 29724: return *this; 29724: } 29724: 29724: constexpr move_iterator 29724: operator--(int) 29724: { 29724: move_iterator __tmp = *this; 29724: --_M_current; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr move_iterator 29724: operator+(difference_type __n) const 29724: { return move_iterator(_M_current + __n); } 29724: 29724: constexpr move_iterator& 29724: operator+=(difference_type __n) 29724: { 29724: _M_current += __n; 29724: return *this; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr move_iterator 29724: operator-(difference_type __n) const 29724: { return move_iterator(_M_current - __n); } 29724: 29724: constexpr move_iterator& 29724: operator-=(difference_type __n) 29724: { 29724: _M_current -= __n; 29724: return *this; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr reference 29724: operator[](difference_type __n) const 29724: 29724: 29724: 29724: { return std::move(_M_current[__n]); } 29724: # 1662 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: }; 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator==(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: 29724: 29724: 29724: { return __x.base() == __y.base(); } 29724: # 1683 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator!=(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: 29724: 29724: 29724: { return __x.base() < __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<=(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: 29724: 29724: 29724: { return !(__y < __x); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: 29724: 29724: 29724: { return __y < __x; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>=(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: 29724: 29724: 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator==(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: 29724: { return __x.base() == __y.base(); } 29724: # 1750 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator!=(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: { return __x.base() < __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator<=(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: { return !(__y < __x); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: { return __y < __x; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr bool 29724: operator>=(const move_iterator<_Iterator>& __x, 29724: const move_iterator<_Iterator>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr auto 29724: operator-(const move_iterator<_IteratorL>& __x, 29724: const move_iterator<_IteratorR>& __y) 29724: -> decltype(__x.base() - __y.base()) 29724: { return __x.base() - __y.base(); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr move_iterator<_Iterator> 29724: operator+(typename move_iterator<_Iterator>::difference_type __n, 29724: const move_iterator<_Iterator>& __x) 29724: 29724: 29724: 29724: { return __x + __n; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr move_iterator<_Iterator> 29724: make_move_iterator(_Iterator __i) 29724: { return move_iterator<_Iterator>(std::move(__i)); } 29724: 29724: template::value_type>::value, 29724: _Iterator, move_iterator<_Iterator>>> 29724: inline constexpr _ReturnType 29724: __make_move_if_noexcept_iterator(_Iterator __i) 29724: { return _ReturnType(__i); } 29724: 29724: 29724: 29724: template::value, 29724: const _Tp*, move_iterator<_Tp*>>> 29724: inline constexpr _ReturnType 29724: __make_move_if_noexcept_iterator(_Tp* __i) 29724: { return _ReturnType(__i); } 29724: # 2964 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: 29724: auto 29724: __niter_base(move_iterator<_Iterator> __it) 29724: -> decltype(make_move_iterator(__niter_base(__it.base()))) 29724: { return make_move_iterator(__niter_base(__it.base())); } 29724: 29724: template 29724: struct __is_move_iterator > 29724: { 29724: enum { __value = 1 }; 29724: typedef __true_type __type; 29724: }; 29724: 29724: template 29724: 29724: auto 29724: __miter_base(move_iterator<_Iterator> __it) 29724: -> decltype(__miter_base(__it.base())) 29724: { return __miter_base(__it.base()); } 29724: # 2996 "/usr/include/c++/14/bits/stl_iterator.h" 3 29724: template 29724: using __iter_key_t = remove_const_t< 29724: 29724: 29724: 29724: typename iterator_traits<_InputIterator>::value_type::first_type>; 29724: 29724: 29724: template 29724: using __iter_val_t 29724: 29724: 29724: 29724: = typename iterator_traits<_InputIterator>::value_type::second_type; 29724: 29724: 29724: template 29724: struct pair; 29724: 29724: template 29724: using __iter_to_alloc_t 29724: = pair, __iter_val_t<_InputIterator>>; 29724: 29724: 29724: 29724: } 29724: # 68 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/debug/debug.h" 1 3 29724: # 48 "/usr/include/c++/14/debug/debug.h" 3 29724: namespace std 29724: { 29724: namespace __debug { } 29724: } 29724: 29724: 29724: 29724: 29724: namespace __gnu_debug 29724: { 29724: using namespace std::__debug; 29724: 29724: template 29724: struct _Safe_iterator; 29724: } 29724: # 70 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/predefined_ops.h" 1 3 29724: # 35 "/usr/include/c++/14/bits/predefined_ops.h" 3 29724: namespace __gnu_cxx 29724: { 29724: namespace __ops 29724: { 29724: struct _Iter_less_iter 29724: { 29724: template 29724: constexpr 29724: bool 29724: operator()(_Iterator1 __it1, _Iterator2 __it2) const 29724: { return *__it1 < *__it2; } 29724: }; 29724: 29724: constexpr 29724: inline _Iter_less_iter 29724: __iter_less_iter() 29724: { return _Iter_less_iter(); } 29724: 29724: struct _Iter_less_val 29724: { 29724: 29724: constexpr _Iter_less_val() = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: _Iter_less_val(_Iter_less_iter) { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it, _Value& __val) const 29724: { return *__it < __val; } 29724: }; 29724: 29724: 29724: inline _Iter_less_val 29724: __iter_less_val() 29724: { return _Iter_less_val(); } 29724: 29724: 29724: inline _Iter_less_val 29724: __iter_comp_val(_Iter_less_iter) 29724: { return _Iter_less_val(); } 29724: 29724: struct _Val_less_iter 29724: { 29724: 29724: constexpr _Val_less_iter() = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: _Val_less_iter(_Iter_less_iter) { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Value& __val, _Iterator __it) const 29724: { return __val < *__it; } 29724: }; 29724: 29724: 29724: inline _Val_less_iter 29724: __val_less_iter() 29724: { return _Val_less_iter(); } 29724: 29724: 29724: inline _Val_less_iter 29724: __val_comp_iter(_Iter_less_iter) 29724: { return _Val_less_iter(); } 29724: 29724: struct _Iter_equal_to_iter 29724: { 29724: template 29724: 29724: bool 29724: operator()(_Iterator1 __it1, _Iterator2 __it2) const 29724: { return *__it1 == *__it2; } 29724: }; 29724: 29724: 29724: inline _Iter_equal_to_iter 29724: __iter_equal_to_iter() 29724: { return _Iter_equal_to_iter(); } 29724: 29724: struct _Iter_equal_to_val 29724: { 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it, _Value& __val) const 29724: { return *__it == __val; } 29724: }; 29724: 29724: 29724: inline _Iter_equal_to_val 29724: __iter_equal_to_val() 29724: { return _Iter_equal_to_val(); } 29724: 29724: 29724: inline _Iter_equal_to_val 29724: __iter_comp_val(_Iter_equal_to_iter) 29724: { return _Iter_equal_to_val(); } 29724: 29724: template 29724: struct _Iter_comp_iter 29724: { 29724: _Compare _M_comp; 29724: 29724: explicit constexpr 29724: _Iter_comp_iter(_Compare __comp) 29724: : _M_comp(std::move(__comp)) 29724: { } 29724: 29724: template 29724: constexpr 29724: bool 29724: operator()(_Iterator1 __it1, _Iterator2 __it2) 29724: { return bool(_M_comp(*__it1, *__it2)); } 29724: }; 29724: 29724: template 29724: constexpr 29724: inline _Iter_comp_iter<_Compare> 29724: __iter_comp_iter(_Compare __comp) 29724: { return _Iter_comp_iter<_Compare>(std::move(__comp)); } 29724: 29724: template 29724: struct _Iter_comp_val 29724: { 29724: _Compare _M_comp; 29724: 29724: 29724: explicit 29724: _Iter_comp_val(_Compare __comp) 29724: : _M_comp(std::move(__comp)) 29724: { } 29724: 29724: 29724: explicit 29724: _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) 29724: : _M_comp(__comp._M_comp) 29724: { } 29724: 29724: 29724: 29724: explicit 29724: _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) 29724: : _M_comp(std::move(__comp._M_comp)) 29724: { } 29724: 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it, _Value& __val) 29724: { return bool(_M_comp(*__it, __val)); } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_comp_val<_Compare> 29724: __iter_comp_val(_Compare __comp) 29724: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 29724: 29724: template 29724: 29724: inline _Iter_comp_val<_Compare> 29724: __iter_comp_val(_Iter_comp_iter<_Compare> __comp) 29724: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 29724: 29724: template 29724: struct _Val_comp_iter 29724: { 29724: _Compare _M_comp; 29724: 29724: 29724: explicit 29724: _Val_comp_iter(_Compare __comp) 29724: : _M_comp(std::move(__comp)) 29724: { } 29724: 29724: 29724: explicit 29724: _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) 29724: : _M_comp(__comp._M_comp) 29724: { } 29724: 29724: 29724: 29724: explicit 29724: _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) 29724: : _M_comp(std::move(__comp._M_comp)) 29724: { } 29724: 29724: 29724: template 29724: 29724: bool 29724: operator()(_Value& __val, _Iterator __it) 29724: { return bool(_M_comp(__val, *__it)); } 29724: }; 29724: 29724: template 29724: 29724: inline _Val_comp_iter<_Compare> 29724: __val_comp_iter(_Compare __comp) 29724: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 29724: 29724: template 29724: 29724: inline _Val_comp_iter<_Compare> 29724: __val_comp_iter(_Iter_comp_iter<_Compare> __comp) 29724: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 29724: 29724: template 29724: struct _Iter_equals_val 29724: { 29724: _Value& _M_value; 29724: 29724: 29724: explicit 29724: _Iter_equals_val(_Value& __value) 29724: : _M_value(__value) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it) 29724: { return *__it == _M_value; } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_equals_val<_Value> 29724: __iter_equals_val(_Value& __val) 29724: { return _Iter_equals_val<_Value>(__val); } 29724: 29724: template 29724: struct _Iter_equals_iter 29724: { 29724: _Iterator1 _M_it1; 29724: 29724: 29724: explicit 29724: _Iter_equals_iter(_Iterator1 __it1) 29724: : _M_it1(__it1) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator2 __it2) 29724: { return *__it2 == *_M_it1; } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_equals_iter<_Iterator> 29724: __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) 29724: { return _Iter_equals_iter<_Iterator>(__it); } 29724: 29724: template 29724: struct _Iter_pred 29724: { 29724: _Predicate _M_pred; 29724: 29724: 29724: explicit 29724: _Iter_pred(_Predicate __pred) 29724: : _M_pred(std::move(__pred)) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it) 29724: { return bool(_M_pred(*__it)); } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_pred<_Predicate> 29724: __pred_iter(_Predicate __pred) 29724: { return _Iter_pred<_Predicate>(std::move(__pred)); } 29724: 29724: template 29724: struct _Iter_comp_to_val 29724: { 29724: _Compare _M_comp; 29724: _Value& _M_value; 29724: 29724: 29724: _Iter_comp_to_val(_Compare __comp, _Value& __value) 29724: : _M_comp(std::move(__comp)), _M_value(__value) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it) 29724: { return bool(_M_comp(*__it, _M_value)); } 29724: }; 29724: 29724: template 29724: _Iter_comp_to_val<_Compare, _Value> 29724: 29724: __iter_comp_val(_Compare __comp, _Value &__val) 29724: { 29724: return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); 29724: } 29724: 29724: template 29724: struct _Iter_comp_to_iter 29724: { 29724: _Compare _M_comp; 29724: _Iterator1 _M_it1; 29724: 29724: 29724: _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) 29724: : _M_comp(std::move(__comp)), _M_it1(__it1) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator2 __it2) 29724: { return bool(_M_comp(*__it2, *_M_it1)); } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_comp_to_iter<_Compare, _Iterator> 29724: __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) 29724: { 29724: return _Iter_comp_to_iter<_Compare, _Iterator>( 29724: std::move(__comp._M_comp), __it); 29724: } 29724: 29724: template 29724: struct _Iter_negate 29724: { 29724: _Predicate _M_pred; 29724: 29724: 29724: explicit 29724: _Iter_negate(_Predicate __pred) 29724: : _M_pred(std::move(__pred)) 29724: { } 29724: 29724: template 29724: 29724: bool 29724: operator()(_Iterator __it) 29724: { return !bool(_M_pred(*__it)); } 29724: }; 29724: 29724: template 29724: 29724: inline _Iter_negate<_Predicate> 29724: __negate(_Iter_pred<_Predicate> __pred) 29724: { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } 29724: 29724: } 29724: } 29724: # 72 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bit" 1 3 29724: # 32 "/usr/include/c++/14/bit" 3 29724: 29724: # 33 "/usr/include/c++/14/bit" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/concepts" 1 3 29724: # 33 "/usr/include/c++/14/concepts" 3 29724: 29724: # 34 "/usr/include/c++/14/concepts" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 37 "/usr/include/c++/14/concepts" 2 3 29724: # 37 "/usr/include/c++/14/bit" 2 3 29724: # 61 "/usr/include/c++/14/bit" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 62 "/usr/include/c++/14/bit" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 155 "/usr/include/c++/14/bit" 3 29724: template 29724: constexpr _Tp 29724: __rotl(_Tp __x, int __s) noexcept 29724: { 29724: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29724: if constexpr ((_Nd & (_Nd - 1)) == 0) 29724: { 29724: 29724: 29724: constexpr unsigned __uNd = _Nd; 29724: const unsigned __r = __s; 29724: return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); 29724: } 29724: const int __r = __s % _Nd; 29724: if (__r == 0) 29724: return __x; 29724: else if (__r > 0) 29724: return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); 29724: else 29724: return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); 29724: } 29724: 29724: template 29724: constexpr _Tp 29724: __rotr(_Tp __x, int __s) noexcept 29724: { 29724: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29724: if constexpr ((_Nd & (_Nd - 1)) == 0) 29724: { 29724: 29724: 29724: constexpr unsigned __uNd = _Nd; 29724: const unsigned __r = __s; 29724: return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); 29724: } 29724: const int __r = __s % _Nd; 29724: if (__r == 0) 29724: return __x; 29724: else if (__r > 0) 29724: return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); 29724: else 29724: return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); 29724: } 29724: 29724: template 29724: constexpr int 29724: __countl_zero(_Tp __x) noexcept 29724: { 29724: using __gnu_cxx::__int_traits; 29724: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29724: 29724: if (__x == 0) 29724: return _Nd; 29724: 29724: constexpr auto _Nd_ull = __int_traits::__digits; 29724: constexpr auto _Nd_ul = __int_traits::__digits; 29724: constexpr auto _Nd_u = __int_traits::__digits; 29724: 29724: if constexpr (_Nd <= _Nd_u) 29724: { 29724: constexpr int __diff = _Nd_u - _Nd; 29724: return __builtin_clz(__x) - __diff; 29724: } 29724: else if constexpr (_Nd <= _Nd_ul) 29724: { 29724: constexpr int __diff = _Nd_ul - _Nd; 29724: return __builtin_clzl(__x) - __diff; 29724: } 29724: else if constexpr (_Nd <= _Nd_ull) 29724: { 29724: constexpr int __diff = _Nd_ull - _Nd; 29724: return __builtin_clzll(__x) - __diff; 29724: } 29724: else 29724: { 29724: static_assert(_Nd <= (2 * _Nd_ull), 29724: "Maximum supported integer size is 128-bit"); 29724: 29724: unsigned long long __high = __x >> _Nd_ull; 29724: if (__high != 0) 29724: { 29724: constexpr int __diff = (2 * _Nd_ull) - _Nd; 29724: return __builtin_clzll(__high) - __diff; 29724: } 29724: constexpr auto __max_ull = __int_traits::__max; 29724: unsigned long long __low = __x & __max_ull; 29724: return (_Nd - _Nd_ull) + __builtin_clzll(__low); 29724: } 29724: } 29724: 29724: template 29724: constexpr int 29724: __countl_one(_Tp __x) noexcept 29724: { 29724: return std::__countl_zero<_Tp>((_Tp)~__x); 29724: } 29724: 29724: template 29724: constexpr int 29724: __countr_zero(_Tp __x) noexcept 29724: { 29724: using __gnu_cxx::__int_traits; 29724: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29724: 29724: if (__x == 0) 29724: return _Nd; 29724: 29724: constexpr auto _Nd_ull = __int_traits::__digits; 29724: constexpr auto _Nd_ul = __int_traits::__digits; 29724: constexpr auto _Nd_u = __int_traits::__digits; 29724: 29724: if constexpr (_Nd <= _Nd_u) 29724: return __builtin_ctz(__x); 29724: else if constexpr (_Nd <= _Nd_ul) 29724: return __builtin_ctzl(__x); 29724: else if constexpr (_Nd <= _Nd_ull) 29724: return __builtin_ctzll(__x); 29724: else 29724: { 29724: static_assert(_Nd <= (2 * _Nd_ull), 29724: "Maximum supported integer size is 128-bit"); 29724: 29724: constexpr auto __max_ull = __int_traits::__max; 29724: unsigned long long __low = __x & __max_ull; 29724: if (__low != 0) 29724: return __builtin_ctzll(__low); 29724: unsigned long long __high = __x >> _Nd_ull; 29724: return __builtin_ctzll(__high) + _Nd_ull; 29724: } 29724: } 29724: 29724: template 29724: constexpr int 29724: __countr_one(_Tp __x) noexcept 29724: { 29724: return std::__countr_zero((_Tp)~__x); 29724: } 29724: 29724: template 29724: constexpr int 29724: __popcount(_Tp __x) noexcept 29724: { 29724: using __gnu_cxx::__int_traits; 29724: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29724: 29724: constexpr auto _Nd_ull = __int_traits::__digits; 29724: constexpr auto _Nd_ul = __int_traits::__digits; 29724: constexpr auto _Nd_u = __int_traits::__digits; 29724: 29724: if constexpr (_Nd <= _Nd_u) 29724: return __builtin_popcount(__x); 29724: else if constexpr (_Nd <= _Nd_ul) 29724: return __builtin_popcountl(__x); 29724: else if constexpr (_Nd <= _Nd_ull) 29724: return __builtin_popcountll(__x); 29724: else 29724: { 29724: static_assert(_Nd <= (2 * _Nd_ull), 29724: "Maximum supported integer size is 128-bit"); 29724: 29724: constexpr auto __max_ull = __int_traits::__max; 29724: unsigned long long __low = __x & __max_ull; 29724: unsigned long long __high = __x >> _Nd_ull; 29724: return __builtin_popcountll(__low) + __builtin_popcountll(__high); 29724: } 29724: } 29724: 29724: template 29724: constexpr bool 29724: __has_single_bit(_Tp __x) noexcept 29724: { return std::__popcount(__x) == 1; } 29724: 29724: template 29724: constexpr _Tp 29724: __bit_ceil(_Tp __x) noexcept 29724: { 29724: using __gnu_cxx::__int_traits; 29724: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29724: if (__x == 0 || __x == 1) 29724: return 1; 29724: auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); 29724: 29724: 29724: 29724: 29724: if (!std::__is_constant_evaluated()) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__shift_exponent != __int_traits<_Tp>::__digits)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: using __promoted_type = decltype(__x << 1); 29724: if constexpr (!is_same<__promoted_type, _Tp>::value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; 29724: __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; 29724: } 29724: return (_Tp)1u << __shift_exponent; 29724: } 29724: 29724: template 29724: constexpr _Tp 29724: __bit_floor(_Tp __x) noexcept 29724: { 29724: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29724: if (__x == 0) 29724: return 0; 29724: return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); 29724: } 29724: 29724: template 29724: constexpr int 29724: __bit_width(_Tp __x) noexcept 29724: { 29724: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29724: return _Nd - std::__countl_zero(__x); 29724: } 29724: # 482 "/usr/include/c++/14/bit" 3 29724: 29724: } 29724: # 77 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr 29724: inline int 29724: __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) 29724: { 29724: 29724: static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); 29724: # 108 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); 29724: } 29724: # 152 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline void 29724: iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) 29724: { 29724: 29724: 29724: 29724: 29724: # 185 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: swap(*__a, *__b); 29724: 29724: } 29724: # 201 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: _ForwardIterator2 29724: swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2) 29724: std::iter_swap(__first1, __first2); 29724: return __first2; 29724: } 29724: # 230 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline const _Tp& 29724: min(const _Tp& __a, const _Tp& __b) 29724: { 29724: 29724: 29724: 29724: if (__b < __a) 29724: return __b; 29724: return __a; 29724: } 29724: # 254 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline const _Tp& 29724: max(const _Tp& __a, const _Tp& __b) 29724: { 29724: 29724: 29724: 29724: if (__a < __b) 29724: return __b; 29724: return __a; 29724: } 29724: # 278 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline const _Tp& 29724: min(const _Tp& __a, const _Tp& __b, _Compare __comp) 29724: { 29724: 29724: if (__comp(__b, __a)) 29724: return __b; 29724: return __a; 29724: } 29724: # 300 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline const _Tp& 29724: max(const _Tp& __a, const _Tp& __b, _Compare __comp) 29724: { 29724: 29724: if (__comp(__a, __b)) 29724: return __b; 29724: return __a; 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: inline _Iterator 29724: __niter_base(_Iterator __it) 29724: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 29724: { return __it; } 29724: # 332 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: decltype(std::__niter_base(std::declval<_Ite>())) 29724: __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, 29724: std::random_access_iterator_tag>&) 29724: noexcept(std::is_nothrow_copy_constructible<_Ite>::value); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline _From 29724: __niter_wrap(_From __from, _To __res) 29724: { return __from + (std::__niter_base(__res) - std::__niter_base(__from)); } 29724: 29724: 29724: template 29724: 29724: inline _Iterator 29724: __niter_wrap(const _Iterator&, _Iterator __res) 29724: { return __res; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __copy_move 29724: { 29724: template 29724: 29724: static _OI 29724: __copy_m(_II __first, _II __last, _OI __result) 29724: { 29724: for (; __first != __last; ++__result, (void)++__first) 29724: *__result = *__first; 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct __copy_move 29724: { 29724: template 29724: 29724: static _OI 29724: __copy_m(_II __first, _II __last, _OI __result) 29724: { 29724: for (; __first != __last; ++__result, (void)++__first) 29724: *__result = std::move(*__first); 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: struct __copy_move 29724: { 29724: template 29724: 29724: static _OI 29724: __copy_m(_II __first, _II __last, _OI __result) 29724: { 29724: typedef typename iterator_traits<_II>::difference_type _Distance; 29724: for(_Distance __n = __last - __first; __n > 0; --__n) 29724: { 29724: *__result = *__first; 29724: ++__first; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: static void 29724: __assign_one(_Tp* __to, _Up* __from) 29724: { *__to = *__from; } 29724: }; 29724: 29724: 29724: template<> 29724: struct __copy_move 29724: { 29724: template 29724: 29724: static _OI 29724: __copy_m(_II __first, _II __last, _OI __result) 29724: { 29724: typedef typename iterator_traits<_II>::difference_type _Distance; 29724: for(_Distance __n = __last - __first; __n > 0; --__n) 29724: { 29724: *__result = std::move(*__first); 29724: ++__first; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: static void 29724: __assign_one(_Tp* __to, _Up* __from) 29724: { *__to = std::move(*__from); } 29724: }; 29724: 29724: 29724: template 29724: struct __copy_move<_IsMove, true, random_access_iterator_tag> 29724: { 29724: template 29724: 29724: static _Up* 29724: __copy_m(_Tp* __first, _Tp* __last, _Up* __result) 29724: { 29724: const ptrdiff_t _Num = __last - __first; 29724: if (__builtin_expect(_Num > 1, true)) 29724: __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); 29724: else if (_Num == 1) 29724: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 29724: __assign_one(__result, __first); 29724: return __result + _Num; 29724: } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct _Deque_iterator; 29724: 29724: struct _Bit_iterator; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct char_traits; 29724: 29724: template 29724: class istreambuf_iterator; 29724: 29724: template 29724: class ostreambuf_iterator; 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 29724: __copy_move_a2(_CharT*, _CharT*, 29724: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 29724: __copy_move_a2(const _CharT*, const _CharT*, 29724: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: _CharT*>::__type 29724: __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, 29724: istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_char<_CharT>::__value, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29724: __copy_move_a2( 29724: istreambuf_iterator<_CharT, char_traits<_CharT> >, 29724: istreambuf_iterator<_CharT, char_traits<_CharT> >, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*>); 29724: 29724: 29724: template 29724: 29724: inline _OI 29724: __copy_move_a2(_II __first, _II __last, _OI __result) 29724: { 29724: typedef typename iterator_traits<_II>::iterator_category _Category; 29724: 29724: 29724: 29724: 29724: 29724: return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, 29724: _Category>::__copy_m(__first, __last, __result); 29724: } 29724: 29724: template 29724: _OI 29724: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: _OI); 29724: 29724: template 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29724: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29724: __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 29724: 29724: template 29724: 29724: inline _OI 29724: __copy_move_a1(_II __first, _II __last, _OI __result) 29724: { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: 29724: inline _OI 29724: __copy_move_a(_II __first, _II __last, _OI __result) 29724: { 29724: return std::__niter_wrap(__result, 29724: std::__copy_move_a1<_IsMove>(std::__niter_base(__first), 29724: std::__niter_base(__last), 29724: std::__niter_base(__result))); 29724: } 29724: 29724: template 29724: 29724: _OI 29724: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: _OI); 29724: 29724: template 29724: 29724: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29724: __copy_move_a(_II, _II, 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 29724: 29724: template 29724: 29724: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 29724: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29724: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29724: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 29724: 29724: template 29724: 29724: _OutputIterator 29724: __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, 29724: bool) 29724: { 29724: if (__n > 0) 29724: { 29724: while (true) 29724: { 29724: *__result = *__first; 29724: ++__result; 29724: if (--__n > 0) 29724: ++__first; 29724: else 29724: break; 29724: } 29724: } 29724: return __result; 29724: } 29724: 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_char<_CharT>::__value, _CharT*>::__type 29724: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, 29724: _Size, _CharT*, bool); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_char<_CharT>::__value, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29724: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*>, 29724: bool); 29724: # 639 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _OI 29724: copy(_II __first, _II __last, _OI __result) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__copy_move_a<__is_move_iterator<_II>::__value> 29724: (std::__miter_base(__first), std::__miter_base(__last), __result); 29724: } 29724: # 672 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _OI 29724: move(_II __first, _II __last, _OI __result) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__copy_move_a(std::__miter_base(__first), 29724: std::__miter_base(__last), __result); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __copy_move_backward 29724: { 29724: template 29724: 29724: static _BI2 29724: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: while (__first != __last) 29724: *--__result = *--__last; 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct __copy_move_backward 29724: { 29724: template 29724: 29724: static _BI2 29724: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: while (__first != __last) 29724: *--__result = std::move(*--__last); 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: struct __copy_move_backward 29724: { 29724: template 29724: 29724: static _BI2 29724: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: typename iterator_traits<_BI1>::difference_type 29724: __n = __last - __first; 29724: for (; __n > 0; --__n) 29724: *--__result = *--__last; 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: struct __copy_move_backward 29724: { 29724: template 29724: 29724: static _BI2 29724: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: typename iterator_traits<_BI1>::difference_type 29724: __n = __last - __first; 29724: for (; __n > 0; --__n) 29724: *--__result = std::move(*--__last); 29724: return __result; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> 29724: { 29724: template 29724: 29724: static _Up* 29724: __copy_move_b(_Tp* __first, _Tp* __last, _Up* __result) 29724: { 29724: const ptrdiff_t _Num = __last - __first; 29724: if (__builtin_expect(_Num > 1, true)) 29724: __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); 29724: else if (_Num == 1) 29724: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 29724: __assign_one(__result - 1, __first); 29724: return __result - _Num; 29724: } 29724: }; 29724: 29724: template 29724: 29724: inline _BI2 29724: __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: typedef typename iterator_traits<_BI1>::iterator_category _Category; 29724: 29724: 29724: 29724: 29724: 29724: return std::__copy_move_backward<_IsMove, 29724: __memcpyable<_BI2, _BI1>::__value, 29724: _Category>::__copy_move_b(__first, 29724: __last, 29724: __result); 29724: } 29724: 29724: template 29724: 29724: inline _BI2 29724: __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: _OI 29724: __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: _OI); 29724: 29724: template 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29724: __copy_move_backward_a1( 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29724: __copy_move_backward_a1(_II, _II, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 29724: 29724: template 29724: 29724: inline _OI 29724: __copy_move_backward_a(_II __first, _II __last, _OI __result) 29724: { 29724: return std::__niter_wrap(__result, 29724: std::__copy_move_backward_a1<_IsMove> 29724: (std::__niter_base(__first), std::__niter_base(__last), 29724: std::__niter_base(__result))); 29724: } 29724: 29724: template 29724: 29724: _OI 29724: __copy_move_backward_a( 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: _OI); 29724: 29724: template 29724: 29724: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29724: __copy_move_backward_a(_II, _II, 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 29724: 29724: template 29724: 29724: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 29724: __copy_move_backward_a( 29724: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29724: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29724: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 29724: # 875 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _BI2 29724: copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> 29724: (std::__miter_base(__first), std::__miter_base(__last), __result); 29724: } 29724: # 910 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _BI2 29724: move_backward(_BI1 __first, _BI1 __last, _BI2 __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__copy_move_backward_a(std::__miter_base(__first), 29724: std::__miter_base(__last), 29724: __result); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline typename 29724: __gnu_cxx::__enable_if::__value, void>::__type 29724: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __value) 29724: { 29724: for (; __first != __last; ++__first) 29724: *__first = __value; 29724: } 29724: 29724: template 29724: 29724: inline typename 29724: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type 29724: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __value) 29724: { 29724: const _Tp __tmp = __value; 29724: for (; __first != __last; ++__first) 29724: *__first = __tmp; 29724: } 29724: 29724: 29724: template 29724: 29724: inline typename 29724: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type 29724: __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) 29724: { 29724: const _Tp __tmp = __c; 29724: # 971 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: if (const size_t __len = __last - __first) 29724: __builtin_memset(__first, static_cast(__tmp), __len); 29724: } 29724: 29724: template 29724: 29724: inline void 29724: __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, 29724: ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, 29724: const _Tp& __value) 29724: { std::__fill_a1(__first.base(), __last.base(), __value); } 29724: 29724: template 29724: void 29724: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 29724: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 29724: const _VTp&); 29724: 29724: 29724: void 29724: __fill_a1(std::_Bit_iterator, std::_Bit_iterator, 29724: const bool&); 29724: 29724: template 29724: 29724: inline void 29724: __fill_a(_FIte __first, _FIte __last, const _Tp& __value) 29724: { std::__fill_a1(__first, __last, __value); } 29724: 29724: template 29724: 29724: void 29724: __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29724: const _Tp&); 29724: # 1019 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline void 29724: fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: std::__fill_a(__first, __last, __value); 29724: } 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: 29724: inline constexpr int 29724: __size_to_integer(int __n) { return __n; } 29724: inline constexpr unsigned 29724: __size_to_integer(unsigned __n) { return __n; } 29724: inline constexpr long 29724: __size_to_integer(long __n) { return __n; } 29724: inline constexpr unsigned long 29724: __size_to_integer(unsigned long __n) { return __n; } 29724: inline constexpr long long 29724: __size_to_integer(long long __n) { return __n; } 29724: inline constexpr unsigned long long 29724: __size_to_integer(unsigned long long __n) { return __n; } 29724: # 1073 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: inline constexpr long long 29724: __size_to_integer(float __n) { return (long long)__n; } 29724: inline constexpr long long 29724: __size_to_integer(double __n) { return (long long)__n; } 29724: inline constexpr long long 29724: __size_to_integer(long double __n) { return (long long)__n; } 29724: 29724: 29724: 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: template 29724: 29724: inline typename 29724: __gnu_cxx::__enable_if::__value, _OutputIterator>::__type 29724: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 29724: { 29724: for (; __n > 0; --__n, (void) ++__first) 29724: *__first = __value; 29724: return __first; 29724: } 29724: 29724: template 29724: 29724: inline typename 29724: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type 29724: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 29724: { 29724: const _Tp __tmp = __value; 29724: for (; __n > 0; --__n, (void) ++__first) 29724: *__first = __tmp; 29724: return __first; 29724: } 29724: 29724: template 29724: 29724: ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29724: __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, 29724: _Size __n, const _Tp& __value, 29724: std::input_iterator_tag); 29724: 29724: template 29724: 29724: inline _OutputIterator 29724: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29724: std::output_iterator_tag) 29724: { 29724: 29724: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29724: 29724: return __fill_n_a1(__first, __n, __value); 29724: } 29724: 29724: template 29724: 29724: inline _OutputIterator 29724: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29724: std::input_iterator_tag) 29724: { 29724: 29724: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29724: 29724: return __fill_n_a1(__first, __n, __value); 29724: } 29724: 29724: template 29724: 29724: inline _OutputIterator 29724: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29724: std::random_access_iterator_tag) 29724: { 29724: 29724: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29724: 29724: if (__n <= 0) 29724: return __first; 29724: 29724: ; 29724: 29724: std::__fill_a(__first, __first + __n, __value); 29724: return __first + __n; 29724: } 29724: # 1175 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _OI 29724: fill_n(_OI __first, _Size __n, const _Tp& __value) 29724: { 29724: 29724: 29724: 29724: return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: template 29724: struct __equal 29724: { 29724: template 29724: 29724: static bool 29724: equal(_II1 __first1, _II1 __last1, _II2 __first2) 29724: { 29724: for (; __first1 != __last1; ++__first1, (void) ++__first2) 29724: if (!(*__first1 == *__first2)) 29724: return false; 29724: return true; 29724: } 29724: }; 29724: 29724: template<> 29724: struct __equal 29724: { 29724: template 29724: 29724: static bool 29724: equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) 29724: { 29724: if (const size_t __len = (__last1 - __first1)) 29724: return !std::__memcmp(__first1, __first2, __len); 29724: return true; 29724: } 29724: }; 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, bool>::__type 29724: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29724: _II); 29724: 29724: template 29724: bool 29724: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, bool>::__type 29724: __equal_aux1(_II, _II, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr>); 29724: 29724: template 29724: 29724: inline bool 29724: __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) 29724: { 29724: typedef typename iterator_traits<_II1>::value_type _ValueType1; 29724: const bool __simple = ((__is_integer<_ValueType1>::__value 29724: || __is_pointer<_ValueType1>::__value) 29724: && __memcmpable<_II1, _II2>::__value); 29724: return std::__equal<__simple>::equal(__first1, __last1, __first2); 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) 29724: { 29724: return std::__equal_aux1(std::__niter_base(__first1), 29724: std::__niter_base(__last1), 29724: std::__niter_base(__first2)); 29724: } 29724: 29724: template 29724: 29724: bool 29724: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29724: _II2); 29724: 29724: template 29724: 29724: bool 29724: __equal_aux(_II1, _II1, 29724: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 29724: 29724: template 29724: 29724: bool 29724: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 29724: 29724: template 29724: struct __lc_rai 29724: { 29724: template 29724: 29724: static _II1 29724: __newlast1(_II1, _II1 __last1, _II2, _II2) 29724: { return __last1; } 29724: 29724: template 29724: 29724: static bool 29724: __cnd2(_II __first, _II __last) 29724: { return __first != __last; } 29724: }; 29724: 29724: template<> 29724: struct __lc_rai 29724: { 29724: template 29724: 29724: static _RAI1 29724: __newlast1(_RAI1 __first1, _RAI1 __last1, 29724: _RAI2 __first2, _RAI2 __last2) 29724: { 29724: const typename iterator_traits<_RAI1>::difference_type 29724: __diff1 = __last1 - __first1; 29724: const typename iterator_traits<_RAI2>::difference_type 29724: __diff2 = __last2 - __first2; 29724: return __diff2 < __diff1 ? __first1 + __diff2 : __last1; 29724: } 29724: 29724: template 29724: static bool 29724: __cnd2(_RAI, _RAI) 29724: { return true; } 29724: }; 29724: 29724: template 29724: 29724: bool 29724: __lexicographical_compare_impl(_II1 __first1, _II1 __last1, 29724: _II2 __first2, _II2 __last2, 29724: _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_II1>::iterator_category _Category1; 29724: typedef typename iterator_traits<_II2>::iterator_category _Category2; 29724: typedef std::__lc_rai<_Category1, _Category2> __rai_type; 29724: 29724: __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); 29724: for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); 29724: ++__first1, (void)++__first2) 29724: { 29724: if (__comp(__first1, __first2)) 29724: return true; 29724: if (__comp(__first2, __first1)) 29724: return false; 29724: } 29724: return __first1 == __last1 && __first2 != __last2; 29724: } 29724: 29724: template 29724: struct __lexicographical_compare 29724: { 29724: template 29724: 29724: static bool 29724: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29724: { 29724: using __gnu_cxx::__ops::__iter_less_iter; 29724: return std::__lexicographical_compare_impl(__first1, __last1, 29724: __first2, __last2, 29724: __iter_less_iter()); 29724: } 29724: 29724: template 29724: 29724: static int 29724: __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29724: { 29724: while (__first1 != __last1) 29724: { 29724: if (__first2 == __last2) 29724: return +1; 29724: if (*__first1 < *__first2) 29724: return -1; 29724: if (*__first2 < *__first1) 29724: return +1; 29724: ++__first1; 29724: ++__first2; 29724: } 29724: return int(__first2 == __last2) - 1; 29724: } 29724: }; 29724: 29724: template<> 29724: struct __lexicographical_compare 29724: { 29724: template 29724: 29724: static bool 29724: __lc(const _Tp* __first1, const _Tp* __last1, 29724: const _Up* __first2, const _Up* __last2) 29724: { return __3way(__first1, __last1, __first2, __last2) < 0; } 29724: 29724: template 29724: 29724: static ptrdiff_t 29724: __3way(const _Tp* __first1, const _Tp* __last1, 29724: const _Up* __first2, const _Up* __last2) 29724: { 29724: const size_t __len1 = __last1 - __first1; 29724: const size_t __len2 = __last2 - __first2; 29724: if (const size_t __len = std::min(__len1, __len2)) 29724: if (int __result = std::__memcmp(__first1, __first2, __len)) 29724: return __result; 29724: return ptrdiff_t(__len1 - __len2); 29724: } 29724: }; 29724: 29724: template 29724: 29724: inline bool 29724: __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, 29724: _II2 __first2, _II2 __last2) 29724: { 29724: typedef typename iterator_traits<_II1>::value_type _ValueType1; 29724: typedef typename iterator_traits<_II2>::value_type _ValueType2; 29724: const bool __simple = 29724: (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value 29724: && __is_pointer<_II1>::__value 29724: && __is_pointer<_II2>::__value 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ); 29724: 29724: return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, 29724: __first2, __last2); 29724: } 29724: 29724: template 29724: bool 29724: __lexicographical_compare_aux1( 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: _Tp2*, _Tp2*); 29724: 29724: template 29724: bool 29724: __lexicographical_compare_aux1(_Tp1*, _Tp1*, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29724: 29724: template 29724: bool 29724: __lexicographical_compare_aux1( 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29724: 29724: template 29724: 29724: inline bool 29724: __lexicographical_compare_aux(_II1 __first1, _II1 __last1, 29724: _II2 __first2, _II2 __last2) 29724: { 29724: return std::__lexicographical_compare_aux1(std::__niter_base(__first1), 29724: std::__niter_base(__last1), 29724: std::__niter_base(__first2), 29724: std::__niter_base(__last2)); 29724: } 29724: 29724: template 29724: 29724: bool 29724: __lexicographical_compare_aux( 29724: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29724: _II2, _II2); 29724: 29724: template 29724: 29724: bool 29724: __lexicographical_compare_aux( 29724: _II1, _II1, 29724: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 29724: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 29724: 29724: template 29724: 29724: bool 29724: __lexicographical_compare_aux( 29724: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29724: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 29724: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::difference_type 29724: _DistanceType; 29724: 29724: _DistanceType __len = std::distance(__first, __last); 29724: 29724: while (__len > 0) 29724: { 29724: _DistanceType __half = __len >> 1; 29724: _ForwardIterator __middle = __first; 29724: std::advance(__middle, __half); 29724: if (__comp(__middle, __val)) 29724: { 29724: __first = __middle; 29724: ++__first; 29724: __len = __len - __half - 1; 29724: } 29724: else 29724: __len = __half; 29724: } 29724: return __first; 29724: } 29724: # 1527 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__lower_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_less_val()); 29724: } 29724: 29724: 29724: 29724: template 29724: inline constexpr _Tp 29724: __lg(_Tp __n) 29724: { 29724: 29724: return std::__bit_width(make_unsigned_t<_Tp>(__n)) - 1; 29724: # 1563 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: } 29724: 29724: 29724: # 1579 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: equal(_II1 __first1, _II1 __last1, _II2 __first2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__equal_aux(__first1, __last1, __first2); 29724: } 29724: # 1610 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: equal(_IIter1 __first1, _IIter1 __last1, 29724: _IIter2 __first2, _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2) 29724: if (!bool(__binary_pred(*__first1, *__first2))) 29724: return false; 29724: return true; 29724: } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: 29724: 29724: template 29724: 29724: inline bool 29724: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29724: { 29724: using _RATag = random_access_iterator_tag; 29724: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 29724: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 29724: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 29724: if constexpr (_RAIters::value) 29724: { 29724: if ((__last1 - __first1) != (__last2 - __first2)) 29724: return false; 29724: return std::equal(__first1, __last1, __first2); 29724: } 29724: else 29724: { 29724: for (; __first1 != __last1 && __first2 != __last2; 29724: ++__first1, (void)++__first2) 29724: if (!(*__first1 == *__first2)) 29724: return false; 29724: return __first1 == __last1 && __first2 == __last2; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline bool 29724: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: using _RATag = random_access_iterator_tag; 29724: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 29724: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 29724: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 29724: if constexpr (_RAIters::value) 29724: { 29724: if ((__last1 - __first1) != (__last2 - __first2)) 29724: return false; 29724: return std::equal(__first1, __last1, __first2, 29724: __binary_pred); 29724: } 29724: else 29724: { 29724: for (; __first1 != __last1 && __first2 != __last2; 29724: ++__first1, (void)++__first2) 29724: if (!bool(__binary_pred(*__first1, *__first2))) 29724: return false; 29724: return __first1 == __last1 && __first2 == __last2; 29724: } 29724: } 29724: #pragma GCC diagnostic pop 29724: # 1701 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__equal4(__first1, __last1, __first2, __last2); 29724: } 29724: # 1734 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: equal(_IIter1 __first1, _IIter1 __last1, 29724: _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__equal4(__first1, __last1, __first2, __last2, 29724: __binary_pred); 29724: } 29724: # 1766 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: lexicographical_compare(_II1 __first1, _II1 __last1, 29724: _II2 __first2, _II2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__lexicographical_compare_aux(__first1, __last1, 29724: __first2, __last2); 29724: } 29724: # 1801 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: lexicographical_compare(_II1 __first1, _II1 __last1, 29724: _II2 __first2, _II2 __last2, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__lexicographical_compare_impl 29724: (__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 1916 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: pair<_InputIterator1, _InputIterator2> 29724: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 29724: { 29724: while (__first1 != __last1 && __binary_pred(__first1, __first2)) 29724: { 29724: ++__first1; 29724: ++__first2; 29724: } 29724: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 29724: } 29724: # 1944 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_InputIterator1, _InputIterator2> 29724: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__mismatch(__first1, __last1, __first2, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 1978 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_InputIterator1, _InputIterator2> 29724: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__mismatch(__first1, __last1, __first2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29724: } 29724: 29724: 29724: template 29724: 29724: pair<_InputIterator1, _InputIterator2> 29724: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2 29724: && __binary_pred(__first1, __first2)) 29724: { 29724: ++__first1; 29724: ++__first2; 29724: } 29724: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 29724: } 29724: # 2026 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_InputIterator1, _InputIterator2> 29724: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__mismatch(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 2062 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_InputIterator1, _InputIterator2> 29724: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__mismatch(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline _InputIterator 29724: __find_if(_InputIterator __first, _InputIterator __last, 29724: _Predicate __pred, input_iterator_tag) 29724: { 29724: while (__first != __last && !__pred(__first)) 29724: ++__first; 29724: return __first; 29724: } 29724: 29724: 29724: template 29724: 29724: _RandomAccessIterator 29724: __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Predicate __pred, random_access_iterator_tag) 29724: { 29724: typename iterator_traits<_RandomAccessIterator>::difference_type 29724: __trip_count = (__last - __first) >> 2; 29724: 29724: for (; __trip_count > 0; --__trip_count) 29724: { 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: } 29724: 29724: switch (__last - __first) 29724: { 29724: case 3: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: case 2: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: case 1: 29724: if (__pred(__first)) 29724: return __first; 29724: ++__first; 29724: 29724: case 0: 29724: default: 29724: return __last; 29724: } 29724: } 29724: 29724: template 29724: 29724: inline _Iterator 29724: __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) 29724: { 29724: return __find_if(__first, __last, __pred, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: template 29724: 29724: typename iterator_traits<_InputIterator>::difference_type 29724: __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29724: { 29724: typename iterator_traits<_InputIterator>::difference_type __n = 0; 29724: for (; __first != __last; ++__first) 29724: if (__pred(__first)) 29724: ++__n; 29724: return __n; 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __remove_if(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: __first = std::__find_if(__first, __last, __pred); 29724: if (__first == __last) 29724: return __first; 29724: _ForwardIterator __result = __first; 29724: ++__first; 29724: for (; __first != __last; ++__first) 29724: if (!__pred(__first)) 29724: { 29724: *__result = std::move(*__first); 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator1 29724: __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: _BinaryPredicate __predicate) 29724: { 29724: 29724: if (__first1 == __last1 || __first2 == __last2) 29724: return __first1; 29724: 29724: 29724: _ForwardIterator2 __p1(__first2); 29724: if (++__p1 == __last2) 29724: return std::__find_if(__first1, __last1, 29724: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 29724: 29724: 29724: _ForwardIterator1 __current = __first1; 29724: 29724: for (;;) 29724: { 29724: __first1 = 29724: std::__find_if(__first1, __last1, 29724: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 29724: 29724: if (__first1 == __last1) 29724: return __last1; 29724: 29724: _ForwardIterator2 __p = __p1; 29724: __current = __first1; 29724: if (++__current == __last1) 29724: return __last1; 29724: 29724: while (__predicate(__current, __p)) 29724: { 29724: if (++__p == __last2) 29724: return __first1; 29724: if (++__current == __last1) 29724: return __last1; 29724: } 29724: ++__first1; 29724: } 29724: return __first1; 29724: } 29724: 29724: 29724: template 29724: 29724: bool 29724: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _BinaryPredicate __pred) 29724: { 29724: 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2) 29724: if (!__pred(__first1, __first2)) 29724: break; 29724: 29724: if (__first1 == __last1) 29724: return true; 29724: 29724: 29724: 29724: _ForwardIterator2 __last2 = __first2; 29724: std::advance(__last2, std::distance(__first1, __last1)); 29724: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 29724: { 29724: if (__scan != std::__find_if(__first1, __scan, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 29724: continue; 29724: 29724: auto __matches 29724: = std::__count_if(__first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 29724: if (0 == __matches || 29724: std::__count_if(__scan, __last1, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 29724: != __matches) 29724: return false; 29724: } 29724: return true; 29724: } 29724: # 2286 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline bool 29724: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__is_permutation(__first1, __last1, __first2, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: 29724: 29724: 29724: # 2328 "/usr/include/c++/14/bits/stl_algobase.h" 3 29724: template 29724: 29724: inline _ForwardIterator1 29724: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: _BinaryPredicate __predicate) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__search(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__predicate)); 29724: } 29724: 29724: 29724: 29724: } 29724: # 63 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/allocator.h" 1 3 29724: # 46 "/usr/include/c++/14/bits/allocator.h" 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 1 3 29724: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 29724: # 1 "/usr/include/c++/14/bits/new_allocator.h" 1 3 29724: # 41 "/usr/include/c++/14/bits/new_allocator.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 62 "/usr/include/c++/14/bits/new_allocator.h" 3 29724: template 29724: class __new_allocator 29724: { 29724: public: 29724: typedef _Tp value_type; 29724: typedef std::size_t size_type; 29724: typedef std::ptrdiff_t difference_type; 29724: 29724: typedef _Tp* pointer; 29724: typedef const _Tp* const_pointer; 29724: typedef _Tp& reference; 29724: typedef const _Tp& const_reference; 29724: 29724: template 29724: struct rebind 29724: { typedef __new_allocator<_Tp1> other; }; 29724: 29724: 29724: 29724: 29724: 29724: typedef std::true_type propagate_on_container_move_assignment; 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: 29724: __new_allocator() noexcept { } 29724: 29724: __attribute__((__always_inline__)) 29724: 29724: __new_allocator(const __new_allocator&) noexcept { } 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: 29724: __new_allocator(const __new_allocator<_Tp1>&) noexcept { } 29724: 29724: 29724: __new_allocator& operator=(const __new_allocator&) = default; 29724: 29724: 29724: 29724: ~__new_allocator() noexcept { } 29724: 29724: pointer 29724: address(reference __x) const noexcept 29724: { return std::__addressof(__x); } 29724: 29724: const_pointer 29724: address(const_reference __x) const noexcept 29724: { return std::__addressof(__x); } 29724: # 125 "/usr/include/c++/14/bits/new_allocator.h" 3 29724: [[__nodiscard__]] _Tp* 29724: allocate(size_type __n, const void* = static_cast(0)) 29724: { 29724: 29724: 29724: 29724: static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); 29724: 29724: 29724: if (__builtin_expect(__n > this->_M_max_size(), false)) 29724: { 29724: 29724: 29724: if (__n > (std::size_t(-1) / sizeof(_Tp))) 29724: std::__throw_bad_array_new_length(); 29724: std::__throw_bad_alloc(); 29724: } 29724: 29724: 29724: if (alignof(_Tp) > 8) 29724: { 29724: std::align_val_t __al = std::align_val_t(alignof(_Tp)); 29724: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), 29724: __al)); 29724: } 29724: 29724: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 29724: } 29724: 29724: 29724: void 29724: deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (alignof(_Tp) > 8) 29724: { 29724: ::operator delete((__p), (__n) * sizeof(_Tp), 29724: std::align_val_t(alignof(_Tp))); 29724: return; 29724: } 29724: 29724: ::operator delete((__p), (__n) * sizeof(_Tp)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: size_type 29724: max_size() const noexcept 29724: { return _M_max_size(); } 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: void 29724: construct(_Up* __p, _Args&&... __args) 29724: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 29724: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: void 29724: destroy(_Up* __p) 29724: noexcept(std::is_nothrow_destructible<_Up>::value) 29724: { __p->~_Up(); } 29724: # 213 "/usr/include/c++/14/bits/new_allocator.h" 3 29724: template 29724: friend __attribute__((__always_inline__)) bool 29724: operator==(const __new_allocator&, const __new_allocator<_Up>&) 29724: noexcept 29724: { return true; } 29724: 29724: 29724: template 29724: friend __attribute__((__always_inline__)) bool 29724: operator!=(const __new_allocator&, const __new_allocator<_Up>&) 29724: noexcept 29724: { return false; } 29724: 29724: 29724: private: 29724: __attribute__((__always_inline__)) 29724: constexpr size_type 29724: _M_max_size() const noexcept 29724: { 29724: 29724: return std::size_t(0x7fffffff) / sizeof(_Tp); 29724: 29724: 29724: 29724: } 29724: }; 29724: 29724: 29724: } 29724: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 2 3 29724: 29724: 29724: namespace std 29724: { 29724: # 46 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 29724: template 29724: using __allocator_base = __new_allocator<_Tp>; 29724: } 29724: # 47 "/usr/include/c++/14/bits/allocator.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/memoryfwd.h" 1 3 29724: # 46 "/usr/include/c++/14/bits/memoryfwd.h" 3 29724: 29724: # 47 "/usr/include/c++/14/bits/memoryfwd.h" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 64 "/usr/include/c++/14/bits/memoryfwd.h" 3 29724: template 29724: class allocator; 29724: 29724: template<> 29724: class allocator; 29724: 29724: 29724: 29724: template 29724: struct uses_allocator; 29724: 29724: template 29724: struct allocator_traits; 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 48 "/usr/include/c++/14/bits/allocator.h" 2 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 72 "/usr/include/c++/14/bits/allocator.h" 3 29724: template<> 29724: class allocator 29724: { 29724: public: 29724: typedef void value_type; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: 29724: 29724: 29724: typedef void* pointer; 29724: typedef const void* const_pointer; 29724: 29724: template 29724: struct rebind 29724: { typedef allocator<_Tp1> other; }; 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_move_assignment = true_type; 29724: 29724: using is_always_equal 29724: 29724: = true_type; 29724: # 115 "/usr/include/c++/14/bits/allocator.h" 3 29724: }; 29724: # 127 "/usr/include/c++/14/bits/allocator.h" 3 29724: template 29724: class allocator : public __allocator_base<_Tp> 29724: { 29724: public: 29724: typedef _Tp value_type; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: 29724: 29724: 29724: typedef _Tp* pointer; 29724: typedef const _Tp* const_pointer; 29724: typedef _Tp& reference; 29724: typedef const _Tp& const_reference; 29724: 29724: template 29724: struct rebind 29724: { typedef allocator<_Tp1> other; }; 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_move_assignment = true_type; 29724: 29724: using is_always_equal 29724: 29724: = true_type; 29724: 29724: 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: 29724: allocator() noexcept { } 29724: 29724: __attribute__((__always_inline__)) 29724: 29724: allocator(const allocator& __a) noexcept 29724: : __allocator_base<_Tp>(__a) { } 29724: 29724: 29724: 29724: allocator& operator=(const allocator&) = default; 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: 29724: allocator(const allocator<_Tp1>&) noexcept { } 29724: 29724: __attribute__((__always_inline__)) 29724: 29724: 29724: 29724: ~allocator() noexcept { } 29724: # 212 "/usr/include/c++/14/bits/allocator.h" 3 29724: friend __attribute__((__always_inline__)) 29724: bool 29724: operator==(const allocator&, const allocator&) noexcept 29724: { return true; } 29724: 29724: 29724: friend __attribute__((__always_inline__)) 29724: bool 29724: operator!=(const allocator&, const allocator&) noexcept 29724: { return false; } 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: inline bool 29724: operator==(const allocator<_T1>&, const allocator<_T2>&) 29724: noexcept 29724: { return true; } 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: inline bool 29724: operator!=(const allocator<_T1>&, const allocator<_T2>&) 29724: noexcept 29724: { return false; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class allocator 29724: { 29724: public: 29724: typedef _Tp value_type; 29724: allocator() { } 29724: template allocator(const allocator<_Up>&) { } 29724: }; 29724: 29724: template 29724: class allocator 29724: { 29724: public: 29724: typedef _Tp value_type; 29724: allocator() { } 29724: template allocator(const allocator<_Up>&) { } 29724: }; 29724: 29724: template 29724: class allocator 29724: { 29724: public: 29724: typedef _Tp value_type; 29724: allocator() { } 29724: template allocator(const allocator<_Up>&) { } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern template class allocator; 29724: extern template class allocator; 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 64 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_construct.h" 1 3 29724: # 73 "/usr/include/c++/14/bits/stl_construct.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: inline void 29724: destroy_at(_Tp* __location) 29724: { 29724: if constexpr (201703L > 201703L && is_array_v<_Tp>) 29724: { 29724: for (auto& __x : *__location) 29724: std::destroy_at(std::__addressof(__x)); 29724: } 29724: else 29724: __location->~_Tp(); 29724: } 29724: # 106 "/usr/include/c++/14/bits/stl_construct.h" 3 29724: template 29724: 29724: inline void 29724: _Construct(_Tp* __p, _Args&&... __args) 29724: { 29724: # 119 "/usr/include/c++/14/bits/stl_construct.h" 3 29724: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 29724: } 29724: # 132 "/usr/include/c++/14/bits/stl_construct.h" 3 29724: template 29724: inline void 29724: _Construct_novalue(_T1* __p) 29724: { ::new((void*)__p) _T1; } 29724: 29724: template 29724: void 29724: _Destroy(_ForwardIterator __first, _ForwardIterator __last); 29724: 29724: 29724: 29724: 29724: template 29724: constexpr inline void 29724: _Destroy(_Tp* __pointer) 29724: { 29724: 29724: 29724: 29724: __pointer->~_Tp(); 29724: 29724: } 29724: 29724: template 29724: struct _Destroy_aux 29724: { 29724: template 29724: static void 29724: __destroy(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: for (; __first != __last; ++__first) 29724: std::_Destroy(std::__addressof(*__first)); 29724: } 29724: }; 29724: 29724: template<> 29724: struct _Destroy_aux 29724: { 29724: template 29724: static void 29724: __destroy(_ForwardIterator, _ForwardIterator) { } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: _Destroy(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _Value_type; 29724: 29724: 29724: static_assert(is_destructible<_Value_type>::value, 29724: "value type is destructible"); 29724: 29724: 29724: 29724: 29724: 29724: std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: 29724: __destroy(__first, __last); 29724: } 29724: 29724: template 29724: struct _Destroy_n_aux 29724: { 29724: template 29724: static _ForwardIterator 29724: __destroy_n(_ForwardIterator __first, _Size __count) 29724: { 29724: for (; __count > 0; (void)++__first, --__count) 29724: std::_Destroy(std::__addressof(*__first)); 29724: return __first; 29724: } 29724: }; 29724: 29724: template<> 29724: struct _Destroy_n_aux 29724: { 29724: template 29724: static _ForwardIterator 29724: __destroy_n(_ForwardIterator __first, _Size __count) 29724: { 29724: std::advance(__first, __count); 29724: return __first; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline _ForwardIterator 29724: _Destroy_n(_ForwardIterator __first, _Size __count) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _Value_type; 29724: 29724: 29724: static_assert(is_destructible<_Value_type>::value, 29724: "value type is destructible"); 29724: 29724: 29724: 29724: 29724: 29724: return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: 29724: __destroy_n(__first, __count); 29724: } 29724: 29724: 29724: template 29724: inline void 29724: destroy(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: std::_Destroy(__first, __last); 29724: } 29724: 29724: template 29724: inline _ForwardIterator 29724: destroy_n(_ForwardIterator __first, _Size __count) 29724: { 29724: return std::_Destroy_n(__first, __count); 29724: } 29724: 29724: 29724: 29724: } 29724: # 65 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_uninitialized.h" 1 3 29724: # 64 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: # 1 "/usr/include/c++/14/ext/alloc_traits.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/alloc_traits.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/alloc_traits.h" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/alloc_traits.h" 1 3 29724: # 46 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: # 52 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++14-extensions" 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: 29724: 29724: struct __allocator_traits_base 29724: { 29724: template 29724: struct __rebind : __replace_first_arg<_Tp, _Up> 29724: { 29724: static_assert(is_same< 29724: typename __replace_first_arg<_Tp, typename _Tp::value_type>::type, 29724: _Tp>::value, 29724: "allocator_traits::rebind_alloc must be A"); 29724: }; 29724: 29724: template 29724: struct __rebind<_Tp, _Up, 29724: __void_t::other>> 29724: { 29724: using type = typename _Tp::template rebind<_Up>::other; 29724: 29724: static_assert(is_same< 29724: typename _Tp::template rebind::other, 29724: _Tp>::value, 29724: "allocator_traits::rebind_alloc must be A"); 29724: }; 29724: 29724: protected: 29724: template 29724: using __pointer = typename _Tp::pointer; 29724: template 29724: using __c_pointer = typename _Tp::const_pointer; 29724: template 29724: using __v_pointer = typename _Tp::void_pointer; 29724: template 29724: using __cv_pointer = typename _Tp::const_void_pointer; 29724: template 29724: using __pocca = typename _Tp::propagate_on_container_copy_assignment; 29724: template 29724: using __pocma = typename _Tp::propagate_on_container_move_assignment; 29724: template 29724: using __pocs = typename _Tp::propagate_on_container_swap; 29724: template 29724: using __equal = __type_identity; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: using __construct_t 29724: = decltype(std::declval<_Alloc&>().construct(std::declval<_Tp*>(), 29724: std::declval<_Args>()...)); 29724: template 29724: static constexpr bool __has_construct_impl = false; 29724: template 29724: static constexpr bool 29724: __has_construct_impl<_Alloc, _Tp, 29724: __void_t<__construct_t<_Alloc, _Tp, _Args...>>, 29724: _Args...> 29724: = true; 29724: template 29724: static constexpr bool __has_construct 29724: = __has_construct_impl<_Alloc, _Tp, void, _Args...>; 29724: template 29724: using __new_expr_t 29724: = decltype(::new((void*)0) _Tp(std::declval<_Args>()...)); 29724: template 29724: static constexpr bool __has_new_expr = false; 29724: template 29724: static constexpr bool 29724: __has_new_expr<_Tp, __void_t<__new_expr_t<_Tp, _Args...>>, _Args...> 29724: = true; 29724: template 29724: static constexpr bool __can_construct 29724: = __has_construct<_Alloc, _Tp, _Args...> 29724: || __has_new_expr<_Tp, void, _Args...>; 29724: }; 29724: 29724: template 29724: using __alloc_rebind 29724: = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; 29724: # 143 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: struct allocator_traits : __allocator_traits_base 29724: { 29724: 29724: typedef _Alloc allocator_type; 29724: 29724: typedef typename _Alloc::value_type value_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: using pointer = __detected_or_t; 29724: 29724: private: 29724: 29724: template class _Func, typename _Tp, typename = void> 29724: struct _Ptr 29724: { 29724: using type = typename pointer_traits::template rebind<_Tp>; 29724: }; 29724: 29724: template class _Func, typename _Tp> 29724: struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> 29724: { 29724: using type = _Func<_Alloc>; 29724: }; 29724: 29724: 29724: template 29724: struct _Diff 29724: { using type = typename pointer_traits<_PtrT>::difference_type; }; 29724: 29724: template 29724: struct _Diff<_A2, _PtrT, __void_t> 29724: { using type = typename _A2::difference_type; }; 29724: 29724: 29724: template 29724: struct _Size : make_unsigned<_DiffT> { }; 29724: 29724: template 29724: struct _Size<_A2, _DiffT, __void_t> 29724: { using type = typename _A2::size_type; }; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using void_pointer = typename _Ptr<__v_pointer, void>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using difference_type = typename _Diff<_Alloc, pointer>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using size_type = typename _Size<_Alloc, difference_type>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_copy_assignment 29724: = __detected_or_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_move_assignment 29724: = __detected_or_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_swap 29724: = __detected_or_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using is_always_equal 29724: = typename __detected_or_t, __equal, _Alloc>::type; 29724: 29724: template 29724: using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; 29724: template 29724: using rebind_traits = allocator_traits>; 29724: 29724: private: 29724: template 29724: static constexpr auto 29724: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) 29724: -> decltype(__a.allocate(__n, __hint)) 29724: { return __a.allocate(__n, __hint); } 29724: 29724: template 29724: static constexpr pointer 29724: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) 29724: { return __a.allocate(__n); } 29724: 29724: 29724: template 29724: static constexpr auto 29724: _S_destroy(_Alloc2& __a, _Tp* __p, int) 29724: noexcept(noexcept(__a.destroy(__p))) 29724: -> decltype(__a.destroy(__p)) 29724: { __a.destroy(__p); } 29724: 29724: template 29724: static constexpr void 29724: _S_destroy(_Alloc2&, _Tp* __p, ...) 29724: noexcept(std::is_nothrow_destructible<_Tp>::value) 29724: { std::_Destroy(__p); } 29724: 29724: template 29724: static constexpr auto 29724: _S_max_size(_Alloc2& __a, int) 29724: -> decltype(__a.max_size()) 29724: { return __a.max_size(); } 29724: 29724: template 29724: static constexpr size_type 29724: _S_max_size(_Alloc2&, ...) 29724: { 29724: 29724: 29724: return __gnu_cxx::__numeric_traits::__max 29724: / sizeof(value_type); 29724: } 29724: 29724: template 29724: static constexpr auto 29724: _S_select(_Alloc2& __a, int) 29724: -> decltype(__a.select_on_container_copy_construction()) 29724: { return __a.select_on_container_copy_construction(); } 29724: 29724: template 29724: static constexpr _Alloc2 29724: _S_select(_Alloc2& __a, ...) 29724: { return __a; } 29724: 29724: public: 29724: # 333 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: [[__nodiscard__]] static pointer 29724: allocate(_Alloc& __a, size_type __n) 29724: { return __a.allocate(__n); } 29724: # 348 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: [[__nodiscard__]] static pointer 29724: allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) 29724: { return _S_allocate(__a, __n, __hint, 0); } 29724: # 360 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: static void 29724: deallocate(_Alloc& __a, pointer __p, size_type __n) 29724: { __a.deallocate(__p, __n); } 29724: # 375 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: static 29724: __enable_if_t<__can_construct<_Alloc, _Tp, _Args...>> 29724: construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 29724: noexcept(_S_nothrow_construct<_Tp, _Args...>()) 29724: { 29724: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 29724: __a.construct(__p, std::forward<_Args>(__args)...); 29724: else 29724: std::_Construct(__p, std::forward<_Args>(__args)...); 29724: } 29724: # 395 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: static void 29724: destroy(_Alloc& __a, _Tp* __p) 29724: noexcept(noexcept(_S_destroy(__a, __p, 0))) 29724: { _S_destroy(__a, __p, 0); } 29724: # 409 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: static size_type 29724: max_size(const _Alloc& __a) noexcept 29724: { return _S_max_size(__a, 0); } 29724: # 421 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: static _Alloc 29724: select_on_container_copy_construction(const _Alloc& __rhs) 29724: { return _S_select(__rhs, 0); } 29724: 29724: private: 29724: 29724: template 29724: static constexpr bool 29724: _S_nothrow_construct(_Alloc* __a = nullptr, _Tp* __p = nullptr) 29724: { 29724: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 29724: return noexcept(__a->construct(__p, std::declval<_Args>()...)); 29724: else 29724: return __is_nothrow_new_constructible<_Tp, _Args...>; 29724: } 29724: # 449 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: }; 29724: #pragma GCC diagnostic pop 29724: # 460 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: struct allocator_traits> 29724: { 29724: 29724: using allocator_type = allocator<_Tp>; 29724: 29724: 29724: using value_type = _Tp; 29724: 29724: 29724: using pointer = _Tp*; 29724: 29724: 29724: using const_pointer = const _Tp*; 29724: 29724: 29724: using void_pointer = void*; 29724: 29724: 29724: using const_void_pointer = const void*; 29724: 29724: 29724: using difference_type = std::ptrdiff_t; 29724: 29724: 29724: using size_type = std::size_t; 29724: 29724: 29724: using propagate_on_container_copy_assignment = false_type; 29724: 29724: 29724: using propagate_on_container_move_assignment = true_type; 29724: 29724: 29724: using propagate_on_container_swap = false_type; 29724: 29724: 29724: using is_always_equal = true_type; 29724: 29724: template 29724: using rebind_alloc = allocator<_Up>; 29724: 29724: template 29724: using rebind_traits = allocator_traits>; 29724: # 512 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: [[__nodiscard__,__gnu__::__always_inline__]] 29724: static pointer 29724: allocate(allocator_type& __a, size_type __n) 29724: { return __a.allocate(__n); } 29724: # 527 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: [[__nodiscard__,__gnu__::__always_inline__]] 29724: static pointer 29724: allocate(allocator_type& __a, size_type __n, 29724: [[maybe_unused]] const_void_pointer __hint) 29724: { 29724: 29724: return __a.allocate(__n, __hint); 29724: 29724: 29724: 29724: } 29724: # 547 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: [[__gnu__::__always_inline__]] 29724: static void 29724: deallocate(allocator_type& __a, pointer __p, size_type __n) 29724: { __a.deallocate(__p, __n); } 29724: # 563 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static void 29724: construct(allocator_type& __a __attribute__((__unused__)), 29724: _Up* __p, _Args&&... __args) 29724: 29724: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 29724: 29724: 29724: 29724: { 29724: 29724: __a.construct(__p, std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 590 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static void 29724: destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) 29724: noexcept(is_nothrow_destructible<_Up>::value) 29724: { 29724: 29724: __a.destroy(__p); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__gnu__::__always_inline__]] 29724: static size_type 29724: max_size(const allocator_type& __a __attribute__((__unused__))) noexcept 29724: { 29724: 29724: return __a.max_size(); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__gnu__::__always_inline__]] 29724: static allocator_type 29724: select_on_container_copy_construction(const allocator_type& __rhs) 29724: { return __rhs; } 29724: }; 29724: # 637 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template<> 29724: struct allocator_traits> 29724: { 29724: 29724: using allocator_type = allocator; 29724: 29724: 29724: using value_type = void; 29724: 29724: 29724: using pointer = void*; 29724: 29724: 29724: using const_pointer = const void*; 29724: 29724: 29724: using void_pointer = void*; 29724: 29724: 29724: using const_void_pointer = const void*; 29724: 29724: 29724: using difference_type = std::ptrdiff_t; 29724: 29724: 29724: using size_type = std::size_t; 29724: 29724: 29724: using propagate_on_container_copy_assignment = false_type; 29724: 29724: 29724: using propagate_on_container_move_assignment = true_type; 29724: 29724: 29724: using propagate_on_container_swap = false_type; 29724: 29724: 29724: using is_always_equal = true_type; 29724: 29724: template 29724: using rebind_alloc = allocator<_Up>; 29724: 29724: template 29724: using rebind_traits = allocator_traits>; 29724: 29724: 29724: static void* 29724: allocate(allocator_type&, size_type, const void* = nullptr) = delete; 29724: 29724: 29724: static void 29724: deallocate(allocator_type&, void*, size_type) = delete; 29724: # 701 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static void 29724: construct(allocator_type&, _Up* __p, _Args&&... __args) 29724: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 29724: { std::_Construct(__p, std::forward<_Args>(__args)...); } 29724: # 715 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static void 29724: destroy(allocator_type&, _Up* __p) 29724: noexcept(is_nothrow_destructible<_Up>::value) 29724: { std::_Destroy(__p); } 29724: 29724: 29724: static size_type 29724: max_size(const allocator_type&) = delete; 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__gnu__::__always_inline__]] 29724: static allocator_type 29724: select_on_container_copy_construction(const allocator_type& __rhs) 29724: { return __rhs; } 29724: }; 29724: # 753 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr inline void 29724: __alloc_on_copy(_Alloc& __one, const _Alloc& __two) 29724: { 29724: using __traits = allocator_traits<_Alloc>; 29724: using __pocca = 29724: typename __traits::propagate_on_container_copy_assignment::type; 29724: 29724: if constexpr (__pocca::value) 29724: __one = __two; 29724: 29724: 29724: 29724: } 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr _Alloc 29724: __alloc_on_copy(const _Alloc& __a) 29724: { 29724: typedef allocator_traits<_Alloc> __traits; 29724: return __traits::select_on_container_copy_construction(__a); 29724: } 29724: # 790 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr inline void 29724: __alloc_on_move(_Alloc& __one, _Alloc& __two) 29724: { 29724: using __traits = allocator_traits<_Alloc>; 29724: using __pocma 29724: = typename __traits::propagate_on_container_move_assignment::type; 29724: 29724: if constexpr (__pocma::value) 29724: __one = std::move(__two); 29724: 29724: 29724: 29724: } 29724: # 821 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr inline void 29724: __alloc_on_swap(_Alloc& __one, _Alloc& __two) 29724: { 29724: using __traits = allocator_traits<_Alloc>; 29724: using __pocs = typename __traits::propagate_on_container_swap::type; 29724: 29724: if constexpr (__pocs::value) 29724: { 29724: using std::swap; 29724: swap(__one, __two); 29724: } 29724: 29724: 29724: 29724: } 29724: 29724: template, 29724: typename = void> 29724: struct __is_alloc_insertable_impl 29724: : false_type 29724: { }; 29724: 29724: template 29724: struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, 29724: __void_t::construct( 29724: std::declval<_Alloc&>(), std::declval<_ValueT*>(), 29724: std::declval<_Tp>()))>> 29724: : true_type 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_copy_insertable 29724: : __is_alloc_insertable_impl<_Alloc, 29724: typename _Alloc::value_type const&>::type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct __is_copy_insertable> 29724: : is_copy_constructible<_Tp> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_move_insertable 29724: : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct __is_move_insertable> 29724: : is_move_constructible<_Tp> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct __is_allocator : false_type { }; 29724: 29724: template 29724: struct __is_allocator<_Alloc, 29724: __void_t().allocate(size_t{}))>> 29724: : true_type { }; 29724: 29724: template 29724: using _RequireAllocator 29724: = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; 29724: 29724: template 29724: using _RequireNotAllocator 29724: = typename enable_if::value, _Alloc>::type; 29724: # 918 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: struct __alloc_swap 29724: { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; 29724: 29724: template 29724: struct __alloc_swap<_Alloc, false> 29724: { 29724: static void 29724: _S_do_it(_Alloc& __one, _Alloc& __two) noexcept 29724: { 29724: 29724: if (__one != __two) 29724: swap(__one, __two); 29724: } 29724: }; 29724: 29724: 29724: template, 29724: is_nothrow_move_constructible>::value> 29724: struct __shrink_to_fit_aux 29724: { static bool _S_do_it(_Tp&) noexcept { return false; } }; 29724: 29724: template 29724: struct __shrink_to_fit_aux<_Tp, true> 29724: { 29724: 29724: static bool 29724: _S_do_it(_Tp& __c) noexcept 29724: { 29724: 29724: try 29724: { 29724: _Tp(__make_move_if_noexcept_iterator(__c.begin()), 29724: __make_move_if_noexcept_iterator(__c.end()), 29724: __c.get_allocator()).swap(__c); 29724: return true; 29724: } 29724: catch(...) 29724: { return false; } 29724: 29724: 29724: 29724: } 29724: }; 29724: # 971 "/usr/include/c++/14/bits/alloc_traits.h" 3 29724: template 29724: 29724: void 29724: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 29724: _Allocator& __alloc) 29724: { 29724: for (; __first != __last; ++__first) 29724: 29724: 29724: 29724: allocator_traits<_Allocator>::destroy(__alloc, 29724: std::__addressof(*__first)); 29724: 29724: } 29724: 29724: 29724: template 29724: __attribute__((__always_inline__)) 29724: inline void 29724: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 29724: allocator<_Tp>&) 29724: { 29724: std::_Destroy(__first, __last); 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 35 "/usr/include/c++/14/ext/alloc_traits.h" 2 3 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __alloc_traits 29724: 29724: : std::allocator_traits<_Alloc> 29724: 29724: { 29724: typedef _Alloc allocator_type; 29724: 29724: typedef std::allocator_traits<_Alloc> _Base_type; 29724: typedef typename _Base_type::value_type value_type; 29724: typedef typename _Base_type::pointer pointer; 29724: typedef typename _Base_type::const_pointer const_pointer; 29724: typedef typename _Base_type::size_type size_type; 29724: typedef typename _Base_type::difference_type difference_type; 29724: 29724: typedef value_type& reference; 29724: typedef const value_type& const_reference; 29724: using _Base_type::allocate; 29724: using _Base_type::deallocate; 29724: using _Base_type::construct; 29724: using _Base_type::destroy; 29724: using _Base_type::max_size; 29724: 29724: private: 29724: template 29724: using __is_custom_pointer 29724: = std::__and_, 29724: std::__not_>>; 29724: 29724: public: 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static constexpr 29724: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 29724: construct(_Alloc& __a, _Ptr __p, _Args&&... __args) 29724: noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), 29724: std::forward<_Args>(__args)...))) 29724: { 29724: _Base_type::construct(__a, std::__to_address(__p), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: static constexpr 29724: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 29724: destroy(_Alloc& __a, _Ptr __p) 29724: noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) 29724: { _Base_type::destroy(__a, std::__to_address(__p)); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) 29724: { return _Base_type::select_on_container_copy_construction(__a); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) 29724: { std::__alloc_on_swap(__a, __b); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr bool _S_propagate_on_copy_assign() 29724: { return _Base_type::propagate_on_container_copy_assignment::value; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr bool _S_propagate_on_move_assign() 29724: { return _Base_type::propagate_on_container_move_assignment::value; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr bool _S_propagate_on_swap() 29724: { return _Base_type::propagate_on_container_swap::value; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: static constexpr bool _S_always_equal() 29724: { return _Base_type::is_always_equal::value; } 29724: 29724: __attribute__((__always_inline__)) 29724: static constexpr bool _S_nothrow_move() 29724: { return _S_propagate_on_move_assign() || _S_always_equal(); } 29724: 29724: template 29724: struct rebind 29724: { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; 29724: # 180 "/usr/include/c++/14/ext/alloc_traits.h" 3 29724: }; 29724: 29724: 29724: } 29724: # 65 "/usr/include/c++/14/bits/stl_uninitialized.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 81 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: constexpr bool 29724: __check_constructible() 29724: { 29724: 29724: 29724: 29724: 29724: 29724: static_assert(is_constructible<_ValueType, _Tp>::value, 29724: "result type must be constructible from input type"); 29724: 29724: return true; 29724: } 29724: # 110 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: 29724: _ForwardIterator 29724: __do_uninit_copy(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result) 29724: { 29724: _ForwardIterator __cur = __result; 29724: try 29724: { 29724: for (; __first != __last; ++__first, (void)++__cur) 29724: std::_Construct(std::__addressof(*__cur), *__first); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: struct __uninitialized_copy 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_copy(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result) 29724: { return std::__do_uninit_copy(__first, __last, __result); } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_copy 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_copy(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result) 29724: { return std::copy(__first, __last, __result); } 29724: }; 29724: # 161 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_copy(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type 29724: _ValueType1; 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType2; 29724: 29724: 29724: 29724: 29724: const bool __can_memmove = __is_trivial(_ValueType1); 29724: 29724: 29724: 29724: 29724: using _From = decltype(*__first); 29724: 29724: const bool __assignable 29724: = __is_trivial(_ValueType2) && __is_assignable(_ValueType2&, _From) && std::__check_constructible<_ValueType2, _From>(); 29724: 29724: return std::__uninitialized_copy<__can_memmove && __assignable>:: 29724: __uninit_copy(__first, __last, __result); 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: __do_uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __cur != __last; ++__cur) 29724: std::_Construct(std::__addressof(*__cur), __x); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: struct __uninitialized_fill 29724: { 29724: template 29724: static void 29724: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x) 29724: { std::__do_uninit_fill(__first, __last, __x); } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_fill 29724: { 29724: template 29724: static void 29724: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x) 29724: { std::fill(__first, __last, __x); } 29724: }; 29724: # 239 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline void 29724: uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: 29724: 29724: const bool __can_fill 29724: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>(); 29724: 29724: std::__uninitialized_fill<__can_fill>:: 29724: __uninit_fill(__first, __last, __x); 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __do_uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __n > 0; --__n, (void) ++__cur) 29724: std::_Construct(std::__addressof(*__cur), __x); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: struct __uninitialized_fill_n 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_fill_n(_ForwardIterator __first, _Size __n, 29724: const _Tp& __x) 29724: { return std::__do_uninit_fill_n(__first, __n, __x); } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_fill_n 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_fill_n(_ForwardIterator __first, _Size __n, 29724: const _Tp& __x) 29724: { return std::fill_n(__first, __n, __x); } 29724: }; 29724: # 310 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: 29724: 29724: const bool __can_fill 29724: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>() 29724: 29724: 29724: 29724: && __is_integer<_Size>::__value; 29724: 29724: return __uninitialized_fill_n<__can_fill>:: 29724: __uninit_fill_n(__first, __n, __x); 29724: } 29724: # 340 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: 29724: _ForwardIterator 29724: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, _Allocator& __alloc) 29724: { 29724: _ForwardIterator __cur = __result; 29724: try 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29724: for (; __first != __last; ++__first, (void)++__cur) 29724: __traits::construct(__alloc, std::__addressof(*__cur), *__first); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __cur, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, allocator<_Tp>&) 29724: { 29724: 29724: 29724: 29724: 29724: return std::uninitialized_copy(__first, __last, __result); 29724: } 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_move_a(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, _Allocator& __alloc) 29724: { 29724: return std::__uninitialized_copy_a(std::make_move_iterator(__first), 29724: std::make_move_iterator(__last), 29724: __result, __alloc); 29724: } 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_move_if_noexcept_a(_InputIterator __first, 29724: _InputIterator __last, 29724: _ForwardIterator __result, 29724: _Allocator& __alloc) 29724: { 29724: return std::__uninitialized_copy_a 29724: (std::__make_move_if_noexcept_iterator(__first), 29724: std::__make_move_if_noexcept_iterator(__last), __result, __alloc); 29724: } 29724: 29724: template 29724: 29724: void 29724: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x, _Allocator& __alloc) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29724: for (; __cur != __last; ++__cur) 29724: __traits::construct(__alloc, std::__addressof(*__cur), __x); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline void 29724: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __x, allocator<_Tp2>&) 29724: { 29724: 29724: 29724: 29724: 29724: std::uninitialized_fill(__first, __last, __x); 29724: } 29724: 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 29724: const _Tp& __x, _Allocator& __alloc) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29724: for (; __n > 0; --__n, (void) ++__cur) 29724: __traits::construct(__alloc, std::__addressof(*__cur), __x); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 29724: const _Tp& __x, allocator<_Tp2>&) 29724: { 29724: 29724: 29724: 29724: 29724: return std::uninitialized_fill_n(__first, __n, __x); 29724: } 29724: # 485 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: __uninitialized_copy_move(_InputIterator1 __first1, 29724: _InputIterator1 __last1, 29724: _InputIterator2 __first2, 29724: _InputIterator2 __last2, 29724: _ForwardIterator __result, 29724: _Allocator& __alloc) 29724: { 29724: _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, 29724: __result, 29724: __alloc); 29724: try 29724: { 29724: return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __mid, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline _ForwardIterator 29724: __uninitialized_move_copy(_InputIterator1 __first1, 29724: _InputIterator1 __last1, 29724: _InputIterator2 __first2, 29724: _InputIterator2 __last2, 29724: _ForwardIterator __result, 29724: _Allocator& __alloc) 29724: { 29724: _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, 29724: __result, 29724: __alloc); 29724: try 29724: { 29724: return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __mid, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline _ForwardIterator 29724: __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, 29724: const _Tp& __x, _InputIterator __first, 29724: _InputIterator __last, _Allocator& __alloc) 29724: { 29724: std::__uninitialized_fill_a(__result, __mid, __x, __alloc); 29724: try 29724: { 29724: return std::__uninitialized_move_a(__first, __last, __mid, __alloc); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __mid, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, 29724: _ForwardIterator __first2, 29724: _ForwardIterator __last2, const _Tp& __x, 29724: _Allocator& __alloc) 29724: { 29724: _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, 29724: __first2, 29724: __alloc); 29724: try 29724: { 29724: std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first2, __mid2, __alloc); 29724: throw; 29724: } 29724: } 29724: # 592 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: struct __uninitialized_default_1 29724: { 29724: template 29724: static void 29724: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __cur != __last; ++__cur) 29724: std::_Construct(std::__addressof(*__cur)); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_default_1 29724: { 29724: template 29724: static void 29724: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: if (__first == __last) 29724: return; 29724: 29724: typename iterator_traits<_ForwardIterator>::value_type* __val 29724: = std::__addressof(*__first); 29724: std::_Construct(__val); 29724: if (++__first != __last) 29724: std::fill(__first, __last, *__val); 29724: } 29724: }; 29724: 29724: template 29724: struct __uninitialized_default_n_1 29724: { 29724: template 29724: 29724: static _ForwardIterator 29724: __uninit_default_n(_ForwardIterator __first, _Size __n) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __n > 0; --__n, (void) ++__cur) 29724: std::_Construct(std::__addressof(*__cur)); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_default_n_1 29724: { 29724: template 29724: 29724: static _ForwardIterator 29724: __uninit_default_n(_ForwardIterator __first, _Size __n) 29724: { 29724: if (__n > 0) 29724: { 29724: typename iterator_traits<_ForwardIterator>::value_type* __val 29724: = std::__addressof(*__first); 29724: std::_Construct(__val); 29724: ++__first; 29724: __first = std::fill_n(__first, __n - 1, *__val); 29724: } 29724: return __first; 29724: } 29724: }; 29724: 29724: 29724: 29724: template 29724: inline void 29724: __uninitialized_default(_ForwardIterator __first, 29724: _ForwardIterator __last) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: const bool __assignable = is_copy_assignable<_ValueType>::value; 29724: 29724: std::__uninitialized_default_1<__is_trivial(_ValueType) 29724: && __assignable>:: 29724: __uninit_default(__first, __last); 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_default_n(_ForwardIterator __first, _Size __n) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: constexpr bool __can_fill 29724: = __and_, is_copy_assignable<_ValueType>>::value; 29724: 29724: return __uninitialized_default_n_1<__is_trivial(_ValueType) 29724: && __can_fill>:: 29724: __uninit_default_n(__first, __n); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __uninitialized_default_a(_ForwardIterator __first, 29724: _ForwardIterator __last, 29724: _Allocator& __alloc) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29724: for (; __cur != __last; ++__cur) 29724: __traits::construct(__alloc, std::__addressof(*__cur)); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: inline void 29724: __uninitialized_default_a(_ForwardIterator __first, 29724: _ForwardIterator __last, 29724: allocator<_Tp>&) 29724: { std::__uninitialized_default(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _ForwardIterator 29724: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 29724: _Allocator& __alloc) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29724: for (; __n > 0; --__n, (void) ++__cur) 29724: __traits::construct(__alloc, std::__addressof(*__cur)); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur, __alloc); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 29724: allocator<_Tp>&) 29724: { return std::__uninitialized_default_n(__first, __n); } 29724: 29724: 29724: template 29724: struct __uninitialized_default_novalue_1 29724: { 29724: template 29724: static void 29724: __uninit_default_novalue(_ForwardIterator __first, 29724: _ForwardIterator __last) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __cur != __last; ++__cur) 29724: std::_Construct_novalue(std::__addressof(*__cur)); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_default_novalue_1 29724: { 29724: template 29724: static void 29724: __uninit_default_novalue(_ForwardIterator, _ForwardIterator) 29724: { 29724: } 29724: }; 29724: 29724: template 29724: struct __uninitialized_default_novalue_n_1 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 29724: { 29724: _ForwardIterator __cur = __first; 29724: try 29724: { 29724: for (; __n > 0; --__n, (void) ++__cur) 29724: std::_Construct_novalue(std::__addressof(*__cur)); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_default_novalue_n_1 29724: { 29724: template 29724: static _ForwardIterator 29724: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 29724: { return std::next(__first, __n); } 29724: }; 29724: 29724: 29724: 29724: template 29724: inline void 29724: __uninitialized_default_novalue(_ForwardIterator __first, 29724: _ForwardIterator __last) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: std::__uninitialized_default_novalue_1< 29724: is_trivially_default_constructible<_ValueType>::value>:: 29724: __uninit_default_novalue(__first, __last); 29724: } 29724: 29724: 29724: 29724: template 29724: inline _ForwardIterator 29724: __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: 29724: return __uninitialized_default_novalue_n_1< 29724: is_trivially_default_constructible<_ValueType>::value>:: 29724: __uninit_default_novalue_n(__first, __n); 29724: } 29724: 29724: template 29724: _ForwardIterator 29724: __uninitialized_copy_n(_InputIterator __first, _Size __n, 29724: _ForwardIterator __result, input_iterator_tag) 29724: { 29724: _ForwardIterator __cur = __result; 29724: try 29724: { 29724: for (; __n > 0; --__n, (void) ++__first, ++__cur) 29724: std::_Construct(std::__addressof(*__cur), *__first); 29724: return __cur; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: inline _ForwardIterator 29724: __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, 29724: _ForwardIterator __result, 29724: random_access_iterator_tag) 29724: { return std::uninitialized_copy(__first, __first + __n, __result); } 29724: 29724: template 29724: pair<_InputIterator, _ForwardIterator> 29724: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 29724: _ForwardIterator __result, input_iterator_tag) 29724: { 29724: _ForwardIterator __cur = __result; 29724: try 29724: { 29724: for (; __n > 0; --__n, (void) ++__first, ++__cur) 29724: std::_Construct(std::__addressof(*__cur), *__first); 29724: return {__first, __cur}; 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__result, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: inline pair<_RandomAccessIterator, _ForwardIterator> 29724: __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, 29724: _ForwardIterator __result, 29724: random_access_iterator_tag) 29724: { 29724: auto __second_res = uninitialized_copy(__first, __first + __n, __result); 29724: auto __first_res = std::next(__first, __n); 29724: return {__first_res, __second_res}; 29724: } 29724: # 946 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_copy_n(_InputIterator __first, _Size __n, 29724: _ForwardIterator __result) 29724: { return std::__uninitialized_copy_n(__first, __n, __result, 29724: std::__iterator_category(__first)); } 29724: 29724: 29724: template 29724: inline pair<_InputIterator, _ForwardIterator> 29724: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 29724: _ForwardIterator __result) 29724: { 29724: return 29724: std::__uninitialized_copy_n_pair(__first, __n, __result, 29724: std::__iterator_category(__first)); 29724: } 29724: # 973 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline void 29724: uninitialized_default_construct(_ForwardIterator __first, 29724: _ForwardIterator __last) 29724: { 29724: __uninitialized_default_novalue(__first, __last); 29724: } 29724: # 988 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_default_construct_n(_ForwardIterator __first, _Size __count) 29724: { 29724: return __uninitialized_default_novalue_n(__first, __count); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: uninitialized_value_construct(_ForwardIterator __first, 29724: _ForwardIterator __last) 29724: { 29724: return __uninitialized_default(__first, __last); 29724: } 29724: # 1016 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_value_construct_n(_ForwardIterator __first, _Size __count) 29724: { 29724: return __uninitialized_default_n(__first, __count); 29724: } 29724: # 1031 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline _ForwardIterator 29724: uninitialized_move(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result) 29724: { 29724: return std::uninitialized_copy 29724: (std::make_move_iterator(__first), 29724: std::make_move_iterator(__last), __result); 29724: } 29724: # 1049 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: template 29724: inline pair<_InputIterator, _ForwardIterator> 29724: uninitialized_move_n(_InputIterator __first, _Size __count, 29724: _ForwardIterator __result) 29724: { 29724: auto __res = std::__uninitialized_copy_n_pair 29724: (std::make_move_iterator(__first), 29724: __count, __result); 29724: return {__res.first.base(), __res.second}; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline void 29724: __relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig, 29724: _Allocator& __alloc) 29724: noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, 29724: __dest, std::move(*__orig))) 29724: && noexcept(std::allocator_traits<_Allocator>::destroy( 29724: __alloc, std::__addressof(*__orig)))) 29724: { 29724: typedef std::allocator_traits<_Allocator> __traits; 29724: __traits::construct(__alloc, __dest, std::move(*__orig)); 29724: __traits::destroy(__alloc, std::__addressof(*__orig)); 29724: } 29724: 29724: 29724: 29724: template 29724: struct __is_bitwise_relocatable 29724: : is_trivial<_Tp> { }; 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __relocate_a_1(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, _Allocator& __alloc) 29724: noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), 29724: std::addressof(*__first), 29724: __alloc))) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType2; 29724: static_assert(std::is_same<_ValueType, _ValueType2>::value, 29724: "relocation is only possible for values of the same type"); 29724: _ForwardIterator __cur = __result; 29724: for (; __first != __last; ++__first, (void)++__cur) 29724: std::__relocate_object_a(std::__addressof(*__cur), 29724: std::__addressof(*__first), __alloc); 29724: return __cur; 29724: } 29724: 29724: 29724: template 29724: 29724: inline __enable_if_t::value, _Tp*> 29724: __relocate_a_1(_Tp* __first, _Tp* __last, 29724: _Tp* __result, 29724: [[__maybe_unused__]] allocator<_Up>& __alloc) noexcept 29724: { 29724: ptrdiff_t __count = __last - __first; 29724: if (__count > 0) 29724: { 29724: # 1129 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29724: __builtin_memcpy(__result, __first, __count * sizeof(_Tp)); 29724: } 29724: return __result + __count; 29724: } 29724: 29724: 29724: template 29724: 29724: inline _ForwardIterator 29724: __relocate_a(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, _Allocator& __alloc) 29724: noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), 29724: std::__niter_base(__last), 29724: std::__niter_base(__result), __alloc))) 29724: { 29724: return std::__relocate_a_1(std::__niter_base(__first), 29724: std::__niter_base(__last), 29724: std::__niter_base(__result), __alloc); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_deque.h" 1 3 29724: # 63 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: # 1 "/usr/include/c++/14/initializer_list" 1 3 29724: # 33 "/usr/include/c++/14/initializer_list" 3 29724: 29724: # 34 "/usr/include/c++/14/initializer_list" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: template 29724: class initializer_list 29724: { 29724: public: 29724: typedef _E value_type; 29724: typedef const _E& reference; 29724: typedef const _E& const_reference; 29724: typedef size_t size_type; 29724: typedef const _E* iterator; 29724: typedef const _E* const_iterator; 29724: 29724: private: 29724: iterator _M_array; 29724: size_type _M_len; 29724: 29724: 29724: constexpr initializer_list(const_iterator __a, size_type __l) 29724: : _M_array(__a), _M_len(__l) { } 29724: 29724: public: 29724: constexpr initializer_list() noexcept 29724: : _M_array(0), _M_len(0) { } 29724: 29724: 29724: constexpr size_type 29724: size() const noexcept { return _M_len; } 29724: 29724: 29724: constexpr const_iterator 29724: begin() const noexcept { return _M_array; } 29724: 29724: 29724: constexpr const_iterator 29724: end() const noexcept { return begin() + size(); } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr const _Tp* 29724: begin(initializer_list<_Tp> __ils) noexcept 29724: { return __ils.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr const _Tp* 29724: end(initializer_list<_Tp> __ils) noexcept 29724: { return __ils.end(); } 29724: } 29724: # 64 "/usr/include/c++/14/bits/stl_deque.h" 2 3 29724: # 72 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: # 95 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: constexpr inline size_t 29724: __deque_buf_size(size_t __size) 29724: { return (__size < 512 29724: ? size_t(512 / __size) : size_t(1)); } 29724: # 112 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: struct _Deque_iterator 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: private: 29724: template 29724: using __iter = _Deque_iterator<_Tp, _CvTp&, __ptr_rebind<_Ptr, _CvTp>>; 29724: public: 29724: typedef __iter<_Tp> iterator; 29724: typedef __iter const_iterator; 29724: typedef __ptr_rebind<_Ptr, _Tp> _Elt_pointer; 29724: typedef __ptr_rebind<_Ptr, _Elt_pointer> _Map_pointer; 29724: 29724: 29724: static size_t _S_buffer_size() noexcept 29724: { return __deque_buf_size(sizeof(_Tp)); } 29724: 29724: typedef std::random_access_iterator_tag iterator_category; 29724: typedef _Tp value_type; 29724: typedef _Ptr pointer; 29724: typedef _Ref reference; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Deque_iterator _Self; 29724: 29724: _Elt_pointer _M_cur; 29724: _Elt_pointer _M_first; 29724: _Elt_pointer _M_last; 29724: _Map_pointer _M_node; 29724: 29724: _Deque_iterator(_Elt_pointer __x, _Map_pointer __y) noexcept 29724: : _M_cur(__x), _M_first(*__y), 29724: _M_last(*__y + _S_buffer_size()), _M_node(__y) { } 29724: 29724: _Deque_iterator() noexcept 29724: : _M_cur(), _M_first(), _M_last(), _M_node() { } 29724: # 161 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template, 29724: is_same<_Iter, iterator>>> 29724: _Deque_iterator(const _Iter& __x) noexcept 29724: : _M_cur(__x._M_cur), _M_first(__x._M_first), 29724: _M_last(__x._M_last), _M_node(__x._M_node) { } 29724: 29724: _Deque_iterator(const _Deque_iterator& __x) noexcept 29724: : _M_cur(__x._M_cur), _M_first(__x._M_first), 29724: _M_last(__x._M_last), _M_node(__x._M_node) { } 29724: 29724: _Deque_iterator& operator=(const _Deque_iterator&) = default; 29724: 29724: 29724: iterator 29724: _M_const_cast() const noexcept 29724: { return iterator(_M_cur, _M_node); } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator*() const noexcept 29724: { return *_M_cur; } 29724: 29724: [[__nodiscard__]] 29724: pointer 29724: operator->() const noexcept 29724: { return _M_cur; } 29724: 29724: _Self& 29724: operator++() noexcept 29724: { 29724: ++_M_cur; 29724: if (_M_cur == _M_last) 29724: { 29724: _M_set_node(_M_node + 1); 29724: _M_cur = _M_first; 29724: } 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator++(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: ++*this; 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator--() noexcept 29724: { 29724: if (_M_cur == _M_first) 29724: { 29724: _M_set_node(_M_node - 1); 29724: _M_cur = _M_last; 29724: } 29724: --_M_cur; 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator--(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: --*this; 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator+=(difference_type __n) noexcept 29724: { 29724: const difference_type __offset = __n + (_M_cur - _M_first); 29724: if (__offset >= 0 && __offset < difference_type(_S_buffer_size())) 29724: _M_cur += __n; 29724: else 29724: { 29724: const difference_type __node_offset = 29724: __offset > 0 ? __offset / difference_type(_S_buffer_size()) 29724: : -difference_type((-__offset - 1) 29724: / _S_buffer_size()) - 1; 29724: _M_set_node(_M_node + __node_offset); 29724: _M_cur = _M_first + (__offset - __node_offset 29724: * difference_type(_S_buffer_size())); 29724: } 29724: return *this; 29724: } 29724: 29724: _Self& 29724: operator-=(difference_type __n) noexcept 29724: { return *this += -__n; } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator[](difference_type __n) const noexcept 29724: { return *(*this + __n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: _M_set_node(_Map_pointer __new_node) noexcept 29724: { 29724: _M_node = __new_node; 29724: _M_first = *__new_node; 29724: _M_last = _M_first + difference_type(_S_buffer_size()); 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_cur == __y._M_cur; } 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { return __x._M_cur == __y._M_cur; } 29724: # 296 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const _Self& __x, const _Self& __y) noexcept 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { return !(__x == __y); } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<(const _Self& __x, const _Self& __y) noexcept 29724: { 29724: return (__x._M_node == __y._M_node) 29724: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { 29724: return (__x._M_node == __y._M_node) 29724: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>(const _Self& __x, const _Self& __y) noexcept 29724: { return __y < __x; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { return __y < __x; } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<=(const _Self& __x, const _Self& __y) noexcept 29724: { return !(__y < __x); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<=(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { return !(__y < __x); } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>=(const _Self& __x, const _Self& __y) noexcept 29724: { return !(__x < __y); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>=(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { return !(__x < __y); } 29724: 29724: 29724: [[__nodiscard__]] 29724: friend difference_type 29724: operator-(const _Self& __x, const _Self& __y) noexcept 29724: { 29724: return difference_type(_S_buffer_size()) 29724: * (__x._M_node - __y._M_node - bool(__x._M_node)) 29724: + (__x._M_cur - __x._M_first) 29724: + (__y._M_last - __y._M_cur); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: friend difference_type 29724: operator-(const _Self& __x, 29724: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29724: noexcept 29724: { 29724: return difference_type(_S_buffer_size()) 29724: * (__x._M_node - __y._M_node - bool(__x._M_node)) 29724: + (__x._M_cur - __x._M_first) 29724: + (__y._M_last - __y._M_cur); 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend _Self 29724: operator+(const _Self& __x, difference_type __n) noexcept 29724: { 29724: _Self __tmp = __x; 29724: __tmp += __n; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend _Self 29724: operator-(const _Self& __x, difference_type __n) noexcept 29724: { 29724: _Self __tmp = __x; 29724: __tmp -= __n; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend _Self 29724: operator+(difference_type __n, const _Self& __x) noexcept 29724: { return __x + __n; } 29724: }; 29724: # 429 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: class _Deque_base 29724: { 29724: protected: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Tp>::other _Tp_alloc_type; 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 29724: 29724: 29724: 29724: 29724: 29724: typedef typename _Alloc_traits::pointer _Ptr; 29724: typedef typename _Alloc_traits::const_pointer _Ptr_const; 29724: 29724: 29724: typedef typename _Alloc_traits::template rebind<_Ptr>::other 29724: _Map_alloc_type; 29724: typedef __gnu_cxx::__alloc_traits<_Map_alloc_type> _Map_alloc_traits; 29724: 29724: typedef _Alloc allocator_type; 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_get_Tp_allocator()); } 29724: 29724: typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator; 29724: typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator; 29724: 29724: _Deque_base() 29724: : _M_impl() 29724: { _M_initialize_map(0); } 29724: 29724: _Deque_base(size_t __num_elements) 29724: : _M_impl() 29724: { _M_initialize_map(__num_elements); } 29724: 29724: _Deque_base(const allocator_type& __a, size_t __num_elements) 29724: : _M_impl(__a) 29724: { _M_initialize_map(__num_elements); } 29724: 29724: _Deque_base(const allocator_type& __a) 29724: : _M_impl(__a) 29724: { } 29724: 29724: 29724: _Deque_base(_Deque_base&& __x) 29724: : _M_impl(std::move(__x._M_get_Tp_allocator())) 29724: { 29724: _M_initialize_map(0); 29724: if (__x._M_impl._M_map) 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: } 29724: 29724: _Deque_base(_Deque_base&& __x, const allocator_type& __a) 29724: : _M_impl(std::move(__x._M_impl), _Tp_alloc_type(__a)) 29724: { __x._M_initialize_map(0); } 29724: 29724: _Deque_base(_Deque_base&& __x, const allocator_type& __a, size_t __n) 29724: : _M_impl(__a) 29724: { 29724: if (__x.get_allocator() == __a) 29724: { 29724: if (__x._M_impl._M_map) 29724: { 29724: _M_initialize_map(0); 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: } 29724: } 29724: else 29724: { 29724: _M_initialize_map(__n); 29724: } 29724: } 29724: 29724: 29724: ~_Deque_base() noexcept; 29724: 29724: typedef typename iterator::_Map_pointer _Map_pointer; 29724: 29724: struct _Deque_impl_data 29724: { 29724: _Map_pointer _M_map; 29724: size_t _M_map_size; 29724: iterator _M_start; 29724: iterator _M_finish; 29724: 29724: _Deque_impl_data() noexcept 29724: : _M_map(), _M_map_size(), _M_start(), _M_finish() 29724: { } 29724: 29724: 29724: _Deque_impl_data(const _Deque_impl_data&) = default; 29724: _Deque_impl_data& 29724: operator=(const _Deque_impl_data&) = default; 29724: 29724: _Deque_impl_data(_Deque_impl_data&& __x) noexcept 29724: : _Deque_impl_data(__x) 29724: { __x = _Deque_impl_data(); } 29724: 29724: 29724: void 29724: _M_swap_data(_Deque_impl_data& __x) noexcept 29724: { 29724: 29724: 29724: std::swap(*this, __x); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: struct _Deque_impl 29724: : public _Tp_alloc_type, public _Deque_impl_data 29724: { 29724: _Deque_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 29724: 29724: : _Tp_alloc_type() 29724: { } 29724: 29724: _Deque_impl(const _Tp_alloc_type& __a) noexcept 29724: : _Tp_alloc_type(__a) 29724: { } 29724: 29724: 29724: _Deque_impl(_Deque_impl&&) = default; 29724: 29724: _Deque_impl(_Tp_alloc_type&& __a) noexcept 29724: : _Tp_alloc_type(std::move(__a)) 29724: { } 29724: 29724: _Deque_impl(_Deque_impl&& __d, _Tp_alloc_type&& __a) 29724: : _Tp_alloc_type(std::move(__a)), _Deque_impl_data(std::move(__d)) 29724: { } 29724: 29724: }; 29724: 29724: _Tp_alloc_type& 29724: _M_get_Tp_allocator() noexcept 29724: { return this->_M_impl; } 29724: 29724: const _Tp_alloc_type& 29724: _M_get_Tp_allocator() const noexcept 29724: { return this->_M_impl; } 29724: 29724: _Map_alloc_type 29724: _M_get_map_allocator() const noexcept 29724: { return _Map_alloc_type(_M_get_Tp_allocator()); } 29724: 29724: _Ptr 29724: _M_allocate_node() 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 29724: return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp))); 29724: } 29724: 29724: void 29724: _M_deallocate_node(_Ptr __p) noexcept 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 29724: _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp))); 29724: } 29724: 29724: _Map_pointer 29724: _M_allocate_map(size_t __n) 29724: { 29724: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 29724: return _Map_alloc_traits::allocate(__map_alloc, __n); 29724: } 29724: 29724: void 29724: _M_deallocate_map(_Map_pointer __p, size_t __n) noexcept 29724: { 29724: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 29724: _Map_alloc_traits::deallocate(__map_alloc, __p, __n); 29724: } 29724: 29724: void _M_initialize_map(size_t); 29724: void _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish); 29724: void _M_destroy_nodes(_Map_pointer __nstart, 29724: _Map_pointer __nfinish) noexcept; 29724: enum { _S_initial_map_size = 8 }; 29724: 29724: _Deque_impl _M_impl; 29724: }; 29724: 29724: template 29724: _Deque_base<_Tp, _Alloc>:: 29724: ~_Deque_base() noexcept 29724: { 29724: if (this->_M_impl._M_map) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_start._M_node, 29724: this->_M_impl._M_finish._M_node + 1); 29724: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29724: } 29724: } 29724: # 636 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: void 29724: _Deque_base<_Tp, _Alloc>:: 29724: _M_initialize_map(size_t __num_elements) 29724: { 29724: const size_t __num_nodes = (__num_elements / __deque_buf_size(sizeof(_Tp)) 29724: + 1); 29724: 29724: this->_M_impl._M_map_size = std::max((size_t) _S_initial_map_size, 29724: size_t(__num_nodes + 2)); 29724: this->_M_impl._M_map = _M_allocate_map(this->_M_impl._M_map_size); 29724: 29724: 29724: 29724: 29724: 29724: 29724: _Map_pointer __nstart = (this->_M_impl._M_map 29724: + (this->_M_impl._M_map_size - __num_nodes) / 2); 29724: _Map_pointer __nfinish = __nstart + __num_nodes; 29724: 29724: try 29724: { _M_create_nodes(__nstart, __nfinish); } 29724: catch(...) 29724: { 29724: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29724: this->_M_impl._M_map = _Map_pointer(); 29724: this->_M_impl._M_map_size = 0; 29724: throw; 29724: } 29724: 29724: this->_M_impl._M_start._M_set_node(__nstart); 29724: this->_M_impl._M_finish._M_set_node(__nfinish - 1); 29724: this->_M_impl._M_start._M_cur = _M_impl._M_start._M_first; 29724: this->_M_impl._M_finish._M_cur = (this->_M_impl._M_finish._M_first 29724: + __num_elements 29724: % __deque_buf_size(sizeof(_Tp))); 29724: } 29724: 29724: template 29724: void 29724: _Deque_base<_Tp, _Alloc>:: 29724: _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) 29724: { 29724: _Map_pointer __cur; 29724: try 29724: { 29724: for (__cur = __nstart; __cur < __nfinish; ++__cur) 29724: *__cur = this->_M_allocate_node(); 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(__nstart, __cur); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: _Deque_base<_Tp, _Alloc>:: 29724: _M_destroy_nodes(_Map_pointer __nstart, 29724: _Map_pointer __nfinish) noexcept 29724: { 29724: for (_Map_pointer __n = __nstart; __n < __nfinish; ++__n) 29724: _M_deallocate_node(*__n); 29724: } 29724: # 787 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template > 29724: class deque : protected _Deque_base<_Tp, _Alloc> 29724: { 29724: # 800 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: static_assert(is_same::type, _Tp>::value, 29724: "std::deque must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _Deque_base<_Tp, _Alloc> _Base; 29724: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29724: typedef typename _Base::_Alloc_traits _Alloc_traits; 29724: typedef typename _Base::_Map_pointer _Map_pointer; 29724: 29724: public: 29724: typedef _Tp value_type; 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: typedef typename _Base::iterator iterator; 29724: typedef typename _Base::const_iterator const_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Alloc allocator_type; 29724: 29724: private: 29724: static size_t _S_buffer_size() noexcept 29724: { return __deque_buf_size(sizeof(_Tp)); } 29724: 29724: 29724: using _Base::_M_initialize_map; 29724: using _Base::_M_create_nodes; 29724: using _Base::_M_destroy_nodes; 29724: using _Base::_M_allocate_node; 29724: using _Base::_M_deallocate_node; 29724: using _Base::_M_allocate_map; 29724: using _Base::_M_deallocate_map; 29724: using _Base::_M_get_Tp_allocator; 29724: 29724: 29724: 29724: 29724: 29724: using _Base::_M_impl; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: deque() = default; 29724: # 864 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: explicit 29724: deque(const allocator_type& __a) 29724: : _Base(__a, 0) { } 29724: # 877 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: explicit 29724: deque(size_type __n, const allocator_type& __a = allocator_type()) 29724: : _Base(__a, _S_check_init_len(__n, __a)) 29724: { _M_default_initialize(); } 29724: # 890 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque(size_type __n, const value_type& __value, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a, _S_check_init_len(__n, __a)) 29724: { _M_fill_initialize(__value); } 29724: # 917 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque(const deque& __x) 29724: : _Base(_Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator()), 29724: __x.size()) 29724: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); } 29724: # 933 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque(deque&&) = default; 29724: 29724: 29724: deque(const deque& __x, const __type_identity_t& __a) 29724: : _Base(__a, __x.size()) 29724: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); } 29724: 29724: 29724: deque(deque&& __x, const __type_identity_t& __a) 29724: : deque(std::move(__x), __a, typename _Alloc_traits::is_always_equal{}) 29724: { } 29724: 29724: private: 29724: deque(deque&& __x, const allocator_type& __a, true_type) 29724: : _Base(std::move(__x), __a) 29724: { } 29724: 29724: deque(deque&& __x, const allocator_type& __a, false_type) 29724: : _Base(std::move(__x), __a, __x.size()) 29724: { 29724: if (__x.get_allocator() != __a && !__x.empty()) 29724: { 29724: std::__uninitialized_move_a(__x.begin(), __x.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); 29724: __x.clear(); 29724: } 29724: } 29724: 29724: public: 29724: # 976 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque(initializer_list __l, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_range_initialize(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: } 29724: # 1001 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template> 29724: deque(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_range_initialize(__first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: # 1027 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: ~deque() 29724: { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } 29724: # 1039 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque& 29724: operator=(const deque& __x); 29724: # 1051 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque& 29724: operator=(deque&& __x) noexcept(_Alloc_traits::_S_always_equal()) 29724: { 29724: using __always_equal = typename _Alloc_traits::is_always_equal; 29724: _M_move_assign1(std::move(__x), __always_equal{}); 29724: return *this; 29724: } 29724: # 1070 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: deque& 29724: operator=(initializer_list __l) 29724: { 29724: _M_assign_aux(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: return *this; 29724: } 29724: # 1089 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: assign(size_type __n, const value_type& __val) 29724: { _M_fill_assign(__n, __val); } 29724: # 1106 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template> 29724: void 29724: assign(_InputIterator __first, _InputIterator __last) 29724: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29724: # 1133 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: assign(initializer_list __l) 29724: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _Base::get_allocator(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: begin() noexcept 29724: { return this->_M_impl._M_start; } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: begin() const noexcept 29724: { return this->_M_impl._M_start; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: end() noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: end() const noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cbegin() const noexcept 29724: { return this->_M_impl._M_start; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cend() const noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: size() const noexcept 29724: { return this->_M_impl._M_finish - this->_M_impl._M_start; } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: max_size() const noexcept 29724: { return _S_max_size(_M_get_Tp_allocator()); } 29724: # 1287 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: resize(size_type __new_size) 29724: { 29724: const size_type __len = size(); 29724: if (__new_size > __len) 29724: _M_default_append(__new_size - __len); 29724: else if (__new_size < __len) 29724: _M_erase_at_end(this->_M_impl._M_start 29724: + difference_type(__new_size)); 29724: } 29724: # 1309 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: resize(size_type __new_size, const value_type& __x) 29724: # 1326 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: { 29724: const size_type __len = size(); 29724: if (__new_size > __len) 29724: _M_fill_insert(this->_M_impl._M_finish, __new_size - __len, __x); 29724: else if (__new_size < __len) 29724: _M_erase_at_end(this->_M_impl._M_start 29724: + difference_type(__new_size)); 29724: } 29724: 29724: 29724: 29724: void 29724: shrink_to_fit() noexcept 29724: { _M_shrink_to_fit(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return this->_M_impl._M_finish == this->_M_impl._M_start; } 29724: # 1362 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: operator[](size_type __n) noexcept 29724: { 29724: ; 29724: return this->_M_impl._M_start[difference_type(__n)]; 29724: } 29724: # 1381 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: [[__nodiscard__]] 29724: const_reference 29724: operator[](size_type __n) const noexcept 29724: { 29724: ; 29724: return this->_M_impl._M_start[difference_type(__n)]; 29724: } 29724: 29724: protected: 29724: 29724: void 29724: _M_range_check(size_type __n) const 29724: { 29724: if (__n >= this->size()) 29724: __throw_out_of_range_fmt(("deque::_M_range_check: __n " "(which is %zu)>= this->size() " "(which is %zu)") 29724: 29724: , 29724: __n, this->size()); 29724: } 29724: 29724: public: 29724: # 1413 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: reference 29724: at(size_type __n) 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: # 1431 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: const_reference 29724: at(size_type __n) const 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: front() noexcept 29724: { 29724: ; 29724: return *begin(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: front() const noexcept 29724: { 29724: ; 29724: return *begin(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: back() noexcept 29724: { 29724: ; 29724: iterator __tmp = end(); 29724: --__tmp; 29724: return *__tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: back() const noexcept 29724: { 29724: ; 29724: const_iterator __tmp = end(); 29724: --__tmp; 29724: return *__tmp; 29724: } 29724: # 1500 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: push_front(const value_type& __x) 29724: { 29724: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 29724: { 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_start._M_cur - 1, 29724: __x); 29724: --this->_M_impl._M_start._M_cur; 29724: } 29724: else 29724: _M_push_front_aux(__x); 29724: } 29724: 29724: 29724: void 29724: push_front(value_type&& __x) 29724: { emplace_front(std::move(__x)); } 29724: 29724: template 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_front(_Args&&... __args); 29724: # 1537 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: push_back(const value_type& __x) 29724: { 29724: if (this->_M_impl._M_finish._M_cur 29724: != this->_M_impl._M_finish._M_last - 1) 29724: { 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_finish._M_cur, __x); 29724: ++this->_M_impl._M_finish._M_cur; 29724: } 29724: else 29724: _M_push_back_aux(__x); 29724: } 29724: 29724: 29724: void 29724: push_back(value_type&& __x) 29724: { emplace_back(std::move(__x)); } 29724: 29724: template 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_back(_Args&&... __args); 29724: # 1573 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: pop_front() noexcept 29724: { 29724: ; 29724: if (this->_M_impl._M_start._M_cur 29724: != this->_M_impl._M_start._M_last - 1) 29724: { 29724: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29724: this->_M_impl._M_start._M_cur); 29724: ++this->_M_impl._M_start._M_cur; 29724: } 29724: else 29724: _M_pop_front_aux(); 29724: } 29724: # 1596 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: pop_back() noexcept 29724: { 29724: ; 29724: if (this->_M_impl._M_finish._M_cur 29724: != this->_M_impl._M_finish._M_first) 29724: { 29724: --this->_M_impl._M_finish._M_cur; 29724: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29724: this->_M_impl._M_finish._M_cur); 29724: } 29724: else 29724: _M_pop_back_aux(); 29724: } 29724: # 1621 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: iterator 29724: emplace(const_iterator __position, _Args&&... __args); 29724: # 1634 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: insert(const_iterator __position, const value_type& __x); 29724: # 1660 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return emplace(__position, std::move(__x)); } 29724: # 1674 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: insert(const_iterator __p, initializer_list __l) 29724: { 29724: auto __offset = __p - cbegin(); 29724: _M_range_insert_aux(__p._M_const_cast(), __l.begin(), __l.end(), 29724: std::random_access_iterator_tag()); 29724: return begin() + __offset; 29724: } 29724: # 1693 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: insert(const_iterator __position, size_type __n, const value_type& __x) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_fill_insert(__position._M_const_cast(), __n, __x); 29724: return begin() + __offset; 29724: } 29724: # 1727 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template> 29724: iterator 29724: insert(const_iterator __position, _InputIterator __first, 29724: _InputIterator __last) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_range_insert_aux(__position._M_const_cast(), __first, __last, 29724: std::__iterator_category(__first)); 29724: return begin() + __offset; 29724: } 29724: # 1773 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: 29724: erase(const_iterator __position) 29724: 29724: 29724: 29724: { return _M_erase(__position._M_const_cast()); } 29724: # 1797 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: iterator 29724: 29724: erase(const_iterator __first, const_iterator __last) 29724: 29724: 29724: 29724: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 29724: # 1816 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: swap(deque& __x) noexcept 29724: { 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) std::__glibcxx_assert_fail(); } while (false) 29724: ; 29724: 29724: _M_impl._M_swap_data(__x._M_impl); 29724: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 29724: __x._M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_erase_at_end(begin()); } 29724: 29724: protected: 29724: # 1866 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: static size_t 29724: _S_check_init_len(size_t __n, const allocator_type& __a) 29724: { 29724: if (__n > _S_max_size(__a)) 29724: __throw_length_error( 29724: ("cannot create std::deque larger than max_size()")); 29724: return __n; 29724: } 29724: 29724: static size_type 29724: _S_max_size(const _Tp_alloc_type& __a) noexcept 29724: { 29724: const size_t __diffmax = __gnu_cxx::__numeric_traits::__max; 29724: const size_t __allocmax = _Alloc_traits::max_size(__a); 29724: return (std::min)(__diffmax, __allocmax); 29724: } 29724: # 1895 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: void 29724: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag); 29724: 29724: 29724: template 29724: void 29724: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag); 29724: # 1917 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: _M_fill_initialize(const value_type& __value); 29724: 29724: 29724: 29724: void 29724: _M_default_initialize(); 29724: # 1948 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: void 29724: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag); 29724: 29724: 29724: template 29724: void 29724: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __len = std::distance(__first, __last); 29724: if (__len > size()) 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, size()); 29724: std::copy(__first, __mid, begin()); 29724: _M_range_insert_aux(end(), __mid, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: else 29724: _M_erase_at_end(std::copy(__first, __last, begin())); 29724: } 29724: 29724: 29724: 29724: void 29724: _M_fill_assign(size_type __n, const value_type& __val) 29724: { 29724: if (__n > size()) 29724: { 29724: std::fill(begin(), end(), __val); 29724: _M_fill_insert(end(), __n - size(), __val); 29724: } 29724: else 29724: { 29724: _M_erase_at_end(begin() + difference_type(__n)); 29724: std::fill(begin(), end(), __val); 29724: } 29724: } 29724: # 1996 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: void _M_push_back_aux(_Args&&... __args); 29724: 29724: template 29724: void _M_push_front_aux(_Args&&... __args); 29724: 29724: 29724: void _M_pop_back_aux(); 29724: 29724: void _M_pop_front_aux(); 29724: # 2035 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: void 29724: _M_range_insert_aux(iterator __pos, _InputIterator __first, 29724: _InputIterator __last, std::input_iterator_tag); 29724: 29724: 29724: template 29724: void 29724: _M_range_insert_aux(iterator __pos, _ForwardIterator __first, 29724: _ForwardIterator __last, std::forward_iterator_tag); 29724: 29724: 29724: 29724: 29724: void 29724: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: _M_insert_aux(iterator __pos, const value_type& __x) 29724: { return _M_emplace_aux(__pos, __x); } 29724: 29724: template 29724: iterator 29724: _M_emplace_aux(iterator __pos, _Args&&... __args); 29724: 29724: 29724: 29724: void 29724: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x); 29724: 29724: 29724: template 29724: void 29724: _M_insert_aux(iterator __pos, 29724: _ForwardIterator __first, _ForwardIterator __last, 29724: size_type __n); 29724: 29724: 29724: 29724: 29724: void 29724: _M_destroy_data_aux(iterator __first, iterator __last); 29724: 29724: 29724: 29724: template 29724: void 29724: _M_destroy_data(iterator __first, iterator __last, const _Alloc1&) 29724: { _M_destroy_data_aux(__first, __last); } 29724: 29724: void 29724: _M_destroy_data(iterator __first, iterator __last, 29724: const std::allocator<_Tp>&) 29724: { 29724: if (!__has_trivial_destructor(value_type)) 29724: _M_destroy_data_aux(__first, __last); 29724: } 29724: 29724: 29724: void 29724: _M_erase_at_begin(iterator __pos) 29724: { 29724: _M_destroy_data(begin(), __pos, _M_get_Tp_allocator()); 29724: _M_destroy_nodes(this->_M_impl._M_start._M_node, __pos._M_node); 29724: this->_M_impl._M_start = __pos; 29724: } 29724: 29724: 29724: 29724: void 29724: _M_erase_at_end(iterator __pos) 29724: { 29724: _M_destroy_data(__pos, end(), _M_get_Tp_allocator()); 29724: _M_destroy_nodes(__pos._M_node + 1, 29724: this->_M_impl._M_finish._M_node + 1); 29724: this->_M_impl._M_finish = __pos; 29724: } 29724: 29724: iterator 29724: _M_erase(iterator __pos); 29724: 29724: iterator 29724: _M_erase(iterator __first, iterator __last); 29724: 29724: 29724: 29724: void 29724: _M_default_append(size_type __n); 29724: 29724: bool 29724: _M_shrink_to_fit(); 29724: 29724: 29724: 29724: 29724: iterator 29724: _M_reserve_elements_at_front(size_type __n) 29724: { 29724: const size_type __vacancies = this->_M_impl._M_start._M_cur 29724: - this->_M_impl._M_start._M_first; 29724: if (__n > __vacancies) 29724: _M_new_elements_at_front(__n - __vacancies); 29724: return this->_M_impl._M_start - difference_type(__n); 29724: } 29724: 29724: iterator 29724: _M_reserve_elements_at_back(size_type __n) 29724: { 29724: const size_type __vacancies = (this->_M_impl._M_finish._M_last 29724: - this->_M_impl._M_finish._M_cur) - 1; 29724: if (__n > __vacancies) 29724: _M_new_elements_at_back(__n - __vacancies); 29724: return this->_M_impl._M_finish + difference_type(__n); 29724: } 29724: 29724: void 29724: _M_new_elements_at_front(size_type __new_elements); 29724: 29724: void 29724: _M_new_elements_at_back(size_type __new_elements); 29724: # 2171 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: void 29724: _M_reserve_map_at_back(size_type __nodes_to_add = 1) 29724: { 29724: if (__nodes_to_add + 1 > this->_M_impl._M_map_size 29724: - (this->_M_impl._M_finish._M_node - this->_M_impl._M_map)) 29724: _M_reallocate_map(__nodes_to_add, false); 29724: } 29724: 29724: void 29724: _M_reserve_map_at_front(size_type __nodes_to_add = 1) 29724: { 29724: if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node 29724: - this->_M_impl._M_map)) 29724: _M_reallocate_map(__nodes_to_add, true); 29724: } 29724: 29724: void 29724: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front); 29724: 29724: 29724: 29724: 29724: 29724: void 29724: _M_move_assign1(deque&& __x, true_type) noexcept 29724: { 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: __x.clear(); 29724: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: _M_move_assign1(deque&& __x, false_type) 29724: { 29724: if (_M_get_Tp_allocator() == __x._M_get_Tp_allocator()) 29724: return _M_move_assign1(std::move(__x), true_type()); 29724: 29724: constexpr bool __move_storage = 29724: _Alloc_traits::_S_propagate_on_move_assign(); 29724: _M_move_assign2(std::move(__x), __bool_constant<__move_storage>()); 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: _M_replace_map(_Args&&... __args) 29724: { 29724: 29724: deque __newobj(std::forward<_Args>(__args)...); 29724: 29724: clear(); 29724: _M_deallocate_node(*begin()._M_node); 29724: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29724: this->_M_impl._M_map = nullptr; 29724: this->_M_impl._M_map_size = 0; 29724: 29724: this->_M_impl._M_swap_data(__newobj._M_impl); 29724: } 29724: 29724: 29724: void 29724: _M_move_assign2(deque&& __x, true_type) 29724: { 29724: 29724: auto __alloc = __x._M_get_Tp_allocator(); 29724: 29724: 29724: _M_replace_map(std::move(__x)); 29724: 29724: _M_get_Tp_allocator() = std::move(__alloc); 29724: } 29724: 29724: 29724: 29724: void 29724: _M_move_assign2(deque&& __x, false_type) 29724: { 29724: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 29724: { 29724: 29724: 29724: _M_replace_map(std::move(__x), __x.get_allocator()); 29724: } 29724: else 29724: { 29724: 29724: 29724: _M_assign_aux(std::make_move_iterator(__x.begin()), 29724: std::make_move_iterator(__x.end()), 29724: std::random_access_iterator_tag()); 29724: __x.clear(); 29724: } 29724: } 29724: 29724: }; 29724: 29724: 29724: template::value_type, 29724: typename _Allocator = allocator<_ValT>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireAllocator<_Allocator>> 29724: deque(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29724: -> deque<_ValT, _Allocator>; 29724: # 2291 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return __x.size() == __y.size() 29724: && std::equal(__x.begin(), __x.end(), __y.begin()); } 29724: # 2331 "/usr/include/c++/14/bits/stl_deque.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return std::lexicographical_compare(__x.begin(), __x.end(), 29724: __y.begin(), __y.end()); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_bitwise_relocatable> 29724: : true_type { }; 29724: 29724: 29724: 29724: } 29724: # 67 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/refwrap.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/refwrap.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/refwrap.h" 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/invoke.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/invoke.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/invoke.h" 3 29724: # 42 "/usr/include/c++/14/bits/invoke.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 53 "/usr/include/c++/14/bits/invoke.h" 3 29724: template::type> 29724: constexpr _Up&& 29724: __invfwd(typename remove_reference<_Tp>::type& __t) noexcept 29724: { return static_cast<_Up&&>(__t); } 29724: 29724: template 29724: constexpr _Res 29724: __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) 29724: { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } 29724: 29724: template 29724: constexpr _Res 29724: __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, 29724: _Args&&... __args) 29724: { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } 29724: 29724: template 29724: constexpr _Res 29724: __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, 29724: _Args&&... __args) 29724: { 29724: return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); 29724: } 29724: 29724: template 29724: constexpr _Res 29724: __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) 29724: { return __invfwd<_Tp>(__t).*__f; } 29724: 29724: template 29724: constexpr _Res 29724: __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) 29724: { return (*std::forward<_Tp>(__t)).*__f; } 29724: 29724: 29724: template 29724: constexpr typename __invoke_result<_Callable, _Args...>::type 29724: __invoke(_Callable&& __fn, _Args&&... __args) 29724: noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) 29724: { 29724: using __result = __invoke_result<_Callable, _Args...>; 29724: using __type = typename __result::type; 29724: using __tag = typename __result::__invoke_type; 29724: return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr enable_if_t, _Res> 29724: __invoke_r(_Callable&& __fn, _Args&&... __args) 29724: noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) 29724: { 29724: using __result = __invoke_result<_Callable, _Args...>; 29724: using __type = typename __result::type; 29724: using __tag = typename __result::__invoke_type; 29724: if constexpr (is_void_v<_Res>) 29724: std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 29724: std::forward<_Args>(__args)...); 29724: else 29724: return std::__invoke_impl<__type>(__tag{}, 29724: std::forward<_Callable>(__fn), 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 155 "/usr/include/c++/14/bits/invoke.h" 3 29724: 29724: } 29724: # 39 "/usr/include/c++/14/bits/refwrap.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_function.h" 1 3 29724: # 63 "/usr/include/c++/14/bits/stl_function.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 116 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: struct unary_function 29724: { 29724: 29724: typedef _Arg argument_type; 29724: 29724: 29724: typedef _Result result_type; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct binary_function 29724: { 29724: 29724: typedef _Arg1 first_argument_type; 29724: 29724: 29724: typedef _Arg2 second_argument_type; 29724: 29724: 29724: typedef _Result result_type; 29724: } __attribute__ ((__deprecated__)); 29724: # 157 "/usr/include/c++/14/bits/stl_function.h" 3 29724: struct __is_transparent; 29724: 29724: template 29724: struct plus; 29724: 29724: template 29724: struct minus; 29724: 29724: template 29724: struct multiplies; 29724: 29724: template 29724: struct divides; 29724: 29724: template 29724: struct modulus; 29724: 29724: template 29724: struct negate; 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: struct plus : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x + __y; } 29724: }; 29724: 29724: 29724: template 29724: struct minus : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x - __y; } 29724: }; 29724: 29724: 29724: template 29724: struct multiplies : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x * __y; } 29724: }; 29724: 29724: 29724: template 29724: struct divides : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x / __y; } 29724: }; 29724: 29724: 29724: template 29724: struct modulus : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x % __y; } 29724: }; 29724: 29724: 29724: template 29724: struct negate : public unary_function<_Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x) const 29724: { return -__x; } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: template<> 29724: struct plus 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct minus 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct multiplies 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct divides 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct modulus 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct negate 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t) const 29724: noexcept(noexcept(-std::forward<_Tp>(__t))) 29724: -> decltype(-std::forward<_Tp>(__t)) 29724: { return -std::forward<_Tp>(__t); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: # 346 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: struct equal_to; 29724: 29724: template 29724: struct not_equal_to; 29724: 29724: template 29724: struct greater; 29724: 29724: template 29724: struct less; 29724: 29724: template 29724: struct greater_equal; 29724: 29724: template 29724: struct less_equal; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: struct equal_to : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x == __y; } 29724: }; 29724: 29724: 29724: template 29724: struct not_equal_to : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x != __y; } 29724: }; 29724: 29724: 29724: template 29724: struct greater : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x > __y; } 29724: }; 29724: 29724: 29724: template 29724: struct less : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x < __y; } 29724: }; 29724: 29724: 29724: template 29724: struct greater_equal : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x >= __y; } 29724: }; 29724: 29724: 29724: template 29724: struct less_equal : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x <= __y; } 29724: }; 29724: 29724: 29724: template 29724: struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29724: { 29724: constexpr bool 29724: operator()(_Tp* __x, _Tp* __y) const noexcept 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __x > __y; 29724: 29724: return (unsigned int)__x > (unsigned int)__y; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29724: { 29724: constexpr bool 29724: operator()(_Tp* __x, _Tp* __y) const noexcept 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __x < __y; 29724: 29724: return (unsigned int)__x < (unsigned int)__y; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29724: { 29724: constexpr bool 29724: operator()(_Tp* __x, _Tp* __y) const noexcept 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __x >= __y; 29724: 29724: return (unsigned int)__x >= (unsigned int)__y; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29724: { 29724: constexpr bool 29724: operator()(_Tp* __x, _Tp* __y) const noexcept 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __x <= __y; 29724: 29724: return (unsigned int)__x <= (unsigned int)__y; 29724: } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: template<> 29724: struct equal_to 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct not_equal_to 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct greater 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) 29724: { 29724: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29724: __ptr_cmp<_Tp, _Up>{}); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator()(_Tp* __t, _Up* __u) const noexcept 29724: { return greater>{}(__t, __u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: 29724: private: 29724: template 29724: static constexpr decltype(auto) 29724: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29724: { return std::forward<_Tp>(__t) > std::forward<_Up>(__u); } 29724: 29724: template 29724: static constexpr bool 29724: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29724: { 29724: return greater{}( 29724: static_cast(std::forward<_Tp>(__t)), 29724: static_cast(std::forward<_Up>(__u))); 29724: } 29724: 29724: 29724: template 29724: struct __not_overloaded2 : true_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded2<_Tp, _Up, __void_t< 29724: decltype(std::declval<_Tp>().operator>(std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29724: 29724: 29724: template 29724: struct __not_overloaded<_Tp, _Up, __void_t< 29724: decltype(operator>(std::declval<_Tp>(), std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: template 29724: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29724: is_convertible<_Tp, const volatile void*>, 29724: is_convertible<_Up, const volatile void*>>; 29724: }; 29724: 29724: 29724: template<> 29724: struct less 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) 29724: { 29724: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29724: __ptr_cmp<_Tp, _Up>{}); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator()(_Tp* __t, _Up* __u) const noexcept 29724: { return less>{}(__t, __u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: 29724: private: 29724: template 29724: static constexpr decltype(auto) 29724: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29724: { return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } 29724: 29724: template 29724: static constexpr bool 29724: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29724: { 29724: return less{}( 29724: static_cast(std::forward<_Tp>(__t)), 29724: static_cast(std::forward<_Up>(__u))); 29724: } 29724: 29724: 29724: template 29724: struct __not_overloaded2 : true_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded2<_Tp, _Up, __void_t< 29724: decltype(std::declval<_Tp>().operator<(std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29724: 29724: 29724: template 29724: struct __not_overloaded<_Tp, _Up, __void_t< 29724: decltype(operator<(std::declval<_Tp>(), std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: template 29724: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29724: is_convertible<_Tp, const volatile void*>, 29724: is_convertible<_Up, const volatile void*>>; 29724: }; 29724: 29724: 29724: template<> 29724: struct greater_equal 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) 29724: { 29724: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29724: __ptr_cmp<_Tp, _Up>{}); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator()(_Tp* __t, _Up* __u) const noexcept 29724: { return greater_equal>{}(__t, __u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: 29724: private: 29724: template 29724: static constexpr decltype(auto) 29724: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29724: { return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); } 29724: 29724: template 29724: static constexpr bool 29724: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29724: { 29724: return greater_equal{}( 29724: static_cast(std::forward<_Tp>(__t)), 29724: static_cast(std::forward<_Up>(__u))); 29724: } 29724: 29724: 29724: template 29724: struct __not_overloaded2 : true_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded2<_Tp, _Up, __void_t< 29724: decltype(std::declval<_Tp>().operator>=(std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29724: 29724: 29724: template 29724: struct __not_overloaded<_Tp, _Up, __void_t< 29724: decltype(operator>=(std::declval<_Tp>(), std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: template 29724: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29724: is_convertible<_Tp, const volatile void*>, 29724: is_convertible<_Up, const volatile void*>>; 29724: }; 29724: 29724: 29724: template<> 29724: struct less_equal 29724: { 29724: template 29724: constexpr auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) 29724: { 29724: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29724: __ptr_cmp<_Tp, _Up>{}); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator()(_Tp* __t, _Up* __u) const noexcept 29724: { return less_equal>{}(__t, __u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: 29724: private: 29724: template 29724: static constexpr decltype(auto) 29724: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29724: { return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); } 29724: 29724: template 29724: static constexpr bool 29724: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29724: { 29724: return less_equal{}( 29724: static_cast(std::forward<_Tp>(__t)), 29724: static_cast(std::forward<_Up>(__u))); 29724: } 29724: 29724: 29724: template 29724: struct __not_overloaded2 : true_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded2<_Tp, _Up, __void_t< 29724: decltype(std::declval<_Tp>().operator<=(std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: 29724: template 29724: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29724: 29724: 29724: template 29724: struct __not_overloaded<_Tp, _Up, __void_t< 29724: decltype(operator<=(std::declval<_Tp>(), std::declval<_Up>()))>> 29724: : false_type { }; 29724: 29724: template 29724: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29724: is_convertible<_Tp, const volatile void*>, 29724: is_convertible<_Up, const volatile void*>>; 29724: }; 29724: # 778 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: struct logical_and; 29724: 29724: template 29724: struct logical_or; 29724: 29724: template 29724: struct logical_not; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: struct logical_and : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x && __y; } 29724: }; 29724: 29724: 29724: template 29724: struct logical_or : public binary_function<_Tp, _Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x || __y; } 29724: }; 29724: 29724: 29724: template 29724: struct logical_not : public unary_function<_Tp, bool> 29724: { 29724: constexpr 29724: bool 29724: operator()(const _Tp& __x) const 29724: { return !__x; } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: template<> 29724: struct logical_and 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct logical_or 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: template<> 29724: struct logical_not 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t) const 29724: noexcept(noexcept(!std::forward<_Tp>(__t))) 29724: -> decltype(!std::forward<_Tp>(__t)) 29724: { return !std::forward<_Tp>(__t); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct bit_and; 29724: 29724: template 29724: struct bit_or; 29724: 29724: template 29724: struct bit_xor; 29724: 29724: template 29724: struct bit_not; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: 29724: template 29724: struct bit_and : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x & __y; } 29724: }; 29724: 29724: template 29724: struct bit_or : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x | __y; } 29724: }; 29724: 29724: template 29724: struct bit_xor : public binary_function<_Tp, _Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x, const _Tp& __y) const 29724: { return __x ^ __y; } 29724: }; 29724: 29724: template 29724: struct bit_not : public unary_function<_Tp, _Tp> 29724: { 29724: constexpr 29724: _Tp 29724: operator()(const _Tp& __x) const 29724: { return ~__x; } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: template <> 29724: struct bit_and 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: template <> 29724: struct bit_or 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: template <> 29724: struct bit_xor 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t, _Up&& __u) const 29724: noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) 29724: -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) 29724: { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: template <> 29724: struct bit_not 29724: { 29724: template 29724: constexpr 29724: auto 29724: operator()(_Tp&& __t) const 29724: noexcept(noexcept(~std::forward<_Tp>(__t))) 29724: -> decltype(~std::forward<_Tp>(__t)) 29724: { return ~std::forward<_Tp>(__t); } 29724: 29724: typedef __is_transparent is_transparent; 29724: }; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: # 1020 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: class [[__deprecated__]] unary_negate 29724: : public unary_function 29724: { 29724: protected: 29724: _Predicate _M_pred; 29724: 29724: public: 29724: constexpr 29724: explicit 29724: unary_negate(const _Predicate& __x) : _M_pred(__x) { } 29724: 29724: constexpr 29724: bool 29724: operator()(const typename _Predicate::argument_type& __x) const 29724: { return !_M_pred(__x); } 29724: }; 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 29724: constexpr 29724: inline unary_negate<_Predicate> 29724: not1(const _Predicate& __pred) 29724: { return unary_negate<_Predicate>(__pred); } 29724: 29724: 29724: template 29724: class [[__deprecated__]] binary_negate 29724: : public binary_function 29724: { 29724: protected: 29724: _Predicate _M_pred; 29724: 29724: public: 29724: constexpr 29724: explicit 29724: binary_negate(const _Predicate& __x) : _M_pred(__x) { } 29724: 29724: constexpr 29724: bool 29724: operator()(const typename _Predicate::first_argument_type& __x, 29724: const typename _Predicate::second_argument_type& __y) const 29724: { return !_M_pred(__x, __y); } 29724: }; 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 29724: constexpr 29724: inline binary_negate<_Predicate> 29724: not2(const _Predicate& __pred) 29724: { return binary_negate<_Predicate>(__pred); } 29724: # 1101 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: class pointer_to_unary_function : public unary_function<_Arg, _Result> 29724: { 29724: protected: 29724: _Result (*_M_ptr)(_Arg); 29724: 29724: public: 29724: pointer_to_unary_function() { } 29724: 29724: explicit 29724: pointer_to_unary_function(_Result (*__x)(_Arg)) 29724: : _M_ptr(__x) { } 29724: 29724: _Result 29724: operator()(_Arg __x) const 29724: { return _M_ptr(__x); } 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 29724: inline pointer_to_unary_function<_Arg, _Result> 29724: ptr_fun(_Result (*__x)(_Arg)) 29724: { return pointer_to_unary_function<_Arg, _Result>(__x); } 29724: 29724: 29724: template 29724: class pointer_to_binary_function 29724: : public binary_function<_Arg1, _Arg2, _Result> 29724: { 29724: protected: 29724: _Result (*_M_ptr)(_Arg1, _Arg2); 29724: 29724: public: 29724: pointer_to_binary_function() { } 29724: 29724: explicit 29724: pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) 29724: : _M_ptr(__x) { } 29724: 29724: _Result 29724: operator()(_Arg1 __x, _Arg2 __y) const 29724: { return _M_ptr(__x, __y); } 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 29724: inline pointer_to_binary_function<_Arg1, _Arg2, _Result> 29724: ptr_fun(_Result (*__x)(_Arg1, _Arg2)) 29724: { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } 29724: 29724: 29724: template 29724: struct _Identity 29724: : public unary_function<_Tp, _Tp> 29724: { 29724: _Tp& 29724: operator()(_Tp& __x) const 29724: { return __x; } 29724: 29724: const _Tp& 29724: operator()(const _Tp& __x) const 29724: { return __x; } 29724: }; 29724: 29724: 29724: template struct _Identity : _Identity<_Tp> { }; 29724: 29724: template 29724: struct _Select1st 29724: : public unary_function<_Pair, typename _Pair::first_type> 29724: { 29724: typename _Pair::first_type& 29724: operator()(_Pair& __x) const 29724: { return __x.first; } 29724: 29724: const typename _Pair::first_type& 29724: operator()(const _Pair& __x) const 29724: { return __x.first; } 29724: 29724: 29724: template 29724: typename _Pair2::first_type& 29724: operator()(_Pair2& __x) const 29724: { return __x.first; } 29724: 29724: template 29724: const typename _Pair2::first_type& 29724: operator()(const _Pair2& __x) const 29724: { return __x.first; } 29724: 29724: }; 29724: 29724: template 29724: struct _Select2nd 29724: : public unary_function<_Pair, typename _Pair::second_type> 29724: { 29724: typename _Pair::second_type& 29724: operator()(_Pair& __x) const 29724: { return __x.second; } 29724: 29724: const typename _Pair::second_type& 29724: operator()(const _Pair& __x) const 29724: { return __x.second; } 29724: }; 29724: # 1228 "/usr/include/c++/14/bits/stl_function.h" 3 29724: template 29724: class mem_fun_t : public unary_function<_Tp*, _Ret> 29724: { 29724: public: 29724: explicit 29724: mem_fun_t(_Ret (_Tp::*__pf)()) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(_Tp* __p) const 29724: { return (__p->*_M_f)(); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(); 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class const_mem_fun_t : public unary_function 29724: { 29724: public: 29724: explicit 29724: const_mem_fun_t(_Ret (_Tp::*__pf)() const) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(const _Tp* __p) const 29724: { return (__p->*_M_f)(); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)() const; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class mem_fun_ref_t : public unary_function<_Tp, _Ret> 29724: { 29724: public: 29724: explicit 29724: mem_fun_ref_t(_Ret (_Tp::*__pf)()) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(_Tp& __r) const 29724: { return (__r.*_M_f)(); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(); 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> 29724: { 29724: public: 29724: explicit 29724: const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(const _Tp& __r) const 29724: { return (__r.*_M_f)(); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)() const; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> 29724: { 29724: public: 29724: explicit 29724: mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(_Tp* __p, _Arg __x) const 29724: { return (__p->*_M_f)(__x); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(_Arg); 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class const_mem_fun1_t : public binary_function 29724: { 29724: public: 29724: explicit 29724: const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(const _Tp* __p, _Arg __x) const 29724: { return (__p->*_M_f)(__x); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(_Arg) const; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 29724: { 29724: public: 29724: explicit 29724: mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(_Tp& __r, _Arg __x) const 29724: { return (__r.*_M_f)(__x); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(_Arg); 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: template 29724: class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 29724: { 29724: public: 29724: explicit 29724: const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) 29724: : _M_f(__pf) { } 29724: 29724: _Ret 29724: operator()(const _Tp& __r, _Arg __x) const 29724: { return (__r.*_M_f)(__x); } 29724: 29724: private: 29724: _Ret (_Tp::*_M_f)(_Arg) const; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline mem_fun_t<_Ret, _Tp> 29724: mem_fun(_Ret (_Tp::*__f)()) 29724: { return mem_fun_t<_Ret, _Tp>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline const_mem_fun_t<_Ret, _Tp> 29724: mem_fun(_Ret (_Tp::*__f)() const) 29724: { return const_mem_fun_t<_Ret, _Tp>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline mem_fun_ref_t<_Ret, _Tp> 29724: mem_fun_ref(_Ret (_Tp::*__f)()) 29724: { return mem_fun_ref_t<_Ret, _Tp>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline const_mem_fun_ref_t<_Ret, _Tp> 29724: mem_fun_ref(_Ret (_Tp::*__f)() const) 29724: { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline mem_fun1_t<_Ret, _Tp, _Arg> 29724: mem_fun(_Ret (_Tp::*__f)(_Arg)) 29724: { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline const_mem_fun1_t<_Ret, _Tp, _Arg> 29724: mem_fun(_Ret (_Tp::*__f)(_Arg) const) 29724: { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline mem_fun1_ref_t<_Ret, _Tp, _Arg> 29724: mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) 29724: { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29724: inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> 29724: mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) 29724: { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: template> 29724: struct __has_is_transparent 29724: { }; 29724: 29724: template 29724: struct __has_is_transparent<_Func, _SfinaeType, 29724: __void_t> 29724: { typedef void type; }; 29724: 29724: template 29724: using __has_is_transparent_t 29724: = typename __has_is_transparent<_Func, _SfinaeType>::type; 29724: 29724: 29724: 29724: } 29724: 29724: 29724: # 1 "/usr/include/c++/14/backward/binders.h" 1 3 29724: # 60 "/usr/include/c++/14/backward/binders.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 107 "/usr/include/c++/14/backward/binders.h" 3 29724: template 29724: class binder1st 29724: : public unary_function 29724: { 29724: protected: 29724: _Operation op; 29724: typename _Operation::first_argument_type value; 29724: 29724: public: 29724: binder1st(const _Operation& __x, 29724: const typename _Operation::first_argument_type& __y) 29724: : op(__x), value(__y) { } 29724: 29724: typename _Operation::result_type 29724: operator()(const typename _Operation::second_argument_type& __x) const 29724: { return op(value, __x); } 29724: 29724: 29724: 29724: typename _Operation::result_type 29724: operator()(typename _Operation::second_argument_type& __x) const 29724: { return op(value, __x); } 29724: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 29724: inline binder1st<_Operation> 29724: bind1st(const _Operation& __fn, const _Tp& __x) 29724: { 29724: typedef typename _Operation::first_argument_type _Arg1_type; 29724: return binder1st<_Operation>(__fn, _Arg1_type(__x)); 29724: } 29724: 29724: 29724: template 29724: class binder2nd 29724: : public unary_function 29724: { 29724: protected: 29724: _Operation op; 29724: typename _Operation::second_argument_type value; 29724: 29724: public: 29724: binder2nd(const _Operation& __x, 29724: const typename _Operation::second_argument_type& __y) 29724: : op(__x), value(__y) { } 29724: 29724: typename _Operation::result_type 29724: operator()(const typename _Operation::first_argument_type& __x) const 29724: { return op(__x, value); } 29724: 29724: 29724: 29724: typename _Operation::result_type 29724: operator()(typename _Operation::first_argument_type& __x) const 29724: { return op(__x, value); } 29724: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 29724: inline binder2nd<_Operation> 29724: bind2nd(const _Operation& __fn, const _Tp& __x) 29724: { 29724: typedef typename _Operation::second_argument_type _Arg2_type; 29724: return binder2nd<_Operation>(__fn, _Arg2_type(__x)); 29724: } 29724: 29724: 29724: 29724: } 29724: 29724: #pragma GCC diagnostic pop 29724: # 1436 "/usr/include/c++/14/bits/stl_function.h" 2 3 29724: # 40 "/usr/include/c++/14/bits/refwrap.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 56 "/usr/include/c++/14/bits/refwrap.h" 3 29724: template 29724: struct _Maybe_unary_or_binary_function { }; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: struct _Maybe_unary_or_binary_function<_Res, _T1> 29724: : std::unary_function<_T1, _Res> { }; 29724: 29724: 29724: template 29724: struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> 29724: : std::binary_function<_T1, _T2, _Res> { }; 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: template 29724: struct _Mem_fn_traits; 29724: 29724: template 29724: struct _Mem_fn_traits_base 29724: { 29724: using __result_type = _Res; 29724: using __maybe_type 29724: = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; 29724: using __arity = integral_constant; 29724: }; 29724: # 107 "/usr/include/c++/14/bits/refwrap.h" 3 29724: 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; }; 29724: 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; }; 29724: 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; }; 29724: 29724: 29724: 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; }; 29724: 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; }; 29724: 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; }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: struct _Maybe_get_result_type 29724: { }; 29724: 29724: template 29724: struct _Maybe_get_result_type<_Functor, 29724: __void_t> 29724: { typedef typename _Functor::result_type result_type; }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Weak_result_type_impl 29724: : _Maybe_get_result_type<_Functor> 29724: { }; 29724: 29724: 29724: template 29724: struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> 29724: { typedef _Res result_type; }; 29724: 29724: 29724: template 29724: struct _Weak_result_type_impl<_Res(_ArgTypes......) noexcept (_NE)> 29724: { typedef _Res result_type; }; 29724: 29724: 29724: template 29724: struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> 29724: { typedef _Res result_type; }; 29724: 29724: 29724: template 29724: struct 29724: _Weak_result_type_impl<_Res(*)(_ArgTypes......) noexcept (_NE)> 29724: { typedef _Res result_type; }; 29724: 29724: 29724: template::value> 29724: struct _Weak_result_type_memfun 29724: : _Weak_result_type_impl<_Functor> 29724: { }; 29724: 29724: 29724: template 29724: struct _Weak_result_type_memfun<_MemFunPtr, true> 29724: { 29724: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 29724: }; 29724: 29724: 29724: template 29724: struct _Weak_result_type_memfun<_Func _Class::*, false> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Weak_result_type 29724: : _Weak_result_type_memfun::type> 29724: { }; 29724: 29724: 29724: 29724: template> 29724: struct _Refwrap_base_arg1 29724: { }; 29724: 29724: 29724: template 29724: struct _Refwrap_base_arg1<_Tp, 29724: __void_t> 29724: { 29724: typedef typename _Tp::argument_type argument_type; 29724: }; 29724: 29724: 29724: template> 29724: struct _Refwrap_base_arg2 29724: { }; 29724: 29724: 29724: template 29724: struct _Refwrap_base_arg2<_Tp, 29724: __void_t> 29724: { 29724: typedef typename _Tp::first_argument_type first_argument_type; 29724: typedef typename _Tp::second_argument_type second_argument_type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Reference_wrapper_base 29724: : _Weak_result_type<_Tp>, _Refwrap_base_arg1<_Tp>, _Refwrap_base_arg2<_Tp> 29724: { }; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1) noexcept (_NE)> 29724: : unary_function<_T1, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1) const> 29724: : unary_function<_T1, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1) volatile> 29724: : unary_function<_T1, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1) const volatile> 29724: : unary_function<_T1, _Res> 29724: { }; 29724: 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1, _T2) noexcept (_NE)> 29724: : binary_function<_T1, _T2, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1, _T2) const> 29724: : binary_function<_T1, _T2, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1, _T2) volatile> 29724: : binary_function<_T1, _T2, _Res> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(_T1, _T2) const volatile> 29724: : binary_function<_T1, _T2, _Res> 29724: { }; 29724: 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(*)(_T1) noexcept (_NE)> 29724: : unary_function<_T1, _Res> 29724: { }; 29724: 29724: 29724: template 29724: struct _Reference_wrapper_base<_Res(*)(_T1, _T2) noexcept (_NE)> 29724: : binary_function<_T1, _T2, _Res> 29724: { }; 29724: 29724: template::value> 29724: struct _Reference_wrapper_base_memfun 29724: : _Reference_wrapper_base<_Tp> 29724: { }; 29724: 29724: template 29724: struct _Reference_wrapper_base_memfun<_MemFunPtr, true> 29724: : _Mem_fn_traits<_MemFunPtr>::__maybe_type 29724: { 29724: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 29724: }; 29724: #pragma GCC diagnostic pop 29724: # 306 "/usr/include/c++/14/bits/refwrap.h" 3 29724: template 29724: class reference_wrapper 29724: 29724: 29724: 29724: : public _Reference_wrapper_base_memfun::type> 29724: 29724: { 29724: _Tp* _M_data; 29724: 29724: 29724: static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } 29724: 29724: static void _S_fun(_Tp&&) = delete; 29724: 29724: template> 29724: using __not_same 29724: = typename enable_if::value>::type; 29724: 29724: public: 29724: typedef _Tp type; 29724: 29724: 29724: 29724: 29724: template, typename 29724: = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> 29724: 29724: reference_wrapper(_Up&& __uref) 29724: noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) 29724: : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) 29724: { } 29724: 29724: reference_wrapper(const reference_wrapper&) = default; 29724: 29724: reference_wrapper& 29724: operator=(const reference_wrapper&) = default; 29724: 29724: 29724: operator _Tp&() const noexcept 29724: { return this->get(); } 29724: 29724: 29724: _Tp& 29724: get() const noexcept 29724: { return *_M_data; } 29724: 29724: template 29724: 29724: typename __invoke_result<_Tp&, _Args...>::type 29724: operator()(_Args&&... __args) const 29724: noexcept(__is_nothrow_invocable<_Tp&, _Args...>::value) 29724: { 29724: 29724: 29724: 29724: 29724: return std::__invoke(get(), std::forward<_Args>(__args)...); 29724: } 29724: # 412 "/usr/include/c++/14/bits/refwrap.h" 3 29724: }; 29724: 29724: 29724: template 29724: reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline reference_wrapper<_Tp> 29724: ref(_Tp& __t) noexcept 29724: { return reference_wrapper<_Tp>(__t); } 29724: 29724: 29724: template 29724: 29724: inline reference_wrapper 29724: cref(const _Tp& __t) noexcept 29724: { return reference_wrapper(__t); } 29724: 29724: template 29724: void ref(const _Tp&&) = delete; 29724: 29724: template 29724: void cref(const _Tp&&) = delete; 29724: 29724: 29724: template 29724: 29724: inline reference_wrapper<_Tp> 29724: ref(reference_wrapper<_Tp> __t) noexcept 29724: { return __t; } 29724: 29724: 29724: template 29724: 29724: inline reference_wrapper 29724: cref(reference_wrapper<_Tp> __t) noexcept 29724: { return { __t.get() }; } 29724: 29724: 29724: 29724: 29724: } 29724: # 68 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/range_access.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/range_access.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/range_access.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: begin(_Container& __cont) -> decltype(__cont.begin()) 29724: { return __cont.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: begin(const _Container& __cont) -> decltype(__cont.begin()) 29724: { return __cont.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: end(_Container& __cont) -> decltype(__cont.end()) 29724: { return __cont.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: end(const _Container& __cont) -> decltype(__cont.end()) 29724: { return __cont.end(); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr _Tp* 29724: begin(_Tp (&__arr)[_Nm]) noexcept 29724: { return __arr; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr _Tp* 29724: end(_Tp (&__arr)[_Nm]) noexcept 29724: { return __arr + _Nm; } 29724: 29724: 29724: 29724: template class valarray; 29724: 29724: template _Tp* begin(valarray<_Tp>&) noexcept; 29724: template const _Tp* begin(const valarray<_Tp>&) noexcept; 29724: template _Tp* end(valarray<_Tp>&) noexcept; 29724: template const _Tp* end(const valarray<_Tp>&) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: constexpr auto 29724: cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) 29724: -> decltype(std::begin(__cont)) 29724: { return std::begin(__cont); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: constexpr auto 29724: cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) 29724: -> decltype(std::end(__cont)) 29724: { return std::end(__cont); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: rbegin(_Container& __cont) -> decltype(__cont.rbegin()) 29724: { return __cont.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: rbegin(const _Container& __cont) -> decltype(__cont.rbegin()) 29724: { return __cont.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: rend(_Container& __cont) -> decltype(__cont.rend()) 29724: { return __cont.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: rend(const _Container& __cont) -> decltype(__cont.rend()) 29724: { return __cont.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator<_Tp*> 29724: rbegin(_Tp (&__arr)[_Nm]) noexcept 29724: { return reverse_iterator<_Tp*>(__arr + _Nm); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator<_Tp*> 29724: rend(_Tp (&__arr)[_Nm]) noexcept 29724: { return reverse_iterator<_Tp*>(__arr); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator 29724: rbegin(initializer_list<_Tp> __il) noexcept 29724: { return reverse_iterator(__il.end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline constexpr reverse_iterator 29724: rend(initializer_list<_Tp> __il) noexcept 29724: { return reverse_iterator(__il.begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont)) 29724: { return std::rbegin(__cont); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__, __gnu__::__always_inline__]] 29724: inline constexpr auto 29724: crend(const _Container& __cont) -> decltype(std::rend(__cont)) 29724: { return std::rend(__cont); } 29724: # 259 "/usr/include/c++/14/bits/range_access.h" 3 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr auto 29724: size(const _Container& __cont) noexcept(noexcept(__cont.size())) 29724: -> decltype(__cont.size()) 29724: { return __cont.size(); } 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr size_t 29724: size(const _Tp (&)[_Nm]) noexcept 29724: { return _Nm; } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr auto 29724: empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) 29724: -> decltype(__cont.empty()) 29724: { return __cont.empty(); } 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr bool 29724: empty(const _Tp (&)[_Nm]) noexcept 29724: { return false; } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr bool 29724: empty(initializer_list<_Tp> __il) noexcept 29724: { return __il.size() == 0;} 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr auto 29724: data(_Container& __cont) noexcept(noexcept(__cont.data())) 29724: -> decltype(__cont.data()) 29724: { return __cont.data(); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr auto 29724: data(const _Container& __cont) noexcept(noexcept(__cont.data())) 29724: -> decltype(__cont.data()) 29724: { return __cont.data(); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr _Tp* 29724: data(_Tp (&__array)[_Nm]) noexcept 29724: { return __array; } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard, __gnu__::__always_inline__]] 29724: constexpr const _Tp* 29724: data(initializer_list<_Tp> __il) noexcept 29724: { return __il.begin(); } 29724: # 366 "/usr/include/c++/14/bits/range_access.h" 3 29724: 29724: } 29724: # 69 "/usr/include/c++/14/deque" 2 3 29724: # 1 "/usr/include/c++/14/bits/deque.tcc" 1 3 29724: # 61 "/usr/include/c++/14/bits/deque.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_default_initialize() 29724: { 29724: _Map_pointer __cur; 29724: try 29724: { 29724: for (__cur = this->_M_impl._M_start._M_node; 29724: __cur < this->_M_impl._M_finish._M_node; 29724: ++__cur) 29724: std::__uninitialized_default_a(*__cur, *__cur + _S_buffer_size(), 29724: _M_get_Tp_allocator()); 29724: std::__uninitialized_default_a(this->_M_impl._M_finish._M_first, 29724: this->_M_impl._M_finish._M_cur, 29724: _M_get_Tp_allocator()); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 29724: _M_get_Tp_allocator()); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: deque<_Tp, _Alloc>& 29724: deque<_Tp, _Alloc>:: 29724: operator=(const deque& __x) 29724: { 29724: if (std::__addressof(__x) != this) 29724: { 29724: 29724: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: if (!_Alloc_traits::_S_always_equal() 29724: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 29724: { 29724: 29724: 29724: _M_replace_map(__x, __x.get_allocator()); 29724: std::__alloc_on_copy(_M_get_Tp_allocator(), 29724: __x._M_get_Tp_allocator()); 29724: return *this; 29724: } 29724: std::__alloc_on_copy(_M_get_Tp_allocator(), 29724: __x._M_get_Tp_allocator()); 29724: } 29724: 29724: const size_type __len = size(); 29724: if (__len >= __x.size()) 29724: _M_erase_at_end(std::copy(__x.begin(), __x.end(), 29724: this->_M_impl._M_start)); 29724: else 29724: { 29724: const_iterator __mid = __x.begin() + difference_type(__len); 29724: std::copy(__x.begin(), __mid, this->_M_impl._M_start); 29724: _M_range_insert_aux(this->_M_impl._M_finish, __mid, __x.end(), 29724: std::random_access_iterator_tag()); 29724: } 29724: } 29724: return *this; 29724: } 29724: 29724: 29724: template 29724: template 29724: 29724: typename deque<_Tp, _Alloc>::reference 29724: 29724: 29724: 29724: deque<_Tp, _Alloc>:: 29724: emplace_front(_Args&&... __args) 29724: { 29724: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 29724: { 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_start._M_cur - 1, 29724: std::forward<_Args>(__args)...); 29724: --this->_M_impl._M_start._M_cur; 29724: } 29724: else 29724: _M_push_front_aux(std::forward<_Args>(__args)...); 29724: 29724: return front(); 29724: 29724: } 29724: 29724: template 29724: template 29724: 29724: typename deque<_Tp, _Alloc>::reference 29724: 29724: 29724: 29724: deque<_Tp, _Alloc>:: 29724: emplace_back(_Args&&... __args) 29724: { 29724: if (this->_M_impl._M_finish._M_cur 29724: != this->_M_impl._M_finish._M_last - 1) 29724: { 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_finish._M_cur, 29724: std::forward<_Args>(__args)...); 29724: ++this->_M_impl._M_finish._M_cur; 29724: } 29724: else 29724: _M_push_back_aux(std::forward<_Args>(__args)...); 29724: 29724: return back(); 29724: 29724: } 29724: 29724: 29724: 29724: template 29724: template 29724: typename deque<_Tp, _Alloc>::iterator 29724: deque<_Tp, _Alloc>:: 29724: emplace(const_iterator __position, _Args&&... __args) 29724: { 29724: if (__position._M_cur == this->_M_impl._M_start._M_cur) 29724: { 29724: emplace_front(std::forward<_Args>(__args)...); 29724: return this->_M_impl._M_start; 29724: } 29724: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 29724: { 29724: emplace_back(std::forward<_Args>(__args)...); 29724: iterator __tmp = this->_M_impl._M_finish; 29724: --__tmp; 29724: return __tmp; 29724: } 29724: else 29724: return _M_emplace_aux(__position._M_const_cast(), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: template 29724: typename deque<_Tp, _Alloc>::iterator 29724: deque<_Tp, _Alloc>:: 29724: 29724: insert(const_iterator __position, const value_type& __x) 29724: 29724: 29724: 29724: { 29724: if (__position._M_cur == this->_M_impl._M_start._M_cur) 29724: { 29724: push_front(__x); 29724: return this->_M_impl._M_start; 29724: } 29724: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 29724: { 29724: push_back(__x); 29724: iterator __tmp = this->_M_impl._M_finish; 29724: --__tmp; 29724: return __tmp; 29724: } 29724: else 29724: return _M_insert_aux(__position._M_const_cast(), __x); 29724: } 29724: 29724: template 29724: typename deque<_Tp, _Alloc>::iterator 29724: deque<_Tp, _Alloc>:: 29724: _M_erase(iterator __position) 29724: { 29724: iterator __next = __position; 29724: ++__next; 29724: const difference_type __index = __position - begin(); 29724: if (static_cast(__index) < (size() >> 1)) 29724: { 29724: if (__position != begin()) 29724: std::move_backward(begin(), __position, __next); 29724: pop_front(); 29724: } 29724: else 29724: { 29724: if (__next != end()) 29724: std::move(__next, end(), __position); 29724: pop_back(); 29724: } 29724: return begin() + __index; 29724: } 29724: 29724: template 29724: typename deque<_Tp, _Alloc>::iterator 29724: deque<_Tp, _Alloc>:: 29724: _M_erase(iterator __first, iterator __last) 29724: { 29724: if (__first == __last) 29724: return __first; 29724: else if (__first == begin() && __last == end()) 29724: { 29724: clear(); 29724: return end(); 29724: } 29724: else 29724: { 29724: const difference_type __n = __last - __first; 29724: const difference_type __elems_before = __first - begin(); 29724: if (static_cast(__elems_before) <= (size() - __n) / 2) 29724: { 29724: if (__first != begin()) 29724: std::move_backward(begin(), __first, __last); 29724: _M_erase_at_begin(begin() + __n); 29724: } 29724: else 29724: { 29724: if (__last != end()) 29724: std::move(__last, end(), __first); 29724: _M_erase_at_end(end() - __n); 29724: } 29724: return begin() + __elems_before; 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: iterator __cur = begin(); 29724: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 29724: *__cur = *__first; 29724: if (__first == __last) 29724: _M_erase_at_end(__cur); 29724: else 29724: _M_range_insert_aux(end(), __first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x) 29724: { 29724: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 29724: { 29724: iterator __new_start = _M_reserve_elements_at_front(__n); 29724: try 29724: { 29724: std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, 29724: __x, _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(__new_start._M_node, 29724: this->_M_impl._M_start._M_node); 29724: throw; 29724: } 29724: } 29724: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 29724: { 29724: iterator __new_finish = _M_reserve_elements_at_back(__n); 29724: try 29724: { 29724: std::__uninitialized_fill_a(this->_M_impl._M_finish, 29724: __new_finish, __x, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29724: __new_finish._M_node + 1); 29724: throw; 29724: } 29724: } 29724: else 29724: _M_insert_aux(__pos, __n, __x); 29724: } 29724: 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_default_append(size_type __n) 29724: { 29724: if (__n) 29724: { 29724: iterator __new_finish = _M_reserve_elements_at_back(__n); 29724: try 29724: { 29724: std::__uninitialized_default_a(this->_M_impl._M_finish, 29724: __new_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29724: __new_finish._M_node + 1); 29724: throw; 29724: } 29724: } 29724: } 29724: 29724: template 29724: bool 29724: deque<_Tp, _Alloc>:: 29724: _M_shrink_to_fit() 29724: { 29724: const difference_type __front_capacity 29724: = (this->_M_impl._M_start._M_cur - this->_M_impl._M_start._M_first); 29724: if (__front_capacity == 0) 29724: return false; 29724: 29724: const difference_type __back_capacity 29724: = (this->_M_impl._M_finish._M_last - this->_M_impl._M_finish._M_cur); 29724: if (__front_capacity + __back_capacity < _S_buffer_size()) 29724: return false; 29724: 29724: return std::__shrink_to_fit_aux::_S_do_it(*this); 29724: } 29724: 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_fill_initialize(const value_type& __value) 29724: { 29724: _Map_pointer __cur; 29724: try 29724: { 29724: for (__cur = this->_M_impl._M_start._M_node; 29724: __cur < this->_M_impl._M_finish._M_node; 29724: ++__cur) 29724: std::__uninitialized_fill_a(*__cur, *__cur + _S_buffer_size(), 29724: __value, _M_get_Tp_allocator()); 29724: std::__uninitialized_fill_a(this->_M_impl._M_finish._M_first, 29724: this->_M_impl._M_finish._M_cur, 29724: __value, _M_get_Tp_allocator()); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 29724: _M_get_Tp_allocator()); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: this->_M_initialize_map(0); 29724: try 29724: { 29724: for (; __first != __last; ++__first) 29724: 29724: emplace_back(*__first); 29724: 29724: 29724: 29724: } 29724: catch(...) 29724: { 29724: clear(); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __n = std::distance(__first, __last); 29724: this->_M_initialize_map(_S_check_init_len(__n, _M_get_Tp_allocator())); 29724: 29724: _Map_pointer __cur_node; 29724: try 29724: { 29724: for (__cur_node = this->_M_impl._M_start._M_node; 29724: __cur_node < this->_M_impl._M_finish._M_node; 29724: ++__cur_node) 29724: { 29724: if (__n < _S_buffer_size()) 29724: __builtin_unreachable(); 29724: 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, _S_buffer_size()); 29724: std::__uninitialized_copy_a(__first, __mid, *__cur_node, 29724: _M_get_Tp_allocator()); 29724: __first = __mid; 29724: } 29724: std::__uninitialized_copy_a(__first, __last, 29724: this->_M_impl._M_finish._M_first, 29724: _M_get_Tp_allocator()); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(this->_M_impl._M_start, 29724: iterator(*__cur_node, __cur_node), 29724: _M_get_Tp_allocator()); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_push_back_aux(_Args&&... __args) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: if (size() == max_size()) 29724: __throw_length_error( 29724: ("cannot create std::deque larger than max_size()")); 29724: 29724: _M_reserve_map_at_back(); 29724: *(this->_M_impl._M_finish._M_node + 1) = this->_M_allocate_node(); 29724: try 29724: { 29724: 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_finish._M_cur, 29724: std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node 29724: + 1); 29724: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_first; 29724: } 29724: catch(...) 29724: { 29724: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + 1)); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_push_front_aux(_Args&&... __args) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: if (size() == max_size()) 29724: __throw_length_error( 29724: ("cannot create std::deque larger than max_size()")); 29724: 29724: _M_reserve_map_at_front(); 29724: *(this->_M_impl._M_start._M_node - 1) = this->_M_allocate_node(); 29724: try 29724: { 29724: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node 29724: - 1); 29724: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_last - 1; 29724: 29724: _Alloc_traits::construct(this->_M_impl, 29724: this->_M_impl._M_start._M_cur, 29724: std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: } 29724: catch(...) 29724: { 29724: ++this->_M_impl._M_start; 29724: _M_deallocate_node(*(this->_M_impl._M_start._M_node - 1)); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: void deque<_Tp, _Alloc>:: 29724: _M_pop_back_aux() 29724: { 29724: _M_deallocate_node(this->_M_impl._M_finish._M_first); 29724: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node - 1); 29724: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_last - 1; 29724: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29724: this->_M_impl._M_finish._M_cur); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void deque<_Tp, _Alloc>:: 29724: _M_pop_front_aux() 29724: { 29724: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29724: this->_M_impl._M_start._M_cur); 29724: _M_deallocate_node(this->_M_impl._M_start._M_first); 29724: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node + 1); 29724: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_first; 29724: } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_range_insert_aux(iterator __pos, 29724: _InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { std::copy(__first, __last, std::inserter(*this, __pos)); } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_range_insert_aux(iterator __pos, 29724: _ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __n = std::distance(__first, __last); 29724: if (__builtin_expect(__n == 0, 0)) 29724: return; 29724: 29724: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 29724: { 29724: iterator __new_start = _M_reserve_elements_at_front(__n); 29724: try 29724: { 29724: std::__uninitialized_copy_a(__first, __last, __new_start, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(__new_start._M_node, 29724: this->_M_impl._M_start._M_node); 29724: throw; 29724: } 29724: } 29724: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 29724: { 29724: iterator __new_finish = _M_reserve_elements_at_back(__n); 29724: try 29724: { 29724: std::__uninitialized_copy_a(__first, __last, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29724: __new_finish._M_node + 1); 29724: throw; 29724: } 29724: } 29724: else 29724: _M_insert_aux(__pos, __first, __last, __n); 29724: } 29724: 29724: template 29724: 29724: template 29724: typename deque<_Tp, _Alloc>::iterator 29724: deque<_Tp, _Alloc>:: 29724: _M_emplace_aux(iterator __pos, _Args&&... __args) 29724: { 29724: value_type __x_copy(std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: difference_type __index = __pos - this->_M_impl._M_start; 29724: if (static_cast(__index) < size() / 2) 29724: { 29724: push_front(std::move(front())); 29724: iterator __front1 = this->_M_impl._M_start; 29724: ++__front1; 29724: iterator __front2 = __front1; 29724: ++__front2; 29724: __pos = this->_M_impl._M_start + __index; 29724: iterator __pos1 = __pos; 29724: ++__pos1; 29724: std::move(__front2, __pos1, __front1); 29724: } 29724: else 29724: { 29724: push_back(std::move(back())); 29724: iterator __back1 = this->_M_impl._M_finish; 29724: --__back1; 29724: iterator __back2 = __back1; 29724: --__back2; 29724: __pos = this->_M_impl._M_start + __index; 29724: std::move_backward(__pos, __back2, __back1); 29724: } 29724: *__pos = std::move(__x_copy); 29724: return __pos; 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x) 29724: { 29724: const difference_type __elems_before = __pos - this->_M_impl._M_start; 29724: const size_type __length = this->size(); 29724: value_type __x_copy = __x; 29724: if (__elems_before < difference_type(__length / 2)) 29724: { 29724: iterator __new_start = _M_reserve_elements_at_front(__n); 29724: iterator __old_start = this->_M_impl._M_start; 29724: __pos = this->_M_impl._M_start + __elems_before; 29724: try 29724: { 29724: if (__elems_before >= difference_type(__n)) 29724: { 29724: iterator __start_n = (this->_M_impl._M_start 29724: + difference_type(__n)); 29724: std::__uninitialized_move_a(this->_M_impl._M_start, 29724: __start_n, __new_start, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: std::move(__start_n, __pos, __old_start); 29724: std::fill(__pos - difference_type(__n), __pos, __x_copy); 29724: } 29724: else 29724: { 29724: std::__uninitialized_move_fill(this->_M_impl._M_start, 29724: __pos, __new_start, 29724: this->_M_impl._M_start, 29724: __x_copy, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: std::fill(__old_start, __pos, __x_copy); 29724: } 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(__new_start._M_node, 29724: this->_M_impl._M_start._M_node); 29724: throw; 29724: } 29724: } 29724: else 29724: { 29724: iterator __new_finish = _M_reserve_elements_at_back(__n); 29724: iterator __old_finish = this->_M_impl._M_finish; 29724: const difference_type __elems_after = 29724: difference_type(__length) - __elems_before; 29724: __pos = this->_M_impl._M_finish - __elems_after; 29724: try 29724: { 29724: if (__elems_after > difference_type(__n)) 29724: { 29724: iterator __finish_n = (this->_M_impl._M_finish 29724: - difference_type(__n)); 29724: std::__uninitialized_move_a(__finish_n, 29724: this->_M_impl._M_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: std::move_backward(__pos, __finish_n, __old_finish); 29724: std::fill(__pos, __pos + difference_type(__n), __x_copy); 29724: } 29724: else 29724: { 29724: std::__uninitialized_fill_move(this->_M_impl._M_finish, 29724: __pos + difference_type(__n), 29724: __x_copy, __pos, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: std::fill(__pos, __old_finish, __x_copy); 29724: } 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29724: __new_finish._M_node + 1); 29724: throw; 29724: } 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_insert_aux(iterator __pos, 29724: _ForwardIterator __first, _ForwardIterator __last, 29724: size_type __n) 29724: { 29724: const difference_type __elemsbefore = __pos - this->_M_impl._M_start; 29724: const size_type __length = size(); 29724: if (static_cast(__elemsbefore) < __length / 2) 29724: { 29724: iterator __new_start = _M_reserve_elements_at_front(__n); 29724: iterator __old_start = this->_M_impl._M_start; 29724: __pos = this->_M_impl._M_start + __elemsbefore; 29724: try 29724: { 29724: if (__elemsbefore >= difference_type(__n)) 29724: { 29724: iterator __start_n = (this->_M_impl._M_start 29724: + difference_type(__n)); 29724: std::__uninitialized_move_a(this->_M_impl._M_start, 29724: __start_n, __new_start, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: std::move(__start_n, __pos, __old_start); 29724: std::copy(__first, __last, __pos - difference_type(__n)); 29724: } 29724: else 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, difference_type(__n) - __elemsbefore); 29724: std::__uninitialized_move_copy(this->_M_impl._M_start, 29724: __pos, __first, __mid, 29724: __new_start, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_start = __new_start; 29724: std::copy(__mid, __last, __old_start); 29724: } 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(__new_start._M_node, 29724: this->_M_impl._M_start._M_node); 29724: throw; 29724: } 29724: } 29724: else 29724: { 29724: iterator __new_finish = _M_reserve_elements_at_back(__n); 29724: iterator __old_finish = this->_M_impl._M_finish; 29724: const difference_type __elemsafter = 29724: difference_type(__length) - __elemsbefore; 29724: __pos = this->_M_impl._M_finish - __elemsafter; 29724: try 29724: { 29724: if (__elemsafter > difference_type(__n)) 29724: { 29724: iterator __finish_n = (this->_M_impl._M_finish 29724: - difference_type(__n)); 29724: std::__uninitialized_move_a(__finish_n, 29724: this->_M_impl._M_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: std::move_backward(__pos, __finish_n, __old_finish); 29724: std::copy(__first, __last, __pos); 29724: } 29724: else 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, __elemsafter); 29724: std::__uninitialized_copy_move(__mid, __last, __pos, 29724: this->_M_impl._M_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __new_finish; 29724: std::copy(__first, __mid, __pos); 29724: } 29724: } 29724: catch(...) 29724: { 29724: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29724: __new_finish._M_node + 1); 29724: throw; 29724: } 29724: } 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_destroy_data_aux(iterator __first, iterator __last) 29724: { 29724: for (_Map_pointer __node = __first._M_node + 1; 29724: __node < __last._M_node; ++__node) 29724: std::_Destroy(*__node, *__node + _S_buffer_size(), 29724: _M_get_Tp_allocator()); 29724: 29724: if (__first._M_node != __last._M_node) 29724: { 29724: std::_Destroy(__first._M_cur, __first._M_last, 29724: _M_get_Tp_allocator()); 29724: std::_Destroy(__last._M_first, __last._M_cur, 29724: _M_get_Tp_allocator()); 29724: } 29724: else 29724: std::_Destroy(__first._M_cur, __last._M_cur, 29724: _M_get_Tp_allocator()); 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_new_elements_at_front(size_type __new_elems) 29724: { 29724: if (this->max_size() - this->size() < __new_elems) 29724: __throw_length_error(("deque::_M_new_elements_at_front")); 29724: 29724: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 29724: / _S_buffer_size()); 29724: _M_reserve_map_at_front(__new_nodes); 29724: size_type __i; 29724: try 29724: { 29724: for (__i = 1; __i <= __new_nodes; ++__i) 29724: *(this->_M_impl._M_start._M_node - __i) = this->_M_allocate_node(); 29724: } 29724: catch(...) 29724: { 29724: for (size_type __j = 1; __j < __i; ++__j) 29724: _M_deallocate_node(*(this->_M_impl._M_start._M_node - __j)); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_new_elements_at_back(size_type __new_elems) 29724: { 29724: if (this->max_size() - this->size() < __new_elems) 29724: __throw_length_error(("deque::_M_new_elements_at_back")); 29724: 29724: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 29724: / _S_buffer_size()); 29724: _M_reserve_map_at_back(__new_nodes); 29724: size_type __i; 29724: try 29724: { 29724: for (__i = 1; __i <= __new_nodes; ++__i) 29724: *(this->_M_impl._M_finish._M_node + __i) = this->_M_allocate_node(); 29724: } 29724: catch(...) 29724: { 29724: for (size_type __j = 1; __j < __i; ++__j) 29724: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + __j)); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: deque<_Tp, _Alloc>:: 29724: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front) 29724: { 29724: const size_type __old_num_nodes 29724: = this->_M_impl._M_finish._M_node - this->_M_impl._M_start._M_node + 1; 29724: const size_type __new_num_nodes = __old_num_nodes + __nodes_to_add; 29724: 29724: _Map_pointer __new_nstart; 29724: if (this->_M_impl._M_map_size > 2 * __new_num_nodes) 29724: { 29724: __new_nstart = this->_M_impl._M_map + (this->_M_impl._M_map_size 29724: - __new_num_nodes) / 2 29724: + (__add_at_front ? __nodes_to_add : 0); 29724: if (__new_nstart < this->_M_impl._M_start._M_node) 29724: std::copy(this->_M_impl._M_start._M_node, 29724: this->_M_impl._M_finish._M_node + 1, 29724: __new_nstart); 29724: else 29724: std::copy_backward(this->_M_impl._M_start._M_node, 29724: this->_M_impl._M_finish._M_node + 1, 29724: __new_nstart + __old_num_nodes); 29724: } 29724: else 29724: { 29724: size_type __new_map_size = this->_M_impl._M_map_size 29724: + std::max(this->_M_impl._M_map_size, 29724: __nodes_to_add) + 2; 29724: 29724: _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); 29724: __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 29724: + (__add_at_front ? __nodes_to_add : 0); 29724: std::copy(this->_M_impl._M_start._M_node, 29724: this->_M_impl._M_finish._M_node + 1, 29724: __new_nstart); 29724: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29724: 29724: this->_M_impl._M_map = __new_map; 29724: this->_M_impl._M_map_size = __new_map_size; 29724: } 29724: 29724: this->_M_impl._M_start._M_set_node(__new_nstart); 29724: this->_M_impl._M_finish._M_set_node(__new_nstart + __old_num_nodes - 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __first, 29724: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __last, 29724: const _VTp& __value) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29724: if (__first._M_node != __last._M_node) 29724: { 29724: std::__fill_a1(__first._M_cur, __first._M_last, __value); 29724: 29724: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 29724: __node < __last._M_node; ++__node) 29724: std::__fill_a1(*__node, *__node + _Iter::_S_buffer_size(), __value); 29724: 29724: std::__fill_a1(__last._M_first, __last._M_cur, __value); 29724: } 29724: else 29724: std::__fill_a1(__first._M_cur, __last._M_cur, __value); 29724: } 29724: 29724: template 29724: _OI 29724: __copy_move_dit(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29724: _OI __result) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29724: if (__first._M_node != __last._M_node) 29724: { 29724: __result 29724: = std::__copy_move_a1<_IsMove>(__first._M_cur, __first._M_last, 29724: __result); 29724: 29724: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 29724: __node != __last._M_node; ++__node) 29724: __result 29724: = std::__copy_move_a1<_IsMove>(*__node, 29724: *__node + _Iter::_S_buffer_size(), 29724: __result); 29724: 29724: return std::__copy_move_a1<_IsMove>(__last._M_first, __last._M_cur, 29724: __result); 29724: } 29724: 29724: return std::__copy_move_a1<_IsMove>(__first._M_cur, __last._M_cur, 29724: __result); 29724: } 29724: 29724: template 29724: _OI 29724: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29724: _OI __result) 29724: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29724: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 29724: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29724: __copy_move_a1(_II __first, _II __last, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29724: typedef typename _Iter::difference_type difference_type; 29724: 29724: difference_type __len = __last - __first; 29724: while (__len > 0) 29724: { 29724: const difference_type __clen 29724: = std::min(__len, __result._M_last - __result._M_cur); 29724: std::__copy_move_a1<_IsMove>(__first, __first + __clen, 29724: __result._M_cur); 29724: 29724: __first += __clen; 29724: __result += __clen; 29724: __len -= __clen; 29724: } 29724: 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_char<_CharT>::__value, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29724: __copy_move_a2( 29724: istreambuf_iterator<_CharT, char_traits<_CharT> > __first, 29724: istreambuf_iterator<_CharT, char_traits<_CharT> > __last, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result) 29724: { 29724: if (__first == __last) 29724: return __result; 29724: 29724: for (;;) 29724: { 29724: const std::ptrdiff_t __len = __result._M_last - __result._M_cur; 29724: const std::ptrdiff_t __nb 29724: = std::__copy_n_a(__first, __len, __result._M_cur, false) 29724: - __result._M_cur; 29724: __result += __nb; 29724: 29724: if (__nb != __len) 29724: break; 29724: } 29724: 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_char<_CharT>::__value, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29724: __copy_n_a( 29724: istreambuf_iterator<_CharT, char_traits<_CharT> > __it, _Size __size, 29724: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result, 29724: bool __strict) 29724: { 29724: if (__size == 0) 29724: return __result; 29724: 29724: do 29724: { 29724: const _Size __len 29724: = std::min<_Size>(__result._M_last - __result._M_cur, __size); 29724: std::__copy_n_a(__it, __len, __result._M_cur, __strict); 29724: __result += __len; 29724: __size -= __len; 29724: } 29724: while (__size != 0); 29724: return __result; 29724: } 29724: 29724: template 29724: _OI 29724: __copy_move_backward_dit( 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29724: _OI __result) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29724: if (__first._M_node != __last._M_node) 29724: { 29724: __result = std::__copy_move_backward_a1<_IsMove>( 29724: __last._M_first, __last._M_cur, __result); 29724: 29724: for (typename _Iter::_Map_pointer __node = __last._M_node - 1; 29724: __node != __first._M_node; --__node) 29724: __result = std::__copy_move_backward_a1<_IsMove>( 29724: *__node, *__node + _Iter::_S_buffer_size(), __result); 29724: 29724: return std::__copy_move_backward_a1<_IsMove>( 29724: __first._M_cur, __first._M_last, __result); 29724: } 29724: 29724: return std::__copy_move_backward_a1<_IsMove>( 29724: __first._M_cur, __last._M_cur, __result); 29724: } 29724: 29724: template 29724: _OI 29724: __copy_move_backward_a1( 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29724: _OI __result) 29724: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29724: __copy_move_backward_a1( 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 29724: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 29724: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 29724: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29724: __copy_move_backward_a1(_II __first, _II __last, 29724: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29724: typedef typename _Iter::difference_type difference_type; 29724: 29724: difference_type __len = __last - __first; 29724: while (__len > 0) 29724: { 29724: difference_type __rlen = __result._M_cur - __result._M_first; 29724: _Tp* __rend = __result._M_cur; 29724: if (!__rlen) 29724: { 29724: __rlen = _Iter::_S_buffer_size(); 29724: __rend = *(__result._M_node - 1) + __rlen; 29724: } 29724: 29724: const difference_type __clen = std::min(__len, __rlen); 29724: std::__copy_move_backward_a1<_IsMove>(__last - __clen, __last, __rend); 29724: 29724: __last -= __clen; 29724: __result -= __clen; 29724: __len -= __clen; 29724: } 29724: 29724: return __result; 29724: } 29724: 29724: template 29724: bool 29724: __equal_dit( 29724: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __first1, 29724: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __last1, 29724: _II __first2) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29724: if (__first1._M_node != __last1._M_node) 29724: { 29724: if (!std::__equal_aux1(__first1._M_cur, __first1._M_last, __first2)) 29724: return false; 29724: 29724: __first2 += __first1._M_last - __first1._M_cur; 29724: for (typename _Iter::_Map_pointer __node = __first1._M_node + 1; 29724: __node != __last1._M_node; 29724: __first2 += _Iter::_S_buffer_size(), ++__node) 29724: if (!std::__equal_aux1(*__node, *__node + _Iter::_S_buffer_size(), 29724: __first2)) 29724: return false; 29724: 29724: return std::__equal_aux1(__last1._M_first, __last1._M_cur, __first2); 29724: } 29724: 29724: return std::__equal_aux1(__first1._M_cur, __last1._M_cur, __first2); 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, bool>::__type 29724: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first1, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last1, 29724: _II __first2) 29724: { return std::__equal_dit(__first1, __last1, __first2); } 29724: 29724: template 29724: bool 29724: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2) 29724: { return std::__equal_dit(__first1, __last1, __first2); } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if< 29724: __is_random_access_iter<_II>::__value, bool>::__type 29724: __equal_aux1(_II __first1, _II __last1, 29724: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first2) 29724: { 29724: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29724: typedef typename _Iter::difference_type difference_type; 29724: 29724: difference_type __len = __last1 - __first1; 29724: while (__len > 0) 29724: { 29724: const difference_type __clen 29724: = std::min(__len, __first2._M_last - __first2._M_cur); 29724: if (!std::__equal_aux1(__first1, __first1 + __clen, __first2._M_cur)) 29724: return false; 29724: 29724: __first1 += __clen; 29724: __len -= __clen; 29724: __first2 += __clen; 29724: } 29724: 29724: return true; 29724: } 29724: 29724: template 29724: int 29724: __lex_cmp_dit( 29724: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __first1, 29724: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __last1, 29724: const _Tp2* __first2, const _Tp2* __last2) 29724: { 29724: const bool __simple = 29724: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 29724: && __is_pointer<_Ptr>::__value 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ); 29724: typedef std::__lexicographical_compare<__simple> _Lc; 29724: 29724: while (__first1._M_node != __last1._M_node) 29724: { 29724: const ptrdiff_t __len1 = __first1._M_last - __first1._M_cur; 29724: const ptrdiff_t __len2 = __last2 - __first2; 29724: const ptrdiff_t __len = std::min(__len1, __len2); 29724: 29724: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_last, 29724: __first2, __first2 + __len)) 29724: return __ret; 29724: 29724: __first1 += __len; 29724: __first2 += __len; 29724: } 29724: return _Lc::__3way(__first1._M_cur, __last1._M_cur, 29724: __first2, __last2); 29724: } 29724: 29724: template 29724: inline bool 29724: __lexicographical_compare_aux1( 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29724: _Tp2* __first2, _Tp2* __last2) 29724: { return std::__lex_cmp_dit(__first1, __last1, __first2, __last2) < 0; } 29724: 29724: template 29724: inline bool 29724: __lexicographical_compare_aux1(_Tp1* __first1, _Tp1* __last1, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 29724: { return std::__lex_cmp_dit(__first2, __last2, __first1, __last1) > 0; } 29724: 29724: template 29724: inline bool 29724: __lexicographical_compare_aux1( 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29724: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 29724: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 29724: { 29724: const bool __simple = 29724: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 29724: && __is_pointer<_Ptr1>::__value 29724: && __is_pointer<_Ptr2>::__value 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ); 29724: typedef std::__lexicographical_compare<__simple> _Lc; 29724: 29724: while (__first1 != __last1) 29724: { 29724: const ptrdiff_t __len2 = __first2._M_node == __last2._M_node 29724: ? __last2._M_cur - __first2._M_cur 29724: : __first2._M_last - __first2._M_cur; 29724: if (__len2 == 0) 29724: return false; 29724: const ptrdiff_t __len1 = __first1._M_node == __last1._M_node 29724: ? __last1._M_cur - __first1._M_cur 29724: : __first1._M_last - __first1._M_cur; 29724: const ptrdiff_t __len = std::min(__len1, __len2); 29724: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_cur + __len, 29724: __first2._M_cur, __first2._M_cur + __len)) 29724: return __ret < 0; 29724: 29724: __first1 += __len; 29724: __first2 += __len; 29724: } 29724: 29724: return __last2 != __first2; 29724: } 29724: 29724: 29724: } 29724: # 70 "/usr/include/c++/14/deque" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 75 "/usr/include/c++/14/deque" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/memory_resource.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstddef" 1 3 29724: # 42 "/usr/include/c++/14/cstddef" 3 29724: 29724: # 43 "/usr/include/c++/14/cstddef" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 145 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29724: typedef int ptrdiff_t; 29724: # 214 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29724: typedef unsigned int size_t; 29724: # 425 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29724: typedef struct { 29724: long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); 29724: long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); 29724: # 436 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29724: } max_align_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef decltype(nullptr) nullptr_t; 29724: # 51 "/usr/include/c++/14/cstddef" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 54 "/usr/include/c++/14/cstddef" 2 3 29724: 29724: extern "C++" 29724: { 29724: 29724: namespace std 29724: { 29724: 29724: using ::max_align_t; 29724: } 29724: 29724: 29724: 29724: namespace std 29724: { 29724: 29724: 29724: enum class byte : unsigned char {}; 29724: 29724: template struct __byte_operand { }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: 29724: 29724: 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: template<> struct __byte_operand { using __type = byte; }; 29724: # 109 "/usr/include/c++/14/cstddef" 3 29724: template 29724: struct __byte_operand 29724: : __byte_operand<_IntegerType> { }; 29724: template 29724: struct __byte_operand 29724: : __byte_operand<_IntegerType> { }; 29724: template 29724: struct __byte_operand 29724: : __byte_operand<_IntegerType> { }; 29724: 29724: template 29724: using __byte_op_t = typename __byte_operand<_IntegerType>::__type; 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr __byte_op_t<_IntegerType> 29724: operator<<(byte __b, _IntegerType __shift) noexcept 29724: { return (byte)(unsigned char)((unsigned)__b << __shift); } 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr __byte_op_t<_IntegerType> 29724: operator>>(byte __b, _IntegerType __shift) noexcept 29724: { return (byte)(unsigned char)((unsigned)__b >> __shift); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte 29724: operator|(byte __l, byte __r) noexcept 29724: { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte 29724: operator&(byte __l, byte __r) noexcept 29724: { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte 29724: operator^(byte __l, byte __r) noexcept 29724: { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte 29724: operator~(byte __b) noexcept 29724: { return (byte)(unsigned char)~(unsigned)__b; } 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr __byte_op_t<_IntegerType>& 29724: operator<<=(byte& __b, _IntegerType __shift) noexcept 29724: { return __b = __b << __shift; } 29724: 29724: template 29724: [[__gnu__::__always_inline__]] 29724: constexpr __byte_op_t<_IntegerType>& 29724: operator>>=(byte& __b, _IntegerType __shift) noexcept 29724: { return __b = __b >> __shift; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte& 29724: operator|=(byte& __l, byte __r) noexcept 29724: { return __l = __l | __r; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte& 29724: operator&=(byte& __l, byte __r) noexcept 29724: { return __l = __l & __r; } 29724: 29724: [[__gnu__::__always_inline__]] 29724: constexpr byte& 29724: operator^=(byte& __l, byte __r) noexcept 29724: { return __l = __l ^ __r; } 29724: 29724: template 29724: [[nodiscard,__gnu__::__always_inline__]] 29724: constexpr _IntegerType 29724: to_integer(__byte_op_t<_IntegerType> __b) noexcept 29724: { return _IntegerType(__b); } 29724: 29724: 29724: } 29724: 29724: } 29724: # 39 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/uses_allocator.h" 1 3 29724: # 40 "/usr/include/c++/14/bits/uses_allocator.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: struct __erased_type { }; 29724: 29724: 29724: 29724: 29724: template 29724: using __is_erased_or_convertible 29724: = __or_, is_same<_Tp, __erased_type>>; 29724: 29724: 29724: struct allocator_arg_t { explicit allocator_arg_t() = default; }; 29724: 29724: inline constexpr allocator_arg_t allocator_arg = 29724: allocator_arg_t(); 29724: 29724: template> 29724: struct __uses_allocator_helper 29724: : false_type { }; 29724: 29724: template 29724: struct __uses_allocator_helper<_Tp, _Alloc, 29724: __void_t> 29724: : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type 29724: { }; 29724: 29724: 29724: template 29724: struct uses_allocator 29724: : __uses_allocator_helper<_Tp, _Alloc>::type 29724: { }; 29724: 29724: struct __uses_alloc_base { }; 29724: 29724: struct __uses_alloc0 : __uses_alloc_base 29724: { 29724: struct _Sink { void operator=(const void*) { } } _M_a; 29724: }; 29724: 29724: template 29724: struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; 29724: 29724: template 29724: struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; 29724: 29724: template 29724: struct __uses_alloc; 29724: 29724: template 29724: struct __uses_alloc 29724: : __conditional_t< 29724: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, 29724: __uses_alloc1<_Alloc>, 29724: __uses_alloc2<_Alloc>> 29724: { 29724: 29724: 29724: static_assert(__or_< 29724: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, 29724: is_constructible<_Tp, _Args..., const _Alloc&>>::value, 29724: "construction with an allocator must be possible" 29724: " if uses_allocator is true"); 29724: }; 29724: 29724: template 29724: struct __uses_alloc 29724: : __uses_alloc0 { }; 29724: 29724: template 29724: using __uses_alloc_t = 29724: __uses_alloc::value, _Tp, _Alloc, _Args...>; 29724: 29724: template 29724: 29724: inline __uses_alloc_t<_Tp, _Alloc, _Args...> 29724: __use_alloc(const _Alloc& __a) 29724: { 29724: __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; 29724: __ret._M_a = std::__addressof(__a); 29724: return __ret; 29724: } 29724: 29724: template 29724: void 29724: __use_alloc(const _Alloc&&) = delete; 29724: 29724: 29724: template 29724: inline constexpr bool uses_allocator_v = 29724: uses_allocator<_Tp, _Alloc>::value; 29724: 29724: 29724: template class _Predicate, 29724: typename _Tp, typename _Alloc, typename... _Args> 29724: struct __is_uses_allocator_predicate 29724: : __conditional_t::value, 29724: __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, 29724: _Predicate<_Tp, _Args..., _Alloc>>, 29724: _Predicate<_Tp, _Args...>> { }; 29724: 29724: template 29724: struct __is_uses_allocator_constructible 29724: : __is_uses_allocator_predicate 29724: { }; 29724: 29724: 29724: template 29724: inline constexpr bool __is_uses_allocator_constructible_v = 29724: __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 29724: 29724: 29724: template 29724: struct __is_nothrow_uses_allocator_constructible 29724: : __is_uses_allocator_predicate 29724: { }; 29724: 29724: 29724: 29724: template 29724: inline constexpr bool 29724: __is_nothrow_uses_allocator_constructible_v = 29724: __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 29724: 29724: 29724: template 29724: void __uses_allocator_construct_impl(__uses_alloc0, _Tp* __ptr, 29724: _Args&&... __args) 29724: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } 29724: 29724: template 29724: void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, 29724: _Args&&... __args) 29724: { 29724: ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: template 29724: void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, 29724: _Args&&... __args) 29724: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } 29724: 29724: template 29724: void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, 29724: _Args&&... __args) 29724: { 29724: std::__uses_allocator_construct_impl( 29724: std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: 29724: } 29724: # 41 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/uses_allocator_args.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 36 "/usr/include/c++/14/bits/uses_allocator_args.h" 2 3 29724: # 42 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/tuple" 1 3 29724: # 32 "/usr/include/c++/14/tuple" 3 29724: 29724: # 33 "/usr/include/c++/14/tuple" 3 29724: # 54 "/usr/include/c++/14/tuple" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 55 "/usr/include/c++/14/tuple" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class tuple; 29724: 29724: template 29724: struct __is_empty_non_tuple : is_empty<_Tp> { }; 29724: 29724: 29724: template 29724: struct __is_empty_non_tuple> : false_type { }; 29724: 29724: 29724: template 29724: using __empty_not_final 29724: = __conditional_t<__is_final(_Tp), false_type, 29724: __is_empty_non_tuple<_Tp>>; 29724: 29724: template::value> 29724: struct _Head_base; 29724: 29724: 29724: template 29724: struct _Head_base<_Idx, _Head, true> 29724: { 29724: constexpr _Head_base() 29724: : _M_head_impl() { } 29724: 29724: constexpr _Head_base(const _Head& __h) 29724: : _M_head_impl(__h) { } 29724: 29724: constexpr _Head_base(const _Head_base&) = default; 29724: constexpr _Head_base(_Head_base&&) = default; 29724: 29724: template 29724: constexpr _Head_base(_UHead&& __h) 29724: : _M_head_impl(std::forward<_UHead>(__h)) { } 29724: 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc0) 29724: : _M_head_impl() { } 29724: 29724: template 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 29724: : _M_head_impl(allocator_arg, *__a._M_a) { } 29724: 29724: template 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 29724: : _M_head_impl(*__a._M_a) { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc0, _UHead&& __uhead) 29724: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 29724: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 29724: { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 29724: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 29724: 29724: static constexpr _Head& 29724: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 29724: 29724: static constexpr const _Head& 29724: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 29724: 29724: [[__no_unique_address__]] _Head _M_head_impl; 29724: }; 29724: # 195 "/usr/include/c++/14/tuple" 3 29724: template 29724: struct _Head_base<_Idx, _Head, false> 29724: { 29724: constexpr _Head_base() 29724: : _M_head_impl() { } 29724: 29724: constexpr _Head_base(const _Head& __h) 29724: : _M_head_impl(__h) { } 29724: 29724: constexpr _Head_base(const _Head_base&) = default; 29724: constexpr _Head_base(_Head_base&&) = default; 29724: 29724: template 29724: constexpr _Head_base(_UHead&& __h) 29724: : _M_head_impl(std::forward<_UHead>(__h)) { } 29724: 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc0) 29724: : _M_head_impl() { } 29724: 29724: template 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 29724: : _M_head_impl(allocator_arg, *__a._M_a) { } 29724: 29724: template 29724: 29724: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 29724: : _M_head_impl(*__a._M_a) { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc0, _UHead&& __uhead) 29724: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 29724: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 29724: { } 29724: 29724: template 29724: 29724: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 29724: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 29724: 29724: static constexpr _Head& 29724: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 29724: 29724: static constexpr const _Head& 29724: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 29724: 29724: _Head _M_head_impl; 29724: }; 29724: # 274 "/usr/include/c++/14/tuple" 3 29724: template 29724: struct _Tuple_impl; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Tuple_impl<_Idx, _Head, _Tail...> 29724: : public _Tuple_impl<_Idx + 1, _Tail...>, 29724: private _Head_base<_Idx, _Head> 29724: { 29724: template friend struct _Tuple_impl; 29724: 29724: typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; 29724: typedef _Head_base<_Idx, _Head> _Base; 29724: 29724: static constexpr _Head& 29724: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29724: 29724: static constexpr const _Head& 29724: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29724: 29724: static constexpr _Inherited& 29724: _M_tail(_Tuple_impl& __t) noexcept { return __t; } 29724: 29724: static constexpr const _Inherited& 29724: _M_tail(const _Tuple_impl& __t) noexcept { return __t; } 29724: 29724: constexpr _Tuple_impl() 29724: : _Inherited(), _Base() { } 29724: 29724: explicit constexpr 29724: _Tuple_impl(const _Head& __head, const _Tail&... __tail) 29724: : _Inherited(__tail...), _Base(__head) 29724: { } 29724: 29724: template> 29724: explicit constexpr 29724: _Tuple_impl(_UHead&& __head, _UTail&&... __tail) 29724: : _Inherited(std::forward<_UTail>(__tail)...), 29724: _Base(std::forward<_UHead>(__head)) 29724: { } 29724: 29724: constexpr _Tuple_impl(const _Tuple_impl&) = default; 29724: 29724: 29724: 29724: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 29724: 29724: _Tuple_impl(_Tuple_impl&&) = default; 29724: 29724: template 29724: constexpr 29724: _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) 29724: : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 29724: _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29724: : _Inherited(std::move 29724: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 29724: _Base(std::forward<_UHead> 29724: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 29724: { } 29724: # 370 "/usr/include/c++/14/tuple" 3 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Inherited(__tag, __a), 29724: _Base(__tag, __use_alloc<_Head>(__a)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: const _Head& __head, const _Tail&... __tail) 29724: : _Inherited(__tag, __a, __tail...), 29724: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) 29724: { } 29724: 29724: template> 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: _UHead&& __head, _UTail&&... __tail) 29724: : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), 29724: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29724: std::forward<_UHead>(__head)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: const _Tuple_impl& __in) 29724: : _Inherited(__tag, __a, _M_tail(__in)), 29724: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: _Tuple_impl&& __in) 29724: : _Inherited(__tag, __a, std::move(_M_tail(__in))), 29724: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 29724: std::forward<_Head>(_M_head(__in))) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) 29724: : _Inherited(__tag, __a, 29724: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), 29724: _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 29724: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29724: _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29724: : _Inherited(__tag, __a, std::move 29724: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 29724: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29724: std::forward<_UHead> 29724: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 29724: { } 29724: # 465 "/usr/include/c++/14/tuple" 3 29724: template 29724: 29724: void 29724: _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) 29724: { 29724: _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); 29724: _M_tail(*this)._M_assign( 29724: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29724: { 29724: _M_head(*this) = std::forward<_UHead> 29724: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); 29724: _M_tail(*this)._M_assign( 29724: std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); 29724: } 29724: # 525 "/usr/include/c++/14/tuple" 3 29724: protected: 29724: 29724: void 29724: _M_swap(_Tuple_impl& __in) 29724: { 29724: using std::swap; 29724: swap(_M_head(*this), _M_head(__in)); 29724: _Inherited::_M_swap(_M_tail(__in)); 29724: } 29724: # 544 "/usr/include/c++/14/tuple" 3 29724: }; 29724: 29724: 29724: template 29724: struct _Tuple_impl<_Idx, _Head> 29724: : private _Head_base<_Idx, _Head> 29724: { 29724: template friend struct _Tuple_impl; 29724: 29724: typedef _Head_base<_Idx, _Head> _Base; 29724: 29724: static constexpr _Head& 29724: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29724: 29724: static constexpr const _Head& 29724: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29724: 29724: constexpr 29724: _Tuple_impl() 29724: : _Base() { } 29724: 29724: explicit constexpr 29724: _Tuple_impl(const _Head& __head) 29724: : _Base(__head) 29724: { } 29724: 29724: template 29724: explicit constexpr 29724: _Tuple_impl(_UHead&& __head) 29724: : _Base(std::forward<_UHead>(__head)) 29724: { } 29724: 29724: constexpr _Tuple_impl(const _Tuple_impl&) = default; 29724: 29724: 29724: 29724: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 29724: 29724: 29724: 29724: 29724: constexpr 29724: _Tuple_impl(_Tuple_impl&& __in) 29724: noexcept(is_nothrow_move_constructible<_Head>::value) 29724: : _Base(static_cast<_Base&&>(__in)) 29724: { } 29724: 29724: 29724: template 29724: constexpr 29724: _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) 29724: : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) 29724: : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 29724: { } 29724: # 626 "/usr/include/c++/14/tuple" 3 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Base(__tag, __use_alloc<_Head>(__a)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: const _Head& __head) 29724: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: _UHead&& __head) 29724: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29724: std::forward<_UHead>(__head)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: const _Tuple_impl& __in) 29724: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: _Tuple_impl&& __in) 29724: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 29724: std::forward<_Head>(_M_head(__in))) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: const _Tuple_impl<_Idx, _UHead>& __in) 29724: : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 29724: _Tuple_impl<_Idx, _UHead>::_M_head(__in)) 29724: { } 29724: 29724: template 29724: 29724: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29724: _Tuple_impl<_Idx, _UHead>&& __in) 29724: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29724: std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 29724: { } 29724: # 705 "/usr/include/c++/14/tuple" 3 29724: template 29724: 29724: void 29724: _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) 29724: { 29724: _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) 29724: { 29724: _M_head(*this) 29724: = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); 29724: } 29724: # 751 "/usr/include/c++/14/tuple" 3 29724: protected: 29724: 29724: void 29724: _M_swap(_Tuple_impl& __in) 29724: { 29724: using std::swap; 29724: swap(_M_head(*this), _M_head(__in)); 29724: } 29724: # 768 "/usr/include/c++/14/tuple" 3 29724: }; 29724: 29724: 29724: 29724: template 29724: struct _TupleConstraints 29724: { 29724: template 29724: using __constructible = __and_...>; 29724: 29724: template 29724: using __convertible = __and_...>; 29724: 29724: 29724: 29724: 29724: template 29724: static constexpr bool __is_implicitly_constructible() 29724: { 29724: return __and_<__constructible<_UTypes...>, 29724: __convertible<_UTypes...> 29724: >::value; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: static constexpr bool __is_explicitly_constructible() 29724: { 29724: return __and_<__constructible<_UTypes...>, 29724: __not_<__convertible<_UTypes...>> 29724: >::value; 29724: } 29724: 29724: static constexpr bool __is_implicitly_default_constructible() 29724: { 29724: return __and_... 29724: >::value; 29724: } 29724: 29724: static constexpr bool __is_explicitly_default_constructible() 29724: { 29724: return __and_..., 29724: __not_<__and_< 29724: std::__is_implicitly_default_constructible<_Types>...> 29724: >>::value; 29724: } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct _TupleConstraints 29724: { 29724: template 29724: static constexpr bool __is_implicitly_constructible() 29724: { return false; } 29724: 29724: template 29724: static constexpr bool __is_explicitly_constructible() 29724: { return false; } 29724: }; 29724: 29724: 29724: template 29724: class tuple : public _Tuple_impl<0, _Elements...> 29724: { 29724: using _Inherited = _Tuple_impl<0, _Elements...>; 29724: # 1351 "/usr/include/c++/14/tuple" 3 29724: template 29724: using _TCC = _TupleConstraints<_Cond, _Elements...>; 29724: 29724: 29724: template 29724: using _ImplicitDefaultCtor = __enable_if_t< 29724: _TCC<_Dummy>::__is_implicitly_default_constructible(), 29724: bool>; 29724: 29724: 29724: template 29724: using _ExplicitDefaultCtor = __enable_if_t< 29724: _TCC<_Dummy>::__is_explicitly_default_constructible(), 29724: bool>; 29724: 29724: 29724: template 29724: using _ImplicitCtor = __enable_if_t< 29724: _TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), 29724: bool>; 29724: 29724: 29724: template 29724: using _ExplicitCtor = __enable_if_t< 29724: _TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), 29724: bool>; 29724: 29724: 29724: template 29724: static constexpr bool __nothrow_constructible() 29724: { 29724: return 29724: __and_...>::value; 29724: } 29724: 29724: 29724: template 29724: static constexpr bool __valid_args() 29724: { 29724: return sizeof...(_Elements) == 1 29724: && !is_same>::value; 29724: } 29724: 29724: 29724: template 29724: static constexpr bool __valid_args() 29724: { return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } 29724: # 1408 "/usr/include/c++/14/tuple" 3 29724: template> 29724: struct _UseOtherCtor 29724: : false_type 29724: { }; 29724: 29724: 29724: template 29724: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> 29724: : __or_, is_constructible<_Tp, _Tuple>>::type 29724: { }; 29724: 29724: 29724: template 29724: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> 29724: : true_type 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: static constexpr bool __use_other_ctor() 29724: { return _UseOtherCtor<_Tuple>::value; } 29724: # 1454 "/usr/include/c++/14/tuple" 3 29724: public: 29724: template::value> = true> 29724: constexpr 29724: tuple() 29724: noexcept(__and_...>::value) 29724: : _Inherited() { } 29724: 29724: template::value> = false> 29724: explicit constexpr 29724: tuple() 29724: noexcept(__and_...>::value) 29724: : _Inherited() { } 29724: 29724: template= 1), 29724: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 29724: constexpr 29724: tuple(const _Elements&... __elements) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__elements...) { } 29724: 29724: template= 1), 29724: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 29724: explicit constexpr 29724: tuple(const _Elements&... __elements) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__elements...) { } 29724: 29724: template(), 29724: _ImplicitCtor<_Valid, _UElements...> = true> 29724: constexpr 29724: tuple(_UElements&&... __elements) 29724: noexcept(__nothrow_constructible<_UElements...>()) 29724: : _Inherited(std::forward<_UElements>(__elements)...) 29724: { ; } 29724: 29724: template(), 29724: _ExplicitCtor<_Valid, _UElements...> = false> 29724: explicit constexpr 29724: tuple(_UElements&&... __elements) 29724: noexcept(__nothrow_constructible<_UElements...>()) 29724: : _Inherited(std::forward<_UElements>(__elements)...) 29724: { ; } 29724: 29724: constexpr tuple(const tuple&) = default; 29724: 29724: constexpr tuple(tuple&&) = default; 29724: 29724: template&>(), 29724: _ImplicitCtor<_Valid, const _UElements&...> = true> 29724: constexpr 29724: tuple(const tuple<_UElements...>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(static_cast&>(__in)) 29724: { ; } 29724: 29724: template&>(), 29724: _ExplicitCtor<_Valid, const _UElements&...> = false> 29724: explicit constexpr 29724: tuple(const tuple<_UElements...>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(static_cast&>(__in)) 29724: { ; } 29724: 29724: template&&>(), 29724: _ImplicitCtor<_Valid, _UElements...> = true> 29724: constexpr 29724: tuple(tuple<_UElements...>&& __in) 29724: noexcept(__nothrow_constructible<_UElements...>()) 29724: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29724: { ; } 29724: 29724: template&&>(), 29724: _ExplicitCtor<_Valid, _UElements...> = false> 29724: explicit constexpr 29724: tuple(tuple<_UElements...>&& __in) 29724: noexcept(__nothrow_constructible<_UElements...>()) 29724: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29724: { ; } 29724: 29724: 29724: 29724: template::value> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Inherited(__tag, __a) { } 29724: 29724: template::value> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Inherited(__tag, __a) { } 29724: 29724: template= 1), 29724: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const _Elements&... __elements) 29724: : _Inherited(__tag, __a, __elements...) { } 29724: 29724: template= 1), 29724: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const _Elements&... __elements) 29724: : _Inherited(__tag, __a, __elements...) { } 29724: 29724: template(), 29724: _ImplicitCtor<_Valid, _UElements...> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: _UElements&&... __elements) 29724: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 29724: { ; } 29724: 29724: template(), 29724: _ExplicitCtor<_Valid, _UElements...> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: _UElements&&... __elements) 29724: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 29724: { ; } 29724: 29724: template 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 29724: : _Inherited(__tag, __a, static_cast(__in)) { } 29724: 29724: template 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 29724: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 29724: 29724: template&>(), 29724: _ImplicitCtor<_Valid, const _UElements&...> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const tuple<_UElements...>& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast&>(__in)) 29724: { ; } 29724: 29724: template&>(), 29724: _ExplicitCtor<_Valid, const _UElements&...> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const tuple<_UElements...>& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast&>(__in)) 29724: { ; } 29724: 29724: template&&>(), 29724: _ImplicitCtor<_Valid, _UElements...> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: tuple<_UElements...>&& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29724: { ; } 29724: 29724: template&&>(), 29724: _ExplicitCtor<_Valid, _UElements...> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: tuple<_UElements...>&& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29724: { ; } 29724: # 1886 "/usr/include/c++/14/tuple" 3 29724: private: 29724: template 29724: static constexpr 29724: __enable_if_t 29724: __assignable() 29724: { return __and_...>::value; } 29724: 29724: 29724: template 29724: static constexpr bool __nothrow_assignable() 29724: { 29724: return 29724: __and_...>::value; 29724: } 29724: 29724: public: 29724: 29724: 29724: tuple& 29724: operator=(__conditional_t<__assignable(), 29724: const tuple&, 29724: const __nonesuch&> __in) 29724: noexcept(__nothrow_assignable()) 29724: { 29724: this->_M_assign(__in); 29724: return *this; 29724: } 29724: 29724: 29724: tuple& 29724: operator=(__conditional_t<__assignable<_Elements...>(), 29724: tuple&&, 29724: __nonesuch&&> __in) 29724: noexcept(__nothrow_assignable<_Elements...>()) 29724: { 29724: this->_M_assign(std::move(__in)); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable(), tuple&> 29724: operator=(const tuple<_UElements...>& __in) 29724: noexcept(__nothrow_assignable()) 29724: { 29724: this->_M_assign(__in); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable<_UElements...>(), tuple&> 29724: operator=(tuple<_UElements...>&& __in) 29724: noexcept(__nothrow_assignable<_UElements...>()) 29724: { 29724: this->_M_assign(std::move(__in)); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: swap(tuple& __in) 29724: noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) 29724: { _Inherited::_M_swap(__in); } 29724: # 1966 "/usr/include/c++/14/tuple" 3 29724: }; 29724: 29724: 29724: template 29724: tuple(_UTypes...) -> tuple<_UTypes...>; 29724: template 29724: tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; 29724: template 29724: tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; 29724: template 29724: tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; 29724: template 29724: tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; 29724: 29724: 29724: 29724: template<> 29724: class tuple<> 29724: { 29724: public: 29724: 29724: void swap(tuple&) noexcept { } 29724: 29724: 29724: 29724: 29724: 29724: tuple() = default; 29724: 29724: template 29724: 29724: tuple(allocator_arg_t, const _Alloc&) noexcept { } 29724: template 29724: 29724: tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> 29724: { 29724: typedef _Tuple_impl<0, _T1, _T2> _Inherited; 29724: 29724: 29724: template 29724: using _ImplicitDefaultCtor = __enable_if_t< 29724: _TupleConstraints<_Dummy, _U1, _U2>:: 29724: __is_implicitly_default_constructible(), 29724: bool>; 29724: 29724: 29724: template 29724: using _ExplicitDefaultCtor = __enable_if_t< 29724: _TupleConstraints<_Dummy, _U1, _U2>:: 29724: __is_explicitly_default_constructible(), 29724: bool>; 29724: 29724: template 29724: using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; 29724: 29724: 29724: template 29724: using _ImplicitCtor = __enable_if_t< 29724: _TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), 29724: bool>; 29724: 29724: 29724: template 29724: using _ExplicitCtor = __enable_if_t< 29724: _TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), 29724: bool>; 29724: 29724: template 29724: static constexpr bool __assignable() 29724: { 29724: return __and_, 29724: is_assignable<_T2&, _U2>>::value; 29724: } 29724: 29724: template 29724: static constexpr bool __nothrow_assignable() 29724: { 29724: return __and_, 29724: is_nothrow_assignable<_T2&, _U2>>::value; 29724: } 29724: 29724: template 29724: static constexpr bool __nothrow_constructible() 29724: { 29724: return __and_, 29724: is_nothrow_constructible<_T2, _U2>>::value; 29724: } 29724: 29724: static constexpr bool __nothrow_default_constructible() 29724: { 29724: return __and_, 29724: is_nothrow_default_constructible<_T2>>::value; 29724: } 29724: 29724: template 29724: static constexpr bool __is_alloc_arg() 29724: { return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } 29724: # 2085 "/usr/include/c++/14/tuple" 3 29724: public: 29724: template = true> 29724: constexpr 29724: tuple() 29724: noexcept(__nothrow_default_constructible()) 29724: : _Inherited() { } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple() 29724: noexcept(__nothrow_default_constructible()) 29724: : _Inherited() { } 29724: 29724: template = true> 29724: constexpr 29724: tuple(const _T1& __a1, const _T2& __a2) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__a1, __a2) { } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple(const _T1& __a1, const _T2& __a2) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__a1, __a2) { } 29724: 29724: template(), _U1, _U2> = true> 29724: constexpr 29724: tuple(_U1&& __a1, _U2&& __a2) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 29724: { ; } 29724: 29724: template(), _U1, _U2> = false> 29724: explicit constexpr 29724: tuple(_U1&& __a1, _U2&& __a2) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 29724: { ; } 29724: 29724: constexpr tuple(const tuple&) = default; 29724: 29724: constexpr tuple(tuple&&) = default; 29724: 29724: template = true> 29724: constexpr 29724: tuple(const tuple<_U1, _U2>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(static_cast&>(__in)) 29724: { ; } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple(const tuple<_U1, _U2>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(static_cast&>(__in)) 29724: { ; } 29724: 29724: template = true> 29724: constexpr 29724: tuple(tuple<_U1, _U2>&& __in) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29724: { ; } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple(tuple<_U1, _U2>&& __in) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29724: { ; } 29724: 29724: template = true> 29724: constexpr 29724: tuple(const pair<_U1, _U2>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__in.first, __in.second) 29724: { ; } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple(const pair<_U1, _U2>& __in) 29724: noexcept(__nothrow_constructible()) 29724: : _Inherited(__in.first, __in.second) 29724: { ; } 29724: 29724: template = true> 29724: constexpr 29724: tuple(pair<_U1, _U2>&& __in) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(std::forward<_U1>(__in.first), 29724: std::forward<_U2>(__in.second)) 29724: { ; } 29724: 29724: template = false> 29724: explicit constexpr 29724: tuple(pair<_U1, _U2>&& __in) 29724: noexcept(__nothrow_constructible<_U1, _U2>()) 29724: : _Inherited(std::forward<_U1>(__in.first), 29724: std::forward<_U2>(__in.second)) 29724: { ; } 29724: 29724: 29724: 29724: template::value, _T1, _T2> = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Inherited(__tag, __a) { } 29724: 29724: template::value, _T1, _T2> = false> 29724: 29724: explicit 29724: tuple(allocator_arg_t __tag, const _Alloc& __a) 29724: : _Inherited(__tag, __a) { } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const _T1& __a1, const _T2& __a2) 29724: : _Inherited(__tag, __a, __a1, __a2) { } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const _T1& __a1, const _T2& __a2) 29724: : _Inherited(__tag, __a, __a1, __a2) { } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) 29724: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 29724: std::forward<_U2>(__a2)) 29724: { ; } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: _U1&& __a1, _U2&& __a2) 29724: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 29724: std::forward<_U2>(__a2)) 29724: { ; } 29724: 29724: template 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 29724: : _Inherited(__tag, __a, static_cast(__in)) { } 29724: 29724: template 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 29724: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const tuple<_U1, _U2>& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast&>(__in)) 29724: { ; } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const tuple<_U1, _U2>& __in) 29724: : _Inherited(__tag, __a, 29724: static_cast&>(__in)) 29724: { ; } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 29724: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29724: { ; } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 29724: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29724: { ; } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const pair<_U1, _U2>& __in) 29724: : _Inherited(__tag, __a, __in.first, __in.second) 29724: { ; } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, 29724: const pair<_U1, _U2>& __in) 29724: : _Inherited(__tag, __a, __in.first, __in.second) 29724: { ; } 29724: 29724: template = true> 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 29724: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 29724: std::forward<_U2>(__in.second)) 29724: { ; } 29724: 29724: template = false> 29724: explicit 29724: 29724: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 29724: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 29724: std::forward<_U2>(__in.second)) 29724: { ; } 29724: 29724: 29724: 29724: 29724: tuple& 29724: operator=(__conditional_t<__assignable(), 29724: const tuple&, 29724: const __nonesuch&> __in) 29724: noexcept(__nothrow_assignable()) 29724: { 29724: this->_M_assign(__in); 29724: return *this; 29724: } 29724: 29724: 29724: tuple& 29724: operator=(__conditional_t<__assignable<_T1, _T2>(), 29724: tuple&&, 29724: __nonesuch&&> __in) 29724: noexcept(__nothrow_assignable<_T1, _T2>()) 29724: { 29724: this->_M_assign(std::move(__in)); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable(), tuple&> 29724: operator=(const tuple<_U1, _U2>& __in) 29724: noexcept(__nothrow_assignable()) 29724: { 29724: this->_M_assign(__in); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 29724: operator=(tuple<_U1, _U2>&& __in) 29724: noexcept(__nothrow_assignable<_U1, _U2>()) 29724: { 29724: this->_M_assign(std::move(__in)); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable(), tuple&> 29724: operator=(const pair<_U1, _U2>& __in) 29724: noexcept(__nothrow_assignable()) 29724: { 29724: this->_M_head(*this) = __in.first; 29724: this->_M_tail(*this)._M_head(*this) = __in.second; 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 29724: operator=(pair<_U1, _U2>&& __in) 29724: noexcept(__nothrow_assignable<_U1, _U2>()) 29724: { 29724: this->_M_head(*this) = std::forward<_U1>(__in.first); 29724: this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); 29724: return *this; 29724: } 29724: 29724: 29724: void 29724: swap(tuple& __in) 29724: noexcept(__and_<__is_nothrow_swappable<_T1>, 29724: __is_nothrow_swappable<_T2>>::value) 29724: { _Inherited::_M_swap(__in); } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct tuple_size> 29724: : public integral_constant { }; 29724: 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> 29724: = sizeof...(_Types); 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> 29724: = sizeof...(_Types); 29724: 29724: 29724: 29724: template 29724: struct tuple_element<__i, tuple<_Types...>> 29724: { 29724: static_assert(__i < sizeof...(_Types), "tuple index must be in range"); 29724: 29724: using type = typename _Nth_type<__i, _Types...>::type; 29724: }; 29724: 29724: template 29724: constexpr _Head& 29724: __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 29724: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 29724: 29724: template 29724: constexpr const _Head& 29724: __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 29724: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 29724: 29724: 29724: template 29724: __enable_if_t<(__i >= sizeof...(_Types))> 29724: __get_helper(const tuple<_Types...>&) = delete; 29724: 29724: 29724: template 29724: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 29724: get(tuple<_Elements...>& __t) noexcept 29724: { return std::__get_helper<__i>(__t); } 29724: 29724: 29724: template 29724: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 29724: get(const tuple<_Elements...>& __t) noexcept 29724: { return std::__get_helper<__i>(__t); } 29724: 29724: 29724: template 29724: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 29724: get(tuple<_Elements...>&& __t) noexcept 29724: { 29724: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 29724: return std::forward<__element_type>(std::__get_helper<__i>(__t)); 29724: } 29724: 29724: 29724: template 29724: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 29724: get(const tuple<_Elements...>&& __t) noexcept 29724: { 29724: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 29724: return std::forward(std::__get_helper<__i>(__t)); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr __enable_if_t<(__i >= sizeof...(_Elements))> 29724: get(const tuple<_Elements...>&) = delete; 29724: 29724: 29724: 29724: 29724: template 29724: constexpr _Tp& 29724: get(tuple<_Types...>& __t) noexcept 29724: { 29724: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29724: static_assert(__idx < sizeof...(_Types), 29724: "the type T in std::get must occur exactly once in the tuple"); 29724: return std::__get_helper<__idx>(__t); 29724: } 29724: 29724: 29724: template 29724: constexpr _Tp&& 29724: get(tuple<_Types...>&& __t) noexcept 29724: { 29724: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29724: static_assert(__idx < sizeof...(_Types), 29724: "the type T in std::get must occur exactly once in the tuple"); 29724: return std::forward<_Tp>(std::__get_helper<__idx>(__t)); 29724: } 29724: 29724: 29724: template 29724: constexpr const _Tp& 29724: get(const tuple<_Types...>& __t) noexcept 29724: { 29724: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29724: static_assert(__idx < sizeof...(_Types), 29724: "the type T in std::get must occur exactly once in the tuple"); 29724: return std::__get_helper<__idx>(__t); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr const _Tp&& 29724: get(const tuple<_Types...>&& __t) noexcept 29724: { 29724: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29724: static_assert(__idx < sizeof...(_Types), 29724: "the type T in std::get must occur exactly once in the tuple"); 29724: return std::forward(std::__get_helper<__idx>(__t)); 29724: } 29724: 29724: 29724: 29724: template 29724: struct __tuple_compare 29724: { 29724: static constexpr bool 29724: __eq(const _Tp& __t, const _Up& __u) 29724: { 29724: return bool(std::get<__i>(__t) == std::get<__i>(__u)) 29724: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); 29724: } 29724: 29724: static constexpr bool 29724: __less(const _Tp& __t, const _Up& __u) 29724: { 29724: return bool(std::get<__i>(__t) < std::get<__i>(__u)) 29724: || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) 29724: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); 29724: } 29724: }; 29724: 29724: template 29724: struct __tuple_compare<_Tp, _Up, __size, __size> 29724: { 29724: static constexpr bool 29724: __eq(const _Tp&, const _Up&) { return true; } 29724: 29724: static constexpr bool 29724: __less(const _Tp&, const _Up&) { return false; } 29724: }; 29724: 29724: template 29724: constexpr bool 29724: operator==(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { 29724: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 29724: "tuple objects can only be compared if they have equal sizes."); 29724: using __compare = __tuple_compare, 29724: tuple<_UElements...>, 29724: 0, sizeof...(_TElements)>; 29724: return __compare::__eq(__t, __u); 29724: } 29724: # 2596 "/usr/include/c++/14/tuple" 3 29724: template 29724: constexpr bool 29724: operator<(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { 29724: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 29724: "tuple objects can only be compared if they have equal sizes."); 29724: using __compare = __tuple_compare, 29724: tuple<_UElements...>, 29724: 0, sizeof...(_TElements)>; 29724: return __compare::__less(__t, __u); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator!=(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { return !(__t == __u); } 29724: 29724: template 29724: constexpr bool 29724: operator>(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { return __u < __t; } 29724: 29724: template 29724: constexpr bool 29724: operator<=(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { return !(__u < __t); } 29724: 29724: template 29724: constexpr bool 29724: operator>=(const tuple<_TElements...>& __t, 29724: const tuple<_UElements...>& __u) 29724: { return !(__t < __u); } 29724: 29724: 29724: 29724: 29724: template 29724: constexpr tuple::__type...> 29724: make_tuple(_Elements&&... __args) 29724: { 29724: typedef tuple::__type...> 29724: __result_type; 29724: return __result_type(std::forward<_Elements>(__args)...); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: constexpr tuple<_Elements&&...> 29724: forward_as_tuple(_Elements&&... __args) noexcept 29724: { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } 29724: 29724: 29724: template 29724: struct __make_tuple_impl; 29724: 29724: template 29724: struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> 29724: : __make_tuple_impl<_Idx + 1, 29724: tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, 29724: _Tuple, _Nm> 29724: { }; 29724: 29724: template 29724: struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> 29724: { 29724: typedef tuple<_Tp...> __type; 29724: }; 29724: 29724: template 29724: struct __do_make_tuple 29724: : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> 29724: { }; 29724: 29724: 29724: template 29724: struct __make_tuple 29724: : public __do_make_tuple<__remove_cvref_t<_Tuple>> 29724: { }; 29724: 29724: 29724: template 29724: struct __combine_tuples; 29724: 29724: template<> 29724: struct __combine_tuples<> 29724: { 29724: typedef tuple<> __type; 29724: }; 29724: 29724: template 29724: struct __combine_tuples> 29724: { 29724: typedef tuple<_Ts...> __type; 29724: }; 29724: 29724: template 29724: struct __combine_tuples, tuple<_T2s...>, _Rem...> 29724: { 29724: typedef typename __combine_tuples, 29724: _Rem...>::__type __type; 29724: }; 29724: 29724: 29724: template 29724: struct __tuple_cat_result 29724: { 29724: typedef typename __combine_tuples 29724: ::__type...>::__type __type; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __make_1st_indices; 29724: 29724: template<> 29724: struct __make_1st_indices<> 29724: { 29724: typedef _Index_tuple<> __type; 29724: }; 29724: 29724: template 29724: struct __make_1st_indices<_Tp, _Tpls...> 29724: { 29724: typedef typename _Build_index_tuple::type>::value>::__type __type; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __tuple_concater; 29724: 29724: template 29724: struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> 29724: { 29724: template 29724: static constexpr _Ret 29724: _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) 29724: { 29724: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 29724: typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; 29724: return __next::_S_do(std::forward<_Tpls>(__tps)..., 29724: std::forward<_Us>(__us)..., 29724: std::get<_Is>(std::forward<_Tp>(__tp))...); 29724: } 29724: }; 29724: 29724: template 29724: struct __tuple_concater<_Ret, _Index_tuple<>> 29724: { 29724: template 29724: static constexpr _Ret 29724: _S_do(_Us&&... __us) 29724: { 29724: return _Ret(std::forward<_Us>(__us)...); 29724: } 29724: }; 29724: 29724: template 29724: struct __is_tuple_like_impl> : true_type 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template...>::value>::type> 29724: 29724: constexpr auto 29724: tuple_cat(_Tpls&&... __tpls) 29724: -> typename __tuple_cat_result<_Tpls...>::__type 29724: { 29724: typedef typename __tuple_cat_result<_Tpls...>::__type __ret; 29724: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 29724: typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; 29724: return __concater::_S_do(std::forward<_Tpls>(__tpls)...); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: constexpr tuple<_Elements&...> 29724: tie(_Elements&... __args) noexcept 29724: { return tuple<_Elements&...>(__args...); } 29724: 29724: 29724: template 29724: 29724: inline 29724: 29724: 29724: typename enable_if<__and_<__is_swappable<_Elements>...>::value 29724: >::type 29724: 29724: 29724: 29724: swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: # 2818 "/usr/include/c++/14/tuple" 3 29724: template 29724: 29724: typename enable_if...>::value>::type 29724: swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct _Swallow_assign 29724: { 29724: template 29724: constexpr const _Swallow_assign& 29724: operator=(const _Tp&) const 29724: { return *this; } 29724: }; 29724: # 2853 "/usr/include/c++/14/tuple" 3 29724: inline constexpr _Swallow_assign ignore{}; 29724: 29724: 29724: template 29724: struct uses_allocator, _Alloc> : true_type { }; 29724: # 2868 "/usr/include/c++/14/tuple" 3 29724: template 29724: template 29724: 29724: inline 29724: pair<_T1, _T2>:: 29724: pair(piecewise_construct_t, 29724: tuple<_Args1...> __first, tuple<_Args2...> __second) 29724: : pair(__first, __second, 29724: typename _Build_index_tuple::__type(), 29724: typename _Build_index_tuple::__type()) 29724: { } 29724: 29724: template 29724: template 29724: inline 29724: pair<_T1, _T2>:: 29724: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, 29724: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) 29724: : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), 29724: second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template class _Trait, typename _Tp, typename _Tuple> 29724: inline constexpr bool __unpack_std_tuple = false; 29724: 29724: template class _Trait, typename _Tp, typename... _Up> 29724: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> 29724: = _Trait<_Tp, _Up...>::value; 29724: 29724: template class _Trait, typename _Tp, typename... _Up> 29724: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> 29724: = _Trait<_Tp, _Up&...>::value; 29724: 29724: template class _Trait, typename _Tp, typename... _Up> 29724: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> 29724: = _Trait<_Tp, const _Up...>::value; 29724: 29724: template class _Trait, typename _Tp, typename... _Up> 29724: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> 29724: = _Trait<_Tp, const _Up&...>::value; 29724: 29724: 29724: 29724: template 29724: constexpr decltype(auto) 29724: __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) 29724: { 29724: return std::__invoke(std::forward<_Fn>(__f), 29724: std::get<_Idx>(std::forward<_Tuple>(__t))...); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: constexpr decltype(auto) 29724: apply(_Fn&& __f, _Tuple&& __t) 29724: noexcept(__unpack_std_tuple) 29724: { 29724: using _Indices 29724: = make_index_sequence>>; 29724: return std::__apply_impl(std::forward<_Fn>(__f), 29724: std::forward<_Tuple>(__t), 29724: _Indices{}); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr _Tp 29724: __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) 29724: { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: constexpr _Tp 29724: make_from_tuple(_Tuple&& __t) 29724: noexcept(__unpack_std_tuple) 29724: { 29724: constexpr size_t __n = tuple_size_v>; 29724: 29724: if constexpr (__n == 1) 29724: { 29724: using _Elt = decltype(std::get<0>(std::declval<_Tuple>())); 29724: static_assert(!__reference_constructs_from_temporary(_Tp, _Elt)); 29724: } 29724: 29724: return __make_from_tuple_impl<_Tp>(std::forward<_Tuple>(__t), 29724: make_index_sequence<__n>{}); 29724: } 29724: # 3030 "/usr/include/c++/14/tuple" 3 29724: 29724: } 29724: # 48 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class memory_resource 29724: { 29724: static constexpr size_t _S_max_align = alignof(max_align_t); 29724: 29724: public: 29724: memory_resource() = default; 29724: memory_resource(const memory_resource&) = default; 29724: virtual ~memory_resource(); 29724: 29724: memory_resource& operator=(const memory_resource&) = default; 29724: 29724: [[nodiscard]] 29724: void* 29724: allocate(size_t __bytes, size_t __alignment = _S_max_align) 29724: __attribute__((__returns_nonnull__,__alloc_size__(2),__alloc_align__(3))) 29724: { return ::operator new(__bytes, do_allocate(__bytes, __alignment)); } 29724: 29724: void 29724: deallocate(void* __p, size_t __bytes, size_t __alignment = _S_max_align) 29724: __attribute__((__nonnull__)) 29724: { return do_deallocate(__p, __bytes, __alignment); } 29724: 29724: [[nodiscard]] 29724: bool 29724: is_equal(const memory_resource& __other) const noexcept 29724: { return do_is_equal(__other); } 29724: 29724: private: 29724: virtual void* 29724: do_allocate(size_t __bytes, size_t __alignment) = 0; 29724: 29724: virtual void 29724: do_deallocate(void* __p, size_t __bytes, size_t __alignment) = 0; 29724: 29724: virtual bool 29724: do_is_equal(const memory_resource& __other) const noexcept = 0; 29724: }; 29724: 29724: [[nodiscard]] 29724: inline bool 29724: operator==(const memory_resource& __a, const memory_resource& __b) noexcept 29724: { return &__a == &__b || __a.is_equal(__b); } 29724: 29724: 29724: [[nodiscard]] 29724: inline bool 29724: operator!=(const memory_resource& __a, const memory_resource& __b) noexcept 29724: { return !(__a == __b); } 29724: # 119 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: template 29724: class polymorphic_allocator 29724: { 29724: 29724: 29724: template 29724: struct __not_pair { using type = void; }; 29724: 29724: template 29724: struct __not_pair> { }; 29724: 29724: public: 29724: using value_type = _Tp; 29724: 29724: polymorphic_allocator() noexcept 29724: { 29724: extern memory_resource* get_default_resource() noexcept 29724: __attribute__((__returns_nonnull__)); 29724: _M_resource = get_default_resource(); 29724: } 29724: 29724: polymorphic_allocator(memory_resource* __r) noexcept 29724: __attribute__((__nonnull__)) 29724: : _M_resource(__r) 29724: { ; } 29724: 29724: polymorphic_allocator(const polymorphic_allocator& __other) = default; 29724: 29724: template 29724: polymorphic_allocator(const polymorphic_allocator<_Up>& __x) noexcept 29724: : _M_resource(__x.resource()) 29724: { } 29724: 29724: polymorphic_allocator& 29724: operator=(const polymorphic_allocator&) = delete; 29724: 29724: [[nodiscard]] 29724: _Tp* 29724: allocate(size_t __n) 29724: __attribute__((__returns_nonnull__)) 29724: { 29724: if ((__gnu_cxx::__int_traits::__max / sizeof(_Tp)) < __n) 29724: std::__throw_bad_array_new_length(); 29724: return static_cast<_Tp*>(_M_resource->allocate(__n * sizeof(_Tp), 29724: alignof(_Tp))); 29724: } 29724: 29724: void 29724: deallocate(_Tp* __p, size_t __n) noexcept 29724: __attribute__((__nonnull__)) 29724: { _M_resource->deallocate(__p, __n * sizeof(_Tp), alignof(_Tp)); } 29724: # 224 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: template 29724: __attribute__((__nonnull__)) 29724: typename __not_pair<_Tp1>::type 29724: construct(_Tp1* __p, _Args&&... __args) 29724: { 29724: 29724: 29724: using __use_tag 29724: = std::__uses_alloc_t<_Tp1, polymorphic_allocator, _Args...>; 29724: if constexpr (is_base_of_v<__uses_alloc0, __use_tag>) 29724: ::new(__p) _Tp1(std::forward<_Args>(__args)...); 29724: else if constexpr (is_base_of_v<__uses_alloc1_, __use_tag>) 29724: ::new(__p) _Tp1(allocator_arg, *this, 29724: std::forward<_Args>(__args)...); 29724: else 29724: ::new(__p) _Tp1(std::forward<_Args>(__args)..., *this); 29724: } 29724: 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: construct(pair<_Tp1, _Tp2>* __p, piecewise_construct_t, 29724: tuple<_Args1...> __x, tuple<_Args2...> __y) 29724: { 29724: auto __x_tag = 29724: __use_alloc<_Tp1, polymorphic_allocator, _Args1...>(*this); 29724: auto __y_tag = 29724: __use_alloc<_Tp2, polymorphic_allocator, _Args2...>(*this); 29724: index_sequence_for<_Args1...> __x_i; 29724: index_sequence_for<_Args2...> __y_i; 29724: 29724: ::new(__p) pair<_Tp1, _Tp2>(piecewise_construct, 29724: _S_construct_p(__x_tag, __x_i, __x), 29724: _S_construct_p(__y_tag, __y_i, __y)); 29724: } 29724: 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: construct(pair<_Tp1, _Tp2>* __p) 29724: { this->construct(__p, piecewise_construct, tuple<>(), tuple<>()); } 29724: 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: construct(pair<_Tp1, _Tp2>* __p, _Up&& __x, _Vp&& __y) 29724: { 29724: this->construct(__p, piecewise_construct, 29724: std::forward_as_tuple(std::forward<_Up>(__x)), 29724: std::forward_as_tuple(std::forward<_Vp>(__y))); 29724: } 29724: 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: construct(pair<_Tp1, _Tp2>* __p, const std::pair<_Up, _Vp>& __pr) 29724: { 29724: this->construct(__p, piecewise_construct, 29724: std::forward_as_tuple(__pr.first), 29724: std::forward_as_tuple(__pr.second)); 29724: } 29724: 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: construct(pair<_Tp1, _Tp2>* __p, pair<_Up, _Vp>&& __pr) 29724: { 29724: this->construct(__p, piecewise_construct, 29724: std::forward_as_tuple(std::forward<_Up>(__pr.first)), 29724: std::forward_as_tuple(std::forward<_Vp>(__pr.second))); 29724: } 29724: # 307 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: template 29724: __attribute__((__nonnull__)) 29724: void 29724: destroy(_Up* __p) 29724: { __p->~_Up(); } 29724: 29724: polymorphic_allocator 29724: select_on_container_copy_construction() const noexcept 29724: { return polymorphic_allocator(); } 29724: 29724: memory_resource* 29724: resource() const noexcept 29724: __attribute__((__returns_nonnull__)) 29724: { return _M_resource; } 29724: 29724: 29724: 29724: [[nodiscard]] 29724: friend bool 29724: operator==(const polymorphic_allocator& __a, 29724: const polymorphic_allocator& __b) noexcept 29724: { return *__a.resource() == *__b.resource(); } 29724: 29724: 29724: [[nodiscard]] 29724: friend bool 29724: operator!=(const polymorphic_allocator& __a, 29724: const polymorphic_allocator& __b) noexcept 29724: { return !(__a == __b); } 29724: 29724: 29724: private: 29724: 29724: using __uses_alloc1_ = __uses_alloc1; 29724: using __uses_alloc2_ = __uses_alloc2; 29724: 29724: template 29724: static tuple<_Args&&...> 29724: _S_construct_p(__uses_alloc0, _Ind, tuple<_Args...>& __t) 29724: { return std::move(__t); } 29724: 29724: template 29724: static tuple 29724: _S_construct_p(__uses_alloc1_ __ua, index_sequence<_Ind...>, 29724: tuple<_Args...>& __t) 29724: { 29724: return { 29724: allocator_arg, *__ua._M_a, std::get<_Ind>(std::move(__t))... 29724: }; 29724: } 29724: 29724: template 29724: static tuple<_Args&&..., polymorphic_allocator> 29724: _S_construct_p(__uses_alloc2_ __ua, index_sequence<_Ind...>, 29724: tuple<_Args...>& __t) 29724: { return { std::get<_Ind>(std::move(__t))..., *__ua._M_a }; } 29724: 29724: 29724: memory_resource* _M_resource; 29724: }; 29724: 29724: template 29724: [[nodiscard]] 29724: inline bool 29724: operator==(const polymorphic_allocator<_Tp1>& __a, 29724: const polymorphic_allocator<_Tp2>& __b) noexcept 29724: { return *__a.resource() == *__b.resource(); } 29724: 29724: 29724: template 29724: [[nodiscard]] 29724: inline bool 29724: operator!=(const polymorphic_allocator<_Tp1>& __a, 29724: const polymorphic_allocator<_Tp2>& __b) noexcept 29724: { return !(__a == __b); } 29724: 29724: 29724: } 29724: 29724: template struct allocator_traits; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct allocator_traits> 29724: { 29724: 29724: using allocator_type = pmr::polymorphic_allocator<_Tp>; 29724: 29724: 29724: using value_type = _Tp; 29724: 29724: 29724: using pointer = _Tp*; 29724: 29724: 29724: using const_pointer = const _Tp*; 29724: 29724: 29724: using void_pointer = void*; 29724: 29724: 29724: using const_void_pointer = const void*; 29724: 29724: 29724: using difference_type = std::ptrdiff_t; 29724: 29724: 29724: using size_type = std::size_t; 29724: 29724: 29724: 29724: 29724: 29724: using propagate_on_container_copy_assignment = false_type; 29724: using propagate_on_container_move_assignment = false_type; 29724: using propagate_on_container_swap = false_type; 29724: 29724: static allocator_type 29724: select_on_container_copy_construction(const allocator_type&) noexcept 29724: { return allocator_type(); } 29724: 29724: 29724: 29724: using is_always_equal = false_type; 29724: 29724: template 29724: using rebind_alloc = pmr::polymorphic_allocator<_Up>; 29724: 29724: template 29724: using rebind_traits = allocator_traits>; 29724: # 450 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: [[nodiscard]] static pointer 29724: allocate(allocator_type& __a, size_type __n) 29724: { return __a.allocate(__n); } 29724: # 465 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: [[nodiscard]] static pointer 29724: allocate(allocator_type& __a, size_type __n, const_void_pointer) 29724: { return __a.allocate(__n); } 29724: # 477 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: static void 29724: deallocate(allocator_type& __a, pointer __p, size_type __n) 29724: { __a.deallocate(__p, __n); } 29724: # 492 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: template 29724: static void 29724: construct(allocator_type& __a, _Up* __p, _Args&&... __args) 29724: { __a.construct(__p, std::forward<_Args>(__args)...); } 29724: # 504 "/usr/include/c++/14/bits/memory_resource.h" 3 29724: template 29724: static void 29724: destroy(allocator_type&, _Up* __p) 29724: noexcept(is_nothrow_destructible<_Up>::value) 29724: { __p->~_Up(); } 29724: 29724: 29724: 29724: 29724: 29724: static size_type 29724: max_size(const allocator_type&) noexcept 29724: { return size_t(-1) / sizeof(value_type); } 29724: }; 29724: 29724: 29724: } 29724: # 82 "/usr/include/c++/14/deque" 2 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template 29724: using deque = std::deque<_Tp, polymorphic_allocator<_Tp>>; 29724: } 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/usr/include/c++/14/functional" 1 3 29724: # 46 "/usr/include/c++/14/functional" 3 29724: 29724: # 47 "/usr/include/c++/14/functional" 3 29724: # 55 "/usr/include/c++/14/functional" 3 29724: # 1 "/usr/include/c++/14/bits/functional_hash.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/hash_bytes.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/hash_bytes.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/hash_bytes.h" 3 29724: 29724: 29724: 29724: namespace std 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t 29724: _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); 29724: 29724: 29724: 29724: 29724: 29724: size_t 29724: _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); 29724: 29724: 29724: } 29724: # 37 "/usr/include/c++/14/bits/functional_hash.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 50 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: template 29724: struct __hash_base 29724: { 29724: typedef _Result result_type [[__deprecated__]]; 29724: typedef _Arg argument_type [[__deprecated__]]; 29724: }; 29724: 29724: 29724: template 29724: struct hash; 29724: 29724: template 29724: struct __poison_hash 29724: { 29724: static constexpr bool __enable_hash_call = false; 29724: private: 29724: 29724: __poison_hash(__poison_hash&&); 29724: ~__poison_hash(); 29724: }; 29724: 29724: template 29724: struct __poison_hash<_Tp, __void_t()(declval<_Tp>()))>> 29724: { 29724: static constexpr bool __enable_hash_call = true; 29724: }; 29724: 29724: 29724: template::value> 29724: struct __hash_enum 29724: { 29724: private: 29724: 29724: __hash_enum(__hash_enum&&); 29724: ~__hash_enum(); 29724: }; 29724: 29724: 29724: template 29724: struct __hash_enum<_Tp, true> : public __hash_base 29724: { 29724: size_t 29724: operator()(_Tp __val) const noexcept 29724: { 29724: using __type = typename underlying_type<_Tp>::type; 29724: return hash<__type>{}(static_cast<__type>(__val)); 29724: } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct hash : __hash_enum<_Tp> 29724: { }; 29724: 29724: 29724: template 29724: struct hash<_Tp*> : public __hash_base 29724: { 29724: size_t 29724: operator()(_Tp* __p) const noexcept 29724: { return reinterpret_cast(__p); } 29724: }; 29724: # 125 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; 29724: 29724: 29724: template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; 29724: # 201 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: struct _Hash_impl 29724: { 29724: static size_t 29724: hash(const void* __ptr, size_t __clength, 29724: size_t __seed = static_cast(0xc70f6907UL)) 29724: { return _Hash_bytes(__ptr, __clength, __seed); } 29724: 29724: template 29724: static size_t 29724: hash(const _Tp& __val) 29724: { return hash(&__val, sizeof(__val)); } 29724: 29724: template 29724: static size_t 29724: __hash_combine(const _Tp& __val, size_t __hash) 29724: { return hash(&__val, sizeof(__val), __hash); } 29724: }; 29724: 29724: 29724: struct _Fnv_hash_impl 29724: { 29724: static size_t 29724: hash(const void* __ptr, size_t __clength, 29724: size_t __seed = static_cast(2166136261UL)) 29724: { return _Fnv_hash_bytes(__ptr, __clength, __seed); } 29724: 29724: template 29724: static size_t 29724: hash(const _Tp& __val) 29724: { return hash(&__val, sizeof(__val)); } 29724: 29724: template 29724: static size_t 29724: __hash_combine(const _Tp& __val, size_t __hash) 29724: { return hash(&__val, sizeof(__val), __hash); } 29724: }; 29724: 29724: 29724: template<> 29724: struct hash : public __hash_base 29724: { 29724: size_t 29724: operator()(float __val) const noexcept 29724: { 29724: 29724: return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: struct hash : public __hash_base 29724: { 29724: size_t 29724: operator()(double __val) const noexcept 29724: { 29724: 29724: return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: __attribute__ ((__pure__)) size_t 29724: operator()(long double __val) const noexcept; 29724: }; 29724: 29724: 29724: template<> 29724: struct hash : public __hash_base 29724: { 29724: size_t 29724: operator()(nullptr_t) const noexcept 29724: { return 0; } 29724: }; 29724: # 294 "/usr/include/c++/14/bits/functional_hash.h" 3 29724: template 29724: struct __is_fast_hash : public std::true_type 29724: { }; 29724: 29724: template<> 29724: struct __is_fast_hash> : public std::false_type 29724: { }; 29724: 29724: 29724: } 29724: # 56 "/usr/include/c++/14/functional" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/std_function.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/std_function.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/std_function.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/typeinfo" 1 3 29724: # 32 "/usr/include/c++/14/typeinfo" 3 29724: 29724: # 33 "/usr/include/c++/14/typeinfo" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 41 "/usr/include/c++/14/typeinfo" 2 3 29724: 29724: #pragma GCC visibility push(default) 29724: 29724: extern "C++" { 29724: 29724: namespace __cxxabiv1 29724: { 29724: class __class_type_info; 29724: } 29724: # 83 "/usr/include/c++/14/typeinfo" 3 29724: namespace std 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class type_info 29724: { 29724: public: 29724: 29724: 29724: 29724: 29724: virtual ~type_info(); 29724: 29724: 29724: 29724: const char* name() const noexcept 29724: { return __name[0] == '*' ? __name + 1 : __name; } 29724: 29724: 29724: 29724: bool before(const type_info& __arg) const noexcept; 29724: 29724: 29724: bool operator==(const type_info& __arg) const noexcept; 29724: 29724: 29724: bool operator!=(const type_info& __arg) const noexcept 29724: { return !operator==(__arg); } 29724: 29724: 29724: 29724: size_t hash_code() const noexcept 29724: { 29724: 29724: return _Hash_bytes(name(), __builtin_strlen(name()), 29724: static_cast(0xc70f6907UL)); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: virtual bool __is_pointer_p() const; 29724: 29724: 29724: virtual bool __is_function_p() const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, 29724: unsigned __outer) const; 29724: 29724: 29724: virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, 29724: void **__obj_ptr) const; 29724: 29724: protected: 29724: const char *__name; 29724: 29724: explicit type_info(const char *__n): __name(__n) { } 29724: 29724: private: 29724: 29724: 29724: type_info& operator=(const type_info&) = delete; 29724: type_info(const type_info&) = delete; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool __equal(const type_info&) const noexcept; 29724: 29724: }; 29724: # 219 "/usr/include/c++/14/typeinfo" 3 29724: class bad_cast : public exception 29724: { 29724: public: 29724: bad_cast() noexcept { } 29724: 29724: 29724: 29724: virtual ~bad_cast() noexcept; 29724: 29724: 29724: virtual const char* what() const noexcept; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class bad_typeid : public exception 29724: { 29724: public: 29724: bad_typeid () noexcept { } 29724: 29724: 29724: 29724: virtual ~bad_typeid() noexcept; 29724: 29724: 29724: virtual const char* what() const noexcept; 29724: }; 29724: } 29724: 29724: } 29724: 29724: #pragma GCC visibility pop 29724: # 41 "/usr/include/c++/14/bits/std_function.h" 2 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class bad_function_call : public std::exception 29724: { 29724: public: 29724: virtual ~bad_function_call() noexcept; 29724: 29724: const char* what() const noexcept; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __is_location_invariant 29724: : is_trivially_copyable<_Tp>::type 29724: { }; 29724: 29724: class _Undefined_class; 29724: 29724: union _Nocopy_types 29724: { 29724: void* _M_object; 29724: const void* _M_const_object; 29724: void (*_M_function_pointer)(); 29724: void (_Undefined_class::*_M_member_pointer)(); 29724: }; 29724: 29724: union [[gnu::may_alias]] _Any_data 29724: { 29724: void* _M_access() noexcept { return &_M_pod_data[0]; } 29724: const void* _M_access() const noexcept { return &_M_pod_data[0]; } 29724: 29724: template 29724: _Tp& 29724: _M_access() noexcept 29724: { return *static_cast<_Tp*>(_M_access()); } 29724: 29724: template 29724: const _Tp& 29724: _M_access() const noexcept 29724: { return *static_cast(_M_access()); } 29724: 29724: _Nocopy_types _M_unused; 29724: char _M_pod_data[sizeof(_Nocopy_types)]; 29724: }; 29724: 29724: enum _Manager_operation 29724: { 29724: __get_type_info, 29724: __get_functor_ptr, 29724: __clone_functor, 29724: __destroy_functor 29724: }; 29724: 29724: template 29724: class function; 29724: 29724: 29724: class _Function_base 29724: { 29724: public: 29724: static const size_t _M_max_size = sizeof(_Nocopy_types); 29724: static const size_t _M_max_align = __alignof__(_Nocopy_types); 29724: 29724: template 29724: class _Base_manager 29724: { 29724: protected: 29724: static const bool __stored_locally = 29724: (__is_location_invariant<_Functor>::value 29724: && sizeof(_Functor) <= _M_max_size 29724: && __alignof__(_Functor) <= _M_max_align 29724: && (_M_max_align % __alignof__(_Functor) == 0)); 29724: 29724: using _Local_storage = integral_constant; 29724: 29724: 29724: static _Functor* 29724: _M_get_pointer(const _Any_data& __source) noexcept 29724: { 29724: if constexpr (__stored_locally) 29724: { 29724: const _Functor& __f = __source._M_access<_Functor>(); 29724: return const_cast<_Functor*>(std::__addressof(__f)); 29724: } 29724: else 29724: return __source._M_access<_Functor*>(); 29724: } 29724: 29724: private: 29724: 29724: 29724: template 29724: static void 29724: _M_create(_Any_data& __dest, _Fn&& __f, true_type) 29724: { 29724: ::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f)); 29724: } 29724: 29724: 29724: template 29724: static void 29724: _M_create(_Any_data& __dest, _Fn&& __f, false_type) 29724: { 29724: __dest._M_access<_Functor*>() 29724: = new _Functor(std::forward<_Fn>(__f)); 29724: } 29724: 29724: 29724: static void 29724: _M_destroy(_Any_data& __victim, true_type) 29724: { 29724: __victim._M_access<_Functor>().~_Functor(); 29724: } 29724: 29724: 29724: static void 29724: _M_destroy(_Any_data& __victim, false_type) 29724: { 29724: delete __victim._M_access<_Functor*>(); 29724: } 29724: 29724: public: 29724: static bool 29724: _M_manager(_Any_data& __dest, const _Any_data& __source, 29724: _Manager_operation __op) 29724: { 29724: switch (__op) 29724: { 29724: case __get_type_info: 29724: 29724: __dest._M_access() = &typeid(_Functor); 29724: 29724: 29724: 29724: break; 29724: 29724: case __get_functor_ptr: 29724: __dest._M_access<_Functor*>() = _M_get_pointer(__source); 29724: break; 29724: 29724: case __clone_functor: 29724: _M_init_functor(__dest, 29724: *const_cast(_M_get_pointer(__source))); 29724: break; 29724: 29724: case __destroy_functor: 29724: _M_destroy(__dest, _Local_storage()); 29724: break; 29724: } 29724: return false; 29724: } 29724: 29724: template 29724: static void 29724: _M_init_functor(_Any_data& __functor, _Fn&& __f) 29724: noexcept(__and_<_Local_storage, 29724: is_nothrow_constructible<_Functor, _Fn>>::value) 29724: { 29724: _M_create(__functor, std::forward<_Fn>(__f), _Local_storage()); 29724: } 29724: 29724: template 29724: static bool 29724: _M_not_empty_function(const function<_Signature>& __f) noexcept 29724: { return static_cast(__f); } 29724: 29724: template 29724: static bool 29724: _M_not_empty_function(_Tp* __fp) noexcept 29724: { return __fp != nullptr; } 29724: 29724: template 29724: static bool 29724: _M_not_empty_function(_Tp _Class::* __mp) noexcept 29724: { return __mp != nullptr; } 29724: 29724: template 29724: static bool 29724: _M_not_empty_function(const _Tp&) noexcept 29724: { return true; } 29724: }; 29724: 29724: _Function_base() = default; 29724: 29724: ~_Function_base() 29724: { 29724: if (_M_manager) 29724: _M_manager(_M_functor, _M_functor, __destroy_functor); 29724: } 29724: 29724: bool _M_empty() const { return !_M_manager; } 29724: 29724: using _Manager_type 29724: = bool (*)(_Any_data&, const _Any_data&, _Manager_operation); 29724: 29724: _Any_data _M_functor{}; 29724: _Manager_type _M_manager{}; 29724: }; 29724: 29724: template 29724: class _Function_handler; 29724: 29724: template 29724: class _Function_handler<_Res(_ArgTypes...), _Functor> 29724: : public _Function_base::_Base_manager<_Functor> 29724: { 29724: using _Base = _Function_base::_Base_manager<_Functor>; 29724: 29724: public: 29724: static bool 29724: _M_manager(_Any_data& __dest, const _Any_data& __source, 29724: _Manager_operation __op) 29724: { 29724: switch (__op) 29724: { 29724: 29724: case __get_type_info: 29724: __dest._M_access() = &typeid(_Functor); 29724: break; 29724: 29724: case __get_functor_ptr: 29724: __dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source); 29724: break; 29724: 29724: default: 29724: _Base::_M_manager(__dest, __source, __op); 29724: } 29724: return false; 29724: } 29724: 29724: static _Res 29724: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 29724: { 29724: return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor), 29724: std::forward<_ArgTypes>(__args)...); 29724: } 29724: 29724: template 29724: static constexpr bool 29724: _S_nothrow_init() noexcept 29724: { 29724: return __and_>::value; 29724: } 29724: }; 29724: 29724: 29724: template<> 29724: class _Function_handler 29724: { 29724: public: 29724: static bool 29724: _M_manager(_Any_data&, const _Any_data&, _Manager_operation) 29724: { return false; } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template::value> 29724: struct _Target_handler 29724: : _Function_handler<_Signature, typename remove_cv<_Functor>::type> 29724: { }; 29724: 29724: template 29724: struct _Target_handler<_Signature, _Functor, false> 29724: : _Function_handler 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class function<_Res(_ArgTypes...)> 29724: : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, 29724: private _Function_base 29724: { 29724: 29724: 29724: template, function>::value> 29724: using _Decay_t 29724: = typename __enable_if_t>::type; 29724: 29724: template, 29724: typename _Res2 = __invoke_result<_DFunc&, _ArgTypes...>> 29724: struct _Callable 29724: : __is_invocable_impl<_Res2, _Res>::type 29724: { }; 29724: 29724: template 29724: using _Requires = __enable_if_t<_Cond::value, _Tp>; 29724: 29724: template 29724: using _Handler 29724: = _Function_handler<_Res(_ArgTypes...), __decay_t<_Functor>>; 29724: 29724: public: 29724: typedef _Res result_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: function() noexcept 29724: : _Function_base() { } 29724: 29724: 29724: 29724: 29724: 29724: function(nullptr_t) noexcept 29724: : _Function_base() { } 29724: # 386 "/usr/include/c++/14/bits/std_function.h" 3 29724: function(const function& __x) 29724: : _Function_base() 29724: { 29724: if (static_cast(__x)) 29724: { 29724: __x._M_manager(_M_functor, __x._M_functor, __clone_functor); 29724: _M_invoker = __x._M_invoker; 29724: _M_manager = __x._M_manager; 29724: } 29724: } 29724: # 404 "/usr/include/c++/14/bits/std_function.h" 3 29724: function(function&& __x) noexcept 29724: : _Function_base(), _M_invoker(__x._M_invoker) 29724: { 29724: if (static_cast(__x)) 29724: { 29724: _M_functor = __x._M_functor; 29724: _M_manager = __x._M_manager; 29724: __x._M_manager = nullptr; 29724: __x._M_invoker = nullptr; 29724: } 29724: } 29724: # 433 "/usr/include/c++/14/bits/std_function.h" 3 29724: template>> 29724: function(_Functor&& __f) 29724: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 29724: : _Function_base() 29724: { 29724: static_assert(is_copy_constructible<__decay_t<_Functor>>::value, 29724: "std::function target must be copy-constructible"); 29724: static_assert(is_constructible<__decay_t<_Functor>, _Functor>::value, 29724: "std::function target must be constructible from the " 29724: "constructor argument"); 29724: 29724: using _My_handler = _Handler<_Functor>; 29724: 29724: if (_My_handler::_M_not_empty_function(__f)) 29724: { 29724: _My_handler::_M_init_functor(_M_functor, 29724: std::forward<_Functor>(__f)); 29724: _M_invoker = &_My_handler::_M_invoke; 29724: _M_manager = &_My_handler::_M_manager; 29724: } 29724: } 29724: # 468 "/usr/include/c++/14/bits/std_function.h" 3 29724: function& 29724: operator=(const function& __x) 29724: { 29724: function(__x).swap(*this); 29724: return *this; 29724: } 29724: # 486 "/usr/include/c++/14/bits/std_function.h" 3 29724: function& 29724: operator=(function&& __x) noexcept 29724: { 29724: function(std::move(__x)).swap(*this); 29724: return *this; 29724: } 29724: # 500 "/usr/include/c++/14/bits/std_function.h" 3 29724: function& 29724: operator=(nullptr_t) noexcept 29724: { 29724: if (_M_manager) 29724: { 29724: _M_manager(_M_functor, _M_functor, __destroy_functor); 29724: _M_manager = nullptr; 29724: _M_invoker = nullptr; 29724: } 29724: return *this; 29724: } 29724: # 529 "/usr/include/c++/14/bits/std_function.h" 3 29724: template 29724: _Requires<_Callable<_Functor>, function&> 29724: operator=(_Functor&& __f) 29724: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 29724: { 29724: function(std::forward<_Functor>(__f)).swap(*this); 29724: return *this; 29724: } 29724: 29724: 29724: template 29724: function& 29724: operator=(reference_wrapper<_Functor> __f) noexcept 29724: { 29724: function(__f).swap(*this); 29724: return *this; 29724: } 29724: # 556 "/usr/include/c++/14/bits/std_function.h" 3 29724: void swap(function& __x) noexcept 29724: { 29724: std::swap(_M_functor, __x._M_functor); 29724: std::swap(_M_manager, __x._M_manager); 29724: std::swap(_M_invoker, __x._M_invoker); 29724: } 29724: # 573 "/usr/include/c++/14/bits/std_function.h" 3 29724: explicit operator bool() const noexcept 29724: { return !_M_empty(); } 29724: # 586 "/usr/include/c++/14/bits/std_function.h" 3 29724: _Res 29724: operator()(_ArgTypes... __args) const 29724: { 29724: if (_M_empty()) 29724: __throw_bad_function_call(); 29724: return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); 29724: } 29724: # 605 "/usr/include/c++/14/bits/std_function.h" 3 29724: const type_info& 29724: target_type() const noexcept 29724: { 29724: if (_M_manager) 29724: { 29724: _Any_data __typeinfo_result; 29724: _M_manager(__typeinfo_result, _M_functor, __get_type_info); 29724: if (auto __ti = __typeinfo_result._M_access()) 29724: return *__ti; 29724: } 29724: return typeid(void); 29724: } 29724: # 630 "/usr/include/c++/14/bits/std_function.h" 3 29724: template 29724: _Functor* 29724: target() noexcept 29724: { 29724: const function* __const_this = this; 29724: const _Functor* __func = __const_this->template target<_Functor>(); 29724: 29724: 29724: return *const_cast<_Functor**>(&__func); 29724: } 29724: 29724: template 29724: const _Functor* 29724: target() const noexcept 29724: { 29724: if constexpr (is_object<_Functor>::value) 29724: { 29724: 29724: 29724: using _Handler = _Target_handler<_Res(_ArgTypes...), _Functor>; 29724: 29724: if (_M_manager == &_Handler::_M_manager 29724: 29724: || (_M_manager && typeid(_Functor) == target_type()) 29724: 29724: ) 29724: { 29724: _Any_data __ptr; 29724: _M_manager(__ptr, _M_functor, __get_functor_ptr); 29724: return __ptr._M_access(); 29724: } 29724: } 29724: return nullptr; 29724: } 29724: 29724: 29724: private: 29724: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); 29724: _Invoker_type _M_invoker = nullptr; 29724: }; 29724: 29724: 29724: template 29724: struct __function_guide_helper 29724: { }; 29724: 29724: template 29724: struct __function_guide_helper< 29724: _Res (_Tp::*) (_Args...) noexcept(_Nx) 29724: > 29724: { using type = _Res(_Args...); }; 29724: 29724: template 29724: struct __function_guide_helper< 29724: _Res (_Tp::*) (_Args...) & noexcept(_Nx) 29724: > 29724: { using type = _Res(_Args...); }; 29724: 29724: template 29724: struct __function_guide_helper< 29724: _Res (_Tp::*) (_Args...) const noexcept(_Nx) 29724: > 29724: { using type = _Res(_Args...); }; 29724: 29724: template 29724: struct __function_guide_helper< 29724: _Res (_Tp::*) (_Args...) const & noexcept(_Nx) 29724: > 29724: { using type = _Res(_Args...); }; 29724: # 721 "/usr/include/c++/14/bits/std_function.h" 3 29724: template 29724: using __function_guide_t = typename __function_guide_helper<_Op>::type; 29724: 29724: 29724: template 29724: function(_Res(*)(_ArgTypes...)) -> function<_Res(_ArgTypes...)>; 29724: 29724: template> 29724: function(_Fn) -> function<_Signature>; 29724: # 741 "/usr/include/c++/14/bits/std_function.h" 3 29724: template 29724: inline bool 29724: operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 29724: { return !static_cast(__f); } 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 29724: { return !static_cast(__f); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 29724: { return static_cast(__f); } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 29724: { return static_cast(__f); } 29724: # 780 "/usr/include/c++/14/bits/std_function.h" 3 29724: template 29724: inline void 29724: swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept 29724: { __x.swap(__y); } 29724: 29724: 29724: namespace __detail::__variant 29724: { 29724: template struct _Never_valueless_alt; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : std::true_type 29724: { }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 60 "/usr/include/c++/14/functional" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/unordered_map" 1 3 29724: # 32 "/usr/include/c++/14/unordered_map" 3 29724: 29724: # 33 "/usr/include/c++/14/unordered_map" 3 29724: # 41 "/usr/include/c++/14/unordered_map" 3 29724: # 1 "/usr/include/c++/14/bits/unordered_map.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: # 1 "/usr/include/c++/14/bits/hashtable.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/hashtable.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/hashtable.h" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/hashtable_policy.h" 1 3 29724: # 38 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: # 1 "/usr/include/c++/14/ext/aligned_buffer.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/aligned_buffer.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/aligned_buffer.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __gnu_cxx 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: struct __aligned_membuf 29724: { 29724: 29724: 29724: 29724: 29724: 29724: struct _Tp2 { _Tp _M_t; }; 29724: 29724: alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; 29724: 29724: __aligned_membuf() = default; 29724: 29724: 29724: __aligned_membuf(std::nullptr_t) { } 29724: 29724: void* 29724: _M_addr() noexcept 29724: { return static_cast(&_M_storage); } 29724: 29724: const void* 29724: _M_addr() const noexcept 29724: { return static_cast(&_M_storage); } 29724: 29724: _Tp* 29724: _M_ptr() noexcept 29724: { return static_cast<_Tp*>(_M_addr()); } 29724: 29724: const _Tp* 29724: _M_ptr() const noexcept 29724: { return static_cast(_M_addr()); } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __aligned_buffer 29724: : std::aligned_storage 29724: { 29724: typename 29724: std::aligned_storage::type _M_storage; 29724: 29724: __aligned_buffer() = default; 29724: 29724: 29724: __aligned_buffer(std::nullptr_t) { } 29724: 29724: void* 29724: _M_addr() noexcept 29724: { 29724: return static_cast(&_M_storage); 29724: } 29724: 29724: const void* 29724: _M_addr() const noexcept 29724: { 29724: return static_cast(&_M_storage); 29724: } 29724: 29724: _Tp* 29724: _M_ptr() noexcept 29724: { return static_cast<_Tp*>(_M_addr()); } 29724: 29724: const _Tp* 29724: _M_ptr() const noexcept 29724: { return static_cast(_M_addr()); } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: } 29724: # 39 "/usr/include/c++/14/bits/hashtable_policy.h" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class _Hashtable; 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hashtable_base; 29724: 29724: 29724: 29724: template 29724: inline typename std::iterator_traits<_Iterator>::difference_type 29724: __distance_fw(_Iterator __first, _Iterator __last, 29724: std::input_iterator_tag) 29724: { return __first != __last ? 1 : 0; } 29724: 29724: template 29724: inline typename std::iterator_traits<_Iterator>::difference_type 29724: __distance_fw(_Iterator __first, _Iterator __last, 29724: std::forward_iterator_tag) 29724: { return std::distance(__first, __last); } 29724: 29724: template 29724: inline typename std::iterator_traits<_Iterator>::difference_type 29724: __distance_fw(_Iterator __first, _Iterator __last) 29724: { return __distance_fw(__first, __last, 29724: std::__iterator_category(__first)); } 29724: 29724: struct _Identity 29724: { 29724: template 29724: _Tp&& 29724: operator()(_Tp&& __x) const noexcept 29724: { return std::forward<_Tp>(__x); } 29724: }; 29724: 29724: struct _Select1st 29724: { 29724: template 29724: struct __1st_type; 29724: 29724: template 29724: struct __1st_type> 29724: { using type = _Tp; }; 29724: 29724: template 29724: struct __1st_type> 29724: { using type = const _Tp; }; 29724: 29724: template 29724: struct __1st_type<_Pair&> 29724: { using type = typename __1st_type<_Pair>::type&; }; 29724: 29724: template 29724: typename __1st_type<_Tp>::type&& 29724: operator()(_Tp&& __x) const noexcept 29724: { return std::forward<_Tp>(__x).first; } 29724: }; 29724: 29724: template 29724: struct _ConvertToValueType; 29724: 29724: template 29724: struct _ConvertToValueType<_Identity, _Value> 29724: { 29724: template 29724: constexpr _Kt&& 29724: operator()(_Kt&& __k) const noexcept 29724: { return std::forward<_Kt>(__k); } 29724: }; 29724: 29724: template 29724: struct _ConvertToValueType<_Select1st, _Value> 29724: { 29724: constexpr _Value&& 29724: operator()(_Value&& __x) const noexcept 29724: { return std::move(__x); } 29724: 29724: constexpr const _Value& 29724: operator()(const _Value& __x) const noexcept 29724: { return __x; } 29724: 29724: template 29724: constexpr std::pair<_Kt, _Val>&& 29724: operator()(std::pair<_Kt, _Val>&& __x) const noexcept 29724: { return std::move(__x); } 29724: 29724: template 29724: constexpr const std::pair<_Kt, _Val>& 29724: operator()(const std::pair<_Kt, _Val>& __x) const noexcept 29724: { return __x; } 29724: }; 29724: 29724: template 29724: struct _NodeBuilder; 29724: 29724: template<> 29724: struct _NodeBuilder<_Select1st> 29724: { 29724: template 29724: static auto 29724: _S_build(_Kt&& __k, _Arg&& __arg, const _NodeGenerator& __node_gen) 29724: -> typename _NodeGenerator::__node_ptr 29724: { 29724: return __node_gen(std::forward<_Kt>(__k), 29724: std::forward<_Arg>(__arg).second); 29724: } 29724: }; 29724: 29724: template<> 29724: struct _NodeBuilder<_Identity> 29724: { 29724: template 29724: static auto 29724: _S_build(_Kt&& __k, _Arg&&, const _NodeGenerator& __node_gen) 29724: -> typename _NodeGenerator::__node_ptr 29724: { return __node_gen(std::forward<_Kt>(__k)); } 29724: }; 29724: 29724: template 29724: struct _NodePtrGuard 29724: { 29724: _HashtableAlloc& _M_h; 29724: _NodePtr _M_ptr; 29724: 29724: ~_NodePtrGuard() 29724: { 29724: if (_M_ptr) 29724: _M_h._M_deallocate_node_ptr(_M_ptr); 29724: } 29724: }; 29724: 29724: template 29724: struct _Hashtable_alloc; 29724: 29724: 29724: 29724: template 29724: struct _ReuseOrAllocNode 29724: { 29724: private: 29724: using __node_alloc_type = _NodeAlloc; 29724: using __hashtable_alloc = _Hashtable_alloc<__node_alloc_type>; 29724: using __node_alloc_traits = 29724: typename __hashtable_alloc::__node_alloc_traits; 29724: 29724: public: 29724: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29724: 29724: _ReuseOrAllocNode(__node_ptr __nodes, __hashtable_alloc& __h) 29724: : _M_nodes(__nodes), _M_h(__h) { } 29724: _ReuseOrAllocNode(const _ReuseOrAllocNode&) = delete; 29724: 29724: ~_ReuseOrAllocNode() 29724: { _M_h._M_deallocate_nodes(_M_nodes); } 29724: 29724: template 29724: __node_ptr 29724: operator()(_Args&&... __args) const 29724: { 29724: if (!_M_nodes) 29724: return _M_h._M_allocate_node(std::forward<_Args>(__args)...); 29724: 29724: __node_ptr __node = _M_nodes; 29724: _M_nodes = _M_nodes->_M_next(); 29724: __node->_M_nxt = nullptr; 29724: auto& __a = _M_h._M_node_allocator(); 29724: __node_alloc_traits::destroy(__a, __node->_M_valptr()); 29724: _NodePtrGuard<__hashtable_alloc, __node_ptr> __guard { _M_h, __node }; 29724: __node_alloc_traits::construct(__a, __node->_M_valptr(), 29724: std::forward<_Args>(__args)...); 29724: __guard._M_ptr = nullptr; 29724: return __node; 29724: } 29724: 29724: private: 29724: mutable __node_ptr _M_nodes; 29724: __hashtable_alloc& _M_h; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct _AllocNode 29724: { 29724: private: 29724: using __hashtable_alloc = _Hashtable_alloc<_NodeAlloc>; 29724: 29724: public: 29724: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29724: 29724: _AllocNode(__hashtable_alloc& __h) 29724: : _M_h(__h) { } 29724: 29724: template 29724: __node_ptr 29724: operator()(_Args&&... __args) const 29724: { return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } 29724: 29724: private: 29724: __hashtable_alloc& _M_h; 29724: }; 29724: # 285 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: template 29724: struct _Hashtable_traits 29724: { 29724: using __hash_cached = __bool_constant<_Cache_hash_code>; 29724: using __constant_iterators = __bool_constant<_Constant_iterators>; 29724: using __unique_keys = __bool_constant<_Unique_keys>; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hashtable_hash_traits 29724: { 29724: static constexpr std::size_t 29724: __small_size_threshold() noexcept 29724: { return std::__is_fast_hash<_Hash>::value ? 0 : 20; } 29724: }; 29724: # 315 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: struct _Hash_node_base 29724: { 29724: _Hash_node_base* _M_nxt; 29724: 29724: _Hash_node_base() noexcept : _M_nxt() { } 29724: 29724: _Hash_node_base(_Hash_node_base* __next) noexcept : _M_nxt(__next) { } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hash_node_value_base 29724: { 29724: typedef _Value value_type; 29724: 29724: __gnu_cxx::__aligned_buffer<_Value> _M_storage; 29724: 29724: [[__gnu__::__always_inline__]] 29724: _Value* 29724: _M_valptr() noexcept 29724: { return _M_storage._M_ptr(); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: const _Value* 29724: _M_valptr() const noexcept 29724: { return _M_storage._M_ptr(); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: _Value& 29724: _M_v() noexcept 29724: { return *_M_valptr(); } 29724: 29724: [[__gnu__::__always_inline__]] 29724: const _Value& 29724: _M_v() const noexcept 29724: { return *_M_valptr(); } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hash_node_code_cache 29724: { }; 29724: 29724: 29724: 29724: 29724: template<> 29724: struct _Hash_node_code_cache 29724: { std::size_t _M_hash_code; }; 29724: 29724: template 29724: struct _Hash_node_value 29724: : _Hash_node_value_base<_Value> 29724: , _Hash_node_code_cache<_Cache_hash_code> 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hash_node 29724: : _Hash_node_base 29724: , _Hash_node_value<_Value, _Cache_hash_code> 29724: { 29724: _Hash_node* 29724: _M_next() const noexcept 29724: { return static_cast<_Hash_node*>(this->_M_nxt); } 29724: }; 29724: 29724: 29724: template 29724: struct _Node_iterator_base 29724: { 29724: using __node_type = _Hash_node<_Value, _Cache_hash_code>; 29724: 29724: __node_type* _M_cur; 29724: 29724: _Node_iterator_base() : _M_cur(nullptr) { } 29724: _Node_iterator_base(__node_type* __p) noexcept 29724: : _M_cur(__p) { } 29724: 29724: void 29724: _M_incr() noexcept 29724: { _M_cur = _M_cur->_M_next(); } 29724: 29724: friend bool 29724: operator==(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 29724: noexcept 29724: { return __x._M_cur == __y._M_cur; } 29724: 29724: 29724: friend bool 29724: operator!=(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 29724: noexcept 29724: { return __x._M_cur != __y._M_cur; } 29724: 29724: }; 29724: 29724: 29724: template 29724: struct _Node_iterator 29724: : public _Node_iterator_base<_Value, __cache> 29724: { 29724: private: 29724: using __base_type = _Node_iterator_base<_Value, __cache>; 29724: using __node_type = typename __base_type::__node_type; 29724: 29724: public: 29724: using value_type = _Value; 29724: using difference_type = std::ptrdiff_t; 29724: using iterator_category = std::forward_iterator_tag; 29724: 29724: using pointer = __conditional_t<__constant_iterators, 29724: const value_type*, value_type*>; 29724: 29724: using reference = __conditional_t<__constant_iterators, 29724: const value_type&, value_type&>; 29724: 29724: _Node_iterator() = default; 29724: 29724: explicit 29724: _Node_iterator(__node_type* __p) noexcept 29724: : __base_type(__p) { } 29724: 29724: reference 29724: operator*() const noexcept 29724: { return this->_M_cur->_M_v(); } 29724: 29724: pointer 29724: operator->() const noexcept 29724: { return this->_M_cur->_M_valptr(); } 29724: 29724: _Node_iterator& 29724: operator++() noexcept 29724: { 29724: this->_M_incr(); 29724: return *this; 29724: } 29724: 29724: _Node_iterator 29724: operator++(int) noexcept 29724: { 29724: _Node_iterator __tmp(*this); 29724: this->_M_incr(); 29724: return __tmp; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Node_const_iterator 29724: : public _Node_iterator_base<_Value, __cache> 29724: { 29724: private: 29724: using __base_type = _Node_iterator_base<_Value, __cache>; 29724: using __node_type = typename __base_type::__node_type; 29724: 29724: public: 29724: typedef _Value value_type; 29724: typedef std::ptrdiff_t difference_type; 29724: typedef std::forward_iterator_tag iterator_category; 29724: 29724: typedef const value_type* pointer; 29724: typedef const value_type& reference; 29724: 29724: _Node_const_iterator() = default; 29724: 29724: explicit 29724: _Node_const_iterator(__node_type* __p) noexcept 29724: : __base_type(__p) { } 29724: 29724: _Node_const_iterator(const _Node_iterator<_Value, __constant_iterators, 29724: __cache>& __x) noexcept 29724: : __base_type(__x._M_cur) { } 29724: 29724: reference 29724: operator*() const noexcept 29724: { return this->_M_cur->_M_v(); } 29724: 29724: pointer 29724: operator->() const noexcept 29724: { return this->_M_cur->_M_valptr(); } 29724: 29724: _Node_const_iterator& 29724: operator++() noexcept 29724: { 29724: this->_M_incr(); 29724: return *this; 29724: } 29724: 29724: _Node_const_iterator 29724: operator++(int) noexcept 29724: { 29724: _Node_const_iterator __tmp(*this); 29724: this->_M_incr(); 29724: return __tmp; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct _Mod_range_hashing 29724: { 29724: typedef std::size_t first_argument_type; 29724: typedef std::size_t second_argument_type; 29724: typedef std::size_t result_type; 29724: 29724: result_type 29724: operator()(first_argument_type __num, 29724: second_argument_type __den) const noexcept 29724: { return __num % __den; } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct _Default_ranged_hash { }; 29724: 29724: 29724: 29724: struct _Prime_rehash_policy 29724: { 29724: using __has_load_factor = true_type; 29724: 29724: _Prime_rehash_policy(float __z = 1.0) noexcept 29724: : _M_max_load_factor(__z), _M_next_resize(0) { } 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_max_load_factor; } 29724: 29724: 29724: std::size_t 29724: _M_next_bkt(std::size_t __n) const; 29724: 29724: 29724: std::size_t 29724: _M_bkt_for_elements(std::size_t __n) const 29724: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 29724: 29724: 29724: 29724: 29724: 29724: std::pair 29724: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 29724: std::size_t __n_ins) const; 29724: 29724: typedef std::size_t _State; 29724: 29724: _State 29724: _M_state() const 29724: { return _M_next_resize; } 29724: 29724: void 29724: _M_reset() noexcept 29724: { _M_next_resize = 0; } 29724: 29724: void 29724: _M_reset(_State __state) 29724: { _M_next_resize = __state; } 29724: 29724: static const std::size_t _S_growth_factor = 2; 29724: 29724: float _M_max_load_factor; 29724: mutable std::size_t _M_next_resize; 29724: }; 29724: 29724: 29724: struct _Mask_range_hashing 29724: { 29724: typedef std::size_t first_argument_type; 29724: typedef std::size_t second_argument_type; 29724: typedef std::size_t result_type; 29724: 29724: result_type 29724: operator()(first_argument_type __num, 29724: second_argument_type __den) const noexcept 29724: { return __num & (__den - 1); } 29724: }; 29724: 29724: 29724: inline std::size_t 29724: __clp2(std::size_t __n) noexcept 29724: { 29724: using __gnu_cxx::__int_traits; 29724: 29724: if (__n < 2) 29724: return __n; 29724: const unsigned __lz = sizeof(size_t) > sizeof(long) 29724: ? __builtin_clzll(__n - 1ull) 29724: : __builtin_clzl(__n - 1ul); 29724: 29724: return (size_t(1) << (__int_traits::__digits - __lz - 1)) << 1; 29724: } 29724: 29724: 29724: 29724: struct _Power2_rehash_policy 29724: { 29724: using __has_load_factor = true_type; 29724: 29724: _Power2_rehash_policy(float __z = 1.0) noexcept 29724: : _M_max_load_factor(__z), _M_next_resize(0) { } 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_max_load_factor; } 29724: 29724: 29724: 29724: std::size_t 29724: _M_next_bkt(std::size_t __n) noexcept 29724: { 29724: if (__n == 0) 29724: 29724: 29724: 29724: return 1; 29724: 29724: const auto __max_width = std::min(sizeof(size_t), 8); 29724: const auto __max_bkt = size_t(1) << (__max_width * 8 - 1); 29724: std::size_t __res = __clp2(__n); 29724: 29724: if (__res == 0) 29724: __res = __max_bkt; 29724: else if (__res == 1) 29724: 29724: 29724: 29724: __res = 2; 29724: 29724: if (__res == __max_bkt) 29724: 29724: 29724: 29724: _M_next_resize = size_t(-1); 29724: else 29724: _M_next_resize 29724: = __builtin_floor(__res * (double)_M_max_load_factor); 29724: 29724: return __res; 29724: } 29724: 29724: 29724: std::size_t 29724: _M_bkt_for_elements(std::size_t __n) const noexcept 29724: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 29724: 29724: 29724: 29724: 29724: 29724: std::pair 29724: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 29724: std::size_t __n_ins) noexcept 29724: { 29724: if (__n_elt + __n_ins > _M_next_resize) 29724: { 29724: 29724: 29724: 29724: double __min_bkts 29724: = std::max(__n_elt + __n_ins, _M_next_resize ? 0 : 11) 29724: / (double)_M_max_load_factor; 29724: if (__min_bkts >= __n_bkt) 29724: return { true, 29724: _M_next_bkt(std::max(__builtin_floor(__min_bkts) + 1, 29724: __n_bkt * _S_growth_factor)) }; 29724: 29724: _M_next_resize 29724: = __builtin_floor(__n_bkt * (double)_M_max_load_factor); 29724: return { false, 0 }; 29724: } 29724: else 29724: return { false, 0 }; 29724: } 29724: 29724: typedef std::size_t _State; 29724: 29724: _State 29724: _M_state() const noexcept 29724: { return _M_next_resize; } 29724: 29724: void 29724: _M_reset() noexcept 29724: { _M_next_resize = 0; } 29724: 29724: void 29724: _M_reset(_State __state) noexcept 29724: { _M_next_resize = __state; } 29724: 29724: static const std::size_t _S_growth_factor = 2; 29724: 29724: float _M_max_load_factor; 29724: std::size_t _M_next_resize; 29724: }; 29724: 29724: template 29724: struct _RehashStateGuard 29724: { 29724: _RehashPolicy* _M_guarded_obj; 29724: typename _RehashPolicy::_State _M_prev_state; 29724: 29724: _RehashStateGuard(_RehashPolicy& __policy) 29724: : _M_guarded_obj(std::__addressof(__policy)) 29724: , _M_prev_state(__policy._M_state()) 29724: { } 29724: _RehashStateGuard(const _RehashStateGuard&) = delete; 29724: 29724: ~_RehashStateGuard() 29724: { 29724: if (_M_guarded_obj) 29724: _M_guarded_obj->_M_reset(_M_prev_state); 29724: } 29724: }; 29724: # 761 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: template 29724: struct _Map_base { }; 29724: 29724: 29724: template 29724: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29724: { 29724: using mapped_type = _Val; 29724: }; 29724: 29724: 29724: template 29724: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 29724: { 29724: private: 29724: using __hashtable_base = _Hashtable_base<_Key, pair, 29724: _Select1st, _Equal, _Hash, 29724: _RangeHash, _Unused, 29724: _Traits>; 29724: 29724: using __hashtable = _Hashtable<_Key, pair, _Alloc, 29724: _Select1st, _Equal, _Hash, _RangeHash, 29724: _Unused, _RehashPolicy, _Traits>; 29724: 29724: using __hash_code = typename __hashtable_base::__hash_code; 29724: 29724: public: 29724: using key_type = typename __hashtable_base::key_type; 29724: using mapped_type = _Val; 29724: 29724: mapped_type& 29724: operator[](const key_type& __k); 29724: 29724: mapped_type& 29724: operator[](key_type&& __k); 29724: 29724: 29724: 29724: mapped_type& 29724: at(const key_type& __k) 29724: { 29724: auto __ite = static_cast<__hashtable*>(this)->find(__k); 29724: if (!__ite._M_cur) 29724: __throw_out_of_range(("unordered_map::at")); 29724: return __ite->second; 29724: } 29724: 29724: const mapped_type& 29724: at(const key_type& __k) const 29724: { 29724: auto __ite = static_cast(this)->find(__k); 29724: if (!__ite._M_cur) 29724: __throw_out_of_range(("unordered_map::at")); 29724: return __ite->second; 29724: } 29724: }; 29724: 29724: template 29724: auto 29724: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29724: operator[](const key_type& __k) 29724: -> mapped_type& 29724: { 29724: __hashtable* __h = static_cast<__hashtable*>(this); 29724: __hash_code __code = __h->_M_hash_code(__k); 29724: std::size_t __bkt = __h->_M_bucket_index(__code); 29724: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 29724: return __node->_M_v().second; 29724: 29724: typename __hashtable::_Scoped_node __node { 29724: __h, 29724: std::piecewise_construct, 29724: std::tuple(__k), 29724: std::tuple<>() 29724: }; 29724: auto __pos 29724: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 29724: __node._M_node = nullptr; 29724: return __pos->second; 29724: } 29724: 29724: template 29724: auto 29724: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29724: operator[](key_type&& __k) 29724: -> mapped_type& 29724: { 29724: __hashtable* __h = static_cast<__hashtable*>(this); 29724: __hash_code __code = __h->_M_hash_code(__k); 29724: std::size_t __bkt = __h->_M_bucket_index(__code); 29724: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 29724: return __node->_M_v().second; 29724: 29724: typename __hashtable::_Scoped_node __node { 29724: __h, 29724: std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::tuple<>() 29724: }; 29724: auto __pos 29724: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 29724: __node._M_node = nullptr; 29724: return __pos->second; 29724: } 29724: 29724: 29724: template 29724: struct _Map_base, 29724: _Alloc, _Select1st, _Equal, _Hash, 29724: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 29724: : _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, _Hash, 29724: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Insert_base 29724: { 29724: protected: 29724: using __hashtable_base = _Hashtable_base<_Key, _Value, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, 29724: _Unused, _Traits>; 29724: 29724: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, 29724: _Unused, _RehashPolicy, _Traits>; 29724: 29724: using __hash_cached = typename _Traits::__hash_cached; 29724: using __constant_iterators = typename _Traits::__constant_iterators; 29724: 29724: using __hashtable_alloc = _Hashtable_alloc< 29724: __alloc_rebind<_Alloc, _Hash_node<_Value, 29724: __hash_cached::value>>>; 29724: 29724: using value_type = typename __hashtable_base::value_type; 29724: using size_type = typename __hashtable_base::size_type; 29724: 29724: using __unique_keys = typename _Traits::__unique_keys; 29724: using __node_alloc_type = typename __hashtable_alloc::__node_alloc_type; 29724: using __node_gen_type = _AllocNode<__node_alloc_type>; 29724: 29724: __hashtable& 29724: _M_conjure_hashtable() 29724: { return *(static_cast<__hashtable*>(this)); } 29724: 29724: template 29724: void 29724: _M_insert_range(_InputIterator __first, _InputIterator __last, 29724: const _NodeGetter&, true_type __uks); 29724: 29724: template 29724: void 29724: _M_insert_range(_InputIterator __first, _InputIterator __last, 29724: const _NodeGetter&, false_type __uks); 29724: 29724: public: 29724: using iterator = _Node_iterator<_Value, __constant_iterators::value, 29724: __hash_cached::value>; 29724: 29724: using const_iterator = _Node_const_iterator<_Value, 29724: __constant_iterators::value, 29724: __hash_cached::value>; 29724: 29724: using __ireturn_type = __conditional_t<__unique_keys::value, 29724: std::pair, 29724: iterator>; 29724: 29724: __ireturn_type 29724: insert(const value_type& __v) 29724: { 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: __node_gen_type __node_gen(__h); 29724: return __h._M_insert(__v, __node_gen, __unique_keys{}); 29724: } 29724: 29724: iterator 29724: insert(const_iterator __hint, const value_type& __v) 29724: { 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: __node_gen_type __node_gen(__h); 29724: return __h._M_insert(__hint, __v, __node_gen, __unique_keys{}); 29724: } 29724: 29724: 29724: template 29724: std::pair 29724: try_emplace(const_iterator, _KType&& __k, _Args&&... __args) 29724: { 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: auto __code = __h._M_hash_code(__k); 29724: std::size_t __bkt = __h._M_bucket_index(__code); 29724: if (auto __node = __h._M_find_node(__bkt, __k, __code)) 29724: return { iterator(__node), false }; 29724: 29724: typename __hashtable::_Scoped_node __node { 29724: &__h, 29724: std::piecewise_construct, 29724: std::forward_as_tuple(std::forward<_KType>(__k)), 29724: std::forward_as_tuple(std::forward<_Args>(__args)...) 29724: }; 29724: auto __it 29724: = __h._M_insert_unique_node(__bkt, __code, __node._M_node); 29724: __node._M_node = nullptr; 29724: return { __it, true }; 29724: } 29724: 29724: 29724: void 29724: insert(initializer_list __l) 29724: { this->insert(__l.begin(), __l.end()); } 29724: 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: __node_gen_type __node_gen(__h); 29724: return _M_insert_range(__first, __last, __node_gen, __unique_keys{}); 29724: } 29724: }; 29724: 29724: template 29724: template 29724: void 29724: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>:: 29724: _M_insert_range(_InputIterator __first, _InputIterator __last, 29724: const _NodeGetter& __node_gen, true_type __uks) 29724: { 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: for (; __first != __last; ++__first) 29724: __h._M_insert(*__first, __node_gen, __uks); 29724: } 29724: 29724: template 29724: template 29724: void 29724: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>:: 29724: _M_insert_range(_InputIterator __first, _InputIterator __last, 29724: const _NodeGetter& __node_gen, false_type __uks) 29724: { 29724: using __rehash_guard_t = typename __hashtable::__rehash_guard_t; 29724: using __pair_type = std::pair; 29724: 29724: size_type __n_elt = __detail::__distance_fw(__first, __last); 29724: if (__n_elt == 0) 29724: return; 29724: 29724: __hashtable& __h = _M_conjure_hashtable(); 29724: __rehash_guard_t __rehash_guard(__h._M_rehash_policy); 29724: __pair_type __do_rehash 29724: = __h._M_rehash_policy._M_need_rehash(__h._M_bucket_count, 29724: __h._M_element_count, 29724: __n_elt); 29724: 29724: if (__do_rehash.first) 29724: __h._M_rehash(__do_rehash.second, __uks); 29724: 29724: __rehash_guard._M_guarded_obj = nullptr; 29724: for (; __first != __last; ++__first) 29724: __h._M_insert(*__first, __node_gen, __uks); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Insert; 29724: 29724: 29724: template 29724: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits, true> 29724: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 29724: { 29724: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: using value_type = typename __base_type::value_type; 29724: using iterator = typename __base_type::iterator; 29724: using const_iterator = typename __base_type::const_iterator; 29724: using __ireturn_type = typename __base_type::__ireturn_type; 29724: 29724: using __unique_keys = typename __base_type::__unique_keys; 29724: using __hashtable = typename __base_type::__hashtable; 29724: using __node_gen_type = typename __base_type::__node_gen_type; 29724: 29724: using __base_type::insert; 29724: 29724: __ireturn_type 29724: insert(value_type&& __v) 29724: { 29724: __hashtable& __h = this->_M_conjure_hashtable(); 29724: __node_gen_type __node_gen(__h); 29724: return __h._M_insert(std::move(__v), __node_gen, __unique_keys{}); 29724: } 29724: 29724: iterator 29724: insert(const_iterator __hint, value_type&& __v) 29724: { 29724: __hashtable& __h = this->_M_conjure_hashtable(); 29724: __node_gen_type __node_gen(__h); 29724: return __h._M_insert(__hint, std::move(__v), __node_gen, 29724: __unique_keys{}); 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29724: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 29724: { 29724: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: using value_type = typename __base_type::value_type; 29724: using iterator = typename __base_type::iterator; 29724: using const_iterator = typename __base_type::const_iterator; 29724: 29724: using __unique_keys = typename __base_type::__unique_keys; 29724: using __hashtable = typename __base_type::__hashtable; 29724: using __ireturn_type = typename __base_type::__ireturn_type; 29724: 29724: using __base_type::insert; 29724: 29724: template 29724: using __is_cons = std::is_constructible; 29724: 29724: template 29724: using _IFcons = std::enable_if<__is_cons<_Pair>::value>; 29724: 29724: template 29724: using _IFconsp = typename _IFcons<_Pair>::type; 29724: 29724: template> 29724: __ireturn_type 29724: insert(_Pair&& __v) 29724: { 29724: __hashtable& __h = this->_M_conjure_hashtable(); 29724: return __h._M_emplace(__unique_keys{}, std::forward<_Pair>(__v)); 29724: } 29724: 29724: template> 29724: iterator 29724: insert(const_iterator __hint, _Pair&& __v) 29724: { 29724: __hashtable& __h = this->_M_conjure_hashtable(); 29724: return __h._M_emplace(__hint, __unique_keys{}, 29724: std::forward<_Pair>(__v)); 29724: } 29724: }; 29724: 29724: template 29724: using __has_load_factor = typename _Policy::__has_load_factor; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: struct _Rehash_base; 29724: 29724: 29724: template 29724: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 29724: false_type > 29724: { 29724: }; 29724: 29724: 29724: template 29724: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 29724: true_type > 29724: { 29724: private: 29724: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: public: 29724: float 29724: max_load_factor() const noexcept 29724: { 29724: const __hashtable* __this = static_cast(this); 29724: return __this->__rehash_policy().max_load_factor(); 29724: } 29724: 29724: void 29724: max_load_factor(float __z) 29724: { 29724: __hashtable* __this = static_cast<__hashtable*>(this); 29724: __this->__rehash_policy(_RehashPolicy(__z)); 29724: } 29724: 29724: void 29724: reserve(std::size_t __n) 29724: { 29724: __hashtable* __this = static_cast<__hashtable*>(this); 29724: __this->rehash(__this->__rehash_policy()._M_bkt_for_elements(__n)); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hashtable_ebo_helper; 29724: 29724: 29724: template 29724: struct _Hashtable_ebo_helper<_Nm, _Tp, true> 29724: : private _Tp 29724: { 29724: _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } 29724: 29724: template 29724: _Hashtable_ebo_helper(_OtherTp&& __tp) 29724: : _Tp(std::forward<_OtherTp>(__tp)) 29724: { } 29724: 29724: const _Tp& _M_cget() const { return static_cast(*this); } 29724: _Tp& _M_get() { return static_cast<_Tp&>(*this); } 29724: }; 29724: 29724: 29724: template 29724: struct _Hashtable_ebo_helper<_Nm, _Tp, false> 29724: { 29724: _Hashtable_ebo_helper() = default; 29724: 29724: template 29724: _Hashtable_ebo_helper(_OtherTp&& __tp) 29724: : _M_tp(std::forward<_OtherTp>(__tp)) 29724: { } 29724: 29724: const _Tp& _M_cget() const { return _M_tp; } 29724: _Tp& _M_get() { return _M_tp; } 29724: 29724: private: 29724: _Tp _M_tp{}; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Local_iterator_base; 29724: # 1303 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: template 29724: struct _Hash_code_base 29724: : private _Hashtable_ebo_helper<1, _Hash> 29724: { 29724: private: 29724: using __ebo_hash = _Hashtable_ebo_helper<1, _Hash>; 29724: 29724: 29724: friend struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, false>; 29724: 29724: public: 29724: typedef _Hash hasher; 29724: 29724: hasher 29724: hash_function() const 29724: { return _M_hash(); } 29724: 29724: protected: 29724: typedef std::size_t __hash_code; 29724: 29724: 29724: 29724: _Hash_code_base() = default; 29724: 29724: _Hash_code_base(const _Hash& __hash) : __ebo_hash(__hash) { } 29724: 29724: __hash_code 29724: _M_hash_code(const _Key& __k) const 29724: { 29724: static_assert(__is_invocable{}, 29724: "hash function must be invocable with an argument of key type"); 29724: return _M_hash()(__k); 29724: } 29724: 29724: template 29724: __hash_code 29724: _M_hash_code_tr(const _Kt& __k) const 29724: { 29724: static_assert(__is_invocable{}, 29724: "hash function must be invocable with an argument of key type"); 29724: return _M_hash()(__k); 29724: } 29724: 29724: __hash_code 29724: _M_hash_code(const _Hash_node_value<_Value, false>& __n) const 29724: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 29724: 29724: __hash_code 29724: _M_hash_code(const _Hash_node_value<_Value, true>& __n) const 29724: { return __n._M_hash_code; } 29724: 29724: std::size_t 29724: _M_bucket_index(__hash_code __c, std::size_t __bkt_count) const 29724: { return _RangeHash{}(__c, __bkt_count); } 29724: 29724: std::size_t 29724: _M_bucket_index(const _Hash_node_value<_Value, false>& __n, 29724: std::size_t __bkt_count) const 29724: noexcept( noexcept(declval()(declval())) 29724: && noexcept(declval()((__hash_code)0, 29724: (std::size_t)0)) ) 29724: { 29724: return _RangeHash{}(_M_hash_code(_ExtractKey{}(__n._M_v())), 29724: __bkt_count); 29724: } 29724: 29724: std::size_t 29724: _M_bucket_index(const _Hash_node_value<_Value, true>& __n, 29724: std::size_t __bkt_count) const 29724: noexcept( noexcept(declval()((__hash_code)0, 29724: (std::size_t)0)) ) 29724: { return _RangeHash{}(__n._M_hash_code, __bkt_count); } 29724: 29724: void 29724: _M_store_code(_Hash_node_code_cache&, __hash_code) const 29724: { } 29724: 29724: void 29724: _M_copy_code(_Hash_node_code_cache&, 29724: const _Hash_node_code_cache&) const 29724: { } 29724: 29724: void 29724: _M_store_code(_Hash_node_code_cache& __n, __hash_code __c) const 29724: { __n._M_hash_code = __c; } 29724: 29724: void 29724: _M_copy_code(_Hash_node_code_cache& __to, 29724: const _Hash_node_code_cache& __from) const 29724: { __to._M_hash_code = __from._M_hash_code; } 29724: 29724: void 29724: _M_swap(_Hash_code_base& __x) 29724: { std::swap(__ebo_hash::_M_get(), __x.__ebo_hash::_M_get()); } 29724: 29724: const _Hash& 29724: _M_hash() const { return __ebo_hash::_M_cget(); } 29724: }; 29724: 29724: 29724: template 29724: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, true> 29724: : public _Node_iterator_base<_Value, true> 29724: { 29724: protected: 29724: using __base_node_iter = _Node_iterator_base<_Value, true>; 29724: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, true>; 29724: 29724: _Local_iterator_base() = default; 29724: _Local_iterator_base(const __hash_code_base&, 29724: _Hash_node<_Value, true>* __p, 29724: std::size_t __bkt, std::size_t __bkt_count) 29724: : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 29724: { } 29724: 29724: void 29724: _M_incr() 29724: { 29724: __base_node_iter::_M_incr(); 29724: if (this->_M_cur) 29724: { 29724: std::size_t __bkt 29724: = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count); 29724: if (__bkt != _M_bucket) 29724: this->_M_cur = nullptr; 29724: } 29724: } 29724: 29724: std::size_t _M_bucket; 29724: std::size_t _M_bucket_count; 29724: 29724: public: 29724: std::size_t 29724: _M_get_bucket() const { return _M_bucket; } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template::value> 29724: struct _Hash_code_storage 29724: { 29724: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 29724: 29724: _Tp* 29724: _M_h() { return _M_storage._M_ptr(); } 29724: 29724: const _Tp* 29724: _M_h() const { return _M_storage._M_ptr(); } 29724: }; 29724: 29724: 29724: template 29724: struct _Hash_code_storage<_Tp, true> 29724: { 29724: static_assert( std::is_empty<_Tp>::value, "Type must be empty" ); 29724: 29724: 29724: 29724: _Tp* 29724: _M_h() { return reinterpret_cast<_Tp*>(this); } 29724: 29724: const _Tp* 29724: _M_h() const { return reinterpret_cast(this); } 29724: }; 29724: 29724: template 29724: using __hash_code_for_local_iter 29724: = _Hash_code_storage<_Hash_code_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, false>>; 29724: 29724: 29724: template 29724: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, false> 29724: : __hash_code_for_local_iter<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 29724: _Unused> 29724: , _Node_iterator_base<_Value, false> 29724: { 29724: protected: 29724: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, false>; 29724: using __node_iter_base = _Node_iterator_base<_Value, false>; 29724: 29724: _Local_iterator_base() : _M_bucket_count(-1) { } 29724: 29724: _Local_iterator_base(const __hash_code_base& __base, 29724: _Hash_node<_Value, false>* __p, 29724: std::size_t __bkt, std::size_t __bkt_count) 29724: : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 29724: { _M_init(__base); } 29724: 29724: ~_Local_iterator_base() 29724: { 29724: if (_M_bucket_count != size_t(-1)) 29724: _M_destroy(); 29724: } 29724: 29724: _Local_iterator_base(const _Local_iterator_base& __iter) 29724: : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket) 29724: , _M_bucket_count(__iter._M_bucket_count) 29724: { 29724: if (_M_bucket_count != size_t(-1)) 29724: _M_init(*__iter._M_h()); 29724: } 29724: 29724: _Local_iterator_base& 29724: operator=(const _Local_iterator_base& __iter) 29724: { 29724: if (_M_bucket_count != -1) 29724: _M_destroy(); 29724: this->_M_cur = __iter._M_cur; 29724: _M_bucket = __iter._M_bucket; 29724: _M_bucket_count = __iter._M_bucket_count; 29724: if (_M_bucket_count != -1) 29724: _M_init(*__iter._M_h()); 29724: return *this; 29724: } 29724: 29724: void 29724: _M_incr() 29724: { 29724: __node_iter_base::_M_incr(); 29724: if (this->_M_cur) 29724: { 29724: std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur, 29724: _M_bucket_count); 29724: if (__bkt != _M_bucket) 29724: this->_M_cur = nullptr; 29724: } 29724: } 29724: 29724: std::size_t _M_bucket; 29724: std::size_t _M_bucket_count; 29724: 29724: void 29724: _M_init(const __hash_code_base& __base) 29724: { ::new(this->_M_h()) __hash_code_base(__base); } 29724: 29724: void 29724: _M_destroy() { this->_M_h()->~__hash_code_base(); } 29724: 29724: public: 29724: std::size_t 29724: _M_get_bucket() const { return _M_bucket; } 29724: }; 29724: 29724: 29724: template 29724: struct _Local_iterator 29724: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, __cache> 29724: { 29724: private: 29724: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, __cache>; 29724: using __hash_code_base = typename __base_type::__hash_code_base; 29724: 29724: public: 29724: using value_type = _Value; 29724: using pointer = __conditional_t<__constant_iterators, 29724: const value_type*, value_type*>; 29724: using reference = __conditional_t<__constant_iterators, 29724: const value_type&, value_type&>; 29724: using difference_type = ptrdiff_t; 29724: using iterator_category = forward_iterator_tag; 29724: 29724: _Local_iterator() = default; 29724: 29724: _Local_iterator(const __hash_code_base& __base, 29724: _Hash_node<_Value, __cache>* __n, 29724: std::size_t __bkt, std::size_t __bkt_count) 29724: : __base_type(__base, __n, __bkt, __bkt_count) 29724: { } 29724: 29724: reference 29724: operator*() const 29724: { return this->_M_cur->_M_v(); } 29724: 29724: pointer 29724: operator->() const 29724: { return this->_M_cur->_M_valptr(); } 29724: 29724: _Local_iterator& 29724: operator++() 29724: { 29724: this->_M_incr(); 29724: return *this; 29724: } 29724: 29724: _Local_iterator 29724: operator++(int) 29724: { 29724: _Local_iterator __tmp(*this); 29724: this->_M_incr(); 29724: return __tmp; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Local_const_iterator 29724: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, __cache> 29724: { 29724: private: 29724: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, __cache>; 29724: using __hash_code_base = typename __base_type::__hash_code_base; 29724: 29724: public: 29724: typedef _Value value_type; 29724: typedef const value_type* pointer; 29724: typedef const value_type& reference; 29724: typedef std::ptrdiff_t difference_type; 29724: typedef std::forward_iterator_tag iterator_category; 29724: 29724: _Local_const_iterator() = default; 29724: 29724: _Local_const_iterator(const __hash_code_base& __base, 29724: _Hash_node<_Value, __cache>* __n, 29724: std::size_t __bkt, std::size_t __bkt_count) 29724: : __base_type(__base, __n, __bkt, __bkt_count) 29724: { } 29724: 29724: _Local_const_iterator(const _Local_iterator<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, 29724: __constant_iterators, 29724: __cache>& __x) 29724: : __base_type(__x) 29724: { } 29724: 29724: reference 29724: operator*() const 29724: { return this->_M_cur->_M_v(); } 29724: 29724: pointer 29724: operator->() const 29724: { return this->_M_cur->_M_valptr(); } 29724: 29724: _Local_const_iterator& 29724: operator++() 29724: { 29724: this->_M_incr(); 29724: return *this; 29724: } 29724: 29724: _Local_const_iterator 29724: operator++(int) 29724: { 29724: _Local_const_iterator __tmp(*this); 29724: this->_M_incr(); 29724: return __tmp; 29724: } 29724: }; 29724: # 1682 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: template 29724: struct _Hashtable_base 29724: : public _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 29724: _Unused, _Traits::__hash_cached::value>, 29724: private _Hashtable_ebo_helper<0, _Equal> 29724: { 29724: public: 29724: typedef _Key key_type; 29724: typedef _Value value_type; 29724: typedef _Equal key_equal; 29724: typedef std::size_t size_type; 29724: typedef std::ptrdiff_t difference_type; 29724: 29724: using __traits_type = _Traits; 29724: using __hash_cached = typename __traits_type::__hash_cached; 29724: 29724: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29724: _Hash, _RangeHash, _Unused, 29724: __hash_cached::value>; 29724: 29724: using __hash_code = typename __hash_code_base::__hash_code; 29724: 29724: private: 29724: using _EqualEBO = _Hashtable_ebo_helper<0, _Equal>; 29724: 29724: static bool 29724: _S_equals(__hash_code, const _Hash_node_code_cache&) 29724: { return true; } 29724: 29724: static bool 29724: _S_node_equals(const _Hash_node_code_cache&, 29724: const _Hash_node_code_cache&) 29724: { return true; } 29724: 29724: static bool 29724: _S_equals(__hash_code __c, const _Hash_node_code_cache& __n) 29724: { return __c == __n._M_hash_code; } 29724: 29724: static bool 29724: _S_node_equals(const _Hash_node_code_cache& __lhn, 29724: const _Hash_node_code_cache& __rhn) 29724: { return __lhn._M_hash_code == __rhn._M_hash_code; } 29724: 29724: protected: 29724: _Hashtable_base() = default; 29724: 29724: _Hashtable_base(const _Hash& __hash, const _Equal& __eq) 29724: : __hash_code_base(__hash), _EqualEBO(__eq) 29724: { } 29724: 29724: bool 29724: _M_key_equals(const _Key& __k, 29724: const _Hash_node_value<_Value, 29724: __hash_cached::value>& __n) const 29724: { 29724: static_assert(__is_invocable{}, 29724: "key equality predicate must be invocable with two arguments of " 29724: "key type"); 29724: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 29724: } 29724: 29724: template 29724: bool 29724: _M_key_equals_tr(const _Kt& __k, 29724: const _Hash_node_value<_Value, 29724: __hash_cached::value>& __n) const 29724: { 29724: static_assert( 29724: __is_invocable{}, 29724: "key equality predicate must be invocable with two arguments of " 29724: "key type"); 29724: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 29724: } 29724: 29724: bool 29724: _M_equals(const _Key& __k, __hash_code __c, 29724: const _Hash_node_value<_Value, __hash_cached::value>& __n) const 29724: { return _S_equals(__c, __n) && _M_key_equals(__k, __n); } 29724: 29724: template 29724: bool 29724: _M_equals_tr(const _Kt& __k, __hash_code __c, 29724: const _Hash_node_value<_Value, 29724: __hash_cached::value>& __n) const 29724: { return _S_equals(__c, __n) && _M_key_equals_tr(__k, __n); } 29724: 29724: bool 29724: _M_node_equals( 29724: const _Hash_node_value<_Value, __hash_cached::value>& __lhn, 29724: const _Hash_node_value<_Value, __hash_cached::value>& __rhn) const 29724: { 29724: return _S_node_equals(__lhn, __rhn) 29724: && _M_key_equals(_ExtractKey{}(__lhn._M_v()), __rhn); 29724: } 29724: 29724: void 29724: _M_swap(_Hashtable_base& __x) 29724: { 29724: __hash_code_base::_M_swap(__x); 29724: std::swap(_EqualEBO::_M_get(), __x._EqualEBO::_M_get()); 29724: } 29724: 29724: const _Equal& 29724: _M_eq() const { return _EqualEBO::_M_cget(); } 29724: }; 29724: # 1798 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29724: template 29724: struct _Equality; 29724: 29724: 29724: template 29724: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 29724: { 29724: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: bool 29724: _M_equal(const __hashtable&) const; 29724: }; 29724: 29724: template 29724: bool 29724: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29724: _M_equal(const __hashtable& __other) const 29724: { 29724: using __node_ptr = typename __hashtable::__node_ptr; 29724: const __hashtable* __this = static_cast(this); 29724: if (__this->size() != __other.size()) 29724: return false; 29724: 29724: for (auto __x_n = __this->_M_begin(); __x_n; __x_n = __x_n->_M_next()) 29724: { 29724: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 29724: auto __prev_n = __other._M_buckets[__ybkt]; 29724: if (!__prev_n) 29724: return false; 29724: 29724: for (__node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt);; 29724: __n = __n->_M_next()) 29724: { 29724: if (__n->_M_v() == __x_n->_M_v()) 29724: break; 29724: 29724: if (!__n->_M_nxt 29724: || __other._M_bucket_index(*__n->_M_next()) != __ybkt) 29724: return false; 29724: } 29724: } 29724: 29724: return true; 29724: } 29724: 29724: 29724: template 29724: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29724: { 29724: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: bool 29724: _M_equal(const __hashtable&) const; 29724: }; 29724: 29724: template 29724: bool 29724: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>:: 29724: _M_equal(const __hashtable& __other) const 29724: { 29724: using __node_ptr = typename __hashtable::__node_ptr; 29724: using const_iterator = typename __hashtable::const_iterator; 29724: const __hashtable* __this = static_cast(this); 29724: if (__this->size() != __other.size()) 29724: return false; 29724: 29724: for (auto __x_n = __this->_M_begin(); __x_n;) 29724: { 29724: std::size_t __x_count = 1; 29724: auto __x_n_end = __x_n->_M_next(); 29724: for (; __x_n_end 29724: && __this->key_eq()(_ExtractKey{}(__x_n->_M_v()), 29724: _ExtractKey{}(__x_n_end->_M_v())); 29724: __x_n_end = __x_n_end->_M_next()) 29724: ++__x_count; 29724: 29724: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 29724: auto __y_prev_n = __other._M_buckets[__ybkt]; 29724: if (!__y_prev_n) 29724: return false; 29724: 29724: __node_ptr __y_n = static_cast<__node_ptr>(__y_prev_n->_M_nxt); 29724: for (;;) 29724: { 29724: if (__this->key_eq()(_ExtractKey{}(__y_n->_M_v()), 29724: _ExtractKey{}(__x_n->_M_v()))) 29724: break; 29724: 29724: auto __y_ref_n = __y_n; 29724: for (__y_n = __y_n->_M_next(); __y_n; __y_n = __y_n->_M_next()) 29724: if (!__other._M_node_equals(*__y_ref_n, *__y_n)) 29724: break; 29724: 29724: if (!__y_n || __other._M_bucket_index(*__y_n) != __ybkt) 29724: return false; 29724: } 29724: 29724: auto __y_n_end = __y_n; 29724: for (; __y_n_end; __y_n_end = __y_n_end->_M_next()) 29724: if (--__x_count == 0) 29724: break; 29724: 29724: if (__x_count != 0) 29724: return false; 29724: 29724: const_iterator __itx(__x_n), __itx_end(__x_n_end); 29724: const_iterator __ity(__y_n); 29724: if (!std::is_permutation(__itx, __itx_end, __ity)) 29724: return false; 29724: 29724: __x_n = __x_n_end; 29724: } 29724: return true; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hashtable_alloc : private _Hashtable_ebo_helper<0, _NodeAlloc> 29724: { 29724: private: 29724: using __ebo_node_alloc = _Hashtable_ebo_helper<0, _NodeAlloc>; 29724: 29724: template 29724: struct __get_value_type; 29724: template 29724: struct __get_value_type<_Hash_node<_Val, _Cache_hash_code>> 29724: { using type = _Val; }; 29724: 29724: public: 29724: using __node_type = typename _NodeAlloc::value_type; 29724: using __node_alloc_type = _NodeAlloc; 29724: 29724: using __node_alloc_traits = __gnu_cxx::__alloc_traits<__node_alloc_type>; 29724: 29724: using __value_alloc_traits = typename __node_alloc_traits::template 29724: rebind_traits::type>; 29724: 29724: using __node_ptr = __node_type*; 29724: using __node_base = _Hash_node_base; 29724: using __node_base_ptr = __node_base*; 29724: using __buckets_alloc_type = 29724: __alloc_rebind<__node_alloc_type, __node_base_ptr>; 29724: using __buckets_alloc_traits = std::allocator_traits<__buckets_alloc_type>; 29724: using __buckets_ptr = __node_base_ptr*; 29724: 29724: _Hashtable_alloc() = default; 29724: _Hashtable_alloc(const _Hashtable_alloc&) = default; 29724: _Hashtable_alloc(_Hashtable_alloc&&) = default; 29724: 29724: template 29724: _Hashtable_alloc(_Alloc&& __a) 29724: : __ebo_node_alloc(std::forward<_Alloc>(__a)) 29724: { } 29724: 29724: __node_alloc_type& 29724: _M_node_allocator() 29724: { return __ebo_node_alloc::_M_get(); } 29724: 29724: const __node_alloc_type& 29724: _M_node_allocator() const 29724: { return __ebo_node_alloc::_M_cget(); } 29724: 29724: 29724: template 29724: __node_ptr 29724: _M_allocate_node(_Args&&... __args); 29724: 29724: 29724: void 29724: _M_deallocate_node(__node_ptr __n); 29724: 29724: 29724: void 29724: _M_deallocate_node_ptr(__node_ptr __n); 29724: 29724: 29724: 29724: void 29724: _M_deallocate_nodes(__node_ptr __n); 29724: 29724: __buckets_ptr 29724: _M_allocate_buckets(std::size_t __bkt_count); 29724: 29724: void 29724: _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count); 29724: }; 29724: 29724: 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&... __args) 29724: -> __node_ptr 29724: { 29724: auto& __alloc = _M_node_allocator(); 29724: auto __nptr = __node_alloc_traits::allocate(__alloc, 1); 29724: __node_ptr __n = std::__to_address(__nptr); 29724: try 29724: { 29724: ::new ((void*)__n) __node_type; 29724: __node_alloc_traits::construct(__alloc, __n->_M_valptr(), 29724: std::forward<_Args>(__args)...); 29724: return __n; 29724: } 29724: catch(...) 29724: { 29724: __n->~__node_type(); 29724: __node_alloc_traits::deallocate(__alloc, __nptr, 1); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_ptr __n) 29724: { 29724: __node_alloc_traits::destroy(_M_node_allocator(), __n->_M_valptr()); 29724: _M_deallocate_node_ptr(__n); 29724: } 29724: 29724: template 29724: void 29724: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node_ptr(__node_ptr __n) 29724: { 29724: typedef typename __node_alloc_traits::pointer _Ptr; 29724: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__n); 29724: __n->~__node_type(); 29724: __node_alloc_traits::deallocate(_M_node_allocator(), __ptr, 1); 29724: } 29724: 29724: template 29724: void 29724: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_nodes(__node_ptr __n) 29724: { 29724: while (__n) 29724: { 29724: __node_ptr __tmp = __n; 29724: __n = __n->_M_next(); 29724: _M_deallocate_node(__tmp); 29724: } 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count) 29724: -> __buckets_ptr 29724: { 29724: __buckets_alloc_type __alloc(_M_node_allocator()); 29724: 29724: auto __ptr = __buckets_alloc_traits::allocate(__alloc, __bkt_count); 29724: __buckets_ptr __p = std::__to_address(__ptr); 29724: __builtin_memset(__p, 0, __bkt_count * sizeof(__node_base_ptr)); 29724: return __p; 29724: } 29724: 29724: template 29724: void 29724: _Hashtable_alloc<_NodeAlloc>:: 29724: _M_deallocate_buckets(__buckets_ptr __bkts, 29724: std::size_t __bkt_count) 29724: { 29724: typedef typename __buckets_alloc_traits::pointer _Ptr; 29724: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__bkts); 29724: __buckets_alloc_type __alloc(_M_node_allocator()); 29724: __buckets_alloc_traits::deallocate(__alloc, __ptr, __bkt_count); 29724: } 29724: 29724: 29724: } 29724: 29724: 29724: } 29724: # 36 "/usr/include/c++/14/bits/hashtable.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/enable_special_members.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/enable_special_members.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/enable_special_members.h" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: struct _Enable_default_constructor_tag 29724: { 29724: explicit constexpr _Enable_default_constructor_tag() = default; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Enable_default_constructor 29724: { 29724: constexpr _Enable_default_constructor() noexcept = default; 29724: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 29724: noexcept = default; 29724: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 29724: noexcept = default; 29724: _Enable_default_constructor& 29724: operator=(_Enable_default_constructor const&) noexcept = default; 29724: _Enable_default_constructor& 29724: operator=(_Enable_default_constructor&&) noexcept = default; 29724: 29724: 29724: constexpr explicit 29724: _Enable_default_constructor(_Enable_default_constructor_tag) { } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Enable_destructor { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Enable_copy_move { }; 29724: # 96 "/usr/include/c++/14/bits/enable_special_members.h" 3 29724: template 29724: struct _Enable_special_members 29724: : private _Enable_default_constructor<_Default, _Tag>, 29724: private _Enable_destructor<_Destructor, _Tag>, 29724: private _Enable_copy_move<_Copy, _CopyAssignment, 29724: _Move, _MoveAssignment, 29724: _Tag> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct _Enable_default_constructor 29724: { 29724: constexpr _Enable_default_constructor() noexcept = delete; 29724: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 29724: noexcept = default; 29724: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 29724: noexcept = default; 29724: _Enable_default_constructor& 29724: operator=(_Enable_default_constructor const&) noexcept = default; 29724: _Enable_default_constructor& 29724: operator=(_Enable_default_constructor&&) noexcept = default; 29724: 29724: 29724: constexpr explicit 29724: _Enable_default_constructor(_Enable_default_constructor_tag) { } 29724: }; 29724: 29724: template 29724: struct _Enable_destructor 29724: { ~_Enable_destructor() noexcept = delete; }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = default; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = default; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: template 29724: struct _Enable_copy_move 29724: { 29724: constexpr _Enable_copy_move() noexcept = default; 29724: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29724: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move const&) noexcept = delete; 29724: _Enable_copy_move& 29724: operator=(_Enable_copy_move&&) noexcept = delete; 29724: }; 29724: 29724: 29724: 29724: } 29724: # 37 "/usr/include/c++/14/bits/hashtable.h" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/node_handle.h" 1 3 29724: # 34 "/usr/include/c++/14/bits/node_handle.h" 3 29724: 29724: # 35 "/usr/include/c++/14/bits/node_handle.h" 3 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 37 "/usr/include/c++/14/bits/node_handle.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 64 "/usr/include/c++/14/bits/node_handle.h" 3 29724: template 29724: class _Node_handle_common 29724: { 29724: using _AllocTraits = allocator_traits<_NodeAlloc>; 29724: 29724: public: 29724: using allocator_type = __alloc_rebind<_NodeAlloc, _Val>; 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return allocator_type(_M_alloc._M_alloc); 29724: } 29724: 29724: explicit operator bool() const noexcept { return _M_ptr != nullptr; } 29724: 29724: [[nodiscard]] bool empty() const noexcept { return _M_ptr == nullptr; } 29724: 29724: 29724: protected: 29724: constexpr _Node_handle_common() noexcept : _M_ptr() { } 29724: 29724: ~_Node_handle_common() 29724: { 29724: if (!empty()) 29724: _M_reset(); 29724: } 29724: 29724: _Node_handle_common(_Node_handle_common&& __nh) noexcept 29724: : _M_ptr(__nh._M_ptr) 29724: { 29724: if (_M_ptr) 29724: _M_move(std::move(__nh)); 29724: } 29724: 29724: _Node_handle_common& 29724: operator=(_Node_handle_common&& __nh) noexcept 29724: { 29724: if (empty()) 29724: { 29724: if (!__nh.empty()) 29724: _M_move(std::move(__nh)); 29724: } 29724: else if (__nh.empty()) 29724: _M_reset(); 29724: else 29724: { 29724: 29724: _AllocTraits::destroy(*_M_alloc, _M_ptr->_M_valptr()); 29724: _AllocTraits::deallocate(*_M_alloc, _M_ptr, 1); 29724: 29724: _M_alloc = __nh._M_alloc.release(); 29724: _M_ptr = __nh._M_ptr; 29724: __nh._M_ptr = nullptr; 29724: } 29724: return *this; 29724: } 29724: 29724: _Node_handle_common(typename _AllocTraits::pointer __ptr, 29724: const _NodeAlloc& __alloc) 29724: : _M_ptr(__ptr), _M_alloc(__alloc) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__ptr != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: void 29724: _M_swap(_Node_handle_common& __nh) noexcept 29724: { 29724: if (empty()) 29724: { 29724: if (!__nh.empty()) 29724: _M_move(std::move(__nh)); 29724: } 29724: else if (__nh.empty()) 29724: __nh._M_move(std::move(*this)); 29724: else 29724: { 29724: using std::swap; 29724: swap(_M_ptr, __nh._M_ptr); 29724: _M_alloc.swap(__nh._M_alloc); 29724: } 29724: } 29724: 29724: private: 29724: 29724: 29724: 29724: void 29724: _M_move(_Node_handle_common&& __nh) noexcept 29724: { 29724: ::new (std::__addressof(_M_alloc)) _NodeAlloc(__nh._M_alloc.release()); 29724: _M_ptr = __nh._M_ptr; 29724: __nh._M_ptr = nullptr; 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: _M_reset() noexcept 29724: { 29724: _NodeAlloc __alloc = _M_alloc.release(); 29724: _AllocTraits::destroy(__alloc, _M_ptr->_M_valptr()); 29724: _AllocTraits::deallocate(__alloc, _M_ptr, 1); 29724: _M_ptr = nullptr; 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: release() noexcept 29724: { 29724: _M_alloc.release(); 29724: _M_ptr = nullptr; 29724: } 29724: 29724: protected: 29724: typename _AllocTraits::pointer _M_ptr; 29724: 29724: private: 29724: 29724: 29724: union _Optional_alloc 29724: { 29724: _Optional_alloc() { } 29724: ~_Optional_alloc() { } 29724: 29724: _Optional_alloc(_Optional_alloc&&) = delete; 29724: _Optional_alloc& operator=(_Optional_alloc&&) = delete; 29724: 29724: _Optional_alloc(const _NodeAlloc& __alloc) noexcept 29724: : _M_alloc(__alloc) 29724: { } 29724: 29724: 29724: void 29724: operator=(_NodeAlloc&& __alloc) noexcept 29724: { 29724: using _ATr = _AllocTraits; 29724: if constexpr (_ATr::propagate_on_container_move_assignment::value) 29724: _M_alloc = std::move(__alloc); 29724: else if constexpr (!_AllocTraits::is_always_equal::value) 29724: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: 29724: void 29724: swap(_Optional_alloc& __other) noexcept 29724: { 29724: using std::swap; 29724: if constexpr (_AllocTraits::propagate_on_container_swap::value) 29724: swap(_M_alloc, __other._M_alloc); 29724: else if constexpr (!_AllocTraits::is_always_equal::value) 29724: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __other._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: 29724: _NodeAlloc& operator*() noexcept { return _M_alloc; } 29724: 29724: 29724: _NodeAlloc release() noexcept 29724: { 29724: _NodeAlloc __tmp = std::move(_M_alloc); 29724: _M_alloc.~_NodeAlloc(); 29724: return __tmp; 29724: } 29724: 29724: [[__no_unique_address__]] _NodeAlloc _M_alloc; 29724: }; 29724: 29724: [[__no_unique_address__]] _Optional_alloc _M_alloc; 29724: 29724: template 29724: friend class _Rb_tree; 29724: 29724: template 29724: friend class _Hashtable; 29724: 29724: 29724: }; 29724: 29724: 29724: template 29724: class _Node_handle : public _Node_handle_common<_Value, _NodeAlloc> 29724: { 29724: public: 29724: constexpr _Node_handle() noexcept = default; 29724: ~_Node_handle() = default; 29724: _Node_handle(_Node_handle&&) noexcept = default; 29724: 29724: _Node_handle& 29724: operator=(_Node_handle&&) noexcept = default; 29724: 29724: using key_type = _Key; 29724: using mapped_type = typename _Value::second_type; 29724: 29724: key_type& 29724: key() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return *_M_pkey; 29724: } 29724: 29724: mapped_type& 29724: mapped() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return *_M_pmapped; 29724: } 29724: 29724: void 29724: swap(_Node_handle& __nh) noexcept 29724: { 29724: this->_M_swap(__nh); 29724: using std::swap; 29724: swap(_M_pkey, __nh._M_pkey); 29724: swap(_M_pmapped, __nh._M_pmapped); 29724: } 29724: 29724: friend void 29724: swap(_Node_handle& __x, _Node_handle& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: private: 29724: using _AllocTraits = allocator_traits<_NodeAlloc>; 29724: 29724: _Node_handle(typename _AllocTraits::pointer __ptr, 29724: const _NodeAlloc& __alloc) 29724: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) 29724: { 29724: if (__ptr) 29724: { 29724: auto& __key = const_cast<_Key&>(__ptr->_M_valptr()->first); 29724: _M_pkey = _S_pointer_to(__key); 29724: _M_pmapped = _S_pointer_to(__ptr->_M_valptr()->second); 29724: } 29724: else 29724: { 29724: _M_pkey = nullptr; 29724: _M_pmapped = nullptr; 29724: } 29724: } 29724: 29724: template 29724: using __pointer 29724: = __ptr_rebind>; 29724: 29724: __pointer<_Key> _M_pkey = nullptr; 29724: __pointer _M_pmapped = nullptr; 29724: 29724: template 29724: __pointer<_Tp> 29724: _S_pointer_to(_Tp& __obj) 29724: { return pointer_traits<__pointer<_Tp>>::pointer_to(__obj); } 29724: 29724: const key_type& 29724: _M_key() const noexcept { return key(); } 29724: 29724: template 29724: friend class _Rb_tree; 29724: 29724: template 29724: friend class _Hashtable; 29724: }; 29724: 29724: 29724: template 29724: class _Node_handle<_Value, _Value, _NodeAlloc> 29724: : public _Node_handle_common<_Value, _NodeAlloc> 29724: { 29724: public: 29724: constexpr _Node_handle() noexcept = default; 29724: ~_Node_handle() = default; 29724: _Node_handle(_Node_handle&&) noexcept = default; 29724: 29724: _Node_handle& 29724: operator=(_Node_handle&&) noexcept = default; 29724: 29724: using value_type = _Value; 29724: 29724: value_type& 29724: value() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return *this->_M_ptr->_M_valptr(); 29724: } 29724: 29724: void 29724: swap(_Node_handle& __nh) noexcept 29724: { this->_M_swap(__nh); } 29724: 29724: friend void 29724: swap(_Node_handle& __x, _Node_handle& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: private: 29724: using _AllocTraits = allocator_traits<_NodeAlloc>; 29724: 29724: _Node_handle(typename _AllocTraits::pointer __ptr, 29724: const _NodeAlloc& __alloc) 29724: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { } 29724: 29724: const value_type& 29724: _M_key() const noexcept { return value(); } 29724: 29724: template 29724: friend class _Rb_tree; 29724: 29724: template 29724: friend class _Hashtable; 29724: }; 29724: 29724: 29724: template 29724: struct _Node_insert_return 29724: { 29724: _Iterator position = _Iterator(); 29724: bool inserted = false; 29724: _NodeHandle node; 29724: }; 29724: 29724: 29724: 29724: 29724: } 29724: # 40 "/usr/include/c++/14/bits/hashtable.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: using __cache_default 29724: = __not_<__and_< 29724: __is_fast_hash<_Hash>, 29724: 29724: __is_nothrow_invocable>>; 29724: 29724: 29724: 29724: 29724: template 29724: using _Hashtable_enable_default_ctor 29724: = _Enable_default_constructor<__and_, 29724: is_default_constructible<_Hash>, 29724: is_default_constructible<_Allocator>>{}, 29724: __detail::_Hash_node_base>; 29724: # 181 "/usr/include/c++/14/bits/hashtable.h" 3 29724: template 29724: class _Hashtable 29724: : public __detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _Traits>, 29724: public __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>, 29724: public __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>, 29724: public __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>, 29724: public __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>, 29724: private __detail::_Hashtable_alloc< 29724: __alloc_rebind<_Alloc, 29724: __detail::_Hash_node<_Value, 29724: _Traits::__hash_cached::value>>>, 29724: private _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc> 29724: { 29724: static_assert(is_same::type, _Value>::value, 29724: "unordered container must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: using __traits_type = _Traits; 29724: using __hash_cached = typename __traits_type::__hash_cached; 29724: using __constant_iterators = typename __traits_type::__constant_iterators; 29724: using __node_type = __detail::_Hash_node<_Value, __hash_cached::value>; 29724: using __node_alloc_type = __alloc_rebind<_Alloc, __node_type>; 29724: 29724: using __hashtable_alloc = __detail::_Hashtable_alloc<__node_alloc_type>; 29724: 29724: using __node_value_type = 29724: __detail::_Hash_node_value<_Value, __hash_cached::value>; 29724: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29724: using __value_alloc_traits = 29724: typename __hashtable_alloc::__value_alloc_traits; 29724: using __node_alloc_traits = 29724: typename __hashtable_alloc::__node_alloc_traits; 29724: using __node_base = typename __hashtable_alloc::__node_base; 29724: using __node_base_ptr = typename __hashtable_alloc::__node_base_ptr; 29724: using __buckets_ptr = typename __hashtable_alloc::__buckets_ptr; 29724: 29724: using __insert_base = __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, 29724: _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: using __enable_default_ctor 29724: = _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc>; 29724: using __rehash_guard_t 29724: = __detail::_RehashStateGuard<_RehashPolicy>; 29724: 29724: public: 29724: typedef _Key key_type; 29724: typedef _Value value_type; 29724: typedef _Alloc allocator_type; 29724: typedef _Equal key_equal; 29724: 29724: 29724: 29724: typedef typename __value_alloc_traits::pointer pointer; 29724: typedef typename __value_alloc_traits::const_pointer const_pointer; 29724: typedef value_type& reference; 29724: typedef const value_type& const_reference; 29724: 29724: using iterator = typename __insert_base::iterator; 29724: 29724: using const_iterator = typename __insert_base::const_iterator; 29724: 29724: using local_iterator = __detail::_Local_iterator; 29724: 29724: using const_local_iterator = __detail::_Local_const_iterator< 29724: key_type, _Value, 29724: _ExtractKey, _Hash, _RangeHash, _Unused, 29724: __constant_iterators::value, __hash_cached::value>; 29724: 29724: private: 29724: using __rehash_type = _RehashPolicy; 29724: 29724: using __unique_keys = typename __traits_type::__unique_keys; 29724: 29724: using __hashtable_base = __detail:: 29724: _Hashtable_base<_Key, _Value, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, _Traits>; 29724: 29724: using __hash_code_base = typename __hashtable_base::__hash_code_base; 29724: using __hash_code = typename __hashtable_base::__hash_code; 29724: using __ireturn_type = typename __insert_base::__ireturn_type; 29724: 29724: using __map_base = __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: using __rehash_base = __detail::_Rehash_base<_Key, _Value, _Alloc, 29724: _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: using __eq_base = __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, 29724: _Equal, _Hash, _RangeHash, _Unused, 29724: _RehashPolicy, _Traits>; 29724: 29724: using __reuse_or_alloc_node_gen_t = 29724: __detail::_ReuseOrAllocNode<__node_alloc_type>; 29724: using __alloc_node_gen_t = 29724: __detail::_AllocNode<__node_alloc_type>; 29724: using __node_builder_t = 29724: __detail::_NodeBuilder<_ExtractKey>; 29724: 29724: 29724: struct _Scoped_node 29724: { 29724: 29724: _Scoped_node(__node_ptr __n, __hashtable_alloc* __h) 29724: : _M_h(__h), _M_node(__n) { } 29724: 29724: 29724: template 29724: _Scoped_node(__hashtable_alloc* __h, _Args&&... __args) 29724: : _M_h(__h), 29724: _M_node(__h->_M_allocate_node(std::forward<_Args>(__args)...)) 29724: { } 29724: 29724: 29724: ~_Scoped_node() { if (_M_node) _M_h->_M_deallocate_node(_M_node); }; 29724: 29724: _Scoped_node(const _Scoped_node&) = delete; 29724: _Scoped_node& operator=(const _Scoped_node&) = delete; 29724: 29724: __hashtable_alloc* _M_h; 29724: __node_ptr _M_node; 29724: }; 29724: 29724: template 29724: static constexpr 29724: __conditional_t::value, 29724: const value_type&, value_type&&> 29724: __fwd_value_for(value_type& __val) noexcept 29724: { return std::move(__val); } 29724: 29724: 29724: 29724: 29724: 29724: struct __hash_code_base_access : __hash_code_base 29724: { using __hash_code_base::_M_bucket_index; }; 29724: 29724: 29724: static_assert(is_nothrow_default_constructible<_RangeHash>::value, 29724: "Functor used to map hash code to bucket index" 29724: " must be nothrow default constructible"); 29724: static_assert(noexcept( 29724: std::declval()((std::size_t)0, (std::size_t)0)), 29724: "Functor used to map hash code to bucket index must be" 29724: " noexcept"); 29724: 29724: 29724: static_assert(is_nothrow_default_constructible<_ExtractKey>::value, 29724: "_ExtractKey must be nothrow default constructible"); 29724: static_assert(noexcept( 29724: std::declval()(std::declval<_Value>())), 29724: "_ExtractKey functor must be noexcept invocable"); 29724: 29724: template 29724: friend struct __detail::_Map_base; 29724: 29724: template 29724: friend struct __detail::_Insert_base; 29724: 29724: template 29724: friend struct __detail::_Insert; 29724: 29724: template 29724: friend struct __detail::_Equality; 29724: 29724: public: 29724: using size_type = typename __hashtable_base::size_type; 29724: using difference_type = typename __hashtable_base::difference_type; 29724: 29724: 29724: using node_type = _Node_handle<_Key, _Value, __node_alloc_type>; 29724: using insert_return_type = _Node_insert_return; 29724: 29724: 29724: private: 29724: __buckets_ptr _M_buckets = &_M_single_bucket; 29724: size_type _M_bucket_count = 1; 29724: __node_base _M_before_begin; 29724: size_type _M_element_count = 0; 29724: _RehashPolicy _M_rehash_policy; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __node_base_ptr _M_single_bucket = nullptr; 29724: 29724: void 29724: _M_update_bbegin() 29724: { 29724: if (auto __begin = _M_begin()) 29724: _M_buckets[_M_bucket_index(*__begin)] = &_M_before_begin; 29724: } 29724: 29724: void 29724: _M_update_bbegin(__node_ptr __n) 29724: { 29724: _M_before_begin._M_nxt = __n; 29724: _M_update_bbegin(); 29724: } 29724: 29724: bool 29724: _M_uses_single_bucket(__buckets_ptr __bkts) const 29724: { return __builtin_expect(__bkts == &_M_single_bucket, false); } 29724: 29724: bool 29724: _M_uses_single_bucket() const 29724: { return _M_uses_single_bucket(_M_buckets); } 29724: 29724: static constexpr size_t 29724: __small_size_threshold() noexcept 29724: { 29724: return 29724: __detail::_Hashtable_hash_traits<_Hash>::__small_size_threshold(); 29724: } 29724: 29724: __hashtable_alloc& 29724: _M_base_alloc() { return *this; } 29724: 29724: __buckets_ptr 29724: _M_allocate_buckets(size_type __bkt_count) 29724: { 29724: if (__builtin_expect(__bkt_count == 1, false)) 29724: { 29724: _M_single_bucket = nullptr; 29724: return &_M_single_bucket; 29724: } 29724: 29724: return __hashtable_alloc::_M_allocate_buckets(__bkt_count); 29724: } 29724: 29724: void 29724: _M_deallocate_buckets(__buckets_ptr __bkts, size_type __bkt_count) 29724: { 29724: if (_M_uses_single_bucket(__bkts)) 29724: return; 29724: 29724: __hashtable_alloc::_M_deallocate_buckets(__bkts, __bkt_count); 29724: } 29724: 29724: void 29724: _M_deallocate_buckets() 29724: { _M_deallocate_buckets(_M_buckets, _M_bucket_count); } 29724: 29724: 29724: 29724: __node_ptr 29724: _M_bucket_begin(size_type __bkt) const 29724: { 29724: __node_base_ptr __n = _M_buckets[__bkt]; 29724: return __n ? static_cast<__node_ptr>(__n->_M_nxt) : nullptr; 29724: } 29724: 29724: __node_ptr 29724: _M_begin() const 29724: { return static_cast<__node_ptr>(_M_before_begin._M_nxt); } 29724: 29724: 29724: 29724: template 29724: void 29724: _M_assign_elements(_Ht&&); 29724: 29724: template 29724: void 29724: _M_assign(_Ht&&, const _NodeGenerator&); 29724: 29724: void 29724: _M_move_assign(_Hashtable&&, true_type); 29724: 29724: void 29724: _M_move_assign(_Hashtable&&, false_type); 29724: 29724: void 29724: _M_reset() noexcept; 29724: 29724: _Hashtable(const _Hash& __h, const _Equal& __eq, 29724: const allocator_type& __a) 29724: : __hashtable_base(__h, __eq), 29724: __hashtable_alloc(__node_alloc_type(__a)), 29724: __enable_default_ctor(_Enable_default_constructor_tag{}) 29724: { } 29724: 29724: template 29724: static constexpr bool 29724: _S_nothrow_move() 29724: { 29724: 29724: 29724: 29724: 29724: 29724: if constexpr (_No_realloc) 29724: if constexpr (is_nothrow_copy_constructible<_Hash>()) 29724: return is_nothrow_copy_constructible<_Equal>(); 29724: return false; 29724: 29724: } 29724: 29724: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29724: true_type ) 29724: noexcept(_S_nothrow_move()); 29724: 29724: _Hashtable(_Hashtable&&, __node_alloc_type&&, 29724: false_type ); 29724: 29724: template 29724: _Hashtable(_InputIterator __first, _InputIterator __last, 29724: size_type __bkt_count_hint, 29724: const _Hash&, const _Equal&, const allocator_type&, 29724: true_type __uks); 29724: 29724: template 29724: _Hashtable(_InputIterator __first, _InputIterator __last, 29724: size_type __bkt_count_hint, 29724: const _Hash&, const _Equal&, const allocator_type&, 29724: false_type __uks); 29724: 29724: public: 29724: 29724: _Hashtable() = default; 29724: 29724: _Hashtable(const _Hashtable&); 29724: 29724: _Hashtable(const _Hashtable&, const allocator_type&); 29724: 29724: explicit 29724: _Hashtable(size_type __bkt_count_hint, 29724: const _Hash& __hf = _Hash(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()); 29724: 29724: 29724: _Hashtable(_Hashtable&& __ht) 29724: noexcept(_S_nothrow_move()) 29724: : _Hashtable(std::move(__ht), std::move(__ht._M_node_allocator()), 29724: true_type{}) 29724: { } 29724: 29724: _Hashtable(_Hashtable&& __ht, const allocator_type& __a) 29724: noexcept(_S_nothrow_move<__node_alloc_traits::_S_always_equal()>()) 29724: : _Hashtable(std::move(__ht), __node_alloc_type(__a), 29724: typename __node_alloc_traits::is_always_equal{}) 29724: { } 29724: 29724: explicit 29724: _Hashtable(const allocator_type& __a) 29724: : __hashtable_alloc(__node_alloc_type(__a)), 29724: __enable_default_ctor(_Enable_default_constructor_tag{}) 29724: { } 29724: 29724: template 29724: _Hashtable(_InputIterator __f, _InputIterator __l, 29724: size_type __bkt_count_hint = 0, 29724: const _Hash& __hf = _Hash(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _Hashtable(__f, __l, __bkt_count_hint, __hf, __eql, __a, 29724: __unique_keys{}) 29724: { } 29724: 29724: _Hashtable(initializer_list __l, 29724: size_type __bkt_count_hint = 0, 29724: const _Hash& __hf = _Hash(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _Hashtable(__l.begin(), __l.end(), __bkt_count_hint, 29724: __hf, __eql, __a, __unique_keys{}) 29724: { } 29724: 29724: _Hashtable& 29724: operator=(const _Hashtable& __ht); 29724: 29724: _Hashtable& 29724: operator=(_Hashtable&& __ht) 29724: noexcept(__node_alloc_traits::_S_nothrow_move() 29724: && is_nothrow_move_assignable<_Hash>::value 29724: && is_nothrow_move_assignable<_Equal>::value) 29724: { 29724: constexpr bool __move_storage = 29724: __node_alloc_traits::_S_propagate_on_move_assign() 29724: || __node_alloc_traits::_S_always_equal(); 29724: _M_move_assign(std::move(__ht), __bool_constant<__move_storage>()); 29724: return *this; 29724: } 29724: 29724: _Hashtable& 29724: operator=(initializer_list __l) 29724: { 29724: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 29724: _M_before_begin._M_nxt = nullptr; 29724: clear(); 29724: 29724: 29724: auto __l_bkt_count = _M_rehash_policy._M_bkt_for_elements(__l.size()); 29724: 29724: 29724: if (_M_bucket_count < __l_bkt_count) 29724: rehash(__l_bkt_count); 29724: 29724: this->_M_insert_range(__l.begin(), __l.end(), __roan, __unique_keys{}); 29724: return *this; 29724: } 29724: 29724: ~_Hashtable() noexcept; 29724: 29724: void 29724: swap(_Hashtable&) 29724: noexcept(__and_<__is_nothrow_swappable<_Hash>, 29724: __is_nothrow_swappable<_Equal>>::value); 29724: 29724: 29724: iterator 29724: begin() noexcept 29724: { return iterator(_M_begin()); } 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(_M_begin()); } 29724: 29724: iterator 29724: end() noexcept 29724: { return iterator(nullptr); } 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return const_iterator(nullptr); } 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(_M_begin()); } 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return const_iterator(nullptr); } 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_element_count; } 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return size() == 0; } 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(this->_M_node_allocator()); } 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return __node_alloc_traits::max_size(this->_M_node_allocator()); } 29724: 29724: 29724: key_equal 29724: key_eq() const 29724: { return this->_M_eq(); } 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_count() const noexcept 29724: { return _M_bucket_count; } 29724: 29724: size_type 29724: max_bucket_count() const noexcept 29724: { return max_size(); } 29724: 29724: size_type 29724: bucket_size(size_type __bkt) const 29724: { return std::distance(begin(__bkt), end(__bkt)); } 29724: 29724: size_type 29724: bucket(const key_type& __k) const 29724: { return _M_bucket_index(this->_M_hash_code(__k)); } 29724: 29724: local_iterator 29724: begin(size_type __bkt) 29724: { 29724: return local_iterator(*this, _M_bucket_begin(__bkt), 29724: __bkt, _M_bucket_count); 29724: } 29724: 29724: local_iterator 29724: end(size_type __bkt) 29724: { return local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29724: 29724: const_local_iterator 29724: begin(size_type __bkt) const 29724: { 29724: return const_local_iterator(*this, _M_bucket_begin(__bkt), 29724: __bkt, _M_bucket_count); 29724: } 29724: 29724: const_local_iterator 29724: end(size_type __bkt) const 29724: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29724: 29724: 29724: const_local_iterator 29724: cbegin(size_type __bkt) const 29724: { 29724: return const_local_iterator(*this, _M_bucket_begin(__bkt), 29724: __bkt, _M_bucket_count); 29724: } 29724: 29724: const_local_iterator 29724: cend(size_type __bkt) const 29724: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29724: 29724: float 29724: load_factor() const noexcept 29724: { 29724: return static_cast(size()) / static_cast(bucket_count()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const _RehashPolicy& 29724: __rehash_policy() const 29724: { return _M_rehash_policy; } 29724: 29724: void 29724: __rehash_policy(const _RehashPolicy& __pol) 29724: { _M_rehash_policy = __pol; } 29724: 29724: 29724: iterator 29724: find(const key_type& __k); 29724: 29724: const_iterator 29724: find(const key_type& __k) const; 29724: 29724: size_type 29724: count(const key_type& __k) const; 29724: 29724: std::pair 29724: equal_range(const key_type& __k); 29724: 29724: std::pair 29724: equal_range(const key_type& __k) const; 29724: # 796 "/usr/include/c++/14/bits/hashtable.h" 3 29724: private: 29724: 29724: size_type 29724: _M_bucket_index(const __node_value_type& __n) const noexcept 29724: { return __hash_code_base::_M_bucket_index(__n, _M_bucket_count); } 29724: 29724: size_type 29724: _M_bucket_index(__hash_code __c) const 29724: { return __hash_code_base::_M_bucket_index(__c, _M_bucket_count); } 29724: 29724: __node_base_ptr 29724: _M_find_before_node(const key_type&); 29724: 29724: 29724: 29724: __node_base_ptr 29724: _M_find_before_node(size_type, const key_type&, __hash_code) const; 29724: 29724: template 29724: __node_base_ptr 29724: _M_find_before_node_tr(size_type, const _Kt&, __hash_code) const; 29724: 29724: __node_ptr 29724: _M_find_node(size_type __bkt, const key_type& __key, 29724: __hash_code __c) const 29724: { 29724: __node_base_ptr __before_n = _M_find_before_node(__bkt, __key, __c); 29724: if (__before_n) 29724: return static_cast<__node_ptr>(__before_n->_M_nxt); 29724: return nullptr; 29724: } 29724: 29724: template 29724: __node_ptr 29724: _M_find_node_tr(size_type __bkt, const _Kt& __key, 29724: __hash_code __c) const 29724: { 29724: auto __before_n = _M_find_before_node_tr(__bkt, __key, __c); 29724: if (__before_n) 29724: return static_cast<__node_ptr>(__before_n->_M_nxt); 29724: return nullptr; 29724: } 29724: 29724: 29724: void 29724: _M_insert_bucket_begin(size_type __bkt, __node_ptr __node) 29724: { 29724: if (_M_buckets[__bkt]) 29724: { 29724: 29724: 29724: __node->_M_nxt = _M_buckets[__bkt]->_M_nxt; 29724: _M_buckets[__bkt]->_M_nxt = __node; 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: __node->_M_nxt = _M_before_begin._M_nxt; 29724: _M_before_begin._M_nxt = __node; 29724: 29724: if (__node->_M_nxt) 29724: 29724: 29724: _M_buckets[_M_bucket_index(*__node->_M_next())] = __node; 29724: 29724: _M_buckets[__bkt] = &_M_before_begin; 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next_n, 29724: size_type __next_bkt) 29724: { 29724: if (!__next_n) 29724: _M_buckets[__bkt] = nullptr; 29724: else if (__next_bkt != __bkt) 29724: { 29724: _M_buckets[__next_bkt] = _M_buckets[__bkt]; 29724: _M_buckets[__bkt] = nullptr; 29724: } 29724: } 29724: 29724: 29724: __node_base_ptr 29724: _M_get_previous_node(size_type __bkt, __node_ptr __n); 29724: 29724: pair<__node_ptr, __hash_code> 29724: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: _M_insert_unique_node(size_type __bkt, __hash_code, 29724: __node_ptr __n, size_type __n_elt = 1); 29724: 29724: 29724: 29724: iterator 29724: _M_insert_multi_node(__node_ptr __hint, 29724: __hash_code __code, __node_ptr __n); 29724: 29724: template 29724: std::pair 29724: _M_emplace(true_type __uks, _Args&&... __args); 29724: 29724: template 29724: iterator 29724: _M_emplace(false_type __uks, _Args&&... __args) 29724: { return _M_emplace(cend(), __uks, std::forward<_Args>(__args)...); } 29724: 29724: 29724: template 29724: iterator 29724: _M_emplace(const_iterator, true_type __uks, _Args&&... __args) 29724: { return _M_emplace(__uks, std::forward<_Args>(__args)...).first; } 29724: 29724: template 29724: iterator 29724: _M_emplace(const_iterator, false_type __uks, _Args&&... __args); 29724: 29724: template 29724: std::pair 29724: _M_insert_unique(_Kt&&, _Arg&&, const _NodeGenerator&); 29724: 29724: template 29724: static __conditional_t< 29724: __and_<__is_nothrow_invocable<_Hash&, const key_type&>, 29724: __not_<__is_nothrow_invocable<_Hash&, _Kt>>>::value, 29724: key_type, _Kt&&> 29724: _S_forward_key(_Kt&& __k) 29724: { return std::forward<_Kt>(__k); } 29724: 29724: static const key_type& 29724: _S_forward_key(const key_type& __k) 29724: { return __k; } 29724: 29724: static key_type&& 29724: _S_forward_key(key_type&& __k) 29724: { return std::move(__k); } 29724: 29724: template 29724: std::pair 29724: _M_insert_unique_aux(_Arg&& __arg, const _NodeGenerator& __node_gen) 29724: { 29724: return _M_insert_unique( 29724: _S_forward_key(_ExtractKey{}(std::forward<_Arg>(__arg))), 29724: std::forward<_Arg>(__arg), __node_gen); 29724: } 29724: 29724: template 29724: std::pair 29724: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 29724: true_type ) 29724: { 29724: using __to_value 29724: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 29724: return _M_insert_unique_aux( 29724: __to_value{}(std::forward<_Arg>(__arg)), __node_gen); 29724: } 29724: 29724: template 29724: iterator 29724: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 29724: false_type __uks) 29724: { 29724: using __to_value 29724: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 29724: return _M_insert(cend(), 29724: __to_value{}(std::forward<_Arg>(__arg)), __node_gen, __uks); 29724: } 29724: 29724: 29724: template 29724: iterator 29724: _M_insert(const_iterator, _Arg&& __arg, 29724: const _NodeGenerator& __node_gen, true_type __uks) 29724: { 29724: return 29724: _M_insert(std::forward<_Arg>(__arg), __node_gen, __uks).first; 29724: } 29724: 29724: 29724: template 29724: iterator 29724: _M_insert(const_iterator, _Arg&&, 29724: const _NodeGenerator&, false_type __uks); 29724: 29724: size_type 29724: _M_erase(true_type __uks, const key_type&); 29724: 29724: size_type 29724: _M_erase(false_type __uks, const key_type&); 29724: 29724: iterator 29724: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n); 29724: 29724: public: 29724: 29724: template 29724: __ireturn_type 29724: emplace(_Args&&... __args) 29724: { return _M_emplace(__unique_keys{}, std::forward<_Args>(__args)...); } 29724: 29724: template 29724: iterator 29724: emplace_hint(const_iterator __hint, _Args&&... __args) 29724: { 29724: return _M_emplace(__hint, __unique_keys{}, 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: 29724: 29724: iterator 29724: erase(const_iterator); 29724: 29724: 29724: 29724: iterator 29724: erase(iterator __it) 29724: { return erase(const_iterator(__it)); } 29724: 29724: size_type 29724: erase(const key_type& __k) 29724: { return _M_erase(__unique_keys{}, __k); } 29724: 29724: iterator 29724: erase(const_iterator, const_iterator); 29724: 29724: void 29724: clear() noexcept; 29724: 29724: 29724: 29724: void rehash(size_type __bkt_count); 29724: 29724: 29724: 29724: 29724: 29724: 29724: insert_return_type 29724: _M_reinsert_node(node_type&& __nh) 29724: { 29724: insert_return_type __ret; 29724: if (__nh.empty()) 29724: __ret.position = end(); 29724: else 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __node_ptr __n = nullptr; 29724: const key_type& __k = __nh._M_key(); 29724: const size_type __size = size(); 29724: if (__size <= __small_size_threshold()) 29724: { 29724: for (__n = _M_begin(); __n; __n = __n->_M_next()) 29724: if (this->_M_key_equals(__k, *__n)) 29724: break; 29724: } 29724: 29724: __hash_code __code; 29724: size_type __bkt; 29724: if (!__n) 29724: { 29724: __code = this->_M_hash_code(__k); 29724: __bkt = _M_bucket_index(__code); 29724: if (__size > __small_size_threshold()) 29724: __n = _M_find_node(__bkt, __k, __code); 29724: } 29724: 29724: if (__n) 29724: { 29724: __ret.node = std::move(__nh); 29724: __ret.position = iterator(__n); 29724: __ret.inserted = false; 29724: } 29724: else 29724: { 29724: __ret.position 29724: = _M_insert_unique_node(__bkt, __code, __nh._M_ptr); 29724: __nh.release(); 29724: __ret.inserted = true; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: iterator 29724: _M_reinsert_node_multi(const_iterator __hint, node_type&& __nh) 29724: { 29724: if (__nh.empty()) 29724: return end(); 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: const key_type& __k = __nh._M_key(); 29724: auto __code = this->_M_hash_code(__k); 29724: auto __ret 29724: = _M_insert_multi_node(__hint._M_cur, __code, __nh._M_ptr); 29724: __nh.release(); 29724: return __ret; 29724: } 29724: 29724: private: 29724: node_type 29724: _M_extract_node(size_t __bkt, __node_base_ptr __prev_n) 29724: { 29724: __node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29724: if (__prev_n == _M_buckets[__bkt]) 29724: _M_remove_bucket_begin(__bkt, __n->_M_next(), 29724: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 29724: else if (__n->_M_nxt) 29724: { 29724: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 29724: if (__next_bkt != __bkt) 29724: _M_buckets[__next_bkt] = __prev_n; 29724: } 29724: 29724: __prev_n->_M_nxt = __n->_M_nxt; 29724: __n->_M_nxt = nullptr; 29724: --_M_element_count; 29724: return { __n, this->_M_node_allocator() }; 29724: } 29724: 29724: 29724: 29724: template 29724: __hash_code 29724: _M_src_hash_code(const _H2&, const key_type& __k, 29724: const __node_value_type& __src_n) const 29724: { 29724: if constexpr (std::is_same_v<_H2, _Hash>) 29724: if constexpr (std::is_empty_v<_Hash>) 29724: return this->_M_hash_code(__src_n); 29724: 29724: return this->_M_hash_code(__k); 29724: } 29724: 29724: public: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: size_t __bkt = _M_bucket_index(*__pos._M_cur); 29724: return _M_extract_node(__bkt, 29724: _M_get_previous_node(__bkt, __pos._M_cur)); 29724: } 29724: 29724: 29724: node_type 29724: extract(const _Key& __k) 29724: { 29724: node_type __nh; 29724: __hash_code __code = this->_M_hash_code(__k); 29724: std::size_t __bkt = _M_bucket_index(__code); 29724: if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code)) 29724: __nh = _M_extract_node(__bkt, __prev_node); 29724: return __nh; 29724: } 29724: 29724: 29724: template 29724: void 29724: _M_merge_unique(_Compatible_Hashtable& __src) 29724: { 29724: static_assert(is_same_v, "Node types are compatible"); 29724: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: auto __n_elt = __src.size(); 29724: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 29724: { 29724: auto __pos = __i++; 29724: const size_type __size = size(); 29724: const key_type& __k = _ExtractKey{}(*__pos); 29724: if (__size <= __small_size_threshold()) 29724: { 29724: bool __found = false; 29724: for (auto __n = _M_begin(); __n; __n = __n->_M_next()) 29724: if (this->_M_key_equals(__k, *__n)) 29724: { 29724: __found = true; 29724: break; 29724: } 29724: 29724: if (__found) 29724: { 29724: if (__n_elt != 1) 29724: --__n_elt; 29724: continue; 29724: } 29724: } 29724: 29724: __hash_code __code 29724: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 29724: size_type __bkt = _M_bucket_index(__code); 29724: if (__size <= __small_size_threshold() 29724: || _M_find_node(__bkt, __k, __code) == nullptr) 29724: { 29724: auto __nh = __src.extract(__pos); 29724: _M_insert_unique_node(__bkt, __code, __nh._M_ptr, __n_elt); 29724: __nh.release(); 29724: __n_elt = 1; 29724: } 29724: else if (__n_elt != 1) 29724: --__n_elt; 29724: } 29724: } 29724: 29724: 29724: template 29724: void 29724: _M_merge_multi(_Compatible_Hashtable& __src) 29724: { 29724: static_assert(is_same_v, "Node types are compatible"); 29724: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __node_ptr __hint = nullptr; 29724: this->reserve(size() + __src.size()); 29724: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 29724: { 29724: auto __pos = __i++; 29724: const key_type& __k = _ExtractKey{}(*__pos); 29724: __hash_code __code 29724: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 29724: auto __nh = __src.extract(__pos); 29724: __hint = _M_insert_multi_node(__hint, __code, __nh._M_ptr)._M_cur; 29724: __nh.release(); 29724: } 29724: } 29724: 29724: 29724: private: 29724: 29724: void _M_rehash(size_type __bkt_count, true_type __uks); 29724: 29724: 29724: void _M_rehash(size_type __bkt_count, false_type __uks); 29724: }; 29724: 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(size_type __bkt_count_hint, 29724: const _Hash& __h, const _Equal& __eq, const allocator_type& __a) 29724: : _Hashtable(__h, __eq, __a) 29724: { 29724: auto __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count_hint); 29724: if (__bkt_count > _M_bucket_count) 29724: { 29724: _M_buckets = _M_allocate_buckets(__bkt_count); 29724: _M_bucket_count = __bkt_count; 29724: } 29724: } 29724: 29724: template 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(_InputIterator __f, _InputIterator __l, 29724: size_type __bkt_count_hint, 29724: const _Hash& __h, const _Equal& __eq, 29724: const allocator_type& __a, true_type ) 29724: : _Hashtable(__bkt_count_hint, __h, __eq, __a) 29724: { this->insert(__f, __l); } 29724: 29724: template 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(_InputIterator __f, _InputIterator __l, 29724: size_type __bkt_count_hint, 29724: const _Hash& __h, const _Equal& __eq, 29724: const allocator_type& __a, false_type __uks) 29724: : _Hashtable(__h, __eq, __a) 29724: { 29724: auto __nb_elems = __detail::__distance_fw(__f, __l); 29724: auto __bkt_count = 29724: _M_rehash_policy._M_next_bkt( 29724: std::max(_M_rehash_policy._M_bkt_for_elements(__nb_elems), 29724: __bkt_count_hint)); 29724: 29724: if (__bkt_count > _M_bucket_count) 29724: { 29724: _M_buckets = _M_allocate_buckets(__bkt_count); 29724: _M_bucket_count = __bkt_count; 29724: } 29724: 29724: __alloc_node_gen_t __node_gen(*this); 29724: for (; __f != __l; ++__f) 29724: _M_insert(*__f, __node_gen, __uks); 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: operator=(const _Hashtable& __ht) 29724: -> _Hashtable& 29724: { 29724: if (&__ht == this) 29724: return *this; 29724: 29724: if (__node_alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: auto& __this_alloc = this->_M_node_allocator(); 29724: auto& __that_alloc = __ht._M_node_allocator(); 29724: if (!__node_alloc_traits::_S_always_equal() 29724: && __this_alloc != __that_alloc) 29724: { 29724: 29724: this->_M_deallocate_nodes(_M_begin()); 29724: _M_before_begin._M_nxt = nullptr; 29724: _M_deallocate_buckets(); 29724: _M_buckets = nullptr; 29724: std::__alloc_on_copy(__this_alloc, __that_alloc); 29724: __hashtable_base::operator=(__ht); 29724: _M_bucket_count = __ht._M_bucket_count; 29724: _M_element_count = __ht._M_element_count; 29724: _M_rehash_policy = __ht._M_rehash_policy; 29724: __alloc_node_gen_t __alloc_node_gen(*this); 29724: try 29724: { 29724: _M_assign(__ht, __alloc_node_gen); 29724: } 29724: catch(...) 29724: { 29724: 29724: 29724: _M_reset(); 29724: throw; 29724: } 29724: return *this; 29724: } 29724: std::__alloc_on_copy(__this_alloc, __that_alloc); 29724: } 29724: 29724: 29724: _M_assign_elements(__ht); 29724: return *this; 29724: } 29724: 29724: template 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_assign_elements(_Ht&& __ht) 29724: { 29724: __buckets_ptr __former_buckets = nullptr; 29724: std::size_t __former_bucket_count = _M_bucket_count; 29724: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29724: 29724: if (_M_bucket_count != __ht._M_bucket_count) 29724: { 29724: __former_buckets = _M_buckets; 29724: _M_buckets = _M_allocate_buckets(__ht._M_bucket_count); 29724: _M_bucket_count = __ht._M_bucket_count; 29724: } 29724: else 29724: __builtin_memset(_M_buckets, 0, 29724: _M_bucket_count * sizeof(__node_base_ptr)); 29724: 29724: try 29724: { 29724: __hashtable_base::operator=(std::forward<_Ht>(__ht)); 29724: _M_element_count = __ht._M_element_count; 29724: _M_rehash_policy = __ht._M_rehash_policy; 29724: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 29724: _M_before_begin._M_nxt = nullptr; 29724: _M_assign(std::forward<_Ht>(__ht), __roan); 29724: if (__former_buckets) 29724: _M_deallocate_buckets(__former_buckets, __former_bucket_count); 29724: __rehash_guard._M_guarded_obj = nullptr; 29724: } 29724: catch(...) 29724: { 29724: if (__former_buckets) 29724: { 29724: 29724: _M_deallocate_buckets(); 29724: _M_buckets = __former_buckets; 29724: _M_bucket_count = __former_bucket_count; 29724: } 29724: __builtin_memset(_M_buckets, 0, 29724: _M_bucket_count * sizeof(__node_base_ptr)); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_assign(_Ht&& __ht, const _NodeGenerator& __node_gen) 29724: { 29724: __buckets_ptr __buckets = nullptr; 29724: if (!_M_buckets) 29724: _M_buckets = __buckets = _M_allocate_buckets(_M_bucket_count); 29724: 29724: try 29724: { 29724: if (!__ht._M_before_begin._M_nxt) 29724: return; 29724: 29724: 29724: 29724: __node_ptr __ht_n = __ht._M_begin(); 29724: __node_ptr __this_n 29724: = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 29724: this->_M_copy_code(*__this_n, *__ht_n); 29724: _M_update_bbegin(__this_n); 29724: 29724: 29724: __node_ptr __prev_n = __this_n; 29724: for (__ht_n = __ht_n->_M_next(); __ht_n; __ht_n = __ht_n->_M_next()) 29724: { 29724: __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 29724: __prev_n->_M_nxt = __this_n; 29724: this->_M_copy_code(*__this_n, *__ht_n); 29724: size_type __bkt = _M_bucket_index(*__this_n); 29724: if (!_M_buckets[__bkt]) 29724: _M_buckets[__bkt] = __prev_n; 29724: __prev_n = __this_n; 29724: } 29724: } 29724: catch(...) 29724: { 29724: clear(); 29724: if (__buckets) 29724: _M_deallocate_buckets(); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_reset() noexcept 29724: { 29724: _M_rehash_policy._M_reset(); 29724: _M_bucket_count = 1; 29724: _M_single_bucket = nullptr; 29724: _M_buckets = &_M_single_bucket; 29724: _M_before_begin._M_nxt = nullptr; 29724: _M_element_count = 0; 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_move_assign(_Hashtable&& __ht, true_type) 29724: { 29724: if (__builtin_expect(std::__addressof(__ht) == this, false)) 29724: return; 29724: 29724: this->_M_deallocate_nodes(_M_begin()); 29724: _M_deallocate_buckets(); 29724: __hashtable_base::operator=(std::move(__ht)); 29724: _M_rehash_policy = __ht._M_rehash_policy; 29724: if (!__ht._M_uses_single_bucket()) 29724: _M_buckets = __ht._M_buckets; 29724: else 29724: { 29724: _M_buckets = &_M_single_bucket; 29724: _M_single_bucket = __ht._M_single_bucket; 29724: } 29724: 29724: _M_bucket_count = __ht._M_bucket_count; 29724: _M_before_begin._M_nxt = __ht._M_before_begin._M_nxt; 29724: _M_element_count = __ht._M_element_count; 29724: std::__alloc_on_move(this->_M_node_allocator(), __ht._M_node_allocator()); 29724: 29724: 29724: _M_update_bbegin(); 29724: __ht._M_reset(); 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_move_assign(_Hashtable&& __ht, false_type) 29724: { 29724: if (__ht._M_node_allocator() == this->_M_node_allocator()) 29724: _M_move_assign(std::move(__ht), true_type{}); 29724: else 29724: { 29724: 29724: _M_assign_elements(std::move(__ht)); 29724: __ht.clear(); 29724: } 29724: } 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(const _Hashtable& __ht) 29724: : __hashtable_base(__ht), 29724: __map_base(__ht), 29724: __rehash_base(__ht), 29724: __hashtable_alloc( 29724: __node_alloc_traits::_S_select_on_copy(__ht._M_node_allocator())), 29724: __enable_default_ctor(__ht), 29724: _M_buckets(nullptr), 29724: _M_bucket_count(__ht._M_bucket_count), 29724: _M_element_count(__ht._M_element_count), 29724: _M_rehash_policy(__ht._M_rehash_policy) 29724: { 29724: __alloc_node_gen_t __alloc_node_gen(*this); 29724: _M_assign(__ht, __alloc_node_gen); 29724: } 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29724: true_type ) 29724: noexcept(_S_nothrow_move()) 29724: : __hashtable_base(__ht), 29724: __map_base(__ht), 29724: __rehash_base(__ht), 29724: __hashtable_alloc(std::move(__a)), 29724: __enable_default_ctor(__ht), 29724: _M_buckets(__ht._M_buckets), 29724: _M_bucket_count(__ht._M_bucket_count), 29724: _M_before_begin(__ht._M_before_begin._M_nxt), 29724: _M_element_count(__ht._M_element_count), 29724: _M_rehash_policy(__ht._M_rehash_policy) 29724: { 29724: 29724: if (__ht._M_uses_single_bucket()) 29724: { 29724: _M_buckets = &_M_single_bucket; 29724: _M_single_bucket = __ht._M_single_bucket; 29724: } 29724: 29724: 29724: _M_update_bbegin(); 29724: 29724: __ht._M_reset(); 29724: } 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(const _Hashtable& __ht, const allocator_type& __a) 29724: : __hashtable_base(__ht), 29724: __map_base(__ht), 29724: __rehash_base(__ht), 29724: __hashtable_alloc(__node_alloc_type(__a)), 29724: __enable_default_ctor(__ht), 29724: _M_buckets(), 29724: _M_bucket_count(__ht._M_bucket_count), 29724: _M_element_count(__ht._M_element_count), 29724: _M_rehash_policy(__ht._M_rehash_policy) 29724: { 29724: __alloc_node_gen_t __alloc_node_gen(*this); 29724: _M_assign(__ht, __alloc_node_gen); 29724: } 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29724: false_type ) 29724: : __hashtable_base(__ht), 29724: __map_base(__ht), 29724: __rehash_base(__ht), 29724: __hashtable_alloc(std::move(__a)), 29724: __enable_default_ctor(__ht), 29724: _M_buckets(nullptr), 29724: _M_bucket_count(__ht._M_bucket_count), 29724: _M_element_count(__ht._M_element_count), 29724: _M_rehash_policy(__ht._M_rehash_policy) 29724: { 29724: if (__ht._M_node_allocator() == this->_M_node_allocator()) 29724: { 29724: if (__ht._M_uses_single_bucket()) 29724: { 29724: _M_buckets = &_M_single_bucket; 29724: _M_single_bucket = __ht._M_single_bucket; 29724: } 29724: else 29724: _M_buckets = __ht._M_buckets; 29724: 29724: 29724: 29724: _M_update_bbegin(__ht._M_begin()); 29724: 29724: __ht._M_reset(); 29724: } 29724: else 29724: { 29724: __alloc_node_gen_t __alloc_gen(*this); 29724: 29724: using _Fwd_Ht = __conditional_t< 29724: __move_if_noexcept_cond::value, 29724: const _Hashtable&, _Hashtable&&>; 29724: _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen); 29724: __ht.clear(); 29724: } 29724: } 29724: 29724: template 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: ~_Hashtable() noexcept 29724: { 29724: 29724: 29724: 29724: static_assert(noexcept(declval() 29724: ._M_bucket_index(declval(), 29724: (std::size_t)0)), 29724: "Cache the hash code or qualify your functors involved" 29724: " in hash code and bucket index computation with noexcept"); 29724: 29724: clear(); 29724: _M_deallocate_buckets(); 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: swap(_Hashtable& __x) 29724: noexcept(__and_<__is_nothrow_swappable<_Hash>, 29724: __is_nothrow_swappable<_Equal>>::value) 29724: { 29724: 29724: 29724: 29724: this->_M_swap(__x); 29724: 29724: std::__alloc_on_swap(this->_M_node_allocator(), __x._M_node_allocator()); 29724: std::swap(_M_rehash_policy, __x._M_rehash_policy); 29724: 29724: 29724: if (this->_M_uses_single_bucket()) 29724: { 29724: if (!__x._M_uses_single_bucket()) 29724: { 29724: _M_buckets = __x._M_buckets; 29724: __x._M_buckets = &__x._M_single_bucket; 29724: } 29724: } 29724: else if (__x._M_uses_single_bucket()) 29724: { 29724: __x._M_buckets = _M_buckets; 29724: _M_buckets = &_M_single_bucket; 29724: } 29724: else 29724: std::swap(_M_buckets, __x._M_buckets); 29724: 29724: std::swap(_M_bucket_count, __x._M_bucket_count); 29724: std::swap(_M_before_begin._M_nxt, __x._M_before_begin._M_nxt); 29724: std::swap(_M_element_count, __x._M_element_count); 29724: std::swap(_M_single_bucket, __x._M_single_bucket); 29724: 29724: 29724: 29724: _M_update_bbegin(); 29724: __x._M_update_bbegin(); 29724: } 29724: 29724: template 29724: auto inline 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: find(const key_type& __k) 29724: -> iterator 29724: { 29724: if (size() <= __small_size_threshold()) 29724: { 29724: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29724: if (this->_M_key_equals(__k, *__it)) 29724: return iterator(__it); 29724: return end(); 29724: } 29724: 29724: __hash_code __code = this->_M_hash_code(__k); 29724: std::size_t __bkt = _M_bucket_index(__code); 29724: return iterator(_M_find_node(__bkt, __k, __code)); 29724: } 29724: 29724: template 29724: auto inline 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: find(const key_type& __k) const 29724: -> const_iterator 29724: { 29724: if (size() <= __small_size_threshold()) 29724: { 29724: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29724: if (this->_M_key_equals(__k, *__it)) 29724: return const_iterator(__it); 29724: return end(); 29724: } 29724: 29724: __hash_code __code = this->_M_hash_code(__k); 29724: std::size_t __bkt = _M_bucket_index(__code); 29724: return const_iterator(_M_find_node(__bkt, __k, __code)); 29724: } 29724: # 1818 "/usr/include/c++/14/bits/hashtable.h" 3 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: count(const key_type& __k) const 29724: -> size_type 29724: { 29724: auto __it = find(__k); 29724: if (!__it._M_cur) 29724: return 0; 29724: 29724: if (__unique_keys::value) 29724: return 1; 29724: 29724: size_type __result = 1; 29724: for (auto __ref = __it++; 29724: __it._M_cur && this->_M_node_equals(*__ref._M_cur, *__it._M_cur); 29724: ++__it) 29724: ++__result; 29724: 29724: return __result; 29724: } 29724: # 1891 "/usr/include/c++/14/bits/hashtable.h" 3 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: equal_range(const key_type& __k) 29724: -> pair 29724: { 29724: auto __ite = find(__k); 29724: if (!__ite._M_cur) 29724: return { __ite, __ite }; 29724: 29724: auto __beg = __ite++; 29724: if (__unique_keys::value) 29724: return { __beg, __ite }; 29724: 29724: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 29724: ++__ite; 29724: 29724: return { __beg, __ite }; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: equal_range(const key_type& __k) const 29724: -> pair 29724: { 29724: auto __ite = find(__k); 29724: if (!__ite._M_cur) 29724: return { __ite, __ite }; 29724: 29724: auto __beg = __ite++; 29724: if (__unique_keys::value) 29724: return { __beg, __ite }; 29724: 29724: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 29724: ++__ite; 29724: 29724: return { __beg, __ite }; 29724: } 29724: # 2031 "/usr/include/c++/14/bits/hashtable.h" 3 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_find_before_node(const key_type& __k) 29724: -> __node_base_ptr 29724: { 29724: __node_base_ptr __prev_p = &_M_before_begin; 29724: if (!__prev_p->_M_nxt) 29724: return nullptr; 29724: 29724: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt); 29724: __p != nullptr; 29724: __p = __p->_M_next()) 29724: { 29724: if (this->_M_key_equals(__k, *__p)) 29724: return __prev_p; 29724: 29724: __prev_p = __p; 29724: } 29724: 29724: return nullptr; 29724: } 29724: 29724: 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_find_before_node(size_type __bkt, const key_type& __k, 29724: __hash_code __code) const 29724: -> __node_base_ptr 29724: { 29724: __node_base_ptr __prev_p = _M_buckets[__bkt]; 29724: if (!__prev_p) 29724: return nullptr; 29724: 29724: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 29724: __p = __p->_M_next()) 29724: { 29724: if (this->_M_equals(__k, __code, *__p)) 29724: return __prev_p; 29724: 29724: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 29724: break; 29724: __prev_p = __p; 29724: } 29724: 29724: return nullptr; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_find_before_node_tr(size_type __bkt, const _Kt& __k, 29724: __hash_code __code) const 29724: -> __node_base_ptr 29724: { 29724: __node_base_ptr __prev_p = _M_buckets[__bkt]; 29724: if (!__prev_p) 29724: return nullptr; 29724: 29724: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 29724: __p = __p->_M_next()) 29724: { 29724: if (this->_M_equals_tr(__k, __code, *__p)) 29724: return __prev_p; 29724: 29724: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 29724: break; 29724: __prev_p = __p; 29724: } 29724: 29724: return nullptr; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_get_previous_node(size_type __bkt, __node_ptr __n) 29724: -> __node_base_ptr 29724: { 29724: __node_base_ptr __prev_n = _M_buckets[__bkt]; 29724: while (__prev_n->_M_nxt != __n) 29724: __prev_n = __prev_n->_M_nxt; 29724: return __prev_n; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_emplace(true_type , _Args&&... __args) 29724: -> pair 29724: { 29724: 29724: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 29724: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 29724: const size_type __size = size(); 29724: if (__size <= __small_size_threshold()) 29724: { 29724: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29724: if (this->_M_key_equals(__k, *__it)) 29724: 29724: return { iterator(__it), false }; 29724: } 29724: 29724: __hash_code __code = this->_M_hash_code(__k); 29724: size_type __bkt = _M_bucket_index(__code); 29724: if (__size > __small_size_threshold()) 29724: if (__node_ptr __p = _M_find_node(__bkt, __k, __code)) 29724: 29724: return { iterator(__p), false }; 29724: 29724: 29724: auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); 29724: __node._M_node = nullptr; 29724: return { __pos, true }; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_emplace(const_iterator __hint, false_type , 29724: _Args&&... __args) 29724: -> iterator 29724: { 29724: 29724: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 29724: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 29724: 29724: auto __res = this->_M_compute_hash_code(__hint._M_cur, __k); 29724: auto __pos 29724: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 29724: __node._M_node = nullptr; 29724: return __pos; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const 29724: -> pair<__node_ptr, __hash_code> 29724: { 29724: if (size() <= __small_size_threshold()) 29724: { 29724: if (__hint) 29724: { 29724: for (auto __it = __hint; __it; __it = __it->_M_next()) 29724: if (this->_M_key_equals(__k, *__it)) 29724: return { __it, this->_M_hash_code(*__it) }; 29724: } 29724: 29724: for (auto __it = _M_begin(); __it != __hint; __it = __it->_M_next()) 29724: if (this->_M_key_equals(__k, *__it)) 29724: return { __it, this->_M_hash_code(*__it) }; 29724: 29724: __hint = nullptr; 29724: } 29724: 29724: return { __hint, this->_M_hash_code(__k) }; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_insert_unique_node(size_type __bkt, __hash_code __code, 29724: __node_ptr __node, size_type __n_elt) 29724: -> iterator 29724: { 29724: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29724: std::pair __do_rehash 29724: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 29724: __n_elt); 29724: 29724: if (__do_rehash.first) 29724: { 29724: _M_rehash(__do_rehash.second, true_type{}); 29724: __bkt = _M_bucket_index(__code); 29724: } 29724: 29724: __rehash_guard._M_guarded_obj = nullptr; 29724: this->_M_store_code(*__node, __code); 29724: 29724: 29724: _M_insert_bucket_begin(__bkt, __node); 29724: ++_M_element_count; 29724: return iterator(__node); 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_insert_multi_node(__node_ptr __hint, 29724: __hash_code __code, __node_ptr __node) 29724: -> iterator 29724: { 29724: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29724: std::pair __do_rehash 29724: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 1); 29724: 29724: if (__do_rehash.first) 29724: _M_rehash(__do_rehash.second, false_type{}); 29724: 29724: __rehash_guard._M_guarded_obj = nullptr; 29724: this->_M_store_code(*__node, __code); 29724: const key_type& __k = _ExtractKey{}(__node->_M_v()); 29724: size_type __bkt = _M_bucket_index(__code); 29724: 29724: 29724: 29724: __node_base_ptr __prev 29724: = __builtin_expect(__hint != nullptr, false) 29724: && this->_M_equals(__k, __code, *__hint) 29724: ? __hint 29724: : _M_find_before_node(__bkt, __k, __code); 29724: 29724: if (__prev) 29724: { 29724: 29724: __node->_M_nxt = __prev->_M_nxt; 29724: __prev->_M_nxt = __node; 29724: if (__builtin_expect(__prev == __hint, false)) 29724: 29724: 29724: if (__node->_M_nxt 29724: && !this->_M_equals(__k, __code, *__node->_M_next())) 29724: { 29724: size_type __next_bkt = _M_bucket_index(*__node->_M_next()); 29724: if (__next_bkt != __bkt) 29724: _M_buckets[__next_bkt] = __node; 29724: } 29724: } 29724: else 29724: 29724: 29724: 29724: _M_insert_bucket_begin(__bkt, __node); 29724: ++_M_element_count; 29724: return iterator(__node); 29724: } 29724: 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_insert_unique(_Kt&& __k, _Arg&& __v, 29724: const _NodeGenerator& __node_gen) 29724: -> pair 29724: { 29724: const size_type __size = size(); 29724: if (__size <= __small_size_threshold()) 29724: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29724: if (this->_M_key_equals_tr(__k, *__it)) 29724: return { iterator(__it), false }; 29724: 29724: __hash_code __code = this->_M_hash_code_tr(__k); 29724: size_type __bkt = _M_bucket_index(__code); 29724: 29724: if (__size > __small_size_threshold()) 29724: if (__node_ptr __node = _M_find_node_tr(__bkt, __k, __code)) 29724: return { iterator(__node), false }; 29724: 29724: _Scoped_node __node { 29724: __node_builder_t::_S_build(std::forward<_Kt>(__k), 29724: std::forward<_Arg>(__v), 29724: __node_gen), 29724: this 29724: }; 29724: auto __pos 29724: = _M_insert_unique_node(__bkt, __code, __node._M_node); 29724: __node._M_node = nullptr; 29724: return { __pos, true }; 29724: } 29724: 29724: 29724: template 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_insert(const_iterator __hint, _Arg&& __v, 29724: const _NodeGenerator& __node_gen, 29724: false_type ) 29724: -> iterator 29724: { 29724: 29724: _Scoped_node __node{ __node_gen(std::forward<_Arg>(__v)), this }; 29724: 29724: 29724: auto __res = this->_M_compute_hash_code( 29724: __hint._M_cur, _ExtractKey{}(__node._M_node->_M_v())); 29724: 29724: auto __pos 29724: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 29724: __node._M_node = nullptr; 29724: return __pos; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: erase(const_iterator __it) 29724: -> iterator 29724: { 29724: __node_ptr __n = __it._M_cur; 29724: std::size_t __bkt = _M_bucket_index(*__n); 29724: 29724: 29724: 29724: 29724: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 29724: return _M_erase(__bkt, __prev_n, __n); 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n) 29724: -> iterator 29724: { 29724: if (__prev_n == _M_buckets[__bkt]) 29724: _M_remove_bucket_begin(__bkt, __n->_M_next(), 29724: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 29724: else if (__n->_M_nxt) 29724: { 29724: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 29724: if (__next_bkt != __bkt) 29724: _M_buckets[__next_bkt] = __prev_n; 29724: } 29724: 29724: __prev_n->_M_nxt = __n->_M_nxt; 29724: iterator __result(__n->_M_next()); 29724: this->_M_deallocate_node(__n); 29724: --_M_element_count; 29724: 29724: return __result; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_erase(true_type , const key_type& __k) 29724: -> size_type 29724: { 29724: __node_base_ptr __prev_n; 29724: __node_ptr __n; 29724: std::size_t __bkt; 29724: if (size() <= __small_size_threshold()) 29724: { 29724: __prev_n = _M_find_before_node(__k); 29724: if (!__prev_n) 29724: return 0; 29724: 29724: 29724: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29724: __bkt = _M_bucket_index(*__n); 29724: } 29724: else 29724: { 29724: __hash_code __code = this->_M_hash_code(__k); 29724: __bkt = _M_bucket_index(__code); 29724: 29724: 29724: __prev_n = _M_find_before_node(__bkt, __k, __code); 29724: if (!__prev_n) 29724: return 0; 29724: 29724: 29724: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29724: } 29724: 29724: _M_erase(__bkt, __prev_n, __n); 29724: return 1; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_erase(false_type , const key_type& __k) 29724: -> size_type 29724: { 29724: std::size_t __bkt; 29724: __node_base_ptr __prev_n; 29724: __node_ptr __n; 29724: if (size() <= __small_size_threshold()) 29724: { 29724: __prev_n = _M_find_before_node(__k); 29724: if (!__prev_n) 29724: return 0; 29724: 29724: 29724: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29724: __bkt = _M_bucket_index(*__n); 29724: } 29724: else 29724: { 29724: __hash_code __code = this->_M_hash_code(__k); 29724: __bkt = _M_bucket_index(__code); 29724: 29724: 29724: __prev_n = _M_find_before_node(__bkt, __k, __code); 29724: if (!__prev_n) 29724: return 0; 29724: 29724: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __node_ptr __n_last = __n->_M_next(); 29724: while (__n_last && this->_M_node_equals(*__n, *__n_last)) 29724: __n_last = __n_last->_M_next(); 29724: 29724: std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt; 29724: 29724: 29724: size_type __result = 0; 29724: do 29724: { 29724: __node_ptr __p = __n->_M_next(); 29724: this->_M_deallocate_node(__n); 29724: __n = __p; 29724: ++__result; 29724: } 29724: while (__n != __n_last); 29724: 29724: _M_element_count -= __result; 29724: if (__prev_n == _M_buckets[__bkt]) 29724: _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt); 29724: else if (__n_last_bkt != __bkt) 29724: _M_buckets[__n_last_bkt] = __prev_n; 29724: __prev_n->_M_nxt = __n_last; 29724: return __result; 29724: } 29724: 29724: template 29724: auto 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: erase(const_iterator __first, const_iterator __last) 29724: -> iterator 29724: { 29724: __node_ptr __n = __first._M_cur; 29724: __node_ptr __last_n = __last._M_cur; 29724: if (__n == __last_n) 29724: return iterator(__n); 29724: 29724: std::size_t __bkt = _M_bucket_index(*__n); 29724: 29724: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 29724: bool __is_bucket_begin = __n == _M_bucket_begin(__bkt); 29724: std::size_t __n_bkt = __bkt; 29724: for (;;) 29724: { 29724: do 29724: { 29724: __node_ptr __tmp = __n; 29724: __n = __n->_M_next(); 29724: this->_M_deallocate_node(__tmp); 29724: --_M_element_count; 29724: if (!__n) 29724: break; 29724: __n_bkt = _M_bucket_index(*__n); 29724: } 29724: while (__n != __last_n && __n_bkt == __bkt); 29724: if (__is_bucket_begin) 29724: _M_remove_bucket_begin(__bkt, __n, __n_bkt); 29724: if (__n == __last_n) 29724: break; 29724: __is_bucket_begin = true; 29724: __bkt = __n_bkt; 29724: } 29724: 29724: if (__n && (__n_bkt != __bkt || __is_bucket_begin)) 29724: _M_buckets[__n_bkt] = __prev_n; 29724: __prev_n->_M_nxt = __n; 29724: return iterator(__n); 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: clear() noexcept 29724: { 29724: this->_M_deallocate_nodes(_M_begin()); 29724: __builtin_memset(_M_buckets, 0, 29724: _M_bucket_count * sizeof(__node_base_ptr)); 29724: _M_element_count = 0; 29724: _M_before_begin._M_nxt = nullptr; 29724: } 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: rehash(size_type __bkt_count) 29724: { 29724: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29724: __bkt_count 29724: = std::max(_M_rehash_policy._M_bkt_for_elements(_M_element_count + 1), 29724: __bkt_count); 29724: __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count); 29724: 29724: if (__bkt_count != _M_bucket_count) 29724: { 29724: _M_rehash(__bkt_count, __unique_keys{}); 29724: __rehash_guard._M_guarded_obj = nullptr; 29724: } 29724: } 29724: 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_rehash(size_type __bkt_count, true_type ) 29724: { 29724: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 29724: __node_ptr __p = _M_begin(); 29724: _M_before_begin._M_nxt = nullptr; 29724: std::size_t __bbegin_bkt = 0; 29724: while (__p) 29724: { 29724: __node_ptr __next = __p->_M_next(); 29724: std::size_t __bkt 29724: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 29724: if (!__new_buckets[__bkt]) 29724: { 29724: __p->_M_nxt = _M_before_begin._M_nxt; 29724: _M_before_begin._M_nxt = __p; 29724: __new_buckets[__bkt] = &_M_before_begin; 29724: if (__p->_M_nxt) 29724: __new_buckets[__bbegin_bkt] = __p; 29724: __bbegin_bkt = __bkt; 29724: } 29724: else 29724: { 29724: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 29724: __new_buckets[__bkt]->_M_nxt = __p; 29724: } 29724: 29724: __p = __next; 29724: } 29724: 29724: _M_deallocate_buckets(); 29724: _M_bucket_count = __bkt_count; 29724: _M_buckets = __new_buckets; 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29724: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29724: _M_rehash(size_type __bkt_count, false_type ) 29724: { 29724: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 29724: __node_ptr __p = _M_begin(); 29724: _M_before_begin._M_nxt = nullptr; 29724: std::size_t __bbegin_bkt = 0; 29724: std::size_t __prev_bkt = 0; 29724: __node_ptr __prev_p = nullptr; 29724: bool __check_bucket = false; 29724: 29724: while (__p) 29724: { 29724: __node_ptr __next = __p->_M_next(); 29724: std::size_t __bkt 29724: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 29724: 29724: if (__prev_p && __prev_bkt == __bkt) 29724: { 29724: 29724: 29724: 29724: __p->_M_nxt = __prev_p->_M_nxt; 29724: __prev_p->_M_nxt = __p; 29724: 29724: 29724: 29724: 29724: 29724: 29724: __check_bucket = true; 29724: } 29724: else 29724: { 29724: if (__check_bucket) 29724: { 29724: 29724: 29724: if (__prev_p->_M_nxt) 29724: { 29724: std::size_t __next_bkt 29724: = __hash_code_base::_M_bucket_index( 29724: *__prev_p->_M_next(), __bkt_count); 29724: if (__next_bkt != __prev_bkt) 29724: __new_buckets[__next_bkt] = __prev_p; 29724: } 29724: __check_bucket = false; 29724: } 29724: 29724: if (!__new_buckets[__bkt]) 29724: { 29724: __p->_M_nxt = _M_before_begin._M_nxt; 29724: _M_before_begin._M_nxt = __p; 29724: __new_buckets[__bkt] = &_M_before_begin; 29724: if (__p->_M_nxt) 29724: __new_buckets[__bbegin_bkt] = __p; 29724: __bbegin_bkt = __bkt; 29724: } 29724: else 29724: { 29724: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 29724: __new_buckets[__bkt]->_M_nxt = __p; 29724: } 29724: } 29724: __prev_p = __p; 29724: __prev_bkt = __bkt; 29724: __p = __next; 29724: } 29724: 29724: if (__check_bucket && __prev_p->_M_nxt) 29724: { 29724: std::size_t __next_bkt 29724: = __hash_code_base::_M_bucket_index(*__prev_p->_M_next(), 29724: __bkt_count); 29724: if (__next_bkt != __prev_bkt) 29724: __new_buckets[__next_bkt] = __prev_p; 29724: } 29724: 29724: _M_deallocate_buckets(); 29724: _M_bucket_count = __bkt_count; 29724: _M_buckets = __new_buckets; 29724: } 29724: 29724: 29724: template class _Hash_merge_helper { }; 29724: 29724: 29724: 29724: 29724: template 29724: using _RequireNotAllocatorOrIntegral 29724: = __enable_if_t, __is_allocator<_Hash>>::value>; 29724: 29724: 29724: 29724: 29724: } 29724: # 34 "/usr/include/c++/14/bits/unordered_map.h" 2 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>; 29724: 29724: template, 29724: typename _Pred = std::equal_to<_Key>, 29724: typename _Alloc = std::allocator >, 29724: typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>> 29724: using __umap_hashtable = _Hashtable<_Key, std::pair, 29724: _Alloc, __detail::_Select1st, 29724: _Pred, _Hash, 29724: __detail::_Mod_range_hashing, 29724: __detail::_Default_ranged_hash, 29724: __detail::_Prime_rehash_policy, _Tr>; 29724: 29724: 29724: template 29724: using __ummap_traits = __detail::_Hashtable_traits<_Cache, false, false>; 29724: 29724: template, 29724: typename _Pred = std::equal_to<_Key>, 29724: typename _Alloc = std::allocator >, 29724: typename _Tr = __ummap_traits<__cache_default<_Key, _Hash>::value>> 29724: using __ummap_hashtable = _Hashtable<_Key, std::pair, 29724: _Alloc, __detail::_Select1st, 29724: _Pred, _Hash, 29724: __detail::_Mod_range_hashing, 29724: __detail::_Default_ranged_hash, 29724: __detail::_Prime_rehash_policy, _Tr>; 29724: 29724: template 29724: class unordered_multimap; 29724: # 105 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template, 29724: typename _Pred = equal_to<_Key>, 29724: typename _Alloc = allocator>> 29724: class unordered_map 29724: { 29724: typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 29724: _Hashtable _M_h; 29724: 29724: public: 29724: 29724: 29724: 29724: typedef typename _Hashtable::key_type key_type; 29724: typedef typename _Hashtable::value_type value_type; 29724: typedef typename _Hashtable::mapped_type mapped_type; 29724: typedef typename _Hashtable::hasher hasher; 29724: typedef typename _Hashtable::key_equal key_equal; 29724: typedef typename _Hashtable::allocator_type allocator_type; 29724: 29724: 29724: 29724: 29724: typedef typename _Hashtable::pointer pointer; 29724: typedef typename _Hashtable::const_pointer const_pointer; 29724: typedef typename _Hashtable::reference reference; 29724: typedef typename _Hashtable::const_reference const_reference; 29724: typedef typename _Hashtable::iterator iterator; 29724: typedef typename _Hashtable::const_iterator const_iterator; 29724: typedef typename _Hashtable::local_iterator local_iterator; 29724: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29724: typedef typename _Hashtable::size_type size_type; 29724: typedef typename _Hashtable::difference_type difference_type; 29724: 29724: 29724: 29724: using node_type = typename _Hashtable::node_type; 29724: using insert_return_type = typename _Hashtable::insert_return_type; 29724: 29724: 29724: 29724: 29724: 29724: unordered_map() = default; 29724: # 157 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: explicit 29724: unordered_map(size_type __n, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__n, __hf, __eql, __a) 29724: { } 29724: # 178 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: unordered_map(_InputIterator __first, _InputIterator __last, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__first, __last, __n, __hf, __eql, __a) 29724: { } 29724: 29724: 29724: unordered_map(const unordered_map&) = default; 29724: 29724: 29724: unordered_map(unordered_map&&) = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: unordered_map(const allocator_type& __a) 29724: : _M_h(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_map(const unordered_map& __umap, 29724: const allocator_type& __a) 29724: : _M_h(__umap._M_h, __a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_map(unordered_map&& __umap, 29724: const allocator_type& __a) 29724: noexcept( noexcept(_Hashtable(std::move(__umap._M_h), __a)) ) 29724: : _M_h(std::move(__umap._M_h), __a) 29724: { } 29724: # 234 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: unordered_map(initializer_list __l, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__l, __n, __hf, __eql, __a) 29724: { } 29724: 29724: unordered_map(size_type __n, const allocator_type& __a) 29724: : unordered_map(__n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_map(size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_map(__n, __hf, key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_map(_InputIterator __first, _InputIterator __last, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_map(__first, __last, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_map(_InputIterator __first, _InputIterator __last, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_map(__first, __last, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: unordered_map(initializer_list __l, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_map(__l, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_map(initializer_list __l, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_map(__l, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: 29724: unordered_map& 29724: operator=(const unordered_map&) = default; 29724: 29724: 29724: unordered_map& 29724: operator=(unordered_map&&) = default; 29724: # 296 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: unordered_map& 29724: operator=(initializer_list __l) 29724: { 29724: _M_h = __l; 29724: return *this; 29724: } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _M_h.get_allocator(); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_h.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_h.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_h.max_size(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_h.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_h.end(); } 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_h.end(); } 29724: # 393 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: std::pair 29724: emplace(_Args&&... __args) 29724: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29724: # 424 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_h.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __key) 29724: { return _M_h.extract(__key); } 29724: 29724: 29724: insert_return_type 29724: insert(node_type&& __nh) 29724: { return _M_h._M_reinsert_node(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator, node_type&& __nh) 29724: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 29724: # 477 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: pair 29724: try_emplace(const key_type& __k, _Args&&... __args) 29724: { 29724: return _M_h.try_emplace(cend(), __k, std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: template 29724: pair 29724: try_emplace(key_type&& __k, _Args&&... __args) 29724: { 29724: return _M_h.try_emplace(cend(), std::move(__k), 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 521 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: iterator 29724: try_emplace(const_iterator __hint, const key_type& __k, 29724: _Args&&... __args) 29724: { 29724: return _M_h.try_emplace(__hint, __k, 29724: std::forward<_Args>(__args)...).first; 29724: } 29724: 29724: 29724: template 29724: iterator 29724: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 29724: { 29724: return _M_h.try_emplace(__hint, std::move(__k), 29724: std::forward<_Args>(__args)...).first; 29724: } 29724: # 558 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: std::pair 29724: insert(const value_type& __x) 29724: { return _M_h.insert(__x); } 29724: 29724: 29724: 29724: std::pair 29724: insert(value_type&& __x) 29724: { return _M_h.insert(std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, 29724: pair> 29724: insert(_Pair&& __x) 29724: { return _M_h.emplace(std::forward<_Pair>(__x)); } 29724: # 597 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: insert(const_iterator __hint, const value_type& __x) 29724: { return _M_h.insert(__hint, __x); } 29724: 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, value_type&& __x) 29724: { return _M_h.insert(__hint, std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(const_iterator __hint, _Pair&& __x) 29724: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 29724: # 622 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_h.insert(__first, __last); } 29724: # 634 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { _M_h.insert(__l); } 29724: # 660 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: pair 29724: insert_or_assign(const key_type& __k, _Obj&& __obj) 29724: { 29724: auto __ret = _M_h.try_emplace(cend(), __k, 29724: std::forward<_Obj>(__obj)); 29724: if (!__ret.second) 29724: __ret.first->second = std::forward<_Obj>(__obj); 29724: return __ret; 29724: } 29724: 29724: 29724: template 29724: pair 29724: insert_or_assign(key_type&& __k, _Obj&& __obj) 29724: { 29724: auto __ret = _M_h.try_emplace(cend(), std::move(__k), 29724: std::forward<_Obj>(__obj)); 29724: if (!__ret.second) 29724: __ret.first->second = std::forward<_Obj>(__obj); 29724: return __ret; 29724: } 29724: # 709 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: iterator 29724: insert_or_assign(const_iterator __hint, const key_type& __k, 29724: _Obj&& __obj) 29724: { 29724: auto __ret = _M_h.try_emplace(__hint, __k, std::forward<_Obj>(__obj)); 29724: if (!__ret.second) 29724: __ret.first->second = std::forward<_Obj>(__obj); 29724: return __ret.first; 29724: } 29724: 29724: 29724: template 29724: iterator 29724: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 29724: { 29724: auto __ret = _M_h.try_emplace(__hint, std::move(__k), 29724: std::forward<_Obj>(__obj)); 29724: if (!__ret.second) 29724: __ret.first->second = std::forward<_Obj>(__obj); 29724: return __ret.first; 29724: } 29724: # 747 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_h.erase(__position); } 29724: 29724: 29724: iterator 29724: erase(iterator __position) 29724: { return _M_h.erase(__position); } 29724: # 769 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_h.erase(__x); } 29724: # 787 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_h.erase(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_h.clear(); } 29724: # 811 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: swap(unordered_map& __x) 29724: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29724: { _M_h.swap(__x._M_h); } 29724: 29724: 29724: template 29724: friend class std::_Hash_merge_helper; 29724: 29724: template 29724: void 29724: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Hash_merge_helper; 29724: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Hash_merge_helper; 29724: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: hasher 29724: hash_function() const 29724: { return _M_h.hash_function(); } 29724: 29724: 29724: 29724: key_equal 29724: key_eq() const 29724: { return _M_h.key_eq(); } 29724: # 875 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_h.find(__x); } 29724: # 886 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_h.find(__x); } 29724: # 908 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_h.count(__x); } 29724: # 948 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_h.equal_range(__x); } 29724: # 960 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_h.equal_range(__x); } 29724: # 986 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: mapped_type& 29724: operator[](const key_type& __k) 29724: { return _M_h[__k]; } 29724: 29724: mapped_type& 29724: operator[](key_type&& __k) 29724: { return _M_h[std::move(__k)]; } 29724: # 1003 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: mapped_type& 29724: at(const key_type& __k) 29724: { return _M_h.at(__k); } 29724: 29724: const mapped_type& 29724: at(const key_type& __k) const 29724: { return _M_h.at(__k); } 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_count() const noexcept 29724: { return _M_h.bucket_count(); } 29724: 29724: 29724: size_type 29724: max_bucket_count() const noexcept 29724: { return _M_h.max_bucket_count(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_size(size_type __n) const 29724: { return _M_h.bucket_size(__n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket(const key_type& __key) const 29724: { return _M_h.bucket(__key); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: local_iterator 29724: begin(size_type __n) 29724: { return _M_h.begin(__n); } 29724: # 1059 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_local_iterator 29724: begin(size_type __n) const 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: cbegin(size_type __n) const 29724: { return _M_h.cbegin(__n); } 29724: # 1074 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: local_iterator 29724: end(size_type __n) 29724: { return _M_h.end(__n); } 29724: # 1085 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_local_iterator 29724: end(size_type __n) const 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: cend(size_type __n) const 29724: { return _M_h.cend(__n); } 29724: 29724: 29724: 29724: 29724: 29724: float 29724: load_factor() const noexcept 29724: { return _M_h.load_factor(); } 29724: 29724: 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_h.max_load_factor(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: max_load_factor(float __z) 29724: { _M_h.max_load_factor(__z); } 29724: # 1122 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: rehash(size_type __n) 29724: { _M_h.rehash(__n); } 29724: # 1133 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: reserve(size_type __n) 29724: { _M_h.reserve(__n); } 29724: 29724: template 29724: friend bool 29724: operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, 29724: const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); 29724: }; 29724: 29724: 29724: 29724: template>, 29724: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 29724: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(_InputIterator, _InputIterator, 29724: typename unordered_map::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29724: -> unordered_map<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, 29724: _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename _Pred = equal_to<_Key>, 29724: typename _Allocator = allocator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(initializer_list>, 29724: typename unordered_map::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29724: -> unordered_map<_Key, _Tp, _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(_InputIterator, _InputIterator, 29724: typename unordered_map::size_type, _Allocator) 29724: -> unordered_map<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, 29724: hash<__iter_key_t<_InputIterator>>, 29724: equal_to<__iter_key_t<_InputIterator>>, 29724: _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(_InputIterator, _InputIterator, _Allocator) 29724: -> unordered_map<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, 29724: hash<__iter_key_t<_InputIterator>>, 29724: equal_to<__iter_key_t<_InputIterator>>, 29724: _Allocator>; 29724: 29724: template, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(_InputIterator, _InputIterator, 29724: typename unordered_map::size_type, 29724: _Hash, _Allocator) 29724: -> unordered_map<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, _Hash, 29724: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template> 29724: unordered_map(initializer_list>, 29724: typename unordered_map::size_type, 29724: _Allocator) 29724: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29724: 29724: template> 29724: unordered_map(initializer_list>, _Allocator) 29724: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_map(initializer_list>, 29724: typename unordered_map::size_type, 29724: _Hash, _Allocator) 29724: -> unordered_map<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 29724: # 1251 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template, 29724: typename _Pred = equal_to<_Key>, 29724: typename _Alloc = allocator>> 29724: class unordered_multimap 29724: { 29724: typedef __ummap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 29724: _Hashtable _M_h; 29724: 29724: public: 29724: 29724: 29724: 29724: typedef typename _Hashtable::key_type key_type; 29724: typedef typename _Hashtable::value_type value_type; 29724: typedef typename _Hashtable::mapped_type mapped_type; 29724: typedef typename _Hashtable::hasher hasher; 29724: typedef typename _Hashtable::key_equal key_equal; 29724: typedef typename _Hashtable::allocator_type allocator_type; 29724: 29724: 29724: 29724: 29724: typedef typename _Hashtable::pointer pointer; 29724: typedef typename _Hashtable::const_pointer const_pointer; 29724: typedef typename _Hashtable::reference reference; 29724: typedef typename _Hashtable::const_reference const_reference; 29724: typedef typename _Hashtable::iterator iterator; 29724: typedef typename _Hashtable::const_iterator const_iterator; 29724: typedef typename _Hashtable::local_iterator local_iterator; 29724: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29724: typedef typename _Hashtable::size_type size_type; 29724: typedef typename _Hashtable::difference_type difference_type; 29724: 29724: 29724: 29724: using node_type = typename _Hashtable::node_type; 29724: 29724: 29724: 29724: 29724: 29724: unordered_multimap() = default; 29724: # 1302 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: explicit 29724: unordered_multimap(size_type __n, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__n, __hf, __eql, __a) 29724: { } 29724: # 1323 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: unordered_multimap(_InputIterator __first, _InputIterator __last, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__first, __last, __n, __hf, __eql, __a) 29724: { } 29724: 29724: 29724: unordered_multimap(const unordered_multimap&) = default; 29724: 29724: 29724: unordered_multimap(unordered_multimap&&) = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: unordered_multimap(const allocator_type& __a) 29724: : _M_h(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_multimap(const unordered_multimap& __ummap, 29724: const allocator_type& __a) 29724: : _M_h(__ummap._M_h, __a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_multimap(unordered_multimap&& __ummap, 29724: const allocator_type& __a) 29724: noexcept( noexcept(_Hashtable(std::move(__ummap._M_h), __a)) ) 29724: : _M_h(std::move(__ummap._M_h), __a) 29724: { } 29724: # 1379 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: unordered_multimap(initializer_list __l, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__l, __n, __hf, __eql, __a) 29724: { } 29724: 29724: unordered_multimap(size_type __n, const allocator_type& __a) 29724: : unordered_multimap(__n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_multimap(size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multimap(__n, __hf, key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_multimap(_InputIterator __first, _InputIterator __last, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_multimap(__first, __last, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_multimap(_InputIterator __first, _InputIterator __last, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multimap(__first, __last, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: unordered_multimap(initializer_list __l, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_multimap(__l, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_multimap(initializer_list __l, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multimap(__l, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: 29724: unordered_multimap& 29724: operator=(const unordered_multimap&) = default; 29724: 29724: 29724: unordered_multimap& 29724: operator=(unordered_multimap&&) = default; 29724: # 1441 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: unordered_multimap& 29724: operator=(initializer_list __l) 29724: { 29724: _M_h = __l; 29724: return *this; 29724: } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _M_h.get_allocator(); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_h.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_h.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_h.max_size(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_h.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_h.end(); } 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_h.end(); } 29724: # 1533 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: iterator 29724: emplace(_Args&&... __args) 29724: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29724: # 1560 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29724: # 1575 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: insert(const value_type& __x) 29724: { return _M_h.insert(__x); } 29724: 29724: iterator 29724: insert(value_type&& __x) 29724: { return _M_h.insert(std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(_Pair&& __x) 29724: { return _M_h.emplace(std::forward<_Pair>(__x)); } 29724: # 1609 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: insert(const_iterator __hint, const value_type& __x) 29724: { return _M_h.insert(__hint, __x); } 29724: 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, value_type&& __x) 29724: { return _M_h.insert(__hint, std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(const_iterator __hint, _Pair&& __x) 29724: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 29724: # 1634 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_h.insert(__first, __last); } 29724: # 1647 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { _M_h.insert(__l); } 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_h.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __key) 29724: { return _M_h.extract(__key); } 29724: 29724: 29724: iterator 29724: insert(node_type&& __nh) 29724: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 29724: # 1690 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_h.erase(__position); } 29724: 29724: 29724: iterator 29724: erase(iterator __position) 29724: { return _M_h.erase(__position); } 29724: # 1711 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_h.erase(__x); } 29724: # 1730 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_h.erase(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_h.clear(); } 29724: # 1754 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: swap(unordered_multimap& __x) 29724: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29724: { _M_h.swap(__x._M_h); } 29724: 29724: 29724: template 29724: friend class std::_Hash_merge_helper; 29724: 29724: template 29724: void 29724: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper 29724: = _Hash_merge_helper; 29724: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper 29724: = _Hash_merge_helper; 29724: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: hasher 29724: hash_function() const 29724: { return _M_h.hash_function(); } 29724: 29724: 29724: 29724: key_equal 29724: key_eq() const 29724: { return _M_h.key_eq(); } 29724: # 1820 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_h.find(__x); } 29724: # 1831 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_h.find(__x); } 29724: # 1849 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_h.count(__x); } 29724: # 1887 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_h.equal_range(__x); } 29724: # 1899 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_h.equal_range(__x); } 29724: # 1915 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: size_type 29724: bucket_count() const noexcept 29724: { return _M_h.bucket_count(); } 29724: 29724: 29724: size_type 29724: max_bucket_count() const noexcept 29724: { return _M_h.max_bucket_count(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_size(size_type __n) const 29724: { return _M_h.bucket_size(__n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket(const key_type& __key) const 29724: { return _M_h.bucket(__key); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: local_iterator 29724: begin(size_type __n) 29724: { return _M_h.begin(__n); } 29724: # 1959 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_local_iterator 29724: begin(size_type __n) const 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: cbegin(size_type __n) const 29724: { return _M_h.cbegin(__n); } 29724: # 1974 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: local_iterator 29724: end(size_type __n) 29724: { return _M_h.end(__n); } 29724: # 1985 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: const_local_iterator 29724: end(size_type __n) const 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: cend(size_type __n) const 29724: { return _M_h.cend(__n); } 29724: 29724: 29724: 29724: 29724: 29724: float 29724: load_factor() const noexcept 29724: { return _M_h.load_factor(); } 29724: 29724: 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_h.max_load_factor(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: max_load_factor(float __z) 29724: { _M_h.max_load_factor(__z); } 29724: # 2022 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: rehash(size_type __n) 29724: { _M_h.rehash(__n); } 29724: # 2033 "/usr/include/c++/14/bits/unordered_map.h" 3 29724: void 29724: reserve(size_type __n) 29724: { _M_h.reserve(__n); } 29724: 29724: template 29724: friend bool 29724: operator==(const unordered_multimap<_Key1, _Tp1, 29724: _Hash1, _Pred1, _Alloc1>&, 29724: const unordered_multimap<_Key1, _Tp1, 29724: _Hash1, _Pred1, _Alloc1>&); 29724: }; 29724: 29724: 29724: 29724: template>, 29724: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 29724: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(_InputIterator, _InputIterator, 29724: unordered_multimap::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), 29724: _Allocator = _Allocator()) 29724: -> unordered_multimap<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, _Hash, _Pred, 29724: _Allocator>; 29724: 29724: template, 29724: typename _Pred = equal_to<_Key>, 29724: typename _Allocator = allocator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(initializer_list>, 29724: unordered_multimap::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), 29724: _Allocator = _Allocator()) 29724: -> unordered_multimap<_Key, _Tp, _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(_InputIterator, _InputIterator, 29724: unordered_multimap::size_type, _Allocator) 29724: -> unordered_multimap<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, 29724: hash<__iter_key_t<_InputIterator>>, 29724: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(_InputIterator, _InputIterator, _Allocator) 29724: -> unordered_multimap<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, 29724: hash<__iter_key_t<_InputIterator>>, 29724: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(_InputIterator, _InputIterator, 29724: unordered_multimap::size_type, _Hash, 29724: _Allocator) 29724: -> unordered_multimap<__iter_key_t<_InputIterator>, 29724: __iter_val_t<_InputIterator>, _Hash, 29724: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template> 29724: unordered_multimap(initializer_list>, 29724: unordered_multimap::size_type, 29724: _Allocator) 29724: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29724: 29724: template> 29724: unordered_multimap(initializer_list>, _Allocator) 29724: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multimap(initializer_list>, 29724: unordered_multimap::size_type, 29724: _Hash, _Allocator) 29724: -> unordered_multimap<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: template 29724: inline void 29724: swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: template 29724: inline bool 29724: operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: { return __x._M_h._M_equal(__y._M_h); } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: { return __x._M_h._M_equal(__y._M_h); } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hash_merge_helper< 29724: std::unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>, 29724: _Hash2, _Eq2> 29724: { 29724: private: 29724: template 29724: using unordered_map = std::unordered_map<_Tp...>; 29724: template 29724: using unordered_multimap = std::unordered_multimap<_Tp...>; 29724: 29724: friend unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29724: { return __map._M_h; } 29724: 29724: static auto& 29724: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29724: { return __map._M_h; } 29724: }; 29724: 29724: 29724: template 29724: struct _Hash_merge_helper< 29724: std::unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>, 29724: _Hash2, _Eq2> 29724: { 29724: private: 29724: template 29724: using unordered_map = std::unordered_map<_Tp...>; 29724: template 29724: using unordered_multimap = std::unordered_multimap<_Tp...>; 29724: 29724: friend unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29724: { return __map._M_h; } 29724: 29724: static auto& 29724: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29724: { return __map._M_h; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 42 "/usr/include/c++/14/unordered_map" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/erase_if.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/erase_if.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/erase_if.h" 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std 29724: { 29724: 29724: 29724: namespace __detail 29724: { 29724: template 29724: typename _Container::size_type 29724: __erase_nodes_if(_Container& __cont, _UnsafeContainer& __ucont, 29724: _Predicate __pred) 29724: { 29724: typename _Container::size_type __num = 0; 29724: for (auto __iter = __ucont.begin(), __last = __ucont.end(); 29724: __iter != __last;) 29724: { 29724: if (__pred(*__iter)) 29724: { 29724: __iter = __cont.erase(__iter); 29724: ++__num; 29724: } 29724: else 29724: ++__iter; 29724: } 29724: return __num; 29724: } 29724: } 29724: 29724: 29724: } 29724: # 44 "/usr/include/c++/14/unordered_map" 2 3 29724: # 56 "/usr/include/c++/14/unordered_map" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 57 "/usr/include/c++/14/unordered_map" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template, 29724: typename _Pred = std::equal_to<_Key>> 29724: using unordered_map 29724: = std::unordered_map<_Key, _Tp, _Hash, _Pred, 29724: polymorphic_allocator>>; 29724: template, 29724: typename _Pred = std::equal_to<_Key>> 29724: using unordered_multimap 29724: = std::unordered_multimap<_Key, _Tp, _Hash, _Pred, 29724: polymorphic_allocator>>; 29724: } 29724: 29724: } 29724: # 64 "/usr/include/c++/14/functional" 2 3 29724: # 1 "/usr/include/c++/14/vector" 1 3 29724: # 58 "/usr/include/c++/14/vector" 3 29724: 29724: # 59 "/usr/include/c++/14/vector" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_vector.h" 1 3 29724: # 77 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: struct _Vector_base 29724: { 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Tp>::other _Tp_alloc_type; 29724: typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer 29724: pointer; 29724: 29724: struct _Vector_impl_data 29724: { 29724: pointer _M_start; 29724: pointer _M_finish; 29724: pointer _M_end_of_storage; 29724: 29724: 29724: _Vector_impl_data() noexcept 29724: : _M_start(), _M_finish(), _M_end_of_storage() 29724: { } 29724: 29724: 29724: 29724: _Vector_impl_data(_Vector_impl_data&& __x) noexcept 29724: : _M_start(__x._M_start), _M_finish(__x._M_finish), 29724: _M_end_of_storage(__x._M_end_of_storage) 29724: { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } 29724: 29724: 29724: 29724: void 29724: _M_copy_data(_Vector_impl_data const& __x) noexcept 29724: { 29724: _M_start = __x._M_start; 29724: _M_finish = __x._M_finish; 29724: _M_end_of_storage = __x._M_end_of_storage; 29724: } 29724: 29724: 29724: void 29724: _M_swap_data(_Vector_impl_data& __x) noexcept 29724: { 29724: 29724: 29724: _Vector_impl_data __tmp; 29724: __tmp._M_copy_data(*this); 29724: _M_copy_data(__x); 29724: __x._M_copy_data(__tmp); 29724: } 29724: }; 29724: 29724: struct _Vector_impl 29724: : public _Tp_alloc_type, public _Vector_impl_data 29724: { 29724: 29724: _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 29724: 29724: 29724: 29724: 29724: : _Tp_alloc_type() 29724: { } 29724: 29724: 29724: _Vector_impl(_Tp_alloc_type const& __a) noexcept 29724: : _Tp_alloc_type(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: _Vector_impl(_Vector_impl&& __x) noexcept 29724: : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) 29724: { } 29724: 29724: 29724: _Vector_impl(_Tp_alloc_type&& __a) noexcept 29724: : _Tp_alloc_type(std::move(__a)) 29724: { } 29724: 29724: 29724: _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept 29724: : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) 29724: { } 29724: # 293 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: }; 29724: 29724: public: 29724: typedef _Alloc allocator_type; 29724: 29724: 29724: _Tp_alloc_type& 29724: _M_get_Tp_allocator() noexcept 29724: { return this->_M_impl; } 29724: 29724: 29724: const _Tp_alloc_type& 29724: _M_get_Tp_allocator() const noexcept 29724: { return this->_M_impl; } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_get_Tp_allocator()); } 29724: 29724: 29724: _Vector_base() = default; 29724: 29724: 29724: 29724: 29724: 29724: _Vector_base(const allocator_type& __a) noexcept 29724: : _M_impl(__a) { } 29724: 29724: 29724: 29724: 29724: _Vector_base(size_t __n) 29724: : _M_impl() 29724: { _M_create_storage(__n); } 29724: 29724: 29724: 29724: _Vector_base(size_t __n, const allocator_type& __a) 29724: : _M_impl(__a) 29724: { _M_create_storage(__n); } 29724: 29724: 29724: _Vector_base(_Vector_base&&) = default; 29724: 29724: 29724: 29724: 29724: _Vector_base(_Tp_alloc_type&& __a) noexcept 29724: : _M_impl(std::move(__a)) { } 29724: 29724: 29724: _Vector_base(_Vector_base&& __x, const allocator_type& __a) 29724: : _M_impl(__a) 29724: { 29724: if (__x.get_allocator() == __a) 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: else 29724: { 29724: size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; 29724: _M_create_storage(__n); 29724: } 29724: } 29724: 29724: 29724: 29724: _Vector_base(const allocator_type& __a, _Vector_base&& __x) 29724: : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) 29724: { } 29724: 29724: 29724: 29724: ~_Vector_base() noexcept 29724: { 29724: _M_deallocate(_M_impl._M_start, 29724: _M_impl._M_end_of_storage - _M_impl._M_start); 29724: } 29724: 29724: public: 29724: _Vector_impl _M_impl; 29724: 29724: 29724: pointer 29724: _M_allocate(size_t __n) 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 29724: return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); 29724: } 29724: 29724: 29724: void 29724: _M_deallocate(pointer __p, size_t __n) 29724: { 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 29724: if (__p) 29724: _Tr::deallocate(_M_impl, __p, __n); 29724: } 29724: 29724: protected: 29724: 29724: 29724: void 29724: _M_create_storage(size_t __n) 29724: { 29724: this->_M_impl._M_start = this->_M_allocate(__n); 29724: this->_M_impl._M_finish = this->_M_impl._M_start; 29724: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29724: } 29724: }; 29724: # 427 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template > 29724: class vector : protected _Vector_base<_Tp, _Alloc> 29724: { 29724: # 440 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: static_assert(is_same::type, _Tp>::value, 29724: "std::vector must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _Vector_base<_Tp, _Alloc> _Base; 29724: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 29724: 29724: public: 29724: typedef _Tp value_type; 29724: typedef typename _Base::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: typedef __gnu_cxx::__normal_iterator iterator; 29724: typedef __gnu_cxx::__normal_iterator 29724: const_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Alloc allocator_type; 29724: 29724: private: 29724: 29724: static constexpr bool 29724: _S_nothrow_relocate(true_type) 29724: { 29724: return noexcept(std::__relocate_a(std::declval(), 29724: std::declval(), 29724: std::declval(), 29724: std::declval<_Tp_alloc_type&>())); 29724: } 29724: 29724: static constexpr bool 29724: _S_nothrow_relocate(false_type) 29724: { return false; } 29724: 29724: static constexpr bool 29724: _S_use_relocate() 29724: { 29724: 29724: 29724: 29724: return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); 29724: } 29724: 29724: static pointer 29724: _S_do_relocate(pointer __first, pointer __last, pointer __result, 29724: _Tp_alloc_type& __alloc, true_type) noexcept 29724: { 29724: return std::__relocate_a(__first, __last, __result, __alloc); 29724: } 29724: 29724: static pointer 29724: _S_do_relocate(pointer, pointer, pointer __result, 29724: _Tp_alloc_type&, false_type) noexcept 29724: { return __result; } 29724: 29724: static pointer 29724: _S_relocate(pointer __first, pointer __last, pointer __result, 29724: _Tp_alloc_type& __alloc) noexcept 29724: { 29724: 29724: 29724: return std::__relocate_a(__first, __last, __result, __alloc); 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: protected: 29724: using _Base::_M_allocate; 29724: using _Base::_M_deallocate; 29724: using _Base::_M_impl; 29724: using _Base::_M_get_Tp_allocator; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: vector() = default; 29724: # 540 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: explicit 29724: 29724: vector(const allocator_type& __a) noexcept 29724: : _Base(__a) { } 29724: # 554 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: explicit 29724: 29724: vector(size_type __n, const allocator_type& __a = allocator_type()) 29724: : _Base(_S_check_init_len(__n, __a), __a) 29724: { _M_default_initialize(__n); } 29724: # 568 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector(size_type __n, const value_type& __value, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(_S_check_init_len(__n, __a), __a) 29724: { _M_fill_initialize(__n, __value); } 29724: # 600 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector(const vector& __x) 29724: : _Base(__x.size(), 29724: _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) 29724: { 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_copy_a(__x.begin(), __x.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); 29724: } 29724: # 620 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: vector(vector&&) noexcept = default; 29724: 29724: 29724: 29724: vector(const vector& __x, const __type_identity_t& __a) 29724: : _Base(__x.size(), __a) 29724: { 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_copy_a(__x.begin(), __x.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); 29724: } 29724: 29724: private: 29724: 29724: vector(vector&& __rv, const allocator_type& __m, true_type) noexcept 29724: : _Base(__m, std::move(__rv)) 29724: { } 29724: 29724: 29724: vector(vector&& __rv, const allocator_type& __m, false_type) 29724: : _Base(__m) 29724: { 29724: if (__rv.get_allocator() == __m) 29724: this->_M_impl._M_swap_data(__rv._M_impl); 29724: else if (!__rv.empty()) 29724: { 29724: this->_M_create_storage(__rv.size()); 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_move_a(__rv.begin(), __rv.end(), 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); 29724: __rv.clear(); 29724: } 29724: } 29724: 29724: public: 29724: 29724: 29724: vector(vector&& __rv, const __type_identity_t& __m) 29724: noexcept( noexcept( 29724: vector(std::declval(), std::declval(), 29724: std::declval())) ) 29724: : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) 29724: { } 29724: # 677 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector(initializer_list __l, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_range_initialize(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: } 29724: # 704 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template> 29724: 29724: vector(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_range_initialize(__first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: # 732 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: ~vector() noexcept 29724: { 29724: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: ; 29724: } 29724: # 749 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector& 29724: operator=(const vector& __x); 29724: # 764 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector& 29724: operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) 29724: { 29724: constexpr bool __move_storage = 29724: _Alloc_traits::_S_propagate_on_move_assign() 29724: || _Alloc_traits::_S_always_equal(); 29724: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 29724: return *this; 29724: } 29724: # 786 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: vector& 29724: operator=(initializer_list __l) 29724: { 29724: this->_M_assign_aux(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: return *this; 29724: } 29724: # 806 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: assign(size_type __n, const value_type& __val) 29724: { _M_fill_assign(__n, __val); } 29724: # 824 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template> 29724: 29724: void 29724: assign(_InputIterator __first, _InputIterator __last) 29724: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29724: # 853 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: assign(initializer_list __l) 29724: { 29724: this->_M_assign_aux(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: } 29724: 29724: 29724: 29724: using _Base::get_allocator; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: begin() noexcept 29724: { return iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: end() noexcept 29724: { return iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: end() const noexcept 29724: { return const_iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(this->_M_impl._M_start); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cend() const noexcept 29724: { return const_iterator(this->_M_impl._M_finish); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: size() const noexcept 29724: { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: max_size() const noexcept 29724: { return _S_max_size(_M_get_Tp_allocator()); } 29724: # 1011 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: resize(size_type __new_size) 29724: { 29724: if (__new_size > size()) 29724: _M_default_append(__new_size - size()); 29724: else if (__new_size < size()) 29724: _M_erase_at_end(this->_M_impl._M_start + __new_size); 29724: } 29724: # 1032 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: resize(size_type __new_size, const value_type& __x) 29724: { 29724: if (__new_size > size()) 29724: _M_fill_insert(end(), __new_size - size(), __x); 29724: else if (__new_size < size()) 29724: _M_erase_at_end(this->_M_impl._M_start + __new_size); 29724: } 29724: # 1066 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: shrink_to_fit() 29724: { _M_shrink_to_fit(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: capacity() const noexcept 29724: { 29724: return size_type(this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_start); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: bool 29724: empty() const noexcept 29724: { return begin() == end(); } 29724: # 1110 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: reserve(size_type __n); 29724: # 1126 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: operator[](size_type __n) noexcept 29724: { 29724: ; 29724: return *(this->_M_impl._M_start + __n); 29724: } 29724: # 1145 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: [[__nodiscard__]] 29724: const_reference 29724: operator[](size_type __n) const noexcept 29724: { 29724: ; 29724: return *(this->_M_impl._M_start + __n); 29724: } 29724: 29724: protected: 29724: 29724: 29724: void 29724: _M_range_check(size_type __n) const 29724: { 29724: if (__n >= this->size()) 29724: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29724: 29724: , 29724: __n, this->size()); 29724: } 29724: 29724: public: 29724: # 1178 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: at(size_type __n) 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: # 1197 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: [[__nodiscard__]] 29724: const_reference 29724: at(size_type __n) const 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: front() noexcept 29724: { 29724: ; 29724: return *begin(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: front() const noexcept 29724: { 29724: ; 29724: return *begin(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: back() noexcept 29724: { 29724: ; 29724: return *(end() - 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: back() const noexcept 29724: { 29724: ; 29724: return *(end() - 1); 29724: } 29724: # 1260 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: [[__nodiscard__]] 29724: _Tp* 29724: data() noexcept 29724: { return _M_data_ptr(this->_M_impl._M_start); } 29724: 29724: [[__nodiscard__]] 29724: const _Tp* 29724: data() const noexcept 29724: { return _M_data_ptr(this->_M_impl._M_start); } 29724: # 1281 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: push_back(const value_type& __x) 29724: { 29724: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: __x); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: } 29724: else 29724: _M_realloc_append(__x); 29724: } 29724: 29724: 29724: 29724: void 29724: push_back(value_type&& __x) 29724: { emplace_back(std::move(__x)); } 29724: 29724: template 29724: 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_back(_Args&&... __args); 29724: # 1322 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: pop_back() noexcept 29724: { 29724: ; 29724: --this->_M_impl._M_finish; 29724: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 29724: ; 29724: } 29724: # 1345 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template 29724: 29724: iterator 29724: emplace(const_iterator __position, _Args&&... __args) 29724: { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } 29724: # 1362 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: insert(const_iterator __position, const value_type& __x); 29724: # 1393 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return _M_insert_rval(__position, std::move(__x)); } 29724: # 1411 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: insert(const_iterator __position, initializer_list __l) 29724: { 29724: auto __offset = __position - cbegin(); 29724: _M_range_insert(begin() + __offset, __l.begin(), __l.end(), 29724: std::random_access_iterator_tag()); 29724: return begin() + __offset; 29724: } 29724: # 1437 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: insert(const_iterator __position, size_type __n, const value_type& __x) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_fill_insert(begin() + __offset, __n, __x); 29724: return begin() + __offset; 29724: } 29724: # 1480 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template> 29724: 29724: iterator 29724: insert(const_iterator __position, _InputIterator __first, 29724: _InputIterator __last) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_range_insert(begin() + __offset, __first, __last, 29724: std::__iterator_category(__first)); 29724: return begin() + __offset; 29724: } 29724: # 1533 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: 29724: erase(const_iterator __position) 29724: { return _M_erase(begin() + (__position - cbegin())); } 29724: # 1561 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: iterator 29724: 29724: erase(const_iterator __first, const_iterator __last) 29724: { 29724: const auto __beg = begin(); 29724: const auto __cbeg = cbegin(); 29724: return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); 29724: } 29724: # 1586 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: 29724: void 29724: swap(vector& __x) noexcept 29724: { 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) std::__glibcxx_assert_fail(); } while (false) 29724: ; 29724: 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 29724: __x._M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_erase_at_end(this->_M_impl._M_start); } 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: pointer 29724: _M_allocate_and_copy(size_type __n, 29724: _ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: pointer __result = this->_M_allocate(__n); 29724: try 29724: { 29724: std::__uninitialized_copy_a(__first, __last, __result, 29724: _M_get_Tp_allocator()); 29724: return __result; 29724: } 29724: catch(...) 29724: { 29724: _M_deallocate(__result, __n); 29724: throw; 29724: } 29724: } 29724: # 1666 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template 29724: 29724: void 29724: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: try { 29724: for (; __first != __last; ++__first) 29724: 29724: emplace_back(*__first); 29724: 29724: 29724: 29724: } catch(...) { 29724: clear(); 29724: throw; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: void 29724: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __n = std::distance(__first, __last); 29724: this->_M_impl._M_start 29724: = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); 29724: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_copy_a(__first, __last, 29724: this->_M_impl._M_start, 29724: _M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: _M_fill_initialize(size_type __n, const value_type& __value) 29724: { 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, 29724: _M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: _M_default_initialize(size_type __n) 29724: { 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, 29724: _M_get_Tp_allocator()); 29724: } 29724: # 1732 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template 29724: 29724: void 29724: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 29724: { _M_fill_assign(__n, __val); } 29724: 29724: 29724: template 29724: 29724: void 29724: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 29724: __false_type) 29724: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29724: 29724: 29724: template 29724: 29724: void 29724: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag); 29724: 29724: 29724: template 29724: 29724: void 29724: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag); 29724: 29724: 29724: 29724: 29724: void 29724: _M_fill_assign(size_type __n, const value_type& __val); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, 29724: __true_type) 29724: { _M_fill_insert(__pos, __n, __val); } 29724: 29724: 29724: template 29724: 29724: void 29724: _M_insert_dispatch(iterator __pos, _InputIterator __first, 29724: _InputIterator __last, __false_type) 29724: { 29724: _M_range_insert(__pos, __first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: 29724: template 29724: 29724: void 29724: _M_range_insert(iterator __pos, _InputIterator __first, 29724: _InputIterator __last, std::input_iterator_tag); 29724: 29724: 29724: template 29724: 29724: void 29724: _M_range_insert(iterator __pos, _ForwardIterator __first, 29724: _ForwardIterator __last, std::forward_iterator_tag); 29724: 29724: 29724: 29724: 29724: void 29724: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 29724: 29724: 29724: 29724: 29724: void 29724: _M_default_append(size_type __n); 29724: 29724: 29724: bool 29724: _M_shrink_to_fit(); 29724: # 1834 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: struct _Temporary_value 29724: { 29724: template 29724: explicit 29724: _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) 29724: { 29724: _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: ~_Temporary_value() 29724: { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } 29724: 29724: value_type& 29724: _M_val() noexcept { return _M_storage._M_val; } 29724: 29724: private: 29724: _Tp* 29724: _M_ptr() noexcept { return std::__addressof(_M_storage._M_val); } 29724: 29724: union _Storage 29724: { 29724: constexpr _Storage() : _M_byte() { } 29724: ~_Storage() { } 29724: _Storage& operator=(const _Storage&) = delete; 29724: unsigned char _M_byte; 29724: _Tp _M_val; 29724: }; 29724: 29724: vector* _M_this; 29724: _Storage _M_storage; 29724: }; 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: _M_insert_aux(iterator __position, _Arg&& __arg); 29724: 29724: template 29724: 29724: void 29724: _M_realloc_insert(iterator __position, _Args&&... __args); 29724: 29724: template 29724: 29724: void 29724: _M_realloc_append(_Args&&... __args); 29724: 29724: 29724: 29724: iterator 29724: _M_insert_rval(const_iterator __position, value_type&& __v); 29724: 29724: 29724: template 29724: 29724: iterator 29724: _M_emplace_aux(const_iterator __position, _Args&&... __args); 29724: 29724: 29724: 29724: iterator 29724: _M_emplace_aux(const_iterator __position, value_type&& __v) 29724: { return _M_insert_rval(__position, std::move(__v)); } 29724: 29724: 29724: 29724: 29724: size_type 29724: _M_check_len(size_type __n, const char* __s) const 29724: { 29724: if (max_size() - size() < __n) 29724: __throw_length_error((__s)); 29724: 29724: const size_type __len = size() + (std::max)(size(), __n); 29724: return (__len < size() || __len > max_size()) ? max_size() : __len; 29724: } 29724: 29724: 29724: static size_type 29724: _S_check_init_len(size_type __n, const allocator_type& __a) 29724: { 29724: if (__n > _S_max_size(_Tp_alloc_type(__a))) 29724: __throw_length_error( 29724: ("cannot create std::vector larger than max_size()")); 29724: return __n; 29724: } 29724: 29724: static size_type 29724: _S_max_size(const _Tp_alloc_type& __a) noexcept 29724: { 29724: 29724: 29724: 29724: const size_t __diffmax 29724: = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 29724: const size_t __allocmax = _Alloc_traits::max_size(__a); 29724: return (std::min)(__diffmax, __allocmax); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: _M_erase_at_end(pointer __pos) noexcept 29724: { 29724: if (size_type __n = this->_M_impl._M_finish - __pos) 29724: { 29724: std::_Destroy(__pos, this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish = __pos; 29724: ; 29724: } 29724: } 29724: 29724: 29724: iterator 29724: _M_erase(iterator __position); 29724: 29724: 29724: iterator 29724: _M_erase(iterator __first, iterator __last); 29724: 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: void 29724: _M_move_assign(vector&& __x, true_type) noexcept 29724: { 29724: vector __tmp(get_allocator()); 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: __tmp._M_impl._M_swap_data(__x._M_impl); 29724: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: _M_move_assign(vector&& __x, false_type) 29724: { 29724: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 29724: _M_move_assign(std::move(__x), true_type()); 29724: else 29724: { 29724: 29724: 29724: this->_M_assign_aux(std::make_move_iterator(__x.begin()), 29724: std::make_move_iterator(__x.end()), 29724: std::random_access_iterator_tag()); 29724: __x.clear(); 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: _Up* 29724: _M_data_ptr(_Up* __ptr) const noexcept 29724: { return __ptr; } 29724: 29724: 29724: template 29724: 29724: typename std::pointer_traits<_Ptr>::element_type* 29724: _M_data_ptr(_Ptr __ptr) const 29724: { return empty() ? nullptr : std::__to_address(__ptr); } 29724: # 2025 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: }; 29724: 29724: 29724: template::value_type, 29724: typename _Allocator = allocator<_ValT>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireAllocator<_Allocator>> 29724: vector(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29724: -> vector<_ValT, _Allocator>; 29724: # 2047 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return (__x.size() == __y.size() 29724: && std::equal(__x.begin(), __x.end(), __y.begin())); } 29724: # 2087 "/usr/include/c++/14/bits/stl_vector.h" 3 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return std::lexicographical_compare(__x.begin(), __x.end(), 29724: __y.begin(), __y.end()); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: 29724: inline void 29724: swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: namespace __detail::__variant 29724: { 29724: template struct _Never_valueless_alt; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : std::is_nothrow_move_assignable> 29724: { }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 67 "/usr/include/c++/14/vector" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_bvector.h" 1 3 29724: # 68 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: typedef unsigned long _Bit_type; 29724: enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; 29724: 29724: __attribute__((__nonnull__)) 29724: 29724: void 29724: __fill_bvector_n(_Bit_type*, size_t, bool) noexcept; 29724: 29724: 29724: 29724: struct _Bit_reference 29724: { 29724: _Bit_type * _M_p; 29724: _Bit_type _M_mask; 29724: 29724: 29724: _Bit_reference(_Bit_type * __x, _Bit_type __y) 29724: : _M_p(__x), _M_mask(__y) { } 29724: 29724: 29724: _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } 29724: 29724: 29724: _Bit_reference(const _Bit_reference&) = default; 29724: 29724: 29724: [[__nodiscard__]] 29724: operator bool() const noexcept 29724: { return !!(*_M_p & _M_mask); } 29724: 29724: 29724: _Bit_reference& 29724: operator=(bool __x) noexcept 29724: { 29724: if (__x) 29724: *_M_p |= _M_mask; 29724: else 29724: *_M_p &= ~_M_mask; 29724: return *this; 29724: } 29724: # 125 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: _Bit_reference& 29724: operator=(const _Bit_reference& __x) noexcept 29724: { return *this = bool(__x); } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: operator==(const _Bit_reference& __x) const 29724: { return bool(*this) == bool(__x); } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: operator<(const _Bit_reference& __x) const 29724: { return !bool(*this) && bool(__x); } 29724: 29724: 29724: void 29724: flip() noexcept 29724: { *_M_p ^= _M_mask; } 29724: 29724: 29724: 29724: friend void 29724: swap(_Bit_reference __x, _Bit_reference __y) noexcept 29724: { 29724: bool __tmp = __x; 29724: __x = __y; 29724: __y = __tmp; 29724: } 29724: 29724: 29724: friend void 29724: swap(_Bit_reference __x, bool& __y) noexcept 29724: { 29724: bool __tmp = __x; 29724: __x = __y; 29724: __y = __tmp; 29724: } 29724: 29724: 29724: friend void 29724: swap(bool& __x, _Bit_reference __y) noexcept 29724: { 29724: bool __tmp = __x; 29724: __x = __y; 29724: __y = __tmp; 29724: } 29724: 29724: }; 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: struct _Bit_iterator_base 29724: : public std::iterator 29724: { 29724: _Bit_type * _M_p; 29724: unsigned int _M_offset; 29724: 29724: inline __attribute__((__always_inline__)) 29724: void 29724: _M_assume_normalized() const 29724: { 29724: 29724: unsigned int __ofst = _M_offset; 29724: __attribute__ ((__assume__ (__ofst < unsigned(_S_word_bit)))); 29724: 29724: } 29724: 29724: 29724: _Bit_iterator_base(_Bit_type * __x, unsigned int __y) 29724: : _M_p(__x), _M_offset(__y) { } 29724: 29724: 29724: void 29724: _M_bump_up() 29724: { 29724: _M_assume_normalized(); 29724: if (_M_offset++ == int(_S_word_bit) - 1) 29724: { 29724: _M_offset = 0; 29724: ++_M_p; 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_bump_down() 29724: { 29724: _M_assume_normalized(); 29724: if (_M_offset-- == 0) 29724: { 29724: _M_offset = int(_S_word_bit) - 1; 29724: --_M_p; 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_incr(ptrdiff_t __i) 29724: { 29724: _M_assume_normalized(); 29724: difference_type __n = __i + _M_offset; 29724: _M_p += __n / int(_S_word_bit); 29724: __n = __n % int(_S_word_bit); 29724: if (__n < 0) 29724: { 29724: __n += int(_S_word_bit); 29724: --_M_p; 29724: } 29724: _M_offset = static_cast(__n); 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { 29724: __x._M_assume_normalized(); 29724: __y._M_assume_normalized(); 29724: return __x._M_p == __y._M_p && __x._M_offset == __y._M_offset; 29724: } 29724: # 260 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { 29724: __x._M_assume_normalized(); 29724: __y._M_assume_normalized(); 29724: return __x._M_p < __y._M_p 29724: || (__x._M_p == __y._M_p && __x._M_offset < __y._M_offset); 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { return !(__x == __y); } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { return __y < __x; } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator<=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { return !(__y < __x); } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator>=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: friend ptrdiff_t 29724: operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29724: { 29724: __x._M_assume_normalized(); 29724: __y._M_assume_normalized(); 29724: return (int(_S_word_bit) * (__x._M_p - __y._M_p) 29724: + __x._M_offset - __y._M_offset); 29724: } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: struct _Bit_iterator : public _Bit_iterator_base 29724: { 29724: typedef _Bit_reference reference; 29724: 29724: 29724: 29724: typedef _Bit_reference* pointer; 29724: 29724: typedef _Bit_iterator iterator; 29724: 29724: 29724: _Bit_iterator() : _Bit_iterator_base(0, 0) { } 29724: 29724: 29724: _Bit_iterator(_Bit_type * __x, unsigned int __y) 29724: : _Bit_iterator_base(__x, __y) { } 29724: 29724: 29724: iterator 29724: _M_const_cast() const 29724: { return *this; } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator*() const 29724: { 29724: _M_assume_normalized(); 29724: return reference(_M_p, 1UL << _M_offset); 29724: } 29724: 29724: 29724: iterator& 29724: operator++() 29724: { 29724: _M_bump_up(); 29724: return *this; 29724: } 29724: 29724: 29724: iterator 29724: operator++(int) 29724: { 29724: iterator __tmp = *this; 29724: _M_bump_up(); 29724: return __tmp; 29724: } 29724: 29724: 29724: iterator& 29724: operator--() 29724: { 29724: _M_bump_down(); 29724: return *this; 29724: } 29724: 29724: 29724: iterator 29724: operator--(int) 29724: { 29724: iterator __tmp = *this; 29724: _M_bump_down(); 29724: return __tmp; 29724: } 29724: 29724: 29724: iterator& 29724: operator+=(difference_type __i) 29724: { 29724: _M_incr(__i); 29724: return *this; 29724: } 29724: 29724: 29724: iterator& 29724: operator-=(difference_type __i) 29724: { 29724: *this += -__i; 29724: return *this; 29724: } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator[](difference_type __i) const 29724: { return *(*this + __i); } 29724: 29724: [[__nodiscard__]] 29724: friend iterator 29724: operator+(const iterator& __x, difference_type __n) 29724: { 29724: iterator __tmp = __x; 29724: __tmp += __n; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend iterator 29724: operator+(difference_type __n, const iterator& __x) 29724: { return __x + __n; } 29724: 29724: [[__nodiscard__]] 29724: friend iterator 29724: operator-(const iterator& __x, difference_type __n) 29724: { 29724: iterator __tmp = __x; 29724: __tmp -= __n; 29724: return __tmp; 29724: } 29724: }; 29724: 29724: struct _Bit_const_iterator : public _Bit_iterator_base 29724: { 29724: typedef bool reference; 29724: typedef bool const_reference; 29724: 29724: 29724: 29724: typedef const bool* pointer; 29724: 29724: typedef _Bit_const_iterator const_iterator; 29724: 29724: 29724: _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } 29724: 29724: 29724: _Bit_const_iterator(_Bit_type * __x, unsigned int __y) 29724: : _Bit_iterator_base(__x, __y) { } 29724: 29724: 29724: _Bit_const_iterator(const _Bit_iterator& __x) 29724: : _Bit_iterator_base(__x._M_p, __x._M_offset) { } 29724: 29724: 29724: _Bit_iterator 29724: _M_const_cast() const 29724: { return _Bit_iterator(_M_p, _M_offset); } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: operator*() const 29724: { 29724: _M_assume_normalized(); 29724: return _Bit_reference(_M_p, 1UL << _M_offset); 29724: } 29724: 29724: 29724: const_iterator& 29724: operator++() 29724: { 29724: _M_bump_up(); 29724: return *this; 29724: } 29724: 29724: 29724: const_iterator 29724: operator++(int) 29724: { 29724: const_iterator __tmp = *this; 29724: _M_bump_up(); 29724: return __tmp; 29724: } 29724: 29724: 29724: const_iterator& 29724: operator--() 29724: { 29724: _M_bump_down(); 29724: return *this; 29724: } 29724: 29724: 29724: const_iterator 29724: operator--(int) 29724: { 29724: const_iterator __tmp = *this; 29724: _M_bump_down(); 29724: return __tmp; 29724: } 29724: 29724: 29724: const_iterator& 29724: operator+=(difference_type __i) 29724: { 29724: _M_incr(__i); 29724: return *this; 29724: } 29724: 29724: 29724: const_iterator& 29724: operator-=(difference_type __i) 29724: { 29724: *this += -__i; 29724: return *this; 29724: } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: operator[](difference_type __i) const 29724: { return *(*this + __i); } 29724: 29724: [[__nodiscard__]] 29724: friend const_iterator 29724: operator+(const const_iterator& __x, difference_type __n) 29724: { 29724: const_iterator __tmp = __x; 29724: __tmp += __n; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend const_iterator 29724: operator-(const const_iterator& __x, difference_type __n) 29724: { 29724: const_iterator __tmp = __x; 29724: __tmp -= __n; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend const_iterator 29724: operator+(difference_type __n, const const_iterator& __x) 29724: { return __x + __n; } 29724: }; 29724: 29724: template 29724: struct _Bvector_base 29724: { 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Bit_type>::other _Bit_alloc_type; 29724: typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> 29724: _Bit_alloc_traits; 29724: typedef typename _Bit_alloc_traits::pointer _Bit_pointer; 29724: 29724: struct _Bvector_impl_data 29724: { 29724: 29724: _Bit_iterator _M_start; 29724: # 547 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: _Bit_iterator _M_finish; 29724: _Bit_pointer _M_end_of_storage; 29724: 29724: 29724: _Bvector_impl_data() noexcept 29724: : _M_start(), _M_finish(), _M_end_of_storage() 29724: { } 29724: 29724: 29724: _Bvector_impl_data(const _Bvector_impl_data&) = default; 29724: 29724: _Bvector_impl_data& 29724: operator=(const _Bvector_impl_data&) = default; 29724: 29724: 29724: _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept 29724: : _Bvector_impl_data(__x) 29724: { __x._M_reset(); } 29724: 29724: 29724: void 29724: _M_move_data(_Bvector_impl_data&& __x) noexcept 29724: { 29724: *this = __x; 29724: __x._M_reset(); 29724: } 29724: 29724: 29724: 29724: void 29724: _M_reset() noexcept 29724: { *this = _Bvector_impl_data(); } 29724: 29724: 29724: void 29724: _M_swap_data(_Bvector_impl_data& __x) noexcept 29724: { 29724: 29724: 29724: std::swap(*this, __x); 29724: } 29724: }; 29724: 29724: struct _Bvector_impl 29724: : public _Bit_alloc_type, public _Bvector_impl_data 29724: { 29724: 29724: _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) 29724: 29724: 29724: 29724: 29724: : _Bit_alloc_type() 29724: { } 29724: 29724: 29724: _Bvector_impl(const _Bit_alloc_type& __a) noexcept 29724: : _Bit_alloc_type(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: _Bvector_impl(_Bvector_impl&& __x) noexcept 29724: : _Bit_alloc_type(std::move(__x)), _Bvector_impl_data(std::move(__x)) 29724: { } 29724: 29724: 29724: _Bvector_impl(_Bit_alloc_type&& __a, _Bvector_impl&& __x) noexcept 29724: : _Bit_alloc_type(std::move(__a)), _Bvector_impl_data(std::move(__x)) 29724: { } 29724: 29724: 29724: 29724: _Bit_type* 29724: _M_end_addr() const noexcept 29724: { 29724: if (this->_M_end_of_storage) 29724: return std::__addressof(this->_M_end_of_storage[-1]) + 1; 29724: return 0; 29724: } 29724: }; 29724: 29724: public: 29724: typedef _Alloc allocator_type; 29724: 29724: 29724: _Bit_alloc_type& 29724: _M_get_Bit_allocator() noexcept 29724: { return this->_M_impl; } 29724: 29724: 29724: const _Bit_alloc_type& 29724: _M_get_Bit_allocator() const noexcept 29724: { return this->_M_impl; } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_get_Bit_allocator()); } 29724: 29724: 29724: _Bvector_base() = default; 29724: 29724: 29724: 29724: 29724: 29724: _Bvector_base(const allocator_type& __a) 29724: : _M_impl(_Bit_alloc_type(__a)) { } 29724: 29724: 29724: _Bvector_base(_Bvector_base&&) = default; 29724: 29724: 29724: _Bvector_base(_Bvector_base&& __x, const allocator_type& __a) noexcept 29724: : _M_impl(_Bit_alloc_type(__a), std::move(__x._M_impl)) 29724: { } 29724: 29724: 29724: 29724: ~_Bvector_base() 29724: { this->_M_deallocate(); } 29724: 29724: protected: 29724: _Bvector_impl _M_impl; 29724: 29724: 29724: _Bit_pointer 29724: _M_allocate(size_t __n) 29724: { 29724: _Bit_pointer __p = _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); 29724: # 688 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: return __p; 29724: } 29724: 29724: 29724: void 29724: _M_deallocate() 29724: { 29724: if (_M_impl._M_start._M_p) 29724: { 29724: const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; 29724: _Bit_alloc_traits::deallocate(_M_impl, 29724: _M_impl._M_end_of_storage - __n, 29724: __n); 29724: _M_impl._M_reset(); 29724: } 29724: } 29724: 29724: 29724: 29724: void 29724: _M_move_data(_Bvector_base&& __x) noexcept 29724: { _M_impl._M_move_data(std::move(__x._M_impl)); } 29724: 29724: 29724: constexpr 29724: static size_t 29724: _S_nword(size_t __n) 29724: { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } 29724: }; 29724: # 739 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: template 29724: class vector : protected _Bvector_base<_Alloc> 29724: { 29724: typedef _Bvector_base<_Alloc> _Base; 29724: typedef typename _Base::_Bit_pointer _Bit_pointer; 29724: typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; 29724: 29724: 29724: friend struct std::hash; 29724: 29724: 29724: public: 29724: typedef bool value_type; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Bit_reference reference; 29724: typedef bool const_reference; 29724: typedef _Bit_reference* pointer; 29724: typedef const bool* const_pointer; 29724: typedef _Bit_iterator iterator; 29724: typedef _Bit_const_iterator const_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef _Alloc allocator_type; 29724: 29724: 29724: allocator_type 29724: get_allocator() const 29724: { return _Base::get_allocator(); } 29724: 29724: protected: 29724: using _Base::_M_allocate; 29724: using _Base::_M_deallocate; 29724: using _Base::_S_nword; 29724: using _Base::_M_get_Bit_allocator; 29724: 29724: public: 29724: 29724: vector() = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: vector(const allocator_type& __a) 29724: : _Base(__a) { } 29724: 29724: 29724: 29724: explicit 29724: vector(size_type __n, const allocator_type& __a = allocator_type()) 29724: : vector(__n, false, __a) 29724: { } 29724: 29724: 29724: vector(size_type __n, const bool& __value, 29724: const allocator_type& __a = allocator_type()) 29724: 29724: 29724: 29724: 29724: 29724: : _Base(__a) 29724: { 29724: _M_initialize(__n); 29724: _M_initialize_value(__value); 29724: } 29724: 29724: 29724: vector(const vector& __x) 29724: : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) 29724: { 29724: const_iterator __xbegin = __x.begin(), __xend = __x.end(); 29724: _M_initialize(__x.size()); 29724: _M_copy_aligned(__xbegin, __xend, begin()); 29724: } 29724: 29724: 29724: vector(vector&&) = default; 29724: 29724: private: 29724: 29724: vector(vector&& __x, const allocator_type& __a, true_type) noexcept 29724: : _Base(std::move(__x), __a) 29724: { } 29724: 29724: 29724: vector(vector&& __x, const allocator_type& __a, false_type) 29724: : _Base(__a) 29724: { 29724: if (__x.get_allocator() == __a) 29724: this->_M_move_data(std::move(__x)); 29724: else 29724: { 29724: _M_initialize(__x.size()); 29724: _M_copy_aligned(__x.begin(), __x.end(), begin()); 29724: __x.clear(); 29724: } 29724: } 29724: 29724: public: 29724: 29724: vector(vector&& __x, const __type_identity_t& __a) 29724: noexcept(_Bit_alloc_traits::_S_always_equal()) 29724: : vector(std::move(__x), __a, 29724: typename _Bit_alloc_traits::is_always_equal{}) 29724: { } 29724: 29724: 29724: vector(const vector& __x, const __type_identity_t& __a) 29724: : _Base(__a) 29724: { 29724: _M_initialize(__x.size()); 29724: _M_copy_aligned(__x.begin(), __x.end(), begin()); 29724: } 29724: 29724: 29724: vector(initializer_list __l, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_initialize_range(__l.begin(), __l.end(), 29724: random_access_iterator_tag()); 29724: } 29724: 29724: 29724: 29724: template> 29724: 29724: vector(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(__a) 29724: { 29724: _M_initialize_range(__first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: # 889 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: ~vector() noexcept { } 29724: 29724: 29724: vector& 29724: operator=(const vector& __x) 29724: { 29724: if (&__x == this) 29724: return *this; 29724: 29724: if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) 29724: { 29724: this->_M_deallocate(); 29724: std::__alloc_on_copy(_M_get_Bit_allocator(), 29724: __x._M_get_Bit_allocator()); 29724: _M_initialize(__x.size()); 29724: } 29724: else 29724: std::__alloc_on_copy(_M_get_Bit_allocator(), 29724: __x._M_get_Bit_allocator()); 29724: } 29724: 29724: if (__x.size() > capacity()) 29724: { 29724: this->_M_deallocate(); 29724: _M_initialize(__x.size()); 29724: } 29724: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 29724: begin()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: vector& 29724: operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) 29724: { 29724: if (_Bit_alloc_traits::_S_propagate_on_move_assign() 29724: || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) 29724: { 29724: this->_M_deallocate(); 29724: this->_M_move_data(std::move(__x)); 29724: std::__alloc_on_move(_M_get_Bit_allocator(), 29724: __x._M_get_Bit_allocator()); 29724: } 29724: else 29724: { 29724: if (__x.size() > capacity()) 29724: { 29724: this->_M_deallocate(); 29724: _M_initialize(__x.size()); 29724: } 29724: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 29724: begin()); 29724: __x.clear(); 29724: } 29724: return *this; 29724: } 29724: 29724: 29724: vector& 29724: operator=(initializer_list __l) 29724: { 29724: this->assign(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: assign(size_type __n, const bool& __x) 29724: { _M_fill_assign(__n, __x); } 29724: 29724: 29724: template> 29724: 29724: void 29724: assign(_InputIterator __first, _InputIterator __last) 29724: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29724: # 987 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: void 29724: assign(initializer_list __l) 29724: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: begin() noexcept 29724: { return iterator(this->_M_impl._M_start._M_p, 0); } 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: end() noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: end() const noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(end()); } 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(begin()); } 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cend() const noexcept 29724: { return this->_M_impl._M_finish; } 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: size() const noexcept 29724: { return size_type(end() - begin()); } 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: max_size() const noexcept 29724: { 29724: const size_type __isize = 29724: __gnu_cxx::__numeric_traits::__max 29724: - int(_S_word_bit) + 1; 29724: const size_type __asize 29724: = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); 29724: return (__asize <= __isize / int(_S_word_bit) 29724: ? __asize * int(_S_word_bit) : __isize); 29724: } 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: capacity() const noexcept 29724: { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) 29724: - begin()); } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: empty() const noexcept 29724: { return begin() == end(); } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator[](size_type __n) 29724: { return begin()[__n]; } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: operator[](size_type __n) const 29724: { return begin()[__n]; } 29724: 29724: protected: 29724: 29724: void 29724: _M_range_check(size_type __n) const 29724: { 29724: if (__n >= this->size()) 29724: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29724: 29724: , 29724: __n, this->size()); 29724: } 29724: 29724: public: 29724: [[__nodiscard__]] 29724: reference 29724: at(size_type __n) 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: at(size_type __n) const 29724: { 29724: _M_range_check(__n); 29724: return (*this)[__n]; 29724: } 29724: 29724: 29724: void 29724: reserve(size_type __n) 29724: { 29724: if (__n > max_size()) 29724: __throw_length_error(("vector::reserve")); 29724: if (capacity() < __n) 29724: _M_reallocate(__n); 29724: } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: front() 29724: { return *begin(); } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: front() const 29724: { return *begin(); } 29724: 29724: [[__nodiscard__]] 29724: reference 29724: back() 29724: { return *(end() - 1); } 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: back() const 29724: { return *(end() - 1); } 29724: 29724: 29724: void 29724: push_back(bool __x) 29724: { 29724: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 29724: *this->_M_impl._M_finish++ = __x; 29724: else 29724: _M_insert_aux(end(), __x); 29724: } 29724: 29724: 29724: void 29724: swap(vector& __x) noexcept 29724: { 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(_Bit_alloc_traits::propagate_on_container_swap::value || _M_get_Bit_allocator() == __x._M_get_Bit_allocator())) std::__glibcxx_assert_fail(); } while (false) 29724: ; 29724: 29724: this->_M_impl._M_swap_data(__x._M_impl); 29724: _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), 29724: __x._M_get_Bit_allocator()); 29724: } 29724: 29724: 29724: 29724: static void 29724: swap(reference __x, reference __y) noexcept 29724: { 29724: bool __tmp = __x; 29724: __x = __y; 29724: __y = __tmp; 29724: } 29724: 29724: 29724: iterator 29724: 29724: insert(const_iterator __position, const bool& __x) 29724: 29724: 29724: 29724: { 29724: const difference_type __n = __position - begin(); 29724: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() 29724: && __position == end()) 29724: *this->_M_impl._M_finish++ = __x; 29724: else 29724: _M_insert_aux(__position._M_const_cast(), __x); 29724: return begin() + __n; 29724: } 29724: 29724: 29724: __attribute__ ((__deprecated__ ("use '" "insert(position, false)" "' instead"))) 29724: iterator 29724: insert(const_iterator __position) 29724: { return this->insert(__position._M_const_cast(), false); } 29724: 29724: 29724: 29724: template> 29724: 29724: iterator 29724: insert(const_iterator __position, 29724: _InputIterator __first, _InputIterator __last) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_insert_range(__position._M_const_cast(), 29724: __first, __last, 29724: std::__iterator_category(__first)); 29724: return begin() + __offset; 29724: } 29724: # 1237 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: iterator 29724: insert(const_iterator __position, size_type __n, const bool& __x) 29724: { 29724: difference_type __offset = __position - cbegin(); 29724: _M_fill_insert(__position._M_const_cast(), __n, __x); 29724: return begin() + __offset; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: insert(const_iterator __p, initializer_list __l) 29724: { return this->insert(__p, __l.begin(), __l.end()); } 29724: 29724: 29724: 29724: void 29724: pop_back() 29724: { --this->_M_impl._M_finish; } 29724: 29724: 29724: iterator 29724: 29724: erase(const_iterator __position) 29724: 29724: 29724: 29724: { return _M_erase(__position._M_const_cast()); } 29724: 29724: 29724: iterator 29724: 29724: erase(const_iterator __first, const_iterator __last) 29724: 29724: 29724: 29724: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 29724: 29724: 29724: void 29724: resize(size_type __new_size, bool __x = bool()) 29724: { 29724: if (__new_size < size()) 29724: _M_erase_at_end(begin() + difference_type(__new_size)); 29724: else 29724: insert(end(), __new_size - size(), __x); 29724: } 29724: 29724: 29724: 29724: void 29724: shrink_to_fit() 29724: { _M_shrink_to_fit(); } 29724: 29724: 29724: 29724: void 29724: flip() noexcept 29724: { 29724: _Bit_type * const __end = this->_M_impl._M_end_addr(); 29724: for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) 29724: *__p = ~*__p; 29724: } 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_erase_at_end(begin()); } 29724: 29724: 29724: template 29724: 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_back(_Args&&... __args) 29724: { 29724: push_back(bool(std::forward<_Args>(__args)...)); 29724: 29724: return back(); 29724: 29724: } 29724: 29724: template 29724: 29724: iterator 29724: emplace(const_iterator __pos, _Args&&... __args) 29724: { return insert(__pos, bool(std::forward<_Args>(__args)...)); } 29724: 29724: 29724: protected: 29724: 29724: 29724: iterator 29724: _M_copy_aligned(const_iterator __first, const_iterator __last, 29724: iterator __result) 29724: { 29724: _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); 29724: return std::copy(const_iterator(__last._M_p, 0), __last, 29724: iterator(__q, 0)); 29724: } 29724: 29724: 29724: void 29724: _M_initialize(size_type __n) 29724: { 29724: if (__n) 29724: { 29724: _Bit_pointer __q = this->_M_allocate(__n); 29724: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 29724: iterator __start = iterator(std::__addressof(*__q), 0); 29724: this->_M_impl._M_start = __start; 29724: this->_M_impl._M_finish = __start + difference_type(__n); 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_initialize_value(bool __x) noexcept 29724: { 29724: if (_Bit_type* __p = this->_M_impl._M_start._M_p) 29724: __fill_bvector_n(__p, this->_M_impl._M_end_addr() - __p, __x); 29724: } 29724: 29724: 29724: void 29724: _M_reallocate(size_type __n); 29724: 29724: 29724: 29724: bool 29724: _M_shrink_to_fit(); 29724: # 1398 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: template 29724: 29724: void 29724: _M_initialize_range(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: for (; __first != __last; ++__first) 29724: push_back(*__first); 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __n = std::distance(__first, __last); 29724: _M_initialize(__n); 29724: std::copy(__first, __last, begin()); 29724: } 29724: # 1434 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: void 29724: _M_fill_assign(size_t __n, bool __x) 29724: { 29724: if (__n > size()) 29724: { 29724: _M_initialize_value(__x); 29724: insert(end(), __n - size(), __x); 29724: } 29724: else 29724: { 29724: _M_erase_at_end(begin() + __n); 29724: _M_initialize_value(__x); 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: iterator __cur = begin(); 29724: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 29724: *__cur = *__first; 29724: if (__first == __last) 29724: _M_erase_at_end(__cur); 29724: else 29724: insert(end(), __first, __last); 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __len = std::distance(__first, __last); 29724: if (__len < size()) 29724: _M_erase_at_end(std::copy(__first, __last, begin())); 29724: else 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, size()); 29724: std::copy(__first, __mid, begin()); 29724: insert(end(), __mid, __last); 29724: } 29724: } 29724: # 1501 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: 29724: void 29724: _M_fill_insert(iterator __position, size_type __n, bool __x); 29724: 29724: template 29724: 29724: void 29724: _M_insert_range(iterator __pos, _InputIterator __first, 29724: _InputIterator __last, std::input_iterator_tag) 29724: { 29724: for (; __first != __last; ++__first) 29724: { 29724: __pos = insert(__pos, *__first); 29724: ++__pos; 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: _M_insert_range(iterator __position, _ForwardIterator __first, 29724: _ForwardIterator __last, std::forward_iterator_tag); 29724: 29724: 29724: void 29724: _M_insert_aux(iterator __position, bool __x); 29724: 29724: 29724: size_type 29724: _M_check_len(size_type __n, const char* __s) const 29724: { 29724: if (max_size() - size() < __n) 29724: __throw_length_error((__s)); 29724: 29724: const size_type __len = size() + std::max(size(), __n); 29724: return (__len < size() || __len > max_size()) ? max_size() : __len; 29724: } 29724: 29724: 29724: void 29724: _M_erase_at_end(iterator __pos) 29724: { this->_M_impl._M_finish = __pos; } 29724: 29724: 29724: iterator 29724: _M_erase(iterator __pos); 29724: 29724: 29724: iterator 29724: _M_erase(iterator __first, iterator __last); 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void data() = delete; 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: inline void 29724: __fill_bvector(_Bit_type* __v, unsigned int __first, unsigned int __last, 29724: bool __x) noexcept 29724: { 29724: const _Bit_type __fmask = ~0ul << __first; 29724: const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); 29724: const _Bit_type __mask = __fmask & __lmask; 29724: 29724: if (__x) 29724: *__v |= __mask; 29724: else 29724: *__v &= ~__mask; 29724: } 29724: 29724: 29724: __attribute__((__nonnull__)) 29724: 29724: inline void 29724: __fill_bvector_n(_Bit_type* __p, size_t __n, bool __x) noexcept 29724: { 29724: # 1597 "/usr/include/c++/14/bits/stl_bvector.h" 3 29724: __builtin_memset(__p, __x ? ~0 : 0, __n * sizeof(_Bit_type)); 29724: } 29724: 29724: 29724: 29724: inline void 29724: __fill_a1(std::_Bit_iterator __first, 29724: std::_Bit_iterator __last, const bool& __x) 29724: { 29724: if (__first._M_p != __last._M_p) 29724: { 29724: _Bit_type* __first_p = __first._M_p; 29724: if (__first._M_offset != 0) 29724: __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); 29724: 29724: __fill_bvector_n(__first_p, __last._M_p - __first_p, __x); 29724: 29724: if (__last._M_offset != 0) 29724: __fill_bvector(__last._M_p, 0, __last._M_offset, __x); 29724: } 29724: else if (__first._M_offset != __last._M_offset) 29724: __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: struct hash> 29724: : public __hash_base> 29724: { 29724: size_t 29724: operator()(const std::vector&) const noexcept; 29724: }; 29724: 29724: 29724: 29724: } 29724: # 68 "/usr/include/c++/14/vector" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/vector.tcc" 1 3 29724: # 59 "/usr/include/c++/14/bits/vector.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: reserve(size_type __n) 29724: { 29724: if (__n > this->max_size()) 29724: __throw_length_error(("vector::reserve")); 29724: if (this->capacity() < __n) 29724: { 29724: const size_type __old_size = size(); 29724: pointer __tmp; 29724: 29724: if constexpr (_S_use_relocate()) 29724: { 29724: __tmp = this->_M_allocate(__n); 29724: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 29724: __tmp, _M_get_Tp_allocator()); 29724: } 29724: else 29724: 29724: { 29724: __tmp = _M_allocate_and_copy(__n, 29724: std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), 29724: std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); 29724: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: } 29724: ; 29724: _M_deallocate(this->_M_impl._M_start, 29724: this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_start); 29724: this->_M_impl._M_start = __tmp; 29724: this->_M_impl._M_finish = __tmp + __old_size; 29724: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29724: } 29724: } 29724: 29724: 29724: template 29724: template 29724: 29724: 29724: typename vector<_Tp, _Alloc>::reference 29724: 29724: 29724: 29724: vector<_Tp, _Alloc>:: 29724: emplace_back(_Args&&... __args) 29724: { 29724: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: std::forward<_Args>(__args)...); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: } 29724: else 29724: _M_realloc_append(std::forward<_Args>(__args)...); 29724: 29724: return back(); 29724: 29724: } 29724: 29724: 29724: template 29724: 29724: typename vector<_Tp, _Alloc>::iterator 29724: vector<_Tp, _Alloc>:: 29724: 29724: insert(const_iterator __position, const value_type& __x) 29724: 29724: 29724: 29724: { 29724: const size_type __n = __position - begin(); 29724: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__position != const_iterator())) std::__glibcxx_assert_fail(); } while (false); 29724: if (!(__position != const_iterator())) 29724: __builtin_unreachable(); 29724: 29724: if (__position == end()) 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: __x); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: } 29724: else 29724: { 29724: 29724: const auto __pos = begin() + (__position - cbegin()); 29724: 29724: 29724: _Temporary_value __x_copy(this, __x); 29724: _M_insert_aux(__pos, std::move(__x_copy._M_val())); 29724: 29724: 29724: 29724: } 29724: } 29724: else 29724: 29724: _M_realloc_insert(begin() + (__position - cbegin()), __x); 29724: 29724: 29724: 29724: 29724: return iterator(this->_M_impl._M_start + __n); 29724: } 29724: 29724: template 29724: 29724: typename vector<_Tp, _Alloc>::iterator 29724: vector<_Tp, _Alloc>:: 29724: _M_erase(iterator __position) 29724: { 29724: if (__position + 1 != end()) 29724: std::move(__position + 1, end(), __position); 29724: --this->_M_impl._M_finish; 29724: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 29724: ; 29724: return __position; 29724: } 29724: 29724: template 29724: 29724: typename vector<_Tp, _Alloc>::iterator 29724: vector<_Tp, _Alloc>:: 29724: _M_erase(iterator __first, iterator __last) 29724: { 29724: if (__first != __last) 29724: { 29724: if (__last != end()) 29724: std::move(__last, end(), __first); 29724: _M_erase_at_end(__first.base() + (end() - __last)); 29724: } 29724: return __first; 29724: } 29724: 29724: template 29724: 29724: vector<_Tp, _Alloc>& 29724: vector<_Tp, _Alloc>:: 29724: operator=(const vector<_Tp, _Alloc>& __x) 29724: { 29724: if (std::__addressof(__x) != this) 29724: { 29724: ; 29724: 29724: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: if (!_Alloc_traits::_S_always_equal() 29724: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 29724: { 29724: 29724: this->clear(); 29724: _M_deallocate(this->_M_impl._M_start, 29724: this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_start); 29724: this->_M_impl._M_start = nullptr; 29724: this->_M_impl._M_finish = nullptr; 29724: this->_M_impl._M_end_of_storage = nullptr; 29724: } 29724: std::__alloc_on_copy(_M_get_Tp_allocator(), 29724: __x._M_get_Tp_allocator()); 29724: } 29724: 29724: const size_type __xlen = __x.size(); 29724: if (__xlen > capacity()) 29724: { 29724: pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), 29724: __x.end()); 29724: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: _M_deallocate(this->_M_impl._M_start, 29724: this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_start); 29724: this->_M_impl._M_start = __tmp; 29724: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; 29724: } 29724: else if (size() >= __xlen) 29724: { 29724: std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), 29724: end(), _M_get_Tp_allocator()); 29724: } 29724: else 29724: { 29724: std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), 29724: this->_M_impl._M_start); 29724: std::__uninitialized_copy_a(__x._M_impl._M_start + size(), 29724: __x._M_impl._M_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: } 29724: this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_fill_assign(size_t __n, const value_type& __val) 29724: { 29724: const size_type __sz = size(); 29724: if (__n > capacity()) 29724: { 29724: if (__n <= __sz) 29724: __builtin_unreachable(); 29724: vector __tmp(__n, __val, _M_get_Tp_allocator()); 29724: __tmp._M_impl._M_swap_data(this->_M_impl); 29724: } 29724: else if (__n > __sz) 29724: { 29724: std::fill(begin(), end(), __val); 29724: const size_type __add = __n - __sz; 29724: ; 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 29724: __add, __val, _M_get_Tp_allocator()); 29724: ; 29724: } 29724: else 29724: _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29724: std::input_iterator_tag) 29724: { 29724: pointer __cur(this->_M_impl._M_start); 29724: for (; __first != __last && __cur != this->_M_impl._M_finish; 29724: ++__cur, (void)++__first) 29724: *__cur = *__first; 29724: if (__first == __last) 29724: _M_erase_at_end(__cur); 29724: else 29724: _M_range_insert(end(), __first, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29724: std::forward_iterator_tag) 29724: { 29724: const size_type __sz = size(); 29724: const size_type __len = std::distance(__first, __last); 29724: 29724: if (__len > capacity()) 29724: { 29724: if (__len <= __sz) 29724: __builtin_unreachable(); 29724: 29724: _S_check_init_len(__len, _M_get_Tp_allocator()); 29724: pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); 29724: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: ; 29724: _M_deallocate(this->_M_impl._M_start, 29724: this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_start); 29724: this->_M_impl._M_start = __tmp; 29724: this->_M_impl._M_finish = this->_M_impl._M_start + __len; 29724: this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; 29724: } 29724: else if (__sz >= __len) 29724: _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); 29724: else 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, __sz); 29724: std::copy(__first, __mid, this->_M_impl._M_start); 29724: const size_type __attribute__((__unused__)) __n = __len - __sz; 29724: ; 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_copy_a(__mid, __last, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: ; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: auto 29724: vector<_Tp, _Alloc>:: 29724: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator 29724: { 29724: const auto __n = __position - cbegin(); 29724: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29724: if (__position == cend()) 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: std::move(__v)); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: } 29724: else 29724: _M_insert_aux(begin() + __n, std::move(__v)); 29724: else 29724: _M_realloc_insert(begin() + __n, std::move(__v)); 29724: 29724: return iterator(this->_M_impl._M_start + __n); 29724: } 29724: 29724: template 29724: template 29724: 29724: auto 29724: vector<_Tp, _Alloc>:: 29724: _M_emplace_aux(const_iterator __position, _Args&&... __args) 29724: -> iterator 29724: { 29724: const auto __n = __position - cbegin(); 29724: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29724: if (__position == cend()) 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: std::forward<_Args>(__args)...); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: _Temporary_value __tmp(this, std::forward<_Args>(__args)...); 29724: _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); 29724: } 29724: else 29724: _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); 29724: 29724: return iterator(this->_M_impl._M_start + __n); 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_insert_aux(iterator __position, _Arg&& __arg) 29724: 29724: 29724: 29724: 29724: 29724: 29724: { 29724: ; 29724: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29724: std::move(*(this->_M_impl._M_finish - 1))); 29724: ++this->_M_impl._M_finish; 29724: ; 29724: 29724: 29724: 29724: std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) 29724: 29724: ; 29724: 29724: 29724: 29724: *__position = std::forward<_Arg>(__arg); 29724: 29724: } 29724: 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_realloc_insert(iterator __position, _Args&&... __args) 29724: 29724: 29724: 29724: 29724: 29724: 29724: { 29724: const size_type __len = _M_check_len(1u, "vector::_M_realloc_insert"); 29724: if (__len <= 0) 29724: __builtin_unreachable (); 29724: pointer __old_start = this->_M_impl._M_start; 29724: pointer __old_finish = this->_M_impl._M_finish; 29724: const size_type __elems_before = __position - begin(); 29724: pointer __new_start(this->_M_allocate(__len)); 29724: pointer __new_finish(__new_start); 29724: 29724: 29724: struct _Guard 29724: { 29724: pointer _M_storage; 29724: size_type _M_len; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29724: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard() 29724: { 29724: if (_M_storage) 29724: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29724: deallocate(_M_alloc, _M_storage, _M_len); 29724: } 29724: 29724: private: 29724: _Guard(const _Guard&); 29724: }; 29724: 29724: { 29724: _Guard __guard(__new_start, __len, _M_impl); 29724: # 505 "/usr/include/c++/14/bits/vector.tcc" 3 29724: _Alloc_traits::construct(this->_M_impl, 29724: std::__to_address(__new_start + __elems_before), 29724: std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if constexpr (_S_use_relocate()) 29724: { 29724: 29724: __new_finish = _S_relocate(__old_start, __position.base(), 29724: __new_start, _M_get_Tp_allocator()); 29724: ++__new_finish; 29724: __new_finish = _S_relocate(__position.base(), __old_finish, 29724: __new_finish, _M_get_Tp_allocator()); 29724: } 29724: else 29724: 29724: { 29724: 29724: struct _Guard_elts 29724: { 29724: pointer _M_first, _M_last; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 29724: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard_elts() 29724: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29724: 29724: private: 29724: _Guard_elts(const _Guard_elts&); 29724: }; 29724: 29724: 29724: _Guard_elts __guard_elts(__new_start + __elems_before, _M_impl); 29724: 29724: __new_finish = std::__uninitialized_move_if_noexcept_a( 29724: __old_start, __position.base(), 29724: __new_start, _M_get_Tp_allocator()); 29724: 29724: ++__new_finish; 29724: 29724: __guard_elts._M_first = __new_start; 29724: 29724: __new_finish = std::__uninitialized_move_if_noexcept_a( 29724: __position.base(), __old_finish, 29724: __new_finish, _M_get_Tp_allocator()); 29724: 29724: 29724: __guard_elts._M_first = __old_start; 29724: __guard_elts._M_last = __old_finish; 29724: } 29724: __guard._M_storage = __old_start; 29724: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29724: } 29724: 29724: 29724: 29724: this->_M_impl._M_start = __new_start; 29724: this->_M_impl._M_finish = __new_finish; 29724: this->_M_impl._M_end_of_storage = __new_start + __len; 29724: } 29724: 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_realloc_append(_Args&&... __args) 29724: 29724: 29724: 29724: 29724: 29724: 29724: { 29724: const size_type __len = _M_check_len(1u, "vector::_M_realloc_append"); 29724: if (__len <= 0) 29724: __builtin_unreachable (); 29724: pointer __old_start = this->_M_impl._M_start; 29724: pointer __old_finish = this->_M_impl._M_finish; 29724: const size_type __elems = end() - begin(); 29724: pointer __new_start(this->_M_allocate(__len)); 29724: pointer __new_finish(__new_start); 29724: 29724: 29724: struct _Guard 29724: { 29724: pointer _M_storage; 29724: size_type _M_len; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29724: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard() 29724: { 29724: if (_M_storage) 29724: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29724: deallocate(_M_alloc, _M_storage, _M_len); 29724: } 29724: 29724: private: 29724: _Guard(const _Guard&); 29724: }; 29724: 29724: { 29724: _Guard __guard(__new_start, __len, _M_impl); 29724: # 634 "/usr/include/c++/14/bits/vector.tcc" 3 29724: _Alloc_traits::construct(this->_M_impl, 29724: std::__to_address(__new_start + __elems), 29724: std::forward<_Args>(__args)...); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if constexpr (_S_use_relocate()) 29724: { 29724: 29724: __new_finish = _S_relocate(__old_start, __old_finish, 29724: __new_start, _M_get_Tp_allocator()); 29724: ++__new_finish; 29724: } 29724: else 29724: 29724: { 29724: 29724: struct _Guard_elts 29724: { 29724: pointer _M_first, _M_last; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 29724: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard_elts() 29724: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29724: 29724: private: 29724: _Guard_elts(const _Guard_elts&); 29724: }; 29724: 29724: 29724: _Guard_elts __guard_elts(__new_start + __elems, _M_impl); 29724: 29724: __new_finish = std::__uninitialized_move_if_noexcept_a( 29724: __old_start, __old_finish, 29724: __new_start, _M_get_Tp_allocator()); 29724: 29724: ++__new_finish; 29724: 29724: 29724: __guard_elts._M_first = __old_start; 29724: __guard_elts._M_last = __old_finish; 29724: } 29724: __guard._M_storage = __old_start; 29724: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29724: } 29724: 29724: 29724: 29724: this->_M_impl._M_start = __new_start; 29724: this->_M_impl._M_finish = __new_finish; 29724: this->_M_impl._M_end_of_storage = __new_start + __len; 29724: } 29724: 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) 29724: { 29724: if (__n != 0) 29724: { 29724: if (size_type(this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_finish) >= __n) 29724: { 29724: 29724: 29724: 29724: _Temporary_value __tmp(this, __x); 29724: value_type& __x_copy = __tmp._M_val(); 29724: 29724: const size_type __elems_after = end() - __position; 29724: pointer __old_finish(this->_M_impl._M_finish); 29724: if (__elems_after > __n) 29724: { 29724: ; 29724: std::__uninitialized_move_a(__old_finish - __n, 29724: __old_finish, 29724: __old_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish += __n; 29724: ; 29724: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 29724: ; 29724: std::fill(__position.base(), __position.base() + __n, 29724: __x_copy); 29724: } 29724: else 29724: { 29724: ; 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_fill_n_a(__old_finish, 29724: __n - __elems_after, 29724: __x_copy, 29724: _M_get_Tp_allocator()); 29724: ; 29724: std::__uninitialized_move_a(__position.base(), __old_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish += __elems_after; 29724: ; 29724: std::fill(__position.base(), __old_finish, __x_copy); 29724: } 29724: } 29724: else 29724: { 29724: 29724: 29724: pointer __old_start = this->_M_impl._M_start; 29724: pointer __old_finish = this->_M_impl._M_finish; 29724: const pointer __pos = __position.base(); 29724: 29724: const size_type __len = 29724: _M_check_len(__n, "vector::_M_fill_insert"); 29724: const size_type __elems_before = __pos - __old_start; 29724: pointer __new_start(this->_M_allocate(__len)); 29724: pointer __new_finish(__new_start); 29724: try 29724: { 29724: 29724: std::__uninitialized_fill_n_a(__new_start + __elems_before, 29724: __n, __x, 29724: _M_get_Tp_allocator()); 29724: __new_finish = pointer(); 29724: 29724: __new_finish 29724: = std::__uninitialized_move_if_noexcept_a 29724: (__old_start, __pos, __new_start, _M_get_Tp_allocator()); 29724: 29724: __new_finish += __n; 29724: 29724: __new_finish 29724: = std::__uninitialized_move_if_noexcept_a 29724: (__pos, __old_finish, __new_finish, _M_get_Tp_allocator()); 29724: } 29724: catch(...) 29724: { 29724: if (!__new_finish) 29724: std::_Destroy(__new_start + __elems_before, 29724: __new_start + __elems_before + __n, 29724: _M_get_Tp_allocator()); 29724: else 29724: std::_Destroy(__new_start, __new_finish, 29724: _M_get_Tp_allocator()); 29724: _M_deallocate(__new_start, __len); 29724: throw; 29724: } 29724: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 29724: ; 29724: _M_deallocate(__old_start, 29724: this->_M_impl._M_end_of_storage - __old_start); 29724: this->_M_impl._M_start = __new_start; 29724: this->_M_impl._M_finish = __new_finish; 29724: this->_M_impl._M_end_of_storage = __new_start + __len; 29724: } 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_default_append(size_type __n) 29724: { 29724: if (__n != 0) 29724: { 29724: const size_type __size = size(); 29724: size_type __navail = size_type(this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_finish); 29724: 29724: if (__size > max_size() || __navail > max_size() - __size) 29724: __builtin_unreachable(); 29724: 29724: if (__navail >= __n) 29724: { 29724: ; 29724: this->_M_impl._M_finish = 29724: std::__uninitialized_default_n_a(this->_M_impl._M_finish, 29724: __n, _M_get_Tp_allocator()); 29724: ; 29724: } 29724: else 29724: { 29724: 29724: 29724: pointer __old_start = this->_M_impl._M_start; 29724: pointer __old_finish = this->_M_impl._M_finish; 29724: 29724: const size_type __len = 29724: _M_check_len(__n, "vector::_M_default_append"); 29724: pointer __new_start(this->_M_allocate(__len)); 29724: 29724: 29724: struct _Guard 29724: { 29724: pointer _M_storage; 29724: size_type _M_len; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29724: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard() 29724: { 29724: if (_M_storage) 29724: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29724: deallocate(_M_alloc, _M_storage, _M_len); 29724: } 29724: 29724: private: 29724: _Guard(const _Guard&); 29724: }; 29724: 29724: { 29724: _Guard __guard(__new_start, __len, _M_impl); 29724: 29724: std::__uninitialized_default_n_a(__new_start + __size, __n, 29724: _M_get_Tp_allocator()); 29724: 29724: if constexpr (_S_use_relocate()) 29724: { 29724: _S_relocate(__old_start, __old_finish, 29724: __new_start, _M_get_Tp_allocator()); 29724: } 29724: else 29724: { 29724: 29724: struct _Guard_elts 29724: { 29724: pointer _M_first, _M_last; 29724: _Tp_alloc_type& _M_alloc; 29724: 29724: 29724: _Guard_elts(pointer __first, size_type __n, 29724: _Tp_alloc_type& __a) 29724: : _M_first(__first), _M_last(__first + __n), _M_alloc(__a) 29724: { } 29724: 29724: 29724: ~_Guard_elts() 29724: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29724: 29724: private: 29724: _Guard_elts(const _Guard_elts&); 29724: }; 29724: _Guard_elts __guard_elts(__new_start + __size, __n, _M_impl); 29724: 29724: std::__uninitialized_move_if_noexcept_a( 29724: __old_start, __old_finish, __new_start, 29724: _M_get_Tp_allocator()); 29724: 29724: __guard_elts._M_first = __old_start; 29724: __guard_elts._M_last = __old_finish; 29724: } 29724: ; 29724: __guard._M_storage = __old_start; 29724: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29724: } 29724: 29724: 29724: 29724: this->_M_impl._M_start = __new_start; 29724: this->_M_impl._M_finish = __new_start + __size + __n; 29724: this->_M_impl._M_end_of_storage = __new_start + __len; 29724: } 29724: } 29724: } 29724: 29724: template 29724: 29724: bool 29724: vector<_Tp, _Alloc>:: 29724: _M_shrink_to_fit() 29724: { 29724: if (capacity() == size()) 29724: return false; 29724: ; 29724: return std::__shrink_to_fit_aux::_S_do_it(*this); 29724: } 29724: 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_range_insert(iterator __pos, _InputIterator __first, 29724: _InputIterator __last, std::input_iterator_tag) 29724: { 29724: if (__pos == end()) 29724: { 29724: for (; __first != __last; ++__first) 29724: insert(end(), *__first); 29724: } 29724: else if (__first != __last) 29724: { 29724: vector __tmp(__first, __last, _M_get_Tp_allocator()); 29724: insert(__pos, 29724: std::make_move_iterator(__tmp.begin()), 29724: std::make_move_iterator(__tmp.end())); 29724: } 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: vector<_Tp, _Alloc>:: 29724: _M_range_insert(iterator __position, _ForwardIterator __first, 29724: _ForwardIterator __last, std::forward_iterator_tag) 29724: { 29724: if (__first != __last) 29724: { 29724: const size_type __n = std::distance(__first, __last); 29724: if (size_type(this->_M_impl._M_end_of_storage 29724: - this->_M_impl._M_finish) >= __n) 29724: { 29724: const size_type __elems_after = end() - __position; 29724: pointer __old_finish(this->_M_impl._M_finish); 29724: if (__elems_after > __n) 29724: { 29724: ; 29724: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 29724: this->_M_impl._M_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish += __n; 29724: ; 29724: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 29724: ; 29724: std::copy(__first, __last, __position); 29724: } 29724: else 29724: { 29724: _ForwardIterator __mid = __first; 29724: std::advance(__mid, __elems_after); 29724: ; 29724: std::__uninitialized_copy_a(__mid, __last, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish += __n - __elems_after; 29724: ; 29724: std::__uninitialized_move_a(__position.base(), 29724: __old_finish, 29724: this->_M_impl._M_finish, 29724: _M_get_Tp_allocator()); 29724: this->_M_impl._M_finish += __elems_after; 29724: ; 29724: std::copy(__first, __mid, __position); 29724: } 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: pointer __old_start = this->_M_impl._M_start; 29724: pointer __old_finish = this->_M_impl._M_finish; 29724: 29724: const size_type __len = 29724: _M_check_len(__n, "vector::_M_range_insert"); 29724: 29724: 29724: 29724: 29724: 29724: pointer __new_start(this->_M_allocate(__len)); 29724: pointer __new_finish(__new_start); 29724: try 29724: { 29724: __new_finish 29724: = std::__uninitialized_move_if_noexcept_a 29724: (__old_start, __position.base(), 29724: __new_start, _M_get_Tp_allocator()); 29724: __new_finish 29724: = std::__uninitialized_copy_a(__first, __last, 29724: __new_finish, 29724: _M_get_Tp_allocator()); 29724: __new_finish 29724: = std::__uninitialized_move_if_noexcept_a 29724: (__position.base(), __old_finish, 29724: __new_finish, _M_get_Tp_allocator()); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__new_start, __new_finish, 29724: _M_get_Tp_allocator()); 29724: _M_deallocate(__new_start, __len); 29724: throw; 29724: } 29724: std::_Destroy(__old_start, __old_finish, 29724: _M_get_Tp_allocator()); 29724: ; 29724: _M_deallocate(__old_start, 29724: this->_M_impl._M_end_of_storage - __old_start); 29724: this->_M_impl._M_start = __new_start; 29724: this->_M_impl._M_finish = __new_finish; 29724: this->_M_impl._M_end_of_storage = __new_start + __len; 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: vector:: 29724: _M_reallocate(size_type __n) 29724: { 29724: _Bit_pointer __q = this->_M_allocate(__n); 29724: iterator __start(std::__addressof(*__q), 0); 29724: iterator __finish(_M_copy_aligned(begin(), end(), __start)); 29724: this->_M_deallocate(); 29724: this->_M_impl._M_start = __start; 29724: this->_M_impl._M_finish = __finish; 29724: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 29724: } 29724: 29724: template 29724: 29724: void 29724: vector:: 29724: _M_fill_insert(iterator __position, size_type __n, bool __x) 29724: { 29724: if (__n == 0) 29724: return; 29724: if (capacity() - size() >= __n) 29724: { 29724: std::copy_backward(__position, end(), 29724: this->_M_impl._M_finish + difference_type(__n)); 29724: std::fill(__position, __position + difference_type(__n), __x); 29724: this->_M_impl._M_finish += difference_type(__n); 29724: } 29724: else 29724: { 29724: const size_type __len = 29724: _M_check_len(__n, "vector::_M_fill_insert"); 29724: _Bit_pointer __q = this->_M_allocate(__len); 29724: iterator __start(std::__addressof(*__q), 0); 29724: iterator __i = _M_copy_aligned(begin(), __position, __start); 29724: std::fill(__i, __i + difference_type(__n), __x); 29724: iterator __finish = std::copy(__position, end(), 29724: __i + difference_type(__n)); 29724: this->_M_deallocate(); 29724: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29724: this->_M_impl._M_start = __start; 29724: this->_M_impl._M_finish = __finish; 29724: } 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: vector:: 29724: _M_insert_range(iterator __position, _ForwardIterator __first, 29724: _ForwardIterator __last, std::forward_iterator_tag) 29724: { 29724: if (__first != __last) 29724: { 29724: size_type __n = std::distance(__first, __last); 29724: if (capacity() - size() >= __n) 29724: { 29724: std::copy_backward(__position, end(), 29724: this->_M_impl._M_finish 29724: + difference_type(__n)); 29724: std::copy(__first, __last, __position); 29724: this->_M_impl._M_finish += difference_type(__n); 29724: } 29724: else 29724: { 29724: const size_type __len = 29724: _M_check_len(__n, "vector::_M_insert_range"); 29724: const iterator __begin = begin(), __end = end(); 29724: _Bit_pointer __q = this->_M_allocate(__len); 29724: iterator __start(std::__addressof(*__q), 0); 29724: iterator __i = _M_copy_aligned(__begin, __position, __start); 29724: __i = std::copy(__first, __last, __i); 29724: iterator __finish = std::copy(__position, __end, __i); 29724: this->_M_deallocate(); 29724: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29724: this->_M_impl._M_start = __start; 29724: this->_M_impl._M_finish = __finish; 29724: } 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: vector:: 29724: _M_insert_aux(iterator __position, bool __x) 29724: { 29724: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 29724: { 29724: std::copy_backward(__position, this->_M_impl._M_finish, 29724: this->_M_impl._M_finish + 1); 29724: *__position = __x; 29724: ++this->_M_impl._M_finish; 29724: } 29724: else 29724: { 29724: const size_type __len = 29724: _M_check_len(size_type(1), "vector::_M_insert_aux"); 29724: _Bit_pointer __q = this->_M_allocate(__len); 29724: iterator __start(std::__addressof(*__q), 0); 29724: iterator __i = _M_copy_aligned(begin(), __position, __start); 29724: *__i++ = __x; 29724: iterator __finish = std::copy(__position, end(), __i); 29724: this->_M_deallocate(); 29724: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29724: this->_M_impl._M_start = __start; 29724: this->_M_impl._M_finish = __finish; 29724: } 29724: } 29724: 29724: template 29724: 29724: typename vector::iterator 29724: vector:: 29724: _M_erase(iterator __position) 29724: { 29724: if (__position + 1 != end()) 29724: std::copy(__position + 1, end(), __position); 29724: --this->_M_impl._M_finish; 29724: return __position; 29724: } 29724: 29724: template 29724: 29724: typename vector::iterator 29724: vector:: 29724: _M_erase(iterator __first, iterator __last) 29724: { 29724: if (__first != __last) 29724: _M_erase_at_end(std::copy(__last, end(), __first)); 29724: return __first; 29724: } 29724: 29724: 29724: template 29724: 29724: bool 29724: vector:: 29724: _M_shrink_to_fit() 29724: { 29724: if (capacity() - size() < int(_S_word_bit)) 29724: return false; 29724: try 29724: { 29724: if (size_type __n = size()) 29724: _M_reallocate(__n); 29724: else 29724: { 29724: this->_M_deallocate(); 29724: this->_M_impl._M_reset(); 29724: } 29724: return true; 29724: } 29724: catch(...) 29724: { return false; } 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: size_t 29724: hash>:: 29724: operator()(const std::vector& __b) const noexcept 29724: { 29724: size_t __hash = 0; 29724: const size_t __words = __b.size() / _S_word_bit; 29724: if (__words) 29724: { 29724: const size_t __clength = __words * sizeof(_Bit_type); 29724: __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); 29724: } 29724: 29724: const size_t __extrabits = __b.size() % _S_word_bit; 29724: if (__extrabits) 29724: { 29724: _Bit_type __hiword = *__b._M_impl._M_finish._M_p; 29724: __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); 29724: 29724: const size_t __clength 29724: = (__extrabits + 8 - 1) / 8; 29724: if (__words) 29724: __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); 29724: else 29724: __hash = std::_Hash_impl::hash(&__hiword, __clength); 29724: } 29724: 29724: return __hash; 29724: } 29724: 29724: 29724: } 29724: # 73 "/usr/include/c++/14/vector" 2 3 29724: # 84 "/usr/include/c++/14/vector" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 85 "/usr/include/c++/14/vector" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr { 29724: template 29724: using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 65 "/usr/include/c++/14/functional" 2 3 29724: # 1 "/usr/include/c++/14/array" 1 3 29724: # 32 "/usr/include/c++/14/array" 3 29724: 29724: # 33 "/usr/include/c++/14/array" 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/compare" 1 3 29724: # 33 "/usr/include/c++/14/compare" 3 29724: 29724: # 34 "/usr/include/c++/14/compare" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 37 "/usr/include/c++/14/compare" 2 3 29724: # 39 "/usr/include/c++/14/array" 2 3 29724: # 52 "/usr/include/c++/14/array" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 53 "/usr/include/c++/14/array" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: struct __array_traits 29724: { 29724: using _Type = _Tp[_Nm]; 29724: using _Is_swappable = __is_swappable<_Tp>; 29724: using _Is_nothrow_swappable = __is_nothrow_swappable<_Tp>; 29724: }; 29724: 29724: template 29724: struct __array_traits<_Tp, 0> 29724: { 29724: 29724: struct _Type 29724: { 29724: 29724: __attribute__((__always_inline__,__noreturn__)) 29724: _Tp& operator[](size_t) const noexcept { __builtin_trap(); } 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: constexpr explicit operator _Tp*() const noexcept { return nullptr; } 29724: }; 29724: 29724: using _Is_swappable = true_type; 29724: using _Is_nothrow_swappable = true_type; 29724: }; 29724: # 99 "/usr/include/c++/14/array" 3 29724: template 29724: struct array 29724: { 29724: typedef _Tp value_type; 29724: typedef value_type* pointer; 29724: typedef const value_type* const_pointer; 29724: typedef value_type& reference; 29724: typedef const value_type& const_reference; 29724: typedef value_type* iterator; 29724: typedef const value_type* const_iterator; 29724: typedef std::size_t size_type; 29724: typedef std::ptrdiff_t difference_type; 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: 29724: 29724: typename __array_traits<_Tp, _Nm>::_Type _M_elems; 29724: 29724: 29724: 29724: 29724: void 29724: fill(const value_type& __u) 29724: { std::fill_n(begin(), size(), __u); } 29724: 29724: void 29724: swap(array& __other) 29724: noexcept(__array_traits<_Tp, _Nm>::_Is_nothrow_swappable::value) 29724: { std::swap_ranges(begin(), end(), __other.begin()); } 29724: 29724: 29724: [[__gnu__::__const__, __nodiscard__]] 29724: constexpr iterator 29724: begin() noexcept 29724: { return iterator(data()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_iterator 29724: begin() const noexcept 29724: { return const_iterator(data()); } 29724: 29724: [[__gnu__::__const__, __nodiscard__]] 29724: constexpr iterator 29724: end() noexcept 29724: { return iterator(data() + _Nm); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_iterator 29724: end() const noexcept 29724: { return const_iterator(data() + _Nm); } 29724: 29724: [[__gnu__::__const__, __nodiscard__]] 29724: constexpr reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(end()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: [[__gnu__::__const__, __nodiscard__]] 29724: constexpr reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(begin()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(data()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_iterator 29724: cend() const noexcept 29724: { return const_iterator(data() + _Nm); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29724: constexpr size_type 29724: size() const noexcept { return _Nm; } 29724: 29724: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29724: constexpr size_type 29724: max_size() const noexcept { return _Nm; } 29724: 29724: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29724: constexpr bool 29724: empty() const noexcept { return size() == 0; } 29724: 29724: 29724: [[__nodiscard__]] 29724: constexpr reference 29724: operator[](size_type __n) noexcept 29724: { 29724: ; 29724: return _M_elems[__n]; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reference 29724: operator[](size_type __n) const noexcept 29724: { 29724: 29724: ; 29724: 29724: return _M_elems[__n]; 29724: } 29724: 29724: constexpr reference 29724: at(size_type __n) 29724: { 29724: if (__n >= _Nm) 29724: std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 29724: , 29724: __n, _Nm); 29724: return _M_elems[__n]; 29724: } 29724: 29724: constexpr const_reference 29724: at(size_type __n) const 29724: { 29724: 29724: 29724: return __n < _Nm ? _M_elems[__n] 29724: : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 29724: , 29724: __n, _Nm), 29724: _M_elems[__n]); 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr reference 29724: front() noexcept 29724: { 29724: ; 29724: return _M_elems[(size_type)0]; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reference 29724: front() const noexcept 29724: { 29724: 29724: ; 29724: 29724: return _M_elems[(size_type)0]; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr reference 29724: back() noexcept 29724: { 29724: ; 29724: return _M_elems[_Nm - 1]; 29724: } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_reference 29724: back() const noexcept 29724: { 29724: 29724: ; 29724: 29724: return _M_elems[_Nm - 1]; 29724: } 29724: 29724: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29724: constexpr pointer 29724: data() noexcept 29724: { return static_cast(_M_elems); } 29724: 29724: [[__nodiscard__]] 29724: constexpr const_pointer 29724: data() const noexcept 29724: { return static_cast(_M_elems); } 29724: }; 29724: 29724: 29724: template 29724: array(_Tp, _Up...) 29724: -> array && ...), _Tp>, 29724: 1 + sizeof...(_Up)>; 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29724: { return std::__equal_aux1(__one.begin(), __one.end(), __two.begin()); } 29724: # 328 "/usr/include/c++/14/array" 3 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29724: { return !(__one == __two); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 29724: { 29724: return std::lexicographical_compare(__a.begin(), __a.end(), 29724: __b.begin(), __b.end()); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29724: { return __two < __one; } 29724: 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29724: { return !(__one > __two); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: 29724: inline bool 29724: operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29724: { return !(__one < __two); } 29724: 29724: 29724: 29724: template 29724: 29724: inline 29724: 29724: 29724: __enable_if_t<__array_traits<_Tp, _Nm>::_Is_swappable::value> 29724: 29724: 29724: 29724: swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) 29724: noexcept(noexcept(__one.swap(__two))) 29724: { __one.swap(__two); } 29724: 29724: 29724: template 29724: __enable_if_t::_Is_swappable::value> 29724: swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: constexpr _Tp& 29724: get(array<_Tp, _Nm>& __arr) noexcept 29724: { 29724: static_assert(_Int < _Nm, "array index is within bounds"); 29724: return __arr._M_elems[_Int]; 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: constexpr _Tp&& 29724: get(array<_Tp, _Nm>&& __arr) noexcept 29724: { 29724: static_assert(_Int < _Nm, "array index is within bounds"); 29724: return std::move(std::get<_Int>(__arr)); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: constexpr const _Tp& 29724: get(const array<_Tp, _Nm>& __arr) noexcept 29724: { 29724: static_assert(_Int < _Nm, "array index is within bounds"); 29724: return __arr._M_elems[_Int]; 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: constexpr const _Tp&& 29724: get(const array<_Tp, _Nm>&& __arr) noexcept 29724: { 29724: static_assert(_Int < _Nm, "array index is within bounds"); 29724: return std::move(std::get<_Int>(__arr)); 29724: } 29724: # 490 "/usr/include/c++/14/array" 3 29724: template 29724: struct tuple_size> 29724: : public integral_constant { }; 29724: 29724: 29724: template 29724: struct tuple_element<_Ind, array<_Tp, _Nm>> 29724: { 29724: static_assert(_Ind < _Nm, "array index is in range"); 29724: using type = _Tp; 29724: }; 29724: 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> = _Nm; 29724: 29724: template 29724: inline constexpr size_t tuple_size_v> = _Nm; 29724: 29724: 29724: template 29724: struct __is_tuple_like_impl> : true_type 29724: { }; 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/functional" 2 3 29724: # 88 "/usr/include/c++/14/functional" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 89 "/usr/include/c++/14/functional" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template struct _Placeholder { }; 29724: # 115 "/usr/include/c++/14/functional" 3 29724: template 29724: inline invoke_result_t<_Callable, _Args...> 29724: invoke(_Callable&& __fn, _Args&&... __args) 29724: noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 29724: { 29724: return std::__invoke(std::forward<_Callable>(__fn), 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 148 "/usr/include/c++/14/functional" 3 29724: template::value> 29724: class _Mem_fn_base 29724: : public _Mem_fn_traits<_MemFunPtr>::__maybe_type 29724: { 29724: using _Traits = _Mem_fn_traits<_MemFunPtr>; 29724: 29724: using _Arity = typename _Traits::__arity; 29724: using _Varargs = typename _Traits::__vararg; 29724: 29724: template 29724: friend struct _Bind_check_arity; 29724: 29724: _MemFunPtr _M_pmf; 29724: 29724: public: 29724: 29724: using result_type = typename _Traits::__result_type; 29724: 29724: explicit constexpr 29724: _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } 29724: 29724: template 29724: 29724: auto 29724: operator()(_Args&&... __args) const 29724: noexcept(noexcept( 29724: std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) 29724: -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) 29724: { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } 29724: }; 29724: 29724: 29724: template 29724: class _Mem_fn_base<_MemObjPtr, false> 29724: { 29724: using _Arity = integral_constant; 29724: using _Varargs = false_type; 29724: 29724: template 29724: friend struct _Bind_check_arity; 29724: 29724: _MemObjPtr _M_pm; 29724: 29724: public: 29724: explicit constexpr 29724: _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } 29724: 29724: template 29724: 29724: auto 29724: operator()(_Tp&& __obj) const 29724: noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) 29724: -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) 29724: { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } 29724: }; 29724: 29724: template 29724: struct _Mem_fn; 29724: 29724: template 29724: struct _Mem_fn<_Res _Class::*> 29724: : _Mem_fn_base<_Res _Class::*> 29724: { 29724: using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; 29724: }; 29724: # 241 "/usr/include/c++/14/functional" 3 29724: template 29724: 29724: inline _Mem_fn<_Tp _Class::*> 29724: mem_fn(_Tp _Class::* __pm) noexcept 29724: { 29724: return _Mem_fn<_Tp _Class::*>(__pm); 29724: } 29724: # 260 "/usr/include/c++/14/functional" 3 29724: template 29724: struct is_bind_expression 29724: : public false_type { }; 29724: # 272 "/usr/include/c++/14/functional" 3 29724: template 29724: struct is_placeholder 29724: : public integral_constant 29724: { }; 29724: 29724: 29724: template inline constexpr bool is_bind_expression_v 29724: = is_bind_expression<_Tp>::value; 29724: template inline constexpr int is_placeholder_v 29724: = is_placeholder<_Tp>::value; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace placeholders 29724: { 29724: # 301 "/usr/include/c++/14/functional" 3 29724: inline const _Placeholder<1> _1; 29724: inline const _Placeholder<2> _2; 29724: inline const _Placeholder<3> _3; 29724: inline const _Placeholder<4> _4; 29724: inline const _Placeholder<5> _5; 29724: inline const _Placeholder<6> _6; 29724: inline const _Placeholder<7> _7; 29724: inline const _Placeholder<8> _8; 29724: inline const _Placeholder<9> _9; 29724: inline const _Placeholder<10> _10; 29724: inline const _Placeholder<11> _11; 29724: inline const _Placeholder<12> _12; 29724: inline const _Placeholder<13> _13; 29724: inline const _Placeholder<14> _14; 29724: inline const _Placeholder<15> _15; 29724: inline const _Placeholder<16> _16; 29724: inline const _Placeholder<17> _17; 29724: inline const _Placeholder<18> _18; 29724: inline const _Placeholder<19> _19; 29724: inline const _Placeholder<20> _20; 29724: inline const _Placeholder<21> _21; 29724: inline const _Placeholder<22> _22; 29724: inline const _Placeholder<23> _23; 29724: inline const _Placeholder<24> _24; 29724: inline const _Placeholder<25> _25; 29724: inline const _Placeholder<26> _26; 29724: inline const _Placeholder<27> _27; 29724: inline const _Placeholder<28> _28; 29724: inline const _Placeholder<29> _29; 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_placeholder<_Placeholder<_Num> > 29724: : public integral_constant 29724: { }; 29724: 29724: template 29724: struct is_placeholder > 29724: : public integral_constant 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: using _Safe_tuple_element_t 29724: = typename enable_if<(__i < tuple_size<_Tuple>::value), 29724: tuple_element<__i, _Tuple>>::type::type; 29724: # 369 "/usr/include/c++/14/functional" 3 29724: template::value, 29724: bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> 29724: class _Mu; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Mu, false, false> 29724: { 29724: public: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _Tp& 29724: operator()(_CVRef& __arg, _Tuple&) const volatile 29724: { return __arg.get(); } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Mu<_Arg, true, false> 29724: { 29724: public: 29724: template 29724: 29724: auto 29724: operator()(_CVArg& __arg, 29724: tuple<_Args...>& __tuple) const volatile 29724: -> decltype(__arg(declval<_Args>()...)) 29724: { 29724: 29724: typedef typename _Build_index_tuple::__type 29724: _Indexes; 29724: return this->__call(__arg, __tuple, _Indexes()); 29724: } 29724: 29724: private: 29724: 29724: 29724: template 29724: 29724: auto 29724: __call(_CVArg& __arg, tuple<_Args...>& __tuple, 29724: const _Index_tuple<_Indexes...>&) const volatile 29724: -> decltype(__arg(declval<_Args>()...)) 29724: { 29724: return __arg(std::get<_Indexes>(std::move(__tuple))...); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Mu<_Arg, false, true> 29724: { 29724: public: 29724: template 29724: 29724: _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& 29724: operator()(const volatile _Arg&, _Tuple& __tuple) const volatile 29724: { 29724: return 29724: ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Mu<_Arg, false, false> 29724: { 29724: public: 29724: template 29724: 29724: _CVArg&& 29724: operator()(_CVArg&& __arg, _Tuple&) const volatile 29724: { return std::forward<_CVArg>(__arg); } 29724: }; 29724: 29724: 29724: template 29724: inline auto 29724: __volget(volatile tuple<_Tp...>& __tuple) 29724: -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& 29724: { return std::get<_Ind>(const_cast&>(__tuple)); } 29724: 29724: 29724: template 29724: inline auto 29724: __volget(const volatile tuple<_Tp...>& __tuple) 29724: -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& 29724: { return std::get<_Ind>(const_cast&>(__tuple)); } 29724: # 494 "/usr/include/c++/14/functional" 3 29724: template 29724: class _Bind; 29724: 29724: template 29724: class _Bind<_Functor(_Bound_args...)> 29724: : public _Weak_result_type<_Functor> 29724: { 29724: typedef typename _Build_index_tuple::__type 29724: _Bound_indexes; 29724: 29724: _Functor _M_f; 29724: tuple<_Bound_args...> _M_bound_args; 29724: 29724: 29724: template 29724: 29724: _Result 29724: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 29724: { 29724: return std::__invoke(_M_f, 29724: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 29724: ); 29724: } 29724: 29724: 29724: template 29724: 29724: _Result 29724: __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 29724: { 29724: return std::__invoke(_M_f, 29724: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 29724: ); 29724: } 29724: 29724: 29724: 29724: template 29724: _Result 29724: __call_v(tuple<_Args...>&& __args, 29724: _Index_tuple<_Indexes...>) volatile 29724: { 29724: return std::__invoke(_M_f, 29724: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 29724: ); 29724: } 29724: 29724: 29724: template 29724: _Result 29724: __call_c_v(tuple<_Args...>&& __args, 29724: _Index_tuple<_Indexes...>) const volatile 29724: { 29724: return std::__invoke(_M_f, 29724: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 29724: ); 29724: } 29724: 29724: 29724: template 29724: using _Mu_type = decltype( 29724: _Mu::type>()( 29724: std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); 29724: 29724: template 29724: using _Res_type_impl 29724: = __invoke_result_t<_Fn&, _Mu_type<_BArgs, _CallArgs>&&...>; 29724: 29724: template 29724: using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; 29724: 29724: template 29724: using __dependent = typename 29724: enable_if::value+1), _Functor>::type; 29724: 29724: template class __cv_quals> 29724: using _Res_type_cv = _Res_type_impl< 29724: typename __cv_quals<__dependent<_CallArgs>>::type, 29724: _CallArgs, 29724: typename __cv_quals<_Bound_args>::type...>; 29724: 29724: public: 29724: template 29724: explicit 29724: _Bind(const _Functor& __f, _Args&&... __args) 29724: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: explicit 29724: _Bind(_Functor&& __f, _Args&&... __args) 29724: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: _Bind(const _Bind&) = default; 29724: _Bind(_Bind&&) = default; 29724: 29724: 29724: template>> 29724: 29724: _Result 29724: operator()(_Args&&... __args) 29724: { 29724: return this->__call<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: template, add_const>> 29724: 29724: _Result 29724: operator()(_Args&&... __args) const 29724: { 29724: return this->__call_c<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: 29724: template, add_volatile>> 29724: [[deprecated("std::bind does not support volatile in C++17")]] 29724: _Result 29724: operator()(_Args&&... __args) volatile 29724: { 29724: return this->__call_v<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: template, add_cv>> 29724: [[deprecated("std::bind does not support volatile in C++17")]] 29724: _Result 29724: operator()(_Args&&... __args) const volatile 29724: { 29724: return this->__call_c_v<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: }; 29724: 29724: 29724: template 29724: class _Bind_result; 29724: 29724: template 29724: class _Bind_result<_Result, _Functor(_Bound_args...)> 29724: { 29724: typedef typename _Build_index_tuple::__type 29724: _Bound_indexes; 29724: 29724: _Functor _M_f; 29724: tuple<_Bound_args...> _M_bound_args; 29724: 29724: 29724: template 29724: 29724: _Res 29724: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 29724: { 29724: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29724: (std::get<_Indexes>(_M_bound_args), __args)...); 29724: } 29724: 29724: 29724: template 29724: 29724: _Res 29724: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 29724: { 29724: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29724: (std::get<_Indexes>(_M_bound_args), __args)...); 29724: } 29724: 29724: 29724: 29724: template 29724: _Res 29724: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 29724: { 29724: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29724: (__volget<_Indexes>(_M_bound_args), __args)...); 29724: } 29724: 29724: 29724: template 29724: _Res 29724: __call(tuple<_Args...>&& __args, 29724: _Index_tuple<_Indexes...>) const volatile 29724: { 29724: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29724: (__volget<_Indexes>(_M_bound_args), __args)...); 29724: } 29724: 29724: 29724: public: 29724: typedef _Result result_type; 29724: 29724: template 29724: explicit 29724: _Bind_result(const _Functor& __f, _Args&&... __args) 29724: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: explicit 29724: _Bind_result(_Functor&& __f, _Args&&... __args) 29724: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: _Bind_result(const _Bind_result&) = default; 29724: _Bind_result(_Bind_result&&) = default; 29724: 29724: 29724: template 29724: 29724: result_type 29724: operator()(_Args&&... __args) 29724: { 29724: return this->__call<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: template 29724: 29724: result_type 29724: operator()(_Args&&... __args) const 29724: { 29724: return this->__call<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: 29724: template 29724: [[deprecated("std::bind does not support volatile in C++17")]] 29724: result_type 29724: operator()(_Args&&... __args) volatile 29724: { 29724: return this->__call<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: template 29724: [[deprecated("std::bind does not support volatile in C++17")]] 29724: result_type 29724: operator()(_Args&&... __args) const volatile 29724: { 29724: return this->__call<_Result>( 29724: std::forward_as_tuple(std::forward<_Args>(__args)...), 29724: _Bound_indexes()); 29724: } 29724: 29724: 29724: 29724: 29724: }; 29724: # 771 "/usr/include/c++/14/functional" 3 29724: template 29724: struct is_bind_expression<_Bind<_Signature> > 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression > 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression > 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression> 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression<_Bind_result<_Result, _Signature>> 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression> 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression> 29724: : public true_type { }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct is_bind_expression> 29724: : public true_type { }; 29724: 29724: template 29724: struct _Bind_check_arity { }; 29724: 29724: template 29724: struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> 29724: { 29724: static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), 29724: "Wrong number of arguments for function"); 29724: }; 29724: 29724: template 29724: struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> 29724: { 29724: static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), 29724: "Wrong number of arguments for function"); 29724: }; 29724: 29724: template 29724: struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> 29724: { 29724: using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; 29724: using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; 29724: static_assert(_Varargs::value 29724: ? sizeof...(_BoundArgs) >= _Arity::value + 1 29724: : sizeof...(_BoundArgs) == _Arity::value + 1, 29724: "Wrong number of arguments for pointer-to-member"); 29724: }; 29724: 29724: 29724: 29724: 29724: template::type> 29724: using __is_socketlike = __or_, is_enum<_Tp2>>; 29724: 29724: template 29724: struct _Bind_helper 29724: : _Bind_check_arity::type, _BoundArgs...> 29724: { 29724: typedef typename decay<_Func>::type __func_type; 29724: typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Bind_helper 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline typename 29724: _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type 29724: bind(_Func&& __f, _BoundArgs&&... __args) 29724: { 29724: typedef _Bind_helper __helper_type; 29724: return typename __helper_type::type(std::forward<_Func>(__f), 29724: std::forward<_BoundArgs>(__args)...); 29724: } 29724: 29724: template 29724: struct _Bindres_helper 29724: : _Bind_check_arity::type, _BoundArgs...> 29724: { 29724: typedef typename decay<_Func>::type __functor_type; 29724: typedef _Bind_result<_Result, 29724: __functor_type(typename decay<_BoundArgs>::type...)> 29724: type; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline 29724: typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type 29724: bind(_Func&& __f, _BoundArgs&&... __args) 29724: { 29724: typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; 29724: return typename __helper_type::type(std::forward<_Func>(__f), 29724: std::forward<_BoundArgs>(__args)...); 29724: } 29724: # 1121 "/usr/include/c++/14/functional" 3 29724: template 29724: class _Not_fn 29724: { 29724: template 29724: using __inv_res_t = typename __invoke_result<_Fn2, _Args...>::type; 29724: 29724: template 29724: static decltype(!std::declval<_Tp>()) 29724: _S_not() noexcept(noexcept(!std::declval<_Tp>())); 29724: 29724: public: 29724: template 29724: constexpr 29724: _Not_fn(_Fn2&& __fn, int) 29724: : _M_fn(std::forward<_Fn2>(__fn)) { } 29724: 29724: _Not_fn(const _Not_fn& __fn) = default; 29724: _Not_fn(_Not_fn&& __fn) = default; 29724: ~_Not_fn() = default; 29724: # 1161 "/usr/include/c++/14/functional" 3 29724: template::value>> decltype(_S_not<__inv_res_t<_Fn &, _Args...>>()) operator()(_Args&&... __args) & noexcept(__is_nothrow_invocable<_Fn &, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn &, _Args...>>())) { return !std::__invoke(std::forward< _Fn & >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) & = delete; 29724: template::value>> decltype(_S_not<__inv_res_t<_Fn const &, _Args...>>()) operator()(_Args&&... __args) const & noexcept(__is_nothrow_invocable<_Fn const &, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn const &, _Args...>>())) { return !std::__invoke(std::forward< _Fn const & >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) const & = delete; 29724: template::value>> decltype(_S_not<__inv_res_t<_Fn &&, _Args...>>()) operator()(_Args&&... __args) && noexcept(__is_nothrow_invocable<_Fn &&, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn &&, _Args...>>())) { return !std::__invoke(std::forward< _Fn && >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) && = delete; 29724: template::value>> decltype(_S_not<__inv_res_t<_Fn const &&, _Args...>>()) operator()(_Args&&... __args) const && noexcept(__is_nothrow_invocable<_Fn const &&, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn const &&, _Args...>>())) { return !std::__invoke(std::forward< _Fn const && >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) const && = delete; 29724: 29724: 29724: private: 29724: _Fn _M_fn; 29724: }; 29724: 29724: template 29724: struct __is_byte_like : false_type { }; 29724: 29724: template 29724: struct __is_byte_like<_Tp, equal_to<_Tp>> 29724: : __bool_constant::value> { }; 29724: 29724: template 29724: struct __is_byte_like<_Tp, equal_to> 29724: : __bool_constant::value> { }; 29724: 29724: 29724: 29724: enum class byte : unsigned char; 29724: 29724: template<> 29724: struct __is_byte_like> 29724: : true_type { }; 29724: 29724: template<> 29724: struct __is_byte_like> 29724: : true_type { }; 29724: # 1209 "/usr/include/c++/14/functional" 3 29724: template 29724: 29724: inline auto 29724: not_fn(_Fn&& __fn) 29724: noexcept(std::is_nothrow_constructible, _Fn&&>::value) 29724: { 29724: return _Not_fn>{std::forward<_Fn>(__fn), 0}; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: class default_searcher 29724: { 29724: public: 29724: 29724: default_searcher(_ForwardIterator1 __pat_first, 29724: _ForwardIterator1 __pat_last, 29724: _BinaryPredicate __pred = _BinaryPredicate()) 29724: : _M_m(__pat_first, __pat_last, std::move(__pred)) 29724: { } 29724: 29724: template 29724: 29724: pair<_ForwardIterator2, _ForwardIterator2> 29724: operator()(_ForwardIterator2 __first, _ForwardIterator2 __last) const 29724: { 29724: _ForwardIterator2 __first_ret = 29724: std::search(__first, __last, std::get<0>(_M_m), std::get<1>(_M_m), 29724: std::get<2>(_M_m)); 29724: auto __ret = std::make_pair(__first_ret, __first_ret); 29724: if (__ret.first != __last) 29724: std::advance(__ret.second, std::distance(std::get<0>(_M_m), 29724: std::get<1>(_M_m))); 29724: return __ret; 29724: } 29724: 29724: private: 29724: tuple<_ForwardIterator1, _ForwardIterator1, _BinaryPredicate> _M_m; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __boyer_moore_map_base 29724: { 29724: template 29724: __boyer_moore_map_base(_RAIter __pat, size_t __patlen, 29724: _Hash&& __hf, _Pred&& __pred) 29724: : _M_bad_char{ __patlen, std::move(__hf), std::move(__pred) } 29724: { 29724: if (__patlen > 0) 29724: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 29724: _M_bad_char[__pat[__i]] = __patlen - 1 - __i; 29724: } 29724: 29724: using __diff_type = _Tp; 29724: 29724: __diff_type 29724: _M_lookup(_Key __key, __diff_type __not_found) const 29724: { 29724: auto __iter = _M_bad_char.find(__key); 29724: if (__iter == _M_bad_char.end()) 29724: return __not_found; 29724: return __iter->second; 29724: } 29724: 29724: _Pred 29724: _M_pred() const { return _M_bad_char.key_eq(); } 29724: 29724: std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; 29724: }; 29724: 29724: template 29724: struct __boyer_moore_array_base 29724: { 29724: template 29724: __boyer_moore_array_base(_RAIter __pat, size_t __patlen, 29724: _Unused&&, _Pred&& __pred) 29724: : _M_bad_char{ array<_Tp, _Len>{}, std::move(__pred) } 29724: { 29724: std::get<0>(_M_bad_char).fill(__patlen); 29724: if (__patlen > 0) 29724: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 29724: { 29724: auto __ch = __pat[__i]; 29724: using _UCh = make_unsigned_t; 29724: auto __uch = static_cast<_UCh>(__ch); 29724: std::get<0>(_M_bad_char)[__uch] = __patlen - 1 - __i; 29724: } 29724: } 29724: 29724: using __diff_type = _Tp; 29724: 29724: template 29724: __diff_type 29724: _M_lookup(_Key __key, __diff_type __not_found) const 29724: { 29724: auto __ukey = static_cast>(__key); 29724: if (__ukey >= _Len) 29724: return __not_found; 29724: return std::get<0>(_M_bad_char)[__ukey]; 29724: } 29724: 29724: const _Pred& 29724: _M_pred() const { return std::get<1>(_M_bad_char); } 29724: 29724: tuple, _Pred> _M_bad_char; 29724: }; 29724: 29724: 29724: 29724: template::value_type, 29724: typename _Diff = typename iterator_traits<_RAIter>::difference_type> 29724: using __boyer_moore_base_t 29724: = __conditional_t<__is_byte_like<_Val, _Pred>::value, 29724: __boyer_moore_array_base<_Diff, 256, _Pred>, 29724: __boyer_moore_map_base<_Val, _Diff, _Hash, _Pred>>; 29724: 29724: template::value_type>, 29724: typename _BinaryPredicate = equal_to<>> 29724: class boyer_moore_searcher 29724: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 29724: { 29724: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 29724: using typename _Base::__diff_type; 29724: 29724: public: 29724: boyer_moore_searcher(_RAIter __pat_first, _RAIter __pat_last, 29724: _Hash __hf = _Hash(), 29724: _BinaryPredicate __pred = _BinaryPredicate()); 29724: 29724: template 29724: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29724: operator()(_RandomAccessIterator2 __first, 29724: _RandomAccessIterator2 __last) const; 29724: 29724: private: 29724: bool 29724: _M_is_prefix(_RAIter __word, __diff_type __len, 29724: __diff_type __pos) 29724: { 29724: const auto& __pred = this->_M_pred(); 29724: __diff_type __suffixlen = __len - __pos; 29724: for (__diff_type __i = 0; __i < __suffixlen; ++__i) 29724: if (!__pred(__word[__i], __word[__pos + __i])) 29724: return false; 29724: return true; 29724: } 29724: 29724: __diff_type 29724: _M_suffix_length(_RAIter __word, __diff_type __len, 29724: __diff_type __pos) 29724: { 29724: const auto& __pred = this->_M_pred(); 29724: __diff_type __i = 0; 29724: while (__pred(__word[__pos - __i], __word[__len - 1 - __i]) 29724: && __i < __pos) 29724: { 29724: ++__i; 29724: } 29724: return __i; 29724: } 29724: 29724: template 29724: __diff_type 29724: _M_bad_char_shift(_Tp __c) const 29724: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 29724: 29724: _RAIter _M_pat; 29724: _RAIter _M_pat_end; 29724: std::vector<__diff_type> _M_good_suffix; 29724: }; 29724: 29724: template::value_type>, 29724: typename _BinaryPredicate = equal_to<>> 29724: class boyer_moore_horspool_searcher 29724: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 29724: { 29724: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 29724: using typename _Base::__diff_type; 29724: 29724: public: 29724: boyer_moore_horspool_searcher(_RAIter __pat, 29724: _RAIter __pat_end, 29724: _Hash __hf = _Hash(), 29724: _BinaryPredicate __pred 29724: = _BinaryPredicate()) 29724: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 29724: _M_pat(__pat), _M_pat_end(__pat_end) 29724: { } 29724: 29724: template 29724: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29724: operator()(_RandomAccessIterator2 __first, 29724: _RandomAccessIterator2 __last) const 29724: { 29724: const auto& __pred = this->_M_pred(); 29724: auto __patlen = _M_pat_end - _M_pat; 29724: if (__patlen == 0) 29724: return std::make_pair(__first, __first); 29724: auto __len = __last - __first; 29724: while (__len >= __patlen) 29724: { 29724: for (auto __scan = __patlen - 1; 29724: __pred(__first[__scan], _M_pat[__scan]); --__scan) 29724: if (__scan == 0) 29724: return std::make_pair(__first, __first + __patlen); 29724: auto __shift = _M_bad_char_shift(__first[__patlen - 1]); 29724: __len -= __shift; 29724: __first += __shift; 29724: } 29724: return std::make_pair(__last, __last); 29724: } 29724: 29724: private: 29724: template 29724: __diff_type 29724: _M_bad_char_shift(_Tp __c) const 29724: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 29724: 29724: _RAIter _M_pat; 29724: _RAIter _M_pat_end; 29724: }; 29724: 29724: template 29724: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 29724: boyer_moore_searcher(_RAIter __pat, _RAIter __pat_end, 29724: _Hash __hf, _BinaryPredicate __pred) 29724: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 29724: _M_pat(__pat), _M_pat_end(__pat_end), _M_good_suffix(__pat_end - __pat) 29724: { 29724: auto __patlen = __pat_end - __pat; 29724: if (__patlen == 0) 29724: return; 29724: __diff_type __last_prefix = __patlen - 1; 29724: for (__diff_type __p = __patlen - 1; __p >= 0; --__p) 29724: { 29724: if (_M_is_prefix(__pat, __patlen, __p + 1)) 29724: __last_prefix = __p + 1; 29724: _M_good_suffix[__p] = __last_prefix + (__patlen - 1 - __p); 29724: } 29724: for (__diff_type __p = 0; __p < __patlen - 1; ++__p) 29724: { 29724: auto __slen = _M_suffix_length(__pat, __patlen, __p); 29724: auto __pos = __patlen - 1 - __slen; 29724: if (!__pred(__pat[__p - __slen], __pat[__pos])) 29724: _M_good_suffix[__pos] = __patlen - 1 - __p + __slen; 29724: } 29724: } 29724: 29724: template 29724: template 29724: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29724: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 29724: operator()(_RandomAccessIterator2 __first, 29724: _RandomAccessIterator2 __last) const 29724: { 29724: auto __patlen = _M_pat_end - _M_pat; 29724: if (__patlen == 0) 29724: return std::make_pair(__first, __first); 29724: const auto& __pred = this->_M_pred(); 29724: __diff_type __i = __patlen - 1; 29724: auto __stringlen = __last - __first; 29724: while (__i < __stringlen) 29724: { 29724: __diff_type __j = __patlen - 1; 29724: while (__j >= 0 && __pred(__first[__i], _M_pat[__j])) 29724: { 29724: --__i; 29724: --__j; 29724: } 29724: if (__j < 0) 29724: { 29724: const auto __match = __first + __i + 1; 29724: return std::make_pair(__match, __match + __patlen); 29724: } 29724: __i += std::max(_M_bad_char_shift(__first[__i]), 29724: _M_good_suffix[__j]); 29724: } 29724: return std::make_pair(__last, __last); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/usr/include/c++/14/memory" 1 3 29724: # 47 "/usr/include/c++/14/memory" 3 29724: 29724: # 48 "/usr/include/c++/14/memory" 3 29724: # 66 "/usr/include/c++/14/memory" 3 29724: # 1 "/usr/include/c++/14/bits/stl_tempbuf.h" 1 3 29724: # 65 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: namespace __detail 29724: { 29724: template 29724: inline void 29724: __return_temporary_buffer(_Tp* __p, 29724: size_t __len __attribute__((__unused__))) 29724: { 29724: 29724: ::operator delete(__p, __len * sizeof(_Tp)); 29724: 29724: 29724: 29724: } 29724: } 29724: # 101 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29724: template 29724: [[__deprecated__]] 29724: pair<_Tp*, ptrdiff_t> 29724: get_temporary_buffer(ptrdiff_t __len) noexcept 29724: { 29724: const ptrdiff_t __max = 29724: __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 29724: if (__len > __max) 29724: __len = __max; 29724: 29724: while (__len > 0) 29724: { 29724: _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), 29724: std::nothrow)); 29724: if (__tmp != 0) 29724: return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); 29724: __len = __len == 1 ? 0 : ((__len + 1) / 2); 29724: } 29724: return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); 29724: } 29724: # 129 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29724: template 29724: inline void 29724: return_temporary_buffer(_Tp* __p) 29724: { ::operator delete(__p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Temporary_buffer 29724: { 29724: 29724: 29724: 29724: public: 29724: typedef _Tp value_type; 29724: typedef value_type* pointer; 29724: typedef pointer iterator; 29724: typedef ptrdiff_t size_type; 29724: 29724: protected: 29724: size_type _M_original_len; 29724: size_type _M_len; 29724: pointer _M_buffer; 29724: 29724: public: 29724: 29724: size_type 29724: size() const 29724: { return _M_len; } 29724: 29724: 29724: size_type 29724: requested_size() const 29724: { return _M_original_len; } 29724: 29724: 29724: iterator 29724: begin() 29724: { return _M_buffer; } 29724: 29724: 29724: iterator 29724: end() 29724: { return _M_buffer + _M_len; } 29724: 29724: 29724: 29724: 29724: 29724: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); 29724: 29724: ~_Temporary_buffer() 29724: { 29724: std::_Destroy(_M_buffer, _M_buffer + _M_len); 29724: std::__detail::__return_temporary_buffer(_M_buffer, _M_len); 29724: } 29724: 29724: private: 29724: 29724: _Temporary_buffer(const _Temporary_buffer&); 29724: 29724: void 29724: operator=(const _Temporary_buffer&); 29724: }; 29724: 29724: 29724: template 29724: struct __uninitialized_construct_buf_dispatch 29724: { 29724: template 29724: static void 29724: __ucr(_Pointer __first, _Pointer __last, 29724: _ForwardIterator __seed) 29724: { 29724: if (__first == __last) 29724: return; 29724: 29724: _Pointer __cur = __first; 29724: try 29724: { 29724: std::_Construct(std::__addressof(*__first), 29724: std::move(*__seed)); 29724: _Pointer __prev = __cur; 29724: ++__cur; 29724: for(; __cur != __last; ++__cur, ++__prev) 29724: std::_Construct(std::__addressof(*__cur), 29724: std::move(*__prev)); 29724: *__seed = std::move(*__prev); 29724: } 29724: catch(...) 29724: { 29724: std::_Destroy(__first, __cur); 29724: throw; 29724: } 29724: } 29724: }; 29724: 29724: template<> 29724: struct __uninitialized_construct_buf_dispatch 29724: { 29724: template 29724: static void 29724: __ucr(_Pointer, _Pointer, _ForwardIterator) { } 29724: }; 29724: # 247 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29724: template 29724: inline void 29724: __uninitialized_construct_buf(_Pointer __first, _Pointer __last, 29724: _ForwardIterator __seed) 29724: { 29724: typedef typename std::iterator_traits<_Pointer>::value_type 29724: _ValueType; 29724: 29724: std::__uninitialized_construct_buf_dispatch< 29724: __has_trivial_constructor(_ValueType)>:: 29724: __ucr(__first, __last, __seed); 29724: } 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template 29724: _Temporary_buffer<_ForwardIterator, _Tp>:: 29724: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) 29724: : _M_original_len(__original_len), _M_len(0), _M_buffer(0) 29724: { 29724: std::pair __p( 29724: std::get_temporary_buffer(_M_original_len)); 29724: 29724: if (__p.first) 29724: { 29724: try 29724: { 29724: std::__uninitialized_construct_buf(__p.first, __p.first + __p.second, 29724: __seed); 29724: _M_buffer = __p.first; 29724: _M_len = __p.second; 29724: } 29724: catch(...) 29724: { 29724: std::__detail::__return_temporary_buffer(__p.first, __p.second); 29724: throw; 29724: } 29724: } 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: } 29724: # 67 "/usr/include/c++/14/memory" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 1 3 29724: # 59 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: # 64 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class [[__deprecated__]] raw_storage_iterator 29724: : public iterator 29724: { 29724: protected: 29724: _OutputIterator _M_iter; 29724: 29724: public: 29724: explicit 29724: raw_storage_iterator(_OutputIterator __x) 29724: : _M_iter(__x) {} 29724: 29724: raw_storage_iterator& 29724: operator*() { return *this; } 29724: 29724: raw_storage_iterator& 29724: operator=(const _Tp& __element) 29724: { 29724: std::_Construct(std::__addressof(*_M_iter), __element); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: raw_storage_iterator& 29724: operator=(_Tp&& __element) 29724: { 29724: std::_Construct(std::__addressof(*_M_iter), std::move(__element)); 29724: return *this; 29724: } 29724: 29724: 29724: raw_storage_iterator& 29724: operator++() 29724: { 29724: ++_M_iter; 29724: return *this; 29724: } 29724: 29724: raw_storage_iterator 29724: operator++(int) 29724: { 29724: raw_storage_iterator __tmp = *this; 29724: ++_M_iter; 29724: return __tmp; 29724: } 29724: 29724: 29724: 29724: _OutputIterator base() const { return _M_iter; } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: } 29724: # 71 "/usr/include/c++/14/memory" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/align.h" 1 3 29724: # 36 "/usr/include/c++/14/bits/align.h" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 37 "/usr/include/c++/14/bits/align.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 60 "/usr/include/c++/14/bits/align.h" 3 29724: inline void* 29724: align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept 29724: { 29724: if (__space < __size) 29724: return nullptr; 29724: const auto __intptr = reinterpret_cast(__ptr); 29724: const auto __aligned = (__intptr - 1u + __align) & -__align; 29724: const auto __diff = __aligned - __intptr; 29724: if (__diff > (__space - __size)) 29724: return nullptr; 29724: else 29724: { 29724: __space -= __diff; 29724: return __ptr = reinterpret_cast(__aligned); 29724: } 29724: } 29724: # 106 "/usr/include/c++/14/bits/align.h" 3 29724: 29724: } 29724: # 75 "/usr/include/c++/14/memory" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/unique_ptr.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 57 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template class auto_ptr; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct default_delete 29724: { 29724: 29724: constexpr default_delete() noexcept = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template>> 29724: 29724: default_delete(const default_delete<_Up>&) noexcept { } 29724: 29724: 29724: 29724: void 29724: operator()(_Tp* __ptr) const 29724: { 29724: static_assert(!is_void<_Tp>::value, 29724: "can't delete pointer to incomplete type"); 29724: static_assert(sizeof(_Tp)>0, 29724: "can't delete pointer to incomplete type"); 29724: delete __ptr; 29724: } 29724: }; 29724: # 105 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: struct default_delete<_Tp[]> 29724: { 29724: public: 29724: 29724: constexpr default_delete() noexcept = default; 29724: # 121 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template>> 29724: 29724: default_delete(const default_delete<_Up[]>&) noexcept { } 29724: 29724: 29724: template 29724: 29724: typename enable_if::value>::type 29724: operator()(_Up* __ptr) const 29724: { 29724: static_assert(sizeof(_Tp)>0, 29724: "can't delete pointer to incomplete type"); 29724: delete [] __ptr; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: class __uniq_ptr_impl 29724: { 29724: template 29724: struct _Ptr 29724: { 29724: using type = _Up*; 29724: }; 29724: 29724: template 29724: struct 29724: _Ptr<_Up, _Ep, __void_t::type::pointer>> 29724: { 29724: using type = typename remove_reference<_Ep>::type::pointer; 29724: }; 29724: 29724: public: 29724: using _DeleterConstraint = enable_if< 29724: __and_<__not_>, 29724: is_default_constructible<_Dp>>::value>; 29724: 29724: using pointer = typename _Ptr<_Tp, _Dp>::type; 29724: 29724: static_assert( !is_rvalue_reference<_Dp>::value, 29724: "unique_ptr's deleter type must be a function object type" 29724: " or an lvalue reference type" ); 29724: 29724: __uniq_ptr_impl() = default; 29724: 29724: __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } 29724: 29724: template 29724: 29724: __uniq_ptr_impl(pointer __p, _Del&& __d) 29724: : _M_t(__p, std::forward<_Del>(__d)) { } 29724: 29724: 29724: __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept 29724: : _M_t(std::move(__u._M_t)) 29724: { __u._M_ptr() = nullptr; } 29724: 29724: 29724: __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept 29724: { 29724: reset(__u.release()); 29724: _M_deleter() = std::forward<_Dp>(__u._M_deleter()); 29724: return *this; 29724: } 29724: 29724: 29724: pointer& _M_ptr() noexcept { return std::get<0>(_M_t); } 29724: 29724: pointer _M_ptr() const noexcept { return std::get<0>(_M_t); } 29724: 29724: _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); } 29724: 29724: const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); } 29724: 29724: 29724: void reset(pointer __p) noexcept 29724: { 29724: const pointer __old_p = _M_ptr(); 29724: _M_ptr() = __p; 29724: if (__old_p) 29724: _M_deleter()(__old_p); 29724: } 29724: 29724: 29724: pointer release() noexcept 29724: { 29724: pointer __p = _M_ptr(); 29724: _M_ptr() = nullptr; 29724: return __p; 29724: } 29724: 29724: 29724: void 29724: swap(__uniq_ptr_impl& __rhs) noexcept 29724: { 29724: using std::swap; 29724: swap(this->_M_ptr(), __rhs._M_ptr()); 29724: swap(this->_M_deleter(), __rhs._M_deleter()); 29724: } 29724: 29724: private: 29724: tuple _M_t; 29724: }; 29724: 29724: 29724: template ::value, 29724: bool = is_move_assignable<_Dp>::value> 29724: struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp> 29724: { 29724: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29724: __uniq_ptr_data(__uniq_ptr_data&&) = default; 29724: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 29724: }; 29724: 29724: template 29724: struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp> 29724: { 29724: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29724: __uniq_ptr_data(__uniq_ptr_data&&) = default; 29724: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 29724: }; 29724: 29724: template 29724: struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp> 29724: { 29724: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29724: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 29724: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 29724: }; 29724: 29724: template 29724: struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp> 29724: { 29724: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29724: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 29724: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template > 29724: class unique_ptr 29724: { 29724: template 29724: using _DeleterConstraint = 29724: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 29724: 29724: __uniq_ptr_data<_Tp, _Dp> _M_t; 29724: 29724: public: 29724: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 29724: using element_type = _Tp; 29724: using deleter_type = _Dp; 29724: 29724: private: 29724: 29724: 29724: template 29724: using __safe_conversion_up = __and_< 29724: is_convertible::pointer, pointer>, 29724: __not_> 29724: >; 29724: 29724: public: 29724: 29724: 29724: 29724: template> 29724: constexpr unique_ptr() noexcept 29724: : _M_t() 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: 29724: explicit 29724: unique_ptr(pointer __p) noexcept 29724: : _M_t(__p) 29724: { } 29724: # 322 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template>> 29724: 29724: unique_ptr(pointer __p, const deleter_type& __d) noexcept 29724: : _M_t(__p, __d) { } 29724: # 335 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template>> 29724: 29724: unique_ptr(pointer __p, 29724: __enable_if_t::value, 29724: _Del&&> __d) noexcept 29724: : _M_t(__p, std::move(__d)) 29724: { } 29724: 29724: template::type> 29724: 29724: unique_ptr(pointer, 29724: __enable_if_t::value, 29724: _DelUnref&&>) = delete; 29724: 29724: 29724: template> 29724: constexpr unique_ptr(nullptr_t) noexcept 29724: : _M_t() 29724: { } 29724: 29724: 29724: 29724: 29724: unique_ptr(unique_ptr&&) = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template, 29724: __conditional_t::value, 29724: is_same<_Ep, _Dp>, 29724: is_convertible<_Ep, _Dp>>>> 29724: 29724: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 29724: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 29724: { } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: template, 29724: is_same<_Dp, default_delete<_Tp>>>> 29724: unique_ptr(auto_ptr<_Up>&& __u) noexcept; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~unique_ptr() noexcept 29724: { 29724: static_assert(__is_invocable::value, 29724: "unique_ptr's deleter must be invocable with a pointer"); 29724: auto& __ptr = _M_t._M_ptr(); 29724: if (__ptr != nullptr) 29724: get_deleter()(std::move(__ptr)); 29724: __ptr = pointer(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: unique_ptr& operator=(unique_ptr&&) = default; 29724: # 418 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: 29724: typename enable_if< __and_< 29724: __safe_conversion_up<_Up, _Ep>, 29724: is_assignable 29724: >::value, 29724: unique_ptr&>::type 29724: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 29724: { 29724: reset(__u.release()); 29724: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: unique_ptr& 29724: operator=(nullptr_t) noexcept 29724: { 29724: reset(); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: typename add_lvalue_reference::type 29724: operator*() const noexcept(noexcept(*std::declval())) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) std::__glibcxx_assert_fail(); } while (false); 29724: return *get(); 29724: } 29724: 29724: 29724: 29724: pointer 29724: operator->() const noexcept 29724: { 29724: ; 29724: return get(); 29724: } 29724: 29724: 29724: 29724: pointer 29724: get() const noexcept 29724: { return _M_t._M_ptr(); } 29724: 29724: 29724: 29724: deleter_type& 29724: get_deleter() noexcept 29724: { return _M_t._M_deleter(); } 29724: 29724: 29724: 29724: const deleter_type& 29724: get_deleter() const noexcept 29724: { return _M_t._M_deleter(); } 29724: 29724: 29724: 29724: explicit operator bool() const noexcept 29724: { return get() == pointer() ? false : true; } 29724: 29724: 29724: 29724: 29724: 29724: pointer 29724: release() noexcept 29724: { return _M_t.release(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset(pointer __p = pointer()) noexcept 29724: { 29724: static_assert(__is_invocable::value, 29724: "unique_ptr's deleter must be invocable with a pointer"); 29724: _M_t.reset(std::move(__p)); 29724: } 29724: 29724: 29724: 29724: void 29724: swap(unique_ptr& __u) noexcept 29724: { 29724: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 29724: _M_t.swap(__u._M_t); 29724: } 29724: 29724: 29724: unique_ptr(const unique_ptr&) = delete; 29724: unique_ptr& operator=(const unique_ptr&) = delete; 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: # 537 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: class unique_ptr<_Tp[], _Dp> 29724: { 29724: template 29724: using _DeleterConstraint = 29724: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 29724: 29724: __uniq_ptr_data<_Tp, _Dp> _M_t; 29724: 29724: 29724: template 29724: using __is_derived_Tp 29724: = __and_< is_base_of<_Tp, _Up>, 29724: __not_, __remove_cv_t<_Up>>> >; 29724: 29724: public: 29724: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 29724: using element_type = _Tp; 29724: using deleter_type = _Dp; 29724: 29724: 29724: 29724: template, 29724: typename _UP_pointer = typename _UPtr::pointer, 29724: typename _UP_element_type = typename _UPtr::element_type> 29724: using __safe_conversion_up = __and_< 29724: is_array<_Up>, 29724: is_same, 29724: is_same<_UP_pointer, _UP_element_type*>, 29724: is_convertible<_UP_element_type(*)[], element_type(*)[]> 29724: >; 29724: 29724: 29724: template 29724: using __safe_conversion_raw = __and_< 29724: __or_<__or_, 29724: is_same<_Up, nullptr_t>>, 29724: __and_, 29724: is_same, 29724: is_convertible< 29724: typename remove_pointer<_Up>::type(*)[], 29724: element_type(*)[]> 29724: > 29724: > 29724: >; 29724: 29724: 29724: 29724: 29724: template> 29724: constexpr unique_ptr() noexcept 29724: : _M_t() 29724: { } 29724: # 599 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template, 29724: typename = typename enable_if< 29724: __safe_conversion_raw<_Up>::value, bool>::type> 29724: 29724: explicit 29724: unique_ptr(_Up __p) noexcept 29724: : _M_t(__p) 29724: { } 29724: # 618 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template, 29724: is_copy_constructible<_Del>>> 29724: 29724: unique_ptr(_Up __p, const deleter_type& __d) noexcept 29724: : _M_t(__p, __d) { } 29724: # 633 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template, 29724: is_move_constructible<_Del>>> 29724: 29724: unique_ptr(_Up __p, 29724: __enable_if_t::value, 29724: _Del&&> __d) noexcept 29724: : _M_t(std::move(__p), std::move(__d)) 29724: { } 29724: 29724: template::type, 29724: typename = _Require<__safe_conversion_raw<_Up>>> 29724: unique_ptr(_Up, 29724: __enable_if_t::value, 29724: _DelUnref&&>) = delete; 29724: 29724: 29724: unique_ptr(unique_ptr&&) = default; 29724: 29724: 29724: template> 29724: constexpr unique_ptr(nullptr_t) noexcept 29724: : _M_t() 29724: { } 29724: 29724: template, 29724: __conditional_t::value, 29724: is_same<_Ep, _Dp>, 29724: is_convertible<_Ep, _Dp>>>> 29724: 29724: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 29724: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: ~unique_ptr() 29724: { 29724: auto& __ptr = _M_t._M_ptr(); 29724: if (__ptr != nullptr) 29724: get_deleter()(__ptr); 29724: __ptr = pointer(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: unique_ptr& 29724: operator=(unique_ptr&&) = default; 29724: # 697 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: 29724: typename 29724: enable_if<__and_<__safe_conversion_up<_Up, _Ep>, 29724: is_assignable 29724: >::value, 29724: unique_ptr&>::type 29724: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 29724: { 29724: reset(__u.release()); 29724: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: unique_ptr& 29724: operator=(nullptr_t) noexcept 29724: { 29724: reset(); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: typename std::add_lvalue_reference::type 29724: operator[](size_t __i) const 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) std::__glibcxx_assert_fail(); } while (false); 29724: return get()[__i]; 29724: } 29724: 29724: 29724: 29724: pointer 29724: get() const noexcept 29724: { return _M_t._M_ptr(); } 29724: 29724: 29724: 29724: deleter_type& 29724: get_deleter() noexcept 29724: { return _M_t._M_deleter(); } 29724: 29724: 29724: 29724: const deleter_type& 29724: get_deleter() const noexcept 29724: { return _M_t._M_deleter(); } 29724: 29724: 29724: 29724: explicit operator bool() const noexcept 29724: { return get() == pointer() ? false : true; } 29724: 29724: 29724: 29724: 29724: 29724: pointer 29724: release() noexcept 29724: { return _M_t.release(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template , 29724: __and_, 29724: is_pointer<_Up>, 29724: is_convertible< 29724: typename remove_pointer<_Up>::type(*)[], 29724: element_type(*)[] 29724: > 29724: > 29724: > 29724: >> 29724: 29724: void 29724: reset(_Up __p) noexcept 29724: { _M_t.reset(std::move(__p)); } 29724: 29724: 29724: void reset(nullptr_t = nullptr) noexcept 29724: { reset(pointer()); } 29724: 29724: 29724: 29724: void 29724: swap(unique_ptr& __u) noexcept 29724: { 29724: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 29724: _M_t.swap(__u._M_t); 29724: } 29724: 29724: 29724: unique_ptr(const unique_ptr&) = delete; 29724: unique_ptr& operator=(const unique_ptr&) = delete; 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline 29724: 29724: 29724: 29724: typename enable_if<__is_swappable<_Dp>::value>::type 29724: 29724: 29724: 29724: swap(unique_ptr<_Tp, _Dp>& __x, 29724: unique_ptr<_Tp, _Dp>& __y) noexcept 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: typename enable_if::value>::type 29724: swap(unique_ptr<_Tp, _Dp>&, 29724: unique_ptr<_Tp, _Dp>&) = delete; 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { return __x.get() == __y.get(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 29724: { return !__x; } 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 29724: { return !__x; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { return __x.get() != __y.get(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 29724: { return (bool)__x; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 29724: { return (bool)__x; } 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { 29724: typedef typename 29724: std::common_type::pointer, 29724: typename unique_ptr<_Up, _Ep>::pointer>::type _CT; 29724: return std::less<_CT>()(__x.get(), __y.get()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29724: { 29724: return std::less::pointer>()(__x.get(), 29724: nullptr); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29724: { 29724: return std::less::pointer>()(nullptr, 29724: __x.get()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29724: { return !(nullptr < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29724: { return !(__x < nullptr); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { return (__y < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29724: { 29724: return std::less::pointer>()(nullptr, 29724: __x.get()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29724: { 29724: return std::less::pointer>()(__x.get(), 29724: nullptr); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const unique_ptr<_Tp, _Dp>& __x, 29724: const unique_ptr<_Up, _Ep>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29724: { return !(__x < nullptr); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29724: { return !(nullptr < __x); } 29724: # 1015 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template::__enable_hash_call> 29724: struct __uniq_ptr_hash 29724: 29724: : private __poison_hash<_Ptr> 29724: 29724: { 29724: size_t 29724: operator()(const _Up& __u) const 29724: noexcept(noexcept(std::declval>()(std::declval<_Ptr>()))) 29724: { return hash<_Ptr>()(__u.get()); } 29724: }; 29724: 29724: template 29724: struct __uniq_ptr_hash<_Up, _Ptr, false> 29724: : private __poison_hash<_Ptr> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct hash> 29724: : public __hash_base>, 29724: public __uniq_ptr_hash> 29724: { }; 29724: 29724: 29724: 29724: namespace __detail 29724: { 29724: template 29724: struct _MakeUniq 29724: { typedef unique_ptr<_Tp> __single_object; }; 29724: 29724: template 29724: struct _MakeUniq<_Tp[]> 29724: { typedef unique_ptr<_Tp[]> __array; }; 29724: 29724: template 29724: struct _MakeUniq<_Tp[_Bound]> 29724: { struct __invalid_type { }; }; 29724: 29724: template 29724: using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object; 29724: template 29724: using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array; 29724: template 29724: using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type; 29724: } 29724: # 1073 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: 29724: inline __detail::__unique_ptr_t<_Tp> 29724: make_unique(_Args&&... __args) 29724: { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } 29724: # 1088 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: 29724: inline __detail::__unique_ptr_array_t<_Tp> 29724: make_unique(size_t __num) 29724: { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: __detail::__invalid_make_unique_t<_Tp> 29724: make_unique(_Args&&...) = delete; 29724: # 1159 "/usr/include/c++/14/bits/unique_ptr.h" 3 29724: template 29724: static constexpr bool __is_unique_ptr = false; 29724: template 29724: static constexpr bool __is_unique_ptr> = true; 29724: 29724: 29724: 29724: 29724: 29724: namespace __detail::__variant 29724: { 29724: template struct _Never_valueless_alt; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : std::true_type 29724: { }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 79 "/usr/include/c++/14/memory" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/shared_ptr.h" 1 3 29724: # 52 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: # 1 "/usr/include/c++/14/iosfwd" 1 3 29724: # 36 "/usr/include/c++/14/iosfwd" 3 29724: 29724: # 37 "/usr/include/c++/14/iosfwd" 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stringfwd.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/stringfwd.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/stringfwd.h" 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct char_traits; 29724: 29724: template<> struct char_traits; 29724: 29724: template<> struct char_traits; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> struct char_traits; 29724: template<> struct char_traits; 29724: 29724: 29724: namespace __cxx11 { 29724: 29724: template, 29724: typename _Alloc = allocator<_CharT> > 29724: class basic_string; 29724: 29724: } 29724: 29724: 29724: typedef basic_string string; 29724: 29724: 29724: typedef basic_string wstring; 29724: # 89 "/usr/include/c++/14/bits/stringfwd.h" 3 29724: typedef basic_string u16string; 29724: 29724: 29724: typedef basic_string u32string; 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 42 "/usr/include/c++/14/iosfwd" 2 3 29724: # 1 "/usr/include/c++/14/bits/postypes.h" 1 3 29724: # 38 "/usr/include/c++/14/bits/postypes.h" 3 29724: 29724: # 39 "/usr/include/c++/14/bits/postypes.h" 3 29724: 29724: # 1 "/usr/include/c++/14/cwchar" 1 3 29724: # 39 "/usr/include/c++/14/cwchar" 3 29724: 29724: # 40 "/usr/include/c++/14/cwchar" 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/wchar.h" 1 3 4 29724: # 27 "/usr/include/wchar.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 28 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29724: # 52 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 29724: # 25 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 2 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 2 3 4 29724: # 31 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 36 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29724: # 40 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 3 4 29724: typedef __builtin_va_list __gnuc_va_list; 29724: # 39 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: 29724: 29724: typedef __gnuc_va_list va_list; 29724: # 52 "/usr/include/wchar.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 1 3 4 29724: # 20 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 3 4 29724: typedef unsigned int wint_t; 29724: # 53 "/usr/include/wchar.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 1 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 1 3 4 29724: # 13 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 3 4 29724: typedef struct 29724: { 29724: int __count; 29724: union 29724: { 29724: unsigned int __wch; 29724: char __wchb[4]; 29724: } __value; 29724: } __mbstate_t; 29724: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 2 3 4 29724: 29724: typedef __mbstate_t mbstate_t; 29724: # 54 "/usr/include/wchar.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__FILE.h" 1 3 4 29724: 29724: 29724: 29724: struct _IO_FILE; 29724: typedef struct _IO_FILE __FILE; 29724: # 55 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/FILE.h" 1 3 4 29724: 29724: 29724: 29724: struct _IO_FILE; 29724: 29724: 29724: typedef struct _IO_FILE FILE; 29724: # 58 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 1 3 4 29724: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 3 4 29724: struct __locale_struct 29724: { 29724: 29724: struct __locale_data *__locales[13]; 29724: 29724: 29724: const unsigned short int *__ctype_b; 29724: const int *__ctype_tolower; 29724: const int *__ctype_toupper; 29724: 29724: 29724: const char *__names[13]; 29724: }; 29724: 29724: typedef struct __locale_struct *__locale_t; 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 2 3 4 29724: 29724: typedef __locale_t locale_t; 29724: # 61 "/usr/include/wchar.h" 2 3 4 29724: # 90 "/usr/include/wchar.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: struct tm; 29724: 29724: 29724: 29724: extern wchar_t *wcscpy (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern size_t wcslcpy (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: 29724: 29724: 29724: extern size_t wcslcat (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 29724: 29724: 29724: 29724: extern wchar_t *wcscat (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern wchar_t *wcsncat (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 29724: 29724: 29724: extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, 29724: size_t __n) noexcept (true); 29724: 29724: 29724: 29724: extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 29724: locale_t __loc) noexcept (true); 29724: 29724: extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 29724: size_t __n, locale_t __loc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 29724: 29724: 29724: 29724: extern size_t wcsxfrm (wchar_t *__restrict __s1, 29724: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, 29724: locale_t __loc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, 29724: size_t __n, locale_t __loc) noexcept (true); 29724: 29724: 29724: extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: 29724: 29724: extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) 29724: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) 29724: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) 29724: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) 29724: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 29724: # 206 "/usr/include/wchar.h" 3 4 29724: extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) 29724: noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) 29724: noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) 29724: noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) 29724: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, 29724: const wchar_t *__accept) 29724: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) 29724: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, 29724: const wchar_t *__needle) 29724: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wchar_t *wcstok (wchar_t *__restrict __s, 29724: const wchar_t *__restrict __delim, 29724: wchar_t **__restrict __ptr) noexcept (true); 29724: 29724: 29724: extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) 29724: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, 29724: const wchar_t *__needle) 29724: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 29724: # 265 "/usr/include/wchar.h" 3 4 29724: extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) 29724: noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) 29724: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 29724: extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, 29724: size_t __n) 29724: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, 29724: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 29724: 29724: 29724: 29724: extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) 29724: noexcept (true); 29724: 29724: 29724: extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern wchar_t *wmempcpy (wchar_t *__restrict __s1, 29724: const wchar_t *__restrict __s2, size_t __n) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t btowc (int __c) noexcept (true); 29724: 29724: 29724: 29724: extern int wctob (wint_t __c) noexcept (true); 29724: 29724: 29724: 29724: extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: extern size_t mbrtowc (wchar_t *__restrict __pwc, 29724: const char *__restrict __s, size_t __n, 29724: mbstate_t *__restrict __p) noexcept (true); 29724: 29724: 29724: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: extern size_t __mbrlen (const char *__restrict __s, size_t __n, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: extern size_t mbrlen (const char *__restrict __s, size_t __n, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t __btowc_alias (int __c) __asm ("btowc"); 29724: extern __inline __attribute__ ((__gnu_inline__)) wint_t 29724: __attribute__ ((__leaf__)) btowc (int __c) noexcept (true) 29724: { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' 29724: ? (wint_t) __c : __btowc_alias (__c)); } 29724: 29724: extern int __wctob_alias (wint_t __c) __asm ("wctob"); 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: __attribute__ ((__leaf__)) wctob (wint_t __wc) noexcept (true) 29724: { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' 29724: ? (int) __wc : __wctob_alias (__wc)); } 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) size_t 29724: __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: { return (__ps != __null 29724: ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } 29724: 29724: 29724: 29724: 29724: extern size_t mbsrtowcs (wchar_t *__restrict __dst, 29724: const char **__restrict __src, size_t __len, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: 29724: extern size_t wcsrtombs (char *__restrict __dst, 29724: const wchar_t **__restrict __src, size_t __len, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, 29724: const char **__restrict __src, size_t __nmc, 29724: size_t __len, mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: 29724: extern size_t wcsnrtombs (char *__restrict __dst, 29724: const wchar_t **__restrict __src, 29724: size_t __nwc, size_t __len, 29724: mbstate_t *__restrict __ps) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int wcwidth (wchar_t __c) noexcept (true); 29724: 29724: 29724: 29724: extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern double wcstod (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: 29724: 29724: 29724: extern float wcstof (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: extern long double wcstold (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: # 422 "/usr/include/wchar.h" 3 4 29724: extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: # 437 "/usr/include/wchar.h" 3 4 29724: extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr) noexcept (true); 29724: # 455 "/usr/include/wchar.h" 3 4 29724: extern long int wcstol (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base) noexcept (true); 29724: 29724: 29724: 29724: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: __extension__ 29724: extern long long int wcstoll (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base) 29724: noexcept (true); 29724: 29724: 29724: 29724: __extension__ 29724: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: int __base) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: __extension__ 29724: extern long long int wcstoq (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base) 29724: noexcept (true); 29724: 29724: 29724: 29724: __extension__ 29724: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: int __base) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int wcstol (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstol") 29724: 29724: ; 29724: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoul") 29724: 29724: 29724: ; 29724: __extension__ 29724: extern long long int wcstoll (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 29724: 29724: 29724: ; 29724: __extension__ 29724: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 29724: 29724: 29724: ; 29724: 29724: __extension__ 29724: extern long long int wcstoq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 29724: 29724: ; 29724: __extension__ 29724: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 29724: 29724: 29724: ; 29724: # 561 "/usr/include/wchar.h" 3 4 29724: extern long int wcstol_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base, 29724: locale_t __loc) noexcept (true); 29724: 29724: extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: int __base, locale_t __loc) noexcept (true); 29724: 29724: __extension__ 29724: extern long long int wcstoll_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: int __base, locale_t __loc) noexcept (true); 29724: 29724: __extension__ 29724: extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: int __base, locale_t __loc) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 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") 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: ; 29724: __extension__ 29724: 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") 29724: 29724: 29724: 29724: ; 29724: __extension__ 29724: 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") 29724: 29724: 29724: 29724: ; 29724: # 630 "/usr/include/wchar.h" 3 4 29724: extern double wcstod_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, locale_t __loc) 29724: noexcept (true); 29724: 29724: extern float wcstof_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, locale_t __loc) 29724: noexcept (true); 29724: 29724: extern long double wcstold_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: locale_t __loc) noexcept (true); 29724: # 649 "/usr/include/wchar.h" 3 4 29724: extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: locale_t __loc) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: locale_t __loc) noexcept (true); 29724: # 667 "/usr/include/wchar.h" 3 4 29724: extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, 29724: locale_t __loc) noexcept (true); 29724: # 689 "/usr/include/wchar.h" 3 4 29724: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src) noexcept (true); 29724: 29724: 29724: 29724: extern wchar_t *wcpncpy (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n) 29724: noexcept (true); 29724: # 718 "/usr/include/wchar.h" 3 4 29724: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 29724: __attribute__ ((__malloc__)) ; 29724: 29724: 29724: 29724: 29724: 29724: extern int fwide (__FILE *__fp, int __mode) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fwprintf (__FILE *__restrict __stream, 29724: const wchar_t *__restrict __format, ...) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int wprintf (const wchar_t *__restrict __format, ...) 29724: ; 29724: 29724: extern int swprintf (wchar_t *__restrict __s, size_t __n, 29724: const wchar_t *__restrict __format, ...) 29724: noexcept (true) ; 29724: 29724: 29724: 29724: 29724: 29724: extern int vfwprintf (__FILE *__restrict __s, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int vwprintf (const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: ; 29724: 29724: 29724: extern int vswprintf (wchar_t *__restrict __s, size_t __n, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: noexcept (true) ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fwscanf (__FILE *__restrict __stream, 29724: const wchar_t *__restrict __format, ...) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int wscanf (const wchar_t *__restrict __format, ...) 29724: ; 29724: 29724: extern int swscanf (const wchar_t *__restrict __s, 29724: const wchar_t *__restrict __format, ...) 29724: noexcept (true) ; 29724: # 795 "/usr/include/wchar.h" 3 4 29724: extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_fwscanf") 29724: 29724: 29724: ; 29724: extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_wscanf") 29724: 29724: ; 29724: extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_swscanf") 29724: 29724: 29724: ; 29724: # 851 "/usr/include/wchar.h" 3 4 29724: extern int vfwscanf (__FILE *__restrict __s, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int vwscanf (const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: ; 29724: 29724: extern int vswscanf (const wchar_t *__restrict __s, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: noexcept (true) ; 29724: # 875 "/usr/include/wchar.h" 3 4 29724: extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfwscanf") 29724: 29724: 29724: ; 29724: extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vwscanf") 29724: 29724: ; 29724: extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vswscanf") 29724: 29724: 29724: ; 29724: # 935 "/usr/include/wchar.h" 3 4 29724: extern wint_t fgetwc (__FILE *__stream); 29724: extern wint_t getwc (__FILE *__stream); 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t getwchar (void); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t fputwc (wchar_t __wc, __FILE *__stream); 29724: extern wint_t putwc (wchar_t __wc, __FILE *__stream); 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t putwchar (wchar_t __wc); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, 29724: __FILE *__restrict __stream); 29724: 29724: 29724: 29724: 29724: 29724: extern int fputws (const wchar_t *__restrict __ws, 29724: __FILE *__restrict __stream); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t ungetwc (wint_t __wc, __FILE *__stream); 29724: # 990 "/usr/include/wchar.h" 3 4 29724: extern wint_t getwc_unlocked (__FILE *__stream); 29724: extern wint_t getwchar_unlocked (void); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t fgetwc_unlocked (__FILE *__stream); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); 29724: # 1016 "/usr/include/wchar.h" 3 4 29724: extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); 29724: extern wint_t putwchar_unlocked (wchar_t __wc); 29724: # 1026 "/usr/include/wchar.h" 3 4 29724: extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, 29724: __FILE *__restrict __stream); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fputws_unlocked (const wchar_t *__restrict __ws, 29724: __FILE *__restrict __stream); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, 29724: const wchar_t *__restrict __format, 29724: const struct tm *__restrict __tp) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, 29724: const wchar_t *__restrict __format, 29724: const struct tm *__restrict __tp, 29724: locale_t __loc) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 3 4 29724: extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, 29724: const wchar_t *__restrict __s2, size_t __n, 29724: size_t __ns1) noexcept (true); 29724: extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmemcpy") 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, 29724: size_t __n, size_t __ns1) noexcept (true); 29724: extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __asm__ ("" "wmemmove") 29724: 29724: ; 29724: extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemmove_chk") 29724: 29724: 29724: __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: 29724: 29724: 29724: extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, 29724: const wchar_t *__restrict __s2, size_t __n, 29724: size_t __ns1) noexcept (true); 29724: extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmempcpy") 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: 29724: 29724: 29724: extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, 29724: size_t __ns) noexcept (true); 29724: extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm__ ("" "wmemset") 29724: ; 29724: extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true) __asm__ ("" "__wmemset_chk") 29724: 29724: 29724: __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, 29724: size_t __n) noexcept (true); 29724: extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscpy") 29724: 29724: ; 29724: 29724: extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, 29724: size_t __destlen) noexcept (true); 29724: extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcpcpy") 29724: 29724: ; 29724: 29724: extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncpy") 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: 29724: extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcpncpy") 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) 29724: ; 29724: 29724: extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, 29724: size_t __destlen) noexcept (true); 29724: extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscat") 29724: 29724: ; 29724: 29724: extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, 29724: const wchar_t *__restrict __src, 29724: size_t __n, size_t __destlen) noexcept (true); 29724: extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncat") 29724: 29724: 29724: ; 29724: 29724: extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, 29724: int __flag, size_t __s_len, 29724: const wchar_t *__restrict __format, ...) 29724: noexcept (true) ; 29724: extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) __asm__ ("" "swprintf") 29724: 29724: 29724: ; 29724: 29724: extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, 29724: int __flag, size_t __s_len, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __arg) 29724: noexcept (true) ; 29724: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) __asm__ ("" "vswprintf") 29724: 29724: 29724: ; 29724: 29724: 29724: 29724: 29724: extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, 29724: const wchar_t *__restrict __format, ...); 29724: extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, 29724: ...); 29724: extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, 29724: const wchar_t *__restrict __format, 29724: __gnuc_va_list __ap); 29724: extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, 29724: __gnuc_va_list __ap); 29724: 29724: 29724: 29724: extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, 29724: __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 29724: extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, 29724: int __n, __FILE *__restrict __stream) 29724: __attribute__ ((__warn_unused_result__)); 29724: extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, 29724: mbstate_t *__restrict __p, 29724: size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcrtomb") 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: 29724: extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, 29724: const char **__restrict __src, 29724: size_t __len, mbstate_t *__restrict __ps, 29724: size_t __dstlen) noexcept (true); 29724: extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsrtowcs") 29724: 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: 29724: __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29724: ; 29724: 29724: extern size_t __wcsrtombs_chk (char *__restrict __dst, 29724: const wchar_t **__restrict __src, 29724: size_t __len, mbstate_t *__restrict __ps, 29724: size_t __dstlen) noexcept (true); 29724: extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsrtombs") 29724: 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); 29724: 29724: 29724: 29724: extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, 29724: const char **__restrict __src, size_t __nmc, 29724: size_t __len, mbstate_t *__restrict __ps, 29724: size_t __dstlen) noexcept (true); 29724: 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") 29724: 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: 29724: __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29724: ; 29724: 29724: extern size_t __wcsnrtombs_chk (char *__restrict __dst, 29724: const wchar_t **__restrict __src, 29724: size_t __nwc, size_t __len, 29724: mbstate_t *__restrict __ps, size_t __dstlen) 29724: noexcept (true); 29724: 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") 29724: 29724: 29724: 29724: ; 29724: 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") 29724: 29724: 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); 29724: 29724: 29724: 29724: 29724: extern size_t __wcslcpy_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: extern size_t __wcslcpy_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcpy") 29724: 29724: ; 29724: 29724: extern size_t __wcslcat_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: extern size_t __wcslcat_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcat") 29724: 29724: ; 29724: # 1060 "/usr/include/wchar.h" 2 3 4 29724: # 1070 "/usr/include/wchar.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wmemcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmemcpy_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmemcpy_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wmemmove (wchar_t * __s1, const wchar_t *__s2, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmemmove_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmemmove_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wmempcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmempcpy_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmempcpy_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wmemset (wchar_t * __s, wchar_t __c, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__s, 0)) && (__builtin_object_size (__s, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s, 0)) / (sizeof (wchar_t)))) ? __wmemset_chk_warn (__s, __c, __n, (__builtin_object_size (__s, 0)) / (sizeof (wchar_t))) : __wmemset_chk (__s, __c, __n, (__builtin_object_size (__s, 0)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcscpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29724: if (__sz != (size_t) -1) 29724: return __wcscpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 29724: return __wcscpy_alias (__dest, __src); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcpcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29724: if (__sz != (size_t) -1) 29724: return __wcpcpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 29724: return __wcpcpy_alias (__dest, __src); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcsncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dest, 2 > 1)) && (__builtin_object_size (__dest, 2 > 1)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t)))))) ? __wcsncpy_alias (__dest, __src, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) ? __wcsncpy_chk_warn (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))) : __wcsncpy_chk (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcpncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dest, 2 > 1)) && (__builtin_object_size (__dest, 2 > 1)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t)))))) ? __wcpncpy_alias (__dest, __src, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) ? __wcpncpy_chk_warn (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))) : __wcpncpy_chk (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcscat (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29724: if (__sz != (size_t) -1) 29724: return __wcscat_chk (__dest, __src, __sz / sizeof (wchar_t)); 29724: return __wcscat_alias (__dest, __src); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29724: __attribute__ ((__leaf__)) wcsncat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29724: if (__sz != (size_t) -1) 29724: return __wcsncat_chk (__dest, __src, __n, __sz / sizeof (wchar_t)); 29724: return __wcsncat_alias (__dest, __src, __n); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) wcslcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29724: && (!__builtin_constant_p (__n 29724: > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)) 29724: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 29724: return __wcslcpy_chk (__dest, __src, __n, 29724: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 29724: return __wcslcpy_alias (__dest, __src, __n); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) wcslcat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29724: 29724: { 29724: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29724: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1) 29724: / sizeof (wchar_t)) 29724: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 29724: return __wcslcat_chk (__dest, __src, __n, 29724: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 29724: return __wcslcat_alias (__dest, __src, __n); 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (__sz != (size_t) -1 || 2 > 1) 29724: return __swprintf_chk (__s, __n, 2 - 1, 29724: __sz / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); 29724: return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); 29724: } 29724: # 205 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (__sz != (size_t) -1 || 2 > 1) 29724: return __vswprintf_chk (__s, __n, 2 - 1, 29724: __sz / sizeof (wchar_t), __fmt, __ap); 29724: return __vswprintf_alias (__s, __n, __fmt, __ap); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: wprintf (const wchar_t *__restrict __fmt, ...) 29724: { 29724: return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) 29724: { 29724: return __fwprintf_chk (__stream, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 29724: { 29724: return __vwprintf_chk (2 - 1, __fmt, __ap); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: vfwprintf (__FILE *__restrict __stream, 29724: const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 29724: { 29724: return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 29724: fgetws (wchar_t * __restrict __s, int __n, 29724: __FILE *__restrict __stream) 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))))) 29724: return __fgetws_alias (__s, __n, __stream); 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t))))) 29724: return __fgetws_chk_warn (__s, __sz / sizeof (wchar_t), __n, __stream); 29724: 29724: return __fgetws_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 29724: fgetws_unlocked (wchar_t * __restrict __s, 29724: int __n, __FILE *__restrict __stream) 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))))) 29724: return __fgetws_unlocked_alias (__s, __n, __stream); 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t))))) 29724: return __fgetws_unlocked_chk_warn (__s, __sz / sizeof (wchar_t), __n, 29724: __stream); 29724: 29724: return __fgetws_unlocked_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 29724: __attribute__ ((__leaf__)) wcrtomb (char * __restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 29724: && 16 > __builtin_object_size (__s, 2 > 1)) 29724: return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); 29724: return __wcrtomb_alias (__s, __wchar, __ps); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) mbsrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbsrtowcs_chk_warn (__dst, __src, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbsrtowcs_chk (__dst, __src, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) wcsrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char)))))) ? __wcsrtombs_alias (__dst, __src, __len, __ps) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcsrtombs_chk_warn (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)) : __wcsrtombs_chk (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbsnrtowcs_chk_warn (__dst, __src, __nmc, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbsnrtowcs_chk (__dst, __src, __nmc, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29724: 29724: ; 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) wcsnrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcsnrtombs_chk_warn (__dst, __src, __nwc, __len, __ps, __builtin_object_size (__dst, 2 > 1)) : __wcsnrtombs_chk (__dst, __src, __nwc, __len, __ps, __builtin_object_size (__dst, 2 > 1)))) 29724: 29724: ; 29724: } 29724: # 1071 "/usr/include/wchar.h" 2 3 4 29724: 29724: 29724: } 29724: # 45 "/usr/include/c++/14/cwchar" 2 3 29724: # 62 "/usr/include/c++/14/cwchar" 3 29724: namespace std 29724: { 29724: using ::mbstate_t; 29724: } 29724: # 135 "/usr/include/c++/14/cwchar" 3 29724: extern "C++" 29724: { 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: using ::wint_t; 29724: 29724: using ::btowc; 29724: using ::fgetwc; 29724: using ::fgetws; 29724: using ::fputwc; 29724: using ::fputws; 29724: using ::fwide; 29724: using ::fwprintf; 29724: using ::fwscanf; 29724: using ::getwc; 29724: using ::getwchar; 29724: using ::mbrlen; 29724: using ::mbrtowc; 29724: using ::mbsinit; 29724: using ::mbsrtowcs; 29724: using ::putwc; 29724: using ::putwchar; 29724: 29724: using ::swprintf; 29724: 29724: using ::swscanf; 29724: using ::ungetwc; 29724: using ::vfwprintf; 29724: 29724: using ::vfwscanf; 29724: 29724: 29724: using ::vswprintf; 29724: 29724: 29724: using ::vswscanf; 29724: 29724: using ::vwprintf; 29724: 29724: using ::vwscanf; 29724: 29724: using ::wcrtomb; 29724: using ::wcscat; 29724: using ::wcscmp; 29724: using ::wcscoll; 29724: using ::wcscpy; 29724: using ::wcscspn; 29724: using ::wcsftime; 29724: using ::wcslen; 29724: using ::wcsncat; 29724: using ::wcsncmp; 29724: using ::wcsncpy; 29724: using ::wcsrtombs; 29724: using ::wcsspn; 29724: using ::wcstod; 29724: 29724: using ::wcstof; 29724: 29724: using ::wcstok; 29724: using ::wcstol; 29724: using ::wcstoul; 29724: using ::wcsxfrm; 29724: using ::wctob; 29724: using ::wmemcmp; 29724: using ::wmemcpy; 29724: using ::wmemmove; 29724: using ::wmemset; 29724: using ::wprintf; 29724: using ::wscanf; 29724: using ::wcschr; 29724: using ::wcspbrk; 29724: using ::wcsrchr; 29724: using ::wcsstr; 29724: using ::wmemchr; 29724: # 234 "/usr/include/c++/14/cwchar" 3 29724: 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __gnu_cxx 29724: { 29724: 29724: 29724: 29724: 29724: 29724: using ::wcstold; 29724: # 260 "/usr/include/c++/14/cwchar" 3 29724: using ::wcstoll; 29724: using ::wcstoull; 29724: 29724: } 29724: 29724: namespace std 29724: { 29724: using ::__gnu_cxx::wcstold; 29724: using ::__gnu_cxx::wcstoll; 29724: using ::__gnu_cxx::wcstoull; 29724: } 29724: # 280 "/usr/include/c++/14/cwchar" 3 29724: namespace std 29724: { 29724: 29724: using std::wcstof; 29724: 29724: 29724: using std::vfwscanf; 29724: 29724: 29724: using std::vswscanf; 29724: 29724: 29724: using std::vwscanf; 29724: 29724: 29724: 29724: using std::wcstold; 29724: using std::wcstoll; 29724: using std::wcstoull; 29724: 29724: } 29724: # 41 "/usr/include/c++/14/bits/postypes.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 62 "/usr/include/c++/14/bits/postypes.h" 3 29724: typedef long long int streamoff; 29724: 29724: 29724: 29724: 29724: 29724: typedef ptrdiff_t streamsize; 29724: # 81 "/usr/include/c++/14/bits/postypes.h" 3 29724: template 29724: class fpos 29724: { 29724: private: 29724: streamoff _M_off; 29724: _StateT _M_state; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: fpos() 29724: : _M_off(0), _M_state() { } 29724: # 103 "/usr/include/c++/14/bits/postypes.h" 3 29724: fpos(streamoff __off) 29724: : _M_off(__off), _M_state() { } 29724: 29724: 29724: fpos(const fpos&) = default; 29724: fpos& operator=(const fpos&) = default; 29724: ~fpos() = default; 29724: 29724: 29724: 29724: operator streamoff() const { return _M_off; } 29724: 29724: 29724: void 29724: state(_StateT __st) 29724: { _M_state = __st; } 29724: 29724: 29724: _StateT 29724: state() const 29724: { return _M_state; } 29724: 29724: 29724: 29724: 29724: 29724: fpos& 29724: operator+=(streamoff __off) 29724: { 29724: _M_off += __off; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: fpos& 29724: operator-=(streamoff __off) 29724: { 29724: _M_off -= __off; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: fpos 29724: operator+(streamoff __off) const 29724: { 29724: fpos __pos(*this); 29724: __pos += __off; 29724: return __pos; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: fpos 29724: operator-(streamoff __off) const 29724: { 29724: fpos __pos(*this); 29724: __pos -= __off; 29724: return __pos; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: streamoff 29724: operator-(const fpos& __other) const 29724: { return _M_off - __other._M_off; } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 29724: { return streamoff(__lhs) == streamoff(__rhs); } 29724: 29724: template 29724: inline bool 29724: operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 29724: { return streamoff(__lhs) != streamoff(__rhs); } 29724: 29724: 29724: 29724: 29724: 29724: typedef fpos streampos; 29724: 29724: typedef fpos wstreampos; 29724: # 215 "/usr/include/c++/14/bits/postypes.h" 3 29724: typedef fpos u16streampos; 29724: 29724: typedef fpos u32streampos; 29724: 29724: 29724: 29724: } 29724: # 43 "/usr/include/c++/14/iosfwd" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 76 "/usr/include/c++/14/iosfwd" 3 29724: class ios_base; 29724: 29724: template > 29724: class basic_ios; 29724: 29724: template > 29724: class basic_streambuf; 29724: 29724: template > 29724: class basic_istream; 29724: 29724: template > 29724: class basic_ostream; 29724: 29724: template > 29724: class basic_iostream; 29724: 29724: 29724: namespace __cxx11 { 29724: 29724: template, 29724: typename _Alloc = allocator<_CharT> > 29724: class basic_stringbuf; 29724: 29724: template, 29724: typename _Alloc = allocator<_CharT> > 29724: class basic_istringstream; 29724: 29724: template, 29724: typename _Alloc = allocator<_CharT> > 29724: class basic_ostringstream; 29724: 29724: template, 29724: typename _Alloc = allocator<_CharT> > 29724: class basic_stringstream; 29724: 29724: } 29724: 29724: template > 29724: class basic_filebuf; 29724: 29724: template > 29724: class basic_ifstream; 29724: 29724: template > 29724: class basic_ofstream; 29724: 29724: template > 29724: class basic_fstream; 29724: 29724: template > 29724: class istreambuf_iterator; 29724: 29724: template > 29724: class ostreambuf_iterator; 29724: 29724: 29724: 29724: typedef basic_ios ios; 29724: 29724: 29724: typedef basic_streambuf streambuf; 29724: 29724: 29724: typedef basic_istream istream; 29724: 29724: 29724: typedef basic_ostream ostream; 29724: 29724: 29724: typedef basic_iostream iostream; 29724: 29724: 29724: typedef basic_stringbuf stringbuf; 29724: 29724: 29724: typedef basic_istringstream istringstream; 29724: 29724: 29724: typedef basic_ostringstream ostringstream; 29724: 29724: 29724: typedef basic_stringstream stringstream; 29724: 29724: 29724: typedef basic_filebuf filebuf; 29724: 29724: 29724: typedef basic_ifstream ifstream; 29724: 29724: 29724: typedef basic_ofstream ofstream; 29724: 29724: 29724: typedef basic_fstream fstream; 29724: 29724: 29724: 29724: typedef basic_ios wios; 29724: 29724: 29724: typedef basic_streambuf wstreambuf; 29724: 29724: 29724: typedef basic_istream wistream; 29724: 29724: 29724: typedef basic_ostream wostream; 29724: 29724: 29724: typedef basic_iostream wiostream; 29724: 29724: 29724: typedef basic_stringbuf wstringbuf; 29724: 29724: 29724: typedef basic_istringstream wistringstream; 29724: 29724: 29724: typedef basic_ostringstream wostringstream; 29724: 29724: 29724: typedef basic_stringstream wstringstream; 29724: 29724: 29724: typedef basic_filebuf wfilebuf; 29724: 29724: 29724: typedef basic_ifstream wifstream; 29724: 29724: 29724: typedef basic_ofstream wofstream; 29724: 29724: 29724: typedef basic_fstream wfstream; 29724: # 255 "/usr/include/c++/14/iosfwd" 3 29724: 29724: } 29724: # 53 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/shared_ptr_base.h" 1 3 29724: # 53 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: # 1 "/usr/include/c++/14/bits/allocated_ptr.h" 1 3 29724: # 40 "/usr/include/c++/14/bits/allocated_ptr.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: struct __allocated_ptr 29724: { 29724: using pointer = typename allocator_traits<_Alloc>::pointer; 29724: using value_type = typename allocator_traits<_Alloc>::value_type; 29724: 29724: 29724: __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept 29724: : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) 29724: { } 29724: 29724: 29724: template>> 29724: __allocated_ptr(_Alloc& __a, _Ptr __ptr) 29724: : _M_alloc(std::__addressof(__a)), 29724: _M_ptr(pointer_traits::pointer_to(*__ptr)) 29724: { } 29724: 29724: 29724: __allocated_ptr(__allocated_ptr&& __gd) noexcept 29724: : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) 29724: { __gd._M_ptr = nullptr; } 29724: 29724: 29724: ~__allocated_ptr() 29724: { 29724: if (_M_ptr != nullptr) 29724: std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); 29724: } 29724: 29724: 29724: __allocated_ptr& 29724: operator=(std::nullptr_t) noexcept 29724: { 29724: _M_ptr = nullptr; 29724: return *this; 29724: } 29724: 29724: 29724: value_type* get() { return std::__to_address(_M_ptr); } 29724: 29724: private: 29724: _Alloc* _M_alloc; 29724: pointer _M_ptr; 29724: }; 29724: 29724: 29724: template 29724: __allocated_ptr<_Alloc> 29724: __allocate_guarded(_Alloc& __a) 29724: { 29724: return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 54 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ext/atomicity.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/atomicity.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/atomicity.h" 3 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 1 3 29724: # 30 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 29724: #pragma GCC visibility push(default) 29724: # 157 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 1 3 29724: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: # 1 "/usr/include/pthread.h" 1 3 4 29724: # 22 "/usr/include/pthread.h" 3 4 29724: # 1 "/usr/include/sched.h" 1 3 4 29724: # 29 "/usr/include/sched.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 30 "/usr/include/sched.h" 2 3 4 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __time64_t time_t; 29724: # 32 "/usr/include/sched.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 1 3 4 29724: # 35 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/endianness.h" 1 3 4 29724: # 36 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 2 3 4 29724: # 7 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 2 3 4 29724: 29724: 29724: 29724: 29724: struct timespec 29724: { 29724: 29724: __time64_t tv_sec; 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 29724: long int tv_nsec; 29724: int: 32; 29724: 29724: 29724: }; 29724: # 33 "/usr/include/sched.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: typedef __pid_t pid_t; 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 1 3 4 29724: # 80 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 3 4 29724: struct sched_param 29724: { 29724: int sched_priority; 29724: }; 29724: # 81 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: extern int clone (int (*__fn) (void *__arg), void *__child_stack, 29724: int __flags, void *__arg, ...) noexcept (true); 29724: 29724: 29724: extern int unshare (int __flags) noexcept (true); 29724: 29724: 29724: extern int sched_getcpu (void) noexcept (true); 29724: 29724: 29724: extern int getcpu (unsigned int *, unsigned int *) noexcept (true); 29724: 29724: 29724: extern int setns (int __fd, int __nstype) noexcept (true); 29724: 29724: 29724: } 29724: # 44 "/usr/include/sched.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 1 3 4 29724: # 32 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 29724: typedef unsigned long int __cpu_mask; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef struct 29724: { 29724: __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; 29724: } cpu_set_t; 29724: # 115 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 29724: extern "C" { 29724: 29724: extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 29724: noexcept (true); 29724: extern cpu_set_t *__sched_cpualloc (size_t __count) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: extern void __sched_cpufree (cpu_set_t *__set) noexcept (true); 29724: 29724: } 29724: # 45 "/usr/include/sched.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: 29724: 29724: extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) 29724: noexcept (true); 29724: 29724: 29724: extern int sched_getparam (__pid_t __pid, struct sched_param *__param) noexcept (true); 29724: 29724: 29724: extern int sched_setscheduler (__pid_t __pid, int __policy, 29724: const struct sched_param *__param) noexcept (true); 29724: 29724: 29724: extern int sched_getscheduler (__pid_t __pid) noexcept (true); 29724: 29724: 29724: extern int sched_yield (void) noexcept (true); 29724: 29724: 29724: extern int sched_get_priority_max (int __algorithm) noexcept (true); 29724: 29724: 29724: extern int sched_get_priority_min (int __algorithm) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) noexcept (true) __asm__ ("" "__sched_rr_get_interval64") 29724: 29724: ; 29724: # 130 "/usr/include/sched.h" 3 4 29724: extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, 29724: const cpu_set_t *__cpuset) noexcept (true); 29724: 29724: 29724: extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, 29724: cpu_set_t *__cpuset) noexcept (true); 29724: 29724: 29724: } 29724: # 23 "/usr/include/pthread.h" 2 3 4 29724: # 1 "/usr/include/time.h" 1 3 4 29724: # 29 "/usr/include/time.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 30 "/usr/include/time.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4 29724: # 73 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 1 3 4 29724: # 22 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timeval.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct timeval 29724: { 29724: 29724: __time64_t tv_sec; 29724: __suseconds64_t tv_usec; 29724: 29724: 29724: 29724: 29724: }; 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 2 3 4 29724: 29724: 29724: 29724: struct timex 29724: { 29724: 29724: unsigned int modes; 29724: int :32; 29724: long long offset; 29724: long long freq; 29724: long long maxerror; 29724: long long esterror; 29724: int status; 29724: int :32; 29724: long long constant; 29724: long long precision; 29724: long long tolerance; 29724: struct timeval time; 29724: long long tick; 29724: long long ppsfreq; 29724: long long jitter; 29724: int shift; 29724: int :32; 29724: long long stabil; 29724: long long jitcnt; 29724: long long calcnt; 29724: long long errcnt; 29724: long long stbcnt; 29724: 29724: int tai; 29724: 29724: int :32; int :32; int :32; int :32; 29724: int :32; int :32; int :32; int :32; 29724: int :32; int :32; int :32; 29724: # 85 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 29724: }; 29724: # 74 "/usr/include/arm-linux-gnueabihf/bits/time.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __asm__ ("" "__clock_adjtime64") 29724: 29724: __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 34 "/usr/include/time.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clock_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __clock_t clock_t; 29724: # 38 "/usr/include/time.h" 2 3 4 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_tm.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct tm 29724: { 29724: int tm_sec; 29724: int tm_min; 29724: int tm_hour; 29724: int tm_mday; 29724: int tm_mon; 29724: int tm_year; 29724: int tm_wday; 29724: int tm_yday; 29724: int tm_isdst; 29724: 29724: 29724: long int tm_gmtoff; 29724: const char *tm_zone; 29724: 29724: 29724: 29724: 29724: }; 29724: # 40 "/usr/include/time.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clockid_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __clockid_t clockid_t; 29724: # 47 "/usr/include/time.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/timer_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __timer_t timer_t; 29724: # 48 "/usr/include/time.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_itimerspec.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct itimerspec 29724: { 29724: struct timespec it_interval; 29724: struct timespec it_value; 29724: }; 29724: # 49 "/usr/include/time.h" 2 3 4 29724: struct sigevent; 29724: # 68 "/usr/include/time.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: extern clock_t clock (void) noexcept (true); 29724: # 85 "/usr/include/time.h" 3 4 29724: extern time_t time (time_t *__timer) noexcept (true) __asm__ ("" "__time64"); 29724: extern double difftime (time_t __time1, time_t __time0) noexcept (true) __asm__ ("" "__difftime64") 29724: ; 29724: extern time_t mktime (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 29724: # 99 "/usr/include/time.h" 3 4 29724: extern size_t strftime (char *__restrict __s, size_t __maxsize, 29724: const char *__restrict __format, 29724: const struct tm *__restrict __tp) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3, 4))); 29724: 29724: 29724: 29724: 29724: extern char *strptime (const char *__restrict __s, 29724: const char *__restrict __fmt, struct tm *__tp) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern size_t strftime_l (char *__restrict __s, size_t __maxsize, 29724: const char *__restrict __format, 29724: const struct tm *__restrict __tp, 29724: locale_t __loc) noexcept (true); 29724: 29724: 29724: 29724: extern char *strptime_l (const char *__restrict __s, 29724: const char *__restrict __fmt, struct tm *__tp, 29724: locale_t __loc) noexcept (true); 29724: # 140 "/usr/include/time.h" 3 4 29724: extern struct tm*gmtime (const time_t *__timer) noexcept (true) __asm__ ("" "__gmtime64"); 29724: extern struct tm *localtime (const time_t *__timer) noexcept (true) __asm__ ("" "__localtime64") 29724: ; 29724: # 163 "/usr/include/time.h" 3 4 29724: extern struct tm*gmtime_r (const time_t *__restrict __timer, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__gmtime64_r") 29724: 29724: ; 29724: 29724: extern struct tm*localtime_r (const time_t *__restrict __t, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__localtime64_r") 29724: 29724: ; 29724: # 179 "/usr/include/time.h" 3 4 29724: extern char *asctime (const struct tm *__tp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *ctime (const time_t *__timer) noexcept (true) __asm__ ("" "__ctime64"); 29724: # 197 "/usr/include/time.h" 3 4 29724: extern char *asctime_r (const struct tm *__restrict __tp, 29724: char *__restrict __buf) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *ctime_r (const time_t *__restrict __timer, char *__restrict __buf) noexcept (true) __asm__ ("" "__ctime64_r") 29724: ; 29724: # 217 "/usr/include/time.h" 3 4 29724: extern char *__tzname[2]; 29724: extern int __daylight; 29724: extern long int __timezone; 29724: 29724: 29724: 29724: 29724: extern char *tzname[2]; 29724: 29724: 29724: 29724: extern void tzset (void) noexcept (true); 29724: 29724: 29724: 29724: extern int daylight; 29724: extern long int timezone; 29724: # 249 "/usr/include/time.h" 3 4 29724: extern time_t timegm (struct tm *__tp) noexcept (true) __asm__ ("" "__timegm64"); 29724: # 266 "/usr/include/time.h" 3 4 29724: extern time_t timelocal (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 29724: 29724: 29724: 29724: 29724: extern int dysize (int __year) noexcept (true) __attribute__ ((__const__)); 29724: # 296 "/usr/include/time.h" 3 4 29724: extern int nanosleep (const struct timespec *__requested_time, struct timespec *__remaining) __asm__ ("" "__nanosleep64") 29724: 29724: ; 29724: extern int clock_getres (clockid_t __clock_id, struct timespec *__res) noexcept (true) __asm__ ("" "__clock_getres64") 29724: 29724: ; 29724: extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_gettime64") 29724: 29724: __attribute__ ((__nonnull__ (2))); 29724: extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_settime64") 29724: 29724: __attribute__ ((__nonnull__ (2))); 29724: # 328 "/usr/include/time.h" 3 4 29724: extern int clock_nanosleep (clockid_t __clock_id, int __flags, const struct timespec *__req, struct timespec *__rem) __asm__ ("" "__clock_nanosleep_time64") 29724: 29724: 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int timer_create (clockid_t __clock_id, 29724: struct sigevent *__restrict __evp, 29724: timer_t *__restrict __timerid) noexcept (true); 29724: 29724: 29724: extern int timer_delete (timer_t __timerid) noexcept (true); 29724: # 361 "/usr/include/time.h" 3 4 29724: extern int timer_settime (timer_t __timerid, int __flags, const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) noexcept (true) __asm__ ("" "__timer_settime64") 29724: 29724: 29724: ; 29724: 29724: extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) noexcept (true) __asm__ ("" "__timer_gettime64") 29724: 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int timer_getoverrun (timer_t __timerid) noexcept (true); 29724: # 387 "/usr/include/time.h" 3 4 29724: extern int timespec_get (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_get64") 29724: __attribute__ ((__nonnull__ (1))); 29724: # 403 "/usr/include/time.h" 3 4 29724: extern int timespec_getres (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_getres64") 29724: 29724: ; 29724: # 425 "/usr/include/time.h" 3 4 29724: extern int getdate_err; 29724: # 434 "/usr/include/time.h" 3 4 29724: extern struct tm *getdate (const char *__string); 29724: # 448 "/usr/include/time.h" 3 4 29724: extern int getdate_r (const char *__restrict __string, 29724: struct tm *__restrict __resbufp); 29724: 29724: 29724: } 29724: # 24 "/usr/include/pthread.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 1 3 4 29724: # 44 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 2 3 4 29724: # 45 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 1 3 4 29724: # 25 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 3 4 29724: typedef union 29724: { 29724: __extension__ unsigned long long int __value64; 29724: struct 29724: { 29724: unsigned int __low; 29724: unsigned int __high; 29724: } __value32; 29724: } __atomic_wide_counter; 29724: # 47 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29724: 29724: 29724: 29724: 29724: typedef struct __pthread_internal_list 29724: { 29724: struct __pthread_internal_list *__prev; 29724: struct __pthread_internal_list *__next; 29724: } __pthread_list_t; 29724: 29724: typedef struct __pthread_internal_slist 29724: { 29724: struct __pthread_internal_slist *__next; 29724: } __pthread_slist_t; 29724: # 76 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 29724: struct __pthread_mutex_s 29724: { 29724: int __lock ; 29724: unsigned int __count; 29724: int __owner; 29724: # 58 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 29724: int __kind; 29724: 29724: unsigned int __nusers; 29724: 29724: 29724: 29724: 29724: 29724: 29724: __extension__ union 29724: { 29724: int __spins; 29724: __pthread_slist_t __list; 29724: }; 29724: 29724: 29724: }; 29724: # 77 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29724: # 89 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 1 3 4 29724: # 29 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 29724: struct __pthread_rwlock_arch_t 29724: { 29724: unsigned int __readers; 29724: unsigned int __writers; 29724: unsigned int __wrphase_futex; 29724: unsigned int __writers_futex; 29724: unsigned int __pad3; 29724: unsigned int __pad4; 29724: # 45 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 29724: unsigned char __flags; 29724: unsigned char __shared; 29724: unsigned char __pad1; 29724: unsigned char __pad2; 29724: 29724: int __cur_writer; 29724: }; 29724: # 90 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29724: 29724: 29724: 29724: 29724: struct __pthread_cond_s 29724: { 29724: __atomic_wide_counter __wseq; 29724: __atomic_wide_counter __g1_start; 29724: unsigned int __g_refs[2] ; 29724: unsigned int __g_size[2]; 29724: unsigned int __g1_orig_size; 29724: unsigned int __wrefs; 29724: unsigned int __g_signals[2]; 29724: }; 29724: 29724: typedef unsigned int __tss_t; 29724: typedef unsigned long int __thrd_t; 29724: 29724: typedef struct 29724: { 29724: int __data ; 29724: } __once_flag; 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 2 3 4 29724: 29724: 29724: 29724: typedef unsigned long int pthread_t; 29724: 29724: 29724: 29724: 29724: typedef union 29724: { 29724: char __size[4]; 29724: int __align; 29724: } pthread_mutexattr_t; 29724: 29724: 29724: 29724: 29724: typedef union 29724: { 29724: char __size[4]; 29724: int __align; 29724: } pthread_condattr_t; 29724: 29724: 29724: 29724: typedef unsigned int pthread_key_t; 29724: 29724: 29724: 29724: typedef int pthread_once_t; 29724: 29724: 29724: union pthread_attr_t 29724: { 29724: char __size[36]; 29724: long int __align; 29724: }; 29724: 29724: typedef union pthread_attr_t pthread_attr_t; 29724: 29724: 29724: 29724: 29724: typedef union 29724: { 29724: struct __pthread_mutex_s __data; 29724: char __size[24]; 29724: long int __align; 29724: } pthread_mutex_t; 29724: 29724: 29724: typedef union 29724: { 29724: struct __pthread_cond_s __data; 29724: char __size[48]; 29724: __extension__ long long int __align; 29724: } pthread_cond_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef union 29724: { 29724: struct __pthread_rwlock_arch_t __data; 29724: char __size[32]; 29724: long int __align; 29724: } pthread_rwlock_t; 29724: 29724: typedef union 29724: { 29724: char __size[8]; 29724: long int __align; 29724: } pthread_rwlockattr_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef volatile int pthread_spinlock_t; 29724: 29724: 29724: 29724: 29724: typedef union 29724: { 29724: char __size[20]; 29724: long int __align; 29724: } pthread_barrier_t; 29724: 29724: typedef union 29724: { 29724: char __size[4]; 29724: int __align; 29724: } pthread_barrierattr_t; 29724: # 27 "/usr/include/pthread.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 1 3 4 29724: # 33 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 3 4 29724: typedef int __jmp_buf[64] __attribute__((__aligned__ (8))); 29724: # 28 "/usr/include/pthread.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 29 "/usr/include/pthread.h" 2 3 4 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__sigset_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: typedef struct 29724: { 29724: unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 29724: } __sigset_t; 29724: # 31 "/usr/include/pthread.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 3 4 29724: struct __jmp_buf_tag 29724: { 29724: 29724: 29724: 29724: 29724: __jmp_buf __jmpbuf; 29724: int __mask_was_saved; 29724: __sigset_t __saved_mask; 29724: }; 29724: # 32 "/usr/include/pthread.h" 2 3 4 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 3 4 29724: extern "C" { 29724: extern long int __sysconf (int __name) noexcept (true); 29724: } 29724: # 34 "/usr/include/pthread.h" 2 3 4 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_CREATE_JOINABLE, 29724: 29724: PTHREAD_CREATE_DETACHED 29724: 29724: }; 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_MUTEX_TIMED_NP, 29724: PTHREAD_MUTEX_RECURSIVE_NP, 29724: PTHREAD_MUTEX_ERRORCHECK_NP, 29724: PTHREAD_MUTEX_ADAPTIVE_NP 29724: 29724: , 29724: PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, 29724: PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, 29724: PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, 29724: PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL 29724: 29724: 29724: 29724: , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_MUTEX_STALLED, 29724: PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, 29724: PTHREAD_MUTEX_ROBUST, 29724: PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_PRIO_NONE, 29724: PTHREAD_PRIO_INHERIT, 29724: PTHREAD_PRIO_PROTECT 29724: }; 29724: # 104 "/usr/include/pthread.h" 3 4 29724: enum 29724: { 29724: PTHREAD_RWLOCK_PREFER_READER_NP, 29724: PTHREAD_RWLOCK_PREFER_WRITER_NP, 29724: PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 29724: PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP 29724: }; 29724: # 124 "/usr/include/pthread.h" 3 4 29724: enum 29724: { 29724: PTHREAD_INHERIT_SCHED, 29724: 29724: PTHREAD_EXPLICIT_SCHED 29724: 29724: }; 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_SCOPE_SYSTEM, 29724: 29724: PTHREAD_SCOPE_PROCESS 29724: 29724: }; 29724: 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_PROCESS_PRIVATE, 29724: 29724: PTHREAD_PROCESS_SHARED 29724: 29724: }; 29724: # 159 "/usr/include/pthread.h" 3 4 29724: struct _pthread_cleanup_buffer 29724: { 29724: void (*__routine) (void *); 29724: void *__arg; 29724: int __canceltype; 29724: struct _pthread_cleanup_buffer *__prev; 29724: }; 29724: 29724: 29724: enum 29724: { 29724: PTHREAD_CANCEL_ENABLE, 29724: 29724: PTHREAD_CANCEL_DISABLE 29724: 29724: }; 29724: enum 29724: { 29724: PTHREAD_CANCEL_DEFERRED, 29724: 29724: PTHREAD_CANCEL_ASYNCHRONOUS 29724: 29724: }; 29724: # 197 "/usr/include/pthread.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: extern int pthread_create (pthread_t *__restrict __newthread, 29724: const pthread_attr_t *__restrict __attr, 29724: void *(*__start_routine) (void *), 29724: void *__restrict __arg) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_join (pthread_t __th, void **__thread_return); 29724: 29724: 29724: 29724: 29724: extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) noexcept (true); 29724: # 248 "/usr/include/pthread.h" 3 4 29724: extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, const struct timespec *__abstime) __asm__ ("" "__pthread_timedjoin_np64") 29724: 29724: 29724: ; 29724: 29724: extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, clockid_t __clockid, const struct timespec *__abstime) __asm__ ("" "__pthread_clockjoin_np64") 29724: 29724: 29724: 29724: ; 29724: # 269 "/usr/include/pthread.h" 3 4 29724: extern int pthread_detach (pthread_t __th) noexcept (true); 29724: 29724: 29724: 29724: extern pthread_t pthread_self (void) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) 29724: noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_init (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_attr_destroy (pthread_attr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, 29724: int *__detachstate) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, 29724: int __detachstate) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, 29724: size_t *__guardsize) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setguardsize (pthread_attr_t *__attr, 29724: size_t __guardsize) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, 29724: struct sched_param *__restrict __param) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, 29724: const struct sched_param *__restrict 29724: __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict 29724: __attr, int *__restrict __policy) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 29724: __attr, int *__restrict __inherit) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, 29724: int __inherit) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, 29724: int *__restrict __scope) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict 29724: __attr, void **__restrict __stackaddr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, 29724: void *__stackaddr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); 29724: 29724: 29724: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict 29724: __attr, size_t *__restrict __stacksize) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_setstacksize (pthread_attr_t *__attr, 29724: size_t __stacksize) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, 29724: void **__restrict __stackaddr, 29724: size_t *__restrict __stacksize) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, 29724: size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, 29724: size_t __cpusetsize, 29724: const cpu_set_t *__cpuset) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, 29724: size_t __cpusetsize, 29724: cpu_set_t *__cpuset) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: extern int pthread_getattr_default_np (pthread_attr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr, 29724: const __sigset_t *sigmask); 29724: 29724: 29724: 29724: 29724: extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr, 29724: __sigset_t *sigmask); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_setattr_default_np (const pthread_attr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_setschedparam (pthread_t __target_thread, int __policy, 29724: const struct sched_param *__param) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: extern int pthread_getschedparam (pthread_t __target_thread, 29724: int *__restrict __policy, 29724: struct sched_param *__restrict __param) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29724: 29724: 29724: extern int pthread_setschedprio (pthread_t __target_thread, int __prio) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int pthread_getname_np (pthread_t __target_thread, char *__buf, 29724: size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: extern int pthread_setname_np (pthread_t __target_thread, const char *__name) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_getconcurrency (void) noexcept (true); 29724: 29724: 29724: extern int pthread_setconcurrency (int __level) noexcept (true); 29724: 29724: 29724: 29724: extern int pthread_yield (void) noexcept (true); 29724: 29724: extern int pthread_yield (void) noexcept (true) __asm__ ("" "sched_yield") 29724: __attribute__ ((__deprecated__ ("pthread_yield is deprecated, use sched_yield instead"))) 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, 29724: const cpu_set_t *__cpuset) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, 29724: cpu_set_t *__cpuset) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: # 509 "/usr/include/pthread.h" 3 4 29724: extern int pthread_once (pthread_once_t *__once_control, 29724: void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); 29724: # 521 "/usr/include/pthread.h" 3 4 29724: extern int pthread_setcancelstate (int __state, int *__oldstate); 29724: 29724: 29724: 29724: extern int pthread_setcanceltype (int __type, int *__oldtype); 29724: 29724: 29724: extern int pthread_cancel (pthread_t __th); 29724: 29724: 29724: 29724: 29724: extern void pthread_testcancel (void); 29724: 29724: 29724: 29724: 29724: struct __cancel_jmp_buf_tag 29724: { 29724: __jmp_buf __cancel_jmp_buf; 29724: int __mask_was_saved; 29724: }; 29724: 29724: typedef struct 29724: { 29724: struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; 29724: void *__pad[4]; 29724: } __pthread_unwind_buf_t __attribute__ ((__aligned__)); 29724: # 557 "/usr/include/pthread.h" 3 4 29724: struct __pthread_cleanup_frame 29724: { 29724: void (*__cancel_routine) (void *); 29724: void *__cancel_arg; 29724: int __do_it; 29724: int __cancel_type; 29724: }; 29724: 29724: 29724: 29724: 29724: class __pthread_cleanup_class 29724: { 29724: void (*__cancel_routine) (void *); 29724: void *__cancel_arg; 29724: int __do_it; 29724: int __cancel_type; 29724: 29724: public: 29724: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) 29724: : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } 29724: ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } 29724: void __setdoit (int __newval) { __do_it = __newval; } 29724: void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, 29724: &__cancel_type); } 29724: void __restore () const { pthread_setcanceltype (__cancel_type, 0); } 29724: }; 29724: # 766 "/usr/include/pthread.h" 3 4 29724: extern int __sigsetjmp_cancel (struct __cancel_jmp_buf_tag __env[1], int __savemask) noexcept (true) __asm__ ("" "__sigsetjmp") 29724: 29724: 29724: __attribute__ ((__returns_twice__)); 29724: # 781 "/usr/include/pthread.h" 3 4 29724: extern int pthread_mutex_init (pthread_mutex_t *__mutex, 29724: const pthread_mutexattr_t *__mutexattr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutex_lock (pthread_mutex_t *__mutex) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 805 "/usr/include/pthread.h" 3 4 29724: extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_timedlock64") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2))); 29724: # 823 "/usr/include/pthread.h" 3 4 29724: extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_clocklock64") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_mutex_getprioceiling (const pthread_mutex_t * 29724: __restrict __mutex, 29724: int *__restrict __prioceiling) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, 29724: int __prioceiling, 29724: int *__restrict __old_ceiling) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: 29724: extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutex_consistent_np (pthread_mutex_t *) noexcept (true) __asm__ ("" "pthread_mutex_consistent") 29724: __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__deprecated__ ("pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent"))) 29724: ; 29724: # 874 "/usr/include/pthread.h" 3 4 29724: extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * 29724: __restrict __attr, 29724: int *__restrict __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, 29724: int __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict 29724: __attr, int *__restrict __kind) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * 29724: __restrict __attr, 29724: int *__restrict __protocol) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, 29724: int __protocol) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * 29724: __restrict __attr, 29724: int *__restrict __prioceiling) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, 29724: int __prioceiling) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, 29724: int *__robustness) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_mutexattr_getrobust_np (pthread_mutexattr_t *, int *) noexcept (true) __asm__ ("" "pthread_mutexattr_getrobust") 29724: 29724: __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__deprecated__ ("pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust"))) 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, 29724: int __robustness) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *, int) noexcept (true) __asm__ ("" "pthread_mutexattr_setrobust") 29724: 29724: __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__deprecated__ ("pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust"))) 29724: ; 29724: # 967 "/usr/include/pthread.h" 3 4 29724: extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, 29724: const pthread_rwlockattr_t *__restrict 29724: __attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 991 "/usr/include/pthread.h" 3 4 29724: extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedrdlock64") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2))); 29724: # 1010 "/usr/include/pthread.h" 3 4 29724: extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockrdlock64") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 1038 "/usr/include/pthread.h" 3 4 29724: extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedwrlock64") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2))); 29724: # 1058 "/usr/include/pthread.h" 3 4 29724: extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockwrlock64") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * 29724: __restrict __attr, 29724: int *__restrict __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, 29724: int __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * 29724: __restrict __attr, 29724: int *__restrict __pref) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, 29724: int __pref) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_cond_init (pthread_cond_t *__restrict __cond, 29724: const pthread_condattr_t *__restrict __cond_attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_cond_destroy (pthread_cond_t *__cond) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_cond_signal (pthread_cond_t *__cond) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_cond_broadcast (pthread_cond_t *__cond) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, 29724: pthread_mutex_t *__restrict __mutex) 29724: __attribute__ ((__nonnull__ (1, 2))); 29724: # 1151 "/usr/include/pthread.h" 3 4 29724: extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) __asm__ ("" "__pthread_cond_timedwait64") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2, 3))); 29724: # 1178 "/usr/include/pthread.h" 3 4 29724: extern int pthread_cond_clockwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, __clockid_t __clock_id, const struct timespec *__restrict __abstime) __asm__ ("" "__pthread_cond_clockwait64") 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2, 4))); 29724: # 1194 "/usr/include/pthread.h" 3 4 29724: extern int pthread_condattr_init (pthread_condattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_condattr_destroy (pthread_condattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_condattr_getpshared (const pthread_condattr_t * 29724: __restrict __attr, 29724: int *__restrict __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, 29724: int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_condattr_getclock (const pthread_condattr_t * 29724: __restrict __attr, 29724: __clockid_t *__restrict __clock_id) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_condattr_setclock (pthread_condattr_t *__attr, 29724: __clockid_t __clock_id) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 1230 "/usr/include/pthread.h" 3 4 29724: extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_spin_destroy (pthread_spinlock_t *__lock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_spin_lock (pthread_spinlock_t *__lock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_spin_trylock (pthread_spinlock_t *__lock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_spin_unlock (pthread_spinlock_t *__lock) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, 29724: const pthread_barrierattr_t *__restrict 29724: __attr, unsigned int __count) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_barrier_wait (pthread_barrier_t *__barrier) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * 29724: __restrict __attr, 29724: int *__restrict __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, 29724: int __pshared) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 1297 "/usr/include/pthread.h" 3 4 29724: extern int pthread_key_create (pthread_key_t *__key, 29724: void (*__destr_function) (void *)) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int pthread_key_delete (pthread_key_t __key) noexcept (true); 29724: 29724: 29724: extern void *pthread_getspecific (pthread_key_t __key) noexcept (true); 29724: 29724: 29724: extern int pthread_setspecific (pthread_key_t __key, 29724: const void *__pointer) 29724: noexcept (true) __attribute__ ((__access__ (__none__, 2))); 29724: 29724: 29724: 29724: 29724: extern int pthread_getcpuclockid (pthread_t __thread_id, 29724: __clockid_t *__clock_id) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: # 1332 "/usr/include/pthread.h" 3 4 29724: extern int pthread_atfork (void (*__prepare) (void), 29724: void (*__parent) (void), 29724: void (*__child) (void)) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) noexcept (true) 29724: { 29724: return __thread1 == __thread2; 29724: } 29724: 29724: 29724: } 29724: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 2 3 29724: # 47 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: typedef pthread_t __gthread_t; 29724: typedef pthread_key_t __gthread_key_t; 29724: typedef pthread_once_t __gthread_once_t; 29724: typedef pthread_mutex_t __gthread_mutex_t; 29724: 29724: 29724: 29724: typedef pthread_mutex_t __gthread_recursive_mutex_t; 29724: typedef pthread_cond_t __gthread_cond_t; 29724: typedef struct timespec __gthread_time_t; 29724: # 108 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 312 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: static inline int 29724: __gthread_active_p (void) 29724: { 29724: return 1; 29724: } 29724: # 672 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: static inline int 29724: __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), 29724: void *__args) 29724: { 29724: return pthread_create (__threadid, __null, __func, __args); 29724: } 29724: 29724: static inline int 29724: __gthread_join (__gthread_t __threadid, void **__value_ptr) 29724: { 29724: return pthread_join (__threadid, __value_ptr); 29724: } 29724: 29724: static inline int 29724: __gthread_detach (__gthread_t __threadid) 29724: { 29724: return pthread_detach (__threadid); 29724: } 29724: 29724: static inline int 29724: __gthread_equal (__gthread_t __t1, __gthread_t __t2) 29724: { 29724: return pthread_equal (__t1, __t2); 29724: } 29724: 29724: static inline __gthread_t 29724: __gthread_self (void) 29724: { 29724: return pthread_self (); 29724: } 29724: 29724: static inline int 29724: __gthread_yield (void) 29724: { 29724: return sched_yield (); 29724: } 29724: 29724: static inline int 29724: __gthread_once (__gthread_once_t *__once, void (*__func) (void)) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_once (__once, __func); 29724: else 29724: return -1; 29724: } 29724: 29724: static inline int 29724: __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) 29724: { 29724: return pthread_key_create (__key, __dtor); 29724: } 29724: 29724: static inline int 29724: __gthread_key_delete (__gthread_key_t __key) 29724: { 29724: return pthread_key_delete (__key); 29724: } 29724: 29724: static inline void * 29724: __gthread_getspecific (__gthread_key_t __key) 29724: { 29724: return pthread_getspecific (__key); 29724: } 29724: 29724: static inline int 29724: __gthread_setspecific (__gthread_key_t __key, const void *__ptr) 29724: { 29724: return pthread_setspecific (__key, __ptr); 29724: } 29724: 29724: static inline void 29724: __gthread_mutex_init_function (__gthread_mutex_t *__mutex) 29724: { 29724: if (__gthread_active_p ()) 29724: pthread_mutex_init (__mutex, __null); 29724: } 29724: 29724: static inline int 29724: __gthread_mutex_destroy (__gthread_mutex_t *__mutex) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_mutex_destroy (__mutex); 29724: else 29724: return 0; 29724: } 29724: 29724: static inline int 29724: __gthread_mutex_lock (__gthread_mutex_t *__mutex) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_mutex_lock (__mutex); 29724: else 29724: return 0; 29724: } 29724: 29724: static inline int 29724: __gthread_mutex_trylock (__gthread_mutex_t *__mutex) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_mutex_trylock (__mutex); 29724: else 29724: return 0; 29724: } 29724: 29724: 29724: static inline int 29724: __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, 29724: const __gthread_time_t *__abs_timeout) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_mutex_timedlock (__mutex, __abs_timeout); 29724: else 29724: return 0; 29724: } 29724: 29724: 29724: static inline int 29724: __gthread_mutex_unlock (__gthread_mutex_t *__mutex) 29724: { 29724: if (__gthread_active_p ()) 29724: return pthread_mutex_unlock (__mutex); 29724: else 29724: return 0; 29724: } 29724: # 821 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: static inline int 29724: __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) 29724: { 29724: return __gthread_mutex_lock (__mutex); 29724: } 29724: 29724: static inline int 29724: __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) 29724: { 29724: return __gthread_mutex_trylock (__mutex); 29724: } 29724: 29724: 29724: static inline int 29724: __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, 29724: const __gthread_time_t *__abs_timeout) 29724: { 29724: return __gthread_mutex_timedlock (__mutex, __abs_timeout); 29724: } 29724: 29724: 29724: static inline int 29724: __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) 29724: { 29724: return __gthread_mutex_unlock (__mutex); 29724: } 29724: 29724: static inline int 29724: __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) 29724: { 29724: return __gthread_mutex_destroy (__mutex); 29724: } 29724: # 863 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29724: static inline int 29724: __gthread_cond_broadcast (__gthread_cond_t *__cond) 29724: { 29724: return pthread_cond_broadcast (__cond); 29724: } 29724: 29724: static inline int 29724: __gthread_cond_signal (__gthread_cond_t *__cond) 29724: { 29724: return pthread_cond_signal (__cond); 29724: } 29724: 29724: static inline int 29724: __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) 29724: { 29724: return pthread_cond_wait (__cond, __mutex); 29724: } 29724: 29724: static inline int 29724: __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, 29724: const __gthread_time_t *__abs_timeout) 29724: { 29724: return pthread_cond_timedwait (__cond, __mutex, __abs_timeout); 29724: } 29724: 29724: static inline int 29724: __gthread_cond_wait_recursive (__gthread_cond_t *__cond, 29724: __gthread_recursive_mutex_t *__mutex) 29724: { 29724: return __gthread_cond_wait (__cond, __mutex); 29724: } 29724: 29724: static inline int 29724: __gthread_cond_destroy (__gthread_cond_t* __cond) 29724: { 29724: return pthread_cond_destroy (__cond); 29724: } 29724: # 158 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 2 3 29724: 29724: 29724: #pragma GCC visibility pop 29724: # 36 "/usr/include/c++/14/ext/atomicity.h" 2 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 1 3 29724: # 32 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 3 29724: typedef int _Atomic_word; 29724: # 37 "/usr/include/c++/14/ext/atomicity.h" 2 3 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: extern char __libc_single_threaded; 29724: 29724: } 29724: # 39 "/usr/include/c++/14/ext/atomicity.h" 2 3 29724: 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: inline bool 29724: __is_single_threaded() noexcept 29724: { 29724: 29724: 29724: 29724: return ::__libc_single_threaded; 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline _Atomic_word 29724: __attribute__((__always_inline__)) 29724: __exchange_and_add(volatile _Atomic_word* __mem, int __val) 29724: { return __atomic_fetch_add(__mem, __val, 4); } 29724: 29724: inline void 29724: __attribute__((__always_inline__)) 29724: __atomic_add(volatile _Atomic_word* __mem, int __val) 29724: { __atomic_fetch_add(__mem, __val, 4); } 29724: # 80 "/usr/include/c++/14/ext/atomicity.h" 3 29724: inline _Atomic_word 29724: __attribute__((__always_inline__)) 29724: __exchange_and_add_single(_Atomic_word* __mem, int __val) 29724: { 29724: _Atomic_word __result = *__mem; 29724: *__mem += __val; 29724: return __result; 29724: } 29724: 29724: inline void 29724: __attribute__((__always_inline__)) 29724: __atomic_add_single(_Atomic_word* __mem, int __val) 29724: { *__mem += __val; } 29724: 29724: inline _Atomic_word 29724: __attribute__ ((__always_inline__)) 29724: __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) 29724: { 29724: if (__is_single_threaded()) 29724: return __exchange_and_add_single(__mem, __val); 29724: else 29724: return __exchange_and_add(__mem, __val); 29724: } 29724: 29724: inline void 29724: __attribute__ ((__always_inline__)) 29724: __atomic_add_dispatch(_Atomic_word* __mem, int __val) 29724: { 29724: if (__is_single_threaded()) 29724: __atomic_add_single(__mem, __val); 29724: else 29724: __atomic_add(__mem, __val); 29724: } 29724: 29724: 29724: } 29724: # 62 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29724: # 1 "/usr/include/c++/14/ext/concurrence.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/concurrence.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/concurrence.h" 3 29724: 29724: # 1 "/usr/include/c++/14/exception" 1 3 29724: # 33 "/usr/include/c++/14/exception" 3 29724: 29724: # 34 "/usr/include/c++/14/exception" 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 40 "/usr/include/c++/14/exception" 2 3 29724: 29724: extern "C++" { 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: # 54 "/usr/include/c++/14/exception" 3 29724: class bad_exception : public exception 29724: { 29724: public: 29724: bad_exception() noexcept { } 29724: 29724: 29724: 29724: virtual ~bad_exception() noexcept; 29724: 29724: 29724: virtual const char* 29724: what() const noexcept; 29724: }; 29724: 29724: 29724: typedef void (*terminate_handler) (); 29724: 29724: 29724: terminate_handler set_terminate(terminate_handler) noexcept; 29724: 29724: 29724: 29724: terminate_handler get_terminate() noexcept; 29724: 29724: 29724: 29724: 29724: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 29724: 29724: 29724: 29724: typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((__deprecated__)) 29724: unexpected_handler set_unexpected(unexpected_handler) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((__deprecated__)) 29724: unexpected_handler get_unexpected() noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((__deprecated__)) 29724: void unexpected() __attribute__ ((__noreturn__,__cold__)); 29724: # 124 "/usr/include/c++/14/exception" 3 29724: __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) 29724: bool uncaught_exception() noexcept __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: int uncaught_exceptions() noexcept __attribute__ ((__pure__)); 29724: 29724: 29724: 29724: } 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 158 "/usr/include/c++/14/exception" 3 29724: void __verbose_terminate_handler(); 29724: 29724: 29724: } 29724: 29724: } 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/exception_ptr.h" 1 3 29724: # 36 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: # 1 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 1 3 29724: # 34 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29724: 29724: # 35 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29724: 29724: #pragma GCC visibility push(default) 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 39 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 2 3 29724: # 50 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29724: namespace std 29724: { 29724: class type_info; 29724: } 29724: 29724: namespace __cxxabiv1 29724: { 29724: struct __cxa_refcounted_exception; 29724: 29724: extern "C" 29724: { 29724: 29724: void* 29724: __cxa_allocate_exception(size_t) noexcept; 29724: 29724: void 29724: __cxa_free_exception(void*) noexcept; 29724: 29724: 29724: __cxa_refcounted_exception* 29724: __cxa_init_primary_exception(void *__object, std::type_info *__tinfo, 29724: void ( *__dest) (void *)) 29724: noexcept; 29724: 29724: } 29724: } 29724: 29724: 29724: 29724: #pragma GCC visibility pop 29724: # 37 "/usr/include/c++/14/bits/exception_ptr.h" 2 3 29724: # 50 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: extern "C++" { 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: class type_info; 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __exception_ptr 29724: { 29724: class exception_ptr; 29724: } 29724: 29724: using __exception_ptr::exception_ptr; 29724: # 75 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: exception_ptr current_exception() noexcept; 29724: 29724: template 29724: exception_ptr make_exception_ptr(_Ex) noexcept; 29724: 29724: 29724: void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); 29724: 29724: namespace __exception_ptr 29724: { 29724: using std::rethrow_exception; 29724: # 97 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: class exception_ptr 29724: { 29724: void* _M_exception_object; 29724: 29724: explicit exception_ptr(void* __e) noexcept; 29724: 29724: void _M_addref() noexcept; 29724: void _M_release() noexcept; 29724: 29724: void *_M_get() const noexcept __attribute__ ((__pure__)); 29724: 29724: friend exception_ptr std::current_exception() noexcept; 29724: friend void std::rethrow_exception(exception_ptr); 29724: template 29724: friend exception_ptr std::make_exception_ptr(_Ex) noexcept; 29724: 29724: public: 29724: exception_ptr() noexcept; 29724: 29724: exception_ptr(const exception_ptr&) noexcept; 29724: 29724: 29724: exception_ptr(nullptr_t) noexcept 29724: : _M_exception_object(nullptr) 29724: { } 29724: 29724: exception_ptr(exception_ptr&& __o) noexcept 29724: : _M_exception_object(__o._M_exception_object) 29724: { __o._M_exception_object = nullptr; } 29724: # 135 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: exception_ptr& 29724: operator=(const exception_ptr&) noexcept; 29724: 29724: 29724: exception_ptr& 29724: operator=(exception_ptr&& __o) noexcept 29724: { 29724: exception_ptr(static_cast(__o)).swap(*this); 29724: return *this; 29724: } 29724: 29724: 29724: ~exception_ptr() noexcept; 29724: 29724: void 29724: swap(exception_ptr&) noexcept; 29724: # 161 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: explicit operator bool() const noexcept 29724: { return _M_exception_object; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const exception_ptr& __x, const exception_ptr& __y) 29724: noexcept 29724: { return __x._M_exception_object == __y._M_exception_object; } 29724: 29724: friend bool 29724: operator!=(const exception_ptr& __x, const exception_ptr& __y) 29724: noexcept 29724: { return __x._M_exception_object != __y._M_exception_object; } 29724: 29724: 29724: const class std::type_info* 29724: __cxa_exception_type() const noexcept 29724: __attribute__ ((__pure__)); 29724: }; 29724: 29724: 29724: inline 29724: exception_ptr::exception_ptr() noexcept 29724: : _M_exception_object(0) 29724: { } 29724: 29724: 29724: inline 29724: exception_ptr::exception_ptr(const exception_ptr& __other) 29724: noexcept 29724: : _M_exception_object(__other._M_exception_object) 29724: { 29724: if (_M_exception_object) 29724: _M_addref(); 29724: } 29724: 29724: 29724: inline 29724: exception_ptr::~exception_ptr() noexcept 29724: { 29724: if (_M_exception_object) 29724: _M_release(); 29724: } 29724: 29724: 29724: inline exception_ptr& 29724: exception_ptr::operator=(const exception_ptr& __other) noexcept 29724: { 29724: exception_ptr(__other).swap(*this); 29724: return *this; 29724: } 29724: 29724: 29724: inline void 29724: exception_ptr::swap(exception_ptr &__other) noexcept 29724: { 29724: void *__tmp = _M_exception_object; 29724: _M_exception_object = __other._M_exception_object; 29724: __other._M_exception_object = __tmp; 29724: } 29724: 29724: 29724: inline void 29724: swap(exception_ptr& __lhs, exception_ptr& __rhs) 29724: { __lhs.swap(__rhs); } 29724: 29724: 29724: template 29724: 29724: inline void 29724: __dest_thunk(void* __x) 29724: { static_cast<_Ex*>(__x)->~_Ex(); } 29724: 29724: 29724: } 29724: 29724: using __exception_ptr::swap; 29724: 29724: 29724: 29724: template 29724: exception_ptr 29724: make_exception_ptr(_Ex __ex) noexcept 29724: { 29724: 29724: using _Ex2 = typename decay<_Ex>::type; 29724: void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); 29724: (void) __cxxabiv1::__cxa_init_primary_exception( 29724: __e, const_cast(&typeid(_Ex)), 29724: __exception_ptr::__dest_thunk<_Ex2>); 29724: try 29724: { 29724: ::new (__e) _Ex2(__ex); 29724: return exception_ptr(__e); 29724: } 29724: catch(...) 29724: { 29724: __cxxabiv1::__cxa_free_exception(__e); 29724: return current_exception(); 29724: } 29724: # 276 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: } 29724: # 290 "/usr/include/c++/14/bits/exception_ptr.h" 3 29724: } 29724: 29724: } 29724: # 167 "/usr/include/c++/14/exception" 2 3 29724: # 1 "/usr/include/c++/14/bits/nested_exception.h" 1 3 29724: # 40 "/usr/include/c++/14/bits/nested_exception.h" 3 29724: extern "C++" { 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: # 59 "/usr/include/c++/14/bits/nested_exception.h" 3 29724: class nested_exception 29724: { 29724: exception_ptr _M_ptr; 29724: 29724: public: 29724: 29724: nested_exception() noexcept : _M_ptr(current_exception()) { } 29724: 29724: nested_exception(const nested_exception&) noexcept = default; 29724: 29724: nested_exception& operator=(const nested_exception&) noexcept = default; 29724: 29724: virtual ~nested_exception() noexcept; 29724: 29724: 29724: [[noreturn]] 29724: void 29724: rethrow_nested() const 29724: { 29724: if (_M_ptr) 29724: rethrow_exception(_M_ptr); 29724: std::terminate(); 29724: } 29724: 29724: 29724: exception_ptr 29724: nested_ptr() const noexcept 29724: { return _M_ptr; } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct _Nested_exception : public _Except, public nested_exception 29724: { 29724: explicit _Nested_exception(const _Except& __ex) 29724: : _Except(__ex) 29724: { } 29724: 29724: explicit _Nested_exception(_Except&& __ex) 29724: : _Except(static_cast<_Except&&>(__ex)) 29724: { } 29724: }; 29724: # 145 "/usr/include/c++/14/bits/nested_exception.h" 3 29724: template 29724: [[noreturn]] 29724: inline void 29724: throw_with_nested(_Tp&& __t) 29724: { 29724: using _Up = typename decay<_Tp>::type; 29724: using _CopyConstructible 29724: = __and_, is_move_constructible<_Up>>; 29724: static_assert(_CopyConstructible::value, 29724: "throw_with_nested argument must be CopyConstructible"); 29724: 29724: 29724: if constexpr (is_class_v<_Up>) 29724: if constexpr (!is_final_v<_Up>) 29724: if constexpr (!is_base_of_v) 29724: throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; 29724: throw std::forward<_Tp>(__t); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 203 "/usr/include/c++/14/bits/nested_exception.h" 3 29724: template 29724: 29724: 29724: 29724: inline void 29724: rethrow_if_nested(const _Ex& __ex) 29724: { 29724: const _Ex* __ptr = __builtin_addressof(__ex); 29724: # 223 "/usr/include/c++/14/bits/nested_exception.h" 3 29724: if constexpr (!is_polymorphic_v<_Ex>) 29724: return; 29724: else if constexpr (is_base_of_v 29724: && !is_convertible_v<_Ex*, nested_exception*>) 29724: return; 29724: 29724: 29724: 29724: 29724: else if (auto __ne_ptr = dynamic_cast(__ptr)) 29724: __ne_ptr->rethrow_nested(); 29724: 29724: } 29724: 29724: 29724: } 29724: 29724: } 29724: # 168 "/usr/include/c++/14/exception" 2 3 29724: # 35 "/usr/include/c++/14/ext/concurrence.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; 29724: 29724: 29724: 29724: inline const _Lock_policy __default_lock_policy = 29724: 29724: 29724: 29724: _S_atomic; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class __concurrence_lock_error : public std::exception 29724: { 29724: public: 29724: virtual char const* 29724: what() const throw() 29724: { return "__gnu_cxx::__concurrence_lock_error"; } 29724: }; 29724: 29724: class __concurrence_unlock_error : public std::exception 29724: { 29724: public: 29724: virtual char const* 29724: what() const throw() 29724: { return "__gnu_cxx::__concurrence_unlock_error"; } 29724: }; 29724: 29724: class __concurrence_broadcast_error : public std::exception 29724: { 29724: public: 29724: virtual char const* 29724: what() const throw() 29724: { return "__gnu_cxx::__concurrence_broadcast_error"; } 29724: }; 29724: 29724: class __concurrence_wait_error : public std::exception 29724: { 29724: public: 29724: virtual char const* 29724: what() const throw() 29724: { return "__gnu_cxx::__concurrence_wait_error"; } 29724: }; 29724: 29724: 29724: inline void 29724: __throw_concurrence_lock_error() 29724: { (throw (__concurrence_lock_error())); } 29724: 29724: inline void 29724: __throw_concurrence_unlock_error() 29724: { (throw (__concurrence_unlock_error())); } 29724: 29724: 29724: inline void 29724: __throw_concurrence_broadcast_error() 29724: { (throw (__concurrence_broadcast_error())); } 29724: 29724: inline void 29724: __throw_concurrence_wait_error() 29724: { (throw (__concurrence_wait_error())); } 29724: 29724: 29724: class __mutex 29724: { 29724: private: 29724: 29724: __gthread_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 29724: 29724: 29724: 29724: 29724: __mutex(const __mutex&); 29724: __mutex& operator=(const __mutex&); 29724: 29724: public: 29724: __mutex() 29724: { 29724: 29724: 29724: 29724: 29724: } 29724: # 144 "/usr/include/c++/14/ext/concurrence.h" 3 29724: void lock() 29724: { 29724: 29724: if (__gthread_active_p()) 29724: { 29724: if (__gthread_mutex_lock(&_M_mutex) != 0) 29724: __throw_concurrence_lock_error(); 29724: } 29724: 29724: } 29724: 29724: void unlock() 29724: { 29724: 29724: if (__gthread_active_p()) 29724: { 29724: if (__gthread_mutex_unlock(&_M_mutex) != 0) 29724: __throw_concurrence_unlock_error(); 29724: } 29724: 29724: } 29724: 29724: __gthread_mutex_t* gthread_mutex(void) 29724: { return &_M_mutex; } 29724: }; 29724: 29724: class __recursive_mutex 29724: { 29724: private: 29724: 29724: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 29724: 29724: 29724: 29724: 29724: __recursive_mutex(const __recursive_mutex&); 29724: __recursive_mutex& operator=(const __recursive_mutex&); 29724: 29724: public: 29724: __recursive_mutex() 29724: { 29724: 29724: 29724: 29724: 29724: } 29724: # 199 "/usr/include/c++/14/ext/concurrence.h" 3 29724: void lock() 29724: { 29724: 29724: if (__gthread_active_p()) 29724: { 29724: if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) 29724: __throw_concurrence_lock_error(); 29724: } 29724: 29724: } 29724: 29724: void unlock() 29724: { 29724: 29724: if (__gthread_active_p()) 29724: { 29724: if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) 29724: __throw_concurrence_unlock_error(); 29724: } 29724: 29724: } 29724: 29724: __gthread_recursive_mutex_t* gthread_recursive_mutex(void) 29724: { return &_M_mutex; } 29724: }; 29724: 29724: 29724: 29724: 29724: class __scoped_lock 29724: { 29724: public: 29724: typedef __mutex __mutex_type; 29724: 29724: private: 29724: __mutex_type& _M_device; 29724: 29724: __scoped_lock(const __scoped_lock&); 29724: __scoped_lock& operator=(const __scoped_lock&); 29724: 29724: public: 29724: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) 29724: { _M_device.lock(); } 29724: 29724: ~__scoped_lock() throw() 29724: { _M_device.unlock(); } 29724: }; 29724: 29724: 29724: class __cond 29724: { 29724: private: 29724: 29724: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 29724: 29724: 29724: 29724: 29724: __cond(const __cond&); 29724: __cond& operator=(const __cond&); 29724: 29724: public: 29724: __cond() 29724: { 29724: 29724: 29724: 29724: 29724: } 29724: # 277 "/usr/include/c++/14/ext/concurrence.h" 3 29724: void broadcast() 29724: { 29724: 29724: if (__gthread_active_p()) 29724: { 29724: if (__gthread_cond_broadcast(&_M_cond) != 0) 29724: __throw_concurrence_broadcast_error(); 29724: } 29724: 29724: } 29724: 29724: void wait(__mutex *mutex) 29724: { 29724: 29724: { 29724: if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) 29724: __throw_concurrence_wait_error(); 29724: } 29724: 29724: } 29724: 29724: void wait_recursive(__recursive_mutex *mutex) 29724: { 29724: 29724: { 29724: if (__gthread_cond_wait_recursive(&_M_cond, 29724: mutex->gthread_recursive_mutex()) 29724: != 0) 29724: __throw_concurrence_wait_error(); 29724: } 29724: 29724: } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 63 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: # 75 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template class auto_ptr; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: 29724: 29724: class bad_weak_ptr : public std::exception 29724: { 29724: public: 29724: virtual char const* what() const noexcept; 29724: 29724: virtual ~bad_weak_ptr() noexcept; 29724: }; 29724: 29724: 29724: inline void 29724: __throw_bad_weak_ptr() 29724: { (throw (bad_weak_ptr())); } 29724: 29724: using __gnu_cxx::_Lock_policy; 29724: using __gnu_cxx::__default_lock_policy; 29724: using __gnu_cxx::_S_single; 29724: using __gnu_cxx::_S_mutex; 29724: using __gnu_cxx::_S_atomic; 29724: 29724: 29724: template<_Lock_policy _Lp> 29724: class _Mutex_base 29724: { 29724: protected: 29724: 29724: enum { _S_need_barriers = 0 }; 29724: }; 29724: 29724: template<> 29724: class _Mutex_base<_S_mutex> 29724: : public __gnu_cxx::__mutex 29724: { 29724: protected: 29724: 29724: 29724: 29724: enum { _S_need_barriers = 1 }; 29724: }; 29724: 29724: template<_Lock_policy _Lp = __default_lock_policy> 29724: class _Sp_counted_base 29724: : public _Mutex_base<_Lp> 29724: { 29724: public: 29724: _Sp_counted_base() noexcept 29724: : _M_use_count(1), _M_weak_count(1) { } 29724: 29724: virtual 29724: ~_Sp_counted_base() noexcept 29724: { } 29724: 29724: 29724: 29724: virtual void 29724: _M_dispose() noexcept = 0; 29724: 29724: 29724: virtual void 29724: _M_destroy() noexcept 29724: { delete this; } 29724: 29724: virtual void* 29724: _M_get_deleter(const std::type_info&) noexcept = 0; 29724: 29724: 29724: void 29724: _M_add_ref_copy() 29724: { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } 29724: 29724: 29724: void 29724: _M_add_ref_lock() 29724: { 29724: if (!_M_add_ref_lock_nothrow()) 29724: __throw_bad_weak_ptr(); 29724: } 29724: 29724: 29724: bool 29724: _M_add_ref_lock_nothrow() noexcept; 29724: 29724: 29724: void 29724: _M_release() noexcept; 29724: 29724: 29724: void 29724: _M_release_last_use() noexcept 29724: { 29724: ; 29724: _M_dispose(); 29724: 29724: 29724: 29724: 29724: if (_Mutex_base<_Lp>::_S_need_barriers) 29724: { 29724: __atomic_thread_fence (4); 29724: } 29724: 29724: 29724: ; 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, 29724: -1) == 1) 29724: { 29724: ; 29724: _M_destroy(); 29724: } 29724: } 29724: 29724: 29724: __attribute__((__noinline__)) 29724: void 29724: _M_release_last_use_cold() noexcept 29724: { _M_release_last_use(); } 29724: 29724: 29724: void 29724: _M_weak_add_ref() noexcept 29724: { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } 29724: 29724: 29724: void 29724: _M_weak_release() noexcept 29724: { 29724: 29724: ; 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) 29724: { 29724: ; 29724: if (_Mutex_base<_Lp>::_S_need_barriers) 29724: { 29724: 29724: 29724: __atomic_thread_fence (4); 29724: } 29724: _M_destroy(); 29724: } 29724: } 29724: 29724: long 29724: _M_get_use_count() const noexcept 29724: { 29724: 29724: 29724: return __atomic_load_n(&_M_use_count, 0); 29724: } 29724: 29724: private: 29724: _Sp_counted_base(_Sp_counted_base const&) = delete; 29724: _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; 29724: 29724: _Atomic_word _M_use_count; 29724: _Atomic_word _M_weak_count; 29724: }; 29724: 29724: template<> 29724: inline bool 29724: _Sp_counted_base<_S_single>:: 29724: _M_add_ref_lock_nothrow() noexcept 29724: { 29724: if (_M_use_count == 0) 29724: return false; 29724: ++_M_use_count; 29724: return true; 29724: } 29724: 29724: template<> 29724: inline bool 29724: _Sp_counted_base<_S_mutex>:: 29724: _M_add_ref_lock_nothrow() noexcept 29724: { 29724: __gnu_cxx::__scoped_lock sentry(*this); 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 29724: { 29724: _M_use_count = 0; 29724: return false; 29724: } 29724: return true; 29724: } 29724: 29724: template<> 29724: inline bool 29724: _Sp_counted_base<_S_atomic>:: 29724: _M_add_ref_lock_nothrow() noexcept 29724: { 29724: 29724: _Atomic_word __count = _M_get_use_count(); 29724: do 29724: { 29724: if (__count == 0) 29724: return false; 29724: 29724: 29724: } 29724: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 29724: true, 4, 29724: 0)); 29724: return true; 29724: } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_single>::_M_add_ref_copy() 29724: { ++_M_use_count; } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_single>::_M_release() noexcept 29724: { 29724: if (--_M_use_count == 0) 29724: { 29724: _M_dispose(); 29724: if (--_M_weak_count == 0) 29724: _M_destroy(); 29724: } 29724: } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_mutex>::_M_release() noexcept 29724: { 29724: 29724: ; 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29724: { 29724: _M_release_last_use(); 29724: } 29724: } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_atomic>::_M_release() noexcept 29724: { 29724: ; 29724: 29724: constexpr bool __lock_free 29724: = __atomic_always_lock_free(sizeof(long long), 0) 29724: && __atomic_always_lock_free(sizeof(_Atomic_word), 0); 29724: constexpr bool __double_word 29724: = sizeof(long long) == 2 * sizeof(_Atomic_word); 29724: 29724: 29724: constexpr bool __aligned = __alignof(long long) <= alignof(void*); 29724: if constexpr (__lock_free && __double_word && __aligned) 29724: { 29724: constexpr int __wordbits = 8 * sizeof(_Atomic_word); 29724: constexpr int __shiftbits = __double_word ? __wordbits : 0; 29724: constexpr long long __unique_ref = 1LL + (1LL << __shiftbits); 29724: auto __both_counts = reinterpret_cast(&_M_use_count); 29724: 29724: ; 29724: if (__atomic_load_n(__both_counts, 2) == __unique_ref) 29724: { 29724: 29724: 29724: 29724: 29724: _M_weak_count = _M_use_count = 0; 29724: ; 29724: ; 29724: _M_dispose(); 29724: _M_destroy(); 29724: return; 29724: } 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29724: [[__unlikely__]] 29724: { 29724: _M_release_last_use_cold(); 29724: return; 29724: } 29724: } 29724: else 29724: 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29724: { 29724: _M_release_last_use(); 29724: } 29724: } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept 29724: { ++_M_weak_count; } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_base<_S_single>::_M_weak_release() noexcept 29724: { 29724: if (--_M_weak_count == 0) 29724: _M_destroy(); 29724: } 29724: 29724: template<> 29724: inline long 29724: _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept 29724: { return _M_use_count; } 29724: 29724: 29724: 29724: template 29724: class __shared_ptr; 29724: 29724: template 29724: class __weak_ptr; 29724: 29724: template 29724: class __enable_shared_from_this; 29724: 29724: template 29724: class shared_ptr; 29724: 29724: template 29724: class weak_ptr; 29724: 29724: template 29724: struct owner_less; 29724: 29724: template 29724: class enable_shared_from_this; 29724: 29724: template<_Lock_policy _Lp = __default_lock_policy> 29724: class __weak_count; 29724: 29724: template<_Lock_policy _Lp = __default_lock_policy> 29724: class __shared_count; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> 29724: { 29724: public: 29724: explicit 29724: _Sp_counted_ptr(_Ptr __p) noexcept 29724: : _M_ptr(__p) { } 29724: 29724: virtual void 29724: _M_dispose() noexcept 29724: { delete _M_ptr; } 29724: 29724: virtual void 29724: _M_destroy() noexcept 29724: { delete this; } 29724: 29724: virtual void* 29724: _M_get_deleter(const std::type_info&) noexcept 29724: { return nullptr; } 29724: 29724: _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; 29724: _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; 29724: 29724: private: 29724: _Ptr _M_ptr; 29724: }; 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_ptr::_M_dispose() noexcept { } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_ptr::_M_dispose() noexcept { } 29724: 29724: template<> 29724: inline void 29724: _Sp_counted_ptr::_M_dispose() noexcept { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Sp_ebo_helper; 29724: 29724: 29724: template 29724: struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp 29724: { 29724: explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } 29724: explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } 29724: 29724: static _Tp& 29724: _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } 29724: }; 29724: 29724: 29724: template 29724: struct _Sp_ebo_helper<_Nm, _Tp, false> 29724: { 29724: explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } 29724: explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } 29724: 29724: static _Tp& 29724: _S_get(_Sp_ebo_helper& __eboh) 29724: { return __eboh._M_tp; } 29724: 29724: private: 29724: _Tp _M_tp; 29724: }; 29724: 29724: 29724: template 29724: class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> 29724: { 29724: class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> 29724: { 29724: typedef _Sp_ebo_helper<0, _Deleter> _Del_base; 29724: typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; 29724: 29724: public: 29724: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 29724: : _Del_base(std::move(__d)), _Alloc_base(__a), _M_ptr(__p) 29724: { } 29724: 29724: _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } 29724: _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } 29724: 29724: _Ptr _M_ptr; 29724: }; 29724: 29724: public: 29724: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; 29724: 29724: 29724: _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept 29724: : _M_impl(__p, std::move(__d), _Alloc()) { } 29724: 29724: 29724: _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 29724: : _M_impl(__p, std::move(__d), __a) { } 29724: 29724: ~_Sp_counted_deleter() noexcept { } 29724: 29724: virtual void 29724: _M_dispose() noexcept 29724: { _M_impl._M_del()(_M_impl._M_ptr); } 29724: 29724: virtual void 29724: _M_destroy() noexcept 29724: { 29724: __allocator_type __a(_M_impl._M_alloc()); 29724: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 29724: this->~_Sp_counted_deleter(); 29724: } 29724: 29724: virtual void* 29724: _M_get_deleter(const type_info& __ti [[__gnu__::__unused__]]) noexcept 29724: { 29724: 29724: 29724: 29724: return __ti == typeid(_Deleter) 29724: ? std::__addressof(_M_impl._M_del()) 29724: : nullptr; 29724: 29724: 29724: 29724: } 29724: 29724: private: 29724: 29724: 29724: 29724: _Impl _M_impl; 29724: }; 29724: 29724: 29724: 29724: struct _Sp_make_shared_tag 29724: { 29724: private: 29724: template 29724: friend class _Sp_counted_ptr_inplace; 29724: 29724: static const type_info& 29724: _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) 29724: { 29724: alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; 29724: return reinterpret_cast(__tag); 29724: } 29724: 29724: static bool _S_eq(const type_info&) noexcept; 29724: }; 29724: 29724: template 29724: struct _Sp_alloc_shared_tag 29724: { 29724: const _Alloc& _M_a; 29724: }; 29724: 29724: template 29724: class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> 29724: { 29724: class _Impl : _Sp_ebo_helper<0, _Alloc> 29724: { 29724: typedef _Sp_ebo_helper<0, _Alloc> _A_base; 29724: 29724: public: 29724: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } 29724: 29724: _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } 29724: 29724: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 29724: }; 29724: 29724: public: 29724: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; 29724: 29724: 29724: template 29724: _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) 29724: : _M_impl(__a) 29724: { 29724: 29724: 29724: allocator_traits<_Alloc>::construct(__a, _M_ptr(), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: ~_Sp_counted_ptr_inplace() noexcept { } 29724: 29724: virtual void 29724: _M_dispose() noexcept 29724: { 29724: allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); 29724: } 29724: 29724: 29724: virtual void 29724: _M_destroy() noexcept 29724: { 29724: __allocator_type __a(_M_impl._M_alloc()); 29724: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 29724: this->~_Sp_counted_ptr_inplace(); 29724: } 29724: 29724: private: 29724: friend class __shared_count<_Lp>; 29724: 29724: 29724: 29724: virtual void* 29724: _M_get_deleter(const std::type_info& __ti) noexcept override 29724: { 29724: auto __ptr = const_cast::type*>(_M_ptr()); 29724: 29724: 29724: 29724: 29724: if (&__ti == &_Sp_make_shared_tag::_S_ti() 29724: || 29724: 29724: __ti == typeid(_Sp_make_shared_tag) 29724: 29724: 29724: 29724: ) 29724: return __ptr; 29724: return nullptr; 29724: } 29724: 29724: _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } 29724: 29724: _Impl _M_impl; 29724: }; 29724: # 884 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: struct __sp_array_delete 29724: { 29724: template 29724: void operator()(_Yp* __p) const { delete[] __p; } 29724: }; 29724: 29724: template<_Lock_policy _Lp> 29724: class __shared_count 29724: { 29724: 29724: template 29724: struct __not_alloc_shared_tag { using type = void; }; 29724: 29724: template 29724: struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: public: 29724: constexpr __shared_count() noexcept : _M_pi(0) 29724: { } 29724: 29724: template 29724: explicit 29724: __shared_count(_Ptr __p) : _M_pi(0) 29724: { 29724: try 29724: { 29724: _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); 29724: } 29724: catch(...) 29724: { 29724: delete __p; 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: __shared_count(_Ptr __p, false_type) 29724: : __shared_count(__p) 29724: { } 29724: 29724: template 29724: __shared_count(_Ptr __p, true_type) 29724: : __shared_count(__p, __sp_array_delete{}, allocator()) 29724: { } 29724: 29724: template::type> 29724: __shared_count(_Ptr __p, _Deleter __d) 29724: : __shared_count(__p, std::move(__d), allocator()) 29724: { } 29724: 29724: template::type> 29724: __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) 29724: { 29724: typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; 29724: try 29724: { 29724: typename _Sp_cd_type::__allocator_type __a2(__a); 29724: auto __guard = std::__allocate_guarded(__a2); 29724: _Sp_cd_type* __mem = __guard.get(); 29724: ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); 29724: _M_pi = __mem; 29724: __guard = nullptr; 29724: } 29724: catch(...) 29724: { 29724: __d(__p); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, 29724: _Args&&... __args) 29724: { 29724: typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; 29724: typename _Sp_cp_type::__allocator_type __a2(__a._M_a); 29724: auto __guard = std::__allocate_guarded(__a2); 29724: _Sp_cp_type* __mem = __guard.get(); 29724: auto __pi = ::new (__mem) 29724: _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); 29724: __guard = nullptr; 29724: _M_pi = __pi; 29724: __p = __pi->_M_ptr(); 29724: } 29724: # 1022 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: template 29724: explicit 29724: __shared_count(std::auto_ptr<_Tp>&& __r); 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: template 29724: explicit 29724: __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) 29724: { 29724: 29724: 29724: if (__r.get() == nullptr) 29724: return; 29724: 29724: using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; 29724: using _Del2 = __conditional_t::value, 29724: reference_wrapper::type>, 29724: _Del>; 29724: using _Sp_cd_type 29724: = _Sp_counted_deleter<_Ptr, _Del2, allocator, _Lp>; 29724: using _Alloc = allocator<_Sp_cd_type>; 29724: using _Alloc_traits = allocator_traits<_Alloc>; 29724: _Alloc __a; 29724: _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); 29724: 29724: 29724: 29724: _Alloc_traits::construct(__a, __mem, __r.release(), 29724: std::forward<_Del>(__r.get_deleter())); 29724: _M_pi = __mem; 29724: } 29724: 29724: 29724: explicit __shared_count(const __weak_count<_Lp>& __r); 29724: 29724: 29724: explicit 29724: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept; 29724: 29724: ~__shared_count() noexcept 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_release(); 29724: } 29724: 29724: __shared_count(const __shared_count& __r) noexcept 29724: : _M_pi(__r._M_pi) 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_add_ref_copy(); 29724: } 29724: 29724: __shared_count& 29724: operator=(const __shared_count& __r) noexcept 29724: { 29724: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29724: if (__tmp != _M_pi) 29724: { 29724: if (__tmp != nullptr) 29724: __tmp->_M_add_ref_copy(); 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_release(); 29724: _M_pi = __tmp; 29724: } 29724: return *this; 29724: } 29724: 29724: void 29724: _M_swap(__shared_count& __r) noexcept 29724: { 29724: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29724: __r._M_pi = _M_pi; 29724: _M_pi = __tmp; 29724: } 29724: 29724: long 29724: _M_get_use_count() const noexcept 29724: { return _M_pi ? _M_pi->_M_get_use_count() : 0; } 29724: 29724: bool 29724: _M_unique() const noexcept 29724: { return this->_M_get_use_count() == 1; } 29724: 29724: void* 29724: _M_get_deleter(const std::type_info& __ti) const noexcept 29724: { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } 29724: 29724: bool 29724: _M_less(const __shared_count& __rhs) const noexcept 29724: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29724: 29724: bool 29724: _M_less(const __weak_count<_Lp>& __rhs) const noexcept 29724: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29724: 29724: 29724: friend inline bool 29724: operator==(const __shared_count& __a, const __shared_count& __b) noexcept 29724: { return __a._M_pi == __b._M_pi; } 29724: 29724: private: 29724: friend class __weak_count<_Lp>; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: _Sp_counted_base<_Lp>* _M_pi; 29724: }; 29724: 29724: 29724: template<_Lock_policy _Lp> 29724: class __weak_count 29724: { 29724: public: 29724: constexpr __weak_count() noexcept : _M_pi(nullptr) 29724: { } 29724: 29724: __weak_count(const __shared_count<_Lp>& __r) noexcept 29724: : _M_pi(__r._M_pi) 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_add_ref(); 29724: } 29724: 29724: __weak_count(const __weak_count& __r) noexcept 29724: : _M_pi(__r._M_pi) 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_add_ref(); 29724: } 29724: 29724: __weak_count(__weak_count&& __r) noexcept 29724: : _M_pi(__r._M_pi) 29724: { __r._M_pi = nullptr; } 29724: 29724: ~__weak_count() noexcept 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_release(); 29724: } 29724: 29724: __weak_count& 29724: operator=(const __shared_count<_Lp>& __r) noexcept 29724: { 29724: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29724: if (__tmp != nullptr) 29724: __tmp->_M_weak_add_ref(); 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_release(); 29724: _M_pi = __tmp; 29724: return *this; 29724: } 29724: 29724: __weak_count& 29724: operator=(const __weak_count& __r) noexcept 29724: { 29724: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29724: if (__tmp != nullptr) 29724: __tmp->_M_weak_add_ref(); 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_release(); 29724: _M_pi = __tmp; 29724: return *this; 29724: } 29724: 29724: __weak_count& 29724: operator=(__weak_count&& __r) noexcept 29724: { 29724: if (_M_pi != nullptr) 29724: _M_pi->_M_weak_release(); 29724: _M_pi = __r._M_pi; 29724: __r._M_pi = nullptr; 29724: return *this; 29724: } 29724: 29724: void 29724: _M_swap(__weak_count& __r) noexcept 29724: { 29724: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29724: __r._M_pi = _M_pi; 29724: _M_pi = __tmp; 29724: } 29724: 29724: long 29724: _M_get_use_count() const noexcept 29724: { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } 29724: 29724: bool 29724: _M_less(const __weak_count& __rhs) const noexcept 29724: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29724: 29724: bool 29724: _M_less(const __shared_count<_Lp>& __rhs) const noexcept 29724: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29724: 29724: 29724: friend inline bool 29724: operator==(const __weak_count& __a, const __weak_count& __b) noexcept 29724: { return __a._M_pi == __b._M_pi; } 29724: 29724: private: 29724: friend class __shared_count<_Lp>; 29724: 29724: 29724: 29724: 29724: _Sp_counted_base<_Lp>* _M_pi; 29724: }; 29724: 29724: 29724: template<_Lock_policy _Lp> 29724: inline 29724: __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) 29724: : _M_pi(__r._M_pi) 29724: { 29724: if (_M_pi == nullptr || !_M_pi->_M_add_ref_lock_nothrow()) 29724: __throw_bad_weak_ptr(); 29724: } 29724: 29724: 29724: template<_Lock_policy _Lp> 29724: inline 29724: __shared_count<_Lp>:: 29724: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept 29724: : _M_pi(__r._M_pi) 29724: { 29724: if (_M_pi && !_M_pi->_M_add_ref_lock_nothrow()) 29724: _M_pi = nullptr; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __sp_compatible_with 29724: : false_type 29724: { }; 29724: 29724: template 29724: struct __sp_compatible_with<_Yp*, _Tp*> 29724: : is_convertible<_Yp*, _Tp*>::type 29724: { }; 29724: 29724: template 29724: struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> 29724: : true_type 29724: { }; 29724: 29724: template 29724: struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> 29724: : true_type 29724: { }; 29724: 29724: template 29724: struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> 29724: : true_type 29724: { }; 29724: 29724: template 29724: struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> 29724: : true_type 29724: { }; 29724: 29724: 29724: template 29724: struct __sp_is_constructible_arrN 29724: : false_type 29724: { }; 29724: 29724: template 29724: struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> 29724: : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type 29724: { }; 29724: 29724: 29724: template 29724: struct __sp_is_constructible_arr 29724: : false_type 29724: { }; 29724: 29724: template 29724: struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> 29724: : is_convertible<_Yp(*)[], _Up(*)[]>::type 29724: { }; 29724: 29724: 29724: template 29724: struct __sp_is_constructible; 29724: 29724: 29724: template 29724: struct __sp_is_constructible<_Up[_Nm], _Yp> 29724: : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type 29724: { }; 29724: 29724: 29724: template 29724: struct __sp_is_constructible<_Up[], _Yp> 29724: : __sp_is_constructible_arr<_Up, _Yp>::type 29724: { }; 29724: 29724: 29724: template 29724: struct __sp_is_constructible 29724: : is_convertible<_Yp*, _Tp*>::type 29724: { }; 29724: 29724: 29724: 29724: template::value, bool = is_void<_Tp>::value> 29724: class __shared_ptr_access 29724: { 29724: public: 29724: using element_type = _Tp; 29724: 29724: element_type& 29724: operator*() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29724: return *_M_get(); 29724: } 29724: 29724: element_type* 29724: operator->() const noexcept 29724: { 29724: ; 29724: return _M_get(); 29724: } 29724: 29724: private: 29724: element_type* 29724: _M_get() const noexcept 29724: { return static_cast*>(this)->get(); } 29724: }; 29724: 29724: 29724: template 29724: class __shared_ptr_access<_Tp, _Lp, false, true> 29724: { 29724: public: 29724: using element_type = _Tp; 29724: 29724: element_type* 29724: operator->() const noexcept 29724: { 29724: auto __ptr = static_cast*>(this)->get(); 29724: ; 29724: return __ptr; 29724: } 29724: }; 29724: 29724: 29724: template 29724: class __shared_ptr_access<_Tp, _Lp, true, false> 29724: { 29724: public: 29724: using element_type = typename remove_extent<_Tp>::type; 29724: # 1408 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: element_type& 29724: operator[](ptrdiff_t __i) const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29724: do { if (std::__is_constant_evaluated() && !bool(!extent<_Tp>::value || __i < extent<_Tp>::value)) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_get()[__i]; 29724: } 29724: 29724: private: 29724: element_type* 29724: _M_get() const noexcept 29724: { return static_cast*>(this)->get(); } 29724: }; 29724: 29724: template 29724: class __shared_ptr 29724: : public __shared_ptr_access<_Tp, _Lp> 29724: { 29724: public: 29724: using element_type = typename remove_extent<_Tp>::type; 29724: 29724: private: 29724: 29724: template 29724: using _SafeConv 29724: = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; 29724: 29724: 29724: template 29724: using _Compatible = typename 29724: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 29724: 29724: 29724: template 29724: using _Assignable = _Compatible<_Yp, __shared_ptr&>; 29724: 29724: 29724: template::pointer> 29724: using _UniqCompatible = __enable_if_t<__and_< 29724: __sp_compatible_with<_Yp*, _Tp*>, 29724: is_convertible<_Ptr, element_type*>, 29724: is_move_constructible<_Del> 29724: >::value, _Res>; 29724: 29724: 29724: template 29724: using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; 29724: 29724: public: 29724: 29724: 29724: using weak_type = __weak_ptr<_Tp, _Lp>; 29724: 29724: 29724: constexpr __shared_ptr() noexcept 29724: : _M_ptr(0), _M_refcount() 29724: { } 29724: 29724: template> 29724: explicit 29724: __shared_ptr(_Yp* __p) 29724: : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) 29724: { 29724: static_assert( !is_void<_Yp>::value, "incomplete type" ); 29724: static_assert( sizeof(_Yp) > 0, "incomplete type" ); 29724: _M_enable_shared_from_this_with(__p); 29724: } 29724: 29724: template> 29724: __shared_ptr(_Yp* __p, _Deleter __d) 29724: : _M_ptr(__p), _M_refcount(__p, std::move(__d)) 29724: { 29724: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 29724: "deleter expression d(p) is well-formed"); 29724: _M_enable_shared_from_this_with(__p); 29724: } 29724: 29724: template> 29724: __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 29724: : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) 29724: { 29724: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 29724: "deleter expression d(p) is well-formed"); 29724: _M_enable_shared_from_this_with(__p); 29724: } 29724: 29724: template 29724: __shared_ptr(nullptr_t __p, _Deleter __d) 29724: : _M_ptr(0), _M_refcount(__p, std::move(__d)) 29724: { } 29724: 29724: template 29724: __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 29724: : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) 29724: { } 29724: 29724: 29724: template 29724: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, 29724: element_type* __p) noexcept 29724: : _M_ptr(__p), _M_refcount(__r._M_refcount) 29724: { } 29724: 29724: 29724: template 29724: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r, 29724: element_type* __p) noexcept 29724: : _M_ptr(__p), _M_refcount() 29724: { 29724: _M_refcount._M_swap(__r._M_refcount); 29724: __r._M_ptr = nullptr; 29724: } 29724: 29724: __shared_ptr(const __shared_ptr&) noexcept = default; 29724: __shared_ptr& operator=(const __shared_ptr&) noexcept = default; 29724: ~__shared_ptr() = default; 29724: 29724: template> 29724: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29724: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 29724: { } 29724: 29724: __shared_ptr(__shared_ptr&& __r) noexcept 29724: : _M_ptr(__r._M_ptr), _M_refcount() 29724: { 29724: _M_refcount._M_swap(__r._M_refcount); 29724: __r._M_ptr = nullptr; 29724: } 29724: 29724: template> 29724: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 29724: : _M_ptr(__r._M_ptr), _M_refcount() 29724: { 29724: _M_refcount._M_swap(__r._M_refcount); 29724: __r._M_ptr = nullptr; 29724: } 29724: 29724: template> 29724: explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) 29724: : _M_refcount(__r._M_refcount) 29724: { 29724: 29724: 29724: _M_ptr = __r._M_ptr; 29724: } 29724: 29724: 29724: template> 29724: __shared_ptr(unique_ptr<_Yp, _Del>&& __r) 29724: : _M_ptr(__r.get()), _M_refcount() 29724: { 29724: auto __raw = __to_address(__r.get()); 29724: _M_refcount = __shared_count<_Lp>(std::move(__r)); 29724: _M_enable_shared_from_this_with(__raw); 29724: } 29724: # 1586 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: template> 29724: __shared_ptr(auto_ptr<_Yp>&& __r); 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } 29724: 29724: template 29724: _Assignable<_Yp> 29724: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29724: { 29724: _M_ptr = __r._M_ptr; 29724: _M_refcount = __r._M_refcount; 29724: return *this; 29724: } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template 29724: _Assignable<_Yp> 29724: operator=(auto_ptr<_Yp>&& __r) 29724: { 29724: __shared_ptr(std::move(__r)).swap(*this); 29724: return *this; 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: __shared_ptr& 29724: operator=(__shared_ptr&& __r) noexcept 29724: { 29724: __shared_ptr(std::move(__r)).swap(*this); 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable<_Yp> 29724: operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 29724: { 29724: __shared_ptr(std::move(__r)).swap(*this); 29724: return *this; 29724: } 29724: 29724: template 29724: _UniqAssignable<_Yp, _Del> 29724: operator=(unique_ptr<_Yp, _Del>&& __r) 29724: { 29724: __shared_ptr(std::move(__r)).swap(*this); 29724: return *this; 29724: } 29724: 29724: void 29724: reset() noexcept 29724: { __shared_ptr().swap(*this); } 29724: 29724: template 29724: _SafeConv<_Yp> 29724: reset(_Yp* __p) 29724: { 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__p == nullptr || __p != _M_ptr)) std::__glibcxx_assert_fail(); } while (false); 29724: __shared_ptr(__p).swap(*this); 29724: } 29724: 29724: template 29724: _SafeConv<_Yp> 29724: reset(_Yp* __p, _Deleter __d) 29724: { __shared_ptr(__p, std::move(__d)).swap(*this); } 29724: 29724: template 29724: _SafeConv<_Yp> 29724: reset(_Yp* __p, _Deleter __d, _Alloc __a) 29724: { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } 29724: 29724: 29724: element_type* 29724: get() const noexcept 29724: { return _M_ptr; } 29724: 29724: 29724: explicit operator bool() const noexcept 29724: { return _M_ptr != nullptr; } 29724: 29724: 29724: bool 29724: unique() const noexcept 29724: { return _M_refcount._M_unique(); } 29724: 29724: 29724: long 29724: use_count() const noexcept 29724: { return _M_refcount._M_get_use_count(); } 29724: 29724: 29724: void 29724: swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 29724: { 29724: std::swap(_M_ptr, __other._M_ptr); 29724: _M_refcount._M_swap(__other._M_refcount); 29724: } 29724: # 1698 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: template 29724: bool 29724: owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept 29724: { return _M_refcount._M_less(__rhs._M_refcount); } 29724: 29724: template 29724: bool 29724: owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept 29724: { return _M_refcount._M_less(__rhs._M_refcount); } 29724: 29724: 29724: protected: 29724: 29724: template 29724: __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 29724: : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) 29724: { _M_enable_shared_from_this_with(_M_ptr); } 29724: 29724: template 29724: friend __shared_ptr<_Tp1, _Lp1> 29724: __allocate_shared(const _Alloc& __a, _Args&&... __args); 29724: # 1732 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) noexcept 29724: : _M_refcount(__r._M_refcount, std::nothrow) 29724: { 29724: _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; 29724: } 29724: 29724: friend class __weak_ptr<_Tp, _Lp>; 29724: 29724: private: 29724: 29724: template 29724: using __esft_base_t = decltype(__enable_shared_from_this_base( 29724: std::declval&>(), 29724: std::declval<_Yp*>())); 29724: 29724: 29724: template 29724: struct __has_esft_base 29724: : false_type { }; 29724: 29724: template 29724: struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> 29724: : __not_> { }; 29724: 29724: template::type> 29724: typename enable_if<__has_esft_base<_Yp2>::value>::type 29724: _M_enable_shared_from_this_with(_Yp* __p) noexcept 29724: { 29724: if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) 29724: __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); 29724: } 29724: 29724: template::type> 29724: typename enable_if::value>::type 29724: _M_enable_shared_from_this_with(_Yp*) noexcept 29724: { } 29724: 29724: void* 29724: _M_get_deleter(const std::type_info& __ti) const noexcept 29724: { return _M_refcount._M_get_deleter(__ti); } 29724: 29724: template friend class __shared_ptr; 29724: template friend class __weak_ptr; 29724: 29724: template 29724: friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; 29724: 29724: template 29724: friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; 29724: # 1789 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: element_type* _M_ptr; 29724: __shared_count<_Lp> _M_refcount; 29724: }; 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator==(const __shared_ptr<_Tp1, _Lp>& __a, 29724: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29724: { return __a.get() == __b.get(); } 29724: 29724: template 29724: inline bool 29724: operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { return !__a; } 29724: # 1821 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: template 29724: inline bool 29724: operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { return !__a; } 29724: 29724: template 29724: inline bool 29724: operator!=(const __shared_ptr<_Tp1, _Lp>& __a, 29724: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29724: { return __a.get() != __b.get(); } 29724: 29724: template 29724: inline bool 29724: operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { return (bool)__a; } 29724: 29724: template 29724: inline bool 29724: operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { return (bool)__a; } 29724: 29724: template 29724: inline bool 29724: operator<(const __shared_ptr<_Tp, _Lp>& __a, 29724: const __shared_ptr<_Up, _Lp>& __b) noexcept 29724: { 29724: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29724: using _Up_elt = typename __shared_ptr<_Up, _Lp>::element_type; 29724: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 29724: return less<_Vp>()(__a.get(), __b.get()); 29724: } 29724: 29724: template 29724: inline bool 29724: operator<(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { 29724: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29724: return less<_Tp_elt*>()(__a.get(), nullptr); 29724: } 29724: 29724: template 29724: inline bool 29724: operator<(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { 29724: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29724: return less<_Tp_elt*>()(nullptr, __a.get()); 29724: } 29724: 29724: template 29724: inline bool 29724: operator<=(const __shared_ptr<_Tp1, _Lp>& __a, 29724: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29724: { return !(__b < __a); } 29724: 29724: template 29724: inline bool 29724: operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { return !(nullptr < __a); } 29724: 29724: template 29724: inline bool 29724: operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { return !(__a < nullptr); } 29724: 29724: template 29724: inline bool 29724: operator>(const __shared_ptr<_Tp1, _Lp>& __a, 29724: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29724: { return (__b < __a); } 29724: 29724: template 29724: inline bool 29724: operator>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { return nullptr < __a; } 29724: 29724: template 29724: inline bool 29724: operator>(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { return __a < nullptr; } 29724: 29724: template 29724: inline bool 29724: operator>=(const __shared_ptr<_Tp1, _Lp>& __a, 29724: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29724: { return !(__a < __b); } 29724: 29724: template 29724: inline bool 29724: operator>=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29724: { return !(__a < nullptr); } 29724: 29724: template 29724: inline bool 29724: operator>=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29724: { return !(nullptr < __a); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept 29724: { __a.swap(__b); } 29724: # 1931 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29724: { 29724: using _Sp = __shared_ptr<_Tp, _Lp>; 29724: return _Sp(__r, static_cast(__r.get())); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29724: { 29724: using _Sp = __shared_ptr<_Tp, _Lp>; 29724: return _Sp(__r, const_cast(__r.get())); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29724: { 29724: using _Sp = __shared_ptr<_Tp, _Lp>; 29724: if (auto* __p = dynamic_cast(__r.get())) 29724: return _Sp(__r, __p); 29724: return _Sp(); 29724: } 29724: 29724: 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: reinterpret_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29724: { 29724: using _Sp = __shared_ptr<_Tp, _Lp>; 29724: return _Sp(__r, reinterpret_cast(__r.get())); 29724: } 29724: 29724: 29724: template 29724: class __weak_ptr 29724: { 29724: template 29724: using _Compatible = typename 29724: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 29724: 29724: 29724: template 29724: using _Assignable = _Compatible<_Yp, __weak_ptr&>; 29724: 29724: public: 29724: using element_type = typename remove_extent<_Tp>::type; 29724: 29724: constexpr __weak_ptr() noexcept 29724: : _M_ptr(nullptr), _M_refcount() 29724: { } 29724: 29724: __weak_ptr(const __weak_ptr&) noexcept = default; 29724: 29724: ~__weak_ptr() = default; 29724: # 2013 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29724: template> 29724: __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept 29724: : _M_refcount(__r._M_refcount) 29724: { _M_ptr = __r.lock().get(); } 29724: 29724: template> 29724: __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29724: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 29724: { } 29724: 29724: __weak_ptr(__weak_ptr&& __r) noexcept 29724: : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) 29724: { __r._M_ptr = nullptr; } 29724: 29724: template> 29724: __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept 29724: : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) 29724: { __r._M_ptr = nullptr; } 29724: 29724: __weak_ptr& 29724: operator=(const __weak_ptr& __r) noexcept = default; 29724: 29724: template 29724: _Assignable<_Yp> 29724: operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept 29724: { 29724: _M_ptr = __r.lock().get(); 29724: _M_refcount = __r._M_refcount; 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable<_Yp> 29724: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29724: { 29724: _M_ptr = __r._M_ptr; 29724: _M_refcount = __r._M_refcount; 29724: return *this; 29724: } 29724: 29724: __weak_ptr& 29724: operator=(__weak_ptr&& __r) noexcept 29724: { 29724: __weak_ptr(std::move(__r)).swap(*this); 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable<_Yp> 29724: operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept 29724: { 29724: _M_ptr = __r.lock().get(); 29724: _M_refcount = std::move(__r._M_refcount); 29724: __r._M_ptr = nullptr; 29724: return *this; 29724: } 29724: 29724: __shared_ptr<_Tp, _Lp> 29724: lock() const noexcept 29724: { return __shared_ptr(*this, std::nothrow); } 29724: 29724: long 29724: use_count() const noexcept 29724: { return _M_refcount._M_get_use_count(); } 29724: 29724: bool 29724: expired() const noexcept 29724: { return _M_refcount._M_get_use_count() == 0; } 29724: 29724: template 29724: bool 29724: owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept 29724: { return _M_refcount._M_less(__rhs._M_refcount); } 29724: 29724: template 29724: bool 29724: owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept 29724: { return _M_refcount._M_less(__rhs._M_refcount); } 29724: 29724: void 29724: reset() noexcept 29724: { __weak_ptr().swap(*this); } 29724: 29724: void 29724: swap(__weak_ptr& __s) noexcept 29724: { 29724: std::swap(_M_ptr, __s._M_ptr); 29724: _M_refcount._M_swap(__s._M_refcount); 29724: } 29724: 29724: private: 29724: 29724: void 29724: _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept 29724: { 29724: if (use_count() == 0) 29724: { 29724: _M_ptr = __ptr; 29724: _M_refcount = __refcount; 29724: } 29724: } 29724: 29724: template friend class __shared_ptr; 29724: template friend class __weak_ptr; 29724: friend class __enable_shared_from_this<_Tp, _Lp>; 29724: friend class enable_shared_from_this<_Tp>; 29724: 29724: 29724: 29724: 29724: element_type* _M_ptr; 29724: __weak_count<_Lp> _M_refcount; 29724: }; 29724: 29724: 29724: template 29724: inline void 29724: swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept 29724: { __a.swap(__b); } 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template 29724: struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> 29724: { 29724: bool 29724: operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept 29724: { return __lhs.owner_before(__rhs); } 29724: 29724: bool 29724: operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept 29724: { return __lhs.owner_before(__rhs); } 29724: 29724: bool 29724: operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept 29724: { return __lhs.owner_before(__rhs); } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: template<> 29724: struct _Sp_owner_less 29724: { 29724: template 29724: auto 29724: operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept 29724: -> decltype(__lhs.owner_before(__rhs)) 29724: { return __lhs.owner_before(__rhs); } 29724: 29724: using is_transparent = void; 29724: }; 29724: 29724: template 29724: struct owner_less<__shared_ptr<_Tp, _Lp>> 29724: : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> 29724: { }; 29724: 29724: template 29724: struct owner_less<__weak_ptr<_Tp, _Lp>> 29724: : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> 29724: { }; 29724: 29724: 29724: template 29724: class __enable_shared_from_this 29724: { 29724: protected: 29724: constexpr __enable_shared_from_this() noexcept { } 29724: 29724: __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } 29724: 29724: __enable_shared_from_this& 29724: operator=(const __enable_shared_from_this&) noexcept 29724: { return *this; } 29724: 29724: ~__enable_shared_from_this() { } 29724: 29724: public: 29724: __shared_ptr<_Tp, _Lp> 29724: shared_from_this() 29724: { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } 29724: 29724: __shared_ptr 29724: shared_from_this() const 29724: { return __shared_ptr(this->_M_weak_this); } 29724: 29724: 29724: __weak_ptr<_Tp, _Lp> 29724: weak_from_this() noexcept 29724: { return this->_M_weak_this; } 29724: 29724: __weak_ptr 29724: weak_from_this() const noexcept 29724: { return this->_M_weak_this; } 29724: 29724: 29724: private: 29724: template 29724: void 29724: _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept 29724: { _M_weak_this._M_assign(__p, __n); } 29724: 29724: friend const __enable_shared_from_this* 29724: __enable_shared_from_this_base(const __shared_count<_Lp>&, 29724: const __enable_shared_from_this* __p) 29724: { return __p; } 29724: 29724: template 29724: friend class __shared_ptr; 29724: 29724: mutable __weak_ptr<_Tp, _Lp> _M_weak_this; 29724: }; 29724: 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: __allocate_shared(const _Alloc& __a, _Args&&... __args) 29724: { 29724: static_assert(!is_array<_Tp>::value, "make_shared not supported"); 29724: 29724: return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: template 29724: inline __shared_ptr<_Tp, _Lp> 29724: __make_shared(_Args&&... __args) 29724: { 29724: typedef typename std::remove_const<_Tp>::type _Tp_nc; 29724: return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: template 29724: struct hash<__shared_ptr<_Tp, _Lp>> 29724: : public __hash_base> 29724: { 29724: size_t 29724: operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept 29724: { 29724: return hash::element_type*>()( 29724: __s.get()); 29724: } 29724: }; 29724: 29724: 29724: } 29724: # 54 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 68 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: inline std::basic_ostream<_Ch, _Tr>& 29724: operator<<(std::basic_ostream<_Ch, _Tr>& __os, 29724: const __shared_ptr<_Tp, _Lp>& __p) 29724: { 29724: __os << __p.get(); 29724: return __os; 29724: } 29724: 29724: template 29724: inline _Del* 29724: get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept 29724: { 29724: 29724: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline _Del* 29724: get_deleter(const shared_ptr<_Tp>& __p) noexcept 29724: { 29724: 29724: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 29724: 29724: 29724: 29724: } 29724: # 111 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: using _NonArray = __enable_if_t::value, _Tp>; 29724: # 174 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: class shared_ptr : public __shared_ptr<_Tp> 29724: { 29724: template 29724: using _Constructible = typename enable_if< 29724: is_constructible<__shared_ptr<_Tp>, _Args...>::value 29724: >::type; 29724: 29724: template 29724: using _Assignable = typename enable_if< 29724: is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& 29724: >::type; 29724: 29724: public: 29724: 29724: 29724: using element_type = typename __shared_ptr<_Tp>::element_type; 29724: 29724: 29724: 29724: 29724: using weak_type = weak_ptr<_Tp>; 29724: 29724: 29724: 29724: 29724: 29724: constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } 29724: 29724: shared_ptr(const shared_ptr&) noexcept = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 29724: # 228 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template> 29724: shared_ptr(_Yp* __p, _Deleter __d) 29724: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 29724: # 246 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: shared_ptr(nullptr_t __p, _Deleter __d) 29724: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 29724: # 265 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template> 29724: shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 29724: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 29724: # 285 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 29724: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 29724: # 309 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept 29724: : __shared_ptr<_Tp>(__r, __p) { } 29724: # 348 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template&>> 29724: shared_ptr(const shared_ptr<_Yp>& __r) noexcept 29724: : __shared_ptr<_Tp>(__r) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: shared_ptr(shared_ptr&& __r) noexcept 29724: : __shared_ptr<_Tp>(std::move(__r)) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template>> 29724: shared_ptr(shared_ptr<_Yp>&& __r) noexcept 29724: : __shared_ptr<_Tp>(std::move(__r)) { } 29724: # 378 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template&>> 29724: explicit shared_ptr(const weak_ptr<_Yp>& __r) 29724: : __shared_ptr<_Tp>(__r) { } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template>> 29724: shared_ptr(auto_ptr<_Yp>&& __r); 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: template>> 29724: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 29724: : __shared_ptr<_Tp>(std::move(__r)) { } 29724: # 411 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } 29724: 29724: shared_ptr& operator=(const shared_ptr&) noexcept = default; 29724: 29724: template 29724: _Assignable&> 29724: operator=(const shared_ptr<_Yp>& __r) noexcept 29724: { 29724: this->__shared_ptr<_Tp>::operator=(__r); 29724: return *this; 29724: } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: template 29724: _Assignable> 29724: operator=(auto_ptr<_Yp>&& __r) 29724: { 29724: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29724: return *this; 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: shared_ptr& 29724: operator=(shared_ptr&& __r) noexcept 29724: { 29724: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable> 29724: operator=(shared_ptr<_Yp>&& __r) noexcept 29724: { 29724: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable> 29724: operator=(unique_ptr<_Yp, _Del>&& __r) 29724: { 29724: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29724: return *this; 29724: } 29724: 29724: private: 29724: 29724: template 29724: shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 29724: : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: friend shared_ptr<_NonArray<_Yp>> 29724: allocate_shared(const _Alloc&, _Args&&...); 29724: 29724: template 29724: friend shared_ptr<_NonArray<_Yp>> 29724: make_shared(_Args&&...); 29724: # 534 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept 29724: : __shared_ptr<_Tp>(__r, std::nothrow) { } 29724: 29724: friend class weak_ptr<_Tp>; 29724: }; 29724: 29724: 29724: template 29724: shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>; 29724: template 29724: shared_ptr(unique_ptr<_Tp, _Del>) -> shared_ptr<_Tp>; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { return __a.get() == __b.get(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { return !__a; } 29724: # 579 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { return !__a; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { return __a.get() != __b.get(); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { return (bool)__a; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { return (bool)__a; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { 29724: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29724: using _Up_elt = typename shared_ptr<_Up>::element_type; 29724: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 29724: return less<_Vp>()(__a.get(), __b.get()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { 29724: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29724: return less<_Tp_elt*>()(__a.get(), nullptr); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { 29724: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29724: return less<_Tp_elt*>()(nullptr, __a.get()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { return !(__b < __a); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { return !(nullptr < __a); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { return !(__a < nullptr); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { return (__b < __a); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { return nullptr < __a; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { return __a < nullptr; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29724: { return !(__a < __b); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29724: { return !(__a < nullptr); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] inline bool 29724: operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29724: { return !(nullptr < __a); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept 29724: { __a.swap(__b); } 29724: 29724: 29724: 29724: 29724: template 29724: inline shared_ptr<_Tp> 29724: static_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29724: { 29724: using _Sp = shared_ptr<_Tp>; 29724: return _Sp(__r, static_cast(__r.get())); 29724: } 29724: 29724: 29724: template 29724: inline shared_ptr<_Tp> 29724: const_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29724: { 29724: using _Sp = shared_ptr<_Tp>; 29724: return _Sp(__r, const_cast(__r.get())); 29724: } 29724: 29724: 29724: template 29724: inline shared_ptr<_Tp> 29724: dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29724: { 29724: using _Sp = shared_ptr<_Tp>; 29724: if (auto* __p = dynamic_cast(__r.get())) 29724: return _Sp(__r, __p); 29724: return _Sp(); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline shared_ptr<_Tp> 29724: reinterpret_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29724: { 29724: using _Sp = shared_ptr<_Tp>; 29724: return _Sp(__r, reinterpret_cast(__r.get())); 29724: } 29724: # 809 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: class weak_ptr : public __weak_ptr<_Tp> 29724: { 29724: template 29724: using _Constructible = typename enable_if< 29724: is_constructible<__weak_ptr<_Tp>, _Arg>::value 29724: >::type; 29724: 29724: template 29724: using _Assignable = typename enable_if< 29724: is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& 29724: >::type; 29724: 29724: public: 29724: constexpr weak_ptr() noexcept = default; 29724: 29724: template&>> 29724: weak_ptr(const shared_ptr<_Yp>& __r) noexcept 29724: : __weak_ptr<_Tp>(__r) { } 29724: 29724: weak_ptr(const weak_ptr&) noexcept = default; 29724: 29724: template&>> 29724: weak_ptr(const weak_ptr<_Yp>& __r) noexcept 29724: : __weak_ptr<_Tp>(__r) { } 29724: 29724: weak_ptr(weak_ptr&&) noexcept = default; 29724: 29724: template>> 29724: weak_ptr(weak_ptr<_Yp>&& __r) noexcept 29724: : __weak_ptr<_Tp>(std::move(__r)) { } 29724: 29724: weak_ptr& 29724: operator=(const weak_ptr& __r) noexcept = default; 29724: 29724: template 29724: _Assignable&> 29724: operator=(const weak_ptr<_Yp>& __r) noexcept 29724: { 29724: this->__weak_ptr<_Tp>::operator=(__r); 29724: return *this; 29724: } 29724: 29724: template 29724: _Assignable&> 29724: operator=(const shared_ptr<_Yp>& __r) noexcept 29724: { 29724: this->__weak_ptr<_Tp>::operator=(__r); 29724: return *this; 29724: } 29724: 29724: weak_ptr& 29724: operator=(weak_ptr&& __r) noexcept = default; 29724: 29724: template 29724: _Assignable> 29724: operator=(weak_ptr<_Yp>&& __r) noexcept 29724: { 29724: this->__weak_ptr<_Tp>::operator=(std::move(__r)); 29724: return *this; 29724: } 29724: 29724: shared_ptr<_Tp> 29724: lock() const noexcept 29724: { return shared_ptr<_Tp>(*this, std::nothrow); } 29724: }; 29724: 29724: 29724: template 29724: weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept 29724: { __a.swap(__b); } 29724: 29724: 29724: 29724: template 29724: struct owner_less; 29724: 29724: 29724: template<> 29724: struct owner_less : _Sp_owner_less 29724: { }; 29724: 29724: 29724: template 29724: struct owner_less> 29724: : public _Sp_owner_less, weak_ptr<_Tp>> 29724: { }; 29724: 29724: 29724: template 29724: struct owner_less> 29724: : public _Sp_owner_less, shared_ptr<_Tp>> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class enable_shared_from_this 29724: { 29724: protected: 29724: constexpr enable_shared_from_this() noexcept { } 29724: 29724: enable_shared_from_this(const enable_shared_from_this&) noexcept { } 29724: 29724: enable_shared_from_this& 29724: operator=(const enable_shared_from_this&) noexcept 29724: { return *this; } 29724: 29724: ~enable_shared_from_this() { } 29724: 29724: public: 29724: shared_ptr<_Tp> 29724: shared_from_this() 29724: { return shared_ptr<_Tp>(this->_M_weak_this); } 29724: 29724: shared_ptr 29724: shared_from_this() const 29724: { return shared_ptr(this->_M_weak_this); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: weak_ptr<_Tp> 29724: weak_from_this() noexcept 29724: { return this->_M_weak_this; } 29724: 29724: weak_ptr 29724: weak_from_this() const noexcept 29724: { return this->_M_weak_this; } 29724: 29724: 29724: 29724: private: 29724: template 29724: void 29724: _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept 29724: { _M_weak_this._M_assign(__p, __n); } 29724: 29724: 29724: friend const enable_shared_from_this* 29724: __enable_shared_from_this_base(const __shared_count<>&, 29724: const enable_shared_from_this* __p) 29724: { return __p; } 29724: 29724: template 29724: friend class __shared_ptr; 29724: 29724: mutable weak_ptr<_Tp> _M_weak_this; 29724: }; 29724: # 986 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: inline shared_ptr<_NonArray<_Tp>> 29724: allocate_shared(const _Alloc& __a, _Args&&... __args) 29724: { 29724: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 1001 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: inline shared_ptr<_NonArray<_Tp>> 29724: make_shared(_Args&&... __args) 29724: { 29724: using _Alloc = allocator; 29724: _Alloc __a; 29724: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 1150 "/usr/include/c++/14/bits/shared_ptr.h" 3 29724: template 29724: struct hash> 29724: : public __hash_base> 29724: { 29724: size_t 29724: operator()(const shared_ptr<_Tp>& __s) const noexcept 29724: { 29724: return std::hash::element_type*>()(__s.get()); 29724: } 29724: }; 29724: 29724: 29724: template 29724: static constexpr bool __is_shared_ptr = false; 29724: template 29724: static constexpr bool __is_shared_ptr> = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __detail::__variant 29724: { 29724: template struct _Never_valueless_alt; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : std::true_type 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : std::true_type 29724: { }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 81 "/usr/include/c++/14/memory" 2 3 29724: # 1 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 1 3 29724: # 62 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 74 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: struct _Sp_locker 29724: { 29724: _Sp_locker(const _Sp_locker&) = delete; 29724: _Sp_locker& operator=(const _Sp_locker&) = delete; 29724: 29724: 29724: explicit 29724: _Sp_locker(const void*) noexcept; 29724: _Sp_locker(const void*, const void*) noexcept; 29724: ~_Sp_locker(); 29724: 29724: private: 29724: unsigned char _M_key1; 29724: unsigned char _M_key2; 29724: 29724: 29724: 29724: }; 29724: # 101 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: template 29724: 29724: inline bool 29724: atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>*) 29724: { 29724: 29724: return __gthread_active_p() == 0; 29724: 29724: 29724: 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_is_lock_free(const shared_ptr<_Tp>* __p) 29724: { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } 29724: # 130 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: template 29724: 29724: inline shared_ptr<_Tp> 29724: atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: return *__p; 29724: } 29724: 29724: template 29724: 29724: inline shared_ptr<_Tp> 29724: atomic_load(const shared_ptr<_Tp>* __p) 29724: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 29724: 29724: template 29724: 29724: inline __shared_ptr<_Tp, _Lp> 29724: atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: return *__p; 29724: } 29724: 29724: template 29724: 29724: inline __shared_ptr<_Tp, _Lp> 29724: atomic_load(const __shared_ptr<_Tp, _Lp>* __p) 29724: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 29724: # 170 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: template 29724: 29724: inline void 29724: atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 29724: memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: __p->swap(__r); 29724: } 29724: 29724: template 29724: 29724: inline void 29724: atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 29724: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 29724: 29724: template 29724: 29724: inline void 29724: atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp> __r, 29724: memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: __p->swap(__r); 29724: } 29724: 29724: template 29724: 29724: inline void 29724: atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 29724: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 29724: # 211 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: template 29724: 29724: inline shared_ptr<_Tp> 29724: atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 29724: memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: __p->swap(__r); 29724: return __r; 29724: } 29724: 29724: template 29724: 29724: inline shared_ptr<_Tp> 29724: atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 29724: { 29724: return std::atomic_exchange_explicit(__p, std::move(__r), 29724: memory_order_seq_cst); 29724: } 29724: 29724: template 29724: 29724: inline __shared_ptr<_Tp, _Lp> 29724: atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp> __r, 29724: memory_order) 29724: { 29724: _Sp_locker __lock{__p}; 29724: __p->swap(__r); 29724: return __r; 29724: } 29724: 29724: template 29724: 29724: inline __shared_ptr<_Tp, _Lp> 29724: atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 29724: { 29724: return std::atomic_exchange_explicit(__p, std::move(__r), 29724: memory_order_seq_cst); 29724: } 29724: # 264 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: template 29724: 29724: bool 29724: atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, 29724: shared_ptr<_Tp>* __v, 29724: shared_ptr<_Tp> __w, 29724: memory_order, 29724: memory_order) 29724: { 29724: shared_ptr<_Tp> __x; 29724: _Sp_locker __lock{__p, __v}; 29724: owner_less> __less; 29724: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 29724: { 29724: __x = std::move(*__p); 29724: *__p = std::move(__w); 29724: return true; 29724: } 29724: __x = std::move(*__v); 29724: *__v = *__p; 29724: return false; 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 29724: shared_ptr<_Tp> __w) 29724: { 29724: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29724: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, 29724: shared_ptr<_Tp>* __v, 29724: shared_ptr<_Tp> __w, 29724: memory_order __success, 29724: memory_order __failure) 29724: { 29724: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29724: std::move(__w), __success, __failure); 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 29724: shared_ptr<_Tp> __w) 29724: { 29724: return std::atomic_compare_exchange_weak_explicit(__p, __v, 29724: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29724: } 29724: 29724: template 29724: 29724: bool 29724: atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp>* __v, 29724: __shared_ptr<_Tp, _Lp> __w, 29724: memory_order, 29724: memory_order) 29724: { 29724: __shared_ptr<_Tp, _Lp> __x; 29724: _Sp_locker __lock{__p, __v}; 29724: owner_less<__shared_ptr<_Tp, _Lp>> __less; 29724: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 29724: { 29724: __x = std::move(*__p); 29724: *__p = std::move(__w); 29724: return true; 29724: } 29724: __x = std::move(*__v); 29724: *__v = *__p; 29724: return false; 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp>* __v, 29724: __shared_ptr<_Tp, _Lp> __w) 29724: { 29724: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29724: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp>* __v, 29724: __shared_ptr<_Tp, _Lp> __w, 29724: memory_order __success, 29724: memory_order __failure) 29724: { 29724: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29724: std::move(__w), __success, __failure); 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, 29724: __shared_ptr<_Tp, _Lp>* __v, 29724: __shared_ptr<_Tp, _Lp> __w) 29724: { 29724: return std::atomic_compare_exchange_weak_explicit(__p, __v, 29724: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29724: } 29724: # 867 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29724: 29724: } 29724: # 82 "/usr/include/c++/14/memory" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/backward/auto_ptr.h" 1 3 29724: # 36 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 47 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: template 29724: struct auto_ptr_ref 29724: { 29724: _Tp1* _M_ptr; 29724: 29724: explicit 29724: auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } 29724: } __attribute__ ((__deprecated__)); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: # 92 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: template 29724: class auto_ptr 29724: { 29724: private: 29724: _Tp* _M_ptr; 29724: 29724: public: 29724: 29724: typedef _Tp element_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } 29724: # 118 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } 29724: # 130 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: template 29724: auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } 29724: # 141 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: auto_ptr& 29724: operator=(auto_ptr& __a) throw() 29724: { 29724: reset(__a.release()); 29724: return *this; 29724: } 29724: # 158 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: template 29724: auto_ptr& 29724: operator=(auto_ptr<_Tp1>& __a) throw() 29724: { 29724: reset(__a.release()); 29724: return *this; 29724: } 29724: # 176 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: ~auto_ptr() { delete _M_ptr; } 29724: # 186 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: element_type& 29724: operator*() const throw() 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) std::__glibcxx_assert_fail(); } while (false); 29724: return *_M_ptr; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: element_type* 29724: operator->() const throw() 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_ptr; 29724: } 29724: # 216 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: element_type* 29724: get() const throw() { return _M_ptr; } 29724: # 230 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: element_type* 29724: release() throw() 29724: { 29724: element_type* __tmp = _M_ptr; 29724: _M_ptr = 0; 29724: return __tmp; 29724: } 29724: # 245 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: void 29724: reset(element_type* __p = 0) throw() 29724: { 29724: if (__p != _M_ptr) 29724: { 29724: delete _M_ptr; 29724: _M_ptr = __p; 29724: } 29724: } 29724: # 270 "/usr/include/c++/14/backward/auto_ptr.h" 3 29724: auto_ptr(auto_ptr_ref __ref) throw() 29724: : _M_ptr(__ref._M_ptr) { } 29724: 29724: auto_ptr& 29724: operator=(auto_ptr_ref __ref) throw() 29724: { 29724: if (__ref._M_ptr != this->get()) 29724: { 29724: delete _M_ptr; 29724: _M_ptr = __ref._M_ptr; 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: operator auto_ptr_ref<_Tp1>() throw() 29724: { return auto_ptr_ref<_Tp1>(this->release()); } 29724: 29724: template 29724: operator auto_ptr<_Tp1>() throw() 29724: { return auto_ptr<_Tp1>(this->release()); } 29724: } __attribute__ ((__deprecated__ ("use '" "std::unique_ptr" "' instead"))); 29724: 29724: 29724: 29724: template<> 29724: class auto_ptr 29724: { 29724: public: 29724: typedef void element_type; 29724: } __attribute__ ((__deprecated__)); 29724: 29724: 29724: 29724: template<_Lock_policy _Lp> 29724: template 29724: inline 29724: __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) 29724: : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) 29724: { __r.release(); } 29724: 29724: template 29724: template 29724: inline 29724: __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) 29724: : _M_ptr(__r.get()), _M_refcount() 29724: { 29724: 29724: static_assert( sizeof(_Tp1) > 0, "incomplete type" ); 29724: _Tp1* __tmp = __r.get(); 29724: _M_refcount = __shared_count<_Lp>(std::move(__r)); 29724: _M_enable_shared_from_this_with(__tmp); 29724: } 29724: 29724: template 29724: template 29724: inline 29724: shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) 29724: : __shared_ptr<_Tp>(std::move(__r)) { } 29724: 29724: 29724: template 29724: template 29724: inline 29724: unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept 29724: : _M_t(__u.release(), deleter_type()) { } 29724: 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: } 29724: # 87 "/usr/include/c++/14/memory" 2 3 29724: # 115 "/usr/include/c++/14/memory" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 116 "/usr/include/c++/14/memory" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 136 "/usr/include/c++/14/memory" 3 29724: enum class pointer_safety { relaxed, preferred, strict }; 29724: 29724: 29724: inline void 29724: declare_reachable(void*) { } 29724: 29724: 29724: template 29724: inline _Tp* 29724: undeclare_reachable(_Tp* __p) { return __p; } 29724: 29724: 29724: inline void 29724: declare_no_pointers(char*, size_t) { } 29724: 29724: 29724: inline void 29724: undeclare_no_pointers(char*, size_t) { } 29724: 29724: 29724: inline pointer_safety 29724: get_pointer_safety() noexcept { return pointer_safety::relaxed; } 29724: 29724: 29724: 29724: } 29724: # 171 "/usr/include/c++/14/memory" 3 29724: # 1 "/usr/include/c++/14/pstl/glue_memory_defs.h" 1 3 29724: # 13 "/usr/include/c++/14/pstl/glue_memory_defs.h" 3 29724: # 1 "/usr/include/c++/14/pstl/execution_defs.h" 1 3 29724: # 15 "/usr/include/c++/14/pstl/execution_defs.h" 3 29724: namespace __pstl 29724: { 29724: namespace execution 29724: { 29724: inline namespace v1 29724: { 29724: 29724: 29724: class sequenced_policy 29724: { 29724: }; 29724: 29724: 29724: class parallel_policy 29724: { 29724: }; 29724: 29724: 29724: class parallel_unsequenced_policy 29724: { 29724: }; 29724: 29724: class unsequenced_policy 29724: { 29724: }; 29724: 29724: 29724: inline constexpr sequenced_policy seq{}; 29724: inline constexpr parallel_policy par{}; 29724: inline constexpr parallel_unsequenced_policy par_unseq{}; 29724: inline constexpr unsequenced_policy unseq{}; 29724: 29724: 29724: template 29724: struct is_execution_policy : std::false_type 29724: { 29724: }; 29724: 29724: template <> 29724: struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type 29724: { 29724: }; 29724: template <> 29724: struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type 29724: { 29724: }; 29724: template <> 29724: struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type 29724: { 29724: }; 29724: template <> 29724: struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type 29724: { 29724: }; 29724: 29724: 29724: template 29724: constexpr bool is_execution_policy_v = __pstl::execution::is_execution_policy<_Tp>::value; 29724: 29724: 29724: } 29724: } 29724: 29724: namespace __internal 29724: { 29724: template 29724: 29724: using __enable_if_execution_policy = 29724: typename std::enable_if<__pstl::execution::is_execution_policy>::value, 29724: _Tp>::type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __serial_tag; 29724: template 29724: struct __parallel_tag; 29724: 29724: } 29724: 29724: } 29724: # 14 "/usr/include/c++/14/pstl/glue_memory_defs.h" 2 3 29724: 29724: namespace std 29724: { 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: uninitialized_fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, const _Tp& __value); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: destroy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: destroy_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: uninitialized_default_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_default_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: uninitialized_value_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29724: 29724: } 29724: # 172 "/usr/include/c++/14/memory" 2 3 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/usr/include/c++/14/string" 1 3 29724: # 36 "/usr/include/c++/14/string" 3 29724: 29724: # 37 "/usr/include/c++/14/string" 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/char_traits.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/char_traits.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/char_traits.h" 3 29724: # 46 "/usr/include/c++/14/bits/char_traits.h" 3 29724: # 1 "/usr/include/c++/14/cwchar" 1 3 29724: # 39 "/usr/include/c++/14/cwchar" 3 29724: 29724: # 40 "/usr/include/c++/14/cwchar" 3 29724: # 47 "/usr/include/c++/14/bits/char_traits.h" 2 3 29724: # 64 "/usr/include/c++/14/bits/char_traits.h" 3 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: # 68 "/usr/include/c++/14/bits/char_traits.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wstringop-overflow" 29724: #pragma GCC diagnostic ignored "-Wstringop-overread" 29724: #pragma GCC diagnostic ignored "-Warray-bounds" 29724: # 83 "/usr/include/c++/14/bits/char_traits.h" 3 29724: template 29724: struct _Char_types 29724: { 29724: typedef unsigned long int_type; 29724: 29724: typedef std::streampos pos_type; 29724: typedef std::streamoff off_type; 29724: typedef std::mbstate_t state_type; 29724: 29724: }; 29724: # 110 "/usr/include/c++/14/bits/char_traits.h" 3 29724: template 29724: struct char_traits 29724: { 29724: typedef _CharT char_type; 29724: typedef typename _Char_types<_CharT>::int_type int_type; 29724: 29724: typedef typename _Char_types<_CharT>::pos_type pos_type; 29724: typedef typename _Char_types<_CharT>::off_type off_type; 29724: typedef typename _Char_types<_CharT>::state_type state_type; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr void 29724: assign(char_type& __c1, const char_type& __c2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: __c1 = __c2; 29724: } 29724: 29724: static constexpr bool 29724: eq(const char_type& __c1, const char_type& __c2) 29724: { return __c1 == __c2; } 29724: 29724: static constexpr bool 29724: lt(const char_type& __c1, const char_type& __c2) 29724: { return __c1 < __c2; } 29724: 29724: static constexpr int 29724: compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 29724: 29724: static constexpr std::size_t 29724: length(const char_type* __s); 29724: 29724: static constexpr const char_type* 29724: find(const char_type* __s, std::size_t __n, const char_type& __a); 29724: 29724: static char_type* 29724: move(char_type* __s1, const char_type* __s2, std::size_t __n); 29724: 29724: static char_type* 29724: copy(char_type* __s1, const char_type* __s2, std::size_t __n); 29724: 29724: static char_type* 29724: assign(char_type* __s, std::size_t __n, char_type __a); 29724: 29724: static constexpr char_type 29724: to_char_type(const int_type& __c) 29724: { return static_cast(__c); } 29724: 29724: static constexpr int_type 29724: to_int_type(const char_type& __c) 29724: { return static_cast(__c); } 29724: 29724: static constexpr bool 29724: eq_int_type(const int_type& __c1, const int_type& __c2) 29724: { return __c1 == __c2; } 29724: 29724: 29724: static constexpr int_type 29724: eof() 29724: { return static_cast(-1); } 29724: 29724: static constexpr int_type 29724: not_eof(const int_type& __c) 29724: { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } 29724: 29724: }; 29724: 29724: template 29724: constexpr int 29724: char_traits<_CharT>:: 29724: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) 29724: { 29724: for (std::size_t __i = 0; __i < __n; ++__i) 29724: if (lt(__s1[__i], __s2[__i])) 29724: return -1; 29724: else if (lt(__s2[__i], __s1[__i])) 29724: return 1; 29724: return 0; 29724: } 29724: 29724: template 29724: constexpr std::size_t 29724: char_traits<_CharT>:: 29724: length(const char_type* __p) 29724: { 29724: std::size_t __i = 0; 29724: while (!eq(__p[__i], char_type())) 29724: ++__i; 29724: return __i; 29724: } 29724: 29724: template 29724: constexpr const typename char_traits<_CharT>::char_type* 29724: char_traits<_CharT>:: 29724: find(const char_type* __s, std::size_t __n, const char_type& __a) 29724: { 29724: for (std::size_t __i = 0; __i < __n; ++__i) 29724: if (eq(__s[__i], __a)) 29724: return __s + __i; 29724: return 0; 29724: } 29724: 29724: template 29724: 29724: typename char_traits<_CharT>::char_type* 29724: char_traits<_CharT>:: 29724: move(char_type* __s1, const char_type* __s2, std::size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: # 246 "/usr/include/c++/14/bits/char_traits.h" 3 29724: __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); 29724: return __s1; 29724: } 29724: 29724: template 29724: 29724: typename char_traits<_CharT>::char_type* 29724: char_traits<_CharT>:: 29724: copy(char_type* __s1, const char_type* __s2, std::size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: # 266 "/usr/include/c++/14/bits/char_traits.h" 3 29724: __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); 29724: return __s1; 29724: } 29724: 29724: template 29724: 29724: typename char_traits<_CharT>::char_type* 29724: char_traits<_CharT>:: 29724: assign(char_type* __s, std::size_t __n, char_type __a) 29724: { 29724: # 285 "/usr/include/c++/14/bits/char_traits.h" 3 29724: if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) 29724: { 29724: if (__n) 29724: { 29724: unsigned char __c; 29724: __builtin_memcpy(&__c, __builtin_addressof(__a), 1); 29724: __builtin_memset(__s, __c, __n); 29724: } 29724: } 29724: else 29724: { 29724: for (std::size_t __i = 0; __i < __n; ++__i) 29724: __s[__i] = __a; 29724: } 29724: return __s; 29724: } 29724: 29724: 29724: } 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 322 "/usr/include/c++/14/bits/char_traits.h" 3 29724: template 29724: struct char_traits : public __gnu_cxx::char_traits<_CharT> 29724: { }; 29724: 29724: 29724: 29724: template<> 29724: struct char_traits 29724: { 29724: typedef char char_type; 29724: typedef int int_type; 29724: 29724: typedef streampos pos_type; 29724: typedef streamoff off_type; 29724: typedef mbstate_t state_type; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr void 29724: assign(char_type& __c1, const char_type& __c2) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: __c1 = __c2; 29724: } 29724: 29724: static constexpr bool 29724: eq(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: static constexpr bool 29724: lt(const char_type& __c1, const char_type& __c2) noexcept 29724: { 29724: 29724: return (static_cast(__c1) 29724: < static_cast(__c2)); 29724: } 29724: 29724: static constexpr int 29724: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return 0; 29724: 29724: if (std::__is_constant_evaluated()) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: if (lt(__s1[__i], __s2[__i])) 29724: return -1; 29724: else if (lt(__s2[__i], __s1[__i])) 29724: return 1; 29724: return 0; 29724: } 29724: 29724: return __builtin_memcmp(__s1, __s2, __n); 29724: } 29724: 29724: static constexpr size_t 29724: length(const char_type* __s) 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __gnu_cxx::char_traits::length(__s); 29724: 29724: return __builtin_strlen(__s); 29724: } 29724: 29724: static constexpr const char_type* 29724: find(const char_type* __s, size_t __n, const char_type& __a) 29724: { 29724: if (__n == 0) 29724: return 0; 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __gnu_cxx::char_traits::find(__s, __n, __a); 29724: 29724: return static_cast(__builtin_memchr(__s, __a, __n)); 29724: } 29724: 29724: static char_type* 29724: move(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return static_cast(__builtin_memmove(__s1, __s2, __n)); 29724: } 29724: 29724: static char_type* 29724: copy(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return static_cast(__builtin_memcpy(__s1, __s2, __n)); 29724: } 29724: 29724: static char_type* 29724: assign(char_type* __s, size_t __n, char_type __a) 29724: { 29724: if (__n == 0) 29724: return __s; 29724: 29724: 29724: 29724: 29724: return static_cast(__builtin_memset(__s, __a, __n)); 29724: } 29724: 29724: static constexpr char_type 29724: to_char_type(const int_type& __c) noexcept 29724: { return static_cast(__c); } 29724: 29724: 29724: 29724: static constexpr int_type 29724: to_int_type(const char_type& __c) noexcept 29724: { return static_cast(static_cast(__c)); } 29724: 29724: static constexpr bool 29724: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: 29724: static constexpr int_type 29724: eof() noexcept 29724: { return static_cast(-1); } 29724: 29724: static constexpr int_type 29724: not_eof(const int_type& __c) noexcept 29724: { return (__c == eof()) ? 0 : __c; } 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: template<> 29724: struct char_traits 29724: { 29724: typedef wchar_t char_type; 29724: typedef wint_t int_type; 29724: 29724: typedef streamoff off_type; 29724: typedef wstreampos pos_type; 29724: typedef mbstate_t state_type; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr void 29724: assign(char_type& __c1, const char_type& __c2) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: __c1 = __c2; 29724: } 29724: 29724: static constexpr bool 29724: eq(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: static constexpr bool 29724: lt(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 < __c2; } 29724: 29724: static constexpr int 29724: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return 0; 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __gnu_cxx::char_traits::compare(__s1, __s2, __n); 29724: 29724: return wmemcmp(__s1, __s2, __n); 29724: } 29724: 29724: static constexpr size_t 29724: length(const char_type* __s) 29724: { 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __gnu_cxx::char_traits::length(__s); 29724: 29724: return wcslen(__s); 29724: } 29724: 29724: static constexpr const char_type* 29724: find(const char_type* __s, size_t __n, const char_type& __a) 29724: { 29724: if (__n == 0) 29724: return 0; 29724: 29724: if (std::__is_constant_evaluated()) 29724: return __gnu_cxx::char_traits::find(__s, __n, __a); 29724: 29724: return wmemchr(__s, __a, __n); 29724: } 29724: 29724: static char_type* 29724: move(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return wmemmove(__s1, __s2, __n); 29724: } 29724: 29724: static char_type* 29724: copy(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return wmemcpy(__s1, __s2, __n); 29724: } 29724: 29724: static char_type* 29724: assign(char_type* __s, size_t __n, char_type __a) 29724: { 29724: if (__n == 0) 29724: return __s; 29724: 29724: 29724: 29724: 29724: return wmemset(__s, __a, __n); 29724: } 29724: 29724: static constexpr char_type 29724: to_char_type(const int_type& __c) noexcept 29724: { return char_type(__c); } 29724: 29724: static constexpr int_type 29724: to_int_type(const char_type& __c) noexcept 29724: { return int_type(__c); } 29724: 29724: static constexpr bool 29724: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: 29724: static constexpr int_type 29724: eof() noexcept 29724: { return static_cast((0xffffffffu)); } 29724: 29724: static constexpr int_type 29724: not_eof(const int_type& __c) noexcept 29724: { return eq_int_type(__c, eof()) ? 0 : __c; } 29724: 29724: }; 29724: # 732 "/usr/include/c++/14/bits/char_traits.h" 3 29724: 29724: } 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template<> 29724: struct char_traits 29724: { 29724: typedef char16_t char_type; 29724: 29724: typedef short unsigned int int_type; 29724: 29724: 29724: 29724: 29724: typedef streamoff off_type; 29724: typedef u16streampos pos_type; 29724: typedef mbstate_t state_type; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr void 29724: assign(char_type& __c1, const char_type& __c2) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: __c1 = __c2; 29724: } 29724: 29724: static constexpr bool 29724: eq(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: static constexpr bool 29724: lt(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 < __c2; } 29724: 29724: static constexpr int 29724: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: if (lt(__s1[__i], __s2[__i])) 29724: return -1; 29724: else if (lt(__s2[__i], __s1[__i])) 29724: return 1; 29724: return 0; 29724: } 29724: 29724: static constexpr size_t 29724: length(const char_type* __s) 29724: { 29724: size_t __i = 0; 29724: while (!eq(__s[__i], char_type())) 29724: ++__i; 29724: return __i; 29724: } 29724: 29724: static constexpr const char_type* 29724: find(const char_type* __s, size_t __n, const char_type& __a) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: if (eq(__s[__i], __a)) 29724: return __s + __i; 29724: return 0; 29724: } 29724: 29724: static char_type* 29724: move(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return (static_cast 29724: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 29724: } 29724: 29724: static char_type* 29724: copy(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return (static_cast 29724: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 29724: } 29724: 29724: static char_type* 29724: assign(char_type* __s, size_t __n, char_type __a) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: assign(__s[__i], __a); 29724: return __s; 29724: } 29724: 29724: static constexpr char_type 29724: to_char_type(const int_type& __c) noexcept 29724: { return char_type(__c); } 29724: 29724: static constexpr bool 29724: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: 29724: static constexpr int_type 29724: to_int_type(const char_type& __c) noexcept 29724: { return __c == eof() ? int_type(0xfffd) : int_type(__c); } 29724: 29724: static constexpr int_type 29724: eof() noexcept 29724: { return static_cast(-1); } 29724: 29724: static constexpr int_type 29724: not_eof(const int_type& __c) noexcept 29724: { return eq_int_type(__c, eof()) ? 0 : __c; } 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: template<> 29724: struct char_traits 29724: { 29724: typedef char32_t char_type; 29724: 29724: typedef unsigned int int_type; 29724: 29724: 29724: 29724: 29724: typedef streamoff off_type; 29724: typedef u32streampos pos_type; 29724: typedef mbstate_t state_type; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr void 29724: assign(char_type& __c1, const char_type& __c2) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: __c1 = __c2; 29724: } 29724: 29724: static constexpr bool 29724: eq(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: static constexpr bool 29724: lt(const char_type& __c1, const char_type& __c2) noexcept 29724: { return __c1 < __c2; } 29724: 29724: static constexpr int 29724: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: if (lt(__s1[__i], __s2[__i])) 29724: return -1; 29724: else if (lt(__s2[__i], __s1[__i])) 29724: return 1; 29724: return 0; 29724: } 29724: 29724: static constexpr size_t 29724: length(const char_type* __s) 29724: { 29724: size_t __i = 0; 29724: while (!eq(__s[__i], char_type())) 29724: ++__i; 29724: return __i; 29724: } 29724: 29724: static constexpr const char_type* 29724: find(const char_type* __s, size_t __n, const char_type& __a) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: if (eq(__s[__i], __a)) 29724: return __s + __i; 29724: return 0; 29724: } 29724: 29724: static char_type* 29724: move(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return (static_cast 29724: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 29724: } 29724: 29724: static char_type* 29724: copy(char_type* __s1, const char_type* __s2, size_t __n) 29724: { 29724: if (__n == 0) 29724: return __s1; 29724: 29724: 29724: 29724: 29724: return (static_cast 29724: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 29724: } 29724: 29724: static char_type* 29724: assign(char_type* __s, size_t __n, char_type __a) 29724: { 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: assign(__s[__i], __a); 29724: return __s; 29724: } 29724: 29724: static constexpr char_type 29724: to_char_type(const int_type& __c) noexcept 29724: { return char_type(__c); } 29724: 29724: static constexpr int_type 29724: to_int_type(const char_type& __c) noexcept 29724: { return int_type(__c); } 29724: 29724: static constexpr bool 29724: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29724: { return __c1 == __c2; } 29724: 29724: 29724: static constexpr int_type 29724: eof() noexcept 29724: { return static_cast(-1); } 29724: 29724: static constexpr int_type 29724: not_eof(const int_type& __c) noexcept 29724: { return eq_int_type(__c, eof()) ? 0 : __c; } 29724: 29724: }; 29724: # 1010 "/usr/include/c++/14/bits/char_traits.h" 3 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: } 29724: # 43 "/usr/include/c++/14/string" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/localefwd.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/localefwd.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/localefwd.h" 3 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 1 3 29724: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29724: 29724: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29724: 29724: # 1 "/usr/include/c++/14/clocale" 1 3 29724: # 39 "/usr/include/c++/14/clocale" 3 29724: 29724: # 40 "/usr/include/c++/14/clocale" 3 29724: 29724: 29724: # 1 "/usr/include/locale.h" 1 3 4 29724: # 28 "/usr/include/locale.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 29 "/usr/include/locale.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/locale.h" 1 3 4 29724: # 30 "/usr/include/locale.h" 2 3 4 29724: 29724: extern "C" { 29724: # 51 "/usr/include/locale.h" 3 4 29724: struct lconv 29724: { 29724: 29724: 29724: char *decimal_point; 29724: char *thousands_sep; 29724: 29724: 29724: 29724: 29724: 29724: char *grouping; 29724: 29724: 29724: 29724: 29724: 29724: char *int_curr_symbol; 29724: char *currency_symbol; 29724: char *mon_decimal_point; 29724: char *mon_thousands_sep; 29724: char *mon_grouping; 29724: char *positive_sign; 29724: char *negative_sign; 29724: char int_frac_digits; 29724: char frac_digits; 29724: 29724: char p_cs_precedes; 29724: 29724: char p_sep_by_space; 29724: 29724: char n_cs_precedes; 29724: 29724: char n_sep_by_space; 29724: 29724: 29724: 29724: 29724: 29724: 29724: char p_sign_posn; 29724: char n_sign_posn; 29724: 29724: 29724: char int_p_cs_precedes; 29724: 29724: char int_p_sep_by_space; 29724: 29724: char int_n_cs_precedes; 29724: 29724: char int_n_sep_by_space; 29724: 29724: 29724: 29724: 29724: 29724: 29724: char int_p_sign_posn; 29724: char int_n_sign_posn; 29724: # 118 "/usr/include/locale.h" 3 4 29724: }; 29724: 29724: 29724: 29724: extern char *setlocale (int __category, const char *__locale) noexcept (true); 29724: 29724: 29724: extern struct lconv *localeconv (void) noexcept (true); 29724: # 141 "/usr/include/locale.h" 3 4 29724: extern locale_t newlocale (int __category_mask, const char *__locale, 29724: locale_t __base) noexcept (true); 29724: # 176 "/usr/include/locale.h" 3 4 29724: extern locale_t duplocale (locale_t __dataset) noexcept (true); 29724: 29724: 29724: 29724: extern void freelocale (locale_t __dataset) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern locale_t uselocale (locale_t __dataset) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 43 "/usr/include/c++/14/clocale" 2 3 29724: # 51 "/usr/include/c++/14/clocale" 3 29724: namespace std 29724: { 29724: using ::lconv; 29724: using ::setlocale; 29724: using ::localeconv; 29724: } 29724: # 42 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: extern "C" __typeof(uselocale) __uselocale; 29724: 29724: 29724: } 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: typedef __locale_t __c_locale; 29724: # 73 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29724: inline int 29724: __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), 29724: char* __out, 29724: const int __size __attribute__ ((__unused__)), 29724: const char* __fmt, ...) 29724: { 29724: 29724: __c_locale __old = __gnu_cxx::__uselocale(__cloc); 29724: # 93 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29724: __builtin_va_list __args; 29724: __builtin_va_start(__args, __fmt); 29724: 29724: 29724: const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); 29724: 29724: 29724: 29724: 29724: __builtin_va_end(__args); 29724: 29724: 29724: __gnu_cxx::__uselocale(__old); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: return __ret; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 41 "/usr/include/c++/14/bits/localefwd.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/cctype" 1 3 29724: # 39 "/usr/include/c++/14/cctype" 3 29724: 29724: # 40 "/usr/include/c++/14/cctype" 3 29724: 29724: 29724: # 1 "/usr/include/ctype.h" 1 3 4 29724: # 28 "/usr/include/ctype.h" 3 4 29724: extern "C" { 29724: # 46 "/usr/include/ctype.h" 3 4 29724: enum 29724: { 29724: _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), 29724: _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), 29724: _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), 29724: _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), 29724: _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), 29724: _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), 29724: _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), 29724: _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), 29724: _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), 29724: _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), 29724: _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), 29724: _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) 29724: }; 29724: # 79 "/usr/include/ctype.h" 3 4 29724: extern const unsigned short int **__ctype_b_loc (void) 29724: noexcept (true) __attribute__ ((__const__)); 29724: extern const __int32_t **__ctype_tolower_loc (void) 29724: noexcept (true) __attribute__ ((__const__)); 29724: extern const __int32_t **__ctype_toupper_loc (void) 29724: noexcept (true) __attribute__ ((__const__)); 29724: # 108 "/usr/include/ctype.h" 3 4 29724: extern int isalnum (int) noexcept (true); 29724: extern int isalpha (int) noexcept (true); 29724: extern int iscntrl (int) noexcept (true); 29724: extern int isdigit (int) noexcept (true); 29724: extern int islower (int) noexcept (true); 29724: extern int isgraph (int) noexcept (true); 29724: extern int isprint (int) noexcept (true); 29724: extern int ispunct (int) noexcept (true); 29724: extern int isspace (int) noexcept (true); 29724: extern int isupper (int) noexcept (true); 29724: extern int isxdigit (int) noexcept (true); 29724: 29724: 29724: 29724: extern int tolower (int __c) noexcept (true); 29724: 29724: 29724: extern int toupper (int __c) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int isblank (int) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int isctype (int __c, int __mask) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int isascii (int __c) noexcept (true); 29724: 29724: 29724: 29724: extern int toascii (int __c) noexcept (true); 29724: 29724: 29724: 29724: extern int _toupper (int) noexcept (true); 29724: extern int _tolower (int) noexcept (true); 29724: # 251 "/usr/include/ctype.h" 3 4 29724: extern int isalnum_l (int, locale_t) noexcept (true); 29724: extern int isalpha_l (int, locale_t) noexcept (true); 29724: extern int iscntrl_l (int, locale_t) noexcept (true); 29724: extern int isdigit_l (int, locale_t) noexcept (true); 29724: extern int islower_l (int, locale_t) noexcept (true); 29724: extern int isgraph_l (int, locale_t) noexcept (true); 29724: extern int isprint_l (int, locale_t) noexcept (true); 29724: extern int ispunct_l (int, locale_t) noexcept (true); 29724: extern int isspace_l (int, locale_t) noexcept (true); 29724: extern int isupper_l (int, locale_t) noexcept (true); 29724: extern int isxdigit_l (int, locale_t) noexcept (true); 29724: 29724: extern int isblank_l (int, locale_t) noexcept (true); 29724: 29724: 29724: 29724: extern int __tolower_l (int __c, locale_t __l) noexcept (true); 29724: extern int tolower_l (int __c, locale_t __l) noexcept (true); 29724: 29724: 29724: extern int __toupper_l (int __c, locale_t __l) noexcept (true); 29724: extern int toupper_l (int __c, locale_t __l) noexcept (true); 29724: # 327 "/usr/include/ctype.h" 3 4 29724: } 29724: # 43 "/usr/include/c++/14/cctype" 2 3 29724: # 62 "/usr/include/c++/14/cctype" 3 29724: namespace std 29724: { 29724: using ::isalnum; 29724: using ::isalpha; 29724: using ::iscntrl; 29724: using ::isdigit; 29724: using ::isgraph; 29724: using ::islower; 29724: using ::isprint; 29724: using ::ispunct; 29724: using ::isspace; 29724: using ::isupper; 29724: using ::isxdigit; 29724: using ::tolower; 29724: using ::toupper; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std 29724: { 29724: using ::isblank; 29724: } 29724: # 43 "/usr/include/c++/14/bits/localefwd.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 55 "/usr/include/c++/14/bits/localefwd.h" 3 29724: class locale; 29724: 29724: template 29724: bool 29724: has_facet(const locale&) throw(); 29724: 29724: template 29724: const _Facet& 29724: use_facet(const locale&); 29724: 29724: 29724: template 29724: bool 29724: isspace(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isprint(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: iscntrl(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isupper(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: islower(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isalpha(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isdigit(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: ispunct(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isxdigit(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isalnum(_CharT, const locale&); 29724: 29724: template 29724: bool 29724: isgraph(_CharT, const locale&); 29724: 29724: 29724: template 29724: bool 29724: isblank(_CharT, const locale&); 29724: 29724: 29724: template 29724: _CharT 29724: toupper(_CharT, const locale&); 29724: 29724: template 29724: _CharT 29724: tolower(_CharT, const locale&); 29724: 29724: 29724: struct ctype_base; 29724: template 29724: class ctype; 29724: template<> class ctype; 29724: 29724: template<> class ctype; 29724: 29724: template 29724: class ctype_byname; 29724: 29724: 29724: class codecvt_base; 29724: template 29724: class codecvt; 29724: template<> class codecvt; 29724: 29724: template<> class codecvt; 29724: 29724: 29724: template<> class codecvt; 29724: template<> class codecvt; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class codecvt_byname; 29724: 29724: 29724: 29724: template > 29724: class num_get; 29724: template > 29724: class num_put; 29724: 29724: namespace __cxx11 { 29724: template class numpunct; 29724: template class numpunct_byname; 29724: } 29724: 29724: namespace __cxx11 { 29724: 29724: template 29724: class collate; 29724: template 29724: class collate_byname; 29724: } 29724: 29724: 29724: class time_base; 29724: namespace __cxx11 { 29724: template > 29724: class time_get; 29724: template > 29724: class time_get_byname; 29724: } 29724: template > 29724: class time_put; 29724: template > 29724: class time_put_byname; 29724: 29724: 29724: class money_base; 29724: namespace __cxx11 { 29724: template > 29724: class money_get; 29724: template > 29724: class money_put; 29724: } 29724: namespace __cxx11 { 29724: template 29724: class moneypunct; 29724: template 29724: class moneypunct_byname; 29724: } 29724: 29724: 29724: struct messages_base; 29724: namespace __cxx11 { 29724: template 29724: class messages; 29724: template 29724: class messages_byname; 29724: } 29724: 29724: 29724: } 29724: # 46 "/usr/include/c++/14/string" 2 3 29724: # 1 "/usr/include/c++/14/bits/ostream_insert.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/ostream_insert.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/ostream_insert.h" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/cxxabi_forced.h" 1 3 29724: # 34 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 29724: 29724: # 35 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 29724: 29724: #pragma GCC visibility push(default) 29724: 29724: 29724: namespace __cxxabiv1 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class __forced_unwind 29724: { 29724: virtual ~__forced_unwind() throw(); 29724: 29724: 29724: virtual void __pure_dummy() = 0; 29724: }; 29724: } 29724: 29724: 29724: #pragma GCC visibility pop 29724: # 37 "/usr/include/c++/14/bits/ostream_insert.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: inline void 29724: __ostream_write(basic_ostream<_CharT, _Traits>& __out, 29724: const _CharT* __s, streamsize __n) 29724: { 29724: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29724: typedef typename __ostream_type::ios_base __ios_base; 29724: 29724: const streamsize __put = __out.rdbuf()->sputn(__s, __n); 29724: if (__put != __n) 29724: __out.setstate(__ios_base::badbit); 29724: } 29724: 29724: template 29724: inline void 29724: __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) 29724: { 29724: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29724: typedef typename __ostream_type::ios_base __ios_base; 29724: 29724: const _CharT __c = __out.fill(); 29724: for (; __n > 0; --__n) 29724: { 29724: const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); 29724: if (_Traits::eq_int_type(__put, _Traits::eof())) 29724: { 29724: __out.setstate(__ios_base::badbit); 29724: break; 29724: } 29724: } 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: __ostream_insert(basic_ostream<_CharT, _Traits>& __out, 29724: const _CharT* __s, streamsize __n) 29724: { 29724: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29724: typedef typename __ostream_type::ios_base __ios_base; 29724: 29724: typename __ostream_type::sentry __cerb(__out); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: const streamsize __w = __out.width(); 29724: if (__w > __n) 29724: { 29724: const bool __left = ((__out.flags() 29724: & __ios_base::adjustfield) 29724: == __ios_base::left); 29724: if (!__left) 29724: __ostream_fill(__out, __w - __n); 29724: if (__out.good()) 29724: __ostream_write(__out, __s, __n); 29724: if (__left && __out.good()) 29724: __ostream_fill(__out, __w - __n); 29724: } 29724: else 29724: __ostream_write(__out, __s, __n); 29724: __out.width(0); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __out._M_setstate(__ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { __out._M_setstate(__ios_base::badbit); } 29724: } 29724: return __out; 29724: } 29724: 29724: 29724: 29724: 29724: extern template ostream& __ostream_insert(ostream&, const char*, streamsize); 29724: 29724: 29724: extern template wostream& __ostream_insert(wostream&, const wchar_t*, 29724: streamsize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 47 "/usr/include/c++/14/string" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/basic_string.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/basic_string.h" 3 29724: # 47 "/usr/include/c++/14/bits/basic_string.h" 3 29724: # 1 "/usr/include/c++/14/string_view" 1 3 29724: # 36 "/usr/include/c++/14/string_view" 3 29724: 29724: # 37 "/usr/include/c++/14/string_view" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 45 "/usr/include/c++/14/string_view" 2 3 29724: # 64 "/usr/include/c++/14/string_view" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: constexpr size_t 29724: __sv_check(size_t __size, size_t __pos, const char* __s) 29724: { 29724: if (__pos > __size) 29724: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") 29724: , __s, __pos, __size); 29724: return __pos; 29724: } 29724: 29724: 29724: 29724: constexpr size_t 29724: __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept 29724: { 29724: const bool __testoff = __off < __size - __pos; 29724: return __testoff ? __off : __size - __pos; 29724: } 29724: # 105 "/usr/include/c++/14/string_view" 3 29724: template> 29724: class basic_string_view 29724: { 29724: static_assert(!is_array_v<_CharT>); 29724: static_assert(is_trivial_v<_CharT> && is_standard_layout_v<_CharT>); 29724: static_assert(is_same_v<_CharT, typename _Traits::char_type>); 29724: 29724: public: 29724: 29724: 29724: using traits_type = _Traits; 29724: using value_type = _CharT; 29724: using pointer = value_type*; 29724: using const_pointer = const value_type*; 29724: using reference = value_type&; 29724: using const_reference = const value_type&; 29724: using const_iterator = const value_type*; 29724: using iterator = const_iterator; 29724: using const_reverse_iterator = std::reverse_iterator; 29724: using reverse_iterator = const_reverse_iterator; 29724: using size_type = size_t; 29724: using difference_type = ptrdiff_t; 29724: static constexpr size_type npos = size_type(-1); 29724: 29724: 29724: 29724: constexpr 29724: basic_string_view() noexcept 29724: : _M_len{0}, _M_str{nullptr} 29724: { } 29724: 29724: constexpr basic_string_view(const basic_string_view&) noexcept = default; 29724: 29724: [[__gnu__::__nonnull__]] 29724: constexpr 29724: basic_string_view(const _CharT* __str) noexcept 29724: : _M_len{traits_type::length(__str)}, 29724: _M_str{__str} 29724: { } 29724: 29724: constexpr 29724: basic_string_view(const _CharT* __str, size_type __len) noexcept 29724: : _M_len{__len}, _M_str{__str} 29724: { } 29724: # 180 "/usr/include/c++/14/string_view" 3 29724: constexpr basic_string_view& 29724: operator=(const basic_string_view&) noexcept = default; 29724: 29724: 29724: 29724: [[nodiscard]] 29724: constexpr const_iterator 29724: begin() const noexcept 29724: { return this->_M_str; } 29724: 29724: [[nodiscard]] 29724: constexpr const_iterator 29724: end() const noexcept 29724: { return this->_M_str + this->_M_len; } 29724: 29724: [[nodiscard]] 29724: constexpr const_iterator 29724: cbegin() const noexcept 29724: { return this->_M_str; } 29724: 29724: [[nodiscard]] 29724: constexpr const_iterator 29724: cend() const noexcept 29724: { return this->_M_str + this->_M_len; } 29724: 29724: [[nodiscard]] 29724: constexpr const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(this->end()); } 29724: 29724: [[nodiscard]] 29724: constexpr const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(this->begin()); } 29724: 29724: [[nodiscard]] 29724: constexpr const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(this->end()); } 29724: 29724: [[nodiscard]] 29724: constexpr const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(this->begin()); } 29724: 29724: 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: size() const noexcept 29724: { return this->_M_len; } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: length() const noexcept 29724: { return _M_len; } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: max_size() const noexcept 29724: { 29724: return (npos - sizeof(size_type) - sizeof(void*)) 29724: / sizeof(value_type) / 4; 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr bool 29724: empty() const noexcept 29724: { return this->_M_len == 0; } 29724: 29724: 29724: 29724: [[nodiscard]] 29724: constexpr const_reference 29724: operator[](size_type __pos) const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos < this->_M_len)) std::__glibcxx_assert_fail(); } while (false); 29724: return *(this->_M_str + __pos); 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr const_reference 29724: at(size_type __pos) const 29724: { 29724: if (__pos >= _M_len) 29724: __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") 29724: 29724: , __pos, this->size()); 29724: return *(this->_M_str + __pos); 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr const_reference 29724: front() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: return *this->_M_str; 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr const_reference 29724: back() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: return *(this->_M_str + this->_M_len - 1); 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr const_pointer 29724: data() const noexcept 29724: { return this->_M_str; } 29724: 29724: 29724: 29724: constexpr void 29724: remove_prefix(size_type __n) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) std::__glibcxx_assert_fail(); } while (false); 29724: this->_M_str += __n; 29724: this->_M_len -= __n; 29724: } 29724: 29724: constexpr void 29724: remove_suffix(size_type __n) noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) std::__glibcxx_assert_fail(); } while (false); 29724: this->_M_len -= __n; 29724: } 29724: 29724: constexpr void 29724: swap(basic_string_view& __sv) noexcept 29724: { 29724: auto __tmp = *this; 29724: *this = __sv; 29724: __sv = __tmp; 29724: } 29724: 29724: 29724: 29724: 29724: size_type 29724: copy(_CharT* __str, size_type __n, size_type __pos = 0) const 29724: { 29724: ; 29724: __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); 29724: const size_type __rlen = std::min(__n, _M_len - __pos); 29724: 29724: 29724: traits_type::copy(__str, data() + __pos, __rlen); 29724: return __rlen; 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr basic_string_view 29724: substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) 29724: { 29724: __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); 29724: const size_type __rlen = std::min(__n, _M_len - __pos); 29724: return basic_string_view{_M_str + __pos, __rlen}; 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr int 29724: compare(basic_string_view __str) const noexcept 29724: { 29724: const size_type __rlen = std::min(this->_M_len, __str._M_len); 29724: int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); 29724: if (__ret == 0) 29724: __ret = _S_compare(this->_M_len, __str._M_len); 29724: return __ret; 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr int 29724: compare(size_type __pos1, size_type __n1, basic_string_view __str) const 29724: { return this->substr(__pos1, __n1).compare(__str); } 29724: 29724: [[nodiscard]] 29724: constexpr int 29724: compare(size_type __pos1, size_type __n1, 29724: basic_string_view __str, size_type __pos2, size_type __n2) const 29724: { 29724: return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); 29724: } 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr int 29724: compare(const _CharT* __str) const noexcept 29724: { return this->compare(basic_string_view{__str}); } 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr int 29724: compare(size_type __pos1, size_type __n1, const _CharT* __str) const 29724: { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } 29724: 29724: [[nodiscard]] 29724: constexpr int 29724: compare(size_type __pos1, size_type __n1, 29724: const _CharT* __str, size_type __n2) const noexcept(false) 29724: { 29724: return this->substr(__pos1, __n1) 29724: .compare(basic_string_view(__str, __n2)); 29724: } 29724: # 445 "/usr/include/c++/14/string_view" 3 29724: [[nodiscard]] 29724: constexpr size_type 29724: find(basic_string_view __str, size_type __pos = 0) const noexcept 29724: { return this->find(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find(_CharT __c, size_type __pos = 0) const noexcept; 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: find(const _CharT* __str, size_type __pos = 0) const noexcept 29724: { return this->find(__str, __pos, traits_type::length(__str)); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: rfind(basic_string_view __str, size_type __pos = npos) const noexcept 29724: { return this->rfind(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: rfind(_CharT __c, size_type __pos = npos) const noexcept; 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: rfind(const _CharT* __str, size_type __pos = npos) const noexcept 29724: { return this->rfind(__str, __pos, traits_type::length(__str)); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept 29724: { return this->find_first_of(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 29724: { return this->find(__c, __pos); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept 29724: { return this->find_first_of(__str, __pos, traits_type::length(__str)); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_of(basic_string_view __str, 29724: size_type __pos = npos) const noexcept 29724: { return this->find_last_of(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_of(_CharT __c, size_type __pos=npos) const noexcept 29724: { return this->rfind(__c, __pos); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept 29724: { return this->find_last_of(__str, __pos, traits_type::length(__str)); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_not_of(basic_string_view __str, 29724: size_type __pos = 0) const noexcept 29724: { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_first_not_of(const _CharT* __str, 29724: size_type __pos, size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept 29724: { 29724: return this->find_first_not_of(__str, __pos, 29724: traits_type::length(__str)); 29724: } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_not_of(basic_string_view __str, 29724: size_type __pos = npos) const noexcept 29724: { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; 29724: 29724: [[nodiscard]] 29724: constexpr size_type 29724: find_last_not_of(const _CharT* __str, 29724: size_type __pos, size_type __n) const noexcept; 29724: 29724: [[nodiscard, __gnu__::__nonnull__]] 29724: constexpr size_type 29724: find_last_not_of(const _CharT* __str, 29724: size_type __pos = npos) const noexcept 29724: { 29724: return this->find_last_not_of(__str, __pos, 29724: traits_type::length(__str)); 29724: } 29724: 29724: private: 29724: 29724: static constexpr int 29724: _S_compare(size_type __n1, size_type __n2) noexcept 29724: { 29724: using __limits = __gnu_cxx::__int_traits; 29724: const difference_type __diff = __n1 - __n2; 29724: if (__diff > __limits::__max) 29724: return __limits::__max; 29724: if (__diff < __limits::__min) 29724: return __limits::__min; 29724: return static_cast(__diff); 29724: } 29724: 29724: size_t _M_len; 29724: const _CharT* _M_str; 29724: }; 29724: # 623 "/usr/include/c++/14/string_view" 3 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator==(basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator==(basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator==(__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator!=(basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator!=(basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator!=(__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return !(__x == __y); } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator< (basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) < 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator< (basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return __x.compare(__y) < 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator< (__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) < 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator> (basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) > 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator> (basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return __x.compare(__y) > 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator> (__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) > 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator<=(basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) <= 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator<=(basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return __x.compare(__y) <= 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator<=(__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) <= 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator>=(basic_string_view<_CharT, _Traits> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) >= 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator>=(basic_string_view<_CharT, _Traits> __x, 29724: __type_identity_t> __y) 29724: noexcept 29724: { return __x.compare(__y) >= 0; } 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr bool 29724: operator>=(__type_identity_t> __x, 29724: basic_string_view<_CharT, _Traits> __y) noexcept 29724: { return __x.compare(__y) >= 0; } 29724: 29724: 29724: 29724: 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __os, 29724: basic_string_view<_CharT,_Traits> __str) 29724: { return __ostream_insert(__os, __str.data(), __str.size()); } 29724: 29724: 29724: 29724: 29724: using string_view = basic_string_view; 29724: using wstring_view = basic_string_view; 29724: 29724: 29724: 29724: using u16string_view = basic_string_view; 29724: using u32string_view = basic_string_view; 29724: 29724: 29724: 29724: template 29724: struct hash; 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: [[nodiscard]] 29724: size_t 29724: operator()(const string_view& __str) const noexcept 29724: { return std::_Hash_impl::hash(__str.data(), __str.length()); } 29724: }; 29724: 29724: template<> 29724: struct __is_fast_hash> : std::false_type 29724: { }; 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: [[nodiscard]] 29724: size_t 29724: operator()(const wstring_view& __s) const noexcept 29724: { return std::_Hash_impl::hash(__s.data(), 29724: __s.length() * sizeof(wchar_t)); } 29724: }; 29724: 29724: template<> 29724: struct __is_fast_hash> : std::false_type 29724: { }; 29724: # 825 "/usr/include/c++/14/string_view" 3 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: [[nodiscard]] 29724: size_t 29724: operator()(const u16string_view& __s) const noexcept 29724: { return std::_Hash_impl::hash(__s.data(), 29724: __s.length() * sizeof(char16_t)); } 29724: }; 29724: 29724: template<> 29724: struct __is_fast_hash> : std::false_type 29724: { }; 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: [[nodiscard]] 29724: size_t 29724: operator()(const u32string_view& __s) const noexcept 29724: { return std::_Hash_impl::hash(__s.data(), 29724: __s.length() * sizeof(char32_t)); } 29724: }; 29724: 29724: template<> 29724: struct __is_fast_hash> : std::false_type 29724: { }; 29724: 29724: inline namespace literals 29724: { 29724: inline namespace string_view_literals 29724: { 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29724: inline constexpr basic_string_view 29724: operator""sv(const char* __str, size_t __len) noexcept 29724: { return basic_string_view{__str, __len}; } 29724: 29724: inline constexpr basic_string_view 29724: operator""sv(const wchar_t* __str, size_t __len) noexcept 29724: { return basic_string_view{__str, __len}; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline constexpr basic_string_view 29724: operator""sv(const char16_t* __str, size_t __len) noexcept 29724: { return basic_string_view{__str, __len}; } 29724: 29724: inline constexpr basic_string_view 29724: operator""sv(const char32_t* __str, size_t __len) noexcept 29724: { return basic_string_view{__str, __len}; } 29724: 29724: #pragma GCC diagnostic pop 29724: } 29724: } 29724: # 901 "/usr/include/c++/14/string_view" 3 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/string_view.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/string_view.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/string_view.tcc" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept 29724: { 29724: ; 29724: 29724: if (__n == 0) 29724: return __pos <= _M_len ? __pos : npos; 29724: if (__pos >= _M_len) 29724: return npos; 29724: 29724: const _CharT __elem0 = __str[0]; 29724: const _CharT* __first = _M_str + __pos; 29724: const _CharT* const __last = _M_str + _M_len; 29724: size_type __len = _M_len - __pos; 29724: 29724: while (__len >= __n) 29724: { 29724: 29724: __first = traits_type::find(__first, __len - __n + 1, __elem0); 29724: if (!__first) 29724: return npos; 29724: 29724: 29724: 29724: if (traits_type::compare(__first, __str, __n) == 0) 29724: return __first - _M_str; 29724: __len = __last - ++__first; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __ret = npos; 29724: if (__pos < this->_M_len) 29724: { 29724: const size_type __n = this->_M_len - __pos; 29724: const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); 29724: if (__p) 29724: __ret = __p - this->_M_str; 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept 29724: { 29724: ; 29724: 29724: if (__n <= this->_M_len) 29724: { 29724: __pos = std::min(size_type(this->_M_len - __n), __pos); 29724: do 29724: { 29724: if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) 29724: return __pos; 29724: } 29724: while (__pos-- > 0); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: rfind(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __size = this->_M_len; 29724: if (__size > 0) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: for (++__size; __size-- > 0; ) 29724: if (traits_type::eq(this->_M_str[__size], __c)) 29724: return __size; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_first_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept 29724: { 29724: ; 29724: for (; __n && __pos < this->_M_len; ++__pos) 29724: { 29724: const _CharT* __p = traits_type::find(__str, __n, 29724: this->_M_str[__pos]); 29724: if (__p) 29724: return __pos; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_last_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept 29724: { 29724: ; 29724: size_type __size = this->size(); 29724: if (__size && __n) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (traits_type::find(__str, __n, this->_M_str[__size])) 29724: return __size; 29724: } 29724: while (__size-- != 0); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_first_not_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept 29724: { 29724: ; 29724: for (; __pos < this->_M_len; ++__pos) 29724: if (!traits_type::find(__str, __n, this->_M_str[__pos])) 29724: return __pos; 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_first_not_of(_CharT __c, size_type __pos) const noexcept 29724: { 29724: for (; __pos < this->_M_len; ++__pos) 29724: if (!traits_type::eq(this->_M_str[__pos], __c)) 29724: return __pos; 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_last_not_of(const _CharT* __str, size_type __pos, 29724: size_type __n) const noexcept 29724: { 29724: ; 29724: size_type __size = this->_M_len; 29724: if (__size) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (!traits_type::find(__str, __n, this->_M_str[__size])) 29724: return __size; 29724: } 29724: while (__size--); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29724: basic_string_view<_CharT, _Traits>:: 29724: find_last_not_of(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __size = this->_M_len; 29724: if (__size) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (!traits_type::eq(this->_M_str[__size], __c)) 29724: return __size; 29724: } 29724: while (__size--); 29724: } 29724: return npos; 29724: } 29724: 29724: 29724: } 29724: # 905 "/usr/include/c++/14/string_view" 2 3 29724: # 48 "/usr/include/c++/14/bits/basic_string.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 55 "/usr/include/c++/14/bits/basic_string.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace __cxx11 { 29724: # 85 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: class basic_string 29724: { 29724: 29724: 29724: 29724: 29724: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_CharT>::other _Char_alloc_type; 29724: 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 29724: 29724: 29724: public: 29724: typedef _Traits traits_type; 29724: typedef typename _Traits::char_type value_type; 29724: typedef _Char_alloc_type allocator_type; 29724: typedef typename _Alloc_traits::size_type size_type; 29724: typedef typename _Alloc_traits::difference_type difference_type; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef __gnu_cxx::__normal_iterator iterator; 29724: typedef __gnu_cxx::__normal_iterator 29724: const_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: typedef std::reverse_iterator reverse_iterator; 29724: 29724: 29724: static const size_type npos = static_cast(-1); 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: typedef const_iterator __const_iterator; 29724: 29724: 29724: private: 29724: static pointer 29724: _S_allocate(_Char_alloc_type& __a, size_type __n) 29724: { 29724: pointer __p = _Alloc_traits::allocate(__a, __n); 29724: # 141 "/usr/include/c++/14/bits/basic_string.h" 3 29724: return __p; 29724: } 29724: 29724: 29724: 29724: typedef basic_string_view<_CharT, _Traits> __sv_type; 29724: 29724: template 29724: using _If_sv = enable_if_t< 29724: __and_, 29724: __not_>, 29724: __not_>>::value, 29724: _Res>; 29724: 29724: 29724: 29724: static __sv_type 29724: _S_to_string_view(__sv_type __svt) noexcept 29724: { return __svt; } 29724: 29724: 29724: 29724: 29724: 29724: struct __sv_wrapper 29724: { 29724: explicit 29724: __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } 29724: 29724: __sv_type _M_sv; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_string(__sv_wrapper __svw, const _Alloc& __a) 29724: : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } 29724: 29724: 29724: 29724: struct _Alloc_hider : allocator_type 29724: { 29724: 29724: 29724: 29724: 29724: 29724: _Alloc_hider(pointer __dat, const _Alloc& __a) 29724: : allocator_type(__a), _M_p(__dat) { } 29724: 29724: 29724: _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) 29724: : allocator_type(std::move(__a)), _M_p(__dat) { } 29724: 29724: 29724: pointer _M_p; 29724: }; 29724: 29724: _Alloc_hider _M_dataplus; 29724: size_type _M_string_length; 29724: 29724: enum { _S_local_capacity = 15 / sizeof(_CharT) }; 29724: 29724: union 29724: { 29724: _CharT _M_local_buf[_S_local_capacity + 1]; 29724: size_type _M_allocated_capacity; 29724: }; 29724: 29724: 29724: void 29724: _M_data(pointer __p) 29724: { _M_dataplus._M_p = __p; } 29724: 29724: 29724: void 29724: _M_length(size_type __length) 29724: { _M_string_length = __length; } 29724: 29724: 29724: pointer 29724: _M_data() const 29724: { return _M_dataplus._M_p; } 29724: 29724: 29724: pointer 29724: _M_local_data() 29724: { 29724: 29724: return std::pointer_traits::pointer_to(*_M_local_buf); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: const_pointer 29724: _M_local_data() const 29724: { 29724: 29724: return std::pointer_traits::pointer_to(*_M_local_buf); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: void 29724: _M_capacity(size_type __capacity) 29724: { _M_allocated_capacity = __capacity; } 29724: 29724: 29724: void 29724: _M_set_length(size_type __n) 29724: { 29724: _M_length(__n); 29724: traits_type::assign(_M_data()[__n], _CharT()); 29724: } 29724: 29724: 29724: bool 29724: _M_is_local() const 29724: { 29724: if (_M_data() == _M_local_data()) 29724: { 29724: if (_M_string_length > _S_local_capacity) 29724: __builtin_unreachable(); 29724: return true; 29724: } 29724: return false; 29724: } 29724: 29724: 29724: 29724: pointer 29724: _M_create(size_type&, size_type); 29724: 29724: 29724: void 29724: _M_dispose() 29724: { 29724: if (!_M_is_local()) 29724: _M_destroy(_M_allocated_capacity); 29724: } 29724: 29724: 29724: void 29724: _M_destroy(size_type __size) throw() 29724: { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } 29724: # 321 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: void 29724: _M_construct(_InIterator __beg, _InIterator __end, 29724: std::input_iterator_tag); 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: _M_construct(_FwdIterator __beg, _FwdIterator __end, 29724: std::forward_iterator_tag); 29724: 29724: 29724: void 29724: _M_construct(size_type __req, _CharT __c); 29724: 29724: 29724: allocator_type& 29724: _M_get_allocator() 29724: { return _M_dataplus; } 29724: 29724: 29724: const allocator_type& 29724: _M_get_allocator() const 29724: { return _M_dataplus; } 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: constexpr 29724: void 29724: _M_init_local_buf() noexcept 29724: { 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: __attribute__((__always_inline__)) 29724: constexpr 29724: pointer 29724: _M_use_local_data() noexcept 29724: { 29724: 29724: 29724: 29724: return _M_local_data(); 29724: } 29724: 29724: private: 29724: # 389 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: size_type 29724: _M_check(size_type __pos, const char* __s) const 29724: { 29724: if (__pos > this->size()) 29724: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") 29724: , 29724: __s, __pos, this->size()); 29724: return __pos; 29724: } 29724: 29724: 29724: void 29724: _M_check_length(size_type __n1, size_type __n2, const char* __s) const 29724: { 29724: if (this->max_size() - (this->size() - __n1) < __n2) 29724: __throw_length_error((__s)); 29724: } 29724: 29724: 29724: 29724: 29724: size_type 29724: _M_limit(size_type __pos, size_type __off) const noexcept 29724: { 29724: const bool __testoff = __off < this->size() - __pos; 29724: return __testoff ? __off : this->size() - __pos; 29724: } 29724: 29724: 29724: bool 29724: _M_disjunct(const _CharT* __s) const noexcept 29724: { 29724: return (less()(__s, _M_data()) 29724: || less()(_M_data() + this->size(), __s)); 29724: } 29724: 29724: 29724: 29724: 29724: static void 29724: _S_copy(_CharT* __d, const _CharT* __s, size_type __n) 29724: { 29724: if (__n == 1) 29724: traits_type::assign(*__d, *__s); 29724: else 29724: traits_type::copy(__d, __s, __n); 29724: } 29724: 29724: 29724: static void 29724: _S_move(_CharT* __d, const _CharT* __s, size_type __n) 29724: { 29724: if (__n == 1) 29724: traits_type::assign(*__d, *__s); 29724: else 29724: traits_type::move(__d, __s, __n); 29724: } 29724: 29724: 29724: static void 29724: _S_assign(_CharT* __d, size_type __n, _CharT __c) 29724: { 29724: if (__n == 1) 29724: traits_type::assign(*__d, __c); 29724: else 29724: traits_type::assign(__d, __n, __c); 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: static void 29724: _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) 29724: { 29724: for (; __k1 != __k2; ++__k1, (void)++__p) 29724: traits_type::assign(*__p, *__k1); 29724: } 29724: 29724: 29724: static void 29724: _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept 29724: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 29724: 29724: 29724: static void 29724: _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) 29724: noexcept 29724: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 29724: 29724: 29724: static void 29724: _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept 29724: { _S_copy(__p, __k1, __k2 - __k1); } 29724: 29724: 29724: static void 29724: _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) 29724: noexcept 29724: { _S_copy(__p, __k1, __k2 - __k1); } 29724: 29724: 29724: static int 29724: _S_compare(size_type __n1, size_type __n2) noexcept 29724: { 29724: const difference_type __d = difference_type(__n1 - __n2); 29724: 29724: if (__d > __gnu_cxx::__numeric_traits::__max) 29724: return __gnu_cxx::__numeric_traits::__max; 29724: else if (__d < __gnu_cxx::__numeric_traits::__min) 29724: return __gnu_cxx::__numeric_traits::__min; 29724: else 29724: return int(__d); 29724: } 29724: 29724: 29724: void 29724: _M_assign(const basic_string&); 29724: 29724: 29724: void 29724: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 29724: size_type __len2); 29724: 29724: 29724: void 29724: _M_erase(size_type __pos, size_type __n); 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string() 29724: noexcept(is_nothrow_default_constructible<_Alloc>::value) 29724: : _M_dataplus(_M_local_data()) 29724: { 29724: _M_init_local_buf(); 29724: _M_set_length(0); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_string(const _Alloc& __a) noexcept 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: _M_init_local_buf(); 29724: _M_set_length(0); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string(const basic_string& __str) 29724: : _M_dataplus(_M_local_data(), 29724: _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) 29724: { 29724: _M_construct(__str._M_data(), __str._M_data() + __str.length(), 29724: std::forward_iterator_tag()); 29724: } 29724: # 568 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string(const basic_string& __str, size_type __pos, 29724: const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: const _CharT* __start = __str._M_data() 29724: + __str._M_check(__pos, "basic_string::basic_string"); 29724: _M_construct(__start, __start + __str._M_limit(__pos, npos), 29724: std::forward_iterator_tag()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string(const basic_string& __str, size_type __pos, 29724: size_type __n) 29724: : _M_dataplus(_M_local_data()) 29724: { 29724: const _CharT* __start = __str._M_data() 29724: + __str._M_check(__pos, "basic_string::basic_string"); 29724: _M_construct(__start, __start + __str._M_limit(__pos, __n), 29724: std::forward_iterator_tag()); 29724: } 29724: # 603 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string(const basic_string& __str, size_type __pos, 29724: size_type __n, const _Alloc& __a) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: const _CharT* __start 29724: = __str._M_data() + __str._M_check(__pos, "string::string"); 29724: _M_construct(__start, __start + __str._M_limit(__pos, __n), 29724: std::forward_iterator_tag()); 29724: } 29724: # 623 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string(const _CharT* __s, size_type __n, 29724: const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: 29724: if (__s == 0 && __n > 0) 29724: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 29724: ); 29724: _M_construct(__s, __s + __n, std::forward_iterator_tag()); 29724: } 29724: # 643 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: 29724: basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: 29724: if (__s == 0) 29724: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 29724: ); 29724: const _CharT* __end = __s + traits_type::length(__s); 29724: _M_construct(__s, __end, forward_iterator_tag()); 29724: } 29724: # 666 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: 29724: basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { _M_construct(__n, __c); } 29724: # 681 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string(basic_string&& __str) noexcept 29724: : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) 29724: { 29724: if (__str._M_is_local()) 29724: { 29724: _M_init_local_buf(); 29724: traits_type::copy(_M_local_buf, __str._M_local_buf, 29724: __str.length() + 1); 29724: } 29724: else 29724: { 29724: _M_data(__str._M_data()); 29724: _M_capacity(__str._M_allocated_capacity); 29724: } 29724: 29724: 29724: 29724: 29724: _M_length(__str.length()); 29724: __str._M_data(__str._M_use_local_data()); 29724: __str._M_set_length(0); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } 29724: 29724: 29724: basic_string(const basic_string& __str, const _Alloc& __a) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } 29724: 29724: 29724: basic_string(basic_string&& __str, const _Alloc& __a) 29724: noexcept(_Alloc_traits::_S_always_equal()) 29724: : _M_dataplus(_M_local_data(), __a) 29724: { 29724: if (__str._M_is_local()) 29724: { 29724: _M_init_local_buf(); 29724: traits_type::copy(_M_local_buf, __str._M_local_buf, 29724: __str.length() + 1); 29724: _M_length(__str.length()); 29724: __str._M_set_length(0); 29724: } 29724: else if (_Alloc_traits::_S_always_equal() 29724: || __str.get_allocator() == __a) 29724: { 29724: _M_data(__str._M_data()); 29724: _M_length(__str.length()); 29724: _M_capacity(__str._M_allocated_capacity); 29724: __str._M_data(__str._M_use_local_data()); 29724: __str._M_set_length(0); 29724: } 29724: else 29724: _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); 29724: } 29724: # 759 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: 29724: 29724: 29724: basic_string(_InputIterator __beg, _InputIterator __end, 29724: const _Alloc& __a = _Alloc()) 29724: : _M_dataplus(_M_local_data(), __a), _M_string_length(0) 29724: { 29724: 29724: _M_construct(__beg, __end, std::__iterator_category(__beg)); 29724: 29724: 29724: 29724: 29724: } 29724: # 785 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template>> 29724: 29724: basic_string(const _Tp& __t, size_type __pos, size_type __n, 29724: const _Alloc& __a = _Alloc()) 29724: : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: 29724: explicit 29724: basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) 29724: : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~basic_string() 29724: { _M_dispose(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator=(const basic_string& __str) 29724: { 29724: return this->assign(__str); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator=(const _CharT* __s) 29724: { return this->assign(__s); } 29724: # 838 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: operator=(_CharT __c) 29724: { 29724: this->assign(1, __c); 29724: return *this; 29724: } 29724: # 856 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: operator=(basic_string&& __str) 29724: noexcept(_Alloc_traits::_S_nothrow_move()) 29724: { 29724: const bool __equal_allocs = _Alloc_traits::_S_always_equal() 29724: || _M_get_allocator() == __str._M_get_allocator(); 29724: if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() 29724: && !__equal_allocs) 29724: { 29724: 29724: _M_destroy(_M_allocated_capacity); 29724: _M_data(_M_local_data()); 29724: _M_set_length(0); 29724: } 29724: 29724: std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); 29724: 29724: if (__str._M_is_local()) 29724: { 29724: 29724: 29724: 29724: if (__builtin_expect(std::__addressof(__str) != this, true)) 29724: { 29724: if (__str.size()) 29724: this->_S_copy(_M_data(), __str._M_data(), __str.size()); 29724: _M_set_length(__str.size()); 29724: } 29724: } 29724: else if (_Alloc_traits::_S_propagate_on_move_assign() || __equal_allocs) 29724: { 29724: 29724: pointer __data = nullptr; 29724: size_type __capacity; 29724: if (!_M_is_local()) 29724: { 29724: if (__equal_allocs) 29724: { 29724: 29724: __data = _M_data(); 29724: __capacity = _M_allocated_capacity; 29724: } 29724: else 29724: _M_destroy(_M_allocated_capacity); 29724: } 29724: 29724: _M_data(__str._M_data()); 29724: _M_length(__str.length()); 29724: _M_capacity(__str._M_allocated_capacity); 29724: if (__data) 29724: { 29724: __str._M_data(__data); 29724: __str._M_capacity(__capacity); 29724: } 29724: else 29724: __str._M_data(__str._M_use_local_data()); 29724: } 29724: else 29724: _M_assign(__str); 29724: __str.clear(); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator=(initializer_list<_CharT> __l) 29724: { 29724: this->assign(__l.begin(), __l.size()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: operator=(const _Tp& __svt) 29724: { return this->assign(__svt); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: operator __sv_type() const noexcept 29724: { return __sv_type(data(), size()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: begin() noexcept 29724: { return iterator(_M_data()); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(_M_data()); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: end() noexcept 29724: { return iterator(_M_data() + this->size()); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: end() const noexcept 29724: { return const_iterator(_M_data() + this->size()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(this->end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(this->end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(this->begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(this->begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(this->_M_data()); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cend() const noexcept 29724: { return const_iterator(this->_M_data() + this->size()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(this->end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(this->begin()); } 29724: 29724: 29724: public: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: size() const noexcept 29724: { return _M_string_length; } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: length() const noexcept 29724: { return _M_string_length; } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: max_size() const noexcept 29724: { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } 29724: # 1102 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: void 29724: resize(size_type __n, _CharT __c); 29724: # 1116 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: void 29724: resize(size_type __n) 29724: { this->resize(__n, _CharT()); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: void 29724: shrink_to_fit() noexcept 29724: { reserve(); } 29724: #pragma GCC diagnostic pop 29724: # 1169 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: void 29724: __resize_and_overwrite(size_type __n, _Operation __op); 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: capacity() const noexcept 29724: { 29724: return _M_is_local() ? size_type(_S_local_capacity) 29724: : _M_allocated_capacity; 29724: } 29724: # 1203 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: void 29724: reserve(size_type __res_arg); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reserve(); 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_set_length(0); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: bool 29724: empty() const noexcept 29724: { return this->size() == 0; } 29724: # 1245 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: const_reference 29724: operator[] (size_type __pos) const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_data()[__pos]; 29724: } 29724: # 1263 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: operator[](size_type __pos) 29724: { 29724: 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: ; 29724: return _M_data()[__pos]; 29724: } 29724: # 1285 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: const_reference 29724: at(size_type __n) const 29724: { 29724: if (__n >= this->size()) 29724: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29724: 29724: , 29724: __n, this->size()); 29724: return _M_data()[__n]; 29724: } 29724: # 1307 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: at(size_type __n) 29724: { 29724: if (__n >= size()) 29724: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29724: 29724: , 29724: __n, this->size()); 29724: return _M_data()[__n]; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: front() noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return operator[](0); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: front() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return operator[](0); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: back() noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return operator[](this->size() - 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: back() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29724: return operator[](this->size() - 1); 29724: } 29724: # 1375 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: operator+=(const basic_string& __str) 29724: { return this->append(__str); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator+=(const _CharT* __s) 29724: { return this->append(__s); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator+=(_CharT __c) 29724: { 29724: this->push_back(__c); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: operator+=(initializer_list<_CharT> __l) 29724: { return this->append(__l.begin(), __l.size()); } 29724: # 1421 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: operator+=(const _Tp& __svt) 29724: { return this->append(__svt); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: append(const basic_string& __str) 29724: { return this->append(__str._M_data(), __str.size()); } 29724: # 1451 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: append(const basic_string& __str, size_type __pos, size_type __n = npos) 29724: { return this->append(__str._M_data() 29724: + __str._M_check(__pos, "basic_string::append"), 29724: __str._M_limit(__pos, __n)); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: append(const _CharT* __s, size_type __n) 29724: { 29724: ; 29724: _M_check_length(size_type(0), __n, "basic_string::append"); 29724: return _M_append(__s, __n); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: append(const _CharT* __s) 29724: { 29724: ; 29724: const size_type __n = traits_type::length(__s); 29724: _M_check_length(size_type(0), __n, "basic_string::append"); 29724: return _M_append(__s, __n); 29724: } 29724: # 1496 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: append(size_type __n, _CharT __c) 29724: { return _M_replace_aux(this->size(), size_type(0), __n, __c); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: append(initializer_list<_CharT> __l) 29724: { return this->append(__l.begin(), __l.size()); } 29724: # 1522 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: 29724: 29724: 29724: basic_string& 29724: append(_InputIterator __first, _InputIterator __last) 29724: { return this->replace(end(), end(), __first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: append(const _Tp& __svt) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->append(__sv.data(), __sv.size()); 29724: } 29724: # 1554 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: append(const _Tp& __svt, size_type __pos, size_type __n = npos) 29724: { 29724: __sv_type __sv = __svt; 29724: return _M_append(__sv.data() 29724: + std::__sv_check(__sv.size(), __pos, "basic_string::append"), 29724: std::__sv_limit(__sv.size(), __pos, __n)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: push_back(_CharT __c) 29724: { 29724: const size_type __size = this->size(); 29724: if (__size + 1 > this->capacity()) 29724: this->_M_mutate(__size, size_type(0), 0, size_type(1)); 29724: traits_type::assign(this->_M_data()[__size], __c); 29724: this->_M_set_length(__size + 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_string& 29724: assign(const basic_string& __str) 29724: { 29724: 29724: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: if (!_Alloc_traits::_S_always_equal() && !_M_is_local() 29724: && _M_get_allocator() != __str._M_get_allocator()) 29724: { 29724: 29724: 29724: if (__str.size() <= _S_local_capacity) 29724: { 29724: _M_destroy(_M_allocated_capacity); 29724: _M_data(_M_use_local_data()); 29724: _M_set_length(0); 29724: } 29724: else 29724: { 29724: const auto __len = __str.size(); 29724: auto __alloc = __str._M_get_allocator(); 29724: 29724: auto __ptr = _S_allocate(__alloc, __len + 1); 29724: _M_destroy(_M_allocated_capacity); 29724: _M_data(__ptr); 29724: _M_capacity(__len); 29724: _M_set_length(__len); 29724: } 29724: } 29724: std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); 29724: } 29724: 29724: this->_M_assign(__str); 29724: return *this; 29724: } 29724: # 1632 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(basic_string&& __str) 29724: noexcept(_Alloc_traits::_S_nothrow_move()) 29724: { 29724: 29724: 29724: return *this = std::move(__str); 29724: } 29724: # 1656 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(const basic_string& __str, size_type __pos, size_type __n = npos) 29724: { return _M_replace(size_type(0), this->size(), __str._M_data() 29724: + __str._M_check(__pos, "basic_string::assign"), 29724: __str._M_limit(__pos, __n)); } 29724: # 1673 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(const _CharT* __s, size_type __n) 29724: { 29724: ; 29724: return _M_replace(size_type(0), this->size(), __s, __n); 29724: } 29724: # 1690 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(const _CharT* __s) 29724: { 29724: ; 29724: return _M_replace(size_type(0), this->size(), __s, 29724: traits_type::length(__s)); 29724: } 29724: # 1708 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(size_type __n, _CharT __c) 29724: { return _M_replace_aux(size_type(0), this->size(), __n, __c); } 29724: # 1722 "/usr/include/c++/14/bits/basic_string.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: template> 29724: 29724: basic_string& 29724: assign(_InputIterator __first, _InputIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: if constexpr (__is_one_of<_InputIterator, const_iterator, iterator, 29724: const _CharT*, _CharT*>::value) 29724: 29724: { 29724: ; 29724: return _M_replace(size_type(0), size(), 29724: std::__to_address(__first), __last - __first); 29724: } 29724: else 29724: return *this = basic_string(__first, __last, get_allocator()); 29724: } 29724: #pragma GCC diagnostic pop 29724: # 1759 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: assign(initializer_list<_CharT> __l) 29724: { 29724: 29724: 29724: const size_type __n = __l.size(); 29724: if (__n > capacity()) 29724: *this = basic_string(__l.begin(), __l.end(), get_allocator()); 29724: else 29724: { 29724: if (__n) 29724: _S_copy(_M_data(), __l.begin(), __n); 29724: _M_set_length(__n); 29724: } 29724: return *this; 29724: } 29724: # 1784 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: assign(const _Tp& __svt) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->assign(__sv.data(), __sv.size()); 29724: } 29724: # 1800 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: assign(const _Tp& __svt, size_type __pos, size_type __n = npos) 29724: { 29724: __sv_type __sv = __svt; 29724: return _M_replace(size_type(0), this->size(), 29724: __sv.data() 29724: + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), 29724: std::__sv_limit(__sv.size(), __pos, __n)); 29724: } 29724: # 1829 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: iterator 29724: insert(const_iterator __p, size_type __n, _CharT __c) 29724: { 29724: ; 29724: const size_type __pos = __p - begin(); 29724: this->replace(__p, __p, __n, __c); 29724: return iterator(this->_M_data() + __pos); 29724: } 29724: # 1872 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: iterator 29724: insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) 29724: { 29724: ; 29724: const size_type __pos = __p - begin(); 29724: this->replace(__p, __p, __beg, __end); 29724: return iterator(this->_M_data() + __pos); 29724: } 29724: # 1909 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: iterator 29724: insert(const_iterator __p, initializer_list<_CharT> __l) 29724: { return this->insert(__p, __l.begin(), __l.end()); } 29724: # 1937 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: insert(size_type __pos1, const basic_string& __str) 29724: { return this->replace(__pos1, size_type(0), 29724: __str._M_data(), __str.size()); } 29724: # 1961 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: insert(size_type __pos1, const basic_string& __str, 29724: size_type __pos2, size_type __n = npos) 29724: { return this->replace(__pos1, size_type(0), __str._M_data() 29724: + __str._M_check(__pos2, "basic_string::insert"), 29724: __str._M_limit(__pos2, __n)); } 29724: # 1985 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: insert(size_type __pos, const _CharT* __s, size_type __n) 29724: { return this->replace(__pos, size_type(0), __s, __n); } 29724: # 2005 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: insert(size_type __pos, const _CharT* __s) 29724: { 29724: ; 29724: return this->replace(__pos, size_type(0), __s, 29724: traits_type::length(__s)); 29724: } 29724: # 2030 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: insert(size_type __pos, size_type __n, _CharT __c) 29724: { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), 29724: size_type(0), __n, __c); } 29724: # 2049 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: iterator 29724: insert(__const_iterator __p, _CharT __c) 29724: { 29724: ; 29724: const size_type __pos = __p - begin(); 29724: _M_replace_aux(__pos, size_type(0), size_type(1), __c); 29724: return iterator(_M_data() + __pos); 29724: } 29724: # 2066 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: insert(size_type __pos, const _Tp& __svt) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->insert(__pos, __sv.data(), __sv.size()); 29724: } 29724: # 2083 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: insert(size_type __pos1, const _Tp& __svt, 29724: size_type __pos2, size_type __n = npos) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->replace(__pos1, size_type(0), 29724: __sv.data() 29724: + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), 29724: std::__sv_limit(__sv.size(), __pos2, __n)); 29724: } 29724: # 2112 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: erase(size_type __pos = 0, size_type __n = npos) 29724: { 29724: _M_check(__pos, "basic_string::erase"); 29724: if (__n == npos) 29724: this->_M_set_length(__pos); 29724: else if (__n != 0) 29724: this->_M_erase(__pos, _M_limit(__pos, __n)); 29724: return *this; 29724: } 29724: # 2132 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: iterator 29724: erase(__const_iterator __position) 29724: { 29724: 29724: ; 29724: const size_type __pos = __position - begin(); 29724: this->_M_erase(__pos, size_type(1)); 29724: return iterator(_M_data() + __pos); 29724: } 29724: # 2152 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: iterator 29724: erase(__const_iterator __first, __const_iterator __last) 29724: { 29724: 29724: ; 29724: const size_type __pos = __first - begin(); 29724: if (__last == end()) 29724: this->_M_set_length(__pos); 29724: else 29724: this->_M_erase(__pos, __last - __first); 29724: return iterator(this->_M_data() + __pos); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: pop_back() noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29724: _M_erase(size() - 1, 1); 29724: } 29724: # 2198 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(size_type __pos, size_type __n, const basic_string& __str) 29724: { return this->replace(__pos, __n, __str._M_data(), __str.size()); } 29724: # 2221 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(size_type __pos1, size_type __n1, const basic_string& __str, 29724: size_type __pos2, size_type __n2 = npos) 29724: { return this->replace(__pos1, __n1, __str._M_data() 29724: + __str._M_check(__pos2, "basic_string::replace"), 29724: __str._M_limit(__pos2, __n2)); } 29724: # 2247 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(size_type __pos, size_type __n1, const _CharT* __s, 29724: size_type __n2) 29724: { 29724: ; 29724: return _M_replace(_M_check(__pos, "basic_string::replace"), 29724: _M_limit(__pos, __n1), __s, __n2); 29724: } 29724: # 2273 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(size_type __pos, size_type __n1, const _CharT* __s) 29724: { 29724: ; 29724: return this->replace(__pos, __n1, __s, traits_type::length(__s)); 29724: } 29724: # 2298 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) 29724: { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), 29724: _M_limit(__pos, __n1), __n2, __c); } 29724: # 2317 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: const basic_string& __str) 29724: { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } 29724: # 2338 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: const _CharT* __s, size_type __n) 29724: { 29724: 29724: ; 29724: return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); 29724: } 29724: # 2361 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) 29724: { 29724: ; 29724: return this->replace(__i1, __i2, __s, traits_type::length(__s)); 29724: } 29724: # 2383 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, size_type __n, 29724: _CharT __c) 29724: { 29724: 29724: ; 29724: return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); 29724: } 29724: # 2409 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template> 29724: 29724: basic_string& 29724: replace(const_iterator __i1, const_iterator __i2, 29724: _InputIterator __k1, _InputIterator __k2) 29724: { 29724: 29724: ; 29724: ; 29724: return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, 29724: std::__false_type()); 29724: } 29724: # 2442 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: _CharT* __k1, _CharT* __k2) 29724: { 29724: 29724: ; 29724: ; 29724: return this->replace(__i1 - begin(), __i2 - __i1, 29724: __k1, __k2 - __k1); 29724: } 29724: 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: const _CharT* __k1, const _CharT* __k2) 29724: { 29724: 29724: ; 29724: ; 29724: return this->replace(__i1 - begin(), __i2 - __i1, 29724: __k1, __k2 - __k1); 29724: } 29724: 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: iterator __k1, iterator __k2) 29724: { 29724: 29724: ; 29724: ; 29724: return this->replace(__i1 - begin(), __i2 - __i1, 29724: __k1.base(), __k2 - __k1); 29724: } 29724: 29724: 29724: basic_string& 29724: replace(__const_iterator __i1, __const_iterator __i2, 29724: const_iterator __k1, const_iterator __k2) 29724: { 29724: 29724: ; 29724: ; 29724: return this->replace(__i1 - begin(), __i2 - __i1, 29724: __k1.base(), __k2 - __k1); 29724: } 29724: # 2505 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: basic_string& replace(const_iterator __i1, const_iterator __i2, 29724: initializer_list<_CharT> __l) 29724: { return this->replace(__i1, __i2, __l.begin(), __l.size()); } 29724: # 2519 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: replace(size_type __pos, size_type __n, const _Tp& __svt) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->replace(__pos, __n, __sv.data(), __sv.size()); 29724: } 29724: # 2537 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: replace(size_type __pos1, size_type __n1, const _Tp& __svt, 29724: size_type __pos2, size_type __n2 = npos) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->replace(__pos1, __n1, 29724: __sv.data() 29724: + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), 29724: std::__sv_limit(__sv.size(), __pos2, __n2)); 29724: } 29724: # 2559 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: _If_sv<_Tp, basic_string&> 29724: replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->replace(__i1 - begin(), __i2 - __i1, __sv); 29724: } 29724: 29724: 29724: private: 29724: template 29724: 29724: basic_string& 29724: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29724: _Integer __n, _Integer __val, __true_type) 29724: { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } 29724: 29724: template 29724: 29724: basic_string& 29724: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29724: _InputIterator __k1, _InputIterator __k2, 29724: __false_type); 29724: 29724: 29724: basic_string& 29724: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 29724: _CharT __c); 29724: 29724: __attribute__((__noinline__, __noclone__, __cold__)) void 29724: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 29724: const size_type __len2, const size_type __how_much); 29724: 29724: 29724: basic_string& 29724: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 29724: const size_type __len2); 29724: 29724: 29724: basic_string& 29724: _M_append(const _CharT* __s, size_type __n); 29724: 29724: public: 29724: # 2616 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: size_type 29724: copy(_CharT* __s, size_type __n, size_type __pos = 0) const; 29724: # 2627 "/usr/include/c++/14/bits/basic_string.h" 3 29724: 29724: void 29724: swap(basic_string& __s) noexcept; 29724: # 2638 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: const _CharT* 29724: c_str() const noexcept 29724: { return _M_data(); } 29724: # 2651 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: const _CharT* 29724: data() const noexcept 29724: { return _M_data(); } 29724: # 2663 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: _CharT* 29724: data() noexcept 29724: { return _M_data(); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _M_get_allocator(); } 29724: # 2689 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept; 29724: # 2704 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find(const basic_string& __str, size_type __pos = 0) const 29724: noexcept 29724: { return this->find(__str.data(), __pos, __str.size()); } 29724: # 2717 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: find(const _Tp& __svt, size_type __pos = 0) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->find(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 2738 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find(const _CharT* __s, size_type __pos = 0) const noexcept 29724: { 29724: ; 29724: return this->find(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 2756 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find(_CharT __c, size_type __pos = 0) const noexcept; 29724: # 2770 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: rfind(const basic_string& __str, size_type __pos = npos) const 29724: noexcept 29724: { return this->rfind(__str.data(), __pos, __str.size()); } 29724: # 2783 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: rfind(const _Tp& __svt, size_type __pos = npos) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->rfind(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 2806 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: rfind(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept; 29724: # 2821 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: rfind(const _CharT* __s, size_type __pos = npos) const 29724: { 29724: ; 29724: return this->rfind(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 2839 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: rfind(_CharT __c, size_type __pos = npos) const noexcept; 29724: # 2854 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_of(const basic_string& __str, size_type __pos = 0) const 29724: noexcept 29724: { return this->find_first_of(__str.data(), __pos, __str.size()); } 29724: # 2868 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: find_first_of(const _Tp& __svt, size_type __pos = 0) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->find_first_of(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 2891 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept; 29724: # 2906 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_of(const _CharT* __s, size_type __pos = 0) const 29724: noexcept 29724: { 29724: ; 29724: return this->find_first_of(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 2927 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 29724: { return this->find(__c, __pos); } 29724: # 2943 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_of(const basic_string& __str, size_type __pos = npos) const 29724: noexcept 29724: { return this->find_last_of(__str.data(), __pos, __str.size()); } 29724: # 2957 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: find_last_of(const _Tp& __svt, size_type __pos = npos) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->find_last_of(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 2980 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept; 29724: # 2995 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_of(const _CharT* __s, size_type __pos = npos) const 29724: noexcept 29724: { 29724: ; 29724: return this->find_last_of(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 3016 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_of(_CharT __c, size_type __pos = npos) const noexcept 29724: { return this->rfind(__c, __pos); } 29724: # 3031 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_not_of(const basic_string& __str, size_type __pos = 0) const 29724: noexcept 29724: { return this->find_first_not_of(__str.data(), __pos, __str.size()); } 29724: # 3045 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: find_first_not_of(const _Tp& __svt, size_type __pos = 0) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->find_first_not_of(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 3068 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_not_of(const _CharT* __s, size_type __pos, 29724: size_type __n) const noexcept; 29724: # 3083 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_not_of(const _CharT* __s, size_type __pos = 0) const 29724: noexcept 29724: { 29724: ; 29724: return this->find_first_not_of(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 3102 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_first_not_of(_CharT __c, size_type __pos = 0) const 29724: noexcept; 29724: # 3118 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_not_of(const basic_string& __str, size_type __pos = npos) const 29724: noexcept 29724: { return this->find_last_not_of(__str.data(), __pos, __str.size()); } 29724: # 3132 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, size_type> 29724: find_last_not_of(const _Tp& __svt, size_type __pos = npos) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return this->find_last_not_of(__sv.data(), __pos, __sv.size()); 29724: } 29724: # 3155 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_not_of(const _CharT* __s, size_type __pos, 29724: size_type __n) const noexcept; 29724: # 3170 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_not_of(const _CharT* __s, size_type __pos = npos) const 29724: noexcept 29724: { 29724: ; 29724: return this->find_last_not_of(__s, __pos, traits_type::length(__s)); 29724: } 29724: # 3189 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: size_type 29724: find_last_not_of(_CharT __c, size_type __pos = npos) const 29724: noexcept; 29724: # 3206 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: basic_string 29724: substr(size_type __pos = 0, size_type __n = npos) const 29724: { return basic_string(*this, 29724: _M_check(__pos, "basic_string::substr"), __n); } 29724: # 3226 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(const basic_string& __str) const 29724: { 29724: const size_type __size = this->size(); 29724: const size_type __osize = __str.size(); 29724: const size_type __len = std::min(__size, __osize); 29724: 29724: int __r = traits_type::compare(_M_data(), __str.data(), __len); 29724: if (!__r) 29724: __r = _S_compare(__size, __osize); 29724: return __r; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, int> 29724: compare(const _Tp& __svt) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: const size_type __size = this->size(); 29724: const size_type __osize = __sv.size(); 29724: const size_type __len = std::min(__size, __osize); 29724: 29724: int __r = traits_type::compare(_M_data(), __sv.data(), __len); 29724: if (!__r) 29724: __r = _S_compare(__size, __osize); 29724: return __r; 29724: } 29724: # 3271 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, int> 29724: compare(size_type __pos, size_type __n, const _Tp& __svt) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return __sv_type(*this).substr(__pos, __n).compare(__sv); 29724: } 29724: # 3291 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _If_sv<_Tp, int> 29724: compare(size_type __pos1, size_type __n1, const _Tp& __svt, 29724: size_type __pos2, size_type __n2 = npos) const 29724: noexcept(is_same<_Tp, __sv_type>::value) 29724: { 29724: __sv_type __sv = __svt; 29724: return __sv_type(*this) 29724: .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); 29724: } 29724: # 3323 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(size_type __pos, size_type __n, const basic_string& __str) const 29724: { 29724: _M_check(__pos, "basic_string::compare"); 29724: __n = _M_limit(__pos, __n); 29724: const size_type __osize = __str.size(); 29724: const size_type __len = std::min(__n, __osize); 29724: int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); 29724: if (!__r) 29724: __r = _S_compare(__n, __osize); 29724: return __r; 29724: } 29724: # 3360 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(size_type __pos1, size_type __n1, const basic_string& __str, 29724: size_type __pos2, size_type __n2 = npos) const 29724: { 29724: _M_check(__pos1, "basic_string::compare"); 29724: __str._M_check(__pos2, "basic_string::compare"); 29724: __n1 = _M_limit(__pos1, __n1); 29724: __n2 = __str._M_limit(__pos2, __n2); 29724: const size_type __len = std::min(__n1, __n2); 29724: int __r = traits_type::compare(_M_data() + __pos1, 29724: __str.data() + __pos2, __len); 29724: if (!__r) 29724: __r = _S_compare(__n1, __n2); 29724: return __r; 29724: } 29724: # 3391 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(const _CharT* __s) const noexcept 29724: { 29724: ; 29724: const size_type __size = this->size(); 29724: const size_type __osize = traits_type::length(__s); 29724: const size_type __len = std::min(__size, __osize); 29724: int __r = traits_type::compare(_M_data(), __s, __len); 29724: if (!__r) 29724: __r = _S_compare(__size, __osize); 29724: return __r; 29724: } 29724: # 3426 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(size_type __pos, size_type __n1, const _CharT* __s) const 29724: { 29724: ; 29724: _M_check(__pos, "basic_string::compare"); 29724: __n1 = _M_limit(__pos, __n1); 29724: const size_type __osize = traits_type::length(__s); 29724: const size_type __len = std::min(__n1, __osize); 29724: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 29724: if (!__r) 29724: __r = _S_compare(__n1, __osize); 29724: return __r; 29724: } 29724: # 3465 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: int 29724: compare(size_type __pos, size_type __n1, const _CharT* __s, 29724: size_type __n2) const 29724: { 29724: ; 29724: _M_check(__pos, "basic_string::compare"); 29724: __n1 = _M_limit(__pos, __n1); 29724: const size_type __len = std::min(__n1, __n2); 29724: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 29724: if (!__r) 29724: __r = _S_compare(__n1, __n2); 29724: return __r; 29724: } 29724: # 3530 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template friend class basic_stringbuf; 29724: }; 29724: } 29724: 29724: } 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: namespace __cxx11 { 29724: template::value_type, 29724: typename _Allocator = allocator<_CharT>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireAllocator<_Allocator>> 29724: basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29724: -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; 29724: 29724: 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) 29724: -> basic_string<_CharT, _Traits, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: basic_string(basic_string_view<_CharT, _Traits>, 29724: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 29724: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 29724: const _Allocator& = _Allocator()) 29724: -> basic_string<_CharT, _Traits, _Allocator>; 29724: } 29724: 29724: 29724: template 29724: 29724: inline _Str 29724: __str_concat(typename _Str::value_type const* __lhs, 29724: typename _Str::size_type __lhs_len, 29724: typename _Str::value_type const* __rhs, 29724: typename _Str::size_type __rhs_len, 29724: typename _Str::allocator_type const& __a) 29724: { 29724: typedef typename _Str::allocator_type allocator_type; 29724: typedef __gnu_cxx::__alloc_traits _Alloc_traits; 29724: _Str __str(_Alloc_traits::_S_select_on_copy(__a)); 29724: __str.reserve(__lhs_len + __rhs_len); 29724: __str.append(__lhs, __lhs_len); 29724: __str.append(__rhs, __rhs_len); 29724: return __str; 29724: } 29724: # 3595 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { 29724: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29724: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29724: __rhs.c_str(), __rhs.size(), 29724: __lhs.get_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT,_Traits,_Alloc> 29724: operator+(const _CharT* __lhs, 29724: const basic_string<_CharT,_Traits,_Alloc>& __rhs) 29724: { 29724: ; 29724: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29724: return std::__str_concat<_Str>(__lhs, _Traits::length(__lhs), 29724: __rhs.c_str(), __rhs.size(), 29724: __rhs.get_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT,_Traits,_Alloc> 29724: operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) 29724: { 29724: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29724: return std::__str_concat<_Str>(__builtin_addressof(__lhs), 1, 29724: __rhs.c_str(), __rhs.size(), 29724: __rhs.get_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { 29724: ; 29724: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29724: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29724: __rhs, _Traits::length(__rhs), 29724: __lhs.get_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) 29724: { 29724: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29724: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29724: __builtin_addressof(__rhs), 1, 29724: __lhs.get_allocator()); 29724: } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return std::move(__lhs.append(__rhs)); } 29724: 29724: template 29724: 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29724: { return std::move(__rhs.insert(0, __lhs)); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29724: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29724: { 29724: 29724: using _Alloc_traits = allocator_traits<_Alloc>; 29724: bool __use_rhs = false; 29724: if constexpr (typename _Alloc_traits::is_always_equal{}) 29724: __use_rhs = true; 29724: else if (__lhs.get_allocator() == __rhs.get_allocator()) 29724: __use_rhs = true; 29724: if (__use_rhs) 29724: 29724: { 29724: const auto __size = __lhs.size() + __rhs.size(); 29724: if (__size > __lhs.capacity() && __size <= __rhs.capacity()) 29724: return std::move(__rhs.insert(0, __lhs)); 29724: } 29724: return std::move(__lhs.append(__rhs)); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(const _CharT* __lhs, 29724: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29724: { return std::move(__rhs.insert(0, __lhs)); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(_CharT __lhs, 29724: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29724: { return std::move(__rhs.insert(0, 1, __lhs)); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29724: const _CharT* __rhs) 29724: { return std::move(__lhs.append(__rhs)); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline basic_string<_CharT, _Traits, _Alloc> 29724: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29724: _CharT __rhs) 29724: { return std::move(__lhs.append(1, __rhs)); } 29724: # 3752 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { 29724: return __lhs.size() == __rhs.size() 29724: && !_Traits::compare(__lhs.data(), __rhs.data(), __lhs.size()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { 29724: return __lhs.size() == _Traits::length(__rhs) 29724: && !_Traits::compare(__lhs.data(), __rhs, __lhs.size()); 29724: } 29724: # 3816 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return __rhs == __lhs; } 29724: # 3830 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return !(__rhs == __lhs); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 3871 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { return __lhs.compare(__rhs) < 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { return __lhs.compare(__rhs) < 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return __rhs.compare(__lhs) > 0; } 29724: # 3912 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { return __lhs.compare(__rhs) > 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { return __lhs.compare(__rhs) > 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return __rhs.compare(__lhs) < 0; } 29724: # 3953 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { return __lhs.compare(__rhs) <= 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { return __lhs.compare(__rhs) <= 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return __rhs.compare(__lhs) >= 0; } 29724: # 3994 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept 29724: { return __lhs.compare(__rhs) >= 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: const _CharT* __rhs) 29724: { return __lhs.compare(__rhs) >= 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const _CharT* __lhs, 29724: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: { return __rhs.compare(__lhs) <= 0; } 29724: # 4036 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: 29724: inline void 29724: swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, 29724: basic_string<_CharT, _Traits, _Alloc>& __rhs) 29724: noexcept(noexcept(__lhs.swap(__rhs))) 29724: { __lhs.swap(__rhs); } 29724: # 4057 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: operator>>(basic_istream<_CharT, _Traits>& __is, 29724: basic_string<_CharT, _Traits, _Alloc>& __str); 29724: 29724: template<> 29724: basic_istream& 29724: operator>>(basic_istream& __is, basic_string& __str); 29724: # 4075 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __os, 29724: const basic_string<_CharT, _Traits, _Alloc>& __str) 29724: { 29724: 29724: 29724: return __ostream_insert(__os, __str.data(), __str.size()); 29724: } 29724: # 4098 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: getline(basic_istream<_CharT, _Traits>& __is, 29724: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); 29724: # 4115 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: inline basic_istream<_CharT, _Traits>& 29724: getline(basic_istream<_CharT, _Traits>& __is, 29724: basic_string<_CharT, _Traits, _Alloc>& __str) 29724: { return std::getline(__is, __str, __is.widen('\n')); } 29724: 29724: 29724: 29724: template 29724: inline basic_istream<_CharT, _Traits>& 29724: getline(basic_istream<_CharT, _Traits>&& __is, 29724: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 29724: { return std::getline(__is, __str, __delim); } 29724: 29724: 29724: template 29724: inline basic_istream<_CharT, _Traits>& 29724: getline(basic_istream<_CharT, _Traits>&& __is, 29724: basic_string<_CharT, _Traits, _Alloc>& __str) 29724: { return std::getline(__is, __str); } 29724: 29724: 29724: template<> 29724: basic_istream& 29724: getline(basic_istream& __in, basic_string& __str, 29724: char __delim); 29724: 29724: 29724: template<> 29724: basic_istream& 29724: getline(basic_istream& __in, basic_string& __str, 29724: wchar_t __delim); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ext/string_conversions.h" 1 3 29724: # 32 "/usr/include/c++/14/ext/string_conversions.h" 3 29724: 29724: # 33 "/usr/include/c++/14/ext/string_conversions.h" 3 29724: # 43 "/usr/include/c++/14/ext/string_conversions.h" 3 29724: # 1 "/usr/include/c++/14/cstdlib" 1 3 29724: # 39 "/usr/include/c++/14/cstdlib" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdlib" 3 29724: # 79 "/usr/include/c++/14/cstdlib" 3 29724: # 1 "/usr/include/stdlib.h" 1 3 4 29724: # 26 "/usr/include/stdlib.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 27 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 33 "/usr/include/stdlib.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitflags.h" 1 3 4 29724: # 41 "/usr/include/stdlib.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 1 3 4 29724: # 42 "/usr/include/stdlib.h" 2 3 4 29724: # 56 "/usr/include/stdlib.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29724: # 57 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: typedef struct 29724: { 29724: int quot; 29724: int rem; 29724: } div_t; 29724: 29724: 29724: 29724: typedef struct 29724: { 29724: long int quot; 29724: long int rem; 29724: } ldiv_t; 29724: 29724: 29724: 29724: 29724: 29724: __extension__ typedef struct 29724: { 29724: long long int quot; 29724: long long int rem; 29724: } lldiv_t; 29724: # 98 "/usr/include/stdlib.h" 3 4 29724: extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern double atof (const char *__nptr) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: extern int atoi (const char *__nptr) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: extern long int atol (const char *__nptr) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: __extension__ extern long long int atoll (const char *__nptr) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern double strtod (const char *__restrict __nptr, 29724: char **__restrict __endptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern float strtof (const char *__restrict __nptr, 29724: char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: extern long double strtold (const char *__restrict __nptr, 29724: char **__restrict __endptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 141 "/usr/include/stdlib.h" 3 4 29724: extern _Float32 strtof32 (const char *__restrict __nptr, 29724: char **__restrict __endptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern _Float64 strtof64 (const char *__restrict __nptr, 29724: char **__restrict __endptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 159 "/usr/include/stdlib.h" 3 4 29724: extern _Float32x strtof32x (const char *__restrict __nptr, 29724: char **__restrict __endptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 177 "/usr/include/stdlib.h" 3 4 29724: extern long int strtol (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: extern unsigned long int strtoul (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: __extension__ 29724: extern long long int strtoq (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: __extension__ 29724: extern unsigned long long int strtouq (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: __extension__ 29724: extern long long int strtoll (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: __extension__ 29724: extern unsigned long long int strtoull (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int strtol (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtol") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: extern unsigned long int strtoul (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoul") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: __extension__ 29724: extern long long int strtoq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: __extension__ 29724: extern unsigned long long int strtouq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: __extension__ 29724: extern long long int strtoll (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: __extension__ 29724: extern unsigned long long int strtoull (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: # 278 "/usr/include/stdlib.h" 3 4 29724: extern int strfromd (char *__dest, size_t __size, const char *__format, 29724: double __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: 29724: extern int strfromf (char *__dest, size_t __size, const char *__format, 29724: float __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: 29724: extern int strfroml (char *__dest, size_t __size, const char *__format, 29724: long double __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: # 298 "/usr/include/stdlib.h" 3 4 29724: extern int strfromf32 (char *__dest, size_t __size, const char * __format, 29724: _Float32 __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: 29724: extern int strfromf64 (char *__dest, size_t __size, const char * __format, 29724: _Float64 __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: # 316 "/usr/include/stdlib.h" 3 4 29724: extern int strfromf32x (char *__dest, size_t __size, const char * __format, 29724: _Float32x __f) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))); 29724: # 340 "/usr/include/stdlib.h" 3 4 29724: extern long int strtol_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base, 29724: locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: extern unsigned long int strtoul_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: int __base, locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: __extension__ 29724: extern long long int strtoll_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base, 29724: locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: __extension__ 29724: extern unsigned long long int strtoull_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: int __base, locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: 29724: 29724: 29724: 29724: extern long int strtol_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtol_l") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 4))); 29724: extern unsigned long int strtoul_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoul_l") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 4))); 29724: __extension__ 29724: extern long long int strtoll_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoll_l") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 4))); 29724: __extension__ 29724: 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") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 4))); 29724: # 415 "/usr/include/stdlib.h" 3 4 29724: extern double strtod_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: extern float strtof_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: extern long double strtold_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: # 436 "/usr/include/stdlib.h" 3 4 29724: extern _Float32 strtof32_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: 29724: 29724: 29724: extern _Float64 strtof64_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: # 457 "/usr/include/stdlib.h" 3 4 29724: extern _Float32x strtof32x_l (const char *__restrict __nptr, 29724: char **__restrict __endptr, 29724: locale_t __loc) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29724: # 480 "/usr/include/stdlib.h" 3 4 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: __attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) 29724: { 29724: return (int) strtol (__nptr, (char **) __null, 10); 29724: } 29724: extern __inline __attribute__ ((__gnu_inline__)) long int 29724: __attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) 29724: { 29724: return strtol (__nptr, (char **) __null, 10); 29724: } 29724: 29724: 29724: __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int 29724: __attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) 29724: { 29724: return strtoll (__nptr, (char **) __null, 10); 29724: } 29724: # 505 "/usr/include/stdlib.h" 3 4 29724: extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern long int a64l (const char *__s) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/types.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: typedef __u_char u_char; 29724: typedef __u_short u_short; 29724: typedef __u_int u_int; 29724: typedef __u_long u_long; 29724: typedef __quad_t quad_t; 29724: typedef __u_quad_t u_quad_t; 29724: typedef __fsid_t fsid_t; 29724: 29724: 29724: typedef __loff_t loff_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __ino64_t ino_t; 29724: 29724: 29724: 29724: 29724: typedef __ino64_t ino64_t; 29724: 29724: 29724: 29724: 29724: typedef __dev_t dev_t; 29724: 29724: 29724: 29724: 29724: typedef __gid_t gid_t; 29724: 29724: 29724: 29724: 29724: typedef __mode_t mode_t; 29724: 29724: 29724: 29724: 29724: typedef __nlink_t nlink_t; 29724: 29724: 29724: 29724: 29724: typedef __uid_t uid_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __off64_t off_t; 29724: 29724: 29724: 29724: 29724: typedef __off64_t off64_t; 29724: # 103 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: typedef __id_t id_t; 29724: 29724: 29724: 29724: 29724: typedef __ssize_t ssize_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef __daddr_t daddr_t; 29724: typedef __caddr_t caddr_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef __key_t key_t; 29724: # 134 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: typedef __useconds_t useconds_t; 29724: 29724: 29724: 29724: typedef __suseconds_t suseconds_t; 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 145 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29724: 29724: 29724: 29724: typedef unsigned long int ulong; 29724: typedef unsigned short int ushort; 29724: typedef unsigned int uint; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __uint8_t u_int8_t; 29724: typedef __uint16_t u_int16_t; 29724: typedef __uint32_t u_int32_t; 29724: typedef __uint64_t u_int64_t; 29724: 29724: 29724: typedef int register_t __attribute__ ((__mode__ (__word__))); 29724: # 176 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: # 1 "/usr/include/endian.h" 1 3 4 29724: # 35 "/usr/include/endian.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 1 3 4 29724: # 33 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 29724: static __inline __uint16_t 29724: __bswap_16 (__uint16_t __bsx) 29724: { 29724: 29724: return __builtin_bswap16 (__bsx); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: static __inline __uint32_t 29724: __bswap_32 (__uint32_t __bsx) 29724: { 29724: 29724: return __builtin_bswap32 (__bsx); 29724: 29724: 29724: 29724: } 29724: # 69 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 29724: __extension__ static __inline __uint64_t 29724: __bswap_64 (__uint64_t __bsx) 29724: { 29724: 29724: return __builtin_bswap64 (__bsx); 29724: 29724: 29724: 29724: } 29724: # 36 "/usr/include/endian.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 1 3 4 29724: # 32 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 3 4 29724: static __inline __uint16_t 29724: __uint16_identity (__uint16_t __x) 29724: { 29724: return __x; 29724: } 29724: 29724: static __inline __uint32_t 29724: __uint32_identity (__uint32_t __x) 29724: { 29724: return __x; 29724: } 29724: 29724: static __inline __uint64_t 29724: __uint64_identity (__uint64_t __x) 29724: { 29724: return __x; 29724: } 29724: # 37 "/usr/include/endian.h" 2 3 4 29724: # 177 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/select.h" 1 3 4 29724: # 30 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/select.h" 1 3 4 29724: # 31 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __sigset_t sigset_t; 29724: # 34 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29724: # 49 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: typedef long int __fd_mask; 29724: # 59 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: typedef struct 29724: { 29724: 29724: 29724: 29724: __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 29724: 29724: 29724: 29724: 29724: 29724: } fd_set; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __fd_mask fd_mask; 29724: # 91 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: extern "C" { 29724: # 108 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout) __asm__ ("" "__select64") 29724: 29724: 29724: 29724: 29724: ; 29724: # 134 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: 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) __asm__ ("" "__pselect64") 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: # 150 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 3 4 29724: extern long int __fdelt_chk (long int __d); 29724: extern long int __fdelt_warn (long int __d) 29724: __attribute__((__warning__ ("bit outside of fd_set selected"))); 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 2 3 4 29724: # 151 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29724: 29724: 29724: } 29724: # 180 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: typedef __blksize_t blksize_t; 29724: # 205 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: typedef __blkcnt64_t blkcnt_t; 29724: 29724: 29724: 29724: typedef __fsblkcnt64_t fsblkcnt_t; 29724: 29724: 29724: 29724: typedef __fsfilcnt64_t fsfilcnt_t; 29724: 29724: 29724: 29724: 29724: 29724: typedef __blkcnt64_t blkcnt64_t; 29724: typedef __fsblkcnt64_t fsblkcnt64_t; 29724: typedef __fsfilcnt64_t fsfilcnt64_t; 29724: # 230 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29724: } 29724: # 515 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int random (void) noexcept (true); 29724: 29724: 29724: extern void srandom (unsigned int __seed) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern char *initstate (unsigned int __seed, char *__statebuf, 29724: size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct random_data 29724: { 29724: int32_t *fptr; 29724: int32_t *rptr; 29724: int32_t *state; 29724: int rand_type; 29724: int rand_deg; 29724: int rand_sep; 29724: int32_t *end_ptr; 29724: }; 29724: 29724: extern int random_r (struct random_data *__restrict __buf, 29724: int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern int srandom_r (unsigned int __seed, struct random_data *__buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, 29724: size_t __statelen, 29724: struct random_data *__restrict __buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 4))); 29724: 29724: extern int setstate_r (char *__restrict __statebuf, 29724: struct random_data *__restrict __buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int rand (void) noexcept (true); 29724: 29724: extern void srand (unsigned int __seed) noexcept (true); 29724: 29724: 29724: 29724: extern int rand_r (unsigned int *__seed) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double drand48 (void) noexcept (true); 29724: extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern long int lrand48 (void) noexcept (true); 29724: extern long int nrand48 (unsigned short int __xsubi[3]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern long int mrand48 (void) noexcept (true); 29724: extern long int jrand48 (unsigned short int __xsubi[3]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern void srand48 (long int __seedval) noexcept (true); 29724: extern unsigned short int *seed48 (unsigned short int __seed16v[3]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: struct drand48_data 29724: { 29724: unsigned short int __x[3]; 29724: unsigned short int __old_x[3]; 29724: unsigned short int __c; 29724: unsigned short int __init; 29724: __extension__ unsigned long long int __a; 29724: 29724: }; 29724: 29724: 29724: extern int drand48_r (struct drand48_data *__restrict __buffer, 29724: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern int erand48_r (unsigned short int __xsubi[3], 29724: struct drand48_data *__restrict __buffer, 29724: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int lrand48_r (struct drand48_data *__restrict __buffer, 29724: long int *__restrict __result) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern int nrand48_r (unsigned short int __xsubi[3], 29724: struct drand48_data *__restrict __buffer, 29724: long int *__restrict __result) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int mrand48_r (struct drand48_data *__restrict __buffer, 29724: long int *__restrict __result) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern int jrand48_r (unsigned short int __xsubi[3], 29724: struct drand48_data *__restrict __buffer, 29724: long int *__restrict __result) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int srand48_r (long int __seedval, struct drand48_data *__buffer) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: extern int seed48_r (unsigned short int __seed16v[3], 29724: struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern int lcong48_r (unsigned short int __param[7], 29724: struct drand48_data *__buffer) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern __uint32_t arc4random (void) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern void arc4random_buf (void *__buf, size_t __size) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29724: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: extern void *calloc (size_t __nmemb, size_t __size) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void *realloc (void *__ptr, size_t __size) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 29724: 29724: 29724: extern void free (void *__ptr) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__alloc_size__ (2, 3))) 29724: __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29724: noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); 29724: 29724: 29724: 29724: # 1 "/usr/include/alloca.h" 1 3 4 29724: # 24 "/usr/include/alloca.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 25 "/usr/include/alloca.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: extern void *alloca (size_t __size) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 707 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29724: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern void *aligned_alloc (size_t __alignment, size_t __size) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 29724: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern "C++" int at_quick_exit (void (*__func) (void)) 29724: noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); 29724: # 749 "/usr/include/stdlib.h" 3 4 29724: extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: 29724: extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: 29724: extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern char *secure_getenv (const char *__name) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int setenv (const char *__name, const char *__value, int __replace) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int clearenv (void) noexcept (true); 29724: # 814 "/usr/include/stdlib.h" 3 4 29724: extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 830 "/usr/include/stdlib.h" 3 4 29724: extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 852 "/usr/include/stdlib.h" 3 4 29724: extern int mkstemps (char *__template, int __suffixlen) __asm__ ("" "mkstemps64") 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int mkstemps64 (char *__template, int __suffixlen) 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 870 "/usr/include/stdlib.h" 3 4 29724: extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 884 "/usr/include/stdlib.h" 3 4 29724: extern int mkostemp (char *__template, int __flags) __asm__ ("" "mkostemp64") 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 905 "/usr/include/stdlib.h" 3 4 29724: extern int mkostemps (char *__template, int __suffixlen, int __flags) __asm__ ("" "mkostemps64") 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int mkostemps64 (char *__template, int __suffixlen, int __flags) 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 923 "/usr/include/stdlib.h" 3 4 29724: extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern char *canonicalize_file_name (const char *__name) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) 29724: __attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); 29724: # 940 "/usr/include/stdlib.h" 3 4 29724: extern char *realpath (const char *__restrict __name, 29724: char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef int (*__compar_fn_t) (const void *, const void *); 29724: 29724: 29724: typedef __compar_fn_t comparison_fn_t; 29724: 29724: 29724: 29724: typedef int (*__compar_d_fn_t) (const void *, const void *, void *); 29724: 29724: 29724: 29724: 29724: extern void *bsearch (const void *__key, const void *__base, 29724: size_t __nmemb, size_t __size, __compar_fn_t __compar) 29724: __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 1 3 4 29724: # 19 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 3 4 29724: extern __inline __attribute__ ((__gnu_inline__)) void * 29724: bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 29724: __compar_fn_t __compar) 29724: { 29724: size_t __l, __u, __idx; 29724: const void *__p; 29724: int __comparison; 29724: 29724: __l = 0; 29724: __u = __nmemb; 29724: while (__l < __u) 29724: { 29724: __idx = (__l + __u) / 2; 29724: __p = (const void *) (((const char *) __base) + (__idx * __size)); 29724: __comparison = (*__compar) (__key, __p); 29724: if (__comparison < 0) 29724: __u = __idx; 29724: else if (__comparison > 0) 29724: __l = __idx + 1; 29724: else 29724: { 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wcast-qual" 29724: 29724: return (void *) __p; 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: } 29724: } 29724: 29724: return __null; 29724: } 29724: # 966 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: 29724: extern void qsort (void *__base, size_t __nmemb, size_t __size, 29724: __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: extern void qsort_r (void *__base, size_t __nmemb, size_t __size, 29724: __compar_d_fn_t __compar, void *__arg) 29724: __attribute__ ((__nonnull__ (1, 4))); 29724: 29724: 29724: 29724: 29724: extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: __extension__ extern long long int llabs (long long int __x) 29724: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern div_t div (int __numer, int __denom) 29724: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: extern ldiv_t ldiv (long int __numer, long int __denom) 29724: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: __extension__ extern lldiv_t lldiv (long long int __numer, 29724: long long int __denom) 29724: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29724: # 1012 "/usr/include/stdlib.h" 3 4 29724: extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, 29724: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, 29724: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern char *gcvt (double __value, int __ndigit, char *__buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern char *qecvt (long double __value, int __ndigit, 29724: int *__restrict __decpt, int *__restrict __sign) 29724: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29724: extern char *qfcvt (long double __value, int __ndigit, 29724: int *__restrict __decpt, int *__restrict __sign) 29724: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29724: extern char *qgcvt (long double __value, int __ndigit, char *__buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, 29724: int *__restrict __sign, char *__restrict __buf, 29724: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29724: extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, 29724: int *__restrict __sign, char *__restrict __buf, 29724: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29724: 29724: extern int qecvt_r (long double __value, int __ndigit, 29724: int *__restrict __decpt, int *__restrict __sign, 29724: char *__restrict __buf, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29724: extern int qfcvt_r (long double __value, int __ndigit, 29724: int *__restrict __decpt, int *__restrict __sign, 29724: char *__restrict __buf, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29724: 29724: 29724: 29724: 29724: 29724: extern int mblen (const char *__s, size_t __n) noexcept (true); 29724: 29724: 29724: extern int mbtowc (wchar_t *__restrict __pwc, 29724: const char *__restrict __s, size_t __n) noexcept (true); 29724: 29724: 29724: extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); 29724: 29724: 29724: 29724: extern size_t mbstowcs (wchar_t *__restrict __pwcs, 29724: const char *__restrict __s, size_t __n) noexcept (true) 29724: __attribute__ ((__access__ (__read_only__, 2))); 29724: 29724: extern size_t wcstombs (char *__restrict __s, 29724: const wchar_t *__restrict __pwcs, size_t __n) 29724: noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))) 29724: __attribute__ ((__access__ (__read_only__, 2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 1099 "/usr/include/stdlib.h" 3 4 29724: extern int getsubopt (char **__restrict __optionp, 29724: char *const *__restrict __tokens, 29724: char **__restrict __valuep) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int grantpt (int __fd) noexcept (true); 29724: 29724: 29724: 29724: extern int unlockpt (int __fd) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int ptsname_r (int __fd, char *__buf, size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: extern int getpt (void); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int getloadavg (double __loadavg[], int __nelem) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 1155 "/usr/include/stdlib.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 3 4 29724: extern __inline __attribute__ ((__gnu_inline__)) double 29724: __attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) 29724: { 29724: return strtod (__nptr, (char **) __null); 29724: } 29724: # 1156 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 3 4 29724: extern char *__realpath_chk (const char *__restrict __name, 29724: char *__restrict __resolved, 29724: size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) 29724: __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) 29724: ; 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 29724: __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char * __restrict __resolved) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__resolved, 2 > 1); 29724: 29724: if (__sz == (size_t) -1) 29724: return __realpath_alias (__name, __resolved); 29724: 29724: 29724: 29724: 29724: 29724: return __realpath_chk (__name, __resolved, __sz); 29724: } 29724: 29724: 29724: extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, 29724: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") 29724: 29724: __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") 29724: 29724: 29724: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) 29724: ; 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) ptsname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __ptsname_r_alias (__fd, __buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __ptsname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __ptsname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") 29724: __attribute__ ((__warn_unused_result__)); 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int 29724: __attribute__ ((__leaf__)) wctomb (char * __s, wchar_t __wchar) noexcept (true) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 29724: && 16 > __builtin_object_size (__s, 2 > 1)) 29724: return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); 29724: return __wctomb_alias (__s, __wchar); 29724: } 29724: 29724: 29724: extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, 29724: const char *__restrict __src, 29724: size_t __len, size_t __dstlen) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29724: extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 29724: 29724: 29724: 29724: __attribute__ ((__access__ (__read_only__, 2))); 29724: extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 29724: 29724: 29724: 29724: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29724: ; 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) mbstowcs (wchar_t * __restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: if (__builtin_constant_p (__dst == __null) && __dst == __null) 29724: return __mbstowcs_nulldst (__dst, __src, __len); 29724: else 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t)))))) ? __mbstowcs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbstowcs_chk_warn (__dst, __src, __len, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbstowcs_chk (__dst, __src, __len, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29724: ; 29724: } 29724: 29724: extern size_t __wcstombs_chk (char *__restrict __dst, 29724: const wchar_t *__restrict __src, 29724: size_t __len, size_t __dstlen) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29724: extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") 29724: 29724: 29724: 29724: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29724: 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") 29724: 29724: 29724: 29724: __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) wcstombs (char * __restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char)))))) ? __wcstombs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcstombs_chk_warn (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)) : __wcstombs_chk (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)))) 29724: 29724: ; 29724: } 29724: # 1160 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29724: # 1163 "/usr/include/stdlib.h" 2 3 4 29724: 29724: 29724: 29724: 29724: } 29724: # 80 "/usr/include/c++/14/cstdlib" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/std_abs.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/std_abs.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/std_abs.h" 3 29724: # 46 "/usr/include/c++/14/bits/std_abs.h" 3 29724: extern "C++" 29724: { 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: using ::abs; 29724: 29724: 29724: inline long 29724: abs(long __i) { return __builtin_labs(__i); } 29724: 29724: 29724: 29724: inline long long 29724: abs(long long __x) { return __builtin_llabs (__x); } 29724: # 70 "/usr/include/c++/14/bits/std_abs.h" 3 29724: inline constexpr double 29724: abs(double __x) 29724: { return __builtin_fabs(__x); } 29724: 29724: inline constexpr float 29724: abs(float __x) 29724: { return __builtin_fabsf(__x); } 29724: 29724: inline constexpr long double 29724: abs(long double __x) 29724: { return __builtin_fabsl(__x); } 29724: # 150 "/usr/include/c++/14/bits/std_abs.h" 3 29724: 29724: } 29724: } 29724: # 82 "/usr/include/c++/14/cstdlib" 2 3 29724: # 125 "/usr/include/c++/14/cstdlib" 3 29724: extern "C++" 29724: { 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: using ::div_t; 29724: using ::ldiv_t; 29724: 29724: using ::abort; 29724: 29724: using ::aligned_alloc; 29724: 29724: using ::atexit; 29724: 29724: 29724: using ::at_quick_exit; 29724: 29724: 29724: using ::atof; 29724: using ::atoi; 29724: using ::atol; 29724: using ::bsearch; 29724: using ::calloc; 29724: using ::div; 29724: using ::exit; 29724: using ::free; 29724: using ::getenv; 29724: using ::labs; 29724: using ::ldiv; 29724: using ::malloc; 29724: 29724: using ::mblen; 29724: using ::mbstowcs; 29724: using ::mbtowc; 29724: 29724: using ::qsort; 29724: 29724: 29724: using ::quick_exit; 29724: 29724: 29724: using ::rand; 29724: using ::realloc; 29724: using ::srand; 29724: using ::strtod; 29724: using ::strtol; 29724: using ::strtoul; 29724: using ::system; 29724: 29724: using ::wcstombs; 29724: using ::wctomb; 29724: 29724: 29724: 29724: inline ldiv_t 29724: div(long __i, long __j) noexcept { return ldiv(__i, __j); } 29724: 29724: 29724: 29724: 29724: } 29724: # 199 "/usr/include/c++/14/cstdlib" 3 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: using ::lldiv_t; 29724: 29724: 29724: 29724: 29724: 29724: using ::_Exit; 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: using ::llabs; 29724: 29724: inline lldiv_t 29724: div(long long __n, long long __d) 29724: { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } 29724: 29724: using ::lldiv; 29724: #pragma GCC diagnostic pop 29724: # 234 "/usr/include/c++/14/cstdlib" 3 29724: using ::atoll; 29724: using ::strtoll; 29724: using ::strtoull; 29724: 29724: using ::strtof; 29724: using ::strtold; 29724: 29724: 29724: } 29724: 29724: namespace std 29724: { 29724: 29724: using ::__gnu_cxx::lldiv_t; 29724: 29724: using ::__gnu_cxx::_Exit; 29724: 29724: using ::__gnu_cxx::llabs; 29724: using ::__gnu_cxx::div; 29724: using ::__gnu_cxx::lldiv; 29724: 29724: using ::__gnu_cxx::atoll; 29724: using ::__gnu_cxx::strtof; 29724: using ::__gnu_cxx::strtoll; 29724: using ::__gnu_cxx::strtoull; 29724: using ::__gnu_cxx::strtold; 29724: } 29724: # 278 "/usr/include/c++/14/cstdlib" 3 29724: } 29724: # 44 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29724: # 1 "/usr/include/c++/14/cwchar" 1 3 29724: # 39 "/usr/include/c++/14/cwchar" 3 29724: 29724: # 40 "/usr/include/c++/14/cwchar" 3 29724: # 45 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29724: # 1 "/usr/include/c++/14/cstdio" 1 3 29724: # 39 "/usr/include/c++/14/cstdio" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdio" 3 29724: 29724: 29724: # 1 "/usr/include/stdio.h" 1 3 4 29724: # 28 "/usr/include/stdio.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 29 "/usr/include/stdio.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 35 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29724: # 38 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 1 3 4 29724: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 3 4 29724: typedef struct _G_fpos_t 29724: { 29724: __off_t __pos; 29724: __mbstate_t __state; 29724: } __fpos_t; 29724: # 41 "/usr/include/stdio.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 1 3 4 29724: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 3 4 29724: typedef struct _G_fpos64_t 29724: { 29724: __off64_t __pos; 29724: __mbstate_t __state; 29724: } __fpos64_t; 29724: # 42 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 1 3 4 29724: # 35 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 3 4 29724: struct _IO_FILE; 29724: struct _IO_marker; 29724: struct _IO_codecvt; 29724: struct _IO_wide_data; 29724: 29724: 29724: 29724: 29724: typedef void _IO_lock_t; 29724: 29724: 29724: 29724: 29724: 29724: struct _IO_FILE 29724: { 29724: int _flags; 29724: 29724: 29724: char *_IO_read_ptr; 29724: char *_IO_read_end; 29724: char *_IO_read_base; 29724: char *_IO_write_base; 29724: char *_IO_write_ptr; 29724: char *_IO_write_end; 29724: char *_IO_buf_base; 29724: char *_IO_buf_end; 29724: 29724: 29724: char *_IO_save_base; 29724: char *_IO_backup_base; 29724: char *_IO_save_end; 29724: 29724: struct _IO_marker *_markers; 29724: 29724: struct _IO_FILE *_chain; 29724: 29724: int _fileno; 29724: int _flags2; 29724: __off_t _old_offset; 29724: 29724: 29724: unsigned short _cur_column; 29724: signed char _vtable_offset; 29724: char _shortbuf[1]; 29724: 29724: _IO_lock_t *_lock; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __off64_t _offset; 29724: 29724: struct _IO_codecvt *_codecvt; 29724: struct _IO_wide_data *_wide_data; 29724: struct _IO_FILE *_freeres_list; 29724: void *_freeres_buf; 29724: struct _IO_FILE **_prevchain; 29724: int _mode; 29724: 29724: char _unused2[15 * sizeof (int) - 5 * sizeof (void *)]; 29724: }; 29724: # 45 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 3 4 29724: typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, 29724: size_t __nbytes); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, 29724: size_t __nbytes); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); 29724: 29724: 29724: typedef int cookie_close_function_t (void *__cookie); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef struct _IO_cookie_io_functions_t 29724: { 29724: cookie_read_function_t *read; 29724: cookie_write_function_t *write; 29724: cookie_seek_function_t *seek; 29724: cookie_close_function_t *close; 29724: } cookie_io_functions_t; 29724: # 48 "/usr/include/stdio.h" 2 3 4 29724: # 87 "/usr/include/stdio.h" 3 4 29724: typedef __fpos64_t fpos_t; 29724: 29724: 29724: typedef __fpos64_t fpos64_t; 29724: # 129 "/usr/include/stdio.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio_lim.h" 1 3 4 29724: # 130 "/usr/include/stdio.h" 2 3 4 29724: # 149 "/usr/include/stdio.h" 3 4 29724: extern FILE *stdin; 29724: extern FILE *stdout; 29724: extern FILE *stderr; 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int remove (const char *__filename) noexcept (true); 29724: 29724: extern int rename (const char *__old, const char *__new) noexcept (true); 29724: 29724: 29724: 29724: extern int renameat (int __oldfd, const char *__old, int __newfd, 29724: const char *__new) noexcept (true); 29724: # 176 "/usr/include/stdio.h" 3 4 29724: extern int renameat2 (int __oldfd, const char *__old, int __newfd, 29724: const char *__new, unsigned int __flags) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: # 198 "/usr/include/stdio.h" 3 4 29724: extern FILE *tmpfile (void) __asm__ ("" "tmpfile64") 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern FILE *tmpfile64 (void) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern char *tmpnam (char[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern char *tmpnam_r (char __s[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: # 228 "/usr/include/stdio.h" 3 4 29724: extern char *tempnam (const char *__dir, const char *__pfx) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fflush (FILE *__stream); 29724: # 245 "/usr/include/stdio.h" 3 4 29724: extern int fflush_unlocked (FILE *__stream); 29724: # 255 "/usr/include/stdio.h" 3 4 29724: extern int fcloseall (void); 29724: # 276 "/usr/include/stdio.h" 3 4 29724: extern FILE *fopen (const char *__restrict __filename, const char *__restrict __modes) __asm__ ("" "fopen64") 29724: 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: extern FILE *freopen (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern FILE *fopen64 (const char *__restrict __filename, 29724: const char *__restrict __modes) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: extern FILE *freopen64 (const char *__restrict __filename, 29724: const char *__restrict __modes, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: 29724: 29724: extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern FILE *fopencookie (void *__restrict __magic_cookie, 29724: const char *__restrict __modes, 29724: cookie_io_functions_t __io_funcs) noexcept (true) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); 29724: 29724: 29724: 29724: 29724: 29724: extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true) 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 29724: int __modes, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 29724: size_t __size) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern void setlinebuf (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fprintf (FILE *__restrict __stream, 29724: const char *__restrict __format, ...) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int printf (const char *__restrict __format, ...); 29724: 29724: extern int sprintf (char *__restrict __s, 29724: const char *__restrict __format, ...) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 29724: __gnuc_va_list __arg) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 29724: 29724: extern int vsprintf (char *__restrict __s, const char *__restrict __format, 29724: __gnuc_va_list __arg) noexcept (true); 29724: 29724: 29724: 29724: extern int snprintf (char *__restrict __s, size_t __maxlen, 29724: const char *__restrict __format, ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 29724: 29724: extern int vsnprintf (char *__restrict __s, size_t __maxlen, 29724: const char *__restrict __format, __gnuc_va_list __arg) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 29724: 29724: 29724: 29724: 29724: 29724: extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, 29724: __gnuc_va_list __arg) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 29724: extern int __asprintf (char **__restrict __ptr, 29724: const char *__restrict __fmt, ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 29724: extern int asprintf (char **__restrict __ptr, 29724: const char *__restrict __fmt, ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int vdprintf (int __fd, const char *__restrict __fmt, 29724: __gnuc_va_list __arg) 29724: __attribute__ ((__format__ (__printf__, 2, 0))); 29724: extern int dprintf (int __fd, const char *__restrict __fmt, ...) 29724: __attribute__ ((__format__ (__printf__, 2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fscanf (FILE *__restrict __stream, 29724: const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 29724: 29724: extern int sscanf (const char *__restrict __s, 29724: const char *__restrict __format, ...) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29724: # 438 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: 29724: 29724: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc23_fscanf") 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc23_scanf") 29724: __attribute__ ((__warn_unused_result__)); 29724: extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_sscanf") 29724: 29724: ; 29724: # 490 "/usr/include/stdio.h" 3 4 29724: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 29724: __gnuc_va_list __arg) 29724: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 29724: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern int vsscanf (const char *__restrict __s, 29724: const char *__restrict __format, __gnuc_va_list __arg) 29724: noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfscanf") 29724: 29724: 29724: 29724: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vscanf") 29724: 29724: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 29724: extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vsscanf") 29724: 29724: 29724: 29724: __attribute__ ((__format__ (__scanf__, 2, 0))); 29724: # 575 "/usr/include/stdio.h" 3 4 29724: extern int fgetc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: extern int getc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int getchar (void); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int getc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: extern int getchar_unlocked (void); 29724: # 600 "/usr/include/stdio.h" 3 4 29724: extern int fgetc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: # 611 "/usr/include/stdio.h" 3 4 29724: extern int fputc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: extern int putc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int putchar (int __c); 29724: # 627 "/usr/include/stdio.h" 3 4 29724: extern int fputc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int putc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: extern int putchar_unlocked (int __c); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int getw (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int putw (int __w, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 29724: # 677 "/usr/include/stdio.h" 3 4 29724: extern char *fgets_unlocked (char *__restrict __s, int __n, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 29724: # 689 "/usr/include/stdio.h" 3 4 29724: extern __ssize_t __getdelim (char **__restrict __lineptr, 29724: size_t *__restrict __n, int __delimiter, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 29724: extern __ssize_t getdelim (char **__restrict __lineptr, 29724: size_t *__restrict __n, int __delimiter, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 29724: 29724: 29724: extern __ssize_t getline (char **__restrict __lineptr, 29724: size_t *__restrict __n, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fputs (const char *__restrict __s, FILE *__restrict __stream) 29724: __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int puts (const char *__s); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int ungetc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern size_t fread (void *__restrict __ptr, size_t __size, 29724: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__nonnull__ (4))); 29724: 29724: 29724: 29724: 29724: extern size_t fwrite (const void *__restrict __ptr, size_t __size, 29724: size_t __n, FILE *__restrict __s) __attribute__ ((__nonnull__ (4))); 29724: # 745 "/usr/include/stdio.h" 3 4 29724: extern int fputs_unlocked (const char *__restrict __s, 29724: FILE *__restrict __stream) __attribute__ ((__nonnull__ (2))); 29724: # 756 "/usr/include/stdio.h" 3 4 29724: extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 29724: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__nonnull__ (4))); 29724: extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 29724: size_t __n, FILE *__restrict __stream) 29724: __attribute__ ((__nonnull__ (4))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fseek (FILE *__stream, long int __off, int __whence) 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern void rewind (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: # 802 "/usr/include/stdio.h" 3 4 29724: extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64") 29724: __attribute__ ((__nonnull__ (1))); 29724: # 828 "/usr/include/stdio.h" 3 4 29724: extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: extern int fsetpos (FILE *__stream, const fpos_t *__pos) __asm__ ("" "fsetpos64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence) 29724: __attribute__ ((__nonnull__ (1))); 29724: extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos) 29724: __attribute__ ((__nonnull__ (1))); 29724: extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern void clearerr (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: extern int feof (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: extern int ferror (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern void clearerr_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: extern int feof_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: extern int ferror_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void perror (const char *__s) __attribute__ ((__cold__)); 29724: 29724: 29724: 29724: 29724: extern int fileno (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int fileno_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: # 887 "/usr/include/stdio.h" 3 4 29724: extern int pclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern FILE *popen (const char *__command, const char *__modes) 29724: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *ctermid (char *__s) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1))); 29724: 29724: 29724: 29724: 29724: 29724: extern char *cuserid (char *__s) 29724: __attribute__ ((__access__ (__write_only__, 1))); 29724: 29724: 29724: 29724: 29724: struct obstack; 29724: 29724: 29724: extern int obstack_printf (struct obstack *__restrict __obstack, 29724: const char *__restrict __format, ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); 29724: extern int obstack_vprintf (struct obstack *__restrict __obstack, 29724: const char *__restrict __format, 29724: __gnuc_va_list __args) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void flockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int ftrylockfile (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern void funlockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: # 949 "/usr/include/stdio.h" 3 4 29724: extern int __uflow (FILE *); 29724: extern int __overflow (FILE *, int); 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 29724: extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, 29724: const char *__restrict __format, ...) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, 29724: const char *__restrict __format, 29724: __gnuc_va_list __ap) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: 29724: 29724: 29724: extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, 29724: size_t __slen, const char *__restrict __format, 29724: ...) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, 29724: size_t __slen, const char *__restrict __format, 29724: __gnuc_va_list __ap) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int __fprintf_chk (FILE *__restrict __stream, int __flag, 29724: const char *__restrict __format, ...) 29724: __attribute__ ((__nonnull__ (1))); 29724: extern int __printf_chk (int __flag, const char *__restrict __format, ...); 29724: extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, 29724: const char *__restrict __format, 29724: __gnuc_va_list __ap) __attribute__ ((__nonnull__ (1))); 29724: extern int __vprintf_chk (int __flag, const char *__restrict __format, 29724: __gnuc_va_list __ap); 29724: 29724: 29724: extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, 29724: ...) __attribute__ ((__format__ (__printf__, 3, 4))); 29724: extern int __vdprintf_chk (int __fd, int __flag, 29724: const char *__restrict __fmt, __gnuc_va_list __arg) 29724: __attribute__ ((__format__ (__printf__, 3, 0))); 29724: 29724: 29724: 29724: 29724: extern int __asprintf_chk (char **__restrict __ptr, int __flag, 29724: const char *__restrict __fmt, ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); 29724: extern int __vasprintf_chk (char **__restrict __ptr, int __flag, 29724: const char *__restrict __fmt, __gnuc_va_list __arg) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); 29724: extern int __obstack_printf_chk (struct obstack *__restrict __obstack, 29724: int __flag, const char *__restrict __format, 29724: ...) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 29724: extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, 29724: int __flag, 29724: const char *__restrict __format, 29724: __gnuc_va_list __args) 29724: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 29724: # 96 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 29724: extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) 29724: ; 29724: 29724: extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, 29724: FILE *__restrict __stream) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 29724: 29724: extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) 29724: ; 29724: 29724: extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, 29724: size_t __size, size_t __n, 29724: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 29724: 29724: 29724: extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) 29724: ; 29724: 29724: 29724: extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, 29724: int __n, FILE *__restrict __stream) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 29724: 29724: 29724: 29724: 29724: extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)); 29724: 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") 29724: 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) 29724: ; 29724: 29724: extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, 29724: size_t __size, size_t __n, 29724: FILE *__restrict __stream) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 29724: # 955 "/usr/include/stdio.h" 2 3 4 29724: # 966 "/usr/include/stdio.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 1 3 4 29724: # 46 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 3 4 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: getchar (void) 29724: { 29724: return getc (stdin); 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: fgetc_unlocked (FILE *__fp) 29724: { 29724: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: getc_unlocked (FILE *__fp) 29724: { 29724: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: getchar_unlocked (void) 29724: { 29724: return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: putchar (int __c) 29724: { 29724: return putc (__c, stdout); 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: fputc_unlocked (int __c, FILE *__stream) 29724: { 29724: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: putc_unlocked (int __c, FILE *__stream) 29724: { 29724: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: putchar_unlocked (int __c) 29724: { 29724: return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) __ssize_t 29724: getline (char **__lineptr, size_t *__n, FILE *__stream) 29724: { 29724: return __getdelim (__lineptr, __n, '\n', __stream); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) noexcept (true) 29724: { 29724: return (((__stream)->_flags & 0x0010) != 0); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__gnu_inline__)) int 29724: __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) noexcept (true) 29724: { 29724: return (((__stream)->_flags & 0x0020) != 0); 29724: } 29724: # 967 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) noexcept (true) 29724: { 29724: return __builtin___sprintf_chk (__s, 2 - 1, 29724: __builtin_object_size (__s, 2 > 1), __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: # 54 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) vsprintf (char * __restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29724: 29724: { 29724: return __builtin___vsprintf_chk (__s, 2 - 1, 29724: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) noexcept (true) 29724: 29724: { 29724: return __builtin___snprintf_chk (__s, __n, 2 - 1, 29724: __builtin_object_size (__s, 2 > 1), __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: # 92 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) vsnprintf (char * __restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return __builtin___vsnprintf_chk (__s, __n, 2 - 1, 29724: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 29724: fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) 29724: { 29724: return __fprintf_chk (__stream, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: printf (const char *__restrict __fmt, ...) 29724: { 29724: return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 29724: } 29724: # 151 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: vprintf (const char * __restrict __fmt, 29724: __gnuc_va_list __ap) 29724: { 29724: 29724: return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); 29724: 29724: 29724: 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 29724: vfprintf (FILE *__restrict __stream, 29724: const char *__restrict __fmt, __gnuc_va_list __ap) 29724: { 29724: return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: dprintf (int __fd, const char *__restrict __fmt, ...) 29724: { 29724: return __dprintf_chk (__fd, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: # 194 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) 29724: { 29724: return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 29724: { 29724: return __asprintf_chk (__ptr, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 29724: 29724: { 29724: return __asprintf_chk (__ptr, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) noexcept (true) 29724: 29724: { 29724: return __obstack_printf_chk (__obstack, 2 - 1, __fmt, 29724: __builtin_va_arg_pack ()); 29724: } 29724: # 271 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29724: 29724: { 29724: return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29724: 29724: { 29724: return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, 29724: __ap); 29724: } 29724: # 303 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 29724: __attribute__ ((__nonnull__ (3))) char * 29724: fgets (char * __restrict __s, int __n, 29724: FILE *__restrict __stream) 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))))) 29724: return __fgets_alias (__s, __n, __stream); 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (char)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (char))))) 29724: return __fgets_chk_warn (__s, __sz, __n, __stream); 29724: 29724: return __fgets_chk (__s, __sz, __n, __stream); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 29724: fread (void * __restrict __ptr, 29724: size_t __size, size_t __n, FILE *__restrict __stream) 29724: 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__ptr, 0); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((__size)))) && (((unsigned int) (__n)) <= ((__sz)) / ((__size)))))) 29724: return __fread_alias (__ptr, __size, __n, __stream); 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (__size))) && !(((unsigned int) (__n)) <= (__sz) / (__size)))) 29724: return __fread_chk_warn (__ptr, __sz, __size, __n, __stream); 29724: 29724: return __fread_chk (__ptr, __sz, __size, __n, __stream); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 29724: __attribute__ ((__nonnull__ (3))) char * 29724: fgets_unlocked (char * __restrict __s, 29724: int __n, FILE *__restrict __stream) 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__s, 2 > 1); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))))) 29724: return __fgets_unlocked_alias (__s, __n, __stream); 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (char)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (char))))) 29724: return __fgets_unlocked_chk_warn (__s, __sz, __n, __stream); 29724: 29724: return __fgets_unlocked_chk (__s, __sz, __n, __stream); 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 29724: fread_unlocked (void * __restrict __ptr, 29724: size_t __size, size_t __n, FILE *__restrict __stream) 29724: 29724: 29724: 29724: 29724: { 29724: size_t __sz = __builtin_object_size (__ptr, 0); 29724: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((__size)))) && (((unsigned int) (__n)) <= ((__sz)) / ((__size)))))) 29724: { 29724: 29724: if (__builtin_constant_p (__size) 29724: && __builtin_constant_p (__n) 29724: && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) 29724: && __size * __n <= 8) 29724: { 29724: size_t __cnt = __size * __n; 29724: char *__cptr = (char *) __ptr; 29724: if (__cnt == 0) 29724: return 0; 29724: 29724: for (; __cnt > 0; --__cnt) 29724: { 29724: int __c = getc_unlocked (__stream); 29724: if (__c == (-1)) 29724: break; 29724: *__cptr++ = __c; 29724: } 29724: return (__cptr - (char *) __ptr) / __size; 29724: } 29724: 29724: return __fread_unlocked_alias (__ptr, __size, __n, __stream); 29724: } 29724: 29724: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (__size))) && !(((unsigned int) (__n)) <= (__sz) / (__size)))) 29724: return __fread_unlocked_chk_warn (__ptr, __sz, __size, __n, __stream); 29724: 29724: return __fread_unlocked_chk (__ptr, __sz, __size, __n, __stream); 29724: 29724: } 29724: # 971 "/usr/include/stdio.h" 2 3 4 29724: 29724: 29724: } 29724: # 43 "/usr/include/c++/14/cstdio" 2 3 29724: # 96 "/usr/include/c++/14/cstdio" 3 29724: namespace std 29724: { 29724: using ::FILE; 29724: using ::fpos_t; 29724: 29724: using ::clearerr; 29724: using ::fclose; 29724: using ::feof; 29724: using ::ferror; 29724: using ::fflush; 29724: using ::fgetc; 29724: using ::fgetpos; 29724: using ::fgets; 29724: using ::fopen; 29724: using ::fprintf; 29724: using ::fputc; 29724: using ::fputs; 29724: using ::fread; 29724: using ::freopen; 29724: using ::fscanf; 29724: using ::fseek; 29724: using ::fsetpos; 29724: using ::ftell; 29724: using ::fwrite; 29724: using ::getc; 29724: using ::getchar; 29724: 29724: 29724: 29724: 29724: using ::perror; 29724: using ::printf; 29724: using ::putc; 29724: using ::putchar; 29724: using ::puts; 29724: using ::remove; 29724: using ::rename; 29724: using ::rewind; 29724: using ::scanf; 29724: using ::setbuf; 29724: using ::setvbuf; 29724: using ::sprintf; 29724: using ::sscanf; 29724: using ::tmpfile; 29724: 29724: using ::tmpnam; 29724: 29724: using ::ungetc; 29724: using ::vfprintf; 29724: using ::vprintf; 29724: using ::vsprintf; 29724: } 29724: # 157 "/usr/include/c++/14/cstdio" 3 29724: namespace __gnu_cxx 29724: { 29724: # 175 "/usr/include/c++/14/cstdio" 3 29724: using ::snprintf; 29724: using ::vfscanf; 29724: using ::vscanf; 29724: using ::vsnprintf; 29724: using ::vsscanf; 29724: 29724: } 29724: 29724: namespace std 29724: { 29724: using ::__gnu_cxx::snprintf; 29724: using ::__gnu_cxx::vfscanf; 29724: using ::__gnu_cxx::vscanf; 29724: using ::__gnu_cxx::vsnprintf; 29724: using ::__gnu_cxx::vsscanf; 29724: } 29724: # 46 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29724: # 1 "/usr/include/c++/14/cerrno" 1 3 29724: # 39 "/usr/include/c++/14/cerrno" 3 29724: 29724: # 40 "/usr/include/c++/14/cerrno" 3 29724: 29724: 29724: # 1 "/usr/include/errno.h" 1 3 4 29724: # 28 "/usr/include/errno.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 3 4 29724: # 1 "/usr/include/linux/errno.h" 1 3 4 29724: # 1 "/usr/lib/linux/uapi/arm/asm/errno.h" 1 3 4 29724: # 1 "/usr/include/asm-generic/errno.h" 1 3 4 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 29724: # 6 "/usr/include/asm-generic/errno.h" 2 3 4 29724: # 2 "/usr/lib/linux/uapi/arm/asm/errno.h" 2 3 4 29724: # 2 "/usr/include/linux/errno.h" 2 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 2 3 4 29724: # 29 "/usr/include/errno.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: 29724: 29724: extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *program_invocation_name; 29724: extern char *program_invocation_short_name; 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 1 3 4 29724: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 3 4 29724: typedef int error_t; 29724: # 49 "/usr/include/errno.h" 2 3 4 29724: 29724: 29724: 29724: } 29724: # 43 "/usr/include/c++/14/cerrno" 2 3 29724: # 47 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: _Ret 29724: __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), 29724: const char* __name, const _CharT* __str, std::size_t* __idx, 29724: _Base... __base) 29724: { 29724: _Ret __ret; 29724: 29724: _CharT* __endptr; 29724: 29724: struct _Save_errno { 29724: _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } 29724: ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } 29724: int _M_errno; 29724: } const __save_errno; 29724: 29724: struct _Range_chk { 29724: static bool 29724: _S_chk(_TRet, std::false_type) { return false; } 29724: 29724: static bool 29724: _S_chk(_TRet __val, std::true_type) 29724: { 29724: return __val < _TRet(__numeric_traits::__min) 29724: || __val > _TRet(__numeric_traits::__max); 29724: } 29724: }; 29724: 29724: const _TRet __tmp = __convf(__str, &__endptr, __base...); 29724: 29724: if (__endptr == __str) 29724: std::__throw_invalid_argument(__name); 29724: else if ((*__errno_location ()) == 34 29724: || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) 29724: std::__throw_out_of_range(__name); 29724: else 29724: __ret = __tmp; 29724: 29724: if (__idx) 29724: *__idx = __endptr - __str; 29724: 29724: return __ret; 29724: } 29724: 29724: 29724: template 29724: _String 29724: __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, 29724: __builtin_va_list), std::size_t __n, 29724: const _CharT* __fmt, ...) 29724: { 29724: 29724: 29724: _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __n)); 29724: 29724: __builtin_va_list __args; 29724: __builtin_va_start(__args, __fmt); 29724: 29724: const int __len = __convf(__s, __n, __fmt, __args); 29724: 29724: __builtin_va_end(__args); 29724: 29724: return _String(__s, __s + __len); 29724: } 29724: 29724: 29724: } 29724: # 4155 "/usr/include/c++/14/bits/basic_string.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/charconv.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/charconv.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/charconv.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: template 29724: constexpr bool __integer_to_chars_is_unsigned 29724: = ! __gnu_cxx::__int_traits<_Tp>::__is_signed; 29724: 29724: 29724: 29724: template 29724: constexpr unsigned 29724: __to_chars_len(_Tp __value, int __base = 10) noexcept 29724: { 29724: 29724: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 29724: 29724: 29724: unsigned __n = 1; 29724: const unsigned __b2 = __base * __base; 29724: const unsigned __b3 = __b2 * __base; 29724: const unsigned long __b4 = __b3 * __base; 29724: for (;;) 29724: { 29724: if (__value < (unsigned)__base) return __n; 29724: if (__value < __b2) return __n + 1; 29724: if (__value < __b3) return __n + 2; 29724: if (__value < __b4) return __n + 3; 29724: __value /= __b4; 29724: __n += 4; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept 29724: { 29724: 29724: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 29724: 29724: 29724: constexpr char __digits[201] = 29724: "0001020304050607080910111213141516171819" 29724: "2021222324252627282930313233343536373839" 29724: "4041424344454647484950515253545556575859" 29724: "6061626364656667686970717273747576777879" 29724: "8081828384858687888990919293949596979899"; 29724: unsigned __pos = __len - 1; 29724: while (__val >= 100) 29724: { 29724: auto const __num = (__val % 100) * 2; 29724: __val /= 100; 29724: __first[__pos] = __digits[__num + 1]; 29724: __first[__pos - 1] = __digits[__num]; 29724: __pos -= 2; 29724: } 29724: if (__val >= 10) 29724: { 29724: auto const __num = __val * 2; 29724: __first[1] = __digits[__num + 1]; 29724: __first[0] = __digits[__num]; 29724: } 29724: else 29724: __first[0] = '0' + __val; 29724: } 29724: 29724: } 29724: 29724: } 29724: # 4156 "/usr/include/c++/14/bits/basic_string.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace __cxx11 { 29724: 29724: 29724: inline int 29724: stoi(const string& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline long 29724: stol(const string& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline unsigned long 29724: stoul(const string& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), 29724: __idx, __base); } 29724: 29724: 29724: inline long long 29724: stoll(const string& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline unsigned long long 29724: stoull(const string& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), 29724: __idx, __base); } 29724: # 4198 "/usr/include/c++/14/bits/basic_string.h" 3 29724: inline double 29724: stod(const string& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } 29724: 29724: 29724: 29724: inline float 29724: stof(const string& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } 29724: # 4226 "/usr/include/c++/14/bits/basic_string.h" 3 29724: inline long double 29724: stold(const string& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } 29724: # 4238 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(int __val) 29724: 29724: noexcept 29724: 29724: { 29724: const bool __neg = __val < 0; 29724: const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; 29724: const auto __len = __detail::__to_chars_len(__uval); 29724: string __str; 29724: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29724: __p[0] = '-'; 29724: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(unsigned __val) 29724: 29724: noexcept 29724: 29724: { 29724: const auto __len = __detail::__to_chars_len(__val); 29724: string __str; 29724: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29724: __detail::__to_chars_10_impl(__p, __n, __val); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(long __val) 29724: 29724: noexcept 29724: 29724: { 29724: const bool __neg = __val < 0; 29724: const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; 29724: const auto __len = __detail::__to_chars_len(__uval); 29724: string __str; 29724: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29724: __p[0] = '-'; 29724: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(unsigned long __val) 29724: 29724: noexcept 29724: 29724: { 29724: const auto __len = __detail::__to_chars_len(__val); 29724: string __str; 29724: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29724: __detail::__to_chars_10_impl(__p, __n, __val); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(long long __val) 29724: { 29724: const bool __neg = __val < 0; 29724: const unsigned long long __uval 29724: = __neg ? (unsigned long long)~__val + 1ull : __val; 29724: const auto __len = __detail::__to_chars_len(__uval); 29724: string __str; 29724: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29724: __p[0] = '-'; 29724: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(unsigned long long __val) 29724: { 29724: const auto __len = __detail::__to_chars_len(__val); 29724: string __str; 29724: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29724: __detail::__to_chars_10_impl(__p, __n, __val); 29724: return __n; 29724: }); 29724: return __str; 29724: } 29724: # 4399 "/usr/include/c++/14/bits/basic_string.h" 3 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(float __val) 29724: { 29724: const int __n = 29724: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29724: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29724: "%f", __val); 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(double __val) 29724: { 29724: const int __n = 29724: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29724: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29724: "%f", __val); 29724: } 29724: 29724: [[__nodiscard__]] 29724: inline string 29724: to_string(long double __val) 29724: { 29724: const int __n = 29724: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29724: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29724: "%Lf", __val); 29724: } 29724: 29724: 29724: 29724: inline int 29724: stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline long 29724: stol(const wstring& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline unsigned long 29724: stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline long long 29724: stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), 29724: __idx, __base); } 29724: 29724: inline unsigned long long 29724: stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) 29724: { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), 29724: __idx, __base); } 29724: 29724: 29724: inline float 29724: stof(const wstring& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } 29724: 29724: inline double 29724: stod(const wstring& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } 29724: 29724: inline long double 29724: stold(const wstring& __str, size_t* __idx = 0) 29724: { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: 29724: inline void 29724: __to_wstring_numeric(const char* __s, int __len, wchar_t* __wout) 29724: { 29724: 29724: 29724: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 29724: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 29724: { 29724: for (int __i = 0; __i < __len; ++__i) 29724: __wout[__i] = (wchar_t) __s[__i]; 29724: } 29724: else 29724: { 29724: wchar_t __wc[256]; 29724: for (int __i = '0'; __i <= '9'; ++__i) 29724: __wc[__i] = L'0' + __i; 29724: __wc['.'] = L'.'; 29724: __wc['+'] = L'+'; 29724: __wc['-'] = L'-'; 29724: __wc['a'] = L'a'; 29724: __wc['b'] = L'b'; 29724: __wc['c'] = L'c'; 29724: __wc['d'] = L'd'; 29724: __wc['e'] = L'e'; 29724: __wc['f'] = L'f'; 29724: __wc['n'] = L'n'; 29724: __wc['p'] = L'p'; 29724: __wc['x'] = L'x'; 29724: __wc['A'] = L'A'; 29724: __wc['B'] = L'B'; 29724: __wc['C'] = L'C'; 29724: __wc['D'] = L'D'; 29724: __wc['E'] = L'E'; 29724: __wc['F'] = L'F'; 29724: __wc['N'] = L'N'; 29724: __wc['P'] = L'P'; 29724: __wc['X'] = L'X'; 29724: 29724: for (int __i = 0; __i < __len; ++__i) 29724: __wout[__i] = __wc[(int)__s[__i]]; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: inline wstring 29724: 29724: __to_wstring_numeric(string_view __s) 29724: 29724: 29724: 29724: { 29724: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 29724: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 29724: return wstring(__s.data(), __s.data() + __s.size()); 29724: else 29724: { 29724: wstring __ws; 29724: auto __f = __s.data(); 29724: __ws.__resize_and_overwrite(__s.size(), 29724: [__f] (wchar_t* __to, int __n) { 29724: std::__to_wstring_numeric(__f, __n, __to); 29724: return __n; 29724: }); 29724: return __ws; 29724: } 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(int __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(unsigned __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(long __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(unsigned long __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(long long __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(unsigned long long __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(float __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(double __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: [[__nodiscard__]] 29724: inline wstring 29724: to_wstring(long double __val) 29724: { return std::__to_wstring_numeric(std::to_string(__val)); } 29724: 29724: 29724: 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: template, _Alloc>> 29724: struct __str_hash_base 29724: : public __hash_base 29724: { 29724: [[__nodiscard__]] 29724: size_t 29724: operator()(const _StrT& __s) const noexcept 29724: { return _Hash_impl::hash(__s.data(), __s.length() * sizeof(_CharT)); } 29724: }; 29724: 29724: 29724: 29724: template 29724: struct hash, _Alloc>> 29724: : public __str_hash_base 29724: { }; 29724: 29724: 29724: template 29724: struct hash, _Alloc>> 29724: : public __str_hash_base 29724: { }; 29724: 29724: template 29724: struct __is_fast_hash, 29724: _Alloc>>> 29724: : std::false_type 29724: { }; 29724: # 4649 "/usr/include/c++/14/bits/basic_string.h" 3 29724: template 29724: struct hash, _Alloc>> 29724: : public __str_hash_base 29724: { }; 29724: 29724: 29724: template 29724: struct hash, _Alloc>> 29724: : public __str_hash_base 29724: { }; 29724: 29724: 29724: 29724: template<> struct __is_fast_hash> : std::false_type { }; 29724: template<> struct __is_fast_hash> : std::false_type { }; 29724: template<> struct __is_fast_hash> : std::false_type { }; 29724: template<> struct __is_fast_hash> : std::false_type { }; 29724: # 4678 "/usr/include/c++/14/bits/basic_string.h" 3 29724: inline namespace literals 29724: { 29724: inline namespace string_literals 29724: { 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: inline basic_string 29724: operator""s(const char* __str, size_t __len) 29724: { return basic_string{__str, __len}; } 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: inline basic_string 29724: operator""s(const wchar_t* __str, size_t __len) 29724: { return basic_string{__str, __len}; } 29724: # 4708 "/usr/include/c++/14/bits/basic_string.h" 3 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: inline basic_string 29724: operator""s(const char16_t* __str, size_t __len) 29724: { return basic_string{__str, __len}; } 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: inline basic_string 29724: operator""s(const char32_t* __str, size_t __len) 29724: { return basic_string{__str, __len}; } 29724: 29724: 29724: #pragma GCC diagnostic pop 29724: } 29724: } 29724: 29724: 29724: 29724: namespace __detail::__variant 29724: { 29724: template struct _Never_valueless_alt; 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt> 29724: : __and_< 29724: is_nothrow_move_constructible>, 29724: is_nothrow_move_assignable> 29724: >::type 29724: { }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 55 "/usr/include/c++/14/string" 2 3 29724: # 1 "/usr/include/c++/14/bits/basic_string.tcc" 1 3 29724: # 42 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: 29724: # 43 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: const typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>::npos; 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: swap(basic_string& __s) noexcept 29724: { 29724: if (this == std::__addressof(__s)) 29724: return; 29724: 29724: _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); 29724: 29724: if (_M_is_local()) 29724: if (__s._M_is_local()) 29724: { 29724: if (length() && __s.length()) 29724: { 29724: _CharT __tmp_data[_S_local_capacity + 1]; 29724: traits_type::copy(__tmp_data, __s._M_local_buf, 29724: __s.length() + 1); 29724: traits_type::copy(__s._M_local_buf, _M_local_buf, 29724: length() + 1); 29724: traits_type::copy(_M_local_buf, __tmp_data, 29724: __s.length() + 1); 29724: } 29724: else if (__s.length()) 29724: { 29724: _M_init_local_buf(); 29724: traits_type::copy(_M_local_buf, __s._M_local_buf, 29724: __s.length() + 1); 29724: _M_length(__s.length()); 29724: __s._M_set_length(0); 29724: return; 29724: } 29724: else if (length()) 29724: { 29724: __s._M_init_local_buf(); 29724: traits_type::copy(__s._M_local_buf, _M_local_buf, 29724: length() + 1); 29724: __s._M_length(length()); 29724: _M_set_length(0); 29724: return; 29724: } 29724: } 29724: else 29724: { 29724: const size_type __tmp_capacity = __s._M_allocated_capacity; 29724: __s._M_init_local_buf(); 29724: traits_type::copy(__s._M_local_buf, _M_local_buf, 29724: length() + 1); 29724: _M_data(__s._M_data()); 29724: __s._M_data(__s._M_local_buf); 29724: _M_capacity(__tmp_capacity); 29724: } 29724: else 29724: { 29724: const size_type __tmp_capacity = _M_allocated_capacity; 29724: if (__s._M_is_local()) 29724: { 29724: _M_init_local_buf(); 29724: traits_type::copy(_M_local_buf, __s._M_local_buf, 29724: __s.length() + 1); 29724: __s._M_data(_M_data()); 29724: _M_data(_M_local_buf); 29724: } 29724: else 29724: { 29724: pointer __tmp_ptr = _M_data(); 29724: _M_data(__s._M_data()); 29724: __s._M_data(__tmp_ptr); 29724: _M_capacity(__s._M_allocated_capacity); 29724: } 29724: __s._M_capacity(__tmp_capacity); 29724: } 29724: 29724: const size_type __tmp_length = length(); 29724: _M_length(__s.length()); 29724: __s._M_length(__tmp_length); 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::pointer 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_create(size_type& __capacity, size_type __old_capacity) 29724: { 29724: 29724: 29724: if (__capacity > max_size()) 29724: std::__throw_length_error(("basic_string::_M_create")); 29724: 29724: 29724: 29724: 29724: if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) 29724: { 29724: __capacity = 2 * __old_capacity; 29724: 29724: if (__capacity > max_size()) 29724: __capacity = max_size(); 29724: } 29724: 29724: 29724: 29724: return _S_allocate(_M_get_allocator(), __capacity + 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_construct(_InIterator __beg, _InIterator __end, 29724: std::input_iterator_tag) 29724: { 29724: size_type __len = 0; 29724: size_type __capacity = size_type(_S_local_capacity); 29724: 29724: _M_init_local_buf(); 29724: 29724: while (__beg != __end && __len < __capacity) 29724: { 29724: _M_local_buf[__len++] = *__beg; 29724: ++__beg; 29724: } 29724: 29724: struct _Guard 29724: { 29724: 29724: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 29724: 29724: 29724: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 29724: 29724: basic_string* _M_guarded; 29724: } __guard(this); 29724: 29724: while (__beg != __end) 29724: { 29724: if (__len == __capacity) 29724: { 29724: 29724: __capacity = __len + 1; 29724: pointer __another = _M_create(__capacity, __len); 29724: this->_S_copy(__another, _M_data(), __len); 29724: _M_dispose(); 29724: _M_data(__another); 29724: _M_capacity(__capacity); 29724: } 29724: traits_type::assign(_M_data()[__len++], *__beg); 29724: ++__beg; 29724: } 29724: 29724: __guard._M_guarded = 0; 29724: 29724: _M_set_length(__len); 29724: } 29724: 29724: template 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_construct(_InIterator __beg, _InIterator __end, 29724: std::forward_iterator_tag) 29724: { 29724: size_type __dnew = static_cast(std::distance(__beg, __end)); 29724: 29724: if (__dnew > size_type(_S_local_capacity)) 29724: { 29724: _M_data(_M_create(__dnew, size_type(0))); 29724: _M_capacity(__dnew); 29724: } 29724: else 29724: _M_init_local_buf(); 29724: 29724: 29724: struct _Guard 29724: { 29724: 29724: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 29724: 29724: 29724: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 29724: 29724: basic_string* _M_guarded; 29724: } __guard(this); 29724: 29724: this->_S_copy_chars(_M_data(), __beg, __end); 29724: 29724: __guard._M_guarded = 0; 29724: 29724: _M_set_length(__dnew); 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_construct(size_type __n, _CharT __c) 29724: { 29724: if (__n > size_type(_S_local_capacity)) 29724: { 29724: _M_data(_M_create(__n, size_type(0))); 29724: _M_capacity(__n); 29724: } 29724: else 29724: _M_init_local_buf(); 29724: 29724: if (__n) 29724: this->_S_assign(_M_data(), __n, __c); 29724: 29724: _M_set_length(__n); 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_assign(const basic_string& __str) 29724: { 29724: if (this != std::__addressof(__str)) 29724: { 29724: const size_type __rsize = __str.length(); 29724: const size_type __capacity = capacity(); 29724: 29724: if (__rsize > __capacity) 29724: { 29724: size_type __new_capacity = __rsize; 29724: pointer __tmp = _M_create(__new_capacity, __capacity); 29724: _M_dispose(); 29724: _M_data(__tmp); 29724: _M_capacity(__new_capacity); 29724: } 29724: 29724: if (__rsize) 29724: this->_S_copy(_M_data(), __str._M_data(), __rsize); 29724: 29724: _M_set_length(__rsize); 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: reserve(size_type __res) 29724: { 29724: const size_type __capacity = capacity(); 29724: 29724: 29724: 29724: 29724: if (__res <= __capacity) 29724: return; 29724: 29724: pointer __tmp = _M_create(__res, __capacity); 29724: this->_S_copy(__tmp, _M_data(), length() + 1); 29724: _M_dispose(); 29724: _M_data(__tmp); 29724: _M_capacity(__res); 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 29724: size_type __len2) 29724: { 29724: const size_type __how_much = length() - __pos - __len1; 29724: 29724: size_type __new_capacity = length() + __len2 - __len1; 29724: pointer __r = _M_create(__new_capacity, capacity()); 29724: 29724: if (__pos) 29724: this->_S_copy(__r, _M_data(), __pos); 29724: if (__s && __len2) 29724: this->_S_copy(__r + __pos, __s, __len2); 29724: if (__how_much) 29724: this->_S_copy(__r + __pos + __len2, 29724: _M_data() + __pos + __len1, __how_much); 29724: 29724: _M_dispose(); 29724: _M_data(__r); 29724: _M_capacity(__new_capacity); 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_erase(size_type __pos, size_type __n) 29724: { 29724: const size_type __how_much = length() - __pos - __n; 29724: 29724: if (__how_much && __n) 29724: this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); 29724: 29724: _M_set_length(length() - __n); 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: reserve() 29724: { 29724: if (_M_is_local()) 29724: return; 29724: 29724: const size_type __length = length(); 29724: const size_type __capacity = _M_allocated_capacity; 29724: 29724: if (__length <= size_type(_S_local_capacity)) 29724: { 29724: _M_init_local_buf(); 29724: this->_S_copy(_M_local_buf, _M_data(), __length + 1); 29724: _M_destroy(__capacity); 29724: _M_data(_M_local_data()); 29724: } 29724: 29724: else if (__length < __capacity) 29724: try 29724: { 29724: pointer __tmp = _S_allocate(_M_get_allocator(), __length + 1); 29724: this->_S_copy(__tmp, _M_data(), __length + 1); 29724: _M_dispose(); 29724: _M_data(__tmp); 29724: _M_capacity(__length); 29724: } 29724: catch (const __cxxabiv1::__forced_unwind&) 29724: { throw; } 29724: catch (...) 29724: { } 29724: 29724: } 29724: 29724: template 29724: 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: resize(size_type __n, _CharT __c) 29724: { 29724: const size_type __size = this->size(); 29724: if (__size < __n) 29724: this->append(__n - __size, __c); 29724: else if (__n < __size) 29724: this->_M_set_length(__n); 29724: } 29724: 29724: template 29724: 29724: basic_string<_CharT, _Traits, _Alloc>& 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_append(const _CharT* __s, size_type __n) 29724: { 29724: const size_type __len = __n + this->size(); 29724: 29724: if (__len <= this->capacity()) 29724: { 29724: if (__n) 29724: this->_S_copy(this->_M_data() + this->size(), __s, __n); 29724: } 29724: else 29724: this->_M_mutate(this->size(), size_type(0), __s, __n); 29724: 29724: this->_M_set_length(__len); 29724: return *this; 29724: } 29724: 29724: template 29724: template 29724: 29724: basic_string<_CharT, _Traits, _Alloc>& 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29724: _InputIterator __k1, _InputIterator __k2, 29724: std::__false_type) 29724: { 29724: 29724: 29724: const basic_string __s(__k1, __k2, this->get_allocator()); 29724: const size_type __n1 = __i2 - __i1; 29724: return _M_replace(__i1 - begin(), __n1, __s._M_data(), 29724: __s.size()); 29724: } 29724: 29724: template 29724: 29724: basic_string<_CharT, _Traits, _Alloc>& 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 29724: _CharT __c) 29724: { 29724: _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); 29724: 29724: const size_type __old_size = this->size(); 29724: const size_type __new_size = __old_size + __n2 - __n1; 29724: 29724: if (__new_size <= this->capacity()) 29724: { 29724: pointer __p = this->_M_data() + __pos1; 29724: 29724: const size_type __how_much = __old_size - __pos1 - __n1; 29724: if (__how_much && __n1 != __n2) 29724: this->_S_move(__p + __n2, __p + __n1, __how_much); 29724: } 29724: else 29724: this->_M_mutate(__pos1, __n1, 0, __n2); 29724: 29724: if (__n2) 29724: this->_S_assign(this->_M_data() + __pos1, __n2, __c); 29724: 29724: this->_M_set_length(__new_size); 29724: return *this; 29724: } 29724: 29724: template 29724: __attribute__((__noinline__, __noclone__, __cold__)) void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 29724: const size_type __len2, const size_type __how_much) 29724: { 29724: 29724: if (__len2 && __len2 <= __len1) 29724: this->_S_move(__p, __s, __len2); 29724: if (__how_much && __len1 != __len2) 29724: this->_S_move(__p + __len2, __p + __len1, __how_much); 29724: if (__len2 > __len1) 29724: { 29724: if (__s + __len2 <= __p + __len1) 29724: this->_S_move(__p, __s, __len2); 29724: else if (__s >= __p + __len1) 29724: { 29724: 29724: 29724: const size_type __poff = (__s - __p) + (__len2 - __len1); 29724: this->_S_copy(__p, __p + __poff, __len2); 29724: } 29724: else 29724: { 29724: const size_type __nleft = (__p + __len1) - __s; 29724: this->_S_move(__p, __s, __nleft); 29724: this->_S_copy(__p + __nleft, __p + __len2, __len2 - __nleft); 29724: } 29724: } 29724: } 29724: 29724: template 29724: 29724: basic_string<_CharT, _Traits, _Alloc>& 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 29724: const size_type __len2) 29724: { 29724: _M_check_length(__len1, __len2, "basic_string::_M_replace"); 29724: 29724: const size_type __old_size = this->size(); 29724: const size_type __new_size = __old_size + __len2 - __len1; 29724: 29724: if (__new_size <= this->capacity()) 29724: { 29724: pointer __p = this->_M_data() + __pos; 29724: 29724: const size_type __how_much = __old_size - __pos - __len1; 29724: # 537 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: if (__builtin_expect(_M_disjunct(__s), true)) 29724: { 29724: if (__how_much && __len1 != __len2) 29724: this->_S_move(__p + __len2, __p + __len1, __how_much); 29724: if (__len2) 29724: this->_S_copy(__p, __s, __len2); 29724: } 29724: else 29724: _M_replace_cold(__p, __len1, __s, __len2, __how_much); 29724: } 29724: else 29724: this->_M_mutate(__pos, __len1, __s, __len2); 29724: 29724: this->_M_set_length(__new_size); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: copy(_CharT* __s, size_type __n, size_type __pos) const 29724: { 29724: _M_check(__pos, "basic_string::copy"); 29724: __n = _M_limit(__pos, __n); 29724: ; 29724: if (__n) 29724: _S_copy(__s, _M_data() + __pos, __n); 29724: 29724: return __n; 29724: } 29724: # 580 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: template 29724: template 29724: void 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: 29724: 29724: 29724: __resize_and_overwrite(const size_type __n, _Operation __op) 29724: 29724: { 29724: reserve(__n); 29724: _CharT* const __p = _M_data(); 29724: 29724: 29724: 29724: 29724: struct _Terminator { 29724: ~_Terminator() { _M_this->_M_set_length(_M_r); } 29724: basic_string* _M_this; 29724: size_type _M_r; 29724: }; 29724: _Terminator __term{this, 0}; 29724: auto __r = std::move(__op)(__p + 0, __n + 0); 29724: 29724: 29724: 29724: static_assert(__gnu_cxx::__is_integer_nonstrict::__value, 29724: "resize_and_overwrite operation must return an integer"); 29724: 29724: ; 29724: __term._M_r = size_type(__r); 29724: if (__term._M_r > __n) 29724: __builtin_unreachable(); 29724: } 29724: # 623 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: const size_type __size = this->size(); 29724: 29724: if (__n == 0) 29724: return __pos <= __size ? __pos : npos; 29724: if (__pos >= __size) 29724: return npos; 29724: 29724: const _CharT __elem0 = __s[0]; 29724: const _CharT* const __data = data(); 29724: const _CharT* __first = __data + __pos; 29724: const _CharT* const __last = __data + __size; 29724: size_type __len = __size - __pos; 29724: 29724: while (__len >= __n) 29724: { 29724: 29724: __first = traits_type::find(__first, __len - __n + 1, __elem0); 29724: if (!__first) 29724: return npos; 29724: 29724: 29724: 29724: if (traits_type::compare(__first, __s, __n) == 0) 29724: return __first - __data; 29724: __len = __last - ++__first; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __ret = npos; 29724: const size_type __size = this->size(); 29724: if (__pos < __size) 29724: { 29724: const _CharT* __data = _M_data(); 29724: const size_type __n = __size - __pos; 29724: const _CharT* __p = traits_type::find(__data + __pos, __n, __c); 29724: if (__p) 29724: __ret = __p - __data; 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: rfind(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: const size_type __size = this->size(); 29724: if (__n <= __size) 29724: { 29724: __pos = std::min(size_type(__size - __n), __pos); 29724: const _CharT* __data = _M_data(); 29724: do 29724: { 29724: if (traits_type::compare(__data + __pos, __s, __n) == 0) 29724: return __pos; 29724: } 29724: while (__pos-- > 0); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: rfind(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __size = this->size(); 29724: if (__size) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: for (++__size; __size-- > 0; ) 29724: if (traits_type::eq(_M_data()[__size], __c)) 29724: return __size; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: for (; __n && __pos < this->size(); ++__pos) 29724: { 29724: const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); 29724: if (__p) 29724: return __pos; 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: size_type __size = this->size(); 29724: if (__size && __n) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (traits_type::find(__s, __n, _M_data()[__size])) 29724: return __size; 29724: } 29724: while (__size-- != 0); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: for (; __pos < this->size(); ++__pos) 29724: if (!traits_type::find(__s, __n, _M_data()[__pos])) 29724: return __pos; 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_first_not_of(_CharT __c, size_type __pos) const noexcept 29724: { 29724: for (; __pos < this->size(); ++__pos) 29724: if (!traits_type::eq(_M_data()[__pos], __c)) 29724: return __pos; 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const 29724: noexcept 29724: { 29724: ; 29724: size_type __size = this->size(); 29724: if (__size) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (!traits_type::find(__s, __n, _M_data()[__size])) 29724: return __size; 29724: } 29724: while (__size--); 29724: } 29724: return npos; 29724: } 29724: 29724: template 29724: 29724: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29724: basic_string<_CharT, _Traits, _Alloc>:: 29724: find_last_not_of(_CharT __c, size_type __pos) const noexcept 29724: { 29724: size_type __size = this->size(); 29724: if (__size) 29724: { 29724: if (--__size > __pos) 29724: __size = __pos; 29724: do 29724: { 29724: if (!traits_type::eq(_M_data()[__size], __c)) 29724: return __size; 29724: } 29724: while (__size--); 29724: } 29724: return npos; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: operator>>(basic_istream<_CharT, _Traits>& __in, 29724: basic_string<_CharT, _Traits, _Alloc>& __str) 29724: { 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29724: typedef typename __istream_type::ios_base __ios_base; 29724: typedef typename __istream_type::int_type __int_type; 29724: typedef typename __string_type::size_type __size_type; 29724: typedef ctype<_CharT> __ctype_type; 29724: typedef typename __ctype_type::ctype_base __ctype_base; 29724: 29724: __size_type __extracted = 0; 29724: typename __ios_base::iostate __err = __ios_base::goodbit; 29724: typename __istream_type::sentry __cerb(__in, false); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: 29724: __str.erase(); 29724: _CharT __buf[128]; 29724: __size_type __len = 0; 29724: const streamsize __w = __in.width(); 29724: const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) 29724: : __str.max_size(); 29724: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29724: const __int_type __eof = _Traits::eof(); 29724: __int_type __c = __in.rdbuf()->sgetc(); 29724: 29724: while (__extracted < __n 29724: && !_Traits::eq_int_type(__c, __eof) 29724: && !__ct.is(__ctype_base::space, 29724: _Traits::to_char_type(__c))) 29724: { 29724: if (__len == sizeof(__buf) / sizeof(_CharT)) 29724: { 29724: __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); 29724: __len = 0; 29724: } 29724: __buf[__len++] = _Traits::to_char_type(__c); 29724: ++__extracted; 29724: __c = __in.rdbuf()->snextc(); 29724: } 29724: __str.append(__buf, __len); 29724: 29724: if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) 29724: __err |= __ios_base::eofbit; 29724: __in.width(0); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(__ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { 29724: 29724: 29724: 29724: __in._M_setstate(__ios_base::badbit); 29724: } 29724: } 29724: 29724: if (!__extracted) 29724: __err |= __ios_base::failbit; 29724: if (__err) 29724: __in.setstate(__err); 29724: return __in; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: getline(basic_istream<_CharT, _Traits>& __in, 29724: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 29724: { 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29724: typedef typename __istream_type::ios_base __ios_base; 29724: typedef typename __istream_type::int_type __int_type; 29724: typedef typename __string_type::size_type __size_type; 29724: 29724: __size_type __extracted = 0; 29724: const __size_type __n = __str.max_size(); 29724: typename __ios_base::iostate __err = __ios_base::goodbit; 29724: typename __istream_type::sentry __cerb(__in, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: __str.erase(); 29724: const __int_type __idelim = _Traits::to_int_type(__delim); 29724: const __int_type __eof = _Traits::eof(); 29724: __int_type __c = __in.rdbuf()->sgetc(); 29724: 29724: while (__extracted < __n 29724: && !_Traits::eq_int_type(__c, __eof) 29724: && !_Traits::eq_int_type(__c, __idelim)) 29724: { 29724: __str += _Traits::to_char_type(__c); 29724: ++__extracted; 29724: __c = __in.rdbuf()->snextc(); 29724: } 29724: 29724: if (_Traits::eq_int_type(__c, __eof)) 29724: __err |= __ios_base::eofbit; 29724: else if (_Traits::eq_int_type(__c, __idelim)) 29724: { 29724: ++__extracted; 29724: __in.rdbuf()->sbumpc(); 29724: } 29724: else 29724: __err |= __ios_base::failbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(__ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { 29724: 29724: 29724: 29724: __in._M_setstate(__ios_base::badbit); 29724: } 29724: } 29724: if (!__extracted) 29724: __err |= __ios_base::failbit; 29724: if (__err) 29724: __in.setstate(__err); 29724: return __in; 29724: } 29724: # 977 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: extern template class basic_string; 29724: # 990 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: extern template 29724: basic_istream& 29724: operator>>(basic_istream&, string&); 29724: extern template 29724: basic_ostream& 29724: operator<<(basic_ostream&, const string&); 29724: extern template 29724: basic_istream& 29724: getline(basic_istream&, string&, char); 29724: extern template 29724: basic_istream& 29724: getline(basic_istream&, string&); 29724: 29724: 29724: 29724: extern template class basic_string; 29724: # 1016 "/usr/include/c++/14/bits/basic_string.tcc" 3 29724: extern template 29724: basic_istream& 29724: operator>>(basic_istream&, wstring&); 29724: extern template 29724: basic_ostream& 29724: operator<<(basic_ostream&, const wstring&); 29724: extern template 29724: basic_istream& 29724: getline(basic_istream&, wstring&, wchar_t); 29724: extern template 29724: basic_istream& 29724: getline(basic_istream&, wstring&); 29724: 29724: 29724: 29724: 29724: } 29724: # 56 "/usr/include/c++/14/string" 2 3 29724: # 65 "/usr/include/c++/14/string" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 66 "/usr/include/c++/14/string" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr { 29724: template> 29724: using basic_string = std::basic_string<_CharT, _Traits, 29724: polymorphic_allocator<_CharT>>; 29724: using string = basic_string; 29724: 29724: 29724: 29724: using u16string = basic_string; 29724: using u32string = basic_string; 29724: using wstring = basic_string; 29724: } 29724: 29724: } 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/usr/include/c++/14/unordered_set" 1 3 29724: # 32 "/usr/include/c++/14/unordered_set" 3 29724: 29724: # 33 "/usr/include/c++/14/unordered_set" 3 29724: # 41 "/usr/include/c++/14/unordered_set" 3 29724: # 1 "/usr/include/c++/14/bits/unordered_set.h" 1 3 29724: # 38 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: using __uset_traits = __detail::_Hashtable_traits<_Cache, true, true>; 29724: 29724: template, 29724: typename _Pred = std::equal_to<_Value>, 29724: typename _Alloc = std::allocator<_Value>, 29724: typename _Tr = __uset_traits<__cache_default<_Value, _Hash>::value>> 29724: using __uset_hashtable = _Hashtable<_Value, _Value, _Alloc, 29724: __detail::_Identity, _Pred, _Hash, 29724: __detail::_Mod_range_hashing, 29724: __detail::_Default_ranged_hash, 29724: __detail::_Prime_rehash_policy, _Tr>; 29724: 29724: 29724: template 29724: using __umset_traits = __detail::_Hashtable_traits<_Cache, true, false>; 29724: 29724: template, 29724: typename _Pred = std::equal_to<_Value>, 29724: typename _Alloc = std::allocator<_Value>, 29724: typename _Tr = __umset_traits<__cache_default<_Value, _Hash>::value>> 29724: using __umset_hashtable = _Hashtable<_Value, _Value, _Alloc, 29724: __detail::_Identity, 29724: _Pred, _Hash, 29724: __detail::_Mod_range_hashing, 29724: __detail::_Default_ranged_hash, 29724: __detail::_Prime_rehash_policy, _Tr>; 29724: 29724: template 29724: class unordered_multiset; 29724: # 100 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template, 29724: typename _Pred = equal_to<_Value>, 29724: typename _Alloc = allocator<_Value>> 29724: class unordered_set 29724: { 29724: typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 29724: _Hashtable _M_h; 29724: 29724: public: 29724: 29724: 29724: 29724: typedef typename _Hashtable::key_type key_type; 29724: typedef typename _Hashtable::value_type value_type; 29724: typedef typename _Hashtable::hasher hasher; 29724: typedef typename _Hashtable::key_equal key_equal; 29724: typedef typename _Hashtable::allocator_type allocator_type; 29724: 29724: 29724: 29724: 29724: typedef typename _Hashtable::pointer pointer; 29724: typedef typename _Hashtable::const_pointer const_pointer; 29724: typedef typename _Hashtable::reference reference; 29724: typedef typename _Hashtable::const_reference const_reference; 29724: typedef typename _Hashtable::iterator iterator; 29724: typedef typename _Hashtable::const_iterator const_iterator; 29724: typedef typename _Hashtable::local_iterator local_iterator; 29724: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29724: typedef typename _Hashtable::size_type size_type; 29724: typedef typename _Hashtable::difference_type difference_type; 29724: 29724: 29724: 29724: using node_type = typename _Hashtable::node_type; 29724: using insert_return_type = typename _Hashtable::insert_return_type; 29724: 29724: 29724: 29724: 29724: 29724: unordered_set() = default; 29724: # 151 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: explicit 29724: unordered_set(size_type __n, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__n, __hf, __eql, __a) 29724: { } 29724: # 172 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: unordered_set(_InputIterator __first, _InputIterator __last, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__first, __last, __n, __hf, __eql, __a) 29724: { } 29724: 29724: 29724: unordered_set(const unordered_set&) = default; 29724: 29724: 29724: unordered_set(unordered_set&&) = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: unordered_set(const allocator_type& __a) 29724: : _M_h(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_set(const unordered_set& __uset, 29724: const allocator_type& __a) 29724: : _M_h(__uset._M_h, __a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_set(unordered_set&& __uset, 29724: const allocator_type& __a) 29724: noexcept( noexcept(_Hashtable(std::move(__uset._M_h), __a)) ) 29724: : _M_h(std::move(__uset._M_h), __a) 29724: { } 29724: # 228 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: unordered_set(initializer_list __l, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__l, __n, __hf, __eql, __a) 29724: { } 29724: 29724: unordered_set(size_type __n, const allocator_type& __a) 29724: : unordered_set(__n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_set(size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_set(__n, __hf, key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_set(_InputIterator __first, _InputIterator __last, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_set(_InputIterator __first, _InputIterator __last, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_set(__first, __last, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: unordered_set(initializer_list __l, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_set(__l, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_set(initializer_list __l, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_set(__l, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: 29724: unordered_set& 29724: operator=(const unordered_set&) = default; 29724: 29724: 29724: unordered_set& 29724: operator=(unordered_set&&) = default; 29724: # 290 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: unordered_set& 29724: operator=(initializer_list __l) 29724: { 29724: _M_h = __l; 29724: return *this; 29724: } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _M_h.get_allocator(); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_h.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_h.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_h.max_size(); } 29724: # 326 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: begin() noexcept 29724: { return _M_h.begin(); } 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_h.end(); } 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_h.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_h.end(); } 29724: # 382 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: std::pair 29724: emplace(_Args&&... __args) 29724: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29724: # 408 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29724: # 427 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: std::pair 29724: insert(const value_type& __x) 29724: { return _M_h.insert(__x); } 29724: 29724: std::pair 29724: insert(value_type&& __x) 29724: { return _M_h.insert(std::move(__x)); } 29724: # 456 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: insert(const_iterator __hint, const value_type& __x) 29724: { return _M_h.insert(__hint, __x); } 29724: 29724: iterator 29724: insert(const_iterator __hint, value_type&& __x) 29724: { return _M_h.insert(__hint, std::move(__x)); } 29724: # 474 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_h.insert(__first, __last); } 29724: # 486 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { _M_h.insert(__l); } 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_h.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __key) 29724: { return _M_h.extract(__key); } 29724: 29724: 29724: insert_return_type 29724: insert(node_type&& __nh) 29724: { return _M_h._M_reinsert_node(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator, node_type&& __nh) 29724: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 29724: # 529 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_h.erase(__position); } 29724: 29724: 29724: iterator 29724: erase(iterator __position) 29724: { return _M_h.erase(__position); } 29724: # 551 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_h.erase(__x); } 29724: # 569 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_h.erase(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_h.clear(); } 29724: # 592 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: swap(unordered_set& __x) 29724: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29724: { _M_h.swap(__x._M_h); } 29724: 29724: 29724: template 29724: friend class std::_Hash_merge_helper; 29724: 29724: template 29724: void 29724: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Hash_merge_helper; 29724: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Hash_merge_helper; 29724: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: hasher 29724: hash_function() const 29724: { return _M_h.hash_function(); } 29724: 29724: 29724: 29724: key_equal 29724: key_eq() const 29724: { return _M_h.key_eq(); } 29724: # 656 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_h.find(__x); } 29724: # 668 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_h.find(__x); } 29724: # 691 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_h.count(__x); } 29724: # 732 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_h.equal_range(__x); } 29724: # 744 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_h.equal_range(__x); } 29724: # 760 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: bucket_count() const noexcept 29724: { return _M_h.bucket_count(); } 29724: 29724: 29724: size_type 29724: max_bucket_count() const noexcept 29724: { return _M_h.max_bucket_count(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_size(size_type __n) const 29724: { return _M_h.bucket_size(__n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket(const key_type& __key) const 29724: { return _M_h.bucket(__key); } 29724: # 794 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: local_iterator 29724: begin(size_type __n) 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: begin(size_type __n) const 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: cbegin(size_type __n) const 29724: { return _M_h.cbegin(__n); } 29724: # 814 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: local_iterator 29724: end(size_type __n) 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: end(size_type __n) const 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: cend(size_type __n) const 29724: { return _M_h.cend(__n); } 29724: 29724: 29724: 29724: 29724: 29724: float 29724: load_factor() const noexcept 29724: { return _M_h.load_factor(); } 29724: 29724: 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_h.max_load_factor(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: max_load_factor(float __z) 29724: { _M_h.max_load_factor(__z); } 29724: # 855 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: rehash(size_type __n) 29724: { _M_h.rehash(__n); } 29724: # 866 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: reserve(size_type __n) 29724: { _M_h.reserve(__n); } 29724: 29724: template 29724: friend bool 29724: operator==(const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, 29724: const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&); 29724: }; 29724: 29724: 29724: 29724: template::value_type>, 29724: typename _Pred = 29724: equal_to::value_type>, 29724: typename _Allocator = 29724: allocator::value_type>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_set(_InputIterator, _InputIterator, 29724: unordered_set::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29724: -> unordered_set::value_type, 29724: _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename _Pred = equal_to<_Tp>, 29724: typename _Allocator = allocator<_Tp>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_set(initializer_list<_Tp>, 29724: unordered_set::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29724: -> unordered_set<_Tp, _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_set(_InputIterator, _InputIterator, 29724: unordered_set::size_type, _Allocator) 29724: -> unordered_set::value_type, 29724: hash< 29724: typename iterator_traits<_InputIterator>::value_type>, 29724: equal_to< 29724: typename iterator_traits<_InputIterator>::value_type>, 29724: _Allocator>; 29724: 29724: template, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_set(_InputIterator, _InputIterator, 29724: unordered_set::size_type, 29724: _Hash, _Allocator) 29724: -> unordered_set::value_type, 29724: _Hash, 29724: equal_to< 29724: typename iterator_traits<_InputIterator>::value_type>, 29724: _Allocator>; 29724: 29724: template> 29724: unordered_set(initializer_list<_Tp>, 29724: unordered_set::size_type, _Allocator) 29724: -> unordered_set<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_set(initializer_list<_Tp>, 29724: unordered_set::size_type, _Hash, _Allocator) 29724: -> unordered_set<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 29724: # 968 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template, 29724: typename _Pred = equal_to<_Value>, 29724: typename _Alloc = allocator<_Value>> 29724: class unordered_multiset 29724: { 29724: typedef __umset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 29724: _Hashtable _M_h; 29724: 29724: public: 29724: 29724: 29724: 29724: typedef typename _Hashtable::key_type key_type; 29724: typedef typename _Hashtable::value_type value_type; 29724: typedef typename _Hashtable::hasher hasher; 29724: typedef typename _Hashtable::key_equal key_equal; 29724: typedef typename _Hashtable::allocator_type allocator_type; 29724: 29724: 29724: 29724: 29724: typedef typename _Hashtable::pointer pointer; 29724: typedef typename _Hashtable::const_pointer const_pointer; 29724: typedef typename _Hashtable::reference reference; 29724: typedef typename _Hashtable::const_reference const_reference; 29724: typedef typename _Hashtable::iterator iterator; 29724: typedef typename _Hashtable::const_iterator const_iterator; 29724: typedef typename _Hashtable::local_iterator local_iterator; 29724: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29724: typedef typename _Hashtable::size_type size_type; 29724: typedef typename _Hashtable::difference_type difference_type; 29724: 29724: 29724: 29724: using node_type = typename _Hashtable::node_type; 29724: 29724: 29724: 29724: 29724: 29724: unordered_multiset() = default; 29724: # 1018 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: explicit 29724: unordered_multiset(size_type __n, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__n, __hf, __eql, __a) 29724: { } 29724: # 1039 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: unordered_multiset(_InputIterator __first, _InputIterator __last, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__first, __last, __n, __hf, __eql, __a) 29724: { } 29724: 29724: 29724: unordered_multiset(const unordered_multiset&) = default; 29724: 29724: 29724: unordered_multiset(unordered_multiset&&) = default; 29724: # 1065 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: unordered_multiset(initializer_list __l, 29724: size_type __n = 0, 29724: const hasher& __hf = hasher(), 29724: const key_equal& __eql = key_equal(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_h(__l, __n, __hf, __eql, __a) 29724: { } 29724: 29724: 29724: unordered_multiset& 29724: operator=(const unordered_multiset&) = default; 29724: 29724: 29724: unordered_multiset& 29724: operator=(unordered_multiset&&) = default; 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: unordered_multiset(const allocator_type& __a) 29724: : _M_h(__a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_multiset(const unordered_multiset& __umset, 29724: const allocator_type& __a) 29724: : _M_h(__umset._M_h, __a) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: unordered_multiset(unordered_multiset&& __umset, 29724: const allocator_type& __a) 29724: noexcept( noexcept(_Hashtable(std::move(__umset._M_h), __a)) ) 29724: : _M_h(std::move(__umset._M_h), __a) 29724: { } 29724: 29724: unordered_multiset(size_type __n, const allocator_type& __a) 29724: : unordered_multiset(__n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_multiset(size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multiset(__n, __hf, key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_multiset(_InputIterator __first, _InputIterator __last, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_multiset(__first, __last, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: template 29724: unordered_multiset(_InputIterator __first, _InputIterator __last, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multiset(__first, __last, __n, __hf, key_equal(), __a) 29724: { } 29724: 29724: unordered_multiset(initializer_list __l, 29724: size_type __n, 29724: const allocator_type& __a) 29724: : unordered_multiset(__l, __n, hasher(), key_equal(), __a) 29724: { } 29724: 29724: unordered_multiset(initializer_list __l, 29724: size_type __n, const hasher& __hf, 29724: const allocator_type& __a) 29724: : unordered_multiset(__l, __n, __hf, key_equal(), __a) 29724: { } 29724: # 1157 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: unordered_multiset& 29724: operator=(initializer_list __l) 29724: { 29724: _M_h = __l; 29724: return *this; 29724: } 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return _M_h.get_allocator(); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_h.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_h.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_h.max_size(); } 29724: # 1193 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: begin() noexcept 29724: { return _M_h.begin(); } 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_h.end(); } 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_h.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_h.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_h.end(); } 29724: # 1241 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: iterator 29724: emplace(_Args&&... __args) 29724: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29724: # 1263 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29724: # 1276 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: insert(const value_type& __x) 29724: { return _M_h.insert(__x); } 29724: 29724: iterator 29724: insert(value_type&& __x) 29724: { return _M_h.insert(std::move(__x)); } 29724: # 1302 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: insert(const_iterator __hint, const value_type& __x) 29724: { return _M_h.insert(__hint, __x); } 29724: 29724: iterator 29724: insert(const_iterator __hint, value_type&& __x) 29724: { return _M_h.insert(__hint, std::move(__x)); } 29724: # 1319 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_h.insert(__first, __last); } 29724: # 1331 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { _M_h.insert(__l); } 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_h.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __key) 29724: { return _M_h.extract(__key); } 29724: 29724: 29724: iterator 29724: insert(node_type&& __nh) 29724: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 29724: # 1375 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_h.erase(__position); } 29724: 29724: 29724: iterator 29724: erase(iterator __position) 29724: { return _M_h.erase(__position); } 29724: # 1398 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_h.erase(__x); } 29724: # 1418 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_h.erase(__first, __last); } 29724: # 1429 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: clear() noexcept 29724: { _M_h.clear(); } 29724: # 1442 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: swap(unordered_multiset& __x) 29724: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29724: { _M_h.swap(__x._M_h); } 29724: 29724: 29724: template 29724: friend class std::_Hash_merge_helper; 29724: 29724: template 29724: void 29724: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper 29724: = _Hash_merge_helper; 29724: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 29724: { 29724: using _Merge_helper 29724: = _Hash_merge_helper; 29724: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: hasher 29724: hash_function() const 29724: { return _M_h.hash_function(); } 29724: 29724: 29724: 29724: key_equal 29724: key_eq() const 29724: { return _M_h.key_eq(); } 29724: # 1508 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_h.find(__x); } 29724: # 1520 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_h.find(__x); } 29724: # 1539 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_h.count(__x); } 29724: # 1577 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_h.equal_range(__x); } 29724: # 1589 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_h.equal_range(__x); } 29724: # 1605 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: size_type 29724: bucket_count() const noexcept 29724: { return _M_h.bucket_count(); } 29724: 29724: 29724: size_type 29724: max_bucket_count() const noexcept 29724: { return _M_h.max_bucket_count(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket_size(size_type __n) const 29724: { return _M_h.bucket_size(__n); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_type 29724: bucket(const key_type& __key) const 29724: { return _M_h.bucket(__key); } 29724: # 1639 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: local_iterator 29724: begin(size_type __n) 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: begin(size_type __n) const 29724: { return _M_h.begin(__n); } 29724: 29724: const_local_iterator 29724: cbegin(size_type __n) const 29724: { return _M_h.cbegin(__n); } 29724: # 1659 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: local_iterator 29724: end(size_type __n) 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: end(size_type __n) const 29724: { return _M_h.end(__n); } 29724: 29724: const_local_iterator 29724: cend(size_type __n) const 29724: { return _M_h.cend(__n); } 29724: 29724: 29724: 29724: 29724: 29724: float 29724: load_factor() const noexcept 29724: { return _M_h.load_factor(); } 29724: 29724: 29724: 29724: float 29724: max_load_factor() const noexcept 29724: { return _M_h.max_load_factor(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: max_load_factor(float __z) 29724: { _M_h.max_load_factor(__z); } 29724: # 1700 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: rehash(size_type __n) 29724: { _M_h.rehash(__n); } 29724: # 1711 "/usr/include/c++/14/bits/unordered_set.h" 3 29724: void 29724: reserve(size_type __n) 29724: { _M_h.reserve(__n); } 29724: 29724: template 29724: friend bool 29724: operator==(const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, 29724: const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&); 29724: }; 29724: 29724: 29724: 29724: 29724: template::value_type>, 29724: typename _Pred = 29724: equal_to::value_type>, 29724: typename _Allocator = 29724: allocator::value_type>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multiset(_InputIterator, _InputIterator, 29724: unordered_multiset::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), 29724: _Allocator = _Allocator()) 29724: -> unordered_multiset::value_type, 29724: _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename _Pred = equal_to<_Tp>, 29724: typename _Allocator = allocator<_Tp>, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireNotAllocator<_Pred>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multiset(initializer_list<_Tp>, 29724: unordered_multiset::size_type = {}, 29724: _Hash = _Hash(), _Pred = _Pred(), 29724: _Allocator = _Allocator()) 29724: -> unordered_multiset<_Tp, _Hash, _Pred, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multiset(_InputIterator, _InputIterator, 29724: unordered_multiset::size_type, _Allocator) 29724: -> unordered_multiset::value_type, 29724: hash::value_type>, 29724: equal_to::value_type>, 29724: _Allocator>; 29724: 29724: template, 29724: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multiset(_InputIterator, _InputIterator, 29724: unordered_multiset::size_type, 29724: _Hash, _Allocator) 29724: -> unordered_multiset::value_type, 29724: _Hash, 29724: equal_to< 29724: typename 29724: iterator_traits<_InputIterator>::value_type>, 29724: _Allocator>; 29724: 29724: template> 29724: unordered_multiset(initializer_list<_Tp>, 29724: unordered_multiset::size_type, _Allocator) 29724: -> unordered_multiset<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: unordered_multiset(initializer_list<_Tp>, 29724: unordered_multiset::size_type, _Hash, _Allocator) 29724: -> unordered_multiset<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29724: unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: template 29724: inline void 29724: swap(unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29724: unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: template 29724: inline bool 29724: operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29724: { return __x._M_h._M_equal(__y._M_h); } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29724: { return __x._M_h._M_equal(__y._M_h); } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29724: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Hash_merge_helper< 29724: std::unordered_set<_Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> 29724: { 29724: private: 29724: template 29724: using unordered_set = std::unordered_set<_Tp...>; 29724: template 29724: using unordered_multiset = std::unordered_multiset<_Tp...>; 29724: 29724: friend unordered_set<_Val, _Hash1, _Eq1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 29724: { return __set._M_h; } 29724: 29724: static auto& 29724: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 29724: { return __set._M_h; } 29724: }; 29724: 29724: 29724: template 29724: struct _Hash_merge_helper< 29724: std::unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>, 29724: _Hash2, _Eq2> 29724: { 29724: private: 29724: template 29724: using unordered_set = std::unordered_set<_Tp...>; 29724: template 29724: using unordered_multiset = std::unordered_multiset<_Tp...>; 29724: 29724: friend unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 29724: { return __set._M_h; } 29724: 29724: static auto& 29724: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 29724: { return __set._M_h; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 42 "/usr/include/c++/14/unordered_set" 2 3 29724: # 54 "/usr/include/c++/14/unordered_set" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 55 "/usr/include/c++/14/unordered_set" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template, 29724: typename _Pred = std::equal_to<_Key>> 29724: using unordered_set 29724: = std::unordered_set<_Key, _Hash, _Pred, 29724: polymorphic_allocator<_Key>>; 29724: template, 29724: typename _Pred = std::equal_to<_Key>> 29724: using unordered_multiset 29724: = std::unordered_multiset<_Key, _Hash, _Pred, 29724: polymorphic_allocator<_Key>>; 29724: } 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/optional" 1 3 29724: # 33 "/usr/include/c++/14/optional" 3 29724: 29724: # 34 "/usr/include/c++/14/optional" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 38 "/usr/include/c++/14/optional" 2 3 29724: # 58 "/usr/include/c++/14/optional" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class optional; 29724: 29724: 29724: struct nullopt_t 29724: { 29724: 29724: 29724: 29724: 29724: 29724: enum class _Construct { _Token }; 29724: 29724: 29724: explicit constexpr nullopt_t(_Construct) noexcept { } 29724: }; 29724: 29724: 29724: inline constexpr nullopt_t nullopt { nullopt_t::_Construct::_Token }; 29724: 29724: template struct _Optional_func { _Fn& _M_f; }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class bad_optional_access : public exception 29724: { 29724: public: 29724: bad_optional_access() = default; 29724: virtual ~bad_optional_access() = default; 29724: 29724: const char* what() const noexcept override 29724: { return "bad optional access"; } 29724: }; 29724: 29724: 29724: [[__noreturn__]] inline void 29724: __throw_bad_optional_access() 29724: { (throw (bad_optional_access())); } 29724: 29724: 29724: 29724: template 29724: struct _Optional_payload_base 29724: { 29724: using _Stored_type = remove_const_t<_Tp>; 29724: 29724: _Optional_payload_base() = default; 29724: ~_Optional_payload_base() = default; 29724: 29724: template 29724: constexpr 29724: _Optional_payload_base(in_place_t __tag, _Args&&... __args) 29724: : _M_payload(__tag, std::forward<_Args>(__args)...), 29724: _M_engaged(true) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Optional_payload_base(std::initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : _M_payload(__il, std::forward<_Args>(__args)...), 29724: _M_engaged(true) 29724: { } 29724: 29724: 29724: 29724: constexpr 29724: _Optional_payload_base(bool , 29724: const _Optional_payload_base& __other) 29724: { 29724: if (__other._M_engaged) 29724: this->_M_construct(__other._M_get()); 29724: } 29724: 29724: 29724: 29724: constexpr 29724: _Optional_payload_base(bool , 29724: _Optional_payload_base&& __other) 29724: { 29724: if (__other._M_engaged) 29724: this->_M_construct(std::move(__other._M_get())); 29724: } 29724: 29724: 29724: 29724: _Optional_payload_base(const _Optional_payload_base&) = default; 29724: 29724: 29724: 29724: _Optional_payload_base(_Optional_payload_base&&) = default; 29724: 29724: _Optional_payload_base& 29724: operator=(const _Optional_payload_base&) = default; 29724: 29724: _Optional_payload_base& 29724: operator=(_Optional_payload_base&&) = default; 29724: 29724: 29724: constexpr void 29724: _M_copy_assign(const _Optional_payload_base& __other) 29724: { 29724: if (this->_M_engaged && __other._M_engaged) 29724: this->_M_get() = __other._M_get(); 29724: else 29724: { 29724: if (__other._M_engaged) 29724: this->_M_construct(__other._M_get()); 29724: else 29724: this->_M_reset(); 29724: } 29724: } 29724: 29724: 29724: constexpr void 29724: _M_move_assign(_Optional_payload_base&& __other) 29724: noexcept(__and_v, 29724: is_nothrow_move_assignable<_Tp>>) 29724: { 29724: if (this->_M_engaged && __other._M_engaged) 29724: this->_M_get() = std::move(__other._M_get()); 29724: else 29724: { 29724: if (__other._M_engaged) 29724: this->_M_construct(std::move(__other._M_get())); 29724: else 29724: this->_M_reset(); 29724: } 29724: } 29724: 29724: struct _Empty_byte { }; 29724: 29724: template> 29724: union _Storage 29724: { 29724: constexpr _Storage() noexcept : _M_empty() { } 29724: 29724: template 29724: constexpr 29724: _Storage(in_place_t, _Args&&... __args) 29724: : _M_value(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 29724: : _M_value(__il, std::forward<_Args>(__args)...) 29724: { } 29724: # 228 "/usr/include/c++/14/optional" 3 29724: _Empty_byte _M_empty; 29724: _Up _M_value; 29724: }; 29724: 29724: template 29724: union _Storage<_Up, false> 29724: { 29724: constexpr _Storage() noexcept : _M_empty() { } 29724: 29724: template 29724: constexpr 29724: _Storage(in_place_t, _Args&&... __args) 29724: : _M_value(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 29724: : _M_value(__il, std::forward<_Args>(__args)...) 29724: { } 29724: # 259 "/usr/include/c++/14/optional" 3 29724: ~_Storage() { } 29724: 29724: _Empty_byte _M_empty; 29724: _Up _M_value; 29724: }; 29724: 29724: _Storage<_Stored_type> _M_payload; 29724: 29724: bool _M_engaged = false; 29724: 29724: template 29724: constexpr void 29724: _M_construct(_Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 29724: { 29724: std::_Construct(std::__addressof(this->_M_payload._M_value), 29724: std::forward<_Args>(__args)...); 29724: this->_M_engaged = true; 29724: } 29724: 29724: constexpr void 29724: _M_destroy() noexcept 29724: { 29724: _M_engaged = false; 29724: _M_payload._M_value.~_Stored_type(); 29724: } 29724: # 301 "/usr/include/c++/14/optional" 3 29724: constexpr _Tp& 29724: _M_get() noexcept 29724: { return this->_M_payload._M_value; } 29724: 29724: constexpr const _Tp& 29724: _M_get() const noexcept 29724: { return this->_M_payload._M_value; } 29724: 29724: 29724: constexpr void 29724: _M_reset() noexcept 29724: { 29724: if (this->_M_engaged) 29724: _M_destroy(); 29724: else 29724: this->_M_engaged = false; 29724: } 29724: }; 29724: 29724: 29724: template , 29724: bool = 29724: is_trivially_copy_assignable_v<_Tp> 29724: && is_trivially_copy_constructible_v<_Tp>, 29724: bool = 29724: is_trivially_move_assignable_v<_Tp> 29724: && is_trivially_move_constructible_v<_Tp>> 29724: struct _Optional_payload; 29724: 29724: 29724: template 29724: struct _Optional_payload<_Tp, true, true, true> 29724: : _Optional_payload_base<_Tp> 29724: { 29724: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29724: 29724: _Optional_payload() = default; 29724: }; 29724: 29724: 29724: template 29724: struct _Optional_payload<_Tp, true, false, true> 29724: : _Optional_payload_base<_Tp> 29724: { 29724: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29724: 29724: _Optional_payload() = default; 29724: ~_Optional_payload() = default; 29724: _Optional_payload(const _Optional_payload&) = default; 29724: _Optional_payload(_Optional_payload&&) = default; 29724: _Optional_payload& operator=(_Optional_payload&&) = default; 29724: 29724: 29724: constexpr 29724: _Optional_payload& 29724: operator=(const _Optional_payload& __other) 29724: { 29724: this->_M_copy_assign(__other); 29724: return *this; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Optional_payload<_Tp, true, true, false> 29724: : _Optional_payload_base<_Tp> 29724: { 29724: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29724: 29724: _Optional_payload() = default; 29724: ~_Optional_payload() = default; 29724: _Optional_payload(const _Optional_payload&) = default; 29724: _Optional_payload(_Optional_payload&&) = default; 29724: _Optional_payload& operator=(const _Optional_payload&) = default; 29724: 29724: 29724: constexpr 29724: _Optional_payload& 29724: operator=(_Optional_payload&& __other) 29724: noexcept(__and_v, 29724: is_nothrow_move_assignable<_Tp>>) 29724: { 29724: this->_M_move_assign(std::move(__other)); 29724: return *this; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Optional_payload<_Tp, true, false, false> 29724: : _Optional_payload_base<_Tp> 29724: { 29724: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29724: 29724: _Optional_payload() = default; 29724: ~_Optional_payload() = default; 29724: _Optional_payload(const _Optional_payload&) = default; 29724: _Optional_payload(_Optional_payload&&) = default; 29724: 29724: 29724: constexpr 29724: _Optional_payload& 29724: operator=(const _Optional_payload& __other) 29724: { 29724: this->_M_copy_assign(__other); 29724: return *this; 29724: } 29724: 29724: 29724: constexpr 29724: _Optional_payload& 29724: operator=(_Optional_payload&& __other) 29724: noexcept(__and_v, 29724: is_nothrow_move_assignable<_Tp>>) 29724: { 29724: this->_M_move_assign(std::move(__other)); 29724: return *this; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Optional_payload<_Tp, false, _Copy, _Move> 29724: : _Optional_payload<_Tp, true, false, false> 29724: { 29724: 29724: using _Optional_payload<_Tp, true, false, false>::_Optional_payload; 29724: _Optional_payload() = default; 29724: _Optional_payload(const _Optional_payload&) = default; 29724: _Optional_payload(_Optional_payload&&) = default; 29724: _Optional_payload& operator=(const _Optional_payload&) = default; 29724: _Optional_payload& operator=(_Optional_payload&&) = default; 29724: 29724: 29724: ~_Optional_payload() { this->_M_reset(); } 29724: }; 29724: 29724: 29724: 29724: template 29724: class _Optional_base_impl 29724: { 29724: protected: 29724: using _Stored_type = remove_const_t<_Tp>; 29724: 29724: 29724: 29724: template 29724: constexpr void 29724: _M_construct(_Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 29724: { 29724: static_cast<_Dp*>(this)->_M_payload._M_construct( 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: constexpr void 29724: _M_destruct() noexcept 29724: { static_cast<_Dp*>(this)->_M_payload._M_destroy(); } 29724: 29724: 29724: constexpr void 29724: _M_reset() noexcept 29724: { static_cast<_Dp*>(this)->_M_payload._M_reset(); } 29724: 29724: constexpr bool _M_is_engaged() const noexcept 29724: { return static_cast(this)->_M_payload._M_engaged; } 29724: 29724: 29724: constexpr _Tp& 29724: _M_get() noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) std::__glibcxx_assert_fail(); } while (false); 29724: return static_cast<_Dp*>(this)->_M_payload._M_get(); 29724: } 29724: 29724: constexpr const _Tp& 29724: _M_get() const noexcept 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) std::__glibcxx_assert_fail(); } while (false); 29724: return static_cast(this)->_M_payload._M_get(); 29724: } 29724: }; 29724: # 505 "/usr/include/c++/14/optional" 3 29724: template, 29724: bool = is_trivially_move_constructible_v<_Tp>> 29724: struct _Optional_base 29724: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29724: { 29724: 29724: constexpr _Optional_base() = default; 29724: 29724: 29724: template, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, _Args&&... __args) 29724: : _M_payload(in_place, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template&, 29724: _Args...>, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, 29724: initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: 29724: constexpr 29724: _Optional_base(const _Optional_base& __other) 29724: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 29724: { } 29724: 29724: constexpr 29724: _Optional_base(_Optional_base&& __other) 29724: noexcept(is_nothrow_move_constructible_v<_Tp>) 29724: : _M_payload(__other._M_payload._M_engaged, 29724: std::move(__other._M_payload)) 29724: { } 29724: 29724: 29724: _Optional_base& operator=(const _Optional_base&) = default; 29724: _Optional_base& operator=(_Optional_base&&) = default; 29724: 29724: _Optional_payload<_Tp> _M_payload; 29724: }; 29724: 29724: template 29724: struct _Optional_base<_Tp, false, true> 29724: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29724: { 29724: 29724: constexpr _Optional_base() = default; 29724: 29724: 29724: template, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, _Args&&... __args) 29724: : _M_payload(in_place, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template&, 29724: _Args...>, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, 29724: initializer_list<_Up> __il, 29724: _Args... __args) 29724: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: 29724: constexpr _Optional_base(const _Optional_base& __other) 29724: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 29724: { } 29724: 29724: constexpr _Optional_base(_Optional_base&& __other) = default; 29724: 29724: 29724: _Optional_base& operator=(const _Optional_base&) = default; 29724: _Optional_base& operator=(_Optional_base&&) = default; 29724: 29724: _Optional_payload<_Tp> _M_payload; 29724: }; 29724: 29724: template 29724: struct _Optional_base<_Tp, true, false> 29724: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29724: { 29724: 29724: constexpr _Optional_base() = default; 29724: 29724: 29724: template, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, _Args&&... __args) 29724: : _M_payload(in_place, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template&, 29724: _Args...>, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, 29724: initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: 29724: constexpr _Optional_base(const _Optional_base& __other) = default; 29724: 29724: constexpr 29724: _Optional_base(_Optional_base&& __other) 29724: noexcept(is_nothrow_move_constructible_v<_Tp>) 29724: : _M_payload(__other._M_payload._M_engaged, 29724: std::move(__other._M_payload)) 29724: { } 29724: 29724: 29724: _Optional_base& operator=(const _Optional_base&) = default; 29724: _Optional_base& operator=(_Optional_base&&) = default; 29724: 29724: _Optional_payload<_Tp> _M_payload; 29724: }; 29724: 29724: template 29724: struct _Optional_base<_Tp, true, true> 29724: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29724: { 29724: 29724: constexpr _Optional_base() = default; 29724: 29724: 29724: template, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, _Args&&... __args) 29724: : _M_payload(in_place, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template&, 29724: _Args...>, bool> = false> 29724: constexpr explicit 29724: _Optional_base(in_place_t, 29724: initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: 29724: constexpr _Optional_base(const _Optional_base& __other) = default; 29724: constexpr _Optional_base(_Optional_base&& __other) = default; 29724: 29724: 29724: _Optional_base& operator=(const _Optional_base&) = default; 29724: _Optional_base& operator=(_Optional_base&&) = default; 29724: 29724: _Optional_payload<_Tp> _M_payload; 29724: }; 29724: 29724: template 29724: class optional; 29724: 29724: template 29724: inline constexpr bool __is_optional_v = false; 29724: template 29724: inline constexpr bool __is_optional_v> = true; 29724: 29724: template 29724: using __converts_from_optional = 29724: __or_&>, 29724: is_constructible<_Tp, optional<_Up>&>, 29724: is_constructible<_Tp, const optional<_Up>&&>, 29724: is_constructible<_Tp, optional<_Up>&&>, 29724: is_convertible&, _Tp>, 29724: is_convertible&, _Tp>, 29724: is_convertible&&, _Tp>, 29724: is_convertible&&, _Tp>>; 29724: 29724: template 29724: using __assigns_from_optional = 29724: __or_&>, 29724: is_assignable<_Tp&, optional<_Up>&>, 29724: is_assignable<_Tp&, const optional<_Up>&&>, 29724: is_assignable<_Tp&, optional<_Up>&&>>; 29724: 29724: 29724: 29724: 29724: template 29724: class optional 29724: : private _Optional_base<_Tp>, 29724: private _Enable_copy_move< 29724: 29724: is_copy_constructible_v<_Tp>, 29724: 29724: __and_v, is_copy_assignable<_Tp>>, 29724: 29724: is_move_constructible_v<_Tp>, 29724: 29724: __and_v, is_move_assignable<_Tp>>, 29724: 29724: optional<_Tp>> 29724: { 29724: static_assert(!is_same_v, nullopt_t>); 29724: static_assert(!is_same_v, in_place_t>); 29724: static_assert(is_object_v<_Tp> && !is_array_v<_Tp>); 29724: 29724: private: 29724: using _Base = _Optional_base<_Tp>; 29724: 29724: 29724: template 29724: using __not_self = __not_>>; 29724: template 29724: using __not_tag = __not_>>; 29724: template 29724: using _Requires = enable_if_t<__and_v<_Cond...>, bool>; 29724: 29724: public: 29724: using value_type = _Tp; 29724: 29724: constexpr optional() noexcept { } 29724: 29724: constexpr optional(nullopt_t) noexcept { } 29724: 29724: 29724: template, __not_tag<_Up>, 29724: is_constructible<_Tp, _Up>, 29724: is_convertible<_Up, _Tp>> = true> 29724: constexpr 29724: optional(_Up&& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29724: : _Base(std::in_place, std::forward<_Up>(__t)) { } 29724: 29724: template, __not_tag<_Up>, 29724: is_constructible<_Tp, _Up>, 29724: __not_>> = false> 29724: explicit constexpr 29724: optional(_Up&& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29724: : _Base(std::in_place, std::forward<_Up>(__t)) { } 29724: 29724: template>, 29724: is_constructible<_Tp, const _Up&>, 29724: is_convertible, 29724: __not_<__converts_from_optional<_Tp, _Up>>> = true> 29724: constexpr 29724: optional(const optional<_Up>& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 29724: { 29724: if (__t) 29724: emplace(*__t); 29724: } 29724: 29724: template>, 29724: is_constructible<_Tp, const _Up&>, 29724: __not_>, 29724: __not_<__converts_from_optional<_Tp, _Up>>> = false> 29724: explicit constexpr 29724: optional(const optional<_Up>& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 29724: { 29724: if (__t) 29724: emplace(*__t); 29724: } 29724: 29724: template>, 29724: is_constructible<_Tp, _Up>, 29724: is_convertible<_Up, _Tp>, 29724: __not_<__converts_from_optional<_Tp, _Up>>> = true> 29724: constexpr 29724: optional(optional<_Up>&& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29724: { 29724: if (__t) 29724: emplace(std::move(*__t)); 29724: } 29724: 29724: template>, 29724: is_constructible<_Tp, _Up>, 29724: __not_>, 29724: __not_<__converts_from_optional<_Tp, _Up>>> = false> 29724: explicit constexpr 29724: optional(optional<_Up>&& __t) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29724: { 29724: if (__t) 29724: emplace(std::move(*__t)); 29724: } 29724: 29724: template> = false> 29724: explicit constexpr 29724: optional(in_place_t, _Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29724: : _Base(std::in_place, std::forward<_Args>(__args)...) { } 29724: 29724: template&, 29724: _Args...>> = false> 29724: explicit constexpr 29724: optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 29724: _Args...>) 29724: : _Base(std::in_place, __il, std::forward<_Args>(__args)...) { } 29724: 29724: 29724: 29724: optional& 29724: operator=(nullopt_t) noexcept 29724: { 29724: this->_M_reset(); 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: enable_if_t<__and_v<__not_self<_Up>, 29724: __not_<__and_, 29724: is_same<_Tp, decay_t<_Up>>>>, 29724: is_constructible<_Tp, _Up>, 29724: is_assignable<_Tp&, _Up>>, 29724: optional&> 29724: operator=(_Up&& __u) 29724: noexcept(__and_v, 29724: is_nothrow_assignable<_Tp&, _Up>>) 29724: { 29724: if (this->_M_is_engaged()) 29724: this->_M_get() = std::forward<_Up>(__u); 29724: else 29724: this->_M_construct(std::forward<_Up>(__u)); 29724: 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: enable_if_t<__and_v<__not_>, 29724: is_constructible<_Tp, const _Up&>, 29724: is_assignable<_Tp&, const _Up&>, 29724: __not_<__converts_from_optional<_Tp, _Up>>, 29724: __not_<__assigns_from_optional<_Tp, _Up>>>, 29724: optional&> 29724: operator=(const optional<_Up>& __u) 29724: noexcept(__and_v, 29724: is_nothrow_assignable<_Tp&, const _Up&>>) 29724: { 29724: if (__u) 29724: { 29724: if (this->_M_is_engaged()) 29724: this->_M_get() = *__u; 29724: else 29724: this->_M_construct(*__u); 29724: } 29724: else 29724: { 29724: this->_M_reset(); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: enable_if_t<__and_v<__not_>, 29724: is_constructible<_Tp, _Up>, 29724: is_assignable<_Tp&, _Up>, 29724: __not_<__converts_from_optional<_Tp, _Up>>, 29724: __not_<__assigns_from_optional<_Tp, _Up>>>, 29724: optional&> 29724: operator=(optional<_Up>&& __u) 29724: noexcept(__and_v, 29724: is_nothrow_assignable<_Tp&, _Up>>) 29724: { 29724: if (__u) 29724: { 29724: if (this->_M_is_engaged()) 29724: this->_M_get() = std::move(*__u); 29724: else 29724: this->_M_construct(std::move(*__u)); 29724: } 29724: else 29724: { 29724: this->_M_reset(); 29724: } 29724: 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: enable_if_t, _Tp&> 29724: emplace(_Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29724: { 29724: this->_M_reset(); 29724: this->_M_construct(std::forward<_Args>(__args)...); 29724: return this->_M_get(); 29724: } 29724: 29724: template 29724: 29724: enable_if_t&, _Args...>, 29724: _Tp&> 29724: emplace(initializer_list<_Up> __il, _Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 29724: _Args...>) 29724: { 29724: this->_M_reset(); 29724: this->_M_construct(__il, std::forward<_Args>(__args)...); 29724: return this->_M_get(); 29724: } 29724: 29724: 29724: 29724: 29724: void 29724: swap(optional& __other) 29724: noexcept(is_nothrow_move_constructible_v<_Tp> 29724: && is_nothrow_swappable_v<_Tp>) 29724: { 29724: using std::swap; 29724: 29724: if (this->_M_is_engaged() && __other._M_is_engaged()) 29724: swap(this->_M_get(), __other._M_get()); 29724: else if (this->_M_is_engaged()) 29724: { 29724: __other._M_construct(std::move(this->_M_get())); 29724: this->_M_destruct(); 29724: } 29724: else if (__other._M_is_engaged()) 29724: { 29724: this->_M_construct(std::move(__other._M_get())); 29724: __other._M_destruct(); 29724: } 29724: } 29724: 29724: 29724: constexpr const _Tp* 29724: operator->() const noexcept 29724: { return std::__addressof(this->_M_get()); } 29724: 29724: constexpr _Tp* 29724: operator->() noexcept 29724: { return std::__addressof(this->_M_get()); } 29724: 29724: constexpr const _Tp& 29724: operator*() const& noexcept 29724: { return this->_M_get(); } 29724: 29724: constexpr _Tp& 29724: operator*()& noexcept 29724: { return this->_M_get(); } 29724: 29724: constexpr _Tp&& 29724: operator*()&& noexcept 29724: { return std::move(this->_M_get()); } 29724: 29724: constexpr const _Tp&& 29724: operator*() const&& noexcept 29724: { return std::move(this->_M_get()); } 29724: 29724: constexpr explicit operator bool() const noexcept 29724: { return this->_M_is_engaged(); } 29724: 29724: constexpr bool has_value() const noexcept 29724: { return this->_M_is_engaged(); } 29724: 29724: constexpr const _Tp& 29724: value() const& 29724: { 29724: if (this->_M_is_engaged()) 29724: return this->_M_get(); 29724: __throw_bad_optional_access(); 29724: } 29724: 29724: constexpr _Tp& 29724: value()& 29724: { 29724: if (this->_M_is_engaged()) 29724: return this->_M_get(); 29724: __throw_bad_optional_access(); 29724: } 29724: 29724: constexpr _Tp&& 29724: value()&& 29724: { 29724: if (this->_M_is_engaged()) 29724: return std::move(this->_M_get()); 29724: __throw_bad_optional_access(); 29724: } 29724: 29724: constexpr const _Tp&& 29724: value() const&& 29724: { 29724: if (this->_M_is_engaged()) 29724: return std::move(this->_M_get()); 29724: __throw_bad_optional_access(); 29724: } 29724: 29724: template 29724: constexpr _Tp 29724: value_or(_Up&& __u) const& 29724: { 29724: static_assert(is_copy_constructible_v<_Tp>); 29724: static_assert(is_convertible_v<_Up&&, _Tp>); 29724: 29724: if (this->_M_is_engaged()) 29724: return this->_M_get(); 29724: else 29724: return static_cast<_Tp>(std::forward<_Up>(__u)); 29724: } 29724: 29724: template 29724: constexpr _Tp 29724: value_or(_Up&& __u) && 29724: { 29724: static_assert(is_move_constructible_v<_Tp>); 29724: static_assert(is_convertible_v<_Up&&, _Tp>); 29724: 29724: if (this->_M_is_engaged()) 29724: return std::move(this->_M_get()); 29724: else 29724: return static_cast<_Tp>(std::forward<_Up>(__u)); 29724: } 29724: # 1180 "/usr/include/c++/14/optional" 3 29724: void reset() noexcept { this->_M_reset(); } 29724: 29724: private: 29724: # 1193 "/usr/include/c++/14/optional" 3 29724: }; 29724: 29724: template 29724: using __optional_relop_t = 29724: enable_if_t::value, bool>; 29724: 29724: template 29724: using __optional_eq_t = __optional_relop_t< 29724: decltype(std::declval() == std::declval()) 29724: >; 29724: 29724: template 29724: using __optional_ne_t = __optional_relop_t< 29724: decltype(std::declval() != std::declval()) 29724: >; 29724: 29724: template 29724: using __optional_lt_t = __optional_relop_t< 29724: decltype(std::declval() < std::declval()) 29724: >; 29724: 29724: template 29724: using __optional_gt_t = __optional_relop_t< 29724: decltype(std::declval() > std::declval()) 29724: >; 29724: 29724: template 29724: using __optional_le_t = __optional_relop_t< 29724: decltype(std::declval() <= std::declval()) 29724: >; 29724: 29724: template 29724: using __optional_ge_t = __optional_relop_t< 29724: decltype(std::declval() >= std::declval()) 29724: >; 29724: 29724: 29724: template 29724: constexpr auto 29724: operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_eq_t<_Tp, _Up> 29724: { 29724: return static_cast(__lhs) == static_cast(__rhs) 29724: && (!__lhs || *__lhs == *__rhs); 29724: } 29724: 29724: template 29724: constexpr auto 29724: operator!=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_ne_t<_Tp, _Up> 29724: { 29724: return static_cast(__lhs) != static_cast(__rhs) 29724: || (static_cast(__lhs) && *__lhs != *__rhs); 29724: } 29724: 29724: template 29724: constexpr auto 29724: operator<(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_lt_t<_Tp, _Up> 29724: { 29724: return static_cast(__rhs) && (!__lhs || *__lhs < *__rhs); 29724: } 29724: 29724: template 29724: constexpr auto 29724: operator>(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_gt_t<_Tp, _Up> 29724: { 29724: return static_cast(__lhs) && (!__rhs || *__lhs > *__rhs); 29724: } 29724: 29724: template 29724: constexpr auto 29724: operator<=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_le_t<_Tp, _Up> 29724: { 29724: return !__lhs || (static_cast(__rhs) && *__lhs <= *__rhs); 29724: } 29724: 29724: template 29724: constexpr auto 29724: operator>=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29724: -> __optional_ge_t<_Tp, _Up> 29724: { 29724: return !__rhs || (static_cast(__lhs) && *__lhs >= *__rhs); 29724: } 29724: # 1290 "/usr/include/c++/14/optional" 3 29724: template 29724: constexpr bool 29724: operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept 29724: { return !__lhs; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr bool 29724: operator==(nullopt_t, const optional<_Tp>& __rhs) noexcept 29724: { return !__rhs; } 29724: 29724: template 29724: constexpr bool 29724: operator!=(const optional<_Tp>& __lhs, nullopt_t) noexcept 29724: { return static_cast(__lhs); } 29724: 29724: template 29724: constexpr bool 29724: operator!=(nullopt_t, const optional<_Tp>& __rhs) noexcept 29724: { return static_cast(__rhs); } 29724: 29724: template 29724: constexpr bool 29724: operator<(const optional<_Tp>& , nullopt_t) noexcept 29724: { return false; } 29724: 29724: template 29724: constexpr bool 29724: operator<(nullopt_t, const optional<_Tp>& __rhs) noexcept 29724: { return static_cast(__rhs); } 29724: 29724: template 29724: constexpr bool 29724: operator>(const optional<_Tp>& __lhs, nullopt_t) noexcept 29724: { return static_cast(__lhs); } 29724: 29724: template 29724: constexpr bool 29724: operator>(nullopt_t, const optional<_Tp>& ) noexcept 29724: { return false; } 29724: 29724: template 29724: constexpr bool 29724: operator<=(const optional<_Tp>& __lhs, nullopt_t) noexcept 29724: { return !__lhs; } 29724: 29724: template 29724: constexpr bool 29724: operator<=(nullopt_t, const optional<_Tp>& ) noexcept 29724: { return true; } 29724: 29724: template 29724: constexpr bool 29724: operator>=(const optional<_Tp>& , nullopt_t) noexcept 29724: { return true; } 29724: 29724: template 29724: constexpr bool 29724: operator>=(nullopt_t, const optional<_Tp>& __rhs) noexcept 29724: { return !__rhs; } 29724: 29724: 29724: 29724: template 29724: constexpr auto 29724: operator==(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_eq_t<_Tp, _Up> 29724: { return __lhs && *__lhs == __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator==(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_eq_t<_Up, _Tp> 29724: { return __rhs && __lhs == *__rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator!=(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_ne_t<_Tp, _Up> 29724: { return !__lhs || *__lhs != __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator!=(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_ne_t<_Up, _Tp> 29724: { return !__rhs || __lhs != *__rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator<(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_lt_t<_Tp, _Up> 29724: { return !__lhs || *__lhs < __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator<(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_lt_t<_Up, _Tp> 29724: { return __rhs && __lhs < *__rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator>(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_gt_t<_Tp, _Up> 29724: { return __lhs && *__lhs > __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator>(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_gt_t<_Up, _Tp> 29724: { return !__rhs || __lhs > *__rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator<=(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_le_t<_Tp, _Up> 29724: { return !__lhs || *__lhs <= __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator<=(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_le_t<_Up, _Tp> 29724: { return __rhs && __lhs <= *__rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator>=(const optional<_Tp>& __lhs, const _Up& __rhs) 29724: -> __optional_ge_t<_Tp, _Up> 29724: { return __lhs && *__lhs >= __rhs; } 29724: 29724: template 29724: constexpr auto 29724: operator>=(const _Up& __lhs, const optional<_Tp>& __rhs) 29724: -> __optional_ge_t<_Up, _Tp> 29724: { return !__rhs || __lhs >= *__rhs; } 29724: # 1443 "/usr/include/c++/14/optional" 3 29724: template 29724: 29724: inline enable_if_t && is_swappable_v<_Tp>> 29724: swap(optional<_Tp>& __lhs, optional<_Tp>& __rhs) 29724: noexcept(noexcept(__lhs.swap(__rhs))) 29724: { __lhs.swap(__rhs); } 29724: 29724: template 29724: enable_if_t && is_swappable_v<_Tp>)> 29724: swap(optional<_Tp>&, optional<_Tp>&) = delete; 29724: 29724: template 29724: constexpr 29724: enable_if_t, _Tp>, 29724: optional>> 29724: make_optional(_Tp&& __t) 29724: noexcept(is_nothrow_constructible_v>, _Tp>) 29724: { return optional>{ std::forward<_Tp>(__t) }; } 29724: 29724: template 29724: constexpr 29724: enable_if_t, 29724: optional<_Tp>> 29724: make_optional(_Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29724: { return optional<_Tp>{ in_place, std::forward<_Args>(__args)... }; } 29724: 29724: template 29724: constexpr 29724: enable_if_t&, _Args...>, 29724: optional<_Tp>> 29724: make_optional(initializer_list<_Up> __il, _Args&&... __args) 29724: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) 29724: { return optional<_Tp>{ in_place, __il, std::forward<_Args>(__args)... }; } 29724: 29724: 29724: 29724: template, 29724: bool = __poison_hash<_Up>::__enable_hash_call> 29724: struct __optional_hash_call_base 29724: { 29724: size_t 29724: operator()(const optional<_Tp>& __t) const 29724: noexcept(noexcept(hash<_Up>{}(*__t))) 29724: { 29724: 29724: 29724: constexpr size_t __magic_disengaged_hash = static_cast(-3333); 29724: return __t ? hash<_Up>{}(*__t) : __magic_disengaged_hash; 29724: } 29724: }; 29724: 29724: template 29724: struct __optional_hash_call_base<_Tp, _Up, false> {}; 29724: 29724: template 29724: struct hash> 29724: : private __poison_hash>, 29724: public __optional_hash_call_base<_Tp> 29724: { 29724: using result_type [[__deprecated__]] = size_t; 29724: using argument_type [[__deprecated__]] = optional<_Tp>; 29724: }; 29724: 29724: template 29724: struct __is_fast_hash>> : __is_fast_hash> 29724: { }; 29724: 29724: 29724: 29724: 29724: template optional(_Tp) -> optional<_Tp>; 29724: 29724: 29724: 29724: } 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: 29724: # 1 "/usr/include/c++/14/utility" 1 3 29724: # 58 "/usr/include/c++/14/utility" 3 29724: 29724: # 59 "/usr/include/c++/14/utility" 3 29724: # 68 "/usr/include/c++/14/utility" 3 29724: # 1 "/usr/include/c++/14/bits/stl_relops.h" 1 3 29724: # 62 "/usr/include/c++/14/bits/stl_relops.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: namespace rel_ops 29724: { 29724: # 86 "/usr/include/c++/14/bits/stl_relops.h" 3 29724: template 29724: inline bool 29724: operator!=(const _Tp& __x, const _Tp& __y) 29724: { return !(__x == __y); } 29724: # 99 "/usr/include/c++/14/bits/stl_relops.h" 3 29724: template 29724: inline bool 29724: operator>(const _Tp& __x, const _Tp& __y) 29724: { return __y < __x; } 29724: # 112 "/usr/include/c++/14/bits/stl_relops.h" 3 29724: template 29724: inline bool 29724: operator<=(const _Tp& __x, const _Tp& __y) 29724: { return !(__y < __x); } 29724: # 125 "/usr/include/c++/14/bits/stl_relops.h" 3 29724: template 29724: inline bool 29724: operator>=(const _Tp& __x, const _Tp& __y) 29724: { return !(__x < __y); } 29724: } 29724: 29724: 29724: } 29724: # 69 "/usr/include/c++/14/utility" 2 3 29724: # 96 "/usr/include/c++/14/utility" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 97 "/usr/include/c++/14/utility" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: 29724: inline _Tp 29724: exchange(_Tp& __obj, _Up&& __new_val) 29724: noexcept(__and_, 29724: is_nothrow_assignable<_Tp&, _Up>>::value) 29724: { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } 29724: 29724: 29724: 29724: template 29724: [[nodiscard]] 29724: constexpr add_const_t<_Tp>& 29724: as_const(_Tp& __t) noexcept 29724: { return __t; } 29724: 29724: template 29724: void as_const(const _Tp&&) = delete; 29724: # 230 "/usr/include/c++/14/utility" 3 29724: 29724: } 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rocksdb_namespace.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 1 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 29724: 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 1 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 66 "/usr/include/assert.h" 3 4 29724: extern "C" { 29724: 29724: 29724: extern void __assert_fail (const char *__assertion, const char *__file, 29724: unsigned int __line, const char *__function) 29724: noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: extern void __assert_perror_fail (int __errnum, const char *__file, 29724: unsigned int __line, const char *__function) 29724: noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: extern void __assert (const char *__assertion, const char *__file, int __line) 29724: noexcept (true) __attribute__ ((__noreturn__)); 29724: 29724: 29724: } 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29724: 29724: # 1 "/usr/include/c++/14/cstdio" 1 3 29724: # 39 "/usr/include/c++/14/cstdio" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdio" 3 29724: # 24 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29724: # 1 "/usr/include/c++/14/cstring" 1 3 29724: # 39 "/usr/include/c++/14/cstring" 3 29724: 29724: # 40 "/usr/include/c++/14/cstring" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 43 "/usr/include/c++/14/cstring" 2 3 29724: # 1 "/usr/include/string.h" 1 3 4 29724: # 26 "/usr/include/string.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 27 "/usr/include/string.h" 2 3 4 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 34 "/usr/include/string.h" 2 3 4 29724: # 43 "/usr/include/string.h" 3 4 29724: extern void *memcpy (void *__restrict __dest, const void *__restrict __src, 29724: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern void *memmove (void *__dest, const void *__src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: extern void *memccpy (void *__restrict __dest, const void *__restrict __src, 29724: int __c, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); 29724: 29724: 29724: 29724: 29724: extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int memcmp (const void *__s1, const void *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: # 80 "/usr/include/string.h" 3 4 29724: extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern "C++" 29724: { 29724: extern void *memchr (void *__s, int __c, size_t __n) 29724: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern const void *memchr (const void *__s, int __c, size_t __n) 29724: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * 29724: memchr (void *__s, int __c, size_t __n) noexcept (true) 29724: { 29724: return __builtin_memchr (__s, __c, __n); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * 29724: memchr (const void *__s, int __c, size_t __n) noexcept (true) 29724: { 29724: return __builtin_memchr (__s, __c, __n); 29724: } 29724: 29724: } 29724: # 115 "/usr/include/string.h" 3 4 29724: extern "C++" void *rawmemchr (void *__s, int __c) 29724: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern "C++" const void *rawmemchr (const void *__s, int __c) 29724: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" void *memrchr (void *__s, int __c, size_t __n) 29724: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__read_only__, 1, 3))); 29724: extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) 29724: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__read_only__, 1, 3))); 29724: # 141 "/usr/include/string.h" 3 4 29724: extern char *strcpy (char *__restrict __dest, const char *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern char *strncpy (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern char *strcat (char *__restrict __dest, const char *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern char *strncat (char *__restrict __dest, const char *__restrict __src, 29724: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int strcmp (const char *__s1, const char *__s2) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern int strncmp (const char *__s1, const char *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int strcoll (const char *__s1, const char *__s2) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: extern size_t strxfrm (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 29724: 29724: 29724: extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, 29724: locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) 29724: __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: 29724: 29724: 29724: 29724: 29724: extern char *strdup (const char *__s) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *strndup (const char *__string, size_t __n) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 29724: # 224 "/usr/include/string.h" 3 4 29724: extern "C++" 29724: { 29724: extern char *strchr (char *__s, int __c) 29724: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern const char *strchr (const char *__s, int __c) 29724: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: strchr (char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_strchr (__s, __c); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: strchr (const char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_strchr (__s, __c); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" 29724: { 29724: extern char *strrchr (char *__s, int __c) 29724: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern const char *strrchr (const char *__s, int __c) 29724: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: strrchr (char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_strrchr (__s, __c); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: strrchr (const char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_strrchr (__s, __c); 29724: } 29724: 29724: } 29724: # 281 "/usr/include/string.h" 3 4 29724: extern "C++" char *strchrnul (char *__s, int __c) 29724: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern "C++" const char *strchrnul (const char *__s, int __c) 29724: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: # 293 "/usr/include/string.h" 3 4 29724: extern size_t strcspn (const char *__s, const char *__reject) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern size_t strspn (const char *__s, const char *__accept) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern "C++" 29724: { 29724: extern char *strpbrk (char *__s, const char *__accept) 29724: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: extern const char *strpbrk (const char *__s, const char *__accept) 29724: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: strpbrk (char *__s, const char *__accept) noexcept (true) 29724: { 29724: return __builtin_strpbrk (__s, __accept); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: strpbrk (const char *__s, const char *__accept) noexcept (true) 29724: { 29724: return __builtin_strpbrk (__s, __accept); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" 29724: { 29724: extern char *strstr (char *__haystack, const char *__needle) 29724: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: extern const char *strstr (const char *__haystack, const char *__needle) 29724: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: strstr (char *__haystack, const char *__needle) noexcept (true) 29724: { 29724: return __builtin_strstr (__haystack, __needle); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: strstr (const char *__haystack, const char *__needle) noexcept (true) 29724: { 29724: return __builtin_strstr (__haystack, __needle); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *strtok (char *__restrict __s, const char *__restrict __delim) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern char *__strtok_r (char *__restrict __s, 29724: const char *__restrict __delim, 29724: char **__restrict __save_ptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29724: 29724: extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, 29724: char **__restrict __save_ptr) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" char *strcasestr (char *__haystack, const char *__needle) 29724: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: extern "C++" const char *strcasestr (const char *__haystack, 29724: const char *__needle) 29724: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: # 389 "/usr/include/string.h" 3 4 29724: extern void *memmem (const void *__haystack, size_t __haystacklen, 29724: const void *__needle, size_t __needlelen) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) 29724: __attribute__ ((__access__ (__read_only__, 1, 2))) 29724: __attribute__ ((__access__ (__read_only__, 3, 4))); 29724: 29724: 29724: 29724: extern void *__mempcpy (void *__restrict __dest, 29724: const void *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern void *mempcpy (void *__restrict __dest, 29724: const void *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern size_t strlen (const char *__s) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern size_t strnlen (const char *__string, size_t __maxlen) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern char *strerror (int __errnum) noexcept (true); 29724: # 444 "/usr/include/string.h" 3 4 29724: extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: 29724: 29724: extern const char *strerrordesc_np (int __err) noexcept (true); 29724: 29724: extern const char *strerrorname_np (int __err) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); 29724: 29724: 29724: 29724: # 1 "/usr/include/strings.h" 1 3 4 29724: # 23 "/usr/include/strings.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 24 "/usr/include/strings.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: extern int bcmp (const void *__s1, const void *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern void bcopy (const void *__src, void *__dest, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern "C++" 29724: { 29724: extern char *index (char *__s, int __c) 29724: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern const char *index (const char *__s, int __c) 29724: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: index (char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_index (__s, __c); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: index (const char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_index (__s, __c); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" 29724: { 29724: extern char *rindex (char *__s, int __c) 29724: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: extern const char *rindex (const char *__s, int __c) 29724: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29724: rindex (char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_rindex (__s, __c); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29724: rindex (const char *__s, int __c) noexcept (true) 29724: { 29724: return __builtin_rindex (__s, __c); 29724: } 29724: 29724: } 29724: # 104 "/usr/include/strings.h" 3 4 29724: extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); 29724: __extension__ extern int ffsll (long long int __ll) 29724: noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern int strcasecmp (const char *__s1, const char *__s2) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 29724: 29724: 29724: 29724: extern int strncasecmp_l (const char *__s1, const char *__s2, 29724: size_t __n, locale_t __loc) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 1 3 4 29724: # 22 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29724: __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) noexcept (true) 29724: { 29724: (void) __builtin___memmove_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29724: __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) noexcept (true) 29724: { 29724: (void) __builtin___memset_chk (__dest, '\0', __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: # 145 "/usr/include/strings.h" 2 3 4 29724: # 463 "/usr/include/string.h" 2 3 4 29724: 29724: 29724: 29724: extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: 29724: 29724: 29724: extern char *strsep (char **__restrict __stringp, 29724: const char *__restrict __delim) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern char *strsignal (int __sig) noexcept (true); 29724: 29724: 29724: 29724: extern const char *sigabbrev_np (int __sig) noexcept (true); 29724: 29724: 29724: extern const char *sigdescr_np (int __sig) noexcept (true); 29724: 29724: 29724: 29724: extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern char *__stpncpy (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: extern char *stpncpy (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern size_t strlcpy (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29724: 29724: 29724: 29724: extern size_t strlcat (char *__restrict __dest, 29724: const char *__restrict __src, size_t __n) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 29724: 29724: 29724: 29724: 29724: extern int strverscmp (const char *__s1, const char *__s2) 29724: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__read_write__, 1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C++" char *basename (char *__filename) 29724: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 29724: extern "C++" const char *basename (const char *__filename) 29724: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 29724: # 548 "/usr/include/string.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 1 3 4 29724: # 25 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29724: __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 29724: 29724: { 29724: return __builtin___memcpy_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29724: __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) noexcept (true) 29724: { 29724: return __builtin___memmove_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29724: __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 29724: 29724: { 29724: return __builtin___mempcpy_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: # 56 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29724: __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) noexcept (true) 29724: { 29724: return __builtin___memset_chk (__dest, __ch, __len, 29724: __builtin_object_size (__dest, 0)); 29724: } 29724: 29724: 29724: 29724: 29724: void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29724: __attribute__ ((__leaf__)) explicit_bzero (void *__dest, size_t __len) noexcept (true) 29724: { 29724: __explicit_bzero_chk (__dest, __len, __builtin_object_size (__dest, 0)); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) strcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) stpcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) strncpy (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___strncpy_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) stpncpy (char * __dest, const char *__src, size_t __n) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___stpncpy_chk (__dest, __src, __n, 29724: __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: # 135 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) strcat (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29724: __attribute__ ((__leaf__)) strncat (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 29724: 29724: 29724: { 29724: return __builtin___strncat_chk (__dest, __src, __len, 29724: __builtin_object_size (__dest, 2 > 1)); 29724: } 29724: 29724: 29724: extern size_t __strlcpy_chk (char *__dest, const char *__src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: extern size_t __strlcpy_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcpy") 29724: 29724: ; 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) strlcpy (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 29724: 29724: 29724: { 29724: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29724: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 29724: || __n > __builtin_object_size (__dest, 2 > 1))) 29724: return __strlcpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 29724: return __strlcpy_alias (__dest, __src, __n); 29724: } 29724: 29724: extern size_t __strlcat_chk (char *__dest, const char *__src, size_t __n, 29724: size_t __destlen) noexcept (true); 29724: extern size_t __strlcat_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcat") 29724: 29724: ; 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) strlcat (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 29724: 29724: { 29724: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29724: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 29724: || __n > __builtin_object_size (__dest, 2 > 1))) 29724: return __strlcat_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 29724: return __strlcat_alias (__dest, __src, __n); 29724: } 29724: # 549 "/usr/include/string.h" 2 3 4 29724: 29724: 29724: 29724: } 29724: # 44 "/usr/include/c++/14/cstring" 2 3 29724: # 72 "/usr/include/c++/14/cstring" 3 29724: extern "C++" 29724: { 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: using ::memchr; 29724: using ::memcmp; 29724: using ::memcpy; 29724: using ::memmove; 29724: using ::memset; 29724: using ::strcat; 29724: using ::strcmp; 29724: using ::strcoll; 29724: using ::strcpy; 29724: using ::strcspn; 29724: using ::strerror; 29724: using ::strlen; 29724: using ::strncat; 29724: using ::strncmp; 29724: using ::strncpy; 29724: using ::strspn; 29724: 29724: using ::strtok; 29724: 29724: using ::strxfrm; 29724: using ::strchr; 29724: using ::strpbrk; 29724: using ::strrchr; 29724: using ::strstr; 29724: # 125 "/usr/include/c++/14/cstring" 3 29724: 29724: } 29724: } 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29724: 29724: 29724: 29724: 29724: 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29724: namespace rocksdb { 29724: 29724: class Cleanable { 29724: public: 29724: Cleanable(); 29724: 29724: Cleanable(Cleanable&) = delete; 29724: Cleanable& operator=(Cleanable&) = delete; 29724: 29724: 29724: ~Cleanable(); 29724: 29724: 29724: Cleanable(Cleanable&&) noexcept; 29724: Cleanable& operator=(Cleanable&&) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: using CleanupFunction = void (*)(void* arg1, void* arg2); 29724: 29724: 29724: void RegisterCleanup(CleanupFunction function, void* arg1, void* arg2); 29724: 29724: 29724: 29724: void DelegateCleanupsTo(Cleanable* other); 29724: 29724: 29724: inline void Reset() { 29724: DoCleanup(); 29724: cleanup_.function = nullptr; 29724: cleanup_.next = nullptr; 29724: } 29724: 29724: inline bool HasCleanups() { return cleanup_.function != nullptr; } 29724: 29724: protected: 29724: struct Cleanup { 29724: CleanupFunction function; 29724: void* arg1; 29724: void* arg2; 29724: Cleanup* next; 29724: }; 29724: Cleanup cleanup_; 29724: 29724: void RegisterCleanup(Cleanup* c); 29724: 29724: private: 29724: 29724: 29724: 29724: inline void DoCleanup() { 29724: if (cleanup_.function != nullptr) { 29724: (*cleanup_.function)(cleanup_.arg1, cleanup_.arg2); 29724: for (Cleanup* c = cleanup_.next; c != nullptr;) { 29724: (*c->function)(c->arg1, c->arg2); 29724: Cleanup* next = c->next; 29724: delete c; 29724: c = next; 29724: } 29724: } 29724: } 29724: }; 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29724: class SharedCleanablePtr { 29724: public: 29724: 29724: SharedCleanablePtr() {} 29724: 29724: SharedCleanablePtr(const SharedCleanablePtr& from); 29724: SharedCleanablePtr(SharedCleanablePtr&& from) noexcept; 29724: SharedCleanablePtr& operator=(const SharedCleanablePtr& from); 29724: SharedCleanablePtr& operator=(SharedCleanablePtr&& from) noexcept; 29724: 29724: ~SharedCleanablePtr(); 29724: 29724: 29724: void Allocate(); 29724: 29724: void Reset(); 29724: 29724: Cleanable& operator*(); 29724: Cleanable* operator->(); 29724: 29724: Cleanable* get(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: void RegisterCopyWith(Cleanable* target); 29724: 29724: 29724: 29724: 29724: void MoveAsCleanupTo(Cleanable* target); 29724: 29724: private: 29724: struct Impl; 29724: Impl* ptr_ = nullptr; 29724: }; 29724: 29724: } 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Slice { 29724: public: 29724: 29724: Slice() : data_(""), size_(0) {} 29724: 29724: 29724: Slice(const char* d, size_t n) : data_(d), size_(n) {} 29724: 29724: 29724: 29724: Slice(const std::string& s) : data_(s.data()), size_(s.size()) {} 29724: 29724: 29724: 29724: Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size()) {} 29724: 29724: 29724: 29724: Slice(const char* s) : data_(s) { size_ = (s == nullptr) ? 0 : strlen(s); } 29724: 29724: 29724: 29724: Slice(const struct SliceParts& parts, std::string* buf); 29724: 29724: 29724: const char* data() const { return data_; } 29724: 29724: 29724: size_t size() const { return size_; } 29724: 29724: 29724: bool empty() const { return size_ == 0; } 29724: 29724: 29724: 29724: char operator[](size_t n) const { 29724: 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: n < size() 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "n < size()" 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: return data_[n]; 29724: } 29724: 29724: 29724: void clear() { 29724: data_ = ""; 29724: size_ = 0; 29724: } 29724: 29724: 29724: void remove_prefix(size_t n) { 29724: 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: n <= size() 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "n <= size()" 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: data_ += n; 29724: size_ -= n; 29724: } 29724: 29724: void remove_suffix(size_t n) { 29724: 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: n <= size() 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "n <= size()" 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: size_ -= n; 29724: } 29724: 29724: 29724: 29724: std::string ToString(bool hex = false) const; 29724: 29724: 29724: std::string_view ToStringView() const { 29724: return std::string_view(data_, size_); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool DecodeHex(std::string* result) const; 29724: 29724: 29724: 29724: 29724: 29724: int compare(const Slice& b) const; 29724: 29724: 29724: bool starts_with(const Slice& x) const { 29724: return ((size_ >= x.size_) && (memcmp(data_, x.data_, x.size_) == 0)); 29724: } 29724: 29724: bool ends_with(const Slice& x) const { 29724: return ((size_ >= x.size_) && 29724: (memcmp(data_ + size_ - x.size_, x.data_, x.size_) == 0)); 29724: } 29724: 29724: 29724: size_t difference_offset(const Slice& b) const; 29724: 29724: 29724: const char* data_; 29724: size_t size_; 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class PinnableSlice : public Slice, public Cleanable { 29724: public: 29724: PinnableSlice() { buf_ = &self_space_; } 29724: explicit PinnableSlice(std::string* buf) { buf_ = buf; } 29724: 29724: PinnableSlice(PinnableSlice&& other); 29724: PinnableSlice& operator=(PinnableSlice&& other); 29724: 29724: 29724: PinnableSlice(PinnableSlice&) = delete; 29724: PinnableSlice& operator=(PinnableSlice&) = delete; 29724: 29724: inline void PinSlice(const Slice& s, CleanupFunction f, void* arg1, 29724: void* arg2) { 29724: 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: pinned_ = true; 29724: data_ = s.data(); 29724: size_ = s.size(); 29724: RegisterCleanup(f, arg1, arg2); 29724: 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: pinned_ 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "pinned_" 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: } 29724: 29724: inline void PinSlice(const Slice& s, Cleanable* cleanable) { 29724: 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: pinned_ = true; 29724: data_ = s.data(); 29724: size_ = s.size(); 29724: if (cleanable != nullptr) { 29724: cleanable->DelegateCleanupsTo(this); 29724: } 29724: 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: pinned_ 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "pinned_" 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: } 29724: 29724: inline void PinSelf(const Slice& slice) { 29724: 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: buf_->assign(slice.data(), slice.size()); 29724: data_ = buf_->data(); 29724: size_ = buf_->size(); 29724: 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: } 29724: 29724: inline void PinSelf() { 29724: 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: data_ = buf_->data(); 29724: size_ = buf_->size(); 29724: 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: !pinned_ 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "!pinned_" 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: } 29724: 29724: void remove_suffix(size_t n) { 29724: 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: n <= size() 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "n <= size()" 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: if (pinned_) { 29724: size_ -= n; 29724: } else { 29724: buf_->erase(size() - n, n); 29724: PinSelf(); 29724: } 29724: } 29724: 29724: void remove_prefix(size_t n) { 29724: 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: n <= size() 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "n <= size()" 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: if (pinned_) { 29724: data_ += n; 29724: size_ -= n; 29724: } else { 29724: buf_->erase(0, n); 29724: PinSelf(); 29724: } 29724: } 29724: 29724: void Reset() { 29724: Cleanable::Reset(); 29724: pinned_ = false; 29724: size_ = 0; 29724: } 29724: 29724: inline std::string* GetSelf() { return buf_; } 29724: 29724: inline bool IsPinned() const { return pinned_; } 29724: 29724: private: 29724: friend class PinnableSlice4Test; 29724: std::string self_space_; 29724: std::string* buf_; 29724: bool pinned_ = false; 29724: }; 29724: 29724: 29724: 29724: struct SliceParts { 29724: SliceParts(const Slice* _parts, int _num_parts) 29724: : parts(_parts), num_parts(_num_parts) {} 29724: SliceParts() : parts(nullptr), num_parts(0) {} 29724: 29724: const Slice* parts; 29724: int num_parts; 29724: }; 29724: 29724: inline bool operator==(const Slice& x, const Slice& y) { 29724: return ((x.size() == y.size()) && 29724: (memcmp(x.data(), y.data(), x.size()) == 0)); 29724: } 29724: 29724: inline bool operator!=(const Slice& x, const Slice& y) { return !(x == y); } 29724: 29724: inline int Slice::compare(const Slice& b) const { 29724: 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: (static_cast ( 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: data_ != nullptr && b.data_ != nullptr 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: "data_ != nullptr && b.data_ != nullptr" 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29724: ; 29724: const size_t min_len = (size_ < b.size_) ? size_ : b.size_; 29724: int r = memcmp(data_, b.data_, min_len); 29724: if (r == 0) { 29724: if (size_ < b.size_) 29724: r = -1; 29724: else if (size_ > b.size_) 29724: r = +1; 29724: } 29724: return r; 29724: } 29724: 29724: inline size_t Slice::difference_offset(const Slice& b) const { 29724: size_t off = 0; 29724: const size_t len = (size_ < b.size_) ? size_ : b.size_; 29724: for (; off < len; off++) { 29724: if (data_[off] != b.data_[off]) break; 29724: } 29724: return off; 29724: } 29724: 29724: } 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Status { 29724: public: 29724: 29724: Status() 29724: : code_(kOk), 29724: subcode_(kNone), 29724: sev_(kNoError), 29724: retryable_(false), 29724: data_loss_(false), 29724: scope_(0), 29724: state_(nullptr) {} 29724: ~Status() { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: Status(const Status& s); 29724: Status& operator=(const Status& s); 29724: Status(Status&& s) noexcept; 29724: Status& operator=(Status&& s) noexcept; 29724: bool operator==(const Status& rhs) const; 29724: bool operator!=(const Status& rhs) const; 29724: 29724: 29724: 29724: 29724: inline void PermitUncheckedError() const { MarkChecked(); } 29724: 29724: inline void MustCheck() const { 29724: 29724: 29724: 29724: } 29724: 29724: enum Code : unsigned char { 29724: kOk = 0, 29724: kNotFound = 1, 29724: kCorruption = 2, 29724: kNotSupported = 3, 29724: kInvalidArgument = 4, 29724: kIOError = 5, 29724: kMergeInProgress = 6, 29724: kIncomplete = 7, 29724: kShutdownInProgress = 8, 29724: kTimedOut = 9, 29724: kAborted = 10, 29724: kBusy = 11, 29724: kExpired = 12, 29724: kTryAgain = 13, 29724: kCompactionTooLarge = 14, 29724: kColumnFamilyDropped = 15, 29724: kMaxCode 29724: }; 29724: 29724: Code code() const { 29724: MarkChecked(); 29724: return code_; 29724: } 29724: 29724: enum SubCode : unsigned char { 29724: kNone = 0, 29724: kMutexTimeout = 1, 29724: kLockTimeout = 2, 29724: kLockLimit = 3, 29724: kNoSpace = 4, 29724: kDeadlock = 5, 29724: kStaleFile = 6, 29724: kMemoryLimit = 7, 29724: kSpaceLimit = 8, 29724: kPathNotFound = 9, 29724: KMergeOperandsInsufficientCapacity = 10, 29724: kManualCompactionPaused = 11, 29724: kOverwritten = 12, 29724: kTxnNotPrepared = 13, 29724: kIOFenced = 14, 29724: kMergeOperatorFailed = 15, 29724: kMergeOperandThresholdExceeded = 16, 29724: kMaxSubCode 29724: }; 29724: 29724: SubCode subcode() const { 29724: MarkChecked(); 29724: return subcode_; 29724: } 29724: 29724: enum Severity : unsigned char { 29724: kNoError = 0, 29724: kSoftError = 1, 29724: kHardError = 2, 29724: kFatalError = 3, 29724: kUnrecoverableError = 4, 29724: kMaxSeverity 29724: }; 29724: 29724: Status(const Status& s, Severity sev); 29724: 29724: Status(Code _code, SubCode _subcode, Severity _sev, const Slice& msg) 29724: : Status(_code, _subcode, msg, "", _sev) {} 29724: 29724: static Status CopyAppendMessage(const Status& s, const Slice& delim, 29724: const Slice& msg); 29724: 29724: Severity severity() const { 29724: MarkChecked(); 29724: return sev_; 29724: } 29724: 29724: 29724: const char* getState() const { 29724: MarkChecked(); 29724: return state_.get(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: Status& UpdateIfOk(Status&& s) { 29724: if (code() == kOk) { 29724: *this = std::move(s); 29724: } else { 29724: 29724: s.PermitUncheckedError(); 29724: } 29724: MustCheck(); 29724: return *this; 29724: } 29724: 29724: Status& UpdateIfOk(const Status& s) { 29724: return UpdateIfOk(std::forward(Status(s))); 29724: } 29724: 29724: 29724: static Status OK() { return Status(); } 29724: 29724: 29724: 29724: 29724: 29724: static Status OkOverwritten() { return Status(kOk, kOverwritten); } 29724: 29724: 29724: 29724: 29724: 29724: static Status OkMergeOperandThresholdExceeded() { 29724: return Status(kOk, kMergeOperandThresholdExceeded); 29724: } 29724: 29724: 29724: static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kNotFound, msg, msg2); 29724: } 29724: 29724: 29724: static Status NotFound(SubCode msg = kNone) { return Status(kNotFound, msg); } 29724: 29724: static Status NotFound(SubCode sc, const Slice& msg, 29724: const Slice& msg2 = Slice()) { 29724: return Status(kNotFound, sc, msg, msg2); 29724: } 29724: 29724: static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kCorruption, msg, msg2); 29724: } 29724: static Status Corruption(SubCode msg = kNone) { 29724: return Status(kCorruption, msg); 29724: } 29724: 29724: static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kNotSupported, msg, msg2); 29724: } 29724: static Status NotSupported(SubCode msg = kNone) { 29724: return Status(kNotSupported, msg); 29724: } 29724: 29724: static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kInvalidArgument, msg, msg2); 29724: } 29724: static Status InvalidArgument(SubCode msg = kNone) { 29724: return Status(kInvalidArgument, msg); 29724: } 29724: 29724: static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kIOError, msg, msg2); 29724: } 29724: static Status IOError(SubCode msg = kNone) { return Status(kIOError, msg); } 29724: 29724: static Status MergeInProgress(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kMergeInProgress, msg, msg2); 29724: } 29724: static Status MergeInProgress(SubCode msg = kNone) { 29724: return Status(kMergeInProgress, msg); 29724: } 29724: 29724: static Status Incomplete(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kIncomplete, msg, msg2); 29724: } 29724: static Status Incomplete(SubCode msg = kNone) { 29724: return Status(kIncomplete, msg); 29724: } 29724: 29724: static Status ShutdownInProgress(SubCode msg = kNone) { 29724: return Status(kShutdownInProgress, msg); 29724: } 29724: static Status ShutdownInProgress(const Slice& msg, 29724: const Slice& msg2 = Slice()) { 29724: return Status(kShutdownInProgress, msg, msg2); 29724: } 29724: static Status Aborted(SubCode msg = kNone) { return Status(kAborted, msg); } 29724: static Status Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kAborted, msg, msg2); 29724: } 29724: 29724: static Status Busy(SubCode msg = kNone) { return Status(kBusy, msg); } 29724: static Status Busy(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kBusy, msg, msg2); 29724: } 29724: 29724: static Status TimedOut(SubCode msg = kNone) { return Status(kTimedOut, msg); } 29724: static Status TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kTimedOut, msg, msg2); 29724: } 29724: 29724: static Status Expired(SubCode msg = kNone) { return Status(kExpired, msg); } 29724: static Status Expired(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kExpired, msg, msg2); 29724: } 29724: 29724: static Status TryAgain(SubCode msg = kNone) { return Status(kTryAgain, msg); } 29724: static Status TryAgain(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kTryAgain, msg, msg2); 29724: } 29724: 29724: static Status CompactionTooLarge(SubCode msg = kNone) { 29724: return Status(kCompactionTooLarge, msg); 29724: } 29724: static Status CompactionTooLarge(const Slice& msg, 29724: const Slice& msg2 = Slice()) { 29724: return Status(kCompactionTooLarge, msg, msg2); 29724: } 29724: 29724: static Status ColumnFamilyDropped(SubCode msg = kNone) { 29724: return Status(kColumnFamilyDropped, msg); 29724: } 29724: 29724: static Status ColumnFamilyDropped(const Slice& msg, 29724: const Slice& msg2 = Slice()) { 29724: return Status(kColumnFamilyDropped, msg, msg2); 29724: } 29724: 29724: static Status NoSpace() { return Status(kIOError, kNoSpace); } 29724: static Status NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kIOError, kNoSpace, msg, msg2); 29724: } 29724: 29724: static Status MemoryLimit() { return Status(kAborted, kMemoryLimit); } 29724: static Status MemoryLimit(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kAborted, kMemoryLimit, msg, msg2); 29724: } 29724: 29724: static Status SpaceLimit() { return Status(kIOError, kSpaceLimit); } 29724: static Status SpaceLimit(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kIOError, kSpaceLimit, msg, msg2); 29724: } 29724: 29724: static Status PathNotFound() { return Status(kIOError, kPathNotFound); } 29724: static Status PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kIOError, kPathNotFound, msg, msg2); 29724: } 29724: 29724: static Status TxnNotPrepared() { 29724: return Status(kInvalidArgument, kTxnNotPrepared); 29724: } 29724: static Status TxnNotPrepared(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return Status(kInvalidArgument, kTxnNotPrepared, msg, msg2); 29724: } 29724: 29724: 29724: bool ok() const { 29724: MarkChecked(); 29724: return code() == kOk; 29724: } 29724: 29724: 29724: 29724: bool IsOkOverwritten() const { 29724: MarkChecked(); 29724: return code() == kOk && subcode() == kOverwritten; 29724: } 29724: 29724: 29724: 29724: bool IsOkMergeOperandThresholdExceeded() const { 29724: MarkChecked(); 29724: return code() == kOk && subcode() == kMergeOperandThresholdExceeded; 29724: } 29724: 29724: 29724: bool IsNotFound() const { 29724: MarkChecked(); 29724: return code() == kNotFound; 29724: } 29724: 29724: 29724: bool IsCorruption() const { 29724: MarkChecked(); 29724: return code() == kCorruption; 29724: } 29724: 29724: 29724: bool IsNotSupported() const { 29724: MarkChecked(); 29724: return code() == kNotSupported; 29724: } 29724: 29724: 29724: bool IsInvalidArgument() const { 29724: MarkChecked(); 29724: return code() == kInvalidArgument; 29724: } 29724: 29724: 29724: bool IsIOError() const { 29724: MarkChecked(); 29724: return code() == kIOError; 29724: } 29724: 29724: 29724: bool IsMergeInProgress() const { 29724: MarkChecked(); 29724: return code() == kMergeInProgress; 29724: } 29724: 29724: 29724: bool IsIncomplete() const { 29724: MarkChecked(); 29724: return code() == kIncomplete; 29724: } 29724: 29724: 29724: bool IsShutdownInProgress() const { 29724: MarkChecked(); 29724: return code() == kShutdownInProgress; 29724: } 29724: 29724: bool IsTimedOut() const { 29724: MarkChecked(); 29724: return code() == kTimedOut; 29724: } 29724: 29724: bool IsAborted() const { 29724: MarkChecked(); 29724: return code() == kAborted; 29724: } 29724: 29724: bool IsLockLimit() const { 29724: MarkChecked(); 29724: return code() == kAborted && subcode() == kLockLimit; 29724: } 29724: 29724: 29724: 29724: bool IsBusy() const { 29724: MarkChecked(); 29724: return code() == kBusy; 29724: } 29724: 29724: bool IsDeadlock() const { 29724: MarkChecked(); 29724: return code() == kBusy && subcode() == kDeadlock; 29724: } 29724: 29724: 29724: bool IsExpired() const { 29724: MarkChecked(); 29724: return code() == kExpired; 29724: } 29724: 29724: 29724: 29724: 29724: bool IsTryAgain() const { 29724: MarkChecked(); 29724: return code() == kTryAgain; 29724: } 29724: 29724: 29724: bool IsCompactionTooLarge() const { 29724: MarkChecked(); 29724: return code() == kCompactionTooLarge; 29724: } 29724: 29724: 29724: bool IsColumnFamilyDropped() const { 29724: MarkChecked(); 29724: return code() == kColumnFamilyDropped; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool IsNoSpace() const { 29724: MarkChecked(); 29724: return (code() == kIOError) && (subcode() == kNoSpace); 29724: } 29724: 29724: 29724: 29724: 29724: bool IsMemoryLimit() const { 29724: MarkChecked(); 29724: return (code() == kAborted) && (subcode() == kMemoryLimit); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: bool IsPathNotFound() const { 29724: MarkChecked(); 29724: return (code() == kIOError || code() == kNotFound) && 29724: (subcode() == kPathNotFound); 29724: } 29724: 29724: 29724: 29724: bool IsManualCompactionPaused() const { 29724: MarkChecked(); 29724: return (code() == kIncomplete) && (subcode() == kManualCompactionPaused); 29724: } 29724: 29724: 29724: bool IsTxnNotPrepared() const { 29724: MarkChecked(); 29724: return (code() == kInvalidArgument) && (subcode() == kTxnNotPrepared); 29724: } 29724: 29724: 29724: bool IsIOFenced() const { 29724: MarkChecked(); 29724: return (code() == kIOError) && (subcode() == kIOFenced); 29724: } 29724: 29724: 29724: 29724: std::string ToString() const; 29724: 29724: protected: 29724: Code code_; 29724: SubCode subcode_; 29724: Severity sev_; 29724: bool retryable_; 29724: bool data_loss_; 29724: unsigned char scope_; 29724: 29724: 29724: std::unique_ptr state_; 29724: 29724: 29724: 29724: 29724: explicit Status(Code _code, SubCode _subcode = kNone) 29724: : code_(_code), 29724: subcode_(_subcode), 29724: sev_(kNoError), 29724: retryable_(false), 29724: data_loss_(false), 29724: scope_(0) {} 29724: 29724: explicit Status(Code _code, SubCode _subcode, bool retryable, bool data_loss, 29724: unsigned char scope) 29724: : code_(_code), 29724: subcode_(_subcode), 29724: sev_(kNoError), 29724: retryable_(retryable), 29724: data_loss_(data_loss), 29724: scope_(scope) {} 29724: 29724: Status(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2, 29724: Severity sev = kNoError); 29724: Status(Code _code, const Slice& msg, const Slice& msg2) 29724: : Status(_code, kNone, msg, msg2) {} 29724: 29724: static std::unique_ptr CopyState(const char* s); 29724: 29724: inline void MarkChecked() const { 29724: 29724: 29724: 29724: } 29724: }; 29724: 29724: inline Status::Status(const Status& s) 29724: : code_(s.code_), 29724: subcode_(s.subcode_), 29724: sev_(s.sev_), 29724: retryable_(s.retryable_), 29724: data_loss_(s.data_loss_), 29724: scope_(s.scope_) { 29724: s.MarkChecked(); 29724: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29724: } 29724: inline Status::Status(const Status& s, Severity sev) 29724: : code_(s.code_), 29724: subcode_(s.subcode_), 29724: sev_(sev), 29724: retryable_(s.retryable_), 29724: data_loss_(s.data_loss_), 29724: scope_(s.scope_) { 29724: s.MarkChecked(); 29724: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29724: } 29724: inline Status& Status::operator=(const Status& s) { 29724: if (this != &s) { 29724: s.MarkChecked(); 29724: MustCheck(); 29724: code_ = s.code_; 29724: subcode_ = s.subcode_; 29724: sev_ = s.sev_; 29724: retryable_ = s.retryable_; 29724: data_loss_ = s.data_loss_; 29724: scope_ = s.scope_; 29724: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29724: } 29724: return *this; 29724: } 29724: 29724: inline Status::Status(Status&& s) noexcept : Status() { 29724: s.MarkChecked(); 29724: *this = std::move(s); 29724: } 29724: 29724: inline Status& Status::operator=(Status&& s) noexcept { 29724: if (this != &s) { 29724: s.MarkChecked(); 29724: MustCheck(); 29724: code_ = std::move(s.code_); 29724: s.code_ = kOk; 29724: subcode_ = std::move(s.subcode_); 29724: s.subcode_ = kNone; 29724: sev_ = std::move(s.sev_); 29724: s.sev_ = kNoError; 29724: retryable_ = std::move(s.retryable_); 29724: s.retryable_ = false; 29724: data_loss_ = std::move(s.data_loss_); 29724: s.data_loss_ = false; 29724: scope_ = std::move(s.scope_); 29724: s.scope_ = 0; 29724: state_ = std::move(s.state_); 29724: } 29724: return *this; 29724: } 29724: 29724: inline bool Status::operator==(const Status& rhs) const { 29724: MarkChecked(); 29724: rhs.MarkChecked(); 29724: return (code_ == rhs.code_); 29724: } 29724: 29724: inline bool Status::operator!=(const Status& rhs) const { 29724: MarkChecked(); 29724: rhs.MarkChecked(); 29724: return !(*this == rhs); 29724: } 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 2 29724: 29724: namespace rocksdb { 29724: class Logger; 29724: class ObjectRegistry; 29724: class OptionTypeInfo; 29724: struct ColumnFamilyOptions; 29724: struct ConfigOptions; 29724: struct DBOptions; 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: class Configurable { 29724: protected: 29724: friend class ConfigurableHelper; 29724: struct RegisteredOptions { 29724: 29724: std::string name; 29724: 29724: 29724: 29724: intptr_t opt_offset; 29724: 29724: const std::unordered_map* type_map; 29724: }; 29724: 29724: public: 29724: virtual ~Configurable() {} 29724: # 70 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: template 29724: const T* GetOptions() const { 29724: return GetOptions(T::kName()); 29724: } 29724: template 29724: T* GetOptions() { 29724: return GetOptions(T::kName()); 29724: } 29724: template 29724: const T* GetOptions(const std::string& name) const { 29724: return reinterpret_cast(GetOptionsPtr(name)); 29724: } 29724: template 29724: T* GetOptions(const std::string& name) { 29724: 29724: 29724: return reinterpret_cast(const_cast(GetOptionsPtr(name))); 29724: } 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: Status ConfigureFromMap( 29724: const ConfigOptions& config_options, 29724: const std::unordered_map& opt_map); 29724: Status ConfigureFromMap( 29724: const ConfigOptions& config_options, 29724: const std::unordered_map& opt_map, 29724: std::unordered_map* unused); 29724: # 137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: Status ConfigureOption(const ConfigOptions& config_options, 29724: const std::string& name, const std::string& value); 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: Status ConfigureFromString(const ConfigOptions& config_options, 29724: const std::string& opts); 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: Status GetOptionString(const ConfigOptions& config_options, 29724: std::string* result) const; 29724: 29724: 29724: 29724: 29724: 29724: std::string ToString(const ConfigOptions& config_options) const { 29724: return ToString(config_options, ""); 29724: } 29724: std::string ToString(const ConfigOptions& config_options, 29724: const std::string& prefix) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status GetOptionNames(const ConfigOptions& config_options, 29724: std::unordered_set* result) const; 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual Status GetOption(const ConfigOptions& config_options, 29724: const std::string& name, std::string* value) const; 29724: # 212 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual bool AreEquivalent(const ConfigOptions& config_options, 29724: const Configurable* other, 29724: std::string* name) const; 29724: 29724: 29724: 29724: 29724: virtual std::string GetPrintableOptions() const { return ""; } 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual Status PrepareOptions(const ConfigOptions& config_options); 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual Status ValidateOptions(const DBOptions& db_opts, 29724: const ColumnFamilyOptions& cf_opts) const; 29724: # 276 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: static Status GetOptionsMap( 29724: const std::string& opt_value, const std::string& default_id, 29724: std::string* id, std::unordered_map* options); 29724: 29724: protected: 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual const void* GetOptionsPtr(const std::string& name) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status ParseStringOptions(const ConfigOptions& config_options, 29724: const std::string& opts_str); 29724: # 313 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual Status ConfigureOptions( 29724: const ConfigOptions& config_options, 29724: const std::unordered_map& opts_map, 29724: std::unordered_map* unused); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status ParseOption(const ConfigOptions& config_options, 29724: const OptionTypeInfo& opt_info, 29724: const std::string& opt_name, 29724: const std::string& opt_value, void* opt_ptr); 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: virtual bool OptionsAreEqual(const ConfigOptions& config_options, 29724: const OptionTypeInfo& opt_info, 29724: const std::string& name, 29724: const void* const this_ptr, 29724: const void* const that_ptr, 29724: std::string* bad_name) const; 29724: 29724: 29724: virtual std::string SerializeOptions(const ConfigOptions& config_options, 29724: const std::string& header) const; 29724: 29724: 29724: virtual std::string GetOptionName(const std::string& long_name) const; 29724: # 375 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29724: template 29724: void RegisterOptions( 29724: T* opt_ptr, 29724: const std::unordered_map* opt_map) { 29724: RegisterOptions(T::kName(), opt_ptr, opt_map); 29724: } 29724: void RegisterOptions( 29724: const std::string& name, void* opt_ptr, 29724: const std::unordered_map* opt_map); 29724: 29724: 29724: inline bool HasRegisteredOptions() const { return !options_.empty(); } 29724: 29724: private: 29724: 29724: 29724: 29724: std::vector options_; 29724: }; 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: # 56 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: class Customizable : public Configurable { 29724: public: 29724: ~Customizable() override {} 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: 29724: 29724: virtual std::string GetId() const { 29724: std::string id = Name(); 29724: return id; 29724: } 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: virtual bool IsInstanceOf(const std::string& name) const { 29724: if (name.empty()) { 29724: return false; 29724: } else if (name == Name()) { 29724: return true; 29724: } else { 29724: const char* nickname = NickName(); 29724: if (nickname != nullptr && name == nickname) { 29724: return true; 29724: } else { 29724: return false; 29724: } 29724: } 29724: } 29724: 29724: const void* GetOptionsPtr(const std::string& name) const override { 29724: const void* ptr = Configurable::GetOptionsPtr(name); 29724: if (ptr != nullptr) { 29724: return ptr; 29724: } else { 29724: const auto inner = Inner(); 29724: if (inner != nullptr) { 29724: return inner->GetOptionsPtr(name); 29724: } else { 29724: return nullptr; 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: const T* CheckedCast() const { 29724: if (IsInstanceOf(T::kClassName())) { 29724: return static_cast(this); 29724: } else { 29724: const auto inner = Inner(); 29724: if (inner != nullptr) { 29724: return inner->CheckedCast(); 29724: } else { 29724: return nullptr; 29724: } 29724: } 29724: } 29724: 29724: template 29724: T* CheckedCast() { 29724: if (IsInstanceOf(T::kClassName())) { 29724: return static_cast(this); 29724: } else { 29724: auto inner = const_cast(Inner()); 29724: if (inner != nullptr) { 29724: return inner->CheckedCast(); 29724: } else { 29724: return nullptr; 29724: } 29724: } 29724: } 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: bool AreEquivalent(const ConfigOptions& config_options, 29724: const Configurable* other, 29724: std::string* mismatch) const override; 29724: 29724: 29724: Status GetOption(const ConfigOptions& config_options, const std::string& name, 29724: std::string* value) const override; 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: static Status GetOptionsMap( 29724: const ConfigOptions& config_options, const Customizable* custom, 29724: const std::string& opt_value, std::string* id, 29724: std::unordered_map* options); 29724: # 195 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: static Status ConfigureNewObject( 29724: const ConfigOptions& config_options, Customizable* object, 29724: const std::unordered_map& options); 29724: 29724: 29724: 29724: 29724: virtual const Customizable* Inner() const { return nullptr; } 29724: 29724: protected: 29724: # 217 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29724: std::string GenerateIndividualId() const; 29724: 29724: 29724: 29724: 29724: virtual const char* NickName() const { return ""; } 29724: 29724: std::string GetOptionName(const std::string& long_name) const override; 29724: std::string SerializeOptions(const ConfigOptions& options, 29724: const std::string& prefix) const override; 29724: }; 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: 29724: 29724: 29724: class CompareInterface { 29724: public: 29724: virtual ~CompareInterface() {} 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: virtual int Compare(const Slice& a, const Slice& b) const = 0; 29724: }; 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: class Comparator : public Customizable, public CompareInterface { 29724: public: 29724: Comparator() : timestamp_size_(0) {} 29724: 29724: Comparator(size_t ts_sz) : timestamp_size_(ts_sz) {} 29724: 29724: Comparator(const Comparator& orig) : timestamp_size_(orig.timestamp_size_) {} 29724: 29724: Comparator& operator=(const Comparator& rhs) { 29724: if (this != &rhs) { 29724: timestamp_size_ = rhs.timestamp_size_; 29724: } 29724: return *this; 29724: } 29724: 29724: ~Comparator() override {} 29724: 29724: static Status CreateFromString(const ConfigOptions& opts, 29724: const std::string& id, 29724: const Comparator** comp); 29724: static const char* Type() { return "Comparator"; } 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: const char* Name() const override = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool Equal(const Slice& a, const Slice& b) const { 29724: return Compare(a, b) == 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void FindShortestSeparator(std::string* start, 29724: const Slice& limit) const = 0; 29724: 29724: 29724: 29724: 29724: virtual void FindShortSuccessor(std::string* key) const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool IsSameLengthImmediateSuccessor(const Slice& , 29724: const Slice& ) const { 29724: return false; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual bool CanKeysWithDifferentByteContentsBeEqual() const { return true; } 29724: 29724: 29724: 29724: virtual const Comparator* GetRootComparator() const { return this; } 29724: 29724: inline size_t timestamp_size() const { return timestamp_size_; } 29724: 29724: 29724: 29724: 29724: virtual Slice GetMaxTimestamp() const { 29724: if (timestamp_size_ == 0) { 29724: return Slice(); 29724: } 29724: 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: (static_cast ( 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: false 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: "false" 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: ; 29724: return Slice(); 29724: } 29724: 29724: 29724: 29724: 29724: virtual Slice GetMinTimestamp() const { 29724: if (timestamp_size_ == 0) { 29724: return Slice(); 29724: } 29724: 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: (static_cast ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: false 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: "false" 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: ; 29724: return Slice(); 29724: } 29724: 29724: 29724: virtual std::string TimestampToString(const Slice& ) const { 29724: return ""; 29724: } 29724: 29724: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 29724: return CompareWithoutTimestamp(a, true, b, true); 29724: } 29724: # 163 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29724: virtual int CompareTimestamp(const Slice& , 29724: const Slice& ) const { 29724: return 0; 29724: } 29724: 29724: virtual int CompareWithoutTimestamp(const Slice& a, bool , 29724: const Slice& b, bool ) const { 29724: return Compare(a, b); 29724: } 29724: 29724: virtual bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 29724: return 0 == 29724: CompareWithoutTimestamp(a, true, b, true); 29724: } 29724: 29724: private: 29724: size_t timestamp_size_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: const Comparator* BytewiseComparator(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: const Comparator* ReverseBytewiseComparator(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: const Comparator* BytewiseComparatorWithU64Ts(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: const Comparator* ReverseBytewiseComparatorWithU64Ts(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status DecodeU64Ts(const Slice& ts, uint64_t* int_ts); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Slice EncodeU64Ts(uint64_t ts, std::string* ts_buf); 29724: 29724: 29724: 29724: 29724: Slice MaxU64Ts(); 29724: 29724: 29724: 29724: 29724: Slice MinU64Ts(); 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 1 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: struct ConfigOptions; 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29724: class SliceTransform : public Customizable { 29724: public: 29724: virtual ~SliceTransform(){} 29724: 29724: 29724: const char* Name() const override = 0; 29724: static const char* Type() { return "SliceTransform"; } 29724: 29724: 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& id, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: std::string AsString() const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Slice Transform(const Slice& key) const = 0; 29724: # 71 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29724: virtual bool InDomain(const Slice& key) const = 0; 29724: 29724: 29724: 29724: virtual bool InRange(const Slice& ) const { return false; } 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29724: virtual bool FullLengthEnabled(size_t* ) const { return false; } 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29724: virtual bool SameResultWhenAppended(const Slice& ) const { 29724: return false; 29724: } 29724: }; 29724: 29724: 29724: 29724: const SliceTransform* NewFixedPrefixTransform(size_t prefix_len); 29724: 29724: 29724: 29724: const SliceTransform* NewCappedPrefixTransform(size_t cap_len); 29724: 29724: 29724: const SliceTransform* NewNoopTransform(); 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/types.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/types.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: using ColumnFamilyId = uint32_t; 29724: 29724: 29724: using SequenceNumber = uint64_t; 29724: 29724: struct TableProperties; 29724: using TablePropertiesCollection = 29724: std::unordered_map>; 29724: 29724: const SequenceNumber kMinUnCommittedSeq = 1; 29724: 29724: enum class TableFileCreationReason { 29724: kFlush, 29724: kCompaction, 29724: kRecovery, 29724: kMisc, 29724: }; 29724: 29724: enum class BlobFileCreationReason { 29724: kFlush, 29724: kCompaction, 29724: kRecovery, 29724: }; 29724: 29724: 29724: 29724: enum FileType { 29724: kWalFile, 29724: kDBLockFile, 29724: kTableFile, 29724: kDescriptorFile, 29724: kCurrentFile, 29724: kTempFile, 29724: kInfoLogFile, 29724: kMetaDatabase, 29724: kIdentityFile, 29724: kOptionsFile, 29724: kBlobFile 29724: }; 29724: 29724: 29724: 29724: enum EntryType { 29724: kEntryPut, 29724: kEntryDelete, 29724: kEntrySingleDelete, 29724: kEntryMerge, 29724: kEntryRangeDeletion, 29724: kEntryBlobIndex, 29724: kEntryDeleteWithTimestamp, 29724: kEntryWideColumnEntity, 29724: kEntryTimedPut, 29724: kEntryOther, 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: struct ParsedEntryInfo { 29724: Slice user_key; 29724: Slice timestamp; 29724: SequenceNumber sequence; 29724: EntryType type; 29724: }; 29724: 29724: enum class WriteStallCause { 29724: 29724: 29724: 29724: kMemtableLimit, 29724: kL0FileCountLimit, 29724: kPendingCompactionBytes, 29724: kCFScopeWriteStallCauseEnumMax, 29724: 29724: 29724: 29724: 29724: 29724: kWriteBufferManagerLimit, 29724: kDBScopeWriteStallCauseEnumMax, 29724: 29724: 29724: 29724: kNone, 29724: }; 29724: 29724: enum class WriteStallCondition { 29724: kDelayed, 29724: kStopped, 29724: 29724: kNormal, 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: enum class Temperature : uint8_t { 29724: kUnknown = 0, 29724: kHot = 0x04, 29724: kWarm = 0x08, 29724: kCold = 0x0C, 29724: kLastTemperature, 29724: }; 29724: 29724: } 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 1 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 29724: 29724: # 1 "/usr/include/c++/14/algorithm" 1 3 29724: # 58 "/usr/include/c++/14/algorithm" 3 29724: 29724: # 59 "/usr/include/c++/14/algorithm" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_algo.h" 1 3 29724: # 59 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: # 1 "/usr/include/c++/14/bits/algorithmfwd.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: 29724: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 195 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: template 29724: 29724: bool 29724: all_of(_IIter, _IIter, _Predicate); 29724: 29724: template 29724: 29724: bool 29724: any_of(_IIter, _IIter, _Predicate); 29724: 29724: 29724: template 29724: 29724: bool 29724: binary_search(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: bool 29724: binary_search(_FIter, _FIter, const _Tp&, _Compare); 29724: 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: clamp(const _Tp&, const _Tp&, const _Tp&); 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: clamp(const _Tp&, const _Tp&, const _Tp&, _Compare); 29724: 29724: 29724: template 29724: 29724: _OIter 29724: copy(_IIter, _IIter, _OIter); 29724: 29724: template 29724: 29724: _BIter2 29724: copy_backward(_BIter1, _BIter1, _BIter2); 29724: 29724: 29724: template 29724: 29724: _OIter 29724: copy_if(_IIter, _IIter, _OIter, _Predicate); 29724: 29724: template 29724: 29724: _OIter 29724: copy_n(_IIter, _Size, _OIter); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: pair<_FIter, _FIter> 29724: equal_range(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: pair<_FIter, _FIter> 29724: equal_range(_FIter, _FIter, const _Tp&, _Compare); 29724: 29724: template 29724: 29724: void 29724: fill(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: _OIter 29724: fill_n(_OIter, _Size, const _Tp&); 29724: 29724: 29724: 29724: template 29724: 29724: _FIter1 29724: find_end(_FIter1, _FIter1, _FIter2, _FIter2); 29724: 29724: template 29724: 29724: _FIter1 29724: find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _IIter 29724: find_if_not(_IIter, _IIter, _Predicate); 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: bool 29724: includes(_IIter1, _IIter1, _IIter2, _IIter2); 29724: 29724: template 29724: 29724: bool 29724: includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 29724: 29724: template 29724: void 29724: inplace_merge(_BIter, _BIter, _BIter); 29724: 29724: template 29724: void 29724: inplace_merge(_BIter, _BIter, _BIter, _Compare); 29724: 29724: 29724: template 29724: 29724: bool 29724: is_heap(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: bool 29724: is_heap(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: _RAIter 29724: is_heap_until(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: _RAIter 29724: is_heap_until(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: bool 29724: is_partitioned(_IIter, _IIter, _Predicate); 29724: 29724: template 29724: 29724: bool 29724: is_permutation(_FIter1, _FIter1, _FIter2); 29724: 29724: template 29724: 29724: bool 29724: is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); 29724: 29724: template 29724: 29724: bool 29724: is_sorted(_FIter, _FIter); 29724: 29724: template 29724: 29724: bool 29724: is_sorted(_FIter, _FIter, _Compare); 29724: 29724: template 29724: 29724: _FIter 29724: is_sorted_until(_FIter, _FIter); 29724: 29724: template 29724: 29724: _FIter 29724: is_sorted_until(_FIter, _FIter, _Compare); 29724: 29724: 29724: template 29724: 29724: void 29724: iter_swap(_FIter1, _FIter2); 29724: 29724: template 29724: 29724: _FIter 29724: lower_bound(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: _FIter 29724: lower_bound(_FIter, _FIter, const _Tp&, _Compare); 29724: 29724: template 29724: 29724: void 29724: make_heap(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: make_heap(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: max(const _Tp&, const _Tp&); 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: max(const _Tp&, const _Tp&, _Compare); 29724: 29724: 29724: 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: min(const _Tp&, const _Tp&); 29724: 29724: template 29724: constexpr 29724: const _Tp& 29724: min(const _Tp&, const _Tp&, _Compare); 29724: 29724: 29724: 29724: 29724: template 29724: constexpr 29724: pair 29724: minmax(const _Tp&, const _Tp&); 29724: 29724: template 29724: constexpr 29724: pair 29724: minmax(const _Tp&, const _Tp&, _Compare); 29724: 29724: template 29724: constexpr 29724: pair<_FIter, _FIter> 29724: minmax_element(_FIter, _FIter); 29724: 29724: template 29724: constexpr 29724: pair<_FIter, _FIter> 29724: minmax_element(_FIter, _FIter, _Compare); 29724: 29724: template 29724: constexpr 29724: _Tp 29724: min(initializer_list<_Tp>); 29724: 29724: template 29724: constexpr 29724: _Tp 29724: min(initializer_list<_Tp>, _Compare); 29724: 29724: template 29724: constexpr 29724: _Tp 29724: max(initializer_list<_Tp>); 29724: 29724: template 29724: constexpr 29724: _Tp 29724: max(initializer_list<_Tp>, _Compare); 29724: 29724: template 29724: constexpr 29724: pair<_Tp, _Tp> 29724: minmax(initializer_list<_Tp>); 29724: 29724: template 29724: constexpr 29724: pair<_Tp, _Tp> 29724: minmax(initializer_list<_Tp>, _Compare); 29724: 29724: 29724: 29724: 29724: template 29724: 29724: bool 29724: next_permutation(_BIter, _BIter); 29724: 29724: template 29724: 29724: bool 29724: next_permutation(_BIter, _BIter, _Compare); 29724: 29724: 29724: template 29724: 29724: bool 29724: none_of(_IIter, _IIter, _Predicate); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _RAIter 29724: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); 29724: 29724: template 29724: 29724: _RAIter 29724: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); 29724: 29724: 29724: 29724: 29724: template 29724: 29724: pair<_OIter1, _OIter2> 29724: partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); 29724: 29724: template 29724: 29724: _FIter 29724: partition_point(_FIter, _FIter, _Predicate); 29724: 29724: 29724: template 29724: 29724: void 29724: pop_heap(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: pop_heap(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: bool 29724: prev_permutation(_BIter, _BIter); 29724: 29724: template 29724: 29724: bool 29724: prev_permutation(_BIter, _BIter, _Compare); 29724: 29724: template 29724: 29724: void 29724: push_heap(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: push_heap(_RAIter, _RAIter, _Compare); 29724: 29724: 29724: 29724: template 29724: 29724: _FIter 29724: remove(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: _FIter 29724: remove_if(_FIter, _FIter, _Predicate); 29724: 29724: template 29724: 29724: _OIter 29724: remove_copy(_IIter, _IIter, _OIter, const _Tp&); 29724: 29724: template 29724: 29724: _OIter 29724: remove_copy_if(_IIter, _IIter, _OIter, _Predicate); 29724: 29724: 29724: 29724: template 29724: 29724: _OIter 29724: replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); 29724: 29724: template 29724: 29724: _OIter 29724: replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: reverse(_BIter, _BIter); 29724: 29724: template 29724: 29724: _OIter 29724: reverse_copy(_BIter, _BIter, _OIter); 29724: 29724: inline namespace _V2 { 29724: 29724: template 29724: 29724: _FIter 29724: rotate(_FIter, _FIter, _FIter); 29724: 29724: } 29724: 29724: template 29724: 29724: _OIter 29724: rotate_copy(_FIter, _FIter, _FIter, _OIter); 29724: # 622 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: template 29724: void 29724: shuffle(_RAIter, _RAIter, _UGenerator&&); 29724: 29724: 29724: template 29724: 29724: void 29724: sort_heap(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: sort_heap(_RAIter, _RAIter, _Compare); 29724: 29724: 29724: template 29724: _BIter 29724: stable_partition(_BIter, _BIter, _Predicate); 29724: # 657 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29724: template 29724: 29724: _FIter2 29724: swap_ranges(_FIter1, _FIter1, _FIter2); 29724: 29724: 29724: 29724: template 29724: 29724: _FIter 29724: unique(_FIter, _FIter); 29724: 29724: template 29724: 29724: _FIter 29724: unique(_FIter, _FIter, _BinaryPredicate); 29724: 29724: 29724: 29724: template 29724: 29724: _FIter 29724: upper_bound(_FIter, _FIter, const _Tp&); 29724: 29724: template 29724: 29724: _FIter 29724: upper_bound(_FIter, _FIter, const _Tp&, _Compare); 29724: 29724: 29724: 29724: template 29724: 29724: _FIter 29724: adjacent_find(_FIter, _FIter); 29724: 29724: template 29724: 29724: _FIter 29724: adjacent_find(_FIter, _FIter, _BinaryPredicate); 29724: 29724: template 29724: 29724: typename iterator_traits<_IIter>::difference_type 29724: count(_IIter, _IIter, const _Tp&); 29724: 29724: template 29724: 29724: typename iterator_traits<_IIter>::difference_type 29724: count_if(_IIter, _IIter, _Predicate); 29724: 29724: template 29724: 29724: bool 29724: equal(_IIter1, _IIter1, _IIter2); 29724: 29724: template 29724: 29724: bool 29724: equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 29724: 29724: template 29724: 29724: _IIter 29724: find(_IIter, _IIter, const _Tp&); 29724: 29724: template 29724: 29724: _FIter1 29724: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); 29724: 29724: template 29724: 29724: _FIter1 29724: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29724: 29724: template 29724: 29724: _IIter 29724: find_if(_IIter, _IIter, _Predicate); 29724: 29724: template 29724: 29724: _Funct 29724: for_each(_IIter, _IIter, _Funct); 29724: 29724: template 29724: 29724: void 29724: generate(_FIter, _FIter, _Generator); 29724: 29724: template 29724: 29724: _OIter 29724: generate_n(_OIter, _Size, _Generator); 29724: 29724: template 29724: 29724: bool 29724: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); 29724: 29724: template 29724: 29724: bool 29724: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 29724: 29724: template 29724: constexpr 29724: _FIter 29724: max_element(_FIter, _FIter); 29724: 29724: template 29724: constexpr 29724: _FIter 29724: max_element(_FIter, _FIter, _Compare); 29724: 29724: template 29724: 29724: _OIter 29724: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29724: 29724: template 29724: constexpr 29724: _FIter 29724: min_element(_FIter, _FIter); 29724: 29724: template 29724: constexpr 29724: _FIter 29724: min_element(_FIter, _FIter, _Compare); 29724: 29724: template 29724: 29724: pair<_IIter1, _IIter2> 29724: mismatch(_IIter1, _IIter1, _IIter2); 29724: 29724: template 29724: 29724: pair<_IIter1, _IIter2> 29724: mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 29724: 29724: template 29724: 29724: void 29724: nth_element(_RAIter, _RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: nth_element(_RAIter, _RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: void 29724: partial_sort(_RAIter, _RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: partial_sort(_RAIter, _RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: _BIter 29724: partition(_BIter, _BIter, _Predicate); 29724: 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29724: void 29724: random_shuffle(_RAIter, _RAIter); 29724: 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29724: void 29724: random_shuffle(_RAIter, _RAIter, 29724: 29724: _Generator&&); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: replace(_FIter, _FIter, const _Tp&, const _Tp&); 29724: 29724: template 29724: 29724: void 29724: replace_if(_FIter, _FIter, _Predicate, const _Tp&); 29724: 29724: template 29724: 29724: _FIter1 29724: search(_FIter1, _FIter1, _FIter2, _FIter2); 29724: 29724: template 29724: 29724: _FIter1 29724: search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29724: 29724: template 29724: 29724: _FIter 29724: search_n(_FIter, _FIter, _Size, const _Tp&); 29724: 29724: template 29724: 29724: _FIter 29724: search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); 29724: 29724: template 29724: 29724: _OIter 29724: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29724: 29724: template 29724: 29724: _OIter 29724: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29724: 29724: template 29724: 29724: _OIter 29724: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, 29724: _OIter, _Compare); 29724: 29724: template 29724: 29724: _OIter 29724: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29724: 29724: template 29724: 29724: void 29724: sort(_RAIter, _RAIter); 29724: 29724: template 29724: 29724: void 29724: sort(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: void 29724: stable_sort(_RAIter, _RAIter); 29724: 29724: template 29724: void 29724: stable_sort(_RAIter, _RAIter, _Compare); 29724: 29724: template 29724: 29724: _OIter 29724: transform(_IIter, _IIter, _OIter, _UnaryOperation); 29724: 29724: template 29724: 29724: _OIter 29724: transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); 29724: 29724: template 29724: 29724: _OIter 29724: unique_copy(_IIter, _IIter, _OIter); 29724: 29724: template 29724: 29724: _OIter 29724: unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); 29724: 29724: 29724: 29724: } 29724: # 60 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_heap.h" 1 3 29724: # 63 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _Distance 29724: __is_heap_until(_RandomAccessIterator __first, _Distance __n, 29724: _Compare& __comp) 29724: { 29724: _Distance __parent = 0; 29724: for (_Distance __child = 1; __child < __n; ++__child) 29724: { 29724: if (__comp(__first + __parent, __first + __child)) 29724: return __child; 29724: if ((__child & 1) == 0) 29724: ++__parent; 29724: } 29724: return __n; 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: inline bool 29724: __is_heap(_RandomAccessIterator __first, _Distance __n) 29724: { 29724: __gnu_cxx::__ops::_Iter_less_iter __comp; 29724: return std::__is_heap_until(__first, __n, __comp) == __n; 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) 29724: { 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: return std::__is_heap_until(__first, __n, __cmp) == __n; 29724: } 29724: 29724: template 29724: 29724: inline bool 29724: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { return std::__is_heap(__first, std::distance(__first, __last)); } 29724: 29724: template 29724: 29724: inline bool 29724: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: return std::__is_heap(__first, std::move(__comp), 29724: std::distance(__first, __last)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __push_heap(_RandomAccessIterator __first, 29724: _Distance __holeIndex, _Distance __topIndex, _Tp __value, 29724: _Compare& __comp) 29724: { 29724: _Distance __parent = (__holeIndex - 1) / 2; 29724: while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) 29724: { 29724: *(__first + __holeIndex) = std::move(*(__first + __parent)); 29724: __holeIndex = __parent; 29724: __parent = (__holeIndex - 1) / 2; 29724: } 29724: *(__first + __holeIndex) = std::move(__value); 29724: } 29724: # 159 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: __gnu_cxx::__ops::_Iter_less_val __comp; 29724: _ValueType __value = std::move(*(__last - 1)); 29724: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 29724: _DistanceType(0), std::move(__value), __comp); 29724: } 29724: # 195 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 29724: __cmp(std::move(__comp)); 29724: _ValueType __value = std::move(*(__last - 1)); 29724: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 29724: _DistanceType(0), std::move(__value), __cmp); 29724: } 29724: 29724: template 29724: 29724: void 29724: __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, 29724: _Distance __len, _Tp __value, _Compare __comp) 29724: { 29724: const _Distance __topIndex = __holeIndex; 29724: _Distance __secondChild = __holeIndex; 29724: while (__secondChild < (__len - 1) / 2) 29724: { 29724: __secondChild = 2 * (__secondChild + 1); 29724: if (__comp(__first + __secondChild, 29724: __first + (__secondChild - 1))) 29724: __secondChild--; 29724: *(__first + __holeIndex) = std::move(*(__first + __secondChild)); 29724: __holeIndex = __secondChild; 29724: } 29724: if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) 29724: { 29724: __secondChild = 2 * (__secondChild + 1); 29724: *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) 29724: ; 29724: __holeIndex = __secondChild - 1; 29724: } 29724: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 29724: __cmp(std::move(__comp)); 29724: std::__push_heap(__first, __holeIndex, __topIndex, 29724: std::move(__value), __cmp); 29724: } 29724: 29724: template 29724: 29724: inline void 29724: __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _RandomAccessIterator __result, _Compare& __comp) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: _ValueType __value = std::move(*__result); 29724: *__result = std::move(*__first); 29724: std::__adjust_heap(__first, _DistanceType(0), 29724: _DistanceType(__last - __first), 29724: std::move(__value), __comp); 29724: } 29724: # 280 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: if (__last - __first > 1) 29724: { 29724: --__last; 29724: __gnu_cxx::__ops::_Iter_less_iter __comp; 29724: std::__pop_heap(__first, __last, __last, __comp); 29724: } 29724: } 29724: # 314 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: pop_heap(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: if (__last - __first > 1) 29724: { 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: --__last; 29724: std::__pop_heap(__first, __last, __last, __cmp); 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare& __comp) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: if (__last - __first < 2) 29724: return; 29724: 29724: const _DistanceType __len = __last - __first; 29724: _DistanceType __parent = (__len - 2) / 2; 29724: while (true) 29724: { 29724: _ValueType __value = std::move(*(__first + __parent)); 29724: std::__adjust_heap(__first, __parent, __len, std::move(__value), 29724: __comp); 29724: if (__parent == 0) 29724: return; 29724: __parent--; 29724: } 29724: } 29724: # 372 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: __gnu_cxx::__ops::_Iter_less_iter __comp; 29724: std::__make_heap(__first, __last, __comp); 29724: } 29724: # 399 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: std::__make_heap(__first, __last, __cmp); 29724: } 29724: 29724: template 29724: 29724: void 29724: __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare& __comp) 29724: { 29724: while (__last - __first > 1) 29724: { 29724: --__last; 29724: std::__pop_heap(__first, __last, __last, __comp); 29724: } 29724: } 29724: # 437 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: __gnu_cxx::__ops::_Iter_less_iter __comp; 29724: std::__sort_heap(__first, __last, __comp); 29724: } 29724: # 465 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: 29724: inline void 29724: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: std::__sort_heap(__first, __last, __cmp); 29724: } 29724: # 494 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _RandomAccessIterator 29724: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: __gnu_cxx::__ops::_Iter_less_iter __comp; 29724: return __first + 29724: std::__is_heap_until(__first, std::distance(__first, __last), __comp); 29724: } 29724: # 523 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _RandomAccessIterator 29724: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: return __first 29724: + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); 29724: } 29724: # 548 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { return std::is_heap_until(__first, __last) == __last; } 29724: # 562 "/usr/include/c++/14/bits/stl_heap.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: const auto __dist = std::distance(__first, __last); 29724: typedef __decltype(__comp) _Cmp; 29724: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29724: return std::__is_heap_until(__first, __dist, __cmp) == __dist; 29724: } 29724: 29724: 29724: 29724: } 29724: # 62 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/uniform_int_dist.h" 1 3 29724: # 41 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 64 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: template 29724: constexpr bool 29724: _Power_of_2(_Tp __x) 29724: { 29724: return ((__x - 1) & __x) == 0; 29724: } 29724: } 29724: # 87 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: template 29724: class uniform_int_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "template argument must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: struct param_type 29724: { 29724: typedef uniform_int_distribution<_IntType> distribution_type; 29724: 29724: param_type() : param_type(0) { } 29724: 29724: explicit 29724: param_type(_IntType __a, 29724: _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) 29724: : _M_a(__a), _M_b(__b) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: result_type 29724: a() const 29724: { return _M_a; } 29724: 29724: result_type 29724: b() const 29724: { return _M_b; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: private: 29724: _IntType _M_a; 29724: _IntType _M_b; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: uniform_int_distribution() : uniform_int_distribution(0) { } 29724: 29724: 29724: 29724: 29724: explicit 29724: uniform_int_distribution(_IntType __a, 29724: _IntType __b 29724: = __gnu_cxx::__int_traits<_IntType>::__max) 29724: : _M_param(__a, __b) 29724: { } 29724: 29724: explicit 29724: uniform_int_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset() { } 29724: 29724: result_type 29724: a() const 29724: { return _M_param.a(); } 29724: 29724: result_type 29724: b() const 29724: { return _M_param.b(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return this->a(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return this->b(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomBitGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomBitGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomBitGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomBitGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomBitGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const uniform_int_distribution& __d1, 29724: const uniform_int_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomBitGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: 29724: 29724: 29724: template 29724: static _Up 29724: _S_nd(_Urbg& __g, _Up __range) 29724: { 29724: using _Up_traits = __gnu_cxx::__int_traits<_Up>; 29724: using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; 29724: static_assert(!_Up_traits::__is_signed, "U must be unsigned"); 29724: static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); 29724: static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), 29724: "W must be twice as wide as U"); 29724: 29724: 29724: 29724: 29724: _Wp __product = _Wp(__g()) * _Wp(__range); 29724: _Up __low = _Up(__product); 29724: if (__low < __range) 29724: { 29724: _Up __threshold = -__range % __range; 29724: while (__low < __threshold) 29724: { 29724: __product = _Wp(__g()) * _Wp(__range); 29724: __low = _Up(__product); 29724: } 29724: } 29724: return __product >> _Up_traits::__digits; 29724: } 29724: }; 29724: 29724: template 29724: template 29724: typename uniform_int_distribution<_IntType>::result_type 29724: uniform_int_distribution<_IntType>:: 29724: operator()(_UniformRandomBitGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 29724: typedef typename make_unsigned::type __utype; 29724: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 29724: 29724: constexpr __uctype __urngmin = _UniformRandomBitGenerator::min(); 29724: constexpr __uctype __urngmax = _UniformRandomBitGenerator::max(); 29724: static_assert( __urngmin < __urngmax, 29724: "Uniform random bit generator must define min() < max()"); 29724: constexpr __uctype __urngrange = __urngmax - __urngmin; 29724: 29724: const __uctype __urange 29724: = __uctype(__param.b()) - __uctype(__param.a()); 29724: 29724: __uctype __ret; 29724: if (__urngrange > __urange) 29724: { 29724: 29724: 29724: const __uctype __uerange = __urange + 1; 29724: # 323 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: if constexpr (__urngrange == 0xffffffffU) 29724: { 29724: 29724: 29724: unsigned int __u32erange = __uerange; 29724: __ret = _S_nd(__urng, __u32erange); 29724: } 29724: else 29724: 29724: { 29724: 29724: const __uctype __scaling = __urngrange / __uerange; 29724: const __uctype __past = __uerange * __scaling; 29724: do 29724: __ret = __uctype(__urng()) - __urngmin; 29724: while (__ret >= __past); 29724: __ret /= __scaling; 29724: } 29724: } 29724: else if (__urngrange < __urange) 29724: { 29724: # 359 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: __uctype __tmp; 29724: do 29724: { 29724: const __uctype __uerngrange = __urngrange + 1; 29724: __tmp = (__uerngrange * operator() 29724: (__urng, param_type(0, __urange / __uerngrange))); 29724: __ret = __tmp + (__uctype(__urng()) - __urngmin); 29724: } 29724: while (__ret > __urange || __ret < __tmp); 29724: } 29724: else 29724: __ret = __uctype(__urng()) - __urngmin; 29724: 29724: return __ret + __param.a(); 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: uniform_int_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomBitGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 29724: typedef typename make_unsigned::type __utype; 29724: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 29724: 29724: static_assert( __urng.min() < __urng.max(), 29724: "Uniform random bit generator must define min() < max()"); 29724: 29724: constexpr __uctype __urngmin = __urng.min(); 29724: constexpr __uctype __urngmax = __urng.max(); 29724: constexpr __uctype __urngrange = __urngmax - __urngmin; 29724: const __uctype __urange 29724: = __uctype(__param.b()) - __uctype(__param.a()); 29724: 29724: __uctype __ret; 29724: 29724: if (__urngrange > __urange) 29724: { 29724: if (__detail::_Power_of_2(__urngrange + 1) 29724: && __detail::_Power_of_2(__urange + 1)) 29724: { 29724: while (__f != __t) 29724: { 29724: __ret = __uctype(__urng()) - __urngmin; 29724: *__f++ = (__ret & __urange) + __param.a(); 29724: } 29724: } 29724: else 29724: { 29724: 29724: const __uctype __uerange = __urange + 1; 29724: const __uctype __scaling = __urngrange / __uerange; 29724: const __uctype __past = __uerange * __scaling; 29724: while (__f != __t) 29724: { 29724: do 29724: __ret = __uctype(__urng()) - __urngmin; 29724: while (__ret >= __past); 29724: *__f++ = __ret / __scaling + __param.a(); 29724: } 29724: } 29724: } 29724: else if (__urngrange < __urange) 29724: { 29724: # 444 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29724: __uctype __tmp; 29724: while (__f != __t) 29724: { 29724: do 29724: { 29724: constexpr __uctype __uerngrange = __urngrange + 1; 29724: __tmp = (__uerngrange * operator() 29724: (__urng, param_type(0, __urange / __uerngrange))); 29724: __ret = __tmp + (__uctype(__urng()) - __urngmin); 29724: } 29724: while (__ret > __urange || __ret < __tmp); 29724: *__f++ = __ret; 29724: } 29724: } 29724: else 29724: while (__f != __t) 29724: *__f++ = __uctype(__urng()) - __urngmin + __param.a(); 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstdlib" 1 3 29724: # 39 "/usr/include/c++/14/cstdlib" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdlib" 3 29724: # 72 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, 29724: _Iterator __c, _Compare __comp) 29724: { 29724: if (__comp(__a, __b)) 29724: { 29724: if (__comp(__b, __c)) 29724: std::iter_swap(__result, __b); 29724: else if (__comp(__a, __c)) 29724: std::iter_swap(__result, __c); 29724: else 29724: std::iter_swap(__result, __a); 29724: } 29724: else if (__comp(__a, __c)) 29724: std::iter_swap(__result, __a); 29724: else if (__comp(__b, __c)) 29724: std::iter_swap(__result, __c); 29724: else 29724: std::iter_swap(__result, __b); 29724: } 29724: 29724: 29724: template 29724: 29724: inline _InputIterator 29724: __find_if_not(_InputIterator __first, _InputIterator __last, 29724: _Predicate __pred) 29724: { 29724: return std::__find_if(__first, __last, 29724: __gnu_cxx::__ops::__negate(__pred), 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _InputIterator 29724: __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) 29724: { 29724: for (; __len; --__len, (void) ++__first) 29724: if (!__pred(__first)) 29724: break; 29724: return __first; 29724: } 29724: # 148 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _ForwardIterator 29724: __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, 29724: _Integer __count, _UnaryPredicate __unary_pred, 29724: std::forward_iterator_tag) 29724: { 29724: __first = std::__find_if(__first, __last, __unary_pred); 29724: while (__first != __last) 29724: { 29724: typename iterator_traits<_ForwardIterator>::difference_type 29724: __n = __count; 29724: _ForwardIterator __i = __first; 29724: ++__i; 29724: while (__i != __last && __n != 1 && __unary_pred(__i)) 29724: { 29724: ++__i; 29724: --__n; 29724: } 29724: if (__n == 1) 29724: return __first; 29724: if (__i == __last) 29724: return __last; 29724: __first = std::__find_if(++__i, __last, __unary_pred); 29724: } 29724: return __last; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _RandomAccessIter 29724: __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, 29724: _Integer __count, _UnaryPredicate __unary_pred, 29724: std::random_access_iterator_tag) 29724: { 29724: typedef typename std::iterator_traits<_RandomAccessIter>::difference_type 29724: _DistanceType; 29724: 29724: _DistanceType __tailSize = __last - __first; 29724: _DistanceType __remainder = __count; 29724: 29724: while (__remainder <= __tailSize) 29724: { 29724: __first += __remainder; 29724: __tailSize -= __remainder; 29724: 29724: 29724: _RandomAccessIter __backTrack = __first; 29724: while (__unary_pred(--__backTrack)) 29724: { 29724: if (--__remainder == 0) 29724: return (__first - __count); 29724: } 29724: __remainder = __count + 1 - (__first - __backTrack); 29724: } 29724: return __last; 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __search_n(_ForwardIterator __first, _ForwardIterator __last, 29724: _Integer __count, 29724: _UnaryPredicate __unary_pred) 29724: { 29724: if (__count <= 0) 29724: return __first; 29724: 29724: if (__count == 1) 29724: return std::__find_if(__first, __last, __unary_pred); 29724: 29724: return std::__search_n_aux(__first, __last, __count, __unary_pred, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: 29724: template 29724: 29724: _ForwardIterator1 29724: __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: forward_iterator_tag, forward_iterator_tag, 29724: _BinaryPredicate __comp) 29724: { 29724: if (__first2 == __last2) 29724: return __last1; 29724: 29724: _ForwardIterator1 __result = __last1; 29724: while (1) 29724: { 29724: _ForwardIterator1 __new_result 29724: = std::__search(__first1, __last1, __first2, __last2, __comp); 29724: if (__new_result == __last1) 29724: return __result; 29724: else 29724: { 29724: __result = __new_result; 29724: __first1 = __new_result; 29724: ++__first1; 29724: } 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: _BidirectionalIterator1 29724: __find_end(_BidirectionalIterator1 __first1, 29724: _BidirectionalIterator1 __last1, 29724: _BidirectionalIterator2 __first2, 29724: _BidirectionalIterator2 __last2, 29724: bidirectional_iterator_tag, bidirectional_iterator_tag, 29724: _BinaryPredicate __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; 29724: typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; 29724: 29724: _RevIterator1 __rlast1(__first1); 29724: _RevIterator2 __rlast2(__first2); 29724: _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, 29724: _RevIterator2(__last2), __rlast2, 29724: __comp); 29724: 29724: if (__rresult == __rlast1) 29724: return __last1; 29724: else 29724: { 29724: _BidirectionalIterator1 __result = __rresult.base(); 29724: std::advance(__result, -std::distance(__first2, __last2)); 29724: return __result; 29724: } 29724: } 29724: # 322 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator1 29724: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__find_end(__first1, __last1, __first2, __last2, 29724: std::__iterator_category(__first1), 29724: std::__iterator_category(__first2), 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 371 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator1 29724: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: _BinaryPredicate __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__find_end(__first1, __last1, __first2, __last2, 29724: std::__iterator_category(__first1), 29724: std::__iterator_category(__first2), 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 407 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29724: { return __last == std::find_if_not(__first, __last, __pred); } 29724: # 425 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29724: { return __last == std::find_if(__first, __last, __pred); } 29724: # 444 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29724: { return !std::none_of(__first, __last, __pred); } 29724: # 460 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _InputIterator 29724: find_if_not(_InputIterator __first, _InputIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: return std::__find_if_not(__first, __last, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: # 485 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_partitioned(_InputIterator __first, _InputIterator __last, 29724: _Predicate __pred) 29724: { 29724: __first = std::find_if_not(__first, __last, __pred); 29724: if (__first == __last) 29724: return true; 29724: ++__first; 29724: return std::none_of(__first, __last, __pred); 29724: } 29724: # 507 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _ForwardIterator 29724: partition_point(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: typedef typename iterator_traits<_ForwardIterator>::difference_type 29724: _DistanceType; 29724: 29724: _DistanceType __len = std::distance(__first, __last); 29724: 29724: while (__len > 0) 29724: { 29724: _DistanceType __half = __len >> 1; 29724: _ForwardIterator __middle = __first; 29724: std::advance(__middle, __half); 29724: if (__pred(*__middle)) 29724: { 29724: __first = __middle; 29724: ++__first; 29724: __len = __len - __half - 1; 29724: } 29724: else 29724: __len = __half; 29724: } 29724: return __first; 29724: } 29724: 29724: 29724: template 29724: 29724: _OutputIterator 29724: __remove_copy_if(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Predicate __pred) 29724: { 29724: for (; __first != __last; ++__first) 29724: if (!__pred(__first)) 29724: { 29724: *__result = *__first; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: # 574 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: remove_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, const _Tp& __value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__remove_copy_if(__first, __last, __result, 29724: __gnu_cxx::__ops::__iter_equals_val(__value)); 29724: } 29724: # 607 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: remove_copy_if(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__remove_copy_if(__first, __last, __result, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: # 642 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _OutputIterator 29724: copy_if(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: if (__pred(*__first)) 29724: { 29724: *__result = *__first; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __copy_n(_InputIterator __first, _Size __n, 29724: _OutputIterator __result, input_iterator_tag) 29724: { 29724: return std::__niter_wrap(__result, 29724: __copy_n_a(__first, __n, 29724: std::__niter_base(__result), true)); 29724: } 29724: 29724: template 29724: 29724: inline _OutputIterator 29724: __copy_n(_RandomAccessIterator __first, _Size __n, 29724: _OutputIterator __result, random_access_iterator_tag) 29724: { return std::copy(__first, __first + __n, __result); } 29724: # 698 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: const auto __n2 = std::__size_to_integer(__n); 29724: if (__n2 <= 0) 29724: return __result; 29724: 29724: ; 29724: ; 29724: 29724: return std::__copy_n(__first, __n2, __result, 29724: std::__iterator_category(__first)); 29724: } 29724: # 734 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: pair<_OutputIterator1, _OutputIterator2> 29724: partition_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator1 __out_true, _OutputIterator2 __out_false, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: if (__pred(*__first)) 29724: { 29724: *__out_true = *__first; 29724: ++__out_true; 29724: } 29724: else 29724: { 29724: *__out_false = *__first; 29724: ++__out_false; 29724: } 29724: 29724: return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); 29724: } 29724: # 785 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: remove(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__remove_if(__first, __last, 29724: __gnu_cxx::__ops::__iter_equals_val(__value)); 29724: } 29724: # 819 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: remove_if(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__remove_if(__first, __last, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: if (__first == __last) 29724: return __last; 29724: _ForwardIterator __next = __first; 29724: while (++__next != __last) 29724: { 29724: if (__binary_pred(__first, __next)) 29724: return __first; 29724: __first = __next; 29724: } 29724: return __last; 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __unique(_ForwardIterator __first, _ForwardIterator __last, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: __first = std::__adjacent_find(__first, __last, __binary_pred); 29724: if (__first == __last) 29724: return __last; 29724: 29724: 29724: _ForwardIterator __dest = __first; 29724: ++__first; 29724: while (++__first != __last) 29724: if (!__binary_pred(__dest, __first)) 29724: *++__dest = std::move(*__first); 29724: return ++__dest; 29724: } 29724: # 888 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: unique(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__unique(__first, __last, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 919 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: unique(_ForwardIterator __first, _ForwardIterator __last, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__unique(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _OutputIterator 29724: __unique_copy(_ForwardIterator __first, _ForwardIterator __last, 29724: _OutputIterator __result, _BinaryPredicate __binary_pred, 29724: forward_iterator_tag, output_iterator_tag) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: _ForwardIterator __next = __first; 29724: *__result = *__first; 29724: while (++__next != __last) 29724: if (!__binary_pred(__first, __next)) 29724: { 29724: __first = __next; 29724: *++__result = *__first; 29724: } 29724: return ++__result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _OutputIterator 29724: __unique_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _BinaryPredicate __binary_pred, 29724: input_iterator_tag, output_iterator_tag) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: typename iterator_traits<_InputIterator>::value_type __value = *__first; 29724: __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) 29724: __rebound_pred 29724: = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); 29724: *__result = __value; 29724: while (++__first != __last) 29724: if (!__rebound_pred(__first, __value)) 29724: { 29724: __value = *__first; 29724: *++__result = __value; 29724: } 29724: return ++__result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __unique_copy(_InputIterator __first, _InputIterator __last, 29724: _ForwardIterator __result, _BinaryPredicate __binary_pred, 29724: input_iterator_tag, forward_iterator_tag) 29724: { 29724: 29724: 29724: 29724: 29724: *__result = *__first; 29724: while (++__first != __last) 29724: if (!__binary_pred(__result, __first)) 29724: *++__result = *__first; 29724: return ++__result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, 29724: bidirectional_iterator_tag) 29724: { 29724: while (true) 29724: if (__first == __last || __first == --__last) 29724: return; 29724: else 29724: { 29724: std::iter_swap(__first, __last); 29724: ++__first; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: random_access_iterator_tag) 29724: { 29724: if (__first == __last) 29724: return; 29724: --__last; 29724: while (__first < __last) 29724: { 29724: std::iter_swap(__first, __last); 29724: ++__first; 29724: --__last; 29724: } 29724: } 29724: # 1080 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) 29724: { 29724: 29724: 29724: 29724: ; 29724: std::__reverse(__first, __last, std::__iterator_category(__first)); 29724: } 29724: # 1108 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _OutputIterator 29724: reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: while (__first != __last) 29724: { 29724: --__last; 29724: *__result = *__last; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _EuclideanRingElement 29724: __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) 29724: { 29724: while (__n != 0) 29724: { 29724: _EuclideanRingElement __t = __m % __n; 29724: __m = __n; 29724: __n = __t; 29724: } 29724: return __m; 29724: } 29724: 29724: inline namespace _V2 { 29724: 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __rotate(_ForwardIterator __first, 29724: _ForwardIterator __middle, 29724: _ForwardIterator __last, 29724: forward_iterator_tag) 29724: { 29724: if (__first == __middle) 29724: return __last; 29724: else if (__last == __middle) 29724: return __first; 29724: 29724: _ForwardIterator __first2 = __middle; 29724: do 29724: { 29724: std::iter_swap(__first, __first2); 29724: ++__first; 29724: ++__first2; 29724: if (__first == __middle) 29724: __middle = __first2; 29724: } 29724: while (__first2 != __last); 29724: 29724: _ForwardIterator __ret = __first; 29724: 29724: __first2 = __middle; 29724: 29724: while (__first2 != __last) 29724: { 29724: std::iter_swap(__first, __first2); 29724: ++__first; 29724: ++__first2; 29724: if (__first == __middle) 29724: __middle = __first2; 29724: else if (__first2 == __last) 29724: __first2 = __middle; 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: template 29724: 29724: _BidirectionalIterator 29724: __rotate(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: bidirectional_iterator_tag) 29724: { 29724: 29724: 29724: 29724: 29724: if (__first == __middle) 29724: return __last; 29724: else if (__last == __middle) 29724: return __first; 29724: 29724: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 29724: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 29724: 29724: while (__first != __middle && __middle != __last) 29724: { 29724: std::iter_swap(__first, --__last); 29724: ++__first; 29724: } 29724: 29724: if (__first == __middle) 29724: { 29724: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 29724: return __last; 29724: } 29724: else 29724: { 29724: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 29724: return __first; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: _RandomAccessIterator 29724: __rotate(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, 29724: random_access_iterator_tag) 29724: { 29724: 29724: 29724: 29724: 29724: if (__first == __middle) 29724: return __last; 29724: else if (__last == __middle) 29724: return __first; 29724: 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _Distance; 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: 29724: 29724: typedef typename make_unsigned<_Distance>::type _UDistance; 29724: 29724: 29724: 29724: 29724: _Distance __n = __last - __first; 29724: _Distance __k = __middle - __first; 29724: 29724: if (__k == __n - __k) 29724: { 29724: std::swap_ranges(__first, __middle, __middle); 29724: return __middle; 29724: } 29724: 29724: _RandomAccessIterator __p = __first; 29724: _RandomAccessIterator __ret = __first + (__last - __middle); 29724: 29724: for (;;) 29724: { 29724: if (__k < __n - __k) 29724: { 29724: if (__is_pod(_ValueType) && __k == 1) 29724: { 29724: _ValueType __t = std::move(*__p); 29724: std::move(__p + 1, __p + __n, __p); 29724: *(__p + __n - 1) = std::move(__t); 29724: return __ret; 29724: } 29724: _RandomAccessIterator __q = __p + __k; 29724: for (_Distance __i = 0; __i < __n - __k; ++ __i) 29724: { 29724: std::iter_swap(__p, __q); 29724: ++__p; 29724: ++__q; 29724: } 29724: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 29724: if (__n == 0) 29724: return __ret; 29724: std::swap(__n, __k); 29724: __k = __n - __k; 29724: } 29724: else 29724: { 29724: __k = __n - __k; 29724: if (__is_pod(_ValueType) && __k == 1) 29724: { 29724: _ValueType __t = std::move(*(__p + __n - 1)); 29724: std::move_backward(__p, __p + __n - 1, __p + __n); 29724: *__p = std::move(__t); 29724: return __ret; 29724: } 29724: _RandomAccessIterator __q = __p + __n; 29724: __p = __q - __k; 29724: for (_Distance __i = 0; __i < __n - __k; ++ __i) 29724: { 29724: --__p; 29724: --__q; 29724: std::iter_swap(__p, __q); 29724: } 29724: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 29724: if (__n == 0) 29724: return __ret; 29724: std::swap(__n, __k); 29724: } 29724: } 29724: } 29724: # 1345 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _ForwardIterator 29724: rotate(_ForwardIterator __first, _ForwardIterator __middle, 29724: _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__rotate(__first, __middle, __last, 29724: std::__iterator_category(__first)); 29724: } 29724: 29724: } 29724: # 1383 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, 29724: _ForwardIterator __last, _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::copy(__first, __middle, 29724: std::copy(__middle, __last, __result)); 29724: } 29724: 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __partition(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred, forward_iterator_tag) 29724: { 29724: if (__first == __last) 29724: return __first; 29724: 29724: while (__pred(*__first)) 29724: if (++__first == __last) 29724: return __first; 29724: 29724: _ForwardIterator __next = __first; 29724: 29724: while (++__next != __last) 29724: if (__pred(*__next)) 29724: { 29724: std::iter_swap(__first, __next); 29724: ++__first; 29724: } 29724: 29724: return __first; 29724: } 29724: 29724: 29724: template 29724: 29724: _BidirectionalIterator 29724: __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, 29724: _Predicate __pred, bidirectional_iterator_tag) 29724: { 29724: while (true) 29724: { 29724: while (true) 29724: if (__first == __last) 29724: return __first; 29724: else if (__pred(*__first)) 29724: ++__first; 29724: else 29724: break; 29724: --__last; 29724: while (true) 29724: if (__first == __last) 29724: return __first; 29724: else if (!bool(__pred(*__last))) 29724: --__last; 29724: else 29724: break; 29724: std::iter_swap(__first, __last); 29724: ++__first; 29724: } 29724: } 29724: # 1464 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: _ForwardIterator 29724: __stable_partition_adaptive(_ForwardIterator __first, 29724: _ForwardIterator __last, 29724: _Predicate __pred, _Distance __len, 29724: _Pointer __buffer, 29724: _Distance __buffer_size) 29724: { 29724: if (__len == 1) 29724: return __first; 29724: 29724: if (__len <= __buffer_size) 29724: { 29724: _ForwardIterator __result1 = __first; 29724: _Pointer __result2 = __buffer; 29724: 29724: 29724: 29724: 29724: *__result2 = std::move(*__first); 29724: ++__result2; 29724: ++__first; 29724: for (; __first != __last; ++__first) 29724: if (__pred(__first)) 29724: { 29724: *__result1 = std::move(*__first); 29724: ++__result1; 29724: } 29724: else 29724: { 29724: *__result2 = std::move(*__first); 29724: ++__result2; 29724: } 29724: 29724: std::move(__buffer, __result2, __result1); 29724: return __result1; 29724: } 29724: 29724: _ForwardIterator __middle = __first; 29724: std::advance(__middle, __len / 2); 29724: _ForwardIterator __left_split = 29724: std::__stable_partition_adaptive(__first, __middle, __pred, 29724: __len / 2, __buffer, 29724: __buffer_size); 29724: 29724: 29724: 29724: _Distance __right_len = __len - __len / 2; 29724: _ForwardIterator __right_split = 29724: std::__find_if_not_n(__middle, __right_len, __pred); 29724: 29724: if (__right_len) 29724: __right_split = 29724: std::__stable_partition_adaptive(__right_split, __last, __pred, 29724: __right_len, 29724: __buffer, __buffer_size); 29724: 29724: return std::rotate(__left_split, __middle, __right_split); 29724: } 29724: 29724: template 29724: _ForwardIterator 29724: __stable_partition(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: __first = std::__find_if_not(__first, __last, __pred); 29724: 29724: if (__first == __last) 29724: return __first; 29724: 29724: typedef typename iterator_traits<_ForwardIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_ForwardIterator>::difference_type 29724: _DistanceType; 29724: 29724: _Temporary_buffer<_ForwardIterator, _ValueType> 29724: __buf(__first, std::distance(__first, __last)); 29724: return 29724: std::__stable_partition_adaptive(__first, __last, __pred, 29724: _DistanceType(__buf.requested_size()), 29724: __buf.begin(), 29724: _DistanceType(__buf.size())); 29724: } 29724: # 1566 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: inline _ForwardIterator 29724: stable_partition(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__stable_partition(__first, __last, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __heap_select(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: std::__make_heap(__first, __middle, __comp); 29724: for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) 29724: if (__comp(__i, __first)) 29724: std::__pop_heap(__first, __middle, __i, __comp); 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: _RandomAccessIterator 29724: __partial_sort_copy(_InputIterator __first, _InputIterator __last, 29724: _RandomAccessIterator __result_first, 29724: _RandomAccessIterator __result_last, 29724: _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type 29724: _InputValueType; 29724: typedef iterator_traits<_RandomAccessIterator> _RItTraits; 29724: typedef typename _RItTraits::difference_type _DistanceType; 29724: 29724: if (__result_first == __result_last) 29724: return __result_last; 29724: _RandomAccessIterator __result_real_last = __result_first; 29724: while (__first != __last && __result_real_last != __result_last) 29724: { 29724: *__result_real_last = *__first; 29724: ++__result_real_last; 29724: ++__first; 29724: } 29724: 29724: std::__make_heap(__result_first, __result_real_last, __comp); 29724: while (__first != __last) 29724: { 29724: if (__comp(__first, __result_first)) 29724: std::__adjust_heap(__result_first, _DistanceType(0), 29724: _DistanceType(__result_real_last 29724: - __result_first), 29724: _InputValueType(*__first), __comp); 29724: ++__first; 29724: } 29724: std::__sort_heap(__result_first, __result_real_last, __comp); 29724: return __result_real_last; 29724: } 29724: # 1659 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _RandomAccessIterator 29724: partial_sort_copy(_InputIterator __first, _InputIterator __last, 29724: _RandomAccessIterator __result_first, 29724: _RandomAccessIterator __result_last) 29724: { 29724: # 1674 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__partial_sort_copy(__first, __last, 29724: __result_first, __result_last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 1709 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _RandomAccessIterator 29724: partial_sort_copy(_InputIterator __first, _InputIterator __last, 29724: _RandomAccessIterator __result_first, 29724: _RandomAccessIterator __result_last, 29724: _Compare __comp) 29724: { 29724: # 1726 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__partial_sort_copy(__first, __last, 29724: __result_first, __result_last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: void 29724: __unguarded_linear_insert(_RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: typename iterator_traits<_RandomAccessIterator>::value_type 29724: __val = std::move(*__last); 29724: _RandomAccessIterator __next = __last; 29724: --__next; 29724: while (__comp(__val, __next)) 29724: { 29724: *__last = std::move(*__next); 29724: __last = __next; 29724: --__next; 29724: } 29724: *__last = std::move(__val); 29724: } 29724: 29724: 29724: template 29724: 29724: void 29724: __insertion_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: if (__first == __last) return; 29724: 29724: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29724: { 29724: if (__comp(__i, __first)) 29724: { 29724: typename iterator_traits<_RandomAccessIterator>::value_type 29724: __val = std::move(*__i); 29724: std::move_backward(__first, __i, __i + 1); 29724: *__first = std::move(__val); 29724: } 29724: else 29724: std::__unguarded_linear_insert(__i, 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline void 29724: __unguarded_insertion_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: for (_RandomAccessIterator __i = __first; __i != __last; ++__i) 29724: std::__unguarded_linear_insert(__i, 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: enum { _S_threshold = 16 }; 29724: 29724: 29724: template 29724: 29724: void 29724: __final_insertion_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: if (__last - __first > int(_S_threshold)) 29724: { 29724: std::__insertion_sort(__first, __first + int(_S_threshold), __comp); 29724: std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, 29724: __comp); 29724: } 29724: else 29724: std::__insertion_sort(__first, __last, __comp); 29724: } 29724: 29724: 29724: template 29724: 29724: _RandomAccessIterator 29724: __unguarded_partition(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, 29724: _RandomAccessIterator __pivot, _Compare __comp) 29724: { 29724: while (true) 29724: { 29724: while (__comp(__first, __pivot)) 29724: ++__first; 29724: --__last; 29724: while (__comp(__pivot, __last)) 29724: --__last; 29724: if (!(__first < __last)) 29724: return __first; 29724: std::iter_swap(__first, __last); 29724: ++__first; 29724: } 29724: } 29724: 29724: 29724: template 29724: 29724: inline _RandomAccessIterator 29724: __unguarded_partition_pivot(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: _RandomAccessIterator __mid = __first + (__last - __first) / 2; 29724: std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, 29724: __comp); 29724: return std::__unguarded_partition(__first + 1, __last, __first, __comp); 29724: } 29724: 29724: template 29724: 29724: inline void 29724: __partial_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: std::__heap_select(__first, __middle, __last, __comp); 29724: std::__sort_heap(__first, __middle, __comp); 29724: } 29724: 29724: 29724: template 29724: 29724: void 29724: __introsort_loop(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, 29724: _Size __depth_limit, _Compare __comp) 29724: { 29724: while (__last - __first > int(_S_threshold)) 29724: { 29724: if (__depth_limit == 0) 29724: { 29724: std::__partial_sort(__first, __last, __last, __comp); 29724: return; 29724: } 29724: --__depth_limit; 29724: _RandomAccessIterator __cut = 29724: std::__unguarded_partition_pivot(__first, __last, __comp); 29724: std::__introsort_loop(__cut, __last, __depth_limit, __comp); 29724: __last = __cut; 29724: } 29724: } 29724: 29724: 29724: 29724: template 29724: 29724: inline void 29724: __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: if (__first != __last) 29724: { 29724: std::__introsort_loop(__first, __last, 29724: std::__lg(__last - __first) * 2, 29724: __comp); 29724: std::__final_insertion_sort(__first, __last, __comp); 29724: } 29724: } 29724: 29724: template 29724: 29724: void 29724: __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29724: _RandomAccessIterator __last, _Size __depth_limit, 29724: _Compare __comp) 29724: { 29724: while (__last - __first > 3) 29724: { 29724: if (__depth_limit == 0) 29724: { 29724: std::__heap_select(__first, __nth + 1, __last, __comp); 29724: 29724: std::iter_swap(__first, __nth); 29724: return; 29724: } 29724: --__depth_limit; 29724: _RandomAccessIterator __cut = 29724: std::__unguarded_partition_pivot(__first, __last, __comp); 29724: if (__cut <= __nth) 29724: __first = __cut; 29724: else 29724: __last = __cut; 29724: } 29724: std::__insertion_sort(__first, __last, __comp); 29724: } 29724: # 1960 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__lower_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29724: } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::difference_type 29724: _DistanceType; 29724: 29724: _DistanceType __len = std::distance(__first, __last); 29724: 29724: while (__len > 0) 29724: { 29724: _DistanceType __half = __len >> 1; 29724: _ForwardIterator __middle = __first; 29724: std::advance(__middle, __half); 29724: if (__comp(__val, __middle)) 29724: __len = __half; 29724: else 29724: { 29724: __first = __middle; 29724: ++__first; 29724: __len = __len - __half - 1; 29724: } 29724: } 29724: return __first; 29724: } 29724: # 2016 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__upper_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__val_less_iter()); 29724: } 29724: # 2047 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__upper_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: pair<_ForwardIterator, _ForwardIterator> 29724: __equal_range(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, 29724: _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) 29724: { 29724: typedef typename iterator_traits<_ForwardIterator>::difference_type 29724: _DistanceType; 29724: 29724: _DistanceType __len = std::distance(__first, __last); 29724: 29724: while (__len > 0) 29724: { 29724: _DistanceType __half = __len >> 1; 29724: _ForwardIterator __middle = __first; 29724: std::advance(__middle, __half); 29724: if (__comp_it_val(__middle, __val)) 29724: { 29724: __first = __middle; 29724: ++__first; 29724: __len = __len - __half - 1; 29724: } 29724: else if (__comp_val_it(__val, __middle)) 29724: __len = __half; 29724: else 29724: { 29724: _ForwardIterator __left 29724: = std::__lower_bound(__first, __middle, __val, __comp_it_val); 29724: std::advance(__first, __len); 29724: _ForwardIterator __right 29724: = std::__upper_bound(++__middle, __first, __val, __comp_val_it); 29724: return pair<_ForwardIterator, _ForwardIterator>(__left, __right); 29724: } 29724: } 29724: return pair<_ForwardIterator, _ForwardIterator>(__first, __first); 29724: } 29724: # 2120 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_ForwardIterator, _ForwardIterator> 29724: equal_range(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__equal_range(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_less_val(), 29724: __gnu_cxx::__ops::__val_less_iter()); 29724: } 29724: # 2157 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline pair<_ForwardIterator, _ForwardIterator> 29724: equal_range(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: ; 29724: 29724: return std::__equal_range(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_comp_val(__comp), 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: } 29724: # 2191 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: binary_search(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: _ForwardIterator __i 29724: = std::__lower_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_less_val()); 29724: return __i != __last && !(__val < *__i); 29724: } 29724: # 2225 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: binary_search(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __val, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: ; 29724: 29724: _ForwardIterator __i 29724: = std::__lower_bound(__first, __last, __val, 29724: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29724: return __i != __last && !bool(__comp(__val, *__i)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first2, __first1)) 29724: { 29724: *__result = std::move(*__first2); 29724: ++__first2; 29724: } 29724: else 29724: { 29724: *__result = std::move(*__first1); 29724: ++__first1; 29724: } 29724: ++__result; 29724: } 29724: if (__first1 != __last1) 29724: std::move(__first1, __last1, __result); 29724: } 29724: 29724: 29724: template 29724: void 29724: __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, 29724: _BidirectionalIterator1 __last1, 29724: _BidirectionalIterator2 __first2, 29724: _BidirectionalIterator2 __last2, 29724: _BidirectionalIterator3 __result, 29724: _Compare __comp) 29724: { 29724: if (__first1 == __last1) 29724: { 29724: std::move_backward(__first2, __last2, __result); 29724: return; 29724: } 29724: else if (__first2 == __last2) 29724: return; 29724: 29724: --__last1; 29724: --__last2; 29724: while (true) 29724: { 29724: if (__comp(__last2, __last1)) 29724: { 29724: *--__result = std::move(*__last1); 29724: if (__first1 == __last1) 29724: { 29724: std::move_backward(__first2, ++__last2, __result); 29724: return; 29724: } 29724: --__last1; 29724: } 29724: else 29724: { 29724: *--__result = std::move(*__last2); 29724: if (__first2 == __last2) 29724: return; 29724: --__last2; 29724: } 29724: } 29724: } 29724: 29724: 29724: template 29724: _BidirectionalIterator1 29724: __rotate_adaptive(_BidirectionalIterator1 __first, 29724: _BidirectionalIterator1 __middle, 29724: _BidirectionalIterator1 __last, 29724: _Distance __len1, _Distance __len2, 29724: _BidirectionalIterator2 __buffer, 29724: _Distance __buffer_size) 29724: { 29724: _BidirectionalIterator2 __buffer_end; 29724: if (__len1 > __len2 && __len2 <= __buffer_size) 29724: { 29724: if (__len2) 29724: { 29724: __buffer_end = std::move(__middle, __last, __buffer); 29724: std::move_backward(__first, __middle, __last); 29724: return std::move(__buffer, __buffer_end, __first); 29724: } 29724: else 29724: return __first; 29724: } 29724: else if (__len1 <= __buffer_size) 29724: { 29724: if (__len1) 29724: { 29724: __buffer_end = std::move(__first, __middle, __buffer); 29724: std::move(__middle, __last, __first); 29724: return std::move_backward(__buffer, __buffer_end, __last); 29724: } 29724: else 29724: return __last; 29724: } 29724: else 29724: return std::rotate(__first, __middle, __last); 29724: } 29724: 29724: 29724: template 29724: void 29724: __merge_adaptive(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: _Distance __len1, _Distance __len2, 29724: _Pointer __buffer, _Compare __comp) 29724: { 29724: if (__len1 <= __len2) 29724: { 29724: _Pointer __buffer_end = std::move(__first, __middle, __buffer); 29724: std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, 29724: __first, __comp); 29724: } 29724: else 29724: { 29724: _Pointer __buffer_end = std::move(__middle, __last, __buffer); 29724: std::__move_merge_adaptive_backward(__first, __middle, __buffer, 29724: __buffer_end, __last, __comp); 29724: } 29724: } 29724: 29724: template 29724: void 29724: __merge_adaptive_resize(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: _Distance __len1, _Distance __len2, 29724: _Pointer __buffer, _Distance __buffer_size, 29724: _Compare __comp) 29724: { 29724: if (__len1 <= __buffer_size || __len2 <= __buffer_size) 29724: std::__merge_adaptive(__first, __middle, __last, 29724: __len1, __len2, __buffer, __comp); 29724: else 29724: { 29724: _BidirectionalIterator __first_cut = __first; 29724: _BidirectionalIterator __second_cut = __middle; 29724: _Distance __len11 = 0; 29724: _Distance __len22 = 0; 29724: if (__len1 > __len2) 29724: { 29724: __len11 = __len1 / 2; 29724: std::advance(__first_cut, __len11); 29724: __second_cut 29724: = std::__lower_bound(__middle, __last, *__first_cut, 29724: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29724: __len22 = std::distance(__middle, __second_cut); 29724: } 29724: else 29724: { 29724: __len22 = __len2 / 2; 29724: std::advance(__second_cut, __len22); 29724: __first_cut 29724: = std::__upper_bound(__first, __middle, *__second_cut, 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: __len11 = std::distance(__first, __first_cut); 29724: } 29724: 29724: _BidirectionalIterator __new_middle 29724: = std::__rotate_adaptive(__first_cut, __middle, __second_cut, 29724: _Distance(__len1 - __len11), __len22, 29724: __buffer, __buffer_size); 29724: std::__merge_adaptive_resize(__first, __first_cut, __new_middle, 29724: __len11, __len22, 29724: __buffer, __buffer_size, __comp); 29724: std::__merge_adaptive_resize(__new_middle, __second_cut, __last, 29724: _Distance(__len1 - __len11), 29724: _Distance(__len2 - __len22), 29724: __buffer, __buffer_size, __comp); 29724: } 29724: } 29724: 29724: 29724: template 29724: void 29724: __merge_without_buffer(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: _Distance __len1, _Distance __len2, 29724: _Compare __comp) 29724: { 29724: if (__len1 == 0 || __len2 == 0) 29724: return; 29724: 29724: if (__len1 + __len2 == 2) 29724: { 29724: if (__comp(__middle, __first)) 29724: std::iter_swap(__first, __middle); 29724: return; 29724: } 29724: 29724: _BidirectionalIterator __first_cut = __first; 29724: _BidirectionalIterator __second_cut = __middle; 29724: _Distance __len11 = 0; 29724: _Distance __len22 = 0; 29724: if (__len1 > __len2) 29724: { 29724: __len11 = __len1 / 2; 29724: std::advance(__first_cut, __len11); 29724: __second_cut 29724: = std::__lower_bound(__middle, __last, *__first_cut, 29724: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29724: __len22 = std::distance(__middle, __second_cut); 29724: } 29724: else 29724: { 29724: __len22 = __len2 / 2; 29724: std::advance(__second_cut, __len22); 29724: __first_cut 29724: = std::__upper_bound(__first, __middle, *__second_cut, 29724: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29724: __len11 = std::distance(__first, __first_cut); 29724: } 29724: 29724: _BidirectionalIterator __new_middle 29724: = std::rotate(__first_cut, __middle, __second_cut); 29724: std::__merge_without_buffer(__first, __first_cut, __new_middle, 29724: __len11, __len22, __comp); 29724: std::__merge_without_buffer(__new_middle, __second_cut, __last, 29724: __len1 - __len11, __len2 - __len22, __comp); 29724: } 29724: 29724: template 29724: void 29724: __inplace_merge(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_BidirectionalIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_BidirectionalIterator>::difference_type 29724: _DistanceType; 29724: 29724: if (__first == __middle || __middle == __last) 29724: return; 29724: 29724: const _DistanceType __len1 = std::distance(__first, __middle); 29724: const _DistanceType __len2 = std::distance(__middle, __last); 29724: 29724: 29724: typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; 29724: 29724: 29724: _TmpBuf __buf(__first, std::min(__len1, __len2)); 29724: 29724: if (__builtin_expect(__buf.size() == __buf.requested_size(), true)) 29724: std::__merge_adaptive 29724: (__first, __middle, __last, __len1, __len2, __buf.begin(), __comp); 29724: else if (__builtin_expect(__buf.begin() == 0, false)) 29724: std::__merge_without_buffer 29724: (__first, __middle, __last, __len1, __len2, __comp); 29724: else 29724: std::__merge_adaptive_resize 29724: (__first, __middle, __last, __len1, __len2, __buf.begin(), 29724: _DistanceType(__buf.size()), __comp); 29724: 29724: 29724: 29724: 29724: } 29724: # 2540 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: inline void 29724: inplace_merge(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: std::__inplace_merge(__first, __middle, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 2581 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: inline void 29724: inplace_merge(_BidirectionalIterator __first, 29724: _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: std::__inplace_merge(__first, __middle, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: template 29724: _OutputIterator 29724: __move_merge(_InputIterator __first1, _InputIterator __last1, 29724: _InputIterator __first2, _InputIterator __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first2, __first1)) 29724: { 29724: *__result = std::move(*__first2); 29724: ++__first2; 29724: } 29724: else 29724: { 29724: *__result = std::move(*__first1); 29724: ++__first1; 29724: } 29724: ++__result; 29724: } 29724: return std::move(__first2, __last2, std::move(__first1, __last1, __result)) 29724: 29724: ; 29724: } 29724: 29724: template 29724: void 29724: __merge_sort_loop(_RandomAccessIterator1 __first, 29724: _RandomAccessIterator1 __last, 29724: _RandomAccessIterator2 __result, _Distance __step_size, 29724: _Compare __comp) 29724: { 29724: const _Distance __two_step = 2 * __step_size; 29724: 29724: while (__last - __first >= __two_step) 29724: { 29724: __result = std::__move_merge(__first, __first + __step_size, 29724: __first + __step_size, 29724: __first + __two_step, 29724: __result, __comp); 29724: __first += __two_step; 29724: } 29724: __step_size = std::min(_Distance(__last - __first), __step_size); 29724: 29724: std::__move_merge(__first, __first + __step_size, 29724: __first + __step_size, __last, __result, __comp); 29724: } 29724: 29724: template 29724: 29724: void 29724: __chunk_insertion_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, 29724: _Distance __chunk_size, _Compare __comp) 29724: { 29724: while (__last - __first >= __chunk_size) 29724: { 29724: std::__insertion_sort(__first, __first + __chunk_size, __comp); 29724: __first += __chunk_size; 29724: } 29724: std::__insertion_sort(__first, __last, __comp); 29724: } 29724: 29724: enum { _S_chunk_size = 7 }; 29724: 29724: template 29724: void 29724: __merge_sort_with_buffer(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, 29724: _Pointer __buffer, _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _Distance; 29724: 29724: const _Distance __len = __last - __first; 29724: const _Pointer __buffer_last = __buffer + __len; 29724: 29724: _Distance __step_size = _S_chunk_size; 29724: std::__chunk_insertion_sort(__first, __last, __step_size, __comp); 29724: 29724: while (__step_size < __len) 29724: { 29724: std::__merge_sort_loop(__first, __last, __buffer, 29724: __step_size, __comp); 29724: __step_size *= 2; 29724: std::__merge_sort_loop(__buffer, __buffer_last, __first, 29724: __step_size, __comp); 29724: __step_size *= 2; 29724: } 29724: } 29724: 29724: template 29724: void 29724: __stable_sort_adaptive(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, 29724: _Pointer __buffer, _Compare __comp) 29724: { 29724: std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); 29724: std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); 29724: 29724: std::__merge_adaptive(__first, __middle, __last, 29724: __middle - __first, __last - __middle, 29724: __buffer, __comp); 29724: } 29724: 29724: template 29724: void 29724: __stable_sort_adaptive_resize(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, 29724: _Pointer __buffer, _Distance __buffer_size, 29724: _Compare __comp) 29724: { 29724: const _Distance __len = (__last - __first + 1) / 2; 29724: const _RandomAccessIterator __middle = __first + __len; 29724: if (__len > __buffer_size) 29724: { 29724: std::__stable_sort_adaptive_resize(__first, __middle, __buffer, 29724: __buffer_size, __comp); 29724: std::__stable_sort_adaptive_resize(__middle, __last, __buffer, 29724: __buffer_size, __comp); 29724: std::__merge_adaptive_resize(__first, __middle, __last, 29724: _Distance(__middle - __first), 29724: _Distance(__last - __middle), 29724: __buffer, __buffer_size, 29724: __comp); 29724: } 29724: else 29724: std::__stable_sort_adaptive(__first, __middle, __last, 29724: __buffer, __comp); 29724: } 29724: 29724: 29724: template 29724: void 29724: __inplace_stable_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: if (__last - __first < 15) 29724: { 29724: std::__insertion_sort(__first, __last, __comp); 29724: return; 29724: } 29724: _RandomAccessIterator __middle = __first + (__last - __first) / 2; 29724: std::__inplace_stable_sort(__first, __middle, __comp); 29724: std::__inplace_stable_sort(__middle, __last, __comp); 29724: std::__merge_without_buffer(__first, __middle, __last, 29724: __middle - __first, 29724: __last - __middle, 29724: __comp); 29724: } 29724: # 2767 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: bool 29724: __includes(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first2, __first1)) 29724: return false; 29724: if (!__comp(__first1, __first2)) 29724: ++__first2; 29724: ++__first1; 29724: } 29724: 29724: return __first2 == __last2; 29724: } 29724: # 2805 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: includes(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__includes(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 2850 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: includes(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__includes(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 2886 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: bool 29724: __next_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last, _Compare __comp) 29724: { 29724: if (__first == __last) 29724: return false; 29724: _BidirectionalIterator __i = __first; 29724: ++__i; 29724: if (__i == __last) 29724: return false; 29724: __i = __last; 29724: --__i; 29724: 29724: for(;;) 29724: { 29724: _BidirectionalIterator __ii = __i; 29724: --__i; 29724: if (__comp(__i, __ii)) 29724: { 29724: _BidirectionalIterator __j = __last; 29724: while (!__comp(__i, --__j)) 29724: {} 29724: std::iter_swap(__i, __j); 29724: std::__reverse(__ii, __last, 29724: std::__iterator_category(__first)); 29724: return true; 29724: } 29724: if (__i == __first) 29724: { 29724: std::__reverse(__first, __last, 29724: std::__iterator_category(__first)); 29724: return false; 29724: } 29724: } 29724: } 29724: # 2936 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline bool 29724: next_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__next_permutation 29724: (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 2969 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline bool 29724: next_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__next_permutation 29724: (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: bool 29724: __prev_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last, _Compare __comp) 29724: { 29724: if (__first == __last) 29724: return false; 29724: _BidirectionalIterator __i = __first; 29724: ++__i; 29724: if (__i == __last) 29724: return false; 29724: __i = __last; 29724: --__i; 29724: 29724: for(;;) 29724: { 29724: _BidirectionalIterator __ii = __i; 29724: --__i; 29724: if (__comp(__ii, __i)) 29724: { 29724: _BidirectionalIterator __j = __last; 29724: while (!__comp(--__j, __i)) 29724: {} 29724: std::iter_swap(__i, __j); 29724: std::__reverse(__ii, __last, 29724: std::__iterator_category(__first)); 29724: return true; 29724: } 29724: if (__i == __first) 29724: { 29724: std::__reverse(__first, __last, 29724: std::__iterator_category(__first)); 29724: return false; 29724: } 29724: } 29724: } 29724: # 3039 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline bool 29724: prev_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__prev_permutation(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 3072 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline bool 29724: prev_permutation(_BidirectionalIterator __first, 29724: _BidirectionalIterator __last, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__prev_permutation(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: 29724: _OutputIterator 29724: __replace_copy_if(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: _Predicate __pred, const _Tp& __new_value) 29724: { 29724: for (; __first != __last; ++__first, (void)++__result) 29724: if (__pred(__first)) 29724: *__result = __new_value; 29724: else 29724: *__result = *__first; 29724: return __result; 29724: } 29724: # 3124 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: replace_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: const _Tp& __old_value, const _Tp& __new_value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__replace_copy_if(__first, __last, __result, 29724: __gnu_cxx::__ops::__iter_equals_val(__old_value), 29724: __new_value); 29724: } 29724: # 3159 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: replace_copy_if(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: _Predicate __pred, const _Tp& __new_value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__replace_copy_if(__first, __last, __result, 29724: __gnu_cxx::__ops::__pred_iter(__pred), 29724: __new_value); 29724: } 29724: # 3188 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_sorted(_ForwardIterator __first, _ForwardIterator __last) 29724: { return std::is_sorted_until(__first, __last) == __last; } 29724: # 3203 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_sorted(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { return std::is_sorted_until(__first, __last, __comp) == __last; } 29724: 29724: template 29724: 29724: _ForwardIterator 29724: __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: if (__first == __last) 29724: return __last; 29724: 29724: _ForwardIterator __next = __first; 29724: for (++__next; __next != __last; __first = __next, (void)++__next) 29724: if (__comp(__next, __first)) 29724: return __next; 29724: return __next; 29724: } 29724: # 3234 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__is_sorted_until(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 3259 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__is_sorted_until(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 3285 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair 29724: minmax(const _Tp& __a, const _Tp& __b) 29724: { 29724: 29724: 29724: 29724: return __b < __a ? pair(__b, __a) 29724: : pair(__a, __b); 29724: } 29724: # 3306 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair 29724: minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) 29724: { 29724: return __comp(__b, __a) ? pair(__b, __a) 29724: : pair(__a, __b); 29724: } 29724: 29724: template 29724: constexpr 29724: pair<_ForwardIterator, _ForwardIterator> 29724: __minmax_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: _ForwardIterator __next = __first; 29724: if (__first == __last 29724: || ++__next == __last) 29724: return std::make_pair(__first, __first); 29724: 29724: _ForwardIterator __min{}, __max{}; 29724: if (__comp(__next, __first)) 29724: { 29724: __min = __next; 29724: __max = __first; 29724: } 29724: else 29724: { 29724: __min = __first; 29724: __max = __next; 29724: } 29724: 29724: __first = __next; 29724: ++__first; 29724: 29724: while (__first != __last) 29724: { 29724: __next = __first; 29724: if (++__next == __last) 29724: { 29724: if (__comp(__first, __min)) 29724: __min = __first; 29724: else if (!__comp(__first, __max)) 29724: __max = __first; 29724: break; 29724: } 29724: 29724: if (__comp(__next, __first)) 29724: { 29724: if (__comp(__next, __min)) 29724: __min = __next; 29724: if (!__comp(__first, __max)) 29724: __max = __first; 29724: } 29724: else 29724: { 29724: if (__comp(__first, __min)) 29724: __min = __first; 29724: if (!__comp(__next, __max)) 29724: __max = __next; 29724: } 29724: 29724: __first = __next; 29724: ++__first; 29724: } 29724: 29724: return std::make_pair(__min, __max); 29724: } 29724: # 3386 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair<_ForwardIterator, _ForwardIterator> 29724: minmax_element(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__minmax_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 3414 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair<_ForwardIterator, _ForwardIterator> 29724: minmax_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__minmax_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair<_Tp, _Tp> 29724: minmax(initializer_list<_Tp> __l) 29724: { 29724: ; 29724: pair __p = 29724: std::__minmax_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: return std::make_pair(*__p.first, *__p.second); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline pair<_Tp, _Tp> 29724: minmax(initializer_list<_Tp> __l, _Compare __comp) 29724: { 29724: ; 29724: pair __p = 29724: std::__minmax_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: return std::make_pair(*__p.first, *__p.second); 29724: } 29724: # 3470 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _BinaryPredicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__is_permutation(__first1, __last1, __first2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 29724: } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: template 29724: 29724: bool 29724: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: _BinaryPredicate __pred) 29724: { 29724: using _Cat1 29724: = typename iterator_traits<_ForwardIterator1>::iterator_category; 29724: using _Cat2 29724: = typename iterator_traits<_ForwardIterator2>::iterator_category; 29724: using _It1_is_RA = is_same<_Cat1, random_access_iterator_tag>; 29724: using _It2_is_RA = is_same<_Cat2, random_access_iterator_tag>; 29724: constexpr bool __ra_iters = __and_<_It1_is_RA, _It2_is_RA>::value; 29724: if constexpr (__ra_iters) 29724: { 29724: if ((__last1 - __first1) != (__last2 - __first2)) 29724: return false; 29724: } 29724: 29724: 29724: 29724: for (; __first1 != __last1 && __first2 != __last2; 29724: ++__first1, (void)++__first2) 29724: if (!__pred(__first1, __first2)) 29724: break; 29724: 29724: if constexpr (__ra_iters) 29724: { 29724: if (__first1 == __last1) 29724: return true; 29724: } 29724: else 29724: { 29724: auto __d1 = std::distance(__first1, __last1); 29724: auto __d2 = std::distance(__first2, __last2); 29724: if (__d1 == 0 && __d2 == 0) 29724: return true; 29724: if (__d1 != __d2) 29724: return false; 29724: } 29724: 29724: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 29724: { 29724: if (__scan != std::__find_if(__first1, __scan, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 29724: continue; 29724: 29724: auto __matches = std::__count_if(__first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 29724: if (0 == __matches 29724: || std::__count_if(__scan, __last1, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 29724: != __matches) 29724: return false; 29724: } 29724: return true; 29724: } 29724: #pragma GCC diagnostic pop 29724: # 3566 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29724: { 29724: ; 29724: ; 29724: 29724: return 29724: std::__is_permutation(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 3594 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29724: _BinaryPredicate __pred) 29724: { 29724: ; 29724: ; 29724: 29724: return std::__is_permutation(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 29724: } 29724: # 3622 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[nodiscard]] constexpr const _Tp& 29724: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!(__hi < __lo))) std::__glibcxx_assert_fail(); } while (false); 29724: return std::min(std::max(__val, __lo), __hi); 29724: } 29724: # 3642 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[nodiscard]] constexpr const _Tp& 29724: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(!__comp(__hi, __lo))) std::__glibcxx_assert_fail(); } while (false); 29724: return std::min(std::max(__val, __lo, __comp), __hi, __comp); 29724: } 29724: # 3672 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: pair<_IntType, _IntType> 29724: __gen_two_uniform_ints(_IntType __b0, _IntType __b1, 29724: _UniformRandomBitGenerator&& __g) 29724: { 29724: _IntType __x 29724: = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); 29724: return std::make_pair(__x / __b1, __x % __b1); 29724: } 29724: # 3694 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: void 29724: shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _UniformRandomNumberGenerator&& __g) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return; 29724: 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: typedef typename std::make_unsigned<_DistanceType>::type __ud_type; 29724: typedef typename std::uniform_int_distribution<__ud_type> __distr_type; 29724: typedef typename __distr_type::param_type __p_type; 29724: 29724: typedef typename remove_reference<_UniformRandomNumberGenerator>::type 29724: _Gen; 29724: typedef typename common_type::type 29724: __uc_type; 29724: 29724: const __uc_type __urngrange = __g.max() - __g.min(); 29724: const __uc_type __urange = __uc_type(__last - __first); 29724: 29724: if (__urngrange / __urange >= __urange) 29724: 29724: { 29724: _RandomAccessIterator __i = __first + 1; 29724: 29724: 29724: 29724: 29724: 29724: if ((__urange % 2) == 0) 29724: { 29724: __distr_type __d{0, 1}; 29724: std::iter_swap(__i++, __first + __d(__g)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: while (__i != __last) 29724: { 29724: const __uc_type __swap_range = __uc_type(__i - __first) + 1; 29724: 29724: const pair<__uc_type, __uc_type> __pospos = 29724: __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); 29724: 29724: std::iter_swap(__i++, __first + __pospos.first); 29724: std::iter_swap(__i++, __first + __pospos.second); 29724: } 29724: 29724: return; 29724: } 29724: 29724: __distr_type __d; 29724: 29724: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29724: std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); 29724: } 29724: 29724: 29724: 29724: # 3777 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _Function 29724: for_each(_InputIterator __first, _InputIterator __last, _Function __f) 29724: { 29724: 29724: 29724: ; 29724: for (; __first != __last; ++__first) 29724: __f(*__first); 29724: return __f; 29724: } 29724: # 3803 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _InputIterator 29724: for_each_n(_InputIterator __first, _Size __n, _Function __f) 29724: { 29724: auto __n2 = std::__size_to_integer(__n); 29724: using _Cat = typename iterator_traits<_InputIterator>::iterator_category; 29724: if constexpr (is_base_of_v) 29724: { 29724: if (__n2 <= 0) 29724: return __first; 29724: auto __last = __first + __n2; 29724: std::for_each(__first, __last, std::move(__f)); 29724: return __last; 29724: } 29724: else 29724: { 29724: while (__n2-->0) 29724: { 29724: __f(*__first); 29724: ++__first; 29724: } 29724: return __first; 29724: } 29724: } 29724: # 3839 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _InputIterator 29724: find(_InputIterator __first, _InputIterator __last, 29724: const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: return std::__find_if(__first, __last, 29724: __gnu_cxx::__ops::__iter_equals_val(__val)); 29724: } 29724: # 3864 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _InputIterator 29724: find_if(_InputIterator __first, _InputIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__find_if(__first, __last, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: # 3896 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _InputIterator 29724: find_first_of(_InputIterator __first1, _InputIterator __last1, 29724: _ForwardIterator __first2, _ForwardIterator __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1) 29724: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 29724: if (*__first1 == *__iter) 29724: return __first1; 29724: return __last1; 29724: } 29724: # 3937 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: _InputIterator 29724: find_first_of(_InputIterator __first1, _InputIterator __last1, 29724: _ForwardIterator __first2, _ForwardIterator __last2, 29724: _BinaryPredicate __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1) 29724: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 29724: if (__comp(*__first1, *__iter)) 29724: return __first1; 29724: return __last1; 29724: } 29724: # 3970 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: adjacent_find(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__adjacent_find(__first, __last, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 3996 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__adjacent_find(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29724: } 29724: # 4022 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline typename iterator_traits<_InputIterator>::difference_type 29724: count(_InputIterator __first, _InputIterator __last, const _Tp& __value) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__count_if(__first, __last, 29724: __gnu_cxx::__ops::__iter_equals_val(__value)); 29724: } 29724: # 4046 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline typename iterator_traits<_InputIterator>::difference_type 29724: count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__count_if(__first, __last, 29724: __gnu_cxx::__ops::__pred_iter(__pred)); 29724: } 29724: # 4087 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator1 29724: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__search(__first1, __last1, __first2, __last2, 29724: __gnu_cxx::__ops::__iter_equal_to_iter()); 29724: } 29724: # 4121 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: search_n(_ForwardIterator __first, _ForwardIterator __last, 29724: _Integer __count, const _Tp& __val) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__search_n(__first, __last, __count, 29724: __gnu_cxx::__ops::__iter_equals_val(__val)); 29724: } 29724: # 4155 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: search_n(_ForwardIterator __first, _ForwardIterator __last, 29724: _Integer __count, const _Tp& __val, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__search_n(__first, __last, __count, 29724: __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); 29724: } 29724: # 4181 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline _ForwardIterator 29724: search(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Searcher& __searcher) 29724: { return __searcher(__first, __last).first; } 29724: # 4205 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _OutputIterator 29724: transform(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _UnaryOperation __unary_op) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first, (void)++__result) 29724: *__result = __unary_op(*__first); 29724: return __result; 29724: } 29724: # 4243 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _OutputIterator 29724: transform(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _OutputIterator __result, 29724: _BinaryOperation __binary_op) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) 29724: *__result = __binary_op(*__first1, *__first2); 29724: return __result; 29724: } 29724: # 4277 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: void 29724: replace(_ForwardIterator __first, _ForwardIterator __last, 29724: const _Tp& __old_value, const _Tp& __new_value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: if (*__first == __old_value) 29724: *__first = __new_value; 29724: } 29724: # 4310 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: void 29724: replace_if(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred, const _Tp& __new_value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: if (__pred(*__first)) 29724: *__first = __new_value; 29724: } 29724: # 4342 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: void 29724: generate(_ForwardIterator __first, _ForwardIterator __last, 29724: _Generator __gen) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: *__first = __gen(); 29724: } 29724: # 4375 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: _OutputIterator 29724: generate_n(_OutputIterator __first, _Size __n, _Generator __gen) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: typedef __decltype(std::__size_to_integer(__n)) _IntSize; 29724: for (_IntSize __niter = std::__size_to_integer(__n); 29724: __niter > 0; --__niter, (void) ++__first) 29724: *__first = __gen(); 29724: return __first; 29724: } 29724: # 4410 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: unique_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: return std::__unique_copy(__first, __last, __result, 29724: __gnu_cxx::__ops::__iter_equal_to_iter(), 29724: std::__iterator_category(__first), 29724: std::__iterator_category(__result)); 29724: } 29724: # 4450 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: unique_copy(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: _BinaryPredicate __binary_pred) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: return std::__unique_copy(__first, __last, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), 29724: std::__iterator_category(__first), 29724: std::__iterator_category(__result)); 29724: } 29724: # 4489 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29724: inline void 29724: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first != __last) 29724: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29724: { 29724: 29724: _RandomAccessIterator __j = __first 29724: + std::rand() % ((__i - __first) + 1); 29724: if (__i != __j) 29724: std::iter_swap(__i, __j); 29724: } 29724: } 29724: # 4528 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29724: void 29724: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: 29724: _RandomNumberGenerator&& __rand) 29724: 29724: 29724: 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return; 29724: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29724: { 29724: _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); 29724: if (__i != __j) 29724: std::iter_swap(__i, __j); 29724: } 29724: } 29724: # 4570 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _ForwardIterator 29724: partition(_ForwardIterator __first, _ForwardIterator __last, 29724: _Predicate __pred) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: return std::__partition(__first, __last, __pred, 29724: std::__iterator_category(__first)); 29724: } 29724: # 4605 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: partial_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: std::__partial_sort(__first, __middle, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 4644 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: partial_sort(_RandomAccessIterator __first, 29724: _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: std::__partial_sort(__first, __middle, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 4681 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29724: _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: if (__first == __last || __nth == __last) 29724: return; 29724: 29724: std::__introselect(__first, __nth, __last, 29724: std::__lg(__last - __first) * 2, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 4721 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29724: _RandomAccessIterator __last, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: 29724: if (__first == __last || __nth == __last) 29724: return; 29724: 29724: std::__introselect(__first, __nth, __last, 29724: std::__lg(__last - __first) * 2, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: # 4759 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 4790 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline void 29724: sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __merge(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first2, __first1)) 29724: { 29724: *__result = *__first2; 29724: ++__first2; 29724: } 29724: else 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: } 29724: ++__result; 29724: } 29724: return std::copy(__first2, __last2, 29724: std::copy(__first1, __last1, __result)); 29724: } 29724: # 4853 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: merge(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__merge(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 4904 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: merge(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__merge(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: inline void 29724: __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _ValueType; 29724: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29724: _DistanceType; 29724: 29724: if (__first == __last) 29724: return; 29724: 29724: 29724: typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; 29724: 29724: 29724: _TmpBuf __buf(__first, (__last - __first + 1) / 2); 29724: 29724: if (__builtin_expect(__buf.requested_size() == __buf.size(), true)) 29724: std::__stable_sort_adaptive(__first, 29724: __first + _DistanceType(__buf.size()), 29724: __last, __buf.begin(), __comp); 29724: else if (__builtin_expect(__buf.begin() == 0, false)) 29724: std::__inplace_stable_sort(__first, __last, __comp); 29724: else 29724: std::__stable_sort_adaptive_resize(__first, __last, __buf.begin(), 29724: _DistanceType(__buf.size()), __comp); 29724: 29724: 29724: 29724: } 29724: # 4982 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: inline void 29724: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: std::__stable_sort(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5016 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: inline void 29724: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: std::__stable_sort(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first1, __first2)) 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: } 29724: else if (__comp(__first2, __first1)) 29724: { 29724: *__result = *__first2; 29724: ++__first2; 29724: } 29724: else 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: ++__first2; 29724: } 29724: ++__result; 29724: } 29724: return std::copy(__first2, __last2, 29724: std::copy(__first1, __last1, __result)); 29724: } 29724: # 5086 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_union(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5137 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_union(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: if (__comp(__first1, __first2)) 29724: ++__first1; 29724: else if (__comp(__first2, __first1)) 29724: ++__first2; 29724: else 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: ++__first2; 29724: ++__result; 29724: } 29724: return __result; 29724: } 29724: # 5210 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_intersection(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5260 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_intersection(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: if (__comp(__first1, __first2)) 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: ++__result; 29724: } 29724: else if (__comp(__first2, __first1)) 29724: ++__first2; 29724: else 29724: { 29724: ++__first1; 29724: ++__first2; 29724: } 29724: return std::copy(__first1, __last1, __result); 29724: } 29724: # 5335 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_difference(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5387 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_difference(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: 29724: _OutputIterator 29724: __set_symmetric_difference(_InputIterator1 __first1, 29724: _InputIterator1 __last1, 29724: _InputIterator2 __first2, 29724: _InputIterator2 __last2, 29724: _OutputIterator __result, 29724: _Compare __comp) 29724: { 29724: while (__first1 != __last1 && __first2 != __last2) 29724: if (__comp(__first1, __first2)) 29724: { 29724: *__result = *__first1; 29724: ++__first1; 29724: ++__result; 29724: } 29724: else if (__comp(__first2, __first1)) 29724: { 29724: *__result = *__first2; 29724: ++__first2; 29724: ++__result; 29724: } 29724: else 29724: { 29724: ++__first1; 29724: ++__first2; 29724: } 29724: return std::copy(__first2, __last2, 29724: std::copy(__first1, __last1, __result)); 29724: } 29724: # 5468 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_symmetric_difference(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5520 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: 29724: inline _OutputIterator 29724: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _InputIterator2 __last2, 29724: _OutputIterator __result, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: ; 29724: ; 29724: 29724: return std::__set_symmetric_difference(__first1, __last1, 29724: __first2, __last2, __result, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: constexpr 29724: _ForwardIterator 29724: __min_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: if (__first == __last) 29724: return __first; 29724: _ForwardIterator __result = __first; 29724: while (++__first != __last) 29724: if (__comp(__first, __result)) 29724: __result = __first; 29724: return __result; 29724: } 29724: # 5574 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: _ForwardIterator 29724: inline min_element(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__min_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5599 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline _ForwardIterator 29724: min_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__min_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: constexpr 29724: _ForwardIterator 29724: __max_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: if (__first == __last) return __first; 29724: _ForwardIterator __result = __first; 29724: while (++__first != __last) 29724: if (__comp(__result, __first)) 29724: __result = __first; 29724: return __result; 29724: } 29724: # 5638 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline _ForwardIterator 29724: max_element(_ForwardIterator __first, _ForwardIterator __last) 29724: { 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__max_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: # 5663 "/usr/include/c++/14/bits/stl_algo.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: inline _ForwardIterator 29724: max_element(_ForwardIterator __first, _ForwardIterator __last, 29724: _Compare __comp) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: ; 29724: 29724: return std::__max_element(__first, __last, 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr 29724: inline _Tp 29724: min(initializer_list<_Tp> __l) 29724: { 29724: ; 29724: return *std::__min_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: 29724: template 29724: constexpr 29724: inline _Tp 29724: min(initializer_list<_Tp> __l, _Compare __comp) 29724: { 29724: ; 29724: return *std::__min_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: template 29724: constexpr 29724: inline _Tp 29724: max(initializer_list<_Tp> __l) 29724: { 29724: ; 29724: return *std::__max_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_less_iter()); 29724: } 29724: 29724: template 29724: constexpr 29724: inline _Tp 29724: max(initializer_list<_Tp> __l, _Compare __comp) 29724: { 29724: ; 29724: return *std::__max_element(__l.begin(), __l.end(), 29724: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: _RandomAccessIterator 29724: __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, 29724: _RandomAccessIterator __out, random_access_iterator_tag, 29724: _Size __n, _UniformRandomBitGenerator&& __g) 29724: { 29724: using __distrib_type = uniform_int_distribution<_Size>; 29724: using __param_type = typename __distrib_type::param_type; 29724: __distrib_type __d{}; 29724: _Size __sample_sz = 0; 29724: while (__first != __last && __sample_sz != __n) 29724: { 29724: __out[__sample_sz++] = *__first; 29724: ++__first; 29724: } 29724: for (auto __pop_sz = __sample_sz; __first != __last; 29724: ++__first, (void) ++__pop_sz) 29724: { 29724: const auto __k = __d(__g, __param_type{0, __pop_sz}); 29724: if (__k < __n) 29724: __out[__k] = *__first; 29724: } 29724: return __out + __sample_sz; 29724: } 29724: 29724: 29724: template 29724: _OutputIterator 29724: __sample(_ForwardIterator __first, _ForwardIterator __last, 29724: forward_iterator_tag, 29724: _OutputIterator __out, _Cat, 29724: _Size __n, _UniformRandomBitGenerator&& __g) 29724: { 29724: using __distrib_type = uniform_int_distribution<_Size>; 29724: using __param_type = typename __distrib_type::param_type; 29724: using _USize = make_unsigned_t<_Size>; 29724: using _Gen = remove_reference_t<_UniformRandomBitGenerator>; 29724: using __uc_type = common_type_t; 29724: 29724: if (__first == __last) 29724: return __out; 29724: 29724: __distrib_type __d{}; 29724: _Size __unsampled_sz = std::distance(__first, __last); 29724: __n = std::min(__n, __unsampled_sz); 29724: 29724: 29724: 29724: 29724: const __uc_type __urngrange = __g.max() - __g.min(); 29724: if (__urngrange / __uc_type(__unsampled_sz) >= __uc_type(__unsampled_sz)) 29724: 29724: 29724: { 29724: while (__n != 0 && __unsampled_sz >= 2) 29724: { 29724: const pair<_Size, _Size> __p = 29724: __gen_two_uniform_ints(__unsampled_sz, __unsampled_sz - 1, __g); 29724: 29724: --__unsampled_sz; 29724: if (__p.first < __n) 29724: { 29724: *__out++ = *__first; 29724: --__n; 29724: } 29724: 29724: ++__first; 29724: 29724: if (__n == 0) break; 29724: 29724: --__unsampled_sz; 29724: if (__p.second < __n) 29724: { 29724: *__out++ = *__first; 29724: --__n; 29724: } 29724: 29724: ++__first; 29724: } 29724: } 29724: 29724: 29724: 29724: for (; __n != 0; ++__first) 29724: if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) 29724: { 29724: *__out++ = *__first; 29724: --__n; 29724: } 29724: return __out; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: _SampleIterator 29724: sample(_PopulationIterator __first, _PopulationIterator __last, 29724: _SampleIterator __out, _Distance __n, 29724: _UniformRandomBitGenerator&& __g) 29724: { 29724: using __pop_cat = typename 29724: std::iterator_traits<_PopulationIterator>::iterator_category; 29724: using __samp_cat = typename 29724: std::iterator_traits<_SampleIterator>::iterator_category; 29724: 29724: static_assert( 29724: __or_, 29724: is_convertible<__samp_cat, random_access_iterator_tag>>::value, 29724: "output range must use a RandomAccessIterator when input range" 29724: " does not meet the ForwardIterator requirements"); 29724: 29724: static_assert(is_integral<_Distance>::value, 29724: "sample size must be an integer type"); 29724: 29724: typename iterator_traits<_PopulationIterator>::difference_type __d = __n; 29724: return std:: 29724: __sample(__first, __last, __pop_cat{}, __out, __samp_cat{}, __d, 29724: std::forward<_UniformRandomBitGenerator>(__g)); 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 62 "/usr/include/c++/14/algorithm" 2 3 29724: # 77 "/usr/include/c++/14/algorithm" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 78 "/usr/include/c++/14/algorithm" 2 3 29724: # 86 "/usr/include/c++/14/algorithm" 3 29724: # 1 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 1 3 29724: # 17 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 3 29724: namespace std 29724: { 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: any_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: none_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: for_each(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Function __f); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: for_each_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, _Function __f); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: find_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: find_if_not(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29724: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29724: _ForwardIterator2 __s_last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29724: typename iterator_traits<_ForwardIterator>::difference_type> 29724: count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29724: typename iterator_traits<_ForwardIterator>::difference_type> 29724: count_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29724: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29724: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29724: _ForwardIterator2 __s_last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 29724: const _Tp& __value, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 29724: const _Tp& __value); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: copy_n(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 result, 29724: _Predicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: swap_ranges(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29724: _UnaryOperation __op); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator __result, _BinaryOperation __op); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred, 29724: const _Tp& __new_value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, 29724: const _Tp& __new_value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: replace_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: replace_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29724: const _Tp& __old_value, const _Tp& __new_value); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, const _Tp& __value); 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Generator __g); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: remove_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _Predicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: remove_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29724: const _Tp& __value); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: remove_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29724: _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: reverse_copy(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 29724: _ForwardIterator __d_first); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: rotate_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __middle, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: is_partitioned(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: partition(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _BidirectionalIterator> 29724: stable_partition(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 29724: _UnaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29724: partition_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29724: _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29724: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29724: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _BinaryPredicate __pred); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29724: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29724: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _BinaryPredicate __p); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _BinaryPredicate __p); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2); 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: move(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __d_first); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 29724: _RandomAccessIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29724: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29724: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29724: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29724: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last); 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 29724: _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 29724: _RandomAccessIterator __last); 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _ForwardIterator __d_first); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29724: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 29724: _BidirectionalIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29724: _ForwardIterator2 __last2, _ForwardIterator __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator result, 29724: _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29724: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29724: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29724: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 29724: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 29724: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29724: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _ForwardIterator2 __last2); 29724: 29724: } 29724: # 87 "/usr/include/c++/14/algorithm" 2 3 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 1 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: 29724: 29724: # 1 "/usr/include/c++/14/thread" 1 3 29724: # 32 "/usr/include/c++/14/thread" 3 29724: 29724: # 33 "/usr/include/c++/14/thread" 3 29724: # 45 "/usr/include/c++/14/thread" 3 29724: # 1 "/usr/include/c++/14/bits/std_thread.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/std_thread.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/std_thread.h" 3 29724: # 52 "/usr/include/c++/14/bits/std_thread.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 82 "/usr/include/c++/14/bits/std_thread.h" 3 29724: class thread 29724: { 29724: public: 29724: 29724: using native_handle_type = __gthread_t; 29724: # 96 "/usr/include/c++/14/bits/std_thread.h" 3 29724: class id 29724: { 29724: native_handle_type _M_thread; 29724: 29724: public: 29724: id() noexcept : _M_thread() { } 29724: 29724: explicit 29724: id(native_handle_type __id) : _M_thread(__id) { } 29724: 29724: private: 29724: friend class thread; 29724: friend struct hash; 29724: 29724: friend bool 29724: operator==(id __x, id __y) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator<(id __x, id __y) noexcept; 29724: 29724: 29724: template 29724: friend basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, id __id); 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: private: 29724: id _M_id; 29724: 29724: 29724: 29724: 29724: template 29724: using __not_same = __not_, thread>>; 29724: 29724: public: 29724: thread() noexcept = default; 29724: 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: 29724: 29724: static void 29724: _M_thread_deps_never_run() { 29724: 29724: 29724: 29724: 29724: } 29724: 29724: public: 29724: template>> 29724: explicit 29724: thread(_Callable&& __f, _Args&&... __args) 29724: { 29724: static_assert( __is_invocable::type, 29724: typename decay<_Args>::type...>::value, 29724: "std::thread arguments must be invocable after conversion to rvalues" 29724: ); 29724: 29724: using _Wrapper = _Call_wrapper<_Callable, _Args...>; 29724: 29724: 29724: _M_start_thread(_State_ptr(new _State_impl<_Wrapper>( 29724: std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), 29724: _M_thread_deps_never_run); 29724: } 29724: 29724: 29724: ~thread() 29724: { 29724: if (joinable()) 29724: std::__terminate(); 29724: } 29724: 29724: thread(const thread&) = delete; 29724: 29724: thread(thread&& __t) noexcept 29724: { swap(__t); } 29724: 29724: thread& operator=(const thread&) = delete; 29724: 29724: thread& operator=(thread&& __t) noexcept 29724: { 29724: if (joinable()) 29724: std::__terminate(); 29724: swap(__t); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(thread& __t) noexcept 29724: { std::swap(_M_id, __t._M_id); } 29724: 29724: bool 29724: joinable() const noexcept 29724: { return !(_M_id == id()); } 29724: 29724: void 29724: join(); 29724: 29724: void 29724: detach(); 29724: 29724: id 29724: get_id() const noexcept 29724: { return _M_id; } 29724: 29724: 29724: 29724: native_handle_type 29724: native_handle() 29724: { return _M_id._M_thread; } 29724: 29724: 29724: static unsigned int 29724: hardware_concurrency() noexcept; 29724: 29724: 29724: 29724: private: 29724: 29724: 29724: 29724: struct _State 29724: { 29724: virtual ~_State(); 29724: virtual void _M_run() = 0; 29724: }; 29724: using _State_ptr = unique_ptr<_State>; 29724: 29724: private: 29724: template 29724: struct _State_impl : public _State 29724: { 29724: _Callable _M_func; 29724: 29724: template 29724: _State_impl(_Args&&... __args) 29724: : _M_func(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: void 29724: _M_run() { _M_func(); } 29724: }; 29724: 29724: void 29724: _M_start_thread(_State_ptr, void (*)()); 29724: # 278 "/usr/include/c++/14/bits/std_thread.h" 3 29724: private: 29724: 29724: template 29724: struct _Invoker 29724: { 29724: template 29724: explicit 29724: _Invoker(_Args&&... __args) 29724: : _M_t(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: _Tuple _M_t; 29724: 29724: template 29724: struct __result; 29724: template 29724: struct __result> 29724: : __invoke_result<_Fn, _Args...> 29724: { }; 29724: 29724: template 29724: typename __result<_Tuple>::type 29724: _M_invoke(_Index_tuple<_Ind...>) 29724: { return std::__invoke(std::get<_Ind>(std::move(_M_t))...); } 29724: 29724: typename __result<_Tuple>::type 29724: operator()() 29724: { 29724: using _Indices 29724: = typename _Build_index_tuple::value>::__type; 29724: return _M_invoke(_Indices()); 29724: } 29724: }; 29724: 29724: public: 29724: 29724: template 29724: using _Call_wrapper = _Invoker::type...>>; 29724: 29724: 29724: }; 29724: # 327 "/usr/include/c++/14/bits/std_thread.h" 3 29724: inline void 29724: swap(thread& __x, thread& __y) noexcept 29724: { __x.swap(__y); } 29724: 29724: 29724: inline bool 29724: operator==(thread::id __x, thread::id __y) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: return __x._M_thread == __y._M_thread; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: size_t 29724: operator()(const thread::id& __id) const noexcept 29724: { return std::_Hash_impl::hash(__id._M_thread); } 29724: }; 29724: 29724: namespace this_thread 29724: { 29724: 29724: inline thread::id 29724: get_id() noexcept 29724: { 29724: 29724: 29724: 29724: return thread::id(pthread_self()); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: inline void 29724: yield() noexcept 29724: { 29724: 29724: __gthread_yield(); 29724: 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 46 "/usr/include/c++/14/thread" 2 3 29724: # 1 "/usr/include/c++/14/bits/this_thread_sleep.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/chrono.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/chrono.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/chrono.h" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ratio" 1 3 29724: # 33 "/usr/include/c++/14/ratio" 3 29724: 29724: # 34 "/usr/include/c++/14/ratio" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstdint" 1 3 29724: # 32 "/usr/include/c++/14/cstdint" 3 29724: 29724: # 33 "/usr/include/c++/14/cstdint" 3 29724: # 48 "/usr/include/c++/14/cstdint" 3 29724: namespace std 29724: { 29724: 29724: using ::int8_t; 29724: using ::int16_t; 29724: using ::int32_t; 29724: using ::int64_t; 29724: 29724: using ::int_fast8_t; 29724: using ::int_fast16_t; 29724: using ::int_fast32_t; 29724: using ::int_fast64_t; 29724: 29724: using ::int_least8_t; 29724: using ::int_least16_t; 29724: using ::int_least32_t; 29724: using ::int_least64_t; 29724: 29724: using ::intmax_t; 29724: using ::intptr_t; 29724: 29724: using ::uint8_t; 29724: using ::uint16_t; 29724: using ::uint32_t; 29724: using ::uint64_t; 29724: 29724: using ::uint_fast8_t; 29724: using ::uint_fast16_t; 29724: using ::uint_fast32_t; 29724: using ::uint_fast64_t; 29724: 29724: using ::uint_least8_t; 29724: using ::uint_least16_t; 29724: using ::uint_least32_t; 29724: using ::uint_least64_t; 29724: 29724: using ::uintmax_t; 29724: using ::uintptr_t; 29724: # 142 "/usr/include/c++/14/cstdint" 3 29724: } 29724: # 41 "/usr/include/c++/14/ratio" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 44 "/usr/include/c++/14/ratio" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 59 "/usr/include/c++/14/ratio" 3 29724: template 29724: struct __static_sign 29724: : integral_constant 29724: { }; 29724: 29724: template 29724: struct __static_abs 29724: : integral_constant::value> 29724: { }; 29724: 29724: template 29724: struct __static_gcd 29724: : __static_gcd<_Qn, (_Pn % _Qn)> 29724: { }; 29724: 29724: template 29724: struct __static_gcd<_Pn, 0> 29724: : integral_constant::value> 29724: { }; 29724: 29724: template 29724: struct __static_gcd<0, _Qn> 29724: : integral_constant::value> 29724: { }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __safe_multiply 29724: { 29724: private: 29724: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29724: 29724: static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; 29724: static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; 29724: static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; 29724: static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; 29724: 29724: static_assert(__a1 == 0 || __b1 == 0, 29724: "overflow in multiplication"); 29724: static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 29724: "overflow in multiplication"); 29724: static_assert(__b0 * __a0 <= 0x7fffffffffffffffLL, 29724: "overflow in multiplication"); 29724: static_assert((__a0 * __b1 + __b0 * __a1) * __c 29724: <= 0x7fffffffffffffffLL - __b0 * __a0, 29724: "overflow in multiplication"); 29724: 29724: public: 29724: static const intmax_t value = _Pn * _Qn; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __big_less 29724: : integral_constant 29724: { }; 29724: 29724: template 29724: struct __big_add 29724: { 29724: static constexpr uintmax_t __lo = __lo1 + __lo2; 29724: static constexpr uintmax_t __hi = (__hi1 + __hi2 + 29724: (__lo1 + __lo2 < __lo1)); 29724: }; 29724: 29724: 29724: template 29724: struct __big_sub 29724: { 29724: static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 29724: "Internal library error"); 29724: static constexpr uintmax_t __lo = __lo1 - __lo2; 29724: static constexpr uintmax_t __hi = (__hi1 - __hi2 - 29724: (__lo1 < __lo2)); 29724: }; 29724: 29724: 29724: template 29724: struct __big_mul 29724: { 29724: private: 29724: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29724: static constexpr uintmax_t __x0 = __x % __c; 29724: static constexpr uintmax_t __x1 = __x / __c; 29724: static constexpr uintmax_t __y0 = __y % __c; 29724: static constexpr uintmax_t __y1 = __y / __c; 29724: static constexpr uintmax_t __x0y0 = __x0 * __y0; 29724: static constexpr uintmax_t __x0y1 = __x0 * __y1; 29724: static constexpr uintmax_t __x1y0 = __x1 * __y0; 29724: static constexpr uintmax_t __x1y1 = __x1 * __y1; 29724: static constexpr uintmax_t __mix = __x0y1 + __x1y0; 29724: static constexpr uintmax_t __mix_lo = __mix * __c; 29724: static constexpr uintmax_t __mix_hi 29724: = __mix / __c + ((__mix < __x0y1) ? __c : 0); 29724: typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; 29724: public: 29724: static constexpr uintmax_t __hi = _Res::__hi; 29724: static constexpr uintmax_t __lo = _Res::__lo; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __big_div_impl 29724: { 29724: private: 29724: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 29724: "Internal library error"); 29724: static_assert(__n1 < __d, "Internal library error"); 29724: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29724: static constexpr uintmax_t __d1 = __d / __c; 29724: static constexpr uintmax_t __d0 = __d % __c; 29724: 29724: static constexpr uintmax_t __q1x = __n1 / __d1; 29724: static constexpr uintmax_t __r1x = __n1 % __d1; 29724: static constexpr uintmax_t __m = __q1x * __d0; 29724: static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; 29724: static constexpr uintmax_t __r1z = __r1y + __d; 29724: static constexpr uintmax_t __r1 29724: = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) 29724: ? (__r1z + __d) : __r1z : __r1y) - __m; 29724: static constexpr uintmax_t __q1 29724: = __q1x - ((__r1y < __m) 29724: ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); 29724: static constexpr uintmax_t __q0x = __r1 / __d1; 29724: static constexpr uintmax_t __r0x = __r1 % __d1; 29724: static constexpr uintmax_t __n = __q0x * __d0; 29724: static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; 29724: static constexpr uintmax_t __r0z = __r0y + __d; 29724: static constexpr uintmax_t __r0 29724: = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) 29724: ? (__r0z + __d) : __r0z : __r0y) - __n; 29724: static constexpr uintmax_t __q0 29724: = __q0x - ((__r0y < __n) ? ((__r0z >= __d) 29724: && (__r0z < __n)) ? 2 : 1 : 0); 29724: 29724: public: 29724: static constexpr uintmax_t __quot = __q1 * __c + __q0; 29724: static constexpr uintmax_t __rem = __r0; 29724: 29724: private: 29724: typedef __big_mul<__quot, __d> _Prod; 29724: typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; 29724: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 29724: "Internal library error"); 29724: }; 29724: 29724: template 29724: struct __big_div 29724: { 29724: private: 29724: static_assert(__d != 0, "Internal library error"); 29724: static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), 29724: "This library calls __builtin_clzll on uintmax_t, which " 29724: "is unsafe on your platform. Please complain to " 29724: "http://gcc.gnu.org/bugzilla/"); 29724: static constexpr int __shift = __builtin_clzll(__d); 29724: static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; 29724: static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; 29724: static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; 29724: static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; 29724: static constexpr uintmax_t __new_d = __d * __c1; 29724: static constexpr uintmax_t __new_n0 = __n0 * __c1; 29724: static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; 29724: static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; 29724: static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; 29724: typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; 29724: 29724: public: 29724: static constexpr uintmax_t __quot_hi = __n1 / __d; 29724: static constexpr uintmax_t __quot_lo = _Res::__quot; 29724: static constexpr uintmax_t __rem = _Res::__rem / __c1; 29724: 29724: private: 29724: typedef __big_mul<__quot_lo, __d> _P0; 29724: typedef __big_mul<__quot_hi, __d> _P1; 29724: typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; 29724: 29724: static_assert(_P1::__hi == 0, "Internal library error"); 29724: static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); 29724: 29724: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 29724: "Internal library error"); 29724: static_assert(__rem < __d, "Internal library error"); 29724: }; 29724: # 268 "/usr/include/c++/14/ratio" 3 29724: template 29724: struct ratio 29724: { 29724: static_assert(_Den != 0, "denominator cannot be zero"); 29724: static_assert(_Num >= -0x7fffffffffffffffLL && _Den >= -0x7fffffffffffffffLL, 29724: "out of range"); 29724: 29724: 29724: static constexpr intmax_t num = 29724: _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; 29724: 29724: static constexpr intmax_t den = 29724: __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; 29724: 29724: typedef ratio type; 29724: }; 29724: # 295 "/usr/include/c++/14/ratio" 3 29724: template 29724: struct __is_ratio 29724: : std::false_type 29724: { }; 29724: 29724: template 29724: struct __is_ratio> 29724: : std::true_type 29724: { }; 29724: 29724: 29724: template 29724: constexpr bool __is_ratio_v = false; 29724: template 29724: constexpr bool __is_ratio_v> = true; 29724: 29724: 29724: template 29724: constexpr bool 29724: __are_both_ratios() noexcept 29724: { 29724: 29724: if constexpr (__is_ratio_v<_R1>) 29724: if constexpr (__is_ratio_v<_R2>) 29724: return true; 29724: return false; 29724: 29724: 29724: 29724: } 29724: 29724: template 29724: struct __ratio_multiply 29724: { 29724: static_assert(std::__are_both_ratios<_R1, _R2>(), 29724: "both template arguments must be a std::ratio"); 29724: 29724: private: 29724: static const intmax_t __gcd1 = 29724: __static_gcd<_R1::num, _R2::den>::value; 29724: static const intmax_t __gcd2 = 29724: __static_gcd<_R2::num, _R1::den>::value; 29724: 29724: public: 29724: typedef ratio< 29724: __safe_multiply<(_R1::num / __gcd1), 29724: (_R2::num / __gcd2)>::value, 29724: __safe_multiply<(_R1::den / __gcd2), 29724: (_R2::den / __gcd1)>::value> type; 29724: 29724: static constexpr intmax_t num = type::num; 29724: static constexpr intmax_t den = type::den; 29724: }; 29724: # 360 "/usr/include/c++/14/ratio" 3 29724: template 29724: using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; 29724: 29724: 29724: 29724: template 29724: struct __ratio_divide 29724: { 29724: static_assert(_R2::num != 0, "division by 0"); 29724: 29724: typedef typename __ratio_multiply< 29724: _R1, 29724: ratio<_R2::den, _R2::num>>::type type; 29724: 29724: static constexpr intmax_t num = type::num; 29724: static constexpr intmax_t den = type::den; 29724: }; 29724: # 389 "/usr/include/c++/14/ratio" 3 29724: template 29724: using ratio_divide = typename __ratio_divide<_R1, _R2>::type; 29724: 29724: 29724: template 29724: struct ratio_equal 29724: : integral_constant 29724: { 29724: static_assert(std::__are_both_ratios<_R1, _R2>(), 29724: "both template arguments must be a std::ratio"); 29724: }; 29724: 29724: 29724: template 29724: struct ratio_not_equal 29724: : integral_constant::value> 29724: { }; 29724: 29724: 29724: 29724: 29724: template, 29724: typename _Right = __big_mul<_R2::num,_R1::den> > 29724: struct __ratio_less_impl_1 29724: : integral_constant::value> 29724: { }; 29724: 29724: template::value 29724: != __static_sign<_R2::num>::value)), 29724: bool = (__static_sign<_R1::num>::value == -1 29724: && __static_sign<_R2::num>::value == -1)> 29724: struct __ratio_less_impl 29724: : __ratio_less_impl_1<_R1, _R2>::type 29724: { }; 29724: 29724: template 29724: struct __ratio_less_impl<_R1, _R2, true, false> 29724: : integral_constant 29724: { }; 29724: 29724: template 29724: struct __ratio_less_impl<_R1, _R2, false, true> 29724: : __ratio_less_impl_1, 29724: ratio<-_R1::num, _R1::den> >::type 29724: { }; 29724: 29724: 29724: 29724: 29724: template 29724: struct ratio_less 29724: : __ratio_less_impl<_R1, _R2>::type 29724: { 29724: static_assert(std::__are_both_ratios<_R1, _R2>(), 29724: "both template arguments must be a std::ratio"); 29724: }; 29724: 29724: 29724: template 29724: struct ratio_less_equal 29724: : integral_constant::value> 29724: { }; 29724: 29724: 29724: template 29724: struct ratio_greater 29724: : integral_constant::value> 29724: { }; 29724: 29724: 29724: template 29724: struct ratio_greater_equal 29724: : integral_constant::value> 29724: { }; 29724: 29724: 29724: template 29724: inline constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; 29724: template 29724: inline constexpr bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; 29724: template 29724: inline constexpr bool ratio_less_v = ratio_less<_R1, _R2>::value; 29724: template 29724: inline constexpr bool ratio_less_equal_v 29724: = ratio_less_equal<_R1, _R2>::value; 29724: template 29724: inline constexpr bool ratio_greater_v = ratio_greater<_R1, _R2>::value; 29724: template 29724: inline constexpr bool ratio_greater_equal_v 29724: = ratio_greater_equal<_R1, _R2>::value; 29724: 29724: 29724: 29724: 29724: template= 0), 29724: bool = (_R2::num >= 0), 29724: bool = ratio_less::value, _R1::den>, 29724: ratio<__static_abs<_R2::num>::value, _R2::den> >::value> 29724: struct __ratio_add_impl 29724: { 29724: private: 29724: typedef typename __ratio_add_impl< 29724: ratio<-_R1::num, _R1::den>, 29724: ratio<-_R2::num, _R2::den> >::type __t; 29724: public: 29724: typedef ratio<-__t::num, __t::den> type; 29724: }; 29724: 29724: 29724: template 29724: struct __ratio_add_impl<_R1, _R2, true, true, __b> 29724: { 29724: private: 29724: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 29724: static constexpr uintmax_t __d2 = _R2::den / __g; 29724: typedef __big_mul<_R1::den, __d2> __d; 29724: typedef __big_mul<_R1::num, _R2::den / __g> __x; 29724: typedef __big_mul<_R2::num, _R1::den / __g> __y; 29724: typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 29724: static_assert(__n::__hi >= __x::__hi, "Internal library error"); 29724: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 29724: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 29724: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 29724: static_assert(__n_final::__rem == 0, "Internal library error"); 29724: static_assert(__n_final::__quot_hi == 0 && 29724: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29724: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 29724: static_assert(__d_final::__hi == 0 && 29724: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29724: public: 29724: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 29724: }; 29724: 29724: template 29724: struct __ratio_add_impl<_R1, _R2, false, true, true> 29724: : __ratio_add_impl<_R2, _R1> 29724: { }; 29724: 29724: 29724: template 29724: struct __ratio_add_impl<_R1, _R2, true, false, false> 29724: { 29724: private: 29724: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 29724: static constexpr uintmax_t __d2 = _R2::den / __g; 29724: typedef __big_mul<_R1::den, __d2> __d; 29724: typedef __big_mul<_R1::num, _R2::den / __g> __x; 29724: typedef __big_mul<-_R2::num, _R1::den / __g> __y; 29724: typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 29724: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 29724: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 29724: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 29724: static_assert(__n_final::__rem == 0, "Internal library error"); 29724: static_assert(__n_final::__quot_hi == 0 && 29724: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29724: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 29724: static_assert(__d_final::__hi == 0 && 29724: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29724: public: 29724: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 29724: }; 29724: 29724: template 29724: struct __ratio_add 29724: { 29724: static_assert(std::__are_both_ratios<_R1, _R2>(), 29724: "both template arguments must be a std::ratio"); 29724: 29724: typedef typename __ratio_add_impl<_R1, _R2>::type type; 29724: static constexpr intmax_t num = type::num; 29724: static constexpr intmax_t den = type::den; 29724: }; 29724: # 578 "/usr/include/c++/14/ratio" 3 29724: template 29724: using ratio_add = typename __ratio_add<_R1, _R2>::type; 29724: 29724: 29724: 29724: template 29724: struct __ratio_subtract 29724: { 29724: typedef typename __ratio_add< 29724: _R1, 29724: ratio<-_R2::num, _R2::den>>::type type; 29724: 29724: static constexpr intmax_t num = type::num; 29724: static constexpr intmax_t den = type::den; 29724: }; 29724: # 605 "/usr/include/c++/14/ratio" 3 29724: template 29724: using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; 29724: # 618 "/usr/include/c++/14/ratio" 3 29724: using atto = ratio< 1, 1000000000000000000>; 29724: using femto = ratio< 1, 1000000000000000>; 29724: using pico = ratio< 1, 1000000000000>; 29724: using nano = ratio< 1, 1000000000>; 29724: using micro = ratio< 1, 1000000>; 29724: using milli = ratio< 1, 1000>; 29724: using centi = ratio< 1, 100>; 29724: using deci = ratio< 1, 10>; 29724: using deca = ratio< 10, 1>; 29724: using hecto = ratio< 100, 1>; 29724: using kilo = ratio< 1000, 1>; 29724: using mega = ratio< 1000000, 1>; 29724: using giga = ratio< 1000000000, 1>; 29724: using tera = ratio< 1000000000000, 1>; 29724: using peta = ratio< 1000000000000000, 1>; 29724: using exa = ratio< 1000000000000000000, 1>; 29724: # 646 "/usr/include/c++/14/ratio" 3 29724: 29724: } 29724: # 38 "/usr/include/c++/14/bits/chrono.h" 2 3 29724: 29724: # 1 "/usr/include/c++/14/limits" 1 3 29724: # 40 "/usr/include/c++/14/limits" 3 29724: 29724: # 41 "/usr/include/c++/14/limits" 3 29724: # 158 "/usr/include/c++/14/limits" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum float_round_style 29724: { 29724: round_indeterminate = -1, 29724: round_toward_zero = 0, 29724: round_to_nearest = 1, 29724: round_toward_infinity = 2, 29724: round_toward_neg_infinity = 3 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum float_denorm_style 29724: { 29724: 29724: denorm_indeterminate = -1, 29724: 29724: denorm_absent = 0, 29724: 29724: denorm_present = 1 29724: }; 29724: # 202 "/usr/include/c++/14/limits" 3 29724: struct __numeric_limits_base 29724: { 29724: 29724: 29724: static constexpr bool is_specialized = false; 29724: 29724: 29724: 29724: 29724: static constexpr int digits = 0; 29724: 29724: 29724: static constexpr int digits10 = 0; 29724: 29724: 29724: 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: 29724: 29724: static constexpr bool is_signed = false; 29724: 29724: 29724: static constexpr bool is_integer = false; 29724: 29724: 29724: 29724: 29724: static constexpr bool is_exact = false; 29724: 29724: 29724: 29724: static constexpr int radix = 0; 29724: 29724: 29724: 29724: static constexpr int min_exponent = 0; 29724: 29724: 29724: 29724: static constexpr int min_exponent10 = 0; 29724: 29724: 29724: 29724: 29724: static constexpr int max_exponent = 0; 29724: 29724: 29724: 29724: static constexpr int max_exponent10 = 0; 29724: 29724: 29724: static constexpr bool has_infinity = false; 29724: 29724: 29724: 29724: static constexpr bool has_quiet_NaN = false; 29724: 29724: 29724: 29724: static constexpr bool has_signaling_NaN = false; 29724: 29724: 29724: static constexpr float_denorm_style has_denorm = denorm_absent; 29724: 29724: 29724: 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: 29724: 29724: static constexpr bool is_iec559 = false; 29724: 29724: 29724: 29724: 29724: static constexpr bool is_bounded = false; 29724: # 288 "/usr/include/c++/14/limits" 3 29724: static constexpr bool is_modulo = false; 29724: 29724: 29724: static constexpr bool traps = false; 29724: 29724: 29724: static constexpr bool tinyness_before = false; 29724: 29724: 29724: 29724: 29724: static constexpr float_round_style round_style = 29724: round_toward_zero; 29724: }; 29724: # 311 "/usr/include/c++/14/limits" 3 29724: template 29724: struct numeric_limits : public __numeric_limits_base 29724: { 29724: 29724: 29724: static constexpr _Tp 29724: min() noexcept { return _Tp(); } 29724: 29724: 29724: static constexpr _Tp 29724: max() noexcept { return _Tp(); } 29724: 29724: 29724: 29724: 29724: static constexpr _Tp 29724: lowest() noexcept { return _Tp(); } 29724: 29724: 29724: 29724: 29724: static constexpr _Tp 29724: epsilon() noexcept { return _Tp(); } 29724: 29724: 29724: static constexpr _Tp 29724: round_error() noexcept { return _Tp(); } 29724: 29724: 29724: static constexpr _Tp 29724: infinity() noexcept { return _Tp(); } 29724: 29724: 29724: 29724: static constexpr _Tp 29724: quiet_NaN() noexcept { return _Tp(); } 29724: 29724: 29724: 29724: static constexpr _Tp 29724: signaling_NaN() noexcept { return _Tp(); } 29724: 29724: 29724: 29724: 29724: static constexpr _Tp 29724: denorm_min() noexcept { return _Tp(); } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct numeric_limits 29724: : public numeric_limits<_Tp> { }; 29724: 29724: template 29724: struct numeric_limits 29724: : public numeric_limits<_Tp> { }; 29724: 29724: template 29724: struct numeric_limits 29724: : public numeric_limits<_Tp> { }; 29724: # 383 "/usr/include/c++/14/limits" 3 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr bool 29724: min() noexcept { return false; } 29724: 29724: static constexpr bool 29724: max() noexcept { return true; } 29724: 29724: 29724: static constexpr bool 29724: lowest() noexcept { return min(); } 29724: 29724: static constexpr int digits = 1; 29724: static constexpr int digits10 = 0; 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr bool 29724: epsilon() noexcept { return false; } 29724: 29724: static constexpr bool 29724: round_error() noexcept { return false; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr bool 29724: infinity() noexcept { return false; } 29724: 29724: static constexpr bool 29724: quiet_NaN() noexcept { return false; } 29724: 29724: static constexpr bool 29724: signaling_NaN() noexcept { return false; } 29724: 29724: static constexpr bool 29724: denorm_min() noexcept { return false; } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: 29724: 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr char 29724: 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); } 29724: 29724: static constexpr char 29724: max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } 29724: 29724: 29724: static constexpr char 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = ((char)(-1) < 0); 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr char 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr char 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr 29724: char infinity() noexcept { return char(); } 29724: 29724: static constexpr char 29724: quiet_NaN() noexcept { return char(); } 29724: 29724: static constexpr char 29724: signaling_NaN() noexcept { return char(); } 29724: 29724: static constexpr char 29724: denorm_min() noexcept { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = !is_signed; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr signed char 29724: min() noexcept { return -0x7f - 1; } 29724: 29724: static constexpr signed char 29724: max() noexcept { return 0x7f; } 29724: 29724: 29724: static constexpr signed char 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr signed char 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr signed char 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr signed char 29724: infinity() noexcept { return static_cast(0); } 29724: 29724: static constexpr signed char 29724: quiet_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr signed char 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr signed char 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr unsigned char 29724: min() noexcept { return 0; } 29724: 29724: static constexpr unsigned char 29724: max() noexcept { return 0x7f * 2U + 1; } 29724: 29724: 29724: static constexpr unsigned char 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr unsigned char 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr unsigned char 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr unsigned char 29724: infinity() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned char 29724: quiet_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned char 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned char 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = true; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr wchar_t 29724: 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); } 29724: 29724: static constexpr wchar_t 29724: 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); } 29724: 29724: 29724: static constexpr wchar_t 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = ((wchar_t)(-1) < 0); 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr wchar_t 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr wchar_t 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr wchar_t 29724: infinity() noexcept { return wchar_t(); } 29724: 29724: static constexpr wchar_t 29724: quiet_NaN() noexcept { return wchar_t(); } 29724: 29724: static constexpr wchar_t 29724: signaling_NaN() noexcept { return wchar_t(); } 29724: 29724: static constexpr wchar_t 29724: denorm_min() noexcept { return wchar_t(); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = !is_signed; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: # 796 "/usr/include/c++/14/limits" 3 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr char16_t 29724: 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); } 29724: 29724: static constexpr char16_t 29724: 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); } 29724: 29724: static constexpr char16_t 29724: lowest() noexcept { return min(); } 29724: 29724: static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); 29724: static constexpr int max_digits10 = 0; 29724: static constexpr bool is_signed = ((char16_t)(-1) < 0); 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr char16_t 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr char16_t 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr char16_t 29724: infinity() noexcept { return char16_t(); } 29724: 29724: static constexpr char16_t 29724: quiet_NaN() noexcept { return char16_t(); } 29724: 29724: static constexpr char16_t 29724: signaling_NaN() noexcept { return char16_t(); } 29724: 29724: static constexpr char16_t 29724: denorm_min() noexcept { return char16_t(); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = !is_signed; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr char32_t 29724: 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); } 29724: 29724: static constexpr char32_t 29724: 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); } 29724: 29724: static constexpr char32_t 29724: lowest() noexcept { return min(); } 29724: 29724: static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); 29724: static constexpr int max_digits10 = 0; 29724: static constexpr bool is_signed = ((char32_t)(-1) < 0); 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr char32_t 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr char32_t 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr char32_t 29724: infinity() noexcept { return char32_t(); } 29724: 29724: static constexpr char32_t 29724: quiet_NaN() noexcept { return char32_t(); } 29724: 29724: static constexpr char32_t 29724: signaling_NaN() noexcept { return char32_t(); } 29724: 29724: static constexpr char32_t 29724: denorm_min() noexcept { return char32_t(); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = !is_signed; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style = round_toward_zero; 29724: }; 29724: 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr short 29724: min() noexcept { return -0x7fff - 1; } 29724: 29724: static constexpr short 29724: max() noexcept { return 0x7fff; } 29724: 29724: 29724: static constexpr short 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr short 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr short 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr short 29724: infinity() noexcept { return short(); } 29724: 29724: static constexpr short 29724: quiet_NaN() noexcept { return short(); } 29724: 29724: static constexpr short 29724: signaling_NaN() noexcept { return short(); } 29724: 29724: static constexpr short 29724: denorm_min() noexcept { return short(); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr unsigned short 29724: min() noexcept { return 0; } 29724: 29724: static constexpr unsigned short 29724: max() noexcept { return 0x7fff * 2U + 1; } 29724: 29724: 29724: static constexpr unsigned short 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr unsigned short 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr unsigned short 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr unsigned short 29724: infinity() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned short 29724: quiet_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned short 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned short 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = true; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr int 29724: min() noexcept { return -0x7fffffff - 1; } 29724: 29724: static constexpr int 29724: max() noexcept { return 0x7fffffff; } 29724: 29724: 29724: static constexpr int 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr int 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr int 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr int 29724: infinity() noexcept { return static_cast(0); } 29724: 29724: static constexpr int 29724: quiet_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr int 29724: signaling_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr int 29724: denorm_min() noexcept { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr unsigned int 29724: min() noexcept { return 0; } 29724: 29724: static constexpr unsigned int 29724: max() noexcept { return 0x7fffffff * 2U + 1; } 29724: 29724: 29724: static constexpr unsigned int 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr unsigned int 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr unsigned int 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr unsigned int 29724: infinity() noexcept { return static_cast(0); } 29724: 29724: static constexpr unsigned int 29724: quiet_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned int 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned int 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = true; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr long 29724: min() noexcept { return -0x7fffffffL - 1; } 29724: 29724: static constexpr long 29724: max() noexcept { return 0x7fffffffL; } 29724: 29724: 29724: static constexpr long 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); 29724: static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr long 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr long 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr long 29724: infinity() noexcept { return static_cast(0); } 29724: 29724: static constexpr long 29724: quiet_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr long 29724: signaling_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr long 29724: denorm_min() noexcept { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr unsigned long 29724: min() noexcept { return 0; } 29724: 29724: static constexpr unsigned long 29724: max() noexcept { return 0x7fffffffL * 2UL + 1; } 29724: 29724: 29724: static constexpr unsigned long 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr unsigned long 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr unsigned long 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr unsigned long 29724: infinity() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long 29724: quiet_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = true; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr long long 29724: min() noexcept { return -0x7fffffffffffffffLL - 1; } 29724: 29724: static constexpr long long 29724: max() noexcept { return 0x7fffffffffffffffLL; } 29724: 29724: 29724: static constexpr long long 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(long long) * 8 - ((long long)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr long long 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr long long 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr long long 29724: infinity() noexcept { return static_cast(0); } 29724: 29724: static constexpr long long 29724: quiet_NaN() noexcept { return static_cast(0); } 29724: 29724: static constexpr long long 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr long long 29724: denorm_min() noexcept { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr unsigned long long 29724: min() noexcept { return 0; } 29724: 29724: static constexpr unsigned long long 29724: max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } 29724: 29724: 29724: static constexpr unsigned long long 29724: lowest() noexcept { return min(); } 29724: 29724: 29724: static constexpr int digits 29724: = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); 29724: static constexpr int digits10 29724: = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); 29724: 29724: static constexpr int max_digits10 = 0; 29724: 29724: static constexpr bool is_signed = false; 29724: static constexpr bool is_integer = true; 29724: static constexpr bool is_exact = true; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr unsigned long long 29724: epsilon() noexcept { return 0; } 29724: 29724: static constexpr unsigned long long 29724: round_error() noexcept { return 0; } 29724: 29724: static constexpr int min_exponent = 0; 29724: static constexpr int min_exponent10 = 0; 29724: static constexpr int max_exponent = 0; 29724: static constexpr int max_exponent10 = 0; 29724: 29724: static constexpr bool has_infinity = false; 29724: static constexpr bool has_quiet_NaN = false; 29724: static constexpr bool has_signaling_NaN = false; 29724: static constexpr float_denorm_style has_denorm 29724: = denorm_absent; 29724: static constexpr bool has_denorm_loss = false; 29724: 29724: static constexpr unsigned long long 29724: infinity() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long long 29724: quiet_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long long 29724: signaling_NaN() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr unsigned long long 29724: denorm_min() noexcept 29724: { return static_cast(0); } 29724: 29724: static constexpr bool is_iec559 = false; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = true; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = false; 29724: static constexpr float_round_style round_style 29724: = round_toward_zero; 29724: }; 29724: # 1669 "/usr/include/c++/14/limits" 3 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr float 29724: min() noexcept { return 1.1754943508222875e-38F; } 29724: 29724: static constexpr float 29724: max() noexcept { return 3.4028234663852886e+38F; } 29724: 29724: 29724: static constexpr float 29724: lowest() noexcept { return -3.4028234663852886e+38F; } 29724: 29724: 29724: static constexpr int digits = 24; 29724: static constexpr int digits10 = 6; 29724: 29724: static constexpr int max_digits10 29724: = (2 + (24) * 643L / 2136); 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = false; 29724: static constexpr bool is_exact = false; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr float 29724: epsilon() noexcept { return 1.1920928955078125e-7F; } 29724: 29724: static constexpr float 29724: round_error() noexcept { return 0.5F; } 29724: 29724: static constexpr int min_exponent = (-125); 29724: static constexpr int min_exponent10 = (-37); 29724: static constexpr int max_exponent = 128; 29724: static constexpr int max_exponent10 = 38; 29724: 29724: static constexpr bool has_infinity = 1; 29724: static constexpr bool has_quiet_NaN = 1; 29724: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29724: static constexpr float_denorm_style has_denorm 29724: = bool(1) ? denorm_present : denorm_absent; 29724: static constexpr bool has_denorm_loss 29724: = false; 29724: 29724: static constexpr float 29724: infinity() noexcept { return __builtin_huge_valf(); } 29724: 29724: static constexpr float 29724: quiet_NaN() noexcept { return __builtin_nanf(""); } 29724: 29724: static constexpr float 29724: signaling_NaN() noexcept { return __builtin_nansf(""); } 29724: 29724: static constexpr float 29724: denorm_min() noexcept { return 1.4012984643248171e-45F; } 29724: 29724: static constexpr bool is_iec559 29724: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before 29724: = false; 29724: static constexpr float_round_style round_style 29724: = round_to_nearest; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr double 29724: min() noexcept { return double(2.2250738585072014e-308L); } 29724: 29724: static constexpr double 29724: max() noexcept { return double(1.7976931348623157e+308L); } 29724: 29724: 29724: static constexpr double 29724: lowest() noexcept { return -double(1.7976931348623157e+308L); } 29724: 29724: 29724: static constexpr int digits = 53; 29724: static constexpr int digits10 = 15; 29724: 29724: static constexpr int max_digits10 29724: = (2 + (53) * 643L / 2136); 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = false; 29724: static constexpr bool is_exact = false; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr double 29724: epsilon() noexcept { return double(2.2204460492503131e-16L); } 29724: 29724: static constexpr double 29724: round_error() noexcept { return 0.5; } 29724: 29724: static constexpr int min_exponent = (-1021); 29724: static constexpr int min_exponent10 = (-307); 29724: static constexpr int max_exponent = 1024; 29724: static constexpr int max_exponent10 = 308; 29724: 29724: static constexpr bool has_infinity = 1; 29724: static constexpr bool has_quiet_NaN = 1; 29724: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29724: static constexpr float_denorm_style has_denorm 29724: = bool(1) ? denorm_present : denorm_absent; 29724: static constexpr bool has_denorm_loss 29724: = false; 29724: 29724: static constexpr double 29724: infinity() noexcept { return __builtin_huge_val(); } 29724: 29724: static constexpr double 29724: quiet_NaN() noexcept { return __builtin_nan(""); } 29724: 29724: static constexpr double 29724: signaling_NaN() noexcept { return __builtin_nans(""); } 29724: 29724: static constexpr double 29724: denorm_min() noexcept { return double(4.9406564584124654e-324L); } 29724: 29724: static constexpr bool is_iec559 29724: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before 29724: = false; 29724: static constexpr float_round_style round_style 29724: = round_to_nearest; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct numeric_limits 29724: { 29724: static constexpr bool is_specialized = true; 29724: 29724: static constexpr long double 29724: min() noexcept { return 2.2250738585072014e-308L; } 29724: 29724: static constexpr long double 29724: max() noexcept { return 1.7976931348623157e+308L; } 29724: 29724: 29724: static constexpr long double 29724: lowest() noexcept { return -1.7976931348623157e+308L; } 29724: 29724: 29724: static constexpr int digits = 53; 29724: static constexpr int digits10 = 15; 29724: 29724: static constexpr int max_digits10 29724: = (2 + (53) * 643L / 2136); 29724: 29724: static constexpr bool is_signed = true; 29724: static constexpr bool is_integer = false; 29724: static constexpr bool is_exact = false; 29724: static constexpr int radix = 2; 29724: 29724: static constexpr long double 29724: epsilon() noexcept { return 2.2204460492503131e-16L; } 29724: 29724: static constexpr long double 29724: round_error() noexcept { return 0.5L; } 29724: 29724: static constexpr int min_exponent = (-1021); 29724: static constexpr int min_exponent10 = (-307); 29724: static constexpr int max_exponent = 1024; 29724: static constexpr int max_exponent10 = 308; 29724: 29724: static constexpr bool has_infinity = 1; 29724: static constexpr bool has_quiet_NaN = 1; 29724: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29724: static constexpr float_denorm_style has_denorm 29724: = bool(1) ? denorm_present : denorm_absent; 29724: static constexpr bool has_denorm_loss 29724: = false; 29724: 29724: static constexpr long double 29724: infinity() noexcept { return __builtin_huge_vall(); } 29724: 29724: static constexpr long double 29724: quiet_NaN() noexcept { return __builtin_nanl(""); } 29724: 29724: static constexpr long double 29724: signaling_NaN() noexcept { return __builtin_nansl(""); } 29724: 29724: static constexpr long double 29724: denorm_min() noexcept { return 4.9406564584124654e-324L; } 29724: 29724: static constexpr bool is_iec559 29724: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29724: static constexpr bool is_bounded = true; 29724: static constexpr bool is_modulo = false; 29724: 29724: static constexpr bool traps = false; 29724: static constexpr bool tinyness_before = 29724: false; 29724: static constexpr float_round_style round_style = 29724: round_to_nearest; 29724: }; 29724: # 1989 "/usr/include/c++/14/limits" 3 29724: __extension__ template<> struct numeric_limits<_Float32> { static constexpr bool is_specialized = true; static constexpr _Float32 min() noexcept { return 1.1754943508222875e-38F32; } static constexpr _Float32 max() noexcept { return 3.4028234663852886e+38F32; } static constexpr _Float32 lowest() noexcept { return -3.4028234663852886e+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.1920928955078125e-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.4012984643248171e-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; }; 29724: 29724: 29724: __extension__ template<> struct numeric_limits<_Float64> { static constexpr bool is_specialized = true; static constexpr _Float64 min() noexcept { return 2.2250738585072014e-308F64; } static constexpr _Float64 max() noexcept { return 1.7976931348623157e+308F64; } static constexpr _Float64 lowest() noexcept { return -1.7976931348623157e+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.2204460492503131e-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.9406564584124654e-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; }; 29724: # 2222 "/usr/include/c++/14/limits" 3 29724: 29724: } 29724: # 40 "/usr/include/c++/14/bits/chrono.h" 2 3 29724: # 1 "/usr/include/c++/14/ctime" 1 3 29724: # 39 "/usr/include/c++/14/ctime" 3 29724: 29724: # 40 "/usr/include/c++/14/ctime" 3 29724: # 58 "/usr/include/c++/14/ctime" 3 29724: namespace std 29724: { 29724: using ::clock_t; 29724: using ::time_t; 29724: using ::tm; 29724: 29724: using ::clock; 29724: using ::difftime; 29724: using ::mktime; 29724: using ::time; 29724: using ::asctime; 29724: using ::ctime; 29724: using ::gmtime; 29724: using ::localtime; 29724: using ::strftime; 29724: } 29724: 29724: 29724: 29724: namespace std 29724: { 29724: using ::timespec; 29724: using ::timespec_get; 29724: } 29724: # 41 "/usr/include/c++/14/bits/chrono.h" 2 3 29724: # 1 "/usr/include/c++/14/bits/parse_numbers.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/parse_numbers.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/parse_numbers.h" 3 29724: # 42 "/usr/include/c++/14/bits/parse_numbers.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: namespace __parse_int 29724: { 29724: template 29724: struct _Digit; 29724: 29724: template 29724: struct _Digit<_Base, '0'> : integral_constant 29724: { 29724: using __valid = true_type; 29724: }; 29724: 29724: template 29724: struct _Digit<_Base, '1'> : integral_constant 29724: { 29724: using __valid = true_type; 29724: }; 29724: 29724: template 29724: struct _Digit_impl : integral_constant 29724: { 29724: static_assert(_Base > _Val, "invalid digit"); 29724: using __valid = true_type; 29724: }; 29724: 29724: template 29724: struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> 29724: { }; 29724: 29724: template 29724: struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> 29724: { }; 29724: 29724: 29724: template 29724: struct _Digit<_Base, '\''> : integral_constant 29724: { 29724: using __valid = false_type; 29724: }; 29724: 29724: 29724: 29724: template 29724: using __ull_constant = integral_constant; 29724: 29724: template 29724: struct _Power_help 29724: { 29724: using __next = typename _Power_help<_Base, _Digs...>::type; 29724: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 29724: using type 29724: = __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; 29724: }; 29724: 29724: template 29724: struct _Power_help<_Base, _Dig> 29724: { 29724: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 29724: using type = __ull_constant<__valid_digit::value>; 29724: }; 29724: 29724: template 29724: struct _Power : _Power_help<_Base, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Power<_Base> : __ull_constant<0> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct _Number_help 29724: { 29724: using __digit = _Digit<_Base, _Dig>; 29724: using __valid_digit = typename __digit::__valid; 29724: using __next = _Number_help<_Base, 29724: __valid_digit::value ? _Pow / _Base : _Pow, 29724: _Digs...>; 29724: using type = __ull_constant<_Pow * __digit::value + __next::type::value>; 29724: static_assert((type::value / _Pow) == __digit::value, 29724: "integer literal does not fit in unsigned long long"); 29724: }; 29724: 29724: 29724: template 29724: struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> 29724: : _Number_help<_Base, _Pow, _Dig, _Digs...> 29724: { }; 29724: 29724: 29724: template 29724: struct _Number_help<_Base, 1ULL, _Dig> 29724: { 29724: using type = __ull_constant<_Digit<_Base, _Dig>::value>; 29724: }; 29724: 29724: template 29724: struct _Number 29724: : _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Number<_Base> 29724: : __ull_constant<0> 29724: { }; 29724: 29724: 29724: 29724: template 29724: struct _Parse_int; 29724: 29724: template 29724: struct _Parse_int<'0', 'b', _Digs...> 29724: : _Number<2U, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Parse_int<'0', 'B', _Digs...> 29724: : _Number<2U, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Parse_int<'0', 'x', _Digs...> 29724: : _Number<16U, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Parse_int<'0', 'X', _Digs...> 29724: : _Number<16U, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Parse_int<'0', _Digs...> 29724: : _Number<8U, _Digs...>::type 29724: { }; 29724: 29724: template 29724: struct _Parse_int 29724: : _Number<10U, _Digs...>::type 29724: { }; 29724: 29724: } 29724: 29724: 29724: namespace __select_int 29724: { 29724: template 29724: struct _Select_int_base; 29724: 29724: template 29724: struct _Select_int_base<_Val, _IntType, _Ints...> 29724: : __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), 29724: integral_constant<_IntType, (_IntType)_Val>, 29724: _Select_int_base<_Val, _Ints...>> 29724: { }; 29724: 29724: template 29724: struct _Select_int_base<_Val> 29724: { }; 29724: 29724: template 29724: using _Select_int = typename _Select_int_base< 29724: __parse_int::_Parse_int<_Digs...>::value, 29724: unsigned char, 29724: unsigned short, 29724: unsigned int, 29724: unsigned long, 29724: unsigned long long 29724: >::type; 29724: 29724: } 29724: 29724: 29724: } 29724: # 42 "/usr/include/c++/14/bits/chrono.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 48 "/usr/include/c++/14/bits/chrono.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: namespace filesystem { struct __file_clock; }; 29724: 29724: 29724: namespace chrono 29724: { 29724: 29724: 29724: 29724: 29724: template> 29724: class duration; 29724: 29724: 29724: template 29724: class time_point; 29724: 29724: } 29724: # 79 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: struct __duration_common_type 29724: { }; 29724: 29724: template 29724: struct __duration_common_type<_CT, _Period1, _Period2, 29724: __void_t> 29724: { 29724: private: 29724: using __gcd_num = __static_gcd<_Period1::num, _Period2::num>; 29724: using __gcd_den = __static_gcd<_Period1::den, _Period2::den>; 29724: using __cr = typename _CT::type; 29724: using __r = ratio<__gcd_num::value, 29724: (_Period1::den / __gcd_den::value) * _Period2::den>; 29724: 29724: public: 29724: using type = chrono::duration<__cr, typename __r::type>; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct common_type, 29724: chrono::duration<_Rep2, _Period2>> 29724: : __duration_common_type, 29724: typename _Period1::type, 29724: typename _Period2::type> 29724: { }; 29724: 29724: 29724: template 29724: struct common_type, 29724: chrono::duration<_Rep, _Period>> 29724: { 29724: using type = chrono::duration::type, 29724: typename _Period::type>; 29724: }; 29724: 29724: 29724: template 29724: struct common_type> 29724: { 29724: using type = chrono::duration::type, 29724: typename _Period::type>; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __timepoint_common_type 29724: { }; 29724: 29724: template 29724: struct __timepoint_common_type<_CT, _Clock, __void_t> 29724: { 29724: using type = chrono::time_point<_Clock, typename _CT::type>; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct common_type, 29724: chrono::time_point<_Clock, _Duration2>> 29724: : __timepoint_common_type, _Clock> 29724: { }; 29724: 29724: 29724: template 29724: struct common_type, 29724: chrono::time_point<_Clock, _Duration>> 29724: { using type = chrono::time_point<_Clock, _Duration>; }; 29724: 29724: 29724: template 29724: struct common_type> 29724: { using type = chrono::time_point<_Clock, _Duration>; }; 29724: 29724: 29724: 29724: 29724: namespace chrono 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct __duration_cast_impl 29724: { 29724: template 29724: static constexpr _ToDur 29724: __cast(const duration<_Rep, _Period>& __d) 29724: { 29724: typedef typename _ToDur::rep __to_rep; 29724: return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) 29724: * static_cast<_CR>(_CF::num) 29724: / static_cast<_CR>(_CF::den))); 29724: } 29724: }; 29724: 29724: template 29724: struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> 29724: { 29724: template 29724: static constexpr _ToDur 29724: __cast(const duration<_Rep, _Period>& __d) 29724: { 29724: typedef typename _ToDur::rep __to_rep; 29724: return _ToDur(static_cast<__to_rep>(__d.count())); 29724: } 29724: }; 29724: 29724: template 29724: struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> 29724: { 29724: template 29724: static constexpr _ToDur 29724: __cast(const duration<_Rep, _Period>& __d) 29724: { 29724: typedef typename _ToDur::rep __to_rep; 29724: return _ToDur(static_cast<__to_rep>( 29724: static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); 29724: } 29724: }; 29724: 29724: template 29724: struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> 29724: { 29724: template 29724: static constexpr _ToDur 29724: __cast(const duration<_Rep, _Period>& __d) 29724: { 29724: typedef typename _ToDur::rep __to_rep; 29724: return _ToDur(static_cast<__to_rep>( 29724: static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); 29724: } 29724: }; 29724: 29724: template 29724: struct __is_duration 29724: : std::false_type 29724: { }; 29724: 29724: template 29724: struct __is_duration> 29724: : std::true_type 29724: { }; 29724: 29724: template 29724: using __enable_if_is_duration 29724: = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; 29724: 29724: template 29724: using __disable_if_is_duration 29724: = typename enable_if::value, _Tp>::type; 29724: 29724: 29724: template 29724: inline constexpr bool __is_duration_v = false; 29724: template 29724: inline constexpr bool __is_duration_v> = true; 29724: template 29724: inline constexpr bool __is_time_point_v = false; 29724: template 29724: inline constexpr bool __is_time_point_v> = true; 29724: # 272 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[__nodiscard__]] 29724: constexpr __enable_if_is_duration<_ToDur> 29724: duration_cast(const duration<_Rep, _Period>& __d) 29724: { 29724: 29724: if constexpr (is_same_v<_ToDur, duration<_Rep, _Period>>) 29724: return __d; 29724: else 29724: { 29724: 29724: using __to_period = typename _ToDur::period; 29724: using __to_rep = typename _ToDur::rep; 29724: using __cf = ratio_divide<_Period, __to_period>; 29724: using __cr = typename common_type<__to_rep, _Rep, intmax_t>::type; 29724: using __dc = __duration_cast_impl<_ToDur, __cf, __cr, 29724: __cf::num == 1, __cf::den == 1>; 29724: return __dc::__cast(__d); 29724: 29724: } 29724: 29724: } 29724: # 306 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: struct treat_as_floating_point 29724: : is_floating_point<_Rep> 29724: { }; 29724: 29724: 29724: template 29724: inline constexpr bool treat_as_floating_point_v = 29724: treat_as_floating_point<_Rep>::value; 29724: 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = false; 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = false; 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = false; 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = true; 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = true; 29724: template<> 29724: inline constexpr bool treat_as_floating_point_v = true; 29724: # 386 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 29724: floor(const duration<_Rep, _Period>& __d) 29724: { 29724: auto __to = chrono::duration_cast<_ToDur>(__d); 29724: if (__to > __d) 29724: return __to - _ToDur{1}; 29724: return __to; 29724: } 29724: # 406 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 29724: ceil(const duration<_Rep, _Period>& __d) 29724: { 29724: auto __to = chrono::duration_cast<_ToDur>(__d); 29724: if (__to < __d) 29724: return __to + _ToDur{1}; 29724: return __to; 29724: } 29724: # 427 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr 29724: enable_if_t< 29724: __and_<__is_duration<_ToDur>, 29724: __not_>>::value, 29724: _ToDur> 29724: round(const duration<_Rep, _Period>& __d) 29724: { 29724: _ToDur __t0 = chrono::floor<_ToDur>(__d); 29724: _ToDur __t1 = __t0 + _ToDur{1}; 29724: auto __diff0 = __d - __t0; 29724: auto __diff1 = __t1 - __d; 29724: if (__diff0 == __diff1) 29724: { 29724: if (__t0.count() & 1) 29724: return __t1; 29724: return __t0; 29724: } 29724: else if (__diff0 < __diff1) 29724: return __t0; 29724: return __t1; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: [[nodiscard]] constexpr 29724: enable_if_t::is_signed, duration<_Rep, _Period>> 29724: abs(duration<_Rep, _Period> __d) 29724: { 29724: if (__d >= __d.zero()) 29724: return __d; 29724: return -__d; 29724: } 29724: 29724: 29724: namespace __detail { using chrono::ceil; } 29724: # 494 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: struct duration_values 29724: { 29724: static constexpr _Rep 29724: zero() noexcept 29724: { return _Rep(0); } 29724: 29724: static constexpr _Rep 29724: max() noexcept 29724: { return numeric_limits<_Rep>::max(); } 29724: 29724: static constexpr _Rep 29724: min() noexcept 29724: { return numeric_limits<_Rep>::lowest(); } 29724: }; 29724: 29724: template 29724: class duration 29724: { 29724: static_assert(!__is_duration<_Rep>::value, 29724: "rep cannot be a std::chrono::duration"); 29724: static_assert(__is_ratio<_Period>::value, 29724: "period must be a specialization of std::ratio"); 29724: static_assert(_Period::num > 0, "period must be positive"); 29724: 29724: template 29724: using __is_float = treat_as_floating_point<_Rep2>; 29724: 29724: static constexpr intmax_t 29724: _S_gcd(intmax_t __m, intmax_t __n) noexcept 29724: { 29724: 29724: 29724: 29724: do 29724: { 29724: intmax_t __rem = __m % __n; 29724: __m = __n; 29724: __n = __rem; 29724: } 29724: while (__n != 0); 29724: return __m; 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), 29724: (_R1::den / __gcd2) * (_R2::num / __gcd1)>; 29724: 29724: 29724: template 29724: using __is_harmonic 29724: = __bool_constant<__divide<_Period2, _Period>::den == 1>; 29724: 29724: public: 29724: 29724: using rep = _Rep; 29724: using period = typename _Period::type; 29724: 29724: 29724: constexpr duration() = default; 29724: 29724: duration(const duration&) = default; 29724: 29724: 29724: 29724: template, 29724: __or_<__is_float, __not_<__is_float<_Rep2>>>>> 29724: constexpr explicit duration(const _Rep2& __rep) 29724: : __r(static_cast(__rep)) { } 29724: 29724: template, 29724: __or_<__is_float, 29724: __and_<__is_harmonic<_Period2>, 29724: __not_<__is_float<_Rep2>>>>>> 29724: constexpr duration(const duration<_Rep2, _Period2>& __d) 29724: : __r(duration_cast(__d).count()) { } 29724: 29724: ~duration() = default; 29724: duration& operator=(const duration&) = default; 29724: 29724: 29724: constexpr rep 29724: count() const 29724: { return __r; } 29724: 29724: 29724: 29724: constexpr duration::type, period> 29724: operator+() const 29724: { return duration::type, period>(__r); } 29724: 29724: constexpr duration::type, period> 29724: operator-() const 29724: { return duration::type, period>(-__r); } 29724: 29724: constexpr duration& 29724: operator++() 29724: { 29724: ++__r; 29724: return *this; 29724: } 29724: 29724: constexpr duration 29724: operator++(int) 29724: { return duration(__r++); } 29724: 29724: constexpr duration& 29724: operator--() 29724: { 29724: --__r; 29724: return *this; 29724: } 29724: 29724: constexpr duration 29724: operator--(int) 29724: { return duration(__r--); } 29724: 29724: constexpr duration& 29724: operator+=(const duration& __d) 29724: { 29724: __r += __d.count(); 29724: return *this; 29724: } 29724: 29724: constexpr duration& 29724: operator-=(const duration& __d) 29724: { 29724: __r -= __d.count(); 29724: return *this; 29724: } 29724: 29724: constexpr duration& 29724: operator*=(const rep& __rhs) 29724: { 29724: __r *= __rhs; 29724: return *this; 29724: } 29724: 29724: constexpr duration& 29724: operator/=(const rep& __rhs) 29724: { 29724: __r /= __rhs; 29724: return *this; 29724: } 29724: 29724: 29724: template 29724: constexpr 29724: __enable_if_t::value, duration&> 29724: operator%=(const rep& __rhs) 29724: { 29724: __r %= __rhs; 29724: return *this; 29724: } 29724: 29724: template 29724: constexpr 29724: __enable_if_t::value, duration&> 29724: operator%=(const duration& __d) 29724: { 29724: __r %= __d.count(); 29724: return *this; 29724: } 29724: 29724: 29724: static constexpr duration 29724: zero() noexcept 29724: { return duration(duration_values::zero()); } 29724: 29724: static constexpr duration 29724: min() noexcept 29724: { return duration(duration_values::min()); } 29724: 29724: static constexpr duration 29724: max() noexcept 29724: { return duration(duration_values::max()); } 29724: 29724: private: 29724: rep __r; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr typename common_type, 29724: duration<_Rep2, _Period2>>::type 29724: operator+(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __cd; 29724: return __cd(__cd(__lhs).count() + __cd(__rhs).count()); 29724: } 29724: 29724: 29724: template 29724: constexpr typename common_type, 29724: duration<_Rep2, _Period2>>::type 29724: operator-(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __cd; 29724: return __cd(__cd(__lhs).count() - __cd(__rhs).count()); 29724: } 29724: # 727 "/usr/include/c++/14/bits/chrono.h" 3 29724: template::type> 29724: using __common_rep_t = typename 29724: enable_if::value, _CRep>::type; 29724: # 739 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> 29724: operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29724: { 29724: typedef duration::type, _Period> 29724: __cd; 29724: return __cd(__cd(__d).count() * __s); 29724: } 29724: 29724: template 29724: constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> 29724: operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) 29724: { return __d * __s; } 29724: 29724: template 29724: constexpr 29724: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 29724: operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29724: { 29724: typedef duration::type, _Period> 29724: __cd; 29724: return __cd(__cd(__d).count() / __s); 29724: } 29724: 29724: template 29724: constexpr typename common_type<_Rep1, _Rep2>::type 29724: operator/(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __cd; 29724: return __cd(__lhs).count() / __cd(__rhs).count(); 29724: } 29724: 29724: 29724: template 29724: constexpr 29724: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 29724: operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29724: { 29724: typedef duration::type, _Period> 29724: __cd; 29724: return __cd(__cd(__d).count() % __s); 29724: } 29724: 29724: template 29724: constexpr typename common_type, 29724: duration<_Rep2, _Period2>>::type 29724: operator%(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __cd; 29724: return __cd(__cd(__lhs).count() % __cd(__rhs).count()); 29724: } 29724: # 807 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: constexpr bool 29724: operator==(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __ct; 29724: return __ct(__lhs).count() == __ct(__rhs).count(); 29724: } 29724: 29724: template 29724: constexpr bool 29724: operator<(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<__dur1,__dur2>::type __ct; 29724: return __ct(__lhs).count() < __ct(__rhs).count(); 29724: } 29724: # 844 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: constexpr bool 29724: operator!=(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: template 29724: constexpr bool 29724: operator<=(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { return !(__rhs < __lhs); } 29724: 29724: template 29724: constexpr bool 29724: operator>(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { return __rhs < __lhs; } 29724: 29724: template 29724: constexpr bool 29724: operator>=(const duration<_Rep1, _Period1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { return !(__lhs < __rhs); } 29724: # 888 "/usr/include/c++/14/bits/chrono.h" 3 29724: using nanoseconds = duration; 29724: 29724: 29724: using microseconds = duration; 29724: 29724: 29724: using milliseconds = duration; 29724: 29724: 29724: using seconds = duration; 29724: 29724: 29724: using minutes = duration>; 29724: 29724: 29724: using hours = duration>; 29724: # 921 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: class time_point 29724: { 29724: static_assert(__is_duration<_Dur>::value, 29724: "duration must be a specialization of std::chrono::duration"); 29724: 29724: public: 29724: typedef _Clock clock; 29724: typedef _Dur duration; 29724: typedef typename duration::rep rep; 29724: typedef typename duration::period period; 29724: 29724: constexpr time_point() : __d(duration::zero()) 29724: { } 29724: 29724: constexpr explicit time_point(const duration& __dur) 29724: : __d(__dur) 29724: { } 29724: 29724: 29724: template>> 29724: constexpr time_point(const time_point& __t) 29724: : __d(__t.time_since_epoch()) 29724: { } 29724: 29724: 29724: constexpr duration 29724: time_since_epoch() const 29724: { return __d; } 29724: # 977 "/usr/include/c++/14/bits/chrono.h" 3 29724: constexpr time_point& 29724: operator+=(const duration& __dur) 29724: { 29724: __d += __dur; 29724: return *this; 29724: } 29724: 29724: constexpr time_point& 29724: operator-=(const duration& __dur) 29724: { 29724: __d -= __dur; 29724: return *this; 29724: } 29724: 29724: 29724: static constexpr time_point 29724: min() noexcept 29724: { return time_point(duration::min()); } 29724: 29724: static constexpr time_point 29724: max() noexcept 29724: { return time_point(duration::max()); } 29724: 29724: private: 29724: duration __d; 29724: }; 29724: # 1016 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[__nodiscard__]] constexpr 29724: __enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 29724: time_point_cast(const time_point<_Clock, _Dur>& __t) 29724: { 29724: typedef time_point<_Clock, _ToDur> __time_point; 29724: return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); 29724: } 29724: # 1038 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr 29724: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 29724: floor(const time_point<_Clock, _Dur>& __tp) 29724: { 29724: return time_point<_Clock, _ToDur>{ 29724: chrono::floor<_ToDur>(__tp.time_since_epoch())}; 29724: } 29724: # 1059 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr 29724: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 29724: ceil(const time_point<_Clock, _Dur>& __tp) 29724: { 29724: return time_point<_Clock, _ToDur>{ 29724: chrono::ceil<_ToDur>(__tp.time_since_epoch())}; 29724: } 29724: # 1081 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: [[nodiscard]] constexpr 29724: enable_if_t<__is_duration_v<_ToDur> 29724: && !treat_as_floating_point_v, 29724: time_point<_Clock, _ToDur>> 29724: round(const time_point<_Clock, _Dur>& __tp) 29724: { 29724: return time_point<_Clock, _ToDur>{ 29724: chrono::round<_ToDur>(__tp.time_since_epoch())}; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr time_point<_Clock, 29724: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 29724: operator+(const time_point<_Clock, _Dur1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<_Dur1,__dur2>::type __ct; 29724: typedef time_point<_Clock, __ct> __time_point; 29724: return __time_point(__lhs.time_since_epoch() + __rhs); 29724: } 29724: 29724: 29724: template 29724: constexpr time_point<_Clock, 29724: typename common_type, _Dur2>::type> 29724: operator+(const duration<_Rep1, _Period1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { 29724: typedef duration<_Rep1, _Period1> __dur1; 29724: typedef typename common_type<__dur1,_Dur2>::type __ct; 29724: typedef time_point<_Clock, __ct> __time_point; 29724: return __time_point(__rhs.time_since_epoch() + __lhs); 29724: } 29724: 29724: 29724: template 29724: constexpr time_point<_Clock, 29724: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 29724: operator-(const time_point<_Clock, _Dur1>& __lhs, 29724: const duration<_Rep2, _Period2>& __rhs) 29724: { 29724: typedef duration<_Rep2, _Period2> __dur2; 29724: typedef typename common_type<_Dur1,__dur2>::type __ct; 29724: typedef time_point<_Clock, __ct> __time_point; 29724: return __time_point(__lhs.time_since_epoch() -__rhs); 29724: } 29724: 29724: 29724: template 29724: constexpr typename common_type<_Dur1, _Dur2>::type 29724: operator-(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: constexpr bool 29724: operator==(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } 29724: # 1165 "/usr/include/c++/14/bits/chrono.h" 3 29724: template 29724: constexpr bool 29724: operator!=(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: template 29724: constexpr bool 29724: operator<(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } 29724: 29724: template 29724: constexpr bool 29724: operator<=(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return !(__rhs < __lhs); } 29724: 29724: template 29724: constexpr bool 29724: operator>(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return __rhs < __lhs; } 29724: 29724: template 29724: constexpr bool 29724: operator>=(const time_point<_Clock, _Dur1>& __lhs, 29724: const time_point<_Clock, _Dur2>& __rhs) 29724: { return !(__lhs < __rhs); } 29724: # 1217 "/usr/include/c++/14/bits/chrono.h" 3 29724: inline namespace _V2 { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct system_clock 29724: { 29724: typedef chrono::nanoseconds duration; 29724: typedef duration::rep rep; 29724: typedef duration::period period; 29724: typedef chrono::time_point time_point; 29724: 29724: static_assert(system_clock::duration::min() 29724: < system_clock::duration::zero(), 29724: "a clock's minimum duration cannot be less than its epoch"); 29724: 29724: static constexpr bool is_steady = false; 29724: 29724: static time_point 29724: now() noexcept; 29724: 29724: 29724: 29724: static std::time_t 29724: to_time_t(const time_point& __t) noexcept 29724: { 29724: return std::time_t(duration_cast 29724: (__t.time_since_epoch()).count()); 29724: } 29724: 29724: 29724: static time_point 29724: from_time_t(std::time_t __t) noexcept 29724: { 29724: typedef chrono::time_point __from; 29724: return time_point_cast 29724: (__from(chrono::seconds(__t))); 29724: } 29724: }; 29724: # 1267 "/usr/include/c++/14/bits/chrono.h" 3 29724: struct steady_clock 29724: { 29724: typedef chrono::nanoseconds duration; 29724: typedef duration::rep rep; 29724: typedef duration::period period; 29724: typedef chrono::time_point time_point; 29724: 29724: static constexpr bool is_steady = true; 29724: 29724: static time_point 29724: now() noexcept; 29724: }; 29724: # 1289 "/usr/include/c++/14/bits/chrono.h" 3 29724: using high_resolution_clock = system_clock; 29724: 29724: } 29724: # 1315 "/usr/include/c++/14/bits/chrono.h" 3 29724: } 29724: 29724: 29724: inline namespace literals 29724: { 29724: # 1344 "/usr/include/c++/14/bits/chrono.h" 3 29724: inline namespace chrono_literals 29724: { 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29724: 29724: template 29724: constexpr _Dur __check_overflow() 29724: { 29724: using _Val = __parse_int::_Parse_int<_Digits...>; 29724: constexpr typename _Dur::rep __repval = _Val::value; 29724: static_assert(__repval >= 0 && __repval == _Val::value, 29724: "literal value cannot be represented by duration type"); 29724: return _Dur(__repval); 29724: } 29724: 29724: 29724: 29724: constexpr chrono::duration> 29724: operator""h(long double __hours) 29724: { return chrono::duration>{__hours}; } 29724: 29724: 29724: template 29724: constexpr chrono::hours 29724: operator""h() 29724: { return __check_overflow(); } 29724: 29724: 29724: constexpr chrono::duration> 29724: operator""min(long double __mins) 29724: { return chrono::duration>{__mins}; } 29724: 29724: 29724: template 29724: constexpr chrono::minutes 29724: operator""min() 29724: { return __check_overflow(); } 29724: 29724: 29724: constexpr chrono::duration 29724: operator""s(long double __secs) 29724: { return chrono::duration{__secs}; } 29724: 29724: 29724: template 29724: constexpr chrono::seconds 29724: operator""s() 29724: { return __check_overflow(); } 29724: 29724: 29724: constexpr chrono::duration 29724: operator""ms(long double __msecs) 29724: { return chrono::duration{__msecs}; } 29724: 29724: 29724: template 29724: constexpr chrono::milliseconds 29724: operator""ms() 29724: { return __check_overflow(); } 29724: 29724: 29724: constexpr chrono::duration 29724: operator""us(long double __usecs) 29724: { return chrono::duration{__usecs}; } 29724: 29724: 29724: template 29724: constexpr chrono::microseconds 29724: operator""us() 29724: { return __check_overflow(); } 29724: 29724: 29724: constexpr chrono::duration 29724: operator""ns(long double __nsecs) 29724: { return chrono::duration{__nsecs}; } 29724: 29724: 29724: template 29724: constexpr chrono::nanoseconds 29724: operator""ns() 29724: { return __check_overflow(); } 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: } 29724: } 29724: 29724: namespace chrono 29724: { 29724: using namespace literals::chrono_literals; 29724: } 29724: 29724: 29724: 29724: namespace filesystem 29724: { 29724: struct __file_clock 29724: { 29724: using duration = chrono::nanoseconds; 29724: using rep = duration::rep; 29724: using period = duration::period; 29724: using time_point = chrono::time_point<__file_clock>; 29724: static constexpr bool is_steady = false; 29724: 29724: static time_point 29724: now() noexcept 29724: { return _S_from_sys(chrono::system_clock::now()); } 29724: # 1470 "/usr/include/c++/14/bits/chrono.h" 3 29724: private: 29724: using __sys_clock = chrono::system_clock; 29724: 29724: 29724: 29724: 29724: static constexpr chrono::seconds _S_epoch_diff{6437664000}; 29724: 29724: protected: 29724: 29724: template 29724: static 29724: chrono::time_point<__file_clock, common_type_t<_Dur, chrono::seconds>> 29724: _S_from_sys(const chrono::time_point<__sys_clock, _Dur>& __t) noexcept 29724: { 29724: using _CDur = common_type_t<_Dur, chrono::seconds>; 29724: using __file_time = chrono::time_point<__file_clock, _CDur>; 29724: return __file_time{__t.time_since_epoch()} - _S_epoch_diff; 29724: } 29724: 29724: 29724: template 29724: static 29724: chrono::time_point<__sys_clock, common_type_t<_Dur, chrono::seconds>> 29724: _S_to_sys(const chrono::time_point<__file_clock, _Dur>& __t) noexcept 29724: { 29724: using _CDur = common_type_t<_Dur, chrono::seconds>; 29724: using __sys_time = chrono::time_point<__sys_clock, _CDur>; 29724: return __sys_time{__t.time_since_epoch()} + _S_epoch_diff; 29724: } 29724: }; 29724: } 29724: 29724: 29724: 29724: } 29724: # 37 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/cerrno" 1 3 29724: # 39 "/usr/include/c++/14/cerrno" 3 29724: 29724: # 40 "/usr/include/c++/14/cerrno" 3 29724: # 40 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 56 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29724: namespace this_thread 29724: { 29724: # 66 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29724: template 29724: inline void 29724: sleep_for(const chrono::duration<_Rep, _Period>& __rtime) 29724: { 29724: if (__rtime <= __rtime.zero()) 29724: return; 29724: auto __s = chrono::duration_cast(__rtime); 29724: auto __ns = chrono::duration_cast(__rtime - __s); 29724: 29724: struct ::timespec __ts = 29724: { 29724: static_cast(__s.count()), 29724: static_cast(__ns.count()) 29724: }; 29724: while (::nanosleep(&__ts, &__ts) == -1 && (*__errno_location ()) == 4) 29724: { } 29724: 29724: 29724: 29724: } 29724: 29724: 29724: template 29724: inline void 29724: sleep_until(const chrono::time_point<_Clock, _Duration>& __atime) 29724: { 29724: 29724: 29724: 29724: auto __now = _Clock::now(); 29724: if (_Clock::is_steady) 29724: { 29724: if (__now < __atime) 29724: sleep_for(__atime - __now); 29724: return; 29724: } 29724: while (__now < __atime) 29724: { 29724: sleep_for(__atime - __now); 29724: __now = _Clock::now(); 29724: } 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 47 "/usr/include/c++/14/thread" 2 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 51 "/usr/include/c++/14/thread" 2 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 78 "/usr/include/c++/14/thread" 3 29724: inline bool 29724: operator!=(thread::id __x, thread::id __y) noexcept 29724: { return !(__x == __y); } 29724: 29724: inline bool 29724: operator<(thread::id __x, thread::id __y) noexcept 29724: { 29724: 29724: 29724: return __x._M_thread < __y._M_thread; 29724: } 29724: 29724: inline bool 29724: operator<=(thread::id __x, thread::id __y) noexcept 29724: { return !(__y < __x); } 29724: 29724: inline bool 29724: operator>(thread::id __x, thread::id __y) noexcept 29724: { return __y < __x; } 29724: 29724: inline bool 29724: operator>=(thread::id __x, thread::id __y) noexcept 29724: { return !(__x < __y); } 29724: 29724: 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id) 29724: { 29724: 29724: using __output_type 29724: = __conditional_t::value, 29724: const void*, 29724: thread::native_handle_type>; 29724: 29724: if (__id == thread::id()) 29724: return __out << "thread::id of a non-executing thread"; 29724: else 29724: return __out << static_cast<__output_type>(__id._M_thread); 29724: } 29724: # 372 "/usr/include/c++/14/thread" 3 29724: 29724: } 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 29724: 29724: 29724: 29724: 29724: 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 29724: namespace rocksdb { 29724: 29724: namespace port { 29724: class CondVar; 29724: } 29724: 29724: enum class CpuPriority { 29724: kIdle = 0, 29724: kLow = 1, 29724: kNormal = 2, 29724: kHigh = 3, 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 2 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: namespace rocksdb { 29724: 29724: extern const bool kDefaultToAdaptiveMutex; 29724: 29724: namespace port { 29724: constexpr bool kLittleEndian = ( 29724: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 3 4 29724: 1234 29724: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: == 29724: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 3 4 29724: 1234 29724: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: ); 29724: 29724: 29724: class CondVar; 29724: 29724: class Mutex { 29724: public: 29724: static const char* kName() { return "pthread_mutex_t"; } 29724: 29724: explicit Mutex(bool adaptive = kDefaultToAdaptiveMutex); 29724: 29724: Mutex(const Mutex&) = delete; 29724: void operator=(const Mutex&) = delete; 29724: 29724: ~Mutex(); 29724: 29724: void Lock(); 29724: void Unlock(); 29724: 29724: bool TryLock(); 29724: 29724: 29724: 29724: void AssertHeld() const; 29724: 29724: 29724: inline void lock() { Lock(); } 29724: inline void unlock() { Unlock(); } 29724: inline bool try_lock() { return TryLock(); } 29724: 29724: private: 29724: friend class CondVar; 29724: pthread_mutex_t mu_; 29724: 29724: bool locked_ = false; 29724: 29724: }; 29724: 29724: class RWMutex { 29724: public: 29724: RWMutex(); 29724: 29724: RWMutex(const RWMutex&) = delete; 29724: void operator=(const RWMutex&) = delete; 29724: 29724: ~RWMutex(); 29724: 29724: void ReadLock(); 29724: void WriteLock(); 29724: void ReadUnlock(); 29724: void WriteUnlock(); 29724: void AssertHeld() const {} 29724: 29724: private: 29724: pthread_rwlock_t mu_; 29724: }; 29724: 29724: class CondVar { 29724: public: 29724: explicit CondVar(Mutex* mu); 29724: ~CondVar(); 29724: 29724: Mutex* GetMutex() const { return mu_; } 29724: 29724: void Wait(); 29724: 29724: bool TimedWait(uint64_t abs_time_us); 29724: void Signal(); 29724: void SignalAll(); 29724: 29724: private: 29724: pthread_cond_t cv_; 29724: Mutex* mu_; 29724: }; 29724: 29724: using Thread = std::thread; 29724: 29724: static inline void AsmVolatilePause() { 29724: # 179 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: } 29724: 29724: 29724: int PhysicalCoreID(); 29724: 29724: using OnceType = pthread_once_t; 29724: 29724: void InitOnce(OnceType* once, void (*initializer)()); 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: static_assert((64U & (64U - 1)) == 0, 29724: "Cache line size must be a power of 2 number of bytes"); 29724: 29724: void* cacheline_aligned_alloc(size_t size); 29724: 29724: void cacheline_aligned_free(void* memblock); 29724: # 229 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29724: void Crash(const std::string& srcfile, int srcline); 29724: 29724: int GetMaxOpenFiles(); 29724: 29724: extern const size_t kPageSize; 29724: 29724: using ThreadId = pid_t; 29724: 29724: void SetCpuPriority(ThreadId id, CpuPriority priority); 29724: 29724: int64_t GetProcessID(); 29724: 29724: 29724: 29724: bool GenerateRfcUuid(std::string* output); 29724: 29724: } 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 2 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 29724: extern "C" bool RocksDbThreadYieldAndCheckAbort() __attribute__((__weak__)); 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 1 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstring" 1 3 29724: # 39 "/usr/include/c++/14/cstring" 3 29724: 29724: # 40 "/usr/include/c++/14/cstring" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 43 "/usr/include/c++/14/cstring" 2 3 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 2 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: inline void EncodeFixed16(char* buf, uint16_t value) { 29724: if (port::kLittleEndian) { 29724: memcpy(buf, &value, sizeof(value)); 29724: } else { 29724: buf[0] = value & 0xff; 29724: buf[1] = (value >> 8) & 0xff; 29724: } 29724: } 29724: 29724: inline void EncodeFixed32(char* buf, uint32_t value) { 29724: if (port::kLittleEndian) { 29724: memcpy(buf, &value, sizeof(value)); 29724: } else { 29724: buf[0] = value & 0xff; 29724: buf[1] = (value >> 8) & 0xff; 29724: buf[2] = (value >> 16) & 0xff; 29724: buf[3] = (value >> 24) & 0xff; 29724: } 29724: } 29724: 29724: inline void EncodeFixed64(char* buf, uint64_t value) { 29724: if (port::kLittleEndian) { 29724: memcpy(buf, &value, sizeof(value)); 29724: } else { 29724: buf[0] = value & 0xff; 29724: buf[1] = (value >> 8) & 0xff; 29724: buf[2] = (value >> 16) & 0xff; 29724: buf[3] = (value >> 24) & 0xff; 29724: buf[4] = (value >> 32) & 0xff; 29724: buf[5] = (value >> 40) & 0xff; 29724: buf[6] = (value >> 48) & 0xff; 29724: buf[7] = (value >> 56) & 0xff; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: inline uint16_t DecodeFixed16(const char* ptr) { 29724: if (port::kLittleEndian) { 29724: 29724: uint16_t result; 29724: memcpy(&result, ptr, sizeof(result)); 29724: return result; 29724: } else { 29724: return ((static_cast(static_cast(ptr[0]))) | 29724: (static_cast(static_cast(ptr[1])) << 8)); 29724: } 29724: } 29724: 29724: inline uint32_t DecodeFixed32(const char* ptr) { 29724: if (port::kLittleEndian) { 29724: 29724: uint32_t result; 29724: memcpy(&result, ptr, sizeof(result)); 29724: return result; 29724: } else { 29724: return ((static_cast(static_cast(ptr[0]))) | 29724: (static_cast(static_cast(ptr[1])) << 8) | 29724: (static_cast(static_cast(ptr[2])) << 16) | 29724: (static_cast(static_cast(ptr[3])) << 24)); 29724: } 29724: } 29724: 29724: inline uint64_t DecodeFixed64(const char* ptr) { 29724: if (port::kLittleEndian) { 29724: 29724: uint64_t result; 29724: memcpy(&result, ptr, sizeof(result)); 29724: return result; 29724: } else { 29724: uint64_t lo = DecodeFixed32(ptr); 29724: uint64_t hi = DecodeFixed32(ptr + 4); 29724: return (hi << 32) | lo; 29724: } 29724: } 29724: 29724: } 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: const uint32_t kMaxVarint64Length = 10; 29724: 29724: 29724: void PutFixed16(std::string* dst, uint16_t value); 29724: void PutFixed32(std::string* dst, uint32_t value); 29724: void PutFixed64(std::string* dst, uint64_t value); 29724: void PutVarint32(std::string* dst, uint32_t value); 29724: void PutVarint32Varint32(std::string* dst, uint32_t value1, uint32_t value2); 29724: void PutVarint32Varint32Varint32(std::string* dst, uint32_t value1, 29724: uint32_t value2, uint32_t value3); 29724: void PutVarint64(std::string* dst, uint64_t value); 29724: void PutVarint64Varint64(std::string* dst, uint64_t value1, uint64_t value2); 29724: void PutVarint32Varint64(std::string* dst, uint32_t value1, uint64_t value2); 29724: void PutVarint32Varint32Varint64(std::string* dst, uint32_t value1, 29724: uint32_t value2, uint64_t value3); 29724: void PutLengthPrefixedSlice(std::string* dst, const Slice& value); 29724: void PutLengthPrefixedSliceParts(std::string* dst, 29724: const SliceParts& slice_parts); 29724: void PutLengthPrefixedSlicePartsWithPadding(std::string* dst, 29724: const SliceParts& slice_parts, 29724: size_t pad_sz); 29724: 29724: 29724: 29724: bool GetFixed64(Slice* input, uint64_t* value); 29724: bool GetFixed32(Slice* input, uint32_t* value); 29724: bool GetFixed16(Slice* input, uint16_t* value); 29724: bool GetVarint32(Slice* input, uint32_t* value); 29724: bool GetVarint64(Slice* input, uint64_t* value); 29724: bool GetVarsignedint64(Slice* input, int64_t* value); 29724: bool GetLengthPrefixedSlice(Slice* input, Slice* result); 29724: 29724: Slice GetLengthPrefixedSlice(const char* data); 29724: 29724: Slice GetSliceUntil(Slice* slice, char delimiter); 29724: 29724: 29724: 29724: constexpr inline uint64_t i64ToZigzag(const int64_t l) { 29724: return (static_cast(l) << 1) ^ static_cast(l >> 63); 29724: } 29724: inline int64_t zigzagToI64(uint64_t n) { 29724: return (n >> 1) ^ -static_cast(n & 1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: const char* GetVarint32Ptr(const char* p, const char* limit, uint32_t* v); 29724: const char* GetVarint64Ptr(const char* p, const char* limit, uint64_t* v); 29724: inline const char* GetVarsignedint64Ptr(const char* p, const char* limit, 29724: int64_t* value) { 29724: uint64_t u = 0; 29724: const char* ret = GetVarint64Ptr(p, limit, &u); 29724: *value = zigzagToI64(u); 29724: return ret; 29724: } 29724: 29724: 29724: int VarintLength(uint64_t v); 29724: 29724: 29724: 29724: 29724: char* EncodeVarint32(char* dst, uint32_t value); 29724: char* EncodeVarint64(char* dst, uint64_t value); 29724: 29724: 29724: const char* GetVarint32PtrFallback(const char* p, const char* limit, 29724: uint32_t* value); 29724: inline const char* GetVarint32Ptr(const char* p, const char* limit, 29724: uint32_t* value) { 29724: if (p < limit) { 29724: uint32_t result = *(reinterpret_cast(p)); 29724: if ((result & 128) == 0) { 29724: *value = result; 29724: return p + 1; 29724: } 29724: } 29724: return GetVarint32PtrFallback(p, limit, value); 29724: } 29724: 29724: 29724: inline void PutFixed16(std::string* dst, uint16_t value) { 29724: if (port::kLittleEndian) { 29724: dst->append(const_cast(reinterpret_cast(&value)), 29724: sizeof(value)); 29724: } else { 29724: char buf[sizeof(value)]; 29724: EncodeFixed16(buf, value); 29724: dst->append(buf, sizeof(buf)); 29724: } 29724: } 29724: 29724: inline void PutFixed32(std::string* dst, uint32_t value) { 29724: if (port::kLittleEndian) { 29724: dst->append(const_cast(reinterpret_cast(&value)), 29724: sizeof(value)); 29724: } else { 29724: char buf[sizeof(value)]; 29724: EncodeFixed32(buf, value); 29724: dst->append(buf, sizeof(buf)); 29724: } 29724: } 29724: 29724: inline void PutFixed64(std::string* dst, uint64_t value) { 29724: if (port::kLittleEndian) { 29724: dst->append(const_cast(reinterpret_cast(&value)), 29724: sizeof(value)); 29724: } else { 29724: char buf[sizeof(value)]; 29724: EncodeFixed64(buf, value); 29724: dst->append(buf, sizeof(buf)); 29724: } 29724: } 29724: 29724: inline void PutVarint32(std::string* dst, uint32_t v) { 29724: char buf[5]; 29724: char* ptr = EncodeVarint32(buf, v); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarint32Varint32(std::string* dst, uint32_t v1, uint32_t v2) { 29724: char buf[10]; 29724: char* ptr = EncodeVarint32(buf, v1); 29724: ptr = EncodeVarint32(ptr, v2); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarint32Varint32Varint32(std::string* dst, uint32_t v1, 29724: uint32_t v2, uint32_t v3) { 29724: char buf[15]; 29724: char* ptr = EncodeVarint32(buf, v1); 29724: ptr = EncodeVarint32(ptr, v2); 29724: ptr = EncodeVarint32(ptr, v3); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline char* EncodeVarint64(char* dst, uint64_t v) { 29724: static const unsigned int B = 128; 29724: unsigned char* ptr = reinterpret_cast(dst); 29724: while (v >= B) { 29724: *(ptr++) = (v & (B - 1)) | B; 29724: v >>= 7; 29724: } 29724: *(ptr++) = static_cast(v); 29724: return reinterpret_cast(ptr); 29724: } 29724: 29724: inline void PutVarint64(std::string* dst, uint64_t v) { 29724: char buf[kMaxVarint64Length]; 29724: char* ptr = EncodeVarint64(buf, v); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarsignedint64(std::string* dst, int64_t v) { 29724: char buf[kMaxVarint64Length]; 29724: 29724: char* ptr = EncodeVarint64(buf, i64ToZigzag(v)); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarint64Varint64(std::string* dst, uint64_t v1, uint64_t v2) { 29724: char buf[20]; 29724: char* ptr = EncodeVarint64(buf, v1); 29724: ptr = EncodeVarint64(ptr, v2); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarint32Varint64(std::string* dst, uint32_t v1, uint64_t v2) { 29724: char buf[15]; 29724: char* ptr = EncodeVarint32(buf, v1); 29724: ptr = EncodeVarint64(ptr, v2); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutVarint32Varint32Varint64(std::string* dst, uint32_t v1, 29724: uint32_t v2, uint64_t v3) { 29724: char buf[20]; 29724: char* ptr = EncodeVarint32(buf, v1); 29724: ptr = EncodeVarint32(ptr, v2); 29724: ptr = EncodeVarint64(ptr, v3); 29724: dst->append(buf, static_cast(ptr - buf)); 29724: } 29724: 29724: inline void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { 29724: PutVarint32(dst, static_cast(value.size())); 29724: dst->append(value.data(), value.size()); 29724: } 29724: 29724: inline void PutLengthPrefixedSliceParts(std::string* dst, size_t total_bytes, 29724: const SliceParts& slice_parts) { 29724: for (int i = 0; i < slice_parts.num_parts; ++i) { 29724: total_bytes += slice_parts.parts[i].size(); 29724: } 29724: PutVarint32(dst, static_cast(total_bytes)); 29724: for (int i = 0; i < slice_parts.num_parts; ++i) { 29724: dst->append(slice_parts.parts[i].data(), slice_parts.parts[i].size()); 29724: } 29724: } 29724: 29724: inline void PutLengthPrefixedSliceParts(std::string* dst, 29724: const SliceParts& slice_parts) { 29724: PutLengthPrefixedSliceParts(dst, 0, slice_parts); 29724: } 29724: 29724: inline void PutLengthPrefixedSlicePartsWithPadding( 29724: std::string* dst, const SliceParts& slice_parts, size_t pad_sz) { 29724: PutLengthPrefixedSliceParts(dst, pad_sz, slice_parts); 29724: dst->append(pad_sz, '\0'); 29724: } 29724: 29724: inline int VarintLength(uint64_t v) { 29724: int len = 1; 29724: while (v >= 128) { 29724: v >>= 7; 29724: len++; 29724: } 29724: return len; 29724: } 29724: 29724: inline bool GetFixed64(Slice* input, uint64_t* value) { 29724: if (input->size() < sizeof(uint64_t)) { 29724: return false; 29724: } 29724: *value = DecodeFixed64(input->data()); 29724: input->remove_prefix(sizeof(uint64_t)); 29724: return true; 29724: } 29724: 29724: inline bool GetFixed32(Slice* input, uint32_t* value) { 29724: if (input->size() < sizeof(uint32_t)) { 29724: return false; 29724: } 29724: *value = DecodeFixed32(input->data()); 29724: input->remove_prefix(sizeof(uint32_t)); 29724: return true; 29724: } 29724: 29724: inline bool GetFixed16(Slice* input, uint16_t* value) { 29724: if (input->size() < sizeof(uint16_t)) { 29724: return false; 29724: } 29724: *value = DecodeFixed16(input->data()); 29724: input->remove_prefix(sizeof(uint16_t)); 29724: return true; 29724: } 29724: 29724: inline bool GetVarint32(Slice* input, uint32_t* value) { 29724: const char* p = input->data(); 29724: const char* limit = p + input->size(); 29724: const char* q = GetVarint32Ptr(p, limit, value); 29724: if (q == nullptr) { 29724: return false; 29724: } else { 29724: *input = Slice(q, static_cast(limit - q)); 29724: return true; 29724: } 29724: } 29724: 29724: inline bool GetVarint64(Slice* input, uint64_t* value) { 29724: const char* p = input->data(); 29724: const char* limit = p + input->size(); 29724: const char* q = GetVarint64Ptr(p, limit, value); 29724: if (q == nullptr) { 29724: return false; 29724: } else { 29724: *input = Slice(q, static_cast(limit - q)); 29724: return true; 29724: } 29724: } 29724: 29724: inline bool GetVarsignedint64(Slice* input, int64_t* value) { 29724: const char* p = input->data(); 29724: const char* limit = p + input->size(); 29724: const char* q = GetVarsignedint64Ptr(p, limit, value); 29724: if (q == nullptr) { 29724: return false; 29724: } else { 29724: *input = Slice(q, static_cast(limit - q)); 29724: return true; 29724: } 29724: } 29724: 29724: inline bool GetLengthPrefixedSlice(Slice* input, Slice* result) { 29724: uint32_t len = 0; 29724: if (GetVarint32(input, &len) && input->size() >= len) { 29724: *result = Slice(input->data(), len); 29724: input->remove_prefix(len); 29724: return true; 29724: } else { 29724: return false; 29724: } 29724: } 29724: 29724: inline Slice GetLengthPrefixedSlice(const char* data) { 29724: uint32_t len = 0; 29724: 29724: 29724: auto p = GetVarint32Ptr(data, data + 5 , &len); 29724: return Slice(p, len); 29724: } 29724: 29724: inline Slice GetSliceUntil(Slice* slice, char delimiter) { 29724: uint32_t len = 0; 29724: for (len = 0; len < slice->size() && slice->data()[len] != delimiter; ++len) { 29724: 29724: } 29724: 29724: Slice ret(slice->data(), len); 29724: slice->remove_prefix(len + ((len < slice->size()) ? 1 : 0)); 29724: return ret; 29724: } 29724: 29724: template 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline void 29724: PutUnaligned(T* memory, const T& value) { 29724: 29724: 29724: 29724: 29724: *memory = value; 29724: 29724: } 29724: 29724: template 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline void 29724: GetUnaligned(const T* memory, T* value) { 29724: 29724: 29724: 29724: 29724: *value = *memory; 29724: 29724: } 29724: 29724: } 29724: # 24 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_level_imp.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_level.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: enum PerfLevel : unsigned char { 29724: kUninitialized = 0, 29724: kDisable = 1, 29724: kEnableCount = 2, 29724: kEnableWait = 3, 29724: 29724: 29724: kEnableTimeExceptForMutex = 4, 29724: 29724: 29724: 29724: kEnableTimeAndCPUTimeExceptForMutex = 5, 29724: kEnableTime = 6, 29724: kOutOfBounds = 7 29724: }; 29724: 29724: 29724: void SetPerfLevel(PerfLevel level); 29724: 29724: 29724: PerfLevel GetPerfLevel(); 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_level_imp.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: extern thread_local PerfLevel perf_level; 29724: 29724: } 29724: # 8 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/map" 1 3 29724: # 58 "/usr/include/c++/14/map" 3 29724: 29724: # 59 "/usr/include/c++/14/map" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_tree.h" 1 3 29724: # 61 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: 29724: # 62 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: 29724: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 95 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: enum _Rb_tree_color { _S_red = false, _S_black = true }; 29724: 29724: struct _Rb_tree_node_base 29724: { 29724: typedef _Rb_tree_node_base* _Base_ptr; 29724: typedef const _Rb_tree_node_base* _Const_Base_ptr; 29724: 29724: _Rb_tree_color _M_color; 29724: _Base_ptr _M_parent; 29724: _Base_ptr _M_left; 29724: _Base_ptr _M_right; 29724: 29724: static _Base_ptr 29724: _S_minimum(_Base_ptr __x) noexcept 29724: { 29724: while (__x->_M_left != 0) __x = __x->_M_left; 29724: return __x; 29724: } 29724: 29724: static _Const_Base_ptr 29724: _S_minimum(_Const_Base_ptr __x) noexcept 29724: { 29724: while (__x->_M_left != 0) __x = __x->_M_left; 29724: return __x; 29724: } 29724: 29724: static _Base_ptr 29724: _S_maximum(_Base_ptr __x) noexcept 29724: { 29724: while (__x->_M_right != 0) __x = __x->_M_right; 29724: return __x; 29724: } 29724: 29724: static _Const_Base_ptr 29724: _S_maximum(_Const_Base_ptr __x) noexcept 29724: { 29724: while (__x->_M_right != 0) __x = __x->_M_right; 29724: return __x; 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Rb_tree_key_compare 29724: { 29724: _Key_compare _M_key_compare; 29724: 29724: _Rb_tree_key_compare() 29724: noexcept(is_nothrow_default_constructible<_Key_compare>::value) 29724: 29724: : _M_key_compare() 29724: { } 29724: 29724: _Rb_tree_key_compare(const _Key_compare& __comp) 29724: : _M_key_compare(__comp) 29724: { } 29724: 29724: 29724: 29724: _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; 29724: 29724: _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) 29724: noexcept(is_nothrow_copy_constructible<_Key_compare>::value) 29724: : _M_key_compare(__x._M_key_compare) 29724: { } 29724: 29724: }; 29724: 29724: 29724: struct _Rb_tree_header 29724: { 29724: _Rb_tree_node_base _M_header; 29724: size_t _M_node_count; 29724: 29724: _Rb_tree_header() noexcept 29724: { 29724: _M_header._M_color = _S_red; 29724: _M_reset(); 29724: } 29724: 29724: 29724: _Rb_tree_header(_Rb_tree_header&& __x) noexcept 29724: { 29724: if (__x._M_header._M_parent != nullptr) 29724: _M_move_data(__x); 29724: else 29724: { 29724: _M_header._M_color = _S_red; 29724: _M_reset(); 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_move_data(_Rb_tree_header& __from) 29724: { 29724: _M_header._M_color = __from._M_header._M_color; 29724: _M_header._M_parent = __from._M_header._M_parent; 29724: _M_header._M_left = __from._M_header._M_left; 29724: _M_header._M_right = __from._M_header._M_right; 29724: _M_header._M_parent->_M_parent = &_M_header; 29724: _M_node_count = __from._M_node_count; 29724: 29724: __from._M_reset(); 29724: } 29724: 29724: void 29724: _M_reset() 29724: { 29724: _M_header._M_parent = 0; 29724: _M_header._M_left = &_M_header; 29724: _M_header._M_right = &_M_header; 29724: _M_node_count = 0; 29724: } 29724: }; 29724: 29724: template 29724: struct _Rb_tree_node : public _Rb_tree_node_base 29724: { 29724: typedef _Rb_tree_node<_Val>* _Link_type; 29724: # 227 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: __gnu_cxx::__aligned_membuf<_Val> _M_storage; 29724: 29724: _Val* 29724: _M_valptr() 29724: { return _M_storage._M_ptr(); } 29724: 29724: const _Val* 29724: _M_valptr() const 29724: { return _M_storage._M_ptr(); } 29724: 29724: }; 29724: 29724: __attribute__ ((__pure__)) _Rb_tree_node_base* 29724: _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); 29724: 29724: __attribute__ ((__pure__)) const _Rb_tree_node_base* 29724: _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); 29724: 29724: __attribute__ ((__pure__)) _Rb_tree_node_base* 29724: _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); 29724: 29724: __attribute__ ((__pure__)) const _Rb_tree_node_base* 29724: _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); 29724: 29724: template 29724: struct _Rb_tree_iterator 29724: { 29724: typedef _Tp value_type; 29724: typedef _Tp& reference; 29724: typedef _Tp* pointer; 29724: 29724: typedef bidirectional_iterator_tag iterator_category; 29724: typedef ptrdiff_t difference_type; 29724: 29724: typedef _Rb_tree_iterator<_Tp> _Self; 29724: typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; 29724: typedef _Rb_tree_node<_Tp>* _Link_type; 29724: 29724: _Rb_tree_iterator() noexcept 29724: : _M_node() { } 29724: 29724: explicit 29724: _Rb_tree_iterator(_Base_ptr __x) noexcept 29724: : _M_node(__x) { } 29724: 29724: reference 29724: operator*() const noexcept 29724: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 29724: 29724: pointer 29724: operator->() const noexcept 29724: { return static_cast<_Link_type> (_M_node)->_M_valptr(); } 29724: 29724: _Self& 29724: operator++() noexcept 29724: { 29724: _M_node = _Rb_tree_increment(_M_node); 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator++(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _Rb_tree_increment(_M_node); 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator--() noexcept 29724: { 29724: _M_node = _Rb_tree_decrement(_M_node); 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator--(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _Rb_tree_decrement(_M_node); 29724: return __tmp; 29724: } 29724: 29724: friend bool 29724: operator==(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node == __y._M_node; } 29724: 29724: 29724: friend bool 29724: operator!=(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node != __y._M_node; } 29724: 29724: 29724: _Base_ptr _M_node; 29724: }; 29724: 29724: template 29724: struct _Rb_tree_const_iterator 29724: { 29724: typedef _Tp value_type; 29724: typedef const _Tp& reference; 29724: typedef const _Tp* pointer; 29724: 29724: typedef _Rb_tree_iterator<_Tp> iterator; 29724: 29724: typedef bidirectional_iterator_tag iterator_category; 29724: typedef ptrdiff_t difference_type; 29724: 29724: typedef _Rb_tree_const_iterator<_Tp> _Self; 29724: typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; 29724: typedef const _Rb_tree_node<_Tp>* _Link_type; 29724: 29724: _Rb_tree_const_iterator() noexcept 29724: : _M_node() { } 29724: 29724: explicit 29724: _Rb_tree_const_iterator(_Base_ptr __x) noexcept 29724: : _M_node(__x) { } 29724: 29724: _Rb_tree_const_iterator(const iterator& __it) noexcept 29724: : _M_node(__it._M_node) { } 29724: 29724: iterator 29724: _M_const_cast() const noexcept 29724: { return iterator(const_cast(_M_node)); } 29724: 29724: reference 29724: operator*() const noexcept 29724: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 29724: 29724: pointer 29724: operator->() const noexcept 29724: { return static_cast<_Link_type>(_M_node)->_M_valptr(); } 29724: 29724: _Self& 29724: operator++() noexcept 29724: { 29724: _M_node = _Rb_tree_increment(_M_node); 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator++(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _Rb_tree_increment(_M_node); 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator--() noexcept 29724: { 29724: _M_node = _Rb_tree_decrement(_M_node); 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator--(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _Rb_tree_decrement(_M_node); 29724: return __tmp; 29724: } 29724: 29724: friend bool 29724: operator==(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node == __y._M_node; } 29724: 29724: 29724: friend bool 29724: operator!=(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node != __y._M_node; } 29724: 29724: 29724: _Base_ptr _M_node; 29724: }; 29724: 29724: __attribute__((__nonnull__)) 29724: void 29724: _Rb_tree_insert_and_rebalance(const bool __insert_left, 29724: _Rb_tree_node_base* __x, 29724: _Rb_tree_node_base* __p, 29724: _Rb_tree_node_base& __header) throw (); 29724: 29724: __attribute__((__nonnull__,__returns_nonnull__)) 29724: _Rb_tree_node_base* 29724: _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, 29724: _Rb_tree_node_base& __header) throw (); 29724: 29724: 29724: template 29724: struct _Rb_tree_merge_helper { }; 29724: 29724: 29724: template > 29724: class _Rb_tree 29724: { 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Rb_tree_node<_Val> >::other _Node_allocator; 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; 29724: 29724: protected: 29724: typedef _Rb_tree_node_base* _Base_ptr; 29724: typedef const _Rb_tree_node_base* _Const_Base_ptr; 29724: typedef _Rb_tree_node<_Val>* _Link_type; 29724: typedef const _Rb_tree_node<_Val>* _Const_Link_type; 29724: 29724: private: 29724: 29724: 29724: struct _Reuse_or_alloc_node 29724: { 29724: _Reuse_or_alloc_node(_Rb_tree& __t) 29724: : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) 29724: { 29724: if (_M_root) 29724: { 29724: _M_root->_M_parent = 0; 29724: 29724: if (_M_nodes->_M_left) 29724: _M_nodes = _M_nodes->_M_left; 29724: } 29724: else 29724: _M_nodes = 0; 29724: } 29724: 29724: 29724: _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; 29724: 29724: 29724: ~_Reuse_or_alloc_node() 29724: { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } 29724: 29724: template 29724: _Link_type 29724: operator()(_Arg&& __arg) 29724: { 29724: _Link_type __node = static_cast<_Link_type>(_M_extract()); 29724: if (__node) 29724: { 29724: _M_t._M_destroy_node(__node); 29724: _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); 29724: return __node; 29724: } 29724: 29724: return _M_t._M_create_node(std::forward<_Arg>(__arg)); 29724: } 29724: 29724: private: 29724: _Base_ptr 29724: _M_extract() 29724: { 29724: if (!_M_nodes) 29724: return _M_nodes; 29724: 29724: _Base_ptr __node = _M_nodes; 29724: _M_nodes = _M_nodes->_M_parent; 29724: if (_M_nodes) 29724: { 29724: if (_M_nodes->_M_right == __node) 29724: { 29724: _M_nodes->_M_right = 0; 29724: 29724: if (_M_nodes->_M_left) 29724: { 29724: _M_nodes = _M_nodes->_M_left; 29724: 29724: while (_M_nodes->_M_right) 29724: _M_nodes = _M_nodes->_M_right; 29724: 29724: if (_M_nodes->_M_left) 29724: _M_nodes = _M_nodes->_M_left; 29724: } 29724: } 29724: else 29724: _M_nodes->_M_left = 0; 29724: } 29724: else 29724: _M_root = 0; 29724: 29724: return __node; 29724: } 29724: 29724: _Base_ptr _M_root; 29724: _Base_ptr _M_nodes; 29724: _Rb_tree& _M_t; 29724: }; 29724: 29724: 29724: 29724: struct _Alloc_node 29724: { 29724: _Alloc_node(_Rb_tree& __t) 29724: : _M_t(__t) { } 29724: 29724: template 29724: _Link_type 29724: operator()(_Arg&& __arg) const 29724: { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } 29724: 29724: private: 29724: _Rb_tree& _M_t; 29724: }; 29724: 29724: public: 29724: typedef _Key key_type; 29724: typedef _Val value_type; 29724: typedef value_type* pointer; 29724: typedef const value_type* const_pointer; 29724: typedef value_type& reference; 29724: typedef const value_type& const_reference; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Alloc allocator_type; 29724: 29724: _Node_allocator& 29724: _M_get_Node_allocator() noexcept 29724: { return this->_M_impl; } 29724: 29724: const _Node_allocator& 29724: _M_get_Node_allocator() const noexcept 29724: { return this->_M_impl; } 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_get_Node_allocator()); } 29724: 29724: protected: 29724: _Link_type 29724: _M_get_node() 29724: { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } 29724: 29724: void 29724: _M_put_node(_Link_type __p) noexcept 29724: { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } 29724: # 586 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: template 29724: void 29724: _M_construct_node(_Link_type __node, _Args&&... __args) 29724: { 29724: try 29724: { 29724: ::new(__node) _Rb_tree_node<_Val>; 29724: _Alloc_traits::construct(_M_get_Node_allocator(), 29724: __node->_M_valptr(), 29724: std::forward<_Args>(__args)...); 29724: } 29724: catch(...) 29724: { 29724: __node->~_Rb_tree_node<_Val>(); 29724: _M_put_node(__node); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: _Link_type 29724: _M_create_node(_Args&&... __args) 29724: { 29724: _Link_type __tmp = _M_get_node(); 29724: _M_construct_node(__tmp, std::forward<_Args>(__args)...); 29724: return __tmp; 29724: } 29724: 29724: 29724: void 29724: _M_destroy_node(_Link_type __p) noexcept 29724: { 29724: 29724: 29724: 29724: _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); 29724: __p->~_Rb_tree_node<_Val>(); 29724: 29724: } 29724: 29724: void 29724: _M_drop_node(_Link_type __p) noexcept 29724: { 29724: _M_destroy_node(__p); 29724: _M_put_node(__p); 29724: } 29724: 29724: template 29724: _Link_type 29724: _M_clone_node(_Link_type __x, _NodeGen& __node_gen) 29724: { 29724: 29724: using _Vp = __conditional_t<_MoveValue, 29724: value_type&&, 29724: const value_type&>; 29724: 29724: _Link_type __tmp 29724: = __node_gen(std::forward<_Vp>(*__x->_M_valptr())); 29724: __tmp->_M_color = __x->_M_color; 29724: __tmp->_M_left = 0; 29724: __tmp->_M_right = 0; 29724: return __tmp; 29724: } 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: template 29724: 29724: struct _Rb_tree_impl 29724: : public _Node_allocator 29724: , public _Rb_tree_key_compare<_Key_compare> 29724: , public _Rb_tree_header 29724: { 29724: typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; 29724: 29724: _Rb_tree_impl() 29724: noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) 29724: 29724: 29724: : _Node_allocator() 29724: { } 29724: 29724: _Rb_tree_impl(const _Rb_tree_impl& __x) 29724: : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) 29724: , _Base_key_compare(__x._M_key_compare) 29724: , _Rb_tree_header() 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: _Rb_tree_impl(_Rb_tree_impl&&) 29724: noexcept( is_nothrow_move_constructible<_Base_key_compare>::value ) 29724: = default; 29724: 29724: explicit 29724: _Rb_tree_impl(_Node_allocator&& __a) 29724: : _Node_allocator(std::move(__a)) 29724: { } 29724: 29724: _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) 29724: : _Node_allocator(std::move(__a)), 29724: _Base_key_compare(std::move(__x)), 29724: _Rb_tree_header(std::move(__x)) 29724: { } 29724: 29724: _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) 29724: : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) 29724: { } 29724: 29724: }; 29724: 29724: _Rb_tree_impl<_Compare> _M_impl; 29724: 29724: protected: 29724: _Base_ptr& 29724: _M_root() noexcept 29724: { return this->_M_impl._M_header._M_parent; } 29724: 29724: _Const_Base_ptr 29724: _M_root() const noexcept 29724: { return this->_M_impl._M_header._M_parent; } 29724: 29724: _Base_ptr& 29724: _M_leftmost() noexcept 29724: { return this->_M_impl._M_header._M_left; } 29724: 29724: _Const_Base_ptr 29724: _M_leftmost() const noexcept 29724: { return this->_M_impl._M_header._M_left; } 29724: 29724: _Base_ptr& 29724: _M_rightmost() noexcept 29724: { return this->_M_impl._M_header._M_right; } 29724: 29724: _Const_Base_ptr 29724: _M_rightmost() const noexcept 29724: { return this->_M_impl._M_header._M_right; } 29724: 29724: _Link_type 29724: _M_mbegin() const noexcept 29724: { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } 29724: 29724: _Link_type 29724: _M_begin() noexcept 29724: { return _M_mbegin(); } 29724: 29724: _Const_Link_type 29724: _M_begin() const noexcept 29724: { 29724: return static_cast<_Const_Link_type> 29724: (this->_M_impl._M_header._M_parent); 29724: } 29724: 29724: _Base_ptr 29724: _M_end() noexcept 29724: { return &this->_M_impl._M_header; } 29724: 29724: _Const_Base_ptr 29724: _M_end() const noexcept 29724: { return &this->_M_impl._M_header; } 29724: 29724: static const _Key& 29724: _S_key(_Const_Link_type __x) 29724: { 29724: 29724: 29724: 29724: static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, 29724: "comparison object must be invocable " 29724: "with two arguments of key type"); 29724: 29724: 29724: 29724: if constexpr (__is_invocable<_Compare&, const _Key&, const _Key&>{}) 29724: static_assert( 29724: is_invocable_v, 29724: "comparison object must be invocable as const"); 29724: 29724: 29724: 29724: return _KeyOfValue()(*__x->_M_valptr()); 29724: } 29724: 29724: static _Link_type 29724: _S_left(_Base_ptr __x) noexcept 29724: { return static_cast<_Link_type>(__x->_M_left); } 29724: 29724: static _Const_Link_type 29724: _S_left(_Const_Base_ptr __x) noexcept 29724: { return static_cast<_Const_Link_type>(__x->_M_left); } 29724: 29724: static _Link_type 29724: _S_right(_Base_ptr __x) noexcept 29724: { return static_cast<_Link_type>(__x->_M_right); } 29724: 29724: static _Const_Link_type 29724: _S_right(_Const_Base_ptr __x) noexcept 29724: { return static_cast<_Const_Link_type>(__x->_M_right); } 29724: 29724: static const _Key& 29724: _S_key(_Const_Base_ptr __x) 29724: { return _S_key(static_cast<_Const_Link_type>(__x)); } 29724: 29724: static _Base_ptr 29724: _S_minimum(_Base_ptr __x) noexcept 29724: { return _Rb_tree_node_base::_S_minimum(__x); } 29724: 29724: static _Const_Base_ptr 29724: _S_minimum(_Const_Base_ptr __x) noexcept 29724: { return _Rb_tree_node_base::_S_minimum(__x); } 29724: 29724: static _Base_ptr 29724: _S_maximum(_Base_ptr __x) noexcept 29724: { return _Rb_tree_node_base::_S_maximum(__x); } 29724: 29724: static _Const_Base_ptr 29724: _S_maximum(_Const_Base_ptr __x) noexcept 29724: { return _Rb_tree_node_base::_S_maximum(__x); } 29724: 29724: public: 29724: typedef _Rb_tree_iterator iterator; 29724: typedef _Rb_tree_const_iterator const_iterator; 29724: 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: 29724: 29724: using node_type = _Node_handle<_Key, _Val, _Node_allocator>; 29724: using insert_return_type = _Node_insert_return< 29724: __conditional_t, const_iterator, iterator>, 29724: node_type>; 29724: 29724: 29724: pair<_Base_ptr, _Base_ptr> 29724: _M_get_insert_unique_pos(const key_type& __k); 29724: 29724: pair<_Base_ptr, _Base_ptr> 29724: _M_get_insert_equal_pos(const key_type& __k); 29724: 29724: pair<_Base_ptr, _Base_ptr> 29724: _M_get_insert_hint_unique_pos(const_iterator __pos, 29724: const key_type& __k); 29724: 29724: pair<_Base_ptr, _Base_ptr> 29724: _M_get_insert_hint_equal_pos(const_iterator __pos, 29724: const key_type& __k); 29724: 29724: private: 29724: 29724: template 29724: iterator 29724: _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); 29724: 29724: iterator 29724: _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); 29724: 29724: template 29724: iterator 29724: _M_insert_lower(_Base_ptr __y, _Arg&& __v); 29724: 29724: template 29724: iterator 29724: _M_insert_equal_lower(_Arg&& __x); 29724: 29724: iterator 29724: _M_insert_lower_node(_Base_ptr __p, _Link_type __z); 29724: 29724: iterator 29724: _M_insert_equal_lower_node(_Link_type __z); 29724: # 877 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: enum { __as_lvalue, __as_rvalue }; 29724: 29724: template 29724: _Link_type 29724: _M_copy(_Link_type, _Base_ptr, _NodeGen&); 29724: 29724: template 29724: _Link_type 29724: _M_copy(const _Rb_tree& __x, _NodeGen& __gen) 29724: { 29724: _Link_type __root = 29724: _M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen); 29724: _M_leftmost() = _S_minimum(__root); 29724: _M_rightmost() = _S_maximum(__root); 29724: _M_impl._M_node_count = __x._M_impl._M_node_count; 29724: return __root; 29724: } 29724: 29724: _Link_type 29724: _M_copy(const _Rb_tree& __x) 29724: { 29724: _Alloc_node __an(*this); 29724: return _M_copy<__as_lvalue>(__x, __an); 29724: } 29724: 29724: void 29724: _M_erase(_Link_type __x); 29724: 29724: iterator 29724: _M_lower_bound(_Link_type __x, _Base_ptr __y, 29724: const _Key& __k); 29724: 29724: const_iterator 29724: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29724: const _Key& __k) const; 29724: 29724: iterator 29724: _M_upper_bound(_Link_type __x, _Base_ptr __y, 29724: const _Key& __k); 29724: 29724: const_iterator 29724: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29724: const _Key& __k) const; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: _Rb_tree() = default; 29724: 29724: 29724: _Rb_tree(const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_impl(__comp, _Node_allocator(__a)) { } 29724: 29724: _Rb_tree(const _Rb_tree& __x) 29724: : _M_impl(__x._M_impl) 29724: { 29724: if (__x._M_root() != 0) 29724: _M_root() = _M_copy(__x); 29724: } 29724: 29724: 29724: _Rb_tree(const allocator_type& __a) 29724: : _M_impl(_Node_allocator(__a)) 29724: { } 29724: 29724: _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) 29724: : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) 29724: { 29724: if (__x._M_root() != nullptr) 29724: _M_root() = _M_copy(__x); 29724: } 29724: 29724: _Rb_tree(_Rb_tree&&) = default; 29724: 29724: _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) 29724: : _Rb_tree(std::move(__x), _Node_allocator(__a)) 29724: { } 29724: 29724: private: 29724: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) 29724: noexcept(is_nothrow_default_constructible<_Compare>::value) 29724: : _M_impl(std::move(__x._M_impl), std::move(__a)) 29724: { } 29724: 29724: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) 29724: : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) 29724: { 29724: if (__x._M_root() != nullptr) 29724: _M_move_data(__x, false_type{}); 29724: } 29724: 29724: public: 29724: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) 29724: noexcept( noexcept( 29724: _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), 29724: std::declval())) ) 29724: : _Rb_tree(std::move(__x), std::move(__a), 29724: typename _Alloc_traits::is_always_equal{}) 29724: { } 29724: 29724: 29724: ~_Rb_tree() noexcept 29724: { _M_erase(_M_begin()); } 29724: 29724: _Rb_tree& 29724: operator=(const _Rb_tree& __x); 29724: 29724: 29724: _Compare 29724: key_comp() const 29724: { return _M_impl._M_key_compare; } 29724: 29724: iterator 29724: begin() noexcept 29724: { return iterator(this->_M_impl._M_header._M_left); } 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(this->_M_impl._M_header._M_left); } 29724: 29724: iterator 29724: end() noexcept 29724: { return iterator(&this->_M_impl._M_header); } 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return const_iterator(&this->_M_impl._M_header); } 29724: 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(end()); } 29724: 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(begin()); } 29724: 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_impl._M_node_count == 0; } 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_impl._M_node_count; } 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _Alloc_traits::max_size(_M_get_Node_allocator()); } 29724: 29724: void 29724: swap(_Rb_tree& __t) 29724: noexcept(__is_nothrow_swappable<_Compare>::value); 29724: 29724: 29724: 29724: template 29724: pair 29724: _M_insert_unique(_Arg&& __x); 29724: 29724: template 29724: iterator 29724: _M_insert_equal(_Arg&& __x); 29724: 29724: template 29724: iterator 29724: _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); 29724: 29724: template 29724: iterator 29724: _M_insert_unique_(const_iterator __pos, _Arg&& __x) 29724: { 29724: _Alloc_node __an(*this); 29724: return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); 29724: } 29724: 29724: template 29724: iterator 29724: _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); 29724: 29724: template 29724: iterator 29724: _M_insert_equal_(const_iterator __pos, _Arg&& __x) 29724: { 29724: _Alloc_node __an(*this); 29724: return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); 29724: } 29724: 29724: template 29724: pair 29724: _M_emplace_unique(_Args&&... __args); 29724: 29724: template 29724: iterator 29724: _M_emplace_equal(_Args&&... __args); 29724: 29724: template 29724: iterator 29724: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); 29724: 29724: template 29724: iterator 29724: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); 29724: 29724: template 29724: using __same_value_type 29724: = is_same::value_type>; 29724: 29724: template 29724: __enable_if_t<__same_value_type<_InputIterator>::value> 29724: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 29724: { 29724: _Alloc_node __an(*this); 29724: for (; __first != __last; ++__first) 29724: _M_insert_unique_(end(), *__first, __an); 29724: } 29724: 29724: template 29724: __enable_if_t::value> 29724: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 29724: { 29724: for (; __first != __last; ++__first) 29724: _M_emplace_unique(*__first); 29724: } 29724: 29724: template 29724: __enable_if_t<__same_value_type<_InputIterator>::value> 29724: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 29724: { 29724: _Alloc_node __an(*this); 29724: for (; __first != __last; ++__first) 29724: _M_insert_equal_(end(), *__first, __an); 29724: } 29724: 29724: template 29724: __enable_if_t::value> 29724: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 29724: { 29724: for (; __first != __last; ++__first) 29724: _M_emplace_equal(*__first); 29724: } 29724: # 1176 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: private: 29724: void 29724: _M_erase_aux(const_iterator __position); 29724: 29724: void 29724: _M_erase_aux(const_iterator __first, const_iterator __last); 29724: 29724: public: 29724: 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __position) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__position != end())) std::__glibcxx_assert_fail(); } while (false); 29724: const_iterator __result = __position; 29724: ++__result; 29724: _M_erase_aux(__position); 29724: return __result._M_const_cast(); 29724: } 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(iterator __position) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__position != end())) std::__glibcxx_assert_fail(); } while (false); 29724: iterator __result = __position; 29724: ++__result; 29724: _M_erase_aux(__position); 29724: return __result; 29724: } 29724: # 1225 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: size_type 29724: erase(const key_type& __x); 29724: 29724: 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { 29724: _M_erase_aux(__first, __last); 29724: return __last._M_const_cast(); 29724: } 29724: # 1248 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: void 29724: clear() noexcept 29724: { 29724: _M_erase(_M_begin()); 29724: _M_impl._M_reset(); 29724: } 29724: 29724: 29724: iterator 29724: find(const key_type& __k); 29724: 29724: const_iterator 29724: find(const key_type& __k) const; 29724: 29724: size_type 29724: count(const key_type& __k) const; 29724: 29724: iterator 29724: lower_bound(const key_type& __k) 29724: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 29724: 29724: const_iterator 29724: lower_bound(const key_type& __k) const 29724: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 29724: 29724: iterator 29724: upper_bound(const key_type& __k) 29724: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 29724: 29724: const_iterator 29724: upper_bound(const key_type& __k) const 29724: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 29724: 29724: pair 29724: equal_range(const key_type& __k); 29724: 29724: pair 29724: equal_range(const key_type& __k) const; 29724: 29724: 29724: template> 29724: iterator 29724: _M_find_tr(const _Kt& __k) 29724: { 29724: const _Rb_tree* __const_this = this; 29724: return __const_this->_M_find_tr(__k)._M_const_cast(); 29724: } 29724: 29724: template> 29724: const_iterator 29724: _M_find_tr(const _Kt& __k) const 29724: { 29724: auto __j = _M_lower_bound_tr(__k); 29724: if (__j != end() && _M_impl._M_key_compare(__k, _S_key(__j._M_node))) 29724: __j = end(); 29724: return __j; 29724: } 29724: 29724: template> 29724: size_type 29724: _M_count_tr(const _Kt& __k) const 29724: { 29724: auto __p = _M_equal_range_tr(__k); 29724: return std::distance(__p.first, __p.second); 29724: } 29724: 29724: template> 29724: iterator 29724: _M_lower_bound_tr(const _Kt& __k) 29724: { 29724: const _Rb_tree* __const_this = this; 29724: return __const_this->_M_lower_bound_tr(__k)._M_const_cast(); 29724: } 29724: 29724: template> 29724: const_iterator 29724: _M_lower_bound_tr(const _Kt& __k) const 29724: { 29724: auto __x = _M_begin(); 29724: auto __y = _M_end(); 29724: while (__x != 0) 29724: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29724: { 29724: __y = __x; 29724: __x = _S_left(__x); 29724: } 29724: else 29724: __x = _S_right(__x); 29724: return const_iterator(__y); 29724: } 29724: 29724: template> 29724: iterator 29724: _M_upper_bound_tr(const _Kt& __k) 29724: { 29724: const _Rb_tree* __const_this = this; 29724: return __const_this->_M_upper_bound_tr(__k)._M_const_cast(); 29724: } 29724: 29724: template> 29724: const_iterator 29724: _M_upper_bound_tr(const _Kt& __k) const 29724: { 29724: auto __x = _M_begin(); 29724: auto __y = _M_end(); 29724: while (__x != 0) 29724: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29724: { 29724: __y = __x; 29724: __x = _S_left(__x); 29724: } 29724: else 29724: __x = _S_right(__x); 29724: return const_iterator(__y); 29724: } 29724: 29724: template> 29724: pair 29724: _M_equal_range_tr(const _Kt& __k) 29724: { 29724: const _Rb_tree* __const_this = this; 29724: auto __ret = __const_this->_M_equal_range_tr(__k); 29724: return { __ret.first._M_const_cast(), __ret.second._M_const_cast() }; 29724: } 29724: 29724: template> 29724: pair 29724: _M_equal_range_tr(const _Kt& __k) const 29724: { 29724: auto __low = _M_lower_bound_tr(__k); 29724: auto __high = __low; 29724: auto& __cmp = _M_impl._M_key_compare; 29724: while (__high != end() && !__cmp(__k, _S_key(__high._M_node))) 29724: ++__high; 29724: return { __low, __high }; 29724: } 29724: 29724: 29724: 29724: bool 29724: __rb_verify() const; 29724: 29724: 29724: _Rb_tree& 29724: operator=(_Rb_tree&&) 29724: noexcept(_Alloc_traits::_S_nothrow_move() 29724: && is_nothrow_move_assignable<_Compare>::value); 29724: 29724: template 29724: void 29724: _M_assign_unique(_Iterator, _Iterator); 29724: 29724: template 29724: void 29724: _M_assign_equal(_Iterator, _Iterator); 29724: 29724: private: 29724: 29724: void 29724: _M_move_data(_Rb_tree& __x, true_type) 29724: { _M_impl._M_move_data(__x._M_impl); } 29724: 29724: 29724: 29724: void 29724: _M_move_data(_Rb_tree&, false_type); 29724: 29724: 29724: void 29724: _M_move_assign(_Rb_tree&, true_type); 29724: 29724: 29724: 29724: void 29724: _M_move_assign(_Rb_tree&, false_type); 29724: 29724: 29724: 29724: public: 29724: 29724: insert_return_type 29724: _M_reinsert_node_unique(node_type&& __nh) 29724: { 29724: insert_return_type __ret; 29724: if (__nh.empty()) 29724: __ret.position = end(); 29724: else 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: auto __res = _M_get_insert_unique_pos(__nh._M_key()); 29724: if (__res.second) 29724: { 29724: __ret.position 29724: = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29724: __nh.release(); 29724: __ret.inserted = true; 29724: } 29724: else 29724: { 29724: __ret.node = std::move(__nh); 29724: __ret.position = iterator(__res.first); 29724: __ret.inserted = false; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: iterator 29724: _M_reinsert_node_equal(node_type&& __nh) 29724: { 29724: iterator __ret; 29724: if (__nh.empty()) 29724: __ret = end(); 29724: else 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: auto __res = _M_get_insert_equal_pos(__nh._M_key()); 29724: if (__res.second) 29724: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29724: else 29724: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 29724: __nh.release(); 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: iterator 29724: _M_reinsert_node_hint_unique(const_iterator __hint, node_type&& __nh) 29724: { 29724: iterator __ret; 29724: if (__nh.empty()) 29724: __ret = end(); 29724: else 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: auto __res = _M_get_insert_hint_unique_pos(__hint, __nh._M_key()); 29724: if (__res.second) 29724: { 29724: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29724: __nh.release(); 29724: } 29724: else 29724: __ret = iterator(__res.first); 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: iterator 29724: _M_reinsert_node_hint_equal(const_iterator __hint, node_type&& __nh) 29724: { 29724: iterator __ret; 29724: if (__nh.empty()) 29724: __ret = end(); 29724: else 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29724: auto __res = _M_get_insert_hint_equal_pos(__hint, __nh._M_key()); 29724: if (__res.second) 29724: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29724: else 29724: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 29724: __nh.release(); 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: auto __ptr = _Rb_tree_rebalance_for_erase( 29724: __pos._M_const_cast()._M_node, _M_impl._M_header); 29724: --_M_impl._M_node_count; 29724: return { static_cast<_Link_type>(__ptr), _M_get_Node_allocator() }; 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __k) 29724: { 29724: node_type __nh; 29724: auto __pos = find(__k); 29724: if (__pos != end()) 29724: __nh = extract(const_iterator(__pos)); 29724: return __nh; 29724: } 29724: 29724: template 29724: using _Compatible_tree 29724: = _Rb_tree<_Key, _Val, _KeyOfValue, _Compare2, _Alloc>; 29724: 29724: template 29724: friend struct _Rb_tree_merge_helper; 29724: 29724: 29724: template 29724: void 29724: _M_merge_unique(_Compatible_tree<_Compare2>& __src) noexcept 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 29724: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 29724: { 29724: auto __pos = __i++; 29724: auto __res = _M_get_insert_unique_pos(_KeyOfValue()(*__pos)); 29724: if (__res.second) 29724: { 29724: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 29724: auto __ptr = _Rb_tree_rebalance_for_erase( 29724: __pos._M_node, __src_impl._M_header); 29724: --__src_impl._M_node_count; 29724: _M_insert_node(__res.first, __res.second, 29724: static_cast<_Link_type>(__ptr)); 29724: } 29724: } 29724: } 29724: 29724: 29724: template 29724: void 29724: _M_merge_equal(_Compatible_tree<_Compare2>& __src) noexcept 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 29724: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 29724: { 29724: auto __pos = __i++; 29724: auto __res = _M_get_insert_equal_pos(_KeyOfValue()(*__pos)); 29724: if (__res.second) 29724: { 29724: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 29724: auto __ptr = _Rb_tree_rebalance_for_erase( 29724: __pos._M_node, __src_impl._M_header); 29724: --__src_impl._M_node_count; 29724: _M_insert_node(__res.first, __res.second, 29724: static_cast<_Link_type>(__ptr)); 29724: } 29724: } 29724: } 29724: 29724: 29724: friend bool 29724: operator==(const _Rb_tree& __x, const _Rb_tree& __y) 29724: { 29724: return __x.size() == __y.size() 29724: && std::equal(__x.begin(), __x.end(), __y.begin()); 29724: } 29724: # 1617 "/usr/include/c++/14/bits/stl_tree.h" 3 29724: friend bool 29724: operator<(const _Rb_tree& __x, const _Rb_tree& __y) 29724: { 29724: return std::lexicographical_compare(__x.begin(), __x.end(), 29724: __y.begin(), __y.end()); 29724: } 29724: 29724: 29724: private: 29724: 29724: 29724: struct _Auto_node 29724: { 29724: template 29724: _Auto_node(_Rb_tree& __t, _Args&&... __args) 29724: : _M_t(__t), 29724: _M_node(__t._M_create_node(std::forward<_Args>(__args)...)) 29724: { } 29724: 29724: ~_Auto_node() 29724: { 29724: if (_M_node) 29724: _M_t._M_drop_node(_M_node); 29724: } 29724: 29724: _Auto_node(_Auto_node&& __n) 29724: : _M_t(__n._M_t), _M_node(__n._M_node) 29724: { __n._M_node = nullptr; } 29724: 29724: const _Key& 29724: _M_key() const 29724: { return _S_key(_M_node); } 29724: 29724: iterator 29724: _M_insert(pair<_Base_ptr, _Base_ptr> __p) 29724: { 29724: auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node); 29724: _M_node = nullptr; 29724: return __it; 29724: } 29724: 29724: iterator 29724: _M_insert_equal_lower() 29724: { 29724: auto __it = _M_t._M_insert_equal_lower_node(_M_node); 29724: _M_node = nullptr; 29724: return __it; 29724: } 29724: 29724: _Rb_tree& _M_t; 29724: _Link_type _M_node; 29724: }; 29724: 29724: }; 29724: 29724: template 29724: inline void 29724: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_move_data(_Rb_tree& __x, false_type) 29724: { 29724: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 29724: _M_move_data(__x, true_type()); 29724: else 29724: { 29724: constexpr bool __move = !__move_if_noexcept_cond::value; 29724: _Alloc_node __an(*this); 29724: _M_root() = _M_copy<__move>(__x, __an); 29724: if constexpr (__move) 29724: __x.clear(); 29724: } 29724: } 29724: 29724: template 29724: inline void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_move_assign(_Rb_tree& __x, true_type) 29724: { 29724: clear(); 29724: if (__x._M_root() != nullptr) 29724: _M_move_data(__x, true_type()); 29724: std::__alloc_on_move(_M_get_Node_allocator(), 29724: __x._M_get_Node_allocator()); 29724: } 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_move_assign(_Rb_tree& __x, false_type) 29724: { 29724: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 29724: return _M_move_assign(__x, true_type{}); 29724: 29724: 29724: 29724: _Reuse_or_alloc_node __roan(*this); 29724: _M_impl._M_reset(); 29724: if (__x._M_root() != nullptr) 29724: { 29724: _M_root() = _M_copy<__as_rvalue>(__x, __roan); 29724: __x.clear(); 29724: } 29724: } 29724: 29724: template 29724: inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: operator=(_Rb_tree&& __x) 29724: noexcept(_Alloc_traits::_S_nothrow_move() 29724: && is_nothrow_move_assignable<_Compare>::value) 29724: { 29724: _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); 29724: _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); 29724: return *this; 29724: } 29724: 29724: template 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_assign_unique(_Iterator __first, _Iterator __last) 29724: { 29724: _Reuse_or_alloc_node __roan(*this); 29724: _M_impl._M_reset(); 29724: for (; __first != __last; ++__first) 29724: _M_insert_unique_(end(), *__first, __roan); 29724: } 29724: 29724: template 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_assign_equal(_Iterator __first, _Iterator __last) 29724: { 29724: _Reuse_or_alloc_node __roan(*this); 29724: _M_impl._M_reset(); 29724: for (; __first != __last; ++__first) 29724: _M_insert_equal_(end(), *__first, __roan); 29724: } 29724: 29724: 29724: template 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: operator=(const _Rb_tree& __x) 29724: { 29724: if (this != std::__addressof(__x)) 29724: { 29724: 29724: 29724: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: auto& __this_alloc = this->_M_get_Node_allocator(); 29724: auto& __that_alloc = __x._M_get_Node_allocator(); 29724: if (!_Alloc_traits::_S_always_equal() 29724: && __this_alloc != __that_alloc) 29724: { 29724: 29724: 29724: clear(); 29724: std::__alloc_on_copy(__this_alloc, __that_alloc); 29724: } 29724: } 29724: 29724: 29724: _Reuse_or_alloc_node __roan(*this); 29724: _M_impl._M_reset(); 29724: _M_impl._M_key_compare = __x._M_impl._M_key_compare; 29724: if (__x._M_root() != 0) 29724: _M_root() = _M_copy<__as_lvalue>(__x, __roan); 29724: } 29724: 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_(_Base_ptr __x, _Base_ptr __p, 29724: 29724: _Arg&& __v, 29724: 29724: 29724: 29724: _NodeGen& __node_gen) 29724: { 29724: bool __insert_left = (__x != 0 || __p == _M_end() 29724: || _M_impl._M_key_compare(_KeyOfValue()(__v), 29724: _S_key(__p))); 29724: 29724: _Link_type __z = __node_gen(std::forward<_Arg>(__v)); 29724: 29724: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29724: this->_M_impl._M_header); 29724: ++_M_impl._M_node_count; 29724: return iterator(__z); 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: 29724: _M_insert_lower(_Base_ptr __p, _Arg&& __v) 29724: 29724: 29724: 29724: { 29724: bool __insert_left = (__p == _M_end() 29724: || !_M_impl._M_key_compare(_S_key(__p), 29724: _KeyOfValue()(__v))); 29724: 29724: _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); 29724: 29724: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29724: this->_M_impl._M_header); 29724: ++_M_impl._M_node_count; 29724: return iterator(__z); 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: 29724: _M_insert_equal_lower(_Arg&& __v) 29724: 29724: 29724: 29724: { 29724: _Link_type __x = _M_begin(); 29724: _Base_ptr __y = _M_end(); 29724: while (__x != 0) 29724: { 29724: __y = __x; 29724: __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? 29724: _S_left(__x) : _S_right(__x); 29724: } 29724: return _M_insert_lower(__y, std::forward<_Arg>(__v)); 29724: } 29724: 29724: template 29724: template 29724: typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type 29724: _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: 29724: _M_copy(_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) 29724: { 29724: 29724: _Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen); 29724: __top->_M_parent = __p; 29724: 29724: try 29724: { 29724: if (__x->_M_right) 29724: __top->_M_right = 29724: _M_copy<_MoveValues>(_S_right(__x), __top, __node_gen); 29724: __p = __top; 29724: __x = _S_left(__x); 29724: 29724: while (__x != 0) 29724: { 29724: _Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen); 29724: __p->_M_left = __y; 29724: __y->_M_parent = __p; 29724: if (__x->_M_right) 29724: __y->_M_right = _M_copy<_MoveValues>(_S_right(__x), 29724: __y, __node_gen); 29724: __p = __y; 29724: __x = _S_left(__x); 29724: } 29724: } 29724: catch(...) 29724: { 29724: _M_erase(__top); 29724: throw; 29724: } 29724: return __top; 29724: } 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_erase(_Link_type __x) 29724: { 29724: 29724: while (__x != 0) 29724: { 29724: _M_erase(_S_right(__x)); 29724: _Link_type __y = _S_left(__x); 29724: _M_drop_node(__x); 29724: __x = __y; 29724: } 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_lower_bound(_Link_type __x, _Base_ptr __y, 29724: const _Key& __k) 29724: { 29724: while (__x != 0) 29724: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: __x = _S_right(__x); 29724: return iterator(__y); 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::const_iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29724: const _Key& __k) const 29724: { 29724: while (__x != 0) 29724: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: __x = _S_right(__x); 29724: return const_iterator(__y); 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_upper_bound(_Link_type __x, _Base_ptr __y, 29724: const _Key& __k) 29724: { 29724: while (__x != 0) 29724: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: __x = _S_right(__x); 29724: return iterator(__y); 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::const_iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29724: const _Key& __k) const 29724: { 29724: while (__x != 0) 29724: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: __x = _S_right(__x); 29724: return const_iterator(__y); 29724: } 29724: 29724: template 29724: pair::iterator, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::iterator> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: equal_range(const _Key& __k) 29724: { 29724: _Link_type __x = _M_begin(); 29724: _Base_ptr __y = _M_end(); 29724: while (__x != 0) 29724: { 29724: if (_M_impl._M_key_compare(_S_key(__x), __k)) 29724: __x = _S_right(__x); 29724: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: { 29724: _Link_type __xu(__x); 29724: _Base_ptr __yu(__y); 29724: __y = __x, __x = _S_left(__x); 29724: __xu = _S_right(__xu); 29724: return pair(_M_lower_bound(__x, __y, __k), 29724: _M_upper_bound(__xu, __yu, __k)); 29724: } 29724: } 29724: return pair(iterator(__y), 29724: iterator(__y)); 29724: } 29724: 29724: template 29724: pair::const_iterator, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::const_iterator> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: equal_range(const _Key& __k) const 29724: { 29724: _Const_Link_type __x = _M_begin(); 29724: _Const_Base_ptr __y = _M_end(); 29724: while (__x != 0) 29724: { 29724: if (_M_impl._M_key_compare(_S_key(__x), __k)) 29724: __x = _S_right(__x); 29724: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 29724: __y = __x, __x = _S_left(__x); 29724: else 29724: { 29724: _Const_Link_type __xu(__x); 29724: _Const_Base_ptr __yu(__y); 29724: __y = __x, __x = _S_left(__x); 29724: __xu = _S_right(__xu); 29724: return pair(_M_lower_bound(__x, __y, __k), 29724: _M_upper_bound(__xu, __yu, __k)); 29724: } 29724: } 29724: return pair(const_iterator(__y), 29724: const_iterator(__y)); 29724: } 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: swap(_Rb_tree& __t) 29724: noexcept(__is_nothrow_swappable<_Compare>::value) 29724: { 29724: if (_M_root() == 0) 29724: { 29724: if (__t._M_root() != 0) 29724: _M_impl._M_move_data(__t._M_impl); 29724: } 29724: else if (__t._M_root() == 0) 29724: __t._M_impl._M_move_data(_M_impl); 29724: else 29724: { 29724: std::swap(_M_root(),__t._M_root()); 29724: std::swap(_M_leftmost(),__t._M_leftmost()); 29724: std::swap(_M_rightmost(),__t._M_rightmost()); 29724: 29724: _M_root()->_M_parent = _M_end(); 29724: __t._M_root()->_M_parent = __t._M_end(); 29724: std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); 29724: } 29724: 29724: std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); 29724: 29724: _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), 29724: __t._M_get_Node_allocator()); 29724: } 29724: 29724: template 29724: pair::_Base_ptr, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::_Base_ptr> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_get_insert_unique_pos(const key_type& __k) 29724: { 29724: typedef pair<_Base_ptr, _Base_ptr> _Res; 29724: _Link_type __x = _M_begin(); 29724: _Base_ptr __y = _M_end(); 29724: bool __comp = true; 29724: while (__x != 0) 29724: { 29724: __y = __x; 29724: __comp = _M_impl._M_key_compare(__k, _S_key(__x)); 29724: __x = __comp ? _S_left(__x) : _S_right(__x); 29724: } 29724: iterator __j = iterator(__y); 29724: if (__comp) 29724: { 29724: if (__j == begin()) 29724: return _Res(__x, __y); 29724: else 29724: --__j; 29724: } 29724: if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) 29724: return _Res(__x, __y); 29724: return _Res(__j._M_node, 0); 29724: } 29724: 29724: template 29724: pair::_Base_ptr, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::_Base_ptr> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_get_insert_equal_pos(const key_type& __k) 29724: { 29724: typedef pair<_Base_ptr, _Base_ptr> _Res; 29724: _Link_type __x = _M_begin(); 29724: _Base_ptr __y = _M_end(); 29724: while (__x != 0) 29724: { 29724: __y = __x; 29724: __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? 29724: _S_left(__x) : _S_right(__x); 29724: } 29724: return _Res(__x, __y); 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: pair::iterator, bool> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: 29724: _M_insert_unique(_Arg&& __v) 29724: 29724: 29724: 29724: { 29724: typedef pair _Res; 29724: pair<_Base_ptr, _Base_ptr> __res 29724: = _M_get_insert_unique_pos(_KeyOfValue()(__v)); 29724: 29724: if (__res.second) 29724: { 29724: _Alloc_node __an(*this); 29724: return _Res(_M_insert_(__res.first, __res.second, 29724: std::forward<_Arg>(__v), __an), 29724: true); 29724: } 29724: 29724: return _Res(iterator(__res.first), false); 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: 29724: _M_insert_equal(_Arg&& __v) 29724: 29724: 29724: 29724: { 29724: pair<_Base_ptr, _Base_ptr> __res 29724: = _M_get_insert_equal_pos(_KeyOfValue()(__v)); 29724: _Alloc_node __an(*this); 29724: return _M_insert_(__res.first, __res.second, 29724: std::forward<_Arg>(__v), __an); 29724: } 29724: 29724: template 29724: pair::_Base_ptr, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::_Base_ptr> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_get_insert_hint_unique_pos(const_iterator __position, 29724: const key_type& __k) 29724: { 29724: iterator __pos = __position._M_const_cast(); 29724: typedef pair<_Base_ptr, _Base_ptr> _Res; 29724: 29724: 29724: if (__pos._M_node == _M_end()) 29724: { 29724: if (size() > 0 29724: && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) 29724: return _Res(0, _M_rightmost()); 29724: else 29724: return _M_get_insert_unique_pos(__k); 29724: } 29724: else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) 29724: { 29724: 29724: iterator __before = __pos; 29724: if (__pos._M_node == _M_leftmost()) 29724: return _Res(_M_leftmost(), _M_leftmost()); 29724: else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) 29724: { 29724: if (_S_right(__before._M_node) == 0) 29724: return _Res(0, __before._M_node); 29724: else 29724: return _Res(__pos._M_node, __pos._M_node); 29724: } 29724: else 29724: return _M_get_insert_unique_pos(__k); 29724: } 29724: else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 29724: { 29724: 29724: iterator __after = __pos; 29724: if (__pos._M_node == _M_rightmost()) 29724: return _Res(0, _M_rightmost()); 29724: else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) 29724: { 29724: if (_S_right(__pos._M_node) == 0) 29724: return _Res(0, __pos._M_node); 29724: else 29724: return _Res(__after._M_node, __after._M_node); 29724: } 29724: else 29724: return _M_get_insert_unique_pos(__k); 29724: } 29724: else 29724: 29724: return _Res(__pos._M_node, 0); 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_unique_(const_iterator __position, 29724: 29724: _Arg&& __v, 29724: 29724: 29724: 29724: _NodeGen& __node_gen) 29724: { 29724: pair<_Base_ptr, _Base_ptr> __res 29724: = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); 29724: 29724: if (__res.second) 29724: return _M_insert_(__res.first, __res.second, 29724: std::forward<_Arg>(__v), 29724: __node_gen); 29724: return iterator(__res.first); 29724: } 29724: 29724: template 29724: pair::_Base_ptr, 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::_Base_ptr> 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) 29724: { 29724: iterator __pos = __position._M_const_cast(); 29724: typedef pair<_Base_ptr, _Base_ptr> _Res; 29724: 29724: 29724: if (__pos._M_node == _M_end()) 29724: { 29724: if (size() > 0 29724: && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) 29724: return _Res(0, _M_rightmost()); 29724: else 29724: return _M_get_insert_equal_pos(__k); 29724: } 29724: else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 29724: { 29724: 29724: iterator __before = __pos; 29724: if (__pos._M_node == _M_leftmost()) 29724: return _Res(_M_leftmost(), _M_leftmost()); 29724: else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) 29724: { 29724: if (_S_right(__before._M_node) == 0) 29724: return _Res(0, __before._M_node); 29724: else 29724: return _Res(__pos._M_node, __pos._M_node); 29724: } 29724: else 29724: return _M_get_insert_equal_pos(__k); 29724: } 29724: else 29724: { 29724: 29724: iterator __after = __pos; 29724: if (__pos._M_node == _M_rightmost()) 29724: return _Res(0, _M_rightmost()); 29724: else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) 29724: { 29724: if (_S_right(__pos._M_node) == 0) 29724: return _Res(0, __pos._M_node); 29724: else 29724: return _Res(__after._M_node, __after._M_node); 29724: } 29724: else 29724: return _Res(0, 0); 29724: } 29724: } 29724: 29724: template 29724: 29724: template 29724: 29724: 29724: 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_equal_(const_iterator __position, 29724: 29724: _Arg&& __v, 29724: 29724: 29724: 29724: _NodeGen& __node_gen) 29724: { 29724: pair<_Base_ptr, _Base_ptr> __res 29724: = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); 29724: 29724: if (__res.second) 29724: return _M_insert_(__res.first, __res.second, 29724: std::forward<_Arg>(__v), 29724: __node_gen); 29724: 29724: return _M_insert_equal_lower(std::forward<_Arg>(__v)); 29724: } 29724: 29724: 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) 29724: -> iterator 29724: { 29724: bool __insert_left = (__x != 0 || __p == _M_end() 29724: || _M_impl._M_key_compare(_S_key(__z), 29724: _S_key(__p))); 29724: 29724: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29724: this->_M_impl._M_header); 29724: ++_M_impl._M_node_count; 29724: return iterator(__z); 29724: } 29724: 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) 29724: -> iterator 29724: { 29724: bool __insert_left = (__p == _M_end() 29724: || !_M_impl._M_key_compare(_S_key(__p), 29724: _S_key(__z))); 29724: 29724: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29724: this->_M_impl._M_header); 29724: ++_M_impl._M_node_count; 29724: return iterator(__z); 29724: } 29724: 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_insert_equal_lower_node(_Link_type __z) 29724: -> iterator 29724: { 29724: _Link_type __x = _M_begin(); 29724: _Base_ptr __y = _M_end(); 29724: while (__x != 0) 29724: { 29724: __y = __x; 29724: __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? 29724: _S_left(__x) : _S_right(__x); 29724: } 29724: return _M_insert_lower_node(__y, __z); 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_emplace_unique(_Args&&... __args) 29724: -> pair 29724: { 29724: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29724: auto __res = _M_get_insert_unique_pos(__z._M_key()); 29724: if (__res.second) 29724: return {__z._M_insert(__res), true}; 29724: return {iterator(__res.first), false}; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_emplace_equal(_Args&&... __args) 29724: -> iterator 29724: { 29724: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29724: auto __res = _M_get_insert_equal_pos(__z._M_key()); 29724: return __z._M_insert(__res); 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) 29724: -> iterator 29724: { 29724: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29724: auto __res = _M_get_insert_hint_unique_pos(__pos, __z._M_key()); 29724: if (__res.second) 29724: return __z._M_insert(__res); 29724: return iterator(__res.first); 29724: } 29724: 29724: template 29724: template 29724: auto 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) 29724: -> iterator 29724: { 29724: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29724: auto __res = _M_get_insert_hint_equal_pos(__pos, __z._M_key()); 29724: if (__res.second) 29724: return __z._M_insert(__res); 29724: return __z._M_insert_equal_lower(); 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_erase_aux(const_iterator __position) 29724: { 29724: _Link_type __y = 29724: static_cast<_Link_type>(_Rb_tree_rebalance_for_erase 29724: (const_cast<_Base_ptr>(__position._M_node), 29724: this->_M_impl._M_header)); 29724: _M_drop_node(__y); 29724: --_M_impl._M_node_count; 29724: } 29724: 29724: template 29724: void 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: _M_erase_aux(const_iterator __first, const_iterator __last) 29724: { 29724: if (__first == begin() && __last == end()) 29724: clear(); 29724: else 29724: while (__first != __last) 29724: _M_erase_aux(__first++); 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: erase(const _Key& __x) 29724: { 29724: pair __p = equal_range(__x); 29724: const size_type __old_size = size(); 29724: _M_erase_aux(__p.first, __p.second); 29724: return __old_size - size(); 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: find(const _Key& __k) 29724: { 29724: iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 29724: return (__j == end() 29724: || _M_impl._M_key_compare(__k, 29724: _S_key(__j._M_node))) ? end() : __j; 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29724: _Compare, _Alloc>::const_iterator 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: find(const _Key& __k) const 29724: { 29724: const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 29724: return (__j == end() 29724: || _M_impl._M_key_compare(__k, 29724: _S_key(__j._M_node))) ? end() : __j; 29724: } 29724: 29724: template 29724: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 29724: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29724: count(const _Key& __k) const 29724: { 29724: pair __p = equal_range(__k); 29724: const size_type __n = std::distance(__p.first, __p.second); 29724: return __n; 29724: } 29724: 29724: __attribute__ ((__pure__)) unsigned int 29724: _Rb_tree_black_count(const _Rb_tree_node_base* __node, 29724: const _Rb_tree_node_base* __root) throw (); 29724: 29724: template 29724: bool 29724: _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const 29724: { 29724: if (_M_impl._M_node_count == 0 || begin() == end()) 29724: return _M_impl._M_node_count == 0 && begin() == end() 29724: && this->_M_impl._M_header._M_left == _M_end() 29724: && this->_M_impl._M_header._M_right == _M_end(); 29724: 29724: unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); 29724: for (const_iterator __it = begin(); __it != end(); ++__it) 29724: { 29724: _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); 29724: _Const_Link_type __L = _S_left(__x); 29724: _Const_Link_type __R = _S_right(__x); 29724: 29724: if (__x->_M_color == _S_red) 29724: if ((__L && __L->_M_color == _S_red) 29724: || (__R && __R->_M_color == _S_red)) 29724: return false; 29724: 29724: if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) 29724: return false; 29724: if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) 29724: return false; 29724: 29724: if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) 29724: return false; 29724: } 29724: 29724: if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) 29724: return false; 29724: if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) 29724: return false; 29724: return true; 29724: } 29724: 29724: 29724: 29724: template 29724: struct _Rb_tree_merge_helper<_Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>, 29724: _Cmp2> 29724: { 29724: private: 29724: friend class _Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_impl(_Rb_tree<_Key, _Val, _Sel, _Cmp2, _Alloc>& __tree) 29724: { return __tree._M_impl; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 63 "/usr/include/c++/14/map" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_map.h" 1 3 29724: # 66 "/usr/include/c++/14/bits/stl_map.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class multimap; 29724: # 100 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template , 29724: typename _Alloc = std::allocator > > 29724: class map 29724: { 29724: public: 29724: typedef _Key key_type; 29724: typedef _Tp mapped_type; 29724: typedef std::pair value_type; 29724: typedef _Compare key_compare; 29724: typedef _Alloc allocator_type; 29724: 29724: private: 29724: # 130 "/usr/include/c++/14/bits/stl_map.h" 3 29724: public: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: class value_compare 29724: : public std::binary_function 29724: { 29724: friend class map<_Key, _Tp, _Compare, _Alloc>; 29724: protected: 29724: _Compare comp; 29724: 29724: value_compare(_Compare __c) 29724: : comp(__c) { } 29724: 29724: public: 29724: bool operator()(const value_type& __x, const value_type& __y) const 29724: { return comp(__x.first, __y.first); } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: private: 29724: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind::other _Pair_alloc_type; 29724: 29724: typedef _Rb_tree, 29724: key_compare, _Pair_alloc_type> _Rep_type; 29724: 29724: 29724: _Rep_type _M_t; 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 29724: 29724: 29724: template> 29724: static constexpr bool __usable_key 29724: = __or_v, 29724: __and_, is_scalar<_Key>>>; 29724: 29724: 29724: public: 29724: 29724: 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: typedef typename _Rep_type::iterator iterator; 29724: typedef typename _Rep_type::const_iterator const_iterator; 29724: typedef typename _Rep_type::size_type size_type; 29724: typedef typename _Rep_type::difference_type difference_type; 29724: typedef typename _Rep_type::reverse_iterator reverse_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29724: 29724: 29724: using node_type = typename _Rep_type::node_type; 29724: using insert_return_type = typename _Rep_type::insert_return_type; 29724: # 197 "/usr/include/c++/14/bits/stl_map.h" 3 29724: map() = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: map(const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) { } 29724: # 219 "/usr/include/c++/14/bits/stl_map.h" 3 29724: map(const map&) = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: map(map&&) = default; 29724: # 240 "/usr/include/c++/14/bits/stl_map.h" 3 29724: map(initializer_list __l, 29724: const _Compare& __comp = _Compare(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29724: 29724: 29724: explicit 29724: map(const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) { } 29724: 29724: 29724: map(const map& __m, const __type_identity_t& __a) 29724: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 29724: 29724: 29724: map(map&& __m, const __type_identity_t& __a) 29724: noexcept(is_nothrow_copy_constructible<_Compare>::value 29724: && _Alloc_traits::_S_always_equal()) 29724: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 29724: 29724: 29724: map(initializer_list __l, const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29724: 29724: 29724: template 29724: map(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 284 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: map(_InputIterator __first, _InputIterator __last) 29724: : _M_t() 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 301 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: map(_InputIterator __first, _InputIterator __last, 29724: const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~map() = default; 29724: # 330 "/usr/include/c++/14/bits/stl_map.h" 3 29724: map& 29724: operator=(const map&) = default; 29724: 29724: 29724: map& 29724: operator=(map&&) = default; 29724: # 348 "/usr/include/c++/14/bits/stl_map.h" 3 29724: map& 29724: operator=(initializer_list __l) 29724: { 29724: _M_t._M_assign_unique(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_t.get_allocator()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rend() noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_t.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_t.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_t.max_size(); } 29724: # 503 "/usr/include/c++/14/bits/stl_map.h" 3 29724: mapped_type& 29724: operator[](const key_type& __k) 29724: { 29724: 29724: 29724: 29724: iterator __i = lower_bound(__k); 29724: 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: 29724: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 29724: std::tuple(__k), 29724: std::tuple<>()); 29724: 29724: 29724: 29724: return (*__i).second; 29724: } 29724: 29724: 29724: mapped_type& 29724: operator[](key_type&& __k) 29724: { 29724: 29724: 29724: 29724: iterator __i = lower_bound(__k); 29724: 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::tuple<>()); 29724: return (*__i).second; 29724: } 29724: # 548 "/usr/include/c++/14/bits/stl_map.h" 3 29724: mapped_type& 29724: at(const key_type& __k) 29724: { 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: __throw_out_of_range(("map::at")); 29724: return (*__i).second; 29724: } 29724: 29724: const mapped_type& 29724: at(const key_type& __k) const 29724: { 29724: const_iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: __throw_out_of_range(("map::at")); 29724: return (*__i).second; 29724: } 29724: # 586 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: std::pair 29724: emplace(_Args&&... __args) 29724: { 29724: 29724: if constexpr (sizeof...(_Args) == 2) 29724: if constexpr (is_same_v>) 29724: { 29724: auto&& [__a, __v] = pair<_Args&...>(__args...); 29724: if constexpr (__usable_key) 29724: { 29724: const key_type& __k = __a; 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::forward<_Args>(__args)...); 29724: return {__i, true}; 29724: } 29724: return {__i, false}; 29724: } 29724: } 29724: 29724: return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); 29724: } 29724: # 636 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { 29724: return _M_t._M_emplace_hint_unique(__pos, 29724: std::forward<_Args>(__args)...); 29724: } 29724: 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_t.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __x) 29724: { return _M_t.extract(__x); } 29724: 29724: 29724: insert_return_type 29724: insert(node_type&& __nh) 29724: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 29724: 29724: template 29724: friend struct std::_Rb_tree_merge_helper; 29724: 29724: template 29724: void 29724: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29724: { merge(__source); } 29724: # 720 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: pair 29724: try_emplace(const key_type& __k, _Args&&... __args) 29724: { 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::piecewise_construct, 29724: std::forward_as_tuple(__k), 29724: std::forward_as_tuple( 29724: std::forward<_Args>(__args)...)); 29724: return {__i, true}; 29724: } 29724: return {__i, false}; 29724: } 29724: 29724: 29724: template 29724: pair 29724: try_emplace(key_type&& __k, _Args&&... __args) 29724: { 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::forward_as_tuple( 29724: std::forward<_Args>(__args)...)); 29724: return {__i, true}; 29724: } 29724: return {__i, false}; 29724: } 29724: # 780 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: iterator 29724: try_emplace(const_iterator __hint, const key_type& __k, 29724: _Args&&... __args) 29724: { 29724: iterator __i; 29724: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29724: if (__true_hint.second) 29724: __i = emplace_hint(iterator(__true_hint.second), 29724: std::piecewise_construct, 29724: std::forward_as_tuple(__k), 29724: std::forward_as_tuple( 29724: std::forward<_Args>(__args)...)); 29724: else 29724: __i = iterator(__true_hint.first); 29724: return __i; 29724: } 29724: 29724: 29724: template 29724: iterator 29724: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 29724: { 29724: iterator __i; 29724: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29724: if (__true_hint.second) 29724: __i = emplace_hint(iterator(__true_hint.second), 29724: std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::forward_as_tuple( 29724: std::forward<_Args>(__args)...)); 29724: else 29724: __i = iterator(__true_hint.first); 29724: return __i; 29724: } 29724: # 833 "/usr/include/c++/14/bits/stl_map.h" 3 29724: std::pair 29724: insert(const value_type& __x) 29724: { return _M_t._M_insert_unique(__x); } 29724: 29724: 29724: 29724: 29724: std::pair 29724: insert(value_type&& __x) 29724: { return _M_t._M_insert_unique(std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, 29724: pair> 29724: insert(_Pair&& __x) 29724: { 29724: 29724: using _P2 = remove_reference_t<_Pair>; 29724: if constexpr (__is_pair>) 29724: if constexpr (is_same_v>) 29724: if constexpr (__usable_key) 29724: { 29724: const key_type& __k = __x.first; 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::forward<_Pair>(__x)); 29724: return {__i, true}; 29724: } 29724: return {__i, false}; 29724: } 29724: 29724: return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); 29724: } 29724: # 878 "/usr/include/c++/14/bits/stl_map.h" 3 29724: void 29724: insert(std::initializer_list __list) 29724: { insert(__list.begin(), __list.end()); } 29724: # 907 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: 29724: insert(const_iterator __position, const value_type& __x) 29724: 29724: 29724: 29724: { return _M_t._M_insert_unique_(__position, __x); } 29724: 29724: 29724: 29724: 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(const_iterator __position, _Pair&& __x) 29724: { 29724: return _M_t._M_emplace_hint_unique(__position, 29724: std::forward<_Pair>(__x)); 29724: } 29724: # 940 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 965 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: pair 29724: insert_or_assign(const key_type& __k, _Obj&& __obj) 29724: { 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::piecewise_construct, 29724: std::forward_as_tuple(__k), 29724: std::forward_as_tuple( 29724: std::forward<_Obj>(__obj))); 29724: return {__i, true}; 29724: } 29724: (*__i).second = std::forward<_Obj>(__obj); 29724: return {__i, false}; 29724: } 29724: 29724: 29724: template 29724: pair 29724: insert_or_assign(key_type&& __k, _Obj&& __obj) 29724: { 29724: iterator __i = lower_bound(__k); 29724: if (__i == end() || key_comp()(__k, (*__i).first)) 29724: { 29724: __i = emplace_hint(__i, std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::forward_as_tuple( 29724: std::forward<_Obj>(__obj))); 29724: return {__i, true}; 29724: } 29724: (*__i).second = std::forward<_Obj>(__obj); 29724: return {__i, false}; 29724: } 29724: # 1020 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: iterator 29724: insert_or_assign(const_iterator __hint, 29724: const key_type& __k, _Obj&& __obj) 29724: { 29724: iterator __i; 29724: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29724: if (__true_hint.second) 29724: { 29724: return emplace_hint(iterator(__true_hint.second), 29724: std::piecewise_construct, 29724: std::forward_as_tuple(__k), 29724: std::forward_as_tuple( 29724: std::forward<_Obj>(__obj))); 29724: } 29724: __i = iterator(__true_hint.first); 29724: (*__i).second = std::forward<_Obj>(__obj); 29724: return __i; 29724: } 29724: 29724: 29724: template 29724: iterator 29724: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 29724: { 29724: iterator __i; 29724: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29724: if (__true_hint.second) 29724: { 29724: return emplace_hint(iterator(__true_hint.second), 29724: std::piecewise_construct, 29724: std::forward_as_tuple(std::move(__k)), 29724: std::forward_as_tuple( 29724: std::forward<_Obj>(__obj))); 29724: } 29724: __i = iterator(__true_hint.first); 29724: (*__i).second = std::forward<_Obj>(__obj); 29724: return __i; 29724: } 29724: # 1079 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_t.erase(__position); } 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(iterator __position) 29724: { return _M_t.erase(__position); } 29724: # 1116 "/usr/include/c++/14/bits/stl_map.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_t.erase(__x); } 29724: # 1136 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_t.erase(__first, __last); } 29724: # 1170 "/usr/include/c++/14/bits/stl_map.h" 3 29724: void 29724: swap(map& __x) 29724: noexcept(__is_nothrow_swappable<_Compare>::value) 29724: { _M_t.swap(__x._M_t); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_t.clear(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: key_compare 29724: key_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: 29724: 29724: 29724: 29724: value_compare 29724: value_comp() const 29724: { return value_compare(_M_t.key_comp()); } 29724: # 1217 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 29724: { return _M_t._M_find_tr(__x); } 29724: # 1242 "/usr/include/c++/14/bits/stl_map.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 29724: { return _M_t._M_find_tr(__x); } 29724: # 1263 "/usr/include/c++/14/bits/stl_map.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 29724: 29724: 29724: template 29724: auto 29724: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29724: { return _M_t._M_count_tr(__x); } 29724: # 1306 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: lower_bound(const key_type& __x) 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 1331 "/usr/include/c++/14/bits/stl_map.h" 3 29724: const_iterator 29724: lower_bound(const key_type& __x) const 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) const 29724: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 1351 "/usr/include/c++/14/bits/stl_map.h" 3 29724: iterator 29724: upper_bound(const key_type& __x) 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 1371 "/usr/include/c++/14/bits/stl_map.h" 3 29724: const_iterator 29724: upper_bound(const key_type& __x) const 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) const 29724: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 1400 "/usr/include/c++/14/bits/stl_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: # 1429 "/usr/include/c++/14/bits/stl_map.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) const 29724: -> decltype(pair( 29724: _M_t._M_equal_range_tr(__x))) 29724: { 29724: return pair( 29724: _M_t._M_equal_range_tr(__x)); 29724: } 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator==(const map<_K1, _T1, _C1, _A1>&, 29724: const map<_K1, _T1, _C1, _A1>&); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator<(const map<_K1, _T1, _C1, _A1>&, 29724: const map<_K1, _T1, _C1, _A1>&); 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: template>, 29724: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: map(_InputIterator, _InputIterator, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29724: _Compare, _Allocator>; 29724: 29724: template, 29724: typename _Allocator = allocator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: map(initializer_list>, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> map<_Key, _Tp, _Compare, _Allocator>; 29724: 29724: template , 29724: typename = _RequireAllocator<_Allocator>> 29724: map(_InputIterator, _InputIterator, _Allocator) 29724: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29724: less<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template> 29724: map(initializer_list>, _Allocator) 29724: -> map<_Key, _Tp, less<_Key>, _Allocator>; 29724: # 1510 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: inline bool 29724: operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __x._M_t == __y._M_t; } 29724: # 1548 "/usr/include/c++/14/bits/stl_map.h" 3 29724: template 29724: inline bool 29724: operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __x._M_t < __y._M_t; } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: inline bool 29724: operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(map<_Key, _Tp, _Compare, _Alloc>& __x, 29724: map<_Key, _Tp, _Compare, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: _Rb_tree_merge_helper, 29724: _Cmp2> 29724: { 29724: private: 29724: friend class std::map<_Key, _Val, _Cmp1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 29724: { return __map._M_t; } 29724: 29724: static auto& 29724: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 29724: { return __map._M_t; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 64 "/usr/include/c++/14/map" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_multimap.h" 1 3 29724: # 64 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class map; 29724: # 98 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template , 29724: typename _Alloc = std::allocator > > 29724: class multimap 29724: { 29724: public: 29724: typedef _Key key_type; 29724: typedef _Tp mapped_type; 29724: typedef std::pair value_type; 29724: typedef _Compare key_compare; 29724: typedef _Alloc allocator_type; 29724: 29724: private: 29724: # 129 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: public: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: class value_compare 29724: : public std::binary_function 29724: { 29724: friend class multimap<_Key, _Tp, _Compare, _Alloc>; 29724: protected: 29724: _Compare comp; 29724: 29724: value_compare(_Compare __c) 29724: : comp(__c) { } 29724: 29724: public: 29724: bool operator()(const value_type& __x, const value_type& __y) const 29724: { return comp(__x.first, __y.first); } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: private: 29724: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind::other _Pair_alloc_type; 29724: 29724: typedef _Rb_tree, 29724: key_compare, _Pair_alloc_type> _Rep_type; 29724: 29724: _Rep_type _M_t; 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 29724: 29724: public: 29724: 29724: 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: typedef typename _Rep_type::iterator iterator; 29724: typedef typename _Rep_type::const_iterator const_iterator; 29724: typedef typename _Rep_type::size_type size_type; 29724: typedef typename _Rep_type::difference_type difference_type; 29724: typedef typename _Rep_type::reverse_iterator reverse_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29724: 29724: 29724: using node_type = typename _Rep_type::node_type; 29724: # 187 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap() = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: multimap(const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) { } 29724: # 209 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap(const multimap&) = default; 29724: # 218 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap(multimap&&) = default; 29724: # 230 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap(initializer_list __l, 29724: const _Compare& __comp = _Compare(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29724: 29724: 29724: explicit 29724: multimap(const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) { } 29724: 29724: 29724: multimap(const multimap& __m, 29724: const __type_identity_t& __a) 29724: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 29724: 29724: 29724: multimap(multimap&& __m, const __type_identity_t& __a) 29724: noexcept(is_nothrow_copy_constructible<_Compare>::value 29724: && _Alloc_traits::_S_always_equal()) 29724: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 29724: 29724: 29724: multimap(initializer_list __l, const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29724: 29724: 29724: template 29724: multimap(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a) 29724: : _M_t(_Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 274 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: multimap(_InputIterator __first, _InputIterator __last) 29724: : _M_t() 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 290 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: multimap(_InputIterator __first, _InputIterator __last, 29724: const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Pair_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~multimap() = default; 29724: # 319 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap& 29724: operator=(const multimap&) = default; 29724: 29724: 29724: multimap& 29724: operator=(multimap&&) = default; 29724: # 337 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: multimap& 29724: operator=(initializer_list __l) 29724: { 29724: _M_t._M_assign_equal(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_t.get_allocator()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: begin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: end() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rend() noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cbegin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_iterator 29724: cend() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_t.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_t.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_t.max_size(); } 29724: # 495 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: iterator 29724: emplace(_Args&&... __args) 29724: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 29724: # 522 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { 29724: return _M_t._M_emplace_hint_equal(__pos, 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 544 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: insert(const value_type& __x) 29724: { return _M_t._M_insert_equal(__x); } 29724: 29724: 29724: 29724: 29724: iterator 29724: insert(value_type&& __x) 29724: { return _M_t._M_insert_equal(std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(_Pair&& __x) 29724: { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } 29724: # 583 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: 29724: insert(const_iterator __position, const value_type& __x) 29724: 29724: 29724: 29724: { return _M_t._M_insert_equal_(__position, __x); } 29724: 29724: 29724: 29724: 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 29724: 29724: template 29724: __enable_if_t::value, iterator> 29724: insert(const_iterator __position, _Pair&& __x) 29724: { 29724: return _M_t._M_emplace_hint_equal(__position, 29724: std::forward<_Pair>(__x)); 29724: } 29724: # 617 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 630 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { this->insert(__l.begin(), __l.end()); } 29724: 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_t.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __x) 29724: { return _M_t.extract(__x); } 29724: 29724: 29724: iterator 29724: insert(node_type&& __nh) 29724: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 29724: 29724: template 29724: friend struct std::_Rb_tree_merge_helper; 29724: 29724: template 29724: void 29724: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29724: { merge(__source); } 29724: # 707 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_t.erase(__position); } 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(iterator __position) 29724: { return _M_t.erase(__position); } 29724: # 744 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_t.erase(__x); } 29724: # 765 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_t.erase(__first, __last); } 29724: # 802 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: void 29724: swap(multimap& __x) 29724: noexcept(__is_nothrow_swappable<_Compare>::value) 29724: { _M_t.swap(__x._M_t); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { _M_t.clear(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: key_compare 29724: key_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: 29724: 29724: 29724: 29724: value_compare 29724: value_comp() const 29724: { return value_compare(_M_t.key_comp()); } 29724: # 848 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 29724: { return _M_t._M_find_tr(__x); } 29724: # 872 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 29724: { return _M_t._M_find_tr(__x); } 29724: # 890 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_t.count(__x); } 29724: 29724: 29724: template 29724: auto 29724: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29724: { return _M_t._M_count_tr(__x); } 29724: # 933 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: lower_bound(const key_type& __x) 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 958 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: const_iterator 29724: lower_bound(const key_type& __x) const 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) const 29724: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 978 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: iterator 29724: upper_bound(const key_type& __x) 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 998 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: const_iterator 29724: upper_bound(const key_type& __x) const 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) const 29724: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 1025 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: # 1052 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) const 29724: -> decltype(pair( 29724: _M_t._M_equal_range_tr(__x))) 29724: { 29724: return pair( 29724: _M_t._M_equal_range_tr(__x)); 29724: } 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator==(const multimap<_K1, _T1, _C1, _A1>&, 29724: const multimap<_K1, _T1, _C1, _A1>&); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator<(const multimap<_K1, _T1, _C1, _A1>&, 29724: const multimap<_K1, _T1, _C1, _A1>&); 29724: 29724: }; 29724: 29724: 29724: 29724: template>, 29724: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: multimap(_InputIterator, _InputIterator, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29724: _Compare, _Allocator>; 29724: 29724: template, 29724: typename _Allocator = allocator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: multimap(initializer_list>, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> multimap<_Key, _Tp, _Compare, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: multimap(_InputIterator, _InputIterator, _Allocator) 29724: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29724: less<__iter_key_t<_InputIterator>>, _Allocator>; 29724: 29724: template> 29724: multimap(initializer_list>, _Allocator) 29724: -> multimap<_Key, _Tp, less<_Key>, _Allocator>; 29724: # 1132 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: inline bool 29724: operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __x._M_t == __y._M_t; } 29724: # 1170 "/usr/include/c++/14/bits/stl_multimap.h" 3 29724: template 29724: inline bool 29724: operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __x._M_t < __y._M_t; } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: inline bool 29724: operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29724: multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: _Rb_tree_merge_helper, 29724: _Cmp2> 29724: { 29724: private: 29724: friend class std::multimap<_Key, _Val, _Cmp1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 29724: { return __map._M_t; } 29724: 29724: static auto& 29724: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 29724: { return __map._M_t; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 65 "/usr/include/c++/14/map" 2 3 29724: # 79 "/usr/include/c++/14/map" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 80 "/usr/include/c++/14/map" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template> 29724: using map 29724: = std::map<_Key, _Tp, _Cmp, 29724: polymorphic_allocator>>; 29724: template> 29724: using multimap 29724: = std::multimap<_Key, _Tp, _Cmp, 29724: polymorphic_allocator>>; 29724: } 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29724: 29724: # 1 "/usr/include/c++/14/mutex" 1 3 29724: # 32 "/usr/include/c++/14/mutex" 3 29724: 29724: # 33 "/usr/include/c++/14/mutex" 3 29724: # 47 "/usr/include/c++/14/mutex" 3 29724: # 1 "/usr/include/c++/14/bits/std_mutex.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: # 43 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 59 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: class __mutex_base 29724: { 29724: protected: 29724: typedef __gthread_mutex_t __native_type; 29724: 29724: 29724: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 29724: 29724: constexpr __mutex_base() noexcept = default; 29724: # 80 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: __mutex_base(const __mutex_base&) = delete; 29724: __mutex_base& operator=(const __mutex_base&) = delete; 29724: }; 29724: # 96 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: class mutex : private __mutex_base 29724: { 29724: public: 29724: typedef __native_type* native_handle_type; 29724: 29724: 29724: constexpr 29724: 29724: mutex() noexcept = default; 29724: ~mutex() = default; 29724: 29724: mutex(const mutex&) = delete; 29724: mutex& operator=(const mutex&) = delete; 29724: 29724: void 29724: lock() 29724: { 29724: int __e = __gthread_mutex_lock(&_M_mutex); 29724: 29724: 29724: if (__e) 29724: __throw_system_error(__e); 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: try_lock() noexcept 29724: { 29724: 29724: return !__gthread_mutex_trylock(&_M_mutex); 29724: } 29724: 29724: void 29724: unlock() 29724: { 29724: 29724: __gthread_mutex_unlock(&_M_mutex); 29724: } 29724: 29724: native_handle_type 29724: native_handle() noexcept 29724: { return &_M_mutex; } 29724: }; 29724: 29724: 29724: 29724: 29724: class __condvar 29724: { 29724: using timespec = __gthread_time_t; 29724: 29724: public: 29724: __condvar() noexcept 29724: { 29724: 29724: 29724: 29724: } 29724: 29724: ~__condvar() 29724: { 29724: int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); 29724: do { if (std::__is_constant_evaluated() && !bool(__e != 16)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: __condvar(const __condvar&) = delete; 29724: __condvar& operator=(const __condvar&) = delete; 29724: 29724: __gthread_cond_t* native_handle() noexcept { return &_M_cond; } 29724: 29724: 29724: void 29724: wait(mutex& __m) 29724: { 29724: int __e __attribute__((__unused__)) 29724: = __gthread_cond_wait(&_M_cond, __m.native_handle()); 29724: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: void 29724: wait_until(mutex& __m, timespec& __abs_time) 29724: { 29724: __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); 29724: } 29724: 29724: 29724: void 29724: wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) 29724: { 29724: pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, 29724: &__abs_time); 29724: } 29724: 29724: 29724: void 29724: notify_one() noexcept 29724: { 29724: int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); 29724: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: void 29724: notify_all() noexcept 29724: { 29724: int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); 29724: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: protected: 29724: 29724: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: struct defer_lock_t { explicit defer_lock_t() = default; }; 29724: 29724: 29724: struct try_to_lock_t { explicit try_to_lock_t() = default; }; 29724: 29724: 29724: 29724: struct adopt_lock_t { explicit adopt_lock_t() = default; }; 29724: 29724: 29724: inline constexpr defer_lock_t defer_lock { }; 29724: 29724: 29724: inline constexpr try_to_lock_t try_to_lock { }; 29724: 29724: 29724: inline constexpr adopt_lock_t adopt_lock { }; 29724: # 242 "/usr/include/c++/14/bits/std_mutex.h" 3 29724: template 29724: class lock_guard 29724: { 29724: public: 29724: typedef _Mutex mutex_type; 29724: 29724: [[__nodiscard__]] 29724: explicit lock_guard(mutex_type& __m) : _M_device(__m) 29724: { _M_device.lock(); } 29724: 29724: [[__nodiscard__]] 29724: lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) 29724: { } 29724: 29724: ~lock_guard() 29724: { _M_device.unlock(); } 29724: 29724: lock_guard(const lock_guard&) = delete; 29724: lock_guard& operator=(const lock_guard&) = delete; 29724: 29724: private: 29724: mutex_type& _M_device; 29724: }; 29724: 29724: 29724: 29724: } 29724: # 48 "/usr/include/c++/14/mutex" 2 3 29724: # 1 "/usr/include/c++/14/bits/unique_lock.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/unique_lock.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/unique_lock.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 1 3 29724: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 3 29724: # 1 "/usr/include/c++/14/cerrno" 1 3 29724: # 39 "/usr/include/c++/14/cerrno" 3 29724: 29724: # 40 "/usr/include/c++/14/cerrno" 3 29724: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: enum class errc 29724: { 29724: address_family_not_supported = 97, 29724: address_in_use = 98, 29724: address_not_available = 99, 29724: already_connected = 106, 29724: argument_list_too_long = 7, 29724: argument_out_of_domain = 33, 29724: bad_address = 14, 29724: bad_file_descriptor = 9, 29724: 29724: 29724: bad_message = 74, 29724: 29724: 29724: broken_pipe = 32, 29724: connection_aborted = 103, 29724: connection_already_in_progress = 114, 29724: connection_refused = 111, 29724: connection_reset = 104, 29724: cross_device_link = 18, 29724: destination_address_required = 89, 29724: device_or_resource_busy = 16, 29724: directory_not_empty = 39, 29724: executable_format_error = 8, 29724: file_exists = 17, 29724: file_too_large = 27, 29724: filename_too_long = 36, 29724: function_not_supported = 38, 29724: host_unreachable = 113, 29724: 29724: 29724: identifier_removed = 43, 29724: 29724: 29724: illegal_byte_sequence = 84, 29724: inappropriate_io_control_operation = 25, 29724: interrupted = 4, 29724: invalid_argument = 22, 29724: invalid_seek = 29, 29724: io_error = 5, 29724: is_a_directory = 21, 29724: message_size = 90, 29724: network_down = 100, 29724: network_reset = 102, 29724: network_unreachable = 101, 29724: no_buffer_space = 105, 29724: no_child_process = 10, 29724: 29724: 29724: no_link = 67, 29724: 29724: 29724: no_lock_available = 37, 29724: 29724: 29724: no_message_available = 61, 29724: 29724: 29724: no_message = 42, 29724: no_protocol_option = 92, 29724: no_space_on_device = 28, 29724: 29724: 29724: no_stream_resources = 63, 29724: 29724: 29724: no_such_device_or_address = 6, 29724: no_such_device = 19, 29724: no_such_file_or_directory = 2, 29724: no_such_process = 3, 29724: not_a_directory = 20, 29724: not_a_socket = 88, 29724: 29724: 29724: not_a_stream = 60, 29724: 29724: 29724: not_connected = 107, 29724: not_enough_memory = 12, 29724: 29724: 29724: not_supported = 95, 29724: 29724: 29724: 29724: operation_canceled = 125, 29724: 29724: 29724: operation_in_progress = 115, 29724: operation_not_permitted = 1, 29724: operation_not_supported = 95, 29724: operation_would_block = 11, 29724: 29724: 29724: owner_dead = 130, 29724: 29724: 29724: permission_denied = 13, 29724: 29724: 29724: protocol_error = 71, 29724: 29724: 29724: protocol_not_supported = 93, 29724: read_only_file_system = 30, 29724: resource_deadlock_would_occur = 35, 29724: resource_unavailable_try_again = 11, 29724: result_out_of_range = 34, 29724: 29724: 29724: state_not_recoverable = 131, 29724: 29724: 29724: 29724: stream_timeout = 62, 29724: 29724: 29724: 29724: text_file_busy = 26, 29724: 29724: 29724: timed_out = 110, 29724: too_many_files_open_in_system = 23, 29724: too_many_files_open = 24, 29724: too_many_links = 31, 29724: too_many_symbolic_link_levels = 40, 29724: 29724: 29724: value_too_large = 75, 29724: 29724: 29724: 29724: 29724: wrong_protocol_type = 91 29724: }; 29724: 29724: 29724: } 29724: # 41 "/usr/include/c++/14/bits/unique_lock.h" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 59 "/usr/include/c++/14/bits/unique_lock.h" 3 29724: template 29724: class unique_lock 29724: { 29724: public: 29724: typedef _Mutex mutex_type; 29724: 29724: unique_lock() noexcept 29724: : _M_device(0), _M_owns(false) 29724: { } 29724: 29724: [[__nodiscard__]] 29724: explicit unique_lock(mutex_type& __m) 29724: : _M_device(std::__addressof(__m)), _M_owns(false) 29724: { 29724: lock(); 29724: _M_owns = true; 29724: } 29724: 29724: unique_lock(mutex_type& __m, defer_lock_t) noexcept 29724: : _M_device(std::__addressof(__m)), _M_owns(false) 29724: { } 29724: 29724: [[__nodiscard__]] 29724: unique_lock(mutex_type& __m, try_to_lock_t) 29724: : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) 29724: { } 29724: 29724: [[__nodiscard__]] 29724: unique_lock(mutex_type& __m, adopt_lock_t) noexcept 29724: : _M_device(std::__addressof(__m)), _M_owns(true) 29724: { 29724: 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: unique_lock(mutex_type& __m, 29724: const chrono::time_point<_Clock, _Duration>& __atime) 29724: : _M_device(std::__addressof(__m)), 29724: _M_owns(_M_device->try_lock_until(__atime)) 29724: { } 29724: 29724: template 29724: [[__nodiscard__]] 29724: unique_lock(mutex_type& __m, 29724: const chrono::duration<_Rep, _Period>& __rtime) 29724: : _M_device(std::__addressof(__m)), 29724: _M_owns(_M_device->try_lock_for(__rtime)) 29724: { } 29724: 29724: ~unique_lock() 29724: { 29724: if (_M_owns) 29724: unlock(); 29724: } 29724: 29724: unique_lock(const unique_lock&) = delete; 29724: unique_lock& operator=(const unique_lock&) = delete; 29724: 29724: unique_lock(unique_lock&& __u) noexcept 29724: : _M_device(__u._M_device), _M_owns(__u._M_owns) 29724: { 29724: __u._M_device = 0; 29724: __u._M_owns = false; 29724: } 29724: 29724: unique_lock& operator=(unique_lock&& __u) noexcept 29724: { 29724: if(_M_owns) 29724: unlock(); 29724: 29724: unique_lock(std::move(__u)).swap(*this); 29724: 29724: __u._M_device = 0; 29724: __u._M_owns = false; 29724: 29724: return *this; 29724: } 29724: 29724: void 29724: lock() 29724: { 29724: if (!_M_device) 29724: __throw_system_error(int(errc::operation_not_permitted)); 29724: else if (_M_owns) 29724: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29724: else 29724: { 29724: _M_device->lock(); 29724: _M_owns = true; 29724: } 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: try_lock() 29724: { 29724: if (!_M_device) 29724: __throw_system_error(int(errc::operation_not_permitted)); 29724: else if (_M_owns) 29724: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29724: else 29724: { 29724: _M_owns = _M_device->try_lock(); 29724: return _M_owns; 29724: } 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29724: { 29724: if (!_M_device) 29724: __throw_system_error(int(errc::operation_not_permitted)); 29724: else if (_M_owns) 29724: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29724: else 29724: { 29724: _M_owns = _M_device->try_lock_until(__atime); 29724: return _M_owns; 29724: } 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29724: { 29724: if (!_M_device) 29724: __throw_system_error(int(errc::operation_not_permitted)); 29724: else if (_M_owns) 29724: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29724: else 29724: { 29724: _M_owns = _M_device->try_lock_for(__rtime); 29724: return _M_owns; 29724: } 29724: } 29724: 29724: void 29724: unlock() 29724: { 29724: if (!_M_owns) 29724: __throw_system_error(int(errc::operation_not_permitted)); 29724: else if (_M_device) 29724: { 29724: _M_device->unlock(); 29724: _M_owns = false; 29724: } 29724: } 29724: 29724: void 29724: swap(unique_lock& __u) noexcept 29724: { 29724: std::swap(_M_device, __u._M_device); 29724: std::swap(_M_owns, __u._M_owns); 29724: } 29724: 29724: mutex_type* 29724: release() noexcept 29724: { 29724: mutex_type* __ret = _M_device; 29724: _M_device = 0; 29724: _M_owns = false; 29724: return __ret; 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: owns_lock() const noexcept 29724: { return _M_owns; } 29724: 29724: explicit operator bool() const noexcept 29724: { return owns_lock(); } 29724: 29724: [[__nodiscard__]] 29724: mutex_type* 29724: mutex() const noexcept 29724: { return _M_device; } 29724: 29724: private: 29724: mutex_type* _M_device; 29724: bool _M_owns; 29724: }; 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept 29724: { __x.swap(__y); } 29724: 29724: 29724: } 29724: # 49 "/usr/include/c++/14/mutex" 2 3 29724: # 60 "/usr/include/c++/14/mutex" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 61 "/usr/include/c++/14/mutex" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 75 "/usr/include/c++/14/mutex" 3 29724: class __recursive_mutex_base 29724: { 29724: protected: 29724: typedef __gthread_recursive_mutex_t __native_type; 29724: 29724: __recursive_mutex_base(const __recursive_mutex_base&) = delete; 29724: __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; 29724: 29724: 29724: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 29724: 29724: __recursive_mutex_base() = default; 29724: # 99 "/usr/include/c++/14/mutex" 3 29724: }; 29724: # 111 "/usr/include/c++/14/mutex" 3 29724: class recursive_mutex : private __recursive_mutex_base 29724: { 29724: public: 29724: typedef __native_type* native_handle_type; 29724: 29724: recursive_mutex() = default; 29724: ~recursive_mutex() = default; 29724: 29724: recursive_mutex(const recursive_mutex&) = delete; 29724: recursive_mutex& operator=(const recursive_mutex&) = delete; 29724: 29724: void 29724: lock() 29724: { 29724: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 29724: 29724: 29724: if (__e) 29724: __throw_system_error(__e); 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: try_lock() noexcept 29724: { 29724: 29724: return !__gthread_recursive_mutex_trylock(&_M_mutex); 29724: } 29724: 29724: void 29724: unlock() 29724: { 29724: 29724: __gthread_recursive_mutex_unlock(&_M_mutex); 29724: } 29724: 29724: native_handle_type 29724: native_handle() noexcept 29724: { return &_M_mutex; } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: class __timed_mutex_impl 29724: { 29724: protected: 29724: template 29724: bool 29724: _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29724: { 29724: 29724: using __clock = chrono::steady_clock; 29724: 29724: 29724: 29724: 29724: auto __rt = chrono::duration_cast<__clock::duration>(__rtime); 29724: if (ratio_greater<__clock::period, _Period>()) 29724: ++__rt; 29724: return _M_try_lock_until(__clock::now() + __rt); 29724: } 29724: 29724: template 29724: bool 29724: _M_try_lock_until(const chrono::time_point& __atime) 29724: { 29724: auto __s = chrono::time_point_cast(__atime); 29724: auto __ns = chrono::duration_cast(__atime - __s); 29724: 29724: __gthread_time_t __ts = { 29724: static_cast(__s.time_since_epoch().count()), 29724: static_cast(__ns.count()) 29724: }; 29724: 29724: return static_cast<_Derived*>(this)->_M_timedlock(__ts); 29724: } 29724: 29724: 29724: template 29724: bool 29724: _M_try_lock_until(const chrono::time_point& __atime) 29724: { 29724: auto __s = chrono::time_point_cast(__atime); 29724: auto __ns = chrono::duration_cast(__atime - __s); 29724: 29724: __gthread_time_t __ts = { 29724: static_cast(__s.time_since_epoch().count()), 29724: static_cast(__ns.count()) 29724: }; 29724: 29724: return static_cast<_Derived*>(this)->_M_clocklock(1, 29724: __ts); 29724: } 29724: 29724: 29724: template 29724: bool 29724: _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: auto __now = _Clock::now(); 29724: do { 29724: auto __rtime = __atime - __now; 29724: if (_M_try_lock_for(__rtime)) 29724: return true; 29724: __now = _Clock::now(); 29724: } while (__atime > __now); 29724: return false; 29724: } 29724: }; 29724: # 240 "/usr/include/c++/14/mutex" 3 29724: class timed_mutex 29724: : private __mutex_base, public __timed_mutex_impl 29724: { 29724: public: 29724: typedef __native_type* native_handle_type; 29724: 29724: timed_mutex() = default; 29724: ~timed_mutex() = default; 29724: 29724: timed_mutex(const timed_mutex&) = delete; 29724: timed_mutex& operator=(const timed_mutex&) = delete; 29724: 29724: void 29724: lock() 29724: { 29724: int __e = __gthread_mutex_lock(&_M_mutex); 29724: 29724: 29724: if (__e) 29724: __throw_system_error(__e); 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: try_lock() noexcept 29724: { 29724: 29724: return !__gthread_mutex_trylock(&_M_mutex); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29724: { return _M_try_lock_for(__rtime); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29724: { return _M_try_lock_until(__atime); } 29724: 29724: void 29724: unlock() 29724: { 29724: 29724: __gthread_mutex_unlock(&_M_mutex); 29724: } 29724: 29724: native_handle_type 29724: native_handle() noexcept 29724: { return &_M_mutex; } 29724: 29724: private: 29724: friend class __timed_mutex_impl; 29724: 29724: bool 29724: _M_timedlock(const __gthread_time_t& __ts) 29724: { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } 29724: 29724: 29724: bool 29724: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 29724: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 29724: 29724: }; 29724: # 317 "/usr/include/c++/14/mutex" 3 29724: class recursive_timed_mutex 29724: : private __recursive_mutex_base, 29724: public __timed_mutex_impl 29724: { 29724: public: 29724: typedef __native_type* native_handle_type; 29724: 29724: recursive_timed_mutex() = default; 29724: ~recursive_timed_mutex() = default; 29724: 29724: recursive_timed_mutex(const recursive_timed_mutex&) = delete; 29724: recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; 29724: 29724: void 29724: lock() 29724: { 29724: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 29724: 29724: 29724: if (__e) 29724: __throw_system_error(__e); 29724: } 29724: 29724: [[__nodiscard__]] 29724: bool 29724: try_lock() noexcept 29724: { 29724: 29724: return !__gthread_recursive_mutex_trylock(&_M_mutex); 29724: } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29724: { return _M_try_lock_for(__rtime); } 29724: 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29724: { return _M_try_lock_until(__atime); } 29724: 29724: void 29724: unlock() 29724: { 29724: 29724: __gthread_recursive_mutex_unlock(&_M_mutex); 29724: } 29724: 29724: native_handle_type 29724: native_handle() noexcept 29724: { return &_M_mutex; } 29724: 29724: private: 29724: friend class __timed_mutex_impl; 29724: 29724: bool 29724: _M_timedlock(const __gthread_time_t& __ts) 29724: { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } 29724: 29724: 29724: bool 29724: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 29724: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 29724: 29724: }; 29724: # 564 "/usr/include/c++/14/mutex" 3 29724: namespace __detail 29724: { 29724: 29724: template 29724: inline int 29724: __try_lock_impl(_Lockable& __l) 29724: { 29724: if (unique_lock<_Lockable> __lock{__l, try_to_lock}) 29724: { 29724: __lock.release(); 29724: return -1; 29724: } 29724: else 29724: return 0; 29724: } 29724: 29724: 29724: 29724: template 29724: inline int 29724: __try_lock_impl(_L0& __l0, _Lockables&... __lockables) 29724: { 29724: 29724: if constexpr ((is_same_v<_L0, _Lockables> && ...)) 29724: { 29724: constexpr int _Np = 1 + sizeof...(_Lockables); 29724: unique_lock<_L0> __locks[_Np] = { 29724: {__l0, defer_lock}, {__lockables, defer_lock}... 29724: }; 29724: for (int __i = 0; __i < _Np; ++__i) 29724: { 29724: if (!__locks[__i].try_lock()) 29724: { 29724: const int __failed = __i; 29724: while (__i--) 29724: __locks[__i].unlock(); 29724: return __failed; 29724: } 29724: } 29724: for (auto& __l : __locks) 29724: __l.release(); 29724: return -1; 29724: } 29724: else 29724: 29724: if (unique_lock<_L0> __lock{__l0, try_to_lock}) 29724: { 29724: int __idx = __detail::__try_lock_impl(__lockables...); 29724: if (__idx == -1) 29724: { 29724: __lock.release(); 29724: return -1; 29724: } 29724: return __idx + 1; 29724: } 29724: else 29724: return 0; 29724: } 29724: 29724: } 29724: # 636 "/usr/include/c++/14/mutex" 3 29724: template 29724: [[__nodiscard__]] 29724: inline int 29724: try_lock(_L1& __l1, _L2& __l2, _L3&... __l3) 29724: { 29724: return __detail::__try_lock_impl(__l1, __l2, __l3...); 29724: } 29724: 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: __lock_impl(int& __i, int __depth, _L0& __l0, _L1&... __l1) 29724: { 29724: while (__i >= __depth) 29724: { 29724: if (__i == __depth) 29724: { 29724: int __failed = 1; 29724: { 29724: unique_lock<_L0> __first(__l0); 29724: __failed += __detail::__try_lock_impl(__l1...); 29724: if (!__failed) 29724: { 29724: __i = -1; 29724: __first.release(); 29724: return; 29724: } 29724: } 29724: 29724: __gthread_yield(); 29724: 29724: constexpr auto __n = 1 + sizeof...(_L1); 29724: __i = (__depth + __failed) % __n; 29724: } 29724: else 29724: __detail::__lock_impl(__i, __depth + 1, __l1..., __l0); 29724: } 29724: } 29724: 29724: } 29724: # 696 "/usr/include/c++/14/mutex" 3 29724: template 29724: void 29724: lock(_L1& __l1, _L2& __l2, _L3&... __l3) 29724: { 29724: 29724: if constexpr (is_same_v<_L1, _L2> && (is_same_v<_L1, _L3> && ...)) 29724: { 29724: constexpr int _Np = 2 + sizeof...(_L3); 29724: unique_lock<_L1> __locks[] = { 29724: {__l1, defer_lock}, {__l2, defer_lock}, {__l3, defer_lock}... 29724: }; 29724: int __first = 0; 29724: do { 29724: __locks[__first].lock(); 29724: for (int __j = 1; __j < _Np; ++__j) 29724: { 29724: const int __idx = (__first + __j) % _Np; 29724: if (!__locks[__idx].try_lock()) 29724: { 29724: for (int __k = __j; __k != 0; --__k) 29724: __locks[(__first + __k - 1) % _Np].unlock(); 29724: __first = __idx; 29724: break; 29724: } 29724: } 29724: } while (!__locks[__first].owns_lock()); 29724: 29724: for (auto& __l : __locks) 29724: __l.release(); 29724: } 29724: else 29724: 29724: { 29724: int __i = 0; 29724: __detail::__lock_impl(__i, 0, __l1, __l2, __l3...); 29724: } 29724: } 29724: # 743 "/usr/include/c++/14/mutex" 3 29724: template 29724: class scoped_lock 29724: { 29724: public: 29724: 29724: [[nodiscard]] 29724: explicit scoped_lock(_MutexTypes&... __m) : _M_devices(std::tie(__m...)) 29724: { std::lock(__m...); } 29724: 29724: [[nodiscard]] 29724: explicit scoped_lock(adopt_lock_t, _MutexTypes&... __m) noexcept 29724: : _M_devices(std::tie(__m...)) 29724: { } 29724: 29724: ~scoped_lock() 29724: { std::apply([](auto&... __m) { (__m.unlock(), ...); }, _M_devices); } 29724: 29724: scoped_lock(const scoped_lock&) = delete; 29724: scoped_lock& operator=(const scoped_lock&) = delete; 29724: 29724: private: 29724: tuple<_MutexTypes&...> _M_devices; 29724: }; 29724: 29724: template<> 29724: class scoped_lock<> 29724: { 29724: public: 29724: explicit scoped_lock() = default; 29724: explicit scoped_lock(adopt_lock_t) noexcept { } 29724: ~scoped_lock() = default; 29724: 29724: scoped_lock(const scoped_lock&) = delete; 29724: scoped_lock& operator=(const scoped_lock&) = delete; 29724: }; 29724: 29724: template 29724: class scoped_lock<_Mutex> 29724: { 29724: public: 29724: using mutex_type = _Mutex; 29724: 29724: [[nodiscard]] 29724: explicit scoped_lock(mutex_type& __m) : _M_device(__m) 29724: { _M_device.lock(); } 29724: 29724: [[nodiscard]] 29724: explicit scoped_lock(adopt_lock_t, mutex_type& __m) noexcept 29724: : _M_device(__m) 29724: { } 29724: 29724: ~scoped_lock() 29724: { _M_device.unlock(); } 29724: 29724: scoped_lock(const scoped_lock&) = delete; 29724: scoped_lock& operator=(const scoped_lock&) = delete; 29724: 29724: private: 29724: mutex_type& _M_device; 29724: }; 29724: 29724: 29724: 29724: 29724: struct once_flag 29724: { 29724: constexpr once_flag() noexcept = default; 29724: 29724: 29724: once_flag(const once_flag&) = delete; 29724: 29724: once_flag& operator=(const once_flag&) = delete; 29724: 29724: private: 29724: 29724: 29724: __gthread_once_t _M_once = 0; 29724: 29724: struct _Prepare_execution; 29724: 29724: template 29724: friend void 29724: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: extern __thread void* __once_callable; 29724: extern __thread void (*__once_call)(); 29724: 29724: 29724: struct once_flag::_Prepare_execution 29724: { 29724: template 29724: explicit 29724: _Prepare_execution(_Callable& __c) 29724: { 29724: 29724: __once_callable = std::__addressof(__c); 29724: 29724: __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; 29724: } 29724: 29724: ~_Prepare_execution() 29724: { 29724: 29724: __once_callable = nullptr; 29724: __once_call = nullptr; 29724: } 29724: 29724: _Prepare_execution(const _Prepare_execution&) = delete; 29724: _Prepare_execution& operator=(const _Prepare_execution&) = delete; 29724: }; 29724: # 900 "/usr/include/c++/14/mutex" 3 29724: extern "C" void __once_proxy(void); 29724: 29724: 29724: template 29724: void 29724: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 29724: { 29724: 29724: auto __callable = [&] { 29724: std::__invoke(std::forward<_Callable>(__f), 29724: std::forward<_Args>(__args)...); 29724: }; 29724: 29724: once_flag::_Prepare_execution __exec(__callable); 29724: 29724: 29724: if (int __e = __gthread_once(&__once._M_once, &__once_proxy)) 29724: __throw_system_error(__e); 29724: } 29724: # 1021 "/usr/include/c++/14/mutex" 3 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: namespace rocksdb { 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: enum Tickers : uint32_t { 29724: 29724: 29724: 29724: 29724: BLOCK_CACHE_MISS = 0, 29724: 29724: 29724: 29724: 29724: BLOCK_CACHE_HIT, 29724: 29724: BLOCK_CACHE_ADD, 29724: 29724: BLOCK_CACHE_ADD_FAILURES, 29724: 29724: BLOCK_CACHE_INDEX_MISS, 29724: 29724: BLOCK_CACHE_INDEX_HIT, 29724: 29724: BLOCK_CACHE_INDEX_ADD, 29724: 29724: BLOCK_CACHE_INDEX_BYTES_INSERT, 29724: 29724: BLOCK_CACHE_FILTER_MISS, 29724: 29724: BLOCK_CACHE_FILTER_HIT, 29724: 29724: BLOCK_CACHE_FILTER_ADD, 29724: 29724: BLOCK_CACHE_FILTER_BYTES_INSERT, 29724: 29724: BLOCK_CACHE_DATA_MISS, 29724: 29724: BLOCK_CACHE_DATA_HIT, 29724: 29724: BLOCK_CACHE_DATA_ADD, 29724: 29724: BLOCK_CACHE_DATA_BYTES_INSERT, 29724: 29724: BLOCK_CACHE_BYTES_READ, 29724: 29724: BLOCK_CACHE_BYTES_WRITE, 29724: 29724: BLOCK_CACHE_COMPRESSION_DICT_MISS, 29724: BLOCK_CACHE_COMPRESSION_DICT_HIT, 29724: BLOCK_CACHE_COMPRESSION_DICT_ADD, 29724: BLOCK_CACHE_COMPRESSION_DICT_BYTES_INSERT, 29724: 29724: 29724: 29724: BLOCK_CACHE_ADD_REDUNDANT, 29724: 29724: 29724: BLOCK_CACHE_INDEX_ADD_REDUNDANT, 29724: 29724: 29724: BLOCK_CACHE_FILTER_ADD_REDUNDANT, 29724: 29724: 29724: BLOCK_CACHE_DATA_ADD_REDUNDANT, 29724: 29724: 29724: 29724: BLOCK_CACHE_COMPRESSION_DICT_ADD_REDUNDANT, 29724: 29724: 29724: SECONDARY_CACHE_HITS, 29724: 29724: 29724: SECONDARY_CACHE_FILTER_HITS, 29724: SECONDARY_CACHE_INDEX_HITS, 29724: SECONDARY_CACHE_DATA_HITS, 29724: 29724: 29724: COMPRESSED_SECONDARY_CACHE_DUMMY_HITS, 29724: COMPRESSED_SECONDARY_CACHE_HITS, 29724: COMPRESSED_SECONDARY_CACHE_PROMOTIONS, 29724: COMPRESSED_SECONDARY_CACHE_PROMOTION_SKIPS, 29724: 29724: 29724: BLOOM_FILTER_USEFUL, 29724: 29724: BLOOM_FILTER_FULL_POSITIVE, 29724: 29724: 29724: BLOOM_FILTER_FULL_TRUE_POSITIVE, 29724: 29724: 29724: 29724: BLOOM_FILTER_PREFIX_CHECKED, 29724: 29724: BLOOM_FILTER_PREFIX_USEFUL, 29724: 29724: 29724: 29724: BLOOM_FILTER_PREFIX_TRUE_POSITIVE, 29724: 29724: 29724: PERSISTENT_CACHE_HIT, 29724: 29724: PERSISTENT_CACHE_MISS, 29724: 29724: 29724: SIM_BLOCK_CACHE_HIT, 29724: 29724: SIM_BLOCK_CACHE_MISS, 29724: 29724: 29724: MEMTABLE_HIT, 29724: 29724: MEMTABLE_MISS, 29724: 29724: 29724: GET_HIT_L0, 29724: 29724: GET_HIT_L1, 29724: 29724: GET_HIT_L2_AND_UP, 29724: 29724: 29724: 29724: 29724: 29724: COMPACTION_KEY_DROP_NEWER_ENTRY, 29724: 29724: COMPACTION_KEY_DROP_OBSOLETE, 29724: COMPACTION_KEY_DROP_RANGE_DEL, 29724: COMPACTION_KEY_DROP_USER, 29724: COMPACTION_RANGE_DEL_DROP_OBSOLETE, 29724: 29724: COMPACTION_OPTIMIZED_DEL_DROP_OBSOLETE, 29724: 29724: COMPACTION_CANCELLED, 29724: 29724: 29724: NUMBER_KEYS_WRITTEN, 29724: 29724: NUMBER_KEYS_READ, 29724: 29724: NUMBER_KEYS_UPDATED, 29724: 29724: 29724: BYTES_WRITTEN, 29724: 29724: 29724: 29724: 29724: BYTES_READ, 29724: 29724: NUMBER_DB_SEEK, 29724: NUMBER_DB_NEXT, 29724: NUMBER_DB_PREV, 29724: 29724: NUMBER_DB_SEEK_FOUND, 29724: NUMBER_DB_NEXT_FOUND, 29724: NUMBER_DB_PREV_FOUND, 29724: 29724: 29724: ITER_BYTES_READ, 29724: 29724: NUMBER_ITER_SKIP, 29724: 29724: 29724: NUMBER_OF_RESEEKS_IN_ITERATION, 29724: 29724: NO_ITERATOR_CREATED, 29724: NO_ITERATOR_DELETED, 29724: 29724: NO_FILE_OPENS, 29724: NO_FILE_ERRORS, 29724: 29724: STALL_MICROS, 29724: 29724: 29724: DB_MUTEX_WAIT_MICROS, 29724: 29724: 29724: NUMBER_MULTIGET_CALLS, 29724: NUMBER_MULTIGET_KEYS_READ, 29724: NUMBER_MULTIGET_BYTES_READ, 29724: 29724: 29724: 29724: NUMBER_MULTIGET_KEYS_FOUND, 29724: 29724: NUMBER_MERGE_FAILURES, 29724: 29724: 29724: 29724: GET_UPDATES_SINCE_CALLS, 29724: WAL_FILE_SYNCED, 29724: WAL_FILE_BYTES, 29724: 29724: 29724: 29724: WRITE_DONE_BY_SELF, 29724: WRITE_DONE_BY_OTHER, 29724: WRITE_WITH_WAL, 29724: COMPACT_READ_BYTES, 29724: COMPACT_WRITE_BYTES, 29724: FLUSH_WRITE_BYTES, 29724: 29724: 29724: COMPACT_READ_BYTES_MARKED, 29724: COMPACT_READ_BYTES_PERIODIC, 29724: COMPACT_READ_BYTES_TTL, 29724: COMPACT_WRITE_BYTES_MARKED, 29724: COMPACT_WRITE_BYTES_PERIODIC, 29724: COMPACT_WRITE_BYTES_TTL, 29724: 29724: 29724: 29724: NUMBER_DIRECT_LOAD_TABLE_PROPERTIES, 29724: NUMBER_SUPERVERSION_ACQUIRES, 29724: NUMBER_SUPERVERSION_RELEASES, 29724: NUMBER_SUPERVERSION_CLEANUPS, 29724: 29724: 29724: NUMBER_BLOCK_COMPRESSED, 29724: NUMBER_BLOCK_DECOMPRESSED, 29724: 29724: 29724: 29724: BYTES_COMPRESSED_FROM, 29724: 29724: 29724: BYTES_COMPRESSED_TO, 29724: 29724: 29724: 29724: 29724: BYTES_COMPRESSION_BYPASSED, 29724: 29724: 29724: 29724: 29724: 29724: BYTES_COMPRESSION_REJECTED, 29724: 29724: 29724: NUMBER_BLOCK_COMPRESSION_BYPASSED, 29724: 29724: NUMBER_BLOCK_COMPRESSION_REJECTED, 29724: 29724: 29724: 29724: BYTES_DECOMPRESSED_FROM, 29724: 29724: 29724: BYTES_DECOMPRESSED_TO, 29724: 29724: 29724: MERGE_OPERATION_TOTAL_TIME, 29724: FILTER_OPERATION_TOTAL_TIME, 29724: COMPACTION_CPU_TOTAL_TIME, 29724: 29724: 29724: ROW_CACHE_HIT, 29724: ROW_CACHE_MISS, 29724: 29724: 29724: 29724: 29724: 29724: 29724: READ_AMP_ESTIMATE_USEFUL_BYTES, 29724: READ_AMP_TOTAL_READ_BYTES, 29724: 29724: 29724: NUMBER_RATE_LIMITER_DRAINS, 29724: 29724: 29724: 29724: BLOB_DB_NUM_PUT, 29724: 29724: BLOB_DB_NUM_WRITE, 29724: 29724: BLOB_DB_NUM_GET, 29724: 29724: BLOB_DB_NUM_MULTIGET, 29724: 29724: 29724: BLOB_DB_NUM_SEEK, 29724: 29724: BLOB_DB_NUM_NEXT, 29724: 29724: BLOB_DB_NUM_PREV, 29724: 29724: BLOB_DB_NUM_KEYS_WRITTEN, 29724: 29724: BLOB_DB_NUM_KEYS_READ, 29724: 29724: 29724: BLOB_DB_BYTES_WRITTEN, 29724: 29724: 29724: BLOB_DB_BYTES_READ, 29724: 29724: 29724: BLOB_DB_WRITE_INLINED, 29724: 29724: 29724: BLOB_DB_WRITE_INLINED_TTL, 29724: 29724: 29724: BLOB_DB_WRITE_BLOB, 29724: 29724: 29724: BLOB_DB_WRITE_BLOB_TTL, 29724: 29724: BLOB_DB_BLOB_FILE_BYTES_WRITTEN, 29724: 29724: BLOB_DB_BLOB_FILE_BYTES_READ, 29724: 29724: BLOB_DB_BLOB_FILE_SYNCED, 29724: 29724: 29724: BLOB_DB_BLOB_INDEX_EXPIRED_COUNT, 29724: 29724: 29724: BLOB_DB_BLOB_INDEX_EXPIRED_SIZE, 29724: 29724: 29724: BLOB_DB_BLOB_INDEX_EVICTED_COUNT, 29724: 29724: 29724: BLOB_DB_BLOB_INDEX_EVICTED_SIZE, 29724: 29724: 29724: BLOB_DB_GC_NUM_FILES, 29724: 29724: 29724: BLOB_DB_GC_NUM_NEW_FILES, 29724: 29724: BLOB_DB_GC_FAILURES, 29724: 29724: BLOB_DB_GC_NUM_KEYS_RELOCATED, 29724: 29724: BLOB_DB_GC_BYTES_RELOCATED, 29724: 29724: 29724: BLOB_DB_FIFO_NUM_FILES_EVICTED, 29724: 29724: 29724: BLOB_DB_FIFO_NUM_KEYS_EVICTED, 29724: 29724: 29724: BLOB_DB_FIFO_BYTES_EVICTED, 29724: 29724: 29724: 29724: BLOB_DB_CACHE_MISS, 29724: 29724: BLOB_DB_CACHE_HIT, 29724: 29724: BLOB_DB_CACHE_ADD, 29724: 29724: BLOB_DB_CACHE_ADD_FAILURES, 29724: 29724: BLOB_DB_CACHE_BYTES_READ, 29724: 29724: BLOB_DB_CACHE_BYTES_WRITE, 29724: 29724: 29724: 29724: 29724: TXN_PREPARE_MUTEX_OVERHEAD, 29724: 29724: TXN_OLD_COMMIT_MAP_MUTEX_OVERHEAD, 29724: 29724: TXN_DUPLICATE_KEY_OVERHEAD, 29724: 29724: TXN_SNAPSHOT_MUTEX_OVERHEAD, 29724: 29724: TXN_GET_TRY_AGAIN, 29724: 29724: 29724: 29724: FILES_MARKED_TRASH, 29724: 29724: FILES_DELETED_FROM_TRASH_QUEUE, 29724: 29724: 29724: FILES_DELETED_IMMEDIATELY, 29724: 29724: 29724: 29724: ERROR_HANDLER_BG_ERROR_COUNT, 29724: ERROR_HANDLER_BG_IO_ERROR_COUNT, 29724: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT, 29724: ERROR_HANDLER_AUTORESUME_COUNT, 29724: ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT, 29724: ERROR_HANDLER_AUTORESUME_SUCCESS_COUNT, 29724: 29724: 29724: 29724: MEMTABLE_PAYLOAD_BYTES_AT_FLUSH, 29724: 29724: MEMTABLE_GARBAGE_BYTES_AT_FLUSH, 29724: 29724: 29724: VERIFY_CHECKSUM_READ_BYTES, 29724: 29724: 29724: BACKUP_READ_BYTES, 29724: BACKUP_WRITE_BYTES, 29724: 29724: 29724: REMOTE_COMPACT_READ_BYTES, 29724: REMOTE_COMPACT_WRITE_BYTES, 29724: 29724: 29724: HOT_FILE_READ_BYTES, 29724: WARM_FILE_READ_BYTES, 29724: COLD_FILE_READ_BYTES, 29724: HOT_FILE_READ_COUNT, 29724: WARM_FILE_READ_COUNT, 29724: COLD_FILE_READ_COUNT, 29724: 29724: 29724: LAST_LEVEL_READ_BYTES, 29724: LAST_LEVEL_READ_COUNT, 29724: NON_LAST_LEVEL_READ_BYTES, 29724: NON_LAST_LEVEL_READ_COUNT, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: LAST_LEVEL_SEEK_FILTERED, 29724: 29724: 29724: LAST_LEVEL_SEEK_FILTER_MATCH, 29724: 29724: 29724: LAST_LEVEL_SEEK_DATA, 29724: 29724: 29724: LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 29724: 29724: 29724: LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 29724: 29724: NON_LAST_LEVEL_SEEK_FILTERED, 29724: NON_LAST_LEVEL_SEEK_FILTER_MATCH, 29724: NON_LAST_LEVEL_SEEK_DATA, 29724: NON_LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 29724: NON_LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 29724: 29724: 29724: BLOCK_CHECKSUM_COMPUTE_COUNT, 29724: 29724: 29724: 29724: BLOCK_CHECKSUM_MISMATCH_COUNT, 29724: 29724: MULTIGET_COROUTINE_COUNT, 29724: 29724: 29724: READ_ASYNC_MICROS, 29724: 29724: ASYNC_READ_ERROR_COUNT, 29724: 29724: 29724: 29724: 29724: TABLE_OPEN_PREFETCH_TAIL_MISS, 29724: 29724: 29724: 29724: TABLE_OPEN_PREFETCH_TAIL_HIT, 29724: 29724: 29724: 29724: TIMESTAMP_FILTER_TABLE_CHECKED, 29724: 29724: TIMESTAMP_FILTER_TABLE_FILTERED, 29724: 29724: 29724: 29724: READAHEAD_TRIMMED, 29724: 29724: 29724: FIFO_MAX_SIZE_COMPACTIONS, 29724: FIFO_TTL_COMPACTIONS, 29724: 29724: 29724: PREFETCH_BYTES, 29724: 29724: 29724: PREFETCH_BYTES_USEFUL, 29724: 29724: 29724: PREFETCH_HITS, 29724: 29724: 29724: SST_FOOTER_CORRUPTION_COUNT, 29724: 29724: 29724: 29724: FILE_READ_CORRUPTION_RETRY_COUNT, 29724: FILE_READ_CORRUPTION_RETRY_SUCCESS_COUNT, 29724: 29724: TICKER_ENUM_MAX 29724: }; 29724: 29724: 29724: 29724: extern const std::vector> TickersNameMap; 29724: # 555 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: enum Histograms : uint32_t { 29724: DB_GET = 0, 29724: DB_WRITE, 29724: COMPACTION_TIME, 29724: COMPACTION_CPU_TIME, 29724: SUBCOMPACTION_SETUP_TIME, 29724: TABLE_SYNC_MICROS, 29724: COMPACTION_OUTFILE_SYNC_MICROS, 29724: WAL_FILE_SYNC_MICROS, 29724: MANIFEST_FILE_SYNC_MICROS, 29724: 29724: TABLE_OPEN_IO_MICROS, 29724: DB_MULTIGET, 29724: READ_BLOCK_COMPACTION_MICROS, 29724: READ_BLOCK_GET_MICROS, 29724: WRITE_RAW_BLOCK_MICROS, 29724: NUM_FILES_IN_SINGLE_COMPACTION, 29724: DB_SEEK, 29724: WRITE_STALL, 29724: 29724: SST_READ_MICROS, 29724: 29724: 29724: FILE_READ_FLUSH_MICROS, 29724: FILE_READ_COMPACTION_MICROS, 29724: FILE_READ_DB_OPEN_MICROS, 29724: 29724: 29724: FILE_READ_GET_MICROS, 29724: FILE_READ_MULTIGET_MICROS, 29724: FILE_READ_DB_ITERATOR_MICROS, 29724: FILE_READ_VERIFY_DB_CHECKSUM_MICROS, 29724: FILE_READ_VERIFY_FILE_CHECKSUMS_MICROS, 29724: 29724: 29724: SST_WRITE_MICROS, 29724: 29724: 29724: FILE_WRITE_FLUSH_MICROS, 29724: FILE_WRITE_COMPACTION_MICROS, 29724: FILE_WRITE_DB_OPEN_MICROS, 29724: 29724: 29724: NUM_SUBCOMPACTIONS_SCHEDULED, 29724: 29724: BYTES_PER_READ, 29724: BYTES_PER_WRITE, 29724: BYTES_PER_MULTIGET, 29724: 29724: COMPRESSION_TIMES_NANOS, 29724: DECOMPRESSION_TIMES_NANOS, 29724: 29724: 29724: READ_NUM_MERGE_OPERANDS, 29724: 29724: 29724: 29724: BLOB_DB_KEY_SIZE, 29724: 29724: BLOB_DB_VALUE_SIZE, 29724: 29724: 29724: BLOB_DB_WRITE_MICROS, 29724: 29724: BLOB_DB_GET_MICROS, 29724: 29724: BLOB_DB_MULTIGET_MICROS, 29724: 29724: 29724: BLOB_DB_SEEK_MICROS, 29724: 29724: BLOB_DB_NEXT_MICROS, 29724: 29724: BLOB_DB_PREV_MICROS, 29724: 29724: BLOB_DB_BLOB_FILE_WRITE_MICROS, 29724: 29724: BLOB_DB_BLOB_FILE_READ_MICROS, 29724: 29724: BLOB_DB_BLOB_FILE_SYNC_MICROS, 29724: 29724: BLOB_DB_COMPRESSION_MICROS, 29724: 29724: BLOB_DB_DECOMPRESSION_MICROS, 29724: 29724: FLUSH_TIME, 29724: SST_BATCH_SIZE, 29724: 29724: 29724: MULTIGET_IO_BATCH_SIZE, 29724: 29724: 29724: NUM_INDEX_AND_FILTER_BLOCKS_READ_PER_LEVEL, 29724: 29724: NUM_SST_READ_PER_LEVEL, 29724: 29724: NUM_LEVEL_READ_PER_MULTIGET, 29724: 29724: 29724: ERROR_HANDLER_AUTORESUME_RETRY_COUNT, 29724: 29724: 29724: ASYNC_READ_BYTES, 29724: POLL_WAIT_MICROS, 29724: 29724: 29724: PREFETCHED_BYTES_DISCARDED, 29724: 29724: 29724: ASYNC_PREFETCH_ABORT_MICROS, 29724: 29724: 29724: 29724: TABLE_OPEN_PREFETCH_TAIL_READ_BYTES, 29724: 29724: HISTOGRAM_ENUM_MAX 29724: }; 29724: 29724: extern const std::vector> HistogramsNameMap; 29724: 29724: struct HistogramData { 29724: double median; 29724: double percentile95; 29724: double percentile99; 29724: double average; 29724: double standard_deviation; 29724: 29724: 29724: double max = 0.0; 29724: uint64_t count = 0; 29724: uint64_t sum = 0; 29724: double min = 0.0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: enum StatsLevel : uint8_t { 29724: 29724: kDisableAll, 29724: 29724: kExceptTickers = kDisableAll, 29724: 29724: kExceptHistogramOrTimers, 29724: 29724: kExceptTimers, 29724: 29724: 29724: kExceptDetailedTimers, 29724: 29724: 29724: kExceptTimeForMutex, 29724: 29724: 29724: 29724: kAll, 29724: }; 29724: # 727 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: class Statistics : public Customizable { 29724: public: 29724: ~Statistics() override {} 29724: static const char* Type() { return "Statistics"; } 29724: static Status CreateFromString(const ConfigOptions& opts, 29724: const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: const char* Name() const override { return ""; } 29724: virtual uint64_t getTickerCount(uint32_t tickerType) const = 0; 29724: virtual void histogramData(uint32_t type, 29724: HistogramData* const data) const = 0; 29724: virtual std::string getHistogramString(uint32_t ) const { return ""; } 29724: virtual void recordTick(uint32_t tickerType, uint64_t count = 1) = 0; 29724: virtual void setTickerCount(uint32_t tickerType, uint64_t count) = 0; 29724: virtual uint64_t getAndResetTickerCount(uint32_t tickerType) = 0; 29724: virtual void reportTimeToHistogram(uint32_t histogramType, uint64_t time) { 29724: if (get_stats_level() <= StatsLevel::kExceptTimers) { 29724: return; 29724: } 29724: recordInHistogram(histogramType, time); 29724: } 29724: 29724: 29724: 29724: virtual void measureTime(uint32_t , uint64_t ) { 29724: 29724: 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29724: (static_cast ( 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: false 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: "false" 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29724: ; 29724: } 29724: virtual void recordInHistogram(uint32_t histogramType, uint64_t time) { 29724: 29724: 29724: 29724: 29724: measureTime(histogramType, time); 29724: } 29724: 29724: 29724: virtual Status Reset() { return Status::NotSupported("Not implemented"); } 29724: 29724: using Customizable::ToString; 29724: 29724: virtual std::string ToString() const { 29724: 29724: return std::string("ToString(): not implemented"); 29724: } 29724: 29724: virtual bool getTickerMap(std::map*) const { 29724: 29724: return false; 29724: } 29724: 29724: 29724: virtual bool HistEnabledForType(uint32_t type) const { 29724: return type < HISTOGRAM_ENUM_MAX; 29724: } 29724: void set_stats_level(StatsLevel sl) { 29724: stats_level_.store(sl, std::memory_order_relaxed); 29724: } 29724: StatsLevel get_stats_level() const { 29724: return stats_level_.load(std::memory_order_relaxed); 29724: } 29724: 29724: private: 29724: std::atomic stats_level_{kExceptDetailedTimers}; 29724: }; 29724: 29724: 29724: std::shared_ptr CreateDBStatistics(); 29724: 29724: } 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class HistogramBucketMapper { 29724: public: 29724: HistogramBucketMapper(); 29724: 29724: 29724: size_t IndexForValue(uint64_t value) const; 29724: 29724: 29724: size_t BucketCount() const { return bucketValues_.size(); } 29724: 29724: uint64_t LastValue() const { return maxBucketValue_; } 29724: 29724: uint64_t FirstValue() const { return minBucketValue_; } 29724: 29724: uint64_t BucketLimit(const size_t bucketNumber) const { 29724: 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29724: (static_cast ( 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29724: bucketNumber < BucketCount() 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29724: "bucketNumber < BucketCount()" 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29724: ; 29724: return bucketValues_[bucketNumber]; 29724: } 29724: 29724: private: 29724: std::vector bucketValues_; 29724: uint64_t maxBucketValue_; 29724: uint64_t minBucketValue_; 29724: }; 29724: 29724: struct HistogramStat { 29724: HistogramStat(); 29724: ~HistogramStat() {} 29724: 29724: HistogramStat(const HistogramStat&) = delete; 29724: HistogramStat& operator=(const HistogramStat&) = delete; 29724: 29724: void Clear(); 29724: bool Empty() const; 29724: void Add(uint64_t value); 29724: void Merge(const HistogramStat& other); 29724: 29724: inline uint64_t min() const { return min_.load(std::memory_order_relaxed); } 29724: inline uint64_t max() const { return max_.load(std::memory_order_relaxed); } 29724: inline uint64_t num() const { return num_.load(std::memory_order_relaxed); } 29724: inline uint64_t sum() const { return sum_.load(std::memory_order_relaxed); } 29724: inline uint64_t sum_squares() const { 29724: return sum_squares_.load(std::memory_order_relaxed); 29724: } 29724: inline uint64_t bucket_at(size_t b) const { 29724: return buckets_[b].load(std::memory_order_relaxed); 29724: } 29724: 29724: double Median() const; 29724: double Percentile(double p) const; 29724: double Average() const; 29724: double StandardDeviation() const; 29724: void Data(HistogramData* const data) const; 29724: std::string ToString() const; 29724: 29724: 29724: 29724: 29724: std::atomic_uint_fast64_t min_; 29724: std::atomic_uint_fast64_t max_; 29724: std::atomic_uint_fast64_t num_; 29724: std::atomic_uint_fast64_t sum_; 29724: std::atomic_uint_fast64_t sum_squares_; 29724: std::atomic_uint_fast64_t buckets_[109]; 29724: const uint64_t num_buckets_; 29724: }; 29724: 29724: class Histogram { 29724: public: 29724: Histogram() {} 29724: virtual ~Histogram(){} 29724: 29724: virtual void Clear() = 0; 29724: virtual bool Empty() const = 0; 29724: virtual void Add(uint64_t value) = 0; 29724: virtual void Merge(const Histogram&) = 0; 29724: 29724: virtual std::string ToString() const = 0; 29724: virtual const char* Name() const = 0; 29724: virtual uint64_t min() const = 0; 29724: virtual uint64_t max() const = 0; 29724: virtual uint64_t num() const = 0; 29724: virtual double Median() const = 0; 29724: virtual double Percentile(double p) const = 0; 29724: virtual double Average() const = 0; 29724: virtual double StandardDeviation() const = 0; 29724: virtual void Data(HistogramData* const data) const = 0; 29724: }; 29724: 29724: class HistogramImpl : public Histogram { 29724: public: 29724: HistogramImpl() { Clear(); } 29724: 29724: HistogramImpl(const HistogramImpl&) = delete; 29724: HistogramImpl& operator=(const HistogramImpl&) = delete; 29724: 29724: void Clear() override; 29724: bool Empty() const override; 29724: void Add(uint64_t value) override; 29724: void Merge(const Histogram& other) override; 29724: void Merge(const HistogramImpl& other); 29724: 29724: std::string ToString() const override; 29724: const char* Name() const override { return "HistogramImpl"; } 29724: uint64_t min() const override { return stats_.min(); } 29724: uint64_t max() const override { return stats_.max(); } 29724: uint64_t num() const override { return stats_.num(); } 29724: double Median() const override; 29724: double Percentile(double p) const override; 29724: double Average() const override; 29724: double StandardDeviation() const override; 29724: void Data(HistogramData* const data) const override; 29724: 29724: virtual ~HistogramImpl() {} 29724: 29724: inline HistogramStat& TEST_GetStats() { return stats_; } 29724: 29724: private: 29724: HistogramStat stats_; 29724: std::mutex mutex_; 29724: }; 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/likely.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/port/likely.h" 29724: 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 2 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/lang.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/port/lang.h" 29724: constexpr bool kMustFreeHeapAllocations = false; 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 2 29724: 29724: 29724: static_assert(true, "Semicolon required"); 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: template 29724: inline T BottomNBits(T v, int nbits) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: (static_cast ( 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: nbits >= 0 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: "nbits >= 0" 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: ; 29724: 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: (static_cast ( 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: nbits < int{8 * sizeof(T)} 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: "nbits < int{8 * sizeof(T)}" 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: ; 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: return static_cast(v & ((T{1} << nbits) - 1)); 29724: } 29724: 29724: 29724: 29724: template 29724: inline int FloorLog2(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: (static_cast ( 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: v > 0 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: "v > 0" 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: ; 29724: # 74 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29724: if (sizeof(T) <= sizeof(unsigned int)) { 29724: int lz = __builtin_clz(static_cast(v)); 29724: return int{sizeof(unsigned int)} * 8 - 1 - lz; 29724: } else if (sizeof(T) <= sizeof(unsigned long)) { 29724: int lz = __builtin_clzl(static_cast(v)); 29724: return int{sizeof(unsigned long)} * 8 - 1 - lz; 29724: } else { 29724: int lz = __builtin_clzll(static_cast(v)); 29724: return int{sizeof(unsigned long long)} * 8 - 1 - lz; 29724: } 29724: 29724: } 29724: 29724: 29724: template 29724: constexpr int ConstexprFloorLog2(T v) { 29724: 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: int rv = 0; 29724: while (v > T{1}) { 29724: ++rv; 29724: v >>= 1; 29724: } 29724: return rv; 29724: } 29724: 29724: 29724: template 29724: inline int CountTrailingZeroBits(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: (static_cast ( 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: v != 0 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: "v != 0" 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: ; 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29724: if (sizeof(T) <= sizeof(unsigned int)) { 29724: return __builtin_ctz(static_cast(v)); 29724: } else if (sizeof(T) <= sizeof(unsigned long)) { 29724: return __builtin_ctzl(static_cast(v)); 29724: } else { 29724: return __builtin_ctzll(static_cast(v)); 29724: } 29724: 29724: } 29724: # 172 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: template 29724: inline int BitsSetToOne(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: # 209 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29724: if (sizeof(T) < sizeof(unsigned int)) { 29724: 29724: constexpr auto mm = 8 * sizeof(unsigned int) - 1; 29724: 29724: constexpr unsigned int m = (1U << ((8 * sizeof(T)) & mm)) - 1; 29724: return __builtin_popcount(static_cast(v) & m); 29724: } else if (sizeof(T) == sizeof(unsigned int)) { 29724: return __builtin_popcount(static_cast(v)); 29724: } else if (sizeof(T) <= sizeof(unsigned long)) { 29724: return __builtin_popcountl(static_cast(v)); 29724: } else { 29724: return __builtin_popcountll(static_cast(v)); 29724: } 29724: 29724: } 29724: 29724: template 29724: inline int BitParity(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: 29724: 29724: 29724: 29724: 29724: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29724: if (sizeof(T) <= sizeof(unsigned int)) { 29724: 29724: return __builtin_parity(static_cast(v)); 29724: } else if (sizeof(T) <= sizeof(unsigned long)) { 29724: return __builtin_parityl(static_cast(v)); 29724: } else { 29724: return __builtin_parityll(static_cast(v)); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline T EndianSwapValue(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: if (sizeof(T) == 2) { 29724: return static_cast(__builtin_bswap16(static_cast(v))); 29724: } else if (sizeof(T) == 4) { 29724: return static_cast(__builtin_bswap32(static_cast(v))); 29724: } else if (sizeof(T) == 8) { 29724: return static_cast(__builtin_bswap64(static_cast(v))); 29724: } 29724: 29724: 29724: T ret_val = 0; 29724: for (std::size_t i = 0; i < sizeof(T); ++i) { 29724: ret_val |= ((v >> (8 * i)) & 0xff) << (8 * (sizeof(T) - 1 - i)); 29724: } 29724: return ret_val; 29724: } 29724: 29724: 29724: template 29724: inline T ReverseBits(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: 29724: T r = EndianSwapValue(v); 29724: const T kHighestByte = T{1} << ((sizeof(T) - 1) * 8); 29724: const T kEveryByte = kHighestByte | (kHighestByte / 255); 29724: 29724: r = ((r & (kEveryByte * 0x0f)) << 4) | ((r >> 4) & (kEveryByte * 0x0f)); 29724: r = ((r & (kEveryByte * 0x33)) << 2) | ((r >> 2) & (kEveryByte * 0x33)); 29724: r = ((r & (kEveryByte * 0x55)) << 1) | ((r >> 1) & (kEveryByte * 0x55)); 29724: 29724: return r; 29724: } 29724: # 317 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29724: template 29724: inline T DownwardInvolution(T v) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: static_assert(sizeof(T) <= 8, "only supported up to 64 bits"); 29724: 29724: uint64_t r = static_cast(v); 29724: if constexpr (sizeof(T) > 4) { 29724: r ^= r >> 32; 29724: } 29724: if constexpr (sizeof(T) > 2) { 29724: r ^= (r & 0xffff0000ffff0000U) >> 16; 29724: } 29724: if constexpr (sizeof(T) > 1) { 29724: r ^= (r & 0xff00ff00ff00ff00U) >> 8; 29724: } 29724: r ^= (r & 0xf0f0f0f0f0f0f0f0U) >> 4; 29724: r ^= (r & 0xccccccccccccccccU) >> 2; 29724: r ^= (r & 0xaaaaaaaaaaaaaaaaU) >> 1; 29724: return static_cast(r); 29724: } 29724: 29724: 29724: 29724: template 29724: inline std::conditional_t BitwiseAnd(A a, B b) { 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(std::is_integral_v, "non-integral type"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29724: using Smaller = std::conditional_t; 29724: return static_cast(a & b); 29724: } 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/random" 1 3 29724: # 32 "/usr/include/c++/14/random" 3 29724: 29724: # 33 "/usr/include/c++/14/random" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cmath" 1 3 29724: # 39 "/usr/include/c++/14/cmath" 3 29724: 29724: # 40 "/usr/include/c++/14/cmath" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/math.h" 1 3 4 29724: # 27 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 28 "/usr/include/math.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 34 "/usr/include/math.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libm-simd-decl-stubs.h" 1 3 4 29724: # 28 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 2 3 4 29724: # 41 "/usr/include/math.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29724: # 44 "/usr/include/math.h" 2 3 4 29724: # 152 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/flt-eval-method.h" 1 3 4 29724: # 153 "/usr/include/math.h" 2 3 4 29724: # 163 "/usr/include/math.h" 3 4 29724: typedef float float_t; 29724: typedef double double_t; 29724: # 204 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-logb.h" 1 3 4 29724: # 205 "/usr/include/math.h" 2 3 4 29724: # 247 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-fast.h" 1 3 4 29724: # 248 "/usr/include/math.h" 2 3 4 29724: 29724: 29724: 29724: enum 29724: { 29724: FP_INT_UPWARD = 29724: 29724: 0, 29724: FP_INT_DOWNWARD = 29724: 29724: 1, 29724: FP_INT_TOWARDZERO = 29724: 29724: 2, 29724: FP_INT_TONEARESTFROMZERO = 29724: 29724: 3, 29724: FP_INT_TONEAREST = 29724: 29724: 4, 29724: }; 29724: # 312 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29724: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29724: extern int __fpclassify (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __signbit (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern int __isinf (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __finite (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __isnan (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __iseqsig (double __x, double __y) noexcept (true); 29724: 29724: 29724: extern int __issignaling (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: # 313 "/usr/include/math.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); 29724: 29724: extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); 29724: 29724: extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); 29724: 29724: extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); 29724: 29724: 29724: extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); 29724: 29724: extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); 29724: 29724: extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); 29724: 29724: extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); 29724: 29724: extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); 29724: 29724: extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); 29724: 29724: extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); 29724: 29724: 29724: extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); 29724: 29724: 29724: extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); 29724: 29724: 29724: extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); 29724: 29724: 29724: extern double exp2m1 (double __x) noexcept (true); extern double __exp2m1 (double __x) noexcept (true); 29724: 29724: 29724: extern double exp10m1 (double __x) noexcept (true); extern double __exp10m1 (double __x) noexcept (true); 29724: 29724: 29724: extern double log2p1 (double __x) noexcept (true); extern double __log2p1 (double __x) noexcept (true); 29724: 29724: 29724: extern double log10p1 (double __x) noexcept (true); extern double __log10p1 (double __x) noexcept (true); 29724: 29724: 29724: extern double logp1 (double __x) noexcept (true); extern double __logp1 (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); 29724: 29724: 29724: extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); 29724: 29724: 29724: extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); 29724: 29724: 29724: extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); 29724: 29724: 29724: extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); 29724: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern int finite (double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); 29724: 29724: 29724: 29724: extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); 29724: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); 29724: extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); 29724: extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); 29724: extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); 29724: extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); 29724: extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); 29724: extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); 29724: extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); 29724: 29724: 29724: extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); 29724: 29724: extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); 29724: 29724: extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); 29724: 29724: 29724: 29724: extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); 29724: __extension__ 29724: extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); 29724: 29724: 29724: 29724: extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); 29724: 29724: 29724: 29724: extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfp (double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfp (double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpx (double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpx (double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalize (double *__cx, const double *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern double fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int totalorder (const double *__x, const double *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermag (const double *__x, const double *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); 29724: 29724: 29724: extern int setpayload (double *__x, double __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsig (double *__x, double __payload) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); 29724: # 314 "/usr/include/math.h" 2 3 4 29724: # 329 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29724: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29724: extern int __fpclassifyf (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __signbitf (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern int __isinff (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __finitef (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __isnanf (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __iseqsigf (float __x, float __y) noexcept (true); 29724: 29724: 29724: extern int __issignalingf (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: # 330 "/usr/include/math.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); 29724: 29724: extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); 29724: 29724: extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); 29724: 29724: extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); 29724: 29724: 29724: extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); 29724: 29724: extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); 29724: 29724: extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); 29724: 29724: extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); 29724: 29724: extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); 29724: 29724: extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); 29724: 29724: extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); 29724: 29724: 29724: extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); 29724: 29724: 29724: extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); 29724: 29724: 29724: extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); 29724: 29724: 29724: extern float exp2m1f (float __x) noexcept (true); extern float __exp2m1f (float __x) noexcept (true); 29724: 29724: 29724: extern float exp10m1f (float __x) noexcept (true); extern float __exp10m1f (float __x) noexcept (true); 29724: 29724: 29724: extern float log2p1f (float __x) noexcept (true); extern float __log2p1f (float __x) noexcept (true); 29724: 29724: 29724: extern float log10p1f (float __x) noexcept (true); extern float __log10p1f (float __x) noexcept (true); 29724: 29724: 29724: extern float logp1f (float __x) noexcept (true); extern float __logp1f (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); 29724: 29724: 29724: extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); 29724: 29724: 29724: extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); 29724: 29724: 29724: extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); 29724: 29724: 29724: extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); 29724: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern int isinff (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int finitef (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); 29724: 29724: 29724: 29724: extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); 29724: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern int isnanf (float __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 29724: extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); 29724: extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); 29724: extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); 29724: extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); 29724: extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); 29724: extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); 29724: extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); 29724: extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); 29724: 29724: 29724: extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); 29724: 29724: extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); 29724: 29724: extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); 29724: 29724: 29724: 29724: extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); 29724: __extension__ 29724: extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); 29724: 29724: 29724: 29724: extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); 29724: 29724: 29724: 29724: extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf (float __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf (float __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf (float __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalizef (float *__cx, const float *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern float fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int totalorderf (const float *__x, const float *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermagf (const float *__x, const float *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); 29724: 29724: 29724: extern int setpayloadf (float *__x, float __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsigf (float *__x, float __payload) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); 29724: # 331 "/usr/include/math.h" 2 3 4 29724: # 398 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29724: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29724: extern int __fpclassifyl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __signbitl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern int __isinfl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __finitel (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __isnanl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern int __iseqsigl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern int __issignalingl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: # 399 "/usr/include/math.h" 2 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); 29724: 29724: extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); 29724: 29724: extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); 29724: 29724: extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); 29724: 29724: 29724: extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); 29724: 29724: extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); 29724: 29724: extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); 29724: 29724: extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); 29724: 29724: extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 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) 29724: ; 29724: 29724: 29724: 29724: 29724: extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); 29724: 29724: extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); 29724: 29724: extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); 29724: 29724: 29724: extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); 29724: 29724: 29724: extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); 29724: 29724: 29724: 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))); 29724: 29724: 29724: 29724: extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double exp2m1l (long double __x) noexcept (true); extern long double __exp2m1l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double exp10m1l (long double __x) noexcept (true); extern long double __exp10m1l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double log2p1l (long double __x) noexcept (true); extern long double __log2p1l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double log10p1l (long double __x) noexcept (true); extern long double __log10p1l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double logp1l (long double __x) noexcept (true); extern long double __logp1l (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); 29724: 29724: 29724: extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); 29724: 29724: 29724: extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); 29724: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern int isinfl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int finitel (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); 29724: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern int isnanl (long double __value) noexcept (true) 29724: __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 29724: extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); 29724: extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); 29724: extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); 29724: extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); 29724: extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); 29724: extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); 29724: extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); 29724: extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); 29724: 29724: 29724: extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); 29724: 29724: extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); 29724: 29724: extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: 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); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); 29724: __extension__ 29724: extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); 29724: 29724: 29724: 29724: extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: 29724: extern long double fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 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); 29724: 29724: 29724: 29724: 29724: extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpl (long double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern long double fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern long double fmaximum_numl (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__)); 29724: 29724: 29724: extern long double fminimum_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__)); 29724: 29724: 29724: extern long double fmaximum_magl (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__)); 29724: 29724: 29724: extern long double fminimum_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__)); 29724: 29724: 29724: extern long double fmaximum_mag_numl (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__)); 29724: 29724: 29724: extern long double fminimum_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__)); 29724: 29724: 29724: 29724: 29724: extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); 29724: 29724: 29724: extern int setpayloadl (long double *__x, long double __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); 29724: # 400 "/usr/include/math.h" 2 3 4 29724: # 450 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 exp2m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2m1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 exp10m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10m1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 log2p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log2p1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 log10p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log10p1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 logp1f32 (_Float32 __x) noexcept (true); extern _Float32 __logp1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: 29724: 29724: extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); 29724: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); 29724: extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); 29724: extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); 29724: extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); 29724: extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); 29724: extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); 29724: extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); 29724: extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); 29724: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); 29724: 29724: extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); 29724: __extension__ 29724: extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32 fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); 29724: 29724: 29724: extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 29724: # 451 "/usr/include/math.h" 2 3 4 29724: # 467 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 exp2m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2m1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 exp10m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10m1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 log2p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log2p1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 log10p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log10p1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 logp1f64 (_Float64 __x) noexcept (true); extern _Float64 __logp1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); 29724: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); 29724: extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); 29724: extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); 29724: extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); 29724: extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); 29724: extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); 29724: extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); 29724: extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); 29724: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); 29724: 29724: extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); 29724: __extension__ 29724: extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float64 fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); 29724: 29724: 29724: extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 29724: # 468 "/usr/include/math.h" 2 3 4 29724: # 501 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29724: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); 29724: 29724: 29724: extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); 29724: 29724: 29724: extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x exp2m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2m1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x exp10m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10m1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x log2p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log2p1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x log10p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log10p1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x logp1f32x (_Float32x __x) noexcept (true); extern _Float32x __logp1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); 29724: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); 29724: extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); 29724: extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); 29724: extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); 29724: extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); 29724: extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); 29724: extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); 29724: extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); 29724: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29724: extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); 29724: 29724: extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); 29724: 29724: 29724: 29724: extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); 29724: __extension__ 29724: extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); 29724: __extension__ 29724: extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: 29724: extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: extern __intmax_t fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __intmax_t fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: 29724: 29724: extern __uintmax_t ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29724: ; 29724: 29724: 29724: extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern _Float32x fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 29724: 29724: __attribute__ ((__pure__)); 29724: 29724: 29724: extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); 29724: 29724: 29724: extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 29724: 29724: 29724: extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 29724: # 502 "/usr/include/math.h" 2 3 4 29724: # 566 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern float fadd (double __x, double __y) noexcept (true); 29724: 29724: 29724: extern float fdiv (double __x, double __y) noexcept (true); 29724: 29724: 29724: extern float ffma (double __x, double __y, double __z) noexcept (true); 29724: 29724: 29724: extern float fmul (double __x, double __y) noexcept (true); 29724: 29724: 29724: extern float fsqrt (double __x) noexcept (true); 29724: 29724: 29724: extern float fsub (double __x, double __y) noexcept (true); 29724: # 567 "/usr/include/math.h" 2 3 4 29724: # 587 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern float faddl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern float fdivl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); 29724: 29724: 29724: extern float fmull (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern float fsqrtl (long double __x) noexcept (true); 29724: 29724: 29724: extern float fsubl (long double __x, long double __y) noexcept (true); 29724: # 588 "/usr/include/math.h" 2 3 4 29724: # 616 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern double daddl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern double ddivl (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); 29724: 29724: 29724: extern double dmull (long double __x, long double __y) noexcept (true); 29724: 29724: 29724: extern double dsqrtl (long double __x) noexcept (true); 29724: 29724: 29724: extern double dsubl (long double __x, long double __y) noexcept (true); 29724: # 617 "/usr/include/math.h" 2 3 4 29724: # 697 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 29724: 29724: 29724: extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); 29724: 29724: 29724: extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); 29724: # 698 "/usr/include/math.h" 2 3 4 29724: # 707 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29724: 29724: 29724: extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: # 708 "/usr/include/math.h" 2 3 4 29724: # 747 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29724: extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29724: 29724: 29724: extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: 29724: 29724: extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); 29724: 29724: 29724: extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); 29724: # 748 "/usr/include/math.h" 2 3 4 29724: # 854 "/usr/include/math.h" 3 4 29724: extern int signgam; 29724: # 934 "/usr/include/math.h" 3 4 29724: enum 29724: { 29724: FP_NAN = 29724: 29724: 0, 29724: FP_INFINITE = 29724: 29724: 1, 29724: FP_ZERO = 29724: 29724: 2, 29724: FP_SUBNORMAL = 29724: 29724: 3, 29724: FP_NORMAL = 29724: 29724: 4 29724: }; 29724: # 1055 "/usr/include/math.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/iscanonical.h" 1 3 4 29724: # 1056 "/usr/include/math.h" 2 3 4 29724: # 1067 "/usr/include/math.h" 3 4 29724: extern "C++" { 29724: inline int issignaling (float __val) { return __issignalingf (__val); } 29724: inline int issignaling (double __val) { return __issignaling (__val); } 29724: inline int 29724: issignaling (long double __val) 29724: { 29724: 29724: return __issignaling (__val); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 1098 "/usr/include/math.h" 3 4 29724: extern "C++" { 29724: # 1129 "/usr/include/math.h" 3 4 29724: template inline bool 29724: iszero (__T __val) 29724: { 29724: return __val == 0; 29724: } 29724: 29724: } 29724: # 1364 "/usr/include/math.h" 3 4 29724: extern "C++" { 29724: template struct __iseqsig_type; 29724: 29724: template<> struct __iseqsig_type 29724: { 29724: static int __call (float __x, float __y) throw () 29724: { 29724: return __iseqsigf (__x, __y); 29724: } 29724: }; 29724: 29724: template<> struct __iseqsig_type 29724: { 29724: static int __call (double __x, double __y) throw () 29724: { 29724: return __iseqsig (__x, __y); 29724: } 29724: }; 29724: 29724: template<> struct __iseqsig_type 29724: { 29724: static int __call (long double __x, long double __y) throw () 29724: { 29724: 29724: 29724: 29724: return __iseqsig (__x, __y); 29724: 29724: } 29724: }; 29724: 29724: 29724: template<> struct __iseqsig_type<_Float32> 29724: { 29724: static int __call (_Float32 __x, _Float32 __y) throw () 29724: { 29724: return __iseqsigf (__x, __y); 29724: } 29724: }; 29724: 29724: 29724: 29724: template<> struct __iseqsig_type<_Float64> 29724: { 29724: static int __call (_Float64 __x, _Float64 __y) throw () 29724: { 29724: return __iseqsig (__x, __y); 29724: } 29724: }; 29724: # 1432 "/usr/include/math.h" 3 4 29724: template<> struct __iseqsig_type<_Float32x> 29724: { 29724: static int __call (_Float32x __x, _Float32x __y) throw () 29724: { 29724: return __iseqsig (__x, __y); 29724: } 29724: }; 29724: # 1455 "/usr/include/math.h" 3 4 29724: template 29724: inline int 29724: iseqsig (_T1 __x, _T2 __y) throw () 29724: { 29724: 29724: typedef decltype (((__x) + (__y) + 0.0f)) _T3; 29724: 29724: 29724: 29724: return __iseqsig_type<_T3>::__call (__x, __y); 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 48 "/usr/include/c++/14/cmath" 2 3 29724: # 56 "/usr/include/c++/14/cmath" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 57 "/usr/include/c++/14/cmath" 2 3 29724: # 83 "/usr/include/c++/14/cmath" 3 29724: extern "C++" 29724: { 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: using ::acos; 29724: 29724: 29724: inline constexpr float 29724: acos(float __x) 29724: { return __builtin_acosf(__x); } 29724: 29724: inline constexpr long double 29724: acos(long double __x) 29724: { return __builtin_acosl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: acos(_Tp __x) 29724: { return __builtin_acos(__x); } 29724: 29724: using ::asin; 29724: 29724: 29724: inline constexpr float 29724: asin(float __x) 29724: { return __builtin_asinf(__x); } 29724: 29724: inline constexpr long double 29724: asin(long double __x) 29724: { return __builtin_asinl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: asin(_Tp __x) 29724: { return __builtin_asin(__x); } 29724: 29724: using ::atan; 29724: 29724: 29724: inline constexpr float 29724: atan(float __x) 29724: { return __builtin_atanf(__x); } 29724: 29724: inline constexpr long double 29724: atan(long double __x) 29724: { return __builtin_atanl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: atan(_Tp __x) 29724: { return __builtin_atan(__x); } 29724: 29724: using ::atan2; 29724: 29724: 29724: inline constexpr float 29724: atan2(float __y, float __x) 29724: { return __builtin_atan2f(__y, __x); } 29724: 29724: inline constexpr long double 29724: atan2(long double __y, long double __x) 29724: { return __builtin_atan2l(__y, __x); } 29724: 29724: 29724: using ::ceil; 29724: 29724: 29724: inline constexpr float 29724: ceil(float __x) 29724: { return __builtin_ceilf(__x); } 29724: 29724: inline constexpr long double 29724: ceil(long double __x) 29724: { return __builtin_ceill(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: ceil(_Tp __x) 29724: { return __builtin_ceil(__x); } 29724: 29724: using ::cos; 29724: 29724: 29724: inline constexpr float 29724: cos(float __x) 29724: { return __builtin_cosf(__x); } 29724: 29724: inline constexpr long double 29724: cos(long double __x) 29724: { return __builtin_cosl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: cos(_Tp __x) 29724: { return __builtin_cos(__x); } 29724: 29724: using ::cosh; 29724: 29724: 29724: inline constexpr float 29724: cosh(float __x) 29724: { return __builtin_coshf(__x); } 29724: 29724: inline constexpr long double 29724: cosh(long double __x) 29724: { return __builtin_coshl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: cosh(_Tp __x) 29724: { return __builtin_cosh(__x); } 29724: 29724: using ::exp; 29724: 29724: 29724: inline constexpr float 29724: exp(float __x) 29724: { return __builtin_expf(__x); } 29724: 29724: inline constexpr long double 29724: exp(long double __x) 29724: { return __builtin_expl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: exp(_Tp __x) 29724: { return __builtin_exp(__x); } 29724: 29724: using ::fabs; 29724: 29724: 29724: inline constexpr float 29724: fabs(float __x) 29724: { return __builtin_fabsf(__x); } 29724: 29724: inline constexpr long double 29724: fabs(long double __x) 29724: { return __builtin_fabsl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: fabs(_Tp __x) 29724: { return __builtin_fabs(__x); } 29724: 29724: using ::floor; 29724: 29724: 29724: inline constexpr float 29724: floor(float __x) 29724: { return __builtin_floorf(__x); } 29724: 29724: inline constexpr long double 29724: floor(long double __x) 29724: { return __builtin_floorl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: floor(_Tp __x) 29724: { return __builtin_floor(__x); } 29724: 29724: using ::fmod; 29724: 29724: 29724: inline constexpr float 29724: fmod(float __x, float __y) 29724: { return __builtin_fmodf(__x, __y); } 29724: 29724: inline constexpr long double 29724: fmod(long double __x, long double __y) 29724: { return __builtin_fmodl(__x, __y); } 29724: 29724: 29724: using ::frexp; 29724: 29724: 29724: inline float 29724: frexp(float __x, int* __exp) 29724: { return __builtin_frexpf(__x, __exp); } 29724: 29724: inline long double 29724: frexp(long double __x, int* __exp) 29724: { return __builtin_frexpl(__x, __exp); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: frexp(_Tp __x, int* __exp) 29724: { return __builtin_frexp(__x, __exp); } 29724: 29724: using ::ldexp; 29724: 29724: 29724: inline constexpr float 29724: ldexp(float __x, int __exp) 29724: { return __builtin_ldexpf(__x, __exp); } 29724: 29724: inline constexpr long double 29724: ldexp(long double __x, int __exp) 29724: { return __builtin_ldexpl(__x, __exp); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: ldexp(_Tp __x, int __exp) 29724: { return __builtin_ldexp(__x, __exp); } 29724: 29724: using ::log; 29724: 29724: 29724: inline constexpr float 29724: log(float __x) 29724: { return __builtin_logf(__x); } 29724: 29724: inline constexpr long double 29724: log(long double __x) 29724: { return __builtin_logl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: log(_Tp __x) 29724: { return __builtin_log(__x); } 29724: 29724: using ::log10; 29724: 29724: 29724: inline constexpr float 29724: log10(float __x) 29724: { return __builtin_log10f(__x); } 29724: 29724: inline constexpr long double 29724: log10(long double __x) 29724: { return __builtin_log10l(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: log10(_Tp __x) 29724: { return __builtin_log10(__x); } 29724: 29724: using ::modf; 29724: 29724: 29724: inline float 29724: modf(float __x, float* __iptr) 29724: { return __builtin_modff(__x, __iptr); } 29724: 29724: inline long double 29724: modf(long double __x, long double* __iptr) 29724: { return __builtin_modfl(__x, __iptr); } 29724: 29724: 29724: using ::pow; 29724: 29724: 29724: inline constexpr float 29724: pow(float __x, float __y) 29724: { return __builtin_powf(__x, __y); } 29724: 29724: inline constexpr long double 29724: pow(long double __x, long double __y) 29724: { return __builtin_powl(__x, __y); } 29724: # 400 "/usr/include/c++/14/cmath" 3 29724: using ::sin; 29724: 29724: 29724: inline constexpr float 29724: sin(float __x) 29724: { return __builtin_sinf(__x); } 29724: 29724: inline constexpr long double 29724: sin(long double __x) 29724: { return __builtin_sinl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: sin(_Tp __x) 29724: { return __builtin_sin(__x); } 29724: 29724: using ::sinh; 29724: 29724: 29724: inline constexpr float 29724: sinh(float __x) 29724: { return __builtin_sinhf(__x); } 29724: 29724: inline constexpr long double 29724: sinh(long double __x) 29724: { return __builtin_sinhl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: sinh(_Tp __x) 29724: { return __builtin_sinh(__x); } 29724: 29724: using ::sqrt; 29724: 29724: 29724: inline constexpr float 29724: sqrt(float __x) 29724: { return __builtin_sqrtf(__x); } 29724: 29724: inline constexpr long double 29724: sqrt(long double __x) 29724: { return __builtin_sqrtl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: sqrt(_Tp __x) 29724: { return __builtin_sqrt(__x); } 29724: 29724: using ::tan; 29724: 29724: 29724: inline constexpr float 29724: tan(float __x) 29724: { return __builtin_tanf(__x); } 29724: 29724: inline constexpr long double 29724: tan(long double __x) 29724: { return __builtin_tanl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: tan(_Tp __x) 29724: { return __builtin_tan(__x); } 29724: 29724: using ::tanh; 29724: 29724: 29724: inline constexpr float 29724: tanh(float __x) 29724: { return __builtin_tanhf(__x); } 29724: 29724: inline constexpr long double 29724: tanh(long double __x) 29724: { return __builtin_tanhl(__x); } 29724: 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: tanh(_Tp __x) 29724: { return __builtin_tanh(__x); } 29724: # 1053 "/usr/include/c++/14/cmath" 3 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: atan2(_Tp __y, _Up __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return atan2(__type(__y), __type(__x)); 29724: } 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: fmod(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return fmod(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: inline constexpr 29724: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: pow(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return pow(__type(__x), __type(__y)); 29724: } 29724: # 1100 "/usr/include/c++/14/cmath" 3 29724: constexpr int 29724: fpclassify(float __x) 29724: { return __builtin_fpclassify(0, 1, 4, 29724: 3, 2, __x); } 29724: 29724: constexpr int 29724: fpclassify(double __x) 29724: { return __builtin_fpclassify(0, 1, 4, 29724: 3, 2, __x); } 29724: 29724: constexpr int 29724: fpclassify(long double __x) 29724: { return __builtin_fpclassify(0, 1, 4, 29724: 3, 2, __x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: int>::__type 29724: fpclassify(_Tp __x) 29724: { return __x != 0 ? 4 : 2; } 29724: 29724: 29724: 29724: constexpr bool 29724: isfinite(float __x) 29724: { return __builtin_isfinite(__x); } 29724: 29724: constexpr bool 29724: isfinite(double __x) 29724: { return __builtin_isfinite(__x); } 29724: 29724: constexpr bool 29724: isfinite(long double __x) 29724: { return __builtin_isfinite(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: bool>::__type 29724: isfinite(_Tp) 29724: { return true; } 29724: 29724: 29724: 29724: constexpr bool 29724: isinf(float __x) 29724: { return __builtin_isinf(__x); } 29724: 29724: 29724: 29724: 29724: 29724: constexpr bool 29724: isinf(double __x) 29724: { return __builtin_isinf(__x); } 29724: 29724: 29724: constexpr bool 29724: isinf(long double __x) 29724: { return __builtin_isinf(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: bool>::__type 29724: isinf(_Tp) 29724: { return false; } 29724: 29724: 29724: 29724: constexpr bool 29724: isnan(float __x) 29724: { return __builtin_isnan(__x); } 29724: 29724: 29724: 29724: 29724: 29724: constexpr bool 29724: isnan(double __x) 29724: { return __builtin_isnan(__x); } 29724: 29724: 29724: constexpr bool 29724: isnan(long double __x) 29724: { return __builtin_isnan(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: bool>::__type 29724: isnan(_Tp) 29724: { return false; } 29724: 29724: 29724: 29724: constexpr bool 29724: isnormal(float __x) 29724: { return __builtin_isnormal(__x); } 29724: 29724: constexpr bool 29724: isnormal(double __x) 29724: { return __builtin_isnormal(__x); } 29724: 29724: constexpr bool 29724: isnormal(long double __x) 29724: { return __builtin_isnormal(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: bool>::__type 29724: isnormal(_Tp __x) 29724: { return __x != 0 ? true : false; } 29724: 29724: 29724: 29724: 29724: constexpr bool 29724: signbit(float __x) 29724: { return __builtin_signbit(__x); } 29724: 29724: constexpr bool 29724: signbit(double __x) 29724: { return __builtin_signbit(__x); } 29724: 29724: constexpr bool 29724: signbit(long double __x) 29724: { return __builtin_signbit(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: bool>::__type 29724: signbit(_Tp __x) 29724: { return __x < 0 ? true : false; } 29724: 29724: 29724: 29724: constexpr bool 29724: isgreater(float __x, float __y) 29724: { return __builtin_isgreater(__x, __y); } 29724: 29724: constexpr bool 29724: isgreater(double __x, double __y) 29724: { return __builtin_isgreater(__x, __y); } 29724: 29724: constexpr bool 29724: isgreater(long double __x, long double __y) 29724: { return __builtin_isgreater(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: isgreater(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_isgreater(__type(__x), __type(__y)); 29724: } 29724: 29724: 29724: 29724: constexpr bool 29724: isgreaterequal(float __x, float __y) 29724: { return __builtin_isgreaterequal(__x, __y); } 29724: 29724: constexpr bool 29724: isgreaterequal(double __x, double __y) 29724: { return __builtin_isgreaterequal(__x, __y); } 29724: 29724: constexpr bool 29724: isgreaterequal(long double __x, long double __y) 29724: { return __builtin_isgreaterequal(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: isgreaterequal(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_isgreaterequal(__type(__x), __type(__y)); 29724: } 29724: 29724: 29724: 29724: constexpr bool 29724: isless(float __x, float __y) 29724: { return __builtin_isless(__x, __y); } 29724: 29724: constexpr bool 29724: isless(double __x, double __y) 29724: { return __builtin_isless(__x, __y); } 29724: 29724: constexpr bool 29724: isless(long double __x, long double __y) 29724: { return __builtin_isless(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: isless(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_isless(__type(__x), __type(__y)); 29724: } 29724: 29724: 29724: 29724: constexpr bool 29724: islessequal(float __x, float __y) 29724: { return __builtin_islessequal(__x, __y); } 29724: 29724: constexpr bool 29724: islessequal(double __x, double __y) 29724: { return __builtin_islessequal(__x, __y); } 29724: 29724: constexpr bool 29724: islessequal(long double __x, long double __y) 29724: { return __builtin_islessequal(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: islessequal(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_islessequal(__type(__x), __type(__y)); 29724: } 29724: 29724: 29724: 29724: constexpr bool 29724: islessgreater(float __x, float __y) 29724: { return __builtin_islessgreater(__x, __y); } 29724: 29724: constexpr bool 29724: islessgreater(double __x, double __y) 29724: { return __builtin_islessgreater(__x, __y); } 29724: 29724: constexpr bool 29724: islessgreater(long double __x, long double __y) 29724: { return __builtin_islessgreater(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: islessgreater(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_islessgreater(__type(__x), __type(__y)); 29724: } 29724: 29724: 29724: 29724: constexpr bool 29724: isunordered(float __x, float __y) 29724: { return __builtin_isunordered(__x, __y); } 29724: 29724: constexpr bool 29724: isunordered(double __x, double __y) 29724: { return __builtin_isunordered(__x, __y); } 29724: 29724: constexpr bool 29724: isunordered(long double __x, long double __y) 29724: { return __builtin_isunordered(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename 29724: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29724: && __is_arithmetic<_Up>::__value), bool>::__type 29724: isunordered(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return __builtin_isunordered(__type(__x), __type(__y)); 29724: } 29724: # 1820 "/usr/include/c++/14/cmath" 3 29724: using ::acosf; 29724: 29724: 29724: using ::acosl; 29724: 29724: 29724: 29724: using ::asinf; 29724: 29724: 29724: using ::asinl; 29724: 29724: 29724: 29724: using ::atanf; 29724: 29724: 29724: using ::atanl; 29724: 29724: 29724: 29724: using ::atan2f; 29724: 29724: 29724: using ::atan2l; 29724: 29724: 29724: 29724: using ::ceilf; 29724: 29724: 29724: using ::ceill; 29724: 29724: 29724: 29724: using ::cosf; 29724: 29724: 29724: using ::cosl; 29724: 29724: 29724: 29724: using ::coshf; 29724: 29724: 29724: using ::coshl; 29724: 29724: 29724: 29724: using ::expf; 29724: 29724: 29724: using ::expl; 29724: 29724: 29724: 29724: using ::fabsf; 29724: 29724: 29724: using ::fabsl; 29724: 29724: 29724: 29724: using ::floorf; 29724: 29724: 29724: using ::floorl; 29724: 29724: 29724: 29724: using ::fmodf; 29724: 29724: 29724: using ::fmodl; 29724: 29724: 29724: 29724: using ::frexpf; 29724: 29724: 29724: using ::frexpl; 29724: 29724: 29724: 29724: using ::ldexpf; 29724: 29724: 29724: using ::ldexpl; 29724: 29724: 29724: 29724: using ::logf; 29724: 29724: 29724: using ::logl; 29724: 29724: 29724: 29724: using ::log10f; 29724: 29724: 29724: using ::log10l; 29724: 29724: 29724: 29724: using ::modff; 29724: 29724: 29724: using ::modfl; 29724: 29724: 29724: 29724: using ::powf; 29724: 29724: 29724: using ::powl; 29724: 29724: 29724: 29724: using ::sinf; 29724: 29724: 29724: using ::sinl; 29724: 29724: 29724: 29724: using ::sinhf; 29724: 29724: 29724: using ::sinhl; 29724: 29724: 29724: 29724: using ::sqrtf; 29724: 29724: 29724: using ::sqrtl; 29724: 29724: 29724: 29724: using ::tanf; 29724: 29724: 29724: using ::tanl; 29724: 29724: 29724: 29724: using ::tanhf; 29724: 29724: 29724: using ::tanhl; 29724: # 2085 "/usr/include/c++/14/cmath" 3 29724: using ::double_t; 29724: using ::float_t; 29724: 29724: 29724: 29724: using ::acosh; 29724: using ::acoshf; 29724: using ::acoshl; 29724: 29724: using ::asinh; 29724: using ::asinhf; 29724: using ::asinhl; 29724: 29724: using ::atanh; 29724: using ::atanhf; 29724: using ::atanhl; 29724: 29724: using ::cbrt; 29724: using ::cbrtf; 29724: using ::cbrtl; 29724: 29724: using ::copysign; 29724: using ::copysignf; 29724: using ::copysignl; 29724: 29724: using ::erf; 29724: using ::erff; 29724: using ::erfl; 29724: 29724: using ::erfc; 29724: using ::erfcf; 29724: using ::erfcl; 29724: 29724: using ::exp2; 29724: using ::exp2f; 29724: using ::exp2l; 29724: 29724: using ::expm1; 29724: using ::expm1f; 29724: using ::expm1l; 29724: 29724: using ::fdim; 29724: using ::fdimf; 29724: using ::fdiml; 29724: 29724: using ::fma; 29724: using ::fmaf; 29724: using ::fmal; 29724: 29724: using ::fmax; 29724: using ::fmaxf; 29724: using ::fmaxl; 29724: 29724: using ::fmin; 29724: using ::fminf; 29724: using ::fminl; 29724: 29724: using ::hypot; 29724: using ::hypotf; 29724: using ::hypotl; 29724: 29724: using ::ilogb; 29724: using ::ilogbf; 29724: using ::ilogbl; 29724: 29724: using ::lgamma; 29724: using ::lgammaf; 29724: using ::lgammal; 29724: 29724: 29724: using ::llrint; 29724: using ::llrintf; 29724: using ::llrintl; 29724: 29724: using ::llround; 29724: using ::llroundf; 29724: using ::llroundl; 29724: 29724: 29724: using ::log1p; 29724: using ::log1pf; 29724: using ::log1pl; 29724: 29724: using ::log2; 29724: using ::log2f; 29724: using ::log2l; 29724: 29724: using ::logb; 29724: using ::logbf; 29724: using ::logbl; 29724: 29724: using ::lrint; 29724: using ::lrintf; 29724: using ::lrintl; 29724: 29724: using ::lround; 29724: using ::lroundf; 29724: using ::lroundl; 29724: 29724: using ::nan; 29724: using ::nanf; 29724: using ::nanl; 29724: 29724: using ::nearbyint; 29724: using ::nearbyintf; 29724: using ::nearbyintl; 29724: 29724: using ::nextafter; 29724: using ::nextafterf; 29724: using ::nextafterl; 29724: 29724: using ::nexttoward; 29724: using ::nexttowardf; 29724: using ::nexttowardl; 29724: 29724: using ::remainder; 29724: using ::remainderf; 29724: using ::remainderl; 29724: 29724: using ::remquo; 29724: using ::remquof; 29724: using ::remquol; 29724: 29724: using ::rint; 29724: using ::rintf; 29724: using ::rintl; 29724: 29724: using ::round; 29724: using ::roundf; 29724: using ::roundl; 29724: 29724: using ::scalbln; 29724: using ::scalblnf; 29724: using ::scalblnl; 29724: 29724: using ::scalbn; 29724: using ::scalbnf; 29724: using ::scalbnl; 29724: 29724: using ::tgamma; 29724: using ::tgammaf; 29724: using ::tgammal; 29724: 29724: using ::trunc; 29724: using ::truncf; 29724: using ::truncl; 29724: 29724: 29724: 29724: constexpr float 29724: acosh(float __x) 29724: { return __builtin_acoshf(__x); } 29724: 29724: constexpr long double 29724: acosh(long double __x) 29724: { return __builtin_acoshl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: acosh(_Tp __x) 29724: { return __builtin_acosh(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: asinh(float __x) 29724: { return __builtin_asinhf(__x); } 29724: 29724: constexpr long double 29724: asinh(long double __x) 29724: { return __builtin_asinhl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: asinh(_Tp __x) 29724: { return __builtin_asinh(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: atanh(float __x) 29724: { return __builtin_atanhf(__x); } 29724: 29724: constexpr long double 29724: atanh(long double __x) 29724: { return __builtin_atanhl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: atanh(_Tp __x) 29724: { return __builtin_atanh(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: cbrt(float __x) 29724: { return __builtin_cbrtf(__x); } 29724: 29724: constexpr long double 29724: cbrt(long double __x) 29724: { return __builtin_cbrtl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: cbrt(_Tp __x) 29724: { return __builtin_cbrt(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: copysign(float __x, float __y) 29724: { return __builtin_copysignf(__x, __y); } 29724: 29724: constexpr long double 29724: copysign(long double __x, long double __y) 29724: { return __builtin_copysignl(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: erf(float __x) 29724: { return __builtin_erff(__x); } 29724: 29724: constexpr long double 29724: erf(long double __x) 29724: { return __builtin_erfl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: erf(_Tp __x) 29724: { return __builtin_erf(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: erfc(float __x) 29724: { return __builtin_erfcf(__x); } 29724: 29724: constexpr long double 29724: erfc(long double __x) 29724: { return __builtin_erfcl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: erfc(_Tp __x) 29724: { return __builtin_erfc(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: exp2(float __x) 29724: { return __builtin_exp2f(__x); } 29724: 29724: constexpr long double 29724: exp2(long double __x) 29724: { return __builtin_exp2l(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: exp2(_Tp __x) 29724: { return __builtin_exp2(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: expm1(float __x) 29724: { return __builtin_expm1f(__x); } 29724: 29724: constexpr long double 29724: expm1(long double __x) 29724: { return __builtin_expm1l(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: expm1(_Tp __x) 29724: { return __builtin_expm1(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: fdim(float __x, float __y) 29724: { return __builtin_fdimf(__x, __y); } 29724: 29724: constexpr long double 29724: fdim(long double __x, long double __y) 29724: { return __builtin_fdiml(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: fma(float __x, float __y, float __z) 29724: { return __builtin_fmaf(__x, __y, __z); } 29724: 29724: constexpr long double 29724: fma(long double __x, long double __y, long double __z) 29724: { return __builtin_fmal(__x, __y, __z); } 29724: 29724: 29724: 29724: constexpr float 29724: fmax(float __x, float __y) 29724: { return __builtin_fmaxf(__x, __y); } 29724: 29724: constexpr long double 29724: fmax(long double __x, long double __y) 29724: { return __builtin_fmaxl(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: fmin(float __x, float __y) 29724: { return __builtin_fminf(__x, __y); } 29724: 29724: constexpr long double 29724: fmin(long double __x, long double __y) 29724: { return __builtin_fminl(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: hypot(float __x, float __y) 29724: { return __builtin_hypotf(__x, __y); } 29724: 29724: constexpr long double 29724: hypot(long double __x, long double __y) 29724: { return __builtin_hypotl(__x, __y); } 29724: 29724: 29724: 29724: constexpr int 29724: ilogb(float __x) 29724: { return __builtin_ilogbf(__x); } 29724: 29724: constexpr int 29724: ilogb(long double __x) 29724: { return __builtin_ilogbl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr 29724: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: int>::__type 29724: ilogb(_Tp __x) 29724: { return __builtin_ilogb(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: lgamma(float __x) 29724: { return __builtin_lgammaf(__x); } 29724: 29724: constexpr long double 29724: lgamma(long double __x) 29724: { return __builtin_lgammal(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: lgamma(_Tp __x) 29724: { return __builtin_lgamma(__x); } 29724: 29724: 29724: 29724: constexpr long long 29724: llrint(float __x) 29724: { return __builtin_llrintf(__x); } 29724: 29724: constexpr long long 29724: llrint(long double __x) 29724: { return __builtin_llrintl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: long long>::__type 29724: llrint(_Tp __x) 29724: { return __builtin_llrint(__x); } 29724: 29724: 29724: 29724: constexpr long long 29724: llround(float __x) 29724: { return __builtin_llroundf(__x); } 29724: 29724: constexpr long long 29724: llround(long double __x) 29724: { return __builtin_llroundl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: long long>::__type 29724: llround(_Tp __x) 29724: { return __builtin_llround(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: log1p(float __x) 29724: { return __builtin_log1pf(__x); } 29724: 29724: constexpr long double 29724: log1p(long double __x) 29724: { return __builtin_log1pl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: log1p(_Tp __x) 29724: { return __builtin_log1p(__x); } 29724: 29724: 29724: 29724: 29724: constexpr float 29724: log2(float __x) 29724: { return __builtin_log2f(__x); } 29724: 29724: constexpr long double 29724: log2(long double __x) 29724: { return __builtin_log2l(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: log2(_Tp __x) 29724: { return __builtin_log2(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: logb(float __x) 29724: { return __builtin_logbf(__x); } 29724: 29724: constexpr long double 29724: logb(long double __x) 29724: { return __builtin_logbl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: logb(_Tp __x) 29724: { return __builtin_logb(__x); } 29724: 29724: 29724: 29724: constexpr long 29724: lrint(float __x) 29724: { return __builtin_lrintf(__x); } 29724: 29724: constexpr long 29724: lrint(long double __x) 29724: { return __builtin_lrintl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: long>::__type 29724: lrint(_Tp __x) 29724: { return __builtin_lrint(__x); } 29724: 29724: 29724: 29724: constexpr long 29724: lround(float __x) 29724: { return __builtin_lroundf(__x); } 29724: 29724: constexpr long 29724: lround(long double __x) 29724: { return __builtin_lroundl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: long>::__type 29724: lround(_Tp __x) 29724: { return __builtin_lround(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: nearbyint(float __x) 29724: { return __builtin_nearbyintf(__x); } 29724: 29724: constexpr long double 29724: nearbyint(long double __x) 29724: { return __builtin_nearbyintl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: nearbyint(_Tp __x) 29724: { return __builtin_nearbyint(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: nextafter(float __x, float __y) 29724: { return __builtin_nextafterf(__x, __y); } 29724: 29724: constexpr long double 29724: nextafter(long double __x, long double __y) 29724: { return __builtin_nextafterl(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: nexttoward(float __x, long double __y) 29724: { return __builtin_nexttowardf(__x, __y); } 29724: 29724: constexpr long double 29724: nexttoward(long double __x, long double __y) 29724: { return __builtin_nexttowardl(__x, __y); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: nexttoward(_Tp __x, long double __y) 29724: { return __builtin_nexttoward(__x, __y); } 29724: 29724: 29724: 29724: constexpr float 29724: remainder(float __x, float __y) 29724: { return __builtin_remainderf(__x, __y); } 29724: 29724: constexpr long double 29724: remainder(long double __x, long double __y) 29724: { return __builtin_remainderl(__x, __y); } 29724: 29724: 29724: 29724: inline float 29724: remquo(float __x, float __y, int* __pquo) 29724: { return __builtin_remquof(__x, __y, __pquo); } 29724: 29724: inline long double 29724: remquo(long double __x, long double __y, int* __pquo) 29724: { return __builtin_remquol(__x, __y, __pquo); } 29724: 29724: 29724: 29724: constexpr float 29724: rint(float __x) 29724: { return __builtin_rintf(__x); } 29724: 29724: constexpr long double 29724: rint(long double __x) 29724: { return __builtin_rintl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: rint(_Tp __x) 29724: { return __builtin_rint(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: round(float __x) 29724: { return __builtin_roundf(__x); } 29724: 29724: constexpr long double 29724: round(long double __x) 29724: { return __builtin_roundl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: round(_Tp __x) 29724: { return __builtin_round(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: scalbln(float __x, long __ex) 29724: { return __builtin_scalblnf(__x, __ex); } 29724: 29724: constexpr long double 29724: scalbln(long double __x, long __ex) 29724: { return __builtin_scalblnl(__x, __ex); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: scalbln(_Tp __x, long __ex) 29724: { return __builtin_scalbln(__x, __ex); } 29724: 29724: 29724: 29724: constexpr float 29724: scalbn(float __x, int __ex) 29724: { return __builtin_scalbnf(__x, __ex); } 29724: 29724: constexpr long double 29724: scalbn(long double __x, int __ex) 29724: { return __builtin_scalbnl(__x, __ex); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: scalbn(_Tp __x, int __ex) 29724: { return __builtin_scalbn(__x, __ex); } 29724: 29724: 29724: 29724: constexpr float 29724: tgamma(float __x) 29724: { return __builtin_tgammaf(__x); } 29724: 29724: constexpr long double 29724: tgamma(long double __x) 29724: { return __builtin_tgammal(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: tgamma(_Tp __x) 29724: { return __builtin_tgamma(__x); } 29724: 29724: 29724: 29724: constexpr float 29724: trunc(float __x) 29724: { return __builtin_truncf(__x); } 29724: 29724: constexpr long double 29724: trunc(long double __x) 29724: { return __builtin_truncl(__x); } 29724: 29724: 29724: 29724: template 29724: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29724: double>::__type 29724: trunc(_Tp __x) 29724: { return __builtin_trunc(__x); } 29724: # 3682 "/usr/include/c++/14/cmath" 3 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: copysign(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return copysign(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: fdim(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return fdim(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: fmax(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return fmax(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: fmin(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return fmin(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: hypot(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return hypot(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: nextafter(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return nextafter(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: remainder(_Tp __x, _Up __y) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return remainder(__type(__x), __type(__y)); 29724: } 29724: 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29724: remquo(_Tp __x, _Up __y, int* __pquo) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29724: return remquo(__type(__x), __type(__y), __pquo); 29724: } 29724: 29724: template 29724: constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type 29724: fma(_Tp __x, _Up __y, _Vp __z) 29724: { 29724: typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; 29724: return fma(__type(__x), __type(__y), __type(__z)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline _Tp 29724: __hypot3(_Tp __x, _Tp __y, _Tp __z) 29724: { 29724: __x = std::abs(__x); 29724: __y = std::abs(__y); 29724: __z = std::abs(__z); 29724: if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) 29724: return __a * std::sqrt((__x / __a) * (__x / __a) 29724: + (__y / __a) * (__y / __a) 29724: + (__z / __a) * (__z / __a)); 29724: else 29724: return {}; 29724: } 29724: 29724: inline float 29724: hypot(float __x, float __y, float __z) 29724: { return std::__hypot3(__x, __y, __z); } 29724: 29724: inline double 29724: hypot(double __x, double __y, double __z) 29724: { return std::__hypot3(__x, __y, __z); } 29724: 29724: inline long double 29724: hypot(long double __x, long double __y, long double __z) 29724: { return std::__hypot3(__x, __y, __z); } 29724: 29724: template 29724: __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> 29724: hypot(_Tp __x, _Up __y, _Vp __z) 29724: { 29724: using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; 29724: return std::__hypot3<__type>(__x, __y, __z); 29724: } 29724: # 3902 "/usr/include/c++/14/cmath" 3 29724: 29724: } 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/specfun.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/specfun.h" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 38 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 47 "/usr/include/c++/14/bits/specfun.h" 3 29724: # 1 "/usr/include/c++/14/tr1/gamma.tcc" 1 3 29724: # 49 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: # 1 "/usr/include/c++/14/tr1/special_function_util.h" 1 3 29724: # 39 "/usr/include/c++/14/tr1/special_function_util.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 50 "/usr/include/c++/14/tr1/special_function_util.h" 3 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: template 29724: struct __floating_point_constant 29724: { 29724: static const _Tp __value; 29724: }; 29724: 29724: 29724: 29724: template 29724: struct __numeric_constants 29724: { 29724: 29724: static _Tp __pi() throw() 29724: { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } 29724: 29724: static _Tp __pi_2() throw() 29724: { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } 29724: 29724: static _Tp __pi_3() throw() 29724: { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } 29724: 29724: static _Tp __pi_4() throw() 29724: { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } 29724: 29724: static _Tp __1_pi() throw() 29724: { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } 29724: 29724: static _Tp __2_sqrtpi() throw() 29724: { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } 29724: 29724: static _Tp __sqrt2() throw() 29724: { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } 29724: 29724: static _Tp __sqrt3() throw() 29724: { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } 29724: 29724: static _Tp __sqrtpio2() throw() 29724: { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } 29724: 29724: static _Tp __sqrt1_2() throw() 29724: { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } 29724: 29724: static _Tp __lnpi() throw() 29724: { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } 29724: 29724: static _Tp __gamma_e() throw() 29724: { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } 29724: 29724: static _Tp __euler() throw() 29724: { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } 29724: }; 29724: # 114 "/usr/include/c++/14/tr1/special_function_util.h" 3 29724: template 29724: inline bool __isnan(_Tp __x) 29724: { return std::isnan(__x); } 29724: # 133 "/usr/include/c++/14/tr1/special_function_util.h" 3 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 50 "/usr/include/c++/14/tr1/gamma.tcc" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 65 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: namespace __detail 29724: { 29724: # 76 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __bernoulli_series(unsigned int __n) 29724: { 29724: 29724: static const _Tp __num[28] = { 29724: _Tp(1UL), -_Tp(1UL) / _Tp(2UL), 29724: _Tp(1UL) / _Tp(6UL), _Tp(0UL), 29724: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 29724: _Tp(1UL) / _Tp(42UL), _Tp(0UL), 29724: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 29724: _Tp(5UL) / _Tp(66UL), _Tp(0UL), 29724: -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), 29724: _Tp(7UL) / _Tp(6UL), _Tp(0UL), 29724: -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), 29724: _Tp(43867UL) / _Tp(798UL), _Tp(0UL), 29724: -_Tp(174611) / _Tp(330UL), _Tp(0UL), 29724: _Tp(854513UL) / _Tp(138UL), _Tp(0UL), 29724: -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), 29724: _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) 29724: }; 29724: 29724: if (__n == 0) 29724: return _Tp(1); 29724: 29724: if (__n == 1) 29724: return -_Tp(1) / _Tp(2); 29724: 29724: 29724: if (__n % 2 == 1) 29724: return _Tp(0); 29724: 29724: 29724: if (__n < 28) 29724: return __num[__n]; 29724: 29724: 29724: _Tp __fact = _Tp(1); 29724: if ((__n / 2) % 2 == 0) 29724: __fact *= _Tp(-1); 29724: for (unsigned int __k = 1; __k <= __n; ++__k) 29724: __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); 29724: __fact *= _Tp(2); 29724: 29724: _Tp __sum = _Tp(0); 29724: for (unsigned int __i = 1; __i < 1000; ++__i) 29724: { 29724: _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); 29724: if (__term < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __sum += __term; 29724: } 29724: 29724: return __fact * __sum; 29724: } 29724: # 139 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: inline _Tp 29724: __bernoulli(int __n) 29724: { return __bernoulli_series<_Tp>(__n); } 29724: # 153 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __log_gamma_bernoulli(_Tp __x) 29724: { 29724: _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x 29724: + _Tp(0.5L) * std::log(_Tp(2) 29724: * __numeric_constants<_Tp>::__pi()); 29724: 29724: const _Tp __xx = __x * __x; 29724: _Tp __help = _Tp(1) / __x; 29724: for ( unsigned int __i = 1; __i < 20; ++__i ) 29724: { 29724: const _Tp __2i = _Tp(2 * __i); 29724: __help /= __2i * (__2i - _Tp(1)) * __xx; 29724: __lg += __bernoulli<_Tp>(2 * __i) * __help; 29724: } 29724: 29724: return __lg; 29724: } 29724: # 181 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __log_gamma_lanczos(_Tp __x) 29724: { 29724: const _Tp __xm1 = __x - _Tp(1); 29724: 29724: static const _Tp __lanczos_cheb_7[9] = { 29724: _Tp( 0.99999999999980993227684700473478L), 29724: _Tp( 676.520368121885098567009190444019L), 29724: _Tp(-1259.13921672240287047156078755283L), 29724: _Tp( 771.3234287776530788486528258894L), 29724: _Tp(-176.61502916214059906584551354L), 29724: _Tp( 12.507343278686904814458936853L), 29724: _Tp(-0.13857109526572011689554707L), 29724: _Tp( 9.984369578019570859563e-6L), 29724: _Tp( 1.50563273514931155834e-7L) 29724: }; 29724: 29724: static const _Tp __LOGROOT2PI 29724: = _Tp(0.9189385332046727417803297364056176L); 29724: 29724: _Tp __sum = __lanczos_cheb_7[0]; 29724: for(unsigned int __k = 1; __k < 9; ++__k) 29724: __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); 29724: 29724: const _Tp __term1 = (__xm1 + _Tp(0.5L)) 29724: * std::log((__xm1 + _Tp(7.5L)) 29724: / __numeric_constants<_Tp>::__euler()); 29724: const _Tp __term2 = __LOGROOT2PI + std::log(__sum); 29724: const _Tp __result = __term1 + (__term2 - _Tp(7)); 29724: 29724: return __result; 29724: } 29724: # 225 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __log_gamma(_Tp __x) 29724: { 29724: if (__x > _Tp(0.5L)) 29724: return __log_gamma_lanczos(__x); 29724: else 29724: { 29724: const _Tp __sin_fact 29724: = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); 29724: if (__sin_fact == _Tp(0)) 29724: std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") 29724: ); 29724: return __numeric_constants<_Tp>::__lnpi() 29724: - std::log(__sin_fact) 29724: - __log_gamma_lanczos(_Tp(1) - __x); 29724: } 29724: } 29724: # 252 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __log_gamma_sign(_Tp __x) 29724: { 29724: if (__x > _Tp(0)) 29724: return _Tp(1); 29724: else 29724: { 29724: const _Tp __sin_fact 29724: = std::sin(__numeric_constants<_Tp>::__pi() * __x); 29724: if (__sin_fact > _Tp(0)) 29724: return (1); 29724: else if (__sin_fact < _Tp(0)) 29724: return -_Tp(1); 29724: else 29724: return _Tp(0); 29724: } 29724: } 29724: # 283 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __log_bincoef(unsigned int __n, unsigned int __k) 29724: { 29724: 29724: static const _Tp __max_bincoeff 29724: = std::numeric_limits<_Tp>::max_exponent10 29724: * std::log(_Tp(10)) - _Tp(1); 29724: 29724: _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) 29724: - ::std::lgamma(_Tp(1 + __k)) 29724: - ::std::lgamma(_Tp(1 + __n - __k)); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 314 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __bincoef(unsigned int __n, unsigned int __k) 29724: { 29724: 29724: static const _Tp __max_bincoeff 29724: = std::numeric_limits<_Tp>::max_exponent10 29724: * std::log(_Tp(10)) - _Tp(1); 29724: 29724: const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); 29724: if (__log_coeff > __max_bincoeff) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: return std::exp(__log_coeff); 29724: } 29724: # 337 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: inline _Tp 29724: __gamma(_Tp __x) 29724: { return std::exp(__log_gamma(__x)); } 29724: # 356 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __psi_series(_Tp __x) 29724: { 29724: _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; 29724: const unsigned int __max_iter = 100000; 29724: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29724: { 29724: const _Tp __term = __x / (__k * (__k + __x)); 29724: __sum += __term; 29724: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: } 29724: return __sum; 29724: } 29724: # 386 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __psi_asymp(_Tp __x) 29724: { 29724: _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; 29724: const _Tp __xx = __x * __x; 29724: _Tp __xp = __xx; 29724: const unsigned int __max_iter = 100; 29724: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29724: { 29724: const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); 29724: __sum -= __term; 29724: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __xp *= __xx; 29724: } 29724: return __sum; 29724: } 29724: # 417 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __psi(_Tp __x) 29724: { 29724: const int __n = static_cast(__x + 0.5L); 29724: const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); 29724: if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x < _Tp(0)) 29724: { 29724: const _Tp __pi = __numeric_constants<_Tp>::__pi(); 29724: return __psi(_Tp(1) - __x) 29724: - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); 29724: } 29724: else if (__x > _Tp(100)) 29724: return __psi_asymp(__x); 29724: else 29724: return __psi_series(__x); 29724: } 29724: # 446 "/usr/include/c++/14/tr1/gamma.tcc" 3 29724: template 29724: _Tp 29724: __psi(unsigned int __n, _Tp __x) 29724: { 29724: if (__x <= _Tp(0)) 29724: std::__throw_domain_error(("Argument out of range " "in __psi") 29724: ); 29724: else if (__n == 0) 29724: return __psi(__x); 29724: else 29724: { 29724: const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); 29724: 29724: const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); 29724: 29724: 29724: 29724: _Tp __result = std::exp(__ln_nfact) * __hzeta; 29724: if (__n % 2 == 1) 29724: __result = -__result; 29724: return __result; 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 48 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/bessel_function.tcc" 1 3 29724: # 55 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 71 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: namespace __detail 29724: { 29724: # 98 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: void 29724: __gamma_temme(_Tp __mu, 29724: _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) 29724: { 29724: 29724: __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); 29724: __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); 29724: 29724: 29724: 29724: 29724: 29724: if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) 29724: __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); 29724: else 29724: __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); 29724: 29724: __gam2 = (__gammi + __gampl) / (_Tp(2)); 29724: 29724: return; 29724: } 29724: # 136 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: void 29724: __bessel_jn(_Tp __nu, _Tp __x, 29724: _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) 29724: { 29724: if (__x == _Tp(0)) 29724: { 29724: if (__nu == _Tp(0)) 29724: { 29724: __Jnu = _Tp(1); 29724: __Jpnu = _Tp(0); 29724: } 29724: else if (__nu == _Tp(1)) 29724: { 29724: __Jnu = _Tp(0); 29724: __Jpnu = _Tp(0.5L); 29724: } 29724: else 29724: { 29724: __Jnu = _Tp(0); 29724: __Jpnu = _Tp(0); 29724: } 29724: __Nnu = -std::numeric_limits<_Tp>::infinity(); 29724: __Npnu = std::numeric_limits<_Tp>::infinity(); 29724: return; 29724: } 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: 29724: 29724: 29724: const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); 29724: const int __max_iter = 15000; 29724: const _Tp __x_min = _Tp(2); 29724: 29724: const int __nl = (__x < __x_min 29724: ? static_cast(__nu + _Tp(0.5L)) 29724: : std::max(0, static_cast(__nu - __x + _Tp(1.5L)))); 29724: 29724: const _Tp __mu = __nu - __nl; 29724: const _Tp __mu2 = __mu * __mu; 29724: const _Tp __xi = _Tp(1) / __x; 29724: const _Tp __xi2 = _Tp(2) * __xi; 29724: _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); 29724: int __isign = 1; 29724: _Tp __h = __nu * __xi; 29724: if (__h < __fp_min) 29724: __h = __fp_min; 29724: _Tp __b = __xi2 * __nu; 29724: _Tp __d = _Tp(0); 29724: _Tp __c = __h; 29724: int __i; 29724: for (__i = 1; __i <= __max_iter; ++__i) 29724: { 29724: __b += __xi2; 29724: __d = __b - __d; 29724: if (std::abs(__d) < __fp_min) 29724: __d = __fp_min; 29724: __c = __b - _Tp(1) / __c; 29724: if (std::abs(__c) < __fp_min) 29724: __c = __fp_min; 29724: __d = _Tp(1) / __d; 29724: const _Tp __del = __c * __d; 29724: __h *= __del; 29724: if (__d < _Tp(0)) 29724: __isign = -__isign; 29724: if (std::abs(__del - _Tp(1)) < __eps) 29724: break; 29724: } 29724: if (__i > __max_iter) 29724: std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") 29724: ); 29724: _Tp __Jnul = __isign * __fp_min; 29724: _Tp __Jpnul = __h * __Jnul; 29724: _Tp __Jnul1 = __Jnul; 29724: _Tp __Jpnu1 = __Jpnul; 29724: _Tp __fact = __nu * __xi; 29724: for ( int __l = __nl; __l >= 1; --__l ) 29724: { 29724: const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; 29724: __fact -= __xi; 29724: __Jpnul = __fact * __Jnutemp - __Jnul; 29724: __Jnul = __Jnutemp; 29724: } 29724: if (__Jnul == _Tp(0)) 29724: __Jnul = __eps; 29724: _Tp __f= __Jpnul / __Jnul; 29724: _Tp __Nmu, __Nnu1, __Npmu, __Jmu; 29724: if (__x < __x_min) 29724: { 29724: const _Tp __x2 = __x / _Tp(2); 29724: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 29724: _Tp __fact = (std::abs(__pimu) < __eps 29724: ? _Tp(1) : __pimu / std::sin(__pimu)); 29724: _Tp __d = -std::log(__x2); 29724: _Tp __e = __mu * __d; 29724: _Tp __fact2 = (std::abs(__e) < __eps 29724: ? _Tp(1) : std::sinh(__e) / __e); 29724: _Tp __gam1, __gam2, __gampl, __gammi; 29724: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 29724: _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) 29724: * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 29724: __e = std::exp(__e); 29724: _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); 29724: _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); 29724: const _Tp __pimu2 = __pimu / _Tp(2); 29724: _Tp __fact3 = (std::abs(__pimu2) < __eps 29724: ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); 29724: _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; 29724: _Tp __c = _Tp(1); 29724: __d = -__x2 * __x2; 29724: _Tp __sum = __ff + __r * __q; 29724: _Tp __sum1 = __p; 29724: for (__i = 1; __i <= __max_iter; ++__i) 29724: { 29724: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 29724: __c *= __d / _Tp(__i); 29724: __p /= _Tp(__i) - __mu; 29724: __q /= _Tp(__i) + __mu; 29724: const _Tp __del = __c * (__ff + __r * __q); 29724: __sum += __del; 29724: const _Tp __del1 = __c * __p - __i * __del; 29724: __sum1 += __del1; 29724: if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) 29724: break; 29724: } 29724: if ( __i > __max_iter ) 29724: std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") 29724: ); 29724: __Nmu = -__sum; 29724: __Nnu1 = -__sum1 * __xi2; 29724: __Npmu = __mu * __xi * __Nmu - __Nnu1; 29724: __Jmu = __w / (__Npmu - __f * __Nmu); 29724: } 29724: else 29724: { 29724: _Tp __a = _Tp(0.25L) - __mu2; 29724: _Tp __q = _Tp(1); 29724: _Tp __p = -__xi / _Tp(2); 29724: _Tp __br = _Tp(2) * __x; 29724: _Tp __bi = _Tp(2); 29724: _Tp __fact = __a * __xi / (__p * __p + __q * __q); 29724: _Tp __cr = __br + __q * __fact; 29724: _Tp __ci = __bi + __p * __fact; 29724: _Tp __den = __br * __br + __bi * __bi; 29724: _Tp __dr = __br / __den; 29724: _Tp __di = -__bi / __den; 29724: _Tp __dlr = __cr * __dr - __ci * __di; 29724: _Tp __dli = __cr * __di + __ci * __dr; 29724: _Tp __temp = __p * __dlr - __q * __dli; 29724: __q = __p * __dli + __q * __dlr; 29724: __p = __temp; 29724: int __i; 29724: for (__i = 2; __i <= __max_iter; ++__i) 29724: { 29724: __a += _Tp(2 * (__i - 1)); 29724: __bi += _Tp(2); 29724: __dr = __a * __dr + __br; 29724: __di = __a * __di + __bi; 29724: if (std::abs(__dr) + std::abs(__di) < __fp_min) 29724: __dr = __fp_min; 29724: __fact = __a / (__cr * __cr + __ci * __ci); 29724: __cr = __br + __cr * __fact; 29724: __ci = __bi - __ci * __fact; 29724: if (std::abs(__cr) + std::abs(__ci) < __fp_min) 29724: __cr = __fp_min; 29724: __den = __dr * __dr + __di * __di; 29724: __dr /= __den; 29724: __di /= -__den; 29724: __dlr = __cr * __dr - __ci * __di; 29724: __dli = __cr * __di + __ci * __dr; 29724: __temp = __p * __dlr - __q * __dli; 29724: __q = __p * __dli + __q * __dlr; 29724: __p = __temp; 29724: if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) 29724: break; 29724: } 29724: if (__i > __max_iter) 29724: std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") 29724: ); 29724: const _Tp __gam = (__p - __f) / __q; 29724: __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); 29724: 29724: __Jmu = ::std::copysign(__Jmu, __Jnul); 29724: 29724: 29724: 29724: 29724: __Nmu = __gam * __Jmu; 29724: __Npmu = (__p + __q / __gam) * __Nmu; 29724: __Nnu1 = __mu * __xi * __Nmu - __Npmu; 29724: } 29724: __fact = __Jmu / __Jnul; 29724: __Jnu = __fact * __Jnul1; 29724: __Jpnu = __fact * __Jpnu1; 29724: for (__i = 1; __i <= __nl; ++__i) 29724: { 29724: const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; 29724: __Nmu = __Nnu1; 29724: __Nnu1 = __Nnutemp; 29724: } 29724: __Nnu = __Nmu; 29724: __Npnu = __nu * __xi * __Nmu - __Nnu1; 29724: 29724: return; 29724: } 29724: # 361 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: void 29724: __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) 29724: { 29724: const _Tp __mu = _Tp(4) * __nu * __nu; 29724: const _Tp __8x = _Tp(8) * __x; 29724: 29724: _Tp __P = _Tp(0); 29724: _Tp __Q = _Tp(0); 29724: 29724: _Tp __k = _Tp(0); 29724: _Tp __term = _Tp(1); 29724: 29724: int __epsP = 0; 29724: int __epsQ = 0; 29724: 29724: _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: do 29724: { 29724: __term *= (__k == 0 29724: ? _Tp(1) 29724: : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); 29724: 29724: __epsP = std::abs(__term) < __eps * std::abs(__P); 29724: __P += __term; 29724: 29724: __k++; 29724: 29724: __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); 29724: __epsQ = std::abs(__term) < __eps * std::abs(__Q); 29724: __Q += __term; 29724: 29724: if (__epsP && __epsQ && __k > (__nu / 2.)) 29724: break; 29724: 29724: __k++; 29724: } 29724: while (__k < 1000); 29724: 29724: const _Tp __chi = __x - (__nu + _Tp(0.5L)) 29724: * __numeric_constants<_Tp>::__pi_2(); 29724: 29724: const _Tp __c = std::cos(__chi); 29724: const _Tp __s = std::sin(__chi); 29724: 29724: const _Tp __coef = std::sqrt(_Tp(2) 29724: / (__numeric_constants<_Tp>::__pi() * __x)); 29724: 29724: __Jnu = __coef * (__c * __P - __s * __Q); 29724: __Nnu = __coef * (__s * __P + __c * __Q); 29724: 29724: return; 29724: } 29724: # 444 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: _Tp 29724: __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, 29724: unsigned int __max_iter) 29724: { 29724: if (__x == _Tp(0)) 29724: return __nu == _Tp(0) ? _Tp(1) : _Tp(0); 29724: 29724: const _Tp __x2 = __x / _Tp(2); 29724: _Tp __fact = __nu * std::log(__x2); 29724: 29724: __fact -= ::std::lgamma(__nu + _Tp(1)); 29724: 29724: 29724: 29724: __fact = std::exp(__fact); 29724: const _Tp __xx4 = __sgn * __x2 * __x2; 29724: _Tp __Jn = _Tp(1); 29724: _Tp __term = _Tp(1); 29724: 29724: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29724: { 29724: __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); 29724: __Jn += __term; 29724: if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: } 29724: 29724: return __fact * __Jn; 29724: } 29724: # 490 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: _Tp 29724: __cyl_bessel_j(_Tp __nu, _Tp __x) 29724: { 29724: if (__nu < _Tp(0) || __x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") 29724: ); 29724: else if (__isnan(__nu) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 29724: return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); 29724: else if (__x > _Tp(1000)) 29724: { 29724: _Tp __J_nu, __N_nu; 29724: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 29724: return __J_nu; 29724: } 29724: else 29724: { 29724: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29724: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29724: return __J_nu; 29724: } 29724: } 29724: # 532 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: _Tp 29724: __cyl_neumann_n(_Tp __nu, _Tp __x) 29724: { 29724: if (__nu < _Tp(0) || __x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") 29724: ); 29724: else if (__isnan(__nu) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x > _Tp(1000)) 29724: { 29724: _Tp __J_nu, __N_nu; 29724: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 29724: return __N_nu; 29724: } 29724: else 29724: { 29724: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29724: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29724: return __N_nu; 29724: } 29724: } 29724: # 569 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: void 29724: __sph_bessel_jn(unsigned int __n, _Tp __x, 29724: _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) 29724: { 29724: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 29724: 29724: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29724: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29724: 29724: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 29724: / std::sqrt(__x); 29724: 29724: __j_n = __factor * __J_nu; 29724: __n_n = __factor * __N_nu; 29724: __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); 29724: __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); 29724: 29724: return; 29724: } 29724: # 604 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: _Tp 29724: __sph_bessel(unsigned int __n, _Tp __x) 29724: { 29724: if (__x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __sph_bessel.") 29724: ); 29724: else if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x == _Tp(0)) 29724: { 29724: if (__n == 0) 29724: return _Tp(1); 29724: else 29724: return _Tp(0); 29724: } 29724: else 29724: { 29724: _Tp __j_n, __n_n, __jp_n, __np_n; 29724: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 29724: return __j_n; 29724: } 29724: } 29724: # 642 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29724: template 29724: _Tp 29724: __sph_neumann(unsigned int __n, _Tp __x) 29724: { 29724: if (__x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __sph_neumann.") 29724: ); 29724: else if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x == _Tp(0)) 29724: return -std::numeric_limits<_Tp>::infinity(); 29724: else 29724: { 29724: _Tp __j_n, __n_n, __jp_n, __np_n; 29724: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 29724: return __n_n; 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 49 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/beta_function.tcc" 1 3 29724: # 49 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 65 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: namespace __detail 29724: { 29724: # 79 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: template 29724: _Tp 29724: __beta_gamma(_Tp __x, _Tp __y) 29724: { 29724: 29724: _Tp __bet; 29724: 29724: if (__x > __y) 29724: { 29724: __bet = ::std::tgamma(__x) 29724: / ::std::tgamma(__x + __y); 29724: __bet *= ::std::tgamma(__y); 29724: } 29724: else 29724: { 29724: __bet = ::std::tgamma(__y) 29724: / ::std::tgamma(__x + __y); 29724: __bet *= ::std::tgamma(__x); 29724: } 29724: # 111 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: return __bet; 29724: } 29724: # 127 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: template 29724: _Tp 29724: __beta_lgamma(_Tp __x, _Tp __y) 29724: { 29724: 29724: _Tp __bet = ::std::lgamma(__x) 29724: + ::std::lgamma(__y) 29724: - ::std::lgamma(__x + __y); 29724: 29724: 29724: 29724: 29724: 29724: __bet = std::exp(__bet); 29724: return __bet; 29724: } 29724: # 158 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: template 29724: _Tp 29724: __beta_product(_Tp __x, _Tp __y) 29724: { 29724: 29724: _Tp __bet = (__x + __y) / (__x * __y); 29724: 29724: unsigned int __max_iter = 1000000; 29724: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29724: { 29724: _Tp __term = (_Tp(1) + (__x + __y) / __k) 29724: / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); 29724: __bet *= __term; 29724: } 29724: 29724: return __bet; 29724: } 29724: # 189 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29724: template 29724: inline _Tp 29724: __beta(_Tp __x, _Tp __y) 29724: { 29724: if (__isnan(__x) || __isnan(__y)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: return __beta_lgamma(__x, __y); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 50 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/ell_integral.tcc" 1 3 29724: # 45 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 59 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: namespace __detail 29724: { 29724: # 76 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_rf(_Tp __x, _Tp __y, _Tp __z) 29724: { 29724: const _Tp __min = std::numeric_limits<_Tp>::min(); 29724: const _Tp __lolim = _Tp(5) * __min; 29724: 29724: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 29724: std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") 29724: ); 29724: else if (__x + __y < __lolim || __x + __z < __lolim 29724: || __y + __z < __lolim) 29724: std::__throw_domain_error(("Argument too small in __ellint_rf")); 29724: else 29724: { 29724: const _Tp __c0 = _Tp(1) / _Tp(4); 29724: const _Tp __c1 = _Tp(1) / _Tp(24); 29724: const _Tp __c2 = _Tp(1) / _Tp(10); 29724: const _Tp __c3 = _Tp(3) / _Tp(44); 29724: const _Tp __c4 = _Tp(1) / _Tp(14); 29724: 29724: _Tp __xn = __x; 29724: _Tp __yn = __y; 29724: _Tp __zn = __z; 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); 29724: _Tp __mu; 29724: _Tp __xndev, __yndev, __zndev; 29724: 29724: const unsigned int __max_iter = 100; 29724: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29724: { 29724: __mu = (__xn + __yn + __zn) / _Tp(3); 29724: __xndev = 2 - (__mu + __xn) / __mu; 29724: __yndev = 2 - (__mu + __yn) / __mu; 29724: __zndev = 2 - (__mu + __zn) / __mu; 29724: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29724: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29724: if (__epsilon < __errtol) 29724: break; 29724: const _Tp __xnroot = std::sqrt(__xn); 29724: const _Tp __ynroot = std::sqrt(__yn); 29724: const _Tp __znroot = std::sqrt(__zn); 29724: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 29724: + __ynroot * __znroot; 29724: __xn = __c0 * (__xn + __lambda); 29724: __yn = __c0 * (__yn + __lambda); 29724: __zn = __c0 * (__zn + __lambda); 29724: } 29724: 29724: const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; 29724: const _Tp __e3 = __xndev * __yndev * __zndev; 29724: const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 29724: + __c4 * __e3; 29724: 29724: return __s / std::sqrt(__mu); 29724: } 29724: } 29724: # 153 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __comp_ellint_1_series(_Tp __k) 29724: { 29724: 29724: const _Tp __kk = __k * __k; 29724: 29724: _Tp __term = __kk / _Tp(4); 29724: _Tp __sum = _Tp(1) + __term; 29724: 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 2; __i < __max_iter; ++__i) 29724: { 29724: __term *= (2 * __i - 1) * __kk / (2 * __i); 29724: if (__term < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __sum += __term; 29724: } 29724: 29724: return __numeric_constants<_Tp>::__pi_2() * __sum; 29724: } 29724: # 191 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __comp_ellint_1(_Tp __k) 29724: { 29724: 29724: if (__isnan(__k)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (std::abs(__k) >= _Tp(1)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); 29724: } 29724: # 219 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_1(_Tp __k, _Tp __phi) 29724: { 29724: 29724: if (__isnan(__k) || __isnan(__phi)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (std::abs(__k) > _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in __ellint_1.")); 29724: else 29724: { 29724: 29724: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29724: + _Tp(0.5L)); 29724: const _Tp __phi_red = __phi 29724: - __n * __numeric_constants<_Tp>::__pi(); 29724: 29724: const _Tp __s = std::sin(__phi_red); 29724: const _Tp __c = std::cos(__phi_red); 29724: 29724: const _Tp __F = __s 29724: * __ellint_rf(__c * __c, 29724: _Tp(1) - __k * __k * __s * __s, _Tp(1)); 29724: 29724: if (__n == 0) 29724: return __F; 29724: else 29724: return __F + _Tp(2) * __n * __comp_ellint_1(__k); 29724: } 29724: } 29724: # 266 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __comp_ellint_2_series(_Tp __k) 29724: { 29724: 29724: const _Tp __kk = __k * __k; 29724: 29724: _Tp __term = __kk; 29724: _Tp __sum = __term; 29724: 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 2; __i < __max_iter; ++__i) 29724: { 29724: const _Tp __i2m = 2 * __i - 1; 29724: const _Tp __i2 = 2 * __i; 29724: __term *= __i2m * __i2m * __kk / (__i2 * __i2); 29724: if (__term < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __sum += __term / __i2m; 29724: } 29724: 29724: return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); 29724: } 29724: # 314 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_rd(_Tp __x, _Tp __y, _Tp __z) 29724: { 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 29724: const _Tp __max = std::numeric_limits<_Tp>::max(); 29724: const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); 29724: 29724: if (__x < _Tp(0) || __y < _Tp(0)) 29724: std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") 29724: ); 29724: else if (__x + __y < __lolim || __z < __lolim) 29724: std::__throw_domain_error(("Argument too small " "in __ellint_rd.") 29724: ); 29724: else 29724: { 29724: const _Tp __c0 = _Tp(1) / _Tp(4); 29724: const _Tp __c1 = _Tp(3) / _Tp(14); 29724: const _Tp __c2 = _Tp(1) / _Tp(6); 29724: const _Tp __c3 = _Tp(9) / _Tp(22); 29724: const _Tp __c4 = _Tp(3) / _Tp(26); 29724: 29724: _Tp __xn = __x; 29724: _Tp __yn = __y; 29724: _Tp __zn = __z; 29724: _Tp __sigma = _Tp(0); 29724: _Tp __power4 = _Tp(1); 29724: 29724: _Tp __mu; 29724: _Tp __xndev, __yndev, __zndev; 29724: 29724: const unsigned int __max_iter = 100; 29724: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29724: { 29724: __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); 29724: __xndev = (__mu - __xn) / __mu; 29724: __yndev = (__mu - __yn) / __mu; 29724: __zndev = (__mu - __zn) / __mu; 29724: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29724: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29724: if (__epsilon < __errtol) 29724: break; 29724: _Tp __xnroot = std::sqrt(__xn); 29724: _Tp __ynroot = std::sqrt(__yn); 29724: _Tp __znroot = std::sqrt(__zn); 29724: _Tp __lambda = __xnroot * (__ynroot + __znroot) 29724: + __ynroot * __znroot; 29724: __sigma += __power4 / (__znroot * (__zn + __lambda)); 29724: __power4 *= __c0; 29724: __xn = __c0 * (__xn + __lambda); 29724: __yn = __c0 * (__yn + __lambda); 29724: __zn = __c0 * (__zn + __lambda); 29724: } 29724: 29724: _Tp __ea = __xndev * __yndev; 29724: _Tp __eb = __zndev * __zndev; 29724: _Tp __ec = __ea - __eb; 29724: _Tp __ed = __ea - _Tp(6) * __eb; 29724: _Tp __ef = __ed + __ec + __ec; 29724: _Tp __s1 = __ed * (-__c1 + __c3 * __ed 29724: / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef 29724: / _Tp(2)); 29724: _Tp __s2 = __zndev 29724: * (__c2 * __ef 29724: + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); 29724: 29724: return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) 29724: / (__mu * std::sqrt(__mu)); 29724: } 29724: } 29724: # 399 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __comp_ellint_2(_Tp __k) 29724: { 29724: 29724: if (__isnan(__k)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (std::abs(__k) == 1) 29724: return _Tp(1); 29724: else if (std::abs(__k) > _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); 29724: else 29724: { 29724: const _Tp __kk = __k * __k; 29724: 29724: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 29724: - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); 29724: } 29724: } 29724: # 433 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_2(_Tp __k, _Tp __phi) 29724: { 29724: 29724: if (__isnan(__k) || __isnan(__phi)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (std::abs(__k) > _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in __ellint_2.")); 29724: else 29724: { 29724: 29724: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29724: + _Tp(0.5L)); 29724: const _Tp __phi_red = __phi 29724: - __n * __numeric_constants<_Tp>::__pi(); 29724: 29724: const _Tp __kk = __k * __k; 29724: const _Tp __s = std::sin(__phi_red); 29724: const _Tp __ss = __s * __s; 29724: const _Tp __sss = __ss * __s; 29724: const _Tp __c = std::cos(__phi_red); 29724: const _Tp __cc = __c * __c; 29724: 29724: const _Tp __E = __s 29724: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29724: - __kk * __sss 29724: * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29724: / _Tp(3); 29724: 29724: if (__n == 0) 29724: return __E; 29724: else 29724: return __E + _Tp(2) * __n * __comp_ellint_2(__k); 29724: } 29724: } 29724: # 492 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_rc(_Tp __x, _Tp __y) 29724: { 29724: const _Tp __min = std::numeric_limits<_Tp>::min(); 29724: const _Tp __lolim = _Tp(5) * __min; 29724: 29724: if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) 29724: std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") 29724: ); 29724: else 29724: { 29724: const _Tp __c0 = _Tp(1) / _Tp(4); 29724: const _Tp __c1 = _Tp(1) / _Tp(7); 29724: const _Tp __c2 = _Tp(9) / _Tp(22); 29724: const _Tp __c3 = _Tp(3) / _Tp(10); 29724: const _Tp __c4 = _Tp(3) / _Tp(8); 29724: 29724: _Tp __xn = __x; 29724: _Tp __yn = __y; 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); 29724: _Tp __mu; 29724: _Tp __sn; 29724: 29724: const unsigned int __max_iter = 100; 29724: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29724: { 29724: __mu = (__xn + _Tp(2) * __yn) / _Tp(3); 29724: __sn = (__yn + __mu) / __mu - _Tp(2); 29724: if (std::abs(__sn) < __errtol) 29724: break; 29724: const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) 29724: + __yn; 29724: __xn = __c0 * (__xn + __lambda); 29724: __yn = __c0 * (__yn + __lambda); 29724: } 29724: 29724: _Tp __s = __sn * __sn 29724: * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); 29724: 29724: return (_Tp(1) + __s) / std::sqrt(__mu); 29724: } 29724: } 29724: # 561 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) 29724: { 29724: const _Tp __min = std::numeric_limits<_Tp>::min(); 29724: const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); 29724: 29724: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 29724: std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") 29724: ); 29724: else if (__x + __y < __lolim || __x + __z < __lolim 29724: || __y + __z < __lolim || __p < __lolim) 29724: std::__throw_domain_error(("Argument too small " "in __ellint_rj") 29724: ); 29724: else 29724: { 29724: const _Tp __c0 = _Tp(1) / _Tp(4); 29724: const _Tp __c1 = _Tp(3) / _Tp(14); 29724: const _Tp __c2 = _Tp(1) / _Tp(3); 29724: const _Tp __c3 = _Tp(3) / _Tp(22); 29724: const _Tp __c4 = _Tp(3) / _Tp(26); 29724: 29724: _Tp __xn = __x; 29724: _Tp __yn = __y; 29724: _Tp __zn = __z; 29724: _Tp __pn = __p; 29724: _Tp __sigma = _Tp(0); 29724: _Tp __power4 = _Tp(1); 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 29724: 29724: _Tp __mu; 29724: _Tp __xndev, __yndev, __zndev, __pndev; 29724: 29724: const unsigned int __max_iter = 100; 29724: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29724: { 29724: __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); 29724: __xndev = (__mu - __xn) / __mu; 29724: __yndev = (__mu - __yn) / __mu; 29724: __zndev = (__mu - __zn) / __mu; 29724: __pndev = (__mu - __pn) / __mu; 29724: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29724: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29724: __epsilon = std::max(__epsilon, std::abs(__pndev)); 29724: if (__epsilon < __errtol) 29724: break; 29724: const _Tp __xnroot = std::sqrt(__xn); 29724: const _Tp __ynroot = std::sqrt(__yn); 29724: const _Tp __znroot = std::sqrt(__zn); 29724: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 29724: + __ynroot * __znroot; 29724: const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) 29724: + __xnroot * __ynroot * __znroot; 29724: const _Tp __alpha2 = __alpha1 * __alpha1; 29724: const _Tp __beta = __pn * (__pn + __lambda) 29724: * (__pn + __lambda); 29724: __sigma += __power4 * __ellint_rc(__alpha2, __beta); 29724: __power4 *= __c0; 29724: __xn = __c0 * (__xn + __lambda); 29724: __yn = __c0 * (__yn + __lambda); 29724: __zn = __c0 * (__zn + __lambda); 29724: __pn = __c0 * (__pn + __lambda); 29724: } 29724: 29724: _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; 29724: _Tp __eb = __xndev * __yndev * __zndev; 29724: _Tp __ec = __pndev * __pndev; 29724: _Tp __e2 = __ea - _Tp(3) * __ec; 29724: _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); 29724: _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) 29724: - _Tp(3) * __c4 * __e3 / _Tp(2)); 29724: _Tp __s2 = __eb * (__c2 / _Tp(2) 29724: + __pndev * (-__c3 - __c3 + __pndev * __c4)); 29724: _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) 29724: - __c2 * __pndev * __ec; 29724: 29724: return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) 29724: / (__mu * std::sqrt(__mu)); 29724: } 29724: } 29724: # 661 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __comp_ellint_3(_Tp __k, _Tp __nu) 29724: { 29724: 29724: if (__isnan(__k) || __isnan(__nu)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__nu == _Tp(1)) 29724: return std::numeric_limits<_Tp>::infinity(); 29724: else if (std::abs(__k) > _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); 29724: else 29724: { 29724: const _Tp __kk = __k * __k; 29724: 29724: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 29724: + __nu 29724: * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) 29724: / _Tp(3); 29724: } 29724: } 29724: # 701 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29724: template 29724: _Tp 29724: __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) 29724: { 29724: 29724: if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (std::abs(__k) > _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in __ellint_3.")); 29724: else 29724: { 29724: 29724: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29724: + _Tp(0.5L)); 29724: const _Tp __phi_red = __phi 29724: - __n * __numeric_constants<_Tp>::__pi(); 29724: 29724: const _Tp __kk = __k * __k; 29724: const _Tp __s = std::sin(__phi_red); 29724: const _Tp __ss = __s * __s; 29724: const _Tp __sss = __ss * __s; 29724: const _Tp __c = std::cos(__phi_red); 29724: const _Tp __cc = __c * __c; 29724: 29724: const _Tp __Pi = __s 29724: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29724: + __nu * __sss 29724: * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), 29724: _Tp(1) - __nu * __ss) / _Tp(3); 29724: 29724: if (__n == 0) 29724: return __Pi; 29724: else 29724: return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 51 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/exp_integral.tcc" 1 3 29724: # 50 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 64 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: namespace __detail 29724: { 29724: template _Tp __expint_E1(_Tp); 29724: # 81 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_E1_series(_Tp __x) 29724: { 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: _Tp __term = _Tp(1); 29724: _Tp __esum = _Tp(0); 29724: _Tp __osum = _Tp(0); 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29724: { 29724: __term *= - __x / __i; 29724: if (std::abs(__term) < __eps) 29724: break; 29724: if (__term >= _Tp(0)) 29724: __esum += __term / __i; 29724: else 29724: __osum += __term / __i; 29724: } 29724: 29724: return - __esum - __osum 29724: - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); 29724: } 29724: # 118 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_E1_asymp(_Tp __x) 29724: { 29724: _Tp __term = _Tp(1); 29724: _Tp __esum = _Tp(1); 29724: _Tp __osum = _Tp(0); 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29724: { 29724: _Tp __prev = __term; 29724: __term *= - __i / __x; 29724: if (std::abs(__term) > std::abs(__prev)) 29724: break; 29724: if (__term >= _Tp(0)) 29724: __esum += __term; 29724: else 29724: __osum += __term; 29724: } 29724: 29724: return std::exp(- __x) * (__esum + __osum) / __x; 29724: } 29724: # 155 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_En_series(unsigned int __n, _Tp __x) 29724: { 29724: const unsigned int __max_iter = 1000; 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const int __nm1 = __n - 1; 29724: _Tp __ans = (__nm1 != 0 29724: ? _Tp(1) / __nm1 : -std::log(__x) 29724: - __numeric_constants<_Tp>::__gamma_e()); 29724: _Tp __fact = _Tp(1); 29724: for (int __i = 1; __i <= __max_iter; ++__i) 29724: { 29724: __fact *= -__x / _Tp(__i); 29724: _Tp __del; 29724: if ( __i != __nm1 ) 29724: __del = -__fact / _Tp(__i - __nm1); 29724: else 29724: { 29724: _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); 29724: for (int __ii = 1; __ii <= __nm1; ++__ii) 29724: __psi += _Tp(1) / _Tp(__ii); 29724: __del = __fact * (__psi - std::log(__x)); 29724: } 29724: __ans += __del; 29724: if (std::abs(__del) < __eps * std::abs(__ans)) 29724: return __ans; 29724: } 29724: std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") 29724: ); 29724: } 29724: # 201 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_En_cont_frac(unsigned int __n, _Tp __x) 29724: { 29724: const unsigned int __max_iter = 1000; 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __fp_min = std::numeric_limits<_Tp>::min(); 29724: const int __nm1 = __n - 1; 29724: _Tp __b = __x + _Tp(__n); 29724: _Tp __c = _Tp(1) / __fp_min; 29724: _Tp __d = _Tp(1) / __b; 29724: _Tp __h = __d; 29724: for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) 29724: { 29724: _Tp __a = -_Tp(__i * (__nm1 + __i)); 29724: __b += _Tp(2); 29724: __d = _Tp(1) / (__a * __d + __b); 29724: __c = __b + __a / __c; 29724: const _Tp __del = __c * __d; 29724: __h *= __del; 29724: if (std::abs(__del - _Tp(1)) < __eps) 29724: { 29724: const _Tp __ans = __h * std::exp(-__x); 29724: return __ans; 29724: } 29724: } 29724: std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") 29724: ); 29724: } 29724: # 246 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_En_recursion(unsigned int __n, _Tp __x) 29724: { 29724: _Tp __En; 29724: _Tp __E1 = __expint_E1(__x); 29724: if (__x < _Tp(__n)) 29724: { 29724: 29724: __En = __E1; 29724: for (unsigned int __j = 2; __j < __n; ++__j) 29724: __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); 29724: } 29724: else 29724: { 29724: 29724: __En = _Tp(1); 29724: const int __N = __n + 20; 29724: _Tp __save = _Tp(0); 29724: for (int __j = __N; __j > 0; --__j) 29724: { 29724: __En = (std::exp(-__x) - __j * __En) / __x; 29724: if (__j == __n) 29724: __save = __En; 29724: } 29724: _Tp __norm = __En / __E1; 29724: __En /= __norm; 29724: } 29724: 29724: return __En; 29724: } 29724: # 290 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_Ei_series(_Tp __x) 29724: { 29724: _Tp __term = _Tp(1); 29724: _Tp __sum = _Tp(0); 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29724: { 29724: __term *= __x / __i; 29724: __sum += __term / __i; 29724: if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) 29724: break; 29724: } 29724: 29724: return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); 29724: } 29724: # 321 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_Ei_asymp(_Tp __x) 29724: { 29724: _Tp __term = _Tp(1); 29724: _Tp __sum = _Tp(1); 29724: const unsigned int __max_iter = 1000; 29724: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29724: { 29724: _Tp __prev = __term; 29724: __term *= __i / __x; 29724: if (__term < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: if (__term >= __prev) 29724: break; 29724: __sum += __term; 29724: } 29724: 29724: return std::exp(__x) * __sum / __x; 29724: } 29724: # 354 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_Ei(_Tp __x) 29724: { 29724: if (__x < _Tp(0)) 29724: return -__expint_E1(-__x); 29724: else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) 29724: return __expint_Ei_series(__x); 29724: else 29724: return __expint_Ei_asymp(__x); 29724: } 29724: # 378 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_E1(_Tp __x) 29724: { 29724: if (__x < _Tp(0)) 29724: return -__expint_Ei(-__x); 29724: else if (__x < _Tp(1)) 29724: return __expint_E1_series(__x); 29724: else if (__x < _Tp(100)) 29724: return __expint_En_cont_frac(1, __x); 29724: else 29724: return __expint_E1_asymp(__x); 29724: } 29724: # 408 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_asymp(unsigned int __n, _Tp __x) 29724: { 29724: _Tp __term = _Tp(1); 29724: _Tp __sum = _Tp(1); 29724: for (unsigned int __i = 1; __i <= __n; ++__i) 29724: { 29724: _Tp __prev = __term; 29724: __term *= -(__n - __i + 1) / __x; 29724: if (std::abs(__term) > std::abs(__prev)) 29724: break; 29724: __sum += __term; 29724: } 29724: 29724: return std::exp(-__x) * __sum / __x; 29724: } 29724: # 442 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint_large_n(unsigned int __n, _Tp __x) 29724: { 29724: const _Tp __xpn = __x + __n; 29724: const _Tp __xpn2 = __xpn * __xpn; 29724: _Tp __term = _Tp(1); 29724: _Tp __sum = _Tp(1); 29724: for (unsigned int __i = 1; __i <= __n; ++__i) 29724: { 29724: _Tp __prev = __term; 29724: __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; 29724: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __sum += __term; 29724: } 29724: 29724: return std::exp(-__x) * __sum / __xpn; 29724: } 29724: # 476 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: _Tp 29724: __expint(unsigned int __n, _Tp __x) 29724: { 29724: 29724: if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__n <= 1 && __x == _Tp(0)) 29724: return std::numeric_limits<_Tp>::infinity(); 29724: else 29724: { 29724: _Tp __E0 = std::exp(__x) / __x; 29724: if (__n == 0) 29724: return __E0; 29724: 29724: _Tp __E1 = __expint_E1(__x); 29724: if (__n == 1) 29724: return __E1; 29724: 29724: if (__x == _Tp(0)) 29724: return _Tp(1) / static_cast<_Tp>(__n - 1); 29724: 29724: _Tp __En = __expint_En_recursion(__n, __x); 29724: 29724: return __En; 29724: } 29724: } 29724: # 516 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29724: template 29724: inline _Tp 29724: __expint(_Tp __x) 29724: { 29724: if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: return __expint_Ei(__x); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 52 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/hypergeometric.tcc" 1 3 29724: # 44 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 60 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: namespace __detail 29724: { 29724: # 83 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) 29724: { 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: _Tp __term = _Tp(1); 29724: _Tp __Fac = _Tp(1); 29724: const unsigned int __max_iter = 100000; 29724: unsigned int __i; 29724: for (__i = 0; __i < __max_iter; ++__i) 29724: { 29724: __term *= (__a + _Tp(__i)) * __x 29724: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 29724: if (std::abs(__term) < __eps) 29724: { 29724: break; 29724: } 29724: __Fac += __term; 29724: } 29724: if (__i == __max_iter) 29724: std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") 29724: ); 29724: 29724: return __Fac; 29724: } 29724: # 120 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) 29724: { 29724: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 29724: const int __nmax = 20000; 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __x = -__xin; 29724: const _Tp __x3 = __x * __x * __x; 29724: const _Tp __t0 = __a / __c; 29724: const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); 29724: const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); 29724: _Tp __F = _Tp(1); 29724: _Tp __prec; 29724: 29724: _Tp __Bnm3 = _Tp(1); 29724: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 29724: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 29724: 29724: _Tp __Anm3 = _Tp(1); 29724: _Tp __Anm2 = __Bnm2 - __t0 * __x; 29724: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 29724: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 29724: 29724: int __n = 3; 29724: while(1) 29724: { 29724: _Tp __npam1 = _Tp(__n - 1) + __a; 29724: _Tp __npcm1 = _Tp(__n - 1) + __c; 29724: _Tp __npam2 = _Tp(__n - 2) + __a; 29724: _Tp __npcm2 = _Tp(__n - 2) + __c; 29724: _Tp __tnm1 = _Tp(2 * __n - 1); 29724: _Tp __tnm3 = _Tp(2 * __n - 3); 29724: _Tp __tnm5 = _Tp(2 * __n - 5); 29724: _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); 29724: _Tp __F2 = (_Tp(__n) + __a) * __npam1 29724: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 29724: _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) 29724: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 29724: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 29724: _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) 29724: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 29724: 29724: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 29724: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 29724: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 29724: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 29724: _Tp __r = __An / __Bn; 29724: 29724: __prec = std::abs((__F - __r) / __F); 29724: __F = __r; 29724: 29724: if (__prec < __eps || __n > __nmax) 29724: break; 29724: 29724: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 29724: { 29724: __An /= __big; 29724: __Bn /= __big; 29724: __Anm1 /= __big; 29724: __Bnm1 /= __big; 29724: __Anm2 /= __big; 29724: __Bnm2 /= __big; 29724: __Anm3 /= __big; 29724: __Bnm3 /= __big; 29724: } 29724: else if (std::abs(__An) < _Tp(1) / __big 29724: || std::abs(__Bn) < _Tp(1) / __big) 29724: { 29724: __An *= __big; 29724: __Bn *= __big; 29724: __Anm1 *= __big; 29724: __Bnm1 *= __big; 29724: __Anm2 *= __big; 29724: __Bnm2 *= __big; 29724: __Anm3 *= __big; 29724: __Bnm3 *= __big; 29724: } 29724: 29724: ++__n; 29724: __Bnm3 = __Bnm2; 29724: __Bnm2 = __Bnm1; 29724: __Bnm1 = __Bn; 29724: __Anm3 = __Anm2; 29724: __Anm2 = __Anm1; 29724: __Anm1 = __An; 29724: } 29724: 29724: if (__n >= __nmax) 29724: std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") 29724: ); 29724: 29724: return __F; 29724: } 29724: # 227 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) 29724: { 29724: 29724: const _Tp __c_nint = ::std::nearbyint(__c); 29724: 29724: 29724: 29724: if (__isnan(__a) || __isnan(__c) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__c_nint == __c && __c_nint <= 0) 29724: return std::numeric_limits<_Tp>::infinity(); 29724: else if (__a == _Tp(0)) 29724: return _Tp(1); 29724: else if (__c == __a) 29724: return std::exp(__x); 29724: else if (__x < _Tp(0)) 29724: return __conf_hyperg_luke(__a, __c, __x); 29724: else 29724: return __conf_hyperg_series(__a, __c, __x); 29724: } 29724: # 271 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29724: { 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: _Tp __term = _Tp(1); 29724: _Tp __Fabc = _Tp(1); 29724: const unsigned int __max_iter = 100000; 29724: unsigned int __i; 29724: for (__i = 0; __i < __max_iter; ++__i) 29724: { 29724: __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x 29724: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 29724: if (std::abs(__term) < __eps) 29724: { 29724: break; 29724: } 29724: __Fabc += __term; 29724: } 29724: if (__i == __max_iter) 29724: std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") 29724: ); 29724: 29724: return __Fabc; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _Tp 29724: __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) 29724: { 29724: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 29724: const int __nmax = 20000; 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __x = -__xin; 29724: const _Tp __x3 = __x * __x * __x; 29724: const _Tp __t0 = __a * __b / __c; 29724: const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); 29724: const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) 29724: / (_Tp(2) * (__c + _Tp(1))); 29724: 29724: _Tp __F = _Tp(1); 29724: 29724: _Tp __Bnm3 = _Tp(1); 29724: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 29724: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 29724: 29724: _Tp __Anm3 = _Tp(1); 29724: _Tp __Anm2 = __Bnm2 - __t0 * __x; 29724: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 29724: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 29724: 29724: int __n = 3; 29724: while (1) 29724: { 29724: const _Tp __npam1 = _Tp(__n - 1) + __a; 29724: const _Tp __npbm1 = _Tp(__n - 1) + __b; 29724: const _Tp __npcm1 = _Tp(__n - 1) + __c; 29724: const _Tp __npam2 = _Tp(__n - 2) + __a; 29724: const _Tp __npbm2 = _Tp(__n - 2) + __b; 29724: const _Tp __npcm2 = _Tp(__n - 2) + __c; 29724: const _Tp __tnm1 = _Tp(2 * __n - 1); 29724: const _Tp __tnm3 = _Tp(2 * __n - 3); 29724: const _Tp __tnm5 = _Tp(2 * __n - 5); 29724: const _Tp __n2 = __n * __n; 29724: const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n 29724: + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) 29724: / (_Tp(2) * __tnm3 * __npcm1); 29724: const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n 29724: + _Tp(2) - __a * __b) * __npam1 * __npbm1 29724: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 29724: const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 29724: * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) 29724: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 29724: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 29724: const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) 29724: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 29724: 29724: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 29724: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 29724: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 29724: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 29724: const _Tp __r = __An / __Bn; 29724: 29724: const _Tp __prec = std::abs((__F - __r) / __F); 29724: __F = __r; 29724: 29724: if (__prec < __eps || __n > __nmax) 29724: break; 29724: 29724: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 29724: { 29724: __An /= __big; 29724: __Bn /= __big; 29724: __Anm1 /= __big; 29724: __Bnm1 /= __big; 29724: __Anm2 /= __big; 29724: __Bnm2 /= __big; 29724: __Anm3 /= __big; 29724: __Bnm3 /= __big; 29724: } 29724: else if (std::abs(__An) < _Tp(1) / __big 29724: || std::abs(__Bn) < _Tp(1) / __big) 29724: { 29724: __An *= __big; 29724: __Bn *= __big; 29724: __Anm1 *= __big; 29724: __Bnm1 *= __big; 29724: __Anm2 *= __big; 29724: __Bnm2 *= __big; 29724: __Anm3 *= __big; 29724: __Bnm3 *= __big; 29724: } 29724: 29724: ++__n; 29724: __Bnm3 = __Bnm2; 29724: __Bnm2 = __Bnm1; 29724: __Bnm1 = __Bn; 29724: __Anm3 = __Anm2; 29724: __Anm2 = __Anm1; 29724: __Anm1 = __An; 29724: } 29724: 29724: if (__n >= __nmax) 29724: std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") 29724: ); 29724: 29724: return __F; 29724: } 29724: # 438 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29724: { 29724: const _Tp __d = __c - __a - __b; 29724: const int __intd = std::floor(__d + _Tp(0.5L)); 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __toler = _Tp(1000) * __eps; 29724: const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); 29724: const bool __d_integer = (std::abs(__d - __intd) < __toler); 29724: 29724: if (__d_integer) 29724: { 29724: const _Tp __ln_omx = std::log(_Tp(1) - __x); 29724: const _Tp __ad = std::abs(__d); 29724: _Tp __F1, __F2; 29724: 29724: _Tp __d1, __d2; 29724: if (__d >= _Tp(0)) 29724: { 29724: __d1 = __d; 29724: __d2 = _Tp(0); 29724: } 29724: else 29724: { 29724: __d1 = _Tp(0); 29724: __d2 = __d; 29724: } 29724: 29724: const _Tp __lng_c = __log_gamma(__c); 29724: 29724: 29724: if (__ad < __eps) 29724: { 29724: 29724: __F1 = _Tp(0); 29724: } 29724: else 29724: { 29724: 29724: bool __ok_d1 = true; 29724: _Tp __lng_ad, __lng_ad1, __lng_bd1; 29724: try 29724: { 29724: __lng_ad = __log_gamma(__ad); 29724: __lng_ad1 = __log_gamma(__a + __d1); 29724: __lng_bd1 = __log_gamma(__b + __d1); 29724: } 29724: catch(...) 29724: { 29724: __ok_d1 = false; 29724: } 29724: 29724: if (__ok_d1) 29724: { 29724: 29724: 29724: 29724: _Tp __sum1 = _Tp(1); 29724: _Tp __term = _Tp(1); 29724: _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx 29724: - __lng_ad1 - __lng_bd1; 29724: 29724: 29724: 29724: for (int __i = 1; __i < __ad; ++__i) 29724: { 29724: const int __j = __i - 1; 29724: __term *= (__a + __d2 + __j) * (__b + __d2 + __j) 29724: / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); 29724: __sum1 += __term; 29724: } 29724: 29724: if (__ln_pre1 > __log_max) 29724: std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") 29724: ); 29724: else 29724: __F1 = std::exp(__ln_pre1) * __sum1; 29724: } 29724: else 29724: { 29724: 29724: 29724: __F1 = _Tp(0); 29724: } 29724: } 29724: 29724: 29724: bool __ok_d2 = true; 29724: _Tp __lng_ad2, __lng_bd2; 29724: try 29724: { 29724: __lng_ad2 = __log_gamma(__a + __d2); 29724: __lng_bd2 = __log_gamma(__b + __d2); 29724: } 29724: catch(...) 29724: { 29724: __ok_d2 = false; 29724: } 29724: 29724: if (__ok_d2) 29724: { 29724: 29724: 29724: const int __maxiter = 2000; 29724: const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); 29724: const _Tp __psi_1pd = __psi(_Tp(1) + __ad); 29724: const _Tp __psi_apd1 = __psi(__a + __d1); 29724: const _Tp __psi_bpd1 = __psi(__b + __d1); 29724: 29724: _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 29724: - __psi_bpd1 - __ln_omx; 29724: _Tp __fact = _Tp(1); 29724: _Tp __sum2 = __psi_term; 29724: _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx 29724: - __lng_ad2 - __lng_bd2; 29724: 29724: 29724: int __j; 29724: for (__j = 1; __j < __maxiter; ++__j) 29724: { 29724: 29724: 29724: const _Tp __term1 = _Tp(1) / _Tp(__j) 29724: + _Tp(1) / (__ad + __j); 29724: const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) 29724: + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); 29724: __psi_term += __term1 - __term2; 29724: __fact *= (__a + __d1 + _Tp(__j - 1)) 29724: * (__b + __d1 + _Tp(__j - 1)) 29724: / ((__ad + __j) * __j) * (_Tp(1) - __x); 29724: const _Tp __delta = __fact * __psi_term; 29724: __sum2 += __delta; 29724: if (std::abs(__delta) < __eps * std::abs(__sum2)) 29724: break; 29724: } 29724: if (__j == __maxiter) 29724: std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") 29724: ); 29724: 29724: if (__sum2 == _Tp(0)) 29724: __F2 = _Tp(0); 29724: else 29724: __F2 = std::exp(__ln_pre2) * __sum2; 29724: } 29724: else 29724: { 29724: 29724: 29724: __F2 = _Tp(0); 29724: } 29724: 29724: const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); 29724: const _Tp __F = __F1 + __sgn_2 * __F2; 29724: 29724: return __F; 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: 29724: bool __ok1 = true; 29724: _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); 29724: _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); 29724: try 29724: { 29724: __sgn_g1ca = __log_gamma_sign(__c - __a); 29724: __ln_g1ca = __log_gamma(__c - __a); 29724: __sgn_g1cb = __log_gamma_sign(__c - __b); 29724: __ln_g1cb = __log_gamma(__c - __b); 29724: } 29724: catch(...) 29724: { 29724: __ok1 = false; 29724: } 29724: 29724: bool __ok2 = true; 29724: _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); 29724: _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); 29724: try 29724: { 29724: __sgn_g2a = __log_gamma_sign(__a); 29724: __ln_g2a = __log_gamma(__a); 29724: __sgn_g2b = __log_gamma_sign(__b); 29724: __ln_g2b = __log_gamma(__b); 29724: } 29724: catch(...) 29724: { 29724: __ok2 = false; 29724: } 29724: 29724: const _Tp __sgn_gc = __log_gamma_sign(__c); 29724: const _Tp __ln_gc = __log_gamma(__c); 29724: const _Tp __sgn_gd = __log_gamma_sign(__d); 29724: const _Tp __ln_gd = __log_gamma(__d); 29724: const _Tp __sgn_gmd = __log_gamma_sign(-__d); 29724: const _Tp __ln_gmd = __log_gamma(-__d); 29724: 29724: const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; 29724: const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; 29724: 29724: _Tp __pre1, __pre2; 29724: if (__ok1 && __ok2) 29724: { 29724: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 29724: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 29724: + __d * std::log(_Tp(1) - __x); 29724: if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) 29724: { 29724: __pre1 = std::exp(__ln_pre1); 29724: __pre2 = std::exp(__ln_pre2); 29724: __pre1 *= __sgn1; 29724: __pre2 *= __sgn2; 29724: } 29724: else 29724: { 29724: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29724: ); 29724: } 29724: } 29724: else if (__ok1 && !__ok2) 29724: { 29724: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 29724: if (__ln_pre1 < __log_max) 29724: { 29724: __pre1 = std::exp(__ln_pre1); 29724: __pre1 *= __sgn1; 29724: __pre2 = _Tp(0); 29724: } 29724: else 29724: { 29724: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29724: ); 29724: } 29724: } 29724: else if (!__ok1 && __ok2) 29724: { 29724: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 29724: + __d * std::log(_Tp(1) - __x); 29724: if (__ln_pre2 < __log_max) 29724: { 29724: __pre1 = _Tp(0); 29724: __pre2 = std::exp(__ln_pre2); 29724: __pre2 *= __sgn2; 29724: } 29724: else 29724: { 29724: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29724: ); 29724: } 29724: } 29724: else 29724: { 29724: __pre1 = _Tp(0); 29724: __pre2 = _Tp(0); 29724: std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") 29724: ); 29724: } 29724: 29724: const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, 29724: _Tp(1) - __x); 29724: const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, 29724: _Tp(1) - __x); 29724: 29724: const _Tp __F = __pre1 * __F1 + __pre2 * __F2; 29724: 29724: return __F; 29724: } 29724: } 29724: # 728 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29724: template 29724: _Tp 29724: __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29724: { 29724: 29724: const _Tp __a_nint = ::std::nearbyint(__a); 29724: const _Tp __b_nint = ::std::nearbyint(__b); 29724: const _Tp __c_nint = ::std::nearbyint(__c); 29724: 29724: 29724: 29724: 29724: 29724: const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); 29724: if (std::abs(__x) >= _Tp(1)) 29724: std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") 29724: ); 29724: else if (__isnan(__a) || __isnan(__b) 29724: || __isnan(__c) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__c_nint == __c && __c_nint <= _Tp(0)) 29724: return std::numeric_limits<_Tp>::infinity(); 29724: else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) 29724: return std::pow(_Tp(1) - __x, __c - __a - __b); 29724: else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) 29724: && __x >= _Tp(0) && __x < _Tp(0.995L)) 29724: return __hyperg_series(__a, __b, __c, __x); 29724: else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) 29724: { 29724: 29724: 29724: if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) 29724: return __hyperg_series(__a_nint, __b, __c, __x); 29724: else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) 29724: return __hyperg_series(__a, __b_nint, __c, __x); 29724: else if (__x < -_Tp(0.25L)) 29724: return __hyperg_luke(__a, __b, __c, __x); 29724: else if (__x < _Tp(0.5L)) 29724: return __hyperg_series(__a, __b, __c, __x); 29724: else 29724: if (std::abs(__c) > _Tp(10)) 29724: return __hyperg_series(__a, __b, __c, __x); 29724: else 29724: return __hyperg_reflect(__a, __b, __c, __x); 29724: } 29724: else 29724: return __hyperg_luke(__a, __b, __c, __x); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 53 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/legendre_function.tcc" 1 3 29724: # 49 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 65 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29724: namespace __detail 29724: { 29724: # 80 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29724: template 29724: _Tp 29724: __poly_legendre_p(unsigned int __l, _Tp __x) 29724: { 29724: 29724: if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x == +_Tp(1)) 29724: return +_Tp(1); 29724: else if (__x == -_Tp(1)) 29724: return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); 29724: else 29724: { 29724: _Tp __p_lm2 = _Tp(1); 29724: if (__l == 0) 29724: return __p_lm2; 29724: 29724: _Tp __p_lm1 = __x; 29724: if (__l == 1) 29724: return __p_lm1; 29724: 29724: _Tp __p_l = 0; 29724: for (unsigned int __ll = 2; __ll <= __l; ++__ll) 29724: { 29724: 29724: 29724: __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 29724: - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); 29724: __p_lm2 = __p_lm1; 29724: __p_lm1 = __p_l; 29724: } 29724: 29724: return __p_l; 29724: } 29724: } 29724: # 136 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29724: template 29724: _Tp 29724: __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, 29724: _Tp __phase = _Tp(+1)) 29724: { 29724: 29724: if (__m > __l) 29724: return _Tp(0); 29724: else if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__m == 0) 29724: return __poly_legendre_p(__l, __x); 29724: else 29724: { 29724: _Tp __p_mm = _Tp(1); 29724: if (__m > 0) 29724: { 29724: 29724: 29724: _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); 29724: _Tp __fact = _Tp(1); 29724: for (unsigned int __i = 1; __i <= __m; ++__i) 29724: { 29724: __p_mm *= __phase * __fact * __root; 29724: __fact += _Tp(2); 29724: } 29724: } 29724: if (__l == __m) 29724: return __p_mm; 29724: 29724: _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; 29724: if (__l == __m + 1) 29724: return __p_mp1m; 29724: 29724: _Tp __p_lm2m = __p_mm; 29724: _Tp __P_lm1m = __p_mp1m; 29724: _Tp __p_lm = _Tp(0); 29724: for (unsigned int __j = __m + 2; __j <= __l; ++__j) 29724: { 29724: __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m 29724: - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); 29724: __p_lm2m = __P_lm1m; 29724: __P_lm1m = __p_lm; 29724: } 29724: 29724: return __p_lm; 29724: } 29724: } 29724: # 214 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29724: template 29724: _Tp 29724: __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 29724: { 29724: if (__isnan(__theta)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: 29724: const _Tp __x = std::cos(__theta); 29724: 29724: if (__m > __l) 29724: return _Tp(0); 29724: else if (__m == 0) 29724: { 29724: _Tp __P = __poly_legendre_p(__l, __x); 29724: _Tp __fact = std::sqrt(_Tp(2 * __l + 1) 29724: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 29724: __P *= __fact; 29724: return __P; 29724: } 29724: else if (__x == _Tp(1) || __x == -_Tp(1)) 29724: { 29724: 29724: return _Tp(0); 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: 29724: 29724: const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); 29724: const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); 29724: 29724: const _Tp __lncirc = ::std::log1p(-__x * __x); 29724: 29724: 29724: 29724: 29724: 29724: const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) 29724: - ::std::lgamma(_Tp(__m)); 29724: 29724: 29724: 29724: 29724: const _Tp __lnpre_val = 29724: -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() 29724: + _Tp(0.5L) * (__lnpoch + __m * __lncirc); 29724: const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) 29724: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 29724: _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); 29724: _Tp __y_mp1m = __y_mp1m_factor * __y_mm; 29724: 29724: if (__l == __m) 29724: return __y_mm; 29724: else if (__l == __m + 1) 29724: return __y_mp1m; 29724: else 29724: { 29724: _Tp __y_lm = _Tp(0); 29724: 29724: 29724: for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) 29724: { 29724: const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); 29724: const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); 29724: const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) 29724: * _Tp(2 * __ll - 1)); 29724: const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) 29724: / _Tp(2 * __ll - 3)); 29724: __y_lm = (__x * __y_mp1m * __fact1 29724: - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); 29724: __y_mm = __y_mp1m; 29724: __y_mp1m = __y_lm; 29724: } 29724: 29724: return __y_lm; 29724: } 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 54 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 1 3 29724: # 51 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 65 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: namespace __detail 29724: { 29724: # 83 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: template 29724: void 29724: __bessel_ik(_Tp __nu, _Tp __x, 29724: _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) 29724: { 29724: if (__x == _Tp(0)) 29724: { 29724: if (__nu == _Tp(0)) 29724: { 29724: __Inu = _Tp(1); 29724: __Ipnu = _Tp(0); 29724: } 29724: else if (__nu == _Tp(1)) 29724: { 29724: __Inu = _Tp(0); 29724: __Ipnu = _Tp(0.5L); 29724: } 29724: else 29724: { 29724: __Inu = _Tp(0); 29724: __Ipnu = _Tp(0); 29724: } 29724: __Knu = std::numeric_limits<_Tp>::infinity(); 29724: __Kpnu = -std::numeric_limits<_Tp>::infinity(); 29724: return; 29724: } 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); 29724: const int __max_iter = 15000; 29724: const _Tp __x_min = _Tp(2); 29724: 29724: const int __nl = static_cast(__nu + _Tp(0.5L)); 29724: 29724: const _Tp __mu = __nu - __nl; 29724: const _Tp __mu2 = __mu * __mu; 29724: const _Tp __xi = _Tp(1) / __x; 29724: const _Tp __xi2 = _Tp(2) * __xi; 29724: _Tp __h = __nu * __xi; 29724: if ( __h < __fp_min ) 29724: __h = __fp_min; 29724: _Tp __b = __xi2 * __nu; 29724: _Tp __d = _Tp(0); 29724: _Tp __c = __h; 29724: int __i; 29724: for ( __i = 1; __i <= __max_iter; ++__i ) 29724: { 29724: __b += __xi2; 29724: __d = _Tp(1) / (__b + __d); 29724: __c = __b + _Tp(1) / __c; 29724: const _Tp __del = __c * __d; 29724: __h *= __del; 29724: if (std::abs(__del - _Tp(1)) < __eps) 29724: break; 29724: } 29724: if (__i > __max_iter) 29724: std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") 29724: 29724: ); 29724: _Tp __Inul = __fp_min; 29724: _Tp __Ipnul = __h * __Inul; 29724: _Tp __Inul1 = __Inul; 29724: _Tp __Ipnu1 = __Ipnul; 29724: _Tp __fact = __nu * __xi; 29724: for (int __l = __nl; __l >= 1; --__l) 29724: { 29724: const _Tp __Inutemp = __fact * __Inul + __Ipnul; 29724: __fact -= __xi; 29724: __Ipnul = __fact * __Inutemp + __Inul; 29724: __Inul = __Inutemp; 29724: } 29724: _Tp __f = __Ipnul / __Inul; 29724: _Tp __Kmu, __Knu1; 29724: if (__x < __x_min) 29724: { 29724: const _Tp __x2 = __x / _Tp(2); 29724: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 29724: const _Tp __fact = (std::abs(__pimu) < __eps 29724: ? _Tp(1) : __pimu / std::sin(__pimu)); 29724: _Tp __d = -std::log(__x2); 29724: _Tp __e = __mu * __d; 29724: const _Tp __fact2 = (std::abs(__e) < __eps 29724: ? _Tp(1) : std::sinh(__e) / __e); 29724: _Tp __gam1, __gam2, __gampl, __gammi; 29724: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 29724: _Tp __ff = __fact 29724: * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 29724: _Tp __sum = __ff; 29724: __e = std::exp(__e); 29724: _Tp __p = __e / (_Tp(2) * __gampl); 29724: _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); 29724: _Tp __c = _Tp(1); 29724: __d = __x2 * __x2; 29724: _Tp __sum1 = __p; 29724: int __i; 29724: for (__i = 1; __i <= __max_iter; ++__i) 29724: { 29724: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 29724: __c *= __d / __i; 29724: __p /= __i - __mu; 29724: __q /= __i + __mu; 29724: const _Tp __del = __c * __ff; 29724: __sum += __del; 29724: const _Tp __del1 = __c * (__p - __i * __ff); 29724: __sum1 += __del1; 29724: if (std::abs(__del) < __eps * std::abs(__sum)) 29724: break; 29724: } 29724: if (__i > __max_iter) 29724: std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") 29724: ); 29724: __Kmu = __sum; 29724: __Knu1 = __sum1 * __xi2; 29724: } 29724: else 29724: { 29724: _Tp __b = _Tp(2) * (_Tp(1) + __x); 29724: _Tp __d = _Tp(1) / __b; 29724: _Tp __delh = __d; 29724: _Tp __h = __delh; 29724: _Tp __q1 = _Tp(0); 29724: _Tp __q2 = _Tp(1); 29724: _Tp __a1 = _Tp(0.25L) - __mu2; 29724: _Tp __q = __c = __a1; 29724: _Tp __a = -__a1; 29724: _Tp __s = _Tp(1) + __q * __delh; 29724: int __i; 29724: for (__i = 2; __i <= __max_iter; ++__i) 29724: { 29724: __a -= 2 * (__i - 1); 29724: __c = -__a * __c / __i; 29724: const _Tp __qnew = (__q1 - __b * __q2) / __a; 29724: __q1 = __q2; 29724: __q2 = __qnew; 29724: __q += __c * __qnew; 29724: __b += _Tp(2); 29724: __d = _Tp(1) / (__b + __a * __d); 29724: __delh = (__b * __d - _Tp(1)) * __delh; 29724: __h += __delh; 29724: const _Tp __dels = __q * __delh; 29724: __s += __dels; 29724: if ( std::abs(__dels / __s) < __eps ) 29724: break; 29724: } 29724: if (__i > __max_iter) 29724: std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") 29724: ); 29724: __h = __a1 * __h; 29724: __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) 29724: * std::exp(-__x) / __s; 29724: __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; 29724: } 29724: 29724: _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; 29724: _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); 29724: __Inu = __Inumu * __Inul1 / __Inul; 29724: __Ipnu = __Inumu * __Ipnu1 / __Inul; 29724: for ( __i = 1; __i <= __nl; ++__i ) 29724: { 29724: const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; 29724: __Kmu = __Knu1; 29724: __Knu1 = __Knutemp; 29724: } 29724: __Knu = __Kmu; 29724: __Kpnu = __nu * __xi * __Kmu - __Knu1; 29724: 29724: return; 29724: } 29724: # 267 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: template 29724: _Tp 29724: __cyl_bessel_i(_Tp __nu, _Tp __x) 29724: { 29724: if (__nu < _Tp(0) || __x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") 29724: ); 29724: else if (__isnan(__nu) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 29724: return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); 29724: else 29724: { 29724: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 29724: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29724: return __I_nu; 29724: } 29724: } 29724: # 303 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: template 29724: _Tp 29724: __cyl_bessel_k(_Tp __nu, _Tp __x) 29724: { 29724: if (__nu < _Tp(0) || __x < _Tp(0)) 29724: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") 29724: ); 29724: else if (__isnan(__nu) || __isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: { 29724: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 29724: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29724: return __K_nu; 29724: } 29724: } 29724: # 337 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: template 29724: void 29724: __sph_bessel_ik(unsigned int __n, _Tp __x, 29724: _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) 29724: { 29724: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 29724: 29724: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 29724: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29724: 29724: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 29724: / std::sqrt(__x); 29724: 29724: __i_n = __factor * __I_nu; 29724: __k_n = __factor * __K_nu; 29724: __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); 29724: __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); 29724: 29724: return; 29724: } 29724: # 373 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29724: template 29724: void 29724: __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) 29724: { 29724: const _Tp __absx = std::abs(__x); 29724: const _Tp __rootx = std::sqrt(__absx); 29724: const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); 29724: const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); 29724: 29724: if (__isnan(__x)) 29724: __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__z == _S_inf) 29724: { 29724: __Aip = __Ai = _Tp(0); 29724: __Bip = __Bi = _S_inf; 29724: } 29724: else if (__z == -_S_inf) 29724: __Bip = __Aip = __Bi = __Ai = _Tp(0); 29724: else if (__x > _Tp(0)) 29724: { 29724: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 29724: 29724: __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29724: __Ai = __rootx * __K_nu 29724: / (__numeric_constants<_Tp>::__sqrt3() 29724: * __numeric_constants<_Tp>::__pi()); 29724: __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() 29724: + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); 29724: 29724: __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29724: __Aip = -__x * __K_nu 29724: / (__numeric_constants<_Tp>::__sqrt3() 29724: * __numeric_constants<_Tp>::__pi()); 29724: __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() 29724: + _Tp(2) * __I_nu 29724: / __numeric_constants<_Tp>::__sqrt3()); 29724: } 29724: else if (__x < _Tp(0)) 29724: { 29724: _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; 29724: 29724: __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29724: __Ai = __rootx * (__J_nu 29724: - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 29724: __Bi = -__rootx * (__N_nu 29724: + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 29724: 29724: __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29724: __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() 29724: + __J_nu) / _Tp(2); 29724: __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() 29724: - __N_nu) / _Tp(2); 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: __Ai = _Tp(0.35502805388781723926L); 29724: __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); 29724: 29724: 29724: 29724: 29724: __Aip = -_Tp(0.25881940379280679840L); 29724: __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); 29724: } 29724: 29724: return; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 55 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/poly_hermite.tcc" 1 3 29724: # 42 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 56 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29724: namespace __detail 29724: { 29724: # 72 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29724: template 29724: _Tp 29724: __poly_hermite_recursion(unsigned int __n, _Tp __x) 29724: { 29724: 29724: _Tp __H_0 = 1; 29724: if (__n == 0) 29724: return __H_0; 29724: 29724: 29724: _Tp __H_1 = 2 * __x; 29724: if (__n == 1) 29724: return __H_1; 29724: 29724: 29724: _Tp __H_n, __H_nm1, __H_nm2; 29724: unsigned int __i; 29724: for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) 29724: { 29724: __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); 29724: __H_nm2 = __H_nm1; 29724: __H_nm1 = __H_n; 29724: } 29724: 29724: return __H_n; 29724: } 29724: # 114 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29724: template 29724: inline _Tp 29724: __poly_hermite(unsigned int __n, _Tp __x) 29724: { 29724: if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else 29724: return __poly_hermite_recursion(__n, __x); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 56 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 1 3 29724: # 44 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 60 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: namespace __detail 29724: { 29724: # 75 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: _Tp 29724: __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) 29724: { 29724: const _Tp __a = -_Tp(__n); 29724: const _Tp __b = _Tp(__alpha1) + _Tp(1); 29724: const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; 29724: const _Tp __cos2th = __x / __eta; 29724: const _Tp __sin2th = _Tp(1) - __cos2th; 29724: const _Tp __th = std::acos(std::sqrt(__cos2th)); 29724: const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() 29724: * __numeric_constants<_Tp>::__pi_2() 29724: * __eta * __eta * __cos2th * __sin2th; 29724: 29724: 29724: const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); 29724: const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); 29724: 29724: 29724: 29724: 29724: 29724: _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) 29724: * std::log(_Tp(0.25L) * __x * __eta); 29724: _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); 29724: _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x 29724: + __pre_term1 - __pre_term2; 29724: _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); 29724: _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta 29724: * (_Tp(2) * __th 29724: - std::sin(_Tp(2) * __th)) 29724: + __numeric_constants<_Tp>::__pi_4()); 29724: _Tp __ser = __ser_term1 + __ser_term2; 29724: 29724: return std::exp(__lnpre) * __ser; 29724: } 29724: # 129 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: _Tp 29724: __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) 29724: { 29724: const _Tp __b = _Tp(__alpha1) + _Tp(1); 29724: const _Tp __mx = -__x; 29724: const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) 29724: : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); 29724: 29724: _Tp __tc = _Tp(1); 29724: const _Tp __ax = std::abs(__x); 29724: for (unsigned int __k = 1; __k <= __n; ++__k) 29724: __tc *= (__ax / __k); 29724: 29724: _Tp __term = __tc * __tc_sgn; 29724: _Tp __sum = __term; 29724: for (int __k = int(__n) - 1; __k >= 0; --__k) 29724: { 29724: __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) 29724: * _Tp(__k + 1) / __mx; 29724: __sum += __term; 29724: } 29724: 29724: return __sum; 29724: } 29724: # 185 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: _Tp 29724: __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) 29724: { 29724: 29724: _Tp __l_0 = _Tp(1); 29724: if (__n == 0) 29724: return __l_0; 29724: 29724: 29724: _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); 29724: if (__n == 1) 29724: return __l_1; 29724: 29724: 29724: _Tp __l_n2 = __l_0; 29724: _Tp __l_n1 = __l_1; 29724: _Tp __l_n = _Tp(0); 29724: for (unsigned int __nn = 2; __nn <= __n; ++__nn) 29724: { 29724: __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) 29724: * __l_n1 / _Tp(__nn) 29724: - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); 29724: __l_n2 = __l_n1; 29724: __l_n1 = __l_n; 29724: } 29724: 29724: return __l_n; 29724: } 29724: # 244 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: _Tp 29724: __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) 29724: { 29724: if (__x < _Tp(0)) 29724: std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") 29724: ); 29724: 29724: else if (__isnan(__x)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__n == 0) 29724: return _Tp(1); 29724: else if (__n == 1) 29724: return _Tp(1) + _Tp(__alpha1) - __x; 29724: else if (__x == _Tp(0)) 29724: { 29724: _Tp __prod = _Tp(__alpha1) + _Tp(1); 29724: for (unsigned int __k = 2; __k <= __n; ++__k) 29724: __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); 29724: return __prod; 29724: } 29724: else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) 29724: && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) 29724: return __poly_laguerre_large_n(__n, __alpha1, __x); 29724: else if (_Tp(__alpha1) >= _Tp(0) 29724: || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) 29724: return __poly_laguerre_recursion(__n, __alpha1, __x); 29724: else 29724: return __poly_laguerre_hyperg(__n, __alpha1, __x); 29724: } 29724: # 296 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: inline _Tp 29724: __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 29724: { return __poly_laguerre(__n, __m, __x); } 29724: # 316 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29724: template 29724: inline _Tp 29724: __laguerre(unsigned int __n, _Tp __x) 29724: { return __poly_laguerre(__n, 0, __x); } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 57 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: # 1 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 1 3 29724: # 47 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 63 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: namespace __detail 29724: { 29724: # 78 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __riemann_zeta_sum(_Tp __s) 29724: { 29724: 29724: if (__s < _Tp(1)) 29724: std::__throw_domain_error(("Bad argument in zeta sum.")); 29724: 29724: const unsigned int max_iter = 10000; 29724: _Tp __zeta = _Tp(0); 29724: for (unsigned int __k = 1; __k < max_iter; ++__k) 29724: { 29724: _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); 29724: if (__term < std::numeric_limits<_Tp>::epsilon()) 29724: { 29724: break; 29724: } 29724: __zeta += __term; 29724: } 29724: 29724: return __zeta; 29724: } 29724: # 115 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __riemann_zeta_alt(_Tp __s) 29724: { 29724: _Tp __sgn = _Tp(1); 29724: _Tp __zeta = _Tp(0); 29724: for (unsigned int __i = 1; __i < 10000000; ++__i) 29724: { 29724: _Tp __term = __sgn / std::pow(__i, __s); 29724: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: __zeta += __term; 29724: __sgn *= _Tp(-1); 29724: } 29724: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 29724: 29724: return __zeta; 29724: } 29724: # 157 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __riemann_zeta_glob(_Tp __s) 29724: { 29724: _Tp __zeta = _Tp(0); 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 29724: * std::log(_Tp(10)) - _Tp(1); 29724: 29724: 29724: 29724: if (__s < _Tp(0)) 29724: { 29724: 29724: if (::std::fmod(__s,_Tp(2)) == _Tp(0)) 29724: return _Tp(0); 29724: else 29724: 29724: { 29724: _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); 29724: __zeta *= std::pow(_Tp(2) 29724: * __numeric_constants<_Tp>::__pi(), __s) 29724: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29724: 29724: * std::exp(::std::lgamma(_Tp(1) - __s)) 29724: 29724: 29724: 29724: / __numeric_constants<_Tp>::__pi(); 29724: return __zeta; 29724: } 29724: } 29724: 29724: _Tp __num = _Tp(0.5L); 29724: const unsigned int __maxit = 10000; 29724: for (unsigned int __i = 0; __i < __maxit; ++__i) 29724: { 29724: bool __punt = false; 29724: _Tp __sgn = _Tp(1); 29724: _Tp __term = _Tp(0); 29724: for (unsigned int __j = 0; __j <= __i; ++__j) 29724: { 29724: 29724: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 29724: - ::std::lgamma(_Tp(1 + __j)) 29724: - ::std::lgamma(_Tp(1 + __i - __j)); 29724: 29724: 29724: 29724: 29724: 29724: if (__bincoeff > __max_bincoeff) 29724: { 29724: 29724: __punt = true; 29724: break; 29724: } 29724: __bincoeff = std::exp(__bincoeff); 29724: __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); 29724: __sgn *= _Tp(-1); 29724: } 29724: if (__punt) 29724: break; 29724: __term *= __num; 29724: __zeta += __term; 29724: if (std::abs(__term/__zeta) < __eps) 29724: break; 29724: __num *= _Tp(0.5L); 29724: } 29724: 29724: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 29724: 29724: return __zeta; 29724: } 29724: # 252 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __riemann_zeta_product(_Tp __s) 29724: { 29724: static const _Tp __prime[] = { 29724: _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), 29724: _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), 29724: _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), 29724: _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) 29724: }; 29724: static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); 29724: 29724: _Tp __zeta = _Tp(1); 29724: for (unsigned int __i = 0; __i < __num_primes; ++__i) 29724: { 29724: const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); 29724: __zeta *= __fact; 29724: if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) 29724: break; 29724: } 29724: 29724: __zeta = _Tp(1) / __zeta; 29724: 29724: return __zeta; 29724: } 29724: # 293 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __riemann_zeta(_Tp __s) 29724: { 29724: if (__isnan(__s)) 29724: return std::numeric_limits<_Tp>::quiet_NaN(); 29724: else if (__s == _Tp(1)) 29724: return std::numeric_limits<_Tp>::infinity(); 29724: else if (__s < -_Tp(19)) 29724: { 29724: _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); 29724: __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) 29724: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29724: 29724: * std::exp(::std::lgamma(_Tp(1) - __s)) 29724: 29724: 29724: 29724: / __numeric_constants<_Tp>::__pi(); 29724: return __zeta; 29724: } 29724: else if (__s < _Tp(20)) 29724: { 29724: 29724: bool __glob = true; 29724: if (__glob) 29724: return __riemann_zeta_glob(__s); 29724: else 29724: { 29724: if (__s > _Tp(1)) 29724: return __riemann_zeta_sum(__s); 29724: else 29724: { 29724: _Tp __zeta = std::pow(_Tp(2) 29724: * __numeric_constants<_Tp>::__pi(), __s) 29724: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29724: 29724: * ::std::tgamma(_Tp(1) - __s) 29724: 29724: 29724: 29724: * __riemann_zeta_sum(_Tp(1) - __s); 29724: return __zeta; 29724: } 29724: } 29724: } 29724: else 29724: return __riemann_zeta_product(__s); 29724: } 29724: # 365 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: _Tp 29724: __hurwitz_zeta_glob(_Tp __a, _Tp __s) 29724: { 29724: _Tp __zeta = _Tp(0); 29724: 29724: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29724: 29724: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 29724: * std::log(_Tp(10)) - _Tp(1); 29724: 29724: const unsigned int __maxit = 10000; 29724: for (unsigned int __i = 0; __i < __maxit; ++__i) 29724: { 29724: bool __punt = false; 29724: _Tp __sgn = _Tp(1); 29724: _Tp __term = _Tp(0); 29724: for (unsigned int __j = 0; __j <= __i; ++__j) 29724: { 29724: 29724: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 29724: - ::std::lgamma(_Tp(1 + __j)) 29724: - ::std::lgamma(_Tp(1 + __i - __j)); 29724: 29724: 29724: 29724: 29724: 29724: if (__bincoeff > __max_bincoeff) 29724: { 29724: 29724: __punt = true; 29724: break; 29724: } 29724: __bincoeff = std::exp(__bincoeff); 29724: __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); 29724: __sgn *= _Tp(-1); 29724: } 29724: if (__punt) 29724: break; 29724: __term /= _Tp(__i + 1); 29724: if (std::abs(__term / __zeta) < __eps) 29724: break; 29724: __zeta += __term; 29724: } 29724: 29724: __zeta /= __s - _Tp(1); 29724: 29724: return __zeta; 29724: } 29724: # 430 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29724: template 29724: inline _Tp 29724: __hurwitz_zeta(_Tp __a, _Tp __s) 29724: { return __hurwitz_zeta_glob(__a, __s); } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 58 "/usr/include/c++/14/bits/specfun.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 203 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: assoc_laguerref(unsigned int __n, unsigned int __m, float __x) 29724: { return __detail::__assoc_laguerre(__n, __m, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) 29724: { return __detail::__assoc_laguerre(__n, __m, __x); } 29724: # 248 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__assoc_laguerre<__type>(__n, __m, __x); 29724: } 29724: # 264 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: assoc_legendref(unsigned int __l, unsigned int __m, float __x) 29724: { return __detail::__assoc_legendre_p(__l, __m, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) 29724: { return __detail::__assoc_legendre_p(__l, __m, __x); } 29724: # 294 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__assoc_legendre_p<__type>(__l, __m, __x); 29724: } 29724: # 309 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: betaf(float __a, float __b) 29724: { return __detail::__beta(__a, __b); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: betal(long double __a, long double __b) 29724: { return __detail::__beta(__a, __b); } 29724: # 339 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type 29724: beta(_Tpa __a, _Tpb __b) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; 29724: return __detail::__beta<__type>(__a, __b); 29724: } 29724: # 355 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: comp_ellint_1f(float __k) 29724: { return __detail::__comp_ellint_1(__k); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: comp_ellint_1l(long double __k) 29724: { return __detail::__comp_ellint_1(__k); } 29724: # 387 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: comp_ellint_1(_Tp __k) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__comp_ellint_1<__type>(__k); 29724: } 29724: # 403 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: comp_ellint_2f(float __k) 29724: { return __detail::__comp_ellint_2(__k); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: comp_ellint_2l(long double __k) 29724: { return __detail::__comp_ellint_2(__k); } 29724: # 434 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: comp_ellint_2(_Tp __k) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__comp_ellint_2<__type>(__k); 29724: } 29724: # 450 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: comp_ellint_3f(float __k, float __nu) 29724: { return __detail::__comp_ellint_3(__k, __nu); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: comp_ellint_3l(long double __k, long double __nu) 29724: { return __detail::__comp_ellint_3(__k, __nu); } 29724: # 485 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type 29724: comp_ellint_3(_Tp __k, _Tpn __nu) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; 29724: return __detail::__comp_ellint_3<__type>(__k, __nu); 29724: } 29724: # 501 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: cyl_bessel_if(float __nu, float __x) 29724: { return __detail::__cyl_bessel_i(__nu, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: cyl_bessel_il(long double __nu, long double __x) 29724: { return __detail::__cyl_bessel_i(__nu, __x); } 29724: # 531 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29724: cyl_bessel_i(_Tpnu __nu, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29724: return __detail::__cyl_bessel_i<__type>(__nu, __x); 29724: } 29724: # 547 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: cyl_bessel_jf(float __nu, float __x) 29724: { return __detail::__cyl_bessel_j(__nu, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: cyl_bessel_jl(long double __nu, long double __x) 29724: { return __detail::__cyl_bessel_j(__nu, __x); } 29724: # 577 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29724: cyl_bessel_j(_Tpnu __nu, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29724: return __detail::__cyl_bessel_j<__type>(__nu, __x); 29724: } 29724: # 593 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: cyl_bessel_kf(float __nu, float __x) 29724: { return __detail::__cyl_bessel_k(__nu, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: cyl_bessel_kl(long double __nu, long double __x) 29724: { return __detail::__cyl_bessel_k(__nu, __x); } 29724: # 629 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29724: cyl_bessel_k(_Tpnu __nu, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29724: return __detail::__cyl_bessel_k<__type>(__nu, __x); 29724: } 29724: # 645 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: cyl_neumannf(float __nu, float __x) 29724: { return __detail::__cyl_neumann_n(__nu, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: cyl_neumannl(long double __nu, long double __x) 29724: { return __detail::__cyl_neumann_n(__nu, __x); } 29724: # 677 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29724: cyl_neumann(_Tpnu __nu, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29724: return __detail::__cyl_neumann_n<__type>(__nu, __x); 29724: } 29724: # 693 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: ellint_1f(float __k, float __phi) 29724: { return __detail::__ellint_1(__k, __phi); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: ellint_1l(long double __k, long double __phi) 29724: { return __detail::__ellint_1(__k, __phi); } 29724: # 725 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 29724: ellint_1(_Tp __k, _Tpp __phi) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 29724: return __detail::__ellint_1<__type>(__k, __phi); 29724: } 29724: # 741 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: ellint_2f(float __k, float __phi) 29724: { return __detail::__ellint_2(__k, __phi); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: ellint_2l(long double __k, long double __phi) 29724: { return __detail::__ellint_2(__k, __phi); } 29724: # 773 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 29724: ellint_2(_Tp __k, _Tpp __phi) 29724: { 29724: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 29724: return __detail::__ellint_2<__type>(__k, __phi); 29724: } 29724: # 789 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: ellint_3f(float __k, float __nu, float __phi) 29724: { return __detail::__ellint_3(__k, __nu, __phi); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: ellint_3l(long double __k, long double __nu, long double __phi) 29724: { return __detail::__ellint_3(__k, __nu, __phi); } 29724: # 826 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type 29724: ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) 29724: { 29724: typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; 29724: return __detail::__ellint_3<__type>(__k, __nu, __phi); 29724: } 29724: # 841 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: expintf(float __x) 29724: { return __detail::__expint(__x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: expintl(long double __x) 29724: { return __detail::__expint(__x); } 29724: # 866 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: expint(_Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__expint<__type>(__x); 29724: } 29724: # 882 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: hermitef(unsigned int __n, float __x) 29724: { return __detail::__poly_hermite(__n, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: hermitel(unsigned int __n, long double __x) 29724: { return __detail::__poly_hermite(__n, __x); } 29724: # 914 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: hermite(unsigned int __n, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__poly_hermite<__type>(__n, __x); 29724: } 29724: # 930 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: laguerref(unsigned int __n, float __x) 29724: { return __detail::__laguerre(__n, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: laguerrel(unsigned int __n, long double __x) 29724: { return __detail::__laguerre(__n, __x); } 29724: # 958 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: laguerre(unsigned int __n, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__laguerre<__type>(__n, __x); 29724: } 29724: # 974 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: legendref(unsigned int __l, float __x) 29724: { return __detail::__poly_legendre_p(__l, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: legendrel(unsigned int __l, long double __x) 29724: { return __detail::__poly_legendre_p(__l, __x); } 29724: # 1003 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: legendre(unsigned int __l, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__poly_legendre_p<__type>(__l, __x); 29724: } 29724: # 1019 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: riemann_zetaf(float __s) 29724: { return __detail::__riemann_zeta(__s); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: riemann_zetal(long double __s) 29724: { return __detail::__riemann_zeta(__s); } 29724: # 1054 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: riemann_zeta(_Tp __s) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__riemann_zeta<__type>(__s); 29724: } 29724: # 1070 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: sph_besself(unsigned int __n, float __x) 29724: { return __detail::__sph_bessel(__n, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: sph_bessell(unsigned int __n, long double __x) 29724: { return __detail::__sph_bessel(__n, __x); } 29724: # 1098 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: sph_bessel(unsigned int __n, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__sph_bessel<__type>(__n, __x); 29724: } 29724: # 1114 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: sph_legendref(unsigned int __l, unsigned int __m, float __theta) 29724: { return __detail::__sph_legendre(__l, __m, __theta); } 29724: # 1125 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline long double 29724: sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) 29724: { return __detail::__sph_legendre(__l, __m, __theta); } 29724: # 1145 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__sph_legendre<__type>(__l, __m, __theta); 29724: } 29724: # 1161 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: sph_neumannf(unsigned int __n, float __x) 29724: { return __detail::__sph_neumann(__n, __x); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline long double 29724: sph_neumannl(unsigned int __n, long double __x) 29724: { return __detail::__sph_neumann(__n, __x); } 29724: # 1189 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: sph_neumann(unsigned int __n, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: return __detail::__sph_neumann<__type>(__n, __x); 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 1216 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: airy_aif(float __x) 29724: { 29724: float __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Ai; 29724: } 29724: 29724: 29724: 29724: 29724: inline long double 29724: airy_ail(long double __x) 29724: { 29724: long double __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Ai; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: airy_ai(_Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: __type __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Ai; 29724: } 29724: 29724: 29724: 29724: 29724: inline float 29724: airy_bif(float __x) 29724: { 29724: float __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Bi; 29724: } 29724: 29724: 29724: 29724: 29724: inline long double 29724: airy_bil(long double __x) 29724: { 29724: long double __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Bi; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline typename __gnu_cxx::__promote<_Tp>::__type 29724: airy_bi(_Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29724: __type __Ai, __Bi, __Aip, __Bip; 29724: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 29724: return __Bi; 29724: } 29724: # 1292 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: conf_hypergf(float __a, float __c, float __x) 29724: { return std::__detail::__conf_hyperg(__a, __c, __x); } 29724: # 1303 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline long double 29724: conf_hypergl(long double __a, long double __c, long double __x) 29724: { return std::__detail::__conf_hyperg(__a, __c, __x); } 29724: # 1323 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type 29724: conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; 29724: return std::__detail::__conf_hyperg<__type>(__a, __c, __x); 29724: } 29724: # 1340 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline float 29724: hypergf(float __a, float __b, float __c, float __x) 29724: { return std::__detail::__hyperg(__a, __b, __c, __x); } 29724: # 1351 "/usr/include/c++/14/bits/specfun.h" 3 29724: inline long double 29724: hypergl(long double __a, long double __b, long double __c, long double __x) 29724: { return std::__detail::__hyperg(__a, __b, __c, __x); } 29724: # 1372 "/usr/include/c++/14/bits/specfun.h" 3 29724: template 29724: inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type 29724: hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) 29724: { 29724: typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> 29724: ::__type __type; 29724: return std::__detail::__hyperg<__type>(__a, __b, __c, __x); 29724: } 29724: 29724: 29724: 29724: } 29724: # 3907 "/usr/include/c++/14/cmath" 2 3 29724: 29724: 29724: } 29724: # 41 "/usr/include/c++/14/random" 2 3 29724: 29724: # 1 "/usr/include/c++/14/cstdlib" 1 3 29724: # 39 "/usr/include/c++/14/cstdlib" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdlib" 3 29724: # 43 "/usr/include/c++/14/random" 2 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/random.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/random.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 58 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: _RealType 29724: generate_canonical(_UniformRandomNumberGenerator& __g); 29724: 29724: 29724: 29724: namespace __detail 29724: { 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: 29724: template 29724: (std::numeric_limits<_UIntType>::digits)> 29724: struct _Shift 29724: { static constexpr _UIntType __value = 0; }; 29724: 29724: template 29724: struct _Shift<_UIntType, __w, true> 29724: { static constexpr _UIntType __value = _UIntType(1) << __w; }; 29724: 29724: template 29724: struct _Select_uint_least_t 29724: { 29724: static_assert(__which < 0, 29724: "sorry, would be too much trouble for a slow result"); 29724: }; 29724: 29724: template 29724: struct _Select_uint_least_t<__s, 4> 29724: { using type = unsigned int; }; 29724: 29724: template 29724: struct _Select_uint_least_t<__s, 3> 29724: { using type = unsigned long; }; 29724: 29724: template 29724: struct _Select_uint_least_t<__s, 2> 29724: { using type = unsigned long long; }; 29724: # 111 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: struct _Select_uint_least_t<__s, 1> 29724: { 29724: 29724: 29724: struct type 29724: { 29724: explicit 29724: type(uint64_t __a) noexcept : _M_lo(__a), _M_hi(0) { } 29724: 29724: 29724: friend type 29724: operator*(type __l, uint64_t __x) noexcept 29724: { 29724: 29724: 29724: 29724: 29724: constexpr uint64_t __mask = 0xffffffff; 29724: uint64_t __ll[2] = { __l._M_lo >> 32, __l._M_lo & __mask }; 29724: uint64_t __xx[2] = { __x >> 32, __x & __mask }; 29724: uint64_t __l0x0 = __ll[0] * __xx[0]; 29724: uint64_t __l0x1 = __ll[0] * __xx[1]; 29724: uint64_t __l1x0 = __ll[1] * __xx[0]; 29724: uint64_t __l1x1 = __ll[1] * __xx[1]; 29724: 29724: 29724: uint64_t __mid 29724: = (__l0x1 & __mask) + (__l1x0 & __mask) + (__l1x1 >> 32); 29724: __l._M_hi = __l0x0 + (__l0x1 >> 32) + (__l1x0 >> 32) + (__mid >> 32); 29724: __l._M_lo = (__mid << 32) + (__l1x1 & __mask); 29724: return __l; 29724: } 29724: 29724: friend type 29724: operator+(type __l, uint64_t __c) noexcept 29724: { 29724: __l._M_hi += __builtin_add_overflow(__l._M_lo, __c, &__l._M_lo); 29724: return __l; 29724: } 29724: 29724: friend type 29724: operator%(type __l, uint64_t __m) noexcept 29724: { 29724: if (__builtin_expect(__l._M_hi == 0, 0)) 29724: { 29724: __l._M_lo %= __m; 29724: return __l; 29724: } 29724: 29724: int __shift = __builtin_clzll(__m) + 64 29724: - __builtin_clzll(__l._M_hi); 29724: type __x(0); 29724: if (__shift >= 64) 29724: { 29724: __x._M_hi = __m << (__shift - 64); 29724: __x._M_lo = 0; 29724: } 29724: else 29724: { 29724: __x._M_hi = __m >> (64 - __shift); 29724: __x._M_lo = __m << __shift; 29724: } 29724: 29724: while (__l._M_hi != 0 || __l._M_lo >= __m) 29724: { 29724: if (__x <= __l) 29724: { 29724: __l._M_hi -= __x._M_hi; 29724: __l._M_hi -= __builtin_sub_overflow(__l._M_lo, __x._M_lo, 29724: &__l._M_lo); 29724: } 29724: __x._M_lo = (__x._M_lo >> 1) | (__x._M_hi << 63); 29724: __x._M_hi >>= 1; 29724: } 29724: return __l; 29724: } 29724: 29724: 29724: explicit operator uint64_t() const noexcept 29724: { return _M_lo; } 29724: 29724: friend bool operator<(const type& __l, const type& __r) noexcept 29724: { 29724: if (__l._M_hi < __r._M_hi) 29724: return true; 29724: else if (__l._M_hi == __r._M_hi) 29724: return __l._M_lo < __r._M_lo; 29724: else 29724: return false; 29724: } 29724: 29724: friend bool operator<=(const type& __l, const type& __r) noexcept 29724: { return !(__r < __l); } 29724: 29724: uint64_t _M_lo; 29724: uint64_t _M_hi; 29724: }; 29724: }; 29724: 29724: 29724: 29724: template= __m - 1), 29724: bool __schrage_ok = __m % __a < __m / __a> 29724: struct _Mod 29724: { 29724: static _Tp 29724: __calc(_Tp __x) 29724: { 29724: using _Tp2 29724: = typename _Select_uint_least_t::type; 29724: return static_cast<_Tp>((_Tp2(__a) * __x + __c) % __m); 29724: } 29724: }; 29724: 29724: 29724: template 29724: struct _Mod<_Tp, __m, __a, __c, false, true> 29724: { 29724: static _Tp 29724: __calc(_Tp __x); 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Mod<_Tp, __m, __a, __c, true, __s> 29724: { 29724: static _Tp 29724: __calc(_Tp __x) 29724: { 29724: _Tp __res = __a * __x + __c; 29724: if (__m) 29724: __res %= __m; 29724: return __res; 29724: } 29724: }; 29724: 29724: template 29724: inline _Tp 29724: __mod(_Tp __x) 29724: { 29724: if constexpr (__a == 0) 29724: return __c; 29724: else 29724: return _Mod<_Tp, __m, __a, __c>::__calc(__x); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Adaptor 29724: { 29724: static_assert(std::is_floating_point<_DInputType>::value, 29724: "template argument must be a floating point type"); 29724: 29724: public: 29724: _Adaptor(_Engine& __g) 29724: : _M_g(__g) { } 29724: 29724: _DInputType 29724: min() const 29724: { return _DInputType(0); } 29724: 29724: _DInputType 29724: max() const 29724: { return _DInputType(1); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: _DInputType 29724: operator()() 29724: { 29724: return std::generate_canonical<_DInputType, 29724: std::numeric_limits<_DInputType>::digits, 29724: _Engine>(_M_g); 29724: } 29724: 29724: private: 29724: _Engine& _M_g; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: using __seed_seq_generate_t = decltype( 29724: std::declval<_Sseq&>().generate(std::declval(), 29724: std::declval())); 29724: 29724: template> 29724: using _If_seed_seq_for = _Require< 29724: __not_, _Engine>>, 29724: is_unsigned, 29724: __not_> 29724: >; 29724: 29724: #pragma GCC diagnostic pop 29724: } 29724: # 365 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class linear_congruential_engine 29724: { 29724: static_assert(std::is_unsigned<_UIntType>::value, 29724: "result_type must be an unsigned integral type"); 29724: static_assert(__m == 0u || (__a < __m && __c < __m), 29724: "template argument substituting __m out of bounds"); 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, linear_congruential_engine, 29724: _UIntType>; 29724: 29724: public: 29724: 29724: typedef _UIntType result_type; 29724: 29724: 29724: static constexpr result_type multiplier = __a; 29724: 29724: static constexpr result_type increment = __c; 29724: 29724: static constexpr result_type modulus = __m; 29724: static constexpr result_type default_seed = 1u; 29724: 29724: 29724: 29724: 29724: 29724: linear_congruential_engine() : linear_congruential_engine(default_seed) 29724: { } 29724: # 404 "/usr/include/c++/14/bits/random.h" 3 29724: explicit 29724: linear_congruential_engine(result_type __s) 29724: { seed(__s); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: linear_congruential_engine(_Sseq& __q) 29724: { seed(__q); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed(result_type __s = default_seed); 29724: # 435 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return __c == 0u ? 1u : 0u; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return __m - 1u; } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z) 29724: { 29724: for (; __z != 0ULL; --__z) 29724: (*this)(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: operator()() 29724: { 29724: _M_x = __detail::__mod<_UIntType, __m, __a, __c>(_M_x); 29724: return _M_x; 29724: } 29724: # 487 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const linear_congruential_engine& __lhs, 29724: const linear_congruential_engine& __rhs) 29724: { return __lhs._M_x == __rhs._M_x; } 29724: # 500 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::linear_congruential_engine<_UIntType1, 29724: __a1, __c1, __m1>& __lcr); 29724: # 520 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::linear_congruential_engine<_UIntType1, __a1, 29724: __c1, __m1>& __lcr); 29724: 29724: private: 29724: _UIntType _M_x; 29724: }; 29724: # 543 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::linear_congruential_engine<_UIntType, __a, 29724: __c, __m>& __lhs, 29724: const std::linear_congruential_engine<_UIntType, __a, 29724: __c, __m>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 583 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class mersenne_twister_engine 29724: { 29724: static_assert(std::is_unsigned<_UIntType>::value, 29724: "result_type must be an unsigned integral type"); 29724: static_assert(1u <= __m && __m <= __n, 29724: "template argument substituting __m out of bounds"); 29724: static_assert(__r <= __w, "template argument substituting " 29724: "__r out of bound"); 29724: static_assert(__u <= __w, "template argument substituting " 29724: "__u out of bound"); 29724: static_assert(__s <= __w, "template argument substituting " 29724: "__s out of bound"); 29724: static_assert(__t <= __w, "template argument substituting " 29724: "__t out of bound"); 29724: static_assert(__l <= __w, "template argument substituting " 29724: "__l out of bound"); 29724: static_assert(__w <= std::numeric_limits<_UIntType>::digits, 29724: "template argument substituting __w out of bound"); 29724: static_assert(__a <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29724: "template argument substituting __a out of bound"); 29724: static_assert(__b <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29724: "template argument substituting __b out of bound"); 29724: static_assert(__c <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29724: "template argument substituting __c out of bound"); 29724: static_assert(__d <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29724: "template argument substituting __d out of bound"); 29724: static_assert(__f <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29724: "template argument substituting __f out of bound"); 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, mersenne_twister_engine, 29724: _UIntType>; 29724: 29724: public: 29724: 29724: typedef _UIntType result_type; 29724: 29724: 29724: static constexpr size_t word_size = __w; 29724: static constexpr size_t state_size = __n; 29724: static constexpr size_t shift_size = __m; 29724: static constexpr size_t mask_bits = __r; 29724: static constexpr result_type xor_mask = __a; 29724: static constexpr size_t tempering_u = __u; 29724: static constexpr result_type tempering_d = __d; 29724: static constexpr size_t tempering_s = __s; 29724: static constexpr result_type tempering_b = __b; 29724: static constexpr size_t tempering_t = __t; 29724: static constexpr result_type tempering_c = __c; 29724: static constexpr size_t tempering_l = __l; 29724: static constexpr result_type initialization_multiplier = __f; 29724: static constexpr result_type default_seed = 5489u; 29724: 29724: 29724: 29724: mersenne_twister_engine() : mersenne_twister_engine(default_seed) { } 29724: 29724: explicit 29724: mersenne_twister_engine(result_type __sd) 29724: { seed(__sd); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: mersenne_twister_engine(_Sseq& __q) 29724: { seed(__q); } 29724: 29724: void 29724: seed(result_type __sd = default_seed); 29724: 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q); 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return 0; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z); 29724: 29724: result_type 29724: operator()(); 29724: # 703 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const mersenne_twister_engine& __lhs, 29724: const mersenne_twister_engine& __rhs) 29724: { return (std::equal(__lhs._M_x, __lhs._M_x + state_size, __rhs._M_x) 29724: && __lhs._M_p == __rhs._M_p); } 29724: # 721 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::mersenne_twister_engine<_UIntType1, __w1, __n1, 29724: __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 29724: __l1, __f1>& __x); 29724: # 747 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, 29724: __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 29724: __l1, __f1>& __x); 29724: 29724: private: 29724: void _M_gen_rand(); 29724: 29724: _UIntType _M_x[state_size]; 29724: size_t _M_p; 29724: }; 29724: # 781 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 29724: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __lhs, 29724: const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 29724: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 812 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class subtract_with_carry_engine 29724: { 29724: static_assert(std::is_unsigned<_UIntType>::value, 29724: "result_type must be an unsigned integral type"); 29724: static_assert(0u < __s && __s < __r, 29724: "0 < s < r"); 29724: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 29724: "template argument substituting __w out of bounds"); 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, subtract_with_carry_engine, 29724: _UIntType>; 29724: 29724: public: 29724: 29724: typedef _UIntType result_type; 29724: 29724: 29724: static constexpr size_t word_size = __w; 29724: static constexpr size_t short_lag = __s; 29724: static constexpr size_t long_lag = __r; 29724: static constexpr uint_least32_t default_seed = 19780503u; 29724: 29724: subtract_with_carry_engine() : subtract_with_carry_engine(0u) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: subtract_with_carry_engine(result_type __sd) 29724: { seed(__sd); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: subtract_with_carry_engine(_Sseq& __q) 29724: { seed(__q); } 29724: # 871 "/usr/include/c++/14/bits/random.h" 3 29724: void 29724: seed(result_type __sd = 0u); 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q); 29724: 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return 0; } 29724: 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z) 29724: { 29724: for (; __z != 0ULL; --__z) 29724: (*this)(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: operator()(); 29724: # 926 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const subtract_with_carry_engine& __lhs, 29724: const subtract_with_carry_engine& __rhs) 29724: { return (std::equal(__lhs._M_x, __lhs._M_x + long_lag, __rhs._M_x) 29724: && __lhs._M_carry == __rhs._M_carry 29724: && __lhs._M_p == __rhs._M_p); } 29724: # 945 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::subtract_with_carry_engine<_UIntType1, __w1, 29724: __s1, __r1>& __x); 29724: # 964 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::subtract_with_carry_engine<_UIntType1, __w1, 29724: __s1, __r1>& __x); 29724: 29724: private: 29724: 29724: _UIntType _M_x[long_lag]; 29724: _UIntType _M_carry; 29724: size_t _M_p; 29724: }; 29724: # 991 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::subtract_with_carry_engine<_UIntType, __w, 29724: __s, __r>& __lhs, 29724: const std::subtract_with_carry_engine<_UIntType, __w, 29724: __s, __r>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 1009 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class discard_block_engine 29724: { 29724: static_assert(1 <= __r && __r <= __p, 29724: "template argument substituting __r out of bounds"); 29724: 29724: public: 29724: 29724: typedef typename _RandomNumberEngine::result_type result_type; 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, discard_block_engine, 29724: result_type>; 29724: 29724: 29724: static constexpr size_t block_size = __p; 29724: static constexpr size_t used_block = __r; 29724: 29724: 29724: 29724: 29724: 29724: 29724: discard_block_engine() 29724: : _M_b(), _M_n(0) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: discard_block_engine(const _RandomNumberEngine& __rng) 29724: : _M_b(__rng), _M_n(0) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: discard_block_engine(_RandomNumberEngine&& __rng) 29724: : _M_b(std::move(__rng)), _M_n(0) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: discard_block_engine(result_type __s) 29724: : _M_b(__s), _M_n(0) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: discard_block_engine(_Sseq& __q) 29724: : _M_b(__q), _M_n(0) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed() 29724: { 29724: _M_b.seed(); 29724: _M_n = 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed(result_type __s) 29724: { 29724: _M_b.seed(__s); 29724: _M_n = 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q) 29724: { 29724: _M_b.seed(__q); 29724: _M_n = 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: const _RandomNumberEngine& 29724: base() const noexcept 29724: { return _M_b; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return _RandomNumberEngine::min(); } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return _RandomNumberEngine::max(); } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z) 29724: { 29724: for (; __z != 0ULL; --__z) 29724: (*this)(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: operator()(); 29724: # 1161 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const discard_block_engine& __lhs, 29724: const discard_block_engine& __rhs) 29724: { return __lhs._M_b == __rhs._M_b && __lhs._M_n == __rhs._M_n; } 29724: # 1177 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::discard_block_engine<_RandomNumberEngine1, 29724: __p1, __r1>& __x); 29724: # 1195 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::discard_block_engine<_RandomNumberEngine1, 29724: __p1, __r1>& __x); 29724: 29724: private: 29724: _RandomNumberEngine _M_b; 29724: size_t _M_n; 29724: }; 29724: # 1219 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::discard_block_engine<_RandomNumberEngine, __p, 29724: __r>& __lhs, 29724: const std::discard_block_engine<_RandomNumberEngine, __p, 29724: __r>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 1235 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class independent_bits_engine 29724: { 29724: static_assert(std::is_unsigned<_UIntType>::value, 29724: "result_type must be an unsigned integral type"); 29724: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 29724: "template argument substituting __w out of bounds"); 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, independent_bits_engine, 29724: _UIntType>; 29724: 29724: public: 29724: 29724: typedef _UIntType result_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: independent_bits_engine() 29724: : _M_b() { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: independent_bits_engine(const _RandomNumberEngine& __rng) 29724: : _M_b(__rng) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: independent_bits_engine(_RandomNumberEngine&& __rng) 29724: : _M_b(std::move(__rng)) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: independent_bits_engine(result_type __s) 29724: : _M_b(__s) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: independent_bits_engine(_Sseq& __q) 29724: : _M_b(__q) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed() 29724: { _M_b.seed(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed(result_type __s) 29724: { _M_b.seed(__s); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q) 29724: { _M_b.seed(__q); } 29724: 29724: 29724: 29724: 29724: 29724: const _RandomNumberEngine& 29724: base() const noexcept 29724: { return _M_b; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return 0U; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z) 29724: { 29724: for (; __z != 0ULL; --__z) 29724: (*this)(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: operator()(); 29724: # 1377 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const independent_bits_engine& __lhs, 29724: const independent_bits_engine& __rhs) 29724: { return __lhs._M_b == __rhs._M_b; } 29724: # 1394 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::independent_bits_engine<_RandomNumberEngine, 29724: __w, _UIntType>& __x) 29724: { 29724: __is >> __x._M_b; 29724: return __is; 29724: } 29724: 29724: private: 29724: _RandomNumberEngine _M_b; 29724: }; 29724: # 1421 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::independent_bits_engine<_RandomNumberEngine, __w, 29724: _UIntType>& __lhs, 29724: const std::independent_bits_engine<_RandomNumberEngine, __w, 29724: _UIntType>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: # 1440 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::independent_bits_engine<_RandomNumberEngine, 29724: __w, _UIntType>& __x) 29724: { 29724: __os << __x.base(); 29724: return __os; 29724: } 29724: # 1462 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class shuffle_order_engine 29724: { 29724: static_assert(1u <= __k, "template argument substituting " 29724: "__k out of bound"); 29724: 29724: public: 29724: 29724: typedef typename _RandomNumberEngine::result_type result_type; 29724: 29724: template 29724: using _If_seed_seq 29724: = __detail::_If_seed_seq_for<_Sseq, shuffle_order_engine, 29724: result_type>; 29724: 29724: static constexpr size_t table_size = __k; 29724: 29724: 29724: 29724: 29724: 29724: 29724: shuffle_order_engine() 29724: : _M_b() 29724: { _M_initialize(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: shuffle_order_engine(const _RandomNumberEngine& __rng) 29724: : _M_b(__rng) 29724: { _M_initialize(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: shuffle_order_engine(_RandomNumberEngine&& __rng) 29724: : _M_b(std::move(__rng)) 29724: { _M_initialize(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: shuffle_order_engine(result_type __s) 29724: : _M_b(__s) 29724: { _M_initialize(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: explicit 29724: shuffle_order_engine(_Sseq& __q) 29724: : _M_b(__q) 29724: { _M_initialize(); } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed() 29724: { 29724: _M_b.seed(); 29724: _M_initialize(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: seed(result_type __s) 29724: { 29724: _M_b.seed(__s); 29724: _M_initialize(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _If_seed_seq<_Sseq> 29724: seed(_Sseq& __q) 29724: { 29724: _M_b.seed(__q); 29724: _M_initialize(); 29724: } 29724: 29724: 29724: 29724: 29724: const _RandomNumberEngine& 29724: base() const noexcept 29724: { return _M_b; } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: min() 29724: { return _RandomNumberEngine::min(); } 29724: 29724: 29724: 29724: 29724: static constexpr result_type 29724: max() 29724: { return _RandomNumberEngine::max(); } 29724: 29724: 29724: 29724: 29724: void 29724: discard(unsigned long long __z) 29724: { 29724: for (; __z != 0ULL; --__z) 29724: (*this)(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: operator()(); 29724: # 1615 "/usr/include/c++/14/bits/random.h" 3 29724: friend bool 29724: operator==(const shuffle_order_engine& __lhs, 29724: const shuffle_order_engine& __rhs) 29724: { return (__lhs._M_b == __rhs._M_b 29724: && std::equal(__lhs._M_v, __lhs._M_v + __k, __rhs._M_v) 29724: && __lhs._M_y == __rhs._M_y); } 29724: # 1633 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::shuffle_order_engine<_RandomNumberEngine1, 29724: __k1>& __x); 29724: # 1651 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::shuffle_order_engine<_RandomNumberEngine1, __k1>& __x); 29724: 29724: private: 29724: void _M_initialize() 29724: { 29724: for (size_t __i = 0; __i < __k; ++__i) 29724: _M_v[__i] = _M_b(); 29724: _M_y = _M_b(); 29724: } 29724: 29724: _RandomNumberEngine _M_b; 29724: result_type _M_v[__k]; 29724: result_type _M_y; 29724: }; 29724: # 1682 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::shuffle_order_engine<_RandomNumberEngine, 29724: __k>& __lhs, 29724: const std::shuffle_order_engine<_RandomNumberEngine, 29724: __k>& __rhs) 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: 29724: 29724: 29724: typedef linear_congruential_engine 29724: minstd_rand0; 29724: 29724: 29724: 29724: 29724: typedef linear_congruential_engine 29724: minstd_rand; 29724: # 1711 "/usr/include/c++/14/bits/random.h" 3 29724: typedef mersenne_twister_engine< 29724: uint_fast32_t, 29724: 32, 624, 397, 31, 29724: 0x9908b0dfUL, 11, 29724: 0xffffffffUL, 7, 29724: 0x9d2c5680UL, 15, 29724: 0xefc60000UL, 18, 1812433253UL> mt19937; 29724: 29724: 29724: 29724: 29724: typedef mersenne_twister_engine< 29724: uint_fast64_t, 29724: 64, 312, 156, 31, 29724: 0xb5026f5aa96619e9ULL, 29, 29724: 0x5555555555555555ULL, 17, 29724: 0x71d67fffeda60000ULL, 37, 29724: 0xfff7eee000000000ULL, 43, 29724: 6364136223846793005ULL> mt19937_64; 29724: 29724: typedef subtract_with_carry_engine 29724: ranlux24_base; 29724: 29724: typedef subtract_with_carry_engine 29724: ranlux48_base; 29724: 29724: typedef discard_block_engine ranlux24; 29724: 29724: typedef discard_block_engine ranlux48; 29724: 29724: typedef shuffle_order_engine knuth_b; 29724: 29724: typedef minstd_rand0 default_random_engine; 29724: # 1752 "/usr/include/c++/14/bits/random.h" 3 29724: class random_device 29724: { 29724: public: 29724: 29724: typedef unsigned int result_type; 29724: 29724: 29724: 29724: random_device() { _M_init("default"); } 29724: 29724: explicit 29724: random_device(const std::string& __token) { _M_init(__token); } 29724: 29724: ~random_device() 29724: { _M_fini(); } 29724: 29724: static constexpr result_type 29724: min() 29724: { return std::numeric_limits::min(); } 29724: 29724: static constexpr result_type 29724: max() 29724: { return std::numeric_limits::max(); } 29724: 29724: double 29724: entropy() const noexcept 29724: { return this->_M_getentropy(); } 29724: 29724: result_type 29724: operator()() 29724: { return this->_M_getval(); } 29724: 29724: 29724: random_device(const random_device&) = delete; 29724: void operator=(const random_device&) = delete; 29724: 29724: private: 29724: 29724: void _M_init(const std::string& __token); 29724: void _M_init_pretr1(const std::string& __token); 29724: void _M_fini(); 29724: 29724: result_type _M_getval(); 29724: result_type _M_getval_pretr1(); 29724: double _M_getentropy() const noexcept; 29724: 29724: void _M_init(const char*, size_t); 29724: 29724: __extension__ union 29724: { 29724: struct 29724: { 29724: void* _M_file; 29724: result_type (*_M_func)(void*); 29724: int _M_fd; 29724: }; 29724: mt19937 _M_mt; 29724: }; 29724: }; 29724: # 1833 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline bool 29724: operator!=(const std::uniform_int_distribution<_IntType>& __d1, 29724: const std::uniform_int_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 1850 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>&, 29724: const std::uniform_int_distribution<_IntType>&); 29724: # 1864 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>&, 29724: std::uniform_int_distribution<_IntType>&); 29724: # 1880 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class uniform_real_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef uniform_real_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(0) { } 29724: 29724: explicit 29724: param_type(_RealType __a, _RealType __b = _RealType(1)) 29724: : _M_a(__a), _M_b(__b) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: result_type 29724: a() const 29724: { return _M_a; } 29724: 29724: result_type 29724: b() const 29724: { return _M_b; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_a; 29724: _RealType _M_b; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: uniform_real_distribution() : uniform_real_distribution(0.0) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: uniform_real_distribution(_RealType __a, _RealType __b = _RealType(1)) 29724: : _M_param(__a, __b) 29724: { } 29724: 29724: explicit 29724: uniform_real_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset() { } 29724: 29724: result_type 29724: a() const 29724: { return _M_param.a(); } 29724: 29724: result_type 29724: b() const 29724: { return _M_param.b(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return this->a(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return this->b(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: return (__aurng() * (__p.b() - __p.a())) + __p.a(); 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const uniform_real_distribution& __d1, 29724: const uniform_real_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::uniform_real_distribution<_IntType>& __d1, 29724: const std::uniform_real_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 2078 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>&, 29724: const std::uniform_real_distribution<_RealType>&); 29724: # 2092 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>&, 29724: std::uniform_real_distribution<_RealType>&); 29724: # 2117 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class normal_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef normal_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(0.0) { } 29724: 29724: explicit 29724: param_type(_RealType __mean, _RealType __stddev = _RealType(1)) 29724: : _M_mean(__mean), _M_stddev(__stddev) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_stddev > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: _RealType 29724: mean() const 29724: { return _M_mean; } 29724: 29724: _RealType 29724: stddev() const 29724: { return _M_stddev; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return (__p1._M_mean == __p2._M_mean 29724: && __p1._M_stddev == __p2._M_stddev); } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_mean; 29724: _RealType _M_stddev; 29724: }; 29724: 29724: public: 29724: normal_distribution() : normal_distribution(0.0) { } 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: normal_distribution(result_type __mean, 29724: result_type __stddev = result_type(1)) 29724: : _M_param(__mean, __stddev) 29724: { } 29724: 29724: explicit 29724: normal_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_saved_available = false; } 29724: 29724: 29724: 29724: 29724: _RealType 29724: mean() const 29724: { return _M_param.mean(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: stddev() const 29724: { return _M_param.stddev(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return std::numeric_limits::lowest(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator==(const std::normal_distribution<_RealType1>& __d1, 29724: const std::normal_distribution<_RealType1>& __d2); 29724: # 2288 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::normal_distribution<_RealType1>& __x); 29724: # 2303 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::normal_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: result_type _M_saved = 0; 29724: bool _M_saved_available = false; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::normal_distribution<_RealType>& __d1, 29724: const std::normal_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 2344 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class lognormal_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef lognormal_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(0.0) { } 29724: 29724: explicit 29724: param_type(_RealType __m, _RealType __s = _RealType(1)) 29724: : _M_m(__m), _M_s(__s) 29724: { } 29724: 29724: _RealType 29724: m() const 29724: { return _M_m; } 29724: 29724: _RealType 29724: s() const 29724: { return _M_s; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_m == __p2._M_m && __p1._M_s == __p2._M_s; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_m; 29724: _RealType _M_s; 29724: }; 29724: 29724: lognormal_distribution() : lognormal_distribution(0.0) { } 29724: 29724: explicit 29724: lognormal_distribution(_RealType __m, _RealType __s = _RealType(1)) 29724: : _M_param(__m, __s), _M_nd() 29724: { } 29724: 29724: explicit 29724: lognormal_distribution(const param_type& __p) 29724: : _M_param(__p), _M_nd() 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_nd.reset(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: m() const 29724: { return _M_param.m(); } 29724: 29724: _RealType 29724: s() const 29724: { return _M_param.s(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { return std::exp(__p.s() * _M_nd(__urng) + __p.m()); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const lognormal_distribution& __d1, 29724: const lognormal_distribution& __d2) 29724: { return (__d1._M_param == __d2._M_param 29724: && __d1._M_nd == __d2._M_nd); } 29724: # 2505 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::lognormal_distribution<_RealType1>& __x); 29724: # 2520 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::lognormal_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::normal_distribution _M_nd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::lognormal_distribution<_RealType>& __d1, 29724: const std::lognormal_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 2569 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class gamma_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef gamma_distribution<_RealType> distribution_type; 29724: friend class gamma_distribution<_RealType>; 29724: 29724: param_type() : param_type(1.0) { } 29724: 29724: explicit 29724: param_type(_RealType __alpha_val, _RealType __beta_val = _RealType(1)) 29724: : _M_alpha(__alpha_val), _M_beta(__beta_val) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_alpha > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29724: _M_initialize(); 29724: } 29724: 29724: _RealType 29724: alpha() const 29724: { return _M_alpha; } 29724: 29724: _RealType 29724: beta() const 29724: { return _M_beta; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return (__p1._M_alpha == __p2._M_alpha 29724: && __p1._M_beta == __p2._M_beta); } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize(); 29724: 29724: _RealType _M_alpha; 29724: _RealType _M_beta; 29724: 29724: _RealType _M_malpha, _M_a2; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: gamma_distribution() : gamma_distribution(1.0) { } 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: gamma_distribution(_RealType __alpha_val, 29724: _RealType __beta_val = _RealType(1)) 29724: : _M_param(__alpha_val, __beta_val), _M_nd() 29724: { } 29724: 29724: explicit 29724: gamma_distribution(const param_type& __p) 29724: : _M_param(__p), _M_nd() 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_nd.reset(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: alpha() const 29724: { return _M_param.alpha(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: beta() const 29724: { return _M_param.beta(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const gamma_distribution& __d1, 29724: const gamma_distribution& __d2) 29724: { return (__d1._M_param == __d2._M_param 29724: && __d1._M_nd == __d2._M_nd); } 29724: # 2751 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::gamma_distribution<_RealType1>& __x); 29724: # 2765 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::gamma_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::normal_distribution _M_nd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::gamma_distribution<_RealType>& __d1, 29724: const std::gamma_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 2811 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class chi_squared_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef chi_squared_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(1) { } 29724: 29724: explicit 29724: param_type(_RealType __n) 29724: : _M_n(__n) 29724: { } 29724: 29724: _RealType 29724: n() const 29724: { return _M_n; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_n == __p2._M_n; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_n; 29724: }; 29724: 29724: chi_squared_distribution() : chi_squared_distribution(1) { } 29724: 29724: explicit 29724: chi_squared_distribution(_RealType __n) 29724: : _M_param(__n), _M_gd(__n / 2) 29724: { } 29724: 29724: explicit 29724: chi_squared_distribution(const param_type& __p) 29724: : _M_param(__p), _M_gd(__p.n() / 2) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_gd.reset(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: n() const 29724: { return _M_param.n(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { 29724: _M_param = __param; 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: _M_gd.param(param_type{__param.n() / 2}); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return 2 * _M_gd(__urng); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: return 2 * _M_gd(__urng, param_type(__p.n() / 2)); 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { typename std::gamma_distribution::param_type 29724: __p2(__p.n() / 2); 29724: this->__generate_impl(__f, __t, __urng, __p2); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { typename std::gamma_distribution::param_type 29724: __p2(__p.n() / 2); 29724: this->__generate_impl(__f, __t, __urng, __p2); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const chi_squared_distribution& __d1, 29724: const chi_squared_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 29724: # 2981 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::chi_squared_distribution<_RealType1>& __x); 29724: # 2996 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::chi_squared_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng); 29724: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const typename 29724: std::gamma_distribution::param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::gamma_distribution _M_gd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::chi_squared_distribution<_RealType>& __d1, 29724: const std::chi_squared_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 3041 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class cauchy_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef cauchy_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(0) { } 29724: 29724: explicit 29724: param_type(_RealType __a, _RealType __b = _RealType(1)) 29724: : _M_a(__a), _M_b(__b) 29724: { } 29724: 29724: _RealType 29724: a() const 29724: { return _M_a; } 29724: 29724: _RealType 29724: b() const 29724: { return _M_b; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_a; 29724: _RealType _M_b; 29724: }; 29724: 29724: cauchy_distribution() : cauchy_distribution(0.0) { } 29724: 29724: explicit 29724: cauchy_distribution(_RealType __a, _RealType __b = 1.0) 29724: : _M_param(__a, __b) 29724: { } 29724: 29724: explicit 29724: cauchy_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: _RealType 29724: a() const 29724: { return _M_param.a(); } 29724: 29724: _RealType 29724: b() const 29724: { return _M_param.b(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return std::numeric_limits::lowest(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const cauchy_distribution& __d1, 29724: const cauchy_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::cauchy_distribution<_RealType>& __d1, 29724: const std::cauchy_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 3222 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::cauchy_distribution<_RealType>& __x); 29724: # 3237 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::cauchy_distribution<_RealType>& __x); 29724: # 3256 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class fisher_f_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef fisher_f_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(1) { } 29724: 29724: explicit 29724: param_type(_RealType __m, _RealType __n = _RealType(1)) 29724: : _M_m(__m), _M_n(__n) 29724: { } 29724: 29724: _RealType 29724: m() const 29724: { return _M_m; } 29724: 29724: _RealType 29724: n() const 29724: { return _M_n; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_m == __p2._M_m && __p1._M_n == __p2._M_n; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_m; 29724: _RealType _M_n; 29724: }; 29724: 29724: fisher_f_distribution() : fisher_f_distribution(1.0) { } 29724: 29724: explicit 29724: fisher_f_distribution(_RealType __m, 29724: _RealType __n = _RealType(1)) 29724: : _M_param(__m, __n), _M_gd_x(__m / 2), _M_gd_y(__n / 2) 29724: { } 29724: 29724: explicit 29724: fisher_f_distribution(const param_type& __p) 29724: : _M_param(__p), _M_gd_x(__p.m() / 2), _M_gd_y(__p.n() / 2) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { 29724: _M_gd_x.reset(); 29724: _M_gd_y.reset(); 29724: } 29724: 29724: 29724: 29724: 29724: _RealType 29724: m() const 29724: { return _M_param.m(); } 29724: 29724: _RealType 29724: n() const 29724: { return _M_param.n(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return (_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m()); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: return ((_M_gd_x(__urng, param_type(__p.m() / 2)) * n()) 29724: / (_M_gd_y(__urng, param_type(__p.n() / 2)) * m())); 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const fisher_f_distribution& __d1, 29724: const fisher_f_distribution& __d2) 29724: { return (__d1._M_param == __d2._M_param 29724: && __d1._M_gd_x == __d2._M_gd_x 29724: && __d1._M_gd_y == __d2._M_gd_y); } 29724: # 3433 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::fisher_f_distribution<_RealType1>& __x); 29724: # 3448 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::fisher_f_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng); 29724: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::gamma_distribution _M_gd_x, _M_gd_y; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::fisher_f_distribution<_RealType>& __d1, 29724: const std::fisher_f_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 3495 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class student_t_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef student_t_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(1) { } 29724: 29724: explicit 29724: param_type(_RealType __n) 29724: : _M_n(__n) 29724: { } 29724: 29724: _RealType 29724: n() const 29724: { return _M_n; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_n == __p2._M_n; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_n; 29724: }; 29724: 29724: student_t_distribution() : student_t_distribution(1.0) { } 29724: 29724: explicit 29724: student_t_distribution(_RealType __n) 29724: : _M_param(__n), _M_nd(), _M_gd(__n / 2, 2) 29724: { } 29724: 29724: explicit 29724: student_t_distribution(const param_type& __p) 29724: : _M_param(__p), _M_nd(), _M_gd(__p.n() / 2, 2) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { 29724: _M_nd.reset(); 29724: _M_gd.reset(); 29724: } 29724: 29724: 29724: 29724: 29724: _RealType 29724: n() const 29724: { return _M_param.n(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return std::numeric_limits::lowest(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: 29724: const result_type __g = _M_gd(__urng, param_type(__p.n() / 2, 2)); 29724: return _M_nd(__urng) * std::sqrt(__p.n() / __g); 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const student_t_distribution& __d1, 29724: const student_t_distribution& __d2) 29724: { return (__d1._M_param == __d2._M_param 29724: && __d1._M_nd == __d2._M_nd && __d1._M_gd == __d2._M_gd); } 29724: # 3662 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::student_t_distribution<_RealType1>& __x); 29724: # 3677 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::student_t_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng); 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::normal_distribution _M_nd; 29724: std::gamma_distribution _M_gd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::student_t_distribution<_RealType>& __d1, 29724: const std::student_t_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 3729 "/usr/include/c++/14/bits/random.h" 3 29724: class bernoulli_distribution 29724: { 29724: public: 29724: 29724: typedef bool result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef bernoulli_distribution distribution_type; 29724: 29724: param_type() : param_type(0.5) { } 29724: 29724: explicit 29724: param_type(double __p) 29724: : _M_p(__p) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool((_M_p >= 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: double 29724: p() const 29724: { return _M_p; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_p == __p2._M_p; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: double _M_p; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: bernoulli_distribution() : bernoulli_distribution(0.5) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: bernoulli_distribution(double __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: explicit 29724: bernoulli_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset() { } 29724: 29724: 29724: 29724: 29724: double 29724: p() const 29724: { return _M_param.p(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return std::numeric_limits::min(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: if ((__aurng() - __aurng.min()) 29724: < __p.p() * (__aurng.max() - __aurng.min())) 29724: return true; 29724: return false; 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const bernoulli_distribution& __d1, 29724: const bernoulli_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline bool 29724: operator!=(const std::bernoulli_distribution& __d1, 29724: const std::bernoulli_distribution& __d2) 29724: { return !(__d1 == __d2); } 29724: # 3916 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::bernoulli_distribution& __x); 29724: # 3930 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: inline std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::bernoulli_distribution& __x) 29724: { 29724: double __p; 29724: if (__is >> __p) 29724: __x.param(bernoulli_distribution::param_type(__p)); 29724: return __is; 29724: } 29724: # 3952 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class binomial_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "result_type must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef binomial_distribution<_IntType> distribution_type; 29724: friend class binomial_distribution<_IntType>; 29724: 29724: param_type() : param_type(1) { } 29724: 29724: explicit 29724: param_type(_IntType __t, double __p = 0.5) 29724: : _M_t(__t), _M_p(__p) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool((_M_t >= _IntType(0)) && (_M_p >= 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false) 29724: 29724: ; 29724: _M_initialize(); 29724: } 29724: 29724: _IntType 29724: t() const 29724: { return _M_t; } 29724: 29724: double 29724: p() const 29724: { return _M_p; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_t == __p2._M_t && __p1._M_p == __p2._M_p; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize(); 29724: 29724: _IntType _M_t; 29724: double _M_p; 29724: 29724: double _M_q; 29724: 29724: double _M_d1, _M_d2, _M_s1, _M_s2, _M_c, 29724: _M_a1, _M_a123, _M_s, _M_lf, _M_lp1p; 29724: 29724: bool _M_easy; 29724: }; 29724: 29724: 29724: 29724: binomial_distribution() : binomial_distribution(1) { } 29724: 29724: explicit 29724: binomial_distribution(_IntType __t, double __p = 0.5) 29724: : _M_param(__t, __p), _M_nd() 29724: { } 29724: 29724: explicit 29724: binomial_distribution(const param_type& __p) 29724: : _M_param(__p), _M_nd() 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_nd.reset(); } 29724: 29724: 29724: 29724: 29724: _IntType 29724: t() const 29724: { return _M_param.t(); } 29724: 29724: 29724: 29724: 29724: double 29724: p() const 29724: { return _M_param.p(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return 0; } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return _M_param.t(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const binomial_distribution& __d1, 29724: const binomial_distribution& __d2) 29724: 29724: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 29724: # 4136 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::binomial_distribution<_IntType1>& __x); 29724: # 4152 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::binomial_distribution<_IntType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: result_type 29724: _M_waiting(_UniformRandomNumberGenerator& __urng, 29724: _IntType __t, double __q); 29724: 29724: param_type _M_param; 29724: 29724: 29724: std::normal_distribution _M_nd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::binomial_distribution<_IntType>& __d1, 29724: const std::binomial_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 4198 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class geometric_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "result_type must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef geometric_distribution<_IntType> distribution_type; 29724: friend class geometric_distribution<_IntType>; 29724: 29724: param_type() : param_type(0.5) { } 29724: 29724: explicit 29724: param_type(double __p) 29724: : _M_p(__p) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool((_M_p > 0.0) && (_M_p < 1.0))) std::__glibcxx_assert_fail(); } while (false); 29724: _M_initialize(); 29724: } 29724: 29724: double 29724: p() const 29724: { return _M_p; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_p == __p2._M_p; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize() 29724: { _M_log_1_p = std::log(1.0 - _M_p); } 29724: 29724: double _M_p; 29724: 29724: double _M_log_1_p; 29724: }; 29724: 29724: 29724: 29724: geometric_distribution() : geometric_distribution(0.5) { } 29724: 29724: explicit 29724: geometric_distribution(double __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: explicit 29724: geometric_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset() { } 29724: 29724: 29724: 29724: 29724: double 29724: p() const 29724: { return _M_param.p(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return 0; } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const geometric_distribution& __d1, 29724: const geometric_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::geometric_distribution<_IntType>& __d1, 29724: const std::geometric_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 4383 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::geometric_distribution<_IntType>& __x); 29724: # 4398 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::geometric_distribution<_IntType>& __x); 29724: # 4415 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class negative_binomial_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "result_type must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef negative_binomial_distribution<_IntType> distribution_type; 29724: 29724: param_type() : param_type(1) { } 29724: 29724: explicit 29724: param_type(_IntType __k, double __p = 0.5) 29724: : _M_k(__k), _M_p(__p) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool((_M_k > 0) && (_M_p > 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: _IntType 29724: k() const 29724: { return _M_k; } 29724: 29724: double 29724: p() const 29724: { return _M_p; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_k == __p2._M_k && __p1._M_p == __p2._M_p; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _IntType _M_k; 29724: double _M_p; 29724: }; 29724: 29724: negative_binomial_distribution() : negative_binomial_distribution(1) { } 29724: 29724: explicit 29724: negative_binomial_distribution(_IntType __k, double __p = 0.5) 29724: : _M_param(__k, __p), _M_gd(__k, (1.0 - __p) / __p) 29724: { } 29724: 29724: explicit 29724: negative_binomial_distribution(const param_type& __p) 29724: : _M_param(__p), _M_gd(__p.k(), (1.0 - __p.p()) / __p.p()) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_gd.reset(); } 29724: 29724: 29724: 29724: 29724: _IntType 29724: k() const 29724: { return _M_param.k(); } 29724: 29724: 29724: 29724: 29724: double 29724: p() const 29724: { return _M_param.p(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng); 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate_impl(__f, __t, __urng); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const negative_binomial_distribution& __d1, 29724: const negative_binomial_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 29724: # 4585 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::negative_binomial_distribution<_IntType1>& __x); 29724: # 4600 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::negative_binomial_distribution<_IntType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng); 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: std::gamma_distribution _M_gd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::negative_binomial_distribution<_IntType>& __d1, 29724: const std::negative_binomial_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 4652 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class poisson_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "result_type must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef poisson_distribution<_IntType> distribution_type; 29724: friend class poisson_distribution<_IntType>; 29724: 29724: param_type() : param_type(1.0) { } 29724: 29724: explicit 29724: param_type(double __mean) 29724: : _M_mean(__mean) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_mean > 0.0)) std::__glibcxx_assert_fail(); } while (false); 29724: _M_initialize(); 29724: } 29724: 29724: double 29724: mean() const 29724: { return _M_mean; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_mean == __p2._M_mean; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: 29724: void 29724: _M_initialize(); 29724: 29724: double _M_mean; 29724: 29724: double _M_lm_thr; 29724: 29724: double _M_lfm, _M_sm, _M_d, _M_scx, _M_1cx, _M_c2b, _M_cb; 29724: 29724: }; 29724: 29724: 29724: 29724: poisson_distribution() : poisson_distribution(1.0) { } 29724: 29724: explicit 29724: poisson_distribution(double __mean) 29724: : _M_param(__mean), _M_nd() 29724: { } 29724: 29724: explicit 29724: poisson_distribution(const param_type& __p) 29724: : _M_param(__p), _M_nd() 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { _M_nd.reset(); } 29724: 29724: 29724: 29724: 29724: double 29724: mean() const 29724: { return _M_param.mean(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return 0; } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const poisson_distribution& __d1, 29724: const poisson_distribution& __d2) 29724: 29724: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 29724: # 4821 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::poisson_distribution<_IntType1>& __x); 29724: # 4836 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::poisson_distribution<_IntType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: 29724: 29724: std::normal_distribution _M_nd; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::poisson_distribution<_IntType>& __d1, 29724: const std::poisson_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 4884 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class exponential_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef exponential_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(1.0) { } 29724: 29724: explicit 29724: param_type(_RealType __lambda) 29724: : _M_lambda(__lambda) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(_M_lambda > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29724: } 29724: 29724: _RealType 29724: lambda() const 29724: { return _M_lambda; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_lambda == __p2._M_lambda; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_lambda; 29724: }; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: exponential_distribution() : exponential_distribution(1.0) { } 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: exponential_distribution(_RealType __lambda) 29724: : _M_param(__lambda) 29724: { } 29724: 29724: explicit 29724: exponential_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: reset() { } 29724: 29724: 29724: 29724: 29724: _RealType 29724: lambda() const 29724: { return _M_param.lambda(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: return -std::log(result_type(1) - __aurng()) / __p.lambda(); 29724: } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const exponential_distribution& __d1, 29724: const exponential_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::exponential_distribution<_RealType>& __d1, 29724: const std::exponential_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 5073 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::exponential_distribution<_RealType>& __x); 29724: # 5088 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::exponential_distribution<_RealType>& __x); 29724: # 5106 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class weibull_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef weibull_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(1.0) { } 29724: 29724: explicit 29724: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 29724: : _M_a(__a), _M_b(__b) 29724: { } 29724: 29724: _RealType 29724: a() const 29724: { return _M_a; } 29724: 29724: _RealType 29724: b() const 29724: { return _M_b; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_a; 29724: _RealType _M_b; 29724: }; 29724: 29724: weibull_distribution() : weibull_distribution(1.0) { } 29724: 29724: explicit 29724: weibull_distribution(_RealType __a, _RealType __b = _RealType(1)) 29724: : _M_param(__a, __b) 29724: { } 29724: 29724: explicit 29724: weibull_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: _RealType 29724: a() const 29724: { return _M_param.a(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: b() const 29724: { return _M_param.b(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const weibull_distribution& __d1, 29724: const weibull_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::weibull_distribution<_RealType>& __d1, 29724: const std::weibull_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 5290 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::weibull_distribution<_RealType>& __x); 29724: # 5305 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::weibull_distribution<_RealType>& __x); 29724: # 5323 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class extreme_value_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef extreme_value_distribution<_RealType> distribution_type; 29724: 29724: param_type() : param_type(0.0) { } 29724: 29724: explicit 29724: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 29724: : _M_a(__a), _M_b(__b) 29724: { } 29724: 29724: _RealType 29724: a() const 29724: { return _M_a; } 29724: 29724: _RealType 29724: b() const 29724: { return _M_b; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: _RealType _M_a; 29724: _RealType _M_b; 29724: }; 29724: 29724: extreme_value_distribution() : extreme_value_distribution(0.0) { } 29724: 29724: explicit 29724: extreme_value_distribution(_RealType __a, _RealType __b = _RealType(1)) 29724: : _M_param(__a, __b) 29724: { } 29724: 29724: explicit 29724: extreme_value_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: _RealType 29724: a() const 29724: { return _M_param.a(); } 29724: 29724: 29724: 29724: 29724: _RealType 29724: b() const 29724: { return _M_param.b(); } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return std::numeric_limits::lowest(); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { return std::numeric_limits::max(); } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const extreme_value_distribution& __d1, 29724: const extreme_value_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::extreme_value_distribution<_RealType>& __d1, 29724: const std::extreme_value_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 5507 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::extreme_value_distribution<_RealType>& __x); 29724: # 5522 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::extreme_value_distribution<_RealType>& __x); 29724: # 5545 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class discrete_distribution 29724: { 29724: static_assert(std::is_integral<_IntType>::value, 29724: "result_type must be an integral type"); 29724: 29724: public: 29724: 29724: typedef _IntType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef discrete_distribution<_IntType> distribution_type; 29724: friend class discrete_distribution<_IntType>; 29724: 29724: param_type() 29724: : _M_prob(), _M_cp() 29724: { } 29724: 29724: template 29724: param_type(_InputIterator __wbegin, 29724: _InputIterator __wend) 29724: : _M_prob(__wbegin, __wend), _M_cp() 29724: { _M_initialize(); } 29724: 29724: param_type(initializer_list __wil) 29724: : _M_prob(__wil.begin(), __wil.end()), _M_cp() 29724: { _M_initialize(); } 29724: 29724: template 29724: param_type(size_t __nw, double __xmin, double __xmax, 29724: _Func __fw); 29724: 29724: 29724: param_type(const param_type&) = default; 29724: param_type& operator=(const param_type&) = default; 29724: 29724: std::vector 29724: probabilities() const 29724: { return _M_prob.empty() ? std::vector(1, 1.0) : _M_prob; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_prob == __p2._M_prob; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize(); 29724: 29724: std::vector _M_prob; 29724: std::vector _M_cp; 29724: }; 29724: 29724: discrete_distribution() 29724: : _M_param() 29724: { } 29724: 29724: template 29724: discrete_distribution(_InputIterator __wbegin, 29724: _InputIterator __wend) 29724: : _M_param(__wbegin, __wend) 29724: { } 29724: 29724: discrete_distribution(initializer_list __wl) 29724: : _M_param(__wl) 29724: { } 29724: 29724: template 29724: discrete_distribution(size_t __nw, double __xmin, double __xmax, 29724: _Func __fw) 29724: : _M_param(__nw, __xmin, __xmax, __fw) 29724: { } 29724: 29724: explicit 29724: discrete_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: std::vector 29724: probabilities() const 29724: { 29724: return _M_param._M_prob.empty() 29724: ? std::vector(1, 1.0) : _M_param._M_prob; 29724: } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { return result_type(0); } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { 29724: return _M_param._M_prob.empty() 29724: ? result_type(0) : result_type(_M_param._M_prob.size() - 1); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const discrete_distribution& __d1, 29724: const discrete_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: # 5733 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::discrete_distribution<_IntType1>& __x); 29724: # 5749 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::discrete_distribution<_IntType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::discrete_distribution<_IntType>& __d1, 29724: const std::discrete_distribution<_IntType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 5793 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class piecewise_constant_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef piecewise_constant_distribution<_RealType> distribution_type; 29724: friend class piecewise_constant_distribution<_RealType>; 29724: 29724: param_type() 29724: : _M_int(), _M_den(), _M_cp() 29724: { } 29724: 29724: template 29724: param_type(_InputIteratorB __bfirst, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin); 29724: 29724: template 29724: param_type(initializer_list<_RealType> __bi, _Func __fw); 29724: 29724: template 29724: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 29724: _Func __fw); 29724: 29724: 29724: param_type(const param_type&) = default; 29724: param_type& operator=(const param_type&) = default; 29724: 29724: std::vector<_RealType> 29724: intervals() const 29724: { 29724: if (_M_int.empty()) 29724: { 29724: std::vector<_RealType> __tmp(2); 29724: __tmp[1] = _RealType(1); 29724: return __tmp; 29724: } 29724: else 29724: return _M_int; 29724: } 29724: 29724: std::vector 29724: densities() const 29724: { return _M_den.empty() ? std::vector(1, 1.0) : _M_den; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize(); 29724: 29724: std::vector<_RealType> _M_int; 29724: std::vector _M_den; 29724: std::vector _M_cp; 29724: }; 29724: 29724: piecewise_constant_distribution() 29724: : _M_param() 29724: { } 29724: 29724: template 29724: piecewise_constant_distribution(_InputIteratorB __bfirst, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin) 29724: : _M_param(__bfirst, __bend, __wbegin) 29724: { } 29724: 29724: template 29724: piecewise_constant_distribution(initializer_list<_RealType> __bl, 29724: _Func __fw) 29724: : _M_param(__bl, __fw) 29724: { } 29724: 29724: template 29724: piecewise_constant_distribution(size_t __nw, 29724: _RealType __xmin, _RealType __xmax, 29724: _Func __fw) 29724: : _M_param(__nw, __xmin, __xmax, __fw) 29724: { } 29724: 29724: explicit 29724: piecewise_constant_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: std::vector<_RealType> 29724: intervals() const 29724: { 29724: if (_M_param._M_int.empty()) 29724: { 29724: std::vector<_RealType> __tmp(2); 29724: __tmp[1] = _RealType(1); 29724: return __tmp; 29724: } 29724: else 29724: return _M_param._M_int; 29724: } 29724: 29724: 29724: 29724: 29724: std::vector 29724: densities() const 29724: { 29724: return _M_param._M_den.empty() 29724: ? std::vector(1, 1.0) : _M_param._M_den; 29724: } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { 29724: return _M_param._M_int.empty() 29724: ? result_type(0) : _M_param._M_int.front(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { 29724: return _M_param._M_int.empty() 29724: ? result_type(1) : _M_param._M_int.back(); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const piecewise_constant_distribution& __d1, 29724: const piecewise_constant_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: # 6017 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::piecewise_constant_distribution<_RealType1>& __x); 29724: # 6033 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::piecewise_constant_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::piecewise_constant_distribution<_RealType>& __d1, 29724: const std::piecewise_constant_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 6073 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: class piecewise_linear_distribution 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "result_type must be a floating point type"); 29724: 29724: public: 29724: 29724: typedef _RealType result_type; 29724: 29724: 29724: struct param_type 29724: { 29724: typedef piecewise_linear_distribution<_RealType> distribution_type; 29724: friend class piecewise_linear_distribution<_RealType>; 29724: 29724: param_type() 29724: : _M_int(), _M_den(), _M_cp(), _M_m() 29724: { } 29724: 29724: template 29724: param_type(_InputIteratorB __bfirst, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin); 29724: 29724: template 29724: param_type(initializer_list<_RealType> __bl, _Func __fw); 29724: 29724: template 29724: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 29724: _Func __fw); 29724: 29724: 29724: param_type(const param_type&) = default; 29724: param_type& operator=(const param_type&) = default; 29724: 29724: std::vector<_RealType> 29724: intervals() const 29724: { 29724: if (_M_int.empty()) 29724: { 29724: std::vector<_RealType> __tmp(2); 29724: __tmp[1] = _RealType(1); 29724: return __tmp; 29724: } 29724: else 29724: return _M_int; 29724: } 29724: 29724: std::vector 29724: densities() const 29724: { return _M_den.empty() ? std::vector(2, 1.0) : _M_den; } 29724: 29724: friend bool 29724: operator==(const param_type& __p1, const param_type& __p2) 29724: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 29724: 29724: 29724: friend bool 29724: operator!=(const param_type& __p1, const param_type& __p2) 29724: { return !(__p1 == __p2); } 29724: 29724: 29724: private: 29724: void 29724: _M_initialize(); 29724: 29724: std::vector<_RealType> _M_int; 29724: std::vector _M_den; 29724: std::vector _M_cp; 29724: std::vector _M_m; 29724: }; 29724: 29724: piecewise_linear_distribution() 29724: : _M_param() 29724: { } 29724: 29724: template 29724: piecewise_linear_distribution(_InputIteratorB __bfirst, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin) 29724: : _M_param(__bfirst, __bend, __wbegin) 29724: { } 29724: 29724: template 29724: piecewise_linear_distribution(initializer_list<_RealType> __bl, 29724: _Func __fw) 29724: : _M_param(__bl, __fw) 29724: { } 29724: 29724: template 29724: piecewise_linear_distribution(size_t __nw, 29724: _RealType __xmin, _RealType __xmax, 29724: _Func __fw) 29724: : _M_param(__nw, __xmin, __xmax, __fw) 29724: { } 29724: 29724: explicit 29724: piecewise_linear_distribution(const param_type& __p) 29724: : _M_param(__p) 29724: { } 29724: 29724: 29724: 29724: 29724: void 29724: reset() 29724: { } 29724: 29724: 29724: 29724: 29724: std::vector<_RealType> 29724: intervals() const 29724: { 29724: if (_M_param._M_int.empty()) 29724: { 29724: std::vector<_RealType> __tmp(2); 29724: __tmp[1] = _RealType(1); 29724: return __tmp; 29724: } 29724: else 29724: return _M_param._M_int; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: std::vector 29724: densities() const 29724: { 29724: return _M_param._M_den.empty() 29724: ? std::vector(2, 1.0) : _M_param._M_den; 29724: } 29724: 29724: 29724: 29724: 29724: param_type 29724: param() const 29724: { return _M_param; } 29724: 29724: 29724: 29724: 29724: 29724: void 29724: param(const param_type& __param) 29724: { _M_param = __param; } 29724: 29724: 29724: 29724: 29724: result_type 29724: min() const 29724: { 29724: return _M_param._M_int.empty() 29724: ? result_type(0) : _M_param._M_int.front(); 29724: } 29724: 29724: 29724: 29724: 29724: result_type 29724: max() const 29724: { 29724: return _M_param._M_int.empty() 29724: ? result_type(1) : _M_param._M_int.back(); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { return this->operator()(__urng, _M_param); } 29724: 29724: template 29724: result_type 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { this->__generate(__f, __t, __urng, _M_param); } 29724: 29724: template 29724: void 29724: __generate(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: template 29724: void 29724: __generate(result_type* __f, result_type* __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { this->__generate_impl(__f, __t, __urng, __p); } 29724: 29724: 29724: 29724: 29724: 29724: friend bool 29724: operator==(const piecewise_linear_distribution& __d1, 29724: const piecewise_linear_distribution& __d2) 29724: { return __d1._M_param == __d2._M_param; } 29724: # 6299 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const std::piecewise_linear_distribution<_RealType1>& __x); 29724: # 6315 "/usr/include/c++/14/bits/random.h" 3 29724: template 29724: friend std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: std::piecewise_linear_distribution<_RealType1>& __x); 29724: 29724: private: 29724: template 29724: void 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p); 29724: 29724: param_type _M_param; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const std::piecewise_linear_distribution<_RealType>& __d1, 29724: const std::piecewise_linear_distribution<_RealType>& __d2) 29724: { return !(__d1 == __d2); } 29724: # 6360 "/usr/include/c++/14/bits/random.h" 3 29724: class seed_seq 29724: { 29724: public: 29724: 29724: typedef uint_least32_t result_type; 29724: 29724: 29724: seed_seq() noexcept 29724: : _M_v() 29724: { } 29724: 29724: template>> 29724: seed_seq(std::initializer_list<_IntType> __il); 29724: 29724: template 29724: seed_seq(_InputIterator __begin, _InputIterator __end); 29724: 29724: 29724: template 29724: void 29724: generate(_RandomAccessIterator __begin, _RandomAccessIterator __end); 29724: 29724: 29724: size_t size() const noexcept 29724: { return _M_v.size(); } 29724: 29724: template 29724: void 29724: param(_OutputIterator __dest) const 29724: { std::copy(_M_v.begin(), _M_v.end(), __dest); } 29724: 29724: 29724: seed_seq(const seed_seq&) = delete; 29724: seed_seq& operator=(const seed_seq&) = delete; 29724: 29724: private: 29724: std::vector _M_v; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 49 "/usr/include/c++/14/random" 2 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 1 3 29724: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 29724: 29724: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 29724: # 50 "/usr/include/c++/14/random" 2 3 29724: # 1 "/usr/include/c++/14/bits/random.tcc" 1 3 29724: # 33 "/usr/include/c++/14/bits/random.tcc" 3 29724: # 1 "/usr/include/c++/14/numeric" 1 3 29724: # 58 "/usr/include/c++/14/numeric" 3 29724: 29724: # 59 "/usr/include/c++/14/numeric" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_numeric.h" 1 3 29724: # 64 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 85 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: void 29724: iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: { 29724: *__first = __value; 29724: ++__value; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: # 131 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: inline _Tp 29724: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init) 29724: { 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: __init = __init + *__first; 29724: return __init; 29724: } 29724: # 158 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: inline _Tp 29724: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, 29724: _BinaryOperation __binary_op) 29724: { 29724: 29724: 29724: ; 29724: 29724: for (; __first != __last; ++__first) 29724: __init = __binary_op(__init, *__first); 29724: return __init; 29724: } 29724: # 187 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: inline _Tp 29724: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _Tp __init) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2) 29724: __init = __init + (*__first1 * *__first2); 29724: return __init; 29724: } 29724: # 219 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: inline _Tp 29724: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _Tp __init, 29724: _BinaryOperation1 __binary_op1, 29724: _BinaryOperation2 __binary_op2) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: for (; __first1 != __last1; ++__first1, (void)++__first2) 29724: __init = __binary_op1(__init, 29724: __binary_op2(*__first1, *__first2)); 29724: return __init; 29724: } 29724: # 253 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: _OutputIterator 29724: partial_sum(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: _ValueType __value = *__first; 29724: *__result = __value; 29724: while (++__first != __last) 29724: { 29724: __value = __value + *__first; 29724: *++__result = __value; 29724: } 29724: return ++__result; 29724: } 29724: # 294 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: _OutputIterator 29724: partial_sum(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _BinaryOperation __binary_op) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: _ValueType __value = *__first; 29724: *__result = __value; 29724: while (++__first != __last) 29724: { 29724: __value = __binary_op(__value, *__first); 29724: *++__result = __value; 29724: } 29724: return ++__result; 29724: } 29724: # 334 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: _OutputIterator 29724: adjacent_difference(_InputIterator __first, 29724: _InputIterator __last, _OutputIterator __result) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: _ValueType __value = *__first; 29724: *__result = __value; 29724: while (++__first != __last) 29724: { 29724: _ValueType __tmp = *__first; 29724: *++__result = __tmp - __value; 29724: __value = std::move(__tmp); 29724: } 29724: return ++__result; 29724: } 29724: # 376 "/usr/include/c++/14/bits/stl_numeric.h" 3 29724: template 29724: 29724: _OutputIterator 29724: adjacent_difference(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _BinaryOperation __binary_op) 29724: { 29724: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29724: 29724: 29724: 29724: 29724: 29724: ; 29724: 29724: if (__first == __last) 29724: return __result; 29724: _ValueType __value = *__first; 29724: *__result = __value; 29724: while (++__first != __last) 29724: { 29724: _ValueType __tmp = *__first; 29724: *++__result = __binary_op(__tmp, __value); 29724: __value = std::move(__tmp); 29724: } 29724: return ++__result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 63 "/usr/include/c++/14/numeric" 2 3 29724: # 90 "/usr/include/c++/14/numeric" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 91 "/usr/include/c++/14/numeric" 2 3 29724: # 104 "/usr/include/c++/14/numeric" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: template 29724: constexpr _Res 29724: __abs_r(_Tp __val) 29724: { 29724: static_assert(sizeof(_Res) >= sizeof(_Tp), 29724: "result type must be at least as wide as the input type"); 29724: 29724: if (__val >= 0) 29724: return __val; 29724: 29724: 29724: 29724: 29724: return -static_cast<_Res>(__val); 29724: } 29724: 29724: template void __abs_r(bool) = delete; 29724: 29724: 29724: template 29724: constexpr _Tp 29724: __gcd(_Tp __m, _Tp __n) 29724: { 29724: static_assert(is_unsigned<_Tp>::value, "type must be unsigned"); 29724: 29724: if (__m == 0) 29724: return __n; 29724: if (__n == 0) 29724: return __m; 29724: 29724: const int __i = std::__countr_zero(__m); 29724: __m >>= __i; 29724: const int __j = std::__countr_zero(__n); 29724: __n >>= __j; 29724: const int __k = __i < __j ? __i : __j; 29724: 29724: while (true) 29724: { 29724: if (__m > __n) 29724: { 29724: _Tp __tmp = __m; 29724: __m = __n; 29724: __n = __tmp; 29724: } 29724: 29724: __n -= __m; 29724: 29724: if (__n == 0) 29724: return __m << __k; 29724: 29724: __n >>= std::__countr_zero(__n); 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: constexpr common_type_t<_Mn, _Nn> 29724: gcd(_Mn __m, _Nn __n) noexcept 29724: { 29724: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 29724: "std::gcd arguments must be integers"); 29724: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 29724: "std::gcd arguments must not be bool"); 29724: using _Ct = common_type_t<_Mn, _Nn>; 29724: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 29724: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 29724: return __detail::__gcd>(__m2, __n2); 29724: } 29724: 29724: 29724: template 29724: constexpr common_type_t<_Mn, _Nn> 29724: lcm(_Mn __m, _Nn __n) noexcept 29724: { 29724: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 29724: "std::lcm arguments must be integers"); 29724: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 29724: "std::lcm arguments must not be bool"); 29724: using _Ct = common_type_t<_Mn, _Nn>; 29724: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 29724: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 29724: if (__m2 == 0 || __n2 == 0) 29724: return 0; 29724: _Ct __r = __m2 / __detail::__gcd>(__m2, __n2); 29724: 29724: if constexpr (is_signed_v<_Ct>) 29724: if (__is_constant_evaluated()) 29724: return __r * __n2; 29724: 29724: bool __overflow = __builtin_mul_overflow(__r, __n2, &__r); 29724: do { if (std::__is_constant_evaluated() && !bool(!__overflow)) std::__glibcxx_assert_fail(); } while (false); 29724: return __r; 29724: } 29724: # 284 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _Tp 29724: reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 29724: _BinaryOperation __binary_op) 29724: { 29724: using __ref = typename iterator_traits<_InputIterator>::reference; 29724: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, __ref>); 29724: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, _Tp&>); 29724: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, _Tp&>); 29724: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, __ref>); 29724: if constexpr (__is_random_access_iter<_InputIterator>::value) 29724: { 29724: while ((__last - __first) >= 4) 29724: { 29724: _Tp __v1 = __binary_op(__first[0], __first[1]); 29724: _Tp __v2 = __binary_op(__first[2], __first[3]); 29724: _Tp __v3 = __binary_op(__v1, __v2); 29724: __init = __binary_op(__init, __v3); 29724: __first += 4; 29724: } 29724: } 29724: for (; __first != __last; ++__first) 29724: __init = __binary_op(__init, *__first); 29724: return __init; 29724: } 29724: # 322 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: inline _Tp 29724: reduce(_InputIterator __first, _InputIterator __last, _Tp __init) 29724: { return std::reduce(__first, __last, std::move(__init), plus<>()); } 29724: # 339 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: inline typename iterator_traits<_InputIterator>::value_type 29724: reduce(_InputIterator __first, _InputIterator __last) 29724: { 29724: using value_type = typename iterator_traits<_InputIterator>::value_type; 29724: return std::reduce(__first, __last, value_type{}, plus<>()); 29724: } 29724: # 366 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _Tp 29724: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _Tp __init, 29724: _BinaryOperation1 __binary_op1, 29724: _BinaryOperation2 __binary_op2) 29724: { 29724: if constexpr (__and_v<__is_random_access_iter<_InputIterator1>, 29724: __is_random_access_iter<_InputIterator2>>) 29724: { 29724: while ((__last1 - __first1) >= 4) 29724: { 29724: _Tp __v1 = __binary_op1(__binary_op2(__first1[0], __first2[0]), 29724: __binary_op2(__first1[1], __first2[1])); 29724: _Tp __v2 = __binary_op1(__binary_op2(__first1[2], __first2[2]), 29724: __binary_op2(__first1[3], __first2[3])); 29724: _Tp __v3 = __binary_op1(__v1, __v2); 29724: __init = __binary_op1(__init, __v3); 29724: __first1 += 4; 29724: __first2 += 4; 29724: } 29724: } 29724: for (; __first1 != __last1; ++__first1, (void) ++__first2) 29724: __init = __binary_op1(__init, __binary_op2(*__first1, *__first2)); 29724: return __init; 29724: } 29724: # 410 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: inline _Tp 29724: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 29724: _InputIterator2 __first2, _Tp __init) 29724: { 29724: return std::transform_reduce(__first1, __last1, __first2, 29724: std::move(__init), 29724: plus<>(), multiplies<>()); 29724: } 29724: # 435 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _Tp 29724: transform_reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 29724: _BinaryOperation __binary_op, _UnaryOperation __unary_op) 29724: { 29724: if constexpr (__is_random_access_iter<_InputIterator>::value) 29724: { 29724: while ((__last - __first) >= 4) 29724: { 29724: _Tp __v1 = __binary_op(__unary_op(__first[0]), 29724: __unary_op(__first[1])); 29724: _Tp __v2 = __binary_op(__unary_op(__first[2]), 29724: __unary_op(__first[3])); 29724: _Tp __v3 = __binary_op(__v1, __v2); 29724: __init = __binary_op(__init, __v3); 29724: __first += 4; 29724: } 29724: } 29724: for (; __first != __last; ++__first) 29724: __init = __binary_op(__init, __unary_op(*__first)); 29724: return __init; 29724: } 29724: # 478 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: exclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Tp __init, 29724: _BinaryOperation __binary_op) 29724: { 29724: while (__first != __last) 29724: { 29724: _Tp __v = std::move(__init); 29724: __init = __binary_op(__v, *__first); 29724: ++__first; 29724: *__result++ = std::move(__v); 29724: } 29724: return __result; 29724: } 29724: # 513 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: inline _OutputIterator 29724: exclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Tp __init) 29724: { 29724: return std::exclusive_scan(__first, __last, __result, std::move(__init), 29724: plus<>()); 29724: } 29724: # 541 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: inclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _BinaryOperation __binary_op, 29724: _Tp __init) 29724: { 29724: for (; __first != __last; ++__first) 29724: *__result++ = __init = __binary_op(__init, *__first); 29724: return __result; 29724: } 29724: # 570 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: inclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _BinaryOperation __binary_op) 29724: { 29724: if (__first != __last) 29724: { 29724: auto __init = *__first; 29724: *__result++ = __init; 29724: ++__first; 29724: if (__first != __last) 29724: __result = std::inclusive_scan(__first, __last, __result, 29724: __binary_op, std::move(__init)); 29724: } 29724: return __result; 29724: } 29724: # 604 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: inline _OutputIterator 29724: inclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result) 29724: { return std::inclusive_scan(__first, __last, __result, plus<>()); } 29724: # 631 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: transform_exclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, _Tp __init, 29724: _BinaryOperation __binary_op, 29724: _UnaryOperation __unary_op) 29724: { 29724: while (__first != __last) 29724: { 29724: auto __v = __init; 29724: __init = __binary_op(__init, __unary_op(*__first)); 29724: ++__first; 29724: *__result++ = std::move(__v); 29724: } 29724: return __result; 29724: } 29724: # 670 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: _BinaryOperation __binary_op, 29724: _UnaryOperation __unary_op, 29724: _Tp __init) 29724: { 29724: for (; __first != __last; ++__first) 29724: *__result++ = __init = __binary_op(__init, __unary_op(*__first)); 29724: return __result; 29724: } 29724: # 704 "/usr/include/c++/14/numeric" 3 29724: template 29724: 29724: _OutputIterator 29724: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, 29724: _BinaryOperation __binary_op, 29724: _UnaryOperation __unary_op) 29724: { 29724: if (__first != __last) 29724: { 29724: auto __init = __unary_op(*__first); 29724: *__result++ = __init; 29724: ++__first; 29724: if (__first != __last) 29724: __result = std::transform_inclusive_scan(__first, __last, __result, 29724: __binary_op, __unary_op, 29724: std::move(__init)); 29724: } 29724: return __result; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 739 "/usr/include/c++/14/numeric" 3 29724: # 1 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 1 3 29724: # 15 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 3 29724: namespace std 29724: { 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29724: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 29724: _BinaryOperation __binary_op); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29724: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29724: typename iterator_traits<_ForwardIterator>::value_type> 29724: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29724: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _Tp __init); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29724: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29724: _ForwardIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, 29724: _BinaryOperation2 __binary_op2); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29724: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 29724: _BinaryOperation __binary_op, _UnaryOperation __unary_op); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _Tp __init); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _BinaryOperation __binary_op); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: transform_exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, 29724: _UnaryOperation __unary_op); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, 29724: _Tp __init); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op); 29724: 29724: 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __d_first, _BinaryOperation __op); 29724: 29724: template 29724: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29724: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29724: _ForwardIterator2 __d_first); 29724: 29724: } 29724: # 740 "/usr/include/c++/14/numeric" 2 3 29724: # 34 "/usr/include/c++/14/bits/random.tcc" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _Tp 29724: _Mod<_Tp, __m, __a, __c, false, true>:: 29724: __calc(_Tp __x) 29724: { 29724: if (__a == 1) 29724: __x %= __m; 29724: else 29724: { 29724: static const _Tp __q = __m / __a; 29724: static const _Tp __r = __m % __a; 29724: 29724: _Tp __t1 = __a * (__x % __q); 29724: _Tp __t2 = __r * (__x / __q); 29724: if (__t1 >= __t2) 29724: __x = __t1 - __t2; 29724: else 29724: __x = __m - __t2 + __t1; 29724: } 29724: 29724: if (__c != 0) 29724: { 29724: const _Tp __d = __m - __x; 29724: if (__d > __c) 29724: __x += __c; 29724: else 29724: __x = __c - __d; 29724: } 29724: return __x; 29724: } 29724: 29724: template 29724: _OutputIterator 29724: __normalize(_InputIterator __first, _InputIterator __last, 29724: _OutputIterator __result, const _Tp& __factor) 29724: { 29724: for (; __first != __last; ++__first, ++__result) 29724: *__result = *__first / __factor; 29724: return __result; 29724: } 29724: 29724: } 29724: # 116 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: void 29724: linear_congruential_engine<_UIntType, __a, __c, __m>:: 29724: seed(result_type __s) 29724: { 29724: if ((__detail::__mod<_UIntType, __m>(__c) == 0) 29724: && (__detail::__mod<_UIntType, __m>(__s) == 0)) 29724: _M_x = 1; 29724: else 29724: _M_x = __detail::__mod<_UIntType, __m>(__s); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: template 29724: auto 29724: linear_congruential_engine<_UIntType, __a, __c, __m>:: 29724: seed(_Sseq& __q) 29724: -> _If_seed_seq<_Sseq> 29724: { 29724: const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits 29724: : std::__lg(__m); 29724: const _UIntType __k = (__k0 + 31) / 32; 29724: uint_least32_t __arr[__k + 3]; 29724: __q.generate(__arr + 0, __arr + __k + 3); 29724: _UIntType __factor = 1u; 29724: _UIntType __sum = 0u; 29724: for (size_t __j = 0; __j < __k; ++__j) 29724: { 29724: __sum += __arr[__j + 3] * __factor; 29724: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29724: } 29724: seed(__sum); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const linear_congruential_engine<_UIntType, 29724: __a, __c, __m>& __lcr) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29724: __os.fill(__os.widen(' ')); 29724: 29724: __os << __lcr._M_x; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: linear_congruential_engine<_UIntType, __a, __c, __m>& __lcr) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec); 29724: 29724: __is >> __lcr._M_x; 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: # 320 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: void 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>:: 29724: seed(result_type __sd) 29724: { 29724: _M_x[0] = __detail::__mod<_UIntType, 29724: __detail::_Shift<_UIntType, __w>::__value>(__sd); 29724: 29724: for (size_t __i = 1; __i < state_size; ++__i) 29724: { 29724: _UIntType __x = _M_x[__i - 1]; 29724: __x ^= __x >> (__w - 2); 29724: __x *= __f; 29724: __x += __detail::__mod<_UIntType, __n>(__i); 29724: _M_x[__i] = __detail::__mod<_UIntType, 29724: __detail::_Shift<_UIntType, __w>::__value>(__x); 29724: } 29724: _M_p = state_size; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>:: 29724: seed(_Sseq& __q) 29724: -> _If_seed_seq<_Sseq> 29724: { 29724: const _UIntType __upper_mask = (~_UIntType()) << __r; 29724: const size_t __k = (__w + 31) / 32; 29724: uint_least32_t __arr[__n * __k]; 29724: __q.generate(__arr + 0, __arr + __n * __k); 29724: 29724: bool __zero = true; 29724: for (size_t __i = 0; __i < state_size; ++__i) 29724: { 29724: _UIntType __factor = 1u; 29724: _UIntType __sum = 0u; 29724: for (size_t __j = 0; __j < __k; ++__j) 29724: { 29724: __sum += __arr[__k * __i + __j] * __factor; 29724: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29724: } 29724: _M_x[__i] = __detail::__mod<_UIntType, 29724: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29724: 29724: if (__zero) 29724: { 29724: if (__i == 0) 29724: { 29724: if ((_M_x[0] & __upper_mask) != 0u) 29724: __zero = false; 29724: } 29724: else if (_M_x[__i] != 0u) 29724: __zero = false; 29724: } 29724: } 29724: if (__zero) 29724: _M_x[0] = __detail::_Shift<_UIntType, __w - 1>::__value; 29724: _M_p = state_size; 29724: } 29724: 29724: template 29724: void 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>:: 29724: _M_gen_rand(void) 29724: { 29724: const _UIntType __upper_mask = (~_UIntType()) << __r; 29724: const _UIntType __lower_mask = ~__upper_mask; 29724: 29724: for (size_t __k = 0; __k < (__n - __m); ++__k) 29724: { 29724: _UIntType __y = ((_M_x[__k] & __upper_mask) 29724: | (_M_x[__k + 1] & __lower_mask)); 29724: _M_x[__k] = (_M_x[__k + __m] ^ (__y >> 1) 29724: ^ ((__y & 0x01) ? __a : 0)); 29724: } 29724: 29724: for (size_t __k = (__n - __m); __k < (__n - 1); ++__k) 29724: { 29724: _UIntType __y = ((_M_x[__k] & __upper_mask) 29724: | (_M_x[__k + 1] & __lower_mask)); 29724: _M_x[__k] = (_M_x[__k + (__m - __n)] ^ (__y >> 1) 29724: ^ ((__y & 0x01) ? __a : 0)); 29724: } 29724: 29724: _UIntType __y = ((_M_x[__n - 1] & __upper_mask) 29724: | (_M_x[0] & __lower_mask)); 29724: _M_x[__n - 1] = (_M_x[__m - 1] ^ (__y >> 1) 29724: ^ ((__y & 0x01) ? __a : 0)); 29724: _M_p = 0; 29724: } 29724: 29724: template 29724: void 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>:: 29724: discard(unsigned long long __z) 29724: { 29724: while (__z > state_size - _M_p) 29724: { 29724: __z -= state_size - _M_p; 29724: _M_gen_rand(); 29724: } 29724: _M_p += __z; 29724: } 29724: 29724: template 29724: typename 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>::result_type 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29724: __s, __b, __t, __c, __l, __f>:: 29724: operator()() 29724: { 29724: 29724: if (_M_p >= state_size) 29724: _M_gen_rand(); 29724: 29724: 29724: result_type __z = _M_x[_M_p++]; 29724: __z ^= (__z >> __u) & __d; 29724: __z ^= (__z << __s) & __b; 29724: __z ^= (__z << __t) & __c; 29724: __z ^= (__z >> __l); 29724: 29724: return __z; 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const mersenne_twister_engine<_UIntType, __w, __n, __m, 29724: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29724: __os.fill(__space); 29724: 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: __os << __x._M_x[__i] << __space; 29724: __os << __x._M_p; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: mersenne_twister_engine<_UIntType, __w, __n, __m, 29724: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: for (size_t __i = 0; __i < __n; ++__i) 29724: __is >> __x._M_x[__i]; 29724: __is >> __x._M_p; 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: # 539 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: void 29724: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29724: seed(result_type __value) 29724: { 29724: 29724: 29724: 29724: std::linear_congruential_engine 29724: __lcg(__value == 0u ? default_seed : __value % 2147483563u); 29724: 29724: const size_t __n = (__w + 31) / 32; 29724: 29724: for (size_t __i = 0; __i < long_lag; ++__i) 29724: { 29724: _UIntType __sum = 0u; 29724: _UIntType __factor = 1u; 29724: for (size_t __j = 0; __j < __n; ++__j) 29724: { 29724: __sum += __detail::__mod::__value> 29724: (__lcg()) * __factor; 29724: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29724: } 29724: _M_x[__i] = __detail::__mod<_UIntType, 29724: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29724: } 29724: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 29724: _M_p = 0; 29724: } 29724: 29724: template 29724: template 29724: auto 29724: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29724: seed(_Sseq& __q) 29724: -> _If_seed_seq<_Sseq> 29724: { 29724: const size_t __k = (__w + 31) / 32; 29724: uint_least32_t __arr[__r * __k]; 29724: __q.generate(__arr + 0, __arr + __r * __k); 29724: 29724: for (size_t __i = 0; __i < long_lag; ++__i) 29724: { 29724: _UIntType __sum = 0u; 29724: _UIntType __factor = 1u; 29724: for (size_t __j = 0; __j < __k; ++__j) 29724: { 29724: __sum += __arr[__k * __i + __j] * __factor; 29724: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29724: } 29724: _M_x[__i] = __detail::__mod<_UIntType, 29724: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29724: } 29724: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 29724: _M_p = 0; 29724: } 29724: 29724: template 29724: typename subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29724: result_type 29724: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29724: operator()() 29724: { 29724: 29724: long __ps = _M_p - short_lag; 29724: if (__ps < 0) 29724: __ps += long_lag; 29724: 29724: 29724: 29724: 29724: _UIntType __xi; 29724: if (_M_x[__ps] >= _M_x[_M_p] + _M_carry) 29724: { 29724: __xi = _M_x[__ps] - _M_x[_M_p] - _M_carry; 29724: _M_carry = 0; 29724: } 29724: else 29724: { 29724: __xi = (__detail::_Shift<_UIntType, __w>::__value 29724: - _M_x[_M_p] - _M_carry + _M_x[__ps]); 29724: _M_carry = 1; 29724: } 29724: _M_x[_M_p] = __xi; 29724: 29724: 29724: if (++_M_p >= long_lag) 29724: _M_p = 0; 29724: 29724: return __xi; 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const subtract_with_carry_engine<_UIntType, 29724: __w, __s, __r>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29724: __os.fill(__space); 29724: 29724: for (size_t __i = 0; __i < __r; ++__i) 29724: __os << __x._M_x[__i] << __space; 29724: __os << __x._M_carry << __space << __x._M_p; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: subtract_with_carry_engine<_UIntType, __w, __s, __r>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: for (size_t __i = 0; __i < __r; ++__i) 29724: __is >> __x._M_x[__i]; 29724: __is >> __x._M_carry; 29724: __is >> __x._M_p; 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: # 686 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: typename discard_block_engine<_RandomNumberEngine, 29724: __p, __r>::result_type 29724: discard_block_engine<_RandomNumberEngine, __p, __r>:: 29724: operator()() 29724: { 29724: if (_M_n >= used_block) 29724: { 29724: _M_b.discard(block_size - _M_n); 29724: _M_n = 0; 29724: } 29724: ++_M_n; 29724: return _M_b(); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const discard_block_engine<_RandomNumberEngine, 29724: __p, __r>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29724: __os.fill(__space); 29724: 29724: __os << __x.base() << __space << __x._M_n; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: discard_block_engine<_RandomNumberEngine, __p, __r>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: __is >> __x._M_b >> __x._M_n; 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: typename independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 29724: result_type 29724: independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 29724: operator()() 29724: { 29724: typedef typename _RandomNumberEngine::result_type _Eresult_type; 29724: const _Eresult_type __r 29724: = (_M_b.max() - _M_b.min() < std::numeric_limits<_Eresult_type>::max() 29724: ? _M_b.max() - _M_b.min() + 1 : 0); 29724: const unsigned __edig = std::numeric_limits<_Eresult_type>::digits; 29724: const unsigned __m = __r ? std::__lg(__r) : __edig; 29724: 29724: typedef typename std::common_type<_Eresult_type, result_type>::type 29724: __ctype; 29724: const unsigned __cdig = std::numeric_limits<__ctype>::digits; 29724: 29724: unsigned __n, __n0; 29724: __ctype __s0, __s1, __y0, __y1; 29724: 29724: for (size_t __i = 0; __i < 2; ++__i) 29724: { 29724: __n = (__w + __m - 1) / __m + __i; 29724: __n0 = __n - __w % __n; 29724: const unsigned __w0 = __w / __n; 29724: 29724: __s0 = 0; 29724: __s1 = 0; 29724: if (__w0 < __cdig) 29724: { 29724: __s0 = __ctype(1) << __w0; 29724: __s1 = __s0 << 1; 29724: } 29724: 29724: __y0 = 0; 29724: __y1 = 0; 29724: if (__r) 29724: { 29724: __y0 = __s0 * (__r / __s0); 29724: if (__s1) 29724: __y1 = __s1 * (__r / __s1); 29724: 29724: if (__r - __y0 <= __y0 / __n) 29724: break; 29724: } 29724: else 29724: break; 29724: } 29724: 29724: result_type __sum = 0; 29724: for (size_t __k = 0; __k < __n0; ++__k) 29724: { 29724: __ctype __u; 29724: do 29724: __u = _M_b() - _M_b.min(); 29724: while (__y0 && __u >= __y0); 29724: __sum = __s0 * __sum + (__s0 ? __u % __s0 : __u); 29724: } 29724: for (size_t __k = __n0; __k < __n; ++__k) 29724: { 29724: __ctype __u; 29724: do 29724: __u = _M_b() - _M_b.min(); 29724: while (__y1 && __u >= __y1); 29724: __sum = __s1 * __sum + (__s1 ? __u % __s1 : __u); 29724: } 29724: return __sum; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace __detail 29724: { 29724: 29724: template 29724: constexpr bool 29724: __representable_as_double(_Tp __x) noexcept 29724: { 29724: static_assert(numeric_limits<_Tp>::is_integer, ""); 29724: static_assert(!numeric_limits<_Tp>::is_signed, ""); 29724: 29724: return (__x <= (1ull << 53)) 29724: 29724: || (!(__x & 1) && __detail::__representable_as_double(__x >> 1)); 29724: } 29724: 29724: 29724: template 29724: constexpr bool 29724: __p1_representable_as_double(_Tp __x) noexcept 29724: { 29724: static_assert(numeric_limits<_Tp>::is_integer, ""); 29724: static_assert(!numeric_limits<_Tp>::is_signed, ""); 29724: return numeric_limits<_Tp>::digits < 53 29724: || (bool(__x + 1u) 29724: && __detail::__representable_as_double(__x + 1u)); 29724: } 29724: } 29724: 29724: template 29724: typename shuffle_order_engine<_RandomNumberEngine, __k>::result_type 29724: shuffle_order_engine<_RandomNumberEngine, __k>:: 29724: operator()() 29724: { 29724: constexpr result_type __range = max() - min(); 29724: size_t __j = __k; 29724: const result_type __y = _M_y - min(); 29724: 29724: if constexpr (__detail::__p1_representable_as_double(__range)) 29724: __j *= __y / (__range + 1.0); 29724: else 29724: __j *= __y / (__range + 1.0L); 29724: _M_y = _M_v[__j]; 29724: _M_v[__j] = _M_b(); 29724: 29724: return _M_y; 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const shuffle_order_engine<_RandomNumberEngine, __k>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29724: __os.fill(__space); 29724: 29724: __os << __x.base(); 29724: for (size_t __i = 0; __i < __k; ++__i) 29724: __os << __space << __x._M_v[__i]; 29724: __os << __space << __x._M_y; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: shuffle_order_engine<_RandomNumberEngine, __k>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: __is >> __x._M_b; 29724: for (size_t __i = 0; __i < __k; ++__i) 29724: __is >> __x._M_v[__i]; 29724: __is >> __x._M_y; 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const uniform_int_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: 29724: __os << __x.a() << __space << __x.b(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: uniform_int_distribution<_IntType>& __x) 29724: { 29724: using param_type 29724: = typename uniform_int_distribution<_IntType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _IntType __a, __b; 29724: if (__is >> __a >> __b) 29724: __x.param(param_type(__a, __b)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: uniform_real_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: auto __range = __p.b() - __p.a(); 29724: while (__f != __t) 29724: *__f++ = __aurng() * __range + __p.a(); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const uniform_real_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.a() << __space << __x.b(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: uniform_real_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename uniform_real_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::skipws); 29724: 29724: _RealType __a, __b; 29724: if (__is >> __a >> __b) 29724: __x.param(param_type(__a, __b)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: std::bernoulli_distribution:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: auto __limit = __p.p() * (__aurng.max() - __aurng.min()); 29724: 29724: while (__f != __t) 29724: *__f++ = (__aurng() - __aurng.min()) < __limit; 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const bernoulli_distribution& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__os.widen(' ')); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: __os << __x.p(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: 29724: template 29724: template 29724: typename geometric_distribution<_IntType>::result_type 29724: geometric_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: const double __naf = 29724: (1 - std::numeric_limits::epsilon()) / 2; 29724: 29724: const double __thr = 29724: std::numeric_limits<_IntType>::max() + __naf; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: double __cand; 29724: do 29724: __cand = std::floor(std::log(1.0 - __aurng()) / __param._M_log_1_p); 29724: while (__cand >= __thr); 29724: 29724: return result_type(__cand + __naf); 29724: } 29724: 29724: template 29724: template 29724: void 29724: geometric_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: 29724: const double __naf = 29724: (1 - std::numeric_limits::epsilon()) / 2; 29724: 29724: const double __thr = 29724: std::numeric_limits<_IntType>::max() + __naf; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: while (__f != __t) 29724: { 29724: double __cand; 29724: do 29724: __cand = std::floor(std::log(1.0 - __aurng()) 29724: / __param._M_log_1_p); 29724: while (__cand >= __thr); 29724: 29724: *__f++ = __cand + __naf; 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const geometric_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__os.widen(' ')); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: __os << __x.p(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: geometric_distribution<_IntType>& __x) 29724: { 29724: using param_type = typename geometric_distribution<_IntType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::skipws); 29724: 29724: double __p; 29724: if (__is >> __p) 29724: __x.param(param_type(__p)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: typename negative_binomial_distribution<_IntType>::result_type 29724: negative_binomial_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng) 29724: { 29724: const double __y = _M_gd(__urng); 29724: 29724: 29724: std::poisson_distribution __poisson(__y); 29724: return __poisson(__urng); 29724: } 29724: 29724: template 29724: template 29724: typename negative_binomial_distribution<_IntType>::result_type 29724: negative_binomial_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: 29724: const double __y = 29724: _M_gd(__urng, param_type(__p.k(), (1.0 - __p.p()) / __p.p())); 29724: 29724: std::poisson_distribution __poisson(__y); 29724: return __poisson(__urng); 29724: } 29724: 29724: template 29724: template 29724: void 29724: negative_binomial_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { 29724: 29724: while (__f != __t) 29724: { 29724: const double __y = _M_gd(__urng); 29724: 29724: 29724: std::poisson_distribution __poisson(__y); 29724: *__f++ = __poisson(__urng); 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: negative_binomial_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: typename std::gamma_distribution::param_type 29724: __p2(__p.k(), (1.0 - __p.p()) / __p.p()); 29724: 29724: while (__f != __t) 29724: { 29724: const double __y = _M_gd(__urng, __p2); 29724: 29724: std::poisson_distribution __poisson(__y); 29724: *__f++ = __poisson(__urng); 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const negative_binomial_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__os.widen(' ')); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: __os << __x.k() << __space << __x.p() 29724: << __space << __x._M_gd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: negative_binomial_distribution<_IntType>& __x) 29724: { 29724: using param_type 29724: = typename negative_binomial_distribution<_IntType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::skipws); 29724: 29724: _IntType __k; 29724: double __p; 29724: if (__is >> __k >> __p >> __x._M_gd) 29724: __x.param(param_type(__k, __p)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: poisson_distribution<_IntType>::param_type:: 29724: _M_initialize() 29724: { 29724: 29724: if (_M_mean >= 12) 29724: { 29724: const double __m = std::floor(_M_mean); 29724: _M_lm_thr = std::log(_M_mean); 29724: _M_lfm = std::lgamma(__m + 1); 29724: _M_sm = std::sqrt(__m); 29724: 29724: const double __pi_4 = 0.7853981633974483096156608458198757L; 29724: const double __dx = std::sqrt(2 * __m * std::log(32 * __m 29724: / __pi_4)); 29724: _M_d = std::round(std::max(6.0, std::min(__m, __dx))); 29724: const double __cx = 2 * __m + _M_d; 29724: _M_scx = std::sqrt(__cx / 2); 29724: _M_1cx = 1 / __cx; 29724: 29724: _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx); 29724: _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2)) 29724: / _M_d; 29724: } 29724: else 29724: 29724: _M_lm_thr = std::exp(-_M_mean); 29724: } 29724: # 1308 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: template 29724: typename poisson_distribution<_IntType>::result_type 29724: poisson_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: if (__param.mean() >= 12) 29724: { 29724: double __x; 29724: 29724: 29724: const double __naf = 29724: (1 - std::numeric_limits::epsilon()) / 2; 29724: const double __thr = 29724: std::numeric_limits<_IntType>::max() + __naf; 29724: 29724: const double __m = std::floor(__param.mean()); 29724: 29724: const double __spi_2 = 1.2533141373155002512078826424055226L; 29724: const double __c1 = __param._M_sm * __spi_2; 29724: const double __c2 = __param._M_c2b + __c1; 29724: const double __c3 = __c2 + 1; 29724: const double __c4 = __c3 + 1; 29724: 29724: const double __178 = 0.0128205128205128205128205128205128L; 29724: 29724: const double __e178 = 1.0129030479320018583185514777512983L; 29724: const double __c5 = __c4 + __e178; 29724: const double __c = __param._M_cb + __c5; 29724: const double __2cx = 2 * (2 * __m + __param._M_d); 29724: 29724: bool __reject = true; 29724: do 29724: { 29724: const double __u = __c * __aurng(); 29724: const double __e = -std::log(1.0 - __aurng()); 29724: 29724: double __w = 0.0; 29724: 29724: if (__u <= __c1) 29724: { 29724: const double __n = _M_nd(__urng); 29724: const double __y = -std::abs(__n) * __param._M_sm - 1; 29724: __x = std::floor(__y); 29724: __w = -__n * __n / 2; 29724: if (__x < -__m) 29724: continue; 29724: } 29724: else if (__u <= __c2) 29724: { 29724: const double __n = _M_nd(__urng); 29724: const double __y = 1 + std::abs(__n) * __param._M_scx; 29724: __x = std::ceil(__y); 29724: __w = __y * (2 - __y) * __param._M_1cx; 29724: if (__x > __param._M_d) 29724: continue; 29724: } 29724: else if (__u <= __c3) 29724: 29724: 29724: __x = -1; 29724: else if (__u <= __c4) 29724: __x = 0; 29724: else if (__u <= __c5) 29724: { 29724: __x = 1; 29724: 29724: __w = __178; 29724: } 29724: else 29724: { 29724: const double __v = -std::log(1.0 - __aurng()); 29724: const double __y = __param._M_d 29724: + __v * __2cx / __param._M_d; 29724: __x = std::ceil(__y); 29724: __w = -__param._M_d * __param._M_1cx * (1 + __y / 2); 29724: } 29724: 29724: __reject = (__w - __e - __x * __param._M_lm_thr 29724: > __param._M_lfm - std::lgamma(__x + __m + 1)); 29724: 29724: __reject |= __x + __m >= __thr; 29724: 29724: } while (__reject); 29724: 29724: return result_type(__x + __m + __naf); 29724: } 29724: else 29724: 29724: { 29724: _IntType __x = 0; 29724: double __prod = 1.0; 29724: 29724: do 29724: { 29724: __prod *= __aurng(); 29724: __x += 1; 29724: } 29724: while (__prod > __param._M_lm_thr); 29724: 29724: return __x - 1; 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: poisson_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: while (__f != __t) 29724: *__f++ = this->operator()(__urng, __param); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const poisson_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: __os << __x.mean() << __space << __x._M_nd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: poisson_distribution<_IntType>& __x) 29724: { 29724: using param_type = typename poisson_distribution<_IntType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::skipws); 29724: 29724: double __mean; 29724: if (__is >> __mean >> __x._M_nd) 29724: __x.param(param_type(__mean)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: binomial_distribution<_IntType>::param_type:: 29724: _M_initialize() 29724: { 29724: const double __p12 = _M_p <= 0.5 ? _M_p : 1.0 - _M_p; 29724: 29724: _M_easy = true; 29724: 29724: 29724: if (_M_t * __p12 >= 8) 29724: { 29724: _M_easy = false; 29724: const double __np = std::floor(_M_t * __p12); 29724: const double __pa = __np / _M_t; 29724: const double __1p = 1 - __pa; 29724: 29724: const double __pi_4 = 0.7853981633974483096156608458198757L; 29724: const double __d1x = 29724: std::sqrt(__np * __1p * std::log(32 * __np 29724: / (81 * __pi_4 * __1p))); 29724: _M_d1 = std::round(std::max(1.0, __d1x)); 29724: const double __d2x = 29724: std::sqrt(__np * __1p * std::log(32 * _M_t * __1p 29724: / (__pi_4 * __pa))); 29724: _M_d2 = std::round(std::max(1.0, __d2x)); 29724: 29724: 29724: const double __spi_2 = 1.2533141373155002512078826424055226L; 29724: _M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np)); 29724: _M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * (_M_t * __1p))); 29724: _M_c = 2 * _M_d1 / __np; 29724: _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2; 29724: const double __a12 = _M_a1 + _M_s2 * __spi_2; 29724: const double __s1s = _M_s1 * _M_s1; 29724: _M_a123 = __a12 + (std::exp(_M_d1 / (_M_t * __1p)) 29724: * 2 * __s1s / _M_d1 29724: * std::exp(-_M_d1 * _M_d1 / (2 * __s1s))); 29724: const double __s2s = _M_s2 * _M_s2; 29724: _M_s = (_M_a123 + 2 * __s2s / _M_d2 29724: * std::exp(-_M_d2 * _M_d2 / (2 * __s2s))); 29724: _M_lf = (std::lgamma(__np + 1) 29724: + std::lgamma(_M_t - __np + 1)); 29724: _M_lp1p = std::log(__pa / __1p); 29724: 29724: _M_q = -std::log(1 - (__p12 - __pa) / __1p); 29724: } 29724: else 29724: 29724: _M_q = -std::log(1 - __p12); 29724: } 29724: 29724: template 29724: template 29724: typename binomial_distribution<_IntType>::result_type 29724: binomial_distribution<_IntType>:: 29724: _M_waiting(_UniformRandomNumberGenerator& __urng, 29724: _IntType __t, double __q) 29724: { 29724: _IntType __x = 0; 29724: double __sum = 0.0; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: do 29724: { 29724: if (__t == __x) 29724: return __x; 29724: const double __e = -std::log(1.0 - __aurng()); 29724: __sum += __e / (__t - __x); 29724: __x += 1; 29724: } 29724: while (__sum <= __q); 29724: 29724: return __x - 1; 29724: } 29724: # 1563 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: template 29724: typename binomial_distribution<_IntType>::result_type 29724: binomial_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: result_type __ret; 29724: const _IntType __t = __param.t(); 29724: const double __p = __param.p(); 29724: const double __p12 = __p <= 0.5 ? __p : 1.0 - __p; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: 29724: if (!__param._M_easy) 29724: { 29724: double __x; 29724: 29724: 29724: const double __naf = 29724: (1 - std::numeric_limits::epsilon()) / 2; 29724: const double __thr = 29724: std::numeric_limits<_IntType>::max() + __naf; 29724: 29724: const double __np = std::floor(__t * __p12); 29724: 29724: 29724: const double __spi_2 = 1.2533141373155002512078826424055226L; 29724: const double __a1 = __param._M_a1; 29724: const double __a12 = __a1 + __param._M_s2 * __spi_2; 29724: const double __a123 = __param._M_a123; 29724: const double __s1s = __param._M_s1 * __param._M_s1; 29724: const double __s2s = __param._M_s2 * __param._M_s2; 29724: 29724: bool __reject; 29724: do 29724: { 29724: const double __u = __param._M_s * __aurng(); 29724: 29724: double __v; 29724: 29724: if (__u <= __a1) 29724: { 29724: const double __n = _M_nd(__urng); 29724: const double __y = __param._M_s1 * std::abs(__n); 29724: __reject = __y >= __param._M_d1; 29724: if (!__reject) 29724: { 29724: const double __e = -std::log(1.0 - __aurng()); 29724: __x = std::floor(__y); 29724: __v = -__e - __n * __n / 2 + __param._M_c; 29724: } 29724: } 29724: else if (__u <= __a12) 29724: { 29724: const double __n = _M_nd(__urng); 29724: const double __y = __param._M_s2 * std::abs(__n); 29724: __reject = __y >= __param._M_d2; 29724: if (!__reject) 29724: { 29724: const double __e = -std::log(1.0 - __aurng()); 29724: __x = std::floor(-__y); 29724: __v = -__e - __n * __n / 2; 29724: } 29724: } 29724: else if (__u <= __a123) 29724: { 29724: const double __e1 = -std::log(1.0 - __aurng()); 29724: const double __e2 = -std::log(1.0 - __aurng()); 29724: 29724: const double __y = __param._M_d1 29724: + 2 * __s1s * __e1 / __param._M_d1; 29724: __x = std::floor(__y); 29724: __v = (-__e2 + __param._M_d1 * (1 / (__t - __np) 29724: -__y / (2 * __s1s))); 29724: __reject = false; 29724: } 29724: else 29724: { 29724: const double __e1 = -std::log(1.0 - __aurng()); 29724: const double __e2 = -std::log(1.0 - __aurng()); 29724: 29724: const double __y = __param._M_d2 29724: + 2 * __s2s * __e1 / __param._M_d2; 29724: __x = std::floor(-__y); 29724: __v = -__e2 - __param._M_d2 * __y / (2 * __s2s); 29724: __reject = false; 29724: } 29724: 29724: __reject = __reject || __x < -__np || __x > __t - __np; 29724: if (!__reject) 29724: { 29724: const double __lfx = 29724: std::lgamma(__np + __x + 1) 29724: + std::lgamma(__t - (__np + __x) + 1); 29724: __reject = __v > __param._M_lf - __lfx 29724: + __x * __param._M_lp1p; 29724: } 29724: 29724: __reject |= __x + __np >= __thr; 29724: } 29724: while (__reject); 29724: 29724: __x += __np + __naf; 29724: 29724: const _IntType __z = _M_waiting(__urng, __t - _IntType(__x), 29724: __param._M_q); 29724: __ret = _IntType(__x) + __z; 29724: } 29724: else 29724: 29724: __ret = _M_waiting(__urng, __t, __param._M_q); 29724: 29724: if (__p12 != __p) 29724: __ret = __t - __ret; 29724: return __ret; 29724: } 29724: 29724: template 29724: template 29724: void 29724: binomial_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: while (__f != __t) 29724: *__f++ = this->operator()(__urng, __param); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const binomial_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: __os << __x.t() << __space << __x.p() 29724: << __space << __x._M_nd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: binomial_distribution<_IntType>& __x) 29724: { 29724: using param_type = typename binomial_distribution<_IntType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _IntType __t; 29724: double __p; 29724: if (__is >> __t >> __p >> __x._M_nd) 29724: __x.param(param_type(__t, __p)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: std::exponential_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: while (__f != __t) 29724: *__f++ = -std::log(result_type(1) - __aurng()) / __p.lambda(); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const exponential_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__os.widen(' ')); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.lambda(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: exponential_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename exponential_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __lambda; 29724: if (__is >> __lambda) 29724: __x.param(param_type(__lambda)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: # 1809 "/usr/include/c++/14/bits/random.tcc" 3 29724: template 29724: template 29724: typename normal_distribution<_RealType>::result_type 29724: normal_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: result_type __ret; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: 29724: if (_M_saved_available) 29724: { 29724: _M_saved_available = false; 29724: __ret = _M_saved; 29724: } 29724: else 29724: { 29724: result_type __x, __y, __r2; 29724: do 29724: { 29724: __x = result_type(2.0) * __aurng() - 1.0; 29724: __y = result_type(2.0) * __aurng() - 1.0; 29724: __r2 = __x * __x + __y * __y; 29724: } 29724: while (__r2 > 1.0 || __r2 == 0.0); 29724: 29724: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29724: _M_saved = __x * __mult; 29724: _M_saved_available = true; 29724: __ret = __y * __mult; 29724: } 29724: 29724: __ret = __ret * __param.stddev() + __param.mean(); 29724: return __ret; 29724: } 29724: 29724: template 29724: template 29724: void 29724: normal_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: if (__f == __t) 29724: return; 29724: 29724: if (_M_saved_available) 29724: { 29724: _M_saved_available = false; 29724: *__f++ = _M_saved * __param.stddev() + __param.mean(); 29724: 29724: if (__f == __t) 29724: return; 29724: } 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: 29724: while (__f + 1 < __t) 29724: { 29724: result_type __x, __y, __r2; 29724: do 29724: { 29724: __x = result_type(2.0) * __aurng() - 1.0; 29724: __y = result_type(2.0) * __aurng() - 1.0; 29724: __r2 = __x * __x + __y * __y; 29724: } 29724: while (__r2 > 1.0 || __r2 == 0.0); 29724: 29724: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29724: *__f++ = __y * __mult * __param.stddev() + __param.mean(); 29724: *__f++ = __x * __mult * __param.stddev() + __param.mean(); 29724: } 29724: 29724: if (__f != __t) 29724: { 29724: result_type __x, __y, __r2; 29724: do 29724: { 29724: __x = result_type(2.0) * __aurng() - 1.0; 29724: __y = result_type(2.0) * __aurng() - 1.0; 29724: __r2 = __x * __x + __y * __y; 29724: } 29724: while (__r2 > 1.0 || __r2 == 0.0); 29724: 29724: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29724: _M_saved = __x * __mult; 29724: _M_saved_available = true; 29724: *__f = __y * __mult * __param.stddev() + __param.mean(); 29724: } 29724: } 29724: 29724: template 29724: bool 29724: operator==(const std::normal_distribution<_RealType>& __d1, 29724: const std::normal_distribution<_RealType>& __d2) 29724: { 29724: if (__d1._M_param == __d2._M_param 29724: && __d1._M_saved_available == __d2._M_saved_available) 29724: return __d1._M_saved_available ? __d1._M_saved == __d2._M_saved : true; 29724: else 29724: return false; 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const normal_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.mean() << __space << __x.stddev() 29724: << __space << __x._M_saved_available; 29724: if (__x._M_saved_available) 29724: __os << __space << __x._M_saved; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: normal_distribution<_RealType>& __x) 29724: { 29724: using param_type = typename normal_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: double __mean, __stddev; 29724: bool __saved_avail; 29724: if (__is >> __mean >> __stddev >> __saved_avail) 29724: { 29724: if (!__saved_avail || (__is >> __x._M_saved)) 29724: { 29724: __x._M_saved_available = __saved_avail; 29724: __x.param(param_type(__mean, __stddev)); 29724: } 29724: } 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: lognormal_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: while (__f != __t) 29724: *__f++ = std::exp(__p.s() * _M_nd(__urng) + __p.m()); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const lognormal_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.m() << __space << __x.s() 29724: << __space << __x._M_nd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: lognormal_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename lognormal_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __m, __s; 29724: if (__is >> __m >> __s >> __x._M_nd) 29724: __x.param(param_type(__m, __s)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: template 29724: template 29724: void 29724: std::chi_squared_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { 29724: 29724: while (__f != __t) 29724: *__f++ = 2 * _M_gd(__urng); 29724: } 29724: 29724: template 29724: template 29724: void 29724: std::chi_squared_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const typename 29724: std::gamma_distribution::param_type& __p) 29724: { 29724: 29724: while (__f != __t) 29724: *__f++ = 2 * _M_gd(__urng, __p); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const chi_squared_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.n() << __space << __x._M_gd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: chi_squared_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename chi_squared_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __n; 29724: if (__is >> __n >> __x._M_gd) 29724: __x.param(param_type(__n)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: typename cauchy_distribution<_RealType>::result_type 29724: cauchy_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: _RealType __u; 29724: do 29724: __u = __aurng(); 29724: while (__u == 0.5); 29724: 29724: const _RealType __pi = 3.1415926535897932384626433832795029L; 29724: return __p.a() + __p.b() * std::tan(__pi * __u); 29724: } 29724: 29724: template 29724: template 29724: void 29724: cauchy_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: const _RealType __pi = 3.1415926535897932384626433832795029L; 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: while (__f != __t) 29724: { 29724: _RealType __u; 29724: do 29724: __u = __aurng(); 29724: while (__u == 0.5); 29724: 29724: *__f++ = __p.a() + __p.b() * std::tan(__pi * __u); 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const cauchy_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.a() << __space << __x.b(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: cauchy_distribution<_RealType>& __x) 29724: { 29724: using param_type = typename cauchy_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __a, __b; 29724: if (__is >> __a >> __b) 29724: __x.param(param_type(__a, __b)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: std::fisher_f_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { 29724: 29724: while (__f != __t) 29724: *__f++ = ((_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m())); 29724: } 29724: 29724: template 29724: template 29724: void 29724: std::fisher_f_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: typedef typename std::gamma_distribution::param_type 29724: param_type; 29724: param_type __p1(__p.m() / 2); 29724: param_type __p2(__p.n() / 2); 29724: while (__f != __t) 29724: *__f++ = ((_M_gd_x(__urng, __p1) * n()) 29724: / (_M_gd_y(__urng, __p2) * m())); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const fisher_f_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.m() << __space << __x.n() 29724: << __space << __x._M_gd_x << __space << __x._M_gd_y; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: fisher_f_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename fisher_f_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __m, __n; 29724: if (__is >> __m >> __n >> __x._M_gd_x >> __x._M_gd_y) 29724: __x.param(param_type(__m, __n)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: void 29724: std::student_t_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng) 29724: { 29724: 29724: while (__f != __t) 29724: *__f++ = _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); 29724: } 29724: 29724: template 29724: template 29724: void 29724: std::student_t_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: typename std::gamma_distribution::param_type 29724: __p2(__p.n() / 2, 2); 29724: while (__f != __t) 29724: *__f++ = _M_nd(__urng) * std::sqrt(__p.n() / _M_gd(__urng, __p2)); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const student_t_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.n() << __space << __x._M_nd << __space << __x._M_gd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: student_t_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename student_t_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __n; 29724: if (__is >> __n >> __x._M_nd >> __x._M_gd) 29724: __x.param(param_type(__n)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: gamma_distribution<_RealType>::param_type:: 29724: _M_initialize() 29724: { 29724: _M_malpha = _M_alpha < 1.0 ? _M_alpha + _RealType(1.0) : _M_alpha; 29724: 29724: const _RealType __a1 = _M_malpha - _RealType(1.0) / _RealType(3.0); 29724: _M_a2 = _RealType(1.0) / std::sqrt(_RealType(9.0) * __a1); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: template 29724: typename gamma_distribution<_RealType>::result_type 29724: gamma_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: 29724: result_type __u, __v, __n; 29724: const result_type __a1 = (__param._M_malpha 29724: - _RealType(1.0) / _RealType(3.0)); 29724: 29724: do 29724: { 29724: do 29724: { 29724: __n = _M_nd(__urng); 29724: __v = result_type(1.0) + __param._M_a2 * __n; 29724: } 29724: while (__v <= 0.0); 29724: 29724: __v = __v * __v * __v; 29724: __u = __aurng(); 29724: } 29724: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29724: && (std::log(__u) > (0.5 * __n * __n + __a1 29724: * (1.0 - __v + std::log(__v))))); 29724: 29724: if (__param.alpha() == __param._M_malpha) 29724: return __a1 * __v * __param.beta(); 29724: else 29724: { 29724: do 29724: __u = __aurng(); 29724: while (__u == 0.0); 29724: 29724: return (std::pow(__u, result_type(1.0) / __param.alpha()) 29724: * __a1 * __v * __param.beta()); 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: gamma_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: 29724: result_type __u, __v, __n; 29724: const result_type __a1 = (__param._M_malpha 29724: - _RealType(1.0) / _RealType(3.0)); 29724: 29724: if (__param.alpha() == __param._M_malpha) 29724: while (__f != __t) 29724: { 29724: do 29724: { 29724: do 29724: { 29724: __n = _M_nd(__urng); 29724: __v = result_type(1.0) + __param._M_a2 * __n; 29724: } 29724: while (__v <= 0.0); 29724: 29724: __v = __v * __v * __v; 29724: __u = __aurng(); 29724: } 29724: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29724: && (std::log(__u) > (0.5 * __n * __n + __a1 29724: * (1.0 - __v + std::log(__v))))); 29724: 29724: *__f++ = __a1 * __v * __param.beta(); 29724: } 29724: else 29724: while (__f != __t) 29724: { 29724: do 29724: { 29724: do 29724: { 29724: __n = _M_nd(__urng); 29724: __v = result_type(1.0) + __param._M_a2 * __n; 29724: } 29724: while (__v <= 0.0); 29724: 29724: __v = __v * __v * __v; 29724: __u = __aurng(); 29724: } 29724: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29724: && (std::log(__u) > (0.5 * __n * __n + __a1 29724: * (1.0 - __v + std::log(__v))))); 29724: 29724: do 29724: __u = __aurng(); 29724: while (__u == 0.0); 29724: 29724: *__f++ = (std::pow(__u, result_type(1.0) / __param.alpha()) 29724: * __a1 * __v * __param.beta()); 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const gamma_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.alpha() << __space << __x.beta() 29724: << __space << __x._M_nd; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: gamma_distribution<_RealType>& __x) 29724: { 29724: using param_type = typename gamma_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __alpha_val, __beta_val; 29724: if (__is >> __alpha_val >> __beta_val >> __x._M_nd) 29724: __x.param(param_type(__alpha_val, __beta_val)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: typename weibull_distribution<_RealType>::result_type 29724: weibull_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: return __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 29724: result_type(1) / __p.a()); 29724: } 29724: 29724: template 29724: template 29724: void 29724: weibull_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: auto __inv_a = result_type(1) / __p.a(); 29724: 29724: while (__f != __t) 29724: *__f++ = __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 29724: __inv_a); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const weibull_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.a() << __space << __x.b(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: weibull_distribution<_RealType>& __x) 29724: { 29724: using param_type = typename weibull_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __a, __b; 29724: if (__is >> __a >> __b) 29724: __x.param(param_type(__a, __b)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: template 29724: typename extreme_value_distribution<_RealType>::result_type 29724: extreme_value_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: return __p.a() - __p.b() * std::log(-std::log(result_type(1) 29724: - __aurng())); 29724: } 29724: 29724: template 29724: template 29724: void 29724: extreme_value_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __p) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29724: __aurng(__urng); 29724: 29724: while (__f != __t) 29724: *__f++ = __p.a() - __p.b() * std::log(-std::log(result_type(1) 29724: - __aurng())); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const extreme_value_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: __os << __x.a() << __space << __x.b(); 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: extreme_value_distribution<_RealType>& __x) 29724: { 29724: using param_type 29724: = typename extreme_value_distribution<_RealType>::param_type; 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: _RealType __a, __b; 29724: if (__is >> __a >> __b) 29724: __x.param(param_type(__a, __b)); 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: discrete_distribution<_IntType>::param_type:: 29724: _M_initialize() 29724: { 29724: if (_M_prob.size() < 2) 29724: { 29724: _M_prob.clear(); 29724: return; 29724: } 29724: 29724: const double __sum = std::accumulate(_M_prob.begin(), 29724: _M_prob.end(), 0.0); 29724: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __detail::__normalize(_M_prob.begin(), _M_prob.end(), _M_prob.begin(), 29724: __sum); 29724: 29724: _M_cp.reserve(_M_prob.size()); 29724: std::partial_sum(_M_prob.begin(), _M_prob.end(), 29724: std::back_inserter(_M_cp)); 29724: 29724: _M_cp[_M_cp.size() - 1] = 1.0; 29724: } 29724: 29724: template 29724: template 29724: discrete_distribution<_IntType>::param_type:: 29724: param_type(size_t __nw, double __xmin, double __xmax, _Func __fw) 29724: : _M_prob(), _M_cp() 29724: { 29724: const size_t __n = __nw == 0 ? 1 : __nw; 29724: const double __delta = (__xmax - __xmin) / __n; 29724: 29724: _M_prob.reserve(__n); 29724: for (size_t __k = 0; __k < __nw; ++__k) 29724: _M_prob.push_back(__fw(__xmin + __k * __delta + 0.5 * __delta)); 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: typename discrete_distribution<_IntType>::result_type 29724: discrete_distribution<_IntType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: if (__param._M_cp.empty()) 29724: return result_type(0); 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: const double __p = __aurng(); 29724: auto __pos = std::lower_bound(__param._M_cp.begin(), 29724: __param._M_cp.end(), __p); 29724: 29724: return __pos - __param._M_cp.begin(); 29724: } 29724: 29724: template 29724: template 29724: void 29724: discrete_distribution<_IntType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: if (__param._M_cp.empty()) 29724: { 29724: while (__f != __t) 29724: *__f++ = result_type(0); 29724: return; 29724: } 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: while (__f != __t) 29724: { 29724: const double __p = __aurng(); 29724: auto __pos = std::lower_bound(__param._M_cp.begin(), 29724: __param._M_cp.end(), __p); 29724: 29724: *__f++ = __pos - __param._M_cp.begin(); 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const discrete_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits::max_digits10); 29724: 29724: std::vector __prob = __x.probabilities(); 29724: __os << __prob.size(); 29724: for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit) 29724: __os << __space << *__dit; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: namespace __detail 29724: { 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: __extract_params(basic_istream<_CharT, _Traits>& __is, 29724: vector<_ValT>& __vals, size_t __n) 29724: { 29724: __vals.reserve(__n); 29724: while (__n--) 29724: { 29724: _ValT __val; 29724: if (__is >> __val) 29724: __vals.push_back(__val); 29724: else 29724: break; 29724: } 29724: return __is; 29724: } 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: discrete_distribution<_IntType>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: size_t __n; 29724: if (__is >> __n) 29724: { 29724: std::vector __prob_vec; 29724: if (__detail::__extract_params(__is, __prob_vec, __n)) 29724: __x.param({__prob_vec.begin(), __prob_vec.end()}); 29724: } 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: piecewise_constant_distribution<_RealType>::param_type:: 29724: _M_initialize() 29724: { 29724: if (_M_int.size() < 2 29724: || (_M_int.size() == 2 29724: && _M_int[0] == _RealType(0) 29724: && _M_int[1] == _RealType(1))) 29724: { 29724: _M_int.clear(); 29724: _M_den.clear(); 29724: return; 29724: } 29724: 29724: const double __sum = std::accumulate(_M_den.begin(), 29724: _M_den.end(), 0.0); 29724: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 29724: __sum); 29724: 29724: _M_cp.reserve(_M_den.size()); 29724: std::partial_sum(_M_den.begin(), _M_den.end(), 29724: std::back_inserter(_M_cp)); 29724: 29724: 29724: _M_cp[_M_cp.size() - 1] = 1.0; 29724: 29724: for (size_t __k = 0; __k < _M_den.size(); ++__k) 29724: _M_den[__k] /= _M_int[__k + 1] - _M_int[__k]; 29724: } 29724: 29724: template 29724: template 29724: piecewise_constant_distribution<_RealType>::param_type:: 29724: param_type(_InputIteratorB __bbegin, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin) 29724: : _M_int(), _M_den(), _M_cp() 29724: { 29724: if (__bbegin != __bend) 29724: { 29724: for (;;) 29724: { 29724: _M_int.push_back(*__bbegin); 29724: ++__bbegin; 29724: if (__bbegin == __bend) 29724: break; 29724: 29724: _M_den.push_back(*__wbegin); 29724: ++__wbegin; 29724: } 29724: } 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: piecewise_constant_distribution<_RealType>::param_type:: 29724: param_type(initializer_list<_RealType> __bl, _Func __fw) 29724: : _M_int(), _M_den(), _M_cp() 29724: { 29724: _M_int.reserve(__bl.size()); 29724: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 29724: _M_int.push_back(*__biter); 29724: 29724: _M_den.reserve(_M_int.size() - 1); 29724: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 29724: _M_den.push_back(__fw(0.5 * (_M_int[__k + 1] + _M_int[__k]))); 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: piecewise_constant_distribution<_RealType>::param_type:: 29724: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 29724: : _M_int(), _M_den(), _M_cp() 29724: { 29724: const size_t __n = __nw == 0 ? 1 : __nw; 29724: const _RealType __delta = (__xmax - __xmin) / __n; 29724: 29724: _M_int.reserve(__n + 1); 29724: for (size_t __k = 0; __k <= __nw; ++__k) 29724: _M_int.push_back(__xmin + __k * __delta); 29724: 29724: _M_den.reserve(__n); 29724: for (size_t __k = 0; __k < __nw; ++__k) 29724: _M_den.push_back(__fw(_M_int[__k] + 0.5 * __delta)); 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: typename piecewise_constant_distribution<_RealType>::result_type 29724: piecewise_constant_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: const double __p = __aurng(); 29724: if (__param._M_cp.empty()) 29724: return __p; 29724: 29724: auto __pos = std::lower_bound(__param._M_cp.begin(), 29724: __param._M_cp.end(), __p); 29724: const size_t __i = __pos - __param._M_cp.begin(); 29724: 29724: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29724: 29724: return __param._M_int[__i] + (__p - __pref) / __param._M_den[__i]; 29724: } 29724: 29724: template 29724: template 29724: void 29724: piecewise_constant_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: if (__param._M_cp.empty()) 29724: { 29724: while (__f != __t) 29724: *__f++ = __aurng(); 29724: return; 29724: } 29724: 29724: while (__f != __t) 29724: { 29724: const double __p = __aurng(); 29724: 29724: auto __pos = std::lower_bound(__param._M_cp.begin(), 29724: __param._M_cp.end(), __p); 29724: const size_t __i = __pos - __param._M_cp.begin(); 29724: 29724: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29724: 29724: *__f++ = (__param._M_int[__i] 29724: + (__p - __pref) / __param._M_den[__i]); 29724: } 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const piecewise_constant_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: std::vector<_RealType> __int = __x.intervals(); 29724: __os << __int.size() - 1; 29724: 29724: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 29724: __os << __space << *__xit; 29724: 29724: std::vector __den = __x.densities(); 29724: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 29724: __os << __space << *__dit; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: piecewise_constant_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: size_t __n; 29724: if (__is >> __n) 29724: { 29724: std::vector<_RealType> __int_vec; 29724: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 29724: { 29724: std::vector __den_vec; 29724: if (__detail::__extract_params(__is, __den_vec, __n)) 29724: { 29724: __x.param({ __int_vec.begin(), __int_vec.end(), 29724: __den_vec.begin() }); 29724: } 29724: } 29724: } 29724: 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: void 29724: piecewise_linear_distribution<_RealType>::param_type:: 29724: _M_initialize() 29724: { 29724: if (_M_int.size() < 2 29724: || (_M_int.size() == 2 29724: && _M_int[0] == _RealType(0) 29724: && _M_int[1] == _RealType(1) 29724: && _M_den[0] == _M_den[1])) 29724: { 29724: _M_int.clear(); 29724: _M_den.clear(); 29724: return; 29724: } 29724: 29724: double __sum = 0.0; 29724: _M_cp.reserve(_M_int.size() - 1); 29724: _M_m.reserve(_M_int.size() - 1); 29724: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 29724: { 29724: const _RealType __delta = _M_int[__k + 1] - _M_int[__k]; 29724: __sum += 0.5 * (_M_den[__k + 1] + _M_den[__k]) * __delta; 29724: _M_cp.push_back(__sum); 29724: _M_m.push_back((_M_den[__k + 1] - _M_den[__k]) / __delta); 29724: } 29724: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: 29724: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 29724: __sum); 29724: 29724: __detail::__normalize(_M_cp.begin(), _M_cp.end(), _M_cp.begin(), __sum); 29724: 29724: __detail::__normalize(_M_m.begin(), _M_m.end(), _M_m.begin(), __sum); 29724: 29724: 29724: _M_cp[_M_cp.size() - 1] = 1.0; 29724: } 29724: 29724: template 29724: template 29724: piecewise_linear_distribution<_RealType>::param_type:: 29724: param_type(_InputIteratorB __bbegin, 29724: _InputIteratorB __bend, 29724: _InputIteratorW __wbegin) 29724: : _M_int(), _M_den(), _M_cp(), _M_m() 29724: { 29724: for (; __bbegin != __bend; ++__bbegin, ++__wbegin) 29724: { 29724: _M_int.push_back(*__bbegin); 29724: _M_den.push_back(*__wbegin); 29724: } 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: piecewise_linear_distribution<_RealType>::param_type:: 29724: param_type(initializer_list<_RealType> __bl, _Func __fw) 29724: : _M_int(), _M_den(), _M_cp(), _M_m() 29724: { 29724: _M_int.reserve(__bl.size()); 29724: _M_den.reserve(__bl.size()); 29724: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 29724: { 29724: _M_int.push_back(*__biter); 29724: _M_den.push_back(__fw(*__biter)); 29724: } 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: piecewise_linear_distribution<_RealType>::param_type:: 29724: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 29724: : _M_int(), _M_den(), _M_cp(), _M_m() 29724: { 29724: const size_t __n = __nw == 0 ? 1 : __nw; 29724: const _RealType __delta = (__xmax - __xmin) / __n; 29724: 29724: _M_int.reserve(__n + 1); 29724: _M_den.reserve(__n + 1); 29724: for (size_t __k = 0; __k <= __nw; ++__k) 29724: { 29724: _M_int.push_back(__xmin + __k * __delta); 29724: _M_den.push_back(__fw(_M_int[__k] + __delta)); 29724: } 29724: 29724: _M_initialize(); 29724: } 29724: 29724: template 29724: template 29724: typename piecewise_linear_distribution<_RealType>::result_type 29724: piecewise_linear_distribution<_RealType>:: 29724: operator()(_UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29724: __aurng(__urng); 29724: 29724: const double __p = __aurng(); 29724: if (__param._M_cp.empty()) 29724: return __p; 29724: 29724: auto __pos = std::lower_bound(__param._M_cp.begin(), 29724: __param._M_cp.end(), __p); 29724: const size_t __i = __pos - __param._M_cp.begin(); 29724: 29724: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29724: 29724: const double __a = 0.5 * __param._M_m[__i]; 29724: const double __b = __param._M_den[__i]; 29724: const double __cm = __p - __pref; 29724: 29724: _RealType __x = __param._M_int[__i]; 29724: if (__a == 0) 29724: __x += __cm / __b; 29724: else 29724: { 29724: const double __d = __b * __b + 4.0 * __a * __cm; 29724: __x += 0.5 * (std::sqrt(__d) - __b) / __a; 29724: } 29724: 29724: return __x; 29724: } 29724: 29724: template 29724: template 29724: void 29724: piecewise_linear_distribution<_RealType>:: 29724: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29724: _UniformRandomNumberGenerator& __urng, 29724: const param_type& __param) 29724: { 29724: 29724: 29724: while (__f != __t) 29724: *__f++ = this->operator()(__urng, __param); 29724: } 29724: 29724: template 29724: std::basic_ostream<_CharT, _Traits>& 29724: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29724: const piecewise_linear_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __os.flags(); 29724: const _CharT __fill = __os.fill(); 29724: const std::streamsize __precision = __os.precision(); 29724: const _CharT __space = __os.widen(' '); 29724: __os.flags(__ios_base::scientific | __ios_base::left); 29724: __os.fill(__space); 29724: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29724: 29724: std::vector<_RealType> __int = __x.intervals(); 29724: __os << __int.size() - 1; 29724: 29724: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 29724: __os << __space << *__xit; 29724: 29724: std::vector __den = __x.densities(); 29724: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 29724: __os << __space << *__dit; 29724: 29724: __os.flags(__flags); 29724: __os.fill(__fill); 29724: __os.precision(__precision); 29724: return __os; 29724: } 29724: 29724: template 29724: std::basic_istream<_CharT, _Traits>& 29724: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29724: piecewise_linear_distribution<_RealType>& __x) 29724: { 29724: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29724: 29724: const typename __ios_base::fmtflags __flags = __is.flags(); 29724: __is.flags(__ios_base::dec | __ios_base::skipws); 29724: 29724: size_t __n; 29724: if (__is >> __n) 29724: { 29724: vector<_RealType> __int_vec; 29724: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 29724: { 29724: vector __den_vec; 29724: if (__detail::__extract_params(__is, __den_vec, __n + 1)) 29724: { 29724: __x.param({ __int_vec.begin(), __int_vec.end(), 29724: __den_vec.begin() }); 29724: } 29724: } 29724: } 29724: __is.flags(__flags); 29724: return __is; 29724: } 29724: 29724: 29724: template 29724: seed_seq::seed_seq(std::initializer_list<_IntType> __il) 29724: { 29724: _M_v.reserve(__il.size()); 29724: for (auto __iter = __il.begin(); __iter != __il.end(); ++__iter) 29724: _M_v.push_back(__detail::__mod::__value>(*__iter)); 29724: } 29724: 29724: template 29724: seed_seq::seed_seq(_InputIterator __begin, _InputIterator __end) 29724: { 29724: if constexpr (__is_random_access_iter<_InputIterator>::value) 29724: _M_v.reserve(std::distance(__begin, __end)); 29724: 29724: for (_InputIterator __iter = __begin; __iter != __end; ++__iter) 29724: _M_v.push_back(__detail::__mod::__value>(*__iter)); 29724: } 29724: 29724: template 29724: void 29724: seed_seq::generate(_RandomAccessIterator __begin, 29724: _RandomAccessIterator __end) 29724: { 29724: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29724: _Type; 29724: 29724: if (__begin == __end) 29724: return; 29724: 29724: std::fill(__begin, __end, _Type(0x8b8b8b8bu)); 29724: 29724: const size_t __n = __end - __begin; 29724: const size_t __s = _M_v.size(); 29724: const size_t __t = (__n >= 623) ? 11 29724: : (__n >= 68) ? 7 29724: : (__n >= 39) ? 5 29724: : (__n >= 7) ? 3 29724: : (__n - 1) / 2; 29724: const size_t __p = (__n - __t) / 2; 29724: const size_t __q = __p + __t; 29724: const size_t __m = std::max(size_t(__s + 1), __n); 29724: # 3292 "/usr/include/c++/14/bits/random.tcc" 3 29724: { 29724: uint32_t __r1 = 1371501266u; 29724: uint32_t __r2 = __r1 + __s; 29724: __begin[__p] += __r1; 29724: __begin[__q] = (uint32_t)__begin[__q] + __r2; 29724: __begin[0] = __r2; 29724: } 29724: 29724: for (size_t __k = 1; __k <= __s; ++__k) 29724: { 29724: const size_t __kn = __k % __n; 29724: const size_t __kpn = (__k + __p) % __n; 29724: const size_t __kqn = (__k + __q) % __n; 29724: uint32_t __arg = (__begin[__kn] 29724: ^ __begin[__kpn] 29724: ^ __begin[(__k - 1) % __n]); 29724: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 29724: uint32_t __r2 = __r1 + (uint32_t)__kn + _M_v[__k - 1]; 29724: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 29724: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 29724: __begin[__kn] = __r2; 29724: } 29724: 29724: for (size_t __k = __s + 1; __k < __m; ++__k) 29724: { 29724: const size_t __kn = __k % __n; 29724: const size_t __kpn = (__k + __p) % __n; 29724: const size_t __kqn = (__k + __q) % __n; 29724: uint32_t __arg = (__begin[__kn] 29724: ^ __begin[__kpn] 29724: ^ __begin[(__k - 1) % __n]); 29724: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 29724: uint32_t __r2 = __r1 + (uint32_t)__kn; 29724: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 29724: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 29724: __begin[__kn] = __r2; 29724: } 29724: 29724: for (size_t __k = __m; __k < __m + __n; ++__k) 29724: { 29724: const size_t __kn = __k % __n; 29724: const size_t __kpn = (__k + __p) % __n; 29724: const size_t __kqn = (__k + __q) % __n; 29724: uint32_t __arg = (__begin[__kn] 29724: + __begin[__kpn] 29724: + __begin[(__k - 1) % __n]); 29724: uint32_t __r3 = 1566083941u * (__arg ^ (__arg >> 27)); 29724: uint32_t __r4 = __r3 - __kn; 29724: __begin[__kpn] ^= __r3; 29724: __begin[__kqn] ^= __r4; 29724: __begin[__kn] = __r4; 29724: } 29724: } 29724: 29724: template 29724: _RealType 29724: generate_canonical(_UniformRandomNumberGenerator& __urng) 29724: { 29724: static_assert(std::is_floating_point<_RealType>::value, 29724: "template argument must be a floating point type"); 29724: 29724: const size_t __b 29724: = std::min(static_cast(std::numeric_limits<_RealType>::digits), 29724: __bits); 29724: const long double __r = static_cast(__urng.max()) 29724: - static_cast(__urng.min()) + 1.0L; 29724: const size_t __log2r = std::log(__r) / std::log(2.0L); 29724: const size_t __m = std::max(1UL, 29724: (__b + __log2r - 1UL) / __log2r); 29724: _RealType __ret; 29724: _RealType __sum = _RealType(0); 29724: _RealType __tmp = _RealType(1); 29724: for (size_t __k = __m; __k != 0; --__k) 29724: { 29724: __sum += _RealType(__urng() - __urng.min()) * __tmp; 29724: __tmp *= __r; 29724: } 29724: __ret = __sum / __tmp; 29724: if (__builtin_expect(__ret >= _RealType(1), 0)) 29724: { 29724: 29724: __ret = std::nextafter(_RealType(1), _RealType(0)); 29724: 29724: 29724: 29724: 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: } 29724: # 51 "/usr/include/c++/14/random" 2 3 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 2 29724: 29724: 29724: 29724: 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: class Random { 29724: private: 29724: enum : uint32_t { 29724: M = 2147483647L 29724: }; 29724: enum : uint64_t { 29724: A = 16807 29724: }; 29724: 29724: uint32_t seed_; 29724: 29724: static uint32_t GoodSeed(uint32_t s) { return (s & M) != 0 ? (s & M) : 1; } 29724: 29724: public: 29724: 29724: enum : uint32_t { kMaxNext = M }; 29724: 29724: explicit Random(uint32_t s) : seed_(GoodSeed(s)) {} 29724: 29724: void Reset(uint32_t s) { seed_ = GoodSeed(s); } 29724: 29724: uint32_t Next() { 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t product = seed_ * A; 29724: 29724: 29724: seed_ = static_cast((product >> 31) + (product & M)); 29724: 29724: 29724: 29724: if (seed_ > M) { 29724: seed_ -= M; 29724: } 29724: return seed_; 29724: } 29724: 29724: uint64_t Next64() { return (uint64_t{Next()} << 32) | Next(); } 29724: 29724: 29724: 29724: uint32_t Uniform(int n) { return Next() % n; } 29724: 29724: 29724: 29724: bool OneIn(int n) { return Uniform(n) == 0; } 29724: 29724: 29724: 29724: bool OneInOpt(int n) { return n > 0 && OneIn(n); } 29724: 29724: 29724: 29724: 29724: bool PercentTrue(int percentage) { 29724: return static_cast(Uniform(100)) < percentage; 29724: } 29724: 29724: 29724: 29724: 29724: uint32_t Skewed(int max_log) { return Uniform(1 << Uniform(max_log + 1)); } 29724: 29724: 29724: std::string RandomString(int len); 29724: 29724: 29724: std::string HumanReadableString(int len); 29724: 29724: 29724: std::string RandomBinaryString(int len); 29724: 29724: 29724: 29724: static Random* GetTLSInstance(); 29724: }; 29724: 29724: 29724: 29724: 29724: class Random32 { 29724: private: 29724: std::mt19937 generator_; 29724: 29724: public: 29724: explicit Random32(uint32_t s) : generator_(s) {} 29724: 29724: 29724: uint32_t Next() { return static_cast(generator_()); } 29724: 29724: 29724: 29724: uint32_t Uniform(uint32_t n) { 29724: return static_cast( 29724: std::uniform_int_distribution( 29724: 0, n - 1)(generator_)); 29724: } 29724: 29724: 29724: 29724: 29724: uint32_t Uniformish(uint32_t n) { 29724: 29724: return static_cast((uint64_t(generator_()) * uint64_t(n)) >> 32); 29724: } 29724: 29724: 29724: 29724: bool OneIn(uint32_t n) { return Uniform(n) == 0; } 29724: 29724: 29724: 29724: 29724: uint32_t Skewed(int max_log) { 29724: return Uniform(uint32_t{1} << Uniform(max_log + 1)); 29724: } 29724: 29724: 29724: void Seed(uint32_t new_seed) { generator_.seed(new_seed); } 29724: }; 29724: 29724: 29724: class Random64 { 29724: private: 29724: std::mt19937_64 generator_; 29724: 29724: public: 29724: explicit Random64(uint64_t s) : generator_(s) {} 29724: 29724: 29724: uint64_t Next() { return generator_(); } 29724: 29724: 29724: 29724: uint64_t Uniform(uint64_t n) { 29724: return std::uniform_int_distribution(0, n - 1)(generator_); 29724: } 29724: 29724: 29724: 29724: bool OneIn(uint64_t n) { return Uniform(n) == 0; } 29724: 29724: 29724: 29724: 29724: uint64_t Skewed(int max_log) { 29724: return Uniform(uint64_t(1) << Uniform(max_log + 1)); 29724: } 29724: }; 29724: 29724: 29724: template 29724: void RandomShuffle(RandomIt first, RandomIt last, uint32_t seed) { 29724: std::mt19937 rng(seed); 29724: std::shuffle(first, last, rng); 29724: } 29724: 29724: 29724: template 29724: void RandomShuffle(RandomIt first, RandomIt last) { 29724: RandomShuffle(first, last, std::random_device{}()); 29724: } 29724: 29724: } 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: template 29724: class CoreLocalArray { 29724: public: 29724: CoreLocalArray(); 29724: 29724: size_t Size() const; 29724: 29724: 29724: T* Access() const; 29724: 29724: 29724: 29724: std::pair AccessElementAndIndex() const; 29724: 29724: 29724: T* AccessAtCore(size_t core_idx) const; 29724: 29724: private: 29724: std::unique_ptr data_; 29724: int size_shift_; 29724: }; 29724: 29724: template 29724: CoreLocalArray::CoreLocalArray() { 29724: int num_cpus = static_cast(std::thread::hardware_concurrency()); 29724: 29724: size_shift_ = 3; 29724: while (1 << size_shift_ < num_cpus) { 29724: ++size_shift_; 29724: } 29724: data_.reset(new T[static_cast(1) << size_shift_]); 29724: } 29724: 29724: template 29724: size_t CoreLocalArray::Size() const { 29724: return static_cast(1) << size_shift_; 29724: } 29724: 29724: template 29724: T* CoreLocalArray::Access() const { 29724: return AccessElementAndIndex().first; 29724: } 29724: 29724: template 29724: std::pair CoreLocalArray::AccessElementAndIndex() const { 29724: int cpuid = port::PhysicalCoreID(); 29724: size_t core_idx; 29724: if ((__builtin_expect((cpuid < 0), 0))) { 29724: 29724: core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); 29724: } else { 29724: core_idx = static_cast(BottomNBits(cpuid, size_shift_)); 29724: } 29724: return {AccessAtCore(core_idx), core_idx}; 29724: } 29724: 29724: template 29724: T* CoreLocalArray::AccessAtCore(size_t core_idx) const { 29724: 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29724: (static_cast ( 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29724: core_idx < static_cast(1) << size_shift_ 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29724: "core_idx < static_cast(1) << size_shift_" 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29724: ; 29724: return &data_[core_idx]; 29724: } 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 1 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29724: 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29724: namespace rocksdb { 29724: 29724: namespace detail { 29724: 29724: 29724: template 29724: struct FastRangeGenericImpl { 29724: 29724: }; 29724: 29724: template 29724: struct FastRangeGenericImpl { 29724: static inline Range Fn(uint32_t hash, Range range) { 29724: static_assert(std::is_unsigned::value, "must be unsigned"); 29724: static_assert(sizeof(Range) <= sizeof(uint32_t), 29724: "cannot be larger than hash (32 bits)"); 29724: 29724: uint64_t product = uint64_t{range} * hash; 29724: return static_cast(product >> 32); 29724: } 29724: }; 29724: 29724: template 29724: struct FastRangeGenericImpl { 29724: static inline Range Fn(uint64_t hash, Range range) { 29724: static_assert(std::is_unsigned::value, "must be unsigned"); 29724: static_assert(sizeof(Range) <= sizeof(uint64_t), 29724: "cannot be larger than hash (64 bits)"); 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29724: uint64_t range64 = range; 29724: uint64_t tmp = uint64_t{range64 & 0xffffFFFF} * uint64_t{hash & 0xffffFFFF}; 29724: tmp >>= 32; 29724: tmp += uint64_t{range64 & 0xffffFFFF} * uint64_t{hash >> 32}; 29724: 29724: uint64_t tmp2 = uint64_t{range64 >> 32} * uint64_t{hash & 0xffffFFFF}; 29724: tmp += static_cast(tmp2); 29724: tmp >>= 32; 29724: tmp += (tmp2 >> 32); 29724: tmp += uint64_t{range64 >> 32} * uint64_t{hash >> 32}; 29724: return static_cast(tmp); 29724: 29724: } 29724: }; 29724: 29724: } 29724: # 96 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29724: template 29724: inline Range FastRangeGeneric(Hash hash, Range range) { 29724: return detail::FastRangeGenericImpl::Fn(hash, range); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: inline size_t FastRange64(uint64_t hash, size_t range) { 29724: return FastRangeGeneric(hash, range); 29724: } 29724: 29724: 29724: inline uint32_t FastRange32(uint32_t hash, uint32_t range) { 29724: return FastRangeGeneric(hash, range); 29724: } 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/hash.h" 1 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/hash.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: uint64_t Hash64(const char* data, size_t n, uint64_t seed); 29724: 29724: 29724: uint64_t Hash64(const char* data, size_t n); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline uint64_t NPHash64(const char* data, size_t n, uint64_t seed) { 29724: 29724: 29724: 29724: 29724: 29724: return Hash64(data, n, seed); 29724: 29724: } 29724: 29724: 29724: inline uint64_t NPHash64(const char* data, size_t n) { 29724: 29724: 29724: 29724: 29724: 29724: return Hash64(data, n); 29724: 29724: } 29724: 29724: 29724: 29724: void Hash2x64(const char* data, size_t n, uint64_t* high64, uint64_t* low64); 29724: void Hash2x64(const char* data, size_t n, uint64_t seed, uint64_t* high64, 29724: uint64_t* low64); 29724: 29724: 29724: 29724: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, 29724: uint64_t* out_high64, uint64_t* out_low64); 29724: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 29724: uint64_t* out_high64, uint64_t* out_low64); 29724: 29724: 29724: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, 29724: uint64_t* out_high64, uint64_t* out_low64); 29724: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 29724: uint64_t* out_high64, uint64_t* out_low64); 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t Hash(const char* data, size_t n, uint32_t seed); 29724: 29724: 29724: inline uint32_t BloomHash(const Slice& key) { 29724: return Hash(key.data(), key.size(), 0xbc9f1d34); 29724: } 29724: 29724: inline uint64_t GetSliceHash64(const Slice& key) { 29724: return Hash64(key.data(), key.size()); 29724: } 29724: 29724: 29724: extern uint64_t (*kGetSliceNPHash64UnseededFnPtr)(const Slice&); 29724: 29724: inline uint64_t GetSliceNPHash64(const Slice& s) { 29724: return NPHash64(s.data(), s.size()); 29724: } 29724: 29724: inline uint64_t GetSliceNPHash64(const Slice& s, uint64_t seed) { 29724: return NPHash64(s.data(), s.size(), seed); 29724: } 29724: 29724: 29724: 29724: uint64_t GetSlicePartsNPHash64(const SliceParts& data, uint64_t seed); 29724: 29724: inline size_t GetSliceRangedNPHash(const Slice& s, size_t range) { 29724: return FastRange64(NPHash64(s.data(), s.size()), range); 29724: } 29724: 29724: 29724: inline uint32_t GetSliceHash(const Slice& s) { 29724: return Hash(s.data(), s.size(), 397); 29724: } 29724: 29724: 29724: inline uint32_t Upper32of64(uint64_t v) { 29724: return static_cast(v >> 32); 29724: } 29724: inline uint32_t Lower32of64(uint64_t v) { return static_cast(v); } 29724: 29724: 29724: struct SliceHasher32 { 29724: uint32_t operator()(const Slice& s) const { return GetSliceHash(s); } 29724: }; 29724: struct SliceNPHasher64 { 29724: uint64_t operator()(const Slice& s, uint64_t seed = 0) const { 29724: return GetSliceNPHash64(s, seed); 29724: } 29724: }; 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29724: 29724: namespace rocksdb { 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29724: class MutexLock { 29724: public: 29724: explicit MutexLock(port::Mutex *mu) : mu_(mu) { this->mu_->Lock(); } 29724: 29724: MutexLock(const MutexLock &) = delete; 29724: void operator=(const MutexLock &) = delete; 29724: 29724: ~MutexLock() { this->mu_->Unlock(); } 29724: 29724: private: 29724: port::Mutex *const mu_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class ReadLock { 29724: public: 29724: explicit ReadLock(port::RWMutex *mu) : mu_(mu) { this->mu_->ReadLock(); } 29724: 29724: ReadLock(const ReadLock &) = delete; 29724: void operator=(const ReadLock &) = delete; 29724: 29724: ~ReadLock() { this->mu_->ReadUnlock(); } 29724: 29724: private: 29724: port::RWMutex *const mu_; 29724: }; 29724: 29724: 29724: 29724: 29724: class ReadUnlock { 29724: public: 29724: explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); } 29724: 29724: ReadUnlock(const ReadUnlock &) = delete; 29724: ReadUnlock &operator=(const ReadUnlock &) = delete; 29724: 29724: ~ReadUnlock() { mu_->ReadUnlock(); } 29724: 29724: private: 29724: port::RWMutex *const mu_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class WriteLock { 29724: public: 29724: explicit WriteLock(port::RWMutex *mu) : mu_(mu) { this->mu_->WriteLock(); } 29724: 29724: WriteLock(const WriteLock &) = delete; 29724: void operator=(const WriteLock &) = delete; 29724: 29724: ~WriteLock() { this->mu_->WriteUnlock(); } 29724: 29724: private: 29724: port::RWMutex *const mu_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class SpinMutex { 29724: public: 29724: SpinMutex() : locked_(false) {} 29724: 29724: bool try_lock() { 29724: auto currently_locked = locked_.load(std::memory_order_relaxed); 29724: return !currently_locked && 29724: locked_.compare_exchange_weak(currently_locked, true, 29724: std::memory_order_acquire, 29724: std::memory_order_relaxed); 29724: } 29724: 29724: void lock() { 29724: for (size_t tries = 0;; ++tries) { 29724: if (try_lock()) { 29724: 29724: break; 29724: } 29724: port::AsmVolatilePause(); 29724: if (tries > 100) { 29724: std::this_thread::yield(); 29724: } 29724: } 29724: } 29724: 29724: void unlock() { locked_.store(false, std::memory_order_release); } 29724: 29724: private: 29724: std::atomic locked_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct alignas(64U) CacheAlignedWrapper { 29724: T obj_; 29724: }; 29724: template 29724: struct Unwrap { 29724: using type = T; 29724: static type &Go(T &t) { return t; } 29724: }; 29724: template 29724: struct Unwrap> { 29724: using type = T; 29724: static type &Go(CacheAlignedWrapper &t) { return t.obj_; } 29724: }; 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29724: template 29724: class Striped { 29724: public: 29724: explicit Striped(size_t stripe_count) 29724: : stripe_count_(stripe_count), data_(new T[stripe_count]) {} 29724: 29724: using Unwrapped = typename Unwrap::type; 29724: Unwrapped &Get(const Key &key, uint64_t seed = 0) { 29724: size_t index = FastRangeGeneric(hash_(key, seed), stripe_count_); 29724: return Unwrap::Go(data_[index]); 29724: } 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: 29724: 29724: return sizeof(*this) + stripe_count_ * sizeof(T); 29724: } 29724: 29724: private: 29724: size_t stripe_count_; 29724: std::unique_ptr data_; 29724: Hash hash_; 29724: }; 29724: 29724: } 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 29724: namespace rocksdb { 29724: 29724: enum TickersInternal : uint32_t { 29724: INTERNAL_TICKER_ENUM_START = TICKER_ENUM_MAX, 29724: INTERNAL_TICKER_ENUM_MAX 29724: }; 29724: 29724: enum HistogramsInternal : uint32_t { 29724: INTERNAL_HISTOGRAM_START = HISTOGRAM_ENUM_MAX, 29724: INTERNAL_HISTOGRAM_ENUM_MAX 29724: }; 29724: 29724: class StatisticsImpl : public Statistics { 29724: public: 29724: StatisticsImpl(std::shared_ptr stats); 29724: virtual ~StatisticsImpl(); 29724: const char* Name() const override { return kClassName(); } 29724: static const char* kClassName() { return "BasicStatistics"; } 29724: 29724: uint64_t getTickerCount(uint32_t ticker_type) const override; 29724: void histogramData(uint32_t histogram_type, 29724: HistogramData* const data) const override; 29724: std::string getHistogramString(uint32_t histogram_type) const override; 29724: 29724: void setTickerCount(uint32_t ticker_type, uint64_t count) override; 29724: uint64_t getAndResetTickerCount(uint32_t ticker_type) override; 29724: void recordTick(uint32_t ticker_type, uint64_t count) override; 29724: 29724: 29724: 29724: 29724: void measureTime(uint32_t histogramType, uint64_t time) override { 29724: recordInHistogram(histogramType, time); 29724: } 29724: void recordInHistogram(uint32_t histogram_type, uint64_t value) override; 29724: 29724: Status Reset() override; 29724: std::string ToString() const override; 29724: bool getTickerMap(std::map*) const override; 29724: bool HistEnabledForType(uint32_t type) const override; 29724: 29724: const Customizable* Inner() const override { return stats_.get(); } 29724: 29724: private: 29724: 29724: std::shared_ptr stats_; 29724: 29724: 29724: mutable port::Mutex aggregate_lock_; 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct alignas(64U) StatisticsData { 29724: std::atomic_uint_fast64_t tickers_[INTERNAL_TICKER_ENUM_MAX] = {{0}}; 29724: HistogramImpl histograms_[INTERNAL_HISTOGRAM_ENUM_MAX]; 29724: 29724: char 29724: padding[(64U - 29724: (INTERNAL_TICKER_ENUM_MAX * sizeof(std::atomic_uint_fast64_t) + 29724: INTERNAL_HISTOGRAM_ENUM_MAX * sizeof(HistogramImpl)) % 29724: 64U)] ; 29724: 29724: void* operator new(size_t s) { return port::cacheline_aligned_alloc(s); } 29724: void* operator new[](size_t s) { return port::cacheline_aligned_alloc(s); } 29724: void operator delete(void* p) { port::cacheline_aligned_free(p); } 29724: void operator delete[](void* p) { port::cacheline_aligned_free(p); } 29724: }; 29724: 29724: 29724: static_assert(sizeof(StatisticsData) % 64U == 0, 29724: "Expected " "64U" "-byte aligned"); 29724: 29724: 29724: CoreLocalArray per_core_stats_; 29724: 29724: uint64_t getTickerCountLocked(uint32_t ticker_type) const; 29724: std::unique_ptr getHistogramImplLocked( 29724: uint32_t histogram_type) const; 29724: void setTickerCountLocked(uint32_t ticker_type, uint64_t count); 29724: }; 29724: 29724: 29724: inline void RecordInHistogram(Statistics* statistics, uint32_t histogram_type, 29724: uint64_t value) { 29724: if (statistics) { 29724: statistics->recordInHistogram(histogram_type, value); 29724: } 29724: } 29724: 29724: inline void RecordTimeToHistogram(Statistics* statistics, 29724: uint32_t histogram_type, uint64_t value) { 29724: if (statistics) { 29724: statistics->reportTimeToHistogram(histogram_type, value); 29724: } 29724: } 29724: 29724: inline void RecordTick(Statistics* statistics, uint32_t ticker_type, 29724: uint64_t count = 1) { 29724: if (statistics) { 29724: statistics->recordTick(ticker_type, count); 29724: } 29724: } 29724: 29724: inline void SetTickerCount(Statistics* statistics, uint32_t ticker_type, 29724: uint64_t count) { 29724: if (statistics) { 29724: statistics->setTickerCount(ticker_type, count); 29724: } 29724: } 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/chrono" 1 3 29724: # 33 "/usr/include/c++/14/chrono" 3 29724: 29724: # 34 "/usr/include/c++/14/chrono" 3 29724: # 55 "/usr/include/c++/14/chrono" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 56 "/usr/include/c++/14/chrono" 2 3 29724: 29724: 29724: # 57 "/usr/include/c++/14/chrono" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 74 "/usr/include/c++/14/chrono" 3 29724: namespace chrono 29724: { 29724: # 3328 "/usr/include/c++/14/chrono" 3 29724: } 29724: # 3356 "/usr/include/c++/14/chrono" 3 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 2 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29724: 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29724: namespace rocksdb { 29724: struct ConfigOptions; 29724: 29724: 29724: 29724: class SystemClock : public Customizable { 29724: public: 29724: ~SystemClock() override {} 29724: 29724: static const char* Type() { return "SystemClock"; } 29724: static Status CreateFromString(const ConfigOptions& options, 29724: const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: 29724: static const char* kDefaultName() { return "DefaultClock"; } 29724: 29724: 29724: 29724: static const std::shared_ptr& Default(); 29724: 29724: 29724: 29724: 29724: virtual uint64_t NowMicros() = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 29724: 29724: 29724: 29724: virtual uint64_t CPUMicros() { return 0; } 29724: 29724: 29724: 29724: 29724: virtual uint64_t CPUNanos() { return CPUMicros() * 1000; } 29724: 29724: 29724: virtual void SleepForMicroseconds(int micros) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool TimedWait(port::CondVar* cv, std::chrono::microseconds deadline); 29724: 29724: 29724: 29724: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 29724: 29724: 29724: virtual std::string TimeToString(uint64_t time) = 0; 29724: }; 29724: 29724: 29724: 29724: class SystemClockWrapper : public SystemClock { 29724: public: 29724: explicit SystemClockWrapper(const std::shared_ptr& t); 29724: 29724: uint64_t NowMicros() override { return target_->NowMicros(); } 29724: 29724: uint64_t NowNanos() override { return target_->NowNanos(); } 29724: 29724: uint64_t CPUMicros() override { return target_->CPUMicros(); } 29724: 29724: uint64_t CPUNanos() override { return target_->CPUNanos(); } 29724: 29724: void SleepForMicroseconds(int micros) override { 29724: return target_->SleepForMicroseconds(micros); 29724: } 29724: 29724: bool TimedWait(port::CondVar* cv, 29724: std::chrono::microseconds deadline) override { 29724: return target_->TimedWait(cv, deadline); 29724: } 29724: 29724: Status GetCurrentTime(int64_t* unix_time) override { 29724: return target_->GetCurrentTime(unix_time); 29724: } 29724: 29724: std::string TimeToString(uint64_t time) override { 29724: return target_->TimeToString(time); 29724: } 29724: 29724: Status PrepareOptions(const ConfigOptions& options) override; 29724: std::string SerializeOptions(const ConfigOptions& config_options, 29724: const std::string& header) const override; 29724: const Customizable* Inner() const override { return target_.get(); } 29724: 29724: protected: 29724: std::shared_ptr target_; 29724: }; 29724: 29724: } 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class PerfStepTimer { 29724: public: 29724: explicit PerfStepTimer( 29724: uint64_t* metric, SystemClock* clock = nullptr, bool use_cpu_time = false, 29724: PerfLevel enable_level = PerfLevel::kEnableTimeExceptForMutex, 29724: Statistics* statistics = nullptr, uint32_t ticker_type = 0) 29724: : perf_counter_enabled_(perf_level >= enable_level), 29724: use_cpu_time_(use_cpu_time), 29724: ticker_type_(ticker_type), 29724: clock_((perf_counter_enabled_ || statistics != nullptr) 29724: ? (clock ? clock : SystemClock::Default().get()) 29724: : nullptr), 29724: start_(0), 29724: metric_(metric), 29724: statistics_(statistics) {} 29724: 29724: ~PerfStepTimer() { Stop(); } 29724: 29724: void Start() { 29724: if (perf_counter_enabled_ || statistics_ != nullptr) { 29724: start_ = time_now(); 29724: } 29724: } 29724: 29724: void Measure() { 29724: if (start_) { 29724: uint64_t now = time_now(); 29724: *metric_ += now - start_; 29724: start_ = now; 29724: } 29724: } 29724: 29724: void Stop() { 29724: if (start_) { 29724: uint64_t duration = time_now() - start_; 29724: if (perf_counter_enabled_) { 29724: *metric_ += duration; 29724: } 29724: 29724: if (statistics_ != nullptr) { 29724: RecordTick(statistics_, ticker_type_, duration); 29724: } 29724: start_ = 0; 29724: } 29724: } 29724: 29724: private: 29724: uint64_t time_now() { 29724: if (!use_cpu_time_) { 29724: return clock_->NowNanos(); 29724: } else { 29724: return clock_->CPUNanos(); 29724: } 29724: } 29724: 29724: const bool perf_counter_enabled_; 29724: const bool use_cpu_time_; 29724: uint32_t ticker_type_; 29724: SystemClock* const clock_; 29724: uint64_t start_; 29724: uint64_t* metric_; 29724: Statistics* statistics_; 29724: }; 29724: 29724: } 29724: # 8 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29724: namespace rocksdb { 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29724: struct PerfContextByLevelBase { 29724: 29724: 29724: 29724: uint64_t bloom_filter_useful = 0; 29724: 29724: uint64_t bloom_filter_full_positive = 0; 29724: 29724: 29724: uint64_t bloom_filter_full_true_positive = 0; 29724: 29724: 29724: 29724: uint64_t user_key_return_count = 0; 29724: 29724: 29724: uint64_t get_from_table_nanos = 0; 29724: 29724: uint64_t block_cache_hit_count = 0; 29724: uint64_t block_cache_miss_count = 0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct PerfContextByLevel : public PerfContextByLevelBase { 29724: void Reset(); 29724: }; 29724: # 67 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29724: struct PerfContextBase { 29724: uint64_t user_key_comparison_count; 29724: uint64_t block_cache_hit_count; 29724: uint64_t block_read_count; 29724: uint64_t block_read_byte; 29724: uint64_t block_read_time; 29724: 29724: uint64_t block_read_cpu_time; 29724: uint64_t block_cache_index_hit_count; 29724: 29724: uint64_t block_cache_standalone_handle_count; 29724: 29724: 29724: uint64_t block_cache_real_handle_count; 29724: uint64_t index_block_read_count; 29724: uint64_t block_cache_filter_hit_count; 29724: uint64_t filter_block_read_count; 29724: uint64_t compression_dict_block_read_count; 29724: 29724: 29724: uint64_t block_cache_index_read_byte; 29724: uint64_t block_cache_filter_read_byte; 29724: uint64_t block_cache_compression_dict_read_byte; 29724: uint64_t block_cache_read_byte; 29724: 29724: uint64_t secondary_cache_hit_count; 29724: 29724: uint64_t compressed_sec_cache_insert_real_count; 29724: 29724: uint64_t compressed_sec_cache_insert_dummy_count; 29724: 29724: uint64_t compressed_sec_cache_uncompressed_bytes; 29724: 29724: uint64_t compressed_sec_cache_compressed_bytes; 29724: 29724: uint64_t block_checksum_time; 29724: uint64_t block_decompress_time; 29724: 29724: uint64_t get_read_bytes; 29724: uint64_t multiget_read_bytes; 29724: uint64_t iter_read_bytes; 29724: 29724: uint64_t blob_cache_hit_count; 29724: uint64_t blob_read_count; 29724: uint64_t blob_read_byte; 29724: uint64_t blob_read_time; 29724: uint64_t blob_checksum_time; 29724: uint64_t blob_decompress_time; 29724: # 133 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29724: uint64_t internal_key_skipped_count; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t internal_delete_skipped_count; 29724: 29724: 29724: 29724: uint64_t internal_recent_skipped_count; 29724: 29724: 29724: 29724: uint64_t internal_merge_count; 29724: 29724: 29724: 29724: uint64_t internal_merge_point_lookup_count; 29724: 29724: 29724: 29724: uint64_t internal_range_del_reseek_count; 29724: 29724: uint64_t get_snapshot_time; 29724: uint64_t get_from_memtable_time; 29724: uint64_t get_from_memtable_count; 29724: 29724: uint64_t get_post_process_time; 29724: uint64_t get_from_output_files_time; 29724: 29724: uint64_t seek_on_memtable_time; 29724: 29724: 29724: uint64_t seek_on_memtable_count; 29724: 29724: uint64_t next_on_memtable_count; 29724: 29724: uint64_t prev_on_memtable_count; 29724: 29724: uint64_t seek_child_seek_time; 29724: 29724: uint64_t seek_child_seek_count; 29724: uint64_t seek_min_heap_time; 29724: uint64_t seek_max_heap_time; 29724: 29724: uint64_t seek_internal_seek_time; 29724: 29724: uint64_t find_next_user_entry_time; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t write_wal_time; 29724: 29724: uint64_t write_memtable_time; 29724: 29724: uint64_t write_delay_time; 29724: 29724: 29724: uint64_t write_scheduling_flushes_compactions_time; 29724: 29724: uint64_t write_pre_and_post_process_time; 29724: 29724: 29724: uint64_t write_thread_wait_nanos; 29724: 29724: 29724: uint64_t db_mutex_lock_nanos; 29724: 29724: uint64_t db_condition_wait_nanos; 29724: 29724: uint64_t merge_operator_time_nanos; 29724: 29724: 29724: uint64_t read_index_block_nanos; 29724: 29724: uint64_t read_filter_block_nanos; 29724: 29724: uint64_t new_table_block_iter_nanos; 29724: 29724: uint64_t new_table_iterator_nanos; 29724: 29724: uint64_t block_seek_nanos; 29724: 29724: uint64_t find_table_nanos; 29724: 29724: uint64_t bloom_memtable_hit_count; 29724: 29724: uint64_t bloom_memtable_miss_count; 29724: 29724: uint64_t bloom_sst_hit_count; 29724: 29724: uint64_t bloom_sst_miss_count; 29724: 29724: 29724: uint64_t key_lock_wait_time; 29724: 29724: uint64_t key_lock_wait_count; 29724: 29724: 29724: 29724: uint64_t env_new_sequential_file_nanos; 29724: uint64_t env_new_random_access_file_nanos; 29724: uint64_t env_new_writable_file_nanos; 29724: uint64_t env_reuse_writable_file_nanos; 29724: uint64_t env_new_random_rw_file_nanos; 29724: uint64_t env_new_directory_nanos; 29724: uint64_t env_file_exists_nanos; 29724: uint64_t env_get_children_nanos; 29724: uint64_t env_get_children_file_attributes_nanos; 29724: uint64_t env_delete_file_nanos; 29724: uint64_t env_create_dir_nanos; 29724: uint64_t env_create_dir_if_missing_nanos; 29724: uint64_t env_delete_dir_nanos; 29724: uint64_t env_get_file_size_nanos; 29724: uint64_t env_get_file_modification_time_nanos; 29724: uint64_t env_rename_file_nanos; 29724: uint64_t env_link_file_nanos; 29724: uint64_t env_lock_file_nanos; 29724: uint64_t env_unlock_file_nanos; 29724: uint64_t env_new_logger_nanos; 29724: 29724: uint64_t get_cpu_nanos; 29724: uint64_t iter_next_cpu_nanos; 29724: uint64_t iter_prev_cpu_nanos; 29724: uint64_t iter_seek_cpu_nanos; 29724: 29724: 29724: 29724: 29724: uint64_t iter_next_count; 29724: uint64_t iter_prev_count; 29724: uint64_t iter_seek_count; 29724: 29724: 29724: uint64_t encrypt_data_nanos; 29724: 29724: uint64_t decrypt_data_nanos; 29724: 29724: uint64_t number_async_seek; 29724: }; 29724: 29724: struct PerfContext : public PerfContextBase { 29724: ~PerfContext(); 29724: 29724: PerfContext() { Reset(); } 29724: 29724: PerfContext(const PerfContext&); 29724: PerfContext& operator=(const PerfContext&); 29724: PerfContext(PerfContext&&) noexcept; 29724: 29724: void Reset(); 29724: 29724: std::string ToString(bool exclude_zero_counters = false) const; 29724: 29724: 29724: void EnablePerLevelPerfContext(); 29724: 29724: 29724: void DisablePerLevelPerfContext(); 29724: 29724: 29724: void ClearPerLevelPerfContext(); 29724: 29724: std::map* level_to_perf_context = nullptr; 29724: bool per_level_perf_context_enabled = false; 29724: 29724: void copyMetrics(const PerfContext* other) noexcept; 29724: }; 29724: # 317 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29724: PerfContext* get_perf_context(); 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/stop_watch.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class StopWatch { 29724: public: 29724: StopWatch(SystemClock* clock, Statistics* statistics, 29724: const uint32_t hist_type_1, 29724: const uint32_t hist_type_2 = Histograms::HISTOGRAM_ENUM_MAX, 29724: uint64_t* elapsed = nullptr, bool overwrite = true, 29724: bool delay_enabled = false) 29724: : clock_(clock), 29724: statistics_(statistics), 29724: hist_type_1_(statistics && statistics->HistEnabledForType(hist_type_1) 29724: ? hist_type_1 29724: : Histograms::HISTOGRAM_ENUM_MAX), 29724: hist_type_2_(statistics && statistics->HistEnabledForType(hist_type_2) 29724: ? hist_type_2 29724: : Histograms::HISTOGRAM_ENUM_MAX), 29724: elapsed_(elapsed), 29724: overwrite_(overwrite), 29724: stats_enabled_(statistics && 29724: statistics->get_stats_level() > 29724: StatsLevel::kExceptTimers && 29724: (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX || 29724: hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX)), 29724: delay_enabled_(delay_enabled), 29724: total_delay_(0), 29724: delay_start_time_(0), 29724: start_time_((stats_enabled_ || elapsed != nullptr) ? clock->NowMicros() 29724: : 0) {} 29724: 29724: ~StopWatch() { 29724: if (elapsed_) { 29724: if (overwrite_) { 29724: *elapsed_ = clock_->NowMicros() - start_time_; 29724: } else { 29724: *elapsed_ += clock_->NowMicros() - start_time_; 29724: } 29724: } 29724: if (elapsed_ && delay_enabled_) { 29724: *elapsed_ -= total_delay_; 29724: } 29724: if (stats_enabled_) { 29724: const auto time = (elapsed_ != nullptr) 29724: ? *elapsed_ 29724: : (clock_->NowMicros() - start_time_); 29724: if (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX) { 29724: statistics_->reportTimeToHistogram(hist_type_1_, time); 29724: } 29724: if (hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX) { 29724: statistics_->reportTimeToHistogram(hist_type_2_, time); 29724: } 29724: } 29724: } 29724: 29724: void DelayStart() { 29724: 29724: 29724: if (elapsed_ && delay_enabled_ && delay_start_time_ == 0) { 29724: delay_start_time_ = clock_->NowMicros(); 29724: } 29724: } 29724: 29724: void DelayStop() { 29724: if (elapsed_ && delay_enabled_ && delay_start_time_ != 0) { 29724: total_delay_ += clock_->NowMicros() - delay_start_time_; 29724: } 29724: 29724: 29724: delay_start_time_ = 0; 29724: } 29724: 29724: uint64_t GetDelay() const { return delay_enabled_ ? total_delay_ : 0; } 29724: 29724: uint64_t start_time() const { return start_time_; } 29724: 29724: private: 29724: SystemClock* clock_; 29724: Statistics* statistics_; 29724: const uint32_t hist_type_1_; 29724: const uint32_t hist_type_2_; 29724: uint64_t* elapsed_; 29724: bool overwrite_; 29724: bool stats_enabled_; 29724: bool delay_enabled_; 29724: uint64_t total_delay_; 29724: uint64_t delay_start_time_; 29724: const uint64_t start_time_; 29724: }; 29724: 29724: 29724: class StopWatchNano { 29724: public: 29724: explicit StopWatchNano(SystemClock* clock, bool auto_start = false) 29724: : clock_(clock), start_(0) { 29724: if (auto_start) { 29724: Start(); 29724: } 29724: } 29724: 29724: void Start() { start_ = clock_->NowNanos(); } 29724: 29724: uint64_t ElapsedNanos(bool reset = false) { 29724: auto now = clock_->NowNanos(); 29724: auto elapsed = now - start_; 29724: if (reset) { 29724: start_ = now; 29724: } 29724: return elapsed; 29724: } 29724: 29724: uint64_t ElapsedNanosSafe(bool reset = false) { 29724: return (clock_ != nullptr) ? ElapsedNanos(reset) : 0U; 29724: } 29724: 29724: bool IsStarted() { return start_ != 0; } 29724: 29724: private: 29724: SystemClock* clock_; 29724: uint64_t start_; 29724: }; 29724: 29724: } 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern thread_local PerfContext perf_context; 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: class UserComparatorWrapper { 29724: public: 29724: 29724: 29724: UserComparatorWrapper() : user_comparator_(nullptr) {} 29724: 29724: explicit UserComparatorWrapper(const Comparator* const user_cmp) 29724: : user_comparator_(user_cmp) {} 29724: 29724: ~UserComparatorWrapper() = default; 29724: 29724: const Comparator* user_comparator() const { return user_comparator_; } 29724: 29724: int Compare(const Slice& a, const Slice& b) const { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29724: return user_comparator_->Compare(a, b); 29724: } 29724: 29724: bool Equal(const Slice& a, const Slice& b) const { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29724: return user_comparator_->Equal(a, b); 29724: } 29724: 29724: int CompareTimestamp(const Slice& ts1, const Slice& ts2) const { 29724: return user_comparator_->CompareTimestamp(ts1, ts2); 29724: } 29724: 29724: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29724: return user_comparator_->CompareWithoutTimestamp(a, b); 29724: } 29724: 29724: int CompareWithoutTimestamp(const Slice& a, bool a_has_ts, const Slice& b, 29724: bool b_has_ts) const { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29724: return user_comparator_->CompareWithoutTimestamp(a, a_has_ts, b, b_has_ts); 29724: } 29724: 29724: bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 29724: return user_comparator_->EqualWithoutTimestamp(a, b); 29724: } 29724: 29724: private: 29724: const Comparator* user_comparator_; 29724: }; 29724: 29724: } 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class InternalKey; 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum ValueType : unsigned char { 29724: kTypeDeletion = 0x0, 29724: kTypeValue = 0x1, 29724: kTypeMerge = 0x2, 29724: kTypeLogData = 0x3, 29724: kTypeColumnFamilyDeletion = 0x4, 29724: kTypeColumnFamilyValue = 0x5, 29724: kTypeColumnFamilyMerge = 0x6, 29724: kTypeSingleDeletion = 0x7, 29724: kTypeColumnFamilySingleDeletion = 0x8, 29724: kTypeBeginPrepareXID = 0x9, 29724: kTypeEndPrepareXID = 0xA, 29724: kTypeCommitXID = 0xB, 29724: kTypeRollbackXID = 0xC, 29724: kTypeNoop = 0xD, 29724: kTypeColumnFamilyRangeDeletion = 0xE, 29724: kTypeRangeDeletion = 0xF, 29724: kTypeColumnFamilyBlobIndex = 0x10, 29724: kTypeBlobIndex = 0x11, 29724: 29724: 29724: 29724: 29724: kTypeBeginPersistedPrepareXID = 0x12, 29724: 29724: 29724: 29724: kTypeBeginUnprepareXID = 0x13, 29724: kTypeDeletionWithTimestamp = 0x14, 29724: kTypeCommitXIDAndTimestamp = 0x15, 29724: kTypeWideColumnEntity = 0x16, 29724: kTypeColumnFamilyWideColumnEntity = 0x17, 29724: kTypeValuePreferredSeqno = 0x18, 29724: kTypeColumnFamilyValuePreferredSeqno = 0x19, 29724: kTypeMaxValid, 29724: 29724: kMaxValue = 0x7F 29724: }; 29724: 29724: 29724: extern const ValueType kValueTypeForSeek; 29724: extern const ValueType kValueTypeForSeekForPrev; 29724: 29724: 29724: 29724: struct UserKeyRange { 29724: 29724: 29724: Slice start; 29724: Slice limit; 29724: 29724: UserKeyRange() = default; 29724: UserKeyRange(const Slice& s, const Slice& l) : start(s), limit(l) {} 29724: }; 29724: 29724: 29724: 29724: struct UserKeyRangePtr { 29724: 29724: 29724: 29724: std::optional start; 29724: 29724: std::optional limit; 29724: 29724: UserKeyRangePtr(const std::optional& s, const std::optional& l) 29724: : start(s), limit(l) {} 29724: }; 29724: 29724: 29724: 29724: inline bool IsValueType(ValueType t) { 29724: return t <= kTypeMerge || kTypeSingleDeletion == t || kTypeBlobIndex == t || 29724: kTypeDeletionWithTimestamp == t || kTypeWideColumnEntity == t || 29724: kTypeValuePreferredSeqno == t; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: inline bool IsExtendedValueType(ValueType t) { 29724: return IsValueType(t) || t == kTypeRangeDeletion || t == kTypeMaxValid; 29724: } 29724: 29724: 29724: 29724: static const SequenceNumber kMaxSequenceNumber = ((0x1ull << 56) - 1); 29724: 29724: static const SequenceNumber kDisableGlobalSequenceNumber = 29724: std::numeric_limits::max(); 29724: 29724: constexpr uint64_t kNumInternalBytes = 8; 29724: 29724: 29724: extern const std::string kDisableUserTimestamp; 29724: 29724: 29724: 29724: struct ParsedInternalKey { 29724: Slice user_key; 29724: SequenceNumber sequence; 29724: ValueType type; 29724: 29724: ParsedInternalKey() 29724: : sequence(kMaxSequenceNumber), 29724: type(kTypeDeletion) 29724: {} 29724: 29724: ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) 29724: : user_key(u), sequence(seq), type(t) {} 29724: std::string DebugString(bool log_err_key, bool hex, 29724: const Comparator* ucmp = nullptr) const; 29724: 29724: void clear() { 29724: user_key.clear(); 29724: sequence = 0; 29724: type = kTypeDeletion; 29724: } 29724: 29724: void SetTimestamp(const Slice& ts) { 29724: 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts.size() <= user_key.size() 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts.size() <= user_key.size()" 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: const char* addr = user_key.data() + user_key.size() - ts.size(); 29724: memcpy(const_cast(addr), ts.data(), ts.size()); 29724: } 29724: 29724: Slice GetTimestamp(size_t ts_sz) { 29724: 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts_sz <= user_key.size() 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts_sz <= user_key.size()" 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: const char* addr = user_key.data() + user_key.size() - ts_sz; 29724: return Slice(const_cast(addr), ts_sz); 29724: } 29724: }; 29724: 29724: 29724: inline size_t InternalKeyEncodingLength(const ParsedInternalKey& key) { 29724: return key.user_key.size() + kNumInternalBytes; 29724: } 29724: 29724: 29724: inline uint64_t PackSequenceAndType(uint64_t seq, ValueType t) { 29724: 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: seq <= kMaxSequenceNumber 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "seq <= kMaxSequenceNumber" 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: 29724: 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: IsExtendedValueType(t) || t == kTypeMaxValid 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "IsExtendedValueType(t) || t == kTypeMaxValid" 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return (seq << 8) | t; 29724: } 29724: 29724: 29724: 29724: inline void UnPackSequenceAndType(uint64_t packed, uint64_t* seq, 29724: ValueType* t) { 29724: *seq = packed >> 8; 29724: *t = static_cast(packed & 0xff); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: const uint64_t kRangeTombstoneSentinel = 29724: PackSequenceAndType(kMaxSequenceNumber, kTypeRangeDeletion); 29724: 29724: EntryType GetEntryType(ValueType value_type); 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendInternalKey(std::string* result, const ParsedInternalKey& key); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendInternalKeyWithDifferentTimestamp(std::string* result, 29724: const ParsedInternalKey& key, 29724: const Slice& ts); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendUserKeyWithDifferentTimestamp(std::string* result, const Slice& key, 29724: const Slice& ts); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendInternalKeyFooter(std::string* result, SequenceNumber s, 29724: ValueType t); 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendKeyWithMinTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendKeyWithMaxTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendUserKeyWithMinTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void AppendUserKeyWithMaxTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: # 281 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: void PadInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: void PadInternalKeyWithMaxTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: # 301 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: void StripTimestampFromInternalKey(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: # 311 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: void ReplaceInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 29724: size_t ts_sz); 29724: 29724: 29724: 29724: 29724: 29724: Status ParseInternalKey(const Slice& internal_key, ParsedInternalKey* result, 29724: bool log_err_key); 29724: 29724: 29724: 29724: 29724: 29724: inline Slice ExtractUserKey(const Slice& internal_key) { 29724: 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: internal_key.size() >= kNumInternalBytes 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "internal_key.size() >= kNumInternalBytes" 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(internal_key.data(), internal_key.size() - kNumInternalBytes); 29724: } 29724: 29724: 29724: 29724: inline Slice ExtractUserKeyAndStripTimestamp(const Slice& internal_key, 29724: size_t ts_sz) { 29724: 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: internal_key.size() >= kNumInternalBytes + ts_sz 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "internal_key.size() >= kNumInternalBytes + ts_sz" 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(internal_key.data(), 29724: internal_key.size() - (kNumInternalBytes + ts_sz)); 29724: } 29724: 29724: 29724: 29724: inline Slice StripTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 29724: 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: user_key.size() >= ts_sz 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "user_key.size() >= ts_sz" 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(user_key.data(), user_key.size() - ts_sz); 29724: } 29724: 29724: 29724: 29724: inline Slice ExtractTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 29724: 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: user_key.size() >= ts_sz 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "user_key.size() >= ts_sz" 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(user_key.data() + user_key.size() - ts_sz, ts_sz); 29724: } 29724: 29724: 29724: 29724: inline Slice ExtractTimestampFromKey(const Slice& internal_key, size_t ts_sz) { 29724: const size_t key_size = internal_key.size(); 29724: 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_size >= kNumInternalBytes + ts_sz 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_size >= kNumInternalBytes + ts_sz" 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(internal_key.data() + key_size - ts_sz - kNumInternalBytes, 29724: ts_sz); 29724: } 29724: 29724: 29724: 29724: inline uint64_t ExtractInternalKeyFooter(const Slice& internal_key) { 29724: 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: internal_key.size() >= kNumInternalBytes 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "internal_key.size() >= kNumInternalBytes" 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: const size_t n = internal_key.size(); 29724: return DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29724: } 29724: 29724: 29724: 29724: inline ValueType ExtractValueType(const Slice& internal_key) { 29724: uint64_t num = ExtractInternalKeyFooter(internal_key); 29724: unsigned char c = num & 0xff; 29724: return static_cast(c); 29724: } 29724: 29724: 29724: 29724: class InternalKeyComparator 29724: 29724: 29724: 29724: : public CompareInterface { 29724: private: 29724: UserComparatorWrapper user_comparator_; 29724: 29724: public: 29724: 29724: 29724: InternalKeyComparator() = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit InternalKeyComparator(const Comparator* c) : user_comparator_(c) {} 29724: virtual ~InternalKeyComparator() {} 29724: 29724: int Compare(const Slice& a, const Slice& b) const override; 29724: 29724: bool Equal(const Slice& a, const Slice& b) const { 29724: 29724: 29724: return Compare(a, b) == 0; 29724: } 29724: 29724: 29724: int CompareKeySeq(const Slice& a, const Slice& b) const; 29724: int CompareKeySeq(const ParsedInternalKey& a, const Slice& b) const; 29724: 29724: const Comparator* user_comparator() const { 29724: return user_comparator_.user_comparator(); 29724: } 29724: 29724: int Compare(const InternalKey& a, const InternalKey& b) const; 29724: int Compare(const ParsedInternalKey& a, const ParsedInternalKey& b) const; 29724: int Compare(const Slice& a, const ParsedInternalKey& b) const; 29724: int Compare(const ParsedInternalKey& a, const Slice& b) const; 29724: 29724: 29724: 29724: 29724: int Compare(const Slice& a, SequenceNumber a_global_seqno, const Slice& b, 29724: SequenceNumber b_global_seqno) const; 29724: }; 29724: 29724: 29724: class InternalKey { 29724: private: 29724: std::string rep_; 29724: 29724: public: 29724: InternalKey() {} 29724: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t) { 29724: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, s, t)); 29724: } 29724: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t, Slice ts) { 29724: AppendInternalKeyWithDifferentTimestamp( 29724: &rep_, ParsedInternalKey(_user_key, s, t), ts); 29724: } 29724: 29724: 29724: 29724: void SetMaxPossibleForUserKey(const Slice& _user_key) { 29724: AppendInternalKey( 29724: &rep_, ParsedInternalKey(_user_key, 0, static_cast(0))); 29724: } 29724: 29724: 29724: 29724: void SetMinPossibleForUserKey(const Slice& _user_key) { 29724: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, kMaxSequenceNumber, 29724: kValueTypeForSeek)); 29724: } 29724: 29724: bool Valid() const { 29724: ParsedInternalKey parsed; 29724: return (ParseInternalKey(Slice(rep_), &parsed, false ) 29724: .ok()); 29724: } 29724: 29724: void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } 29724: Slice Encode() const { 29724: 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: !rep_.empty() 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "!rep_.empty()" 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return rep_; 29724: } 29724: 29724: Slice user_key() const { return ExtractUserKey(rep_); } 29724: size_t size() const { return rep_.size(); } 29724: 29724: void Set(const Slice& _user_key, SequenceNumber s, ValueType t) { 29724: SetFrom(ParsedInternalKey(_user_key, s, t)); 29724: } 29724: 29724: void Set(const Slice& _user_key_with_ts, SequenceNumber s, ValueType t, 29724: const Slice& ts) { 29724: ParsedInternalKey pik(_user_key_with_ts, s, t); 29724: 29724: 29724: SetFrom(pik, ts); 29724: } 29724: 29724: void SetFrom(const ParsedInternalKey& p) { 29724: rep_.clear(); 29724: AppendInternalKey(&rep_, p); 29724: } 29724: 29724: void SetFrom(const ParsedInternalKey& p, const Slice& ts) { 29724: rep_.clear(); 29724: AppendInternalKeyWithDifferentTimestamp(&rep_, p, ts); 29724: } 29724: 29724: void Clear() { rep_.clear(); } 29724: 29724: 29724: 29724: std::string* rep() { return &rep_; } 29724: 29724: 29724: 29724: void ConvertFromUserKey(SequenceNumber s, ValueType t) { 29724: AppendInternalKeyFooter(&rep_, s, t); 29724: } 29724: 29724: std::string DebugString(bool hex, const Comparator* ucmp = nullptr) const; 29724: }; 29724: 29724: inline int InternalKeyComparator::Compare(const InternalKey& a, 29724: const InternalKey& b) const { 29724: return Compare(a.Encode(), b.Encode()); 29724: } 29724: 29724: inline Status ParseInternalKey(const Slice& internal_key, 29724: ParsedInternalKey* result, bool log_err_key) { 29724: const size_t n = internal_key.size(); 29724: 29724: if (n < kNumInternalBytes) { 29724: return Status::Corruption("Corrupted Key: Internal Key too small. Size=" + 29724: std::to_string(n) + ". "); 29724: } 29724: 29724: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29724: unsigned char c = num & 0xff; 29724: result->sequence = num >> 8; 29724: result->type = static_cast(c); 29724: 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: result->type <= ValueType::kMaxValue 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "result->type <= ValueType::kMaxValue" 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: result->user_key = Slice(internal_key.data(), n - kNumInternalBytes); 29724: 29724: if (IsExtendedValueType(result->type)) { 29724: return Status::OK(); 29724: } else { 29724: return Status::Corruption("Corrupted Key", 29724: result->DebugString(log_err_key, true)); 29724: } 29724: } 29724: 29724: 29724: 29724: inline void UpdateInternalKey(std::string* ikey, uint64_t seq, ValueType t) { 29724: size_t ikey_sz = ikey->size(); 29724: 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ikey_sz >= kNumInternalBytes 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ikey_sz >= kNumInternalBytes" 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: uint64_t newval = (seq << 8) | t; 29724: 29724: 29724: 29724: EncodeFixed64(&(*ikey)[ikey_sz - kNumInternalBytes], newval); 29724: } 29724: 29724: 29724: inline uint64_t GetInternalKeySeqno(const Slice& internal_key) { 29724: const size_t n = internal_key.size(); 29724: 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: n >= kNumInternalBytes 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "n >= kNumInternalBytes" 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29724: return num >> 8; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class IterKey { 29724: static constexpr size_t kInlineBufferSize = 39; 29724: 29724: 29724: static constexpr char kTsMin[] = "\x00\x00\x00\x00\x00\x00\x00\x00"; 29724: 29724: public: 29724: IterKey() 29724: : buf_(space_), 29724: key_(buf_), 29724: key_size_(0), 29724: buf_size_(kInlineBufferSize), 29724: is_user_key_(true), 29724: secondary_buf_(space_for_secondary_buf_), 29724: secondary_buf_size_(kInlineBufferSize) {} 29724: 29724: IterKey(const IterKey&) = delete; 29724: void operator=(const IterKey&) = delete; 29724: 29724: ~IterKey() { 29724: ResetBuffer(); 29724: ResetSecondaryBuffer(); 29724: } 29724: 29724: 29724: void SetIsUserKey(bool is_user_key) { is_user_key_ = is_user_key; } 29724: 29724: 29724: 29724: 29724: Slice GetKey() const { return Slice(key_, key_size_); } 29724: 29724: Slice GetInternalKey() const { 29724: 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: !IsUserKey() 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "!IsUserKey()" 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(key_, key_size_); 29724: } 29724: 29724: 29724: 29724: Slice GetUserKey() const { 29724: if (IsUserKey()) { 29724: return Slice(key_, key_size_); 29724: } else { 29724: 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_size_ >= kNumInternalBytes 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_size_ >= kNumInternalBytes" 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: return Slice(key_, key_size_ - kNumInternalBytes); 29724: } 29724: } 29724: 29724: size_t Size() const { return key_size_; } 29724: 29724: void Clear() { key_size_ = 0; } 29724: 29724: 29724: 29724: 29724: 29724: void TrimAppend(const size_t shared_len, const char* non_shared_data, 29724: const size_t non_shared_len) { 29724: 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: shared_len <= key_size_ 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "shared_len <= key_size_" 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: size_t total_size = shared_len + non_shared_len; 29724: 29724: if (IsKeyPinned() ) { 29724: 29724: EnlargeBufferIfNeeded(total_size); 29724: memcpy(buf_, key_, shared_len); 29724: } else if (total_size > buf_size_) { 29724: 29724: char* p = new char[total_size]; 29724: memcpy(p, key_, shared_len); 29724: 29724: if (buf_ != space_) { 29724: delete[] buf_; 29724: } 29724: 29724: buf_ = p; 29724: buf_size_ = total_size; 29724: } 29724: 29724: memcpy(buf_ + shared_len, non_shared_data, non_shared_len); 29724: key_ = buf_; 29724: key_size_ = total_size; 29724: } 29724: 29724: 29724: 29724: 29724: void TrimAppendWithTimestamp(const size_t shared_len, 29724: const char* non_shared_data, 29724: const size_t non_shared_len, 29724: const size_t ts_sz) { 29724: 29724: 29724: 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts_sz == sizeof(uint64_t) 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts_sz == sizeof(uint64_t)" 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: size_t next_key_slice_index = 0; 29724: if (IsUserKey()) { 29724: key_slices_[next_key_slice_index++] = Slice(key_, shared_len); 29724: key_slices_[next_key_slice_index++] = 29724: Slice(non_shared_data, non_shared_len); 29724: key_slices_[next_key_slice_index++] = Slice(kTsMin, ts_sz); 29724: } else { 29724: 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: shared_len + non_shared_len >= kNumInternalBytes 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "shared_len + non_shared_len >= kNumInternalBytes" 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: const size_t user_key_len = key_size_ - kNumInternalBytes; 29724: const size_t sharable_user_key_len = user_key_len - ts_sz; 29724: const size_t shared_user_key_len = 29724: std::min(shared_len, sharable_user_key_len); 29724: const size_t shared_internal_bytes_len = shared_len - shared_user_key_len; 29724: 29724: 29724: 29724: bool ts_added = false; 29724: 29724: MaybeAddKeyPartsWithTimestamp( 29724: key_, shared_user_key_len, 29724: shared_internal_bytes_len + non_shared_len < kNumInternalBytes, 29724: shared_len + non_shared_len - kNumInternalBytes, ts_sz, 29724: &next_key_slice_index, &ts_added); 29724: MaybeAddKeyPartsWithTimestamp( 29724: key_ + user_key_len, shared_internal_bytes_len, 29724: non_shared_len < kNumInternalBytes, 29724: shared_internal_bytes_len + non_shared_len - kNumInternalBytes, ts_sz, 29724: &next_key_slice_index, &ts_added); 29724: MaybeAddKeyPartsWithTimestamp(non_shared_data, non_shared_len, 29724: non_shared_len >= kNumInternalBytes, 29724: non_shared_len - kNumInternalBytes, ts_sz, 29724: &next_key_slice_index, &ts_added); 29724: 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts_added 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts_added" 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: } 29724: SetKeyImpl(next_key_slice_index, 29724: shared_len + non_shared_len + ts_sz); 29724: } 29724: 29724: Slice SetKeyWithPaddedMinTimestamp(const Slice& key, size_t ts_sz) { 29724: 29724: 29724: 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts_sz == sizeof(uint64_t) 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts_sz == sizeof(uint64_t)" 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: size_t num_key_slices = 0; 29724: if (is_user_key_) { 29724: key_slices_[0] = key; 29724: key_slices_[1] = Slice(kTsMin, ts_sz); 29724: num_key_slices = 2; 29724: } else { 29724: 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key.size() >= kNumInternalBytes 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key.size() >= kNumInternalBytes" 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: size_t user_key_size = key.size() - kNumInternalBytes; 29724: key_slices_[0] = Slice(key.data(), user_key_size); 29724: key_slices_[1] = Slice(kTsMin, ts_sz); 29724: key_slices_[2] = Slice(key.data() + user_key_size, kNumInternalBytes); 29724: num_key_slices = 3; 29724: } 29724: return SetKeyImpl(num_key_slices, key.size() + ts_sz); 29724: } 29724: 29724: Slice SetKey(const Slice& key, bool copy = true) { 29724: 29724: return SetKeyImpl(key, copy); 29724: } 29724: 29724: 29724: 29724: 29724: Slice SetUserKey(const Slice& key, bool copy = true) { 29724: is_user_key_ = true; 29724: return SetKeyImpl(key, copy); 29724: } 29724: 29724: Slice SetInternalKey(const Slice& key, bool copy = true) { 29724: is_user_key_ = false; 29724: return SetKeyImpl(key, copy); 29724: } 29724: 29724: 29724: 29724: Slice SetInternalKey(const Slice& key, ParsedInternalKey* ikey) { 29724: size_t key_n = key.size(); 29724: 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_n >= kNumInternalBytes 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_n >= kNumInternalBytes" 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: SetInternalKey(key); 29724: ikey->user_key = Slice(key_, key_n - kNumInternalBytes); 29724: return Slice(key_, key_n); 29724: } 29724: 29724: 29724: 29724: void UpdateInternalKey(uint64_t seq, ValueType t, const Slice* ts = nullptr) { 29724: 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: !IsKeyPinned() 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "!IsKeyPinned()" 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_size_ >= kNumInternalBytes 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_size_ >= kNumInternalBytes" 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: if (ts) { 29724: 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_size_ >= kNumInternalBytes + ts->size() 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_size_ >= kNumInternalBytes + ts->size()" 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: memcpy(&buf_[key_size_ - kNumInternalBytes - ts->size()], ts->data(), 29724: ts->size()); 29724: } 29724: uint64_t newval = (seq << 8) | t; 29724: if (key_ == buf_) { 29724: EncodeFixed64(&buf_[key_size_ - kNumInternalBytes], newval); 29724: } else { 29724: 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: key_ == secondary_buf_ 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "key_ == secondary_buf_" 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: EncodeFixed64(&secondary_buf_[key_size_ - kNumInternalBytes], newval); 29724: } 29724: } 29724: 29724: bool IsKeyPinned() const { return key_ != buf_ && key_ != secondary_buf_; } 29724: 29724: 29724: 29724: 29724: void SetInternalKey(const Slice& key_prefix, const Slice& user_key, 29724: SequenceNumber s, 29724: ValueType value_type = kValueTypeForSeek, 29724: const Slice* ts = nullptr) { 29724: size_t psize = key_prefix.size(); 29724: size_t usize = user_key.size(); 29724: size_t ts_sz = (ts != nullptr ? ts->size() : 0); 29724: EnlargeBufferIfNeeded(psize + usize + sizeof(uint64_t) + ts_sz); 29724: if (psize > 0) { 29724: memcpy(buf_, key_prefix.data(), psize); 29724: } 29724: memcpy(buf_ + psize, user_key.data(), usize); 29724: if (ts) { 29724: memcpy(buf_ + psize + usize, ts->data(), ts_sz); 29724: } 29724: EncodeFixed64(buf_ + usize + psize + ts_sz, 29724: PackSequenceAndType(s, value_type)); 29724: 29724: key_ = buf_; 29724: key_size_ = psize + usize + sizeof(uint64_t) + ts_sz; 29724: is_user_key_ = false; 29724: } 29724: 29724: void SetInternalKey(const Slice& user_key, SequenceNumber s, 29724: ValueType value_type = kValueTypeForSeek, 29724: const Slice* ts = nullptr) { 29724: SetInternalKey(Slice(), user_key, s, value_type, ts); 29724: } 29724: 29724: void Reserve(size_t size) { 29724: EnlargeBufferIfNeeded(size); 29724: key_size_ = size; 29724: } 29724: 29724: void SetInternalKey(const ParsedInternalKey& parsed_key) { 29724: SetInternalKey(Slice(), parsed_key); 29724: } 29724: 29724: void SetInternalKey(const Slice& key_prefix, 29724: const ParsedInternalKey& parsed_key_suffix) { 29724: SetInternalKey(key_prefix, parsed_key_suffix.user_key, 29724: parsed_key_suffix.sequence, parsed_key_suffix.type); 29724: } 29724: 29724: void EncodeLengthPrefixedKey(const Slice& key) { 29724: auto size = key.size(); 29724: EnlargeBufferIfNeeded(size + static_cast(VarintLength(size))); 29724: char* ptr = EncodeVarint32(buf_, static_cast(size)); 29724: memcpy(ptr, key.data(), size); 29724: key_ = buf_; 29724: is_user_key_ = true; 29724: } 29724: 29724: bool IsUserKey() const { return is_user_key_; } 29724: 29724: private: 29724: char* buf_; 29724: const char* key_; 29724: size_t key_size_; 29724: size_t buf_size_; 29724: char space_[kInlineBufferSize]; 29724: bool is_user_key_; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: char space_for_secondary_buf_[kInlineBufferSize]; 29724: 29724: char* secondary_buf_; 29724: size_t secondary_buf_size_; 29724: 29724: 29724: 29724: std::array key_slices_; 29724: 29724: 29724: Slice SetKeyImpl(const Slice& key, bool copy) { 29724: size_t size = key.size(); 29724: if (copy) { 29724: 29724: EnlargeBufferIfNeeded(size); 29724: memcpy(buf_, key.data(), size); 29724: key_ = buf_; 29724: } else { 29724: 29724: key_ = key.data(); 29724: } 29724: key_size_ = size; 29724: return Slice(key_, key_size_); 29724: } 29724: 29724: Slice SetKeyImpl(size_t num_key_slices, size_t total_bytes) { 29724: 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: num_key_slices <= 5 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "num_key_slices <= 5" 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: char* buf_start = nullptr; 29724: if (key_ == buf_) { 29724: 29724: 29724: EnlargeSecondaryBufferIfNeeded(total_bytes); 29724: buf_start = secondary_buf_; 29724: key_ = secondary_buf_; 29724: } else { 29724: 29724: EnlargeBufferIfNeeded(total_bytes); 29724: buf_start = buf_; 29724: key_ = buf_; 29724: } 29724: 29724: size_t actual_total_bytes = 0; 29724: 29724: for (size_t i = 0; i < num_key_slices; i++) { 29724: size_t key_slice_size = key_slices_[i].size(); 29724: memcpy(buf_start, key_slices_[i].data(), key_slice_size); 29724: buf_start += key_slice_size; 29724: 29724: actual_total_bytes += key_slice_size; 29724: 29724: } 29724: 29724: 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: actual_total_bytes == total_bytes 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "actual_total_bytes == total_bytes" 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: 29724: key_size_ = total_bytes; 29724: return Slice(key_, key_size_); 29724: } 29724: 29724: void ResetBuffer() { 29724: if (key_ == buf_) { 29724: key_size_ = 0; 29724: } 29724: if (buf_ != space_) { 29724: delete[] buf_; 29724: buf_ = space_; 29724: } 29724: buf_size_ = kInlineBufferSize; 29724: } 29724: 29724: void ResetSecondaryBuffer() { 29724: if (key_ == secondary_buf_) { 29724: key_size_ = 0; 29724: } 29724: if (secondary_buf_ != space_for_secondary_buf_) { 29724: delete[] secondary_buf_; 29724: secondary_buf_ = space_for_secondary_buf_; 29724: } 29724: secondary_buf_size_ = kInlineBufferSize; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void EnlargeBufferIfNeeded(size_t key_size) { 29724: 29724: 29724: if (key_size > buf_size_) { 29724: EnlargeBuffer(key_size); 29724: } 29724: } 29724: 29724: void EnlargeSecondaryBufferIfNeeded(size_t key_size); 29724: 29724: void EnlargeBuffer(size_t key_size); 29724: 29724: void MaybeAddKeyPartsWithTimestamp(const char* slice_data, 29724: const size_t slice_sz, bool add_timestamp, 29724: const size_t left_sz, const size_t ts_sz, 29724: size_t* next_key_slice_idx, 29724: bool* ts_added) { 29724: 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: next_key_slice_idx 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "next_key_slice_idx" 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: if (add_timestamp && !*ts_added) { 29724: 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: slice_sz >= left_sz 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "slice_sz >= left_sz" 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, left_sz); 29724: key_slices_[(*next_key_slice_idx)++] = Slice(kTsMin, ts_sz); 29724: key_slices_[(*next_key_slice_idx)++] = 29724: Slice(slice_data + left_sz, slice_sz - left_sz); 29724: *ts_added = true; 29724: } else { 29724: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, slice_sz); 29724: } 29724: 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: *next_key_slice_idx <= 5 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "*next_key_slice_idx <= 5" 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: } 29724: }; 29724: 29724: 29724: 29724: class InternalKeySliceTransform : public SliceTransform { 29724: public: 29724: explicit InternalKeySliceTransform(const SliceTransform* transform) 29724: : transform_(transform) {} 29724: 29724: const char* Name() const override { return transform_->Name(); } 29724: 29724: Slice Transform(const Slice& src) const override { 29724: auto user_key = ExtractUserKey(src); 29724: return transform_->Transform(user_key); 29724: } 29724: 29724: bool InDomain(const Slice& src) const override { 29724: auto user_key = ExtractUserKey(src); 29724: return transform_->InDomain(user_key); 29724: } 29724: 29724: bool InRange(const Slice& dst) const override { 29724: auto user_key = ExtractUserKey(dst); 29724: return transform_->InRange(user_key); 29724: } 29724: 29724: const SliceTransform* user_prefix_extractor() const { return transform_; } 29724: 29724: private: 29724: 29724: 29724: const SliceTransform* const transform_; 29724: }; 29724: 29724: 29724: 29724: 29724: bool ReadKeyFromWriteBatchEntry(Slice* input, Slice* key, bool cf_record); 29724: # 1004 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: Status ReadRecordFromWriteBatch(Slice* input, char* tag, 29724: uint32_t* column_family, Slice* key, 29724: Slice* value, Slice* blob, Slice* xid, 29724: uint64_t* write_unix_time); 29724: 29724: 29724: 29724: 29724: 29724: struct RangeTombstone { 29724: Slice start_key_; 29724: Slice end_key_; 29724: SequenceNumber seq_; 29724: 29724: 29724: Slice ts_; 29724: std::string pinned_start_key_; 29724: std::string pinned_end_key_; 29724: 29724: RangeTombstone() = default; 29724: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn) 29724: : start_key_(sk), end_key_(ek), seq_(sn) {} 29724: 29724: 29724: 29724: 29724: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn, Slice ts) : seq_(sn) { 29724: const size_t ts_sz = ts.size(); 29724: 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: (static_cast ( 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ts_sz > 0 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: "ts_sz > 0" 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: ; 29724: pinned_start_key_.reserve(sk.size()); 29724: pinned_end_key_.reserve(ek.size()); 29724: AppendUserKeyWithDifferentTimestamp(&pinned_start_key_, sk, ts); 29724: AppendUserKeyWithDifferentTimestamp(&pinned_end_key_, ek, ts); 29724: start_key_ = pinned_start_key_; 29724: end_key_ = pinned_end_key_; 29724: ts_ = Slice(pinned_start_key_.data() + sk.size() - ts_sz, ts_sz); 29724: } 29724: 29724: RangeTombstone(ParsedInternalKey parsed_key, Slice value) { 29724: start_key_ = parsed_key.user_key; 29724: seq_ = parsed_key.sequence; 29724: end_key_ = value; 29724: } 29724: 29724: 29724: std::pair Serialize() const { 29724: auto key = InternalKey(start_key_, seq_, kTypeRangeDeletion); 29724: return std::make_pair(std::move(key), end_key_); 29724: } 29724: 29724: 29724: InternalKey SerializeKey() const { 29724: return InternalKey(start_key_, seq_, kTypeRangeDeletion); 29724: } 29724: # 1066 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29724: InternalKey SerializeEndKey() const { 29724: if (!ts_.empty()) { 29724: static constexpr char kTsMax[] = "\xff\xff\xff\xff\xff\xff\xff\xff\xff"; 29724: if (ts_.size() <= strlen(kTsMax)) { 29724: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 29724: Slice(kTsMax, ts_.size())); 29724: } else { 29724: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 29724: std::string(ts_.size(), '\xff')); 29724: } 29724: } 29724: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion); 29724: } 29724: }; 29724: 29724: inline int InternalKeyComparator::Compare(const Slice& akey, 29724: const Slice& bkey) const { 29724: 29724: 29724: 29724: 29724: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 29724: if (r == 0) { 29724: const uint64_t anum = 29724: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes); 29724: const uint64_t bnum = 29724: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes); 29724: if (anum > bnum) { 29724: r = -1; 29724: } else if (anum < bnum) { 29724: r = +1; 29724: } 29724: } 29724: return r; 29724: } 29724: 29724: inline int InternalKeyComparator::CompareKeySeq(const Slice& akey, 29724: const Slice& bkey) const { 29724: 29724: 29724: 29724: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 29724: if (r == 0) { 29724: 29724: const uint64_t anum = 29724: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes) >> 8; 29724: const uint64_t bnum = 29724: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes) >> 8; 29724: if (anum > bnum) { 29724: r = -1; 29724: } else if (anum < bnum) { 29724: r = +1; 29724: } 29724: } 29724: return r; 29724: } 29724: 29724: inline int InternalKeyComparator::CompareKeySeq(const ParsedInternalKey& a, 29724: const Slice& b) const { 29724: 29724: 29724: 29724: int r = user_comparator_.Compare(a.user_key, ExtractUserKey(b)); 29724: if (r == 0) { 29724: 29724: const uint64_t anum = a.sequence; 29724: const uint64_t bnum = 29724: DecodeFixed64(b.data() + b.size() - kNumInternalBytes) >> 8; 29724: if (anum > bnum) { 29724: r = -1; 29724: } else if (anum < bnum) { 29724: r = +1; 29724: } 29724: } 29724: return r; 29724: } 29724: 29724: inline int InternalKeyComparator::Compare(const Slice& a, 29724: SequenceNumber a_global_seqno, 29724: const Slice& b, 29724: SequenceNumber b_global_seqno) const { 29724: int r = user_comparator_.Compare(ExtractUserKey(a), ExtractUserKey(b)); 29724: if (r == 0) { 29724: uint64_t a_footer, b_footer; 29724: if (a_global_seqno == kDisableGlobalSequenceNumber) { 29724: a_footer = ExtractInternalKeyFooter(a); 29724: } else { 29724: a_footer = PackSequenceAndType(a_global_seqno, ExtractValueType(a)); 29724: } 29724: if (b_global_seqno == kDisableGlobalSequenceNumber) { 29724: b_footer = ExtractInternalKeyFooter(b); 29724: } else { 29724: b_footer = PackSequenceAndType(b_global_seqno, ExtractValueType(b)); 29724: } 29724: if (a_footer > b_footer) { 29724: r = -1; 29724: } else if (a_footer < b_footer) { 29724: r = +1; 29724: } 29724: } 29724: return r; 29724: } 29724: 29724: 29724: struct ParsedInternalKeyComparator { 29724: explicit ParsedInternalKeyComparator(const InternalKeyComparator* c) 29724: : cmp(c) {} 29724: 29724: bool operator()(const ParsedInternalKey& a, 29724: const ParsedInternalKey& b) const { 29724: return cmp->Compare(a, b) < 0; 29724: } 29724: 29724: const InternalKeyComparator* cmp; 29724: }; 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 1 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: template 29724: class ProtectionInfo; 29724: template 29724: class ProtectionInfoKVO; 29724: template 29724: class ProtectionInfoKVOC; 29724: template 29724: class ProtectionInfoKVOS; 29724: template 29724: class ProtectionInfoKV; 29724: 29724: 29724: using ProtectionInfo64 = ProtectionInfo; 29724: using ProtectionInfoKVO64 = ProtectionInfoKVO; 29724: using ProtectionInfoKVOC64 = ProtectionInfoKVOC; 29724: using ProtectionInfoKVOS64 = ProtectionInfoKVOS; 29724: 29724: template 29724: class ProtectionInfo { 29724: public: 29724: ProtectionInfo() = default; 29724: 29724: Status GetStatus() const; 29724: ProtectionInfoKVO ProtectKVO(const Slice& key, const Slice& value, 29724: ValueType op_type) const; 29724: ProtectionInfoKVO ProtectKVO(const SliceParts& key, 29724: const SliceParts& value, 29724: ValueType op_type) const; 29724: ProtectionInfoKV ProtectKV(const Slice& key, const Slice& value) const; 29724: 29724: private: 29724: friend class ProtectionInfoKVO; 29724: friend class ProtectionInfoKVOS; 29724: friend class ProtectionInfoKVOC; 29724: friend class ProtectionInfoKV; 29724: # 84 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: static const uint64_t kSeedK = 0; 29724: static const uint64_t kSeedV = 0xD28AAD72F49BD50B; 29724: static const uint64_t kSeedO = 0xA5155AE5E937AA16; 29724: static const uint64_t kSeedS = 0x77A00858DDD37F21; 29724: static const uint64_t kSeedC = 0x4A2AB5CBD26F542C; 29724: 29724: ProtectionInfo(T val) : val_(val) { 29724: static_assert(sizeof(ProtectionInfo) == sizeof(T), ""); 29724: } 29724: 29724: T GetVal() const { return val_; } 29724: void SetVal(T val) { val_ = val; } 29724: 29724: void Encode(uint8_t len, char* dst) const { 29724: 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: (static_cast ( 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: sizeof(val_) >= len 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: "sizeof(val_) >= len" 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: ; 29724: switch (len) { 29724: case 1: 29724: dst[0] = static_cast(val_); 29724: break; 29724: case 2: 29724: EncodeFixed16(dst, static_cast(val_)); 29724: break; 29724: case 4: 29724: EncodeFixed32(dst, static_cast(val_)); 29724: break; 29724: case 8: 29724: EncodeFixed64(dst, static_cast(val_)); 29724: break; 29724: default: 29724: 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: (static_cast ( 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: false 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: "false" 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: ; 29724: } 29724: } 29724: 29724: bool Verify(uint8_t len, const char* checksum_ptr) const { 29724: 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: (static_cast ( 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: sizeof(val_) >= len 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: "sizeof(val_) >= len" 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: ; 29724: switch (len) { 29724: case 1: 29724: return static_cast(checksum_ptr[0]) == 29724: static_cast(val_); 29724: case 2: 29724: return DecodeFixed16(checksum_ptr) == static_cast(val_); 29724: case 4: 29724: return DecodeFixed32(checksum_ptr) == static_cast(val_); 29724: case 8: 29724: return DecodeFixed64(checksum_ptr) == static_cast(val_); 29724: default: 29724: 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: (static_cast ( 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: false 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: "false" 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29724: ; 29724: return false; 29724: } 29724: } 29724: 29724: T val_ = 0; 29724: }; 29724: 29724: template 29724: class ProtectionInfoKVO { 29724: public: 29724: ProtectionInfoKVO() = default; 29724: 29724: ProtectionInfo StripKVO(const Slice& key, const Slice& value, 29724: ValueType op_type) const; 29724: ProtectionInfo StripKVO(const SliceParts& key, const SliceParts& value, 29724: ValueType op_type) const; 29724: 29724: ProtectionInfoKVOC ProtectC(ColumnFamilyId column_family_id) const; 29724: ProtectionInfoKVOS ProtectS(SequenceNumber sequence_number) const; 29724: 29724: void UpdateK(const Slice& old_key, const Slice& new_key); 29724: void UpdateK(const SliceParts& old_key, const SliceParts& new_key); 29724: void UpdateV(const Slice& old_value, const Slice& new_value); 29724: void UpdateV(const SliceParts& old_value, const SliceParts& new_value); 29724: void UpdateO(ValueType old_op_type, ValueType new_op_type); 29724: 29724: 29724: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 29724: 29724: 29724: 29724: bool Verify(uint8_t len, const char* checksum_ptr) const { 29724: return info_.Verify(len, checksum_ptr); 29724: } 29724: 29724: private: 29724: friend class ProtectionInfo; 29724: friend class ProtectionInfoKVOS; 29724: friend class ProtectionInfoKVOC; 29724: 29724: explicit ProtectionInfoKVO(T val) : info_(val) { 29724: static_assert(sizeof(ProtectionInfoKVO) == sizeof(T), ""); 29724: } 29724: 29724: T GetVal() const { return info_.GetVal(); } 29724: void SetVal(T val) { info_.SetVal(val); } 29724: 29724: ProtectionInfo info_; 29724: }; 29724: 29724: template 29724: class ProtectionInfoKVOC { 29724: public: 29724: ProtectionInfoKVOC() = default; 29724: 29724: ProtectionInfoKVO StripC(ColumnFamilyId column_family_id) const; 29724: 29724: void UpdateK(const Slice& old_key, const Slice& new_key) { 29724: kvo_.UpdateK(old_key, new_key); 29724: } 29724: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 29724: kvo_.UpdateK(old_key, new_key); 29724: } 29724: void UpdateV(const Slice& old_value, const Slice& new_value) { 29724: kvo_.UpdateV(old_value, new_value); 29724: } 29724: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 29724: kvo_.UpdateV(old_value, new_value); 29724: } 29724: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 29724: kvo_.UpdateO(old_op_type, new_op_type); 29724: } 29724: void UpdateC(ColumnFamilyId old_column_family_id, 29724: ColumnFamilyId new_column_family_id); 29724: 29724: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 29724: bool Verify(uint8_t len, const char* checksum_ptr) const { 29724: return kvo_.Verify(len, checksum_ptr); 29724: } 29724: 29724: private: 29724: friend class ProtectionInfoKVO; 29724: 29724: explicit ProtectionInfoKVOC(T val) : kvo_(val) { 29724: static_assert(sizeof(ProtectionInfoKVOC) == sizeof(T), ""); 29724: } 29724: 29724: T GetVal() const { return kvo_.GetVal(); } 29724: void SetVal(T val) { kvo_.SetVal(val); } 29724: 29724: ProtectionInfoKVO kvo_; 29724: }; 29724: 29724: template 29724: class ProtectionInfoKVOS { 29724: public: 29724: ProtectionInfoKVOS() = default; 29724: 29724: ProtectionInfoKVO StripS(SequenceNumber sequence_number) const; 29724: 29724: void UpdateK(const Slice& old_key, const Slice& new_key) { 29724: kvo_.UpdateK(old_key, new_key); 29724: } 29724: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 29724: kvo_.UpdateK(old_key, new_key); 29724: } 29724: void UpdateV(const Slice& old_value, const Slice& new_value) { 29724: kvo_.UpdateV(old_value, new_value); 29724: } 29724: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 29724: kvo_.UpdateV(old_value, new_value); 29724: } 29724: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 29724: kvo_.UpdateO(old_op_type, new_op_type); 29724: } 29724: void UpdateS(SequenceNumber old_sequence_number, 29724: SequenceNumber new_sequence_number); 29724: 29724: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 29724: bool Verify(uint8_t len, const char* checksum_ptr) const { 29724: return kvo_.Verify(len, checksum_ptr); 29724: } 29724: 29724: private: 29724: friend class ProtectionInfoKVO; 29724: 29724: explicit ProtectionInfoKVOS(T val) : kvo_(val) { 29724: static_assert(sizeof(ProtectionInfoKVOS) == sizeof(T), ""); 29724: } 29724: 29724: T GetVal() const { return kvo_.GetVal(); } 29724: void SetVal(T val) { kvo_.SetVal(val); } 29724: 29724: ProtectionInfoKVO kvo_; 29724: }; 29724: 29724: template 29724: class ProtectionInfoKV { 29724: public: 29724: ProtectionInfoKV() = default; 29724: 29724: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 29724: bool Verify(uint8_t len, const char* checksum_ptr) const { 29724: return info_.Verify(len, checksum_ptr); 29724: } 29724: 29724: private: 29724: friend class ProtectionInfo; 29724: 29724: explicit ProtectionInfoKV(T val) : info_(val) { 29724: static_assert(sizeof(ProtectionInfoKV) == sizeof(T)); 29724: } 29724: 29724: ProtectionInfo info_; 29724: }; 29724: 29724: template 29724: Status ProtectionInfo::GetStatus() const { 29724: if (val_ != 0) { 29724: return Status::Corruption("ProtectionInfo mismatch"); 29724: } 29724: return Status::OK(); 29724: } 29724: 29724: template 29724: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const Slice& key, 29724: const Slice& value, 29724: ValueType op_type) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29724: val = 29724: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29724: val = val ^ 29724: static_cast(NPHash64(reinterpret_cast(&op_type), 29724: sizeof(op_type), ProtectionInfo::kSeedO)); 29724: return ProtectionInfoKVO(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const SliceParts& key, 29724: const SliceParts& value, 29724: ValueType op_type) const { 29724: T val = GetVal(); 29724: val = val ^ 29724: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 29724: val = val ^ 29724: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 29724: val = val ^ 29724: static_cast(NPHash64(reinterpret_cast(&op_type), 29724: sizeof(op_type), ProtectionInfo::kSeedO)); 29724: return ProtectionInfoKVO(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKV ProtectionInfo::ProtectKV(const Slice& key, 29724: const Slice& value) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29724: val = 29724: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29724: return ProtectionInfoKV(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVO::UpdateK(const Slice& old_key, const Slice& new_key) { 29724: T val = GetVal(); 29724: val = val ^ 29724: static_cast(GetSliceNPHash64(old_key, ProtectionInfo::kSeedK)); 29724: val = val ^ 29724: static_cast(GetSliceNPHash64(new_key, ProtectionInfo::kSeedK)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVO::UpdateK(const SliceParts& old_key, 29724: const SliceParts& new_key) { 29724: T val = GetVal(); 29724: val = val ^ static_cast( 29724: GetSlicePartsNPHash64(old_key, ProtectionInfo::kSeedK)); 29724: val = val ^ static_cast( 29724: GetSlicePartsNPHash64(new_key, ProtectionInfo::kSeedK)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVO::UpdateV(const Slice& old_value, 29724: const Slice& new_value) { 29724: T val = GetVal(); 29724: val = val ^ 29724: static_cast(GetSliceNPHash64(old_value, ProtectionInfo::kSeedV)); 29724: val = val ^ 29724: static_cast(GetSliceNPHash64(new_value, ProtectionInfo::kSeedV)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVO::UpdateV(const SliceParts& old_value, 29724: const SliceParts& new_value) { 29724: T val = GetVal(); 29724: val = val ^ static_cast( 29724: GetSlicePartsNPHash64(old_value, ProtectionInfo::kSeedV)); 29724: val = val ^ static_cast( 29724: GetSlicePartsNPHash64(new_value, ProtectionInfo::kSeedV)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVO::UpdateO(ValueType old_op_type, 29724: ValueType new_op_type) { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64(reinterpret_cast(&old_op_type), 29724: sizeof(old_op_type), 29724: ProtectionInfo::kSeedO)); 29724: val = val ^ static_cast(NPHash64(reinterpret_cast(&new_op_type), 29724: sizeof(new_op_type), 29724: ProtectionInfo::kSeedO)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: ProtectionInfo ProtectionInfoKVO::StripKVO(const Slice& key, 29724: const Slice& value, 29724: ValueType op_type) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29724: val = 29724: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29724: val = val ^ 29724: static_cast(NPHash64(reinterpret_cast(&op_type), 29724: sizeof(op_type), ProtectionInfo::kSeedO)); 29724: return ProtectionInfo(val); 29724: } 29724: 29724: template 29724: ProtectionInfo ProtectionInfoKVO::StripKVO(const SliceParts& key, 29724: const SliceParts& value, 29724: ValueType op_type) const { 29724: T val = GetVal(); 29724: val = val ^ 29724: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 29724: val = val ^ 29724: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 29724: val = val ^ 29724: static_cast(NPHash64(reinterpret_cast(&op_type), 29724: sizeof(op_type), ProtectionInfo::kSeedO)); 29724: return ProtectionInfo(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKVOC ProtectionInfoKVO::ProtectC( 29724: ColumnFamilyId column_family_id) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&column_family_id), 29724: sizeof(column_family_id), ProtectionInfo::kSeedC)); 29724: return ProtectionInfoKVOC(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKVO ProtectionInfoKVOC::StripC( 29724: ColumnFamilyId column_family_id) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&column_family_id), 29724: sizeof(column_family_id), ProtectionInfo::kSeedC)); 29724: return ProtectionInfoKVO(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVOC::UpdateC(ColumnFamilyId old_column_family_id, 29724: ColumnFamilyId new_column_family_id) { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&old_column_family_id), 29724: sizeof(old_column_family_id), ProtectionInfo::kSeedC)); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&new_column_family_id), 29724: sizeof(new_column_family_id), ProtectionInfo::kSeedC)); 29724: SetVal(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKVOS ProtectionInfoKVO::ProtectS( 29724: SequenceNumber sequence_number) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 29724: sizeof(sequence_number), 29724: ProtectionInfo::kSeedS)); 29724: return ProtectionInfoKVOS(val); 29724: } 29724: 29724: template 29724: ProtectionInfoKVO ProtectionInfoKVOS::StripS( 29724: SequenceNumber sequence_number) const { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 29724: sizeof(sequence_number), 29724: ProtectionInfo::kSeedS)); 29724: return ProtectionInfoKVO(val); 29724: } 29724: 29724: template 29724: void ProtectionInfoKVOS::UpdateS(SequenceNumber old_sequence_number, 29724: SequenceNumber new_sequence_number) { 29724: T val = GetVal(); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&old_sequence_number), 29724: sizeof(old_sequence_number), ProtectionInfo::kSeedS)); 29724: val = val ^ static_cast(NPHash64( 29724: reinterpret_cast(&new_sequence_number), 29724: sizeof(new_sequence_number), ProtectionInfo::kSeedS)); 29724: SetVal(val); 29724: } 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class IteratorBase : public Cleanable { 29724: public: 29724: IteratorBase() {} 29724: 29724: IteratorBase(const IteratorBase&) = delete; 29724: void operator=(const IteratorBase&) = delete; 29724: 29724: virtual ~IteratorBase() {} 29724: 29724: 29724: 29724: 29724: virtual bool Valid() const = 0; 29724: 29724: 29724: 29724: virtual void SeekToFirst() = 0; 29724: 29724: 29724: 29724: virtual void SeekToLast() = 0; 29724: # 43 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29724: virtual void Seek(const Slice& target) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void SeekForPrev(const Slice& target) = 0; 29724: 29724: 29724: 29724: 29724: virtual void Next() = 0; 29724: 29724: 29724: 29724: 29724: virtual void Prev() = 0; 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29724: virtual Status Refresh() { return Refresh(nullptr); } 29724: 29724: 29724: 29724: virtual Status Refresh(const class Snapshot*) { 29724: return Status::NotSupported("Refresh() is not supported"); 29724: } 29724: # 96 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29724: virtual bool PrepareValue() { return true; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Slice key() const = 0; 29724: 29724: 29724: 29724: 29724: virtual Status status() const = 0; 29724: }; 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ostream" 1 3 29724: # 36 "/usr/include/c++/14/ostream" 3 29724: 29724: # 37 "/usr/include/c++/14/ostream" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ios" 1 3 29724: # 36 "/usr/include/c++/14/ios" 3 29724: 29724: # 37 "/usr/include/c++/14/ios" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/ios_base.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/ios_base.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/ios_base.h" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/locale_classes.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: 29724: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 66 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: class locale 29724: { 29724: public: 29724: 29724: 29724: typedef int category; 29724: 29724: 29724: class facet; 29724: class id; 29724: class _Impl; 29724: 29724: friend class facet; 29724: friend class _Impl; 29724: 29724: template 29724: friend bool 29724: has_facet(const locale&) throw(); 29724: 29724: template 29724: friend const _Facet& 29724: use_facet(const locale&); 29724: 29724: template 29724: friend const _Facet* 29724: __try_use_facet(const locale&) noexcept; 29724: 29724: template 29724: friend struct __use_cache; 29724: # 106 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: static const category none = 0; 29724: static const category ctype = 1L << 0; 29724: static const category numeric = 1L << 1; 29724: static const category collate = 1L << 2; 29724: static const category time = 1L << 3; 29724: static const category monetary = 1L << 4; 29724: static const category messages = 1L << 5; 29724: static const category all = (ctype | numeric | collate | 29724: time | monetary | messages); 29724: # 125 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: locale() throw(); 29724: # 134 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: locale(const locale& __other) throw(); 29724: # 144 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: explicit 29724: locale(const char* __s); 29724: # 159 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: locale(const locale& __base, const char* __s, category __cat); 29724: # 170 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: explicit 29724: locale(const std::string& __s) : locale(__s.c_str()) { } 29724: # 185 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: locale(const locale& __base, const std::string& __s, category __cat) 29724: : locale(__base, __s.c_str(), __cat) { } 29724: # 200 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: locale(const locale& __base, const locale& __add, category __cat); 29724: # 213 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: template 29724: locale(const locale& __other, _Facet* __f); 29724: 29724: 29724: ~locale() throw(); 29724: # 227 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: const locale& 29724: operator=(const locale& __other) throw(); 29724: # 242 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: template 29724: [[__nodiscard__]] 29724: locale 29724: combine(const locale& __other) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] __attribute ((__abi_tag__ ("cxx11"))) 29724: string 29724: name() const; 29724: # 273 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: [[__nodiscard__]] 29724: bool 29724: operator==(const locale& __other) const throw(); 29724: # 284 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: [[__nodiscard__]] 29724: bool 29724: operator!=(const locale& __other) const throw() 29724: { return !(this->operator==(__other)); } 29724: # 305 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: template 29724: [[__nodiscard__]] 29724: bool 29724: operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, 29724: const basic_string<_Char, _Traits, _Alloc>& __s2) const; 29724: # 322 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: static locale 29724: global(const locale& __loc); 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: static const locale& 29724: classic(); 29724: 29724: private: 29724: 29724: _Impl* _M_impl; 29724: 29724: 29724: static _Impl* _S_classic; 29724: 29724: 29724: static _Impl* _S_global; 29724: 29724: 29724: 29724: 29724: 29724: static const char* const* const _S_categories; 29724: # 358 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: enum { _S_categories_size = 6 + 6 }; 29724: 29724: 29724: static __gthread_once_t _S_once; 29724: 29724: 29724: explicit 29724: locale(_Impl*) throw(); 29724: 29724: static void 29724: _S_initialize(); 29724: 29724: static void 29724: _S_initialize_once() throw(); 29724: 29724: static category 29724: _S_normalize_category(category); 29724: 29724: void 29724: _M_coalesce(const locale& __base, const locale& __add, category __cat); 29724: 29724: 29724: static const id* const _S_twinned_facets[]; 29724: 29724: }; 29724: # 396 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: class locale::facet 29724: { 29724: private: 29724: friend class locale; 29724: friend class locale::_Impl; 29724: 29724: mutable _Atomic_word _M_refcount; 29724: 29724: 29724: static __c_locale _S_c_locale; 29724: 29724: 29724: static const char _S_c_name[2]; 29724: 29724: 29724: static __gthread_once_t _S_once; 29724: 29724: 29724: static void 29724: _S_initialize_once(); 29724: 29724: protected: 29724: # 427 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: explicit 29724: facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) 29724: { } 29724: 29724: 29724: virtual 29724: ~facet(); 29724: 29724: static void 29724: _S_create_c_locale(__c_locale& __cloc, const char* __s, 29724: __c_locale __old = 0); 29724: 29724: static __c_locale 29724: _S_clone_c_locale(__c_locale& __cloc) throw(); 29724: 29724: static void 29724: _S_destroy_c_locale(__c_locale& __cloc); 29724: 29724: static __c_locale 29724: _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); 29724: 29724: 29724: 29724: static __c_locale 29724: _S_get_c_locale(); 29724: 29724: __attribute__ ((__const__)) static const char* 29724: _S_get_c_name() throw(); 29724: # 463 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: facet(const facet&) = delete; 29724: 29724: facet& 29724: operator=(const facet&) = delete; 29724: 29724: 29724: private: 29724: void 29724: _M_add_reference() const throw() 29724: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29724: 29724: void 29724: _M_remove_reference() const throw() 29724: { 29724: 29724: ; 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 29724: { 29724: ; 29724: try 29724: { delete this; } 29724: catch(...) 29724: { } 29724: } 29724: } 29724: 29724: const facet* _M_sso_shim(const id*) const; 29724: const facet* _M_cow_shim(const id*) const; 29724: 29724: protected: 29724: class __shim; 29724: }; 29724: # 508 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: class locale::id 29724: { 29724: private: 29724: friend class locale; 29724: friend class locale::_Impl; 29724: 29724: template 29724: friend const _Facet& 29724: use_facet(const locale&); 29724: 29724: template 29724: friend bool 29724: has_facet(const locale&) throw(); 29724: 29724: template 29724: friend const _Facet* 29724: __try_use_facet(const locale&) noexcept; 29724: 29724: 29724: 29724: 29724: mutable size_t _M_index; 29724: 29724: 29724: static _Atomic_word _S_refcount; 29724: 29724: void 29724: operator=(const id&); 29724: 29724: id(const id&); 29724: 29724: public: 29724: 29724: 29724: 29724: id() { } 29724: 29724: size_t 29724: _M_id() const throw(); 29724: }; 29724: 29724: 29724: 29724: class locale::_Impl 29724: { 29724: public: 29724: 29724: friend class locale; 29724: friend class locale::facet; 29724: 29724: template 29724: friend bool 29724: has_facet(const locale&) throw(); 29724: 29724: template 29724: friend const _Facet& 29724: use_facet(const locale&); 29724: 29724: template 29724: friend const _Facet* 29724: __try_use_facet(const locale&) noexcept; 29724: 29724: template 29724: friend struct __use_cache; 29724: 29724: private: 29724: 29724: _Atomic_word _M_refcount; 29724: const facet** _M_facets; 29724: size_t _M_facets_size; 29724: const facet** _M_caches; 29724: char** _M_names; 29724: static const locale::id* const _S_id_ctype[]; 29724: static const locale::id* const _S_id_numeric[]; 29724: static const locale::id* const _S_id_collate[]; 29724: static const locale::id* const _S_id_time[]; 29724: static const locale::id* const _S_id_monetary[]; 29724: static const locale::id* const _S_id_messages[]; 29724: static const locale::id* const* const _S_facet_categories[]; 29724: 29724: void 29724: _M_add_reference() throw() 29724: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29724: 29724: void 29724: _M_remove_reference() throw() 29724: { 29724: 29724: ; 29724: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 29724: { 29724: ; 29724: try 29724: { delete this; } 29724: catch(...) 29724: { } 29724: } 29724: } 29724: 29724: _Impl(const _Impl&, size_t); 29724: _Impl(const char*, size_t); 29724: _Impl(size_t) throw(); 29724: 29724: ~_Impl() throw(); 29724: 29724: _Impl(const _Impl&); 29724: 29724: void 29724: operator=(const _Impl&); 29724: 29724: bool 29724: _M_check_same_name() 29724: { 29724: bool __ret = true; 29724: if (_M_names[1]) 29724: 29724: for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) 29724: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; 29724: return __ret; 29724: } 29724: 29724: void 29724: _M_replace_categories(const _Impl*, category); 29724: 29724: void 29724: _M_replace_category(const _Impl*, const locale::id* const*); 29724: 29724: void 29724: _M_replace_facet(const _Impl*, const locale::id*); 29724: 29724: void 29724: _M_install_facet(const locale::id*, const facet*); 29724: 29724: template 29724: void 29724: _M_init_facet(_Facet* __facet) 29724: { _M_install_facet(&_Facet::id, __facet); } 29724: 29724: template 29724: void 29724: _M_init_facet_unchecked(_Facet* __facet) 29724: { 29724: __facet->_M_add_reference(); 29724: _M_facets[_Facet::id._M_id()] = __facet; 29724: } 29724: 29724: void 29724: _M_install_cache(const facet*, size_t); 29724: 29724: void _M_init_extra(facet**); 29724: void _M_init_extra(void*, void*, const char*, const char*); 29724: 29724: 29724: 29724: 29724: }; 29724: # 678 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: template 29724: class __cxx11:: collate : public locale::facet 29724: { 29724: public: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef basic_string<_CharT> string_type; 29724: 29724: 29724: protected: 29724: 29724: 29724: __c_locale _M_c_locale_collate; 29724: 29724: public: 29724: 29724: static locale::id id; 29724: # 705 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: explicit 29724: collate(size_t __refs = 0) 29724: : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) 29724: { } 29724: # 719 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: explicit 29724: collate(__c_locale __cloc, size_t __refs = 0) 29724: : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) 29724: { } 29724: # 736 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: int 29724: compare(const _CharT* __lo1, const _CharT* __hi1, 29724: const _CharT* __lo2, const _CharT* __hi2) const 29724: { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } 29724: # 755 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: string_type 29724: transform(const _CharT* __lo, const _CharT* __hi) const 29724: { return this->do_transform(__lo, __hi); } 29724: # 769 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: long 29724: hash(const _CharT* __lo, const _CharT* __hi) const 29724: { return this->do_hash(__lo, __hi); } 29724: 29724: 29724: int 29724: _M_compare(const _CharT*, const _CharT*) const throw(); 29724: 29724: size_t 29724: _M_transform(_CharT*, const _CharT*, size_t) const throw(); 29724: 29724: protected: 29724: 29724: virtual 29724: ~collate() 29724: { _S_destroy_c_locale(_M_c_locale_collate); } 29724: # 798 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: virtual int 29724: do_compare(const _CharT* __lo1, const _CharT* __hi1, 29724: const _CharT* __lo2, const _CharT* __hi2) const; 29724: # 812 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: virtual string_type 29724: do_transform(const _CharT* __lo, const _CharT* __hi) const; 29724: # 825 "/usr/include/c++/14/bits/locale_classes.h" 3 29724: virtual long 29724: do_hash(const _CharT* __lo, const _CharT* __hi) const; 29724: }; 29724: 29724: template 29724: locale::id collate<_CharT>::id; 29724: 29724: 29724: template<> 29724: int 29724: collate::_M_compare(const char*, const char*) const throw(); 29724: 29724: template<> 29724: size_t 29724: collate::_M_transform(char*, const char*, size_t) const throw(); 29724: 29724: 29724: template<> 29724: int 29724: collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); 29724: 29724: template<> 29724: size_t 29724: collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); 29724: 29724: 29724: 29724: template 29724: class __cxx11:: collate_byname : public collate<_CharT> 29724: { 29724: public: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef basic_string<_CharT> string_type; 29724: 29724: 29724: explicit 29724: collate_byname(const char* __s, size_t __refs = 0) 29724: : collate<_CharT>(__refs) 29724: { 29724: if (__builtin_strcmp(__s, "C") != 0 29724: && __builtin_strcmp(__s, "POSIX") != 0) 29724: { 29724: this->_S_destroy_c_locale(this->_M_c_locale_collate); 29724: this->_S_create_c_locale(this->_M_c_locale_collate, __s); 29724: } 29724: } 29724: 29724: 29724: explicit 29724: collate_byname(const string& __s, size_t __refs = 0) 29724: : collate_byname(__s.c_str(), __refs) { } 29724: 29724: 29724: protected: 29724: virtual 29724: ~collate_byname() { } 29724: }; 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/locale_classes.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: locale:: 29724: locale(const locale& __other, _Facet* __f) 29724: { 29724: _M_impl = new _Impl(*__other._M_impl, 1); 29724: 29724: try 29724: { _M_impl->_M_install_facet(&_Facet::id, __f); } 29724: catch(...) 29724: { 29724: _M_impl->_M_remove_reference(); 29724: throw; 29724: } 29724: delete [] _M_impl->_M_names[0]; 29724: _M_impl->_M_names[0] = 0; 29724: } 29724: 29724: template 29724: locale 29724: locale:: 29724: combine(const locale& __other) const 29724: { 29724: _Impl* __tmp = new _Impl(*_M_impl, 1); 29724: try 29724: { 29724: __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); 29724: } 29724: catch(...) 29724: { 29724: __tmp->_M_remove_reference(); 29724: throw; 29724: } 29724: return locale(__tmp); 29724: } 29724: 29724: template 29724: bool 29724: locale:: 29724: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, 29724: const basic_string<_CharT, _Traits, _Alloc>& __s2) const 29724: { 29724: typedef std::collate<_CharT> __collate_type; 29724: const __collate_type& __collate = use_facet<__collate_type>(*this); 29724: return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), 29724: __s2.data(), __s2.data() + __s2.length()) < 0); 29724: } 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29724: template 29724: inline const _Facet* 29724: __try_use_facet(const locale& __loc) noexcept 29724: { 29724: const size_t __i = _Facet::id._M_id(); 29724: const locale::facet** __facets = __loc._M_impl->_M_facets; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 29724: 29724: 29724: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 29724: 29724: 29724: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29724: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29724: 29724: 29724: 29724: 29724: if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) 29724: return 0; 29724: 29724: 29724: return dynamic_cast(__facets[__i]); 29724: 29724: 29724: 29724: } 29724: #pragma GCC diagnostic pop 29724: # 164 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: has_facet(const locale& __loc) throw() 29724: { 29724: 29724: static_assert(__is_base_of(locale::facet, _Facet), 29724: "template argument must be derived from locale::facet"); 29724: 29724: 29724: 29724: return std::__try_use_facet<_Facet>(__loc) != 0; 29724: } 29724: # 192 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdangling-reference" 29724: template 29724: [[__nodiscard__]] 29724: inline const _Facet& 29724: use_facet(const locale& __loc) 29724: { 29724: 29724: static_assert(__is_base_of(locale::facet, _Facet), 29724: "template argument must be derived from locale::facet"); 29724: 29724: 29724: 29724: if (const _Facet* __f = std::__try_use_facet<_Facet>(__loc)) 29724: return *__f; 29724: __throw_bad_cast(); 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: template 29724: int 29724: collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () 29724: { return 0; } 29724: 29724: 29724: template 29724: size_t 29724: collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () 29724: { return 0; } 29724: 29724: template 29724: int 29724: collate<_CharT>:: 29724: do_compare(const _CharT* __lo1, const _CharT* __hi1, 29724: const _CharT* __lo2, const _CharT* __hi2) const 29724: { 29724: 29724: 29724: const string_type __one(__lo1, __hi1); 29724: const string_type __two(__lo2, __hi2); 29724: 29724: const _CharT* __p = __one.c_str(); 29724: const _CharT* __pend = __one.data() + __one.length(); 29724: const _CharT* __q = __two.c_str(); 29724: const _CharT* __qend = __two.data() + __two.length(); 29724: 29724: 29724: 29724: 29724: for (;;) 29724: { 29724: const int __res = _M_compare(__p, __q); 29724: if (__res) 29724: return __res; 29724: 29724: __p += char_traits<_CharT>::length(__p); 29724: __q += char_traits<_CharT>::length(__q); 29724: if (__p == __pend && __q == __qend) 29724: return 0; 29724: else if (__p == __pend) 29724: return -1; 29724: else if (__q == __qend) 29724: return 1; 29724: 29724: __p++; 29724: __q++; 29724: } 29724: } 29724: 29724: template 29724: typename collate<_CharT>::string_type 29724: collate<_CharT>:: 29724: do_transform(const _CharT* __lo, const _CharT* __hi) const 29724: { 29724: string_type __ret; 29724: 29724: 29724: const string_type __str(__lo, __hi); 29724: 29724: const _CharT* __p = __str.c_str(); 29724: const _CharT* __pend = __str.data() + __str.length(); 29724: 29724: size_t __len = (__hi - __lo) * 2; 29724: 29724: _CharT* __c = new _CharT[__len]; 29724: 29724: try 29724: { 29724: 29724: 29724: 29724: for (;;) 29724: { 29724: 29724: size_t __res = _M_transform(__c, __p, __len); 29724: 29724: 29724: if (__res >= __len) 29724: { 29724: __len = __res + 1; 29724: delete [] __c, __c = 0; 29724: __c = new _CharT[__len]; 29724: __res = _M_transform(__c, __p, __len); 29724: } 29724: 29724: __ret.append(__c, __res); 29724: __p += char_traits<_CharT>::length(__p); 29724: if (__p == __pend) 29724: break; 29724: 29724: __p++; 29724: __ret.push_back(_CharT()); 29724: } 29724: } 29724: catch(...) 29724: { 29724: delete [] __c; 29724: throw; 29724: } 29724: 29724: delete [] __c; 29724: 29724: return __ret; 29724: } 29724: 29724: template 29724: long 29724: collate<_CharT>:: 29724: do_hash(const _CharT* __lo, const _CharT* __hi) const 29724: { 29724: unsigned long __val = 0; 29724: for (; __lo < __hi; ++__lo) 29724: __val = 29724: *__lo + ((__val << 7) 29724: | (__val >> (__gnu_cxx::__numeric_traits:: 29724: __digits - 7))); 29724: return static_cast(__val); 29724: } 29724: 29724: 29724: 29724: 29724: extern template class collate; 29724: extern template class collate_byname; 29724: 29724: extern template 29724: const collate* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const collate& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: extern template class collate; 29724: extern template class collate_byname; 29724: 29724: extern template 29724: const collate* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const collate& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: 29724: 29724: } 29724: # 889 "/usr/include/c++/14/bits/locale_classes.h" 2 3 29724: # 42 "/usr/include/c++/14/bits/ios_base.h" 2 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/system_error" 1 3 29724: # 32 "/usr/include/c++/14/system_error" 3 29724: 29724: # 33 "/usr/include/c++/14/system_error" 3 29724: # 43 "/usr/include/c++/14/system_error" 3 29724: # 1 "/usr/include/c++/14/stdexcept" 1 3 29724: # 36 "/usr/include/c++/14/stdexcept" 3 29724: 29724: # 37 "/usr/include/c++/14/stdexcept" 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: struct __cow_string 29724: { 29724: union { 29724: const char* _M_p; 29724: char _M_bytes[sizeof(const char*)]; 29724: }; 29724: 29724: __cow_string(); 29724: __cow_string(const std::string&); 29724: __cow_string(const char*, size_t); 29724: __cow_string(const __cow_string&) noexcept; 29724: __cow_string& operator=(const __cow_string&) noexcept; 29724: ~__cow_string(); 29724: 29724: __cow_string(__cow_string&&) noexcept; 29724: __cow_string& operator=(__cow_string&&) noexcept; 29724: 29724: }; 29724: 29724: typedef basic_string __sso_string; 29724: # 113 "/usr/include/c++/14/stdexcept" 3 29724: class logic_error : public exception 29724: { 29724: __cow_string _M_msg; 29724: 29724: public: 29724: 29724: explicit 29724: logic_error(const string& __arg) ; 29724: 29724: 29724: explicit 29724: logic_error(const char*) ; 29724: 29724: logic_error(logic_error&&) noexcept; 29724: logic_error& operator=(logic_error&&) noexcept; 29724: 29724: 29724: 29724: logic_error(const logic_error&) noexcept; 29724: logic_error& operator=(const logic_error&) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: virtual ~logic_error() noexcept; 29724: 29724: 29724: 29724: virtual const char* 29724: what() const noexcept; 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: class domain_error : public logic_error 29724: { 29724: public: 29724: explicit domain_error(const string& __arg) ; 29724: 29724: explicit domain_error(const char*) ; 29724: domain_error(const domain_error&) = default; 29724: domain_error& operator=(const domain_error&) = default; 29724: domain_error(domain_error&&) = default; 29724: domain_error& operator=(domain_error&&) = default; 29724: 29724: virtual ~domain_error() noexcept; 29724: }; 29724: 29724: 29724: class invalid_argument : public logic_error 29724: { 29724: public: 29724: explicit invalid_argument(const string& __arg) ; 29724: 29724: explicit invalid_argument(const char*) ; 29724: invalid_argument(const invalid_argument&) = default; 29724: invalid_argument& operator=(const invalid_argument&) = default; 29724: invalid_argument(invalid_argument&&) = default; 29724: invalid_argument& operator=(invalid_argument&&) = default; 29724: 29724: virtual ~invalid_argument() noexcept; 29724: }; 29724: 29724: 29724: 29724: class length_error : public logic_error 29724: { 29724: public: 29724: explicit length_error(const string& __arg) ; 29724: 29724: explicit length_error(const char*) ; 29724: length_error(const length_error&) = default; 29724: length_error& operator=(const length_error&) = default; 29724: length_error(length_error&&) = default; 29724: length_error& operator=(length_error&&) = default; 29724: 29724: virtual ~length_error() noexcept; 29724: }; 29724: 29724: 29724: 29724: class out_of_range : public logic_error 29724: { 29724: public: 29724: explicit out_of_range(const string& __arg) ; 29724: 29724: explicit out_of_range(const char*) ; 29724: out_of_range(const out_of_range&) = default; 29724: out_of_range& operator=(const out_of_range&) = default; 29724: out_of_range(out_of_range&&) = default; 29724: out_of_range& operator=(out_of_range&&) = default; 29724: 29724: virtual ~out_of_range() noexcept; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class runtime_error : public exception 29724: { 29724: __cow_string _M_msg; 29724: 29724: public: 29724: 29724: explicit 29724: runtime_error(const string& __arg) ; 29724: 29724: 29724: explicit 29724: runtime_error(const char*) ; 29724: 29724: runtime_error(runtime_error&&) noexcept; 29724: runtime_error& operator=(runtime_error&&) noexcept; 29724: 29724: 29724: 29724: runtime_error(const runtime_error&) noexcept; 29724: runtime_error& operator=(const runtime_error&) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: virtual ~runtime_error() noexcept; 29724: 29724: 29724: 29724: virtual const char* 29724: what() const noexcept; 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: class range_error : public runtime_error 29724: { 29724: public: 29724: explicit range_error(const string& __arg) ; 29724: 29724: explicit range_error(const char*) ; 29724: range_error(const range_error&) = default; 29724: range_error& operator=(const range_error&) = default; 29724: range_error(range_error&&) = default; 29724: range_error& operator=(range_error&&) = default; 29724: 29724: virtual ~range_error() noexcept; 29724: }; 29724: 29724: 29724: class overflow_error : public runtime_error 29724: { 29724: public: 29724: explicit overflow_error(const string& __arg) ; 29724: 29724: explicit overflow_error(const char*) ; 29724: overflow_error(const overflow_error&) = default; 29724: overflow_error& operator=(const overflow_error&) = default; 29724: overflow_error(overflow_error&&) = default; 29724: overflow_error& operator=(overflow_error&&) = default; 29724: 29724: virtual ~overflow_error() noexcept; 29724: }; 29724: 29724: 29724: class underflow_error : public runtime_error 29724: { 29724: public: 29724: explicit underflow_error(const string& __arg) ; 29724: 29724: explicit underflow_error(const char*) ; 29724: underflow_error(const underflow_error&) = default; 29724: underflow_error& operator=(const underflow_error&) = default; 29724: underflow_error(underflow_error&&) = default; 29724: underflow_error& operator=(underflow_error&&) = default; 29724: 29724: virtual ~underflow_error() noexcept; 29724: }; 29724: 29724: 29724: 29724: 29724: } 29724: # 44 "/usr/include/c++/14/system_error" 2 3 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class error_code; 29724: class error_condition; 29724: class system_error; 29724: 29724: 29724: template 29724: struct is_error_code_enum : public false_type { }; 29724: 29724: 29724: template 29724: struct is_error_condition_enum : public false_type { }; 29724: 29724: template<> 29724: struct is_error_condition_enum 29724: : public true_type { }; 29724: 29724: 29724: template 29724: inline constexpr bool is_error_code_enum_v = 29724: is_error_code_enum<_Tp>::value; 29724: template 29724: inline constexpr bool is_error_condition_enum_v = 29724: is_error_condition_enum<_Tp>::value; 29724: 29724: 29724: 29724: inline namespace _V2 { 29724: # 106 "/usr/include/c++/14/system_error" 3 29724: class error_category 29724: { 29724: public: 29724: constexpr error_category() noexcept = default; 29724: 29724: virtual ~error_category(); 29724: 29724: error_category(const error_category&) = delete; 29724: error_category& operator=(const error_category&) = delete; 29724: 29724: 29724: virtual const char* 29724: name() const noexcept = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: private: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: virtual __cow_string 29724: _M_message(int) const; 29724: 29724: public: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: virtual string 29724: message(int) const = 0; 29724: # 144 "/usr/include/c++/14/system_error" 3 29724: public: 29724: 29724: virtual error_condition 29724: default_error_condition(int __i) const noexcept; 29724: 29724: 29724: virtual bool 29724: equivalent(int __i, const error_condition& __cond) const noexcept; 29724: 29724: 29724: virtual bool 29724: equivalent(const error_code& __code, int __i) const noexcept; 29724: 29724: 29724: [[__nodiscard__]] 29724: bool 29724: operator==(const error_category& __other) const noexcept 29724: { return this == &__other; } 29724: # 170 "/usr/include/c++/14/system_error" 3 29724: bool 29724: operator<(const error_category& __other) const noexcept 29724: { return less()(this, &__other); } 29724: 29724: bool 29724: operator!=(const error_category& __other) const noexcept 29724: { return this != &__other; } 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: [[__nodiscard__, __gnu__::__const__]] 29724: const error_category& 29724: generic_category() noexcept; 29724: 29724: 29724: [[__nodiscard__, __gnu__::__const__]] 29724: const error_category& 29724: system_category() noexcept; 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: namespace __adl_only 29724: { 29724: void make_error_code() = delete; 29724: void make_error_condition() = delete; 29724: } 29724: # 223 "/usr/include/c++/14/system_error" 3 29724: class error_code 29724: { 29724: template 29724: using _Check 29724: = __enable_if_t::value>; 29724: 29724: public: 29724: error_code() noexcept 29724: : _M_value(0), _M_cat(&system_category()) { } 29724: 29724: error_code(int __v, const error_category& __cat) noexcept 29724: : _M_value(__v), _M_cat(&__cat) { } 29724: 29724: 29724: template> 29724: error_code(_ErrorCodeEnum __e) noexcept 29724: { 29724: using __adl_only::make_error_code; 29724: *this = make_error_code(__e); 29724: } 29724: 29724: error_code(const error_code&) = default; 29724: error_code& operator=(const error_code&) = default; 29724: 29724: void 29724: assign(int __v, const error_category& __cat) noexcept 29724: { 29724: _M_value = __v; 29724: _M_cat = &__cat; 29724: } 29724: 29724: void 29724: clear() noexcept 29724: { assign(0, system_category()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: int 29724: value() const noexcept { return _M_value; } 29724: 29724: 29724: [[__nodiscard__]] 29724: const error_category& 29724: category() const noexcept { return *_M_cat; } 29724: 29724: 29724: error_condition 29724: default_error_condition() const noexcept; 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: string 29724: message() const 29724: { return category().message(value()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: explicit operator bool() const noexcept 29724: { return _M_value != 0; } 29724: 29724: 29724: private: 29724: int _M_value; 29724: const error_category* _M_cat; 29724: }; 29724: # 300 "/usr/include/c++/14/system_error" 3 29724: [[__nodiscard__]] 29724: inline error_code 29724: make_error_code(errc __e) noexcept 29724: { return error_code(static_cast(__e), generic_category()); } 29724: # 323 "/usr/include/c++/14/system_error" 3 29724: inline bool 29724: operator<(const error_code& __lhs, const error_code& __rhs) noexcept 29724: { 29724: return (__lhs.category() < __rhs.category() 29724: || (__lhs.category() == __rhs.category() 29724: && __lhs.value() < __rhs.value())); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) 29724: { return (__os << __e.category().name() << ':' << __e.value()); } 29724: # 354 "/usr/include/c++/14/system_error" 3 29724: class error_condition 29724: { 29724: template 29724: using _Check 29724: = __enable_if_t::value>; 29724: 29724: public: 29724: 29724: error_condition() noexcept 29724: : _M_value(0), _M_cat(&generic_category()) { } 29724: 29724: 29724: error_condition(int __v, const error_category& __cat) noexcept 29724: : _M_value(__v), _M_cat(&__cat) { } 29724: 29724: 29724: template> 29724: error_condition(_ErrorConditionEnum __e) noexcept 29724: { 29724: using __adl_only::make_error_condition; 29724: *this = make_error_condition(__e); 29724: } 29724: 29724: error_condition(const error_condition&) = default; 29724: error_condition& operator=(const error_condition&) = default; 29724: 29724: 29724: void 29724: assign(int __v, const error_category& __cat) noexcept 29724: { 29724: _M_value = __v; 29724: _M_cat = &__cat; 29724: } 29724: 29724: 29724: void 29724: clear() noexcept 29724: { assign(0, generic_category()); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: int 29724: value() const noexcept { return _M_value; } 29724: 29724: 29724: [[__nodiscard__]] 29724: const error_category& 29724: category() const noexcept { return *_M_cat; } 29724: 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: string 29724: message() const 29724: { return category().message(value()); } 29724: 29724: 29724: [[__nodiscard__]] 29724: explicit operator bool() const noexcept 29724: { return _M_value != 0; } 29724: 29724: 29724: private: 29724: int _M_value; 29724: const error_category* _M_cat; 29724: }; 29724: # 433 "/usr/include/c++/14/system_error" 3 29724: [[__nodiscard__]] 29724: inline error_condition 29724: make_error_condition(errc __e) noexcept 29724: { return error_condition(static_cast(__e), generic_category()); } 29724: # 447 "/usr/include/c++/14/system_error" 3 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const error_code& __lhs, const error_code& __rhs) noexcept 29724: { 29724: return __lhs.category() == __rhs.category() 29724: && __lhs.value() == __rhs.value(); 29724: } 29724: # 463 "/usr/include/c++/14/system_error" 3 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const error_code& __lhs, const error_condition& __rhs) noexcept 29724: { 29724: return __lhs.category().equivalent(__lhs.value(), __rhs) 29724: || __rhs.category().equivalent(__lhs, __rhs.value()); 29724: } 29724: # 478 "/usr/include/c++/14/system_error" 3 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const error_condition& __lhs, 29724: const error_condition& __rhs) noexcept 29724: { 29724: return __lhs.category() == __rhs.category() 29724: && __lhs.value() == __rhs.value(); 29724: } 29724: # 506 "/usr/include/c++/14/system_error" 3 29724: inline bool 29724: operator<(const error_condition& __lhs, 29724: const error_condition& __rhs) noexcept 29724: { 29724: return (__lhs.category() < __rhs.category() 29724: || (__lhs.category() == __rhs.category() 29724: && __lhs.value() < __rhs.value())); 29724: } 29724: 29724: 29724: inline bool 29724: operator==(const error_condition& __lhs, const error_code& __rhs) noexcept 29724: { 29724: return (__rhs.category().equivalent(__rhs.value(), __lhs) 29724: || __lhs.category().equivalent(__rhs, __lhs.value())); 29724: } 29724: 29724: 29724: inline bool 29724: operator!=(const error_code& __lhs, const error_code& __rhs) noexcept 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: inline bool 29724: operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: inline bool 29724: operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept 29724: { return !(__lhs == __rhs); } 29724: 29724: 29724: inline bool 29724: operator!=(const error_condition& __lhs, 29724: const error_condition& __rhs) noexcept 29724: { return !(__lhs == __rhs); } 29724: # 556 "/usr/include/c++/14/system_error" 3 29724: class system_error : public std::runtime_error 29724: { 29724: private: 29724: error_code _M_code; 29724: 29724: public: 29724: system_error(error_code __ec = error_code()) 29724: : runtime_error(__ec.message()), _M_code(__ec) { } 29724: 29724: system_error(error_code __ec, const string& __what) 29724: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 29724: 29724: system_error(error_code __ec, const char* __what) 29724: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 29724: 29724: system_error(int __v, const error_category& __ecat, const char* __what) 29724: : system_error(error_code(__v, __ecat), __what) { } 29724: 29724: system_error(int __v, const error_category& __ecat) 29724: : runtime_error(error_code(__v, __ecat).message()), 29724: _M_code(__v, __ecat) { } 29724: 29724: system_error(int __v, const error_category& __ecat, const string& __what) 29724: : runtime_error(__what + (": " + error_code(__v, __ecat).message())), 29724: _M_code(__v, __ecat) { } 29724: 29724: 29724: system_error (const system_error &) = default; 29724: system_error &operator= (const system_error &) = default; 29724: 29724: 29724: virtual ~system_error() noexcept; 29724: 29724: const error_code& 29724: code() const noexcept { return _M_code; } 29724: }; 29724: 29724: 29724: } 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: size_t 29724: operator()(const error_code& __e) const noexcept 29724: { 29724: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 29724: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: struct hash 29724: : public __hash_base 29724: { 29724: size_t 29724: operator()(const error_condition& __e) const noexcept 29724: { 29724: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 29724: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 29724: } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 47 "/usr/include/c++/14/bits/ios_base.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum _Ios_Fmtflags 29724: { 29724: _S_boolalpha = 1L << 0, 29724: _S_dec = 1L << 1, 29724: _S_fixed = 1L << 2, 29724: _S_hex = 1L << 3, 29724: _S_internal = 1L << 4, 29724: _S_left = 1L << 5, 29724: _S_oct = 1L << 6, 29724: _S_right = 1L << 7, 29724: _S_scientific = 1L << 8, 29724: _S_showbase = 1L << 9, 29724: _S_showpoint = 1L << 10, 29724: _S_showpos = 1L << 11, 29724: _S_skipws = 1L << 12, 29724: _S_unitbuf = 1L << 13, 29724: _S_uppercase = 1L << 14, 29724: _S_adjustfield = _S_left | _S_right | _S_internal, 29724: _S_basefield = _S_dec | _S_oct | _S_hex, 29724: _S_floatfield = _S_scientific | _S_fixed, 29724: _S_ios_fmtflags_end = 1L << 16, 29724: _S_ios_fmtflags_max = 0x7fffffff, 29724: _S_ios_fmtflags_min = ~0x7fffffff 29724: }; 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Fmtflags 29724: operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29724: { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Fmtflags 29724: operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29724: { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Fmtflags 29724: operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29724: { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Fmtflags 29724: operator~(_Ios_Fmtflags __a) noexcept 29724: { return _Ios_Fmtflags(~static_cast(__a)); } 29724: 29724: constexpr 29724: inline const _Ios_Fmtflags& 29724: operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29724: { return __a = __a | __b; } 29724: 29724: constexpr 29724: inline const _Ios_Fmtflags& 29724: operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29724: { return __a = __a & __b; } 29724: 29724: constexpr 29724: inline const _Ios_Fmtflags& 29724: operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29724: { return __a = __a ^ __b; } 29724: 29724: 29724: enum _Ios_Openmode 29724: { 29724: _S_app = 1L << 0, 29724: _S_ate = 1L << 1, 29724: _S_bin = 1L << 2, 29724: _S_in = 1L << 3, 29724: _S_out = 1L << 4, 29724: _S_trunc = 1L << 5, 29724: _S_noreplace = 1L << 6, 29724: _S_ios_openmode_end = 1L << 16, 29724: _S_ios_openmode_max = 0x7fffffff, 29724: _S_ios_openmode_min = ~0x7fffffff 29724: }; 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Openmode 29724: operator&(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29724: { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Openmode 29724: operator|(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29724: { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Openmode 29724: operator^(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29724: { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Openmode 29724: operator~(_Ios_Openmode __a) noexcept 29724: { return _Ios_Openmode(~static_cast(__a)); } 29724: 29724: constexpr 29724: inline const _Ios_Openmode& 29724: operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29724: { return __a = __a | __b; } 29724: 29724: constexpr 29724: inline const _Ios_Openmode& 29724: operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29724: { return __a = __a & __b; } 29724: 29724: constexpr 29724: inline const _Ios_Openmode& 29724: operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29724: { return __a = __a ^ __b; } 29724: 29724: 29724: enum _Ios_Iostate 29724: { 29724: _S_goodbit = 0, 29724: _S_badbit = 1L << 0, 29724: _S_eofbit = 1L << 1, 29724: _S_failbit = 1L << 2, 29724: _S_ios_iostate_end = 1L << 16, 29724: _S_ios_iostate_max = 0x7fffffff, 29724: _S_ios_iostate_min = ~0x7fffffff 29724: }; 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Iostate 29724: operator&(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29724: { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Iostate 29724: operator|(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29724: { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Iostate 29724: operator^(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29724: { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } 29724: 29724: [[__nodiscard__]] constexpr 29724: inline _Ios_Iostate 29724: operator~(_Ios_Iostate __a) noexcept 29724: { return _Ios_Iostate(~static_cast(__a)); } 29724: 29724: constexpr 29724: inline const _Ios_Iostate& 29724: operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29724: { return __a = __a | __b; } 29724: 29724: constexpr 29724: inline const _Ios_Iostate& 29724: operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29724: { return __a = __a & __b; } 29724: 29724: constexpr 29724: inline const _Ios_Iostate& 29724: operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29724: { return __a = __a ^ __b; } 29724: 29724: 29724: enum _Ios_Seekdir 29724: { 29724: _S_beg = 0, 29724: _S_cur = 1, 29724: _S_end = 2, 29724: _S_ios_seekdir_end = 1L << 16 29724: }; 29724: 29724: 29724: 29724: enum class io_errc { stream = 1 }; 29724: 29724: template <> struct is_error_code_enum : public true_type { }; 29724: 29724: [[__nodiscard__, __gnu__::__const__]] 29724: const error_category& 29724: iostream_category() noexcept; 29724: 29724: [[__nodiscard__]] 29724: inline error_code 29724: make_error_code(io_errc __e) noexcept 29724: { return error_code(static_cast(__e), iostream_category()); } 29724: 29724: [[__nodiscard__]] 29724: inline error_condition 29724: make_error_condition(io_errc __e) noexcept 29724: { return error_condition(static_cast(__e), iostream_category()); } 29724: # 254 "/usr/include/c++/14/bits/ios_base.h" 3 29724: class ios_base 29724: { 29724: # 272 "/usr/include/c++/14/bits/ios_base.h" 3 29724: public: 29724: # 281 "/usr/include/c++/14/bits/ios_base.h" 3 29724: class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error 29724: { 29724: public: 29724: explicit 29724: failure(const string& __str); 29724: 29724: 29724: explicit 29724: failure(const string&, const error_code&); 29724: 29724: explicit 29724: failure(const char*, const error_code& = io_errc::stream); 29724: 29724: 29724: virtual 29724: ~failure() throw(); 29724: 29724: virtual const char* 29724: what() const throw(); 29724: }; 29724: # 367 "/usr/include/c++/14/bits/ios_base.h" 3 29724: typedef _Ios_Fmtflags fmtflags; 29724: 29724: 29724: static const fmtflags boolalpha = _S_boolalpha; 29724: 29724: 29724: static const fmtflags dec = _S_dec; 29724: 29724: 29724: static const fmtflags fixed = _S_fixed; 29724: 29724: 29724: static const fmtflags hex = _S_hex; 29724: 29724: 29724: 29724: 29724: static const fmtflags internal = _S_internal; 29724: 29724: 29724: 29724: static const fmtflags left = _S_left; 29724: 29724: 29724: static const fmtflags oct = _S_oct; 29724: 29724: 29724: 29724: static const fmtflags right = _S_right; 29724: 29724: 29724: static const fmtflags scientific = _S_scientific; 29724: 29724: 29724: 29724: static const fmtflags showbase = _S_showbase; 29724: 29724: 29724: 29724: static const fmtflags showpoint = _S_showpoint; 29724: 29724: 29724: static const fmtflags showpos = _S_showpos; 29724: 29724: 29724: static const fmtflags skipws = _S_skipws; 29724: 29724: 29724: static const fmtflags unitbuf = _S_unitbuf; 29724: 29724: 29724: 29724: static const fmtflags uppercase = _S_uppercase; 29724: 29724: 29724: static const fmtflags adjustfield = _S_adjustfield; 29724: 29724: 29724: static const fmtflags basefield = _S_basefield; 29724: 29724: 29724: static const fmtflags floatfield = _S_floatfield; 29724: # 442 "/usr/include/c++/14/bits/ios_base.h" 3 29724: typedef _Ios_Iostate iostate; 29724: 29724: 29724: 29724: static const iostate badbit = _S_badbit; 29724: 29724: 29724: static const iostate eofbit = _S_eofbit; 29724: 29724: 29724: 29724: 29724: static const iostate failbit = _S_failbit; 29724: 29724: 29724: static const iostate goodbit = _S_goodbit; 29724: # 473 "/usr/include/c++/14/bits/ios_base.h" 3 29724: typedef _Ios_Openmode openmode; 29724: 29724: 29724: static const openmode app = _S_app; 29724: 29724: 29724: static const openmode ate = _S_ate; 29724: 29724: 29724: 29724: 29724: static const openmode binary = _S_bin; 29724: 29724: 29724: static const openmode in = _S_in; 29724: 29724: 29724: static const openmode out = _S_out; 29724: 29724: 29724: static const openmode trunc = _S_trunc; 29724: 29724: static const openmode __noreplace = _S_noreplace; 29724: # 512 "/usr/include/c++/14/bits/ios_base.h" 3 29724: typedef _Ios_Seekdir seekdir; 29724: 29724: 29724: static const seekdir beg = _S_beg; 29724: 29724: 29724: static const seekdir cur = _S_cur; 29724: 29724: 29724: static const seekdir end = _S_end; 29724: # 545 "/usr/include/c++/14/bits/ios_base.h" 3 29724: enum event 29724: { 29724: erase_event, 29724: imbue_event, 29724: copyfmt_event 29724: }; 29724: # 562 "/usr/include/c++/14/bits/ios_base.h" 3 29724: typedef void (*event_callback) (event __e, ios_base& __b, int __i); 29724: # 574 "/usr/include/c++/14/bits/ios_base.h" 3 29724: void 29724: register_callback(event_callback __fn, int __index); 29724: 29724: protected: 29724: streamsize _M_precision; 29724: streamsize _M_width; 29724: fmtflags _M_flags; 29724: iostate _M_exception; 29724: iostate _M_streambuf_state; 29724: 29724: 29724: 29724: struct _Callback_list 29724: { 29724: 29724: _Callback_list* _M_next; 29724: ios_base::event_callback _M_fn; 29724: int _M_index; 29724: _Atomic_word _M_refcount; 29724: 29724: _Callback_list(ios_base::event_callback __fn, int __index, 29724: _Callback_list* __cb) 29724: : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } 29724: 29724: void 29724: _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29724: 29724: 29724: int 29724: _M_remove_reference() 29724: { 29724: 29724: ; 29724: int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); 29724: if (__res == 0) 29724: { 29724: ; 29724: } 29724: return __res; 29724: } 29724: }; 29724: 29724: _Callback_list* _M_callbacks; 29724: 29724: void 29724: _M_call_callbacks(event __ev) throw(); 29724: 29724: void 29724: _M_dispose_callbacks(void) throw(); 29724: 29724: 29724: struct _Words 29724: { 29724: void* _M_pword; 29724: long _M_iword; 29724: _Words() : _M_pword(0), _M_iword(0) { } 29724: }; 29724: 29724: 29724: _Words _M_word_zero; 29724: 29724: 29724: 29724: enum { _S_local_word_size = 8 }; 29724: _Words _M_local_word[_S_local_word_size]; 29724: 29724: 29724: int _M_word_size; 29724: _Words* _M_word; 29724: 29724: _Words& 29724: _M_grow_words(int __index, bool __iword); 29724: 29724: 29724: locale _M_ios_locale; 29724: 29724: void 29724: _M_init() throw(); 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: class Init 29724: { 29724: friend class ios_base; 29724: public: 29724: Init(); 29724: ~Init(); 29724: 29724: 29724: Init(const Init&) = default; 29724: Init& operator=(const Init&) = default; 29724: 29724: 29724: private: 29724: static _Atomic_word _S_refcount; 29724: static bool _S_synced_with_stdio; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: fmtflags 29724: flags() const 29724: { return _M_flags; } 29724: # 692 "/usr/include/c++/14/bits/ios_base.h" 3 29724: fmtflags 29724: flags(fmtflags __fmtfl) 29724: { 29724: fmtflags __old = _M_flags; 29724: _M_flags = __fmtfl; 29724: return __old; 29724: } 29724: # 708 "/usr/include/c++/14/bits/ios_base.h" 3 29724: fmtflags 29724: setf(fmtflags __fmtfl) 29724: { 29724: fmtflags __old = _M_flags; 29724: _M_flags |= __fmtfl; 29724: return __old; 29724: } 29724: # 725 "/usr/include/c++/14/bits/ios_base.h" 3 29724: fmtflags 29724: setf(fmtflags __fmtfl, fmtflags __mask) 29724: { 29724: fmtflags __old = _M_flags; 29724: _M_flags &= ~__mask; 29724: _M_flags |= (__fmtfl & __mask); 29724: return __old; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: unsetf(fmtflags __mask) 29724: { _M_flags &= ~__mask; } 29724: # 751 "/usr/include/c++/14/bits/ios_base.h" 3 29724: streamsize 29724: precision() const 29724: { return _M_precision; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: streamsize 29724: precision(streamsize __prec) 29724: { 29724: streamsize __old = _M_precision; 29724: _M_precision = __prec; 29724: return __old; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: streamsize 29724: width() const 29724: { return _M_width; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: streamsize 29724: width(streamsize __wide) 29724: { 29724: streamsize __old = _M_width; 29724: _M_width = __wide; 29724: return __old; 29724: } 29724: # 802 "/usr/include/c++/14/bits/ios_base.h" 3 29724: static bool 29724: sync_with_stdio(bool __sync = true); 29724: # 814 "/usr/include/c++/14/bits/ios_base.h" 3 29724: locale 29724: imbue(const locale& __loc) throw(); 29724: # 825 "/usr/include/c++/14/bits/ios_base.h" 3 29724: locale 29724: getloc() const 29724: { return _M_ios_locale; } 29724: # 836 "/usr/include/c++/14/bits/ios_base.h" 3 29724: const locale& 29724: _M_getloc() const 29724: { return _M_ios_locale; } 29724: # 855 "/usr/include/c++/14/bits/ios_base.h" 3 29724: static int 29724: xalloc() throw(); 29724: # 871 "/usr/include/c++/14/bits/ios_base.h" 3 29724: long& 29724: iword(int __ix) 29724: { 29724: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 29724: ? _M_word[__ix] : _M_grow_words(__ix, true); 29724: return __word._M_iword; 29724: } 29724: # 892 "/usr/include/c++/14/bits/ios_base.h" 3 29724: void*& 29724: pword(int __ix) 29724: { 29724: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 29724: ? _M_word[__ix] : _M_grow_words(__ix, false); 29724: return __word._M_pword; 29724: } 29724: # 909 "/usr/include/c++/14/bits/ios_base.h" 3 29724: virtual ~ios_base(); 29724: 29724: protected: 29724: ios_base() throw (); 29724: # 923 "/usr/include/c++/14/bits/ios_base.h" 3 29724: public: 29724: ios_base(const ios_base&) = delete; 29724: 29724: ios_base& 29724: operator=(const ios_base&) = delete; 29724: 29724: protected: 29724: void 29724: _M_move(ios_base&) noexcept; 29724: 29724: void 29724: _M_swap(ios_base& __rhs) noexcept; 29724: 29724: }; 29724: 29724: 29724: 29724: inline ios_base& 29724: boolalpha(ios_base& __base) 29724: { 29724: __base.setf(ios_base::boolalpha); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: noboolalpha(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::boolalpha); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: showbase(ios_base& __base) 29724: { 29724: __base.setf(ios_base::showbase); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: noshowbase(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::showbase); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: showpoint(ios_base& __base) 29724: { 29724: __base.setf(ios_base::showpoint); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: noshowpoint(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::showpoint); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: showpos(ios_base& __base) 29724: { 29724: __base.setf(ios_base::showpos); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: noshowpos(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::showpos); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: skipws(ios_base& __base) 29724: { 29724: __base.setf(ios_base::skipws); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: noskipws(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::skipws); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: uppercase(ios_base& __base) 29724: { 29724: __base.setf(ios_base::uppercase); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: nouppercase(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::uppercase); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: unitbuf(ios_base& __base) 29724: { 29724: __base.setf(ios_base::unitbuf); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: nounitbuf(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::unitbuf); 29724: return __base; 29724: } 29724: 29724: 29724: 29724: inline ios_base& 29724: internal(ios_base& __base) 29724: { 29724: __base.setf(ios_base::internal, ios_base::adjustfield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: left(ios_base& __base) 29724: { 29724: __base.setf(ios_base::left, ios_base::adjustfield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: right(ios_base& __base) 29724: { 29724: __base.setf(ios_base::right, ios_base::adjustfield); 29724: return __base; 29724: } 29724: 29724: 29724: 29724: inline ios_base& 29724: dec(ios_base& __base) 29724: { 29724: __base.setf(ios_base::dec, ios_base::basefield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: hex(ios_base& __base) 29724: { 29724: __base.setf(ios_base::hex, ios_base::basefield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: oct(ios_base& __base) 29724: { 29724: __base.setf(ios_base::oct, ios_base::basefield); 29724: return __base; 29724: } 29724: 29724: 29724: 29724: inline ios_base& 29724: fixed(ios_base& __base) 29724: { 29724: __base.setf(ios_base::fixed, ios_base::floatfield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: scientific(ios_base& __base) 29724: { 29724: __base.setf(ios_base::scientific, ios_base::floatfield); 29724: return __base; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline ios_base& 29724: hexfloat(ios_base& __base) 29724: { 29724: __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); 29724: return __base; 29724: } 29724: 29724: 29724: inline ios_base& 29724: defaultfloat(ios_base& __base) 29724: { 29724: __base.unsetf(ios_base::floatfield); 29724: return __base; 29724: } 29724: 29724: 29724: 29724: } 29724: # 45 "/usr/include/c++/14/ios" 2 3 29724: # 1 "/usr/include/c++/14/streambuf" 1 3 29724: # 36 "/usr/include/c++/14/streambuf" 3 29724: 29724: # 37 "/usr/include/c++/14/streambuf" 3 29724: # 47 "/usr/include/c++/14/streambuf" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: streamsize 29724: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, 29724: basic_streambuf<_CharT, _Traits>*, bool&); 29724: # 123 "/usr/include/c++/14/streambuf" 3 29724: template 29724: class basic_streambuf 29724: { 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: 29724: 29724: typedef basic_streambuf __streambuf_type; 29724: 29724: 29724: friend class basic_ios; 29724: friend class basic_istream; 29724: friend class basic_ostream; 29724: friend class istreambuf_iterator; 29724: friend class ostreambuf_iterator; 29724: 29724: friend streamsize 29724: __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: _CharT2*>::__type 29724: __copy_move_a2(istreambuf_iterator<_CharT2>, 29724: istreambuf_iterator<_CharT2>, _CharT2*); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: istreambuf_iterator<_CharT2> >::__type 29724: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29724: const _CharT2&); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: void>::__type 29724: advance(istreambuf_iterator<_CharT2>&, _Distance); 29724: 29724: friend void __istream_extract(istream&, char*, streamsize); 29724: 29724: template 29724: friend basic_istream<_CharT2, _Traits2>& 29724: operator>>(basic_istream<_CharT2, _Traits2>&, 29724: basic_string<_CharT2, _Traits2, _Alloc>&); 29724: 29724: template 29724: friend basic_istream<_CharT2, _Traits2>& 29724: getline(basic_istream<_CharT2, _Traits2>&, 29724: basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: char_type* _M_in_beg; 29724: char_type* _M_in_cur; 29724: char_type* _M_in_end; 29724: char_type* _M_out_beg; 29724: char_type* _M_out_cur; 29724: char_type* _M_out_end; 29724: 29724: 29724: locale _M_buf_locale; 29724: 29724: public: 29724: 29724: virtual 29724: ~basic_streambuf() 29724: { } 29724: # 215 "/usr/include/c++/14/streambuf" 3 29724: locale 29724: pubimbue(const locale& __loc) 29724: { 29724: locale __tmp(this->getloc()); 29724: this->imbue(__loc); 29724: _M_buf_locale = __loc; 29724: return __tmp; 29724: } 29724: # 232 "/usr/include/c++/14/streambuf" 3 29724: locale 29724: getloc() const 29724: { return _M_buf_locale; } 29724: # 245 "/usr/include/c++/14/streambuf" 3 29724: basic_streambuf* 29724: pubsetbuf(char_type* __s, streamsize __n) 29724: { return this->setbuf(__s, __n); } 29724: # 257 "/usr/include/c++/14/streambuf" 3 29724: pos_type 29724: pubseekoff(off_type __off, ios_base::seekdir __way, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: { return this->seekoff(__off, __way, __mode); } 29724: # 269 "/usr/include/c++/14/streambuf" 3 29724: pos_type 29724: pubseekpos(pos_type __sp, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: { return this->seekpos(__sp, __mode); } 29724: 29724: 29724: 29724: 29724: int 29724: pubsync() { return this->sync(); } 29724: # 290 "/usr/include/c++/14/streambuf" 3 29724: streamsize 29724: in_avail() 29724: { 29724: const streamsize __ret = this->egptr() - this->gptr(); 29724: return __ret ? __ret : this->showmanyc(); 29724: } 29724: # 304 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: snextc() 29724: { 29724: int_type __ret = traits_type::eof(); 29724: if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), 29724: __ret), true)) 29724: __ret = this->sgetc(); 29724: return __ret; 29724: } 29724: # 322 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: sbumpc() 29724: { 29724: int_type __ret; 29724: if (__builtin_expect(this->gptr() < this->egptr(), true)) 29724: { 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: this->gbump(1); 29724: } 29724: else 29724: __ret = this->uflow(); 29724: return __ret; 29724: } 29724: # 344 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: sgetc() 29724: { 29724: int_type __ret; 29724: if (__builtin_expect(this->gptr() < this->egptr(), true)) 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: else 29724: __ret = this->underflow(); 29724: return __ret; 29724: } 29724: # 363 "/usr/include/c++/14/streambuf" 3 29724: streamsize 29724: sgetn(char_type* __s, streamsize __n) 29724: { return this->xsgetn(__s, __n); } 29724: # 378 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: sputbackc(char_type __c) 29724: { 29724: int_type __ret; 29724: const bool __testpos = this->eback() < this->gptr(); 29724: if (__builtin_expect(!__testpos || 29724: !traits_type::eq(__c, this->gptr()[-1]), false)) 29724: __ret = this->pbackfail(traits_type::to_int_type(__c)); 29724: else 29724: { 29724: this->gbump(-1); 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: } 29724: return __ret; 29724: } 29724: # 403 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: sungetc() 29724: { 29724: int_type __ret; 29724: if (__builtin_expect(this->eback() < this->gptr(), true)) 29724: { 29724: this->gbump(-1); 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: } 29724: else 29724: __ret = this->pbackfail(); 29724: return __ret; 29724: } 29724: # 430 "/usr/include/c++/14/streambuf" 3 29724: int_type 29724: sputc(char_type __c) 29724: { 29724: int_type __ret; 29724: if (__builtin_expect(this->pptr() < this->epptr(), true)) 29724: { 29724: *this->pptr() = __c; 29724: this->pbump(1); 29724: __ret = traits_type::to_int_type(__c); 29724: } 29724: else 29724: __ret = this->overflow(traits_type::to_int_type(__c)); 29724: return __ret; 29724: } 29724: # 456 "/usr/include/c++/14/streambuf" 3 29724: streamsize 29724: sputn(const char_type* __s, streamsize __n) 29724: { return this->xsputn(__s, __n); } 29724: 29724: protected: 29724: # 470 "/usr/include/c++/14/streambuf" 3 29724: basic_streambuf() 29724: : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), 29724: _M_out_beg(0), _M_out_cur(0), _M_out_end(0), 29724: _M_buf_locale(locale()) 29724: { } 29724: # 488 "/usr/include/c++/14/streambuf" 3 29724: char_type* 29724: eback() const { return _M_in_beg; } 29724: 29724: char_type* 29724: gptr() const { return _M_in_cur; } 29724: 29724: char_type* 29724: egptr() const { return _M_in_end; } 29724: # 504 "/usr/include/c++/14/streambuf" 3 29724: void 29724: gbump(int __n) { _M_in_cur += __n; } 29724: # 515 "/usr/include/c++/14/streambuf" 3 29724: void 29724: setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) 29724: { 29724: _M_in_beg = __gbeg; 29724: _M_in_cur = __gnext; 29724: _M_in_end = __gend; 29724: } 29724: # 535 "/usr/include/c++/14/streambuf" 3 29724: char_type* 29724: pbase() const { return _M_out_beg; } 29724: 29724: char_type* 29724: pptr() const { return _M_out_cur; } 29724: 29724: char_type* 29724: epptr() const { return _M_out_end; } 29724: # 551 "/usr/include/c++/14/streambuf" 3 29724: void 29724: pbump(int __n) { _M_out_cur += __n; } 29724: # 561 "/usr/include/c++/14/streambuf" 3 29724: void 29724: setp(char_type* __pbeg, char_type* __pend) 29724: { 29724: _M_out_beg = _M_out_cur = __pbeg; 29724: _M_out_end = __pend; 29724: } 29724: # 582 "/usr/include/c++/14/streambuf" 3 29724: virtual void 29724: imbue(const locale& __loc __attribute__ ((__unused__))) 29724: { } 29724: # 597 "/usr/include/c++/14/streambuf" 3 29724: virtual basic_streambuf* 29724: setbuf(char_type*, streamsize) 29724: { return this; } 29724: # 608 "/usr/include/c++/14/streambuf" 3 29724: virtual pos_type 29724: seekoff(off_type, ios_base::seekdir, 29724: ios_base::openmode = ios_base::in | ios_base::out) 29724: { return pos_type(off_type(-1)); } 29724: # 620 "/usr/include/c++/14/streambuf" 3 29724: virtual pos_type 29724: seekpos(pos_type, 29724: ios_base::openmode = ios_base::in | ios_base::out) 29724: { return pos_type(off_type(-1)); } 29724: # 633 "/usr/include/c++/14/streambuf" 3 29724: virtual int 29724: sync() { return 0; } 29724: # 655 "/usr/include/c++/14/streambuf" 3 29724: virtual streamsize 29724: showmanyc() { return 0; } 29724: # 671 "/usr/include/c++/14/streambuf" 3 29724: virtual streamsize 29724: xsgetn(char_type* __s, streamsize __n); 29724: # 693 "/usr/include/c++/14/streambuf" 3 29724: virtual int_type 29724: underflow() 29724: { return traits_type::eof(); } 29724: # 706 "/usr/include/c++/14/streambuf" 3 29724: virtual int_type 29724: uflow() 29724: { 29724: int_type __ret = traits_type::eof(); 29724: const bool __testeof = traits_type::eq_int_type(this->underflow(), 29724: __ret); 29724: if (!__testeof) 29724: { 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: this->gbump(1); 29724: } 29724: return __ret; 29724: } 29724: # 730 "/usr/include/c++/14/streambuf" 3 29724: virtual int_type 29724: pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 29724: { return traits_type::eof(); } 29724: # 748 "/usr/include/c++/14/streambuf" 3 29724: virtual streamsize 29724: xsputn(const char_type* __s, streamsize __n); 29724: # 774 "/usr/include/c++/14/streambuf" 3 29724: virtual int_type 29724: overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 29724: { return traits_type::eof(); } 29724: # 801 "/usr/include/c++/14/streambuf" 3 29724: void 29724: __safe_gbump(streamsize __n) { _M_in_cur += __n; } 29724: 29724: void 29724: __safe_pbump(streamsize __n) { _M_out_cur += __n; } 29724: 29724: 29724: 29724: 29724: protected: 29724: 29724: basic_streambuf(const basic_streambuf&); 29724: 29724: basic_streambuf& 29724: operator=(const basic_streambuf&); 29724: 29724: 29724: void 29724: swap(basic_streambuf& __sb) 29724: { 29724: std::swap(_M_in_beg, __sb._M_in_beg); 29724: std::swap(_M_in_cur, __sb._M_in_cur); 29724: std::swap(_M_in_end, __sb._M_in_end); 29724: std::swap(_M_out_beg, __sb._M_out_beg); 29724: std::swap(_M_out_cur, __sb._M_out_cur); 29724: std::swap(_M_out_end, __sb._M_out_end); 29724: std::swap(_M_buf_locale, __sb._M_buf_locale); 29724: } 29724: 29724: }; 29724: 29724: 29724: template 29724: std::basic_streambuf<_CharT, _Traits>:: 29724: basic_streambuf(const basic_streambuf&) = default; 29724: 29724: template 29724: std::basic_streambuf<_CharT, _Traits>& 29724: std::basic_streambuf<_CharT, _Traits>:: 29724: operator=(const basic_streambuf&) = default; 29724: 29724: 29724: 29724: template<> 29724: streamsize 29724: __copy_streambufs_eof(basic_streambuf* __sbin, 29724: basic_streambuf* __sbout, bool& __ineof); 29724: 29724: template<> 29724: streamsize 29724: __copy_streambufs_eof(basic_streambuf* __sbin, 29724: basic_streambuf* __sbout, bool& __ineof); 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/streambuf.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/streambuf.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/streambuf.tcc" 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: streamsize 29724: basic_streambuf<_CharT, _Traits>:: 29724: xsgetn(char_type* __s, streamsize __n) 29724: { 29724: streamsize __ret = 0; 29724: while (__ret < __n) 29724: { 29724: const streamsize __buf_len = this->egptr() - this->gptr(); 29724: if (__buf_len) 29724: { 29724: const streamsize __remaining = __n - __ret; 29724: const streamsize __len = std::min(__buf_len, __remaining); 29724: traits_type::copy(__s, this->gptr(), __len); 29724: __ret += __len; 29724: __s += __len; 29724: this->__safe_gbump(__len); 29724: } 29724: 29724: if (__ret < __n) 29724: { 29724: const int_type __c = this->uflow(); 29724: if (!traits_type::eq_int_type(__c, traits_type::eof())) 29724: { 29724: traits_type::assign(*__s++, traits_type::to_char_type(__c)); 29724: ++__ret; 29724: } 29724: else 29724: break; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: streamsize 29724: basic_streambuf<_CharT, _Traits>:: 29724: xsputn(const char_type* __s, streamsize __n) 29724: { 29724: streamsize __ret = 0; 29724: while (__ret < __n) 29724: { 29724: const streamsize __buf_len = this->epptr() - this->pptr(); 29724: if (__buf_len) 29724: { 29724: const streamsize __remaining = __n - __ret; 29724: const streamsize __len = std::min(__buf_len, __remaining); 29724: traits_type::copy(this->pptr(), __s, __len); 29724: __ret += __len; 29724: __s += __len; 29724: this->__safe_pbump(__len); 29724: } 29724: 29724: if (__ret < __n) 29724: { 29724: int_type __c = this->overflow(traits_type::to_int_type(*__s)); 29724: if (!traits_type::eq_int_type(__c, traits_type::eof())) 29724: { 29724: ++__ret; 29724: ++__s; 29724: } 29724: else 29724: break; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: streamsize 29724: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, 29724: basic_streambuf<_CharT, _Traits>* __sbout, 29724: bool& __ineof) 29724: { 29724: streamsize __ret = 0; 29724: __ineof = true; 29724: typename _Traits::int_type __c = __sbin->sgetc(); 29724: while (!_Traits::eq_int_type(__c, _Traits::eof())) 29724: { 29724: __c = __sbout->sputc(_Traits::to_char_type(__c)); 29724: if (_Traits::eq_int_type(__c, _Traits::eof())) 29724: { 29724: __ineof = false; 29724: break; 29724: } 29724: ++__ret; 29724: __c = __sbin->snextc(); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: inline streamsize 29724: __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, 29724: basic_streambuf<_CharT, _Traits>* __sbout) 29724: { 29724: bool __ineof; 29724: return __copy_streambufs_eof(__sbin, __sbout, __ineof); 29724: } 29724: 29724: 29724: 29724: 29724: extern template class basic_streambuf; 29724: 29724: extern template 29724: streamsize 29724: __copy_streambufs(basic_streambuf*, 29724: basic_streambuf*); 29724: 29724: 29724: extern template class basic_streambuf; 29724: 29724: extern template 29724: streamsize 29724: __copy_streambufs(basic_streambuf*, 29724: basic_streambuf*); 29724: 29724: 29724: 29724: 29724: } 29724: # 861 "/usr/include/c++/14/streambuf" 2 3 29724: # 46 "/usr/include/c++/14/ios" 2 3 29724: # 1 "/usr/include/c++/14/bits/basic_ios.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/locale_facets.h" 1 3 29724: # 37 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: 29724: # 1 "/usr/include/c++/14/cwctype" 1 3 29724: # 39 "/usr/include/c++/14/cwctype" 3 29724: 29724: # 40 "/usr/include/c++/14/cwctype" 3 29724: # 50 "/usr/include/c++/14/cwctype" 3 29724: # 1 "/usr/include/wctype.h" 1 3 4 29724: # 38 "/usr/include/wctype.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 1 3 4 29724: # 38 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29724: typedef unsigned long int wctype_t; 29724: # 56 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29724: enum 29724: { 29724: __ISwupper = 0, 29724: __ISwlower = 1, 29724: __ISwalpha = 2, 29724: __ISwdigit = 3, 29724: __ISwxdigit = 4, 29724: __ISwspace = 5, 29724: __ISwprint = 6, 29724: __ISwgraph = 7, 29724: __ISwblank = 8, 29724: __ISwcntrl = 9, 29724: __ISwpunct = 10, 29724: __ISwalnum = 11, 29724: 29724: _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), 29724: _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), 29724: _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), 29724: _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), 29724: _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), 29724: _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), 29724: _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), 29724: _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), 29724: _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), 29724: _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), 29724: _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), 29724: _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) 29724: }; 29724: 29724: 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int iswalnum (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int iswalpha (wint_t __wc) noexcept (true); 29724: 29724: 29724: extern int iswcntrl (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: extern int iswdigit (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: extern int iswgraph (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswlower (wint_t __wc) noexcept (true); 29724: 29724: 29724: extern int iswprint (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswpunct (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswspace (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswupper (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswxdigit (wint_t __wc) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int iswblank (wint_t __wc) noexcept (true); 29724: # 155 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29724: extern wctype_t wctype (const char *__property) noexcept (true); 29724: 29724: 29724: 29724: extern int iswctype (wint_t __wc, wctype_t __desc) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t towlower (wint_t __wc) noexcept (true); 29724: 29724: 29724: extern wint_t towupper (wint_t __wc) noexcept (true); 29724: 29724: } 29724: # 39 "/usr/include/wctype.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: 29724: 29724: 29724: typedef const __int32_t *wctrans_t; 29724: 29724: 29724: 29724: extern wctrans_t wctrans (const char *__property) noexcept (true); 29724: 29724: 29724: extern wint_t towctrans (wint_t __wc, wctrans_t __desc) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int iswalnum_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int iswalpha_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: extern int iswcntrl_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: extern int iswdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: extern int iswgraph_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswlower_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: extern int iswprint_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswpunct_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswspace_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswupper_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswxdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int iswblank_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: extern wctype_t wctype_l (const char *__property, locale_t __locale) 29724: noexcept (true); 29724: 29724: 29724: 29724: extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern wint_t towlower_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: extern wint_t towupper_l (wint_t __wc, locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: extern wctrans_t wctrans_l (const char *__property, locale_t __locale) 29724: noexcept (true); 29724: 29724: 29724: extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, 29724: locale_t __locale) noexcept (true); 29724: 29724: 29724: 29724: } 29724: # 51 "/usr/include/c++/14/cwctype" 2 3 29724: # 80 "/usr/include/c++/14/cwctype" 3 29724: namespace std 29724: { 29724: using ::wctrans_t; 29724: using ::wctype_t; 29724: using ::wint_t; 29724: 29724: using ::iswalnum; 29724: using ::iswalpha; 29724: 29724: using ::iswblank; 29724: 29724: using ::iswcntrl; 29724: using ::iswctype; 29724: using ::iswdigit; 29724: using ::iswgraph; 29724: using ::iswlower; 29724: using ::iswprint; 29724: using ::iswpunct; 29724: using ::iswspace; 29724: using ::iswupper; 29724: using ::iswxdigit; 29724: using ::towctrans; 29724: using ::towlower; 29724: using ::towupper; 29724: using ::wctrans; 29724: using ::wctype; 29724: } 29724: # 40 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: # 1 "/usr/include/c++/14/cctype" 1 3 29724: # 39 "/usr/include/c++/14/cctype" 3 29724: 29724: # 40 "/usr/include/c++/14/cctype" 3 29724: # 41 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 1 3 29724: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: struct ctype_base 29724: { 29724: 29724: typedef const int* __to_type; 29724: 29724: 29724: 29724: typedef unsigned short mask; 29724: static const mask upper = _ISupper; 29724: static const mask lower = _ISlower; 29724: static const mask alpha = _ISalpha; 29724: static const mask digit = _ISdigit; 29724: static const mask xdigit = _ISxdigit; 29724: static const mask space = _ISspace; 29724: static const mask print = _ISprint; 29724: static const mask graph = _ISalpha | _ISdigit | _ISpunct; 29724: static const mask cntrl = _IScntrl; 29724: static const mask punct = _ISpunct; 29724: static const mask alnum = _ISalpha | _ISdigit; 29724: 29724: static const mask blank = _ISblank; 29724: 29724: }; 29724: 29724: 29724: } 29724: # 42 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/streambuf_iterator.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 49 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template 29724: class istreambuf_iterator 29724: : public iterator 29724: { 29724: public: 29724: # 70 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 29724: typedef basic_istream<_CharT, _Traits> istream_type; 29724: 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: ostreambuf_iterator<_CharT2> >::__type 29724: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29724: ostreambuf_iterator<_CharT2>); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: _CharT2*>::__type 29724: __copy_move_a2(istreambuf_iterator<_CharT2>, 29724: istreambuf_iterator<_CharT2>, _CharT2*); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: _CharT2*>::__type 29724: __copy_n_a(istreambuf_iterator<_CharT2>, _Size, _CharT2*, bool); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: istreambuf_iterator<_CharT2> >::__type 29724: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29724: const _CharT2&); 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: void>::__type 29724: advance(istreambuf_iterator<_CharT2>&, _Distance); 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: mutable streambuf_type* _M_sbuf; 29724: int_type _M_c; 29724: 29724: public: 29724: 29724: constexpr istreambuf_iterator() noexcept 29724: : _M_sbuf(0), _M_c(traits_type::eof()) { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: istreambuf_iterator(const istreambuf_iterator&) noexcept = default; 29724: 29724: ~istreambuf_iterator() = default; 29724: 29724: 29724: 29724: istreambuf_iterator(istream_type& __s) noexcept 29724: : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } 29724: 29724: 29724: istreambuf_iterator(streambuf_type* __s) noexcept 29724: : _M_sbuf(__s), _M_c(traits_type::eof()) { } 29724: 29724: 29724: istreambuf_iterator& 29724: operator=(const istreambuf_iterator&) noexcept = default; 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: char_type 29724: operator*() const 29724: { 29724: int_type __c = _M_get(); 29724: # 161 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: return traits_type::to_char_type(__c); 29724: } 29724: 29724: 29724: istreambuf_iterator& 29724: operator++() 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: _M_sbuf->sbumpc(); 29724: _M_c = traits_type::eof(); 29724: return *this; 29724: } 29724: 29724: 29724: istreambuf_iterator 29724: operator++(int) 29724: { 29724: 29724: 29724: 29724: ; 29724: 29724: istreambuf_iterator __old = *this; 29724: __old._M_c = _M_sbuf->sbumpc(); 29724: _M_c = traits_type::eof(); 29724: return __old; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: bool 29724: equal(const istreambuf_iterator& __b) const 29724: { return _M_at_eof() == __b._M_at_eof(); } 29724: 29724: private: 29724: int_type 29724: _M_get() const 29724: { 29724: int_type __ret = _M_c; 29724: if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) 29724: _M_sbuf = 0; 29724: return __ret; 29724: } 29724: 29724: bool 29724: _M_at_eof() const 29724: { return _S_is_eof(_M_get()); } 29724: 29724: static bool 29724: _S_is_eof(int_type __c) 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: return traits_type::eq_int_type(__c, __eof); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const istreambuf_iterator<_CharT, _Traits>& __a, 29724: const istreambuf_iterator<_CharT, _Traits>& __b) 29724: { return __a.equal(__b); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, 29724: const istreambuf_iterator<_CharT, _Traits>& __b) 29724: { return !__a.equal(__b); } 29724: 29724: 29724: 29724: template 29724: class ostreambuf_iterator 29724: : public iterator 29724: { 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 29724: typedef basic_ostream<_CharT, _Traits> ostream_type; 29724: 29724: 29724: template 29724: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29724: ostreambuf_iterator<_CharT2> >::__type 29724: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29724: ostreambuf_iterator<_CharT2>); 29724: 29724: private: 29724: streambuf_type* _M_sbuf; 29724: bool _M_failed; 29724: 29724: public: 29724: # 284 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29724: ostreambuf_iterator(ostream_type& __s) noexcept 29724: : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } 29724: 29724: 29724: ostreambuf_iterator(streambuf_type* __s) noexcept 29724: : _M_sbuf(__s), _M_failed(!_M_sbuf) { } 29724: 29724: 29724: ostreambuf_iterator& 29724: operator=(_CharT __c) 29724: { 29724: if (!_M_failed && 29724: _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) 29724: _M_failed = true; 29724: return *this; 29724: } 29724: 29724: 29724: [[__nodiscard__]] 29724: ostreambuf_iterator& 29724: operator*() 29724: { return *this; } 29724: 29724: 29724: ostreambuf_iterator& 29724: operator++(int) 29724: { return *this; } 29724: 29724: 29724: ostreambuf_iterator& 29724: operator++() 29724: { return *this; } 29724: 29724: 29724: [[__nodiscard__]] 29724: bool 29724: failed() const noexcept 29724: { return _M_failed; } 29724: 29724: ostreambuf_iterator& 29724: _M_put(const _CharT* __ws, streamsize __len) 29724: { 29724: if (__builtin_expect(!_M_failed, true) 29724: && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, 29724: false)) 29724: _M_failed = true; 29724: return *this; 29724: } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: ostreambuf_iterator<_CharT> >::__type 29724: copy(istreambuf_iterator<_CharT> __first, 29724: istreambuf_iterator<_CharT> __last, 29724: ostreambuf_iterator<_CharT> __result) 29724: { 29724: if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) 29724: { 29724: bool __ineof; 29724: __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); 29724: if (!__ineof) 29724: __result._M_failed = true; 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: ostreambuf_iterator<_CharT> >::__type 29724: __copy_move_a2(_CharT* __first, _CharT* __last, 29724: ostreambuf_iterator<_CharT> __result) 29724: { 29724: const streamsize __num = __last - __first; 29724: if (__num > 0) 29724: __result._M_put(__first, __num); 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: ostreambuf_iterator<_CharT> >::__type 29724: __copy_move_a2(const _CharT* __first, const _CharT* __last, 29724: ostreambuf_iterator<_CharT> __result) 29724: { 29724: const streamsize __num = __last - __first; 29724: if (__num > 0) 29724: __result._M_put(__first, __num); 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: _CharT*>::__type 29724: __copy_move_a2(istreambuf_iterator<_CharT> __first, 29724: istreambuf_iterator<_CharT> __last, _CharT* __result) 29724: { 29724: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29724: typedef typename __is_iterator_type::traits_type traits_type; 29724: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29724: typedef typename traits_type::int_type int_type; 29724: 29724: if (__first._M_sbuf && !__last._M_sbuf) 29724: { 29724: streambuf_type* __sb = __first._M_sbuf; 29724: int_type __c = __sb->sgetc(); 29724: while (!traits_type::eq_int_type(__c, traits_type::eof())) 29724: { 29724: const streamsize __n = __sb->egptr() - __sb->gptr(); 29724: if (__n > 1) 29724: { 29724: traits_type::copy(__result, __sb->gptr(), __n); 29724: __sb->__safe_gbump(__n); 29724: __result += __n; 29724: __c = __sb->underflow(); 29724: } 29724: else 29724: { 29724: *__result++ = traits_type::to_char_type(__c); 29724: __c = __sb->snextc(); 29724: } 29724: } 29724: } 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: _CharT*>::__type 29724: __copy_n_a(istreambuf_iterator<_CharT> __it, _Size __n, _CharT* __result, 29724: bool __strict __attribute__((__unused__))) 29724: { 29724: if (__n == 0) 29724: return __result; 29724: 29724: 29724: 29724: ; 29724: _CharT* __beg = __result; 29724: __result += __it._M_sbuf->sgetn(__beg, __n); 29724: 29724: 29724: ; 29724: return __result; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: istreambuf_iterator<_CharT> >::__type 29724: find(istreambuf_iterator<_CharT> __first, 29724: istreambuf_iterator<_CharT> __last, const _CharT& __val) 29724: { 29724: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29724: typedef typename __is_iterator_type::traits_type traits_type; 29724: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29724: typedef typename traits_type::int_type int_type; 29724: const int_type __eof = traits_type::eof(); 29724: 29724: if (__first._M_sbuf && !__last._M_sbuf) 29724: { 29724: const int_type __ival = traits_type::to_int_type(__val); 29724: streambuf_type* __sb = __first._M_sbuf; 29724: int_type __c = __sb->sgetc(); 29724: while (!traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __ival)) 29724: { 29724: streamsize __n = __sb->egptr() - __sb->gptr(); 29724: if (__n > 1) 29724: { 29724: const _CharT* __p = traits_type::find(__sb->gptr(), 29724: __n, __val); 29724: if (__p) 29724: __n = __p - __sb->gptr(); 29724: __sb->__safe_gbump(__n); 29724: __c = __sb->sgetc(); 29724: } 29724: else 29724: __c = __sb->snextc(); 29724: } 29724: 29724: __first._M_c = __eof; 29724: } 29724: 29724: return __first; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29724: void>::__type 29724: advance(istreambuf_iterator<_CharT>& __i, _Distance __n) 29724: { 29724: if (__n == 0) 29724: return; 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__n > 0)) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: 29724: ; 29724: 29724: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29724: typedef typename __is_iterator_type::traits_type traits_type; 29724: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29724: typedef typename traits_type::int_type int_type; 29724: const int_type __eof = traits_type::eof(); 29724: 29724: streambuf_type* __sb = __i._M_sbuf; 29724: while (__n > 0) 29724: { 29724: streamsize __size = __sb->egptr() - __sb->gptr(); 29724: if (__size > __n) 29724: { 29724: __sb->__safe_gbump(__n); 29724: break; 29724: } 29724: 29724: __sb->__safe_gbump(__size); 29724: __n -= __size; 29724: if (traits_type::eq_int_type(__sb->underflow(), __eof)) 29724: { 29724: 29724: 29724: ; 29724: break; 29724: } 29724: } 29724: 29724: __i._M_c = __eof; 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: # 49 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 74 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: void 29724: __convert_to_v(const char*, _Tp&, ios_base::iostate&, 29724: const __c_locale&) throw(); 29724: 29724: 29724: template<> 29724: void 29724: __convert_to_v(const char*, float&, ios_base::iostate&, 29724: const __c_locale&) throw(); 29724: 29724: template<> 29724: void 29724: __convert_to_v(const char*, double&, ios_base::iostate&, 29724: const __c_locale&) throw(); 29724: 29724: template<> 29724: void 29724: __convert_to_v(const char*, long double&, ios_base::iostate&, 29724: const __c_locale&) throw(); 29724: 29724: 29724: 29724: template 29724: struct __pad 29724: { 29724: static void 29724: _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, 29724: const _CharT* __olds, streamsize __newlen, streamsize __oldlen); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: _CharT* 29724: __add_grouping(_CharT* __s, _CharT __sep, 29724: const char* __gbeg, size_t __gsize, 29724: const _CharT* __first, const _CharT* __last); 29724: 29724: 29724: 29724: 29724: template 29724: inline 29724: ostreambuf_iterator<_CharT> 29724: __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) 29724: { 29724: __s._M_put(__ws, __len); 29724: return __s; 29724: } 29724: 29724: 29724: template 29724: inline 29724: _OutIter 29724: __write(_OutIter __s, const _CharT* __ws, int __len) 29724: { 29724: for (int __j = 0; __j < __len; __j++, ++__s) 29724: *__s = __ws[__j]; 29724: return __s; 29724: } 29724: # 152 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: class __ctype_abstract_base : public locale::facet, public ctype_base 29724: { 29724: public: 29724: 29724: 29724: typedef _CharT char_type; 29724: # 171 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: bool 29724: is(mask __m, char_type __c) const 29724: { return this->do_is(__m, __c); } 29724: # 188 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: is(const char_type *__lo, const char_type *__hi, mask *__vec) const 29724: { return this->do_is(__lo, __hi, __vec); } 29724: # 204 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: scan_is(mask __m, const char_type* __lo, const char_type* __hi) const 29724: { return this->do_scan_is(__m, __lo, __hi); } 29724: # 220 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: scan_not(mask __m, const char_type* __lo, const char_type* __hi) const 29724: { return this->do_scan_not(__m, __lo, __hi); } 29724: # 234 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: toupper(char_type __c) const 29724: { return this->do_toupper(__c); } 29724: # 249 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: toupper(char_type *__lo, const char_type* __hi) const 29724: { return this->do_toupper(__lo, __hi); } 29724: # 263 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: tolower(char_type __c) const 29724: { return this->do_tolower(__c); } 29724: # 278 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: tolower(char_type* __lo, const char_type* __hi) const 29724: { return this->do_tolower(__lo, __hi); } 29724: # 295 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: widen(char __c) const 29724: { return this->do_widen(__c); } 29724: # 314 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char* 29724: widen(const char* __lo, const char* __hi, char_type* __to) const 29724: { return this->do_widen(__lo, __hi, __to); } 29724: # 333 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char 29724: narrow(char_type __c, char __dfault) const 29724: { return this->do_narrow(__c, __dfault); } 29724: # 355 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault, char* __to) const 29724: { return this->do_narrow(__lo, __hi, __dfault, __to); } 29724: 29724: protected: 29724: explicit 29724: __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } 29724: 29724: virtual 29724: ~__ctype_abstract_base() { } 29724: # 380 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual bool 29724: do_is(mask __m, char_type __c) const = 0; 29724: # 399 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_is(const char_type* __lo, const char_type* __hi, 29724: mask* __vec) const = 0; 29724: # 418 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_scan_is(mask __m, const char_type* __lo, 29724: const char_type* __hi) const = 0; 29724: # 437 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_scan_not(mask __m, const char_type* __lo, 29724: const char_type* __hi) const = 0; 29724: # 455 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_toupper(char_type __c) const = 0; 29724: # 472 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_toupper(char_type* __lo, const char_type* __hi) const = 0; 29724: # 488 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_tolower(char_type __c) const = 0; 29724: # 505 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_tolower(char_type* __lo, const char_type* __hi) const = 0; 29724: # 524 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_widen(char __c) const = 0; 29724: # 545 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char* 29724: do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; 29724: # 566 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char 29724: do_narrow(char_type __c, char __dfault) const = 0; 29724: # 591 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault, char* __to) const = 0; 29724: }; 29724: # 614 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: class ctype : public __ctype_abstract_base<_CharT> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef typename __ctype_abstract_base<_CharT>::mask mask; 29724: 29724: 29724: static locale::id id; 29724: 29724: explicit 29724: ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } 29724: 29724: protected: 29724: virtual 29724: ~ctype(); 29724: 29724: virtual bool 29724: do_is(mask __m, char_type __c) const; 29724: 29724: virtual const char_type* 29724: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 29724: 29724: virtual const char_type* 29724: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 29724: 29724: virtual const char_type* 29724: do_scan_not(mask __m, const char_type* __lo, 29724: const char_type* __hi) const; 29724: 29724: virtual char_type 29724: do_toupper(char_type __c) const; 29724: 29724: virtual const char_type* 29724: do_toupper(char_type* __lo, const char_type* __hi) const; 29724: 29724: virtual char_type 29724: do_tolower(char_type __c) const; 29724: 29724: virtual const char_type* 29724: do_tolower(char_type* __lo, const char_type* __hi) const; 29724: 29724: virtual char_type 29724: do_widen(char __c) const; 29724: 29724: virtual const char* 29724: do_widen(const char* __lo, const char* __hi, char_type* __dest) const; 29724: 29724: virtual char 29724: do_narrow(char_type, char __dfault) const; 29724: 29724: virtual const char_type* 29724: do_narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault, char* __to) const; 29724: }; 29724: 29724: template 29724: locale::id ctype<_CharT>::id; 29724: 29724: 29724: 29724: template 29724: class ctype >; 29724: # 688 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template<> 29724: class ctype : public locale::facet, public ctype_base 29724: { 29724: public: 29724: 29724: 29724: typedef char char_type; 29724: 29724: protected: 29724: 29724: __c_locale _M_c_locale_ctype; 29724: bool _M_del; 29724: __to_type _M_toupper; 29724: __to_type _M_tolower; 29724: const mask* _M_table; 29724: mutable char _M_widen_ok; 29724: mutable char _M_widen[1 + static_cast(-1)]; 29724: mutable char _M_narrow[1 + static_cast(-1)]; 29724: mutable char _M_narrow_ok; 29724: 29724: 29724: public: 29724: 29724: static locale::id id; 29724: 29724: static const size_t table_size = 1 + static_cast(-1); 29724: # 725 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); 29724: # 738 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, 29724: size_t __refs = 0); 29724: # 751 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: inline bool 29724: is(mask __m, char __c) const; 29724: # 766 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: inline const char* 29724: is(const char* __lo, const char* __hi, mask* __vec) const; 29724: # 780 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: inline const char* 29724: scan_is(mask __m, const char* __lo, const char* __hi) const; 29724: # 794 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: inline const char* 29724: scan_not(mask __m, const char* __lo, const char* __hi) const; 29724: # 809 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: toupper(char_type __c) const 29724: { return this->do_toupper(__c); } 29724: # 826 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: toupper(char_type *__lo, const char_type* __hi) const 29724: { return this->do_toupper(__lo, __hi); } 29724: # 842 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: tolower(char_type __c) const 29724: { return this->do_tolower(__c); } 29724: # 859 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: tolower(char_type* __lo, const char_type* __hi) const 29724: { return this->do_tolower(__lo, __hi); } 29724: # 879 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: widen(char __c) const 29724: { 29724: if (_M_widen_ok) 29724: return _M_widen[static_cast(__c)]; 29724: this->_M_widen_init(); 29724: return this->do_widen(__c); 29724: } 29724: # 906 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char* 29724: widen(const char* __lo, const char* __hi, char_type* __to) const 29724: { 29724: if (_M_widen_ok == 1) 29724: { 29724: if (__builtin_expect(__hi != __lo, true)) 29724: __builtin_memcpy(__to, __lo, __hi - __lo); 29724: return __hi; 29724: } 29724: if (!_M_widen_ok) 29724: _M_widen_init(); 29724: return this->do_widen(__lo, __hi, __to); 29724: } 29724: # 938 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char 29724: narrow(char_type __c, char __dfault) const 29724: { 29724: if (_M_narrow[static_cast(__c)]) 29724: return _M_narrow[static_cast(__c)]; 29724: const char __t = do_narrow(__c, __dfault); 29724: if (__t != __dfault) 29724: _M_narrow[static_cast(__c)] = __t; 29724: return __t; 29724: } 29724: # 971 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: const char_type* 29724: narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault, char* __to) const 29724: { 29724: if (__builtin_expect(_M_narrow_ok == 1, true)) 29724: { 29724: if (__builtin_expect(__hi != __lo, true)) 29724: __builtin_memcpy(__to, __lo, __hi - __lo); 29724: return __hi; 29724: } 29724: if (!_M_narrow_ok) 29724: _M_narrow_init(); 29724: return this->do_narrow(__lo, __hi, __dfault, __to); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: const mask* 29724: table() const throw() 29724: { return _M_table; } 29724: 29724: 29724: static const mask* 29724: classic_table() throw(); 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual 29724: ~ctype(); 29724: # 1021 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_toupper(char_type __c) const; 29724: # 1038 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_toupper(char_type* __lo, const char_type* __hi) const; 29724: # 1054 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_tolower(char_type __c) const; 29724: # 1071 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_tolower(char_type* __lo, const char_type* __hi) const; 29724: # 1091 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_widen(char __c) const 29724: { return __c; } 29724: # 1114 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char* 29724: do_widen(const char* __lo, const char* __hi, char_type* __to) const 29724: { 29724: if (__builtin_expect(__hi != __lo, true)) 29724: __builtin_memcpy(__to, __lo, __hi - __lo); 29724: return __hi; 29724: } 29724: # 1141 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char 29724: do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const 29724: { return __c; } 29724: # 1167 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault __attribute__((__unused__)), char* __to) const 29724: { 29724: if (__builtin_expect(__hi != __lo, true)) 29724: __builtin_memcpy(__to, __lo, __hi - __lo); 29724: return __hi; 29724: } 29724: 29724: private: 29724: void _M_narrow_init() const; 29724: void _M_widen_init() const; 29724: }; 29724: # 1193 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template<> 29724: class ctype : public __ctype_abstract_base 29724: { 29724: public: 29724: 29724: 29724: typedef wchar_t char_type; 29724: typedef wctype_t __wmask_type; 29724: 29724: protected: 29724: __c_locale _M_c_locale_ctype; 29724: 29724: 29724: bool _M_narrow_ok; 29724: char _M_narrow[128]; 29724: wint_t _M_widen[1 + static_cast(-1)]; 29724: 29724: 29724: mask _M_bit[16]; 29724: __wmask_type _M_wmask[16]; 29724: 29724: public: 29724: 29724: 29724: static locale::id id; 29724: # 1226 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: ctype(size_t __refs = 0); 29724: # 1237 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: ctype(__c_locale __cloc, size_t __refs = 0); 29724: 29724: protected: 29724: __wmask_type 29724: _M_convert_to_wmask(const mask __m) const throw(); 29724: 29724: 29724: virtual 29724: ~ctype(); 29724: # 1261 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual bool 29724: do_is(mask __m, char_type __c) const; 29724: # 1280 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 29724: # 1298 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 29724: # 1316 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_scan_not(mask __m, const char_type* __lo, 29724: const char_type* __hi) const; 29724: # 1333 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_toupper(char_type __c) const; 29724: # 1350 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_toupper(char_type* __lo, const char_type* __hi) const; 29724: # 1366 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_tolower(char_type __c) const; 29724: # 1383 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_tolower(char_type* __lo, const char_type* __hi) const; 29724: # 1403 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_widen(char __c) const; 29724: # 1425 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char* 29724: do_widen(const char* __lo, const char* __hi, char_type* __to) const; 29724: # 1448 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char 29724: do_narrow(char_type __c, char __dfault) const; 29724: # 1474 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual const char_type* 29724: do_narrow(const char_type* __lo, const char_type* __hi, 29724: char __dfault, char* __to) const; 29724: 29724: 29724: void 29724: _M_initialize_ctype() throw(); 29724: }; 29724: 29724: 29724: 29724: template 29724: class ctype_byname : public ctype<_CharT> 29724: { 29724: public: 29724: typedef typename ctype<_CharT>::mask mask; 29724: 29724: explicit 29724: ctype_byname(const char* __s, size_t __refs = 0); 29724: 29724: 29724: explicit 29724: ctype_byname(const string& __s, size_t __refs = 0) 29724: : ctype_byname(__s.c_str(), __refs) { } 29724: 29724: 29724: protected: 29724: virtual 29724: ~ctype_byname() { } 29724: }; 29724: 29724: 29724: template<> 29724: class ctype_byname : public ctype 29724: { 29724: public: 29724: explicit 29724: ctype_byname(const char* __s, size_t __refs = 0); 29724: 29724: 29724: explicit 29724: ctype_byname(const string& __s, size_t __refs = 0); 29724: 29724: 29724: protected: 29724: virtual 29724: ~ctype_byname(); 29724: }; 29724: 29724: 29724: template<> 29724: class ctype_byname : public ctype 29724: { 29724: public: 29724: explicit 29724: ctype_byname(const char* __s, size_t __refs = 0); 29724: 29724: 29724: explicit 29724: ctype_byname(const string& __s, size_t __refs = 0); 29724: 29724: 29724: protected: 29724: virtual 29724: ~ctype_byname(); 29724: }; 29724: 29724: 29724: 29724: } 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 1 3 29724: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: bool 29724: ctype:: 29724: is(mask __m, char __c) const 29724: { return _M_table[static_cast(__c)] & __m; } 29724: 29724: const char* 29724: ctype:: 29724: is(const char* __low, const char* __high, mask* __vec) const 29724: { 29724: while (__low < __high) 29724: *__vec++ = _M_table[static_cast(*__low++)]; 29724: return __high; 29724: } 29724: 29724: const char* 29724: ctype:: 29724: scan_is(mask __m, const char* __low, const char* __high) const 29724: { 29724: while (__low < __high 29724: && !(_M_table[static_cast(*__low)] & __m)) 29724: ++__low; 29724: return __low; 29724: } 29724: 29724: const char* 29724: ctype:: 29724: scan_not(mask __m, const char* __low, const char* __high) const 29724: { 29724: while (__low < __high 29724: && (_M_table[static_cast(*__low)] & __m) != 0) 29724: ++__low; 29724: return __low; 29724: } 29724: 29724: 29724: } 29724: # 1547 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: class __num_base 29724: { 29724: public: 29724: 29724: 29724: enum 29724: { 29724: _S_ominus, 29724: _S_oplus, 29724: _S_ox, 29724: _S_oX, 29724: _S_odigits, 29724: _S_odigits_end = _S_odigits + 16, 29724: _S_oudigits = _S_odigits_end, 29724: _S_oudigits_end = _S_oudigits + 16, 29724: _S_oe = _S_odigits + 14, 29724: _S_oE = _S_oudigits + 14, 29724: _S_oend = _S_oudigits_end 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static const char* _S_atoms_out; 29724: 29724: 29724: 29724: static const char* _S_atoms_in; 29724: 29724: enum 29724: { 29724: _S_iminus, 29724: _S_iplus, 29724: _S_ix, 29724: _S_iX, 29724: _S_izero, 29724: _S_ie = _S_izero + 14, 29724: _S_iE = _S_izero + 20, 29724: _S_iend = 26 29724: }; 29724: 29724: 29724: 29724: static void 29724: _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); 29724: }; 29724: 29724: template 29724: struct __numpunct_cache : public locale::facet 29724: { 29724: const char* _M_grouping; 29724: size_t _M_grouping_size; 29724: bool _M_use_grouping; 29724: const _CharT* _M_truename; 29724: size_t _M_truename_size; 29724: const _CharT* _M_falsename; 29724: size_t _M_falsename_size; 29724: _CharT _M_decimal_point; 29724: _CharT _M_thousands_sep; 29724: 29724: 29724: 29724: 29724: 29724: _CharT _M_atoms_out[__num_base::_S_oend]; 29724: 29724: 29724: 29724: 29724: 29724: _CharT _M_atoms_in[__num_base::_S_iend]; 29724: 29724: bool _M_allocated; 29724: 29724: __numpunct_cache(size_t __refs = 0) 29724: : facet(__refs), _M_grouping(0), _M_grouping_size(0), 29724: _M_use_grouping(false), 29724: _M_truename(0), _M_truename_size(0), _M_falsename(0), 29724: _M_falsename_size(0), _M_decimal_point(_CharT()), 29724: _M_thousands_sep(_CharT()), _M_allocated(false) 29724: { } 29724: 29724: ~__numpunct_cache(); 29724: 29724: void 29724: _M_cache(const locale& __loc); 29724: 29724: private: 29724: __numpunct_cache& 29724: operator=(const __numpunct_cache&); 29724: 29724: explicit 29724: __numpunct_cache(const __numpunct_cache&); 29724: }; 29724: 29724: template 29724: __numpunct_cache<_CharT>::~__numpunct_cache() 29724: { 29724: if (_M_allocated) 29724: { 29724: delete [] _M_grouping; 29724: delete [] _M_truename; 29724: delete [] _M_falsename; 29724: } 29724: } 29724: 29724: namespace __cxx11 { 29724: # 1677 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: class numpunct : public locale::facet 29724: { 29724: public: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef basic_string<_CharT> string_type; 29724: 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: 29724: protected: 29724: __cache_type* _M_data; 29724: 29724: public: 29724: 29724: static locale::id id; 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: numpunct(size_t __refs = 0) 29724: : facet(__refs), _M_data(0) 29724: { _M_initialize_numpunct(); } 29724: # 1715 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: numpunct(__cache_type* __cache, size_t __refs = 0) 29724: : facet(__refs), _M_data(__cache) 29724: { _M_initialize_numpunct(); } 29724: # 1729 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: numpunct(__c_locale __cloc, size_t __refs = 0) 29724: : facet(__refs), _M_data(0) 29724: { _M_initialize_numpunct(__cloc); } 29724: # 1743 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: decimal_point() const 29724: { return this->do_decimal_point(); } 29724: # 1756 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: char_type 29724: thousands_sep() const 29724: { return this->do_thousands_sep(); } 29724: # 1787 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: string 29724: grouping() const 29724: { return this->do_grouping(); } 29724: # 1800 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: string_type 29724: truename() const 29724: { return this->do_truename(); } 29724: # 1813 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: string_type 29724: falsename() const 29724: { return this->do_falsename(); } 29724: 29724: protected: 29724: 29724: virtual 29724: ~numpunct(); 29724: # 1830 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_decimal_point() const 29724: { return _M_data->_M_decimal_point; } 29724: # 1842 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual char_type 29724: do_thousands_sep() const 29724: { return _M_data->_M_thousands_sep; } 29724: # 1855 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual string 29724: do_grouping() const 29724: { return _M_data->_M_grouping; } 29724: # 1868 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual string_type 29724: do_truename() const 29724: { return _M_data->_M_truename; } 29724: # 1881 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual string_type 29724: do_falsename() const 29724: { return _M_data->_M_falsename; } 29724: 29724: 29724: void 29724: _M_initialize_numpunct(__c_locale __cloc = 0); 29724: }; 29724: 29724: template 29724: locale::id numpunct<_CharT>::id; 29724: 29724: template<> 29724: numpunct::~numpunct(); 29724: 29724: template<> 29724: void 29724: numpunct::_M_initialize_numpunct(__c_locale __cloc); 29724: 29724: 29724: template<> 29724: numpunct::~numpunct(); 29724: 29724: template<> 29724: void 29724: numpunct::_M_initialize_numpunct(__c_locale __cloc); 29724: 29724: 29724: 29724: template 29724: class numpunct_byname : public numpunct<_CharT> 29724: { 29724: public: 29724: typedef _CharT char_type; 29724: typedef basic_string<_CharT> string_type; 29724: 29724: explicit 29724: numpunct_byname(const char* __s, size_t __refs = 0) 29724: : numpunct<_CharT>(__refs) 29724: { 29724: if (__builtin_strcmp(__s, "C") != 0 29724: && __builtin_strcmp(__s, "POSIX") != 0) 29724: { 29724: __c_locale __tmp; 29724: this->_S_create_c_locale(__tmp, __s); 29724: this->_M_initialize_numpunct(__tmp); 29724: this->_S_destroy_c_locale(__tmp); 29724: } 29724: } 29724: 29724: 29724: explicit 29724: numpunct_byname(const string& __s, size_t __refs = 0) 29724: : numpunct_byname(__s.c_str(), __refs) { } 29724: 29724: 29724: protected: 29724: virtual 29724: ~numpunct_byname() { } 29724: }; 29724: 29724: } 29724: 29724: 29724: # 1959 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: class num_get : public locale::facet 29724: { 29724: public: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef _InIter iter_type; 29724: 29724: 29724: 29724: static locale::id id; 29724: # 1980 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: num_get(size_t __refs = 0) : facet(__refs) { } 29724: # 2006 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, bool& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: # 2043 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned short& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned int& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned long& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long long& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned long long& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: #pragma GCC diagnostic pop 29724: # 2106 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, float& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, double& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long double& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: # 2149 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: get(iter_type __in, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, void*& __v) const 29724: { return this->do_get(__in, __end, __io, __err, __v); } 29724: 29724: protected: 29724: 29724: virtual ~num_get() { } 29724: 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iter_type 29724: _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, 29724: string&) const; 29724: 29724: template 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iter_type 29724: _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, 29724: _ValueT&) const; 29724: 29724: template 29724: typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type 29724: _M_find(const _CharT2*, size_t __len, _CharT2 __c) const 29724: { 29724: int __ret = -1; 29724: if (__len <= 10) 29724: { 29724: if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) 29724: __ret = __c - _CharT2('0'); 29724: } 29724: else 29724: { 29724: if (__c >= _CharT2('0') && __c <= _CharT2('9')) 29724: __ret = __c - _CharT2('0'); 29724: else if (__c >= _CharT2('a') && __c <= _CharT2('f')) 29724: __ret = 10 + (__c - _CharT2('a')); 29724: else if (__c >= _CharT2('A') && __c <= _CharT2('F')) 29724: __ret = 10 + (__c - _CharT2('A')); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename __gnu_cxx::__enable_if::__value, 29724: int>::__type 29724: _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const 29724: { 29724: int __ret = -1; 29724: const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); 29724: if (__q) 29724: { 29724: __ret = __q - __zero; 29724: if (__ret > 15) 29724: __ret -= 6; 29724: } 29724: return __ret; 29724: } 29724: # 2222 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual iter_type 29724: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; 29724: 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned short& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned int& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned long& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long long& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: 29724: virtual iter_type 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, unsigned long long& __v) const 29724: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: virtual iter_type 29724: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; 29724: 29724: virtual iter_type 29724: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 29724: double&) const; 29724: # 2277 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual iter_type 29724: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 29724: long double&) const; 29724: 29724: 29724: virtual iter_type 29724: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; 29724: # 2305 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: }; 29724: 29724: template 29724: locale::id num_get<_CharT, _InIter>::id; 29724: # 2323 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: template 29724: class num_put : public locale::facet 29724: { 29724: public: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef _OutIter iter_type; 29724: 29724: 29724: 29724: static locale::id id; 29724: # 2344 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: explicit 29724: num_put(size_t __refs = 0) : facet(__refs) { } 29724: # 2362 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: # 2404 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, 29724: unsigned long __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, 29724: unsigned long long __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: #pragma GCC diagnostic pop 29724: # 2470 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, 29724: long double __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: # 2495 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: iter_type 29724: put(iter_type __s, ios_base& __io, char_type __fill, 29724: const void* __v) const 29724: { return this->do_put(__s, __io, __fill, __v); } 29724: 29724: protected: 29724: template 29724: iter_type 29724: _M_insert_float(iter_type, ios_base& __io, char_type __fill, 29724: char __mod, _ValueT __v) const; 29724: 29724: void 29724: _M_group_float(const char* __grouping, size_t __grouping_size, 29724: char_type __sep, const char_type* __p, char_type* __new, 29724: char_type* __cs, int& __len) const; 29724: 29724: template 29724: iter_type 29724: _M_insert_int(iter_type, ios_base& __io, char_type __fill, 29724: _ValueT __v) const; 29724: 29724: void 29724: _M_group_int(const char* __grouping, size_t __grouping_size, 29724: char_type __sep, ios_base& __io, char_type* __new, 29724: char_type* __cs, int& __len) const; 29724: 29724: void 29724: _M_pad(char_type __fill, streamsize __w, ios_base& __io, 29724: char_type* __new, const char_type* __cs, int& __len) const; 29724: 29724: 29724: virtual 29724: ~num_put() { } 29724: # 2543 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: virtual iter_type 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; 29724: 29724: virtual iter_type 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 29724: { return _M_insert_int(__s, __io, __fill, __v); } 29724: 29724: virtual iter_type 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, 29724: unsigned long __v) const 29724: { return _M_insert_int(__s, __io, __fill, __v); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: virtual iter_type 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, 29724: long long __v) const 29724: { return _M_insert_int(__s, __io, __fill, __v); } 29724: 29724: virtual iter_type 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, 29724: unsigned long long __v) const 29724: { return _M_insert_int(__s, __io, __fill, __v); } 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: virtual iter_type 29724: do_put(iter_type, ios_base&, char_type, double) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual iter_type 29724: do_put(iter_type, ios_base&, char_type, long double) const; 29724: 29724: 29724: virtual iter_type 29724: do_put(iter_type, ios_base&, char_type, const void*) const; 29724: # 2598 "/usr/include/c++/14/bits/locale_facets.h" 3 29724: }; 29724: 29724: template 29724: locale::id num_put<_CharT, _OutIter>::id; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline bool 29724: isspace(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::space, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isprint(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::print, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: iscntrl(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::cntrl, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isupper(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::upper, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: islower(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::lower, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isalpha(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::alpha, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isdigit(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::digit, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: ispunct(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::punct, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isxdigit(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::xdigit, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isalnum(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::alnum, __c); } 29724: 29724: 29724: template 29724: inline bool 29724: isgraph(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::graph, __c); } 29724: 29724: 29724: 29724: template 29724: inline bool 29724: isblank(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).is(ctype_base::blank, __c); } 29724: 29724: 29724: 29724: template 29724: inline _CharT 29724: toupper(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).toupper(__c); } 29724: 29724: 29724: template 29724: inline _CharT 29724: tolower(_CharT __c, const locale& __loc) 29724: { return use_facet >(__loc).tolower(__c); } 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/locale_facets.tcc" 1 3 29724: # 33 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template 29724: struct __use_cache 29724: { 29724: const _Facet* 29724: operator() (const locale& __loc) const; 29724: }; 29724: 29724: 29724: template 29724: struct __use_cache<__numpunct_cache<_CharT> > 29724: { 29724: const __numpunct_cache<_CharT>* 29724: operator() (const locale& __loc) const 29724: { 29724: const size_t __i = numpunct<_CharT>::id._M_id(); 29724: const locale::facet** __caches = __loc._M_impl->_M_caches; 29724: if (!__caches[__i]) 29724: { 29724: __numpunct_cache<_CharT>* __tmp = 0; 29724: try 29724: { 29724: __tmp = new __numpunct_cache<_CharT>; 29724: __tmp->_M_cache(__loc); 29724: } 29724: catch(...) 29724: { 29724: delete __tmp; 29724: throw; 29724: } 29724: __loc._M_impl->_M_install_cache(__tmp, __i); 29724: } 29724: return static_cast*>(__caches[__i]); 29724: } 29724: }; 29724: 29724: template 29724: void 29724: __numpunct_cache<_CharT>::_M_cache(const locale& __loc) 29724: { 29724: const numpunct<_CharT>& __np = use_facet >(__loc); 29724: 29724: char* __grouping = 0; 29724: _CharT* __truename = 0; 29724: _CharT* __falsename = 0; 29724: try 29724: { 29724: const string& __g = __np.grouping(); 29724: _M_grouping_size = __g.size(); 29724: __grouping = new char[_M_grouping_size]; 29724: __g.copy(__grouping, _M_grouping_size); 29724: _M_use_grouping = (_M_grouping_size 29724: && static_cast(__grouping[0]) > 0 29724: && (__grouping[0] 29724: != __gnu_cxx::__numeric_traits::__max)); 29724: 29724: const basic_string<_CharT>& __tn = __np.truename(); 29724: _M_truename_size = __tn.size(); 29724: __truename = new _CharT[_M_truename_size]; 29724: __tn.copy(__truename, _M_truename_size); 29724: 29724: const basic_string<_CharT>& __fn = __np.falsename(); 29724: _M_falsename_size = __fn.size(); 29724: __falsename = new _CharT[_M_falsename_size]; 29724: __fn.copy(__falsename, _M_falsename_size); 29724: 29724: _M_decimal_point = __np.decimal_point(); 29724: _M_thousands_sep = __np.thousands_sep(); 29724: 29724: const ctype<_CharT>& __ct = use_facet >(__loc); 29724: __ct.widen(__num_base::_S_atoms_out, 29724: __num_base::_S_atoms_out 29724: + __num_base::_S_oend, _M_atoms_out); 29724: __ct.widen(__num_base::_S_atoms_in, 29724: __num_base::_S_atoms_in 29724: + __num_base::_S_iend, _M_atoms_in); 29724: 29724: _M_grouping = __grouping; 29724: _M_truename = __truename; 29724: _M_falsename = __falsename; 29724: _M_allocated = true; 29724: } 29724: catch(...) 29724: { 29724: delete [] __grouping; 29724: delete [] __truename; 29724: delete [] __falsename; 29724: throw; 29724: } 29724: } 29724: # 139 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: __attribute__ ((__pure__)) bool 29724: __verify_grouping(const char* __grouping, size_t __grouping_size, 29724: const string& __grouping_tmp) throw (); 29724: 29724: 29724: 29724: template 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, 29724: ios_base::iostate& __err, string& __xtrc) const 29724: { 29724: typedef char_traits<_CharT> __traits_type; 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: const _CharT* __lit = __lc->_M_atoms_in; 29724: char_type __c = char_type(); 29724: 29724: 29724: bool __testeof = __beg == __end; 29724: 29724: 29724: if (!__testeof) 29724: { 29724: __c = *__beg; 29724: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29724: if ((__plus || __c == __lit[__num_base::_S_iminus]) 29724: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: && !(__c == __lc->_M_decimal_point)) 29724: { 29724: __xtrc += __plus ? '+' : '-'; 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: } 29724: 29724: 29724: bool __found_mantissa = false; 29724: int __sep_pos = 0; 29724: while (!__testeof) 29724: { 29724: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: || __c == __lc->_M_decimal_point) 29724: break; 29724: else if (__c == __lit[__num_base::_S_izero]) 29724: { 29724: if (!__found_mantissa) 29724: { 29724: __xtrc += '0'; 29724: __found_mantissa = true; 29724: } 29724: ++__sep_pos; 29724: 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: else 29724: break; 29724: } 29724: 29724: 29724: bool __found_dec = false; 29724: bool __found_sci = false; 29724: string __found_grouping; 29724: if (__lc->_M_use_grouping) 29724: __found_grouping.reserve(32); 29724: const char_type* __lit_zero = __lit + __num_base::_S_izero; 29724: 29724: if (!__lc->_M_allocated) 29724: 29724: while (!__testeof) 29724: { 29724: const int __digit = _M_find(__lit_zero, 10, __c); 29724: if (__digit != -1) 29724: { 29724: __xtrc += '0' + __digit; 29724: __found_mantissa = true; 29724: } 29724: else if (__c == __lc->_M_decimal_point 29724: && !__found_dec && !__found_sci) 29724: { 29724: __xtrc += '.'; 29724: __found_dec = true; 29724: } 29724: else if ((__c == __lit[__num_base::_S_ie] 29724: || __c == __lit[__num_base::_S_iE]) 29724: && !__found_sci && __found_mantissa) 29724: { 29724: 29724: __xtrc += 'e'; 29724: __found_sci = true; 29724: 29724: 29724: if (++__beg != __end) 29724: { 29724: __c = *__beg; 29724: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29724: if (__plus || __c == __lit[__num_base::_S_iminus]) 29724: __xtrc += __plus ? '+' : '-'; 29724: else 29724: continue; 29724: } 29724: else 29724: { 29724: __testeof = true; 29724: break; 29724: } 29724: } 29724: else 29724: break; 29724: 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: else 29724: while (!__testeof) 29724: { 29724: 29724: 29724: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: { 29724: if (!__found_dec && !__found_sci) 29724: { 29724: 29724: 29724: if (__sep_pos) 29724: { 29724: __found_grouping += static_cast(__sep_pos); 29724: __sep_pos = 0; 29724: } 29724: else 29724: { 29724: 29724: 29724: __xtrc.clear(); 29724: break; 29724: } 29724: } 29724: else 29724: break; 29724: } 29724: else if (__c == __lc->_M_decimal_point) 29724: { 29724: if (!__found_dec && !__found_sci) 29724: { 29724: 29724: 29724: 29724: if (__found_grouping.size()) 29724: __found_grouping += static_cast(__sep_pos); 29724: __xtrc += '.'; 29724: __found_dec = true; 29724: } 29724: else 29724: break; 29724: } 29724: else 29724: { 29724: const char_type* __q = 29724: __traits_type::find(__lit_zero, 10, __c); 29724: if (__q) 29724: { 29724: __xtrc += '0' + (__q - __lit_zero); 29724: __found_mantissa = true; 29724: ++__sep_pos; 29724: } 29724: else if ((__c == __lit[__num_base::_S_ie] 29724: || __c == __lit[__num_base::_S_iE]) 29724: && !__found_sci && __found_mantissa) 29724: { 29724: 29724: if (__found_grouping.size() && !__found_dec) 29724: __found_grouping += static_cast(__sep_pos); 29724: __xtrc += 'e'; 29724: __found_sci = true; 29724: 29724: 29724: if (++__beg != __end) 29724: { 29724: __c = *__beg; 29724: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29724: if ((__plus || __c == __lit[__num_base::_S_iminus]) 29724: && !(__lc->_M_use_grouping 29724: && __c == __lc->_M_thousands_sep) 29724: && !(__c == __lc->_M_decimal_point)) 29724: __xtrc += __plus ? '+' : '-'; 29724: else 29724: continue; 29724: } 29724: else 29724: { 29724: __testeof = true; 29724: break; 29724: } 29724: } 29724: else 29724: break; 29724: } 29724: 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: 29724: 29724: 29724: if (__found_grouping.size()) 29724: { 29724: 29724: if (!__found_dec && !__found_sci) 29724: __found_grouping += static_cast(__sep_pos); 29724: 29724: if (!std::__verify_grouping(__lc->_M_grouping, 29724: __lc->_M_grouping_size, 29724: __found_grouping)) 29724: __err = ios_base::failbit; 29724: } 29724: 29724: return __beg; 29724: } 29724: 29724: template 29724: template 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, 29724: ios_base::iostate& __err, _ValueT& __v) const 29724: { 29724: typedef char_traits<_CharT> __traits_type; 29724: using __gnu_cxx::__add_unsigned; 29724: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: const _CharT* __lit = __lc->_M_atoms_in; 29724: char_type __c = char_type(); 29724: 29724: 29724: const ios_base::fmtflags __basefield = __io.flags() 29724: & ios_base::basefield; 29724: const bool __oct = __basefield == ios_base::oct; 29724: int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); 29724: 29724: 29724: bool __testeof = __beg == __end; 29724: 29724: 29724: bool __negative = false; 29724: if (!__testeof) 29724: { 29724: __c = *__beg; 29724: __negative = __c == __lit[__num_base::_S_iminus]; 29724: if ((__negative || __c == __lit[__num_base::_S_iplus]) 29724: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: && !(__c == __lc->_M_decimal_point)) 29724: { 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: } 29724: 29724: 29724: 29724: bool __found_zero = false; 29724: int __sep_pos = 0; 29724: while (!__testeof) 29724: { 29724: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: || __c == __lc->_M_decimal_point) 29724: break; 29724: else if (__c == __lit[__num_base::_S_izero] 29724: && (!__found_zero || __base == 10)) 29724: { 29724: __found_zero = true; 29724: ++__sep_pos; 29724: if (__basefield == 0) 29724: __base = 8; 29724: if (__base == 8) 29724: __sep_pos = 0; 29724: } 29724: else if (__found_zero 29724: && (__c == __lit[__num_base::_S_ix] 29724: || __c == __lit[__num_base::_S_iX])) 29724: { 29724: if (__basefield == 0) 29724: __base = 16; 29724: if (__base == 16) 29724: { 29724: __found_zero = false; 29724: __sep_pos = 0; 29724: } 29724: else 29724: break; 29724: } 29724: else 29724: break; 29724: 29724: if (++__beg != __end) 29724: { 29724: __c = *__beg; 29724: if (!__found_zero) 29724: break; 29724: } 29724: else 29724: __testeof = true; 29724: } 29724: 29724: 29724: 29724: const size_t __len = (__base == 16 ? __num_base::_S_iend 29724: - __num_base::_S_izero : __base); 29724: 29724: 29724: typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; 29724: string __found_grouping; 29724: if (__lc->_M_use_grouping) 29724: __found_grouping.reserve(32); 29724: bool __testfail = false; 29724: bool __testoverflow = false; 29724: const __unsigned_type __max = 29724: (__negative && __num_traits::__is_signed) 29724: ? -static_cast<__unsigned_type>(__num_traits::__min) 29724: : __num_traits::__max; 29724: const __unsigned_type __smax = __max / __base; 29724: __unsigned_type __result = 0; 29724: int __digit = 0; 29724: const char_type* __lit_zero = __lit + __num_base::_S_izero; 29724: 29724: if (!__lc->_M_allocated) 29724: 29724: while (!__testeof) 29724: { 29724: __digit = _M_find(__lit_zero, __len, __c); 29724: if (__digit == -1) 29724: break; 29724: 29724: if (__result > __smax) 29724: __testoverflow = true; 29724: else 29724: { 29724: __result *= __base; 29724: __testoverflow |= __result > __max - __digit; 29724: __result += __digit; 29724: ++__sep_pos; 29724: } 29724: 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: else 29724: while (!__testeof) 29724: { 29724: 29724: 29724: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29724: { 29724: 29724: 29724: if (__sep_pos) 29724: { 29724: __found_grouping += static_cast(__sep_pos); 29724: __sep_pos = 0; 29724: } 29724: else 29724: { 29724: __testfail = true; 29724: break; 29724: } 29724: } 29724: else if (__c == __lc->_M_decimal_point) 29724: break; 29724: else 29724: { 29724: const char_type* __q = 29724: __traits_type::find(__lit_zero, __len, __c); 29724: if (!__q) 29724: break; 29724: 29724: __digit = __q - __lit_zero; 29724: if (__digit > 15) 29724: __digit -= 6; 29724: if (__result > __smax) 29724: __testoverflow = true; 29724: else 29724: { 29724: __result *= __base; 29724: __testoverflow |= __result > __max - __digit; 29724: __result += __digit; 29724: ++__sep_pos; 29724: } 29724: } 29724: 29724: if (++__beg != __end) 29724: __c = *__beg; 29724: else 29724: __testeof = true; 29724: } 29724: 29724: 29724: 29724: if (__found_grouping.size()) 29724: { 29724: 29724: __found_grouping += static_cast(__sep_pos); 29724: 29724: if (!std::__verify_grouping(__lc->_M_grouping, 29724: __lc->_M_grouping_size, 29724: __found_grouping)) 29724: __err = ios_base::failbit; 29724: } 29724: 29724: 29724: 29724: if ((!__sep_pos && !__found_zero && !__found_grouping.size()) 29724: || __testfail) 29724: { 29724: __v = 0; 29724: __err = ios_base::failbit; 29724: } 29724: else if (__testoverflow) 29724: { 29724: if (__negative && __num_traits::__is_signed) 29724: __v = __num_traits::__min; 29724: else 29724: __v = __num_traits::__max; 29724: __err = ios_base::failbit; 29724: } 29724: else 29724: __v = __negative ? -__result : __result; 29724: 29724: if (__testeof) 29724: __err |= ios_base::eofbit; 29724: return __beg; 29724: } 29724: 29724: 29724: 29724: template 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, bool& __v) const 29724: { 29724: if (!(__io.flags() & ios_base::boolalpha)) 29724: { 29724: 29724: 29724: 29724: long __l = -1; 29724: __beg = _M_extract_int(__beg, __end, __io, __err, __l); 29724: if (__l == 0 || __l == 1) 29724: __v = bool(__l); 29724: else 29724: { 29724: 29724: 29724: __v = true; 29724: __err = ios_base::failbit; 29724: if (__beg == __end) 29724: __err |= ios_base::eofbit; 29724: } 29724: } 29724: else 29724: { 29724: 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: 29724: bool __testf = true; 29724: bool __testt = true; 29724: bool __donef = __lc->_M_falsename_size == 0; 29724: bool __donet = __lc->_M_truename_size == 0; 29724: bool __testeof = false; 29724: size_t __n = 0; 29724: while (!__donef || !__donet) 29724: { 29724: if (__beg == __end) 29724: { 29724: __testeof = true; 29724: break; 29724: } 29724: 29724: const char_type __c = *__beg; 29724: 29724: if (!__donef) 29724: __testf = __c == __lc->_M_falsename[__n]; 29724: 29724: if (!__testf && __donet) 29724: break; 29724: 29724: if (!__donet) 29724: __testt = __c == __lc->_M_truename[__n]; 29724: 29724: if (!__testt && __donef) 29724: break; 29724: 29724: if (!__testt && !__testf) 29724: break; 29724: 29724: ++__n; 29724: ++__beg; 29724: 29724: __donef = !__testf || __n >= __lc->_M_falsename_size; 29724: __donet = !__testt || __n >= __lc->_M_truename_size; 29724: } 29724: if (__testf && __n == __lc->_M_falsename_size && __n) 29724: { 29724: __v = false; 29724: if (__testt && __n == __lc->_M_truename_size) 29724: __err = ios_base::failbit; 29724: else 29724: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 29724: } 29724: else if (__testt && __n == __lc->_M_truename_size && __n) 29724: { 29724: __v = true; 29724: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 29724: } 29724: else 29724: { 29724: 29724: 29724: __v = false; 29724: __err = ios_base::failbit; 29724: if (__testeof) 29724: __err |= ios_base::eofbit; 29724: } 29724: } 29724: return __beg; 29724: } 29724: 29724: template 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, float& __v) const 29724: { 29724: string __xtrc; 29724: __xtrc.reserve(32); 29724: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29724: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29724: if (__beg == __end) 29724: __err |= ios_base::eofbit; 29724: return __beg; 29724: } 29724: 29724: template 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, double& __v) const 29724: { 29724: string __xtrc; 29724: __xtrc.reserve(32); 29724: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29724: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29724: if (__beg == __end) 29724: __err |= ios_base::eofbit; 29724: return __beg; 29724: } 29724: # 735 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: template 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, long double& __v) const 29724: { 29724: string __xtrc; 29724: __xtrc.reserve(32); 29724: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29724: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29724: if (__beg == __end) 29724: __err |= ios_base::eofbit; 29724: return __beg; 29724: } 29724: 29724: template 29724: _InIter 29724: num_get<_CharT, _InIter>:: 29724: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29724: ios_base::iostate& __err, void*& __v) const 29724: { 29724: 29724: typedef ios_base::fmtflags fmtflags; 29724: const fmtflags __fmt = __io.flags(); 29724: __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: typedef __gnu_cxx::__conditional_type<(sizeof(void*) 29724: <= sizeof(unsigned long)), 29724: unsigned long, unsigned long long>::__type _UIntPtrType; 29724: #pragma GCC diagnostic pop 29724: 29724: _UIntPtrType __ul; 29724: __beg = _M_extract_int(__beg, __end, __io, __err, __ul); 29724: 29724: 29724: __io.flags(__fmt); 29724: 29724: __v = reinterpret_cast(__ul); 29724: return __beg; 29724: } 29724: # 798 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: template 29724: void 29724: num_put<_CharT, _OutIter>:: 29724: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, 29724: _CharT* __new, const _CharT* __cs, int& __len) const 29724: { 29724: 29724: 29724: __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, 29724: __cs, __w, __len); 29724: __len = static_cast(__w); 29724: } 29724: 29724: 29724: 29724: template 29724: int 29724: __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, 29724: ios_base::fmtflags __flags, bool __dec) 29724: { 29724: _CharT* __buf = __bufend; 29724: if (__builtin_expect(__dec, true)) 29724: { 29724: 29724: do 29724: { 29724: *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; 29724: __v /= 10; 29724: } 29724: while (__v != 0); 29724: } 29724: else if ((__flags & ios_base::basefield) == ios_base::oct) 29724: { 29724: 29724: do 29724: { 29724: *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; 29724: __v >>= 3; 29724: } 29724: while (__v != 0); 29724: } 29724: else 29724: { 29724: 29724: const bool __uppercase = __flags & ios_base::uppercase; 29724: const int __case_offset = __uppercase ? __num_base::_S_oudigits 29724: : __num_base::_S_odigits; 29724: do 29724: { 29724: *--__buf = __lit[(__v & 0xf) + __case_offset]; 29724: __v >>= 4; 29724: } 29724: while (__v != 0); 29724: } 29724: return __bufend - __buf; 29724: } 29724: 29724: 29724: 29724: template 29724: void 29724: num_put<_CharT, _OutIter>:: 29724: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, 29724: ios_base&, _CharT* __new, _CharT* __cs, int& __len) const 29724: { 29724: _CharT* __p = std::__add_grouping(__new, __sep, __grouping, 29724: __grouping_size, __cs, __cs + __len); 29724: __len = __p - __new; 29724: } 29724: 29724: template 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, 29724: _ValueT __v) const 29724: { 29724: using __gnu_cxx::__add_unsigned; 29724: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: const _CharT* __lit = __lc->_M_atoms_out; 29724: const ios_base::fmtflags __flags = __io.flags(); 29724: 29724: 29724: const int __ilen = 5 * sizeof(_ValueT); 29724: _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __ilen)); 29724: 29724: 29724: 29724: const ios_base::fmtflags __basefield = __flags & ios_base::basefield; 29724: const bool __dec = (__basefield != ios_base::oct 29724: && __basefield != ios_base::hex); 29724: const __unsigned_type __u = ((__v > 0 || !__dec) 29724: ? __unsigned_type(__v) 29724: : -__unsigned_type(__v)); 29724: int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); 29724: __cs += __ilen - __len; 29724: 29724: 29724: if (__lc->_M_use_grouping) 29724: { 29724: 29724: 29724: _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * (__len + 1) 29724: * 2)); 29724: _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, 29724: __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); 29724: __cs = __cs2 + 2; 29724: } 29724: 29724: 29724: if (__builtin_expect(__dec, true)) 29724: { 29724: 29724: if (__v >= 0) 29724: { 29724: if (bool(__flags & ios_base::showpos) 29724: && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) 29724: *--__cs = __lit[__num_base::_S_oplus], ++__len; 29724: } 29724: else 29724: *--__cs = __lit[__num_base::_S_ominus], ++__len; 29724: } 29724: else if (bool(__flags & ios_base::showbase) && __v) 29724: { 29724: if (__basefield == ios_base::oct) 29724: *--__cs = __lit[__num_base::_S_odigits], ++__len; 29724: else 29724: { 29724: 29724: const bool __uppercase = __flags & ios_base::uppercase; 29724: *--__cs = __lit[__num_base::_S_ox + __uppercase]; 29724: 29724: *--__cs = __lit[__num_base::_S_odigits]; 29724: __len += 2; 29724: } 29724: } 29724: 29724: 29724: const streamsize __w = __io.width(); 29724: if (__w > static_cast(__len)) 29724: { 29724: _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __w)); 29724: _M_pad(__fill, __w, __io, __cs3, __cs, __len); 29724: __cs = __cs3; 29724: } 29724: __io.width(0); 29724: 29724: 29724: 29724: return std::__write(__s, __cs, __len); 29724: } 29724: 29724: template 29724: void 29724: num_put<_CharT, _OutIter>:: 29724: _M_group_float(const char* __grouping, size_t __grouping_size, 29724: _CharT __sep, const _CharT* __p, _CharT* __new, 29724: _CharT* __cs, int& __len) const 29724: { 29724: 29724: 29724: 29724: const int __declen = __p ? __p - __cs : __len; 29724: _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, 29724: __grouping_size, 29724: __cs, __cs + __declen); 29724: 29724: 29724: int __newlen = __p2 - __new; 29724: if (__p) 29724: { 29724: char_traits<_CharT>::copy(__p2, __p, __len - __declen); 29724: __newlen += __len - __declen; 29724: } 29724: __len = __newlen; 29724: } 29724: # 992 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: template 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, 29724: _ValueT __v) const 29724: { 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: 29724: 29724: const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); 29724: 29724: const int __max_digits = 29724: __gnu_cxx::__numeric_traits<_ValueT>::__digits10; 29724: 29724: 29724: int __len; 29724: 29724: char __fbuf[16]; 29724: __num_base::_S_format_float(__io, __fbuf, __mod); 29724: 29724: 29724: 29724: const bool __use_prec = 29724: (__io.flags() & ios_base::floatfield) != ios_base::floatfield; 29724: 29724: 29724: 29724: int __cs_size = __max_digits * 3; 29724: char* __cs = static_cast(__builtin_alloca(__cs_size)); 29724: if (__use_prec) 29724: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29724: __fbuf, __prec, __v); 29724: else 29724: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29724: __fbuf, __v); 29724: 29724: 29724: if (__len >= __cs_size) 29724: { 29724: __cs_size = __len + 1; 29724: __cs = static_cast(__builtin_alloca(__cs_size)); 29724: if (__use_prec) 29724: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29724: __fbuf, __prec, __v); 29724: else 29724: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29724: __fbuf, __v); 29724: } 29724: # 1065 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: const ctype<_CharT>& __ctype = use_facet >(__loc); 29724: 29724: _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __len)); 29724: __ctype.widen(__cs, __cs + __len, __ws); 29724: 29724: 29724: _CharT* __wp = 0; 29724: const char* __p = char_traits::find(__cs, __len, '.'); 29724: if (__p) 29724: { 29724: __wp = __ws + (__p - __cs); 29724: *__wp = __lc->_M_decimal_point; 29724: } 29724: 29724: 29724: 29724: 29724: if (__lc->_M_use_grouping 29724: && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' 29724: && __cs[1] >= '0' && __cs[2] >= '0'))) 29724: { 29724: 29724: 29724: _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __len * 2)); 29724: 29724: streamsize __off = 0; 29724: if (__cs[0] == '-' || __cs[0] == '+') 29724: { 29724: __off = 1; 29724: __ws2[0] = __ws[0]; 29724: __len -= 1; 29724: } 29724: 29724: _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, 29724: __lc->_M_thousands_sep, __wp, __ws2 + __off, 29724: __ws + __off, __len); 29724: __len += __off; 29724: 29724: __ws = __ws2; 29724: } 29724: 29724: 29724: const streamsize __w = __io.width(); 29724: if (__w > static_cast(__len)) 29724: { 29724: _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __w)); 29724: _M_pad(__fill, __w, __io, __ws3, __ws, __len); 29724: __ws = __ws3; 29724: } 29724: __io.width(0); 29724: 29724: 29724: 29724: return std::__write(__s, __ws, __len); 29724: } 29724: 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 29724: { 29724: const ios_base::fmtflags __flags = __io.flags(); 29724: if ((__flags & ios_base::boolalpha) == 0) 29724: { 29724: const long __l = __v; 29724: __s = _M_insert_int(__s, __io, __fill, __l); 29724: } 29724: else 29724: { 29724: typedef __numpunct_cache<_CharT> __cache_type; 29724: __use_cache<__cache_type> __uc; 29724: const locale& __loc = __io._M_getloc(); 29724: const __cache_type* __lc = __uc(__loc); 29724: 29724: const _CharT* __name = __v ? __lc->_M_truename 29724: : __lc->_M_falsename; 29724: int __len = __v ? __lc->_M_truename_size 29724: : __lc->_M_falsename_size; 29724: 29724: const streamsize __w = __io.width(); 29724: if (__w > static_cast(__len)) 29724: { 29724: const streamsize __plen = __w - __len; 29724: _CharT* __ps 29724: = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29724: * __plen)); 29724: 29724: char_traits<_CharT>::assign(__ps, __plen, __fill); 29724: __io.width(0); 29724: 29724: if ((__flags & ios_base::adjustfield) == ios_base::left) 29724: { 29724: __s = std::__write(__s, __name, __len); 29724: __s = std::__write(__s, __ps, __plen); 29724: } 29724: else 29724: { 29724: __s = std::__write(__s, __ps, __plen); 29724: __s = std::__write(__s, __name, __len); 29724: } 29724: return __s; 29724: } 29724: __io.width(0); 29724: __s = std::__write(__s, __name, __len); 29724: } 29724: return __s; 29724: } 29724: 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 29724: { return _M_insert_float(__s, __io, __fill, char(), __v); } 29724: # 1190 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, 29724: long double __v) const 29724: { return _M_insert_float(__s, __io, __fill, 'L', __v); } 29724: 29724: template 29724: _OutIter 29724: num_put<_CharT, _OutIter>:: 29724: do_put(iter_type __s, ios_base& __io, char_type __fill, 29724: const void* __v) const 29724: { 29724: const ios_base::fmtflags __flags = __io.flags(); 29724: const ios_base::fmtflags __fmt = ~(ios_base::basefield 29724: | ios_base::uppercase); 29724: __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: typedef __gnu_cxx::__conditional_type<(sizeof(const void*) 29724: <= sizeof(unsigned long)), 29724: unsigned long, unsigned long long>::__type _UIntPtrType; 29724: #pragma GCC diagnostic pop 29724: 29724: __s = _M_insert_int(__s, __io, __fill, 29724: reinterpret_cast<_UIntPtrType>(__v)); 29724: __io.flags(__flags); 29724: return __s; 29724: } 29724: # 1230 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: 29724: # 1239 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29724: template 29724: void 29724: __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, 29724: _CharT* __news, const _CharT* __olds, 29724: streamsize __newlen, streamsize __oldlen) 29724: { 29724: const size_t __plen = static_cast(__newlen - __oldlen); 29724: const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; 29724: 29724: 29724: if (__adjust == ios_base::left) 29724: { 29724: _Traits::copy(__news, __olds, __oldlen); 29724: _Traits::assign(__news + __oldlen, __plen, __fill); 29724: return; 29724: } 29724: 29724: size_t __mod = 0; 29724: if (__adjust == ios_base::internal) 29724: { 29724: 29724: 29724: 29724: const locale& __loc = __io._M_getloc(); 29724: const ctype<_CharT>& __ctype = use_facet >(__loc); 29724: 29724: if (__ctype.widen('-') == __olds[0] 29724: || __ctype.widen('+') == __olds[0]) 29724: { 29724: __news[0] = __olds[0]; 29724: __mod = 1; 29724: ++__news; 29724: } 29724: else if (__ctype.widen('0') == __olds[0] 29724: && __oldlen > 1 29724: && (__ctype.widen('x') == __olds[1] 29724: || __ctype.widen('X') == __olds[1])) 29724: { 29724: __news[0] = __olds[0]; 29724: __news[1] = __olds[1]; 29724: __mod = 2; 29724: __news += 2; 29724: } 29724: 29724: } 29724: _Traits::assign(__news, __plen, __fill); 29724: _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); 29724: } 29724: 29724: template 29724: _CharT* 29724: __add_grouping(_CharT* __s, _CharT __sep, 29724: const char* __gbeg, size_t __gsize, 29724: const _CharT* __first, const _CharT* __last) 29724: { 29724: size_t __idx = 0; 29724: size_t __ctr = 0; 29724: 29724: while (__last - __first > __gbeg[__idx] 29724: && static_cast(__gbeg[__idx]) > 0 29724: && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) 29724: { 29724: __last -= __gbeg[__idx]; 29724: __idx < __gsize - 1 ? ++__idx : ++__ctr; 29724: } 29724: 29724: while (__first != __last) 29724: *__s++ = *__first++; 29724: 29724: while (__ctr--) 29724: { 29724: *__s++ = __sep; 29724: for (char __i = __gbeg[__idx]; __i > 0; --__i) 29724: *__s++ = *__first++; 29724: } 29724: 29724: while (__idx--) 29724: { 29724: *__s++ = __sep; 29724: for (char __i = __gbeg[__idx]; __i > 0; --__i) 29724: *__s++ = *__first++; 29724: } 29724: 29724: return __s; 29724: } 29724: 29724: 29724: 29724: 29724: extern template class __cxx11:: numpunct; 29724: extern template class __cxx11:: numpunct_byname; 29724: extern template class num_get; 29724: extern template class num_put; 29724: extern template class ctype_byname; 29724: 29724: extern template 29724: const ctype* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const numpunct* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const num_put* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const num_get* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const ctype& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const numpunct& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const num_put& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const num_get& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: extern template class __cxx11:: numpunct; 29724: extern template class __cxx11:: numpunct_byname; 29724: extern template class num_get; 29724: extern template class num_put; 29724: extern template class ctype_byname; 29724: 29724: extern template 29724: const ctype* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const numpunct* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const num_put* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const num_get* 29724: __try_use_facet >(const locale&) noexcept; 29724: 29724: extern template 29724: const ctype& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const numpunct& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const num_put& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: const num_get& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: 29724: 29724: } 29724: # 2700 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29724: # 38 "/usr/include/c++/14/bits/basic_ios.h" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: inline const _Facet& 29724: __check_facet(const _Facet* __f) 29724: { 29724: if (!__f) 29724: __throw_bad_cast(); 29724: return *__f; 29724: } 29724: # 66 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: template 29724: class basic_ios : public ios_base 29724: { 29724: 29724: 29724: 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef typename _Traits::pos_type pos_type; 29724: typedef typename _Traits::off_type off_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef ctype<_CharT> __ctype_type; 29724: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 29724: __num_put_type; 29724: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 29724: __num_get_type; 29724: 29724: 29724: 29724: protected: 29724: basic_ostream<_CharT, _Traits>* _M_tie; 29724: mutable char_type _M_fill; 29724: mutable bool _M_fill_init; 29724: basic_streambuf<_CharT, _Traits>* _M_streambuf; 29724: 29724: 29724: const __ctype_type* _M_ctype; 29724: 29724: const __num_put_type* _M_num_put; 29724: 29724: const __num_get_type* _M_num_get; 29724: 29724: public: 29724: # 121 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: explicit operator bool() const 29724: { return !this->fail(); } 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: operator!() const 29724: { return this->fail(); } 29724: # 140 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: iostate 29724: rdstate() const 29724: { return _M_streambuf_state; } 29724: # 151 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: void 29724: clear(iostate __state = goodbit); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: setstate(iostate __state) 29724: { this->clear(this->rdstate() | __state); } 29724: 29724: 29724: 29724: 29724: void 29724: _M_setstate(iostate __state) 29724: { 29724: 29724: 29724: _M_streambuf_state |= __state; 29724: if (this->exceptions() & __state) 29724: throw; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: good() const 29724: { return this->rdstate() == 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: eof() const 29724: { return (this->rdstate() & eofbit) != 0; } 29724: # 204 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: bool 29724: fail() const 29724: { return (this->rdstate() & (badbit | failbit)) != 0; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: bad() const 29724: { return (this->rdstate() & badbit) != 0; } 29724: # 225 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: iostate 29724: exceptions() const 29724: { return _M_exception; } 29724: # 260 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: void 29724: exceptions(iostate __except) 29724: { 29724: _M_exception = __except; 29724: this->clear(_M_streambuf_state); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_ios(basic_streambuf<_CharT, _Traits>* __sb) 29724: : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), 29724: _M_ctype(0), _M_num_put(0), _M_num_get(0) 29724: { this->init(__sb); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual 29724: ~basic_ios() { } 29724: # 298 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: basic_ostream<_CharT, _Traits>* 29724: tie() const 29724: { return _M_tie; } 29724: # 310 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: basic_ostream<_CharT, _Traits>* 29724: tie(basic_ostream<_CharT, _Traits>* __tiestr) 29724: { 29724: basic_ostream<_CharT, _Traits>* __old = _M_tie; 29724: _M_tie = __tiestr; 29724: return __old; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_streambuf<_CharT, _Traits>* 29724: rdbuf() const 29724: { return _M_streambuf; } 29724: # 350 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: basic_streambuf<_CharT, _Traits>* 29724: rdbuf(basic_streambuf<_CharT, _Traits>* __sb); 29724: # 364 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: basic_ios& 29724: copyfmt(const basic_ios& __rhs); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: char_type 29724: fill() const 29724: { 29724: if (!_M_fill_init) 29724: { 29724: _M_fill = this->widen(' '); 29724: _M_fill_init = true; 29724: } 29724: return _M_fill; 29724: } 29724: # 393 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: char_type 29724: fill(char_type __ch) 29724: { 29724: char_type __old = this->fill(); 29724: _M_fill = __ch; 29724: return __old; 29724: } 29724: # 413 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: locale 29724: imbue(const locale& __loc); 29724: # 433 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: char 29724: narrow(char_type __c, char __dfault) const 29724: { return __check_facet(_M_ctype).narrow(__c, __dfault); } 29724: # 452 "/usr/include/c++/14/bits/basic_ios.h" 3 29724: char_type 29724: widen(char __c) const 29724: { return __check_facet(_M_ctype).widen(__c); } 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_ios() 29724: : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), 29724: _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) 29724: { } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: init(basic_streambuf<_CharT, _Traits>* __sb); 29724: 29724: 29724: basic_ios(const basic_ios&) = delete; 29724: basic_ios& operator=(const basic_ios&) = delete; 29724: 29724: void 29724: move(basic_ios& __rhs) 29724: { 29724: ios_base::_M_move(__rhs); 29724: _M_cache_locale(_M_ios_locale); 29724: this->tie(__rhs.tie(nullptr)); 29724: _M_fill = __rhs._M_fill; 29724: _M_fill_init = __rhs._M_fill_init; 29724: _M_streambuf = nullptr; 29724: } 29724: 29724: void 29724: move(basic_ios&& __rhs) 29724: { this->move(__rhs); } 29724: 29724: void 29724: swap(basic_ios& __rhs) noexcept 29724: { 29724: ios_base::_M_swap(__rhs); 29724: _M_cache_locale(_M_ios_locale); 29724: __rhs._M_cache_locale(__rhs._M_ios_locale); 29724: std::swap(_M_tie, __rhs._M_tie); 29724: std::swap(_M_fill, __rhs._M_fill); 29724: std::swap(_M_fill_init, __rhs._M_fill_init); 29724: } 29724: 29724: void 29724: set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 29724: { _M_streambuf = __sb; } 29724: 29724: 29724: void 29724: _M_cache_locale(const locale& __loc); 29724: }; 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/basic_ios.tcc" 1 3 29724: # 33 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: void 29724: basic_ios<_CharT, _Traits>::clear(iostate __state) 29724: { 29724: if (this->rdbuf()) 29724: _M_streambuf_state = __state; 29724: else 29724: _M_streambuf_state = __state | badbit; 29724: if (this->exceptions() & this->rdstate()) 29724: __throw_ios_failure(("basic_ios::clear")); 29724: } 29724: 29724: template 29724: basic_streambuf<_CharT, _Traits>* 29724: basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 29724: { 29724: basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; 29724: _M_streambuf = __sb; 29724: this->clear(); 29724: return __old; 29724: } 29724: 29724: template 29724: basic_ios<_CharT, _Traits>& 29724: basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) 29724: { 29724: 29724: 29724: if (this != std::__addressof(__rhs)) 29724: { 29724: 29724: 29724: 29724: 29724: _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? 29724: _M_local_word : new _Words[__rhs._M_word_size]; 29724: 29724: 29724: _Callback_list* __cb = __rhs._M_callbacks; 29724: if (__cb) 29724: __cb->_M_add_reference(); 29724: _M_call_callbacks(erase_event); 29724: if (_M_word != _M_local_word) 29724: { 29724: delete [] _M_word; 29724: _M_word = 0; 29724: } 29724: _M_dispose_callbacks(); 29724: 29724: 29724: _M_callbacks = __cb; 29724: for (int __i = 0; __i < __rhs._M_word_size; ++__i) 29724: __words[__i] = __rhs._M_word[__i]; 29724: _M_word = __words; 29724: _M_word_size = __rhs._M_word_size; 29724: 29724: this->flags(__rhs.flags()); 29724: this->width(__rhs.width()); 29724: this->precision(__rhs.precision()); 29724: this->tie(__rhs.tie()); 29724: this->fill(__rhs.fill()); 29724: _M_ios_locale = __rhs.getloc(); 29724: _M_cache_locale(_M_ios_locale); 29724: 29724: _M_call_callbacks(copyfmt_event); 29724: 29724: 29724: this->exceptions(__rhs.exceptions()); 29724: } 29724: return *this; 29724: } 29724: 29724: 29724: template 29724: locale 29724: basic_ios<_CharT, _Traits>::imbue(const locale& __loc) 29724: { 29724: locale __old(this->getloc()); 29724: ios_base::imbue(__loc); 29724: _M_cache_locale(__loc); 29724: if (this->rdbuf() != 0) 29724: this->rdbuf()->pubimbue(__loc); 29724: return __old; 29724: } 29724: 29724: template 29724: void 29724: basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) 29724: { 29724: 29724: ios_base::_M_init(); 29724: 29724: 29724: _M_cache_locale(_M_ios_locale); 29724: # 146 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29724: _M_fill = _CharT(); 29724: _M_fill_init = false; 29724: 29724: _M_tie = 0; 29724: _M_exception = goodbit; 29724: _M_streambuf = __sb; 29724: _M_streambuf_state = __sb ? goodbit : badbit; 29724: } 29724: 29724: template 29724: void 29724: basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) 29724: { 29724: _M_ctype = std::__try_use_facet<__ctype_type>(__loc); 29724: _M_num_put = std::__try_use_facet<__num_put_type>(__loc); 29724: _M_num_get = std::__try_use_facet<__num_get_type>(__loc); 29724: } 29724: 29724: 29724: 29724: 29724: extern template class basic_ios; 29724: 29724: 29724: extern template class basic_ios; 29724: 29724: 29724: 29724: 29724: } 29724: # 521 "/usr/include/c++/14/bits/basic_ios.h" 2 3 29724: # 47 "/usr/include/c++/14/ios" 2 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 50 "/usr/include/c++/14/ios" 2 3 29724: # 41 "/usr/include/c++/14/ostream" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 48 "/usr/include/c++/14/ostream" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 65 "/usr/include/c++/14/ostream" 3 29724: template 29724: class basic_ostream : virtual public basic_ios<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef typename _Traits::pos_type pos_type; 29724: typedef typename _Traits::off_type off_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29724: typedef basic_ios<_CharT, _Traits> __ios_type; 29724: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29724: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 29724: __num_put_type; 29724: typedef ctype<_CharT> __ctype_type; 29724: # 91 "/usr/include/c++/14/ostream" 3 29724: explicit 29724: basic_ostream(__streambuf_type* __sb) 29724: { this->init(__sb); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual 29724: ~basic_ostream() { } 29724: 29724: 29724: class sentry; 29724: friend class sentry; 29724: # 115 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: operator<<(__ostream_type& (*__pf)(__ostream_type&)) 29724: { 29724: 29724: 29724: 29724: return __pf(*this); 29724: } 29724: 29724: __ostream_type& 29724: operator<<(__ios_type& (*__pf)(__ios_type&)) 29724: { 29724: 29724: 29724: 29724: __pf(*this); 29724: return *this; 29724: } 29724: 29724: __ostream_type& 29724: operator<<(ios_base& (*__pf) (ios_base&)) 29724: { 29724: 29724: 29724: 29724: __pf(*this); 29724: return *this; 29724: } 29724: # 173 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: operator<<(long __n) 29724: { return _M_insert(__n); } 29724: 29724: __ostream_type& 29724: operator<<(unsigned long __n) 29724: { return _M_insert(__n); } 29724: 29724: __ostream_type& 29724: operator<<(bool __n) 29724: { return _M_insert(__n); } 29724: 29724: __ostream_type& 29724: operator<<(short __n); 29724: 29724: __ostream_type& 29724: operator<<(unsigned short __n) 29724: { 29724: 29724: 29724: return _M_insert(static_cast(__n)); 29724: } 29724: 29724: __ostream_type& 29724: operator<<(int __n); 29724: 29724: __ostream_type& 29724: operator<<(unsigned int __n) 29724: { 29724: 29724: 29724: return _M_insert(static_cast(__n)); 29724: } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: __ostream_type& 29724: operator<<(long long __n) 29724: { return _M_insert(__n); } 29724: 29724: __ostream_type& 29724: operator<<(unsigned long long __n) 29724: { return _M_insert(__n); } 29724: #pragma GCC diagnostic pop 29724: # 230 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: operator<<(double __f) 29724: { return _M_insert(__f); } 29724: 29724: __ostream_type& 29724: operator<<(float __f) 29724: { 29724: 29724: 29724: return _M_insert(static_cast(__f)); 29724: } 29724: 29724: __ostream_type& 29724: operator<<(long double __f) 29724: { return _M_insert(__f); } 29724: # 300 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: operator<<(const void* __p) 29724: { return _M_insert(__p); } 29724: 29724: 29724: __ostream_type& 29724: operator<<(nullptr_t) 29724: { return *this << "nullptr"; } 29724: # 338 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: operator<<(__streambuf_type* __sb); 29724: # 371 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: put(char_type __c); 29724: # 390 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: write(const char_type* __s, streamsize __n); 29724: # 403 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: flush(); 29724: # 413 "/usr/include/c++/14/ostream" 3 29724: pos_type 29724: tellp(); 29724: # 424 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: seekp(pos_type); 29724: # 436 "/usr/include/c++/14/ostream" 3 29724: __ostream_type& 29724: seekp(off_type, ios_base::seekdir); 29724: 29724: protected: 29724: basic_ostream() 29724: { this->init(0); } 29724: 29724: 29724: 29724: basic_ostream(basic_iostream<_CharT, _Traits>&) { } 29724: 29724: basic_ostream(const basic_ostream&) = delete; 29724: 29724: basic_ostream(basic_ostream&& __rhs) 29724: : __ios_type() 29724: { __ios_type::move(__rhs); } 29724: 29724: 29724: 29724: basic_ostream& operator=(const basic_ostream&) = delete; 29724: 29724: basic_ostream& 29724: operator=(basic_ostream&& __rhs) 29724: { 29724: swap(__rhs); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_ostream& __rhs) 29724: { __ios_type::swap(__rhs); } 29724: 29724: 29724: template 29724: __ostream_type& 29724: _M_insert(_ValueT __v); 29724: 29724: private: 29724: 29724: void 29724: _M_write(const char_type* __s, streamsize __n) 29724: { std::__ostream_insert(*this, __s, __n); } 29724: 29724: }; 29724: # 488 "/usr/include/c++/14/ostream" 3 29724: template 29724: class basic_ostream<_CharT, _Traits>::sentry 29724: { 29724: 29724: bool _M_ok; 29724: basic_ostream<_CharT, _Traits>& _M_os; 29724: 29724: public: 29724: # 507 "/usr/include/c++/14/ostream" 3 29724: explicit 29724: sentry(basic_ostream<_CharT, _Traits>& __os); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~sentry() 29724: { 29724: 29724: if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) 29724: { 29724: 29724: if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) 29724: _M_os.setstate(ios_base::badbit); 29724: } 29724: } 29724: #pragma GCC diagnostic pop 29724: # 539 "/usr/include/c++/14/ostream" 3 29724: explicit 29724: 29724: operator bool() const 29724: { return _M_ok; } 29724: }; 29724: # 561 "/usr/include/c++/14/ostream" 3 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) 29724: { 29724: if (__out.width() != 0) 29724: return __ostream_insert(__out, &__c, 1); 29724: __out.put(__c); 29724: return __out; 29724: } 29724: 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) 29724: { return (__out << __out.widen(__c)); } 29724: 29724: 29724: template 29724: inline basic_ostream& 29724: operator<<(basic_ostream& __out, char __c) 29724: { 29724: if (__out.width() != 0) 29724: return __ostream_insert(__out, &__c, 1); 29724: __out.put(__c); 29724: return __out; 29724: } 29724: 29724: 29724: template 29724: inline basic_ostream& 29724: operator<<(basic_ostream& __out, signed char __c) 29724: { return (__out << static_cast(__c)); } 29724: 29724: template 29724: inline basic_ostream& 29724: operator<<(basic_ostream& __out, unsigned char __c) 29724: { return (__out << static_cast(__c)); } 29724: # 652 "/usr/include/c++/14/ostream" 3 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) 29724: { 29724: if (!__s) 29724: __out.setstate(ios_base::badbit); 29724: else 29724: __ostream_insert(__out, __s, 29724: static_cast(_Traits::length(__s))); 29724: return __out; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits> & 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); 29724: 29724: 29724: template 29724: inline basic_ostream& 29724: operator<<(basic_ostream& __out, const char* __s) 29724: { 29724: if (!__s) 29724: __out.setstate(ios_base::badbit); 29724: else 29724: __ostream_insert(__out, __s, 29724: static_cast(_Traits::length(__s))); 29724: return __out; 29724: } 29724: 29724: 29724: template 29724: inline basic_ostream& 29724: operator<<(basic_ostream& __out, const signed char* __s) 29724: { return (__out << reinterpret_cast(__s)); } 29724: 29724: template 29724: inline basic_ostream & 29724: operator<<(basic_ostream& __out, const unsigned char* __s) 29724: { return (__out << reinterpret_cast(__s)); } 29724: # 742 "/usr/include/c++/14/ostream" 3 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: endl(basic_ostream<_CharT, _Traits>& __os) 29724: { return flush(__os.put(__os.widen('\n'))); } 29724: # 754 "/usr/include/c++/14/ostream" 3 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: ends(basic_ostream<_CharT, _Traits>& __os) 29724: { return __os.put(_CharT()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline basic_ostream<_CharT, _Traits>& 29724: flush(basic_ostream<_CharT, _Traits>& __os) 29724: { return __os.flush(); } 29724: # 786 "/usr/include/c++/14/ostream" 3 29724: template 29724: using _Require_derived_from_ios_base 29724: = _Require, __not_>, 29724: is_convertible::type, ios_base*>>; 29724: 29724: template, 29724: typename 29724: = decltype(std::declval<_Os&>() << std::declval())> 29724: using __rvalue_stream_insertion_t = _Os&&; 29724: # 808 "/usr/include/c++/14/ostream" 3 29724: template 29724: inline __rvalue_stream_insertion_t<_Ostream, _Tp> 29724: operator<<(_Ostream&& __os, const _Tp& __x) 29724: { 29724: __os << __x; 29724: return std::move(__os); 29724: } 29724: # 1019 "/usr/include/c++/14/ostream" 3 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/ostream.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/ostream.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/ostream.tcc" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>::sentry:: 29724: sentry(basic_ostream<_CharT, _Traits>& __os) 29724: : _M_ok(false), _M_os(__os) 29724: { 29724: 29724: if (__os.tie() && __os.good()) 29724: __os.tie()->flush(); 29724: 29724: if (__os.good()) 29724: _M_ok = true; 29724: else if (__os.bad()) 29724: __os.setstate(ios_base::failbit); 29724: } 29724: 29724: template 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: _M_insert(_ValueT __v) 29724: { 29724: sentry __cerb(*this); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: 29724: const __num_put_type& __np = __check_facet(this->_M_num_put); 29724: 29724: 29724: 29724: 29724: if (__np.put(*this, *this, this->fill(), __v).failed()) 29724: __err |= ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: operator<<(short __n) 29724: { 29724: 29724: 29724: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 29724: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 29724: return _M_insert(static_cast(static_cast(__n))); 29724: else 29724: return _M_insert(static_cast(__n)); 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: operator<<(int __n) 29724: { 29724: 29724: 29724: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 29724: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 29724: return _M_insert(static_cast(static_cast(__n))); 29724: else 29724: return _M_insert(static_cast(__n)); 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: operator<<(__streambuf_type* __sbin) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this); 29724: if (__cerb && __sbin) 29724: { 29724: try 29724: { 29724: if (!__copy_streambufs(__sbin, this->rdbuf())) 29724: __err |= ios_base::failbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::failbit); } 29724: } 29724: else if (!__sbin) 29724: __err |= ios_base::badbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: put(char_type __c) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: sentry __cerb(*this); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __put = this->rdbuf()->sputc(__c); 29724: if (traits_type::eq_int_type(__put, traits_type::eof())) 29724: __err |= ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: write(const _CharT* __s, streamsize __n) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: sentry __cerb(*this); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: if (this->rdbuf()->sputn(__s, __n) != __n) 29724: __err = ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(ios_base::badbit); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: flush() 29724: { 29724: 29724: 29724: 29724: 29724: 29724: if (__streambuf_type* __buf = this->rdbuf()) 29724: { 29724: sentry __cerb(*this); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: if (this->rdbuf()->pubsync() == -1) 29724: __err |= ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: typename basic_ostream<_CharT, _Traits>::pos_type 29724: basic_ostream<_CharT, _Traits>:: 29724: tellp() 29724: { 29724: sentry __cerb(*this); 29724: pos_type __ret = pos_type(-1); 29724: if (!this->fail()) 29724: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); 29724: return __ret; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: seekp(pos_type __pos) 29724: { 29724: sentry __cerb(*this); 29724: if (!this->fail()) 29724: { 29724: 29724: 29724: const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); 29724: 29724: 29724: if (__p == pos_type(off_type(-1))) 29724: this->setstate(ios_base::failbit); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: basic_ostream<_CharT, _Traits>:: 29724: seekp(off_type __off, ios_base::seekdir __dir) 29724: { 29724: sentry __cerb(*this); 29724: if (!this->fail()) 29724: { 29724: 29724: 29724: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 29724: ios_base::out); 29724: 29724: 29724: if (__p == pos_type(off_type(-1))) 29724: this->setstate(ios_base::failbit); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_ostream<_CharT, _Traits>& 29724: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) 29724: { 29724: if (!__s) 29724: __out.setstate(ios_base::badbit); 29724: else 29724: { 29724: 29724: 29724: const size_t __clen = char_traits::length(__s); 29724: try 29724: { 29724: struct __ptr_guard 29724: { 29724: _CharT *__p; 29724: __ptr_guard (_CharT *__ip): __p(__ip) { } 29724: ~__ptr_guard() { delete[] __p; } 29724: _CharT* __get() { return __p; } 29724: } __pg (new _CharT[__clen]); 29724: 29724: _CharT *__ws = __pg.__get(); 29724: for (size_t __i = 0; __i < __clen; ++__i) 29724: __ws[__i] = __out.widen(__s[__i]); 29724: __ostream_insert(__out, __ws, __clen); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __out._M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { __out._M_setstate(ios_base::badbit); } 29724: } 29724: return __out; 29724: } 29724: 29724: 29724: 29724: 29724: extern template class basic_ostream; 29724: extern template ostream& endl(ostream&); 29724: extern template ostream& ends(ostream&); 29724: extern template ostream& flush(ostream&); 29724: extern template ostream& operator<<(ostream&, char); 29724: extern template ostream& operator<<(ostream&, unsigned char); 29724: extern template ostream& operator<<(ostream&, signed char); 29724: extern template ostream& operator<<(ostream&, const char*); 29724: extern template ostream& operator<<(ostream&, const unsigned char*); 29724: extern template ostream& operator<<(ostream&, const signed char*); 29724: 29724: extern template ostream& ostream::_M_insert(long); 29724: extern template ostream& ostream::_M_insert(unsigned long); 29724: extern template ostream& ostream::_M_insert(bool); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: extern template ostream& ostream::_M_insert(long long); 29724: extern template ostream& ostream::_M_insert(unsigned long long); 29724: #pragma GCC diagnostic pop 29724: 29724: extern template ostream& ostream::_M_insert(double); 29724: extern template ostream& ostream::_M_insert(long double); 29724: extern template ostream& ostream::_M_insert(const void*); 29724: 29724: 29724: extern template class basic_ostream; 29724: extern template wostream& endl(wostream&); 29724: extern template wostream& ends(wostream&); 29724: extern template wostream& flush(wostream&); 29724: extern template wostream& operator<<(wostream&, wchar_t); 29724: extern template wostream& operator<<(wostream&, char); 29724: extern template wostream& operator<<(wostream&, const wchar_t*); 29724: extern template wostream& operator<<(wostream&, const char*); 29724: 29724: extern template wostream& wostream::_M_insert(long); 29724: extern template wostream& wostream::_M_insert(unsigned long); 29724: extern template wostream& wostream::_M_insert(bool); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: extern template wostream& wostream::_M_insert(long long); 29724: extern template wostream& wostream::_M_insert(unsigned long long); 29724: #pragma GCC diagnostic pop 29724: 29724: extern template wostream& wostream::_M_insert(double); 29724: extern template wostream& wostream::_M_insert(long double); 29724: extern template wostream& wostream::_M_insert(const void*); 29724: 29724: 29724: 29724: 29724: } 29724: # 1023 "/usr/include/c++/14/ostream" 2 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 2 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: namespace rocksdb { 29724: 29724: class ColumnFamilyHandle; 29724: 29724: 29724: 29724: class WideColumn { 29724: public: 29724: WideColumn() = default; 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: template 29724: WideColumn(N&& name, V&& value) 29724: : name_(std::forward(name)), value_(std::forward(value)) {} 29724: # 49 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: template 29724: WideColumn(std::piecewise_construct_t, NTuple&& name_tuple, 29724: VTuple&& value_tuple) 29724: : name_(std::make_from_tuple(std::forward(name_tuple))), 29724: value_(std::make_from_tuple(std::forward(value_tuple))) { 29724: } 29724: 29724: const Slice& name() const { return name_; } 29724: const Slice& value() const { return value_; } 29724: 29724: Slice& name() { return name_; } 29724: Slice& value() { return value_; } 29724: 29724: private: 29724: Slice name_; 29724: Slice value_; 29724: }; 29724: 29724: 29724: inline bool operator==(const WideColumn& lhs, const WideColumn& rhs) { 29724: return lhs.name() == rhs.name() && lhs.value() == rhs.value(); 29724: } 29724: 29724: inline bool operator!=(const WideColumn& lhs, const WideColumn& rhs) { 29724: return !(lhs == rhs); 29724: } 29724: 29724: inline std::ostream& operator<<(std::ostream& os, const WideColumn& column) { 29724: const bool hex = 29724: (os.flags() & std::ios_base::basefield) == std::ios_base::hex; 29724: if (!column.name().empty()) { 29724: if (hex) { 29724: os << "0x"; 29724: } 29724: os << column.name().ToString(hex); 29724: } 29724: os << ':'; 29724: if (!column.value().empty()) { 29724: if (hex) { 29724: os << "0x"; 29724: } 29724: os << column.value().ToString(hex); 29724: } 29724: return os; 29724: } 29724: 29724: 29724: using WideColumns = std::vector; 29724: 29724: 29724: extern const Slice kDefaultWideColumnName; 29724: 29724: 29724: extern const WideColumns kNoWideColumns; 29724: 29724: 29724: 29724: class PinnableWideColumns { 29724: public: 29724: PinnableWideColumns() = default; 29724: 29724: PinnableWideColumns(const PinnableWideColumns&) = delete; 29724: PinnableWideColumns& operator=(const PinnableWideColumns&) = delete; 29724: 29724: PinnableWideColumns(PinnableWideColumns&&); 29724: PinnableWideColumns& operator=(PinnableWideColumns&&); 29724: 29724: ~PinnableWideColumns() = default; 29724: 29724: const WideColumns& columns() const { return columns_; } 29724: size_t serialized_size() const { return value_.size(); } 29724: 29724: void SetPlainValue(const Slice& value); 29724: void SetPlainValue(const Slice& value, Cleanable* cleanable); 29724: void SetPlainValue(PinnableSlice&& value); 29724: void SetPlainValue(std::string&& value); 29724: 29724: Status SetWideColumnValue(const Slice& value); 29724: Status SetWideColumnValue(const Slice& value, Cleanable* cleanable); 29724: Status SetWideColumnValue(PinnableSlice&& value); 29724: Status SetWideColumnValue(std::string&& value); 29724: 29724: void Reset(); 29724: 29724: private: 29724: void Move(PinnableWideColumns&& other); 29724: void CopyValue(const Slice& value); 29724: void PinOrCopyValue(const Slice& value, Cleanable* cleanable); 29724: void MoveValue(PinnableSlice&& value); 29724: void MoveValue(std::string&& value); 29724: 29724: void CreateIndexForPlainValue(); 29724: Status CreateIndexForWideColumns(); 29724: 29724: PinnableSlice value_; 29724: WideColumns columns_; 29724: }; 29724: 29724: inline void PinnableWideColumns::Reset() { 29724: value_.Reset(); 29724: columns_.clear(); 29724: } 29724: 29724: inline void PinnableWideColumns::Move(PinnableWideColumns&& other) { 29724: 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: (static_cast ( 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: columns_.empty() 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: "columns_.empty()" 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: ; 29724: 29724: if (other.columns_.empty()) { 29724: return; 29724: } 29724: 29724: const char* const data = other.value_.data(); 29724: const bool is_plain_value = 29724: other.columns_.size() == 1 && 29724: other.columns_.front().name() == kDefaultWideColumnName && 29724: other.columns_.front().value() == other.value_; 29724: 29724: MoveValue(std::move(other.value_)); 29724: 29724: if (value_.data() == data) { 29724: columns_ = std::move(other.columns_); 29724: } else { 29724: if (is_plain_value) { 29724: CreateIndexForPlainValue(); 29724: } else { 29724: const Status s = CreateIndexForWideColumns(); 29724: 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: (static_cast ( 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: s.ok() 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: "s.ok()" 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: ; 29724: 29724: s.PermitUncheckedError(); 29724: } 29724: } 29724: 29724: other.Reset(); 29724: } 29724: 29724: inline void PinnableWideColumns::CopyValue(const Slice& value) { 29724: value_.PinSelf(value); 29724: } 29724: 29724: inline void PinnableWideColumns::PinOrCopyValue(const Slice& value, 29724: Cleanable* cleanable) { 29724: if (!cleanable) { 29724: CopyValue(value); 29724: return; 29724: } 29724: 29724: value_.PinSlice(value, cleanable); 29724: } 29724: 29724: inline void PinnableWideColumns::MoveValue(PinnableSlice&& value) { 29724: value_ = std::move(value); 29724: } 29724: 29724: inline void PinnableWideColumns::MoveValue(std::string&& value) { 29724: std::string* const buf = value_.GetSelf(); 29724: 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: (static_cast ( 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: buf 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: "buf" 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29724: ; 29724: 29724: *buf = std::move(value); 29724: value_.PinSelf(); 29724: } 29724: 29724: inline void PinnableWideColumns::CreateIndexForPlainValue() { 29724: columns_ = WideColumns{{kDefaultWideColumnName, value_}}; 29724: } 29724: 29724: inline void PinnableWideColumns::SetPlainValue(const Slice& value) { 29724: CopyValue(value); 29724: CreateIndexForPlainValue(); 29724: } 29724: 29724: inline void PinnableWideColumns::SetPlainValue(const Slice& value, 29724: Cleanable* cleanable) { 29724: PinOrCopyValue(value, cleanable); 29724: CreateIndexForPlainValue(); 29724: } 29724: 29724: inline void PinnableWideColumns::SetPlainValue(PinnableSlice&& value) { 29724: MoveValue(std::move(value)); 29724: CreateIndexForPlainValue(); 29724: } 29724: 29724: inline void PinnableWideColumns::SetPlainValue(std::string&& value) { 29724: MoveValue(std::move(value)); 29724: CreateIndexForPlainValue(); 29724: } 29724: 29724: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value) { 29724: CopyValue(value); 29724: 29724: const Status s = CreateIndexForWideColumns(); 29724: if (!s.ok()) { 29724: Reset(); 29724: } 29724: 29724: return s; 29724: } 29724: 29724: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value, 29724: Cleanable* cleanable) { 29724: PinOrCopyValue(value, cleanable); 29724: 29724: const Status s = CreateIndexForWideColumns(); 29724: if (!s.ok()) { 29724: Reset(); 29724: } 29724: 29724: return s; 29724: } 29724: 29724: inline Status PinnableWideColumns::SetWideColumnValue(PinnableSlice&& value) { 29724: MoveValue(std::move(value)); 29724: 29724: const Status s = CreateIndexForWideColumns(); 29724: if (!s.ok()) { 29724: Reset(); 29724: } 29724: 29724: return s; 29724: } 29724: 29724: inline Status PinnableWideColumns::SetWideColumnValue(std::string&& value) { 29724: MoveValue(std::move(value)); 29724: 29724: const Status s = CreateIndexForWideColumns(); 29724: if (!s.ok()) { 29724: Reset(); 29724: } 29724: 29724: return s; 29724: } 29724: 29724: inline PinnableWideColumns::PinnableWideColumns(PinnableWideColumns&& other) { 29724: Move(std::move(other)); 29724: } 29724: 29724: inline PinnableWideColumns& PinnableWideColumns::operator=( 29724: PinnableWideColumns&& other) { 29724: if (this != &other) { 29724: Reset(); 29724: Move(std::move(other)); 29724: } 29724: 29724: return *this; 29724: } 29724: 29724: inline bool operator==(const PinnableWideColumns& lhs, 29724: const PinnableWideColumns& rhs) { 29724: return lhs.columns() == rhs.columns(); 29724: } 29724: 29724: inline bool operator!=(const PinnableWideColumns& lhs, 29724: const PinnableWideColumns& rhs) { 29724: return !(lhs == rhs); 29724: } 29724: 29724: } 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class ColumnFamilyHandle; 29724: 29724: 29724: 29724: 29724: class AttributeGroup { 29724: public: 29724: explicit AttributeGroup(ColumnFamilyHandle* column_family, 29724: const WideColumns& columns) 29724: : column_family_(column_family), columns_(columns) {} 29724: 29724: ColumnFamilyHandle* column_family() const { return column_family_; } 29724: const WideColumns& columns() const { return columns_; } 29724: WideColumns& columns() { return columns_; } 29724: 29724: private: 29724: ColumnFamilyHandle* column_family_; 29724: WideColumns columns_; 29724: }; 29724: 29724: inline bool operator==(const AttributeGroup& lhs, const AttributeGroup& rhs) { 29724: return lhs.column_family() == rhs.column_family() && 29724: lhs.columns() == rhs.columns(); 29724: } 29724: 29724: inline bool operator!=(const AttributeGroup& lhs, const AttributeGroup& rhs) { 29724: return !(lhs == rhs); 29724: } 29724: 29724: 29724: using AttributeGroups = std::vector; 29724: 29724: 29724: extern const AttributeGroups kNoAttributeGroups; 29724: 29724: 29724: class PinnableAttributeGroup { 29724: public: 29724: explicit PinnableAttributeGroup(ColumnFamilyHandle* column_family) 29724: : column_family_(column_family), status_(Status::OK()) {} 29724: 29724: ColumnFamilyHandle* column_family() const { return column_family_; } 29724: const Status& status() const { return status_; } 29724: const WideColumns& columns() const { return columns_.columns(); } 29724: 29724: void SetStatus(const Status& status); 29724: void SetColumns(PinnableWideColumns&& columns); 29724: 29724: void Reset(); 29724: 29724: private: 29724: ColumnFamilyHandle* column_family_; 29724: Status status_; 29724: PinnableWideColumns columns_; 29724: }; 29724: 29724: inline void PinnableAttributeGroup::SetStatus(const Status& status) { 29724: status_ = status; 29724: } 29724: inline void PinnableAttributeGroup::SetColumns(PinnableWideColumns&& columns) { 29724: columns_ = std::move(columns); 29724: } 29724: 29724: inline void PinnableAttributeGroup::Reset() { 29724: SetStatus(Status::OK()); 29724: columns_.Reset(); 29724: } 29724: 29724: 29724: using PinnableAttributeGroups = std::vector; 29724: 29724: 29724: 29724: class IteratorAttributeGroup { 29724: public: 29724: explicit IteratorAttributeGroup(ColumnFamilyHandle* column_family, 29724: const WideColumns* columns) 29724: : column_family_(column_family), columns_(columns) {} 29724: 29724: explicit IteratorAttributeGroup(const AttributeGroup& attribute_group) 29724: : IteratorAttributeGroup(attribute_group.column_family(), 29724: &attribute_group.columns()) {} 29724: 29724: ColumnFamilyHandle* column_family() const { return column_family_; } 29724: const WideColumns& columns() const { return *columns_; } 29724: 29724: private: 29724: ColumnFamilyHandle* column_family_; 29724: const WideColumns* columns_; 29724: }; 29724: 29724: inline bool operator==(const IteratorAttributeGroup& lhs, 29724: const IteratorAttributeGroup& rhs) { 29724: return lhs.column_family() == rhs.column_family() && 29724: lhs.columns() == rhs.columns(); 29724: } 29724: 29724: inline bool operator!=(const IteratorAttributeGroup& lhs, 29724: const IteratorAttributeGroup& rhs) { 29724: return !(lhs == rhs); 29724: } 29724: 29724: using IteratorAttributeGroups = std::vector; 29724: 29724: extern const IteratorAttributeGroups kNoIteratorAttributeGroups; 29724: 29724: 29724: 29724: class AttributeGroupIterator : public IteratorBase { 29724: public: 29724: AttributeGroupIterator() {} 29724: ~AttributeGroupIterator() override {} 29724: 29724: 29724: AttributeGroupIterator(const AttributeGroupIterator&) = delete; 29724: AttributeGroupIterator& operator=(const AttributeGroupIterator&) = delete; 29724: 29724: virtual const IteratorAttributeGroups& attribute_groups() const = 0; 29724: }; 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 1 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum CompressionType : unsigned char { 29724: 29724: 29724: kNoCompression = 0x0, 29724: kSnappyCompression = 0x1, 29724: kZlibCompression = 0x2, 29724: kBZip2Compression = 0x3, 29724: kLZ4Compression = 0x4, 29724: kLZ4HCCompression = 0x5, 29724: kXpressCompression = 0x6, 29724: kZSTD = 0x7, 29724: 29724: 29724: 29724: 29724: 29724: 29724: kZSTDNotFinalCompression = 0x40, 29724: 29724: 29724: kDisableCompressionOption = 0xff, 29724: }; 29724: 29724: 29724: struct CompressionOptions { 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: static constexpr int kDefaultCompressionLevel = 32767; 29724: 29724: 29724: int window_bits = -14; 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: int level = kDefaultCompressionLevel; 29724: 29724: 29724: int strategy = 0; 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: uint32_t max_dict_bytes = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t zstd_max_train_bytes = 0; 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: uint32_t parallel_threads = 1; 29724: # 122 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: bool enabled = false; 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: uint64_t max_dict_buffer_bytes = 0; 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: bool use_zstd_dict_trainer = true; 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29724: int max_compressed_bytes_per_kb = 1024 * 7 / 8; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool checksum = false; 29724: 29724: 29724: 29724: 29724: void SetMinRatio(double min_ratio) { 29724: max_compressed_bytes_per_kb = static_cast(1024.0 / min_ratio + 0.5); 29724: } 29724: }; 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: namespace detail { 29724: int CountTrailingZeroBitsForSmallEnumSet(uint64_t); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: class SmallEnumSet { 29724: private: 29724: using StateT = uint64_t; 29724: static constexpr int kStateBits = sizeof(StateT) * 8; 29724: static constexpr int kMaxMax = kStateBits - 1; 29724: static constexpr int kMaxValue = static_cast(MAX_ENUMERATOR); 29724: static_assert(kMaxValue >= 0); 29724: static_assert(kMaxValue <= kMaxMax); 29724: 29724: public: 29724: 29724: SmallEnumSet() : state_(0) {} 29724: 29724: template 29724: constexpr SmallEnumSet(const ENUM_TYPE e, TRest... rest) { 29724: *this = SmallEnumSet(rest...).With(e); 29724: } 29724: 29724: 29724: 29724: static constexpr SmallEnumSet All() { 29724: StateT tmp = StateT{1} << kMaxValue; 29724: return SmallEnumSet(RawStateMarker(), tmp | (tmp - 1)); 29724: } 29724: 29724: 29724: bool operator==(const SmallEnumSet& that) const { 29724: return this->state_ == that.state_; 29724: } 29724: bool operator!=(const SmallEnumSet& that) const { return !(*this == that); } 29724: 29724: 29724: 29724: 29724: bool Contains(const ENUM_TYPE e) const { 29724: int value = static_cast(e); 29724: 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: value >= 0 && value <= kMaxValue 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "value >= 0 && value <= kMaxValue" 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: StateT tmp = 1; 29724: return state_ & (tmp << value); 29724: } 29724: 29724: bool empty() const { return state_ == 0; } 29724: 29724: 29724: class const_iterator { 29724: public: 29724: 29724: const_iterator(const const_iterator& that) = default; 29724: const_iterator& operator=(const const_iterator& that) = default; 29724: 29724: 29724: const_iterator(const_iterator&& that) noexcept = default; 29724: const_iterator& operator=(const_iterator&& that) noexcept = default; 29724: 29724: 29724: bool operator==(const const_iterator& that) const { 29724: 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: set_ == that.set_ 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "set_ == that.set_" 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: return this->pos_ == that.pos_; 29724: } 29724: 29724: bool operator!=(const const_iterator& that) const { 29724: return !(*this == that); 29724: } 29724: 29724: 29724: const_iterator& operator++() { 29724: if (pos_ < kMaxValue) { 29724: pos_ = set_->SkipUnset(pos_ + 1); 29724: } else { 29724: pos_ = kStateBits; 29724: } 29724: return *this; 29724: } 29724: 29724: 29724: const_iterator operator++(int) { 29724: auto old = *this; 29724: ++*this; 29724: return old; 29724: } 29724: 29724: ENUM_TYPE operator*() const { 29724: 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: pos_ <= kMaxValue 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "pos_ <= kMaxValue" 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: return static_cast(pos_); 29724: } 29724: 29724: private: 29724: friend class SmallEnumSet; 29724: const_iterator(const SmallEnumSet* set, int pos) : set_(set), pos_(pos) {} 29724: const SmallEnumSet* set_; 29724: int pos_; 29724: }; 29724: 29724: const_iterator begin() const { return const_iterator(this, SkipUnset(0)); } 29724: 29724: const_iterator end() const { return const_iterator(this, kStateBits); } 29724: 29724: 29724: 29724: 29724: 29724: bool Add(const ENUM_TYPE e) { 29724: int value = static_cast(e); 29724: 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: value >= 0 && value <= kMaxValue 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "value >= 0 && value <= kMaxValue" 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: StateT old_state = state_; 29724: state_ |= (StateT{1} << value); 29724: return old_state != state_; 29724: } 29724: 29724: 29724: 29724: bool Remove(const ENUM_TYPE e) { 29724: int value = static_cast(e); 29724: 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: value >= 0 && value <= kMaxValue 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "value >= 0 && value <= kMaxValue" 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: StateT old_state = state_; 29724: state_ &= ~(StateT{1} << value); 29724: return old_state != state_; 29724: } 29724: 29724: 29724: 29724: 29724: constexpr SmallEnumSet With(const ENUM_TYPE e) const { 29724: int value = static_cast(e); 29724: 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: value >= 0 && value <= kMaxValue 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "value >= 0 && value <= kMaxValue" 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: return SmallEnumSet(RawStateMarker(), state_ | (StateT{1} << value)); 29724: } 29724: template 29724: constexpr SmallEnumSet With(const ENUM_TYPE e1, const ENUM_TYPE e2, 29724: TRest... rest) const { 29724: return With(e1).With(e2, rest...); 29724: } 29724: 29724: 29724: constexpr SmallEnumSet Without(const ENUM_TYPE e) const { 29724: int value = static_cast(e); 29724: 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: (static_cast ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: value >= 0 && value <= kMaxValue 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: "value >= 0 && value <= kMaxValue" 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29724: ; 29724: return SmallEnumSet(RawStateMarker(), state_ & ~(StateT{1} << value)); 29724: } 29724: template 29724: constexpr SmallEnumSet Without(const ENUM_TYPE e1, const ENUM_TYPE e2, 29724: TRest... rest) const { 29724: return Without(e1).Without(e2, rest...); 29724: } 29724: 29724: private: 29724: int SkipUnset(int pos) const { 29724: StateT tmp = state_ >> pos; 29724: if (tmp == 0) { 29724: return kStateBits; 29724: } else { 29724: return pos + detail::CountTrailingZeroBitsForSmallEnumSet(tmp); 29724: } 29724: } 29724: struct RawStateMarker {}; 29724: explicit SmallEnumSet(RawStateMarker, StateT state) : state_(state) {} 29724: 29724: StateT state_; 29724: }; 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memory_allocator.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: class MemoryAllocator : public Customizable { 29724: public: 29724: static const char* Type() { return "MemoryAllocator"; } 29724: static Status CreateFromString(const ConfigOptions& options, 29724: const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: 29724: virtual void* Allocate(size_t size) = 0; 29724: 29724: 29724: virtual void Deallocate(void* p) = 0; 29724: 29724: 29724: 29724: virtual size_t UsableSize(void* , size_t allocation_size) const { 29724: 29724: return allocation_size; 29724: } 29724: 29724: std::string GetId() const override { return GenerateIndividualId(); } 29724: }; 29724: 29724: struct JemallocAllocatorOptions { 29724: static const char* kName() { return "JemallocAllocatorOptions"; } 29724: 29724: 29724: 29724: 29724: 29724: bool limit_tcache_size = false; 29724: 29724: 29724: 29724: size_t tcache_size_lower_bound = 1024; 29724: 29724: 29724: 29724: size_t tcache_size_upper_bound = 16 * 1024; 29724: 29724: 29724: 29724: 29724: size_t num_arenas = 1; 29724: }; 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memory_allocator.h" 29724: Status NewJemallocNodumpAllocator( 29724: const JemallocAllocatorOptions& options, 29724: std::shared_ptr* memory_allocator); 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Cache; 29724: struct ConfigOptions; 29724: class SecondaryCache; 29724: # 46 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: using BlockCache = Cache; 29724: using RowCache = Cache; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum class CacheEntryRole { 29724: 29724: kDataBlock, 29724: 29724: kFilterBlock, 29724: 29724: kFilterMetaBlock, 29724: 29724: kDeprecatedFilterBlock, 29724: 29724: kIndexBlock, 29724: 29724: kOtherBlock, 29724: 29724: kWriteBuffer, 29724: 29724: 29724: kCompressionDictionaryBuildingBuffer, 29724: 29724: 29724: kFilterConstruction, 29724: 29724: kBlockBasedTableReader, 29724: 29724: kFileMetadata, 29724: 29724: kBlobValue, 29724: 29724: 29724: kBlobCache, 29724: 29724: 29724: kMisc, 29724: }; 29724: constexpr uint32_t kNumCacheEntryRoles = 29724: static_cast(CacheEntryRole::kMisc) + 1; 29724: 29724: 29724: const std::string& GetCacheEntryRoleName(CacheEntryRole); 29724: 29724: 29724: using CacheEntryRoleSet = SmallEnumSet; 29724: 29724: 29724: 29724: 29724: struct BlockCacheEntryStatsMapKeys { 29724: static const std::string& CacheId(); 29724: static const std::string& CacheCapacityBytes(); 29724: static const std::string& LastCollectionDurationSeconds(); 29724: static const std::string& LastCollectionAgeSeconds(); 29724: 29724: static std::string EntryCount(CacheEntryRole); 29724: static std::string UsedBytes(CacheEntryRole); 29724: static std::string UsedPercent(CacheEntryRole); 29724: }; 29724: 29724: extern const bool kDefaultToAdaptiveMutex; 29724: 29724: enum CacheMetadataChargePolicy { 29724: 29724: 29724: kDontChargeCacheMetadata, 29724: 29724: 29724: 29724: kFullChargeCacheMetadata 29724: }; 29724: const CacheMetadataChargePolicy kDefaultCacheMetadataChargePolicy = 29724: kFullChargeCacheMetadata; 29724: 29724: 29724: 29724: struct ShardedCacheOptions { 29724: 29724: 29724: 29724: size_t capacity = 0; 29724: 29724: 29724: 29724: 29724: 29724: int num_shard_bits = -1; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool strict_capacity_limit = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr memory_allocator; 29724: 29724: 29724: CacheMetadataChargePolicy metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy; 29724: 29724: 29724: 29724: std::shared_ptr secondary_cache; 29724: 29724: 29724: static constexpr int32_t kQuasiRandomHashSeed = -1; 29724: static constexpr int32_t kHostHashSeed = -2; 29724: # 190 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: int32_t hash_seed = kHostHashSeed; 29724: 29724: ShardedCacheOptions() {} 29724: ShardedCacheOptions( 29724: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 29724: std::shared_ptr _memory_allocator = nullptr, 29724: CacheMetadataChargePolicy _metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy) 29724: : capacity(_capacity), 29724: num_shard_bits(_num_shard_bits), 29724: strict_capacity_limit(_strict_capacity_limit), 29724: memory_allocator(std::move(_memory_allocator)), 29724: metadata_charge_policy(_metadata_charge_policy) {} 29724: 29724: virtual ~ShardedCacheOptions() = default; 29724: }; 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: struct LRUCacheOptions : public ShardedCacheOptions { 29724: # 237 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: double high_pri_pool_ratio = 0.5; 29724: double low_pri_pool_ratio = 0.0; 29724: 29724: 29724: 29724: 29724: 29724: bool use_adaptive_mutex = kDefaultToAdaptiveMutex; 29724: 29724: LRUCacheOptions() {} 29724: LRUCacheOptions(size_t _capacity, int _num_shard_bits, 29724: bool _strict_capacity_limit, double _high_pri_pool_ratio, 29724: std::shared_ptr _memory_allocator = nullptr, 29724: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 29724: CacheMetadataChargePolicy _metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy, 29724: double _low_pri_pool_ratio = 0.0) 29724: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29724: std::move(_memory_allocator), 29724: _metadata_charge_policy), 29724: high_pri_pool_ratio(_high_pri_pool_ratio), 29724: low_pri_pool_ratio(_low_pri_pool_ratio), 29724: use_adaptive_mutex(_use_adaptive_mutex) {} 29724: 29724: 29724: std::shared_ptr MakeSharedCache() const; 29724: 29724: 29724: 29724: std::shared_ptr MakeSharedRowCache() const; 29724: }; 29724: 29724: 29724: inline std::shared_ptr NewLRUCache( 29724: size_t capacity, int num_shard_bits = -1, 29724: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 29724: std::shared_ptr memory_allocator = nullptr, 29724: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 29724: CacheMetadataChargePolicy metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy, 29724: double low_pri_pool_ratio = 0.0) { 29724: return LRUCacheOptions(capacity, num_shard_bits, strict_capacity_limit, 29724: high_pri_pool_ratio, memory_allocator, 29724: use_adaptive_mutex, metadata_charge_policy, 29724: low_pri_pool_ratio) 29724: .MakeSharedCache(); 29724: } 29724: 29724: 29724: inline std::shared_ptr NewLRUCache(const LRUCacheOptions& cache_opts) { 29724: return cache_opts.MakeSharedCache(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: struct CompressedSecondaryCacheOptions : LRUCacheOptions { 29724: 29724: CompressionType compression_type = CompressionType::kLZ4Compression; 29724: 29724: 29724: CompressionOptions compression_opts; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t compress_format_version = 2; 29724: 29724: 29724: 29724: bool enable_custom_split_merge = false; 29724: 29724: 29724: 29724: CacheEntryRoleSet do_not_compress_roles = {CacheEntryRole::kFilterBlock}; 29724: 29724: CompressedSecondaryCacheOptions() {} 29724: CompressedSecondaryCacheOptions( 29724: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 29724: double _high_pri_pool_ratio, double _low_pri_pool_ratio = 0.0, 29724: std::shared_ptr _memory_allocator = nullptr, 29724: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 29724: CacheMetadataChargePolicy _metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy, 29724: CompressionType _compression_type = CompressionType::kLZ4Compression, 29724: uint32_t _compress_format_version = 2, 29724: bool _enable_custom_split_merge = false, 29724: const CacheEntryRoleSet& _do_not_compress_roles = 29724: {CacheEntryRole::kFilterBlock}) 29724: : LRUCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29724: _high_pri_pool_ratio, std::move(_memory_allocator), 29724: _use_adaptive_mutex, _metadata_charge_policy, 29724: _low_pri_pool_ratio), 29724: compression_type(_compression_type), 29724: compress_format_version(_compress_format_version), 29724: enable_custom_split_merge(_enable_custom_split_merge), 29724: do_not_compress_roles(_do_not_compress_roles) {} 29724: 29724: 29724: std::shared_ptr MakeSharedSecondaryCache() const; 29724: 29724: 29724: std::shared_ptr MakeSharedCache() const = delete; 29724: }; 29724: 29724: 29724: inline std::shared_ptr NewCompressedSecondaryCache( 29724: size_t capacity, int num_shard_bits = -1, 29724: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 29724: double low_pri_pool_ratio = 0.0, 29724: std::shared_ptr memory_allocator = nullptr, 29724: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 29724: CacheMetadataChargePolicy metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy, 29724: CompressionType compression_type = CompressionType::kLZ4Compression, 29724: uint32_t compress_format_version = 2, 29724: bool enable_custom_split_merge = false, 29724: const CacheEntryRoleSet& _do_not_compress_roles = { 29724: CacheEntryRole::kFilterBlock}) { 29724: return CompressedSecondaryCacheOptions( 29724: capacity, num_shard_bits, strict_capacity_limit, 29724: high_pri_pool_ratio, low_pri_pool_ratio, memory_allocator, 29724: use_adaptive_mutex, metadata_charge_policy, compression_type, 29724: compress_format_version, enable_custom_split_merge, 29724: _do_not_compress_roles) 29724: .MakeSharedSecondaryCache(); 29724: } 29724: 29724: 29724: inline std::shared_ptr NewCompressedSecondaryCache( 29724: const CompressedSecondaryCacheOptions& opts) { 29724: return opts.MakeSharedSecondaryCache(); 29724: } 29724: # 388 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: struct HyperClockCacheOptions : public ShardedCacheOptions { 29724: # 425 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: size_t estimated_entry_charge; 29724: # 442 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: size_t min_avg_entry_charge = 450; 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: int eviction_effort_cap = 30; 29724: 29724: HyperClockCacheOptions( 29724: size_t _capacity, size_t _estimated_entry_charge, 29724: int _num_shard_bits = -1, bool _strict_capacity_limit = false, 29724: std::shared_ptr _memory_allocator = nullptr, 29724: CacheMetadataChargePolicy _metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy) 29724: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29724: std::move(_memory_allocator), 29724: _metadata_charge_policy), 29724: estimated_entry_charge(_estimated_entry_charge) {} 29724: 29724: 29724: std::shared_ptr MakeSharedCache() const; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr NewClockCache( 29724: size_t capacity, int num_shard_bits = -1, 29724: bool strict_capacity_limit = false, 29724: CacheMetadataChargePolicy metadata_charge_policy = 29724: kDefaultCacheMetadataChargePolicy); 29724: 29724: enum PrimaryCacheType { 29724: kCacheTypeLRU, 29724: kCacheTypeHCC, 29724: kCacheTypeMax, 29724: }; 29724: 29724: enum TieredAdmissionPolicy { 29724: 29724: kAdmPolicyAuto, 29724: 29724: 29724: 29724: kAdmPolicyPlaceholder, 29724: 29724: 29724: kAdmPolicyAllowCacheHits, 29724: 29724: 29724: 29724: kAdmPolicyThreeQueue, 29724: 29724: 29724: 29724: 29724: kAdmPolicyAllowAll, 29724: kAdmPolicyMax, 29724: }; 29724: # 543 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: struct TieredCacheOptions { 29724: 29724: 29724: 29724: 29724: ShardedCacheOptions* cache_opts = nullptr; 29724: PrimaryCacheType cache_type = PrimaryCacheType::kCacheTypeLRU; 29724: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyAuto; 29724: CompressedSecondaryCacheOptions comp_cache_opts; 29724: 29724: 29724: 29724: 29724: size_t total_capacity = 0; 29724: double compressed_secondary_ratio = 0.0; 29724: 29724: 29724: 29724: std::shared_ptr nvm_sec_cache; 29724: }; 29724: 29724: std::shared_ptr NewTieredCache(const TieredCacheOptions& cache_opts); 29724: # 575 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29724: Status UpdateTieredCache( 29724: const std::shared_ptr& cache, int64_t total_capacity = -1, 29724: double compressed_secondary_ratio = std::numeric_limits::max(), 29724: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyMax); 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 1 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/stdlib.h" 1 3 29724: # 36 "/usr/include/c++/14/stdlib.h" 3 29724: # 1 "/usr/include/c++/14/cstdlib" 1 3 29724: # 39 "/usr/include/c++/14/cstdlib" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdlib" 3 29724: # 37 "/usr/include/c++/14/stdlib.h" 2 3 29724: 29724: 29724: # 38 "/usr/include/c++/14/stdlib.h" 3 29724: using std::abort; 29724: using std::atexit; 29724: using std::exit; 29724: 29724: 29724: using std::at_quick_exit; 29724: 29724: 29724: using std::quick_exit; 29724: 29724: 29724: using std::_Exit; 29724: 29724: 29724: 29724: 29724: using std::div_t; 29724: using std::ldiv_t; 29724: 29724: using std::abs; 29724: using std::atof; 29724: using std::atoi; 29724: using std::atol; 29724: using std::bsearch; 29724: using std::calloc; 29724: using std::div; 29724: using std::free; 29724: using std::getenv; 29724: using std::labs; 29724: using std::ldiv; 29724: using std::malloc; 29724: 29724: using std::mblen; 29724: using std::mbstowcs; 29724: using std::mbtowc; 29724: 29724: using std::qsort; 29724: using std::rand; 29724: using std::realloc; 29724: using std::srand; 29724: using std::strtod; 29724: using std::strtol; 29724: using std::strtoul; 29724: using std::system; 29724: 29724: using std::wcstombs; 29724: using std::wctomb; 29724: # 40 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 2 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: namespace rocksdb { 29724: 29724: class Arena; 29724: class Allocator; 29724: class LookupKey; 29724: class SliceTransform; 29724: class Logger; 29724: struct DBOptions; 29724: 29724: using KeyHandle = void*; 29724: 29724: Slice GetLengthPrefixedSlice(const char* data); 29724: 29724: class MemTableRep { 29724: public: 29724: 29724: 29724: class KeyComparator { 29724: public: 29724: using DecodedType = rocksdb::Slice; 29724: 29724: virtual DecodedType decode_key(const char* key) const { 29724: 29724: 29724: return GetLengthPrefixedSlice(key); 29724: } 29724: 29724: 29724: 29724: virtual int operator()(const char* prefix_len_key1, 29724: const char* prefix_len_key2) const = 0; 29724: 29724: virtual int operator()(const char* prefix_len_key, 29724: const Slice& key) const = 0; 29724: 29724: virtual ~KeyComparator() {} 29724: }; 29724: 29724: explicit MemTableRep(Allocator* allocator) : allocator_(allocator) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual KeyHandle Allocate(const size_t len, char** buf); 29724: 29724: 29724: 29724: 29724: 29724: virtual void Insert(KeyHandle handle) = 0; 29724: 29724: 29724: 29724: 29724: virtual bool InsertKey(KeyHandle handle) { 29724: Insert(handle); 29724: return true; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void InsertWithHint(KeyHandle handle, void** ) { 29724: 29724: Insert(handle); 29724: } 29724: 29724: 29724: 29724: 29724: virtual bool InsertKeyWithHint(KeyHandle handle, void** hint) { 29724: InsertWithHint(handle, hint); 29724: return true; 29724: } 29724: # 137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: virtual void InsertWithHintConcurrently(KeyHandle handle, void** ) { 29724: 29724: InsertConcurrently(handle); 29724: } 29724: 29724: 29724: 29724: 29724: virtual bool InsertKeyWithHintConcurrently(KeyHandle handle, void** hint) { 29724: InsertWithHintConcurrently(handle, hint); 29724: return true; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void InsertConcurrently(KeyHandle handle); 29724: 29724: 29724: 29724: 29724: virtual bool InsertKeyConcurrently(KeyHandle handle) { 29724: InsertConcurrently(handle); 29724: return true; 29724: } 29724: 29724: 29724: virtual bool Contains(const char* key) const = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void MarkReadOnly() {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void MarkFlushed() {} 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: virtual void Get(const LookupKey& k, void* callback_args, 29724: bool (*callback_func)(void* arg, const char* entry)); 29724: 29724: 29724: virtual Status GetAndValidate(const LookupKey& , 29724: void* , 29724: bool (* )(void* arg, 29724: const char* entry), 29724: bool ) { 29724: return Status::NotSupported("GetAndValidate() not implemented."); 29724: } 29724: 29724: virtual uint64_t ApproximateNumEntries(const Slice& , 29724: const Slice& ) { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: virtual void UniqueRandomSample(const uint64_t num_entries, 29724: const uint64_t target_sample_size, 29724: std::unordered_set* entries) { 29724: (void)num_entries; 29724: (void)target_sample_size; 29724: (void)entries; 29724: 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29724: (static_cast ( 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: false 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: "false" 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: ; 29724: } 29724: 29724: 29724: 29724: virtual size_t ApproximateMemoryUsage() = 0; 29724: 29724: virtual ~MemTableRep() {} 29724: 29724: 29724: class Iterator { 29724: public: 29724: 29724: 29724: 29724: virtual ~Iterator() {} 29724: 29724: 29724: virtual bool Valid() const = 0; 29724: 29724: 29724: 29724: virtual const char* key() const = 0; 29724: 29724: 29724: 29724: virtual void Next() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status NextAndValidate(bool ) { 29724: return Status::NotSupported("NextAndValidate() not implemented."); 29724: } 29724: 29724: 29724: 29724: virtual void Prev() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status PrevAndValidate(bool ) { 29724: return Status::NotSupported("PrevAndValidate() not implemented."); 29724: } 29724: 29724: 29724: virtual void Seek(const Slice& internal_key, const char* memtable_key) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status SeekAndValidate(const Slice& , 29724: const char* , 29724: bool ) { 29724: return Status::NotSupported("SeekAndValidate() not implemented."); 29724: } 29724: 29724: 29724: virtual void SeekForPrev(const Slice& internal_key, 29724: const char* memtable_key) = 0; 29724: 29724: virtual void RandomSeek() {} 29724: 29724: 29724: 29724: virtual void SeekToFirst() = 0; 29724: 29724: 29724: 29724: virtual void SeekToLast() = 0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Iterator* GetIterator(Arena* arena = nullptr) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Iterator* GetDynamicPrefixIterator(Arena* arena = nullptr) { 29724: return GetIterator(arena); 29724: } 29724: 29724: 29724: 29724: virtual bool IsMergeOperatorSupported() const { return true; } 29724: 29724: 29724: 29724: virtual bool IsSnapshotSupported() const { return true; } 29724: 29724: protected: 29724: 29724: 29724: virtual Slice UserKey(const char* key) const; 29724: 29724: Allocator* allocator_; 29724: }; 29724: 29724: 29724: 29724: class MemTableRepFactory : public Customizable { 29724: public: 29724: ~MemTableRepFactory() override {} 29724: 29724: static const char* Type() { return "MemTableRepFactory"; } 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& id, 29724: std::unique_ptr* factory); 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& id, 29724: std::shared_ptr* factory); 29724: 29724: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 29724: Allocator*, const SliceTransform*, 29724: Logger* logger) = 0; 29724: virtual MemTableRep* CreateMemTableRep( 29724: const MemTableRep::KeyComparator& key_cmp, Allocator* allocator, 29724: const SliceTransform* slice_transform, Logger* logger, 29724: uint32_t ) { 29724: return CreateMemTableRep(key_cmp, allocator, slice_transform, logger); 29724: } 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: 29724: virtual bool IsInsertConcurrentlySupported() const { return false; } 29724: 29724: 29724: 29724: 29724: 29724: virtual bool CanHandleDuplicatedKey() const { return false; } 29724: }; 29724: # 371 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: class SkipListFactory : public MemTableRepFactory { 29724: public: 29724: explicit SkipListFactory(size_t lookahead = 0); 29724: 29724: 29724: static const char* kClassName() { return "SkipListFactory"; } 29724: static const char* kNickName() { return "skip_list"; } 29724: const char* Name() const override { return kClassName(); } 29724: const char* NickName() const override { return kNickName(); } 29724: std::string GetId() const override; 29724: 29724: 29724: using MemTableRepFactory::CreateMemTableRep; 29724: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 29724: const SliceTransform*, 29724: Logger* logger) override; 29724: 29724: bool IsInsertConcurrentlySupported() const override { return true; } 29724: 29724: bool CanHandleDuplicatedKey() const override { return true; } 29724: 29724: private: 29724: size_t lookahead_; 29724: }; 29724: # 404 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: class VectorRepFactory : public MemTableRepFactory { 29724: size_t count_; 29724: 29724: public: 29724: explicit VectorRepFactory(size_t count = 0); 29724: 29724: 29724: static const char* kClassName() { return "VectorRepFactory"; } 29724: static const char* kNickName() { return "vector"; } 29724: const char* Name() const override { return kClassName(); } 29724: const char* NickName() const override { return kNickName(); } 29724: 29724: 29724: using MemTableRepFactory::CreateMemTableRep; 29724: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 29724: const SliceTransform*, 29724: Logger* logger) override; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: MemTableRepFactory* NewHashSkipListRepFactory( 29724: size_t bucket_count = 1000000, int32_t skiplist_height = 4, 29724: int32_t skiplist_branching_factor = 4); 29724: # 449 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29724: MemTableRepFactory* NewHashLinkListRepFactory( 29724: size_t bucket_count = 50000, size_t huge_page_tlb_size = 0, 29724: int bucket_entries_logging_threshold = 4096, 29724: bool if_log_bucket_dist_when_flash = true, 29724: uint32_t threshold_use_skiplist = 256); 29724: 29724: } 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/climits" 1 3 29724: # 39 "/usr/include/c++/14/climits" 3 29724: 29724: # 40 "/usr/include/c++/14/climits" 3 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29724: # 34 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 1 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29724: # 210 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 29724: # 1 "/usr/include/limits.h" 1 3 4 29724: # 26 "/usr/include/limits.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29724: # 27 "/usr/include/limits.h" 2 3 4 29724: # 195 "/usr/include/limits.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 28 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 29724: # 161 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 1 3 4 29724: # 38 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 3 4 29724: # 1 "/usr/include/linux/limits.h" 1 3 4 29724: # 39 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 2 3 4 29724: # 162 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 29724: # 196 "/usr/include/limits.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix2_lim.h" 1 3 4 29724: # 200 "/usr/include/limits.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 1 3 4 29724: # 64 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio_lim.h" 1 3 4 29724: # 65 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 2 3 4 29724: # 204 "/usr/include/limits.h" 2 3 4 29724: # 211 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 29724: # 8 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 2 3 4 29724: # 35 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 29724: # 43 "/usr/include/c++/14/climits" 2 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 2 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: enum CompactionStopStyle { 29724: kCompactionStopStyleSimilarSize, 29724: kCompactionStopStyleTotalSize 29724: }; 29724: 29724: class CompactionOptionsUniversal { 29724: public: 29724: 29724: 29724: 29724: unsigned int size_ratio; 29724: 29724: 29724: unsigned int min_merge_width; 29724: 29724: 29724: unsigned int max_merge_width; 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29724: unsigned int max_size_amplification_percent; 29724: # 66 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29724: int compression_size_percent; 29724: # 96 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29724: int max_read_amp; 29724: 29724: 29724: 29724: CompactionStopStyle stop_style; 29724: 29724: 29724: 29724: 29724: bool allow_trivial_move; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool incremental; 29724: 29724: 29724: CompactionOptionsUniversal() 29724: : size_ratio(1), 29724: min_merge_width(2), 29724: max_merge_width( 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 3 4 29724: (0x7fffffff * 2U + 1U) 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29724: ), 29724: max_size_amplification_percent(200), 29724: compression_size_percent(-1), 29724: max_read_amp(-1), 29724: stop_style(kCompactionStopStyleTotalSize), 29724: allow_trivial_move(false), 29724: incremental(false) {} 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class SliceTransform; 29724: class TablePropertiesCollectorFactory; 29724: class TableFactory; 29724: struct Options; 29724: 29724: enum CompactionStyle : char { 29724: 29724: kCompactionStyleLevel = 0x0, 29724: 29724: kCompactionStyleUniversal = 0x1, 29724: 29724: kCompactionStyleFIFO = 0x2, 29724: 29724: 29724: kCompactionStyleNone = 0x3, 29724: }; 29724: 29724: 29724: 29724: 29724: enum CompactionPri : char { 29724: 29724: kByCompensatedSize = 0x0, 29724: 29724: 29724: kOldestLargestSeqFirst = 0x1, 29724: 29724: 29724: 29724: kOldestSmallestSeqFirst = 0x2, 29724: 29724: 29724: 29724: 29724: 29724: kMinOverlappingRatio = 0x3, 29724: 29724: 29724: 29724: 29724: kRoundRobin = 0x4, 29724: }; 29724: 29724: struct FileTemperatureAge { 29724: Temperature temperature = Temperature::kUnknown; 29724: uint64_t age = 0; 29724: }; 29724: 29724: struct CompactionOptionsFIFO { 29724: 29724: 29724: 29724: uint64_t max_table_files_size; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool allow_compaction = false; 29724: 29724: 29724: 29724: 29724: uint64_t age_for_warm = 0; 29724: # 113 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: std::vector file_temperature_age_thresholds{}; 29724: 29724: CompactionOptionsFIFO() : max_table_files_size(1 * 1024 * 1024 * 1024) {} 29724: CompactionOptionsFIFO(uint64_t _max_table_files_size, bool _allow_compaction) 29724: : max_table_files_size(_max_table_files_size), 29724: allow_compaction(_allow_compaction) {} 29724: }; 29724: 29724: 29724: 29724: 29724: enum class CacheTier : uint8_t { 29724: kVolatileTier = 0, 29724: kVolatileCompressedTier = 0x01, 29724: kNonVolatileBlockTier = 0x02, 29724: }; 29724: 29724: enum UpdateStatus { 29724: UPDATE_FAILED = 0, 29724: UPDATED_INPLACE = 1, 29724: UPDATED = 2, 29724: }; 29724: 29724: enum class PrepopulateBlobCache : uint8_t { 29724: kDisable = 0x0, 29724: kFlushOnly = 0x1, 29724: }; 29724: 29724: struct AdvancedColumnFamilyOptions { 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int max_write_buffer_number = 2; 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int min_write_buffer_number_to_merge = 1; 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int max_write_buffer_number_to_maintain = 0; 29724: # 221 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int64_t max_write_buffer_size_to_maintain = 0; 29724: # 242 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool inplace_update_support = false; 29724: 29724: 29724: 29724: 29724: 29724: size_t inplace_update_num_locks = 10000; 29724: # 265 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: double experimental_mempurge_threshold = 0.0; 29724: # 308 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: UpdateStatus (*inplace_callback)(char* existing_value, 29724: uint32_t* existing_value_size, 29724: Slice delta_value, 29724: std::string* merged_value) = nullptr; 29724: # 327 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: double memtable_prefix_bloom_size_ratio = 0.0; 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool memtable_whole_key_filtering = false; 29724: # 348 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: size_t memtable_huge_page_size = 0; 29724: # 369 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: std::shared_ptr 29724: memtable_insert_with_hint_prefix_extractor = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t bloom_locality = 0; 29724: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: size_t arena_block_size = 0; 29724: # 426 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: std::vector compression_per_level; 29724: 29724: 29724: int num_levels = 7; 29724: # 438 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int level0_slowdown_writes_trigger = 20; 29724: 29724: 29724: 29724: 29724: 29724: 29724: int level0_stop_writes_trigger = 36; 29724: # 459 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t target_file_size_base = 64 * 1048576; 29724: 29724: 29724: 29724: 29724: 29724: int target_file_size_multiplier = 1; 29724: # 546 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool level_compaction_dynamic_level_bytes = true; 29724: 29724: 29724: 29724: 29724: double max_bytes_for_level_multiplier = 10; 29724: # 562 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: std::vector max_bytes_for_level_multiplier_additional = 29724: std::vector(static_cast(num_levels), 1); 29724: # 572 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t max_compaction_bytes = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t soft_pending_compaction_bytes_limit = 64 * 1073741824ull; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t hard_pending_compaction_bytes_limit = 256 * 1073741824ull; 29724: 29724: 29724: CompactionStyle compaction_style = kCompactionStyleLevel; 29724: 29724: 29724: 29724: 29724: CompactionPri compaction_pri = kMinOverlappingRatio; 29724: 29724: 29724: 29724: 29724: 29724: 29724: CompactionOptionsUniversal compaction_options_universal; 29724: 29724: 29724: 29724: 29724: 29724: 29724: CompactionOptionsFIFO compaction_options_fifo; 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t max_sequential_skip_in_iterations = 8; 29724: 29724: 29724: 29724: 29724: std::shared_ptr memtable_factory = 29724: std::shared_ptr(new SkipListFactory); 29724: # 645 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: using TablePropertiesCollectorFactories = 29724: std::vector>; 29724: TablePropertiesCollectorFactories table_properties_collector_factories; 29724: # 661 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: size_t max_successive_merges = 0; 29724: # 671 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool strict_max_successive_merges = false; 29724: # 687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool optimize_filters_for_hits = false; 29724: # 696 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool paranoid_file_checks = false; 29724: # 706 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool force_consistency_checks = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool report_bg_io_stats = false; 29724: # 747 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t ttl = 0xfffffffffffffffe; 29724: # 795 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t periodic_compaction_seconds = 0xfffffffffffffffe; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t sample_for_compression = 0; 29724: # 810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: Temperature last_level_temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Temperature default_write_temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Temperature default_temperature = Temperature::kUnknown; 29724: # 843 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t preclude_last_level_data_seconds = 0; 29724: # 866 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t preserve_internal_time_seconds = 0; 29724: # 880 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool enable_blob_files = false; 29724: # 892 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t min_blob_size = 0; 29724: # 901 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint64_t blob_file_size = 1ULL << 28; 29724: # 910 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: CompressionType blob_compression_type = kNoCompression; 29724: # 922 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool enable_blob_garbage_collection = false; 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: double blob_garbage_collection_age_cutoff = 0.25; 29724: # 945 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: double blob_garbage_collection_force_threshold = 1.0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t blob_compaction_readahead_size = 0; 29724: # 967 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: int blob_file_starting_level = 0; 29724: # 977 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: std::shared_ptr blob_cache = nullptr; 29724: # 988 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: PrepopulateBlobCache prepopulate_blob_cache = PrepopulateBlobCache::kDisable; 29724: # 1004 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint32_t memtable_protection_bytes_per_key = 0; 29724: # 1054 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: bool persist_user_defined_timestamps = true; 29724: # 1069 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint8_t block_protection_bytes_per_key = 0; 29724: # 1081 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29724: uint32_t bottommost_file_compaction_delay = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool paranoid_memory_checks = false; 29724: 29724: 29724: AdvancedColumnFamilyOptions(); 29724: 29724: explicit AdvancedColumnFamilyOptions(const Options& options); 29724: 29724: 29724: }; 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 1 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstdarg" 1 3 29724: # 39 "/usr/include/c++/14/cstdarg" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdarg" 3 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29724: # 44 "/usr/include/c++/14/cstdarg" 2 3 29724: # 53 "/usr/include/c++/14/cstdarg" 3 29724: 29724: # 53 "/usr/include/c++/14/cstdarg" 3 29724: namespace std 29724: { 29724: using ::va_list; 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/functor_wrapper.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/functor_wrapper.h" 29724: namespace rocksdb { 29724: 29724: namespace detail { 29724: template 29724: struct IndexSequence {}; 29724: 29724: template 29724: struct IndexSequenceHelper 29724: : public IndexSequenceHelper {}; 29724: 29724: template 29724: struct IndexSequenceHelper<0U, Next...> { 29724: using type = IndexSequence; 29724: }; 29724: 29724: template 29724: using make_index_sequence = typename IndexSequenceHelper::type; 29724: 29724: template 29724: void call(Function f, Tuple t, IndexSequence) { 29724: f(std::get(t)...); 29724: } 29724: 29724: template 29724: void call(Function f, Tuple t) { 29724: static constexpr auto size = std::tuple_size::value; 29724: call(f, t, make_index_sequence{}); 29724: } 29724: } 29724: 29724: template 29724: class FunctorWrapper { 29724: public: 29724: explicit FunctorWrapper(std::function functor, Args &&...args) 29724: : functor_(std::move(functor)), args_(std::forward(args)...) {} 29724: 29724: void invoke() { detail::call(functor_, args_); } 29724: 29724: private: 29724: std::function functor_; 29724: std::tuple args_; 29724: }; 29724: } 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 1 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 29724: 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: template 29724: struct constexpr_max { 29724: static const int result = (A > B) ? A : B; 29724: }; 29724: 29724: 29724: 29724: 29724: struct ThreadStatus { 29724: 29724: enum ThreadType : int { 29724: HIGH_PRIORITY = 0, 29724: LOW_PRIORITY, 29724: USER, 29724: BOTTOM_PRIORITY, 29724: NUM_THREAD_TYPES 29724: }; 29724: 29724: 29724: 29724: 29724: enum OperationType : int { 29724: OP_UNKNOWN = 0, 29724: OP_COMPACTION, 29724: OP_FLUSH, 29724: OP_DBOPEN, 29724: OP_GET, 29724: OP_MULTIGET, 29724: OP_DBITERATOR, 29724: OP_VERIFY_DB_CHECKSUM, 29724: OP_VERIFY_FILE_CHECKSUMS, 29724: OP_GETENTITY, 29724: OP_MULTIGETENTITY, 29724: OP_READ_MANIFEST, 29724: NUM_OP_TYPES 29724: }; 29724: 29724: enum OperationStage : int { 29724: STAGE_UNKNOWN = 0, 29724: STAGE_FLUSH_RUN, 29724: STAGE_FLUSH_WRITE_L0, 29724: STAGE_COMPACTION_PREPARE, 29724: STAGE_COMPACTION_RUN, 29724: STAGE_COMPACTION_PROCESS_KV, 29724: STAGE_COMPACTION_INSTALL, 29724: STAGE_COMPACTION_SYNC_FILE, 29724: STAGE_PICK_MEMTABLES_TO_FLUSH, 29724: STAGE_MEMTABLE_ROLLBACK, 29724: STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 29724: NUM_OP_STAGES 29724: }; 29724: 29724: enum CompactionPropertyType : int { 29724: COMPACTION_JOB_ID = 0, 29724: COMPACTION_INPUT_OUTPUT_LEVEL, 29724: COMPACTION_PROP_FLAGS, 29724: COMPACTION_TOTAL_INPUT_BYTES, 29724: COMPACTION_BYTES_READ, 29724: COMPACTION_BYTES_WRITTEN, 29724: NUM_COMPACTION_PROPERTIES 29724: }; 29724: 29724: enum FlushPropertyType : int { 29724: FLUSH_JOB_ID = 0, 29724: FLUSH_BYTES_MEMTABLES, 29724: FLUSH_BYTES_WRITTEN, 29724: NUM_FLUSH_PROPERTIES 29724: }; 29724: 29724: 29724: 29724: static const int kNumOperationProperties = 29724: constexpr_max::result; 29724: 29724: 29724: 29724: 29724: enum StateType : int { 29724: STATE_UNKNOWN = 0, 29724: STATE_MUTEX_WAIT = 1, 29724: NUM_STATE_TYPES 29724: }; 29724: 29724: ThreadStatus(const uint64_t _id, const ThreadType _thread_type, 29724: const std::string& _db_name, const std::string& _cf_name, 29724: const OperationType _operation_type, 29724: const uint64_t _op_elapsed_micros, 29724: const OperationStage _operation_stage, 29724: const uint64_t _op_props[], const StateType _state_type) 29724: : thread_id(_id), 29724: thread_type(_thread_type), 29724: db_name(_db_name), 29724: cf_name(_cf_name), 29724: operation_type(_operation_type), 29724: op_elapsed_micros(_op_elapsed_micros), 29724: operation_stage(_operation_stage), 29724: state_type(_state_type) { 29724: for (int i = 0; i < kNumOperationProperties; ++i) { 29724: op_properties[i] = _op_props[i]; 29724: } 29724: } 29724: 29724: 29724: const uint64_t thread_id; 29724: 29724: 29724: 29724: const ThreadType thread_type; 29724: 29724: 29724: 29724: 29724: const std::string db_name; 29724: 29724: 29724: 29724: 29724: const std::string cf_name; 29724: 29724: 29724: const OperationType operation_type; 29724: 29724: 29724: const uint64_t op_elapsed_micros; 29724: 29724: 29724: 29724: const OperationStage operation_stage; 29724: 29724: 29724: 29724: 29724: uint64_t op_properties[kNumOperationProperties]; 29724: 29724: 29724: const StateType state_type; 29724: 29724: 29724: 29724: 29724: static std::string GetThreadTypeName(ThreadType thread_type); 29724: 29724: 29724: static const std::string& GetOperationName(OperationType op_type); 29724: 29724: static const std::string MicrosToString(uint64_t op_elapsed_time); 29724: 29724: 29724: static const std::string& GetOperationStageName(OperationStage stage); 29724: 29724: 29724: 29724: static const std::string& GetOperationPropertyName(OperationType op_type, 29724: int i); 29724: 29724: 29724: 29724: static std::map InterpretOperationProperties( 29724: OperationType op_type, const uint64_t* op_properties); 29724: 29724: 29724: static const std::string& GetStateName(StateType state_type); 29724: }; 29724: 29724: } 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29724: # 49 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: namespace rocksdb { 29724: 29724: class DynamicLibrary; 29724: class FileLock; 29724: class Logger; 29724: class RandomAccessFile; 29724: class SequentialFile; 29724: class Slice; 29724: struct DataVerificationInfo; 29724: class WritableFile; 29724: class RandomRWFile; 29724: class MemoryMappedFileBuffer; 29724: class Directory; 29724: struct DBOptions; 29724: struct ImmutableDBOptions; 29724: struct MutableDBOptions; 29724: class RateLimiter; 29724: class ThreadStatusUpdater; 29724: struct ThreadStatus; 29724: class FileSystem; 29724: class SystemClock; 29724: struct ConfigOptions; 29724: struct IOOptions; 29724: 29724: const size_t kDefaultPageSize = 4 * 1024; 29724: 29724: 29724: struct EnvOptions { 29724: 29724: EnvOptions(); 29724: 29724: 29724: explicit EnvOptions(const DBOptions& options); 29724: 29724: 29724: 29724: bool use_mmap_reads = false; 29724: 29724: 29724: bool use_mmap_writes = true; 29724: 29724: 29724: bool use_direct_reads = false; 29724: 29724: 29724: bool use_direct_writes = false; 29724: 29724: 29724: bool allow_fallocate = true; 29724: 29724: 29724: bool set_fd_cloexec = true; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t bytes_per_sync = 0; 29724: # 123 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: bool strict_bytes_per_sync = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool fallocate_with_keep_size = true; 29724: 29724: 29724: size_t compaction_readahead_size = 0; 29724: 29724: 29724: size_t random_access_max_buffer_size = 0; 29724: 29724: 29724: size_t writable_file_max_buffer_size = 1024 * 1024; 29724: 29724: 29724: RateLimiter* rate_limiter = nullptr; 29724: }; 29724: # 154 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: class Env : public Customizable { 29724: public: 29724: static const char* kDefaultName() { return "DefaultEnv"; } 29724: struct FileAttributes { 29724: 29724: std::string name; 29724: 29724: 29724: uint64_t size_bytes; 29724: 29724: 29724: Temperature temperature = Temperature::kUnknown; 29724: }; 29724: 29724: Env(); 29724: 29724: 29724: explicit Env(const std::shared_ptr& fs); 29724: Env(const std::shared_ptr& fs, 29724: const std::shared_ptr& clock); 29724: 29724: Env(const Env&) = delete; 29724: void operator=(const Env&) = delete; 29724: 29724: ~Env() override; 29724: 29724: static const char* Type() { return "Environment"; } 29724: 29724: 29724: 29724: const char* Name() const override { return ""; } 29724: # 199 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& value, Env** result); 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& value, Env** result, 29724: std::shared_ptr* guard); 29724: 29724: 29724: 29724: 29724: 29724: static Status CreateFromUri(const ConfigOptions& options, 29724: const std::string& env_uri, 29724: const std::string& fs_uri, Env** result, 29724: std::shared_ptr* guard); 29724: 29724: 29724: 29724: 29724: 29724: 29724: static Env* Default(); 29724: 29724: 29724: virtual Status RegisterDbPaths(const std::vector& ) { 29724: return Status::OK(); 29724: } 29724: 29724: virtual Status UnregisterDbPaths(const std::vector& ) { 29724: return Status::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status NewSequentialFile(const std::string& fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options) = 0; 29724: # 247 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status NewRandomAccessFile(const std::string& fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options) = 0; 29724: 29724: 29724: enum WriteLifeTimeHint { 29724: WLTH_NOT_SET = 0, 29724: WLTH_NONE, 29724: WLTH_SHORT, 29724: WLTH_MEDIUM, 29724: WLTH_LONG, 29724: WLTH_EXTREME, 29724: }; 29724: # 268 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status NewWritableFile(const std::string& fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options) = 0; 29724: # 280 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status ReopenWritableFile(const std::string& , 29724: std::unique_ptr* , 29724: const EnvOptions& ) { 29724: return Status::NotSupported("Env::ReopenWritableFile() not supported."); 29724: } 29724: 29724: 29724: virtual Status ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status NewRandomRWFile(const std::string& , 29724: std::unique_ptr* , 29724: const EnvOptions& ) { 29724: return Status::NotSupported("RandomRWFile is not implemented in this Env"); 29724: } 29724: 29724: 29724: 29724: 29724: virtual Status NewMemoryMappedFileBuffer( 29724: const std::string& , 29724: std::unique_ptr* ) { 29724: return Status::NotSupported( 29724: "MemoryMappedFileBuffer is not implemented in this Env"); 29724: } 29724: # 320 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status NewDirectory(const std::string& name, 29724: std::unique_ptr* result) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status FileExists(const std::string& fname) = 0; 29724: # 338 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status GetChildren(const std::string& dir, 29724: std::vector* result) = 0; 29724: # 352 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status GetChildrenFileAttributes(const std::string& dir, 29724: std::vector* result); 29724: 29724: 29724: virtual Status DeleteFile(const std::string& fname) = 0; 29724: 29724: 29724: virtual Status Truncate(const std::string& , size_t ) { 29724: return Status::NotSupported("Truncate is not supported for this Env"); 29724: } 29724: 29724: 29724: virtual Status CreateDir(const std::string& dirname) = 0; 29724: 29724: 29724: 29724: virtual Status CreateDirIfMissing(const std::string& dirname) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status DeleteDir(const std::string& dirname) = 0; 29724: 29724: 29724: virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0; 29724: 29724: 29724: virtual Status GetFileModificationTime(const std::string& fname, 29724: uint64_t* file_mtime) = 0; 29724: 29724: virtual Status RenameFile(const std::string& src, 29724: const std::string& target) = 0; 29724: 29724: 29724: virtual Status LinkFile(const std::string& , 29724: const std::string& ) { 29724: return Status::NotSupported("LinkFile is not supported for this Env"); 29724: } 29724: 29724: virtual Status NumFileLinks(const std::string& , 29724: uint64_t* ) { 29724: return Status::NotSupported( 29724: "Getting number of file links is not supported for this Env"); 29724: } 29724: 29724: virtual Status AreFilesSame(const std::string& , 29724: const std::string& , bool* ) { 29724: return Status::NotSupported("AreFilesSame is not supported for this Env"); 29724: } 29724: # 416 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status LockFile(const std::string& fname, FileLock** lock) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status UnlockFile(FileLock* lock) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status LoadLibrary(const std::string& , 29724: const std::string& , 29724: std::shared_ptr* ) { 29724: return Status::NotSupported("LoadLibrary is not implemented in this Env"); 29724: } 29724: 29724: 29724: enum Priority { BOTTOM, LOW, HIGH, USER, TOTAL }; 29724: 29724: static std::string PriorityToString(Priority priority); 29724: 29724: 29724: enum IOPriority { 29724: IO_LOW = 0, 29724: IO_MID = 1, 29724: IO_HIGH = 2, 29724: IO_USER = 3, 29724: IO_TOTAL = 4 29724: }; 29724: 29724: 29724: enum class IOActivity : uint8_t { 29724: kFlush = 0, 29724: kCompaction = 1, 29724: kDBOpen = 2, 29724: kGet = 3, 29724: kMultiGet = 4, 29724: kDBIterator = 5, 29724: kVerifyDBChecksum = 6, 29724: kVerifyFileChecksums = 7, 29724: kGetEntity = 8, 29724: kMultiGetEntity = 9, 29724: kReadManifest = 10, 29724: kUnknown, 29724: }; 29724: # 475 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual void Schedule(void (*function)(void* arg), void* arg, 29724: Priority pri = LOW, void* tag = nullptr, 29724: void (*unschedFunction)(void* arg) = nullptr) = 0; 29724: 29724: 29724: 29724: virtual int UnSchedule(void* , Priority ) { return 0; } 29724: 29724: 29724: 29724: virtual void StartThread(void (*function)(void* arg), void* arg) = 0; 29724: 29724: 29724: 29724: template 29724: void StartThreadTyped(FunctionT function, Args&&... args) { 29724: using FWType = FunctorWrapper; 29724: StartThread( 29724: [](void* arg) { 29724: auto* functor = static_cast(arg); 29724: functor->invoke(); 29724: delete functor; 29724: }, 29724: new FWType(std::function(function), 29724: std::forward(args)...)); 29724: } 29724: 29724: 29724: virtual void WaitForJoin() {} 29724: 29724: 29724: virtual int ReserveThreads(int , Priority ) { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: virtual int ReleaseThreads(int , Priority ) { 29724: return 0; 29724: } 29724: 29724: 29724: virtual unsigned int GetThreadPoolQueueLen(Priority = LOW) const { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetTestDirectory(std::string* path) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status NewLogger(const std::string& fname, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: 29724: virtual uint64_t NowMicros() = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 29724: 29724: 29724: virtual uint64_t NowCPUNanos() { return 0; } 29724: 29724: 29724: virtual void SleepForMicroseconds(int micros) = 0; 29724: 29724: 29724: 29724: virtual Status GetHostName(char* name, uint64_t len) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status GetHostNameString(std::string* result); 29724: 29724: 29724: 29724: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 29724: 29724: 29724: virtual Status GetAbsolutePath(const std::string& db_path, 29724: std::string* output_path) = 0; 29724: 29724: 29724: 29724: 29724: virtual void SetBackgroundThreads(int number, Priority pri = LOW) = 0; 29724: virtual int GetBackgroundThreads(Priority pri = LOW) = 0; 29724: 29724: virtual Status SetAllowNonOwnerAccess(bool ) { 29724: return Status::NotSupported("Env::SetAllowNonOwnerAccess() not supported."); 29724: } 29724: 29724: 29724: 29724: 29724: virtual void IncBackgroundThreadsIfNeeded(int number, Priority pri) = 0; 29724: 29724: 29724: virtual void LowerThreadPoolIOPriority(Priority = LOW) {} 29724: 29724: 29724: virtual Status LowerThreadPoolCPUPriority(Priority , 29724: CpuPriority ) { 29724: return Status::NotSupported( 29724: "Env::LowerThreadPoolCPUPriority(Priority, CpuPriority) not supported"); 29724: } 29724: 29724: 29724: virtual void LowerThreadPoolCPUPriority(Priority = LOW) {} 29724: 29724: 29724: virtual std::string TimeToString(uint64_t time) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual std::string GenerateUniqueId(); 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const; 29724: 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForManifestRead( 29724: const EnvOptions& env_options) const; 29724: 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 29724: const DBOptions& db_options) const; 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForManifestWrite( 29724: const EnvOptions& env_options) const; 29724: 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForCompactionTableWrite( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& immutable_ops) const; 29724: 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForCompactionTableRead( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& db_options) const; 29724: 29724: 29724: 29724: 29724: virtual EnvOptions OptimizeForBlobFileRead( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& db_options) const; 29724: 29724: 29724: virtual Status GetThreadList(std::vector* ) { 29724: return Status::NotSupported("Env::GetThreadList() not supported."); 29724: } 29724: 29724: 29724: 29724: 29724: virtual ThreadStatusUpdater* GetThreadStatusUpdater() const { 29724: return thread_status_updater_; 29724: } 29724: 29724: 29724: virtual uint64_t GetThreadID() const; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetFreeSpace(const std::string& , 29724: uint64_t* ) { 29724: return Status::NotSupported("Env::GetFreeSpace() not supported."); 29724: } 29724: 29724: 29724: virtual Status IsDirectory(const std::string& , bool* ) { 29724: return Status::NotSupported("Env::IsDirectory() not supported."); 29724: } 29724: 29724: virtual void SanitizeEnvOptions(EnvOptions* ) const {} 29724: 29724: 29724: 29724: const std::shared_ptr& GetFileSystem() const; 29724: 29724: 29724: 29724: const std::shared_ptr& GetSystemClock() const; 29724: 29724: 29724: 29724: protected: 29724: 29724: 29724: ThreadStatusUpdater* thread_status_updater_; 29724: 29724: 29724: std::shared_ptr file_system_; 29724: 29724: 29724: std::shared_ptr system_clock_; 29724: 29724: private: 29724: static const size_t kMaxHostNameLen = 256; 29724: }; 29724: 29724: 29724: 29724: 29724: ThreadStatusUpdater* CreateThreadStatusUpdater(); 29724: 29724: 29724: class SequentialFile { 29724: public: 29724: SequentialFile() {} 29724: virtual ~SequentialFile(); 29724: # 726 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status Read(size_t n, Slice* result, char* scratch) = 0; 29724: # 735 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status Skip(uint64_t n) = 0; 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: 29724: virtual Status InvalidateCache(size_t , size_t ) { 29724: return Status::NotSupported( 29724: "SequentialFile::InvalidateCache not supported."); 29724: } 29724: 29724: 29724: 29724: virtual Status PositionedRead(uint64_t , size_t , 29724: Slice* , char* ) { 29724: return Status::NotSupported( 29724: "SequentialFile::PositionedRead() not supported."); 29724: } 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: struct ReadRequest { 29724: 29724: uint64_t offset; 29724: 29724: 29724: 29724: size_t len; 29724: 29724: 29724: 29724: char* scratch; 29724: 29724: 29724: 29724: Slice result; 29724: 29724: 29724: Status status; 29724: }; 29724: 29724: 29724: class RandomAccessFile { 29724: public: 29724: RandomAccessFile() {} 29724: virtual ~RandomAccessFile(); 29724: # 806 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status Read(uint64_t offset, size_t n, Slice* result, 29724: char* scratch) const = 0; 29724: 29724: 29724: virtual Status Prefetch(uint64_t , size_t ) { 29724: return Status::OK(); 29724: } 29724: # 821 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status MultiRead(ReadRequest* reqs, size_t num_reqs) { 29724: 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: (static_cast ( 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: reqs != nullptr 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: "reqs != nullptr" 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: ; 29724: for (size_t i = 0; i < num_reqs; ++i) { 29724: ReadRequest& req = reqs[i]; 29724: req.status = Read(req.offset, req.len, &req.result, req.scratch); 29724: } 29724: return Status::OK(); 29724: } 29724: # 845 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: 29724: } 29724: 29724: enum AccessPattern { NORMAL, RANDOM, SEQUENTIAL, WILLNEED, DONTNEED }; 29724: 29724: virtual void Hint(AccessPattern ) {} 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: 29724: virtual Status InvalidateCache(size_t , size_t ) { 29724: return Status::NotSupported( 29724: "RandomAccessFile::InvalidateCache not supported."); 29724: } 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: class WritableFile { 29724: public: 29724: WritableFile() 29724: : last_preallocated_block_(0), 29724: preallocation_block_size_(0), 29724: io_priority_(Env::IO_TOTAL), 29724: write_hint_(Env::WLTH_NOT_SET), 29724: strict_bytes_per_sync_(false) {} 29724: 29724: explicit WritableFile(const EnvOptions& options) 29724: : last_preallocated_block_(0), 29724: preallocation_block_size_(0), 29724: io_priority_(Env::IO_TOTAL), 29724: write_hint_(Env::WLTH_NOT_SET), 29724: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 29724: 29724: WritableFile(const WritableFile&) = delete; 29724: void operator=(const WritableFile&) = delete; 29724: 29724: 29724: 29724: 29724: virtual ~WritableFile(); 29724: 29724: 29724: 29724: 29724: virtual Status Append(const Slice& data) = 0; 29724: # 913 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status Append(const Slice& data, 29724: const DataVerificationInfo& ) { 29724: return Append(data); 29724: } 29724: # 938 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status PositionedAppend(const Slice& , 29724: uint64_t ) { 29724: return Status::NotSupported( 29724: "WritableFile::PositionedAppend() not supported."); 29724: } 29724: # 951 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status PositionedAppend( 29724: const Slice& , uint64_t , 29724: const DataVerificationInfo& ) { 29724: return Status::NotSupported("PositionedAppend"); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Truncate(uint64_t ) { return Status::OK(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Close() = 0; 29724: virtual Status Flush() = 0; 29724: virtual Status Sync() = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Fsync() { return Sync(); } 29724: 29724: 29724: 29724: virtual bool IsSyncThreadSafe() const { return false; } 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: # 1003 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 29724: 29724: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 29724: 29724: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 29724: write_hint_ = hint; 29724: } 29724: 29724: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 29724: 29724: 29724: 29724: virtual uint64_t GetFileSize() = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void SetPreallocationBlockSize(size_t size) { 29724: preallocation_block_size_ = size; 29724: } 29724: 29724: virtual void GetPreallocationStatus(size_t* block_size, 29724: size_t* last_allocated_block) { 29724: *last_allocated_block = last_preallocated_block_; 29724: *block_size = preallocation_block_size_; 29724: } 29724: 29724: 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status InvalidateCache(size_t , size_t ) { 29724: return Status::NotSupported("WritableFile::InvalidateCache not supported."); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status RangeSync(uint64_t , uint64_t ) { 29724: if (strict_bytes_per_sync_) { 29724: return Sync(); 29724: } 29724: return Status::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void PrepareWrite(size_t offset, size_t len) { 29724: if (preallocation_block_size_ == 0) { 29724: return; 29724: } 29724: 29724: 29724: 29724: const auto block_size = preallocation_block_size_; 29724: size_t new_last_preallocated_block = 29724: (offset + len + block_size - 1) / block_size; 29724: if (new_last_preallocated_block > last_preallocated_block_) { 29724: size_t num_spanned_blocks = 29724: new_last_preallocated_block - last_preallocated_block_; 29724: 29724: Allocate(block_size * last_preallocated_block_, 29724: block_size * num_spanned_blocks) 29724: .PermitUncheckedError(); 29724: last_preallocated_block_ = new_last_preallocated_block; 29724: } 29724: } 29724: 29724: 29724: virtual Status Allocate(uint64_t , uint64_t ) { 29724: return Status::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: protected: 29724: size_t preallocation_block_size() { return preallocation_block_size_; } 29724: 29724: private: 29724: size_t last_preallocated_block_; 29724: size_t preallocation_block_size_; 29724: 29724: protected: 29724: Env::IOPriority io_priority_; 29724: Env::WriteLifeTimeHint write_hint_; 29724: const bool strict_bytes_per_sync_; 29724: }; 29724: 29724: 29724: class RandomRWFile { 29724: public: 29724: RandomRWFile() {} 29724: 29724: RandomRWFile(const RandomRWFile&) = delete; 29724: RandomRWFile& operator=(const RandomRWFile&) = delete; 29724: 29724: 29724: 29724: 29724: virtual ~RandomRWFile() {} 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: virtual Status Write(uint64_t offset, const Slice& data) = 0; 29724: # 1139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: virtual Status Read(uint64_t offset, size_t n, Slice* result, 29724: char* scratch) const = 0; 29724: 29724: virtual Status Flush() = 0; 29724: 29724: virtual Status Sync() = 0; 29724: 29724: virtual Status Fsync() { return Sync(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Close() = 0; 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: class MemoryMappedFileBuffer { 29724: public: 29724: MemoryMappedFileBuffer(void* _base, size_t _length) 29724: : base_(_base), length_(_length) {} 29724: 29724: virtual ~MemoryMappedFileBuffer() = 0; 29724: 29724: 29724: 29724: MemoryMappedFileBuffer(const MemoryMappedFileBuffer&) = delete; 29724: MemoryMappedFileBuffer& operator=(const MemoryMappedFileBuffer&) = delete; 29724: 29724: void* GetBase() const { return base_; } 29724: size_t GetLen() const { return length_; } 29724: 29724: protected: 29724: void* base_; 29724: const size_t length_; 29724: }; 29724: 29724: 29724: 29724: class Directory { 29724: public: 29724: 29724: 29724: virtual ~Directory() {} 29724: 29724: virtual Status Fsync() = 0; 29724: 29724: 29724: 29724: virtual Status Close() { return Status::NotSupported("Close"); } 29724: 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: }; 29724: 29724: enum InfoLogLevel : unsigned char { 29724: DEBUG_LEVEL = 0, 29724: INFO_LEVEL, 29724: WARN_LEVEL, 29724: ERROR_LEVEL, 29724: FATAL_LEVEL, 29724: HEADER_LEVEL, 29724: NUM_INFO_LOG_LEVELS, 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class Logger { 29724: public: 29724: static constexpr size_t kDoNotSupportGetLogFileSize = 29724: # 1220 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: (4294967295U) 29724: # 1220 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: ; 29724: 29724: 29724: 29724: static const InfoLogLevel kDefaultLogLevel; 29724: 29724: explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL) 29724: : closed_(false), log_level_(log_level) {} 29724: 29724: Logger(const Logger&) = delete; 29724: void operator=(const Logger&) = delete; 29724: 29724: virtual ~Logger(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Close(); 29724: 29724: 29724: 29724: 29724: virtual void LogHeader(const char* format, va_list ap) { 29724: 29724: 29724: Logv(InfoLogLevel::INFO_LEVEL, format, ap); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void Logv(const char* , va_list ) { 29724: 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: (static_cast ( 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: false 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: "false" 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: ; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual void Logv(const InfoLogLevel log_level, const char* format, 29724: va_list ap); 29724: 29724: virtual size_t GetLogFileSize() const { return kDoNotSupportGetLogFileSize; } 29724: 29724: virtual void Flush() {} 29724: virtual InfoLogLevel GetInfoLogLevel() const { return log_level_; } 29724: virtual void SetInfoLogLevel(const InfoLogLevel log_level) { 29724: log_level_ = log_level; 29724: } 29724: 29724: 29724: 29724: protected: 29724: virtual Status CloseImpl(); 29724: bool closed_; 29724: 29724: private: 29724: InfoLogLevel log_level_; 29724: }; 29724: 29724: 29724: 29724: 29724: class FileLock { 29724: public: 29724: FileLock() {} 29724: virtual ~FileLock(); 29724: 29724: private: 29724: 29724: FileLock(const FileLock&) = delete; 29724: void operator=(const FileLock&) = delete; 29724: }; 29724: 29724: class DynamicLibrary { 29724: public: 29724: virtual ~DynamicLibrary() {} 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: 29724: template 29724: Status LoadFunction(const std::string& sym_name, std::function* function) { 29724: 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: (static_cast ( 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: nullptr != function 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: "nullptr != function" 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: ; 29724: void* ptr = nullptr; 29724: Status s = LoadSymbol(sym_name, &ptr); 29724: *function = reinterpret_cast(ptr); 29724: return s; 29724: } 29724: 29724: virtual Status LoadSymbol(const std::string& sym_name, void** func) = 0; 29724: }; 29724: 29724: void LogFlush(const std::shared_ptr& info_log); 29724: 29724: void Log(const InfoLogLevel log_level, const std::shared_ptr& info_log, 29724: const char* format, ...) __attribute__((__format__(__printf__, 3, 4))); 29724: 29724: 29724: void Header(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Debug(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Info(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Warn(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Error(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Fatal(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: 29724: 29724: 29724: void Log(const std::shared_ptr& info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: 29724: void LogFlush(Logger* info_log); 29724: 29724: void Log(const InfoLogLevel log_level, Logger* info_log, const char* format, 29724: ...) __attribute__((__format__(__printf__, 3, 4))); 29724: 29724: 29724: void Log(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: 29724: 29724: void Header(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Debug(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Info(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Warn(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Error(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: void Fatal(Logger* info_log, const char* format, ...) 29724: __attribute__((__format__(__printf__, 2, 3))); 29724: 29724: 29724: Status WriteStringToFile(Env* env, const Slice& data, const std::string& fname, 29724: bool should_sync = false, 29724: const IOOptions* io_options = nullptr); 29724: 29724: 29724: Status ReadFileToString(Env* env, const std::string& fname, std::string* data); 29724: # 1402 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29724: class EnvWrapper : public Env { 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: struct Target { 29724: Env* env; 29724: std::shared_ptr guard; 29724: 29724: 29724: explicit Target(Env* t) : env(t) {} 29724: 29724: 29724: explicit Target(std::unique_ptr&& t) : guard(t.release()) { 29724: env = guard.get(); 29724: } 29724: 29724: 29724: explicit Target(const std::shared_ptr& t) : guard(t) { 29724: env = guard.get(); 29724: } 29724: 29724: 29724: void Prepare() { 29724: if (guard.get() != nullptr) { 29724: env = guard.get(); 29724: } else if (env == nullptr) { 29724: env = Env::Default(); 29724: } 29724: } 29724: }; 29724: 29724: 29724: explicit EnvWrapper(Env* t); 29724: explicit EnvWrapper(std::unique_ptr&& t); 29724: explicit EnvWrapper(const std::shared_ptr& t); 29724: ~EnvWrapper() override; 29724: 29724: 29724: Env* target() const { return target_.env; } 29724: 29724: 29724: 29724: const char* Name() const override { return target_.env->Name(); } 29724: 29724: 29724: Status RegisterDbPaths(const std::vector& paths) override { 29724: return target_.env->RegisterDbPaths(paths); 29724: } 29724: 29724: Status UnregisterDbPaths(const std::vector& paths) override { 29724: return target_.env->UnregisterDbPaths(paths); 29724: } 29724: 29724: Status NewSequentialFile(const std::string& f, 29724: std::unique_ptr* r, 29724: const EnvOptions& options) override { 29724: return target_.env->NewSequentialFile(f, r, options); 29724: } 29724: Status NewRandomAccessFile(const std::string& f, 29724: std::unique_ptr* r, 29724: const EnvOptions& options) override { 29724: return target_.env->NewRandomAccessFile(f, r, options); 29724: } 29724: Status NewWritableFile(const std::string& f, std::unique_ptr* r, 29724: const EnvOptions& options) override { 29724: return target_.env->NewWritableFile(f, r, options); 29724: } 29724: Status ReopenWritableFile(const std::string& fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options) override { 29724: return target_.env->ReopenWritableFile(fname, result, options); 29724: } 29724: Status ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: std::unique_ptr* r, 29724: const EnvOptions& options) override { 29724: return target_.env->ReuseWritableFile(fname, old_fname, r, options); 29724: } 29724: Status NewRandomRWFile(const std::string& fname, 29724: std::unique_ptr* result, 29724: const EnvOptions& options) override { 29724: return target_.env->NewRandomRWFile(fname, result, options); 29724: } 29724: Status NewMemoryMappedFileBuffer( 29724: const std::string& fname, 29724: std::unique_ptr* result) override { 29724: return target_.env->NewMemoryMappedFileBuffer(fname, result); 29724: } 29724: Status NewDirectory(const std::string& name, 29724: std::unique_ptr* result) override { 29724: return target_.env->NewDirectory(name, result); 29724: } 29724: Status FileExists(const std::string& f) override { 29724: return target_.env->FileExists(f); 29724: } 29724: Status GetChildren(const std::string& dir, 29724: std::vector* r) override { 29724: return target_.env->GetChildren(dir, r); 29724: } 29724: Status GetChildrenFileAttributes( 29724: const std::string& dir, std::vector* result) override { 29724: return target_.env->GetChildrenFileAttributes(dir, result); 29724: } 29724: Status DeleteFile(const std::string& f) override { 29724: return target_.env->DeleteFile(f); 29724: } 29724: Status Truncate(const std::string& fname, size_t size) override { 29724: return target_.env->Truncate(fname, size); 29724: } 29724: Status CreateDir(const std::string& d) override { 29724: return target_.env->CreateDir(d); 29724: } 29724: Status CreateDirIfMissing(const std::string& d) override { 29724: return target_.env->CreateDirIfMissing(d); 29724: } 29724: Status DeleteDir(const std::string& d) override { 29724: return target_.env->DeleteDir(d); 29724: } 29724: Status GetFileSize(const std::string& f, uint64_t* s) override { 29724: return target_.env->GetFileSize(f, s); 29724: } 29724: 29724: Status GetFileModificationTime(const std::string& fname, 29724: uint64_t* file_mtime) override { 29724: return target_.env->GetFileModificationTime(fname, file_mtime); 29724: } 29724: 29724: Status RenameFile(const std::string& s, const std::string& t) override { 29724: return target_.env->RenameFile(s, t); 29724: } 29724: 29724: Status LinkFile(const std::string& s, const std::string& t) override { 29724: return target_.env->LinkFile(s, t); 29724: } 29724: 29724: Status NumFileLinks(const std::string& fname, uint64_t* count) override { 29724: return target_.env->NumFileLinks(fname, count); 29724: } 29724: 29724: Status AreFilesSame(const std::string& first, const std::string& second, 29724: bool* res) override { 29724: return target_.env->AreFilesSame(first, second, res); 29724: } 29724: 29724: Status LockFile(const std::string& f, FileLock** l) override { 29724: return target_.env->LockFile(f, l); 29724: } 29724: 29724: Status UnlockFile(FileLock* l) override { return target_.env->UnlockFile(l); } 29724: 29724: Status IsDirectory(const std::string& path, bool* is_dir) override { 29724: return target_.env->IsDirectory(path, is_dir); 29724: } 29724: 29724: Status LoadLibrary(const std::string& lib_name, 29724: const std::string& search_path, 29724: std::shared_ptr* result) override { 29724: return target_.env->LoadLibrary(lib_name, search_path, result); 29724: } 29724: 29724: void Schedule(void (*f)(void* arg), void* a, Priority pri, 29724: void* tag = nullptr, void (*u)(void* arg) = nullptr) override { 29724: return target_.env->Schedule(f, a, pri, tag, u); 29724: } 29724: 29724: int UnSchedule(void* tag, Priority pri) override { 29724: return target_.env->UnSchedule(tag, pri); 29724: } 29724: 29724: void StartThread(void (*f)(void*), void* a) override { 29724: return target_.env->StartThread(f, a); 29724: } 29724: void WaitForJoin() override { return target_.env->WaitForJoin(); } 29724: unsigned int GetThreadPoolQueueLen(Priority pri = LOW) const override { 29724: return target_.env->GetThreadPoolQueueLen(pri); 29724: } 29724: 29724: int ReserveThreads(int threads_to_be_reserved, Priority pri) override { 29724: return target_.env->ReserveThreads(threads_to_be_reserved, pri); 29724: } 29724: 29724: int ReleaseThreads(int threads_to_be_released, Priority pri) override { 29724: return target_.env->ReleaseThreads(threads_to_be_released, pri); 29724: } 29724: 29724: Status GetTestDirectory(std::string* path) override { 29724: return target_.env->GetTestDirectory(path); 29724: } 29724: Status NewLogger(const std::string& fname, 29724: std::shared_ptr* result) override { 29724: return target_.env->NewLogger(fname, result); 29724: } 29724: uint64_t NowMicros() override { return target_.env->NowMicros(); } 29724: uint64_t NowNanos() override { return target_.env->NowNanos(); } 29724: uint64_t NowCPUNanos() override { return target_.env->NowCPUNanos(); } 29724: 29724: void SleepForMicroseconds(int micros) override { 29724: target_.env->SleepForMicroseconds(micros); 29724: } 29724: Status GetHostName(char* name, uint64_t len) override { 29724: return target_.env->GetHostName(name, len); 29724: } 29724: Status GetCurrentTime(int64_t* unix_time) override { 29724: return target_.env->GetCurrentTime(unix_time); 29724: } 29724: Status GetAbsolutePath(const std::string& db_path, 29724: std::string* output_path) override { 29724: return target_.env->GetAbsolutePath(db_path, output_path); 29724: } 29724: void SetBackgroundThreads(int num, Priority pri) override { 29724: return target_.env->SetBackgroundThreads(num, pri); 29724: } 29724: int GetBackgroundThreads(Priority pri) override { 29724: return target_.env->GetBackgroundThreads(pri); 29724: } 29724: 29724: Status SetAllowNonOwnerAccess(bool allow_non_owner_access) override { 29724: return target_.env->SetAllowNonOwnerAccess(allow_non_owner_access); 29724: } 29724: 29724: void IncBackgroundThreadsIfNeeded(int num, Priority pri) override { 29724: return target_.env->IncBackgroundThreadsIfNeeded(num, pri); 29724: } 29724: 29724: void LowerThreadPoolIOPriority(Priority pool) override { 29724: target_.env->LowerThreadPoolIOPriority(pool); 29724: } 29724: 29724: void LowerThreadPoolCPUPriority(Priority pool) override { 29724: target_.env->LowerThreadPoolCPUPriority(pool); 29724: } 29724: 29724: Status LowerThreadPoolCPUPriority(Priority pool, CpuPriority pri) override { 29724: return target_.env->LowerThreadPoolCPUPriority(pool, pri); 29724: } 29724: 29724: std::string TimeToString(uint64_t time) override { 29724: return target_.env->TimeToString(time); 29724: } 29724: 29724: Status GetThreadList(std::vector* thread_list) override { 29724: return target_.env->GetThreadList(thread_list); 29724: } 29724: 29724: ThreadStatusUpdater* GetThreadStatusUpdater() const override { 29724: return target_.env->GetThreadStatusUpdater(); 29724: } 29724: 29724: uint64_t GetThreadID() const override { return target_.env->GetThreadID(); } 29724: 29724: std::string GenerateUniqueId() override { 29724: return target_.env->GenerateUniqueId(); 29724: } 29724: 29724: EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const override { 29724: return target_.env->OptimizeForLogRead(env_options); 29724: } 29724: EnvOptions OptimizeForManifestRead( 29724: const EnvOptions& env_options) const override { 29724: return target_.env->OptimizeForManifestRead(env_options); 29724: } 29724: EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 29724: const DBOptions& db_options) const override { 29724: return target_.env->OptimizeForLogWrite(env_options, db_options); 29724: } 29724: EnvOptions OptimizeForManifestWrite( 29724: const EnvOptions& env_options) const override { 29724: return target_.env->OptimizeForManifestWrite(env_options); 29724: } 29724: EnvOptions OptimizeForCompactionTableWrite( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& immutable_ops) const override { 29724: return target_.env->OptimizeForCompactionTableWrite(env_options, 29724: immutable_ops); 29724: } 29724: EnvOptions OptimizeForCompactionTableRead( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& db_options) const override { 29724: return target_.env->OptimizeForCompactionTableRead(env_options, db_options); 29724: } 29724: EnvOptions OptimizeForBlobFileRead( 29724: const EnvOptions& env_options, 29724: const ImmutableDBOptions& db_options) const override { 29724: return target_.env->OptimizeForBlobFileRead(env_options, db_options); 29724: } 29724: Status GetFreeSpace(const std::string& path, uint64_t* diskfree) override { 29724: return target_.env->GetFreeSpace(path, diskfree); 29724: } 29724: void SanitizeEnvOptions(EnvOptions* env_opts) const override { 29724: target_.env->SanitizeEnvOptions(env_opts); 29724: } 29724: Status PrepareOptions(const ConfigOptions& options) override; 29724: std::string SerializeOptions(const ConfigOptions& config_options, 29724: const std::string& header) const override; 29724: 29724: private: 29724: Target target_; 29724: }; 29724: 29724: class SequentialFileWrapper : public SequentialFile { 29724: public: 29724: explicit SequentialFileWrapper(SequentialFile* target) : target_(target) {} 29724: 29724: Status Read(size_t n, Slice* result, char* scratch) override { 29724: return target_->Read(n, result, scratch); 29724: } 29724: Status Skip(uint64_t n) override { return target_->Skip(n); } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: Status InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: Status PositionedRead(uint64_t offset, size_t n, Slice* result, 29724: char* scratch) override { 29724: return target_->PositionedRead(offset, n, result, scratch); 29724: } 29724: 29724: private: 29724: SequentialFile* target_; 29724: }; 29724: 29724: class RandomAccessFileWrapper : public RandomAccessFile { 29724: public: 29724: explicit RandomAccessFileWrapper(RandomAccessFile* target) 29724: : target_(target) {} 29724: 29724: Status Read(uint64_t offset, size_t n, Slice* result, 29724: char* scratch) const override { 29724: return target_->Read(offset, n, result, scratch); 29724: } 29724: Status MultiRead(ReadRequest* reqs, size_t num_reqs) override { 29724: return target_->MultiRead(reqs, num_reqs); 29724: } 29724: Status Prefetch(uint64_t offset, size_t n) override { 29724: return target_->Prefetch(offset, n); 29724: } 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: Status InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: 29724: private: 29724: RandomAccessFile* target_; 29724: }; 29724: 29724: class WritableFileWrapper : public WritableFile { 29724: public: 29724: explicit WritableFileWrapper(WritableFile* t) : target_(t) {} 29724: 29724: Status Append(const Slice& data) override { return target_->Append(data); } 29724: Status Append(const Slice& data, 29724: const DataVerificationInfo& verification_info) override { 29724: return target_->Append(data, verification_info); 29724: } 29724: Status PositionedAppend(const Slice& data, uint64_t offset) override { 29724: return target_->PositionedAppend(data, offset); 29724: } 29724: Status PositionedAppend( 29724: const Slice& data, uint64_t offset, 29724: const DataVerificationInfo& verification_info) override { 29724: return target_->PositionedAppend(data, offset, verification_info); 29724: } 29724: Status Truncate(uint64_t size) override { return target_->Truncate(size); } 29724: Status Close() override { return target_->Close(); } 29724: Status Flush() override { return target_->Flush(); } 29724: Status Sync() override { return target_->Sync(); } 29724: Status Fsync() override { return target_->Fsync(); } 29724: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 29724: 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: 29724: void SetIOPriority(Env::IOPriority pri) override { 29724: target_->SetIOPriority(pri); 29724: } 29724: 29724: Env::IOPriority GetIOPriority() override { return target_->GetIOPriority(); } 29724: 29724: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 29724: target_->SetWriteLifeTimeHint(hint); 29724: } 29724: 29724: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 29724: return target_->GetWriteLifeTimeHint(); 29724: } 29724: 29724: uint64_t GetFileSize() override { return target_->GetFileSize(); } 29724: 29724: void SetPreallocationBlockSize(size_t size) override { 29724: target_->SetPreallocationBlockSize(size); 29724: } 29724: 29724: void GetPreallocationStatus(size_t* block_size, 29724: size_t* last_allocated_block) override { 29724: target_->GetPreallocationStatus(block_size, last_allocated_block); 29724: } 29724: 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: 29724: Status InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: 29724: Status RangeSync(uint64_t offset, uint64_t nbytes) override { 29724: return target_->RangeSync(offset, nbytes); 29724: } 29724: 29724: void PrepareWrite(size_t offset, size_t len) override { 29724: target_->PrepareWrite(offset, len); 29724: } 29724: 29724: Status Allocate(uint64_t offset, uint64_t len) override { 29724: return target_->Allocate(offset, len); 29724: } 29724: 29724: private: 29724: WritableFile* target_; 29724: }; 29724: 29724: class RandomRWFileWrapper : public RandomRWFile { 29724: public: 29724: explicit RandomRWFileWrapper(RandomRWFile* target) : target_(target) {} 29724: 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: Status Write(uint64_t offset, const Slice& data) override { 29724: return target_->Write(offset, data); 29724: } 29724: Status Read(uint64_t offset, size_t n, Slice* result, 29724: char* scratch) const override { 29724: return target_->Read(offset, n, result, scratch); 29724: } 29724: Status Flush() override { return target_->Flush(); } 29724: Status Sync() override { return target_->Sync(); } 29724: Status Fsync() override { return target_->Fsync(); } 29724: Status Close() override { return target_->Close(); } 29724: 29724: private: 29724: RandomRWFile* target_; 29724: }; 29724: 29724: class DirectoryWrapper : public Directory { 29724: public: 29724: explicit DirectoryWrapper(Directory* target) : target_(target) {} 29724: 29724: Status Fsync() override { return target_->Fsync(); } 29724: Status Close() override { return target_->Close(); } 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: 29724: private: 29724: Directory* target_; 29724: }; 29724: 29724: class LoggerWrapper : public Logger { 29724: public: 29724: explicit LoggerWrapper(Logger* target) : target_(target) {} 29724: 29724: Status Close() override { return target_->Close(); } 29724: void LogHeader(const char* format, va_list ap) override { 29724: return target_->LogHeader(format, ap); 29724: } 29724: void Logv(const char* format, va_list ap) override { 29724: return target_->Logv(format, ap); 29724: } 29724: void Logv(const InfoLogLevel log_level, const char* format, 29724: va_list ap) override { 29724: return target_->Logv(log_level, format, ap); 29724: } 29724: size_t GetLogFileSize() const override { return target_->GetLogFileSize(); } 29724: void Flush() override { return target_->Flush(); } 29724: InfoLogLevel GetInfoLogLevel() const override { 29724: return target_->GetInfoLogLevel(); 29724: } 29724: void SetInfoLogLevel(const InfoLogLevel log_level) override { 29724: return target_->SetInfoLogLevel(log_level); 29724: } 29724: 29724: private: 29724: Logger* target_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: Env* NewMemEnv(Env* base_env); 29724: 29724: 29724: 29724: 29724: Env* NewTimedEnv(Env* base_env); 29724: 29724: 29724: 29724: 29724: Status NewEnvLogger(const std::string& fname, Env* env, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: std::unique_ptr NewCompositeEnv(const std::shared_ptr& fs); 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 2 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29724: namespace rocksdb { 29724: 29724: 29724: constexpr char kUnknownFileChecksum[] = ""; 29724: 29724: constexpr char kUnknownFileChecksumFuncName[] = "Unknown"; 29724: 29724: 29724: 29724: constexpr char kStandardDbFileChecksumFuncName[] = "FileChecksumCrc32c"; 29724: 29724: struct FileChecksumGenContext { 29724: std::string file_name; 29724: 29724: 29724: 29724: 29724: std::string requested_checksum_func_name; 29724: }; 29724: # 50 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29724: class FileChecksumGenerator { 29724: public: 29724: virtual ~FileChecksumGenerator() {} 29724: 29724: 29724: 29724: 29724: virtual void Update(const char* data, size_t n) = 0; 29724: 29724: 29724: virtual void Finalize() = 0; 29724: 29724: 29724: 29724: virtual std::string GetChecksum() const = 0; 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FileChecksumGenFactory : public Customizable { 29724: public: 29724: ~FileChecksumGenFactory() override {} 29724: static const char* Type() { return "FileChecksumGenFactory"; } 29724: static Status CreateFromString( 29724: const ConfigOptions& options, const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: 29724: virtual std::unique_ptr CreateFileChecksumGenerator( 29724: const FileChecksumGenContext& context) = 0; 29724: 29724: 29724: const char* Name() const override = 0; 29724: }; 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29724: class FileChecksumList { 29724: public: 29724: virtual ~FileChecksumList() {} 29724: 29724: 29724: virtual void reset() = 0; 29724: 29724: 29724: virtual size_t size() const = 0; 29724: 29724: 29724: 29724: 29724: virtual Status GetAllFileChecksums( 29724: std::vector* file_numbers, std::vector* checksums, 29724: std::vector* checksum_func_names) = 0; 29724: 29724: 29724: 29724: virtual Status SearchOneFileChecksum(uint64_t file_number, 29724: std::string* checksum, 29724: std::string* checksum_func_name) = 0; 29724: 29724: 29724: virtual Status InsertOneFileChecksum( 29724: uint64_t file_number, const std::string& checksum, 29724: const std::string& checksum_func_name) = 0; 29724: 29724: 29724: virtual Status RemoveOneFileChecksum(uint64_t file_number) = 0; 29724: }; 29724: 29724: 29724: FileChecksumList* NewFileChecksumList(); 29724: # 143 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29724: extern std::shared_ptr 29724: GetFileChecksumGenCrc32cFactory(); 29724: 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_job_stats.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 8 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_job_stats.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: struct CompactionJobStats { 29724: CompactionJobStats() { Reset(); } 29724: void Reset(); 29724: 29724: void Add(const CompactionJobStats& stats); 29724: 29724: 29724: uint64_t elapsed_micros = 0; 29724: 29724: 29724: uint64_t cpu_micros = 0; 29724: 29724: 29724: 29724: bool has_num_input_records = false; 29724: 29724: uint64_t num_input_records = 0; 29724: 29724: uint64_t num_blobs_read = 0; 29724: 29724: size_t num_input_files = 0; 29724: 29724: size_t num_input_files_at_output_level = 0; 29724: 29724: 29724: size_t num_filtered_input_files = 0; 29724: 29724: 29724: size_t num_filtered_input_files_at_output_level = 0; 29724: 29724: 29724: uint64_t num_output_records = 0; 29724: 29724: size_t num_output_files = 0; 29724: 29724: size_t num_output_files_blob = 0; 29724: 29724: 29724: bool is_full_compaction = false; 29724: 29724: bool is_manual_compaction = false; 29724: 29724: bool is_remote_compaction = false; 29724: 29724: 29724: uint64_t total_input_bytes = 0; 29724: 29724: uint64_t total_blob_bytes_read = 0; 29724: 29724: uint64_t total_output_bytes = 0; 29724: 29724: uint64_t total_output_bytes_blob = 0; 29724: 29724: 29724: uint64_t total_skipped_input_bytes = 0; 29724: 29724: 29724: 29724: 29724: uint64_t num_records_replaced = 0; 29724: 29724: 29724: uint64_t total_input_raw_key_bytes = 0; 29724: 29724: uint64_t total_input_raw_value_bytes = 0; 29724: 29724: 29724: 29724: uint64_t num_input_deletion_records = 0; 29724: 29724: 29724: 29724: uint64_t num_expired_deletion_records = 0; 29724: 29724: 29724: 29724: uint64_t num_corrupt_keys = 0; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t file_write_nanos = 0; 29724: 29724: 29724: uint64_t file_range_sync_nanos = 0; 29724: 29724: 29724: uint64_t file_fsync_nanos = 0; 29724: 29724: 29724: uint64_t file_prepare_write_nanos = 0; 29724: 29724: 29724: 29724: static const size_t kMaxPrefixLength = 8; 29724: 29724: std::string smallest_output_key_prefix; 29724: std::string largest_output_key_prefix; 29724: 29724: 29724: uint64_t num_single_del_fallthru = 0; 29724: 29724: 29724: uint64_t num_single_del_mismatch = 0; 29724: 29724: 29724: }; 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 1 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstring" 1 3 29724: # 39 "/usr/include/c++/14/cstring" 3 29724: 29724: # 40 "/usr/include/c++/14/cstring" 3 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 43 "/usr/include/c++/14/cstring" 2 3 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 2 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class IOStatus : public Status { 29724: public: 29724: using Code = Status::Code; 29724: using SubCode = Status::SubCode; 29724: 29724: enum IOErrorScope : unsigned char { 29724: kIOErrorScopeFileSystem, 29724: kIOErrorScopeFile, 29724: kIOErrorScopeRange, 29724: kIOErrorScopeMax, 29724: }; 29724: 29724: 29724: IOStatus() : IOStatus(kOk, kNone) {} 29724: ~IOStatus() {} 29724: 29724: 29724: IOStatus(const IOStatus& s); 29724: IOStatus& operator=(const IOStatus& s); 29724: IOStatus(IOStatus&& s) noexcept; 29724: IOStatus& operator=(IOStatus&& s) noexcept; 29724: bool operator==(const IOStatus& rhs) const; 29724: bool operator!=(const IOStatus& rhs) const; 29724: 29724: void SetRetryable(bool retryable) { retryable_ = retryable; } 29724: void SetDataLoss(bool data_loss) { data_loss_ = data_loss; } 29724: void SetScope(IOErrorScope scope) { 29724: scope_ = static_cast(scope); 29724: } 29724: 29724: bool GetRetryable() const { return retryable_; } 29724: bool GetDataLoss() const { return data_loss_; } 29724: IOErrorScope GetScope() const { return static_cast(scope_); } 29724: 29724: 29724: static IOStatus OK() { return IOStatus(); } 29724: 29724: static IOStatus NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kNotSupported, msg, msg2); 29724: } 29724: static IOStatus NotSupported(SubCode msg = kNone) { 29724: return IOStatus(kNotSupported, msg); 29724: } 29724: 29724: 29724: static IOStatus NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kNotFound, msg, msg2); 29724: } 29724: 29724: static IOStatus NotFound(SubCode msg = kNone) { 29724: return IOStatus(kNotFound, msg); 29724: } 29724: 29724: static IOStatus Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kCorruption, msg, msg2); 29724: } 29724: static IOStatus Corruption(SubCode msg = kNone) { 29724: return IOStatus(kCorruption, msg); 29724: } 29724: 29724: static IOStatus InvalidArgument(const Slice& msg, 29724: const Slice& msg2 = Slice()) { 29724: return IOStatus(kInvalidArgument, msg, msg2); 29724: } 29724: static IOStatus InvalidArgument(SubCode msg = kNone) { 29724: return IOStatus(kInvalidArgument, msg); 29724: } 29724: 29724: static IOStatus IOError(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kIOError, msg, msg2); 29724: } 29724: static IOStatus IOError(SubCode msg = kNone) { 29724: return IOStatus(kIOError, msg); 29724: } 29724: 29724: static IOStatus Busy(SubCode msg = kNone) { return IOStatus(kBusy, msg); } 29724: static IOStatus Busy(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kBusy, msg, msg2); 29724: } 29724: 29724: static IOStatus TimedOut(SubCode msg = kNone) { 29724: return IOStatus(kTimedOut, msg); 29724: } 29724: static IOStatus TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kTimedOut, msg, msg2); 29724: } 29724: 29724: static IOStatus NoSpace() { return IOStatus(kIOError, kNoSpace); } 29724: static IOStatus NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kIOError, kNoSpace, msg, msg2); 29724: } 29724: 29724: static IOStatus PathNotFound() { return IOStatus(kIOError, kPathNotFound); } 29724: static IOStatus PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kIOError, kPathNotFound, msg, msg2); 29724: } 29724: 29724: static IOStatus IOFenced() { return IOStatus(kIOError, kIOFenced); } 29724: static IOStatus IOFenced(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kIOError, kIOFenced, msg, msg2); 29724: } 29724: 29724: static IOStatus Aborted(SubCode msg = kNone) { 29724: return IOStatus(kAborted, msg); 29724: } 29724: static IOStatus Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 29724: return IOStatus(kAborted, msg, msg2); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: private: 29724: friend IOStatus status_to_io_status(Status&&); 29724: 29724: explicit IOStatus(Code _code, SubCode _subcode = kNone) 29724: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) {} 29724: 29724: IOStatus(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2); 29724: IOStatus(Code _code, const Slice& msg, const Slice& msg2) 29724: : IOStatus(_code, kNone, msg, msg2) {} 29724: }; 29724: 29724: inline IOStatus::IOStatus(Code _code, SubCode _subcode, const Slice& msg, 29724: const Slice& msg2) 29724: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) { 29724: 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: (static_cast ( 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: code_ != kOk 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: "code_ != kOk" 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: ; 29724: 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: (static_cast ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: subcode_ != kMaxSubCode 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: "subcode_ != kMaxSubCode" 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29724: ; 29724: const size_t len1 = msg.size(); 29724: const size_t len2 = msg2.size(); 29724: const size_t size = len1 + (len2 ? (2 + len2) : 0); 29724: char* const result = new char[size + 1]; 29724: memcpy(result, msg.data(), len1); 29724: if (len2) { 29724: result[len1] = ':'; 29724: result[len1 + 1] = ' '; 29724: memcpy(result + len1 + 2, msg2.data(), len2); 29724: } 29724: result[size] = '\0'; 29724: state_.reset(result); 29724: } 29724: 29724: inline IOStatus::IOStatus(const IOStatus& s) : Status(s.code_, s.subcode_) { 29724: 29724: 29724: 29724: retryable_ = s.retryable_; 29724: data_loss_ = s.data_loss_; 29724: scope_ = s.scope_; 29724: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29724: } 29724: inline IOStatus& IOStatus::operator=(const IOStatus& s) { 29724: 29724: 29724: if (this != &s) { 29724: 29724: 29724: 29724: 29724: code_ = s.code_; 29724: subcode_ = s.subcode_; 29724: retryable_ = s.retryable_; 29724: data_loss_ = s.data_loss_; 29724: scope_ = s.scope_; 29724: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29724: } 29724: return *this; 29724: } 29724: 29724: inline IOStatus::IOStatus(IOStatus&& s) noexcept : IOStatus() { 29724: *this = std::move(s); 29724: } 29724: 29724: inline IOStatus& IOStatus::operator=(IOStatus&& s) noexcept { 29724: if (this != &s) { 29724: 29724: 29724: 29724: 29724: code_ = std::move(s.code_); 29724: s.code_ = kOk; 29724: subcode_ = std::move(s.subcode_); 29724: s.subcode_ = kNone; 29724: retryable_ = s.retryable_; 29724: data_loss_ = s.data_loss_; 29724: scope_ = s.scope_; 29724: s.scope_ = kIOErrorScopeFileSystem; 29724: state_ = std::move(s.state_); 29724: } 29724: return *this; 29724: } 29724: 29724: inline bool IOStatus::operator==(const IOStatus& rhs) const { 29724: 29724: 29724: 29724: 29724: return (code_ == rhs.code_); 29724: } 29724: 29724: inline bool IOStatus::operator!=(const IOStatus& rhs) const { 29724: 29724: 29724: 29724: 29724: return !(*this == rhs); 29724: } 29724: 29724: inline IOStatus status_to_io_status(Status&& status) { 29724: IOStatus io_s; 29724: Status& s = io_s; 29724: s = std::move(status); 29724: return io_s; 29724: } 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 1 29724: 29724: 29724: 29724: 29724: 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: namespace rocksdb { 29724: 29724: class InternalTblPropColl; 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: using UserCollectedProperties = std::map; 29724: 29724: 29724: struct TablePropertiesNames { 29724: static const std::string kDbId; 29724: static const std::string kDbSessionId; 29724: static const std::string kDbHostId; 29724: static const std::string kOriginalFileNumber; 29724: static const std::string kDataSize; 29724: static const std::string kIndexSize; 29724: static const std::string kIndexPartitions; 29724: static const std::string kTopLevelIndexSize; 29724: static const std::string kIndexKeyIsUserKey; 29724: static const std::string kIndexValueIsDeltaEncoded; 29724: static const std::string kFilterSize; 29724: static const std::string kRawKeySize; 29724: static const std::string kRawValueSize; 29724: static const std::string kNumDataBlocks; 29724: static const std::string kNumEntries; 29724: static const std::string kNumFilterEntries; 29724: static const std::string kDeletedKeys; 29724: static const std::string kMergeOperands; 29724: static const std::string kNumRangeDeletions; 29724: static const std::string kFormatVersion; 29724: static const std::string kFixedKeyLen; 29724: static const std::string kFilterPolicy; 29724: static const std::string kColumnFamilyName; 29724: static const std::string kColumnFamilyId; 29724: static const std::string kComparator; 29724: static const std::string kMergeOperator; 29724: static const std::string kPrefixExtractorName; 29724: static const std::string kPropertyCollectors; 29724: static const std::string kCompression; 29724: static const std::string kCompressionOptions; 29724: static const std::string kCreationTime; 29724: static const std::string kOldestKeyTime; 29724: static const std::string kNewestKeyTime; 29724: static const std::string kFileCreationTime; 29724: static const std::string kSlowCompressionEstimatedDataSize; 29724: static const std::string kFastCompressionEstimatedDataSize; 29724: static const std::string kSequenceNumberTimeMapping; 29724: static const std::string kTailStartOffset; 29724: static const std::string kUserDefinedTimestampsPersisted; 29724: static const std::string kKeyLargestSeqno; 29724: }; 29724: # 94 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: class TablePropertiesCollector { 29724: public: 29724: virtual ~TablePropertiesCollector() {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Add(const Slice& , const Slice& ) { 29724: return Status::InvalidArgument( 29724: "TablePropertiesCollector::Add() deprecated."); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status AddUserKey(const Slice& key, const Slice& value, 29724: EntryType , SequenceNumber , 29724: uint64_t ) { 29724: 29724: return Add(key, value); 29724: } 29724: 29724: 29724: virtual void BlockAdd(uint64_t , 29724: uint64_t , 29724: uint64_t ) { 29724: 29724: return; 29724: } 29724: # 135 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: virtual Status Finish(UserCollectedProperties* properties) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual UserCollectedProperties GetReadableProperties() const = 0; 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: virtual bool NeedCompact() const { return false; } 29724: 29724: 29724: virtual InternalTblPropColl* AsInternal() { return nullptr; } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class TablePropertiesCollectorFactory : public Customizable { 29724: public: 29724: struct Context { 29724: uint32_t column_family_id; 29724: 29724: 29724: int level_at_creation = kUnknownLevelAtCreation; 29724: int num_levels = kUnknownNumLevels; 29724: 29724: 29724: 29724: 29724: SequenceNumber last_level_inclusive_max_seqno_threshold; 29724: static const uint32_t kUnknownColumnFamily; 29724: static const int kUnknownLevelAtCreation = -1; 29724: static const int kUnknownNumLevels = -1; 29724: 29724: Context() {} 29724: 29724: Context(uint32_t _column_family_id, int _level_at_creation, int _num_levels, 29724: SequenceNumber _last_level_inclusive_max_seqno_threshold) 29724: : column_family_id(_column_family_id), 29724: level_at_creation(_level_at_creation), 29724: num_levels(_num_levels), 29724: last_level_inclusive_max_seqno_threshold( 29724: _last_level_inclusive_max_seqno_threshold) {} 29724: }; 29724: 29724: ~TablePropertiesCollectorFactory() override {} 29724: static const char* Type() { return "TablePropertiesCollectorFactory"; } 29724: static Status CreateFromString( 29724: const ConfigOptions& options, const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual TablePropertiesCollector* CreateTablePropertiesCollector( 29724: TablePropertiesCollectorFactory::Context context) = 0; 29724: 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: 29724: 29724: virtual std::string ToString() const { return Name(); } 29724: }; 29724: 29724: 29724: 29724: struct TableProperties { 29724: public: 29724: 29724: 29724: uint64_t orig_file_number = 0; 29724: 29724: uint64_t data_size = 0; 29724: 29724: uint64_t index_size = 0; 29724: 29724: uint64_t index_partitions = 0; 29724: 29724: uint64_t top_level_index_size = 0; 29724: 29724: 29724: uint64_t index_key_is_user_key = 0; 29724: 29724: uint64_t index_value_is_delta_encoded = 0; 29724: 29724: uint64_t filter_size = 0; 29724: 29724: uint64_t raw_key_size = 0; 29724: 29724: uint64_t raw_value_size = 0; 29724: 29724: uint64_t num_data_blocks = 0; 29724: 29724: uint64_t num_entries = 0; 29724: 29724: uint64_t num_filter_entries = 0; 29724: 29724: uint64_t num_deletions = 0; 29724: 29724: uint64_t num_merge_operands = 0; 29724: 29724: uint64_t num_range_deletions = 0; 29724: 29724: uint64_t format_version = 0; 29724: 29724: uint64_t fixed_key_len = 0; 29724: 29724: 29724: uint64_t column_family_id = rocksdb:: 29724: TablePropertiesCollectorFactory::Context::kUnknownColumnFamily; 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: uint64_t creation_time = 0; 29724: 29724: 29724: uint64_t oldest_key_time = 0; 29724: 29724: uint64_t newest_key_time = 0; 29724: 29724: uint64_t file_creation_time = 0; 29724: 29724: 29724: 29724: uint64_t slow_compression_estimated_data_size = 0; 29724: 29724: 29724: 29724: uint64_t fast_compression_estimated_data_size = 0; 29724: 29724: 29724: 29724: uint64_t external_sst_file_global_seqno_offset = 0; 29724: 29724: 29724: 29724: uint64_t tail_start_offset = 0; 29724: 29724: 29724: 29724: 29724: uint64_t user_defined_timestamps_persisted = 1; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t key_largest_seqno = 29724: # 304 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 3 4 29724: (18446744073709551615ULL) 29724: # 304 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: ; 29724: 29724: 29724: 29724: 29724: std::string db_id; 29724: 29724: 29724: 29724: 29724: 29724: std::string db_session_id; 29724: 29724: 29724: 29724: 29724: 29724: std::string db_host_id; 29724: 29724: 29724: 29724: std::string column_family_name; 29724: 29724: 29724: 29724: std::string filter_policy_name; 29724: 29724: 29724: std::string comparator_name; 29724: 29724: 29724: 29724: std::string merge_operator_name; 29724: 29724: 29724: 29724: std::string prefix_extractor_name; 29724: 29724: 29724: 29724: 29724: std::string property_collectors_names; 29724: 29724: 29724: std::string compression_name; 29724: 29724: 29724: std::string compression_options; 29724: 29724: 29724: std::string seqno_to_time_mapping; 29724: 29724: 29724: UserCollectedProperties user_collected_properties; 29724: UserCollectedProperties readable_properties; 29724: 29724: 29724: 29724: std::string ToString(const std::string& prop_delim = "; ", 29724: const std::string& kv_delim = "=") const; 29724: 29724: 29724: 29724: void Add(const TableProperties& tp); 29724: 29724: 29724: 29724: 29724: std::map GetAggregatablePropertiesAsMap() const; 29724: 29724: 29724: 29724: std::size_t ApproximateMemoryUsage() const; 29724: 29724: 29724: Status Serialize(const ConfigOptions& opts, std::string* output) const; 29724: static Status Parse(const ConfigOptions& opts, const std::string& serialized, 29724: TableProperties* table_properties); 29724: bool AreEqual(const ConfigOptions& opts, 29724: const TableProperties* other_table_properties, 29724: std::string* mismatch) const; 29724: }; 29724: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29724: uint64_t GetDeletedKeys(const UserCollectedProperties& props); 29724: uint64_t GetMergeOperands(const UserCollectedProperties& props, 29724: bool* property_present); 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: using TablePropertiesCollection = 29724: std::unordered_map>; 29724: 29724: class DB; 29724: class ColumnFamilyHandle; 29724: class Status; 29724: struct CompactionJobStats; 29724: 29724: struct FileCreationBriefInfo { 29724: FileCreationBriefInfo() = default; 29724: FileCreationBriefInfo(const std::string& _db_name, 29724: const std::string& _cf_name, 29724: const std::string& _file_path, int _job_id) 29724: : db_name(_db_name), 29724: cf_name(_cf_name), 29724: file_path(_file_path), 29724: job_id(_job_id) {} 29724: 29724: std::string db_name; 29724: 29724: std::string cf_name; 29724: 29724: std::string file_path; 29724: 29724: 29724: int job_id = 0; 29724: }; 29724: 29724: struct TableFileCreationBriefInfo : public FileCreationBriefInfo { 29724: 29724: TableFileCreationReason reason; 29724: }; 29724: 29724: struct TableFileCreationInfo : public TableFileCreationBriefInfo { 29724: TableFileCreationInfo() = default; 29724: explicit TableFileCreationInfo(TableProperties&& prop) 29724: : table_properties(prop) {} 29724: 29724: uint64_t file_size; 29724: 29724: TableProperties table_properties; 29724: 29724: Status status; 29724: 29724: std::string file_checksum; 29724: 29724: std::string file_checksum_func_name; 29724: }; 29724: 29724: struct BlobFileCreationBriefInfo : public FileCreationBriefInfo { 29724: BlobFileCreationBriefInfo(const std::string& _db_name, 29724: const std::string& _cf_name, 29724: const std::string& _file_path, int _job_id, 29724: BlobFileCreationReason _reason) 29724: : FileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id), 29724: reason(_reason) {} 29724: 29724: BlobFileCreationReason reason; 29724: }; 29724: 29724: struct BlobFileCreationInfo : public BlobFileCreationBriefInfo { 29724: BlobFileCreationInfo(const std::string& _db_name, const std::string& _cf_name, 29724: const std::string& _file_path, int _job_id, 29724: BlobFileCreationReason _reason, 29724: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 29724: Status _status, const std::string& _file_checksum, 29724: const std::string& _file_checksum_func_name) 29724: : BlobFileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id, 29724: _reason), 29724: total_blob_count(_total_blob_count), 29724: total_blob_bytes(_total_blob_bytes), 29724: status(_status), 29724: file_checksum(_file_checksum), 29724: file_checksum_func_name(_file_checksum_func_name) {} 29724: 29724: 29724: uint64_t total_blob_count; 29724: 29724: uint64_t total_blob_bytes; 29724: 29724: Status status; 29724: 29724: std::string file_checksum; 29724: 29724: std::string file_checksum_func_name; 29724: }; 29724: 29724: enum class CompactionReason : int { 29724: kUnknown = 0, 29724: 29724: kLevelL0FilesNum, 29724: 29724: kLevelMaxLevelSize, 29724: 29724: kUniversalSizeAmplification, 29724: 29724: kUniversalSizeRatio, 29724: 29724: kUniversalSortedRunNum, 29724: 29724: kFIFOMaxSize, 29724: 29724: kFIFOReduceNumFiles, 29724: 29724: kFIFOTtl, 29724: 29724: kManualCompaction, 29724: 29724: kFilesMarkedForCompaction, 29724: 29724: 29724: kBottommostFiles, 29724: 29724: kTtl, 29724: 29724: 29724: kFlush, 29724: 29724: 29724: 29724: 29724: kExternalSstIngestion, 29724: 29724: kPeriodicCompaction, 29724: 29724: kChangeTemperature, 29724: 29724: kForcedBlobGC, 29724: 29724: 29724: kRoundRobinTtl, 29724: 29724: 29724: kRefitLevel, 29724: 29724: kNumOfReasons, 29724: }; 29724: 29724: const char* GetCompactionReasonString(CompactionReason compaction_reason); 29724: 29724: 29724: enum class FlushReason : int { 29724: kOthers = 0x00, 29724: kGetLiveFiles = 0x01, 29724: kShutDown = 0x02, 29724: kExternalFileIngestion = 0x03, 29724: kManualCompaction = 0x04, 29724: kWriteBufferManager = 0x05, 29724: kWriteBufferFull = 0x06, 29724: kTest = 0x07, 29724: kDeleteFiles = 0x08, 29724: kAutoCompaction = 0x09, 29724: kManualFlush = 0x0a, 29724: kErrorRecovery = 0xb, 29724: 29724: 29724: kErrorRecoveryRetryFlush = 0xc, 29724: kWalFull = 0xd, 29724: 29724: kCatchUpAfterErrorRecovery = 0xe, 29724: }; 29724: 29724: const char* GetFlushReasonString(FlushReason flush_reason); 29724: 29724: 29724: 29724: 29724: 29724: enum class BackgroundErrorReason { 29724: kFlush, 29724: kCompaction, 29724: kWriteCallback, 29724: kMemTable, 29724: kManifestWrite, 29724: kFlushNoWAL, 29724: kManifestWriteNoWAL, 29724: }; 29724: 29724: struct WriteStallInfo { 29724: 29724: std::string cf_name; 29724: 29724: struct { 29724: WriteStallCondition cur; 29724: WriteStallCondition prev; 29724: } condition; 29724: }; 29724: 29724: 29724: struct FileDeletionInfo { 29724: FileDeletionInfo() = default; 29724: 29724: FileDeletionInfo(const std::string& _db_name, const std::string& _file_path, 29724: int _job_id, Status _status) 29724: : db_name(_db_name), 29724: file_path(_file_path), 29724: job_id(_job_id), 29724: status(_status) {} 29724: 29724: std::string db_name; 29724: 29724: std::string file_path; 29724: 29724: int job_id = 0; 29724: 29724: Status status; 29724: }; 29724: 29724: struct TableFileDeletionInfo : public FileDeletionInfo {}; 29724: 29724: struct BlobFileDeletionInfo : public FileDeletionInfo { 29724: BlobFileDeletionInfo(const std::string& _db_name, 29724: const std::string& _file_path, int _job_id, 29724: Status _status) 29724: : FileDeletionInfo(_db_name, _file_path, _job_id, _status) {} 29724: }; 29724: 29724: enum class FileOperationType { 29724: kRead, 29724: kWrite, 29724: kTruncate, 29724: kClose, 29724: kFlush, 29724: kSync, 29724: kFsync, 29724: kRangeSync, 29724: kAppend, 29724: kPositionedAppend, 29724: kOpen, 29724: kVerify 29724: }; 29724: 29724: struct FileOperationInfo { 29724: using Duration = std::chrono::nanoseconds; 29724: using SteadyTimePoint = 29724: std::chrono::time_point; 29724: using SystemTimePoint = 29724: std::chrono::time_point; 29724: using StartTimePoint = std::pair; 29724: using FinishTimePoint = SteadyTimePoint; 29724: 29724: FileOperationType type; 29724: const std::string& path; 29724: 29724: 29724: Temperature temperature; 29724: uint64_t offset; 29724: size_t length; 29724: const Duration duration; 29724: const SystemTimePoint& start_ts; 29724: Status status; 29724: 29724: FileOperationInfo(const FileOperationType _type, const std::string& _path, 29724: const StartTimePoint& _start_ts, 29724: const FinishTimePoint& _finish_ts, const Status& _status, 29724: const Temperature _temperature = Temperature::kUnknown) 29724: : type(_type), 29724: path(_path), 29724: temperature(_temperature), 29724: duration(std::chrono::duration_cast( 29724: _finish_ts - _start_ts.second)), 29724: start_ts(_start_ts.first), 29724: status(_status) {} 29724: static StartTimePoint StartNow() { 29724: return std::make_pair( 29724: std::chrono::system_clock::now(), std::chrono::steady_clock::now()); 29724: } 29724: static FinishTimePoint FinishNow() { 29724: return std::chrono::steady_clock::now(); 29724: } 29724: }; 29724: 29724: struct BlobFileInfo { 29724: BlobFileInfo(const std::string& _blob_file_path, 29724: const uint64_t _blob_file_number) 29724: : blob_file_path(_blob_file_path), blob_file_number(_blob_file_number) {} 29724: 29724: std::string blob_file_path; 29724: uint64_t blob_file_number; 29724: }; 29724: 29724: struct BlobFileAdditionInfo : public BlobFileInfo { 29724: BlobFileAdditionInfo(const std::string& _blob_file_path, 29724: const uint64_t _blob_file_number, 29724: const uint64_t _total_blob_count, 29724: const uint64_t _total_blob_bytes) 29724: : BlobFileInfo(_blob_file_path, _blob_file_number), 29724: total_blob_count(_total_blob_count), 29724: total_blob_bytes(_total_blob_bytes) {} 29724: uint64_t total_blob_count; 29724: uint64_t total_blob_bytes; 29724: }; 29724: 29724: struct BlobFileGarbageInfo : public BlobFileInfo { 29724: BlobFileGarbageInfo(const std::string& _blob_file_path, 29724: const uint64_t _blob_file_number, 29724: const uint64_t _garbage_blob_count, 29724: const uint64_t _garbage_blob_bytes) 29724: : BlobFileInfo(_blob_file_path, _blob_file_number), 29724: garbage_blob_count(_garbage_blob_count), 29724: garbage_blob_bytes(_garbage_blob_bytes) {} 29724: uint64_t garbage_blob_count; 29724: uint64_t garbage_blob_bytes; 29724: }; 29724: 29724: struct ManualFlushInfo { 29724: 29724: uint32_t cf_id; 29724: 29724: std::string cf_name; 29724: 29724: FlushReason flush_reason; 29724: }; 29724: 29724: struct FlushJobInfo { 29724: 29724: uint32_t cf_id; 29724: 29724: std::string cf_name; 29724: 29724: std::string file_path; 29724: 29724: uint64_t file_number; 29724: 29724: uint64_t oldest_blob_file_number; 29724: 29724: uint64_t thread_id; 29724: 29724: int job_id; 29724: 29724: 29724: 29724: 29724: bool triggered_writes_slowdown; 29724: 29724: 29724: 29724: 29724: bool triggered_writes_stop; 29724: 29724: SequenceNumber smallest_seqno; 29724: 29724: SequenceNumber largest_seqno; 29724: 29724: TableProperties table_properties; 29724: 29724: FlushReason flush_reason; 29724: 29724: 29724: CompressionType blob_compression_type; 29724: 29724: 29724: std::vector blob_file_addition_infos; 29724: }; 29724: 29724: struct CompactionFileInfo { 29724: 29724: int level; 29724: 29724: 29724: uint64_t file_number; 29724: 29724: 29724: uint64_t oldest_blob_file_number; 29724: }; 29724: 29724: struct SubcompactionJobInfo { 29724: ~SubcompactionJobInfo() { status.PermitUncheckedError(); } 29724: 29724: uint32_t cf_id; 29724: 29724: std::string cf_name; 29724: 29724: Status status; 29724: 29724: uint64_t thread_id; 29724: 29724: int job_id; 29724: 29724: 29724: 29724: 29724: 29724: int subcompaction_job_id; 29724: 29724: int base_input_level; 29724: 29724: int output_level; 29724: 29724: 29724: CompactionReason compaction_reason; 29724: 29724: 29724: CompressionType compression; 29724: 29724: 29724: CompactionJobStats stats; 29724: 29724: 29724: CompressionType blob_compression_type; 29724: }; 29724: 29724: struct CompactionJobInfo { 29724: ~CompactionJobInfo() { status.PermitUncheckedError(); } 29724: 29724: uint32_t cf_id; 29724: 29724: std::string cf_name; 29724: 29724: Status status; 29724: 29724: uint64_t thread_id; 29724: 29724: int job_id; 29724: 29724: 29724: int base_input_level; 29724: 29724: int output_level; 29724: # 453 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: std::vector input_files; 29724: 29724: 29724: std::vector input_file_infos; 29724: 29724: 29724: std::vector output_files; 29724: 29724: 29724: std::vector output_file_infos; 29724: 29724: 29724: 29724: TablePropertiesCollection table_properties; 29724: 29724: 29724: CompactionReason compaction_reason; 29724: 29724: 29724: CompressionType compression; 29724: 29724: 29724: CompactionJobStats stats; 29724: 29724: 29724: CompressionType blob_compression_type; 29724: 29724: 29724: 29724: std::vector blob_file_addition_infos; 29724: 29724: 29724: 29724: std::vector blob_file_garbage_infos; 29724: }; 29724: 29724: struct MemTableInfo { 29724: 29724: std::string cf_name; 29724: 29724: 29724: SequenceNumber first_seqno; 29724: 29724: 29724: 29724: 29724: SequenceNumber earliest_seqno; 29724: 29724: uint64_t num_entries; 29724: 29724: uint64_t num_deletes; 29724: 29724: 29724: 29724: std::string newest_udt; 29724: }; 29724: 29724: struct ExternalFileIngestionInfo { 29724: 29724: std::string cf_name; 29724: 29724: std::string external_file_path; 29724: 29724: std::string internal_file_path; 29724: 29724: SequenceNumber global_seqno; 29724: 29724: TableProperties table_properties; 29724: }; 29724: 29724: 29724: struct BackgroundErrorRecoveryInfo { 29724: 29724: Status old_bg_error; 29724: 29724: 29724: 29724: Status new_bg_error; 29724: }; 29724: 29724: struct IOErrorInfo { 29724: IOErrorInfo(const IOStatus& _io_status, FileOperationType _operation, 29724: const std::string& _file_path, size_t _length, uint64_t _offset) 29724: : io_status(_io_status), 29724: operation(_operation), 29724: file_path(_file_path), 29724: length(_length), 29724: offset(_offset) {} 29724: 29724: IOStatus io_status; 29724: FileOperationType operation; 29724: std::string file_path; 29724: size_t length; 29724: uint64_t offset; 29724: }; 29724: # 580 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: class EventListener : public Customizable { 29724: public: 29724: static const char* Type() { return "EventListener"; } 29724: static Status CreateFromString(const ConfigOptions& options, 29724: const std::string& id, 29724: std::shared_ptr* result); 29724: const char* Name() const override { 29724: 29724: 29724: return ""; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnFlushCompleted(DB* , 29724: const FlushJobInfo& ) {} 29724: # 608 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnFlushBegin(DB* , 29724: const FlushJobInfo& ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnManualFlushScheduled( 29724: DB* , const std::vector& ) {} 29724: # 630 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnTableFileDeleted(const TableFileDeletionInfo& ) {} 29724: # 639 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnCompactionBegin(DB* , const CompactionJobInfo& ) {} 29724: # 654 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnCompactionCompleted(DB* , 29724: const CompactionJobInfo& ) {} 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnSubcompactionBegin(const SubcompactionJobInfo& ) {} 29724: # 692 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnSubcompactionCompleted(const SubcompactionJobInfo& ) {} 29724: # 709 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnTableFileCreated(const TableFileCreationInfo& ) {} 29724: # 718 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnTableFileCreationStarted( 29724: const TableFileCreationBriefInfo& ) {} 29724: # 731 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnMemTableSealed(const MemTableInfo& ) {} 29724: # 741 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnColumnFamilyHandleDeletionStarted( 29724: ColumnFamilyHandle* ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnExternalFileIngested( 29724: DB* , const ExternalFileIngestionInfo& ) {} 29724: # 764 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnBackgroundError(BackgroundErrorReason , 29724: Status* ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnStallConditionsChanged(const WriteStallInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileReadFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileWriteFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileFlushFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileSyncFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileRangeSyncFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileTruncateFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnFileCloseFinish(const FileOperationInfo& ) {} 29724: 29724: 29724: 29724: virtual bool ShouldBeNotifiedOnFileIO() { return false; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnErrorRecoveryBegin(BackgroundErrorReason , 29724: Status , 29724: bool* ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnErrorRecoveryCompleted(Status old_bg_error) { 29724: old_bg_error.PermitUncheckedError(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnErrorRecoveryEnd(const BackgroundErrorRecoveryInfo& ) { 29724: } 29724: # 840 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnBlobFileCreationStarted( 29724: const BlobFileCreationBriefInfo& ) {} 29724: # 851 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29724: virtual void OnBlobFileCreated(const BlobFileCreationInfo& ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void OnBlobFileDeleted(const BlobFileDeletionInfo& ) {} 29724: 29724: 29724: 29724: virtual void OnIOError(const IOErrorInfo& ) {} 29724: 29724: ~EventListener() override {} 29724: }; 29724: 29724: 29724: } 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_partitioner.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_partitioner.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: 29724: enum PartitionerResult : char { 29724: 29724: kNotRequired = 0x0, 29724: 29724: kRequired = 0x1 29724: 29724: }; 29724: 29724: struct PartitionerRequest { 29724: PartitionerRequest(const Slice& prev_user_key_, 29724: const Slice& current_user_key_, 29724: uint64_t current_output_file_size_) 29724: : prev_user_key(&prev_user_key_), 29724: current_user_key(¤t_user_key_), 29724: current_output_file_size(current_output_file_size_) {} 29724: const Slice* prev_user_key; 29724: const Slice* current_user_key; 29724: uint64_t current_output_file_size; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class SstPartitioner { 29724: public: 29724: virtual ~SstPartitioner() {} 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual PartitionerResult ShouldPartition( 29724: const PartitionerRequest& request) = 0; 29724: 29724: 29724: 29724: virtual bool CanDoTrivialMove(const Slice& smallest_user_key, 29724: const Slice& largest_user_key) = 0; 29724: 29724: 29724: struct Context { 29724: 29724: bool is_full_compaction; 29724: 29724: 29724: bool is_manual_compaction; 29724: 29724: int output_level; 29724: 29724: Slice smallest_user_key; 29724: 29724: Slice largest_user_key; 29724: }; 29724: }; 29724: 29724: 29724: 29724: 29724: class SstPartitionerFactory : public Customizable { 29724: public: 29724: ~SstPartitionerFactory() override {} 29724: static const char* Type() { return "SstPartitionerFactory"; } 29724: static Status CreateFromString( 29724: const ConfigOptions& options, const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: virtual std::unique_ptr CreatePartitioner( 29724: const SstPartitioner::Context& context) const = 0; 29724: 29724: 29724: const char* Name() const override = 0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class SstPartitionerFixedPrefix : public SstPartitioner { 29724: public: 29724: explicit SstPartitionerFixedPrefix(size_t len) : len_(len) {} 29724: 29724: ~SstPartitionerFixedPrefix() override {} 29724: 29724: const char* Name() const override { return "SstPartitionerFixedPrefix"; } 29724: 29724: PartitionerResult ShouldPartition(const PartitionerRequest& request) override; 29724: 29724: bool CanDoTrivialMove(const Slice& smallest_user_key, 29724: const Slice& largest_user_key) override; 29724: 29724: private: 29724: size_t len_; 29724: }; 29724: 29724: 29724: 29724: 29724: class SstPartitionerFixedPrefixFactory : public SstPartitionerFactory { 29724: public: 29724: explicit SstPartitionerFixedPrefixFactory(size_t len); 29724: 29724: ~SstPartitionerFixedPrefixFactory() override {} 29724: 29724: static const char* kClassName() { return "SstPartitionerFixedPrefixFactory"; } 29724: const char* Name() const override { return kClassName(); } 29724: 29724: std::unique_ptr CreatePartitioner( 29724: const SstPartitioner::Context& ) const override; 29724: 29724: private: 29724: size_t len_; 29724: }; 29724: 29724: std::shared_ptr NewSstPartitionerFixedPrefixFactory( 29724: size_t prefix_len); 29724: 29724: } 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/version.h" 1 29724: 29724: 29724: 29724: 29724: 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/version.h" 29724: namespace rocksdb { 29724: 29724: 29724: const std::unordered_map& GetRocksBuildProperties(); 29724: 29724: 29724: 29724: 29724: std::string GetRocksVersionAsString(bool with_patch = true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::string GetRocksBuildInfoAsString(const std::string& program, 29724: bool verbose = false); 29724: } 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 1 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/condition_variable" 1 3 29724: # 32 "/usr/include/c++/14/condition_variable" 3 29724: 29724: # 33 "/usr/include/c++/14/condition_variable" 3 29724: # 54 "/usr/include/c++/14/condition_variable" 3 29724: 29724: # 54 "/usr/include/c++/14/condition_variable" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 67 "/usr/include/c++/14/condition_variable" 3 29724: enum class cv_status { no_timeout, timeout }; 29724: 29724: 29724: class condition_variable 29724: { 29724: using steady_clock = chrono::steady_clock; 29724: using system_clock = chrono::system_clock; 29724: 29724: using __clock_t = steady_clock; 29724: 29724: 29724: 29724: 29724: __condvar _M_cond; 29724: 29724: public: 29724: typedef __gthread_cond_t* native_handle_type; 29724: 29724: condition_variable() noexcept; 29724: ~condition_variable() noexcept; 29724: 29724: condition_variable(const condition_variable&) = delete; 29724: condition_variable& operator=(const condition_variable&) = delete; 29724: 29724: void 29724: notify_one() noexcept; 29724: 29724: void 29724: notify_all() noexcept; 29724: 29724: void 29724: wait(unique_lock& __lock); 29724: 29724: template 29724: void 29724: wait(unique_lock& __lock, _Predicate __p) 29724: { 29724: while (!__p()) 29724: wait(__lock); 29724: } 29724: 29724: 29724: template 29724: cv_status 29724: wait_until(unique_lock& __lock, 29724: const chrono::time_point& __atime) 29724: { return __wait_until_impl(__lock, __atime); } 29724: 29724: 29724: template 29724: cv_status 29724: wait_until(unique_lock& __lock, 29724: const chrono::time_point& __atime) 29724: { return __wait_until_impl(__lock, __atime); } 29724: 29724: template 29724: cv_status 29724: wait_until(unique_lock& __lock, 29724: const chrono::time_point<_Clock, _Duration>& __atime) 29724: { 29724: 29724: 29724: 29724: using __s_dur = typename __clock_t::duration; 29724: const typename _Clock::time_point __c_entry = _Clock::now(); 29724: const __clock_t::time_point __s_entry = __clock_t::now(); 29724: const auto __delta = __atime - __c_entry; 29724: const auto __s_atime = __s_entry + 29724: chrono::__detail::ceil<__s_dur>(__delta); 29724: 29724: if (__wait_until_impl(__lock, __s_atime) == cv_status::no_timeout) 29724: return cv_status::no_timeout; 29724: 29724: 29724: 29724: if (_Clock::now() < __atime) 29724: return cv_status::no_timeout; 29724: return cv_status::timeout; 29724: } 29724: 29724: template 29724: bool 29724: wait_until(unique_lock& __lock, 29724: const chrono::time_point<_Clock, _Duration>& __atime, 29724: _Predicate __p) 29724: { 29724: while (!__p()) 29724: if (wait_until(__lock, __atime) == cv_status::timeout) 29724: return __p(); 29724: return true; 29724: } 29724: 29724: template 29724: cv_status 29724: wait_for(unique_lock& __lock, 29724: const chrono::duration<_Rep, _Period>& __rtime) 29724: { 29724: using __dur = typename steady_clock::duration; 29724: return wait_until(__lock, 29724: steady_clock::now() + 29724: chrono::__detail::ceil<__dur>(__rtime)); 29724: } 29724: 29724: template 29724: bool 29724: wait_for(unique_lock& __lock, 29724: const chrono::duration<_Rep, _Period>& __rtime, 29724: _Predicate __p) 29724: { 29724: using __dur = typename steady_clock::duration; 29724: return wait_until(__lock, 29724: steady_clock::now() + 29724: chrono::__detail::ceil<__dur>(__rtime), 29724: std::move(__p)); 29724: } 29724: 29724: native_handle_type 29724: native_handle() 29724: { return _M_cond.native_handle(); } 29724: 29724: private: 29724: 29724: template 29724: cv_status 29724: __wait_until_impl(unique_lock& __lock, 29724: const chrono::time_point& __atime) 29724: { 29724: auto __s = chrono::time_point_cast(__atime); 29724: auto __ns = chrono::duration_cast(__atime - __s); 29724: 29724: __gthread_time_t __ts = 29724: { 29724: static_cast(__s.time_since_epoch().count()), 29724: static_cast(__ns.count()) 29724: }; 29724: 29724: _M_cond.wait_until(*__lock.mutex(), 1, __ts); 29724: 29724: return (steady_clock::now() < __atime 29724: ? cv_status::no_timeout : cv_status::timeout); 29724: } 29724: 29724: 29724: template 29724: cv_status 29724: __wait_until_impl(unique_lock& __lock, 29724: const chrono::time_point& __atime) 29724: { 29724: auto __s = chrono::time_point_cast(__atime); 29724: auto __ns = chrono::duration_cast(__atime - __s); 29724: 29724: __gthread_time_t __ts = 29724: { 29724: static_cast(__s.time_since_epoch().count()), 29724: static_cast(__ns.count()) 29724: }; 29724: 29724: _M_cond.wait_until(*__lock.mutex(), __ts); 29724: 29724: return (system_clock::now() < __atime 29724: ? cv_status::no_timeout : cv_status::timeout); 29724: } 29724: }; 29724: 29724: void 29724: notify_all_at_thread_exit(condition_variable&, unique_lock); 29724: 29724: struct __at_thread_exit_elt 29724: { 29724: __at_thread_exit_elt* _M_next; 29724: void (*_M_cb)(void*); 29724: }; 29724: 29724: inline namespace _V2 { 29724: 29724: 29724: 29724: class condition_variable_any 29724: { 29724: 29724: using __clock_t = chrono::steady_clock; 29724: 29724: 29724: 29724: condition_variable _M_cond; 29724: shared_ptr _M_mutex; 29724: 29724: 29724: template 29724: struct _Unlock 29724: { 29724: explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: ~_Unlock() noexcept(false) 29724: { 29724: if (uncaught_exception()) 29724: { 29724: try 29724: { _M_lock.lock(); } 29724: catch(const __cxxabiv1::__forced_unwind&) 29724: { throw; } 29724: catch(...) 29724: { } 29724: } 29724: else 29724: _M_lock.lock(); 29724: } 29724: #pragma GCC diagnostic pop 29724: 29724: _Unlock(const _Unlock&) = delete; 29724: _Unlock& operator=(const _Unlock&) = delete; 29724: 29724: _Lock& _M_lock; 29724: }; 29724: 29724: public: 29724: condition_variable_any() : _M_mutex(std::make_shared()) { } 29724: ~condition_variable_any() = default; 29724: 29724: condition_variable_any(const condition_variable_any&) = delete; 29724: condition_variable_any& operator=(const condition_variable_any&) = delete; 29724: 29724: void 29724: notify_one() noexcept 29724: { 29724: lock_guard __lock(*_M_mutex); 29724: _M_cond.notify_one(); 29724: } 29724: 29724: void 29724: notify_all() noexcept 29724: { 29724: lock_guard __lock(*_M_mutex); 29724: _M_cond.notify_all(); 29724: } 29724: 29724: template 29724: void 29724: wait(_Lock& __lock) 29724: { 29724: shared_ptr __mutex = _M_mutex; 29724: unique_lock __my_lock(*__mutex); 29724: _Unlock<_Lock> __unlock(__lock); 29724: 29724: 29724: unique_lock __my_lock2(std::move(__my_lock)); 29724: _M_cond.wait(__my_lock2); 29724: } 29724: 29724: 29724: template 29724: void 29724: wait(_Lock& __lock, _Predicate __p) 29724: { 29724: while (!__p()) 29724: wait(__lock); 29724: } 29724: 29724: template 29724: cv_status 29724: wait_until(_Lock& __lock, 29724: const chrono::time_point<_Clock, _Duration>& __atime) 29724: { 29724: shared_ptr __mutex = _M_mutex; 29724: unique_lock __my_lock(*__mutex); 29724: _Unlock<_Lock> __unlock(__lock); 29724: 29724: 29724: unique_lock __my_lock2(std::move(__my_lock)); 29724: return _M_cond.wait_until(__my_lock2, __atime); 29724: } 29724: 29724: template 29724: bool 29724: wait_until(_Lock& __lock, 29724: const chrono::time_point<_Clock, _Duration>& __atime, 29724: _Predicate __p) 29724: { 29724: while (!__p()) 29724: if (wait_until(__lock, __atime) == cv_status::timeout) 29724: return __p(); 29724: return true; 29724: } 29724: 29724: template 29724: cv_status 29724: wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) 29724: { return wait_until(__lock, __clock_t::now() + __rtime); } 29724: 29724: template 29724: bool 29724: wait_for(_Lock& __lock, 29724: const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) 29724: { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } 29724: # 443 "/usr/include/c++/14/condition_variable" 3 29724: }; 29724: 29724: } 29724: 29724: 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 2 29724: 29724: # 1 "/usr/include/c++/14/list" 1 3 29724: # 58 "/usr/include/c++/14/list" 3 29724: 29724: # 59 "/usr/include/c++/14/list" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_list.h" 1 3 29724: # 68 "/usr/include/c++/14/bits/stl_list.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: namespace __detail 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct _List_node_base 29724: { 29724: _List_node_base* _M_next; 29724: _List_node_base* _M_prev; 29724: 29724: static void 29724: swap(_List_node_base& __x, _List_node_base& __y) noexcept; 29724: 29724: void 29724: _M_transfer(_List_node_base* const __first, 29724: _List_node_base* const __last) noexcept; 29724: 29724: void 29724: _M_reverse() noexcept; 29724: 29724: void 29724: _M_hook(_List_node_base* const __position) noexcept; 29724: 29724: void 29724: _M_unhook() noexcept; 29724: }; 29724: 29724: 29724: struct _List_node_header : public _List_node_base 29724: { 29724: 29724: std::size_t _M_size; 29724: 29724: 29724: _List_node_header() noexcept 29724: { _M_init(); } 29724: 29724: 29724: _List_node_header(_List_node_header&& __x) noexcept 29724: : _List_node_base{ __x._M_next, __x._M_prev } 29724: 29724: , _M_size(__x._M_size) 29724: 29724: { 29724: if (__x._M_base()->_M_next == __x._M_base()) 29724: this->_M_next = this->_M_prev = this; 29724: else 29724: { 29724: this->_M_next->_M_prev = this->_M_prev->_M_next = this->_M_base(); 29724: __x._M_init(); 29724: } 29724: } 29724: 29724: void 29724: _M_move_nodes(_List_node_header&& __x) 29724: { 29724: _List_node_base* const __xnode = __x._M_base(); 29724: if (__xnode->_M_next == __xnode) 29724: _M_init(); 29724: else 29724: { 29724: _List_node_base* const __node = this->_M_base(); 29724: __node->_M_next = __xnode->_M_next; 29724: __node->_M_prev = __xnode->_M_prev; 29724: __node->_M_next->_M_prev = __node->_M_prev->_M_next = __node; 29724: 29724: _M_size = __x._M_size; 29724: 29724: __x._M_init(); 29724: } 29724: } 29724: 29724: 29724: void 29724: _M_init() noexcept 29724: { 29724: this->_M_next = this->_M_prev = this; 29724: 29724: this->_M_size = 0; 29724: 29724: } 29724: 29724: private: 29724: _List_node_base* _M_base() { return this; } 29724: }; 29724: 29724: 29724: struct _Scratch_list : _List_node_base 29724: { 29724: _Scratch_list() { _M_next = _M_prev = this; } 29724: 29724: bool empty() const { return _M_next == this; } 29724: 29724: void swap(_List_node_base& __l) { _List_node_base::swap(*this, __l); } 29724: 29724: template 29724: struct _Ptr_cmp 29724: { 29724: _Cmp _M_cmp; 29724: 29724: bool 29724: operator()(__detail::_List_node_base* __lhs, 29724: __detail::_List_node_base* __rhs) 29724: { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); } 29724: }; 29724: 29724: template 29724: struct _Ptr_cmp<_Iter, void> 29724: { 29724: bool 29724: operator()(__detail::_List_node_base* __lhs, 29724: __detail::_List_node_base* __rhs) const 29724: { return *_Iter(__lhs) < *_Iter(__rhs); } 29724: }; 29724: 29724: 29724: template 29724: void 29724: merge(_List_node_base& __x, _Cmp __comp) 29724: { 29724: _List_node_base* __first1 = _M_next; 29724: _List_node_base* const __last1 = this; 29724: _List_node_base* __first2 = __x._M_next; 29724: _List_node_base* const __last2 = std::__addressof(__x); 29724: 29724: while (__first1 != __last1 && __first2 != __last2) 29724: { 29724: if (__comp(__first2, __first1)) 29724: { 29724: _List_node_base* __next = __first2->_M_next; 29724: __first1->_M_transfer(__first2, __next); 29724: __first2 = __next; 29724: } 29724: else 29724: __first1 = __first1->_M_next; 29724: } 29724: if (__first2 != __last2) 29724: this->_M_transfer(__first2, __last2); 29724: } 29724: 29724: 29724: void _M_take_one(_List_node_base* __i) 29724: { this->_M_transfer(__i, __i->_M_next); } 29724: 29724: 29724: void _M_put_all(_List_node_base* __i) 29724: { 29724: if (!empty()) 29724: __i->_M_transfer(_M_next, this); 29724: } 29724: }; 29724: 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: struct _List_node : public __detail::_List_node_base 29724: { 29724: 29724: __gnu_cxx::__aligned_membuf<_Tp> _M_storage; 29724: _Tp* _M_valptr() { return _M_storage._M_ptr(); } 29724: _Tp const* _M_valptr() const { return _M_storage._M_ptr(); } 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _List_iterator 29724: { 29724: typedef _List_iterator<_Tp> _Self; 29724: typedef _List_node<_Tp> _Node; 29724: 29724: typedef ptrdiff_t difference_type; 29724: typedef std::bidirectional_iterator_tag iterator_category; 29724: typedef _Tp value_type; 29724: typedef _Tp* pointer; 29724: typedef _Tp& reference; 29724: 29724: _List_iterator() noexcept 29724: : _M_node() { } 29724: 29724: explicit 29724: _List_iterator(__detail::_List_node_base* __x) noexcept 29724: : _M_node(__x) { } 29724: 29724: _Self 29724: _M_const_cast() const noexcept 29724: { return *this; } 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator*() const noexcept 29724: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 29724: 29724: [[__nodiscard__]] 29724: pointer 29724: operator->() const noexcept 29724: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 29724: 29724: _Self& 29724: operator++() noexcept 29724: { 29724: _M_node = _M_node->_M_next; 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator++(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _M_node->_M_next; 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator--() noexcept 29724: { 29724: _M_node = _M_node->_M_prev; 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator--(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _M_node->_M_prev; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node == __y._M_node; } 29724: 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node != __y._M_node; } 29724: 29724: 29724: 29724: __detail::_List_node_base* _M_node; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _List_const_iterator 29724: { 29724: typedef _List_const_iterator<_Tp> _Self; 29724: typedef const _List_node<_Tp> _Node; 29724: typedef _List_iterator<_Tp> iterator; 29724: 29724: typedef ptrdiff_t difference_type; 29724: typedef std::bidirectional_iterator_tag iterator_category; 29724: typedef _Tp value_type; 29724: typedef const _Tp* pointer; 29724: typedef const _Tp& reference; 29724: 29724: _List_const_iterator() noexcept 29724: : _M_node() { } 29724: 29724: explicit 29724: _List_const_iterator(const __detail::_List_node_base* __x) 29724: noexcept 29724: : _M_node(__x) { } 29724: 29724: _List_const_iterator(const iterator& __x) noexcept 29724: : _M_node(__x._M_node) { } 29724: 29724: iterator 29724: _M_const_cast() const noexcept 29724: { return iterator(const_cast<__detail::_List_node_base*>(_M_node)); } 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: operator*() const noexcept 29724: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 29724: 29724: [[__nodiscard__]] 29724: pointer 29724: operator->() const noexcept 29724: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 29724: 29724: _Self& 29724: operator++() noexcept 29724: { 29724: _M_node = _M_node->_M_next; 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator++(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _M_node->_M_next; 29724: return __tmp; 29724: } 29724: 29724: _Self& 29724: operator--() noexcept 29724: { 29724: _M_node = _M_node->_M_prev; 29724: return *this; 29724: } 29724: 29724: _Self 29724: operator--(int) noexcept 29724: { 29724: _Self __tmp = *this; 29724: _M_node = _M_node->_M_prev; 29724: return __tmp; 29724: } 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node == __y._M_node; } 29724: 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const _Self& __x, const _Self& __y) noexcept 29724: { return __x._M_node != __y._M_node; } 29724: 29724: 29724: 29724: const __detail::_List_node_base* _M_node; 29724: }; 29724: 29724: namespace __cxx11 { 29724: 29724: template 29724: class _List_base 29724: { 29724: protected: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Tp>::other _Tp_alloc_type; 29724: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tp_alloc_traits; 29724: typedef typename _Tp_alloc_traits::template 29724: rebind<_List_node<_Tp> >::other _Node_alloc_type; 29724: typedef __gnu_cxx::__alloc_traits<_Node_alloc_type> _Node_alloc_traits; 29724: 29724: 29724: static size_t 29724: _S_distance(const __detail::_List_node_base* __first, 29724: const __detail::_List_node_base* __last) 29724: { 29724: size_t __n = 0; 29724: while (__first != __last) 29724: { 29724: __first = __first->_M_next; 29724: ++__n; 29724: } 29724: return __n; 29724: } 29724: 29724: 29724: struct _List_impl 29724: : public _Node_alloc_type 29724: { 29724: __detail::_List_node_header _M_node; 29724: 29724: _List_impl() noexcept(is_nothrow_default_constructible<_Node_alloc_type>::value) 29724: 29724: : _Node_alloc_type() 29724: { } 29724: 29724: _List_impl(const _Node_alloc_type& __a) noexcept 29724: : _Node_alloc_type(__a) 29724: { } 29724: 29724: 29724: _List_impl(_List_impl&&) = default; 29724: 29724: _List_impl(_Node_alloc_type&& __a, _List_impl&& __x) 29724: : _Node_alloc_type(std::move(__a)), _M_node(std::move(__x._M_node)) 29724: { } 29724: 29724: _List_impl(_Node_alloc_type&& __a) noexcept 29724: : _Node_alloc_type(std::move(__a)) 29724: { } 29724: 29724: }; 29724: 29724: _List_impl _M_impl; 29724: 29724: 29724: size_t _M_get_size() const { return _M_impl._M_node._M_size; } 29724: 29724: void _M_set_size(size_t __n) { _M_impl._M_node._M_size = __n; } 29724: 29724: void _M_inc_size(size_t __n) { _M_impl._M_node._M_size += __n; } 29724: 29724: void _M_dec_size(size_t __n) { _M_impl._M_node._M_size -= __n; } 29724: 29724: 29724: size_t 29724: _M_distance(const __detail::_List_node_base* __first, 29724: const __detail::_List_node_base* __last) const 29724: { return _S_distance(__first, __last); } 29724: 29724: 29724: size_t _M_node_count() const { return _M_get_size(); } 29724: # 516 "/usr/include/c++/14/bits/stl_list.h" 3 29724: typename _Node_alloc_traits::pointer 29724: _M_get_node() 29724: { return _Node_alloc_traits::allocate(_M_impl, 1); } 29724: 29724: void 29724: _M_put_node(typename _Node_alloc_traits::pointer __p) noexcept 29724: { _Node_alloc_traits::deallocate(_M_impl, __p, 1); } 29724: 29724: public: 29724: typedef _Alloc allocator_type; 29724: 29724: _Node_alloc_type& 29724: _M_get_Node_allocator() noexcept 29724: { return _M_impl; } 29724: 29724: const _Node_alloc_type& 29724: _M_get_Node_allocator() const noexcept 29724: { return _M_impl; } 29724: 29724: 29724: _List_base() = default; 29724: 29724: 29724: 29724: 29724: _List_base(const _Node_alloc_type& __a) noexcept 29724: : _M_impl(__a) 29724: { } 29724: 29724: 29724: _List_base(_List_base&&) = default; 29724: 29724: 29724: _List_base(_List_base&& __x, _Node_alloc_type&& __a) 29724: : _M_impl(std::move(__a)) 29724: { 29724: if (__x._M_get_Node_allocator() == _M_get_Node_allocator()) 29724: _M_move_nodes(std::move(__x)); 29724: 29724: } 29724: 29724: 29724: 29724: _List_base(_Node_alloc_type&& __a, _List_base&& __x) 29724: : _M_impl(std::move(__a), std::move(__x._M_impl)) 29724: { } 29724: 29724: 29724: _List_base(_Node_alloc_type&& __a) 29724: : _M_impl(std::move(__a)) 29724: { } 29724: 29724: void 29724: _M_move_nodes(_List_base&& __x) 29724: { _M_impl._M_node._M_move_nodes(std::move(__x._M_impl._M_node)); } 29724: 29724: 29724: 29724: ~_List_base() noexcept 29724: { _M_clear(); } 29724: 29724: void 29724: _M_clear() noexcept; 29724: 29724: void 29724: _M_init() noexcept 29724: { this->_M_impl._M_node._M_init(); } 29724: }; 29724: # 631 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template > 29724: class list : protected _List_base<_Tp, _Alloc> 29724: { 29724: # 644 "/usr/include/c++/14/bits/stl_list.h" 3 29724: static_assert(is_same::type, _Tp>::value, 29724: "std::list must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef _List_base<_Tp, _Alloc> _Base; 29724: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29724: typedef typename _Base::_Tp_alloc_traits _Tp_alloc_traits; 29724: typedef typename _Base::_Node_alloc_type _Node_alloc_type; 29724: typedef typename _Base::_Node_alloc_traits _Node_alloc_traits; 29724: 29724: public: 29724: typedef _Tp value_type; 29724: typedef typename _Tp_alloc_traits::pointer pointer; 29724: typedef typename _Tp_alloc_traits::const_pointer const_pointer; 29724: typedef typename _Tp_alloc_traits::reference reference; 29724: typedef typename _Tp_alloc_traits::const_reference const_reference; 29724: typedef _List_iterator<_Tp> iterator; 29724: typedef _List_const_iterator<_Tp> const_iterator; 29724: typedef std::reverse_iterator const_reverse_iterator; 29724: typedef std::reverse_iterator reverse_iterator; 29724: typedef size_t size_type; 29724: typedef ptrdiff_t difference_type; 29724: typedef _Alloc allocator_type; 29724: 29724: protected: 29724: 29724: 29724: typedef _List_node<_Tp> _Node; 29724: 29724: using _Base::_M_impl; 29724: using _Base::_M_put_node; 29724: using _Base::_M_get_node; 29724: using _Base::_M_get_Node_allocator; 29724: # 706 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: _Node* 29724: _M_create_node(_Args&&... __args) 29724: { 29724: auto __p = this->_M_get_node(); 29724: auto& __alloc = _M_get_Node_allocator(); 29724: __allocated_ptr<_Node_alloc_type> __guard{__alloc, __p}; 29724: _Node_alloc_traits::construct(__alloc, __p->_M_valptr(), 29724: std::forward<_Args>(__args)...); 29724: __guard = nullptr; 29724: return __p; 29724: } 29724: 29724: 29724: 29724: static size_t 29724: _S_distance(const_iterator __first, const_iterator __last) 29724: { return std::distance(__first, __last); } 29724: 29724: 29724: size_t 29724: _M_node_count() const 29724: { return this->_M_get_size(); } 29724: # 741 "/usr/include/c++/14/bits/stl_list.h" 3 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: list() = default; 29724: # 758 "/usr/include/c++/14/bits/stl_list.h" 3 29724: explicit 29724: list(const allocator_type& __a) noexcept 29724: : _Base(_Node_alloc_type(__a)) { } 29724: # 771 "/usr/include/c++/14/bits/stl_list.h" 3 29724: explicit 29724: list(size_type __n, const allocator_type& __a = allocator_type()) 29724: : _Base(_Node_alloc_type(__a)) 29724: { _M_default_initialize(__n); } 29724: # 784 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list(size_type __n, const value_type& __value, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(_Node_alloc_type(__a)) 29724: { _M_fill_initialize(__n, __value); } 29724: # 811 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list(const list& __x) 29724: : _Base(_Node_alloc_traits:: 29724: _S_select_on_copy(__x._M_get_Node_allocator())) 29724: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 29724: # 824 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list(list&&) = default; 29724: # 834 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list(initializer_list __l, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(_Node_alloc_type(__a)) 29724: { _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); } 29724: 29724: list(const list& __x, const __type_identity_t& __a) 29724: : _Base(_Node_alloc_type(__a)) 29724: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 29724: 29724: private: 29724: list(list&& __x, const allocator_type& __a, true_type) noexcept 29724: : _Base(_Node_alloc_type(__a), std::move(__x)) 29724: { } 29724: 29724: list(list&& __x, const allocator_type& __a, false_type) 29724: : _Base(_Node_alloc_type(__a)) 29724: { 29724: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 29724: this->_M_move_nodes(std::move(__x)); 29724: else 29724: insert(begin(), std::__make_move_if_noexcept_iterator(__x.begin()), 29724: std::__make_move_if_noexcept_iterator(__x.end())); 29724: } 29724: 29724: public: 29724: list(list&& __x, const __type_identity_t& __a) 29724: noexcept(_Node_alloc_traits::_S_always_equal()) 29724: : list(std::move(__x), __a, 29724: typename _Node_alloc_traits::is_always_equal{}) 29724: { } 29724: # 877 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template> 29724: list(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a = allocator_type()) 29724: : _Base(_Node_alloc_type(__a)) 29724: { _M_initialize_dispatch(__first, __last, __false_type()); } 29724: # 903 "/usr/include/c++/14/bits/stl_list.h" 3 29724: ~list() = default; 29724: # 914 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list& 29724: operator=(const list& __x); 29724: # 928 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list& 29724: operator=(list&& __x) 29724: noexcept(_Node_alloc_traits::_S_nothrow_move()) 29724: { 29724: constexpr bool __move_storage = 29724: _Node_alloc_traits::_S_propagate_on_move_assign() 29724: || _Node_alloc_traits::_S_always_equal(); 29724: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 29724: return *this; 29724: } 29724: # 946 "/usr/include/c++/14/bits/stl_list.h" 3 29724: list& 29724: operator=(initializer_list __l) 29724: { 29724: this->assign(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: # 964 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: assign(size_type __n, const value_type& __val) 29724: { _M_fill_assign(__n, __val); } 29724: # 981 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template> 29724: void 29724: assign(_InputIterator __first, _InputIterator __last) 29724: { _M_assign_dispatch(__first, __last, __false_type()); } 29724: # 1005 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: assign(initializer_list __l) 29724: { this->_M_assign_dispatch(__l.begin(), __l.end(), __false_type()); } 29724: 29724: 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_Base::_M_get_Node_allocator()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: begin() noexcept 29724: { return iterator(this->_M_impl._M_node._M_next); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: begin() const noexcept 29724: { return const_iterator(this->_M_impl._M_node._M_next); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: iterator 29724: end() noexcept 29724: { return iterator(&this->_M_impl._M_node); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: end() const noexcept 29724: { return const_iterator(&this->_M_impl._M_node); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rbegin() noexcept 29724: { return reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reverse_iterator 29724: rend() noexcept 29724: { return reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: rend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cbegin() const noexcept 29724: { return const_iterator(this->_M_impl._M_node._M_next); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_iterator 29724: cend() const noexcept 29724: { return const_iterator(&this->_M_impl._M_node); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crbegin() const noexcept 29724: { return const_reverse_iterator(end()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reverse_iterator 29724: crend() const noexcept 29724: { return const_reverse_iterator(begin()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: size() const noexcept 29724: { return _M_node_count(); } 29724: 29724: 29724: [[__nodiscard__]] 29724: size_type 29724: max_size() const noexcept 29724: { return _Node_alloc_traits::max_size(_M_get_Node_allocator()); } 29724: # 1168 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: resize(size_type __new_size); 29724: # 1181 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: resize(size_type __new_size, const value_type& __x); 29724: # 1203 "/usr/include/c++/14/bits/stl_list.h" 3 29724: [[__nodiscard__]] 29724: reference 29724: front() noexcept 29724: { return *begin(); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: front() const noexcept 29724: { return *begin(); } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: reference 29724: back() noexcept 29724: { 29724: iterator __tmp = end(); 29724: --__tmp; 29724: return *__tmp; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: const_reference 29724: back() const noexcept 29724: { 29724: const_iterator __tmp = end(); 29724: --__tmp; 29724: return *__tmp; 29724: } 29724: # 1254 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: push_front(const value_type& __x) 29724: { this->_M_insert(begin(), __x); } 29724: 29724: 29724: void 29724: push_front(value_type&& __x) 29724: { this->_M_insert(begin(), std::move(__x)); } 29724: 29724: template 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_front(_Args&&... __args) 29724: { 29724: this->_M_insert(begin(), std::forward<_Args>(__args)...); 29724: 29724: return front(); 29724: 29724: } 29724: # 1290 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: pop_front() noexcept 29724: { this->_M_erase(begin()); } 29724: # 1304 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: push_back(const value_type& __x) 29724: { this->_M_insert(end(), __x); } 29724: 29724: 29724: void 29724: push_back(value_type&& __x) 29724: { this->_M_insert(end(), std::move(__x)); } 29724: 29724: template 29724: 29724: reference 29724: 29724: 29724: 29724: emplace_back(_Args&&... __args) 29724: { 29724: this->_M_insert(end(), std::forward<_Args>(__args)...); 29724: 29724: return back(); 29724: 29724: } 29724: # 1339 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: pop_back() noexcept 29724: { this->_M_erase(iterator(this->_M_impl._M_node._M_prev)); } 29724: # 1356 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: iterator 29724: emplace(const_iterator __position, _Args&&... __args); 29724: # 1371 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: insert(const_iterator __position, const value_type& __x); 29724: # 1401 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return emplace(__position, std::move(__x)); } 29724: # 1420 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: insert(const_iterator __p, initializer_list __l) 29724: { return this->insert(__p, __l.begin(), __l.end()); } 29724: # 1440 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: insert(const_iterator __position, size_type __n, const value_type& __x); 29724: # 1479 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template> 29724: iterator 29724: insert(const_iterator __position, _InputIterator __first, 29724: _InputIterator __last); 29724: # 1523 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: 29724: erase(const_iterator __position) noexcept; 29724: # 1548 "/usr/include/c++/14/bits/stl_list.h" 3 29724: iterator 29724: 29724: erase(const_iterator __first, const_iterator __last) noexcept 29724: 29724: 29724: 29724: { 29724: while (__first != __last) 29724: __first = erase(__first); 29724: return __last._M_const_cast(); 29724: } 29724: # 1571 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: swap(list& __x) noexcept 29724: { 29724: __detail::_List_node_base::swap(this->_M_impl._M_node, 29724: __x._M_impl._M_node); 29724: 29724: size_t __xsize = __x._M_get_size(); 29724: __x._M_set_size(this->_M_get_size()); 29724: this->_M_set_size(__xsize); 29724: 29724: _Node_alloc_traits::_S_on_swap(this->_M_get_Node_allocator(), 29724: __x._M_get_Node_allocator()); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: clear() noexcept 29724: { 29724: _Base::_M_clear(); 29724: _Base::_M_init(); 29724: } 29724: # 1610 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: 29724: splice(const_iterator __position, list&& __x) noexcept 29724: 29724: 29724: 29724: { 29724: if (!__x.empty()) 29724: { 29724: _M_check_equal_allocators(__x); 29724: 29724: this->_M_transfer(__position._M_const_cast(), 29724: __x.begin(), __x.end()); 29724: 29724: this->_M_inc_size(__x._M_get_size()); 29724: __x._M_set_size(0); 29724: } 29724: } 29724: 29724: 29724: void 29724: splice(const_iterator __position, list& __x) noexcept 29724: { splice(__position, std::move(__x)); } 29724: # 1646 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: splice(const_iterator __position, list&& __x, const_iterator __i) noexcept 29724: # 1661 "/usr/include/c++/14/bits/stl_list.h" 3 29724: { 29724: iterator __j = __i._M_const_cast(); 29724: ++__j; 29724: if (__position == __i || __position == __j) 29724: return; 29724: 29724: if (this != std::__addressof(__x)) 29724: _M_check_equal_allocators(__x); 29724: 29724: this->_M_transfer(__position._M_const_cast(), 29724: __i._M_const_cast(), __j); 29724: 29724: this->_M_inc_size(1); 29724: __x._M_dec_size(1); 29724: } 29724: # 1688 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: splice(const_iterator __position, list& __x, const_iterator __i) noexcept 29724: { splice(__position, std::move(__x), __i); } 29724: # 1707 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: splice(const_iterator __position, list&& __x, const_iterator __first, 29724: const_iterator __last) noexcept 29724: # 1727 "/usr/include/c++/14/bits/stl_list.h" 3 29724: { 29724: if (__first != __last) 29724: { 29724: if (this != std::__addressof(__x)) 29724: _M_check_equal_allocators(__x); 29724: 29724: size_t __n = _S_distance(__first, __last); 29724: this->_M_inc_size(__n); 29724: __x._M_dec_size(__n); 29724: 29724: this->_M_transfer(__position._M_const_cast(), 29724: __first._M_const_cast(), 29724: __last._M_const_cast()); 29724: } 29724: } 29724: # 1757 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: splice(const_iterator __position, list& __x, const_iterator __first, 29724: const_iterator __last) noexcept 29724: { splice(__position, std::move(__x), __first, __last); } 29724: 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: 29724: typedef void __remove_return_type; 29724: 29724: 29724: public: 29724: # 1785 "/usr/include/c++/14/bits/stl_list.h" 3 29724: 29724: __remove_return_type 29724: remove(const _Tp& __value); 29724: # 1800 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: __remove_return_type 29724: remove_if(_Predicate); 29724: # 1814 "/usr/include/c++/14/bits/stl_list.h" 3 29724: 29724: __remove_return_type 29724: unique(); 29724: # 1830 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: __remove_return_type 29724: unique(_BinaryPredicate); 29724: # 1846 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: merge(list&& __x); 29724: 29724: void 29724: merge(list& __x) 29724: { merge(std::move(__x)); } 29724: # 1871 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: void 29724: merge(list&& __x, _StrictWeakOrdering __comp); 29724: 29724: template 29724: void 29724: merge(list& __x, _StrictWeakOrdering __comp) 29724: { merge(std::move(__x), __comp); } 29724: # 1890 "/usr/include/c++/14/bits/stl_list.h" 3 29724: void 29724: reverse() noexcept 29724: { this->_M_impl._M_node._M_reverse(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: sort(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: sort(_StrictWeakOrdering); 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: void 29724: _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) 29724: { _M_fill_initialize(static_cast(__n), __x); } 29724: 29724: 29724: template 29724: void 29724: _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, 29724: __false_type) 29724: { 29724: for (; __first != __last; ++__first) 29724: 29724: emplace_back(*__first); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: void 29724: _M_fill_initialize(size_type __n, const value_type& __x) 29724: { 29724: for (; __n; --__n) 29724: push_back(__x); 29724: } 29724: 29724: 29724: 29724: void 29724: _M_default_initialize(size_type __n) 29724: { 29724: for (; __n; --__n) 29724: emplace_back(); 29724: } 29724: 29724: 29724: void 29724: _M_default_append(size_type __n); 29724: # 1968 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: void 29724: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 29724: { _M_fill_assign(__n, __val); } 29724: 29724: 29724: template 29724: void 29724: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 29724: __false_type); 29724: 29724: 29724: 29724: void 29724: _M_fill_assign(size_type __n, const value_type& __val); 29724: 29724: 29724: 29724: void 29724: _M_transfer(iterator __position, iterator __first, iterator __last) 29724: { __position._M_node->_M_transfer(__first._M_node, __last._M_node); } 29724: # 2000 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: void 29724: _M_insert(iterator __position, _Args&&... __args) 29724: { 29724: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 29724: __tmp->_M_hook(__position._M_node); 29724: this->_M_inc_size(1); 29724: } 29724: 29724: 29724: 29724: void 29724: _M_erase(iterator __position) noexcept 29724: { 29724: this->_M_dec_size(1); 29724: __position._M_node->_M_unhook(); 29724: _Node* __n = static_cast<_Node*>(__position._M_node); 29724: 29724: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __n->_M_valptr()); 29724: 29724: 29724: 29724: 29724: _M_put_node(__n); 29724: } 29724: 29724: 29724: void 29724: _M_check_equal_allocators(const list& __x) noexcept 29724: { 29724: if (_M_get_Node_allocator() != __x._M_get_Node_allocator()) 29724: __builtin_abort(); 29724: } 29724: 29724: 29724: const_iterator 29724: _M_resize_pos(size_type& __new_size) const; 29724: 29724: 29724: void 29724: _M_move_assign(list&& __x, true_type) noexcept 29724: { 29724: this->clear(); 29724: this->_M_move_nodes(std::move(__x)); 29724: std::__alloc_on_move(this->_M_get_Node_allocator(), 29724: __x._M_get_Node_allocator()); 29724: } 29724: 29724: void 29724: _M_move_assign(list&& __x, false_type) 29724: { 29724: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 29724: _M_move_assign(std::move(__x), true_type{}); 29724: else 29724: 29724: 29724: _M_assign_dispatch(std::make_move_iterator(__x.begin()), 29724: std::make_move_iterator(__x.end()), 29724: __false_type{}); 29724: } 29724: 29724: 29724: 29724: 29724: struct _Finalize_merge 29724: { 29724: explicit 29724: _Finalize_merge(list& __dest, list& __src, const iterator& __src_next) 29724: : _M_dest(__dest), _M_src(__src), _M_next(__src_next) 29724: { } 29724: 29724: ~_Finalize_merge() 29724: { 29724: 29724: 29724: 29724: const size_t __num_unmerged = std::distance(_M_next, _M_src.end()); 29724: const size_t __orig_size = _M_src._M_get_size(); 29724: _M_dest._M_inc_size(__orig_size - __num_unmerged); 29724: _M_src._M_set_size(__num_unmerged); 29724: } 29724: 29724: list& _M_dest; 29724: list& _M_src; 29724: const iterator& _M_next; 29724: 29724: 29724: _Finalize_merge(const _Finalize_merge&) = delete; 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: template::value_type, 29724: typename _Allocator = allocator<_ValT>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireAllocator<_Allocator>> 29724: list(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29724: -> list<_ValT, _Allocator>; 29724: 29724: 29724: } 29724: # 2119 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { 29724: 29724: if (__x.size() != __y.size()) 29724: return false; 29724: 29724: 29724: typedef typename list<_Tp, _Alloc>::const_iterator const_iterator; 29724: const_iterator __end1 = __x.end(); 29724: const_iterator __end2 = __y.end(); 29724: 29724: const_iterator __i1 = __x.begin(); 29724: const_iterator __i2 = __y.begin(); 29724: while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) 29724: { 29724: ++__i1; 29724: ++__i2; 29724: } 29724: return __i1 == __end1 && __i2 == __end2; 29724: } 29724: # 2176 "/usr/include/c++/14/bits/stl_list.h" 3 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { return std::lexicographical_compare(__x.begin(), __x.end(), 29724: __y.begin(), __y.end()); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: [[__nodiscard__]] 29724: inline bool 29724: operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline ptrdiff_t 29724: __distance(std::_List_iterator<_Tp> __first, 29724: std::_List_iterator<_Tp> __last, 29724: input_iterator_tag __tag) 29724: { 29724: typedef std::_List_const_iterator<_Tp> _CIter; 29724: return std::__distance(_CIter(__first), _CIter(__last), __tag); 29724: } 29724: 29724: template 29724: inline ptrdiff_t 29724: __distance(std::_List_const_iterator<_Tp> __first, 29724: std::_List_const_iterator<_Tp> __last, 29724: input_iterator_tag) 29724: { 29724: typedef __detail::_List_node_header _Sentinel; 29724: std::_List_const_iterator<_Tp> __beyond = __last; 29724: ++__beyond; 29724: const bool __whole = __first == __beyond; 29724: if (__builtin_constant_p (__whole) && __whole) 29724: return static_cast(__last._M_node)->_M_size; 29724: 29724: ptrdiff_t __n = 0; 29724: while (__first != __last) 29724: { 29724: ++__first; 29724: ++__n; 29724: } 29724: return __n; 29724: } 29724: 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/list" 2 3 29724: # 1 "/usr/include/c++/14/bits/list.tcc" 1 3 29724: # 59 "/usr/include/c++/14/bits/list.tcc" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: void 29724: _List_base<_Tp, _Alloc>:: 29724: _M_clear() noexcept 29724: { 29724: typedef _List_node<_Tp> _Node; 29724: __detail::_List_node_base* __cur = _M_impl._M_node._M_next; 29724: while (__cur != &_M_impl._M_node) 29724: { 29724: _Node* __tmp = static_cast<_Node*>(__cur); 29724: __cur = __tmp->_M_next; 29724: _Tp* __val = __tmp->_M_valptr(); 29724: 29724: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __val); 29724: 29724: 29724: 29724: _M_put_node(__tmp); 29724: } 29724: } 29724: 29724: 29724: template 29724: template 29724: typename list<_Tp, _Alloc>::iterator 29724: list<_Tp, _Alloc>:: 29724: emplace(const_iterator __position, _Args&&... __args) 29724: { 29724: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 29724: __tmp->_M_hook(__position._M_const_cast()._M_node); 29724: this->_M_inc_size(1); 29724: return iterator(__tmp); 29724: } 29724: 29724: 29724: template 29724: typename list<_Tp, _Alloc>::iterator 29724: list<_Tp, _Alloc>:: 29724: 29724: insert(const_iterator __position, const value_type& __x) 29724: 29724: 29724: 29724: { 29724: _Node* __tmp = _M_create_node(__x); 29724: __tmp->_M_hook(__position._M_const_cast()._M_node); 29724: this->_M_inc_size(1); 29724: return iterator(__tmp); 29724: } 29724: 29724: 29724: template 29724: typename list<_Tp, _Alloc>::iterator 29724: list<_Tp, _Alloc>:: 29724: insert(const_iterator __position, size_type __n, const value_type& __x) 29724: { 29724: if (__n) 29724: { 29724: list __tmp(__n, __x, get_allocator()); 29724: iterator __it = __tmp.begin(); 29724: splice(__position, __tmp); 29724: return __it; 29724: } 29724: return __position._M_const_cast(); 29724: } 29724: 29724: template 29724: template 29724: typename list<_Tp, _Alloc>::iterator 29724: list<_Tp, _Alloc>:: 29724: insert(const_iterator __position, _InputIterator __first, 29724: _InputIterator __last) 29724: { 29724: list __tmp(__first, __last, get_allocator()); 29724: if (!__tmp.empty()) 29724: { 29724: iterator __it = __tmp.begin(); 29724: splice(__position, __tmp); 29724: return __it; 29724: } 29724: return __position._M_const_cast(); 29724: } 29724: 29724: 29724: template 29724: typename list<_Tp, _Alloc>::iterator 29724: list<_Tp, _Alloc>:: 29724: 29724: erase(const_iterator __position) noexcept 29724: 29724: 29724: 29724: { 29724: iterator __ret = iterator(__position._M_node->_M_next); 29724: _M_erase(__position._M_const_cast()); 29724: return __ret; 29724: } 29724: # 173 "/usr/include/c++/14/bits/list.tcc" 3 29724: template 29724: typename list<_Tp, _Alloc>::const_iterator 29724: list<_Tp, _Alloc>:: 29724: _M_resize_pos(size_type& __new_size) const 29724: { 29724: const_iterator __i; 29724: 29724: const size_type __len = size(); 29724: if (__new_size < __len) 29724: { 29724: if (__new_size <= __len / 2) 29724: { 29724: __i = begin(); 29724: std::advance(__i, __new_size); 29724: } 29724: else 29724: { 29724: __i = end(); 29724: ptrdiff_t __num_erase = __len - __new_size; 29724: std::advance(__i, -__num_erase); 29724: } 29724: __new_size = 0; 29724: return __i; 29724: } 29724: else 29724: __i = end(); 29724: 29724: 29724: 29724: 29724: 29724: __new_size -= __len; 29724: return __i; 29724: } 29724: 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: _M_default_append(size_type __n) 29724: { 29724: size_type __i = 0; 29724: try 29724: { 29724: for (; __i < __n; ++__i) 29724: emplace_back(); 29724: } 29724: catch(...) 29724: { 29724: for (; __i; --__i) 29724: pop_back(); 29724: throw; 29724: } 29724: } 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: resize(size_type __new_size) 29724: { 29724: const_iterator __i = _M_resize_pos(__new_size); 29724: if (__new_size) 29724: _M_default_append(__new_size); 29724: else 29724: erase(__i, end()); 29724: } 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: resize(size_type __new_size, const value_type& __x) 29724: { 29724: const_iterator __i = _M_resize_pos(__new_size); 29724: if (__new_size) 29724: insert(end(), __new_size, __x); 29724: else 29724: erase(__i, end()); 29724: } 29724: # 265 "/usr/include/c++/14/bits/list.tcc" 3 29724: template 29724: list<_Tp, _Alloc>& 29724: list<_Tp, _Alloc>:: 29724: operator=(const list& __x) 29724: { 29724: if (this != std::__addressof(__x)) 29724: { 29724: 29724: if (_Node_alloc_traits::_S_propagate_on_copy_assign()) 29724: { 29724: auto& __this_alloc = this->_M_get_Node_allocator(); 29724: auto& __that_alloc = __x._M_get_Node_allocator(); 29724: if (!_Node_alloc_traits::_S_always_equal() 29724: && __this_alloc != __that_alloc) 29724: { 29724: 29724: clear(); 29724: } 29724: std::__alloc_on_copy(__this_alloc, __that_alloc); 29724: } 29724: 29724: _M_assign_dispatch(__x.begin(), __x.end(), __false_type()); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: _M_fill_assign(size_type __n, const value_type& __val) 29724: { 29724: iterator __i = begin(); 29724: for (; __i != end() && __n > 0; ++__i, --__n) 29724: *__i = __val; 29724: if (__n > 0) 29724: insert(end(), __n, __val); 29724: else 29724: erase(__i, end()); 29724: } 29724: 29724: template 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: _M_assign_dispatch(_InputIterator __first2, _InputIterator __last2, 29724: __false_type) 29724: { 29724: iterator __first1 = begin(); 29724: iterator __last1 = end(); 29724: for (; __first1 != __last1 && __first2 != __last2; 29724: ++__first1, (void)++__first2) 29724: *__first1 = *__first2; 29724: if (__first2 == __last2) 29724: erase(__first1, __last1); 29724: else 29724: insert(__last1, __first2, __last2); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: typename list<_Tp, _Alloc>::__remove_return_type 29724: list<_Tp, _Alloc>:: 29724: remove(const value_type& __value) 29724: { 29724: 29724: 29724: 29724: list __to_destroy(get_allocator()); 29724: iterator __first = begin(); 29724: iterator __last = end(); 29724: while (__first != __last) 29724: { 29724: iterator __next = __first; 29724: ++__next; 29724: if (*__first == __value) 29724: { 29724: 29724: 29724: 29724: __to_destroy.splice(__to_destroy.begin(), *this, __first); 29724: 29724: 29724: 29724: } 29724: 29724: __first = __next; 29724: } 29724: 29724: 29724: 29724: 29724: return ; 29724: 29724: } 29724: 29724: template 29724: typename list<_Tp, _Alloc>::__remove_return_type 29724: list<_Tp, _Alloc>:: 29724: unique() 29724: { 29724: iterator __first = begin(); 29724: iterator __last = end(); 29724: if (__first == __last) 29724: return ; 29724: 29724: 29724: 29724: list __to_destroy(get_allocator()); 29724: iterator __next = __first; 29724: while (++__next != __last) 29724: { 29724: if (*__first == *__next) 29724: { 29724: __to_destroy.splice(__to_destroy.begin(), *this, __next); 29724: 29724: 29724: 29724: } 29724: else 29724: __first = __next; 29724: __next = __first; 29724: } 29724: 29724: 29724: 29724: 29724: return ; 29724: 29724: } 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: 29724: merge(list&& __x) 29724: 29724: 29724: 29724: { 29724: 29724: 29724: if (this != std::__addressof(__x)) 29724: { 29724: _M_check_equal_allocators(__x); 29724: 29724: iterator __first1 = begin(); 29724: iterator __last1 = end(); 29724: iterator __first2 = __x.begin(); 29724: iterator __last2 = __x.end(); 29724: 29724: const _Finalize_merge __fin(*this, __x, __first2); 29724: 29724: while (__first1 != __last1 && __first2 != __last2) 29724: if (*__first2 < *__first1) 29724: { 29724: iterator __next = __first2; 29724: _M_transfer(__first1, __first2, ++__next); 29724: __first2 = __next; 29724: } 29724: else 29724: ++__first1; 29724: if (__first2 != __last2) 29724: { 29724: _M_transfer(__last1, __first2, __last2); 29724: __first2 = __last2; 29724: } 29724: } 29724: } 29724: 29724: template 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: 29724: merge(list&& __x, _StrictWeakOrdering __comp) 29724: 29724: 29724: 29724: { 29724: 29724: 29724: if (this != std::__addressof(__x)) 29724: { 29724: _M_check_equal_allocators(__x); 29724: 29724: iterator __first1 = begin(); 29724: iterator __last1 = end(); 29724: iterator __first2 = __x.begin(); 29724: iterator __last2 = __x.end(); 29724: 29724: const _Finalize_merge __fin(*this, __x, __first2); 29724: 29724: while (__first1 != __last1 && __first2 != __last2) 29724: if (__comp(*__first2, *__first1)) 29724: { 29724: iterator __next = __first2; 29724: _M_transfer(__first1, __first2, ++__next); 29724: __first2 = __next; 29724: } 29724: else 29724: ++__first1; 29724: if (__first2 != __last2) 29724: { 29724: _M_transfer(__last1, __first2, __last2); 29724: __first2 = __last2; 29724: } 29724: } 29724: } 29724: 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: sort() 29724: { 29724: 29724: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 29724: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 29724: { 29724: using __detail::_Scratch_list; 29724: # 497 "/usr/include/c++/14/bits/list.tcc" 3 29724: _Scratch_list __carry; 29724: _Scratch_list __tmp[64]; 29724: _Scratch_list* __fill = __tmp; 29724: _Scratch_list* __counter; 29724: 29724: _Scratch_list::_Ptr_cmp __ptr_comp; 29724: 29724: try 29724: { 29724: do 29724: { 29724: __carry._M_take_one(begin()._M_node); 29724: 29724: for(__counter = __tmp; 29724: __counter != __fill && !__counter->empty(); 29724: ++__counter) 29724: { 29724: 29724: __counter->merge(__carry, __ptr_comp); 29724: __carry.swap(*__counter); 29724: } 29724: __carry.swap(*__counter); 29724: if (__counter == __fill) 29724: ++__fill; 29724: } 29724: while ( !empty() ); 29724: 29724: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 29724: __counter->merge(__counter[-1], __ptr_comp); 29724: __fill[-1].swap(this->_M_impl._M_node); 29724: } 29724: catch(...) 29724: { 29724: 29724: __carry._M_put_all(end()._M_node); 29724: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 29724: __tmp[__i]._M_put_all(end()._M_node); 29724: throw; 29724: } 29724: } 29724: } 29724: 29724: template 29724: template 29724: typename list<_Tp, _Alloc>::__remove_return_type 29724: list<_Tp, _Alloc>:: 29724: remove_if(_Predicate __pred) 29724: { 29724: 29724: 29724: 29724: list __to_destroy(get_allocator()); 29724: iterator __first = begin(); 29724: iterator __last = end(); 29724: while (__first != __last) 29724: { 29724: iterator __next = __first; 29724: ++__next; 29724: if (__pred(*__first)) 29724: { 29724: __to_destroy.splice(__to_destroy.begin(), *this, __first); 29724: 29724: 29724: 29724: } 29724: __first = __next; 29724: } 29724: 29724: 29724: 29724: 29724: return ; 29724: 29724: } 29724: 29724: template 29724: template 29724: typename list<_Tp, _Alloc>::__remove_return_type 29724: list<_Tp, _Alloc>:: 29724: unique(_BinaryPredicate __binary_pred) 29724: { 29724: iterator __first = begin(); 29724: iterator __last = end(); 29724: if (__first == __last) 29724: return ; 29724: 29724: 29724: 29724: list __to_destroy(get_allocator()); 29724: iterator __next = __first; 29724: while (++__next != __last) 29724: { 29724: if (__binary_pred(*__first, *__next)) 29724: { 29724: __to_destroy.splice(__to_destroy.begin(), *this, __next); 29724: 29724: 29724: 29724: } 29724: else 29724: __first = __next; 29724: __next = __first; 29724: } 29724: 29724: 29724: 29724: 29724: return ; 29724: 29724: } 29724: 29724: 29724: 29724: template 29724: template 29724: void 29724: list<_Tp, _Alloc>:: 29724: sort(_StrictWeakOrdering __comp) 29724: { 29724: 29724: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 29724: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 29724: { 29724: using __detail::_Scratch_list; 29724: _Scratch_list __carry; 29724: _Scratch_list __tmp[64]; 29724: _Scratch_list* __fill = __tmp; 29724: _Scratch_list* __counter; 29724: 29724: _Scratch_list::_Ptr_cmp __ptr_comp 29724: = { __comp }; 29724: 29724: try 29724: { 29724: do 29724: { 29724: __carry._M_take_one(begin()._M_node); 29724: 29724: for(__counter = __tmp; 29724: __counter != __fill && !__counter->empty(); 29724: ++__counter) 29724: { 29724: 29724: __counter->merge(__carry, __ptr_comp); 29724: __carry.swap(*__counter); 29724: } 29724: __carry.swap(*__counter); 29724: if (__counter == __fill) 29724: ++__fill; 29724: } 29724: while ( !empty() ); 29724: 29724: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 29724: __counter->merge(__counter[-1], __ptr_comp); 29724: __fill[-1].swap(this->_M_impl._M_node); 29724: } 29724: catch(...) 29724: { 29724: 29724: __carry._M_put_all(end()._M_node); 29724: for (size_t __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 29724: __tmp[__i]._M_put_all(end()._M_node); 29724: throw; 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: } 29724: # 67 "/usr/include/c++/14/list" 2 3 29724: # 77 "/usr/include/c++/14/list" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 78 "/usr/include/c++/14/list" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template 29724: using list = std::list<_Tp, polymorphic_allocator<_Tp>>; 29724: } 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 2 29724: 29724: 29724: 29724: 29724: 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: namespace rocksdb { 29724: class CacheReservationManager; 29724: 29724: 29724: 29724: class StallInterface { 29724: public: 29724: virtual ~StallInterface() {} 29724: 29724: virtual void Block() = 0; 29724: 29724: virtual void Signal() = 0; 29724: }; 29724: 29724: class WriteBufferManager final { 29724: public: 29724: # 50 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: explicit WriteBufferManager(size_t _buffer_size, 29724: std::shared_ptr cache = {}, 29724: bool allow_stall = false); 29724: 29724: WriteBufferManager(const WriteBufferManager&) = delete; 29724: WriteBufferManager& operator=(const WriteBufferManager&) = delete; 29724: 29724: ~WriteBufferManager(); 29724: 29724: 29724: 29724: bool enabled() const { return buffer_size() > 0; } 29724: 29724: 29724: bool cost_to_cache() const { return cache_res_mgr_ != nullptr; } 29724: 29724: 29724: 29724: size_t memory_usage() const { 29724: return memory_used_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: size_t mutable_memtable_memory_usage() const { 29724: return memory_active_.load(std::memory_order_relaxed); 29724: } 29724: 29724: size_t dummy_entries_in_cache_usage() const; 29724: 29724: 29724: size_t buffer_size() const { 29724: return buffer_size_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: void SetBufferSize(size_t new_size) { 29724: 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29724: (static_cast ( 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: new_size > 0 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: "new_size > 0" 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: ; 29724: buffer_size_.store(new_size, std::memory_order_relaxed); 29724: mutable_limit_.store(new_size * 7 / 8, std::memory_order_relaxed); 29724: 29724: MaybeEndWriteStall(); 29724: } 29724: 29724: void SetAllowStall(bool new_allow_stall) { 29724: allow_stall_.store(new_allow_stall, std::memory_order_relaxed); 29724: MaybeEndWriteStall(); 29724: } 29724: 29724: 29724: 29724: 29724: bool ShouldFlush() const { 29724: if (enabled()) { 29724: if (mutable_memtable_memory_usage() > 29724: mutable_limit_.load(std::memory_order_relaxed)) { 29724: return true; 29724: } 29724: size_t local_size = buffer_size(); 29724: if (memory_usage() >= local_size && 29724: mutable_memtable_memory_usage() >= local_size / 2) { 29724: 29724: 29724: 29724: return true; 29724: } 29724: } 29724: return false; 29724: } 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29724: bool ShouldStall() const { 29724: if (!allow_stall_.load(std::memory_order_relaxed) || !enabled()) { 29724: return false; 29724: } 29724: 29724: return IsStallActive() || IsStallThresholdExceeded(); 29724: } 29724: 29724: 29724: bool IsStallActive() const { 29724: return stall_active_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: bool IsStallThresholdExceeded() const { 29724: return memory_usage() >= buffer_size_; 29724: } 29724: 29724: void ReserveMem(size_t mem); 29724: 29724: 29724: 29724: void ScheduleFreeMem(size_t mem); 29724: 29724: void FreeMem(size_t mem); 29724: 29724: 29724: 29724: void BeginWriteStall(StallInterface* wbm_stall); 29724: 29724: 29724: 29724: void MaybeEndWriteStall(); 29724: 29724: void RemoveDBFromQueue(StallInterface* wbm_stall); 29724: 29724: private: 29724: std::atomic buffer_size_; 29724: std::atomic mutable_limit_; 29724: std::atomic memory_used_; 29724: 29724: std::atomic memory_active_; 29724: std::shared_ptr cache_res_mgr_; 29724: 29724: std::mutex cache_res_mgr_mu_; 29724: 29724: std::list queue_; 29724: 29724: std::mutex mu_; 29724: std::atomic allow_stall_; 29724: 29724: 29724: std::atomic stall_active_; 29724: 29724: void ReserveMemWithCache(size_t mem); 29724: void FreeMemWithCache(size_t mem); 29724: }; 29724: } 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Cache; 29724: class CompactionFilter; 29724: class CompactionFilterFactory; 29724: class Comparator; 29724: class ConcurrentTaskLimiter; 29724: class Env; 29724: enum InfoLogLevel : unsigned char; 29724: class SstFileManager; 29724: class FilterPolicy; 29724: class Logger; 29724: class MergeOperator; 29724: class Snapshot; 29724: class MemTableRepFactory; 29724: class RateLimiter; 29724: class Slice; 29724: class Statistics; 29724: class InternalKeyComparator; 29724: class WalFilter; 29724: class FileSystem; 29724: 29724: struct Options; 29724: struct DbPath; 29724: 29724: using FileTypeSet = SmallEnumSet; 29724: 29724: struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions { 29724: 29724: 29724: 29724: 29724: 29724: 29724: ColumnFamilyOptions* OldDefaults(int rocksdb_major_version = 4, 29724: int rocksdb_minor_version = 6); 29724: 29724: 29724: 29724: 29724: 29724: ColumnFamilyOptions* OptimizeForSmallDb( 29724: std::shared_ptr* cache = nullptr); 29724: 29724: 29724: 29724: 29724: ColumnFamilyOptions* OptimizeForPointLookup(uint64_t block_cache_size_mb); 29724: # 102 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: ColumnFamilyOptions* OptimizeLevelStyleCompaction( 29724: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 29724: ColumnFamilyOptions* OptimizeUniversalStyleCompaction( 29724: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: const Comparator* comparator = BytewiseComparator(); 29724: # 128 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr merge_operator = nullptr; 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: const CompactionFilter* compaction_filter = nullptr; 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr compaction_filter_factory = nullptr; 29724: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t write_buffer_size = 64 << 20; 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: CompressionType compression; 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: CompressionType bottommost_compression = kDisableCompressionOption; 29724: 29724: 29724: 29724: 29724: 29724: CompressionOptions bottommost_compression_opts; 29724: 29724: 29724: CompressionOptions compression_opts; 29724: # 246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: int level0_file_num_compaction_trigger = 4; 29724: # 280 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr prefix_extractor = nullptr; 29724: # 294 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t max_bytes_for_level_base = 256 * 1048576; 29724: 29724: 29724: uint64_t snap_refresh_nanos = 0; 29724: 29724: 29724: 29724: 29724: 29724: bool disable_auto_compactions = false; 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr table_factory; 29724: # 323 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::vector cf_paths; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr compaction_thread_limiter = nullptr; 29724: # 340 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr sst_partitioner_factory = nullptr; 29724: # 351 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint32_t memtable_max_range_deletions = 0; 29724: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint32_t uncache_aggressiveness = 0; 29724: 29724: 29724: ColumnFamilyOptions(); 29724: 29724: explicit ColumnFamilyOptions(const Options& options); 29724: 29724: void Dump(Logger* log) const; 29724: }; 29724: 29724: enum class WALRecoveryMode : char { 29724: # 425 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: kTolerateCorruptedTailRecords = 0x00, 29724: 29724: 29724: 29724: 29724: kAbsoluteConsistency = 0x01, 29724: 29724: 29724: 29724: 29724: kPointInTimeRecovery = 0x02, 29724: 29724: 29724: 29724: 29724: 29724: kSkipAnyCorruptedRecords = 0x03, 29724: }; 29724: 29724: struct DbPath { 29724: std::string path; 29724: uint64_t target_size; 29724: 29724: DbPath() : target_size(0) {} 29724: DbPath(const std::string& p, uint64_t t) : path(p), target_size(t) {} 29724: }; 29724: 29724: extern const char* kHostnameForDbHostId; 29724: 29724: enum class CompactionServiceJobStatus : char { 29724: kSuccess, 29724: kFailure, 29724: kUseLocal, 29724: }; 29724: 29724: struct CompactionServiceJobInfo { 29724: std::string db_name; 29724: std::string db_id; 29724: std::string db_session_id; 29724: uint64_t job_id; 29724: 29724: 29724: 29724: 29724: Env::Priority priority; 29724: 29724: 29724: CompactionReason compaction_reason; 29724: bool is_full_compaction; 29724: bool is_manual_compaction; 29724: bool bottommost_level; 29724: 29724: CompactionServiceJobInfo(std::string db_name_, std::string db_id_, 29724: std::string db_session_id_, uint64_t job_id_, 29724: Env::Priority priority_, 29724: CompactionReason compaction_reason_, 29724: bool is_full_compaction_, bool is_manual_compaction_, 29724: bool bottommost_level_) 29724: : db_name(std::move(db_name_)), 29724: db_id(std::move(db_id_)), 29724: db_session_id(std::move(db_session_id_)), 29724: job_id(job_id_), 29724: priority(priority_), 29724: compaction_reason(compaction_reason_), 29724: is_full_compaction(is_full_compaction_), 29724: is_manual_compaction(is_manual_compaction_), 29724: bottommost_level(bottommost_level_) {} 29724: }; 29724: 29724: struct CompactionServiceScheduleResponse { 29724: std::string scheduled_job_id; 29724: 29724: CompactionServiceJobStatus status; 29724: CompactionServiceScheduleResponse(std::string scheduled_job_id_, 29724: CompactionServiceJobStatus status_) 29724: : scheduled_job_id(scheduled_job_id_), status(status_) {} 29724: explicit CompactionServiceScheduleResponse(CompactionServiceJobStatus status_) 29724: : status(status_) {} 29724: }; 29724: 29724: 29724: 29724: 29724: class CompactionService : public Customizable { 29724: public: 29724: static const char* Type() { return "CompactionService"; } 29724: 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: virtual CompactionServiceScheduleResponse Schedule( 29724: const CompactionServiceJobInfo& , 29724: const std::string& ) { 29724: CompactionServiceScheduleResponse response( 29724: CompactionServiceJobStatus::kUseLocal); 29724: return response; 29724: } 29724: 29724: 29724: virtual CompactionServiceJobStatus Wait( 29724: const std::string& , std::string* ) { 29724: return CompactionServiceJobStatus::kUseLocal; 29724: } 29724: 29724: 29724: virtual void OnInstallation(const std::string& , 29724: CompactionServiceJobStatus ) {} 29724: 29724: ~CompactionService() override = default; 29724: }; 29724: 29724: struct DBOptions { 29724: 29724: 29724: 29724: 29724: 29724: DBOptions* OldDefaults(int rocksdb_major_version = 4, 29724: int rocksdb_minor_version = 6); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: DBOptions* OptimizeForSmallDb(std::shared_ptr* cache = nullptr); 29724: 29724: 29724: 29724: 29724: 29724: 29724: DBOptions* IncreaseParallelism(int total_threads = 16); 29724: 29724: 29724: 29724: bool create_if_missing = false; 29724: 29724: 29724: 29724: 29724: bool create_missing_column_families = false; 29724: 29724: 29724: 29724: bool error_if_exists = false; 29724: # 588 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool paranoid_checks = true; 29724: # 600 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool flush_verify_memtable_count = true; 29724: # 617 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool compaction_verify_record_count = true; 29724: # 633 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool track_and_verify_wals_in_manifest = false; 29724: # 653 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool verify_sst_unique_id_in_manifest = true; 29724: 29724: 29724: 29724: 29724: Env* env = Env::Default(); 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr rate_limiter = nullptr; 29724: # 692 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr sst_file_manager = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr info_log = nullptr; 29724: 29724: 29724: 29724: 29724: InfoLogLevel info_log_level = Logger::kDefaultLogLevel; 29724: # 718 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: int max_open_files = -1; 29724: 29724: 29724: 29724: 29724: int max_file_opening_threads = 16; 29724: # 746 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t max_total_wal_size = 0; 29724: 29724: 29724: std::shared_ptr statistics = nullptr; 29724: # 759 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool use_fsync = false; 29724: # 785 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::vector db_paths; 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::string db_log_dir = ""; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::string wal_dir = ""; 29724: # 810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t delete_obsolete_files_period_micros = 6ULL * 60 * 60 * 1000000; 29724: 29724: 29724: 29724: 29724: 29724: 29724: int max_background_jobs = 2; 29724: # 835 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: int max_background_compactions = -1; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t max_subcompactions = 1; 29724: # 865 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: int max_background_flushes = -1; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t max_log_file_size = 0; 29724: 29724: 29724: 29724: 29724: 29724: size_t log_file_time_to_roll = 0; 29724: 29724: 29724: 29724: size_t keep_log_file_num = 1000; 29724: # 892 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t recycle_log_file_num = 0; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t max_manifest_file_size = 1024 * 1024 * 1024; 29724: 29724: 29724: int table_cache_numshardbits = 6; 29724: # 920 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t WAL_ttl_seconds = 0; 29724: uint64_t WAL_size_limit_MB = 0; 29724: 29724: 29724: 29724: 29724: 29724: size_t manifest_preallocation_size = 4 * 1024 * 1024; 29724: # 940 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_mmap_reads = false; 29724: 29724: 29724: 29724: 29724: bool allow_mmap_writes = false; 29724: # 957 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool use_direct_reads = false; 29724: 29724: 29724: 29724: bool use_direct_io_for_flush_and_compaction = false; 29724: # 972 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_fallocate = true; 29724: 29724: 29724: bool is_fd_close_on_exec = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: unsigned int stats_dump_period_sec = 600; 29724: 29724: 29724: 29724: unsigned int stats_persist_period_sec = 600; 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool persist_stats_to_disk = false; 29724: 29724: 29724: 29724: 29724: size_t stats_history_buffer_size = 1024 * 1024; 29724: 29724: 29724: 29724: 29724: bool advise_random_on_open = true; 29724: # 1020 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t db_write_buffer_size = 0; 29724: # 1037 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr write_buffer_manager = nullptr; 29724: # 1046 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t compaction_readahead_size = 2 * 1024 * 1024; 29724: # 1063 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t random_access_max_buffer_size = 1024 * 1024; 29724: # 1074 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t writable_file_max_buffer_size = 1024 * 1024; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool use_adaptive_mutex = false; 29724: 29724: 29724: DBOptions(); 29724: 29724: explicit DBOptions(const Options& options); 29724: 29724: void Dump(Logger* log) const; 29724: # 1106 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t bytes_per_sync = 0; 29724: # 1116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t wal_bytes_per_sync = 0; 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool strict_bytes_per_sync = false; 29724: 29724: 29724: 29724: std::vector> listeners; 29724: 29724: 29724: 29724: 29724: 29724: bool enable_thread_tracking = false; 29724: # 1165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t delayed_write_rate = 0; 29724: # 1180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool enable_pipelined_write = false; 29724: # 1206 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool unordered_write = false; 29724: # 1216 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_concurrent_memtable_write = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool enable_write_thread_adaptive_yield = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t max_write_batch_group_size_bytes = 1 << 20; 29724: # 1240 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t write_thread_max_yield_usec = 100; 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t write_thread_slow_yield_usec = 3; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool skip_stats_update_on_db_open = false; 29724: # 1268 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool skip_checking_sst_file_sizes_on_db_open = false; 29724: 29724: 29724: 29724: WALRecoveryMode wal_recovery_mode = WALRecoveryMode::kPointInTimeRecovery; 29724: 29724: 29724: 29724: bool allow_2pc = false; 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr row_cache = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: 29724: WalFilter* wal_filter = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool fail_if_options_file_error = true; 29724: 29724: 29724: 29724: 29724: bool dump_malloc_stats = false; 29724: # 1311 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool avoid_flush_during_recovery = false; 29724: # 1320 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool avoid_flush_during_shutdown = false; 29724: # 1335 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_ingest_behind = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool two_write_queues = false; 29724: 29724: 29724: 29724: 29724: bool manual_wal_flush = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: CompressionType wal_compression = kNoCompression; 29724: # 1363 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool background_close_inactive_wals = false; 29724: # 1377 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool atomic_flush = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool avoid_unnecessary_blocking_io = false; 29724: # 1397 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool write_dbid_to_manifest = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool write_identity_file = true; 29724: # 1415 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool prefix_seek_opt_in_only = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t log_readahead_size = 0; 29724: # 1431 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr file_checksum_gen_factory = nullptr; 29724: # 1480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool best_efforts_recovery = false; 29724: # 1490 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: int max_bgerror_resume_count = 0x7fffffff 29724: # 1490 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t bgerror_resume_retry_interval = 1000000; 29724: # 1506 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_data_in_errors = false; 29724: # 1519 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::string db_host_id = kHostnameForDbHostId; 29724: # 1529 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: FileTypeSet checksum_handoff_file_types; 29724: # 1538 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::shared_ptr compaction_service = nullptr; 29724: # 1550 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: CacheTier lowest_used_cache_tier = CacheTier::kNonVolatileBlockTier; 29724: # 1565 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool enforce_single_del_contracts = true; 29724: # 1582 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::string daily_offpeak_time_utc = ""; 29724: # 1592 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: uint64_t follower_refresh_catchup_period_ms = 10000; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t follower_catchup_retry_count = 10; 29724: 29724: 29724: 29724: uint64_t follower_catchup_retry_wait_ms = 100; 29724: 29724: 29724: 29724: 29724: 29724: Temperature metadata_write_temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: 29724: Temperature wal_write_temperature = Temperature::kUnknown; 29724: 29724: }; 29724: 29724: 29724: struct Options : public DBOptions, public ColumnFamilyOptions { 29724: 29724: Options() : DBOptions(), ColumnFamilyOptions() {} 29724: 29724: Options(const DBOptions& db_options, 29724: const ColumnFamilyOptions& column_family_options) 29724: : DBOptions(db_options), ColumnFamilyOptions(column_family_options) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: Options* OldDefaults(int rocksdb_major_version = 4, 29724: int rocksdb_minor_version = 6); 29724: 29724: void Dump(Logger* log) const; 29724: 29724: void DumpCFOptions(Logger* log) const; 29724: # 1650 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: Options* PrepareForBulkLoad(); 29724: 29724: 29724: 29724: Options* OptimizeForSmallDb(); 29724: 29724: 29724: 29724: 29724: 29724: Options* DisableExtraChecks(); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum ReadTier { 29724: kReadAllTier = 0x0, 29724: kBlockCacheTier = 0x1, 29724: kPersistedTier = 0x2, 29724: 29724: 29724: 29724: kMemtableTier = 0x3 29724: }; 29724: 29724: 29724: struct ReadOptions { 29724: 29724: 29724: 29724: 29724: 29724: 29724: const Snapshot* snapshot = nullptr; 29724: # 1699 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: const Slice* timestamp = nullptr; 29724: const Slice* iter_start_ts = nullptr; 29724: # 1711 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: std::chrono::microseconds deadline = std::chrono::microseconds::zero(); 29724: 29724: 29724: 29724: 29724: 29724: std::chrono::microseconds io_timeout = std::chrono::microseconds::zero(); 29724: 29724: 29724: 29724: 29724: ReadTier read_tier = kReadAllTier; 29724: # 1736 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 29724: 29724: 29724: 29724: 29724: uint64_t value_size_soft_limit = std::numeric_limits::max(); 29724: 29724: 29724: 29724: 29724: 29724: std::optional merge_operand_count_threshold; 29724: 29724: 29724: 29724: bool verify_checksums = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool fill_cache = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool ignore_range_deletions = false; 29724: 29724: 29724: 29724: 29724: bool async_io = false; 29724: # 1779 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool optimize_multiget_for_io = true; 29724: # 1792 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: size_t readahead_size = 0; 29724: 29724: 29724: 29724: 29724: uint64_t max_skippable_internal_keys = 0; 29724: # 1810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: const Slice* iterate_lower_bound = nullptr; 29724: # 1830 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: const Slice* iterate_upper_bound = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: bool tailing = false; 29724: 29724: 29724: 29724: bool managed = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool total_order_seek = false; 29724: # 1863 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool auto_prefix_mode = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool prefix_same_as_start = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool pin_data = false; 29724: # 1888 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool adaptive_readahead = false; 29724: 29724: 29724: 29724: 29724: bool background_purge_on_iterator_cleanup = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::function table_filter; 29724: # 1928 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool auto_readahead_size = true; 29724: # 1941 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_unprepared_value = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29724: 29724: 29724: 29724: ReadOptions() {} 29724: ReadOptions(bool _verify_checksums, bool _fill_cache); 29724: explicit ReadOptions(Env::IOActivity _io_activity); 29724: }; 29724: 29724: 29724: struct WriteOptions { 29724: # 1975 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool sync = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool disableWAL = false; 29724: 29724: 29724: 29724: 29724: 29724: bool ignore_missing_column_families = false; 29724: 29724: 29724: 29724: 29724: bool no_slowdown = false; 29724: # 2003 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool low_pri = false; 29724: # 2012 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool memtable_insert_hint_per_batch = false; 29724: # 2027 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t protection_bytes_per_key = 0; 29724: 29724: 29724: 29724: 29724: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29724: 29724: WriteOptions() {} 29724: explicit WriteOptions(Env::IOActivity _io_activity); 29724: explicit WriteOptions( 29724: Env::IOPriority _rate_limiter_priority, 29724: Env::IOActivity _io_activity = Env::IOActivity::kUnknown); 29724: }; 29724: 29724: 29724: struct FlushOptions { 29724: 29724: 29724: bool wait; 29724: 29724: 29724: 29724: 29724: 29724: bool allow_write_stall; 29724: 29724: FlushOptions() : wait(true), allow_write_stall(false) {} 29724: }; 29724: 29724: 29724: Status CreateLoggerFromOptions(const std::string& dbname, 29724: const DBOptions& options, 29724: std::shared_ptr* logger); 29724: 29724: 29724: struct CompactionOptions { 29724: # 2082 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: CompressionType compression; 29724: 29724: 29724: 29724: uint64_t output_file_size_limit; 29724: 29724: 29724: uint32_t max_subcompactions; 29724: 29724: CompactionOptions() 29724: : compression(kDisableCompressionOption), 29724: output_file_size_limit(std::numeric_limits::max()), 29724: max_subcompactions(0) {} 29724: }; 29724: 29724: 29724: 29724: enum class BottommostLevelCompaction { 29724: 29724: kSkip, 29724: 29724: 29724: 29724: 29724: 29724: kIfHaveCompactionFilter, 29724: 29724: kForce, 29724: 29724: 29724: kForceOptimized, 29724: }; 29724: 29724: 29724: 29724: enum class BlobGarbageCollectionPolicy { 29724: 29724: kForce, 29724: 29724: kDisable, 29724: 29724: kUseDefault, 29724: }; 29724: 29724: 29724: struct CompactRangeOptions { 29724: 29724: 29724: 29724: 29724: bool exclusive_manual_compaction = false; 29724: 29724: 29724: 29724: bool change_level = false; 29724: 29724: 29724: int target_level = -1; 29724: 29724: 29724: uint32_t target_path_id = 0; 29724: 29724: 29724: BottommostLevelCompaction bottommost_level_compaction = 29724: BottommostLevelCompaction::kIfHaveCompactionFilter; 29724: 29724: 29724: bool allow_write_stall = false; 29724: 29724: uint32_t max_subcompactions = 0; 29724: 29724: 29724: const Slice* full_history_ts_low = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: std::atomic* canceled = nullptr; 29724: # 2173 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: BlobGarbageCollectionPolicy blob_garbage_collection_policy = 29724: BlobGarbageCollectionPolicy::kUseDefault; 29724: 29724: 29724: 29724: 29724: 29724: double blob_garbage_collection_age_cutoff = -1; 29724: }; 29724: 29724: 29724: struct IngestExternalFileOptions { 29724: 29724: 29724: 29724: 29724: 29724: bool move_files = false; 29724: 29724: 29724: bool link_files = false; 29724: 29724: 29724: bool failed_move_fall_back_to_copy = true; 29724: 29724: 29724: bool snapshot_consistency = true; 29724: 29724: 29724: 29724: 29724: bool allow_global_seqno = true; 29724: 29724: 29724: bool allow_blocking_flush = true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool ingest_behind = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool write_global_seqno = false; 29724: 29724: 29724: 29724: 29724: bool verify_checksums_before_ingest = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t verify_checksums_readahead_size = 0; 29724: # 2255 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool verify_file_checksum = true; 29724: # 2265 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool fail_if_not_bottommost_level = false; 29724: # 2278 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: bool allow_db_generated_files = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool fill_cache = true; 29724: }; 29724: 29724: enum TraceFilterType : uint64_t { 29724: 29724: kTraceFilterNone = 0x0, 29724: 29724: kTraceFilterGet = 0x1 << 0, 29724: 29724: kTraceFilterWrite = 0x1 << 1, 29724: 29724: kTraceFilterIteratorSeek = 0x1 << 2, 29724: 29724: kTraceFilterIteratorSeekForPrev = 0x1 << 3, 29724: 29724: kTraceFilterMultiGet = 0x1 << 4, 29724: }; 29724: 29724: 29724: struct TraceOptions { 29724: 29724: 29724: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 29724: 29724: 29724: uint64_t sampling_frequency = 1; 29724: 29724: uint64_t filter = kTraceFilterNone; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool preserve_write_order = false; 29724: }; 29724: 29724: 29724: struct ImportColumnFamilyOptions { 29724: 29724: bool move_files = false; 29724: }; 29724: 29724: 29724: struct SizeApproximationOptions { 29724: 29724: 29724: bool include_memtables = false; 29724: 29724: 29724: bool include_files = true; 29724: # 2346 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29724: double files_size_error_margin = -1.0; 29724: }; 29724: 29724: struct CompactionServiceOptionsOverride { 29724: Env* env = Env::Default(); 29724: std::shared_ptr file_checksum_gen_factory = nullptr; 29724: 29724: const Comparator* comparator = BytewiseComparator(); 29724: std::shared_ptr merge_operator = nullptr; 29724: const CompactionFilter* compaction_filter = nullptr; 29724: std::shared_ptr compaction_filter_factory = nullptr; 29724: std::shared_ptr prefix_extractor = nullptr; 29724: std::shared_ptr table_factory; 29724: std::shared_ptr sst_partitioner_factory = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::vector> listeners; 29724: 29724: 29724: 29724: 29724: std::shared_ptr statistics = nullptr; 29724: 29724: 29724: 29724: std::vector> 29724: table_properties_collector_factories; 29724: }; 29724: 29724: struct OpenAndCompactOptions { 29724: 29724: std::atomic* canceled = nullptr; 29724: }; 29724: 29724: struct LiveFilesStorageInfoOptions { 29724: 29724: bool include_checksum_info = false; 29724: 29724: 29724: 29724: uint64_t wal_size_for_flush = 0; 29724: }; 29724: 29724: struct WaitForCompactOptions { 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool abort_on_pause = false; 29724: 29724: 29724: bool flush = false; 29724: 29724: 29724: bool wait_for_purge = false; 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool close_db = false; 29724: 29724: 29724: 29724: 29724: 29724: std::chrono::microseconds timeout = std::chrono::microseconds::zero(); 29724: }; 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_reader_caller.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: enum TableReaderCaller : char { 29724: kUserGet = 1, 29724: kUserMultiGet = 2, 29724: kUserIterator = 3, 29724: kUserApproximateSize = 4, 29724: kUserVerifyChecksum = 5, 29724: kSSTDumpTool = 6, 29724: kExternalSSTIngestion = 7, 29724: kRepair = 8, 29724: kPrefetch = 9, 29724: kCompaction = 10, 29724: 29724: 29724: kCompactionRefill = 11, 29724: 29724: 29724: kFlush = 12, 29724: 29724: kSSTFileReader = 13, 29724: 29724: 29724: kUncategorized = 14, 29724: 29724: kMaxBlockCacheLookupCaller 29724: }; 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_reader_writer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_reader_writer.h" 29724: class TraceWriter { 29724: public: 29724: virtual ~TraceWriter() = default; 29724: 29724: virtual Status Write(const Slice& data) = 0; 29724: virtual Status Close() = 0; 29724: virtual uint64_t GetFileSize() = 0; 29724: }; 29724: 29724: 29724: 29724: class TraceReader { 29724: public: 29724: virtual ~TraceReader() = default; 29724: 29724: virtual Status Read(std::string* data) = 0; 29724: virtual Status Close() = 0; 29724: 29724: 29724: 29724: virtual Status Reset() = 0; 29724: }; 29724: 29724: 29724: 29724: Status NewFileTraceWriter(Env* env, const EnvOptions& env_options, 29724: const std::string& trace_filename, 29724: std::unique_ptr* trace_writer); 29724: Status NewFileTraceReader(Env* env, const EnvOptions& env_options, 29724: const std::string& trace_filename, 29724: std::unique_ptr* trace_reader); 29724: 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_record.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_record.h" 29724: namespace rocksdb { 29724: 29724: class ColumnFamilyHandle; 29724: class DB; 29724: 29724: 29724: enum TraceType : char { 29724: kTraceNone = 0, 29724: kTraceBegin = 1, 29724: kTraceEnd = 2, 29724: 29724: kTraceWrite = 3, 29724: kTraceGet = 4, 29724: kTraceIteratorSeek = 5, 29724: kTraceIteratorSeekForPrev = 6, 29724: 29724: kBlockTraceIndexBlock = 7, 29724: 29724: kBlockTraceFilterBlock = 8, 29724: kBlockTraceDataBlock = 9, 29724: kBlockTraceUncompressionDictBlock = 10, 29724: kBlockTraceRangeDeletionBlock = 11, 29724: 29724: kIOTracer = 12, 29724: 29724: kTraceMultiGet = 13, 29724: 29724: kTraceMax, 29724: }; 29724: 29724: class GetQueryTraceRecord; 29724: class IteratorSeekQueryTraceRecord; 29724: class MultiGetQueryTraceRecord; 29724: class TraceRecordResult; 29724: class WriteQueryTraceRecord; 29724: 29724: 29724: class TraceRecord { 29724: public: 29724: explicit TraceRecord(uint64_t timestamp); 29724: 29724: virtual ~TraceRecord() = default; 29724: 29724: 29724: virtual TraceType GetTraceType() const = 0; 29724: 29724: 29724: virtual uint64_t GetTimestamp() const; 29724: 29724: class Handler { 29724: public: 29724: virtual ~Handler() = default; 29724: 29724: virtual Status Handle(const WriteQueryTraceRecord& record, 29724: std::unique_ptr* result) = 0; 29724: 29724: virtual Status Handle(const GetQueryTraceRecord& record, 29724: std::unique_ptr* result) = 0; 29724: 29724: virtual Status Handle(const IteratorSeekQueryTraceRecord& record, 29724: std::unique_ptr* result) = 0; 29724: 29724: virtual Status Handle(const MultiGetQueryTraceRecord& record, 29724: std::unique_ptr* result) = 0; 29724: }; 29724: 29724: 29724: virtual Status Accept(Handler* handler, 29724: std::unique_ptr* result) = 0; 29724: 29724: 29724: static Handler* NewExecutionHandler( 29724: DB* db, const std::vector& handles); 29724: 29724: private: 29724: uint64_t timestamp_; 29724: }; 29724: 29724: 29724: class QueryTraceRecord : public TraceRecord { 29724: public: 29724: explicit QueryTraceRecord(uint64_t timestamp); 29724: }; 29724: 29724: 29724: class WriteQueryTraceRecord : public QueryTraceRecord { 29724: public: 29724: WriteQueryTraceRecord(PinnableSlice&& write_batch_rep, uint64_t timestamp); 29724: 29724: WriteQueryTraceRecord(const std::string& write_batch_rep, uint64_t timestamp); 29724: 29724: ~WriteQueryTraceRecord() override; 29724: 29724: TraceType GetTraceType() const override { return kTraceWrite; } 29724: 29724: 29724: virtual Slice GetWriteBatchRep() const; 29724: 29724: Status Accept(Handler* handler, 29724: std::unique_ptr* result) override; 29724: 29724: private: 29724: PinnableSlice rep_; 29724: }; 29724: 29724: 29724: class GetQueryTraceRecord : public QueryTraceRecord { 29724: public: 29724: GetQueryTraceRecord(uint32_t column_family_id, PinnableSlice&& key, 29724: uint64_t timestamp); 29724: 29724: GetQueryTraceRecord(uint32_t column_family_id, const std::string& key, 29724: uint64_t timestamp); 29724: 29724: ~GetQueryTraceRecord() override; 29724: 29724: TraceType GetTraceType() const override { return kTraceGet; } 29724: 29724: 29724: virtual uint32_t GetColumnFamilyID() const; 29724: 29724: 29724: virtual Slice GetKey() const; 29724: 29724: Status Accept(Handler* handler, 29724: std::unique_ptr* result) override; 29724: 29724: private: 29724: uint32_t cf_id_; 29724: PinnableSlice key_; 29724: }; 29724: 29724: 29724: class IteratorQueryTraceRecord : public QueryTraceRecord { 29724: public: 29724: explicit IteratorQueryTraceRecord(uint64_t timestamp); 29724: 29724: IteratorQueryTraceRecord(PinnableSlice&& lower_bound, 29724: PinnableSlice&& upper_bound, uint64_t timestamp); 29724: 29724: IteratorQueryTraceRecord(const std::string& lower_bound, 29724: const std::string& upper_bound, uint64_t timestamp); 29724: 29724: ~IteratorQueryTraceRecord() override; 29724: 29724: 29724: 29724: virtual Slice GetLowerBound() const; 29724: virtual Slice GetUpperBound() const; 29724: 29724: private: 29724: PinnableSlice lower_; 29724: PinnableSlice upper_; 29724: }; 29724: 29724: 29724: class IteratorSeekQueryTraceRecord : public IteratorQueryTraceRecord { 29724: public: 29724: 29724: enum SeekType { 29724: kSeek = kTraceIteratorSeek, 29724: kSeekForPrev = kTraceIteratorSeekForPrev 29724: }; 29724: 29724: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29724: PinnableSlice&& key, uint64_t timestamp); 29724: 29724: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29724: const std::string& key, uint64_t timestamp); 29724: 29724: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29724: PinnableSlice&& key, PinnableSlice&& lower_bound, 29724: PinnableSlice&& upper_bound, uint64_t timestamp); 29724: 29724: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29724: const std::string& key, 29724: const std::string& lower_bound, 29724: const std::string& upper_bound, 29724: uint64_t timestamp); 29724: 29724: ~IteratorSeekQueryTraceRecord() override; 29724: 29724: 29724: TraceType GetTraceType() const override; 29724: 29724: 29724: virtual SeekType GetSeekType() const; 29724: 29724: 29724: virtual uint32_t GetColumnFamilyID() const; 29724: 29724: 29724: virtual Slice GetKey() const; 29724: 29724: Status Accept(Handler* handler, 29724: std::unique_ptr* result) override; 29724: 29724: private: 29724: SeekType type_; 29724: uint32_t cf_id_; 29724: PinnableSlice key_; 29724: }; 29724: 29724: 29724: class MultiGetQueryTraceRecord : public QueryTraceRecord { 29724: public: 29724: MultiGetQueryTraceRecord(std::vector column_family_ids, 29724: std::vector&& keys, 29724: uint64_t timestamp); 29724: 29724: MultiGetQueryTraceRecord(std::vector column_family_ids, 29724: const std::vector& keys, 29724: uint64_t timestamp); 29724: 29724: ~MultiGetQueryTraceRecord() override; 29724: 29724: TraceType GetTraceType() const override { return kTraceMultiGet; } 29724: 29724: 29724: virtual std::vector GetColumnFamilyIDs() const; 29724: 29724: 29724: virtual std::vector GetKeys() const; 29724: 29724: Status Accept(Handler* handler, 29724: std::unique_ptr* result) override; 29724: 29724: private: 29724: std::vector cf_ids_; 29724: std::vector keys_; 29724: }; 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: struct BlockCacheTraceRecord { 29724: 29724: uint64_t access_timestamp = 0; 29724: 29724: 29724: 29724: 29724: std::string block_key; 29724: 29724: 29724: TraceType block_type = TraceType::kTraceMax; 29724: 29724: 29724: uint64_t block_size = 0; 29724: 29724: 29724: 29724: 29724: uint64_t cf_id = 0; 29724: 29724: 29724: std::string cf_name; 29724: 29724: 29724: uint32_t level = 0; 29724: 29724: 29724: uint64_t sst_fd_number = 0; 29724: 29724: 29724: 29724: 29724: TableReaderCaller caller = TableReaderCaller::kMaxBlockCacheLookupCaller; 29724: 29724: 29724: bool is_cache_hit = false; 29724: 29724: 29724: bool no_insert = false; 29724: 29724: 29724: 29724: 29724: uint64_t get_id = kReservedGetId; 29724: 29724: 29724: bool get_from_user_specified_snapshot = false; 29724: 29724: 29724: std::string referenced_key; 29724: 29724: 29724: 29724: 29724: uint64_t referenced_data_size = 0; 29724: 29724: 29724: uint64_t num_keys_in_block = 0; 29724: 29724: 29724: bool referenced_key_exist_in_block = false; 29724: 29724: static const uint64_t kReservedGetId; 29724: 29724: BlockCacheTraceRecord() {} 29724: 29724: BlockCacheTraceRecord(uint64_t _access_timestamp, std::string _block_key, 29724: TraceType _block_type, uint64_t _block_size, 29724: uint64_t _cf_id, std::string _cf_name, uint32_t _level, 29724: uint64_t _sst_fd_number, TableReaderCaller _caller, 29724: bool _is_cache_hit, bool _no_insert, uint64_t _get_id, 29724: bool _get_from_user_specified_snapshot = false, 29724: std::string _referenced_key = "", 29724: uint64_t _referenced_data_size = 0, 29724: uint64_t _num_keys_in_block = 0, 29724: bool _referenced_key_exist_in_block = false) 29724: : access_timestamp(_access_timestamp), 29724: block_key(_block_key), 29724: block_type(_block_type), 29724: block_size(_block_size), 29724: cf_id(_cf_id), 29724: cf_name(_cf_name), 29724: level(_level), 29724: sst_fd_number(_sst_fd_number), 29724: caller(_caller), 29724: is_cache_hit(_is_cache_hit), 29724: no_insert(_no_insert), 29724: get_id(_get_id), 29724: get_from_user_specified_snapshot(_get_from_user_specified_snapshot), 29724: referenced_key(_referenced_key), 29724: referenced_data_size(_referenced_data_size), 29724: num_keys_in_block(_num_keys_in_block), 29724: referenced_key_exist_in_block(_referenced_key_exist_in_block) {} 29724: }; 29724: 29724: 29724: struct BlockCacheTraceOptions { 29724: 29724: 29724: uint64_t sampling_frequency = 1; 29724: }; 29724: 29724: 29724: struct BlockCacheTraceWriterOptions { 29724: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 29724: }; 29724: 29724: 29724: 29724: 29724: class BlockCacheTraceWriter { 29724: public: 29724: virtual ~BlockCacheTraceWriter() {} 29724: 29724: 29724: virtual Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29724: const Slice& block_key, const Slice& cf_name, 29724: const Slice& referenced_key) = 0; 29724: 29724: 29724: 29724: virtual Status WriteHeader() = 0; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: std::unique_ptr NewBlockCacheTraceWriter( 29724: SystemClock* clock, const BlockCacheTraceWriterOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 1 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Iterator : public IteratorBase { 29724: public: 29724: Iterator() {} 29724: 29724: Iterator(const Iterator&) = delete; 29724: void operator=(const Iterator&) = delete; 29724: 29724: virtual ~Iterator() override {} 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: virtual Slice value() const = 0; 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: virtual const WideColumns& columns() const { 29724: 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: (static_cast ( 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: false 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: "false" 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: ; 29724: return kNoWideColumns; 29724: } 29724: # 90 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: virtual Status GetProperty(std::string prop_name, std::string* prop); 29724: 29724: virtual Slice timestamp() const { 29724: 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: (static_cast ( 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: false 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: "false" 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29724: ; 29724: return Slice(); 29724: } 29724: }; 29724: 29724: 29724: Iterator* NewEmptyIterator(); 29724: 29724: 29724: Iterator* NewErrorIterator(const Status& status); 29724: 29724: } 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct FileStorageInfo { 29724: 29724: std::string relative_filename; 29724: 29724: 29724: std::string directory; 29724: 29724: 29724: 29724: uint64_t file_number = 0; 29724: 29724: FileType file_type = kTempFile; 29724: 29724: 29724: uint64_t size = 0; 29724: 29724: 29724: Temperature temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: 29724: 29724: std::string file_checksum; 29724: 29724: 29724: 29724: 29724: 29724: std::string file_checksum_func_name; 29724: }; 29724: 29724: 29724: 29724: struct LiveFileStorageInfo : public FileStorageInfo { 29724: 29724: 29724: 29724: 29724: 29724: std::string replacement_contents; 29724: 29724: 29724: 29724: 29724: bool trim_to_size = false; 29724: }; 29724: 29724: 29724: 29724: struct SstFileMetaData : public FileStorageInfo { 29724: SstFileMetaData() { file_type = kTableFile; } 29724: 29724: SstFileMetaData(const std::string& _file_name, uint64_t _file_number, 29724: const std::string& _directory, uint64_t _size, 29724: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno, 29724: const std::string& _smallestkey, 29724: const std::string& _largestkey, uint64_t _num_reads_sampled, 29724: bool _being_compacted, Temperature _temperature, 29724: uint64_t _oldest_blob_file_number, 29724: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 29724: uint64_t _epoch_number, std::string& _file_checksum, 29724: std::string& _file_checksum_func_name) 29724: : smallest_seqno(_smallest_seqno), 29724: largest_seqno(_largest_seqno), 29724: smallestkey(_smallestkey), 29724: largestkey(_largestkey), 29724: num_reads_sampled(_num_reads_sampled), 29724: being_compacted(_being_compacted), 29724: num_entries(0), 29724: num_deletions(0), 29724: oldest_blob_file_number(_oldest_blob_file_number), 29724: oldest_ancester_time(_oldest_ancester_time), 29724: file_creation_time(_file_creation_time), 29724: epoch_number(_epoch_number) { 29724: if (!_file_name.empty()) { 29724: if (_file_name[0] == '/') { 29724: relative_filename = _file_name.substr(1); 29724: name = _file_name; 29724: } else { 29724: relative_filename = _file_name; 29724: name = std::string("/") + _file_name; 29724: } 29724: 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: (static_cast ( 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: relative_filename.size() + 1 == name.size() 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: "relative_filename.size() + 1 == name.size()" 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: ; 29724: 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: (static_cast ( 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: relative_filename[0] != '/' 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: "relative_filename[0] != '/'" 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: ; 29724: 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: (static_cast ( 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: name[0] == '/' 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: "name[0] == '/'" 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: ; 29724: } 29724: directory = _directory; 29724: db_path = _directory; 29724: file_number = _file_number; 29724: file_type = kTableFile; 29724: size = _size; 29724: temperature = _temperature; 29724: file_checksum = _file_checksum; 29724: file_checksum_func_name = _file_checksum_func_name; 29724: } 29724: 29724: SequenceNumber smallest_seqno = 0; 29724: SequenceNumber largest_seqno = 0; 29724: std::string smallestkey; 29724: std::string largestkey; 29724: uint64_t num_reads_sampled = 0; 29724: bool being_compacted = 29724: false; 29724: 29724: uint64_t num_entries = 0; 29724: uint64_t num_deletions = 0; 29724: 29724: uint64_t oldest_blob_file_number = 0; 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29724: uint64_t oldest_ancester_time = 0; 29724: 29724: 29724: uint64_t file_creation_time = 0; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t epoch_number = 0; 29724: 29724: 29724: 29724: 29724: std::string smallest{}; 29724: std::string largest{}; 29724: 29724: 29724: 29724: 29724: std::string name; 29724: 29724: 29724: std::string db_path; 29724: }; 29724: 29724: 29724: struct LiveFileMetaData : SstFileMetaData { 29724: std::string column_family_name; 29724: int level; 29724: LiveFileMetaData() : column_family_name(), level(0) {} 29724: }; 29724: 29724: 29724: struct BlobMetaData { 29724: BlobMetaData() 29724: : blob_file_number(0), 29724: blob_file_size(0), 29724: total_blob_count(0), 29724: total_blob_bytes(0), 29724: garbage_blob_count(0), 29724: garbage_blob_bytes(0) {} 29724: 29724: BlobMetaData(uint64_t _file_number, const std::string& _file_name, 29724: const std::string& _file_path, uint64_t _file_size, 29724: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 29724: uint64_t _garbage_blob_count, uint64_t _garbage_blob_bytes, 29724: const std::string& _file_checksum, 29724: const std::string& _file_checksum_func_name) 29724: : blob_file_number(_file_number), 29724: blob_file_name(_file_name), 29724: blob_file_path(_file_path), 29724: blob_file_size(_file_size), 29724: total_blob_count(_total_blob_count), 29724: total_blob_bytes(_total_blob_bytes), 29724: garbage_blob_count(_garbage_blob_count), 29724: garbage_blob_bytes(_garbage_blob_bytes), 29724: checksum_method(_file_checksum), 29724: checksum_value(_file_checksum_func_name) {} 29724: uint64_t blob_file_number; 29724: std::string blob_file_name; 29724: std::string blob_file_path; 29724: uint64_t blob_file_size; 29724: uint64_t total_blob_count; 29724: uint64_t total_blob_bytes; 29724: uint64_t garbage_blob_count; 29724: uint64_t garbage_blob_bytes; 29724: std::string checksum_method; 29724: std::string checksum_value; 29724: }; 29724: 29724: 29724: struct LevelMetaData { 29724: LevelMetaData(int _level, uint64_t _size, 29724: const std::vector&& _files) 29724: : level(_level), size(_size), files(_files) {} 29724: 29724: 29724: const int level; 29724: 29724: 29724: const uint64_t size; 29724: 29724: const std::vector files; 29724: }; 29724: 29724: 29724: struct ColumnFamilyMetaData { 29724: ColumnFamilyMetaData() : size(0), file_count(0), name("") {} 29724: ColumnFamilyMetaData(const std::string& _name, uint64_t _size, 29724: const std::vector&& _levels) 29724: : size(_size), name(_name), levels(_levels) {} 29724: 29724: 29724: 29724: uint64_t size; 29724: 29724: size_t file_count; 29724: 29724: std::string name; 29724: 29724: std::vector levels; 29724: 29724: 29724: uint64_t blob_file_size = 0; 29724: 29724: size_t blob_file_count = 0; 29724: 29724: std::vector blob_files; 29724: }; 29724: 29724: 29724: 29724: struct ExportImportFilesMetaData { 29724: std::string db_comparator_name; 29724: std::vector files; 29724: }; 29724: } 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/snapshot.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class DB; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class Snapshot { 29724: public: 29724: virtual SequenceNumber GetSequenceNumber() const = 0; 29724: 29724: 29724: 29724: virtual int64_t GetUnixTime() const = 0; 29724: 29724: virtual uint64_t GetTimestamp() const = 0; 29724: 29724: protected: 29724: virtual ~Snapshot(); 29724: }; 29724: 29724: 29724: 29724: 29724: class ManagedSnapshot { 29724: public: 29724: explicit ManagedSnapshot(DB* db); 29724: 29724: 29724: ManagedSnapshot(DB* db, const Snapshot* _snapshot); 29724: 29724: ~ManagedSnapshot(); 29724: 29724: const Snapshot* snapshot(); 29724: 29724: private: 29724: DB* db_; 29724: const Snapshot* snapshot_; 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29724: namespace rocksdb { 29724: 29724: class Comparator; 29724: 29724: 29724: 29724: struct ExternalSstFileInfo { 29724: ExternalSstFileInfo() 29724: : file_path(""), 29724: smallest_key(""), 29724: largest_key(""), 29724: smallest_range_del_key(""), 29724: largest_range_del_key(""), 29724: file_checksum(""), 29724: file_checksum_func_name(""), 29724: sequence_number(0), 29724: file_size(0), 29724: num_entries(0), 29724: num_range_del_entries(0), 29724: version(0) {} 29724: 29724: ExternalSstFileInfo(const std::string& _file_path, 29724: const std::string& _smallest_key, 29724: const std::string& _largest_key, 29724: SequenceNumber _sequence_number, uint64_t _file_size, 29724: uint64_t _num_entries, int32_t _version) 29724: : file_path(_file_path), 29724: smallest_key(_smallest_key), 29724: largest_key(_largest_key), 29724: smallest_range_del_key(""), 29724: largest_range_del_key(""), 29724: file_checksum(""), 29724: file_checksum_func_name(""), 29724: sequence_number(_sequence_number), 29724: file_size(_file_size), 29724: num_entries(_num_entries), 29724: num_range_del_entries(0), 29724: version(_version) {} 29724: 29724: std::string file_path; 29724: std::string smallest_key; 29724: std::string largest_key; 29724: std::string 29724: smallest_range_del_key; 29724: std::string largest_range_del_key; 29724: std::string file_checksum; 29724: std::string file_checksum_func_name; 29724: SequenceNumber sequence_number; 29724: uint64_t file_size; 29724: uint64_t num_entries; 29724: uint64_t num_range_del_entries; 29724: int32_t version; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class SstFileWriter { 29724: public: 29724: # 95 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29724: SstFileWriter(const EnvOptions& env_options, const Options& options, 29724: ColumnFamilyHandle* column_family = nullptr, 29724: bool invalidate_page_cache = true, 29724: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 29724: bool skip_filters = false) 29724: : SstFileWriter(env_options, options, options.comparator, column_family, 29724: invalidate_page_cache, io_priority, skip_filters) {} 29724: 29724: 29724: SstFileWriter(const EnvOptions& env_options, const Options& options, 29724: const Comparator* user_comparator, 29724: ColumnFamilyHandle* column_family = nullptr, 29724: bool invalidate_page_cache = true, 29724: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 29724: bool skip_filters = false); 29724: 29724: ~SstFileWriter(); 29724: 29724: 29724: Status Open(const std::string& file_path, 29724: Temperature temp = Temperature::kUnknown); 29724: 29724: 29724: 29724: 29724: 29724: __attribute__((__deprecated__)) Status Add(const Slice& user_key, const Slice& value); 29724: 29724: 29724: 29724: 29724: 29724: Status Put(const Slice& user_key, const Slice& value); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status Put(const Slice& user_key, const Slice& timestamp, const Slice& value); 29724: 29724: 29724: 29724: Status PutEntity(const Slice& user_key, const WideColumns& columns); 29724: 29724: 29724: 29724: 29724: 29724: Status Merge(const Slice& user_key, const Slice& value); 29724: 29724: 29724: 29724: 29724: 29724: Status Delete(const Slice& user_key); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status Delete(const Slice& user_key, const Slice& timestamp); 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29724: Status DeleteRange(const Slice& begin_key, const Slice& end_key); 29724: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29724: Status DeleteRange(const Slice& begin_key, const Slice& end_key, 29724: const Slice& timestamp); 29724: 29724: 29724: 29724: 29724: 29724: Status Finish(ExternalSstFileInfo* file_info = nullptr); 29724: 29724: 29724: uint64_t FileSize(); 29724: 29724: 29724: static bool CreatedBySstFileWriter(const TableProperties&); 29724: 29724: private: 29724: void InvalidatePageCache(bool closing); 29724: struct Rep; 29724: std::unique_ptr rep_; 29724: }; 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/transaction_log.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 1 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class Status; 29724: class ColumnFamilyHandle; 29724: class WriteBatch; 29724: struct SliceParts; 29724: 29724: 29724: 29724: 29724: class WriteBatchBase { 29724: public: 29724: virtual ~WriteBatchBase() {} 29724: 29724: 29724: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) = 0; 29724: virtual Status Put(const Slice& key, const Slice& value) = 0; 29724: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts, const Slice& value) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 29724: const SliceParts& value); 29724: virtual Status Put(const SliceParts& key, const SliceParts& value); 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29724: virtual Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value, uint64_t write_unix_time) = 0; 29724: 29724: 29724: 29724: virtual Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 29724: const WideColumns& columns) = 0; 29724: 29724: 29724: 29724: virtual Status PutEntity(const Slice& key, 29724: const AttributeGroups& attribute_groups) = 0; 29724: 29724: 29724: 29724: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) = 0; 29724: virtual Status Merge(const Slice& key, const Slice& value) = 0; 29724: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts, const Slice& value) = 0; 29724: 29724: 29724: virtual Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 29724: const SliceParts& value); 29724: virtual Status Merge(const SliceParts& key, const SliceParts& value); 29724: 29724: 29724: virtual Status Delete(ColumnFamilyHandle* column_family, 29724: const Slice& key) = 0; 29724: virtual Status Delete(const Slice& key) = 0; 29724: virtual Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts) = 0; 29724: 29724: 29724: virtual Status Delete(ColumnFamilyHandle* column_family, 29724: const SliceParts& key); 29724: virtual Status Delete(const SliceParts& key); 29724: 29724: 29724: 29724: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29724: const Slice& key) = 0; 29724: virtual Status SingleDelete(const Slice& key) = 0; 29724: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29724: const Slice& key, const Slice& ts) = 0; 29724: 29724: 29724: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29724: const SliceParts& key); 29724: virtual Status SingleDelete(const SliceParts& key); 29724: 29724: 29724: 29724: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29724: const Slice& begin_key, const Slice& end_key) = 0; 29724: virtual Status DeleteRange(const Slice& begin_key, const Slice& end_key) = 0; 29724: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29724: const Slice& begin_key, const Slice& end_key, 29724: const Slice& ts) = 0; 29724: 29724: 29724: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29724: const SliceParts& begin_key, 29724: const SliceParts& end_key); 29724: virtual Status DeleteRange(const SliceParts& begin_key, 29724: const SliceParts& end_key); 29724: # 135 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29724: virtual Status PutLogData(const Slice& blob) = 0; 29724: 29724: 29724: virtual void Clear() = 0; 29724: 29724: 29724: 29724: 29724: virtual WriteBatch* GetWriteBatch() = 0; 29724: 29724: 29724: 29724: virtual void SetSavePoint() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status RollbackToSavePoint() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status PopSavePoint() = 0; 29724: 29724: 29724: virtual void SetMaxBytes(size_t max_bytes) = 0; 29724: }; 29724: 29724: } 29724: # 37 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class ColumnFamilyHandle; 29724: struct SavePoints; 29724: struct SliceParts; 29724: 29724: struct SavePoint { 29724: size_t size; 29724: uint32_t count; 29724: uint32_t content_flags; 29724: 29724: SavePoint() : size(0), count(0), content_flags(0) {} 29724: 29724: SavePoint(size_t _size, uint32_t _count, uint32_t _flags) 29724: : size(_size), count(_count), content_flags(_flags) {} 29724: 29724: void clear() { 29724: size = 0; 29724: count = 0; 29724: content_flags = 0; 29724: } 29724: 29724: bool is_cleared() const { return (size | count | content_flags) == 0; } 29724: }; 29724: 29724: class WriteBatch : public WriteBatchBase { 29724: public: 29724: explicit WriteBatch(size_t reserved_bytes = 0, size_t max_bytes = 0) 29724: : WriteBatch(reserved_bytes, max_bytes, 0, 0) {} 29724: 29724: 29724: 29724: 29724: explicit WriteBatch(size_t reserved_bytes, size_t max_bytes, 29724: size_t protection_bytes_per_key, size_t default_cf_ts_sz); 29724: ~WriteBatch() override; 29724: 29724: using WriteBatchBase::Put; 29724: 29724: 29724: 29724: 29724: 29724: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) override; 29724: Status Put(const Slice& key, const Slice& value) override { 29724: return Put(nullptr, key, value); 29724: } 29724: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts, const Slice& value) override; 29724: # 97 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 29724: const SliceParts& value) override; 29724: Status Put(const SliceParts& key, const SliceParts& value) override { 29724: return Put(nullptr, key, value); 29724: } 29724: 29724: using WriteBatchBase::TimedPut; 29724: 29724: 29724: 29724: 29724: Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value, uint64_t write_unix_time) override; 29724: 29724: 29724: 29724: using WriteBatchBase::PutEntity; 29724: Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 29724: const WideColumns& columns) override; 29724: 29724: 29724: 29724: Status PutEntity(const Slice& key, 29724: const AttributeGroups& attribute_groups) override; 29724: 29724: using WriteBatchBase::Delete; 29724: 29724: 29724: 29724: 29724: 29724: Status Delete(ColumnFamilyHandle* column_family, const Slice& key) override; 29724: Status Delete(const Slice& key) override { return Delete(nullptr, key); } 29724: Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts) override; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status Delete(ColumnFamilyHandle* column_family, 29724: const SliceParts& key) override; 29724: Status Delete(const SliceParts& key) override { return Delete(nullptr, key); } 29724: 29724: using WriteBatchBase::SingleDelete; 29724: 29724: Status SingleDelete(ColumnFamilyHandle* column_family, 29724: const Slice& key) override; 29724: Status SingleDelete(const Slice& key) override { 29724: return SingleDelete(nullptr, key); 29724: } 29724: Status SingleDelete(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts) override; 29724: 29724: 29724: Status SingleDelete(ColumnFamilyHandle* column_family, 29724: const SliceParts& key) override; 29724: Status SingleDelete(const SliceParts& key) override { 29724: return SingleDelete(nullptr, key); 29724: } 29724: 29724: using WriteBatchBase::DeleteRange; 29724: 29724: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 29724: const Slice& end_key) override; 29724: Status DeleteRange(const Slice& begin_key, const Slice& end_key) override { 29724: return DeleteRange(nullptr, begin_key, end_key); 29724: } 29724: 29724: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 29724: const Slice& end_key, const Slice& ts) override; 29724: 29724: 29724: Status DeleteRange(ColumnFamilyHandle* column_family, 29724: const SliceParts& begin_key, 29724: const SliceParts& end_key) override; 29724: Status DeleteRange(const SliceParts& begin_key, 29724: const SliceParts& end_key) override { 29724: return DeleteRange(nullptr, begin_key, end_key); 29724: } 29724: 29724: using WriteBatchBase::Merge; 29724: 29724: 29724: Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) override; 29724: Status Merge(const Slice& key, const Slice& value) override { 29724: return Merge(nullptr, key, value); 29724: } 29724: Status Merge(ColumnFamilyHandle* , const Slice& , 29724: const Slice& , const Slice& ) override; 29724: 29724: 29724: Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 29724: const SliceParts& value) override; 29724: Status Merge(const SliceParts& key, const SliceParts& value) override { 29724: return Merge(nullptr, key, value); 29724: } 29724: 29724: using WriteBatchBase::PutLogData; 29724: # 208 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: Status PutLogData(const Slice& blob) override; 29724: 29724: using WriteBatchBase::Clear; 29724: 29724: 29724: 29724: void Clear() override; 29724: 29724: 29724: 29724: void SetSavePoint() override; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status RollbackToSavePoint() override; 29724: 29724: 29724: 29724: 29724: 29724: Status PopSavePoint() override; 29724: 29724: 29724: 29724: class Handler { 29724: public: 29724: virtual ~Handler(); 29724: # 246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: virtual Status PutCF(uint32_t column_family_id, const Slice& key, 29724: const Slice& value) { 29724: if (column_family_id == 0) { 29724: 29724: 29724: 29724: Put(key, value); 29724: return Status::OK(); 29724: } 29724: return Status::InvalidArgument( 29724: "non-default column family and PutCF not implemented"); 29724: } 29724: 29724: virtual void Put(const Slice& , const Slice& ) {} 29724: 29724: 29724: virtual Status TimedPutCF(uint32_t , 29724: const Slice& , const Slice& , 29724: uint64_t ) { 29724: return Status::InvalidArgument("TimedPutCF not implemented"); 29724: } 29724: 29724: 29724: virtual Status PutEntityCF(uint32_t , 29724: const Slice& , 29724: const Slice& ) { 29724: return Status::NotSupported("PutEntityCF not implemented"); 29724: } 29724: 29724: 29724: virtual Status DeleteCF(uint32_t column_family_id, const Slice& key) { 29724: if (column_family_id == 0) { 29724: Delete(key); 29724: return Status::OK(); 29724: } 29724: return Status::InvalidArgument( 29724: "non-default column family and DeleteCF not implemented"); 29724: } 29724: 29724: virtual void Delete(const Slice& ) {} 29724: 29724: 29724: virtual Status SingleDeleteCF(uint32_t column_family_id, const Slice& key) { 29724: if (column_family_id == 0) { 29724: SingleDelete(key); 29724: return Status::OK(); 29724: } 29724: return Status::InvalidArgument( 29724: "non-default column family and SingleDeleteCF not implemented"); 29724: } 29724: 29724: virtual void SingleDelete(const Slice& ) {} 29724: 29724: 29724: 29724: virtual Status DeleteRangeCF(uint32_t , 29724: const Slice& , 29724: const Slice& ) { 29724: return Status::InvalidArgument("DeleteRangeCF not implemented"); 29724: } 29724: 29724: 29724: virtual Status MergeCF(uint32_t column_family_id, const Slice& key, 29724: const Slice& value) { 29724: if (column_family_id == 0) { 29724: Merge(key, value); 29724: return Status::OK(); 29724: } 29724: return Status::InvalidArgument( 29724: "non-default column family and MergeCF not implemented"); 29724: } 29724: 29724: virtual void Merge(const Slice& , const Slice& ) {} 29724: 29724: 29724: virtual Status PutBlobIndexCF(uint32_t , 29724: const Slice& , 29724: const Slice& ) { 29724: return Status::InvalidArgument("PutBlobIndexCF not implemented"); 29724: } 29724: 29724: 29724: virtual void LogData(const Slice& blob); 29724: 29724: virtual Status MarkBeginPrepare(bool = false) { 29724: return Status::InvalidArgument("MarkBeginPrepare() handler not defined."); 29724: } 29724: 29724: virtual Status MarkEndPrepare(const Slice& ) { 29724: return Status::InvalidArgument("MarkEndPrepare() handler not defined."); 29724: } 29724: 29724: virtual Status MarkNoop(bool ) { 29724: return Status::InvalidArgument("MarkNoop() handler not defined."); 29724: } 29724: 29724: virtual Status MarkRollback(const Slice& ) { 29724: return Status::InvalidArgument( 29724: "MarkRollbackPrepare() handler not defined."); 29724: } 29724: 29724: virtual Status MarkCommit(const Slice& ) { 29724: return Status::InvalidArgument("MarkCommit() handler not defined."); 29724: } 29724: 29724: virtual Status MarkCommitWithTimestamp(const Slice& , 29724: const Slice& ) { 29724: return Status::InvalidArgument( 29724: "MarkCommitWithTimestamp() handler not defined."); 29724: } 29724: 29724: 29724: 29724: 29724: virtual bool Continue(); 29724: 29724: protected: 29724: friend class WriteBatchInternal; 29724: enum class OptionState { 29724: kUnknown, 29724: kDisabled, 29724: kEnabled, 29724: }; 29724: virtual OptionState WriteAfterCommit() const { 29724: return OptionState::kUnknown; 29724: } 29724: virtual OptionState WriteBeforePrepare() const { 29724: return OptionState::kUnknown; 29724: } 29724: }; 29724: Status Iterate(Handler* handler) const; 29724: 29724: 29724: const std::string& Data() const { return rep_; } 29724: 29724: 29724: std::string Release(); 29724: 29724: 29724: size_t GetDataSize() const { return rep_.size(); } 29724: 29724: 29724: uint32_t Count() const; 29724: 29724: 29724: bool HasPut() const; 29724: 29724: 29724: bool HasTimedPut() const; 29724: 29724: 29724: bool HasPutEntity() const; 29724: 29724: 29724: bool HasDelete() const; 29724: 29724: 29724: bool HasSingleDelete() const; 29724: 29724: 29724: bool HasDeleteRange() const; 29724: 29724: 29724: bool HasMerge() const; 29724: 29724: 29724: bool HasBeginPrepare() const; 29724: 29724: 29724: bool HasEndPrepare() const; 29724: 29724: 29724: bool HasCommit() const; 29724: 29724: 29724: bool HasRollback() const; 29724: # 439 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: Status UpdateTimestamps(const Slice& ts, 29724: std::function ts_sz_func); 29724: 29724: 29724: 29724: 29724: 29724: void SetTrackTimestampSize(bool track_timestamp_size) { 29724: track_timestamp_size_ = track_timestamp_size; 29724: } 29724: 29724: inline void MaybeTrackTimestampSize(uint32_t column_family_id, size_t ts_sz) { 29724: if (!track_timestamp_size_) { 29724: return; 29724: } 29724: auto iter = cf_id_to_ts_sz_.find(column_family_id); 29724: if (iter == cf_id_to_ts_sz_.end()) { 29724: cf_id_to_ts_sz_.emplace(column_family_id, ts_sz); 29724: } 29724: } 29724: 29724: 29724: 29724: const std::unordered_map& GetColumnFamilyToTimestampSize() { 29724: return cf_id_to_ts_sz_; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: Status VerifyChecksum() const; 29724: 29724: using WriteBatchBase::GetWriteBatch; 29724: WriteBatch* GetWriteBatch() override { return this; } 29724: 29724: 29724: explicit WriteBatch(const std::string& rep); 29724: explicit WriteBatch(std::string&& rep); 29724: 29724: WriteBatch(const WriteBatch& src); 29724: WriteBatch(WriteBatch&& src) noexcept; 29724: WriteBatch& operator=(const WriteBatch& src); 29724: WriteBatch& operator=(WriteBatch&& src); 29724: 29724: 29724: 29724: void MarkWalTerminationPoint(); 29724: const SavePoint& GetWalTerminationPoint() const { return wal_term_point_; } 29724: 29724: void SetMaxBytes(size_t max_bytes) override { max_bytes_ = max_bytes; } 29724: 29724: struct ProtectionInfo; 29724: size_t GetProtectionBytesPerKey() const; 29724: 29724: private: 29724: friend class WriteBatchInternal; 29724: friend class LocalSavePoint; 29724: 29724: 29724: 29724: friend class WriteBatchWithIndex; 29724: std::unique_ptr save_points_; 29724: 29724: 29724: 29724: 29724: SavePoint wal_term_point_; 29724: 29724: 29724: 29724: 29724: 29724: bool is_latest_persistent_state_ = false; 29724: # 521 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29724: bool needs_in_place_update_ts_ = false; 29724: 29724: 29724: 29724: bool has_key_with_ts_ = false; 29724: 29724: 29724: mutable std::atomic content_flags_; 29724: 29724: 29724: uint32_t ComputeContentFlags() const; 29724: 29724: 29724: size_t max_bytes_; 29724: 29724: std::unique_ptr prot_info_; 29724: 29724: size_t default_cf_ts_sz_ = 0; 29724: 29724: bool track_timestamp_size_ = false; 29724: 29724: std::unordered_map cf_id_to_ts_sz_; 29724: 29724: protected: 29724: std::string rep_; 29724: }; 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/transaction_log.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class WalFile; 29724: using VectorWalPtr = std::vector>; 29724: 29724: using VectorLogPtr = VectorWalPtr; 29724: 29724: enum WalFileType { 29724: 29724: 29724: 29724: 29724: 29724: 29724: kArchivedLogFile = 0, 29724: 29724: 29724: kAliveLogFile = 1 29724: }; 29724: 29724: class WalFile { 29724: public: 29724: WalFile() {} 29724: virtual ~WalFile() {} 29724: 29724: 29724: 29724: 29724: virtual std::string PathName() const = 0; 29724: 29724: 29724: 29724: virtual uint64_t LogNumber() const = 0; 29724: 29724: 29724: virtual WalFileType Type() const = 0; 29724: 29724: 29724: virtual SequenceNumber StartSequence() const = 0; 29724: 29724: 29724: 29724: virtual uint64_t SizeFileBytes() const = 0; 29724: }; 29724: 29724: 29724: using LogFile = WalFile; 29724: 29724: struct BatchResult { 29724: SequenceNumber sequence = 0; 29724: std::unique_ptr writeBatchPtr; 29724: 29724: 29724: 29724: 29724: BatchResult() {} 29724: 29724: ~BatchResult() {} 29724: 29724: BatchResult(const BatchResult&) = delete; 29724: 29724: BatchResult& operator=(const BatchResult&) = delete; 29724: 29724: BatchResult(BatchResult&& bResult) 29724: : sequence(std::move(bResult.sequence)), 29724: writeBatchPtr(std::move(bResult.writeBatchPtr)) {} 29724: 29724: BatchResult& operator=(BatchResult&& bResult) { 29724: sequence = std::move(bResult.sequence); 29724: writeBatchPtr = std::move(bResult.writeBatchPtr); 29724: return *this; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: class TransactionLogIterator { 29724: public: 29724: TransactionLogIterator() {} 29724: virtual ~TransactionLogIterator() {} 29724: 29724: 29724: 29724: 29724: virtual bool Valid() = 0; 29724: 29724: 29724: 29724: virtual void Next() = 0; 29724: 29724: 29724: 29724: virtual Status status() = 0; 29724: 29724: 29724: 29724: 29724: virtual BatchResult GetBatch() = 0; 29724: 29724: 29724: struct ReadOptions { 29724: 29724: 29724: 29724: bool verify_checksums_; 29724: 29724: ReadOptions() : verify_checksums_(true) {} 29724: 29724: explicit ReadOptions(bool verify_checksums) 29724: : verify_checksums_(verify_checksums) {} 29724: }; 29724: }; 29724: } 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/user_write_callback.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: class UserWriteCallback { 29724: public: 29724: virtual ~UserWriteCallback() {} 29724: 29724: 29724: virtual void OnWriteEnqueued() = 0; 29724: 29724: 29724: virtual void OnWalWriteFinish() = 0; 29724: }; 29724: 29724: } 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: class CompactOnDeletionCollectorFactory 29724: : public TablePropertiesCollectorFactory { 29724: public: 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29724: CompactOnDeletionCollectorFactory(size_t sliding_window_size, 29724: size_t deletion_trigger, 29724: double deletion_ratio); 29724: 29724: ~CompactOnDeletionCollectorFactory() override {} 29724: 29724: TablePropertiesCollector* CreateTablePropertiesCollector( 29724: TablePropertiesCollectorFactory::Context context) override; 29724: 29724: 29724: 29724: void SetWindowSize(size_t sliding_window_size) { 29724: sliding_window_size_.store(sliding_window_size); 29724: } 29724: size_t GetWindowSize() const { return sliding_window_size_.load(); } 29724: 29724: 29724: void SetDeletionTrigger(size_t deletion_trigger) { 29724: deletion_trigger_.store(deletion_trigger); 29724: } 29724: 29724: size_t GetDeletionTrigger() const { return deletion_trigger_.load(); } 29724: 29724: 29724: 29724: void SetDeletionRatio(double deletion_ratio) { 29724: deletion_ratio_.store(deletion_ratio); 29724: } 29724: 29724: double GetDeletionRatio() const { return deletion_ratio_.load(); } 29724: static const char* kClassName() { return "CompactOnDeletionCollector"; } 29724: const char* Name() const override { return kClassName(); } 29724: 29724: std::string ToString() const override; 29724: 29724: private: 29724: std::atomic sliding_window_size_; 29724: std::atomic deletion_trigger_; 29724: std::atomic deletion_ratio_; 29724: }; 29724: # 85 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29724: std::shared_ptr 29724: NewCompactOnDeletionCollectorFactory(size_t sliding_window_size, 29724: size_t deletion_trigger, 29724: double deletion_ratio = 0); 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29724: class CompactForTieringCollectorFactory 29724: : public TablePropertiesCollectorFactory { 29724: public: 29724: 29724: 29724: 29724: CompactForTieringCollectorFactory(double compaction_trigger_ratio); 29724: 29724: ~CompactForTieringCollectorFactory() override {} 29724: 29724: TablePropertiesCollector* CreateTablePropertiesCollector( 29724: TablePropertiesCollectorFactory::Context context) override; 29724: 29724: void SetCompactionTriggerRatio(double new_ratio) { 29724: compaction_trigger_ratio_.store(new_ratio); 29724: } 29724: 29724: double GetCompactionTriggerRatio() const { 29724: return compaction_trigger_ratio_.load(); 29724: } 29724: 29724: static const char* kClassName() { return "CompactForTieringCollector"; } 29724: const char* Name() const override { return kClassName(); } 29724: 29724: std::string ToString() const override; 29724: 29724: private: 29724: std::atomic compaction_trigger_ratio_; 29724: }; 29724: 29724: std::shared_ptr 29724: NewCompactForTieringCollectorFactory(double compaction_trigger_ratio); 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct DataCollectionUnixWriteTimeInfo { 29724: 29724: uint64_t min_write_time = 0; 29724: 29724: uint64_t max_write_time = 0; 29724: 29724: uint64_t average_write_time = 0; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t num_entries_infinitely_old = 0; 29724: 29724: 29724: uint64_t num_entries_write_time_aggregated = 0; 29724: 29724: 29724: uint64_t num_entries_write_time_untracked = 0; 29724: 29724: DataCollectionUnixWriteTimeInfo() {} 29724: 29724: DataCollectionUnixWriteTimeInfo(uint64_t _min_write_time, 29724: uint64_t _max_write_time, 29724: uint64_t _average_write_time, 29724: uint64_t _num_entries_infinitely_old, 29724: uint64_t _num_entries_write_time_aggregated, 29724: uint64_t _num_entries_write_time_untracked) 29724: : min_write_time(_min_write_time), 29724: max_write_time(_max_write_time), 29724: average_write_time(_average_write_time), 29724: num_entries_infinitely_old(_num_entries_infinitely_old), 29724: num_entries_write_time_aggregated(_num_entries_write_time_aggregated), 29724: num_entries_write_time_untracked(_num_entries_write_time_untracked) {} 29724: 29724: 29724: 29724: bool DataCollectionIsEmpty() const { 29724: return num_entries_infinitely_old == 0 && 29724: num_entries_write_time_aggregated == 0 && 29724: num_entries_write_time_untracked == 0; 29724: } 29724: # 193 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29724: double TrackedDataRatio() const { 29724: if (DataCollectionIsEmpty()) { 29724: return 0; 29724: } 29724: uint64_t num_entries_write_time_tracked = 29724: num_entries_infinitely_old + num_entries_write_time_aggregated; 29724: return num_entries_write_time_tracked / 29724: static_cast(num_entries_write_time_tracked + 29724: num_entries_write_time_untracked); 29724: } 29724: 29724: 29724: bool HasInfinitelyOldData() const { return num_entries_infinitely_old > 0; } 29724: }; 29724: 29724: 29724: 29724: Status GetDataCollectionUnixWriteTimeInfoForFile( 29724: const std::shared_ptr& table_properties, 29724: std::unique_ptr* file_info); 29724: 29724: 29724: 29724: Status GetDataCollectionUnixWriteTimeInfoForLevels( 29724: const std::vector>& 29724: levels_table_properties, 29724: std::vector>* levels_info); 29724: } 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29724: # 47 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: namespace rocksdb { 29724: 29724: struct ColumnFamilyOptions; 29724: struct CompactionOptions; 29724: struct CompactRangeOptions; 29724: struct DBOptions; 29724: struct ExternalSstFileInfo; 29724: struct FlushOptions; 29724: struct Options; 29724: struct ReadOptions; 29724: struct TableProperties; 29724: struct WriteOptions; 29724: struct WaitForCompactOptions; 29724: class Env; 29724: class EventListener; 29724: class FileSystem; 29724: class Replayer; 29724: class StatsHistoryIterator; 29724: class TraceReader; 29724: class TraceWriter; 29724: class WriteBatch; 29724: 29724: extern const std::string kDefaultColumnFamilyName; 29724: extern const std::string kPersistentStatsColumnFamilyName; 29724: struct ColumnFamilyDescriptor { 29724: std::string name; 29724: ColumnFamilyOptions options; 29724: ColumnFamilyDescriptor() 29724: : name(kDefaultColumnFamilyName), options(ColumnFamilyOptions()) {} 29724: ColumnFamilyDescriptor(const std::string& _name, 29724: const ColumnFamilyOptions& _options) 29724: : name(_name), options(_options) {} 29724: }; 29724: 29724: class ColumnFamilyHandle { 29724: public: 29724: virtual ~ColumnFamilyHandle() {} 29724: 29724: virtual const std::string& GetName() const = 0; 29724: 29724: virtual uint32_t GetID() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetDescriptor(ColumnFamilyDescriptor* desc) = 0; 29724: 29724: 29724: virtual const Comparator* GetComparator() const = 0; 29724: }; 29724: 29724: static const int kMajorVersion = 9; 29724: static const int kMinorVersion = 10; 29724: 29724: 29724: struct Range { 29724: 29724: 29724: Slice start; 29724: Slice limit; 29724: 29724: Range() {} 29724: Range(const Slice& s, const Slice& l) : start(s), limit(l) {} 29724: }; 29724: 29724: struct RangePtr { 29724: 29724: 29724: const Slice* start; 29724: const Slice* limit; 29724: 29724: RangePtr() : start(nullptr), limit(nullptr) {} 29724: RangePtr(const Slice* s, const Slice* l) : start(s), limit(l) {} 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct IngestExternalFileArg { 29724: ColumnFamilyHandle* column_family = nullptr; 29724: std::vector external_files; 29724: IngestExternalFileOptions options; 29724: std::vector files_checksums; 29724: std::vector files_checksum_func_names; 29724: 29724: Temperature file_temperature = Temperature::kUnknown; 29724: }; 29724: 29724: struct GetMergeOperandsOptions { 29724: using ContinueCallback = std::function; 29724: 29724: 29724: 29724: 29724: 29724: 29724: int expected_max_number_of_operands = 0; 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: ContinueCallback continue_cb; 29724: }; 29724: 29724: 29724: 29724: 29724: using TablePropertiesCollection = 29724: std::unordered_map>; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class DB { 29724: public: 29724: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status Open(const Options& options, const std::string& name, 29724: DB** dbptr); 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status Open(const DBOptions& db_options, const std::string& name, 29724: const std::vector& column_families, 29724: std::vector* handles, DB** dbptr); 29724: # 221 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenForReadOnly(const Options& options, const std::string& name, 29724: DB** dbptr, 29724: bool error_if_wal_file_exists = false); 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenForReadOnly( 29724: const DBOptions& db_options, const std::string& name, 29724: const std::vector& column_families, 29724: std::vector* handles, DB** dbptr, 29724: bool error_if_wal_file_exists = false); 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenAsSecondary(const Options& options, const std::string& name, 29724: const std::string& secondary_path, DB** dbptr); 29724: # 297 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenAsSecondary( 29724: const DBOptions& db_options, const std::string& name, 29724: const std::string& secondary_path, 29724: const std::vector& column_families, 29724: std::vector* handles, DB** dbptr); 29724: # 314 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenAsFollower(const Options& options, const std::string& name, 29724: const std::string& leader_path, 29724: std::unique_ptr* dbptr); 29724: 29724: 29724: static Status OpenAsFollower( 29724: const DBOptions& db_options, const std::string& name, 29724: const std::string& leader_path, 29724: const std::vector& column_families, 29724: std::vector* handles, std::unique_ptr* dbptr); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: static Status OpenAndCompact( 29724: const std::string& name, const std::string& output_directory, 29724: const std::string& input, std::string* output, 29724: const CompactionServiceOptionsOverride& override_options); 29724: 29724: static Status OpenAndCompact( 29724: const OpenAndCompactOptions& options, const std::string& name, 29724: const std::string& output_directory, const std::string& input, 29724: std::string* output, 29724: const CompactionServiceOptionsOverride& override_options); 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static Status OpenAndTrimHistory( 29724: const DBOptions& db_options, const std::string& dbname, 29724: const std::vector& column_families, 29724: std::vector* handles, DB** dbptr, 29724: std::string trim_ts); 29724: # 367 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status Resume() { return Status::NotSupported(); } 29724: # 386 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status Close() { return Status::NotSupported(); } 29724: 29724: 29724: 29724: 29724: 29724: static Status ListColumnFamilies(const DBOptions& db_options, 29724: const std::string& name, 29724: std::vector* column_families); 29724: 29724: 29724: DB() {} 29724: 29724: DB(const DB&) = delete; 29724: void operator=(const DB&) = delete; 29724: 29724: virtual ~DB(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status CreateColumnFamily(const ColumnFamilyOptions& options, 29724: const std::string& column_family_name, 29724: ColumnFamilyHandle** handle); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status CreateColumnFamilies( 29724: const ColumnFamilyOptions& options, 29724: const std::vector& column_family_names, 29724: std::vector* handles); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status CreateColumnFamilies( 29724: const std::vector& column_families, 29724: std::vector* handles); 29724: 29724: 29724: 29724: 29724: virtual Status DropColumnFamily(ColumnFamilyHandle* column_family); 29724: 29724: 29724: 29724: 29724: 29724: virtual Status DropColumnFamilies( 29724: const std::vector& column_families); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status DestroyColumnFamilyHandle(ColumnFamilyHandle* column_family); 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Put(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) = 0; 29724: virtual Status Put(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts, const Slice& value) = 0; 29724: virtual Status Put(const WriteOptions& options, const Slice& key, 29724: const Slice& value) { 29724: return Put(options, DefaultColumnFamily(), key, value); 29724: } 29724: virtual Status Put(const WriteOptions& options, const Slice& key, 29724: const Slice& ts, const Slice& value) { 29724: return Put(options, DefaultColumnFamily(), key, ts, value); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status PutEntity(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: const WideColumns& columns); 29724: 29724: 29724: virtual Status PutEntity(const WriteOptions& options, const Slice& key, 29724: const AttributeGroups& attribute_groups); 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Delete(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice& key) = 0; 29724: virtual Status Delete(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& ts) = 0; 29724: virtual Status Delete(const WriteOptions& options, const Slice& key) { 29724: return Delete(options, DefaultColumnFamily(), key); 29724: } 29724: virtual Status Delete(const WriteOptions& options, const Slice& key, 29724: const Slice& ts) { 29724: return Delete(options, DefaultColumnFamily(), key, ts); 29724: } 29724: # 518 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status SingleDelete(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice& key) = 0; 29724: virtual Status SingleDelete(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice& key, const Slice& ts) = 0; 29724: virtual Status SingleDelete(const WriteOptions& options, const Slice& key) { 29724: return SingleDelete(options, DefaultColumnFamily(), key); 29724: } 29724: virtual Status SingleDelete(const WriteOptions& options, const Slice& key, 29724: const Slice& ts) { 29724: return SingleDelete(options, DefaultColumnFamily(), key, ts); 29724: } 29724: # 548 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status DeleteRange(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice& begin_key, const Slice& end_key); 29724: virtual Status DeleteRange(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice& begin_key, const Slice& end_key, 29724: const Slice& ts); 29724: virtual Status DeleteRange(const WriteOptions& options, 29724: const Slice& begin_key, const Slice& end_key) { 29724: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key); 29724: } 29724: virtual Status DeleteRange(const WriteOptions& options, 29724: const Slice& begin_key, const Slice& end_key, 29724: const Slice& ts) { 29724: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key, ts); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Merge(const WriteOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: const Slice& value) = 0; 29724: virtual Status Merge(const WriteOptions& options, const Slice& key, 29724: const Slice& value) { 29724: return Merge(options, DefaultColumnFamily(), key, value); 29724: } 29724: virtual Status Merge(const WriteOptions& , 29724: ColumnFamilyHandle* , 29724: const Slice& , const Slice& , 29724: const Slice& ); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0; 29724: 29724: 29724: 29724: virtual Status WriteWithCallback(const WriteOptions& , 29724: WriteBatch* , 29724: UserWriteCallback* ) { 29724: return Status::NotSupported( 29724: "WriteWithCallback not implemented for this interface."); 29724: } 29724: # 611 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status Get(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: PinnableSlice* value, std::string* timestamp) = 0; 29724: 29724: 29724: 29724: 29724: virtual inline Status Get(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: std::string* value, std::string* timestamp) final { 29724: 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: (static_cast ( 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: value != nullptr 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: "value != nullptr" 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: ; 29724: PinnableSlice pinnable_val(value); 29724: 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: (static_cast ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: !pinnable_val.IsPinned() 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: "!pinnable_val.IsPinned()" 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: ; 29724: auto s = Get(options, column_family, key, &pinnable_val, timestamp); 29724: if (s.ok() && pinnable_val.IsPinned()) { 29724: value->assign(pinnable_val.data(), pinnable_val.size()); 29724: } 29724: return s; 29724: } 29724: 29724: 29724: 29724: virtual Status Get(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: PinnableSlice* value) final { 29724: return Get(options, column_family, key, value, nullptr); 29724: } 29724: 29724: 29724: 29724: virtual inline Status Get(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: std::string* value) final { 29724: 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: (static_cast ( 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: value != nullptr 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: "value != nullptr" 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: ; 29724: PinnableSlice pinnable_val(value); 29724: 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: (static_cast ( 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: !pinnable_val.IsPinned() 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: "!pinnable_val.IsPinned()" 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: ; 29724: auto s = Get(options, column_family, key, &pinnable_val); 29724: if (s.ok() && pinnable_val.IsPinned()) { 29724: value->assign(pinnable_val.data(), pinnable_val.size()); 29724: } 29724: return s; 29724: } 29724: 29724: 29724: 29724: 29724: virtual Status Get(const ReadOptions& options, const Slice& key, 29724: std::string* value) final { 29724: return Get(options, DefaultColumnFamily(), key, value); 29724: } 29724: 29724: 29724: 29724: 29724: virtual Status Get(const ReadOptions& options, const Slice& key, 29724: std::string* value, std::string* timestamp) final { 29724: return Get(options, DefaultColumnFamily(), key, value, timestamp); 29724: } 29724: # 679 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetEntity(const ReadOptions& , 29724: ColumnFamilyHandle* , 29724: const Slice& , 29724: PinnableWideColumns* ) { 29724: return Status::NotSupported("GetEntity not supported"); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetEntity(const ReadOptions& , 29724: const Slice& , 29724: PinnableAttributeGroups* ) { 29724: return Status::NotSupported("GetEntity not supported"); 29724: } 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetMergeOperands( 29724: const ReadOptions& options, ColumnFamilyHandle* column_family, 29724: const Slice& key, PinnableSlice* merge_operands, 29724: GetMergeOperandsOptions* get_merge_operands_options, 29724: int* number_of_operands) = 0; 29724: # 741 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual std::vector MultiGet( 29724: const ReadOptions& options, 29724: const std::vector& column_families, 29724: const std::vector& keys, std::vector* values, 29724: std::vector* timestamps) final { 29724: size_t num_keys = keys.size(); 29724: std::vector statuses(num_keys); 29724: std::vector pin_values(num_keys); 29724: 29724: values->resize(num_keys); 29724: if (timestamps) { 29724: timestamps->resize(num_keys); 29724: } 29724: MultiGet(options, num_keys, 29724: const_cast(column_families.data()), 29724: keys.data(), pin_values.data(), 29724: timestamps ? timestamps->data() : nullptr, statuses.data(), 29724: false); 29724: for (size_t i = 0; i < num_keys; ++i) { 29724: if (statuses[i].ok()) { 29724: (*values)[i].assign(pin_values[i].data(), pin_values[i].size()); 29724: } 29724: } 29724: return statuses; 29724: } 29724: 29724: 29724: 29724: virtual std::vector MultiGet( 29724: const ReadOptions& options, 29724: const std::vector& column_family, 29724: const std::vector& keys, std::vector* values) final { 29724: values->resize(keys.size()); 29724: return MultiGet(options, column_family, keys, values, nullptr); 29724: } 29724: 29724: 29724: 29724: virtual std::vector MultiGet(const ReadOptions& options, 29724: const std::vector& keys, 29724: std::vector* values) final { 29724: values->resize(keys.size()); 29724: return MultiGet( 29724: options, 29724: std::vector(keys.size(), DefaultColumnFamily()), 29724: keys, values); 29724: } 29724: 29724: 29724: 29724: virtual std::vector MultiGet( 29724: const ReadOptions& options, const std::vector& keys, 29724: std::vector* values, 29724: std::vector* timestamps) final { 29724: values->resize(keys.size()); 29724: return MultiGet( 29724: options, 29724: std::vector(keys.size(), DefaultColumnFamily()), 29724: keys, values, timestamps); 29724: } 29724: # 830 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 29724: ColumnFamilyHandle** column_families, const Slice* keys, 29724: PinnableSlice* values, std::string* timestamps, 29724: Status* statuses, const bool sorted_input = false) = 0; 29724: 29724: 29724: 29724: virtual void MultiGet(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const size_t num_keys, const Slice* keys, 29724: PinnableSlice* values, std::string* timestamps, 29724: Status* statuses, 29724: const bool sorted_input = false) final; 29724: 29724: 29724: 29724: virtual void MultiGet(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const size_t num_keys, const Slice* keys, 29724: PinnableSlice* values, Status* statuses, 29724: const bool sorted_input = false) final { 29724: MultiGet(options, column_family, num_keys, keys, values, nullptr, statuses, 29724: sorted_input); 29724: } 29724: 29724: 29724: 29724: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 29724: ColumnFamilyHandle** column_families, const Slice* keys, 29724: PinnableSlice* values, Status* statuses, 29724: const bool sorted_input = false) final { 29724: MultiGet(options, num_keys, column_families, keys, values, nullptr, 29724: statuses, sorted_input); 29724: } 29724: # 884 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual void MultiGetEntity(const ReadOptions& , 29724: ColumnFamilyHandle* , 29724: size_t num_keys, const Slice* , 29724: PinnableWideColumns* , 29724: Status* statuses, 29724: bool = false) { 29724: for (size_t i = 0; i < num_keys; ++i) { 29724: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 29724: } 29724: } 29724: # 916 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 29724: ColumnFamilyHandle** , 29724: const Slice* , 29724: PinnableWideColumns* , 29724: Status* statuses, 29724: bool = false) { 29724: for (size_t i = 0; i < num_keys; ++i) { 29724: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 29724: } 29724: } 29724: # 944 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 29724: const Slice* , 29724: PinnableAttributeGroups* results) { 29724: for (size_t i = 0; i < num_keys; ++i) { 29724: for (size_t j = 0; j < results[i].size(); ++j) { 29724: results[i][j].SetStatus( 29724: Status::NotSupported("MultiGetEntity not supported")); 29724: } 29724: } 29724: } 29724: # 962 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual bool KeyMayExist(const ReadOptions& , 29724: ColumnFamilyHandle* , 29724: const Slice& , std::string* , 29724: std::string* , 29724: bool* value_found = nullptr) { 29724: if (value_found != nullptr) { 29724: *value_found = false; 29724: } 29724: return true; 29724: } 29724: 29724: virtual bool KeyMayExist(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family, const Slice& key, 29724: std::string* value, bool* value_found = nullptr) { 29724: return KeyMayExist(options, column_family, key, value, 29724: nullptr, value_found); 29724: } 29724: 29724: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 29724: std::string* value, bool* value_found = nullptr) { 29724: return KeyMayExist(options, DefaultColumnFamily(), key, value, value_found); 29724: } 29724: 29724: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 29724: std::string* value, std::string* timestamp, 29724: bool* value_found = nullptr) { 29724: return KeyMayExist(options, DefaultColumnFamily(), key, value, timestamp, 29724: value_found); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Iterator* NewIterator(const ReadOptions& options, 29724: ColumnFamilyHandle* column_family) = 0; 29724: virtual Iterator* NewIterator(const ReadOptions& options) { 29724: return NewIterator(options, DefaultColumnFamily()); 29724: } 29724: 29724: 29724: 29724: virtual Status NewIterators( 29724: const ReadOptions& options, 29724: const std::vector& column_families, 29724: std::vector* iterators) = 0; 29724: # 1024 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual std::unique_ptr NewCoalescingIterator( 29724: const ReadOptions& options, 29724: const std::vector& column_families) = 0; 29724: 29724: 29724: 29724: virtual std::unique_ptr NewAttributeGroupIterator( 29724: const ReadOptions& options, 29724: const std::vector& column_families) = 0; 29724: # 1041 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual const Snapshot* GetSnapshot() = 0; 29724: 29724: 29724: 29724: virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct Properties { 29724: 29724: 29724: 29724: static const std::string kNumFilesAtLevelPrefix; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kCompressionRatioAtLevelPrefix; 29724: 29724: 29724: 29724: static const std::string kStats; 29724: 29724: 29724: 29724: static const std::string kSSTables; 29724: 29724: 29724: 29724: static const std::string kCFStats; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kCFStatsNoFileHistogram; 29724: 29724: 29724: 29724: static const std::string kCFFileHistogram; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kCFWriteStallStats; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kDBWriteStallStats; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kDBStats; 29724: 29724: 29724: 29724: static const std::string kLevelStats; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kBlockCacheEntryStats; 29724: 29724: 29724: 29724: static const std::string kFastBlockCacheEntryStats; 29724: 29724: 29724: 29724: static const std::string kNumImmutableMemTable; 29724: 29724: 29724: 29724: static const std::string kNumImmutableMemTableFlushed; 29724: 29724: 29724: 29724: static const std::string kMemTableFlushPending; 29724: 29724: 29724: 29724: static const std::string kNumRunningFlushes; 29724: 29724: 29724: 29724: static const std::string kCompactionPending; 29724: 29724: 29724: 29724: static const std::string kNumRunningCompactions; 29724: 29724: 29724: 29724: static const std::string kBackgroundErrors; 29724: 29724: 29724: 29724: static const std::string kCurSizeActiveMemTable; 29724: 29724: 29724: 29724: static const std::string kCurSizeAllMemTables; 29724: 29724: 29724: 29724: static const std::string kSizeAllMemTables; 29724: 29724: 29724: 29724: static const std::string kNumEntriesActiveMemTable; 29724: 29724: 29724: 29724: static const std::string kNumEntriesImmMemTables; 29724: 29724: 29724: 29724: static const std::string kNumDeletesActiveMemTable; 29724: 29724: 29724: 29724: static const std::string kNumDeletesImmMemTables; 29724: 29724: 29724: 29724: static const std::string kEstimateNumKeys; 29724: 29724: 29724: 29724: 29724: static const std::string kEstimateTableReadersMem; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kIsFileDeletionsEnabled; 29724: 29724: 29724: 29724: static const std::string kNumSnapshots; 29724: 29724: 29724: 29724: static const std::string kOldestSnapshotTime; 29724: 29724: 29724: 29724: static const std::string kOldestSnapshotSequence; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kNumLiveVersions; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kCurrentSuperVersionNumber; 29724: 29724: 29724: 29724: 29724: static const std::string kEstimateLiveDataSize; 29724: 29724: 29724: 29724: static const std::string kMinLogNumberToKeep; 29724: 29724: 29724: 29724: 29724: static const std::string kMinObsoleteSstNumberToKeep; 29724: 29724: 29724: 29724: 29724: static const std::string kTotalSstFilesSize; 29724: 29724: 29724: 29724: static const std::string kLiveSstFilesSize; 29724: # 1246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static const std::string kObsoleteSstFilesSize; 29724: 29724: 29724: 29724: static const std::string kLiveSstFilesSizeAtTemperature; 29724: 29724: 29724: 29724: static const std::string kBaseLevel; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kEstimatePendingCompactionBytes; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kAggregatedTableProperties; 29724: 29724: 29724: 29724: 29724: static const std::string kAggregatedTablePropertiesAtLevel; 29724: 29724: 29724: 29724: static const std::string kActualDelayedWriteRate; 29724: 29724: 29724: static const std::string kIsWriteStopped; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kEstimateOldestKeyTime; 29724: 29724: 29724: static const std::string kBlockCacheCapacity; 29724: 29724: 29724: 29724: static const std::string kBlockCacheUsage; 29724: 29724: 29724: 29724: static const std::string kBlockCachePinnedUsage; 29724: 29724: 29724: 29724: static const std::string kOptionsStatistics; 29724: 29724: 29724: 29724: static const std::string kNumBlobFiles; 29724: 29724: 29724: 29724: 29724: static const std::string kBlobStats; 29724: 29724: 29724: 29724: static const std::string kTotalBlobFileSize; 29724: 29724: 29724: 29724: static const std::string kLiveBlobFileSize; 29724: 29724: 29724: 29724: static const std::string kLiveBlobFileGarbageSize; 29724: 29724: 29724: static const std::string kBlobCacheCapacity; 29724: 29724: 29724: 29724: static const std::string kBlobCacheUsage; 29724: 29724: 29724: 29724: static const std::string kBlobCachePinnedUsage; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool GetProperty(ColumnFamilyHandle* column_family, 29724: const Slice& property, std::string* value) = 0; 29724: virtual bool GetProperty(const Slice& property, std::string* value) { 29724: return GetProperty(DefaultColumnFamily(), property, value); 29724: } 29724: 29724: 29724: 29724: virtual bool GetMapProperty(ColumnFamilyHandle* column_family, 29724: const Slice& property, 29724: std::map* value) = 0; 29724: virtual bool GetMapProperty(const Slice& property, 29724: std::map* value) { 29724: return GetMapProperty(DefaultColumnFamily(), property, value); 29724: } 29724: # 1401 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual bool GetIntProperty(ColumnFamilyHandle* column_family, 29724: const Slice& property, uint64_t* value) = 0; 29724: virtual bool GetIntProperty(const Slice& property, uint64_t* value) { 29724: return GetIntProperty(DefaultColumnFamily(), property, value); 29724: } 29724: 29724: 29724: 29724: 29724: virtual Status ResetStats() { 29724: return Status::NotSupported("Not implemented"); 29724: } 29724: 29724: 29724: 29724: virtual bool GetAggregatedIntProperty(const Slice& property, 29724: uint64_t* value) = 0; 29724: 29724: 29724: 29724: enum class SizeApproximationFlags : uint8_t { 29724: NONE = 0, 29724: INCLUDE_MEMTABLES = 1 << 0, 29724: INCLUDE_FILES = 1 << 1 29724: }; 29724: # 1434 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetApproximateSizes(const SizeApproximationOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Range* ranges, int n, 29724: uint64_t* sizes) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status GetApproximateSizes(ColumnFamilyHandle* column_family, 29724: const Range* ranges, int n, 29724: uint64_t* sizes, 29724: SizeApproximationFlags include_flags = 29724: SizeApproximationFlags::INCLUDE_FILES); 29724: 29724: virtual Status GetApproximateSizes( 29724: const Range* ranges, int n, uint64_t* sizes, 29724: SizeApproximationFlags include_flags = 29724: SizeApproximationFlags::INCLUDE_FILES) { 29724: return GetApproximateSizes(DefaultColumnFamily(), ranges, n, sizes, 29724: include_flags); 29724: } 29724: 29724: 29724: 29724: virtual void GetApproximateMemTableStats(ColumnFamilyHandle* column_family, 29724: const Range& range, 29724: uint64_t* const count, 29724: uint64_t* const size) = 0; 29724: virtual void GetApproximateMemTableStats(const Range& range, 29724: uint64_t* const count, 29724: uint64_t* const size) { 29724: GetApproximateMemTableStats(DefaultColumnFamily(), range, count, size); 29724: } 29724: # 1493 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status CompactRange(const CompactRangeOptions& options, 29724: ColumnFamilyHandle* column_family, 29724: const Slice* begin, const Slice* end) = 0; 29724: virtual Status CompactRange(const CompactRangeOptions& options, 29724: const Slice* begin, const Slice* end) { 29724: return CompactRange(options, DefaultColumnFamily(), begin, end); 29724: } 29724: # 1519 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status SetOptions( 29724: ColumnFamilyHandle* , 29724: const std::unordered_map& ) { 29724: return Status::NotSupported("Not implemented"); 29724: } 29724: 29724: virtual Status SetOptions( 29724: const std::unordered_map& new_options) { 29724: return SetOptions(DefaultColumnFamily(), new_options); 29724: } 29724: # 1539 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status SetDBOptions( 29724: const std::unordered_map& new_options) = 0; 29724: # 1549 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status CompactFiles( 29724: const CompactionOptions& compact_options, 29724: ColumnFamilyHandle* column_family, 29724: const std::vector& input_file_names, const int output_level, 29724: const int output_path_id = -1, 29724: std::vector* const output_file_names = nullptr, 29724: CompactionJobInfo* compaction_job_info = nullptr) = 0; 29724: 29724: virtual Status CompactFiles( 29724: const CompactionOptions& compact_options, 29724: const std::vector& input_file_names, const int output_level, 29724: const int output_path_id = -1, 29724: std::vector* const output_file_names = nullptr, 29724: CompactionJobInfo* compaction_job_info = nullptr) { 29724: return CompactFiles(compact_options, DefaultColumnFamily(), 29724: input_file_names, output_level, output_path_id, 29724: output_file_names, compaction_job_info); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual Status PauseBackgroundWork() = 0; 29724: virtual Status ContinueBackgroundWork() = 0; 29724: # 1584 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status EnableAutoCompaction( 29724: const std::vector& column_family_handles) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void DisableManualCompaction() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void EnableManualCompaction() = 0; 29724: # 1608 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status WaitForCompact( 29724: const WaitForCompactOptions& ) = 0; 29724: 29724: 29724: virtual int NumberLevels(ColumnFamilyHandle* column_family) = 0; 29724: virtual int NumberLevels() { return NumberLevels(DefaultColumnFamily()); } 29724: 29724: 29724: 29724: virtual int MaxMemCompactionLevel(ColumnFamilyHandle* column_family) = 0; 29724: virtual int MaxMemCompactionLevel() { 29724: return MaxMemCompactionLevel(DefaultColumnFamily()); 29724: } 29724: 29724: 29724: virtual int Level0StopWriteTrigger(ColumnFamilyHandle* column_family) = 0; 29724: virtual int Level0StopWriteTrigger() { 29724: return Level0StopWriteTrigger(DefaultColumnFamily()); 29724: } 29724: 29724: 29724: 29724: virtual const std::string& GetName() const = 0; 29724: 29724: 29724: virtual Env* GetEnv() const = 0; 29724: 29724: 29724: 29724: virtual FileSystem* GetFileSystem() const; 29724: 29724: 29724: 29724: 29724: 29724: virtual Options GetOptions(ColumnFamilyHandle* column_family) const = 0; 29724: virtual Options GetOptions() const { 29724: return GetOptions(DefaultColumnFamily()); 29724: } 29724: 29724: virtual DBOptions GetDBOptions() const = 0; 29724: 29724: 29724: 29724: 29724: virtual Status Flush(const FlushOptions& options, 29724: ColumnFamilyHandle* column_family) = 0; 29724: virtual Status Flush(const FlushOptions& options) { 29724: return Flush(options, DefaultColumnFamily()); 29724: } 29724: # 1666 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status Flush( 29724: const FlushOptions& options, 29724: const std::vector& column_families) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status FlushWAL(bool ) { 29724: return Status::NotSupported("FlushWAL not implemented"); 29724: } 29724: # 1687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status SyncWAL() = 0; 29724: # 1698 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status LockWAL() { 29724: return Status::NotSupported("LockWAL not implemented"); 29724: } 29724: 29724: 29724: 29724: 29724: virtual Status UnlockWAL() { 29724: return Status::NotSupported("UnlockWAL not implemented"); 29724: } 29724: 29724: 29724: virtual SequenceNumber GetLatestSequenceNumber() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status IncreaseFullHistoryTsLow(ColumnFamilyHandle* column_family, 29724: std::string ts_low) = 0; 29724: 29724: 29724: virtual Status GetFullHistoryTsLow(ColumnFamilyHandle* column_family, 29724: std::string* ts_low) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Status DisableFileDeletions() = 0; 29724: # 1740 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status EnableFileDeletions() = 0; 29724: # 1752 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetCreationTimeOfOldestFile(uint64_t* creation_time) = 0; 29724: # 1766 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetUpdatesSince( 29724: SequenceNumber seq_number, std::unique_ptr* iter, 29724: const TransactionLogIterator::ReadOptions& read_options = 29724: TransactionLogIterator::ReadOptions()) = 0; 29724: # 1784 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status DeleteFile(std::string name) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void GetLiveFilesMetaData( 29724: std::vector* ) {} 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetLiveFilesChecksumInfo(FileChecksumList* checksum_list) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetLiveFilesStorageInfo( 29724: const LiveFilesStorageInfoOptions& opts, 29724: std::vector* files) = 0; 29724: 29724: 29724: 29724: virtual void GetColumnFamilyMetaData(ColumnFamilyHandle* , 29724: ColumnFamilyMetaData* ) {} 29724: 29724: 29724: void GetColumnFamilyMetaData(ColumnFamilyMetaData* metadata) { 29724: GetColumnFamilyMetaData(DefaultColumnFamily(), metadata); 29724: } 29724: 29724: 29724: 29724: virtual void GetAllColumnFamilyMetaData( 29724: std::vector* ) {} 29724: # 1839 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetLiveFiles(std::vector&, 29724: uint64_t* manifest_file_size, 29724: bool flush_memtable = true) = 0; 29724: 29724: 29724: virtual Status GetSortedWalFiles(VectorWalPtr& files) = 0; 29724: # 1853 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status GetCurrentWalFile( 29724: std::unique_ptr* current_log_file) = 0; 29724: # 1897 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status IngestExternalFile( 29724: ColumnFamilyHandle* column_family, 29724: const std::vector& external_files, 29724: const IngestExternalFileOptions& options) = 0; 29724: 29724: virtual Status IngestExternalFile( 29724: const std::vector& external_files, 29724: const IngestExternalFileOptions& options) { 29724: return IngestExternalFile(DefaultColumnFamily(), external_files, options); 29724: } 29724: # 1923 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status IngestExternalFiles( 29724: const std::vector& args) = 0; 29724: # 1943 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status CreateColumnFamilyWithImport( 29724: const ColumnFamilyOptions& options, const std::string& column_family_name, 29724: const ImportColumnFamilyOptions& import_options, 29724: const ExportImportFilesMetaData& metadata, ColumnFamilyHandle** handle) { 29724: const std::vector& metadatas{&metadata}; 29724: return CreateColumnFamilyWithImport(options, column_family_name, 29724: import_options, metadatas, handle); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status CreateColumnFamilyWithImport( 29724: const ColumnFamilyOptions& options, const std::string& column_family_name, 29724: const ImportColumnFamilyOptions& import_options, 29724: const std::vector& metadatas, 29724: ColumnFamilyHandle** handle) = 0; 29724: # 1976 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status ClipColumnFamily(ColumnFamilyHandle* column_family, 29724: const Slice& begin_key, 29724: const Slice& end_key) = 0; 29724: 29724: 29724: 29724: virtual Status VerifyFileChecksums(const ReadOptions& ) { 29724: return Status::NotSupported("File verification not supported"); 29724: } 29724: 29724: 29724: 29724: virtual Status VerifyChecksum(const ReadOptions& read_options) = 0; 29724: 29724: virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); } 29724: 29724: 29724: 29724: 29724: virtual Status GetDbIdentity(std::string& identity) const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetDbSessionId(std::string& session_id) const = 0; 29724: 29724: 29724: virtual ColumnFamilyHandle* DefaultColumnFamily() const = 0; 29724: 29724: virtual Status GetPropertiesOfAllTables(ColumnFamilyHandle* column_family, 29724: TablePropertiesCollection* props) = 0; 29724: virtual Status GetPropertiesOfAllTables(TablePropertiesCollection* props) { 29724: return GetPropertiesOfAllTables(DefaultColumnFamily(), props); 29724: } 29724: virtual Status GetPropertiesOfTablesInRange( 29724: ColumnFamilyHandle* column_family, const Range* range, std::size_t n, 29724: TablePropertiesCollection* props) = 0; 29724: 29724: 29724: virtual Status GetPropertiesOfTablesForLevels( 29724: ColumnFamilyHandle* , 29724: std::vector< 29724: std::unique_ptr>* ) { 29724: return Status::NotSupported( 29724: "GetPropertiesOfTablesForLevels() is not implemented."); 29724: } 29724: 29724: virtual Status SuggestCompactRange(ColumnFamilyHandle* , 29724: const Slice* , 29724: const Slice* ) { 29724: return Status::NotSupported("SuggestCompactRange() is not implemented."); 29724: } 29724: 29724: 29724: 29724: virtual Status PromoteL0(ColumnFamilyHandle* , 29724: int ) { 29724: return Status::NotSupported("PromoteL0() is not implemented."); 29724: } 29724: 29724: 29724: virtual Status StartTrace(const TraceOptions& , 29724: std::unique_ptr&& ) { 29724: return Status::NotSupported("StartTrace() is not implemented."); 29724: } 29724: 29724: virtual Status EndTrace() { 29724: return Status::NotSupported("EndTrace() is not implemented."); 29724: } 29724: 29724: 29724: virtual Status StartIOTrace(const TraceOptions& , 29724: std::unique_ptr&& ) { 29724: return Status::NotSupported("StartIOTrace() is not implemented."); 29724: } 29724: 29724: virtual Status EndIOTrace() { 29724: return Status::NotSupported("EndIOTrace() is not implemented."); 29724: } 29724: 29724: 29724: virtual Status StartBlockCacheTrace( 29724: const TraceOptions& , 29724: std::unique_ptr&& ) { 29724: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 29724: } 29724: 29724: virtual Status StartBlockCacheTrace( 29724: const BlockCacheTraceOptions& , 29724: std::unique_ptr&& ) { 29724: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 29724: } 29724: 29724: virtual Status EndBlockCacheTrace() { 29724: return Status::NotSupported("EndBlockCacheTrace() is not implemented."); 29724: } 29724: 29724: 29724: virtual Status NewDefaultReplayer( 29724: const std::vector& , 29724: std::unique_ptr&& , 29724: std::unique_ptr* ) { 29724: return Status::NotSupported("NewDefaultReplayer() is not implemented."); 29724: } 29724: 29724: 29724: virtual DB* GetRootDB() { return this; } 29724: 29724: 29724: 29724: 29724: virtual Status GetStatsHistory( 29724: uint64_t , uint64_t , 29724: std::unique_ptr* ) { 29724: return Status::NotSupported("GetStatsHistory() is not implemented."); 29724: } 29724: # 2105 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: virtual Status TryCatchUpWithPrimary() { 29724: return Status::NotSupported("Supported only by secondary instance"); 29724: } 29724: }; 29724: 29724: struct WriteStallStatsMapKeys { 29724: static const std::string& TotalStops(); 29724: static const std::string& TotalDelays(); 29724: 29724: static const std::string& CFL0FileCountLimitDelaysWithOngoingCompaction(); 29724: static const std::string& CFL0FileCountLimitStopsWithOngoingCompaction(); 29724: # 2124 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: static std::string CauseConditionCount(WriteStallCause cause, 29724: WriteStallCondition condition); 29724: }; 29724: 29724: 29724: inline DB::SizeApproximationFlags operator&(DB::SizeApproximationFlags lhs, 29724: DB::SizeApproximationFlags rhs) { 29724: return static_cast(static_cast(lhs) & 29724: static_cast(rhs)); 29724: } 29724: inline DB::SizeApproximationFlags operator|(DB::SizeApproximationFlags lhs, 29724: DB::SizeApproximationFlags rhs) { 29724: return static_cast(static_cast(lhs) | 29724: static_cast(rhs)); 29724: } 29724: 29724: inline Status DB::GetApproximateSizes(ColumnFamilyHandle* column_family, 29724: const Range* ranges, int n, 29724: uint64_t* sizes, 29724: SizeApproximationFlags include_flags) { 29724: SizeApproximationOptions options; 29724: options.include_memtables = 29724: ((include_flags & SizeApproximationFlags::INCLUDE_MEMTABLES) != 29724: SizeApproximationFlags::NONE); 29724: options.include_files = 29724: ((include_flags & SizeApproximationFlags::INCLUDE_FILES) != 29724: SizeApproximationFlags::NONE); 29724: return GetApproximateSizes(options, column_family, ranges, n, sizes); 29724: } 29724: 29724: 29724: 29724: Status DestroyDB(const std::string& name, const Options& options, 29724: const std::vector& column_families = 29724: std::vector()); 29724: # 2169 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29724: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 29724: const std::vector& column_families); 29724: 29724: 29724: 29724: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 29724: const std::vector& column_families, 29724: const ColumnFamilyOptions& unknown_cf_opts); 29724: 29724: 29724: 29724: Status RepairDB(const std::string& dbname, const Options& options); 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: const std::vector empty_operand_list; 29724: 29724: 29724: 29724: 29724: 29724: class MergeContext { 29724: public: 29724: GetMergeOperandsOptions* get_merge_operands_options = nullptr; 29724: 29724: 29724: void Clear() { 29724: if (operand_list_) { 29724: operand_list_->clear(); 29724: copied_operands_->clear(); 29724: } 29724: } 29724: 29724: 29724: void PushOperand(const Slice& operand_slice, bool operand_pinned = false) { 29724: Initialize(); 29724: SetDirectionBackward(); 29724: 29724: if (operand_pinned) { 29724: operand_list_->push_back(operand_slice); 29724: } else { 29724: 29724: copied_operands_->emplace_back( 29724: new std::string(operand_slice.data(), operand_slice.size())); 29724: operand_list_->push_back(*copied_operands_->back()); 29724: } 29724: } 29724: 29724: 29724: void PushOperandBack(const Slice& operand_slice, 29724: bool operand_pinned = false) { 29724: Initialize(); 29724: SetDirectionForward(); 29724: 29724: if (operand_pinned) { 29724: operand_list_->push_back(operand_slice); 29724: } else { 29724: 29724: copied_operands_->emplace_back( 29724: new std::string(operand_slice.data(), operand_slice.size())); 29724: operand_list_->push_back(*copied_operands_->back()); 29724: } 29724: } 29724: 29724: 29724: size_t GetNumOperands() const { 29724: if (!operand_list_) { 29724: return 0; 29724: } 29724: return operand_list_->size(); 29724: } 29724: 29724: 29724: Slice GetOperand(int index) const { 29724: 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29724: (static_cast ( 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29724: operand_list_ 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29724: "operand_list_" 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29724: ; 29724: 29724: SetDirectionForward(); 29724: return (*operand_list_)[index]; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: const std::vector& GetOperands() const { 29724: return GetOperandsDirectionForward(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const std::vector& GetOperandsDirectionForward() const { 29724: if (!operand_list_) { 29724: return empty_operand_list; 29724: } 29724: 29724: SetDirectionForward(); 29724: return *operand_list_; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const std::vector& GetOperandsDirectionBackward() const { 29724: if (!operand_list_) { 29724: return empty_operand_list; 29724: } 29724: 29724: SetDirectionBackward(); 29724: return *operand_list_; 29724: } 29724: 29724: private: 29724: void Initialize() { 29724: if (!operand_list_) { 29724: operand_list_.reset(new std::vector()); 29724: copied_operands_.reset(new std::vector>()); 29724: } 29724: } 29724: 29724: void SetDirectionForward() const { 29724: if (operands_reversed_ == true) { 29724: std::reverse(operand_list_->begin(), operand_list_->end()); 29724: operands_reversed_ = false; 29724: } 29724: } 29724: 29724: void SetDirectionBackward() const { 29724: if (operands_reversed_ == false) { 29724: std::reverse(operand_list_->begin(), operand_list_->end()); 29724: operands_reversed_ = true; 29724: } 29724: } 29724: 29724: 29724: mutable std::unique_ptr> operand_list_; 29724: 29724: std::unique_ptr>> copied_operands_; 29724: mutable bool operands_reversed_ = true; 29724: }; 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/iterator" 1 3 29724: # 58 "/usr/include/c++/14/iterator" 3 29724: 29724: # 59 "/usr/include/c++/14/iterator" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stream_iterator.h" 1 3 29724: # 33 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: 29724: # 34 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 40 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 50 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29724: 29724: 29724: template, typename _Dist = ptrdiff_t> 29724: class istream_iterator 29724: : public iterator 29724: { 29724: public: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef basic_istream<_CharT, _Traits> istream_type; 29724: 29724: private: 29724: istream_type* _M_stream; 29724: _Tp _M_value; 29724: 29724: 29724: 29724: bool _M_ok; 29724: 29724: public: 29724: 29724: constexpr istream_iterator() 29724: noexcept(is_nothrow_default_constructible<_Tp>::value) 29724: : _M_stream(0), _M_value(), _M_ok(false) {} 29724: 29724: 29724: istream_iterator(istream_type& __s) 29724: : _M_stream(std::__addressof(__s)), _M_ok(true) 29724: { _M_read(); } 29724: 29724: constexpr 29724: istream_iterator(const istream_iterator& __obj) 29724: noexcept(is_nothrow_copy_constructible<_Tp>::value) 29724: : _M_stream(__obj._M_stream), _M_value(__obj._M_value), 29724: _M_ok(__obj._M_ok) 29724: { } 29724: # 98 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: istream_iterator& operator=(const istream_iterator&) = default; 29724: ~istream_iterator() = default; 29724: 29724: 29724: [[__nodiscard__]] 29724: const _Tp& 29724: operator*() const noexcept 29724: { 29724: 29724: 29724: ; 29724: return _M_value; 29724: } 29724: 29724: [[__nodiscard__]] 29724: const _Tp* 29724: operator->() const noexcept 29724: { return std::__addressof((operator*())); } 29724: 29724: istream_iterator& 29724: operator++() 29724: { 29724: 29724: 29724: ; 29724: _M_read(); 29724: return *this; 29724: } 29724: 29724: istream_iterator 29724: operator++(int) 29724: { 29724: 29724: 29724: ; 29724: istream_iterator __tmp = *this; 29724: _M_read(); 29724: return __tmp; 29724: } 29724: 29724: private: 29724: bool 29724: _M_equal(const istream_iterator& __x) const noexcept 29724: { 29724: 29724: 29724: return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); 29724: } 29724: 29724: void 29724: _M_read() 29724: { 29724: if (_M_stream && !(*_M_stream >> _M_value)) 29724: { 29724: _M_stream = 0; 29724: _M_ok = false; 29724: } 29724: } 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator==(const istream_iterator& __x, const istream_iterator& __y) 29724: noexcept 29724: { return __x._M_equal(__y); } 29724: 29724: 29724: 29724: 29724: [[__nodiscard__]] 29724: friend bool 29724: operator!=(const istream_iterator& __x, const istream_iterator& __y) 29724: noexcept 29724: { return !__x._M_equal(__y); } 29724: # 181 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: }; 29724: # 194 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: template > 29724: class ostream_iterator 29724: : public iterator 29724: { 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef basic_ostream<_CharT, _Traits> ostream_type; 29724: 29724: 29724: private: 29724: ostream_type* _M_stream; 29724: const _CharT* _M_string; 29724: 29724: public: 29724: 29724: ostream_iterator(ostream_type& __s) noexcept 29724: : _M_stream(std::__addressof(__s)), _M_string(0) {} 29724: # 229 "/usr/include/c++/14/bits/stream_iterator.h" 3 29724: ostream_iterator(ostream_type& __s, const _CharT* __c) noexcept 29724: : _M_stream(std::__addressof(__s)), _M_string(__c) { } 29724: 29724: 29724: ostream_iterator(const ostream_iterator& __obj) noexcept 29724: : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } 29724: 29724: 29724: ostream_iterator& operator=(const ostream_iterator&) = default; 29724: 29724: 29724: 29724: 29724: ostream_iterator& 29724: operator=(const _Tp& __value) 29724: { 29724: 29724: 29724: ; 29724: *_M_stream << __value; 29724: if (_M_string) 29724: *_M_stream << _M_string; 29724: return *this; 29724: } 29724: 29724: [[__nodiscard__]] 29724: ostream_iterator& 29724: operator*() noexcept 29724: { return *this; } 29724: 29724: ostream_iterator& 29724: operator++() noexcept 29724: { return *this; } 29724: 29724: ostream_iterator& 29724: operator++(int) noexcept 29724: { return *this; } 29724: }; 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: 29724: } 29724: # 66 "/usr/include/c++/14/iterator" 2 3 29724: # 78 "/usr/include/c++/14/iterator" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 79 "/usr/include/c++/14/iterator" 2 3 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: 29724: # 1 "/usr/include/c++/14/set" 1 3 29724: # 58 "/usr/include/c++/14/set" 3 29724: 29724: # 59 "/usr/include/c++/14/set" 3 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/stl_set.h" 1 3 29724: # 64 "/usr/include/c++/14/bits/stl_set.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class multiset; 29724: # 94 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template, 29724: typename _Alloc = std::allocator<_Key> > 29724: class set 29724: { 29724: # 110 "/usr/include/c++/14/bits/stl_set.h" 3 29724: static_assert(is_same::type, _Key>::value, 29724: "std::set must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: 29724: public: 29724: 29724: 29724: 29724: typedef _Key key_type; 29724: typedef _Key value_type; 29724: typedef _Compare key_compare; 29724: typedef _Compare value_compare; 29724: typedef _Alloc allocator_type; 29724: 29724: 29724: private: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Key>::other _Key_alloc_type; 29724: 29724: typedef _Rb_tree, 29724: key_compare, _Key_alloc_type> _Rep_type; 29724: _Rep_type _M_t; 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 29724: 29724: public: 29724: 29724: 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: 29724: 29724: 29724: typedef typename _Rep_type::const_iterator iterator; 29724: typedef typename _Rep_type::const_iterator const_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29724: typedef typename _Rep_type::size_type size_type; 29724: typedef typename _Rep_type::difference_type difference_type; 29724: 29724: 29724: 29724: using node_type = typename _Rep_type::node_type; 29724: using insert_return_type = typename _Rep_type::insert_return_type; 29724: # 169 "/usr/include/c++/14/bits/stl_set.h" 3 29724: set() = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: set(const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) { } 29724: # 192 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: set(_InputIterator __first, _InputIterator __last) 29724: : _M_t() 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 209 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: set(_InputIterator __first, _InputIterator __last, 29724: const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 225 "/usr/include/c++/14/bits/stl_set.h" 3 29724: set(const set&) = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: set(set&&) = default; 29724: # 245 "/usr/include/c++/14/bits/stl_set.h" 3 29724: set(initializer_list __l, 29724: const _Compare& __comp = _Compare(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29724: 29724: 29724: explicit 29724: set(const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) { } 29724: 29724: 29724: set(const set& __x, const __type_identity_t& __a) 29724: : _M_t(__x._M_t, _Key_alloc_type(__a)) { } 29724: 29724: 29724: set(set&& __x, const __type_identity_t& __a) 29724: noexcept(is_nothrow_copy_constructible<_Compare>::value 29724: && _Alloc_traits::_S_always_equal()) 29724: : _M_t(std::move(__x._M_t), _Key_alloc_type(__a)) { } 29724: 29724: 29724: set(initializer_list __l, const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29724: 29724: 29724: template 29724: set(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~set() = default; 29724: # 299 "/usr/include/c++/14/bits/stl_set.h" 3 29724: set& 29724: operator=(const set&) = default; 29724: 29724: 29724: set& 29724: operator=(set&&) = default; 29724: # 317 "/usr/include/c++/14/bits/stl_set.h" 3 29724: set& 29724: operator=(initializer_list __l) 29724: { 29724: _M_t._M_assign_unique(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: key_compare 29724: key_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: value_compare 29724: value_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_t.get_allocator()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: cbegin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: cend() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: crbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: crend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_t.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_t.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_t.max_size(); } 29724: # 442 "/usr/include/c++/14/bits/stl_set.h" 3 29724: void 29724: swap(set& __x) 29724: noexcept(__is_nothrow_swappable<_Compare>::value) 29724: { _M_t.swap(__x._M_t); } 29724: # 462 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: std::pair 29724: emplace(_Args&&... __args) 29724: { return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } 29724: # 488 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { 29724: return _M_t._M_emplace_hint_unique(__pos, 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 510 "/usr/include/c++/14/bits/stl_set.h" 3 29724: std::pair 29724: insert(const value_type& __x) 29724: { 29724: std::pair __p = 29724: _M_t._M_insert_unique(__x); 29724: return std::pair(__p.first, __p.second); 29724: } 29724: 29724: 29724: std::pair 29724: insert(value_type&& __x) 29724: { 29724: std::pair __p = 29724: _M_t._M_insert_unique(std::move(__x)); 29724: return std::pair(__p.first, __p.second); 29724: } 29724: # 547 "/usr/include/c++/14/bits/stl_set.h" 3 29724: iterator 29724: insert(const_iterator __position, const value_type& __x) 29724: { return _M_t._M_insert_unique_(__position, __x); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 29724: # 566 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_t._M_insert_range_unique(__first, __last); } 29724: # 579 "/usr/include/c++/14/bits/stl_set.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { this->insert(__l.begin(), __l.end()); } 29724: 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_t.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __x) 29724: { return _M_t.extract(__x); } 29724: 29724: 29724: insert_return_type 29724: insert(node_type&& __nh) 29724: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 29724: 29724: template 29724: friend struct std::_Rb_tree_merge_helper; 29724: 29724: template 29724: void 29724: merge(set<_Key, _Compare1, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(set<_Key, _Compare1, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(multiset<_Key, _Compare1, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 29724: { merge(__source); } 29724: # 654 "/usr/include/c++/14/bits/stl_set.h" 3 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_t.erase(__position); } 29724: # 685 "/usr/include/c++/14/bits/stl_set.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_t.erase(__x); } 29724: # 706 "/usr/include/c++/14/bits/stl_set.h" 3 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_t.erase(__first, __last); } 29724: # 734 "/usr/include/c++/14/bits/stl_set.h" 3 29724: void 29724: clear() noexcept 29724: { _M_t.clear(); } 29724: # 749 "/usr/include/c++/14/bits/stl_set.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 29724: 29724: 29724: template 29724: auto 29724: count(const _Kt& __x) const 29724: -> decltype(_M_t._M_count_tr(__x)) 29724: { return _M_t._M_count_tr(__x); } 29724: # 795 "/usr/include/c++/14/bits/stl_set.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_t.find(__x); } 29724: 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) 29724: -> decltype(iterator{_M_t._M_find_tr(__x)}) 29724: { return iterator{_M_t._M_find_tr(__x)}; } 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) const 29724: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 29724: { return const_iterator{_M_t._M_find_tr(__x)}; } 29724: # 830 "/usr/include/c++/14/bits/stl_set.h" 3 29724: iterator 29724: lower_bound(const key_type& __x) 29724: { return _M_t.lower_bound(__x); } 29724: 29724: const_iterator 29724: lower_bound(const key_type& __x) const 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) const 29724: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 860 "/usr/include/c++/14/bits/stl_set.h" 3 29724: iterator 29724: upper_bound(const key_type& __x) 29724: { return _M_t.upper_bound(__x); } 29724: 29724: const_iterator 29724: upper_bound(const key_type& __x) const 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) const 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 899 "/usr/include/c++/14/bits/stl_set.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_t.equal_range(__x); } 29724: 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) const 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 29724: 29724: }; 29724: 29724: 29724: 29724: template::value_type>, 29724: typename _Allocator = 29724: allocator::value_type>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: set(_InputIterator, _InputIterator, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> set::value_type, 29724: _Compare, _Allocator>; 29724: 29724: template, 29724: typename _Allocator = allocator<_Key>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: set(initializer_list<_Key>, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> set<_Key, _Compare, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: set(_InputIterator, _InputIterator, _Allocator) 29724: -> set::value_type, 29724: less::value_type>, 29724: _Allocator>; 29724: 29724: template> 29724: set(initializer_list<_Key>, _Allocator) 29724: -> set<_Key, less<_Key>, _Allocator>; 29724: # 985 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: inline bool 29724: operator==(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return __x._M_t == __y._M_t; } 29724: # 1023 "/usr/include/c++/14/bits/stl_set.h" 3 29724: template 29724: inline bool 29724: operator<(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return __x._M_t < __y._M_t; } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: inline bool 29724: operator<=(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>=(const set<_Key, _Compare, _Alloc>& __x, 29724: const set<_Key, _Compare, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: _Rb_tree_merge_helper, _Cmp2> 29724: { 29724: private: 29724: friend class std::set<_Val, _Cmp1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 29724: { return __set._M_t; } 29724: 29724: static auto& 29724: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 29724: { return __set._M_t; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 64 "/usr/include/c++/14/set" 2 3 29724: # 1 "/usr/include/c++/14/bits/stl_multiset.h" 1 3 29724: # 64 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class set; 29724: # 95 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template , 29724: typename _Alloc = std::allocator<_Key> > 29724: class multiset 29724: { 29724: # 111 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: static_assert(is_same::type, _Key>::value, 29724: "std::multiset must have a non-const, non-volatile value_type"); 29724: 29724: 29724: 29724: 29724: 29724: 29724: public: 29724: 29724: typedef _Key key_type; 29724: typedef _Key value_type; 29724: typedef _Compare key_compare; 29724: typedef _Compare value_compare; 29724: typedef _Alloc allocator_type; 29724: 29724: private: 29724: 29724: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29724: rebind<_Key>::other _Key_alloc_type; 29724: 29724: typedef _Rb_tree, 29724: key_compare, _Key_alloc_type> _Rep_type; 29724: 29724: _Rep_type _M_t; 29724: 29724: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 29724: 29724: public: 29724: typedef typename _Alloc_traits::pointer pointer; 29724: typedef typename _Alloc_traits::const_pointer const_pointer; 29724: typedef typename _Alloc_traits::reference reference; 29724: typedef typename _Alloc_traits::const_reference const_reference; 29724: 29724: 29724: 29724: typedef typename _Rep_type::const_iterator iterator; 29724: typedef typename _Rep_type::const_iterator const_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 29724: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29724: typedef typename _Rep_type::size_type size_type; 29724: typedef typename _Rep_type::difference_type difference_type; 29724: 29724: 29724: using node_type = typename _Rep_type::node_type; 29724: # 165 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset() = default; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: multiset(const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) { } 29724: # 187 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: multiset(_InputIterator __first, _InputIterator __last) 29724: : _M_t() 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 203 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: multiset(_InputIterator __first, _InputIterator __last, 29724: const _Compare& __comp, 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 219 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset(const multiset&) = default; 29724: # 228 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset(multiset&&) = default; 29724: # 240 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset(initializer_list __l, 29724: const _Compare& __comp = _Compare(), 29724: const allocator_type& __a = allocator_type()) 29724: : _M_t(__comp, _Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29724: 29724: 29724: explicit 29724: multiset(const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) { } 29724: 29724: 29724: multiset(const multiset& __m, 29724: const __type_identity_t& __a) 29724: : _M_t(__m._M_t, _Key_alloc_type(__a)) { } 29724: 29724: 29724: multiset(multiset&& __m, const __type_identity_t& __a) 29724: noexcept(is_nothrow_copy_constructible<_Compare>::value 29724: && _Alloc_traits::_S_always_equal()) 29724: : _M_t(std::move(__m._M_t), _Key_alloc_type(__a)) { } 29724: 29724: 29724: multiset(initializer_list __l, const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29724: 29724: 29724: template 29724: multiset(_InputIterator __first, _InputIterator __last, 29724: const allocator_type& __a) 29724: : _M_t(_Key_alloc_type(__a)) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~multiset() = default; 29724: # 295 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset& 29724: operator=(const multiset&) = default; 29724: 29724: 29724: multiset& 29724: operator=(multiset&&) = default; 29724: # 313 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: multiset& 29724: operator=(initializer_list __l) 29724: { 29724: _M_t._M_assign_equal(__l.begin(), __l.end()); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: key_compare 29724: key_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: value_compare 29724: value_comp() const 29724: { return _M_t.key_comp(); } 29724: 29724: allocator_type 29724: get_allocator() const noexcept 29724: { return allocator_type(_M_t.get_allocator()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: begin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: end() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: rend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: cbegin() const noexcept 29724: { return _M_t.begin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: iterator 29724: cend() const noexcept 29724: { return _M_t.end(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: crbegin() const noexcept 29724: { return _M_t.rbegin(); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: reverse_iterator 29724: crend() const noexcept 29724: { return _M_t.rend(); } 29724: 29724: 29724: 29724: [[__nodiscard__]] bool 29724: empty() const noexcept 29724: { return _M_t.empty(); } 29724: 29724: 29724: size_type 29724: size() const noexcept 29724: { return _M_t.size(); } 29724: 29724: 29724: size_type 29724: max_size() const noexcept 29724: { return _M_t.max_size(); } 29724: # 438 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: void 29724: swap(multiset& __x) 29724: noexcept(__is_nothrow_swappable<_Compare>::value) 29724: { _M_t.swap(__x._M_t); } 29724: # 457 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: iterator 29724: emplace(_Args&&... __args) 29724: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 29724: # 483 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: iterator 29724: emplace_hint(const_iterator __pos, _Args&&... __args) 29724: { 29724: return _M_t._M_emplace_hint_equal(__pos, 29724: std::forward<_Args>(__args)...); 29724: } 29724: # 503 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: iterator 29724: insert(const value_type& __x) 29724: { return _M_t._M_insert_equal(__x); } 29724: 29724: 29724: iterator 29724: insert(value_type&& __x) 29724: { return _M_t._M_insert_equal(std::move(__x)); } 29724: # 533 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: iterator 29724: insert(const_iterator __position, const value_type& __x) 29724: { return _M_t._M_insert_equal_(__position, __x); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __position, value_type&& __x) 29724: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 29724: # 551 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: void 29724: insert(_InputIterator __first, _InputIterator __last) 29724: { _M_t._M_insert_range_equal(__first, __last); } 29724: # 564 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: void 29724: insert(initializer_list __l) 29724: { this->insert(__l.begin(), __l.end()); } 29724: 29724: 29724: 29724: 29724: node_type 29724: extract(const_iterator __pos) 29724: { 29724: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29724: return _M_t.extract(__pos); 29724: } 29724: 29724: 29724: node_type 29724: extract(const key_type& __x) 29724: { return _M_t.extract(__x); } 29724: 29724: 29724: iterator 29724: insert(node_type&& __nh) 29724: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 29724: 29724: 29724: iterator 29724: insert(const_iterator __hint, node_type&& __nh) 29724: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 29724: 29724: template 29724: friend struct std::_Rb_tree_merge_helper; 29724: 29724: template 29724: void 29724: merge(multiset<_Key, _Compare1, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 29724: { merge(__source); } 29724: 29724: template 29724: void 29724: merge(set<_Key, _Compare1, _Alloc>& __source) 29724: { 29724: using _Merge_helper = _Rb_tree_merge_helper; 29724: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29724: } 29724: 29724: template 29724: void 29724: merge(set<_Key, _Compare1, _Alloc>&& __source) 29724: { merge(__source); } 29724: # 639 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __position) 29724: { return _M_t.erase(__position); } 29724: # 670 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: size_type 29724: erase(const key_type& __x) 29724: { return _M_t.erase(__x); } 29724: # 691 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: __attribute ((__abi_tag__ ("cxx11"))) 29724: iterator 29724: erase(const_iterator __first, const_iterator __last) 29724: { return _M_t.erase(__first, __last); } 29724: # 719 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: void 29724: clear() noexcept 29724: { _M_t.clear(); } 29724: # 731 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: size_type 29724: count(const key_type& __x) const 29724: { return _M_t.count(__x); } 29724: 29724: 29724: template 29724: auto 29724: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29724: { return _M_t._M_count_tr(__x); } 29724: # 776 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: iterator 29724: find(const key_type& __x) 29724: { return _M_t.find(__x); } 29724: 29724: const_iterator 29724: find(const key_type& __x) const 29724: { return _M_t.find(__x); } 29724: 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) 29724: -> decltype(iterator{_M_t._M_find_tr(__x)}) 29724: { return iterator{_M_t._M_find_tr(__x)}; } 29724: 29724: template 29724: auto 29724: find(const _Kt& __x) const 29724: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 29724: { return const_iterator{_M_t._M_find_tr(__x)}; } 29724: # 811 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: iterator 29724: lower_bound(const key_type& __x) 29724: { return _M_t.lower_bound(__x); } 29724: 29724: const_iterator 29724: lower_bound(const key_type& __x) const 29724: { return _M_t.lower_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29724: 29724: template 29724: auto 29724: lower_bound(const _Kt& __x) const 29724: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29724: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29724: # 841 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: iterator 29724: upper_bound(const key_type& __x) 29724: { return _M_t.upper_bound(__x); } 29724: 29724: const_iterator 29724: upper_bound(const key_type& __x) const 29724: { return _M_t.upper_bound(__x); } 29724: 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29724: 29724: template 29724: auto 29724: upper_bound(const _Kt& __x) const 29724: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29724: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29724: # 880 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: std::pair 29724: equal_range(const key_type& __x) 29724: { return _M_t.equal_range(__x); } 29724: 29724: std::pair 29724: equal_range(const key_type& __x) const 29724: { return _M_t.equal_range(__x); } 29724: 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: 29724: template 29724: auto 29724: equal_range(const _Kt& __x) const 29724: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29724: { return pair(_M_t._M_equal_range_tr(__x)); } 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator==(const multiset<_K1, _C1, _A1>&, 29724: const multiset<_K1, _C1, _A1>&); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: friend bool 29724: operator< (const multiset<_K1, _C1, _A1>&, 29724: const multiset<_K1, _C1, _A1>&); 29724: 29724: }; 29724: 29724: 29724: 29724: template::value_type>, 29724: typename _Allocator = 29724: allocator::value_type>, 29724: typename = _RequireInputIter<_InputIterator>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: multiset(_InputIterator, _InputIterator, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> multiset::value_type, 29724: _Compare, _Allocator>; 29724: 29724: template, 29724: typename _Allocator = allocator<_Key>, 29724: typename = _RequireNotAllocator<_Compare>, 29724: typename = _RequireAllocator<_Allocator>> 29724: multiset(initializer_list<_Key>, 29724: _Compare = _Compare(), _Allocator = _Allocator()) 29724: -> multiset<_Key, _Compare, _Allocator>; 29724: 29724: template, 29724: typename = _RequireAllocator<_Allocator>> 29724: multiset(_InputIterator, _InputIterator, _Allocator) 29724: -> multiset::value_type, 29724: less::value_type>, 29724: _Allocator>; 29724: 29724: template> 29724: multiset(initializer_list<_Key>, _Allocator) 29724: -> multiset<_Key, less<_Key>, _Allocator>; 29724: # 971 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: inline bool 29724: operator==(const multiset<_Key, _Compare, _Alloc>& __x, 29724: const multiset<_Key, _Compare, _Alloc>& __y) 29724: { return __x._M_t == __y._M_t; } 29724: # 1009 "/usr/include/c++/14/bits/stl_multiset.h" 3 29724: template 29724: inline bool 29724: operator<(const multiset<_Key, _Compare, _Alloc>& __x, 29724: const multiset<_Key, _Compare, _Alloc>& __y) 29724: { return __x._M_t < __y._M_t; } 29724: 29724: 29724: template 29724: inline bool 29724: operator!=(const multiset<_Key, _Compare, _Alloc>& __x, 29724: const multiset<_Key, _Compare, _Alloc>& __y) 29724: { return !(__x == __y); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>(const multiset<_Key,_Compare,_Alloc>& __x, 29724: const multiset<_Key,_Compare,_Alloc>& __y) 29724: { return __y < __x; } 29724: 29724: 29724: template 29724: inline bool 29724: operator<=(const multiset<_Key, _Compare, _Alloc>& __x, 29724: const multiset<_Key, _Compare, _Alloc>& __y) 29724: { return !(__y < __x); } 29724: 29724: 29724: template 29724: inline bool 29724: operator>=(const multiset<_Key, _Compare, _Alloc>& __x, 29724: const multiset<_Key, _Compare, _Alloc>& __y) 29724: { return !(__x < __y); } 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(multiset<_Key, _Compare, _Alloc>& __x, 29724: multiset<_Key, _Compare, _Alloc>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct 29724: _Rb_tree_merge_helper, 29724: _Cmp2> 29724: { 29724: private: 29724: friend class std::multiset<_Val, _Cmp1, _Alloc>; 29724: 29724: static auto& 29724: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 29724: { return __set._M_t; } 29724: 29724: static auto& 29724: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 29724: { return __set._M_t; } 29724: }; 29724: 29724: 29724: 29724: } 29724: # 65 "/usr/include/c++/14/set" 2 3 29724: # 77 "/usr/include/c++/14/set" 3 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 78 "/usr/include/c++/14/set" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace pmr 29724: { 29724: template> 29724: using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>; 29724: template> 29724: using multiset = std::multiset<_Key, _Cmp, polymorphic_allocator<_Key>>; 29724: } 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iteration_stats.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iteration_stats.h" 29724: namespace rocksdb { 29724: 29724: struct CompactionIterationStats { 29724: 29724: 29724: 29724: 29724: int64_t num_record_drop_user = 0; 29724: 29724: int64_t num_record_drop_hidden = 0; 29724: int64_t num_record_drop_obsolete = 0; 29724: int64_t num_record_drop_range_del = 0; 29724: int64_t num_range_del_drop_obsolete = 0; 29724: 29724: int64_t num_optimized_del_drop_obsolete = 0; 29724: uint64_t total_filter_time = 0; 29724: 29724: 29724: 29724: 29724: uint64_t num_input_records = 0; 29724: uint64_t num_input_deletion_records = 0; 29724: uint64_t num_input_corrupt_records = 0; 29724: uint64_t total_input_raw_key_bytes = 0; 29724: uint64_t total_input_raw_value_bytes = 0; 29724: 29724: 29724: uint64_t num_single_del_fallthru = 0; 29724: uint64_t num_single_del_mismatch = 0; 29724: 29724: 29724: uint64_t num_blobs_read = 0; 29724: uint64_t total_blob_bytes_read = 0; 29724: uint64_t num_blobs_relocated = 0; 29724: uint64_t total_blob_bytes_relocated = 0; 29724: 29724: 29724: 29724: uint64_t num_input_timed_put_records = 0; 29724: 29724: 29724: uint64_t num_timed_put_swap_preferred_seqno = 0; 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/readahead_file_info.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct ReadaheadFileInfo { 29724: struct ReadaheadInfo { 29724: size_t readahead_size = 0; 29724: int64_t num_file_reads = 0; 29724: }; 29724: 29724: 29724: ReadaheadInfo data_block_readahead_info; 29724: 29724: 29724: ReadaheadInfo index_block_readahead_info; 29724: }; 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/sstream" 1 3 29724: # 36 "/usr/include/c++/14/sstream" 3 29724: 29724: # 37 "/usr/include/c++/14/sstream" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/istream" 1 3 29724: # 36 "/usr/include/c++/14/istream" 3 29724: 29724: # 37 "/usr/include/c++/14/istream" 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 43 "/usr/include/c++/14/istream" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: # 59 "/usr/include/c++/14/istream" 3 29724: template 29724: class basic_istream : virtual public basic_ios<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef typename _Traits::pos_type pos_type; 29724: typedef typename _Traits::off_type off_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29724: typedef basic_ios<_CharT, _Traits> __ios_type; 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 29724: __num_get_type; 29724: typedef ctype<_CharT> __ctype_type; 29724: 29724: protected: 29724: 29724: 29724: 29724: 29724: 29724: streamsize _M_gcount; 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_istream(__streambuf_type* __sb) 29724: : _M_gcount(streamsize(0)) 29724: { this->init(__sb); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual 29724: ~basic_istream() 29724: { _M_gcount = streamsize(0); } 29724: 29724: 29724: class sentry; 29724: friend class sentry; 29724: # 121 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: operator>>(__istream_type& (*__pf)(__istream_type&)) 29724: { return __pf(*this); } 29724: 29724: __istream_type& 29724: operator>>(__ios_type& (*__pf)(__ios_type&)) 29724: { 29724: __pf(*this); 29724: return *this; 29724: } 29724: 29724: __istream_type& 29724: operator>>(ios_base& (*__pf)(ios_base&)) 29724: { 29724: __pf(*this); 29724: return *this; 29724: } 29724: # 169 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: operator>>(bool& __n) 29724: { return _M_extract(__n); } 29724: 29724: __istream_type& 29724: operator>>(short& __n); 29724: 29724: __istream_type& 29724: operator>>(unsigned short& __n) 29724: { return _M_extract(__n); } 29724: 29724: __istream_type& 29724: operator>>(int& __n); 29724: 29724: __istream_type& 29724: operator>>(unsigned int& __n) 29724: { return _M_extract(__n); } 29724: 29724: __istream_type& 29724: operator>>(long& __n) 29724: { return _M_extract(__n); } 29724: 29724: __istream_type& 29724: operator>>(unsigned long& __n) 29724: { return _M_extract(__n); } 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: __istream_type& 29724: operator>>(long long& __n) 29724: { return _M_extract(__n); } 29724: 29724: __istream_type& 29724: operator>>(unsigned long long& __n) 29724: { return _M_extract(__n); } 29724: #pragma GCC diagnostic pop 29724: # 218 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: operator>>(float& __f) 29724: { return _M_extract(__f); } 29724: 29724: __istream_type& 29724: operator>>(double& __f) 29724: { return _M_extract(__f); } 29724: 29724: __istream_type& 29724: operator>>(long double& __f) 29724: { return _M_extract(__f); } 29724: # 327 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: operator>>(void*& __p) 29724: { return _M_extract(__p); } 29724: # 351 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: operator>>(__streambuf_type* __sb); 29724: # 361 "/usr/include/c++/14/istream" 3 29724: streamsize 29724: gcount() const 29724: { return _M_gcount; } 29724: # 394 "/usr/include/c++/14/istream" 3 29724: int_type 29724: get(); 29724: # 408 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: get(char_type& __c); 29724: # 435 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: get(char_type* __s, streamsize __n, char_type __delim); 29724: # 446 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: get(char_type* __s, streamsize __n) 29724: { return this->get(__s, __n, this->widen('\n')); } 29724: # 469 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: get(__streambuf_type& __sb, char_type __delim); 29724: # 479 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: get(__streambuf_type& __sb) 29724: { return this->get(__sb, this->widen('\n')); } 29724: # 508 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: getline(char_type* __s, streamsize __n, char_type __delim); 29724: # 519 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: getline(char_type* __s, streamsize __n) 29724: { return this->getline(__s, __n, this->widen('\n')); } 29724: # 543 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: ignore(streamsize __n, int_type __delim); 29724: 29724: __istream_type& 29724: ignore(streamsize __n); 29724: 29724: __istream_type& 29724: ignore(); 29724: # 560 "/usr/include/c++/14/istream" 3 29724: int_type 29724: peek(); 29724: # 578 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: read(char_type* __s, streamsize __n); 29724: # 597 "/usr/include/c++/14/istream" 3 29724: streamsize 29724: readsome(char_type* __s, streamsize __n); 29724: # 614 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: putback(char_type __c); 29724: # 630 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: unget(); 29724: # 648 "/usr/include/c++/14/istream" 3 29724: int 29724: sync(); 29724: # 663 "/usr/include/c++/14/istream" 3 29724: pos_type 29724: tellg(); 29724: # 678 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: seekg(pos_type); 29724: # 694 "/usr/include/c++/14/istream" 3 29724: __istream_type& 29724: seekg(off_type, ios_base::seekdir); 29724: 29724: 29724: protected: 29724: basic_istream() 29724: : _M_gcount(streamsize(0)) 29724: { this->init(0); } 29724: 29724: 29724: basic_istream(const basic_istream&) = delete; 29724: 29724: basic_istream(basic_istream&& __rhs) 29724: : __ios_type(), _M_gcount(__rhs._M_gcount) 29724: { 29724: __ios_type::move(__rhs); 29724: __rhs._M_gcount = 0; 29724: } 29724: 29724: 29724: 29724: basic_istream& operator=(const basic_istream&) = delete; 29724: 29724: basic_istream& 29724: operator=(basic_istream&& __rhs) 29724: { 29724: swap(__rhs); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_istream& __rhs) 29724: { 29724: __ios_type::swap(__rhs); 29724: std::swap(_M_gcount, __rhs._M_gcount); 29724: } 29724: 29724: 29724: template 29724: __istream_type& 29724: _M_extract(_ValueT& __v); 29724: }; 29724: 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: getline(char_type* __s, streamsize __n, char_type __delim); 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: ignore(streamsize __n); 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: ignore(streamsize __n, int_type __delim); 29724: 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: getline(char_type* __s, streamsize __n, char_type __delim); 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: ignore(streamsize __n); 29724: 29724: template<> 29724: basic_istream& 29724: basic_istream:: 29724: ignore(streamsize __n, int_type __delim); 29724: # 778 "/usr/include/c++/14/istream" 3 29724: template 29724: class basic_istream<_CharT, _Traits>::sentry 29724: { 29724: 29724: bool _M_ok; 29724: 29724: public: 29724: 29724: typedef _Traits traits_type; 29724: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef typename __istream_type::__ctype_type __ctype_type; 29724: typedef typename _Traits::int_type __int_type; 29724: # 814 "/usr/include/c++/14/istream" 3 29724: explicit 29724: sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); 29724: # 825 "/usr/include/c++/14/istream" 3 29724: explicit 29724: 29724: operator bool() const 29724: { return _M_ok; } 29724: }; 29724: # 843 "/usr/include/c++/14/istream" 3 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); 29724: 29724: template 29724: inline basic_istream& 29724: operator>>(basic_istream& __in, unsigned char& __c) 29724: { return (__in >> reinterpret_cast(__c)); } 29724: 29724: template 29724: inline basic_istream& 29724: operator>>(basic_istream& __in, signed char& __c) 29724: { return (__in >> reinterpret_cast(__c)); } 29724: 29724: 29724: 29724: template 29724: void 29724: __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize); 29724: 29724: void __istream_extract(istream&, char*, streamsize); 29724: # 893 "/usr/include/c++/14/istream" 3 29724: template 29724: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29724: inline basic_istream<_CharT, _Traits>& 29724: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) 29724: { 29724: 29724: 29724: 29724: size_t __n = __builtin_object_size(__s, 0); 29724: if (__n < sizeof(_CharT)) 29724: { 29724: 29724: do { if (std::__is_constant_evaluated() && !bool(__n >= sizeof(_CharT))) std::__glibcxx_assert_fail(); } while (false); 29724: 29724: __in.width(0); 29724: __in.setstate(ios_base::failbit); 29724: } 29724: else if (__n != (size_t)-1) 29724: { 29724: __n /= sizeof(_CharT); 29724: streamsize __w = __in.width(); 29724: std::__istream_extract(__in, __s, __n); 29724: if (__in.good() && (__w <= 0 || __n < (size_t)__w)) 29724: { 29724: 29724: 29724: const typename _Traits::int_type __c = __in.rdbuf()->sgetc(); 29724: const bool __eof = _Traits::eq_int_type(__c, _Traits::eof()); 29724: if (__builtin_expect(__eof, true)) 29724: __in.setstate(ios_base::eofbit); 29724: } 29724: } 29724: else 29724: 29724: { 29724: 29724: streamsize __n = __gnu_cxx::__numeric_traits::__max; 29724: __n /= sizeof(_CharT); 29724: std::__istream_extract(__in, __s, __n); 29724: } 29724: return __in; 29724: } 29724: 29724: template 29724: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29724: inline basic_istream& 29724: operator>>(basic_istream& __in, unsigned char* __s) 29724: { return __in >> reinterpret_cast(__s); } 29724: 29724: template 29724: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29724: inline basic_istream& 29724: operator>>(basic_istream& __in, signed char* __s) 29724: { return __in >> reinterpret_cast(__s); } 29724: # 982 "/usr/include/c++/14/istream" 3 29724: template 29724: class basic_iostream 29724: : public basic_istream<_CharT, _Traits>, 29724: public basic_ostream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: 29724: 29724: typedef _CharT char_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef typename _Traits::pos_type pos_type; 29724: typedef typename _Traits::off_type off_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) 29724: : __istream_type(__sb), __ostream_type(__sb) { } 29724: 29724: 29724: 29724: 29724: virtual 29724: ~basic_iostream() { } 29724: 29724: protected: 29724: basic_iostream() 29724: : __istream_type(), __ostream_type() { } 29724: 29724: 29724: basic_iostream(const basic_iostream&) = delete; 29724: 29724: basic_iostream(basic_iostream&& __rhs) 29724: : __istream_type(std::move(__rhs)), __ostream_type(*this) 29724: { } 29724: 29724: 29724: 29724: basic_iostream& operator=(const basic_iostream&) = delete; 29724: 29724: basic_iostream& 29724: operator=(basic_iostream&& __rhs) 29724: { 29724: swap(__rhs); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_iostream& __rhs) 29724: { __istream_type::swap(__rhs); } 29724: 29724: }; 29724: # 1065 "/usr/include/c++/14/istream" 3 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: ws(basic_istream<_CharT, _Traits>& __is); 29724: # 1081 "/usr/include/c++/14/istream" 3 29724: template, 29724: typename = decltype(std::declval<_Is&>() >> std::declval<_Tp>())> 29724: using __rvalue_stream_extraction_t = _Is&&; 29724: # 1097 "/usr/include/c++/14/istream" 3 29724: template 29724: inline __rvalue_stream_extraction_t<_Istream, _Tp> 29724: operator>>(_Istream&& __is, _Tp&& __x) 29724: { 29724: __is >> std::forward<_Tp>(__x); 29724: return std::move(__is); 29724: } 29724: 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/istream.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/istream.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/istream.tcc" 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: basic_istream<_CharT, _Traits>::sentry:: 29724: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: if (__in.good()) 29724: { 29724: try 29724: { 29724: if (__in.tie()) 29724: __in.tie()->flush(); 29724: if (!__noskip && bool(__in.flags() & ios_base::skipws)) 29724: { 29724: const __int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = __in.rdbuf(); 29724: __int_type __c = __sb->sgetc(); 29724: 29724: const __ctype_type& __ct = __check_facet(__in._M_ctype); 29724: while (!traits_type::eq_int_type(__c, __eof) 29724: && __ct.is(ctype_base::space, 29724: traits_type::to_char_type(__c))) 29724: __c = __sb->snextc(); 29724: 29724: 29724: 29724: 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { __in._M_setstate(ios_base::badbit); } 29724: } 29724: 29724: if (__in.good() && __err == ios_base::goodbit) 29724: _M_ok = true; 29724: else 29724: { 29724: __err |= ios_base::failbit; 29724: __in.setstate(__err); 29724: } 29724: } 29724: 29724: template 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: _M_extract(_ValueT& __v) 29724: { 29724: sentry __cerb(*this, false); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: 29724: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29724: 29724: 29724: 29724: 29724: __ng.get(*this, 0, *this, __err, __v); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: operator>>(short& __n) 29724: { 29724: 29724: 29724: sentry __cerb(*this, false); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: long __l; 29724: 29724: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29724: 29724: 29724: 29724: 29724: __ng.get(*this, 0, *this, __err, __l); 29724: 29724: 29724: 29724: if (__l < __gnu_cxx::__numeric_traits::__min) 29724: { 29724: __err |= ios_base::failbit; 29724: __n = __gnu_cxx::__numeric_traits::__min; 29724: } 29724: else if (__l > __gnu_cxx::__numeric_traits::__max) 29724: { 29724: __err |= ios_base::failbit; 29724: __n = __gnu_cxx::__numeric_traits::__max; 29724: } 29724: else 29724: __n = short(__l); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: operator>>(int& __n) 29724: { 29724: 29724: 29724: sentry __cerb(*this, false); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: long __l; 29724: 29724: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29724: 29724: 29724: 29724: 29724: __ng.get(*this, 0, *this, __err, __l); 29724: 29724: 29724: 29724: if (__l < __gnu_cxx::__numeric_traits::__min) 29724: { 29724: __err |= ios_base::failbit; 29724: __n = __gnu_cxx::__numeric_traits::__min; 29724: } 29724: else if (__l > __gnu_cxx::__numeric_traits::__max) 29724: { 29724: __err |= ios_base::failbit; 29724: __n = __gnu_cxx::__numeric_traits::__max; 29724: } 29724: else 29724: __n = int(__l); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: operator>>(__streambuf_type* __sbout) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, false); 29724: if (__cerb && __sbout) 29724: { 29724: try 29724: { 29724: bool __ineof; 29724: if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) 29724: __err |= ios_base::failbit; 29724: if (__ineof) 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::failbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::failbit); } 29724: } 29724: else if (!__sbout) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: template 29724: typename basic_istream<_CharT, _Traits>::int_type 29724: basic_istream<_CharT, _Traits>:: 29724: get(void) 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: int_type __c = __eof; 29724: _M_gcount = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: __c = this->rdbuf()->sbumpc(); 29724: 29724: if (!traits_type::eq_int_type(__c, __eof)) 29724: _M_gcount = 1; 29724: else 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: if (!_M_gcount) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return __c; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: get(char_type& __c) 29724: { 29724: _M_gcount = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: const int_type __cb = this->rdbuf()->sbumpc(); 29724: 29724: if (!traits_type::eq_int_type(__cb, traits_type::eof())) 29724: { 29724: _M_gcount = 1; 29724: __c = traits_type::to_char_type(__cb); 29724: } 29724: else 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: if (!_M_gcount) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: get(char_type* __s, streamsize __n, char_type __delim) 29724: { 29724: _M_gcount = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: const int_type __idelim = traits_type::to_int_type(__delim); 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: int_type __c = __sb->sgetc(); 29724: 29724: while (_M_gcount + 1 < __n 29724: && !traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __idelim)) 29724: { 29724: *__s++ = traits_type::to_char_type(__c); 29724: ++_M_gcount; 29724: __c = __sb->snextc(); 29724: } 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: 29724: 29724: if (__n > 0) 29724: *__s = char_type(); 29724: if (!_M_gcount) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: get(__streambuf_type& __sb, char_type __delim) 29724: { 29724: _M_gcount = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: const int_type __idelim = traits_type::to_int_type(__delim); 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __this_sb = this->rdbuf(); 29724: int_type __c = __this_sb->sgetc(); 29724: char_type __c2 = traits_type::to_char_type(__c); 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: unsigned long long __gcount = 0; 29724: #pragma GCC diagnostic pop 29724: 29724: while (!traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __idelim) 29724: && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) 29724: { 29724: ++__gcount; 29724: __c = __this_sb->snextc(); 29724: __c2 = traits_type::to_char_type(__c); 29724: } 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: 29724: 29724: if (__gcount <= __gnu_cxx::__numeric_traits::__max) 29724: _M_gcount = __gcount; 29724: else 29724: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: if (!_M_gcount) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: getline(char_type* __s, streamsize __n, char_type __delim) 29724: { 29724: _M_gcount = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: const int_type __idelim = traits_type::to_int_type(__delim); 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: int_type __c = __sb->sgetc(); 29724: 29724: while (_M_gcount + 1 < __n 29724: && !traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __idelim)) 29724: { 29724: *__s++ = traits_type::to_char_type(__c); 29724: __c = __sb->snextc(); 29724: ++_M_gcount; 29724: } 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: else 29724: { 29724: if (traits_type::eq_int_type(__c, __idelim)) 29724: { 29724: __sb->sbumpc(); 29724: ++_M_gcount; 29724: } 29724: else 29724: __err |= ios_base::failbit; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: 29724: 29724: if (__n > 0) 29724: *__s = char_type(); 29724: if (!_M_gcount) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: this->setstate(__err); 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: ignore(void) 29724: { 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: 29724: if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) 29724: __err |= ios_base::eofbit; 29724: else 29724: _M_gcount = 1; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: ignore(streamsize __n) 29724: { 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb && __n > 0) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: int_type __c = __sb->sgetc(); 29724: # 548 "/usr/include/c++/14/bits/istream.tcc" 3 29724: bool __large_ignore = false; 29724: while (true) 29724: { 29724: while (_M_gcount < __n 29724: && !traits_type::eq_int_type(__c, __eof)) 29724: { 29724: ++_M_gcount; 29724: __c = __sb->snextc(); 29724: } 29724: if (__n == __gnu_cxx::__numeric_traits::__max 29724: && !traits_type::eq_int_type(__c, __eof)) 29724: { 29724: _M_gcount = 29724: __gnu_cxx::__numeric_traits::__min; 29724: __large_ignore = true; 29724: } 29724: else 29724: break; 29724: } 29724: 29724: if (__n == __gnu_cxx::__numeric_traits::__max) 29724: { 29724: if (__large_ignore) 29724: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29724: 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: } 29724: else if (_M_gcount < __n) 29724: { 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: ignore(streamsize __n, int_type __delim) 29724: { 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb && __n > 0) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: int_type __c = __sb->sgetc(); 29724: 29724: 29724: bool __large_ignore = false; 29724: while (true) 29724: { 29724: while (_M_gcount < __n 29724: && !traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __delim)) 29724: { 29724: ++_M_gcount; 29724: __c = __sb->snextc(); 29724: } 29724: if (__n == __gnu_cxx::__numeric_traits::__max 29724: && !traits_type::eq_int_type(__c, __eof) 29724: && !traits_type::eq_int_type(__c, __delim)) 29724: { 29724: _M_gcount = 29724: __gnu_cxx::__numeric_traits::__min; 29724: __large_ignore = true; 29724: } 29724: else 29724: break; 29724: } 29724: 29724: if (__n == __gnu_cxx::__numeric_traits::__max) 29724: { 29724: if (__large_ignore) 29724: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29724: 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: else 29724: { 29724: if (_M_gcount != __n) 29724: ++_M_gcount; 29724: __sb->sbumpc(); 29724: } 29724: } 29724: else if (_M_gcount < __n) 29724: { 29724: if (traits_type::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: else 29724: { 29724: ++_M_gcount; 29724: __sb->sbumpc(); 29724: } 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: typename basic_istream<_CharT, _Traits>::int_type 29724: basic_istream<_CharT, _Traits>:: 29724: peek(void) 29724: { 29724: int_type __c = traits_type::eof(); 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: __c = this->rdbuf()->sgetc(); 29724: if (traits_type::eq_int_type(__c, traits_type::eof())) 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return __c; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: read(char_type* __s, streamsize __n) 29724: { 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: _M_gcount = this->rdbuf()->sgetn(__s, __n); 29724: if (_M_gcount != __n) 29724: __err |= (ios_base::eofbit | ios_base::failbit); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: streamsize 29724: basic_istream<_CharT, _Traits>:: 29724: readsome(char_type* __s, streamsize __n) 29724: { 29724: _M_gcount = 0; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: 29724: const streamsize __num = this->rdbuf()->in_avail(); 29724: if (__num > 0) 29724: _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); 29724: else if (__num == -1) 29724: __err |= ios_base::eofbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return _M_gcount; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: putback(char_type __c) 29724: { 29724: 29724: 29724: _M_gcount = 0; 29724: 29724: this->clear(this->rdstate() & ~ios_base::eofbit); 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: if (!__sb 29724: || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) 29724: __err |= ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: unget(void) 29724: { 29724: 29724: 29724: _M_gcount = 0; 29724: 29724: this->clear(this->rdstate() & ~ios_base::eofbit); 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const int_type __eof = traits_type::eof(); 29724: __streambuf_type* __sb = this->rdbuf(); 29724: if (!__sb 29724: || traits_type::eq_int_type(__sb->sungetc(), __eof)) 29724: __err |= ios_base::badbit; 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: int 29724: basic_istream<_CharT, _Traits>:: 29724: sync(void) 29724: { 29724: 29724: 29724: int __ret = -1; 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: __streambuf_type* __sb = this->rdbuf(); 29724: if (__sb) 29724: { 29724: if (__sb->pubsync() == -1) 29724: __err |= ios_base::badbit; 29724: else 29724: __ret = 0; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_istream<_CharT, _Traits>::pos_type 29724: basic_istream<_CharT, _Traits>:: 29724: tellg(void) 29724: { 29724: 29724: 29724: pos_type __ret = pos_type(-1); 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: if (!this->fail()) 29724: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, 29724: ios_base::in); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: seekg(pos_type __pos) 29724: { 29724: 29724: 29724: 29724: this->clear(this->rdstate() & ~ios_base::eofbit); 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: if (!this->fail()) 29724: { 29724: 29724: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 29724: ios_base::in); 29724: 29724: 29724: if (__p == pos_type(off_type(-1))) 29724: __err |= ios_base::failbit; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: basic_istream<_CharT, _Traits>:: 29724: seekg(off_type __off, ios_base::seekdir __dir) 29724: { 29724: 29724: 29724: 29724: this->clear(this->rdstate() & ~ios_base::eofbit); 29724: sentry __cerb(*this, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: if (!this->fail()) 29724: { 29724: 29724: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 29724: ios_base::in); 29724: 29724: 29724: if (__p == pos_type(off_type(-1))) 29724: __err |= ios_base::failbit; 29724: } 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: this->_M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { this->_M_setstate(ios_base::badbit); } 29724: if (__err) 29724: this->setstate(__err); 29724: } 29724: return *this; 29724: } 29724: 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) 29724: { 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef typename __istream_type::int_type __int_type; 29724: 29724: typename __istream_type::sentry __cerb(__in, false); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const __int_type __cb = __in.rdbuf()->sbumpc(); 29724: if (!_Traits::eq_int_type(__cb, _Traits::eof())) 29724: __c = _Traits::to_char_type(__cb); 29724: else 29724: __err |= (ios_base::eofbit | ios_base::failbit); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { __in._M_setstate(ios_base::badbit); } 29724: if (__err) 29724: __in.setstate(__err); 29724: } 29724: return __in; 29724: } 29724: 29724: template 29724: void 29724: __istream_extract(basic_istream<_CharT, _Traits>& __in, _CharT* __s, 29724: streamsize __num) 29724: { 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29724: typedef typename _Traits::int_type int_type; 29724: typedef _CharT char_type; 29724: typedef ctype<_CharT> __ctype_type; 29724: 29724: streamsize __extracted = 0; 29724: ios_base::iostate __err = ios_base::goodbit; 29724: typename __istream_type::sentry __cerb(__in, false); 29724: if (__cerb) 29724: { 29724: try 29724: { 29724: 29724: streamsize __width = __in.width(); 29724: if (0 < __width && __width < __num) 29724: __num = __width; 29724: 29724: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29724: 29724: const int_type __eof = _Traits::eof(); 29724: __streambuf_type* __sb = __in.rdbuf(); 29724: int_type __c = __sb->sgetc(); 29724: 29724: while (__extracted < __num - 1 29724: && !_Traits::eq_int_type(__c, __eof) 29724: && !__ct.is(ctype_base::space, 29724: _Traits::to_char_type(__c))) 29724: { 29724: *__s++ = _Traits::to_char_type(__c); 29724: ++__extracted; 29724: __c = __sb->snextc(); 29724: } 29724: 29724: if (__extracted < __num - 1 29724: && _Traits::eq_int_type(__c, __eof)) 29724: __err |= ios_base::eofbit; 29724: 29724: 29724: 29724: *__s = char_type(); 29724: __in.width(0); 29724: } 29724: catch(__cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { __in._M_setstate(ios_base::badbit); } 29724: } 29724: if (!__extracted) 29724: __err |= ios_base::failbit; 29724: if (__err) 29724: __in.setstate(__err); 29724: } 29724: 29724: 29724: template 29724: basic_istream<_CharT, _Traits>& 29724: ws(basic_istream<_CharT, _Traits>& __in) 29724: { 29724: typedef basic_istream<_CharT, _Traits> __istream_type; 29724: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29724: typedef typename __istream_type::int_type __int_type; 29724: typedef ctype<_CharT> __ctype_type; 29724: 29724: 29724: 29724: typename __istream_type::sentry __cerb(__in, true); 29724: if (__cerb) 29724: { 29724: ios_base::iostate __err = ios_base::goodbit; 29724: try 29724: { 29724: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29724: const __int_type __eof = _Traits::eof(); 29724: __streambuf_type* __sb = __in.rdbuf(); 29724: __int_type __c = __sb->sgetc(); 29724: 29724: while (true) 29724: { 29724: if (_Traits::eq_int_type(__c, __eof)) 29724: { 29724: __err = ios_base::eofbit; 29724: break; 29724: } 29724: if (!__ct.is(ctype_base::space, _Traits::to_char_type(__c))) 29724: break; 29724: __c = __sb->snextc(); 29724: } 29724: } 29724: catch(const __cxxabiv1::__forced_unwind&) 29724: { 29724: __in._M_setstate(ios_base::badbit); 29724: throw; 29724: } 29724: catch(...) 29724: { 29724: __in._M_setstate(ios_base::badbit); 29724: } 29724: if (__err) 29724: __in.setstate(__err); 29724: } 29724: return __in; 29724: } 29724: 29724: 29724: 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wc++11-extensions" 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: extern template class basic_istream; 29724: extern template istream& ws(istream&); 29724: extern template istream& operator>>(istream&, char&); 29724: extern template istream& operator>>(istream&, unsigned char&); 29724: extern template istream& operator>>(istream&, signed char&); 29724: 29724: extern template istream& istream::_M_extract(unsigned short&); 29724: extern template istream& istream::_M_extract(unsigned int&); 29724: extern template istream& istream::_M_extract(long&); 29724: extern template istream& istream::_M_extract(unsigned long&); 29724: extern template istream& istream::_M_extract(bool&); 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wlong-long" 29724: extern template istream& istream::_M_extract(long long&); 29724: extern template istream& istream::_M_extract(unsigned long long&); 29724: #pragma GCC diagnostic pop 29724: 29724: extern template istream& istream::_M_extract(float&); 29724: extern template istream& istream::_M_extract(double&); 29724: extern template istream& istream::_M_extract(long double&); 29724: extern template istream& istream::_M_extract(void*&); 29724: 29724: extern template class basic_iostream; 29724: 29724: 29724: extern template class basic_istream; 29724: extern template wistream& ws(wistream&); 29724: extern template wistream& operator>>(wistream&, wchar_t&); 29724: extern template void __istream_extract(wistream&, wchar_t*, streamsize); 29724: 29724: extern template wistream& wistream::_M_extract(unsigned short&); 29724: extern template wistream& wistream::_M_extract(unsigned int&); 29724: extern template wistream& wistream::_M_extract(long&); 29724: extern template wistream& wistream::_M_extract(unsigned long&); 29724: extern template wistream& wistream::_M_extract(bool&); 29724: 29724: extern template wistream& wistream::_M_extract(long long&); 29724: extern template wistream& wistream::_M_extract(unsigned long long&); 29724: 29724: extern template wistream& wistream::_M_extract(float&); 29724: extern template wistream& wistream::_M_extract(double&); 29724: extern template wistream& wistream::_M_extract(long double&); 29724: extern template wistream& wistream::_M_extract(void*&); 29724: 29724: extern template class basic_iostream; 29724: 29724: #pragma GCC diagnostic pop 29724: 29724: 29724: 29724: } 29724: # 1110 "/usr/include/c++/14/istream" 2 3 29724: # 41 "/usr/include/c++/14/sstream" 2 3 29724: # 55 "/usr/include/c++/14/sstream" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: namespace __cxx11 { 29724: # 78 "/usr/include/c++/14/sstream" 3 29724: template 29724: class basic_stringbuf : public basic_streambuf<_CharT, _Traits> 29724: { 29724: struct __xfer_bufptrs; 29724: 29724: 29724: using allocator_traits = std::allocator_traits<_Alloc>; 29724: using _Noexcept_swap 29724: = __or_; 29724: 29724: 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef _Alloc allocator_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: typedef basic_streambuf __streambuf_type; 29724: typedef basic_string __string_type; 29724: typedef typename __string_type::size_type __size_type; 29724: 29724: protected: 29724: 29724: ios_base::openmode _M_mode; 29724: 29724: 29724: __string_type _M_string; 29724: 29724: public: 29724: # 121 "/usr/include/c++/14/sstream" 3 29724: basic_stringbuf() 29724: : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() 29724: { } 29724: # 132 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_stringbuf(ios_base::openmode __mode) 29724: : __streambuf_type(), _M_mode(__mode), _M_string() 29724: { } 29724: # 145 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_stringbuf(const __string_type& __str, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: : __streambuf_type(), _M_mode(), 29724: _M_string(__str.data(), __str.size(), __str.get_allocator()) 29724: { _M_stringbuf_init(__mode); } 29724: 29724: 29724: basic_stringbuf(const basic_stringbuf&) = delete; 29724: 29724: basic_stringbuf(basic_stringbuf&& __rhs) 29724: : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) 29724: { __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); } 29724: # 209 "/usr/include/c++/14/sstream" 3 29724: basic_stringbuf& 29724: operator=(const basic_stringbuf&) = delete; 29724: 29724: basic_stringbuf& 29724: operator=(basic_stringbuf&& __rhs) 29724: { 29724: __xfer_bufptrs __st{__rhs, this}; 29724: const __streambuf_type& __base = __rhs; 29724: __streambuf_type::operator=(__base); 29724: this->pubimbue(__rhs.getloc()); 29724: _M_mode = __rhs._M_mode; 29724: _M_string = std::move(__rhs._M_string); 29724: __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_stringbuf& __rhs) noexcept(_Noexcept_swap::value) 29724: { 29724: __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; 29724: __xfer_bufptrs __r_st{__rhs, this}; 29724: __streambuf_type& __base = __rhs; 29724: __streambuf_type::swap(__base); 29724: __rhs.pubimbue(this->pubimbue(__rhs.getloc())); 29724: std::swap(_M_mode, __rhs._M_mode); 29724: std::swap(_M_string, __rhs._M_string); 29724: } 29724: # 248 "/usr/include/c++/14/sstream" 3 29724: __string_type 29724: str() const 29724: { 29724: __string_type __ret(_M_string.get_allocator()); 29724: if (char_type* __hi = _M_high_mark()) 29724: __ret.assign(this->pbase(), __hi); 29724: else 29724: __ret = _M_string; 29724: return __ret; 29724: } 29724: # 304 "/usr/include/c++/14/sstream" 3 29724: void 29724: str(const __string_type& __s) 29724: { 29724: 29724: 29724: _M_string.assign(__s.data(), __s.size()); 29724: _M_stringbuf_init(_M_mode); 29724: } 29724: # 333 "/usr/include/c++/14/sstream" 3 29724: protected: 29724: 29724: void 29724: _M_stringbuf_init(ios_base::openmode __mode) 29724: { 29724: _M_mode = __mode; 29724: __size_type __len = 0; 29724: if (_M_mode & (ios_base::ate | ios_base::app)) 29724: __len = _M_string.size(); 29724: _M_sync(const_cast(_M_string.data()), 0, __len); 29724: } 29724: 29724: virtual streamsize 29724: showmanyc() 29724: { 29724: streamsize __ret = -1; 29724: if (_M_mode & ios_base::in) 29724: { 29724: _M_update_egptr(); 29724: __ret = this->egptr() - this->gptr(); 29724: } 29724: return __ret; 29724: } 29724: 29724: virtual int_type 29724: underflow(); 29724: 29724: virtual int_type 29724: pbackfail(int_type __c = traits_type::eof()); 29724: 29724: virtual int_type 29724: overflow(int_type __c = traits_type::eof()); 29724: # 377 "/usr/include/c++/14/sstream" 3 29724: virtual __streambuf_type* 29724: setbuf(char_type* __s, streamsize __n) 29724: { 29724: if (__s && __n >= 0) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: _M_string.clear(); 29724: 29724: 29724: _M_sync(__s, __n, 0); 29724: } 29724: return this; 29724: } 29724: 29724: virtual pos_type 29724: seekoff(off_type __off, ios_base::seekdir __way, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out); 29724: 29724: virtual pos_type 29724: seekpos(pos_type __sp, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out); 29724: 29724: 29724: 29724: 29724: void 29724: _M_sync(char_type* __base, __size_type __i, __size_type __o); 29724: 29724: 29724: 29724: void 29724: _M_update_egptr() 29724: { 29724: if (char_type* __pptr = this->pptr()) 29724: { [ 23%] Building CXX object CMakeFiles/rocksdb.dir/db/merge_helper.cc.o 29724: char_type* __egptr = this->egptr(); 29724: if (!__egptr || __pptr > __egptr) 29724: { 29724: if (_M_mode & ios_base::in) 29724: this->setg(this->eback(), this->gptr(), __pptr); 29724: else 29724: this->setg(__pptr, __pptr, __pptr); 29724: } 29724: } 29724: } 29724: 29724: 29724: 29724: void 29724: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: __attribute__((__always_inline__)) 29724: char_type* 29724: _M_high_mark() const noexcept 29724: { 29724: if (char_type* __pptr = this->pptr()) 29724: { 29724: char_type* __egptr = this->egptr(); 29724: if (!__egptr || __pptr > __egptr) 29724: return __pptr; 29724: else 29724: return __egptr; 29724: } 29724: return 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: struct __xfer_bufptrs 29724: { 29724: __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) 29724: : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} 29724: { 29724: const _CharT* const __str = __from._M_string.data(); 29724: const _CharT* __end = nullptr; 29724: if (__from.eback()) 29724: { 29724: _M_goff[0] = __from.eback() - __str; 29724: _M_goff[1] = __from.gptr() - __str; 29724: _M_goff[2] = __from.egptr() - __str; 29724: __end = __from.egptr(); 29724: } 29724: if (__from.pbase()) 29724: { 29724: _M_poff[0] = __from.pbase() - __str; 29724: _M_poff[1] = __from.pptr() - __from.pbase(); 29724: _M_poff[2] = __from.epptr() - __str; 29724: if (!__end || __from.pptr() > __end) 29724: __end = __from.pptr(); 29724: } 29724: 29724: 29724: if (__end) 29724: { 29724: 29724: 29724: auto& __mut_from = const_cast(__from); 29724: __mut_from._M_string._M_length(__end - __str); 29724: } 29724: } 29724: 29724: ~__xfer_bufptrs() 29724: { 29724: char_type* __str = const_cast(_M_to->_M_string.data()); 29724: if (_M_goff[0] != -1) 29724: _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); 29724: if (_M_poff[0] != -1) 29724: _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); 29724: } 29724: 29724: basic_stringbuf* _M_to; 29724: off_type _M_goff[3]; 29724: off_type _M_poff[3]; 29724: }; 29724: # 513 "/usr/include/c++/14/sstream" 3 29724: basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) 29724: : __streambuf_type(static_cast(__rhs)), 29724: _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) 29724: { } 29724: # 528 "/usr/include/c++/14/sstream" 3 29724: }; 29724: # 546 "/usr/include/c++/14/sstream" 3 29724: template 29724: class basic_istringstream : public basic_istream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef _Alloc allocator_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29724: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29724: typedef basic_istream __istream_type; 29724: 29724: private: 29724: __stringbuf_type _M_stringbuf; 29724: 29724: public: 29724: # 580 "/usr/include/c++/14/sstream" 3 29724: basic_istringstream() 29724: : __istream_type(), _M_stringbuf(ios_base::in) 29724: { this->init(&_M_stringbuf); } 29724: # 596 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_istringstream(ios_base::openmode __mode) 29724: : __istream_type(), _M_stringbuf(__mode | ios_base::in) 29724: { this->init(&_M_stringbuf); } 29724: # 614 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_istringstream(const __string_type& __str, 29724: ios_base::openmode __mode = ios_base::in) 29724: : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) 29724: { this->init(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~basic_istringstream() 29724: { } 29724: 29724: 29724: basic_istringstream(const basic_istringstream&) = delete; 29724: 29724: basic_istringstream(basic_istringstream&& __rhs) 29724: : __istream_type(std::move(__rhs)), 29724: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29724: { __istream_type::set_rdbuf(&_M_stringbuf); } 29724: # 671 "/usr/include/c++/14/sstream" 3 29724: basic_istringstream& 29724: operator=(const basic_istringstream&) = delete; 29724: 29724: basic_istringstream& 29724: operator=(basic_istringstream&& __rhs) 29724: { 29724: __istream_type::operator=(std::move(__rhs)); 29724: _M_stringbuf = std::move(__rhs._M_stringbuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_istringstream& __rhs) 29724: { 29724: __istream_type::swap(__rhs); 29724: _M_stringbuf.swap(__rhs._M_stringbuf); 29724: } 29724: # 697 "/usr/include/c++/14/sstream" 3 29724: __stringbuf_type* 29724: rdbuf() const 29724: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: __string_type 29724: str() const 29724: { return _M_stringbuf.str(); } 29724: # 735 "/usr/include/c++/14/sstream" 3 29724: void 29724: str(const __string_type& __s) 29724: { _M_stringbuf.str(__s); } 29724: # 752 "/usr/include/c++/14/sstream" 3 29724: }; 29724: # 770 "/usr/include/c++/14/sstream" 3 29724: template 29724: class basic_ostringstream : public basic_ostream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef _Alloc allocator_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29724: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29724: typedef basic_ostream __ostream_type; 29724: 29724: private: 29724: __stringbuf_type _M_stringbuf; 29724: 29724: public: 29724: # 804 "/usr/include/c++/14/sstream" 3 29724: basic_ostringstream() 29724: : __ostream_type(), _M_stringbuf(ios_base::out) 29724: { this->init(&_M_stringbuf); } 29724: # 820 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_ostringstream(ios_base::openmode __mode) 29724: : __ostream_type(), _M_stringbuf(__mode | ios_base::out) 29724: { this->init(&_M_stringbuf); } 29724: # 838 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_ostringstream(const __string_type& __str, 29724: ios_base::openmode __mode = ios_base::out) 29724: : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) 29724: { this->init(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~basic_ostringstream() 29724: { } 29724: 29724: 29724: basic_ostringstream(const basic_ostringstream&) = delete; 29724: 29724: basic_ostringstream(basic_ostringstream&& __rhs) 29724: : __ostream_type(std::move(__rhs)), 29724: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29724: { __ostream_type::set_rdbuf(&_M_stringbuf); } 29724: # 895 "/usr/include/c++/14/sstream" 3 29724: basic_ostringstream& 29724: operator=(const basic_ostringstream&) = delete; 29724: 29724: basic_ostringstream& 29724: operator=(basic_ostringstream&& __rhs) 29724: { 29724: __ostream_type::operator=(std::move(__rhs)); 29724: _M_stringbuf = std::move(__rhs._M_stringbuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_ostringstream& __rhs) 29724: { 29724: __ostream_type::swap(__rhs); 29724: _M_stringbuf.swap(__rhs._M_stringbuf); 29724: } 29724: # 921 "/usr/include/c++/14/sstream" 3 29724: __stringbuf_type* 29724: rdbuf() const 29724: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: __string_type 29724: str() const 29724: { return _M_stringbuf.str(); } 29724: # 959 "/usr/include/c++/14/sstream" 3 29724: void 29724: str(const __string_type& __s) 29724: { _M_stringbuf.str(__s); } 29724: # 976 "/usr/include/c++/14/sstream" 3 29724: }; 29724: # 994 "/usr/include/c++/14/sstream" 3 29724: template 29724: class basic_stringstream : public basic_iostream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: 29724: 29724: typedef _Alloc allocator_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29724: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29724: typedef basic_iostream __iostream_type; 29724: 29724: private: 29724: __stringbuf_type _M_stringbuf; 29724: 29724: public: 29724: # 1028 "/usr/include/c++/14/sstream" 3 29724: basic_stringstream() 29724: : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) 29724: { this->init(&_M_stringbuf); } 29724: # 1042 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_stringstream(ios_base::openmode __m) 29724: : __iostream_type(), _M_stringbuf(__m) 29724: { this->init(&_M_stringbuf); } 29724: # 1058 "/usr/include/c++/14/sstream" 3 29724: explicit 29724: basic_stringstream(const __string_type& __str, 29724: ios_base::openmode __m = ios_base::out | ios_base::in) 29724: : __iostream_type(), _M_stringbuf(__str, __m) 29724: { this->init(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ~basic_stringstream() 29724: { } 29724: 29724: 29724: basic_stringstream(const basic_stringstream&) = delete; 29724: 29724: basic_stringstream(basic_stringstream&& __rhs) 29724: : __iostream_type(std::move(__rhs)), 29724: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29724: { __iostream_type::set_rdbuf(&_M_stringbuf); } 29724: # 1117 "/usr/include/c++/14/sstream" 3 29724: basic_stringstream& 29724: operator=(const basic_stringstream&) = delete; 29724: 29724: basic_stringstream& 29724: operator=(basic_stringstream&& __rhs) 29724: { 29724: __iostream_type::operator=(std::move(__rhs)); 29724: _M_stringbuf = std::move(__rhs._M_stringbuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_stringstream& __rhs) 29724: { 29724: __iostream_type::swap(__rhs); 29724: _M_stringbuf.swap(__rhs._M_stringbuf); 29724: } 29724: # 1143 "/usr/include/c++/14/sstream" 3 29724: __stringbuf_type* 29724: rdbuf() const 29724: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29724: 29724: 29724: 29724: 29724: 29724: __string_type 29724: str() const 29724: { return _M_stringbuf.str(); } 29724: # 1181 "/usr/include/c++/14/sstream" 3 29724: void 29724: str(const __string_type& __s) 29724: { _M_stringbuf.str(__s); } 29724: # 1198 "/usr/include/c++/14/sstream" 3 29724: }; 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, 29724: basic_stringbuf<_CharT, _Traits, _Allocator>& __y) 29724: noexcept(noexcept(__x.swap(__y))) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, 29724: basic_istringstream<_CharT, _Traits, _Allocator>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, 29724: basic_ostringstream<_CharT, _Traits, _Allocator>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, 29724: basic_stringstream<_CharT, _Traits, _Allocator>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: } 29724: 29724: } 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/sstream.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/sstream.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/sstream.tcc" 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: pbackfail(int_type __c) 29724: { 29724: int_type __ret = traits_type::eof(); 29724: if (this->eback() < this->gptr()) 29724: { 29724: 29724: 29724: const bool __testeof = traits_type::eq_int_type(__c, __ret); 29724: if (!__testeof) 29724: { 29724: const bool __testeq = traits_type::eq(traits_type:: 29724: to_char_type(__c), 29724: this->gptr()[-1]); 29724: const bool __testout = this->_M_mode & ios_base::out; 29724: if (__testeq || __testout) 29724: { 29724: this->gbump(-1); 29724: if (!__testeq) 29724: *this->gptr() = traits_type::to_char_type(__c); 29724: __ret = __c; 29724: } 29724: } 29724: else 29724: { 29724: this->gbump(-1); 29724: __ret = traits_type::not_eof(__c); 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: overflow(int_type __c) 29724: { 29724: const bool __testout = this->_M_mode & ios_base::out; 29724: if (__builtin_expect(!__testout, false)) 29724: return traits_type::eof(); 29724: 29724: const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); 29724: if (__builtin_expect(__testeof, false)) 29724: return traits_type::not_eof(__c); 29724: 29724: const __size_type __capacity = _M_string.capacity(); 29724: 29724: 29724: if (size_t(this->epptr() - this->pbase()) < __capacity) 29724: { 29724: 29724: char_type* __base = const_cast(_M_string.data()); 29724: _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); 29724: if (_M_mode & ios_base::in) 29724: { 29724: const __size_type __nget = this->gptr() - this->eback(); 29724: const __size_type __eget = this->egptr() - this->eback(); 29724: this->setg(__base, __base + __nget, __base + __eget + 1); 29724: } 29724: *this->pptr() = traits_type::to_char_type(__c); 29724: this->pbump(1); 29724: return __c; 29724: } 29724: 29724: 29724: const __size_type __max_size = _M_string.max_size(); 29724: const bool __testput = this->pptr() < this->epptr(); 29724: if (__builtin_expect(!__testput && __capacity == __max_size, false)) 29724: return traits_type::eof(); 29724: 29724: 29724: 29724: const char_type __conv = traits_type::to_char_type(__c); 29724: if (!__testput) 29724: { 29724: # 129 "/usr/include/c++/14/bits/sstream.tcc" 3 29724: const __size_type __opt_len = std::max(__size_type(2 * __capacity), 29724: __size_type(512)); 29724: const __size_type __len = std::min(__opt_len, __max_size); 29724: __string_type __tmp(_M_string.get_allocator()); 29724: __tmp.reserve(__len); 29724: if (this->pbase()) 29724: __tmp.assign(this->pbase(), this->epptr() - this->pbase()); 29724: __tmp.push_back(__conv); 29724: _M_string.swap(__tmp); 29724: _M_sync(const_cast(_M_string.data()), 29724: this->gptr() - this->eback(), this->pptr() - this->pbase()); 29724: } 29724: else 29724: *this->pptr() = __conv; 29724: this->pbump(1); 29724: return __c; 29724: } 29724: 29724: template 29724: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: underflow() 29724: { 29724: int_type __ret = traits_type::eof(); 29724: const bool __testin = this->_M_mode & ios_base::in; 29724: if (__testin) 29724: { 29724: 29724: _M_update_egptr(); 29724: 29724: if (this->gptr() < this->egptr()) 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) 29724: { 29724: pos_type __ret = pos_type(off_type(-1)); 29724: bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 29724: bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 29724: const bool __testboth = __testin && __testout && __way != ios_base::cur; 29724: __testin &= !(__mode & ios_base::out); 29724: __testout &= !(__mode & ios_base::in); 29724: 29724: 29724: 29724: const char_type* __beg = __testin ? this->eback() : this->pbase(); 29724: if ((__beg || !__off) && (__testin || __testout || __testboth)) 29724: { 29724: _M_update_egptr(); 29724: 29724: off_type __newoffi = __off; 29724: off_type __newoffo = __newoffi; 29724: if (__way == ios_base::cur) 29724: { 29724: __newoffi += this->gptr() - __beg; 29724: __newoffo += this->pptr() - __beg; 29724: } 29724: else if (__way == ios_base::end) 29724: __newoffo = __newoffi += this->egptr() - __beg; 29724: 29724: if ((__testin || __testboth) 29724: && __newoffi >= 0 29724: && this->egptr() - __beg >= __newoffi) 29724: { 29724: this->setg(this->eback(), this->eback() + __newoffi, 29724: this->egptr()); 29724: __ret = pos_type(__newoffi); 29724: } 29724: if ((__testout || __testboth) 29724: && __newoffo >= 0 29724: && this->egptr() - __beg >= __newoffo) 29724: { 29724: _M_pbump(this->pbase(), this->epptr(), __newoffo); 29724: __ret = pos_type(__newoffo); 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: seekpos(pos_type __sp, ios_base::openmode __mode) 29724: { 29724: pos_type __ret = pos_type(off_type(-1)); 29724: const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 29724: const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 29724: 29724: const char_type* __beg = __testin ? this->eback() : this->pbase(); 29724: if ((__beg || !off_type(__sp)) && (__testin || __testout)) 29724: { 29724: _M_update_egptr(); 29724: 29724: const off_type __pos(__sp); 29724: const bool __testpos = (0 <= __pos 29724: && __pos <= this->egptr() - __beg); 29724: if (__testpos) 29724: { 29724: if (__testin) 29724: this->setg(this->eback(), this->eback() + __pos, 29724: this->egptr()); 29724: if (__testout) 29724: _M_pbump(this->pbase(), this->epptr(), __pos); 29724: __ret = __sp; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: void 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: _M_sync(char_type* __base, __size_type __i, __size_type __o) 29724: { 29724: const bool __testin = _M_mode & ios_base::in; 29724: const bool __testout = _M_mode & ios_base::out; 29724: char_type* __endg = __base + _M_string.size(); 29724: char_type* __endp = __base + _M_string.capacity(); 29724: 29724: if (__base != _M_string.data()) 29724: { 29724: 29724: __endg += __i; 29724: __i = 0; 29724: __endp = __endg; 29724: } 29724: 29724: if (__testin) 29724: this->setg(__base, __base + __i, __endg); 29724: if (__testout) 29724: { 29724: _M_pbump(__base, __endp, __o); 29724: 29724: 29724: 29724: if (!__testin) 29724: this->setg(__endg, __endg, __endg); 29724: } 29724: } 29724: 29724: template 29724: void 29724: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29724: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) 29724: { 29724: this->setp(__pbeg, __pend); 29724: while (__off > __gnu_cxx::__numeric_traits::__max) 29724: { 29724: this->pbump(__gnu_cxx::__numeric_traits::__max); 29724: __off -= __gnu_cxx::__numeric_traits::__max; 29724: } 29724: this->pbump(__off); 29724: } 29724: 29724: 29724: 29724: 29724: extern template class basic_stringbuf; 29724: extern template class basic_istringstream; 29724: extern template class basic_ostringstream; 29724: extern template class basic_stringstream; 29724: 29724: 29724: extern template class basic_stringbuf; 29724: extern template class basic_istringstream; 29724: extern template class basic_ostringstream; 29724: extern template class basic_stringstream; 29724: 29724: 29724: 29724: 29724: } 29724: # 1239 "/usr/include/c++/14/sstream" 2 3 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 1 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cstdarg" 1 3 29724: # 39 "/usr/include/c++/14/cstdarg" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdarg" 3 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 2 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 1 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: namespace rocksdb { 29724: 29724: 29724: class Cache; 29724: class FilterPolicy; 29724: class FlushBlockPolicyFactory; 29724: class PersistentCache; 29724: class RandomAccessFile; 29724: struct TableReaderOptions; 29724: struct TableBuilderOptions; 29724: class TableBuilder; 29724: class TableFactory; 29724: class TableReader; 29724: class WritableFileWriter; 29724: struct ConfigOptions; 29724: struct EnvOptions; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum ChecksumType : char { 29724: kNoChecksum = 0x0, 29724: kCRC32c = 0x1, 29724: kxxHash = 0x2, 29724: kxxHash64 = 0x3, 29724: kXXH3 = 0x4, 29724: }; 29724: 29724: 29724: 29724: 29724: enum class PinningTier { 29724: 29724: 29724: 29724: 29724: kFallback, 29724: 29724: 29724: kNone, 29724: 29724: 29724: 29724: 29724: 29724: 29724: kFlushedAndSimilar, 29724: 29724: 29724: kAll, 29724: }; 29724: 29724: 29724: 29724: struct MetadataCacheOptions { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: PinningTier top_level_index_pinning = PinningTier::kFallback; 29724: 29724: 29724: 29724: PinningTier partition_pinning = PinningTier::kFallback; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: PinningTier unpartitioned_pinning = PinningTier::kFallback; 29724: }; 29724: 29724: struct CacheEntryRoleOptions { 29724: enum class Decision { 29724: kEnabled, 29724: kDisabled, 29724: kFallback, 29724: }; 29724: Decision charged = Decision::kFallback; 29724: bool operator==(const CacheEntryRoleOptions& other) const { 29724: return charged == other.charged; 29724: } 29724: }; 29724: 29724: struct CacheUsageOptions { 29724: CacheEntryRoleOptions options; 29724: std::map options_overrides; 29724: }; 29724: # 147 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: struct BlockBasedTableOptions { 29724: static const char* kName() { return "BlockTableOptions"; } 29724: 29724: 29724: 29724: 29724: 29724: std::shared_ptr flush_block_policy_factory; 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool cache_index_and_filter_blocks = false; 29724: 29724: 29724: 29724: 29724: 29724: bool cache_index_and_filter_blocks_with_high_priority = true; 29724: # 196 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool pin_l0_filter_and_index_blocks_in_cache = false; 29724: # 218 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool pin_top_level_index_and_filter = true; 29724: 29724: 29724: 29724: 29724: 29724: MetadataCacheOptions metadata_cache_options; 29724: 29724: 29724: enum IndexType : char { 29724: 29724: 29724: kBinarySearch = 0x00, 29724: 29724: 29724: 29724: kHashSearch = 0x01, 29724: 29724: 29724: 29724: 29724: kTwoLevelIndexSearch = 0x02, 29724: # 252 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: kBinarySearchWithFirstKey = 0x03, 29724: }; 29724: 29724: IndexType index_type = kBinarySearch; 29724: 29724: 29724: enum DataBlockIndexType : char { 29724: kDataBlockBinarySearch = 0, 29724: kDataBlockBinaryAndHash = 1, 29724: }; 29724: 29724: DataBlockIndexType data_block_index_type = kDataBlockBinarySearch; 29724: 29724: 29724: 29724: double data_block_hash_table_util_ratio = 0.75; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ChecksumType checksum = kXXH3; 29724: 29724: 29724: 29724: 29724: 29724: bool no_block_cache = false; 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: std::shared_ptr block_cache = nullptr; 29724: 29724: 29724: 29724: std::shared_ptr persistent_cache = nullptr; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t block_size = 4 * 1024; 29724: 29724: 29724: 29724: 29724: 29724: 29724: int block_size_deviation = 10; 29724: 29724: 29724: 29724: 29724: 29724: int block_restart_interval = 16; 29724: 29724: 29724: int index_block_restart_interval = 1; 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t metadata_block_size = 4096; 29724: # 412 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: CacheUsageOptions cache_usage_options; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool partition_filters = false; 29724: # 437 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool decouple_partitioned_filters = false; 29724: # 472 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool optimize_filters_for_memory = true; 29724: 29724: 29724: 29724: 29724: 29724: bool use_delta_encoding = true; 29724: 29724: 29724: 29724: 29724: std::shared_ptr filter_policy = nullptr; 29724: 29724: 29724: 29724: bool whole_key_filtering = true; 29724: # 497 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: bool detect_filter_construct_corruption = false; 29724: 29724: 29724: 29724: 29724: bool verify_compression = false; 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: uint32_t read_amp_bytes_per_bit = 0; 29724: # 563 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: uint32_t format_version = 6; 29724: 29724: 29724: 29724: 29724: bool enable_index_compression = true; 29724: 29724: 29724: bool block_align = false; 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: enum class IndexShorteningMode : char { 29724: 29724: kNoShortening, 29724: 29724: 29724: kShortenSeparators, 29724: 29724: kShortenSeparatorsAndSuccessor, 29724: }; 29724: 29724: IndexShorteningMode index_shortening = 29724: IndexShorteningMode::kShortenSeparators; 29724: # 627 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: size_t max_auto_readahead_size = 256 * 1024; 29724: # 637 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: enum class PrepopulateBlockCache : char { 29724: 29724: kDisable, 29724: 29724: kFlushOnly, 29724: }; 29724: 29724: PrepopulateBlockCache prepopulate_block_cache = 29724: PrepopulateBlockCache::kDisable; 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: size_t initial_auto_readahead_size = 8 * 1024; 29724: # 687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: uint64_t num_file_reads_for_auto_readahead = 2; 29724: }; 29724: 29724: 29724: struct BlockBasedTablePropertyNames { 29724: 29724: static const std::string kIndexType; 29724: 29724: static const std::string kWholeKeyFiltering; 29724: 29724: static const std::string kPrefixFiltering; 29724: 29724: 29724: 29724: 29724: static const std::string kDecoupledPartitionedFilters; 29724: }; 29724: 29724: 29724: TableFactory* NewBlockBasedTableFactory( 29724: const BlockBasedTableOptions& table_options = BlockBasedTableOptions()); 29724: 29724: enum EncodingType : char { 29724: 29724: kPlain, 29724: # 723 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: kPrefix, 29724: }; 29724: 29724: 29724: struct PlainTablePropertyNames { 29724: static const std::string kEncodingType; 29724: static const std::string kBloomVersion; 29724: static const std::string kNumBloomBlocks; 29724: }; 29724: 29724: const uint32_t kPlainTableVariableLength = 0; 29724: 29724: struct PlainTableOptions { 29724: static const char* kName() { return "PlainTableOptions"; } 29724: 29724: 29724: 29724: 29724: uint32_t user_key_len = kPlainTableVariableLength; 29724: 29724: 29724: 29724: int bloom_bits_per_key = 10; 29724: 29724: 29724: 29724: 29724: 29724: double hash_table_ratio = 0.75; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t index_sparseness = 16; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t huge_page_tlb_size = 0; 29724: # 776 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: EncodingType encoding_type = kPlain; 29724: 29724: 29724: 29724: bool full_scan_mode = false; 29724: 29724: 29724: 29724: 29724: bool store_index_in_file = false; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: TableFactory* NewPlainTableFactory( 29724: const PlainTableOptions& options = PlainTableOptions()); 29724: 29724: struct CuckooTablePropertyNames { 29724: 29724: static const std::string kEmptyKey; 29724: 29724: static const std::string kValueLength; 29724: 29724: static const std::string kNumHashFunc; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kCuckooBlockSize; 29724: 29724: 29724: 29724: 29724: 29724: static const std::string kHashTableSize; 29724: 29724: 29724: static const std::string kIsLastLevel; 29724: 29724: static const std::string kIdentityAsFirstHash; 29724: 29724: static const std::string kUseModuleHash; 29724: 29724: static const std::string kUserKeyLength; 29724: }; 29724: 29724: struct CuckooTableOptions { 29724: static const char* kName() { return "CuckooTableOptions"; } 29724: 29724: 29724: 29724: double hash_table_ratio = 0.9; 29724: 29724: 29724: 29724: 29724: 29724: uint32_t max_search_depth = 100; 29724: 29724: 29724: 29724: 29724: 29724: uint32_t cuckoo_block_size = 5; 29724: 29724: 29724: 29724: 29724: bool identity_as_first_hash = false; 29724: 29724: 29724: 29724: 29724: 29724: bool use_module_hash = true; 29724: }; 29724: 29724: 29724: TableFactory* NewCuckooTableFactory( 29724: const CuckooTableOptions& table_options = CuckooTableOptions()); 29724: 29724: class RandomAccessFileReader; 29724: 29724: 29724: class TableFactory : public Customizable { 29724: public: 29724: ~TableFactory() override {} 29724: 29724: static const char* kBlockCacheOpts() { return "BlockCache"; } 29724: static const char* kBlockBasedTableName() { return "BlockBasedTable"; } 29724: static const char* kPlainTableName() { return "PlainTable"; } 29724: static const char* kCuckooTableName() { return "CuckooTable"; } 29724: 29724: 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& id, 29724: std::shared_ptr* factory); 29724: 29724: static const char* Type() { return "TableFactory"; } 29724: # 900 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: virtual Status NewTableReader( 29724: const TableReaderOptions& table_reader_options, 29724: std::unique_ptr&& file, uint64_t file_size, 29724: std::unique_ptr* table_reader, 29724: bool prefetch_index_and_filter_in_cache = true) const { 29724: ReadOptions ro; 29724: return NewTableReader(ro, table_reader_options, std::move(file), file_size, 29724: table_reader, prefetch_index_and_filter_in_cache); 29724: } 29724: 29724: 29724: 29724: virtual Status NewTableReader( 29724: const ReadOptions& ro, const TableReaderOptions& table_reader_options, 29724: std::unique_ptr&& file, uint64_t file_size, 29724: std::unique_ptr* table_reader, 29724: bool prefetch_index_and_filter_in_cache) const = 0; 29724: # 936 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: virtual TableBuilder* NewTableBuilder( 29724: const TableBuilderOptions& table_builder_options, 29724: WritableFileWriter* file) const = 0; 29724: 29724: 29724: 29724: 29724: virtual std::unique_ptr Clone() const = 0; 29724: 29724: 29724: virtual bool IsDeleteRangeSupported() const { return false; } 29724: }; 29724: # 958 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29724: TableFactory* NewAdaptiveTableFactory( 29724: std::shared_ptr table_factory_to_write = nullptr, 29724: std::shared_ptr block_based_table_factory = nullptr, 29724: std::shared_ptr plain_table_factory = nullptr, 29724: std::shared_ptr cuckoo_table_factory = nullptr); 29724: 29724: } 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class FileLock; 29724: class FSDirectory; 29724: class FSRandomAccessFile; 29724: class FSRandomRWFile; 29724: class FSSequentialFile; 29724: class FSWritableFile; 29724: class Logger; 29724: class Slice; 29724: struct ImmutableDBOptions; 29724: struct MutableDBOptions; 29724: class RateLimiter; 29724: struct ConfigOptions; 29724: 29724: using AccessPattern = RandomAccessFile::AccessPattern; 29724: using FileAttributes = Env::FileAttributes; 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum class IOPriority : uint8_t { 29724: kIOLow, 29724: kIOHigh, 29724: kIOTotal, 29724: }; 29724: 29724: 29724: 29724: 29724: enum class IOType : uint8_t { 29724: kData, 29724: kFilter, 29724: kIndex, 29724: kMetadata, 29724: kWAL, 29724: kManifest, 29724: kLog, 29724: kUnknown, 29724: kInvalid, 29724: }; 29724: 29724: 29724: 29724: enum FSSupportedOps { 29724: kAsyncIO, 29724: kFSBuffer, 29724: 29724: kVerifyAndReconstructRead, 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: struct IOOptions { 29724: 29724: std::chrono::microseconds timeout; 29724: 29724: 29724: 29724: IOPriority prio; 29724: 29724: 29724: 29724: 29724: 29724: Env::IOPriority rate_limiter_priority; 29724: 29724: 29724: IOType type; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::unordered_map property_bag; 29724: 29724: 29724: 29724: bool force_dir_fsync; 29724: 29724: 29724: 29724: bool do_not_recurse; 29724: # 140 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: bool verify_and_reconstruct_read; 29724: 29724: 29724: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29724: 29724: IOOptions() : IOOptions(false) {} 29724: 29724: explicit IOOptions(bool force_dir_fsync_) 29724: : timeout(std::chrono::microseconds::zero()), 29724: prio(IOPriority::kIOLow), 29724: rate_limiter_priority(Env::IO_TOTAL), 29724: type(IOType::kUnknown), 29724: force_dir_fsync(force_dir_fsync_), 29724: do_not_recurse(false), 29724: verify_and_reconstruct_read(false) {} 29724: }; 29724: 29724: struct DirFsyncOptions { 29724: enum FsyncReason : uint8_t { 29724: kNewFileSynced, 29724: kFileRenamed, 29724: kDirRenamed, 29724: kFileDeleted, 29724: kDefault, 29724: } reason; 29724: 29724: std::string renamed_new_name; 29724: 29724: 29724: DirFsyncOptions(); 29724: 29724: explicit DirFsyncOptions(std::string file_renamed_new_name); 29724: 29724: explicit DirFsyncOptions(FsyncReason fsync_reason); 29724: }; 29724: 29724: 29724: 29724: 29724: struct FileOptions : EnvOptions { 29724: 29724: 29724: IOOptions io_options; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Temperature temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: ChecksumType handoff_checksum_type; 29724: 29724: FileOptions() : EnvOptions(), handoff_checksum_type(ChecksumType::kCRC32c) {} 29724: 29724: FileOptions(const DBOptions& opts) 29724: : EnvOptions(opts), 29724: temperature(opts.metadata_write_temperature), 29724: handoff_checksum_type(ChecksumType::kCRC32c) {} 29724: 29724: FileOptions(const EnvOptions& opts) 29724: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 29724: 29724: FileOptions(const FileOptions& opts) 29724: : EnvOptions(opts), 29724: io_options(opts.io_options), 29724: temperature(opts.temperature), 29724: handoff_checksum_type(opts.handoff_checksum_type) {} 29724: 29724: FileOptions& operator=(const FileOptions&) = default; 29724: }; 29724: 29724: 29724: 29724: struct IODebugContext { 29724: 29724: std::string file_path; 29724: 29724: 29724: std::map counters; 29724: 29724: 29724: std::string msg; 29724: 29724: 29724: std::string request_id; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum TraceData : char { 29724: 29724: 29724: 29724: kRequestID = 0, 29724: }; 29724: uint64_t trace_data = 0; 29724: 29724: IODebugContext() {} 29724: 29724: void AddCounter(std::string& name, uint64_t value) { 29724: counters.emplace(name, value); 29724: } 29724: 29724: 29724: 29724: void SetRequestId(const std::string& _request_id) { 29724: request_id = _request_id; 29724: trace_data |= (1 << TraceData::kRequestID); 29724: } 29724: 29724: std::string ToString() { 29724: std::ostringstream ss; 29724: ss << file_path << ", "; 29724: for (auto counter : counters) { 29724: ss << counter.first << " = " << counter.second << ","; 29724: } 29724: ss << msg; 29724: return ss.str(); 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: using IOHandleDeleter = std::function; 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: class FileSystem : public Customizable { 29724: public: 29724: FileSystem(); 29724: 29724: 29724: FileSystem(const FileSystem&) = delete; 29724: 29724: virtual ~FileSystem(); 29724: 29724: static const char* Type() { return "FileSystem"; } 29724: static const char* kDefaultName() { return "DefaultFileSystem"; } 29724: # 313 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: static Status CreateFromString(const ConfigOptions& options, 29724: const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: static std::shared_ptr Default(); 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual Status RegisterDbPaths(const std::vector& ) { 29724: return Status::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status UnregisterDbPaths(const std::vector& ) { 29724: return Status::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus NewSequentialFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) = 0; 29724: # 368 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus NewRandomAccessFile( 29724: const std::string& fname, const FileOptions& file_opts, 29724: std::unique_ptr* result, IODebugContext* dbg) = 0; 29724: 29724: 29724: enum WriteLifeTimeHint { 29724: kWLTHNotSet = 0, 29724: kWLTHNone, 29724: kWLTHShort, 29724: kWLTHMedium, 29724: kWLTHLong, 29724: kWLTHExtreme, 29724: }; 29724: # 389 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus NewWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) = 0; 29724: # 402 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus ReopenWritableFile( 29724: const std::string& , const FileOptions& , 29724: std::unique_ptr* , IODebugContext* ) { 29724: return IOStatus::NotSupported("ReopenWritableFile"); 29724: } 29724: 29724: 29724: virtual IOStatus ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus NewRandomRWFile(const std::string& , 29724: const FileOptions& , 29724: std::unique_ptr* , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported( 29724: "RandomRWFile is not implemented in this FileSystem"); 29724: } 29724: 29724: 29724: 29724: 29724: virtual IOStatus NewMemoryMappedFileBuffer( 29724: const std::string& , 29724: std::unique_ptr* ) { 29724: return IOStatus::NotSupported( 29724: "MemoryMappedFileBuffer is not implemented in this FileSystem"); 29724: } 29724: # 445 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus NewDirectory(const std::string& name, 29724: const IOOptions& io_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus FileExists(const std::string& fname, 29724: const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: # 466 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus GetChildren(const std::string& dir, const IOOptions& options, 29724: std::vector* result, 29724: IODebugContext* dbg) = 0; 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus GetChildrenFileAttributes( 29724: const std::string& dir, const IOOptions& options, 29724: std::vector* result, IODebugContext* dbg) { 29724: 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: (static_cast ( 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: result != nullptr 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: "result != nullptr" 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: ; 29724: std::vector child_fnames; 29724: IOStatus s = GetChildren(dir, options, &child_fnames, dbg); 29724: if (!s.ok()) { 29724: return s; 29724: } 29724: result->resize(child_fnames.size()); 29724: size_t result_size = 0; 29724: for (size_t i = 0; i < child_fnames.size(); ++i) { 29724: const std::string path = dir + "/" + child_fnames[i]; 29724: if (!(s = GetFileSize(path, options, &(*result)[result_size].size_bytes, 29724: dbg)) 29724: .ok()) { 29724: if (FileExists(path, options, dbg).IsNotFound()) { 29724: 29724: continue; 29724: } 29724: return s; 29724: } 29724: (*result)[result_size].name = std::move(child_fnames[i]); 29724: result_size++; 29724: } 29724: result->resize(result_size); 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus DeleteFile(const std::string& fname, 29724: const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: virtual IOStatus Truncate(const std::string& , size_t , 29724: const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported( 29724: "Truncate is not supported for this FileSystem"); 29724: } 29724: 29724: 29724: virtual IOStatus CreateDir(const std::string& dirname, 29724: const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: virtual IOStatus CreateDirIfMissing(const std::string& dirname, 29724: const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: virtual IOStatus DeleteDir(const std::string& dirname, 29724: const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: 29724: virtual IOStatus GetFileSize(const std::string& fname, 29724: const IOOptions& options, uint64_t* file_size, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: virtual IOStatus GetFileModificationTime(const std::string& fname, 29724: const IOOptions& options, 29724: uint64_t* file_mtime, 29724: IODebugContext* dbg) = 0; 29724: 29724: virtual IOStatus RenameFile(const std::string& src, const std::string& target, 29724: const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: virtual IOStatus LinkFile(const std::string& , 29724: const std::string& , 29724: const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported( 29724: "LinkFile is not supported for this FileSystem"); 29724: } 29724: 29724: virtual IOStatus NumFileLinks(const std::string& , 29724: const IOOptions& , 29724: uint64_t* , IODebugContext* ) { 29724: return IOStatus::NotSupported( 29724: "Getting number of file links is not supported for this FileSystem"); 29724: } 29724: 29724: virtual IOStatus AreFilesSame(const std::string& , 29724: const std::string& , 29724: const IOOptions& , bool* , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported( 29724: "AreFilesSame is not supported for this FileSystem"); 29724: } 29724: # 593 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus LockFile(const std::string& fname, const IOOptions& options, 29724: FileLock** lock, IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: virtual IOStatus UnlockFile(FileLock* lock, const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: virtual IOStatus NewLogger(const std::string& fname, const IOOptions& io_opts, 29724: std::shared_ptr* result, 29724: IODebugContext* dbg); 29724: 29724: 29724: virtual IOStatus GetAbsolutePath(const std::string& db_path, 29724: const IOOptions& options, 29724: std::string* output_path, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: virtual void SanitizeFileOptions(FileOptions* ) const {} 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForLogRead(const FileOptions& file_options) const; 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForManifestRead( 29724: const FileOptions& file_options) const; 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForLogWrite(const FileOptions& file_options, 29724: const DBOptions& db_options) const; 29724: 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForManifestWrite( 29724: const FileOptions& file_options) const; 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForCompactionTableWrite( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& immutable_ops) const; 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForCompactionTableRead( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& db_options) const; 29724: 29724: 29724: 29724: 29724: virtual FileOptions OptimizeForBlobFileRead( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& db_options) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus GetFreeSpace(const std::string& , 29724: const IOOptions& , 29724: uint64_t* , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("GetFreeSpace"); 29724: } 29724: 29724: virtual IOStatus IsDirectory(const std::string& , 29724: const IOOptions& options, bool* is_dir, 29724: IODebugContext* ) = 0; 29724: # 694 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Poll(std::vector& , 29724: size_t ) { 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus AbortIO(std::vector& ) { 29724: return IOStatus::OK(); 29724: } 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual void DiscardCacheForDirectory(const std::string& ) {} 29724: # 727 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual void SupportedOps(int64_t& supported_ops) { 29724: supported_ops = 0; 29724: supported_ops |= (1 << FSSupportedOps::kAsyncIO); 29724: } 29724: 29724: 29724: 29724: private: 29724: void operator=(const FileSystem&); 29724: }; 29724: 29724: 29724: class FSSequentialFile { 29724: public: 29724: FSSequentialFile() {} 29724: 29724: virtual ~FSSequentialFile() {} 29724: # 757 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29724: char* scratch, IODebugContext* dbg) = 0; 29724: # 767 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Skip(uint64_t n) = 0; 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: 29724: virtual IOStatus InvalidateCache(size_t , size_t ) { 29724: return IOStatus::NotSupported("InvalidateCache not supported."); 29724: } 29724: 29724: 29724: 29724: virtual IOStatus PositionedRead(uint64_t , size_t , 29724: const IOOptions& , 29724: Slice* , char* , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("PositionedRead"); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29724: 29724: 29724: 29724: }; 29724: 29724: using FSAllocationPtr = std::unique_ptr>; 29724: 29724: 29724: struct FSReadRequest { 29724: 29724: uint64_t offset; 29724: 29724: 29724: 29724: size_t len; 29724: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: char* scratch; 29724: # 836 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: Slice result; 29724: 29724: 29724: 29724: IOStatus status; 29724: # 865 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: FSAllocationPtr fs_scratch; 29724: }; 29724: 29724: 29724: class FSRandomAccessFile { 29724: public: 29724: FSRandomAccessFile() {} 29724: 29724: virtual ~FSRandomAccessFile() {} 29724: # 889 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const = 0; 29724: 29724: 29724: 29724: 29724: virtual IOStatus Prefetch(uint64_t , size_t , 29724: const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("Prefetch"); 29724: } 29724: # 910 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29724: const IOOptions& options, IODebugContext* dbg) { 29724: 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: (static_cast ( 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: reqs != nullptr 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: "reqs != nullptr" 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: ; 29724: for (size_t i = 0; i < num_reqs; ++i) { 29724: FSReadRequest& req = reqs[i]; 29724: req.status = 29724: Read(req.offset, req.len, options, &req.result, req.scratch, dbg); 29724: } 29724: return IOStatus::OK(); 29724: } 29724: # 936 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: 29724: } 29724: 29724: enum AccessPattern { kNormal, kRandom, kSequential, kWillNeed, kWontNeed }; 29724: 29724: virtual void Hint(AccessPattern ) {} 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: 29724: virtual IOStatus InvalidateCache(size_t , size_t ) { 29724: return IOStatus::NotSupported("InvalidateCache not supported."); 29724: } 29724: # 992 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29724: std::function cb, 29724: void* cb_arg, void** , 29724: IOHandleDeleter* , IODebugContext* dbg) { 29724: req.status = 29724: Read(req.offset, req.len, opts, &(req.result), req.scratch, dbg); 29724: cb(req, cb_arg); 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: struct DataVerificationInfo { 29724: 29724: Slice checksum; 29724: }; 29724: 29724: 29724: 29724: 29724: class FSWritableFile { 29724: public: 29724: FSWritableFile() 29724: : last_preallocated_block_(0), 29724: preallocation_block_size_(0), 29724: io_priority_(Env::IO_TOTAL), 29724: write_hint_(Env::WLTH_NOT_SET), 29724: strict_bytes_per_sync_(false) {} 29724: 29724: explicit FSWritableFile(const FileOptions& options) 29724: : last_preallocated_block_(0), 29724: preallocation_block_size_(0), 29724: io_priority_(Env::IO_TOTAL), 29724: write_hint_(Env::WLTH_NOT_SET), 29724: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 29724: 29724: 29724: 29724: 29724: virtual ~FSWritableFile() {} 29724: 29724: 29724: 29724: 29724: virtual IOStatus Append(const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: # 1058 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Append(const Slice& data, const IOOptions& options, 29724: const DataVerificationInfo& , 29724: IODebugContext* dbg) { 29724: return Append(data, options, dbg); 29724: } 29724: # 1084 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus PositionedAppend(const Slice& , 29724: uint64_t , 29724: const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("PositionedAppend"); 29724: } 29724: # 1099 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus PositionedAppend( 29724: const Slice& , uint64_t , 29724: const IOOptions& , 29724: const DataVerificationInfo& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("PositionedAppend"); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus Truncate(uint64_t , const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus Close(const IOOptions& , 29724: IODebugContext* ) = 0; 29724: 29724: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 29724: virtual IOStatus Sync(const IOOptions& options, 29724: IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 29724: return Sync(options, dbg); 29724: } 29724: 29724: 29724: 29724: virtual bool IsSyncThreadSafe() const { return false; } 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 29724: write_hint_ = hint; 29724: } 29724: # 1165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 29724: 29724: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 29724: 29724: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 29724: 29724: 29724: 29724: virtual uint64_t GetFileSize(const IOOptions& , 29724: IODebugContext* ) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void SetPreallocationBlockSize(size_t size) { 29724: preallocation_block_size_ = size; 29724: } 29724: 29724: virtual void GetPreallocationStatus(size_t* block_size, 29724: size_t* last_allocated_block) { 29724: *last_allocated_block = last_preallocated_block_; 29724: *block_size = preallocation_block_size_; 29724: } 29724: 29724: 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus InvalidateCache(size_t , size_t ) { 29724: return IOStatus::NotSupported("InvalidateCache not supported."); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus RangeSync(uint64_t , uint64_t , 29724: const IOOptions& options, IODebugContext* dbg) { 29724: if (strict_bytes_per_sync_) { 29724: return Sync(options, dbg); 29724: } 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 29724: IODebugContext* dbg) { 29724: if (preallocation_block_size_ == 0) { 29724: return; 29724: } 29724: 29724: 29724: 29724: const auto block_size = preallocation_block_size_; 29724: size_t new_last_preallocated_block = 29724: (offset + len + block_size - 1) / block_size; 29724: if (new_last_preallocated_block > last_preallocated_block_) { 29724: size_t num_spanned_blocks = 29724: new_last_preallocated_block - last_preallocated_block_; 29724: Allocate(block_size * last_preallocated_block_, 29724: block_size * num_spanned_blocks, options, dbg) 29724: .PermitUncheckedError(); 29724: last_preallocated_block_ = new_last_preallocated_block; 29724: } 29724: } 29724: 29724: 29724: virtual IOStatus Allocate(uint64_t , uint64_t , 29724: const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: 29724: protected: 29724: size_t preallocation_block_size() { return preallocation_block_size_; } 29724: 29724: private: 29724: size_t last_preallocated_block_; 29724: size_t preallocation_block_size_; 29724: 29724: FSWritableFile(const FSWritableFile&); 29724: void operator=(const FSWritableFile&); 29724: 29724: protected: 29724: Env::IOPriority io_priority_; 29724: Env::WriteLifeTimeHint write_hint_; 29724: const bool strict_bytes_per_sync_; 29724: }; 29724: 29724: 29724: class FSRandomRWFile { 29724: public: 29724: FSRandomRWFile() {} 29724: 29724: 29724: 29724: 29724: virtual ~FSRandomRWFile() {} 29724: 29724: 29724: 29724: virtual bool use_direct_io() const { return false; } 29724: 29724: 29724: 29724: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29724: 29724: 29724: 29724: virtual IOStatus Write(uint64_t offset, const Slice& data, 29724: const IOOptions& options, IODebugContext* dbg) = 0; 29724: # 1302 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const = 0; 29724: 29724: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 29724: return Sync(options, dbg); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29724: 29724: 29724: 29724: 29724: 29724: FSRandomRWFile(const RandomRWFile&) = delete; 29724: FSRandomRWFile& operator=(const RandomRWFile&) = delete; 29724: }; 29724: 29724: 29724: 29724: class FSMemoryMappedFileBuffer { 29724: public: 29724: FSMemoryMappedFileBuffer(void* _base, size_t _length) 29724: : base_(_base), length_(_length) {} 29724: 29724: virtual ~FSMemoryMappedFileBuffer() = 0; 29724: 29724: 29724: 29724: FSMemoryMappedFileBuffer(const FSMemoryMappedFileBuffer&) = delete; 29724: FSMemoryMappedFileBuffer& operator=(const FSMemoryMappedFileBuffer&) = delete; 29724: 29724: void* GetBase() const { return base_; } 29724: size_t GetLen() const { return length_; } 29724: 29724: protected: 29724: void* base_; 29724: const size_t length_; 29724: }; 29724: 29724: 29724: 29724: class FSDirectory { 29724: public: 29724: 29724: 29724: 29724: virtual ~FSDirectory() {} 29724: 29724: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) = 0; 29724: 29724: 29724: 29724: 29724: virtual IOStatus FsyncWithDirOptions( 29724: const IOOptions& options, IODebugContext* dbg, 29724: const DirFsyncOptions& ) { 29724: return Fsync(options, dbg); 29724: } 29724: 29724: 29724: 29724: 29724: virtual IOStatus Close(const IOOptions& , 29724: IODebugContext* ) { 29724: return IOStatus::NotSupported("Close"); 29724: } 29724: 29724: virtual size_t GetUniqueId(char* , size_t ) const { 29724: return 0; 29724: } 29724: 29724: 29724: 29724: }; 29724: # 1424 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29724: class FileSystemWrapper : public FileSystem { 29724: public: 29724: 29724: explicit FileSystemWrapper(const std::shared_ptr& t); 29724: ~FileSystemWrapper() override {} 29724: 29724: 29724: FileSystem* target() const { return target_.get(); } 29724: 29724: 29724: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 29724: std::unique_ptr* r, 29724: IODebugContext* dbg) override { 29724: return target_->NewSequentialFile(f, file_opts, r, dbg); 29724: } 29724: IOStatus NewRandomAccessFile(const std::string& f, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* r, 29724: IODebugContext* dbg) override { 29724: return target_->NewRandomAccessFile(f, file_opts, r, dbg); 29724: } 29724: IOStatus NewWritableFile(const std::string& f, const FileOptions& file_opts, 29724: std::unique_ptr* r, 29724: IODebugContext* dbg) override { 29724: return target_->NewWritableFile(f, file_opts, r, dbg); 29724: } 29724: IOStatus ReopenWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override { 29724: return target_->ReopenWritableFile(fname, file_opts, result, dbg); 29724: } 29724: IOStatus ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* r, 29724: IODebugContext* dbg) override { 29724: return target_->ReuseWritableFile(fname, old_fname, file_opts, r, dbg); 29724: } 29724: IOStatus NewRandomRWFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override { 29724: return target_->NewRandomRWFile(fname, file_opts, result, dbg); 29724: } 29724: IOStatus NewMemoryMappedFileBuffer( 29724: const std::string& fname, 29724: std::unique_ptr* result) override { 29724: return target_->NewMemoryMappedFileBuffer(fname, result); 29724: } 29724: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override { 29724: return target_->NewDirectory(name, io_opts, result, dbg); 29724: } 29724: IOStatus FileExists(const std::string& f, const IOOptions& io_opts, 29724: IODebugContext* dbg) override { 29724: return target_->FileExists(f, io_opts, dbg); 29724: } 29724: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 29724: std::vector* r, 29724: IODebugContext* dbg) override { 29724: return target_->GetChildren(dir, io_opts, r, dbg); 29724: } 29724: IOStatus GetChildrenFileAttributes(const std::string& dir, 29724: const IOOptions& options, 29724: std::vector* result, 29724: IODebugContext* dbg) override { 29724: return target_->GetChildrenFileAttributes(dir, options, result, dbg); 29724: } 29724: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->DeleteFile(f, options, dbg); 29724: } 29724: IOStatus Truncate(const std::string& fname, size_t size, 29724: const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Truncate(fname, size, options, dbg); 29724: } 29724: IOStatus CreateDir(const std::string& d, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->CreateDir(d, options, dbg); 29724: } 29724: IOStatus CreateDirIfMissing(const std::string& d, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->CreateDirIfMissing(d, options, dbg); 29724: } 29724: IOStatus DeleteDir(const std::string& d, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->DeleteDir(d, options, dbg); 29724: } 29724: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 29724: uint64_t* s, IODebugContext* dbg) override { 29724: return target_->GetFileSize(f, options, s, dbg); 29724: } 29724: 29724: IOStatus GetFileModificationTime(const std::string& fname, 29724: const IOOptions& options, 29724: uint64_t* file_mtime, 29724: IODebugContext* dbg) override { 29724: return target_->GetFileModificationTime(fname, options, file_mtime, dbg); 29724: } 29724: 29724: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 29724: std::string* output_path, 29724: IODebugContext* dbg) override { 29724: return target_->GetAbsolutePath(db_path, options, output_path, dbg); 29724: } 29724: 29724: IOStatus RenameFile(const std::string& s, const std::string& t, 29724: const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->RenameFile(s, t, options, dbg); 29724: } 29724: 29724: IOStatus LinkFile(const std::string& s, const std::string& t, 29724: const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->LinkFile(s, t, options, dbg); 29724: } 29724: 29724: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 29724: uint64_t* count, IODebugContext* dbg) override { 29724: return target_->NumFileLinks(fname, options, count, dbg); 29724: } 29724: 29724: IOStatus AreFilesSame(const std::string& first, const std::string& second, 29724: const IOOptions& options, bool* res, 29724: IODebugContext* dbg) override { 29724: return target_->AreFilesSame(first, second, options, res, dbg); 29724: } 29724: 29724: IOStatus LockFile(const std::string& f, const IOOptions& options, 29724: FileLock** l, IODebugContext* dbg) override { 29724: return target_->LockFile(f, options, l, dbg); 29724: } 29724: 29724: IOStatus UnlockFile(FileLock* l, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->UnlockFile(l, options, dbg); 29724: } 29724: 29724: IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 29724: IODebugContext* dbg) override { 29724: return target_->GetTestDirectory(options, path, dbg); 29724: } 29724: IOStatus NewLogger(const std::string& fname, const IOOptions& options, 29724: std::shared_ptr* result, 29724: IODebugContext* dbg) override { 29724: return target_->NewLogger(fname, options, result, dbg); 29724: } 29724: 29724: void SanitizeFileOptions(FileOptions* opts) const override { 29724: target_->SanitizeFileOptions(opts); 29724: } 29724: 29724: FileOptions OptimizeForLogRead( 29724: const FileOptions& file_options) const override { 29724: return target_->OptimizeForLogRead(file_options); 29724: } 29724: FileOptions OptimizeForManifestRead( 29724: const FileOptions& file_options) const override { 29724: return target_->OptimizeForManifestRead(file_options); 29724: } 29724: FileOptions OptimizeForLogWrite(const FileOptions& file_options, 29724: const DBOptions& db_options) const override { 29724: return target_->OptimizeForLogWrite(file_options, db_options); 29724: } 29724: FileOptions OptimizeForManifestWrite( 29724: const FileOptions& file_options) const override { 29724: return target_->OptimizeForManifestWrite(file_options); 29724: } 29724: FileOptions OptimizeForCompactionTableWrite( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& immutable_ops) const override { 29724: return target_->OptimizeForCompactionTableWrite(file_options, 29724: immutable_ops); 29724: } 29724: FileOptions OptimizeForCompactionTableRead( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& db_options) const override { 29724: return target_->OptimizeForCompactionTableRead(file_options, db_options); 29724: } 29724: FileOptions OptimizeForBlobFileRead( 29724: const FileOptions& file_options, 29724: const ImmutableDBOptions& db_options) const override { 29724: return target_->OptimizeForBlobFileRead(file_options, db_options); 29724: } 29724: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 29724: uint64_t* diskfree, IODebugContext* dbg) override { 29724: return target_->GetFreeSpace(path, options, diskfree, dbg); 29724: } 29724: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 29724: bool* is_dir, IODebugContext* dbg) override { 29724: return target_->IsDirectory(path, options, is_dir, dbg); 29724: } 29724: 29724: const Customizable* Inner() const override { return target_.get(); } 29724: Status PrepareOptions(const ConfigOptions& options) override; 29724: std::string SerializeOptions(const ConfigOptions& config_options, 29724: const std::string& header) const override; 29724: 29724: IOStatus Poll(std::vector& io_handles, 29724: size_t min_completions) override { 29724: return target_->Poll(io_handles, min_completions); 29724: } 29724: 29724: IOStatus AbortIO(std::vector& io_handles) override { 29724: return target_->AbortIO(io_handles); 29724: } 29724: 29724: void DiscardCacheForDirectory(const std::string& path) override { 29724: target_->DiscardCacheForDirectory(path); 29724: } 29724: 29724: void SupportedOps(int64_t& supported_ops) override { 29724: return target_->SupportedOps(supported_ops); 29724: } 29724: 29724: protected: 29724: std::shared_ptr target_; 29724: }; 29724: 29724: class FSSequentialFileWrapper : public FSSequentialFile { 29724: public: 29724: 29724: 29724: explicit FSSequentialFileWrapper(FSSequentialFile* t) : target_(t) {} 29724: 29724: FSSequentialFile* target() const { return target_; } 29724: 29724: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29724: char* scratch, IODebugContext* dbg) override { 29724: return target_->Read(n, options, result, scratch, dbg); 29724: } 29724: IOStatus Skip(uint64_t n) override { return target_->Skip(n); } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: IOStatus InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) override { 29724: return target_->PositionedRead(offset, n, options, result, scratch, dbg); 29724: } 29724: Temperature GetTemperature() const override { 29724: return target_->GetTemperature(); 29724: } 29724: 29724: private: 29724: FSSequentialFile* target_; 29724: }; 29724: 29724: class FSSequentialFileOwnerWrapper : public FSSequentialFileWrapper { 29724: public: 29724: 29724: 29724: explicit FSSequentialFileOwnerWrapper(std::unique_ptr&& t) 29724: : FSSequentialFileWrapper(t.get()), guard_(std::move(t)) {} 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: }; 29724: 29724: class FSRandomAccessFileWrapper : public FSRandomAccessFile { 29724: public: 29724: 29724: 29724: explicit FSRandomAccessFileWrapper(FSRandomAccessFile* t) : target_(t) {} 29724: 29724: FSRandomAccessFile* target() const { return target_; } 29724: 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override { 29724: return target_->Read(offset, n, options, result, scratch, dbg); 29724: } 29724: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29724: const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->MultiRead(reqs, num_reqs, options, dbg); 29724: } 29724: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->Prefetch(offset, n, options, dbg); 29724: } 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: IOStatus InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29724: std::function cb, 29724: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29724: IODebugContext* dbg) override { 29724: return target()->ReadAsync(req, opts, cb, cb_arg, io_handle, del_fn, dbg); 29724: } 29724: Temperature GetTemperature() const override { 29724: return target_->GetTemperature(); 29724: } 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: FSRandomAccessFile* target_; 29724: }; 29724: 29724: class FSRandomAccessFileOwnerWrapper : public FSRandomAccessFileWrapper { 29724: public: 29724: 29724: 29724: explicit FSRandomAccessFileOwnerWrapper( 29724: std::unique_ptr&& t) 29724: : FSRandomAccessFileWrapper(t.get()), guard_(std::move(t)) {} 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: }; 29724: 29724: class FSWritableFileWrapper : public FSWritableFile { 29724: public: 29724: 29724: 29724: explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {} 29724: 29724: FSWritableFile* target() const { return target_; } 29724: 29724: IOStatus Append(const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->Append(data, options, dbg); 29724: } 29724: IOStatus Append(const Slice& data, const IOOptions& options, 29724: const DataVerificationInfo& verification_info, 29724: IODebugContext* dbg) override { 29724: return target_->Append(data, options, verification_info, dbg); 29724: } 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->PositionedAppend(data, offset, options, dbg); 29724: } 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: const DataVerificationInfo& verification_info, 29724: IODebugContext* dbg) override { 29724: return target_->PositionedAppend(data, offset, options, verification_info, 29724: dbg); 29724: } 29724: IOStatus Truncate(uint64_t size, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->Truncate(size, options, dbg); 29724: } 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Close(options, dbg); 29724: } 29724: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Flush(options, dbg); 29724: } 29724: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Sync(options, dbg); 29724: } 29724: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Fsync(options, dbg); 29724: } 29724: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 29724: 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: 29724: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 29724: target_->SetWriteLifeTimeHint(hint); 29724: } 29724: 29724: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 29724: return target_->GetWriteLifeTimeHint(); 29724: } 29724: 29724: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->GetFileSize(options, dbg); 29724: } 29724: 29724: void SetPreallocationBlockSize(size_t size) override { 29724: target_->SetPreallocationBlockSize(size); 29724: } 29724: 29724: void GetPreallocationStatus(size_t* block_size, 29724: size_t* last_allocated_block) override { 29724: target_->GetPreallocationStatus(block_size, last_allocated_block); 29724: } 29724: 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: 29724: IOStatus InvalidateCache(size_t offset, size_t length) override { 29724: return target_->InvalidateCache(offset, length); 29724: } 29724: 29724: IOStatus RangeSync(uint64_t offset, uint64_t nbytes, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->RangeSync(offset, nbytes, options, dbg); 29724: } 29724: 29724: void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: target_->PrepareWrite(offset, len, options, dbg); 29724: } 29724: 29724: IOStatus Allocate(uint64_t offset, uint64_t len, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->Allocate(offset, len, options, dbg); 29724: } 29724: 29724: private: 29724: FSWritableFile* target_; 29724: }; 29724: 29724: class FSWritableFileOwnerWrapper : public FSWritableFileWrapper { 29724: public: 29724: 29724: 29724: explicit FSWritableFileOwnerWrapper(std::unique_ptr&& t) 29724: : FSWritableFileWrapper(t.get()), guard_(std::move(t)) {} 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: }; 29724: 29724: class FSRandomRWFileWrapper : public FSRandomRWFile { 29724: public: 29724: 29724: 29724: explicit FSRandomRWFileWrapper(FSRandomRWFile* t) : target_(t) {} 29724: 29724: FSRandomRWFile* target() const { return target_; } 29724: 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) override { 29724: return target_->Write(offset, data, options, dbg); 29724: } 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override { 29724: return target_->Read(offset, n, options, result, scratch, dbg); 29724: } 29724: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Flush(options, dbg); 29724: } 29724: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Sync(options, dbg); 29724: } 29724: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Fsync(options, dbg); 29724: } 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Close(options, dbg); 29724: } 29724: Temperature GetTemperature() const override { 29724: return target_->GetTemperature(); 29724: } 29724: 29724: private: 29724: FSRandomRWFile* target_; 29724: }; 29724: 29724: class FSRandomRWFileOwnerWrapper : public FSRandomRWFileWrapper { 29724: public: 29724: 29724: 29724: explicit FSRandomRWFileOwnerWrapper(std::unique_ptr&& t) 29724: : FSRandomRWFileWrapper(t.get()), guard_(std::move(t)) {} 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: }; 29724: 29724: class FSDirectoryWrapper : public FSDirectory { 29724: public: 29724: 29724: 29724: explicit FSDirectoryWrapper(std::unique_ptr&& t) 29724: : guard_(std::move(t)) { 29724: target_ = guard_.get(); 29724: } 29724: 29724: 29724: 29724: explicit FSDirectoryWrapper(FSDirectory* t) : target_(t) {} 29724: 29724: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Fsync(options, dbg); 29724: } 29724: 29724: IOStatus FsyncWithDirOptions( 29724: const IOOptions& options, IODebugContext* dbg, 29724: const DirFsyncOptions& dir_fsync_options) override { 29724: return target_->FsyncWithDirOptions(options, dbg, dir_fsync_options); 29724: } 29724: 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29724: return target_->Close(options, dbg); 29724: } 29724: 29724: size_t GetUniqueId(char* id, size_t max_size) const override { 29724: return target_->GetUniqueId(id, max_size); 29724: } 29724: 29724: private: 29724: std::unique_ptr guard_; 29724: FSDirectory* target_; 29724: }; 29724: 29724: 29724: IOStatus WriteStringToFile(FileSystem* fs, const Slice& data, 29724: const std::string& fname, bool should_sync = false, 29724: const IOOptions& io_options = IOOptions(), 29724: const FileOptions& file_options = FileOptions()); 29724: 29724: 29724: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 29724: std::string* data); 29724: 29724: 29724: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 29724: const IOOptions& opts, std::string* data); 29724: 29724: } 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/fstream" 1 3 29724: # 36 "/usr/include/c++/14/fstream" 3 29724: 29724: # 37 "/usr/include/c++/14/fstream" 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/codecvt.h" 1 3 29724: # 39 "/usr/include/c++/14/bits/codecvt.h" 3 29724: 29724: # 40 "/usr/include/c++/14/bits/codecvt.h" 3 29724: 29724: 29724: 29724: 29724: 29724: # 44 "/usr/include/c++/14/bits/codecvt.h" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: class codecvt_base 29724: { 29724: public: 29724: enum result 29724: { 29724: ok, 29724: partial, 29724: error, 29724: noconv 29724: }; 29724: }; 29724: # 70 "/usr/include/c++/14/bits/codecvt.h" 3 29724: template 29724: class __codecvt_abstract_base 29724: : public locale::facet, public codecvt_base 29724: { 29724: public: 29724: 29724: typedef codecvt_base::result result; 29724: typedef _InternT intern_type; 29724: typedef _ExternT extern_type; 29724: typedef _StateT state_type; 29724: # 118 "/usr/include/c++/14/bits/codecvt.h" 3 29724: result 29724: out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const 29724: { 29724: return this->do_out(__state, __from, __from_end, __from_next, 29724: __to, __to_end, __to_next); 29724: } 29724: # 157 "/usr/include/c++/14/bits/codecvt.h" 3 29724: result 29724: unshift(state_type& __state, extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const 29724: { return this->do_unshift(__state, __to,__to_end,__to_next); } 29724: # 198 "/usr/include/c++/14/bits/codecvt.h" 3 29724: result 29724: in(state_type& __state, const extern_type* __from, 29724: const extern_type* __from_end, const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const 29724: { 29724: return this->do_in(__state, __from, __from_end, __from_next, 29724: __to, __to_end, __to_next); 29724: } 29724: 29724: int 29724: encoding() const throw() 29724: { return this->do_encoding(); } 29724: 29724: bool 29724: always_noconv() const throw() 29724: { return this->do_always_noconv(); } 29724: 29724: int 29724: length(state_type& __state, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const 29724: { return this->do_length(__state, __from, __end, __max); } 29724: 29724: int 29724: max_length() const throw() 29724: { return this->do_max_length(); } 29724: 29724: protected: 29724: explicit 29724: __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } 29724: 29724: virtual 29724: ~__codecvt_abstract_base() { } 29724: # 239 "/usr/include/c++/14/bits/codecvt.h" 3 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const = 0; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, extern_type* __to, 29724: extern_type* __to_end, extern_type*& __to_next) const = 0; 29724: 29724: virtual result 29724: do_in(state_type& __state, const extern_type* __from, 29724: const extern_type* __from_end, const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const = 0; 29724: 29724: virtual int 29724: do_encoding() const throw() = 0; 29724: 29724: virtual bool 29724: do_always_noconv() const throw() = 0; 29724: 29724: virtual int 29724: do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const = 0; 29724: 29724: virtual int 29724: do_max_length() const throw() = 0; 29724: }; 29724: # 276 "/usr/include/c++/14/bits/codecvt.h" 3 29724: template 29724: class codecvt 29724: : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> 29724: { 29724: public: 29724: 29724: typedef codecvt_base::result result; 29724: typedef _InternT intern_type; 29724: typedef _ExternT extern_type; 29724: typedef _StateT state_type; 29724: 29724: protected: 29724: __c_locale _M_c_locale_codecvt; 29724: 29724: public: 29724: static locale::id id; 29724: 29724: explicit 29724: codecvt(size_t __refs = 0) 29724: : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), 29724: _M_c_locale_codecvt(0) 29724: { } 29724: 29724: explicit 29724: codecvt(__c_locale __cloc, size_t __refs = 0); 29724: 29724: protected: 29724: virtual 29724: ~codecvt() { } 29724: 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, extern_type* __to, 29724: extern_type* __to_end, extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_in(state_type& __state, const extern_type* __from, 29724: const extern_type* __from_end, const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const; 29724: 29724: virtual int 29724: do_encoding() const throw(); 29724: 29724: virtual bool 29724: do_always_noconv() const throw(); 29724: 29724: virtual int 29724: do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const; 29724: 29724: virtual int 29724: do_max_length() const throw(); 29724: }; 29724: 29724: template 29724: locale::id codecvt<_InternT, _ExternT, _StateT>::id; 29724: 29724: 29724: template<> 29724: class codecvt 29724: : public __codecvt_abstract_base 29724: { 29724: friend class messages; 29724: 29724: public: 29724: 29724: typedef char intern_type; 29724: typedef char extern_type; 29724: typedef mbstate_t state_type; 29724: 29724: protected: 29724: __c_locale _M_c_locale_codecvt; 29724: 29724: public: 29724: static locale::id id; 29724: 29724: explicit 29724: codecvt(size_t __refs = 0); 29724: 29724: explicit 29724: codecvt(__c_locale __cloc, size_t __refs = 0); 29724: 29724: protected: 29724: virtual 29724: ~codecvt(); 29724: 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, extern_type* __to, 29724: extern_type* __to_end, extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_in(state_type& __state, const extern_type* __from, 29724: const extern_type* __from_end, const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const; 29724: 29724: virtual int 29724: do_encoding() const throw(); 29724: 29724: virtual bool 29724: do_always_noconv() const throw(); 29724: 29724: virtual int 29724: do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const; 29724: 29724: virtual int 29724: do_max_length() const throw(); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: class codecvt 29724: : public __codecvt_abstract_base 29724: { 29724: friend class messages; 29724: 29724: public: 29724: 29724: typedef wchar_t intern_type; 29724: typedef char extern_type; 29724: typedef mbstate_t state_type; 29724: 29724: protected: 29724: __c_locale _M_c_locale_codecvt; 29724: 29724: public: 29724: static locale::id id; 29724: 29724: explicit 29724: codecvt(size_t __refs = 0); 29724: 29724: explicit 29724: codecvt(__c_locale __cloc, size_t __refs = 0); 29724: 29724: protected: 29724: virtual 29724: ~codecvt(); 29724: 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_in(state_type& __state, 29724: const extern_type* __from, const extern_type* __from_end, 29724: const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const; 29724: 29724: virtual 29724: int do_encoding() const throw(); 29724: 29724: virtual 29724: bool do_always_noconv() const throw(); 29724: 29724: virtual 29724: int do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const; 29724: 29724: virtual int 29724: do_max_length() const throw(); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: class codecvt 29724: : public __codecvt_abstract_base 29724: { 29724: public: 29724: 29724: typedef char16_t intern_type; 29724: typedef char extern_type; 29724: typedef mbstate_t state_type; 29724: 29724: public: 29724: static locale::id id; 29724: 29724: explicit 29724: codecvt(size_t __refs = 0) 29724: : __codecvt_abstract_base(__refs) { } 29724: 29724: protected: 29724: virtual 29724: ~codecvt(); 29724: 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_in(state_type& __state, 29724: const extern_type* __from, const extern_type* __from_end, 29724: const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const; 29724: 29724: virtual 29724: int do_encoding() const throw(); 29724: 29724: virtual 29724: bool do_always_noconv() const throw(); 29724: 29724: virtual 29724: int do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const; 29724: 29724: virtual int 29724: do_max_length() const throw(); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: template<> 29724: class codecvt 29724: : public __codecvt_abstract_base 29724: { 29724: public: 29724: 29724: typedef char32_t intern_type; 29724: typedef char extern_type; 29724: typedef mbstate_t state_type; 29724: 29724: public: 29724: static locale::id id; 29724: 29724: explicit 29724: codecvt(size_t __refs = 0) 29724: : __codecvt_abstract_base(__refs) { } 29724: 29724: protected: 29724: virtual 29724: ~codecvt(); 29724: 29724: virtual result 29724: do_out(state_type& __state, const intern_type* __from, 29724: const intern_type* __from_end, const intern_type*& __from_next, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_unshift(state_type& __state, 29724: extern_type* __to, extern_type* __to_end, 29724: extern_type*& __to_next) const; 29724: 29724: virtual result 29724: do_in(state_type& __state, 29724: const extern_type* __from, const extern_type* __from_end, 29724: const extern_type*& __from_next, 29724: intern_type* __to, intern_type* __to_end, 29724: intern_type*& __to_next) const; 29724: 29724: virtual 29724: int do_encoding() const throw(); 29724: 29724: virtual 29724: bool do_always_noconv() const throw(); 29724: 29724: virtual 29724: int do_length(state_type&, const extern_type* __from, 29724: const extern_type* __end, size_t __max) const; 29724: 29724: virtual int 29724: do_max_length() const throw(); 29724: }; 29724: # 698 "/usr/include/c++/14/bits/codecvt.h" 3 29724: template 29724: class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> 29724: { 29724: public: 29724: explicit 29724: codecvt_byname(const char* __s, size_t __refs = 0) 29724: : codecvt<_InternT, _ExternT, _StateT>(__refs) 29724: { 29724: if (__builtin_strcmp(__s, "C") != 0 29724: && __builtin_strcmp(__s, "POSIX") != 0) 29724: { 29724: this->_S_destroy_c_locale(this->_M_c_locale_codecvt); 29724: this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); 29724: } 29724: } 29724: 29724: 29724: explicit 29724: codecvt_byname(const string& __s, size_t __refs = 0) 29724: : codecvt_byname(__s.c_str(), __refs) { } 29724: 29724: 29724: protected: 29724: virtual 29724: ~codecvt_byname() { } 29724: }; 29724: 29724: 29724: template<> 29724: class codecvt_byname 29724: : public codecvt 29724: { 29724: public: 29724: explicit 29724: codecvt_byname(const char*, size_t __refs = 0) 29724: : codecvt(__refs) { } 29724: 29724: explicit 29724: codecvt_byname(const string& __s, size_t __refs = 0) 29724: : codecvt_byname(__s.c_str(), __refs) { } 29724: 29724: protected: 29724: virtual 29724: ~codecvt_byname() { } 29724: }; 29724: 29724: template<> 29724: class codecvt_byname 29724: : public codecvt 29724: { 29724: public: 29724: explicit 29724: codecvt_byname(const char*, size_t __refs = 0) 29724: : codecvt(__refs) { } 29724: 29724: explicit 29724: codecvt_byname(const string& __s, size_t __refs = 0) 29724: : codecvt_byname(__s.c_str(), __refs) { } 29724: 29724: protected: 29724: virtual 29724: ~codecvt_byname() { } 29724: }; 29724: # 805 "/usr/include/c++/14/bits/codecvt.h" 3 29724: extern template class codecvt_byname; 29724: 29724: extern template 29724: const codecvt& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: extern template class codecvt_byname; 29724: 29724: extern template 29724: const codecvt& 29724: use_facet >(const locale&); 29724: 29724: extern template 29724: bool 29724: has_facet >(const locale&); 29724: 29724: 29724: 29724: extern template class codecvt_byname; 29724: extern template class codecvt_byname; 29724: # 840 "/usr/include/c++/14/bits/codecvt.h" 3 29724: 29724: } 29724: # 43 "/usr/include/c++/14/fstream" 2 3 29724: # 1 "/usr/include/c++/14/cstdio" 1 3 29724: # 39 "/usr/include/c++/14/cstdio" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdio" 3 29724: # 44 "/usr/include/c++/14/fstream" 2 3 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 1 3 29724: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 29724: 29724: # 38 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 1 3 29724: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 3 29724: # 1 "/usr/include/c++/14/cstdio" 1 3 29724: # 39 "/usr/include/c++/14/cstdio" 3 29724: 29724: # 40 "/usr/include/c++/14/cstdio" 3 29724: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 2 3 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef __gthread_mutex_t __c_lock; 29724: 29724: 29724: 29724: typedef FILE __c_file; 29724: 29724: 29724: } 29724: # 41 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 2 3 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: template 29724: class __basic_file; 29724: 29724: 29724: template<> 29724: class __basic_file 29724: { 29724: 29724: __c_file* _M_cfile; 29724: 29724: 29724: bool _M_cfile_created; 29724: 29724: public: 29724: __basic_file(__c_lock* __lock = 0) throw (); 29724: 29724: 29724: __basic_file(__basic_file&& __rv, __c_lock* = 0) noexcept 29724: : _M_cfile(__rv._M_cfile), _M_cfile_created(__rv._M_cfile_created) 29724: { 29724: __rv._M_cfile = nullptr; 29724: __rv._M_cfile_created = false; 29724: } 29724: 29724: __basic_file& operator=(const __basic_file&) = delete; 29724: __basic_file& operator=(__basic_file&&) = delete; 29724: 29724: void 29724: swap(__basic_file& __f) noexcept 29724: { 29724: std::swap(_M_cfile, __f._M_cfile); 29724: std::swap(_M_cfile_created, __f._M_cfile_created); 29724: } 29724: 29724: 29724: __basic_file* 29724: open(const char* __name, ios_base::openmode __mode, int __prot = 0664); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __basic_file* 29724: sys_open(__c_file* __file, ios_base::openmode); 29724: 29724: __basic_file* 29724: sys_open(int __fd, ios_base::openmode __mode) throw (); 29724: 29724: __basic_file* 29724: close(); 29724: 29724: __attribute__ ((__pure__)) bool 29724: is_open() const throw (); 29724: 29724: __attribute__ ((__pure__)) int 29724: fd() throw (); 29724: 29724: __attribute__ ((__pure__)) __c_file* 29724: file() throw (); 29724: 29724: ~__basic_file(); 29724: 29724: streamsize 29724: xsputn(const char* __s, streamsize __n); 29724: 29724: streamsize 29724: xsputn_2(const char* __s1, streamsize __n1, 29724: const char* __s2, streamsize __n2); 29724: 29724: streamsize 29724: xsgetn(char* __s, streamsize __n); 29724: 29724: streamoff 29724: seekoff(streamoff __off, ios_base::seekdir __way) throw (); 29724: 29724: int 29724: sync(); 29724: 29724: streamsize 29724: showmanyc(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using native_handle_type = int; 29724: 29724: 29724: native_handle_type 29724: native_handle() const noexcept; 29724: 29724: }; 29724: 29724: 29724: } 29724: # 45 "/usr/include/c++/14/fstream" 2 3 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 51 "/usr/include/c++/14/fstream" 2 3 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: 29724: 29724: template().make_preferred().filename())> 29724: using _If_fs_path = enable_if_t, _Result>; 29724: # 89 "/usr/include/c++/14/fstream" 3 29724: template 29724: class basic_filebuf : public basic_streambuf<_CharT, _Traits> 29724: { 29724: 29724: template 29724: using __chk_state = __and_, 29724: is_copy_constructible<_Tp>, 29724: is_default_constructible<_Tp>>; 29724: 29724: static_assert(__chk_state::value, 29724: "state_type must be CopyAssignable, CopyConstructible" 29724: " and DefaultConstructible"); 29724: 29724: static_assert(is_same>::value, 29724: "pos_type must be fpos"); 29724: 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: typedef basic_streambuf __streambuf_type; 29724: typedef basic_filebuf __filebuf_type; 29724: typedef __basic_file __file_type; 29724: typedef typename traits_type::state_type __state_type; 29724: typedef codecvt __codecvt_type; 29724: 29724: friend class ios_base; 29724: 29724: protected: 29724: 29724: 29724: __c_lock _M_lock; 29724: 29724: 29724: __file_type _M_file; 29724: 29724: 29724: ios_base::openmode _M_mode; 29724: 29724: 29724: __state_type _M_state_beg; 29724: 29724: 29724: 29724: 29724: __state_type _M_state_cur; 29724: 29724: 29724: 29724: __state_type _M_state_last; 29724: 29724: 29724: char_type* _M_buf; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t _M_buf_size; 29724: 29724: 29724: bool _M_buf_allocated; 29724: # 165 "/usr/include/c++/14/fstream" 3 29724: bool _M_reading; 29724: bool _M_writing; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: char_type _M_pback; 29724: char_type* _M_pback_cur_save; 29724: char_type* _M_pback_end_save; 29724: bool _M_pback_init; 29724: 29724: 29724: 29724: const __codecvt_type* _M_codecvt; 29724: 29724: 29724: 29724: 29724: 29724: 29724: char* _M_ext_buf; 29724: 29724: 29724: 29724: 29724: streamsize _M_ext_buf_size; 29724: 29724: 29724: 29724: 29724: 29724: 29724: const char* _M_ext_next; 29724: char* _M_ext_end; 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: _M_create_pback() 29724: { 29724: if (!_M_pback_init) 29724: { 29724: _M_pback_cur_save = this->gptr(); 29724: _M_pback_end_save = this->egptr(); 29724: this->setg(&_M_pback, &_M_pback, &_M_pback + 1); 29724: _M_pback_init = true; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void 29724: _M_destroy_pback() throw() 29724: { 29724: if (_M_pback_init) 29724: { 29724: 29724: _M_pback_cur_save += this->gptr() != this->eback(); 29724: this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); 29724: _M_pback_init = false; 29724: } 29724: } 29724: 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: basic_filebuf(); 29724: 29724: 29724: basic_filebuf(const basic_filebuf&) = delete; 29724: basic_filebuf(basic_filebuf&&); 29724: 29724: 29724: 29724: 29724: 29724: virtual 29724: ~basic_filebuf() 29724: { 29724: try 29724: { this->close(); } 29724: catch(...) 29724: { } 29724: } 29724: 29724: 29724: basic_filebuf& operator=(const basic_filebuf&) = delete; 29724: basic_filebuf& operator=(basic_filebuf&&); 29724: void swap(basic_filebuf&); 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: is_open() const throw() 29724: { return _M_file.is_open(); } 29724: # 319 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: open(const char* __s, ios_base::openmode __mode); 29724: # 340 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: open(const std::string& __s, ios_base::openmode __mode) 29724: { return open(__s.c_str(), __mode); } 29724: # 351 "/usr/include/c++/14/fstream" 3 29724: template 29724: _If_fs_path<_Path, __filebuf_type*> 29724: open(const _Path& __s, ios_base::openmode __mode) 29724: { return open(__s.c_str(), __mode); } 29724: # 370 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: close(); 29724: # 403 "/usr/include/c++/14/fstream" 3 29724: protected: 29724: void 29724: _M_allocate_internal_buffer(); 29724: 29724: void 29724: _M_destroy_internal_buffer() throw(); 29724: 29724: 29724: virtual streamsize 29724: showmanyc(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual int_type 29724: underflow(); 29724: 29724: virtual int_type 29724: pbackfail(int_type __c = _Traits::eof()); 29724: # 432 "/usr/include/c++/14/fstream" 3 29724: virtual int_type 29724: overflow(int_type __c = _Traits::eof()); 29724: 29724: 29724: 29724: bool 29724: _M_convert_to_external(char_type*, streamsize); 29724: # 452 "/usr/include/c++/14/fstream" 3 29724: virtual __streambuf_type* 29724: setbuf(char_type* __s, streamsize __n); 29724: 29724: virtual pos_type 29724: seekoff(off_type __off, ios_base::seekdir __way, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out); 29724: 29724: virtual pos_type 29724: seekpos(pos_type __pos, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out); 29724: 29724: 29724: pos_type 29724: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); 29724: 29724: int 29724: _M_get_ext_pos(__state_type &__state); 29724: 29724: virtual int 29724: sync(); 29724: 29724: virtual void 29724: imbue(const locale& __loc); 29724: 29724: virtual streamsize 29724: xsgetn(char_type* __s, streamsize __n); 29724: 29724: virtual streamsize 29724: xsputn(const char_type* __s, streamsize __n); 29724: 29724: 29724: bool 29724: _M_terminate_output(); 29724: # 498 "/usr/include/c++/14/fstream" 3 29724: void 29724: _M_set_buffer(streamsize __off) 29724: { 29724: const bool __testin = _M_mode & ios_base::in; 29724: const bool __testout = (_M_mode & ios_base::out 29724: || _M_mode & ios_base::app); 29724: 29724: if (__testin && __off > 0) 29724: this->setg(_M_buf, _M_buf, _M_buf + __off); 29724: else 29724: this->setg(_M_buf, _M_buf, _M_buf); 29724: 29724: if (__testout && __off == 0 && _M_buf_size > 1 ) 29724: this->setp(_M_buf, _M_buf + _M_buf_size - 1); 29724: else 29724: this->setp(0, 0); 29724: } 29724: }; 29724: # 531 "/usr/include/c++/14/fstream" 3 29724: template 29724: class basic_ifstream : public basic_istream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_filebuf __filebuf_type; 29724: typedef basic_istream __istream_type; 29724: 29724: private: 29724: __filebuf_type _M_filebuf; 29724: 29724: public: 29724: # 558 "/usr/include/c++/14/fstream" 3 29724: basic_ifstream() : __istream_type(), _M_filebuf() 29724: { this->init(&_M_filebuf); } 29724: # 568 "/usr/include/c++/14/fstream" 3 29724: explicit 29724: basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) 29724: : __istream_type(), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: # 601 "/usr/include/c++/14/fstream" 3 29724: explicit 29724: basic_ifstream(const std::string& __s, 29724: ios_base::openmode __mode = ios_base::in) 29724: : __istream_type(), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: # 618 "/usr/include/c++/14/fstream" 3 29724: template> 29724: basic_ifstream(const _Path& __s, 29724: ios_base::openmode __mode = ios_base::in) 29724: : basic_ifstream(__s.c_str(), __mode) 29724: { } 29724: 29724: 29724: basic_ifstream(const basic_ifstream&) = delete; 29724: 29724: basic_ifstream(basic_ifstream&& __rhs) 29724: : __istream_type(std::move(__rhs)), 29724: _M_filebuf(std::move(__rhs._M_filebuf)) 29724: { __istream_type::set_rdbuf(&_M_filebuf); } 29724: # 639 "/usr/include/c++/14/fstream" 3 29724: ~basic_ifstream() 29724: { } 29724: 29724: 29724: 29724: 29724: basic_ifstream& 29724: operator=(const basic_ifstream&) = delete; 29724: 29724: basic_ifstream& 29724: operator=(basic_ifstream&& __rhs) 29724: { 29724: __istream_type::operator=(std::move(__rhs)); 29724: _M_filebuf = std::move(__rhs._M_filebuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_ifstream& __rhs) 29724: { 29724: __istream_type::swap(__rhs); 29724: _M_filebuf.swap(__rhs._M_filebuf); 29724: } 29724: # 671 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: rdbuf() const 29724: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: is_open() 29724: { return _M_filebuf.is_open(); } 29724: 29724: 29724: 29724: bool 29724: is_open() const 29724: { return _M_filebuf.is_open(); } 29724: # 697 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const char* __s, ios_base::openmode __mode = ios_base::in) 29724: { 29724: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 736 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const std::string& __s, ios_base::openmode __mode = ios_base::in) 29724: { 29724: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 756 "/usr/include/c++/14/fstream" 3 29724: template 29724: _If_fs_path<_Path, void> 29724: open(const _Path& __s, ios_base::openmode __mode = ios_base::in) 29724: { open(__s.c_str(), __mode); } 29724: # 769 "/usr/include/c++/14/fstream" 3 29724: void 29724: close() 29724: { 29724: if (!_M_filebuf.close()) 29724: this->setstate(ios_base::failbit); 29724: } 29724: # 784 "/usr/include/c++/14/fstream" 3 29724: }; 29724: # 801 "/usr/include/c++/14/fstream" 3 29724: template 29724: class basic_ofstream : public basic_ostream<_CharT,_Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_filebuf __filebuf_type; 29724: typedef basic_ostream __ostream_type; 29724: 29724: private: 29724: __filebuf_type _M_filebuf; 29724: 29724: public: 29724: # 828 "/usr/include/c++/14/fstream" 3 29724: basic_ofstream(): __ostream_type(), _M_filebuf() 29724: { this->init(&_M_filebuf); } 29724: # 838 "/usr/include/c++/14/fstream" 3 29724: explicit 29724: basic_ofstream(const char* __s, 29724: ios_base::openmode __mode = ios_base::out) 29724: : __ostream_type(), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: # 873 "/usr/include/c++/14/fstream" 3 29724: explicit 29724: basic_ofstream(const std::string& __s, 29724: ios_base::openmode __mode = ios_base::out) 29724: : __ostream_type(), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: # 890 "/usr/include/c++/14/fstream" 3 29724: template> 29724: basic_ofstream(const _Path& __s, 29724: ios_base::openmode __mode = ios_base::out) 29724: : basic_ofstream(__s.c_str(), __mode) 29724: { } 29724: 29724: 29724: basic_ofstream(const basic_ofstream&) = delete; 29724: 29724: basic_ofstream(basic_ofstream&& __rhs) 29724: : __ostream_type(std::move(__rhs)), 29724: _M_filebuf(std::move(__rhs._M_filebuf)) 29724: { __ostream_type::set_rdbuf(&_M_filebuf); } 29724: # 911 "/usr/include/c++/14/fstream" 3 29724: ~basic_ofstream() 29724: { } 29724: 29724: 29724: 29724: 29724: basic_ofstream& 29724: operator=(const basic_ofstream&) = delete; 29724: 29724: basic_ofstream& 29724: operator=(basic_ofstream&& __rhs) 29724: { 29724: __ostream_type::operator=(std::move(__rhs)); 29724: _M_filebuf = std::move(__rhs._M_filebuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_ofstream& __rhs) 29724: { 29724: __ostream_type::swap(__rhs); 29724: _M_filebuf.swap(__rhs._M_filebuf); 29724: } 29724: # 943 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: rdbuf() const 29724: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: is_open() 29724: { return _M_filebuf.is_open(); } 29724: 29724: 29724: 29724: bool 29724: is_open() const 29724: { return _M_filebuf.is_open(); } 29724: # 969 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const char* __s, ios_base::openmode __mode = ios_base::out) 29724: { 29724: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 1008 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const std::string& __s, ios_base::openmode __mode = ios_base::out) 29724: { 29724: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 1028 "/usr/include/c++/14/fstream" 3 29724: template 29724: _If_fs_path<_Path, void> 29724: open(const _Path& __s, ios_base::openmode __mode = ios_base::out) 29724: { open(__s.c_str(), __mode); } 29724: # 1041 "/usr/include/c++/14/fstream" 3 29724: void 29724: close() 29724: { 29724: if (!_M_filebuf.close()) 29724: this->setstate(ios_base::failbit); 29724: } 29724: # 1056 "/usr/include/c++/14/fstream" 3 29724: }; 29724: # 1073 "/usr/include/c++/14/fstream" 3 29724: template 29724: class basic_fstream : public basic_iostream<_CharT, _Traits> 29724: { 29724: public: 29724: 29724: typedef _CharT char_type; 29724: typedef _Traits traits_type; 29724: typedef typename traits_type::int_type int_type; 29724: typedef typename traits_type::pos_type pos_type; 29724: typedef typename traits_type::off_type off_type; 29724: 29724: 29724: typedef basic_filebuf __filebuf_type; 29724: typedef basic_ios __ios_type; 29724: typedef basic_iostream __iostream_type; 29724: 29724: private: 29724: __filebuf_type _M_filebuf; 29724: 29724: public: 29724: # 1101 "/usr/include/c++/14/fstream" 3 29724: basic_fstream() 29724: : __iostream_type(), _M_filebuf() 29724: { this->init(&_M_filebuf); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit 29724: basic_fstream(const char* __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: : __iostream_type(0), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: # 1140 "/usr/include/c++/14/fstream" 3 29724: explicit 29724: basic_fstream(const std::string& __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: : __iostream_type(0), _M_filebuf() 29724: { 29724: this->init(&_M_filebuf); 29724: this->open(__s, __mode); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: basic_fstream(const _Path& __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: : basic_fstream(__s.c_str(), __mode) 29724: { } 29724: 29724: 29724: basic_fstream(const basic_fstream&) = delete; 29724: 29724: basic_fstream(basic_fstream&& __rhs) 29724: : __iostream_type(std::move(__rhs)), 29724: _M_filebuf(std::move(__rhs._M_filebuf)) 29724: { __iostream_type::set_rdbuf(&_M_filebuf); } 29724: # 1176 "/usr/include/c++/14/fstream" 3 29724: ~basic_fstream() 29724: { } 29724: 29724: 29724: 29724: 29724: basic_fstream& 29724: operator=(const basic_fstream&) = delete; 29724: 29724: basic_fstream& 29724: operator=(basic_fstream&& __rhs) 29724: { 29724: __iostream_type::operator=(std::move(__rhs)); 29724: _M_filebuf = std::move(__rhs._M_filebuf); 29724: return *this; 29724: } 29724: 29724: void 29724: swap(basic_fstream& __rhs) 29724: { 29724: __iostream_type::swap(__rhs); 29724: _M_filebuf.swap(__rhs._M_filebuf); 29724: } 29724: # 1208 "/usr/include/c++/14/fstream" 3 29724: __filebuf_type* 29724: rdbuf() const 29724: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29724: 29724: 29724: 29724: 29724: 29724: bool 29724: is_open() 29724: { return _M_filebuf.is_open(); } 29724: 29724: 29724: 29724: bool 29724: is_open() const 29724: { return _M_filebuf.is_open(); } 29724: # 1234 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const char* __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: { 29724: if (!_M_filebuf.open(__s, __mode)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 1275 "/usr/include/c++/14/fstream" 3 29724: void 29724: open(const std::string& __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: { 29724: if (!_M_filebuf.open(__s, __mode)) 29724: this->setstate(ios_base::failbit); 29724: else 29724: 29724: 29724: this->clear(); 29724: } 29724: # 1296 "/usr/include/c++/14/fstream" 3 29724: template 29724: _If_fs_path<_Path, void> 29724: open(const _Path& __s, 29724: ios_base::openmode __mode = ios_base::in | ios_base::out) 29724: { open(__s.c_str(), __mode); } 29724: # 1310 "/usr/include/c++/14/fstream" 3 29724: void 29724: close() 29724: { 29724: if (!_M_filebuf.close()) 29724: this->setstate(ios_base::failbit); 29724: } 29724: # 1325 "/usr/include/c++/14/fstream" 3 29724: }; 29724: 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_filebuf<_CharT, _Traits>& __x, 29724: basic_filebuf<_CharT, _Traits>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_ifstream<_CharT, _Traits>& __x, 29724: basic_ifstream<_CharT, _Traits>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_ofstream<_CharT, _Traits>& __x, 29724: basic_ofstream<_CharT, _Traits>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: template 29724: inline void 29724: swap(basic_fstream<_CharT, _Traits>& __x, 29724: basic_fstream<_CharT, _Traits>& __y) 29724: { __x.swap(__y); } 29724: 29724: 29724: 29724: } 29724: 29724: # 1 "/usr/include/c++/14/bits/fstream.tcc" 1 3 29724: # 37 "/usr/include/c++/14/bits/fstream.tcc" 3 29724: 29724: # 38 "/usr/include/c++/14/bits/fstream.tcc" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cerrno" 1 3 29724: # 39 "/usr/include/c++/14/cerrno" 3 29724: 29724: # 40 "/usr/include/c++/14/cerrno" 3 29724: # 42 "/usr/include/c++/14/bits/fstream.tcc" 2 3 29724: 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template 29724: void 29724: basic_filebuf<_CharT, _Traits>:: 29724: _M_allocate_internal_buffer() 29724: { 29724: 29724: 29724: if (!_M_buf_allocated && !_M_buf) 29724: { 29724: _M_buf = new char_type[_M_buf_size]; 29724: _M_buf_allocated = true; 29724: } 29724: } 29724: 29724: template 29724: void 29724: basic_filebuf<_CharT, _Traits>:: 29724: _M_destroy_internal_buffer() throw() 29724: { 29724: if (_M_buf_allocated) 29724: { 29724: delete [] _M_buf; 29724: _M_buf = 0; 29724: _M_buf_allocated = false; 29724: } 29724: delete [] _M_ext_buf; 29724: _M_ext_buf = 0; 29724: _M_ext_buf_size = 0; 29724: _M_ext_next = 0; 29724: _M_ext_end = 0; 29724: } 29724: 29724: template 29724: basic_filebuf<_CharT, _Traits>:: 29724: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), 29724: _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), 29724: _M_state_last(), _M_buf(0), _M_buf_size(8192), 29724: _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), 29724: _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), 29724: _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), 29724: _M_ext_end(0) 29724: { 29724: _M_codecvt = std::__try_use_facet<__codecvt_type>(this->_M_buf_locale); 29724: } 29724: 29724: 29724: template 29724: basic_filebuf<_CharT, _Traits>:: 29724: basic_filebuf(basic_filebuf&& __rhs) 29724: : __streambuf_type(__rhs), 29724: _M_lock(), _M_file(std::move(__rhs._M_file), &_M_lock), 29724: _M_mode(std::__exchange(__rhs._M_mode, ios_base::openmode(0))), 29724: _M_state_beg(std::move(__rhs._M_state_beg)), 29724: _M_state_cur(std::move(__rhs._M_state_cur)), 29724: _M_state_last(std::move(__rhs._M_state_last)), 29724: _M_buf(std::__exchange(__rhs._M_buf, nullptr)), 29724: _M_buf_size(std::__exchange(__rhs._M_buf_size, 1)), 29724: _M_buf_allocated(std::__exchange(__rhs._M_buf_allocated, false)), 29724: _M_reading(std::__exchange(__rhs._M_reading, false)), 29724: _M_writing(std::__exchange(__rhs._M_writing, false)), 29724: _M_pback(__rhs._M_pback), 29724: _M_pback_cur_save(std::__exchange(__rhs._M_pback_cur_save, nullptr)), 29724: _M_pback_end_save(std::__exchange(__rhs._M_pback_end_save, nullptr)), 29724: _M_pback_init(std::__exchange(__rhs._M_pback_init, false)), 29724: _M_codecvt(__rhs._M_codecvt), 29724: _M_ext_buf(std::__exchange(__rhs._M_ext_buf, nullptr)), 29724: _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), 29724: _M_ext_next(std::__exchange(__rhs._M_ext_next, nullptr)), 29724: _M_ext_end(std::__exchange(__rhs._M_ext_end, nullptr)) 29724: { 29724: __rhs._M_set_buffer(-1); 29724: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 29724: } 29724: 29724: template 29724: basic_filebuf<_CharT, _Traits>& 29724: basic_filebuf<_CharT, _Traits>:: 29724: operator=(basic_filebuf&& __rhs) 29724: { 29724: this->close(); 29724: __streambuf_type::operator=(__rhs); 29724: _M_file.swap(__rhs._M_file); 29724: _M_mode = std::__exchange(__rhs._M_mode, ios_base::openmode(0)); 29724: _M_state_beg = std::move(__rhs._M_state_beg); 29724: _M_state_cur = std::move(__rhs._M_state_cur); 29724: _M_state_last = std::move(__rhs._M_state_last); 29724: _M_buf = std::__exchange(__rhs._M_buf, nullptr); 29724: _M_buf_size = std::__exchange(__rhs._M_buf_size, 1); 29724: _M_buf_allocated = std::__exchange(__rhs._M_buf_allocated, false); 29724: _M_ext_buf = std::__exchange(__rhs._M_ext_buf, nullptr); 29724: _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); 29724: _M_ext_next = std::__exchange(__rhs._M_ext_next, nullptr); 29724: _M_ext_end = std::__exchange(__rhs._M_ext_end, nullptr); 29724: _M_reading = std::__exchange(__rhs._M_reading, false); 29724: _M_writing = std::__exchange(__rhs._M_writing, false); 29724: _M_pback_cur_save = std::__exchange(__rhs._M_pback_cur_save, nullptr); 29724: _M_pback_end_save = std::__exchange(__rhs._M_pback_end_save, nullptr); 29724: _M_pback_init = std::__exchange(__rhs._M_pback_init, false); 29724: __rhs._M_set_buffer(-1); 29724: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 29724: return *this; 29724: } 29724: 29724: template 29724: void 29724: basic_filebuf<_CharT, _Traits>:: 29724: swap(basic_filebuf& __rhs) 29724: { 29724: __streambuf_type::swap(__rhs); 29724: _M_file.swap(__rhs._M_file); 29724: std::swap(_M_mode, __rhs._M_mode); 29724: std::swap(_M_state_beg, __rhs._M_state_beg); 29724: std::swap(_M_state_cur, __rhs._M_state_cur); 29724: std::swap(_M_state_last, __rhs._M_state_last); 29724: std::swap(_M_buf, __rhs._M_buf); 29724: std::swap(_M_buf_size, __rhs._M_buf_size); 29724: std::swap(_M_buf_allocated, __rhs._M_buf_allocated); 29724: std::swap(_M_ext_buf, __rhs._M_ext_buf); 29724: std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); 29724: std::swap(_M_ext_next, __rhs._M_ext_next); 29724: std::swap(_M_ext_end, __rhs._M_ext_end); 29724: std::swap(_M_reading, __rhs._M_reading); 29724: std::swap(_M_writing, __rhs._M_writing); 29724: std::swap(_M_pback_cur_save, __rhs._M_pback_cur_save); 29724: std::swap(_M_pback_end_save, __rhs._M_pback_end_save); 29724: std::swap(_M_pback_init, __rhs._M_pback_init); 29724: } 29724: 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 29724: basic_filebuf<_CharT, _Traits>:: 29724: open(const char* __s, ios_base::openmode __mode) 29724: { 29724: __filebuf_type *__ret = 0; 29724: if (!this->is_open()) 29724: { 29724: _M_file.open(__s, __mode); 29724: if (this->is_open()) 29724: { 29724: _M_allocate_internal_buffer(); 29724: _M_mode = __mode; 29724: 29724: 29724: _M_reading = false; 29724: _M_writing = false; 29724: _M_set_buffer(-1); 29724: 29724: 29724: _M_state_last = _M_state_cur = _M_state_beg; 29724: 29724: 29724: if ((__mode & ios_base::ate) 29724: && this->seekoff(0, ios_base::end, __mode) 29724: == pos_type(off_type(-1))) 29724: this->close(); 29724: else 29724: __ret = this; 29724: } 29724: } 29724: return __ret; 29724: } 29724: # 246 "/usr/include/c++/14/bits/fstream.tcc" 3 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 29724: basic_filebuf<_CharT, _Traits>:: 29724: close() 29724: { 29724: if (!this->is_open()) 29724: return 0; 29724: 29724: bool __testfail = false; 29724: { 29724: 29724: struct __close_sentry 29724: { 29724: basic_filebuf *__fb; 29724: __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } 29724: ~__close_sentry () 29724: { 29724: __fb->_M_mode = ios_base::openmode(0); 29724: __fb->_M_pback_init = false; 29724: __fb->_M_destroy_internal_buffer(); 29724: __fb->_M_reading = false; 29724: __fb->_M_writing = false; 29724: __fb->_M_set_buffer(-1); 29724: __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; 29724: } 29724: } __cs (this); 29724: 29724: try 29724: { 29724: if (!_M_terminate_output()) 29724: __testfail = true; 29724: } 29724: catch(...) 29724: { 29724: _M_file.close(); 29724: throw; 29724: } 29724: } 29724: 29724: if (!_M_file.close()) 29724: __testfail = true; 29724: 29724: if (__testfail) 29724: return 0; 29724: else 29724: return this; 29724: } 29724: 29724: template 29724: streamsize 29724: basic_filebuf<_CharT, _Traits>:: 29724: showmanyc() 29724: { 29724: streamsize __ret = -1; 29724: const bool __testin = _M_mode & ios_base::in; 29724: if (__testin && this->is_open()) 29724: { 29724: 29724: 29724: __ret = this->egptr() - this->gptr(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (__check_facet(_M_codecvt).encoding() >= 0) 29724: 29724: __ret += _M_file.showmanyc() / _M_codecvt->max_length(); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::int_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: underflow() 29724: { 29724: int_type __ret = traits_type::eof(); 29724: const bool __testin = _M_mode & ios_base::in; 29724: if (__testin) 29724: { 29724: if (_M_writing) 29724: { 29724: if (overflow() == traits_type::eof()) 29724: return __ret; 29724: _M_set_buffer(-1); 29724: _M_writing = false; 29724: } 29724: 29724: 29724: 29724: _M_destroy_pback(); 29724: 29724: if (this->gptr() < this->egptr()) 29724: return traits_type::to_int_type(*this->gptr()); 29724: 29724: 29724: const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 29724: 29724: 29724: bool __got_eof = false; 29724: 29724: streamsize __ilen = 0; 29724: codecvt_base::result __r = codecvt_base::ok; 29724: if (__check_facet(_M_codecvt).always_noconv()) 29724: { 29724: __ilen = _M_file.xsgetn(reinterpret_cast(this->eback()), 29724: __buflen); 29724: if (__ilen == 0) 29724: __got_eof = true; 29724: } 29724: else 29724: { 29724: 29724: 29724: const int __enc = _M_codecvt->encoding(); 29724: streamsize __blen; 29724: streamsize __rlen; 29724: if (__enc > 0) 29724: __blen = __rlen = __buflen * __enc; 29724: else 29724: { 29724: __blen = __buflen + _M_codecvt->max_length() - 1; 29724: __rlen = __buflen; 29724: } 29724: const streamsize __remainder = _M_ext_end - _M_ext_next; 29724: __rlen = __rlen > __remainder ? __rlen - __remainder : 0; 29724: 29724: 29724: 29724: if (_M_reading && this->egptr() == this->eback() && __remainder) 29724: __rlen = 0; 29724: 29724: 29724: 29724: if (_M_ext_buf_size < __blen) 29724: { 29724: char* __buf = new char[__blen]; 29724: if (__remainder) 29724: __builtin_memcpy(__buf, _M_ext_next, __remainder); 29724: 29724: delete [] _M_ext_buf; 29724: _M_ext_buf = __buf; 29724: _M_ext_buf_size = __blen; 29724: } 29724: else if (__remainder) 29724: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 29724: 29724: _M_ext_next = _M_ext_buf; 29724: _M_ext_end = _M_ext_buf + __remainder; 29724: _M_state_last = _M_state_cur; 29724: 29724: do 29724: { 29724: if (__rlen > 0) 29724: { 29724: 29724: 29724: 29724: if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) 29724: { 29724: __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") 29724: 29724: ); 29724: } 29724: streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); 29724: if (__elen == 0) 29724: __got_eof = true; 29724: else if (__elen == -1) 29724: break; 29724: _M_ext_end += __elen; 29724: } 29724: 29724: char_type* __iend = this->eback(); 29724: if (_M_ext_next < _M_ext_end) 29724: __r = _M_codecvt->in(_M_state_cur, _M_ext_next, 29724: _M_ext_end, _M_ext_next, 29724: this->eback(), 29724: this->eback() + __buflen, __iend); 29724: if (__r == codecvt_base::noconv) 29724: { 29724: size_t __avail = _M_ext_end - _M_ext_buf; 29724: __ilen = std::min(__avail, __buflen); 29724: traits_type::copy(this->eback(), 29724: reinterpret_cast 29724: (_M_ext_buf), __ilen); 29724: _M_ext_next = _M_ext_buf + __ilen; 29724: } 29724: else 29724: __ilen = __iend - this->eback(); 29724: 29724: 29724: 29724: 29724: if (__r == codecvt_base::error) 29724: break; 29724: 29724: __rlen = 1; 29724: } 29724: while (__ilen == 0 && !__got_eof); 29724: } 29724: 29724: if (__ilen > 0) 29724: { 29724: _M_set_buffer(__ilen); 29724: _M_reading = true; 29724: __ret = traits_type::to_int_type(*this->gptr()); 29724: } 29724: else if (__got_eof) 29724: { 29724: 29724: 29724: 29724: _M_set_buffer(-1); 29724: _M_reading = false; 29724: 29724: 29724: if (__r == codecvt_base::partial) 29724: __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") 29724: ); 29724: } 29724: else if (__r == codecvt_base::error) 29724: __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") 29724: ); 29724: else 29724: __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") 29724: , (*__errno_location ())); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::int_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: pbackfail(int_type __i) 29724: { 29724: int_type __ret = traits_type::eof(); 29724: const bool __testin = _M_mode & ios_base::in; 29724: if (__testin) 29724: { 29724: if (_M_writing) 29724: { 29724: if (overflow() == traits_type::eof()) 29724: return __ret; 29724: _M_set_buffer(-1); 29724: _M_writing = false; 29724: } 29724: 29724: 29724: const bool __testpb = _M_pback_init; 29724: const bool __testeof = traits_type::eq_int_type(__i, __ret); 29724: int_type __tmp; 29724: if (this->eback() < this->gptr()) 29724: { 29724: this->gbump(-1); 29724: __tmp = traits_type::to_int_type(*this->gptr()); 29724: } 29724: else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) 29724: { 29724: __tmp = this->underflow(); 29724: if (traits_type::eq_int_type(__tmp, __ret)) 29724: return __ret; 29724: } 29724: else 29724: { 29724: 29724: 29724: 29724: 29724: 29724: return __ret; 29724: } 29724: 29724: 29724: 29724: if (!__testeof && traits_type::eq_int_type(__i, __tmp)) 29724: __ret = __i; 29724: else if (__testeof) 29724: __ret = traits_type::not_eof(__i); 29724: else if (!__testpb) 29724: { 29724: _M_create_pback(); 29724: _M_reading = true; 29724: *this->gptr() = traits_type::to_char_type(__i); 29724: __ret = __i; 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::int_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: overflow(int_type __c) 29724: { 29724: int_type __ret = traits_type::eof(); 29724: const bool __testeof = traits_type::eq_int_type(__c, __ret); 29724: const bool __testout = (_M_mode & ios_base::out 29724: || _M_mode & ios_base::app); 29724: if (__testout) 29724: { 29724: if (_M_reading) 29724: { 29724: _M_destroy_pback(); 29724: const int __gptr_off = _M_get_ext_pos(_M_state_last); 29724: if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) 29724: == pos_type(off_type(-1))) 29724: return __ret; 29724: } 29724: if (this->pbase() < this->pptr()) 29724: { 29724: 29724: if (!__testeof) 29724: { 29724: *this->pptr() = traits_type::to_char_type(__c); 29724: this->pbump(1); 29724: } 29724: 29724: 29724: 29724: if (_M_convert_to_external(this->pbase(), 29724: this->pptr() - this->pbase())) 29724: { 29724: _M_set_buffer(0); 29724: __ret = traits_type::not_eof(__c); 29724: } 29724: } 29724: else if (_M_buf_size > 1) 29724: { 29724: 29724: 29724: 29724: _M_set_buffer(0); 29724: _M_writing = true; 29724: if (!__testeof) 29724: { 29724: *this->pptr() = traits_type::to_char_type(__c); 29724: this->pbump(1); 29724: } 29724: __ret = traits_type::not_eof(__c); 29724: } 29724: else 29724: { 29724: 29724: char_type __conv = traits_type::to_char_type(__c); 29724: if (__testeof || _M_convert_to_external(&__conv, 1)) 29724: { 29724: _M_writing = true; 29724: __ret = traits_type::not_eof(__c); 29724: } 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: bool 29724: basic_filebuf<_CharT, _Traits>:: 29724: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) 29724: { 29724: 29724: streamsize __elen; 29724: streamsize __plen; 29724: if (__check_facet(_M_codecvt).always_noconv()) 29724: { 29724: __elen = _M_file.xsputn(reinterpret_cast(__ibuf), __ilen); 29724: __plen = __ilen; 29724: } 29724: else 29724: { 29724: 29724: 29724: streamsize __blen = __ilen * _M_codecvt->max_length(); 29724: char* __buf = static_cast(__builtin_alloca(__blen)); 29724: 29724: char* __bend; 29724: const char_type* __iend; 29724: codecvt_base::result __r; 29724: __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, 29724: __iend, __buf, __buf + __blen, __bend); 29724: 29724: if (__r == codecvt_base::ok || __r == codecvt_base::partial) 29724: __blen = __bend - __buf; 29724: else if (__r == codecvt_base::noconv) 29724: { 29724: 29724: __buf = reinterpret_cast(__ibuf); 29724: __blen = __ilen; 29724: } 29724: else 29724: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 29724: ); 29724: 29724: __elen = _M_file.xsputn(__buf, __blen); 29724: __plen = __blen; 29724: 29724: 29724: if (__r == codecvt_base::partial && __elen == __plen) 29724: { 29724: const char_type* __iresume = __iend; 29724: streamsize __rlen = this->pptr() - __iend; 29724: __r = _M_codecvt->out(_M_state_cur, __iresume, 29724: __iresume + __rlen, __iend, __buf, 29724: __buf + __blen, __bend); 29724: if (__r != codecvt_base::error) 29724: { 29724: __rlen = __bend - __buf; 29724: __elen = _M_file.xsputn(__buf, __rlen); 29724: __plen = __rlen; 29724: } 29724: else 29724: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 29724: ); 29724: } 29724: } 29724: return __elen == __plen; 29724: } 29724: 29724: template 29724: streamsize 29724: basic_filebuf<_CharT, _Traits>:: 29724: xsgetn(_CharT* __s, streamsize __n) 29724: { 29724: 29724: streamsize __ret = 0; 29724: if (_M_pback_init) 29724: { 29724: if (__n > 0 && this->gptr() == this->eback()) 29724: { 29724: *__s++ = *this->gptr(); 29724: this->gbump(1); 29724: __ret = 1; 29724: --__n; 29724: } 29724: _M_destroy_pback(); 29724: } 29724: else if (_M_writing) 29724: { 29724: if (overflow() == traits_type::eof()) 29724: return __ret; 29724: _M_set_buffer(-1); 29724: _M_writing = false; 29724: } 29724: 29724: 29724: 29724: 29724: const bool __testin = _M_mode & ios_base::in; 29724: const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 29724: 29724: if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() 29724: && __testin) 29724: { 29724: 29724: const streamsize __avail = this->egptr() - this->gptr(); 29724: if (__avail != 0) 29724: { 29724: traits_type::copy(__s, this->gptr(), __avail); 29724: __s += __avail; 29724: this->setg(this->eback(), this->gptr() + __avail, this->egptr()); 29724: __ret += __avail; 29724: __n -= __avail; 29724: } 29724: 29724: 29724: 29724: streamsize __len; 29724: for (;;) 29724: { 29724: __len = _M_file.xsgetn(reinterpret_cast(__s), __n); 29724: if (__len == -1) 29724: __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") 29724: , (*__errno_location ())); 29724: if (__len == 0) 29724: break; 29724: 29724: __n -= __len; 29724: __ret += __len; 29724: if (__n == 0) 29724: break; 29724: 29724: __s += __len; 29724: } 29724: 29724: if (__n == 0) 29724: { 29724: 29724: _M_reading = true; 29724: } 29724: else if (__len == 0) 29724: { 29724: 29724: 29724: 29724: _M_set_buffer(-1); 29724: _M_reading = false; 29724: } 29724: } 29724: else 29724: __ret += __streambuf_type::xsgetn(__s, __n); 29724: 29724: return __ret; 29724: } 29724: 29724: template 29724: streamsize 29724: basic_filebuf<_CharT, _Traits>:: 29724: xsputn(const _CharT* __s, streamsize __n) 29724: { 29724: streamsize __ret = 0; 29724: 29724: 29724: 29724: const bool __testout = (_M_mode & ios_base::out 29724: || _M_mode & ios_base::app); 29724: if (__check_facet(_M_codecvt).always_noconv() 29724: && __testout && !_M_reading) 29724: { 29724: streamsize __bufavail = this->epptr() - this->pptr(); 29724: 29724: 29724: if (!_M_writing && _M_buf_size > 1) 29724: __bufavail = _M_buf_size - 1; 29724: 29724: if (__n >= __bufavail) 29724: { 29724: const streamsize __buffill = this->pptr() - this->pbase(); 29724: const char* __buf = reinterpret_cast(this->pbase()); 29724: __ret = _M_file.xsputn_2(__buf, __buffill, 29724: reinterpret_cast(__s), 29724: __n); 29724: if (__ret == __buffill + __n) 29724: { 29724: _M_set_buffer(0); 29724: _M_writing = true; 29724: } 29724: if (__ret > __buffill) 29724: __ret -= __buffill; 29724: else 29724: __ret = 0; 29724: } 29724: else 29724: __ret = __streambuf_type::xsputn(__s, __n); 29724: } 29724: else 29724: __ret = __streambuf_type::xsputn(__s, __n); 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::__streambuf_type* 29724: basic_filebuf<_CharT, _Traits>:: 29724: setbuf(char_type* __s, streamsize __n) 29724: { 29724: if (!this->is_open()) 29724: { 29724: if (__s == 0 && __n == 0) 29724: _M_buf_size = 1; 29724: else if (__s && __n > 0) 29724: { 29724: # 816 "/usr/include/c++/14/bits/fstream.tcc" 3 29724: _M_buf = __s; 29724: _M_buf_size = __n; 29724: } 29724: } 29724: return this; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::pos_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) 29724: { 29724: int __width = 0; 29724: if (_M_codecvt) 29724: __width = _M_codecvt->encoding(); 29724: if (__width < 0) 29724: __width = 0; 29724: 29724: pos_type __ret = pos_type(off_type(-1)); 29724: const bool __testfail = __off != 0 && __width <= 0; 29724: if (this->is_open() && !__testfail) 29724: { 29724: 29724: 29724: 29724: 29724: bool __no_movement = __way == ios_base::cur && __off == 0 29724: && (!_M_writing || _M_codecvt->always_noconv()); 29724: 29724: 29724: if (!__no_movement) 29724: _M_destroy_pback(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __state_type __state = _M_state_beg; 29724: off_type __computed_off = __off * __width; 29724: if (_M_reading && __way == ios_base::cur) 29724: { 29724: __state = _M_state_last; 29724: __computed_off += _M_get_ext_pos(__state); 29724: } 29724: if (!__no_movement) 29724: __ret = _M_seek(__computed_off, __way, __state); 29724: else 29724: { 29724: if (_M_writing) 29724: __computed_off = this->pptr() - this->pbase(); 29724: 29724: off_type __file_off = _M_file.seekoff(0, ios_base::cur); 29724: if (__file_off != off_type(-1)) 29724: { 29724: __ret = __file_off + __computed_off; 29724: __ret.state(__state); 29724: } 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::pos_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: seekpos(pos_type __pos, ios_base::openmode) 29724: { 29724: pos_type __ret = pos_type(off_type(-1)); 29724: if (this->is_open()) 29724: { 29724: 29724: _M_destroy_pback(); 29724: __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: typename basic_filebuf<_CharT, _Traits>::pos_type 29724: basic_filebuf<_CharT, _Traits>:: 29724: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) 29724: { 29724: pos_type __ret = pos_type(off_type(-1)); 29724: if (_M_terminate_output()) 29724: { 29724: off_type __file_off = _M_file.seekoff(__off, __way); 29724: if (__file_off != off_type(-1)) 29724: { 29724: _M_reading = false; 29724: _M_writing = false; 29724: _M_ext_next = _M_ext_end = _M_ext_buf; 29724: _M_set_buffer(-1); 29724: _M_state_cur = __state; 29724: __ret = __file_off; 29724: __ret.state(_M_state_cur); 29724: } 29724: } 29724: return __ret; 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: int basic_filebuf<_CharT, _Traits>:: 29724: _M_get_ext_pos(__state_type& __state) 29724: { 29724: if (_M_codecvt->always_noconv()) 29724: return this->gptr() - this->egptr(); 29724: else 29724: { 29724: 29724: 29724: 29724: const int __gptr_off = 29724: _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, 29724: this->gptr() - this->eback()); 29724: return _M_ext_buf + __gptr_off - _M_ext_end; 29724: } 29724: } 29724: 29724: template 29724: bool 29724: basic_filebuf<_CharT, _Traits>:: 29724: _M_terminate_output() 29724: { 29724: 29724: bool __testvalid = true; 29724: if (this->pbase() < this->pptr()) 29724: { 29724: const int_type __tmp = this->overflow(); 29724: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29724: __testvalid = false; 29724: } 29724: 29724: 29724: if (_M_writing && !__check_facet(_M_codecvt).always_noconv() 29724: && __testvalid) 29724: { 29724: 29724: 29724: 29724: const size_t __blen = 128; 29724: char __buf[__blen]; 29724: codecvt_base::result __r; 29724: streamsize __ilen = 0; 29724: 29724: do 29724: { 29724: char* __next; 29724: __r = _M_codecvt->unshift(_M_state_cur, __buf, 29724: __buf + __blen, __next); 29724: if (__r == codecvt_base::error) 29724: __testvalid = false; 29724: else if (__r == codecvt_base::ok || 29724: __r == codecvt_base::partial) 29724: { 29724: __ilen = __next - __buf; 29724: if (__ilen > 0) 29724: { 29724: const streamsize __elen = _M_file.xsputn(__buf, __ilen); 29724: if (__elen != __ilen) 29724: __testvalid = false; 29724: } 29724: } 29724: } 29724: while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); 29724: 29724: if (__testvalid) 29724: { 29724: 29724: 29724: 29724: 29724: const int_type __tmp = this->overflow(); 29724: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29724: __testvalid = false; 29724: } 29724: } 29724: return __testvalid; 29724: } 29724: 29724: template 29724: int 29724: basic_filebuf<_CharT, _Traits>:: 29724: sync() 29724: { 29724: 29724: 29724: int __ret = 0; 29724: if (this->pbase() < this->pptr()) 29724: { 29724: const int_type __tmp = this->overflow(); 29724: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29724: __ret = -1; 29724: } 29724: return __ret; 29724: } 29724: 29724: template 29724: void 29724: basic_filebuf<_CharT, _Traits>:: 29724: imbue(const locale& __loc) 29724: { 29724: bool __testvalid = true; 29724: 29724: const __codecvt_type* const _M_codecvt_tmp 29724: = __try_use_facet<__codecvt_type>(__loc); 29724: 29724: if (this->is_open()) 29724: { 29724: 29724: if ((_M_reading || _M_writing) 29724: && __check_facet(_M_codecvt).encoding() == -1) 29724: __testvalid = false; 29724: else 29724: { 29724: if (_M_reading) 29724: { 29724: if (__check_facet(_M_codecvt).always_noconv()) 29724: { 29724: if (_M_codecvt_tmp 29724: && !__check_facet(_M_codecvt_tmp).always_noconv()) 29724: __testvalid = this->seekoff(0, ios_base::cur, _M_mode) 29724: != pos_type(off_type(-1)); 29724: } 29724: else 29724: { 29724: 29724: _M_ext_next = _M_ext_buf 29724: + _M_codecvt->length(_M_state_last, _M_ext_buf, 29724: _M_ext_next, 29724: this->gptr() - this->eback()); 29724: const streamsize __remainder = _M_ext_end - _M_ext_next; 29724: if (__remainder) 29724: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 29724: 29724: _M_ext_next = _M_ext_buf; 29724: _M_ext_end = _M_ext_buf + __remainder; 29724: _M_set_buffer(-1); 29724: _M_state_last = _M_state_cur = _M_state_beg; 29724: } 29724: } 29724: else if (_M_writing && (__testvalid = _M_terminate_output())) 29724: _M_set_buffer(-1); 29724: } 29724: } 29724: 29724: if (__testvalid) 29724: _M_codecvt = _M_codecvt_tmp; 29724: else 29724: _M_codecvt = 0; 29724: } 29724: 29724: 29724: 29724: 29724: extern template class basic_filebuf; 29724: extern template class basic_ifstream; 29724: extern template class basic_ofstream; 29724: extern template class basic_fstream; 29724: 29724: 29724: extern template class basic_filebuf; 29724: extern template class basic_ifstream; 29724: extern template class basic_ofstream; 29724: extern template class basic_fstream; 29724: 29724: 29724: 29724: 29724: } 29724: # 1361 "/usr/include/c++/14/fstream" 2 3 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29724: namespace rocksdb { 29724: class InstrumentedCondVar; 29724: 29724: 29724: 29724: class InstrumentedMutex { 29724: public: 29724: explicit InstrumentedMutex(bool adaptive = false) 29724: : mutex_(adaptive), stats_(nullptr), clock_(nullptr), stats_code_(0) {} 29724: 29724: explicit InstrumentedMutex(SystemClock* clock, bool adaptive = false) 29724: : mutex_(adaptive), stats_(nullptr), clock_(clock), stats_code_(0) {} 29724: 29724: InstrumentedMutex(Statistics* stats, SystemClock* clock, int stats_code, 29724: bool adaptive = false) 29724: : mutex_(adaptive), 29724: stats_(stats), 29724: clock_(clock), 29724: stats_code_(stats_code) {} 29724: # 45 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29724: void Lock(); 29724: 29724: void Unlock() { mutex_.Unlock(); } 29724: 29724: void AssertHeld() const { mutex_.AssertHeld(); } 29724: 29724: private: 29724: void LockInternal(); 29724: friend class InstrumentedCondVar; 29724: port::Mutex mutex_; 29724: Statistics* stats_; 29724: SystemClock* clock_; 29724: int stats_code_; 29724: 29724: 29724: 29724: }; 29724: 29724: class alignas(64U) CacheAlignedInstrumentedMutex 29724: : public InstrumentedMutex { 29724: using InstrumentedMutex::InstrumentedMutex; 29724: }; 29724: static_assert(alignof(CacheAlignedInstrumentedMutex) != 64U || 29724: sizeof(CacheAlignedInstrumentedMutex) % 64U == 0); 29724: 29724: 29724: class InstrumentedMutexLock { 29724: public: 29724: explicit InstrumentedMutexLock(InstrumentedMutex* mutex) : mutex_(mutex) { 29724: mutex_->Lock(); 29724: } 29724: 29724: ~InstrumentedMutexLock() { mutex_->Unlock(); } 29724: 29724: private: 29724: InstrumentedMutex* const mutex_; 29724: InstrumentedMutexLock(const InstrumentedMutexLock&) = delete; 29724: void operator=(const InstrumentedMutexLock&) = delete; 29724: }; 29724: 29724: 29724: 29724: class InstrumentedMutexUnlock { 29724: public: 29724: explicit InstrumentedMutexUnlock(InstrumentedMutex* mutex) : mutex_(mutex) { 29724: mutex_->Unlock(); 29724: } 29724: 29724: ~InstrumentedMutexUnlock() { mutex_->Lock(); } 29724: 29724: private: 29724: InstrumentedMutex* const mutex_; 29724: InstrumentedMutexUnlock(const InstrumentedMutexUnlock&) = delete; 29724: void operator=(const InstrumentedMutexUnlock&) = delete; 29724: }; 29724: 29724: class InstrumentedCondVar { 29724: public: 29724: explicit InstrumentedCondVar(InstrumentedMutex* instrumented_mutex) 29724: : cond_(&(instrumented_mutex->mutex_)), 29724: stats_(instrumented_mutex->stats_), 29724: clock_(instrumented_mutex->clock_), 29724: stats_code_(instrumented_mutex->stats_code_) {} 29724: 29724: void Wait(); 29724: 29724: bool TimedWait(uint64_t abs_time_us); 29724: 29724: void Signal() { cond_.Signal(); } 29724: 29724: void SignalAll() { cond_.SignalAll(); } 29724: 29724: private: 29724: void WaitInternal(); 29724: bool TimedWaitInternal(uint64_t abs_time_us); 29724: port::CondVar cond_; 29724: Statistics* stats_; 29724: SystemClock* clock_; 29724: int stats_code_; 29724: }; 29724: 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/replayer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class TraceRecord; 29724: class TraceRecordResult; 29724: 29724: struct ReplayOptions { 29724: 29724: 29724: uint32_t num_threads; 29724: 29724: 29724: 29724: 29724: 29724: 29724: double fast_forward; 29724: 29724: ReplayOptions() : num_threads(1), fast_forward(1.0) {} 29724: 29724: ReplayOptions(uint32_t num_of_threads, double fast_forward_ratio) 29724: : num_threads(num_of_threads), fast_forward(fast_forward_ratio) {} 29724: }; 29724: 29724: 29724: 29724: 29724: class Replayer { 29724: public: 29724: virtual ~Replayer() = default; 29724: 29724: 29724: 29724: virtual Status Prepare() = 0; 29724: 29724: 29724: virtual uint64_t GetHeaderTimestamp() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Next(std::unique_ptr* record) = 0; 29724: # 71 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/replayer.h" 29724: virtual Status Execute(const std::unique_ptr& record, 29724: std::unique_ptr* result) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status Replay( 29724: const ReplayOptions& options, 29724: const std::function&&)>& 29724: result_callback) = 0; 29724: }; 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: class ColumnFamilyHandle; 29724: class ColumnFamilyData; 29724: class DB; 29724: class DBImpl; 29724: class Env; 29724: class Slice; 29724: class SystemClock; 29724: class TraceReader; 29724: class TraceWriter; 29724: class WriteBatch; 29724: 29724: struct ReadOptions; 29724: struct TraceOptions; 29724: struct WriteOptions; 29724: 29724: extern const std::string kTraceMagic; 29724: const unsigned int kTraceTimestampSize = 8; 29724: const unsigned int kTraceTypeSize = 1; 29724: const unsigned int kTracePayloadLengthSize = 4; 29724: const unsigned int kTraceMetadataSize = 29724: kTraceTimestampSize + kTraceTypeSize + kTracePayloadLengthSize; 29724: 29724: static const int kTraceFileMajorVersion = 0; 29724: static const int kTraceFileMinorVersion = 2; 29724: 29724: 29724: struct Trace { 29724: uint64_t ts; 29724: TraceType type; 29724: 29724: 29724: 29724: 29724: uint64_t payload_map = 0; 29724: 29724: 29724: std::string payload; 29724: 29724: void reset() { 29724: ts = 0; 29724: type = kTraceMax; 29724: payload_map = 0; 29724: payload.clear(); 29724: } 29724: }; 29724: 29724: enum TracePayloadType : char { 29724: 29724: 29724: kEmptyPayload = 0, 29724: kWriteBatchData = 1, 29724: kGetCFID = 2, 29724: kGetKey = 3, 29724: kIterCFID = 4, 29724: kIterKey = 5, 29724: kIterLowerBound = 6, 29724: kIterUpperBound = 7, 29724: kMultiGetSize = 8, 29724: kMultiGetCFIDs = 9, 29724: kMultiGetKeys = 10, 29724: }; 29724: 29724: class TracerHelper { 29724: public: 29724: 29724: static Status ParseVersionStr(std::string& v_string, int* v_num); 29724: 29724: 29724: static Status ParseTraceHeader(const Trace& header, int* trace_version, 29724: int* db_version); 29724: 29724: 29724: static void EncodeTrace(const Trace& trace, std::string* encoded_trace); 29724: 29724: 29724: static Status DecodeTrace(const std::string& encoded_trace, Trace* trace); 29724: 29724: 29724: static Status DecodeHeader(const std::string& encoded_trace, Trace* header); 29724: 29724: 29724: static bool SetPayloadMap(uint64_t& payload_map, 29724: const TracePayloadType payload_type); 29724: 29724: 29724: 29724: 29724: 29724: static Status DecodeTraceRecord(Trace* trace, int trace_file_version, 29724: std::unique_ptr* record); 29724: }; 29724: 29724: 29724: 29724: 29724: class Tracer { 29724: public: 29724: Tracer(SystemClock* clock, const TraceOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: ~Tracer(); 29724: 29724: 29724: Status Write(WriteBatch* write_batch); 29724: 29724: 29724: Status Get(ColumnFamilyHandle* cfname, const Slice& key); 29724: 29724: 29724: Status IteratorSeek(const uint32_t& cf_id, const Slice& key, 29724: const Slice& lower_bound, const Slice upper_bound); 29724: Status IteratorSeekForPrev(const uint32_t& cf_id, const Slice& key, 29724: const Slice& lower_bound, const Slice upper_bound); 29724: 29724: 29724: 29724: Status MultiGet(const size_t num_keys, ColumnFamilyHandle** column_families, 29724: const Slice* keys); 29724: 29724: Status MultiGet(const size_t num_keys, ColumnFamilyHandle* column_family, 29724: const Slice* keys); 29724: 29724: Status MultiGet(const std::vector& column_family, 29724: const std::vector& keys); 29724: 29724: 29724: 29724: bool IsTraceFileOverMax(); 29724: 29724: 29724: 29724: bool IsWriteOrderPreserved() { return trace_options_.preserve_write_order; } 29724: 29724: 29724: Status Close(); 29724: 29724: private: 29724: 29724: 29724: 29724: Status WriteHeader(); 29724: 29724: 29724: Status WriteFooter(); 29724: 29724: 29724: 29724: Status WriteTrace(const Trace& trace); 29724: 29724: 29724: 29724: bool ShouldSkipTrace(const TraceType& type); 29724: 29724: SystemClock* clock_; 29724: TraceOptions trace_options_; 29724: std::unique_ptr trace_writer_; 29724: uint64_t trace_request_count_; 29724: Status trace_write_status_; 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29724: 29724: namespace rocksdb { 29724: class SystemClock; 29724: class TraceReader; 29724: class TraceWriter; 29724: # 32 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 29724: enum IOTraceOp : char { 29724: 29724: 29724: kIOFileSize = 0, 29724: kIOLen = 1, 29724: kIOOffset = 2, 29724: }; 29724: 29724: struct IOTraceRecord { 29724: 29724: uint64_t access_timestamp = 0; 29724: TraceType trace_type = TraceType::kTraceMax; 29724: 29724: 29724: 29724: uint64_t io_op_data = 0; 29724: std::string file_operation; 29724: uint64_t latency = 0; 29724: std::string io_status; 29724: 29724: std::string file_name; 29724: 29724: 29724: uint64_t len = 0; 29724: uint64_t offset = 0; 29724: uint64_t file_size = 0; 29724: 29724: 29724: uint64_t trace_data = 0; 29724: std::string request_id; 29724: 29724: IOTraceRecord() {} 29724: 29724: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 29724: const uint64_t& _io_op_data, const std::string& _file_operation, 29724: const uint64_t& _latency, const std::string& _io_status, 29724: const std::string& _file_name, const uint64_t& _file_size = 0) 29724: : access_timestamp(_access_timestamp), 29724: trace_type(_trace_type), 29724: io_op_data(_io_op_data), 29724: file_operation(_file_operation), 29724: latency(_latency), 29724: io_status(_io_status), 29724: file_name(_file_name), 29724: file_size(_file_size) {} 29724: 29724: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 29724: const uint64_t& _io_op_data, const std::string& _file_operation, 29724: const uint64_t& _latency, const std::string& _io_status, 29724: const std::string& _file_name, const uint64_t& _len, 29724: const uint64_t& _offset) 29724: : access_timestamp(_access_timestamp), 29724: trace_type(_trace_type), 29724: io_op_data(_io_op_data), 29724: file_operation(_file_operation), 29724: latency(_latency), 29724: io_status(_io_status), 29724: file_name(_file_name), 29724: len(_len), 29724: offset(_offset) {} 29724: }; 29724: 29724: struct IOTraceHeader { 29724: uint64_t start_time; 29724: uint32_t rocksdb_major_version; 29724: uint32_t rocksdb_minor_version; 29724: }; 29724: 29724: 29724: 29724: class IOTraceWriter { 29724: public: 29724: IOTraceWriter(SystemClock* clock, const TraceOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: ~IOTraceWriter() = default; 29724: 29724: IOTraceWriter(const IOTraceWriter&) = delete; 29724: IOTraceWriter& operator=(const IOTraceWriter&) = delete; 29724: IOTraceWriter(IOTraceWriter&&) = delete; 29724: IOTraceWriter& operator=(IOTraceWriter&&) = delete; 29724: 29724: Status WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 29724: 29724: 29724: 29724: Status WriteHeader(); 29724: 29724: private: 29724: SystemClock* clock_; 29724: TraceOptions trace_options_; 29724: std::unique_ptr trace_writer_; 29724: }; 29724: 29724: 29724: class IOTraceReader { 29724: public: 29724: explicit IOTraceReader(std::unique_ptr&& reader); 29724: ~IOTraceReader() = default; 29724: 29724: IOTraceReader(const IOTraceReader&) = delete; 29724: IOTraceReader& operator=(const IOTraceReader&) = delete; 29724: IOTraceReader(IOTraceReader&&) = delete; 29724: IOTraceReader& operator=(IOTraceReader&&) = delete; 29724: 29724: Status ReadHeader(IOTraceHeader* header); 29724: 29724: Status ReadIOOp(IOTraceRecord* record); 29724: 29724: private: 29724: std::unique_ptr trace_reader_; 29724: }; 29724: 29724: 29724: 29724: class IOTracer { 29724: public: 29724: IOTracer(); 29724: ~IOTracer(); 29724: 29724: IOTracer(const IOTracer&) = delete; 29724: IOTracer& operator=(const IOTracer&) = delete; 29724: IOTracer(IOTracer&&) = delete; 29724: IOTracer& operator=(IOTracer&&) = delete; 29724: # 163 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 29724: Status 29724: StartIOTrace(SystemClock* clock, const TraceOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: 29724: 29724: void EndIOTrace(); 29724: 29724: bool is_tracing_enabled() const { return tracing_enabled; } 29724: 29724: void WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 29724: 29724: private: 29724: TraceOptions trace_options_; 29724: 29724: InstrumentedMutex trace_writer_mutex_; 29724: std::atomic writer_; 29724: 29724: 29724: 29724: bool tracing_enabled; 29724: }; 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FileSystemTracingWrapper : public FileSystemWrapper { 29724: public: 29724: FileSystemTracingWrapper(const std::shared_ptr& t, 29724: const std::shared_ptr& io_tracer) 29724: : FileSystemWrapper(t), 29724: io_tracer_(io_tracer), 29724: clock_(SystemClock::Default().get()) {} 29724: 29724: ~FileSystemTracingWrapper() override {} 29724: 29724: static const char* kClassName() { return "FileSystemTracing"; } 29724: const char* Name() const override { return kClassName(); } 29724: 29724: IOStatus NewSequentialFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewRandomAccessFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus ReopenWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewRandomRWFile(const std::string& fname, const FileOptions& options, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 29724: std::vector* r, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus DeleteFile(const std::string& fname, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus CreateDir(const std::string& dirname, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus CreateDirIfMissing(const std::string& dirname, 29724: const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus DeleteDir(const std::string& dirname, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus GetFileSize(const std::string& fname, const IOOptions& options, 29724: uint64_t* file_size, IODebugContext* dbg) override; 29724: 29724: IOStatus Truncate(const std::string& fname, size_t size, 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: SystemClock* clock_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FileSystemPtr { 29724: public: 29724: FileSystemPtr(std::shared_ptr fs, 29724: const std::shared_ptr& io_tracer) 29724: : fs_(fs), io_tracer_(io_tracer) { 29724: fs_tracer_ = std::make_shared(fs_, io_tracer_); 29724: } 29724: 29724: std::shared_ptr operator->() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return fs_tracer_; 29724: } else { 29724: return fs_; 29724: } 29724: } 29724: 29724: 29724: FileSystem* get() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return fs_tracer_.get(); 29724: } else { 29724: return fs_.get(); 29724: } 29724: } 29724: 29724: private: 29724: std::shared_ptr fs_; 29724: std::shared_ptr io_tracer_; 29724: std::shared_ptr fs_tracer_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSSequentialFileTracingWrapper : public FSSequentialFileOwnerWrapper { 29724: public: 29724: FSSequentialFileTracingWrapper(std::unique_ptr&& t, 29724: std::shared_ptr io_tracer, 29724: const std::string& file_name) 29724: : FSSequentialFileOwnerWrapper(std::move(t)), 29724: io_tracer_(io_tracer), 29724: clock_(SystemClock::Default().get()), 29724: file_name_(file_name) {} 29724: 29724: ~FSSequentialFileTracingWrapper() override {} 29724: 29724: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29724: char* scratch, IODebugContext* dbg) override; 29724: 29724: IOStatus InvalidateCache(size_t offset, size_t length) override; 29724: 29724: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) override; 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: SystemClock* clock_; 29724: std::string file_name_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSSequentialFilePtr { 29724: public: 29724: FSSequentialFilePtr() = delete; 29724: FSSequentialFilePtr(std::unique_ptr&& fs, 29724: const std::shared_ptr& io_tracer, 29724: const std::string& file_name) 29724: : io_tracer_(io_tracer), 29724: fs_tracer_(std::move(fs), io_tracer_, 29724: file_name.substr(file_name.find_last_of("/\\") + 29724: 1) ) {} 29724: 29724: FSSequentialFile* operator->() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: FSSequentialFile* get() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: FSSequentialFileTracingWrapper fs_tracer_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSRandomAccessFileTracingWrapper : public FSRandomAccessFileOwnerWrapper { 29724: public: 29724: FSRandomAccessFileTracingWrapper(std::unique_ptr&& t, 29724: std::shared_ptr io_tracer, 29724: const std::string& file_name) 29724: : FSRandomAccessFileOwnerWrapper(std::move(t)), 29724: io_tracer_(io_tracer), 29724: clock_(SystemClock::Default().get()), 29724: file_name_(file_name) {} 29724: 29724: ~FSRandomAccessFileTracingWrapper() override {} 29724: 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override; 29724: 29724: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus InvalidateCache(size_t offset, size_t length) override; 29724: 29724: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29724: std::function cb, 29724: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29724: IODebugContext* dbg) override; 29724: 29724: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: SystemClock* clock_; 29724: 29724: std::string file_name_; 29724: 29724: struct ReadAsyncCallbackInfo { 29724: uint64_t start_time_; 29724: std::function cb_; 29724: void* cb_arg_; 29724: std::string file_op_; 29724: }; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSRandomAccessFilePtr { 29724: public: 29724: FSRandomAccessFilePtr(std::unique_ptr&& fs, 29724: const std::shared_ptr& io_tracer, 29724: const std::string& file_name) 29724: : io_tracer_(io_tracer), 29724: fs_tracer_(std::move(fs), io_tracer_, 29724: file_name.substr(file_name.find_last_of("/\\") + 29724: 1) ) {} 29724: 29724: FSRandomAccessFile* operator->() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: FSRandomAccessFile* get() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: FSRandomAccessFileTracingWrapper fs_tracer_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSWritableFileTracingWrapper : public FSWritableFileOwnerWrapper { 29724: public: 29724: FSWritableFileTracingWrapper(std::unique_ptr&& t, 29724: std::shared_ptr io_tracer, 29724: const std::string& file_name) 29724: : FSWritableFileOwnerWrapper(std::move(t)), 29724: io_tracer_(io_tracer), 29724: clock_(SystemClock::Default().get()), 29724: file_name_(file_name) {} 29724: 29724: ~FSWritableFileTracingWrapper() override {} 29724: 29724: IOStatus Append(const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: IOStatus Append(const Slice& data, const IOOptions& options, 29724: const DataVerificationInfo& , 29724: IODebugContext* dbg) override { 29724: return Append(data, options, dbg); 29724: } 29724: 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: const DataVerificationInfo& , 29724: IODebugContext* dbg) override { 29724: return PositionedAppend(data, offset, options, dbg); 29724: } 29724: 29724: IOStatus Truncate(uint64_t size, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus InvalidateCache(size_t offset, size_t length) override; 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: SystemClock* clock_; 29724: 29724: std::string file_name_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSWritableFilePtr { 29724: public: 29724: FSWritableFilePtr(std::unique_ptr&& fs, 29724: const std::shared_ptr& io_tracer, 29724: const std::string& file_name) 29724: : io_tracer_(io_tracer) { 29724: fs_tracer_.reset(new FSWritableFileTracingWrapper( 29724: std::move(fs), io_tracer_, 29724: file_name.substr(file_name.find_last_of("/\\") + 29724: 1) )); 29724: } 29724: 29724: FSWritableFile* operator->() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return fs_tracer_.get(); 29724: } else { 29724: return fs_tracer_->target(); 29724: } 29724: } 29724: 29724: FSWritableFile* get() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return fs_tracer_.get(); 29724: } else if (fs_tracer_) { 29724: return fs_tracer_->target(); 29724: } else { 29724: return nullptr; 29724: } 29724: } 29724: 29724: void reset() { 29724: fs_tracer_.reset(); 29724: io_tracer_ = nullptr; 29724: } 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: std::unique_ptr fs_tracer_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSRandomRWFileTracingWrapper : public FSRandomRWFileOwnerWrapper { 29724: public: 29724: FSRandomRWFileTracingWrapper(std::unique_ptr&& t, 29724: std::shared_ptr io_tracer, 29724: const std::string& file_name) 29724: : FSRandomRWFileOwnerWrapper(std::move(t)), 29724: io_tracer_(io_tracer), 29724: clock_(SystemClock::Default().get()), 29724: file_name_(file_name) {} 29724: 29724: ~FSRandomRWFileTracingWrapper() override {} 29724: 29724: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override; 29724: 29724: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: SystemClock* clock_; 29724: 29724: std::string file_name_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class FSRandomRWFilePtr { 29724: public: 29724: FSRandomRWFilePtr(std::unique_ptr&& fs, 29724: std::shared_ptr io_tracer, 29724: const std::string& file_name) 29724: : io_tracer_(io_tracer), 29724: fs_tracer_(std::move(fs), io_tracer_, 29724: file_name.substr(file_name.find_last_of("/\\") + 29724: 1) ) {} 29724: 29724: FSRandomRWFile* operator->() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: FSRandomRWFile* get() const { 29724: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29724: return const_cast(&fs_tracer_); 29724: } else { 29724: return fs_tracer_.target(); 29724: } 29724: } 29724: 29724: private: 29724: std::shared_ptr io_tracer_; 29724: FSRandomRWFileTracingWrapper fs_tracer_; 29724: }; 29724: 29724: } 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: class RateLimiter { 29724: public: 29724: enum class OpType { 29724: kRead, 29724: kWrite, 29724: }; 29724: 29724: enum class Mode { 29724: kReadsOnly = 0, 29724: kWritesOnly = 1, 29724: kAllIo = 2, 29724: }; 29724: 29724: 29724: explicit RateLimiter(Mode mode = Mode::kWritesOnly) : mode_(mode) {} 29724: 29724: virtual ~RateLimiter() {} 29724: 29724: 29724: 29724: virtual void SetBytesPerSecond(int64_t bytes_per_second) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status SetSingleBurstBytes(int64_t ) { 29724: return Status::NotSupported(); 29724: } 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: virtual void Request(const int64_t , const Env::IOPriority ) { 29724: 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: (static_cast ( 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: false 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: "false" 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: ; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 29724: Statistics* ) { 29724: 29724: 29724: Request(bytes, pri); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 29724: Statistics* stats, OpType op_type) { 29724: if (IsRateLimited(op_type)) { 29724: Request(bytes, pri, stats); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual size_t RequestToken(size_t bytes, size_t alignment, 29724: Env::IOPriority io_priority, Statistics* stats, 29724: RateLimiter::OpType op_type); 29724: 29724: 29724: virtual int64_t GetSingleBurstBytes() const = 0; 29724: 29724: 29724: virtual int64_t GetTotalBytesThrough( 29724: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 29724: 29724: 29724: virtual int64_t GetTotalRequests( 29724: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual Status GetTotalPendingRequests( 29724: int64_t* total_pending_requests, 29724: const Env::IOPriority pri = Env::IO_TOTAL) const { 29724: 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: (static_cast ( 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: total_pending_requests != nullptr 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: "total_pending_requests != nullptr" 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: ; 29724: (void)total_pending_requests; 29724: (void)pri; 29724: return Status::NotSupported(); 29724: } 29724: 29724: virtual int64_t GetBytesPerSecond() const = 0; 29724: 29724: virtual bool IsRateLimited(OpType op_type) { 29724: if ((mode_ == RateLimiter::Mode::kWritesOnly && 29724: op_type == RateLimiter::OpType::kRead) || 29724: (mode_ == RateLimiter::Mode::kReadsOnly && 29724: op_type == RateLimiter::OpType::kWrite)) { 29724: return false; 29724: } 29724: return true; 29724: } 29724: 29724: protected: 29724: Mode GetMode() { return mode_; } 29724: 29724: private: 29724: const Mode mode_; 29724: }; 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29724: RateLimiter* NewGenericRateLimiter( 29724: int64_t rate_bytes_per_sec, int64_t refill_period_us = 100 * 1000, 29724: int32_t fairness = 10, 29724: RateLimiter::Mode mode = RateLimiter::Mode::kWritesOnly, 29724: bool auto_tuned = false, int64_t single_burst_bytes = 0); 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 2 29724: 29724: 29724: 29724: namespace rocksdb { 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: inline size_t TruncateToPageBoundary(size_t page_size, size_t s) { 29724: s -= (s & (page_size - 1)); 29724: 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: (s % page_size) == 0 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "(s % page_size) == 0" 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: return s; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: inline size_t Roundup(size_t x, size_t y) { return ((x + y - 1) / y) * y; } 29724: 29724: 29724: 29724: 29724: 29724: inline size_t Rounddown(size_t x, size_t y) { return (x / y) * y; } 29724: # 57 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: class AlignedBuffer { 29724: size_t alignment_; 29724: FSAllocationPtr buf_; 29724: size_t capacity_; 29724: size_t cursize_; 29724: char* bufstart_; 29724: 29724: public: 29724: AlignedBuffer() 29724: : alignment_(), capacity_(0), cursize_(0), bufstart_(nullptr) {} 29724: 29724: AlignedBuffer(AlignedBuffer&& o) noexcept { *this = std::move(o); } 29724: 29724: AlignedBuffer& operator=(AlignedBuffer&& o) noexcept { 29724: alignment_ = std::move(o.alignment_); 29724: buf_ = std::move(o.buf_); 29724: capacity_ = std::move(o.capacity_); 29724: cursize_ = std::move(o.cursize_); 29724: bufstart_ = std::move(o.bufstart_); 29724: return *this; 29724: } 29724: 29724: AlignedBuffer(const AlignedBuffer&) = delete; 29724: 29724: AlignedBuffer& operator=(const AlignedBuffer&) = delete; 29724: 29724: static bool isAligned(const void* ptr, size_t alignment) { 29724: return reinterpret_cast(ptr) % alignment == 0; 29724: } 29724: 29724: static bool isAligned(size_t n, size_t alignment) { 29724: return n % alignment == 0; 29724: } 29724: 29724: size_t Alignment() const { return alignment_; } 29724: 29724: size_t Capacity() const { return capacity_; } 29724: 29724: size_t CurrentSize() const { return cursize_; } 29724: 29724: const char* BufferStart() const { return bufstart_; } 29724: 29724: char* BufferStart() { return bufstart_; } 29724: 29724: void Clear() { cursize_ = 0; } 29724: 29724: FSAllocationPtr Release() { 29724: cursize_ = 0; 29724: capacity_ = 0; 29724: bufstart_ = nullptr; 29724: return std::move(buf_); 29724: } 29724: 29724: void Alignment(size_t alignment) { 29724: 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: alignment > 0 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "alignment > 0" 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: (alignment & (alignment - 1)) == 0 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "(alignment & (alignment - 1)) == 0" 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: alignment_ = alignment; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: void SetBuffer(Slice& result, FSAllocationPtr new_buf) { 29724: alignment_ = 1; 29724: capacity_ = result.size(); 29724: cursize_ = result.size(); 29724: buf_ = std::move(new_buf); 29724: 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: buf_.get() != nullptr 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "buf_.get() != nullptr" 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: 29724: 29724: bufstart_ = const_cast(result.data()); 29724: } 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: void AllocateNewBuffer(size_t requested_capacity, bool copy_data = false, 29724: uint64_t copy_offset = 0, size_t copy_len = 0) { 29724: 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: alignment_ > 0 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "alignment_ > 0" 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: (alignment_ & (alignment_ - 1)) == 0 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "(alignment_ & (alignment_ - 1)) == 0" 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: 29724: copy_len = copy_len > 0 ? copy_len : cursize_; 29724: if (copy_data && requested_capacity < copy_len) { 29724: 29724: 29724: return; 29724: } 29724: 29724: size_t new_capacity = Roundup(requested_capacity, alignment_); 29724: char* new_buf = new char[new_capacity + alignment_]; 29724: char* new_bufstart = reinterpret_cast( 29724: (reinterpret_cast(new_buf) + (alignment_ - 1)) & 29724: ~static_cast(alignment_ - 1)); 29724: 29724: if (copy_data) { 29724: 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_ 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_" 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: memcpy(new_bufstart, bufstart_ + copy_offset, copy_len); 29724: cursize_ = copy_len; 29724: } else { 29724: cursize_ = 0; 29724: } 29724: 29724: bufstart_ = new_bufstart; 29724: capacity_ = new_capacity; 29724: 29724: 29724: buf_ = std::unique_ptr>( 29724: static_cast(new_buf), 29724: [](void* p) { delete[] static_cast(p); }); 29724: } 29724: # 189 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: size_t Append(const char* src, size_t append_size) { 29724: size_t buffer_remaining = capacity_ - cursize_; 29724: size_t to_copy = std::min(append_size, buffer_remaining); 29724: 29724: if (to_copy > 0) { 29724: memcpy(bufstart_ + cursize_, src, to_copy); 29724: cursize_ += to_copy; 29724: } 29724: return to_copy; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t Read(char* dest, size_t offset, size_t read_size) const { 29724: 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: offset < cursize_ 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "offset < cursize_" 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: 29724: size_t to_read = 0; 29724: if (offset < cursize_) { 29724: to_read = std::min(cursize_ - offset, read_size); 29724: } 29724: if (to_read > 0) { 29724: memcpy(dest, bufstart_ + offset, to_read); 29724: } 29724: return to_read; 29724: } 29724: 29724: 29724: void PadToAlignmentWith(int padding) { 29724: size_t total_size = Roundup(cursize_, alignment_); 29724: size_t pad_size = total_size - cursize_; 29724: 29724: if (pad_size > 0) { 29724: 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: (pad_size + cursize_) <= capacity_ 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "(pad_size + cursize_) <= capacity_" 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: memset(bufstart_ + cursize_, padding, pad_size); 29724: cursize_ += pad_size; 29724: } 29724: } 29724: 29724: void PadWith(size_t pad_size, int padding) { 29724: 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: (static_cast ( 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: (pad_size + cursize_) <= capacity_ 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: "(pad_size + cursize_) <= capacity_" 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29724: ; 29724: memset(bufstart_ + cursize_, padding, pad_size); 29724: cursize_ += pad_size; 29724: } 29724: 29724: 29724: void RefitTail(size_t tail_offset, size_t tail_size) { 29724: if (tail_size > 0) { 29724: memmove(bufstart_, bufstart_ + tail_offset, tail_size); 29724: } 29724: cursize_ = tail_size; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: char* Destination() { return bufstart_ + cursize_; } 29724: 29724: void Size(size_t cursize) { cursize_ = cursize; } 29724: }; 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29724: 29724: namespace rocksdb { 29724: class Statistics; 29724: class HistogramImpl; 29724: class SystemClock; 29724: 29724: using AlignedBuf = FSAllocationPtr; 29724: 29724: 29724: FSReadRequest Align(const FSReadRequest& r, size_t alignment); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool TryMerge(FSReadRequest* dest, const FSReadRequest& src); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class RandomAccessFileReader { 29724: private: 29724: void NotifyOnFileReadFinish( 29724: uint64_t offset, size_t length, 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const Status& status) const { 29724: FileOperationInfo info(FileOperationType::kRead, file_name_, start_ts, 29724: finish_ts, status, file_temperature_); 29724: info.offset = offset; 29724: info.length = length; 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileReadFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: 29724: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 29724: const std::string& file_path, size_t length, 29724: uint64_t offset) const { 29724: if (listeners_.empty()) { 29724: return; 29724: } 29724: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnIOError(io_error_info); 29724: } 29724: io_status.PermitUncheckedError(); 29724: } 29724: 29724: 29724: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 29724: 29724: FSRandomAccessFilePtr file_; 29724: std::string file_name_; 29724: SystemClock* clock_; 29724: Statistics* stats_; 29724: uint32_t hist_type_; 29724: HistogramImpl* file_read_hist_; 29724: RateLimiter* rate_limiter_; 29724: std::vector> listeners_; 29724: const Temperature file_temperature_; 29724: const bool is_last_level_; 29724: 29724: struct ReadAsyncInfo { 29724: ReadAsyncInfo(std::function cb, void* cb_arg, 29724: uint64_t start_time) 29724: : cb_(cb), 29724: cb_arg_(cb_arg), 29724: start_time_(start_time), 29724: user_scratch_(nullptr), 29724: user_aligned_buf_(nullptr), 29724: user_offset_(0), 29724: user_len_(0), 29724: is_aligned_(false) {} 29724: 29724: std::function cb_; 29724: void* cb_arg_; 29724: uint64_t start_time_; 29724: FileOperationInfo::StartTimePoint fs_start_ts_; 29724: 29724: char* user_scratch_; 29724: AlignedBuf* user_aligned_buf_; 29724: uint64_t user_offset_; 29724: size_t user_len_; 29724: Slice user_result_; 29724: 29724: AlignedBuffer buf_; 29724: bool is_aligned_; 29724: }; 29724: 29724: public: 29724: explicit RandomAccessFileReader( 29724: std::unique_ptr&& raf, const std::string& _file_name, 29724: SystemClock* clock = nullptr, 29724: const std::shared_ptr& io_tracer = nullptr, 29724: Statistics* stats = nullptr, 29724: uint32_t hist_type = Histograms::HISTOGRAM_ENUM_MAX, 29724: HistogramImpl* file_read_hist = nullptr, 29724: RateLimiter* rate_limiter = nullptr, 29724: const std::vector>& listeners = {}, 29724: Temperature file_temperature = Temperature::kUnknown, 29724: bool is_last_level = false) 29724: : file_(std::move(raf), io_tracer, _file_name), 29724: file_name_(std::move(_file_name)), 29724: clock_(clock), 29724: stats_(stats), 29724: hist_type_(hist_type), 29724: file_read_hist_(file_read_hist), 29724: rate_limiter_(rate_limiter), 29724: listeners_(), 29724: file_temperature_(file_temperature), 29724: is_last_level_(is_last_level) { 29724: std::for_each(listeners.begin(), listeners.end(), 29724: [this](const std::shared_ptr& e) { 29724: if (e->ShouldBeNotifiedOnFileIO()) { 29724: listeners_.emplace_back(e); 29724: } 29724: }); 29724: } 29724: 29724: static IOStatus Create(const std::shared_ptr& fs, 29724: const std::string& fname, const FileOptions& file_opts, 29724: std::unique_ptr* reader, 29724: /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -MD -MT CMakeFiles/rocksdb.dir/db/merge_helper.cc.o -MF CMakeFiles/rocksdb.dir/db/merge_helper.cc.o.d -o CMakeFiles/rocksdb.dir/db/merge_helper.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/merge_helper.cc IODebugContext* dbg); 29724: RandomAccessFileReader(const RandomAccessFileReader&) = delete; 29724: RandomAccessFileReader& operator=(const RandomAccessFileReader&) = delete; 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 29724: IOStatus Read(const IOOptions& opts, uint64_t offset, size_t n, Slice* result, 29724: char* scratch, AlignedBuf* aligned_buf) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: IOStatus MultiRead(const IOOptions& opts, FSReadRequest* reqs, 29724: size_t num_reqs, AlignedBuf* aligned_buf) const; 29724: 29724: IOStatus Prefetch(const IOOptions& opts, uint64_t offset, size_t n) const { 29724: return file_->Prefetch(offset, n, opts, nullptr); 29724: } 29724: 29724: FSRandomAccessFile* file() { return file_.get(); } 29724: 29724: const std::string& file_name() const { return file_name_; } 29724: 29724: bool use_direct_io() const { return file_->use_direct_io(); } 29724: 29724: IOStatus PrepareIOOptions(const ReadOptions& ro, IOOptions& opts) const; 29724: 29724: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29724: std::function cb, 29724: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29724: AlignedBuf* aligned_buf); 29724: 29724: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 29724: }; 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 1 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/options/db_options.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: class SystemClock; 29724: 29724: struct ImmutableDBOptions { 29724: static const char* kName() { return "ImmutableDBOptions"; } 29724: ImmutableDBOptions(); 29724: explicit ImmutableDBOptions(const DBOptions& options); 29724: 29724: void Dump(Logger* log) const; 29724: 29724: bool create_if_missing; 29724: bool create_missing_column_families; 29724: bool error_if_exists; 29724: bool paranoid_checks; 29724: bool flush_verify_memtable_count; 29724: bool compaction_verify_record_count; 29724: bool track_and_verify_wals_in_manifest; 29724: bool verify_sst_unique_id_in_manifest; 29724: Env* env; 29724: std::shared_ptr rate_limiter; 29724: std::shared_ptr sst_file_manager; 29724: std::shared_ptr info_log; 29724: InfoLogLevel info_log_level; 29724: int max_file_opening_threads; 29724: std::shared_ptr statistics; 29724: bool use_fsync; 29724: std::vector db_paths; 29724: std::string db_log_dir; 29724: 29724: 29724: 29724: std::string wal_dir; 29724: size_t max_log_file_size; 29724: size_t log_file_time_to_roll; 29724: size_t keep_log_file_num; 29724: size_t recycle_log_file_num; 29724: uint64_t max_manifest_file_size; 29724: int table_cache_numshardbits; 29724: uint64_t WAL_ttl_seconds; 29724: uint64_t WAL_size_limit_MB; 29724: uint64_t max_write_batch_group_size_bytes; 29724: size_t manifest_preallocation_size; 29724: bool allow_mmap_reads; 29724: bool allow_mmap_writes; 29724: bool use_direct_reads; 29724: bool use_direct_io_for_flush_and_compaction; 29724: bool allow_fallocate; 29724: bool is_fd_close_on_exec; 29724: bool advise_random_on_open; 29724: size_t db_write_buffer_size; 29724: std::shared_ptr write_buffer_manager; 29724: size_t random_access_max_buffer_size; 29724: bool use_adaptive_mutex; 29724: std::vector> listeners; 29724: bool enable_thread_tracking; 29724: bool enable_pipelined_write; 29724: bool unordered_write; 29724: bool allow_concurrent_memtable_write; 29724: bool enable_write_thread_adaptive_yield; 29724: uint64_t write_thread_max_yield_usec; 29724: uint64_t write_thread_slow_yield_usec; 29724: bool skip_stats_update_on_db_open; 29724: bool skip_checking_sst_file_sizes_on_db_open; 29724: WALRecoveryMode wal_recovery_mode; 29724: bool allow_2pc; 29724: std::shared_ptr row_cache; 29724: WalFilter* wal_filter; 29724: bool fail_if_options_file_error; 29724: bool dump_malloc_stats; 29724: bool avoid_flush_during_recovery; 29724: bool allow_ingest_behind; 29724: bool two_write_queues; 29724: bool manual_wal_flush; 29724: CompressionType wal_compression; 29724: bool background_close_inactive_wals; 29724: bool atomic_flush; 29724: bool avoid_unnecessary_blocking_io; 29724: bool prefix_seek_opt_in_only; 29724: bool persist_stats_to_disk; 29724: bool write_dbid_to_manifest; 29724: bool write_identity_file; 29724: size_t log_readahead_size; 29724: std::shared_ptr file_checksum_gen_factory; 29724: bool best_efforts_recovery; 29724: int max_bgerror_resume_count; 29724: uint64_t bgerror_resume_retry_interval; 29724: bool allow_data_in_errors; 29724: std::string db_host_id; 29724: FileTypeSet checksum_handoff_file_types; 29724: CacheTier lowest_used_cache_tier; 29724: std::shared_ptr compaction_service; 29724: bool enforce_single_del_contracts; 29724: uint64_t follower_refresh_catchup_period_ms; 29724: uint64_t follower_catchup_retry_count; 29724: uint64_t follower_catchup_retry_wait_ms; 29724: Temperature metadata_write_temperature; 29724: Temperature wal_write_temperature; 29724: 29724: 29724: 29724: std::shared_ptr fs; 29724: SystemClock* clock; 29724: Statistics* stats; 29724: Logger* logger; 29724: 29724: 29724: bool IsWalDirSameAsDBPath() const; 29724: bool IsWalDirSameAsDBPath(const std::string& path) const; 29724: const std::string& GetWalDir() const; 29724: const std::string& GetWalDir(const std::string& path) const; 29724: }; 29724: 29724: struct MutableDBOptions { 29724: static const char* kName() { return "MutableDBOptions"; } 29724: MutableDBOptions(); 29724: explicit MutableDBOptions(const DBOptions& options); 29724: 29724: void Dump(Logger* log) const; 29724: 29724: int max_background_jobs; 29724: int max_background_compactions; 29724: uint32_t max_subcompactions; 29724: bool avoid_flush_during_shutdown; 29724: size_t writable_file_max_buffer_size; 29724: uint64_t delayed_write_rate; 29724: uint64_t max_total_wal_size; 29724: uint64_t delete_obsolete_files_period_micros; 29724: unsigned int stats_dump_period_sec; 29724: unsigned int stats_persist_period_sec; 29724: size_t stats_history_buffer_size; 29724: int max_open_files; 29724: uint64_t bytes_per_sync; 29724: uint64_t wal_bytes_per_sync; 29724: bool strict_bytes_per_sync; 29724: size_t compaction_readahead_size; 29724: int max_background_flushes; 29724: std::string daily_offpeak_time_utc; 29724: }; 29724: 29724: Status GetStringFromMutableDBOptions(const ConfigOptions& config_options, 29724: const MutableDBOptions& mutable_opts, 29724: std::string* opt_string); 29724: 29724: Status GetMutableDBOptionsFromStrings( 29724: const MutableDBOptions& base_options, 29724: const std::unordered_map& options_map, 29724: MutableDBOptions* new_options); 29724: 29724: bool MutableDBOptionsAreEqual(const MutableDBOptions& this_options, 29724: const MutableDBOptions& that_options); 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Env; 29724: class Directory; 29724: class SystemClock; 29724: class WritableFileWriter; 29724: 29724: 29724: 29724: 29724: constexpr char kFilePathSeparator = '/'; 29724: 29724: 29724: 29724: 29724: 29724: std::string LogFileName(const std::string& dbname, uint64_t number); 29724: 29724: std::string LogFileName(uint64_t number); 29724: 29724: std::string BlobFileName(uint64_t number); 29724: 29724: std::string BlobFileName(const std::string& bdirname, uint64_t number); 29724: 29724: std::string BlobFileName(const std::string& dbname, const std::string& blob_dir, 29724: uint64_t number); 29724: 29724: std::string ArchivalDirectory(const std::string& dbname); 29724: 29724: 29724: 29724: std::string ArchivedLogFileName(const std::string& dbname, uint64_t num); 29724: 29724: std::string MakeTableFileName(const std::string& name, uint64_t number); 29724: 29724: std::string MakeTableFileName(uint64_t number); 29724: 29724: 29724: 29724: std::string Rocks2LevelTableFileName(const std::string& fullname); 29724: 29724: 29724: 29724: uint64_t TableFileNameToNumber(const std::string& name); 29724: 29724: 29724: 29724: 29724: std::string TableFileName(const std::vector& db_paths, uint64_t number, 29724: uint32_t path_id); 29724: 29724: 29724: const size_t kFormatFileNumberBufSize = 38; 29724: 29724: void FormatFileNumber(uint64_t number, uint32_t path_id, char* out_buf, 29724: size_t out_buf_size); 29724: 29724: 29724: 29724: 29724: std::string DescriptorFileName(const std::string& dbname, uint64_t number); 29724: 29724: std::string DescriptorFileName(uint64_t number); 29724: 29724: extern const std::string kCurrentFileName; 29724: 29724: 29724: 29724: 29724: std::string CurrentFileName(const std::string& dbname); 29724: 29724: 29724: 29724: std::string LockFileName(const std::string& dbname); 29724: 29724: 29724: 29724: std::string TempFileName(const std::string& dbname, uint64_t number); 29724: 29724: 29724: struct InfoLogPrefix { 29724: char buf[260]; 29724: Slice prefix; 29724: 29724: explicit InfoLogPrefix(bool has_log_dir, const std::string& db_absolute_path); 29724: 29724: explicit InfoLogPrefix(); 29724: }; 29724: 29724: 29724: std::string InfoLogFileName(const std::string& dbname, 29724: const std::string& db_path = "", 29724: const std::string& log_dir = ""); 29724: 29724: 29724: std::string OldInfoLogFileName(const std::string& dbname, uint64_t ts, 29724: const std::string& db_path = "", 29724: const std::string& log_dir = ""); 29724: 29724: extern const std::string kOptionsFileNamePrefix; 29724: extern const std::string kTempFileNameSuffix; 29724: 29724: 29724: 29724: std::string OptionsFileName(const std::string& dbname, uint64_t file_num); 29724: std::string OptionsFileName(uint64_t file_num); 29724: 29724: 29724: 29724: std::string TempOptionsFileName(const std::string& dbname, uint64_t file_num); 29724: 29724: 29724: 29724: std::string MetaDatabaseName(const std::string& dbname, uint64_t number); 29724: 29724: 29724: 29724: 29724: std::string IdentityFileName(const std::string& dbname); 29724: 29724: 29724: 29724: 29724: 29724: bool ParseFileName(const std::string& filename, uint64_t* number, 29724: const Slice& info_log_name_prefix, FileType* type, 29724: WalFileType* log_type = nullptr); 29724: 29724: bool ParseFileName(const std::string& filename, uint64_t* number, 29724: FileType* type, WalFileType* log_type = nullptr); 29724: 29724: 29724: 29724: 29724: 29724: IOStatus SetCurrentFile(const WriteOptions& write_options, FileSystem* fs, 29724: const std::string& dbname, uint64_t descriptor_number, 29724: Temperature temp, 29724: FSDirectory* dir_contains_current_file); 29724: 29724: 29724: Status SetIdentityFile(const WriteOptions& write_options, Env* env, 29724: const std::string& dbname, Temperature temp, 29724: const std::string& db_id = {}); 29724: 29724: 29724: IOStatus SyncManifest(const ImmutableDBOptions* db_options, 29724: const WriteOptions& write_options, 29724: WritableFileWriter* file); 29724: 29724: 29724: 29724: 29724: 29724: Status GetInfoLogFiles(const std::shared_ptr& fs, 29724: const std::string& db_log_dir, const std::string& dbname, 29724: std::string* parent_dir, 29724: std::vector* file_names); 29724: 29724: std::string NormalizePath(const std::string& path); 29724: } 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 2 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 29724: namespace rocksdb { 29724: 29724: 29724: IOStatus CopyFile(FileSystem* fs, const std::string& source, 29724: Temperature src_temp_hint, 29724: std::unique_ptr& dest_writer, 29724: uint64_t size, bool use_fsync, 29724: const std::shared_ptr& io_tracer); 29724: IOStatus CopyFile(FileSystem* fs, const std::string& source, 29724: Temperature src_temp_hint, const std::string& destination, 29724: Temperature dst_temp, uint64_t size, bool use_fsync, 29724: const std::shared_ptr& io_tracer); 29724: inline IOStatus CopyFile(const std::shared_ptr& fs, 29724: const std::string& source, Temperature src_temp_hint, 29724: const std::string& destination, Temperature dst_temp, 29724: uint64_t size, bool use_fsync, 29724: const std::shared_ptr& io_tracer) { 29724: return CopyFile(fs.get(), source, src_temp_hint, destination, dst_temp, size, 29724: use_fsync, io_tracer); 29724: } 29724: IOStatus CreateFile(FileSystem* fs, const std::string& destination, 29724: const std::string& contents, bool use_fsync); 29724: 29724: inline IOStatus CreateFile(const std::shared_ptr& fs, 29724: const std::string& destination, 29724: const std::string& contents, bool use_fsync) { 29724: return CreateFile(fs.get(), destination, contents, use_fsync); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status DeleteDBFile(const ImmutableDBOptions* db_options, 29724: const std::string& fname, const std::string& path_to_sync, 29724: const bool force_bg, const bool force_fg); 29724: 29724: 29724: 29724: 29724: 29724: Status DeleteUnaccountedDBFile(const ImmutableDBOptions* db_options, 29724: const std::string& fname, 29724: const std::string& dir_to_sync, 29724: const bool force_bg, const bool force_fg, 29724: std::optional bucket); 29724: 29724: 29724: IOStatus GenerateOneFileChecksum( 29724: FileSystem* fs, const std::string& file_path, 29724: FileChecksumGenFactory* checksum_factory, 29724: const std::string& requested_checksum_func_name, std::string* file_checksum, 29724: std::string* file_checksum_func_name, 29724: size_t verify_checksums_readahead_size, bool allow_mmap_reads, 29724: std::shared_ptr& io_tracer, RateLimiter* rate_limiter, 29724: const ReadOptions& read_options, Statistics* stats, SystemClock* clock); 29724: 29724: inline IOStatus PrepareIOFromReadOptions(const ReadOptions& ro, 29724: SystemClock* clock, IOOptions& opts) { 29724: if (ro.deadline.count()) { 29724: std::chrono::microseconds now = 29724: std::chrono::microseconds(clock->NowMicros()); 29724: 29724: 29724: if (now >= ro.deadline) { 29724: return IOStatus::TimedOut("Deadline exceeded"); 29724: } 29724: opts.timeout = ro.deadline - now; 29724: } 29724: 29724: if (ro.io_timeout.count() && 29724: (!opts.timeout.count() || ro.io_timeout < opts.timeout)) { 29724: opts.timeout = ro.io_timeout; 29724: } 29724: 29724: opts.rate_limiter_priority = ro.rate_limiter_priority; 29724: opts.io_activity = ro.io_activity; 29724: 29724: return IOStatus::OK(); 29724: } 29724: 29724: inline IOStatus PrepareIOFromWriteOptions(const WriteOptions& wo, 29724: IOOptions& opts) { 29724: opts.rate_limiter_priority = wo.rate_limiter_priority; 29724: opts.io_activity = wo.io_activity; 29724: 29724: return IOStatus::OK(); 29724: } 29724: 29724: 29724: 29724: Status DestroyDir(Env* env, const std::string& dir); 29724: 29724: inline bool CheckFSFeatureSupport(FileSystem* fs, FSSupportedOps feat) { 29724: int64_t supported_ops = 0; 29724: fs->SupportedOps(supported_ops); 29724: if (supported_ops & (1ULL << feat)) { 29724: return true; 29724: } 29724: return false; 29724: } 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 2 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: namespace rocksdb { 29724: # 39 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: template 29724: class autovector { 29724: public: 29724: 29724: using value_type = T; 29724: using difference_type = typename std::vector::difference_type; 29724: using size_type = typename std::vector::size_type; 29724: using reference = value_type&; 29724: using const_reference = const value_type&; 29724: using pointer = value_type*; 29724: using const_pointer = const value_type*; 29724: 29724: 29724: template 29724: class iterator_impl { 29724: public: 29724: 29724: using self_type = iterator_impl; 29724: using value_type = TValueType; 29724: using reference = TValueType&; 29724: using pointer = TValueType*; 29724: using difference_type = typename TAutoVector::difference_type; 29724: using iterator_category = std::random_access_iterator_tag; 29724: 29724: iterator_impl(TAutoVector* vect, size_t index) 29724: : vect_(vect), index_(index){} 29724: iterator_impl(const iterator_impl&) = default; 29724: ~iterator_impl() {} 29724: iterator_impl& operator=(const iterator_impl&) = default; 29724: 29724: 29724: 29724: self_type& operator++() { 29724: ++index_; 29724: return *this; 29724: } 29724: 29724: 29724: self_type operator++(int) { 29724: auto old = *this; 29724: ++index_; 29724: return old; 29724: } 29724: 29724: 29724: self_type& operator--() { 29724: --index_; 29724: return *this; 29724: } 29724: 29724: 29724: self_type operator--(int) { 29724: auto old = *this; 29724: --index_; 29724: return old; 29724: } 29724: 29724: self_type operator-(difference_type len) const { 29724: return self_type(vect_, index_ - len); 29724: } 29724: 29724: difference_type operator-(const self_type& other) const { 29724: 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ - other.index_; 29724: } 29724: 29724: self_type operator+(difference_type len) const { 29724: return self_type(vect_, index_ + len); 29724: } 29724: 29724: self_type& operator+=(difference_type len) { 29724: index_ += len; 29724: return *this; 29724: } 29724: 29724: self_type& operator-=(difference_type len) { 29724: index_ -= len; 29724: return *this; 29724: } 29724: 29724: 29724: reference operator*() const { 29724: 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_->size() >= index_ 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_->size() >= index_" 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return (*vect_)[index_]; 29724: } 29724: 29724: pointer operator->() const { 29724: 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_->size() >= index_ 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_->size() >= index_" 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return &(*vect_)[index_]; 29724: } 29724: 29724: reference operator[](difference_type len) const { return *(*this + len); } 29724: 29724: 29724: bool operator==(const self_type& other) const { 29724: 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ == other.index_; 29724: } 29724: 29724: bool operator!=(const self_type& other) const { return !(*this == other); } 29724: 29724: bool operator>(const self_type& other) const { 29724: 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ > other.index_; 29724: } 29724: 29724: bool operator<(const self_type& other) const { 29724: 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ < other.index_; 29724: } 29724: 29724: bool operator>=(const self_type& other) const { 29724: 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ >= other.index_; 29724: } 29724: 29724: bool operator<=(const self_type& other) const { 29724: 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: vect_ == other.vect_ 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "vect_ == other.vect_" 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return index_ <= other.index_; 29724: } 29724: 29724: private: 29724: TAutoVector* vect_ = nullptr; 29724: size_t index_ = 0; 29724: }; 29724: 29724: using iterator = iterator_impl; 29724: using const_iterator = iterator_impl; 29724: using reverse_iterator = std::reverse_iterator; 29724: using const_reverse_iterator = std::reverse_iterator; 29724: 29724: autovector() : values_(reinterpret_cast(buf_)) {} 29724: 29724: autovector(std::initializer_list init_list) 29724: : values_(reinterpret_cast(buf_)) { 29724: for (const T& item : init_list) { 29724: push_back(item); 29724: } 29724: } 29724: 29724: ~autovector() { clear(); } 29724: 29724: 29724: 29724: bool only_in_stack() const { 29724: 29724: return vect_.capacity() == 0; 29724: } 29724: 29724: size_type size() const { return num_stack_items_ + vect_.size(); } 29724: 29724: 29724: 29724: void resize(size_type n) { 29724: if (n > kSize) { 29724: vect_.resize(n - kSize); 29724: while (num_stack_items_ < kSize) { 29724: new ((void*)(&values_[num_stack_items_++])) value_type(); 29724: } 29724: num_stack_items_ = kSize; 29724: } else { 29724: vect_.clear(); 29724: while (num_stack_items_ < n) { 29724: new ((void*)(&values_[num_stack_items_++])) value_type(); 29724: } 29724: while (num_stack_items_ > n) { 29724: values_[--num_stack_items_].~value_type(); 29724: } 29724: } 29724: } 29724: 29724: bool empty() const { return size() == 0; } 29724: 29724: size_type capacity() const { return kSize + vect_.capacity(); } 29724: 29724: void reserve(size_t cap) { 29724: if (cap > kSize) { 29724: vect_.reserve(cap - kSize); 29724: } 29724: 29724: 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: cap <= capacity() 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "cap <= capacity()" 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: } 29724: 29724: const_reference operator[](size_type n) const { 29724: 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: n < size() 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "n < size()" 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: if (n < kSize) { 29724: return values_[n]; 29724: } 29724: return vect_[n - kSize]; 29724: } 29724: 29724: reference operator[](size_type n) { 29724: 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: n < size() 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "n < size()" 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: if (n < kSize) { 29724: return values_[n]; 29724: } 29724: return vect_[n - kSize]; 29724: } 29724: 29724: const_reference at(size_type n) const { 29724: 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: n < size() 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "n < size()" 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return (*this)[n]; 29724: } 29724: 29724: reference at(size_type n) { 29724: 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: n < size() 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "n < size()" 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return (*this)[n]; 29724: } 29724: 29724: reference front() { 29724: 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: !empty() 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "!empty()" 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return *begin(); 29724: } 29724: 29724: const_reference front() const { 29724: 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: !empty() 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "!empty()" 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return *begin(); 29724: } 29724: 29724: reference back() { 29724: 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: !empty() 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "!empty()" 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return *(end() - 1); 29724: } 29724: 29724: const_reference back() const { 29724: 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: !empty() 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "!empty()" 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: return *(end() - 1); 29724: } 29724: 29724: 29724: void push_back(T&& item) { 29724: if (num_stack_items_ < kSize) { 29724: new ((void*)(&values_[num_stack_items_])) value_type(); 29724: values_[num_stack_items_++] = std::move(item); 29724: } else { 29724: vect_.push_back(item); 29724: } 29724: } 29724: 29724: void push_back(const T& item) { 29724: if (num_stack_items_ < kSize) { 29724: new ((void*)(&values_[num_stack_items_])) value_type(); 29724: values_[num_stack_items_++] = item; 29724: } else { 29724: vect_.push_back(item); 29724: } 29724: } 29724: 29724: template 29724: # 298 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: void emplace_back(Args&&... args) { 29724: if (num_stack_items_ < kSize) { 29724: new ((void*)(&values_[num_stack_items_++])) 29724: value_type(std::forward(args)...); 29724: } else { 29724: vect_.emplace_back(std::forward(args)...); 29724: } 29724: } 29724: 29724: 29724: void pop_back() { 29724: 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: (static_cast ( 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: !empty() 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: "!empty()" 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29724: ; 29724: if (!vect_.empty()) { 29724: vect_.pop_back(); 29724: } else { 29724: values_[--num_stack_items_].~value_type(); 29724: } 29724: } 29724: 29724: void clear() { 29724: while (num_stack_items_ > 0) { 29724: values_[--num_stack_items_].~value_type(); 29724: } 29724: vect_.clear(); 29724: } 29724: 29724: 29724: autovector& assign(const autovector& other); 29724: 29724: autovector(const autovector& other) { assign(other); } 29724: 29724: autovector& operator=(const autovector& other) { return assign(other); } 29724: 29724: autovector(autovector&& other) noexcept { *this = std::move(other); } 29724: autovector& operator=(autovector&& other); 29724: 29724: 29724: iterator begin() { return iterator(this, 0); } 29724: 29724: const_iterator begin() const { return const_iterator(this, 0); } 29724: 29724: iterator end() { return iterator(this, this->size()); } 29724: 29724: const_iterator end() const { return const_iterator(this, this->size()); } 29724: 29724: reverse_iterator rbegin() { return reverse_iterator(end()); } 29724: 29724: const_reverse_iterator rbegin() const { 29724: return const_reverse_iterator(end()); 29724: } 29724: 29724: reverse_iterator rend() { return reverse_iterator(begin()); } 29724: 29724: const_reverse_iterator rend() const { 29724: return const_reverse_iterator(begin()); 29724: } 29724: 29724: private: 29724: size_type num_stack_items_ = 0; 29724: alignas(alignof( 29724: value_type)) char buf_[kSize * 29724: sizeof(value_type)]; 29724: pointer values_; 29724: 29724: std::vector vect_; 29724: }; 29724: 29724: template 29724: autovector& autovector::assign( 29724: const autovector& other) { 29724: values_ = reinterpret_cast(buf_); 29724: 29724: vect_.assign(other.vect_.begin(), other.vect_.end()); 29724: 29724: 29724: num_stack_items_ = other.num_stack_items_; 29724: for (size_t i = 0; i < num_stack_items_; ++i) { 29724: new ((void*)(&values_[i])) value_type(); 29724: } 29724: std::copy(other.values_, other.values_ + num_stack_items_, values_); 29724: 29724: return *this; 29724: } 29724: 29724: template 29724: autovector& autovector::operator=( 29724: autovector&& other) { 29724: values_ = reinterpret_cast(buf_); 29724: vect_ = std::move(other.vect_); 29724: size_t n = other.num_stack_items_; 29724: num_stack_items_ = n; 29724: other.num_stack_items_ = 0; 29724: for (size_t i = 0; i < n; ++i) { 29724: new ((void*)(&values_[i])) value_type(); 29724: values_[i] = std::move(other.values_[i]); 29724: } 29724: return *this; 29724: } 29724: 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: struct IOOptions; 29724: class RandomAccessFileReader; 29724: 29724: struct ReadaheadParams { 29724: ReadaheadParams() {} 29724: 29724: 29724: size_t initial_readahead_size = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t max_readahead_size = 0; 29724: 29724: 29724: 29724: bool implicit_auto_readahead = false; 29724: 29724: 29724: uint64_t num_file_reads = 0; 29724: uint64_t num_file_reads_for_auto_readahead = 0; 29724: 29724: 29724: 29724: size_t num_buffers = 1; 29724: }; 29724: 29724: struct BufferInfo { 29724: void ClearBuffer() { 29724: buffer_.Clear(); 29724: initial_end_offset_ = 0; 29724: async_req_len_ = 0; 29724: } 29724: 29724: AlignedBuffer buffer_; 29724: 29724: uint64_t offset_ = 0; 29724: 29724: 29724: 29724: size_t async_req_len_ = 0; 29724: 29724: 29724: 29724: bool async_read_in_progress_ = false; 29724: 29724: 29724: 29724: void* io_handle_ = nullptr; 29724: 29724: IOHandleDeleter del_fn_ = nullptr; 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: uint64_t initial_end_offset_ = 0; 29724: 29724: bool IsDataBlockInBuffer(uint64_t offset, size_t length) { 29724: 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: async_read_in_progress_ == false 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "async_read_in_progress_ == false" 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: return (offset >= offset_ && 29724: offset + length <= offset_ + buffer_.CurrentSize()); 29724: } 29724: 29724: bool IsOffsetInBuffer(uint64_t offset) { 29724: 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: async_read_in_progress_ == false 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "async_read_in_progress_ == false" 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: return (offset >= offset_ && offset < offset_ + buffer_.CurrentSize()); 29724: } 29724: 29724: bool DoesBufferContainData() { 29724: 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: async_read_in_progress_ == false 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "async_read_in_progress_ == false" 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: return buffer_.CurrentSize() > 0; 29724: } 29724: 29724: bool IsBufferOutdated(uint64_t offset) { 29724: return (!async_read_in_progress_ && DoesBufferContainData() && 29724: offset >= offset_ + buffer_.CurrentSize()); 29724: } 29724: 29724: bool IsBufferOutdatedWithAsyncProgress(uint64_t offset) { 29724: return (async_read_in_progress_ && io_handle_ != nullptr && 29724: offset >= offset_ + async_req_len_); 29724: } 29724: 29724: bool IsOffsetInBufferWithAsyncProgress(uint64_t offset) { 29724: return (async_read_in_progress_ && offset >= offset_ && 29724: offset < offset_ + async_req_len_); 29724: } 29724: 29724: size_t CurrentSize() { return buffer_.CurrentSize(); } 29724: }; 29724: 29724: enum class FilePrefetchBufferUsage { 29724: kTableOpenPrefetchTail, 29724: kUserScanPrefetch, 29724: kUnknown, 29724: }; 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: class FilePrefetchBuffer { 29724: public: 29724: # 186 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: FilePrefetchBuffer( 29724: const ReadaheadParams& readahead_params = {}, bool enable = true, 29724: bool track_min_offset = false, FileSystem* fs = nullptr, 29724: SystemClock* clock = nullptr, Statistics* stats = nullptr, 29724: const std::function& cb = nullptr, 29724: FilePrefetchBufferUsage usage = FilePrefetchBufferUsage::kUnknown) 29724: : readahead_size_(readahead_params.initial_readahead_size), 29724: initial_auto_readahead_size_(readahead_params.initial_readahead_size), 29724: max_readahead_size_(readahead_params.max_readahead_size), 29724: min_offset_read_(std::numeric_limits::max()), 29724: enable_(enable), 29724: track_min_offset_(track_min_offset), 29724: implicit_auto_readahead_(readahead_params.implicit_auto_readahead), 29724: prev_offset_(0), 29724: prev_len_(0), 29724: num_file_reads_for_auto_readahead_( 29724: readahead_params.num_file_reads_for_auto_readahead), 29724: num_file_reads_(readahead_params.num_file_reads), 29724: explicit_prefetch_submitted_(false), 29724: fs_(fs), 29724: clock_(clock), 29724: stats_(stats), 29724: usage_(usage), 29724: readaheadsize_cb_(cb), 29724: num_buffers_(readahead_params.num_buffers) { 29724: 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: (num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0) 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "(num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0)" 29724: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: 29724: # 212 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (num_buffers_ > 1 || 29724: (fs_ != nullptr && 29724: CheckFSFeatureSupport(fs_, FSSupportedOps::kFSBuffer))) { 29724: overlap_buf_ = new BufferInfo(); 29724: } 29724: 29724: free_bufs_.resize(num_buffers_); 29724: for (uint32_t i = 0; i < num_buffers_; i++) { 29724: free_bufs_[i] = new BufferInfo(); 29724: } 29724: } 29724: 29724: ~FilePrefetchBuffer() { 29724: 29724: if (fs_ != nullptr) { 29724: std::vector handles; 29724: for (auto& buf : bufs_) { 29724: if (buf->async_read_in_progress_ && buf->io_handle_ != nullptr) { 29724: handles.emplace_back(buf->io_handle_); 29724: } 29724: } 29724: if (!handles.empty()) { 29724: StopWatch sw(clock_, stats_, ASYNC_PREFETCH_ABORT_MICROS); 29724: Status s = fs_->AbortIO(handles); 29724: 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: s.ok() 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "s.ok()" 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: } 29724: 29724: for (auto& buf : bufs_) { 29724: if (buf->io_handle_ != nullptr) { 29724: DestroyAndClearIOHandle(buf); 29724: buf->ClearBuffer(); 29724: } 29724: buf->async_read_in_progress_ = false; 29724: } 29724: } 29724: 29724: 29724: uint64_t bytes_discarded = 0; 29724: 29724: for (auto& buf : bufs_) { 29724: if (buf->DoesBufferContainData()) { 29724: 29724: if (prev_offset_ >= buf->offset_ && 29724: prev_offset_ + prev_len_ < buf->offset_ + buf->CurrentSize()) { 29724: bytes_discarded += 29724: buf->CurrentSize() - (prev_offset_ + prev_len_ - buf->offset_); 29724: } 29724: 29724: else if (prev_offset_ < buf->offset_ && 29724: prev_offset_ + prev_len_ <= buf->offset_) { 29724: bytes_discarded += buf->CurrentSize(); 29724: } 29724: } 29724: } 29724: 29724: RecordInHistogram(stats_, PREFETCHED_BYTES_DISCARDED, bytes_discarded); 29724: 29724: for (auto& buf : bufs_) { 29724: delete buf; 29724: buf = nullptr; 29724: } 29724: 29724: for (auto& buf : free_bufs_) { 29724: delete buf; 29724: buf = nullptr; 29724: } 29724: 29724: if (overlap_buf_ != nullptr) { 29724: delete overlap_buf_; 29724: overlap_buf_ = nullptr; 29724: } 29724: } 29724: 29724: bool Enabled() const { return enable_; } 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: Status Prefetch(const IOOptions& opts, RandomAccessFileReader* reader, 29724: uint64_t offset, size_t n); 29724: # 316 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: Status PrefetchAsync(const IOOptions& opts, RandomAccessFileReader* reader, 29724: uint64_t offset, size_t n, Slice* result); 29724: # 332 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: bool TryReadFromCache(const IOOptions& opts, RandomAccessFileReader* reader, 29724: uint64_t offset, size_t n, Slice* result, Status* s, 29724: bool for_compaction = false); 29724: 29724: 29724: 29724: size_t min_offset_read() const { return min_offset_read_; } 29724: 29724: size_t GetPrefetchOffset() const { return bufs_.front()->offset_; } 29724: 29724: 29724: void UpdateReadPattern(const uint64_t& offset, const size_t& len, 29724: bool decrease_readaheadsize) { 29724: if (decrease_readaheadsize) { 29724: DecreaseReadAheadIfEligible(offset, len); 29724: } 29724: prev_offset_ = offset; 29724: prev_len_ = len; 29724: explicit_prefetch_submitted_ = false; 29724: } 29724: 29724: void GetReadaheadState(ReadaheadFileInfo::ReadaheadInfo* readahead_info) { 29724: readahead_info->readahead_size = readahead_size_; 29724: readahead_info->num_file_reads = num_file_reads_; 29724: } 29724: 29724: void DecreaseReadAheadIfEligible(uint64_t offset, size_t size, 29724: size_t value = 8 * 1024) { 29724: if (bufs_.empty()) { 29724: return; 29724: } 29724: # 374 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: size_t curr_size = bufs_.front()->async_read_in_progress_ 29724: ? bufs_.front()->async_req_len_ 29724: : bufs_.front()->CurrentSize(); 29724: if (implicit_auto_readahead_ && readahead_size_ > 0) { 29724: if ((offset + size > bufs_.front()->offset_ + curr_size) && 29724: IsBlockSequential(offset) && 29724: (num_file_reads_ + 1 > num_file_reads_for_auto_readahead_)) { 29724: readahead_size_ = 29724: std::max(initial_auto_readahead_size_, 29724: (readahead_size_ >= value ? readahead_size_ - value : 0)); 29724: } 29724: } 29724: } 29724: 29724: 29724: void PrefetchAsyncCallback(FSReadRequest& req, void* cb_arg); 29724: 29724: void TEST_GetBufferOffsetandSize( 29724: std::vector>& buffer_info) { 29724: for (size_t i = 0; i < bufs_.size(); i++) { 29724: std::get<0>(buffer_info[i]) = bufs_[i]->offset_; 29724: std::get<1>(buffer_info[i]) = bufs_[i]->async_read_in_progress_ 29724: ? bufs_[i]->async_req_len_ 29724: : bufs_[i]->CurrentSize(); 29724: std::get<2>(buffer_info[i]) = bufs_[i]->async_read_in_progress_; 29724: } 29724: } 29724: 29724: void TEST_GetOverlapBufferOffsetandSize( 29724: std::pair& buffer_info) { 29724: if (overlap_buf_ != nullptr) { 29724: buffer_info.first = overlap_buf_->offset_; 29724: buffer_info.second = overlap_buf_->CurrentSize(); 29724: } 29724: } 29724: 29724: private: 29724: 29724: 29724: 29724: void PrepareBufferForRead(BufferInfo* buf, size_t alignment, uint64_t offset, 29724: size_t roundup_len, bool refit_tail, 29724: bool use_fs_buffer, uint64_t& aligned_useful_len); 29724: 29724: void AbortOutdatedIO(uint64_t offset); 29724: 29724: void AbortAllIOs(); 29724: 29724: void ClearOutdatedData(uint64_t offset, size_t len); 29724: 29724: 29724: void PollIfNeeded(uint64_t offset, size_t len); 29724: 29724: Status PrefetchInternal(const IOOptions& opts, RandomAccessFileReader* reader, 29724: uint64_t offset, size_t length, size_t readahead_size, 29724: bool& copy_to_third_buffer); 29724: 29724: Status Read(BufferInfo* buf, const IOOptions& opts, 29724: RandomAccessFileReader* reader, uint64_t read_len, 29724: uint64_t aligned_useful_len, uint64_t start_offset, 29724: bool use_fs_buffer); 29724: 29724: Status ReadAsync(BufferInfo* buf, const IOOptions& opts, 29724: RandomAccessFileReader* reader, uint64_t read_len, 29724: uint64_t start_offset); 29724: 29724: 29724: void CopyDataToOverlapBuffer(BufferInfo* src, uint64_t& offset, 29724: size_t& length); 29724: 29724: bool IsBlockSequential(const size_t& offset) { 29724: return (prev_len_ == 0 || (prev_offset_ + prev_len_ == offset)); 29724: } 29724: 29724: 29724: void ResetValues() { 29724: num_file_reads_ = 1; 29724: readahead_size_ = initial_auto_readahead_size_; 29724: } 29724: 29724: 29724: bool IsEligibleForPrefetch(uint64_t offset, size_t n) { 29724: 29724: 29724: if (!IsBlockSequential(offset)) { 29724: UpdateReadPattern(offset, n, false ); 29724: ResetValues(); 29724: return false; 29724: } 29724: num_file_reads_++; 29724: 29724: 29724: 29724: 29724: if (explicit_prefetch_submitted_) { 29724: return true; 29724: } 29724: if (num_file_reads_ <= num_file_reads_for_auto_readahead_) { 29724: UpdateReadPattern(offset, n, false ); 29724: return false; 29724: } 29724: return true; 29724: } 29724: 29724: bool IsEligibleForFurtherPrefetching() { 29724: if (free_bufs_.empty()) { 29724: return false; 29724: } 29724: 29724: if (readahead_size_ == 0) { 29724: return false; 29724: } 29724: return true; 29724: } 29724: 29724: 29724: 29724: 29724: bool UseFSBuffer(RandomAccessFileReader* reader) { 29724: return reader->file() != nullptr && !reader->use_direct_io() && 29724: fs_ != nullptr && 29724: CheckFSFeatureSupport(fs_, FSSupportedOps::kFSBuffer) && 29724: num_buffers_ == 1; 29724: } 29724: 29724: 29724: 29724: 29724: size_t GetRequiredBufferAlignment(RandomAccessFileReader* reader) { 29724: if (UseFSBuffer(reader)) { 29724: return 1; 29724: } 29724: return reader->file()->GetRequiredBufferAlignment(); 29724: } 29724: 29724: 29724: IOStatus FSBufferDirectRead(RandomAccessFileReader* reader, BufferInfo* buf, 29724: const IOOptions& opts, uint64_t offset, size_t n, 29724: Slice& result) { 29724: FSReadRequest read_req; 29724: read_req.offset = offset; 29724: read_req.len = n; 29724: read_req.scratch = nullptr; 29724: IOStatus s = reader->MultiRead(opts, &read_req, 1, nullptr); 29724: if (!s.ok()) { 29724: return s; 29724: } 29724: s = read_req.status; 29724: if (!s.ok()) { 29724: return s; 29724: } 29724: buf->buffer_.SetBuffer(read_req.result, std::move(read_req.fs_scratch)); 29724: buf->offset_ = offset; 29724: buf->initial_end_offset_ = offset + read_req.result.size(); 29724: result = read_req.result; 29724: return s; 29724: } 29724: 29724: void DestroyAndClearIOHandle(BufferInfo* buf) { 29724: if (buf->io_handle_ != nullptr && buf->del_fn_ != nullptr) { 29724: buf->del_fn_(buf->io_handle_); 29724: buf->io_handle_ = nullptr; 29724: buf->del_fn_ = nullptr; 29724: } 29724: buf->async_read_in_progress_ = false; 29724: } 29724: 29724: void HandleOverlappingSyncData(uint64_t offset, size_t length, 29724: uint64_t& tmp_offset, size_t& tmp_length, 29724: bool& use_overlap_buffer); 29724: 29724: Status HandleOverlappingAsyncData(const IOOptions& opts, 29724: RandomAccessFileReader* reader, 29724: uint64_t offset, size_t length, 29724: size_t readahead_size, 29724: bool& copy_to_third_buffer, 29724: uint64_t& tmp_offset, size_t& tmp_length); 29724: 29724: bool TryReadFromCacheUntracked(const IOOptions& opts, 29724: RandomAccessFileReader* reader, 29724: uint64_t offset, size_t n, Slice* result, 29724: Status* s, bool for_compaction = false); 29724: 29724: void ReadAheadSizeTuning(BufferInfo* buf, bool read_curr_block, 29724: bool refit_tail, bool use_fs_buffer, 29724: uint64_t prev_buf_end_offset, size_t alignment, 29724: size_t length, size_t readahead_size, 29724: uint64_t& offset, uint64_t& end_offset, 29724: size_t& read_len, uint64_t& aligned_useful_len); 29724: 29724: void UpdateStats(bool found_in_buffer, size_t length_found) { 29724: if (found_in_buffer) { 29724: RecordTick(stats_, PREFETCH_HITS); 29724: } 29724: if (length_found > 0) { 29724: RecordTick(stats_, PREFETCH_BYTES_USEFUL, length_found); 29724: } 29724: } 29724: 29724: void UpdateReadAheadTrimmedStat(size_t initial_length, 29724: size_t updated_length) { 29724: if (initial_length != updated_length) { 29724: RecordTick(stats_, READAHEAD_TRIMMED); 29724: } 29724: } 29724: 29724: Status PrefetchRemBuffers(const IOOptions& opts, 29724: RandomAccessFileReader* reader, 29724: uint64_t end_offset1, size_t alignment, 29724: size_t readahead_size); 29724: 29724: 29724: bool IsBufferQueueEmpty() { return bufs_.empty(); } 29724: 29724: BufferInfo* GetFirstBuffer() { return bufs_.front(); } 29724: 29724: BufferInfo* GetLastBuffer() { return bufs_.back(); } 29724: 29724: size_t NumBuffersAllocated() { return bufs_.size(); } 29724: 29724: void AllocateBuffer() { 29724: 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: (static_cast ( 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: !free_bufs_.empty() 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: "!free_bufs_.empty()" 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29724: ; 29724: BufferInfo* buf = free_bufs_.front(); 29724: free_bufs_.pop_front(); 29724: bufs_.emplace_back(buf); 29724: } 29724: 29724: void AllocateBufferIfEmpty() { 29724: if (bufs_.empty()) { 29724: AllocateBuffer(); 29724: } 29724: } 29724: 29724: void FreeFrontBuffer() { 29724: BufferInfo* buf = bufs_.front(); 29724: buf->ClearBuffer(); 29724: bufs_.pop_front(); 29724: free_bufs_.emplace_back(buf); 29724: } 29724: 29724: void FreeLastBuffer() { 29724: BufferInfo* buf = bufs_.back(); 29724: buf->ClearBuffer(); 29724: bufs_.pop_back(); 29724: free_bufs_.emplace_back(buf); 29724: } 29724: 29724: void FreeAllBuffers() { 29724: while (!bufs_.empty()) { 29724: BufferInfo* buf = bufs_.front(); 29724: buf->ClearBuffer(); 29724: bufs_.pop_front(); 29724: free_bufs_.emplace_back(buf); 29724: } 29724: } 29724: 29724: void FreeEmptyBuffers() { 29724: if (bufs_.empty()) { 29724: return; 29724: } 29724: 29724: std::deque tmp_buf; 29724: while (!bufs_.empty()) { 29724: BufferInfo* buf = bufs_.front(); 29724: bufs_.pop_front(); 29724: if (buf->async_read_in_progress_ || buf->DoesBufferContainData()) { 29724: tmp_buf.emplace_back(buf); 29724: } else { 29724: free_bufs_.emplace_back(buf); 29724: } 29724: } 29724: bufs_ = tmp_buf; 29724: } 29724: 29724: 29724: 29724: std::deque bufs_; 29724: std::deque free_bufs_; 29724: BufferInfo* overlap_buf_ = nullptr; 29724: 29724: size_t readahead_size_; 29724: size_t initial_auto_readahead_size_; 29724: 29724: 29724: size_t max_readahead_size_; 29724: 29724: 29724: size_t min_offset_read_; 29724: 29724: 29724: bool enable_; 29724: 29724: 29724: bool track_min_offset_; 29724: 29724: 29724: 29724: bool implicit_auto_readahead_; 29724: uint64_t prev_offset_; 29724: size_t prev_len_; 29724: 29724: 29724: uint64_t num_file_reads_for_auto_readahead_; 29724: uint64_t num_file_reads_; 29724: 29724: 29724: 29724: 29724: 29724: bool explicit_prefetch_submitted_; 29724: 29724: FileSystem* fs_; 29724: SystemClock* clock_; 29724: Statistics* stats_; 29724: 29724: FilePrefetchBufferUsage usage_; 29724: 29724: std::function readaheadsize_cb_; 29724: 29724: 29724: 29724: size_t num_buffers_; 29724: }; 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_allocator_impl.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: struct CustomDeleter { 29724: CustomDeleter(MemoryAllocator* a = nullptr) : allocator(a) {} 29724: 29724: void operator()(char* ptr) const { 29724: if (allocator) { 29724: allocator->Deallocate(ptr); 29724: } else { 29724: delete[] ptr; 29724: } 29724: } 29724: 29724: MemoryAllocator* allocator; 29724: }; 29724: 29724: using CacheAllocationPtr = std::unique_ptr; 29724: 29724: inline CacheAllocationPtr AllocateBlock(size_t size, 29724: MemoryAllocator* allocator) { 29724: if (allocator) { 29724: auto block = reinterpret_cast(allocator->Allocate(size)); 29724: return CacheAllocationPtr(block, allocator); 29724: } 29724: return CacheAllocationPtr(new char[size]); 29724: } 29724: 29724: inline CacheAllocationPtr AllocateAndCopyBlock(const Slice& data, 29724: MemoryAllocator* allocator) { 29724: CacheAllocationPtr cap = AllocateBlock(data.size(), allocator); 29724: std::copy_n(data.data(), data.size(), cap.get()); 29724: return cap; 29724: } 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/malloc.h" 1 3 4 29724: # 24 "/usr/include/malloc.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 25 "/usr/include/malloc.h" 2 3 4 29724: # 36 "/usr/include/malloc.h" 3 4 29724: 29724: # 36 "/usr/include/malloc.h" 3 4 29724: extern "C" { 29724: 29724: 29724: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29724: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern void *calloc (size_t __nmemb, size_t __size) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void *realloc (void *__ptr, size_t __size) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) 29724: __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: extern void free (void *__ptr) noexcept (true); 29724: 29724: 29724: extern void *memalign (size_t __alignment, size_t __size) 29724: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 29724: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29724: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: 29724: extern void *pvalloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29724: 29724: 29724: 29724: struct mallinfo 29724: { 29724: int arena; 29724: int ordblks; 29724: int smblks; 29724: int hblks; 29724: int hblkhd; 29724: int usmblks; 29724: int fsmblks; 29724: int uordblks; 29724: int fordblks; 29724: int keepcost; 29724: }; 29724: 29724: 29724: 29724: 29724: struct mallinfo2 29724: { 29724: size_t arena; 29724: size_t ordblks; 29724: size_t smblks; 29724: size_t hblks; 29724: size_t hblkhd; 29724: size_t usmblks; 29724: size_t fsmblks; 29724: size_t uordblks; 29724: size_t fordblks; 29724: size_t keepcost; 29724: }; 29724: 29724: 29724: extern struct mallinfo mallinfo (void) noexcept (true) __attribute__ ((__deprecated__)); 29724: 29724: 29724: extern struct mallinfo2 mallinfo2 (void) noexcept (true); 29724: # 144 "/usr/include/malloc.h" 3 4 29724: extern int mallopt (int __param, int __val) noexcept (true); 29724: 29724: 29724: 29724: extern int malloc_trim (size_t __pad) noexcept (true); 29724: 29724: 29724: 29724: extern size_t malloc_usable_size (void *__ptr) noexcept (true); 29724: 29724: 29724: extern void malloc_stats (void) noexcept (true); 29724: 29724: 29724: extern int malloc_info (int __options, FILE *__fp) noexcept (true); 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/block_based/block_type.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/table/block_based/block_type.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: enum class BlockType : uint8_t { 29724: kData, 29724: kFilter, 29724: kFilterPartitionIndex, 29724: kProperties, 29724: kCompressionDictionary, 29724: kRangeDeletion, 29724: kHashIndexPrefixes, 29724: kHashIndexMetadata, 29724: kMetaIndex, 29724: kIndex, 29724: 29724: kInvalid 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 8 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 2 29724: # 24 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct KillPoint { 29724: public: 29724: 29724: 29724: int rocksdb_kill_odds = 0; 29724: 29724: std::vector rocksdb_kill_exclude_prefixes; 29724: 29724: void TestKillRandom(std::string kill_point, int odds, 29724: const std::string& srcfile, int srcline); 29724: 29724: static KillPoint* GetInstance(); 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: namespace rocksdb { 29724: # 74 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: class SyncPoint { 29724: public: 29724: static SyncPoint* GetInstance(); 29724: 29724: SyncPoint(const SyncPoint&) = delete; 29724: SyncPoint& operator=(const SyncPoint&) = delete; 29724: ~SyncPoint(); 29724: 29724: struct SyncPointPair { 29724: std::string predecessor; 29724: std::string successor; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: void LoadDependency(const std::vector& dependencies); 29724: 29724: 29724: 29724: 29724: 29724: void LoadDependencyAndMarkers(const std::vector& dependencies, 29724: const std::vector& markers); 29724: 29724: 29724: 29724: 29724: void SetCallBack(const std::string& point, 29724: const std::function& callback); 29724: 29724: 29724: void ClearCallBack(const std::string& point); 29724: 29724: 29724: void ClearAllCallBacks(); 29724: 29724: 29724: void EnableProcessing(); 29724: 29724: 29724: void DisableProcessing(); 29724: 29724: 29724: void ClearTrace(); 29724: 29724: 29724: 29724: 29724: void Process(const Slice& point, void* cb_arg = nullptr); 29724: 29724: 29724: 29724: template 29724: void Process(const char (&point)[kLen], void* cb_arg = nullptr) { 29724: static_assert(kLen > 0, "Must not be empty"); 29724: 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29724: (static_cast ( 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: point[kLen - 1] == '\0' 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: "point[kLen - 1] == '\\0'" 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29724: ; 29724: Process(Slice(point, kLen - 1), cb_arg); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct Data; 29724: 29724: private: 29724: 29724: SyncPoint(); 29724: Data* impl_; 29724: }; 29724: 29724: 29724: 29724: void SetupSyncPointsToMockDirectIO(); 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/compression_context_cache.h" 1 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/compression_context_cache.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: class ZSTDUncompressCachedData; 29724: 29724: class CompressionContextCache { 29724: public: 29724: 29724: static CompressionContextCache* Instance(); 29724: static void InitSingleton(); 29724: CompressionContextCache(const CompressionContextCache&) = delete; 29724: CompressionContextCache& operator=(const CompressionContextCache&) = delete; 29724: 29724: ZSTDUncompressCachedData GetCachedZSTDUncompressData(); 29724: void ReturnCachedZSTDUncompressData(int64_t idx); 29724: 29724: private: 29724: 29724: CompressionContextCache(); 29724: ~CompressionContextCache(); 29724: 29724: class Rep; 29724: Rep* rep_; 29724: }; 29724: 29724: } 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: 29724: std::vector StringSplit(const std::string& arg, char delim); 29724: 29724: 29724: void AppendNumberTo(std::string* str, uint64_t num); 29724: 29724: 29724: 29724: void AppendEscapedStringTo(std::string* str, const Slice& value); 29724: 29724: 29724: 29724: template 29724: inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { 29724: const char* digitChars = uppercase ? "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" 29724: : "0123456789abcdefghijklmnopqrstuvwxyz"; 29724: for (size_t i = n; i > 0; --i) { 29724: (*buf)[i - 1] = digitChars[static_cast(v % kBase)]; 29724: v /= kBase; 29724: } 29724: *buf += n; 29724: } 29724: # 52 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29724: template 29724: inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { 29724: while (n) { 29724: char c = **buf; 29724: *v *= static_cast(kBase); 29724: if (c >= '0' && (kBase >= 10 ? c <= '9' : c < '0' + kBase)) { 29724: *v += static_cast(c - '0'); 29724: } else if (kBase > 10 && c >= 'A' && c < 'A' + kBase - 10) { 29724: *v += static_cast(c - 'A' + 10); 29724: } else if (kBase > 10 && c >= 'a' && c < 'a' + kBase - 10) { 29724: *v += static_cast(c - 'a' + 10); 29724: } else { 29724: return false; 29724: } 29724: --n; 29724: ++*buf; 29724: } 29724: return true; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: std::string NumberToHumanString(int64_t num); 29724: 29724: 29724: 29724: std::string BytesToHumanString(uint64_t bytes); 29724: 29724: 29724: 29724: std::string TimeToHumanString(int unixtime); 29724: 29724: 29724: int AppendHumanMicros(uint64_t micros, char* output, int len, 29724: bool fixed_format); 29724: 29724: 29724: int AppendHumanBytes(uint64_t bytes, char* output, int len); 29724: 29724: 29724: 29724: std::string EscapeString(const Slice& value); 29724: 29724: 29724: 29724: 29724: 29724: bool ConsumeDecimalNumber(Slice* in, uint64_t* val); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool isSpecialChar(const char c); 29724: 29724: 29724: 29724: 29724: char UnescapeChar(const char c); 29724: 29724: 29724: 29724: 29724: char EscapeChar(const char c); 29724: # 130 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29724: std::string EscapeOptionString(const std::string& raw_string); 29724: 29724: 29724: 29724: 29724: 29724: 29724: std::string UnescapeOptionString(const std::string& escaped_string); 29724: 29724: std::string trim(const std::string& str); 29724: 29724: 29724: bool EndsWith(const std::string& string, const std::string& pattern); 29724: 29724: 29724: bool StartsWith(const std::string& string, const std::string& pattern); 29724: 29724: bool ParseBoolean(const std::string& type, const std::string& value); 29724: 29724: uint8_t ParseUint8(const std::string& value); 29724: 29724: uint32_t ParseUint32(const std::string& value); 29724: 29724: int32_t ParseInt32(const std::string& value); 29724: 29724: uint64_t ParseUint64(const std::string& value); 29724: 29724: int ParseInt(const std::string& value); 29724: 29724: int64_t ParseInt64(const std::string& value); 29724: 29724: double ParseDouble(const std::string& value); 29724: 29724: size_t ParseSizeT(const std::string& value); 29724: 29724: std::vector ParseVectorInt(const std::string& value); 29724: 29724: bool SerializeIntVector(const std::vector& vec, std::string* value); 29724: 29724: 29724: 29724: int ParseTimeStringToSeconds(const std::string& value); 29724: 29724: 29724: 29724: 29724: bool TryParseTimeRangeString(const std::string& value, int& start_time, 29724: int& end_time); 29724: 29724: extern const std::string kNullptrString; 29724: 29724: 29724: 29724: std::string errnoStr(int err); 29724: 29724: } 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: # 1 "/usr/include/snappy.h" 1 3 4 29724: # 42 "/usr/include/snappy.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 43 "/usr/include/snappy.h" 2 3 4 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/snappy-stubs-public.h" 1 3 4 29724: # 41 "/usr/include/snappy-stubs-public.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 2 3 4 29724: 29724: 29724: 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 29724: struct iovec 29724: { 29724: void *iov_base; 29724: size_t iov_len; 29724: }; 29724: # 24 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: # 41 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 52 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 86 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "preadv64") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "pwritev64") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 110 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, 29724: __off64_t __offset) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 123 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, 29724: __off64_t __offset) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 143 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t pwritev2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "pwritev64v2") 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: extern ssize_t preadv2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "preadv64v2") 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 161 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29724: extern ssize_t preadv64v2 (int __fp, const struct iovec *__iovec, 29724: int __count, __off64_t __offset, 29724: int ___flags) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: 29724: 29724: extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, 29724: int __count, __off64_t __offset, 29724: int __flags) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 29724: extern "C" { 29724: 29724: 29724: extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, 29724: unsigned long int __liovcnt, 29724: const struct iovec *__rvec, 29724: unsigned long int __riovcnt, 29724: unsigned long int __flags) 29724: noexcept (true); 29724: 29724: 29724: extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, 29724: unsigned long int __liovcnt, 29724: const struct iovec *__rvec, 29724: unsigned long int __riovcnt, 29724: unsigned long int __flags) 29724: noexcept (true); 29724: # 52 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 29724: } 29724: # 180 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 29724: # 42 "/usr/include/snappy-stubs-public.h" 2 3 4 29724: # 50 "/usr/include/snappy-stubs-public.h" 3 4 29724: namespace snappy { 29724: # 61 "/usr/include/snappy-stubs-public.h" 3 4 29724: } 29724: # 48 "/usr/include/snappy.h" 2 3 4 29724: 29724: namespace snappy { 29724: class Source; 29724: class Sink; 29724: 29724: struct CompressionOptions { 29724: # 65 "/usr/include/snappy.h" 3 4 29724: int level = DefaultCompressionLevel(); 29724: 29724: constexpr CompressionOptions() = default; 29724: constexpr CompressionOptions(int compression_level) 29724: : level(compression_level) {} 29724: static constexpr int MinCompressionLevel() { return 1; } 29724: static constexpr int MaxCompressionLevel() { return 2; } 29724: static constexpr int DefaultCompressionLevel() { return 1; } 29724: }; 29724: # 82 "/usr/include/snappy.h" 3 4 29724: size_t Compress(Source* reader, Sink* writer); 29724: size_t Compress(Source* reader, Sink* writer, 29724: CompressionOptions options); 29724: # 93 "/usr/include/snappy.h" 3 4 29724: bool GetUncompressedLength(Source* source, uint32_t* result); 29724: # 104 "/usr/include/snappy.h" 3 4 29724: size_t Compress(const char* input, size_t input_length, 29724: std::string* compressed); 29724: size_t Compress(const char* input, size_t input_length, 29724: std::string* compressed, CompressionOptions options); 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 29724: std::string* compressed); 29724: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 29724: std::string* compressed, 29724: CompressionOptions options); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool Uncompress(const char* compressed, size_t compressed_length, 29724: std::string* uncompressed); 29724: 29724: 29724: 29724: 29724: bool Uncompress(Source* compressed, Sink* uncompressed); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t UncompressAsMuchAsPossible(Source* compressed, Sink* uncompressed); 29724: # 161 "/usr/include/snappy.h" 3 4 29724: void RawCompress(const char* input, size_t input_length, char* compressed, 29724: size_t* compressed_length); 29724: void RawCompress(const char* input, size_t input_length, char* compressed, 29724: size_t* compressed_length, CompressionOptions options); 29724: 29724: 29724: 29724: 29724: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 29724: char* compressed, size_t* compressed_length); 29724: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 29724: char* compressed, size_t* compressed_length, 29724: CompressionOptions options); 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool RawUncompress(const char* compressed, size_t compressed_length, 29724: char* uncompressed); 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool RawUncompress(Source* compressed, char* uncompressed); 29724: # 198 "/usr/include/snappy.h" 3 4 29724: bool RawUncompressToIOVec(const char* compressed, size_t compressed_length, 29724: const struct iovec* iov, size_t iov_cnt); 29724: # 209 "/usr/include/snappy.h" 3 4 29724: bool RawUncompressToIOVec(Source* compressed, const struct iovec* iov, 29724: size_t iov_cnt); 29724: 29724: 29724: 29724: size_t MaxCompressedLength(size_t source_bytes); 29724: 29724: 29724: 29724: 29724: 29724: bool GetUncompressedLength(const char* compressed, size_t compressed_length, 29724: size_t* result); 29724: 29724: 29724: 29724: 29724: 29724: bool IsValidCompressedBuffer(const char* compressed, 29724: size_t compressed_length); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool IsValidCompressed(Source* compressed); 29724: # 247 "/usr/include/snappy.h" 3 4 29724: static constexpr int kBlockLog = 16; 29724: static constexpr size_t kBlockSize = 1 << kBlockLog; 29724: 29724: static constexpr int kMinHashTableBits = 8; 29724: static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits; 29724: 29724: static constexpr int kMaxHashTableBits = 15; 29724: static constexpr size_t kMaxHashTableSize = 1 << kMaxHashTableBits; 29724: } 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: 29724: # 1 "/usr/include/zlib.h" 1 3 4 29724: # 34 "/usr/include/zlib.h" 3 4 29724: # 1 "/usr/include/zconf.h" 1 3 4 29724: # 254 "/usr/include/zconf.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 255 "/usr/include/zconf.h" 2 3 4 29724: typedef size_t z_size_t; 29724: # 393 "/usr/include/zconf.h" 3 4 29724: typedef unsigned char Byte; 29724: 29724: typedef unsigned int uInt; 29724: typedef unsigned long uLong; 29724: 29724: 29724: 29724: 29724: 29724: typedef Byte Bytef; 29724: 29724: typedef char charf; 29724: typedef int intf; 29724: typedef uInt uIntf; 29724: typedef uLong uLongf; 29724: 29724: 29724: typedef void const *voidpc; 29724: typedef void *voidpf; 29724: typedef void *voidp; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29724: # 421 "/usr/include/zconf.h" 2 3 4 29724: # 431 "/usr/include/zconf.h" 3 4 29724: typedef unsigned z_crc_t; 29724: # 484 "/usr/include/zconf.h" 3 4 29724: # 1 "/usr/include/unistd.h" 1 3 4 29724: # 27 "/usr/include/unistd.h" 3 4 29724: extern "C" { 29724: # 202 "/usr/include/unistd.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix_opt.h" 1 3 4 29724: # 203 "/usr/include/unistd.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 1 3 4 29724: # 22 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 2 3 4 29724: # 207 "/usr/include/unistd.h" 2 3 4 29724: # 226 "/usr/include/unistd.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 227 "/usr/include/unistd.h" 2 3 4 29724: # 274 "/usr/include/unistd.h" 3 4 29724: typedef __socklen_t socklen_t; 29724: # 287 "/usr/include/unistd.h" 3 4 29724: extern int access (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: extern int euidaccess (const char *__name, int __type) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int eaccess (const char *__name, int __type) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern int execveat (int __fd, const char *__path, char *const __argv[], 29724: char *const __envp[], int __flags) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int faccessat (int __fd, const char *__file, int __type, int __flag) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 29724: # 342 "/usr/include/unistd.h" 3 4 29724: extern __off64_t lseek (int __fd, __off64_t __offset, int __whence) noexcept (true) __asm__ ("" "lseek64") 29724: 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int close (int __fd); 29724: 29724: 29724: 29724: 29724: extern void closefrom (int __lowfd) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 404 "/usr/include/unistd.h" 3 4 29724: extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 29724: 29724: __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t pwrite (int __fd, const void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pwrite64") 29724: 29724: __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: # 422 "/usr/include/unistd.h" 3 4 29724: extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, 29724: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, 29724: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__read_only__, 2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int pipe (int __pipedes[2]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int pipe2 (int __pipedes[2], int __flags) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: # 452 "/usr/include/unistd.h" 3 4 29724: extern unsigned int alarm (unsigned int __seconds) noexcept (true); 29724: # 464 "/usr/include/unistd.h" 3 4 29724: extern unsigned int sleep (unsigned int __seconds); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int usleep (__useconds_t __useconds); 29724: # 489 "/usr/include/unistd.h" 3 4 29724: extern int pause (void); 29724: 29724: 29724: 29724: extern int chown (const char *__file, __uid_t __owner, __gid_t __group) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern int fchown (int __fd, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fchownat (int __fd, const char *__file, __uid_t __owner, 29724: __gid_t __group, int __flag) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern int chdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern int fchdir (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: # 531 "/usr/include/unistd.h" 3 4 29724: extern char *getcwd (char *__buf, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern char *get_current_dir_name (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *getwd (char *__buf) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 1))); 29724: 29724: 29724: 29724: 29724: extern int dup (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern int dup2 (int __fd, int __fd2) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int dup3 (int __fd, int __fd2, int __flags) noexcept (true); 29724: 29724: 29724: 29724: extern char **__environ; 29724: 29724: extern char **environ; 29724: 29724: 29724: 29724: 29724: 29724: extern int execve (const char *__path, char *const __argv[], 29724: char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: 29724: extern int execv (const char *__path, char *const __argv[]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int execle (const char *__path, const char *__arg, ...) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int execl (const char *__path, const char *__arg, ...) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: extern int execvp (const char *__file, char *const __argv[]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern int execlp (const char *__file, const char *__arg, ...) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: extern int execvpe (const char *__file, char *const __argv[], 29724: char *const __envp[]) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: extern int nice (int __inc) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern void _exit (int __status) __attribute__ ((__noreturn__)); 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 3 4 29724: enum 29724: { 29724: _PC_LINK_MAX, 29724: 29724: _PC_MAX_CANON, 29724: 29724: _PC_MAX_INPUT, 29724: 29724: _PC_NAME_MAX, 29724: 29724: _PC_PATH_MAX, 29724: 29724: _PC_PIPE_BUF, 29724: 29724: _PC_CHOWN_RESTRICTED, 29724: 29724: _PC_NO_TRUNC, 29724: 29724: _PC_VDISABLE, 29724: 29724: _PC_SYNC_IO, 29724: 29724: _PC_ASYNC_IO, 29724: 29724: _PC_PRIO_IO, 29724: 29724: _PC_SOCK_MAXBUF, 29724: 29724: _PC_FILESIZEBITS, 29724: 29724: _PC_REC_INCR_XFER_SIZE, 29724: 29724: _PC_REC_MAX_XFER_SIZE, 29724: 29724: _PC_REC_MIN_XFER_SIZE, 29724: 29724: _PC_REC_XFER_ALIGN, 29724: 29724: _PC_ALLOC_SIZE_MIN, 29724: 29724: _PC_SYMLINK_MAX, 29724: 29724: _PC_2_SYMLINKS 29724: 29724: }; 29724: 29724: 29724: enum 29724: { 29724: _SC_ARG_MAX, 29724: 29724: _SC_CHILD_MAX, 29724: 29724: _SC_CLK_TCK, 29724: 29724: _SC_NGROUPS_MAX, 29724: 29724: _SC_OPEN_MAX, 29724: 29724: _SC_STREAM_MAX, 29724: 29724: _SC_TZNAME_MAX, 29724: 29724: _SC_JOB_CONTROL, 29724: 29724: _SC_SAVED_IDS, 29724: 29724: _SC_REALTIME_SIGNALS, 29724: 29724: _SC_PRIORITY_SCHEDULING, 29724: 29724: _SC_TIMERS, 29724: 29724: _SC_ASYNCHRONOUS_IO, 29724: 29724: _SC_PRIORITIZED_IO, 29724: 29724: _SC_SYNCHRONIZED_IO, 29724: 29724: _SC_FSYNC, 29724: 29724: _SC_MAPPED_FILES, 29724: 29724: _SC_MEMLOCK, 29724: 29724: _SC_MEMLOCK_RANGE, 29724: 29724: _SC_MEMORY_PROTECTION, 29724: 29724: _SC_MESSAGE_PASSING, 29724: 29724: _SC_SEMAPHORES, 29724: 29724: _SC_SHARED_MEMORY_OBJECTS, 29724: 29724: _SC_AIO_LISTIO_MAX, 29724: 29724: _SC_AIO_MAX, 29724: 29724: _SC_AIO_PRIO_DELTA_MAX, 29724: 29724: _SC_DELAYTIMER_MAX, 29724: 29724: _SC_MQ_OPEN_MAX, 29724: 29724: _SC_MQ_PRIO_MAX, 29724: 29724: _SC_VERSION, 29724: 29724: _SC_PAGESIZE, 29724: 29724: 29724: _SC_RTSIG_MAX, 29724: 29724: _SC_SEM_NSEMS_MAX, 29724: 29724: _SC_SEM_VALUE_MAX, 29724: 29724: _SC_SIGQUEUE_MAX, 29724: 29724: _SC_TIMER_MAX, 29724: 29724: 29724: 29724: 29724: _SC_BC_BASE_MAX, 29724: 29724: _SC_BC_DIM_MAX, 29724: 29724: _SC_BC_SCALE_MAX, 29724: 29724: _SC_BC_STRING_MAX, 29724: 29724: _SC_COLL_WEIGHTS_MAX, 29724: 29724: _SC_EQUIV_CLASS_MAX, 29724: 29724: _SC_EXPR_NEST_MAX, 29724: 29724: _SC_LINE_MAX, 29724: 29724: _SC_RE_DUP_MAX, 29724: 29724: _SC_CHARCLASS_NAME_MAX, 29724: 29724: 29724: _SC_2_VERSION, 29724: 29724: _SC_2_C_BIND, 29724: 29724: _SC_2_C_DEV, 29724: 29724: _SC_2_FORT_DEV, 29724: 29724: _SC_2_FORT_RUN, 29724: 29724: _SC_2_SW_DEV, 29724: 29724: _SC_2_LOCALEDEF, 29724: 29724: 29724: _SC_PII, 29724: 29724: _SC_PII_XTI, 29724: 29724: _SC_PII_SOCKET, 29724: 29724: _SC_PII_INTERNET, 29724: 29724: _SC_PII_OSI, 29724: 29724: _SC_POLL, 29724: 29724: _SC_SELECT, 29724: 29724: _SC_UIO_MAXIOV, 29724: 29724: _SC_IOV_MAX = _SC_UIO_MAXIOV, 29724: 29724: _SC_PII_INTERNET_STREAM, 29724: 29724: _SC_PII_INTERNET_DGRAM, 29724: 29724: _SC_PII_OSI_COTS, 29724: 29724: _SC_PII_OSI_CLTS, 29724: 29724: _SC_PII_OSI_M, 29724: 29724: _SC_T_IOV_MAX, 29724: 29724: 29724: 29724: _SC_THREADS, 29724: 29724: _SC_THREAD_SAFE_FUNCTIONS, 29724: 29724: _SC_GETGR_R_SIZE_MAX, 29724: 29724: _SC_GETPW_R_SIZE_MAX, 29724: 29724: _SC_LOGIN_NAME_MAX, 29724: 29724: _SC_TTY_NAME_MAX, 29724: 29724: _SC_THREAD_DESTRUCTOR_ITERATIONS, 29724: 29724: _SC_THREAD_KEYS_MAX, 29724: 29724: _SC_THREAD_STACK_MIN, 29724: 29724: _SC_THREAD_THREADS_MAX, 29724: 29724: _SC_THREAD_ATTR_STACKADDR, 29724: 29724: _SC_THREAD_ATTR_STACKSIZE, 29724: 29724: _SC_THREAD_PRIORITY_SCHEDULING, 29724: 29724: _SC_THREAD_PRIO_INHERIT, 29724: 29724: _SC_THREAD_PRIO_PROTECT, 29724: 29724: _SC_THREAD_PROCESS_SHARED, 29724: 29724: 29724: _SC_NPROCESSORS_CONF, 29724: 29724: _SC_NPROCESSORS_ONLN, 29724: 29724: _SC_PHYS_PAGES, 29724: 29724: _SC_AVPHYS_PAGES, 29724: 29724: _SC_ATEXIT_MAX, 29724: 29724: _SC_PASS_MAX, 29724: 29724: 29724: _SC_XOPEN_VERSION, 29724: 29724: _SC_XOPEN_XCU_VERSION, 29724: 29724: _SC_XOPEN_UNIX, 29724: 29724: _SC_XOPEN_CRYPT, 29724: 29724: _SC_XOPEN_ENH_I18N, 29724: 29724: _SC_XOPEN_SHM, 29724: 29724: 29724: _SC_2_CHAR_TERM, 29724: 29724: _SC_2_C_VERSION, 29724: 29724: _SC_2_UPE, 29724: 29724: 29724: _SC_XOPEN_XPG2, 29724: 29724: _SC_XOPEN_XPG3, 29724: 29724: _SC_XOPEN_XPG4, 29724: 29724: 29724: _SC_CHAR_BIT, 29724: 29724: _SC_CHAR_MAX, 29724: 29724: _SC_CHAR_MIN, 29724: 29724: _SC_INT_MAX, 29724: 29724: _SC_INT_MIN, 29724: 29724: _SC_LONG_BIT, 29724: 29724: _SC_WORD_BIT, 29724: 29724: _SC_MB_LEN_MAX, 29724: 29724: _SC_NZERO, 29724: 29724: _SC_SSIZE_MAX, 29724: 29724: _SC_SCHAR_MAX, 29724: 29724: _SC_SCHAR_MIN, 29724: 29724: _SC_SHRT_MAX, 29724: 29724: _SC_SHRT_MIN, 29724: 29724: _SC_UCHAR_MAX, 29724: 29724: _SC_UINT_MAX, 29724: 29724: _SC_ULONG_MAX, 29724: 29724: _SC_USHRT_MAX, 29724: 29724: 29724: _SC_NL_ARGMAX, 29724: 29724: _SC_NL_LANGMAX, 29724: 29724: _SC_NL_MSGMAX, 29724: 29724: _SC_NL_NMAX, 29724: 29724: _SC_NL_SETMAX, 29724: 29724: _SC_NL_TEXTMAX, 29724: 29724: 29724: _SC_XBS5_ILP32_OFF32, 29724: 29724: _SC_XBS5_ILP32_OFFBIG, 29724: 29724: _SC_XBS5_LP64_OFF64, 29724: 29724: _SC_XBS5_LPBIG_OFFBIG, 29724: 29724: 29724: _SC_XOPEN_LEGACY, 29724: 29724: _SC_XOPEN_REALTIME, 29724: 29724: _SC_XOPEN_REALTIME_THREADS, 29724: 29724: 29724: _SC_ADVISORY_INFO, 29724: 29724: _SC_BARRIERS, 29724: 29724: _SC_BASE, 29724: 29724: _SC_C_LANG_SUPPORT, 29724: 29724: _SC_C_LANG_SUPPORT_R, 29724: 29724: _SC_CLOCK_SELECTION, 29724: 29724: _SC_CPUTIME, 29724: 29724: _SC_THREAD_CPUTIME, 29724: 29724: _SC_DEVICE_IO, 29724: 29724: _SC_DEVICE_SPECIFIC, 29724: 29724: _SC_DEVICE_SPECIFIC_R, 29724: 29724: _SC_FD_MGMT, 29724: 29724: _SC_FIFO, 29724: 29724: _SC_PIPE, 29724: 29724: _SC_FILE_ATTRIBUTES, 29724: 29724: _SC_FILE_LOCKING, 29724: 29724: _SC_FILE_SYSTEM, 29724: 29724: _SC_MONOTONIC_CLOCK, 29724: 29724: _SC_MULTI_PROCESS, 29724: 29724: _SC_SINGLE_PROCESS, 29724: 29724: _SC_NETWORKING, 29724: 29724: _SC_READER_WRITER_LOCKS, 29724: 29724: _SC_SPIN_LOCKS, 29724: 29724: _SC_REGEXP, 29724: 29724: _SC_REGEX_VERSION, 29724: 29724: _SC_SHELL, 29724: 29724: _SC_SIGNALS, 29724: 29724: _SC_SPAWN, 29724: 29724: _SC_SPORADIC_SERVER, 29724: 29724: _SC_THREAD_SPORADIC_SERVER, 29724: 29724: _SC_SYSTEM_DATABASE, 29724: 29724: _SC_SYSTEM_DATABASE_R, 29724: 29724: _SC_TIMEOUTS, 29724: 29724: _SC_TYPED_MEMORY_OBJECTS, 29724: 29724: _SC_USER_GROUPS, 29724: 29724: _SC_USER_GROUPS_R, 29724: 29724: _SC_2_PBS, 29724: 29724: _SC_2_PBS_ACCOUNTING, 29724: 29724: _SC_2_PBS_LOCATE, 29724: 29724: _SC_2_PBS_MESSAGE, 29724: 29724: _SC_2_PBS_TRACK, 29724: 29724: _SC_SYMLOOP_MAX, 29724: 29724: _SC_STREAMS, 29724: 29724: _SC_2_PBS_CHECKPOINT, 29724: 29724: 29724: _SC_V6_ILP32_OFF32, 29724: 29724: _SC_V6_ILP32_OFFBIG, 29724: 29724: _SC_V6_LP64_OFF64, 29724: 29724: _SC_V6_LPBIG_OFFBIG, 29724: 29724: 29724: _SC_HOST_NAME_MAX, 29724: 29724: _SC_TRACE, 29724: 29724: _SC_TRACE_EVENT_FILTER, 29724: 29724: _SC_TRACE_INHERIT, 29724: 29724: _SC_TRACE_LOG, 29724: 29724: 29724: _SC_LEVEL1_ICACHE_SIZE, 29724: 29724: _SC_LEVEL1_ICACHE_ASSOC, 29724: 29724: _SC_LEVEL1_ICACHE_LINESIZE, 29724: 29724: _SC_LEVEL1_DCACHE_SIZE, 29724: 29724: _SC_LEVEL1_DCACHE_ASSOC, 29724: 29724: _SC_LEVEL1_DCACHE_LINESIZE, 29724: 29724: _SC_LEVEL2_CACHE_SIZE, 29724: 29724: _SC_LEVEL2_CACHE_ASSOC, 29724: 29724: _SC_LEVEL2_CACHE_LINESIZE, 29724: 29724: _SC_LEVEL3_CACHE_SIZE, 29724: 29724: _SC_LEVEL3_CACHE_ASSOC, 29724: 29724: _SC_LEVEL3_CACHE_LINESIZE, 29724: 29724: _SC_LEVEL4_CACHE_SIZE, 29724: 29724: _SC_LEVEL4_CACHE_ASSOC, 29724: 29724: _SC_LEVEL4_CACHE_LINESIZE, 29724: 29724: 29724: 29724: _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, 29724: 29724: _SC_RAW_SOCKETS, 29724: 29724: 29724: _SC_V7_ILP32_OFF32, 29724: 29724: _SC_V7_ILP32_OFFBIG, 29724: 29724: _SC_V7_LP64_OFF64, 29724: 29724: _SC_V7_LPBIG_OFFBIG, 29724: 29724: 29724: _SC_SS_REPL_MAX, 29724: 29724: 29724: _SC_TRACE_EVENT_NAME_MAX, 29724: 29724: _SC_TRACE_NAME_MAX, 29724: 29724: _SC_TRACE_SYS_MAX, 29724: 29724: _SC_TRACE_USER_EVENT_MAX, 29724: 29724: 29724: _SC_XOPEN_STREAMS, 29724: 29724: 29724: _SC_THREAD_ROBUST_PRIO_INHERIT, 29724: 29724: _SC_THREAD_ROBUST_PRIO_PROTECT, 29724: 29724: 29724: _SC_MINSIGSTKSZ, 29724: 29724: 29724: _SC_SIGSTKSZ 29724: 29724: }; 29724: 29724: 29724: enum 29724: { 29724: _CS_PATH, 29724: 29724: 29724: _CS_V6_WIDTH_RESTRICTED_ENVS, 29724: 29724: 29724: 29724: _CS_GNU_LIBC_VERSION, 29724: 29724: _CS_GNU_LIBPTHREAD_VERSION, 29724: 29724: 29724: _CS_V5_WIDTH_RESTRICTED_ENVS, 29724: 29724: 29724: 29724: _CS_V7_WIDTH_RESTRICTED_ENVS, 29724: 29724: 29724: 29724: _CS_LFS_CFLAGS = 1000, 29724: 29724: _CS_LFS_LDFLAGS, 29724: 29724: _CS_LFS_LIBS, 29724: 29724: _CS_LFS_LINTFLAGS, 29724: 29724: _CS_LFS64_CFLAGS, 29724: 29724: _CS_LFS64_LDFLAGS, 29724: 29724: _CS_LFS64_LIBS, 29724: 29724: _CS_LFS64_LINTFLAGS, 29724: 29724: 29724: _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, 29724: 29724: _CS_XBS5_ILP32_OFF32_LDFLAGS, 29724: 29724: _CS_XBS5_ILP32_OFF32_LIBS, 29724: 29724: _CS_XBS5_ILP32_OFF32_LINTFLAGS, 29724: 29724: _CS_XBS5_ILP32_OFFBIG_CFLAGS, 29724: 29724: _CS_XBS5_ILP32_OFFBIG_LDFLAGS, 29724: 29724: _CS_XBS5_ILP32_OFFBIG_LIBS, 29724: 29724: _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, 29724: 29724: _CS_XBS5_LP64_OFF64_CFLAGS, 29724: 29724: _CS_XBS5_LP64_OFF64_LDFLAGS, 29724: 29724: _CS_XBS5_LP64_OFF64_LIBS, 29724: 29724: _CS_XBS5_LP64_OFF64_LINTFLAGS, 29724: 29724: _CS_XBS5_LPBIG_OFFBIG_CFLAGS, 29724: 29724: _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, 29724: 29724: _CS_XBS5_LPBIG_OFFBIG_LIBS, 29724: 29724: _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, 29724: 29724: 29724: _CS_POSIX_V6_ILP32_OFF32_CFLAGS, 29724: 29724: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, 29724: 29724: _CS_POSIX_V6_ILP32_OFF32_LIBS, 29724: 29724: _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, 29724: 29724: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, 29724: 29724: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, 29724: 29724: _CS_POSIX_V6_ILP32_OFFBIG_LIBS, 29724: 29724: _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, 29724: 29724: _CS_POSIX_V6_LP64_OFF64_CFLAGS, 29724: 29724: _CS_POSIX_V6_LP64_OFF64_LDFLAGS, 29724: 29724: _CS_POSIX_V6_LP64_OFF64_LIBS, 29724: 29724: _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, 29724: 29724: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, 29724: 29724: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, 29724: 29724: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, 29724: 29724: _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, 29724: 29724: 29724: _CS_POSIX_V7_ILP32_OFF32_CFLAGS, 29724: 29724: _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, 29724: 29724: _CS_POSIX_V7_ILP32_OFF32_LIBS, 29724: 29724: _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, 29724: 29724: _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, 29724: 29724: _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, 29724: 29724: _CS_POSIX_V7_ILP32_OFFBIG_LIBS, 29724: 29724: _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, 29724: 29724: _CS_POSIX_V7_LP64_OFF64_CFLAGS, 29724: 29724: _CS_POSIX_V7_LP64_OFF64_LDFLAGS, 29724: 29724: _CS_POSIX_V7_LP64_OFF64_LIBS, 29724: 29724: _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, 29724: 29724: _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, 29724: 29724: _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, 29724: 29724: _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, 29724: 29724: _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, 29724: 29724: 29724: _CS_V6_ENV, 29724: 29724: _CS_V7_ENV 29724: 29724: }; 29724: # 631 "/usr/include/unistd.h" 2 3 4 29724: 29724: 29724: extern long int pathconf (const char *__path, int __name) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: extern long int fpathconf (int __fd, int __name) noexcept (true); 29724: 29724: 29724: extern long int sysconf (int __name) noexcept (true); 29724: 29724: 29724: 29724: extern size_t confstr (int __name, char *__buf, size_t __len) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: 29724: 29724: extern __pid_t getpid (void) noexcept (true); 29724: 29724: 29724: extern __pid_t getppid (void) noexcept (true); 29724: 29724: 29724: extern __pid_t getpgrp (void) noexcept (true); 29724: 29724: 29724: extern __pid_t __getpgid (__pid_t __pid) noexcept (true); 29724: 29724: extern __pid_t getpgid (__pid_t __pid) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int setpgid (__pid_t __pid, __pid_t __pgid) noexcept (true); 29724: # 682 "/usr/include/unistd.h" 3 4 29724: extern int setpgrp (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __pid_t setsid (void) noexcept (true); 29724: 29724: 29724: 29724: extern __pid_t getsid (__pid_t __pid) noexcept (true); 29724: 29724: 29724: 29724: extern __uid_t getuid (void) noexcept (true); 29724: 29724: 29724: extern __uid_t geteuid (void) noexcept (true); 29724: 29724: 29724: extern __gid_t getgid (void) noexcept (true); 29724: 29724: 29724: extern __gid_t getegid (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int getgroups (int __size, __gid_t __list[]) noexcept (true) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 1))); 29724: 29724: 29724: extern int group_member (__gid_t __gid) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int setuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int setreuid (__uid_t __ruid, __uid_t __euid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int seteuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int setgid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int setregid (__gid_t __rgid, __gid_t __egid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int setegid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) 29724: noexcept (true); 29724: 29724: 29724: 29724: extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) 29724: noexcept (true); 29724: 29724: 29724: 29724: extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __pid_t fork (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __pid_t vfork (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern __pid_t _Fork (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern char *ttyname (int __fd) noexcept (true); 29724: 29724: 29724: 29724: extern int ttyname_r (int __fd, char *__buf, size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: 29724: extern int isatty (int __fd) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int ttyslot (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int link (const char *__from, const char *__to) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int linkat (int __fromfd, const char *__from, int __tofd, 29724: const char *__to, int __flags) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern int symlink (const char *__from, const char *__to) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: extern ssize_t readlink (const char *__restrict __path, 29724: char *__restrict __buf, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: 29724: 29724: 29724: 29724: 29724: extern int symlinkat (const char *__from, int __tofd, 29724: const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: extern ssize_t readlinkat (int __fd, const char *__restrict __path, 29724: char *__restrict __buf, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 3, 4))); 29724: 29724: 29724: 29724: extern int unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern int unlinkat (int __fd, const char *__name, int __flag) 29724: noexcept (true) __attribute__ ((__nonnull__ (2))); 29724: 29724: 29724: 29724: extern int rmdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: extern __pid_t tcgetpgrp (int __fd) noexcept (true); 29724: 29724: 29724: extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *getlogin (void); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: 29724: 29724: 29724: 29724: extern int setlogin (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 1 3 4 29724: # 27 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 1 3 4 29724: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char *optarg; 29724: # 50 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29724: extern int optind; 29724: 29724: 29724: 29724: 29724: extern int opterr; 29724: 29724: 29724: 29724: extern int optopt; 29724: # 91 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29724: extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29724: 29724: } 29724: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 2 3 4 29724: 29724: extern "C" { 29724: # 49 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 29724: } 29724: # 904 "/usr/include/unistd.h" 2 3 4 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int gethostname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int sethostname (const char *__name, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 29724: 29724: 29724: 29724: extern int sethostid (long int __id) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int getdomainname (char *__name, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int setdomainname (const char *__name, size_t __len) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 29724: 29724: 29724: 29724: 29724: extern int vhangup (void) noexcept (true); 29724: 29724: 29724: extern int revoke (const char *__file) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int profil (unsigned short int *__sample_buffer, size_t __size, 29724: size_t __offset, unsigned int __scale) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: extern int acct (const char *__name) noexcept (true); 29724: 29724: 29724: 29724: extern char *getusershell (void) noexcept (true); 29724: extern void endusershell (void) noexcept (true); 29724: extern void setusershell (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int daemon (int __nochdir, int __noclose) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int chroot (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int fsync (int __fd); 29724: 29724: 29724: 29724: 29724: 29724: extern int syncfs (int __fd) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern long int gethostid (void); 29724: 29724: 29724: extern void sync (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern int getpagesize (void) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: 29724: 29724: extern int getdtablesize (void) noexcept (true); 29724: # 1030 "/usr/include/unistd.h" 3 4 29724: extern int truncate (const char *__file, __off64_t __length) noexcept (true) __asm__ ("" "truncate64") 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int truncate64 (const char *__file, __off64_t __length) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29724: # 1052 "/usr/include/unistd.h" 3 4 29724: extern int ftruncate (int __fd, __off64_t __length) noexcept (true) __asm__ ("" "ftruncate64") 29724: __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int ftruncate64 (int __fd, __off64_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: # 1070 "/usr/include/unistd.h" 3 4 29724: extern int brk (void *__addr) noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern void *sbrk (intptr_t __delta) noexcept (true); 29724: # 1091 "/usr/include/unistd.h" 3 4 29724: extern long int syscall (long int __sysno, ...) noexcept (true); 29724: # 1117 "/usr/include/unistd.h" 3 4 29724: extern int lockf (int __fd, int __cmd, __off64_t __len) __asm__ ("" "lockf64") 29724: __attribute__ ((__warn_unused_result__)); 29724: 29724: 29724: 29724: 29724: 29724: extern int lockf64 (int __fd, int __cmd, __off64_t __len) __attribute__ ((__warn_unused_result__)); 29724: # 1142 "/usr/include/unistd.h" 3 4 29724: ssize_t copy_file_range (int __infd, __off64_t *__pinoff, 29724: int __outfd, __off64_t *__poutoff, 29724: size_t __length, unsigned int __flags); 29724: 29724: 29724: 29724: 29724: 29724: extern int fdatasync (int __fildes); 29724: # 1162 "/usr/include/unistd.h" 3 4 29724: extern char *crypt (const char *__key, const char *__salt) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern void swab (const void *__restrict __from, void *__restrict __to, 29724: ssize_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) 29724: __attribute__ ((__access__ (__read_only__, 1, 3))) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: # 1201 "/usr/include/unistd.h" 3 4 29724: int getentropy (void *__buffer, size_t __length) __attribute__ ((__warn_unused_result__)) 29724: __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: # 1211 "/usr/include/unistd.h" 3 4 29724: extern int close_range (unsigned int __fd, unsigned int __max_fd, 29724: int __flags) noexcept (true); 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 1 3 4 29724: # 23 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 3 4 29724: extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, 29724: size_t __buflen) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) 29724: ; 29724: 29724: 29724: extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, 29724: __off_t __offset, size_t __bufsize) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, 29724: __off64_t __offset, size_t __bufsize) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __pread_alias (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __asm__ ("" "pread") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __pread_chk_warn (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __asm__ ("" "__pread_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread called with bigger length than size of " "the destination buffer"))) 29724: ; 29724: extern ssize_t __pread64_chk_warn (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __asm__ ("" "__pread64_chk") 29724: 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread64 called with bigger length than size of " "the destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: extern ssize_t __readlink_chk (const char *__restrict __path, 29724: char *__restrict __buf, size_t __len, 29724: size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlink") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlink_chk") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, 29724: char *__restrict __buf, size_t __len, 29724: size_t __buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 29724: extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlinkat") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 29724: extern ssize_t __readlinkat_chk_warn (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlinkat_chk") 29724: 29724: 29724: 29724: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) 29724: 29724: ; 29724: 29724: 29724: extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)); 29724: extern char *__getcwd_alias (char *__buf, size_t __size) noexcept (true) __asm__ ("" "getcwd") 29724: __attribute__ ((__warn_unused_result__)); 29724: extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) noexcept (true) __asm__ ("" "__getcwd_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) 29724: ; 29724: 29724: 29724: extern char *__getwd_chk (char *__buf, size_t buflen) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern char *__getwd_warn (char *__buf) noexcept (true) __asm__ ("" "getwd") 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) 29724: ; 29724: 29724: 29724: extern size_t __confstr_chk (int __name, char *__buf, size_t __len, 29724: size_t __buflen) noexcept (true) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern size_t __confstr_alias (int __name, char *__buf, size_t __len) noexcept (true) __asm__ ("" "confstr") 29724: 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__confstr_chk") 29724: 29724: 29724: __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) 29724: ; 29724: 29724: 29724: extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) 29724: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 29724: extern int __getgroups_alias (int __size, __gid_t __list[]) noexcept (true) __asm__ ("" "getgroups") 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 29724: extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) noexcept (true) __asm__ ("" "__getgroups_chk") 29724: 29724: 29724: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) 29724: ; 29724: 29724: 29724: extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, 29724: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 29724: __attribute__ ((__access__ (__write_only__, 2, 3))); 29724: extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ttyname_r") 29724: 29724: __attribute__ ((__nonnull__ (2))); 29724: extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ttyname_r_chk") 29724: 29724: 29724: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") 29724: __attribute__ ((__nonnull__ (1))); 29724: extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __gethostname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "gethostname") 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__gethostname_chk") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) 29724: ; 29724: 29724: 29724: 29724: 29724: extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) 29724: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __getdomainname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "getdomainname") 29724: 29724: __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29724: extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__getdomainname_chk") 29724: 29724: 29724: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) 29724: 29724: ; 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 2 3 4 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29724: read (int __fd, void * __buf, size_t __nbytes) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __read_alias (__fd, __buf, __nbytes) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __read_chk_warn (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)) : __read_chk (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)))) 29724: 29724: ; 29724: } 29724: # 51 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29724: pread (int __fd, void * __buf, 29724: size_t __nbytes, __off64_t __offset) 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __pread64_alias (__fd, __buf, __nbytes, __offset) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __pread64_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)) : __pread64_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29724: pread64 (int __fd, void * __buf, 29724: size_t __nbytes, __off64_t __offset) 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __pread64_alias (__fd, __buf, __nbytes, __offset) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __pread64_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)) : __pread64_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t 29724: __attribute__ ((__leaf__)) readlink (const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __readlink_alias (__path, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __readlink_chk_warn (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __readlink_chk (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t 29724: __attribute__ ((__leaf__)) readlinkat (int __fd, const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __readlinkat_alias (__fd, __path, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __readlinkat_chk_warn (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __readlinkat_chk (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 29724: __attribute__ ((__leaf__)) getcwd (char * __buf, size_t __size) noexcept (true) 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__size)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getcwd_alias (__buf, __size) : ((((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__size)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getcwd_chk_warn (__buf, __size, __builtin_object_size (__buf, 2 > 1)) : __getcwd_chk (__buf, __size, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) 29724: __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * 29724: __attribute__ ((__leaf__)) getwd (char * __buf) noexcept (true) 29724: { 29724: if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) 29724: return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); 29724: return __getwd_warn (__buf); 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29724: __attribute__ ((__leaf__)) confstr (int __name, char * __buf, size_t __len) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __confstr_alias (__name, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __confstr_chk_warn (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __confstr_chk (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) getgroups (int __size, __gid_t * __list) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__list, 2 > 1)) && (__builtin_object_size (__list, 2 > 1)) == (unsigned int) -1) || (((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= ((__builtin_object_size (__list, 2 > 1))) / ((sizeof (__gid_t))))) && (((unsigned int) (__size)) <= ((__builtin_object_size (__list, 2 > 1))) / ((sizeof (__gid_t)))))) ? __getgroups_alias (__size, __list) : ((((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= (__builtin_object_size (__list, 2 > 1)) / (sizeof (__gid_t)))) && !(((unsigned int) (__size)) <= (__builtin_object_size (__list, 2 > 1)) / (sizeof (__gid_t)))) ? __getgroups_chk_warn (__size, __list, __builtin_object_size (__list, 2 > 1)) : __getgroups_chk (__size, __list, __builtin_object_size (__list, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) ttyname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __ttyname_r_alias (__fd, __buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __ttyname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __ttyname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: getlogin_r (char * __buf, size_t __buflen) 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getlogin_r_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getlogin_r_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __getlogin_r_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) gethostname (char * __buf, size_t __buflen) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __gethostname_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __gethostname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __gethostname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: 29724: 29724: 29724: 29724: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29724: __attribute__ ((__leaf__)) getdomainname (char * __buf, size_t __buflen) noexcept (true) 29724: 29724: 29724: 29724: 29724: { 29724: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getdomainname_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getdomainname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __getdomainname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29724: 29724: ; 29724: } 29724: # 1218 "/usr/include/unistd.h" 2 3 4 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 1 3 4 29724: # 34 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 3 4 29724: extern __pid_t gettid (void) noexcept (true); 29724: 29724: 29724: 29724: # 1 "/usr/include/linux/close_range.h" 1 3 4 29724: # 39 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 2 3 4 29724: # 1222 "/usr/include/unistd.h" 2 3 4 29724: 29724: } 29724: # 485 "/usr/include/zconf.h" 2 3 4 29724: # 35 "/usr/include/zlib.h" 2 3 4 29724: 29724: 29724: extern "C" { 29724: # 81 "/usr/include/zlib.h" 3 4 29724: typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size); 29724: typedef void (*free_func)(voidpf opaque, voidpf address); 29724: 29724: struct internal_state; 29724: 29724: typedef struct z_stream_s { 29724: Bytef *next_in; 29724: uInt avail_in; 29724: uLong total_in; 29724: 29724: Bytef *next_out; 29724: uInt avail_out; 29724: uLong total_out; 29724: 29724: char *msg; 29724: struct internal_state *state; 29724: 29724: alloc_func zalloc; 29724: free_func zfree; 29724: voidpf opaque; 29724: 29724: int data_type; 29724: 29724: uLong adler; 29724: uLong reserved; 29724: } z_stream; 29724: 29724: typedef z_stream *z_streamp; 29724: 29724: 29724: 29724: 29724: 29724: typedef struct gz_header_s { 29724: int text; 29724: uLong time; 29724: int xflags; 29724: int os; 29724: Bytef *extra; 29724: uInt extra_len; 29724: uInt extra_max; 29724: Bytef *name; 29724: uInt name_max; 29724: Bytef *comment; 29724: uInt comm_max; 29724: int hcrc; 29724: int done; 29724: 29724: } gz_header; 29724: 29724: typedef gz_header *gz_headerp; 29724: # 220 "/usr/include/zlib.h" 3 4 29724: extern const char * zlibVersion(void); 29724: # 250 "/usr/include/zlib.h" 3 4 29724: extern int deflate(z_streamp strm, int flush); 29724: # 363 "/usr/include/zlib.h" 3 4 29724: extern int deflateEnd(z_streamp strm); 29724: # 401 "/usr/include/zlib.h" 3 4 29724: extern int inflate(z_streamp strm, int flush); 29724: # 521 "/usr/include/zlib.h" 3 4 29724: extern int inflateEnd(z_streamp strm); 29724: # 611 "/usr/include/zlib.h" 3 4 29724: extern int deflateSetDictionary(z_streamp strm, 29724: const Bytef *dictionary, 29724: uInt dictLength); 29724: # 655 "/usr/include/zlib.h" 3 4 29724: extern int deflateGetDictionary(z_streamp strm, 29724: Bytef *dictionary, 29724: uInt *dictLength); 29724: # 677 "/usr/include/zlib.h" 3 4 29724: extern int deflateCopy(z_streamp dest, 29724: z_streamp source); 29724: # 695 "/usr/include/zlib.h" 3 4 29724: extern int deflateReset(z_streamp strm); 29724: # 706 "/usr/include/zlib.h" 3 4 29724: extern int deflateParams(z_streamp strm, 29724: int level, 29724: int strategy); 29724: # 744 "/usr/include/zlib.h" 3 4 29724: extern int deflateTune(z_streamp strm, 29724: int good_length, 29724: int max_lazy, 29724: int nice_length, 29724: int max_chain); 29724: # 761 "/usr/include/zlib.h" 3 4 29724: extern uLong deflateBound(z_streamp strm, 29724: uLong sourceLen); 29724: # 776 "/usr/include/zlib.h" 3 4 29724: extern int deflatePending(z_streamp strm, 29724: unsigned *pending, 29724: int *bits); 29724: # 791 "/usr/include/zlib.h" 3 4 29724: extern int deflatePrime(z_streamp strm, 29724: int bits, 29724: int value); 29724: # 808 "/usr/include/zlib.h" 3 4 29724: extern int deflateSetHeader(z_streamp strm, 29724: gz_headerp head); 29724: # 888 "/usr/include/zlib.h" 3 4 29724: extern int inflateSetDictionary(z_streamp strm, 29724: const Bytef *dictionary, 29724: uInt dictLength); 29724: # 911 "/usr/include/zlib.h" 3 4 29724: extern int inflateGetDictionary(z_streamp strm, 29724: Bytef *dictionary, 29724: uInt *dictLength); 29724: # 926 "/usr/include/zlib.h" 3 4 29724: extern int inflateSync(z_streamp strm); 29724: # 945 "/usr/include/zlib.h" 3 4 29724: extern int inflateCopy(z_streamp dest, 29724: z_streamp source); 29724: # 961 "/usr/include/zlib.h" 3 4 29724: extern int inflateReset(z_streamp strm); 29724: # 972 "/usr/include/zlib.h" 3 4 29724: extern int inflateReset2(z_streamp strm, 29724: int windowBits); 29724: # 986 "/usr/include/zlib.h" 3 4 29724: extern int inflatePrime(z_streamp strm, 29724: int bits, 29724: int value); 29724: # 1007 "/usr/include/zlib.h" 3 4 29724: extern long inflateMark(z_streamp strm); 29724: # 1035 "/usr/include/zlib.h" 3 4 29724: extern int inflateGetHeader(z_streamp strm, 29724: gz_headerp head); 29724: # 1097 "/usr/include/zlib.h" 3 4 29724: typedef unsigned (*in_func)(void *, 29724: unsigned char * *); 29724: typedef int (*out_func)(void *, unsigned char *, unsigned); 29724: 29724: extern int inflateBack(z_streamp strm, 29724: in_func in, void *in_desc, 29724: out_func out, void *out_desc); 29724: # 1171 "/usr/include/zlib.h" 3 4 29724: extern int inflateBackEnd(z_streamp strm); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern uLong zlibCompileFlags(void); 29724: # 1232 "/usr/include/zlib.h" 3 4 29724: extern int compress(Bytef *dest, uLongf *destLen, 29724: const Bytef *source, uLong sourceLen); 29724: # 1247 "/usr/include/zlib.h" 3 4 29724: extern int compress2(Bytef *dest, uLongf *destLen, 29724: const Bytef *source, uLong sourceLen, 29724: int level); 29724: # 1263 "/usr/include/zlib.h" 3 4 29724: extern uLong compressBound(uLong sourceLen); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int uncompress(Bytef *dest, uLongf *destLen, 29724: const Bytef *source, uLong sourceLen); 29724: # 1288 "/usr/include/zlib.h" 3 4 29724: extern int uncompress2(Bytef *dest, uLongf *destLen, 29724: const Bytef *source, uLong *sourceLen); 29724: # 1305 "/usr/include/zlib.h" 3 4 29724: typedef struct gzFile_s *gzFile; 29724: # 1345 "/usr/include/zlib.h" 3 4 29724: extern gzFile gzdopen(int fd, const char *mode); 29724: # 1368 "/usr/include/zlib.h" 3 4 29724: extern int gzbuffer(gzFile file, unsigned size); 29724: # 1384 "/usr/include/zlib.h" 3 4 29724: extern int gzsetparams(gzFile file, int level, int strategy); 29724: # 1395 "/usr/include/zlib.h" 3 4 29724: extern int gzread(gzFile file, voidp buf, unsigned len); 29724: # 1425 "/usr/include/zlib.h" 3 4 29724: extern z_size_t gzfread(voidp buf, z_size_t size, z_size_t nitems, 29724: gzFile file); 29724: # 1451 "/usr/include/zlib.h" 3 4 29724: extern int gzwrite(gzFile file, voidpc buf, unsigned len); 29724: 29724: 29724: 29724: 29724: 29724: extern z_size_t gzfwrite(voidpc buf, z_size_t size, 29724: z_size_t nitems, gzFile file); 29724: # 1471 "/usr/include/zlib.h" 3 4 29724: extern int gzprintf(gzFile file, const char *format, ...); 29724: # 1486 "/usr/include/zlib.h" 3 4 29724: extern int gzputs(gzFile file, const char *s); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern char * gzgets(gzFile file, char *buf, int len); 29724: # 1508 "/usr/include/zlib.h" 3 4 29724: extern int gzputc(gzFile file, int c); 29724: 29724: 29724: 29724: 29724: 29724: extern int gzgetc(gzFile file); 29724: # 1523 "/usr/include/zlib.h" 3 4 29724: extern int gzungetc(int c, gzFile file); 29724: # 1535 "/usr/include/zlib.h" 3 4 29724: extern int gzflush(gzFile file, int flush); 29724: # 1570 "/usr/include/zlib.h" 3 4 29724: extern int gzrewind(gzFile file); 29724: # 1598 "/usr/include/zlib.h" 3 4 29724: extern int gzeof(gzFile file); 29724: # 1613 "/usr/include/zlib.h" 3 4 29724: extern int gzdirect(gzFile file); 29724: # 1634 "/usr/include/zlib.h" 3 4 29724: extern int gzclose(gzFile file); 29724: # 1647 "/usr/include/zlib.h" 3 4 29724: extern int gzclose_r(gzFile file); 29724: extern int gzclose_w(gzFile file); 29724: # 1659 "/usr/include/zlib.h" 3 4 29724: extern const char * gzerror(gzFile file, int *errnum); 29724: # 1675 "/usr/include/zlib.h" 3 4 29724: extern void gzclearerr(gzFile file); 29724: # 1692 "/usr/include/zlib.h" 3 4 29724: extern uLong adler32(uLong adler, const Bytef *buf, uInt len); 29724: # 1712 "/usr/include/zlib.h" 3 4 29724: extern uLong adler32_z(uLong adler, const Bytef *buf, 29724: z_size_t len); 29724: # 1730 "/usr/include/zlib.h" 3 4 29724: extern uLong crc32(uLong crc, const Bytef *buf, uInt len); 29724: # 1748 "/usr/include/zlib.h" 3 4 29724: extern uLong crc32_z(uLong crc, const Bytef *buf, 29724: z_size_t len); 29724: # 1771 "/usr/include/zlib.h" 3 4 29724: extern uLong crc32_combine_op(uLong crc1, uLong crc2, uLong op); 29724: # 1784 "/usr/include/zlib.h" 3 4 29724: extern int deflateInit_(z_streamp strm, int level, 29724: const char *version, int stream_size); 29724: extern int inflateInit_(z_streamp strm, 29724: const char *version, int stream_size); 29724: extern int deflateInit2_(z_streamp strm, int level, int method, 29724: int windowBits, int memLevel, 29724: int strategy, const char *version, 29724: int stream_size); 29724: extern int inflateInit2_(z_streamp strm, int windowBits, 29724: const char *version, int stream_size); 29724: extern int inflateBackInit_(z_streamp strm, int windowBits, 29724: unsigned char *window, 29724: const char *version, 29724: int stream_size); 29724: # 1837 "/usr/include/zlib.h" 3 4 29724: struct gzFile_s { 29724: unsigned have; 29724: unsigned char *next; 29724: off64_t pos; 29724: }; 29724: extern int gzgetc_(gzFile file); 29724: # 1859 "/usr/include/zlib.h" 3 4 29724: extern gzFile gzopen64(const char *, const char *); 29724: extern off64_t gzseek64(gzFile, off64_t, int); 29724: extern off64_t gztell64(gzFile); 29724: extern off64_t gzoffset64(gzFile); 29724: extern uLong adler32_combine64(uLong, uLong, off64_t); 29724: extern uLong crc32_combine64(uLong, uLong, off64_t); 29724: extern uLong crc32_combine_gen64(off64_t); 29724: # 1914 "/usr/include/zlib.h" 3 4 29724: extern const char * zError(int); 29724: extern int inflateSyncPoint(z_streamp); 29724: extern const z_crc_t * get_crc_table(void); 29724: extern int inflateUndermine(z_streamp, int); 29724: extern int inflateValidate(z_streamp, int); 29724: extern unsigned long inflateCodesUsed(z_streamp); 29724: extern int inflateResetKeep(z_streamp); 29724: extern int deflateResetKeep(z_streamp); 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int gzvprintf(gzFile file, 29724: const char *format, 29724: va_list va); 29724: 29724: 29724: 29724: 29724: } 29724: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: 29724: # 1 "/usr/include/bzlib.h" 1 3 4 29724: # 26 "/usr/include/bzlib.h" 3 4 29724: extern "C" { 29724: # 48 "/usr/include/bzlib.h" 3 4 29724: typedef 29724: struct { 29724: char *next_in; 29724: unsigned int avail_in; 29724: unsigned int total_in_lo32; 29724: unsigned int total_in_hi32; 29724: 29724: char *next_out; 29724: unsigned int avail_out; 29724: unsigned int total_out_lo32; 29724: unsigned int total_out_hi32; 29724: 29724: void *state; 29724: 29724: void *(*bzalloc)(void *,int,int); 29724: void (*bzfree)(void *,void *); 29724: void *opaque; 29724: } 29724: bz_stream; 29724: # 100 "/usr/include/bzlib.h" 3 4 29724: extern int BZ2_bzCompressInit ( 29724: bz_stream* strm, 29724: int blockSize100k, 29724: int verbosity, 29724: int workFactor 29724: ); 29724: 29724: extern int BZ2_bzCompress ( 29724: bz_stream* strm, 29724: int action 29724: ); 29724: 29724: extern int BZ2_bzCompressEnd ( 29724: bz_stream* strm 29724: ); 29724: 29724: extern int BZ2_bzDecompressInit ( 29724: bz_stream *strm, 29724: int verbosity, 29724: int small 29724: ); 29724: 29724: extern int BZ2_bzDecompress ( 29724: bz_stream* strm 29724: ); 29724: 29724: extern int BZ2_bzDecompressEnd ( 29724: bz_stream *strm 29724: ); 29724: # 137 "/usr/include/bzlib.h" 3 4 29724: typedef void BZFILE; 29724: 29724: extern BZFILE* BZ2_bzReadOpen ( 29724: int* bzerror, 29724: FILE* f, 29724: int verbosity, 29724: int small, 29724: void* unused, 29724: int nUnused 29724: ); 29724: 29724: extern void BZ2_bzReadClose ( 29724: int* bzerror, 29724: BZFILE* b 29724: ); 29724: 29724: extern void BZ2_bzReadGetUnused ( 29724: int* bzerror, 29724: BZFILE* b, 29724: void** unused, 29724: int* nUnused 29724: ); 29724: 29724: extern int BZ2_bzRead ( 29724: int* bzerror, 29724: BZFILE* b, 29724: void* buf, 29724: int len 29724: ); 29724: 29724: extern BZFILE* BZ2_bzWriteOpen ( 29724: int* bzerror, 29724: FILE* f, 29724: int blockSize100k, 29724: int verbosity, 29724: int workFactor 29724: ); 29724: 29724: extern void BZ2_bzWrite ( 29724: int* bzerror, 29724: BZFILE* b, 29724: void* buf, 29724: int len 29724: ); 29724: 29724: extern void BZ2_bzWriteClose ( 29724: int* bzerror, 29724: BZFILE* b, 29724: int abandon, 29724: unsigned int* nbytes_in, 29724: unsigned int* nbytes_out 29724: ); 29724: 29724: extern void BZ2_bzWriteClose64 ( 29724: int* bzerror, 29724: BZFILE* b, 29724: int abandon, 29724: unsigned int* nbytes_in_lo32, 29724: unsigned int* nbytes_in_hi32, 29724: unsigned int* nbytes_out_lo32, 29724: unsigned int* nbytes_out_hi32 29724: ); 29724: 29724: 29724: 29724: 29724: 29724: extern int BZ2_bzBuffToBuffCompress ( 29724: char* dest, 29724: unsigned int* destLen, 29724: char* source, 29724: unsigned int sourceLen, 29724: int blockSize100k, 29724: int verbosity, 29724: int workFactor 29724: ); 29724: 29724: extern int BZ2_bzBuffToBuffDecompress ( 29724: char* dest, 29724: unsigned int* destLen, 29724: char* source, 29724: unsigned int sourceLen, 29724: int small, 29724: int verbosity 29724: ); 29724: # 233 "/usr/include/bzlib.h" 3 4 29724: extern const char * BZ2_bzlibVersion ( 29724: void 29724: ); 29724: 29724: 29724: extern BZFILE * BZ2_bzopen ( 29724: const char *path, 29724: const char *mode 29724: ); 29724: 29724: extern BZFILE * BZ2_bzdopen ( 29724: int fd, 29724: const char *mode 29724: ); 29724: 29724: extern int BZ2_bzread ( 29724: BZFILE* b, 29724: void* buf, 29724: int len 29724: ); 29724: 29724: extern int BZ2_bzwrite ( 29724: BZFILE* b, 29724: void* buf, 29724: int len 29724: ); 29724: 29724: extern int BZ2_bzflush ( 29724: BZFILE* b 29724: ); 29724: 29724: extern void BZ2_bzclose ( 29724: BZFILE* b 29724: ); 29724: 29724: extern const char * BZ2_bzerror ( 29724: BZFILE *b, 29724: int *errnum 29724: ); 29724: 29724: 29724: 29724: } 29724: # 42 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: 29724: # 1 "/usr/include/lz4.h" 1 3 4 29724: # 36 "/usr/include/lz4.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 44 "/usr/include/lz4.h" 2 3 4 29724: # 142 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_versionNumber (void); 29724: __attribute__ ((visibility ("default"))) const char* LZ4_versionString (void); 29724: # 191 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 29724: # 208 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity); 29724: # 226 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compressBound(int inputSize); 29724: # 236 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29724: # 245 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_sizeofState(void); 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29724: # 272 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_destSize(const char* src, char* dst, int* srcSizePtr, int targetDstSize); 29724: # 308 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 29724: 29724: 29724: 29724: 29724: 29724: typedef union LZ4_stream_u LZ4_stream_t; 29724: # 331 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_createStream(void); 29724: __attribute__ ((visibility ("default"))) int LZ4_freeStream (LZ4_stream_t* streamPtr); 29724: # 358 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) void LZ4_resetStream_fast (LZ4_stream_t* streamPtr); 29724: # 371 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 29724: # 380 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_loadDictSlow(LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 29724: # 414 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) void 29724: LZ4_attach_dictionary(LZ4_stream_t* workingStream, 29724: const LZ4_stream_t* dictionaryStream); 29724: # 441 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29724: # 450 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_saveDict (LZ4_stream_t* streamPtr, char* safeBuffer, int maxDictSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef union LZ4_streamDecode_u LZ4_streamDecode_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) LZ4_streamDecode_t* LZ4_createStreamDecode(void); 29724: __attribute__ ((visibility ("default"))) int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream); 29724: # 477 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize); 29724: # 490 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_decoderRingBufferSize(int maxBlockSize); 29724: # 531 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int 29724: LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, 29724: const char* src, char* dst, 29724: int srcSize, int dstCapacity); 29724: # 545 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) int 29724: LZ4_decompress_safe_usingDict(const char* src, char* dst, 29724: int srcSize, int dstCapacity, 29724: const char* dictStart, int dictSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) int 29724: LZ4_decompress_safe_partial_usingDict(const char* src, char* dst, 29724: int compressedSize, 29724: int targetOutputSize, int maxOutputSize, 29724: const char* dictStart, int dictSize); 29724: # 701 "/usr/include/lz4.h" 3 4 29724: typedef int8_t LZ4_i8; 29724: typedef uint8_t LZ4_byte; 29724: typedef uint16_t LZ4_u16; 29724: typedef uint32_t LZ4_u32; 29724: # 718 "/usr/include/lz4.h" 3 4 29724: typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; 29724: struct LZ4_stream_t_internal { 29724: LZ4_u32 hashTable[(1 << (14 -2))]; 29724: const LZ4_byte* dictionary; 29724: const LZ4_stream_t_internal* dictCtx; 29724: LZ4_u32 currentOffset; 29724: LZ4_u32 tableType; 29724: LZ4_u32 dictSize; 29724: 29724: }; 29724: 29724: 29724: union LZ4_stream_u { 29724: char minStateSize[((1UL << (14)) + 32)]; 29724: LZ4_stream_t_internal internal_donotuse; 29724: }; 29724: # 750 "/usr/include/lz4.h" 3 4 29724: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_initStream (void* stateBuffer, size_t size); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef struct { 29724: const LZ4_byte* externalDict; 29724: const LZ4_byte* prefixEnd; 29724: size_t extDictSize; 29724: size_t prefixSize; 29724: } LZ4_streamDecode_t_internal; 29724: 29724: 29724: union LZ4_streamDecode_u { 29724: char minStateSize[32]; 29724: LZ4_streamDecode_t_internal internal_donotuse; 29724: } ; 29724: # 806 "/usr/include/lz4.h" 3 4 29724: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress (const char* src, char* dest, int srcSize); 29724: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput (const char* src, char* dest, int srcSize, int maxOutputSize); 29724: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_withState (void* state, const char* source, char* dest, int inputSize); 29724: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput_withState (void* state, const char* source, char* dest, int inputSize, int maxOutputSize); 29724: [[deprecated("use LZ4_compress_fast_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_continue (LZ4_stream_t* LZ4_streamPtr, const char* source, char* dest, int inputSize); 29724: [[deprecated("use LZ4_compress_fast_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput_continue (LZ4_stream_t* LZ4_streamPtr, const char* source, char* dest, int inputSize, int maxOutputSize); 29724: 29724: 29724: [[deprecated("use LZ4_decompress_fast() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress (const char* source, char* dest, int outputSize); 29724: [[deprecated("use LZ4_decompress_safe() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); 29724: # 827 "/usr/include/lz4.h" 3 4 29724: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_create (char* inputBuffer); 29724: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamState(void); 29724: [[deprecated("Use LZ4_resetStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamState(void* state, char* inputBuffer); 29724: [[deprecated("Use LZ4_saveDict() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBuffer (void* state); 29724: 29724: 29724: [[deprecated("use LZ4_decompress_safe_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, int maxDstSize); 29724: [[deprecated("use LZ4_decompress_fast_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_withPrefix64k (const char* src, char* dst, int originalSize); 29724: # 862 "/usr/include/lz4.h" 3 4 29724: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_partial() instead")]] 29724: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast (const char* src, char* dst, int originalSize); 29724: [[deprecated("This function is deprecated and unsafe. Consider migrating towards LZ4_decompress_safe_continue() instead. " "Note that the contract will change (requires block's compressed size, instead of decompressed size)")]] 29724: 29724: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int originalSize); 29724: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_partial_usingDict() instead")]] 29724: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) void LZ4_resetStream (LZ4_stream_t* streamPtr); 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: # 46 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: # 1 "/usr/include/lz4hc.h" 1 3 4 29724: # 38 "/usr/include/lz4hc.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/lz4.h" 1 3 4 29724: # 36 "/usr/include/lz4.h" 3 4 29724: extern "C" { 29724: # 883 "/usr/include/lz4.h" 3 4 29724: } 29724: # 44 "/usr/include/lz4hc.h" 2 3 4 29724: # 66 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 29724: # 79 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_sizeofStateHC(void); 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_extStateHC(void* stateHC, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 29724: # 91 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_destSize(void* stateHC, 29724: const char* src, char* dst, 29724: int* srcSizePtr, int targetDstSize, 29724: int compressionLevel); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef union LZ4_streamHC_u LZ4_streamHC_t; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_createStreamHC(void); 29724: __attribute__ ((visibility ("default"))) int LZ4_freeStreamHC (LZ4_streamHC_t* streamHCPtr); 29724: # 157 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC_fast(LZ4_streamHC_t* streamHCPtr, int compressionLevel); 29724: __attribute__ ((visibility ("default"))) int LZ4_loadDictHC (LZ4_streamHC_t* streamHCPtr, const char* dictionary, int dictSize); 29724: 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue (LZ4_streamHC_t* streamHCPtr, 29724: const char* src, char* dst, 29724: int srcSize, int maxDstSize); 29724: # 174 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t* LZ4_streamHCPtr, 29724: const char* src, char* dst, 29724: int* srcSizePtr, int targetDstSize); 29724: 29724: __attribute__ ((visibility ("default"))) int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, int maxDictSize); 29724: # 205 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) void 29724: LZ4_attach_HC_dictionary(LZ4_streamHC_t* working_stream, 29724: const LZ4_streamHC_t* dictionary_stream); 29724: # 234 "/usr/include/lz4hc.h" 3 4 29724: typedef struct LZ4HC_CCtx_internal LZ4HC_CCtx_internal; 29724: struct LZ4HC_CCtx_internal 29724: { 29724: LZ4_u32 hashTable[(1 << 15)]; 29724: LZ4_u16 chainTable[(1<<16)]; 29724: const LZ4_byte* end; 29724: const LZ4_byte* prefixStart; 29724: const LZ4_byte* dictStart; 29724: LZ4_u32 dictLimit; 29724: LZ4_u32 lowLimit; 29724: LZ4_u32 nextToUpdate; 29724: short compressionLevel; 29724: LZ4_i8 favorDecSpeed; 29724: 29724: LZ4_i8 dirty; 29724: const LZ4HC_CCtx_internal* dictCtx; 29724: }; 29724: 29724: 29724: union LZ4_streamHC_u { 29724: char minStateSize[262200]; 29724: LZ4HC_CCtx_internal internal_donotuse; 29724: }; 29724: # 275 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_initStreamHC(void* buffer, size_t size); 29724: # 284 "/usr/include/lz4hc.h" 3 4 29724: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC (const char* source, char* dest, int inputSize); 29724: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); 29724: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); 29724: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput(const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29724: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_withStateHC (void* state, const char* source, char* dest, int inputSize); 29724: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput_withStateHC (void* state, const char* source, char* dest, int inputSize, int maxOutputSize); 29724: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_withStateHC (void* state, const char* source, char* dest, int inputSize, int compressionLevel); 29724: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput_withStateHC(void* state, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29724: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize); 29724: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize, int maxOutputSize); 29724: # 304 "/usr/include/lz4hc.h" 3 4 29724: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_createHC (const char* inputBuffer); 29724: [[deprecated("use LZ4_freeStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_freeHC (void* LZ4HC_Data); 29724: 29724: [[deprecated("use LZ4_saveDictHC() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBufferHC (void* LZ4HC_Data); 29724: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int compressionLevel); 29724: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29724: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamStateHC(void); 29724: [[deprecated("use LZ4_initStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamStateHC(void* state, char* inputBuffer); 29724: # 322 "/usr/include/lz4hc.h" 3 4 29724: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionLevel); 29724: 29724: 29724: 29724: } 29724: # 47 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: 29724: # 1 "/usr/include/zstd.h" 1 3 4 29724: # 11 "/usr/include/zstd.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29724: # 19 "/usr/include/zstd.h" 2 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 20 "/usr/include/zstd.h" 2 3 4 29724: # 114 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_versionNumber(void); 29724: # 123 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) const char* ZSTD_versionString(void); 29724: # 155 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compress( void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: int compressionLevel); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress( void* dst, size_t dstCapacity, 29724: const void* src, size_t compressedSize); 29724: # 193 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: [[deprecated("Replaced by ZSTD_getFrameContentSize")]] 29724: __attribute__ ((visibility ("default"))) 29724: unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_findFrameCompressedSize(const void* src, size_t srcSize); 29724: # 233 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compressBound(size_t srcSize); 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_isError(size_t code); 29724: __attribute__ ((visibility ("default"))) const char* ZSTD_getErrorName(size_t code); 29724: __attribute__ ((visibility ("default"))) int ZSTD_minCLevel(void); 29724: __attribute__ ((visibility ("default"))) int ZSTD_maxCLevel(void); 29724: __attribute__ ((visibility ("default"))) int ZSTD_defaultCLevel(void); 29724: # 259 "/usr/include/zstd.h" 3 4 29724: typedef struct ZSTD_CCtx_s ZSTD_CCtx; 29724: __attribute__ ((visibility ("default"))) ZSTD_CCtx* ZSTD_createCCtx(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 29724: # 271 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: int compressionLevel); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef struct ZSTD_DCtx_s ZSTD_DCtx; 29724: __attribute__ ((visibility ("default"))) ZSTD_DCtx* ZSTD_createDCtx(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize); 29724: # 315 "/usr/include/zstd.h" 3 4 29724: typedef enum { ZSTD_fast=1, 29724: ZSTD_dfast=2, 29724: ZSTD_greedy=3, 29724: ZSTD_lazy=4, 29724: ZSTD_lazy2=5, 29724: ZSTD_btlazy2=6, 29724: ZSTD_btopt=7, 29724: ZSTD_btultra=8, 29724: ZSTD_btultra2=9 29724: 29724: 29724: } ZSTD_strategy; 29724: 29724: typedef enum { 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_compressionLevel=100, 29724: # 347 "/usr/include/zstd.h" 3 4 29724: ZSTD_c_windowLog=101, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_hashLog=102, 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_chainLog=103, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_searchLog=104, 29724: 29724: 29724: 29724: ZSTD_c_minMatch=105, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_targetLength=106, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_strategy=107, 29724: 29724: 29724: 29724: 29724: ZSTD_c_targetCBlockSize=130, 29724: # 407 "/usr/include/zstd.h" 3 4 29724: ZSTD_c_enableLongDistanceMatching=160, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_ldmHashLog=161, 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_ldmMinMatch=162, 29724: 29724: 29724: 29724: ZSTD_c_ldmBucketSizeLog=163, 29724: 29724: 29724: 29724: ZSTD_c_ldmHashRateLog=164, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_contentSizeFlag=200, 29724: 29724: 29724: 29724: ZSTD_c_checksumFlag=201, 29724: ZSTD_c_dictIDFlag=202, 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: ZSTD_c_nbWorkers=400, 29724: # 459 "/usr/include/zstd.h" 3 4 29724: ZSTD_c_jobSize=401, 29724: 29724: 29724: 29724: 29724: ZSTD_c_overlapLog=402, 29724: # 500 "/usr/include/zstd.h" 3 4 29724: ZSTD_c_experimentalParam1=500, 29724: ZSTD_c_experimentalParam2=10, 29724: ZSTD_c_experimentalParam3=1000, 29724: ZSTD_c_experimentalParam4=1001, 29724: ZSTD_c_experimentalParam5=1002, 29724: 29724: ZSTD_c_experimentalParam7=1004, 29724: ZSTD_c_experimentalParam8=1005, 29724: ZSTD_c_experimentalParam9=1006, 29724: ZSTD_c_experimentalParam10=1007, 29724: ZSTD_c_experimentalParam11=1008, 29724: ZSTD_c_experimentalParam12=1009, 29724: ZSTD_c_experimentalParam13=1010, 29724: ZSTD_c_experimentalParam14=1011, 29724: ZSTD_c_experimentalParam15=1012, 29724: ZSTD_c_experimentalParam16=1013, 29724: ZSTD_c_experimentalParam17=1014, 29724: ZSTD_c_experimentalParam18=1015, 29724: ZSTD_c_experimentalParam19=1016 29724: } ZSTD_cParameter; 29724: 29724: typedef struct { 29724: size_t error; 29724: int lowerBound; 29724: int upperBound; 29724: } ZSTD_bounds; 29724: # 534 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam); 29724: # 547 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value); 29724: # 564 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 29724: 29724: typedef enum { 29724: ZSTD_reset_session_only = 1, 29724: ZSTD_reset_parameters = 2, 29724: ZSTD_reset_session_and_parameters = 3 29724: } ZSTD_ResetDirective; 29724: # 586 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); 29724: # 600 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compress2( ZSTD_CCtx* cctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize); 29724: # 617 "/usr/include/zstd.h" 3 4 29724: typedef enum { 29724: 29724: ZSTD_d_windowLogMax=100, 29724: # 638 "/usr/include/zstd.h" 3 4 29724: ZSTD_d_experimentalParam1=1000, 29724: ZSTD_d_experimentalParam2=1001, 29724: ZSTD_d_experimentalParam3=1002, 29724: ZSTD_d_experimentalParam4=1003, 29724: ZSTD_d_experimentalParam5=1004, 29724: ZSTD_d_experimentalParam6=1005 29724: 29724: } ZSTD_dParameter; 29724: # 654 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam); 29724: # 663 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int value); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset); 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef struct ZSTD_inBuffer_s { 29724: const void* src; 29724: size_t size; 29724: size_t pos; 29724: } ZSTD_inBuffer; 29724: 29724: typedef struct ZSTD_outBuffer_s { 29724: void* dst; 29724: size_t size; 29724: size_t pos; 29724: } ZSTD_outBuffer; 29724: # 753 "/usr/include/zstd.h" 3 4 29724: typedef ZSTD_CCtx ZSTD_CStream; 29724: 29724: 29724: __attribute__ ((visibility ("default"))) ZSTD_CStream* ZSTD_createCStream(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCStream(ZSTD_CStream* zcs); 29724: 29724: 29724: typedef enum { 29724: ZSTD_e_continue=0, 29724: ZSTD_e_flush=1, 29724: 29724: 29724: 29724: ZSTD_e_end=2 29724: 29724: 29724: 29724: 29724: } ZSTD_EndDirective; 29724: # 800 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 29724: ZSTD_outBuffer* output, 29724: ZSTD_inBuffer* input, 29724: ZSTD_EndDirective endOp); 29724: # 819 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamInSize(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamOutSize(void); 29724: # 839 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 29724: # 880 "/usr/include/zstd.h" 3 4 29724: typedef ZSTD_DCtx ZSTD_DStream; 29724: 29724: 29724: __attribute__ ((visibility ("default"))) ZSTD_DStream* ZSTD_createDStream(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDStream(ZSTD_DStream* zds); 29724: # 896 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_initDStream(ZSTD_DStream* zds); 29724: # 919 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamInSize(void); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamOutSize(void); 29724: # 935 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingDict(ZSTD_CCtx* ctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: const void* dict,size_t dictSize, 29724: int compressionLevel); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: const void* dict,size_t dictSize); 29724: 29724: 29724: 29724: 29724: 29724: typedef struct ZSTD_CDict_s ZSTD_CDict; 29724: # 970 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 29724: int compressionLevel); 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: const ZSTD_CDict* cdict); 29724: 29724: 29724: typedef struct ZSTD_DDict_s ZSTD_DDict; 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDDict(ZSTD_DDict* ddict); 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, 29724: void* dst, size_t dstCapacity, 29724: const void* src, size_t srcSize, 29724: const ZSTD_DDict* ddict); 29724: # 1018 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict); 29724: # 1042 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize); 29724: # 1079 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); 29724: # 1093 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 29724: # 1114 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 29724: const void* prefix, size_t prefixSize); 29724: # 1132 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); 29724: # 1151 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 29724: # 1169 "/usr/include/zstd.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, 29724: const void* prefix, size_t prefixSize); 29724: 29724: 29724: 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CStream(const ZSTD_CStream* zcs); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DStream(const ZSTD_DStream* zds); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 29724: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict); 29724: # 3088 "/usr/include/zstd.h" 3 4 29724: } 29724: # 51 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: 29724: 29724: # 1 "/usr/include/zdict.h" 1 3 4 29724: # 12 "/usr/include/zdict.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 20 "/usr/include/zdict.h" 2 3 4 29724: # 210 "/usr/include/zdict.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity, 29724: const void* samplesBuffer, 29724: const size_t* samplesSizes, unsigned nbSamples); 29724: 29724: typedef struct { 29724: int compressionLevel; 29724: unsigned notificationLevel; 29724: unsigned dictID; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } ZDICT_params_t; 29724: # 262 "/usr/include/zdict.h" 3 4 29724: __attribute__ ((visibility ("default"))) size_t ZDICT_finalizeDictionary(void* dstDictBuffer, size_t maxDictSize, 29724: const void* dictContent, size_t dictContentSize, 29724: const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, 29724: ZDICT_params_t parameters); 29724: 29724: 29724: 29724: __attribute__ ((visibility ("default"))) unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); 29724: __attribute__ ((visibility ("default"))) size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize); 29724: __attribute__ ((visibility ("default"))) unsigned ZDICT_isError(size_t errorCode); 29724: __attribute__ ((visibility ("default"))) const char* ZDICT_getErrorName(size_t errorCode); 29724: # 473 "/usr/include/zdict.h" 3 4 29724: } 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: namespace rocksdb { 29724: # 88 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: class ZSTDUncompressCachedData { 29724: public: 29724: using ZSTDNativeContext = ZSTD_DCtx*; 29724: ZSTDUncompressCachedData() {} 29724: 29724: ZSTDUncompressCachedData(const ZSTDUncompressCachedData& o) = delete; 29724: ZSTDUncompressCachedData& operator=(const ZSTDUncompressCachedData&) = delete; 29724: ZSTDUncompressCachedData(ZSTDUncompressCachedData&& o) noexcept 29724: : ZSTDUncompressCachedData() { 29724: *this = std::move(o); 29724: } 29724: ZSTDUncompressCachedData& operator=(ZSTDUncompressCachedData&& o) noexcept { 29724: 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: zstd_ctx_ == nullptr 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "zstd_ctx_ == nullptr" 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: std::swap(zstd_ctx_, o.zstd_ctx_); 29724: std::swap(cache_idx_, o.cache_idx_); 29724: return *this; 29724: } 29724: ZSTDNativeContext Get() const { return zstd_ctx_; } 29724: int64_t GetCacheIndex() const { return cache_idx_; } 29724: void CreateIfNeeded() { 29724: if (zstd_ctx_ == nullptr) { 29724: 29724: 29724: 29724: 29724: zstd_ctx_ = ZSTD_createDCtx(); 29724: 29724: cache_idx_ = -1; 29724: } 29724: } 29724: void InitFromCache(const ZSTDUncompressCachedData& o, int64_t idx) { 29724: zstd_ctx_ = o.zstd_ctx_; 29724: cache_idx_ = idx; 29724: } 29724: ~ZSTDUncompressCachedData() { 29724: if (zstd_ctx_ != nullptr && cache_idx_ == -1) { 29724: ZSTD_freeDCtx(zstd_ctx_); 29724: } 29724: } 29724: 29724: private: 29724: ZSTDNativeContext zstd_ctx_ = nullptr; 29724: int64_t cache_idx_ = -1; 29724: }; 29724: 29724: } 29724: # 163 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: struct CompressionDict { 29724: 29724: ZSTD_CDict* zstd_cdict_ = nullptr; 29724: 29724: std::string dict_; 29724: 29724: public: 29724: 29724: CompressionDict(std::string dict, CompressionType type, int level) { 29724: 29724: 29724: 29724: dict_ = std::move(dict); 29724: 29724: zstd_cdict_ = nullptr; 29724: if (!dict_.empty() && (type == kZSTD || type == kZSTDNotFinalCompression)) { 29724: if (level == CompressionOptions::kDefaultCompressionLevel) { 29724: 29724: 29724: 29724: 29724: 29724: level = 3; 29724: } 29724: 29724: 29724: zstd_cdict_ = ZSTD_createCDict(dict_.data(), dict_.size(), level); 29724: 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: zstd_cdict_ != nullptr 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "zstd_cdict_ != nullptr" 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: } 29724: 29724: } 29724: 29724: ~CompressionDict() { 29724: 29724: size_t res = 0; 29724: if (zstd_cdict_ != nullptr) { 29724: res = ZSTD_freeCDict(zstd_cdict_); 29724: } 29724: 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: res == 0 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "res == 0" 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: (void)res; 29724: 29724: } 29724: 29724: 29724: const ZSTD_CDict* GetDigestedZstdCDict() const { return zstd_cdict_; } 29724: 29724: 29724: Slice GetRawDict() const { return dict_; } 29724: 29724: static const CompressionDict& GetEmptyDict() { 29724: static CompressionDict empty_dict{}; 29724: return empty_dict; 29724: } 29724: 29724: CompressionDict() = default; 29724: 29724: CompressionDict(const CompressionDict&) = delete; 29724: CompressionDict& operator=(const CompressionDict&) = delete; 29724: CompressionDict(CompressionDict&&) = delete; 29724: CompressionDict& operator=(CompressionDict&&) = delete; 29724: }; 29724: 29724: 29724: 29724: struct UncompressionDict { 29724: 29724: 29724: std::string dict_; 29724: 29724: 29724: 29724: 29724: CacheAllocationPtr allocation_; 29724: 29724: 29724: 29724: 29724: Slice slice_; 29724: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: UncompressionDict(std::string dict, bool ) 29724: 29724: : dict_(std::move(dict)), slice_(dict_) { 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: UncompressionDict(Slice slice, CacheAllocationPtr&& allocation, 29724: bool ) 29724: 29724: : allocation_(std::move(allocation)), slice_(std::move(slice)) { 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: UncompressionDict(UncompressionDict&& rhs) 29724: : dict_(std::move(rhs.dict_)), 29724: allocation_(std::move(rhs.allocation_)), 29724: slice_(std::move(rhs.slice_)) 29724: 29724: 29724: 29724: 29724: { 29724: 29724: 29724: 29724: } 29724: 29724: ~UncompressionDict() { 29724: # 304 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: UncompressionDict& operator=(UncompressionDict&& rhs) { 29724: if (this == &rhs) { 29724: return *this; 29724: } 29724: 29724: dict_ = std::move(rhs.dict_); 29724: allocation_ = std::move(rhs.allocation_); 29724: slice_ = std::move(rhs.slice_); 29724: 29724: 29724: 29724: 29724: 29724: 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: bool own_bytes() const { return !dict_.empty() || allocation_; } 29724: 29724: const Slice& GetRawDict() const { return slice_; } 29724: 29724: 29724: const Slice& ContentSlice() const { return slice_; } 29724: static constexpr CacheEntryRole kCacheEntryRole = CacheEntryRole::kOtherBlock; 29724: static constexpr BlockType kBlockType = BlockType::kCompressionDictionary; 29724: 29724: 29724: 29724: 29724: 29724: static const UncompressionDict& GetEmptyDict() { 29724: static UncompressionDict empty_dict{}; 29724: return empty_dict; 29724: } 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: size_t usage = sizeof(struct UncompressionDict); 29724: usage += dict_.size(); 29724: if (allocation_) { 29724: auto allocator = allocation_.get_deleter().allocator; 29724: if (allocator) { 29724: usage += allocator->UsableSize(allocation_.get(), slice_.size()); 29724: } else { 29724: usage += slice_.size(); 29724: } 29724: } 29724: 29724: 29724: 29724: return usage; 29724: } 29724: 29724: UncompressionDict() = default; 29724: 29724: UncompressionDict(const CompressionDict&) = delete; 29724: UncompressionDict& operator=(const CompressionDict&) = delete; 29724: }; 29724: 29724: class CompressionContext { 29724: private: 29724: 29724: ZSTD_CCtx* zstd_ctx_ = nullptr; 29724: 29724: ZSTD_CCtx* CreateZSTDContext() { 29724: 29724: 29724: 29724: return ZSTD_createCCtx(); 29724: 29724: } 29724: 29724: void CreateNativeContext(CompressionType type, int level, bool checksum) { 29724: if (type == kZSTD || type == kZSTDNotFinalCompression) { 29724: zstd_ctx_ = CreateZSTDContext(); 29724: 29724: if (level == CompressionOptions::kDefaultCompressionLevel) { 29724: 29724: 29724: level = 3; 29724: } 29724: size_t err = 29724: ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_compressionLevel, level); 29724: if (ZSTD_isError(err)) { 29724: 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: false 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "false" 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: ZSTD_freeCCtx(zstd_ctx_); 29724: zstd_ctx_ = CreateZSTDContext(); 29724: } 29724: if (checksum) { 29724: err = ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_checksumFlag, 1); 29724: if (ZSTD_isError(err)) { 29724: 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: false 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "false" 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: ZSTD_freeCCtx(zstd_ctx_); 29724: zstd_ctx_ = CreateZSTDContext(); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: } 29724: } 29724: void DestroyNativeContext() { 29724: if (zstd_ctx_ != nullptr) { 29724: ZSTD_freeCCtx(zstd_ctx_); 29724: } 29724: } 29724: 29724: public: 29724: 29724: ZSTD_CCtx* ZSTDPreallocCtx() const { 29724: 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: zstd_ctx_ != nullptr 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "zstd_ctx_ != nullptr" 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: return zstd_ctx_; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: public: 29724: explicit CompressionContext(CompressionType type, 29724: const CompressionOptions& options) { 29724: CreateNativeContext(type, options.level, options.checksum); 29724: } 29724: ~CompressionContext() { DestroyNativeContext(); } 29724: CompressionContext(const CompressionContext&) = delete; 29724: CompressionContext& operator=(const CompressionContext&) = delete; 29724: }; 29724: 29724: class CompressionInfo { 29724: const CompressionOptions& opts_; 29724: const CompressionContext& context_; 29724: const CompressionDict& dict_; 29724: const CompressionType type_; 29724: const uint64_t sample_for_compression_; 29724: 29724: public: 29724: CompressionInfo(const CompressionOptions& _opts, 29724: const CompressionContext& _context, 29724: const CompressionDict& _dict, CompressionType _type, 29724: uint64_t _sample_for_compression) 29724: : opts_(_opts), 29724: context_(_context), 29724: dict_(_dict), 29724: type_(_type), 29724: sample_for_compression_(_sample_for_compression) {} 29724: 29724: const CompressionOptions& options() const { return opts_; } 29724: const CompressionContext& context() const { return context_; } 29724: const CompressionDict& dict() const { return dict_; } 29724: CompressionType type() const { return type_; } 29724: uint64_t SampleForCompression() const { return sample_for_compression_; } 29724: }; 29724: 29724: class UncompressionContext { 29724: private: 29724: CompressionContextCache* ctx_cache_ = nullptr; 29724: ZSTDUncompressCachedData uncomp_cached_data_; 29724: 29724: public: 29724: explicit UncompressionContext(CompressionType type) { 29724: if (type == kZSTD || type == kZSTDNotFinalCompression) { 29724: ctx_cache_ = CompressionContextCache::Instance(); 29724: uncomp_cached_data_ = ctx_cache_->GetCachedZSTDUncompressData(); 29724: } 29724: } 29724: ~UncompressionContext() { 29724: if (uncomp_cached_data_.GetCacheIndex() != -1) { 29724: 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ctx_cache_ != nullptr 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "ctx_cache_ != nullptr" 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: ctx_cache_->ReturnCachedZSTDUncompressData( 29724: uncomp_cached_data_.GetCacheIndex()); 29724: } 29724: } 29724: UncompressionContext(const UncompressionContext&) = delete; 29724: UncompressionContext& operator=(const UncompressionContext&) = delete; 29724: 29724: ZSTDUncompressCachedData::ZSTDNativeContext GetZSTDContext() const { 29724: return uncomp_cached_data_.Get(); 29724: } 29724: }; 29724: 29724: class UncompressionInfo { 29724: const UncompressionContext& context_; 29724: const UncompressionDict& dict_; 29724: const CompressionType type_; 29724: 29724: public: 29724: UncompressionInfo(const UncompressionContext& _context, 29724: const UncompressionDict& _dict, CompressionType _type) 29724: : context_(_context), dict_(_dict), type_(_type) {} 29724: 29724: const UncompressionContext& context() const { return context_; } 29724: const UncompressionDict& dict() const { return dict_; } 29724: CompressionType type() const { return type_; } 29724: }; 29724: 29724: inline bool Snappy_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool Zlib_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool BZip2_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool LZ4_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool XPRESS_Supported() { 29724: 29724: 29724: 29724: return false; 29724: 29724: } 29724: 29724: inline bool ZSTD_Supported() { 29724: 29724: 29724: return (ZSTD_versionNumber() >= 800); 29724: 29724: 29724: 29724: } 29724: 29724: inline bool ZSTDNotFinal_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool ZSTD_Streaming_Supported() { 29724: 29724: return true; 29724: 29724: 29724: 29724: } 29724: 29724: inline bool StreamingCompressionTypeSupported( 29724: CompressionType compression_type) { 29724: switch (compression_type) { 29724: case kNoCompression: 29724: return true; 29724: case kZSTD: 29724: return ZSTD_Streaming_Supported(); 29724: default: 29724: return false; 29724: } 29724: } 29724: 29724: inline bool CompressionTypeSupported(CompressionType compression_type) { 29724: switch (compression_type) { 29724: case kNoCompression: 29724: return true; 29724: case kSnappyCompression: 29724: return Snappy_Supported(); 29724: case kZlibCompression: 29724: return Zlib_Supported(); 29724: case kBZip2Compression: 29724: return BZip2_Supported(); 29724: case kLZ4Compression: 29724: return LZ4_Supported(); 29724: case kLZ4HCCompression: 29724: return LZ4_Supported(); 29724: case kXpressCompression: 29724: return XPRESS_Supported(); 29724: case kZSTDNotFinalCompression: 29724: return ZSTDNotFinal_Supported(); 29724: case kZSTD: 29724: return ZSTD_Supported(); 29724: default: 29724: 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: false 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "false" 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: return false; 29724: } 29724: } 29724: 29724: inline bool DictCompressionTypeSupported(CompressionType compression_type) { 29724: switch (compression_type) { 29724: case kNoCompression: 29724: return false; 29724: case kSnappyCompression: 29724: return false; 29724: case kZlibCompression: 29724: return Zlib_Supported(); 29724: case kBZip2Compression: 29724: return false; 29724: case kLZ4Compression: 29724: case kLZ4HCCompression: 29724: 29724: return LZ4_Supported(); 29724: 29724: 29724: 29724: case kXpressCompression: 29724: return false; 29724: case kZSTDNotFinalCompression: 29724: 29724: return ZSTDNotFinal_Supported(); 29724: 29724: 29724: 29724: case kZSTD: 29724: 29724: return ZSTD_Supported(); 29724: 29724: 29724: 29724: default: 29724: 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: false 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "false" 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: return false; 29724: } 29724: } 29724: 29724: inline std::string CompressionTypeToString(CompressionType compression_type) { 29724: switch (compression_type) { 29724: case kNoCompression: 29724: return "NoCompression"; 29724: case kSnappyCompression: 29724: return "Snappy"; 29724: case kZlibCompression: 29724: return "Zlib"; 29724: case kBZip2Compression: 29724: return "BZip2"; 29724: case kLZ4Compression: 29724: return "LZ4"; 29724: case kLZ4HCCompression: 29724: return "LZ4HC"; 29724: case kXpressCompression: 29724: return "Xpress"; 29724: case kZSTD: 29724: return "ZSTD"; 29724: case kZSTDNotFinalCompression: 29724: return "ZSTDNotFinal"; 29724: case kDisableCompressionOption: 29724: return "DisableOption"; 29724: default: 29724: 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: false 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "false" 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: return ""; 29724: } 29724: } 29724: 29724: inline std::string CompressionOptionsToString( 29724: CompressionOptions& compression_options) { 29724: std::string result; 29724: result.reserve(512); 29724: result.append("window_bits=") 29724: .append(std::to_string(compression_options.window_bits)) 29724: .append("; "); 29724: result.append("level=") 29724: .append(std::to_string(compression_options.level)) 29724: .append("; "); 29724: result.append("strategy=") 29724: .append(std::to_string(compression_options.strategy)) 29724: .append("; "); 29724: result.append("max_dict_bytes=") 29724: .append(std::to_string(compression_options.max_dict_bytes)) 29724: .append("; "); 29724: result.append("zstd_max_train_bytes=") 29724: .append(std::to_string(compression_options.zstd_max_train_bytes)) 29724: .append("; "); 29724: result.append("enabled=") 29724: .append(std::to_string(compression_options.enabled)) 29724: .append("; "); 29724: result.append("max_dict_buffer_bytes=") 29724: .append(std::to_string(compression_options.max_dict_buffer_bytes)) 29724: .append("; "); 29724: result.append("use_zstd_dict_trainer=") 29724: .append(std::to_string(compression_options.use_zstd_dict_trainer)) 29724: .append("; "); 29724: return result; 29724: } 29724: # 713 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: inline bool Snappy_Compress(const CompressionInfo& , const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: output->resize(snappy::MaxCompressedLength(length)); 29724: size_t outlen; 29724: snappy::RawCompress(input, length, &(*output)[0], &outlen); 29724: output->resize(outlen); 29724: return true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: inline CacheAllocationPtr Snappy_Uncompress( 29724: const char* input, size_t length, size_t* uncompressed_size, 29724: MemoryAllocator* allocator = nullptr) { 29724: 29724: size_t uncompressed_length = 0; 29724: if (!snappy::GetUncompressedLength(input, length, &uncompressed_length)) { 29724: return nullptr; 29724: } 29724: 29724: CacheAllocationPtr output = AllocateBlock(uncompressed_length, allocator); 29724: 29724: if (!snappy::RawUncompress(input, length, output.get())) { 29724: return nullptr; 29724: } 29724: 29724: *uncompressed_size = uncompressed_length; 29724: 29724: return output; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: namespace compression { 29724: 29724: inline size_t PutDecompressedSizeInfo(std::string* output, uint32_t length) { 29724: PutVarint32(output, length); 29724: return output->size(); 29724: } 29724: 29724: inline bool GetDecompressedSizeInfo(const char** input_data, 29724: size_t* input_length, 29724: uint32_t* output_len) { 29724: auto new_input_data = 29724: GetVarint32Ptr(*input_data, *input_data + *input_length, output_len); 29724: if (new_input_data == nullptr) { 29724: return false; 29724: } 29724: *input_length -= (new_input_data - *input_data); 29724: *input_data = new_input_data; 29724: return true; 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline bool Zlib_Compress(const CompressionInfo& info, 29724: uint32_t compress_format_version, const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: if (length > std::numeric_limits::max()) { 29724: 29724: return false; 29724: } 29724: 29724: size_t output_header_len = 0; 29724: if (compress_format_version == 2) { 29724: output_header_len = compression::PutDecompressedSizeInfo( 29724: output, static_cast(length)); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: static const int memLevel = 8; 29724: int level; 29724: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 29724: level = 29724: # 806 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (-1) 29724: # 806 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: } else { 29724: level = info.options().level; 29724: } 29724: z_stream _stream; 29724: memset(&_stream, 0, sizeof(z_stream)); 29724: int st = 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: deflateInit2_(( 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: &_stream 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ),( 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: level 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ),(8),( 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: info.options().window_bits 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ),( 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: memLevel 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ), ( 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: info.options().strategy 29724: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ), "1.3.1", (int)sizeof(z_stream)) 29724: 29724: # 813 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: if (st != 29724: # 814 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 814 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: return false; 29724: } 29724: 29724: Slice compression_dict = info.dict().GetRawDict(); 29724: if (compression_dict.size()) { 29724: 29724: st = deflateSetDictionary( 29724: &_stream, reinterpret_cast(compression_dict.data()), 29724: static_cast(compression_dict.size())); 29724: if (st != 29724: # 824 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 824 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: deflateEnd(&_stream); 29724: return false; 29724: } 29724: } 29724: 29724: 29724: size_t upper_bound = 29724: deflateBound(&_stream, static_cast(length)); 29724: output->resize(output_header_len + upper_bound); 29724: 29724: 29724: _stream.next_in = (Bytef*)input; 29724: _stream.avail_in = static_cast(length); 29724: 29724: 29724: _stream.avail_out = static_cast(upper_bound); 29724: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 29724: 29724: bool compressed = false; 29724: st = deflate(&_stream, 29724: # 844 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 4 29724: # 844 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ); 29724: if (st == 29724: # 845 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 1 29724: # 845 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: compressed = true; 29724: output->resize(output->size() - _stream.avail_out); 29724: } 29724: 29724: 29724: 29724: 29724: deflateEnd(&_stream); 29724: return compressed; 29724: # 863 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline CacheAllocationPtr Zlib_Uncompress( 29724: const UncompressionInfo& info, const char* input_data, size_t input_length, 29724: size_t* uncompressed_size, uint32_t compress_format_version, 29724: MemoryAllocator* allocator = nullptr, int windowBits = -14) { 29724: 29724: uint32_t output_len = 0; 29724: if (compress_format_version == 2) { 29724: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29724: &output_len)) { 29724: return nullptr; 29724: } 29724: } else { 29724: 29724: 29724: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 29724: output_len = static_cast( 29724: std::min(proposed_output_len, 29724: static_cast(std::numeric_limits::max()))); 29724: } 29724: 29724: z_stream _stream; 29724: memset(&_stream, 0, sizeof(z_stream)); 29724: 29724: 29724: 29724: 29724: int st = 29724: 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: inflateInit2_(( 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: &_stream 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ), ( 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: windowBits > 0 ? windowBits + 32 : windowBits 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ), "1.3.1", (int)sizeof(z_stream)) 29724: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: if (st != 29724: # 899 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 899 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: return nullptr; 29724: } 29724: 29724: const Slice& compression_dict = info.dict().GetRawDict(); 29724: if (compression_dict.size()) { 29724: 29724: st = inflateSetDictionary( 29724: &_stream, reinterpret_cast(compression_dict.data()), 29724: static_cast(compression_dict.size())); 29724: if (st != 29724: # 909 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 909 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: return nullptr; 29724: } 29724: } 29724: 29724: _stream.next_in = (Bytef*)input_data; 29724: _stream.avail_in = static_cast(input_length); 29724: 29724: auto output = AllocateBlock(output_len, allocator); 29724: 29724: _stream.next_out = (Bytef*)output.get(); 29724: _stream.avail_out = static_cast(output_len); 29724: 29724: bool done = false; 29724: while (!done) { 29724: st = inflate(&_stream, 29724: # 924 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 2 29724: # 924 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ); 29724: switch (st) { 29724: case 29724: # 926 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 1 29724: # 926 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: : 29724: done = true; 29724: break; 29724: case 29724: # 929 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 929 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: : { 29724: 29724: 29724: 29724: 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: compress_format_version != 2 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "compress_format_version != 2" 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: size_t old_sz = output_len; 29724: uint32_t output_len_delta = output_len / 5; 29724: output_len += output_len_delta < 10 ? 10 : output_len_delta; 29724: auto tmp = AllocateBlock(output_len, allocator); 29724: memcpy(tmp.get(), output.get(), old_sz); 29724: output = std::move(tmp); 29724: 29724: 29724: _stream.next_out = (Bytef*)(output.get() + old_sz); 29724: _stream.avail_out = static_cast(output_len - old_sz); 29724: break; 29724: } 29724: case 29724: # 946 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (-5) 29724: # 946 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: : 29724: default: 29724: inflateEnd(&_stream); 29724: return nullptr; 29724: } 29724: } 29724: 29724: 29724: 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: compress_format_version != 2 || _stream.avail_out == 0 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "compress_format_version != 2 || _stream.avail_out == 0" 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: output_len >= _stream.avail_out 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "output_len >= _stream.avail_out" 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: *uncompressed_size = output_len - _stream.avail_out; 29724: inflateEnd(&_stream); 29724: return output; 29724: # 969 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: inline bool BZip2_Compress(const CompressionInfo& , 29724: uint32_t compress_format_version, const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: if (length > std::numeric_limits::max()) { 29724: 29724: return false; 29724: } 29724: size_t output_header_len = 0; 29724: if (compress_format_version == 2) { 29724: output_header_len = compression::PutDecompressedSizeInfo( 29724: output, static_cast(length)); 29724: } 29724: 29724: 29724: output->resize(output_header_len + length); 29724: 29724: bz_stream _stream; 29724: memset(&_stream, 0, sizeof(bz_stream)); 29724: 29724: 29724: 29724: 29724: int st = BZ2_bzCompressInit(&_stream, 1, 0, 30); 29724: if (st != 29724: # 999 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 999 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: return false; 29724: } 29724: 29724: 29724: _stream.next_in = (char*)input; 29724: _stream.avail_in = static_cast(length); 29724: 29724: 29724: _stream.avail_out = static_cast(length); 29724: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 29724: 29724: bool compressed = false; 29724: st = BZ2_bzCompress(&_stream, 29724: # 1012 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 2 29724: # 1012 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ); 29724: if (st == 29724: # 1013 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 4 29724: # 1013 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: compressed = true; 29724: output->resize(output->size() - _stream.avail_out); 29724: } 29724: 29724: 29724: 29724: 29724: BZ2_bzCompressEnd(&_stream); 29724: return compressed; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: inline CacheAllocationPtr BZip2_Uncompress( 29724: const char* input_data, size_t input_length, size_t* uncompressed_size, 29724: uint32_t compress_format_version, MemoryAllocator* allocator = nullptr) { 29724: 29724: uint32_t output_len = 0; 29724: if (compress_format_version == 2) { 29724: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29724: &output_len)) { 29724: return nullptr; 29724: } 29724: } else { 29724: 29724: 29724: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 29724: output_len = static_cast( 29724: std::min(proposed_output_len, 29724: static_cast(std::numeric_limits::max()))); 29724: } 29724: 29724: bz_stream _stream; 29724: memset(&_stream, 0, sizeof(bz_stream)); 29724: 29724: int st = BZ2_bzDecompressInit(&_stream, 0, 0); 29724: if (st != 29724: # 1059 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 1059 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ) { 29724: return nullptr; 29724: } 29724: 29724: _stream.next_in = (char*)input_data; 29724: _stream.avail_in = static_cast(input_length); 29724: 29724: auto output = AllocateBlock(output_len, allocator); 29724: 29724: _stream.next_out = (char*)output.get(); 29724: _stream.avail_out = static_cast(output_len); 29724: 29724: bool done = false; 29724: while (!done) { 29724: st = BZ2_bzDecompress(&_stream); 29724: switch (st) { 29724: case 29724: # 1075 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 4 29724: # 1075 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: : 29724: done = true; 29724: break; 29724: case 29724: # 1078 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: 0 29724: # 1078 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: : { 29724: 29724: 29724: 29724: 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: compress_format_version != 2 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "compress_format_version != 2" 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: uint32_t old_sz = output_len; 29724: output_len = output_len * 1.2; 29724: auto tmp = AllocateBlock(output_len, allocator); 29724: memcpy(tmp.get(), output.get(), old_sz); 29724: output = std::move(tmp); 29724: 29724: 29724: _stream.next_out = (char*)(output.get() + old_sz); 29724: _stream.avail_out = static_cast(output_len - old_sz); 29724: break; 29724: } 29724: default: 29724: BZ2_bzDecompressEnd(&_stream); 29724: return nullptr; 29724: } 29724: } 29724: 29724: 29724: 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: compress_format_version != 2 || _stream.avail_out == 0 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "compress_format_version != 2 || _stream.avail_out == 0" 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: output_len >= _stream.avail_out 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "output_len >= _stream.avail_out" 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: *uncompressed_size = output_len - _stream.avail_out; 29724: BZ2_bzDecompressEnd(&_stream); 29724: return output; 29724: # 1114 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline bool LZ4_Compress(const CompressionInfo& info, 29724: uint32_t compress_format_version, const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: if (length > std::numeric_limits::max()) { 29724: 29724: return false; 29724: } 29724: 29724: size_t output_header_len = 0; 29724: if (compress_format_version == 2) { 29724: 29724: output_header_len = compression::PutDecompressedSizeInfo( 29724: output, static_cast(length)); 29724: } else { 29724: 29724: 29724: output_header_len = 8; 29724: output->resize(output_header_len); 29724: char* p = const_cast(output->c_str()); 29724: memcpy(p, &length, sizeof(length)); 29724: } 29724: int compress_bound = LZ4_compressBound(static_cast(length)); 29724: output->resize(static_cast(output_header_len + compress_bound)); 29724: 29724: int outlen; 29724: 29724: LZ4_stream_t* stream = LZ4_createStream(); 29724: Slice compression_dict = info.dict().GetRawDict(); 29724: if (compression_dict.size()) { 29724: LZ4_loadDict(stream, compression_dict.data(), 29724: static_cast(compression_dict.size())); 29724: } 29724: 29724: int acceleration; 29724: if (info.options().level < 0) { 29724: acceleration = -info.options().level; 29724: } else { 29724: acceleration = 1; 29724: } 29724: outlen = LZ4_compress_fast_continue( 29724: stream, input, &(*output)[output_header_len], static_cast(length), 29724: compress_bound, acceleration); 29724: 29724: 29724: 29724: 29724: 29724: LZ4_freeStream(stream); 29724: 29724: 29724: 29724: 29724: 29724: if (outlen == 0) { 29724: return false; 29724: } 29724: output->resize(static_cast(output_header_len + outlen)); 29724: return true; 29724: # 1189 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline CacheAllocationPtr LZ4_Uncompress(const UncompressionInfo& info, 29724: const char* input_data, 29724: size_t input_length, 29724: size_t* uncompressed_size, 29724: uint32_t compress_format_version, 29724: MemoryAllocator* allocator = nullptr) { 29724: 29724: uint32_t output_len = 0; 29724: if (compress_format_version == 2) { 29724: 29724: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29724: &output_len)) { 29724: return nullptr; 29724: } 29724: } else { 29724: 29724: 29724: if (input_length < 8) { 29724: return nullptr; 29724: } 29724: if (port::kLittleEndian) { 29724: memcpy(&output_len, input_data, sizeof(output_len)); 29724: } else { 29724: memcpy(&output_len, input_data + 4, sizeof(output_len)); 29724: } 29724: input_length -= 8; 29724: input_data += 8; 29724: } 29724: 29724: auto output = AllocateBlock(output_len, allocator); 29724: 29724: int decompress_bytes = 0; 29724: 29724: 29724: LZ4_streamDecode_t* stream = LZ4_createStreamDecode(); 29724: const Slice& compression_dict = info.dict().GetRawDict(); 29724: if (compression_dict.size()) { 29724: LZ4_setStreamDecode(stream, compression_dict.data(), 29724: static_cast(compression_dict.size())); 29724: } 29724: decompress_bytes = LZ4_decompress_safe_continue( 29724: stream, input_data, output.get(), static_cast(input_length), 29724: static_cast(output_len)); 29724: LZ4_freeStreamDecode(stream); 29724: 29724: 29724: 29724: 29724: 29724: 29724: if (decompress_bytes < 0) { 29724: return nullptr; 29724: } 29724: 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: decompress_bytes == static_cast(output_len) 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "decompress_bytes == static_cast(output_len)" 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: *uncompressed_size = decompress_bytes; 29724: return output; 29724: # 1262 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline bool LZ4HC_Compress(const CompressionInfo& info, 29724: uint32_t compress_format_version, const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: if (length > std::numeric_limits::max()) { 29724: 29724: return false; 29724: } 29724: 29724: size_t output_header_len = 0; 29724: if (compress_format_version == 2) { 29724: 29724: output_header_len = compression::PutDecompressedSizeInfo( 29724: output, static_cast(length)); 29724: } else { 29724: 29724: 29724: output_header_len = 8; 29724: output->resize(output_header_len); 29724: char* p = const_cast(output->c_str()); 29724: memcpy(p, &length, sizeof(length)); 29724: } 29724: int compress_bound = LZ4_compressBound(static_cast(length)); 29724: output->resize(static_cast(output_header_len + compress_bound)); 29724: 29724: int outlen; 29724: int level; 29724: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 29724: level = 0; 29724: } else { 29724: level = info.options().level; 29724: } 29724: 29724: LZ4_streamHC_t* stream = LZ4_createStreamHC(); 29724: LZ4_resetStreamHC(stream, level); 29724: Slice compression_dict = info.dict().GetRawDict(); 29724: const char* compression_dict_data = 29724: compression_dict.size() > 0 ? compression_dict.data() : nullptr; 29724: size_t compression_dict_size = compression_dict.size(); 29724: if (compression_dict_data != nullptr) { 29724: LZ4_loadDictHC(stream, compression_dict_data, 29724: static_cast(compression_dict_size)); 29724: } 29724: 29724: 29724: outlen = 29724: LZ4_compress_HC_continue(stream, input, &(*output)[output_header_len], 29724: static_cast(length), compress_bound); 29724: 29724: 29724: 29724: 29724: 29724: LZ4_freeStreamHC(stream); 29724: # 1335 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: if (outlen == 0) { 29724: return false; 29724: } 29724: output->resize(static_cast(output_header_len + outlen)); 29724: return true; 29724: # 1348 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline bool XPRESS_Compress(const char* , size_t , 29724: std::string* ) { 29724: return false; 29724: } 29724: # 1368 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: inline char* XPRESS_Uncompress(const char* , 29724: size_t , 29724: size_t* ) { 29724: return nullptr; 29724: } 29724: 29724: 29724: inline bool ZSTD_Compress(const CompressionInfo& info, const char* input, 29724: size_t length, ::std::string* output) { 29724: 29724: if (length > std::numeric_limits::max()) { 29724: 29724: return false; 29724: } 29724: 29724: size_t output_header_len = compression::PutDecompressedSizeInfo( 29724: output, static_cast(length)); 29724: 29724: size_t compressBound = ZSTD_compressBound(length); 29724: output->resize(static_cast(output_header_len + compressBound)); 29724: size_t outlen = 0; 29724: 29724: ZSTD_CCtx* context = info.context().ZSTDPreallocCtx(); 29724: 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: context != nullptr 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "context != nullptr" 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: 29724: if (info.dict().GetDigestedZstdCDict() != nullptr) { 29724: ZSTD_CCtx_refCDict(context, info.dict().GetDigestedZstdCDict()); 29724: } else { 29724: ZSTD_CCtx_loadDictionary(context, info.dict().GetRawDict().data(), 29724: info.dict().GetRawDict().size()); 29724: } 29724: 29724: 29724: outlen = ZSTD_compress2(context, &(*output)[output_header_len], compressBound, 29724: input, length); 29724: # 1431 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: if (outlen == 0) { 29724: return false; 29724: } 29724: output->resize(output_header_len + outlen); 29724: return true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline CacheAllocationPtr ZSTD_Uncompress( 29724: const UncompressionInfo& info, const char* input_data, size_t input_length, 29724: size_t* uncompressed_size, MemoryAllocator* allocator = nullptr, 29724: const char** error_message = nullptr) { 29724: 29724: static const char* const kErrorDecodeOutputSize = 29724: "Cannot decode output size."; 29724: static const char* const kErrorOutputLenMismatch = 29724: "Decompressed size does not match header."; 29724: uint32_t output_len = 0; 29724: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29724: &output_len)) { 29724: if (error_message) { 29724: *error_message = kErrorDecodeOutputSize; 29724: } 29724: return nullptr; 29724: } 29724: 29724: CacheAllocationPtr output = AllocateBlock(output_len, allocator); 29724: size_t actual_output_length = 0; 29724: 29724: ZSTD_DCtx* context = info.context().GetZSTDContext(); 29724: 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: context != nullptr 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "context != nullptr" 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: actual_output_length = ZSTD_decompress_usingDict( 29724: context, output.get(), output_len, input_data, input_length, 29724: info.dict().GetRawDict().data(), info.dict().GetRawDict().size()); 29724: # 1491 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: if (ZSTD_isError(actual_output_length)) { 29724: if (error_message) { 29724: *error_message = ZSTD_getErrorName(actual_output_length); 29724: } 29724: return nullptr; 29724: } else if (actual_output_length != output_len) { 29724: if (error_message) { 29724: *error_message = kErrorOutputLenMismatch; 29724: } 29724: return nullptr; 29724: } 29724: 29724: *uncompressed_size = actual_output_length; 29724: return output; 29724: # 1514 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: inline bool ZSTD_TrainDictionarySupported() { 29724: 29724: 29724: 29724: 29724: return (ZSTD_versionNumber() >= 10103); 29724: 29724: 29724: 29724: } 29724: 29724: inline std::string ZSTD_TrainDictionary(const std::string& samples, 29724: const std::vector& sample_lens, 29724: size_t max_dict_bytes) { 29724: 29724: 29724: 29724: 29724: 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: samples.empty() == sample_lens.empty() 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "samples.empty() == sample_lens.empty()" 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: if (samples.empty()) { 29724: return ""; 29724: } 29724: std::string dict_data(max_dict_bytes, '\0'); 29724: size_t dict_len = ZDICT_trainFromBuffer( 29724: &dict_data[0], max_dict_bytes, &samples[0], &sample_lens[0], 29724: static_cast(sample_lens.size())); 29724: if (ZDICT_isError(dict_len)) { 29724: return ""; 29724: } 29724: 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: dict_len <= max_dict_bytes 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "dict_len <= max_dict_bytes" 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: dict_data.resize(dict_len); 29724: return dict_data; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: inline std::string ZSTD_TrainDictionary(const std::string& samples, 29724: size_t sample_len_shift, 29724: size_t max_dict_bytes) { 29724: 29724: 29724: 29724: 29724: size_t num_samples = samples.size() >> sample_len_shift; 29724: std::vector sample_lens(num_samples, size_t(1) << sample_len_shift); 29724: return ZSTD_TrainDictionary(samples, sample_lens, max_dict_bytes); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: } 29724: 29724: inline bool ZSTD_FinalizeDictionarySupported() { 29724: 29724: 29724: return (ZSTD_versionNumber() >= 10405); 29724: 29724: 29724: 29724: } 29724: 29724: inline std::string ZSTD_FinalizeDictionary( 29724: const std::string& samples, const std::vector& sample_lens, 29724: size_t max_dict_bytes, int level) { 29724: 29724: 29724: 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: samples.empty() == sample_lens.empty() 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "samples.empty() == sample_lens.empty()" 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: if (samples.empty()) { 29724: return ""; 29724: } 29724: if (level == CompressionOptions::kDefaultCompressionLevel) { 29724: 29724: 29724: level = 3; 29724: } 29724: std::string dict_data(max_dict_bytes, '\0'); 29724: size_t dict_len = ZDICT_finalizeDictionary( 29724: dict_data.data(), max_dict_bytes, samples.data(), 29724: std::min(static_cast(samples.size()), max_dict_bytes), 29724: samples.data(), sample_lens.data(), 29724: static_cast(sample_lens.size()), 29724: {level, 0 , 0 }); 29724: if (ZDICT_isError(dict_len)) { 29724: return ""; 29724: } else { 29724: 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: dict_len <= max_dict_bytes 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "dict_len <= max_dict_bytes" 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: dict_data.resize(dict_len); 29724: return dict_data; 29724: } 29724: # 1621 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: } 29724: 29724: inline bool CompressData(const Slice& raw, 29724: const CompressionInfo& compression_info, 29724: uint32_t compress_format_version, 29724: std::string* compressed_output) { 29724: bool ret = false; 29724: 29724: 29724: 29724: switch (compression_info.type()) { 29724: case kSnappyCompression: 29724: ret = Snappy_Compress(compression_info, raw.data(), raw.size(), 29724: compressed_output); 29724: break; 29724: case kZlibCompression: 29724: ret = Zlib_Compress(compression_info, compress_format_version, raw.data(), 29724: raw.size(), compressed_output); 29724: break; 29724: case kBZip2Compression: 29724: ret = BZip2_Compress(compression_info, compress_format_version, 29724: raw.data(), raw.size(), compressed_output); 29724: break; 29724: case kLZ4Compression: 29724: ret = LZ4_Compress(compression_info, compress_format_version, raw.data(), 29724: raw.size(), compressed_output); 29724: break; 29724: case kLZ4HCCompression: 29724: ret = LZ4HC_Compress(compression_info, compress_format_version, 29724: raw.data(), raw.size(), compressed_output); 29724: break; 29724: case kXpressCompression: 29724: ret = XPRESS_Compress(raw.data(), raw.size(), compressed_output); 29724: break; 29724: case kZSTD: 29724: case kZSTDNotFinalCompression: 29724: ret = ZSTD_Compress(compression_info, raw.data(), raw.size(), 29724: compressed_output); 29724: break; 29724: default: 29724: 29724: break; 29724: } 29724: 29724: rocksdb::SyncPoint::GetInstance()->Process("CompressData:TamperWithReturnValue", static_cast(&ret)) 29724: ; 29724: 29724: return ret; 29724: } 29724: 29724: inline CacheAllocationPtr UncompressData( 29724: const UncompressionInfo& uncompression_info, const char* data, size_t n, 29724: size_t* uncompressed_size, uint32_t compress_format_version, 29724: MemoryAllocator* allocator = nullptr, 29724: const char** error_message = nullptr) { 29724: switch (uncompression_info.type()) { 29724: case kSnappyCompression: 29724: return Snappy_Uncompress(data, n, uncompressed_size, allocator); 29724: case kZlibCompression: 29724: return Zlib_Uncompress(uncompression_info, data, n, uncompressed_size, 29724: compress_format_version, allocator); 29724: case kBZip2Compression: 29724: return BZip2_Uncompress(data, n, uncompressed_size, 29724: compress_format_version, allocator); 29724: case kLZ4Compression: 29724: case kLZ4HCCompression: 29724: return LZ4_Uncompress(uncompression_info, data, n, uncompressed_size, 29724: compress_format_version, allocator); 29724: case kXpressCompression: 29724: 29724: 29724: return CacheAllocationPtr(XPRESS_Uncompress(data, n, uncompressed_size)); 29724: case kZSTD: 29724: case kZSTDNotFinalCompression: 29724: 29724: return ZSTD_Uncompress(uncompression_info, data, n, uncompressed_size, 29724: allocator, error_message); 29724: default: 29724: return CacheAllocationPtr(); 29724: } 29724: } 29724: 29724: 29724: class CompressionTypeRecord { 29724: public: 29724: explicit CompressionTypeRecord(CompressionType compression_type) 29724: : compression_type_(compression_type) {} 29724: 29724: CompressionType GetCompressionType() const { return compression_type_; } 29724: 29724: inline void EncodeTo(std::string* dst) const { 29724: 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: dst != nullptr 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "dst != nullptr" 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: PutFixed32(dst, compression_type_); 29724: } 29724: 29724: inline Status DecodeFrom(Slice* src) { 29724: constexpr char class_name[] = "CompressionTypeRecord"; 29724: 29724: uint32_t val; 29724: if (!GetFixed32(src, &val)) { 29724: return Status::Corruption(class_name, 29724: "Error decoding WAL compression type"); 29724: } 29724: CompressionType compression_type = static_cast(val); 29724: if (!StreamingCompressionTypeSupported(compression_type)) { 29724: return Status::Corruption(class_name, 29724: "WAL compression type not supported"); 29724: } 29724: compression_type_ = compression_type; 29724: return Status::OK(); 29724: } 29724: 29724: inline std::string DebugString() const { 29724: return "compression_type: " + CompressionTypeToString(compression_type_); 29724: } 29724: 29724: private: 29724: CompressionType compression_type_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class StreamingCompress { 29724: public: 29724: StreamingCompress(CompressionType compression_type, 29724: const CompressionOptions& opts, 29724: uint32_t compress_format_version, size_t max_output_len) 29724: : compression_type_(compression_type), 29724: opts_(opts), 29724: compress_format_version_(compress_format_version), 29724: max_output_len_(max_output_len) {} 29724: virtual ~StreamingCompress() = default; 29724: # 1767 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: virtual int Compress(const char* input, size_t input_size, char* output, 29724: size_t* output_pos) = 0; 29724: 29724: 29724: static StreamingCompress* Create(CompressionType compression_type, 29724: const CompressionOptions& opts, 29724: uint32_t compress_format_version, 29724: size_t max_output_len); 29724: virtual void Reset() = 0; 29724: 29724: protected: 29724: const CompressionType compression_type_; 29724: const CompressionOptions opts_; 29724: const uint32_t compress_format_version_; 29724: const size_t max_output_len_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class StreamingUncompress { 29724: public: 29724: StreamingUncompress(CompressionType compression_type, 29724: uint32_t compress_format_version, size_t max_output_len) 29724: : compression_type_(compression_type), 29724: compress_format_version_(compress_format_version), 29724: max_output_len_(max_output_len) {} 29724: virtual ~StreamingUncompress() = default; 29724: # 1810 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: virtual int Uncompress(const char* input, size_t input_size, char* output, 29724: size_t* output_pos) = 0; 29724: static StreamingUncompress* Create(CompressionType compression_type, 29724: uint32_t compress_format_version, 29724: size_t max_output_len); 29724: virtual void Reset() = 0; 29724: 29724: protected: 29724: CompressionType compression_type_; 29724: uint32_t compress_format_version_; 29724: size_t max_output_len_; 29724: }; 29724: 29724: class ZSTDStreamingCompress final : public StreamingCompress { 29724: public: 29724: explicit ZSTDStreamingCompress(const CompressionOptions& opts, 29724: uint32_t compress_format_version, 29724: size_t max_output_len) 29724: : StreamingCompress(kZSTD, opts, compress_format_version, 29724: max_output_len) { 29724: 29724: cctx_ = ZSTD_createCCtx(); 29724: 29724: ZSTD_CCtx_setParameter(cctx_, ZSTD_c_checksumFlag, 1); 29724: 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: cctx_ != nullptr 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "cctx_ != nullptr" 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: input_buffer_ = { nullptr, 0, 0}; 29724: 29724: } 29724: ~ZSTDStreamingCompress() override { 29724: 29724: ZSTD_freeCCtx(cctx_); 29724: 29724: } 29724: int Compress(const char* input, size_t input_size, char* output, 29724: size_t* output_pos) override; 29724: void Reset() override; 29724: 29724: ZSTD_CCtx* cctx_; 29724: ZSTD_inBuffer input_buffer_; 29724: 29724: }; 29724: 29724: class ZSTDStreamingUncompress final : public StreamingUncompress { 29724: public: 29724: explicit ZSTDStreamingUncompress(uint32_t compress_format_version, 29724: size_t max_output_len) 29724: : StreamingUncompress(kZSTD, compress_format_version, max_output_len) { 29724: 29724: dctx_ = ZSTD_createDCtx(); 29724: 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: (static_cast ( 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: dctx_ != nullptr 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: "dctx_ != nullptr" 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29724: ; 29724: input_buffer_ = { nullptr, 0, 0}; 29724: 29724: } 29724: ~ZSTDStreamingUncompress() override { 29724: 29724: ZSTD_freeDCtx(dctx_); 29724: 29724: } 29724: int Uncompress(const char* input, size_t input_size, char* output, 29724: size_t* output_size) override; 29724: void Reset() override; 29724: 29724: private: 29724: 29724: ZSTD_DCtx* dctx_; 29724: ZSTD_inBuffer input_buffer_; 29724: 29724: }; 29724: 29724: } 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: struct ImmutableCFOptions { 29724: public: 29724: static const char* kName() { return "ImmutableCFOptions"; } 29724: explicit ImmutableCFOptions(); 29724: explicit ImmutableCFOptions(const ColumnFamilyOptions& cf_options); 29724: 29724: CompactionStyle compaction_style; 29724: 29724: CompactionPri compaction_pri; 29724: 29724: const Comparator* user_comparator; 29724: InternalKeyComparator internal_comparator; 29724: 29724: std::shared_ptr merge_operator; 29724: 29724: const CompactionFilter* compaction_filter; 29724: 29724: std::shared_ptr compaction_filter_factory; 29724: 29724: int min_write_buffer_number_to_merge; 29724: 29724: int max_write_buffer_number_to_maintain; 29724: 29724: int64_t max_write_buffer_size_to_maintain; 29724: 29724: bool inplace_update_support; 29724: 29724: UpdateStatus (*inplace_callback)(char* existing_value, 29724: uint32_t* existing_value_size, 29724: Slice delta_value, 29724: std::string* merged_value); 29724: 29724: std::shared_ptr memtable_factory; 29724: 29724: Options::TablePropertiesCollectorFactories 29724: table_properties_collector_factories; 29724: 29724: 29724: 29724: uint32_t bloom_locality; 29724: 29724: bool level_compaction_dynamic_level_bytes; 29724: 29724: int num_levels; 29724: 29724: bool optimize_filters_for_hits; 29724: 29724: bool force_consistency_checks; 29724: 29724: Temperature default_temperature; 29724: 29724: std::shared_ptr 29724: memtable_insert_with_hint_prefix_extractor; 29724: 29724: std::vector cf_paths; 29724: 29724: std::shared_ptr compaction_thread_limiter; 29724: 29724: std::shared_ptr sst_partitioner_factory; 29724: 29724: std::shared_ptr blob_cache; 29724: 29724: bool persist_user_defined_timestamps; 29724: }; 29724: 29724: struct ImmutableOptions : public ImmutableDBOptions, public ImmutableCFOptions { 29724: explicit ImmutableOptions(); 29724: explicit ImmutableOptions(const Options& options); 29724: 29724: ImmutableOptions(const DBOptions& db_options, 29724: const ColumnFamilyOptions& cf_options); 29724: 29724: ImmutableOptions(const ImmutableDBOptions& db_options, 29724: const ImmutableCFOptions& cf_options); 29724: 29724: ImmutableOptions(const DBOptions& db_options, 29724: const ImmutableCFOptions& cf_options); 29724: 29724: ImmutableOptions(const ImmutableDBOptions& db_options, 29724: const ColumnFamilyOptions& cf_options); 29724: }; 29724: 29724: struct MutableCFOptions { 29724: static const char* kName() { return "MutableCFOptions"; } 29724: explicit MutableCFOptions(const ColumnFamilyOptions& options) 29724: : write_buffer_size(options.write_buffer_size), 29724: max_write_buffer_number(options.max_write_buffer_number), 29724: arena_block_size(options.arena_block_size), 29724: memtable_prefix_bloom_size_ratio( 29724: options.memtable_prefix_bloom_size_ratio), 29724: memtable_whole_key_filtering(options.memtable_whole_key_filtering), 29724: memtable_huge_page_size(options.memtable_huge_page_size), 29724: max_successive_merges(options.max_successive_merges), 29724: strict_max_successive_merges(options.strict_max_successive_merges), 29724: inplace_update_num_locks(options.inplace_update_num_locks), 29724: prefix_extractor(options.prefix_extractor), 29724: experimental_mempurge_threshold( 29724: options.experimental_mempurge_threshold), 29724: disable_auto_compactions(options.disable_auto_compactions), 29724: table_factory(options.table_factory), 29724: soft_pending_compaction_bytes_limit( 29724: options.soft_pending_compaction_bytes_limit), 29724: hard_pending_compaction_bytes_limit( 29724: options.hard_pending_compaction_bytes_limit), 29724: level0_file_num_compaction_trigger( 29724: options.level0_file_num_compaction_trigger), 29724: level0_slowdown_writes_trigger(options.level0_slowdown_writes_trigger), 29724: level0_stop_writes_trigger(options.level0_stop_writes_trigger), 29724: max_compaction_bytes(options.max_compaction_bytes), 29724: target_file_size_base(options.target_file_size_base), 29724: target_file_size_multiplier(options.target_file_size_multiplier), 29724: max_bytes_for_level_base(options.max_bytes_for_level_base), 29724: max_bytes_for_level_multiplier(options.max_bytes_for_level_multiplier), 29724: ttl(options.ttl), 29724: periodic_compaction_seconds(options.periodic_compaction_seconds), 29724: max_bytes_for_level_multiplier_additional( 29724: options.max_bytes_for_level_multiplier_additional), 29724: compaction_options_fifo(options.compaction_options_fifo), 29724: compaction_options_universal(options.compaction_options_universal), 29724: preclude_last_level_data_seconds( 29724: options.preclude_last_level_data_seconds), 29724: preserve_internal_time_seconds(options.preserve_internal_time_seconds), 29724: enable_blob_files(options.enable_blob_files), 29724: min_blob_size(options.min_blob_size), 29724: blob_file_size(options.blob_file_size), 29724: blob_compression_type(options.blob_compression_type), 29724: enable_blob_garbage_collection(options.enable_blob_garbage_collection), 29724: blob_garbage_collection_age_cutoff( 29724: options.blob_garbage_collection_age_cutoff), 29724: blob_garbage_collection_force_threshold( 29724: options.blob_garbage_collection_force_threshold), 29724: blob_compaction_readahead_size(options.blob_compaction_readahead_size), 29724: blob_file_starting_level(options.blob_file_starting_level), 29724: prepopulate_blob_cache(options.prepopulate_blob_cache), 29724: max_sequential_skip_in_iterations( 29724: options.max_sequential_skip_in_iterations), 29724: paranoid_file_checks(options.paranoid_file_checks), 29724: report_bg_io_stats(options.report_bg_io_stats), 29724: compression(options.compression), 29724: bottommost_compression(options.bottommost_compression), 29724: compression_opts(options.compression_opts), 29724: bottommost_compression_opts(options.bottommost_compression_opts), 29724: last_level_temperature(options.last_level_temperature), 29724: default_write_temperature(options.default_write_temperature), 29724: memtable_protection_bytes_per_key( 29724: options.memtable_protection_bytes_per_key), 29724: block_protection_bytes_per_key(options.block_protection_bytes_per_key), 29724: paranoid_memory_checks(options.paranoid_memory_checks), 29724: sample_for_compression( 29724: options.sample_for_compression), 29724: compression_per_level(options.compression_per_level), 29724: memtable_max_range_deletions(options.memtable_max_range_deletions), 29724: bottommost_file_compaction_delay( 29724: options.bottommost_file_compaction_delay), 29724: uncache_aggressiveness(options.uncache_aggressiveness) { 29724: RefreshDerivedOptions(options.num_levels, options.compaction_style); 29724: } 29724: 29724: MutableCFOptions() 29724: : write_buffer_size(0), 29724: max_write_buffer_number(0), 29724: arena_block_size(0), 29724: memtable_prefix_bloom_size_ratio(0), 29724: memtable_whole_key_filtering(false), 29724: memtable_huge_page_size(0), 29724: max_successive_merges(0), 29724: strict_max_successive_merges(false), 29724: inplace_update_num_locks(0), 29724: prefix_extractor(nullptr), 29724: experimental_mempurge_threshold(0.0), 29724: disable_auto_compactions(false), 29724: soft_pending_compaction_bytes_limit(0), 29724: hard_pending_compaction_bytes_limit(0), 29724: level0_file_num_compaction_trigger(0), 29724: level0_slowdown_writes_trigger(0), 29724: level0_stop_writes_trigger(0), 29724: max_compaction_bytes(0), 29724: target_file_size_base(0), 29724: target_file_size_multiplier(0), 29724: max_bytes_for_level_base(0), 29724: max_bytes_for_level_multiplier(0), 29724: ttl(0), 29724: periodic_compaction_seconds(0), 29724: compaction_options_fifo(), 29724: preclude_last_level_data_seconds(0), 29724: preserve_internal_time_seconds(0), 29724: enable_blob_files(false), 29724: min_blob_size(0), 29724: blob_file_size(0), 29724: blob_compression_type(kNoCompression), 29724: enable_blob_garbage_collection(false), 29724: blob_garbage_collection_age_cutoff(0.0), 29724: blob_garbage_collection_force_threshold(0.0), 29724: blob_compaction_readahead_size(0), 29724: blob_file_starting_level(0), 29724: prepopulate_blob_cache(PrepopulateBlobCache::kDisable), 29724: max_sequential_skip_in_iterations(0), 29724: paranoid_file_checks(false), 29724: report_bg_io_stats(false), 29724: compression(Snappy_Supported() ? kSnappyCompression : kNoCompression), 29724: bottommost_compression(kDisableCompressionOption), 29724: last_level_temperature(Temperature::kUnknown), 29724: default_write_temperature(Temperature::kUnknown), 29724: memtable_protection_bytes_per_key(0), 29724: block_protection_bytes_per_key(0), 29724: paranoid_memory_checks(false), 29724: sample_for_compression(0), 29724: memtable_max_range_deletions(0), 29724: bottommost_file_compaction_delay(0), 29724: uncache_aggressiveness(0) {} 29724: 29724: explicit MutableCFOptions(const Options& options); 29724: 29724: 29724: void RefreshDerivedOptions(int num_levels, CompactionStyle compaction_style); 29724: 29724: void RefreshDerivedOptions(const ImmutableCFOptions& ioptions) { 29724: RefreshDerivedOptions(ioptions.num_levels, ioptions.compaction_style); 29724: } 29724: 29724: int MaxBytesMultiplerAdditional(int level) const { 29724: if (level >= 29724: static_cast(max_bytes_for_level_multiplier_additional.size())) { 29724: return 1; 29724: } 29724: return max_bytes_for_level_multiplier_additional[level]; 29724: } 29724: 29724: void Dump(Logger* log) const; 29724: 29724: 29724: size_t write_buffer_size; 29724: int max_write_buffer_number; 29724: size_t arena_block_size; 29724: double memtable_prefix_bloom_size_ratio; 29724: bool memtable_whole_key_filtering; 29724: size_t memtable_huge_page_size; 29724: size_t max_successive_merges; 29724: bool strict_max_successive_merges; 29724: size_t inplace_update_num_locks; 29724: 29724: 29724: 29724: std::shared_ptr prefix_extractor; 29724: # 281 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 29724: double experimental_mempurge_threshold; 29724: 29724: 29724: bool disable_auto_compactions; 29724: std::shared_ptr table_factory; 29724: uint64_t soft_pending_compaction_bytes_limit; 29724: uint64_t hard_pending_compaction_bytes_limit; 29724: int level0_file_num_compaction_trigger; 29724: int level0_slowdown_writes_trigger; 29724: int level0_stop_writes_trigger; 29724: uint64_t max_compaction_bytes; 29724: uint64_t target_file_size_base; 29724: int target_file_size_multiplier; 29724: uint64_t max_bytes_for_level_base; 29724: double max_bytes_for_level_multiplier; 29724: uint64_t ttl; 29724: uint64_t periodic_compaction_seconds; 29724: std::vector max_bytes_for_level_multiplier_additional; 29724: CompactionOptionsFIFO compaction_options_fifo; 29724: CompactionOptionsUniversal compaction_options_universal; 29724: uint64_t preclude_last_level_data_seconds; 29724: uint64_t preserve_internal_time_seconds; 29724: 29724: 29724: bool enable_blob_files; 29724: uint64_t min_blob_size; 29724: uint64_t blob_file_size; 29724: CompressionType blob_compression_type; 29724: bool enable_blob_garbage_collection; 29724: double blob_garbage_collection_age_cutoff; 29724: double blob_garbage_collection_force_threshold; 29724: uint64_t blob_compaction_readahead_size; 29724: int blob_file_starting_level; 29724: PrepopulateBlobCache prepopulate_blob_cache; 29724: 29724: 29724: uint64_t max_sequential_skip_in_iterations; 29724: bool paranoid_file_checks; 29724: bool report_bg_io_stats; 29724: CompressionType compression; 29724: CompressionType bottommost_compression; 29724: CompressionOptions compression_opts; 29724: CompressionOptions bottommost_compression_opts; 29724: Temperature last_level_temperature; 29724: Temperature default_write_temperature; 29724: uint32_t memtable_protection_bytes_per_key; 29724: uint8_t block_protection_bytes_per_key; 29724: bool paranoid_memory_checks; 29724: 29724: uint64_t sample_for_compression; 29724: std::vector compression_per_level; 29724: uint32_t memtable_max_range_deletions; 29724: uint32_t bottommost_file_compaction_delay; 29724: uint32_t uncache_aggressiveness; 29724: 29724: 29724: 29724: std::vector max_file_size; 29724: }; 29724: 29724: uint64_t MultiplyCheckOverflow(uint64_t op1, double op2); 29724: 29724: 29724: uint64_t MaxFileSizeForLevel(const MutableCFOptions& cf_options, 29724: int level, CompactionStyle compaction_style, int base_level = 1, 29724: bool level_compaction_dynamic_level_bytes = false); 29724: 29724: 29724: 29724: size_t MaxFileSizeForL0MetaPin(const MutableCFOptions& cf_options); 29724: 29724: Status GetStringFromMutableCFOptions(const ConfigOptions& config_options, 29724: const MutableCFOptions& mutable_opts, 29724: std::string* opt_string); 29724: 29724: Status GetMutableOptionsFromStrings( 29724: const MutableCFOptions& base_options, 29724: const std::unordered_map& options_map, 29724: Logger* info_log, MutableCFOptions* new_options); 29724: 29724: 29724: std::vector TEST_GetImmutableInMutableCFOptions(); 29724: extern bool TEST_allowSetOptionsImmutableInMutable; 29724: 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/malloc.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/port/malloc.h" 29724: 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class RandomAccessFile; 29724: struct ReadOptions; 29724: 29724: bool ShouldReportDetailedTime(Env* env, Statistics* stats); 29724: 29724: 29724: constexpr uint32_t kMagicNumberLengthByte = 8; 29724: 29724: extern const uint64_t kLegacyBlockBasedTableMagicNumber; 29724: extern const uint64_t kBlockBasedTableMagicNumber; 29724: 29724: extern const uint64_t kLegacyPlainTableMagicNumber; 29724: extern const uint64_t kPlainTableMagicNumber; 29724: 29724: extern const uint64_t kCuckooTableMagicNumber; 29724: 29724: 29724: 29724: class BlockHandle { 29724: public: 29724: 29724: 29724: BlockHandle(); 29724: BlockHandle(uint64_t offset, uint64_t size); 29724: 29724: 29724: uint64_t offset() const { return offset_; } 29724: void set_offset(uint64_t _offset) { offset_ = _offset; } 29724: 29724: 29724: uint64_t size() const { return size_; } 29724: void set_size(uint64_t _size) { size_ = _size; } 29724: 29724: void EncodeTo(std::string* dst) const; 29724: char* EncodeTo(char* dst) const; 29724: Status DecodeFrom(Slice* input); 29724: Status DecodeSizeFrom(uint64_t offset, Slice* input); 29724: 29724: 29724: std::string ToString(bool hex = true) const; 29724: 29724: 29724: 29724: bool IsNull() const { return offset_ == 0 && size_ == 0; } 29724: 29724: static const BlockHandle& NullBlockHandle() { return kNullBlockHandle; } 29724: 29724: 29724: static constexpr uint32_t kMaxEncodedLength = 2 * kMaxVarint64Length; 29724: 29724: inline bool operator==(const BlockHandle& rhs) const { 29724: return offset_ == rhs.offset_ && size_ == rhs.size_; 29724: } 29724: inline bool operator!=(const BlockHandle& rhs) const { 29724: return !(*this == rhs); 29724: } 29724: 29724: private: 29724: uint64_t offset_; 29724: uint64_t size_; 29724: 29724: static const BlockHandle kNullBlockHandle; 29724: }; 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: struct IndexValue { 29724: BlockHandle handle; 29724: 29724: Slice first_internal_key; 29724: 29724: IndexValue() = default; 29724: IndexValue(BlockHandle _handle, Slice _first_internal_key) 29724: : handle(_handle), first_internal_key(_first_internal_key) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: void EncodeTo(std::string* dst, bool have_first_key, 29724: const BlockHandle* previous_handle) const; 29724: Status DecodeFrom(Slice* input, bool have_first_key, 29724: const BlockHandle* previous_handle); 29724: 29724: std::string ToString(bool hex, bool have_first_key) const; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline uint32_t ChecksumModifierForContext(uint32_t base_context_checksum, 29724: uint64_t offset) { 29724: 29724: 29724: 29724: 29724: 29724: uint32_t all_or_nothing = uint32_t{0} - (base_context_checksum != 0); 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: uint32_t modifier = 29724: base_context_checksum ^ (Lower32of64(offset) + Upper32of64(offset)); 29724: 29724: return modifier & all_or_nothing; 29724: } 29724: 29724: inline uint32_t GetCompressFormatForVersion(uint32_t format_version) { 29724: 29724: 29724: 29724: return format_version >= 2 ? 2 : 1; 29724: } 29724: 29724: constexpr uint32_t kLatestFormatVersion = 6; 29724: 29724: inline bool IsSupportedFormatVersion(uint32_t version) { 29724: return version <= kLatestFormatVersion; 29724: } 29724: 29724: 29724: inline bool FormatVersionUsesContextChecksum(uint32_t version) { 29724: return version >= 6; 29724: } 29724: 29724: inline bool FormatVersionUsesIndexHandleInFooter(uint32_t version) { 29724: return version < 6; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: class Footer { 29724: public: 29724: 29724: Footer() {} 29724: 29724: void Reset() { 29724: table_magic_number_ = kNullTableMagicNumber; 29724: format_version_ = kInvalidFormatVersion; 29724: base_context_checksum_ = 0; 29724: metaindex_handle_ = BlockHandle::NullBlockHandle(); 29724: index_handle_ = BlockHandle::NullBlockHandle(); 29724: checksum_type_ = kInvalidChecksumType; 29724: block_trailer_size_ = 0; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status DecodeFrom(Slice input, uint64_t input_offset, 29724: uint64_t enforce_table_magic_number = 0); 29724: 29724: 29724: 29724: uint64_t table_magic_number() const { return table_magic_number_; } 29724: 29724: 29724: 29724: 29724: uint32_t format_version() const { return format_version_; } 29724: 29724: 29724: uint32_t base_context_checksum() const { return base_context_checksum_; } 29724: 29724: 29724: const BlockHandle& metaindex_handle() const { return metaindex_handle_; } 29724: 29724: 29724: 29724: const BlockHandle& index_handle() const { return index_handle_; } 29724: 29724: 29724: ChecksumType checksum_type() const { 29724: return static_cast(checksum_type_); 29724: } 29724: 29724: 29724: 29724: 29724: inline size_t GetBlockTrailerSize() const { return block_trailer_size_; } 29724: 29724: 29724: std::string ToString() const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static constexpr uint32_t kVersion0EncodedLength = 29724: 2 * BlockHandle::kMaxEncodedLength + kMagicNumberLengthByte; 29724: static constexpr uint32_t kMinEncodedLength = kVersion0EncodedLength; 29724: 29724: 29724: 29724: 29724: 29724: static constexpr uint32_t kNewVersionsEncodedLength = 29724: 1 + 2 * BlockHandle::kMaxEncodedLength + 4 + kMagicNumberLengthByte; 29724: static constexpr uint32_t kMaxEncodedLength = kNewVersionsEncodedLength; 29724: 29724: static constexpr uint64_t kNullTableMagicNumber = 0; 29724: 29724: static constexpr uint32_t kInvalidFormatVersion = 0xffffffffU; 29724: 29724: private: 29724: static constexpr int kInvalidChecksumType = 29724: (1 << (sizeof(ChecksumType) * 8)) | kNoChecksum; 29724: 29724: uint64_t table_magic_number_ = kNullTableMagicNumber; 29724: uint32_t format_version_ = kInvalidFormatVersion; 29724: uint32_t base_context_checksum_ = 0; 29724: BlockHandle metaindex_handle_; 29724: BlockHandle index_handle_; 29724: int checksum_type_ = kInvalidChecksumType; 29724: uint8_t block_trailer_size_ = 0; 29724: }; 29724: 29724: 29724: class FooterBuilder { 29724: public: 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: Status Build(uint64_t table_magic_number, uint32_t format_version, 29724: uint64_t footer_offset, ChecksumType checksum_type, 29724: const BlockHandle& metaindex_handle, 29724: const BlockHandle& index_handle = BlockHandle::NullBlockHandle(), 29724: uint32_t base_context_checksum = 0); 29724: 29724: 29724: 29724: const Slice& GetSlice() const { 29724: 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29724: (static_cast ( 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: slice_.size() 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: "slice_.size()" 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: ; 29724: return slice_; 29724: } 29724: 29724: private: 29724: Slice slice_; 29724: std::array data_; 29724: }; 29724: 29724: 29724: 29724: 29724: Status ReadFooterFromFile(const IOOptions& opts, RandomAccessFileReader* file, 29724: FileSystem& fs, FilePrefetchBuffer* prefetch_buffer, 29724: uint64_t file_size, Footer* footer, 29724: uint64_t enforce_table_magic_number = 0, 29724: Statistics* stats = nullptr); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t ComputeBuiltinChecksum(ChecksumType type, const char* data, 29724: size_t size); 29724: uint32_t ComputeBuiltinChecksumWithLastByte(ChecksumType type, const char* data, 29724: size_t size, char last_byte); 29724: # 354 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29724: struct BlockContents { 29724: 29724: Slice data; 29724: CacheAllocationPtr allocation; 29724: 29724: 29724: 29724: 29724: bool has_trailer = false; 29724: 29724: 29724: BlockContents() {} 29724: 29724: 29724: BlockContents(const Slice& _data) : data(_data) {} 29724: 29724: 29724: BlockContents(CacheAllocationPtr&& _data, size_t _size) 29724: : data(_data.get(), _size), allocation(std::move(_data)) {} 29724: 29724: 29724: BlockContents(std::unique_ptr&& _data, size_t _size) 29724: : data(_data.get(), _size) { 29724: allocation.reset(_data.release()); 29724: } 29724: 29724: 29724: bool own_bytes() const { return allocation.get() != nullptr; } 29724: 29724: 29724: size_t usable_size() const { 29724: if (allocation.get() != nullptr) { 29724: auto allocator = allocation.get_deleter().allocator; 29724: if (allocator) { 29724: return allocator->UsableSize(allocation.get(), data.size()); 29724: } 29724: 29724: return malloc_usable_size(allocation.get()); 29724: 29724: 29724: 29724: } else { 29724: return 0; 29724: } 29724: } 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: return usable_size() + sizeof(*this); 29724: } 29724: 29724: BlockContents(BlockContents&& other) noexcept { *this = std::move(other); } 29724: 29724: BlockContents& operator=(BlockContents&& other) { 29724: data = std::move(other.data); 29724: allocation = std::move(other.allocation); 29724: 29724: has_trailer = other.has_trailer; 29724: 29724: return *this; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status UncompressSerializedBlock(const UncompressionInfo& info, 29724: const char* data, size_t size, 29724: BlockContents* out_contents, 29724: uint32_t format_version, 29724: const ImmutableOptions& ioptions, 29724: MemoryAllocator* allocator = nullptr); 29724: 29724: 29724: 29724: Status UncompressBlockData(const UncompressionInfo& info, const char* data, 29724: size_t size, BlockContents* out_contents, 29724: uint32_t format_version, 29724: const ImmutableOptions& ioptions, 29724: MemoryAllocator* allocator = nullptr); 29724: 29724: 29724: Status ReifyDbHostIdProperty(Env* env, std::string* db_host_id); 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline BlockHandle::BlockHandle() : BlockHandle(~uint64_t{0}, ~uint64_t{0}) {} 29724: 29724: inline BlockHandle::BlockHandle(uint64_t _offset, uint64_t _size) 29724: : offset_(_offset), size_(_size) {} 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class PinnedIteratorsManager; 29724: 29724: enum class IterBoundCheck : char { 29724: kUnknown = 0, 29724: kOutOfBound, 29724: kInbound, 29724: }; 29724: 29724: struct IterateResult { 29724: Slice key; 29724: IterBoundCheck bound_check_result = IterBoundCheck::kUnknown; 29724: 29724: bool value_prepared = true; 29724: }; 29724: 29724: template 29724: class InternalIteratorBase : public Cleanable { 29724: public: 29724: InternalIteratorBase() {} 29724: 29724: 29724: InternalIteratorBase(const InternalIteratorBase&) = delete; 29724: InternalIteratorBase& operator=(const InternalIteratorBase&) = delete; 29724: 29724: virtual ~InternalIteratorBase() {} 29724: # 55 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: virtual void SetRangeDelReadSeqno(SequenceNumber ) {} 29724: 29724: 29724: 29724: 29724: virtual bool Valid() const = 0; 29724: 29724: 29724: 29724: virtual void SeekToFirst() = 0; 29724: 29724: 29724: 29724: virtual void SeekToLast() = 0; 29724: # 77 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: virtual void Seek(const Slice& target) = 0; 29724: 29724: 29724: 29724: 29724: virtual void SeekForPrev(const Slice& target) = 0; 29724: 29724: 29724: 29724: 29724: virtual void Next() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual bool NextAndGetResult(IterateResult* result) { 29724: Next(); 29724: bool is_valid = Valid(); 29724: if (is_valid) { 29724: result->key = key(); 29724: 29724: 29724: 29724: result->bound_check_result = IterBoundCheck::kUnknown; 29724: result->value_prepared = false; 29724: 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29724: (static_cast ( 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: UpperBoundCheckResult() != IterBoundCheck::kOutOfBound 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: "UpperBoundCheckResult() != IterBoundCheck::kOutOfBound" 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: ; 29724: } 29724: return is_valid; 29724: } 29724: 29724: 29724: 29724: 29724: virtual void Prev() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual Slice key() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual uint64_t write_unix_time() const { 29724: return std::numeric_limits::max(); 29724: } 29724: 29724: 29724: 29724: virtual Slice user_key() const { return ExtractUserKey(key()); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual TValue value() const = 0; 29724: 29724: 29724: 29724: 29724: virtual Status status() const = 0; 29724: # 154 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: virtual bool PrepareValue() { return true; } 29724: 29724: 29724: virtual bool MayBeOutOfLowerBound() { return true; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual IterBoundCheck UpperBoundCheckResult() { 29724: return IterBoundCheck::kUnknown; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void SetPinnedItersMgr(PinnedIteratorsManager* ) { 29724: } 29724: # 184 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: virtual bool IsKeyPinned() const { return false; } 29724: 29724: 29724: 29724: 29724: 29724: virtual bool IsValuePinned() const { return false; } 29724: 29724: virtual Status GetProperty(std::string , std::string* ) { 29724: return Status::NotSupported(""); 29724: } 29724: # 203 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29724: virtual void GetReadaheadState(ReadaheadFileInfo* ) {} 29724: 29724: 29724: virtual void SetReadaheadState(ReadaheadFileInfo* ) {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool IsDeleteRangeSentinelKey() const { return false; } 29724: 29724: protected: 29724: void SeekForPrevImpl(const Slice& target, const CompareInterface* cmp) { 29724: Seek(target); 29724: if (!Valid()) { 29724: SeekToLast(); 29724: } 29724: while (Valid() && cmp->Compare(target, key()) < 0) { 29724: Prev(); 29724: } 29724: } 29724: }; 29724: 29724: using InternalIterator = InternalIteratorBase; 29724: 29724: 29724: template 29724: InternalIteratorBase* NewEmptyInternalIterator(); 29724: 29724: 29724: template 29724: InternalIteratorBase* NewErrorInternalIterator(const Status& status); 29724: 29724: 29724: template 29724: InternalIteratorBase* NewErrorInternalIterator(const Status& status, 29724: Arena* arena); 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: class PinnedIteratorsManager : public Cleanable { 29724: public: 29724: PinnedIteratorsManager() : pinning_enabled(false) {} 29724: ~PinnedIteratorsManager() { 29724: if (pinning_enabled) { 29724: ReleasePinnedData(); 29724: } 29724: } 29724: 29724: 29724: PinnedIteratorsManager(PinnedIteratorsManager&& other) noexcept = default; 29724: PinnedIteratorsManager& operator=(PinnedIteratorsManager&& other) noexcept = 29724: default; 29724: 29724: 29724: void StartPinning() { 29724: 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: (static_cast ( 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: pinning_enabled == false 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: "pinning_enabled == false" 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: ; 29724: pinning_enabled = true; 29724: } 29724: 29724: 29724: bool PinningEnabled() { return pinning_enabled; } 29724: 29724: 29724: void PinIterator(InternalIterator* iter, bool arena = false) { 29724: if (arena) { 29724: PinPtr(iter, &PinnedIteratorsManager::ReleaseArenaInternalIterator); 29724: } else { 29724: PinPtr(iter, &PinnedIteratorsManager::ReleaseInternalIterator); 29724: } 29724: } 29724: 29724: using ReleaseFunction = void (*)(void* arg1); 29724: void PinPtr(void* ptr, ReleaseFunction release_func) { 29724: 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: (static_cast ( 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: pinning_enabled 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: "pinning_enabled" 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: ; 29724: if (ptr == nullptr) { 29724: return; 29724: } 29724: pinned_ptrs_.emplace_back(ptr, release_func); 29724: } 29724: 29724: 29724: inline void ReleasePinnedData() { 29724: 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: (static_cast ( 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: pinning_enabled == true 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: "pinning_enabled == true" 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29724: ; 29724: pinning_enabled = false; 29724: 29724: 29724: std::sort(pinned_ptrs_.begin(), pinned_ptrs_.end()); 29724: auto unique_end = std::unique(pinned_ptrs_.begin(), pinned_ptrs_.end()); 29724: 29724: for (auto i = pinned_ptrs_.begin(); i != unique_end; ++i) { 29724: void* ptr = i->first; 29724: ReleaseFunction release_func = i->second; 29724: release_func(ptr); 29724: } 29724: pinned_ptrs_.clear(); 29724: 29724: Cleanable::Reset(); 29724: } 29724: 29724: private: 29724: static void ReleaseInternalIterator(void* ptr) { 29724: delete static_cast(ptr); 29724: } 29724: 29724: static void ReleaseArenaInternalIterator(void* ptr) { 29724: static_cast(ptr)->~InternalIterator(); 29724: } 29724: 29724: bool pinning_enabled; 29724: std::vector> pinned_ptrs_; 29724: }; 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: namespace rocksdb { 29724: struct FragmentedRangeTombstoneList { 29724: public: 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: struct RangeTombstoneStack { 29724: RangeTombstoneStack(const Slice& start, const Slice& end, size_t start_idx, 29724: size_t end_idx) 29724: : start_key(start), 29724: end_key(end), 29724: seq_start_idx(start_idx), 29724: seq_end_idx(end_idx) {} 29724: Slice start_key; 29724: Slice end_key; 29724: size_t seq_start_idx; 29724: size_t seq_end_idx; 29724: }; 29724: 29724: 29724: FragmentedRangeTombstoneList( 29724: std::unique_ptr unfragmented_tombstones, 29724: const InternalKeyComparator& icmp, bool for_compaction = false, 29724: const std::vector& snapshots = {}, 29724: const bool tombstone_end_include_ts = true); 29724: 29724: std::vector::const_iterator begin() const { 29724: return tombstones_.begin(); 29724: } 29724: 29724: std::vector::const_iterator end() const { 29724: return tombstones_.end(); 29724: } 29724: 29724: std::vector::const_iterator seq_iter(size_t idx) const { 29724: return std::next(tombstone_seqs_.begin(), idx); 29724: } 29724: 29724: std::vector::const_iterator ts_iter(size_t idx) const { 29724: return std::next(tombstone_timestamps_.begin(), idx); 29724: } 29724: 29724: std::vector::const_iterator seq_begin() const { 29724: return tombstone_seqs_.begin(); 29724: } 29724: 29724: std::vector::const_iterator seq_end() const { 29724: return tombstone_seqs_.end(); 29724: } 29724: 29724: bool empty() const { return tombstones_.empty(); } 29724: 29724: 29724: 29724: 29724: 29724: bool ContainsRange(SequenceNumber lower, SequenceNumber upper); 29724: 29724: uint64_t num_unfragmented_tombstones() const { 29724: return num_unfragmented_tombstones_; 29724: } 29724: 29724: uint64_t total_tombstone_payload_bytes() const { 29724: return total_tombstone_payload_bytes_; 29724: } 29724: 29724: private: 29724: # 101 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: void FragmentTombstones( 29724: std::unique_ptr unfragmented_tombstones, 29724: const InternalKeyComparator& icmp, bool for_compaction, 29724: const std::vector& snapshots); 29724: 29724: std::vector tombstones_; 29724: std::vector tombstone_seqs_; 29724: std::vector tombstone_timestamps_; 29724: std::once_flag seq_set_init_once_flag_; 29724: std::set seq_set_; 29724: std::list pinned_slices_; 29724: PinnedIteratorsManager pinned_iters_mgr_; 29724: uint64_t num_unfragmented_tombstones_; 29724: uint64_t total_tombstone_payload_bytes_; 29724: }; 29724: 29724: struct FragmentedRangeTombstoneListCache { 29724: 29724: std::mutex reader_mutex; 29724: std::unique_ptr tombstones = nullptr; 29724: 29724: std::atomic initialized = false; 29724: }; 29724: # 134 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: class FragmentedRangeTombstoneIterator : public InternalIterator { 29724: public: 29724: FragmentedRangeTombstoneIterator(FragmentedRangeTombstoneList* tombstones, 29724: const InternalKeyComparator& icmp, 29724: SequenceNumber upper_bound, 29724: const Slice* ts_upper_bound = nullptr, 29724: SequenceNumber lower_bound = 0); 29724: FragmentedRangeTombstoneIterator( 29724: const std::shared_ptr& tombstones, 29724: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 29724: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 29724: FragmentedRangeTombstoneIterator( 29724: const std::shared_ptr& tombstones, 29724: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 29724: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 29724: 29724: void SetRangeDelReadSeqno(SequenceNumber read_seqno) override { 29724: upper_bound_ = read_seqno; 29724: } 29724: 29724: void SeekToFirst() override; 29724: void SeekToLast() override; 29724: 29724: void SeekToTopFirst(); 29724: void SeekToTopLast(); 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: void Seek(const Slice& target) override; 29724: 29724: 29724: 29724: void SeekForPrev(const Slice& target) override; 29724: 29724: void Next() override; 29724: void Prev() override; 29724: 29724: void TopNext(); 29724: void TopPrev(); 29724: 29724: bool Valid() const override; 29724: 29724: 29724: Slice key() const override { 29724: MaybePinKey(); 29724: return current_start_key_.Encode(); 29724: } 29724: Slice value() const override { return pos_->end_key; } 29724: bool IsKeyPinned() const override { return false; } 29724: bool IsValuePinned() const override { return true; } 29724: Status status() const override { return Status::OK(); } 29724: 29724: bool empty() const { return tombstones_->empty(); } 29724: void Invalidate() { 29724: pos_ = tombstones_->end(); 29724: seq_pos_ = tombstones_->seq_end(); 29724: pinned_pos_ = tombstones_->end(); 29724: pinned_seq_pos_ = tombstones_->seq_end(); 29724: } 29724: 29724: RangeTombstone Tombstone() const { 29724: 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29724: (static_cast ( 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: Valid() 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: "Valid()" 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: ; 29724: if (icmp_->user_comparator()->timestamp_size()) { 29724: return RangeTombstone(start_key(), end_key(), seq(), timestamp()); 29724: } 29724: return RangeTombstone(start_key(), end_key(), seq()); 29724: } 29724: 29724: 29724: 29724: 29724: Slice start_key() const { return pos_->start_key; } 29724: Slice end_key() const { return pos_->end_key; } 29724: SequenceNumber seq() const { return *seq_pos_; } 29724: Slice timestamp() const { 29724: 29724: return *tombstones_->ts_iter(seq_pos_ - tombstones_->seq_begin()); 29724: } 29724: 29724: 29724: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 29724: ts_upper_bound_ = ts_upper_bound; 29724: } 29724: 29724: ParsedInternalKey parsed_start_key() const { 29724: return ParsedInternalKey(pos_->start_key, seq(), kTypeRangeDeletion); 29724: } 29724: ParsedInternalKey parsed_end_key() const { 29724: return ParsedInternalKey(pos_->end_key, kMaxSequenceNumber, 29724: kTypeRangeDeletion); 29724: } 29724: 29724: 29724: 29724: 29724: SequenceNumber MaxCoveringTombstoneSeqnum(const Slice& user_key); 29724: # 246 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29724: std::map> 29724: SplitBySnapshot(const std::vector& snapshots); 29724: 29724: SequenceNumber upper_bound() const { return upper_bound_; } 29724: SequenceNumber lower_bound() const { return lower_bound_; } 29724: 29724: uint64_t num_unfragmented_tombstones() const { 29724: return tombstones_->num_unfragmented_tombstones(); 29724: } 29724: uint64_t total_tombstone_payload_bytes() const { 29724: return tombstones_->total_tombstone_payload_bytes(); 29724: } 29724: 29724: private: 29724: using RangeTombstoneStack = FragmentedRangeTombstoneList::RangeTombstoneStack; 29724: 29724: struct RangeTombstoneStackStartComparator { 29724: explicit RangeTombstoneStackStartComparator(const Comparator* c) : cmp(c) {} 29724: 29724: bool operator()(const RangeTombstoneStack& a, 29724: const RangeTombstoneStack& b) const { 29724: return cmp->CompareWithoutTimestamp(a.start_key, b.start_key) < 0; 29724: } 29724: 29724: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 29724: return cmp->CompareWithoutTimestamp(a.start_key, b) < 0; 29724: } 29724: 29724: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 29724: return cmp->CompareWithoutTimestamp(a, b.start_key) < 0; 29724: } 29724: 29724: const Comparator* cmp; 29724: }; 29724: 29724: struct RangeTombstoneStackEndComparator { 29724: explicit RangeTombstoneStackEndComparator(const Comparator* c) : cmp(c) {} 29724: 29724: bool operator()(const RangeTombstoneStack& a, 29724: const RangeTombstoneStack& b) const { 29724: return cmp->CompareWithoutTimestamp(a.end_key, b.end_key) < 0; 29724: } 29724: 29724: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 29724: return cmp->CompareWithoutTimestamp(a.end_key, b) < 0; 29724: } 29724: 29724: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 29724: return cmp->CompareWithoutTimestamp(a, b.end_key) < 0; 29724: } 29724: 29724: const Comparator* cmp; 29724: }; 29724: 29724: void MaybePinKey() const { 29724: if (pos_ != tombstones_->end() && seq_pos_ != tombstones_->seq_end() && 29724: (pinned_pos_ != pos_ || pinned_seq_pos_ != seq_pos_)) { 29724: current_start_key_.Set(pos_->start_key, *seq_pos_, kTypeRangeDeletion); 29724: pinned_pos_ = pos_; 29724: pinned_seq_pos_ = seq_pos_; 29724: } 29724: } 29724: 29724: void SeekToCoveringTombstone(const Slice& key); 29724: void SeekForPrevToCoveringTombstone(const Slice& key); 29724: void ScanForwardToVisibleTombstone(); 29724: void ScanBackwardToVisibleTombstone(); 29724: bool ValidPos() const { 29724: return Valid() && seq_pos_ != tombstones_->seq_iter(pos_->seq_end_idx); 29724: } 29724: 29724: const RangeTombstoneStackStartComparator tombstone_start_cmp_; 29724: const RangeTombstoneStackEndComparator tombstone_end_cmp_; 29724: const InternalKeyComparator* icmp_; 29724: const Comparator* ucmp_; 29724: std::shared_ptr tombstones_ref_; 29724: std::shared_ptr tombstones_cache_ref_; 29724: FragmentedRangeTombstoneList* tombstones_; 29724: SequenceNumber upper_bound_; 29724: SequenceNumber lower_bound_; 29724: 29724: const Slice* ts_upper_bound_; 29724: std::vector::const_iterator pos_; 29724: std::vector::const_iterator seq_pos_; 29724: mutable std::vector::const_iterator pinned_pos_; 29724: mutable std::vector::const_iterator pinned_seq_pos_; 29724: mutable InternalKey current_start_key_; 29724: 29724: 29724: 29724: 29724: 29724: void SetMaxVisibleSeqAndTimestamp() { 29724: seq_pos_ = std::lower_bound(tombstones_->seq_iter(pos_->seq_start_idx), 29724: tombstones_->seq_iter(pos_->seq_end_idx), 29724: upper_bound_, std::greater()); 29724: if (ts_upper_bound_ && !ts_upper_bound_->empty()) { 29724: auto ts_pos = std::lower_bound( 29724: tombstones_->ts_iter(pos_->seq_start_idx), 29724: tombstones_->ts_iter(pos_->seq_end_idx), *ts_upper_bound_, 29724: [this](const Slice& s1, const Slice& s2) { 29724: return ucmp_->CompareTimestamp(s1, s2) > 0; 29724: }); 29724: auto ts_idx = ts_pos - tombstones_->ts_iter(pos_->seq_start_idx); 29724: auto seq_idx = seq_pos_ - tombstones_->seq_iter(pos_->seq_start_idx); 29724: if (seq_idx < ts_idx) { 29724: 29724: 29724: seq_pos_ = tombstones_->seq_iter(pos_->seq_start_idx + ts_idx); 29724: } 29724: } 29724: } 29724: }; 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 2 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_constants.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: constexpr uint64_t kInvalidBlobFileNumber = 0; 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class JSONWriter; 29724: class Slice; 29724: class Status; 29724: 29724: class BlobFileAddition { 29724: public: 29724: BlobFileAddition() = default; 29724: 29724: BlobFileAddition(uint64_t blob_file_number, uint64_t total_blob_count, 29724: uint64_t total_blob_bytes, std::string checksum_method, 29724: std::string checksum_value) 29724: : blob_file_number_(blob_file_number), 29724: total_blob_count_(total_blob_count), 29724: total_blob_bytes_(total_blob_bytes), 29724: checksum_method_(std::move(checksum_method)), 29724: checksum_value_(std::move(checksum_value)) { 29724: 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29724: (static_cast ( 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29724: checksum_method_.empty() == checksum_value_.empty() 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29724: "checksum_method_.empty() == checksum_value_.empty()" 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29724: ; 29724: } 29724: 29724: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 29724: uint64_t GetTotalBlobCount() const { return total_blob_count_; } 29724: uint64_t GetTotalBlobBytes() const { return total_blob_bytes_; } 29724: const std::string& GetChecksumMethod() const { return checksum_method_; } 29724: const std::string& GetChecksumValue() const { return checksum_value_; } 29724: 29724: void EncodeTo(std::string* output) const; 29724: Status DecodeFrom(Slice* input); 29724: 29724: std::string DebugString() const; 29724: std::string DebugJSON() const; 29724: 29724: private: 29724: enum CustomFieldTags : uint32_t; 29724: 29724: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 29724: uint64_t total_blob_count_ = 0; 29724: uint64_t total_blob_bytes_ = 0; 29724: std::string checksum_method_; 29724: std::string checksum_value_; 29724: }; 29724: 29724: bool operator==(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 29724: bool operator!=(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 29724: 29724: std::ostream& operator<<(std::ostream& os, 29724: const BlobFileAddition& blob_file_addition); 29724: JSONWriter& operator<<(JSONWriter& jw, 29724: const BlobFileAddition& blob_file_addition); 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.h" 29724: namespace rocksdb { 29724: 29724: class JSONWriter; 29724: class Slice; 29724: class Status; 29724: 29724: class BlobFileGarbage { 29724: public: 29724: BlobFileGarbage() = default; 29724: 29724: BlobFileGarbage(uint64_t blob_file_number, uint64_t garbage_blob_count, 29724: uint64_t garbage_blob_bytes) 29724: : blob_file_number_(blob_file_number), 29724: garbage_blob_count_(garbage_blob_count), 29724: garbage_blob_bytes_(garbage_blob_bytes) {} 29724: 29724: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 29724: uint64_t GetGarbageBlobCount() const { return garbage_blob_count_; } 29724: uint64_t GetGarbageBlobBytes() const { return garbage_blob_bytes_; } 29724: 29724: void EncodeTo(std::string* output) const; 29724: Status DecodeFrom(Slice* input); 29724: 29724: std::string DebugString() const; 29724: std::string DebugJSON() const; 29724: 29724: private: 29724: enum CustomFieldTags : uint32_t; 29724: 29724: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 29724: uint64_t garbage_blob_count_ = 0; 29724: uint64_t garbage_blob_bytes_ = 0; 29724: }; 29724: 29724: bool operator==(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 29724: bool operator!=(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 29724: 29724: std::ostream& operator<<(std::ostream& os, 29724: const BlobFileGarbage& blob_file_garbage); 29724: JSONWriter& operator<<(JSONWriter& jw, 29724: const BlobFileGarbage& blob_file_garbage); 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/ctime" 1 3 29724: # 39 "/usr/include/c++/14/ctime" 3 29724: 29724: # 40 "/usr/include/c++/14/ctime" 3 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 1 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 1 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 29724: 29724: # 1 "/usr/include/c++/14/cerrno" 1 3 29724: # 39 "/usr/include/c++/14/cerrno" 3 29724: 29724: # 40 "/usr/include/c++/14/cerrno" 3 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 2 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Logger; 29724: 29724: class Allocator { 29724: public: 29724: virtual ~Allocator() {} 29724: 29724: virtual char* Allocate(size_t bytes) = 0; 29724: virtual char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29724: Logger* logger = nullptr) = 0; 29724: 29724: virtual size_t BlockSize() const = 0; 29724: }; 29724: 29724: class AllocTracker { 29724: public: 29724: explicit AllocTracker(WriteBufferManager* write_buffer_manager); 29724: 29724: AllocTracker(const AllocTracker&) = delete; 29724: void operator=(const AllocTracker&) = delete; 29724: 29724: ~AllocTracker(); 29724: void Allocate(size_t bytes); 29724: 29724: 29724: void DoneAllocating(); 29724: 29724: void FreeMem(); 29724: 29724: bool is_freed() const { return write_buffer_manager_ == nullptr || freed_; } 29724: 29724: private: 29724: WriteBufferManager* write_buffer_manager_; 29724: std::atomic bytes_allocated_; 29724: bool done_allocating_; 29724: bool freed_; 29724: }; 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 1 3 4 29724: # 25 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29724: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29724: # 26 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29724: # 41 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 1 3 4 29724: # 29 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-map-flags-generic.h" 1 3 4 29724: # 30 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 1 3 4 29724: # 135 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 3 4 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 1 3 4 29724: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 29724: 29724: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 29724: extern "C" { 29724: 29724: 29724: 29724: int memfd_create (const char *__name, unsigned int __flags) noexcept (true); 29724: 29724: 29724: 29724: int mlock2 (const void *__addr, size_t __length, unsigned int __flags) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: int pkey_alloc (unsigned int __flags, unsigned int __access_rights) noexcept (true); 29724: 29724: 29724: 29724: int pkey_set (int __key, unsigned int __access_rights) noexcept (true); 29724: 29724: 29724: 29724: int pkey_get (int __key) noexcept (true); 29724: 29724: 29724: 29724: int pkey_free (int __key) noexcept (true); 29724: 29724: 29724: 29724: int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) noexcept (true); 29724: 29724: } 29724: # 136 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 2 3 4 29724: # 33 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 29724: # 42 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29724: 29724: 29724: 29724: 29724: extern "C" { 29724: # 61 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29724: extern void * mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off64_t __offset) noexcept (true) __asm__ ("" "mmap64") 29724: 29724: 29724: ; 29724: 29724: 29724: 29724: 29724: 29724: extern void *mmap64 (void *__addr, size_t __len, int __prot, 29724: int __flags, int __fd, __off64_t __offset) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int munmap (void *__addr, size_t __len) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int mprotect (void *__addr, size_t __len, int __prot) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int msync (void *__addr, size_t __len, int __flags); 29724: 29724: 29724: 29724: 29724: extern int madvise (void *__addr, size_t __len, int __advice) noexcept (true); 29724: 29724: 29724: 29724: extern int posix_madvise (void *__addr, size_t __len, int __advice) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int mlock (const void *__addr, size_t __len) noexcept (true); 29724: 29724: 29724: extern int munlock (const void *__addr, size_t __len) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int mlockall (int __flags) noexcept (true); 29724: 29724: 29724: 29724: extern int munlockall (void) noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: extern int mincore (void *__start, size_t __len, unsigned char *__vec) 29724: noexcept (true); 29724: # 133 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29724: extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, 29724: int __flags, ...) noexcept (true); 29724: 29724: 29724: 29724: extern int remap_file_pages (void *__start, size_t __size, int __prot, 29724: size_t __pgoff, int __flags) noexcept (true); 29724: 29724: 29724: 29724: 29724: extern int shm_open (const char *__name, int __oflag, mode_t __mode); 29724: 29724: 29724: extern int shm_unlink (const char *__name); 29724: 29724: 29724: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 1 3 4 29724: # 24 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 3 4 29724: struct iovec; 29724: extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov, 29724: size_t __count, int __advice, 29724: unsigned __flags) 29724: noexcept (true); 29724: 29724: extern int process_mrelease (int pidfd, unsigned int flags) noexcept (true); 29724: # 151 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 29724: namespace rocksdb { 29724: 29724: 29724: class MemMapping { 29724: public: 29724: static constexpr bool kHugePageSupported = 29724: 29724: true; 29724: 29724: 29724: 29724: 29724: 29724: static MemMapping AllocateHuge(size_t length); 29724: 29724: 29724: 29724: 29724: 29724: 29724: static MemMapping AllocateLazyZeroed(size_t length); 29724: 29724: 29724: MemMapping(const MemMapping&) = delete; 29724: MemMapping& operator=(const MemMapping&) = delete; 29724: 29724: MemMapping(MemMapping&&) noexcept; 29724: MemMapping& operator=(MemMapping&&) noexcept; 29724: 29724: 29724: ~MemMapping(); 29724: 29724: inline void* Get() const { return addr_; } 29724: inline size_t Length() const { return length_; } 29724: 29724: private: 29724: MemMapping() {} 29724: 29724: 29724: void* addr_ = nullptr; 29724: 29724: size_t length_ = 0; 29724: 29724: 29724: 29724: 29724: 29724: static MemMapping AllocateAnonymous(size_t length, bool huge); 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: class TypedMemMapping : public MemMapping { 29724: public: 29724: TypedMemMapping(MemMapping&& v) noexcept 29724: : MemMapping(std::move(v)) {} 29724: TypedMemMapping& operator=(MemMapping&& v) noexcept { 29724: MemMapping& base = *this; 29724: base = std::move(v); 29724: } 29724: 29724: inline T* Get() const { return static_cast(MemMapping::Get()); } 29724: inline size_t Count() const { return MemMapping::Length() / sizeof(T); } 29724: 29724: inline T& operator[](size_t index) const { return Get()[index]; } 29724: }; 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Arena : public Allocator { 29724: public: 29724: 29724: Arena(const Arena&) = delete; 29724: void operator=(const Arena&) = delete; 29724: 29724: static constexpr size_t kInlineSize = 2048; 29724: static constexpr size_t kMinBlockSize = 4096; 29724: static constexpr size_t kMaxBlockSize = 2u << 30; 29724: 29724: static constexpr unsigned kAlignUnit = alignof(std::max_align_t); 29724: static_assert((kAlignUnit & (kAlignUnit - 1)) == 0, 29724: "Pointer size should be power of 2"); 29724: 29724: 29724: 29724: 29724: explicit Arena(size_t block_size = kMinBlockSize, 29724: AllocTracker* tracker = nullptr, size_t huge_page_size = 0); 29724: ~Arena(); 29724: 29724: char* Allocate(size_t bytes) override; 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29724: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29724: Logger* logger = nullptr) override; 29724: 29724: 29724: 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: return blocks_memory_ + blocks_.size() * sizeof(char*) - 29724: alloc_bytes_remaining_; 29724: } 29724: 29724: size_t MemoryAllocatedBytes() const { return blocks_memory_; } 29724: 29724: size_t AllocatedAndUnused() const { return alloc_bytes_remaining_; } 29724: 29724: 29724: 29724: size_t IrregularBlockNum() const { return irregular_block_num; } 29724: 29724: size_t BlockSize() const override { return kBlockSize; } 29724: 29724: bool IsInInlineBlock() const { 29724: return blocks_.empty() && huge_blocks_.empty(); 29724: } 29724: 29724: 29724: 29724: 29724: static size_t OptimizeBlockSize(size_t block_size); 29724: 29724: private: 29724: alignas(std::max_align_t) char inline_block_[kInlineSize]; 29724: 29724: const size_t kBlockSize; 29724: 29724: std::deque> blocks_; 29724: 29724: std::deque huge_blocks_; 29724: size_t irregular_block_num = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: char* unaligned_alloc_ptr_ = nullptr; 29724: char* aligned_alloc_ptr_ = nullptr; 29724: 29724: size_t alloc_bytes_remaining_ = 0; 29724: 29724: size_t hugetlb_size_ = 0; 29724: 29724: char* AllocateFromHugePage(size_t bytes); 29724: char* AllocateFallback(size_t bytes, bool aligned); 29724: char* AllocateNewBlock(size_t block_bytes); 29724: 29724: 29724: size_t blocks_memory_ = 0; 29724: 29724: AllocTracker* tracker_; 29724: }; 29724: 29724: inline char* Arena::Allocate(size_t bytes) { 29724: 29724: 29724: 29724: 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29724: (static_cast ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29724: bytes > 0 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29724: "bytes > 0" 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29724: ; 29724: if (bytes <= alloc_bytes_remaining_) { 29724: unaligned_alloc_ptr_ -= bytes; 29724: alloc_bytes_remaining_ -= bytes; 29724: return unaligned_alloc_ptr_; 29724: } 29724: return AllocateFallback(bytes, false ); 29724: } 29724: 29724: 29724: template 29724: struct Destroyer { 29724: void operator()(T* ptr) { ptr->~T(); } 29724: }; 29724: 29724: 29724: 29724: template 29724: using ScopedArenaPtr = std::unique_ptr>; 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 1 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29724: 29724: # 42 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29724: # 1 "/usr/include/arm-linux-gnueabihf/sys/time.h" 1 3 4 29724: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: 29724: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern "C" { 29724: # 52 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: struct timezone 29724: { 29724: int tz_minuteswest; 29724: int tz_dsttime; 29724: }; 29724: # 71 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern int gettimeofday (struct timeval *__restrict __tv, void *__restrict __tz) noexcept (true) __asm__ ("" "__gettimeofday64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: # 98 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern int settimeofday (const struct timeval *__tv, const struct timezone *__tz) noexcept (true) __asm__ ("" "__settimeofday64") 29724: 29724: ; 29724: 29724: extern int adjtime (const struct timeval *__delta, struct timeval *__olddelta) noexcept (true) __asm__ ("" "__adjtime64") 29724: 29724: ; 29724: # 114 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: enum __itimer_which 29724: { 29724: 29724: ITIMER_REAL = 0, 29724: 29724: 29724: ITIMER_VIRTUAL = 1, 29724: 29724: 29724: 29724: ITIMER_PROF = 2 29724: 29724: }; 29724: 29724: 29724: 29724: struct itimerval 29724: { 29724: 29724: struct timeval it_interval; 29724: 29724: struct timeval it_value; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: typedef int __itimer_which_t; 29724: # 167 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern int getitimer (__itimer_which_t __which, struct itimerval *__value) noexcept (true) __asm__ ("" "__getitimer64") 29724: 29724: ; 29724: 29724: extern int setitimer (__itimer_which_t __which, const struct itimerval *__restrict __new, struct itimerval *__restrict __old) noexcept (true) __asm__ ("" "__setitimer64") 29724: 29724: 29724: ; 29724: 29724: extern int utimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__utimes64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: # 196 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern int lutimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__lutimes64") 29724: 29724: __attribute__ ((__nonnull__ (1))); 29724: 29724: extern int futimes (int __fd, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimes64") 29724: ; 29724: # 218 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: extern int futimesat (int __fd, const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimesat64") 29724: 29724: ; 29724: # 258 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29724: } 29724: # 43 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 2 29724: 29724: 29724: 29724: # 45 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29724: namespace rocksdb { 29724: 29724: namespace port { 29724: 29724: using TimeVal = struct timeval; 29724: 29724: inline void GetTimeOfDay(TimeVal* tv, struct timezone* tz) { 29724: gettimeofday(tv, tz); 29724: } 29724: 29724: inline struct tm* LocalTimeR(const time_t* timep, struct tm* result) { 29724: return localtime_r(timep, result); 29724: } 29724: 29724: } 29724: 29724: } 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Logger; 29724: 29724: 29724: class LogBuffer { 29724: public: 29724: 29724: 29724: LogBuffer(const InfoLogLevel log_level, Logger* info_log); 29724: 29724: 29724: 29724: void AddLogToBuffer(size_t max_log_size, const char* format, va_list ap); 29724: 29724: size_t IsEmpty() const { return logs_.empty(); } 29724: 29724: 29724: void FlushBufferToLog(); 29724: static const size_t kDefaultMaxLogSize = 512; 29724: 29724: private: 29724: 29724: struct BufferedLog { 29724: port::TimeVal now_tv; 29724: char message[1]; 29724: }; 29724: 29724: const InfoLogLevel log_level_; 29724: Logger* info_log_; 29724: Arena arena_; 29724: autovector logs_; 29724: }; 29724: 29724: 29724: 29724: 29724: void LogToBuffer(LogBuffer* log_buffer, size_t max_log_size, const char* format, 29724: ...); 29724: 29724: void LogToBuffer(LogBuffer* log_buffer, const char* format, ...); 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class JSONWriter { 29724: public: 29724: JSONWriter() : state_(kExpectKey), first_element_(true), in_array_(false) { 29724: stream_ << "{"; 29724: } 29724: 29724: void AddKey(const std::string& key) { 29724: 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectKey 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectKey" 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: if (!first_element_) { 29724: stream_ << ", "; 29724: } 29724: stream_ << "\"" << key << "\": "; 29724: state_ = kExpectValue; 29724: first_element_ = false; 29724: } 29724: 29724: void AddValue(const char* value) { 29724: 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectValue || state_ == kInArray 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectValue || state_ == kInArray" 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: if (state_ == kInArray && !first_element_) { 29724: stream_ << ", "; 29724: } 29724: stream_ << "\"" << value << "\""; 29724: if (state_ != kInArray) { 29724: state_ = kExpectKey; 29724: } 29724: first_element_ = false; 29724: } 29724: 29724: template 29724: void AddValue(const T& value) { 29724: 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectValue || state_ == kInArray 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectValue || state_ == kInArray" 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: if (state_ == kInArray && !first_element_) { 29724: stream_ << ", "; 29724: } 29724: stream_ << value; 29724: if (state_ != kInArray) { 29724: state_ = kExpectKey; 29724: } 29724: first_element_ = false; 29724: } 29724: 29724: void StartArray() { 29724: 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectValue 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectValue" 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: state_ = kInArray; 29724: in_array_ = true; 29724: stream_ << "["; 29724: first_element_ = true; 29724: } 29724: 29724: void EndArray() { 29724: 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kInArray 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kInArray" 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: state_ = kExpectKey; 29724: in_array_ = false; 29724: stream_ << "]"; 29724: first_element_ = false; 29724: } 29724: 29724: void StartObject() { 29724: 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectValue 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectValue" 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: state_ = kExpectKey; 29724: stream_ << "{"; 29724: first_element_ = true; 29724: } 29724: 29724: void EndObject() { 29724: 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kExpectKey 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kExpectKey" 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: stream_ << "}"; 29724: first_element_ = false; 29724: } 29724: 29724: void StartArrayedObject() { 29724: 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ == kInArray && in_array_ 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ == kInArray && in_array_" 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: state_ = kExpectValue; 29724: if (!first_element_) { 29724: stream_ << ", "; 29724: } 29724: StartObject(); 29724: } 29724: 29724: void EndArrayedObject() { 29724: 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: in_array_ 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "in_array_" 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: EndObject(); 29724: state_ = kInArray; 29724: } 29724: 29724: std::string Get() const { return stream_.str(); } 29724: 29724: JSONWriter& operator<<(const char* val) { 29724: if (state_ == kExpectKey) { 29724: AddKey(val); 29724: } else { 29724: AddValue(val); 29724: } 29724: return *this; 29724: } 29724: 29724: JSONWriter& operator<<(const std::string& val) { 29724: return *this << val.c_str(); 29724: } 29724: 29724: template 29724: JSONWriter& operator<<(const T& val) { 29724: 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: (static_cast ( 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: state_ != kExpectKey 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: "state_ != kExpectKey" 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29724: ; 29724: AddValue(val); 29724: return *this; 29724: } 29724: 29724: private: 29724: enum JSONWriterState { 29724: kExpectKey, 29724: kExpectValue, 29724: kInArray, 29724: kInArrayedObject, 29724: }; 29724: JSONWriterState state_; 29724: bool first_element_; 29724: bool in_array_; 29724: std::ostringstream stream_; 29724: }; 29724: 29724: class EventLoggerStream { 29724: public: 29724: template 29724: EventLoggerStream& operator<<(const T& val) { 29724: MakeStream(); 29724: *json_writer_ << val; 29724: return *this; 29724: } 29724: 29724: void StartArray() { json_writer_->StartArray(); } 29724: void EndArray() { json_writer_->EndArray(); } 29724: void StartObject() { json_writer_->StartObject(); } 29724: void EndObject() { json_writer_->EndObject(); } 29724: 29724: ~EventLoggerStream(); 29724: 29724: private: 29724: void MakeStream() { 29724: if (!json_writer_) { 29724: json_writer_ = new JSONWriter(); 29724: *this << "time_micros" 29724: << std::chrono::duration_cast( 29724: std::chrono::system_clock::now().time_since_epoch()) 29724: .count(); 29724: } 29724: } 29724: friend class EventLogger; 29724: explicit EventLoggerStream(Logger* logger); 29724: explicit EventLoggerStream(LogBuffer* log_buffer, const size_t max_log_size); 29724: 29724: Logger* const logger_; 29724: LogBuffer* const log_buffer_; 29724: const size_t max_log_size_; 29724: 29724: JSONWriter* json_writer_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class EventLogger { 29724: public: 29724: static const char* Prefix() { return "EVENT_LOG_v1"; } 29724: 29724: explicit EventLogger(Logger* logger) : logger_(logger) {} 29724: EventLoggerStream Log() { return EventLoggerStream(logger_); } 29724: EventLoggerStream LogToBuffer(LogBuffer* log_buffer) { 29724: return EventLoggerStream(log_buffer, LogBuffer::kDefaultMaxLogSize); 29724: } 29724: EventLoggerStream LogToBuffer(LogBuffer* log_buffer, 29724: const size_t max_log_size) { 29724: return EventLoggerStream(log_buffer, max_log_size); 29724: } 29724: void Log(const JSONWriter& jwriter); 29724: static void Log(Logger* logger, const JSONWriter& jwriter); 29724: static void LogToBuffer( 29724: LogBuffer* log_buffer, const JSONWriter& jwriter, 29724: const size_t max_log_size = LogBuffer::kDefaultMaxLogSize); 29724: 29724: private: 29724: Logger* logger_; 29724: }; 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 2 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class JSONWriter; 29724: class Slice; 29724: class Status; 29724: 29724: using WalNumber = uint64_t; 29724: 29724: 29724: class WalMetadata { 29724: public: 29724: WalMetadata() = default; 29724: 29724: explicit WalMetadata(uint64_t synced_size_bytes) 29724: : synced_size_bytes_(synced_size_bytes) {} 29724: 29724: bool HasSyncedSize() const { return synced_size_bytes_ != kUnknownWalSize; } 29724: 29724: void SetSyncedSizeInBytes(uint64_t bytes) { synced_size_bytes_ = bytes; } 29724: 29724: uint64_t GetSyncedSizeInBytes() const { return synced_size_bytes_; } 29724: 29724: private: 29724: friend bool operator==(const WalMetadata& lhs, const WalMetadata& rhs); 29724: friend bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs); 29724: 29724: 29724: constexpr static uint64_t kUnknownWalSize = 29724: std::numeric_limits::max(); 29724: 29724: 29724: uint64_t synced_size_bytes_ = kUnknownWalSize; 29724: }; 29724: 29724: inline bool operator==(const WalMetadata& lhs, const WalMetadata& rhs) { 29724: return lhs.synced_size_bytes_ == rhs.synced_size_bytes_; 29724: } 29724: 29724: inline bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs) { 29724: return !(lhs == rhs); 29724: } 29724: 29724: 29724: enum class WalAdditionTag : uint32_t { 29724: 29724: kTerminate = 1, 29724: 29724: kSyncedSize = 2, 29724: 29724: }; 29724: 29724: 29724: class WalAddition { 29724: public: 29724: WalAddition() : number_(0), metadata_() {} 29724: 29724: explicit WalAddition(WalNumber number) : number_(number), metadata_() {} 29724: 29724: WalAddition(WalNumber number, WalMetadata meta) 29724: : number_(number), metadata_(std::move(meta)) {} 29724: 29724: WalNumber GetLogNumber() const { return number_; } 29724: 29724: const WalMetadata& GetMetadata() const { return metadata_; } 29724: 29724: void EncodeTo(std::string* dst) const; 29724: 29724: Status DecodeFrom(Slice* src); 29724: 29724: std::string DebugString() const; 29724: 29724: private: 29724: WalNumber number_; 29724: WalMetadata metadata_; 29724: }; 29724: 29724: std::ostream& operator<<(std::ostream& os, const WalAddition& wal); 29724: JSONWriter& operator<<(JSONWriter& jw, const WalAddition& wal); 29724: 29724: using WalAdditions = std::vector; 29724: 29724: 29724: class WalDeletion { 29724: public: 29724: WalDeletion() : number_(kEmpty) {} 29724: 29724: explicit WalDeletion(WalNumber number) : number_(number) {} 29724: 29724: WalNumber GetLogNumber() const { return number_; } 29724: 29724: void EncodeTo(std::string* dst) const; 29724: 29724: Status DecodeFrom(Slice* src); 29724: 29724: std::string DebugString() const; 29724: 29724: bool IsEmpty() const { return number_ == kEmpty; } 29724: 29724: void Reset() { number_ = kEmpty; } 29724: 29724: private: 29724: static constexpr WalNumber kEmpty = 0; 29724: 29724: WalNumber number_; 29724: }; 29724: 29724: std::ostream& operator<<(std::ostream& os, const WalDeletion& wal); 29724: JSONWriter& operator<<(JSONWriter& jw, const WalDeletion& wal); 29724: # 138 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 29724: class WalSet { 29724: public: 29724: 29724: 29724: 29724: 29724: 29724: Status AddWal(const WalAddition& wal); 29724: Status AddWals(const WalAdditions& wals); 29724: 29724: 29724: 29724: Status DeleteWalsBefore(WalNumber wal); 29724: 29724: 29724: void Reset(); 29724: 29724: 29724: WalNumber GetMinWalNumberToKeep() const { return min_wal_number_to_keep_; } 29724: 29724: const std::map& GetWals() const { return wals_; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status CheckWals( 29724: Env* env, 29724: const std::unordered_map& logs_on_disk) const; 29724: 29724: private: 29724: std::map wals_; 29724: 29724: 29724: WalNumber min_wal_number_to_keep_ = 0; 29724: }; 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: namespace rocksdb { 29724: 29724: class Logger; 29724: class SecondaryCacheResultHandle; 29724: class Statistics; 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: class Cache : public Customizable { 29724: public: 29724: 29724: struct Handle {}; 29724: 29724: public: 29724: 29724: 29724: using ObjectPtr = void*; 29724: 29724: 29724: 29724: struct CreateContext {}; 29724: 29724: public: 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: enum class Priority { HIGH, LOW, BOTTOM }; 29724: # 97 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: using SizeCallback = size_t (*)(ObjectPtr obj); 29724: 29724: 29724: 29724: 29724: 29724: using SaveToCallback = Status (*)(ObjectPtr from_obj, size_t from_offset, 29724: size_t length, char* out_buf); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: using DeleterFn = void (*)(ObjectPtr obj, MemoryAllocator* allocator); 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: using CreateCallback = Status (*)(const Slice& data, CompressionType type, 29724: CacheTier source, CreateContext* context, 29724: MemoryAllocator* allocator, 29724: ObjectPtr* out_obj, size_t* out_charge); 29724: 29724: 29724: 29724: 29724: struct CacheItemHelper { 29724: 29724: 29724: 29724: DeleterFn del_cb; 29724: 29724: 29724: 29724: SizeCallback size_cb; 29724: SaveToCallback saveto_cb; 29724: CreateCallback create_cb; 29724: 29724: CacheEntryRole role; 29724: 29724: 29724: 29724: 29724: const CacheItemHelper* without_secondary_compat; 29724: 29724: CacheItemHelper() : CacheItemHelper(CacheEntryRole::kMisc) {} 29724: 29724: 29724: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb = nullptr) 29724: : CacheItemHelper(_role, _del_cb, nullptr, nullptr, nullptr, this) {} 29724: 29724: 29724: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb, 29724: SizeCallback _size_cb, SaveToCallback _saveto_cb, 29724: CreateCallback _create_cb, 29724: const CacheItemHelper* _without_secondary_compat) 29724: : del_cb(_del_cb), 29724: size_cb(_size_cb), 29724: saveto_cb(_saveto_cb), 29724: create_cb(_create_cb), 29724: role(_role), 29724: without_secondary_compat(_without_secondary_compat) { 29724: 29724: 29724: 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: (size_cb != nullptr) == (saveto_cb != nullptr) 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "(size_cb != nullptr) == (saveto_cb != nullptr)" 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; 29724: 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: (size_cb != nullptr) == (create_cb != nullptr) 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "(size_cb != nullptr) == (create_cb != nullptr)" 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; 29724: 29724: 29724: 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: role == without_secondary_compat->role 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "role == without_secondary_compat->role" 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; 29724: 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: del_cb == without_secondary_compat->del_cb 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "del_cb == without_secondary_compat->del_cb" 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; 29724: 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: !without_secondary_compat->IsSecondaryCacheCompatible() 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "!without_secondary_compat->IsSecondaryCacheCompatible()" 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; 29724: } 29724: inline bool IsSecondaryCacheCompatible() const { 29724: return size_cb != nullptr; 29724: } 29724: }; 29724: 29724: public: 29724: Cache(std::shared_ptr allocator = nullptr) 29724: : memory_allocator_(std::move(allocator)) {} 29724: 29724: Cache(const Cache&) = delete; 29724: Cache& operator=(const Cache&) = delete; 29724: 29724: 29724: virtual ~Cache() {} 29724: 29724: static const char* Type() { return "Cache"; } 29724: # 206 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& value, 29724: std::shared_ptr* result); 29724: 29724: public: 29724: 29724: virtual const char* Name() const = 0; 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual Status Insert( 29724: const Slice& key, ObjectPtr obj, const CacheItemHelper* helper, 29724: size_t charge, Handle** handle = nullptr, 29724: Priority priority = Priority::LOW, const Slice& compressed = Slice(), 29724: CompressionType type = CompressionType::kNoCompression) = 0; 29724: # 277 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 29724: const CacheItemHelper* helper, size_t charge, 29724: bool allow_uncharged) = 0; 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual Handle* Lookup(const Slice& key, 29724: const CacheItemHelper* helper = nullptr, 29724: CreateContext* create_context = nullptr, 29724: Priority priority = Priority::LOW, 29724: Statistics* stats = nullptr) = 0; 29724: 29724: 29724: inline Handle* BasicLookup(const Slice& key, Statistics* stats) { 29724: return Lookup(key, nullptr, nullptr, Priority::LOW, stats); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: virtual bool Ref(Handle* handle) = 0; 29724: # 319 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual bool Release(Handle* handle, bool erase_if_last_ref = false) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual ObjectPtr Value(Handle* handle) = 0; 29724: 29724: 29724: 29724: 29724: virtual void Erase(const Slice& key) = 0; 29724: 29724: 29724: 29724: 29724: virtual uint64_t NewId() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void SetCapacity(size_t capacity) = 0; 29724: 29724: 29724: 29724: virtual void SetStrictCapacityLimit(bool strict_capacity_limit) = 0; 29724: 29724: 29724: 29724: virtual bool HasStrictCapacityLimit() const = 0; 29724: 29724: 29724: virtual size_t GetCapacity() const = 0; 29724: 29724: 29724: virtual size_t GetUsage() const = 0; 29724: 29724: 29724: 29724: 29724: virtual size_t GetOccupancyCount() const { return 29724: # 361 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (4294967295U) 29724: # 361 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; } 29724: 29724: 29724: 29724: 29724: virtual size_t GetTableAddressCount() const { return 0; } 29724: 29724: 29724: virtual size_t GetUsage(Handle* handle) const = 0; 29724: 29724: 29724: virtual size_t GetPinnedUsage() const = 0; 29724: 29724: 29724: virtual size_t GetCharge(Handle* handle) const = 0; 29724: 29724: 29724: virtual const CacheItemHelper* GetCacheItemHelper(Handle* handle) const = 0; 29724: 29724: virtual Status GetSecondaryCacheCapacity(size_t& ) const { 29724: return Status::NotSupported(); 29724: } 29724: 29724: virtual Status GetSecondaryCachePinnedUsage(size_t& ) const { 29724: return Status::NotSupported(); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void DisownData() { 29724: 29724: } 29724: 29724: struct ApplyToAllEntriesOptions { 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t average_entries_per_lock = 256; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: virtual void ApplyToAllEntries( 29724: const std::function& callback, 29724: const ApplyToAllEntriesOptions& opts) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void ApplyToHandle( 29724: Cache* cache, Handle* handle, 29724: const std::function& callback) = 0; 29724: 29724: 29724: virtual void EraseUnRefEntries() = 0; 29724: 29724: virtual std::string GetPrintableOptions() const { return ""; } 29724: 29724: 29724: 29724: 29724: 29724: virtual void ReportProblems( 29724: const std::shared_ptr& ) const {} 29724: 29724: MemoryAllocator* memory_allocator() const { return memory_allocator_.get(); } 29724: 29724: 29724: virtual uint32_t GetHashSeed() const { return 0; } 29724: # 450 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual bool Release(Handle* handle, bool , 29724: bool erase_if_last_ref) { 29724: return Release(handle, erase_if_last_ref); 29724: } 29724: 29724: 29724: 29724: 29724: struct AsyncLookupHandle { 29724: 29724: 29724: 29724: Slice key; 29724: const CacheItemHelper* helper = nullptr; 29724: CreateContext* create_context = nullptr; 29724: Priority priority = Priority::LOW; 29724: Statistics* stats = nullptr; 29724: 29724: AsyncLookupHandle() {} 29724: AsyncLookupHandle(const Slice& _key, const CacheItemHelper* _helper, 29724: CreateContext* _create_context, 29724: Priority _priority = Priority::LOW, 29724: Statistics* _stats = nullptr) 29724: : key(_key), 29724: helper(_helper), 29724: create_context(_create_context), 29724: priority(_priority), 29724: stats(_stats) {} 29724: 29724: 29724: ~AsyncLookupHandle() { 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: (static_cast ( 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: !IsPending() 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: "!IsPending()" 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: ; } 29724: 29724: 29724: AsyncLookupHandle(const AsyncLookupHandle&) = delete; 29724: AsyncLookupHandle operator=(const AsyncLookupHandle&) = delete; 29724: AsyncLookupHandle(AsyncLookupHandle&&) = delete; 29724: AsyncLookupHandle operator=(AsyncLookupHandle&&) = delete; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool IsReady(); 29724: 29724: 29724: bool IsPending(); 29724: 29724: 29724: 29724: 29724: 29724: Handle* Result(); 29724: 29724: 29724: Handle* result_handle = nullptr; 29724: SecondaryCacheResultHandle* pending_handle = nullptr; 29724: SecondaryCache* pending_cache = nullptr; 29724: bool found_dummy_entry = false; 29724: bool kept_in_sec_cache = false; 29724: }; 29724: # 531 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29724: virtual void StartAsyncLookup(AsyncLookupHandle& async_handle); 29724: 29724: 29724: 29724: Handle* Wait(AsyncLookupHandle& async_handle); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void WaitAll(AsyncLookupHandle* , size_t ); 29724: 29724: 29724: 29724: 29724: 29724: using EvictionCallback = 29724: std::function; 29724: 29724: 29724: 29724: void SetEvictionCallback(EvictionCallback&& fn); 29724: 29724: protected: 29724: std::shared_ptr memory_allocator_; 29724: EvictionCallback eviction_callback_; 29724: }; 29724: 29724: 29724: 29724: class CacheWrapper : public Cache { 29724: public: 29724: explicit CacheWrapper(std::shared_ptr target) 29724: : target_(std::move(target)) {} 29724: 29724: 29724: 29724: 29724: Status Insert( 29724: const Slice& key, ObjectPtr value, const CacheItemHelper* helper, 29724: size_t charge, Handle** handle = nullptr, 29724: Priority priority = Priority::LOW, 29724: const Slice& compressed_value = Slice(), 29724: CompressionType type = CompressionType::kNoCompression) override { 29724: return target_->Insert(key, value, helper, charge, handle, priority, 29724: compressed_value, type); 29724: } 29724: 29724: Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 29724: const CacheItemHelper* helper, size_t charge, 29724: bool allow_uncharged) override { 29724: return target_->CreateStandalone(key, obj, helper, charge, allow_uncharged); 29724: } 29724: 29724: Handle* Lookup(const Slice& key, const CacheItemHelper* helper, 29724: CreateContext* create_context, 29724: Priority priority = Priority::LOW, 29724: Statistics* stats = nullptr) override { 29724: return target_->Lookup(key, helper, create_context, priority, stats); 29724: } 29724: 29724: bool Ref(Handle* handle) override { return target_->Ref(handle); } 29724: 29724: using Cache::Release; 29724: bool Release(Handle* handle, bool erase_if_last_ref = false) override { 29724: return target_->Release(handle, erase_if_last_ref); 29724: } 29724: 29724: ObjectPtr Value(Handle* handle) override { return target_->Value(handle); } 29724: 29724: void Erase(const Slice& key) override { target_->Erase(key); } 29724: uint64_t NewId() override { return target_->NewId(); } 29724: 29724: void SetCapacity(size_t capacity) override { target_->SetCapacity(capacity); } 29724: 29724: void SetStrictCapacityLimit(bool strict_capacity_limit) override { 29724: target_->SetStrictCapacityLimit(strict_capacity_limit); 29724: } 29724: 29724: bool HasStrictCapacityLimit() const override { 29724: return target_->HasStrictCapacityLimit(); 29724: } 29724: 29724: size_t GetOccupancyCount() const override { 29724: return target_->GetOccupancyCount(); 29724: } 29724: 29724: size_t GetTableAddressCount() const override { 29724: return target_->GetTableAddressCount(); 29724: } 29724: 29724: size_t GetCapacity() const override { return target_->GetCapacity(); } 29724: 29724: size_t GetUsage() const override { return target_->GetUsage(); } 29724: 29724: size_t GetUsage(Handle* handle) const override { 29724: return target_->GetUsage(handle); 29724: } 29724: 29724: size_t GetPinnedUsage() const override { return target_->GetPinnedUsage(); } 29724: 29724: size_t GetCharge(Handle* handle) const override { 29724: return target_->GetCharge(handle); 29724: } 29724: 29724: const CacheItemHelper* GetCacheItemHelper(Handle* handle) const override { 29724: return target_->GetCacheItemHelper(handle); 29724: } 29724: 29724: void ApplyToAllEntries( 29724: const std::function& callback, 29724: const ApplyToAllEntriesOptions& opts) override { 29724: target_->ApplyToAllEntries(callback, opts); 29724: } 29724: 29724: virtual void ApplyToHandle( 29724: Cache* cache, Handle* handle, 29724: const std::function& callback) 29724: override { 29724: auto cache_ptr = static_cast(cache); 29724: target_->ApplyToHandle(cache_ptr->target_.get(), handle, callback); 29724: } 29724: 29724: void EraseUnRefEntries() override { target_->EraseUnRefEntries(); } 29724: 29724: void StartAsyncLookup(AsyncLookupHandle& async_handle) override { 29724: target_->StartAsyncLookup(async_handle); 29724: } 29724: 29724: void WaitAll(AsyncLookupHandle* async_handles, size_t count) override { 29724: target_->WaitAll(async_handles, count); 29724: } 29724: 29724: uint32_t GetHashSeed() const override { return target_->GetHashSeed(); } 29724: 29724: void ReportProblems(const std::shared_ptr& info_log) const override { 29724: target_->ReportProblems(info_log); 29724: } 29724: 29724: const std::shared_ptr& GetTarget() { return target_; } 29724: 29724: protected: 29724: std::shared_ptr target_; 29724: }; 29724: 29724: 29724: 29724: extern const Cache::CacheItemHelper kNoopCacheItemHelper; 29724: 29724: } 29724: # 25 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class ReadCallback { 29724: public: 29724: explicit ReadCallback(SequenceNumber last_visible_seq) 29724: : max_visible_seq_(last_visible_seq) {} 29724: ReadCallback(SequenceNumber last_visible_seq, SequenceNumber min_uncommitted) 29724: : max_visible_seq_(last_visible_seq), min_uncommitted_(min_uncommitted) {} 29724: 29724: virtual ~ReadCallback() {} 29724: 29724: 29724: 29724: virtual bool IsVisibleFullCheck(SequenceNumber seq) = 0; 29724: 29724: inline bool IsVisible(SequenceNumber seq) { 29724: 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: (static_cast ( 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: min_uncommitted_ > 0 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: "min_uncommitted_ > 0" 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: ; 29724: 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: (static_cast ( 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: min_uncommitted_ >= kMinUnCommittedSeq 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: "min_uncommitted_ >= kMinUnCommittedSeq" 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: ; 29724: if (seq < min_uncommitted_) { 29724: 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: (static_cast ( 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: seq <= max_visible_seq_ 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: "seq <= max_visible_seq_" 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: ; 29724: return true; 29724: } else if (max_visible_seq_ < seq) { 29724: 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: (static_cast ( 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: seq != 0 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: "seq != 0" 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: ; 29724: return false; 29724: } else { 29724: 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: (static_cast ( 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: seq != 0 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: "seq != 0" 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29724: ; 29724: return IsVisibleFullCheck(seq); 29724: } 29724: } 29724: 29724: inline SequenceNumber max_visible_seq() { return max_visible_seq_; } 29724: 29724: 29724: virtual void Refresh(SequenceNumber seq) { max_visible_seq_ = seq; } 29724: 29724: protected: 29724: 29724: 29724: SequenceNumber max_visible_seq_ = kMaxSequenceNumber; 29724: 29724: const SequenceNumber min_uncommitted_ = kMinUnCommittedSeq; 29724: }; 29724: 29724: } 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: class BlobFetcher; 29724: class Comparator; 29724: class Logger; 29724: class MergeContext; 29724: class MergeOperator; 29724: class PinnableWideColumns; 29724: class PinnedIteratorsManager; 29724: class Statistics; 29724: class SystemClock; 29724: struct ParsedInternalKey; 29724: 29724: 29724: 29724: 29724: struct GetContextStats { 29724: uint64_t num_cache_hit = 0; 29724: uint64_t num_cache_index_hit = 0; 29724: uint64_t num_cache_data_hit = 0; 29724: uint64_t num_cache_filter_hit = 0; 29724: uint64_t num_cache_compression_dict_hit = 0; 29724: uint64_t num_cache_index_miss = 0; 29724: uint64_t num_cache_filter_miss = 0; 29724: uint64_t num_cache_data_miss = 0; 29724: uint64_t num_cache_compression_dict_miss = 0; 29724: uint64_t num_cache_bytes_read = 0; 29724: uint64_t num_cache_miss = 0; 29724: uint64_t num_cache_add = 0; 29724: uint64_t num_cache_add_redundant = 0; 29724: uint64_t num_cache_bytes_write = 0; 29724: uint64_t num_cache_index_add = 0; 29724: uint64_t num_cache_index_add_redundant = 0; 29724: uint64_t num_cache_index_bytes_insert = 0; 29724: uint64_t num_cache_data_add = 0; 29724: uint64_t num_cache_data_add_redundant = 0; 29724: uint64_t num_cache_data_bytes_insert = 0; 29724: uint64_t num_cache_filter_add = 0; 29724: uint64_t num_cache_filter_add_redundant = 0; 29724: uint64_t num_cache_filter_bytes_insert = 0; 29724: uint64_t num_cache_compression_dict_add = 0; 29724: uint64_t num_cache_compression_dict_add_redundant = 0; 29724: uint64_t num_cache_compression_dict_bytes_insert = 0; 29724: 29724: uint64_t num_filter_read = 0; 29724: uint64_t num_index_read = 0; 29724: uint64_t num_sst_read = 0; 29724: }; 29724: # 67 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: class GetContext { 29724: public: 29724: 29724: 29724: enum GetState { 29724: kNotFound, 29724: kFound, 29724: kDeleted, 29724: kCorrupt, 29724: kMerge, 29724: kUnexpectedBlobIndex, 29724: kMergeOperatorFailed, 29724: }; 29724: GetContextStats get_context_stats_; 29724: # 102 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 29724: Logger* logger, Statistics* statistics, GetState init_state, 29724: const Slice& user_key, PinnableSlice* value, 29724: PinnableWideColumns* columns, bool* value_found, 29724: MergeContext* merge_context, bool do_merge, 29724: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 29724: SequenceNumber* seq = nullptr, 29724: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 29724: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29724: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 29724: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 29724: Logger* logger, Statistics* statistics, GetState init_state, 29724: const Slice& user_key, PinnableSlice* value, 29724: PinnableWideColumns* columns, std::string* timestamp, 29724: bool* value_found, MergeContext* merge_context, bool do_merge, 29724: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 29724: SequenceNumber* seq = nullptr, 29724: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 29724: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29724: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 29724: 29724: GetContext() = delete; 29724: 29724: 29724: 29724: void MarkKeyMayExist(); 29724: # 137 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: bool SaveValue(const ParsedInternalKey& parsed_key, const Slice& value, 29724: bool* matched, Status* read_status, 29724: Cleanable* value_pinner = nullptr); 29724: 29724: 29724: 29724: void SaveValue(const Slice& value, SequenceNumber seq); 29724: 29724: GetState State() const { return state_; } 29724: 29724: SequenceNumber* max_covering_tombstone_seq() { 29724: return max_covering_tombstone_seq_; 29724: } 29724: 29724: bool NeedTimestamp() { return timestamp_ != nullptr; } 29724: 29724: inline size_t TimestampSize() { return ucmp_->timestamp_size(); } 29724: 29724: void SetTimestampFromRangeTombstone(const Slice& timestamp) { 29724: 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29724: (static_cast ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: timestamp_ 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: "timestamp_" 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29724: ; 29724: timestamp_->assign(timestamp.data(), timestamp.size()); 29724: ts_from_rangetombstone_ = true; 29724: } 29724: 29724: PinnedIteratorsManager* pinned_iters_mgr() { return pinned_iters_mgr_; } 29724: 29724: 29724: 29724: 29724: void SetReplayLog(std::string* replay_log) { replay_log_ = replay_log; } 29724: 29724: 29724: bool NeedToReadSequence() const { return (seq_ != nullptr); } 29724: 29724: bool sample() const { return sample_; } 29724: 29724: bool CheckCallback(SequenceNumber seq) { 29724: if (callback_) { 29724: return callback_->IsVisible(seq); 29724: } 29724: return true; 29724: } 29724: 29724: void ReportCounters(); 29724: 29724: bool has_callback() const { return callback_ != nullptr; } 29724: 29724: const Slice& ukey_to_get_blob_value() const { 29724: if (!ukey_with_ts_found_.empty()) { 29724: return ukey_with_ts_found_; 29724: } else { 29724: return user_key_; 29724: } 29724: } 29724: 29724: uint64_t get_tracing_get_id() const { return tracing_get_id_; } 29724: 29724: void push_operand(const Slice& value, Cleanable* value_pinner); 29724: 29724: private: 29724: 29724: 29724: void PostprocessMerge(const Status& merge_status); 29724: 29724: 29724: 29724: void MergeWithNoBaseValue(); 29724: void MergeWithPlainBaseValue(const Slice& value); 29724: void MergeWithWideColumnBaseValue(const Slice& entity); 29724: 29724: bool GetBlobValue(const Slice& user_key, const Slice& blob_index, 29724: PinnableSlice* blob_value, Status* read_status); 29724: 29724: void appendToReplayLog(ValueType type, Slice value, Slice ts); 29724: 29724: const Comparator* ucmp_; 29724: const MergeOperator* merge_operator_; 29724: 29724: Logger* logger_; 29724: Statistics* statistics_; 29724: 29724: GetState state_; 29724: Slice user_key_; 29724: 29724: 29724: 29724: PinnableSlice ukey_with_ts_found_; 29724: PinnableSlice* pinnable_val_; 29724: PinnableWideColumns* columns_; 29724: std::string* timestamp_; 29724: bool ts_from_rangetombstone_{false}; 29724: bool* value_found_; 29724: MergeContext* merge_context_; 29724: SequenceNumber* max_covering_tombstone_seq_; 29724: SystemClock* clock_; 29724: 29724: 29724: SequenceNumber* seq_; 29724: std::string* replay_log_; 29724: 29724: PinnedIteratorsManager* pinned_iters_mgr_; 29724: ReadCallback* callback_; 29724: bool sample_; 29724: 29724: 29724: 29724: bool do_merge_; 29724: bool* is_blob_index_; 29724: 29724: 29724: const uint64_t tracing_get_id_; 29724: BlobFetcher* blob_fetcher_; 29724: }; 29724: 29724: 29724: 29724: 29724: Status replayGetContextLog(const Slice& replay_log, const Slice& user_key, 29724: GetContext* get_context, 29724: Cleanable* value_pinner = nullptr, 29724: SequenceNumber seq_no = kMaxSequenceNumber); 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/lookup_key.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/lookup_key.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: class LookupKey { 29724: public: 29724: 29724: 29724: LookupKey(const Slice& _user_key, SequenceNumber sequence, 29724: const Slice* ts = nullptr); 29724: 29724: ~LookupKey(); 29724: 29724: 29724: Slice memtable_key() const { 29724: return Slice(start_, static_cast(end_ - start_)); 29724: } 29724: 29724: 29724: Slice internal_key() const { 29724: return Slice(kstart_, static_cast(end_ - kstart_)); 29724: } 29724: 29724: 29724: 29724: 29724: Slice user_key() const { 29724: return Slice(kstart_, static_cast(end_ - kstart_ - 8)); 29724: } 29724: 29724: private: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const char* start_; 29724: const char* kstart_; 29724: const char* end_; 29724: char space_[200]; 29724: 29724: 29724: LookupKey(const LookupKey&); 29724: void operator=(const LookupKey&); 29724: }; 29724: 29724: inline LookupKey::~LookupKey() { 29724: if (start_ != space_) delete[] start_; 29724: } 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/async_file_reader.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/single_thread_executor.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29724: 29724: namespace rocksdb { 29724: class GetContext; 29724: class PinnableWideColumns; 29724: 29724: struct KeyContext { 29724: const Slice* key; 29724: LookupKey* lkey; 29724: Slice ukey_with_ts; 29724: Slice ukey_without_ts; 29724: Slice ikey; 29724: ColumnFamilyHandle* column_family; 29724: Status* s; 29724: MergeContext merge_context; 29724: SequenceNumber max_covering_tombstone_seq; 29724: bool key_exists; 29724: bool is_blob_index; 29724: void* cb_arg; 29724: PinnableSlice* value; 29724: PinnableWideColumns* columns; 29724: std::string* timestamp; 29724: GetContext* get_context; 29724: 29724: KeyContext(ColumnFamilyHandle* col_family, const Slice& user_key, 29724: PinnableSlice* val, PinnableWideColumns* cols, std::string* ts, 29724: Status* stat) 29724: : key(&user_key), 29724: lkey(nullptr), 29724: column_family(col_family), 29724: s(stat), 29724: max_covering_tombstone_seq(0), 29724: key_exists(false), 29724: is_blob_index(false), 29724: cb_arg(nullptr), 29724: value(val), 29724: columns(cols), 29724: timestamp(ts), 29724: get_context(nullptr) {} 29724: }; 29724: # 97 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: class MultiGetContext { 29724: public: 29724: 29724: 29724: 29724: 29724: static const int MAX_BATCH_SIZE = 32; 29724: 29724: 29724: 29724: using Mask = uint64_t; 29724: static_assert(MAX_BATCH_SIZE < sizeof(Mask) * 8); 29724: 29724: MultiGetContext(autovector* sorted_keys, 29724: size_t begin, size_t num_keys, SequenceNumber snapshot, 29724: const ReadOptions& read_opts, FileSystem* fs, 29724: Statistics* stats) 29724: : num_keys_(num_keys), 29724: value_mask_(0), 29724: value_size_(0), 29724: lookup_key_ptr_(reinterpret_cast(lookup_key_stack_buf)) 29724: 29724: 29724: 29724: 29724: 29724: { 29724: (void)fs; 29724: (void)stats; 29724: 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: num_keys <= MAX_BATCH_SIZE 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "num_keys <= MAX_BATCH_SIZE" 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: if (num_keys > MAX_LOOKUP_KEYS_ON_STACK) { 29724: lookup_key_heap_buf.reset(new char[sizeof(LookupKey) * num_keys]); 29724: lookup_key_ptr_ = reinterpret_cast(lookup_key_heap_buf.get()); 29724: } 29724: 29724: for (size_t iter = 0; iter != num_keys_; ++iter) { 29724: 29724: sorted_keys_[iter] = (*sorted_keys)[begin + iter]; 29724: sorted_keys_[iter]->lkey = new (&lookup_key_ptr_[iter]) 29724: LookupKey(*sorted_keys_[iter]->key, snapshot, read_opts.timestamp); 29724: sorted_keys_[iter]->ukey_with_ts = sorted_keys_[iter]->lkey->user_key(); 29724: sorted_keys_[iter]->ukey_without_ts = StripTimestampFromUserKey( 29724: sorted_keys_[iter]->lkey->user_key(), 29724: read_opts.timestamp == nullptr ? 0 : read_opts.timestamp->size()); 29724: sorted_keys_[iter]->ikey = sorted_keys_[iter]->lkey->internal_key(); 29724: sorted_keys_[iter]->timestamp = (*sorted_keys)[begin + iter]->timestamp; 29724: sorted_keys_[iter]->get_context = 29724: (*sorted_keys)[begin + iter]->get_context; 29724: } 29724: } 29724: 29724: ~MultiGetContext() { 29724: for (size_t i = 0; i < num_keys_; ++i) { 29724: lookup_key_ptr_[i].~LookupKey(); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: private: 29724: static const int MAX_LOOKUP_KEYS_ON_STACK = 16; 29724: alignas( 29724: alignof(LookupKey)) char lookup_key_stack_buf[sizeof(LookupKey) * 29724: MAX_LOOKUP_KEYS_ON_STACK]; 29724: std::array sorted_keys_; 29724: size_t num_keys_; 29724: Mask value_mask_; 29724: uint64_t value_size_; 29724: std::unique_ptr lookup_key_heap_buf; 29724: LookupKey* lookup_key_ptr_; 29724: 29724: 29724: 29724: 29724: 29724: public: 29724: # 186 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: class Range { 29724: public: 29724: 29724: 29724: 29724: class Iterator { 29724: public: 29724: 29724: using self_type = Iterator; 29724: using value_type = KeyContext; 29724: using reference = KeyContext&; 29724: using pointer = KeyContext*; 29724: using difference_type = int; 29724: using iterator_category = std::forward_iterator_tag; 29724: 29724: Iterator(const Range* range, size_t idx) 29724: : range_(range), ctx_(range->ctx_), index_(idx) { 29724: while (index_ < range_->end_ && 29724: (Mask{1} << index_) & 29724: (range_->ctx_->value_mask_ | range_->skip_mask_ | 29724: range_->invalid_mask_)) 29724: index_++; 29724: } 29724: 29724: Iterator(const Iterator&) = default; 29724: 29724: Iterator(const Iterator& other, const Range* range) 29724: : range_(range), ctx_(other.ctx_), index_(other.index_) { 29724: 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: range->ctx_ == other.ctx_ 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "range->ctx_ == other.ctx_" 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: } 29724: Iterator& operator=(const Iterator&) = default; 29724: 29724: Iterator& operator++() { 29724: while (++index_ < range_->end_ && 29724: (Mask{1} << index_) & 29724: (range_->ctx_->value_mask_ | range_->skip_mask_ | 29724: range_->invalid_mask_)) 29724: ; 29724: return *this; 29724: } 29724: 29724: bool operator==(Iterator other) const { 29724: 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: range_->ctx_ == other.range_->ctx_ 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "range_->ctx_ == other.range_->ctx_" 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: return index_ == other.index_; 29724: } 29724: 29724: bool operator!=(Iterator other) const { 29724: 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: range_->ctx_ == other.range_->ctx_ 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "range_->ctx_ == other.range_->ctx_" 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: return index_ != other.index_; 29724: } 29724: 29724: KeyContext& operator*() { 29724: 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: index_ < range_->end_ && index_ >= range_->start_ 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "index_ < range_->end_ && index_ >= range_->start_" 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: return *(ctx_->sorted_keys_[index_]); 29724: } 29724: 29724: KeyContext* operator->() { 29724: 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: index_ < range_->end_ && index_ >= range_->start_ 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "index_ < range_->end_ && index_ >= range_->start_" 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: return ctx_->sorted_keys_[index_]; 29724: } 29724: 29724: size_t index() { return index_; } 29724: 29724: private: 29724: friend Range; 29724: const Range* range_; 29724: const MultiGetContext* ctx_; 29724: size_t index_; 29724: }; 29724: 29724: Range(const Range& mget_range, const Iterator& first, 29724: const Iterator& last) { 29724: ctx_ = mget_range.ctx_; 29724: if (first == last) { 29724: 29724: 29724: start_ = mget_range.start_; 29724: end_ = start_; 29724: } else { 29724: start_ = first.index_; 29724: end_ = last.index_; 29724: } 29724: skip_mask_ = mget_range.skip_mask_; 29724: invalid_mask_ = mget_range.invalid_mask_; 29724: 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: start_ < 64 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "start_ < 64" 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: end_ < 64 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "end_ < 64" 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: } 29724: 29724: Range() = default; 29724: 29724: Iterator begin() const { return Iterator(this, start_); } 29724: 29724: Iterator end() const { return Iterator(this, end_); } 29724: 29724: bool empty() const { return RemainingMask() == 0; } 29724: 29724: void SkipIndex(size_t index) { skip_mask_ |= Mask{1} << index; } 29724: 29724: void SkipKey(const Iterator& iter) { SkipIndex(iter.index_); } 29724: 29724: bool IsKeySkipped(const Iterator& iter) const { 29724: return skip_mask_ & (Mask{1} << iter.index_); 29724: } 29724: 29724: 29724: 29724: void MarkKeyDone(Iterator& iter) { 29724: ctx_->value_mask_ |= (Mask{1} << iter.index_); 29724: } 29724: 29724: bool CheckKeyDone(Iterator& iter) const { 29724: return ctx_->value_mask_ & (Mask{1} << iter.index_); 29724: } 29724: 29724: uint64_t KeysLeft() const { return BitsSetToOne(RemainingMask()); } 29724: 29724: void AddSkipsFrom(const Range& other) { 29724: 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ctx_ == other.ctx_ 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "ctx_ == other.ctx_" 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: skip_mask_ |= other.skip_mask_; 29724: } 29724: 29724: uint64_t GetValueSize() { return ctx_->value_size_; } 29724: 29724: void AddValueSize(uint64_t value_size) { ctx_->value_size_ += value_size; } 29724: 29724: MultiGetContext* context() const { return ctx_; } 29724: 29724: Range Suffix(const Range& other) const { 29724: size_t other_last = other.FindLastRemaining(); 29724: size_t my_last = FindLastRemaining(); 29724: 29724: if (my_last > other_last) { 29724: return Range(*this, Iterator(this, other_last), 29724: Iterator(this, my_last)); 29724: } else { 29724: return Range(*this, begin(), begin()); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: Range& operator+=(const Range& rhs) { 29724: 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: rhs.start_ >= end_ 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "rhs.start_ >= end_" 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: 29724: if (end_ < rhs.start_) { 29724: invalid_mask_ |= RangeMask(end_, rhs.start_); 29724: skip_mask_ |= RangeMask(end_, rhs.start_); 29724: } 29724: start_ = std::min(start_, rhs.start_); 29724: end_ = std::max(end_, rhs.end_); 29724: skip_mask_ |= rhs.skip_mask_ & RangeMask(rhs.start_, rhs.end_); 29724: invalid_mask_ |= (rhs.invalid_mask_ | rhs.skip_mask_) & 29724: RangeMask(rhs.start_, rhs.end_); 29724: 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: start_ < 64 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "start_ < 64" 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: end_ < 64 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "end_ < 64" 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: return *this; 29724: } 29724: 29724: 29724: 29724: 29724: Range& operator-=(const Range& rhs) { 29724: 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: start_ <= rhs.start_ && end_ >= rhs.end_ 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "start_ <= rhs.start_ && end_ >= rhs.end_" 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: skip_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 29724: RangeMask(rhs.start_, rhs.end_); 29724: invalid_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 29724: RangeMask(rhs.start_, rhs.end_); 29724: return *this; 29724: } 29724: 29724: 29724: Range operator~() { 29724: Range res = *this; 29724: res.skip_mask_ = ~skip_mask_ & RangeMask(start_, end_); 29724: return res; 29724: } 29724: 29724: private: 29724: friend MultiGetContext; 29724: MultiGetContext* ctx_; 29724: size_t start_; 29724: size_t end_; 29724: Mask skip_mask_; 29724: Mask invalid_mask_; 29724: 29724: Range(MultiGetContext* ctx, size_t num_keys) 29724: : ctx_(ctx), 29724: start_(0), 29724: end_(num_keys), 29724: skip_mask_(0), 29724: invalid_mask_(0) { 29724: 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: (static_cast ( 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: num_keys < 64 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: "num_keys < 64" 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29724: ; 29724: } 29724: 29724: static Mask RangeMask(size_t start, size_t end) { 29724: return (((Mask{1} << (end - start)) - 1) << start); 29724: } 29724: 29724: Mask RemainingMask() const { 29724: return (((Mask{1} << end_) - 1) & ~((Mask{1} << start_) - 1) & 29724: ~(ctx_->value_mask_ | skip_mask_)); 29724: } 29724: 29724: size_t FindLastRemaining() const { 29724: Mask mask = RemainingMask(); 29724: size_t index = (mask >>= start_) ? start_ : 0; 29724: while (mask >>= 1) { 29724: index++; 29724: } 29724: return index; 29724: } 29724: }; 29724: 29724: 29724: Range GetMultiGetRange() { return Range(this, num_keys_); } 29724: }; 29724: 29724: } 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Iterator; 29724: struct ParsedInternalKey; 29724: class Slice; 29724: class Arena; 29724: struct ReadOptions; 29724: struct TableProperties; 29724: class GetContext; 29724: class MultiGetContext; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class TableReader { 29724: public: 29724: virtual ~TableReader() {} 29724: # 57 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: virtual InternalIterator* NewIterator( 29724: const ReadOptions& read_options, const SliceTransform* prefix_extractor, 29724: Arena* arena, bool skip_filters, TableReaderCaller caller, 29724: size_t compaction_readahead_size = 0, 29724: bool allow_unprepared_value = false) = 0; 29724: 29724: 29724: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29724: const ReadOptions& ) { 29724: return nullptr; 29724: } 29724: 29724: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29724: SequenceNumber , const Slice* ) { 29724: return nullptr; 29724: } 29724: # 85 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: virtual uint64_t ApproximateOffsetOf(const ReadOptions& read_options, 29724: const Slice& key, 29724: TableReaderCaller caller) = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual uint64_t ApproximateSize(const ReadOptions& read_options, 29724: const Slice& start, const Slice& end, 29724: TableReaderCaller caller) = 0; 29724: 29724: struct Anchor { 29724: Anchor(const Slice& _user_key, size_t _range_size) 29724: : user_key(_user_key.ToStringView()), range_size(_range_size) {} 29724: std::string user_key; 29724: size_t range_size; 29724: }; 29724: 29724: 29724: 29724: virtual Status ApproximateKeyAnchors(const ReadOptions& , 29724: std::vector& ) { 29724: return Status::NotSupported("ApproximateKeyAnchors() not supported."); 29724: } 29724: 29724: 29724: 29724: virtual void SetupForCompaction() = 0; 29724: 29724: virtual std::shared_ptr GetTableProperties() const = 0; 29724: 29724: 29724: virtual void Prepare(const Slice& ) {} 29724: 29724: 29724: virtual size_t ApproximateMemoryUsage() const = 0; 29724: # 135 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: virtual Status Get(const ReadOptions& readOptions, const Slice& key, 29724: GetContext* get_context, 29724: const SliceTransform* prefix_extractor, 29724: bool skip_filters = false) = 0; 29724: 29724: 29724: 29724: 29724: virtual Status MultiGetFilter(const ReadOptions& , 29724: const SliceTransform* , 29724: MultiGetContext::Range* ) { 29724: return Status::NotSupported(); 29724: } 29724: 29724: virtual void MultiGet(const ReadOptions& readOptions, 29724: const MultiGetContext::Range* mget_range, 29724: const SliceTransform* prefix_extractor, 29724: bool skip_filters = false) { 29724: for (auto iter = mget_range->begin(); iter != mget_range->end(); ++iter) { 29724: *iter->s = Get(readOptions, iter->ikey, iter->get_context, 29724: prefix_extractor, skip_filters); 29724: } 29724: } 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29724: virtual Status Prefetch(const ReadOptions& , 29724: const Slice* begin = nullptr, 29724: const Slice* end = nullptr) { 29724: (void)begin; 29724: (void)end; 29724: 29724: 29724: return Status::OK(); 29724: } 29724: 29724: 29724: virtual Status DumpTable(WritableFile* ) { 29724: return Status::NotSupported("DumpTable() not supported"); 29724: } 29724: 29724: 29724: virtual Status VerifyChecksum(const ReadOptions& , 29724: TableReaderCaller ) { 29724: return Status::NotSupported("VerifyChecksum() not supported"); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void MarkObsolete(uint32_t ) { 29724: 29724: } 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 29724: Status GetUniqueIdFromTableProperties(const TableProperties &props, 29724: std::string *out_id); 29724: # 47 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 29724: Status GetExtendedUniqueIdFromTableProperties(const TableProperties &props, 29724: std::string *out_id); 29724: 29724: 29724: 29724: 29724: std::string UniqueIdToHumanString(const std::string &id); 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: 29724: using UniqueId64x2 = std::array; 29724: 29724: 29724: constexpr UniqueId64x2 kNullUniqueId64x2 = {}; 29724: 29724: 29724: 29724: using UniqueId64x3 = std::array; 29724: 29724: 29724: constexpr UniqueId64x3 kNullUniqueId64x3 = {}; 29724: 29724: 29724: struct UniqueIdPtr { 29724: uint64_t *ptr = nullptr; 29724: bool extended = false; 29724: 29724: UniqueIdPtr(UniqueId64x2 *id) { 29724: ptr = (*id).data(); 29724: extended = false; 29724: } 29724: UniqueIdPtr(UniqueId64x3 *id) { 29724: ptr = (*id).data(); 29724: extended = true; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: Status GetSstInternalUniqueId(const std::string &db_id, 29724: const std::string &db_session_id, 29724: uint64_t file_number, UniqueIdPtr out, 29724: bool force = false); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void InternalUniqueIdToExternal(UniqueIdPtr in_out); 29724: 29724: 29724: 29724: void ExternalUniqueIdToInternal(UniqueIdPtr in_out); 29724: 29724: 29724: std::string EncodeUniqueIdBytes(UniqueIdPtr in); 29724: 29724: 29724: Status DecodeUniqueIdBytes(const std::string &unique_id, UniqueIdPtr out); 29724: 29724: 29724: 29724: std::string InternalUniqueIdToHumanString(UniqueIdPtr in); 29724: # 85 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 29724: std::string EncodeSessionId(uint64_t upper, uint64_t lower); 29724: 29724: 29724: 29724: 29724: Status DecodeSessionId(const std::string &db_session_id, uint64_t *upper, 29724: uint64_t *lower); 29724: 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: enum Tag : uint32_t { 29724: kComparator = 1, 29724: kLogNumber = 2, 29724: kNextFileNumber = 3, 29724: kLastSequence = 4, 29724: kCompactCursor = 5, 29724: kDeletedFile = 6, 29724: kNewFile = 7, 29724: 29724: kPrevLogNumber = 9, 29724: kMinLogNumberToKeep = 10, 29724: 29724: 29724: kNewFile2 = 100, 29724: kNewFile3 = 102, 29724: kNewFile4 = 103, 29724: kColumnFamily = 200, 29724: kColumnFamilyAdd = 201, 29724: kColumnFamilyDrop = 202, 29724: kMaxColumnFamily = 203, 29724: 29724: kInAtomicGroup = 300, 29724: 29724: kBlobFileAddition = 400, 29724: kBlobFileGarbage, 29724: 29724: 29724: kTagSafeIgnoreMask = 1 << 13, 29724: 29724: 29724: kDbId, 29724: kBlobFileAddition_DEPRECATED, 29724: kBlobFileGarbage_DEPRECATED, 29724: kWalAddition, 29724: kWalDeletion, 29724: kFullHistoryTsLow, 29724: kWalAddition2, 29724: kWalDeletion2, 29724: kPersistUserDefinedTimestamps, 29724: }; 29724: 29724: enum NewFileCustomTag : uint32_t { 29724: kTerminate = 1, 29724: kNeedCompaction = 2, 29724: 29724: 29724: 29724: kMinLogNumberToKeepHack = 3, 29724: kOldestBlobFileNumber = 4, 29724: kOldestAncesterTime = 5, 29724: kFileCreationTime = 6, 29724: kFileChecksum = 7, 29724: kFileChecksumFuncName = 8, 29724: kTemperature = 9, 29724: kMinTimestamp = 10, 29724: kMaxTimestamp = 11, 29724: kUniqueId = 12, 29724: kEpochNumber = 13, 29724: kCompensatedRangeDeletionSize = 14, 29724: kTailSize = 15, 29724: kUserDefinedTimestampsPersisted = 16, 29724: 29724: 29724: 29724: kCustomTagNonSafeIgnoreMask = 1 << 6, 29724: 29724: 29724: kPathId, 29724: }; 29724: 29724: class VersionSet; 29724: 29724: constexpr uint64_t kFileNumberMask = 0x3FFFFFFFFFFFFFFF; 29724: constexpr uint64_t kUnknownOldestAncesterTime = 0; 29724: constexpr uint64_t kUnknownNewestKeyTime = 0; 29724: constexpr uint64_t kUnknownFileCreationTime = 0; 29724: constexpr uint64_t kUnknownEpochNumber = 0; 29724: 29724: 29724: constexpr uint64_t kReservedEpochNumberForFileIngestedBehind = 1; 29724: 29724: uint64_t PackFileNumberAndPathId(uint64_t number, uint64_t path_id); 29724: 29724: 29724: 29724: 29724: 29724: 29724: struct FileDescriptor { 29724: 29724: TableReader* table_reader; 29724: uint64_t packed_number_and_path_id; 29724: uint64_t file_size; 29724: SequenceNumber smallest_seqno; 29724: SequenceNumber largest_seqno; 29724: 29724: FileDescriptor() : FileDescriptor(0, 0, 0) {} 29724: 29724: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size) 29724: : FileDescriptor(number, path_id, _file_size, kMaxSequenceNumber, 0) {} 29724: 29724: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size, 29724: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno) 29724: : table_reader(nullptr), 29724: packed_number_and_path_id(PackFileNumberAndPathId(number, path_id)), 29724: file_size(_file_size), 29724: smallest_seqno(_smallest_seqno), 29724: largest_seqno(_largest_seqno) {} 29724: 29724: FileDescriptor(const FileDescriptor& fd) { *this = fd; } 29724: 29724: FileDescriptor& operator=(const FileDescriptor& fd) { 29724: table_reader = fd.table_reader; 29724: packed_number_and_path_id = fd.packed_number_and_path_id; 29724: file_size = fd.file_size; 29724: smallest_seqno = fd.smallest_seqno; 29724: largest_seqno = fd.largest_seqno; 29724: return *this; 29724: } 29724: 29724: uint64_t GetNumber() const { 29724: return packed_number_and_path_id & kFileNumberMask; 29724: } 29724: uint32_t GetPathId() const { 29724: return static_cast(packed_number_and_path_id / 29724: (kFileNumberMask + 1)); 29724: } 29724: uint64_t GetFileSize() const { return file_size; } 29724: }; 29724: 29724: struct FileSampledStats { 29724: FileSampledStats() : num_reads_sampled(0) {} 29724: FileSampledStats(const FileSampledStats& other) { *this = other; } 29724: FileSampledStats& operator=(const FileSampledStats& other) { 29724: num_reads_sampled = other.num_reads_sampled.load(); 29724: return *this; 29724: } 29724: 29724: 29724: mutable std::atomic num_reads_sampled; 29724: }; 29724: 29724: struct FileMetaData { 29724: FileDescriptor fd; 29724: InternalKey smallest; 29724: InternalKey largest; 29724: 29724: 29724: Cache::Handle* table_reader_handle = nullptr; 29724: 29724: FileSampledStats stats; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint64_t compensated_file_size = 0; 29724: 29724: 29724: uint64_t num_entries = 29724: 0; 29724: 29724: uint64_t num_deletions = 0; 29724: uint64_t raw_key_size = 0; 29724: uint64_t raw_value_size = 0; 29724: uint64_t num_range_deletions = 0; 29724: 29724: 29724: 29724: uint64_t compensated_range_deletion_size = 0; 29724: 29724: int refs = 0; 29724: 29724: bool being_compacted = false; 29724: bool init_stats_from_file = false; 29724: 29724: 29724: bool marked_for_compaction = false; 29724: 29724: Temperature temperature = Temperature::kUnknown; 29724: 29724: 29724: 29724: uint64_t oldest_blob_file_number = kInvalidBlobFileNumber; 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: uint64_t oldest_ancester_time = kUnknownOldestAncesterTime; 29724: 29724: 29724: uint64_t file_creation_time = kUnknownFileCreationTime; 29724: 29724: 29724: 29724: 29724: 29724: uint64_t epoch_number = kUnknownEpochNumber; 29724: 29724: 29724: std::string file_checksum = kUnknownFileChecksum; 29724: 29724: 29724: std::string file_checksum_func_name = kUnknownFileChecksumFuncName; 29724: 29724: 29724: UniqueId64x2 unique_id{}; 29724: 29724: 29724: 29724: uint64_t tail_size = 0; 29724: 29724: 29724: 29724: 29724: bool user_defined_timestamps_persisted = true; 29724: 29724: FileMetaData() = default; 29724: 29724: FileMetaData(uint64_t file, uint32_t file_path_id, uint64_t file_size, 29724: const InternalKey& smallest_key, const InternalKey& largest_key, 29724: const SequenceNumber& smallest_seq, 29724: const SequenceNumber& largest_seq, bool marked_for_compact, 29724: Temperature _temperature, uint64_t oldest_blob_file, 29724: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 29724: uint64_t _epoch_number, const std::string& _file_checksum, 29724: const std::string& _file_checksum_func_name, 29724: UniqueId64x2 _unique_id, 29724: const uint64_t _compensated_range_deletion_size, 29724: uint64_t _tail_size, bool _user_defined_timestamps_persisted) 29724: : fd(file, file_path_id, file_size, smallest_seq, largest_seq), 29724: smallest(smallest_key), 29724: largest(largest_key), 29724: compensated_range_deletion_size(_compensated_range_deletion_size), 29724: marked_for_compaction(marked_for_compact), 29724: temperature(_temperature), 29724: oldest_blob_file_number(oldest_blob_file), 29724: oldest_ancester_time(_oldest_ancester_time), 29724: file_creation_time(_file_creation_time), 29724: epoch_number(_epoch_number), 29724: file_checksum(_file_checksum), 29724: file_checksum_func_name(_file_checksum_func_name), 29724: unique_id(std::move(_unique_id)), 29724: tail_size(_tail_size), 29724: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) { 29724: rocksdb::SyncPoint::GetInstance()->Process("FileMetaData::FileMetaData", this); 29724: } 29724: 29724: 29724: 29724: Status UpdateBoundaries(const Slice& key, const Slice& value, 29724: SequenceNumber seqno, ValueType value_type); 29724: 29724: 29724: 29724: void UpdateBoundariesForRange(const InternalKey& start, 29724: const InternalKey& end, SequenceNumber seqno, 29724: const InternalKeyComparator& icmp) { 29724: if (smallest.size() == 0 || icmp.Compare(start, smallest) < 0) { 29724: smallest = start; 29724: } 29724: if (largest.size() == 0 || icmp.Compare(largest, end) < 0) { 29724: largest = end; 29724: } 29724: 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: icmp.Compare(smallest, largest) <= 0 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "icmp.Compare(smallest, largest) <= 0" 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: fd.smallest_seqno = std::min(fd.smallest_seqno, seqno); 29724: fd.largest_seqno = std::max(fd.largest_seqno, seqno); 29724: } 29724: 29724: 29724: 29724: 29724: uint64_t TryGetOldestAncesterTime() { 29724: if (oldest_ancester_time != kUnknownOldestAncesterTime) { 29724: return oldest_ancester_time; 29724: } else if (fd.table_reader != nullptr && 29724: fd.table_reader->GetTableProperties() != nullptr) { 29724: return fd.table_reader->GetTableProperties()->creation_time; 29724: } 29724: return kUnknownOldestAncesterTime; 29724: } 29724: 29724: uint64_t TryGetFileCreationTime() { 29724: if (file_creation_time != kUnknownFileCreationTime) { 29724: return file_creation_time; 29724: } else if (fd.table_reader != nullptr && 29724: fd.table_reader->GetTableProperties() != nullptr) { 29724: return fd.table_reader->GetTableProperties()->file_creation_time; 29724: } 29724: return kUnknownFileCreationTime; 29724: } 29724: 29724: 29724: 29724: uint64_t TryGetNewestKeyTime(FileMetaData* prev_file = nullptr) { 29724: if (fd.table_reader != nullptr && 29724: fd.table_reader->GetTableProperties() != nullptr) { 29724: uint64_t newest_key_time = 29724: fd.table_reader->GetTableProperties()->newest_key_time; 29724: if (newest_key_time != kUnknownNewestKeyTime) { 29724: return newest_key_time; 29724: } 29724: } 29724: if (prev_file != nullptr) { 29724: uint64_t prev_oldest_ancestor_time = 29724: prev_file->TryGetOldestAncesterTime(); 29724: if (prev_oldest_ancestor_time != kUnknownOldestAncesterTime) { 29724: return prev_oldest_ancestor_time; 29724: } 29724: } 29724: return kUnknownNewestKeyTime; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: size_t usage = 0; 29724: 29724: usage += malloc_usable_size(const_cast(this)); 29724: 29724: 29724: 29724: usage += smallest.size() + largest.size() + file_checksum.size() + 29724: file_checksum_func_name.size(); 29724: return usage; 29724: } 29724: 29724: 29724: 29724: bool FileIsStandAloneRangeTombstone() const { 29724: bool res = num_range_deletions == 1 && num_entries == num_range_deletions; 29724: 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !res || fd.smallest_seqno == fd.largest_seqno 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!res || fd.smallest_seqno == fd.largest_seqno" 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: return res; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: struct FdWithKeyRange { 29724: FileDescriptor fd; 29724: FileMetaData* file_metadata; 29724: Slice smallest_key; 29724: Slice largest_key; 29724: 29724: FdWithKeyRange() 29724: : fd(), file_metadata(nullptr), smallest_key(), largest_key() {} 29724: 29724: FdWithKeyRange(FileDescriptor _fd, Slice _smallest_key, Slice _largest_key, 29724: FileMetaData* _file_metadata) 29724: : fd(_fd), 29724: file_metadata(_file_metadata), 29724: smallest_key(_smallest_key), 29724: largest_key(_largest_key) {} 29724: }; 29724: 29724: 29724: 29724: struct LevelFilesBrief { 29724: size_t num_files; 29724: FdWithKeyRange* files; 29724: LevelFilesBrief() { 29724: num_files = 0; 29724: files = nullptr; 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class VersionEdit { 29724: public: 29724: void Clear(); 29724: 29724: void SetDBId(const std::string& db_id) { 29724: has_db_id_ = true; 29724: db_id_ = db_id; 29724: } 29724: bool HasDbId() const { return has_db_id_; } 29724: const std::string& GetDbId() const { return db_id_; } 29724: 29724: void SetComparatorName(const Slice& name) { 29724: has_comparator_ = true; 29724: comparator_ = name.ToString(); 29724: } 29724: bool HasComparatorName() const { return has_comparator_; } 29724: const std::string& GetComparatorName() const { return comparator_; } 29724: 29724: void SetPersistUserDefinedTimestamps(bool persist_user_defined_timestamps) { 29724: has_persist_user_defined_timestamps_ = true; 29724: persist_user_defined_timestamps_ = persist_user_defined_timestamps; 29724: } 29724: bool HasPersistUserDefinedTimestamps() const { 29724: return has_persist_user_defined_timestamps_; 29724: } 29724: bool GetPersistUserDefinedTimestamps() const { 29724: return persist_user_defined_timestamps_; 29724: } 29724: 29724: void SetLogNumber(uint64_t num) { 29724: has_log_number_ = true; 29724: log_number_ = num; 29724: } 29724: bool HasLogNumber() const { return has_log_number_; } 29724: uint64_t GetLogNumber() const { return log_number_; } 29724: 29724: void SetPrevLogNumber(uint64_t num) { 29724: has_prev_log_number_ = true; 29724: prev_log_number_ = num; 29724: } 29724: bool HasPrevLogNumber() const { return has_prev_log_number_; } 29724: uint64_t GetPrevLogNumber() const { return prev_log_number_; } 29724: 29724: void SetNextFile(uint64_t num) { 29724: has_next_file_number_ = true; 29724: next_file_number_ = num; 29724: } 29724: bool HasNextFile() const { return has_next_file_number_; } 29724: uint64_t GetNextFile() const { return next_file_number_; } 29724: 29724: void SetMaxColumnFamily(uint32_t max_column_family) { 29724: has_max_column_family_ = true; 29724: max_column_family_ = max_column_family; 29724: } 29724: bool HasMaxColumnFamily() const { return has_max_column_family_; } 29724: uint32_t GetMaxColumnFamily() const { return max_column_family_; } 29724: 29724: void SetMinLogNumberToKeep(uint64_t num) { 29724: has_min_log_number_to_keep_ = true; 29724: min_log_number_to_keep_ = num; 29724: } 29724: bool HasMinLogNumberToKeep() const { return has_min_log_number_to_keep_; } 29724: uint64_t GetMinLogNumberToKeep() const { return min_log_number_to_keep_; } 29724: 29724: void SetLastSequence(SequenceNumber seq) { 29724: has_last_sequence_ = true; 29724: last_sequence_ = seq; 29724: } 29724: bool HasLastSequence() const { return has_last_sequence_; } 29724: SequenceNumber GetLastSequence() const { return last_sequence_; } 29724: 29724: 29724: void DeleteFile(int level, uint64_t file) { 29724: deleted_files_.emplace(level, file); 29724: } 29724: 29724: 29724: using DeletedFiles = std::set>; 29724: const DeletedFiles& GetDeletedFiles() const { return deleted_files_; } 29724: 29724: 29724: 29724: 29724: 29724: void AddFile(int level, uint64_t file, uint32_t file_path_id, 29724: uint64_t file_size, const InternalKey& smallest, 29724: const InternalKey& largest, const SequenceNumber& smallest_seqno, 29724: const SequenceNumber& largest_seqno, bool marked_for_compaction, 29724: Temperature temperature, uint64_t oldest_blob_file_number, 29724: uint64_t oldest_ancester_time, uint64_t file_creation_time, 29724: uint64_t epoch_number, const std::string& file_checksum, 29724: const std::string& file_checksum_func_name, 29724: const UniqueId64x2& unique_id, 29724: const uint64_t compensated_range_deletion_size, 29724: uint64_t tail_size, bool user_defined_timestamps_persisted) { 29724: 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: smallest_seqno <= largest_seqno 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "smallest_seqno <= largest_seqno" 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: new_files_.emplace_back( 29724: level, 29724: FileMetaData(file, file_path_id, file_size, smallest, largest, 29724: smallest_seqno, largest_seqno, marked_for_compaction, 29724: temperature, oldest_blob_file_number, oldest_ancester_time, 29724: file_creation_time, epoch_number, file_checksum, 29724: file_checksum_func_name, unique_id, 29724: compensated_range_deletion_size, tail_size, 29724: user_defined_timestamps_persisted)); 29724: files_to_quarantine_.push_back(file); 29724: if (!HasLastSequence() || largest_seqno > GetLastSequence()) { 29724: SetLastSequence(largest_seqno); 29724: } 29724: } 29724: 29724: void AddFile(int level, const FileMetaData& f) { 29724: 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: f.fd.smallest_seqno <= f.fd.largest_seqno 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "f.fd.smallest_seqno <= f.fd.largest_seqno" 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: new_files_.emplace_back(level, f); 29724: files_to_quarantine_.push_back(f.fd.GetNumber()); 29724: if (!HasLastSequence() || f.fd.largest_seqno > GetLastSequence()) { 29724: SetLastSequence(f.fd.largest_seqno); 29724: } 29724: } 29724: 29724: 29724: using NewFiles = std::vector>; 29724: const NewFiles& GetNewFiles() const { return new_files_; } 29724: 29724: NewFiles& GetMutableNewFiles() { return new_files_; } 29724: 29724: 29724: using CompactCursors = std::vector>; 29724: const CompactCursors& GetCompactCursors() const { return compact_cursors_; } 29724: void AddCompactCursor(int level, const InternalKey& cursor) { 29724: compact_cursors_.push_back(std::make_pair(level, cursor)); 29724: } 29724: void SetCompactCursors( 29724: const std::vector& compact_cursors_by_level) { 29724: compact_cursors_.clear(); 29724: compact_cursors_.reserve(compact_cursors_by_level.size()); 29724: for (int i = 0; i < (int)compact_cursors_by_level.size(); i++) { 29724: if (compact_cursors_by_level[i].Valid()) { 29724: compact_cursors_.push_back( 29724: std::make_pair(i, compact_cursors_by_level[i])); 29724: } 29724: } 29724: } 29724: 29724: 29724: void AddBlobFile(uint64_t blob_file_number, uint64_t total_blob_count, 29724: uint64_t total_blob_bytes, std::string checksum_method, 29724: std::string checksum_value) { 29724: blob_file_additions_.emplace_back( 29724: blob_file_number, total_blob_count, total_blob_bytes, 29724: std::move(checksum_method), std::move(checksum_value)); 29724: files_to_quarantine_.push_back(blob_file_number); 29724: } 29724: 29724: void AddBlobFile(BlobFileAddition blob_file_addition) { 29724: blob_file_additions_.emplace_back(std::move(blob_file_addition)); 29724: files_to_quarantine_.push_back( 29724: blob_file_additions_.back().GetBlobFileNumber()); 29724: } 29724: 29724: 29724: using BlobFileAdditions = std::vector; 29724: const BlobFileAdditions& GetBlobFileAdditions() const { 29724: return blob_file_additions_; 29724: } 29724: 29724: void SetBlobFileAdditions(BlobFileAdditions blob_file_additions) { 29724: 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: blob_file_additions_.empty() 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "blob_file_additions_.empty()" 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: blob_file_additions_ = std::move(blob_file_additions); 29724: std::for_each( 29724: blob_file_additions_.begin(), blob_file_additions_.end(), 29724: [&](const BlobFileAddition& blob_file) { 29724: files_to_quarantine_.push_back(blob_file.GetBlobFileNumber()); 29724: }); 29724: } 29724: 29724: 29724: 29724: void AddBlobFileGarbage(uint64_t blob_file_number, 29724: uint64_t garbage_blob_count, 29724: uint64_t garbage_blob_bytes) { 29724: blob_file_garbages_.emplace_back(blob_file_number, garbage_blob_count, 29724: garbage_blob_bytes); 29724: } 29724: 29724: void AddBlobFileGarbage(BlobFileGarbage blob_file_garbage) { 29724: blob_file_garbages_.emplace_back(std::move(blob_file_garbage)); 29724: } 29724: 29724: 29724: using BlobFileGarbages = std::vector; 29724: const BlobFileGarbages& GetBlobFileGarbages() const { 29724: return blob_file_garbages_; 29724: } 29724: 29724: void SetBlobFileGarbages(BlobFileGarbages blob_file_garbages) { 29724: 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: blob_file_garbages_.empty() 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "blob_file_garbages_.empty()" 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: blob_file_garbages_ = std::move(blob_file_garbages); 29724: } 29724: 29724: 29724: 29724: void AddWal(WalNumber number, WalMetadata metadata = WalMetadata()) { 29724: 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: NumEntries() == wal_additions_.size() 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "NumEntries() == wal_additions_.size()" 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: wal_additions_.emplace_back(number, std::move(metadata)); 29724: } 29724: 29724: 29724: const WalAdditions& GetWalAdditions() const { return wal_additions_; } 29724: 29724: bool IsWalAddition() const { return !wal_additions_.empty(); } 29724: 29724: 29724: 29724: void DeleteWalsBefore(WalNumber number) { 29724: 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: (NumEntries() == 1) == !wal_deletion_.IsEmpty() 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "(NumEntries() == 1) == !wal_deletion_.IsEmpty()" 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: wal_deletion_ = WalDeletion(number); 29724: } 29724: 29724: const WalDeletion& GetWalDeletion() const { return wal_deletion_; } 29724: 29724: bool IsWalDeletion() const { return !wal_deletion_.IsEmpty(); } 29724: 29724: bool IsWalManipulation() const { 29724: size_t entries = NumEntries(); 29724: return (entries > 0) && ((entries == wal_additions_.size()) || 29724: (entries == !wal_deletion_.IsEmpty())); 29724: } 29724: 29724: 29724: size_t NumEntries() const { 29724: return new_files_.size() + deleted_files_.size() + 29724: blob_file_additions_.size() + blob_file_garbages_.size() + 29724: wal_additions_.size() + !wal_deletion_.IsEmpty(); 29724: } 29724: 29724: void SetColumnFamily(uint32_t column_family_id) { 29724: column_family_ = column_family_id; 29724: } 29724: uint32_t GetColumnFamily() const { return column_family_; } 29724: 29724: const std::string& GetColumnFamilyName() const { return column_family_name_; } 29724: 29724: 29724: void AddColumnFamily(const std::string& name) { 29724: 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !is_column_family_drop_ 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!is_column_family_drop_" 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !is_column_family_add_ 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!is_column_family_add_" 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: NumEntries() == 0 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "NumEntries() == 0" 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: is_column_family_add_ = true; 29724: column_family_name_ = name; 29724: } 29724: 29724: 29724: void DropColumnFamily() { 29724: 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !is_column_family_drop_ 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!is_column_family_drop_" 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !is_column_family_add_ 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!is_column_family_add_" 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: NumEntries() == 0 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "NumEntries() == 0" 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: is_column_family_drop_ = true; 29724: } 29724: 29724: bool IsColumnFamilyManipulation() const { 29724: return is_column_family_add_ || is_column_family_drop_; 29724: } 29724: 29724: bool IsColumnFamilyAdd() const { return is_column_family_add_; } 29724: 29724: bool IsColumnFamilyDrop() const { return is_column_family_drop_; } 29724: 29724: void MarkAtomicGroup(uint32_t remaining_entries) { 29724: is_in_atomic_group_ = true; 29724: remaining_entries_ = remaining_entries; 29724: } 29724: bool IsInAtomicGroup() const { return is_in_atomic_group_; } 29724: void SetRemainingEntries(uint32_t remaining_entries) { 29724: remaining_entries_ = remaining_entries; 29724: } 29724: uint32_t GetRemainingEntries() const { return remaining_entries_; } 29724: 29724: bool HasFullHistoryTsLow() const { return !full_history_ts_low_.empty(); } 29724: const std::string& GetFullHistoryTsLow() const { 29724: 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: HasFullHistoryTsLow() 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "HasFullHistoryTsLow()" 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: return full_history_ts_low_; 29724: } 29724: void SetFullHistoryTsLow(std::string full_history_ts_low) { 29724: 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: (static_cast ( 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: !full_history_ts_low.empty() 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: "!full_history_ts_low.empty()" 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: ; 29724: full_history_ts_low_ = std::move(full_history_ts_low); 29724: } 29724: # 718 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: bool EncodeTo(std::string* dst, 29724: std::optional ts_sz = std::nullopt) const; 29724: Status DecodeFrom(const Slice& src); 29724: 29724: const autovector* GetFilesToQuarantineIfCommitFail() const { 29724: return &files_to_quarantine_; 29724: } 29724: 29724: std::string DebugString(bool hex_key = false) const; 29724: std::string DebugJSON(int edit_num, bool hex_key = false) const; 29724: 29724: private: 29724: bool GetLevel(Slice* input, int* level, const char** msg); 29724: 29724: const char* DecodeNewFile4From(Slice* input); 29724: 29724: 29724: 29724: 29724: void EncodeFileBoundaries(std::string* dst, const FileMetaData& meta, 29724: size_t ts_sz) const; 29724: 29724: int max_level_ = 0; 29724: std::string db_id_; 29724: std::string comparator_; 29724: uint64_t log_number_ = 0; 29724: uint64_t prev_log_number_ = 0; 29724: uint64_t next_file_number_ = 0; 29724: uint32_t max_column_family_ = 0; 29724: 29724: uint64_t min_log_number_to_keep_ = 0; 29724: SequenceNumber last_sequence_ = 0; 29724: bool has_db_id_ = false; 29724: bool has_comparator_ = false; 29724: bool has_log_number_ = false; 29724: bool has_prev_log_number_ = false; 29724: bool has_next_file_number_ = false; 29724: bool has_max_column_family_ = false; 29724: bool has_min_log_number_to_keep_ = false; 29724: bool has_last_sequence_ = false; 29724: bool has_persist_user_defined_timestamps_ = false; 29724: 29724: 29724: CompactCursors compact_cursors_; 29724: 29724: DeletedFiles deleted_files_; 29724: NewFiles new_files_; 29724: 29724: BlobFileAdditions blob_file_additions_; 29724: BlobFileGarbages blob_file_garbages_; 29724: 29724: WalAdditions wal_additions_; 29724: WalDeletion wal_deletion_; 29724: 29724: 29724: 29724: uint32_t column_family_ = 0; 29724: 29724: 29724: 29724: bool is_column_family_drop_ = false; 29724: bool is_column_family_add_ = false; 29724: std::string column_family_name_; 29724: 29724: bool is_in_atomic_group_ = false; 29724: uint32_t remaining_entries_ = 0; 29724: 29724: std::string full_history_ts_low_; 29724: bool persist_user_defined_timestamps_ = true; 29724: # 796 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29724: autovector files_to_quarantine_; 29724: }; 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/cinttypes" 1 3 29724: # 32 "/usr/include/c++/14/cinttypes" 3 29724: 29724: # 33 "/usr/include/c++/14/cinttypes" 3 29724: # 46 "/usr/include/c++/14/cinttypes" 3 29724: # 1 "/usr/include/inttypes.h" 1 3 4 29724: # 327 "/usr/include/inttypes.h" 3 4 29724: 29724: # 327 "/usr/include/inttypes.h" 3 4 29724: extern "C" { 29724: # 341 "/usr/include/inttypes.h" 3 4 29724: typedef struct 29724: { 29724: __extension__ long long int quot; 29724: __extension__ long long int rem; 29724: } imaxdiv_t; 29724: 29724: 29724: 29724: 29724: 29724: extern intmax_t imaxabs (intmax_t __n) noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) 29724: noexcept (true) __attribute__ ((__const__)); 29724: 29724: 29724: extern intmax_t strtoimax (const char *__restrict __nptr, 29724: char **__restrict __endptr, int __base) noexcept (true); 29724: 29724: 29724: extern uintmax_t strtoumax (const char *__restrict __nptr, 29724: char ** __restrict __endptr, int __base) noexcept (true); 29724: 29724: 29724: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, 29724: wchar_t **__restrict __endptr, int __base) 29724: noexcept (true); 29724: 29724: 29724: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, 29724: wchar_t ** __restrict __endptr, int __base) 29724: noexcept (true); 29724: 29724: 29724: 29724: 29724: 29724: extern intmax_t strtoimax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoimax") 29724: 29724: ; 29724: extern uintmax_t strtoumax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoumax") 29724: 29724: ; 29724: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoimax") 29724: 29724: 29724: ; 29724: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoumax") 29724: 29724: 29724: ; 29724: # 415 "/usr/include/inttypes.h" 3 4 29724: } 29724: # 47 "/usr/include/c++/14/cinttypes" 2 3 29724: # 55 "/usr/include/c++/14/cinttypes" 3 29724: namespace std 29724: { 29724: 29724: using ::imaxdiv_t; 29724: 29724: 29724: using ::imaxabs; 29724: using ::imaxdiv; 29724: 29724: 29724: 29724: 29724: 29724: using ::strtoimax; 29724: using ::strtoumax; 29724: 29724: 29724: using ::wcstoimax; 29724: using ::wcstoumax; 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 2 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: namespace rocksdb { 29724: 29724: constexpr uint64_t kUnknownTimeBeforeAll = 0; 29724: constexpr SequenceNumber kUnknownSeqnoBeforeAll = 0; 29724: 29724: 29724: 29724: constexpr uint64_t kMaxSeqnoTimePairsPerSST = 100; 29724: # 38 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: constexpr uint64_t kMaxSeqnoTimePairsPerCF = 100; 29724: 29724: constexpr uint64_t kMaxSeqnoToTimeEntries = kMaxSeqnoTimePairsPerCF * 10; 29724: # 68 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: class SeqnoToTimeMapping { 29724: public: 29724: 29724: struct SeqnoTimePair { 29724: SequenceNumber seqno = 0; 29724: uint64_t time = 0; 29724: 29724: SeqnoTimePair() = default; 29724: SeqnoTimePair(SequenceNumber _seqno, uint64_t _time) 29724: : seqno(_seqno), time(_time) {} 29724: 29724: 29724: void Encode(std::string& dest) const; 29724: 29724: 29724: Status Decode(Slice& input); 29724: 29724: 29724: SeqnoTimePair ComputeDelta(const SeqnoTimePair& base) const { 29724: return {seqno - base.seqno, time - base.time}; 29724: } 29724: 29724: 29724: void ApplyDelta(const SeqnoTimePair& delta_or_base) { 29724: seqno += delta_or_base.seqno; 29724: time += delta_or_base.time; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: bool Merge(const SeqnoTimePair& other); 29724: 29724: 29724: bool operator<(const SeqnoTimePair& other) const { 29724: return std::tie(seqno, time) < std::tie(other.seqno, other.time); 29724: } 29724: 29724: bool operator==(const SeqnoTimePair& other) const { 29724: return std::tie(seqno, time) == std::tie(other.seqno, other.time); 29724: } 29724: 29724: static bool SeqnoLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 29724: return a.seqno < b.seqno; 29724: } 29724: 29724: static bool TimeLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 29724: return a.time < b.time; 29724: } 29724: }; 29724: 29724: 29724: SeqnoToTimeMapping() {} 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: SeqnoToTimeMapping& SetMaxTimeSpan(uint64_t max_time_span); 29724: 29724: 29724: 29724: 29724: 29724: SeqnoToTimeMapping& SetCapacity(uint64_t capacity); 29724: 29724: 29724: 29724: 29724: 29724: bool PrePopulate(SequenceNumber from_seqno, SequenceNumber to_seqno, 29724: uint64_t from_time, uint64_t to_time); 29724: 29724: 29724: 29724: 29724: 29724: 29724: bool Append(SequenceNumber seqno, uint64_t time); 29724: 29724: 29724: 29724: void Clear() { 29724: pairs_.clear(); 29724: enforced_ = true; 29724: } 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: SeqnoToTimeMapping& Enforce(uint64_t now = 0); 29724: 29724: 29724: 29724: 29724: void AddUnenforced(SequenceNumber seqno, uint64_t time); 29724: 29724: 29724: 29724: 29724: Status DecodeFrom(const std::string& pairs_str); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void CopyFromSeqnoRange(const SeqnoToTimeMapping& src, 29724: SequenceNumber from_seqno, 29724: SequenceNumber to_seqno = kMaxSequenceNumber); 29724: void CopyFrom(const SeqnoToTimeMapping& src) { 29724: CopyFromSeqnoRange(src, kUnknownSeqnoBeforeAll, kMaxSequenceNumber); 29724: } 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: uint64_t GetProximalTimeBeforeSeqno(SequenceNumber seqno) const; 29724: # 214 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: SequenceNumber GetProximalSeqnoBeforeTime(uint64_t time) const; 29724: 29724: 29724: 29724: 29724: void GetCurrentTieringCutoffSeqnos( 29724: uint64_t current_time, uint64_t preserve_internal_time_seconds, 29724: uint64_t preclude_last_level_data_seconds, 29724: SequenceNumber* preserve_time_min_seqno, 29724: SequenceNumber* preclude_last_level_min_seqno) const; 29724: 29724: 29724: 29724: 29724: void EncodeTo(std::string& dest) const; 29724: 29724: 29724: size_t Size() const { return pairs_.size(); } 29724: 29724: uint64_t GetCapacity() const { return capacity_; } 29724: 29724: 29724: bool Empty() const { return pairs_.empty(); } 29724: 29724: 29724: 29724: std::string ToHumanString() const; 29724: 29724: 29724: const SeqnoTimePair& TEST_GetLastEntry() const { return pairs_.back(); } 29724: const std::deque& TEST_GetInternalMapping() const { 29724: return pairs_; 29724: } 29724: bool TEST_IsEnforced() const { return enforced_; } 29724: 29724: 29724: private: 29724: uint64_t max_time_span_ = 29724: # 251 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 3 4 29724: (18446744073709551615ULL) 29724: # 251 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: ; 29724: uint64_t capacity_ = 29724: # 252 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 3 4 29724: (18446744073709551615ULL) 29724: # 252 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: ; 29724: 29724: std::deque pairs_; 29724: # 264 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29724: bool enforced_ = true; 29724: 29724: void EnforceMaxTimeSpan(uint64_t now = 0); 29724: void EnforceCapacity(bool strict); 29724: void SortAndMerge(); 29724: 29724: using pair_const_iterator = 29724: std::deque::const_iterator; 29724: pair_const_iterator FindGreaterTime(uint64_t time) const; 29724: pair_const_iterator FindGreaterSeqno(SequenceNumber seqno) const; 29724: pair_const_iterator FindGreaterEqSeqno(SequenceNumber seqno) const; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: Slice PackValueAndWriteTime(const Slice& value, uint64_t unix_write_time, 29724: std::string* buf); 29724: 29724: 29724: 29724: Slice PackValueAndSeqno(const Slice& value, SequenceNumber seqno, 29724: std::string* buf); 29724: 29724: 29724: uint64_t ParsePackedValueForWriteTime(const Slice& value); 29724: 29724: 29724: 29724: std::tuple ParsePackedValueWithWriteTime(const Slice& value); 29724: 29724: 29724: SequenceNumber ParsePackedValueForSeqno(const Slice& value); 29724: 29724: 29724: 29724: std::tuple ParsePackedValueWithSeqno(const Slice& value); 29724: 29724: 29724: 29724: Slice ParsePackedValueForValue(const Slice& value); 29724: 29724: } 29724: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: namespace rocksdb { 29724: 29724: 29724: class InternalTblPropColl { 29724: public: 29724: virtual ~InternalTblPropColl() {} 29724: virtual Status Finish(UserCollectedProperties* properties) = 0; 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: 29724: virtual Status InternalAdd(const Slice& key, const Slice& value, 29724: uint64_t file_size) = 0; 29724: 29724: virtual void BlockAdd(uint64_t block_uncomp_bytes, 29724: uint64_t block_compressed_bytes_fast, 29724: uint64_t block_compressed_bytes_slow) = 0; 29724: 29724: virtual UserCollectedProperties GetReadableProperties() const = 0; 29724: 29724: virtual bool NeedCompact() const { return false; } 29724: }; 29724: 29724: 29724: class InternalTblPropCollFactory { 29724: public: 29724: virtual ~InternalTblPropCollFactory() {} 29724: 29724: virtual InternalTblPropColl* CreateInternalTblPropColl( 29724: uint32_t column_family_id, int level_at_creation, int num_levels, 29724: SequenceNumber last_level_inclusive_max_seqno_threshold = 29724: kMaxSequenceNumber) = 0; 29724: 29724: 29724: virtual const char* Name() const = 0; 29724: }; 29724: 29724: using InternalTblPropCollFactories = 29724: std::vector>; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class UserKeyTablePropertiesCollector : public InternalTblPropColl { 29724: public: 29724: 29724: explicit UserKeyTablePropertiesCollector(TablePropertiesCollector* collector) 29724: : collector_(collector) {} 29724: 29724: virtual ~UserKeyTablePropertiesCollector() {} 29724: 29724: Status InternalAdd(const Slice& key, const Slice& value, 29724: uint64_t file_size) override; 29724: 29724: void BlockAdd(uint64_t block_uncomp_bytes, 29724: uint64_t block_compressed_bytes_fast, 29724: uint64_t block_compressed_bytes_slow) override; 29724: 29724: Status Finish(UserCollectedProperties* properties) override; 29724: 29724: const char* Name() const override { return collector_->Name(); } 29724: 29724: UserCollectedProperties GetReadableProperties() const override; 29724: 29724: bool NeedCompact() const override { return collector_->NeedCompact(); } 29724: 29724: protected: 29724: std::unique_ptr collector_; 29724: }; 29724: 29724: class UserKeyTablePropertiesCollectorFactory 29724: : public InternalTblPropCollFactory { 29724: public: 29724: explicit UserKeyTablePropertiesCollectorFactory( 29724: std::shared_ptr user_collector_factory) 29724: : user_collector_factory_(user_collector_factory) {} 29724: InternalTblPropColl* CreateInternalTblPropColl( 29724: uint32_t column_family_id, int level_at_creation, int num_levels, 29724: SequenceNumber last_level_inclusive_max_seqno_threshold = 29724: kMaxSequenceNumber) override { 29724: TablePropertiesCollectorFactory::Context context; 29724: context.column_family_id = column_family_id; 29724: context.level_at_creation = level_at_creation; 29724: context.num_levels = num_levels; 29724: context.last_level_inclusive_max_seqno_threshold = 29724: last_level_inclusive_max_seqno_threshold; 29724: TablePropertiesCollector* collector = 29724: user_collector_factory_->CreateTablePropertiesCollector(context); 29724: if (collector) { 29724: return new UserKeyTablePropertiesCollector(collector); 29724: } else { 29724: return nullptr; 29724: } 29724: } 29724: 29724: const char* Name() const override { return user_collector_factory_->Name(); } 29724: 29724: private: 29724: std::shared_ptr user_collector_factory_; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: class TimestampTablePropertiesCollector : public InternalTblPropColl { 29724: public: 29724: explicit TimestampTablePropertiesCollector(const Comparator* cmp) 29724: : cmp_(cmp), 29724: timestamp_min_(kDisableUserTimestamp), 29724: timestamp_max_(kDisableUserTimestamp) {} 29724: 29724: Status InternalAdd(const Slice& key, const Slice& , 29724: uint64_t ) override { 29724: auto user_key = ExtractUserKey(key); 29724: 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: (static_cast ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: cmp_ && cmp_->timestamp_size() > 0 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: "cmp_ && cmp_->timestamp_size() > 0" 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: ; 29724: if (user_key.size() < cmp_->timestamp_size()) { 29724: return Status::Corruption( 29724: "User key size mismatch when comparing to timestamp size."); 29724: } 29724: auto timestamp_in_key = 29724: ExtractTimestampFromUserKey(user_key, cmp_->timestamp_size()); 29724: if (timestamp_max_ == kDisableUserTimestamp || 29724: cmp_->CompareTimestamp(timestamp_in_key, timestamp_max_) > 0) { 29724: timestamp_max_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 29724: } 29724: if (timestamp_min_ == kDisableUserTimestamp || 29724: cmp_->CompareTimestamp(timestamp_min_, timestamp_in_key) > 0) { 29724: timestamp_min_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 29724: } 29724: return Status::OK(); 29724: } 29724: 29724: void BlockAdd(uint64_t , 29724: uint64_t , 29724: uint64_t ) override { 29724: return; 29724: } 29724: 29724: Status Finish(UserCollectedProperties* properties) override { 29724: 29724: 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: (static_cast ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size()) 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: "timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size())" 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: 29724: 29724: # 164 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29724: ; 29724: properties->insert({"rocksdb.timestamp_min", timestamp_min_}); 29724: properties->insert({"rocksdb.timestamp_max", timestamp_max_}); 29724: return Status::OK(); 29724: } 29724: 29724: const char* Name() const override { 29724: return "TimestampTablePropertiesCollector"; 29724: } 29724: 29724: UserCollectedProperties GetReadableProperties() const override { 29724: return {{"rocksdb.timestamp_min", Slice(timestamp_min_).ToString(true)}, 29724: {"rocksdb.timestamp_max", Slice(timestamp_max_).ToString(true)}}; 29724: } 29724: 29724: protected: 29724: const Comparator* const cmp_; 29724: std::string timestamp_min_; 29724: std::string timestamp_max_; 29724: }; 29724: 29724: } 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 1 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29724: 29724: # 42 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 1 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: struct OperationInfo { 29724: const ThreadStatus::OperationType type; 29724: const std::string name; 29724: }; 29724: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29724: static OperationInfo global_operation_table[] = { 29724: {ThreadStatus::OP_UNKNOWN, ""}, 29724: {ThreadStatus::OP_COMPACTION, "Compaction"}, 29724: {ThreadStatus::OP_FLUSH, "Flush"}, 29724: {ThreadStatus::OP_DBOPEN, "DBOpen"}, 29724: {ThreadStatus::OP_GET, "Get"}, 29724: {ThreadStatus::OP_MULTIGET, "MultiGet"}, 29724: {ThreadStatus::OP_DBITERATOR, "DBIterator"}, 29724: {ThreadStatus::OP_VERIFY_DB_CHECKSUM, "VerifyDBChecksum"}, 29724: {ThreadStatus::OP_VERIFY_FILE_CHECKSUMS, "VerifyFileChecksums"}, 29724: {ThreadStatus::OP_GETENTITY, "GetEntity"}, 29724: {ThreadStatus::OP_MULTIGETENTITY, "MultiGetEntity"}, 29724: {ThreadStatus::OP_READ_MANIFEST, "ReadManifest"}, 29724: 29724: }; 29724: 29724: struct OperationStageInfo { 29724: const ThreadStatus::OperationStage stage; 29724: const std::string name; 29724: }; 29724: 29724: 29724: 29724: 29724: static OperationStageInfo global_op_stage_table[] = { 29724: {ThreadStatus::STAGE_UNKNOWN, ""}, 29724: {ThreadStatus::STAGE_FLUSH_RUN, "FlushJob::Run"}, 29724: {ThreadStatus::STAGE_FLUSH_WRITE_L0, "FlushJob::WriteLevel0Table"}, 29724: {ThreadStatus::STAGE_COMPACTION_PREPARE, "CompactionJob::Prepare"}, 29724: {ThreadStatus::STAGE_COMPACTION_RUN, "CompactionJob::Run"}, 29724: {ThreadStatus::STAGE_COMPACTION_PROCESS_KV, 29724: "CompactionJob::ProcessKeyValueCompaction"}, 29724: {ThreadStatus::STAGE_COMPACTION_INSTALL, "CompactionJob::Install"}, 29724: {ThreadStatus::STAGE_COMPACTION_SYNC_FILE, 29724: "CompactionJob::FinishCompactionOutputFile"}, 29724: {ThreadStatus::STAGE_PICK_MEMTABLES_TO_FLUSH, 29724: "MemTableList::PickMemtablesToFlush"}, 29724: {ThreadStatus::STAGE_MEMTABLE_ROLLBACK, 29724: "MemTableList::RollbackMemtableFlush"}, 29724: {ThreadStatus::STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 29724: "MemTableList::TryInstallMemtableFlushResults"}, 29724: }; 29724: 29724: 29724: struct StateInfo { 29724: const ThreadStatus::StateType type; 29724: const std::string name; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: static StateInfo global_state_table[] = { 29724: {ThreadStatus::STATE_UNKNOWN, ""}, 29724: {ThreadStatus::STATE_MUTEX_WAIT, "Mutex Wait"}, 29724: }; 29724: 29724: struct OperationProperty { 29724: int code; 29724: std::string name; 29724: }; 29724: 29724: static OperationProperty compaction_operation_properties[] = { 29724: {ThreadStatus::COMPACTION_JOB_ID, "JobID"}, 29724: {ThreadStatus::COMPACTION_INPUT_OUTPUT_LEVEL, "InputOutputLevel"}, 29724: {ThreadStatus::COMPACTION_PROP_FLAGS, "Manual/Deletion/Trivial"}, 29724: {ThreadStatus::COMPACTION_TOTAL_INPUT_BYTES, "TotalInputBytes"}, 29724: {ThreadStatus::COMPACTION_BYTES_READ, "BytesRead"}, 29724: {ThreadStatus::COMPACTION_BYTES_WRITTEN, "BytesWritten"}, 29724: }; 29724: 29724: static OperationProperty flush_operation_properties[] = { 29724: {ThreadStatus::FLUSH_JOB_ID, "JobID"}, 29724: {ThreadStatus::FLUSH_BYTES_MEMTABLES, "BytesMemtables"}, 29724: {ThreadStatus::FLUSH_BYTES_WRITTEN, "BytesWritten"}}; 29724: # 123 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29724: } 29724: # 43 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class ColumnFamilyHandle; 29724: 29724: 29724: struct ConstantColumnFamilyInfo { 29724: 29724: public: 29724: ConstantColumnFamilyInfo(const void* _db_key, const std::string& _db_name, 29724: const std::string& _cf_name) 29724: : db_key(_db_key), db_name(_db_name), cf_name(_cf_name) {} 29724: const void* db_key; 29724: const std::string db_name; 29724: const std::string cf_name; 29724: 29724: }; 29724: 29724: 29724: 29724: struct ThreadStatusData { 29724: 29724: explicit ThreadStatusData() { 29724: enable_tracking.store(false); 29724: thread_id.store(0); 29724: thread_type.store(ThreadStatus::USER); 29724: cf_key.store(nullptr); 29724: operation_type.store(ThreadStatus::OP_UNKNOWN); 29724: op_start_time.store(0); 29724: state_type.store(ThreadStatus::STATE_UNKNOWN); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: std::atomic enable_tracking; 29724: 29724: std::atomic thread_id; 29724: std::atomic thread_type; 29724: std::atomic cf_key; 29724: std::atomic operation_type; 29724: std::atomic op_start_time; 29724: std::atomic operation_stage; 29724: std::atomic op_properties[ThreadStatus::kNumOperationProperties]; 29724: std::atomic state_type; 29724: 29724: }; 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29724: class ThreadStatusUpdater { 29724: public: 29724: ThreadStatusUpdater() {} 29724: 29724: 29724: virtual ~ThreadStatusUpdater() {} 29724: 29724: 29724: void UnregisterThread(); 29724: 29724: 29724: 29724: void ResetThreadStatus(); 29724: 29724: 29724: void SetThreadID(uint64_t thread_id); 29724: 29724: 29724: void RegisterThread(ThreadStatus::ThreadType ttype, uint64_t thread_id); 29724: 29724: void SetEnableTracking(bool enable_tracking); 29724: 29724: 29724: 29724: void SetColumnFamilyInfoKey(const void* cf_key); 29724: 29724: 29724: const void* GetColumnFamilyInfoKey(); 29724: 29724: 29724: void SetThreadOperation(const ThreadStatus::OperationType type); 29724: 29724: 29724: ThreadStatus::OperationType GetThreadOperation(); 29724: 29724: 29724: 29724: void SetOperationStartTime(const uint64_t start_time); 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29724: void SetThreadOperationProperty(int i, uint64_t value); 29724: 29724: 29724: 29724: void IncreaseThreadOperationProperty(int i, uint64_t delta); 29724: 29724: 29724: ThreadStatus::OperationStage SetThreadOperationStage( 29724: const ThreadStatus::OperationStage stage); 29724: 29724: 29724: void ClearThreadOperation(); 29724: 29724: 29724: void ClearThreadOperationProperties(); 29724: 29724: 29724: void SetThreadState(const ThreadStatus::StateType type); 29724: 29724: 29724: void ClearThreadState(); 29724: 29724: 29724: Status GetThreadList(std::vector* thread_list); 29724: 29724: 29724: 29724: 29724: void NewColumnFamilyInfo(const void* db_key, const std::string& db_name, 29724: const void* cf_key, const std::string& cf_name); 29724: 29724: 29724: 29724: 29724: void EraseDatabaseInfo(const void* db_key); 29724: 29724: 29724: 29724: 29724: void EraseColumnFamilyInfo(const void* cf_key); 29724: 29724: 29724: 29724: void TEST_VerifyColumnFamilyInfoMap( 29724: const std::vector& handles, bool check_exist); 29724: 29724: protected: 29724: 29724: 29724: static thread_local ThreadStatusData* thread_status_data_; 29724: 29724: 29724: 29724: ThreadStatusData* GetLocalThreadStatus(); 29724: 29724: 29724: 29724: ThreadStatusData* Get() { return thread_status_data_; } 29724: 29724: 29724: std::mutex thread_list_mutex_; 29724: 29724: 29724: std::unordered_set thread_data_set_; 29724: 29724: 29724: 29724: 29724: 29724: std::unordered_map cf_info_map_; 29724: 29724: 29724: 29724: std::unordered_map> db_key_map_; 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 2 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class ColumnFamilyData; 29724: # 30 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29724: class ThreadStatusUtil { 29724: public: 29724: 29724: static void RegisterThread(const Env* env, 29724: ThreadStatus::ThreadType thread_type); 29724: 29724: 29724: static void UnregisterThread(); 29724: 29724: 29724: 29724: 29724: static void NewColumnFamilyInfo(const DB* db, const ColumnFamilyData* cfd, 29724: const std::string& cf_name, const Env* env); 29724: 29724: 29724: 29724: 29724: static void EraseColumnFamilyInfo(const ColumnFamilyData* cfd); 29724: 29724: 29724: 29724: 29724: static void EraseDatabaseInfo(const DB* db); 29724: 29724: static void SetEnableTracking(bool enable_tracking); 29724: 29724: 29724: 29724: 29724: 29724: static void SetColumnFamily(const ColumnFamilyData* cfd); 29724: 29724: static void SetThreadOperation(ThreadStatus::OperationType type); 29724: 29724: static ThreadStatus::OperationType GetThreadOperation(); 29724: 29724: static ThreadStatus::OperationStage SetThreadOperationStage( 29724: ThreadStatus::OperationStage stage); 29724: 29724: static void SetThreadOperationProperty(int code, uint64_t value); 29724: 29724: static void IncreaseThreadOperationProperty(int code, uint64_t delta); 29724: 29724: static void SetThreadState(ThreadStatus::StateType type); 29724: 29724: static void ResetThreadStatus(); 29724: 29724: 29724: static void TEST_SetStateDelay(const ThreadStatus::StateType state, 29724: int micro); 29724: static void TEST_StateDelay(const ThreadStatus::StateType state); 29724: 29724: static Env::IOActivity TEST_GetExpectedIOActivity( 29724: ThreadStatus::OperationType thread_op); 29724: 29724: 29724: protected: 29724: 29724: 29724: 29724: static bool MaybeInitThreadLocalUpdater(const Env* env); 29724: # 103 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29724: static thread_local bool thread_updater_initialized_; 29724: # 118 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29724: static thread_local ThreadStatusUpdater* thread_updater_local_cache_; 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: 29724: 29724: 29724: class AutoThreadOperationStageUpdater { 29724: public: 29724: explicit AutoThreadOperationStageUpdater(ThreadStatus::OperationStage stage); 29724: ~AutoThreadOperationStageUpdater(); 29724: 29724: 29724: private: 29724: ThreadStatus::OperationStage prev_stage_; 29724: 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 2 29724: # 26 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 1 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29724: 29724: # 21 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29724: namespace rocksdb { 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29724: using UnrefHandler = void (*)(void* ptr); 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29724: class ThreadLocalPtr { 29724: public: 29724: explicit ThreadLocalPtr(UnrefHandler handler = nullptr); 29724: 29724: ThreadLocalPtr(const ThreadLocalPtr&) = delete; 29724: ThreadLocalPtr& operator=(const ThreadLocalPtr&) = delete; 29724: 29724: ~ThreadLocalPtr(); 29724: 29724: 29724: void* Get() const; 29724: 29724: 29724: void Reset(void* ptr); 29724: 29724: 29724: void* Swap(void* ptr); 29724: 29724: 29724: 29724: 29724: 29724: bool CompareAndSwap(void* ptr, void*& expected); 29724: 29724: 29724: 29724: void Scrape(autovector* ptrs, void* const replacement); 29724: 29724: using FoldFunc = std::function; 29724: 29724: 29724: 29724: 29724: void Fold(FoldFunc func, void* res); 29724: 29724: 29724: 29724: static uint32_t TEST_PeekId(); 29724: # 90 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29724: static void InitSingletons(); 29724: 29724: class StaticMeta; 29724: 29724: private: 29724: static StaticMeta* Instance(); 29724: 29724: const uint32_t id_; 29724: }; 29724: 29724: } 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class TestFSWritableFile; 29724: class FaultInjectionTestFS; 29724: 29724: enum class FaultInjectionIOType { 29724: kRead = 0, 29724: kWrite, 29724: kMetadataRead, 29724: kMetadataWrite, 29724: }; 29724: 29724: struct FSFileState { 29724: std::string filename_; 29724: uint64_t pos_at_last_append_ = 0; 29724: uint64_t pos_at_last_sync_ = 0; 29724: std::string buffer_; 29724: 29724: explicit FSFileState(const std::string& filename = {}) 29724: : filename_(filename) {} 29724: 29724: bool IsFullySynced() const { 29724: return pos_at_last_append_ == pos_at_last_sync_; 29724: } 29724: 29724: IOStatus DropUnsyncedData(); 29724: 29724: IOStatus DropRandomUnsyncedData(Random* rand); 29724: }; 29724: 29724: 29724: 29724: class TestFSWritableFile : public FSWritableFile { 29724: public: 29724: explicit TestFSWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr&& f, 29724: FaultInjectionTestFS* fs); 29724: virtual ~TestFSWritableFile(); 29724: IOStatus Append(const Slice& data, const IOOptions&, 29724: IODebugContext*) override; 29724: IOStatus Append(const Slice& data, const IOOptions& options, 29724: const DataVerificationInfo& verification_info, 29724: IODebugContext* dbg) override; 29724: IOStatus Truncate(uint64_t size, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29724: IOStatus Flush(const IOOptions&, IODebugContext*) override; 29724: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29724: IOStatus RangeSync(uint64_t , uint64_t , 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: bool IsSyncThreadSafe() const override { return true; } 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29724: const IOOptions& options, 29724: const DataVerificationInfo& verification_info, 29724: IODebugContext* dbg) override; 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: 29724: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 29724: MutexLock l(&mutex_); 29724: return target_->GetFileSize(options, dbg); 29724: } 29724: 29724: private: 29724: FSFileState state_; 29724: FileOptions file_opts_; 29724: std::unique_ptr target_; 29724: bool writable_file_opened_; 29724: FaultInjectionTestFS* fs_; 29724: port::Mutex mutex_; 29724: const bool unsync_data_loss_; 29724: }; 29724: 29724: 29724: 29724: class TestFSRandomRWFile : public FSRandomRWFile { 29724: public: 29724: explicit TestFSRandomRWFile(const std::string& fname, 29724: std::unique_ptr&& f, 29724: FaultInjectionTestFS* fs); 29724: virtual ~TestFSRandomRWFile(); 29724: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override; 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29724: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 29724: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: 29724: private: 29724: std::unique_ptr target_; 29724: bool file_opened_; 29724: FaultInjectionTestFS* fs_; 29724: }; 29724: 29724: class TestFSRandomAccessFile : public FSRandomAccessFile { 29724: public: 29724: explicit TestFSRandomAccessFile(const std::string& fname, 29724: std::unique_ptr&& f, 29724: FaultInjectionTestFS* fs); 29724: ~TestFSRandomAccessFile() override {} 29724: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) const override; 29724: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29724: std::function cb, 29724: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29724: IODebugContext* dbg) override; 29724: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: size_t GetRequiredBufferAlignment() const override { 29724: return target_->GetRequiredBufferAlignment(); 29724: } 29724: bool use_direct_io() const override { return target_->use_direct_io(); } 29724: 29724: size_t GetUniqueId(char* id, size_t max_size) const override; 29724: 29724: private: 29724: std::unique_ptr target_; 29724: FaultInjectionTestFS* fs_; 29724: }; 29724: 29724: class TestFSSequentialFile : public FSSequentialFileOwnerWrapper { 29724: public: 29724: explicit TestFSSequentialFile(std::unique_ptr&& f, 29724: FaultInjectionTestFS* fs, std::string fname) 29724: : FSSequentialFileOwnerWrapper(std::move(f)), 29724: fs_(fs), 29724: fname_(std::move(fname)) {} 29724: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29724: char* scratch, IODebugContext* dbg) override; 29724: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29724: Slice* result, char* scratch, 29724: IODebugContext* dbg) override; 29724: 29724: private: 29724: FaultInjectionTestFS* fs_; 29724: std::string fname_; 29724: uint64_t read_pos_ = 0; 29724: uint64_t target_read_pos_ = 0; 29724: }; 29724: 29724: class TestFSDirectory : public FSDirectory { 29724: public: 29724: explicit TestFSDirectory(FaultInjectionTestFS* fs, std::string dirname, 29724: FSDirectory* dir) 29724: : fs_(fs), dirname_(std::move(dirname)), dir_(dir) {} 29724: ~TestFSDirectory() {} 29724: 29724: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus FsyncWithDirOptions( 29724: const IOOptions& options, IODebugContext* dbg, 29724: const DirFsyncOptions& dir_fsync_options) override; 29724: 29724: private: 29724: FaultInjectionTestFS* fs_; 29724: std::string dirname_; 29724: std::unique_ptr dir_; 29724: }; 29724: 29724: class FaultInjectionTestFS : public FileSystemWrapper { 29724: public: 29724: explicit FaultInjectionTestFS(const std::shared_ptr& base) 29724: : FileSystemWrapper(base), 29724: filesystem_active_(true), 29724: filesystem_writable_(false), 29724: inject_unsynced_data_loss_(false), 29724: read_unsynced_data_(true), 29724: allow_link_open_file_(false), 29724: injected_thread_local_read_error_(DeleteThreadLocalErrorContext), 29724: injected_thread_local_write_error_(DeleteThreadLocalErrorContext), 29724: injected_thread_local_metadata_read_error_( 29724: DeleteThreadLocalErrorContext), 29724: injected_thread_local_metadata_write_error_( 29724: DeleteThreadLocalErrorContext), 29724: ingest_data_corruption_before_write_(false), 29724: checksum_handoff_func_type_(kCRC32c), 29724: fail_get_file_unique_id_(false) {} 29724: virtual ~FaultInjectionTestFS() override { fs_error_.PermitUncheckedError(); } 29724: 29724: static const char* kClassName() { return "FaultInjectionTestFS"; } 29724: const char* Name() const override { return kClassName(); } 29724: 29724: static bool IsInjectedError(const Status& s) { 29724: 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: !s.ok() 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "!s.ok()" 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; 29724: return std::strstr(s.getState(), kInjected.c_str()); 29724: } 29724: 29724: static bool IsFailedToWriteToWALError(const Status& s) { 29724: 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: !s.ok() 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "!s.ok()" 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; 29724: return std::strstr(s.getState(), kFailedToWriteToWAL.c_str()); 29724: } 29724: 29724: IOStatus NewDirectory(const std::string& name, const IOOptions& options, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus FileExists(const std::string& fname, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus GetChildren(const std::string& dir, const IOOptions& options, 29724: std::vector* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus GetChildrenFileAttributes(const std::string& dir, 29724: const IOOptions& options, 29724: std::vector* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus ReopenWritableFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus ReuseWritableFile(const std::string& fname, 29724: const std::string& old_fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewRandomRWFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus NewRandomAccessFile(const std::string& fname, 29724: const FileOptions& file_opts, 29724: std::unique_ptr* result, 29724: IODebugContext* dbg) override; 29724: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 29724: std::unique_ptr* r, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 29724: uint64_t* file_size, IODebugContext* dbg) override; 29724: 29724: IOStatus GetFileModificationTime(const std::string& fname, 29724: const IOOptions& options, 29724: uint64_t* file_mtime, 29724: IODebugContext* dbg) override; 29724: 29724: IOStatus RenameFile(const std::string& s, const std::string& t, 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus LinkFile(const std::string& src, const std::string& target, 29724: const IOOptions& options, IODebugContext* dbg) override; 29724: 29724: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 29724: uint64_t* count, IODebugContext* dbg) override; 29724: 29724: IOStatus AreFilesSame(const std::string& first, const std::string& second, 29724: const IOOptions& options, bool* res, 29724: IODebugContext* dbg) override; 29724: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 29724: std::string* output_path, 29724: IODebugContext* dbg) override; 29724: 29724: 29724: 29724: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 29724: uint64_t* disk_free, IODebugContext* dbg) override { 29724: IOStatus io_s; 29724: if (!IsFilesystemActive() && 29724: fs_error_.subcode() == IOStatus::SubCode::kNoSpace) { 29724: *disk_free = 0; 29724: } else { 29724: io_s = MaybeInjectThreadLocalError(FaultInjectionIOType::kMetadataRead, 29724: options); 29724: if (io_s.ok()) { 29724: io_s = target()->GetFreeSpace(path, options, disk_free, dbg); 29724: } 29724: } 29724: return io_s; 29724: } 29724: 29724: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 29724: bool* is_dir, IODebugContext* dgb) override; 29724: 29724: IOStatus Poll(std::vector& io_handles, 29724: size_t min_completions) override; 29724: 29724: IOStatus AbortIO(std::vector& io_handles) override; 29724: 29724: void WritableFileClosed(const FSFileState& state); 29724: 29724: void WritableFileSynced(const FSFileState& state); 29724: 29724: void WritableFileAppended(const FSFileState& state); 29724: 29724: IOStatus DropUnsyncedFileData(); 29724: 29724: IOStatus DropRandomUnsyncedFileData(Random* rnd); 29724: 29724: IOStatus DeleteFilesCreatedAfterLastDirSync(const IOOptions& options, 29724: IODebugContext* dbg); 29724: 29724: void ResetState(); 29724: 29724: void UntrackFile(const std::string& f); 29724: 29724: void SyncDir(const std::string& dirname) { 29724: MutexLock l(&mutex_); 29724: dir_to_new_files_since_last_sync_.erase(dirname); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: bool IsFilesystemActive() { 29724: MutexLock l(&mutex_); 29724: return filesystem_active_; 29724: } 29724: 29724: 29724: 29724: 29724: bool IsFilesystemDirectWritable() { 29724: MutexLock l(&mutex_); 29724: return filesystem_writable_; 29724: } 29724: void SetFilesystemActiveNoLock( 29724: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 29724: error.PermitUncheckedError(); 29724: filesystem_active_ = active; 29724: if (!active) { 29724: fs_error_ = error; 29724: } 29724: } 29724: void SetFilesystemActive( 29724: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 29724: MutexLock l(&mutex_); 29724: error.PermitUncheckedError(); 29724: SetFilesystemActiveNoLock(active, error); 29724: } 29724: void SetFilesystemDirectWritable(bool writable) { 29724: MutexLock l(&mutex_); 29724: filesystem_writable_ = writable; 29724: } 29724: 29724: 29724: 29724: void SetInjectUnsyncedDataLoss(bool inject) { 29724: MutexLock l(&mutex_); 29724: inject_unsynced_data_loss_ = inject; 29724: } 29724: 29724: bool InjectUnsyncedDataLoss() { 29724: MutexLock l(&mutex_); 29724: return inject_unsynced_data_loss_; 29724: } 29724: # 415 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: void SetReadUnsyncedData(bool read_unsynced_data) { 29724: read_unsynced_data_ = read_unsynced_data; 29724: } 29724: bool ReadUnsyncedData() const { return read_unsynced_data_; } 29724: 29724: 29724: 29724: 29724: void SetAllowLinkOpenFile(bool allow_link_open_file = true) { 29724: allow_link_open_file_ = allow_link_open_file; 29724: } 29724: 29724: bool ShouldIOActivtiesExcludedFromFaultInjection(Env::IOActivity io_activty) { 29724: MutexLock l(&mutex_); 29724: return io_activties_excluded_from_fault_injection.find(io_activty) != 29724: io_activties_excluded_from_fault_injection.end(); 29724: } 29724: 29724: void AssertNoOpenFile() { 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: open_managed_files_.empty() 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "open_managed_files_.empty()" 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; } 29724: 29724: IOStatus GetError() { return fs_error_; } 29724: 29724: void SetFileSystemIOError(IOStatus io_error) { 29724: MutexLock l(&mutex_); 29724: io_error.PermitUncheckedError(); 29724: fs_error_ = io_error; 29724: } 29724: 29724: 29724: void IngestDataCorruptionBeforeWrite() { 29724: MutexLock l(&mutex_); 29724: ingest_data_corruption_before_write_ = true; 29724: } 29724: 29724: void NoDataCorruptionBeforeWrite() { 29724: MutexLock l(&mutex_); 29724: ingest_data_corruption_before_write_ = false; 29724: } 29724: 29724: bool ShouldDataCorruptionBeforeWrite() { 29724: MutexLock l(&mutex_); 29724: return ingest_data_corruption_before_write_; 29724: } 29724: 29724: void SetChecksumHandoffFuncType(const ChecksumType& func_type) { 29724: MutexLock l(&mutex_); 29724: checksum_handoff_func_type_ = func_type; 29724: } 29724: 29724: const ChecksumType& GetChecksumHandoffFuncType() { 29724: MutexLock l(&mutex_); 29724: return checksum_handoff_func_type_; 29724: } 29724: 29724: void SetFailGetUniqueId(bool flag) { 29724: MutexLock l(&mutex_); 29724: fail_get_file_unique_id_ = flag; 29724: } 29724: 29724: bool ShouldFailGetUniqueId() { 29724: MutexLock l(&mutex_); 29724: return fail_get_file_unique_id_; 29724: } 29724: 29724: 29724: enum ErrorOperation : char { 29724: kRead = 0, 29724: kMultiReadSingleReq = 1, 29724: kMultiRead = 2, 29724: kOpen, 29724: kAppend, 29724: kPositionedAppend, 29724: kUnknown, 29724: }; 29724: 29724: void SetThreadLocalErrorContext(FaultInjectionIOType type, uint32_t seed, 29724: int one_in, bool retryable, 29724: bool has_data_loss) { 29724: struct ErrorContext* new_ctx = new ErrorContext(seed); 29724: new_ctx->one_in = one_in; 29724: new_ctx->count = 0; 29724: new_ctx->retryable = retryable; 29724: new_ctx->has_data_loss = has_data_loss; 29724: 29724: SetErrorContextOfFaultInjectionIOType(type, new_ctx); 29724: } 29724: 29724: static void DeleteThreadLocalErrorContext(void* p) { 29724: ErrorContext* ctx = static_cast(p); 29724: delete ctx; 29724: } 29724: 29724: IOStatus MaybeInjectThreadLocalError( 29724: FaultInjectionIOType type, const IOOptions& io_options, 29724: const std::string& file_name = "", ErrorOperation op = kUnknown, 29724: Slice* slice = nullptr, bool direct_io = false, char* scratch = nullptr, 29724: bool need_count_increase = false, bool* fault_injected = nullptr); 29724: 29724: int GetAndResetInjectedThreadLocalErrorCount(FaultInjectionIOType type) { 29724: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29724: int count = 0; 29724: if (ctx) { 29724: count = ctx->count; 29724: ctx->count = 0; 29724: } 29724: return count; 29724: } 29724: 29724: void SetIOActivtiesExcludedFromFaultInjection( 29724: const std::set& io_activties) { 29724: MutexLock l(&mutex_); 29724: io_activties_excluded_from_fault_injection = io_activties; 29724: } 29724: 29724: void SetFileTypesExcludedFromWriteFaultInjection( 29724: const std::set& types) { 29724: MutexLock l(&mutex_); 29724: file_types_excluded_from_write_fault_injection_ = types; 29724: } 29724: 29724: void EnableThreadLocalErrorInjection(FaultInjectionIOType type) { 29724: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29724: if (ctx) { 29724: ctx->enable_error_injection = true; 29724: } 29724: } 29724: 29724: void EnableAllThreadLocalErrorInjection() { 29724: EnableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 29724: EnableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 29724: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 29724: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 29724: } 29724: 29724: void DisableThreadLocalErrorInjection(FaultInjectionIOType type) { 29724: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29724: if (ctx) { 29724: ctx->enable_error_injection = false; 29724: } 29724: } 29724: 29724: void DisableAllThreadLocalErrorInjection() { 29724: DisableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 29724: DisableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 29724: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 29724: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 29724: } 29724: 29724: void PrintInjectedThreadLocalErrorBacktrace(FaultInjectionIOType type); 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: void ReadUnsynced(const std::string& fname, uint64_t offset, size_t n, 29724: Slice* result, char* scratch, int64_t* pos_at_last_sync); 29724: 29724: inline static const std::string kInjected = "injected"; 29724: 29724: private: 29724: inline static const std::string kFailedToWriteToWAL = 29724: "failed to write to WAL"; 29724: port::Mutex mutex_; 29724: std::map db_file_state_; 29724: std::set open_managed_files_; 29724: 29724: 29724: 29724: 29724: std::unordered_map> 29724: dir_to_new_files_since_last_sync_; 29724: bool filesystem_active_; 29724: bool filesystem_writable_; 29724: 29724: bool inject_unsynced_data_loss_; 29724: bool read_unsynced_data_; 29724: bool allow_link_open_file_; 29724: IOStatus fs_error_; 29724: 29724: enum ErrorType : int { 29724: kErrorTypeStatus = 0, 29724: kErrorTypeCorruption, 29724: kErrorTypeTruncated, 29724: kErrorTypeMax 29724: }; 29724: 29724: struct ErrorContext { 29724: Random rand; 29724: int one_in; 29724: int count; 29724: bool enable_error_injection; 29724: void* callstack; 29724: std::string message; 29724: int frames; 29724: ErrorType type; 29724: bool retryable; 29724: bool has_data_loss; 29724: 29724: explicit ErrorContext(uint32_t seed) 29724: : rand(seed), 29724: enable_error_injection(false), 29724: callstack(nullptr), 29724: frames(0), 29724: retryable(false), 29724: has_data_loss(false) {} 29724: ~ErrorContext() { 29724: if (callstack) { 29724: free(callstack); 29724: } 29724: } 29724: }; 29724: 29724: std::set file_types_excluded_from_write_fault_injection_; 29724: std::set io_activties_excluded_from_fault_injection; 29724: ThreadLocalPtr injected_thread_local_read_error_; 29724: ThreadLocalPtr injected_thread_local_write_error_; 29724: ThreadLocalPtr injected_thread_local_metadata_read_error_; 29724: ThreadLocalPtr injected_thread_local_metadata_write_error_; 29724: bool ingest_data_corruption_before_write_; 29724: ChecksumType checksum_handoff_func_type_; 29724: bool fail_get_file_unique_id_; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: IOStatus MaybeInjectThreadLocalReadError(const IOOptions& io_options, 29724: ErrorOperation op, Slice* slice, 29724: bool direct_io, char* scratch, 29724: bool need_count_increase, 29724: bool* fault_injected); 29724: 29724: bool ShouldExcludeFromWriteFaultInjection(const std::string& file_name) { 29724: MutexLock l(&mutex_); 29724: FileType file_type = kTempFile; 29724: uint64_t file_number = 0; 29724: if (!TryParseFileName(file_name, &file_number, &file_type)) { 29724: return false; 29724: } 29724: return file_types_excluded_from_write_fault_injection_.find(file_type) != 29724: file_types_excluded_from_write_fault_injection_.end(); 29724: } 29724: 29724: 29724: 29724: bool TryParseFileName(const std::string& file_name, uint64_t* number, 29724: FileType* type); 29724: 29724: ErrorContext* GetErrorContextFromFaultInjectionIOType( 29724: FaultInjectionIOType type) { 29724: ErrorContext* ctx = nullptr; 29724: switch (type) { 29724: case FaultInjectionIOType::kRead: 29724: ctx = static_cast( 29724: injected_thread_local_read_error_.Get()); 29724: break; 29724: case FaultInjectionIOType::kWrite: 29724: ctx = static_cast( 29724: injected_thread_local_write_error_.Get()); 29724: break; 29724: case FaultInjectionIOType::kMetadataRead: 29724: ctx = static_cast( 29724: injected_thread_local_metadata_read_error_.Get()); 29724: break; 29724: case FaultInjectionIOType::kMetadataWrite: 29724: ctx = static_cast( 29724: injected_thread_local_metadata_write_error_.Get()); 29724: break; 29724: default: 29724: 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: false 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "false" 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; 29724: break; 29724: } 29724: return ctx; 29724: } 29724: 29724: void SetErrorContextOfFaultInjectionIOType(FaultInjectionIOType type, 29724: ErrorContext* new_ctx) { 29724: ErrorContext* old_ctx = nullptr; 29724: switch (type) { 29724: case FaultInjectionIOType::kRead: 29724: old_ctx = static_cast( 29724: injected_thread_local_read_error_.Swap(new_ctx)); 29724: break; 29724: case FaultInjectionIOType::kWrite: 29724: old_ctx = static_cast( 29724: injected_thread_local_write_error_.Swap(new_ctx)); 29724: break; 29724: case FaultInjectionIOType::kMetadataRead: 29724: old_ctx = static_cast( 29724: injected_thread_local_metadata_read_error_.Swap(new_ctx)); 29724: break; 29724: case FaultInjectionIOType::kMetadataWrite: 29724: old_ctx = static_cast( 29724: injected_thread_local_metadata_write_error_.Swap(new_ctx)); 29724: break; 29724: default: 29724: 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: false 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "false" 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; 29724: break; 29724: } 29724: 29724: if (old_ctx) { 29724: DeleteThreadLocalErrorContext(old_ctx); 29724: } 29724: } 29724: 29724: std::string GetErrorMessage(FaultInjectionIOType type, 29724: const std::string& file_name, ErrorOperation op) { 29724: std::ostringstream msg; 29724: msg << kInjected << " "; 29724: switch (type) { 29724: case FaultInjectionIOType::kRead: 29724: msg << "read error"; 29724: break; 29724: case FaultInjectionIOType::kWrite: 29724: msg << "write error"; 29724: break; 29724: case FaultInjectionIOType::kMetadataRead: 29724: msg << "metadata read error"; 29724: break; 29724: case FaultInjectionIOType::kMetadataWrite: 29724: msg << "metadata write error"; 29724: break; 29724: default: 29724: 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: (static_cast ( 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: false 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: "false" 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29724: ; 29724: break; 29724: } 29724: 29724: if (type == FaultInjectionIOType::kWrite && 29724: (op == ErrorOperation::kOpen || op == ErrorOperation::kAppend || 29724: op == ErrorOperation::kPositionedAppend)) { 29724: FileType file_type = kTempFile; 29724: uint64_t ignore = 0; 29724: if (TryParseFileName(file_name, &ignore, &file_type) && 29724: file_type == FileType::kWalFile) { 29724: msg << " " << kFailedToWriteToWAL; 29724: } 29724: } 29724: return msg.str(); 29724: } 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 2 29724: 29724: 29724: namespace rocksdb { 29724: class Statistics; 29724: class SystemClock; 29724: # 40 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: class WritableFileWriter { 29724: private: 29724: void NotifyOnFileWriteFinish( 29724: uint64_t offset, size_t length, 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status) { 29724: FileOperationInfo info(FileOperationType::kWrite, file_name_, start_ts, 29724: finish_ts, io_status, temperature_); 29724: info.offset = offset; 29724: info.length = length; 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileWriteFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: void NotifyOnFileFlushFinish( 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status) { 29724: FileOperationInfo info(FileOperationType::kFlush, file_name_, start_ts, 29724: finish_ts, io_status, temperature_); 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileFlushFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: void NotifyOnFileSyncFinish( 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status, 29724: FileOperationType type = FileOperationType::kSync) { 29724: FileOperationInfo info(type, file_name_, start_ts, finish_ts, io_status, 29724: temperature_); 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileSyncFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: void NotifyOnFileRangeSyncFinish( 29724: uint64_t offset, size_t length, 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status) { 29724: FileOperationInfo info(FileOperationType::kRangeSync, file_name_, start_ts, 29724: finish_ts, io_status, temperature_); 29724: info.offset = offset; 29724: info.length = length; 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileRangeSyncFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: void NotifyOnFileTruncateFinish( 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status) { 29724: FileOperationInfo info(FileOperationType::kTruncate, file_name_, start_ts, 29724: finish_ts, io_status, temperature_); 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileTruncateFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: void NotifyOnFileCloseFinish( 29724: const FileOperationInfo::StartTimePoint& start_ts, 29724: const FileOperationInfo::FinishTimePoint& finish_ts, 29724: const IOStatus& io_status) { 29724: FileOperationInfo info(FileOperationType::kClose, file_name_, start_ts, 29724: finish_ts, io_status, temperature_); 29724: 29724: for (auto& listener : listeners_) { 29724: listener->OnFileCloseFinish(info); 29724: } 29724: info.status.PermitUncheckedError(); 29724: } 29724: 29724: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 29724: const std::string& file_path, size_t length = 0, 29724: uint64_t offset = 0) { 29724: if (listeners_.empty()) { 29724: return; 29724: } 29724: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 29724: for (auto& listener : listeners_) { 29724: listener->OnIOError(io_error_info); 29724: } 29724: io_error_info.io_status.PermitUncheckedError(); 29724: } 29724: 29724: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 29724: void UpdateFileChecksum(const Slice& data); 29724: void Crc32cHandoffChecksumCalculation(const char* data, size_t size, 29724: char* buf); 29724: 29724: std::string file_name_; 29724: FSWritableFilePtr writable_file_; 29724: SystemClock* clock_; 29724: AlignedBuffer buf_; 29724: size_t max_buffer_size_; 29724: 29724: 29724: std::atomic filesize_; 29724: std::atomic flushed_size_; 29724: 29724: 29724: 29724: uint64_t next_write_offset_; 29724: bool pending_sync_; 29724: std::atomic seen_error_; 29724: 29724: std::atomic seen_injected_error_; 29724: 29724: uint64_t last_sync_size_; 29724: uint64_t bytes_per_sync_; 29724: RateLimiter* rate_limiter_; 29724: Statistics* stats_; 29724: Histograms hist_type_; 29724: std::vector> listeners_; 29724: std::unique_ptr checksum_generator_; 29724: bool checksum_finalized_; 29724: bool perform_data_verification_; 29724: uint32_t buffered_data_crc32c_checksum_; 29724: bool buffered_data_with_checksum_; 29724: Temperature temperature_; 29724: 29724: public: 29724: WritableFileWriter( 29724: std::unique_ptr&& file, const std::string& _file_name, 29724: const FileOptions& options, SystemClock* clock = nullptr, 29724: const std::shared_ptr& io_tracer = nullptr, 29724: Statistics* stats = nullptr, 29724: Histograms hist_type = Histograms::HISTOGRAM_ENUM_MAX, 29724: const std::vector>& listeners = {}, 29724: FileChecksumGenFactory* file_checksum_gen_factory = nullptr, 29724: bool perform_data_verification = false, 29724: bool buffered_data_with_checksum = false) 29724: : file_name_(_file_name), 29724: writable_file_(std::move(file), io_tracer, _file_name), 29724: clock_(clock), 29724: buf_(), 29724: max_buffer_size_(options.writable_file_max_buffer_size), 29724: filesize_(0), 29724: flushed_size_(0), 29724: next_write_offset_(0), 29724: pending_sync_(false), 29724: seen_error_(false), 29724: 29724: seen_injected_error_(false), 29724: 29724: last_sync_size_(0), 29724: bytes_per_sync_(options.bytes_per_sync), 29724: rate_limiter_(options.rate_limiter), 29724: stats_(stats), 29724: hist_type_(hist_type), 29724: listeners_(), 29724: checksum_generator_(nullptr), 29724: checksum_finalized_(false), 29724: perform_data_verification_(perform_data_verification), 29724: buffered_data_crc32c_checksum_(0), 29724: buffered_data_with_checksum_(buffered_data_with_checksum) { 29724: temperature_ = options.temperature; 29724: 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29724: (static_cast ( 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: !use_direct_io() || max_buffer_size_ > 0 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: "!use_direct_io() || max_buffer_size_ > 0" 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29724: ; 29724: rocksdb::SyncPoint::GetInstance()->Process("WritableFileWriter::WritableFileWriter:0", reinterpret_cast(max_buffer_size_)) 29724: ; 29724: buf_.Alignment(writable_file_->GetRequiredBufferAlignment()); 29724: buf_.AllocateNewBuffer(std::min((size_t)65536, max_buffer_size_)); 29724: std::for_each(listeners.begin(), listeners.end(), 29724: [this](const std::shared_ptr& e) { 29724: if (e->ShouldBeNotifiedOnFileIO()) { 29724: listeners_.emplace_back(e); 29724: } 29724: }); 29724: if (file_checksum_gen_factory != nullptr) { 29724: FileChecksumGenContext checksum_gen_context; 29724: checksum_gen_context.file_name = _file_name; 29724: checksum_generator_ = 29724: file_checksum_gen_factory->CreateFileChecksumGenerator( 29724: checksum_gen_context); 29724: } 29724: } 29724: 29724: static IOStatus Create(const std::shared_ptr& fs, 29724: const std::string& fname, const FileOptions& file_opts, 29724: std::unique_ptr* writer, 29724: IODebugContext* dbg); 29724: 29724: static IOStatus PrepareIOOptions(const WriteOptions& wo, IOOptions& opts); 29724: 29724: WritableFileWriter(const WritableFileWriter&) = delete; 29724: 29724: WritableFileWriter& operator=(const WritableFileWriter&) = delete; 29724: 29724: ~WritableFileWriter() { 29724: IOOptions io_options; 29724: 29724: 29724: 29724: ThreadStatus::OperationType op_type = 29724: ThreadStatusUtil::GetThreadOperation(); 29724: io_options.io_activity = 29724: ThreadStatusUtil::TEST_GetExpectedIOActivity(op_type); 29724: 29724: auto s = Close(io_options); 29724: s.PermitUncheckedError(); 29724: } 29724: 29724: std::string file_name() const { return file_name_; } 29724: 29724: 29724: 29724: IOStatus Append(const IOOptions& opts, const Slice& data, 29724: uint32_t crc32c_checksum = 0); 29724: 29724: IOStatus Pad(const IOOptions& opts, const size_t pad_bytes); 29724: 29724: IOStatus Flush(const IOOptions& opts); 29724: 29724: IOStatus Close(const IOOptions& opts); 29724: 29724: IOStatus Sync(const IOOptions& opts, bool use_fsync); 29724: 29724: 29724: 29724: 29724: IOStatus SyncWithoutFlush(const IOOptions& opts, bool use_fsync); 29724: 29724: 29724: 29724: uint64_t GetFileSize() const { 29724: return filesize_.load(std::memory_order_acquire); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: uint64_t GetFlushedSize() const { 29724: return flushed_size_.load(std::memory_order_acquire); 29724: } 29724: 29724: IOStatus InvalidateCache(size_t offset, size_t length) { 29724: return writable_file_->InvalidateCache(offset, length); 29724: } 29724: 29724: FSWritableFile* writable_file() const { return writable_file_.get(); } 29724: 29724: bool use_direct_io() { return writable_file_->use_direct_io(); } 29724: 29724: bool BufferIsEmpty() const { return buf_.CurrentSize() == 0; } 29724: 29724: bool IsClosed() const { return writable_file_.get() == nullptr; } 29724: 29724: void TEST_SetFileChecksumGenerator( 29724: FileChecksumGenerator* checksum_generator) { 29724: checksum_generator_.reset(checksum_generator); 29724: } 29724: 29724: std::string GetFileChecksum(); 29724: 29724: const char* GetFileChecksumFuncName() const; 29724: 29724: bool seen_error() const { 29724: return seen_error_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: void reset_seen_error() { 29724: seen_error_.store(false, std::memory_order_relaxed); 29724: 29724: seen_injected_error_.store(false, std::memory_order_relaxed); 29724: 29724: } 29724: void set_seen_error(const Status& s) { 29724: seen_error_.store(true, std::memory_order_relaxed); 29724: (void)s; 29724: 29724: if (s.getState() && std::strstr(s.getState(), "inject")) { 29724: seen_injected_error_.store(true, std::memory_order_relaxed); 29724: } 29724: 29724: } 29724: 29724: bool seen_injected_error() const { 29724: return seen_injected_error_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: 29724: IOStatus GetWriterHasPreviousErrorStatus() { 29724: 29724: if (seen_injected_error_.load(std::memory_order_relaxed)) { 29724: std::stringstream msg; 29724: msg << "Writer has previous " << FaultInjectionTestFS::kInjected 29724: << " error."; 29724: return IOStatus::IOError(msg.str()); 29724: } 29724: 29724: return IOStatus::IOError("Writer has previous error."); 29724: } 29724: 29724: private: 29724: 29724: static Env::IOPriority DecideRateLimiterPriority( 29724: Env::IOPriority writable_file_io_priority, 29724: Env::IOPriority op_rate_limiter_priority); 29724: 29724: 29724: 29724: 29724: IOStatus WriteDirect(const IOOptions& opts); 29724: 29724: IOStatus WriteDirectWithChecksum(const IOOptions& opts); 29724: 29724: 29724: IOStatus WriteBuffered(const IOOptions& opts, const char* data, size_t size); 29724: 29724: IOStatus WriteBufferedWithChecksum(const IOOptions& opts, const char* data, 29724: size_t size); 29724: 29724: IOStatus RangeSync(const IOOptions& opts, uint64_t offset, uint64_t nbytes); 29724: 29724: IOStatus SyncInternal(const IOOptions& opts, bool use_fsync); 29724: IOOptions FinalizeIOOptions(const IOOptions& opts) const; 29724: }; 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 29724: namespace rocksdb { 29724: class Env; 29724: class SystemClock; 29724: 29724: extern const uint64_t kMicrosInSecond; 29724: extern const uint64_t kSecondInMinute; 29724: extern const uint64_t kSecondInHour; 29724: 29724: struct BlockCacheTraceRecord; 29724: 29724: class BlockCacheTraceHelper { 29724: public: 29724: static bool IsGetOrMultiGetOnDataBlock(TraceType block_type, 29724: TableReaderCaller caller); 29724: static bool IsGetOrMultiGet(TableReaderCaller caller); 29724: static bool IsUserAccess(TableReaderCaller caller); 29724: 29724: 29724: static std::string ComputeRowKey(const BlockCacheTraceRecord& access); 29724: 29724: 29724: static uint64_t GetTableId(const BlockCacheTraceRecord& access); 29724: 29724: 29724: static uint64_t GetSequenceNumber(const BlockCacheTraceRecord& access); 29724: 29724: static uint64_t GetBlockOffsetInFile(const BlockCacheTraceRecord& access); 29724: 29724: static const std::string kUnknownColumnFamilyName; 29724: static const uint64_t kReservedGetId; 29724: }; 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 29724: struct BlockCacheLookupContext { 29724: BlockCacheLookupContext(const TableReaderCaller& _caller) : caller(_caller) {} 29724: BlockCacheLookupContext(const TableReaderCaller& _caller, uint64_t _get_id, 29724: bool _get_from_user_specified_snapshot) 29724: : caller(_caller), 29724: get_id(_get_id), 29724: get_from_user_specified_snapshot(_get_from_user_specified_snapshot) {} 29724: const TableReaderCaller caller; 29724: 29724: 29724: 29724: bool is_cache_hit = false; 29724: bool no_insert = false; 29724: TraceType block_type = TraceType::kTraceMax; 29724: uint64_t block_size = 0; 29724: std::string block_key; 29724: uint64_t num_keys_in_block = 0; 29724: 29724: 29724: 29724: uint64_t get_id = 0; 29724: std::string referenced_key; 29724: bool get_from_user_specified_snapshot = false; 29724: 29724: void FillLookupContext(bool _is_cache_hit, bool _no_insert, 29724: TraceType _block_type, uint64_t _block_size, 29724: const std::string& _block_key, 29724: uint64_t _num_keys_in_block) { 29724: is_cache_hit = _is_cache_hit; 29724: no_insert = _no_insert; 29724: block_type = _block_type; 29724: block_size = _block_size; 29724: block_key = _block_key; 29724: num_keys_in_block = _num_keys_in_block; 29724: } 29724: }; 29724: 29724: struct BlockCacheTraceHeader { 29724: uint64_t start_time; 29724: uint32_t rocksdb_major_version; 29724: uint32_t rocksdb_minor_version; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: class BlockCacheTraceWriterImpl : public BlockCacheTraceWriter { 29724: public: 29724: BlockCacheTraceWriterImpl(SystemClock* clock, 29724: const BlockCacheTraceWriterOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: ~BlockCacheTraceWriterImpl() = default; 29724: 29724: BlockCacheTraceWriterImpl(const BlockCacheTraceWriterImpl&) = delete; 29724: BlockCacheTraceWriterImpl& operator=(const BlockCacheTraceWriterImpl&) = 29724: delete; 29724: BlockCacheTraceWriterImpl(BlockCacheTraceWriterImpl&&) = delete; 29724: BlockCacheTraceWriterImpl& operator=(BlockCacheTraceWriterImpl&&) = delete; 29724: 29724: 29724: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29724: const Slice& block_key, const Slice& cf_name, 29724: const Slice& referenced_key) override; 29724: 29724: 29724: 29724: Status WriteHeader() override; 29724: 29724: private: 29724: SystemClock* clock_; 29724: BlockCacheTraceWriterOptions trace_options_; 29724: std::unique_ptr trace_writer_; 29724: }; 29724: 29724: 29724: 29724: 29724: class BlockCacheHumanReadableTraceWriter { 29724: public: 29724: ~BlockCacheHumanReadableTraceWriter(); 29724: 29724: Status NewWritableFile(const std::string& human_readable_trace_file_path, 29724: rocksdb::Env* env); 29724: 29724: Status WriteHumanReadableTraceRecord(const BlockCacheTraceRecord& access, 29724: uint64_t block_id, uint64_t get_key_id); 29724: 29724: private: 29724: char trace_record_buffer_[1024 * 1024]; 29724: std::unique_ptr 29724: human_readable_trace_file_writer_; 29724: }; 29724: 29724: 29724: 29724: class BlockCacheTraceReader { 29724: public: 29724: BlockCacheTraceReader(std::unique_ptr&& reader); 29724: virtual ~BlockCacheTraceReader() = default; 29724: 29724: BlockCacheTraceReader(const BlockCacheTraceReader&) = delete; 29724: BlockCacheTraceReader& operator=(const BlockCacheTraceReader&) = delete; 29724: BlockCacheTraceReader(BlockCacheTraceReader&&) = delete; 29724: BlockCacheTraceReader& operator=(BlockCacheTraceReader&&) = delete; 29724: 29724: Status ReadHeader(BlockCacheTraceHeader* header); 29724: 29724: Status ReadAccess(BlockCacheTraceRecord* record); 29724: 29724: private: 29724: std::unique_ptr trace_reader_; 29724: }; 29724: 29724: 29724: 29724: 29724: class BlockCacheHumanReadableTraceReader : public BlockCacheTraceReader { 29724: public: 29724: BlockCacheHumanReadableTraceReader(const std::string& trace_file_path); 29724: 29724: ~BlockCacheHumanReadableTraceReader(); 29724: 29724: Status ReadHeader(BlockCacheTraceHeader* header); 29724: 29724: Status ReadAccess(BlockCacheTraceRecord* record); 29724: 29724: private: 29724: std::ifstream human_readable_trace_reader_; 29724: }; 29724: 29724: 29724: 29724: 29724: class BlockCacheTracer { 29724: public: 29724: BlockCacheTracer(); 29724: ~BlockCacheTracer(); 29724: 29724: BlockCacheTracer(const BlockCacheTracer&) = delete; 29724: BlockCacheTracer& operator=(const BlockCacheTracer&) = delete; 29724: BlockCacheTracer(BlockCacheTracer&&) = delete; 29724: BlockCacheTracer& operator=(BlockCacheTracer&&) = delete; 29724: 29724: 29724: Status StartTrace(const BlockCacheTraceOptions& trace_options, 29724: std::unique_ptr&& trace_writer); 29724: 29724: 29724: void EndTrace(); 29724: 29724: bool is_tracing_enabled() const { 29724: return writer_.load(std::memory_order_relaxed); 29724: } 29724: 29724: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29724: const Slice& block_key, const Slice& cf_name, 29724: const Slice& referenced_key); 29724: 29724: 29724: uint64_t NextGetId(); 29724: 29724: private: 29724: BlockCacheTraceOptions trace_options_; 29724: 29724: InstrumentedMutex trace_writer_mutex_; 29724: std::atomic writer_; 29724: std::atomic get_id_counter_; 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class Status; 29724: 29724: struct TableReaderOptions { 29724: 29724: TableReaderOptions( 29724: const ImmutableOptions& _ioptions, 29724: const std::shared_ptr& _prefix_extractor, 29724: const EnvOptions& _env_options, 29724: const InternalKeyComparator& _internal_comparator, 29724: uint8_t _block_protection_bytes_per_key, bool _skip_filters = false, 29724: bool _immortal = false, bool _force_direct_prefetch = false, 29724: int _level = -1, BlockCacheTracer* const _block_cache_tracer = nullptr, 29724: size_t _max_file_size_for_l0_meta_pin = 0, 29724: const std::string& _cur_db_session_id = "", uint64_t _cur_file_num = 0, 29724: UniqueId64x2 _unique_id = {}, SequenceNumber _largest_seqno = 0, 29724: uint64_t _tail_size = 0, bool _user_defined_timestamps_persisted = true) 29724: : ioptions(_ioptions), 29724: prefix_extractor(_prefix_extractor), 29724: env_options(_env_options), 29724: internal_comparator(_internal_comparator), 29724: skip_filters(_skip_filters), 29724: immortal(_immortal), 29724: force_direct_prefetch(_force_direct_prefetch), 29724: level(_level), 29724: largest_seqno(_largest_seqno), 29724: block_cache_tracer(_block_cache_tracer), 29724: max_file_size_for_l0_meta_pin(_max_file_size_for_l0_meta_pin), 29724: cur_db_session_id(_cur_db_session_id), 29724: cur_file_num(_cur_file_num), 29724: unique_id(_unique_id), 29724: block_protection_bytes_per_key(_block_protection_bytes_per_key), 29724: tail_size(_tail_size), 29724: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) {} 29724: 29724: const ImmutableOptions& ioptions; 29724: const std::shared_ptr& prefix_extractor; 29724: const EnvOptions& env_options; 29724: const InternalKeyComparator& internal_comparator; 29724: 29724: bool skip_filters; 29724: 29724: bool immortal; 29724: 29724: 29724: 29724: bool force_direct_prefetch; 29724: 29724: 29724: int level; 29724: 29724: SequenceNumber largest_seqno; 29724: BlockCacheTracer* const block_cache_tracer; 29724: 29724: 29724: const size_t max_file_size_for_l0_meta_pin; 29724: 29724: std::string cur_db_session_id; 29724: 29724: uint64_t cur_file_num; 29724: 29724: 29724: UniqueId64x2 unique_id; 29724: 29724: uint8_t block_protection_bytes_per_key; 29724: 29724: uint64_t tail_size; 29724: 29724: 29724: bool user_defined_timestamps_persisted; 29724: }; 29724: 29724: struct TableBuilderOptions : public TablePropertiesCollectorFactory::Context { 29724: TableBuilderOptions( 29724: const ImmutableOptions& _ioptions, const MutableCFOptions& _moptions, 29724: const ReadOptions& _read_options, const WriteOptions& _write_options, 29724: const InternalKeyComparator& _internal_comparator, 29724: const InternalTblPropCollFactories* _internal_tbl_prop_coll_factories, 29724: CompressionType _compression_type, 29724: const CompressionOptions& _compression_opts, uint32_t _column_family_id, 29724: const std::string& _column_family_name, int _level, 29724: const int64_t _newest_key_time, bool _is_bottommost = false, 29724: TableFileCreationReason _reason = TableFileCreationReason::kMisc, 29724: const int64_t _oldest_key_time = 0, 29724: const uint64_t _file_creation_time = 0, const std::string& _db_id = "", 29724: const std::string& _db_session_id = "", 29724: const uint64_t _target_file_size = 0, const uint64_t _cur_file_num = 0, 29724: const SequenceNumber _last_level_inclusive_max_seqno_threshold = 29724: kMaxSequenceNumber) 29724: : TablePropertiesCollectorFactory::Context( 29724: _column_family_id, _level, _ioptions.num_levels, 29724: _last_level_inclusive_max_seqno_threshold), 29724: ioptions(_ioptions), 29724: moptions(_moptions), 29724: read_options(_read_options), 29724: write_options(_write_options), 29724: internal_comparator(_internal_comparator), 29724: internal_tbl_prop_coll_factories(_internal_tbl_prop_coll_factories), 29724: compression_type(_compression_type), 29724: compression_opts(_compression_opts), 29724: column_family_name(_column_family_name), 29724: oldest_key_time(_oldest_key_time), 29724: newest_key_time(_newest_key_time), 29724: target_file_size(_target_file_size), 29724: file_creation_time(_file_creation_time), 29724: db_id(_db_id), 29724: db_session_id(_db_session_id), 29724: is_bottommost(_is_bottommost), 29724: reason(_reason), 29724: cur_file_num(_cur_file_num) {} 29724: 29724: const ImmutableOptions& ioptions; 29724: const MutableCFOptions& moptions; 29724: const ReadOptions& read_options; 29724: const WriteOptions& write_options; 29724: const InternalKeyComparator& internal_comparator; 29724: const InternalTblPropCollFactories* internal_tbl_prop_coll_factories; 29724: const CompressionType compression_type; 29724: const CompressionOptions& compression_opts; 29724: const std::string& column_family_name; 29724: const int64_t oldest_key_time; 29724: const int64_t newest_key_time; 29724: const uint64_t target_file_size; 29724: const uint64_t file_creation_time; 29724: const std::string db_id; 29724: const std::string db_session_id; 29724: 29724: const bool is_bottommost; 29724: const TableFileCreationReason reason; 29724: 29724: 29724: 29724: 29724: 29724: bool skip_filters = false; 29724: const uint64_t cur_file_num; 29724: }; 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29724: class TableBuilder { 29724: public: 29724: 29724: virtual ~TableBuilder() {} 29724: 29724: 29724: 29724: 29724: virtual void Add(const Slice& key, const Slice& value) = 0; 29724: 29724: 29724: virtual Status status() const = 0; 29724: 29724: 29724: virtual IOStatus io_status() const = 0; 29724: 29724: 29724: 29724: virtual Status Finish() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void Abandon() = 0; 29724: 29724: 29724: virtual uint64_t NumEntries() const = 0; 29724: 29724: 29724: 29724: virtual bool IsEmpty() const { 29724: return NumEntries() == 0 && GetTableProperties().num_range_deletions == 0; 29724: } 29724: 29724: 29724: 29724: virtual uint64_t FileSize() const = 0; 29724: 29724: 29724: 29724: 29724: virtual uint64_t EstimatedFileSize() const { return FileSize(); } 29724: 29724: virtual uint64_t GetTailSize() const { return 0; } 29724: 29724: 29724: 29724: virtual bool NeedCompact() const { return false; } 29724: 29724: 29724: virtual TableProperties GetTableProperties() const = 0; 29724: 29724: 29724: virtual std::string GetFileChecksum() const = 0; 29724: 29724: 29724: virtual const char* GetFileChecksumFuncName() const = 0; 29724: 29724: 29724: 29724: virtual void SetSeqnoTimeTableProperties( 29724: const SeqnoToTimeMapping& , 29724: uint64_t ){} 29724: }; 29724: 29724: } 29724: # 26 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: namespace rocksdb { 29724: # 41 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: template > 29724: class BinaryHeap { 29724: public: 29724: BinaryHeap() {} 29724: explicit BinaryHeap(Compare cmp) : cmp_(std::move(cmp)) {} 29724: 29724: void push(const T& value) { 29724: data_.push_back(value); 29724: upheap(data_.size() - 1); 29724: } 29724: 29724: void push(T&& value) { 29724: data_.push_back(std::move(value)); 29724: upheap(data_.size() - 1); 29724: } 29724: 29724: const T& top() const { 29724: 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: (static_cast ( 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: !empty() 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: "!empty()" 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: ; 29724: return data_.front(); 29724: } 29724: 29724: void replace_top(const T& value) { 29724: 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: (static_cast ( 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: !empty() 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: "!empty()" 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: ; 29724: data_.front() = value; 29724: downheap(get_root()); 29724: } 29724: 29724: void replace_top(T&& value) { 29724: 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: (static_cast ( 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: !empty() 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: "!empty()" 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: ; 29724: data_.front() = std::move(value); 29724: downheap(get_root()); 29724: } 29724: 29724: void pop() { 29724: 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: (static_cast ( 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: !empty() 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: "!empty()" 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: ; 29724: if (data_.size() > 1) { 29724: 29724: 29724: 29724: data_.front() = std::move(data_.back()); 29724: } 29724: data_.pop_back(); 29724: if (!empty()) { 29724: downheap(get_root()); 29724: } else { 29724: reset_root_cmp_cache(); 29724: } 29724: } 29724: 29724: void swap(BinaryHeap& other) { 29724: std::swap(cmp_, other.cmp_); 29724: data_.swap(other.data_); 29724: std::swap(root_cmp_cache_, other.root_cmp_cache_); 29724: } 29724: 29724: void clear() { 29724: data_.clear(); 29724: reset_root_cmp_cache(); 29724: } 29724: 29724: bool empty() const { return data_.empty(); } 29724: 29724: size_t size() const { return data_.size(); } 29724: 29724: void reset_root_cmp_cache() { 29724: root_cmp_cache_ = std::numeric_limits::max(); 29724: } 29724: 29724: private: 29724: static inline size_t get_root() { return 0; } 29724: static inline size_t get_parent(size_t index) { return (index - 1) / 2; } 29724: static inline size_t get_left(size_t index) { return 2 * index + 1; } 29724: static inline size_t get_right(size_t index) { return 2 * index + 2; } 29724: 29724: void upheap(size_t index) { 29724: T v = std::move(data_[index]); 29724: while (index > get_root()) { 29724: const size_t parent = get_parent(index); 29724: if (!cmp_(data_[parent], v)) { 29724: break; 29724: } 29724: data_[index] = std::move(data_[parent]); 29724: index = parent; 29724: } 29724: data_[index] = std::move(v); 29724: reset_root_cmp_cache(); 29724: } 29724: 29724: void downheap(size_t index) { 29724: T v = std::move(data_[index]); 29724: 29724: size_t picked_child = std::numeric_limits::max(); 29724: while (1) { 29724: const size_t left_child = get_left(index); 29724: if (get_left(index) >= data_.size()) { 29724: break; 29724: } 29724: const size_t right_child = left_child + 1; 29724: 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: (static_cast ( 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: right_child == get_right(index) 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: "right_child == get_right(index)" 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29724: ; 29724: picked_child = left_child; 29724: if (index == 0 && root_cmp_cache_ < data_.size()) { 29724: picked_child = root_cmp_cache_; 29724: } else if (right_child < data_.size() && 29724: cmp_(data_[left_child], data_[right_child])) { 29724: picked_child = right_child; 29724: } 29724: if (!cmp_(v, data_[picked_child])) { 29724: break; 29724: } 29724: data_[index] = std::move(data_[picked_child]); 29724: index = picked_child; 29724: } 29724: 29724: if (index == 0) { 29724: 29724: 29724: 29724: 29724: root_cmp_cache_ = picked_child; 29724: } else { 29724: 29724: reset_root_cmp_cache(); 29724: } 29724: 29724: data_[index] = std::move(v); 29724: } 29724: 29724: Compare cmp_; 29724: autovector data_; 29724: 29724: size_t root_cmp_cache_ = std::numeric_limits::max(); 29724: }; 29724: 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/kv_map.h" 1 29724: 29724: 29724: 29724: 29724: 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/util/kv_map.h" 29724: namespace rocksdb { 29724: namespace stl_wrappers { 29724: 29724: struct LessOfComparator { 29724: explicit LessOfComparator(const Comparator* c = BytewiseComparator()) 29724: : cmp(c) {} 29724: 29724: bool operator()(const std::string& a, const std::string& b) const { 29724: return cmp->Compare(Slice(a), Slice(b)) < 0; 29724: } 29724: bool operator()(const Slice& a, const Slice& b) const { 29724: return cmp->Compare(a, b) < 0; 29724: } 29724: 29724: const Comparator* cmp; 29724: }; 29724: 29724: using KVMap = std::map; 29724: } 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: class TruncatedRangeDelIterator { 29724: public: 29724: TruncatedRangeDelIterator( 29724: std::unique_ptr iter, 29724: const InternalKeyComparator* icmp, const InternalKey* smallest, 29724: const InternalKey* largest); 29724: 29724: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 29724: iter_->SetRangeDelReadSeqno(read_seqno); 29724: } 29724: 29724: bool Valid() const; 29724: 29724: void Next() { iter_->TopNext(); } 29724: void Prev() { iter_->TopPrev(); } 29724: 29724: void InternalNext() { iter_->Next(); } 29724: 29724: 29724: 29724: 29724: 29724: void Seek(const Slice& target); 29724: 29724: 29724: void SeekInternalKey(const Slice& target); 29724: 29724: 29724: 29724: 29724: void SeekForPrev(const Slice& target); 29724: 29724: void SeekToFirst(); 29724: void SeekToLast(); 29724: 29724: ParsedInternalKey start_key() const { 29724: return (smallest_ == nullptr || 29724: icmp_->Compare(*smallest_, iter_->parsed_start_key()) <= 0) 29724: ? iter_->parsed_start_key() 29724: : *smallest_; 29724: } 29724: 29724: ParsedInternalKey end_key() const { 29724: return (largest_ == nullptr || 29724: icmp_->Compare(iter_->parsed_end_key(), *largest_) <= 0) 29724: ? iter_->parsed_end_key() 29724: : *largest_; 29724: } 29724: 29724: SequenceNumber seq() const { return iter_->seq(); } 29724: Slice timestamp() const { 29724: 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: (static_cast ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: icmp_->user_comparator()->timestamp_size() 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: "icmp_->user_comparator()->timestamp_size()" 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: ; 29724: return iter_->timestamp(); 29724: } 29724: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 29724: iter_->SetTimestampUpperBound(ts_upper_bound); 29724: } 29724: 29724: std::map> 29724: SplitBySnapshot(const std::vector& snapshots); 29724: 29724: SequenceNumber upper_bound() const { return iter_->upper_bound(); } 29724: 29724: SequenceNumber lower_bound() const { return iter_->lower_bound(); } 29724: 29724: private: 29724: std::unique_ptr iter_; 29724: const InternalKeyComparator* icmp_; 29724: const ParsedInternalKey* smallest_ = nullptr; 29724: const ParsedInternalKey* largest_ = nullptr; 29724: std::list pinned_bounds_; 29724: 29724: const InternalKey* smallest_ikey_; 29724: const InternalKey* largest_ikey_; 29724: }; 29724: 29724: struct SeqMaxComparator { 29724: bool operator()(const TruncatedRangeDelIterator* a, 29724: const TruncatedRangeDelIterator* b) const { 29724: return a->seq() > b->seq(); 29724: } 29724: }; 29724: 29724: struct StartKeyMinComparator { 29724: explicit StartKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 29724: 29724: bool operator()(const TruncatedRangeDelIterator* a, 29724: const TruncatedRangeDelIterator* b) const { 29724: return icmp->Compare(a->start_key(), b->start_key()) > 0; 29724: } 29724: 29724: const InternalKeyComparator* icmp; 29724: }; 29724: 29724: class ForwardRangeDelIterator { 29724: public: 29724: explicit ForwardRangeDelIterator(const InternalKeyComparator* icmp); 29724: 29724: bool ShouldDelete(const ParsedInternalKey& parsed); 29724: void Invalidate(); 29724: 29724: void AddNewIter(TruncatedRangeDelIterator* iter, 29724: const ParsedInternalKey& parsed) { 29724: iter->Seek(parsed.user_key); 29724: PushIter(iter, parsed); 29724: 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: (static_cast ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: active_iters_.size() == active_seqnums_.size() 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: "active_iters_.size() == active_seqnums_.size()" 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: ; 29724: } 29724: 29724: size_t UnusedIdx() const { return unused_idx_; } 29724: void IncUnusedIdx() { unused_idx_++; } 29724: 29724: private: 29724: using ActiveSeqSet = 29724: std::multiset; 29724: 29724: struct EndKeyMinComparator { 29724: explicit EndKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 29724: 29724: bool operator()(const ActiveSeqSet::const_iterator& a, 29724: const ActiveSeqSet::const_iterator& b) const { 29724: return icmp->Compare((*a)->end_key(), (*b)->end_key()) > 0; 29724: } 29724: 29724: const InternalKeyComparator* icmp; 29724: }; 29724: 29724: void PushIter(TruncatedRangeDelIterator* iter, 29724: const ParsedInternalKey& parsed) { 29724: if (!iter->Valid()) { 29724: 29724: 29724: return; 29724: } 29724: int cmp = icmp_->Compare(parsed, iter->start_key()); 29724: if (cmp < 0) { 29724: PushInactiveIter(iter); 29724: } else { 29724: PushActiveIter(iter); 29724: } 29724: } 29724: 29724: void PushActiveIter(TruncatedRangeDelIterator* iter) { 29724: auto seq_pos = active_seqnums_.insert(iter); 29724: active_iters_.push(seq_pos); 29724: } 29724: 29724: TruncatedRangeDelIterator* PopActiveIter() { 29724: auto active_top = active_iters_.top(); 29724: auto iter = *active_top; 29724: active_iters_.pop(); 29724: active_seqnums_.erase(active_top); 29724: return iter; 29724: } 29724: 29724: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 29724: inactive_iters_.push(iter); 29724: } 29724: 29724: TruncatedRangeDelIterator* PopInactiveIter() { 29724: auto* iter = inactive_iters_.top(); 29724: inactive_iters_.pop(); 29724: return iter; 29724: } 29724: 29724: const InternalKeyComparator* icmp_; 29724: size_t unused_idx_; 29724: ActiveSeqSet active_seqnums_; 29724: BinaryHeap active_iters_; 29724: BinaryHeap inactive_iters_; 29724: }; 29724: 29724: class ReverseRangeDelIterator { 29724: public: 29724: explicit ReverseRangeDelIterator(const InternalKeyComparator* icmp); 29724: 29724: bool ShouldDelete(const ParsedInternalKey& parsed); 29724: void Invalidate(); 29724: 29724: void AddNewIter(TruncatedRangeDelIterator* iter, 29724: const ParsedInternalKey& parsed) { 29724: iter->SeekForPrev(parsed.user_key); 29724: PushIter(iter, parsed); 29724: 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: (static_cast ( 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: active_iters_.size() == active_seqnums_.size() 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: "active_iters_.size() == active_seqnums_.size()" 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: ; 29724: } 29724: 29724: size_t UnusedIdx() const { return unused_idx_; } 29724: void IncUnusedIdx() { unused_idx_++; } 29724: 29724: private: 29724: using ActiveSeqSet = 29724: std::multiset; 29724: 29724: struct EndKeyMaxComparator { 29724: explicit EndKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 29724: 29724: bool operator()(const TruncatedRangeDelIterator* a, 29724: const TruncatedRangeDelIterator* b) const { 29724: return icmp->Compare(a->end_key(), b->end_key()) < 0; 29724: } 29724: 29724: const InternalKeyComparator* icmp; 29724: }; 29724: struct StartKeyMaxComparator { 29724: explicit StartKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 29724: 29724: bool operator()(const ActiveSeqSet::const_iterator& a, 29724: const ActiveSeqSet::const_iterator& b) const { 29724: return icmp->Compare((*a)->start_key(), (*b)->start_key()) < 0; 29724: } 29724: 29724: const InternalKeyComparator* icmp; 29724: }; 29724: 29724: void PushIter(TruncatedRangeDelIterator* iter, 29724: const ParsedInternalKey& parsed) { 29724: if (!iter->Valid()) { 29724: 29724: 29724: } else if (icmp_->Compare(iter->end_key(), parsed) <= 0) { 29724: PushInactiveIter(iter); 29724: } else { 29724: PushActiveIter(iter); 29724: } 29724: } 29724: 29724: void PushActiveIter(TruncatedRangeDelIterator* iter) { 29724: auto seq_pos = active_seqnums_.insert(iter); 29724: active_iters_.push(seq_pos); 29724: } 29724: 29724: TruncatedRangeDelIterator* PopActiveIter() { 29724: auto active_top = active_iters_.top(); 29724: auto iter = *active_top; 29724: active_iters_.pop(); 29724: active_seqnums_.erase(active_top); 29724: return iter; 29724: } 29724: 29724: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 29724: inactive_iters_.push(iter); 29724: } 29724: 29724: TruncatedRangeDelIterator* PopInactiveIter() { 29724: auto* iter = inactive_iters_.top(); 29724: inactive_iters_.pop(); 29724: return iter; 29724: } 29724: 29724: const InternalKeyComparator* icmp_; 29724: size_t unused_idx_; 29724: ActiveSeqSet active_seqnums_; 29724: BinaryHeap active_iters_; 29724: BinaryHeap inactive_iters_; 29724: }; 29724: 29724: enum class RangeDelPositioningMode { kForwardTraversal, kBackwardTraversal }; 29724: class RangeDelAggregator { 29724: public: 29724: explicit RangeDelAggregator(const InternalKeyComparator* icmp) 29724: : icmp_(icmp) {} 29724: virtual ~RangeDelAggregator() {} 29724: 29724: virtual void AddTombstones( 29724: std::unique_ptr input_iter, 29724: const InternalKey* smallest = nullptr, 29724: const InternalKey* largest = nullptr) = 0; 29724: 29724: bool ShouldDelete(const Slice& ikey, RangeDelPositioningMode mode) { 29724: ParsedInternalKey parsed; 29724: 29724: Status pik_status = 29724: ParseInternalKey(ikey, &parsed, false ); 29724: 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: (static_cast ( 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: pik_status.ok() 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: "pik_status.ok()" 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: ; 29724: if (!pik_status.ok()) { 29724: return false; 29724: } 29724: 29724: return ShouldDelete(parsed, mode); 29724: } 29724: virtual bool ShouldDelete(const ParsedInternalKey& parsed, 29724: RangeDelPositioningMode mode) = 0; 29724: 29724: virtual void InvalidateRangeDelMapPositions() = 0; 29724: 29724: virtual bool IsEmpty() const = 0; 29724: 29724: bool AddFile(uint64_t file_number) { 29724: return files_seen_.insert(file_number).second; 29724: } 29724: 29724: protected: 29724: class StripeRep { 29724: public: 29724: StripeRep(const InternalKeyComparator* icmp, SequenceNumber upper_bound, 29724: SequenceNumber lower_bound) 29724: : icmp_(icmp), 29724: forward_iter_(icmp), 29724: reverse_iter_(icmp), 29724: upper_bound_(upper_bound), 29724: lower_bound_(lower_bound) {} 29724: 29724: void AddTombstones(std::unique_ptr input_iter) { 29724: iters_.push_back(std::move(input_iter)); 29724: } 29724: 29724: bool IsEmpty() const { return iters_.empty(); } 29724: 29724: bool ShouldDelete(const ParsedInternalKey& parsed, 29724: RangeDelPositioningMode mode); 29724: 29724: void Invalidate() { 29724: if (!IsEmpty()) { 29724: InvalidateForwardIter(); 29724: InvalidateReverseIter(); 29724: } 29724: } 29724: 29724: 29724: 29724: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29724: 29724: private: 29724: bool InStripe(SequenceNumber seq) const { 29724: return lower_bound_ <= seq && seq <= upper_bound_; 29724: } 29724: 29724: void InvalidateForwardIter() { forward_iter_.Invalidate(); } 29724: 29724: void InvalidateReverseIter() { reverse_iter_.Invalidate(); } 29724: 29724: const InternalKeyComparator* icmp_; 29724: std::vector> iters_; 29724: ForwardRangeDelIterator forward_iter_; 29724: ReverseRangeDelIterator reverse_iter_; 29724: SequenceNumber upper_bound_; 29724: SequenceNumber lower_bound_; 29724: }; 29724: 29724: const InternalKeyComparator* icmp_; 29724: 29724: private: 29724: std::set files_seen_; 29724: }; 29724: 29724: class ReadRangeDelAggregator final : public RangeDelAggregator { 29724: public: 29724: ReadRangeDelAggregator(const InternalKeyComparator* icmp, 29724: SequenceNumber upper_bound) 29724: : RangeDelAggregator(icmp), 29724: rep_(icmp, upper_bound, 0 ) {} 29724: ~ReadRangeDelAggregator() override {} 29724: 29724: using RangeDelAggregator::ShouldDelete; 29724: void AddTombstones( 29724: std::unique_ptr input_iter, 29724: const InternalKey* smallest = nullptr, 29724: const InternalKey* largest = nullptr) override; 29724: 29724: bool ShouldDelete(const ParsedInternalKey& parsed, 29724: RangeDelPositioningMode mode) final override { 29724: if (rep_.IsEmpty()) { 29724: return false; 29724: } 29724: return ShouldDeleteImpl(parsed, mode); 29724: } 29724: 29724: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29724: 29724: void InvalidateRangeDelMapPositions() override { rep_.Invalidate(); } 29724: 29724: bool IsEmpty() const override { return rep_.IsEmpty(); } 29724: 29724: private: 29724: StripeRep rep_; 29724: 29724: bool ShouldDeleteImpl(const ParsedInternalKey& parsed, 29724: RangeDelPositioningMode mode); 29724: }; 29724: 29724: class CompactionRangeDelAggregator : public RangeDelAggregator { 29724: public: 29724: CompactionRangeDelAggregator(const InternalKeyComparator* icmp, 29724: const std::vector& snapshots, 29724: const std::string* full_history_ts_low = nullptr, 29724: const std::string* trim_ts = nullptr) 29724: : RangeDelAggregator(icmp), snapshots_(&snapshots) { 29724: if (full_history_ts_low) { 29724: ts_upper_bound_ = *full_history_ts_low; 29724: } 29724: if (trim_ts) { 29724: trim_ts_ = *trim_ts; 29724: 29724: 29724: if (ts_upper_bound_.empty()) { 29724: ts_upper_bound_ = trim_ts_; 29724: } else if (!trim_ts_.empty() && icmp->user_comparator()->CompareTimestamp( 29724: trim_ts_, ts_upper_bound_) < 0) { 29724: ts_upper_bound_ = trim_ts_; 29724: } 29724: } 29724: } 29724: ~CompactionRangeDelAggregator() override {} 29724: 29724: void AddTombstones( 29724: std::unique_ptr input_iter, 29724: const InternalKey* smallest = nullptr, 29724: const InternalKey* largest = nullptr) override; 29724: 29724: using RangeDelAggregator::ShouldDelete; 29724: bool ShouldDelete(const ParsedInternalKey& parsed, 29724: RangeDelPositioningMode mode) override; 29724: 29724: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29724: 29724: void InvalidateRangeDelMapPositions() override { 29724: for (auto& rep : reps_) { 29724: rep.second.Invalidate(); 29724: } 29724: } 29724: 29724: bool IsEmpty() const override { 29724: for (const auto& rep : reps_) { 29724: if (!rep.second.IsEmpty()) { 29724: return false; 29724: } 29724: } 29724: return true; 29724: } 29724: # 468 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29724: std::unique_ptr NewIterator( 29724: const Slice* lower_bound = nullptr, const Slice* upper_bound = nullptr); 29724: 29724: private: 29724: std::vector> parent_iters_; 29724: std::map reps_; 29724: 29724: const std::vector* snapshots_; 29724: 29724: Slice ts_upper_bound_{}; 29724: Slice trim_ts_{}; 29724: }; 29724: 29724: } 29724: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/snapshot_checker.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: enum class SnapshotCheckerResult : int { 29724: kInSnapshot = 0, 29724: kNotInSnapshot = 1, 29724: 29724: 29724: kSnapshotReleased = 2, 29724: }; 29724: 29724: 29724: class SnapshotChecker { 29724: public: 29724: virtual ~SnapshotChecker() {} 29724: virtual SnapshotCheckerResult CheckInSnapshot( 29724: SequenceNumber sequence, SequenceNumber snapshot_sequence) const = 0; 29724: }; 29724: 29724: class DisableGCSnapshotChecker : public SnapshotChecker { 29724: public: 29724: virtual ~DisableGCSnapshotChecker() {} 29724: SnapshotCheckerResult CheckInSnapshot( 29724: SequenceNumber , 29724: SequenceNumber ) const override { 29724: 29724: return SnapshotCheckerResult::kNotInSnapshot; 29724: } 29724: static DisableGCSnapshotChecker* Instance(); 29724: 29724: protected: 29724: explicit DisableGCSnapshotChecker() {} 29724: }; 29724: 29724: class WritePreparedTxnDB; 29724: 29724: 29724: 29724: class WritePreparedSnapshotChecker : public SnapshotChecker { 29724: public: 29724: explicit WritePreparedSnapshotChecker(WritePreparedTxnDB* txn_db); 29724: virtual ~WritePreparedSnapshotChecker() {} 29724: 29724: SnapshotCheckerResult CheckInSnapshot( 29724: SequenceNumber sequence, SequenceNumber snapshot_sequence) const override; 29724: 29724: private: 29724: const WritePreparedTxnDB* const txn_db_; 29724: }; 29724: 29724: bool DataIsDefinitelyInSnapshot(SequenceNumber seqno, SequenceNumber snapshot, 29724: const SnapshotChecker* snapshot_checker); 29724: 29724: bool DataIsDefinitelyNotInSnapshot(SequenceNumber seqno, 29724: SequenceNumber snapshot, 29724: const SnapshotChecker* snapshot_checker); 29724: 29724: } 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: # 44 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 29724: class WideColumnSerialization { 29724: public: 29724: static Status Serialize(const WideColumns& columns, std::string& output); 29724: 29724: static Status Deserialize(Slice& input, WideColumns& columns); 29724: 29724: static Status GetValueOfDefaultColumn(Slice& input, Slice& value); 29724: 29724: static constexpr uint32_t kCurrentVersion = 1; 29724: }; 29724: 29724: } 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 1 29724: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: 29724: 29724: # 1 "/usr/include/c++/14/cassert" 1 3 29724: # 41 "/usr/include/c++/14/cassert" 3 29724: 29724: # 42 "/usr/include/c++/14/cassert" 3 29724: 29724: 29724: # 1 "/usr/include/assert.h" 1 3 4 29724: # 45 "/usr/include/c++/14/cassert" 2 3 29724: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 2 29724: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class SliceTransform; 29724: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: class CompactionFilter : public Customizable { 29724: public: 29724: 29724: 29724: enum ValueType { 29724: 29724: kValue, 29724: 29724: kMergeOperand, 29724: 29724: 29724: 29724: 29724: kBlobIndex, 29724: 29724: kWideColumnEntity, 29724: }; 29724: 29724: 29724: 29724: 29724: enum class Decision { 29724: 29724: kKeep, 29724: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: kRemove, 29724: 29724: 29724: 29724: 29724: 29724: kChangeValue, 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: kRemoveAndSkipUntil, 29724: 29724: 29724: 29724: kChangeBlobIndex, 29724: 29724: 29724: 29724: kIOError, 29724: 29724: 29724: 29724: 29724: 29724: kPurge, 29724: 29724: 29724: 29724: 29724: 29724: 29724: kChangeWideColumnEntity, 29724: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: kUndetermined, 29724: }; 29724: 29724: 29724: enum class BlobDecision { kKeep, kChangeValue, kCorruption, kIOError }; 29724: 29724: 29724: struct Context { 29724: 29724: 29724: bool is_full_compaction; 29724: 29724: 29724: bool is_manual_compaction; 29724: 29724: 29724: int input_start_level = kUnknownStartLevel; 29724: 29724: uint32_t column_family_id; 29724: 29724: TableFileCreationReason reason; 29724: 29724: 29724: 29724: 29724: TablePropertiesCollection input_table_properties; 29724: 29724: static const int kUnknownStartLevel = -1; 29724: }; 29724: 29724: virtual ~CompactionFilter() {} 29724: static const char* Type() { return "CompactionFilter"; } 29724: static Status CreateFromString(const ConfigOptions& config_options, 29724: const std::string& name, 29724: const CompactionFilter** result); 29724: # 201 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: virtual bool Filter(int , const Slice& , 29724: const Slice& , 29724: std::string* , 29724: bool* ) const { 29724: return false; 29724: } 29724: # 217 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: virtual bool FilterMergeOperand(int , const Slice& , 29724: const Slice& ) const { 29724: return false; 29724: } 29724: # 234 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: virtual Decision FilterV2(int level, const Slice& key, ValueType value_type, 29724: const Slice& existing_value, std::string* new_value, 29724: std::string* ) const { 29724: switch (value_type) { 29724: case ValueType::kValue: { 29724: bool value_changed = false; 29724: bool rv = Filter(level, key, existing_value, new_value, &value_changed); 29724: if (rv) { 29724: return Decision::kRemove; 29724: } 29724: return value_changed ? Decision::kChangeValue : Decision::kKeep; 29724: } 29724: 29724: case ValueType::kMergeOperand: { 29724: bool rv = FilterMergeOperand(level, key, existing_value); 29724: return rv ? Decision::kRemove : Decision::kKeep; 29724: } 29724: 29724: case ValueType::kBlobIndex: 29724: return Decision::kKeep; 29724: 29724: default: 29724: 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: (static_cast ( 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: false 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: "false" 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: ; 29724: return Decision::kKeep; 29724: } 29724: } 29724: # 281 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: virtual Decision FilterV3( 29724: int level, const Slice& key, ValueType value_type, 29724: const Slice* existing_value, const WideColumns* existing_columns, 29724: std::string* new_value, 29724: std::vector>* , 29724: std::string* skip_until) const { 29724: 29724: 29724: 29724: 29724: 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: (static_cast ( 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: !existing_value || !existing_columns 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: "!existing_value || !existing_columns" 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: ; 29724: 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: (static_cast ( 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: value_type == ValueType::kWideColumnEntity || existing_value 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: "value_type == ValueType::kWideColumnEntity || existing_value" 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: ; 29724: 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: (static_cast ( 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: value_type != ValueType::kWideColumnEntity || existing_columns 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: "value_type != ValueType::kWideColumnEntity || existing_columns" 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: ; 29724: 29724: if (value_type == ValueType::kWideColumnEntity) { 29724: return Decision::kKeep; 29724: } 29724: 29724: return FilterV2(level, key, value_type, *existing_value, new_value, 29724: skip_until); 29724: } 29724: 29724: 29724: virtual BlobDecision PrepareBlobOutput(const Slice& , 29724: const Slice& , 29724: std::string* ) const { 29724: return BlobDecision::kKeep; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool IgnoreSnapshots() const { return true; } 29724: 29724: 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: virtual bool IsStackedBlobDbInternalCompactionFilter() const { return false; } 29724: # 334 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: virtual Decision FilterBlobByKey(int , const Slice& , 29724: std::string* , 29724: std::string* ) const { 29724: return Decision::kUndetermined; 29724: } 29724: }; 29724: # 349 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29724: class CompactionFilterFactory : public Customizable { 29724: public: 29724: virtual ~CompactionFilterFactory() {} 29724: static const char* Type() { return "CompactionFilterFactory"; } 29724: static Status CreateFromString( 29724: const ConfigOptions& config_options, const std::string& name, 29724: std::shared_ptr* result); 29724: 29724: 29724: 29724: 29724: virtual bool ShouldFilterTableFileCreation( 29724: TableFileCreationReason reason) const { 29724: 29724: 29724: return reason == TableFileCreationReason::kCompaction; 29724: } 29724: 29724: virtual std::unique_ptr CreateCompactionFilter( 29724: const CompactionFilter::Context& context) = 0; 29724: 29724: 29724: const char* Name() const override = 0; 29724: }; 29724: 29724: } 29724: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/variant" 1 3 29724: # 32 "/usr/include/c++/14/variant" 3 29724: 29724: # 33 "/usr/include/c++/14/variant" 3 29724: 29724: 29724: 29724: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29724: # 47 "/usr/include/c++/14/bits/version.h" 3 29724: 29724: # 48 "/usr/include/c++/14/bits/version.h" 3 29724: # 37 "/usr/include/c++/14/variant" 2 3 29724: # 59 "/usr/include/c++/14/variant" 3 29724: 29724: # 59 "/usr/include/c++/14/variant" 3 29724: namespace std __attribute__ ((__visibility__ ("default"))) 29724: { 29724: 29724: 29724: template class tuple; 29724: template class variant; 29724: template struct hash; 29724: 29724: template 29724: struct variant_size; 29724: 29724: template 29724: struct variant_size : variant_size<_Variant> {}; 29724: 29724: template 29724: struct variant_size : variant_size<_Variant> {}; 29724: 29724: template 29724: struct variant_size : variant_size<_Variant> {}; 29724: 29724: template 29724: struct variant_size> 29724: : std::integral_constant {}; 29724: 29724: template 29724: inline constexpr size_t variant_size_v = variant_size<_Variant>::value; 29724: 29724: template 29724: inline constexpr size_t 29724: variant_size_v> = sizeof...(_Types); 29724: 29724: template 29724: inline constexpr size_t 29724: variant_size_v> = sizeof...(_Types); 29724: 29724: template 29724: struct variant_alternative; 29724: 29724: template 29724: struct variant_alternative<_Np, variant<_Types...>> 29724: { 29724: static_assert(_Np < sizeof...(_Types)); 29724: 29724: using type = typename _Nth_type<_Np, _Types...>::type; 29724: }; 29724: 29724: template 29724: using variant_alternative_t = 29724: typename variant_alternative<_Np, _Variant>::type; 29724: 29724: template 29724: struct variant_alternative<_Np, const _Variant> 29724: { using type = const variant_alternative_t<_Np, _Variant>; }; 29724: 29724: template 29724: struct variant_alternative<_Np, volatile _Variant> 29724: { using type = volatile variant_alternative_t<_Np, _Variant>; }; 29724: 29724: template 29724: struct variant_alternative<_Np, const volatile _Variant> 29724: { using type = const volatile variant_alternative_t<_Np, _Variant>; }; 29724: 29724: inline constexpr size_t variant_npos = -1; 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>>& 29724: get(variant<_Types...>&); 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 29724: get(variant<_Types...>&&); 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>> const& 29724: get(const variant<_Types...>&); 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>> const&& 29724: get(const variant<_Types...>&&); 29724: 29724: template 29724: constexpr decltype(auto) 29724: __do_visit(_Visitor&& __visitor, _Variants&&... __variants); 29724: 29724: template 29724: 29724: decltype(auto) 29724: __variant_cast(_Tp&& __rhs) 29724: { 29724: if constexpr (is_lvalue_reference_v<_Tp>) 29724: { 29724: if constexpr (is_const_v>) 29724: return static_cast&>(__rhs); 29724: else 29724: return static_cast&>(__rhs); 29724: } 29724: else 29724: return static_cast&&>(__rhs); 29724: } 29724: 29724: namespace __detail 29724: { 29724: namespace __variant 29724: { 29724: 29724: struct __variant_cookie {}; 29724: 29724: struct __variant_idx_cookie { using type = __variant_idx_cookie; }; 29724: 29724: template struct __deduce_visit_result { using type = _Tp; }; 29724: 29724: 29724: template 29724: constexpr void 29724: __raw_visit(_Visitor&& __visitor, _Variants&&... __variants) 29724: { 29724: std::__do_visit<__variant_cookie>(std::forward<_Visitor>(__visitor), 29724: std::forward<_Variants>(__variants)...); 29724: } 29724: 29724: 29724: template 29724: constexpr void 29724: __raw_idx_visit(_Visitor&& __visitor, _Variants&&... __variants) 29724: { 29724: std::__do_visit<__variant_idx_cookie>(std::forward<_Visitor>(__visitor), 29724: std::forward<_Variants>(__variants)...); 29724: } 29724: 29724: 29724: 29724: template 29724: constexpr std::variant<_Types...>& 29724: __as(std::variant<_Types...>& __v) noexcept 29724: { return __v; } 29724: 29724: template 29724: constexpr const std::variant<_Types...>& 29724: __as(const std::variant<_Types...>& __v) noexcept 29724: { return __v; } 29724: 29724: template 29724: constexpr std::variant<_Types...>&& 29724: __as(std::variant<_Types...>&& __v) noexcept 29724: { return std::move(__v); } 29724: 29724: template 29724: constexpr const std::variant<_Types...>&& 29724: __as(const std::variant<_Types...>&& __v) noexcept 29724: { return std::move(__v); } 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template> 29724: struct _Uninitialized; 29724: 29724: template 29724: struct _Uninitialized<_Type, true> 29724: { 29724: template 29724: constexpr 29724: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 29724: : _M_storage(std::forward<_Args>(__args)...) 29724: { } 29724: 29724: constexpr const _Type& _M_get() const & noexcept 29724: { return _M_storage; } 29724: 29724: constexpr _Type& _M_get() & noexcept 29724: { return _M_storage; } 29724: 29724: constexpr const _Type&& _M_get() const && noexcept 29724: { return std::move(_M_storage); } 29724: 29724: constexpr _Type&& _M_get() && noexcept 29724: { return std::move(_M_storage); } 29724: 29724: _Type _M_storage; 29724: }; 29724: 29724: template 29724: struct _Uninitialized<_Type, false> 29724: { 29724: # 279 "/usr/include/c++/14/variant" 3 29724: template 29724: constexpr 29724: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 29724: { 29724: ::new ((void*)std::addressof(_M_storage)) 29724: _Type(std::forward<_Args>(__args)...); 29724: } 29724: 29724: const _Type& _M_get() const & noexcept 29724: { return *_M_storage._M_ptr(); } 29724: 29724: _Type& _M_get() & noexcept 29724: { return *_M_storage._M_ptr(); } 29724: 29724: const _Type&& _M_get() const && noexcept 29724: { return std::move(*_M_storage._M_ptr()); } 29724: 29724: _Type&& _M_get() && noexcept 29724: { return std::move(*_M_storage._M_ptr()); } 29724: 29724: __gnu_cxx::__aligned_membuf<_Type> _M_storage; 29724: 29724: }; 29724: 29724: template 29724: constexpr decltype(auto) 29724: __get_n(_Union&& __u) noexcept 29724: { 29724: if constexpr (_Np == 0) 29724: return std::forward<_Union>(__u)._M_first._M_get(); 29724: else if constexpr (_Np == 1) 29724: return std::forward<_Union>(__u)._M_rest._M_first._M_get(); 29724: else if constexpr (_Np == 2) 29724: return std::forward<_Union>(__u)._M_rest._M_rest._M_first._M_get(); 29724: else 29724: return __variant::__get_n<_Np - 3>( 29724: std::forward<_Union>(__u)._M_rest._M_rest._M_rest); 29724: } 29724: 29724: 29724: template 29724: constexpr decltype(auto) 29724: __get(_Variant&& __v) noexcept 29724: { return __variant::__get_n<_Np>(std::forward<_Variant>(__v)._M_u); } 29724: 29724: 29724: template 29724: constexpr decltype(auto) 29724: __construct_n(_Union& __u) noexcept 29724: { 29724: if constexpr (_Np == 0) 29724: return &__u._M_first; 29724: else if constexpr (_Np == 1) 29724: { 29724: std::_Construct(&__u._M_rest); 29724: return &__u._M_rest._M_first; 29724: } 29724: else if constexpr (_Np == 2) 29724: { 29724: std::_Construct(&__u._M_rest); 29724: std::_Construct(&__u._M_rest._M_rest); 29724: return &__u._M_rest._M_rest._M_first; 29724: } 29724: else 29724: { 29724: std::_Construct(&__u._M_rest); 29724: std::_Construct(&__u._M_rest._M_rest); 29724: std::_Construct(&__u._M_rest._M_rest._M_rest); 29724: return __variant::__construct_n<_Np - 3>(__u._M_rest._M_rest._M_rest); 29724: } 29724: } 29724: 29724: template 29724: struct _Traits 29724: { 29724: static constexpr bool _S_default_ctor = 29724: is_default_constructible_v::type>; 29724: static constexpr bool _S_copy_ctor = 29724: (is_copy_constructible_v<_Types> && ...); 29724: static constexpr bool _S_move_ctor = 29724: (is_move_constructible_v<_Types> && ...); 29724: static constexpr bool _S_copy_assign = 29724: _S_copy_ctor 29724: && (is_copy_assignable_v<_Types> && ...); 29724: static constexpr bool _S_move_assign = 29724: _S_move_ctor 29724: && (is_move_assignable_v<_Types> && ...); 29724: 29724: static constexpr bool _S_trivial_dtor = 29724: (is_trivially_destructible_v<_Types> && ...); 29724: static constexpr bool _S_trivial_copy_ctor = 29724: (is_trivially_copy_constructible_v<_Types> && ...); 29724: static constexpr bool _S_trivial_move_ctor = 29724: (is_trivially_move_constructible_v<_Types> && ...); 29724: static constexpr bool _S_trivial_copy_assign = 29724: _S_trivial_dtor && _S_trivial_copy_ctor 29724: && (is_trivially_copy_assignable_v<_Types> && ...); 29724: static constexpr bool _S_trivial_move_assign = 29724: _S_trivial_dtor && _S_trivial_move_ctor 29724: && (is_trivially_move_assignable_v<_Types> && ...); 29724: 29724: 29724: 29724: static constexpr bool _S_nothrow_default_ctor = 29724: is_nothrow_default_constructible_v< 29724: typename _Nth_type<0, _Types...>::type>; 29724: static constexpr bool _S_nothrow_copy_ctor = false; 29724: static constexpr bool _S_nothrow_move_ctor = 29724: (is_nothrow_move_constructible_v<_Types> && ...); 29724: static constexpr bool _S_nothrow_copy_assign = false; 29724: static constexpr bool _S_nothrow_move_assign = 29724: _S_nothrow_move_ctor 29724: && (is_nothrow_move_assignable_v<_Types> && ...); 29724: }; 29724: 29724: 29724: template 29724: union _Variadic_union 29724: { 29724: _Variadic_union() = default; 29724: 29724: template 29724: _Variadic_union(in_place_index_t<_Np>, _Args&&...) = delete; 29724: }; 29724: 29724: template 29724: union _Variadic_union<__trivially_destructible, _First, _Rest...> 29724: { 29724: constexpr _Variadic_union() : _M_rest() { } 29724: 29724: template 29724: constexpr 29724: _Variadic_union(in_place_index_t<0>, _Args&&... __args) 29724: : _M_first(in_place_index<0>, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Variadic_union(in_place_index_t<_Np>, _Args&&... __args) 29724: : _M_rest(in_place_index<_Np-1>, std::forward<_Args>(__args)...) 29724: { } 29724: # 434 "/usr/include/c++/14/variant" 3 29724: _Uninitialized<_First> _M_first; 29724: _Variadic_union<__trivially_destructible, _Rest...> _M_rest; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: template 29724: struct _Never_valueless_alt 29724: : __and_, is_trivially_copyable<_Tp>> 29724: { }; 29724: # 458 "/usr/include/c++/14/variant" 3 29724: template 29724: constexpr bool __never_valueless() 29724: { 29724: return _Traits<_Types...>::_S_move_assign 29724: && (_Never_valueless_alt<_Types>::value && ...); 29724: } 29724: 29724: 29724: template 29724: struct _Variant_storage; 29724: 29724: template 29724: using __select_index = 29724: typename __select_int::_Select_int_base::type::value_type; 29724: 29724: template 29724: struct _Variant_storage 29724: { 29724: constexpr 29724: _Variant_storage() 29724: : _M_index(static_cast<__index_type>(variant_npos)) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 29724: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 29724: _M_index{_Np} 29724: { } 29724: 29724: constexpr void 29724: _M_reset() 29724: { 29724: if (!_M_valid()) [[__unlikely__]] 29724: return; 29724: 29724: std::__do_visit([](auto&& __this_mem) mutable 29724: { 29724: std::_Destroy(std::__addressof(__this_mem)); 29724: }, __variant_cast<_Types...>(*this)); 29724: 29724: _M_index = static_cast<__index_type>(variant_npos); 29724: } 29724: 29724: 29724: ~_Variant_storage() 29724: { _M_reset(); } 29724: 29724: constexpr bool 29724: _M_valid() const noexcept 29724: { 29724: if constexpr (__variant::__never_valueless<_Types...>()) 29724: return true; 29724: return this->_M_index != __index_type(variant_npos); 29724: } 29724: 29724: _Variadic_union _M_u; 29724: using __index_type = __select_index<_Types...>; 29724: __index_type _M_index; 29724: }; 29724: 29724: template 29724: struct _Variant_storage 29724: { 29724: constexpr 29724: _Variant_storage() 29724: : _M_index(static_cast<__index_type>(variant_npos)) 29724: { } 29724: 29724: template 29724: constexpr 29724: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 29724: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 29724: _M_index{_Np} 29724: { } 29724: 29724: constexpr void 29724: _M_reset() noexcept 29724: { _M_index = static_cast<__index_type>(variant_npos); } 29724: 29724: constexpr bool 29724: _M_valid() const noexcept 29724: { 29724: if constexpr (__variant::__never_valueless<_Types...>()) 29724: return true; 29724: 29724: 29724: 29724: 29724: 29724: 29724: return this->_M_index != static_cast<__index_type>(variant_npos); 29724: } 29724: 29724: _Variadic_union _M_u; 29724: using __index_type = __select_index<_Types...>; 29724: __index_type _M_index; 29724: }; 29724: 29724: 29724: template 29724: 29724: inline void 29724: __emplace(_Variant_storage<_Triv, _Types...>& __v, _Args&&... __args) 29724: { 29724: __v._M_reset(); 29724: auto* __addr = __variant::__construct_n<_Np>(__v._M_u); 29724: std::_Construct(__addr, in_place_index<0>, 29724: std::forward<_Args>(__args)...); 29724: 29724: __v._M_index = _Np; 29724: } 29724: 29724: template 29724: using _Variant_storage_alias = 29724: _Variant_storage<_Traits<_Types...>::_S_trivial_dtor, _Types...>; 29724: 29724: 29724: 29724: 29724: template 29724: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 29724: { 29724: using _Base = _Variant_storage_alias<_Types...>; 29724: using _Base::_Base; 29724: 29724: 29724: _Copy_ctor_base(const _Copy_ctor_base& __rhs) 29724: noexcept(_Traits<_Types...>::_S_nothrow_copy_ctor) 29724: { 29724: __variant::__raw_idx_visit( 29724: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29724: { 29724: constexpr size_t __j = __rhs_index; 29724: if constexpr (__j != variant_npos) 29724: std::_Construct(std::__addressof(this->_M_u), 29724: in_place_index<__j>, __rhs_mem); 29724: }, __variant_cast<_Types...>(__rhs)); 29724: this->_M_index = __rhs._M_index; 29724: } 29724: 29724: _Copy_ctor_base(_Copy_ctor_base&&) = default; 29724: _Copy_ctor_base& operator=(const _Copy_ctor_base&) = default; 29724: _Copy_ctor_base& operator=(_Copy_ctor_base&&) = default; 29724: }; 29724: 29724: template 29724: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 29724: { 29724: using _Base = _Variant_storage_alias<_Types...>; 29724: using _Base::_Base; 29724: }; 29724: 29724: template 29724: using _Copy_ctor_alias = 29724: _Copy_ctor_base<_Traits<_Types...>::_S_trivial_copy_ctor, _Types...>; 29724: 29724: template 29724: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 29724: { 29724: using _Base = _Copy_ctor_alias<_Types...>; 29724: using _Base::_Base; 29724: 29724: 29724: _Move_ctor_base(_Move_ctor_base&& __rhs) 29724: noexcept(_Traits<_Types...>::_S_nothrow_move_ctor) 29724: { 29724: __variant::__raw_idx_visit( 29724: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29724: { 29724: constexpr size_t __j = __rhs_index; 29724: if constexpr (__j != variant_npos) 29724: std::_Construct(std::__addressof(this->_M_u), 29724: in_place_index<__j>, 29724: std::forward(__rhs_mem)); 29724: }, __variant_cast<_Types...>(std::move(__rhs))); 29724: this->_M_index = __rhs._M_index; 29724: } 29724: 29724: _Move_ctor_base(const _Move_ctor_base&) = default; 29724: _Move_ctor_base& operator=(const _Move_ctor_base&) = default; 29724: _Move_ctor_base& operator=(_Move_ctor_base&&) = default; 29724: }; 29724: 29724: template 29724: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 29724: { 29724: using _Base = _Copy_ctor_alias<_Types...>; 29724: using _Base::_Base; 29724: }; 29724: 29724: template 29724: using _Move_ctor_alias = 29724: _Move_ctor_base<_Traits<_Types...>::_S_trivial_move_ctor, _Types...>; 29724: 29724: template 29724: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 29724: { 29724: using _Base = _Move_ctor_alias<_Types...>; 29724: using _Base::_Base; 29724: 29724: 29724: _Copy_assign_base& 29724: operator=(const _Copy_assign_base& __rhs) 29724: noexcept(_Traits<_Types...>::_S_nothrow_copy_assign) 29724: { 29724: __variant::__raw_idx_visit( 29724: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29724: { 29724: constexpr size_t __j = __rhs_index; 29724: if constexpr (__j == variant_npos) 29724: this->_M_reset(); 29724: else if (this->_M_index == __j) 29724: __variant::__get<__j>(*this) = __rhs_mem; 29724: else 29724: { 29724: using _Tj = typename _Nth_type<__j, _Types...>::type; 29724: if constexpr (is_nothrow_copy_constructible_v<_Tj> 29724: || !is_nothrow_move_constructible_v<_Tj>) 29724: __variant::__emplace<__j>(*this, __rhs_mem); 29724: else 29724: { 29724: using _Variant = variant<_Types...>; 29724: _Variant& __self = __variant_cast<_Types...>(*this); 29724: __self = _Variant(in_place_index<__j>, __rhs_mem); 29724: } 29724: } 29724: }, __variant_cast<_Types...>(__rhs)); 29724: return *this; 29724: } 29724: 29724: _Copy_assign_base(const _Copy_assign_base&) = default; 29724: _Copy_assign_base(_Copy_assign_base&&) = default; 29724: _Copy_assign_base& operator=(_Copy_assign_base&&) = default; 29724: }; 29724: 29724: template 29724: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 29724: { 29724: using _Base = _Move_ctor_alias<_Types...>; 29724: using _Base::_Base; 29724: }; 29724: 29724: template 29724: using _Copy_assign_alias = 29724: _Copy_assign_base<_Traits<_Types...>::_S_trivial_copy_assign, _Types...>; 29724: 29724: template 29724: struct _Move_assign_base : _Copy_assign_alias<_Types...> 29724: { 29724: using _Base = _Copy_assign_alias<_Types...>; 29724: using _Base::_Base; 29724: 29724: 29724: _Move_assign_base& 29724: operator=(_Move_assign_base&& __rhs) 29724: noexcept(_Traits<_Types...>::_S_nothrow_move_assign) 29724: { 29724: __variant::__raw_idx_visit( 29724: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29724: { 29724: constexpr size_t __j = __rhs_index; 29724: if constexpr (__j != variant_npos) 29724: { 29724: if (this->_M_index == __j) 29724: __variant::__get<__j>(*this) = std::move(__rhs_mem); 29724: else 29724: { 29724: using _Tj = typename _Nth_type<__j, _Types...>::type; 29724: if constexpr (is_nothrow_move_constructible_v<_Tj>) 29724: __variant::__emplace<__j>(*this, std::move(__rhs_mem)); 29724: else 29724: { 29724: using _Variant = variant<_Types...>; 29724: _Variant& __self = __variant_cast<_Types...>(*this); 29724: __self.template emplace<__j>(std::move(__rhs_mem)); 29724: } 29724: } 29724: } 29724: else 29724: this->_M_reset(); 29724: }, __variant_cast<_Types...>(__rhs)); 29724: return *this; 29724: } 29724: 29724: _Move_assign_base(const _Move_assign_base&) = default; 29724: _Move_assign_base(_Move_assign_base&&) = default; 29724: _Move_assign_base& operator=(const _Move_assign_base&) = default; 29724: }; 29724: 29724: template 29724: struct _Move_assign_base : _Copy_assign_alias<_Types...> 29724: { 29724: using _Base = _Copy_assign_alias<_Types...>; 29724: using _Base::_Base; 29724: }; 29724: 29724: template 29724: using _Move_assign_alias = 29724: _Move_assign_base<_Traits<_Types...>::_S_trivial_move_assign, _Types...>; 29724: 29724: template 29724: struct _Variant_base : _Move_assign_alias<_Types...> 29724: { 29724: using _Base = _Move_assign_alias<_Types...>; 29724: 29724: constexpr 29724: _Variant_base() noexcept(_Traits<_Types...>::_S_nothrow_default_ctor) 29724: : _Variant_base(in_place_index<0>) { } 29724: 29724: template 29724: constexpr explicit 29724: _Variant_base(in_place_index_t<_Np> __i, _Args&&... __args) 29724: : _Base(__i, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: _Variant_base(const _Variant_base&) = default; 29724: _Variant_base(_Variant_base&&) = default; 29724: _Variant_base& operator=(const _Variant_base&) = default; 29724: _Variant_base& operator=(_Variant_base&&) = default; 29724: }; 29724: 29724: template 29724: inline constexpr bool __exactly_once 29724: = std::__find_uniq_type_in_pack<_Tp, _Types...>() < sizeof...(_Types); 29724: 29724: 29724: template struct _Arr { _Ti _M_x[1]; }; 29724: 29724: 29724: template 29724: struct _Build_FUN 29724: { 29724: 29724: 29724: void _S_fun() = delete; 29724: }; 29724: 29724: 29724: template 29724: struct _Build_FUN<_Ind, _Tp, _Ti, 29724: void_t{{std::declval<_Tp>()}})>> 29724: { 29724: 29724: static integral_constant _S_fun(_Ti); 29724: }; 29724: 29724: template>> 29724: struct _Build_FUNs; 29724: 29724: template 29724: struct _Build_FUNs<_Tp, variant<_Ti...>, index_sequence<_Ind...>> 29724: : _Build_FUN<_Ind, _Tp, _Ti>... 29724: { 29724: using _Build_FUN<_Ind, _Tp, _Ti>::_S_fun...; 29724: }; 29724: 29724: 29724: 29724: template 29724: using _FUN_type 29724: = decltype(_Build_FUNs<_Tp, _Variant>::_S_fun(std::declval<_Tp>())); 29724: 29724: 29724: template 29724: inline constexpr size_t 29724: __accepted_index = variant_npos; 29724: 29724: template 29724: inline constexpr size_t 29724: __accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> 29724: = _FUN_type<_Tp, _Variant>::value; 29724: 29724: template> 29724: inline constexpr bool 29724: __extra_visit_slot_needed = false; 29724: 29724: template 29724: inline constexpr bool 29724: __extra_visit_slot_needed<__variant_cookie, _Var, variant<_Types...>> 29724: = !__variant::__never_valueless<_Types...>(); 29724: 29724: template 29724: inline constexpr bool 29724: __extra_visit_slot_needed<__variant_idx_cookie, _Var, variant<_Types...>> 29724: = !__variant::__never_valueless<_Types...>(); 29724: 29724: 29724: template 29724: struct _Multi_array; 29724: 29724: 29724: template 29724: struct _Multi_array<_Tp> 29724: { 29724: template 29724: struct __untag_result 29724: : false_type 29724: { using element_type = _Tp; }; 29724: 29724: #pragma GCC diagnostic push 29724: #pragma GCC diagnostic ignored "-Wignored-qualifiers" 29724: template 29724: struct __untag_result 29724: : false_type 29724: { using element_type = void(*)(_Args...); }; 29724: #pragma GCC diagnostic pop 29724: 29724: template 29724: struct __untag_result<__variant_cookie(*)(_Args...)> 29724: : false_type 29724: { using element_type = void(*)(_Args...); }; 29724: 29724: template 29724: struct __untag_result<__variant_idx_cookie(*)(_Args...)> 29724: : false_type 29724: { using element_type = void(*)(_Args...); }; 29724: 29724: template 29724: struct __untag_result<__deduce_visit_result<_Res>(*)(_Args...)> 29724: : true_type 29724: { using element_type = _Res(*)(_Args...); }; 29724: 29724: using __result_is_deduced = __untag_result<_Tp>; 29724: 29724: constexpr const typename __untag_result<_Tp>::element_type& 29724: _M_access() const 29724: { return _M_data; } 29724: 29724: typename __untag_result<_Tp>::element_type _M_data; 29724: }; 29724: 29724: 29724: template 29724: struct _Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...> 29724: { 29724: static constexpr size_t __index = 29724: sizeof...(_Variants) - sizeof...(__rest) - 1; 29724: 29724: using _Variant = typename _Nth_type<__index, _Variants...>::type; 29724: 29724: static constexpr int __do_cookie = 29724: __extra_visit_slot_needed<_Ret, _Variant> ? 1 : 0; 29724: 29724: using _Tp = _Ret(*)(_Visitor, _Variants...); 29724: 29724: template 29724: constexpr decltype(auto) 29724: _M_access(size_t __first_index, _Args... __rest_indices) const 29724: { 29724: return _M_arr[__first_index + __do_cookie] 29724: ._M_access(__rest_indices...); 29724: } 29724: 29724: _Multi_array<_Tp, __rest...> _M_arr[__first + __do_cookie]; 29724: }; 29724: # 949 "/usr/include/c++/14/variant" 3 29724: template 29724: struct __gen_vtable_impl; 29724: # 959 "/usr/include/c++/14/variant" 3 29724: template 29724: struct __gen_vtable_impl< 29724: _Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>, 29724: std::index_sequence<__indices...>> 29724: { 29724: using _Next = 29724: remove_reference_t::type>; 29724: using _Array_type = 29724: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 29724: __dimensions...>; 29724: 29724: static constexpr _Array_type 29724: _S_apply() 29724: { 29724: _Array_type __vtable{}; 29724: _S_apply_all_alts( 29724: __vtable, make_index_sequence>()); 29724: return __vtable; 29724: } 29724: 29724: template 29724: static constexpr void 29724: _S_apply_all_alts(_Array_type& __vtable, 29724: std::index_sequence<__var_indices...>) 29724: { 29724: if constexpr (__extra_visit_slot_needed<_Result_type, _Next>) 29724: (_S_apply_single_alt( 29724: __vtable._M_arr[__var_indices + 1], 29724: &(__vtable._M_arr[0])), ...); 29724: else 29724: (_S_apply_single_alt( 29724: __vtable._M_arr[__var_indices]), ...); 29724: } 29724: 29724: template 29724: static constexpr void 29724: _S_apply_single_alt(_Tp& __element, _Tp* __cookie_element = nullptr) 29724: { 29724: if constexpr (__do_cookie) 29724: { 29724: __element = __gen_vtable_impl< 29724: _Tp, 29724: std::index_sequence<__indices..., __index>>::_S_apply(); 29724: *__cookie_element = __gen_vtable_impl< 29724: _Tp, 29724: std::index_sequence<__indices..., variant_npos>>::_S_apply(); 29724: } 29724: else 29724: { 29724: auto __tmp_element = __gen_vtable_impl< 29724: remove_reference_t, 29724: std::index_sequence<__indices..., __index>>::_S_apply(); 29724: static_assert(is_same_v<_Tp, decltype(__tmp_element)>, 29724: "std::visit requires the visitor to have the same " 29724: "return type for all alternatives of a variant"); 29724: __element = __tmp_element; 29724: } 29724: } 29724: }; 29724: 29724: 29724: 29724: 29724: template 29724: struct __gen_vtable_impl< 29724: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>, 29724: std::index_sequence<__indices...>> 29724: { 29724: using _Array_type = 29724: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>; 29724: 29724: template 29724: static constexpr decltype(auto) 29724: __element_by_index_or_cookie(_Variant&& __var) noexcept 29724: { 29724: if constexpr (__index != variant_npos) 29724: return __variant::__get<__index>(std::forward<_Variant>(__var)); 29724: else 29724: return __variant_cookie{}; 29724: } 29724: 29724: static constexpr decltype(auto) 29724: __visit_invoke(_Visitor&& __visitor, _Variants... __vars) 29724: { 29724: if constexpr (is_same_v<_Result_type, __variant_idx_cookie>) 29724: 29724: 29724: std::__invoke(std::forward<_Visitor>(__visitor), 29724: __element_by_index_or_cookie<__indices>( 29724: std::forward<_Variants>(__vars))..., 29724: integral_constant()...); 29724: else if constexpr (is_same_v<_Result_type, __variant_cookie>) 29724: 29724: std::__invoke(std::forward<_Visitor>(__visitor), 29724: __element_by_index_or_cookie<__indices>( 29724: std::forward<_Variants>(__vars))...); 29724: else if constexpr (_Array_type::__result_is_deduced::value) 29724: 29724: return std::__invoke(std::forward<_Visitor>(__visitor), 29724: __element_by_index_or_cookie<__indices>( 29724: std::forward<_Variants>(__vars))...); 29724: else 29724: return std::__invoke_r<_Result_type>( 29724: std::forward<_Visitor>(__visitor), 29724: __variant::__get<__indices>(std::forward<_Variants>(__vars))...); 29724: } 29724: 29724: static constexpr auto 29724: _S_apply() 29724: { 29724: if constexpr (_Array_type::__result_is_deduced::value) 29724: { 29724: constexpr bool __visit_ret_type_mismatch = 29724: !is_same_v(), 29724: std::declval<_Variants>()...))>; 29724: if constexpr (__visit_ret_type_mismatch) 29724: { 29724: struct __cannot_match {}; 29724: return __cannot_match{}; 29724: } 29724: else 29724: return _Array_type{&__visit_invoke}; 29724: } 29724: else 29724: return _Array_type{&__visit_invoke}; 29724: } 29724: }; 29724: 29724: template 29724: struct __gen_vtable 29724: { 29724: using _Array_type = 29724: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 29724: variant_size_v>...>; 29724: 29724: static constexpr _Array_type _S_vtable 29724: = __gen_vtable_impl<_Array_type, std::index_sequence<>>::_S_apply(); 29724: }; 29724: 29724: template 29724: struct _Base_dedup : public _Tp { }; 29724: 29724: template 29724: struct _Variant_hash_base; 29724: 29724: template 29724: struct _Variant_hash_base, 29724: std::index_sequence<__indices...>> 29724: : _Base_dedup<__indices, __poison_hash>>... { }; 29724: 29724: 29724: template())), 29724: typename _Tp = variant_alternative_t<_Np, remove_reference_t<_AsV>>> 29724: using __get_t 29724: = __conditional_t, _Tp&, _Tp&&>; 29724: 29724: 29724: template 29724: using __visit_result_t 29724: = invoke_result_t<_Visitor, __get_t<0, _Variants>...>; 29724: 29724: template 29724: constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); 29724: 29724: template 29724: constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) 29724: { 29724: return __same_types< 29724: invoke_result_t<_Visitor, __get_t<_Idxs, _Variant>>... 29724: >; 29724: } 29724: 29724: } 29724: } 29724: 29724: template 29724: constexpr bool 29724: holds_alternative(const variant<_Types...>& __v) noexcept 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: return __v.index() == std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: } 29724: 29724: template 29724: constexpr _Tp& 29724: get(variant<_Types...>& __v) 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get<__n>(__v); 29724: } 29724: 29724: template 29724: constexpr _Tp&& 29724: get(variant<_Types...>&& __v) 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get<__n>(std::move(__v)); 29724: } 29724: 29724: template 29724: constexpr const _Tp& 29724: get(const variant<_Types...>& __v) 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get<__n>(__v); 29724: } 29724: 29724: template 29724: constexpr const _Tp&& 29724: get(const variant<_Types...>&& __v) 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get<__n>(std::move(__v)); 29724: } 29724: 29724: template 29724: constexpr add_pointer_t>> 29724: get_if(variant<_Types...>* __ptr) noexcept 29724: { 29724: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 29724: if (__ptr && __ptr->index() == _Np) 29724: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 29724: return nullptr; 29724: } 29724: 29724: template 29724: constexpr 29724: add_pointer_t>> 29724: get_if(const variant<_Types...>* __ptr) noexcept 29724: { 29724: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 29724: if (__ptr && __ptr->index() == _Np) 29724: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 29724: return nullptr; 29724: } 29724: 29724: template 29724: constexpr add_pointer_t<_Tp> 29724: get_if(variant<_Types...>* __ptr) noexcept 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get_if<__n>(__ptr); 29724: } 29724: 29724: template 29724: constexpr add_pointer_t 29724: get_if(const variant<_Types...>* __ptr) noexcept 29724: { 29724: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29724: "T must occur exactly once in alternatives"); 29724: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 29724: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: return std::get_if<__n>(__ptr); 29724: } 29724: 29724: struct monostate { }; 29724: # 1264 "/usr/include/c++/14/variant" 3 29724: template constexpr bool operator <(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem < __rhs_mem; } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); }, __rhs); return __ret; } 29724: template constexpr bool operator <=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem <= __rhs_mem; } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); }, __rhs); return __ret; } 29724: template constexpr bool operator ==(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem == __rhs_mem; } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); }, __rhs); return __ret; } 29724: template constexpr bool operator !=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem != __rhs_mem; } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); }, __rhs); return __ret; } 29724: template constexpr bool operator >=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem >= __rhs_mem; } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); }, __rhs); return __ret; } 29724: template constexpr bool operator >(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem > __rhs_mem; } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); }, __rhs); return __ret; } 29724: 29724: 29724: 29724: constexpr bool operator==(monostate, monostate) noexcept { return true; } 29724: # 1305 "/usr/include/c++/14/variant" 3 29724: constexpr bool operator!=(monostate, monostate) noexcept { return false; } 29724: constexpr bool operator<(monostate, monostate) noexcept { return false; } 29724: constexpr bool operator>(monostate, monostate) noexcept { return false; } 29724: constexpr bool operator<=(monostate, monostate) noexcept { return true; } 29724: constexpr bool operator>=(monostate, monostate) noexcept { return true; } 29724: 29724: 29724: template 29724: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 29724: visit(_Visitor&&, _Variants&&...); 29724: 29724: template 29724: 29724: inline enable_if_t<(is_move_constructible_v<_Types> && ...) 29724: && (is_swappable_v<_Types> && ...)> 29724: swap(variant<_Types...>& __lhs, variant<_Types...>& __rhs) 29724: noexcept(noexcept(__lhs.swap(__rhs))) 29724: { __lhs.swap(__rhs); } 29724: 29724: template 29724: enable_if_t && ...) 29724: && (is_swappable_v<_Types> && ...))> 29724: swap(variant<_Types...>&, variant<_Types...>&) = delete; 29724: 29724: class bad_variant_access : public exception 29724: { 29724: public: 29724: bad_variant_access() noexcept { } 29724: 29724: const char* what() const noexcept override 29724: { return _M_reason; } 29724: 29724: private: 29724: bad_variant_access(const char* __reason) noexcept : _M_reason(__reason) { } 29724: 29724: 29724: const char* _M_reason = "bad variant access"; 29724: 29724: friend void __throw_bad_variant_access(const char* __what); 29724: }; 29724: 29724: 29724: inline void 29724: __throw_bad_variant_access(const char* __what) 29724: { (throw (bad_variant_access(__what))); } 29724: 29724: inline void 29724: __throw_bad_variant_access(bool __valueless) 29724: { 29724: if (__valueless) [[__unlikely__]] 29724: __throw_bad_variant_access("std::get: variant is valueless"); 29724: else 29724: __throw_bad_variant_access("std::get: wrong index for variant"); 29724: } 29724: 29724: template 29724: class variant 29724: : private __detail::__variant::_Variant_base<_Types...>, 29724: private _Enable_copy_move< 29724: __detail::__variant::_Traits<_Types...>::_S_copy_ctor, 29724: __detail::__variant::_Traits<_Types...>::_S_copy_assign, 29724: __detail::__variant::_Traits<_Types...>::_S_move_ctor, 29724: __detail::__variant::_Traits<_Types...>::_S_move_assign, 29724: variant<_Types...>> 29724: { 29724: private: 29724: template 29724: friend decltype(auto) 29724: __variant_cast(_Tp&&); 29724: 29724: static_assert(sizeof...(_Types) > 0, 29724: "variant must have at least one alternative"); 29724: 29724: 29724: 29724: 29724: static_assert((std::is_object_v<_Types> && ...), 29724: "variant alternatives must be object types"); 29724: 29724: 29724: using _Base = __detail::__variant::_Variant_base<_Types...>; 29724: 29724: template 29724: static constexpr bool __not_self 29724: = !is_same_v<__remove_cvref_t<_Tp>, variant>; 29724: 29724: template 29724: static constexpr bool 29724: __exactly_once = __detail::__variant::__exactly_once<_Tp, _Types...>; 29724: 29724: template 29724: static constexpr size_t __accepted_index 29724: = __detail::__variant::__accepted_index<_Tp, variant>; 29724: 29724: template> 29724: using __to_type = typename _Nth_type<_Np, _Types...>::type; 29724: 29724: template>> 29724: using __accepted_type = __to_type<__accepted_index<_Tp>>; 29724: 29724: template 29724: static constexpr size_t __index_of 29724: = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29724: 29724: using _Traits = __detail::__variant::_Traits<_Types...>; 29724: 29724: template 29724: struct __is_in_place_tag : false_type { }; 29724: template 29724: struct __is_in_place_tag> : true_type { }; 29724: template 29724: struct __is_in_place_tag> : true_type { }; 29724: 29724: template 29724: static constexpr bool __not_in_place_tag 29724: = !__is_in_place_type_v<__remove_cvref_t<_Tp>> 29724: && !__is_in_place_index_v<__remove_cvref_t<_Tp>>; 29724: 29724: public: 29724: 29724: 29724: 29724: template, 29724: typename = enable_if_t>> 29724: constexpr 29724: variant() noexcept(is_nothrow_default_constructible_v<__to_type<0>>) 29724: { } 29724: 29724: 29724: variant(const variant& __rhs) = default; 29724: variant(variant&&) = default; 29724: variant& operator=(const variant&) = default; 29724: variant& operator=(variant&&) = default; 29724: ~variant() = default; 29724: 29724: template, 29724: typename = enable_if_t<__not_in_place_tag<_Tp>>, 29724: typename _Tj = __accepted_type<_Tp&&>, 29724: typename = enable_if_t<__exactly_once<_Tj> 29724: && is_constructible_v<_Tj, _Tp>>> 29724: constexpr 29724: variant(_Tp&& __t) 29724: noexcept(is_nothrow_constructible_v<_Tj, _Tp>) 29724: : variant(in_place_index<__accepted_index<_Tp>>, 29724: std::forward<_Tp>(__t)) 29724: { } 29724: 29724: template 29724: && is_constructible_v<_Tp, _Args...>>> 29724: constexpr explicit 29724: variant(in_place_type_t<_Tp>, _Args&&... __args) 29724: : variant(in_place_index<__index_of<_Tp>>, 29724: std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: && is_constructible_v<_Tp, 29724: initializer_list<_Up>&, _Args...>>> 29724: constexpr explicit 29724: variant(in_place_type_t<_Tp>, initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : variant(in_place_index<__index_of<_Tp>>, __il, 29724: std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template, 29724: typename = enable_if_t>> 29724: constexpr explicit 29724: variant(in_place_index_t<_Np>, _Args&&... __args) 29724: : _Base(in_place_index<_Np>, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template, 29724: typename = enable_if_t&, 29724: _Args...>>> 29724: constexpr explicit 29724: variant(in_place_index_t<_Np>, initializer_list<_Up> __il, 29724: _Args&&... __args) 29724: : _Base(in_place_index<_Np>, __il, std::forward<_Args>(__args)...) 29724: { } 29724: 29724: template 29724: 29724: enable_if_t<__exactly_once<__accepted_type<_Tp&&>> 29724: && is_constructible_v<__accepted_type<_Tp&&>, _Tp> 29724: && is_assignable_v<__accepted_type<_Tp&&>&, _Tp>, 29724: variant&> 29724: operator=(_Tp&& __rhs) 29724: noexcept(is_nothrow_assignable_v<__accepted_type<_Tp&&>&, _Tp> 29724: && is_nothrow_constructible_v<__accepted_type<_Tp&&>, _Tp>) 29724: { 29724: constexpr auto __index = __accepted_index<_Tp>; 29724: if (index() == __index) 29724: std::get<__index>(*this) = std::forward<_Tp>(__rhs); 29724: else 29724: { 29724: using _Tj = __accepted_type<_Tp&&>; 29724: if constexpr (is_nothrow_constructible_v<_Tj, _Tp> 29724: || !is_nothrow_move_constructible_v<_Tj>) 29724: this->emplace<__index>(std::forward<_Tp>(__rhs)); 29724: else 29724: 29724: 29724: this->emplace<__index>(_Tj(std::forward<_Tp>(__rhs))); 29724: } 29724: return *this; 29724: } 29724: 29724: template 29724: 29724: enable_if_t && __exactly_once<_Tp>, 29724: _Tp&> 29724: emplace(_Args&&... __args) 29724: { 29724: constexpr size_t __index = __index_of<_Tp>; 29724: return this->emplace<__index>(std::forward<_Args>(__args)...); 29724: } 29724: 29724: template 29724: 29724: enable_if_t&, _Args...> 29724: && __exactly_once<_Tp>, 29724: _Tp&> 29724: emplace(initializer_list<_Up> __il, _Args&&... __args) 29724: { 29724: constexpr size_t __index = __index_of<_Tp>; 29724: return this->emplace<__index>(__il, std::forward<_Args>(__args)...); 29724: } 29724: 29724: template 29724: 29724: enable_if_t, _Args...>, 29724: __to_type<_Np>&> 29724: emplace(_Args&&... __args) 29724: { 29724: namespace __variant = std::__detail::__variant; 29724: using type = typename _Nth_type<_Np, _Types...>::type; 29724: 29724: 29724: if constexpr (is_nothrow_constructible_v) 29724: { 29724: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 29724: } 29724: else if constexpr (is_scalar_v) 29724: { 29724: 29724: const type __tmp(std::forward<_Args>(__args)...); 29724: 29724: __variant::__emplace<_Np>(*this, __tmp); 29724: } 29724: else if constexpr (__variant::_Never_valueless_alt() 29724: && _Traits::_S_move_assign) 29724: { 29724: 29724: variant __tmp(in_place_index<_Np>, 29724: std::forward<_Args>(__args)...); 29724: 29724: *this = std::move(__tmp); 29724: } 29724: else 29724: { 29724: 29724: 29724: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 29724: } 29724: return std::get<_Np>(*this); 29724: } 29724: 29724: template 29724: 29724: enable_if_t, 29724: initializer_list<_Up>&, _Args...>, 29724: __to_type<_Np>&> 29724: emplace(initializer_list<_Up> __il, _Args&&... __args) 29724: { 29724: namespace __variant = std::__detail::__variant; 29724: using type = typename _Nth_type<_Np, _Types...>::type; 29724: 29724: 29724: if constexpr (is_nothrow_constructible_v&, 29724: _Args...>) 29724: { 29724: __variant::__emplace<_Np>(*this, __il, 29724: std::forward<_Args>(__args)...); 29724: } 29724: else if constexpr (__variant::_Never_valueless_alt() 29724: && _Traits::_S_move_assign) 29724: { 29724: 29724: variant __tmp(in_place_index<_Np>, __il, 29724: std::forward<_Args>(__args)...); 29724: 29724: *this = std::move(__tmp); 29724: } 29724: else 29724: { 29724: 29724: 29724: __variant::__emplace<_Np>(*this, __il, 29724: std::forward<_Args>(__args)...); 29724: } 29724: return std::get<_Np>(*this); 29724: } 29724: 29724: template 29724: enable_if_t emplace(_Args&&...) = delete; 29724: 29724: template 29724: enable_if_t> emplace(_Args&&...) = delete; 29724: 29724: constexpr bool valueless_by_exception() const noexcept 29724: { return !this->_M_valid(); } 29724: 29724: constexpr size_t index() const noexcept 29724: { 29724: using __index_type = typename _Base::__index_type; 29724: if constexpr (__detail::__variant::__never_valueless<_Types...>()) 29724: return this->_M_index; 29724: else if constexpr (sizeof...(_Types) <= __index_type(-1) / 2) 29724: return make_signed_t<__index_type>(this->_M_index); 29724: else 29724: return size_t(__index_type(this->_M_index + 1)) - 1; 29724: } 29724: 29724: 29724: void 29724: swap(variant& __rhs) 29724: noexcept((__is_nothrow_swappable<_Types>::value && ...) 29724: && is_nothrow_move_constructible_v) 29724: { 29724: static_assert((is_move_constructible_v<_Types> && ...)); 29724: 29724: 29724: if (__rhs.valueless_by_exception()) [[__unlikely__]] 29724: { 29724: if (!this->valueless_by_exception()) [[__likely__]] 29724: __rhs.swap(*this); 29724: return; 29724: } 29724: 29724: namespace __variant = __detail::__variant; 29724: 29724: __variant::__raw_idx_visit( 29724: [this, &__rhs](auto&& __rhs_mem, auto __rhs_index) mutable 29724: { 29724: constexpr size_t __j = __rhs_index; 29724: if constexpr (__j != variant_npos) 29724: { 29724: if (this->index() == __j) 29724: { 29724: using std::swap; 29724: swap(std::get<__j>(*this), __rhs_mem); 29724: } 29724: else 29724: { 29724: auto __tmp(std::move(__rhs_mem)); 29724: 29724: if constexpr (_Traits::_S_trivial_move_assign) 29724: __rhs = std::move(*this); 29724: else 29724: __variant::__raw_idx_visit( 29724: [&__rhs](auto&& __this_mem, auto __this_index) mutable 29724: { 29724: constexpr size_t __k = __this_index; 29724: if constexpr (__k != variant_npos) 29724: __variant::__emplace<__k>(__rhs, 29724: std::move(__this_mem)); 29724: }, *this); 29724: 29724: __variant::__emplace<__j>(*this, std::move(__tmp)); 29724: } 29724: } 29724: }, __rhs); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: private: 29724: template 29724: friend constexpr decltype(auto) 29724: __detail::__variant::__get(_Vp&& __v) noexcept; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: template friend constexpr bool operator <(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: template friend constexpr bool operator <=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: template friend constexpr bool operator ==(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: template friend constexpr bool operator !=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: template friend constexpr bool operator >=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: template friend constexpr bool operator >(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29724: 29724: 29724: }; 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>>& 29724: get(variant<_Types...>& __v) 29724: { 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: if (__v.index() != _Np) 29724: __throw_bad_variant_access(__v.valueless_by_exception()); 29724: return __detail::__variant::__get<_Np>(__v); 29724: } 29724: 29724: template 29724: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 29724: get(variant<_Types...>&& __v) 29724: { 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: if (__v.index() != _Np) 29724: __throw_bad_variant_access(__v.valueless_by_exception()); 29724: return __detail::__variant::__get<_Np>(std::move(__v)); 29724: } 29724: 29724: template 29724: constexpr const variant_alternative_t<_Np, variant<_Types...>>& 29724: get(const variant<_Types...>& __v) 29724: { 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: if (__v.index() != _Np) 29724: __throw_bad_variant_access(__v.valueless_by_exception()); 29724: return __detail::__variant::__get<_Np>(__v); 29724: } 29724: 29724: template 29724: constexpr const variant_alternative_t<_Np, variant<_Types...>>&& 29724: get(const variant<_Types...>&& __v) 29724: { 29724: static_assert(_Np < sizeof...(_Types), 29724: "The index must be in [0, number of alternatives)"); 29724: if (__v.index() != _Np) 29724: __throw_bad_variant_access(__v.valueless_by_exception()); 29724: return __detail::__variant::__get<_Np>(std::move(__v)); 29724: } 29724: 29724: 29724: template 29724: constexpr decltype(auto) 29724: __do_visit(_Visitor&& __visitor, _Variants&&... __variants) 29724: { 29724: 29724: if constexpr (sizeof...(_Variants) == 0) 29724: { 29724: if constexpr (is_void_v<_Result_type>) 29724: return (void) std::forward<_Visitor>(__visitor)(); 29724: else 29724: return std::forward<_Visitor>(__visitor)(); 29724: } 29724: else 29724: { 29724: constexpr size_t __max = 11; 29724: 29724: 29724: using _V0 = typename _Nth_type<0, _Variants...>::type; 29724: 29724: constexpr auto __n = variant_size_v>; 29724: 29724: if constexpr (sizeof...(_Variants) > 1 || __n > __max) 29724: { 29724: 29724: constexpr auto& __vtable = __detail::__variant::__gen_vtable< 29724: _Result_type, _Visitor&&, _Variants&&...>::_S_vtable; 29724: 29724: auto __func_ptr = __vtable._M_access(__variants.index()...); 29724: return (*__func_ptr)(std::forward<_Visitor>(__visitor), 29724: std::forward<_Variants>(__variants)...); 29724: } 29724: else 29724: { 29724: 29724: _V0& __v0 29724: = [](_V0& __v, ...) -> _V0& { return __v; }(__variants...); 29724: 29724: using __detail::__variant::_Multi_array; 29724: using __detail::__variant::__gen_vtable_impl; 29724: using _Ma = _Multi_array<_Result_type (*)(_Visitor&&, _V0&&)>; 29724: # 1817 "/usr/include/c++/14/variant" 3 29724: switch (__v0.index()) 29724: { 29724: case 0: { if constexpr (0 < __n) { return __gen_vtable_impl<_Ma, index_sequence<0>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 1: { if constexpr (1 < __n) { return __gen_vtable_impl<_Ma, index_sequence<1>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 2: { if constexpr (2 < __n) { return __gen_vtable_impl<_Ma, index_sequence<2>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 3: { if constexpr (3 < __n) { return __gen_vtable_impl<_Ma, index_sequence<3>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 4: { if constexpr (4 < __n) { return __gen_vtable_impl<_Ma, index_sequence<4>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 5: { if constexpr (5 < __n) { return __gen_vtable_impl<_Ma, index_sequence<5>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 6: { if constexpr (6 < __n) { return __gen_vtable_impl<_Ma, index_sequence<6>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 7: { if constexpr (7 < __n) { return __gen_vtable_impl<_Ma, index_sequence<7>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 8: { if constexpr (8 < __n) { return __gen_vtable_impl<_Ma, index_sequence<8>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 9: { if constexpr (9 < __n) { return __gen_vtable_impl<_Ma, index_sequence<9>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case 10: { if constexpr (10 < __n) { return __gen_vtable_impl<_Ma, index_sequence<10>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29724: case variant_npos: 29724: using __detail::__variant::__variant_idx_cookie; 29724: using __detail::__variant::__variant_cookie; 29724: if constexpr (is_same_v<_Result_type, __variant_idx_cookie> 29724: || is_same_v<_Result_type, __variant_cookie>) 29724: { 29724: using _Npos = index_sequence; 29724: return __gen_vtable_impl<_Ma, _Npos>:: 29724: __visit_invoke(std::forward<_Visitor>(__visitor), 29724: std::forward<_V0>(__v0)); 29724: } 29724: else 29724: __builtin_unreachable(); 29724: default: 29724: __builtin_unreachable(); 29724: } 29724: 29724: 29724: } 29724: } 29724: } 29724: 29724: 29724: template 29724: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 29724: visit(_Visitor&& __visitor, _Variants&&... __variants) 29724: { 29724: namespace __variant = std::__detail::__variant; 29724: 29724: if ((__variant::__as(__variants).valueless_by_exception() || ...)) 29724: __throw_bad_variant_access("std::visit: variant is valueless"); 29724: 29724: using _Result_type 29724: = __detail::__variant::__visit_result_t<_Visitor, _Variants...>; 29724: 29724: using _Tag = __detail::__variant::__deduce_visit_result<_Result_type>; 29724: 29724: if constexpr (sizeof...(_Variants) == 1) 29724: { 29724: using _Vp = decltype(__variant::__as(std::declval<_Variants>()...)); 29724: 29724: constexpr bool __visit_rettypes_match = __detail::__variant:: 29724: __check_visitor_results<_Visitor, _Vp>( 29724: make_index_sequence>>()); 29724: if constexpr (!__visit_rettypes_match) 29724: { 29724: static_assert(__visit_rettypes_match, 29724: "std::visit requires the visitor to have the same " 29724: "return type for all alternatives of a variant"); 29724: return; 29724: } 29724: else 29724: return std::__do_visit<_Tag>( 29724: std::forward<_Visitor>(__visitor), 29724: static_cast<_Vp>(__variants)...); 29724: } 29724: else 29724: return std::__do_visit<_Tag>( 29724: std::forward<_Visitor>(__visitor), 29724: __variant::__as(std::forward<_Variants>(__variants))...); 29724: } 29724: # 1908 "/usr/include/c++/14/variant" 3 29724: template 29724: struct __variant_hash_call_base_impl 29724: { 29724: size_t 29724: operator()(const variant<_Types...>& __t) const 29724: noexcept((is_nothrow_invocable_v>, _Types> && ...)) 29724: { 29724: size_t __ret; 29724: __detail::__variant::__raw_visit( 29724: [&__t, &__ret](auto&& __t_mem) mutable 29724: { 29724: using _Type = __remove_cvref_t; 29724: if constexpr (!is_same_v<_Type, 29724: __detail::__variant::__variant_cookie>) 29724: __ret = std::hash{}(__t.index()) 29724: + std::hash<_Type>{}(__t_mem); 29724: else 29724: __ret = std::hash{}(__t.index()); 29724: }, __t); 29724: return __ret; 29724: } 29724: }; 29724: 29724: template 29724: struct __variant_hash_call_base_impl {}; 29724: 29724: template 29724: using __variant_hash_call_base = 29724: __variant_hash_call_base_impl<(__poison_hash>:: 29724: __enable_hash_call &&...), _Types...>; 29724: 29724: 29724: template 29724: struct hash> 29724: : private __detail::__variant::_Variant_hash_base< 29724: variant<_Types...>, std::index_sequence_for<_Types...>>, 29724: public __variant_hash_call_base<_Types...> 29724: { 29724: using result_type [[__deprecated__]] = size_t; 29724: using argument_type [[__deprecated__]] = variant<_Types...>; 29724: }; 29724: 29724: template<> 29724: struct hash 29724: { 29724: using result_type [[__deprecated__]] = size_t; 29724: using argument_type [[__deprecated__]] = monostate; 29724: 29724: size_t 29724: operator()(const monostate&) const noexcept 29724: { 29724: constexpr size_t __magic_monostate_hash = -7777; 29724: return __magic_monostate_hash; 29724: } 29724: }; 29724: 29724: template 29724: struct __is_fast_hash>> 29724: : bool_constant<(__is_fast_hash<_Types>::value && ...)> 29724: { }; 29724: 29724: 29724: } 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 2 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class Logger; 29724: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: class MergeOperator : public Customizable { 29724: public: 29724: virtual ~MergeOperator() {} 29724: static const char* Type() { return "MergeOperator"; } 29724: static Status CreateFromString(const ConfigOptions& opts, 29724: const std::string& id, 29724: std::shared_ptr* result); 29724: # 79 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool FullMerge(const Slice& , const Slice* , 29724: const std::deque& , 29724: std::string* , Logger* ) const { 29724: 29724: 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29724: (static_cast ( 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: false 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: "false" 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: ; 29724: return false; 29724: } 29724: 29724: struct MergeOperationInput { 29724: 29724: explicit MergeOperationInput(const Slice& _key, 29724: const Slice* _existing_value, 29724: const std::vector& _operand_list, 29724: Logger* _logger) 29724: : key(_key), 29724: existing_value(_existing_value), 29724: operand_list(_operand_list), 29724: logger(_logger) {} 29724: 29724: 29724: const Slice& key; 29724: 29724: 29724: const Slice* existing_value; 29724: 29724: const std::vector& operand_list; 29724: 29724: 29724: Logger* logger; 29724: }; 29724: 29724: enum class OpFailureScope { 29724: kDefault, 29724: kTryMerge, 29724: kMustMerge, 29724: kOpFailureScopeMax, 29724: }; 29724: 29724: struct MergeOperationOutput { 29724: explicit MergeOperationOutput(std::string& _new_value, 29724: Slice& _existing_operand) 29724: : new_value(_new_value), existing_operand(_existing_operand) {} 29724: 29724: 29724: std::string& new_value; 29724: 29724: 29724: 29724: Slice& existing_operand; 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 29724: }; 29724: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool FullMergeV2(const MergeOperationInput& merge_in, 29724: MergeOperationOutput* merge_out) const; 29724: 29724: struct MergeOperationInputV3 { 29724: using ExistingValue = std::variant; 29724: using OperandList = std::vector; 29724: 29724: explicit MergeOperationInputV3(const Slice& _key, 29724: ExistingValue&& _existing_value, 29724: const OperandList& _operand_list, 29724: Logger* _logger) 29724: : key(_key), 29724: existing_value(std::move(_existing_value)), 29724: operand_list(_operand_list), 29724: logger(_logger) {} 29724: 29724: 29724: const Slice& key; 29724: 29724: 29724: 29724: ExistingValue existing_value; 29724: 29724: const OperandList& operand_list; 29724: 29724: Logger* logger; 29724: }; 29724: 29724: struct MergeOperationOutputV3 { 29724: using NewColumns = std::vector>; 29724: using NewValue = std::variant; 29724: 29724: 29724: 29724: 29724: NewValue new_value; 29724: 29724: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 29724: }; 29724: # 209 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool FullMergeV3(const MergeOperationInputV3& merge_in, 29724: MergeOperationOutputV3* merge_out) const; 29724: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool PartialMerge(const Slice& , const Slice& , 29724: const Slice& , 29724: std::string* , 29724: Logger* ) const { 29724: return false; 29724: } 29724: # 271 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool PartialMergeMulti(const Slice& key, 29724: const std::deque& operand_list, 29724: std::string* new_value, Logger* logger) const; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: const char* Name() const override = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool AllowSingleOperand() const { return false; } 29724: # 300 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool ShouldMerge(const std::vector& ) const { 29724: return false; 29724: } 29724: }; 29724: 29724: 29724: class AssociativeMergeOperator : public MergeOperator { 29724: public: 29724: ~AssociativeMergeOperator() override {} 29724: # 323 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29724: virtual bool Merge(const Slice& key, const Slice* existing_value, 29724: const Slice& value, std::string* new_value, 29724: Logger* logger) const = 0; 29724: 29724: private: 29724: 29724: bool FullMergeV2(const MergeOperationInput& merge_in, 29724: MergeOperationOutput* merge_out) const override; 29724: 29724: bool PartialMerge(const Slice& key, const Slice& left_operand, 29724: const Slice& right_operand, std::string* new_value, 29724: Logger* logger) const override; 29724: }; 29724: 29724: } 29724: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Comparator; 29724: class Iterator; 29724: class Logger; 29724: class MergeOperator; 29724: class Statistics; 29724: class SystemClock; 29724: class BlobFetcher; 29724: class PrefetchBufferCollection; 29724: struct CompactionIterationStats; 29724: 29724: class MergeHelper { 29724: public: 29724: MergeHelper(Env* env, const Comparator* user_comparator, 29724: const MergeOperator* user_merge_operator, 29724: const CompactionFilter* compaction_filter, Logger* logger, 29724: bool assert_valid_internal_key, SequenceNumber latest_snapshot, 29724: const SnapshotChecker* snapshot_checker = nullptr, int level = 0, 29724: Statistics* stats = nullptr, 29724: const std::atomic* shutting_down = nullptr); 29724: # 55 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: struct NoBaseValueTag {}; 29724: static constexpr NoBaseValueTag kNoBaseValue{}; 29724: 29724: struct PlainBaseValueTag {}; 29724: static constexpr PlainBaseValueTag kPlainBaseValue{}; 29724: 29724: struct WideBaseValueTag {}; 29724: static constexpr WideBaseValueTag kWideBaseValue{}; 29724: 29724: template 29724: static Status TimedFullMerge(const MergeOperator* merge_operator, 29724: const Slice& key, NoBaseValueTag, 29724: const std::vector& operands, 29724: Logger* logger, Statistics* statistics, 29724: SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, 29724: ResultTs... results) { 29724: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 29724: 29724: return TimedFullMergeImpl( 29724: merge_operator, key, std::move(existing_value), operands, logger, 29724: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29724: } 29724: 29724: template 29724: static Status TimedFullMerge( 29724: const MergeOperator* merge_operator, const Slice& key, PlainBaseValueTag, 29724: const Slice& value, const std::vector& operands, Logger* logger, 29724: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 29724: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(value); 29724: 29724: return TimedFullMergeImpl( 29724: merge_operator, key, std::move(existing_value), operands, logger, 29724: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29724: } 29724: 29724: template 29724: static Status TimedFullMerge( 29724: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 29724: const Slice& entity, const std::vector& operands, Logger* logger, 29724: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 29724: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 29724: 29724: Slice entity_copy(entity); 29724: WideColumns existing_columns; 29724: 29724: const Status s = 29724: WideColumnSerialization::Deserialize(entity_copy, existing_columns); 29724: if (!s.ok()) { 29724: return s; 29724: } 29724: 29724: existing_value = std::move(existing_columns); 29724: 29724: return TimedFullMergeImpl( 29724: merge_operator, key, std::move(existing_value), operands, logger, 29724: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29724: } 29724: 29724: template 29724: static Status TimedFullMerge(const MergeOperator* merge_operator, 29724: const Slice& key, WideBaseValueTag, 29724: const WideColumns& columns, 29724: const std::vector& operands, 29724: Logger* logger, Statistics* statistics, 29724: SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, 29724: ResultTs... results) { 29724: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(columns); 29724: 29724: return TimedFullMergeImpl( 29724: merge_operator, key, std::move(existing_value), operands, logger, 29724: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29724: } 29724: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: Status MergeUntil(InternalIterator* iter, 29724: CompactionRangeDelAggregator* range_del_agg, 29724: const SequenceNumber stop_before, const bool at_bottom, 29724: const bool allow_data_in_errors, 29724: const BlobFetcher* blob_fetcher, 29724: const std::string* const full_history_ts_low, 29724: PrefetchBufferCollection* prefetch_buffers, 29724: CompactionIterationStats* c_iter_stats); 29724: 29724: 29724: 29724: 29724: 29724: 29724: CompactionFilter::Decision FilterMerge(const Slice& user_key, 29724: const Slice& value_slice); 29724: # 210 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: const std::deque& keys() const { return keys_; } 29724: const std::vector& values() const { 29724: return merge_context_.GetOperands(); 29724: } 29724: uint64_t TotalFilterTime() const { return total_filter_time_; } 29724: bool HasOperator() const { return user_merge_operator_ != nullptr; } 29724: 29724: 29724: 29724: 29724: bool FilteredUntil(Slice* skip_until) const { 29724: if (!has_compaction_filter_skip_until_) { 29724: return false; 29724: } 29724: 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: (static_cast ( 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: compaction_filter_ != nullptr 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: "compaction_filter_ != nullptr" 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: ; 29724: 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: (static_cast ( 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: skip_until != nullptr 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: "skip_until != nullptr" 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: ; 29724: 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: (static_cast ( 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: compaction_filter_skip_until_.Valid() 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: "compaction_filter_skip_until_.Valid()" 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29724: ; 29724: *skip_until = compaction_filter_skip_until_.Encode(); 29724: return true; 29724: } 29724: 29724: private: 29724: Env* env_; 29724: SystemClock* clock_; 29724: const Comparator* user_comparator_; 29724: const MergeOperator* user_merge_operator_; 29724: const CompactionFilter* compaction_filter_; 29724: const std::atomic* shutting_down_; 29724: Logger* logger_; 29724: bool assert_valid_internal_key_; 29724: bool allow_single_operand_; 29724: SequenceNumber latest_snapshot_; 29724: const SnapshotChecker* const snapshot_checker_; 29724: int level_; 29724: 29724: 29724: 29724: 29724: 29724: std::deque keys_; 29724: 29724: mutable MergeContext merge_context_; 29724: 29724: StopWatchNano filter_timer_; 29724: uint64_t total_filter_time_; 29724: Statistics* stats_; 29724: 29724: bool has_compaction_filter_skip_until_ = false; 29724: std::string compaction_filter_value_; 29724: InternalKey compaction_filter_skip_until_; 29724: 29724: bool IsShuttingDown() { 29724: 29724: return shutting_down_ && shutting_down_->load(std::memory_order_relaxed); 29724: } 29724: 29724: template 29724: static Status TimedFullMergeCommonImpl( 29724: const MergeOperator* merge_operator, const Slice& key, 29724: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29724: const std::vector& operands, Logger* logger, 29724: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, Visitor&& visitor); 29724: 29724: 29724: 29724: static Status TimedFullMergeImpl( 29724: const MergeOperator* merge_operator, const Slice& key, 29724: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29724: const std::vector& operands, Logger* logger, 29724: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, std::string* result, 29724: Slice* result_operand, ValueType* result_type); 29724: 29724: 29724: 29724: 29724: 29724: static Status TimedFullMergeImpl( 29724: const MergeOperator* merge_operator, const Slice& key, 29724: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29724: const std::vector& operands, Logger* logger, 29724: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29724: MergeOperator::OpFailureScope* op_failure_scope, 29724: std::string* result_value, PinnableWideColumns* result_entity); 29724: }; 29724: 29724: 29724: class MergeOutputIterator { 29724: public: 29724: 29724: explicit MergeOutputIterator(const MergeHelper* merge_helper); 29724: 29724: 29724: void SeekToFirst(); 29724: 29724: void Next(); 29724: 29724: Slice key() { return Slice(*it_keys_); } 29724: Slice value() { return Slice(*it_values_); } 29724: bool Valid() { return it_keys_ != merge_helper_->keys().rend(); } 29724: 29724: private: 29724: const MergeHelper* merge_helper_; 29724: std::deque::const_reverse_iterator it_keys_; 29724: std::vector::const_reverse_iterator it_values_; 29724: }; 29724: 29724: } 29724: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: 29724: # 31 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: namespace rocksdb { 29724: 29724: class Logger; 29724: # 42 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: class ConcurrentArena : public Allocator { 29724: public: 29724: 29724: 29724: 29724: 29724: explicit ConcurrentArena(size_t block_size = Arena::kMinBlockSize, 29724: AllocTracker* tracker = nullptr, 29724: size_t huge_page_size = 0); 29724: 29724: char* Allocate(size_t bytes) override { 29724: return AllocateImpl(bytes, false , 29724: [this, bytes]() { return arena_.Allocate(bytes); }); 29724: } 29724: 29724: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29724: Logger* logger = nullptr) override { 29724: size_t rounded_up = ((bytes - 1) | (sizeof(void*) - 1)) + 1; 29724: 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: (static_cast ( 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: "rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0" 29724: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: 29724: # 61 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: ; 29724: 29724: return AllocateImpl(rounded_up, huge_page_size != 0 , 29724: [this, rounded_up, huge_page_size, logger]() { 29724: return arena_.AllocateAligned(rounded_up, 29724: huge_page_size, logger); 29724: }); 29724: } 29724: 29724: size_t ApproximateMemoryUsage() const { 29724: std::unique_lock lock(arena_mutex_, std::defer_lock); 29724: lock.lock(); 29724: return arena_.ApproximateMemoryUsage() - ShardAllocatedAndUnused(); 29724: } 29724: 29724: size_t MemoryAllocatedBytes() const { 29724: return memory_allocated_bytes_.load(std::memory_order_relaxed); 29724: } 29724: 29724: size_t AllocatedAndUnused() const { 29724: return arena_allocated_and_unused_.load(std::memory_order_relaxed) + 29724: ShardAllocatedAndUnused(); 29724: } 29724: 29724: size_t IrregularBlockNum() const { 29724: return irregular_block_num_.load(std::memory_order_relaxed); 29724: } 29724: 29724: size_t BlockSize() const override { return arena_.BlockSize(); } 29724: 29724: private: 29724: struct Shard { 29724: char padding[40] ; 29724: mutable SpinMutex mutex; 29724: char* free_begin_; 29724: std::atomic allocated_and_unused_; 29724: 29724: Shard() : free_begin_(nullptr), allocated_and_unused_(0) {} 29724: }; 29724: 29724: static thread_local size_t tls_cpuid; 29724: 29724: char padding0[56] ; 29724: 29724: size_t shard_block_size_; 29724: 29724: CoreLocalArray shards_; 29724: 29724: Arena arena_; 29724: mutable SpinMutex arena_mutex_; 29724: std::atomic arena_allocated_and_unused_; 29724: std::atomic memory_allocated_bytes_; 29724: std::atomic irregular_block_num_; 29724: 29724: char padding1[56] ; 29724: 29724: Shard* Repick(); 29724: 29724: size_t ShardAllocatedAndUnused() const { 29724: size_t total = 0; 29724: for (size_t i = 0; i < shards_.Size(); ++i) { 29724: total += shards_.AccessAtCore(i)->allocated_and_unused_.load( 29724: std::memory_order_relaxed); 29724: } 29724: return total; 29724: } 29724: 29724: template 29724: char* AllocateImpl(size_t bytes, bool force_arena, const Func& func) { 29724: size_t cpu; 29724: 29724: 29724: 29724: 29724: 29724: std::unique_lock arena_lock(arena_mutex_, std::defer_lock); 29724: if (bytes > shard_block_size_ / 4 || force_arena || 29724: ((cpu = tls_cpuid) == 0 && 29724: !shards_.AccessAtCore(0)->allocated_and_unused_.load( 29724: std::memory_order_relaxed) && 29724: arena_lock.try_lock())) { 29724: if (!arena_lock.owns_lock()) { 29724: arena_lock.lock(); 29724: } 29724: auto rv = func(); 29724: Fixup(); 29724: return rv; 29724: } 29724: 29724: 29724: Shard* s = shards_.AccessAtCore(cpu & (shards_.Size() - 1)); 29724: if (!s->mutex.try_lock()) { 29724: s = Repick(); 29724: s->mutex.lock(); 29724: } 29724: std::unique_lock lock(s->mutex, std::adopt_lock); 29724: 29724: size_t avail = s->allocated_and_unused_.load(std::memory_order_relaxed); 29724: if (avail < bytes) { 29724: 29724: std::lock_guard reload_lock(arena_mutex_); 29724: 29724: 29724: 29724: auto exact = arena_allocated_and_unused_.load(std::memory_order_relaxed); 29724: 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: (static_cast ( 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: exact == arena_.AllocatedAndUnused() 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: "exact == arena_.AllocatedAndUnused()" 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: ; 29724: 29724: if (exact >= bytes && arena_.IsInInlineBlock()) { 29724: # 177 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29724: auto rv = func(); 29724: Fixup(); 29724: return rv; 29724: } 29724: 29724: avail = exact >= shard_block_size_ / 2 && exact < shard_block_size_ * 2 29724: ? exact 29724: : shard_block_size_; 29724: s->free_begin_ = arena_.AllocateAligned(avail); 29724: Fixup(); 29724: } 29724: s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); 29724: 29724: char* rv; 29724: if ((bytes % sizeof(void*)) == 0) { 29724: 29724: rv = s->free_begin_; 29724: s->free_begin_ += bytes; 29724: } else { 29724: 29724: rv = s->free_begin_ + avail - bytes; 29724: } 29724: return rv; 29724: } 29724: 29724: void Fixup() { 29724: arena_allocated_and_unused_.store(arena_.AllocatedAndUnused(), 29724: std::memory_order_relaxed); 29724: memory_allocated_bytes_.store(arena_.MemoryAllocatedBytes(), 29724: std::memory_order_relaxed); 29724: irregular_block_num_.store(arena_.IrregularBlockNum(), 29724: std::memory_order_relaxed); 29724: } 29724: 29724: ConcurrentArena(const ConcurrentArena&) = delete; 29724: ConcurrentArena& operator=(const ConcurrentArena&) = delete; 29724: }; 29724: 29724: } 29724: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: 29724: 29724: 29724: 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/cast_util.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: template 29724: inline DestClass* static_cast_with_check(SrcClass* x) { 29724: DestClass* ret = static_cast(x); 29724: 29724: 29724: 29724: return ret; 29724: } 29724: 29724: template 29724: inline std::shared_ptr static_cast_with_check( 29724: std::shared_ptr&& x) { 29724: 29724: 29724: 29724: auto ret = std::static_pointer_cast(std::move(x)); 29724: 29724: 29724: 29724: return ret; 29724: } 29724: 29724: 29724: 29724: 29724: 29724: template 29724: inline To lossless_cast(From x) { 29724: using FromValue = typename std::remove_reference::type; 29724: static_assert( 29724: std::is_integral::value || std::is_enum::value, 29724: "Only works on integral types"); 29724: static_assert(std::is_integral::value || std::is_enum::value, 29724: "Only works on integral types"); 29724: static_assert(sizeof(To) >= sizeof(FromValue), "Must be lossless"); 29724: return static_cast(x); 29724: } 29724: 29724: 29724: 29724: 29724: template 29724: inline const std::initializer_list& List( 29724: const std::initializer_list& list) { 29724: return list; 29724: } 29724: 29724: 29724: 29724: template 29724: class UnownedPtr { 29724: public: 29724: UnownedPtr() = default; 29724: UnownedPtr(std::nullptr_t) {} 29724: UnownedPtr(T* ptr) : ptr_(ptr) {} 29724: UnownedPtr(const UnownedPtr&) = default; 29724: UnownedPtr(UnownedPtr&&) = default; 29724: UnownedPtr& operator=(const UnownedPtr&) = default; 29724: UnownedPtr& operator=(UnownedPtr&&) = default; 29724: 29724: T* get() const { return ptr_; } 29724: T* operator->() const { return ptr_; } 29724: T& operator*() const { return *ptr_; } 29724: operator bool() const { return ptr_ != nullptr; } 29724: 29724: private: 29724: T* ptr_ = nullptr; 29724: }; 29724: 29724: } 29724: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29724: namespace rocksdb { 29724: 29724: class Slice; 29724: class Allocator; 29724: class Logger; 29724: # 36 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29724: class DynamicBloom { 29724: public: 29724: # 47 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29724: explicit DynamicBloom(Allocator* allocator, uint32_t total_bits, 29724: uint32_t num_probes = 6, size_t huge_page_tlb_size = 0, 29724: Logger* logger = nullptr); 29724: 29724: ~DynamicBloom() {} 29724: 29724: 29724: void Add(const Slice& key); 29724: 29724: 29724: void AddConcurrently(const Slice& key); 29724: 29724: 29724: void AddHash(uint32_t hash); 29724: 29724: 29724: void AddHashConcurrently(uint32_t hash); 29724: 29724: 29724: bool MayContain(const Slice& key) const; 29724: 29724: void MayContain(int num_keys, Slice* keys, bool* may_match) const; 29724: 29724: 29724: bool MayContainHash(uint32_t hash) const; 29724: 29724: void Prefetch(uint32_t h); 29724: 29724: private: 29724: 29724: 29724: uint32_t kLen; 29724: 29724: 29724: const uint32_t kNumDoubleProbes; 29724: 29724: std::atomic* data_; 29724: 29724: 29724: 29724: template 29724: void AddHash(uint32_t hash, const OrFunc& or_func); 29724: 29724: bool DoubleProbe(uint32_t h32, size_t a) const; 29724: }; 29724: 29724: inline void DynamicBloom::Add(const Slice& key) { AddHash(BloomHash(key)); } 29724: 29724: inline void DynamicBloom::AddConcurrently(const Slice& key) { 29724: AddHashConcurrently(BloomHash(key)); 29724: } 29724: 29724: inline void DynamicBloom::AddHash(uint32_t hash) { 29724: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 29724: ptr->store(ptr->load(std::memory_order_relaxed) | mask, 29724: std::memory_order_relaxed); 29724: }); 29724: } 29724: 29724: inline void DynamicBloom::AddHashConcurrently(uint32_t hash) { 29724: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 29724: 29724: 29724: 29724: 29724: 29724: if ((mask & ptr->load(std::memory_order_relaxed)) != mask) { 29724: ptr->fetch_or(mask, std::memory_order_relaxed); 29724: } 29724: }); 29724: } 29724: 29724: inline bool DynamicBloom::MayContain(const Slice& key) const { 29724: return (MayContainHash(BloomHash(key))); 29724: } 29724: 29724: inline void DynamicBloom::MayContain(int num_keys, Slice* keys, 29724: bool* may_match) const { 29724: std::array hashes; 29724: std::array byte_offsets; 29724: for (int i = 0; i < num_keys; ++i) { 29724: hashes[i] = BloomHash(keys[i]); 29724: size_t a = FastRange32(hashes[i], kLen); 29724: __builtin_prefetch(data_ + a, 0, 3); 29724: byte_offsets[i] = a; 29724: } 29724: 29724: for (int i = 0; i < num_keys; i++) { 29724: may_match[i] = DoubleProbe(hashes[i], byte_offsets[i]); 29724: } 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline void DynamicBloom::Prefetch(uint32_t h32) { 29724: size_t a = FastRange32(h32, kLen); 29724: __builtin_prefetch(data_ + a, 0, 3); 29724: } 29724: # 173 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29724: inline bool DynamicBloom::MayContainHash(uint32_t h32) const { 29724: size_t a = FastRange32(h32, kLen); 29724: __builtin_prefetch(data_ + a, 0, 3); 29724: return DoubleProbe(h32, a); 29724: } 29724: 29724: inline bool DynamicBloom::DoubleProbe(uint32_t h32, size_t byte_offset) const { 29724: 29724: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 29724: for (unsigned i = 0;; ++i) { 29724: 29724: uint64_t mask = 29724: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 29724: uint64_t val = data_[byte_offset ^ i].load(std::memory_order_relaxed); 29724: if (i + 1 >= kNumDoubleProbes) { 29724: return (val & mask) == mask; 29724: } else if ((val & mask) != mask) { 29724: return false; 29724: } 29724: h = (h >> 12) | (h << 52); 29724: } 29724: } 29724: 29724: template 29724: inline void DynamicBloom::AddHash(uint32_t h32, const OrFunc& or_func) { 29724: size_t a = FastRange32(h32, kLen); 29724: __builtin_prefetch(data_ + a, 0, 3); 29724: 29724: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 29724: for (unsigned i = 0;; ++i) { 29724: 29724: uint64_t mask = 29724: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 29724: or_func(&data_[a ^ i], mask); 29724: if (i + 1 >= kNumDoubleProbes) { 29724: return; 29724: } 29724: h = (h >> 12) | (h << 52); 29724: } 29724: } 29724: 29724: } 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 1 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 29724: 29724: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 29724: namespace rocksdb { 29724: 29724: template 29724: using UnorderedMap = std::unordered_map; 29724: 29724: template 29724: using UnorderedMapH = std::unordered_map; 29724: 29724: template 29724: using UnorderedSet = std::unordered_set; 29724: 29724: } 29724: # 37 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29724: 29724: namespace rocksdb { 29724: 29724: struct FlushJobInfo; 29724: class Mutex; 29724: class MemTableIterator; 29724: class MergeContext; 29724: class SystemClock; 29724: 29724: struct ImmutableMemTableOptions { 29724: explicit ImmutableMemTableOptions(const ImmutableOptions& ioptions, 29724: const MutableCFOptions& mutable_cf_options); 29724: size_t arena_block_size; 29724: uint32_t memtable_prefix_bloom_bits; 29724: size_t memtable_huge_page_size; 29724: bool memtable_whole_key_filtering; 29724: bool inplace_update_support; 29724: size_t inplace_update_num_locks; 29724: UpdateStatus (*inplace_callback)(char* existing_value, 29724: uint32_t* existing_value_size, 29724: Slice delta_value, 29724: std::string* merged_value); 29724: size_t max_successive_merges; 29724: bool strict_max_successive_merges; 29724: Statistics* statistics; 29724: MergeOperator* merge_operator; 29724: Logger* info_log; 29724: uint32_t protection_bytes_per_key; 29724: bool allow_data_in_errors; 29724: bool paranoid_memory_checks; 29724: }; 29724: 29724: 29724: 29724: 29724: struct MemTablePostProcessInfo { 29724: uint64_t data_size = 0; 29724: uint64_t num_entries = 0; 29724: uint64_t num_deletes = 0; 29724: uint64_t num_range_deletes = 0; 29724: }; 29724: 29724: using MultiGetRange = MultiGetContext::Range; 29724: # 106 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: class ReadOnlyMemTable { 29724: public: 29724: 29724: virtual ~ReadOnlyMemTable() = default; 29724: 29724: virtual const char* Name() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual size_t ApproximateMemoryUsage() = 0; 29724: 29724: 29724: virtual size_t MemoryAllocatedBytes() const = 0; 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: virtual void UniqueRandomSample(const uint64_t& target_sample_size, 29724: std::unordered_set* entries) = 0; 29724: # 153 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: virtual InternalIterator* NewIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, bool for_flush) = 0; 29724: 29724: 29724: 29724: 29724: virtual InternalIterator* NewTimestampStrippingIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, size_t ts_sz) = 0; 29724: # 176 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: bool immutable_memtable) = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual FragmentedRangeTombstoneIterator* 29724: NewTimestampStrippingRangeTombstoneIterator(const ReadOptions& read_options, 29724: SequenceNumber read_seq, 29724: size_t ts_sz) = 0; 29724: # 221 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: virtual bool Get(const LookupKey& key, std::string* value, 29724: PinnableWideColumns* columns, std::string* timestamp, 29724: Status* s, MergeContext* merge_context, 29724: SequenceNumber* max_covering_tombstone_seq, 29724: SequenceNumber* seq, const ReadOptions& read_opts, 29724: bool immutable_memtable, ReadCallback* callback = nullptr, 29724: bool* is_blob_index = nullptr, bool do_merge = true) = 0; 29724: bool Get(const LookupKey& key, std::string* value, 29724: PinnableWideColumns* columns, std::string* timestamp, Status* s, 29724: MergeContext* merge_context, 29724: SequenceNumber* max_covering_tombstone_seq, 29724: const ReadOptions& read_opts, bool immutable_memtable, 29724: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29724: bool do_merge = true) { 29724: SequenceNumber seq; 29724: return Get(key, value, columns, timestamp, s, merge_context, 29724: max_covering_tombstone_seq, &seq, read_opts, immutable_memtable, 29724: callback, is_blob_index, do_merge); 29724: } 29724: 29724: 29724: 29724: 29724: virtual void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29724: ReadCallback* callback, bool immutable_memtable) = 0; 29724: 29724: 29724: 29724: 29724: virtual uint64_t NumEntries() const = 0; 29724: 29724: 29724: 29724: 29724: virtual uint64_t NumDeletion() const = 0; 29724: 29724: 29724: 29724: 29724: virtual uint64_t NumRangeDeletion() const = 0; 29724: 29724: virtual uint64_t GetDataSize() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual SequenceNumber GetFirstSequenceNumber() = 0; 29724: 29724: 29724: 29724: 29724: virtual bool IsEmpty() const = 0; 29724: # 282 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: virtual SequenceNumber GetEarliestSequenceNumber() = 0; 29724: 29724: virtual uint64_t GetMinLogContainingPrepSection() = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual void MarkImmutable() = 0; 29724: 29724: 29724: 29724: 29724: 29724: virtual void MarkFlushed() = 0; 29724: 29724: struct MemTableStats { 29724: uint64_t size; 29724: uint64_t count; 29724: }; 29724: virtual MemTableStats ApproximateStats(const Slice& start_ikey, 29724: const Slice& end_ikey) = 0; 29724: 29724: virtual const InternalKeyComparator& GetInternalKeyComparator() const = 0; 29724: 29724: virtual uint64_t ApproximateOldestKeyTime() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual bool IsFragmentedRangeTombstonesConstructed() const = 0; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: virtual const Slice& GetNewestUDT() const = 0; 29724: 29724: 29724: 29724: 29724: void Ref() { ++refs_; } 29724: 29724: 29724: 29724: 29724: 29724: ReadOnlyMemTable* Unref() { 29724: --refs_; 29724: 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: (static_cast ( 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: refs_ >= 0 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: "refs_ >= 0" 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: ; 29724: if (refs_ <= 0) { 29724: return this; 29724: } 29724: return nullptr; 29724: } 29724: 29724: 29724: VersionEdit* GetEdits() { return &edit_; } 29724: 29724: 29724: 29724: 29724: 29724: uint64_t GetNextLogNumber() const { return mem_next_logfile_number_; } 29724: 29724: 29724: 29724: 29724: 29724: void SetNextLogNumber(uint64_t num) { mem_next_logfile_number_ = num; } 29724: 29724: 29724: void SetID(uint64_t id) { id_ = id; } 29724: 29724: uint64_t GetID() const { return id_; } 29724: 29724: void SetFlushCompleted(bool completed) { flush_completed_ = completed; } 29724: 29724: uint64_t GetFileNumber() const { return file_number_; } 29724: 29724: void SetFileNumber(uint64_t file_num) { file_number_ = file_num; } 29724: 29724: void SetFlushInProgress(bool in_progress) { 29724: flush_in_progress_ = in_progress; 29724: } 29724: 29724: void SetFlushJobInfo(std::unique_ptr&& info) { 29724: flush_job_info_ = std::move(info); 29724: } 29724: 29724: std::unique_ptr ReleaseFlushJobInfo() { 29724: return std::move(flush_job_info_); 29724: } 29724: 29724: static void HandleTypeValue( 29724: const Slice& lookup_user_key, const Slice& value, bool value_pinned, 29724: bool do_merge, bool merge_in_progress, MergeContext* merge_context, 29724: const MergeOperator* merge_operator, SystemClock* clock, 29724: Statistics* statistics, Logger* info_log, Status* s, 29724: std::string* out_value, PinnableWideColumns* out_columns, 29724: bool* is_blob_index) { 29724: *s = Status::OK(); 29724: 29724: if (!do_merge) { 29724: 29724: 29724: 29724: 29724: merge_context->PushOperand(value, value_pinned); 29724: } else if (merge_in_progress) { 29724: 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: (static_cast ( 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: do_merge 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: "do_merge" 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: ; 29724: 29724: 29724: 29724: if (out_value || out_columns) { 29724: *s = MergeHelper::TimedFullMerge( 29724: merge_operator, lookup_user_key, MergeHelper::kPlainBaseValue, 29724: value, merge_context->GetOperands(), info_log, statistics, clock, 29724: true, 29724: nullptr, out_value, out_columns); 29724: } 29724: } else if (out_value) { 29724: out_value->assign(value.data(), value.size()); 29724: } else if (out_columns) { 29724: out_columns->SetPlainValue(value); 29724: } 29724: 29724: if (is_blob_index) { 29724: *is_blob_index = false; 29724: } 29724: } 29724: 29724: static void HandleTypeDeletion( 29724: const Slice& lookup_user_key, bool merge_in_progress, 29724: MergeContext* merge_context, const MergeOperator* merge_operator, 29724: SystemClock* clock, Statistics* statistics, Logger* logger, Status* s, 29724: std::string* out_value, PinnableWideColumns* out_columns) { 29724: if (merge_in_progress) { 29724: if (out_value || out_columns) { 29724: 29724: 29724: 29724: *s = MergeHelper::TimedFullMerge( 29724: merge_operator, lookup_user_key, MergeHelper::kNoBaseValue, 29724: merge_context->GetOperands(), logger, statistics, clock, 29724: true, 29724: nullptr, out_value, out_columns); 29724: } else { 29724: 29724: 29724: 29724: *s = Status::OK(); 29724: } 29724: } else { 29724: *s = Status::NotFound(); 29724: } 29724: } 29724: 29724: protected: 29724: friend class MemTableList; 29724: 29724: int refs_{0}; 29724: 29724: 29724: bool flush_in_progress_{false}; 29724: bool flush_completed_{false}; 29724: uint64_t file_number_{0}; 29724: 29724: 29724: 29724: VersionEdit edit_; 29724: 29724: 29724: uint64_t mem_next_logfile_number_{0}; 29724: 29724: 29724: uint64_t id_ = 0; 29724: 29724: 29724: 29724: 29724: 29724: SequenceNumber atomic_flush_seqno_{kMaxSequenceNumber}; 29724: 29724: 29724: std::unique_ptr flush_job_info_; 29724: }; 29724: 29724: class MemTable final : public ReadOnlyMemTable { 29724: public: 29724: struct KeyComparator final : public MemTableRep::KeyComparator { 29724: const InternalKeyComparator comparator; 29724: explicit KeyComparator(const InternalKeyComparator& c) : comparator(c) {} 29724: int operator()(const char* prefix_len_key1, 29724: const char* prefix_len_key2) const override; 29724: int operator()(const char* prefix_len_key, 29724: const DecodedType& key) const override; 29724: }; 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: explicit MemTable(const InternalKeyComparator& comparator, 29724: const ImmutableOptions& ioptions, 29724: const MutableCFOptions& mutable_cf_options, 29724: WriteBufferManager* write_buffer_manager, 29724: SequenceNumber earliest_seq, uint32_t column_family_id); 29724: 29724: MemTable(const MemTable&) = delete; 29724: MemTable& operator=(const MemTable&) = delete; 29724: 29724: ~MemTable() override; 29724: 29724: const char* Name() const override { return "MemTable"; } 29724: 29724: size_t ApproximateMemoryUsage() override; 29724: 29724: 29724: 29724: size_t ApproximateMemoryUsageFast() const { 29724: return approximate_memory_usage_.load(std::memory_order_relaxed); 29724: } 29724: 29724: size_t MemoryAllocatedBytes() const override { 29724: return table_->ApproximateMemoryUsage() + 29724: range_del_table_->ApproximateMemoryUsage() + 29724: arena_.MemoryAllocatedBytes(); 29724: } 29724: 29724: void UniqueRandomSample(const uint64_t& target_sample_size, 29724: std::unordered_set* entries) override { 29724: 29724: 29724: table_->UniqueRandomSample(NumEntries(), target_sample_size, entries); 29724: } 29724: 29724: 29724: 29724: bool ShouldScheduleFlush() const { 29724: return flush_state_.load(std::memory_order_relaxed) == FLUSH_REQUESTED; 29724: } 29724: 29724: 29724: 29724: bool MarkFlushScheduled() { 29724: auto before = FLUSH_REQUESTED; 29724: return flush_state_.compare_exchange_strong(before, FLUSH_SCHEDULED, 29724: std::memory_order_relaxed, 29724: std::memory_order_relaxed); 29724: } 29724: 29724: InternalIterator* NewIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, bool for_flush) override; 29724: 29724: InternalIterator* NewTimestampStrippingIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, size_t ts_sz) override; 29724: 29724: FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: bool immutable_memtable) override; 29724: 29724: FragmentedRangeTombstoneIterator* NewTimestampStrippingRangeTombstoneIterator( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: size_t ts_sz) override; 29724: 29724: Status VerifyEncodedEntry(Slice encoded, 29724: const ProtectionInfoKVOS64& kv_prot_info); 29724: # 572 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: Status Add(SequenceNumber seq, ValueType type, const Slice& key, 29724: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info, 29724: bool allow_concurrent = false, 29724: MemTablePostProcessInfo* post_process_info = nullptr, 29724: void** hint = nullptr); 29724: 29724: using ReadOnlyMemTable::Get; 29724: bool Get(const LookupKey& key, std::string* value, 29724: PinnableWideColumns* columns, std::string* timestamp, Status* s, 29724: MergeContext* merge_context, 29724: SequenceNumber* max_covering_tombstone_seq, SequenceNumber* seq, 29724: const ReadOptions& read_opts, bool immutable_memtable, 29724: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29724: bool do_merge = true) override; 29724: 29724: void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29724: ReadCallback* callback, bool immutable_memtable) override; 29724: # 600 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: Status Update(SequenceNumber seq, ValueType value_type, const Slice& key, 29724: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info); 29724: # 617 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29724: Status UpdateCallback(SequenceNumber seq, const Slice& key, 29724: const Slice& delta, 29724: const ProtectionInfoKVOS64* kv_prot_info); 29724: 29724: 29724: 29724: 29724: 29724: size_t CountSuccessiveMergeEntries(const LookupKey& key, size_t limit); 29724: 29724: 29724: 29724: void BatchPostProcess(const MemTablePostProcessInfo& update_counters) { 29724: num_entries_.fetch_add(update_counters.num_entries, 29724: std::memory_order_relaxed); 29724: data_size_.fetch_add(update_counters.data_size, std::memory_order_relaxed); 29724: if (update_counters.num_deletes != 0) { 29724: num_deletes_.fetch_add(update_counters.num_deletes, 29724: std::memory_order_relaxed); 29724: } 29724: if (update_counters.num_range_deletes > 0) { 29724: num_range_deletes_.fetch_add(update_counters.num_range_deletes, 29724: std::memory_order_relaxed); 29724: } 29724: UpdateFlushState(); 29724: } 29724: 29724: uint64_t NumEntries() const override { 29724: return num_entries_.load(std::memory_order_relaxed); 29724: } 29724: 29724: uint64_t NumDeletion() const override { 29724: return num_deletes_.load(std::memory_order_relaxed); 29724: } 29724: 29724: uint64_t NumRangeDeletion() const override { 29724: return num_range_deletes_.load(std::memory_order_relaxed); 29724: } 29724: 29724: uint64_t GetDataSize() const override { 29724: return data_size_.load(std::memory_order_relaxed); 29724: } 29724: 29724: size_t write_buffer_size() const { 29724: return write_buffer_size_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: void UpdateWriteBufferSize(size_t new_write_buffer_size) { 29724: if (bloom_filter_ == nullptr || 29724: new_write_buffer_size < write_buffer_size_) { 29724: write_buffer_size_.store(new_write_buffer_size, 29724: std::memory_order_relaxed); 29724: } 29724: } 29724: 29724: bool IsEmpty() const override { return first_seqno_ == 0; } 29724: 29724: SequenceNumber GetFirstSequenceNumber() override { 29724: return first_seqno_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: void SetFirstSequenceNumber(SequenceNumber first_seqno) { 29724: return first_seqno_.store(first_seqno, std::memory_order_relaxed); 29724: } 29724: 29724: SequenceNumber GetEarliestSequenceNumber() override { 29724: 29724: return earliest_seqno_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: 29724: 29724: 29724: 29724: void SetEarliestSequenceNumber(SequenceNumber earliest_seqno) { 29724: return earliest_seqno_.store(earliest_seqno, std::memory_order_relaxed); 29724: } 29724: 29724: 29724: 29724: SequenceNumber GetCreationSeq() const { return creation_seq_; } 29724: 29724: void SetCreationSeq(SequenceNumber sn) { creation_seq_ = sn; } 29724: 29724: 29724: 29724: 29724: void RefLogContainingPrepSection(uint64_t log); 29724: uint64_t GetMinLogContainingPrepSection() override; 29724: 29724: void MarkImmutable() override { 29724: table_->MarkReadOnly(); 29724: mem_tracker_.DoneAllocating(); 29724: } 29724: 29724: void MarkFlushed() override { table_->MarkFlushed(); } 29724: 29724: 29724: bool IsMergeOperatorSupported() const { 29724: return table_->IsMergeOperatorSupported(); 29724: } 29724: 29724: 29724: 29724: bool IsSnapshotSupported() const { 29724: return table_->IsSnapshotSupported() && !moptions_.inplace_update_support; 29724: } 29724: 29724: MemTableStats ApproximateStats(const Slice& start_ikey, 29724: const Slice& end_ikey) override; 29724: 29724: 29724: port::RWMutex* GetLock(const Slice& key); 29724: 29724: const InternalKeyComparator& GetInternalKeyComparator() const override { 29724: return comparator_.comparator; 29724: } 29724: 29724: const ImmutableMemTableOptions* GetImmutableMemTableOptions() const { 29724: return &moptions_; 29724: } 29724: 29724: uint64_t ApproximateOldestKeyTime() const override { 29724: return oldest_key_time_.load(std::memory_order_relaxed); 29724: } 29724: 29724: 29724: bool ShouldFlushNow(); 29724: 29724: 29724: 29724: 29724: 29724: 29724: void ConstructFragmentedRangeTombstones(); 29724: 29724: bool IsFragmentedRangeTombstonesConstructed() const override { 29724: return fragmented_range_tombstone_list_.get() != nullptr || 29724: is_range_del_table_empty_; 29724: } 29724: 29724: const Slice& GetNewestUDT() const override; 29724: 29724: 29724: static Status VerifyEntryChecksum(const char* entry, 29724: uint32_t protection_bytes_per_key, 29724: bool allow_data_in_errors = false); 29724: 29724: private: 29724: enum FlushStateEnum { FLUSH_NOT_REQUESTED, FLUSH_REQUESTED, FLUSH_SCHEDULED }; 29724: 29724: friend class MemTableIterator; 29724: friend class MemTableBackwardIterator; 29724: friend class MemTableList; 29724: 29724: KeyComparator comparator_; 29724: const ImmutableMemTableOptions moptions_; 29724: const size_t kArenaBlockSize; 29724: AllocTracker mem_tracker_; 29724: ConcurrentArena arena_; 29724: std::unique_ptr table_; 29724: std::unique_ptr range_del_table_; 29724: std::atomic_bool is_range_del_table_empty_; 29724: 29724: 29724: std::atomic data_size_; 29724: std::atomic num_entries_; 29724: std::atomic num_deletes_; 29724: std::atomic num_range_deletes_; 29724: 29724: 29724: std::atomic write_buffer_size_; 29724: 29724: 29724: std::atomic first_seqno_; 29724: 29724: 29724: 29724: std::atomic earliest_seqno_; 29724: 29724: SequenceNumber creation_seq_; 29724: 29724: 29724: 29724: std::atomic min_prep_log_referenced_; 29724: 29724: 29724: std::vector locks_; 29724: 29724: const SliceTransform* const prefix_extractor_; 29724: std::unique_ptr bloom_filter_; 29724: 29724: std::atomic flush_state_; 29724: 29724: SystemClock* clock_; 29724: 29724: 29724: const SliceTransform* insert_with_hint_prefix_extractor_; 29724: 29724: 29724: UnorderedMapH insert_hints_; 29724: 29724: 29724: std::atomic oldest_key_time_; 29724: 29724: 29724: 29724: std::atomic approximate_memory_usage_; 29724: 29724: 29724: 29724: uint32_t memtable_max_range_deletions_ = 0; 29724: 29724: 29724: size_t ts_sz_; 29724: 29724: 29724: bool persist_user_defined_timestamps_; 29724: 29724: 29724: 29724: 29724: 29724: 29724: Slice newest_udt_; 29724: 29724: 29724: void UpdateFlushState(); 29724: 29724: void UpdateOldestKeyTime(); 29724: 29724: void GetFromTable(const LookupKey& key, 29724: SequenceNumber max_covering_tombstone_seq, bool do_merge, 29724: ReadCallback* callback, bool* is_blob_index, 29724: std::string* value, PinnableWideColumns* columns, 29724: std::string* timestamp, Status* s, 29724: MergeContext* merge_context, SequenceNumber* seq, 29724: bool* found_final_value, bool* merge_in_progress); 29724: 29724: 29724: 29724: 29724: 29724: 29724: FragmentedRangeTombstoneIterator* NewRangeTombstoneIteratorInternal( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: bool immutable_memtable); 29724: 29724: 29724: 29724: 29724: std::unique_ptr 29724: fragmented_range_tombstone_list_; 29724: 29724: 29724: 29724: 29724: std::unique_ptr 29724: timestamp_stripping_fragmented_range_tombstone_list_; 29724: 29724: 29724: std::mutex range_del_mutex_; 29724: CoreLocalArray> 29724: cached_range_tombstone_; 29724: 29724: void UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 29724: const Slice& key, const Slice& value, ValueType type, 29724: SequenceNumber s, char* checksum_ptr); 29724: 29724: void MaybeUpdateNewestUDT(const Slice& user_key); 29724: }; 29724: 29724: const char* EncodeKey(std::string* scratch, const Slice& target); 29724: 29724: } 29724: # 11 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29724: # 26 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/logging.h" 1 29724: # 13 "/build/reproducible-path/rocksdb-9.10.0/logging/logging.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: inline const char* RocksLogShorterFileName(const char* file) { 29724: 29724: 29724: return file + (sizeof("./logging/logging.h") > 18 ? sizeof("./logging/logging.h") - 18 : 0); 29724: } 29724: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29724: 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 1 29724: 29724: 29724: 29724: 29724: 29724: 29724: # 16 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 29724: namespace rocksdb { 29724: 29724: 29724: 29724: template 29724: size_t ApproximateMemoryUsage( 29724: const std::unordered_map& umap) { 29724: using Map = std::unordered_map; 29724: return sizeof(umap) + 29724: 29724: (sizeof(typename Map::value_type) + sizeof(void*)) * umap.size() + 29724: 29724: umap.bucket_count() * sizeof(void*); 29724: } 29724: # 38 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 29724: } 29724: # 29 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29724: # 41 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: 29724: 29724: 29724: 29724: template 29724: class IteratorWrapperBase { 29724: public: 29724: IteratorWrapperBase() : iter_(nullptr), valid_(false) {} 29724: explicit IteratorWrapperBase(InternalIteratorBase* _iter) 29724: : iter_(nullptr) { 29724: Set(_iter); 29724: } 29724: ~IteratorWrapperBase() {} 29724: InternalIteratorBase* iter() const { return iter_; } 29724: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 29724: if (iter_) { 29724: iter_->SetRangeDelReadSeqno(read_seqno); 29724: } 29724: } 29724: 29724: 29724: 29724: InternalIteratorBase* Set(InternalIteratorBase* _iter) { 29724: InternalIteratorBase* old_iter = iter_; 29724: 29724: iter_ = _iter; 29724: if (iter_ == nullptr) { 29724: valid_ = false; 29724: } else { 29724: Update(); 29724: } 29724: return old_iter; 29724: } 29724: 29724: void DeleteIter(bool is_arena_mode) { 29724: if (iter_) { 29724: # 66 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: if (!is_arena_mode) { 29724: delete iter_; 29724: } else { 29724: iter_->~InternalIteratorBase(); 29724: } 29724: } 29724: } 29724: 29724: 29724: bool Valid() const { 29724: 29724: 29724: 29724: return valid_; 29724: } 29724: Slice key() const { 29724: 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return result_.key; 29724: } 29724: 29724: uint64_t write_unix_time() const { 29724: 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->write_unix_time(); 29724: } 29724: 29724: TValue value() const { 29724: 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->value(); 29724: } 29724: 29724: Status status() const { 29724: 29724: 29724: 29724: 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->status(); 29724: } 29724: bool PrepareValue() { 29724: 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: if (result_.value_prepared) { 29724: return true; 29724: } 29724: if (iter_->PrepareValue()) { 29724: result_.value_prepared = true; 29724: result_.key = iter_->key(); 29724: return true; 29724: } 29724: 29724: 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: !iter_->Valid() 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "!iter_->Valid()" 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: valid_ = false; 29724: return false; 29724: } 29724: void Next() { 29724: 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: valid_ = iter_->NextAndGetResult(&result_); 29724: 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: !valid_ || iter_->status().ok() 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "!valid_ || iter_->status().ok()" 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: } 29724: bool NextAndGetResult(IterateResult* result) { 29724: 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: valid_ = iter_->NextAndGetResult(&result_); 29724: *result = result_; 29724: 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: !valid_ || iter_->status().ok() 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "!valid_ || iter_->status().ok()" 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return valid_; 29724: } 29724: void Prev() { 29724: 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->Prev(); 29724: Update(); 29724: } 29724: void Seek(const Slice& k) { 29724: 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->Seek(k); 29724: Update(); 29724: } 29724: void SeekForPrev(const Slice& k) { 29724: 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->SeekForPrev(k); 29724: Update(); 29724: } 29724: void SeekToFirst() { 29724: 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->SeekToFirst(); 29724: Update(); 29724: } 29724: void SeekToLast() { 29724: 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->SeekToLast(); 29724: Update(); 29724: } 29724: 29724: bool MayBeOutOfLowerBound() { 29724: 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->MayBeOutOfLowerBound(); 29724: } 29724: 29724: IterBoundCheck UpperBoundCheckResult() { 29724: 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return result_.bound_check_result; 29724: } 29724: 29724: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) { 29724: 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_ 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_" 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: iter_->SetPinnedItersMgr(pinned_iters_mgr); 29724: } 29724: bool IsKeyPinned() const { 29724: 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->IsKeyPinned(); 29724: } 29724: bool IsValuePinned() const { 29724: 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->IsValuePinned(); 29724: } 29724: 29724: bool IsValuePrepared() const { return result_.value_prepared; } 29724: 29724: Slice user_key() const { 29724: 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: Valid() 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "Valid()" 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: return iter_->user_key(); 29724: } 29724: 29724: void UpdateReadaheadState(InternalIteratorBase* old_iter) { 29724: if (old_iter && iter_) { 29724: ReadaheadFileInfo readahead_file_info; 29724: old_iter->GetReadaheadState(&readahead_file_info); 29724: iter_->SetReadaheadState(&readahead_file_info); 29724: } 29724: } 29724: 29724: bool IsDeleteRangeSentinelKey() const { 29724: return iter_->IsDeleteRangeSentinelKey(); 29724: } 29724: 29724: private: 29724: void Update() { 29724: valid_ = iter_->Valid(); 29724: if (valid_) { 29724: 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: (static_cast ( 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: iter_->status().ok() 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: "iter_->status().ok()" 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29724: ; 29724: result_.key = iter_->key(); 29724: result_.bound_check_result = IterBoundCheck::kUnknown; 29724: result_.value_prepared = false; 29724: } 29724: } 29724: 29724: InternalIteratorBase* iter_; 29724: IterateResult result_; 29724: bool valid_; 29724: 29724: 29724: 29724: 29724: }; 29724: 29724: using IteratorWrapper = IteratorWrapperBase; 29724: 29724: class Arena; 29724: 29724: template 29724: InternalIteratorBase* NewEmptyInternalIterator(Arena* arena); 29724: 29724: } 29724: # 42 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29724: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 1 29724: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29724: 29724: 29724: 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: class Arena; 29724: class ArenaWrappedDBIter; 29724: class InternalKeyComparator; 29724: 29724: template 29724: class InternalIteratorBase; 29724: using InternalIterator = InternalIteratorBase; 29724: # 35 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29724: InternalIterator* NewMergingIterator(const InternalKeyComparator* comparator, 29724: InternalIterator** children, int n, 29724: Arena* arena = nullptr, 29724: bool prefix_seek_mode = false); 29724: 29724: 29724: 29724: 29724: class MergingIterator; 29724: 29724: 29724: 29724: 29724: 29724: class MergeIteratorBuilder { 29724: public: 29724: 29724: 29724: explicit MergeIteratorBuilder(const InternalKeyComparator* comparator, 29724: Arena* arena, bool prefix_seek_mode = false, 29724: const Slice* iterate_upper_bound = nullptr); 29724: ~MergeIteratorBuilder(); 29724: 29724: 29724: void AddIterator(InternalIterator* iter); 29724: # 72 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29724: void AddPointAndTombstoneIterator( 29724: InternalIterator* point_iter, 29724: std::unique_ptr&& tombstone_iter, 29724: std::unique_ptr** tombstone_iter_ptr = 29724: nullptr); 29724: 29724: 29724: 29724: Arena* GetArena() { return arena; } 29724: 29724: 29724: 29724: 29724: 29724: 29724: InternalIterator* Finish(ArenaWrappedDBIter* db_iter = nullptr); 29724: 29724: private: 29724: MergingIterator* merge_iter; 29724: InternalIterator* first_iter; 29724: bool use_merging_iter; 29724: Arena* arena; 29724: 29724: 29724: std::vector**>> 29724: range_del_iter_ptrs_; 29724: }; 29724: 29724: } 29724: # 43 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29724: 29724: 29724: 29724: 29724: namespace rocksdb { 29724: 29724: ImmutableMemTableOptions::ImmutableMemTableOptions( 29724: const ImmutableOptions& ioptions, 29724: const MutableCFOptions& mutable_cf_options) 29724: : arena_block_size(mutable_cf_options.arena_block_size), 29724: memtable_prefix_bloom_bits( 29724: static_cast( 29724: static_cast(mutable_cf_options.write_buffer_size) * 29724: mutable_cf_options.memtable_prefix_bloom_size_ratio) * 29724: 8u), 29724: memtable_huge_page_size(mutable_cf_options.memtable_huge_page_size), 29724: memtable_whole_key_filtering( 29724: mutable_cf_options.memtable_whole_key_filtering), 29724: inplace_update_support(ioptions.inplace_update_support), 29724: inplace_update_num_locks(mutable_cf_options.inplace_update_num_locks), 29724: inplace_callback(ioptions.inplace_callback), 29724: max_successive_merges(mutable_cf_options.max_successive_merges), 29724: strict_max_successive_merges( 29724: mutable_cf_options.strict_max_successive_merges), 29724: statistics(ioptions.stats), 29724: merge_operator(ioptions.merge_operator.get()), 29724: info_log(ioptions.logger), 29724: protection_bytes_per_key( 29724: mutable_cf_options.memtable_protection_bytes_per_key), 29724: allow_data_in_errors(ioptions.allow_data_in_errors), 29724: paranoid_memory_checks(mutable_cf_options.paranoid_memory_checks) {} 29724: 29724: MemTable::MemTable(const InternalKeyComparator& cmp, 29724: const ImmutableOptions& ioptions, 29724: const MutableCFOptions& mutable_cf_options, 29724: WriteBufferManager* write_buffer_manager, 29724: SequenceNumber latest_seq, uint32_t column_family_id) 29724: : comparator_(cmp), 29724: moptions_(ioptions, mutable_cf_options), 29724: kArenaBlockSize(Arena::OptimizeBlockSize(moptions_.arena_block_size)), 29724: mem_tracker_(write_buffer_manager), 29724: arena_(moptions_.arena_block_size, 29724: (write_buffer_manager != nullptr && 29724: (write_buffer_manager->enabled() || 29724: write_buffer_manager->cost_to_cache())) 29724: ? &mem_tracker_ 29724: : nullptr, 29724: mutable_cf_options.memtable_huge_page_size), 29724: table_(ioptions.memtable_factory->CreateMemTableRep( 29724: comparator_, &arena_, mutable_cf_options.prefix_extractor.get(), 29724: ioptions.logger, column_family_id)), 29724: range_del_table_(SkipListFactory().CreateMemTableRep( 29724: comparator_, &arena_, nullptr , ioptions.logger, 29724: column_family_id)), 29724: is_range_del_table_empty_(true), 29724: data_size_(0), 29724: num_entries_(0), 29724: num_deletes_(0), 29724: num_range_deletes_(0), 29724: write_buffer_size_(mutable_cf_options.write_buffer_size), 29724: first_seqno_(0), 29724: earliest_seqno_(latest_seq), 29724: creation_seq_(latest_seq), 29724: min_prep_log_referenced_(0), 29724: locks_(moptions_.inplace_update_support 29724: ? moptions_.inplace_update_num_locks 29724: : 0), 29724: prefix_extractor_(mutable_cf_options.prefix_extractor.get()), 29724: flush_state_(FLUSH_NOT_REQUESTED), 29724: clock_(ioptions.clock), 29724: insert_with_hint_prefix_extractor_( 29724: ioptions.memtable_insert_with_hint_prefix_extractor.get()), 29724: oldest_key_time_(std::numeric_limits::max()), 29724: approximate_memory_usage_(0), 29724: memtable_max_range_deletions_( 29724: mutable_cf_options.memtable_max_range_deletions) { 29724: UpdateFlushState(); 29724: 29724: 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: !ShouldScheduleFlush() 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "!ShouldScheduleFlush()" 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: 29724: if ((prefix_extractor_ || moptions_.memtable_whole_key_filtering) && 29724: moptions_.memtable_prefix_bloom_bits > 0) { 29724: bloom_filter_.reset( 29724: new DynamicBloom(&arena_, moptions_.memtable_prefix_bloom_bits, 29724: 6 , 29724: moptions_.memtable_huge_page_size, ioptions.logger)); 29724: } 29724: 29724: 29724: 29724: auto new_cache = std::make_shared(); 29724: size_t size = cached_range_tombstone_.Size(); 29724: for (size_t i = 0; i < size; ++i) { 29724: std::shared_ptr* local_cache_ref_ptr = 29724: cached_range_tombstone_.AccessAtCore(i); 29724: auto new_local_cache_ref = std::make_shared< 29724: const std::shared_ptr>(new_cache); 29724: std::atomic_store_explicit( 29724: local_cache_ref_ptr, 29724: std::shared_ptr(new_local_cache_ref, 29724: new_cache.get()), 29724: std::memory_order_relaxed); 29724: } 29724: const Comparator* ucmp = cmp.user_comparator(); 29724: 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ucmp 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "ucmp" 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: ts_sz_ = ucmp->timestamp_size(); 29724: persist_user_defined_timestamps_ = ioptions.persist_user_defined_timestamps; 29724: } 29724: 29724: MemTable::~MemTable() { 29724: mem_tracker_.FreeMem(); 29724: 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: refs_ == 0 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "refs_ == 0" 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: 29724: size_t MemTable::ApproximateMemoryUsage() { 29724: autovector usages = { 29724: arena_.ApproximateMemoryUsage(), table_->ApproximateMemoryUsage(), 29724: range_del_table_->ApproximateMemoryUsage(), 29724: rocksdb::ApproximateMemoryUsage(insert_hints_)}; 29724: size_t total_usage = 0; 29724: for (size_t usage : usages) { 29724: 29724: 29724: if (usage >= std::numeric_limits::max() - total_usage) { 29724: return std::numeric_limits::max(); 29724: } 29724: total_usage += usage; 29724: } 29724: approximate_memory_usage_.store(total_usage, std::memory_order_relaxed); 29724: 29724: return total_usage; 29724: } 29724: 29724: bool MemTable::ShouldFlushNow() { 29724: 29724: 29724: if (memtable_max_range_deletions_ > 0 && 29724: num_range_deletes_.load(std::memory_order_relaxed) >= 29724: static_cast(memtable_max_range_deletions_)) { 29724: return true; 29724: } 29724: 29724: size_t write_buffer_size = write_buffer_size_.load(std::memory_order_relaxed); 29724: 29724: 29724: 29724: 29724: 29724: 29724: const double kAllowOverAllocationRatio = 0.6; 29724: 29724: 29724: 29724: auto allocated_memory = table_->ApproximateMemoryUsage() + 29724: range_del_table_->ApproximateMemoryUsage() + 29724: arena_.MemoryAllocatedBytes(); 29724: 29724: approximate_memory_usage_.store(allocated_memory, std::memory_order_relaxed); 29724: 29724: 29724: 29724: if (allocated_memory + kArenaBlockSize < 29724: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 29724: return false; 29724: } 29724: 29724: 29724: 29724: if (allocated_memory > 29724: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 29724: return true; 29724: } 29724: # 242 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: return arena_.AllocatedAndUnused() < kArenaBlockSize / 4; 29724: } 29724: 29724: void MemTable::UpdateFlushState() { 29724: auto state = flush_state_.load(std::memory_order_relaxed); 29724: if (state == FLUSH_NOT_REQUESTED && ShouldFlushNow()) { 29724: 29724: 29724: flush_state_.compare_exchange_strong(state, FLUSH_REQUESTED, 29724: std::memory_order_relaxed, 29724: std::memory_order_relaxed); 29724: } 29724: } 29724: 29724: void MemTable::UpdateOldestKeyTime() { 29724: uint64_t oldest_key_time = oldest_key_time_.load(std::memory_order_relaxed); 29724: if (oldest_key_time == std::numeric_limits::max()) { 29724: int64_t current_time = 0; 29724: auto s = clock_->GetCurrentTime(¤t_time); 29724: if (s.ok()) { 29724: 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: current_time >= 0 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "current_time >= 0" 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: oldest_key_time_.compare_exchange_strong( 29724: oldest_key_time, static_cast(current_time), 29724: std::memory_order_relaxed, std::memory_order_relaxed); 29724: } 29724: } 29724: } 29724: 29724: Status MemTable::VerifyEntryChecksum(const char* entry, 29724: uint32_t protection_bytes_per_key, 29724: bool allow_data_in_errors) { 29724: if (protection_bytes_per_key == 0) { 29724: return Status::OK(); 29724: } 29724: uint32_t key_length; 29724: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29724: if (key_ptr == nullptr) { 29724: return Status::Corruption("Unable to parse internal key length"); 29724: } 29724: if (key_length < 8) { 29724: return Status::Corruption("Memtable entry internal key length too short."); 29724: } 29724: Slice user_key = Slice(key_ptr, key_length - 8); 29724: 29724: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29724: ValueType type; 29724: SequenceNumber seq; 29724: UnPackSequenceAndType(tag, &seq, &type); 29724: 29724: uint32_t value_length = 0; 29724: const char* value_ptr = GetVarint32Ptr( 29724: key_ptr + key_length, key_ptr + key_length + 5, &value_length); 29724: if (value_ptr == nullptr) { 29724: return Status::Corruption("Unable to parse internal key value"); 29724: } 29724: Slice value = Slice(value_ptr, value_length); 29724: 29724: const char* checksum_ptr = value_ptr + value_length; 29724: bool match = 29724: ProtectionInfo64() 29724: .ProtectKVO(user_key, value, type) 29724: .ProtectS(seq) 29724: .Verify(static_cast(protection_bytes_per_key), checksum_ptr); 29724: if (!match) { 29724: std::string msg( 29724: "Corrupted memtable entry, per key-value checksum verification " 29724: "failed."); 29724: if (allow_data_in_errors) { 29724: msg.append("Unrecognized value type: " + 29724: std::to_string(static_cast(type)) + ". "); 29724: msg.append("User key: " + user_key.ToString( true) + ". "); 29724: msg.append("seq: " + std::to_string(seq) + "."); 29724: } 29724: return Status::Corruption(msg.c_str()); 29724: } 29724: return Status::OK(); 29724: } 29724: 29724: int MemTable::KeyComparator::operator()(const char* prefix_len_key1, 29724: const char* prefix_len_key2) const { 29724: 29724: Slice k1 = GetLengthPrefixedSlice(prefix_len_key1); 29724: Slice k2 = GetLengthPrefixedSlice(prefix_len_key2); 29724: return comparator.CompareKeySeq(k1, k2); 29724: } 29724: 29724: int MemTable::KeyComparator::operator()( 29724: const char* prefix_len_key, const KeyComparator::DecodedType& key) const { 29724: 29724: Slice a = GetLengthPrefixedSlice(prefix_len_key); 29724: return comparator.CompareKeySeq(a, key); 29724: } 29724: 29724: void MemTableRep::InsertConcurrently(KeyHandle ) { 29724: throw std::runtime_error("concurrent insert not supported"); 29724: } 29724: 29724: Slice MemTableRep::UserKey(const char* key) const { 29724: Slice slice = GetLengthPrefixedSlice(key); 29724: return Slice(slice.data(), slice.size() - 8); 29724: } 29724: 29724: KeyHandle MemTableRep::Allocate(const size_t len, char** buf) { 29724: *buf = allocator_->Allocate(len); 29724: return static_cast(*buf); 29724: } 29724: 29724: 29724: 29724: 29724: const char* EncodeKey(std::string* scratch, const Slice& target) { 29724: scratch->clear(); 29724: PutVarint32(scratch, static_cast(target.size())); 29724: scratch->append(target.data(), target.size()); 29724: return scratch->data(); 29724: } 29724: 29724: class MemTableIterator : public InternalIterator { 29724: public: 29724: enum Kind { kPointEntries, kRangeDelEntries }; 29724: MemTableIterator( 29724: Kind kind, const MemTable& mem, const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping = nullptr, 29724: Arena* arena = nullptr, 29724: const SliceTransform* cf_prefix_extractor = nullptr) 29724: : bloom_(nullptr), 29724: prefix_extractor_(mem.prefix_extractor_), 29724: comparator_(mem.comparator_), 29724: seqno_to_time_mapping_(seqno_to_time_mapping), 29724: status_(Status::OK()), 29724: logger_(mem.moptions_.info_log), 29724: ts_sz_(mem.ts_sz_), 29724: protection_bytes_per_key_(mem.moptions_.protection_bytes_per_key), 29724: valid_(false), 29724: value_pinned_( 29724: !mem.GetImmutableMemTableOptions()->inplace_update_support), 29724: arena_mode_(arena != nullptr), 29724: paranoid_memory_checks_(mem.moptions_.paranoid_memory_checks), 29724: allow_data_in_error(mem.moptions_.allow_data_in_errors) { 29724: if (kind == kRangeDelEntries) { 29724: iter_ = mem.range_del_table_->GetIterator(arena); 29724: } else if (prefix_extractor_ != nullptr && 29724: 29724: 29724: prefix_extractor_ == cf_prefix_extractor && 29724: (read_options.prefix_same_as_start || 29724: (!read_options.total_order_seek && 29724: !read_options.auto_prefix_mode))) { 29724: 29724: 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: kind == kPointEntries 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "kind == kPointEntries" 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: bloom_ = mem.bloom_filter_.get(); 29724: iter_ = mem.table_->GetDynamicPrefixIterator(arena); 29724: } else { 29724: 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: kind == kPointEntries 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "kind == kPointEntries" 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: iter_ = mem.table_->GetIterator(arena); 29724: } 29724: status_.PermitUncheckedError(); 29724: } 29724: 29724: MemTableIterator(const MemTableIterator&) = delete; 29724: void operator=(const MemTableIterator&) = delete; 29724: 29724: ~MemTableIterator() override { 29724: 29724: 29724: 29724: 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: !pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled() 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "!pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled()" 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: if (arena_mode_) { 29724: iter_->~Iterator(); 29724: } else { 29724: delete iter_; 29724: } 29724: status_.PermitUncheckedError(); 29724: } 29724: 29724: 29724: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 29724: pinned_iters_mgr_ = pinned_iters_mgr; 29724: } 29724: PinnedIteratorsManager* pinned_iters_mgr_ = nullptr; 29724: 29724: 29724: bool Valid() const override { 29724: 29724: 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: iter_->Valid() || !(valid_ && status_.ok()) 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "iter_->Valid() || !(valid_ && status_.ok())" 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: return valid_ && status_.ok(); 29724: } 29724: 29724: void Seek(const Slice& k) override { 29724: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: status_ = Status::OK(); 29724: if (bloom_) { 29724: 29724: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 29724: if (prefix_extractor_->InDomain(user_k_without_ts)) { 29724: Slice prefix = prefix_extractor_->Transform(user_k_without_ts); 29724: if (!bloom_->MayContain(prefix)) { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29724: valid_ = false; 29724: return; 29724: } else { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29724: } 29724: } 29724: } 29724: if (paranoid_memory_checks_) { 29724: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 29724: } else { 29724: iter_->Seek(k, nullptr); 29724: } 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: } 29724: void SeekForPrev(const Slice& k) override { 29724: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: status_ = Status::OK(); 29724: if (bloom_) { 29724: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 29724: if (prefix_extractor_->InDomain(user_k_without_ts)) { 29724: if (!bloom_->MayContain( 29724: prefix_extractor_->Transform(user_k_without_ts))) { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29724: valid_ = false; 29724: return; 29724: } else { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29724: } 29724: } 29724: } 29724: if (paranoid_memory_checks_) { 29724: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 29724: } else { 29724: iter_->Seek(k, nullptr); 29724: } 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: if (!Valid() && status().ok()) { 29724: SeekToLast(); 29724: } 29724: while (Valid() && comparator_.comparator.Compare(k, key()) < 0) { 29724: Prev(); 29724: } 29724: } 29724: void SeekToFirst() override { 29724: status_ = Status::OK(); 29724: iter_->SeekToFirst(); 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: } 29724: void SeekToLast() override { 29724: status_ = Status::OK(); 29724: iter_->SeekToLast(); 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: } 29724: void Next() override { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.next_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (paranoid_memory_checks_) { 29724: status_ = iter_->NextAndValidate(allow_data_in_error); 29724: } else { 29724: iter_->Next(); 29724: rocksdb::SyncPoint::GetInstance()->Process("MemTableIterator::Next:0", iter_); 29724: } 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: } 29724: bool NextAndGetResult(IterateResult* result) override { 29724: Next(); 29724: bool is_valid = Valid(); 29724: if (is_valid) { 29724: result->key = key(); 29724: result->bound_check_result = IterBoundCheck::kUnknown; 29724: result->value_prepared = true; 29724: } 29724: return is_valid; 29724: } 29724: void Prev() override { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.prev_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (paranoid_memory_checks_) { 29724: status_ = iter_->PrevAndValidate(allow_data_in_error); 29724: } else { 29724: iter_->Prev(); 29724: } 29724: valid_ = iter_->Valid(); 29724: VerifyEntryChecksum(); 29724: } 29724: Slice key() const override { 29724: 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: return GetLengthPrefixedSlice(iter_->key()); 29724: } 29724: 29724: uint64_t write_unix_time() const override { 29724: 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: ParsedInternalKey pikey; 29724: Status s = ParseInternalKey(key(), &pikey, false); 29724: if (!s.ok()) { 29724: return std::numeric_limits::max(); 29724: } else if (kTypeValuePreferredSeqno == pikey.type) { 29724: return ParsePackedValueForWriteTime(value()); 29724: } else if (!seqno_to_time_mapping_ || seqno_to_time_mapping_->Empty()) { 29724: return std::numeric_limits::max(); 29724: } 29724: return seqno_to_time_mapping_->GetProximalTimeBeforeSeqno(pikey.sequence); 29724: } 29724: 29724: Slice value() const override { 29724: 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: Slice key_slice = GetLengthPrefixedSlice(iter_->key()); 29724: return GetLengthPrefixedSlice(key_slice.data() + key_slice.size()); 29724: } 29724: 29724: Status status() const override { return status_; } 29724: 29724: bool IsKeyPinned() const override { 29724: 29724: return true; 29724: } 29724: 29724: bool IsValuePinned() const override { 29724: 29724: return value_pinned_; 29724: } 29724: 29724: private: 29724: DynamicBloom* bloom_; 29724: const SliceTransform* const prefix_extractor_; 29724: const MemTable::KeyComparator comparator_; 29724: MemTableRep::Iterator* iter_; 29724: 29724: UnownedPtr seqno_to_time_mapping_; 29724: Status status_; 29724: Logger* logger_; 29724: size_t ts_sz_; 29724: uint32_t protection_bytes_per_key_; 29724: bool valid_; 29724: bool value_pinned_; 29724: bool arena_mode_; 29724: const bool paranoid_memory_checks_; 29724: const bool allow_data_in_error; 29724: 29724: void VerifyEntryChecksum() { 29724: if (protection_bytes_per_key_ > 0 && Valid()) { 29724: status_ = MemTable::VerifyEntryChecksum(iter_->key(), 29724: protection_bytes_per_key_); 29724: if (!status_.ok()) { 29724: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((logger_)), ("[%s:" "593" "] " "In MemtableIterator: %s"), RocksLogShorterFileName("./db/memtable.cc"), status_.getState()); 29724: } 29724: } 29724: } 29724: }; 29724: 29724: InternalIterator* MemTable::NewIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, bool ) { 29724: 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: arena != nullptr 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "arena != nullptr" 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: auto mem = arena->AllocateAligned(sizeof(MemTableIterator)); 29724: return new (mem) 29724: MemTableIterator(MemTableIterator::kPointEntries, *this, read_options, 29724: seqno_to_time_mapping, arena, prefix_extractor); 29724: } 29724: 29724: 29724: 29724: class TimestampStrippingIterator : public InternalIterator { 29724: public: 29724: TimestampStrippingIterator( 29724: MemTableIterator::Kind kind, const MemTable& memtable, 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* cf_prefix_extractor, size_t ts_sz) 29724: : arena_mode_(arena != nullptr), kind_(kind), ts_sz_(ts_sz) { 29724: 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ts_sz_ != 0 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "ts_sz_ != 0" 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: void* mem = arena ? arena->AllocateAligned(sizeof(MemTableIterator)) : 29724: operator new(sizeof(MemTableIterator)); 29724: iter_ = new (mem) 29724: MemTableIterator(kind, memtable, read_options, seqno_to_time_mapping, 29724: arena, cf_prefix_extractor); 29724: } 29724: 29724: 29724: TimestampStrippingIterator(const TimestampStrippingIterator&) = delete; 29724: void operator=(const TimestampStrippingIterator&) = delete; 29724: 29724: ~TimestampStrippingIterator() override { 29724: if (arena_mode_) { 29724: iter_->~MemTableIterator(); 29724: } else { 29724: delete iter_; 29724: } 29724: } 29724: 29724: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 29724: iter_->SetPinnedItersMgr(pinned_iters_mgr); 29724: } 29724: 29724: bool Valid() const override { return iter_->Valid(); } 29724: void Seek(const Slice& k) override { 29724: iter_->Seek(k); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: void SeekForPrev(const Slice& k) override { 29724: iter_->SeekForPrev(k); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: void SeekToFirst() override { 29724: iter_->SeekToFirst(); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: void SeekToLast() override { 29724: iter_->SeekToLast(); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: void Next() override { 29724: iter_->Next(); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: bool NextAndGetResult(IterateResult* result) override { 29724: iter_->Next(); 29724: UpdateKeyAndValueBuffer(); 29724: bool is_valid = Valid(); 29724: if (is_valid) { 29724: result->key = key(); 29724: result->bound_check_result = IterBoundCheck::kUnknown; 29724: result->value_prepared = true; 29724: } 29724: return is_valid; 29724: } 29724: void Prev() override { 29724: iter_->Prev(); 29724: UpdateKeyAndValueBuffer(); 29724: } 29724: Slice key() const override { 29724: 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: Valid() 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "Valid()" 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: return key_buf_; 29724: } 29724: 29724: uint64_t write_unix_time() const override { return iter_->write_unix_time(); } 29724: Slice value() const override { 29724: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29724: return value_buf_; 29724: } 29724: return iter_->value(); 29724: } 29724: Status status() const override { return iter_->status(); } 29724: bool IsKeyPinned() const override { 29724: 29724: return false; 29724: } 29724: bool IsValuePinned() const override { 29724: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29724: return false; 29724: } 29724: return iter_->IsValuePinned(); 29724: } 29724: 29724: private: 29724: void UpdateKeyAndValueBuffer() { 29724: key_buf_.clear(); 29724: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29724: value_buf_.clear(); 29724: } 29724: if (!Valid()) { 29724: return; 29724: } 29724: Slice original_key = iter_->key(); 29724: ReplaceInternalKeyWithMinTimestamp(&key_buf_, original_key, ts_sz_); 29724: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29724: Slice original_value = iter_->value(); 29724: AppendUserKeyWithMinTimestamp(&value_buf_, original_value, ts_sz_); 29724: } 29724: } 29724: bool arena_mode_; 29724: MemTableIterator::Kind kind_; 29724: size_t ts_sz_; 29724: MemTableIterator* iter_; 29724: std::string key_buf_; 29724: std::string value_buf_; 29724: }; 29724: 29724: InternalIterator* MemTable::NewTimestampStrippingIterator( 29724: const ReadOptions& read_options, 29724: UnownedPtr seqno_to_time_mapping, Arena* arena, 29724: const SliceTransform* prefix_extractor, size_t ts_sz) { 29724: 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: arena != nullptr 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "arena != nullptr" 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: auto mem = arena->AllocateAligned(sizeof(TimestampStrippingIterator)); 29724: return new (mem) TimestampStrippingIterator( 29724: MemTableIterator::kPointEntries, *this, read_options, 29724: seqno_to_time_mapping, arena, prefix_extractor, ts_sz); 29724: } 29724: 29724: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIterator( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: bool immutable_memtable) { 29724: if (read_options.ignore_range_deletions || 29724: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29724: return nullptr; 29724: } 29724: return NewRangeTombstoneIteratorInternal(read_options, read_seq, 29724: immutable_memtable); 29724: } 29724: 29724: FragmentedRangeTombstoneIterator* 29724: MemTable::NewTimestampStrippingRangeTombstoneIterator( 29724: const ReadOptions& read_options, SequenceNumber read_seq, size_t ts_sz) { 29724: if (read_options.ignore_range_deletions || 29724: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29724: return nullptr; 29724: } 29724: if (!timestamp_stripping_fragmented_range_tombstone_list_) { 29724: 29724: auto* unfragmented_iter = new TimestampStrippingIterator( 29724: MemTableIterator::kRangeDelEntries, *this, ReadOptions(), 29724: nullptr, nullptr, 29724: nullptr, ts_sz); 29724: 29724: timestamp_stripping_fragmented_range_tombstone_list_ = 29724: std::make_unique( 29724: std::unique_ptr(unfragmented_iter), 29724: comparator_.comparator); 29724: } 29724: return new FragmentedRangeTombstoneIterator( 29724: timestamp_stripping_fragmented_range_tombstone_list_.get(), 29724: comparator_.comparator, read_seq, read_options.timestamp); 29724: } 29724: 29724: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIteratorInternal( 29724: const ReadOptions& read_options, SequenceNumber read_seq, 29724: bool immutable_memtable) { 29724: if (immutable_memtable) { 29724: 29724: 29724: 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: IsFragmentedRangeTombstonesConstructed() 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "IsFragmentedRangeTombstonesConstructed()" 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: return new FragmentedRangeTombstoneIterator( 29724: fragmented_range_tombstone_list_.get(), comparator_.comparator, 29724: read_seq, read_options.timestamp); 29724: } 29724: 29724: 29724: std::shared_ptr cache = 29724: std::atomic_load_explicit(cached_range_tombstone_.Access(), 29724: std::memory_order_relaxed); 29724: 29724: if (!cache->initialized.load(std::memory_order_acquire)) { 29724: cache->reader_mutex.lock(); 29724: if (!cache->tombstones) { 29724: auto* unfragmented_iter = new MemTableIterator( 29724: MemTableIterator::kRangeDelEntries, *this, read_options); 29724: cache->tombstones.reset(new FragmentedRangeTombstoneList( 29724: std::unique_ptr(unfragmented_iter), 29724: comparator_.comparator)); 29724: cache->initialized.store(true, std::memory_order_release); 29724: } 29724: cache->reader_mutex.unlock(); 29724: } 29724: 29724: auto* fragmented_iter = new FragmentedRangeTombstoneIterator( 29724: cache, comparator_.comparator, read_seq, read_options.timestamp); 29724: return fragmented_iter; 29724: } 29724: 29724: void MemTable::ConstructFragmentedRangeTombstones() { 29724: 29724: 29724: 29724: if (!is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29724: 29724: auto* unfragmented_iter = new MemTableIterator( 29724: MemTableIterator::kRangeDelEntries, *this, ReadOptions()); 29724: 29724: fragmented_range_tombstone_list_ = 29724: std::make_unique( 29724: std::unique_ptr(unfragmented_iter), 29724: comparator_.comparator); 29724: } 29724: } 29724: 29724: port::RWMutex* MemTable::GetLock(const Slice& key) { 29724: return &locks_[GetSliceRangedNPHash(key, locks_.size())]; 29724: } 29724: 29724: ReadOnlyMemTable::MemTableStats MemTable::ApproximateStats( 29724: const Slice& start_ikey, const Slice& end_ikey) { 29724: uint64_t entry_count = table_->ApproximateNumEntries(start_ikey, end_ikey); 29724: entry_count += range_del_table_->ApproximateNumEntries(start_ikey, end_ikey); 29724: if (entry_count == 0) { 29724: return {0, 0}; 29724: } 29724: uint64_t n = num_entries_.load(std::memory_order_relaxed); 29724: if (n == 0) { 29724: return {0, 0}; 29724: } 29724: if (entry_count > n) { 29724: 29724: 29724: 29724: entry_count = n; 29724: } 29724: uint64_t data_size = data_size_.load(std::memory_order_relaxed); 29724: return {entry_count * (data_size / n), entry_count}; 29724: } 29724: 29724: Status MemTable::VerifyEncodedEntry(Slice encoded, 29724: const ProtectionInfoKVOS64& kv_prot_info) { 29724: uint32_t ikey_len = 0; 29724: if (!GetVarint32(&encoded, &ikey_len)) { 29724: return Status::Corruption("Unable to parse internal key length"); 29724: } 29724: if (ikey_len < 8 + ts_sz_) { 29724: return Status::Corruption("Internal key length too short"); 29724: } 29724: if (ikey_len > encoded.size()) { 29724: return Status::Corruption("Internal key length too long"); 29724: } 29724: uint32_t value_len = 0; 29724: const size_t user_key_len = ikey_len - 8; 29724: Slice key(encoded.data(), user_key_len); 29724: encoded.remove_prefix(user_key_len); 29724: 29724: uint64_t packed = DecodeFixed64(encoded.data()); 29724: ValueType value_type = kMaxValue; 29724: SequenceNumber sequence_number = kMaxSequenceNumber; 29724: UnPackSequenceAndType(packed, &sequence_number, &value_type); 29724: encoded.remove_prefix(8); 29724: 29724: if (!GetVarint32(&encoded, &value_len)) { 29724: return Status::Corruption("Unable to parse value length"); 29724: } 29724: if (value_len < encoded.size()) { 29724: return Status::Corruption("Value length too short"); 29724: } 29724: if (value_len > encoded.size()) { 29724: return Status::Corruption("Value length too long"); 29724: } 29724: Slice value(encoded.data(), value_len); 29724: 29724: return kv_prot_info.StripS(sequence_number) 29724: .StripKVO(key, value, value_type) 29724: .GetStatus(); 29724: } 29724: 29724: void MemTable::UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 29724: const Slice& key, const Slice& value, 29724: ValueType type, SequenceNumber s, 29724: char* checksum_ptr) { 29724: if (moptions_.protection_bytes_per_key == 0) { 29724: return; 29724: } 29724: 29724: if (kv_prot_info == nullptr) { 29724: ProtectionInfo64() 29724: .ProtectKVO(key, value, type) 29724: .ProtectS(s) 29724: .Encode(static_cast(moptions_.protection_bytes_per_key), 29724: checksum_ptr); 29724: } else { 29724: kv_prot_info->Encode( 29724: static_cast(moptions_.protection_bytes_per_key), checksum_ptr); 29724: } 29724: } 29724: 29724: Status MemTable::Add(SequenceNumber s, ValueType type, 29724: const Slice& key, 29724: const Slice& value, 29724: const ProtectionInfoKVOS64* kv_prot_info, 29724: bool allow_concurrent, 29724: MemTablePostProcessInfo* post_process_info, void** hint) { 29724: 29724: 29724: 29724: 29724: 29724: 29724: uint32_t key_size = static_cast(key.size()); 29724: uint32_t val_size = static_cast(value.size()); 29724: uint32_t internal_key_size = key_size + 8; 29724: const uint32_t encoded_len = VarintLength(internal_key_size) + 29724: internal_key_size + VarintLength(val_size) + 29724: val_size + moptions_.protection_bytes_per_key; 29724: char* buf = nullptr; 29724: std::unique_ptr& table = 29724: type == kTypeRangeDeletion ? range_del_table_ : table_; 29724: KeyHandle handle = table->Allocate(encoded_len, &buf); 29724: 29724: char* p = EncodeVarint32(buf, internal_key_size); 29724: memcpy(p, key.data(), key_size); 29724: Slice key_slice(p, key_size); 29724: p += key_size; 29724: uint64_t packed = PackSequenceAndType(s, type); 29724: EncodeFixed64(p, packed); 29724: p += 8; 29724: p = EncodeVarint32(p, val_size); 29724: memcpy(p, value.data(), val_size); 29724: 29724: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: (unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len 29724: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "(unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len" 29724: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: 29724: # 942 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: UpdateEntryChecksum(kv_prot_info, key, value, type, s, 29724: buf + encoded_len - moptions_.protection_bytes_per_key); 29724: Slice encoded(buf, encoded_len - moptions_.protection_bytes_per_key); 29724: if (kv_prot_info != nullptr) { 29724: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:Encoded", &encoded); 29724: Status status = VerifyEncodedEntry(encoded, *kv_prot_info); 29724: if (!status.ok()) { 29724: return status; 29724: } 29724: } 29724: 29724: Slice key_without_ts = StripTimestampFromUserKey(key, ts_sz_); 29724: 29724: if (!allow_concurrent) { 29724: 29724: 29724: if (table == table_ && insert_with_hint_prefix_extractor_ != nullptr && 29724: insert_with_hint_prefix_extractor_->InDomain(key_slice)) { 29724: Slice prefix = insert_with_hint_prefix_extractor_->Transform(key_slice); 29724: bool res = table->InsertKeyWithHint(handle, &insert_hints_[prefix]); 29724: if ((__builtin_expect((!res), 0))) { 29724: return Status::TryAgain("key+seq exists"); 29724: } 29724: } else { 29724: bool res = table->InsertKey(handle); 29724: if ((__builtin_expect((!res), 0))) { 29724: return Status::TryAgain("key+seq exists"); 29724: } 29724: } 29724: 29724: 29724: 29724: num_entries_.store(num_entries_.load(std::memory_order_relaxed) + 1, 29724: std::memory_order_relaxed); 29724: data_size_.store(data_size_.load(std::memory_order_relaxed) + encoded_len, 29724: std::memory_order_relaxed); 29724: if (type == kTypeDeletion || type == kTypeSingleDeletion || 29724: type == kTypeDeletionWithTimestamp) { 29724: num_deletes_.store(num_deletes_.load(std::memory_order_relaxed) + 1, 29724: std::memory_order_relaxed); 29724: } else if (type == kTypeRangeDeletion) { 29724: uint64_t val = num_range_deletes_.load(std::memory_order_relaxed) + 1; 29724: num_range_deletes_.store(val, std::memory_order_relaxed); 29724: } 29724: 29724: if (bloom_filter_ && prefix_extractor_ && 29724: prefix_extractor_->InDomain(key_without_ts)) { 29724: bloom_filter_->Add(prefix_extractor_->Transform(key_without_ts)); 29724: } 29724: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 29724: bloom_filter_->Add(key_without_ts); 29724: } 29724: 29724: 29724: 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: first_seqno_ == 0 || s >= first_seqno_ 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "first_seqno_ == 0 || s >= first_seqno_" 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (first_seqno_ == 0) { 29724: first_seqno_.store(s, std::memory_order_relaxed); 29724: 29724: if (earliest_seqno_ == kMaxSequenceNumber) { 29724: earliest_seqno_.store(GetFirstSequenceNumber(), 29724: std::memory_order_relaxed); 29724: } 29724: 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: first_seqno_.load() >= earliest_seqno_.load() 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "first_seqno_.load() >= earliest_seqno_.load()" 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: post_process_info == nullptr 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "post_process_info == nullptr" 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: 29724: MaybeUpdateNewestUDT(key_slice); 29724: UpdateFlushState(); 29724: } else { 29724: bool res = (hint == nullptr) 29724: ? table->InsertKeyConcurrently(handle) 29724: : table->InsertKeyWithHintConcurrently(handle, hint); 29724: if ((__builtin_expect((!res), 0))) { 29724: return Status::TryAgain("key+seq exists"); 29724: } 29724: 29724: 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: post_process_info != nullptr 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "post_process_info != nullptr" 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: post_process_info->num_entries++; 29724: post_process_info->data_size += encoded_len; 29724: if (type == kTypeDeletion) { 29724: post_process_info->num_deletes++; 29724: } 29724: 29724: if (bloom_filter_ && prefix_extractor_ && 29724: prefix_extractor_->InDomain(key_without_ts)) { 29724: bloom_filter_->AddConcurrently( 29724: prefix_extractor_->Transform(key_without_ts)); 29724: } 29724: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 29724: bloom_filter_->AddConcurrently(key_without_ts); 29724: } 29724: 29724: 29724: uint64_t cur_seq_num = first_seqno_.load(std::memory_order_relaxed); 29724: while ((cur_seq_num == 0 || s < cur_seq_num) && 29724: !first_seqno_.compare_exchange_weak(cur_seq_num, s)) { 29724: } 29724: uint64_t cur_earliest_seqno = 29724: earliest_seqno_.load(std::memory_order_relaxed); 29724: while ( 29724: (cur_earliest_seqno == kMaxSequenceNumber || s < cur_earliest_seqno) && 29724: !earliest_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) { 29724: } 29724: } 29724: if (type == kTypeRangeDeletion) { 29724: auto new_cache = std::make_shared(); 29724: size_t size = cached_range_tombstone_.Size(); 29724: if (allow_concurrent) { 29724: post_process_info->num_range_deletes++; 29724: range_del_mutex_.lock(); 29724: } 29724: for (size_t i = 0; i < size; ++i) { 29724: std::shared_ptr* local_cache_ref_ptr = 29724: cached_range_tombstone_.AccessAtCore(i); 29724: auto new_local_cache_ref = std::make_shared< 29724: const std::shared_ptr>(new_cache); 29724: 29724: 29724: 29724: 29724: 29724: std::atomic_store_explicit( 29724: local_cache_ref_ptr, 29724: std::shared_ptr( 29724: new_local_cache_ref, new_cache.get()), 29724: std::memory_order_relaxed); 29724: } 29724: 29724: if (allow_concurrent) { 29724: range_del_mutex_.unlock(); 29724: } 29724: is_range_del_table_empty_.store(false, std::memory_order_relaxed); 29724: } 29724: UpdateOldestKeyTime(); 29724: 29724: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:BeforeReturn:Encoded", &encoded); 29724: return Status::OK(); 29724: } 29724: 29724: 29724: namespace { 29724: 29724: struct Saver { 29724: Status* status; 29724: const LookupKey* key; 29724: bool* found_final_value; 29724: bool* merge_in_progress; 29724: std::string* value; 29724: PinnableWideColumns* columns; 29724: SequenceNumber seq; 29724: std::string* timestamp; 29724: const MergeOperator* merge_operator; 29724: 29724: MergeContext* merge_context; 29724: SequenceNumber max_covering_tombstone_seq; 29724: MemTable* mem; 29724: Logger* logger; 29724: Statistics* statistics; 29724: bool inplace_update_support; 29724: bool do_merge; 29724: SystemClock* clock; 29724: 29724: ReadCallback* callback_; 29724: bool* is_blob_index; 29724: bool allow_data_in_errors; 29724: uint32_t protection_bytes_per_key; 29724: bool CheckCallback(SequenceNumber _seq) { 29724: if (callback_) { 29724: return callback_->IsVisible(_seq); 29724: } 29724: return true; 29724: } 29724: }; 29724: } 29724: 29724: static bool SaveValue(void* arg, const char* entry) { 29724: Saver* s = static_cast(arg); 29724: 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s != nullptr 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s != nullptr" 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: !s->value || !s->columns 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "!s->value || !s->columns" 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: !*(s->found_final_value) 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "!*(s->found_final_value)" 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s->status->ok() || s->status->IsMergeInProgress() 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s->status->ok() || s->status->IsMergeInProgress()" 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: MergeContext* merge_context = s->merge_context; 29724: SequenceNumber max_covering_tombstone_seq = s->max_covering_tombstone_seq; 29724: const MergeOperator* merge_operator = s->merge_operator; 29724: 29724: 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: merge_context != nullptr 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "merge_context != nullptr" 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: 29724: 29724: uint32_t key_length = 0; 29724: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29724: 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: key_length >= 8 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "key_length >= 8" 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: Slice user_key_slice = Slice(key_ptr, key_length - 8); 29724: const Comparator* user_comparator = 29724: s->mem->GetInternalKeyComparator().user_comparator(); 29724: size_t ts_sz = user_comparator->timestamp_size(); 29724: if (ts_sz && s->timestamp && max_covering_tombstone_seq > 0) { 29724: 29724: 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s->timestamp->size() == ts_sz 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s->timestamp->size() == ts_sz" 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: if (user_comparator->EqualWithoutTimestamp(user_key_slice, 29724: s->key->user_key())) { 29724: 29724: rocksdb::SyncPoint::GetInstance()->Process("Memtable::SaveValue:Found:entry", &entry); 29724: std::optional read_lock; 29724: if (s->inplace_update_support) { 29724: read_lock.emplace(s->mem->GetLock(s->key->user_key())); 29724: } 29724: 29724: if (s->protection_bytes_per_key > 0) { 29724: *(s->status) = MemTable::VerifyEntryChecksum( 29724: entry, s->protection_bytes_per_key, s->allow_data_in_errors); 29724: if (!s->status->ok()) { 29724: *(s->found_final_value) = true; 29724: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1160" "] " "In SaveValue: %s"), RocksLogShorterFileName("./db/memtable.cc"), s->status->getState()); 29724: 29724: return false; 29724: } 29724: } 29724: 29724: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29724: ValueType type; 29724: SequenceNumber seq; 29724: UnPackSequenceAndType(tag, &seq, &type); 29724: 29724: if (!s->CheckCallback(seq)) { 29724: return true; 29724: } 29724: 29724: if (s->seq == kMaxSequenceNumber) { 29724: s->seq = seq; 29724: if (s->seq > max_covering_tombstone_seq) { 29724: if (ts_sz && s->timestamp != nullptr) { 29724: 29724: 29724: 29724: 29724: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 29724: s->timestamp->assign(ts.data(), ts_sz); 29724: } 29724: } else { 29724: s->seq = max_covering_tombstone_seq; 29724: } 29724: } 29724: 29724: if (ts_sz > 0 && s->timestamp != nullptr) { 29724: if (!s->timestamp->empty()) { 29724: 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ts_sz == s->timestamp->size() 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "ts_sz == s->timestamp->size()" 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: 29724: const std::string kMaxTs(ts_sz, '\xff'); 29724: if (s->timestamp->empty() || 29724: user_comparator->CompareTimestamp(*(s->timestamp), kMaxTs) == 0) { 29724: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 29724: s->timestamp->assign(ts.data(), ts_sz); 29724: } 29724: } 29724: 29724: if ((type == kTypeValue || type == kTypeMerge || type == kTypeBlobIndex || 29724: type == kTypeWideColumnEntity || type == kTypeDeletion || 29724: type == kTypeSingleDeletion || type == kTypeDeletionWithTimestamp || 29724: type == kTypeValuePreferredSeqno) && 29724: max_covering_tombstone_seq > seq) { 29724: type = kTypeRangeDeletion; 29724: } 29724: switch (type) { 29724: case kTypeBlobIndex: { 29724: if (!s->do_merge) { 29724: *(s->status) = Status::NotSupported( 29724: "GetMergeOperands not supported by stacked BlobDB"); 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: 29724: if (*(s->merge_in_progress)) { 29724: *(s->status) = Status::NotSupported( 29724: "Merge operator not supported by stacked BlobDB"); 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: 29724: if (s->is_blob_index == nullptr) { 29724: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1228" "] " "Encountered unexpected blob index."), RocksLogShorterFileName("./db/memtable.cc")); 29724: *(s->status) = Status::NotSupported( 29724: "Encountered unexpected blob index. Please open DB with " 29724: "ROCKSDB_NAMESPACE::blob_db::BlobDB."); 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: 29724: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29724: 29724: *(s->status) = Status::OK(); 29724: 29724: if (s->value) { 29724: s->value->assign(v.data(), v.size()); 29724: } else if (s->columns) { 29724: s->columns->SetPlainValue(v); 29724: } 29724: 29724: *(s->found_final_value) = true; 29724: *(s->is_blob_index) = true; 29724: 29724: return false; 29724: } 29724: case kTypeValue: 29724: case kTypeValuePreferredSeqno: { 29724: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29724: if (type == kTypeValuePreferredSeqno) { 29724: v = ParsePackedValueForValue(v); 29724: } 29724: 29724: ReadOnlyMemTable::HandleTypeValue( 29724: s->key->user_key(), v, s->inplace_update_support == false, 29724: s->do_merge, *(s->merge_in_progress), merge_context, 29724: s->merge_operator, s->clock, s->statistics, s->logger, s->status, 29724: s->value, s->columns, s->is_blob_index); 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: case kTypeWideColumnEntity: { 29724: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29724: 29724: *(s->status) = Status::OK(); 29724: 29724: if (!s->do_merge) { 29724: 29724: 29724: 29724: Slice value_of_default; 29724: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 29724: v, value_of_default); 29724: 29724: if (s->status->ok()) { 29724: merge_context->PushOperand( 29724: value_of_default, 29724: s->inplace_update_support == false ); 29724: } 29724: } else if (*(s->merge_in_progress)) { 29724: 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s->do_merge 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s->do_merge" 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: 29724: if (s->value || s->columns) { 29724: 29724: 29724: 29724: *(s->status) = MergeHelper::TimedFullMerge( 29724: merge_operator, s->key->user_key(), MergeHelper::kWideBaseValue, 29724: v, merge_context->GetOperands(), s->logger, s->statistics, 29724: s->clock, true, 29724: nullptr, s->value, s->columns); 29724: } 29724: } else if (s->value) { 29724: Slice value_of_default; 29724: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 29724: v, value_of_default); 29724: if (s->status->ok()) { 29724: s->value->assign(value_of_default.data(), value_of_default.size()); 29724: } 29724: } else if (s->columns) { 29724: *(s->status) = s->columns->SetWideColumnValue(v); 29724: } 29724: 29724: *(s->found_final_value) = true; 29724: 29724: if (s->is_blob_index != nullptr) { 29724: *(s->is_blob_index) = false; 29724: } 29724: 29724: return false; 29724: } 29724: case kTypeDeletion: 29724: case kTypeDeletionWithTimestamp: 29724: case kTypeSingleDeletion: 29724: case kTypeRangeDeletion: { 29724: ReadOnlyMemTable::HandleTypeDeletion( 29724: s->key->user_key(), *(s->merge_in_progress), s->merge_context, 29724: s->merge_operator, s->clock, s->statistics, s->logger, s->status, 29724: s->value, s->columns); 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: case kTypeMerge: { 29724: if (!merge_operator) { 29724: *(s->status) = Status::InvalidArgument( 29724: "merge_operator is not properly initialized."); 29724: 29724: 29724: 29724: 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29724: *(s->merge_in_progress) = true; 29724: merge_context->PushOperand( 29724: v, s->inplace_update_support == false ); 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.internal_merge_point_lookup_count += 1; } static_assert(true, "semicolon required"); 29724: 29724: if (s->do_merge && merge_operator->ShouldMerge( 29724: merge_context->GetOperandsDirectionBackward())) { 29724: if (s->value || s->columns) { 29724: 29724: 29724: 29724: *(s->status) = MergeHelper::TimedFullMerge( 29724: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 29724: merge_context->GetOperands(), s->logger, s->statistics, 29724: s->clock, true, 29724: nullptr, s->value, s->columns); 29724: } 29724: 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: if (merge_context->get_merge_operands_options != nullptr && 29724: merge_context->get_merge_operands_options->continue_cb != nullptr && 29724: !merge_context->get_merge_operands_options->continue_cb(v)) { 29724: 29724: *(s->found_final_value) = true; 29724: return false; 29724: } 29724: 29724: return true; 29724: } 29724: default: { 29724: std::string msg("Corrupted value not expected."); 29724: if (s->allow_data_in_errors) { 29724: msg.append("Unrecognized value type: " + 29724: std::to_string(static_cast(type)) + ". "); 29724: msg.append("User key: " + user_key_slice.ToString( true) + 29724: ". "); 29724: msg.append("seq: " + std::to_string(seq) + "."); 29724: } 29724: *(s->found_final_value) = true; 29724: *(s->status) = Status::Corruption(msg.c_str()); 29724: return false; 29724: } 29724: } 29724: } 29724: 29724: 29724: return false; 29724: } 29724: 29724: bool MemTable::Get(const LookupKey& key, std::string* value, 29724: PinnableWideColumns* columns, std::string* timestamp, 29724: Status* s, MergeContext* merge_context, 29724: SequenceNumber* max_covering_tombstone_seq, 29724: SequenceNumber* seq, const ReadOptions& read_opts, 29724: bool immutable_memtable, ReadCallback* callback, 29724: bool* is_blob_index, bool do_merge) { 29724: 29724: if (IsEmpty()) { 29724: 29724: return false; 29724: } 29724: 29724: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 29724: 29724: std::unique_ptr range_del_iter( 29724: NewRangeTombstoneIterator(read_opts, 29724: GetInternalKeySeqno(key.internal_key()), 29724: immutable_memtable)); 29724: if (range_del_iter != nullptr) { 29724: SequenceNumber covering_seq = 29724: range_del_iter->MaxCoveringTombstoneSeqnum(key.user_key()); 29724: if (covering_seq > *max_covering_tombstone_seq) { 29724: *max_covering_tombstone_seq = covering_seq; 29724: if (timestamp) { 29724: 29724: 29724: timestamp->assign(range_del_iter->timestamp().data(), 29724: range_del_iter->timestamp().size()); 29724: } 29724: } 29724: } 29724: 29724: bool found_final_value = false; 29724: bool merge_in_progress = s->IsMergeInProgress(); 29724: bool may_contain = true; 29724: Slice user_key_without_ts = StripTimestampFromUserKey(key.user_key(), ts_sz_); 29724: bool bloom_checked = false; 29724: if (bloom_filter_) { 29724: 29724: 29724: if (moptions_.memtable_whole_key_filtering) { 29724: may_contain = bloom_filter_->MayContain(user_key_without_ts); 29724: bloom_checked = true; 29724: } else { 29724: 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: prefix_extractor_ 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "prefix_extractor_" 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (prefix_extractor_->InDomain(user_key_without_ts)) { 29724: may_contain = bloom_filter_->MayContain( 29724: prefix_extractor_->Transform(user_key_without_ts)); 29724: bloom_checked = true; 29724: } 29724: } 29724: } 29724: 29724: if (bloom_filter_ && !may_contain) { 29724: 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29724: *seq = kMaxSequenceNumber; 29724: } else { 29724: if (bloom_checked) { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29724: } 29724: GetFromTable(key, *max_covering_tombstone_seq, do_merge, callback, 29724: is_blob_index, value, columns, timestamp, s, merge_context, 29724: seq, &found_final_value, &merge_in_progress); 29724: } 29724: 29724: 29724: 29724: if (!found_final_value && merge_in_progress) { 29724: if (s->ok()) { 29724: *s = Status::MergeInProgress(); 29724: } else { 29724: 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s->IsMergeInProgress() 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s->IsMergeInProgress()" 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: } 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: return found_final_value; 29724: } 29724: 29724: void MemTable::GetFromTable(const LookupKey& key, 29724: SequenceNumber max_covering_tombstone_seq, 29724: bool do_merge, ReadCallback* callback, 29724: bool* is_blob_index, std::string* value, 29724: PinnableWideColumns* columns, 29724: std::string* timestamp, Status* s, 29724: MergeContext* merge_context, SequenceNumber* seq, 29724: bool* found_final_value, bool* merge_in_progress) { 29724: Saver saver; 29724: saver.status = s; 29724: saver.found_final_value = found_final_value; 29724: saver.merge_in_progress = merge_in_progress; 29724: saver.key = &key; 29724: saver.value = value; 29724: saver.columns = columns; 29724: saver.timestamp = timestamp; 29724: saver.seq = kMaxSequenceNumber; 29724: saver.mem = this; 29724: saver.merge_context = merge_context; 29724: saver.max_covering_tombstone_seq = max_covering_tombstone_seq; 29724: saver.merge_operator = moptions_.merge_operator; 29724: saver.logger = moptions_.info_log; 29724: saver.inplace_update_support = moptions_.inplace_update_support; 29724: saver.statistics = moptions_.statistics; 29724: saver.clock = clock_; 29724: saver.callback_ = callback; 29724: saver.is_blob_index = is_blob_index; 29724: saver.do_merge = do_merge; 29724: saver.allow_data_in_errors = moptions_.allow_data_in_errors; 29724: saver.protection_bytes_per_key = moptions_.protection_bytes_per_key; 29724: 29724: if (!moptions_.paranoid_memory_checks) { 29724: table_->Get(key, &saver, SaveValue); 29724: } else { 29724: Status check_s = table_->GetAndValidate(key, &saver, SaveValue, 29724: moptions_.allow_data_in_errors); 29724: if (check_s.IsCorruption()) { 29724: *(saver.status) = check_s; 29724: 29724: *(saver.found_final_value) = true; 29724: } 29724: } 29724: 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: s->ok() || s->IsMergeInProgress() || *found_final_value 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "s->ok() || s->IsMergeInProgress() || *found_final_value" 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: *seq = saver.seq; 29724: } 29724: 29724: void MemTable::MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29724: ReadCallback* callback, bool immutable_memtable) { 29724: 29724: if (IsEmpty()) { 29724: 29724: return; 29724: } 29724: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 29724: 29724: 29724: 29724: 29724: bool no_range_del = read_options.ignore_range_deletions || 29724: is_range_del_table_empty_.load(std::memory_order_relaxed); 29724: MultiGetRange temp_range(*range, range->begin(), range->end()); 29724: if (bloom_filter_ && no_range_del) { 29724: bool whole_key = 29724: !prefix_extractor_ || moptions_.memtable_whole_key_filtering; 29724: std::array bloom_keys; 29724: std::array may_match; 29724: std::array range_indexes; 29724: int num_keys = 0; 29724: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 29724: if (whole_key) { 29724: bloom_keys[num_keys] = iter->ukey_without_ts; 29724: range_indexes[num_keys++] = iter.index(); 29724: } else if (prefix_extractor_->InDomain(iter->ukey_without_ts)) { 29724: bloom_keys[num_keys] = 29724: prefix_extractor_->Transform(iter->ukey_without_ts); 29724: range_indexes[num_keys++] = iter.index(); 29724: } 29724: } 29724: bloom_filter_->MayContain(num_keys, bloom_keys.data(), may_match.data()); 29724: for (int i = 0; i < num_keys; ++i) { 29724: if (!may_match[i]) { 29724: temp_range.SkipIndex(range_indexes[i]); 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29724: } else { 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29724: } 29724: } 29724: } 29724: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 29724: bool found_final_value{false}; 29724: bool merge_in_progress = iter->s->IsMergeInProgress(); 29724: if (!no_range_del) { 29724: std::unique_ptr range_del_iter( 29724: NewRangeTombstoneIteratorInternal( 29724: read_options, GetInternalKeySeqno(iter->lkey->internal_key()), 29724: immutable_memtable)); 29724: SequenceNumber covering_seq = 29724: range_del_iter->MaxCoveringTombstoneSeqnum(iter->lkey->user_key()); 29724: if (covering_seq > iter->max_covering_tombstone_seq) { 29724: iter->max_covering_tombstone_seq = covering_seq; 29724: if (iter->timestamp) { 29724: 29724: 29724: iter->timestamp->assign(range_del_iter->timestamp().data(), 29724: range_del_iter->timestamp().size()); 29724: } 29724: } 29724: } 29724: SequenceNumber dummy_seq; 29724: GetFromTable(*(iter->lkey), iter->max_covering_tombstone_seq, true, 29724: callback, &iter->is_blob_index, 29724: iter->value ? iter->value->GetSelf() : nullptr, iter->columns, 29724: iter->timestamp, iter->s, &(iter->merge_context), &dummy_seq, 29724: &found_final_value, &merge_in_progress); 29724: 29724: if (!found_final_value && merge_in_progress) { 29724: if (iter->s->ok()) { 29724: *(iter->s) = Status::MergeInProgress(); 29724: } else { 29724: 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: iter->s->IsMergeInProgress() 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "iter->s->IsMergeInProgress()" 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: } 29724: } 29724: 29724: if (found_final_value || 29724: (!iter->s->ok() && !iter->s->IsMergeInProgress())) { 29724: 29724: 29724: 29724: 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: found_final_value 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "found_final_value" 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (iter->value) { 29724: iter->value->PinSelf(); 29724: range->AddValueSize(iter->value->size()); 29724: } else { 29724: 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: iter->columns 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "iter->columns" 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: range->AddValueSize(iter->columns->serialized_size()); 29724: } 29724: 29724: range->MarkKeyDone(iter); 29724: RecordTick(moptions_.statistics, MEMTABLE_HIT); 29724: if (range->GetValueSize() > read_options.value_size_soft_limit) { 29724: 29724: for (auto range_iter = range->begin(); range_iter != range->end(); 29724: ++range_iter) { 29724: range->MarkKeyDone(range_iter); 29724: *(range_iter->s) = Status::Aborted(); 29724: } 29724: break; 29724: } 29724: } 29724: } 29724: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 29724: } 29724: 29724: Status MemTable::Update(SequenceNumber seq, ValueType value_type, 29724: const Slice& key, const Slice& value, 29724: const ProtectionInfoKVOS64* kv_prot_info) { 29724: LookupKey lkey(key, seq); 29724: Slice mem_key = lkey.memtable_key(); 29724: 29724: std::unique_ptr iter( 29724: table_->GetDynamicPrefixIterator()); 29724: iter->Seek(lkey.internal_key(), mem_key.data()); 29724: 29724: if (iter->Valid()) { 29724: 29724: 29724: 29724: 29724: const char* entry = iter->key(); 29724: uint32_t key_length = 0; 29724: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29724: if (comparator_.comparator.user_comparator()->Equal( 29724: Slice(key_ptr, key_length - 8), lkey.user_key())) { 29724: 29724: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29724: ValueType type; 29724: SequenceNumber existing_seq; 29724: UnPackSequenceAndType(tag, &existing_seq, &type); 29724: 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: existing_seq != seq 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "existing_seq != seq" 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (type == value_type) { 29724: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 29724: uint32_t prev_size = static_cast(prev_value.size()); 29724: uint32_t new_size = static_cast(value.size()); 29724: 29724: 29724: if (new_size <= prev_size) { 29724: WriteLock wl(GetLock(lkey.user_key())); 29724: char* p = 29724: EncodeVarint32(const_cast(key_ptr) + key_length, new_size); 29724: memcpy(p, value.data(), value.size()); 29724: 29724: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: (unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size()) 29724: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "(unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size())" 29724: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: 29724: 29724: # 1662 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 29724: if (kv_prot_info != nullptr) { 29724: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29724: 29724: updated_kv_prot_info.UpdateS(seq, existing_seq); 29724: UpdateEntryChecksum(&updated_kv_prot_info, key, value, type, 29724: existing_seq, p + value.size()); 29724: Slice encoded(entry, p + value.size() - entry); 29724: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 29724: } else { 29724: UpdateEntryChecksum(nullptr, key, value, type, existing_seq, 29724: p + value.size()); 29724: } 29724: return Status::OK(); 29724: } 29724: } 29724: } 29724: } 29724: 29724: 29724: return Add(seq, value_type, key, value, kv_prot_info); 29724: } 29724: 29724: Status MemTable::UpdateCallback(SequenceNumber seq, const Slice& key, 29724: const Slice& delta, 29724: const ProtectionInfoKVOS64* kv_prot_info) { 29724: LookupKey lkey(key, seq); 29724: Slice memkey = lkey.memtable_key(); 29724: 29724: std::unique_ptr iter( 29724: table_->GetDynamicPrefixIterator()); 29724: iter->Seek(lkey.internal_key(), memkey.data()); 29724: 29724: if (iter->Valid()) { 29724: 29724: 29724: 29724: 29724: const char* entry = iter->key(); 29724: uint32_t key_length = 0; 29724: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29724: if (comparator_.comparator.user_comparator()->Equal( 29724: Slice(key_ptr, key_length - 8), lkey.user_key())) { 29724: 29724: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29724: ValueType type; 29724: uint64_t existing_seq; 29724: UnPackSequenceAndType(tag, &existing_seq, &type); 29724: if (type == kTypeValue) { 29724: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 29724: uint32_t prev_size = static_cast(prev_value.size()); 29724: 29724: char* prev_buffer = const_cast(prev_value.data()); 29724: uint32_t new_prev_size = prev_size; 29724: 29724: std::string str_value; 29724: WriteLock wl(GetLock(lkey.user_key())); 29724: auto status = moptions_.inplace_callback(prev_buffer, &new_prev_size, 29724: delta, &str_value); 29724: if (status == UpdateStatus::UPDATED_INPLACE) { 29724: 29724: 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: new_prev_size <= prev_size 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "new_prev_size <= prev_size" 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: if (new_prev_size < prev_size) { 29724: 29724: char* p = EncodeVarint32(const_cast(key_ptr) + key_length, 29724: new_prev_size); 29724: if (VarintLength(new_prev_size) < VarintLength(prev_size)) { 29724: 29724: memcpy(p, prev_buffer, new_prev_size); 29724: prev_buffer = p; 29724: } 29724: } 29724: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 29724: UpdateFlushState(); 29724: Slice new_value(prev_buffer, new_prev_size); 29724: if (kv_prot_info != nullptr) { 29724: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29724: 29724: updated_kv_prot_info.UpdateS(seq, existing_seq); 29724: updated_kv_prot_info.UpdateV(delta, new_value); 29724: Slice encoded(entry, prev_buffer + new_prev_size - entry); 29724: UpdateEntryChecksum(&updated_kv_prot_info, key, new_value, type, 29724: existing_seq, prev_buffer + new_prev_size); 29724: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 29724: } else { 29724: UpdateEntryChecksum(nullptr, key, new_value, type, existing_seq, 29724: prev_buffer + new_prev_size); 29724: } 29724: return Status::OK(); 29724: } else if (status == UpdateStatus::UPDATED) { 29724: Status s; 29724: if (kv_prot_info != nullptr) { 29724: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29724: updated_kv_prot_info.UpdateV(delta, str_value); 29724: s = Add(seq, kTypeValue, key, Slice(str_value), 29724: &updated_kv_prot_info); 29724: } else { 29724: s = Add(seq, kTypeValue, key, Slice(str_value), 29724: nullptr ); 29724: } 29724: RecordTick(moptions_.statistics, NUMBER_KEYS_WRITTEN); 29724: UpdateFlushState(); 29724: return s; 29724: } else if (status == UpdateStatus::UPDATE_FAILED) { 29724: 29724: 29724: UpdateFlushState(); 29724: return Status::OK(); 29724: } 29724: } 29724: } 29724: } 29724: 29724: return Status::NotFound(); 29724: } 29724: 29724: size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key, 29724: size_t limit) { 29724: Slice memkey = key.memtable_key(); 29724: 29724: 29724: 29724: 29724: std::unique_ptr iter( 29724: table_->GetDynamicPrefixIterator()); 29724: iter->Seek(key.internal_key(), memkey.data()); 29724: 29724: size_t num_successive_merges = 0; 29724: 29724: for (; iter->Valid() && num_successive_merges < limit; iter->Next()) { 29724: const char* entry = iter->key(); 29724: uint32_t key_length = 0; 29724: const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29724: if (!comparator_.comparator.user_comparator()->Equal( 29724: Slice(iter_key_ptr, key_length - 8), key.user_key())) { 29724: break; 29724: } 29724: 29724: const uint64_t tag = DecodeFixed64(iter_key_ptr + key_length - 8); 29724: ValueType type; 29724: uint64_t unused; 29724: UnPackSequenceAndType(tag, &unused, &type); 29724: if (type != kTypeMerge) { 29724: break; 29724: } 29724: 29724: ++num_successive_merges; 29724: } 29724: 29724: return num_successive_merges; 29724: } 29724: 29724: void MemTableRep::Get(const LookupKey& k, void* callback_args, 29724: bool (*callback_func)(void* arg, const char* entry)) { 29724: auto iter = GetDynamicPrefixIterator(); 29724: for (iter->Seek(k.internal_key(), k.memtable_key().data()); 29724: iter->Valid() && callback_func(callback_args, iter->key()); 29724: iter->Next()) { 29724: } 29724: } 29724: 29724: void MemTable::RefLogContainingPrepSection(uint64_t log) { 29724: 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: log > 0 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "log > 0" 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: auto cur = min_prep_log_referenced_.load(); 29724: while ((log < cur || cur == 0) && 29724: !min_prep_log_referenced_.compare_exchange_strong(cur, log)) { 29724: cur = min_prep_log_referenced_.load(); 29724: } 29724: } 29724: 29724: uint64_t MemTable::GetMinLogContainingPrepSection() { 29724: return min_prep_log_referenced_.load(); 29724: } 29724: 29724: void MemTable::MaybeUpdateNewestUDT(const Slice& user_key) { 29724: if (ts_sz_ == 0 || persist_user_defined_timestamps_) { 29724: return; 29724: } 29724: const Comparator* ucmp = GetInternalKeyComparator().user_comparator(); 29724: Slice udt = ExtractTimestampFromUserKey(user_key, ts_sz_); 29724: if (newest_udt_.empty() || ucmp->CompareTimestamp(udt, newest_udt_) > 0) { 29724: newest_udt_ = udt; 29724: } 29724: } 29724: 29724: const Slice& MemTable::GetNewestUDT() const { 29724: 29724: 29724: 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: (static_cast ( 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ts_sz_ > 0 && !persist_user_defined_timestamps_ 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: ) ? void (0) : __assert_fail ( 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: "ts_sz_ > 0 && !persist_user_defined_timestamps_" 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29724: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29724: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29724: ; 29724: return newest_udt_; 29724: } 29724: 29724: } === END GCC DUMP === make[3]: *** [CMakeFiles/rocksdb.dir/build.make:1146: CMakeFiles/rocksdb.dir/db/memtable.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... [ 23%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/memtable_list.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/memtable_list.cc make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make[2]: *** [CMakeFiles/Makefile2:212: CMakeFiles/rocksdb.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... [ 23%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/merge_helper.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/merge_helper.cc Preprocessed source stored into /tmp/cclxEn5Z.out file, please attach this to your bugreport. === BEGIN GCC DUMP === 29761: // Target: arm-linux-gnueabihf 29761: // Configured with: ../src/configure -v --with-pkgversion='Debian 14.2.0-16' --with-bugurl=file:///usr/share/doc/gcc-14/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust --prefix=/usr --with-gcc-major-version-only --program-suffix=-14 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a+fp --with-float=hard --with-mode=thumb --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf 29761: // Thread model: posix 29761: // Supported LTO compression algorithms: zlib zstd 29761: // gcc version 14.2.0 (Debian 14.2.0-16) 29761: // 29761: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc: In member function 'void rocksdb::MemTable::UpdateOldestKeyTime()': 29761: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: error: insn does not satisfy its constraints: 29761: // 269 | } 29761: // | ^ 29761: // (insn 271 270 272 13 (set (reg:CC_DNE 100 cc) 29761: // (compare:CC_DNE (ior:SI (ne:SI (reg:SI 0 r0 [164]) 29761: // (const_int -1 [0xffffffffffffffff])) 29761: // (ne:SI (reg:SI 1 r1 [+4 ]) 29761: // (const_int -1 [0xffffffffffffffff]))) 29761: // (const_int 0 [0]))) "/usr/include/c++/14/bits/atomic_base.h":573:36 343 {*cmp_ior} 29761: // (expr_list:REG_DEAD (reg:SI 1 r1 [+4 ]) 29761: // (expr_list:REG_DEAD (reg:SI 0 r0 [164]) 29761: // (nil)))) 29761: // during RTL pass: cprop_hardreg 29761: // /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc:269:1: internal compiler error: in extract_constrain_insn, at recog.cc:2713 29761: // 0x6a4a17 internal_error(char const*, ...) 29761: // ???:0 29761: // 0x6a4acd fancy_abort(char const*, int, char const*) 29761: // ???:0 29761: // 0x3d10f1 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) 29761: // ???:0 29761: // 0x3d1123 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) 29761: // ???:0 29761: // 0x946eb5 extract_constrain_insn(rtx_insn*) 29761: // ???:0 29761: // Please submit a full bug report, with preprocessed source (by using -freport-bug). 29761: // Please include the complete backtrace with any bug report. 29761: // See for instructions. 29761: 29761: // /usr/libexec/gcc/arm-linux-gnueabihf/14/cc1plus -quiet -I /build/reproducible-path/rocksdb-9.10.0 -I /build/reproducible-path/rocksdb-9.10.0/include -imultilib . -imultiarch arm-linux-gnueabihf -MD CMakeFiles/rocksdb-shared.dir/db/memtable.cc.d -MF CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o.d -MT CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o -D_GNU_SOURCE -D_REENTRANT -D BZIP2 -D GFLAGS=1 -D GFLAGS_IS_A_DLL=0 -D LZ4 -D OS_LINUX -D ROCKSDB_AUXV_GETAUXVAL_PRESENT -D ROCKSDB_FALLOCATE_PRESENT -D ROCKSDB_LIB_IO_POSIX -D ROCKSDB_MALLOC_USABLE_SIZE -D ROCKSDB_NO_DYNAMIC_EXTENSION -D ROCKSDB_PLATFORM_POSIX -D ROCKSDB_PTHREAD_ADAPTIVE_MUTEX -D ROCKSDB_RANGESYNC_PRESENT -D ROCKSDB_SCHED_GETCPU_PRESENT -D SNAPPY -D ZLIB -D ZSTD -D rocksdb_shared_EXPORTS -D _LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D _TIME_BITS=64 -D _FORTIFY_SOURCE=2 -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src /build/reproducible-path/rocksdb-9.10.0/db/memtable.cc -quiet -dumpdir CMakeFiles/rocksdb-shared.dir/db/ -dumpbase memtable.cc.cc -dumpbase-ext .cc -mfloat-abi=hard -mtls-dialect=gnu -mthumb -mlibarch=armv8-a+crc+crypto -march=armv8-a+crc+crypto -g -O2 -Wformat=1 -Werror=format-security -Wdate-time -Wextra -Wall -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual=2 -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -Wno-unused-function -std=gnu++17 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -fno-omit-frame-pointer -fno-builtin-memcmp -fPIC -o - -frandom-seed=0 -fdump-noaddr 29761: 29761: # 0 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf//" 29761: # 0 "" 29761: # 0 "" 29761: # 1 "/usr/include/stdc-predef.h" 1 3 4 29761: # 0 "" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: 29761: # 1 "/usr/include/c++/14/atomic" 1 3 29761: # 35 "/usr/include/c++/14/atomic" 3 29761: 29761: # 36 "/usr/include/c++/14/atomic" 3 29761: # 48 "/usr/include/c++/14/atomic" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 1 3 29761: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: 29761: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: 29761: # 308 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: namespace std 29761: { 29761: typedef unsigned int size_t; 29761: typedef int ptrdiff_t; 29761: 29761: 29761: typedef decltype(nullptr) nullptr_t; 29761: 29761: 29761: #pragma GCC visibility push(default) 29761: 29761: 29761: extern "C++" __attribute__ ((__noreturn__, __always_inline__)) 29761: inline void __terminate() noexcept 29761: { 29761: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 29761: terminate(); 29761: } 29761: #pragma GCC visibility pop 29761: } 29761: # 341 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: namespace std 29761: { 29761: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 29761: } 29761: namespace __gnu_cxx 29761: { 29761: inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } 29761: } 29761: # 534 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: namespace std 29761: { 29761: #pragma GCC visibility push(default) 29761: 29761: 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: constexpr inline bool 29761: __is_constant_evaluated() noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: return __builtin_is_constant_evaluated(); 29761: 29761: 29761: 29761: } 29761: #pragma GCC visibility pop 29761: } 29761: # 573 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: namespace std 29761: { 29761: #pragma GCC visibility push(default) 29761: 29761: extern "C++" __attribute__ ((__noreturn__)) 29761: void 29761: __glibcxx_assert_fail 29761: (const char* __file, int __line, const char* __function, 29761: const char* __condition) 29761: noexcept; 29761: #pragma GCC visibility pop 29761: } 29761: # 604 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: namespace std 29761: { 29761: __attribute__((__always_inline__,__visibility__("default"))) 29761: inline void 29761: __glibcxx_assert_fail() 29761: { } 29761: } 29761: # 683 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 1 3 29761: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 3 29761: # 1 "/usr/include/features.h" 1 3 4 29761: # 402 "/usr/include/features.h" 3 4 29761: # 1 "/usr/include/features-time64.h" 1 3 4 29761: # 20 "/usr/include/features-time64.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 21 "/usr/include/features-time64.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 29761: # 22 "/usr/include/features-time64.h" 2 3 4 29761: # 403 "/usr/include/features.h" 2 3 4 29761: # 510 "/usr/include/features.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 1 3 4 29761: # 730 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 731 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 29761: # 732 "/usr/include/arm-linux-gnueabihf/sys/cdefs.h" 2 3 4 29761: # 511 "/usr/include/features.h" 2 3 4 29761: # 534 "/usr/include/features.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 1 3 4 29761: # 10 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/gnu/stubs-hard.h" 1 3 4 29761: # 11 "/usr/include/arm-linux-gnueabihf/gnu/stubs.h" 2 3 4 29761: # 535 "/usr/include/features.h" 2 3 4 29761: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/os_defines.h" 2 3 29761: # 684 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/cpu_defines.h" 1 3 29761: # 687 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29761: # 890 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 3 29761: # 1 "/usr/include/c++/14/pstl/pstl_config.h" 1 3 29761: # 891 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++config.h" 2 3 29761: # 50 "/usr/include/c++/14/bits/version.h" 2 3 29761: # 49 "/usr/include/c++/14/atomic" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/atomic_base.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/new" 1 3 29761: # 38 "/usr/include/c++/14/new" 3 29761: 29761: # 39 "/usr/include/c++/14/new" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/exception.h" 1 3 29761: # 34 "/usr/include/c++/14/bits/exception.h" 3 29761: 29761: # 35 "/usr/include/c++/14/bits/exception.h" 3 29761: 29761: 29761: 29761: extern "C++" { 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: # 59 "/usr/include/c++/14/bits/exception.h" 3 29761: class exception 29761: { 29761: public: 29761: exception() noexcept { } 29761: virtual ~exception() noexcept; 29761: 29761: exception(const exception&) = default; 29761: exception& operator=(const exception&) = default; 29761: exception(exception&&) = default; 29761: exception& operator=(exception&&) = default; 29761: 29761: 29761: 29761: 29761: virtual const char* 29761: what() const noexcept; 29761: }; 29761: 29761: 29761: 29761: } 29761: 29761: } 29761: # 42 "/usr/include/c++/14/new" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 47 "/usr/include/c++/14/new" 2 3 29761: 29761: #pragma GCC visibility push(default) 29761: 29761: extern "C++" { 29761: 29761: namespace std 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class bad_alloc : public exception 29761: { 29761: public: 29761: bad_alloc() throw() { } 29761: 29761: 29761: bad_alloc(const bad_alloc&) = default; 29761: bad_alloc& operator=(const bad_alloc&) = default; 29761: 29761: 29761: 29761: 29761: virtual ~bad_alloc() throw(); 29761: 29761: 29761: virtual const char* what() const throw(); 29761: }; 29761: 29761: 29761: class bad_array_new_length : public bad_alloc 29761: { 29761: public: 29761: bad_array_new_length() throw() { } 29761: 29761: 29761: 29761: virtual ~bad_array_new_length() throw(); 29761: 29761: 29761: virtual const char* what() const throw(); 29761: }; 29761: 29761: 29761: 29761: enum class align_val_t: size_t {}; 29761: 29761: 29761: struct nothrow_t 29761: { 29761: 29761: explicit nothrow_t() = default; 29761: 29761: }; 29761: 29761: extern const nothrow_t nothrow; 29761: 29761: 29761: 29761: typedef void (*new_handler)(); 29761: 29761: 29761: 29761: new_handler set_new_handler(new_handler) throw(); 29761: 29761: 29761: 29761: new_handler get_new_handler() noexcept; 29761: 29761: } 29761: # 131 "/usr/include/c++/14/new" 3 29761: [[__nodiscard__]] void* operator new(std::size_t) 29761: __attribute__((__externally_visible__)); 29761: [[__nodiscard__]] void* operator new[](std::size_t) 29761: __attribute__((__externally_visible__)); 29761: void operator delete(void*) noexcept 29761: __attribute__((__externally_visible__)); 29761: void operator delete[](void*) noexcept 29761: __attribute__((__externally_visible__)); 29761: 29761: void operator delete(void*, std::size_t) noexcept 29761: __attribute__((__externally_visible__)); 29761: void operator delete[](void*, std::size_t) noexcept 29761: __attribute__((__externally_visible__)); 29761: 29761: [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept 29761: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept 29761: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: void operator delete(void*, const std::nothrow_t&) noexcept 29761: __attribute__((__externally_visible__)); 29761: void operator delete[](void*, const std::nothrow_t&) noexcept 29761: __attribute__((__externally_visible__)); 29761: 29761: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) 29761: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) 29761: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: void operator delete(void*, std::align_val_t) 29761: noexcept __attribute__((__externally_visible__)); 29761: void operator delete(void*, std::align_val_t, const std::nothrow_t&) 29761: noexcept __attribute__((__externally_visible__)); 29761: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) 29761: __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) 29761: noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); 29761: void operator delete[](void*, std::align_val_t) 29761: noexcept __attribute__((__externally_visible__)); 29761: void operator delete[](void*, std::align_val_t, const std::nothrow_t&) 29761: noexcept __attribute__((__externally_visible__)); 29761: 29761: void operator delete(void*, std::size_t, std::align_val_t) 29761: noexcept __attribute__((__externally_visible__)); 29761: void operator delete[](void*, std::size_t, std::align_val_t) 29761: noexcept __attribute__((__externally_visible__)); 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept 29761: { return __p; } 29761: [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept 29761: { return __p; } 29761: 29761: 29761: inline void operator delete (void*, void*) noexcept { } 29761: inline void operator delete[](void*, void*) noexcept { } 29761: 29761: } 29761: 29761: 29761: namespace std 29761: { 29761: 29761: 29761: template 29761: [[nodiscard]] constexpr _Tp* 29761: launder(_Tp* __p) noexcept 29761: { return __builtin_launder(__p); } 29761: 29761: 29761: 29761: 29761: template 29761: void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; 29761: template 29761: void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; 29761: 29761: void launder(void*) = delete; 29761: void launder(const void*) = delete; 29761: void launder(volatile void*) = delete; 29761: void launder(const volatile void*) = delete; 29761: 29761: 29761: 29761: inline constexpr size_t hardware_destructive_interference_size = 64; 29761: inline constexpr size_t hardware_constructive_interference_size = 64; 29761: 29761: } 29761: # 236 "/usr/include/c++/14/new" 3 29761: #pragma GCC visibility pop 29761: # 37 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 1 3 4 29761: # 9 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 3 4 29761: # 1 "/usr/include/stdint.h" 1 3 4 29761: # 26 "/usr/include/stdint.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 27 "/usr/include/stdint.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 28 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/timesize.h" 1 3 4 29761: # 29 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29761: 29761: 29761: typedef unsigned char __u_char; 29761: typedef unsigned short int __u_short; 29761: typedef unsigned int __u_int; 29761: typedef unsigned long int __u_long; 29761: 29761: 29761: typedef signed char __int8_t; 29761: typedef unsigned char __uint8_t; 29761: typedef signed short int __int16_t; 29761: typedef unsigned short int __uint16_t; 29761: typedef signed int __int32_t; 29761: typedef unsigned int __uint32_t; 29761: 29761: 29761: 29761: 29761: __extension__ typedef signed long long int __int64_t; 29761: __extension__ typedef unsigned long long int __uint64_t; 29761: 29761: 29761: 29761: typedef __int8_t __int_least8_t; 29761: typedef __uint8_t __uint_least8_t; 29761: typedef __int16_t __int_least16_t; 29761: typedef __uint16_t __uint_least16_t; 29761: typedef __int32_t __int_least32_t; 29761: typedef __uint32_t __uint_least32_t; 29761: typedef __int64_t __int_least64_t; 29761: typedef __uint64_t __uint_least64_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: __extension__ typedef long long int __quad_t; 29761: __extension__ typedef unsigned long long int __u_quad_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __extension__ typedef long long int __intmax_t; 29761: __extension__ typedef unsigned long long int __uintmax_t; 29761: # 141 "/usr/include/arm-linux-gnueabihf/bits/types.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/typesizes.h" 1 3 4 29761: # 142 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/time64.h" 1 3 4 29761: # 143 "/usr/include/arm-linux-gnueabihf/bits/types.h" 2 3 4 29761: 29761: 29761: __extension__ typedef __uint64_t __dev_t; 29761: __extension__ typedef unsigned int __uid_t; 29761: __extension__ typedef unsigned int __gid_t; 29761: __extension__ typedef unsigned long int __ino_t; 29761: __extension__ typedef __uint64_t __ino64_t; 29761: __extension__ typedef unsigned int __mode_t; 29761: __extension__ typedef unsigned int __nlink_t; 29761: __extension__ typedef long int __off_t; 29761: __extension__ typedef __int64_t __off64_t; 29761: __extension__ typedef int __pid_t; 29761: __extension__ typedef struct { int __val[2]; } __fsid_t; 29761: __extension__ typedef long int __clock_t; 29761: __extension__ typedef unsigned long int __rlim_t; 29761: __extension__ typedef __uint64_t __rlim64_t; 29761: __extension__ typedef unsigned int __id_t; 29761: __extension__ typedef long int __time_t; 29761: __extension__ typedef unsigned int __useconds_t; 29761: __extension__ typedef long int __suseconds_t; 29761: __extension__ typedef __int64_t __suseconds64_t; 29761: 29761: __extension__ typedef int __daddr_t; 29761: __extension__ typedef int __key_t; 29761: 29761: 29761: __extension__ typedef int __clockid_t; 29761: 29761: 29761: __extension__ typedef void * __timer_t; 29761: 29761: 29761: __extension__ typedef long int __blksize_t; 29761: 29761: 29761: 29761: 29761: __extension__ typedef long int __blkcnt_t; 29761: __extension__ typedef __int64_t __blkcnt64_t; 29761: 29761: 29761: __extension__ typedef unsigned long int __fsblkcnt_t; 29761: __extension__ typedef __uint64_t __fsblkcnt64_t; 29761: 29761: 29761: __extension__ typedef unsigned long int __fsfilcnt_t; 29761: __extension__ typedef __uint64_t __fsfilcnt64_t; 29761: 29761: 29761: __extension__ typedef int __fsword_t; 29761: 29761: __extension__ typedef int __ssize_t; 29761: 29761: 29761: __extension__ typedef long int __syscall_slong_t; 29761: 29761: __extension__ typedef unsigned long int __syscall_ulong_t; 29761: 29761: 29761: 29761: typedef __off64_t __loff_t; 29761: typedef char *__caddr_t; 29761: 29761: 29761: __extension__ typedef int __intptr_t; 29761: 29761: 29761: __extension__ typedef unsigned int __socklen_t; 29761: 29761: 29761: 29761: 29761: typedef int __sig_atomic_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __extension__ typedef __int64_t __time64_t; 29761: # 28 "/usr/include/stdint.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar.h" 1 3 4 29761: # 29 "/usr/include/stdint.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 30 "/usr/include/stdint.h" 2 3 4 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-intn.h" 3 4 29761: typedef __int8_t int8_t; 29761: typedef __int16_t int16_t; 29761: typedef __int32_t int32_t; 29761: typedef __int64_t int64_t; 29761: # 35 "/usr/include/stdint.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdint-uintn.h" 3 4 29761: typedef __uint8_t uint8_t; 29761: typedef __uint16_t uint16_t; 29761: typedef __uint32_t uint32_t; 29761: typedef __uint64_t uint64_t; 29761: # 38 "/usr/include/stdint.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 1 3 4 29761: # 25 "/usr/include/arm-linux-gnueabihf/bits/stdint-least.h" 3 4 29761: typedef __int_least8_t int_least8_t; 29761: typedef __int_least16_t int_least16_t; 29761: typedef __int_least32_t int_least32_t; 29761: typedef __int_least64_t int_least64_t; 29761: 29761: 29761: typedef __uint_least8_t uint_least8_t; 29761: typedef __uint_least16_t uint_least16_t; 29761: typedef __uint_least32_t uint_least32_t; 29761: typedef __uint_least64_t uint_least64_t; 29761: # 42 "/usr/include/stdint.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: typedef signed char int_fast8_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef int int_fast16_t; 29761: typedef int int_fast32_t; 29761: __extension__ 29761: typedef long long int int_fast64_t; 29761: 29761: 29761: 29761: typedef unsigned char uint_fast8_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef unsigned int uint_fast16_t; 29761: typedef unsigned int uint_fast32_t; 29761: __extension__ 29761: typedef unsigned long long int uint_fast64_t; 29761: # 82 "/usr/include/stdint.h" 3 4 29761: typedef int intptr_t; 29761: 29761: 29761: typedef unsigned int uintptr_t; 29761: 29761: 29761: 29761: 29761: typedef __intmax_t intmax_t; 29761: typedef __uintmax_t uintmax_t; 29761: # 10 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdint.h" 2 3 4 29761: # 38 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/atomic_lockfree_defines.h" 3 29761: # 39 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/move.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/move.h" 3 29761: # 1 "/usr/include/c++/14/type_traits" 1 3 29761: # 32 "/usr/include/c++/14/type_traits" 3 29761: 29761: # 33 "/usr/include/c++/14/type_traits" 3 29761: # 63 "/usr/include/c++/14/type_traits" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 64 "/usr/include/c++/14/type_traits" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: class reference_wrapper; 29761: # 86 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct integral_constant 29761: { 29761: static constexpr _Tp value = __v; 29761: using value_type = _Tp; 29761: using type = integral_constant<_Tp, __v>; 29761: constexpr operator value_type() const noexcept { return value; } 29761: 29761: 29761: constexpr value_type operator()() const noexcept { return value; } 29761: 29761: }; 29761: # 106 "/usr/include/c++/14/type_traits" 3 29761: template 29761: using __bool_constant = integral_constant; 29761: 29761: 29761: 29761: using true_type = __bool_constant; 29761: 29761: 29761: using false_type = __bool_constant; 29761: 29761: 29761: 29761: 29761: template 29761: using bool_constant = __bool_constant<__v>; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct enable_if 29761: { }; 29761: 29761: 29761: template 29761: struct enable_if 29761: { using type = _Tp; }; 29761: 29761: 29761: template 29761: using __enable_if_t = typename enable_if<_Cond, _Tp>::type; 29761: 29761: template 29761: struct __conditional 29761: { 29761: template 29761: using type = _Tp; 29761: }; 29761: 29761: template<> 29761: struct __conditional 29761: { 29761: template 29761: using type = _Up; 29761: }; 29761: 29761: 29761: template 29761: using __conditional_t 29761: = typename __conditional<_Cond>::template type<_If, _Else>; 29761: 29761: 29761: template 29761: struct __type_identity 29761: { using type = _Type; }; 29761: 29761: template 29761: using __type_identity_t = typename __type_identity<_Tp>::type; 29761: 29761: namespace __detail 29761: { 29761: 29761: template 29761: using __first_t = _Tp; 29761: 29761: 29761: template 29761: auto __or_fn(int) -> __first_t...>; 29761: 29761: template 29761: auto __or_fn(...) -> true_type; 29761: 29761: template 29761: auto __and_fn(int) -> __first_t...>; 29761: 29761: template 29761: auto __and_fn(...) -> false_type; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: struct __or_ 29761: : decltype(__detail::__or_fn<_Bn...>(0)) 29761: { }; 29761: 29761: template 29761: struct __and_ 29761: : decltype(__detail::__and_fn<_Bn...>(0)) 29761: { }; 29761: 29761: template 29761: struct __not_ 29761: : __bool_constant 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool __or_v = __or_<_Bn...>::value; 29761: template 29761: inline constexpr bool __and_v = __and_<_Bn...>::value; 29761: 29761: namespace __detail 29761: { 29761: template 29761: struct __disjunction_impl 29761: { using type = _B1; }; 29761: 29761: template 29761: struct __disjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 29761: { using type = typename __disjunction_impl::type; }; 29761: 29761: template 29761: struct __conjunction_impl 29761: { using type = _B1; }; 29761: 29761: template 29761: struct __conjunction_impl<__enable_if_t, _B1, _B2, _Bn...> 29761: { using type = typename __conjunction_impl::type; }; 29761: } 29761: 29761: 29761: template 29761: struct conjunction 29761: : __detail::__conjunction_impl::type 29761: { }; 29761: 29761: template<> 29761: struct conjunction<> 29761: : true_type 29761: { }; 29761: 29761: template 29761: struct disjunction 29761: : __detail::__disjunction_impl::type 29761: { }; 29761: 29761: template<> 29761: struct disjunction<> 29761: : false_type 29761: { }; 29761: 29761: template 29761: struct negation 29761: : __not_<_Pp>::type 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool conjunction_v = conjunction<_Bn...>::value; 29761: 29761: template 29761: inline constexpr bool disjunction_v = disjunction<_Bn...>::value; 29761: 29761: template 29761: inline constexpr bool negation_v = negation<_Pp>::value; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_reference; 29761: template 29761: struct is_function; 29761: template 29761: struct is_void; 29761: template 29761: struct remove_cv; 29761: template 29761: struct is_const; 29761: 29761: 29761: template 29761: struct __is_array_unknown_bounds; 29761: 29761: 29761: 29761: 29761: template 29761: constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) 29761: { return {}; } 29761: 29761: template 29761: constexpr typename __or_< 29761: is_reference<_NestedType>, 29761: is_function<_NestedType>, 29761: is_void<_NestedType>, 29761: __is_array_unknown_bounds<_NestedType> 29761: >::type __is_complete_or_unbounded(_TypeIdentity) 29761: { return {}; } 29761: 29761: 29761: template 29761: using __remove_cv_t = typename remove_cv<_Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_void 29761: : public false_type { }; 29761: 29761: template<> 29761: struct is_void 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_void 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_void 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_void 29761: : public true_type { }; 29761: 29761: 29761: template 29761: struct __is_integral_helper 29761: : public false_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_integral_helper 29761: : public true_type { }; 29761: # 460 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_integral 29761: : public __is_integral_helper<__remove_cv_t<_Tp>>::type 29761: { }; 29761: 29761: 29761: template 29761: struct __is_floating_point_helper 29761: : public false_type { }; 29761: 29761: template<> 29761: struct __is_floating_point_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_floating_point_helper 29761: : public true_type { }; 29761: 29761: template<> 29761: struct __is_floating_point_helper 29761: : public true_type { }; 29761: # 520 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_floating_point 29761: : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_array 29761: : public __bool_constant<__is_array(_Tp)> 29761: { }; 29761: # 545 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct __is_pointer_helper 29761: : public false_type { }; 29761: 29761: template 29761: struct __is_pointer_helper<_Tp*> 29761: : public true_type { }; 29761: 29761: 29761: template 29761: struct is_pointer 29761: : public __is_pointer_helper<__remove_cv_t<_Tp>>::type 29761: { }; 29761: 29761: 29761: template 29761: struct is_lvalue_reference 29761: : public false_type { }; 29761: 29761: template 29761: struct is_lvalue_reference<_Tp&> 29761: : public true_type { }; 29761: 29761: 29761: template 29761: struct is_rvalue_reference 29761: : public false_type { }; 29761: 29761: template 29761: struct is_rvalue_reference<_Tp&&> 29761: : public true_type { }; 29761: 29761: 29761: 29761: template 29761: struct is_member_object_pointer 29761: : public __bool_constant<__is_member_object_pointer(_Tp)> 29761: { }; 29761: # 601 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_member_function_pointer 29761: : public __bool_constant<__is_member_function_pointer(_Tp)> 29761: { }; 29761: # 622 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_enum 29761: : public __bool_constant<__is_enum(_Tp)> 29761: { }; 29761: 29761: 29761: template 29761: struct is_union 29761: : public __bool_constant<__is_union(_Tp)> 29761: { }; 29761: 29761: 29761: template 29761: struct is_class 29761: : public __bool_constant<__is_class(_Tp)> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_function 29761: : public __bool_constant<__is_function(_Tp)> 29761: { }; 29761: # 661 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_null_pointer 29761: : public false_type { }; 29761: 29761: template<> 29761: struct is_null_pointer 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_null_pointer 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_null_pointer 29761: : public true_type { }; 29761: 29761: template<> 29761: struct is_null_pointer 29761: : public true_type { }; 29761: 29761: 29761: 29761: template 29761: struct __is_nullptr_t 29761: : public is_null_pointer<_Tp> 29761: { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_reference 29761: : public __bool_constant<__is_reference(_Tp)> 29761: { }; 29761: # 715 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_arithmetic 29761: : public __or_, is_floating_point<_Tp>>::type 29761: { }; 29761: 29761: 29761: template 29761: struct is_fundamental 29761: : public __or_, is_void<_Tp>, 29761: is_null_pointer<_Tp>>::type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_object 29761: : public __bool_constant<__is_object(_Tp)> 29761: { }; 29761: # 741 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_member_pointer; 29761: 29761: 29761: template 29761: struct is_scalar 29761: : public __or_, is_enum<_Tp>, is_pointer<_Tp>, 29761: is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type 29761: { }; 29761: 29761: 29761: template 29761: struct is_compound 29761: : public __bool_constant::value> { }; 29761: 29761: 29761: 29761: template 29761: struct is_member_pointer 29761: : public __bool_constant<__is_member_pointer(_Tp)> 29761: { }; 29761: # 779 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_same; 29761: 29761: 29761: template 29761: using __is_one_of = __or_...>; 29761: 29761: 29761: __extension__ 29761: template 29761: using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, 29761: signed char, signed short, signed int, signed long, 29761: signed long long 29761: # 804 "/usr/include/c++/14/type_traits" 3 29761: >; 29761: 29761: 29761: __extension__ 29761: template 29761: using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, 29761: unsigned char, unsigned short, unsigned int, unsigned long, 29761: unsigned long long 29761: # 824 "/usr/include/c++/14/type_traits" 3 29761: >; 29761: 29761: 29761: template 29761: using __is_standard_integer 29761: = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; 29761: 29761: 29761: template using __void_t = void; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_const 29761: : public false_type { }; 29761: 29761: template 29761: struct is_const<_Tp const> 29761: : public true_type { }; 29761: 29761: 29761: template 29761: struct is_volatile 29761: : public false_type { }; 29761: 29761: template 29761: struct is_volatile<_Tp volatile> 29761: : public true_type { }; 29761: 29761: 29761: template 29761: struct is_trivial 29761: : public __bool_constant<__is_trivial(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_copyable 29761: : public __bool_constant<__is_trivially_copyable(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_standard_layout 29761: : public __bool_constant<__is_standard_layout(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: 29761: is_pod 29761: : public __bool_constant<__is_pod(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: [[__deprecated__]] 29761: is_literal_type 29761: : public __bool_constant<__is_literal_type(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_empty 29761: : public __bool_constant<__is_empty(_Tp)> 29761: { }; 29761: 29761: 29761: template 29761: struct is_polymorphic 29761: : public __bool_constant<__is_polymorphic(_Tp)> 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct is_final 29761: : public __bool_constant<__is_final(_Tp)> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_abstract 29761: : public __bool_constant<__is_abstract(_Tp)> 29761: { }; 29761: 29761: 29761: template::value> 29761: struct __is_signed_helper 29761: : public false_type { }; 29761: 29761: template 29761: struct __is_signed_helper<_Tp, true> 29761: : public __bool_constant<_Tp(-1) < _Tp(0)> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_signed 29761: : public __is_signed_helper<_Tp>::type 29761: { }; 29761: 29761: 29761: template 29761: struct is_unsigned 29761: : public __and_, __not_>>::type 29761: { }; 29761: 29761: 29761: template 29761: _Up 29761: __declval(int); 29761: 29761: template 29761: _Tp 29761: __declval(long); 29761: 29761: 29761: template 29761: auto declval() noexcept -> decltype(__declval<_Tp>(0)); 29761: 29761: template 29761: struct remove_all_extents; 29761: 29761: 29761: template 29761: struct __is_array_known_bounds 29761: : public false_type 29761: { }; 29761: 29761: template 29761: struct __is_array_known_bounds<_Tp[_Size]> 29761: : public true_type 29761: { }; 29761: 29761: template 29761: struct __is_array_unknown_bounds 29761: : public false_type 29761: { }; 29761: 29761: template 29761: struct __is_array_unknown_bounds<_Tp[]> 29761: : public true_type 29761: { }; 29761: # 1006 "/usr/include/c++/14/type_traits" 3 29761: struct __do_is_destructible_impl 29761: { 29761: template().~_Tp())> 29761: static true_type __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: template 29761: struct __is_destructible_impl 29761: : public __do_is_destructible_impl 29761: { 29761: using type = decltype(__test<_Tp>(0)); 29761: }; 29761: 29761: template, 29761: __is_array_unknown_bounds<_Tp>, 29761: is_function<_Tp>>::value, 29761: bool = __or_, is_scalar<_Tp>>::value> 29761: struct __is_destructible_safe; 29761: 29761: template 29761: struct __is_destructible_safe<_Tp, false, false> 29761: : public __is_destructible_impl::type>::type 29761: { }; 29761: 29761: template 29761: struct __is_destructible_safe<_Tp, true, false> 29761: : public false_type { }; 29761: 29761: template 29761: struct __is_destructible_safe<_Tp, false, true> 29761: : public true_type { }; 29761: 29761: 29761: 29761: template 29761: struct is_destructible 29761: : public __is_destructible_safe<_Tp>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct __do_is_nt_destructible_impl 29761: { 29761: template 29761: static __bool_constant().~_Tp())> 29761: __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: template 29761: struct __is_nt_destructible_impl 29761: : public __do_is_nt_destructible_impl 29761: { 29761: using type = decltype(__test<_Tp>(0)); 29761: }; 29761: 29761: template, 29761: __is_array_unknown_bounds<_Tp>, 29761: is_function<_Tp>>::value, 29761: bool = __or_, is_scalar<_Tp>>::value> 29761: struct __is_nt_destructible_safe; 29761: 29761: template 29761: struct __is_nt_destructible_safe<_Tp, false, false> 29761: : public __is_nt_destructible_impl::type>::type 29761: { }; 29761: 29761: template 29761: struct __is_nt_destructible_safe<_Tp, true, false> 29761: : public false_type { }; 29761: 29761: template 29761: struct __is_nt_destructible_safe<_Tp, false, true> 29761: : public true_type { }; 29761: 29761: 29761: 29761: template 29761: struct is_nothrow_destructible 29761: : public __is_nt_destructible_safe<_Tp>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_constructible_impl 29761: = __bool_constant<__is_constructible(_Tp, _Args...)>; 29761: 29761: 29761: 29761: template 29761: struct is_constructible 29761: : public __is_constructible_impl<_Tp, _Args...> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_default_constructible 29761: : public __is_constructible_impl<_Tp> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct __add_lvalue_reference_helper 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct __add_lvalue_reference_helper<_Tp, __void_t<_Tp&>> 29761: { using type = _Tp&; }; 29761: 29761: template 29761: using __add_lval_ref_t = typename __add_lvalue_reference_helper<_Tp>::type; 29761: 29761: 29761: 29761: template 29761: struct is_copy_constructible 29761: : public __is_constructible_impl<_Tp, __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct __add_rvalue_reference_helper 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct __add_rvalue_reference_helper<_Tp, __void_t<_Tp&&>> 29761: { using type = _Tp&&; }; 29761: 29761: template 29761: using __add_rval_ref_t = typename __add_rvalue_reference_helper<_Tp>::type; 29761: 29761: 29761: 29761: template 29761: struct is_move_constructible 29761: : public __is_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_nothrow_constructible_impl 29761: = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; 29761: 29761: 29761: 29761: template 29761: struct is_nothrow_constructible 29761: : public __is_nothrow_constructible_impl<_Tp, _Args...> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_default_constructible 29761: : public __is_nothrow_constructible_impl<_Tp> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_copy_constructible 29761: : public __is_nothrow_constructible_impl<_Tp, __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_move_constructible 29761: : public __is_nothrow_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>; 29761: 29761: 29761: 29761: template 29761: struct is_assignable 29761: : public __is_assignable_impl<_Tp, _Up> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_copy_assignable 29761: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, 29761: __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_move_assignable 29761: : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_nothrow_assignable_impl 29761: = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; 29761: 29761: 29761: 29761: template 29761: struct is_nothrow_assignable 29761: : public __is_nothrow_assignable_impl<_Tp, _Up> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_copy_assignable 29761: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 29761: __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_move_assignable 29761: : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, 29761: __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_trivially_constructible_impl 29761: = __bool_constant<__is_trivially_constructible(_Tp, _Args...)>; 29761: 29761: 29761: 29761: template 29761: struct is_trivially_constructible 29761: : public __is_trivially_constructible_impl<_Tp, _Args...> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_default_constructible 29761: : public __is_trivially_constructible_impl<_Tp> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: # 1319 "/usr/include/c++/14/type_traits" 3 29761: struct __do_is_implicitly_default_constructible_impl 29761: { 29761: template 29761: static void __helper(const _Tp&); 29761: 29761: template 29761: static true_type __test(const _Tp&, 29761: decltype(__helper({}))* = 0); 29761: 29761: static false_type __test(...); 29761: }; 29761: 29761: template 29761: struct __is_implicitly_default_constructible_impl 29761: : public __do_is_implicitly_default_constructible_impl 29761: { 29761: using type = decltype(__test(declval<_Tp>())); 29761: }; 29761: 29761: template 29761: struct __is_implicitly_default_constructible_safe 29761: : public __is_implicitly_default_constructible_impl<_Tp>::type 29761: { }; 29761: 29761: template 29761: struct __is_implicitly_default_constructible 29761: : public __and_<__is_constructible_impl<_Tp>, 29761: __is_implicitly_default_constructible_safe<_Tp>>::type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct is_trivially_copy_constructible 29761: : public __is_trivially_constructible_impl<_Tp, __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_move_constructible 29761: : public __is_trivially_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using __is_trivially_assignable_impl 29761: = __bool_constant<__is_trivially_assignable(_Tp, _Up)>; 29761: 29761: 29761: 29761: template 29761: struct is_trivially_assignable 29761: : public __is_trivially_assignable_impl<_Tp, _Up> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_copy_assignable 29761: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 29761: __add_lval_ref_t> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_move_assignable 29761: : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, 29761: __add_rval_ref_t<_Tp>> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_trivially_destructible 29761: : public __and_<__is_destructible_safe<_Tp>, 29761: __bool_constant<__has_trivial_destructor(_Tp)>>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: template 29761: struct has_virtual_destructor 29761: : public __bool_constant<__has_virtual_destructor(_Tp)> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct alignment_of 29761: : public integral_constant 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct rank 29761: : public integral_constant { }; 29761: 29761: template 29761: struct rank<_Tp[_Size]> 29761: : public integral_constant::value> { }; 29761: 29761: template 29761: struct rank<_Tp[]> 29761: : public integral_constant::value> { }; 29761: 29761: 29761: template 29761: struct extent 29761: : public integral_constant { }; 29761: 29761: template 29761: struct extent<_Tp[_Size], 0> 29761: : public integral_constant { }; 29761: 29761: template 29761: struct extent<_Tp[_Size], _Uint> 29761: : public extent<_Tp, _Uint - 1>::type { }; 29761: 29761: template 29761: struct extent<_Tp[], 0> 29761: : public integral_constant { }; 29761: 29761: template 29761: struct extent<_Tp[], _Uint> 29761: : public extent<_Tp, _Uint - 1>::type { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_same 29761: : public __bool_constant<__is_same(_Tp, _Up)> 29761: { }; 29761: # 1491 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct is_base_of 29761: : public __bool_constant<__is_base_of(_Base, _Derived)> 29761: { }; 29761: 29761: 29761: template 29761: struct is_convertible 29761: : public __bool_constant<__is_convertible(_From, _To)> 29761: { }; 29761: # 1540 "/usr/include/c++/14/type_traits" 3 29761: template 29761: using __is_array_convertible 29761: = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; 29761: # 1600 "/usr/include/c++/14/type_traits" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++14-extensions" 29761: template 29761: struct __is_nothrow_new_constructible_impl 29761: : __bool_constant< 29761: noexcept(::new(std::declval()) _Tp(std::declval<_Args>()...)) 29761: > 29761: { }; 29761: 29761: template 29761: inline constexpr bool __is_nothrow_new_constructible 29761: = __and_, 29761: __is_nothrow_new_constructible_impl<_Tp, _Args...>>::value; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: template 29761: struct remove_const 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct remove_const<_Tp const> 29761: { using type = _Tp; }; 29761: 29761: 29761: template 29761: struct remove_volatile 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct remove_volatile<_Tp volatile> 29761: { using type = _Tp; }; 29761: 29761: 29761: 29761: template 29761: struct remove_cv 29761: { using type = __remove_cv(_Tp); }; 29761: # 1659 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct add_const 29761: { using type = _Tp const; }; 29761: 29761: 29761: template 29761: struct add_volatile 29761: { using type = _Tp volatile; }; 29761: 29761: 29761: template 29761: struct add_cv 29761: { using type = _Tp const volatile; }; 29761: 29761: 29761: 29761: template 29761: using remove_const_t = typename remove_const<_Tp>::type; 29761: 29761: 29761: template 29761: using remove_volatile_t = typename remove_volatile<_Tp>::type; 29761: 29761: 29761: template 29761: using remove_cv_t = typename remove_cv<_Tp>::type; 29761: 29761: 29761: template 29761: using add_const_t = typename add_const<_Tp>::type; 29761: 29761: 29761: template 29761: using add_volatile_t = typename add_volatile<_Tp>::type; 29761: 29761: 29761: template 29761: using add_cv_t = typename add_cv<_Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct remove_reference 29761: { using type = __remove_reference(_Tp); }; 29761: # 1721 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct add_lvalue_reference 29761: { using type = __add_lval_ref_t<_Tp>; }; 29761: 29761: 29761: template 29761: struct add_rvalue_reference 29761: { using type = __add_rval_ref_t<_Tp>; }; 29761: 29761: 29761: 29761: template 29761: using remove_reference_t = typename remove_reference<_Tp>::type; 29761: 29761: 29761: template 29761: using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; 29761: 29761: 29761: template 29761: using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __cv_selector; 29761: 29761: template 29761: struct __cv_selector<_Unqualified, false, false> 29761: { using __type = _Unqualified; }; 29761: 29761: template 29761: struct __cv_selector<_Unqualified, false, true> 29761: { using __type = volatile _Unqualified; }; 29761: 29761: template 29761: struct __cv_selector<_Unqualified, true, false> 29761: { using __type = const _Unqualified; }; 29761: 29761: template 29761: struct __cv_selector<_Unqualified, true, true> 29761: { using __type = const volatile _Unqualified; }; 29761: 29761: template::value, 29761: bool _IsVol = is_volatile<_Qualified>::value> 29761: class __match_cv_qualifiers 29761: { 29761: using __match = __cv_selector<_Unqualified, _IsConst, _IsVol>; 29761: 29761: public: 29761: using __type = typename __match::__type; 29761: }; 29761: 29761: 29761: template 29761: struct __make_unsigned 29761: { using __type = _Tp; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned char; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned char; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned short; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned int; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned long; }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { using __type = unsigned long long; }; 29761: # 1834 "/usr/include/c++/14/type_traits" 3 29761: template::value, 29761: bool _IsEnum = __is_enum(_Tp)> 29761: class __make_unsigned_selector; 29761: 29761: template 29761: class __make_unsigned_selector<_Tp, true, false> 29761: { 29761: using __unsigned_type 29761: = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; 29761: 29761: public: 29761: using __type 29761: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 29761: }; 29761: 29761: class __make_unsigned_selector_base 29761: { 29761: protected: 29761: template struct _List { }; 29761: 29761: template 29761: struct _List<_Tp, _Up...> : _List<_Up...> 29761: { static constexpr size_t __size = sizeof(_Tp); }; 29761: 29761: template 29761: struct __select; 29761: 29761: template 29761: struct __select<_Sz, _List<_Uint, _UInts...>, true> 29761: { using __type = _Uint; }; 29761: 29761: template 29761: struct __select<_Sz, _List<_Uint, _UInts...>, false> 29761: : __select<_Sz, _List<_UInts...>> 29761: { }; 29761: }; 29761: 29761: 29761: template 29761: class __make_unsigned_selector<_Tp, false, true> 29761: : __make_unsigned_selector_base 29761: { 29761: 29761: using _UInts = _List; 29761: 29761: using __unsigned_type = typename __select::__type; 29761: 29761: public: 29761: using __type 29761: = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct __make_unsigned 29761: { 29761: using __type 29761: = typename __make_unsigned_selector::__type; 29761: }; 29761: # 1908 "/usr/include/c++/14/type_traits" 3 29761: template<> 29761: struct __make_unsigned 29761: { 29761: using __type 29761: = typename __make_unsigned_selector::__type; 29761: }; 29761: 29761: template<> 29761: struct __make_unsigned 29761: { 29761: using __type 29761: = typename __make_unsigned_selector::__type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct make_unsigned 29761: { using type = typename __make_unsigned_selector<_Tp>::__type; }; 29761: 29761: 29761: template<> struct make_unsigned; 29761: template<> struct make_unsigned; 29761: template<> struct make_unsigned; 29761: template<> struct make_unsigned; 29761: 29761: 29761: 29761: 29761: template 29761: struct __make_signed 29761: { using __type = _Tp; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed char; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed char; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed short; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed int; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed long; }; 29761: 29761: template<> 29761: struct __make_signed 29761: { using __type = signed long long; }; 29761: # 1994 "/usr/include/c++/14/type_traits" 3 29761: template::value, 29761: bool _IsEnum = __is_enum(_Tp)> 29761: class __make_signed_selector; 29761: 29761: template 29761: class __make_signed_selector<_Tp, true, false> 29761: { 29761: using __signed_type 29761: = typename __make_signed<__remove_cv_t<_Tp>>::__type; 29761: 29761: public: 29761: using __type 29761: = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; 29761: }; 29761: 29761: 29761: template 29761: class __make_signed_selector<_Tp, false, true> 29761: { 29761: using __unsigned_type = typename __make_unsigned_selector<_Tp>::__type; 29761: 29761: public: 29761: using __type = typename __make_signed_selector<__unsigned_type>::__type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct __make_signed 29761: { 29761: using __type 29761: = typename __make_signed_selector::__type; 29761: }; 29761: # 2040 "/usr/include/c++/14/type_traits" 3 29761: template<> 29761: struct __make_signed 29761: { 29761: using __type 29761: = typename __make_signed_selector::__type; 29761: }; 29761: 29761: template<> 29761: struct __make_signed 29761: { 29761: using __type 29761: = typename __make_signed_selector::__type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct make_signed 29761: { using type = typename __make_signed_selector<_Tp>::__type; }; 29761: 29761: 29761: template<> struct make_signed; 29761: template<> struct make_signed; 29761: template<> struct make_signed; 29761: template<> struct make_signed; 29761: 29761: 29761: 29761: template 29761: using make_signed_t = typename make_signed<_Tp>::type; 29761: 29761: 29761: template 29761: using make_unsigned_t = typename make_unsigned<_Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct remove_extent 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct remove_extent<_Tp[_Size]> 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct remove_extent<_Tp[]> 29761: { using type = _Tp; }; 29761: 29761: 29761: template 29761: struct remove_all_extents 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct remove_all_extents<_Tp[_Size]> 29761: { using type = typename remove_all_extents<_Tp>::type; }; 29761: 29761: template 29761: struct remove_all_extents<_Tp[]> 29761: { using type = typename remove_all_extents<_Tp>::type; }; 29761: 29761: 29761: 29761: template 29761: using remove_extent_t = typename remove_extent<_Tp>::type; 29761: 29761: 29761: template 29761: using remove_all_extents_t = typename remove_all_extents<_Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct remove_pointer 29761: { using type = __remove_pointer(_Tp); }; 29761: # 2139 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct __add_pointer_helper 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct __add_pointer_helper<_Tp, __void_t<_Tp*>> 29761: { using type = _Tp*; }; 29761: 29761: 29761: template 29761: struct add_pointer 29761: : public __add_pointer_helper<_Tp> 29761: { }; 29761: 29761: template 29761: struct add_pointer<_Tp&> 29761: { using type = _Tp*; }; 29761: 29761: template 29761: struct add_pointer<_Tp&&> 29761: { using type = _Tp*; }; 29761: 29761: 29761: 29761: template 29761: using remove_pointer_t = typename remove_pointer<_Tp>::type; 29761: 29761: 29761: template 29761: using add_pointer_t = typename add_pointer<_Tp>::type; 29761: 29761: 29761: template 29761: struct __aligned_storage_msa 29761: { 29761: union __type 29761: { 29761: unsigned char __data[_Len]; 29761: struct __attribute__((__aligned__)) { } __align; 29761: }; 29761: }; 29761: # 2194 "/usr/include/c++/14/type_traits" 3 29761: template::__type)> 29761: struct 29761: 29761: aligned_storage 29761: { 29761: union type 29761: { 29761: unsigned char __data[_Len]; 29761: struct __attribute__((__aligned__((_Align)))) { } __align; 29761: }; 29761: }; 29761: 29761: template 29761: struct __strictest_alignment 29761: { 29761: static const size_t _S_alignment = 0; 29761: static const size_t _S_size = 0; 29761: }; 29761: 29761: template 29761: struct __strictest_alignment<_Tp, _Types...> 29761: { 29761: static const size_t _S_alignment = 29761: alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment 29761: ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; 29761: static const size_t _S_size = 29761: sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size 29761: ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; 29761: }; 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: # 2240 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct 29761: 29761: aligned_union 29761: { 29761: private: 29761: static_assert(sizeof...(_Types) != 0, "At least one type is required"); 29761: 29761: using __strictest = __strictest_alignment<_Types...>; 29761: static const size_t _S_len = _Len > __strictest::_S_size 29761: ? _Len : __strictest::_S_size; 29761: public: 29761: 29761: static const size_t alignment_value = __strictest::_S_alignment; 29761: 29761: using type = typename aligned_storage<_S_len, alignment_value>::type; 29761: }; 29761: 29761: template 29761: const size_t aligned_union<_Len, _Types...>::alignment_value; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __decay_selector 29761: : __conditional_t::value, 29761: remove_cv<_Up>, 29761: add_pointer<_Up>> 29761: { }; 29761: 29761: template 29761: struct __decay_selector<_Up[_Nm]> 29761: { using type = _Up*; }; 29761: 29761: template 29761: struct __decay_selector<_Up[]> 29761: { using type = _Up*; }; 29761: 29761: 29761: 29761: 29761: template 29761: struct decay 29761: { using type = typename __decay_selector<_Tp>::type; }; 29761: 29761: template 29761: struct decay<_Tp&> 29761: { using type = typename __decay_selector<_Tp>::type; }; 29761: 29761: template 29761: struct decay<_Tp&&> 29761: { using type = typename __decay_selector<_Tp>::type; }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __strip_reference_wrapper 29761: { 29761: using __type = _Tp; 29761: }; 29761: 29761: template 29761: struct __strip_reference_wrapper > 29761: { 29761: using __type = _Tp&; 29761: }; 29761: 29761: 29761: template 29761: using __decay_t = typename decay<_Tp>::type; 29761: 29761: template 29761: using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: using _Require = __enable_if_t<__and_<_Cond...>::value>; 29761: 29761: 29761: template 29761: using __remove_cvref_t 29761: = typename remove_cv::type>::type; 29761: 29761: 29761: 29761: 29761: template 29761: struct conditional 29761: { using type = _Iftrue; }; 29761: 29761: 29761: template 29761: struct conditional 29761: { using type = _Iffalse; }; 29761: 29761: 29761: template 29761: struct common_type; 29761: # 2355 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct __success_type 29761: { using type = _Tp; }; 29761: 29761: struct __failure_type 29761: { }; 29761: 29761: struct __do_common_type_impl 29761: { 29761: template 29761: using __cond_t 29761: = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); 29761: 29761: 29761: 29761: template 29761: static __success_type<__decay_t<__cond_t<_Tp, _Up>>> 29761: _S_test(int); 29761: # 2382 "/usr/include/c++/14/type_traits" 3 29761: template 29761: static __failure_type 29761: _S_test_2(...); 29761: 29761: template 29761: static decltype(_S_test_2<_Tp, _Up>(0)) 29761: _S_test(...); 29761: }; 29761: 29761: 29761: template<> 29761: struct common_type<> 29761: { }; 29761: 29761: 29761: template 29761: struct common_type<_Tp0> 29761: : public common_type<_Tp0, _Tp0> 29761: { }; 29761: 29761: 29761: template, typename _Dp2 = __decay_t<_Tp2>> 29761: struct __common_type_impl 29761: { 29761: 29761: 29761: using type = common_type<_Dp1, _Dp2>; 29761: }; 29761: 29761: template 29761: struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> 29761: : private __do_common_type_impl 29761: { 29761: 29761: 29761: using type = decltype(_S_test<_Tp1, _Tp2>(0)); 29761: }; 29761: 29761: 29761: template 29761: struct common_type<_Tp1, _Tp2> 29761: : public __common_type_impl<_Tp1, _Tp2>::type 29761: { }; 29761: 29761: template 29761: struct __common_type_pack 29761: { }; 29761: 29761: template 29761: struct __common_type_fold; 29761: 29761: 29761: template 29761: struct common_type<_Tp1, _Tp2, _Rp...> 29761: : public __common_type_fold, 29761: __common_type_pack<_Rp...>> 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, 29761: __void_t> 29761: : public common_type 29761: { }; 29761: 29761: 29761: template 29761: struct __common_type_fold<_CTp, _Rp, void> 29761: { }; 29761: 29761: template 29761: struct __underlying_type_impl 29761: { 29761: using type = __underlying_type(_Tp); 29761: }; 29761: 29761: template 29761: struct __underlying_type_impl<_Tp, false> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct underlying_type 29761: : public __underlying_type_impl<_Tp> 29761: { }; 29761: 29761: 29761: template 29761: struct __declval_protector 29761: { 29761: static const bool __stop = false; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: auto declval() noexcept -> decltype(__declval<_Tp>(0)) 29761: { 29761: static_assert(__declval_protector<_Tp>::__stop, 29761: "declval() must not be used!"); 29761: return __declval<_Tp>(0); 29761: } 29761: 29761: 29761: template 29761: struct result_of; 29761: 29761: 29761: 29761: 29761: struct __invoke_memfun_ref { }; 29761: struct __invoke_memfun_deref { }; 29761: struct __invoke_memobj_ref { }; 29761: struct __invoke_memobj_deref { }; 29761: struct __invoke_other { }; 29761: 29761: 29761: template 29761: struct __result_of_success : __success_type<_Tp> 29761: { using __invoke_type = _Tag; }; 29761: 29761: 29761: struct __result_of_memfun_ref_impl 29761: { 29761: template 29761: static __result_of_success().*std::declval<_Fp>())(std::declval<_Args>()...) 29761: ), __invoke_memfun_ref> _S_test(int); 29761: 29761: template 29761: static __failure_type _S_test(...); 29761: }; 29761: 29761: template 29761: struct __result_of_memfun_ref 29761: : private __result_of_memfun_ref_impl 29761: { 29761: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 29761: }; 29761: 29761: 29761: struct __result_of_memfun_deref_impl 29761: { 29761: template 29761: static __result_of_success()).*std::declval<_Fp>())(std::declval<_Args>()...) 29761: ), __invoke_memfun_deref> _S_test(int); 29761: 29761: template 29761: static __failure_type _S_test(...); 29761: }; 29761: 29761: template 29761: struct __result_of_memfun_deref 29761: : private __result_of_memfun_deref_impl 29761: { 29761: using type = decltype(_S_test<_MemPtr, _Arg, _Args...>(0)); 29761: }; 29761: 29761: 29761: struct __result_of_memobj_ref_impl 29761: { 29761: template 29761: static __result_of_success().*std::declval<_Fp>() 29761: ), __invoke_memobj_ref> _S_test(int); 29761: 29761: template 29761: static __failure_type _S_test(...); 29761: }; 29761: 29761: template 29761: struct __result_of_memobj_ref 29761: : private __result_of_memobj_ref_impl 29761: { 29761: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 29761: }; 29761: 29761: 29761: struct __result_of_memobj_deref_impl 29761: { 29761: template 29761: static __result_of_success()).*std::declval<_Fp>() 29761: ), __invoke_memobj_deref> _S_test(int); 29761: 29761: template 29761: static __failure_type _S_test(...); 29761: }; 29761: 29761: template 29761: struct __result_of_memobj_deref 29761: : private __result_of_memobj_deref_impl 29761: { 29761: using type = decltype(_S_test<_MemPtr, _Arg>(0)); 29761: }; 29761: 29761: template 29761: struct __result_of_memobj; 29761: 29761: template 29761: struct __result_of_memobj<_Res _Class::*, _Arg> 29761: { 29761: using _Argval = __remove_cvref_t<_Arg>; 29761: using _MemPtr = _Res _Class::*; 29761: using type = typename __conditional_t<__or_, 29761: is_base_of<_Class, _Argval>>::value, 29761: __result_of_memobj_ref<_MemPtr, _Arg>, 29761: __result_of_memobj_deref<_MemPtr, _Arg> 29761: >::type; 29761: }; 29761: 29761: template 29761: struct __result_of_memfun; 29761: 29761: template 29761: struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> 29761: { 29761: using _Argval = typename remove_reference<_Arg>::type; 29761: using _MemPtr = _Res _Class::*; 29761: using type = typename __conditional_t::value, 29761: __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, 29761: __result_of_memfun_deref<_MemPtr, _Arg, _Args...> 29761: >::type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: struct __inv_unwrap 29761: { 29761: using type = _Tp; 29761: }; 29761: 29761: template 29761: struct __inv_unwrap<_Tp, reference_wrapper<_Up>> 29761: { 29761: using type = _Up&; 29761: }; 29761: 29761: template 29761: struct __result_of_impl 29761: { 29761: using type = __failure_type; 29761: }; 29761: 29761: template 29761: struct __result_of_impl 29761: : public __result_of_memobj<__decay_t<_MemPtr>, 29761: typename __inv_unwrap<_Arg>::type> 29761: { }; 29761: 29761: template 29761: struct __result_of_impl 29761: : public __result_of_memfun<__decay_t<_MemPtr>, 29761: typename __inv_unwrap<_Arg>::type, _Args...> 29761: { }; 29761: 29761: 29761: struct __result_of_other_impl 29761: { 29761: template 29761: static __result_of_success()(std::declval<_Args>()...) 29761: ), __invoke_other> _S_test(int); 29761: 29761: template 29761: static __failure_type _S_test(...); 29761: }; 29761: 29761: template 29761: struct __result_of_impl 29761: : private __result_of_other_impl 29761: { 29761: using type = decltype(_S_test<_Functor, _ArgTypes...>(0)); 29761: }; 29761: 29761: 29761: template 29761: struct __invoke_result 29761: : public __result_of_impl< 29761: is_member_object_pointer< 29761: typename remove_reference<_Functor>::type 29761: >::value, 29761: is_member_function_pointer< 29761: typename remove_reference<_Functor>::type 29761: >::value, 29761: _Functor, _ArgTypes... 29761: >::type 29761: { }; 29761: 29761: 29761: template 29761: using __invoke_result_t = typename __invoke_result<_Fn, _Args...>::type; 29761: 29761: 29761: template 29761: struct result_of<_Functor(_ArgTypes...)> 29761: : public __invoke_result<_Functor, _ArgTypes...> 29761: { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: template::__type)> 29761: using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; 29761: 29761: template 29761: using aligned_union_t = typename aligned_union<_Len, _Types...>::type; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: template 29761: using decay_t = typename decay<_Tp>::type; 29761: 29761: 29761: template 29761: using enable_if_t = typename enable_if<_Cond, _Tp>::type; 29761: 29761: 29761: template 29761: using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; 29761: 29761: 29761: template 29761: using common_type_t = typename common_type<_Tp...>::type; 29761: 29761: 29761: template 29761: using underlying_type_t = typename underlying_type<_Tp>::type; 29761: 29761: 29761: template 29761: using result_of_t = typename result_of<_Tp>::type; 29761: 29761: 29761: 29761: 29761: template using void_t = void; 29761: # 2759 "/usr/include/c++/14/type_traits" 3 29761: template class _Op, typename... _Args> 29761: struct __detector 29761: { 29761: using type = _Default; 29761: using __is_detected = false_type; 29761: }; 29761: 29761: 29761: template class _Op, 29761: typename... _Args> 29761: struct __detector<_Default, __void_t<_Op<_Args...>>, _Op, _Args...> 29761: { 29761: using type = _Op<_Args...>; 29761: using __is_detected = true_type; 29761: }; 29761: 29761: template class _Op, 29761: typename... _Args> 29761: using __detected_or = __detector<_Default, void, _Op, _Args...>; 29761: 29761: 29761: 29761: template class _Op, 29761: typename... _Args> 29761: using __detected_or_t 29761: = typename __detected_or<_Default, _Op, _Args...>::type; 29761: # 2801 "/usr/include/c++/14/type_traits" 3 29761: template 29761: struct __is_swappable; 29761: 29761: template 29761: struct __is_nothrow_swappable; 29761: 29761: template 29761: struct __is_tuple_like_impl : false_type 29761: { }; 29761: 29761: 29761: template 29761: struct __is_tuple_like 29761: : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type 29761: { }; 29761: 29761: 29761: template 29761: 29761: inline 29761: _Require<__not_<__is_tuple_like<_Tp>>, 29761: is_move_constructible<_Tp>, 29761: is_move_assignable<_Tp>> 29761: swap(_Tp&, _Tp&) 29761: noexcept(__and_, 29761: is_nothrow_move_assignable<_Tp>>::value); 29761: 29761: template 29761: 29761: inline 29761: __enable_if_t<__is_swappable<_Tp>::value> 29761: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 29761: noexcept(__is_nothrow_swappable<_Tp>::value); 29761: 29761: 29761: namespace __swappable_details { 29761: using std::swap; 29761: 29761: struct __do_is_swappable_impl 29761: { 29761: template(), std::declval<_Tp&>()))> 29761: static true_type __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: struct __do_is_nothrow_swappable_impl 29761: { 29761: template 29761: static __bool_constant< 29761: noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) 29761: > __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: } 29761: 29761: template 29761: struct __is_swappable_impl 29761: : public __swappable_details::__do_is_swappable_impl 29761: { 29761: using type = decltype(__test<_Tp>(0)); 29761: }; 29761: 29761: template 29761: struct __is_nothrow_swappable_impl 29761: : public __swappable_details::__do_is_nothrow_swappable_impl 29761: { 29761: using type = decltype(__test<_Tp>(0)); 29761: }; 29761: 29761: template 29761: struct __is_swappable 29761: : public __is_swappable_impl<_Tp>::type 29761: { }; 29761: 29761: template 29761: struct __is_nothrow_swappable 29761: : public __is_nothrow_swappable_impl<_Tp>::type 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_swappable 29761: : public __is_swappable_impl<_Tp>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_swappable 29761: : public __is_nothrow_swappable_impl<_Tp>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_swappable_v = 29761: is_swappable<_Tp>::value; 29761: 29761: 29761: template 29761: inline constexpr bool is_nothrow_swappable_v = 29761: is_nothrow_swappable<_Tp>::value; 29761: 29761: 29761: 29761: namespace __swappable_with_details { 29761: using std::swap; 29761: 29761: struct __do_is_swappable_with_impl 29761: { 29761: template(), std::declval<_Up>())), 29761: typename 29761: = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> 29761: static true_type __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: struct __do_is_nothrow_swappable_with_impl 29761: { 29761: template 29761: static __bool_constant< 29761: noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) 29761: && 29761: noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) 29761: > __test(int); 29761: 29761: template 29761: static false_type __test(...); 29761: }; 29761: 29761: } 29761: 29761: template 29761: struct __is_swappable_with_impl 29761: : public __swappable_with_details::__do_is_swappable_with_impl 29761: { 29761: using type = decltype(__test<_Tp, _Up>(0)); 29761: }; 29761: 29761: 29761: template 29761: struct __is_swappable_with_impl<_Tp&, _Tp&> 29761: : public __swappable_details::__do_is_swappable_impl 29761: { 29761: using type = decltype(__test<_Tp&>(0)); 29761: }; 29761: 29761: template 29761: struct __is_nothrow_swappable_with_impl 29761: : public __swappable_with_details::__do_is_nothrow_swappable_with_impl 29761: { 29761: using type = decltype(__test<_Tp, _Up>(0)); 29761: }; 29761: 29761: 29761: template 29761: struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> 29761: : public __swappable_details::__do_is_nothrow_swappable_impl 29761: { 29761: using type = decltype(__test<_Tp&>(0)); 29761: }; 29761: 29761: 29761: 29761: template 29761: struct is_swappable_with 29761: : public __is_swappable_with_impl<_Tp, _Up>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "first template argument must be a complete class or an unbounded array"); 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 29761: "second template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_swappable_with 29761: : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "first template argument must be a complete class or an unbounded array"); 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), 29761: "second template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_swappable_with_v = 29761: is_swappable_with<_Tp, _Up>::value; 29761: 29761: 29761: template 29761: inline constexpr bool is_nothrow_swappable_with_v = 29761: is_nothrow_swappable_with<_Tp, _Up>::value; 29761: # 3023 "/usr/include/c++/14/type_traits" 3 29761: template::value, typename = void> 29761: struct __is_invocable_impl 29761: : false_type 29761: { 29761: using __nothrow_conv = false_type; 29761: }; 29761: 29761: 29761: template 29761: struct __is_invocable_impl<_Result, _Ret, 29761: true, 29761: __void_t> 29761: : true_type 29761: { 29761: using __nothrow_conv = true_type; 29761: }; 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 29761: 29761: template 29761: struct __is_invocable_impl<_Result, _Ret, 29761: false, 29761: __void_t> 29761: { 29761: private: 29761: 29761: using _Res_t = typename _Result::type; 29761: 29761: 29761: 29761: static _Res_t _S_get() noexcept; 29761: 29761: 29761: template 29761: static void _S_conv(__type_identity_t<_Tp>) noexcept; 29761: 29761: 29761: template(_S_get())), 29761: typename = decltype(_S_conv<_Tp>(_S_get())), 29761: 29761: bool _Dangle = __reference_converts_from_temporary(_Tp, _Res_t) 29761: 29761: 29761: 29761: > 29761: static __bool_constant<_Nothrow && !_Dangle> 29761: _S_test(int); 29761: 29761: template 29761: static false_type 29761: _S_test(...); 29761: 29761: public: 29761: 29761: using type = decltype(_S_test<_Ret, true>(1)); 29761: 29761: 29761: using __nothrow_conv = decltype(_S_test<_Ret>(1)); 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: template 29761: struct __is_invocable 29761: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 29761: { }; 29761: 29761: template 29761: constexpr bool __call_is_nt(__invoke_memfun_ref) 29761: { 29761: using _Up = typename __inv_unwrap<_Tp>::type; 29761: return noexcept((std::declval<_Up>().*std::declval<_Fn>())( 29761: std::declval<_Args>()...)); 29761: } 29761: 29761: template 29761: constexpr bool __call_is_nt(__invoke_memfun_deref) 29761: { 29761: return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( 29761: std::declval<_Args>()...)); 29761: } 29761: 29761: template 29761: constexpr bool __call_is_nt(__invoke_memobj_ref) 29761: { 29761: using _Up = typename __inv_unwrap<_Tp>::type; 29761: return noexcept(std::declval<_Up>().*std::declval<_Fn>()); 29761: } 29761: 29761: template 29761: constexpr bool __call_is_nt(__invoke_memobj_deref) 29761: { 29761: return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); 29761: } 29761: 29761: template 29761: constexpr bool __call_is_nt(__invoke_other) 29761: { 29761: return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); 29761: } 29761: 29761: template 29761: struct __call_is_nothrow 29761: : __bool_constant< 29761: std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) 29761: > 29761: { }; 29761: 29761: template 29761: using __call_is_nothrow_ 29761: = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; 29761: 29761: 29761: template 29761: struct __is_nothrow_invocable 29761: : __and_<__is_invocable<_Fn, _Args...>, 29761: __call_is_nothrow_<_Fn, _Args...>>::type 29761: { }; 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" 29761: struct __nonesuchbase {}; 29761: struct __nonesuch : private __nonesuchbase { 29761: ~__nonesuch() = delete; 29761: __nonesuch(__nonesuch const&) = delete; 29761: void operator=(__nonesuch const&) = delete; 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: template 29761: struct invoke_result 29761: : public __invoke_result<_Functor, _ArgTypes...> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), 29761: "_Functor must be a complete class or an unbounded array"); 29761: static_assert((std::__is_complete_or_unbounded( 29761: __type_identity<_ArgTypes>{}) && ...), 29761: "each argument type must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; 29761: 29761: 29761: template 29761: struct is_invocable 29761: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29761: "_Fn must be a complete class or an unbounded array"); 29761: static_assert((std::__is_complete_or_unbounded( 29761: __type_identity<_ArgTypes>{}) && ...), 29761: "each argument type must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_invocable_r 29761: : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29761: "_Fn must be a complete class or an unbounded array"); 29761: static_assert((std::__is_complete_or_unbounded( 29761: __type_identity<_ArgTypes>{}) && ...), 29761: "each argument type must be a complete class or an unbounded array"); 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 29761: "_Ret must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: template 29761: struct is_nothrow_invocable 29761: : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, 29761: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29761: "_Fn must be a complete class or an unbounded array"); 29761: static_assert((std::__is_complete_or_unbounded( 29761: __type_identity<_ArgTypes>{}) && ...), 29761: "each argument type must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: using __is_nt_invocable_impl 29761: = typename __is_invocable_impl<_Result, _Ret>::__nothrow_conv; 29761: 29761: 29761: 29761: template 29761: struct is_nothrow_invocable_r 29761: : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, 29761: __call_is_nothrow_<_Fn, _ArgTypes...>>::type 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), 29761: "_Fn must be a complete class or an unbounded array"); 29761: static_assert((std::__is_complete_or_unbounded( 29761: __type_identity<_ArgTypes>{}) && ...), 29761: "each argument type must be a complete class or an unbounded array"); 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), 29761: "_Ret must be a complete class or an unbounded array"); 29761: }; 29761: # 3251 "/usr/include/c++/14/type_traits" 3 29761: template 29761: inline constexpr bool is_void_v = is_void<_Tp>::value; 29761: template 29761: inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; 29761: template 29761: inline constexpr bool is_integral_v = is_integral<_Tp>::value; 29761: template 29761: inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; 29761: 29761: 29761: template 29761: inline constexpr bool is_array_v = __is_array(_Tp); 29761: # 3272 "/usr/include/c++/14/type_traits" 3 29761: template 29761: inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; 29761: template 29761: inline constexpr bool is_lvalue_reference_v = false; 29761: template 29761: inline constexpr bool is_lvalue_reference_v<_Tp&> = true; 29761: template 29761: inline constexpr bool is_rvalue_reference_v = false; 29761: template 29761: inline constexpr bool is_rvalue_reference_v<_Tp&&> = true; 29761: 29761: 29761: template 29761: inline constexpr bool is_member_object_pointer_v = 29761: __is_member_object_pointer(_Tp); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_member_function_pointer_v = 29761: __is_member_function_pointer(_Tp); 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_enum_v = __is_enum(_Tp); 29761: template 29761: inline constexpr bool is_union_v = __is_union(_Tp); 29761: template 29761: inline constexpr bool is_class_v = __is_class(_Tp); 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_reference_v = __is_reference(_Tp); 29761: # 3323 "/usr/include/c++/14/type_traits" 3 29761: template 29761: inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; 29761: template 29761: inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; 29761: 29761: 29761: template 29761: inline constexpr bool is_object_v = __is_object(_Tp); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; 29761: template 29761: inline constexpr bool is_compound_v = !is_fundamental_v<_Tp>; 29761: 29761: 29761: template 29761: inline constexpr bool is_member_pointer_v = __is_member_pointer(_Tp); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_const_v = false; 29761: template 29761: inline constexpr bool is_const_v = true; 29761: 29761: 29761: template 29761: inline constexpr bool is_function_v = __is_function(_Tp); 29761: # 3366 "/usr/include/c++/14/type_traits" 3 29761: template 29761: inline constexpr bool is_volatile_v = false; 29761: template 29761: inline constexpr bool is_volatile_v = true; 29761: 29761: template 29761: inline constexpr bool is_trivial_v = __is_trivial(_Tp); 29761: template 29761: inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(_Tp); 29761: template 29761: inline constexpr bool is_standard_layout_v = __is_standard_layout(_Tp); 29761: template 29761: 29761: inline constexpr bool is_pod_v = __is_pod(_Tp); 29761: template 29761: [[__deprecated__]] 29761: inline constexpr bool is_literal_type_v = __is_literal_type(_Tp); 29761: template 29761: inline constexpr bool is_empty_v = __is_empty(_Tp); 29761: template 29761: inline constexpr bool is_polymorphic_v = __is_polymorphic(_Tp); 29761: template 29761: inline constexpr bool is_abstract_v = __is_abstract(_Tp); 29761: template 29761: inline constexpr bool is_final_v = __is_final(_Tp); 29761: 29761: template 29761: inline constexpr bool is_signed_v = is_signed<_Tp>::value; 29761: template 29761: inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; 29761: 29761: template 29761: inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); 29761: template 29761: inline constexpr bool is_default_constructible_v = __is_constructible(_Tp); 29761: template 29761: inline constexpr bool is_copy_constructible_v 29761: = __is_constructible(_Tp, __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_move_constructible_v 29761: = __is_constructible(_Tp, __add_rval_ref_t<_Tp>); 29761: 29761: template 29761: inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up); 29761: template 29761: inline constexpr bool is_copy_assignable_v 29761: = __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_move_assignable_v 29761: = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 29761: 29761: template 29761: inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; 29761: 29761: template 29761: inline constexpr bool is_trivially_constructible_v 29761: = __is_trivially_constructible(_Tp, _Args...); 29761: template 29761: inline constexpr bool is_trivially_default_constructible_v 29761: = __is_trivially_constructible(_Tp); 29761: template 29761: inline constexpr bool is_trivially_copy_constructible_v 29761: = __is_trivially_constructible(_Tp, __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_trivially_move_constructible_v 29761: = __is_trivially_constructible(_Tp, __add_rval_ref_t<_Tp>); 29761: 29761: template 29761: inline constexpr bool is_trivially_assignable_v 29761: = __is_trivially_assignable(_Tp, _Up); 29761: template 29761: inline constexpr bool is_trivially_copy_assignable_v 29761: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 29761: __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_trivially_move_assignable_v 29761: = __is_trivially_assignable(__add_lval_ref_t<_Tp>, 29761: __add_rval_ref_t<_Tp>); 29761: # 3461 "/usr/include/c++/14/type_traits" 3 29761: template 29761: inline constexpr bool is_trivially_destructible_v = 29761: is_trivially_destructible<_Tp>::value; 29761: 29761: 29761: template 29761: inline constexpr bool is_nothrow_constructible_v 29761: = __is_nothrow_constructible(_Tp, _Args...); 29761: template 29761: inline constexpr bool is_nothrow_default_constructible_v 29761: = __is_nothrow_constructible(_Tp); 29761: template 29761: inline constexpr bool is_nothrow_copy_constructible_v 29761: = __is_nothrow_constructible(_Tp, __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_nothrow_move_constructible_v 29761: = __is_nothrow_constructible(_Tp, __add_rval_ref_t<_Tp>); 29761: 29761: template 29761: inline constexpr bool is_nothrow_assignable_v 29761: = __is_nothrow_assignable(_Tp, _Up); 29761: template 29761: inline constexpr bool is_nothrow_copy_assignable_v 29761: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, 29761: __add_lval_ref_t); 29761: template 29761: inline constexpr bool is_nothrow_move_assignable_v 29761: = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); 29761: 29761: template 29761: inline constexpr bool is_nothrow_destructible_v = 29761: is_nothrow_destructible<_Tp>::value; 29761: 29761: template 29761: inline constexpr bool has_virtual_destructor_v 29761: = __has_virtual_destructor(_Tp); 29761: 29761: template 29761: inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; 29761: 29761: template 29761: inline constexpr size_t rank_v = 0; 29761: template 29761: inline constexpr size_t rank_v<_Tp[_Size]> = 1 + rank_v<_Tp>; 29761: template 29761: inline constexpr size_t rank_v<_Tp[]> = 1 + rank_v<_Tp>; 29761: 29761: template 29761: inline constexpr size_t extent_v = 0; 29761: template 29761: inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size; 29761: template 29761: inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>; 29761: template 29761: inline constexpr size_t extent_v<_Tp[], 0> = 0; 29761: template 29761: inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>; 29761: 29761: 29761: template 29761: inline constexpr bool is_same_v = __is_same(_Tp, _Up); 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); 29761: 29761: template 29761: inline constexpr bool is_convertible_v = __is_convertible(_From, _To); 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; 29761: template 29761: inline constexpr bool is_nothrow_invocable_v 29761: = is_nothrow_invocable<_Fn, _Args...>::value; 29761: template 29761: inline constexpr bool is_invocable_r_v 29761: = is_invocable_r<_Ret, _Fn, _Args...>::value; 29761: template 29761: inline constexpr bool is_nothrow_invocable_r_v 29761: = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct has_unique_object_representations 29761: : bool_constant<__has_unique_object_representations( 29761: remove_cv_t> 29761: )> 29761: { 29761: static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), 29761: "template argument must be a complete class or an unbounded array"); 29761: }; 29761: 29761: 29761: 29761: template 29761: inline constexpr bool has_unique_object_representations_v 29761: = has_unique_object_representations<_Tp>::value; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_aggregate 29761: : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<_Tp>); 29761: # 4017 "/usr/include/c++/14/type_traits" 3 29761: 29761: } 29761: # 38 "/usr/include/c++/14/bits/move.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline constexpr _Tp* 29761: __addressof(_Tp& __r) noexcept 29761: { return __builtin_addressof(__r); } 29761: # 68 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: [[__nodiscard__]] 29761: constexpr _Tp&& 29761: forward(typename std::remove_reference<_Tp>::type& __t) noexcept 29761: { return static_cast<_Tp&&>(__t); } 29761: # 81 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: [[__nodiscard__]] 29761: constexpr _Tp&& 29761: forward(typename std::remove_reference<_Tp>::type&& __t) noexcept 29761: { 29761: static_assert(!std::is_lvalue_reference<_Tp>::value, 29761: "std::forward must not be used to convert an rvalue to an lvalue"); 29761: return static_cast<_Tp&&>(__t); 29761: } 29761: # 134 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: [[__nodiscard__]] 29761: constexpr typename std::remove_reference<_Tp>::type&& 29761: move(_Tp&& __t) noexcept 29761: { return static_cast::type&&>(__t); } 29761: 29761: 29761: template 29761: struct __move_if_noexcept_cond 29761: : public __and_<__not_>, 29761: is_copy_constructible<_Tp>>::type { }; 29761: # 155 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: [[__nodiscard__]] 29761: constexpr 29761: __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> 29761: move_if_noexcept(_Tp& __x) noexcept 29761: { return std::move(__x); } 29761: # 172 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr _Tp* 29761: addressof(_Tp& __r) noexcept 29761: { return std::__addressof(__r); } 29761: 29761: 29761: 29761: template 29761: const _Tp* addressof(const _Tp&&) = delete; 29761: 29761: 29761: template 29761: 29761: inline _Tp 29761: __exchange(_Tp& __obj, _Up&& __new_val) 29761: { 29761: _Tp __old_val = std::move(__obj); 29761: __obj = std::forward<_Up>(__new_val); 29761: return __old_val; 29761: } 29761: # 216 "/usr/include/c++/14/bits/move.h" 3 29761: template 29761: 29761: inline 29761: 29761: typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, 29761: is_move_constructible<_Tp>, 29761: is_move_assignable<_Tp>>::value>::type 29761: 29761: 29761: 29761: swap(_Tp& __a, _Tp& __b) 29761: noexcept(__and_, is_nothrow_move_assignable<_Tp>>::value) 29761: 29761: { 29761: 29761: 29761: 29761: 29761: _Tp __tmp = std::move(__a); 29761: __a = std::move(__b); 29761: __b = std::move(__tmp); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline 29761: 29761: typename enable_if<__is_swappable<_Tp>::value>::type 29761: 29761: 29761: 29761: swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) 29761: noexcept(__is_nothrow_swappable<_Tp>::value) 29761: { 29761: for (size_t __n = 0; __n < _Nm; ++__n) 29761: swap(__a[__n], __b[__n]); 29761: } 29761: 29761: 29761: 29761: } 29761: # 40 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29761: # 49 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 50 "/usr/include/c++/14/bits/atomic_base.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 81 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: enum memory_order : int 29761: { 29761: memory_order_relaxed, 29761: memory_order_consume, 29761: memory_order_acquire, 29761: memory_order_release, 29761: memory_order_acq_rel, 29761: memory_order_seq_cst 29761: }; 29761: 29761: 29761: 29761: enum __memory_order_modifier 29761: { 29761: __memory_order_mask = 0x0ffff, 29761: __memory_order_modifier_mask = 0xffff0000, 29761: __memory_order_hle_acquire = 0x10000, 29761: __memory_order_hle_release = 0x20000 29761: }; 29761: 29761: 29761: constexpr memory_order 29761: operator|(memory_order __m, __memory_order_modifier __mod) noexcept 29761: { 29761: return memory_order(int(__m) | int(__mod)); 29761: } 29761: 29761: constexpr memory_order 29761: operator&(memory_order __m, __memory_order_modifier __mod) noexcept 29761: { 29761: return memory_order(int(__m) & int(__mod)); 29761: } 29761: 29761: 29761: 29761: 29761: constexpr memory_order 29761: __cmpexch_failure_order2(memory_order __m) noexcept 29761: { 29761: return __m == memory_order_acq_rel ? memory_order_acquire 29761: : __m == memory_order_release ? memory_order_relaxed : __m; 29761: } 29761: 29761: constexpr memory_order 29761: __cmpexch_failure_order(memory_order __m) noexcept 29761: { 29761: return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) 29761: | __memory_order_modifier(__m & __memory_order_modifier_mask)); 29761: } 29761: 29761: constexpr bool 29761: __is_valid_cmpexch_failure_order(memory_order __m) noexcept 29761: { 29761: return (__m & __memory_order_mask) != memory_order_release 29761: && (__m & __memory_order_mask) != memory_order_acq_rel; 29761: } 29761: 29761: 29761: template 29761: struct __atomic_base; 29761: 29761: 29761: 29761: inline __attribute__((__always_inline__)) void 29761: atomic_thread_fence(memory_order __m) noexcept 29761: { __atomic_thread_fence(int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: atomic_signal_fence(memory_order __m) noexcept 29761: { __atomic_signal_fence(int(__m)); } 29761: 29761: 29761: template 29761: inline _Tp 29761: kill_dependency(_Tp __y) noexcept 29761: { 29761: _Tp __ret(__y); 29761: return __ret; 29761: } 29761: # 171 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: template 29761: struct atomic; 29761: 29761: template 29761: struct atomic<_Tp*>; 29761: 29761: 29761: 29761: typedef bool __atomic_flag_data_type; 29761: # 196 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: extern "C" { 29761: 29761: struct __atomic_flag_base 29761: { 29761: __atomic_flag_data_type _M_i ; 29761: }; 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct atomic_flag : public __atomic_flag_base 29761: { 29761: atomic_flag() noexcept = default; 29761: ~atomic_flag() noexcept = default; 29761: atomic_flag(const atomic_flag&) = delete; 29761: atomic_flag& operator=(const atomic_flag&) = delete; 29761: atomic_flag& operator=(const atomic_flag&) volatile = delete; 29761: 29761: 29761: constexpr atomic_flag(bool __i) noexcept 29761: : __atomic_flag_base{ _S_init(__i) } 29761: { } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: test_and_set(memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return __atomic_test_and_set (&_M_i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return __atomic_test_and_set (&_M_i, int(__m)); 29761: } 29761: # 280 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: inline __attribute__((__always_inline__)) void 29761: clear(memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_clear (&_M_i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: clear(memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_clear (&_M_i, int(__m)); 29761: } 29761: 29761: private: 29761: static constexpr __atomic_flag_data_type 29761: _S_init(bool __i) 29761: { return __i ? 1 : 0; } 29761: }; 29761: # 336 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: template 29761: struct __atomic_base 29761: { 29761: using value_type = _ITp; 29761: using difference_type = value_type; 29761: 29761: private: 29761: typedef _ITp __int_type; 29761: 29761: static constexpr int _S_alignment = 29761: sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); 29761: 29761: alignas(_S_alignment) __int_type _M_i ; 29761: 29761: public: 29761: __atomic_base() noexcept = default; 29761: ~__atomic_base() noexcept = default; 29761: __atomic_base(const __atomic_base&) = delete; 29761: __atomic_base& operator=(const __atomic_base&) = delete; 29761: __atomic_base& operator=(const __atomic_base&) volatile = delete; 29761: 29761: 29761: constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } 29761: 29761: operator __int_type() const noexcept 29761: { return load(); } 29761: 29761: operator __int_type() const volatile noexcept 29761: { return load(); } 29761: 29761: __int_type 29761: operator=(__int_type __i) noexcept 29761: { 29761: store(__i); 29761: return __i; 29761: } 29761: 29761: __int_type 29761: operator=(__int_type __i) volatile noexcept 29761: { 29761: store(__i); 29761: return __i; 29761: } 29761: 29761: __int_type 29761: operator++(int) noexcept 29761: { return fetch_add(1); } 29761: 29761: __int_type 29761: operator++(int) volatile noexcept 29761: { return fetch_add(1); } 29761: 29761: __int_type 29761: operator--(int) noexcept 29761: { return fetch_sub(1); } 29761: 29761: __int_type 29761: operator--(int) volatile noexcept 29761: { return fetch_sub(1); } 29761: 29761: __int_type 29761: operator++() noexcept 29761: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator++() volatile noexcept 29761: { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator--() noexcept 29761: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator--() volatile noexcept 29761: { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator+=(__int_type __i) noexcept 29761: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator+=(__int_type __i) volatile noexcept 29761: { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator-=(__int_type __i) noexcept 29761: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator-=(__int_type __i) volatile noexcept 29761: { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator&=(__int_type __i) noexcept 29761: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator&=(__int_type __i) volatile noexcept 29761: { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator|=(__int_type __i) noexcept 29761: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator|=(__int_type __i) volatile noexcept 29761: { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator^=(__int_type __i) noexcept 29761: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: __int_type 29761: operator^=(__int_type __i) volatile noexcept 29761: { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } 29761: 29761: bool 29761: is_lock_free() const noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_i), 29761: reinterpret_cast(-_S_alignment)); 29761: } 29761: 29761: bool 29761: is_lock_free() const volatile noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_i), 29761: reinterpret_cast(-_S_alignment)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_store_n(&_M_i, __i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: store(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_store_n(&_M_i, __i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: load(memory_order __m = memory_order_seq_cst) const noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_load_n(&_M_i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_load_n(&_M_i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: exchange(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return __atomic_exchange_n(&_M_i, __i, int(__m)); 29761: } 29761: 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: exchange(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return __atomic_exchange_n(&_M_i, __i, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29761: memory_order __m1, memory_order __m2) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return compare_exchange_weak(__i1, __i2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__int_type& __i1, __int_type __i2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return compare_exchange_weak(__i1, __i2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29761: memory_order __m1, memory_order __m2) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return compare_exchange_strong(__i1, __i2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__int_type& __i1, __int_type __i2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return compare_exchange_strong(__i1, __i2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: # 628 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_add(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_add(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_add(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_sub(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_sub(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_and(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_and(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_and(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_or(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_or(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_or(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_xor(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __int_type 29761: fetch_xor(__int_type __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __atomic_base<_PTp*> 29761: { 29761: private: 29761: typedef _PTp* __pointer_type; 29761: 29761: __pointer_type _M_p ; 29761: 29761: 29761: constexpr ptrdiff_t 29761: _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } 29761: 29761: constexpr ptrdiff_t 29761: _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } 29761: 29761: public: 29761: __atomic_base() noexcept = default; 29761: ~__atomic_base() noexcept = default; 29761: __atomic_base(const __atomic_base&) = delete; 29761: __atomic_base& operator=(const __atomic_base&) = delete; 29761: __atomic_base& operator=(const __atomic_base&) volatile = delete; 29761: 29761: 29761: constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } 29761: 29761: operator __pointer_type() const noexcept 29761: { return load(); } 29761: 29761: operator __pointer_type() const volatile noexcept 29761: { return load(); } 29761: 29761: __pointer_type 29761: operator=(__pointer_type __p) noexcept 29761: { 29761: store(__p); 29761: return __p; 29761: } 29761: 29761: __pointer_type 29761: operator=(__pointer_type __p) volatile noexcept 29761: { 29761: store(__p); 29761: return __p; 29761: } 29761: 29761: __pointer_type 29761: operator++(int) noexcept 29761: { return fetch_add(1); } 29761: 29761: __pointer_type 29761: operator++(int) volatile noexcept 29761: { return fetch_add(1); } 29761: 29761: __pointer_type 29761: operator--(int) noexcept 29761: { return fetch_sub(1); } 29761: 29761: __pointer_type 29761: operator--(int) volatile noexcept 29761: { return fetch_sub(1); } 29761: 29761: __pointer_type 29761: operator++() noexcept 29761: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator++() volatile noexcept 29761: { return __atomic_add_fetch(&_M_p, _M_type_size(1), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator--() noexcept 29761: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator--() volatile noexcept 29761: { return __atomic_sub_fetch(&_M_p, _M_type_size(1), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator+=(ptrdiff_t __d) noexcept 29761: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator+=(ptrdiff_t __d) volatile noexcept 29761: { return __atomic_add_fetch(&_M_p, _M_type_size(__d), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator-=(ptrdiff_t __d) noexcept 29761: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 29761: int(memory_order_seq_cst)); } 29761: 29761: __pointer_type 29761: operator-=(ptrdiff_t __d) volatile noexcept 29761: { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), 29761: int(memory_order_seq_cst)); } 29761: 29761: bool 29761: is_lock_free() const noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_p), 29761: reinterpret_cast(-__alignof(_M_p))); 29761: } 29761: 29761: bool 29761: is_lock_free() const volatile noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_p), 29761: reinterpret_cast(-__alignof(_M_p))); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: store(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_store_n(&_M_p, __p, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) void 29761: store(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __atomic_store_n(&_M_p, __p, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: load(memory_order __m = memory_order_seq_cst) const noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_load_n(&_M_p, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29761: { 29761: memory_order __b __attribute__ ((__unused__)) 29761: = __m & __memory_order_mask; 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_load_n(&_M_p, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: exchange(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return __atomic_exchange_n(&_M_p, __p, int(__m)); 29761: } 29761: 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: exchange(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return __atomic_exchange_n(&_M_p, __p, int(__m)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 29761: int(__m1), int(__m2)); 29761: } 29761: 29761: inline __attribute__((__always_inline__)) bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, 29761: int(__m1), int(__m2)); 29761: } 29761: # 931 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: fetch_add(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: fetch_add(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: fetch_sub(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 29761: 29761: inline __attribute__((__always_inline__)) __pointer_type 29761: fetch_sub(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } 29761: }; 29761: 29761: namespace __atomic_impl 29761: { 29761: 29761: 29761: template 29761: constexpr bool 29761: __maybe_has_padding() 29761: { 29761: 29761: 29761: 29761: return !__has_unique_object_representations(_Tp) 29761: && !is_same<_Tp, float>::value && !is_same<_Tp, double>::value; 29761: 29761: 29761: 29761: } 29761: 29761: template 29761: inline __attribute__((__always_inline__)) constexpr _Tp* 29761: __clear_padding(_Tp& __val) noexcept 29761: { 29761: auto* __ptr = std::__addressof(__val); 29761: 29761: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 29761: __builtin_clear_padding(__ptr); 29761: 29761: return __ptr; 29761: } 29761: 29761: 29761: template 29761: using _Val = typename remove_volatile<_Tp>::type; 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: 29761: template 29761: inline __attribute__((__always_inline__)) bool 29761: __compare_exchange(_Tp& __val, _Val<_Tp>& __e, _Val<_Tp>& __i, 29761: bool __is_weak, 29761: memory_order __s, memory_order __f) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: using _Vp = _Val<_Tp>; 29761: _Tp* const __pval = std::__addressof(__val); 29761: 29761: if constexpr (!__atomic_impl::__maybe_has_padding<_Vp>()) 29761: { 29761: return __atomic_compare_exchange(__pval, std::__addressof(__e), 29761: std::__addressof(__i), __is_weak, 29761: int(__s), int(__f)); 29761: } 29761: else if constexpr (!_AtomicRef) 29761: { 29761: 29761: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 29761: 29761: _Vp __exp = __e; 29761: 29761: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 29761: 29761: 29761: 29761: if (__atomic_compare_exchange(__pval, __pexp, __pi, 29761: __is_weak, int(__s), int(__f))) 29761: return true; 29761: 29761: __builtin_memcpy(std::__addressof(__e), __pexp, sizeof(_Vp)); 29761: return false; 29761: } 29761: else 29761: { 29761: 29761: _Vp* const __pi = __atomic_impl::__clear_padding(__i); 29761: 29761: 29761: _Vp __exp = __e; 29761: 29761: 29761: _Vp* const __pexp = __atomic_impl::__clear_padding(__exp); 29761: # 1045 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: while (true) 29761: { 29761: 29761: _Vp __orig = __exp; 29761: 29761: if (__atomic_compare_exchange(__pval, __pexp, __pi, 29761: __is_weak, int(__s), int(__f))) 29761: return true; 29761: 29761: 29761: _Vp __curr = __exp; 29761: 29761: 29761: if (__builtin_memcmp(__atomic_impl::__clear_padding(__orig), 29761: __atomic_impl::__clear_padding(__curr), 29761: sizeof(_Vp))) 29761: { 29761: 29761: __builtin_memcpy(std::__addressof(__e), __pexp, 29761: sizeof(_Vp)); 29761: return false; 29761: } 29761: } 29761: } 29761: } 29761: #pragma GCC diagnostic pop 29761: } 29761: # 2065 "/usr/include/c++/14/bits/atomic_base.h" 3 29761: 29761: } 29761: # 51 "/usr/include/c++/14/atomic" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct atomic; 29761: 29761: 29761: 29761: template<> 29761: struct atomic 29761: { 29761: using value_type = bool; 29761: 29761: private: 29761: __atomic_base _M_base; 29761: 29761: public: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(bool __i) noexcept : _M_base(__i) { } 29761: 29761: bool 29761: operator=(bool __i) noexcept 29761: { return _M_base.operator=(__i); } 29761: 29761: bool 29761: operator=(bool __i) volatile noexcept 29761: { return _M_base.operator=(__i); } 29761: 29761: operator bool() const noexcept 29761: { return _M_base.load(); } 29761: 29761: operator bool() const volatile noexcept 29761: { return _M_base.load(); } 29761: 29761: bool 29761: is_lock_free() const noexcept { return _M_base.is_lock_free(); } 29761: 29761: bool 29761: is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: 29761: void 29761: store(bool __i, memory_order __m = memory_order_seq_cst) noexcept 29761: { _M_base.store(__i, __m); } 29761: 29761: void 29761: store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { _M_base.store(__i, __m); } 29761: 29761: bool 29761: load(memory_order __m = memory_order_seq_cst) const noexcept 29761: { return _M_base.load(__m); } 29761: 29761: bool 29761: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29761: { return _M_base.load(__m); } 29761: 29761: bool 29761: exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept 29761: { return _M_base.exchange(__i, __m); } 29761: 29761: bool 29761: exchange(bool __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return _M_base.exchange(__i, __m); } 29761: 29761: bool 29761: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_weak(bool& __i1, bool __i2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 29761: 29761: bool 29761: compare_exchange_weak(bool& __i1, bool __i2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return _M_base.compare_exchange_weak(__i1, __i2, __m); } 29761: 29761: bool 29761: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_strong(bool& __i1, bool __i2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 29761: 29761: bool 29761: compare_exchange_strong(bool& __i1, bool __i2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return _M_base.compare_exchange_strong(__i1, __i2, __m); } 29761: # 187 "/usr/include/c++/14/atomic" 3 29761: }; 29761: # 202 "/usr/include/c++/14/atomic" 3 29761: template 29761: struct atomic 29761: { 29761: using value_type = _Tp; 29761: 29761: private: 29761: 29761: static constexpr int _S_min_alignment 29761: = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 29761: ? 0 : sizeof(_Tp); 29761: 29761: static constexpr int _S_alignment 29761: = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); 29761: 29761: alignas(_S_alignment) _Tp _M_i ; 29761: 29761: static_assert(__is_trivially_copyable(_Tp), 29761: "std::atomic requires a trivially copyable type"); 29761: 29761: static_assert(sizeof(_Tp) > 0, 29761: "Incomplete or zero-sized types are not supported"); 29761: # 231 "/usr/include/c++/14/atomic" 3 29761: public: 29761: atomic() = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(_Tp __i) noexcept : _M_i(__i) 29761: { 29761: 29761: if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) 29761: __builtin_clear_padding(std::__addressof(_M_i)); 29761: 29761: } 29761: 29761: operator _Tp() const noexcept 29761: { return load(); } 29761: 29761: operator _Tp() const volatile noexcept 29761: { return load(); } 29761: 29761: _Tp 29761: operator=(_Tp __i) noexcept 29761: { store(__i); return __i; } 29761: 29761: _Tp 29761: operator=(_Tp __i) volatile noexcept 29761: { store(__i); return __i; } 29761: 29761: bool 29761: is_lock_free() const noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_i), 29761: reinterpret_cast(-_S_alignment)); 29761: } 29761: 29761: bool 29761: is_lock_free() const volatile noexcept 29761: { 29761: 29761: return __atomic_is_lock_free(sizeof(_M_i), 29761: reinterpret_cast(-_S_alignment)); 29761: } 29761: 29761: 29761: static constexpr bool is_always_lock_free 29761: = __atomic_always_lock_free(sizeof(_M_i), 0); 29761: 29761: 29761: void 29761: store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: __atomic_store(std::__addressof(_M_i), 29761: __atomic_impl::__clear_padding(__i), 29761: int(__m)); 29761: } 29761: 29761: void 29761: store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: __atomic_store(std::__addressof(_M_i), 29761: __atomic_impl::__clear_padding(__i), 29761: int(__m)); 29761: } 29761: 29761: _Tp 29761: load(memory_order __m = memory_order_seq_cst) const noexcept 29761: { 29761: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29761: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29761: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 29761: return *__ptr; 29761: } 29761: 29761: _Tp 29761: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29761: { 29761: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29761: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29761: __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); 29761: return *__ptr; 29761: } 29761: 29761: _Tp 29761: exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29761: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29761: __atomic_exchange(std::__addressof(_M_i), 29761: __atomic_impl::__clear_padding(__i), 29761: __ptr, int(__m)); 29761: return *__ptr; 29761: } 29761: 29761: _Tp 29761: exchange(_Tp __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; 29761: _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); 29761: __atomic_exchange(std::__addressof(_M_i), 29761: __atomic_impl::__clear_padding(__i), 29761: __ptr, int(__m)); 29761: return *__ptr; 29761: } 29761: 29761: bool 29761: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 29761: memory_order __f) noexcept 29761: { 29761: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 29761: __s, __f); 29761: } 29761: 29761: bool 29761: compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, 29761: memory_order __f) volatile noexcept 29761: { 29761: return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, 29761: __s, __f); 29761: } 29761: 29761: bool 29761: compare_exchange_weak(_Tp& __e, _Tp __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return compare_exchange_weak(__e, __i, __m, 29761: __cmpexch_failure_order(__m)); } 29761: 29761: bool 29761: compare_exchange_weak(_Tp& __e, _Tp __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return compare_exchange_weak(__e, __i, __m, 29761: __cmpexch_failure_order(__m)); } 29761: 29761: bool 29761: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 29761: memory_order __f) noexcept 29761: { 29761: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 29761: __s, __f); 29761: } 29761: 29761: bool 29761: compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, 29761: memory_order __f) volatile noexcept 29761: { 29761: return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, 29761: __s, __f); 29761: } 29761: 29761: bool 29761: compare_exchange_strong(_Tp& __e, _Tp __i, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return compare_exchange_strong(__e, __i, __m, 29761: __cmpexch_failure_order(__m)); } 29761: 29761: bool 29761: compare_exchange_strong(_Tp& __e, _Tp __i, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return compare_exchange_strong(__e, __i, __m, 29761: __cmpexch_failure_order(__m)); } 29761: # 413 "/usr/include/c++/14/atomic" 3 29761: }; 29761: 29761: 29761: 29761: template 29761: struct atomic<_Tp*> 29761: { 29761: using value_type = _Tp*; 29761: using difference_type = ptrdiff_t; 29761: 29761: typedef _Tp* __pointer_type; 29761: typedef __atomic_base<_Tp*> __base_type; 29761: __base_type _M_b; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } 29761: 29761: operator __pointer_type() const noexcept 29761: { return __pointer_type(_M_b); } 29761: 29761: operator __pointer_type() const volatile noexcept 29761: { return __pointer_type(_M_b); } 29761: 29761: __pointer_type 29761: operator=(__pointer_type __p) noexcept 29761: { return _M_b.operator=(__p); } 29761: 29761: __pointer_type 29761: operator=(__pointer_type __p) volatile noexcept 29761: { return _M_b.operator=(__p); } 29761: 29761: __pointer_type 29761: operator++(int) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b++; 29761: } 29761: 29761: __pointer_type 29761: operator++(int) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b++; 29761: } 29761: 29761: __pointer_type 29761: operator--(int) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b--; 29761: } 29761: 29761: __pointer_type 29761: operator--(int) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b--; 29761: } 29761: 29761: __pointer_type 29761: operator++() noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return ++_M_b; 29761: } 29761: 29761: __pointer_type 29761: operator++() volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return ++_M_b; 29761: } 29761: 29761: __pointer_type 29761: operator--() noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return --_M_b; 29761: } 29761: 29761: __pointer_type 29761: operator--() volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return --_M_b; 29761: } 29761: 29761: __pointer_type 29761: operator+=(ptrdiff_t __d) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.operator+=(__d); 29761: } 29761: 29761: __pointer_type 29761: operator+=(ptrdiff_t __d) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.operator+=(__d); 29761: } 29761: 29761: __pointer_type 29761: operator-=(ptrdiff_t __d) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.operator-=(__d); 29761: } 29761: 29761: __pointer_type 29761: operator-=(ptrdiff_t __d) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.operator-=(__d); 29761: } 29761: 29761: bool 29761: is_lock_free() const noexcept 29761: { return _M_b.is_lock_free(); } 29761: 29761: bool 29761: is_lock_free() const volatile noexcept 29761: { return _M_b.is_lock_free(); } 29761: 29761: 29761: static constexpr bool is_always_lock_free 29761: = 2 == 2; 29761: 29761: 29761: void 29761: store(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return _M_b.store(__p, __m); } 29761: 29761: void 29761: store(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return _M_b.store(__p, __m); } 29761: 29761: __pointer_type 29761: load(memory_order __m = memory_order_seq_cst) const noexcept 29761: { return _M_b.load(__m); } 29761: 29761: __pointer_type 29761: load(memory_order __m = memory_order_seq_cst) const volatile noexcept 29761: { return _M_b.load(__m); } 29761: 29761: __pointer_type 29761: exchange(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { return _M_b.exchange(__p, __m); } 29761: 29761: __pointer_type 29761: exchange(__pointer_type __p, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { return _M_b.exchange(__p, __m); } 29761: 29761: bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, memory_order __m2) noexcept 29761: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return compare_exchange_weak(__p1, __p2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: bool 29761: compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return compare_exchange_weak(__p1, __p2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, memory_order __m2) noexcept 29761: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m1, 29761: memory_order __m2) volatile noexcept 29761: { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } 29761: 29761: bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: return _M_b.compare_exchange_strong(__p1, __p2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: 29761: bool 29761: compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: return _M_b.compare_exchange_strong(__p1, __p2, __m, 29761: __cmpexch_failure_order(__m)); 29761: } 29761: # 668 "/usr/include/c++/14/atomic" 3 29761: __pointer_type 29761: fetch_add(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.fetch_add(__d, __m); 29761: } 29761: 29761: __pointer_type 29761: fetch_add(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.fetch_add(__d, __m); 29761: } 29761: 29761: __pointer_type 29761: fetch_sub(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.fetch_sub(__d, __m); 29761: } 29761: 29761: __pointer_type 29761: fetch_sub(ptrdiff_t __d, 29761: memory_order __m = memory_order_seq_cst) volatile noexcept 29761: { 29761: 29761: static_assert( is_object<_Tp>::value, "pointer to object type" ); 29761: 29761: return _M_b.fetch_sub(__d, __m); 29761: } 29761: }; 29761: 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef char __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef signed char __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept= default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef unsigned char __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept= default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef short __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef unsigned short __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef int __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef unsigned int __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef long __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef unsigned long __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef long long __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef unsigned long long __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef wchar_t __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free = 2 == 2; 29761: 29761: }; 29761: # 1013 "/usr/include/c++/14/atomic" 3 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef char16_t __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free 29761: = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: template<> 29761: struct atomic : __atomic_base 29761: { 29761: typedef char32_t __integral_type; 29761: typedef __atomic_base __base_type; 29761: 29761: atomic() noexcept = default; 29761: ~atomic() noexcept = default; 29761: atomic(const atomic&) = delete; 29761: atomic& operator=(const atomic&) = delete; 29761: atomic& operator=(const atomic&) volatile = delete; 29761: 29761: constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } 29761: 29761: using __base_type::operator __integral_type; 29761: using __base_type::operator=; 29761: 29761: 29761: static constexpr bool is_always_lock_free 29761: = 2 == 2; 29761: 29761: }; 29761: 29761: 29761: 29761: typedef atomic atomic_bool; 29761: 29761: 29761: typedef atomic atomic_char; 29761: 29761: 29761: typedef atomic atomic_schar; 29761: 29761: 29761: typedef atomic atomic_uchar; 29761: 29761: 29761: typedef atomic atomic_short; 29761: 29761: 29761: typedef atomic atomic_ushort; 29761: 29761: 29761: typedef atomic atomic_int; 29761: 29761: 29761: typedef atomic atomic_uint; 29761: 29761: 29761: typedef atomic atomic_long; 29761: 29761: 29761: typedef atomic atomic_ulong; 29761: 29761: 29761: typedef atomic atomic_llong; 29761: 29761: 29761: typedef atomic atomic_ullong; 29761: 29761: 29761: typedef atomic atomic_wchar_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef atomic atomic_char16_t; 29761: 29761: 29761: typedef atomic atomic_char32_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef atomic atomic_int8_t; 29761: 29761: 29761: typedef atomic atomic_uint8_t; 29761: 29761: 29761: typedef atomic atomic_int16_t; 29761: 29761: 29761: typedef atomic atomic_uint16_t; 29761: 29761: 29761: typedef atomic atomic_int32_t; 29761: 29761: 29761: typedef atomic atomic_uint32_t; 29761: 29761: 29761: typedef atomic atomic_int64_t; 29761: 29761: 29761: typedef atomic atomic_uint64_t; 29761: 29761: 29761: 29761: typedef atomic atomic_int_least8_t; 29761: 29761: 29761: typedef atomic atomic_uint_least8_t; 29761: 29761: 29761: typedef atomic atomic_int_least16_t; 29761: 29761: 29761: typedef atomic atomic_uint_least16_t; 29761: 29761: 29761: typedef atomic atomic_int_least32_t; 29761: 29761: 29761: typedef atomic atomic_uint_least32_t; 29761: 29761: 29761: typedef atomic atomic_int_least64_t; 29761: 29761: 29761: typedef atomic atomic_uint_least64_t; 29761: 29761: 29761: 29761: typedef atomic atomic_int_fast8_t; 29761: 29761: 29761: typedef atomic atomic_uint_fast8_t; 29761: 29761: 29761: typedef atomic atomic_int_fast16_t; 29761: 29761: 29761: typedef atomic atomic_uint_fast16_t; 29761: 29761: 29761: typedef atomic atomic_int_fast32_t; 29761: 29761: 29761: typedef atomic atomic_uint_fast32_t; 29761: 29761: 29761: typedef atomic atomic_int_fast64_t; 29761: 29761: 29761: typedef atomic atomic_uint_fast64_t; 29761: 29761: 29761: 29761: typedef atomic atomic_intptr_t; 29761: 29761: 29761: typedef atomic atomic_uintptr_t; 29761: 29761: 29761: typedef atomic atomic_size_t; 29761: 29761: 29761: typedef atomic atomic_ptrdiff_t; 29761: 29761: 29761: typedef atomic atomic_intmax_t; 29761: 29761: 29761: typedef atomic atomic_uintmax_t; 29761: 29761: 29761: inline bool 29761: atomic_flag_test_and_set_explicit(atomic_flag* __a, 29761: memory_order __m) noexcept 29761: { return __a->test_and_set(__m); } 29761: 29761: inline bool 29761: atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, 29761: memory_order __m) noexcept 29761: { return __a->test_and_set(__m); } 29761: # 1239 "/usr/include/c++/14/atomic" 3 29761: inline void 29761: atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept 29761: { __a->clear(__m); } 29761: 29761: inline void 29761: atomic_flag_clear_explicit(volatile atomic_flag* __a, 29761: memory_order __m) noexcept 29761: { __a->clear(__m); } 29761: 29761: inline bool 29761: atomic_flag_test_and_set(atomic_flag* __a) noexcept 29761: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 29761: 29761: inline bool 29761: atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept 29761: { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } 29761: 29761: inline void 29761: atomic_flag_clear(atomic_flag* __a) noexcept 29761: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 29761: 29761: inline void 29761: atomic_flag_clear(volatile atomic_flag* __a) noexcept 29761: { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } 29761: # 1286 "/usr/include/c++/14/atomic" 3 29761: template 29761: using __atomic_val_t = __type_identity_t<_Tp>; 29761: template 29761: using __atomic_diff_t = typename atomic<_Tp>::difference_type; 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: atomic_is_lock_free(const atomic<_ITp>* __a) noexcept 29761: { return __a->is_lock_free(); } 29761: 29761: template 29761: inline bool 29761: atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept 29761: { return __a->is_lock_free(); } 29761: 29761: template 29761: inline void 29761: atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29761: { __a->store(__i, memory_order_relaxed); } 29761: 29761: template 29761: inline void 29761: atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29761: { __a->store(__i, memory_order_relaxed); } 29761: 29761: template 29761: inline void 29761: atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { __a->store(__i, __m); } 29761: 29761: template 29761: inline void 29761: atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { __a->store(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept 29761: { return __a->load(__m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_load_explicit(const volatile atomic<_ITp>* __a, 29761: memory_order __m) noexcept 29761: { return __a->load(__m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->exchange(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_exchange_explicit(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->exchange(__i, __m); } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2, 29761: memory_order __m1, 29761: memory_order __m2) noexcept 29761: { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } 29761: 29761: 29761: template 29761: inline void 29761: atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29761: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline void 29761: atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29761: { atomic_store_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_load(const atomic<_ITp>* __a) noexcept 29761: { return atomic_load_explicit(__a, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_load(const volatile atomic<_ITp>* __a) noexcept 29761: { return atomic_load_explicit(__a, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_exchange(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_weak(atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2) noexcept 29761: { 29761: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 29761: memory_order_seq_cst, 29761: memory_order_seq_cst); 29761: } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2) noexcept 29761: { 29761: return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, 29761: memory_order_seq_cst, 29761: memory_order_seq_cst); 29761: } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_strong(atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2) noexcept 29761: { 29761: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 29761: memory_order_seq_cst, 29761: memory_order_seq_cst); 29761: } 29761: 29761: template 29761: inline bool 29761: atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, 29761: __atomic_val_t<_ITp>* __i1, 29761: __atomic_val_t<_ITp> __i2) noexcept 29761: { 29761: return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, 29761: memory_order_seq_cst, 29761: memory_order_seq_cst); 29761: } 29761: # 1492 "/usr/include/c++/14/atomic" 3 29761: template 29761: inline _ITp 29761: atomic_fetch_add_explicit(atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_add(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_add(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_sub_explicit(atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_sub(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_sub(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_and(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_and(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_or(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_or(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_xor(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i, 29761: memory_order __m) noexcept 29761: { return __a->fetch_xor(__i, __m); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_add(atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i) noexcept 29761: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_add(volatile atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i) noexcept 29761: { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_sub(atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i) noexcept 29761: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_sub(volatile atomic<_ITp>* __a, 29761: __atomic_diff_t<_ITp> __i) noexcept 29761: { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_and(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_and(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_or(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_or(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_xor(__atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 29761: 29761: template 29761: inline _ITp 29761: atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, 29761: __atomic_val_t<_ITp> __i) noexcept 29761: { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } 29761: # 1793 "/usr/include/c++/14/atomic" 3 29761: 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/usr/include/c++/14/deque" 1 3 29761: # 58 "/usr/include/c++/14/deque" 3 29761: 29761: # 59 "/usr/include/c++/14/deque" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/requires_hosted.h" 1 3 29761: # 61 "/usr/include/c++/14/deque" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_algobase.h" 1 3 29761: # 60 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: # 1 "/usr/include/c++/14/bits/functexcept.h" 1 3 29761: # 40 "/usr/include/c++/14/bits/functexcept.h" 3 29761: # 1 "/usr/include/c++/14/bits/exception_defines.h" 1 3 29761: # 41 "/usr/include/c++/14/bits/functexcept.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: void 29761: __throw_bad_exception(void) __attribute__((__noreturn__)); 29761: 29761: 29761: void 29761: __throw_bad_alloc(void) __attribute__((__noreturn__)); 29761: 29761: void 29761: __throw_bad_array_new_length(void) __attribute__((__noreturn__)); 29761: 29761: 29761: void 29761: __throw_bad_cast(void) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_bad_typeid(void) __attribute__((__noreturn__,__cold__)); 29761: 29761: 29761: void 29761: __throw_logic_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_domain_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_invalid_argument(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_length_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_out_of_range(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__,__cold__)) 29761: __attribute__((__format__(__gnu_printf__, 1, 2))); 29761: 29761: void 29761: __throw_runtime_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_range_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_overflow_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_underflow_error(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: 29761: void 29761: __throw_ios_failure(const char*) __attribute__((__noreturn__,__cold__)); 29761: 29761: void 29761: __throw_ios_failure(const char*, int) __attribute__((__noreturn__,__cold__)); 29761: 29761: 29761: void 29761: __throw_system_error(int) __attribute__((__noreturn__,__cold__)); 29761: 29761: 29761: void 29761: __throw_future_error(int) __attribute__((__noreturn__,__cold__)); 29761: 29761: 29761: void 29761: __throw_bad_function_call() __attribute__((__noreturn__,__cold__)); 29761: # 140 "/usr/include/c++/14/bits/functexcept.h" 3 29761: 29761: } 29761: # 61 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/cpp_type_traits.h" 1 3 29761: # 35 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: 29761: # 36 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 39 "/usr/include/c++/14/bits/cpp_type_traits.h" 2 3 29761: # 68 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: extern "C++" { 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: struct __true_type { }; 29761: struct __false_type { }; 29761: 29761: template 29761: struct __truth_type 29761: { typedef __false_type __type; }; 29761: 29761: template<> 29761: struct __truth_type 29761: { typedef __true_type __type; }; 29761: 29761: 29761: 29761: template 29761: struct __traitor 29761: { 29761: enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; 29761: typedef typename __truth_type<__value>::__type __type; 29761: }; 29761: 29761: 29761: template 29761: struct __are_same 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: template 29761: struct __are_same<_Tp, _Tp> 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: template 29761: struct __is_void 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_void 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_integer 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: # 185 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_integer 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: # 290 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: template 29761: struct __is_floating 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: 29761: template<> 29761: struct __is_floating 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_floating 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_floating 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: # 367 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: template 29761: struct __is_pointer 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: template 29761: struct __is_pointer<_Tp*> 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_arithmetic 29761: : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_scalar 29761: : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_char 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_char 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: template<> 29761: struct __is_char 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: template 29761: struct __is_byte 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_byte 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_byte 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template<> 29761: struct __is_byte 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: 29761: enum class byte : unsigned char; 29761: 29761: template<> 29761: struct __is_byte 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: # 471 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: template struct iterator_traits; 29761: 29761: 29761: template 29761: struct __is_nonvolatile_trivially_copyable 29761: { 29761: enum { __value = __is_trivially_copyable(_Tp) }; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_nonvolatile_trivially_copyable 29761: { 29761: enum { __value = 0 }; 29761: }; 29761: 29761: 29761: template 29761: struct __memcpyable 29761: { 29761: enum { __value = 0 }; 29761: }; 29761: 29761: template 29761: struct __memcpyable<_Tp*, _Tp*> 29761: : __is_nonvolatile_trivially_copyable<_Tp> 29761: { }; 29761: 29761: template 29761: struct __memcpyable<_Tp*, const _Tp*> 29761: : __is_nonvolatile_trivially_copyable<_Tp> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __memcmpable 29761: { 29761: enum { __value = 0 }; 29761: }; 29761: 29761: 29761: template 29761: struct __memcmpable<_Tp*, _Tp*> 29761: : __is_nonvolatile_trivially_copyable<_Tp> 29761: { }; 29761: 29761: template 29761: struct __memcmpable 29761: : __is_nonvolatile_trivially_copyable<_Tp> 29761: { }; 29761: 29761: template 29761: struct __memcmpable<_Tp*, const _Tp*> 29761: : __is_nonvolatile_trivially_copyable<_Tp> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template::__value 29761: 29761: > 29761: struct __is_memcmp_ordered 29761: { 29761: static const bool __value = _Tp(-1) > _Tp(1); 29761: }; 29761: 29761: template 29761: struct __is_memcmp_ordered<_Tp, false> 29761: { 29761: static const bool __value = false; 29761: }; 29761: 29761: 29761: template 29761: struct __is_memcmp_ordered_with 29761: { 29761: static const bool __value = __is_memcmp_ordered<_Tp>::__value 29761: && __is_memcmp_ordered<_Up>::__value; 29761: }; 29761: 29761: template 29761: struct __is_memcmp_ordered_with<_Tp, _Up, false> 29761: { 29761: static const bool __value = false; 29761: }; 29761: # 580 "/usr/include/c++/14/bits/cpp_type_traits.h" 3 29761: template<> 29761: struct __is_memcmp_ordered_with 29761: { static constexpr bool __value = true; }; 29761: 29761: template 29761: struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> 29761: { static constexpr bool __value = false; }; 29761: 29761: template 29761: struct __is_memcmp_ordered_with 29761: { static constexpr bool __value = false; }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_move_iterator 29761: { 29761: enum { __value = 0 }; 29761: typedef __false_type __type; 29761: }; 29761: 29761: 29761: 29761: template 29761: 29761: inline _Iterator 29761: __miter_base(_Iterator __it) 29761: { return __it; } 29761: 29761: 29761: } 29761: } 29761: # 62 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/ext/type_traits.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/type_traits.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/type_traits.h" 3 29761: 29761: 29761: 29761: 29761: extern "C++" { 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: struct __enable_if 29761: { }; 29761: 29761: template 29761: struct __enable_if 29761: { typedef _Tp __type; }; 29761: 29761: 29761: 29761: template 29761: struct __conditional_type 29761: { typedef _Iftrue __type; }; 29761: 29761: template 29761: struct __conditional_type 29761: { typedef _Iffalse __type; }; 29761: 29761: 29761: 29761: template 29761: struct __add_unsigned 29761: { 29761: private: 29761: typedef __enable_if::__value, _Tp> __if_type; 29761: 29761: public: 29761: typedef typename __if_type::__type __type; 29761: }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned char __type; }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned char __type; }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned short __type; }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned int __type; }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned long __type; }; 29761: 29761: template<> 29761: struct __add_unsigned 29761: { typedef unsigned long long __type; }; 29761: 29761: 29761: template<> 29761: struct __add_unsigned; 29761: 29761: template<> 29761: struct __add_unsigned; 29761: 29761: 29761: 29761: template 29761: struct __remove_unsigned 29761: { 29761: private: 29761: typedef __enable_if::__value, _Tp> __if_type; 29761: 29761: public: 29761: typedef typename __if_type::__type __type; 29761: }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef signed char __type; }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef signed char __type; }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef short __type; }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef int __type; }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef long __type; }; 29761: 29761: template<> 29761: struct __remove_unsigned 29761: { typedef long long __type; }; 29761: 29761: 29761: template<> 29761: struct __remove_unsigned; 29761: 29761: template<> 29761: struct __remove_unsigned; 29761: 29761: 29761: 29761: template 29761: constexpr 29761: inline bool 29761: __is_null_pointer(_Type* __ptr) 29761: { return __ptr == 0; } 29761: 29761: template 29761: constexpr 29761: inline bool 29761: __is_null_pointer(_Type) 29761: { return false; } 29761: 29761: 29761: constexpr bool 29761: __is_null_pointer(std::nullptr_t) 29761: { return true; } 29761: 29761: 29761: 29761: 29761: template::__value> 29761: struct __promote 29761: { typedef double __type; }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __promote<_Tp, false> 29761: { }; 29761: 29761: template<> 29761: struct __promote 29761: { typedef long double __type; }; 29761: 29761: template<> 29761: struct __promote 29761: { typedef double __type; }; 29761: 29761: template<> 29761: struct __promote 29761: { typedef float __type; }; 29761: # 225 "/usr/include/c++/14/ext/type_traits.h" 3 29761: template 29761: using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); 29761: 29761: 29761: 29761: template 29761: using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; 29761: 29761: template 29761: using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; 29761: 29761: template 29761: using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; 29761: # 269 "/usr/include/c++/14/ext/type_traits.h" 3 29761: 29761: } 29761: } 29761: # 63 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/ext/numeric_traits.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: 29761: 29761: 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 50 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: template 29761: struct __is_integer_nonstrict 29761: : public std::__is_integer<_Tp> 29761: { 29761: using std::__is_integer<_Tp>::__value; 29761: 29761: 29761: enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; 29761: }; 29761: 29761: template 29761: struct __numeric_traits_integer 29761: { 29761: 29761: static_assert(__is_integer_nonstrict<_Value>::__value, 29761: "invalid specialization"); 29761: 29761: 29761: 29761: 29761: static const bool __is_signed = (_Value)(-1) < 0; 29761: static const int __digits 29761: = __is_integer_nonstrict<_Value>::__width - __is_signed; 29761: 29761: 29761: static const _Value __max = __is_signed 29761: ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) 29761: : ~(_Value)0; 29761: static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; 29761: }; 29761: 29761: template 29761: const _Value __numeric_traits_integer<_Value>::__min; 29761: 29761: template 29761: const _Value __numeric_traits_integer<_Value>::__max; 29761: 29761: template 29761: const bool __numeric_traits_integer<_Value>::__is_signed; 29761: 29761: template 29761: const int __numeric_traits_integer<_Value>::__digits; 29761: # 137 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: template 29761: using __int_traits = __numeric_traits_integer<_Tp>; 29761: # 157 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: template 29761: struct __numeric_traits_floating 29761: { 29761: 29761: static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 53) * 643L / 2136); 29761: 29761: 29761: static const bool __is_signed = true; 29761: static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 15); 29761: static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 308); 29761: }; 29761: 29761: template 29761: const int __numeric_traits_floating<_Value>::__max_digits10; 29761: 29761: template 29761: const bool __numeric_traits_floating<_Value>::__is_signed; 29761: 29761: template 29761: const int __numeric_traits_floating<_Value>::__digits10; 29761: 29761: template 29761: const int __numeric_traits_floating<_Value>::__max_exponent10; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __numeric_traits 29761: : public __numeric_traits_integer<_Value> 29761: { }; 29761: 29761: template<> 29761: struct __numeric_traits 29761: : public __numeric_traits_floating 29761: { }; 29761: 29761: template<> 29761: struct __numeric_traits 29761: : public __numeric_traits_floating 29761: { }; 29761: 29761: template<> 29761: struct __numeric_traits 29761: : public __numeric_traits_floating 29761: { }; 29761: # 238 "/usr/include/c++/14/ext/numeric_traits.h" 3 29761: 29761: } 29761: # 64 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_pair.h" 1 3 29761: # 62 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: # 1 "/usr/include/c++/14/bits/utility.h" 1 3 29761: # 36 "/usr/include/c++/14/bits/utility.h" 3 29761: 29761: # 37 "/usr/include/c++/14/bits/utility.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: struct tuple_size; 29761: 29761: 29761: 29761: 29761: 29761: template::type, 29761: typename = typename enable_if::value>::type, 29761: size_t = tuple_size<_Tp>::value> 29761: using __enable_if_has_tuple_size = _Tp; 29761: 29761: template 29761: struct tuple_size> 29761: : public tuple_size<_Tp> { }; 29761: 29761: template 29761: struct tuple_size> 29761: : public tuple_size<_Tp> { }; 29761: 29761: template 29761: struct tuple_size> 29761: : public tuple_size<_Tp> { }; 29761: 29761: 29761: template 29761: inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; 29761: 29761: 29761: 29761: template 29761: struct tuple_element; 29761: 29761: 29761: template 29761: using __tuple_element_t = typename tuple_element<__i, _Tp>::type; 29761: 29761: template 29761: struct tuple_element<__i, const _Tp> 29761: { 29761: using type = const __tuple_element_t<__i, _Tp>; 29761: }; 29761: 29761: template 29761: struct tuple_element<__i, volatile _Tp> 29761: { 29761: using type = volatile __tuple_element_t<__i, _Tp>; 29761: }; 29761: 29761: template 29761: struct tuple_element<__i, const volatile _Tp> 29761: { 29761: using type = const volatile __tuple_element_t<__i, _Tp>; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr size_t 29761: __find_uniq_type_in_pack() 29761: { 29761: constexpr size_t __sz = sizeof...(_Types); 29761: constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; 29761: size_t __n = __sz; 29761: for (size_t __i = 0; __i < __sz; ++__i) 29761: { 29761: if (__found[__i]) 29761: { 29761: if (__n < __sz) 29761: return __sz; 29761: __n = __i; 29761: } 29761: } 29761: return __n; 29761: } 29761: # 134 "/usr/include/c++/14/bits/utility.h" 3 29761: template 29761: using tuple_element_t = typename tuple_element<__i, _Tp>::type; 29761: 29761: 29761: 29761: 29761: template struct _Index_tuple { }; 29761: 29761: 29761: template 29761: struct _Build_index_tuple 29761: { 29761: # 154 "/usr/include/c++/14/bits/utility.h" 3 29761: using __type = _Index_tuple<__integer_pack(_Num)...>; 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct integer_sequence 29761: { 29761: 29761: 29761: 29761: typedef _Tp value_type; 29761: static constexpr size_t size() noexcept { return sizeof...(_Idx); } 29761: }; 29761: 29761: 29761: template 29761: using make_integer_sequence 29761: 29761: 29761: 29761: = integer_sequence<_Tp, __integer_pack(_Num)...>; 29761: 29761: 29761: 29761: template 29761: using index_sequence = integer_sequence; 29761: 29761: 29761: template 29761: using make_index_sequence = make_integer_sequence; 29761: 29761: 29761: template 29761: using index_sequence_for = make_index_sequence; 29761: 29761: 29761: 29761: 29761: struct in_place_t { 29761: explicit in_place_t() = default; 29761: }; 29761: 29761: inline constexpr in_place_t in_place{}; 29761: 29761: template struct in_place_type_t 29761: { 29761: explicit in_place_type_t() = default; 29761: }; 29761: 29761: template 29761: inline constexpr in_place_type_t<_Tp> in_place_type{}; 29761: 29761: template struct in_place_index_t 29761: { 29761: explicit in_place_index_t() = default; 29761: }; 29761: 29761: template 29761: inline constexpr in_place_index_t<_Idx> in_place_index{}; 29761: 29761: template 29761: inline constexpr bool __is_in_place_type_v = false; 29761: 29761: template 29761: inline constexpr bool __is_in_place_type_v> = true; 29761: 29761: template 29761: using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; 29761: 29761: template 29761: inline constexpr bool __is_in_place_index_v = false; 29761: 29761: template 29761: inline constexpr bool __is_in_place_index_v> = true; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Nth_type 29761: { using type = __type_pack_element<_Np, _Types...>; }; 29761: # 283 "/usr/include/c++/14/bits/utility.h" 3 29761: 29761: } 29761: # 63 "/usr/include/c++/14/bits/stl_pair.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 79 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; 29761: 29761: 29761: inline constexpr piecewise_construct_t piecewise_construct = 29761: piecewise_construct_t(); 29761: 29761: 29761: 29761: 29761: template 29761: struct pair; 29761: 29761: template 29761: class tuple; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct array; 29761: 29761: template 29761: struct _Index_tuple; 29761: 29761: template 29761: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29761: get(pair<_Tp1, _Tp2>& __in) noexcept; 29761: 29761: template 29761: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29761: get(pair<_Tp1, _Tp2>&& __in) noexcept; 29761: 29761: template 29761: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29761: get(const pair<_Tp1, _Tp2>& __in) noexcept; 29761: 29761: template 29761: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29761: get(const pair<_Tp1, _Tp2>&& __in) noexcept; 29761: 29761: template 29761: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 29761: get(tuple<_Elements...>& __t) noexcept; 29761: 29761: template 29761: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 29761: get(const tuple<_Elements...>& __t) noexcept; 29761: 29761: template 29761: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 29761: get(tuple<_Elements...>&& __t) noexcept; 29761: 29761: template 29761: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 29761: get(const tuple<_Elements...>&& __t) noexcept; 29761: 29761: template 29761: constexpr _Tp& 29761: get(array<_Tp, _Nm>&) noexcept; 29761: 29761: template 29761: constexpr _Tp&& 29761: get(array<_Tp, _Nm>&&) noexcept; 29761: 29761: template 29761: constexpr const _Tp& 29761: get(const array<_Tp, _Nm>&) noexcept; 29761: 29761: template 29761: constexpr const _Tp&& 29761: get(const array<_Tp, _Nm>&&) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _PCC 29761: { 29761: template 29761: static constexpr bool _ConstructiblePair() 29761: { 29761: return __and_, 29761: is_constructible<_T2, const _U2&>>::value; 29761: } 29761: 29761: template 29761: static constexpr bool _ImplicitlyConvertiblePair() 29761: { 29761: return __and_, 29761: is_convertible>::value; 29761: } 29761: 29761: template 29761: static constexpr bool _MoveConstructiblePair() 29761: { 29761: return __and_, 29761: is_constructible<_T2, _U2&&>>::value; 29761: } 29761: 29761: template 29761: static constexpr bool _ImplicitlyMoveConvertiblePair() 29761: { 29761: return __and_, 29761: is_convertible<_U2&&, _T2>>::value; 29761: } 29761: }; 29761: 29761: template 29761: struct _PCC 29761: { 29761: template 29761: static constexpr bool _ConstructiblePair() 29761: { 29761: return false; 29761: } 29761: 29761: template 29761: static constexpr bool _ImplicitlyConvertiblePair() 29761: { 29761: return false; 29761: } 29761: 29761: template 29761: static constexpr bool _MoveConstructiblePair() 29761: { 29761: return false; 29761: } 29761: 29761: template 29761: static constexpr bool _ImplicitlyMoveConvertiblePair() 29761: { 29761: return false; 29761: } 29761: }; 29761: # 260 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template class __pair_base 29761: { 29761: 29761: template friend struct pair; 29761: __pair_base() = default; 29761: ~__pair_base() = default; 29761: __pair_base(const __pair_base&) = default; 29761: __pair_base& operator=(const __pair_base&) = delete; 29761: 29761: }; 29761: # 283 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: struct pair 29761: : public __pair_base<_T1, _T2> 29761: { 29761: typedef _T1 first_type; 29761: typedef _T2 second_type; 29761: 29761: _T1 first; 29761: _T2 second; 29761: 29761: 29761: constexpr pair(const pair&) = default; 29761: constexpr pair(pair&&) = default; 29761: 29761: template 29761: 29761: pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); 29761: 29761: 29761: void 29761: swap(pair& __p) 29761: noexcept(__and_<__is_nothrow_swappable<_T1>, 29761: __is_nothrow_swappable<_T2>>::value) 29761: { 29761: using std::swap; 29761: swap(first, __p.first); 29761: swap(second, __p.second); 29761: } 29761: # 331 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: private: 29761: template 29761: 29761: pair(tuple<_Args1...>&, tuple<_Args2...>&, 29761: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); 29761: public: 29761: # 719 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template , 29761: __is_implicitly_default_constructible<_U2>> 29761: ::value, bool>::type = true> 29761: constexpr pair() 29761: : first(), second() { } 29761: 29761: template , 29761: is_default_constructible<_U2>, 29761: __not_< 29761: __and_<__is_implicitly_default_constructible<_U1>, 29761: __is_implicitly_default_constructible<_U2>>>> 29761: ::value, bool>::type = false> 29761: explicit constexpr pair() 29761: : first(), second() { } 29761: 29761: 29761: 29761: using _PCCP = _PCC; 29761: 29761: 29761: 29761: template() 29761: && _PCCP::template 29761: _ImplicitlyConvertiblePair<_U1, _U2>(), 29761: bool>::type=true> 29761: constexpr pair(const _T1& __a, const _T2& __b) 29761: : first(__a), second(__b) { } 29761: 29761: 29761: template() 29761: && !_PCCP::template 29761: _ImplicitlyConvertiblePair<_U1, _U2>(), 29761: bool>::type=false> 29761: explicit constexpr pair(const _T1& __a, const _T2& __b) 29761: : first(__a), second(__b) { } 29761: 29761: 29761: 29761: template 29761: using _PCCFP = _PCC::value 29761: || !is_same<_T2, _U2>::value, 29761: _T1, _T2>; 29761: 29761: 29761: template::template 29761: _ConstructiblePair<_U1, _U2>() 29761: && _PCCFP<_U1, _U2>::template 29761: _ImplicitlyConvertiblePair<_U1, _U2>(), 29761: bool>::type=true> 29761: constexpr pair(const pair<_U1, _U2>& __p) 29761: : first(__p.first), second(__p.second) 29761: { ; } 29761: 29761: template::template 29761: _ConstructiblePair<_U1, _U2>() 29761: && !_PCCFP<_U1, _U2>::template 29761: _ImplicitlyConvertiblePair<_U1, _U2>(), 29761: bool>::type=false> 29761: explicit constexpr pair(const pair<_U1, _U2>& __p) 29761: : first(__p.first), second(__p.second) 29761: { ; } 29761: # 803 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: private: 29761: 29761: 29761: 29761: struct __zero_as_null_pointer_constant 29761: { 29761: __zero_as_null_pointer_constant(int __zero_as_null_pointer_constant::*) 29761: { } 29761: template::value>> 29761: __zero_as_null_pointer_constant(_Tp) = delete; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: template>, 29761: is_pointer<_T2>, 29761: is_constructible<_T1, _U1>, 29761: __not_>, 29761: is_convertible<_U1, _T1>>::value, 29761: bool> = true> 29761: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29761: constexpr 29761: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 29761: : first(std::forward<_U1>(__x)), second(nullptr) 29761: { ; } 29761: 29761: template>, 29761: is_pointer<_T2>, 29761: is_constructible<_T1, _U1>, 29761: __not_>, 29761: __not_>>::value, 29761: bool> = false> 29761: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29761: explicit constexpr 29761: pair(_U1&& __x, __zero_as_null_pointer_constant, ...) 29761: : first(std::forward<_U1>(__x)), second(nullptr) 29761: { ; } 29761: 29761: template, 29761: __not_>, 29761: is_constructible<_T2, _U2>, 29761: __not_>, 29761: is_convertible<_U2, _T2>>::value, 29761: bool> = true> 29761: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29761: constexpr 29761: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 29761: : first(nullptr), second(std::forward<_U2>(__y)) 29761: { ; } 29761: 29761: template, 29761: __not_>, 29761: is_constructible<_T2, _U2>, 29761: __not_>, 29761: __not_>>::value, 29761: bool> = false> 29761: __attribute__ ((__deprecated__ ("use 'nullptr' instead of '0' to " "initialize std::pair of move-only " "type and pointer"))) 29761: explicit constexpr 29761: pair(__zero_as_null_pointer_constant, _U2&& __y, ...) 29761: : first(nullptr), second(std::forward<_U2>(__y)) 29761: { ; } 29761: 29761: 29761: 29761: template() 29761: && _PCCP::template 29761: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29761: bool>::type=true> 29761: constexpr pair(_U1&& __x, _U2&& __y) 29761: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 29761: { ; } 29761: 29761: template() 29761: && !_PCCP::template 29761: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29761: bool>::type=false> 29761: explicit constexpr pair(_U1&& __x, _U2&& __y) 29761: : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) 29761: { ; } 29761: 29761: 29761: template::template 29761: _MoveConstructiblePair<_U1, _U2>() 29761: && _PCCFP<_U1, _U2>::template 29761: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29761: bool>::type=true> 29761: constexpr pair(pair<_U1, _U2>&& __p) 29761: : first(std::forward<_U1>(__p.first)), 29761: second(std::forward<_U2>(__p.second)) 29761: { ; } 29761: 29761: template::template 29761: _MoveConstructiblePair<_U1, _U2>() 29761: && !_PCCFP<_U1, _U2>::template 29761: _ImplicitlyMoveConvertiblePair<_U1, _U2>(), 29761: bool>::type=false> 29761: explicit constexpr pair(pair<_U1, _U2>&& __p) 29761: : first(std::forward<_U1>(__p.first)), 29761: second(std::forward<_U2>(__p.second)) 29761: { ; } 29761: 29761: 29761: 29761: pair& 29761: operator=(__conditional_t<__and_, 29761: is_copy_assignable<_T2>>::value, 29761: const pair&, const __nonesuch&> __p) 29761: { 29761: first = __p.first; 29761: second = __p.second; 29761: return *this; 29761: } 29761: 29761: pair& 29761: operator=(__conditional_t<__and_, 29761: is_move_assignable<_T2>>::value, 29761: pair&&, __nonesuch&&> __p) 29761: noexcept(__and_, 29761: is_nothrow_move_assignable<_T2>>::value) 29761: { 29761: first = std::forward(__p.first); 29761: second = std::forward(__p.second); 29761: return *this; 29761: } 29761: 29761: template 29761: typename enable_if<__and_, 29761: is_assignable<_T2&, const _U2&>>::value, 29761: pair&>::type 29761: operator=(const pair<_U1, _U2>& __p) 29761: { 29761: first = __p.first; 29761: second = __p.second; 29761: return *this; 29761: } 29761: 29761: template 29761: typename enable_if<__and_, 29761: is_assignable<_T2&, _U2&&>>::value, 29761: pair&>::type 29761: operator=(pair<_U1, _U2>&& __p) 29761: { 29761: first = std::forward<_U1>(__p.first); 29761: second = std::forward<_U2>(__p.second); 29761: return *this; 29761: } 29761: # 995 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: }; 29761: 29761: 29761: 29761: 29761: template pair(_T1, _T2) -> pair<_T1, _T2>; 29761: # 1031 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: inline constexpr bool 29761: operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return __x.first == __y.first && __x.second == __y.second; } 29761: # 1043 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: inline constexpr bool 29761: operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return __x.first < __y.first 29761: || (!(__y.first < __x.first) && __x.second < __y.second); } 29761: 29761: 29761: template 29761: inline constexpr bool 29761: operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline constexpr bool 29761: operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: inline constexpr bool 29761: operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: inline constexpr bool 29761: operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) 29761: { return !(__x < __y); } 29761: # 1080 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: inline 29761: 29761: 29761: typename enable_if<__and_<__is_swappable<_T1>, 29761: __is_swappable<_T2>>::value>::type 29761: 29761: 29761: 29761: swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: # 1103 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: typename enable_if, 29761: __is_swappable<_T2>>::value>::type 29761: swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; 29761: # 1129 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: constexpr pair::__type, 29761: typename __decay_and_strip<_T2>::__type> 29761: make_pair(_T1&& __x, _T2&& __y) 29761: { 29761: typedef typename __decay_and_strip<_T1>::__type __ds_type1; 29761: typedef typename __decay_and_strip<_T2>::__type __ds_type2; 29761: typedef pair<__ds_type1, __ds_type2> __pair_type; 29761: return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); 29761: } 29761: # 1152 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: template 29761: struct __is_tuple_like_impl> : true_type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct tuple_size> 29761: : public integral_constant { }; 29761: 29761: 29761: template 29761: struct tuple_element<0, pair<_Tp1, _Tp2>> 29761: { typedef _Tp1 type; }; 29761: 29761: 29761: template 29761: struct tuple_element<1, pair<_Tp1, _Tp2>> 29761: { typedef _Tp2 type; }; 29761: 29761: 29761: 29761: template 29761: struct tuple_element<__i, tuple<_Types...>>; 29761: 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> = 2; 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> = 2; 29761: 29761: template 29761: inline constexpr bool __is_pair = false; 29761: 29761: template 29761: inline constexpr bool __is_pair> = true; 29761: 29761: 29761: 29761: template 29761: struct __pair_get; 29761: 29761: template<> 29761: struct __pair_get<0> 29761: { 29761: template 29761: static constexpr _Tp1& 29761: __get(pair<_Tp1, _Tp2>& __pair) noexcept 29761: { return __pair.first; } 29761: 29761: template 29761: static constexpr _Tp1&& 29761: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 29761: { return std::forward<_Tp1>(__pair.first); } 29761: 29761: template 29761: static constexpr const _Tp1& 29761: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 29761: { return __pair.first; } 29761: 29761: template 29761: static constexpr const _Tp1&& 29761: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 29761: { return std::forward(__pair.first); } 29761: }; 29761: 29761: template<> 29761: struct __pair_get<1> 29761: { 29761: template 29761: static constexpr _Tp2& 29761: __get(pair<_Tp1, _Tp2>& __pair) noexcept 29761: { return __pair.second; } 29761: 29761: template 29761: static constexpr _Tp2&& 29761: __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept 29761: { return std::forward<_Tp2>(__pair.second); } 29761: 29761: template 29761: static constexpr const _Tp2& 29761: __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept 29761: { return __pair.second; } 29761: 29761: template 29761: static constexpr const _Tp2&& 29761: __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept 29761: { return std::forward(__pair.second); } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29761: get(pair<_Tp1, _Tp2>& __in) noexcept 29761: { return __pair_get<_Int>::__get(__in); } 29761: 29761: template 29761: constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29761: get(pair<_Tp1, _Tp2>&& __in) noexcept 29761: { return __pair_get<_Int>::__move_get(std::move(__in)); } 29761: 29761: template 29761: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& 29761: get(const pair<_Tp1, _Tp2>& __in) noexcept 29761: { return __pair_get<_Int>::__const_get(__in); } 29761: 29761: template 29761: constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& 29761: get(const pair<_Tp1, _Tp2>&& __in) noexcept 29761: { return __pair_get<_Int>::__const_move_get(std::move(__in)); } 29761: 29761: 29761: 29761: template 29761: constexpr _Tp& 29761: get(pair<_Tp, _Up>& __p) noexcept 29761: { return __p.first; } 29761: 29761: template 29761: constexpr const _Tp& 29761: get(const pair<_Tp, _Up>& __p) noexcept 29761: { return __p.first; } 29761: 29761: template 29761: constexpr _Tp&& 29761: get(pair<_Tp, _Up>&& __p) noexcept 29761: { return std::move(__p.first); } 29761: 29761: template 29761: constexpr const _Tp&& 29761: get(const pair<_Tp, _Up>&& __p) noexcept 29761: { return std::move(__p.first); } 29761: 29761: template 29761: constexpr _Tp& 29761: get(pair<_Up, _Tp>& __p) noexcept 29761: { return __p.second; } 29761: 29761: template 29761: constexpr const _Tp& 29761: get(const pair<_Up, _Tp>& __p) noexcept 29761: { return __p.second; } 29761: 29761: template 29761: constexpr _Tp&& 29761: get(pair<_Up, _Tp>&& __p) noexcept 29761: { return std::move(__p.second); } 29761: 29761: template 29761: constexpr const _Tp&& 29761: get(const pair<_Up, _Tp>&& __p) noexcept 29761: { return std::move(__p.second); } 29761: # 1332 "/usr/include/c++/14/bits/stl_pair.h" 3 29761: 29761: } 29761: # 65 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 1 3 29761: # 62 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: 29761: # 63 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: # 74 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 93 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: struct input_iterator_tag { }; 29761: 29761: 29761: struct output_iterator_tag { }; 29761: 29761: 29761: struct forward_iterator_tag : public input_iterator_tag { }; 29761: 29761: 29761: 29761: struct bidirectional_iterator_tag : public forward_iterator_tag { }; 29761: 29761: 29761: 29761: struct random_access_iterator_tag : public bidirectional_iterator_tag { }; 29761: # 125 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: template 29761: struct [[__deprecated__]] iterator 29761: { 29761: 29761: typedef _Category iterator_category; 29761: 29761: typedef _Tp value_type; 29761: 29761: typedef _Distance difference_type; 29761: 29761: typedef _Pointer pointer; 29761: 29761: typedef _Reference reference; 29761: }; 29761: # 149 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: template 29761: struct iterator_traits; 29761: 29761: 29761: 29761: 29761: template> 29761: struct __iterator_traits { }; 29761: 29761: 29761: 29761: template 29761: struct __iterator_traits<_Iterator, 29761: __void_t> 29761: { 29761: typedef typename _Iterator::iterator_category iterator_category; 29761: typedef typename _Iterator::value_type value_type; 29761: typedef typename _Iterator::difference_type difference_type; 29761: typedef typename _Iterator::pointer pointer; 29761: typedef typename _Iterator::reference reference; 29761: }; 29761: 29761: 29761: template 29761: struct iterator_traits 29761: : public __iterator_traits<_Iterator> { }; 29761: # 209 "/usr/include/c++/14/bits/stl_iterator_base_types.h" 3 29761: template 29761: struct iterator_traits<_Tp*> 29761: { 29761: typedef random_access_iterator_tag iterator_category; 29761: typedef _Tp value_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Tp* pointer; 29761: typedef _Tp& reference; 29761: }; 29761: 29761: 29761: template 29761: struct iterator_traits 29761: { 29761: typedef random_access_iterator_tag iterator_category; 29761: typedef _Tp value_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef const _Tp* pointer; 29761: typedef const _Tp& reference; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: inline constexpr 29761: typename iterator_traits<_Iter>::iterator_category 29761: __iterator_category(const _Iter&) 29761: { return typename iterator_traits<_Iter>::iterator_category(); } 29761: 29761: 29761: 29761: 29761: template 29761: using __iter_category_t 29761: = typename iterator_traits<_Iter>::iterator_category; 29761: 29761: template 29761: using _RequireInputIter = 29761: __enable_if_t, 29761: input_iterator_tag>::value>; 29761: 29761: template> 29761: struct __is_random_access_iter 29761: : is_base_of 29761: { 29761: typedef is_base_of _Base; 29761: enum { __value = _Base::value }; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 1 3 29761: # 62 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29761: 29761: # 63 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/concept_check.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/concept_check.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/concept_check.h" 3 29761: # 65 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 29761: # 1 "/usr/include/c++/14/debug/assertions.h" 1 3 29761: # 66 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template struct _List_iterator; 29761: template struct _List_const_iterator; 29761: 29761: 29761: template 29761: inline constexpr 29761: typename iterator_traits<_InputIterator>::difference_type 29761: __distance(_InputIterator __first, _InputIterator __last, 29761: input_iterator_tag) 29761: { 29761: 29761: 29761: 29761: typename iterator_traits<_InputIterator>::difference_type __n = 0; 29761: while (__first != __last) 29761: { 29761: ++__first; 29761: ++__n; 29761: } 29761: return __n; 29761: } 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: inline constexpr 29761: typename iterator_traits<_RandomAccessIterator>::difference_type 29761: __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: random_access_iterator_tag) 29761: { 29761: 29761: 29761: 29761: return __last - __first; 29761: } 29761: 29761: 29761: 29761: template 29761: ptrdiff_t 29761: __distance(std::_List_iterator<_Tp>, 29761: std::_List_iterator<_Tp>, 29761: input_iterator_tag); 29761: 29761: template 29761: ptrdiff_t 29761: __distance(std::_List_const_iterator<_Tp>, 29761: std::_List_const_iterator<_Tp>, 29761: input_iterator_tag); 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; 29761: # 144 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29761: template 29761: [[__nodiscard__]] __attribute__((__always_inline__)) 29761: inline constexpr 29761: typename iterator_traits<_InputIterator>::difference_type 29761: distance(_InputIterator __first, _InputIterator __last) 29761: { 29761: 29761: return std::__distance(__first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: template 29761: inline constexpr void 29761: __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) 29761: { 29761: 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) std::__glibcxx_assert_fail(); } while (false); 29761: while (__n--) 29761: ++__i; 29761: } 29761: 29761: template 29761: inline constexpr void 29761: __advance(_BidirectionalIterator& __i, _Distance __n, 29761: bidirectional_iterator_tag) 29761: { 29761: 29761: 29761: 29761: if (__n > 0) 29761: while (__n--) 29761: ++__i; 29761: else 29761: while (__n++) 29761: --__i; 29761: } 29761: 29761: template 29761: inline constexpr void 29761: __advance(_RandomAccessIterator& __i, _Distance __n, 29761: random_access_iterator_tag) 29761: { 29761: 29761: 29761: 29761: if (__builtin_constant_p(__n) && __n == 1) 29761: ++__i; 29761: else if (__builtin_constant_p(__n) && __n == -1) 29761: --__i; 29761: else 29761: __i += __n; 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; 29761: # 217 "/usr/include/c++/14/bits/stl_iterator_base_funcs.h" 3 29761: template 29761: __attribute__((__always_inline__)) 29761: inline constexpr void 29761: advance(_InputIterator& __i, _Distance __n) 29761: { 29761: 29761: typename iterator_traits<_InputIterator>::difference_type __d = __n; 29761: std::__advance(__i, __d, std::__iterator_category(__i)); 29761: } 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] [[__gnu__::__always_inline__]] 29761: inline constexpr _InputIterator 29761: next(_InputIterator __x, typename 29761: iterator_traits<_InputIterator>::difference_type __n = 1) 29761: { 29761: 29761: 29761: std::advance(__x, __n); 29761: return __x; 29761: } 29761: 29761: template 29761: [[__nodiscard__]] [[__gnu__::__always_inline__]] 29761: inline constexpr _BidirectionalIterator 29761: prev(_BidirectionalIterator __x, typename 29761: iterator_traits<_BidirectionalIterator>::difference_type __n = 1) 29761: { 29761: 29761: 29761: 29761: std::advance(__x, -__n); 29761: return __x; 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 67 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_iterator.h" 1 3 29761: # 67 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: # 1 "/usr/include/c++/14/bits/ptr_traits.h" 1 3 29761: # 42 "/usr/include/c++/14/bits/ptr_traits.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: class __undefined; 29761: 29761: 29761: 29761: template 29761: struct __get_first_arg 29761: { using type = __undefined; }; 29761: 29761: template class _SomeTemplate, typename _Tp, 29761: typename... _Types> 29761: struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> 29761: { using type = _Tp; }; 29761: 29761: 29761: 29761: template 29761: struct __replace_first_arg 29761: { }; 29761: 29761: template class _SomeTemplate, typename _Up, 29761: typename _Tp, typename... _Types> 29761: struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> 29761: { using type = _SomeTemplate<_Up, _Types...>; }; 29761: 29761: 29761: template 29761: struct __ptr_traits_elem : __get_first_arg<_Ptr> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __ptr_traits_elem<_Ptr, __void_t> 29761: { using type = typename _Ptr::element_type; }; 29761: 29761: 29761: template 29761: using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; 29761: 29761: 29761: 29761: 29761: template::value> 29761: struct __ptr_traits_ptr_to 29761: { 29761: using pointer = _Ptr; 29761: using element_type = _Elt; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: static pointer 29761: pointer_to(element_type& __r) 29761: 29761: 29761: 29761: 29761: 29761: { return pointer::pointer_to(__r); } 29761: }; 29761: 29761: 29761: template 29761: struct __ptr_traits_ptr_to<_Ptr, _Elt, true> 29761: { }; 29761: 29761: 29761: template 29761: struct __ptr_traits_ptr_to<_Tp*, _Tp, false> 29761: { 29761: using pointer = _Tp*; 29761: using element_type = _Tp; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static pointer 29761: pointer_to(element_type& __r) noexcept 29761: { return std::addressof(__r); } 29761: }; 29761: 29761: template 29761: struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> 29761: { 29761: private: 29761: template 29761: using __diff_t = typename _Tp::difference_type; 29761: 29761: template 29761: using __rebind = __type_identity>; 29761: 29761: public: 29761: 29761: using pointer = _Ptr; 29761: 29761: 29761: using element_type = _Elt; 29761: 29761: 29761: using difference_type = __detected_or_t; 29761: 29761: 29761: template 29761: using rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, 29761: __rebind, _Ptr, _Up>::type; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __ptr_traits_impl<_Ptr, __undefined> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> 29761: { 29761: 29761: typedef _Tp* pointer; 29761: 29761: typedef _Tp element_type; 29761: 29761: typedef ptrdiff_t difference_type; 29761: 29761: template using rebind = _Up*; 29761: }; 29761: 29761: 29761: template 29761: using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; 29761: 29761: template 29761: constexpr _Tp* 29761: __to_address(_Tp* __ptr) noexcept 29761: { 29761: static_assert(!std::is_function<_Tp>::value, "not a function pointer"); 29761: return __ptr; 29761: } 29761: 29761: 29761: template 29761: constexpr typename std::pointer_traits<_Ptr>::element_type* 29761: __to_address(const _Ptr& __ptr) 29761: { return std::__to_address(__ptr.operator->()); } 29761: # 257 "/usr/include/c++/14/bits/ptr_traits.h" 3 29761: 29761: } 29761: # 68 "/usr/include/c++/14/bits/stl_iterator.h" 2 3 29761: # 85 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: 29761: # 106 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: # 128 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class reverse_iterator 29761: : public iterator::iterator_category, 29761: typename iterator_traits<_Iterator>::value_type, 29761: typename iterator_traits<_Iterator>::difference_type, 29761: typename iterator_traits<_Iterator>::pointer, 29761: typename iterator_traits<_Iterator>::reference> 29761: { 29761: template 29761: friend class reverse_iterator; 29761: # 147 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: protected: 29761: _Iterator current; 29761: 29761: typedef iterator_traits<_Iterator> __traits_type; 29761: 29761: public: 29761: typedef _Iterator iterator_type; 29761: typedef typename __traits_type::pointer pointer; 29761: 29761: typedef typename __traits_type::difference_type difference_type; 29761: typedef typename __traits_type::reference reference; 29761: # 178 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: constexpr 29761: reverse_iterator() 29761: noexcept(noexcept(_Iterator())) 29761: : current() 29761: { } 29761: 29761: 29761: 29761: 29761: explicit constexpr 29761: reverse_iterator(iterator_type __x) 29761: noexcept(noexcept(_Iterator(__x))) 29761: : current(__x) 29761: { } 29761: 29761: 29761: 29761: 29761: constexpr 29761: reverse_iterator(const reverse_iterator& __x) 29761: noexcept(noexcept(_Iterator(__x.current))) 29761: : current(__x.current) 29761: { } 29761: 29761: 29761: reverse_iterator& operator=(const reverse_iterator&) = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: 29761: 29761: constexpr 29761: reverse_iterator(const reverse_iterator<_Iter>& __x) 29761: noexcept(noexcept(_Iterator(__x.current))) 29761: : current(__x.current) 29761: { } 29761: 29761: 29761: template 29761: 29761: 29761: 29761: 29761: constexpr 29761: reverse_iterator& 29761: operator=(const reverse_iterator<_Iter>& __x) 29761: noexcept(noexcept(current = __x.current)) 29761: { 29761: current = __x.current; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr iterator_type 29761: base() const 29761: noexcept(noexcept(_Iterator(current))) 29761: { return current; } 29761: # 255 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: [[__nodiscard__]] 29761: constexpr reference 29761: operator*() const 29761: { 29761: _Iterator __tmp = current; 29761: return *--__tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr pointer 29761: operator->() const 29761: 29761: 29761: 29761: 29761: { 29761: 29761: 29761: _Iterator __tmp = current; 29761: --__tmp; 29761: return _S_to_pointer(__tmp); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator& 29761: operator++() 29761: { 29761: --current; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator 29761: operator++(int) 29761: { 29761: reverse_iterator __tmp = *this; 29761: --current; 29761: return __tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator& 29761: operator--() 29761: { 29761: ++current; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator 29761: operator--(int) 29761: { 29761: reverse_iterator __tmp = *this; 29761: ++current; 29761: return __tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr reverse_iterator 29761: operator+(difference_type __n) const 29761: { return reverse_iterator(current - __n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator& 29761: operator+=(difference_type __n) 29761: { 29761: current -= __n; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr reverse_iterator 29761: operator-(difference_type __n) const 29761: { return reverse_iterator(current + __n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr reverse_iterator& 29761: operator-=(difference_type __n) 29761: { 29761: current += __n; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr reference 29761: operator[](difference_type __n) const 29761: { return *(*this + __n); } 29761: # 415 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: private: 29761: template 29761: static constexpr _Tp* 29761: _S_to_pointer(_Tp* __p) 29761: { return __p; } 29761: 29761: template 29761: static constexpr pointer 29761: _S_to_pointer(_Tp __t) 29761: { return __t.operator->(); } 29761: }; 29761: # 438 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator==(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return __x.base() == __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return __y.base() < __x.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator!=(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return __y < __x; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<=(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return !(__y < __x); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>=(const reverse_iterator<_Iterator>& __x, 29761: const reverse_iterator<_Iterator>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator==(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() == __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() > __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator!=(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() != __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() < __y.base(); } 29761: 29761: template 29761: inline constexpr bool 29761: operator<=(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() >= __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>=(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: { return __x.base() <= __y.base(); } 29761: # 615 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr auto 29761: operator-(const reverse_iterator<_IteratorL>& __x, 29761: const reverse_iterator<_IteratorR>& __y) 29761: -> decltype(__y.base() - __x.base()) 29761: { return __y.base() - __x.base(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator<_Iterator> 29761: operator+(typename reverse_iterator<_Iterator>::difference_type __n, 29761: const reverse_iterator<_Iterator>& __x) 29761: { return reverse_iterator<_Iterator>(__x.base() - __n); } 29761: 29761: 29761: 29761: template 29761: inline constexpr reverse_iterator<_Iterator> 29761: __make_reverse_iterator(_Iterator __i) 29761: { return reverse_iterator<_Iterator>(__i); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator<_Iterator> 29761: make_reverse_iterator(_Iterator __i) 29761: { return reverse_iterator<_Iterator>(__i); } 29761: # 657 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: 29761: auto 29761: __niter_base(reverse_iterator<_Iterator> __it) 29761: -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) 29761: { return __make_reverse_iterator(__niter_base(__it.base())); } 29761: 29761: template 29761: struct __is_move_iterator > 29761: : __is_move_iterator<_Iterator> 29761: { }; 29761: 29761: template 29761: 29761: auto 29761: __miter_base(reverse_iterator<_Iterator> __it) 29761: -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) 29761: { return __make_reverse_iterator(__miter_base(__it.base())); } 29761: # 688 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class back_insert_iterator 29761: : public iterator 29761: { 29761: protected: 29761: _Container* container; 29761: 29761: public: 29761: 29761: typedef _Container container_type; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: back_insert_iterator(_Container& __x) 29761: : container(std::__addressof(__x)) { } 29761: # 726 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: 29761: back_insert_iterator& 29761: operator=(const typename _Container::value_type& __value) 29761: { 29761: container->push_back(__value); 29761: return *this; 29761: } 29761: 29761: 29761: back_insert_iterator& 29761: operator=(typename _Container::value_type&& __value) 29761: { 29761: container->push_back(std::move(__value)); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: back_insert_iterator& 29761: operator*() 29761: { return *this; } 29761: 29761: 29761: 29761: back_insert_iterator& 29761: operator++() 29761: { return *this; } 29761: 29761: 29761: 29761: back_insert_iterator 29761: operator++(int) 29761: { return *this; } 29761: }; 29761: # 773 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline back_insert_iterator<_Container> 29761: back_inserter(_Container& __x) 29761: { return back_insert_iterator<_Container>(__x); } 29761: # 789 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class front_insert_iterator 29761: : public iterator 29761: { 29761: protected: 29761: _Container* container; 29761: 29761: public: 29761: 29761: typedef _Container container_type; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: front_insert_iterator(_Container& __x) 29761: : container(std::__addressof(__x)) { } 29761: # 827 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: 29761: front_insert_iterator& 29761: operator=(const typename _Container::value_type& __value) 29761: { 29761: container->push_front(__value); 29761: return *this; 29761: } 29761: 29761: 29761: front_insert_iterator& 29761: operator=(typename _Container::value_type&& __value) 29761: { 29761: container->push_front(std::move(__value)); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: front_insert_iterator& 29761: operator*() 29761: { return *this; } 29761: 29761: 29761: 29761: front_insert_iterator& 29761: operator++() 29761: { return *this; } 29761: 29761: 29761: 29761: front_insert_iterator 29761: operator++(int) 29761: { return *this; } 29761: }; 29761: # 874 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline front_insert_iterator<_Container> 29761: front_inserter(_Container& __x) 29761: { return front_insert_iterator<_Container>(__x); } 29761: # 894 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class insert_iterator 29761: : public iterator 29761: { 29761: 29761: 29761: 29761: typedef typename _Container::iterator _Iter; 29761: 29761: protected: 29761: _Container* container; 29761: _Iter iter; 29761: 29761: public: 29761: 29761: typedef _Container container_type; 29761: # 919 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: 29761: insert_iterator(_Container& __x, _Iter __i) 29761: : container(std::__addressof(__x)), iter(__i) {} 29761: # 955 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: 29761: insert_iterator& 29761: operator=(const typename _Container::value_type& __value) 29761: { 29761: iter = container->insert(iter, __value); 29761: ++iter; 29761: return *this; 29761: } 29761: 29761: 29761: insert_iterator& 29761: operator=(typename _Container::value_type&& __value) 29761: { 29761: iter = container->insert(iter, std::move(__value)); 29761: ++iter; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: insert_iterator& 29761: operator*() 29761: { return *this; } 29761: 29761: 29761: 29761: insert_iterator& 29761: operator++() 29761: { return *this; } 29761: 29761: 29761: 29761: insert_iterator& 29761: operator++(int) 29761: { return *this; } 29761: }; 29761: 29761: #pragma GCC diagnostic pop 29761: # 1014 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline insert_iterator<_Container> 29761: inserter(_Container& __x, typename _Container::iterator __i) 29761: { return insert_iterator<_Container>(__x, __i); } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 1037 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class __normal_iterator 29761: { 29761: protected: 29761: _Iterator _M_current; 29761: 29761: typedef std::iterator_traits<_Iterator> __traits_type; 29761: 29761: 29761: template 29761: using __convertible_from 29761: = std::__enable_if_t::value>; 29761: 29761: 29761: public: 29761: typedef _Iterator iterator_type; 29761: typedef typename __traits_type::iterator_category iterator_category; 29761: typedef typename __traits_type::value_type value_type; 29761: typedef typename __traits_type::difference_type difference_type; 29761: typedef typename __traits_type::reference reference; 29761: typedef typename __traits_type::pointer pointer; 29761: 29761: 29761: 29761: 29761: 29761: constexpr __normal_iterator() noexcept 29761: : _M_current(_Iterator()) { } 29761: 29761: explicit 29761: __normal_iterator(const _Iterator& __i) noexcept 29761: : _M_current(__i) { } 29761: 29761: 29761: 29761: template> 29761: 29761: __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) 29761: noexcept 29761: # 1085 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: : _M_current(__i.base()) { } 29761: 29761: 29761: 29761: reference 29761: operator*() const noexcept 29761: { return *_M_current; } 29761: 29761: 29761: pointer 29761: operator->() const noexcept 29761: { return _M_current; } 29761: 29761: 29761: __normal_iterator& 29761: operator++() noexcept 29761: { 29761: ++_M_current; 29761: return *this; 29761: } 29761: 29761: 29761: __normal_iterator 29761: operator++(int) noexcept 29761: { return __normal_iterator(_M_current++); } 29761: 29761: 29761: 29761: __normal_iterator& 29761: operator--() noexcept 29761: { 29761: --_M_current; 29761: return *this; 29761: } 29761: 29761: 29761: __normal_iterator 29761: operator--(int) noexcept 29761: { return __normal_iterator(_M_current--); } 29761: 29761: 29761: 29761: reference 29761: operator[](difference_type __n) const noexcept 29761: { return _M_current[__n]; } 29761: 29761: 29761: __normal_iterator& 29761: operator+=(difference_type __n) noexcept 29761: { _M_current += __n; return *this; } 29761: 29761: 29761: __normal_iterator 29761: operator+(difference_type __n) const noexcept 29761: { return __normal_iterator(_M_current + __n); } 29761: 29761: 29761: __normal_iterator& 29761: operator-=(difference_type __n) noexcept 29761: { _M_current -= __n; return *this; } 29761: 29761: 29761: __normal_iterator 29761: operator-(difference_type __n) const noexcept 29761: { return __normal_iterator(_M_current - __n); } 29761: 29761: 29761: const _Iterator& 29761: base() const noexcept 29761: { return _M_current; } 29761: }; 29761: # 1205 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() == __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() == __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() != __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() != __rhs.base(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() < __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() < __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() > __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() > __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() <= __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() <= __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() >= __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() >= __rhs.base(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: 29761: [[__nodiscard__]] 29761: inline auto 29761: operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, 29761: const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept 29761: -> decltype(__lhs.base() - __rhs.base()) 29761: 29761: 29761: 29761: 29761: 29761: { return __lhs.base() - __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline typename __normal_iterator<_Iterator, _Container>::difference_type 29761: operator-(const __normal_iterator<_Iterator, _Container>& __lhs, 29761: const __normal_iterator<_Iterator, _Container>& __rhs) 29761: noexcept 29761: { return __lhs.base() - __rhs.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline __normal_iterator<_Iterator, _Container> 29761: operator+(typename __normal_iterator<_Iterator, _Container>::difference_type 29761: __n, const __normal_iterator<_Iterator, _Container>& __i) 29761: noexcept 29761: { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } 29761: 29761: 29761: } 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: 29761: _Iterator 29761: __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) 29761: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 29761: { return __it.base(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr auto 29761: __to_address(const __gnu_cxx::__normal_iterator<_Iterator, 29761: _Container>& __it) noexcept 29761: -> decltype(std::__to_address(__it.base())) 29761: { return std::__to_address(__it.base()); } 29761: # 1412 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: namespace __detail 29761: { 29761: # 1428 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: } 29761: # 1439 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: class move_iterator 29761: 29761: 29761: 29761: { 29761: _Iterator _M_current; 29761: 29761: using __traits_type = iterator_traits<_Iterator>; 29761: 29761: using __base_ref = typename __traits_type::reference; 29761: 29761: 29761: template 29761: friend class move_iterator; 29761: # 1478 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: public: 29761: using iterator_type = _Iterator; 29761: # 1490 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: typedef typename __traits_type::iterator_category iterator_category; 29761: typedef typename __traits_type::value_type value_type; 29761: typedef typename __traits_type::difference_type difference_type; 29761: 29761: typedef _Iterator pointer; 29761: 29761: 29761: using reference 29761: = __conditional_t::value, 29761: typename remove_reference<__base_ref>::type&&, 29761: __base_ref>; 29761: 29761: 29761: constexpr 29761: move_iterator() 29761: : _M_current() { } 29761: 29761: explicit constexpr 29761: move_iterator(iterator_type __i) 29761: : _M_current(std::move(__i)) { } 29761: 29761: template 29761: 29761: 29761: 29761: constexpr 29761: move_iterator(const move_iterator<_Iter>& __i) 29761: : _M_current(__i._M_current) { } 29761: 29761: template 29761: 29761: 29761: 29761: 29761: constexpr 29761: move_iterator& operator=(const move_iterator<_Iter>& __i) 29761: { 29761: _M_current = __i._M_current; 29761: return *this; 29761: } 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr iterator_type 29761: base() const 29761: { return _M_current; } 29761: # 1548 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: [[__nodiscard__]] 29761: constexpr reference 29761: operator*() const 29761: 29761: 29761: 29761: { return static_cast(*_M_current); } 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr pointer 29761: operator->() const 29761: { return _M_current; } 29761: 29761: constexpr move_iterator& 29761: operator++() 29761: { 29761: ++_M_current; 29761: return *this; 29761: } 29761: 29761: constexpr move_iterator 29761: operator++(int) 29761: { 29761: move_iterator __tmp = *this; 29761: ++_M_current; 29761: return __tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: constexpr move_iterator& 29761: operator--() 29761: { 29761: --_M_current; 29761: return *this; 29761: } 29761: 29761: constexpr move_iterator 29761: operator--(int) 29761: { 29761: move_iterator __tmp = *this; 29761: --_M_current; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr move_iterator 29761: operator+(difference_type __n) const 29761: { return move_iterator(_M_current + __n); } 29761: 29761: constexpr move_iterator& 29761: operator+=(difference_type __n) 29761: { 29761: _M_current += __n; 29761: return *this; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr move_iterator 29761: operator-(difference_type __n) const 29761: { return move_iterator(_M_current - __n); } 29761: 29761: constexpr move_iterator& 29761: operator-=(difference_type __n) 29761: { 29761: _M_current -= __n; 29761: return *this; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr reference 29761: operator[](difference_type __n) const 29761: 29761: 29761: 29761: { return std::move(_M_current[__n]); } 29761: # 1662 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: }; 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator==(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: 29761: 29761: 29761: { return __x.base() == __y.base(); } 29761: # 1683 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator!=(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: 29761: 29761: 29761: { return __x.base() < __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<=(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: 29761: 29761: 29761: { return !(__y < __x); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: 29761: 29761: 29761: { return __y < __x; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>=(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: 29761: 29761: 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator==(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: 29761: { return __x.base() == __y.base(); } 29761: # 1750 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator!=(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: { return __x.base() < __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator<=(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: { return !(__y < __x); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: { return __y < __x; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr bool 29761: operator>=(const move_iterator<_Iterator>& __x, 29761: const move_iterator<_Iterator>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr auto 29761: operator-(const move_iterator<_IteratorL>& __x, 29761: const move_iterator<_IteratorR>& __y) 29761: -> decltype(__x.base() - __y.base()) 29761: { return __x.base() - __y.base(); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr move_iterator<_Iterator> 29761: operator+(typename move_iterator<_Iterator>::difference_type __n, 29761: const move_iterator<_Iterator>& __x) 29761: 29761: 29761: 29761: { return __x + __n; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr move_iterator<_Iterator> 29761: make_move_iterator(_Iterator __i) 29761: { return move_iterator<_Iterator>(std::move(__i)); } 29761: 29761: template::value_type>::value, 29761: _Iterator, move_iterator<_Iterator>>> 29761: inline constexpr _ReturnType 29761: __make_move_if_noexcept_iterator(_Iterator __i) 29761: { return _ReturnType(__i); } 29761: 29761: 29761: 29761: template::value, 29761: const _Tp*, move_iterator<_Tp*>>> 29761: inline constexpr _ReturnType 29761: __make_move_if_noexcept_iterator(_Tp* __i) 29761: { return _ReturnType(__i); } 29761: # 2964 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: 29761: auto 29761: __niter_base(move_iterator<_Iterator> __it) 29761: -> decltype(make_move_iterator(__niter_base(__it.base()))) 29761: { return make_move_iterator(__niter_base(__it.base())); } 29761: 29761: template 29761: struct __is_move_iterator > 29761: { 29761: enum { __value = 1 }; 29761: typedef __true_type __type; 29761: }; 29761: 29761: template 29761: 29761: auto 29761: __miter_base(move_iterator<_Iterator> __it) 29761: -> decltype(__miter_base(__it.base())) 29761: { return __miter_base(__it.base()); } 29761: # 2996 "/usr/include/c++/14/bits/stl_iterator.h" 3 29761: template 29761: using __iter_key_t = remove_const_t< 29761: 29761: 29761: 29761: typename iterator_traits<_InputIterator>::value_type::first_type>; 29761: 29761: 29761: template 29761: using __iter_val_t 29761: 29761: 29761: 29761: = typename iterator_traits<_InputIterator>::value_type::second_type; 29761: 29761: 29761: template 29761: struct pair; 29761: 29761: template 29761: using __iter_to_alloc_t 29761: = pair, __iter_val_t<_InputIterator>>; 29761: 29761: 29761: 29761: } 29761: # 68 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/debug/debug.h" 1 3 29761: # 48 "/usr/include/c++/14/debug/debug.h" 3 29761: namespace std 29761: { 29761: namespace __debug { } 29761: } 29761: 29761: 29761: 29761: 29761: namespace __gnu_debug 29761: { 29761: using namespace std::__debug; 29761: 29761: template 29761: struct _Safe_iterator; 29761: } 29761: # 70 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/predefined_ops.h" 1 3 29761: # 35 "/usr/include/c++/14/bits/predefined_ops.h" 3 29761: namespace __gnu_cxx 29761: { 29761: namespace __ops 29761: { 29761: struct _Iter_less_iter 29761: { 29761: template 29761: constexpr 29761: bool 29761: operator()(_Iterator1 __it1, _Iterator2 __it2) const 29761: { return *__it1 < *__it2; } 29761: }; 29761: 29761: constexpr 29761: inline _Iter_less_iter 29761: __iter_less_iter() 29761: { return _Iter_less_iter(); } 29761: 29761: struct _Iter_less_val 29761: { 29761: 29761: constexpr _Iter_less_val() = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: _Iter_less_val(_Iter_less_iter) { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it, _Value& __val) const 29761: { return *__it < __val; } 29761: }; 29761: 29761: 29761: inline _Iter_less_val 29761: __iter_less_val() 29761: { return _Iter_less_val(); } 29761: 29761: 29761: inline _Iter_less_val 29761: __iter_comp_val(_Iter_less_iter) 29761: { return _Iter_less_val(); } 29761: 29761: struct _Val_less_iter 29761: { 29761: 29761: constexpr _Val_less_iter() = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: _Val_less_iter(_Iter_less_iter) { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Value& __val, _Iterator __it) const 29761: { return __val < *__it; } 29761: }; 29761: 29761: 29761: inline _Val_less_iter 29761: __val_less_iter() 29761: { return _Val_less_iter(); } 29761: 29761: 29761: inline _Val_less_iter 29761: __val_comp_iter(_Iter_less_iter) 29761: { return _Val_less_iter(); } 29761: 29761: struct _Iter_equal_to_iter 29761: { 29761: template 29761: 29761: bool 29761: operator()(_Iterator1 __it1, _Iterator2 __it2) const 29761: { return *__it1 == *__it2; } 29761: }; 29761: 29761: 29761: inline _Iter_equal_to_iter 29761: __iter_equal_to_iter() 29761: { return _Iter_equal_to_iter(); } 29761: 29761: struct _Iter_equal_to_val 29761: { 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it, _Value& __val) const 29761: { return *__it == __val; } 29761: }; 29761: 29761: 29761: inline _Iter_equal_to_val 29761: __iter_equal_to_val() 29761: { return _Iter_equal_to_val(); } 29761: 29761: 29761: inline _Iter_equal_to_val 29761: __iter_comp_val(_Iter_equal_to_iter) 29761: { return _Iter_equal_to_val(); } 29761: 29761: template 29761: struct _Iter_comp_iter 29761: { 29761: _Compare _M_comp; 29761: 29761: explicit constexpr 29761: _Iter_comp_iter(_Compare __comp) 29761: : _M_comp(std::move(__comp)) 29761: { } 29761: 29761: template 29761: constexpr 29761: bool 29761: operator()(_Iterator1 __it1, _Iterator2 __it2) 29761: { return bool(_M_comp(*__it1, *__it2)); } 29761: }; 29761: 29761: template 29761: constexpr 29761: inline _Iter_comp_iter<_Compare> 29761: __iter_comp_iter(_Compare __comp) 29761: { return _Iter_comp_iter<_Compare>(std::move(__comp)); } 29761: 29761: template 29761: struct _Iter_comp_val 29761: { 29761: _Compare _M_comp; 29761: 29761: 29761: explicit 29761: _Iter_comp_val(_Compare __comp) 29761: : _M_comp(std::move(__comp)) 29761: { } 29761: 29761: 29761: explicit 29761: _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) 29761: : _M_comp(__comp._M_comp) 29761: { } 29761: 29761: 29761: 29761: explicit 29761: _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) 29761: : _M_comp(std::move(__comp._M_comp)) 29761: { } 29761: 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it, _Value& __val) 29761: { return bool(_M_comp(*__it, __val)); } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_comp_val<_Compare> 29761: __iter_comp_val(_Compare __comp) 29761: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 29761: 29761: template 29761: 29761: inline _Iter_comp_val<_Compare> 29761: __iter_comp_val(_Iter_comp_iter<_Compare> __comp) 29761: { return _Iter_comp_val<_Compare>(std::move(__comp)); } 29761: 29761: template 29761: struct _Val_comp_iter 29761: { 29761: _Compare _M_comp; 29761: 29761: 29761: explicit 29761: _Val_comp_iter(_Compare __comp) 29761: : _M_comp(std::move(__comp)) 29761: { } 29761: 29761: 29761: explicit 29761: _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) 29761: : _M_comp(__comp._M_comp) 29761: { } 29761: 29761: 29761: 29761: explicit 29761: _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) 29761: : _M_comp(std::move(__comp._M_comp)) 29761: { } 29761: 29761: 29761: template 29761: 29761: bool 29761: operator()(_Value& __val, _Iterator __it) 29761: { return bool(_M_comp(__val, *__it)); } 29761: }; 29761: 29761: template 29761: 29761: inline _Val_comp_iter<_Compare> 29761: __val_comp_iter(_Compare __comp) 29761: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 29761: 29761: template 29761: 29761: inline _Val_comp_iter<_Compare> 29761: __val_comp_iter(_Iter_comp_iter<_Compare> __comp) 29761: { return _Val_comp_iter<_Compare>(std::move(__comp)); } 29761: 29761: template 29761: struct _Iter_equals_val 29761: { 29761: _Value& _M_value; 29761: 29761: 29761: explicit 29761: _Iter_equals_val(_Value& __value) 29761: : _M_value(__value) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it) 29761: { return *__it == _M_value; } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_equals_val<_Value> 29761: __iter_equals_val(_Value& __val) 29761: { return _Iter_equals_val<_Value>(__val); } 29761: 29761: template 29761: struct _Iter_equals_iter 29761: { 29761: _Iterator1 _M_it1; 29761: 29761: 29761: explicit 29761: _Iter_equals_iter(_Iterator1 __it1) 29761: : _M_it1(__it1) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator2 __it2) 29761: { return *__it2 == *_M_it1; } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_equals_iter<_Iterator> 29761: __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) 29761: { return _Iter_equals_iter<_Iterator>(__it); } 29761: 29761: template 29761: struct _Iter_pred 29761: { 29761: _Predicate _M_pred; 29761: 29761: 29761: explicit 29761: _Iter_pred(_Predicate __pred) 29761: : _M_pred(std::move(__pred)) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it) 29761: { return bool(_M_pred(*__it)); } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_pred<_Predicate> 29761: __pred_iter(_Predicate __pred) 29761: { return _Iter_pred<_Predicate>(std::move(__pred)); } 29761: 29761: template 29761: struct _Iter_comp_to_val 29761: { 29761: _Compare _M_comp; 29761: _Value& _M_value; 29761: 29761: 29761: _Iter_comp_to_val(_Compare __comp, _Value& __value) 29761: : _M_comp(std::move(__comp)), _M_value(__value) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it) 29761: { return bool(_M_comp(*__it, _M_value)); } 29761: }; 29761: 29761: template 29761: _Iter_comp_to_val<_Compare, _Value> 29761: 29761: __iter_comp_val(_Compare __comp, _Value &__val) 29761: { 29761: return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); 29761: } 29761: 29761: template 29761: struct _Iter_comp_to_iter 29761: { 29761: _Compare _M_comp; 29761: _Iterator1 _M_it1; 29761: 29761: 29761: _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) 29761: : _M_comp(std::move(__comp)), _M_it1(__it1) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator2 __it2) 29761: { return bool(_M_comp(*__it2, *_M_it1)); } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_comp_to_iter<_Compare, _Iterator> 29761: __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) 29761: { 29761: return _Iter_comp_to_iter<_Compare, _Iterator>( 29761: std::move(__comp._M_comp), __it); 29761: } 29761: 29761: template 29761: struct _Iter_negate 29761: { 29761: _Predicate _M_pred; 29761: 29761: 29761: explicit 29761: _Iter_negate(_Predicate __pred) 29761: : _M_pred(std::move(__pred)) 29761: { } 29761: 29761: template 29761: 29761: bool 29761: operator()(_Iterator __it) 29761: { return !bool(_M_pred(*__it)); } 29761: }; 29761: 29761: template 29761: 29761: inline _Iter_negate<_Predicate> 29761: __negate(_Iter_pred<_Predicate> __pred) 29761: { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } 29761: 29761: } 29761: } 29761: # 72 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bit" 1 3 29761: # 32 "/usr/include/c++/14/bit" 3 29761: 29761: # 33 "/usr/include/c++/14/bit" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/concepts" 1 3 29761: # 33 "/usr/include/c++/14/concepts" 3 29761: 29761: # 34 "/usr/include/c++/14/concepts" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 37 "/usr/include/c++/14/concepts" 2 3 29761: # 37 "/usr/include/c++/14/bit" 2 3 29761: # 61 "/usr/include/c++/14/bit" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 62 "/usr/include/c++/14/bit" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 155 "/usr/include/c++/14/bit" 3 29761: template 29761: constexpr _Tp 29761: __rotl(_Tp __x, int __s) noexcept 29761: { 29761: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29761: if constexpr ((_Nd & (_Nd - 1)) == 0) 29761: { 29761: 29761: 29761: constexpr unsigned __uNd = _Nd; 29761: const unsigned __r = __s; 29761: return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); 29761: } 29761: const int __r = __s % _Nd; 29761: if (__r == 0) 29761: return __x; 29761: else if (__r > 0) 29761: return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); 29761: else 29761: return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); 29761: } 29761: 29761: template 29761: constexpr _Tp 29761: __rotr(_Tp __x, int __s) noexcept 29761: { 29761: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29761: if constexpr ((_Nd & (_Nd - 1)) == 0) 29761: { 29761: 29761: 29761: constexpr unsigned __uNd = _Nd; 29761: const unsigned __r = __s; 29761: return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); 29761: } 29761: const int __r = __s % _Nd; 29761: if (__r == 0) 29761: return __x; 29761: else if (__r > 0) 29761: return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); 29761: else 29761: return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); 29761: } 29761: 29761: template 29761: constexpr int 29761: __countl_zero(_Tp __x) noexcept 29761: { 29761: using __gnu_cxx::__int_traits; 29761: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29761: 29761: if (__x == 0) 29761: return _Nd; 29761: 29761: constexpr auto _Nd_ull = __int_traits::__digits; 29761: constexpr auto _Nd_ul = __int_traits::__digits; 29761: constexpr auto _Nd_u = __int_traits::__digits; 29761: 29761: if constexpr (_Nd <= _Nd_u) 29761: { 29761: constexpr int __diff = _Nd_u - _Nd; 29761: return __builtin_clz(__x) - __diff; 29761: } 29761: else if constexpr (_Nd <= _Nd_ul) 29761: { 29761: constexpr int __diff = _Nd_ul - _Nd; 29761: return __builtin_clzl(__x) - __diff; 29761: } 29761: else if constexpr (_Nd <= _Nd_ull) 29761: { 29761: constexpr int __diff = _Nd_ull - _Nd; 29761: return __builtin_clzll(__x) - __diff; 29761: } 29761: else 29761: { 29761: static_assert(_Nd <= (2 * _Nd_ull), 29761: "Maximum supported integer size is 128-bit"); 29761: 29761: unsigned long long __high = __x >> _Nd_ull; 29761: if (__high != 0) 29761: { 29761: constexpr int __diff = (2 * _Nd_ull) - _Nd; 29761: return __builtin_clzll(__high) - __diff; 29761: } 29761: constexpr auto __max_ull = __int_traits::__max; 29761: unsigned long long __low = __x & __max_ull; 29761: return (_Nd - _Nd_ull) + __builtin_clzll(__low); 29761: } 29761: } 29761: 29761: template 29761: constexpr int 29761: __countl_one(_Tp __x) noexcept 29761: { 29761: return std::__countl_zero<_Tp>((_Tp)~__x); 29761: } 29761: 29761: template 29761: constexpr int 29761: __countr_zero(_Tp __x) noexcept 29761: { 29761: using __gnu_cxx::__int_traits; 29761: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29761: 29761: if (__x == 0) 29761: return _Nd; 29761: 29761: constexpr auto _Nd_ull = __int_traits::__digits; 29761: constexpr auto _Nd_ul = __int_traits::__digits; 29761: constexpr auto _Nd_u = __int_traits::__digits; 29761: 29761: if constexpr (_Nd <= _Nd_u) 29761: return __builtin_ctz(__x); 29761: else if constexpr (_Nd <= _Nd_ul) 29761: return __builtin_ctzl(__x); 29761: else if constexpr (_Nd <= _Nd_ull) 29761: return __builtin_ctzll(__x); 29761: else 29761: { 29761: static_assert(_Nd <= (2 * _Nd_ull), 29761: "Maximum supported integer size is 128-bit"); 29761: 29761: constexpr auto __max_ull = __int_traits::__max; 29761: unsigned long long __low = __x & __max_ull; 29761: if (__low != 0) 29761: return __builtin_ctzll(__low); 29761: unsigned long long __high = __x >> _Nd_ull; 29761: return __builtin_ctzll(__high) + _Nd_ull; 29761: } 29761: } 29761: 29761: template 29761: constexpr int 29761: __countr_one(_Tp __x) noexcept 29761: { 29761: return std::__countr_zero((_Tp)~__x); 29761: } 29761: 29761: template 29761: constexpr int 29761: __popcount(_Tp __x) noexcept 29761: { 29761: using __gnu_cxx::__int_traits; 29761: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29761: 29761: constexpr auto _Nd_ull = __int_traits::__digits; 29761: constexpr auto _Nd_ul = __int_traits::__digits; 29761: constexpr auto _Nd_u = __int_traits::__digits; 29761: 29761: if constexpr (_Nd <= _Nd_u) 29761: return __builtin_popcount(__x); 29761: else if constexpr (_Nd <= _Nd_ul) 29761: return __builtin_popcountl(__x); 29761: else if constexpr (_Nd <= _Nd_ull) 29761: return __builtin_popcountll(__x); 29761: else 29761: { 29761: static_assert(_Nd <= (2 * _Nd_ull), 29761: "Maximum supported integer size is 128-bit"); 29761: 29761: constexpr auto __max_ull = __int_traits::__max; 29761: unsigned long long __low = __x & __max_ull; 29761: unsigned long long __high = __x >> _Nd_ull; 29761: return __builtin_popcountll(__low) + __builtin_popcountll(__high); 29761: } 29761: } 29761: 29761: template 29761: constexpr bool 29761: __has_single_bit(_Tp __x) noexcept 29761: { return std::__popcount(__x) == 1; } 29761: 29761: template 29761: constexpr _Tp 29761: __bit_ceil(_Tp __x) noexcept 29761: { 29761: using __gnu_cxx::__int_traits; 29761: constexpr auto _Nd = __int_traits<_Tp>::__digits; 29761: if (__x == 0 || __x == 1) 29761: return 1; 29761: auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); 29761: 29761: 29761: 29761: 29761: if (!std::__is_constant_evaluated()) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__shift_exponent != __int_traits<_Tp>::__digits)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: using __promoted_type = decltype(__x << 1); 29761: if constexpr (!is_same<__promoted_type, _Tp>::value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; 29761: __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; 29761: } 29761: return (_Tp)1u << __shift_exponent; 29761: } 29761: 29761: template 29761: constexpr _Tp 29761: __bit_floor(_Tp __x) noexcept 29761: { 29761: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29761: if (__x == 0) 29761: return 0; 29761: return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); 29761: } 29761: 29761: template 29761: constexpr int 29761: __bit_width(_Tp __x) noexcept 29761: { 29761: constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; 29761: return _Nd - std::__countl_zero(__x); 29761: } 29761: # 482 "/usr/include/c++/14/bit" 3 29761: 29761: } 29761: # 77 "/usr/include/c++/14/bits/stl_algobase.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr 29761: inline int 29761: __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) 29761: { 29761: 29761: static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); 29761: # 108 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); 29761: } 29761: # 152 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline void 29761: iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) 29761: { 29761: 29761: 29761: 29761: 29761: # 185 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: swap(*__a, *__b); 29761: 29761: } 29761: # 201 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: _ForwardIterator2 29761: swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2) 29761: std::iter_swap(__first1, __first2); 29761: return __first2; 29761: } 29761: # 230 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline const _Tp& 29761: min(const _Tp& __a, const _Tp& __b) 29761: { 29761: 29761: 29761: 29761: if (__b < __a) 29761: return __b; 29761: return __a; 29761: } 29761: # 254 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline const _Tp& 29761: max(const _Tp& __a, const _Tp& __b) 29761: { 29761: 29761: 29761: 29761: if (__a < __b) 29761: return __b; 29761: return __a; 29761: } 29761: # 278 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline const _Tp& 29761: min(const _Tp& __a, const _Tp& __b, _Compare __comp) 29761: { 29761: 29761: if (__comp(__b, __a)) 29761: return __b; 29761: return __a; 29761: } 29761: # 300 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline const _Tp& 29761: max(const _Tp& __a, const _Tp& __b, _Compare __comp) 29761: { 29761: 29761: if (__comp(__a, __b)) 29761: return __b; 29761: return __a; 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: inline _Iterator 29761: __niter_base(_Iterator __it) 29761: noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) 29761: { return __it; } 29761: # 332 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: decltype(std::__niter_base(std::declval<_Ite>())) 29761: __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, 29761: std::random_access_iterator_tag>&) 29761: noexcept(std::is_nothrow_copy_constructible<_Ite>::value); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline _From 29761: __niter_wrap(_From __from, _To __res) 29761: { return __from + (std::__niter_base(__res) - std::__niter_base(__from)); } 29761: 29761: 29761: template 29761: 29761: inline _Iterator 29761: __niter_wrap(const _Iterator&, _Iterator __res) 29761: { return __res; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __copy_move 29761: { 29761: template 29761: 29761: static _OI 29761: __copy_m(_II __first, _II __last, _OI __result) 29761: { 29761: for (; __first != __last; ++__result, (void)++__first) 29761: *__result = *__first; 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct __copy_move 29761: { 29761: template 29761: 29761: static _OI 29761: __copy_m(_II __first, _II __last, _OI __result) 29761: { 29761: for (; __first != __last; ++__result, (void)++__first) 29761: *__result = std::move(*__first); 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: struct __copy_move 29761: { 29761: template 29761: 29761: static _OI 29761: __copy_m(_II __first, _II __last, _OI __result) 29761: { 29761: typedef typename iterator_traits<_II>::difference_type _Distance; 29761: for(_Distance __n = __last - __first; __n > 0; --__n) 29761: { 29761: *__result = *__first; 29761: ++__first; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: static void 29761: __assign_one(_Tp* __to, _Up* __from) 29761: { *__to = *__from; } 29761: }; 29761: 29761: 29761: template<> 29761: struct __copy_move 29761: { 29761: template 29761: 29761: static _OI 29761: __copy_m(_II __first, _II __last, _OI __result) 29761: { 29761: typedef typename iterator_traits<_II>::difference_type _Distance; 29761: for(_Distance __n = __last - __first; __n > 0; --__n) 29761: { 29761: *__result = std::move(*__first); 29761: ++__first; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: static void 29761: __assign_one(_Tp* __to, _Up* __from) 29761: { *__to = std::move(*__from); } 29761: }; 29761: 29761: 29761: template 29761: struct __copy_move<_IsMove, true, random_access_iterator_tag> 29761: { 29761: template 29761: 29761: static _Up* 29761: __copy_m(_Tp* __first, _Tp* __last, _Up* __result) 29761: { 29761: const ptrdiff_t _Num = __last - __first; 29761: if (__builtin_expect(_Num > 1, true)) 29761: __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); 29761: else if (_Num == 1) 29761: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 29761: __assign_one(__result, __first); 29761: return __result + _Num; 29761: } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct _Deque_iterator; 29761: 29761: struct _Bit_iterator; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct char_traits; 29761: 29761: template 29761: class istreambuf_iterator; 29761: 29761: template 29761: class ostreambuf_iterator; 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 29761: __copy_move_a2(_CharT*, _CharT*, 29761: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type 29761: __copy_move_a2(const _CharT*, const _CharT*, 29761: ostreambuf_iterator<_CharT, char_traits<_CharT> >); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: _CharT*>::__type 29761: __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, 29761: istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_char<_CharT>::__value, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29761: __copy_move_a2( 29761: istreambuf_iterator<_CharT, char_traits<_CharT> >, 29761: istreambuf_iterator<_CharT, char_traits<_CharT> >, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*>); 29761: 29761: 29761: template 29761: 29761: inline _OI 29761: __copy_move_a2(_II __first, _II __last, _OI __result) 29761: { 29761: typedef typename iterator_traits<_II>::iterator_category _Category; 29761: 29761: 29761: 29761: 29761: 29761: return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, 29761: _Category>::__copy_m(__first, __last, __result); 29761: } 29761: 29761: template 29761: _OI 29761: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: _OI); 29761: 29761: template 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29761: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29761: __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 29761: 29761: template 29761: 29761: inline _OI 29761: __copy_move_a1(_II __first, _II __last, _OI __result) 29761: { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: 29761: inline _OI 29761: __copy_move_a(_II __first, _II __last, _OI __result) 29761: { 29761: return std::__niter_wrap(__result, 29761: std::__copy_move_a1<_IsMove>(std::__niter_base(__first), 29761: std::__niter_base(__last), 29761: std::__niter_base(__result))); 29761: } 29761: 29761: template 29761: 29761: _OI 29761: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: _OI); 29761: 29761: template 29761: 29761: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29761: __copy_move_a(_II, _II, 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 29761: 29761: template 29761: 29761: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 29761: __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29761: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29761: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 29761: 29761: template 29761: 29761: _OutputIterator 29761: __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, 29761: bool) 29761: { 29761: if (__n > 0) 29761: { 29761: while (true) 29761: { 29761: *__result = *__first; 29761: ++__result; 29761: if (--__n > 0) 29761: ++__first; 29761: else 29761: break; 29761: } 29761: } 29761: return __result; 29761: } 29761: 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_char<_CharT>::__value, _CharT*>::__type 29761: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, 29761: _Size, _CharT*, bool); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_char<_CharT>::__value, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29761: __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*>, 29761: bool); 29761: # 639 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _OI 29761: copy(_II __first, _II __last, _OI __result) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__copy_move_a<__is_move_iterator<_II>::__value> 29761: (std::__miter_base(__first), std::__miter_base(__last), __result); 29761: } 29761: # 672 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _OI 29761: move(_II __first, _II __last, _OI __result) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__copy_move_a(std::__miter_base(__first), 29761: std::__miter_base(__last), __result); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __copy_move_backward 29761: { 29761: template 29761: 29761: static _BI2 29761: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: while (__first != __last) 29761: *--__result = *--__last; 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct __copy_move_backward 29761: { 29761: template 29761: 29761: static _BI2 29761: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: while (__first != __last) 29761: *--__result = std::move(*--__last); 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: struct __copy_move_backward 29761: { 29761: template 29761: 29761: static _BI2 29761: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: typename iterator_traits<_BI1>::difference_type 29761: __n = __last - __first; 29761: for (; __n > 0; --__n) 29761: *--__result = *--__last; 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: struct __copy_move_backward 29761: { 29761: template 29761: 29761: static _BI2 29761: __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: typename iterator_traits<_BI1>::difference_type 29761: __n = __last - __first; 29761: for (; __n > 0; --__n) 29761: *--__result = std::move(*--__last); 29761: return __result; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> 29761: { 29761: template 29761: 29761: static _Up* 29761: __copy_move_b(_Tp* __first, _Tp* __last, _Up* __result) 29761: { 29761: const ptrdiff_t _Num = __last - __first; 29761: if (__builtin_expect(_Num > 1, true)) 29761: __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); 29761: else if (_Num == 1) 29761: std::__copy_move<_IsMove, false, random_access_iterator_tag>:: 29761: __assign_one(__result - 1, __first); 29761: return __result - _Num; 29761: } 29761: }; 29761: 29761: template 29761: 29761: inline _BI2 29761: __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: typedef typename iterator_traits<_BI1>::iterator_category _Category; 29761: 29761: 29761: 29761: 29761: 29761: return std::__copy_move_backward<_IsMove, 29761: __memcpyable<_BI2, _BI1>::__value, 29761: _Category>::__copy_move_b(__first, 29761: __last, 29761: __result); 29761: } 29761: 29761: template 29761: 29761: inline _BI2 29761: __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: _OI 29761: __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: _OI); 29761: 29761: template 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29761: __copy_move_backward_a1( 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr>, 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*>); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29761: __copy_move_backward_a1(_II, _II, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*>); 29761: 29761: template 29761: 29761: inline _OI 29761: __copy_move_backward_a(_II __first, _II __last, _OI __result) 29761: { 29761: return std::__niter_wrap(__result, 29761: std::__copy_move_backward_a1<_IsMove> 29761: (std::__niter_base(__first), std::__niter_base(__last), 29761: std::__niter_base(__result))); 29761: } 29761: 29761: template 29761: 29761: _OI 29761: __copy_move_backward_a( 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: _OI); 29761: 29761: template 29761: 29761: __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29761: __copy_move_backward_a(_II, _II, 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); 29761: 29761: template 29761: 29761: ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> 29761: __copy_move_backward_a( 29761: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29761: const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, 29761: const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); 29761: # 875 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _BI2 29761: copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> 29761: (std::__miter_base(__first), std::__miter_base(__last), __result); 29761: } 29761: # 910 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _BI2 29761: move_backward(_BI1 __first, _BI1 __last, _BI2 __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__copy_move_backward_a(std::__miter_base(__first), 29761: std::__miter_base(__last), 29761: __result); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline typename 29761: __gnu_cxx::__enable_if::__value, void>::__type 29761: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __value) 29761: { 29761: for (; __first != __last; ++__first) 29761: *__first = __value; 29761: } 29761: 29761: template 29761: 29761: inline typename 29761: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type 29761: __fill_a1(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __value) 29761: { 29761: const _Tp __tmp = __value; 29761: for (; __first != __last; ++__first) 29761: *__first = __tmp; 29761: } 29761: 29761: 29761: template 29761: 29761: inline typename 29761: __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type 29761: __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) 29761: { 29761: const _Tp __tmp = __c; 29761: # 971 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: if (const size_t __len = __last - __first) 29761: __builtin_memset(__first, static_cast(__tmp), __len); 29761: } 29761: 29761: template 29761: 29761: inline void 29761: __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, 29761: ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, 29761: const _Tp& __value) 29761: { std::__fill_a1(__first.base(), __last.base(), __value); } 29761: 29761: template 29761: void 29761: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 29761: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, 29761: const _VTp&); 29761: 29761: 29761: void 29761: __fill_a1(std::_Bit_iterator, std::_Bit_iterator, 29761: const bool&); 29761: 29761: template 29761: 29761: inline void 29761: __fill_a(_FIte __first, _FIte __last, const _Tp& __value) 29761: { std::__fill_a1(__first, __last, __value); } 29761: 29761: template 29761: 29761: void 29761: __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, 29761: const _Tp&); 29761: # 1019 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline void 29761: fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: std::__fill_a(__first, __last, __value); 29761: } 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: 29761: inline constexpr int 29761: __size_to_integer(int __n) { return __n; } 29761: inline constexpr unsigned 29761: __size_to_integer(unsigned __n) { return __n; } 29761: inline constexpr long 29761: __size_to_integer(long __n) { return __n; } 29761: inline constexpr unsigned long 29761: __size_to_integer(unsigned long __n) { return __n; } 29761: inline constexpr long long 29761: __size_to_integer(long long __n) { return __n; } 29761: inline constexpr unsigned long long 29761: __size_to_integer(unsigned long long __n) { return __n; } 29761: # 1073 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: inline constexpr long long 29761: __size_to_integer(float __n) { return (long long)__n; } 29761: inline constexpr long long 29761: __size_to_integer(double __n) { return (long long)__n; } 29761: inline constexpr long long 29761: __size_to_integer(long double __n) { return (long long)__n; } 29761: 29761: 29761: 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: template 29761: 29761: inline typename 29761: __gnu_cxx::__enable_if::__value, _OutputIterator>::__type 29761: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 29761: { 29761: for (; __n > 0; --__n, (void) ++__first) 29761: *__first = __value; 29761: return __first; 29761: } 29761: 29761: template 29761: 29761: inline typename 29761: __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type 29761: __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) 29761: { 29761: const _Tp __tmp = __value; 29761: for (; __n > 0; --__n, (void) ++__first) 29761: *__first = __tmp; 29761: return __first; 29761: } 29761: 29761: template 29761: 29761: ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> 29761: __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, 29761: _Size __n, const _Tp& __value, 29761: std::input_iterator_tag); 29761: 29761: template 29761: 29761: inline _OutputIterator 29761: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29761: std::output_iterator_tag) 29761: { 29761: 29761: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29761: 29761: return __fill_n_a1(__first, __n, __value); 29761: } 29761: 29761: template 29761: 29761: inline _OutputIterator 29761: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29761: std::input_iterator_tag) 29761: { 29761: 29761: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29761: 29761: return __fill_n_a1(__first, __n, __value); 29761: } 29761: 29761: template 29761: 29761: inline _OutputIterator 29761: __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, 29761: std::random_access_iterator_tag) 29761: { 29761: 29761: static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); 29761: 29761: if (__n <= 0) 29761: return __first; 29761: 29761: ; 29761: 29761: std::__fill_a(__first, __first + __n, __value); 29761: return __first + __n; 29761: } 29761: # 1175 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _OI 29761: fill_n(_OI __first, _Size __n, const _Tp& __value) 29761: { 29761: 29761: 29761: 29761: return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: template 29761: struct __equal 29761: { 29761: template 29761: 29761: static bool 29761: equal(_II1 __first1, _II1 __last1, _II2 __first2) 29761: { 29761: for (; __first1 != __last1; ++__first1, (void) ++__first2) 29761: if (!(*__first1 == *__first2)) 29761: return false; 29761: return true; 29761: } 29761: }; 29761: 29761: template<> 29761: struct __equal 29761: { 29761: template 29761: 29761: static bool 29761: equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) 29761: { 29761: if (const size_t __len = (__last1 - __first1)) 29761: return !std::__memcmp(__first1, __first2, __len); 29761: return true; 29761: } 29761: }; 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, bool>::__type 29761: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr>, 29761: _II); 29761: 29761: template 29761: bool 29761: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, bool>::__type 29761: __equal_aux1(_II, _II, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr>); 29761: 29761: template 29761: 29761: inline bool 29761: __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) 29761: { 29761: typedef typename iterator_traits<_II1>::value_type _ValueType1; 29761: const bool __simple = ((__is_integer<_ValueType1>::__value 29761: || __is_pointer<_ValueType1>::__value) 29761: && __memcmpable<_II1, _II2>::__value); 29761: return std::__equal<__simple>::equal(__first1, __last1, __first2); 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) 29761: { 29761: return std::__equal_aux1(std::__niter_base(__first1), 29761: std::__niter_base(__last1), 29761: std::__niter_base(__first2)); 29761: } 29761: 29761: template 29761: 29761: bool 29761: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29761: _II2); 29761: 29761: template 29761: 29761: bool 29761: __equal_aux(_II1, _II1, 29761: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 29761: 29761: template 29761: 29761: bool 29761: __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); 29761: 29761: template 29761: struct __lc_rai 29761: { 29761: template 29761: 29761: static _II1 29761: __newlast1(_II1, _II1 __last1, _II2, _II2) 29761: { return __last1; } 29761: 29761: template 29761: 29761: static bool 29761: __cnd2(_II __first, _II __last) 29761: { return __first != __last; } 29761: }; 29761: 29761: template<> 29761: struct __lc_rai 29761: { 29761: template 29761: 29761: static _RAI1 29761: __newlast1(_RAI1 __first1, _RAI1 __last1, 29761: _RAI2 __first2, _RAI2 __last2) 29761: { 29761: const typename iterator_traits<_RAI1>::difference_type 29761: __diff1 = __last1 - __first1; 29761: const typename iterator_traits<_RAI2>::difference_type 29761: __diff2 = __last2 - __first2; 29761: return __diff2 < __diff1 ? __first1 + __diff2 : __last1; 29761: } 29761: 29761: template 29761: static bool 29761: __cnd2(_RAI, _RAI) 29761: { return true; } 29761: }; 29761: 29761: template 29761: 29761: bool 29761: __lexicographical_compare_impl(_II1 __first1, _II1 __last1, 29761: _II2 __first2, _II2 __last2, 29761: _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_II1>::iterator_category _Category1; 29761: typedef typename iterator_traits<_II2>::iterator_category _Category2; 29761: typedef std::__lc_rai<_Category1, _Category2> __rai_type; 29761: 29761: __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); 29761: for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); 29761: ++__first1, (void)++__first2) 29761: { 29761: if (__comp(__first1, __first2)) 29761: return true; 29761: if (__comp(__first2, __first1)) 29761: return false; 29761: } 29761: return __first1 == __last1 && __first2 != __last2; 29761: } 29761: 29761: template 29761: struct __lexicographical_compare 29761: { 29761: template 29761: 29761: static bool 29761: __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29761: { 29761: using __gnu_cxx::__ops::__iter_less_iter; 29761: return std::__lexicographical_compare_impl(__first1, __last1, 29761: __first2, __last2, 29761: __iter_less_iter()); 29761: } 29761: 29761: template 29761: 29761: static int 29761: __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29761: { 29761: while (__first1 != __last1) 29761: { 29761: if (__first2 == __last2) 29761: return +1; 29761: if (*__first1 < *__first2) 29761: return -1; 29761: if (*__first2 < *__first1) 29761: return +1; 29761: ++__first1; 29761: ++__first2; 29761: } 29761: return int(__first2 == __last2) - 1; 29761: } 29761: }; 29761: 29761: template<> 29761: struct __lexicographical_compare 29761: { 29761: template 29761: 29761: static bool 29761: __lc(const _Tp* __first1, const _Tp* __last1, 29761: const _Up* __first2, const _Up* __last2) 29761: { return __3way(__first1, __last1, __first2, __last2) < 0; } 29761: 29761: template 29761: 29761: static ptrdiff_t 29761: __3way(const _Tp* __first1, const _Tp* __last1, 29761: const _Up* __first2, const _Up* __last2) 29761: { 29761: const size_t __len1 = __last1 - __first1; 29761: const size_t __len2 = __last2 - __first2; 29761: if (const size_t __len = std::min(__len1, __len2)) 29761: if (int __result = std::__memcmp(__first1, __first2, __len)) 29761: return __result; 29761: return ptrdiff_t(__len1 - __len2); 29761: } 29761: }; 29761: 29761: template 29761: 29761: inline bool 29761: __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, 29761: _II2 __first2, _II2 __last2) 29761: { 29761: typedef typename iterator_traits<_II1>::value_type _ValueType1; 29761: typedef typename iterator_traits<_II2>::value_type _ValueType2; 29761: const bool __simple = 29761: (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value 29761: && __is_pointer<_II1>::__value 29761: && __is_pointer<_II2>::__value 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ); 29761: 29761: return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, 29761: __first2, __last2); 29761: } 29761: 29761: template 29761: bool 29761: __lexicographical_compare_aux1( 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: _Tp2*, _Tp2*); 29761: 29761: template 29761: bool 29761: __lexicographical_compare_aux1(_Tp1*, _Tp1*, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29761: 29761: template 29761: bool 29761: __lexicographical_compare_aux1( 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); 29761: 29761: template 29761: 29761: inline bool 29761: __lexicographical_compare_aux(_II1 __first1, _II1 __last1, 29761: _II2 __first2, _II2 __last2) 29761: { 29761: return std::__lexicographical_compare_aux1(std::__niter_base(__first1), 29761: std::__niter_base(__last1), 29761: std::__niter_base(__first2), 29761: std::__niter_base(__last2)); 29761: } 29761: 29761: template 29761: 29761: bool 29761: __lexicographical_compare_aux( 29761: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29761: _II2, _II2); 29761: 29761: template 29761: 29761: bool 29761: __lexicographical_compare_aux( 29761: _II1, _II1, 29761: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 29761: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 29761: 29761: template 29761: 29761: bool 29761: __lexicographical_compare_aux( 29761: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, 29761: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, 29761: const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::difference_type 29761: _DistanceType; 29761: 29761: _DistanceType __len = std::distance(__first, __last); 29761: 29761: while (__len > 0) 29761: { 29761: _DistanceType __half = __len >> 1; 29761: _ForwardIterator __middle = __first; 29761: std::advance(__middle, __half); 29761: if (__comp(__middle, __val)) 29761: { 29761: __first = __middle; 29761: ++__first; 29761: __len = __len - __half - 1; 29761: } 29761: else 29761: __len = __half; 29761: } 29761: return __first; 29761: } 29761: # 1527 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__lower_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_less_val()); 29761: } 29761: 29761: 29761: 29761: template 29761: inline constexpr _Tp 29761: __lg(_Tp __n) 29761: { 29761: 29761: return std::__bit_width(make_unsigned_t<_Tp>(__n)) - 1; 29761: # 1563 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: } 29761: 29761: 29761: # 1579 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: equal(_II1 __first1, _II1 __last1, _II2 __first2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__equal_aux(__first1, __last1, __first2); 29761: } 29761: # 1610 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: equal(_IIter1 __first1, _IIter1 __last1, 29761: _IIter2 __first2, _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2) 29761: if (!bool(__binary_pred(*__first1, *__first2))) 29761: return false; 29761: return true; 29761: } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: 29761: 29761: template 29761: 29761: inline bool 29761: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29761: { 29761: using _RATag = random_access_iterator_tag; 29761: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 29761: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 29761: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 29761: if constexpr (_RAIters::value) 29761: { 29761: if ((__last1 - __first1) != (__last2 - __first2)) 29761: return false; 29761: return std::equal(__first1, __last1, __first2); 29761: } 29761: else 29761: { 29761: for (; __first1 != __last1 && __first2 != __last2; 29761: ++__first1, (void)++__first2) 29761: if (!(*__first1 == *__first2)) 29761: return false; 29761: return __first1 == __last1 && __first2 == __last2; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline bool 29761: __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: using _RATag = random_access_iterator_tag; 29761: using _Cat1 = typename iterator_traits<_II1>::iterator_category; 29761: using _Cat2 = typename iterator_traits<_II2>::iterator_category; 29761: using _RAIters = __and_, is_same<_Cat2, _RATag>>; 29761: if constexpr (_RAIters::value) 29761: { 29761: if ((__last1 - __first1) != (__last2 - __first2)) 29761: return false; 29761: return std::equal(__first1, __last1, __first2, 29761: __binary_pred); 29761: } 29761: else 29761: { 29761: for (; __first1 != __last1 && __first2 != __last2; 29761: ++__first1, (void)++__first2) 29761: if (!bool(__binary_pred(*__first1, *__first2))) 29761: return false; 29761: return __first1 == __last1 && __first2 == __last2; 29761: } 29761: } 29761: #pragma GCC diagnostic pop 29761: # 1701 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__equal4(__first1, __last1, __first2, __last2); 29761: } 29761: # 1734 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: equal(_IIter1 __first1, _IIter1 __last1, 29761: _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__equal4(__first1, __last1, __first2, __last2, 29761: __binary_pred); 29761: } 29761: # 1766 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: lexicographical_compare(_II1 __first1, _II1 __last1, 29761: _II2 __first2, _II2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__lexicographical_compare_aux(__first1, __last1, 29761: __first2, __last2); 29761: } 29761: # 1801 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: lexicographical_compare(_II1 __first1, _II1 __last1, 29761: _II2 __first2, _II2 __last2, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__lexicographical_compare_impl 29761: (__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 1916 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: pair<_InputIterator1, _InputIterator2> 29761: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 29761: { 29761: while (__first1 != __last1 && __binary_pred(__first1, __first2)) 29761: { 29761: ++__first1; 29761: ++__first2; 29761: } 29761: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 29761: } 29761: # 1944 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_InputIterator1, _InputIterator2> 29761: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__mismatch(__first1, __last1, __first2, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 1978 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_InputIterator1, _InputIterator2> 29761: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__mismatch(__first1, __last1, __first2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29761: } 29761: 29761: 29761: template 29761: 29761: pair<_InputIterator1, _InputIterator2> 29761: __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2 29761: && __binary_pred(__first1, __first2)) 29761: { 29761: ++__first1; 29761: ++__first2; 29761: } 29761: return pair<_InputIterator1, _InputIterator2>(__first1, __first2); 29761: } 29761: # 2026 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_InputIterator1, _InputIterator2> 29761: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__mismatch(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 2062 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_InputIterator1, _InputIterator2> 29761: mismatch(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__mismatch(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline _InputIterator 29761: __find_if(_InputIterator __first, _InputIterator __last, 29761: _Predicate __pred, input_iterator_tag) 29761: { 29761: while (__first != __last && !__pred(__first)) 29761: ++__first; 29761: return __first; 29761: } 29761: 29761: 29761: template 29761: 29761: _RandomAccessIterator 29761: __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Predicate __pred, random_access_iterator_tag) 29761: { 29761: typename iterator_traits<_RandomAccessIterator>::difference_type 29761: __trip_count = (__last - __first) >> 2; 29761: 29761: for (; __trip_count > 0; --__trip_count) 29761: { 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: } 29761: 29761: switch (__last - __first) 29761: { 29761: case 3: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: case 2: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: case 1: 29761: if (__pred(__first)) 29761: return __first; 29761: ++__first; 29761: 29761: case 0: 29761: default: 29761: return __last; 29761: } 29761: } 29761: 29761: template 29761: 29761: inline _Iterator 29761: __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) 29761: { 29761: return __find_if(__first, __last, __pred, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: template 29761: 29761: typename iterator_traits<_InputIterator>::difference_type 29761: __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29761: { 29761: typename iterator_traits<_InputIterator>::difference_type __n = 0; 29761: for (; __first != __last; ++__first) 29761: if (__pred(__first)) 29761: ++__n; 29761: return __n; 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __remove_if(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: __first = std::__find_if(__first, __last, __pred); 29761: if (__first == __last) 29761: return __first; 29761: _ForwardIterator __result = __first; 29761: ++__first; 29761: for (; __first != __last; ++__first) 29761: if (!__pred(__first)) 29761: { 29761: *__result = std::move(*__first); 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator1 29761: __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: _BinaryPredicate __predicate) 29761: { 29761: 29761: if (__first1 == __last1 || __first2 == __last2) 29761: return __first1; 29761: 29761: 29761: _ForwardIterator2 __p1(__first2); 29761: if (++__p1 == __last2) 29761: return std::__find_if(__first1, __last1, 29761: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 29761: 29761: 29761: _ForwardIterator1 __current = __first1; 29761: 29761: for (;;) 29761: { 29761: __first1 = 29761: std::__find_if(__first1, __last1, 29761: __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); 29761: 29761: if (__first1 == __last1) 29761: return __last1; 29761: 29761: _ForwardIterator2 __p = __p1; 29761: __current = __first1; 29761: if (++__current == __last1) 29761: return __last1; 29761: 29761: while (__predicate(__current, __p)) 29761: { 29761: if (++__p == __last2) 29761: return __first1; 29761: if (++__current == __last1) 29761: return __last1; 29761: } 29761: ++__first1; 29761: } 29761: return __first1; 29761: } 29761: 29761: 29761: template 29761: 29761: bool 29761: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _BinaryPredicate __pred) 29761: { 29761: 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2) 29761: if (!__pred(__first1, __first2)) 29761: break; 29761: 29761: if (__first1 == __last1) 29761: return true; 29761: 29761: 29761: 29761: _ForwardIterator2 __last2 = __first2; 29761: std::advance(__last2, std::distance(__first1, __last1)); 29761: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 29761: { 29761: if (__scan != std::__find_if(__first1, __scan, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 29761: continue; 29761: 29761: auto __matches 29761: = std::__count_if(__first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 29761: if (0 == __matches || 29761: std::__count_if(__scan, __last1, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 29761: != __matches) 29761: return false; 29761: } 29761: return true; 29761: } 29761: # 2286 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline bool 29761: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__is_permutation(__first1, __last1, __first2, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: 29761: 29761: 29761: # 2328 "/usr/include/c++/14/bits/stl_algobase.h" 3 29761: template 29761: 29761: inline _ForwardIterator1 29761: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: _BinaryPredicate __predicate) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__search(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__predicate)); 29761: } 29761: 29761: 29761: 29761: } 29761: # 63 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/allocator.h" 1 3 29761: # 46 "/usr/include/c++/14/bits/allocator.h" 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 1 3 29761: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 29761: # 1 "/usr/include/c++/14/bits/new_allocator.h" 1 3 29761: # 41 "/usr/include/c++/14/bits/new_allocator.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 62 "/usr/include/c++/14/bits/new_allocator.h" 3 29761: template 29761: class __new_allocator 29761: { 29761: public: 29761: typedef _Tp value_type; 29761: typedef std::size_t size_type; 29761: typedef std::ptrdiff_t difference_type; 29761: 29761: typedef _Tp* pointer; 29761: typedef const _Tp* const_pointer; 29761: typedef _Tp& reference; 29761: typedef const _Tp& const_reference; 29761: 29761: template 29761: struct rebind 29761: { typedef __new_allocator<_Tp1> other; }; 29761: 29761: 29761: 29761: 29761: 29761: typedef std::true_type propagate_on_container_move_assignment; 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: 29761: __new_allocator() noexcept { } 29761: 29761: __attribute__((__always_inline__)) 29761: 29761: __new_allocator(const __new_allocator&) noexcept { } 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: 29761: __new_allocator(const __new_allocator<_Tp1>&) noexcept { } 29761: 29761: 29761: __new_allocator& operator=(const __new_allocator&) = default; 29761: 29761: 29761: 29761: ~__new_allocator() noexcept { } 29761: 29761: pointer 29761: address(reference __x) const noexcept 29761: { return std::__addressof(__x); } 29761: 29761: const_pointer 29761: address(const_reference __x) const noexcept 29761: { return std::__addressof(__x); } 29761: # 125 "/usr/include/c++/14/bits/new_allocator.h" 3 29761: [[__nodiscard__]] _Tp* 29761: allocate(size_type __n, const void* = static_cast(0)) 29761: { 29761: 29761: 29761: 29761: static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); 29761: 29761: 29761: if (__builtin_expect(__n > this->_M_max_size(), false)) 29761: { 29761: 29761: 29761: if (__n > (std::size_t(-1) / sizeof(_Tp))) 29761: std::__throw_bad_array_new_length(); 29761: std::__throw_bad_alloc(); 29761: } 29761: 29761: 29761: if (alignof(_Tp) > 8) 29761: { 29761: std::align_val_t __al = std::align_val_t(alignof(_Tp)); 29761: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), 29761: __al)); 29761: } 29761: 29761: return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); 29761: } 29761: 29761: 29761: void 29761: deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (alignof(_Tp) > 8) 29761: { 29761: ::operator delete((__p), (__n) * sizeof(_Tp), 29761: std::align_val_t(alignof(_Tp))); 29761: return; 29761: } 29761: 29761: ::operator delete((__p), (__n) * sizeof(_Tp)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: size_type 29761: max_size() const noexcept 29761: { return _M_max_size(); } 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: void 29761: construct(_Up* __p, _Args&&... __args) 29761: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 29761: { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: void 29761: destroy(_Up* __p) 29761: noexcept(std::is_nothrow_destructible<_Up>::value) 29761: { __p->~_Up(); } 29761: # 213 "/usr/include/c++/14/bits/new_allocator.h" 3 29761: template 29761: friend __attribute__((__always_inline__)) bool 29761: operator==(const __new_allocator&, const __new_allocator<_Up>&) 29761: noexcept 29761: { return true; } 29761: 29761: 29761: template 29761: friend __attribute__((__always_inline__)) bool 29761: operator!=(const __new_allocator&, const __new_allocator<_Up>&) 29761: noexcept 29761: { return false; } 29761: 29761: 29761: private: 29761: __attribute__((__always_inline__)) 29761: constexpr size_type 29761: _M_max_size() const noexcept 29761: { 29761: 29761: return std::size_t(0x7fffffff) / sizeof(_Tp); 29761: 29761: 29761: 29761: } 29761: }; 29761: 29761: 29761: } 29761: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 2 3 29761: 29761: 29761: namespace std 29761: { 29761: # 46 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++allocator.h" 3 29761: template 29761: using __allocator_base = __new_allocator<_Tp>; 29761: } 29761: # 47 "/usr/include/c++/14/bits/allocator.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/memoryfwd.h" 1 3 29761: # 46 "/usr/include/c++/14/bits/memoryfwd.h" 3 29761: 29761: # 47 "/usr/include/c++/14/bits/memoryfwd.h" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 64 "/usr/include/c++/14/bits/memoryfwd.h" 3 29761: template 29761: class allocator; 29761: 29761: template<> 29761: class allocator; 29761: 29761: 29761: 29761: template 29761: struct uses_allocator; 29761: 29761: template 29761: struct allocator_traits; 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 48 "/usr/include/c++/14/bits/allocator.h" 2 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 72 "/usr/include/c++/14/bits/allocator.h" 3 29761: template<> 29761: class allocator 29761: { 29761: public: 29761: typedef void value_type; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: 29761: 29761: 29761: typedef void* pointer; 29761: typedef const void* const_pointer; 29761: 29761: template 29761: struct rebind 29761: { typedef allocator<_Tp1> other; }; 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_move_assignment = true_type; 29761: 29761: using is_always_equal 29761: 29761: = true_type; 29761: # 115 "/usr/include/c++/14/bits/allocator.h" 3 29761: }; 29761: # 127 "/usr/include/c++/14/bits/allocator.h" 3 29761: template 29761: class allocator : public __allocator_base<_Tp> 29761: { 29761: public: 29761: typedef _Tp value_type; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: 29761: 29761: 29761: typedef _Tp* pointer; 29761: typedef const _Tp* const_pointer; 29761: typedef _Tp& reference; 29761: typedef const _Tp& const_reference; 29761: 29761: template 29761: struct rebind 29761: { typedef allocator<_Tp1> other; }; 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_move_assignment = true_type; 29761: 29761: using is_always_equal 29761: 29761: = true_type; 29761: 29761: 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: 29761: allocator() noexcept { } 29761: 29761: __attribute__((__always_inline__)) 29761: 29761: allocator(const allocator& __a) noexcept 29761: : __allocator_base<_Tp>(__a) { } 29761: 29761: 29761: 29761: allocator& operator=(const allocator&) = default; 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: 29761: allocator(const allocator<_Tp1>&) noexcept { } 29761: 29761: __attribute__((__always_inline__)) 29761: 29761: 29761: 29761: ~allocator() noexcept { } 29761: # 212 "/usr/include/c++/14/bits/allocator.h" 3 29761: friend __attribute__((__always_inline__)) 29761: bool 29761: operator==(const allocator&, const allocator&) noexcept 29761: { return true; } 29761: 29761: 29761: friend __attribute__((__always_inline__)) 29761: bool 29761: operator!=(const allocator&, const allocator&) noexcept 29761: { return false; } 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: inline bool 29761: operator==(const allocator<_T1>&, const allocator<_T2>&) 29761: noexcept 29761: { return true; } 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: inline bool 29761: operator!=(const allocator<_T1>&, const allocator<_T2>&) 29761: noexcept 29761: { return false; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class allocator 29761: { 29761: public: 29761: typedef _Tp value_type; 29761: allocator() { } 29761: template allocator(const allocator<_Up>&) { } 29761: }; 29761: 29761: template 29761: class allocator 29761: { 29761: public: 29761: typedef _Tp value_type; 29761: allocator() { } 29761: template allocator(const allocator<_Up>&) { } 29761: }; 29761: 29761: template 29761: class allocator 29761: { 29761: public: 29761: typedef _Tp value_type; 29761: allocator() { } 29761: template allocator(const allocator<_Up>&) { } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern template class allocator; 29761: extern template class allocator; 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 64 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_construct.h" 1 3 29761: # 73 "/usr/include/c++/14/bits/stl_construct.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: inline void 29761: destroy_at(_Tp* __location) 29761: { 29761: if constexpr (201703L > 201703L && is_array_v<_Tp>) 29761: { 29761: for (auto& __x : *__location) 29761: std::destroy_at(std::__addressof(__x)); 29761: } 29761: else 29761: __location->~_Tp(); 29761: } 29761: # 106 "/usr/include/c++/14/bits/stl_construct.h" 3 29761: template 29761: 29761: inline void 29761: _Construct(_Tp* __p, _Args&&... __args) 29761: { 29761: # 119 "/usr/include/c++/14/bits/stl_construct.h" 3 29761: ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); 29761: } 29761: # 132 "/usr/include/c++/14/bits/stl_construct.h" 3 29761: template 29761: inline void 29761: _Construct_novalue(_T1* __p) 29761: { ::new((void*)__p) _T1; } 29761: 29761: template 29761: void 29761: _Destroy(_ForwardIterator __first, _ForwardIterator __last); 29761: 29761: 29761: 29761: 29761: template 29761: constexpr inline void 29761: _Destroy(_Tp* __pointer) 29761: { 29761: 29761: 29761: 29761: __pointer->~_Tp(); 29761: 29761: } 29761: 29761: template 29761: struct _Destroy_aux 29761: { 29761: template 29761: static void 29761: __destroy(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: for (; __first != __last; ++__first) 29761: std::_Destroy(std::__addressof(*__first)); 29761: } 29761: }; 29761: 29761: template<> 29761: struct _Destroy_aux 29761: { 29761: template 29761: static void 29761: __destroy(_ForwardIterator, _ForwardIterator) { } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: _Destroy(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _Value_type; 29761: 29761: 29761: static_assert(is_destructible<_Value_type>::value, 29761: "value type is destructible"); 29761: 29761: 29761: 29761: 29761: 29761: std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: 29761: __destroy(__first, __last); 29761: } 29761: 29761: template 29761: struct _Destroy_n_aux 29761: { 29761: template 29761: static _ForwardIterator 29761: __destroy_n(_ForwardIterator __first, _Size __count) 29761: { 29761: for (; __count > 0; (void)++__first, --__count) 29761: std::_Destroy(std::__addressof(*__first)); 29761: return __first; 29761: } 29761: }; 29761: 29761: template<> 29761: struct _Destroy_n_aux 29761: { 29761: template 29761: static _ForwardIterator 29761: __destroy_n(_ForwardIterator __first, _Size __count) 29761: { 29761: std::advance(__first, __count); 29761: return __first; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline _ForwardIterator 29761: _Destroy_n(_ForwardIterator __first, _Size __count) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _Value_type; 29761: 29761: 29761: static_assert(is_destructible<_Value_type>::value, 29761: "value type is destructible"); 29761: 29761: 29761: 29761: 29761: 29761: return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: 29761: __destroy_n(__first, __count); 29761: } 29761: 29761: 29761: template 29761: inline void 29761: destroy(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: std::_Destroy(__first, __last); 29761: } 29761: 29761: template 29761: inline _ForwardIterator 29761: destroy_n(_ForwardIterator __first, _Size __count) 29761: { 29761: return std::_Destroy_n(__first, __count); 29761: } 29761: 29761: 29761: 29761: } 29761: # 65 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_uninitialized.h" 1 3 29761: # 64 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: # 1 "/usr/include/c++/14/ext/alloc_traits.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/alloc_traits.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/alloc_traits.h" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/alloc_traits.h" 1 3 29761: # 46 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: # 52 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++14-extensions" 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: 29761: 29761: struct __allocator_traits_base 29761: { 29761: template 29761: struct __rebind : __replace_first_arg<_Tp, _Up> 29761: { 29761: static_assert(is_same< 29761: typename __replace_first_arg<_Tp, typename _Tp::value_type>::type, 29761: _Tp>::value, 29761: "allocator_traits::rebind_alloc must be A"); 29761: }; 29761: 29761: template 29761: struct __rebind<_Tp, _Up, 29761: __void_t::other>> 29761: { 29761: using type = typename _Tp::template rebind<_Up>::other; 29761: 29761: static_assert(is_same< 29761: typename _Tp::template rebind::other, 29761: _Tp>::value, 29761: "allocator_traits::rebind_alloc must be A"); 29761: }; 29761: 29761: protected: 29761: template 29761: using __pointer = typename _Tp::pointer; 29761: template 29761: using __c_pointer = typename _Tp::const_pointer; 29761: template 29761: using __v_pointer = typename _Tp::void_pointer; 29761: template 29761: using __cv_pointer = typename _Tp::const_void_pointer; 29761: template 29761: using __pocca = typename _Tp::propagate_on_container_copy_assignment; 29761: template 29761: using __pocma = typename _Tp::propagate_on_container_move_assignment; 29761: template 29761: using __pocs = typename _Tp::propagate_on_container_swap; 29761: template 29761: using __equal = __type_identity; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: using __construct_t 29761: = decltype(std::declval<_Alloc&>().construct(std::declval<_Tp*>(), 29761: std::declval<_Args>()...)); 29761: template 29761: static constexpr bool __has_construct_impl = false; 29761: template 29761: static constexpr bool 29761: __has_construct_impl<_Alloc, _Tp, 29761: __void_t<__construct_t<_Alloc, _Tp, _Args...>>, 29761: _Args...> 29761: = true; 29761: template 29761: static constexpr bool __has_construct 29761: = __has_construct_impl<_Alloc, _Tp, void, _Args...>; 29761: template 29761: using __new_expr_t 29761: = decltype(::new((void*)0) _Tp(std::declval<_Args>()...)); 29761: template 29761: static constexpr bool __has_new_expr = false; 29761: template 29761: static constexpr bool 29761: __has_new_expr<_Tp, __void_t<__new_expr_t<_Tp, _Args...>>, _Args...> 29761: = true; 29761: template 29761: static constexpr bool __can_construct 29761: = __has_construct<_Alloc, _Tp, _Args...> 29761: || __has_new_expr<_Tp, void, _Args...>; 29761: }; 29761: 29761: template 29761: using __alloc_rebind 29761: = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; 29761: # 143 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: struct allocator_traits : __allocator_traits_base 29761: { 29761: 29761: typedef _Alloc allocator_type; 29761: 29761: typedef typename _Alloc::value_type value_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: using pointer = __detected_or_t; 29761: 29761: private: 29761: 29761: template class _Func, typename _Tp, typename = void> 29761: struct _Ptr 29761: { 29761: using type = typename pointer_traits::template rebind<_Tp>; 29761: }; 29761: 29761: template class _Func, typename _Tp> 29761: struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> 29761: { 29761: using type = _Func<_Alloc>; 29761: }; 29761: 29761: 29761: template 29761: struct _Diff 29761: { using type = typename pointer_traits<_PtrT>::difference_type; }; 29761: 29761: template 29761: struct _Diff<_A2, _PtrT, __void_t> 29761: { using type = typename _A2::difference_type; }; 29761: 29761: 29761: template 29761: struct _Size : make_unsigned<_DiffT> { }; 29761: 29761: template 29761: struct _Size<_A2, _DiffT, __void_t> 29761: { using type = typename _A2::size_type; }; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using void_pointer = typename _Ptr<__v_pointer, void>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using difference_type = typename _Diff<_Alloc, pointer>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using size_type = typename _Size<_Alloc, difference_type>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_copy_assignment 29761: = __detected_or_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_move_assignment 29761: = __detected_or_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_swap 29761: = __detected_or_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using is_always_equal 29761: = typename __detected_or_t, __equal, _Alloc>::type; 29761: 29761: template 29761: using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; 29761: template 29761: using rebind_traits = allocator_traits>; 29761: 29761: private: 29761: template 29761: static constexpr auto 29761: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) 29761: -> decltype(__a.allocate(__n, __hint)) 29761: { return __a.allocate(__n, __hint); } 29761: 29761: template 29761: static constexpr pointer 29761: _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) 29761: { return __a.allocate(__n); } 29761: 29761: 29761: template 29761: static constexpr auto 29761: _S_destroy(_Alloc2& __a, _Tp* __p, int) 29761: noexcept(noexcept(__a.destroy(__p))) 29761: -> decltype(__a.destroy(__p)) 29761: { __a.destroy(__p); } 29761: 29761: template 29761: static constexpr void 29761: _S_destroy(_Alloc2&, _Tp* __p, ...) 29761: noexcept(std::is_nothrow_destructible<_Tp>::value) 29761: { std::_Destroy(__p); } 29761: 29761: template 29761: static constexpr auto 29761: _S_max_size(_Alloc2& __a, int) 29761: -> decltype(__a.max_size()) 29761: { return __a.max_size(); } 29761: 29761: template 29761: static constexpr size_type 29761: _S_max_size(_Alloc2&, ...) 29761: { 29761: 29761: 29761: return __gnu_cxx::__numeric_traits::__max 29761: / sizeof(value_type); 29761: } 29761: 29761: template 29761: static constexpr auto 29761: _S_select(_Alloc2& __a, int) 29761: -> decltype(__a.select_on_container_copy_construction()) 29761: { return __a.select_on_container_copy_construction(); } 29761: 29761: template 29761: static constexpr _Alloc2 29761: _S_select(_Alloc2& __a, ...) 29761: { return __a; } 29761: 29761: public: 29761: # 333 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: [[__nodiscard__]] static pointer 29761: allocate(_Alloc& __a, size_type __n) 29761: { return __a.allocate(__n); } 29761: # 348 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: [[__nodiscard__]] static pointer 29761: allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) 29761: { return _S_allocate(__a, __n, __hint, 0); } 29761: # 360 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: static void 29761: deallocate(_Alloc& __a, pointer __p, size_type __n) 29761: { __a.deallocate(__p, __n); } 29761: # 375 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: static 29761: __enable_if_t<__can_construct<_Alloc, _Tp, _Args...>> 29761: construct(_Alloc& __a, _Tp* __p, _Args&&... __args) 29761: noexcept(_S_nothrow_construct<_Tp, _Args...>()) 29761: { 29761: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 29761: __a.construct(__p, std::forward<_Args>(__args)...); 29761: else 29761: std::_Construct(__p, std::forward<_Args>(__args)...); 29761: } 29761: # 395 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: static void 29761: destroy(_Alloc& __a, _Tp* __p) 29761: noexcept(noexcept(_S_destroy(__a, __p, 0))) 29761: { _S_destroy(__a, __p, 0); } 29761: # 409 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: static size_type 29761: max_size(const _Alloc& __a) noexcept 29761: { return _S_max_size(__a, 0); } 29761: # 421 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: static _Alloc 29761: select_on_container_copy_construction(const _Alloc& __rhs) 29761: { return _S_select(__rhs, 0); } 29761: 29761: private: 29761: 29761: template 29761: static constexpr bool 29761: _S_nothrow_construct(_Alloc* __a = nullptr, _Tp* __p = nullptr) 29761: { 29761: if constexpr (__has_construct<_Alloc, _Tp, _Args...>) 29761: return noexcept(__a->construct(__p, std::declval<_Args>()...)); 29761: else 29761: return __is_nothrow_new_constructible<_Tp, _Args...>; 29761: } 29761: # 449 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: }; 29761: #pragma GCC diagnostic pop 29761: # 460 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: struct allocator_traits> 29761: { 29761: 29761: using allocator_type = allocator<_Tp>; 29761: 29761: 29761: using value_type = _Tp; 29761: 29761: 29761: using pointer = _Tp*; 29761: 29761: 29761: using const_pointer = const _Tp*; 29761: 29761: 29761: using void_pointer = void*; 29761: 29761: 29761: using const_void_pointer = const void*; 29761: 29761: 29761: using difference_type = std::ptrdiff_t; 29761: 29761: 29761: using size_type = std::size_t; 29761: 29761: 29761: using propagate_on_container_copy_assignment = false_type; 29761: 29761: 29761: using propagate_on_container_move_assignment = true_type; 29761: 29761: 29761: using propagate_on_container_swap = false_type; 29761: 29761: 29761: using is_always_equal = true_type; 29761: 29761: template 29761: using rebind_alloc = allocator<_Up>; 29761: 29761: template 29761: using rebind_traits = allocator_traits>; 29761: # 512 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: [[__nodiscard__,__gnu__::__always_inline__]] 29761: static pointer 29761: allocate(allocator_type& __a, size_type __n) 29761: { return __a.allocate(__n); } 29761: # 527 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: [[__nodiscard__,__gnu__::__always_inline__]] 29761: static pointer 29761: allocate(allocator_type& __a, size_type __n, 29761: [[maybe_unused]] const_void_pointer __hint) 29761: { 29761: 29761: return __a.allocate(__n, __hint); 29761: 29761: 29761: 29761: } 29761: # 547 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: [[__gnu__::__always_inline__]] 29761: static void 29761: deallocate(allocator_type& __a, pointer __p, size_type __n) 29761: { __a.deallocate(__p, __n); } 29761: # 563 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static void 29761: construct(allocator_type& __a __attribute__((__unused__)), 29761: _Up* __p, _Args&&... __args) 29761: 29761: noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) 29761: 29761: 29761: 29761: { 29761: 29761: __a.construct(__p, std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 590 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static void 29761: destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) 29761: noexcept(is_nothrow_destructible<_Up>::value) 29761: { 29761: 29761: __a.destroy(__p); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__gnu__::__always_inline__]] 29761: static size_type 29761: max_size(const allocator_type& __a __attribute__((__unused__))) noexcept 29761: { 29761: 29761: return __a.max_size(); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__gnu__::__always_inline__]] 29761: static allocator_type 29761: select_on_container_copy_construction(const allocator_type& __rhs) 29761: { return __rhs; } 29761: }; 29761: # 637 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template<> 29761: struct allocator_traits> 29761: { 29761: 29761: using allocator_type = allocator; 29761: 29761: 29761: using value_type = void; 29761: 29761: 29761: using pointer = void*; 29761: 29761: 29761: using const_pointer = const void*; 29761: 29761: 29761: using void_pointer = void*; 29761: 29761: 29761: using const_void_pointer = const void*; 29761: 29761: 29761: using difference_type = std::ptrdiff_t; 29761: 29761: 29761: using size_type = std::size_t; 29761: 29761: 29761: using propagate_on_container_copy_assignment = false_type; 29761: 29761: 29761: using propagate_on_container_move_assignment = true_type; 29761: 29761: 29761: using propagate_on_container_swap = false_type; 29761: 29761: 29761: using is_always_equal = true_type; 29761: 29761: template 29761: using rebind_alloc = allocator<_Up>; 29761: 29761: template 29761: using rebind_traits = allocator_traits>; 29761: 29761: 29761: static void* 29761: allocate(allocator_type&, size_type, const void* = nullptr) = delete; 29761: 29761: 29761: static void 29761: deallocate(allocator_type&, void*, size_type) = delete; 29761: # 701 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static void 29761: construct(allocator_type&, _Up* __p, _Args&&... __args) 29761: noexcept(__is_nothrow_new_constructible<_Up, _Args...>) 29761: { std::_Construct(__p, std::forward<_Args>(__args)...); } 29761: # 715 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static void 29761: destroy(allocator_type&, _Up* __p) 29761: noexcept(is_nothrow_destructible<_Up>::value) 29761: { std::_Destroy(__p); } 29761: 29761: 29761: static size_type 29761: max_size(const allocator_type&) = delete; 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__gnu__::__always_inline__]] 29761: static allocator_type 29761: select_on_container_copy_construction(const allocator_type& __rhs) 29761: { return __rhs; } 29761: }; 29761: # 753 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr inline void 29761: __alloc_on_copy(_Alloc& __one, const _Alloc& __two) 29761: { 29761: using __traits = allocator_traits<_Alloc>; 29761: using __pocca = 29761: typename __traits::propagate_on_container_copy_assignment::type; 29761: 29761: if constexpr (__pocca::value) 29761: __one = __two; 29761: 29761: 29761: 29761: } 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr _Alloc 29761: __alloc_on_copy(const _Alloc& __a) 29761: { 29761: typedef allocator_traits<_Alloc> __traits; 29761: return __traits::select_on_container_copy_construction(__a); 29761: } 29761: # 790 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr inline void 29761: __alloc_on_move(_Alloc& __one, _Alloc& __two) 29761: { 29761: using __traits = allocator_traits<_Alloc>; 29761: using __pocma 29761: = typename __traits::propagate_on_container_move_assignment::type; 29761: 29761: if constexpr (__pocma::value) 29761: __one = std::move(__two); 29761: 29761: 29761: 29761: } 29761: # 821 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr inline void 29761: __alloc_on_swap(_Alloc& __one, _Alloc& __two) 29761: { 29761: using __traits = allocator_traits<_Alloc>; 29761: using __pocs = typename __traits::propagate_on_container_swap::type; 29761: 29761: if constexpr (__pocs::value) 29761: { 29761: using std::swap; 29761: swap(__one, __two); 29761: } 29761: 29761: 29761: 29761: } 29761: 29761: template, 29761: typename = void> 29761: struct __is_alloc_insertable_impl 29761: : false_type 29761: { }; 29761: 29761: template 29761: struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, 29761: __void_t::construct( 29761: std::declval<_Alloc&>(), std::declval<_ValueT*>(), 29761: std::declval<_Tp>()))>> 29761: : true_type 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_copy_insertable 29761: : __is_alloc_insertable_impl<_Alloc, 29761: typename _Alloc::value_type const&>::type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct __is_copy_insertable> 29761: : is_copy_constructible<_Tp> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_move_insertable 29761: : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct __is_move_insertable> 29761: : is_move_constructible<_Tp> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct __is_allocator : false_type { }; 29761: 29761: template 29761: struct __is_allocator<_Alloc, 29761: __void_t().allocate(size_t{}))>> 29761: : true_type { }; 29761: 29761: template 29761: using _RequireAllocator 29761: = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; 29761: 29761: template 29761: using _RequireNotAllocator 29761: = typename enable_if::value, _Alloc>::type; 29761: # 918 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: struct __alloc_swap 29761: { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; 29761: 29761: template 29761: struct __alloc_swap<_Alloc, false> 29761: { 29761: static void 29761: _S_do_it(_Alloc& __one, _Alloc& __two) noexcept 29761: { 29761: 29761: if (__one != __two) 29761: swap(__one, __two); 29761: } 29761: }; 29761: 29761: 29761: template, 29761: is_nothrow_move_constructible>::value> 29761: struct __shrink_to_fit_aux 29761: { static bool _S_do_it(_Tp&) noexcept { return false; } }; 29761: 29761: template 29761: struct __shrink_to_fit_aux<_Tp, true> 29761: { 29761: 29761: static bool 29761: _S_do_it(_Tp& __c) noexcept 29761: { 29761: 29761: try 29761: { 29761: _Tp(__make_move_if_noexcept_iterator(__c.begin()), 29761: __make_move_if_noexcept_iterator(__c.end()), 29761: __c.get_allocator()).swap(__c); 29761: return true; 29761: } 29761: catch(...) 29761: { return false; } 29761: 29761: 29761: 29761: } 29761: }; 29761: # 971 "/usr/include/c++/14/bits/alloc_traits.h" 3 29761: template 29761: 29761: void 29761: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 29761: _Allocator& __alloc) 29761: { 29761: for (; __first != __last; ++__first) 29761: 29761: 29761: 29761: allocator_traits<_Allocator>::destroy(__alloc, 29761: std::__addressof(*__first)); 29761: 29761: } 29761: 29761: 29761: template 29761: __attribute__((__always_inline__)) 29761: inline void 29761: _Destroy(_ForwardIterator __first, _ForwardIterator __last, 29761: allocator<_Tp>&) 29761: { 29761: std::_Destroy(__first, __last); 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 35 "/usr/include/c++/14/ext/alloc_traits.h" 2 3 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __alloc_traits 29761: 29761: : std::allocator_traits<_Alloc> 29761: 29761: { 29761: typedef _Alloc allocator_type; 29761: 29761: typedef std::allocator_traits<_Alloc> _Base_type; 29761: typedef typename _Base_type::value_type value_type; 29761: typedef typename _Base_type::pointer pointer; 29761: typedef typename _Base_type::const_pointer const_pointer; 29761: typedef typename _Base_type::size_type size_type; 29761: typedef typename _Base_type::difference_type difference_type; 29761: 29761: typedef value_type& reference; 29761: typedef const value_type& const_reference; 29761: using _Base_type::allocate; 29761: using _Base_type::deallocate; 29761: using _Base_type::construct; 29761: using _Base_type::destroy; 29761: using _Base_type::max_size; 29761: 29761: private: 29761: template 29761: using __is_custom_pointer 29761: = std::__and_, 29761: std::__not_>>; 29761: 29761: public: 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static constexpr 29761: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 29761: construct(_Alloc& __a, _Ptr __p, _Args&&... __args) 29761: noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), 29761: std::forward<_Args>(__args)...))) 29761: { 29761: _Base_type::construct(__a, std::__to_address(__p), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: static constexpr 29761: std::__enable_if_t<__is_custom_pointer<_Ptr>::value> 29761: destroy(_Alloc& __a, _Ptr __p) 29761: noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) 29761: { _Base_type::destroy(__a, std::__to_address(__p)); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) 29761: { return _Base_type::select_on_container_copy_construction(__a); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) 29761: { std::__alloc_on_swap(__a, __b); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr bool _S_propagate_on_copy_assign() 29761: { return _Base_type::propagate_on_container_copy_assignment::value; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr bool _S_propagate_on_move_assign() 29761: { return _Base_type::propagate_on_container_move_assignment::value; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr bool _S_propagate_on_swap() 29761: { return _Base_type::propagate_on_container_swap::value; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: static constexpr bool _S_always_equal() 29761: { return _Base_type::is_always_equal::value; } 29761: 29761: __attribute__((__always_inline__)) 29761: static constexpr bool _S_nothrow_move() 29761: { return _S_propagate_on_move_assign() || _S_always_equal(); } 29761: 29761: template 29761: struct rebind 29761: { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; 29761: # 180 "/usr/include/c++/14/ext/alloc_traits.h" 3 29761: }; 29761: 29761: 29761: } 29761: # 65 "/usr/include/c++/14/bits/stl_uninitialized.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 81 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: constexpr bool 29761: __check_constructible() 29761: { 29761: 29761: 29761: 29761: 29761: 29761: static_assert(is_constructible<_ValueType, _Tp>::value, 29761: "result type must be constructible from input type"); 29761: 29761: return true; 29761: } 29761: # 110 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: 29761: _ForwardIterator 29761: __do_uninit_copy(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result) 29761: { 29761: _ForwardIterator __cur = __result; 29761: try 29761: { 29761: for (; __first != __last; ++__first, (void)++__cur) 29761: std::_Construct(std::__addressof(*__cur), *__first); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: struct __uninitialized_copy 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_copy(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result) 29761: { return std::__do_uninit_copy(__first, __last, __result); } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_copy 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_copy(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result) 29761: { return std::copy(__first, __last, __result); } 29761: }; 29761: # 161 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_copy(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type 29761: _ValueType1; 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType2; 29761: 29761: 29761: 29761: 29761: const bool __can_memmove = __is_trivial(_ValueType1); 29761: 29761: 29761: 29761: 29761: using _From = decltype(*__first); 29761: 29761: const bool __assignable 29761: = __is_trivial(_ValueType2) && __is_assignable(_ValueType2&, _From) && std::__check_constructible<_ValueType2, _From>(); 29761: 29761: return std::__uninitialized_copy<__can_memmove && __assignable>:: 29761: __uninit_copy(__first, __last, __result); 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: __do_uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __cur != __last; ++__cur) 29761: std::_Construct(std::__addressof(*__cur), __x); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: struct __uninitialized_fill 29761: { 29761: template 29761: static void 29761: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x) 29761: { std::__do_uninit_fill(__first, __last, __x); } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_fill 29761: { 29761: template 29761: static void 29761: __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x) 29761: { std::fill(__first, __last, __x); } 29761: }; 29761: # 239 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline void 29761: uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: 29761: 29761: const bool __can_fill 29761: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>(); 29761: 29761: std::__uninitialized_fill<__can_fill>:: 29761: __uninit_fill(__first, __last, __x); 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __do_uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __n > 0; --__n, (void) ++__cur) 29761: std::_Construct(std::__addressof(*__cur), __x); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: struct __uninitialized_fill_n 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_fill_n(_ForwardIterator __first, _Size __n, 29761: const _Tp& __x) 29761: { return std::__do_uninit_fill_n(__first, __n, __x); } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_fill_n 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_fill_n(_ForwardIterator __first, _Size __n, 29761: const _Tp& __x) 29761: { return std::fill_n(__first, __n, __x); } 29761: }; 29761: # 310 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: 29761: 29761: const bool __can_fill 29761: = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>() 29761: 29761: 29761: 29761: && __is_integer<_Size>::__value; 29761: 29761: return __uninitialized_fill_n<__can_fill>:: 29761: __uninit_fill_n(__first, __n, __x); 29761: } 29761: # 340 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: 29761: _ForwardIterator 29761: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, _Allocator& __alloc) 29761: { 29761: _ForwardIterator __cur = __result; 29761: try 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29761: for (; __first != __last; ++__first, (void)++__cur) 29761: __traits::construct(__alloc, std::__addressof(*__cur), *__first); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __cur, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, allocator<_Tp>&) 29761: { 29761: 29761: 29761: 29761: 29761: return std::uninitialized_copy(__first, __last, __result); 29761: } 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_move_a(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, _Allocator& __alloc) 29761: { 29761: return std::__uninitialized_copy_a(std::make_move_iterator(__first), 29761: std::make_move_iterator(__last), 29761: __result, __alloc); 29761: } 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_move_if_noexcept_a(_InputIterator __first, 29761: _InputIterator __last, 29761: _ForwardIterator __result, 29761: _Allocator& __alloc) 29761: { 29761: return std::__uninitialized_copy_a 29761: (std::__make_move_if_noexcept_iterator(__first), 29761: std::__make_move_if_noexcept_iterator(__last), __result, __alloc); 29761: } 29761: 29761: template 29761: 29761: void 29761: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x, _Allocator& __alloc) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29761: for (; __cur != __last; ++__cur) 29761: __traits::construct(__alloc, std::__addressof(*__cur), __x); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline void 29761: __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __x, allocator<_Tp2>&) 29761: { 29761: 29761: 29761: 29761: 29761: std::uninitialized_fill(__first, __last, __x); 29761: } 29761: 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 29761: const _Tp& __x, _Allocator& __alloc) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29761: for (; __n > 0; --__n, (void) ++__cur) 29761: __traits::construct(__alloc, std::__addressof(*__cur), __x); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, 29761: const _Tp& __x, allocator<_Tp2>&) 29761: { 29761: 29761: 29761: 29761: 29761: return std::uninitialized_fill_n(__first, __n, __x); 29761: } 29761: # 485 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: __uninitialized_copy_move(_InputIterator1 __first1, 29761: _InputIterator1 __last1, 29761: _InputIterator2 __first2, 29761: _InputIterator2 __last2, 29761: _ForwardIterator __result, 29761: _Allocator& __alloc) 29761: { 29761: _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, 29761: __result, 29761: __alloc); 29761: try 29761: { 29761: return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __mid, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline _ForwardIterator 29761: __uninitialized_move_copy(_InputIterator1 __first1, 29761: _InputIterator1 __last1, 29761: _InputIterator2 __first2, 29761: _InputIterator2 __last2, 29761: _ForwardIterator __result, 29761: _Allocator& __alloc) 29761: { 29761: _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, 29761: __result, 29761: __alloc); 29761: try 29761: { 29761: return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __mid, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline _ForwardIterator 29761: __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, 29761: const _Tp& __x, _InputIterator __first, 29761: _InputIterator __last, _Allocator& __alloc) 29761: { 29761: std::__uninitialized_fill_a(__result, __mid, __x, __alloc); 29761: try 29761: { 29761: return std::__uninitialized_move_a(__first, __last, __mid, __alloc); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __mid, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, 29761: _ForwardIterator __first2, 29761: _ForwardIterator __last2, const _Tp& __x, 29761: _Allocator& __alloc) 29761: { 29761: _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, 29761: __first2, 29761: __alloc); 29761: try 29761: { 29761: std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first2, __mid2, __alloc); 29761: throw; 29761: } 29761: } 29761: # 592 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: struct __uninitialized_default_1 29761: { 29761: template 29761: static void 29761: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __cur != __last; ++__cur) 29761: std::_Construct(std::__addressof(*__cur)); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_default_1 29761: { 29761: template 29761: static void 29761: __uninit_default(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: if (__first == __last) 29761: return; 29761: 29761: typename iterator_traits<_ForwardIterator>::value_type* __val 29761: = std::__addressof(*__first); 29761: std::_Construct(__val); 29761: if (++__first != __last) 29761: std::fill(__first, __last, *__val); 29761: } 29761: }; 29761: 29761: template 29761: struct __uninitialized_default_n_1 29761: { 29761: template 29761: 29761: static _ForwardIterator 29761: __uninit_default_n(_ForwardIterator __first, _Size __n) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __n > 0; --__n, (void) ++__cur) 29761: std::_Construct(std::__addressof(*__cur)); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_default_n_1 29761: { 29761: template 29761: 29761: static _ForwardIterator 29761: __uninit_default_n(_ForwardIterator __first, _Size __n) 29761: { 29761: if (__n > 0) 29761: { 29761: typename iterator_traits<_ForwardIterator>::value_type* __val 29761: = std::__addressof(*__first); 29761: std::_Construct(__val); 29761: ++__first; 29761: __first = std::fill_n(__first, __n - 1, *__val); 29761: } 29761: return __first; 29761: } 29761: }; 29761: 29761: 29761: 29761: template 29761: inline void 29761: __uninitialized_default(_ForwardIterator __first, 29761: _ForwardIterator __last) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: const bool __assignable = is_copy_assignable<_ValueType>::value; 29761: 29761: std::__uninitialized_default_1<__is_trivial(_ValueType) 29761: && __assignable>:: 29761: __uninit_default(__first, __last); 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_default_n(_ForwardIterator __first, _Size __n) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: constexpr bool __can_fill 29761: = __and_, is_copy_assignable<_ValueType>>::value; 29761: 29761: return __uninitialized_default_n_1<__is_trivial(_ValueType) 29761: && __can_fill>:: 29761: __uninit_default_n(__first, __n); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __uninitialized_default_a(_ForwardIterator __first, 29761: _ForwardIterator __last, 29761: _Allocator& __alloc) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29761: for (; __cur != __last; ++__cur) 29761: __traits::construct(__alloc, std::__addressof(*__cur)); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: inline void 29761: __uninitialized_default_a(_ForwardIterator __first, 29761: _ForwardIterator __last, 29761: allocator<_Tp>&) 29761: { std::__uninitialized_default(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _ForwardIterator 29761: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 29761: _Allocator& __alloc) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; 29761: for (; __n > 0; --__n, (void) ++__cur) 29761: __traits::construct(__alloc, std::__addressof(*__cur)); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur, __alloc); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, 29761: allocator<_Tp>&) 29761: { return std::__uninitialized_default_n(__first, __n); } 29761: 29761: 29761: template 29761: struct __uninitialized_default_novalue_1 29761: { 29761: template 29761: static void 29761: __uninit_default_novalue(_ForwardIterator __first, 29761: _ForwardIterator __last) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __cur != __last; ++__cur) 29761: std::_Construct_novalue(std::__addressof(*__cur)); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_default_novalue_1 29761: { 29761: template 29761: static void 29761: __uninit_default_novalue(_ForwardIterator, _ForwardIterator) 29761: { 29761: } 29761: }; 29761: 29761: template 29761: struct __uninitialized_default_novalue_n_1 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 29761: { 29761: _ForwardIterator __cur = __first; 29761: try 29761: { 29761: for (; __n > 0; --__n, (void) ++__cur) 29761: std::_Construct_novalue(std::__addressof(*__cur)); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_default_novalue_n_1 29761: { 29761: template 29761: static _ForwardIterator 29761: __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) 29761: { return std::next(__first, __n); } 29761: }; 29761: 29761: 29761: 29761: template 29761: inline void 29761: __uninitialized_default_novalue(_ForwardIterator __first, 29761: _ForwardIterator __last) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: std::__uninitialized_default_novalue_1< 29761: is_trivially_default_constructible<_ValueType>::value>:: 29761: __uninit_default_novalue(__first, __last); 29761: } 29761: 29761: 29761: 29761: template 29761: inline _ForwardIterator 29761: __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: 29761: return __uninitialized_default_novalue_n_1< 29761: is_trivially_default_constructible<_ValueType>::value>:: 29761: __uninit_default_novalue_n(__first, __n); 29761: } 29761: 29761: template 29761: _ForwardIterator 29761: __uninitialized_copy_n(_InputIterator __first, _Size __n, 29761: _ForwardIterator __result, input_iterator_tag) 29761: { 29761: _ForwardIterator __cur = __result; 29761: try 29761: { 29761: for (; __n > 0; --__n, (void) ++__first, ++__cur) 29761: std::_Construct(std::__addressof(*__cur), *__first); 29761: return __cur; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: inline _ForwardIterator 29761: __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, 29761: _ForwardIterator __result, 29761: random_access_iterator_tag) 29761: { return std::uninitialized_copy(__first, __first + __n, __result); } 29761: 29761: template 29761: pair<_InputIterator, _ForwardIterator> 29761: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 29761: _ForwardIterator __result, input_iterator_tag) 29761: { 29761: _ForwardIterator __cur = __result; 29761: try 29761: { 29761: for (; __n > 0; --__n, (void) ++__first, ++__cur) 29761: std::_Construct(std::__addressof(*__cur), *__first); 29761: return {__first, __cur}; 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__result, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: inline pair<_RandomAccessIterator, _ForwardIterator> 29761: __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, 29761: _ForwardIterator __result, 29761: random_access_iterator_tag) 29761: { 29761: auto __second_res = uninitialized_copy(__first, __first + __n, __result); 29761: auto __first_res = std::next(__first, __n); 29761: return {__first_res, __second_res}; 29761: } 29761: # 946 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_copy_n(_InputIterator __first, _Size __n, 29761: _ForwardIterator __result) 29761: { return std::__uninitialized_copy_n(__first, __n, __result, 29761: std::__iterator_category(__first)); } 29761: 29761: 29761: template 29761: inline pair<_InputIterator, _ForwardIterator> 29761: __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, 29761: _ForwardIterator __result) 29761: { 29761: return 29761: std::__uninitialized_copy_n_pair(__first, __n, __result, 29761: std::__iterator_category(__first)); 29761: } 29761: # 973 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline void 29761: uninitialized_default_construct(_ForwardIterator __first, 29761: _ForwardIterator __last) 29761: { 29761: __uninitialized_default_novalue(__first, __last); 29761: } 29761: # 988 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_default_construct_n(_ForwardIterator __first, _Size __count) 29761: { 29761: return __uninitialized_default_novalue_n(__first, __count); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: uninitialized_value_construct(_ForwardIterator __first, 29761: _ForwardIterator __last) 29761: { 29761: return __uninitialized_default(__first, __last); 29761: } 29761: # 1016 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_value_construct_n(_ForwardIterator __first, _Size __count) 29761: { 29761: return __uninitialized_default_n(__first, __count); 29761: } 29761: # 1031 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline _ForwardIterator 29761: uninitialized_move(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result) 29761: { 29761: return std::uninitialized_copy 29761: (std::make_move_iterator(__first), 29761: std::make_move_iterator(__last), __result); 29761: } 29761: # 1049 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: template 29761: inline pair<_InputIterator, _ForwardIterator> 29761: uninitialized_move_n(_InputIterator __first, _Size __count, 29761: _ForwardIterator __result) 29761: { 29761: auto __res = std::__uninitialized_copy_n_pair 29761: (std::make_move_iterator(__first), 29761: __count, __result); 29761: return {__res.first.base(), __res.second}; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline void 29761: __relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig, 29761: _Allocator& __alloc) 29761: noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, 29761: __dest, std::move(*__orig))) 29761: && noexcept(std::allocator_traits<_Allocator>::destroy( 29761: __alloc, std::__addressof(*__orig)))) 29761: { 29761: typedef std::allocator_traits<_Allocator> __traits; 29761: __traits::construct(__alloc, __dest, std::move(*__orig)); 29761: __traits::destroy(__alloc, std::__addressof(*__orig)); 29761: } 29761: 29761: 29761: 29761: template 29761: struct __is_bitwise_relocatable 29761: : is_trivial<_Tp> { }; 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __relocate_a_1(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, _Allocator& __alloc) 29761: noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), 29761: std::addressof(*__first), 29761: __alloc))) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType2; 29761: static_assert(std::is_same<_ValueType, _ValueType2>::value, 29761: "relocation is only possible for values of the same type"); 29761: _ForwardIterator __cur = __result; 29761: for (; __first != __last; ++__first, (void)++__cur) 29761: std::__relocate_object_a(std::__addressof(*__cur), 29761: std::__addressof(*__first), __alloc); 29761: return __cur; 29761: } 29761: 29761: 29761: template 29761: 29761: inline __enable_if_t::value, _Tp*> 29761: __relocate_a_1(_Tp* __first, _Tp* __last, 29761: _Tp* __result, 29761: [[__maybe_unused__]] allocator<_Up>& __alloc) noexcept 29761: { 29761: ptrdiff_t __count = __last - __first; 29761: if (__count > 0) 29761: { 29761: # 1129 "/usr/include/c++/14/bits/stl_uninitialized.h" 3 29761: __builtin_memcpy(__result, __first, __count * sizeof(_Tp)); 29761: } 29761: return __result + __count; 29761: } 29761: 29761: 29761: template 29761: 29761: inline _ForwardIterator 29761: __relocate_a(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, _Allocator& __alloc) 29761: noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), 29761: std::__niter_base(__last), 29761: std::__niter_base(__result), __alloc))) 29761: { 29761: return std::__relocate_a_1(std::__niter_base(__first), 29761: std::__niter_base(__last), 29761: std::__niter_base(__result), __alloc); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_deque.h" 1 3 29761: # 63 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: # 1 "/usr/include/c++/14/initializer_list" 1 3 29761: # 33 "/usr/include/c++/14/initializer_list" 3 29761: 29761: # 34 "/usr/include/c++/14/initializer_list" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: template 29761: class initializer_list 29761: { 29761: public: 29761: typedef _E value_type; 29761: typedef const _E& reference; 29761: typedef const _E& const_reference; 29761: typedef size_t size_type; 29761: typedef const _E* iterator; 29761: typedef const _E* const_iterator; 29761: 29761: private: 29761: iterator _M_array; 29761: size_type _M_len; 29761: 29761: 29761: constexpr initializer_list(const_iterator __a, size_type __l) 29761: : _M_array(__a), _M_len(__l) { } 29761: 29761: public: 29761: constexpr initializer_list() noexcept 29761: : _M_array(0), _M_len(0) { } 29761: 29761: 29761: constexpr size_type 29761: size() const noexcept { return _M_len; } 29761: 29761: 29761: constexpr const_iterator 29761: begin() const noexcept { return _M_array; } 29761: 29761: 29761: constexpr const_iterator 29761: end() const noexcept { return begin() + size(); } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr const _Tp* 29761: begin(initializer_list<_Tp> __ils) noexcept 29761: { return __ils.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr const _Tp* 29761: end(initializer_list<_Tp> __ils) noexcept 29761: { return __ils.end(); } 29761: } 29761: # 64 "/usr/include/c++/14/bits/stl_deque.h" 2 3 29761: # 72 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: # 95 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: constexpr inline size_t 29761: __deque_buf_size(size_t __size) 29761: { return (__size < 512 29761: ? size_t(512 / __size) : size_t(1)); } 29761: # 112 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: struct _Deque_iterator 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: private: 29761: template 29761: using __iter = _Deque_iterator<_Tp, _CvTp&, __ptr_rebind<_Ptr, _CvTp>>; 29761: public: 29761: typedef __iter<_Tp> iterator; 29761: typedef __iter const_iterator; 29761: typedef __ptr_rebind<_Ptr, _Tp> _Elt_pointer; 29761: typedef __ptr_rebind<_Ptr, _Elt_pointer> _Map_pointer; 29761: 29761: 29761: static size_t _S_buffer_size() noexcept 29761: { return __deque_buf_size(sizeof(_Tp)); } 29761: 29761: typedef std::random_access_iterator_tag iterator_category; 29761: typedef _Tp value_type; 29761: typedef _Ptr pointer; 29761: typedef _Ref reference; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Deque_iterator _Self; 29761: 29761: _Elt_pointer _M_cur; 29761: _Elt_pointer _M_first; 29761: _Elt_pointer _M_last; 29761: _Map_pointer _M_node; 29761: 29761: _Deque_iterator(_Elt_pointer __x, _Map_pointer __y) noexcept 29761: : _M_cur(__x), _M_first(*__y), 29761: _M_last(*__y + _S_buffer_size()), _M_node(__y) { } 29761: 29761: _Deque_iterator() noexcept 29761: : _M_cur(), _M_first(), _M_last(), _M_node() { } 29761: # 161 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template, 29761: is_same<_Iter, iterator>>> 29761: _Deque_iterator(const _Iter& __x) noexcept 29761: : _M_cur(__x._M_cur), _M_first(__x._M_first), 29761: _M_last(__x._M_last), _M_node(__x._M_node) { } 29761: 29761: _Deque_iterator(const _Deque_iterator& __x) noexcept 29761: : _M_cur(__x._M_cur), _M_first(__x._M_first), 29761: _M_last(__x._M_last), _M_node(__x._M_node) { } 29761: 29761: _Deque_iterator& operator=(const _Deque_iterator&) = default; 29761: 29761: 29761: iterator 29761: _M_const_cast() const noexcept 29761: { return iterator(_M_cur, _M_node); } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator*() const noexcept 29761: { return *_M_cur; } 29761: 29761: [[__nodiscard__]] 29761: pointer 29761: operator->() const noexcept 29761: { return _M_cur; } 29761: 29761: _Self& 29761: operator++() noexcept 29761: { 29761: ++_M_cur; 29761: if (_M_cur == _M_last) 29761: { 29761: _M_set_node(_M_node + 1); 29761: _M_cur = _M_first; 29761: } 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator++(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: ++*this; 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator--() noexcept 29761: { 29761: if (_M_cur == _M_first) 29761: { 29761: _M_set_node(_M_node - 1); 29761: _M_cur = _M_last; 29761: } 29761: --_M_cur; 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator--(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: --*this; 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator+=(difference_type __n) noexcept 29761: { 29761: const difference_type __offset = __n + (_M_cur - _M_first); 29761: if (__offset >= 0 && __offset < difference_type(_S_buffer_size())) 29761: _M_cur += __n; 29761: else 29761: { 29761: const difference_type __node_offset = 29761: __offset > 0 ? __offset / difference_type(_S_buffer_size()) 29761: : -difference_type((-__offset - 1) 29761: / _S_buffer_size()) - 1; 29761: _M_set_node(_M_node + __node_offset); 29761: _M_cur = _M_first + (__offset - __node_offset 29761: * difference_type(_S_buffer_size())); 29761: } 29761: return *this; 29761: } 29761: 29761: _Self& 29761: operator-=(difference_type __n) noexcept 29761: { return *this += -__n; } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator[](difference_type __n) const noexcept 29761: { return *(*this + __n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: _M_set_node(_Map_pointer __new_node) noexcept 29761: { 29761: _M_node = __new_node; 29761: _M_first = *__new_node; 29761: _M_last = _M_first + difference_type(_S_buffer_size()); 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_cur == __y._M_cur; } 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { return __x._M_cur == __y._M_cur; } 29761: # 296 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const _Self& __x, const _Self& __y) noexcept 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { return !(__x == __y); } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<(const _Self& __x, const _Self& __y) noexcept 29761: { 29761: return (__x._M_node == __y._M_node) 29761: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { 29761: return (__x._M_node == __y._M_node) 29761: ? (__x._M_cur < __y._M_cur) : (__x._M_node < __y._M_node); 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>(const _Self& __x, const _Self& __y) noexcept 29761: { return __y < __x; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { return __y < __x; } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<=(const _Self& __x, const _Self& __y) noexcept 29761: { return !(__y < __x); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<=(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { return !(__y < __x); } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>=(const _Self& __x, const _Self& __y) noexcept 29761: { return !(__x < __y); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>=(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { return !(__x < __y); } 29761: 29761: 29761: [[__nodiscard__]] 29761: friend difference_type 29761: operator-(const _Self& __x, const _Self& __y) noexcept 29761: { 29761: return difference_type(_S_buffer_size()) 29761: * (__x._M_node - __y._M_node - bool(__x._M_node)) 29761: + (__x._M_cur - __x._M_first) 29761: + (__y._M_last - __y._M_cur); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: friend difference_type 29761: operator-(const _Self& __x, 29761: const _Deque_iterator<_Tp, _RefR, _PtrR>& __y) 29761: noexcept 29761: { 29761: return difference_type(_S_buffer_size()) 29761: * (__x._M_node - __y._M_node - bool(__x._M_node)) 29761: + (__x._M_cur - __x._M_first) 29761: + (__y._M_last - __y._M_cur); 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend _Self 29761: operator+(const _Self& __x, difference_type __n) noexcept 29761: { 29761: _Self __tmp = __x; 29761: __tmp += __n; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend _Self 29761: operator-(const _Self& __x, difference_type __n) noexcept 29761: { 29761: _Self __tmp = __x; 29761: __tmp -= __n; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend _Self 29761: operator+(difference_type __n, const _Self& __x) noexcept 29761: { return __x + __n; } 29761: }; 29761: # 429 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: class _Deque_base 29761: { 29761: protected: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Tp>::other _Tp_alloc_type; 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 29761: 29761: 29761: 29761: 29761: 29761: typedef typename _Alloc_traits::pointer _Ptr; 29761: typedef typename _Alloc_traits::const_pointer _Ptr_const; 29761: 29761: 29761: typedef typename _Alloc_traits::template rebind<_Ptr>::other 29761: _Map_alloc_type; 29761: typedef __gnu_cxx::__alloc_traits<_Map_alloc_type> _Map_alloc_traits; 29761: 29761: typedef _Alloc allocator_type; 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_get_Tp_allocator()); } 29761: 29761: typedef _Deque_iterator<_Tp, _Tp&, _Ptr> iterator; 29761: typedef _Deque_iterator<_Tp, const _Tp&, _Ptr_const> const_iterator; 29761: 29761: _Deque_base() 29761: : _M_impl() 29761: { _M_initialize_map(0); } 29761: 29761: _Deque_base(size_t __num_elements) 29761: : _M_impl() 29761: { _M_initialize_map(__num_elements); } 29761: 29761: _Deque_base(const allocator_type& __a, size_t __num_elements) 29761: : _M_impl(__a) 29761: { _M_initialize_map(__num_elements); } 29761: 29761: _Deque_base(const allocator_type& __a) 29761: : _M_impl(__a) 29761: { } 29761: 29761: 29761: _Deque_base(_Deque_base&& __x) 29761: : _M_impl(std::move(__x._M_get_Tp_allocator())) 29761: { 29761: _M_initialize_map(0); 29761: if (__x._M_impl._M_map) 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: } 29761: 29761: _Deque_base(_Deque_base&& __x, const allocator_type& __a) 29761: : _M_impl(std::move(__x._M_impl), _Tp_alloc_type(__a)) 29761: { __x._M_initialize_map(0); } 29761: 29761: _Deque_base(_Deque_base&& __x, const allocator_type& __a, size_t __n) 29761: : _M_impl(__a) 29761: { 29761: if (__x.get_allocator() == __a) 29761: { 29761: if (__x._M_impl._M_map) 29761: { 29761: _M_initialize_map(0); 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: } 29761: } 29761: else 29761: { 29761: _M_initialize_map(__n); 29761: } 29761: } 29761: 29761: 29761: ~_Deque_base() noexcept; 29761: 29761: typedef typename iterator::_Map_pointer _Map_pointer; 29761: 29761: struct _Deque_impl_data 29761: { 29761: _Map_pointer _M_map; 29761: size_t _M_map_size; 29761: iterator _M_start; 29761: iterator _M_finish; 29761: 29761: _Deque_impl_data() noexcept 29761: : _M_map(), _M_map_size(), _M_start(), _M_finish() 29761: { } 29761: 29761: 29761: _Deque_impl_data(const _Deque_impl_data&) = default; 29761: _Deque_impl_data& 29761: operator=(const _Deque_impl_data&) = default; 29761: 29761: _Deque_impl_data(_Deque_impl_data&& __x) noexcept 29761: : _Deque_impl_data(__x) 29761: { __x = _Deque_impl_data(); } 29761: 29761: 29761: void 29761: _M_swap_data(_Deque_impl_data& __x) noexcept 29761: { 29761: 29761: 29761: std::swap(*this, __x); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: struct _Deque_impl 29761: : public _Tp_alloc_type, public _Deque_impl_data 29761: { 29761: _Deque_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 29761: 29761: : _Tp_alloc_type() 29761: { } 29761: 29761: _Deque_impl(const _Tp_alloc_type& __a) noexcept 29761: : _Tp_alloc_type(__a) 29761: { } 29761: 29761: 29761: _Deque_impl(_Deque_impl&&) = default; 29761: 29761: _Deque_impl(_Tp_alloc_type&& __a) noexcept 29761: : _Tp_alloc_type(std::move(__a)) 29761: { } 29761: 29761: _Deque_impl(_Deque_impl&& __d, _Tp_alloc_type&& __a) 29761: : _Tp_alloc_type(std::move(__a)), _Deque_impl_data(std::move(__d)) 29761: { } 29761: 29761: }; 29761: 29761: _Tp_alloc_type& 29761: _M_get_Tp_allocator() noexcept 29761: { return this->_M_impl; } 29761: 29761: const _Tp_alloc_type& 29761: _M_get_Tp_allocator() const noexcept 29761: { return this->_M_impl; } 29761: 29761: _Map_alloc_type 29761: _M_get_map_allocator() const noexcept 29761: { return _Map_alloc_type(_M_get_Tp_allocator()); } 29761: 29761: _Ptr 29761: _M_allocate_node() 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 29761: return _Traits::allocate(_M_impl, __deque_buf_size(sizeof(_Tp))); 29761: } 29761: 29761: void 29761: _M_deallocate_node(_Ptr __p) noexcept 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Traits; 29761: _Traits::deallocate(_M_impl, __p, __deque_buf_size(sizeof(_Tp))); 29761: } 29761: 29761: _Map_pointer 29761: _M_allocate_map(size_t __n) 29761: { 29761: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 29761: return _Map_alloc_traits::allocate(__map_alloc, __n); 29761: } 29761: 29761: void 29761: _M_deallocate_map(_Map_pointer __p, size_t __n) noexcept 29761: { 29761: _Map_alloc_type __map_alloc = _M_get_map_allocator(); 29761: _Map_alloc_traits::deallocate(__map_alloc, __p, __n); 29761: } 29761: 29761: void _M_initialize_map(size_t); 29761: void _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish); 29761: void _M_destroy_nodes(_Map_pointer __nstart, 29761: _Map_pointer __nfinish) noexcept; 29761: enum { _S_initial_map_size = 8 }; 29761: 29761: _Deque_impl _M_impl; 29761: }; 29761: 29761: template 29761: _Deque_base<_Tp, _Alloc>:: 29761: ~_Deque_base() noexcept 29761: { 29761: if (this->_M_impl._M_map) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_start._M_node, 29761: this->_M_impl._M_finish._M_node + 1); 29761: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29761: } 29761: } 29761: # 636 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: void 29761: _Deque_base<_Tp, _Alloc>:: 29761: _M_initialize_map(size_t __num_elements) 29761: { 29761: const size_t __num_nodes = (__num_elements / __deque_buf_size(sizeof(_Tp)) 29761: + 1); 29761: 29761: this->_M_impl._M_map_size = std::max((size_t) _S_initial_map_size, 29761: size_t(__num_nodes + 2)); 29761: this->_M_impl._M_map = _M_allocate_map(this->_M_impl._M_map_size); 29761: 29761: 29761: 29761: 29761: 29761: 29761: _Map_pointer __nstart = (this->_M_impl._M_map 29761: + (this->_M_impl._M_map_size - __num_nodes) / 2); 29761: _Map_pointer __nfinish = __nstart + __num_nodes; 29761: 29761: try 29761: { _M_create_nodes(__nstart, __nfinish); } 29761: catch(...) 29761: { 29761: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29761: this->_M_impl._M_map = _Map_pointer(); 29761: this->_M_impl._M_map_size = 0; 29761: throw; 29761: } 29761: 29761: this->_M_impl._M_start._M_set_node(__nstart); 29761: this->_M_impl._M_finish._M_set_node(__nfinish - 1); 29761: this->_M_impl._M_start._M_cur = _M_impl._M_start._M_first; 29761: this->_M_impl._M_finish._M_cur = (this->_M_impl._M_finish._M_first 29761: + __num_elements 29761: % __deque_buf_size(sizeof(_Tp))); 29761: } 29761: 29761: template 29761: void 29761: _Deque_base<_Tp, _Alloc>:: 29761: _M_create_nodes(_Map_pointer __nstart, _Map_pointer __nfinish) 29761: { 29761: _Map_pointer __cur; 29761: try 29761: { 29761: for (__cur = __nstart; __cur < __nfinish; ++__cur) 29761: *__cur = this->_M_allocate_node(); 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(__nstart, __cur); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: _Deque_base<_Tp, _Alloc>:: 29761: _M_destroy_nodes(_Map_pointer __nstart, 29761: _Map_pointer __nfinish) noexcept 29761: { 29761: for (_Map_pointer __n = __nstart; __n < __nfinish; ++__n) 29761: _M_deallocate_node(*__n); 29761: } 29761: # 787 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template > 29761: class deque : protected _Deque_base<_Tp, _Alloc> 29761: { 29761: # 800 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: static_assert(is_same::type, _Tp>::value, 29761: "std::deque must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _Deque_base<_Tp, _Alloc> _Base; 29761: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29761: typedef typename _Base::_Alloc_traits _Alloc_traits; 29761: typedef typename _Base::_Map_pointer _Map_pointer; 29761: 29761: public: 29761: typedef _Tp value_type; 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: typedef typename _Base::iterator iterator; 29761: typedef typename _Base::const_iterator const_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Alloc allocator_type; 29761: 29761: private: 29761: static size_t _S_buffer_size() noexcept 29761: { return __deque_buf_size(sizeof(_Tp)); } 29761: 29761: 29761: using _Base::_M_initialize_map; 29761: using _Base::_M_create_nodes; 29761: using _Base::_M_destroy_nodes; 29761: using _Base::_M_allocate_node; 29761: using _Base::_M_deallocate_node; 29761: using _Base::_M_allocate_map; 29761: using _Base::_M_deallocate_map; 29761: using _Base::_M_get_Tp_allocator; 29761: 29761: 29761: 29761: 29761: 29761: using _Base::_M_impl; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: deque() = default; 29761: # 864 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: explicit 29761: deque(const allocator_type& __a) 29761: : _Base(__a, 0) { } 29761: # 877 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: explicit 29761: deque(size_type __n, const allocator_type& __a = allocator_type()) 29761: : _Base(__a, _S_check_init_len(__n, __a)) 29761: { _M_default_initialize(); } 29761: # 890 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque(size_type __n, const value_type& __value, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a, _S_check_init_len(__n, __a)) 29761: { _M_fill_initialize(__value); } 29761: # 917 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque(const deque& __x) 29761: : _Base(_Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator()), 29761: __x.size()) 29761: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); } 29761: # 933 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque(deque&&) = default; 29761: 29761: 29761: deque(const deque& __x, const __type_identity_t& __a) 29761: : _Base(__a, __x.size()) 29761: { std::__uninitialized_copy_a(__x.begin(), __x.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); } 29761: 29761: 29761: deque(deque&& __x, const __type_identity_t& __a) 29761: : deque(std::move(__x), __a, typename _Alloc_traits::is_always_equal{}) 29761: { } 29761: 29761: private: 29761: deque(deque&& __x, const allocator_type& __a, true_type) 29761: : _Base(std::move(__x), __a) 29761: { } 29761: 29761: deque(deque&& __x, const allocator_type& __a, false_type) 29761: : _Base(std::move(__x), __a, __x.size()) 29761: { 29761: if (__x.get_allocator() != __a && !__x.empty()) 29761: { 29761: std::__uninitialized_move_a(__x.begin(), __x.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); 29761: __x.clear(); 29761: } 29761: } 29761: 29761: public: 29761: # 976 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque(initializer_list __l, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_range_initialize(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: } 29761: # 1001 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template> 29761: deque(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_range_initialize(__first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: # 1027 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: ~deque() 29761: { _M_destroy_data(begin(), end(), _M_get_Tp_allocator()); } 29761: # 1039 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque& 29761: operator=(const deque& __x); 29761: # 1051 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque& 29761: operator=(deque&& __x) noexcept(_Alloc_traits::_S_always_equal()) 29761: { 29761: using __always_equal = typename _Alloc_traits::is_always_equal; 29761: _M_move_assign1(std::move(__x), __always_equal{}); 29761: return *this; 29761: } 29761: # 1070 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: deque& 29761: operator=(initializer_list __l) 29761: { 29761: _M_assign_aux(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: return *this; 29761: } 29761: # 1089 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: assign(size_type __n, const value_type& __val) 29761: { _M_fill_assign(__n, __val); } 29761: # 1106 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template> 29761: void 29761: assign(_InputIterator __first, _InputIterator __last) 29761: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29761: # 1133 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: assign(initializer_list __l) 29761: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _Base::get_allocator(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: begin() noexcept 29761: { return this->_M_impl._M_start; } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: begin() const noexcept 29761: { return this->_M_impl._M_start; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: end() noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: end() const noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cbegin() const noexcept 29761: { return this->_M_impl._M_start; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cend() const noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: size() const noexcept 29761: { return this->_M_impl._M_finish - this->_M_impl._M_start; } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: max_size() const noexcept 29761: { return _S_max_size(_M_get_Tp_allocator()); } 29761: # 1287 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: resize(size_type __new_size) 29761: { 29761: const size_type __len = size(); 29761: if (__new_size > __len) 29761: _M_default_append(__new_size - __len); 29761: else if (__new_size < __len) 29761: _M_erase_at_end(this->_M_impl._M_start 29761: + difference_type(__new_size)); 29761: } 29761: # 1309 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: resize(size_type __new_size, const value_type& __x) 29761: # 1326 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: { 29761: const size_type __len = size(); 29761: if (__new_size > __len) 29761: _M_fill_insert(this->_M_impl._M_finish, __new_size - __len, __x); 29761: else if (__new_size < __len) 29761: _M_erase_at_end(this->_M_impl._M_start 29761: + difference_type(__new_size)); 29761: } 29761: 29761: 29761: 29761: void 29761: shrink_to_fit() noexcept 29761: { _M_shrink_to_fit(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return this->_M_impl._M_finish == this->_M_impl._M_start; } 29761: # 1362 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: operator[](size_type __n) noexcept 29761: { 29761: ; 29761: return this->_M_impl._M_start[difference_type(__n)]; 29761: } 29761: # 1381 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: [[__nodiscard__]] 29761: const_reference 29761: operator[](size_type __n) const noexcept 29761: { 29761: ; 29761: return this->_M_impl._M_start[difference_type(__n)]; 29761: } 29761: 29761: protected: 29761: 29761: void 29761: _M_range_check(size_type __n) const 29761: { 29761: if (__n >= this->size()) 29761: __throw_out_of_range_fmt(("deque::_M_range_check: __n " "(which is %zu)>= this->size() " "(which is %zu)") 29761: 29761: , 29761: __n, this->size()); 29761: } 29761: 29761: public: 29761: # 1413 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: reference 29761: at(size_type __n) 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: # 1431 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: const_reference 29761: at(size_type __n) const 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: front() noexcept 29761: { 29761: ; 29761: return *begin(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: front() const noexcept 29761: { 29761: ; 29761: return *begin(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: back() noexcept 29761: { 29761: ; 29761: iterator __tmp = end(); 29761: --__tmp; 29761: return *__tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: back() const noexcept 29761: { 29761: ; 29761: const_iterator __tmp = end(); 29761: --__tmp; 29761: return *__tmp; 29761: } 29761: # 1500 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: push_front(const value_type& __x) 29761: { 29761: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 29761: { 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_start._M_cur - 1, 29761: __x); 29761: --this->_M_impl._M_start._M_cur; 29761: } 29761: else 29761: _M_push_front_aux(__x); 29761: } 29761: 29761: 29761: void 29761: push_front(value_type&& __x) 29761: { emplace_front(std::move(__x)); } 29761: 29761: template 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_front(_Args&&... __args); 29761: # 1537 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: push_back(const value_type& __x) 29761: { 29761: if (this->_M_impl._M_finish._M_cur 29761: != this->_M_impl._M_finish._M_last - 1) 29761: { 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_finish._M_cur, __x); 29761: ++this->_M_impl._M_finish._M_cur; 29761: } 29761: else 29761: _M_push_back_aux(__x); 29761: } 29761: 29761: 29761: void 29761: push_back(value_type&& __x) 29761: { emplace_back(std::move(__x)); } 29761: 29761: template 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_back(_Args&&... __args); 29761: # 1573 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: pop_front() noexcept 29761: { 29761: ; 29761: if (this->_M_impl._M_start._M_cur 29761: != this->_M_impl._M_start._M_last - 1) 29761: { 29761: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29761: this->_M_impl._M_start._M_cur); 29761: ++this->_M_impl._M_start._M_cur; 29761: } 29761: else 29761: _M_pop_front_aux(); 29761: } 29761: # 1596 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: pop_back() noexcept 29761: { 29761: ; 29761: if (this->_M_impl._M_finish._M_cur 29761: != this->_M_impl._M_finish._M_first) 29761: { 29761: --this->_M_impl._M_finish._M_cur; 29761: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29761: this->_M_impl._M_finish._M_cur); 29761: } 29761: else 29761: _M_pop_back_aux(); 29761: } 29761: # 1621 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: iterator 29761: emplace(const_iterator __position, _Args&&... __args); 29761: # 1634 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: insert(const_iterator __position, const value_type& __x); 29761: # 1660 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return emplace(__position, std::move(__x)); } 29761: # 1674 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: insert(const_iterator __p, initializer_list __l) 29761: { 29761: auto __offset = __p - cbegin(); 29761: _M_range_insert_aux(__p._M_const_cast(), __l.begin(), __l.end(), 29761: std::random_access_iterator_tag()); 29761: return begin() + __offset; 29761: } 29761: # 1693 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: insert(const_iterator __position, size_type __n, const value_type& __x) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_fill_insert(__position._M_const_cast(), __n, __x); 29761: return begin() + __offset; 29761: } 29761: # 1727 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template> 29761: iterator 29761: insert(const_iterator __position, _InputIterator __first, 29761: _InputIterator __last) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_range_insert_aux(__position._M_const_cast(), __first, __last, 29761: std::__iterator_category(__first)); 29761: return begin() + __offset; 29761: } 29761: # 1773 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: 29761: erase(const_iterator __position) 29761: 29761: 29761: 29761: { return _M_erase(__position._M_const_cast()); } 29761: # 1797 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: iterator 29761: 29761: erase(const_iterator __first, const_iterator __last) 29761: 29761: 29761: 29761: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 29761: # 1816 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: swap(deque& __x) noexcept 29761: { 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) std::__glibcxx_assert_fail(); } while (false) 29761: ; 29761: 29761: _M_impl._M_swap_data(__x._M_impl); 29761: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 29761: __x._M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_erase_at_end(begin()); } 29761: 29761: protected: 29761: # 1866 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: static size_t 29761: _S_check_init_len(size_t __n, const allocator_type& __a) 29761: { 29761: if (__n > _S_max_size(__a)) 29761: __throw_length_error( 29761: ("cannot create std::deque larger than max_size()")); 29761: return __n; 29761: } 29761: 29761: static size_type 29761: _S_max_size(const _Tp_alloc_type& __a) noexcept 29761: { 29761: const size_t __diffmax = __gnu_cxx::__numeric_traits::__max; 29761: const size_t __allocmax = _Alloc_traits::max_size(__a); 29761: return (std::min)(__diffmax, __allocmax); 29761: } 29761: # 1895 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: void 29761: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag); 29761: 29761: 29761: template 29761: void 29761: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag); 29761: # 1917 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: _M_fill_initialize(const value_type& __value); 29761: 29761: 29761: 29761: void 29761: _M_default_initialize(); 29761: # 1948 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: void 29761: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag); 29761: 29761: 29761: template 29761: void 29761: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __len = std::distance(__first, __last); 29761: if (__len > size()) 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, size()); 29761: std::copy(__first, __mid, begin()); 29761: _M_range_insert_aux(end(), __mid, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: else 29761: _M_erase_at_end(std::copy(__first, __last, begin())); 29761: } 29761: 29761: 29761: 29761: void 29761: _M_fill_assign(size_type __n, const value_type& __val) 29761: { 29761: if (__n > size()) 29761: { 29761: std::fill(begin(), end(), __val); 29761: _M_fill_insert(end(), __n - size(), __val); 29761: } 29761: else 29761: { 29761: _M_erase_at_end(begin() + difference_type(__n)); 29761: std::fill(begin(), end(), __val); 29761: } 29761: } 29761: # 1996 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: void _M_push_back_aux(_Args&&... __args); 29761: 29761: template 29761: void _M_push_front_aux(_Args&&... __args); 29761: 29761: 29761: void _M_pop_back_aux(); 29761: 29761: void _M_pop_front_aux(); 29761: # 2035 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: void 29761: _M_range_insert_aux(iterator __pos, _InputIterator __first, 29761: _InputIterator __last, std::input_iterator_tag); 29761: 29761: 29761: template 29761: void 29761: _M_range_insert_aux(iterator __pos, _ForwardIterator __first, 29761: _ForwardIterator __last, std::forward_iterator_tag); 29761: 29761: 29761: 29761: 29761: void 29761: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: _M_insert_aux(iterator __pos, const value_type& __x) 29761: { return _M_emplace_aux(__pos, __x); } 29761: 29761: template 29761: iterator 29761: _M_emplace_aux(iterator __pos, _Args&&... __args); 29761: 29761: 29761: 29761: void 29761: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x); 29761: 29761: 29761: template 29761: void 29761: _M_insert_aux(iterator __pos, 29761: _ForwardIterator __first, _ForwardIterator __last, 29761: size_type __n); 29761: 29761: 29761: 29761: 29761: void 29761: _M_destroy_data_aux(iterator __first, iterator __last); 29761: 29761: 29761: 29761: template 29761: void 29761: _M_destroy_data(iterator __first, iterator __last, const _Alloc1&) 29761: { _M_destroy_data_aux(__first, __last); } 29761: 29761: void 29761: _M_destroy_data(iterator __first, iterator __last, 29761: const std::allocator<_Tp>&) 29761: { 29761: if (!__has_trivial_destructor(value_type)) 29761: _M_destroy_data_aux(__first, __last); 29761: } 29761: 29761: 29761: void 29761: _M_erase_at_begin(iterator __pos) 29761: { 29761: _M_destroy_data(begin(), __pos, _M_get_Tp_allocator()); 29761: _M_destroy_nodes(this->_M_impl._M_start._M_node, __pos._M_node); 29761: this->_M_impl._M_start = __pos; 29761: } 29761: 29761: 29761: 29761: void 29761: _M_erase_at_end(iterator __pos) 29761: { 29761: _M_destroy_data(__pos, end(), _M_get_Tp_allocator()); 29761: _M_destroy_nodes(__pos._M_node + 1, 29761: this->_M_impl._M_finish._M_node + 1); 29761: this->_M_impl._M_finish = __pos; 29761: } 29761: 29761: iterator 29761: _M_erase(iterator __pos); 29761: 29761: iterator 29761: _M_erase(iterator __first, iterator __last); 29761: 29761: 29761: 29761: void 29761: _M_default_append(size_type __n); 29761: 29761: bool 29761: _M_shrink_to_fit(); 29761: 29761: 29761: 29761: 29761: iterator 29761: _M_reserve_elements_at_front(size_type __n) 29761: { 29761: const size_type __vacancies = this->_M_impl._M_start._M_cur 29761: - this->_M_impl._M_start._M_first; 29761: if (__n > __vacancies) 29761: _M_new_elements_at_front(__n - __vacancies); 29761: return this->_M_impl._M_start - difference_type(__n); 29761: } 29761: 29761: iterator 29761: _M_reserve_elements_at_back(size_type __n) 29761: { 29761: const size_type __vacancies = (this->_M_impl._M_finish._M_last 29761: - this->_M_impl._M_finish._M_cur) - 1; 29761: if (__n > __vacancies) 29761: _M_new_elements_at_back(__n - __vacancies); 29761: return this->_M_impl._M_finish + difference_type(__n); 29761: } 29761: 29761: void 29761: _M_new_elements_at_front(size_type __new_elements); 29761: 29761: void 29761: _M_new_elements_at_back(size_type __new_elements); 29761: # 2171 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: void 29761: _M_reserve_map_at_back(size_type __nodes_to_add = 1) 29761: { 29761: if (__nodes_to_add + 1 > this->_M_impl._M_map_size 29761: - (this->_M_impl._M_finish._M_node - this->_M_impl._M_map)) 29761: _M_reallocate_map(__nodes_to_add, false); 29761: } 29761: 29761: void 29761: _M_reserve_map_at_front(size_type __nodes_to_add = 1) 29761: { 29761: if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node 29761: - this->_M_impl._M_map)) 29761: _M_reallocate_map(__nodes_to_add, true); 29761: } 29761: 29761: void 29761: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front); 29761: 29761: 29761: 29761: 29761: 29761: void 29761: _M_move_assign1(deque&& __x, true_type) noexcept 29761: { 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: __x.clear(); 29761: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: _M_move_assign1(deque&& __x, false_type) 29761: { 29761: if (_M_get_Tp_allocator() == __x._M_get_Tp_allocator()) 29761: return _M_move_assign1(std::move(__x), true_type()); 29761: 29761: constexpr bool __move_storage = 29761: _Alloc_traits::_S_propagate_on_move_assign(); 29761: _M_move_assign2(std::move(__x), __bool_constant<__move_storage>()); 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: _M_replace_map(_Args&&... __args) 29761: { 29761: 29761: deque __newobj(std::forward<_Args>(__args)...); 29761: 29761: clear(); 29761: _M_deallocate_node(*begin()._M_node); 29761: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29761: this->_M_impl._M_map = nullptr; 29761: this->_M_impl._M_map_size = 0; 29761: 29761: this->_M_impl._M_swap_data(__newobj._M_impl); 29761: } 29761: 29761: 29761: void 29761: _M_move_assign2(deque&& __x, true_type) 29761: { 29761: 29761: auto __alloc = __x._M_get_Tp_allocator(); 29761: 29761: 29761: _M_replace_map(std::move(__x)); 29761: 29761: _M_get_Tp_allocator() = std::move(__alloc); 29761: } 29761: 29761: 29761: 29761: void 29761: _M_move_assign2(deque&& __x, false_type) 29761: { 29761: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 29761: { 29761: 29761: 29761: _M_replace_map(std::move(__x), __x.get_allocator()); 29761: } 29761: else 29761: { 29761: 29761: 29761: _M_assign_aux(std::make_move_iterator(__x.begin()), 29761: std::make_move_iterator(__x.end()), 29761: std::random_access_iterator_tag()); 29761: __x.clear(); 29761: } 29761: } 29761: 29761: }; 29761: 29761: 29761: template::value_type, 29761: typename _Allocator = allocator<_ValT>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireAllocator<_Allocator>> 29761: deque(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29761: -> deque<_ValT, _Allocator>; 29761: # 2291 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return __x.size() == __y.size() 29761: && std::equal(__x.begin(), __x.end(), __y.begin()); } 29761: # 2331 "/usr/include/c++/14/bits/stl_deque.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return std::lexicographical_compare(__x.begin(), __x.end(), 29761: __y.begin(), __y.end()); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const deque<_Tp, _Alloc>& __x, const deque<_Tp, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(deque<_Tp,_Alloc>& __x, deque<_Tp,_Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_bitwise_relocatable> 29761: : true_type { }; 29761: 29761: 29761: 29761: } 29761: # 67 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/refwrap.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/refwrap.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/refwrap.h" 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/invoke.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/invoke.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/invoke.h" 3 29761: # 42 "/usr/include/c++/14/bits/invoke.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 53 "/usr/include/c++/14/bits/invoke.h" 3 29761: template::type> 29761: constexpr _Up&& 29761: __invfwd(typename remove_reference<_Tp>::type& __t) noexcept 29761: { return static_cast<_Up&&>(__t); } 29761: 29761: template 29761: constexpr _Res 29761: __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) 29761: { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } 29761: 29761: template 29761: constexpr _Res 29761: __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, 29761: _Args&&... __args) 29761: { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } 29761: 29761: template 29761: constexpr _Res 29761: __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, 29761: _Args&&... __args) 29761: { 29761: return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); 29761: } 29761: 29761: template 29761: constexpr _Res 29761: __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) 29761: { return __invfwd<_Tp>(__t).*__f; } 29761: 29761: template 29761: constexpr _Res 29761: __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) 29761: { return (*std::forward<_Tp>(__t)).*__f; } 29761: 29761: 29761: template 29761: constexpr typename __invoke_result<_Callable, _Args...>::type 29761: __invoke(_Callable&& __fn, _Args&&... __args) 29761: noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) 29761: { 29761: using __result = __invoke_result<_Callable, _Args...>; 29761: using __type = typename __result::type; 29761: using __tag = typename __result::__invoke_type; 29761: return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr enable_if_t, _Res> 29761: __invoke_r(_Callable&& __fn, _Args&&... __args) 29761: noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) 29761: { 29761: using __result = __invoke_result<_Callable, _Args...>; 29761: using __type = typename __result::type; 29761: using __tag = typename __result::__invoke_type; 29761: if constexpr (is_void_v<_Res>) 29761: std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), 29761: std::forward<_Args>(__args)...); 29761: else 29761: return std::__invoke_impl<__type>(__tag{}, 29761: std::forward<_Callable>(__fn), 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 155 "/usr/include/c++/14/bits/invoke.h" 3 29761: 29761: } 29761: # 39 "/usr/include/c++/14/bits/refwrap.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_function.h" 1 3 29761: # 63 "/usr/include/c++/14/bits/stl_function.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 116 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: struct unary_function 29761: { 29761: 29761: typedef _Arg argument_type; 29761: 29761: 29761: typedef _Result result_type; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct binary_function 29761: { 29761: 29761: typedef _Arg1 first_argument_type; 29761: 29761: 29761: typedef _Arg2 second_argument_type; 29761: 29761: 29761: typedef _Result result_type; 29761: } __attribute__ ((__deprecated__)); 29761: # 157 "/usr/include/c++/14/bits/stl_function.h" 3 29761: struct __is_transparent; 29761: 29761: template 29761: struct plus; 29761: 29761: template 29761: struct minus; 29761: 29761: template 29761: struct multiplies; 29761: 29761: template 29761: struct divides; 29761: 29761: template 29761: struct modulus; 29761: 29761: template 29761: struct negate; 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: struct plus : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x + __y; } 29761: }; 29761: 29761: 29761: template 29761: struct minus : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x - __y; } 29761: }; 29761: 29761: 29761: template 29761: struct multiplies : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x * __y; } 29761: }; 29761: 29761: 29761: template 29761: struct divides : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x / __y; } 29761: }; 29761: 29761: 29761: template 29761: struct modulus : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x % __y; } 29761: }; 29761: 29761: 29761: template 29761: struct negate : public unary_function<_Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x) const 29761: { return -__x; } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: template<> 29761: struct plus 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct minus 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct multiplies 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct divides 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct modulus 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct negate 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t) const 29761: noexcept(noexcept(-std::forward<_Tp>(__t))) 29761: -> decltype(-std::forward<_Tp>(__t)) 29761: { return -std::forward<_Tp>(__t); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: # 346 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: struct equal_to; 29761: 29761: template 29761: struct not_equal_to; 29761: 29761: template 29761: struct greater; 29761: 29761: template 29761: struct less; 29761: 29761: template 29761: struct greater_equal; 29761: 29761: template 29761: struct less_equal; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: struct equal_to : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x == __y; } 29761: }; 29761: 29761: 29761: template 29761: struct not_equal_to : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x != __y; } 29761: }; 29761: 29761: 29761: template 29761: struct greater : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x > __y; } 29761: }; 29761: 29761: 29761: template 29761: struct less : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x < __y; } 29761: }; 29761: 29761: 29761: template 29761: struct greater_equal : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x >= __y; } 29761: }; 29761: 29761: 29761: template 29761: struct less_equal : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x <= __y; } 29761: }; 29761: 29761: 29761: template 29761: struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29761: { 29761: constexpr bool 29761: operator()(_Tp* __x, _Tp* __y) const noexcept 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __x > __y; 29761: 29761: return (unsigned int)__x > (unsigned int)__y; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29761: { 29761: constexpr bool 29761: operator()(_Tp* __x, _Tp* __y) const noexcept 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __x < __y; 29761: 29761: return (unsigned int)__x < (unsigned int)__y; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29761: { 29761: constexpr bool 29761: operator()(_Tp* __x, _Tp* __y) const noexcept 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __x >= __y; 29761: 29761: return (unsigned int)__x >= (unsigned int)__y; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> 29761: { 29761: constexpr bool 29761: operator()(_Tp* __x, _Tp* __y) const noexcept 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __x <= __y; 29761: 29761: return (unsigned int)__x <= (unsigned int)__y; 29761: } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: template<> 29761: struct equal_to 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct not_equal_to 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct greater 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) 29761: { 29761: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29761: __ptr_cmp<_Tp, _Up>{}); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator()(_Tp* __t, _Up* __u) const noexcept 29761: { return greater>{}(__t, __u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: 29761: private: 29761: template 29761: static constexpr decltype(auto) 29761: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29761: { return std::forward<_Tp>(__t) > std::forward<_Up>(__u); } 29761: 29761: template 29761: static constexpr bool 29761: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29761: { 29761: return greater{}( 29761: static_cast(std::forward<_Tp>(__t)), 29761: static_cast(std::forward<_Up>(__u))); 29761: } 29761: 29761: 29761: template 29761: struct __not_overloaded2 : true_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded2<_Tp, _Up, __void_t< 29761: decltype(std::declval<_Tp>().operator>(std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29761: 29761: 29761: template 29761: struct __not_overloaded<_Tp, _Up, __void_t< 29761: decltype(operator>(std::declval<_Tp>(), std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: template 29761: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29761: is_convertible<_Tp, const volatile void*>, 29761: is_convertible<_Up, const volatile void*>>; 29761: }; 29761: 29761: 29761: template<> 29761: struct less 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) 29761: { 29761: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29761: __ptr_cmp<_Tp, _Up>{}); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator()(_Tp* __t, _Up* __u) const noexcept 29761: { return less>{}(__t, __u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: 29761: private: 29761: template 29761: static constexpr decltype(auto) 29761: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29761: { return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } 29761: 29761: template 29761: static constexpr bool 29761: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29761: { 29761: return less{}( 29761: static_cast(std::forward<_Tp>(__t)), 29761: static_cast(std::forward<_Up>(__u))); 29761: } 29761: 29761: 29761: template 29761: struct __not_overloaded2 : true_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded2<_Tp, _Up, __void_t< 29761: decltype(std::declval<_Tp>().operator<(std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29761: 29761: 29761: template 29761: struct __not_overloaded<_Tp, _Up, __void_t< 29761: decltype(operator<(std::declval<_Tp>(), std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: template 29761: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29761: is_convertible<_Tp, const volatile void*>, 29761: is_convertible<_Up, const volatile void*>>; 29761: }; 29761: 29761: 29761: template<> 29761: struct greater_equal 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) 29761: { 29761: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29761: __ptr_cmp<_Tp, _Up>{}); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator()(_Tp* __t, _Up* __u) const noexcept 29761: { return greater_equal>{}(__t, __u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: 29761: private: 29761: template 29761: static constexpr decltype(auto) 29761: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29761: { return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); } 29761: 29761: template 29761: static constexpr bool 29761: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29761: { 29761: return greater_equal{}( 29761: static_cast(std::forward<_Tp>(__t)), 29761: static_cast(std::forward<_Up>(__u))); 29761: } 29761: 29761: 29761: template 29761: struct __not_overloaded2 : true_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded2<_Tp, _Up, __void_t< 29761: decltype(std::declval<_Tp>().operator>=(std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29761: 29761: 29761: template 29761: struct __not_overloaded<_Tp, _Up, __void_t< 29761: decltype(operator>=(std::declval<_Tp>(), std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: template 29761: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29761: is_convertible<_Tp, const volatile void*>, 29761: is_convertible<_Up, const volatile void*>>; 29761: }; 29761: 29761: 29761: template<> 29761: struct less_equal 29761: { 29761: template 29761: constexpr auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) 29761: { 29761: return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), 29761: __ptr_cmp<_Tp, _Up>{}); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator()(_Tp* __t, _Up* __u) const noexcept 29761: { return less_equal>{}(__t, __u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: 29761: private: 29761: template 29761: static constexpr decltype(auto) 29761: _S_cmp(_Tp&& __t, _Up&& __u, false_type) 29761: { return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); } 29761: 29761: template 29761: static constexpr bool 29761: _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept 29761: { 29761: return less_equal{}( 29761: static_cast(std::forward<_Tp>(__t)), 29761: static_cast(std::forward<_Up>(__u))); 29761: } 29761: 29761: 29761: template 29761: struct __not_overloaded2 : true_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded2<_Tp, _Up, __void_t< 29761: decltype(std::declval<_Tp>().operator<=(std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: 29761: template 29761: struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; 29761: 29761: 29761: template 29761: struct __not_overloaded<_Tp, _Up, __void_t< 29761: decltype(operator<=(std::declval<_Tp>(), std::declval<_Up>()))>> 29761: : false_type { }; 29761: 29761: template 29761: using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, 29761: is_convertible<_Tp, const volatile void*>, 29761: is_convertible<_Up, const volatile void*>>; 29761: }; 29761: # 778 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: struct logical_and; 29761: 29761: template 29761: struct logical_or; 29761: 29761: template 29761: struct logical_not; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: struct logical_and : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x && __y; } 29761: }; 29761: 29761: 29761: template 29761: struct logical_or : public binary_function<_Tp, _Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x || __y; } 29761: }; 29761: 29761: 29761: template 29761: struct logical_not : public unary_function<_Tp, bool> 29761: { 29761: constexpr 29761: bool 29761: operator()(const _Tp& __x) const 29761: { return !__x; } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: template<> 29761: struct logical_and 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct logical_or 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: template<> 29761: struct logical_not 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t) const 29761: noexcept(noexcept(!std::forward<_Tp>(__t))) 29761: -> decltype(!std::forward<_Tp>(__t)) 29761: { return !std::forward<_Tp>(__t); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct bit_and; 29761: 29761: template 29761: struct bit_or; 29761: 29761: template 29761: struct bit_xor; 29761: 29761: template 29761: struct bit_not; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: 29761: template 29761: struct bit_and : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x & __y; } 29761: }; 29761: 29761: template 29761: struct bit_or : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x | __y; } 29761: }; 29761: 29761: template 29761: struct bit_xor : public binary_function<_Tp, _Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x, const _Tp& __y) const 29761: { return __x ^ __y; } 29761: }; 29761: 29761: template 29761: struct bit_not : public unary_function<_Tp, _Tp> 29761: { 29761: constexpr 29761: _Tp 29761: operator()(const _Tp& __x) const 29761: { return ~__x; } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: template <> 29761: struct bit_and 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: template <> 29761: struct bit_or 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: template <> 29761: struct bit_xor 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t, _Up&& __u) const 29761: noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) 29761: -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) 29761: { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: template <> 29761: struct bit_not 29761: { 29761: template 29761: constexpr 29761: auto 29761: operator()(_Tp&& __t) const 29761: noexcept(noexcept(~std::forward<_Tp>(__t))) 29761: -> decltype(~std::forward<_Tp>(__t)) 29761: { return ~std::forward<_Tp>(__t); } 29761: 29761: typedef __is_transparent is_transparent; 29761: }; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: # 1020 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: class [[__deprecated__]] unary_negate 29761: : public unary_function 29761: { 29761: protected: 29761: _Predicate _M_pred; 29761: 29761: public: 29761: constexpr 29761: explicit 29761: unary_negate(const _Predicate& __x) : _M_pred(__x) { } 29761: 29761: constexpr 29761: bool 29761: operator()(const typename _Predicate::argument_type& __x) const 29761: { return !_M_pred(__x); } 29761: }; 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 29761: constexpr 29761: inline unary_negate<_Predicate> 29761: not1(const _Predicate& __pred) 29761: { return unary_negate<_Predicate>(__pred); } 29761: 29761: 29761: template 29761: class [[__deprecated__]] binary_negate 29761: : public binary_function 29761: { 29761: protected: 29761: _Predicate _M_pred; 29761: 29761: public: 29761: constexpr 29761: explicit 29761: binary_negate(const _Predicate& __x) : _M_pred(__x) { } 29761: 29761: constexpr 29761: bool 29761: operator()(const typename _Predicate::first_argument_type& __x, 29761: const typename _Predicate::second_argument_type& __y) const 29761: { return !_M_pred(__x, __y); } 29761: }; 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) 29761: constexpr 29761: inline binary_negate<_Predicate> 29761: not2(const _Predicate& __pred) 29761: { return binary_negate<_Predicate>(__pred); } 29761: # 1101 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: class pointer_to_unary_function : public unary_function<_Arg, _Result> 29761: { 29761: protected: 29761: _Result (*_M_ptr)(_Arg); 29761: 29761: public: 29761: pointer_to_unary_function() { } 29761: 29761: explicit 29761: pointer_to_unary_function(_Result (*__x)(_Arg)) 29761: : _M_ptr(__x) { } 29761: 29761: _Result 29761: operator()(_Arg __x) const 29761: { return _M_ptr(__x); } 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 29761: inline pointer_to_unary_function<_Arg, _Result> 29761: ptr_fun(_Result (*__x)(_Arg)) 29761: { return pointer_to_unary_function<_Arg, _Result>(__x); } 29761: 29761: 29761: template 29761: class pointer_to_binary_function 29761: : public binary_function<_Arg1, _Arg2, _Result> 29761: { 29761: protected: 29761: _Result (*_M_ptr)(_Arg1, _Arg2); 29761: 29761: public: 29761: pointer_to_binary_function() { } 29761: 29761: explicit 29761: pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) 29761: : _M_ptr(__x) { } 29761: 29761: _Result 29761: operator()(_Arg1 __x, _Arg2 __y) const 29761: { return _M_ptr(__x, __y); } 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) 29761: inline pointer_to_binary_function<_Arg1, _Arg2, _Result> 29761: ptr_fun(_Result (*__x)(_Arg1, _Arg2)) 29761: { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } 29761: 29761: 29761: template 29761: struct _Identity 29761: : public unary_function<_Tp, _Tp> 29761: { 29761: _Tp& 29761: operator()(_Tp& __x) const 29761: { return __x; } 29761: 29761: const _Tp& 29761: operator()(const _Tp& __x) const 29761: { return __x; } 29761: }; 29761: 29761: 29761: template struct _Identity : _Identity<_Tp> { }; 29761: 29761: template 29761: struct _Select1st 29761: : public unary_function<_Pair, typename _Pair::first_type> 29761: { 29761: typename _Pair::first_type& 29761: operator()(_Pair& __x) const 29761: { return __x.first; } 29761: 29761: const typename _Pair::first_type& 29761: operator()(const _Pair& __x) const 29761: { return __x.first; } 29761: 29761: 29761: template 29761: typename _Pair2::first_type& 29761: operator()(_Pair2& __x) const 29761: { return __x.first; } 29761: 29761: template 29761: const typename _Pair2::first_type& 29761: operator()(const _Pair2& __x) const 29761: { return __x.first; } 29761: 29761: }; 29761: 29761: template 29761: struct _Select2nd 29761: : public unary_function<_Pair, typename _Pair::second_type> 29761: { 29761: typename _Pair::second_type& 29761: operator()(_Pair& __x) const 29761: { return __x.second; } 29761: 29761: const typename _Pair::second_type& 29761: operator()(const _Pair& __x) const 29761: { return __x.second; } 29761: }; 29761: # 1228 "/usr/include/c++/14/bits/stl_function.h" 3 29761: template 29761: class mem_fun_t : public unary_function<_Tp*, _Ret> 29761: { 29761: public: 29761: explicit 29761: mem_fun_t(_Ret (_Tp::*__pf)()) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(_Tp* __p) const 29761: { return (__p->*_M_f)(); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(); 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class const_mem_fun_t : public unary_function 29761: { 29761: public: 29761: explicit 29761: const_mem_fun_t(_Ret (_Tp::*__pf)() const) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(const _Tp* __p) const 29761: { return (__p->*_M_f)(); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)() const; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class mem_fun_ref_t : public unary_function<_Tp, _Ret> 29761: { 29761: public: 29761: explicit 29761: mem_fun_ref_t(_Ret (_Tp::*__pf)()) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(_Tp& __r) const 29761: { return (__r.*_M_f)(); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(); 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> 29761: { 29761: public: 29761: explicit 29761: const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(const _Tp& __r) const 29761: { return (__r.*_M_f)(); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)() const; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> 29761: { 29761: public: 29761: explicit 29761: mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(_Tp* __p, _Arg __x) const 29761: { return (__p->*_M_f)(__x); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(_Arg); 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class const_mem_fun1_t : public binary_function 29761: { 29761: public: 29761: explicit 29761: const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(const _Tp* __p, _Arg __x) const 29761: { return (__p->*_M_f)(__x); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(_Arg) const; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 29761: { 29761: public: 29761: explicit 29761: mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(_Tp& __r, _Arg __x) const 29761: { return (__r.*_M_f)(__x); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(_Arg); 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: template 29761: class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> 29761: { 29761: public: 29761: explicit 29761: const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) 29761: : _M_f(__pf) { } 29761: 29761: _Ret 29761: operator()(const _Tp& __r, _Arg __x) const 29761: { return (__r.*_M_f)(__x); } 29761: 29761: private: 29761: _Ret (_Tp::*_M_f)(_Arg) const; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline mem_fun_t<_Ret, _Tp> 29761: mem_fun(_Ret (_Tp::*__f)()) 29761: { return mem_fun_t<_Ret, _Tp>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline const_mem_fun_t<_Ret, _Tp> 29761: mem_fun(_Ret (_Tp::*__f)() const) 29761: { return const_mem_fun_t<_Ret, _Tp>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline mem_fun_ref_t<_Ret, _Tp> 29761: mem_fun_ref(_Ret (_Tp::*__f)()) 29761: { return mem_fun_ref_t<_Ret, _Tp>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline const_mem_fun_ref_t<_Ret, _Tp> 29761: mem_fun_ref(_Ret (_Tp::*__f)() const) 29761: { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline mem_fun1_t<_Ret, _Tp, _Arg> 29761: mem_fun(_Ret (_Tp::*__f)(_Arg)) 29761: { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline const_mem_fun1_t<_Ret, _Tp, _Arg> 29761: mem_fun(_Ret (_Tp::*__f)(_Arg) const) 29761: { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline mem_fun1_ref_t<_Ret, _Tp, _Arg> 29761: mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) 29761: { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) 29761: inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> 29761: mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) 29761: { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: template> 29761: struct __has_is_transparent 29761: { }; 29761: 29761: template 29761: struct __has_is_transparent<_Func, _SfinaeType, 29761: __void_t> 29761: { typedef void type; }; 29761: 29761: template 29761: using __has_is_transparent_t 29761: = typename __has_is_transparent<_Func, _SfinaeType>::type; 29761: 29761: 29761: 29761: } 29761: 29761: 29761: # 1 "/usr/include/c++/14/backward/binders.h" 1 3 29761: # 60 "/usr/include/c++/14/backward/binders.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 107 "/usr/include/c++/14/backward/binders.h" 3 29761: template 29761: class binder1st 29761: : public unary_function 29761: { 29761: protected: 29761: _Operation op; 29761: typename _Operation::first_argument_type value; 29761: 29761: public: 29761: binder1st(const _Operation& __x, 29761: const typename _Operation::first_argument_type& __y) 29761: : op(__x), value(__y) { } 29761: 29761: typename _Operation::result_type 29761: operator()(const typename _Operation::second_argument_type& __x) const 29761: { return op(value, __x); } 29761: 29761: 29761: 29761: typename _Operation::result_type 29761: operator()(typename _Operation::second_argument_type& __x) const 29761: { return op(value, __x); } 29761: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 29761: inline binder1st<_Operation> 29761: bind1st(const _Operation& __fn, const _Tp& __x) 29761: { 29761: typedef typename _Operation::first_argument_type _Arg1_type; 29761: return binder1st<_Operation>(__fn, _Arg1_type(__x)); 29761: } 29761: 29761: 29761: template 29761: class binder2nd 29761: : public unary_function 29761: { 29761: protected: 29761: _Operation op; 29761: typename _Operation::second_argument_type value; 29761: 29761: public: 29761: binder2nd(const _Operation& __x, 29761: const typename _Operation::second_argument_type& __y) 29761: : op(__x), value(__y) { } 29761: 29761: typename _Operation::result_type 29761: operator()(const typename _Operation::first_argument_type& __x) const 29761: { return op(__x, value); } 29761: 29761: 29761: 29761: typename _Operation::result_type 29761: operator()(typename _Operation::first_argument_type& __x) const 29761: { return op(__x, value); } 29761: } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) 29761: inline binder2nd<_Operation> 29761: bind2nd(const _Operation& __fn, const _Tp& __x) 29761: { 29761: typedef typename _Operation::second_argument_type _Arg2_type; 29761: return binder2nd<_Operation>(__fn, _Arg2_type(__x)); 29761: } 29761: 29761: 29761: 29761: } 29761: 29761: #pragma GCC diagnostic pop 29761: # 1436 "/usr/include/c++/14/bits/stl_function.h" 2 3 29761: # 40 "/usr/include/c++/14/bits/refwrap.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 56 "/usr/include/c++/14/bits/refwrap.h" 3 29761: template 29761: struct _Maybe_unary_or_binary_function { }; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: struct _Maybe_unary_or_binary_function<_Res, _T1> 29761: : std::unary_function<_T1, _Res> { }; 29761: 29761: 29761: template 29761: struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> 29761: : std::binary_function<_T1, _T2, _Res> { }; 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: template 29761: struct _Mem_fn_traits; 29761: 29761: template 29761: struct _Mem_fn_traits_base 29761: { 29761: using __result_type = _Res; 29761: using __maybe_type 29761: = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; 29761: using __arity = integral_constant; 29761: }; 29761: # 107 "/usr/include/c++/14/bits/refwrap.h" 3 29761: 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; }; 29761: 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; }; 29761: 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; }; 29761: 29761: 29761: 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; }; 29761: 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; }; 29761: 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; }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: struct _Maybe_get_result_type 29761: { }; 29761: 29761: template 29761: struct _Maybe_get_result_type<_Functor, 29761: __void_t> 29761: { typedef typename _Functor::result_type result_type; }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Weak_result_type_impl 29761: : _Maybe_get_result_type<_Functor> 29761: { }; 29761: 29761: 29761: template 29761: struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> 29761: { typedef _Res result_type; }; 29761: 29761: 29761: template 29761: struct _Weak_result_type_impl<_Res(_ArgTypes......) noexcept (_NE)> 29761: { typedef _Res result_type; }; 29761: 29761: 29761: template 29761: struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> 29761: { typedef _Res result_type; }; 29761: 29761: 29761: template 29761: struct 29761: _Weak_result_type_impl<_Res(*)(_ArgTypes......) noexcept (_NE)> 29761: { typedef _Res result_type; }; 29761: 29761: 29761: template::value> 29761: struct _Weak_result_type_memfun 29761: : _Weak_result_type_impl<_Functor> 29761: { }; 29761: 29761: 29761: template 29761: struct _Weak_result_type_memfun<_MemFunPtr, true> 29761: { 29761: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 29761: }; 29761: 29761: 29761: template 29761: struct _Weak_result_type_memfun<_Func _Class::*, false> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Weak_result_type 29761: : _Weak_result_type_memfun::type> 29761: { }; 29761: 29761: 29761: 29761: template> 29761: struct _Refwrap_base_arg1 29761: { }; 29761: 29761: 29761: template 29761: struct _Refwrap_base_arg1<_Tp, 29761: __void_t> 29761: { 29761: typedef typename _Tp::argument_type argument_type; 29761: }; 29761: 29761: 29761: template> 29761: struct _Refwrap_base_arg2 29761: { }; 29761: 29761: 29761: template 29761: struct _Refwrap_base_arg2<_Tp, 29761: __void_t> 29761: { 29761: typedef typename _Tp::first_argument_type first_argument_type; 29761: typedef typename _Tp::second_argument_type second_argument_type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Reference_wrapper_base 29761: : _Weak_result_type<_Tp>, _Refwrap_base_arg1<_Tp>, _Refwrap_base_arg2<_Tp> 29761: { }; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1) noexcept (_NE)> 29761: : unary_function<_T1, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1) const> 29761: : unary_function<_T1, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1) volatile> 29761: : unary_function<_T1, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1) const volatile> 29761: : unary_function<_T1, _Res> 29761: { }; 29761: 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1, _T2) noexcept (_NE)> 29761: : binary_function<_T1, _T2, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1, _T2) const> 29761: : binary_function<_T1, _T2, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1, _T2) volatile> 29761: : binary_function<_T1, _T2, _Res> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(_T1, _T2) const volatile> 29761: : binary_function<_T1, _T2, _Res> 29761: { }; 29761: 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(*)(_T1) noexcept (_NE)> 29761: : unary_function<_T1, _Res> 29761: { }; 29761: 29761: 29761: template 29761: struct _Reference_wrapper_base<_Res(*)(_T1, _T2) noexcept (_NE)> 29761: : binary_function<_T1, _T2, _Res> 29761: { }; 29761: 29761: template::value> 29761: struct _Reference_wrapper_base_memfun 29761: : _Reference_wrapper_base<_Tp> 29761: { }; 29761: 29761: template 29761: struct _Reference_wrapper_base_memfun<_MemFunPtr, true> 29761: : _Mem_fn_traits<_MemFunPtr>::__maybe_type 29761: { 29761: using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; 29761: }; 29761: #pragma GCC diagnostic pop 29761: # 306 "/usr/include/c++/14/bits/refwrap.h" 3 29761: template 29761: class reference_wrapper 29761: 29761: 29761: 29761: : public _Reference_wrapper_base_memfun::type> 29761: 29761: { 29761: _Tp* _M_data; 29761: 29761: 29761: static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } 29761: 29761: static void _S_fun(_Tp&&) = delete; 29761: 29761: template> 29761: using __not_same 29761: = typename enable_if::value>::type; 29761: 29761: public: 29761: typedef _Tp type; 29761: 29761: 29761: 29761: 29761: template, typename 29761: = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> 29761: 29761: reference_wrapper(_Up&& __uref) 29761: noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) 29761: : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) 29761: { } 29761: 29761: reference_wrapper(const reference_wrapper&) = default; 29761: 29761: reference_wrapper& 29761: operator=(const reference_wrapper&) = default; 29761: 29761: 29761: operator _Tp&() const noexcept 29761: { return this->get(); } 29761: 29761: 29761: _Tp& 29761: get() const noexcept 29761: { return *_M_data; } 29761: 29761: template 29761: 29761: typename __invoke_result<_Tp&, _Args...>::type 29761: operator()(_Args&&... __args) const 29761: noexcept(__is_nothrow_invocable<_Tp&, _Args...>::value) 29761: { 29761: 29761: 29761: 29761: 29761: return std::__invoke(get(), std::forward<_Args>(__args)...); 29761: } 29761: # 412 "/usr/include/c++/14/bits/refwrap.h" 3 29761: }; 29761: 29761: 29761: template 29761: reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline reference_wrapper<_Tp> 29761: ref(_Tp& __t) noexcept 29761: { return reference_wrapper<_Tp>(__t); } 29761: 29761: 29761: template 29761: 29761: inline reference_wrapper 29761: cref(const _Tp& __t) noexcept 29761: { return reference_wrapper(__t); } 29761: 29761: template 29761: void ref(const _Tp&&) = delete; 29761: 29761: template 29761: void cref(const _Tp&&) = delete; 29761: 29761: 29761: template 29761: 29761: inline reference_wrapper<_Tp> 29761: ref(reference_wrapper<_Tp> __t) noexcept 29761: { return __t; } 29761: 29761: 29761: template 29761: 29761: inline reference_wrapper 29761: cref(reference_wrapper<_Tp> __t) noexcept 29761: { return { __t.get() }; } 29761: 29761: 29761: 29761: 29761: } 29761: # 68 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/range_access.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/range_access.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/range_access.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: begin(_Container& __cont) -> decltype(__cont.begin()) 29761: { return __cont.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: begin(const _Container& __cont) -> decltype(__cont.begin()) 29761: { return __cont.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: end(_Container& __cont) -> decltype(__cont.end()) 29761: { return __cont.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: end(const _Container& __cont) -> decltype(__cont.end()) 29761: { return __cont.end(); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr _Tp* 29761: begin(_Tp (&__arr)[_Nm]) noexcept 29761: { return __arr; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr _Tp* 29761: end(_Tp (&__arr)[_Nm]) noexcept 29761: { return __arr + _Nm; } 29761: 29761: 29761: 29761: template class valarray; 29761: 29761: template _Tp* begin(valarray<_Tp>&) noexcept; 29761: template const _Tp* begin(const valarray<_Tp>&) noexcept; 29761: template _Tp* end(valarray<_Tp>&) noexcept; 29761: template const _Tp* end(const valarray<_Tp>&) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: constexpr auto 29761: cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) 29761: -> decltype(std::begin(__cont)) 29761: { return std::begin(__cont); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: constexpr auto 29761: cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) 29761: -> decltype(std::end(__cont)) 29761: { return std::end(__cont); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: rbegin(_Container& __cont) -> decltype(__cont.rbegin()) 29761: { return __cont.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: rbegin(const _Container& __cont) -> decltype(__cont.rbegin()) 29761: { return __cont.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: rend(_Container& __cont) -> decltype(__cont.rend()) 29761: { return __cont.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: rend(const _Container& __cont) -> decltype(__cont.rend()) 29761: { return __cont.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator<_Tp*> 29761: rbegin(_Tp (&__arr)[_Nm]) noexcept 29761: { return reverse_iterator<_Tp*>(__arr + _Nm); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator<_Tp*> 29761: rend(_Tp (&__arr)[_Nm]) noexcept 29761: { return reverse_iterator<_Tp*>(__arr); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator 29761: rbegin(initializer_list<_Tp> __il) noexcept 29761: { return reverse_iterator(__il.end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline constexpr reverse_iterator 29761: rend(initializer_list<_Tp> __il) noexcept 29761: { return reverse_iterator(__il.begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont)) 29761: { return std::rbegin(__cont); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__, __gnu__::__always_inline__]] 29761: inline constexpr auto 29761: crend(const _Container& __cont) -> decltype(std::rend(__cont)) 29761: { return std::rend(__cont); } 29761: # 259 "/usr/include/c++/14/bits/range_access.h" 3 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr auto 29761: size(const _Container& __cont) noexcept(noexcept(__cont.size())) 29761: -> decltype(__cont.size()) 29761: { return __cont.size(); } 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr size_t 29761: size(const _Tp (&)[_Nm]) noexcept 29761: { return _Nm; } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr auto 29761: empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) 29761: -> decltype(__cont.empty()) 29761: { return __cont.empty(); } 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr bool 29761: empty(const _Tp (&)[_Nm]) noexcept 29761: { return false; } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr bool 29761: empty(initializer_list<_Tp> __il) noexcept 29761: { return __il.size() == 0;} 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr auto 29761: data(_Container& __cont) noexcept(noexcept(__cont.data())) 29761: -> decltype(__cont.data()) 29761: { return __cont.data(); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr auto 29761: data(const _Container& __cont) noexcept(noexcept(__cont.data())) 29761: -> decltype(__cont.data()) 29761: { return __cont.data(); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr _Tp* 29761: data(_Tp (&__array)[_Nm]) noexcept 29761: { return __array; } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard, __gnu__::__always_inline__]] 29761: constexpr const _Tp* 29761: data(initializer_list<_Tp> __il) noexcept 29761: { return __il.begin(); } 29761: # 366 "/usr/include/c++/14/bits/range_access.h" 3 29761: 29761: } 29761: # 69 "/usr/include/c++/14/deque" 2 3 29761: # 1 "/usr/include/c++/14/bits/deque.tcc" 1 3 29761: # 61 "/usr/include/c++/14/bits/deque.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_default_initialize() 29761: { 29761: _Map_pointer __cur; 29761: try 29761: { 29761: for (__cur = this->_M_impl._M_start._M_node; 29761: __cur < this->_M_impl._M_finish._M_node; 29761: ++__cur) 29761: std::__uninitialized_default_a(*__cur, *__cur + _S_buffer_size(), 29761: _M_get_Tp_allocator()); 29761: std::__uninitialized_default_a(this->_M_impl._M_finish._M_first, 29761: this->_M_impl._M_finish._M_cur, 29761: _M_get_Tp_allocator()); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 29761: _M_get_Tp_allocator()); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: deque<_Tp, _Alloc>& 29761: deque<_Tp, _Alloc>:: 29761: operator=(const deque& __x) 29761: { 29761: if (std::__addressof(__x) != this) 29761: { 29761: 29761: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: if (!_Alloc_traits::_S_always_equal() 29761: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 29761: { 29761: 29761: 29761: _M_replace_map(__x, __x.get_allocator()); 29761: std::__alloc_on_copy(_M_get_Tp_allocator(), 29761: __x._M_get_Tp_allocator()); 29761: return *this; 29761: } 29761: std::__alloc_on_copy(_M_get_Tp_allocator(), 29761: __x._M_get_Tp_allocator()); 29761: } 29761: 29761: const size_type __len = size(); 29761: if (__len >= __x.size()) 29761: _M_erase_at_end(std::copy(__x.begin(), __x.end(), 29761: this->_M_impl._M_start)); 29761: else 29761: { 29761: const_iterator __mid = __x.begin() + difference_type(__len); 29761: std::copy(__x.begin(), __mid, this->_M_impl._M_start); 29761: _M_range_insert_aux(this->_M_impl._M_finish, __mid, __x.end(), 29761: std::random_access_iterator_tag()); 29761: } 29761: } 29761: return *this; 29761: } 29761: 29761: 29761: template 29761: template 29761: 29761: typename deque<_Tp, _Alloc>::reference 29761: 29761: 29761: 29761: deque<_Tp, _Alloc>:: 29761: emplace_front(_Args&&... __args) 29761: { 29761: if (this->_M_impl._M_start._M_cur != this->_M_impl._M_start._M_first) 29761: { 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_start._M_cur - 1, 29761: std::forward<_Args>(__args)...); 29761: --this->_M_impl._M_start._M_cur; 29761: } 29761: else 29761: _M_push_front_aux(std::forward<_Args>(__args)...); 29761: 29761: return front(); 29761: 29761: } 29761: 29761: template 29761: template 29761: 29761: typename deque<_Tp, _Alloc>::reference 29761: 29761: 29761: 29761: deque<_Tp, _Alloc>:: 29761: emplace_back(_Args&&... __args) 29761: { 29761: if (this->_M_impl._M_finish._M_cur 29761: != this->_M_impl._M_finish._M_last - 1) 29761: { 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_finish._M_cur, 29761: std::forward<_Args>(__args)...); 29761: ++this->_M_impl._M_finish._M_cur; 29761: } 29761: else 29761: _M_push_back_aux(std::forward<_Args>(__args)...); 29761: 29761: return back(); 29761: 29761: } 29761: 29761: 29761: 29761: template 29761: template 29761: typename deque<_Tp, _Alloc>::iterator 29761: deque<_Tp, _Alloc>:: 29761: emplace(const_iterator __position, _Args&&... __args) 29761: { 29761: if (__position._M_cur == this->_M_impl._M_start._M_cur) 29761: { 29761: emplace_front(std::forward<_Args>(__args)...); 29761: return this->_M_impl._M_start; 29761: } 29761: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 29761: { 29761: emplace_back(std::forward<_Args>(__args)...); 29761: iterator __tmp = this->_M_impl._M_finish; 29761: --__tmp; 29761: return __tmp; 29761: } 29761: else 29761: return _M_emplace_aux(__position._M_const_cast(), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: template 29761: typename deque<_Tp, _Alloc>::iterator 29761: deque<_Tp, _Alloc>:: 29761: 29761: insert(const_iterator __position, const value_type& __x) 29761: 29761: 29761: 29761: { 29761: if (__position._M_cur == this->_M_impl._M_start._M_cur) 29761: { 29761: push_front(__x); 29761: return this->_M_impl._M_start; 29761: } 29761: else if (__position._M_cur == this->_M_impl._M_finish._M_cur) 29761: { 29761: push_back(__x); 29761: iterator __tmp = this->_M_impl._M_finish; 29761: --__tmp; 29761: return __tmp; 29761: } 29761: else 29761: return _M_insert_aux(__position._M_const_cast(), __x); 29761: } 29761: 29761: template 29761: typename deque<_Tp, _Alloc>::iterator 29761: deque<_Tp, _Alloc>:: 29761: _M_erase(iterator __position) 29761: { 29761: iterator __next = __position; 29761: ++__next; 29761: const difference_type __index = __position - begin(); 29761: if (static_cast(__index) < (size() >> 1)) 29761: { 29761: if (__position != begin()) 29761: std::move_backward(begin(), __position, __next); 29761: pop_front(); 29761: } 29761: else 29761: { 29761: if (__next != end()) 29761: std::move(__next, end(), __position); 29761: pop_back(); 29761: } 29761: return begin() + __index; 29761: } 29761: 29761: template 29761: typename deque<_Tp, _Alloc>::iterator 29761: deque<_Tp, _Alloc>:: 29761: _M_erase(iterator __first, iterator __last) 29761: { 29761: if (__first == __last) 29761: return __first; 29761: else if (__first == begin() && __last == end()) 29761: { 29761: clear(); 29761: return end(); 29761: } 29761: else 29761: { 29761: const difference_type __n = __last - __first; 29761: const difference_type __elems_before = __first - begin(); 29761: if (static_cast(__elems_before) <= (size() - __n) / 2) 29761: { 29761: if (__first != begin()) 29761: std::move_backward(begin(), __first, __last); 29761: _M_erase_at_begin(begin() + __n); 29761: } 29761: else 29761: { 29761: if (__last != end()) 29761: std::move(__last, end(), __first); 29761: _M_erase_at_end(end() - __n); 29761: } 29761: return begin() + __elems_before; 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: iterator __cur = begin(); 29761: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 29761: *__cur = *__first; 29761: if (__first == __last) 29761: _M_erase_at_end(__cur); 29761: else 29761: _M_range_insert_aux(end(), __first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x) 29761: { 29761: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 29761: { 29761: iterator __new_start = _M_reserve_elements_at_front(__n); 29761: try 29761: { 29761: std::__uninitialized_fill_a(__new_start, this->_M_impl._M_start, 29761: __x, _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(__new_start._M_node, 29761: this->_M_impl._M_start._M_node); 29761: throw; 29761: } 29761: } 29761: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 29761: { 29761: iterator __new_finish = _M_reserve_elements_at_back(__n); 29761: try 29761: { 29761: std::__uninitialized_fill_a(this->_M_impl._M_finish, 29761: __new_finish, __x, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29761: __new_finish._M_node + 1); 29761: throw; 29761: } 29761: } 29761: else 29761: _M_insert_aux(__pos, __n, __x); 29761: } 29761: 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_default_append(size_type __n) 29761: { 29761: if (__n) 29761: { 29761: iterator __new_finish = _M_reserve_elements_at_back(__n); 29761: try 29761: { 29761: std::__uninitialized_default_a(this->_M_impl._M_finish, 29761: __new_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29761: __new_finish._M_node + 1); 29761: throw; 29761: } 29761: } 29761: } 29761: 29761: template 29761: bool 29761: deque<_Tp, _Alloc>:: 29761: _M_shrink_to_fit() 29761: { 29761: const difference_type __front_capacity 29761: = (this->_M_impl._M_start._M_cur - this->_M_impl._M_start._M_first); 29761: if (__front_capacity == 0) 29761: return false; 29761: 29761: const difference_type __back_capacity 29761: = (this->_M_impl._M_finish._M_last - this->_M_impl._M_finish._M_cur); 29761: if (__front_capacity + __back_capacity < _S_buffer_size()) 29761: return false; 29761: 29761: return std::__shrink_to_fit_aux::_S_do_it(*this); 29761: } 29761: 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_fill_initialize(const value_type& __value) 29761: { 29761: _Map_pointer __cur; 29761: try 29761: { 29761: for (__cur = this->_M_impl._M_start._M_node; 29761: __cur < this->_M_impl._M_finish._M_node; 29761: ++__cur) 29761: std::__uninitialized_fill_a(*__cur, *__cur + _S_buffer_size(), 29761: __value, _M_get_Tp_allocator()); 29761: std::__uninitialized_fill_a(this->_M_impl._M_finish._M_first, 29761: this->_M_impl._M_finish._M_cur, 29761: __value, _M_get_Tp_allocator()); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur), 29761: _M_get_Tp_allocator()); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: this->_M_initialize_map(0); 29761: try 29761: { 29761: for (; __first != __last; ++__first) 29761: 29761: emplace_back(*__first); 29761: 29761: 29761: 29761: } 29761: catch(...) 29761: { 29761: clear(); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __n = std::distance(__first, __last); 29761: this->_M_initialize_map(_S_check_init_len(__n, _M_get_Tp_allocator())); 29761: 29761: _Map_pointer __cur_node; 29761: try 29761: { 29761: for (__cur_node = this->_M_impl._M_start._M_node; 29761: __cur_node < this->_M_impl._M_finish._M_node; 29761: ++__cur_node) 29761: { 29761: if (__n < _S_buffer_size()) 29761: __builtin_unreachable(); 29761: 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, _S_buffer_size()); 29761: std::__uninitialized_copy_a(__first, __mid, *__cur_node, 29761: _M_get_Tp_allocator()); 29761: __first = __mid; 29761: } 29761: std::__uninitialized_copy_a(__first, __last, 29761: this->_M_impl._M_finish._M_first, 29761: _M_get_Tp_allocator()); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(this->_M_impl._M_start, 29761: iterator(*__cur_node, __cur_node), 29761: _M_get_Tp_allocator()); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_push_back_aux(_Args&&... __args) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: if (size() == max_size()) 29761: __throw_length_error( 29761: ("cannot create std::deque larger than max_size()")); 29761: 29761: _M_reserve_map_at_back(); 29761: *(this->_M_impl._M_finish._M_node + 1) = this->_M_allocate_node(); 29761: try 29761: { 29761: 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_finish._M_cur, 29761: std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node 29761: + 1); 29761: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_first; 29761: } 29761: catch(...) 29761: { 29761: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + 1)); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_push_front_aux(_Args&&... __args) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: if (size() == max_size()) 29761: __throw_length_error( 29761: ("cannot create std::deque larger than max_size()")); 29761: 29761: _M_reserve_map_at_front(); 29761: *(this->_M_impl._M_start._M_node - 1) = this->_M_allocate_node(); 29761: try 29761: { 29761: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node 29761: - 1); 29761: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_last - 1; 29761: 29761: _Alloc_traits::construct(this->_M_impl, 29761: this->_M_impl._M_start._M_cur, 29761: std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: } 29761: catch(...) 29761: { 29761: ++this->_M_impl._M_start; 29761: _M_deallocate_node(*(this->_M_impl._M_start._M_node - 1)); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: void deque<_Tp, _Alloc>:: 29761: _M_pop_back_aux() 29761: { 29761: _M_deallocate_node(this->_M_impl._M_finish._M_first); 29761: this->_M_impl._M_finish._M_set_node(this->_M_impl._M_finish._M_node - 1); 29761: this->_M_impl._M_finish._M_cur = this->_M_impl._M_finish._M_last - 1; 29761: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29761: this->_M_impl._M_finish._M_cur); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void deque<_Tp, _Alloc>:: 29761: _M_pop_front_aux() 29761: { 29761: _Alloc_traits::destroy(_M_get_Tp_allocator(), 29761: this->_M_impl._M_start._M_cur); 29761: _M_deallocate_node(this->_M_impl._M_start._M_first); 29761: this->_M_impl._M_start._M_set_node(this->_M_impl._M_start._M_node + 1); 29761: this->_M_impl._M_start._M_cur = this->_M_impl._M_start._M_first; 29761: } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_range_insert_aux(iterator __pos, 29761: _InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { std::copy(__first, __last, std::inserter(*this, __pos)); } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_range_insert_aux(iterator __pos, 29761: _ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __n = std::distance(__first, __last); 29761: if (__builtin_expect(__n == 0, 0)) 29761: return; 29761: 29761: if (__pos._M_cur == this->_M_impl._M_start._M_cur) 29761: { 29761: iterator __new_start = _M_reserve_elements_at_front(__n); 29761: try 29761: { 29761: std::__uninitialized_copy_a(__first, __last, __new_start, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(__new_start._M_node, 29761: this->_M_impl._M_start._M_node); 29761: throw; 29761: } 29761: } 29761: else if (__pos._M_cur == this->_M_impl._M_finish._M_cur) 29761: { 29761: iterator __new_finish = _M_reserve_elements_at_back(__n); 29761: try 29761: { 29761: std::__uninitialized_copy_a(__first, __last, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29761: __new_finish._M_node + 1); 29761: throw; 29761: } 29761: } 29761: else 29761: _M_insert_aux(__pos, __first, __last, __n); 29761: } 29761: 29761: template 29761: 29761: template 29761: typename deque<_Tp, _Alloc>::iterator 29761: deque<_Tp, _Alloc>:: 29761: _M_emplace_aux(iterator __pos, _Args&&... __args) 29761: { 29761: value_type __x_copy(std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: difference_type __index = __pos - this->_M_impl._M_start; 29761: if (static_cast(__index) < size() / 2) 29761: { 29761: push_front(std::move(front())); 29761: iterator __front1 = this->_M_impl._M_start; 29761: ++__front1; 29761: iterator __front2 = __front1; 29761: ++__front2; 29761: __pos = this->_M_impl._M_start + __index; 29761: iterator __pos1 = __pos; 29761: ++__pos1; 29761: std::move(__front2, __pos1, __front1); 29761: } 29761: else 29761: { 29761: push_back(std::move(back())); 29761: iterator __back1 = this->_M_impl._M_finish; 29761: --__back1; 29761: iterator __back2 = __back1; 29761: --__back2; 29761: __pos = this->_M_impl._M_start + __index; 29761: std::move_backward(__pos, __back2, __back1); 29761: } 29761: *__pos = std::move(__x_copy); 29761: return __pos; 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_insert_aux(iterator __pos, size_type __n, const value_type& __x) 29761: { 29761: const difference_type __elems_before = __pos - this->_M_impl._M_start; 29761: const size_type __length = this->size(); 29761: value_type __x_copy = __x; 29761: if (__elems_before < difference_type(__length / 2)) 29761: { 29761: iterator __new_start = _M_reserve_elements_at_front(__n); 29761: iterator __old_start = this->_M_impl._M_start; 29761: __pos = this->_M_impl._M_start + __elems_before; 29761: try 29761: { 29761: if (__elems_before >= difference_type(__n)) 29761: { 29761: iterator __start_n = (this->_M_impl._M_start 29761: + difference_type(__n)); 29761: std::__uninitialized_move_a(this->_M_impl._M_start, 29761: __start_n, __new_start, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: std::move(__start_n, __pos, __old_start); 29761: std::fill(__pos - difference_type(__n), __pos, __x_copy); 29761: } 29761: else 29761: { 29761: std::__uninitialized_move_fill(this->_M_impl._M_start, 29761: __pos, __new_start, 29761: this->_M_impl._M_start, 29761: __x_copy, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: std::fill(__old_start, __pos, __x_copy); 29761: } 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(__new_start._M_node, 29761: this->_M_impl._M_start._M_node); 29761: throw; 29761: } 29761: } 29761: else 29761: { 29761: iterator __new_finish = _M_reserve_elements_at_back(__n); 29761: iterator __old_finish = this->_M_impl._M_finish; 29761: const difference_type __elems_after = 29761: difference_type(__length) - __elems_before; 29761: __pos = this->_M_impl._M_finish - __elems_after; 29761: try 29761: { 29761: if (__elems_after > difference_type(__n)) 29761: { 29761: iterator __finish_n = (this->_M_impl._M_finish 29761: - difference_type(__n)); 29761: std::__uninitialized_move_a(__finish_n, 29761: this->_M_impl._M_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: std::move_backward(__pos, __finish_n, __old_finish); 29761: std::fill(__pos, __pos + difference_type(__n), __x_copy); 29761: } 29761: else 29761: { 29761: std::__uninitialized_fill_move(this->_M_impl._M_finish, 29761: __pos + difference_type(__n), 29761: __x_copy, __pos, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: std::fill(__pos, __old_finish, __x_copy); 29761: } 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29761: __new_finish._M_node + 1); 29761: throw; 29761: } 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_insert_aux(iterator __pos, 29761: _ForwardIterator __first, _ForwardIterator __last, 29761: size_type __n) 29761: { 29761: const difference_type __elemsbefore = __pos - this->_M_impl._M_start; 29761: const size_type __length = size(); 29761: if (static_cast(__elemsbefore) < __length / 2) 29761: { 29761: iterator __new_start = _M_reserve_elements_at_front(__n); 29761: iterator __old_start = this->_M_impl._M_start; 29761: __pos = this->_M_impl._M_start + __elemsbefore; 29761: try 29761: { 29761: if (__elemsbefore >= difference_type(__n)) 29761: { 29761: iterator __start_n = (this->_M_impl._M_start 29761: + difference_type(__n)); 29761: std::__uninitialized_move_a(this->_M_impl._M_start, 29761: __start_n, __new_start, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: std::move(__start_n, __pos, __old_start); 29761: std::copy(__first, __last, __pos - difference_type(__n)); 29761: } 29761: else 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, difference_type(__n) - __elemsbefore); 29761: std::__uninitialized_move_copy(this->_M_impl._M_start, 29761: __pos, __first, __mid, 29761: __new_start, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_start = __new_start; 29761: std::copy(__mid, __last, __old_start); 29761: } 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(__new_start._M_node, 29761: this->_M_impl._M_start._M_node); 29761: throw; 29761: } 29761: } 29761: else 29761: { 29761: iterator __new_finish = _M_reserve_elements_at_back(__n); 29761: iterator __old_finish = this->_M_impl._M_finish; 29761: const difference_type __elemsafter = 29761: difference_type(__length) - __elemsbefore; 29761: __pos = this->_M_impl._M_finish - __elemsafter; 29761: try 29761: { 29761: if (__elemsafter > difference_type(__n)) 29761: { 29761: iterator __finish_n = (this->_M_impl._M_finish 29761: - difference_type(__n)); 29761: std::__uninitialized_move_a(__finish_n, 29761: this->_M_impl._M_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: std::move_backward(__pos, __finish_n, __old_finish); 29761: std::copy(__first, __last, __pos); 29761: } 29761: else 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, __elemsafter); 29761: std::__uninitialized_copy_move(__mid, __last, __pos, 29761: this->_M_impl._M_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __new_finish; 29761: std::copy(__first, __mid, __pos); 29761: } 29761: } 29761: catch(...) 29761: { 29761: _M_destroy_nodes(this->_M_impl._M_finish._M_node + 1, 29761: __new_finish._M_node + 1); 29761: throw; 29761: } 29761: } 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_destroy_data_aux(iterator __first, iterator __last) 29761: { 29761: for (_Map_pointer __node = __first._M_node + 1; 29761: __node < __last._M_node; ++__node) 29761: std::_Destroy(*__node, *__node + _S_buffer_size(), 29761: _M_get_Tp_allocator()); 29761: 29761: if (__first._M_node != __last._M_node) 29761: { 29761: std::_Destroy(__first._M_cur, __first._M_last, 29761: _M_get_Tp_allocator()); 29761: std::_Destroy(__last._M_first, __last._M_cur, 29761: _M_get_Tp_allocator()); 29761: } 29761: else 29761: std::_Destroy(__first._M_cur, __last._M_cur, 29761: _M_get_Tp_allocator()); 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_new_elements_at_front(size_type __new_elems) 29761: { 29761: if (this->max_size() - this->size() < __new_elems) 29761: __throw_length_error(("deque::_M_new_elements_at_front")); 29761: 29761: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 29761: / _S_buffer_size()); 29761: _M_reserve_map_at_front(__new_nodes); 29761: size_type __i; 29761: try 29761: { 29761: for (__i = 1; __i <= __new_nodes; ++__i) 29761: *(this->_M_impl._M_start._M_node - __i) = this->_M_allocate_node(); 29761: } 29761: catch(...) 29761: { 29761: for (size_type __j = 1; __j < __i; ++__j) 29761: _M_deallocate_node(*(this->_M_impl._M_start._M_node - __j)); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_new_elements_at_back(size_type __new_elems) 29761: { 29761: if (this->max_size() - this->size() < __new_elems) 29761: __throw_length_error(("deque::_M_new_elements_at_back")); 29761: 29761: const size_type __new_nodes = ((__new_elems + _S_buffer_size() - 1) 29761: / _S_buffer_size()); 29761: _M_reserve_map_at_back(__new_nodes); 29761: size_type __i; 29761: try 29761: { 29761: for (__i = 1; __i <= __new_nodes; ++__i) 29761: *(this->_M_impl._M_finish._M_node + __i) = this->_M_allocate_node(); 29761: } 29761: catch(...) 29761: { 29761: for (size_type __j = 1; __j < __i; ++__j) 29761: _M_deallocate_node(*(this->_M_impl._M_finish._M_node + __j)); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: deque<_Tp, _Alloc>:: 29761: _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front) 29761: { 29761: const size_type __old_num_nodes 29761: = this->_M_impl._M_finish._M_node - this->_M_impl._M_start._M_node + 1; 29761: const size_type __new_num_nodes = __old_num_nodes + __nodes_to_add; 29761: 29761: _Map_pointer __new_nstart; 29761: if (this->_M_impl._M_map_size > 2 * __new_num_nodes) 29761: { 29761: __new_nstart = this->_M_impl._M_map + (this->_M_impl._M_map_size 29761: - __new_num_nodes) / 2 29761: + (__add_at_front ? __nodes_to_add : 0); 29761: if (__new_nstart < this->_M_impl._M_start._M_node) 29761: std::copy(this->_M_impl._M_start._M_node, 29761: this->_M_impl._M_finish._M_node + 1, 29761: __new_nstart); 29761: else 29761: std::copy_backward(this->_M_impl._M_start._M_node, 29761: this->_M_impl._M_finish._M_node + 1, 29761: __new_nstart + __old_num_nodes); 29761: } 29761: else 29761: { 29761: size_type __new_map_size = this->_M_impl._M_map_size 29761: + std::max(this->_M_impl._M_map_size, 29761: __nodes_to_add) + 2; 29761: 29761: _Map_pointer __new_map = this->_M_allocate_map(__new_map_size); 29761: __new_nstart = __new_map + (__new_map_size - __new_num_nodes) / 2 29761: + (__add_at_front ? __nodes_to_add : 0); 29761: std::copy(this->_M_impl._M_start._M_node, 29761: this->_M_impl._M_finish._M_node + 1, 29761: __new_nstart); 29761: _M_deallocate_map(this->_M_impl._M_map, this->_M_impl._M_map_size); 29761: 29761: this->_M_impl._M_map = __new_map; 29761: this->_M_impl._M_map_size = __new_map_size; 29761: } 29761: 29761: this->_M_impl._M_start._M_set_node(__new_nstart); 29761: this->_M_impl._M_finish._M_set_node(__new_nstart + __old_num_nodes - 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __first, 29761: const std::_Deque_iterator<_Tp, _Tp&, _Tp*>& __last, 29761: const _VTp& __value) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29761: if (__first._M_node != __last._M_node) 29761: { 29761: std::__fill_a1(__first._M_cur, __first._M_last, __value); 29761: 29761: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 29761: __node < __last._M_node; ++__node) 29761: std::__fill_a1(*__node, *__node + _Iter::_S_buffer_size(), __value); 29761: 29761: std::__fill_a1(__last._M_first, __last._M_cur, __value); 29761: } 29761: else 29761: std::__fill_a1(__first._M_cur, __last._M_cur, __value); 29761: } 29761: 29761: template 29761: _OI 29761: __copy_move_dit(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29761: _OI __result) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29761: if (__first._M_node != __last._M_node) 29761: { 29761: __result 29761: = std::__copy_move_a1<_IsMove>(__first._M_cur, __first._M_last, 29761: __result); 29761: 29761: for (typename _Iter::_Map_pointer __node = __first._M_node + 1; 29761: __node != __last._M_node; ++__node) 29761: __result 29761: = std::__copy_move_a1<_IsMove>(*__node, 29761: *__node + _Iter::_S_buffer_size(), 29761: __result); 29761: 29761: return std::__copy_move_a1<_IsMove>(__last._M_first, __last._M_cur, 29761: __result); 29761: } 29761: 29761: return std::__copy_move_a1<_IsMove>(__first._M_cur, __last._M_cur, 29761: __result); 29761: } 29761: 29761: template 29761: _OI 29761: __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29761: _OI __result) 29761: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29761: __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 29761: { return __copy_move_dit<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29761: __copy_move_a1(_II __first, _II __last, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29761: typedef typename _Iter::difference_type difference_type; 29761: 29761: difference_type __len = __last - __first; 29761: while (__len > 0) 29761: { 29761: const difference_type __clen 29761: = std::min(__len, __result._M_last - __result._M_cur); 29761: std::__copy_move_a1<_IsMove>(__first, __first + __clen, 29761: __result._M_cur); 29761: 29761: __first += __clen; 29761: __result += __clen; 29761: __len -= __clen; 29761: } 29761: 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_char<_CharT>::__value, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29761: __copy_move_a2( 29761: istreambuf_iterator<_CharT, char_traits<_CharT> > __first, 29761: istreambuf_iterator<_CharT, char_traits<_CharT> > __last, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result) 29761: { 29761: if (__first == __last) 29761: return __result; 29761: 29761: for (;;) 29761: { 29761: const std::ptrdiff_t __len = __result._M_last - __result._M_cur; 29761: const std::ptrdiff_t __nb 29761: = std::__copy_n_a(__first, __len, __result._M_cur, false) 29761: - __result._M_cur; 29761: __result += __nb; 29761: 29761: if (__nb != __len) 29761: break; 29761: } 29761: 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_char<_CharT>::__value, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type 29761: __copy_n_a( 29761: istreambuf_iterator<_CharT, char_traits<_CharT> > __it, _Size __size, 29761: std::_Deque_iterator<_CharT, _CharT&, _CharT*> __result, 29761: bool __strict) 29761: { 29761: if (__size == 0) 29761: return __result; 29761: 29761: do 29761: { 29761: const _Size __len 29761: = std::min<_Size>(__result._M_last - __result._M_cur, __size); 29761: std::__copy_n_a(__it, __len, __result._M_cur, __strict); 29761: __result += __len; 29761: __size -= __len; 29761: } 29761: while (__size != 0); 29761: return __result; 29761: } 29761: 29761: template 29761: _OI 29761: __copy_move_backward_dit( 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29761: _OI __result) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29761: if (__first._M_node != __last._M_node) 29761: { 29761: __result = std::__copy_move_backward_a1<_IsMove>( 29761: __last._M_first, __last._M_cur, __result); 29761: 29761: for (typename _Iter::_Map_pointer __node = __last._M_node - 1; 29761: __node != __first._M_node; --__node) 29761: __result = std::__copy_move_backward_a1<_IsMove>( 29761: *__node, *__node + _Iter::_S_buffer_size(), __result); 29761: 29761: return std::__copy_move_backward_a1<_IsMove>( 29761: __first._M_cur, __first._M_last, __result); 29761: } 29761: 29761: return std::__copy_move_backward_a1<_IsMove>( 29761: __first._M_cur, __last._M_cur, __result); 29761: } 29761: 29761: template 29761: _OI 29761: __copy_move_backward_a1( 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last, 29761: _OI __result) 29761: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> 29761: __copy_move_backward_a1( 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr> __first, 29761: std::_Deque_iterator<_ITp, _IRef, _IPtr> __last, 29761: std::_Deque_iterator<_OTp, _OTp&, _OTp*> __result) 29761: { return __copy_move_backward_dit<_IsMove>(__first, __last, __result); } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type 29761: __copy_move_backward_a1(_II __first, _II __last, 29761: std::_Deque_iterator<_Tp, _Tp&, _Tp*> __result) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Tp&, _Tp*> _Iter; 29761: typedef typename _Iter::difference_type difference_type; 29761: 29761: difference_type __len = __last - __first; 29761: while (__len > 0) 29761: { 29761: difference_type __rlen = __result._M_cur - __result._M_first; 29761: _Tp* __rend = __result._M_cur; 29761: if (!__rlen) 29761: { 29761: __rlen = _Iter::_S_buffer_size(); 29761: __rend = *(__result._M_node - 1) + __rlen; 29761: } 29761: 29761: const difference_type __clen = std::min(__len, __rlen); 29761: std::__copy_move_backward_a1<_IsMove>(__last - __clen, __last, __rend); 29761: 29761: __last -= __clen; 29761: __result -= __clen; 29761: __len -= __clen; 29761: } 29761: 29761: return __result; 29761: } 29761: 29761: template 29761: bool 29761: __equal_dit( 29761: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __first1, 29761: const std::_Deque_iterator<_Tp, _Ref, _Ptr>& __last1, 29761: _II __first2) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29761: if (__first1._M_node != __last1._M_node) 29761: { 29761: if (!std::__equal_aux1(__first1._M_cur, __first1._M_last, __first2)) 29761: return false; 29761: 29761: __first2 += __first1._M_last - __first1._M_cur; 29761: for (typename _Iter::_Map_pointer __node = __first1._M_node + 1; 29761: __node != __last1._M_node; 29761: __first2 += _Iter::_S_buffer_size(), ++__node) 29761: if (!std::__equal_aux1(*__node, *__node + _Iter::_S_buffer_size(), 29761: __first2)) 29761: return false; 29761: 29761: return std::__equal_aux1(__last1._M_first, __last1._M_cur, __first2); 29761: } 29761: 29761: return std::__equal_aux1(__first1._M_cur, __last1._M_cur, __first2); 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, bool>::__type 29761: __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr> __first1, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __last1, 29761: _II __first2) 29761: { return std::__equal_dit(__first1, __last1, __first2); } 29761: 29761: template 29761: bool 29761: __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2) 29761: { return std::__equal_dit(__first1, __last1, __first2); } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if< 29761: __is_random_access_iter<_II>::__value, bool>::__type 29761: __equal_aux1(_II __first1, _II __last1, 29761: std::_Deque_iterator<_Tp, _Ref, _Ptr> __first2) 29761: { 29761: typedef std::_Deque_iterator<_Tp, _Ref, _Ptr> _Iter; 29761: typedef typename _Iter::difference_type difference_type; 29761: 29761: difference_type __len = __last1 - __first1; 29761: while (__len > 0) 29761: { 29761: const difference_type __clen 29761: = std::min(__len, __first2._M_last - __first2._M_cur); 29761: if (!std::__equal_aux1(__first1, __first1 + __clen, __first2._M_cur)) 29761: return false; 29761: 29761: __first1 += __clen; 29761: __len -= __clen; 29761: __first2 += __clen; 29761: } 29761: 29761: return true; 29761: } 29761: 29761: template 29761: int 29761: __lex_cmp_dit( 29761: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __first1, 29761: std::_Deque_iterator<_Tp1, _Ref, _Ptr> __last1, 29761: const _Tp2* __first2, const _Tp2* __last2) 29761: { 29761: const bool __simple = 29761: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 29761: && __is_pointer<_Ptr>::__value 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ); 29761: typedef std::__lexicographical_compare<__simple> _Lc; 29761: 29761: while (__first1._M_node != __last1._M_node) 29761: { 29761: const ptrdiff_t __len1 = __first1._M_last - __first1._M_cur; 29761: const ptrdiff_t __len2 = __last2 - __first2; 29761: const ptrdiff_t __len = std::min(__len1, __len2); 29761: 29761: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_last, 29761: __first2, __first2 + __len)) 29761: return __ret; 29761: 29761: __first1 += __len; 29761: __first2 += __len; 29761: } 29761: return _Lc::__3way(__first1._M_cur, __last1._M_cur, 29761: __first2, __last2); 29761: } 29761: 29761: template 29761: inline bool 29761: __lexicographical_compare_aux1( 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29761: _Tp2* __first2, _Tp2* __last2) 29761: { return std::__lex_cmp_dit(__first1, __last1, __first2, __last2) < 0; } 29761: 29761: template 29761: inline bool 29761: __lexicographical_compare_aux1(_Tp1* __first1, _Tp1* __last1, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 29761: { return std::__lex_cmp_dit(__first2, __last2, __first1, __last1) > 0; } 29761: 29761: template 29761: inline bool 29761: __lexicographical_compare_aux1( 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __first1, 29761: std::_Deque_iterator<_Tp1, _Ref1, _Ptr1> __last1, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __first2, 29761: std::_Deque_iterator<_Tp2, _Ref2, _Ptr2> __last2) 29761: { 29761: const bool __simple = 29761: (__is_memcmp_ordered_with<_Tp1, _Tp2>::__value 29761: && __is_pointer<_Ptr1>::__value 29761: && __is_pointer<_Ptr2>::__value 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ); 29761: typedef std::__lexicographical_compare<__simple> _Lc; 29761: 29761: while (__first1 != __last1) 29761: { 29761: const ptrdiff_t __len2 = __first2._M_node == __last2._M_node 29761: ? __last2._M_cur - __first2._M_cur 29761: : __first2._M_last - __first2._M_cur; 29761: if (__len2 == 0) 29761: return false; 29761: const ptrdiff_t __len1 = __first1._M_node == __last1._M_node 29761: ? __last1._M_cur - __first1._M_cur 29761: : __first1._M_last - __first1._M_cur; 29761: const ptrdiff_t __len = std::min(__len1, __len2); 29761: if (int __ret = _Lc::__3way(__first1._M_cur, __first1._M_cur + __len, 29761: __first2._M_cur, __first2._M_cur + __len)) 29761: return __ret < 0; 29761: 29761: __first1 += __len; 29761: __first2 += __len; 29761: } 29761: 29761: return __last2 != __first2; 29761: } 29761: 29761: 29761: } 29761: # 70 "/usr/include/c++/14/deque" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 75 "/usr/include/c++/14/deque" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/memory_resource.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstddef" 1 3 29761: # 42 "/usr/include/c++/14/cstddef" 3 29761: 29761: # 43 "/usr/include/c++/14/cstddef" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 145 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29761: typedef int ptrdiff_t; 29761: # 214 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29761: typedef unsigned int size_t; 29761: # 425 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29761: typedef struct { 29761: long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); 29761: long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); 29761: # 436 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 3 4 29761: } max_align_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef decltype(nullptr) nullptr_t; 29761: # 51 "/usr/include/c++/14/cstddef" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 54 "/usr/include/c++/14/cstddef" 2 3 29761: 29761: extern "C++" 29761: { 29761: 29761: namespace std 29761: { 29761: 29761: using ::max_align_t; 29761: } 29761: 29761: 29761: 29761: namespace std 29761: { 29761: 29761: 29761: enum class byte : unsigned char {}; 29761: 29761: template struct __byte_operand { }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: 29761: 29761: 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: template<> struct __byte_operand { using __type = byte; }; 29761: # 109 "/usr/include/c++/14/cstddef" 3 29761: template 29761: struct __byte_operand 29761: : __byte_operand<_IntegerType> { }; 29761: template 29761: struct __byte_operand 29761: : __byte_operand<_IntegerType> { }; 29761: template 29761: struct __byte_operand 29761: : __byte_operand<_IntegerType> { }; 29761: 29761: template 29761: using __byte_op_t = typename __byte_operand<_IntegerType>::__type; 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr __byte_op_t<_IntegerType> 29761: operator<<(byte __b, _IntegerType __shift) noexcept 29761: { return (byte)(unsigned char)((unsigned)__b << __shift); } 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr __byte_op_t<_IntegerType> 29761: operator>>(byte __b, _IntegerType __shift) noexcept 29761: { return (byte)(unsigned char)((unsigned)__b >> __shift); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte 29761: operator|(byte __l, byte __r) noexcept 29761: { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte 29761: operator&(byte __l, byte __r) noexcept 29761: { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte 29761: operator^(byte __l, byte __r) noexcept 29761: { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte 29761: operator~(byte __b) noexcept 29761: { return (byte)(unsigned char)~(unsigned)__b; } 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr __byte_op_t<_IntegerType>& 29761: operator<<=(byte& __b, _IntegerType __shift) noexcept 29761: { return __b = __b << __shift; } 29761: 29761: template 29761: [[__gnu__::__always_inline__]] 29761: constexpr __byte_op_t<_IntegerType>& 29761: operator>>=(byte& __b, _IntegerType __shift) noexcept 29761: { return __b = __b >> __shift; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte& 29761: operator|=(byte& __l, byte __r) noexcept 29761: { return __l = __l | __r; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte& 29761: operator&=(byte& __l, byte __r) noexcept 29761: { return __l = __l & __r; } 29761: 29761: [[__gnu__::__always_inline__]] 29761: constexpr byte& 29761: operator^=(byte& __l, byte __r) noexcept 29761: { return __l = __l ^ __r; } 29761: 29761: template 29761: [[nodiscard,__gnu__::__always_inline__]] 29761: constexpr _IntegerType 29761: to_integer(__byte_op_t<_IntegerType> __b) noexcept 29761: { return _IntegerType(__b); } 29761: 29761: 29761: } 29761: 29761: } 29761: # 39 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/uses_allocator.h" 1 3 29761: # 40 "/usr/include/c++/14/bits/uses_allocator.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: struct __erased_type { }; 29761: 29761: 29761: 29761: 29761: template 29761: using __is_erased_or_convertible 29761: = __or_, is_same<_Tp, __erased_type>>; 29761: 29761: 29761: struct allocator_arg_t { explicit allocator_arg_t() = default; }; 29761: 29761: inline constexpr allocator_arg_t allocator_arg = 29761: allocator_arg_t(); 29761: 29761: template> 29761: struct __uses_allocator_helper 29761: : false_type { }; 29761: 29761: template 29761: struct __uses_allocator_helper<_Tp, _Alloc, 29761: __void_t> 29761: : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type 29761: { }; 29761: 29761: 29761: template 29761: struct uses_allocator 29761: : __uses_allocator_helper<_Tp, _Alloc>::type 29761: { }; 29761: 29761: struct __uses_alloc_base { }; 29761: 29761: struct __uses_alloc0 : __uses_alloc_base 29761: { 29761: struct _Sink { void operator=(const void*) { } } _M_a; 29761: }; 29761: 29761: template 29761: struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; 29761: 29761: template 29761: struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; 29761: 29761: template 29761: struct __uses_alloc; 29761: 29761: template 29761: struct __uses_alloc 29761: : __conditional_t< 29761: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, 29761: __uses_alloc1<_Alloc>, 29761: __uses_alloc2<_Alloc>> 29761: { 29761: 29761: 29761: static_assert(__or_< 29761: is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, 29761: is_constructible<_Tp, _Args..., const _Alloc&>>::value, 29761: "construction with an allocator must be possible" 29761: " if uses_allocator is true"); 29761: }; 29761: 29761: template 29761: struct __uses_alloc 29761: : __uses_alloc0 { }; 29761: 29761: template 29761: using __uses_alloc_t = 29761: __uses_alloc::value, _Tp, _Alloc, _Args...>; 29761: 29761: template 29761: 29761: inline __uses_alloc_t<_Tp, _Alloc, _Args...> 29761: __use_alloc(const _Alloc& __a) 29761: { 29761: __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; 29761: __ret._M_a = std::__addressof(__a); 29761: return __ret; 29761: } 29761: 29761: template 29761: void 29761: __use_alloc(const _Alloc&&) = delete; 29761: 29761: 29761: template 29761: inline constexpr bool uses_allocator_v = 29761: uses_allocator<_Tp, _Alloc>::value; 29761: 29761: 29761: template class _Predicate, 29761: typename _Tp, typename _Alloc, typename... _Args> 29761: struct __is_uses_allocator_predicate 29761: : __conditional_t::value, 29761: __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, 29761: _Predicate<_Tp, _Args..., _Alloc>>, 29761: _Predicate<_Tp, _Args...>> { }; 29761: 29761: template 29761: struct __is_uses_allocator_constructible 29761: : __is_uses_allocator_predicate 29761: { }; 29761: 29761: 29761: template 29761: inline constexpr bool __is_uses_allocator_constructible_v = 29761: __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 29761: 29761: 29761: template 29761: struct __is_nothrow_uses_allocator_constructible 29761: : __is_uses_allocator_predicate 29761: { }; 29761: 29761: 29761: 29761: template 29761: inline constexpr bool 29761: __is_nothrow_uses_allocator_constructible_v = 29761: __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; 29761: 29761: 29761: template 29761: void __uses_allocator_construct_impl(__uses_alloc0, _Tp* __ptr, 29761: _Args&&... __args) 29761: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } 29761: 29761: template 29761: void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, 29761: _Args&&... __args) 29761: { 29761: ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: template 29761: void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, 29761: _Args&&... __args) 29761: { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } 29761: 29761: template 29761: void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, 29761: _Args&&... __args) 29761: { 29761: std::__uses_allocator_construct_impl( 29761: std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: 29761: } 29761: # 41 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/uses_allocator_args.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/uses_allocator_args.h" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 36 "/usr/include/c++/14/bits/uses_allocator_args.h" 2 3 29761: # 42 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/tuple" 1 3 29761: # 32 "/usr/include/c++/14/tuple" 3 29761: 29761: # 33 "/usr/include/c++/14/tuple" 3 29761: # 54 "/usr/include/c++/14/tuple" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 55 "/usr/include/c++/14/tuple" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class tuple; 29761: 29761: template 29761: struct __is_empty_non_tuple : is_empty<_Tp> { }; 29761: 29761: 29761: template 29761: struct __is_empty_non_tuple> : false_type { }; 29761: 29761: 29761: template 29761: using __empty_not_final 29761: = __conditional_t<__is_final(_Tp), false_type, 29761: __is_empty_non_tuple<_Tp>>; 29761: 29761: template::value> 29761: struct _Head_base; 29761: 29761: 29761: template 29761: struct _Head_base<_Idx, _Head, true> 29761: { 29761: constexpr _Head_base() 29761: : _M_head_impl() { } 29761: 29761: constexpr _Head_base(const _Head& __h) 29761: : _M_head_impl(__h) { } 29761: 29761: constexpr _Head_base(const _Head_base&) = default; 29761: constexpr _Head_base(_Head_base&&) = default; 29761: 29761: template 29761: constexpr _Head_base(_UHead&& __h) 29761: : _M_head_impl(std::forward<_UHead>(__h)) { } 29761: 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc0) 29761: : _M_head_impl() { } 29761: 29761: template 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 29761: : _M_head_impl(allocator_arg, *__a._M_a) { } 29761: 29761: template 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 29761: : _M_head_impl(*__a._M_a) { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc0, _UHead&& __uhead) 29761: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 29761: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 29761: { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 29761: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 29761: 29761: static constexpr _Head& 29761: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 29761: 29761: static constexpr const _Head& 29761: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 29761: 29761: [[__no_unique_address__]] _Head _M_head_impl; 29761: }; 29761: # 195 "/usr/include/c++/14/tuple" 3 29761: template 29761: struct _Head_base<_Idx, _Head, false> 29761: { 29761: constexpr _Head_base() 29761: : _M_head_impl() { } 29761: 29761: constexpr _Head_base(const _Head& __h) 29761: : _M_head_impl(__h) { } 29761: 29761: constexpr _Head_base(const _Head_base&) = default; 29761: constexpr _Head_base(_Head_base&&) = default; 29761: 29761: template 29761: constexpr _Head_base(_UHead&& __h) 29761: : _M_head_impl(std::forward<_UHead>(__h)) { } 29761: 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc0) 29761: : _M_head_impl() { } 29761: 29761: template 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) 29761: : _M_head_impl(allocator_arg, *__a._M_a) { } 29761: 29761: template 29761: 29761: _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) 29761: : _M_head_impl(*__a._M_a) { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc0, _UHead&& __uhead) 29761: : _M_head_impl(std::forward<_UHead>(__uhead)) { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) 29761: : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) 29761: { } 29761: 29761: template 29761: 29761: _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) 29761: : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } 29761: 29761: static constexpr _Head& 29761: _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } 29761: 29761: static constexpr const _Head& 29761: _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } 29761: 29761: _Head _M_head_impl; 29761: }; 29761: # 274 "/usr/include/c++/14/tuple" 3 29761: template 29761: struct _Tuple_impl; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Tuple_impl<_Idx, _Head, _Tail...> 29761: : public _Tuple_impl<_Idx + 1, _Tail...>, 29761: private _Head_base<_Idx, _Head> 29761: { 29761: template friend struct _Tuple_impl; 29761: 29761: typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; 29761: typedef _Head_base<_Idx, _Head> _Base; 29761: 29761: static constexpr _Head& 29761: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29761: 29761: static constexpr const _Head& 29761: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29761: 29761: static constexpr _Inherited& 29761: _M_tail(_Tuple_impl& __t) noexcept { return __t; } 29761: 29761: static constexpr const _Inherited& 29761: _M_tail(const _Tuple_impl& __t) noexcept { return __t; } 29761: 29761: constexpr _Tuple_impl() 29761: : _Inherited(), _Base() { } 29761: 29761: explicit constexpr 29761: _Tuple_impl(const _Head& __head, const _Tail&... __tail) 29761: : _Inherited(__tail...), _Base(__head) 29761: { } 29761: 29761: template> 29761: explicit constexpr 29761: _Tuple_impl(_UHead&& __head, _UTail&&... __tail) 29761: : _Inherited(std::forward<_UTail>(__tail)...), 29761: _Base(std::forward<_UHead>(__head)) 29761: { } 29761: 29761: constexpr _Tuple_impl(const _Tuple_impl&) = default; 29761: 29761: 29761: 29761: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 29761: 29761: _Tuple_impl(_Tuple_impl&&) = default; 29761: 29761: template 29761: constexpr 29761: _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) 29761: : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), 29761: _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29761: : _Inherited(std::move 29761: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 29761: _Base(std::forward<_UHead> 29761: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 29761: { } 29761: # 370 "/usr/include/c++/14/tuple" 3 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Inherited(__tag, __a), 29761: _Base(__tag, __use_alloc<_Head>(__a)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: const _Head& __head, const _Tail&... __tail) 29761: : _Inherited(__tag, __a, __tail...), 29761: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) 29761: { } 29761: 29761: template> 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: _UHead&& __head, _UTail&&... __tail) 29761: : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), 29761: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29761: std::forward<_UHead>(__head)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: const _Tuple_impl& __in) 29761: : _Inherited(__tag, __a, _M_tail(__in)), 29761: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: _Tuple_impl&& __in) 29761: : _Inherited(__tag, __a, std::move(_M_tail(__in))), 29761: _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 29761: std::forward<_Head>(_M_head(__in))) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) 29761: : _Inherited(__tag, __a, 29761: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), 29761: _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 29761: _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, 29761: _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29761: : _Inherited(__tag, __a, std::move 29761: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), 29761: _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29761: std::forward<_UHead> 29761: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) 29761: { } 29761: # 465 "/usr/include/c++/14/tuple" 3 29761: template 29761: 29761: void 29761: _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) 29761: { 29761: _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); 29761: _M_tail(*this)._M_assign( 29761: _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) 29761: { 29761: _M_head(*this) = std::forward<_UHead> 29761: (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); 29761: _M_tail(*this)._M_assign( 29761: std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); 29761: } 29761: # 525 "/usr/include/c++/14/tuple" 3 29761: protected: 29761: 29761: void 29761: _M_swap(_Tuple_impl& __in) 29761: { 29761: using std::swap; 29761: swap(_M_head(*this), _M_head(__in)); 29761: _Inherited::_M_swap(_M_tail(__in)); 29761: } 29761: # 544 "/usr/include/c++/14/tuple" 3 29761: }; 29761: 29761: 29761: template 29761: struct _Tuple_impl<_Idx, _Head> 29761: : private _Head_base<_Idx, _Head> 29761: { 29761: template friend struct _Tuple_impl; 29761: 29761: typedef _Head_base<_Idx, _Head> _Base; 29761: 29761: static constexpr _Head& 29761: _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29761: 29761: static constexpr const _Head& 29761: _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } 29761: 29761: constexpr 29761: _Tuple_impl() 29761: : _Base() { } 29761: 29761: explicit constexpr 29761: _Tuple_impl(const _Head& __head) 29761: : _Base(__head) 29761: { } 29761: 29761: template 29761: explicit constexpr 29761: _Tuple_impl(_UHead&& __head) 29761: : _Base(std::forward<_UHead>(__head)) 29761: { } 29761: 29761: constexpr _Tuple_impl(const _Tuple_impl&) = default; 29761: 29761: 29761: 29761: _Tuple_impl& operator=(const _Tuple_impl&) = delete; 29761: 29761: 29761: 29761: 29761: constexpr 29761: _Tuple_impl(_Tuple_impl&& __in) 29761: noexcept(is_nothrow_move_constructible<_Head>::value) 29761: : _Base(static_cast<_Base&&>(__in)) 29761: { } 29761: 29761: 29761: template 29761: constexpr 29761: _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) 29761: : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) 29761: : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 29761: { } 29761: # 626 "/usr/include/c++/14/tuple" 3 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Base(__tag, __use_alloc<_Head>(__a)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: const _Head& __head) 29761: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: _UHead&& __head) 29761: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29761: std::forward<_UHead>(__head)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: const _Tuple_impl& __in) 29761: : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: _Tuple_impl&& __in) 29761: : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), 29761: std::forward<_Head>(_M_head(__in))) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: const _Tuple_impl<_Idx, _UHead>& __in) 29761: : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), 29761: _Tuple_impl<_Idx, _UHead>::_M_head(__in)) 29761: { } 29761: 29761: template 29761: 29761: _Tuple_impl(allocator_arg_t, const _Alloc& __a, 29761: _Tuple_impl<_Idx, _UHead>&& __in) 29761: : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), 29761: std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) 29761: { } 29761: # 705 "/usr/include/c++/14/tuple" 3 29761: template 29761: 29761: void 29761: _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) 29761: { 29761: _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) 29761: { 29761: _M_head(*this) 29761: = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); 29761: } 29761: # 751 "/usr/include/c++/14/tuple" 3 29761: protected: 29761: 29761: void 29761: _M_swap(_Tuple_impl& __in) 29761: { 29761: using std::swap; 29761: swap(_M_head(*this), _M_head(__in)); 29761: } 29761: # 768 "/usr/include/c++/14/tuple" 3 29761: }; 29761: 29761: 29761: 29761: template 29761: struct _TupleConstraints 29761: { 29761: template 29761: using __constructible = __and_...>; 29761: 29761: template 29761: using __convertible = __and_...>; 29761: 29761: 29761: 29761: 29761: template 29761: static constexpr bool __is_implicitly_constructible() 29761: { 29761: return __and_<__constructible<_UTypes...>, 29761: __convertible<_UTypes...> 29761: >::value; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: static constexpr bool __is_explicitly_constructible() 29761: { 29761: return __and_<__constructible<_UTypes...>, 29761: __not_<__convertible<_UTypes...>> 29761: >::value; 29761: } 29761: 29761: static constexpr bool __is_implicitly_default_constructible() 29761: { 29761: return __and_... 29761: >::value; 29761: } 29761: 29761: static constexpr bool __is_explicitly_default_constructible() 29761: { 29761: return __and_..., 29761: __not_<__and_< 29761: std::__is_implicitly_default_constructible<_Types>...> 29761: >>::value; 29761: } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct _TupleConstraints 29761: { 29761: template 29761: static constexpr bool __is_implicitly_constructible() 29761: { return false; } 29761: 29761: template 29761: static constexpr bool __is_explicitly_constructible() 29761: { return false; } 29761: }; 29761: 29761: 29761: template 29761: class tuple : public _Tuple_impl<0, _Elements...> 29761: { 29761: using _Inherited = _Tuple_impl<0, _Elements...>; 29761: # 1351 "/usr/include/c++/14/tuple" 3 29761: template 29761: using _TCC = _TupleConstraints<_Cond, _Elements...>; 29761: 29761: 29761: template 29761: using _ImplicitDefaultCtor = __enable_if_t< 29761: _TCC<_Dummy>::__is_implicitly_default_constructible(), 29761: bool>; 29761: 29761: 29761: template 29761: using _ExplicitDefaultCtor = __enable_if_t< 29761: _TCC<_Dummy>::__is_explicitly_default_constructible(), 29761: bool>; 29761: 29761: 29761: template 29761: using _ImplicitCtor = __enable_if_t< 29761: _TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), 29761: bool>; 29761: 29761: 29761: template 29761: using _ExplicitCtor = __enable_if_t< 29761: _TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), 29761: bool>; 29761: 29761: 29761: template 29761: static constexpr bool __nothrow_constructible() 29761: { 29761: return 29761: __and_...>::value; 29761: } 29761: 29761: 29761: template 29761: static constexpr bool __valid_args() 29761: { 29761: return sizeof...(_Elements) == 1 29761: && !is_same>::value; 29761: } 29761: 29761: 29761: template 29761: static constexpr bool __valid_args() 29761: { return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } 29761: # 1408 "/usr/include/c++/14/tuple" 3 29761: template> 29761: struct _UseOtherCtor 29761: : false_type 29761: { }; 29761: 29761: 29761: template 29761: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> 29761: : __or_, is_constructible<_Tp, _Tuple>>::type 29761: { }; 29761: 29761: 29761: template 29761: struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> 29761: : true_type 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: static constexpr bool __use_other_ctor() 29761: { return _UseOtherCtor<_Tuple>::value; } 29761: # 1454 "/usr/include/c++/14/tuple" 3 29761: public: 29761: template::value> = true> 29761: constexpr 29761: tuple() 29761: noexcept(__and_...>::value) 29761: : _Inherited() { } 29761: 29761: template::value> = false> 29761: explicit constexpr 29761: tuple() 29761: noexcept(__and_...>::value) 29761: : _Inherited() { } 29761: 29761: template= 1), 29761: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 29761: constexpr 29761: tuple(const _Elements&... __elements) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__elements...) { } 29761: 29761: template= 1), 29761: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 29761: explicit constexpr 29761: tuple(const _Elements&... __elements) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__elements...) { } 29761: 29761: template(), 29761: _ImplicitCtor<_Valid, _UElements...> = true> 29761: constexpr 29761: tuple(_UElements&&... __elements) 29761: noexcept(__nothrow_constructible<_UElements...>()) 29761: : _Inherited(std::forward<_UElements>(__elements)...) 29761: { ; } 29761: 29761: template(), 29761: _ExplicitCtor<_Valid, _UElements...> = false> 29761: explicit constexpr 29761: tuple(_UElements&&... __elements) 29761: noexcept(__nothrow_constructible<_UElements...>()) 29761: : _Inherited(std::forward<_UElements>(__elements)...) 29761: { ; } 29761: 29761: constexpr tuple(const tuple&) = default; 29761: 29761: constexpr tuple(tuple&&) = default; 29761: 29761: template&>(), 29761: _ImplicitCtor<_Valid, const _UElements&...> = true> 29761: constexpr 29761: tuple(const tuple<_UElements...>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(static_cast&>(__in)) 29761: { ; } 29761: 29761: template&>(), 29761: _ExplicitCtor<_Valid, const _UElements&...> = false> 29761: explicit constexpr 29761: tuple(const tuple<_UElements...>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(static_cast&>(__in)) 29761: { ; } 29761: 29761: template&&>(), 29761: _ImplicitCtor<_Valid, _UElements...> = true> 29761: constexpr 29761: tuple(tuple<_UElements...>&& __in) 29761: noexcept(__nothrow_constructible<_UElements...>()) 29761: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29761: { ; } 29761: 29761: template&&>(), 29761: _ExplicitCtor<_Valid, _UElements...> = false> 29761: explicit constexpr 29761: tuple(tuple<_UElements...>&& __in) 29761: noexcept(__nothrow_constructible<_UElements...>()) 29761: : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29761: { ; } 29761: 29761: 29761: 29761: template::value> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Inherited(__tag, __a) { } 29761: 29761: template::value> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Inherited(__tag, __a) { } 29761: 29761: template= 1), 29761: _ImplicitCtor<_NotEmpty, const _Elements&...> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const _Elements&... __elements) 29761: : _Inherited(__tag, __a, __elements...) { } 29761: 29761: template= 1), 29761: _ExplicitCtor<_NotEmpty, const _Elements&...> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const _Elements&... __elements) 29761: : _Inherited(__tag, __a, __elements...) { } 29761: 29761: template(), 29761: _ImplicitCtor<_Valid, _UElements...> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: _UElements&&... __elements) 29761: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 29761: { ; } 29761: 29761: template(), 29761: _ExplicitCtor<_Valid, _UElements...> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: _UElements&&... __elements) 29761: : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) 29761: { ; } 29761: 29761: template 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 29761: : _Inherited(__tag, __a, static_cast(__in)) { } 29761: 29761: template 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 29761: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 29761: 29761: template&>(), 29761: _ImplicitCtor<_Valid, const _UElements&...> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const tuple<_UElements...>& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast&>(__in)) 29761: { ; } 29761: 29761: template&>(), 29761: _ExplicitCtor<_Valid, const _UElements&...> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const tuple<_UElements...>& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast&>(__in)) 29761: { ; } 29761: 29761: template&&>(), 29761: _ImplicitCtor<_Valid, _UElements...> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: tuple<_UElements...>&& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29761: { ; } 29761: 29761: template&&>(), 29761: _ExplicitCtor<_Valid, _UElements...> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: tuple<_UElements...>&& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) 29761: { ; } 29761: # 1886 "/usr/include/c++/14/tuple" 3 29761: private: 29761: template 29761: static constexpr 29761: __enable_if_t 29761: __assignable() 29761: { return __and_...>::value; } 29761: 29761: 29761: template 29761: static constexpr bool __nothrow_assignable() 29761: { 29761: return 29761: __and_...>::value; 29761: } 29761: 29761: public: 29761: 29761: 29761: tuple& 29761: operator=(__conditional_t<__assignable(), 29761: const tuple&, 29761: const __nonesuch&> __in) 29761: noexcept(__nothrow_assignable()) 29761: { 29761: this->_M_assign(__in); 29761: return *this; 29761: } 29761: 29761: 29761: tuple& 29761: operator=(__conditional_t<__assignable<_Elements...>(), 29761: tuple&&, 29761: __nonesuch&&> __in) 29761: noexcept(__nothrow_assignable<_Elements...>()) 29761: { 29761: this->_M_assign(std::move(__in)); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable(), tuple&> 29761: operator=(const tuple<_UElements...>& __in) 29761: noexcept(__nothrow_assignable()) 29761: { 29761: this->_M_assign(__in); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable<_UElements...>(), tuple&> 29761: operator=(tuple<_UElements...>&& __in) 29761: noexcept(__nothrow_assignable<_UElements...>()) 29761: { 29761: this->_M_assign(std::move(__in)); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: swap(tuple& __in) 29761: noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) 29761: { _Inherited::_M_swap(__in); } 29761: # 1966 "/usr/include/c++/14/tuple" 3 29761: }; 29761: 29761: 29761: template 29761: tuple(_UTypes...) -> tuple<_UTypes...>; 29761: template 29761: tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; 29761: template 29761: tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; 29761: template 29761: tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; 29761: template 29761: tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; 29761: 29761: 29761: 29761: template<> 29761: class tuple<> 29761: { 29761: public: 29761: 29761: void swap(tuple&) noexcept { } 29761: 29761: 29761: 29761: 29761: 29761: tuple() = default; 29761: 29761: template 29761: 29761: tuple(allocator_arg_t, const _Alloc&) noexcept { } 29761: template 29761: 29761: tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> 29761: { 29761: typedef _Tuple_impl<0, _T1, _T2> _Inherited; 29761: 29761: 29761: template 29761: using _ImplicitDefaultCtor = __enable_if_t< 29761: _TupleConstraints<_Dummy, _U1, _U2>:: 29761: __is_implicitly_default_constructible(), 29761: bool>; 29761: 29761: 29761: template 29761: using _ExplicitDefaultCtor = __enable_if_t< 29761: _TupleConstraints<_Dummy, _U1, _U2>:: 29761: __is_explicitly_default_constructible(), 29761: bool>; 29761: 29761: template 29761: using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; 29761: 29761: 29761: template 29761: using _ImplicitCtor = __enable_if_t< 29761: _TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), 29761: bool>; 29761: 29761: 29761: template 29761: using _ExplicitCtor = __enable_if_t< 29761: _TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), 29761: bool>; 29761: 29761: template 29761: static constexpr bool __assignable() 29761: { 29761: return __and_, 29761: is_assignable<_T2&, _U2>>::value; 29761: } 29761: 29761: template 29761: static constexpr bool __nothrow_assignable() 29761: { 29761: return __and_, 29761: is_nothrow_assignable<_T2&, _U2>>::value; 29761: } 29761: 29761: template 29761: static constexpr bool __nothrow_constructible() 29761: { 29761: return __and_, 29761: is_nothrow_constructible<_T2, _U2>>::value; 29761: } 29761: 29761: static constexpr bool __nothrow_default_constructible() 29761: { 29761: return __and_, 29761: is_nothrow_default_constructible<_T2>>::value; 29761: } 29761: 29761: template 29761: static constexpr bool __is_alloc_arg() 29761: { return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } 29761: # 2085 "/usr/include/c++/14/tuple" 3 29761: public: 29761: template = true> 29761: constexpr 29761: tuple() 29761: noexcept(__nothrow_default_constructible()) 29761: : _Inherited() { } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple() 29761: noexcept(__nothrow_default_constructible()) 29761: : _Inherited() { } 29761: 29761: template = true> 29761: constexpr 29761: tuple(const _T1& __a1, const _T2& __a2) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__a1, __a2) { } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple(const _T1& __a1, const _T2& __a2) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__a1, __a2) { } 29761: 29761: template(), _U1, _U2> = true> 29761: constexpr 29761: tuple(_U1&& __a1, _U2&& __a2) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 29761: { ; } 29761: 29761: template(), _U1, _U2> = false> 29761: explicit constexpr 29761: tuple(_U1&& __a1, _U2&& __a2) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) 29761: { ; } 29761: 29761: constexpr tuple(const tuple&) = default; 29761: 29761: constexpr tuple(tuple&&) = default; 29761: 29761: template = true> 29761: constexpr 29761: tuple(const tuple<_U1, _U2>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(static_cast&>(__in)) 29761: { ; } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple(const tuple<_U1, _U2>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(static_cast&>(__in)) 29761: { ; } 29761: 29761: template = true> 29761: constexpr 29761: tuple(tuple<_U1, _U2>&& __in) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29761: { ; } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple(tuple<_U1, _U2>&& __in) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29761: { ; } 29761: 29761: template = true> 29761: constexpr 29761: tuple(const pair<_U1, _U2>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__in.first, __in.second) 29761: { ; } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple(const pair<_U1, _U2>& __in) 29761: noexcept(__nothrow_constructible()) 29761: : _Inherited(__in.first, __in.second) 29761: { ; } 29761: 29761: template = true> 29761: constexpr 29761: tuple(pair<_U1, _U2>&& __in) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(std::forward<_U1>(__in.first), 29761: std::forward<_U2>(__in.second)) 29761: { ; } 29761: 29761: template = false> 29761: explicit constexpr 29761: tuple(pair<_U1, _U2>&& __in) 29761: noexcept(__nothrow_constructible<_U1, _U2>()) 29761: : _Inherited(std::forward<_U1>(__in.first), 29761: std::forward<_U2>(__in.second)) 29761: { ; } 29761: 29761: 29761: 29761: template::value, _T1, _T2> = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Inherited(__tag, __a) { } 29761: 29761: template::value, _T1, _T2> = false> 29761: 29761: explicit 29761: tuple(allocator_arg_t __tag, const _Alloc& __a) 29761: : _Inherited(__tag, __a) { } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const _T1& __a1, const _T2& __a2) 29761: : _Inherited(__tag, __a, __a1, __a2) { } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const _T1& __a1, const _T2& __a2) 29761: : _Inherited(__tag, __a, __a1, __a2) { } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) 29761: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 29761: std::forward<_U2>(__a2)) 29761: { ; } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: _U1&& __a1, _U2&& __a2) 29761: : _Inherited(__tag, __a, std::forward<_U1>(__a1), 29761: std::forward<_U2>(__a2)) 29761: { ; } 29761: 29761: template 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) 29761: : _Inherited(__tag, __a, static_cast(__in)) { } 29761: 29761: template 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) 29761: : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const tuple<_U1, _U2>& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast&>(__in)) 29761: { ; } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const tuple<_U1, _U2>& __in) 29761: : _Inherited(__tag, __a, 29761: static_cast&>(__in)) 29761: { ; } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 29761: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29761: { ; } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) 29761: : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) 29761: { ; } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const pair<_U1, _U2>& __in) 29761: : _Inherited(__tag, __a, __in.first, __in.second) 29761: { ; } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, 29761: const pair<_U1, _U2>& __in) 29761: : _Inherited(__tag, __a, __in.first, __in.second) 29761: { ; } 29761: 29761: template = true> 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 29761: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 29761: std::forward<_U2>(__in.second)) 29761: { ; } 29761: 29761: template = false> 29761: explicit 29761: 29761: tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) 29761: : _Inherited(__tag, __a, std::forward<_U1>(__in.first), 29761: std::forward<_U2>(__in.second)) 29761: { ; } 29761: 29761: 29761: 29761: 29761: tuple& 29761: operator=(__conditional_t<__assignable(), 29761: const tuple&, 29761: const __nonesuch&> __in) 29761: noexcept(__nothrow_assignable()) 29761: { 29761: this->_M_assign(__in); 29761: return *this; 29761: } 29761: 29761: 29761: tuple& 29761: operator=(__conditional_t<__assignable<_T1, _T2>(), 29761: tuple&&, 29761: __nonesuch&&> __in) 29761: noexcept(__nothrow_assignable<_T1, _T2>()) 29761: { 29761: this->_M_assign(std::move(__in)); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable(), tuple&> 29761: operator=(const tuple<_U1, _U2>& __in) 29761: noexcept(__nothrow_assignable()) 29761: { 29761: this->_M_assign(__in); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 29761: operator=(tuple<_U1, _U2>&& __in) 29761: noexcept(__nothrow_assignable<_U1, _U2>()) 29761: { 29761: this->_M_assign(std::move(__in)); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable(), tuple&> 29761: operator=(const pair<_U1, _U2>& __in) 29761: noexcept(__nothrow_assignable()) 29761: { 29761: this->_M_head(*this) = __in.first; 29761: this->_M_tail(*this)._M_head(*this) = __in.second; 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: __enable_if_t<__assignable<_U1, _U2>(), tuple&> 29761: operator=(pair<_U1, _U2>&& __in) 29761: noexcept(__nothrow_assignable<_U1, _U2>()) 29761: { 29761: this->_M_head(*this) = std::forward<_U1>(__in.first); 29761: this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); 29761: return *this; 29761: } 29761: 29761: 29761: void 29761: swap(tuple& __in) 29761: noexcept(__and_<__is_nothrow_swappable<_T1>, 29761: __is_nothrow_swappable<_T2>>::value) 29761: { _Inherited::_M_swap(__in); } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct tuple_size> 29761: : public integral_constant { }; 29761: 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> 29761: = sizeof...(_Types); 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> 29761: = sizeof...(_Types); 29761: 29761: 29761: 29761: template 29761: struct tuple_element<__i, tuple<_Types...>> 29761: { 29761: static_assert(__i < sizeof...(_Types), "tuple index must be in range"); 29761: 29761: using type = typename _Nth_type<__i, _Types...>::type; 29761: }; 29761: 29761: template 29761: constexpr _Head& 29761: __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 29761: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 29761: 29761: template 29761: constexpr const _Head& 29761: __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept 29761: { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } 29761: 29761: 29761: template 29761: __enable_if_t<(__i >= sizeof...(_Types))> 29761: __get_helper(const tuple<_Types...>&) = delete; 29761: 29761: 29761: template 29761: constexpr __tuple_element_t<__i, tuple<_Elements...>>& 29761: get(tuple<_Elements...>& __t) noexcept 29761: { return std::__get_helper<__i>(__t); } 29761: 29761: 29761: template 29761: constexpr const __tuple_element_t<__i, tuple<_Elements...>>& 29761: get(const tuple<_Elements...>& __t) noexcept 29761: { return std::__get_helper<__i>(__t); } 29761: 29761: 29761: template 29761: constexpr __tuple_element_t<__i, tuple<_Elements...>>&& 29761: get(tuple<_Elements...>&& __t) noexcept 29761: { 29761: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 29761: return std::forward<__element_type>(std::__get_helper<__i>(__t)); 29761: } 29761: 29761: 29761: template 29761: constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& 29761: get(const tuple<_Elements...>&& __t) noexcept 29761: { 29761: typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; 29761: return std::forward(std::__get_helper<__i>(__t)); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr __enable_if_t<(__i >= sizeof...(_Elements))> 29761: get(const tuple<_Elements...>&) = delete; 29761: 29761: 29761: 29761: 29761: template 29761: constexpr _Tp& 29761: get(tuple<_Types...>& __t) noexcept 29761: { 29761: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29761: static_assert(__idx < sizeof...(_Types), 29761: "the type T in std::get must occur exactly once in the tuple"); 29761: return std::__get_helper<__idx>(__t); 29761: } 29761: 29761: 29761: template 29761: constexpr _Tp&& 29761: get(tuple<_Types...>&& __t) noexcept 29761: { 29761: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29761: static_assert(__idx < sizeof...(_Types), 29761: "the type T in std::get must occur exactly once in the tuple"); 29761: return std::forward<_Tp>(std::__get_helper<__idx>(__t)); 29761: } 29761: 29761: 29761: template 29761: constexpr const _Tp& 29761: get(const tuple<_Types...>& __t) noexcept 29761: { 29761: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29761: static_assert(__idx < sizeof...(_Types), 29761: "the type T in std::get must occur exactly once in the tuple"); 29761: return std::__get_helper<__idx>(__t); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr const _Tp&& 29761: get(const tuple<_Types...>&& __t) noexcept 29761: { 29761: constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); 29761: static_assert(__idx < sizeof...(_Types), 29761: "the type T in std::get must occur exactly once in the tuple"); 29761: return std::forward(std::__get_helper<__idx>(__t)); 29761: } 29761: 29761: 29761: 29761: template 29761: struct __tuple_compare 29761: { 29761: static constexpr bool 29761: __eq(const _Tp& __t, const _Up& __u) 29761: { 29761: return bool(std::get<__i>(__t) == std::get<__i>(__u)) 29761: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); 29761: } 29761: 29761: static constexpr bool 29761: __less(const _Tp& __t, const _Up& __u) 29761: { 29761: return bool(std::get<__i>(__t) < std::get<__i>(__u)) 29761: || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) 29761: && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); 29761: } 29761: }; 29761: 29761: template 29761: struct __tuple_compare<_Tp, _Up, __size, __size> 29761: { 29761: static constexpr bool 29761: __eq(const _Tp&, const _Up&) { return true; } 29761: 29761: static constexpr bool 29761: __less(const _Tp&, const _Up&) { return false; } 29761: }; 29761: 29761: template 29761: constexpr bool 29761: operator==(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { 29761: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 29761: "tuple objects can only be compared if they have equal sizes."); 29761: using __compare = __tuple_compare, 29761: tuple<_UElements...>, 29761: 0, sizeof...(_TElements)>; 29761: return __compare::__eq(__t, __u); 29761: } 29761: # 2596 "/usr/include/c++/14/tuple" 3 29761: template 29761: constexpr bool 29761: operator<(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { 29761: static_assert(sizeof...(_TElements) == sizeof...(_UElements), 29761: "tuple objects can only be compared if they have equal sizes."); 29761: using __compare = __tuple_compare, 29761: tuple<_UElements...>, 29761: 0, sizeof...(_TElements)>; 29761: return __compare::__less(__t, __u); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator!=(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { return !(__t == __u); } 29761: 29761: template 29761: constexpr bool 29761: operator>(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { return __u < __t; } 29761: 29761: template 29761: constexpr bool 29761: operator<=(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { return !(__u < __t); } 29761: 29761: template 29761: constexpr bool 29761: operator>=(const tuple<_TElements...>& __t, 29761: const tuple<_UElements...>& __u) 29761: { return !(__t < __u); } 29761: 29761: 29761: 29761: 29761: template 29761: constexpr tuple::__type...> 29761: make_tuple(_Elements&&... __args) 29761: { 29761: typedef tuple::__type...> 29761: __result_type; 29761: return __result_type(std::forward<_Elements>(__args)...); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: constexpr tuple<_Elements&&...> 29761: forward_as_tuple(_Elements&&... __args) noexcept 29761: { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } 29761: 29761: 29761: template 29761: struct __make_tuple_impl; 29761: 29761: template 29761: struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> 29761: : __make_tuple_impl<_Idx + 1, 29761: tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, 29761: _Tuple, _Nm> 29761: { }; 29761: 29761: template 29761: struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> 29761: { 29761: typedef tuple<_Tp...> __type; 29761: }; 29761: 29761: template 29761: struct __do_make_tuple 29761: : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> 29761: { }; 29761: 29761: 29761: template 29761: struct __make_tuple 29761: : public __do_make_tuple<__remove_cvref_t<_Tuple>> 29761: { }; 29761: 29761: 29761: template 29761: struct __combine_tuples; 29761: 29761: template<> 29761: struct __combine_tuples<> 29761: { 29761: typedef tuple<> __type; 29761: }; 29761: 29761: template 29761: struct __combine_tuples> 29761: { 29761: typedef tuple<_Ts...> __type; 29761: }; 29761: 29761: template 29761: struct __combine_tuples, tuple<_T2s...>, _Rem...> 29761: { 29761: typedef typename __combine_tuples, 29761: _Rem...>::__type __type; 29761: }; 29761: 29761: 29761: template 29761: struct __tuple_cat_result 29761: { 29761: typedef typename __combine_tuples 29761: ::__type...>::__type __type; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __make_1st_indices; 29761: 29761: template<> 29761: struct __make_1st_indices<> 29761: { 29761: typedef _Index_tuple<> __type; 29761: }; 29761: 29761: template 29761: struct __make_1st_indices<_Tp, _Tpls...> 29761: { 29761: typedef typename _Build_index_tuple::type>::value>::__type __type; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __tuple_concater; 29761: 29761: template 29761: struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> 29761: { 29761: template 29761: static constexpr _Ret 29761: _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) 29761: { 29761: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 29761: typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; 29761: return __next::_S_do(std::forward<_Tpls>(__tps)..., 29761: std::forward<_Us>(__us)..., 29761: std::get<_Is>(std::forward<_Tp>(__tp))...); 29761: } 29761: }; 29761: 29761: template 29761: struct __tuple_concater<_Ret, _Index_tuple<>> 29761: { 29761: template 29761: static constexpr _Ret 29761: _S_do(_Us&&... __us) 29761: { 29761: return _Ret(std::forward<_Us>(__us)...); 29761: } 29761: }; 29761: 29761: template 29761: struct __is_tuple_like_impl> : true_type 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template...>::value>::type> 29761: 29761: constexpr auto 29761: tuple_cat(_Tpls&&... __tpls) 29761: -> typename __tuple_cat_result<_Tpls...>::__type 29761: { 29761: typedef typename __tuple_cat_result<_Tpls...>::__type __ret; 29761: typedef typename __make_1st_indices<_Tpls...>::__type __idx; 29761: typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; 29761: return __concater::_S_do(std::forward<_Tpls>(__tpls)...); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: constexpr tuple<_Elements&...> 29761: tie(_Elements&... __args) noexcept 29761: { return tuple<_Elements&...>(__args...); } 29761: 29761: 29761: template 29761: 29761: inline 29761: 29761: 29761: typename enable_if<__and_<__is_swappable<_Elements>...>::value 29761: >::type 29761: 29761: 29761: 29761: swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: # 2818 "/usr/include/c++/14/tuple" 3 29761: template 29761: 29761: typename enable_if...>::value>::type 29761: swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct _Swallow_assign 29761: { 29761: template 29761: constexpr const _Swallow_assign& 29761: operator=(const _Tp&) const 29761: { return *this; } 29761: }; 29761: # 2853 "/usr/include/c++/14/tuple" 3 29761: inline constexpr _Swallow_assign ignore{}; 29761: 29761: 29761: template 29761: struct uses_allocator, _Alloc> : true_type { }; 29761: # 2868 "/usr/include/c++/14/tuple" 3 29761: template 29761: template 29761: 29761: inline 29761: pair<_T1, _T2>:: 29761: pair(piecewise_construct_t, 29761: tuple<_Args1...> __first, tuple<_Args2...> __second) 29761: : pair(__first, __second, 29761: typename _Build_index_tuple::__type(), 29761: typename _Build_index_tuple::__type()) 29761: { } 29761: 29761: template 29761: template 29761: inline 29761: pair<_T1, _T2>:: 29761: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, 29761: _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) 29761: : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), 29761: second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template class _Trait, typename _Tp, typename _Tuple> 29761: inline constexpr bool __unpack_std_tuple = false; 29761: 29761: template class _Trait, typename _Tp, typename... _Up> 29761: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> 29761: = _Trait<_Tp, _Up...>::value; 29761: 29761: template class _Trait, typename _Tp, typename... _Up> 29761: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> 29761: = _Trait<_Tp, _Up&...>::value; 29761: 29761: template class _Trait, typename _Tp, typename... _Up> 29761: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> 29761: = _Trait<_Tp, const _Up...>::value; 29761: 29761: template class _Trait, typename _Tp, typename... _Up> 29761: inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> 29761: = _Trait<_Tp, const _Up&...>::value; 29761: 29761: 29761: 29761: template 29761: constexpr decltype(auto) 29761: __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) 29761: { 29761: return std::__invoke(std::forward<_Fn>(__f), 29761: std::get<_Idx>(std::forward<_Tuple>(__t))...); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: constexpr decltype(auto) 29761: apply(_Fn&& __f, _Tuple&& __t) 29761: noexcept(__unpack_std_tuple) 29761: { 29761: using _Indices 29761: = make_index_sequence>>; 29761: return std::__apply_impl(std::forward<_Fn>(__f), 29761: std::forward<_Tuple>(__t), 29761: _Indices{}); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr _Tp 29761: __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) 29761: { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: constexpr _Tp 29761: make_from_tuple(_Tuple&& __t) 29761: noexcept(__unpack_std_tuple) 29761: { 29761: constexpr size_t __n = tuple_size_v>; 29761: 29761: if constexpr (__n == 1) 29761: { 29761: using _Elt = decltype(std::get<0>(std::declval<_Tuple>())); 29761: static_assert(!__reference_constructs_from_temporary(_Tp, _Elt)); 29761: } 29761: 29761: return __make_from_tuple_impl<_Tp>(std::forward<_Tuple>(__t), 29761: make_index_sequence<__n>{}); 29761: } 29761: # 3030 "/usr/include/c++/14/tuple" 3 29761: 29761: } 29761: # 48 "/usr/include/c++/14/bits/memory_resource.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class memory_resource 29761: { 29761: static constexpr size_t _S_max_align = alignof(max_align_t); 29761: 29761: public: 29761: memory_resource() = default; 29761: memory_resource(const memory_resource&) = default; 29761: virtual ~memory_resource(); 29761: 29761: memory_resource& operator=(const memory_resource&) = default; 29761: 29761: [[nodiscard]] 29761: void* 29761: allocate(size_t __bytes, size_t __alignment = _S_max_align) 29761: __attribute__((__returns_nonnull__,__alloc_size__(2),__alloc_align__(3))) 29761: { return ::operator new(__bytes, do_allocate(__bytes, __alignment)); } 29761: 29761: void 29761: deallocate(void* __p, size_t __bytes, size_t __alignment = _S_max_align) 29761: __attribute__((__nonnull__)) 29761: { return do_deallocate(__p, __bytes, __alignment); } 29761: 29761: [[nodiscard]] 29761: bool 29761: is_equal(const memory_resource& __other) const noexcept 29761: { return do_is_equal(__other); } 29761: 29761: private: 29761: virtual void* 29761: do_allocate(size_t __bytes, size_t __alignment) = 0; 29761: 29761: virtual void 29761: do_deallocate(void* __p, size_t __bytes, size_t __alignment) = 0; 29761: 29761: virtual bool 29761: do_is_equal(const memory_resource& __other) const noexcept = 0; 29761: }; 29761: 29761: [[nodiscard]] 29761: inline bool 29761: operator==(const memory_resource& __a, const memory_resource& __b) noexcept 29761: { return &__a == &__b || __a.is_equal(__b); } 29761: 29761: 29761: [[nodiscard]] 29761: inline bool 29761: operator!=(const memory_resource& __a, const memory_resource& __b) noexcept 29761: { return !(__a == __b); } 29761: # 119 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: template 29761: class polymorphic_allocator 29761: { 29761: 29761: 29761: template 29761: struct __not_pair { using type = void; }; 29761: 29761: template 29761: struct __not_pair> { }; 29761: 29761: public: 29761: using value_type = _Tp; 29761: 29761: polymorphic_allocator() noexcept 29761: { 29761: extern memory_resource* get_default_resource() noexcept 29761: __attribute__((__returns_nonnull__)); 29761: _M_resource = get_default_resource(); 29761: } 29761: 29761: polymorphic_allocator(memory_resource* __r) noexcept 29761: __attribute__((__nonnull__)) 29761: : _M_resource(__r) 29761: { ; } 29761: 29761: polymorphic_allocator(const polymorphic_allocator& __other) = default; 29761: 29761: template 29761: polymorphic_allocator(const polymorphic_allocator<_Up>& __x) noexcept 29761: : _M_resource(__x.resource()) 29761: { } 29761: 29761: polymorphic_allocator& 29761: operator=(const polymorphic_allocator&) = delete; 29761: 29761: [[nodiscard]] 29761: _Tp* 29761: allocate(size_t __n) 29761: __attribute__((__returns_nonnull__)) 29761: { 29761: if ((__gnu_cxx::__int_traits::__max / sizeof(_Tp)) < __n) 29761: std::__throw_bad_array_new_length(); 29761: return static_cast<_Tp*>(_M_resource->allocate(__n * sizeof(_Tp), 29761: alignof(_Tp))); 29761: } 29761: 29761: void 29761: deallocate(_Tp* __p, size_t __n) noexcept 29761: __attribute__((__nonnull__)) 29761: { _M_resource->deallocate(__p, __n * sizeof(_Tp), alignof(_Tp)); } 29761: # 224 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: template 29761: __attribute__((__nonnull__)) 29761: typename __not_pair<_Tp1>::type 29761: construct(_Tp1* __p, _Args&&... __args) 29761: { 29761: 29761: 29761: using __use_tag 29761: = std::__uses_alloc_t<_Tp1, polymorphic_allocator, _Args...>; 29761: if constexpr (is_base_of_v<__uses_alloc0, __use_tag>) 29761: ::new(__p) _Tp1(std::forward<_Args>(__args)...); 29761: else if constexpr (is_base_of_v<__uses_alloc1_, __use_tag>) 29761: ::new(__p) _Tp1(allocator_arg, *this, 29761: std::forward<_Args>(__args)...); 29761: else 29761: ::new(__p) _Tp1(std::forward<_Args>(__args)..., *this); 29761: } 29761: 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: construct(pair<_Tp1, _Tp2>* __p, piecewise_construct_t, 29761: tuple<_Args1...> __x, tuple<_Args2...> __y) 29761: { 29761: auto __x_tag = 29761: __use_alloc<_Tp1, polymorphic_allocator, _Args1...>(*this); 29761: auto __y_tag = 29761: __use_alloc<_Tp2, polymorphic_allocator, _Args2...>(*this); 29761: index_sequence_for<_Args1...> __x_i; 29761: index_sequence_for<_Args2...> __y_i; 29761: 29761: ::new(__p) pair<_Tp1, _Tp2>(piecewise_construct, 29761: _S_construct_p(__x_tag, __x_i, __x), 29761: _S_construct_p(__y_tag, __y_i, __y)); 29761: } 29761: 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: construct(pair<_Tp1, _Tp2>* __p) 29761: { this->construct(__p, piecewise_construct, tuple<>(), tuple<>()); } 29761: 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: construct(pair<_Tp1, _Tp2>* __p, _Up&& __x, _Vp&& __y) 29761: { 29761: this->construct(__p, piecewise_construct, 29761: std::forward_as_tuple(std::forward<_Up>(__x)), 29761: std::forward_as_tuple(std::forward<_Vp>(__y))); 29761: } 29761: 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: construct(pair<_Tp1, _Tp2>* __p, const std::pair<_Up, _Vp>& __pr) 29761: { 29761: this->construct(__p, piecewise_construct, 29761: std::forward_as_tuple(__pr.first), 29761: std::forward_as_tuple(__pr.second)); 29761: } 29761: 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: construct(pair<_Tp1, _Tp2>* __p, pair<_Up, _Vp>&& __pr) 29761: { 29761: this->construct(__p, piecewise_construct, 29761: std::forward_as_tuple(std::forward<_Up>(__pr.first)), 29761: std::forward_as_tuple(std::forward<_Vp>(__pr.second))); 29761: } 29761: # 307 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: template 29761: __attribute__((__nonnull__)) 29761: void 29761: destroy(_Up* __p) 29761: { __p->~_Up(); } 29761: 29761: polymorphic_allocator 29761: select_on_container_copy_construction() const noexcept 29761: { return polymorphic_allocator(); } 29761: 29761: memory_resource* 29761: resource() const noexcept 29761: __attribute__((__returns_nonnull__)) 29761: { return _M_resource; } 29761: 29761: 29761: 29761: [[nodiscard]] 29761: friend bool 29761: operator==(const polymorphic_allocator& __a, 29761: const polymorphic_allocator& __b) noexcept 29761: { return *__a.resource() == *__b.resource(); } 29761: 29761: 29761: [[nodiscard]] 29761: friend bool 29761: operator!=(const polymorphic_allocator& __a, 29761: const polymorphic_allocator& __b) noexcept 29761: { return !(__a == __b); } 29761: 29761: 29761: private: 29761: 29761: using __uses_alloc1_ = __uses_alloc1; 29761: using __uses_alloc2_ = __uses_alloc2; 29761: 29761: template 29761: static tuple<_Args&&...> 29761: _S_construct_p(__uses_alloc0, _Ind, tuple<_Args...>& __t) 29761: { return std::move(__t); } 29761: 29761: template 29761: static tuple 29761: _S_construct_p(__uses_alloc1_ __ua, index_sequence<_Ind...>, 29761: tuple<_Args...>& __t) 29761: { 29761: return { 29761: allocator_arg, *__ua._M_a, std::get<_Ind>(std::move(__t))... 29761: }; 29761: } 29761: 29761: template 29761: static tuple<_Args&&..., polymorphic_allocator> 29761: _S_construct_p(__uses_alloc2_ __ua, index_sequence<_Ind...>, 29761: tuple<_Args...>& __t) 29761: { return { std::get<_Ind>(std::move(__t))..., *__ua._M_a }; } 29761: 29761: 29761: memory_resource* _M_resource; 29761: }; 29761: 29761: template 29761: [[nodiscard]] 29761: inline bool 29761: operator==(const polymorphic_allocator<_Tp1>& __a, 29761: const polymorphic_allocator<_Tp2>& __b) noexcept 29761: { return *__a.resource() == *__b.resource(); } 29761: 29761: 29761: template 29761: [[nodiscard]] 29761: inline bool 29761: operator!=(const polymorphic_allocator<_Tp1>& __a, 29761: const polymorphic_allocator<_Tp2>& __b) noexcept 29761: { return !(__a == __b); } 29761: 29761: 29761: } 29761: 29761: template struct allocator_traits; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct allocator_traits> 29761: { 29761: 29761: using allocator_type = pmr::polymorphic_allocator<_Tp>; 29761: 29761: 29761: using value_type = _Tp; 29761: 29761: 29761: using pointer = _Tp*; 29761: 29761: 29761: using const_pointer = const _Tp*; 29761: 29761: 29761: using void_pointer = void*; 29761: 29761: 29761: using const_void_pointer = const void*; 29761: 29761: 29761: using difference_type = std::ptrdiff_t; 29761: 29761: 29761: using size_type = std::size_t; 29761: 29761: 29761: 29761: 29761: 29761: using propagate_on_container_copy_assignment = false_type; 29761: using propagate_on_container_move_assignment = false_type; 29761: using propagate_on_container_swap = false_type; 29761: 29761: static allocator_type 29761: select_on_container_copy_construction(const allocator_type&) noexcept 29761: { return allocator_type(); } 29761: 29761: 29761: 29761: using is_always_equal = false_type; 29761: 29761: template 29761: using rebind_alloc = pmr::polymorphic_allocator<_Up>; 29761: 29761: template 29761: using rebind_traits = allocator_traits>; 29761: # 450 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: [[nodiscard]] static pointer 29761: allocate(allocator_type& __a, size_type __n) 29761: { return __a.allocate(__n); } 29761: # 465 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: [[nodiscard]] static pointer 29761: allocate(allocator_type& __a, size_type __n, const_void_pointer) 29761: { return __a.allocate(__n); } 29761: # 477 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: static void 29761: deallocate(allocator_type& __a, pointer __p, size_type __n) 29761: { __a.deallocate(__p, __n); } 29761: # 492 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: template 29761: static void 29761: construct(allocator_type& __a, _Up* __p, _Args&&... __args) 29761: { __a.construct(__p, std::forward<_Args>(__args)...); } 29761: # 504 "/usr/include/c++/14/bits/memory_resource.h" 3 29761: template 29761: static void 29761: destroy(allocator_type&, _Up* __p) 29761: noexcept(is_nothrow_destructible<_Up>::value) 29761: { __p->~_Up(); } 29761: 29761: 29761: 29761: 29761: 29761: static size_type 29761: max_size(const allocator_type&) noexcept 29761: { return size_t(-1) / sizeof(value_type); } 29761: }; 29761: 29761: 29761: } 29761: # 82 "/usr/include/c++/14/deque" 2 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template 29761: using deque = std::deque<_Tp, polymorphic_allocator<_Tp>>; 29761: } 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/usr/include/c++/14/functional" 1 3 29761: # 46 "/usr/include/c++/14/functional" 3 29761: 29761: # 47 "/usr/include/c++/14/functional" 3 29761: # 55 "/usr/include/c++/14/functional" 3 29761: # 1 "/usr/include/c++/14/bits/functional_hash.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/hash_bytes.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/hash_bytes.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/hash_bytes.h" 3 29761: 29761: 29761: 29761: namespace std 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t 29761: _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); 29761: 29761: 29761: 29761: 29761: 29761: size_t 29761: _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); 29761: 29761: 29761: } 29761: # 37 "/usr/include/c++/14/bits/functional_hash.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 50 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: template 29761: struct __hash_base 29761: { 29761: typedef _Result result_type [[__deprecated__]]; 29761: typedef _Arg argument_type [[__deprecated__]]; 29761: }; 29761: 29761: 29761: template 29761: struct hash; 29761: 29761: template 29761: struct __poison_hash 29761: { 29761: static constexpr bool __enable_hash_call = false; 29761: private: 29761: 29761: __poison_hash(__poison_hash&&); 29761: ~__poison_hash(); 29761: }; 29761: 29761: template 29761: struct __poison_hash<_Tp, __void_t()(declval<_Tp>()))>> 29761: { 29761: static constexpr bool __enable_hash_call = true; 29761: }; 29761: 29761: 29761: template::value> 29761: struct __hash_enum 29761: { 29761: private: 29761: 29761: __hash_enum(__hash_enum&&); 29761: ~__hash_enum(); 29761: }; 29761: 29761: 29761: template 29761: struct __hash_enum<_Tp, true> : public __hash_base 29761: { 29761: size_t 29761: operator()(_Tp __val) const noexcept 29761: { 29761: using __type = typename underlying_type<_Tp>::type; 29761: return hash<__type>{}(static_cast<__type>(__val)); 29761: } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct hash : __hash_enum<_Tp> 29761: { }; 29761: 29761: 29761: template 29761: struct hash<_Tp*> : public __hash_base 29761: { 29761: size_t 29761: operator()(_Tp* __p) const noexcept 29761: { return reinterpret_cast(__p); } 29761: }; 29761: # 125 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: template<> struct hash : public __hash_base { size_t operator()(bool __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(char __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(signed char __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(unsigned char __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(wchar_t __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(char16_t __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(char32_t __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(short __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(int __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(long __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(long long __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(unsigned short __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(unsigned int __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(unsigned long __val) const noexcept { return static_cast(__val); } }; 29761: 29761: 29761: template<> struct hash : public __hash_base { size_t operator()(unsigned long long __val) const noexcept { return static_cast(__val); } }; 29761: # 201 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: struct _Hash_impl 29761: { 29761: static size_t 29761: hash(const void* __ptr, size_t __clength, 29761: size_t __seed = static_cast(0xc70f6907UL)) 29761: { return _Hash_bytes(__ptr, __clength, __seed); } 29761: 29761: template 29761: static size_t 29761: hash(const _Tp& __val) 29761: { return hash(&__val, sizeof(__val)); } 29761: 29761: template 29761: static size_t 29761: __hash_combine(const _Tp& __val, size_t __hash) 29761: { return hash(&__val, sizeof(__val), __hash); } 29761: }; 29761: 29761: 29761: struct _Fnv_hash_impl 29761: { 29761: static size_t 29761: hash(const void* __ptr, size_t __clength, 29761: size_t __seed = static_cast(2166136261UL)) 29761: { return _Fnv_hash_bytes(__ptr, __clength, __seed); } 29761: 29761: template 29761: static size_t 29761: hash(const _Tp& __val) 29761: { return hash(&__val, sizeof(__val)); } 29761: 29761: template 29761: static size_t 29761: __hash_combine(const _Tp& __val, size_t __hash) 29761: { return hash(&__val, sizeof(__val), __hash); } 29761: }; 29761: 29761: 29761: template<> 29761: struct hash : public __hash_base 29761: { 29761: size_t 29761: operator()(float __val) const noexcept 29761: { 29761: 29761: return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: struct hash : public __hash_base 29761: { 29761: size_t 29761: operator()(double __val) const noexcept 29761: { 29761: 29761: return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: __attribute__ ((__pure__)) size_t 29761: operator()(long double __val) const noexcept; 29761: }; 29761: 29761: 29761: template<> 29761: struct hash : public __hash_base 29761: { 29761: size_t 29761: operator()(nullptr_t) const noexcept 29761: { return 0; } 29761: }; 29761: # 294 "/usr/include/c++/14/bits/functional_hash.h" 3 29761: template 29761: struct __is_fast_hash : public std::true_type 29761: { }; 29761: 29761: template<> 29761: struct __is_fast_hash> : public std::false_type 29761: { }; 29761: 29761: 29761: } 29761: # 56 "/usr/include/c++/14/functional" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/std_function.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/std_function.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/std_function.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/typeinfo" 1 3 29761: # 32 "/usr/include/c++/14/typeinfo" 3 29761: 29761: # 33 "/usr/include/c++/14/typeinfo" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 41 "/usr/include/c++/14/typeinfo" 2 3 29761: 29761: #pragma GCC visibility push(default) 29761: 29761: extern "C++" { 29761: 29761: namespace __cxxabiv1 29761: { 29761: class __class_type_info; 29761: } 29761: # 83 "/usr/include/c++/14/typeinfo" 3 29761: namespace std 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class type_info 29761: { 29761: public: 29761: 29761: 29761: 29761: 29761: virtual ~type_info(); 29761: 29761: 29761: 29761: const char* name() const noexcept 29761: { return __name[0] == '*' ? __name + 1 : __name; } 29761: 29761: 29761: 29761: bool before(const type_info& __arg) const noexcept; 29761: 29761: 29761: bool operator==(const type_info& __arg) const noexcept; 29761: 29761: 29761: bool operator!=(const type_info& __arg) const noexcept 29761: { return !operator==(__arg); } 29761: 29761: 29761: 29761: size_t hash_code() const noexcept 29761: { 29761: 29761: return _Hash_bytes(name(), __builtin_strlen(name()), 29761: static_cast(0xc70f6907UL)); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: virtual bool __is_pointer_p() const; 29761: 29761: 29761: virtual bool __is_function_p() const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, 29761: unsigned __outer) const; 29761: 29761: 29761: virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, 29761: void **__obj_ptr) const; 29761: 29761: protected: 29761: const char *__name; 29761: 29761: explicit type_info(const char *__n): __name(__n) { } 29761: 29761: private: 29761: 29761: 29761: type_info& operator=(const type_info&) = delete; 29761: type_info(const type_info&) = delete; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool __equal(const type_info&) const noexcept; 29761: 29761: }; 29761: # 219 "/usr/include/c++/14/typeinfo" 3 29761: class bad_cast : public exception 29761: { 29761: public: 29761: bad_cast() noexcept { } 29761: 29761: 29761: 29761: virtual ~bad_cast() noexcept; 29761: 29761: 29761: virtual const char* what() const noexcept; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class bad_typeid : public exception 29761: { 29761: public: 29761: bad_typeid () noexcept { } 29761: 29761: 29761: 29761: virtual ~bad_typeid() noexcept; 29761: 29761: 29761: virtual const char* what() const noexcept; 29761: }; 29761: } 29761: 29761: } 29761: 29761: #pragma GCC visibility pop 29761: # 41 "/usr/include/c++/14/bits/std_function.h" 2 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class bad_function_call : public std::exception 29761: { 29761: public: 29761: virtual ~bad_function_call() noexcept; 29761: 29761: const char* what() const noexcept; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __is_location_invariant 29761: : is_trivially_copyable<_Tp>::type 29761: { }; 29761: 29761: class _Undefined_class; 29761: 29761: union _Nocopy_types 29761: { 29761: void* _M_object; 29761: const void* _M_const_object; 29761: void (*_M_function_pointer)(); 29761: void (_Undefined_class::*_M_member_pointer)(); 29761: }; 29761: 29761: union [[gnu::may_alias]] _Any_data 29761: { 29761: void* _M_access() noexcept { return &_M_pod_data[0]; } 29761: const void* _M_access() const noexcept { return &_M_pod_data[0]; } 29761: 29761: template 29761: _Tp& 29761: _M_access() noexcept 29761: { return *static_cast<_Tp*>(_M_access()); } 29761: 29761: template 29761: const _Tp& 29761: _M_access() const noexcept 29761: { return *static_cast(_M_access()); } 29761: 29761: _Nocopy_types _M_unused; 29761: char _M_pod_data[sizeof(_Nocopy_types)]; 29761: }; 29761: 29761: enum _Manager_operation 29761: { 29761: __get_type_info, 29761: __get_functor_ptr, 29761: __clone_functor, 29761: __destroy_functor 29761: }; 29761: 29761: template 29761: class function; 29761: 29761: 29761: class _Function_base 29761: { 29761: public: 29761: static const size_t _M_max_size = sizeof(_Nocopy_types); 29761: static const size_t _M_max_align = __alignof__(_Nocopy_types); 29761: 29761: template 29761: class _Base_manager 29761: { 29761: protected: 29761: static const bool __stored_locally = 29761: (__is_location_invariant<_Functor>::value 29761: && sizeof(_Functor) <= _M_max_size 29761: && __alignof__(_Functor) <= _M_max_align 29761: && (_M_max_align % __alignof__(_Functor) == 0)); 29761: 29761: using _Local_storage = integral_constant; 29761: 29761: 29761: static _Functor* 29761: _M_get_pointer(const _Any_data& __source) noexcept 29761: { 29761: if constexpr (__stored_locally) 29761: { 29761: const _Functor& __f = __source._M_access<_Functor>(); 29761: return const_cast<_Functor*>(std::__addressof(__f)); 29761: } 29761: else 29761: return __source._M_access<_Functor*>(); 29761: } 29761: 29761: private: 29761: 29761: 29761: template 29761: static void 29761: _M_create(_Any_data& __dest, _Fn&& __f, true_type) 29761: { 29761: ::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f)); 29761: } 29761: 29761: 29761: template 29761: static void 29761: _M_create(_Any_data& __dest, _Fn&& __f, false_type) 29761: { 29761: __dest._M_access<_Functor*>() 29761: = new _Functor(std::forward<_Fn>(__f)); 29761: } 29761: 29761: 29761: static void 29761: _M_destroy(_Any_data& __victim, true_type) 29761: { 29761: __victim._M_access<_Functor>().~_Functor(); 29761: } 29761: 29761: 29761: static void 29761: _M_destroy(_Any_data& __victim, false_type) 29761: { 29761: delete __victim._M_access<_Functor*>(); 29761: } 29761: 29761: public: 29761: static bool 29761: _M_manager(_Any_data& __dest, const _Any_data& __source, 29761: _Manager_operation __op) 29761: { 29761: switch (__op) 29761: { 29761: case __get_type_info: 29761: 29761: __dest._M_access() = &typeid(_Functor); 29761: 29761: 29761: 29761: break; 29761: 29761: case __get_functor_ptr: 29761: __dest._M_access<_Functor*>() = _M_get_pointer(__source); 29761: break; 29761: 29761: case __clone_functor: 29761: _M_init_functor(__dest, 29761: *const_cast(_M_get_pointer(__source))); 29761: break; 29761: 29761: case __destroy_functor: 29761: _M_destroy(__dest, _Local_storage()); 29761: break; 29761: } 29761: return false; 29761: } 29761: 29761: template 29761: static void 29761: _M_init_functor(_Any_data& __functor, _Fn&& __f) 29761: noexcept(__and_<_Local_storage, 29761: is_nothrow_constructible<_Functor, _Fn>>::value) 29761: { 29761: _M_create(__functor, std::forward<_Fn>(__f), _Local_storage()); 29761: } 29761: 29761: template 29761: static bool 29761: _M_not_empty_function(const function<_Signature>& __f) noexcept 29761: { return static_cast(__f); } 29761: 29761: template 29761: static bool 29761: _M_not_empty_function(_Tp* __fp) noexcept 29761: { return __fp != nullptr; } 29761: 29761: template 29761: static bool 29761: _M_not_empty_function(_Tp _Class::* __mp) noexcept 29761: { return __mp != nullptr; } 29761: 29761: template 29761: static bool 29761: _M_not_empty_function(const _Tp&) noexcept 29761: { return true; } 29761: }; 29761: 29761: _Function_base() = default; 29761: 29761: ~_Function_base() 29761: { 29761: if (_M_manager) 29761: _M_manager(_M_functor, _M_functor, __destroy_functor); 29761: } 29761: 29761: bool _M_empty() const { return !_M_manager; } 29761: 29761: using _Manager_type 29761: = bool (*)(_Any_data&, const _Any_data&, _Manager_operation); 29761: 29761: _Any_data _M_functor{}; 29761: _Manager_type _M_manager{}; 29761: }; 29761: 29761: template 29761: class _Function_handler; 29761: 29761: template 29761: class _Function_handler<_Res(_ArgTypes...), _Functor> 29761: : public _Function_base::_Base_manager<_Functor> 29761: { 29761: using _Base = _Function_base::_Base_manager<_Functor>; 29761: 29761: public: 29761: static bool 29761: _M_manager(_Any_data& __dest, const _Any_data& __source, 29761: _Manager_operation __op) 29761: { 29761: switch (__op) 29761: { 29761: 29761: case __get_type_info: 29761: __dest._M_access() = &typeid(_Functor); 29761: break; 29761: 29761: case __get_functor_ptr: 29761: __dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source); 29761: break; 29761: 29761: default: 29761: _Base::_M_manager(__dest, __source, __op); 29761: } 29761: return false; 29761: } 29761: 29761: static _Res 29761: _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) 29761: { 29761: return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor), 29761: std::forward<_ArgTypes>(__args)...); 29761: } 29761: 29761: template 29761: static constexpr bool 29761: _S_nothrow_init() noexcept 29761: { 29761: return __and_>::value; 29761: } 29761: }; 29761: 29761: 29761: template<> 29761: class _Function_handler 29761: { 29761: public: 29761: static bool 29761: _M_manager(_Any_data&, const _Any_data&, _Manager_operation) 29761: { return false; } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template::value> 29761: struct _Target_handler 29761: : _Function_handler<_Signature, typename remove_cv<_Functor>::type> 29761: { }; 29761: 29761: template 29761: struct _Target_handler<_Signature, _Functor, false> 29761: : _Function_handler 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class function<_Res(_ArgTypes...)> 29761: : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, 29761: private _Function_base 29761: { 29761: 29761: 29761: template, function>::value> 29761: using _Decay_t 29761: = typename __enable_if_t>::type; 29761: 29761: template, 29761: typename _Res2 = __invoke_result<_DFunc&, _ArgTypes...>> 29761: struct _Callable 29761: : __is_invocable_impl<_Res2, _Res>::type 29761: { }; 29761: 29761: template 29761: using _Requires = __enable_if_t<_Cond::value, _Tp>; 29761: 29761: template 29761: using _Handler 29761: = _Function_handler<_Res(_ArgTypes...), __decay_t<_Functor>>; 29761: 29761: public: 29761: typedef _Res result_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: function() noexcept 29761: : _Function_base() { } 29761: 29761: 29761: 29761: 29761: 29761: function(nullptr_t) noexcept 29761: : _Function_base() { } 29761: # 386 "/usr/include/c++/14/bits/std_function.h" 3 29761: function(const function& __x) 29761: : _Function_base() 29761: { 29761: if (static_cast(__x)) 29761: { 29761: __x._M_manager(_M_functor, __x._M_functor, __clone_functor); 29761: _M_invoker = __x._M_invoker; 29761: _M_manager = __x._M_manager; 29761: } 29761: } 29761: # 404 "/usr/include/c++/14/bits/std_function.h" 3 29761: function(function&& __x) noexcept 29761: : _Function_base(), _M_invoker(__x._M_invoker) 29761: { 29761: if (static_cast(__x)) 29761: { 29761: _M_functor = __x._M_functor; 29761: _M_manager = __x._M_manager; 29761: __x._M_manager = nullptr; 29761: __x._M_invoker = nullptr; 29761: } 29761: } 29761: # 433 "/usr/include/c++/14/bits/std_function.h" 3 29761: template>> 29761: function(_Functor&& __f) 29761: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 29761: : _Function_base() 29761: { 29761: static_assert(is_copy_constructible<__decay_t<_Functor>>::value, 29761: "std::function target must be copy-constructible"); 29761: static_assert(is_constructible<__decay_t<_Functor>, _Functor>::value, 29761: "std::function target must be constructible from the " 29761: "constructor argument"); 29761: 29761: using _My_handler = _Handler<_Functor>; 29761: 29761: if (_My_handler::_M_not_empty_function(__f)) 29761: { 29761: _My_handler::_M_init_functor(_M_functor, 29761: std::forward<_Functor>(__f)); 29761: _M_invoker = &_My_handler::_M_invoke; 29761: _M_manager = &_My_handler::_M_manager; 29761: } 29761: } 29761: # 468 "/usr/include/c++/14/bits/std_function.h" 3 29761: function& 29761: operator=(const function& __x) 29761: { 29761: function(__x).swap(*this); 29761: return *this; 29761: } 29761: # 486 "/usr/include/c++/14/bits/std_function.h" 3 29761: function& 29761: operator=(function&& __x) noexcept 29761: { 29761: function(std::move(__x)).swap(*this); 29761: return *this; 29761: } 29761: # 500 "/usr/include/c++/14/bits/std_function.h" 3 29761: function& 29761: operator=(nullptr_t) noexcept 29761: { 29761: if (_M_manager) 29761: { 29761: _M_manager(_M_functor, _M_functor, __destroy_functor); 29761: _M_manager = nullptr; 29761: _M_invoker = nullptr; 29761: } 29761: return *this; 29761: } 29761: # 529 "/usr/include/c++/14/bits/std_function.h" 3 29761: template 29761: _Requires<_Callable<_Functor>, function&> 29761: operator=(_Functor&& __f) 29761: noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) 29761: { 29761: function(std::forward<_Functor>(__f)).swap(*this); 29761: return *this; 29761: } 29761: 29761: 29761: template 29761: function& 29761: operator=(reference_wrapper<_Functor> __f) noexcept 29761: { 29761: function(__f).swap(*this); 29761: return *this; 29761: } 29761: # 556 "/usr/include/c++/14/bits/std_function.h" 3 29761: void swap(function& __x) noexcept 29761: { 29761: std::swap(_M_functor, __x._M_functor); 29761: std::swap(_M_manager, __x._M_manager); 29761: std::swap(_M_invoker, __x._M_invoker); 29761: } 29761: # 573 "/usr/include/c++/14/bits/std_function.h" 3 29761: explicit operator bool() const noexcept 29761: { return !_M_empty(); } 29761: # 586 "/usr/include/c++/14/bits/std_function.h" 3 29761: _Res 29761: operator()(_ArgTypes... __args) const 29761: { 29761: if (_M_empty()) 29761: __throw_bad_function_call(); 29761: return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); 29761: } 29761: # 605 "/usr/include/c++/14/bits/std_function.h" 3 29761: const type_info& 29761: target_type() const noexcept 29761: { 29761: if (_M_manager) 29761: { 29761: _Any_data __typeinfo_result; 29761: _M_manager(__typeinfo_result, _M_functor, __get_type_info); 29761: if (auto __ti = __typeinfo_result._M_access()) 29761: return *__ti; 29761: } 29761: return typeid(void); 29761: } 29761: # 630 "/usr/include/c++/14/bits/std_function.h" 3 29761: template 29761: _Functor* 29761: target() noexcept 29761: { 29761: const function* __const_this = this; 29761: const _Functor* __func = __const_this->template target<_Functor>(); 29761: 29761: 29761: return *const_cast<_Functor**>(&__func); 29761: } 29761: 29761: template 29761: const _Functor* 29761: target() const noexcept 29761: { 29761: if constexpr (is_object<_Functor>::value) 29761: { 29761: 29761: 29761: using _Handler = _Target_handler<_Res(_ArgTypes...), _Functor>; 29761: 29761: if (_M_manager == &_Handler::_M_manager 29761: 29761: || (_M_manager && typeid(_Functor) == target_type()) 29761: 29761: ) 29761: { 29761: _Any_data __ptr; 29761: _M_manager(__ptr, _M_functor, __get_functor_ptr); 29761: return __ptr._M_access(); 29761: } 29761: } 29761: return nullptr; 29761: } 29761: 29761: 29761: private: 29761: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); 29761: _Invoker_type _M_invoker = nullptr; 29761: }; 29761: 29761: 29761: template 29761: struct __function_guide_helper 29761: { }; 29761: 29761: template 29761: struct __function_guide_helper< 29761: _Res (_Tp::*) (_Args...) noexcept(_Nx) 29761: > 29761: { using type = _Res(_Args...); }; 29761: 29761: template 29761: struct __function_guide_helper< 29761: _Res (_Tp::*) (_Args...) & noexcept(_Nx) 29761: > 29761: { using type = _Res(_Args...); }; 29761: 29761: template 29761: struct __function_guide_helper< 29761: _Res (_Tp::*) (_Args...) const noexcept(_Nx) 29761: > 29761: { using type = _Res(_Args...); }; 29761: 29761: template 29761: struct __function_guide_helper< 29761: _Res (_Tp::*) (_Args...) const & noexcept(_Nx) 29761: > 29761: { using type = _Res(_Args...); }; 29761: # 721 "/usr/include/c++/14/bits/std_function.h" 3 29761: template 29761: using __function_guide_t = typename __function_guide_helper<_Op>::type; 29761: 29761: 29761: template 29761: function(_Res(*)(_ArgTypes...)) -> function<_Res(_ArgTypes...)>; 29761: 29761: template> 29761: function(_Fn) -> function<_Signature>; 29761: # 741 "/usr/include/c++/14/bits/std_function.h" 3 29761: template 29761: inline bool 29761: operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 29761: { return !static_cast(__f); } 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator==(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 29761: { return !static_cast(__f); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept 29761: { return static_cast(__f); } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept 29761: { return static_cast(__f); } 29761: # 780 "/usr/include/c++/14/bits/std_function.h" 3 29761: template 29761: inline void 29761: swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept 29761: { __x.swap(__y); } 29761: 29761: 29761: namespace __detail::__variant 29761: { 29761: template struct _Never_valueless_alt; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : std::true_type 29761: { }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 60 "/usr/include/c++/14/functional" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/unordered_map" 1 3 29761: # 32 "/usr/include/c++/14/unordered_map" 3 29761: 29761: # 33 "/usr/include/c++/14/unordered_map" 3 29761: # 41 "/usr/include/c++/14/unordered_map" 3 29761: # 1 "/usr/include/c++/14/bits/unordered_map.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: # 1 "/usr/include/c++/14/bits/hashtable.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/hashtable.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/hashtable.h" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/hashtable_policy.h" 1 3 29761: # 38 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: # 1 "/usr/include/c++/14/ext/aligned_buffer.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/aligned_buffer.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/aligned_buffer.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __gnu_cxx 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: struct __aligned_membuf 29761: { 29761: 29761: 29761: 29761: 29761: 29761: struct _Tp2 { _Tp _M_t; }; 29761: 29761: alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; 29761: 29761: __aligned_membuf() = default; 29761: 29761: 29761: __aligned_membuf(std::nullptr_t) { } 29761: 29761: void* 29761: _M_addr() noexcept 29761: { return static_cast(&_M_storage); } 29761: 29761: const void* 29761: _M_addr() const noexcept 29761: { return static_cast(&_M_storage); } 29761: 29761: _Tp* 29761: _M_ptr() noexcept 29761: { return static_cast<_Tp*>(_M_addr()); } 29761: 29761: const _Tp* 29761: _M_ptr() const noexcept 29761: { return static_cast(_M_addr()); } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __aligned_buffer 29761: : std::aligned_storage 29761: { 29761: typename 29761: std::aligned_storage::type _M_storage; 29761: 29761: __aligned_buffer() = default; 29761: 29761: 29761: __aligned_buffer(std::nullptr_t) { } 29761: 29761: void* 29761: _M_addr() noexcept 29761: { 29761: return static_cast(&_M_storage); 29761: } 29761: 29761: const void* 29761: _M_addr() const noexcept 29761: { 29761: return static_cast(&_M_storage); 29761: } 29761: 29761: _Tp* 29761: _M_ptr() noexcept 29761: { return static_cast<_Tp*>(_M_addr()); } 29761: 29761: const _Tp* 29761: _M_ptr() const noexcept 29761: { return static_cast(_M_addr()); } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: } 29761: # 39 "/usr/include/c++/14/bits/hashtable_policy.h" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class _Hashtable; 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hashtable_base; 29761: 29761: 29761: 29761: template 29761: inline typename std::iterator_traits<_Iterator>::difference_type 29761: __distance_fw(_Iterator __first, _Iterator __last, 29761: std::input_iterator_tag) 29761: { return __first != __last ? 1 : 0; } 29761: 29761: template 29761: inline typename std::iterator_traits<_Iterator>::difference_type 29761: __distance_fw(_Iterator __first, _Iterator __last, 29761: std::forward_iterator_tag) 29761: { return std::distance(__first, __last); } 29761: 29761: template 29761: inline typename std::iterator_traits<_Iterator>::difference_type 29761: __distance_fw(_Iterator __first, _Iterator __last) 29761: { return __distance_fw(__first, __last, 29761: std::__iterator_category(__first)); } 29761: 29761: struct _Identity 29761: { 29761: template 29761: _Tp&& 29761: operator()(_Tp&& __x) const noexcept 29761: { return std::forward<_Tp>(__x); } 29761: }; 29761: 29761: struct _Select1st 29761: { 29761: template 29761: struct __1st_type; 29761: 29761: template 29761: struct __1st_type> 29761: { using type = _Tp; }; 29761: 29761: template 29761: struct __1st_type> 29761: { using type = const _Tp; }; 29761: 29761: template 29761: struct __1st_type<_Pair&> 29761: { using type = typename __1st_type<_Pair>::type&; }; 29761: 29761: template 29761: typename __1st_type<_Tp>::type&& 29761: operator()(_Tp&& __x) const noexcept 29761: { return std::forward<_Tp>(__x).first; } 29761: }; 29761: 29761: template 29761: struct _ConvertToValueType; 29761: 29761: template 29761: struct _ConvertToValueType<_Identity, _Value> 29761: { 29761: template 29761: constexpr _Kt&& 29761: operator()(_Kt&& __k) const noexcept 29761: { return std::forward<_Kt>(__k); } 29761: }; 29761: 29761: template 29761: struct _ConvertToValueType<_Select1st, _Value> 29761: { 29761: constexpr _Value&& 29761: operator()(_Value&& __x) const noexcept 29761: { return std::move(__x); } 29761: 29761: constexpr const _Value& 29761: operator()(const _Value& __x) const noexcept 29761: { return __x; } 29761: 29761: template 29761: constexpr std::pair<_Kt, _Val>&& 29761: operator()(std::pair<_Kt, _Val>&& __x) const noexcept 29761: { return std::move(__x); } 29761: 29761: template 29761: constexpr const std::pair<_Kt, _Val>& 29761: operator()(const std::pair<_Kt, _Val>& __x) const noexcept 29761: { return __x; } 29761: }; 29761: 29761: template 29761: struct _NodeBuilder; 29761: 29761: template<> 29761: struct _NodeBuilder<_Select1st> 29761: { 29761: template 29761: static auto 29761: _S_build(_Kt&& __k, _Arg&& __arg, const _NodeGenerator& __node_gen) 29761: -> typename _NodeGenerator::__node_ptr 29761: { 29761: return __node_gen(std::forward<_Kt>(__k), 29761: std::forward<_Arg>(__arg).second); 29761: } 29761: }; 29761: 29761: template<> 29761: struct _NodeBuilder<_Identity> 29761: { 29761: template 29761: static auto 29761: _S_build(_Kt&& __k, _Arg&&, const _NodeGenerator& __node_gen) 29761: -> typename _NodeGenerator::__node_ptr 29761: { return __node_gen(std::forward<_Kt>(__k)); } 29761: }; 29761: 29761: template 29761: struct _NodePtrGuard 29761: { 29761: _HashtableAlloc& _M_h; 29761: _NodePtr _M_ptr; 29761: 29761: ~_NodePtrGuard() 29761: { 29761: if (_M_ptr) 29761: _M_h._M_deallocate_node_ptr(_M_ptr); 29761: } 29761: }; 29761: 29761: template 29761: struct _Hashtable_alloc; 29761: 29761: 29761: 29761: template 29761: struct _ReuseOrAllocNode 29761: { 29761: private: 29761: using __node_alloc_type = _NodeAlloc; 29761: using __hashtable_alloc = _Hashtable_alloc<__node_alloc_type>; 29761: using __node_alloc_traits = 29761: typename __hashtable_alloc::__node_alloc_traits; 29761: 29761: public: 29761: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29761: 29761: _ReuseOrAllocNode(__node_ptr __nodes, __hashtable_alloc& __h) 29761: : _M_nodes(__nodes), _M_h(__h) { } 29761: _ReuseOrAllocNode(const _ReuseOrAllocNode&) = delete; 29761: 29761: ~_ReuseOrAllocNode() 29761: { _M_h._M_deallocate_nodes(_M_nodes); } 29761: 29761: template 29761: __node_ptr 29761: operator()(_Args&&... __args) const 29761: { 29761: if (!_M_nodes) 29761: return _M_h._M_allocate_node(std::forward<_Args>(__args)...); 29761: 29761: __node_ptr __node = _M_nodes; 29761: _M_nodes = _M_nodes->_M_next(); 29761: __node->_M_nxt = nullptr; 29761: auto& __a = _M_h._M_node_allocator(); 29761: __node_alloc_traits::destroy(__a, __node->_M_valptr()); 29761: _NodePtrGuard<__hashtable_alloc, __node_ptr> __guard { _M_h, __node }; 29761: __node_alloc_traits::construct(__a, __node->_M_valptr(), 29761: std::forward<_Args>(__args)...); 29761: __guard._M_ptr = nullptr; 29761: return __node; 29761: } 29761: 29761: private: 29761: mutable __node_ptr _M_nodes; 29761: __hashtable_alloc& _M_h; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct _AllocNode 29761: { 29761: private: 29761: using __hashtable_alloc = _Hashtable_alloc<_NodeAlloc>; 29761: 29761: public: 29761: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29761: 29761: _AllocNode(__hashtable_alloc& __h) 29761: : _M_h(__h) { } 29761: 29761: template 29761: __node_ptr 29761: operator()(_Args&&... __args) const 29761: { return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } 29761: 29761: private: 29761: __hashtable_alloc& _M_h; 29761: }; 29761: # 285 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: template 29761: struct _Hashtable_traits 29761: { 29761: using __hash_cached = __bool_constant<_Cache_hash_code>; 29761: using __constant_iterators = __bool_constant<_Constant_iterators>; 29761: using __unique_keys = __bool_constant<_Unique_keys>; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hashtable_hash_traits 29761: { 29761: static constexpr std::size_t 29761: __small_size_threshold() noexcept 29761: { return std::__is_fast_hash<_Hash>::value ? 0 : 20; } 29761: }; 29761: # 315 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: struct _Hash_node_base 29761: { 29761: _Hash_node_base* _M_nxt; 29761: 29761: _Hash_node_base() noexcept : _M_nxt() { } 29761: 29761: _Hash_node_base(_Hash_node_base* __next) noexcept : _M_nxt(__next) { } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hash_node_value_base 29761: { 29761: typedef _Value value_type; 29761: 29761: __gnu_cxx::__aligned_buffer<_Value> _M_storage; 29761: 29761: [[__gnu__::__always_inline__]] 29761: _Value* 29761: _M_valptr() noexcept 29761: { return _M_storage._M_ptr(); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: const _Value* 29761: _M_valptr() const noexcept 29761: { return _M_storage._M_ptr(); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: _Value& 29761: _M_v() noexcept 29761: { return *_M_valptr(); } 29761: 29761: [[__gnu__::__always_inline__]] 29761: const _Value& 29761: _M_v() const noexcept 29761: { return *_M_valptr(); } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hash_node_code_cache 29761: { }; 29761: 29761: 29761: 29761: 29761: template<> 29761: struct _Hash_node_code_cache 29761: { std::size_t _M_hash_code; }; 29761: 29761: template 29761: struct _Hash_node_value 29761: : _Hash_node_value_base<_Value> 29761: , _Hash_node_code_cache<_Cache_hash_code> 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hash_node 29761: : _Hash_node_base 29761: , _Hash_node_value<_Value, _Cache_hash_code> 29761: { 29761: _Hash_node* 29761: _M_next() const noexcept 29761: { return static_cast<_Hash_node*>(this->_M_nxt); } 29761: }; 29761: 29761: 29761: template 29761: struct _Node_iterator_base 29761: { 29761: using __node_type = _Hash_node<_Value, _Cache_hash_code>; 29761: 29761: __node_type* _M_cur; 29761: 29761: _Node_iterator_base() : _M_cur(nullptr) { } 29761: _Node_iterator_base(__node_type* __p) noexcept 29761: : _M_cur(__p) { } 29761: 29761: void 29761: _M_incr() noexcept 29761: { _M_cur = _M_cur->_M_next(); } 29761: 29761: friend bool 29761: operator==(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 29761: noexcept 29761: { return __x._M_cur == __y._M_cur; } 29761: 29761: 29761: friend bool 29761: operator!=(const _Node_iterator_base& __x, const _Node_iterator_base& __y) 29761: noexcept 29761: { return __x._M_cur != __y._M_cur; } 29761: 29761: }; 29761: 29761: 29761: template 29761: struct _Node_iterator 29761: : public _Node_iterator_base<_Value, __cache> 29761: { 29761: private: 29761: using __base_type = _Node_iterator_base<_Value, __cache>; 29761: using __node_type = typename __base_type::__node_type; 29761: 29761: public: 29761: using value_type = _Value; 29761: using difference_type = std::ptrdiff_t; 29761: using iterator_category = std::forward_iterator_tag; 29761: 29761: using pointer = __conditional_t<__constant_iterators, 29761: const value_type*, value_type*>; 29761: 29761: using reference = __conditional_t<__constant_iterators, 29761: const value_type&, value_type&>; 29761: 29761: _Node_iterator() = default; 29761: 29761: explicit 29761: _Node_iterator(__node_type* __p) noexcept 29761: : __base_type(__p) { } 29761: 29761: reference 29761: operator*() const noexcept 29761: { return this->_M_cur->_M_v(); } 29761: 29761: pointer 29761: operator->() const noexcept 29761: { return this->_M_cur->_M_valptr(); } 29761: 29761: _Node_iterator& 29761: operator++() noexcept 29761: { 29761: this->_M_incr(); 29761: return *this; 29761: } 29761: 29761: _Node_iterator 29761: operator++(int) noexcept 29761: { 29761: _Node_iterator __tmp(*this); 29761: this->_M_incr(); 29761: return __tmp; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Node_const_iterator 29761: : public _Node_iterator_base<_Value, __cache> 29761: { 29761: private: 29761: using __base_type = _Node_iterator_base<_Value, __cache>; 29761: using __node_type = typename __base_type::__node_type; 29761: 29761: public: 29761: typedef _Value value_type; 29761: typedef std::ptrdiff_t difference_type; 29761: typedef std::forward_iterator_tag iterator_category; 29761: 29761: typedef const value_type* pointer; 29761: typedef const value_type& reference; 29761: 29761: _Node_const_iterator() = default; 29761: 29761: explicit 29761: _Node_const_iterator(__node_type* __p) noexcept 29761: : __base_type(__p) { } 29761: 29761: _Node_const_iterator(const _Node_iterator<_Value, __constant_iterators, 29761: __cache>& __x) noexcept 29761: : __base_type(__x._M_cur) { } 29761: 29761: reference 29761: operator*() const noexcept 29761: { return this->_M_cur->_M_v(); } 29761: 29761: pointer 29761: operator->() const noexcept 29761: { return this->_M_cur->_M_valptr(); } 29761: 29761: _Node_const_iterator& 29761: operator++() noexcept 29761: { 29761: this->_M_incr(); 29761: return *this; 29761: } 29761: 29761: _Node_const_iterator 29761: operator++(int) noexcept 29761: { 29761: _Node_const_iterator __tmp(*this); 29761: this->_M_incr(); 29761: return __tmp; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct _Mod_range_hashing 29761: { 29761: typedef std::size_t first_argument_type; 29761: typedef std::size_t second_argument_type; 29761: typedef std::size_t result_type; 29761: 29761: result_type 29761: operator()(first_argument_type __num, 29761: second_argument_type __den) const noexcept 29761: { return __num % __den; } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct _Default_ranged_hash { }; 29761: 29761: 29761: 29761: struct _Prime_rehash_policy 29761: { 29761: using __has_load_factor = true_type; 29761: 29761: _Prime_rehash_policy(float __z = 1.0) noexcept 29761: : _M_max_load_factor(__z), _M_next_resize(0) { } 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_max_load_factor; } 29761: 29761: 29761: std::size_t 29761: _M_next_bkt(std::size_t __n) const; 29761: 29761: 29761: std::size_t 29761: _M_bkt_for_elements(std::size_t __n) const 29761: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 29761: 29761: 29761: 29761: 29761: 29761: std::pair 29761: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 29761: std::size_t __n_ins) const; 29761: 29761: typedef std::size_t _State; 29761: 29761: _State 29761: _M_state() const 29761: { return _M_next_resize; } 29761: 29761: void 29761: _M_reset() noexcept 29761: { _M_next_resize = 0; } 29761: 29761: void 29761: _M_reset(_State __state) 29761: { _M_next_resize = __state; } 29761: 29761: static const std::size_t _S_growth_factor = 2; 29761: 29761: float _M_max_load_factor; 29761: mutable std::size_t _M_next_resize; 29761: }; 29761: 29761: 29761: struct _Mask_range_hashing 29761: { 29761: typedef std::size_t first_argument_type; 29761: typedef std::size_t second_argument_type; 29761: typedef std::size_t result_type; 29761: 29761: result_type 29761: operator()(first_argument_type __num, 29761: second_argument_type __den) const noexcept 29761: { return __num & (__den - 1); } 29761: }; 29761: 29761: 29761: inline std::size_t 29761: __clp2(std::size_t __n) noexcept 29761: { 29761: using __gnu_cxx::__int_traits; 29761: 29761: if (__n < 2) 29761: return __n; 29761: const unsigned __lz = sizeof(size_t) > sizeof(long) 29761: ? __builtin_clzll(__n - 1ull) 29761: : __builtin_clzl(__n - 1ul); 29761: 29761: return (size_t(1) << (__int_traits::__digits - __lz - 1)) << 1; 29761: } 29761: 29761: 29761: 29761: struct _Power2_rehash_policy 29761: { 29761: using __has_load_factor = true_type; 29761: 29761: _Power2_rehash_policy(float __z = 1.0) noexcept 29761: : _M_max_load_factor(__z), _M_next_resize(0) { } 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_max_load_factor; } 29761: 29761: 29761: 29761: std::size_t 29761: _M_next_bkt(std::size_t __n) noexcept 29761: { 29761: if (__n == 0) 29761: 29761: 29761: 29761: return 1; 29761: 29761: const auto __max_width = std::min(sizeof(size_t), 8); 29761: const auto __max_bkt = size_t(1) << (__max_width * 8 - 1); 29761: std::size_t __res = __clp2(__n); 29761: 29761: if (__res == 0) 29761: __res = __max_bkt; 29761: else if (__res == 1) 29761: 29761: 29761: 29761: __res = 2; 29761: 29761: if (__res == __max_bkt) 29761: 29761: 29761: 29761: _M_next_resize = size_t(-1); 29761: else 29761: _M_next_resize 29761: = __builtin_floor(__res * (double)_M_max_load_factor); 29761: 29761: return __res; 29761: } 29761: 29761: 29761: std::size_t 29761: _M_bkt_for_elements(std::size_t __n) const noexcept 29761: { return __builtin_ceil(__n / (double)_M_max_load_factor); } 29761: 29761: 29761: 29761: 29761: 29761: std::pair 29761: _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, 29761: std::size_t __n_ins) noexcept 29761: { 29761: if (__n_elt + __n_ins > _M_next_resize) 29761: { 29761: 29761: 29761: 29761: double __min_bkts 29761: = std::max(__n_elt + __n_ins, _M_next_resize ? 0 : 11) 29761: / (double)_M_max_load_factor; 29761: if (__min_bkts >= __n_bkt) 29761: return { true, 29761: _M_next_bkt(std::max(__builtin_floor(__min_bkts) + 1, 29761: __n_bkt * _S_growth_factor)) }; 29761: 29761: _M_next_resize 29761: = __builtin_floor(__n_bkt * (double)_M_max_load_factor); 29761: return { false, 0 }; 29761: } 29761: else 29761: return { false, 0 }; 29761: } 29761: 29761: typedef std::size_t _State; 29761: 29761: _State 29761: _M_state() const noexcept 29761: { return _M_next_resize; } 29761: 29761: void 29761: _M_reset() noexcept 29761: { _M_next_resize = 0; } 29761: 29761: void 29761: _M_reset(_State __state) noexcept 29761: { _M_next_resize = __state; } 29761: 29761: static const std::size_t _S_growth_factor = 2; 29761: 29761: float _M_max_load_factor; 29761: std::size_t _M_next_resize; 29761: }; 29761: 29761: template 29761: struct _RehashStateGuard 29761: { 29761: _RehashPolicy* _M_guarded_obj; 29761: typename _RehashPolicy::_State _M_prev_state; 29761: 29761: _RehashStateGuard(_RehashPolicy& __policy) 29761: : _M_guarded_obj(std::__addressof(__policy)) 29761: , _M_prev_state(__policy._M_state()) 29761: { } 29761: _RehashStateGuard(const _RehashStateGuard&) = delete; 29761: 29761: ~_RehashStateGuard() 29761: { 29761: if (_M_guarded_obj) 29761: _M_guarded_obj->_M_reset(_M_prev_state); 29761: } 29761: }; 29761: # 761 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: template 29761: struct _Map_base { }; 29761: 29761: 29761: template 29761: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29761: { 29761: using mapped_type = _Val; 29761: }; 29761: 29761: 29761: template 29761: struct _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 29761: { 29761: private: 29761: using __hashtable_base = _Hashtable_base<_Key, pair, 29761: _Select1st, _Equal, _Hash, 29761: _RangeHash, _Unused, 29761: _Traits>; 29761: 29761: using __hashtable = _Hashtable<_Key, pair, _Alloc, 29761: _Select1st, _Equal, _Hash, _RangeHash, 29761: _Unused, _RehashPolicy, _Traits>; 29761: 29761: using __hash_code = typename __hashtable_base::__hash_code; 29761: 29761: public: 29761: using key_type = typename __hashtable_base::key_type; 29761: using mapped_type = _Val; 29761: 29761: mapped_type& 29761: operator[](const key_type& __k); 29761: 29761: mapped_type& 29761: operator[](key_type&& __k); 29761: 29761: 29761: 29761: mapped_type& 29761: at(const key_type& __k) 29761: { 29761: auto __ite = static_cast<__hashtable*>(this)->find(__k); 29761: if (!__ite._M_cur) 29761: __throw_out_of_range(("unordered_map::at")); 29761: return __ite->second; 29761: } 29761: 29761: const mapped_type& 29761: at(const key_type& __k) const 29761: { 29761: auto __ite = static_cast(this)->find(__k); 29761: if (!__ite._M_cur) 29761: __throw_out_of_range(("unordered_map::at")); 29761: return __ite->second; 29761: } 29761: }; 29761: 29761: template 29761: auto 29761: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29761: operator[](const key_type& __k) 29761: -> mapped_type& 29761: { 29761: __hashtable* __h = static_cast<__hashtable*>(this); 29761: __hash_code __code = __h->_M_hash_code(__k); 29761: std::size_t __bkt = __h->_M_bucket_index(__code); 29761: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 29761: return __node->_M_v().second; 29761: 29761: typename __hashtable::_Scoped_node __node { 29761: __h, 29761: std::piecewise_construct, 29761: std::tuple(__k), 29761: std::tuple<>() 29761: }; 29761: auto __pos 29761: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 29761: __node._M_node = nullptr; 29761: return __pos->second; 29761: } 29761: 29761: template 29761: auto 29761: _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29761: operator[](key_type&& __k) 29761: -> mapped_type& 29761: { 29761: __hashtable* __h = static_cast<__hashtable*>(this); 29761: __hash_code __code = __h->_M_hash_code(__k); 29761: std::size_t __bkt = __h->_M_bucket_index(__code); 29761: if (auto __node = __h->_M_find_node(__bkt, __k, __code)) 29761: return __node->_M_v().second; 29761: 29761: typename __hashtable::_Scoped_node __node { 29761: __h, 29761: std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::tuple<>() 29761: }; 29761: auto __pos 29761: = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); 29761: __node._M_node = nullptr; 29761: return __pos->second; 29761: } 29761: 29761: 29761: template 29761: struct _Map_base, 29761: _Alloc, _Select1st, _Equal, _Hash, 29761: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 29761: : _Map_base<_Key, pair, _Alloc, _Select1st, _Equal, _Hash, 29761: _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Insert_base 29761: { 29761: protected: 29761: using __hashtable_base = _Hashtable_base<_Key, _Value, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, 29761: _Unused, _Traits>; 29761: 29761: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, 29761: _Unused, _RehashPolicy, _Traits>; 29761: 29761: using __hash_cached = typename _Traits::__hash_cached; 29761: using __constant_iterators = typename _Traits::__constant_iterators; 29761: 29761: using __hashtable_alloc = _Hashtable_alloc< 29761: __alloc_rebind<_Alloc, _Hash_node<_Value, 29761: __hash_cached::value>>>; 29761: 29761: using value_type = typename __hashtable_base::value_type; 29761: using size_type = typename __hashtable_base::size_type; 29761: 29761: using __unique_keys = typename _Traits::__unique_keys; 29761: using __node_alloc_type = typename __hashtable_alloc::__node_alloc_type; 29761: using __node_gen_type = _AllocNode<__node_alloc_type>; 29761: 29761: __hashtable& 29761: _M_conjure_hashtable() 29761: { return *(static_cast<__hashtable*>(this)); } 29761: 29761: template 29761: void 29761: _M_insert_range(_InputIterator __first, _InputIterator __last, 29761: const _NodeGetter&, true_type __uks); 29761: 29761: template 29761: void 29761: _M_insert_range(_InputIterator __first, _InputIterator __last, 29761: const _NodeGetter&, false_type __uks); 29761: 29761: public: 29761: using iterator = _Node_iterator<_Value, __constant_iterators::value, 29761: __hash_cached::value>; 29761: 29761: using const_iterator = _Node_const_iterator<_Value, 29761: __constant_iterators::value, 29761: __hash_cached::value>; 29761: 29761: using __ireturn_type = __conditional_t<__unique_keys::value, 29761: std::pair, 29761: iterator>; 29761: 29761: __ireturn_type 29761: insert(const value_type& __v) 29761: { 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: __node_gen_type __node_gen(__h); 29761: return __h._M_insert(__v, __node_gen, __unique_keys{}); 29761: } 29761: 29761: iterator 29761: insert(const_iterator __hint, const value_type& __v) 29761: { 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: __node_gen_type __node_gen(__h); 29761: return __h._M_insert(__hint, __v, __node_gen, __unique_keys{}); 29761: } 29761: 29761: 29761: template 29761: std::pair 29761: try_emplace(const_iterator, _KType&& __k, _Args&&... __args) 29761: { 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: auto __code = __h._M_hash_code(__k); 29761: std::size_t __bkt = __h._M_bucket_index(__code); 29761: if (auto __node = __h._M_find_node(__bkt, __k, __code)) 29761: return { iterator(__node), false }; 29761: 29761: typename __hashtable::_Scoped_node __node { 29761: &__h, 29761: std::piecewise_construct, 29761: std::forward_as_tuple(std::forward<_KType>(__k)), 29761: std::forward_as_tuple(std::forward<_Args>(__args)...) 29761: }; 29761: auto __it 29761: = __h._M_insert_unique_node(__bkt, __code, __node._M_node); 29761: __node._M_node = nullptr; 29761: return { __it, true }; 29761: } 29761: 29761: 29761: void 29761: insert(initializer_list __l) 29761: { this->insert(__l.begin(), __l.end()); } 29761: 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: __node_gen_type __node_gen(__h); 29761: return _M_insert_range(__first, __last, __node_gen, __unique_keys{}); 29761: } 29761: }; 29761: 29761: template 29761: template 29761: void 29761: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>:: 29761: _M_insert_range(_InputIterator __first, _InputIterator __last, 29761: const _NodeGetter& __node_gen, true_type __uks) 29761: { 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: for (; __first != __last; ++__first) 29761: __h._M_insert(*__first, __node_gen, __uks); 29761: } 29761: 29761: template 29761: template 29761: void 29761: _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>:: 29761: _M_insert_range(_InputIterator __first, _InputIterator __last, 29761: const _NodeGetter& __node_gen, false_type __uks) 29761: { 29761: using __rehash_guard_t = typename __hashtable::__rehash_guard_t; 29761: using __pair_type = std::pair; 29761: 29761: size_type __n_elt = __detail::__distance_fw(__first, __last); 29761: if (__n_elt == 0) 29761: return; 29761: 29761: __hashtable& __h = _M_conjure_hashtable(); 29761: __rehash_guard_t __rehash_guard(__h._M_rehash_policy); 29761: __pair_type __do_rehash 29761: = __h._M_rehash_policy._M_need_rehash(__h._M_bucket_count, 29761: __h._M_element_count, 29761: __n_elt); 29761: 29761: if (__do_rehash.first) 29761: __h._M_rehash(__do_rehash.second, __uks); 29761: 29761: __rehash_guard._M_guarded_obj = nullptr; 29761: for (; __first != __last; ++__first) 29761: __h._M_insert(*__first, __node_gen, __uks); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Insert; 29761: 29761: 29761: template 29761: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits, true> 29761: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 29761: { 29761: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: using value_type = typename __base_type::value_type; 29761: using iterator = typename __base_type::iterator; 29761: using const_iterator = typename __base_type::const_iterator; 29761: using __ireturn_type = typename __base_type::__ireturn_type; 29761: 29761: using __unique_keys = typename __base_type::__unique_keys; 29761: using __hashtable = typename __base_type::__hashtable; 29761: using __node_gen_type = typename __base_type::__node_gen_type; 29761: 29761: using __base_type::insert; 29761: 29761: __ireturn_type 29761: insert(value_type&& __v) 29761: { 29761: __hashtable& __h = this->_M_conjure_hashtable(); 29761: __node_gen_type __node_gen(__h); 29761: return __h._M_insert(std::move(__v), __node_gen, __unique_keys{}); 29761: } 29761: 29761: iterator 29761: insert(const_iterator __hint, value_type&& __v) 29761: { 29761: __hashtable& __h = this->_M_conjure_hashtable(); 29761: __node_gen_type __node_gen(__h); 29761: return __h._M_insert(__hint, std::move(__v), __node_gen, 29761: __unique_keys{}); 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29761: : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> 29761: { 29761: using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: using value_type = typename __base_type::value_type; 29761: using iterator = typename __base_type::iterator; 29761: using const_iterator = typename __base_type::const_iterator; 29761: 29761: using __unique_keys = typename __base_type::__unique_keys; 29761: using __hashtable = typename __base_type::__hashtable; 29761: using __ireturn_type = typename __base_type::__ireturn_type; 29761: 29761: using __base_type::insert; 29761: 29761: template 29761: using __is_cons = std::is_constructible; 29761: 29761: template 29761: using _IFcons = std::enable_if<__is_cons<_Pair>::value>; 29761: 29761: template 29761: using _IFconsp = typename _IFcons<_Pair>::type; 29761: 29761: template> 29761: __ireturn_type 29761: insert(_Pair&& __v) 29761: { 29761: __hashtable& __h = this->_M_conjure_hashtable(); 29761: return __h._M_emplace(__unique_keys{}, std::forward<_Pair>(__v)); 29761: } 29761: 29761: template> 29761: iterator 29761: insert(const_iterator __hint, _Pair&& __v) 29761: { 29761: __hashtable& __h = this->_M_conjure_hashtable(); 29761: return __h._M_emplace(__hint, __unique_keys{}, 29761: std::forward<_Pair>(__v)); 29761: } 29761: }; 29761: 29761: template 29761: using __has_load_factor = typename _Policy::__has_load_factor; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: struct _Rehash_base; 29761: 29761: 29761: template 29761: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 29761: false_type > 29761: { 29761: }; 29761: 29761: 29761: template 29761: struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, 29761: true_type > 29761: { 29761: private: 29761: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: public: 29761: float 29761: max_load_factor() const noexcept 29761: { 29761: const __hashtable* __this = static_cast(this); 29761: return __this->__rehash_policy().max_load_factor(); 29761: } 29761: 29761: void 29761: max_load_factor(float __z) 29761: { 29761: __hashtable* __this = static_cast<__hashtable*>(this); 29761: __this->__rehash_policy(_RehashPolicy(__z)); 29761: } 29761: 29761: void 29761: reserve(std::size_t __n) 29761: { 29761: __hashtable* __this = static_cast<__hashtable*>(this); 29761: __this->rehash(__this->__rehash_policy()._M_bkt_for_elements(__n)); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hashtable_ebo_helper; 29761: 29761: 29761: template 29761: struct _Hashtable_ebo_helper<_Nm, _Tp, true> 29761: : private _Tp 29761: { 29761: _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } 29761: 29761: template 29761: _Hashtable_ebo_helper(_OtherTp&& __tp) 29761: : _Tp(std::forward<_OtherTp>(__tp)) 29761: { } 29761: 29761: const _Tp& _M_cget() const { return static_cast(*this); } 29761: _Tp& _M_get() { return static_cast<_Tp&>(*this); } 29761: }; 29761: 29761: 29761: template 29761: struct _Hashtable_ebo_helper<_Nm, _Tp, false> 29761: { 29761: _Hashtable_ebo_helper() = default; 29761: 29761: template 29761: _Hashtable_ebo_helper(_OtherTp&& __tp) 29761: : _M_tp(std::forward<_OtherTp>(__tp)) 29761: { } 29761: 29761: const _Tp& _M_cget() const { return _M_tp; } 29761: _Tp& _M_get() { return _M_tp; } 29761: 29761: private: 29761: _Tp _M_tp{}; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Local_iterator_base; 29761: # 1303 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: template 29761: struct _Hash_code_base 29761: : private _Hashtable_ebo_helper<1, _Hash> 29761: { 29761: private: 29761: using __ebo_hash = _Hashtable_ebo_helper<1, _Hash>; 29761: 29761: 29761: friend struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, false>; 29761: 29761: public: 29761: typedef _Hash hasher; 29761: 29761: hasher 29761: hash_function() const 29761: { return _M_hash(); } 29761: 29761: protected: 29761: typedef std::size_t __hash_code; 29761: 29761: 29761: 29761: _Hash_code_base() = default; 29761: 29761: _Hash_code_base(const _Hash& __hash) : __ebo_hash(__hash) { } 29761: 29761: __hash_code 29761: _M_hash_code(const _Key& __k) const 29761: { 29761: static_assert(__is_invocable{}, 29761: "hash function must be invocable with an argument of key type"); 29761: return _M_hash()(__k); 29761: } 29761: 29761: template 29761: __hash_code 29761: _M_hash_code_tr(const _Kt& __k) const 29761: { 29761: static_assert(__is_invocable{}, 29761: "hash function must be invocable with an argument of key type"); 29761: return _M_hash()(__k); 29761: } 29761: 29761: __hash_code 29761: _M_hash_code(const _Hash_node_value<_Value, false>& __n) const 29761: { return _M_hash_code(_ExtractKey{}(__n._M_v())); } 29761: 29761: __hash_code 29761: _M_hash_code(const _Hash_node_value<_Value, true>& __n) const 29761: { return __n._M_hash_code; } 29761: 29761: std::size_t 29761: _M_bucket_index(__hash_code __c, std::size_t __bkt_count) const 29761: { return _RangeHash{}(__c, __bkt_count); } 29761: 29761: std::size_t 29761: _M_bucket_index(const _Hash_node_value<_Value, false>& __n, 29761: std::size_t __bkt_count) const 29761: noexcept( noexcept(declval()(declval())) 29761: && noexcept(declval()((__hash_code)0, 29761: (std::size_t)0)) ) 29761: { 29761: return _RangeHash{}(_M_hash_code(_ExtractKey{}(__n._M_v())), 29761: __bkt_count); 29761: } 29761: 29761: std::size_t 29761: _M_bucket_index(const _Hash_node_value<_Value, true>& __n, 29761: std::size_t __bkt_count) const 29761: noexcept( noexcept(declval()((__hash_code)0, 29761: (std::size_t)0)) ) 29761: { return _RangeHash{}(__n._M_hash_code, __bkt_count); } 29761: 29761: void 29761: _M_store_code(_Hash_node_code_cache&, __hash_code) const 29761: { } 29761: 29761: void 29761: _M_copy_code(_Hash_node_code_cache&, 29761: const _Hash_node_code_cache&) const 29761: { } 29761: 29761: void 29761: _M_store_code(_Hash_node_code_cache& __n, __hash_code __c) const 29761: { __n._M_hash_code = __c; } 29761: 29761: void 29761: _M_copy_code(_Hash_node_code_cache& __to, 29761: const _Hash_node_code_cache& __from) const 29761: { __to._M_hash_code = __from._M_hash_code; } 29761: 29761: void 29761: _M_swap(_Hash_code_base& __x) 29761: { std::swap(__ebo_hash::_M_get(), __x.__ebo_hash::_M_get()); } 29761: 29761: const _Hash& 29761: _M_hash() const { return __ebo_hash::_M_cget(); } 29761: }; 29761: 29761: 29761: template 29761: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, true> 29761: : public _Node_iterator_base<_Value, true> 29761: { 29761: protected: 29761: using __base_node_iter = _Node_iterator_base<_Value, true>; 29761: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, true>; 29761: 29761: _Local_iterator_base() = default; 29761: _Local_iterator_base(const __hash_code_base&, 29761: _Hash_node<_Value, true>* __p, 29761: std::size_t __bkt, std::size_t __bkt_count) 29761: : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 29761: { } 29761: 29761: void 29761: _M_incr() 29761: { 29761: __base_node_iter::_M_incr(); 29761: if (this->_M_cur) 29761: { 29761: std::size_t __bkt 29761: = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count); 29761: if (__bkt != _M_bucket) 29761: this->_M_cur = nullptr; 29761: } 29761: } 29761: 29761: std::size_t _M_bucket; 29761: std::size_t _M_bucket_count; 29761: 29761: public: 29761: std::size_t 29761: _M_get_bucket() const { return _M_bucket; } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template::value> 29761: struct _Hash_code_storage 29761: { 29761: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 29761: 29761: _Tp* 29761: _M_h() { return _M_storage._M_ptr(); } 29761: 29761: const _Tp* 29761: _M_h() const { return _M_storage._M_ptr(); } 29761: }; 29761: 29761: 29761: template 29761: struct _Hash_code_storage<_Tp, true> 29761: { 29761: static_assert( std::is_empty<_Tp>::value, "Type must be empty" ); 29761: 29761: 29761: 29761: _Tp* 29761: _M_h() { return reinterpret_cast<_Tp*>(this); } 29761: 29761: const _Tp* 29761: _M_h() const { return reinterpret_cast(this); } 29761: }; 29761: 29761: template 29761: using __hash_code_for_local_iter 29761: = _Hash_code_storage<_Hash_code_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, false>>; 29761: 29761: 29761: template 29761: struct _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, false> 29761: : __hash_code_for_local_iter<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 29761: _Unused> 29761: , _Node_iterator_base<_Value, false> 29761: { 29761: protected: 29761: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, false>; 29761: using __node_iter_base = _Node_iterator_base<_Value, false>; 29761: 29761: _Local_iterator_base() : _M_bucket_count(-1) { } 29761: 29761: _Local_iterator_base(const __hash_code_base& __base, 29761: _Hash_node<_Value, false>* __p, 29761: std::size_t __bkt, std::size_t __bkt_count) 29761: : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) 29761: { _M_init(__base); } 29761: 29761: ~_Local_iterator_base() 29761: { 29761: if (_M_bucket_count != size_t(-1)) 29761: _M_destroy(); 29761: } 29761: 29761: _Local_iterator_base(const _Local_iterator_base& __iter) 29761: : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket) 29761: , _M_bucket_count(__iter._M_bucket_count) 29761: { 29761: if (_M_bucket_count != size_t(-1)) 29761: _M_init(*__iter._M_h()); 29761: } 29761: 29761: _Local_iterator_base& 29761: operator=(const _Local_iterator_base& __iter) 29761: { 29761: if (_M_bucket_count != -1) 29761: _M_destroy(); 29761: this->_M_cur = __iter._M_cur; 29761: _M_bucket = __iter._M_bucket; 29761: _M_bucket_count = __iter._M_bucket_count; 29761: if (_M_bucket_count != -1) 29761: _M_init(*__iter._M_h()); 29761: return *this; 29761: } 29761: 29761: void 29761: _M_incr() 29761: { 29761: __node_iter_base::_M_incr(); 29761: if (this->_M_cur) 29761: { 29761: std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur, 29761: _M_bucket_count); 29761: if (__bkt != _M_bucket) 29761: this->_M_cur = nullptr; 29761: } 29761: } 29761: 29761: std::size_t _M_bucket; 29761: std::size_t _M_bucket_count; 29761: 29761: void 29761: _M_init(const __hash_code_base& __base) 29761: { ::new(this->_M_h()) __hash_code_base(__base); } 29761: 29761: void 29761: _M_destroy() { this->_M_h()->~__hash_code_base(); } 29761: 29761: public: 29761: std::size_t 29761: _M_get_bucket() const { return _M_bucket; } 29761: }; 29761: 29761: 29761: template 29761: struct _Local_iterator 29761: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, __cache> 29761: { 29761: private: 29761: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, __cache>; 29761: using __hash_code_base = typename __base_type::__hash_code_base; 29761: 29761: public: 29761: using value_type = _Value; 29761: using pointer = __conditional_t<__constant_iterators, 29761: const value_type*, value_type*>; 29761: using reference = __conditional_t<__constant_iterators, 29761: const value_type&, value_type&>; 29761: using difference_type = ptrdiff_t; 29761: using iterator_category = forward_iterator_tag; 29761: 29761: _Local_iterator() = default; 29761: 29761: _Local_iterator(const __hash_code_base& __base, 29761: _Hash_node<_Value, __cache>* __n, 29761: std::size_t __bkt, std::size_t __bkt_count) 29761: : __base_type(__base, __n, __bkt, __bkt_count) 29761: { } 29761: 29761: reference 29761: operator*() const 29761: { return this->_M_cur->_M_v(); } 29761: 29761: pointer 29761: operator->() const 29761: { return this->_M_cur->_M_valptr(); } 29761: 29761: _Local_iterator& 29761: operator++() 29761: { 29761: this->_M_incr(); 29761: return *this; 29761: } 29761: 29761: _Local_iterator 29761: operator++(int) 29761: { 29761: _Local_iterator __tmp(*this); 29761: this->_M_incr(); 29761: return __tmp; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Local_const_iterator 29761: : public _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, __cache> 29761: { 29761: private: 29761: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, __cache>; 29761: using __hash_code_base = typename __base_type::__hash_code_base; 29761: 29761: public: 29761: typedef _Value value_type; 29761: typedef const value_type* pointer; 29761: typedef const value_type& reference; 29761: typedef std::ptrdiff_t difference_type; 29761: typedef std::forward_iterator_tag iterator_category; 29761: 29761: _Local_const_iterator() = default; 29761: 29761: _Local_const_iterator(const __hash_code_base& __base, 29761: _Hash_node<_Value, __cache>* __n, 29761: std::size_t __bkt, std::size_t __bkt_count) 29761: : __base_type(__base, __n, __bkt, __bkt_count) 29761: { } 29761: 29761: _Local_const_iterator(const _Local_iterator<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, 29761: __constant_iterators, 29761: __cache>& __x) 29761: : __base_type(__x) 29761: { } 29761: 29761: reference 29761: operator*() const 29761: { return this->_M_cur->_M_v(); } 29761: 29761: pointer 29761: operator->() const 29761: { return this->_M_cur->_M_valptr(); } 29761: 29761: _Local_const_iterator& 29761: operator++() 29761: { 29761: this->_M_incr(); 29761: return *this; 29761: } 29761: 29761: _Local_const_iterator 29761: operator++(int) 29761: { 29761: _Local_const_iterator __tmp(*this); 29761: this->_M_incr(); 29761: return __tmp; 29761: } 29761: }; 29761: # 1682 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: template 29761: struct _Hashtable_base 29761: : public _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, 29761: _Unused, _Traits::__hash_cached::value>, 29761: private _Hashtable_ebo_helper<0, _Equal> 29761: { 29761: public: 29761: typedef _Key key_type; 29761: typedef _Value value_type; 29761: typedef _Equal key_equal; 29761: typedef std::size_t size_type; 29761: typedef std::ptrdiff_t difference_type; 29761: 29761: using __traits_type = _Traits; 29761: using __hash_cached = typename __traits_type::__hash_cached; 29761: 29761: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, 29761: _Hash, _RangeHash, _Unused, 29761: __hash_cached::value>; 29761: 29761: using __hash_code = typename __hash_code_base::__hash_code; 29761: 29761: private: 29761: using _EqualEBO = _Hashtable_ebo_helper<0, _Equal>; 29761: 29761: static bool 29761: _S_equals(__hash_code, const _Hash_node_code_cache&) 29761: { return true; } 29761: 29761: static bool 29761: _S_node_equals(const _Hash_node_code_cache&, 29761: const _Hash_node_code_cache&) 29761: { return true; } 29761: 29761: static bool 29761: _S_equals(__hash_code __c, const _Hash_node_code_cache& __n) 29761: { return __c == __n._M_hash_code; } 29761: 29761: static bool 29761: _S_node_equals(const _Hash_node_code_cache& __lhn, 29761: const _Hash_node_code_cache& __rhn) 29761: { return __lhn._M_hash_code == __rhn._M_hash_code; } 29761: 29761: protected: 29761: _Hashtable_base() = default; 29761: 29761: _Hashtable_base(const _Hash& __hash, const _Equal& __eq) 29761: : __hash_code_base(__hash), _EqualEBO(__eq) 29761: { } 29761: 29761: bool 29761: _M_key_equals(const _Key& __k, 29761: const _Hash_node_value<_Value, 29761: __hash_cached::value>& __n) const 29761: { 29761: static_assert(__is_invocable{}, 29761: "key equality predicate must be invocable with two arguments of " 29761: "key type"); 29761: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 29761: } 29761: 29761: template 29761: bool 29761: _M_key_equals_tr(const _Kt& __k, 29761: const _Hash_node_value<_Value, 29761: __hash_cached::value>& __n) const 29761: { 29761: static_assert( 29761: __is_invocable{}, 29761: "key equality predicate must be invocable with two arguments of " 29761: "key type"); 29761: return _M_eq()(__k, _ExtractKey{}(__n._M_v())); 29761: } 29761: 29761: bool 29761: _M_equals(const _Key& __k, __hash_code __c, 29761: const _Hash_node_value<_Value, __hash_cached::value>& __n) const 29761: { return _S_equals(__c, __n) && _M_key_equals(__k, __n); } 29761: 29761: template 29761: bool 29761: _M_equals_tr(const _Kt& __k, __hash_code __c, 29761: const _Hash_node_value<_Value, 29761: __hash_cached::value>& __n) const 29761: { return _S_equals(__c, __n) && _M_key_equals_tr(__k, __n); } 29761: 29761: bool 29761: _M_node_equals( 29761: const _Hash_node_value<_Value, __hash_cached::value>& __lhn, 29761: const _Hash_node_value<_Value, __hash_cached::value>& __rhn) const 29761: { 29761: return _S_node_equals(__lhn, __rhn) 29761: && _M_key_equals(_ExtractKey{}(__lhn._M_v()), __rhn); 29761: } 29761: 29761: void 29761: _M_swap(_Hashtable_base& __x) 29761: { 29761: __hash_code_base::_M_swap(__x); 29761: std::swap(_EqualEBO::_M_get(), __x._EqualEBO::_M_get()); 29761: } 29761: 29761: const _Equal& 29761: _M_eq() const { return _EqualEBO::_M_cget(); } 29761: }; 29761: # 1798 "/usr/include/c++/14/bits/hashtable_policy.h" 3 29761: template 29761: struct _Equality; 29761: 29761: 29761: template 29761: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> 29761: { 29761: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: bool 29761: _M_equal(const __hashtable&) const; 29761: }; 29761: 29761: template 29761: bool 29761: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: 29761: _M_equal(const __hashtable& __other) const 29761: { 29761: using __node_ptr = typename __hashtable::__node_ptr; 29761: const __hashtable* __this = static_cast(this); 29761: if (__this->size() != __other.size()) 29761: return false; 29761: 29761: for (auto __x_n = __this->_M_begin(); __x_n; __x_n = __x_n->_M_next()) 29761: { 29761: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 29761: auto __prev_n = __other._M_buckets[__ybkt]; 29761: if (!__prev_n) 29761: return false; 29761: 29761: for (__node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt);; 29761: __n = __n->_M_next()) 29761: { 29761: if (__n->_M_v() == __x_n->_M_v()) 29761: break; 29761: 29761: if (!__n->_M_nxt 29761: || __other._M_bucket_index(*__n->_M_next()) != __ybkt) 29761: return false; 29761: } 29761: } 29761: 29761: return true; 29761: } 29761: 29761: 29761: template 29761: struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> 29761: { 29761: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: bool 29761: _M_equal(const __hashtable&) const; 29761: }; 29761: 29761: template 29761: bool 29761: _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>:: 29761: _M_equal(const __hashtable& __other) const 29761: { 29761: using __node_ptr = typename __hashtable::__node_ptr; 29761: using const_iterator = typename __hashtable::const_iterator; 29761: const __hashtable* __this = static_cast(this); 29761: if (__this->size() != __other.size()) 29761: return false; 29761: 29761: for (auto __x_n = __this->_M_begin(); __x_n;) 29761: { 29761: std::size_t __x_count = 1; 29761: auto __x_n_end = __x_n->_M_next(); 29761: for (; __x_n_end 29761: && __this->key_eq()(_ExtractKey{}(__x_n->_M_v()), 29761: _ExtractKey{}(__x_n_end->_M_v())); 29761: __x_n_end = __x_n_end->_M_next()) 29761: ++__x_count; 29761: 29761: std::size_t __ybkt = __other._M_bucket_index(*__x_n); 29761: auto __y_prev_n = __other._M_buckets[__ybkt]; 29761: if (!__y_prev_n) 29761: return false; 29761: 29761: __node_ptr __y_n = static_cast<__node_ptr>(__y_prev_n->_M_nxt); 29761: for (;;) 29761: { 29761: if (__this->key_eq()(_ExtractKey{}(__y_n->_M_v()), 29761: _ExtractKey{}(__x_n->_M_v()))) 29761: break; 29761: 29761: auto __y_ref_n = __y_n; 29761: for (__y_n = __y_n->_M_next(); __y_n; __y_n = __y_n->_M_next()) 29761: if (!__other._M_node_equals(*__y_ref_n, *__y_n)) 29761: break; 29761: 29761: if (!__y_n || __other._M_bucket_index(*__y_n) != __ybkt) 29761: return false; 29761: } 29761: 29761: auto __y_n_end = __y_n; 29761: for (; __y_n_end; __y_n_end = __y_n_end->_M_next()) 29761: if (--__x_count == 0) 29761: break; 29761: 29761: if (__x_count != 0) 29761: return false; 29761: 29761: const_iterator __itx(__x_n), __itx_end(__x_n_end); 29761: const_iterator __ity(__y_n); 29761: if (!std::is_permutation(__itx, __itx_end, __ity)) 29761: return false; 29761: 29761: __x_n = __x_n_end; 29761: } 29761: return true; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hashtable_alloc : private _Hashtable_ebo_helper<0, _NodeAlloc> 29761: { 29761: private: 29761: using __ebo_node_alloc = _Hashtable_ebo_helper<0, _NodeAlloc>; 29761: 29761: template 29761: struct __get_value_type; 29761: template 29761: struct __get_value_type<_Hash_node<_Val, _Cache_hash_code>> 29761: { using type = _Val; }; 29761: 29761: public: 29761: using __node_type = typename _NodeAlloc::value_type; 29761: using __node_alloc_type = _NodeAlloc; 29761: 29761: using __node_alloc_traits = __gnu_cxx::__alloc_traits<__node_alloc_type>; 29761: 29761: using __value_alloc_traits = typename __node_alloc_traits::template 29761: rebind_traits::type>; 29761: 29761: using __node_ptr = __node_type*; 29761: using __node_base = _Hash_node_base; 29761: using __node_base_ptr = __node_base*; 29761: using __buckets_alloc_type = 29761: __alloc_rebind<__node_alloc_type, __node_base_ptr>; 29761: using __buckets_alloc_traits = std::allocator_traits<__buckets_alloc_type>; 29761: using __buckets_ptr = __node_base_ptr*; 29761: 29761: _Hashtable_alloc() = default; 29761: _Hashtable_alloc(const _Hashtable_alloc&) = default; 29761: _Hashtable_alloc(_Hashtable_alloc&&) = default; 29761: 29761: template 29761: _Hashtable_alloc(_Alloc&& __a) 29761: : __ebo_node_alloc(std::forward<_Alloc>(__a)) 29761: { } 29761: 29761: __node_alloc_type& 29761: _M_node_allocator() 29761: { return __ebo_node_alloc::_M_get(); } 29761: 29761: const __node_alloc_type& 29761: _M_node_allocator() const 29761: { return __ebo_node_alloc::_M_cget(); } 29761: 29761: 29761: template 29761: __node_ptr 29761: _M_allocate_node(_Args&&... __args); 29761: 29761: 29761: void 29761: _M_deallocate_node(__node_ptr __n); 29761: 29761: 29761: void 29761: _M_deallocate_node_ptr(__node_ptr __n); 29761: 29761: 29761: 29761: void 29761: _M_deallocate_nodes(__node_ptr __n); 29761: 29761: __buckets_ptr 29761: _M_allocate_buckets(std::size_t __bkt_count); 29761: 29761: void 29761: _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count); 29761: }; 29761: 29761: 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&... __args) 29761: -> __node_ptr 29761: { 29761: auto& __alloc = _M_node_allocator(); 29761: auto __nptr = __node_alloc_traits::allocate(__alloc, 1); 29761: __node_ptr __n = std::__to_address(__nptr); 29761: try 29761: { 29761: ::new ((void*)__n) __node_type; 29761: __node_alloc_traits::construct(__alloc, __n->_M_valptr(), 29761: std::forward<_Args>(__args)...); 29761: return __n; 29761: } 29761: catch(...) 29761: { 29761: __n->~__node_type(); 29761: __node_alloc_traits::deallocate(__alloc, __nptr, 1); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_ptr __n) 29761: { 29761: __node_alloc_traits::destroy(_M_node_allocator(), __n->_M_valptr()); 29761: _M_deallocate_node_ptr(__n); 29761: } 29761: 29761: template 29761: void 29761: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node_ptr(__node_ptr __n) 29761: { 29761: typedef typename __node_alloc_traits::pointer _Ptr; 29761: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__n); 29761: __n->~__node_type(); 29761: __node_alloc_traits::deallocate(_M_node_allocator(), __ptr, 1); 29761: } 29761: 29761: template 29761: void 29761: _Hashtable_alloc<_NodeAlloc>::_M_deallocate_nodes(__node_ptr __n) 29761: { 29761: while (__n) 29761: { 29761: __node_ptr __tmp = __n; 29761: __n = __n->_M_next(); 29761: _M_deallocate_node(__tmp); 29761: } 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count) 29761: -> __buckets_ptr 29761: { 29761: __buckets_alloc_type __alloc(_M_node_allocator()); 29761: 29761: auto __ptr = __buckets_alloc_traits::allocate(__alloc, __bkt_count); 29761: __buckets_ptr __p = std::__to_address(__ptr); 29761: __builtin_memset(__p, 0, __bkt_count * sizeof(__node_base_ptr)); 29761: return __p; 29761: } 29761: 29761: template 29761: void 29761: _Hashtable_alloc<_NodeAlloc>:: 29761: _M_deallocate_buckets(__buckets_ptr __bkts, 29761: std::size_t __bkt_count) 29761: { 29761: typedef typename __buckets_alloc_traits::pointer _Ptr; 29761: auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__bkts); 29761: __buckets_alloc_type __alloc(_M_node_allocator()); 29761: __buckets_alloc_traits::deallocate(__alloc, __ptr, __bkt_count); 29761: } 29761: 29761: 29761: } 29761: 29761: 29761: } 29761: # 36 "/usr/include/c++/14/bits/hashtable.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/enable_special_members.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/enable_special_members.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/enable_special_members.h" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: struct _Enable_default_constructor_tag 29761: { 29761: explicit constexpr _Enable_default_constructor_tag() = default; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Enable_default_constructor 29761: { 29761: constexpr _Enable_default_constructor() noexcept = default; 29761: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 29761: noexcept = default; 29761: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 29761: noexcept = default; 29761: _Enable_default_constructor& 29761: operator=(_Enable_default_constructor const&) noexcept = default; 29761: _Enable_default_constructor& 29761: operator=(_Enable_default_constructor&&) noexcept = default; 29761: 29761: 29761: constexpr explicit 29761: _Enable_default_constructor(_Enable_default_constructor_tag) { } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Enable_destructor { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Enable_copy_move { }; 29761: # 96 "/usr/include/c++/14/bits/enable_special_members.h" 3 29761: template 29761: struct _Enable_special_members 29761: : private _Enable_default_constructor<_Default, _Tag>, 29761: private _Enable_destructor<_Destructor, _Tag>, 29761: private _Enable_copy_move<_Copy, _CopyAssignment, 29761: _Move, _MoveAssignment, 29761: _Tag> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct _Enable_default_constructor 29761: { 29761: constexpr _Enable_default_constructor() noexcept = delete; 29761: constexpr _Enable_default_constructor(_Enable_default_constructor const&) 29761: noexcept = default; 29761: constexpr _Enable_default_constructor(_Enable_default_constructor&&) 29761: noexcept = default; 29761: _Enable_default_constructor& 29761: operator=(_Enable_default_constructor const&) noexcept = default; 29761: _Enable_default_constructor& 29761: operator=(_Enable_default_constructor&&) noexcept = default; 29761: 29761: 29761: constexpr explicit 29761: _Enable_default_constructor(_Enable_default_constructor_tag) { } 29761: }; 29761: 29761: template 29761: struct _Enable_destructor 29761: { ~_Enable_destructor() noexcept = delete; }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = default; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = default; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: template 29761: struct _Enable_copy_move 29761: { 29761: constexpr _Enable_copy_move() noexcept = default; 29761: constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; 29761: constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move const&) noexcept = delete; 29761: _Enable_copy_move& 29761: operator=(_Enable_copy_move&&) noexcept = delete; 29761: }; 29761: 29761: 29761: 29761: } 29761: # 37 "/usr/include/c++/14/bits/hashtable.h" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/node_handle.h" 1 3 29761: # 34 "/usr/include/c++/14/bits/node_handle.h" 3 29761: 29761: # 35 "/usr/include/c++/14/bits/node_handle.h" 3 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 37 "/usr/include/c++/14/bits/node_handle.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 64 "/usr/include/c++/14/bits/node_handle.h" 3 29761: template 29761: class _Node_handle_common 29761: { 29761: using _AllocTraits = allocator_traits<_NodeAlloc>; 29761: 29761: public: 29761: using allocator_type = __alloc_rebind<_NodeAlloc, _Val>; 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return allocator_type(_M_alloc._M_alloc); 29761: } 29761: 29761: explicit operator bool() const noexcept { return _M_ptr != nullptr; } 29761: 29761: [[nodiscard]] bool empty() const noexcept { return _M_ptr == nullptr; } 29761: 29761: 29761: protected: 29761: constexpr _Node_handle_common() noexcept : _M_ptr() { } 29761: 29761: ~_Node_handle_common() 29761: { 29761: if (!empty()) 29761: _M_reset(); 29761: } 29761: 29761: _Node_handle_common(_Node_handle_common&& __nh) noexcept 29761: : _M_ptr(__nh._M_ptr) 29761: { 29761: if (_M_ptr) 29761: _M_move(std::move(__nh)); 29761: } 29761: 29761: _Node_handle_common& 29761: operator=(_Node_handle_common&& __nh) noexcept 29761: { 29761: if (empty()) 29761: { 29761: if (!__nh.empty()) 29761: _M_move(std::move(__nh)); 29761: } 29761: else if (__nh.empty()) 29761: _M_reset(); 29761: else 29761: { 29761: 29761: _AllocTraits::destroy(*_M_alloc, _M_ptr->_M_valptr()); 29761: _AllocTraits::deallocate(*_M_alloc, _M_ptr, 1); 29761: 29761: _M_alloc = __nh._M_alloc.release(); 29761: _M_ptr = __nh._M_ptr; 29761: __nh._M_ptr = nullptr; 29761: } 29761: return *this; 29761: } 29761: 29761: _Node_handle_common(typename _AllocTraits::pointer __ptr, 29761: const _NodeAlloc& __alloc) 29761: : _M_ptr(__ptr), _M_alloc(__alloc) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__ptr != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: void 29761: _M_swap(_Node_handle_common& __nh) noexcept 29761: { 29761: if (empty()) 29761: { 29761: if (!__nh.empty()) 29761: _M_move(std::move(__nh)); 29761: } 29761: else if (__nh.empty()) 29761: __nh._M_move(std::move(*this)); 29761: else 29761: { 29761: using std::swap; 29761: swap(_M_ptr, __nh._M_ptr); 29761: _M_alloc.swap(__nh._M_alloc); 29761: } 29761: } 29761: 29761: private: 29761: 29761: 29761: 29761: void 29761: _M_move(_Node_handle_common&& __nh) noexcept 29761: { 29761: ::new (std::__addressof(_M_alloc)) _NodeAlloc(__nh._M_alloc.release()); 29761: _M_ptr = __nh._M_ptr; 29761: __nh._M_ptr = nullptr; 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: _M_reset() noexcept 29761: { 29761: _NodeAlloc __alloc = _M_alloc.release(); 29761: _AllocTraits::destroy(__alloc, _M_ptr->_M_valptr()); 29761: _AllocTraits::deallocate(__alloc, _M_ptr, 1); 29761: _M_ptr = nullptr; 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: release() noexcept 29761: { 29761: _M_alloc.release(); 29761: _M_ptr = nullptr; 29761: } 29761: 29761: protected: 29761: typename _AllocTraits::pointer _M_ptr; 29761: 29761: private: 29761: 29761: 29761: union _Optional_alloc 29761: { 29761: _Optional_alloc() { } 29761: ~_Optional_alloc() { } 29761: 29761: _Optional_alloc(_Optional_alloc&&) = delete; 29761: _Optional_alloc& operator=(_Optional_alloc&&) = delete; 29761: 29761: _Optional_alloc(const _NodeAlloc& __alloc) noexcept 29761: : _M_alloc(__alloc) 29761: { } 29761: 29761: 29761: void 29761: operator=(_NodeAlloc&& __alloc) noexcept 29761: { 29761: using _ATr = _AllocTraits; 29761: if constexpr (_ATr::propagate_on_container_move_assignment::value) 29761: _M_alloc = std::move(__alloc); 29761: else if constexpr (!_AllocTraits::is_always_equal::value) 29761: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: 29761: void 29761: swap(_Optional_alloc& __other) noexcept 29761: { 29761: using std::swap; 29761: if constexpr (_AllocTraits::propagate_on_container_swap::value) 29761: swap(_M_alloc, __other._M_alloc); 29761: else if constexpr (!_AllocTraits::is_always_equal::value) 29761: do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __other._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: 29761: _NodeAlloc& operator*() noexcept { return _M_alloc; } 29761: 29761: 29761: _NodeAlloc release() noexcept 29761: { 29761: _NodeAlloc __tmp = std::move(_M_alloc); 29761: _M_alloc.~_NodeAlloc(); 29761: return __tmp; 29761: } 29761: 29761: [[__no_unique_address__]] _NodeAlloc _M_alloc; 29761: }; 29761: 29761: [[__no_unique_address__]] _Optional_alloc _M_alloc; 29761: 29761: template 29761: friend class _Rb_tree; 29761: 29761: template 29761: friend class _Hashtable; 29761: 29761: 29761: }; 29761: 29761: 29761: template 29761: class _Node_handle : public _Node_handle_common<_Value, _NodeAlloc> 29761: { 29761: public: 29761: constexpr _Node_handle() noexcept = default; 29761: ~_Node_handle() = default; 29761: _Node_handle(_Node_handle&&) noexcept = default; 29761: 29761: _Node_handle& 29761: operator=(_Node_handle&&) noexcept = default; 29761: 29761: using key_type = _Key; 29761: using mapped_type = typename _Value::second_type; 29761: 29761: key_type& 29761: key() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return *_M_pkey; 29761: } 29761: 29761: mapped_type& 29761: mapped() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return *_M_pmapped; 29761: } 29761: 29761: void 29761: swap(_Node_handle& __nh) noexcept 29761: { 29761: this->_M_swap(__nh); 29761: using std::swap; 29761: swap(_M_pkey, __nh._M_pkey); 29761: swap(_M_pmapped, __nh._M_pmapped); 29761: } 29761: 29761: friend void 29761: swap(_Node_handle& __x, _Node_handle& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: private: 29761: using _AllocTraits = allocator_traits<_NodeAlloc>; 29761: 29761: _Node_handle(typename _AllocTraits::pointer __ptr, 29761: const _NodeAlloc& __alloc) 29761: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) 29761: { 29761: if (__ptr) 29761: { 29761: auto& __key = const_cast<_Key&>(__ptr->_M_valptr()->first); 29761: _M_pkey = _S_pointer_to(__key); 29761: _M_pmapped = _S_pointer_to(__ptr->_M_valptr()->second); 29761: } 29761: else 29761: { 29761: _M_pkey = nullptr; 29761: _M_pmapped = nullptr; 29761: } 29761: } 29761: 29761: template 29761: using __pointer 29761: = __ptr_rebind>; 29761: 29761: __pointer<_Key> _M_pkey = nullptr; 29761: __pointer _M_pmapped = nullptr; 29761: 29761: template 29761: __pointer<_Tp> 29761: _S_pointer_to(_Tp& __obj) 29761: { return pointer_traits<__pointer<_Tp>>::pointer_to(__obj); } 29761: 29761: const key_type& 29761: _M_key() const noexcept { return key(); } 29761: 29761: template 29761: friend class _Rb_tree; 29761: 29761: template 29761: friend class _Hashtable; 29761: }; 29761: 29761: 29761: template 29761: class _Node_handle<_Value, _Value, _NodeAlloc> 29761: : public _Node_handle_common<_Value, _NodeAlloc> 29761: { 29761: public: 29761: constexpr _Node_handle() noexcept = default; 29761: ~_Node_handle() = default; 29761: _Node_handle(_Node_handle&&) noexcept = default; 29761: 29761: _Node_handle& 29761: operator=(_Node_handle&&) noexcept = default; 29761: 29761: using value_type = _Value; 29761: 29761: value_type& 29761: value() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!this->empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return *this->_M_ptr->_M_valptr(); 29761: } 29761: 29761: void 29761: swap(_Node_handle& __nh) noexcept 29761: { this->_M_swap(__nh); } 29761: 29761: friend void 29761: swap(_Node_handle& __x, _Node_handle& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: private: 29761: using _AllocTraits = allocator_traits<_NodeAlloc>; 29761: 29761: _Node_handle(typename _AllocTraits::pointer __ptr, 29761: const _NodeAlloc& __alloc) 29761: : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { } 29761: 29761: const value_type& 29761: _M_key() const noexcept { return value(); } 29761: 29761: template 29761: friend class _Rb_tree; 29761: 29761: template 29761: friend class _Hashtable; 29761: }; 29761: 29761: 29761: template 29761: struct _Node_insert_return 29761: { 29761: _Iterator position = _Iterator(); 29761: bool inserted = false; 29761: _NodeHandle node; 29761: }; 29761: 29761: 29761: 29761: 29761: } 29761: # 40 "/usr/include/c++/14/bits/hashtable.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: using __cache_default 29761: = __not_<__and_< 29761: __is_fast_hash<_Hash>, 29761: 29761: __is_nothrow_invocable>>; 29761: 29761: 29761: 29761: 29761: template 29761: using _Hashtable_enable_default_ctor 29761: = _Enable_default_constructor<__and_, 29761: is_default_constructible<_Hash>, 29761: is_default_constructible<_Allocator>>{}, 29761: __detail::_Hash_node_base>; 29761: # 181 "/usr/include/c++/14/bits/hashtable.h" 3 29761: template 29761: class _Hashtable 29761: : public __detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _Traits>, 29761: public __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>, 29761: public __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>, 29761: public __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>, 29761: public __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>, 29761: private __detail::_Hashtable_alloc< 29761: __alloc_rebind<_Alloc, 29761: __detail::_Hash_node<_Value, 29761: _Traits::__hash_cached::value>>>, 29761: private _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc> 29761: { 29761: static_assert(is_same::type, _Value>::value, 29761: "unordered container must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: using __traits_type = _Traits; 29761: using __hash_cached = typename __traits_type::__hash_cached; 29761: using __constant_iterators = typename __traits_type::__constant_iterators; 29761: using __node_type = __detail::_Hash_node<_Value, __hash_cached::value>; 29761: using __node_alloc_type = __alloc_rebind<_Alloc, __node_type>; 29761: 29761: using __hashtable_alloc = __detail::_Hashtable_alloc<__node_alloc_type>; 29761: 29761: using __node_value_type = 29761: __detail::_Hash_node_value<_Value, __hash_cached::value>; 29761: using __node_ptr = typename __hashtable_alloc::__node_ptr; 29761: using __value_alloc_traits = 29761: typename __hashtable_alloc::__value_alloc_traits; 29761: using __node_alloc_traits = 29761: typename __hashtable_alloc::__node_alloc_traits; 29761: using __node_base = typename __hashtable_alloc::__node_base; 29761: using __node_base_ptr = typename __hashtable_alloc::__node_base_ptr; 29761: using __buckets_ptr = typename __hashtable_alloc::__buckets_ptr; 29761: 29761: using __insert_base = __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, 29761: _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: using __enable_default_ctor 29761: = _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc>; 29761: using __rehash_guard_t 29761: = __detail::_RehashStateGuard<_RehashPolicy>; 29761: 29761: public: 29761: typedef _Key key_type; 29761: typedef _Value value_type; 29761: typedef _Alloc allocator_type; 29761: typedef _Equal key_equal; 29761: 29761: 29761: 29761: typedef typename __value_alloc_traits::pointer pointer; 29761: typedef typename __value_alloc_traits::const_pointer const_pointer; 29761: typedef value_type& reference; 29761: typedef const value_type& const_reference; 29761: 29761: using iterator = typename __insert_base::iterator; 29761: 29761: using const_iterator = typename __insert_base::const_iterator; 29761: 29761: using local_iterator = __detail::_Local_iterator; 29761: 29761: using const_local_iterator = __detail::_Local_const_iterator< 29761: key_type, _Value, 29761: _ExtractKey, _Hash, _RangeHash, _Unused, 29761: __constant_iterators::value, __hash_cached::value>; 29761: 29761: private: 29761: using __rehash_type = _RehashPolicy; 29761: 29761: using __unique_keys = typename __traits_type::__unique_keys; 29761: 29761: using __hashtable_base = __detail:: 29761: _Hashtable_base<_Key, _Value, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, _Traits>; 29761: 29761: using __hash_code_base = typename __hashtable_base::__hash_code_base; 29761: using __hash_code = typename __hashtable_base::__hash_code; 29761: using __ireturn_type = typename __insert_base::__ireturn_type; 29761: 29761: using __map_base = __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: using __rehash_base = __detail::_Rehash_base<_Key, _Value, _Alloc, 29761: _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: using __eq_base = __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, 29761: _Equal, _Hash, _RangeHash, _Unused, 29761: _RehashPolicy, _Traits>; 29761: 29761: using __reuse_or_alloc_node_gen_t = 29761: __detail::_ReuseOrAllocNode<__node_alloc_type>; 29761: using __alloc_node_gen_t = 29761: __detail::_AllocNode<__node_alloc_type>; 29761: using __node_builder_t = 29761: __detail::_NodeBuilder<_ExtractKey>; 29761: 29761: 29761: struct _Scoped_node 29761: { 29761: 29761: _Scoped_node(__node_ptr __n, __hashtable_alloc* __h) 29761: : _M_h(__h), _M_node(__n) { } 29761: 29761: 29761: template 29761: _Scoped_node(__hashtable_alloc* __h, _Args&&... __args) 29761: : _M_h(__h), 29761: _M_node(__h->_M_allocate_node(std::forward<_Args>(__args)...)) 29761: { } 29761: 29761: 29761: ~_Scoped_node() { if (_M_node) _M_h->_M_deallocate_node(_M_node); }; 29761: 29761: _Scoped_node(const _Scoped_node&) = delete; 29761: _Scoped_node& operator=(const _Scoped_node&) = delete; 29761: 29761: __hashtable_alloc* _M_h; 29761: __node_ptr _M_node; 29761: }; 29761: 29761: template 29761: static constexpr 29761: __conditional_t::value, 29761: const value_type&, value_type&&> 29761: __fwd_value_for(value_type& __val) noexcept 29761: { return std::move(__val); } 29761: 29761: 29761: 29761: 29761: 29761: struct __hash_code_base_access : __hash_code_base 29761: { using __hash_code_base::_M_bucket_index; }; 29761: 29761: 29761: static_assert(is_nothrow_default_constructible<_RangeHash>::value, 29761: "Functor used to map hash code to bucket index" 29761: " must be nothrow default constructible"); 29761: static_assert(noexcept( 29761: std::declval()((std::size_t)0, (std::size_t)0)), 29761: "Functor used to map hash code to bucket index must be" 29761: " noexcept"); 29761: 29761: 29761: static_assert(is_nothrow_default_constructible<_ExtractKey>::value, 29761: "_ExtractKey must be nothrow default constructible"); 29761: static_assert(noexcept( 29761: std::declval()(std::declval<_Value>())), 29761: "_ExtractKey functor must be noexcept invocable"); 29761: 29761: template 29761: friend struct __detail::_Map_base; 29761: 29761: template 29761: friend struct __detail::_Insert_base; 29761: 29761: template 29761: friend struct __detail::_Insert; 29761: 29761: template 29761: friend struct __detail::_Equality; 29761: 29761: public: 29761: using size_type = typename __hashtable_base::size_type; 29761: using difference_type = typename __hashtable_base::difference_type; 29761: 29761: 29761: using node_type = _Node_handle<_Key, _Value, __node_alloc_type>; 29761: using insert_return_type = _Node_insert_return; 29761: 29761: 29761: private: 29761: __buckets_ptr _M_buckets = &_M_single_bucket; 29761: size_type _M_bucket_count = 1; 29761: __node_base _M_before_begin; 29761: size_type _M_element_count = 0; 29761: _RehashPolicy _M_rehash_policy; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __node_base_ptr _M_single_bucket = nullptr; 29761: 29761: void 29761: _M_update_bbegin() 29761: { 29761: if (auto __begin = _M_begin()) 29761: _M_buckets[_M_bucket_index(*__begin)] = &_M_before_begin; 29761: } 29761: 29761: void 29761: _M_update_bbegin(__node_ptr __n) 29761: { 29761: _M_before_begin._M_nxt = __n; 29761: _M_update_bbegin(); 29761: } 29761: 29761: bool 29761: _M_uses_single_bucket(__buckets_ptr __bkts) const 29761: { return __builtin_expect(__bkts == &_M_single_bucket, false); } 29761: 29761: bool 29761: _M_uses_single_bucket() const 29761: { return _M_uses_single_bucket(_M_buckets); } 29761: 29761: static constexpr size_t 29761: __small_size_threshold() noexcept 29761: { 29761: return 29761: __detail::_Hashtable_hash_traits<_Hash>::__small_size_threshold(); 29761: } 29761: 29761: __hashtable_alloc& 29761: _M_base_alloc() { return *this; } 29761: 29761: __buckets_ptr 29761: _M_allocate_buckets(size_type __bkt_count) 29761: { 29761: if (__builtin_expect(__bkt_count == 1, false)) 29761: { 29761: _M_single_bucket = nullptr; 29761: return &_M_single_bucket; 29761: } 29761: 29761: return __hashtable_alloc::_M_allocate_buckets(__bkt_count); 29761: } 29761: 29761: void 29761: _M_deallocate_buckets(__buckets_ptr __bkts, size_type __bkt_count) 29761: { 29761: if (_M_uses_single_bucket(__bkts)) 29761: return; 29761: 29761: __hashtable_alloc::_M_deallocate_buckets(__bkts, __bkt_count); 29761: } 29761: 29761: void 29761: _M_deallocate_buckets() 29761: { _M_deallocate_buckets(_M_buckets, _M_bucket_count); } 29761: 29761: 29761: 29761: __node_ptr 29761: _M_bucket_begin(size_type __bkt) const 29761: { 29761: __node_base_ptr __n = _M_buckets[__bkt]; 29761: return __n ? static_cast<__node_ptr>(__n->_M_nxt) : nullptr; 29761: } 29761: 29761: __node_ptr 29761: _M_begin() const 29761: { return static_cast<__node_ptr>(_M_before_begin._M_nxt); } 29761: 29761: 29761: 29761: template 29761: void 29761: _M_assign_elements(_Ht&&); 29761: 29761: template 29761: void 29761: _M_assign(_Ht&&, const _NodeGenerator&); 29761: 29761: void 29761: _M_move_assign(_Hashtable&&, true_type); 29761: 29761: void 29761: _M_move_assign(_Hashtable&&, false_type); 29761: 29761: void 29761: _M_reset() noexcept; 29761: 29761: _Hashtable(const _Hash& __h, const _Equal& __eq, 29761: const allocator_type& __a) 29761: : __hashtable_base(__h, __eq), 29761: __hashtable_alloc(__node_alloc_type(__a)), 29761: __enable_default_ctor(_Enable_default_constructor_tag{}) 29761: { } 29761: 29761: template 29761: static constexpr bool 29761: _S_nothrow_move() 29761: { 29761: 29761: 29761: 29761: 29761: 29761: if constexpr (_No_realloc) 29761: if constexpr (is_nothrow_copy_constructible<_Hash>()) 29761: return is_nothrow_copy_constructible<_Equal>(); 29761: return false; 29761: 29761: } 29761: 29761: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29761: true_type ) 29761: noexcept(_S_nothrow_move()); 29761: 29761: _Hashtable(_Hashtable&&, __node_alloc_type&&, 29761: false_type ); 29761: 29761: template 29761: _Hashtable(_InputIterator __first, _InputIterator __last, 29761: size_type __bkt_count_hint, 29761: const _Hash&, const _Equal&, const allocator_type&, 29761: true_type __uks); 29761: 29761: template 29761: _Hashtable(_InputIterator __first, _InputIterator __last, 29761: size_type __bkt_count_hint, 29761: const _Hash&, const _Equal&, const allocator_type&, 29761: false_type __uks); 29761: 29761: public: 29761: 29761: _Hashtable() = default; 29761: 29761: _Hashtable(const _Hashtable&); 29761: 29761: _Hashtable(const _Hashtable&, const allocator_type&); 29761: 29761: explicit 29761: _Hashtable(size_type __bkt_count_hint, 29761: const _Hash& __hf = _Hash(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()); 29761: 29761: 29761: _Hashtable(_Hashtable&& __ht) 29761: noexcept(_S_nothrow_move()) 29761: : _Hashtable(std::move(__ht), std::move(__ht._M_node_allocator()), 29761: true_type{}) 29761: { } 29761: 29761: _Hashtable(_Hashtable&& __ht, const allocator_type& __a) 29761: noexcept(_S_nothrow_move<__node_alloc_traits::_S_always_equal()>()) 29761: : _Hashtable(std::move(__ht), __node_alloc_type(__a), 29761: typename __node_alloc_traits::is_always_equal{}) 29761: { } 29761: 29761: explicit 29761: _Hashtable(const allocator_type& __a) 29761: : __hashtable_alloc(__node_alloc_type(__a)), 29761: __enable_default_ctor(_Enable_default_constructor_tag{}) 29761: { } 29761: 29761: template 29761: _Hashtable(_InputIterator __f, _InputIterator __l, 29761: size_type __bkt_count_hint = 0, 29761: const _Hash& __hf = _Hash(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _Hashtable(__f, __l, __bkt_count_hint, __hf, __eql, __a, 29761: __unique_keys{}) 29761: { } 29761: 29761: _Hashtable(initializer_list __l, 29761: size_type __bkt_count_hint = 0, 29761: const _Hash& __hf = _Hash(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _Hashtable(__l.begin(), __l.end(), __bkt_count_hint, 29761: __hf, __eql, __a, __unique_keys{}) 29761: { } 29761: 29761: _Hashtable& 29761: operator=(const _Hashtable& __ht); 29761: 29761: _Hashtable& 29761: operator=(_Hashtable&& __ht) 29761: noexcept(__node_alloc_traits::_S_nothrow_move() 29761: && is_nothrow_move_assignable<_Hash>::value 29761: && is_nothrow_move_assignable<_Equal>::value) 29761: { 29761: constexpr bool __move_storage = 29761: __node_alloc_traits::_S_propagate_on_move_assign() 29761: || __node_alloc_traits::_S_always_equal(); 29761: _M_move_assign(std::move(__ht), __bool_constant<__move_storage>()); 29761: return *this; 29761: } 29761: 29761: _Hashtable& 29761: operator=(initializer_list __l) 29761: { 29761: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 29761: _M_before_begin._M_nxt = nullptr; 29761: clear(); 29761: 29761: 29761: auto __l_bkt_count = _M_rehash_policy._M_bkt_for_elements(__l.size()); 29761: 29761: 29761: if (_M_bucket_count < __l_bkt_count) 29761: rehash(__l_bkt_count); 29761: 29761: this->_M_insert_range(__l.begin(), __l.end(), __roan, __unique_keys{}); 29761: return *this; 29761: } 29761: 29761: ~_Hashtable() noexcept; 29761: 29761: void 29761: swap(_Hashtable&) 29761: noexcept(__and_<__is_nothrow_swappable<_Hash>, 29761: __is_nothrow_swappable<_Equal>>::value); 29761: 29761: 29761: iterator 29761: begin() noexcept 29761: { return iterator(_M_begin()); } 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(_M_begin()); } 29761: 29761: iterator 29761: end() noexcept 29761: { return iterator(nullptr); } 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return const_iterator(nullptr); } 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(_M_begin()); } 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return const_iterator(nullptr); } 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_element_count; } 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return size() == 0; } 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(this->_M_node_allocator()); } 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return __node_alloc_traits::max_size(this->_M_node_allocator()); } 29761: 29761: 29761: key_equal 29761: key_eq() const 29761: { return this->_M_eq(); } 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_count() const noexcept 29761: { return _M_bucket_count; } 29761: 29761: size_type 29761: max_bucket_count() const noexcept 29761: { return max_size(); } 29761: 29761: size_type 29761: bucket_size(size_type __bkt) const 29761: { return std::distance(begin(__bkt), end(__bkt)); } 29761: 29761: size_type 29761: bucket(const key_type& __k) const 29761: { return _M_bucket_index(this->_M_hash_code(__k)); } 29761: 29761: local_iterator 29761: begin(size_type __bkt) 29761: { 29761: return local_iterator(*this, _M_bucket_begin(__bkt), 29761: __bkt, _M_bucket_count); 29761: } 29761: 29761: local_iterator 29761: end(size_type __bkt) 29761: { return local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29761: 29761: const_local_iterator 29761: begin(size_type __bkt) const 29761: { 29761: return const_local_iterator(*this, _M_bucket_begin(__bkt), 29761: __bkt, _M_bucket_count); 29761: } 29761: 29761: const_local_iterator 29761: end(size_type __bkt) const 29761: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29761: 29761: 29761: const_local_iterator 29761: cbegin(size_type __bkt) const 29761: { 29761: return const_local_iterator(*this, _M_bucket_begin(__bkt), 29761: __bkt, _M_bucket_count); 29761: } 29761: 29761: const_local_iterator 29761: cend(size_type __bkt) const 29761: { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } 29761: 29761: float 29761: load_factor() const noexcept 29761: { 29761: return static_cast(size()) / static_cast(bucket_count()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const _RehashPolicy& 29761: __rehash_policy() const 29761: { return _M_rehash_policy; } 29761: 29761: void 29761: __rehash_policy(const _RehashPolicy& __pol) 29761: { _M_rehash_policy = __pol; } 29761: 29761: 29761: iterator 29761: find(const key_type& __k); 29761: 29761: const_iterator 29761: find(const key_type& __k) const; 29761: 29761: size_type 29761: count(const key_type& __k) const; 29761: 29761: std::pair 29761: equal_range(const key_type& __k); 29761: 29761: std::pair 29761: equal_range(const key_type& __k) const; 29761: # 796 "/usr/include/c++/14/bits/hashtable.h" 3 29761: private: 29761: 29761: size_type 29761: _M_bucket_index(const __node_value_type& __n) const noexcept 29761: { return __hash_code_base::_M_bucket_index(__n, _M_bucket_count); } 29761: 29761: size_type 29761: _M_bucket_index(__hash_code __c) const 29761: { return __hash_code_base::_M_bucket_index(__c, _M_bucket_count); } 29761: 29761: __node_base_ptr 29761: _M_find_before_node(const key_type&); 29761: 29761: 29761: 29761: __node_base_ptr 29761: _M_find_before_node(size_type, const key_type&, __hash_code) const; 29761: 29761: template 29761: __node_base_ptr 29761: _M_find_before_node_tr(size_type, const _Kt&, __hash_code) const; 29761: 29761: __node_ptr 29761: _M_find_node(size_type __bkt, const key_type& __key, 29761: __hash_code __c) const 29761: { 29761: __node_base_ptr __before_n = _M_find_before_node(__bkt, __key, __c); 29761: if (__before_n) 29761: return static_cast<__node_ptr>(__before_n->_M_nxt); 29761: return nullptr; 29761: } 29761: 29761: template 29761: __node_ptr 29761: _M_find_node_tr(size_type __bkt, const _Kt& __key, 29761: __hash_code __c) const 29761: { 29761: auto __before_n = _M_find_before_node_tr(__bkt, __key, __c); 29761: if (__before_n) 29761: return static_cast<__node_ptr>(__before_n->_M_nxt); 29761: return nullptr; 29761: } 29761: 29761: 29761: void 29761: _M_insert_bucket_begin(size_type __bkt, __node_ptr __node) 29761: { 29761: if (_M_buckets[__bkt]) 29761: { 29761: 29761: 29761: __node->_M_nxt = _M_buckets[__bkt]->_M_nxt; 29761: _M_buckets[__bkt]->_M_nxt = __node; 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: __node->_M_nxt = _M_before_begin._M_nxt; 29761: _M_before_begin._M_nxt = __node; 29761: 29761: if (__node->_M_nxt) 29761: 29761: 29761: _M_buckets[_M_bucket_index(*__node->_M_next())] = __node; 29761: 29761: _M_buckets[__bkt] = &_M_before_begin; 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next_n, 29761: size_type __next_bkt) 29761: { 29761: if (!__next_n) 29761: _M_buckets[__bkt] = nullptr; 29761: else if (__next_bkt != __bkt) 29761: { 29761: _M_buckets[__next_bkt] = _M_buckets[__bkt]; 29761: _M_buckets[__bkt] = nullptr; 29761: } 29761: } 29761: 29761: 29761: __node_base_ptr 29761: _M_get_previous_node(size_type __bkt, __node_ptr __n); 29761: 29761: pair<__node_ptr, __hash_code> 29761: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: _M_insert_unique_node(size_type __bkt, __hash_code, 29761: __node_ptr __n, size_type __n_elt = 1); 29761: 29761: 29761: 29761: iterator 29761: _M_insert_multi_node(__node_ptr __hint, 29761: __hash_code __code, __node_ptr __n); 29761: 29761: template 29761: std::pair 29761: _M_emplace(true_type __uks, _Args&&... __args); 29761: 29761: template 29761: iterator 29761: _M_emplace(false_type __uks, _Args&&... __args) 29761: { return _M_emplace(cend(), __uks, std::forward<_Args>(__args)...); } 29761: 29761: 29761: template 29761: iterator 29761: _M_emplace(const_iterator, true_type __uks, _Args&&... __args) 29761: { return _M_emplace(__uks, std::forward<_Args>(__args)...).first; } 29761: 29761: template 29761: iterator 29761: _M_emplace(const_iterator, false_type __uks, _Args&&... __args); 29761: 29761: template 29761: std::pair 29761: _M_insert_unique(_Kt&&, _Arg&&, const _NodeGenerator&); 29761: 29761: template 29761: static __conditional_t< 29761: __and_<__is_nothrow_invocable<_Hash&, const key_type&>, 29761: __not_<__is_nothrow_invocable<_Hash&, _Kt>>>::value, 29761: key_type, _Kt&&> 29761: _S_forward_key(_Kt&& __k) 29761: { return std::forward<_Kt>(__k); } 29761: 29761: static const key_type& 29761: _S_forward_key(const key_type& __k) 29761: { return __k; } 29761: 29761: static key_type&& 29761: _S_forward_key(key_type&& __k) 29761: { return std::move(__k); } 29761: 29761: template 29761: std::pair 29761: _M_insert_unique_aux(_Arg&& __arg, const _NodeGenerator& __node_gen) 29761: { 29761: return _M_insert_unique( 29761: _S_forward_key(_ExtractKey{}(std::forward<_Arg>(__arg))), 29761: std::forward<_Arg>(__arg), __node_gen); 29761: } 29761: 29761: template 29761: std::pair 29761: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 29761: true_type ) 29761: { 29761: using __to_value 29761: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 29761: return _M_insert_unique_aux( 29761: __to_value{}(std::forward<_Arg>(__arg)), __node_gen); 29761: } 29761: 29761: template 29761: iterator 29761: _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, 29761: false_type __uks) 29761: { 29761: using __to_value 29761: = __detail::_ConvertToValueType<_ExtractKey, value_type>; 29761: return _M_insert(cend(), 29761: __to_value{}(std::forward<_Arg>(__arg)), __node_gen, __uks); 29761: } 29761: 29761: 29761: template 29761: iterator 29761: _M_insert(const_iterator, _Arg&& __arg, 29761: const _NodeGenerator& __node_gen, true_type __uks) 29761: { 29761: return 29761: _M_insert(std::forward<_Arg>(__arg), __node_gen, __uks).first; 29761: } 29761: 29761: 29761: template 29761: iterator 29761: _M_insert(const_iterator, _Arg&&, 29761: const _NodeGenerator&, false_type __uks); 29761: 29761: size_type 29761: _M_erase(true_type __uks, const key_type&); 29761: 29761: size_type 29761: _M_erase(false_type __uks, const key_type&); 29761: 29761: iterator 29761: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n); 29761: 29761: public: 29761: 29761: template 29761: __ireturn_type 29761: emplace(_Args&&... __args) 29761: { return _M_emplace(__unique_keys{}, std::forward<_Args>(__args)...); } 29761: 29761: template 29761: iterator 29761: emplace_hint(const_iterator __hint, _Args&&... __args) 29761: { 29761: return _M_emplace(__hint, __unique_keys{}, 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: 29761: 29761: iterator 29761: erase(const_iterator); 29761: 29761: 29761: 29761: iterator 29761: erase(iterator __it) 29761: { return erase(const_iterator(__it)); } 29761: 29761: size_type 29761: erase(const key_type& __k) 29761: { return _M_erase(__unique_keys{}, __k); } 29761: 29761: iterator 29761: erase(const_iterator, const_iterator); 29761: 29761: void 29761: clear() noexcept; 29761: 29761: 29761: 29761: void rehash(size_type __bkt_count); 29761: 29761: 29761: 29761: 29761: 29761: 29761: insert_return_type 29761: _M_reinsert_node(node_type&& __nh) 29761: { 29761: insert_return_type __ret; 29761: if (__nh.empty()) 29761: __ret.position = end(); 29761: else 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __node_ptr __n = nullptr; 29761: const key_type& __k = __nh._M_key(); 29761: const size_type __size = size(); 29761: if (__size <= __small_size_threshold()) 29761: { 29761: for (__n = _M_begin(); __n; __n = __n->_M_next()) 29761: if (this->_M_key_equals(__k, *__n)) 29761: break; 29761: } 29761: 29761: __hash_code __code; 29761: size_type __bkt; 29761: if (!__n) 29761: { 29761: __code = this->_M_hash_code(__k); 29761: __bkt = _M_bucket_index(__code); 29761: if (__size > __small_size_threshold()) 29761: __n = _M_find_node(__bkt, __k, __code); 29761: } 29761: 29761: if (__n) 29761: { 29761: __ret.node = std::move(__nh); 29761: __ret.position = iterator(__n); 29761: __ret.inserted = false; 29761: } 29761: else 29761: { 29761: __ret.position 29761: = _M_insert_unique_node(__bkt, __code, __nh._M_ptr); 29761: __nh.release(); 29761: __ret.inserted = true; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: iterator 29761: _M_reinsert_node_multi(const_iterator __hint, node_type&& __nh) 29761: { 29761: if (__nh.empty()) 29761: return end(); 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: const key_type& __k = __nh._M_key(); 29761: auto __code = this->_M_hash_code(__k); 29761: auto __ret 29761: = _M_insert_multi_node(__hint._M_cur, __code, __nh._M_ptr); 29761: __nh.release(); 29761: return __ret; 29761: } 29761: 29761: private: 29761: node_type 29761: _M_extract_node(size_t __bkt, __node_base_ptr __prev_n) 29761: { 29761: __node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29761: if (__prev_n == _M_buckets[__bkt]) 29761: _M_remove_bucket_begin(__bkt, __n->_M_next(), 29761: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 29761: else if (__n->_M_nxt) 29761: { 29761: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 29761: if (__next_bkt != __bkt) 29761: _M_buckets[__next_bkt] = __prev_n; 29761: } 29761: 29761: __prev_n->_M_nxt = __n->_M_nxt; 29761: __n->_M_nxt = nullptr; 29761: --_M_element_count; 29761: return { __n, this->_M_node_allocator() }; 29761: } 29761: 29761: 29761: 29761: template 29761: __hash_code 29761: _M_src_hash_code(const _H2&, const key_type& __k, 29761: const __node_value_type& __src_n) const 29761: { 29761: if constexpr (std::is_same_v<_H2, _Hash>) 29761: if constexpr (std::is_empty_v<_Hash>) 29761: return this->_M_hash_code(__src_n); 29761: 29761: return this->_M_hash_code(__k); 29761: } 29761: 29761: public: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: size_t __bkt = _M_bucket_index(*__pos._M_cur); 29761: return _M_extract_node(__bkt, 29761: _M_get_previous_node(__bkt, __pos._M_cur)); 29761: } 29761: 29761: 29761: node_type 29761: extract(const _Key& __k) 29761: { 29761: node_type __nh; 29761: __hash_code __code = this->_M_hash_code(__k); 29761: std::size_t __bkt = _M_bucket_index(__code); 29761: if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code)) 29761: __nh = _M_extract_node(__bkt, __prev_node); 29761: return __nh; 29761: } 29761: 29761: 29761: template 29761: void 29761: _M_merge_unique(_Compatible_Hashtable& __src) 29761: { 29761: static_assert(is_same_v, "Node types are compatible"); 29761: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: auto __n_elt = __src.size(); 29761: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 29761: { 29761: auto __pos = __i++; 29761: const size_type __size = size(); 29761: const key_type& __k = _ExtractKey{}(*__pos); 29761: if (__size <= __small_size_threshold()) 29761: { 29761: bool __found = false; 29761: for (auto __n = _M_begin(); __n; __n = __n->_M_next()) 29761: if (this->_M_key_equals(__k, *__n)) 29761: { 29761: __found = true; 29761: break; 29761: } 29761: 29761: if (__found) 29761: { 29761: if (__n_elt != 1) 29761: --__n_elt; 29761: continue; 29761: } 29761: } 29761: 29761: __hash_code __code 29761: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 29761: size_type __bkt = _M_bucket_index(__code); 29761: if (__size <= __small_size_threshold() 29761: || _M_find_node(__bkt, __k, __code) == nullptr) 29761: { 29761: auto __nh = __src.extract(__pos); 29761: _M_insert_unique_node(__bkt, __code, __nh._M_ptr, __n_elt); 29761: __nh.release(); 29761: __n_elt = 1; 29761: } 29761: else if (__n_elt != 1) 29761: --__n_elt; 29761: } 29761: } 29761: 29761: 29761: template 29761: void 29761: _M_merge_multi(_Compatible_Hashtable& __src) 29761: { 29761: static_assert(is_same_v, "Node types are compatible"); 29761: do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __node_ptr __hint = nullptr; 29761: this->reserve(size() + __src.size()); 29761: for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) 29761: { 29761: auto __pos = __i++; 29761: const key_type& __k = _ExtractKey{}(*__pos); 29761: __hash_code __code 29761: = _M_src_hash_code(__src.hash_function(), __k, *__pos._M_cur); 29761: auto __nh = __src.extract(__pos); 29761: __hint = _M_insert_multi_node(__hint, __code, __nh._M_ptr)._M_cur; 29761: __nh.release(); 29761: } 29761: } 29761: 29761: 29761: private: 29761: 29761: void _M_rehash(size_type __bkt_count, true_type __uks); 29761: 29761: 29761: void _M_rehash(size_type __bkt_count, false_type __uks); 29761: }; 29761: 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(size_type __bkt_count_hint, 29761: const _Hash& __h, const _Equal& __eq, const allocator_type& __a) 29761: : _Hashtable(__h, __eq, __a) 29761: { 29761: auto __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count_hint); 29761: if (__bkt_count > _M_bucket_count) 29761: { 29761: _M_buckets = _M_allocate_buckets(__bkt_count); 29761: _M_bucket_count = __bkt_count; 29761: } 29761: } 29761: 29761: template 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(_InputIterator __f, _InputIterator __l, 29761: size_type __bkt_count_hint, 29761: const _Hash& __h, const _Equal& __eq, 29761: const allocator_type& __a, true_type ) 29761: : _Hashtable(__bkt_count_hint, __h, __eq, __a) 29761: { this->insert(__f, __l); } 29761: 29761: template 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(_InputIterator __f, _InputIterator __l, 29761: size_type __bkt_count_hint, 29761: const _Hash& __h, const _Equal& __eq, 29761: const allocator_type& __a, false_type __uks) 29761: : _Hashtable(__h, __eq, __a) 29761: { 29761: auto __nb_elems = __detail::__distance_fw(__f, __l); 29761: auto __bkt_count = 29761: _M_rehash_policy._M_next_bkt( 29761: std::max(_M_rehash_policy._M_bkt_for_elements(__nb_elems), 29761: __bkt_count_hint)); 29761: 29761: if (__bkt_count > _M_bucket_count) 29761: { 29761: _M_buckets = _M_allocate_buckets(__bkt_count); 29761: _M_bucket_count = __bkt_count; 29761: } 29761: 29761: __alloc_node_gen_t __node_gen(*this); 29761: for (; __f != __l; ++__f) 29761: _M_insert(*__f, __node_gen, __uks); 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: operator=(const _Hashtable& __ht) 29761: -> _Hashtable& 29761: { 29761: if (&__ht == this) 29761: return *this; 29761: 29761: if (__node_alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: auto& __this_alloc = this->_M_node_allocator(); 29761: auto& __that_alloc = __ht._M_node_allocator(); 29761: if (!__node_alloc_traits::_S_always_equal() 29761: && __this_alloc != __that_alloc) 29761: { 29761: 29761: this->_M_deallocate_nodes(_M_begin()); 29761: _M_before_begin._M_nxt = nullptr; 29761: _M_deallocate_buckets(); 29761: _M_buckets = nullptr; 29761: std::__alloc_on_copy(__this_alloc, __that_alloc); 29761: __hashtable_base::operator=(__ht); 29761: _M_bucket_count = __ht._M_bucket_count; 29761: _M_element_count = __ht._M_element_count; 29761: _M_rehash_policy = __ht._M_rehash_policy; 29761: __alloc_node_gen_t __alloc_node_gen(*this); 29761: try 29761: { 29761: _M_assign(__ht, __alloc_node_gen); 29761: } 29761: catch(...) 29761: { 29761: 29761: 29761: _M_reset(); 29761: throw; 29761: } 29761: return *this; 29761: } 29761: std::__alloc_on_copy(__this_alloc, __that_alloc); 29761: } 29761: 29761: 29761: _M_assign_elements(__ht); 29761: return *this; 29761: } 29761: 29761: template 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_assign_elements(_Ht&& __ht) 29761: { 29761: __buckets_ptr __former_buckets = nullptr; 29761: std::size_t __former_bucket_count = _M_bucket_count; 29761: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29761: 29761: if (_M_bucket_count != __ht._M_bucket_count) 29761: { 29761: __former_buckets = _M_buckets; 29761: _M_buckets = _M_allocate_buckets(__ht._M_bucket_count); 29761: _M_bucket_count = __ht._M_bucket_count; 29761: } 29761: else 29761: __builtin_memset(_M_buckets, 0, 29761: _M_bucket_count * sizeof(__node_base_ptr)); 29761: 29761: try 29761: { 29761: __hashtable_base::operator=(std::forward<_Ht>(__ht)); 29761: _M_element_count = __ht._M_element_count; 29761: _M_rehash_policy = __ht._M_rehash_policy; 29761: __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); 29761: _M_before_begin._M_nxt = nullptr; 29761: _M_assign(std::forward<_Ht>(__ht), __roan); 29761: if (__former_buckets) 29761: _M_deallocate_buckets(__former_buckets, __former_bucket_count); 29761: __rehash_guard._M_guarded_obj = nullptr; 29761: } 29761: catch(...) 29761: { 29761: if (__former_buckets) 29761: { 29761: 29761: _M_deallocate_buckets(); 29761: _M_buckets = __former_buckets; 29761: _M_bucket_count = __former_bucket_count; 29761: } 29761: __builtin_memset(_M_buckets, 0, 29761: _M_bucket_count * sizeof(__node_base_ptr)); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_assign(_Ht&& __ht, const _NodeGenerator& __node_gen) 29761: { 29761: __buckets_ptr __buckets = nullptr; 29761: if (!_M_buckets) 29761: _M_buckets = __buckets = _M_allocate_buckets(_M_bucket_count); 29761: 29761: try 29761: { 29761: if (!__ht._M_before_begin._M_nxt) 29761: return; 29761: 29761: 29761: 29761: __node_ptr __ht_n = __ht._M_begin(); 29761: __node_ptr __this_n 29761: = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 29761: this->_M_copy_code(*__this_n, *__ht_n); 29761: _M_update_bbegin(__this_n); 29761: 29761: 29761: __node_ptr __prev_n = __this_n; 29761: for (__ht_n = __ht_n->_M_next(); __ht_n; __ht_n = __ht_n->_M_next()) 29761: { 29761: __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); 29761: __prev_n->_M_nxt = __this_n; 29761: this->_M_copy_code(*__this_n, *__ht_n); 29761: size_type __bkt = _M_bucket_index(*__this_n); 29761: if (!_M_buckets[__bkt]) 29761: _M_buckets[__bkt] = __prev_n; 29761: __prev_n = __this_n; 29761: } 29761: } 29761: catch(...) 29761: { 29761: clear(); 29761: if (__buckets) 29761: _M_deallocate_buckets(); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_reset() noexcept 29761: { 29761: _M_rehash_policy._M_reset(); 29761: _M_bucket_count = 1; 29761: _M_single_bucket = nullptr; 29761: _M_buckets = &_M_single_bucket; 29761: _M_before_begin._M_nxt = nullptr; 29761: _M_element_count = 0; 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_move_assign(_Hashtable&& __ht, true_type) 29761: { 29761: if (__builtin_expect(std::__addressof(__ht) == this, false)) 29761: return; 29761: 29761: this->_M_deallocate_nodes(_M_begin()); 29761: _M_deallocate_buckets(); 29761: __hashtable_base::operator=(std::move(__ht)); 29761: _M_rehash_policy = __ht._M_rehash_policy; 29761: if (!__ht._M_uses_single_bucket()) 29761: _M_buckets = __ht._M_buckets; 29761: else 29761: { 29761: _M_buckets = &_M_single_bucket; 29761: _M_single_bucket = __ht._M_single_bucket; 29761: } 29761: 29761: _M_bucket_count = __ht._M_bucket_count; 29761: _M_before_begin._M_nxt = __ht._M_before_begin._M_nxt; 29761: _M_element_count = __ht._M_element_count; 29761: std::__alloc_on_move(this->_M_node_allocator(), __ht._M_node_allocator()); 29761: 29761: 29761: _M_update_bbegin(); 29761: __ht._M_reset(); 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_move_assign(_Hashtable&& __ht, false_type) 29761: { 29761: if (__ht._M_node_allocator() == this->_M_node_allocator()) 29761: _M_move_assign(std::move(__ht), true_type{}); 29761: else 29761: { 29761: 29761: _M_assign_elements(std::move(__ht)); 29761: __ht.clear(); 29761: } 29761: } 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(const _Hashtable& __ht) 29761: : __hashtable_base(__ht), 29761: __map_base(__ht), 29761: __rehash_base(__ht), 29761: __hashtable_alloc( 29761: __node_alloc_traits::_S_select_on_copy(__ht._M_node_allocator())), 29761: __enable_default_ctor(__ht), 29761: _M_buckets(nullptr), 29761: _M_bucket_count(__ht._M_bucket_count), 29761: _M_element_count(__ht._M_element_count), 29761: _M_rehash_policy(__ht._M_rehash_policy) 29761: { 29761: __alloc_node_gen_t __alloc_node_gen(*this); 29761: _M_assign(__ht, __alloc_node_gen); 29761: } 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29761: true_type ) 29761: noexcept(_S_nothrow_move()) 29761: : __hashtable_base(__ht), 29761: __map_base(__ht), 29761: __rehash_base(__ht), 29761: __hashtable_alloc(std::move(__a)), 29761: __enable_default_ctor(__ht), 29761: _M_buckets(__ht._M_buckets), 29761: _M_bucket_count(__ht._M_bucket_count), 29761: _M_before_begin(__ht._M_before_begin._M_nxt), 29761: _M_element_count(__ht._M_element_count), 29761: _M_rehash_policy(__ht._M_rehash_policy) 29761: { 29761: 29761: if (__ht._M_uses_single_bucket()) 29761: { 29761: _M_buckets = &_M_single_bucket; 29761: _M_single_bucket = __ht._M_single_bucket; 29761: } 29761: 29761: 29761: _M_update_bbegin(); 29761: 29761: __ht._M_reset(); 29761: } 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(const _Hashtable& __ht, const allocator_type& __a) 29761: : __hashtable_base(__ht), 29761: __map_base(__ht), 29761: __rehash_base(__ht), 29761: __hashtable_alloc(__node_alloc_type(__a)), 29761: __enable_default_ctor(__ht), 29761: _M_buckets(), 29761: _M_bucket_count(__ht._M_bucket_count), 29761: _M_element_count(__ht._M_element_count), 29761: _M_rehash_policy(__ht._M_rehash_policy) 29761: { 29761: __alloc_node_gen_t __alloc_node_gen(*this); 29761: _M_assign(__ht, __alloc_node_gen); 29761: } 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, 29761: false_type ) 29761: : __hashtable_base(__ht), 29761: __map_base(__ht), 29761: __rehash_base(__ht), 29761: __hashtable_alloc(std::move(__a)), 29761: __enable_default_ctor(__ht), 29761: _M_buckets(nullptr), 29761: _M_bucket_count(__ht._M_bucket_count), 29761: _M_element_count(__ht._M_element_count), 29761: _M_rehash_policy(__ht._M_rehash_policy) 29761: { 29761: if (__ht._M_node_allocator() == this->_M_node_allocator()) 29761: { 29761: if (__ht._M_uses_single_bucket()) 29761: { 29761: _M_buckets = &_M_single_bucket; 29761: _M_single_bucket = __ht._M_single_bucket; 29761: } 29761: else 29761: _M_buckets = __ht._M_buckets; 29761: 29761: 29761: 29761: _M_update_bbegin(__ht._M_begin()); 29761: 29761: __ht._M_reset(); 29761: } 29761: else 29761: { 29761: __alloc_node_gen_t __alloc_gen(*this); 29761: 29761: using _Fwd_Ht = __conditional_t< 29761: __move_if_noexcept_cond::value, 29761: const _Hashtable&, _Hashtable&&>; 29761: _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen); 29761: __ht.clear(); 29761: } 29761: } 29761: 29761: template 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: ~_Hashtable() noexcept 29761: { 29761: 29761: 29761: 29761: static_assert(noexcept(declval() 29761: ._M_bucket_index(declval(), 29761: (std::size_t)0)), 29761: "Cache the hash code or qualify your functors involved" 29761: " in hash code and bucket index computation with noexcept"); 29761: 29761: clear(); 29761: _M_deallocate_buckets(); 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: swap(_Hashtable& __x) 29761: noexcept(__and_<__is_nothrow_swappable<_Hash>, 29761: __is_nothrow_swappable<_Equal>>::value) 29761: { 29761: 29761: 29761: 29761: this->_M_swap(__x); 29761: 29761: std::__alloc_on_swap(this->_M_node_allocator(), __x._M_node_allocator()); 29761: std::swap(_M_rehash_policy, __x._M_rehash_policy); 29761: 29761: 29761: if (this->_M_uses_single_bucket()) 29761: { 29761: if (!__x._M_uses_single_bucket()) 29761: { 29761: _M_buckets = __x._M_buckets; 29761: __x._M_buckets = &__x._M_single_bucket; 29761: } 29761: } 29761: else if (__x._M_uses_single_bucket()) 29761: { 29761: __x._M_buckets = _M_buckets; 29761: _M_buckets = &_M_single_bucket; 29761: } 29761: else 29761: std::swap(_M_buckets, __x._M_buckets); 29761: 29761: std::swap(_M_bucket_count, __x._M_bucket_count); 29761: std::swap(_M_before_begin._M_nxt, __x._M_before_begin._M_nxt); 29761: std::swap(_M_element_count, __x._M_element_count); 29761: std::swap(_M_single_bucket, __x._M_single_bucket); 29761: 29761: 29761: 29761: _M_update_bbegin(); 29761: __x._M_update_bbegin(); 29761: } 29761: 29761: template 29761: auto inline 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: find(const key_type& __k) 29761: -> iterator 29761: { 29761: if (size() <= __small_size_threshold()) 29761: { 29761: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29761: if (this->_M_key_equals(__k, *__it)) 29761: return iterator(__it); 29761: return end(); 29761: } 29761: 29761: __hash_code __code = this->_M_hash_code(__k); 29761: std::size_t __bkt = _M_bucket_index(__code); 29761: return iterator(_M_find_node(__bkt, __k, __code)); 29761: } 29761: 29761: template 29761: auto inline 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: find(const key_type& __k) const 29761: -> const_iterator 29761: { 29761: if (size() <= __small_size_threshold()) 29761: { 29761: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29761: if (this->_M_key_equals(__k, *__it)) 29761: return const_iterator(__it); 29761: return end(); 29761: } 29761: 29761: __hash_code __code = this->_M_hash_code(__k); 29761: std::size_t __bkt = _M_bucket_index(__code); 29761: return const_iterator(_M_find_node(__bkt, __k, __code)); 29761: } 29761: # 1818 "/usr/include/c++/14/bits/hashtable.h" 3 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: count(const key_type& __k) const 29761: -> size_type 29761: { 29761: auto __it = find(__k); 29761: if (!__it._M_cur) 29761: return 0; 29761: 29761: if (__unique_keys::value) 29761: return 1; 29761: 29761: size_type __result = 1; 29761: for (auto __ref = __it++; 29761: __it._M_cur && this->_M_node_equals(*__ref._M_cur, *__it._M_cur); 29761: ++__it) 29761: ++__result; 29761: 29761: return __result; 29761: } 29761: # 1891 "/usr/include/c++/14/bits/hashtable.h" 3 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: equal_range(const key_type& __k) 29761: -> pair 29761: { 29761: auto __ite = find(__k); 29761: if (!__ite._M_cur) 29761: return { __ite, __ite }; 29761: 29761: auto __beg = __ite++; 29761: if (__unique_keys::value) 29761: return { __beg, __ite }; 29761: 29761: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 29761: ++__ite; 29761: 29761: return { __beg, __ite }; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: equal_range(const key_type& __k) const 29761: -> pair 29761: { 29761: auto __ite = find(__k); 29761: if (!__ite._M_cur) 29761: return { __ite, __ite }; 29761: 29761: auto __beg = __ite++; 29761: if (__unique_keys::value) 29761: return { __beg, __ite }; 29761: 29761: while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) 29761: ++__ite; 29761: 29761: return { __beg, __ite }; 29761: } 29761: # 2031 "/usr/include/c++/14/bits/hashtable.h" 3 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_find_before_node(const key_type& __k) 29761: -> __node_base_ptr 29761: { 29761: __node_base_ptr __prev_p = &_M_before_begin; 29761: if (!__prev_p->_M_nxt) 29761: return nullptr; 29761: 29761: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt); 29761: __p != nullptr; 29761: __p = __p->_M_next()) 29761: { 29761: if (this->_M_key_equals(__k, *__p)) 29761: return __prev_p; 29761: 29761: __prev_p = __p; 29761: } 29761: 29761: return nullptr; 29761: } 29761: 29761: 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_find_before_node(size_type __bkt, const key_type& __k, 29761: __hash_code __code) const 29761: -> __node_base_ptr 29761: { 29761: __node_base_ptr __prev_p = _M_buckets[__bkt]; 29761: if (!__prev_p) 29761: return nullptr; 29761: 29761: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 29761: __p = __p->_M_next()) 29761: { 29761: if (this->_M_equals(__k, __code, *__p)) 29761: return __prev_p; 29761: 29761: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 29761: break; 29761: __prev_p = __p; 29761: } 29761: 29761: return nullptr; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_find_before_node_tr(size_type __bkt, const _Kt& __k, 29761: __hash_code __code) const 29761: -> __node_base_ptr 29761: { 29761: __node_base_ptr __prev_p = _M_buckets[__bkt]; 29761: if (!__prev_p) 29761: return nullptr; 29761: 29761: for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; 29761: __p = __p->_M_next()) 29761: { 29761: if (this->_M_equals_tr(__k, __code, *__p)) 29761: return __prev_p; 29761: 29761: if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) 29761: break; 29761: __prev_p = __p; 29761: } 29761: 29761: return nullptr; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_get_previous_node(size_type __bkt, __node_ptr __n) 29761: -> __node_base_ptr 29761: { 29761: __node_base_ptr __prev_n = _M_buckets[__bkt]; 29761: while (__prev_n->_M_nxt != __n) 29761: __prev_n = __prev_n->_M_nxt; 29761: return __prev_n; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_emplace(true_type , _Args&&... __args) 29761: -> pair 29761: { 29761: 29761: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 29761: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 29761: const size_type __size = size(); 29761: if (__size <= __small_size_threshold()) 29761: { 29761: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29761: if (this->_M_key_equals(__k, *__it)) 29761: 29761: return { iterator(__it), false }; 29761: } 29761: 29761: __hash_code __code = this->_M_hash_code(__k); 29761: size_type __bkt = _M_bucket_index(__code); 29761: if (__size > __small_size_threshold()) 29761: if (__node_ptr __p = _M_find_node(__bkt, __k, __code)) 29761: 29761: return { iterator(__p), false }; 29761: 29761: 29761: auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); 29761: __node._M_node = nullptr; 29761: return { __pos, true }; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_emplace(const_iterator __hint, false_type , 29761: _Args&&... __args) 29761: -> iterator 29761: { 29761: 29761: _Scoped_node __node { this, std::forward<_Args>(__args)... }; 29761: const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); 29761: 29761: auto __res = this->_M_compute_hash_code(__hint._M_cur, __k); 29761: auto __pos 29761: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 29761: __node._M_node = nullptr; 29761: return __pos; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_compute_hash_code(__node_ptr __hint, const key_type& __k) const 29761: -> pair<__node_ptr, __hash_code> 29761: { 29761: if (size() <= __small_size_threshold()) 29761: { 29761: if (__hint) 29761: { 29761: for (auto __it = __hint; __it; __it = __it->_M_next()) 29761: if (this->_M_key_equals(__k, *__it)) 29761: return { __it, this->_M_hash_code(*__it) }; 29761: } 29761: 29761: for (auto __it = _M_begin(); __it != __hint; __it = __it->_M_next()) 29761: if (this->_M_key_equals(__k, *__it)) 29761: return { __it, this->_M_hash_code(*__it) }; 29761: 29761: __hint = nullptr; 29761: } 29761: 29761: return { __hint, this->_M_hash_code(__k) }; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_insert_unique_node(size_type __bkt, __hash_code __code, 29761: __node_ptr __node, size_type __n_elt) 29761: -> iterator 29761: { 29761: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29761: std::pair __do_rehash 29761: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 29761: __n_elt); 29761: 29761: if (__do_rehash.first) 29761: { 29761: _M_rehash(__do_rehash.second, true_type{}); 29761: __bkt = _M_bucket_index(__code); 29761: } 29761: 29761: __rehash_guard._M_guarded_obj = nullptr; 29761: this->_M_store_code(*__node, __code); 29761: 29761: 29761: _M_insert_bucket_begin(__bkt, __node); 29761: ++_M_element_count; 29761: return iterator(__node); 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_insert_multi_node(__node_ptr __hint, 29761: __hash_code __code, __node_ptr __node) 29761: -> iterator 29761: { 29761: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29761: std::pair __do_rehash 29761: = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 1); 29761: 29761: if (__do_rehash.first) 29761: _M_rehash(__do_rehash.second, false_type{}); 29761: 29761: __rehash_guard._M_guarded_obj = nullptr; 29761: this->_M_store_code(*__node, __code); 29761: const key_type& __k = _ExtractKey{}(__node->_M_v()); 29761: size_type __bkt = _M_bucket_index(__code); 29761: 29761: 29761: 29761: __node_base_ptr __prev 29761: = __builtin_expect(__hint != nullptr, false) 29761: && this->_M_equals(__k, __code, *__hint) 29761: ? __hint 29761: : _M_find_before_node(__bkt, __k, __code); 29761: 29761: if (__prev) 29761: { 29761: 29761: __node->_M_nxt = __prev->_M_nxt; 29761: __prev->_M_nxt = __node; 29761: if (__builtin_expect(__prev == __hint, false)) 29761: 29761: 29761: if (__node->_M_nxt 29761: && !this->_M_equals(__k, __code, *__node->_M_next())) 29761: { 29761: size_type __next_bkt = _M_bucket_index(*__node->_M_next()); 29761: if (__next_bkt != __bkt) 29761: _M_buckets[__next_bkt] = __node; 29761: } 29761: } 29761: else 29761: 29761: 29761: 29761: _M_insert_bucket_begin(__bkt, __node); 29761: ++_M_element_count; 29761: return iterator(__node); 29761: } 29761: 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_insert_unique(_Kt&& __k, _Arg&& __v, 29761: const _NodeGenerator& __node_gen) 29761: -> pair 29761: { 29761: const size_type __size = size(); 29761: if (__size <= __small_size_threshold()) 29761: for (auto __it = _M_begin(); __it; __it = __it->_M_next()) 29761: if (this->_M_key_equals_tr(__k, *__it)) 29761: return { iterator(__it), false }; 29761: 29761: __hash_code __code = this->_M_hash_code_tr(__k); 29761: size_type __bkt = _M_bucket_index(__code); 29761: 29761: if (__size > __small_size_threshold()) 29761: if (__node_ptr __node = _M_find_node_tr(__bkt, __k, __code)) 29761: return { iterator(__node), false }; 29761: 29761: _Scoped_node __node { 29761: __node_builder_t::_S_build(std::forward<_Kt>(__k), 29761: std::forward<_Arg>(__v), 29761: __node_gen), 29761: this 29761: }; 29761: auto __pos 29761: = _M_insert_unique_node(__bkt, __code, __node._M_node); 29761: __node._M_node = nullptr; 29761: return { __pos, true }; 29761: } 29761: 29761: 29761: template 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_insert(const_iterator __hint, _Arg&& __v, 29761: const _NodeGenerator& __node_gen, 29761: false_type ) 29761: -> iterator 29761: { 29761: 29761: _Scoped_node __node{ __node_gen(std::forward<_Arg>(__v)), this }; 29761: 29761: 29761: auto __res = this->_M_compute_hash_code( 29761: __hint._M_cur, _ExtractKey{}(__node._M_node->_M_v())); 29761: 29761: auto __pos 29761: = _M_insert_multi_node(__res.first, __res.second, __node._M_node); 29761: __node._M_node = nullptr; 29761: return __pos; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: erase(const_iterator __it) 29761: -> iterator 29761: { 29761: __node_ptr __n = __it._M_cur; 29761: std::size_t __bkt = _M_bucket_index(*__n); 29761: 29761: 29761: 29761: 29761: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 29761: return _M_erase(__bkt, __prev_n, __n); 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n) 29761: -> iterator 29761: { 29761: if (__prev_n == _M_buckets[__bkt]) 29761: _M_remove_bucket_begin(__bkt, __n->_M_next(), 29761: __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); 29761: else if (__n->_M_nxt) 29761: { 29761: size_type __next_bkt = _M_bucket_index(*__n->_M_next()); 29761: if (__next_bkt != __bkt) 29761: _M_buckets[__next_bkt] = __prev_n; 29761: } 29761: 29761: __prev_n->_M_nxt = __n->_M_nxt; 29761: iterator __result(__n->_M_next()); 29761: this->_M_deallocate_node(__n); 29761: --_M_element_count; 29761: 29761: return __result; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_erase(true_type , const key_type& __k) 29761: -> size_type 29761: { 29761: __node_base_ptr __prev_n; 29761: __node_ptr __n; 29761: std::size_t __bkt; 29761: if (size() <= __small_size_threshold()) 29761: { 29761: __prev_n = _M_find_before_node(__k); 29761: if (!__prev_n) 29761: return 0; 29761: 29761: 29761: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29761: __bkt = _M_bucket_index(*__n); 29761: } 29761: else 29761: { 29761: __hash_code __code = this->_M_hash_code(__k); 29761: __bkt = _M_bucket_index(__code); 29761: 29761: 29761: __prev_n = _M_find_before_node(__bkt, __k, __code); 29761: if (!__prev_n) 29761: return 0; 29761: 29761: 29761: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29761: } 29761: 29761: _M_erase(__bkt, __prev_n, __n); 29761: return 1; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_erase(false_type , const key_type& __k) 29761: -> size_type 29761: { 29761: std::size_t __bkt; 29761: __node_base_ptr __prev_n; 29761: __node_ptr __n; 29761: if (size() <= __small_size_threshold()) 29761: { 29761: __prev_n = _M_find_before_node(__k); 29761: if (!__prev_n) 29761: return 0; 29761: 29761: 29761: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29761: __bkt = _M_bucket_index(*__n); 29761: } 29761: else 29761: { 29761: __hash_code __code = this->_M_hash_code(__k); 29761: __bkt = _M_bucket_index(__code); 29761: 29761: 29761: __prev_n = _M_find_before_node(__bkt, __k, __code); 29761: if (!__prev_n) 29761: return 0; 29761: 29761: __n = static_cast<__node_ptr>(__prev_n->_M_nxt); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __node_ptr __n_last = __n->_M_next(); 29761: while (__n_last && this->_M_node_equals(*__n, *__n_last)) 29761: __n_last = __n_last->_M_next(); 29761: 29761: std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt; 29761: 29761: 29761: size_type __result = 0; 29761: do 29761: { 29761: __node_ptr __p = __n->_M_next(); 29761: this->_M_deallocate_node(__n); 29761: __n = __p; 29761: ++__result; 29761: } 29761: while (__n != __n_last); 29761: 29761: _M_element_count -= __result; 29761: if (__prev_n == _M_buckets[__bkt]) 29761: _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt); 29761: else if (__n_last_bkt != __bkt) 29761: _M_buckets[__n_last_bkt] = __prev_n; 29761: __prev_n->_M_nxt = __n_last; 29761: return __result; 29761: } 29761: 29761: template 29761: auto 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: erase(const_iterator __first, const_iterator __last) 29761: -> iterator 29761: { 29761: __node_ptr __n = __first._M_cur; 29761: __node_ptr __last_n = __last._M_cur; 29761: if (__n == __last_n) 29761: return iterator(__n); 29761: 29761: std::size_t __bkt = _M_bucket_index(*__n); 29761: 29761: __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); 29761: bool __is_bucket_begin = __n == _M_bucket_begin(__bkt); 29761: std::size_t __n_bkt = __bkt; 29761: for (;;) 29761: { 29761: do 29761: { 29761: __node_ptr __tmp = __n; 29761: __n = __n->_M_next(); 29761: this->_M_deallocate_node(__tmp); 29761: --_M_element_count; 29761: if (!__n) 29761: break; 29761: __n_bkt = _M_bucket_index(*__n); 29761: } 29761: while (__n != __last_n && __n_bkt == __bkt); 29761: if (__is_bucket_begin) 29761: _M_remove_bucket_begin(__bkt, __n, __n_bkt); 29761: if (__n == __last_n) 29761: break; 29761: __is_bucket_begin = true; 29761: __bkt = __n_bkt; 29761: } 29761: 29761: if (__n && (__n_bkt != __bkt || __is_bucket_begin)) 29761: _M_buckets[__n_bkt] = __prev_n; 29761: __prev_n->_M_nxt = __n; 29761: return iterator(__n); 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: clear() noexcept 29761: { 29761: this->_M_deallocate_nodes(_M_begin()); 29761: __builtin_memset(_M_buckets, 0, 29761: _M_bucket_count * sizeof(__node_base_ptr)); 29761: _M_element_count = 0; 29761: _M_before_begin._M_nxt = nullptr; 29761: } 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: rehash(size_type __bkt_count) 29761: { 29761: __rehash_guard_t __rehash_guard(_M_rehash_policy); 29761: __bkt_count 29761: = std::max(_M_rehash_policy._M_bkt_for_elements(_M_element_count + 1), 29761: __bkt_count); 29761: __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count); 29761: 29761: if (__bkt_count != _M_bucket_count) 29761: { 29761: _M_rehash(__bkt_count, __unique_keys{}); 29761: __rehash_guard._M_guarded_obj = nullptr; 29761: } 29761: } 29761: 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_rehash(size_type __bkt_count, true_type ) 29761: { 29761: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 29761: __node_ptr __p = _M_begin(); 29761: _M_before_begin._M_nxt = nullptr; 29761: std::size_t __bbegin_bkt = 0; 29761: while (__p) 29761: { 29761: __node_ptr __next = __p->_M_next(); 29761: std::size_t __bkt 29761: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 29761: if (!__new_buckets[__bkt]) 29761: { 29761: __p->_M_nxt = _M_before_begin._M_nxt; 29761: _M_before_begin._M_nxt = __p; 29761: __new_buckets[__bkt] = &_M_before_begin; 29761: if (__p->_M_nxt) 29761: __new_buckets[__bbegin_bkt] = __p; 29761: __bbegin_bkt = __bkt; 29761: } 29761: else 29761: { 29761: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 29761: __new_buckets[__bkt]->_M_nxt = __p; 29761: } 29761: 29761: __p = __next; 29761: } 29761: 29761: _M_deallocate_buckets(); 29761: _M_bucket_count = __bkt_count; 29761: _M_buckets = __new_buckets; 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, 29761: _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: 29761: _M_rehash(size_type __bkt_count, false_type ) 29761: { 29761: __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); 29761: __node_ptr __p = _M_begin(); 29761: _M_before_begin._M_nxt = nullptr; 29761: std::size_t __bbegin_bkt = 0; 29761: std::size_t __prev_bkt = 0; 29761: __node_ptr __prev_p = nullptr; 29761: bool __check_bucket = false; 29761: 29761: while (__p) 29761: { 29761: __node_ptr __next = __p->_M_next(); 29761: std::size_t __bkt 29761: = __hash_code_base::_M_bucket_index(*__p, __bkt_count); 29761: 29761: if (__prev_p && __prev_bkt == __bkt) 29761: { 29761: 29761: 29761: 29761: __p->_M_nxt = __prev_p->_M_nxt; 29761: __prev_p->_M_nxt = __p; 29761: 29761: 29761: 29761: 29761: 29761: 29761: __check_bucket = true; 29761: } 29761: else 29761: { 29761: if (__check_bucket) 29761: { 29761: 29761: 29761: if (__prev_p->_M_nxt) 29761: { 29761: std::size_t __next_bkt 29761: = __hash_code_base::_M_bucket_index( 29761: *__prev_p->_M_next(), __bkt_count); 29761: if (__next_bkt != __prev_bkt) 29761: __new_buckets[__next_bkt] = __prev_p; 29761: } 29761: __check_bucket = false; 29761: } 29761: 29761: if (!__new_buckets[__bkt]) 29761: { 29761: __p->_M_nxt = _M_before_begin._M_nxt; 29761: _M_before_begin._M_nxt = __p; 29761: __new_buckets[__bkt] = &_M_before_begin; 29761: if (__p->_M_nxt) 29761: __new_buckets[__bbegin_bkt] = __p; 29761: __bbegin_bkt = __bkt; 29761: } 29761: else 29761: { 29761: __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; 29761: __new_buckets[__bkt]->_M_nxt = __p; 29761: } 29761: } 29761: __prev_p = __p; 29761: __prev_bkt = __bkt; 29761: __p = __next; 29761: } 29761: 29761: if (__check_bucket && __prev_p->_M_nxt) 29761: { 29761: std::size_t __next_bkt 29761: = __hash_code_base::_M_bucket_index(*__prev_p->_M_next(), 29761: __bkt_count); 29761: if (__next_bkt != __prev_bkt) 29761: __new_buckets[__next_bkt] = __prev_p; 29761: } 29761: 29761: _M_deallocate_buckets(); 29761: _M_bucket_count = __bkt_count; 29761: _M_buckets = __new_buckets; 29761: } 29761: 29761: 29761: template class _Hash_merge_helper { }; 29761: 29761: 29761: 29761: 29761: template 29761: using _RequireNotAllocatorOrIntegral 29761: = __enable_if_t, __is_allocator<_Hash>>::value>; 29761: 29761: 29761: 29761: 29761: } 29761: # 34 "/usr/include/c++/14/bits/unordered_map.h" 2 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>; 29761: 29761: template, 29761: typename _Pred = std::equal_to<_Key>, 29761: typename _Alloc = std::allocator >, 29761: typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>> 29761: using __umap_hashtable = _Hashtable<_Key, std::pair, 29761: _Alloc, __detail::_Select1st, 29761: _Pred, _Hash, 29761: __detail::_Mod_range_hashing, 29761: __detail::_Default_ranged_hash, 29761: __detail::_Prime_rehash_policy, _Tr>; 29761: 29761: 29761: template 29761: using __ummap_traits = __detail::_Hashtable_traits<_Cache, false, false>; 29761: 29761: template, 29761: typename _Pred = std::equal_to<_Key>, 29761: typename _Alloc = std::allocator >, 29761: typename _Tr = __ummap_traits<__cache_default<_Key, _Hash>::value>> 29761: using __ummap_hashtable = _Hashtable<_Key, std::pair, 29761: _Alloc, __detail::_Select1st, 29761: _Pred, _Hash, 29761: __detail::_Mod_range_hashing, 29761: __detail::_Default_ranged_hash, 29761: __detail::_Prime_rehash_policy, _Tr>; 29761: 29761: template 29761: class unordered_multimap; 29761: # 105 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template, 29761: typename _Pred = equal_to<_Key>, 29761: typename _Alloc = allocator>> 29761: class unordered_map 29761: { 29761: typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 29761: _Hashtable _M_h; 29761: 29761: public: 29761: 29761: 29761: 29761: typedef typename _Hashtable::key_type key_type; 29761: typedef typename _Hashtable::value_type value_type; 29761: typedef typename _Hashtable::mapped_type mapped_type; 29761: typedef typename _Hashtable::hasher hasher; 29761: typedef typename _Hashtable::key_equal key_equal; 29761: typedef typename _Hashtable::allocator_type allocator_type; 29761: 29761: 29761: 29761: 29761: typedef typename _Hashtable::pointer pointer; 29761: typedef typename _Hashtable::const_pointer const_pointer; 29761: typedef typename _Hashtable::reference reference; 29761: typedef typename _Hashtable::const_reference const_reference; 29761: typedef typename _Hashtable::iterator iterator; 29761: typedef typename _Hashtable::const_iterator const_iterator; 29761: typedef typename _Hashtable::local_iterator local_iterator; 29761: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29761: typedef typename _Hashtable::size_type size_type; 29761: typedef typename _Hashtable::difference_type difference_type; 29761: 29761: 29761: 29761: using node_type = typename _Hashtable::node_type; 29761: using insert_return_type = typename _Hashtable::insert_return_type; 29761: 29761: 29761: 29761: 29761: 29761: unordered_map() = default; 29761: # 157 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: explicit 29761: unordered_map(size_type __n, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__n, __hf, __eql, __a) 29761: { } 29761: # 178 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: unordered_map(_InputIterator __first, _InputIterator __last, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__first, __last, __n, __hf, __eql, __a) 29761: { } 29761: 29761: 29761: unordered_map(const unordered_map&) = default; 29761: 29761: 29761: unordered_map(unordered_map&&) = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: unordered_map(const allocator_type& __a) 29761: : _M_h(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_map(const unordered_map& __umap, 29761: const allocator_type& __a) 29761: : _M_h(__umap._M_h, __a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_map(unordered_map&& __umap, 29761: const allocator_type& __a) 29761: noexcept( noexcept(_Hashtable(std::move(__umap._M_h), __a)) ) 29761: : _M_h(std::move(__umap._M_h), __a) 29761: { } 29761: # 234 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: unordered_map(initializer_list __l, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__l, __n, __hf, __eql, __a) 29761: { } 29761: 29761: unordered_map(size_type __n, const allocator_type& __a) 29761: : unordered_map(__n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_map(size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_map(__n, __hf, key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_map(_InputIterator __first, _InputIterator __last, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_map(__first, __last, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_map(_InputIterator __first, _InputIterator __last, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_map(__first, __last, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: unordered_map(initializer_list __l, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_map(__l, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_map(initializer_list __l, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_map(__l, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: 29761: unordered_map& 29761: operator=(const unordered_map&) = default; 29761: 29761: 29761: unordered_map& 29761: operator=(unordered_map&&) = default; 29761: # 296 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: unordered_map& 29761: operator=(initializer_list __l) 29761: { 29761: _M_h = __l; 29761: return *this; 29761: } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _M_h.get_allocator(); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_h.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_h.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_h.max_size(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_h.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_h.end(); } 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_h.end(); } 29761: # 393 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: std::pair 29761: emplace(_Args&&... __args) 29761: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29761: # 424 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_h.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __key) 29761: { return _M_h.extract(__key); } 29761: 29761: 29761: insert_return_type 29761: insert(node_type&& __nh) 29761: { return _M_h._M_reinsert_node(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator, node_type&& __nh) 29761: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 29761: # 477 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: pair 29761: try_emplace(const key_type& __k, _Args&&... __args) 29761: { 29761: return _M_h.try_emplace(cend(), __k, std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: template 29761: pair 29761: try_emplace(key_type&& __k, _Args&&... __args) 29761: { 29761: return _M_h.try_emplace(cend(), std::move(__k), 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 521 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: iterator 29761: try_emplace(const_iterator __hint, const key_type& __k, 29761: _Args&&... __args) 29761: { 29761: return _M_h.try_emplace(__hint, __k, 29761: std::forward<_Args>(__args)...).first; 29761: } 29761: 29761: 29761: template 29761: iterator 29761: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 29761: { 29761: return _M_h.try_emplace(__hint, std::move(__k), 29761: std::forward<_Args>(__args)...).first; 29761: } 29761: # 558 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: std::pair 29761: insert(const value_type& __x) 29761: { return _M_h.insert(__x); } 29761: 29761: 29761: 29761: std::pair 29761: insert(value_type&& __x) 29761: { return _M_h.insert(std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, 29761: pair> 29761: insert(_Pair&& __x) 29761: { return _M_h.emplace(std::forward<_Pair>(__x)); } 29761: # 597 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: insert(const_iterator __hint, const value_type& __x) 29761: { return _M_h.insert(__hint, __x); } 29761: 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, value_type&& __x) 29761: { return _M_h.insert(__hint, std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(const_iterator __hint, _Pair&& __x) 29761: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 29761: # 622 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_h.insert(__first, __last); } 29761: # 634 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { _M_h.insert(__l); } 29761: # 660 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: pair 29761: insert_or_assign(const key_type& __k, _Obj&& __obj) 29761: { 29761: auto __ret = _M_h.try_emplace(cend(), __k, 29761: std::forward<_Obj>(__obj)); 29761: if (!__ret.second) 29761: __ret.first->second = std::forward<_Obj>(__obj); 29761: return __ret; 29761: } 29761: 29761: 29761: template 29761: pair 29761: insert_or_assign(key_type&& __k, _Obj&& __obj) 29761: { 29761: auto __ret = _M_h.try_emplace(cend(), std::move(__k), 29761: std::forward<_Obj>(__obj)); 29761: if (!__ret.second) 29761: __ret.first->second = std::forward<_Obj>(__obj); 29761: return __ret; 29761: } 29761: # 709 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: iterator 29761: insert_or_assign(const_iterator __hint, const key_type& __k, 29761: _Obj&& __obj) 29761: { 29761: auto __ret = _M_h.try_emplace(__hint, __k, std::forward<_Obj>(__obj)); 29761: if (!__ret.second) 29761: __ret.first->second = std::forward<_Obj>(__obj); 29761: return __ret.first; 29761: } 29761: 29761: 29761: template 29761: iterator 29761: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 29761: { 29761: auto __ret = _M_h.try_emplace(__hint, std::move(__k), 29761: std::forward<_Obj>(__obj)); 29761: if (!__ret.second) 29761: __ret.first->second = std::forward<_Obj>(__obj); 29761: return __ret.first; 29761: } 29761: # 747 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_h.erase(__position); } 29761: 29761: 29761: iterator 29761: erase(iterator __position) 29761: { return _M_h.erase(__position); } 29761: # 769 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_h.erase(__x); } 29761: # 787 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_h.erase(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_h.clear(); } 29761: # 811 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: swap(unordered_map& __x) 29761: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29761: { _M_h.swap(__x._M_h); } 29761: 29761: 29761: template 29761: friend class std::_Hash_merge_helper; 29761: 29761: template 29761: void 29761: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Hash_merge_helper; 29761: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Hash_merge_helper; 29761: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: hasher 29761: hash_function() const 29761: { return _M_h.hash_function(); } 29761: 29761: 29761: 29761: key_equal 29761: key_eq() const 29761: { return _M_h.key_eq(); } 29761: # 875 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_h.find(__x); } 29761: # 886 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_h.find(__x); } 29761: # 908 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_h.count(__x); } 29761: # 948 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_h.equal_range(__x); } 29761: # 960 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_h.equal_range(__x); } 29761: # 986 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: mapped_type& 29761: operator[](const key_type& __k) 29761: { return _M_h[__k]; } 29761: 29761: mapped_type& 29761: operator[](key_type&& __k) 29761: { return _M_h[std::move(__k)]; } 29761: # 1003 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: mapped_type& 29761: at(const key_type& __k) 29761: { return _M_h.at(__k); } 29761: 29761: const mapped_type& 29761: at(const key_type& __k) const 29761: { return _M_h.at(__k); } 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_count() const noexcept 29761: { return _M_h.bucket_count(); } 29761: 29761: 29761: size_type 29761: max_bucket_count() const noexcept 29761: { return _M_h.max_bucket_count(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_size(size_type __n) const 29761: { return _M_h.bucket_size(__n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket(const key_type& __key) const 29761: { return _M_h.bucket(__key); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: local_iterator 29761: begin(size_type __n) 29761: { return _M_h.begin(__n); } 29761: # 1059 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_local_iterator 29761: begin(size_type __n) const 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: cbegin(size_type __n) const 29761: { return _M_h.cbegin(__n); } 29761: # 1074 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: local_iterator 29761: end(size_type __n) 29761: { return _M_h.end(__n); } 29761: # 1085 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_local_iterator 29761: end(size_type __n) const 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: cend(size_type __n) const 29761: { return _M_h.cend(__n); } 29761: 29761: 29761: 29761: 29761: 29761: float 29761: load_factor() const noexcept 29761: { return _M_h.load_factor(); } 29761: 29761: 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_h.max_load_factor(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: max_load_factor(float __z) 29761: { _M_h.max_load_factor(__z); } 29761: # 1122 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: rehash(size_type __n) 29761: { _M_h.rehash(__n); } 29761: # 1133 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: reserve(size_type __n) 29761: { _M_h.reserve(__n); } 29761: 29761: template 29761: friend bool 29761: operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, 29761: const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); 29761: }; 29761: 29761: 29761: 29761: template>, 29761: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 29761: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(_InputIterator, _InputIterator, 29761: typename unordered_map::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29761: -> unordered_map<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, 29761: _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename _Pred = equal_to<_Key>, 29761: typename _Allocator = allocator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(initializer_list>, 29761: typename unordered_map::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29761: -> unordered_map<_Key, _Tp, _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(_InputIterator, _InputIterator, 29761: typename unordered_map::size_type, _Allocator) 29761: -> unordered_map<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, 29761: hash<__iter_key_t<_InputIterator>>, 29761: equal_to<__iter_key_t<_InputIterator>>, 29761: _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(_InputIterator, _InputIterator, _Allocator) 29761: -> unordered_map<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, 29761: hash<__iter_key_t<_InputIterator>>, 29761: equal_to<__iter_key_t<_InputIterator>>, 29761: _Allocator>; 29761: 29761: template, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(_InputIterator, _InputIterator, 29761: typename unordered_map::size_type, 29761: _Hash, _Allocator) 29761: -> unordered_map<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, _Hash, 29761: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template> 29761: unordered_map(initializer_list>, 29761: typename unordered_map::size_type, 29761: _Allocator) 29761: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29761: 29761: template> 29761: unordered_map(initializer_list>, _Allocator) 29761: -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_map(initializer_list>, 29761: typename unordered_map::size_type, 29761: _Hash, _Allocator) 29761: -> unordered_map<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 29761: # 1251 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template, 29761: typename _Pred = equal_to<_Key>, 29761: typename _Alloc = allocator>> 29761: class unordered_multimap 29761: { 29761: typedef __ummap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; 29761: _Hashtable _M_h; 29761: 29761: public: 29761: 29761: 29761: 29761: typedef typename _Hashtable::key_type key_type; 29761: typedef typename _Hashtable::value_type value_type; 29761: typedef typename _Hashtable::mapped_type mapped_type; 29761: typedef typename _Hashtable::hasher hasher; 29761: typedef typename _Hashtable::key_equal key_equal; 29761: typedef typename _Hashtable::allocator_type allocator_type; 29761: 29761: 29761: 29761: 29761: typedef typename _Hashtable::pointer pointer; 29761: typedef typename _Hashtable::const_pointer const_pointer; 29761: typedef typename _Hashtable::reference reference; 29761: typedef typename _Hashtable::const_reference const_reference; 29761: typedef typename _Hashtable::iterator iterator; 29761: typedef typename _Hashtable::const_iterator const_iterator; 29761: typedef typename _Hashtable::local_iterator local_iterator; 29761: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29761: typedef typename _Hashtable::size_type size_type; 29761: typedef typename _Hashtable::difference_type difference_type; 29761: 29761: 29761: 29761: using node_type = typename _Hashtable::node_type; 29761: 29761: 29761: 29761: 29761: 29761: unordered_multimap() = default; 29761: # 1302 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: explicit 29761: unordered_multimap(size_type __n, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__n, __hf, __eql, __a) 29761: { } 29761: # 1323 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: unordered_multimap(_InputIterator __first, _InputIterator __last, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__first, __last, __n, __hf, __eql, __a) 29761: { } 29761: 29761: 29761: unordered_multimap(const unordered_multimap&) = default; 29761: 29761: 29761: unordered_multimap(unordered_multimap&&) = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: unordered_multimap(const allocator_type& __a) 29761: : _M_h(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_multimap(const unordered_multimap& __ummap, 29761: const allocator_type& __a) 29761: : _M_h(__ummap._M_h, __a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_multimap(unordered_multimap&& __ummap, 29761: const allocator_type& __a) 29761: noexcept( noexcept(_Hashtable(std::move(__ummap._M_h), __a)) ) 29761: : _M_h(std::move(__ummap._M_h), __a) 29761: { } 29761: # 1379 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: unordered_multimap(initializer_list __l, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__l, __n, __hf, __eql, __a) 29761: { } 29761: 29761: unordered_multimap(size_type __n, const allocator_type& __a) 29761: : unordered_multimap(__n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_multimap(size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multimap(__n, __hf, key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_multimap(_InputIterator __first, _InputIterator __last, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_multimap(__first, __last, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_multimap(_InputIterator __first, _InputIterator __last, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multimap(__first, __last, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: unordered_multimap(initializer_list __l, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_multimap(__l, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_multimap(initializer_list __l, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multimap(__l, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: 29761: unordered_multimap& 29761: operator=(const unordered_multimap&) = default; 29761: 29761: 29761: unordered_multimap& 29761: operator=(unordered_multimap&&) = default; 29761: # 1441 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: unordered_multimap& 29761: operator=(initializer_list __l) 29761: { 29761: _M_h = __l; 29761: return *this; 29761: } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _M_h.get_allocator(); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_h.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_h.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_h.max_size(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_h.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_h.end(); } 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_h.end(); } 29761: # 1533 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: iterator 29761: emplace(_Args&&... __args) 29761: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29761: # 1560 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29761: # 1575 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: insert(const value_type& __x) 29761: { return _M_h.insert(__x); } 29761: 29761: iterator 29761: insert(value_type&& __x) 29761: { return _M_h.insert(std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(_Pair&& __x) 29761: { return _M_h.emplace(std::forward<_Pair>(__x)); } 29761: # 1609 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: insert(const_iterator __hint, const value_type& __x) 29761: { return _M_h.insert(__hint, __x); } 29761: 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, value_type&& __x) 29761: { return _M_h.insert(__hint, std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(const_iterator __hint, _Pair&& __x) 29761: { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } 29761: # 1634 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_h.insert(__first, __last); } 29761: # 1647 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { _M_h.insert(__l); } 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_h.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __key) 29761: { return _M_h.extract(__key); } 29761: 29761: 29761: iterator 29761: insert(node_type&& __nh) 29761: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 29761: # 1690 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_h.erase(__position); } 29761: 29761: 29761: iterator 29761: erase(iterator __position) 29761: { return _M_h.erase(__position); } 29761: # 1711 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_h.erase(__x); } 29761: # 1730 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_h.erase(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_h.clear(); } 29761: # 1754 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: swap(unordered_multimap& __x) 29761: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29761: { _M_h.swap(__x._M_h); } 29761: 29761: 29761: template 29761: friend class std::_Hash_merge_helper; 29761: 29761: template 29761: void 29761: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper 29761: = _Hash_merge_helper; 29761: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper 29761: = _Hash_merge_helper; 29761: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: hasher 29761: hash_function() const 29761: { return _M_h.hash_function(); } 29761: 29761: 29761: 29761: key_equal 29761: key_eq() const 29761: { return _M_h.key_eq(); } 29761: # 1820 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_h.find(__x); } 29761: # 1831 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_h.find(__x); } 29761: # 1849 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_h.count(__x); } 29761: # 1887 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_h.equal_range(__x); } 29761: # 1899 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_h.equal_range(__x); } 29761: # 1915 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: size_type 29761: bucket_count() const noexcept 29761: { return _M_h.bucket_count(); } 29761: 29761: 29761: size_type 29761: max_bucket_count() const noexcept 29761: { return _M_h.max_bucket_count(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_size(size_type __n) const 29761: { return _M_h.bucket_size(__n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket(const key_type& __key) const 29761: { return _M_h.bucket(__key); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: local_iterator 29761: begin(size_type __n) 29761: { return _M_h.begin(__n); } 29761: # 1959 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_local_iterator 29761: begin(size_type __n) const 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: cbegin(size_type __n) const 29761: { return _M_h.cbegin(__n); } 29761: # 1974 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: local_iterator 29761: end(size_type __n) 29761: { return _M_h.end(__n); } 29761: # 1985 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: const_local_iterator 29761: end(size_type __n) const 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: cend(size_type __n) const 29761: { return _M_h.cend(__n); } 29761: 29761: 29761: 29761: 29761: 29761: float 29761: load_factor() const noexcept 29761: { return _M_h.load_factor(); } 29761: 29761: 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_h.max_load_factor(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: max_load_factor(float __z) 29761: { _M_h.max_load_factor(__z); } 29761: # 2022 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: rehash(size_type __n) 29761: { _M_h.rehash(__n); } 29761: # 2033 "/usr/include/c++/14/bits/unordered_map.h" 3 29761: void 29761: reserve(size_type __n) 29761: { _M_h.reserve(__n); } 29761: 29761: template 29761: friend bool 29761: operator==(const unordered_multimap<_Key1, _Tp1, 29761: _Hash1, _Pred1, _Alloc1>&, 29761: const unordered_multimap<_Key1, _Tp1, 29761: _Hash1, _Pred1, _Alloc1>&); 29761: }; 29761: 29761: 29761: 29761: template>, 29761: typename _Pred = equal_to<__iter_key_t<_InputIterator>>, 29761: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(_InputIterator, _InputIterator, 29761: unordered_multimap::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), 29761: _Allocator = _Allocator()) 29761: -> unordered_multimap<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, _Hash, _Pred, 29761: _Allocator>; 29761: 29761: template, 29761: typename _Pred = equal_to<_Key>, 29761: typename _Allocator = allocator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(initializer_list>, 29761: unordered_multimap::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), 29761: _Allocator = _Allocator()) 29761: -> unordered_multimap<_Key, _Tp, _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(_InputIterator, _InputIterator, 29761: unordered_multimap::size_type, _Allocator) 29761: -> unordered_multimap<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, 29761: hash<__iter_key_t<_InputIterator>>, 29761: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(_InputIterator, _InputIterator, _Allocator) 29761: -> unordered_multimap<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, 29761: hash<__iter_key_t<_InputIterator>>, 29761: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(_InputIterator, _InputIterator, 29761: unordered_multimap::size_type, _Hash, 29761: _Allocator) 29761: -> unordered_multimap<__iter_key_t<_InputIterator>, 29761: __iter_val_t<_InputIterator>, _Hash, 29761: equal_to<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template> 29761: unordered_multimap(initializer_list>, 29761: unordered_multimap::size_type, 29761: _Allocator) 29761: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29761: 29761: template> 29761: unordered_multimap(initializer_list>, _Allocator) 29761: -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multimap(initializer_list>, 29761: unordered_multimap::size_type, 29761: _Hash, _Allocator) 29761: -> unordered_multimap<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: template 29761: inline void 29761: swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: template 29761: inline bool 29761: operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: { return __x._M_h._M_equal(__y._M_h); } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: { return __x._M_h._M_equal(__y._M_h); } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hash_merge_helper< 29761: std::unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>, 29761: _Hash2, _Eq2> 29761: { 29761: private: 29761: template 29761: using unordered_map = std::unordered_map<_Tp...>; 29761: template 29761: using unordered_multimap = std::unordered_multimap<_Tp...>; 29761: 29761: friend unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29761: { return __map._M_h; } 29761: 29761: static auto& 29761: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29761: { return __map._M_h; } 29761: }; 29761: 29761: 29761: template 29761: struct _Hash_merge_helper< 29761: std::unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>, 29761: _Hash2, _Eq2> 29761: { 29761: private: 29761: template 29761: using unordered_map = std::unordered_map<_Tp...>; 29761: template 29761: using unordered_multimap = std::unordered_multimap<_Tp...>; 29761: 29761: friend unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29761: { return __map._M_h; } 29761: 29761: static auto& 29761: _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) 29761: { return __map._M_h; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 42 "/usr/include/c++/14/unordered_map" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/erase_if.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/erase_if.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/erase_if.h" 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std 29761: { 29761: 29761: 29761: namespace __detail 29761: { 29761: template 29761: typename _Container::size_type 29761: __erase_nodes_if(_Container& __cont, _UnsafeContainer& __ucont, 29761: _Predicate __pred) 29761: { 29761: typename _Container::size_type __num = 0; 29761: for (auto __iter = __ucont.begin(), __last = __ucont.end(); 29761: __iter != __last;) 29761: { 29761: if (__pred(*__iter)) 29761: { 29761: __iter = __cont.erase(__iter); 29761: ++__num; 29761: } 29761: else 29761: ++__iter; 29761: } 29761: return __num; 29761: } 29761: } 29761: 29761: 29761: } 29761: # 44 "/usr/include/c++/14/unordered_map" 2 3 29761: # 56 "/usr/include/c++/14/unordered_map" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 57 "/usr/include/c++/14/unordered_map" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template, 29761: typename _Pred = std::equal_to<_Key>> 29761: using unordered_map 29761: = std::unordered_map<_Key, _Tp, _Hash, _Pred, 29761: polymorphic_allocator>>; 29761: template, 29761: typename _Pred = std::equal_to<_Key>> 29761: using unordered_multimap 29761: = std::unordered_multimap<_Key, _Tp, _Hash, _Pred, 29761: polymorphic_allocator>>; 29761: } 29761: 29761: } 29761: # 64 "/usr/include/c++/14/functional" 2 3 29761: # 1 "/usr/include/c++/14/vector" 1 3 29761: # 58 "/usr/include/c++/14/vector" 3 29761: 29761: # 59 "/usr/include/c++/14/vector" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_vector.h" 1 3 29761: # 77 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: struct _Vector_base 29761: { 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Tp>::other _Tp_alloc_type; 29761: typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer 29761: pointer; 29761: 29761: struct _Vector_impl_data 29761: { 29761: pointer _M_start; 29761: pointer _M_finish; 29761: pointer _M_end_of_storage; 29761: 29761: 29761: _Vector_impl_data() noexcept 29761: : _M_start(), _M_finish(), _M_end_of_storage() 29761: { } 29761: 29761: 29761: 29761: _Vector_impl_data(_Vector_impl_data&& __x) noexcept 29761: : _M_start(__x._M_start), _M_finish(__x._M_finish), 29761: _M_end_of_storage(__x._M_end_of_storage) 29761: { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } 29761: 29761: 29761: 29761: void 29761: _M_copy_data(_Vector_impl_data const& __x) noexcept 29761: { 29761: _M_start = __x._M_start; 29761: _M_finish = __x._M_finish; 29761: _M_end_of_storage = __x._M_end_of_storage; 29761: } 29761: 29761: 29761: void 29761: _M_swap_data(_Vector_impl_data& __x) noexcept 29761: { 29761: 29761: 29761: _Vector_impl_data __tmp; 29761: __tmp._M_copy_data(*this); 29761: _M_copy_data(__x); 29761: __x._M_copy_data(__tmp); 29761: } 29761: }; 29761: 29761: struct _Vector_impl 29761: : public _Tp_alloc_type, public _Vector_impl_data 29761: { 29761: 29761: _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) 29761: 29761: 29761: 29761: 29761: : _Tp_alloc_type() 29761: { } 29761: 29761: 29761: _Vector_impl(_Tp_alloc_type const& __a) noexcept 29761: : _Tp_alloc_type(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: _Vector_impl(_Vector_impl&& __x) noexcept 29761: : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) 29761: { } 29761: 29761: 29761: _Vector_impl(_Tp_alloc_type&& __a) noexcept 29761: : _Tp_alloc_type(std::move(__a)) 29761: { } 29761: 29761: 29761: _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept 29761: : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) 29761: { } 29761: # 293 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: }; 29761: 29761: public: 29761: typedef _Alloc allocator_type; 29761: 29761: 29761: _Tp_alloc_type& 29761: _M_get_Tp_allocator() noexcept 29761: { return this->_M_impl; } 29761: 29761: 29761: const _Tp_alloc_type& 29761: _M_get_Tp_allocator() const noexcept 29761: { return this->_M_impl; } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_get_Tp_allocator()); } 29761: 29761: 29761: _Vector_base() = default; 29761: 29761: 29761: 29761: 29761: 29761: _Vector_base(const allocator_type& __a) noexcept 29761: : _M_impl(__a) { } 29761: 29761: 29761: 29761: 29761: _Vector_base(size_t __n) 29761: : _M_impl() 29761: { _M_create_storage(__n); } 29761: 29761: 29761: 29761: _Vector_base(size_t __n, const allocator_type& __a) 29761: : _M_impl(__a) 29761: { _M_create_storage(__n); } 29761: 29761: 29761: _Vector_base(_Vector_base&&) = default; 29761: 29761: 29761: 29761: 29761: _Vector_base(_Tp_alloc_type&& __a) noexcept 29761: : _M_impl(std::move(__a)) { } 29761: 29761: 29761: _Vector_base(_Vector_base&& __x, const allocator_type& __a) 29761: : _M_impl(__a) 29761: { 29761: if (__x.get_allocator() == __a) 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: else 29761: { 29761: size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; 29761: _M_create_storage(__n); 29761: } 29761: } 29761: 29761: 29761: 29761: _Vector_base(const allocator_type& __a, _Vector_base&& __x) 29761: : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) 29761: { } 29761: 29761: 29761: 29761: ~_Vector_base() noexcept 29761: { 29761: _M_deallocate(_M_impl._M_start, 29761: _M_impl._M_end_of_storage - _M_impl._M_start); 29761: } 29761: 29761: public: 29761: _Vector_impl _M_impl; 29761: 29761: 29761: pointer 29761: _M_allocate(size_t __n) 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 29761: return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); 29761: } 29761: 29761: 29761: void 29761: _M_deallocate(pointer __p, size_t __n) 29761: { 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; 29761: if (__p) 29761: _Tr::deallocate(_M_impl, __p, __n); 29761: } 29761: 29761: protected: 29761: 29761: 29761: void 29761: _M_create_storage(size_t __n) 29761: { 29761: this->_M_impl._M_start = this->_M_allocate(__n); 29761: this->_M_impl._M_finish = this->_M_impl._M_start; 29761: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29761: } 29761: }; 29761: # 427 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template > 29761: class vector : protected _Vector_base<_Tp, _Alloc> 29761: { 29761: # 440 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: static_assert(is_same::type, _Tp>::value, 29761: "std::vector must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _Vector_base<_Tp, _Alloc> _Base; 29761: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; 29761: 29761: public: 29761: typedef _Tp value_type; 29761: typedef typename _Base::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: typedef __gnu_cxx::__normal_iterator iterator; 29761: typedef __gnu_cxx::__normal_iterator 29761: const_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Alloc allocator_type; 29761: 29761: private: 29761: 29761: static constexpr bool 29761: _S_nothrow_relocate(true_type) 29761: { 29761: return noexcept(std::__relocate_a(std::declval(), 29761: std::declval(), 29761: std::declval(), 29761: std::declval<_Tp_alloc_type&>())); 29761: } 29761: 29761: static constexpr bool 29761: _S_nothrow_relocate(false_type) 29761: { return false; } 29761: 29761: static constexpr bool 29761: _S_use_relocate() 29761: { 29761: 29761: 29761: 29761: return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); 29761: } 29761: 29761: static pointer 29761: _S_do_relocate(pointer __first, pointer __last, pointer __result, 29761: _Tp_alloc_type& __alloc, true_type) noexcept 29761: { 29761: return std::__relocate_a(__first, __last, __result, __alloc); 29761: } 29761: 29761: static pointer 29761: _S_do_relocate(pointer, pointer, pointer __result, 29761: _Tp_alloc_type&, false_type) noexcept 29761: { return __result; } 29761: 29761: static pointer 29761: _S_relocate(pointer __first, pointer __last, pointer __result, 29761: _Tp_alloc_type& __alloc) noexcept 29761: { 29761: 29761: 29761: return std::__relocate_a(__first, __last, __result, __alloc); 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: protected: 29761: using _Base::_M_allocate; 29761: using _Base::_M_deallocate; 29761: using _Base::_M_impl; 29761: using _Base::_M_get_Tp_allocator; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: vector() = default; 29761: # 540 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: explicit 29761: 29761: vector(const allocator_type& __a) noexcept 29761: : _Base(__a) { } 29761: # 554 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: explicit 29761: 29761: vector(size_type __n, const allocator_type& __a = allocator_type()) 29761: : _Base(_S_check_init_len(__n, __a), __a) 29761: { _M_default_initialize(__n); } 29761: # 568 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector(size_type __n, const value_type& __value, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(_S_check_init_len(__n, __a), __a) 29761: { _M_fill_initialize(__n, __value); } 29761: # 600 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector(const vector& __x) 29761: : _Base(__x.size(), 29761: _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) 29761: { 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_copy_a(__x.begin(), __x.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); 29761: } 29761: # 620 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: vector(vector&&) noexcept = default; 29761: 29761: 29761: 29761: vector(const vector& __x, const __type_identity_t& __a) 29761: : _Base(__x.size(), __a) 29761: { 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_copy_a(__x.begin(), __x.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); 29761: } 29761: 29761: private: 29761: 29761: vector(vector&& __rv, const allocator_type& __m, true_type) noexcept 29761: : _Base(__m, std::move(__rv)) 29761: { } 29761: 29761: 29761: vector(vector&& __rv, const allocator_type& __m, false_type) 29761: : _Base(__m) 29761: { 29761: if (__rv.get_allocator() == __m) 29761: this->_M_impl._M_swap_data(__rv._M_impl); 29761: else if (!__rv.empty()) 29761: { 29761: this->_M_create_storage(__rv.size()); 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_move_a(__rv.begin(), __rv.end(), 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); 29761: __rv.clear(); 29761: } 29761: } 29761: 29761: public: 29761: 29761: 29761: vector(vector&& __rv, const __type_identity_t& __m) 29761: noexcept( noexcept( 29761: vector(std::declval(), std::declval(), 29761: std::declval())) ) 29761: : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) 29761: { } 29761: # 677 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector(initializer_list __l, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_range_initialize(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: } 29761: # 704 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template> 29761: 29761: vector(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_range_initialize(__first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: # 732 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: ~vector() noexcept 29761: { 29761: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: ; 29761: } 29761: # 749 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector& 29761: operator=(const vector& __x); 29761: # 764 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector& 29761: operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) 29761: { 29761: constexpr bool __move_storage = 29761: _Alloc_traits::_S_propagate_on_move_assign() 29761: || _Alloc_traits::_S_always_equal(); 29761: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 29761: return *this; 29761: } 29761: # 786 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: vector& 29761: operator=(initializer_list __l) 29761: { 29761: this->_M_assign_aux(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: return *this; 29761: } 29761: # 806 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: assign(size_type __n, const value_type& __val) 29761: { _M_fill_assign(__n, __val); } 29761: # 824 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template> 29761: 29761: void 29761: assign(_InputIterator __first, _InputIterator __last) 29761: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29761: # 853 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: assign(initializer_list __l) 29761: { 29761: this->_M_assign_aux(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: } 29761: 29761: 29761: 29761: using _Base::get_allocator; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: begin() noexcept 29761: { return iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: end() noexcept 29761: { return iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: end() const noexcept 29761: { return const_iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(this->_M_impl._M_start); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cend() const noexcept 29761: { return const_iterator(this->_M_impl._M_finish); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: size() const noexcept 29761: { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: max_size() const noexcept 29761: { return _S_max_size(_M_get_Tp_allocator()); } 29761: # 1011 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: resize(size_type __new_size) 29761: { 29761: if (__new_size > size()) 29761: _M_default_append(__new_size - size()); 29761: else if (__new_size < size()) 29761: _M_erase_at_end(this->_M_impl._M_start + __new_size); 29761: } 29761: # 1032 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: resize(size_type __new_size, const value_type& __x) 29761: { 29761: if (__new_size > size()) 29761: _M_fill_insert(end(), __new_size - size(), __x); 29761: else if (__new_size < size()) 29761: _M_erase_at_end(this->_M_impl._M_start + __new_size); 29761: } 29761: # 1066 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: shrink_to_fit() 29761: { _M_shrink_to_fit(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: capacity() const noexcept 29761: { 29761: return size_type(this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_start); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: bool 29761: empty() const noexcept 29761: { return begin() == end(); } 29761: # 1110 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: reserve(size_type __n); 29761: # 1126 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: operator[](size_type __n) noexcept 29761: { 29761: ; 29761: return *(this->_M_impl._M_start + __n); 29761: } 29761: # 1145 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: [[__nodiscard__]] 29761: const_reference 29761: operator[](size_type __n) const noexcept 29761: { 29761: ; 29761: return *(this->_M_impl._M_start + __n); 29761: } 29761: 29761: protected: 29761: 29761: 29761: void 29761: _M_range_check(size_type __n) const 29761: { 29761: if (__n >= this->size()) 29761: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29761: 29761: , 29761: __n, this->size()); 29761: } 29761: 29761: public: 29761: # 1178 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: at(size_type __n) 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: # 1197 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: [[__nodiscard__]] 29761: const_reference 29761: at(size_type __n) const 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: front() noexcept 29761: { 29761: ; 29761: return *begin(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: front() const noexcept 29761: { 29761: ; 29761: return *begin(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: back() noexcept 29761: { 29761: ; 29761: return *(end() - 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: back() const noexcept 29761: { 29761: ; 29761: return *(end() - 1); 29761: } 29761: # 1260 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: [[__nodiscard__]] 29761: _Tp* 29761: data() noexcept 29761: { return _M_data_ptr(this->_M_impl._M_start); } 29761: 29761: [[__nodiscard__]] 29761: const _Tp* 29761: data() const noexcept 29761: { return _M_data_ptr(this->_M_impl._M_start); } 29761: # 1281 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: push_back(const value_type& __x) 29761: { 29761: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: __x); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: } 29761: else 29761: _M_realloc_append(__x); 29761: } 29761: 29761: 29761: 29761: void 29761: push_back(value_type&& __x) 29761: { emplace_back(std::move(__x)); } 29761: 29761: template 29761: 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_back(_Args&&... __args); 29761: # 1322 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: pop_back() noexcept 29761: { 29761: ; 29761: --this->_M_impl._M_finish; 29761: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 29761: ; 29761: } 29761: # 1345 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template 29761: 29761: iterator 29761: emplace(const_iterator __position, _Args&&... __args) 29761: { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } 29761: # 1362 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: insert(const_iterator __position, const value_type& __x); 29761: # 1393 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return _M_insert_rval(__position, std::move(__x)); } 29761: # 1411 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: insert(const_iterator __position, initializer_list __l) 29761: { 29761: auto __offset = __position - cbegin(); 29761: _M_range_insert(begin() + __offset, __l.begin(), __l.end(), 29761: std::random_access_iterator_tag()); 29761: return begin() + __offset; 29761: } 29761: # 1437 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: insert(const_iterator __position, size_type __n, const value_type& __x) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_fill_insert(begin() + __offset, __n, __x); 29761: return begin() + __offset; 29761: } 29761: # 1480 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template> 29761: 29761: iterator 29761: insert(const_iterator __position, _InputIterator __first, 29761: _InputIterator __last) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_range_insert(begin() + __offset, __first, __last, 29761: std::__iterator_category(__first)); 29761: return begin() + __offset; 29761: } 29761: # 1533 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: 29761: erase(const_iterator __position) 29761: { return _M_erase(begin() + (__position - cbegin())); } 29761: # 1561 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: iterator 29761: 29761: erase(const_iterator __first, const_iterator __last) 29761: { 29761: const auto __beg = begin(); 29761: const auto __cbeg = cbegin(); 29761: return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); 29761: } 29761: # 1586 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: 29761: void 29761: swap(vector& __x) noexcept 29761: { 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) std::__glibcxx_assert_fail(); } while (false) 29761: ; 29761: 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), 29761: __x._M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_erase_at_end(this->_M_impl._M_start); } 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: pointer 29761: _M_allocate_and_copy(size_type __n, 29761: _ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: pointer __result = this->_M_allocate(__n); 29761: try 29761: { 29761: std::__uninitialized_copy_a(__first, __last, __result, 29761: _M_get_Tp_allocator()); 29761: return __result; 29761: } 29761: catch(...) 29761: { 29761: _M_deallocate(__result, __n); 29761: throw; 29761: } 29761: } 29761: # 1666 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template 29761: 29761: void 29761: _M_range_initialize(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: try { 29761: for (; __first != __last; ++__first) 29761: 29761: emplace_back(*__first); 29761: 29761: 29761: 29761: } catch(...) { 29761: clear(); 29761: throw; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: void 29761: _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __n = std::distance(__first, __last); 29761: this->_M_impl._M_start 29761: = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); 29761: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_copy_a(__first, __last, 29761: this->_M_impl._M_start, 29761: _M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: _M_fill_initialize(size_type __n, const value_type& __value) 29761: { 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, 29761: _M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: _M_default_initialize(size_type __n) 29761: { 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, 29761: _M_get_Tp_allocator()); 29761: } 29761: # 1732 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template 29761: 29761: void 29761: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 29761: { _M_fill_assign(__n, __val); } 29761: 29761: 29761: template 29761: 29761: void 29761: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 29761: __false_type) 29761: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29761: 29761: 29761: template 29761: 29761: void 29761: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag); 29761: 29761: 29761: template 29761: 29761: void 29761: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag); 29761: 29761: 29761: 29761: 29761: void 29761: _M_fill_assign(size_type __n, const value_type& __val); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, 29761: __true_type) 29761: { _M_fill_insert(__pos, __n, __val); } 29761: 29761: 29761: template 29761: 29761: void 29761: _M_insert_dispatch(iterator __pos, _InputIterator __first, 29761: _InputIterator __last, __false_type) 29761: { 29761: _M_range_insert(__pos, __first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: 29761: template 29761: 29761: void 29761: _M_range_insert(iterator __pos, _InputIterator __first, 29761: _InputIterator __last, std::input_iterator_tag); 29761: 29761: 29761: template 29761: 29761: void 29761: _M_range_insert(iterator __pos, _ForwardIterator __first, 29761: _ForwardIterator __last, std::forward_iterator_tag); 29761: 29761: 29761: 29761: 29761: void 29761: _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); 29761: 29761: 29761: 29761: 29761: void 29761: _M_default_append(size_type __n); 29761: 29761: 29761: bool 29761: _M_shrink_to_fit(); 29761: # 1834 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: struct _Temporary_value 29761: { 29761: template 29761: explicit 29761: _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) 29761: { 29761: _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: ~_Temporary_value() 29761: { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } 29761: 29761: value_type& 29761: _M_val() noexcept { return _M_storage._M_val; } 29761: 29761: private: 29761: _Tp* 29761: _M_ptr() noexcept { return std::__addressof(_M_storage._M_val); } 29761: 29761: union _Storage 29761: { 29761: constexpr _Storage() : _M_byte() { } 29761: ~_Storage() { } 29761: _Storage& operator=(const _Storage&) = delete; 29761: unsigned char _M_byte; 29761: _Tp _M_val; 29761: }; 29761: 29761: vector* _M_this; 29761: _Storage _M_storage; 29761: }; 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: _M_insert_aux(iterator __position, _Arg&& __arg); 29761: 29761: template 29761: 29761: void 29761: _M_realloc_insert(iterator __position, _Args&&... __args); 29761: 29761: template 29761: 29761: void 29761: _M_realloc_append(_Args&&... __args); 29761: 29761: 29761: 29761: iterator 29761: _M_insert_rval(const_iterator __position, value_type&& __v); 29761: 29761: 29761: template 29761: 29761: iterator 29761: _M_emplace_aux(const_iterator __position, _Args&&... __args); 29761: 29761: 29761: 29761: iterator 29761: _M_emplace_aux(const_iterator __position, value_type&& __v) 29761: { return _M_insert_rval(__position, std::move(__v)); } 29761: 29761: 29761: 29761: 29761: size_type 29761: _M_check_len(size_type __n, const char* __s) const 29761: { 29761: if (max_size() - size() < __n) 29761: __throw_length_error((__s)); 29761: 29761: const size_type __len = size() + (std::max)(size(), __n); 29761: return (__len < size() || __len > max_size()) ? max_size() : __len; 29761: } 29761: 29761: 29761: static size_type 29761: _S_check_init_len(size_type __n, const allocator_type& __a) 29761: { 29761: if (__n > _S_max_size(_Tp_alloc_type(__a))) 29761: __throw_length_error( 29761: ("cannot create std::vector larger than max_size()")); 29761: return __n; 29761: } 29761: 29761: static size_type 29761: _S_max_size(const _Tp_alloc_type& __a) noexcept 29761: { 29761: 29761: 29761: 29761: const size_t __diffmax 29761: = __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 29761: const size_t __allocmax = _Alloc_traits::max_size(__a); 29761: return (std::min)(__diffmax, __allocmax); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: _M_erase_at_end(pointer __pos) noexcept 29761: { 29761: if (size_type __n = this->_M_impl._M_finish - __pos) 29761: { 29761: std::_Destroy(__pos, this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish = __pos; 29761: ; 29761: } 29761: } 29761: 29761: 29761: iterator 29761: _M_erase(iterator __position); 29761: 29761: 29761: iterator 29761: _M_erase(iterator __first, iterator __last); 29761: 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: void 29761: _M_move_assign(vector&& __x, true_type) noexcept 29761: { 29761: vector __tmp(get_allocator()); 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: __tmp._M_impl._M_swap_data(__x._M_impl); 29761: std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: _M_move_assign(vector&& __x, false_type) 29761: { 29761: if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) 29761: _M_move_assign(std::move(__x), true_type()); 29761: else 29761: { 29761: 29761: 29761: this->_M_assign_aux(std::make_move_iterator(__x.begin()), 29761: std::make_move_iterator(__x.end()), 29761: std::random_access_iterator_tag()); 29761: __x.clear(); 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: _Up* 29761: _M_data_ptr(_Up* __ptr) const noexcept 29761: { return __ptr; } 29761: 29761: 29761: template 29761: 29761: typename std::pointer_traits<_Ptr>::element_type* 29761: _M_data_ptr(_Ptr __ptr) const 29761: { return empty() ? nullptr : std::__to_address(__ptr); } 29761: # 2025 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: }; 29761: 29761: 29761: template::value_type, 29761: typename _Allocator = allocator<_ValT>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireAllocator<_Allocator>> 29761: vector(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29761: -> vector<_ValT, _Allocator>; 29761: # 2047 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return (__x.size() == __y.size() 29761: && std::equal(__x.begin(), __x.end(), __y.begin())); } 29761: # 2087 "/usr/include/c++/14/bits/stl_vector.h" 3 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return std::lexicographical_compare(__x.begin(), __x.end(), 29761: __y.begin(), __y.end()); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: 29761: inline void 29761: swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: namespace __detail::__variant 29761: { 29761: template struct _Never_valueless_alt; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : std::is_nothrow_move_assignable> 29761: { }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 67 "/usr/include/c++/14/vector" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_bvector.h" 1 3 29761: # 68 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: typedef unsigned long _Bit_type; 29761: enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; 29761: 29761: __attribute__((__nonnull__)) 29761: 29761: void 29761: __fill_bvector_n(_Bit_type*, size_t, bool) noexcept; 29761: 29761: 29761: 29761: struct _Bit_reference 29761: { 29761: _Bit_type * _M_p; 29761: _Bit_type _M_mask; 29761: 29761: 29761: _Bit_reference(_Bit_type * __x, _Bit_type __y) 29761: : _M_p(__x), _M_mask(__y) { } 29761: 29761: 29761: _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } 29761: 29761: 29761: _Bit_reference(const _Bit_reference&) = default; 29761: 29761: 29761: [[__nodiscard__]] 29761: operator bool() const noexcept 29761: { return !!(*_M_p & _M_mask); } 29761: 29761: 29761: _Bit_reference& 29761: operator=(bool __x) noexcept 29761: { 29761: if (__x) 29761: *_M_p |= _M_mask; 29761: else 29761: *_M_p &= ~_M_mask; 29761: return *this; 29761: } 29761: # 125 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: _Bit_reference& 29761: operator=(const _Bit_reference& __x) noexcept 29761: { return *this = bool(__x); } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: operator==(const _Bit_reference& __x) const 29761: { return bool(*this) == bool(__x); } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: operator<(const _Bit_reference& __x) const 29761: { return !bool(*this) && bool(__x); } 29761: 29761: 29761: void 29761: flip() noexcept 29761: { *_M_p ^= _M_mask; } 29761: 29761: 29761: 29761: friend void 29761: swap(_Bit_reference __x, _Bit_reference __y) noexcept 29761: { 29761: bool __tmp = __x; 29761: __x = __y; 29761: __y = __tmp; 29761: } 29761: 29761: 29761: friend void 29761: swap(_Bit_reference __x, bool& __y) noexcept 29761: { 29761: bool __tmp = __x; 29761: __x = __y; 29761: __y = __tmp; 29761: } 29761: 29761: 29761: friend void 29761: swap(bool& __x, _Bit_reference __y) noexcept 29761: { 29761: bool __tmp = __x; 29761: __x = __y; 29761: __y = __tmp; 29761: } 29761: 29761: }; 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: struct _Bit_iterator_base 29761: : public std::iterator 29761: { 29761: _Bit_type * _M_p; 29761: unsigned int _M_offset; 29761: 29761: inline __attribute__((__always_inline__)) 29761: void 29761: _M_assume_normalized() const 29761: { 29761: 29761: unsigned int __ofst = _M_offset; 29761: __attribute__ ((__assume__ (__ofst < unsigned(_S_word_bit)))); 29761: 29761: } 29761: 29761: 29761: _Bit_iterator_base(_Bit_type * __x, unsigned int __y) 29761: : _M_p(__x), _M_offset(__y) { } 29761: 29761: 29761: void 29761: _M_bump_up() 29761: { 29761: _M_assume_normalized(); 29761: if (_M_offset++ == int(_S_word_bit) - 1) 29761: { 29761: _M_offset = 0; 29761: ++_M_p; 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_bump_down() 29761: { 29761: _M_assume_normalized(); 29761: if (_M_offset-- == 0) 29761: { 29761: _M_offset = int(_S_word_bit) - 1; 29761: --_M_p; 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_incr(ptrdiff_t __i) 29761: { 29761: _M_assume_normalized(); 29761: difference_type __n = __i + _M_offset; 29761: _M_p += __n / int(_S_word_bit); 29761: __n = __n % int(_S_word_bit); 29761: if (__n < 0) 29761: { 29761: __n += int(_S_word_bit); 29761: --_M_p; 29761: } 29761: _M_offset = static_cast(__n); 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { 29761: __x._M_assume_normalized(); 29761: __y._M_assume_normalized(); 29761: return __x._M_p == __y._M_p && __x._M_offset == __y._M_offset; 29761: } 29761: # 260 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { 29761: __x._M_assume_normalized(); 29761: __y._M_assume_normalized(); 29761: return __x._M_p < __y._M_p 29761: || (__x._M_p == __y._M_p && __x._M_offset < __y._M_offset); 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { return !(__x == __y); } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { return __y < __x; } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator<=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { return !(__y < __x); } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator>=(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: friend ptrdiff_t 29761: operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) 29761: { 29761: __x._M_assume_normalized(); 29761: __y._M_assume_normalized(); 29761: return (int(_S_word_bit) * (__x._M_p - __y._M_p) 29761: + __x._M_offset - __y._M_offset); 29761: } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: struct _Bit_iterator : public _Bit_iterator_base 29761: { 29761: typedef _Bit_reference reference; 29761: 29761: 29761: 29761: typedef _Bit_reference* pointer; 29761: 29761: typedef _Bit_iterator iterator; 29761: 29761: 29761: _Bit_iterator() : _Bit_iterator_base(0, 0) { } 29761: 29761: 29761: _Bit_iterator(_Bit_type * __x, unsigned int __y) 29761: : _Bit_iterator_base(__x, __y) { } 29761: 29761: 29761: iterator 29761: _M_const_cast() const 29761: { return *this; } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator*() const 29761: { 29761: _M_assume_normalized(); 29761: return reference(_M_p, 1UL << _M_offset); 29761: } 29761: 29761: 29761: iterator& 29761: operator++() 29761: { 29761: _M_bump_up(); 29761: return *this; 29761: } 29761: 29761: 29761: iterator 29761: operator++(int) 29761: { 29761: iterator __tmp = *this; 29761: _M_bump_up(); 29761: return __tmp; 29761: } 29761: 29761: 29761: iterator& 29761: operator--() 29761: { 29761: _M_bump_down(); 29761: return *this; 29761: } 29761: 29761: 29761: iterator 29761: operator--(int) 29761: { 29761: iterator __tmp = *this; 29761: _M_bump_down(); 29761: return __tmp; 29761: } 29761: 29761: 29761: iterator& 29761: operator+=(difference_type __i) 29761: { 29761: _M_incr(__i); 29761: return *this; 29761: } 29761: 29761: 29761: iterator& 29761: operator-=(difference_type __i) 29761: { 29761: *this += -__i; 29761: return *this; 29761: } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator[](difference_type __i) const 29761: { return *(*this + __i); } 29761: 29761: [[__nodiscard__]] 29761: friend iterator 29761: operator+(const iterator& __x, difference_type __n) 29761: { 29761: iterator __tmp = __x; 29761: __tmp += __n; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend iterator 29761: operator+(difference_type __n, const iterator& __x) 29761: { return __x + __n; } 29761: 29761: [[__nodiscard__]] 29761: friend iterator 29761: operator-(const iterator& __x, difference_type __n) 29761: { 29761: iterator __tmp = __x; 29761: __tmp -= __n; 29761: return __tmp; 29761: } 29761: }; 29761: 29761: struct _Bit_const_iterator : public _Bit_iterator_base 29761: { 29761: typedef bool reference; 29761: typedef bool const_reference; 29761: 29761: 29761: 29761: typedef const bool* pointer; 29761: 29761: typedef _Bit_const_iterator const_iterator; 29761: 29761: 29761: _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } 29761: 29761: 29761: _Bit_const_iterator(_Bit_type * __x, unsigned int __y) 29761: : _Bit_iterator_base(__x, __y) { } 29761: 29761: 29761: _Bit_const_iterator(const _Bit_iterator& __x) 29761: : _Bit_iterator_base(__x._M_p, __x._M_offset) { } 29761: 29761: 29761: _Bit_iterator 29761: _M_const_cast() const 29761: { return _Bit_iterator(_M_p, _M_offset); } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: operator*() const 29761: { 29761: _M_assume_normalized(); 29761: return _Bit_reference(_M_p, 1UL << _M_offset); 29761: } 29761: 29761: 29761: const_iterator& 29761: operator++() 29761: { 29761: _M_bump_up(); 29761: return *this; 29761: } 29761: 29761: 29761: const_iterator 29761: operator++(int) 29761: { 29761: const_iterator __tmp = *this; 29761: _M_bump_up(); 29761: return __tmp; 29761: } 29761: 29761: 29761: const_iterator& 29761: operator--() 29761: { 29761: _M_bump_down(); 29761: return *this; 29761: } 29761: 29761: 29761: const_iterator 29761: operator--(int) 29761: { 29761: const_iterator __tmp = *this; 29761: _M_bump_down(); 29761: return __tmp; 29761: } 29761: 29761: 29761: const_iterator& 29761: operator+=(difference_type __i) 29761: { 29761: _M_incr(__i); 29761: return *this; 29761: } 29761: 29761: 29761: const_iterator& 29761: operator-=(difference_type __i) 29761: { 29761: *this += -__i; 29761: return *this; 29761: } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: operator[](difference_type __i) const 29761: { return *(*this + __i); } 29761: 29761: [[__nodiscard__]] 29761: friend const_iterator 29761: operator+(const const_iterator& __x, difference_type __n) 29761: { 29761: const_iterator __tmp = __x; 29761: __tmp += __n; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend const_iterator 29761: operator-(const const_iterator& __x, difference_type __n) 29761: { 29761: const_iterator __tmp = __x; 29761: __tmp -= __n; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend const_iterator 29761: operator+(difference_type __n, const const_iterator& __x) 29761: { return __x + __n; } 29761: }; 29761: 29761: template 29761: struct _Bvector_base 29761: { 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Bit_type>::other _Bit_alloc_type; 29761: typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> 29761: _Bit_alloc_traits; 29761: typedef typename _Bit_alloc_traits::pointer _Bit_pointer; 29761: 29761: struct _Bvector_impl_data 29761: { 29761: 29761: _Bit_iterator _M_start; 29761: # 547 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: _Bit_iterator _M_finish; 29761: _Bit_pointer _M_end_of_storage; 29761: 29761: 29761: _Bvector_impl_data() noexcept 29761: : _M_start(), _M_finish(), _M_end_of_storage() 29761: { } 29761: 29761: 29761: _Bvector_impl_data(const _Bvector_impl_data&) = default; 29761: 29761: _Bvector_impl_data& 29761: operator=(const _Bvector_impl_data&) = default; 29761: 29761: 29761: _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept 29761: : _Bvector_impl_data(__x) 29761: { __x._M_reset(); } 29761: 29761: 29761: void 29761: _M_move_data(_Bvector_impl_data&& __x) noexcept 29761: { 29761: *this = __x; 29761: __x._M_reset(); 29761: } 29761: 29761: 29761: 29761: void 29761: _M_reset() noexcept 29761: { *this = _Bvector_impl_data(); } 29761: 29761: 29761: void 29761: _M_swap_data(_Bvector_impl_data& __x) noexcept 29761: { 29761: 29761: 29761: std::swap(*this, __x); 29761: } 29761: }; 29761: 29761: struct _Bvector_impl 29761: : public _Bit_alloc_type, public _Bvector_impl_data 29761: { 29761: 29761: _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) 29761: 29761: 29761: 29761: 29761: : _Bit_alloc_type() 29761: { } 29761: 29761: 29761: _Bvector_impl(const _Bit_alloc_type& __a) noexcept 29761: : _Bit_alloc_type(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: _Bvector_impl(_Bvector_impl&& __x) noexcept 29761: : _Bit_alloc_type(std::move(__x)), _Bvector_impl_data(std::move(__x)) 29761: { } 29761: 29761: 29761: _Bvector_impl(_Bit_alloc_type&& __a, _Bvector_impl&& __x) noexcept 29761: : _Bit_alloc_type(std::move(__a)), _Bvector_impl_data(std::move(__x)) 29761: { } 29761: 29761: 29761: 29761: _Bit_type* 29761: _M_end_addr() const noexcept 29761: { 29761: if (this->_M_end_of_storage) 29761: return std::__addressof(this->_M_end_of_storage[-1]) + 1; 29761: return 0; 29761: } 29761: }; 29761: 29761: public: 29761: typedef _Alloc allocator_type; 29761: 29761: 29761: _Bit_alloc_type& 29761: _M_get_Bit_allocator() noexcept 29761: { return this->_M_impl; } 29761: 29761: 29761: const _Bit_alloc_type& 29761: _M_get_Bit_allocator() const noexcept 29761: { return this->_M_impl; } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_get_Bit_allocator()); } 29761: 29761: 29761: _Bvector_base() = default; 29761: 29761: 29761: 29761: 29761: 29761: _Bvector_base(const allocator_type& __a) 29761: : _M_impl(_Bit_alloc_type(__a)) { } 29761: 29761: 29761: _Bvector_base(_Bvector_base&&) = default; 29761: 29761: 29761: _Bvector_base(_Bvector_base&& __x, const allocator_type& __a) noexcept 29761: : _M_impl(_Bit_alloc_type(__a), std::move(__x._M_impl)) 29761: { } 29761: 29761: 29761: 29761: ~_Bvector_base() 29761: { this->_M_deallocate(); } 29761: 29761: protected: 29761: _Bvector_impl _M_impl; 29761: 29761: 29761: _Bit_pointer 29761: _M_allocate(size_t __n) 29761: { 29761: _Bit_pointer __p = _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); 29761: # 688 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: return __p; 29761: } 29761: 29761: 29761: void 29761: _M_deallocate() 29761: { 29761: if (_M_impl._M_start._M_p) 29761: { 29761: const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; 29761: _Bit_alloc_traits::deallocate(_M_impl, 29761: _M_impl._M_end_of_storage - __n, 29761: __n); 29761: _M_impl._M_reset(); 29761: } 29761: } 29761: 29761: 29761: 29761: void 29761: _M_move_data(_Bvector_base&& __x) noexcept 29761: { _M_impl._M_move_data(std::move(__x._M_impl)); } 29761: 29761: 29761: constexpr 29761: static size_t 29761: _S_nword(size_t __n) 29761: { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } 29761: }; 29761: # 739 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: template 29761: class vector : protected _Bvector_base<_Alloc> 29761: { 29761: typedef _Bvector_base<_Alloc> _Base; 29761: typedef typename _Base::_Bit_pointer _Bit_pointer; 29761: typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; 29761: 29761: 29761: friend struct std::hash; 29761: 29761: 29761: public: 29761: typedef bool value_type; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Bit_reference reference; 29761: typedef bool const_reference; 29761: typedef _Bit_reference* pointer; 29761: typedef const bool* const_pointer; 29761: typedef _Bit_iterator iterator; 29761: typedef _Bit_const_iterator const_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef _Alloc allocator_type; 29761: 29761: 29761: allocator_type 29761: get_allocator() const 29761: { return _Base::get_allocator(); } 29761: 29761: protected: 29761: using _Base::_M_allocate; 29761: using _Base::_M_deallocate; 29761: using _Base::_S_nword; 29761: using _Base::_M_get_Bit_allocator; 29761: 29761: public: 29761: 29761: vector() = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: vector(const allocator_type& __a) 29761: : _Base(__a) { } 29761: 29761: 29761: 29761: explicit 29761: vector(size_type __n, const allocator_type& __a = allocator_type()) 29761: : vector(__n, false, __a) 29761: { } 29761: 29761: 29761: vector(size_type __n, const bool& __value, 29761: const allocator_type& __a = allocator_type()) 29761: 29761: 29761: 29761: 29761: 29761: : _Base(__a) 29761: { 29761: _M_initialize(__n); 29761: _M_initialize_value(__value); 29761: } 29761: 29761: 29761: vector(const vector& __x) 29761: : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) 29761: { 29761: const_iterator __xbegin = __x.begin(), __xend = __x.end(); 29761: _M_initialize(__x.size()); 29761: _M_copy_aligned(__xbegin, __xend, begin()); 29761: } 29761: 29761: 29761: vector(vector&&) = default; 29761: 29761: private: 29761: 29761: vector(vector&& __x, const allocator_type& __a, true_type) noexcept 29761: : _Base(std::move(__x), __a) 29761: { } 29761: 29761: 29761: vector(vector&& __x, const allocator_type& __a, false_type) 29761: : _Base(__a) 29761: { 29761: if (__x.get_allocator() == __a) 29761: this->_M_move_data(std::move(__x)); 29761: else 29761: { 29761: _M_initialize(__x.size()); 29761: _M_copy_aligned(__x.begin(), __x.end(), begin()); 29761: __x.clear(); 29761: } 29761: } 29761: 29761: public: 29761: 29761: vector(vector&& __x, const __type_identity_t& __a) 29761: noexcept(_Bit_alloc_traits::_S_always_equal()) 29761: : vector(std::move(__x), __a, 29761: typename _Bit_alloc_traits::is_always_equal{}) 29761: { } 29761: 29761: 29761: vector(const vector& __x, const __type_identity_t& __a) 29761: : _Base(__a) 29761: { 29761: _M_initialize(__x.size()); 29761: _M_copy_aligned(__x.begin(), __x.end(), begin()); 29761: } 29761: 29761: 29761: vector(initializer_list __l, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_initialize_range(__l.begin(), __l.end(), 29761: random_access_iterator_tag()); 29761: } 29761: 29761: 29761: 29761: template> 29761: 29761: vector(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(__a) 29761: { 29761: _M_initialize_range(__first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: # 889 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: ~vector() noexcept { } 29761: 29761: 29761: vector& 29761: operator=(const vector& __x) 29761: { 29761: if (&__x == this) 29761: return *this; 29761: 29761: if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) 29761: { 29761: this->_M_deallocate(); 29761: std::__alloc_on_copy(_M_get_Bit_allocator(), 29761: __x._M_get_Bit_allocator()); 29761: _M_initialize(__x.size()); 29761: } 29761: else 29761: std::__alloc_on_copy(_M_get_Bit_allocator(), 29761: __x._M_get_Bit_allocator()); 29761: } 29761: 29761: if (__x.size() > capacity()) 29761: { 29761: this->_M_deallocate(); 29761: _M_initialize(__x.size()); 29761: } 29761: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 29761: begin()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: vector& 29761: operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) 29761: { 29761: if (_Bit_alloc_traits::_S_propagate_on_move_assign() 29761: || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) 29761: { 29761: this->_M_deallocate(); 29761: this->_M_move_data(std::move(__x)); 29761: std::__alloc_on_move(_M_get_Bit_allocator(), 29761: __x._M_get_Bit_allocator()); 29761: } 29761: else 29761: { 29761: if (__x.size() > capacity()) 29761: { 29761: this->_M_deallocate(); 29761: _M_initialize(__x.size()); 29761: } 29761: this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), 29761: begin()); 29761: __x.clear(); 29761: } 29761: return *this; 29761: } 29761: 29761: 29761: vector& 29761: operator=(initializer_list __l) 29761: { 29761: this->assign(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: assign(size_type __n, const bool& __x) 29761: { _M_fill_assign(__n, __x); } 29761: 29761: 29761: template> 29761: 29761: void 29761: assign(_InputIterator __first, _InputIterator __last) 29761: { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } 29761: # 987 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: void 29761: assign(initializer_list __l) 29761: { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: begin() noexcept 29761: { return iterator(this->_M_impl._M_start._M_p, 0); } 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: end() noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: end() const noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(end()); } 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(begin()); } 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(this->_M_impl._M_start._M_p, 0); } 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cend() const noexcept 29761: { return this->_M_impl._M_finish; } 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: size() const noexcept 29761: { return size_type(end() - begin()); } 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: max_size() const noexcept 29761: { 29761: const size_type __isize = 29761: __gnu_cxx::__numeric_traits::__max 29761: - int(_S_word_bit) + 1; 29761: const size_type __asize 29761: = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); 29761: return (__asize <= __isize / int(_S_word_bit) 29761: ? __asize * int(_S_word_bit) : __isize); 29761: } 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: capacity() const noexcept 29761: { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) 29761: - begin()); } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: empty() const noexcept 29761: { return begin() == end(); } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator[](size_type __n) 29761: { return begin()[__n]; } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: operator[](size_type __n) const 29761: { return begin()[__n]; } 29761: 29761: protected: 29761: 29761: void 29761: _M_range_check(size_type __n) const 29761: { 29761: if (__n >= this->size()) 29761: __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29761: 29761: , 29761: __n, this->size()); 29761: } 29761: 29761: public: 29761: [[__nodiscard__]] 29761: reference 29761: at(size_type __n) 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: at(size_type __n) const 29761: { 29761: _M_range_check(__n); 29761: return (*this)[__n]; 29761: } 29761: 29761: 29761: void 29761: reserve(size_type __n) 29761: { 29761: if (__n > max_size()) 29761: __throw_length_error(("vector::reserve")); 29761: if (capacity() < __n) 29761: _M_reallocate(__n); 29761: } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: front() 29761: { return *begin(); } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: front() const 29761: { return *begin(); } 29761: 29761: [[__nodiscard__]] 29761: reference 29761: back() 29761: { return *(end() - 1); } 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: back() const 29761: { return *(end() - 1); } 29761: 29761: 29761: void 29761: push_back(bool __x) 29761: { 29761: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 29761: *this->_M_impl._M_finish++ = __x; 29761: else 29761: _M_insert_aux(end(), __x); 29761: } 29761: 29761: 29761: void 29761: swap(vector& __x) noexcept 29761: { 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(_Bit_alloc_traits::propagate_on_container_swap::value || _M_get_Bit_allocator() == __x._M_get_Bit_allocator())) std::__glibcxx_assert_fail(); } while (false) 29761: ; 29761: 29761: this->_M_impl._M_swap_data(__x._M_impl); 29761: _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), 29761: __x._M_get_Bit_allocator()); 29761: } 29761: 29761: 29761: 29761: static void 29761: swap(reference __x, reference __y) noexcept 29761: { 29761: bool __tmp = __x; 29761: __x = __y; 29761: __y = __tmp; 29761: } 29761: 29761: 29761: iterator 29761: 29761: insert(const_iterator __position, const bool& __x) 29761: 29761: 29761: 29761: { 29761: const difference_type __n = __position - begin(); 29761: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() 29761: && __position == end()) 29761: *this->_M_impl._M_finish++ = __x; 29761: else 29761: _M_insert_aux(__position._M_const_cast(), __x); 29761: return begin() + __n; 29761: } 29761: 29761: 29761: __attribute__ ((__deprecated__ ("use '" "insert(position, false)" "' instead"))) 29761: iterator 29761: insert(const_iterator __position) 29761: { return this->insert(__position._M_const_cast(), false); } 29761: 29761: 29761: 29761: template> 29761: 29761: iterator 29761: insert(const_iterator __position, 29761: _InputIterator __first, _InputIterator __last) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_insert_range(__position._M_const_cast(), 29761: __first, __last, 29761: std::__iterator_category(__first)); 29761: return begin() + __offset; 29761: } 29761: # 1237 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: iterator 29761: insert(const_iterator __position, size_type __n, const bool& __x) 29761: { 29761: difference_type __offset = __position - cbegin(); 29761: _M_fill_insert(__position._M_const_cast(), __n, __x); 29761: return begin() + __offset; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: insert(const_iterator __p, initializer_list __l) 29761: { return this->insert(__p, __l.begin(), __l.end()); } 29761: 29761: 29761: 29761: void 29761: pop_back() 29761: { --this->_M_impl._M_finish; } 29761: 29761: 29761: iterator 29761: 29761: erase(const_iterator __position) 29761: 29761: 29761: 29761: { return _M_erase(__position._M_const_cast()); } 29761: 29761: 29761: iterator 29761: 29761: erase(const_iterator __first, const_iterator __last) 29761: 29761: 29761: 29761: { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } 29761: 29761: 29761: void 29761: resize(size_type __new_size, bool __x = bool()) 29761: { 29761: if (__new_size < size()) 29761: _M_erase_at_end(begin() + difference_type(__new_size)); 29761: else 29761: insert(end(), __new_size - size(), __x); 29761: } 29761: 29761: 29761: 29761: void 29761: shrink_to_fit() 29761: { _M_shrink_to_fit(); } 29761: 29761: 29761: 29761: void 29761: flip() noexcept 29761: { 29761: _Bit_type * const __end = this->_M_impl._M_end_addr(); 29761: for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) 29761: *__p = ~*__p; 29761: } 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_erase_at_end(begin()); } 29761: 29761: 29761: template 29761: 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_back(_Args&&... __args) 29761: { 29761: push_back(bool(std::forward<_Args>(__args)...)); 29761: 29761: return back(); 29761: 29761: } 29761: 29761: template 29761: 29761: iterator 29761: emplace(const_iterator __pos, _Args&&... __args) 29761: { return insert(__pos, bool(std::forward<_Args>(__args)...)); } 29761: 29761: 29761: protected: 29761: 29761: 29761: iterator 29761: _M_copy_aligned(const_iterator __first, const_iterator __last, 29761: iterator __result) 29761: { 29761: _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); 29761: return std::copy(const_iterator(__last._M_p, 0), __last, 29761: iterator(__q, 0)); 29761: } 29761: 29761: 29761: void 29761: _M_initialize(size_type __n) 29761: { 29761: if (__n) 29761: { 29761: _Bit_pointer __q = this->_M_allocate(__n); 29761: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 29761: iterator __start = iterator(std::__addressof(*__q), 0); 29761: this->_M_impl._M_start = __start; 29761: this->_M_impl._M_finish = __start + difference_type(__n); 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_initialize_value(bool __x) noexcept 29761: { 29761: if (_Bit_type* __p = this->_M_impl._M_start._M_p) 29761: __fill_bvector_n(__p, this->_M_impl._M_end_addr() - __p, __x); 29761: } 29761: 29761: 29761: void 29761: _M_reallocate(size_type __n); 29761: 29761: 29761: 29761: bool 29761: _M_shrink_to_fit(); 29761: # 1398 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: template 29761: 29761: void 29761: _M_initialize_range(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: for (; __first != __last; ++__first) 29761: push_back(*__first); 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __n = std::distance(__first, __last); 29761: _M_initialize(__n); 29761: std::copy(__first, __last, begin()); 29761: } 29761: # 1434 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: void 29761: _M_fill_assign(size_t __n, bool __x) 29761: { 29761: if (__n > size()) 29761: { 29761: _M_initialize_value(__x); 29761: insert(end(), __n - size(), __x); 29761: } 29761: else 29761: { 29761: _M_erase_at_end(begin() + __n); 29761: _M_initialize_value(__x); 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: iterator __cur = begin(); 29761: for (; __first != __last && __cur != end(); ++__cur, (void)++__first) 29761: *__cur = *__first; 29761: if (__first == __last) 29761: _M_erase_at_end(__cur); 29761: else 29761: insert(end(), __first, __last); 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __len = std::distance(__first, __last); 29761: if (__len < size()) 29761: _M_erase_at_end(std::copy(__first, __last, begin())); 29761: else 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, size()); 29761: std::copy(__first, __mid, begin()); 29761: insert(end(), __mid, __last); 29761: } 29761: } 29761: # 1501 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: 29761: void 29761: _M_fill_insert(iterator __position, size_type __n, bool __x); 29761: 29761: template 29761: 29761: void 29761: _M_insert_range(iterator __pos, _InputIterator __first, 29761: _InputIterator __last, std::input_iterator_tag) 29761: { 29761: for (; __first != __last; ++__first) 29761: { 29761: __pos = insert(__pos, *__first); 29761: ++__pos; 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: _M_insert_range(iterator __position, _ForwardIterator __first, 29761: _ForwardIterator __last, std::forward_iterator_tag); 29761: 29761: 29761: void 29761: _M_insert_aux(iterator __position, bool __x); 29761: 29761: 29761: size_type 29761: _M_check_len(size_type __n, const char* __s) const 29761: { 29761: if (max_size() - size() < __n) 29761: __throw_length_error((__s)); 29761: 29761: const size_type __len = size() + std::max(size(), __n); 29761: return (__len < size() || __len > max_size()) ? max_size() : __len; 29761: } 29761: 29761: 29761: void 29761: _M_erase_at_end(iterator __pos) 29761: { this->_M_impl._M_finish = __pos; } 29761: 29761: 29761: iterator 29761: _M_erase(iterator __pos); 29761: 29761: 29761: iterator 29761: _M_erase(iterator __first, iterator __last); 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void data() = delete; 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: inline void 29761: __fill_bvector(_Bit_type* __v, unsigned int __first, unsigned int __last, 29761: bool __x) noexcept 29761: { 29761: const _Bit_type __fmask = ~0ul << __first; 29761: const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); 29761: const _Bit_type __mask = __fmask & __lmask; 29761: 29761: if (__x) 29761: *__v |= __mask; 29761: else 29761: *__v &= ~__mask; 29761: } 29761: 29761: 29761: __attribute__((__nonnull__)) 29761: 29761: inline void 29761: __fill_bvector_n(_Bit_type* __p, size_t __n, bool __x) noexcept 29761: { 29761: # 1597 "/usr/include/c++/14/bits/stl_bvector.h" 3 29761: __builtin_memset(__p, __x ? ~0 : 0, __n * sizeof(_Bit_type)); 29761: } 29761: 29761: 29761: 29761: inline void 29761: __fill_a1(std::_Bit_iterator __first, 29761: std::_Bit_iterator __last, const bool& __x) 29761: { 29761: if (__first._M_p != __last._M_p) 29761: { 29761: _Bit_type* __first_p = __first._M_p; 29761: if (__first._M_offset != 0) 29761: __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); 29761: 29761: __fill_bvector_n(__first_p, __last._M_p - __first_p, __x); 29761: 29761: if (__last._M_offset != 0) 29761: __fill_bvector(__last._M_p, 0, __last._M_offset, __x); 29761: } 29761: else if (__first._M_offset != __last._M_offset) 29761: __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: struct hash> 29761: : public __hash_base> 29761: { 29761: size_t 29761: operator()(const std::vector&) const noexcept; 29761: }; 29761: 29761: 29761: 29761: } 29761: # 68 "/usr/include/c++/14/vector" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/vector.tcc" 1 3 29761: # 59 "/usr/include/c++/14/bits/vector.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: reserve(size_type __n) 29761: { 29761: if (__n > this->max_size()) 29761: __throw_length_error(("vector::reserve")); 29761: if (this->capacity() < __n) 29761: { 29761: const size_type __old_size = size(); 29761: pointer __tmp; 29761: 29761: if constexpr (_S_use_relocate()) 29761: { 29761: __tmp = this->_M_allocate(__n); 29761: _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, 29761: __tmp, _M_get_Tp_allocator()); 29761: } 29761: else 29761: 29761: { 29761: __tmp = _M_allocate_and_copy(__n, 29761: std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), 29761: std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); 29761: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: } 29761: ; 29761: _M_deallocate(this->_M_impl._M_start, 29761: this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_start); 29761: this->_M_impl._M_start = __tmp; 29761: this->_M_impl._M_finish = __tmp + __old_size; 29761: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; 29761: } 29761: } 29761: 29761: 29761: template 29761: template 29761: 29761: 29761: typename vector<_Tp, _Alloc>::reference 29761: 29761: 29761: 29761: vector<_Tp, _Alloc>:: 29761: emplace_back(_Args&&... __args) 29761: { 29761: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: std::forward<_Args>(__args)...); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: } 29761: else 29761: _M_realloc_append(std::forward<_Args>(__args)...); 29761: 29761: return back(); 29761: 29761: } 29761: 29761: 29761: template 29761: 29761: typename vector<_Tp, _Alloc>::iterator 29761: vector<_Tp, _Alloc>:: 29761: 29761: insert(const_iterator __position, const value_type& __x) 29761: 29761: 29761: 29761: { 29761: const size_type __n = __position - begin(); 29761: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__position != const_iterator())) std::__glibcxx_assert_fail(); } while (false); 29761: if (!(__position != const_iterator())) 29761: __builtin_unreachable(); 29761: 29761: if (__position == end()) 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: __x); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: } 29761: else 29761: { 29761: 29761: const auto __pos = begin() + (__position - cbegin()); 29761: 29761: 29761: _Temporary_value __x_copy(this, __x); 29761: _M_insert_aux(__pos, std::move(__x_copy._M_val())); 29761: 29761: 29761: 29761: } 29761: } 29761: else 29761: 29761: _M_realloc_insert(begin() + (__position - cbegin()), __x); 29761: 29761: 29761: 29761: 29761: return iterator(this->_M_impl._M_start + __n); 29761: } 29761: 29761: template 29761: 29761: typename vector<_Tp, _Alloc>::iterator 29761: vector<_Tp, _Alloc>:: 29761: _M_erase(iterator __position) 29761: { 29761: if (__position + 1 != end()) 29761: std::move(__position + 1, end(), __position); 29761: --this->_M_impl._M_finish; 29761: _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); 29761: ; 29761: return __position; 29761: } 29761: 29761: template 29761: 29761: typename vector<_Tp, _Alloc>::iterator 29761: vector<_Tp, _Alloc>:: 29761: _M_erase(iterator __first, iterator __last) 29761: { 29761: if (__first != __last) 29761: { 29761: if (__last != end()) 29761: std::move(__last, end(), __first); 29761: _M_erase_at_end(__first.base() + (end() - __last)); 29761: } 29761: return __first; 29761: } 29761: 29761: template 29761: 29761: vector<_Tp, _Alloc>& 29761: vector<_Tp, _Alloc>:: 29761: operator=(const vector<_Tp, _Alloc>& __x) 29761: { 29761: if (std::__addressof(__x) != this) 29761: { 29761: ; 29761: 29761: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: if (!_Alloc_traits::_S_always_equal() 29761: && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) 29761: { 29761: 29761: this->clear(); 29761: _M_deallocate(this->_M_impl._M_start, 29761: this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_start); 29761: this->_M_impl._M_start = nullptr; 29761: this->_M_impl._M_finish = nullptr; 29761: this->_M_impl._M_end_of_storage = nullptr; 29761: } 29761: std::__alloc_on_copy(_M_get_Tp_allocator(), 29761: __x._M_get_Tp_allocator()); 29761: } 29761: 29761: const size_type __xlen = __x.size(); 29761: if (__xlen > capacity()) 29761: { 29761: pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), 29761: __x.end()); 29761: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: _M_deallocate(this->_M_impl._M_start, 29761: this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_start); 29761: this->_M_impl._M_start = __tmp; 29761: this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; 29761: } 29761: else if (size() >= __xlen) 29761: { 29761: std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), 29761: end(), _M_get_Tp_allocator()); 29761: } 29761: else 29761: { 29761: std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), 29761: this->_M_impl._M_start); 29761: std::__uninitialized_copy_a(__x._M_impl._M_start + size(), 29761: __x._M_impl._M_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: } 29761: this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_fill_assign(size_t __n, const value_type& __val) 29761: { 29761: const size_type __sz = size(); 29761: if (__n > capacity()) 29761: { 29761: if (__n <= __sz) 29761: __builtin_unreachable(); 29761: vector __tmp(__n, __val, _M_get_Tp_allocator()); 29761: __tmp._M_impl._M_swap_data(this->_M_impl); 29761: } 29761: else if (__n > __sz) 29761: { 29761: std::fill(begin(), end(), __val); 29761: const size_type __add = __n - __sz; 29761: ; 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_fill_n_a(this->_M_impl._M_finish, 29761: __add, __val, _M_get_Tp_allocator()); 29761: ; 29761: } 29761: else 29761: _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_assign_aux(_InputIterator __first, _InputIterator __last, 29761: std::input_iterator_tag) 29761: { 29761: pointer __cur(this->_M_impl._M_start); 29761: for (; __first != __last && __cur != this->_M_impl._M_finish; 29761: ++__cur, (void)++__first) 29761: *__cur = *__first; 29761: if (__first == __last) 29761: _M_erase_at_end(__cur); 29761: else 29761: _M_range_insert(end(), __first, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, 29761: std::forward_iterator_tag) 29761: { 29761: const size_type __sz = size(); 29761: const size_type __len = std::distance(__first, __last); 29761: 29761: if (__len > capacity()) 29761: { 29761: if (__len <= __sz) 29761: __builtin_unreachable(); 29761: 29761: _S_check_init_len(__len, _M_get_Tp_allocator()); 29761: pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); 29761: std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: ; 29761: _M_deallocate(this->_M_impl._M_start, 29761: this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_start); 29761: this->_M_impl._M_start = __tmp; 29761: this->_M_impl._M_finish = this->_M_impl._M_start + __len; 29761: this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; 29761: } 29761: else if (__sz >= __len) 29761: _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); 29761: else 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, __sz); 29761: std::copy(__first, __mid, this->_M_impl._M_start); 29761: const size_type __attribute__((__unused__)) __n = __len - __sz; 29761: ; 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_copy_a(__mid, __last, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: ; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: auto 29761: vector<_Tp, _Alloc>:: 29761: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator 29761: { 29761: const auto __n = __position - cbegin(); 29761: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29761: if (__position == cend()) 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: std::move(__v)); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: } 29761: else 29761: _M_insert_aux(begin() + __n, std::move(__v)); 29761: else 29761: _M_realloc_insert(begin() + __n, std::move(__v)); 29761: 29761: return iterator(this->_M_impl._M_start + __n); 29761: } 29761: 29761: template 29761: template 29761: 29761: auto 29761: vector<_Tp, _Alloc>:: 29761: _M_emplace_aux(const_iterator __position, _Args&&... __args) 29761: -> iterator 29761: { 29761: const auto __n = __position - cbegin(); 29761: if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) 29761: if (__position == cend()) 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: std::forward<_Args>(__args)...); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: _Temporary_value __tmp(this, std::forward<_Args>(__args)...); 29761: _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); 29761: } 29761: else 29761: _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); 29761: 29761: return iterator(this->_M_impl._M_start + __n); 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_insert_aux(iterator __position, _Arg&& __arg) 29761: 29761: 29761: 29761: 29761: 29761: 29761: { 29761: ; 29761: _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, 29761: std::move(*(this->_M_impl._M_finish - 1))); 29761: ++this->_M_impl._M_finish; 29761: ; 29761: 29761: 29761: 29761: std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) 29761: 29761: ; 29761: 29761: 29761: 29761: *__position = std::forward<_Arg>(__arg); 29761: 29761: } 29761: 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_realloc_insert(iterator __position, _Args&&... __args) 29761: 29761: 29761: 29761: 29761: 29761: 29761: { 29761: const size_type __len = _M_check_len(1u, "vector::_M_realloc_insert"); 29761: if (__len <= 0) 29761: __builtin_unreachable (); 29761: pointer __old_start = this->_M_impl._M_start; 29761: pointer __old_finish = this->_M_impl._M_finish; 29761: const size_type __elems_before = __position - begin(); 29761: pointer __new_start(this->_M_allocate(__len)); 29761: pointer __new_finish(__new_start); 29761: 29761: 29761: struct _Guard 29761: { 29761: pointer _M_storage; 29761: size_type _M_len; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29761: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard() 29761: { 29761: if (_M_storage) 29761: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29761: deallocate(_M_alloc, _M_storage, _M_len); 29761: } 29761: 29761: private: 29761: _Guard(const _Guard&); 29761: }; 29761: 29761: { 29761: _Guard __guard(__new_start, __len, _M_impl); 29761: # 505 "/usr/include/c++/14/bits/vector.tcc" 3 29761: _Alloc_traits::construct(this->_M_impl, 29761: std::__to_address(__new_start + __elems_before), 29761: std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if constexpr (_S_use_relocate()) 29761: { 29761: 29761: __new_finish = _S_relocate(__old_start, __position.base(), 29761: __new_start, _M_get_Tp_allocator()); 29761: ++__new_finish; 29761: __new_finish = _S_relocate(__position.base(), __old_finish, 29761: __new_finish, _M_get_Tp_allocator()); 29761: } 29761: else 29761: 29761: { 29761: 29761: struct _Guard_elts 29761: { 29761: pointer _M_first, _M_last; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 29761: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard_elts() 29761: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29761: 29761: private: 29761: _Guard_elts(const _Guard_elts&); 29761: }; 29761: 29761: 29761: _Guard_elts __guard_elts(__new_start + __elems_before, _M_impl); 29761: 29761: __new_finish = std::__uninitialized_move_if_noexcept_a( 29761: __old_start, __position.base(), 29761: __new_start, _M_get_Tp_allocator()); 29761: 29761: ++__new_finish; 29761: 29761: __guard_elts._M_first = __new_start; 29761: 29761: __new_finish = std::__uninitialized_move_if_noexcept_a( 29761: __position.base(), __old_finish, 29761: __new_finish, _M_get_Tp_allocator()); 29761: 29761: 29761: __guard_elts._M_first = __old_start; 29761: __guard_elts._M_last = __old_finish; 29761: } 29761: __guard._M_storage = __old_start; 29761: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29761: } 29761: 29761: 29761: 29761: this->_M_impl._M_start = __new_start; 29761: this->_M_impl._M_finish = __new_finish; 29761: this->_M_impl._M_end_of_storage = __new_start + __len; 29761: } 29761: 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_realloc_append(_Args&&... __args) 29761: 29761: 29761: 29761: 29761: 29761: 29761: { 29761: const size_type __len = _M_check_len(1u, "vector::_M_realloc_append"); 29761: if (__len <= 0) 29761: __builtin_unreachable (); 29761: pointer __old_start = this->_M_impl._M_start; 29761: pointer __old_finish = this->_M_impl._M_finish; 29761: const size_type __elems = end() - begin(); 29761: pointer __new_start(this->_M_allocate(__len)); 29761: pointer __new_finish(__new_start); 29761: 29761: 29761: struct _Guard 29761: { 29761: pointer _M_storage; 29761: size_type _M_len; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29761: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard() 29761: { 29761: if (_M_storage) 29761: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29761: deallocate(_M_alloc, _M_storage, _M_len); 29761: } 29761: 29761: private: 29761: _Guard(const _Guard&); 29761: }; 29761: 29761: { 29761: _Guard __guard(__new_start, __len, _M_impl); 29761: # 634 "/usr/include/c++/14/bits/vector.tcc" 3 29761: _Alloc_traits::construct(this->_M_impl, 29761: std::__to_address(__new_start + __elems), 29761: std::forward<_Args>(__args)...); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if constexpr (_S_use_relocate()) 29761: { 29761: 29761: __new_finish = _S_relocate(__old_start, __old_finish, 29761: __new_start, _M_get_Tp_allocator()); 29761: ++__new_finish; 29761: } 29761: else 29761: 29761: { 29761: 29761: struct _Guard_elts 29761: { 29761: pointer _M_first, _M_last; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard_elts(pointer __elt, _Tp_alloc_type& __a) 29761: : _M_first(__elt), _M_last(__elt + 1), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard_elts() 29761: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29761: 29761: private: 29761: _Guard_elts(const _Guard_elts&); 29761: }; 29761: 29761: 29761: _Guard_elts __guard_elts(__new_start + __elems, _M_impl); 29761: 29761: __new_finish = std::__uninitialized_move_if_noexcept_a( 29761: __old_start, __old_finish, 29761: __new_start, _M_get_Tp_allocator()); 29761: 29761: ++__new_finish; 29761: 29761: 29761: __guard_elts._M_first = __old_start; 29761: __guard_elts._M_last = __old_finish; 29761: } 29761: __guard._M_storage = __old_start; 29761: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29761: } 29761: 29761: 29761: 29761: this->_M_impl._M_start = __new_start; 29761: this->_M_impl._M_finish = __new_finish; 29761: this->_M_impl._M_end_of_storage = __new_start + __len; 29761: } 29761: 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) 29761: { 29761: if (__n != 0) 29761: { 29761: if (size_type(this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_finish) >= __n) 29761: { 29761: 29761: 29761: 29761: _Temporary_value __tmp(this, __x); 29761: value_type& __x_copy = __tmp._M_val(); 29761: 29761: const size_type __elems_after = end() - __position; 29761: pointer __old_finish(this->_M_impl._M_finish); 29761: if (__elems_after > __n) 29761: { 29761: ; 29761: std::__uninitialized_move_a(__old_finish - __n, 29761: __old_finish, 29761: __old_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish += __n; 29761: ; 29761: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 29761: ; 29761: std::fill(__position.base(), __position.base() + __n, 29761: __x_copy); 29761: } 29761: else 29761: { 29761: ; 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_fill_n_a(__old_finish, 29761: __n - __elems_after, 29761: __x_copy, 29761: _M_get_Tp_allocator()); 29761: ; 29761: std::__uninitialized_move_a(__position.base(), __old_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish += __elems_after; 29761: ; 29761: std::fill(__position.base(), __old_finish, __x_copy); 29761: } 29761: } 29761: else 29761: { 29761: 29761: 29761: pointer __old_start = this->_M_impl._M_start; 29761: pointer __old_finish = this->_M_impl._M_finish; 29761: const pointer __pos = __position.base(); 29761: 29761: const size_type __len = 29761: _M_check_len(__n, "vector::_M_fill_insert"); 29761: const size_type __elems_before = __pos - __old_start; 29761: pointer __new_start(this->_M_allocate(__len)); 29761: pointer __new_finish(__new_start); 29761: try 29761: { 29761: 29761: std::__uninitialized_fill_n_a(__new_start + __elems_before, 29761: __n, __x, 29761: _M_get_Tp_allocator()); 29761: __new_finish = pointer(); 29761: 29761: __new_finish 29761: = std::__uninitialized_move_if_noexcept_a 29761: (__old_start, __pos, __new_start, _M_get_Tp_allocator()); 29761: 29761: __new_finish += __n; 29761: 29761: __new_finish 29761: = std::__uninitialized_move_if_noexcept_a 29761: (__pos, __old_finish, __new_finish, _M_get_Tp_allocator()); 29761: } 29761: catch(...) 29761: { 29761: if (!__new_finish) 29761: std::_Destroy(__new_start + __elems_before, 29761: __new_start + __elems_before + __n, 29761: _M_get_Tp_allocator()); 29761: else 29761: std::_Destroy(__new_start, __new_finish, 29761: _M_get_Tp_allocator()); 29761: _M_deallocate(__new_start, __len); 29761: throw; 29761: } 29761: std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); 29761: ; 29761: _M_deallocate(__old_start, 29761: this->_M_impl._M_end_of_storage - __old_start); 29761: this->_M_impl._M_start = __new_start; 29761: this->_M_impl._M_finish = __new_finish; 29761: this->_M_impl._M_end_of_storage = __new_start + __len; 29761: } 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_default_append(size_type __n) 29761: { 29761: if (__n != 0) 29761: { 29761: const size_type __size = size(); 29761: size_type __navail = size_type(this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_finish); 29761: 29761: if (__size > max_size() || __navail > max_size() - __size) 29761: __builtin_unreachable(); 29761: 29761: if (__navail >= __n) 29761: { 29761: ; 29761: this->_M_impl._M_finish = 29761: std::__uninitialized_default_n_a(this->_M_impl._M_finish, 29761: __n, _M_get_Tp_allocator()); 29761: ; 29761: } 29761: else 29761: { 29761: 29761: 29761: pointer __old_start = this->_M_impl._M_start; 29761: pointer __old_finish = this->_M_impl._M_finish; 29761: 29761: const size_type __len = 29761: _M_check_len(__n, "vector::_M_default_append"); 29761: pointer __new_start(this->_M_allocate(__len)); 29761: 29761: 29761: struct _Guard 29761: { 29761: pointer _M_storage; 29761: size_type _M_len; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard(pointer __s, size_type __l, _Tp_alloc_type& __a) 29761: : _M_storage(__s), _M_len(__l), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard() 29761: { 29761: if (_M_storage) 29761: __gnu_cxx::__alloc_traits<_Tp_alloc_type>:: 29761: deallocate(_M_alloc, _M_storage, _M_len); 29761: } 29761: 29761: private: 29761: _Guard(const _Guard&); 29761: }; 29761: 29761: { 29761: _Guard __guard(__new_start, __len, _M_impl); 29761: 29761: std::__uninitialized_default_n_a(__new_start + __size, __n, 29761: _M_get_Tp_allocator()); 29761: 29761: if constexpr (_S_use_relocate()) 29761: { 29761: _S_relocate(__old_start, __old_finish, 29761: __new_start, _M_get_Tp_allocator()); 29761: } 29761: else 29761: { 29761: 29761: struct _Guard_elts 29761: { 29761: pointer _M_first, _M_last; 29761: _Tp_alloc_type& _M_alloc; 29761: 29761: 29761: _Guard_elts(pointer __first, size_type __n, 29761: _Tp_alloc_type& __a) 29761: : _M_first(__first), _M_last(__first + __n), _M_alloc(__a) 29761: { } 29761: 29761: 29761: ~_Guard_elts() 29761: { std::_Destroy(_M_first, _M_last, _M_alloc); } 29761: 29761: private: 29761: _Guard_elts(const _Guard_elts&); 29761: }; 29761: _Guard_elts __guard_elts(__new_start + __size, __n, _M_impl); 29761: 29761: std::__uninitialized_move_if_noexcept_a( 29761: __old_start, __old_finish, __new_start, 29761: _M_get_Tp_allocator()); 29761: 29761: __guard_elts._M_first = __old_start; 29761: __guard_elts._M_last = __old_finish; 29761: } 29761: ; 29761: __guard._M_storage = __old_start; 29761: __guard._M_len = this->_M_impl._M_end_of_storage - __old_start; 29761: } 29761: 29761: 29761: 29761: this->_M_impl._M_start = __new_start; 29761: this->_M_impl._M_finish = __new_start + __size + __n; 29761: this->_M_impl._M_end_of_storage = __new_start + __len; 29761: } 29761: } 29761: } 29761: 29761: template 29761: 29761: bool 29761: vector<_Tp, _Alloc>:: 29761: _M_shrink_to_fit() 29761: { 29761: if (capacity() == size()) 29761: return false; 29761: ; 29761: return std::__shrink_to_fit_aux::_S_do_it(*this); 29761: } 29761: 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_range_insert(iterator __pos, _InputIterator __first, 29761: _InputIterator __last, std::input_iterator_tag) 29761: { 29761: if (__pos == end()) 29761: { 29761: for (; __first != __last; ++__first) 29761: insert(end(), *__first); 29761: } 29761: else if (__first != __last) 29761: { 29761: vector __tmp(__first, __last, _M_get_Tp_allocator()); 29761: insert(__pos, 29761: std::make_move_iterator(__tmp.begin()), 29761: std::make_move_iterator(__tmp.end())); 29761: } 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: vector<_Tp, _Alloc>:: 29761: _M_range_insert(iterator __position, _ForwardIterator __first, 29761: _ForwardIterator __last, std::forward_iterator_tag) 29761: { 29761: if (__first != __last) 29761: { 29761: const size_type __n = std::distance(__first, __last); 29761: if (size_type(this->_M_impl._M_end_of_storage 29761: - this->_M_impl._M_finish) >= __n) 29761: { 29761: const size_type __elems_after = end() - __position; 29761: pointer __old_finish(this->_M_impl._M_finish); 29761: if (__elems_after > __n) 29761: { 29761: ; 29761: std::__uninitialized_move_a(this->_M_impl._M_finish - __n, 29761: this->_M_impl._M_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish += __n; 29761: ; 29761: std::move_backward(__position.base(), __old_finish - __n, __old_finish) 29761: ; 29761: std::copy(__first, __last, __position); 29761: } 29761: else 29761: { 29761: _ForwardIterator __mid = __first; 29761: std::advance(__mid, __elems_after); 29761: ; 29761: std::__uninitialized_copy_a(__mid, __last, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish += __n - __elems_after; 29761: ; 29761: std::__uninitialized_move_a(__position.base(), 29761: __old_finish, 29761: this->_M_impl._M_finish, 29761: _M_get_Tp_allocator()); 29761: this->_M_impl._M_finish += __elems_after; 29761: ; 29761: std::copy(__first, __mid, __position); 29761: } 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: pointer __old_start = this->_M_impl._M_start; 29761: pointer __old_finish = this->_M_impl._M_finish; 29761: 29761: const size_type __len = 29761: _M_check_len(__n, "vector::_M_range_insert"); 29761: 29761: 29761: 29761: 29761: 29761: pointer __new_start(this->_M_allocate(__len)); 29761: pointer __new_finish(__new_start); 29761: try 29761: { 29761: __new_finish 29761: = std::__uninitialized_move_if_noexcept_a 29761: (__old_start, __position.base(), 29761: __new_start, _M_get_Tp_allocator()); 29761: __new_finish 29761: = std::__uninitialized_copy_a(__first, __last, 29761: __new_finish, 29761: _M_get_Tp_allocator()); 29761: __new_finish 29761: = std::__uninitialized_move_if_noexcept_a 29761: (__position.base(), __old_finish, 29761: __new_finish, _M_get_Tp_allocator()); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__new_start, __new_finish, 29761: _M_get_Tp_allocator()); 29761: _M_deallocate(__new_start, __len); 29761: throw; 29761: } 29761: std::_Destroy(__old_start, __old_finish, 29761: _M_get_Tp_allocator()); 29761: ; 29761: _M_deallocate(__old_start, 29761: this->_M_impl._M_end_of_storage - __old_start); 29761: this->_M_impl._M_start = __new_start; 29761: this->_M_impl._M_finish = __new_finish; 29761: this->_M_impl._M_end_of_storage = __new_start + __len; 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: vector:: 29761: _M_reallocate(size_type __n) 29761: { 29761: _Bit_pointer __q = this->_M_allocate(__n); 29761: iterator __start(std::__addressof(*__q), 0); 29761: iterator __finish(_M_copy_aligned(begin(), end(), __start)); 29761: this->_M_deallocate(); 29761: this->_M_impl._M_start = __start; 29761: this->_M_impl._M_finish = __finish; 29761: this->_M_impl._M_end_of_storage = __q + _S_nword(__n); 29761: } 29761: 29761: template 29761: 29761: void 29761: vector:: 29761: _M_fill_insert(iterator __position, size_type __n, bool __x) 29761: { 29761: if (__n == 0) 29761: return; 29761: if (capacity() - size() >= __n) 29761: { 29761: std::copy_backward(__position, end(), 29761: this->_M_impl._M_finish + difference_type(__n)); 29761: std::fill(__position, __position + difference_type(__n), __x); 29761: this->_M_impl._M_finish += difference_type(__n); 29761: } 29761: else 29761: { 29761: const size_type __len = 29761: _M_check_len(__n, "vector::_M_fill_insert"); 29761: _Bit_pointer __q = this->_M_allocate(__len); 29761: iterator __start(std::__addressof(*__q), 0); 29761: iterator __i = _M_copy_aligned(begin(), __position, __start); 29761: std::fill(__i, __i + difference_type(__n), __x); 29761: iterator __finish = std::copy(__position, end(), 29761: __i + difference_type(__n)); 29761: this->_M_deallocate(); 29761: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29761: this->_M_impl._M_start = __start; 29761: this->_M_impl._M_finish = __finish; 29761: } 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: vector:: 29761: _M_insert_range(iterator __position, _ForwardIterator __first, 29761: _ForwardIterator __last, std::forward_iterator_tag) 29761: { 29761: if (__first != __last) 29761: { 29761: size_type __n = std::distance(__first, __last); 29761: if (capacity() - size() >= __n) 29761: { 29761: std::copy_backward(__position, end(), 29761: this->_M_impl._M_finish 29761: + difference_type(__n)); 29761: std::copy(__first, __last, __position); 29761: this->_M_impl._M_finish += difference_type(__n); 29761: } 29761: else 29761: { 29761: const size_type __len = 29761: _M_check_len(__n, "vector::_M_insert_range"); 29761: const iterator __begin = begin(), __end = end(); 29761: _Bit_pointer __q = this->_M_allocate(__len); 29761: iterator __start(std::__addressof(*__q), 0); 29761: iterator __i = _M_copy_aligned(__begin, __position, __start); 29761: __i = std::copy(__first, __last, __i); 29761: iterator __finish = std::copy(__position, __end, __i); 29761: this->_M_deallocate(); 29761: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29761: this->_M_impl._M_start = __start; 29761: this->_M_impl._M_finish = __finish; 29761: } 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: vector:: 29761: _M_insert_aux(iterator __position, bool __x) 29761: { 29761: if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) 29761: { 29761: std::copy_backward(__position, this->_M_impl._M_finish, 29761: this->_M_impl._M_finish + 1); 29761: *__position = __x; 29761: ++this->_M_impl._M_finish; 29761: } 29761: else 29761: { 29761: const size_type __len = 29761: _M_check_len(size_type(1), "vector::_M_insert_aux"); 29761: _Bit_pointer __q = this->_M_allocate(__len); 29761: iterator __start(std::__addressof(*__q), 0); 29761: iterator __i = _M_copy_aligned(begin(), __position, __start); 29761: *__i++ = __x; 29761: iterator __finish = std::copy(__position, end(), __i); 29761: this->_M_deallocate(); 29761: this->_M_impl._M_end_of_storage = __q + _S_nword(__len); 29761: this->_M_impl._M_start = __start; 29761: this->_M_impl._M_finish = __finish; 29761: } 29761: } 29761: 29761: template 29761: 29761: typename vector::iterator 29761: vector:: 29761: _M_erase(iterator __position) 29761: { 29761: if (__position + 1 != end()) 29761: std::copy(__position + 1, end(), __position); 29761: --this->_M_impl._M_finish; 29761: return __position; 29761: } 29761: 29761: template 29761: 29761: typename vector::iterator 29761: vector:: 29761: _M_erase(iterator __first, iterator __last) 29761: { 29761: if (__first != __last) 29761: _M_erase_at_end(std::copy(__last, end(), __first)); 29761: return __first; 29761: } 29761: 29761: 29761: template 29761: 29761: bool 29761: vector:: 29761: _M_shrink_to_fit() 29761: { 29761: if (capacity() - size() < int(_S_word_bit)) 29761: return false; 29761: try 29761: { 29761: if (size_type __n = size()) 29761: _M_reallocate(__n); 29761: else 29761: { 29761: this->_M_deallocate(); 29761: this->_M_impl._M_reset(); 29761: } 29761: return true; 29761: } 29761: catch(...) 29761: { return false; } 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: size_t 29761: hash>:: 29761: operator()(const std::vector& __b) const noexcept 29761: { 29761: size_t __hash = 0; 29761: const size_t __words = __b.size() / _S_word_bit; 29761: if (__words) 29761: { 29761: const size_t __clength = __words * sizeof(_Bit_type); 29761: __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); 29761: } 29761: 29761: const size_t __extrabits = __b.size() % _S_word_bit; 29761: if (__extrabits) 29761: { 29761: _Bit_type __hiword = *__b._M_impl._M_finish._M_p; 29761: __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); 29761: 29761: const size_t __clength 29761: = (__extrabits + 8 - 1) / 8; 29761: if (__words) 29761: __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); 29761: else 29761: __hash = std::_Hash_impl::hash(&__hiword, __clength); 29761: } 29761: 29761: return __hash; 29761: } 29761: 29761: 29761: } 29761: # 73 "/usr/include/c++/14/vector" 2 3 29761: # 84 "/usr/include/c++/14/vector" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 85 "/usr/include/c++/14/vector" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr { 29761: template 29761: using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 65 "/usr/include/c++/14/functional" 2 3 29761: # 1 "/usr/include/c++/14/array" 1 3 29761: # 32 "/usr/include/c++/14/array" 3 29761: 29761: # 33 "/usr/include/c++/14/array" 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/compare" 1 3 29761: # 33 "/usr/include/c++/14/compare" 3 29761: 29761: # 34 "/usr/include/c++/14/compare" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 37 "/usr/include/c++/14/compare" 2 3 29761: # 39 "/usr/include/c++/14/array" 2 3 29761: # 52 "/usr/include/c++/14/array" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 53 "/usr/include/c++/14/array" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: struct __array_traits 29761: { 29761: using _Type = _Tp[_Nm]; 29761: using _Is_swappable = __is_swappable<_Tp>; 29761: using _Is_nothrow_swappable = __is_nothrow_swappable<_Tp>; 29761: }; 29761: 29761: template 29761: struct __array_traits<_Tp, 0> 29761: { 29761: 29761: struct _Type 29761: { 29761: 29761: __attribute__((__always_inline__,__noreturn__)) 29761: _Tp& operator[](size_t) const noexcept { __builtin_trap(); } 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: constexpr explicit operator _Tp*() const noexcept { return nullptr; } 29761: }; 29761: 29761: using _Is_swappable = true_type; 29761: using _Is_nothrow_swappable = true_type; 29761: }; 29761: # 99 "/usr/include/c++/14/array" 3 29761: template 29761: struct array 29761: { 29761: typedef _Tp value_type; 29761: typedef value_type* pointer; 29761: typedef const value_type* const_pointer; 29761: typedef value_type& reference; 29761: typedef const value_type& const_reference; 29761: typedef value_type* iterator; 29761: typedef const value_type* const_iterator; 29761: typedef std::size_t size_type; 29761: typedef std::ptrdiff_t difference_type; 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: 29761: 29761: typename __array_traits<_Tp, _Nm>::_Type _M_elems; 29761: 29761: 29761: 29761: 29761: void 29761: fill(const value_type& __u) 29761: { std::fill_n(begin(), size(), __u); } 29761: 29761: void 29761: swap(array& __other) 29761: noexcept(__array_traits<_Tp, _Nm>::_Is_nothrow_swappable::value) 29761: { std::swap_ranges(begin(), end(), __other.begin()); } 29761: 29761: 29761: [[__gnu__::__const__, __nodiscard__]] 29761: constexpr iterator 29761: begin() noexcept 29761: { return iterator(data()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_iterator 29761: begin() const noexcept 29761: { return const_iterator(data()); } 29761: 29761: [[__gnu__::__const__, __nodiscard__]] 29761: constexpr iterator 29761: end() noexcept 29761: { return iterator(data() + _Nm); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_iterator 29761: end() const noexcept 29761: { return const_iterator(data() + _Nm); } 29761: 29761: [[__gnu__::__const__, __nodiscard__]] 29761: constexpr reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(end()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: [[__gnu__::__const__, __nodiscard__]] 29761: constexpr reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(begin()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(data()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_iterator 29761: cend() const noexcept 29761: { return const_iterator(data() + _Nm); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29761: constexpr size_type 29761: size() const noexcept { return _Nm; } 29761: 29761: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29761: constexpr size_type 29761: max_size() const noexcept { return _Nm; } 29761: 29761: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29761: constexpr bool 29761: empty() const noexcept { return size() == 0; } 29761: 29761: 29761: [[__nodiscard__]] 29761: constexpr reference 29761: operator[](size_type __n) noexcept 29761: { 29761: ; 29761: return _M_elems[__n]; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reference 29761: operator[](size_type __n) const noexcept 29761: { 29761: 29761: ; 29761: 29761: return _M_elems[__n]; 29761: } 29761: 29761: constexpr reference 29761: at(size_type __n) 29761: { 29761: if (__n >= _Nm) 29761: std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 29761: , 29761: __n, _Nm); 29761: return _M_elems[__n]; 29761: } 29761: 29761: constexpr const_reference 29761: at(size_type __n) const 29761: { 29761: 29761: 29761: return __n < _Nm ? _M_elems[__n] 29761: : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") 29761: , 29761: __n, _Nm), 29761: _M_elems[__n]); 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr reference 29761: front() noexcept 29761: { 29761: ; 29761: return _M_elems[(size_type)0]; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reference 29761: front() const noexcept 29761: { 29761: 29761: ; 29761: 29761: return _M_elems[(size_type)0]; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr reference 29761: back() noexcept 29761: { 29761: ; 29761: return _M_elems[_Nm - 1]; 29761: } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_reference 29761: back() const noexcept 29761: { 29761: 29761: ; 29761: 29761: return _M_elems[_Nm - 1]; 29761: } 29761: 29761: [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] 29761: constexpr pointer 29761: data() noexcept 29761: { return static_cast(_M_elems); } 29761: 29761: [[__nodiscard__]] 29761: constexpr const_pointer 29761: data() const noexcept 29761: { return static_cast(_M_elems); } 29761: }; 29761: 29761: 29761: template 29761: array(_Tp, _Up...) 29761: -> array && ...), _Tp>, 29761: 1 + sizeof...(_Up)>; 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29761: { return std::__equal_aux1(__one.begin(), __one.end(), __two.begin()); } 29761: # 328 "/usr/include/c++/14/array" 3 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29761: { return !(__one == __two); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator<(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) 29761: { 29761: return std::lexicographical_compare(__a.begin(), __a.end(), 29761: __b.begin(), __b.end()); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator>(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29761: { return __two < __one; } 29761: 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator<=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29761: { return !(__one > __two); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: 29761: inline bool 29761: operator>=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) 29761: { return !(__one < __two); } 29761: 29761: 29761: 29761: template 29761: 29761: inline 29761: 29761: 29761: __enable_if_t<__array_traits<_Tp, _Nm>::_Is_swappable::value> 29761: 29761: 29761: 29761: swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) 29761: noexcept(noexcept(__one.swap(__two))) 29761: { __one.swap(__two); } 29761: 29761: 29761: template 29761: __enable_if_t::_Is_swappable::value> 29761: swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: constexpr _Tp& 29761: get(array<_Tp, _Nm>& __arr) noexcept 29761: { 29761: static_assert(_Int < _Nm, "array index is within bounds"); 29761: return __arr._M_elems[_Int]; 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: constexpr _Tp&& 29761: get(array<_Tp, _Nm>&& __arr) noexcept 29761: { 29761: static_assert(_Int < _Nm, "array index is within bounds"); 29761: return std::move(std::get<_Int>(__arr)); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: constexpr const _Tp& 29761: get(const array<_Tp, _Nm>& __arr) noexcept 29761: { 29761: static_assert(_Int < _Nm, "array index is within bounds"); 29761: return __arr._M_elems[_Int]; 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: constexpr const _Tp&& 29761: get(const array<_Tp, _Nm>&& __arr) noexcept 29761: { 29761: static_assert(_Int < _Nm, "array index is within bounds"); 29761: return std::move(std::get<_Int>(__arr)); 29761: } 29761: # 490 "/usr/include/c++/14/array" 3 29761: template 29761: struct tuple_size> 29761: : public integral_constant { }; 29761: 29761: 29761: template 29761: struct tuple_element<_Ind, array<_Tp, _Nm>> 29761: { 29761: static_assert(_Ind < _Nm, "array index is in range"); 29761: using type = _Tp; 29761: }; 29761: 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> = _Nm; 29761: 29761: template 29761: inline constexpr size_t tuple_size_v> = _Nm; 29761: 29761: 29761: template 29761: struct __is_tuple_like_impl> : true_type 29761: { }; 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/functional" 2 3 29761: # 88 "/usr/include/c++/14/functional" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 89 "/usr/include/c++/14/functional" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template struct _Placeholder { }; 29761: # 115 "/usr/include/c++/14/functional" 3 29761: template 29761: inline invoke_result_t<_Callable, _Args...> 29761: invoke(_Callable&& __fn, _Args&&... __args) 29761: noexcept(is_nothrow_invocable_v<_Callable, _Args...>) 29761: { 29761: return std::__invoke(std::forward<_Callable>(__fn), 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 148 "/usr/include/c++/14/functional" 3 29761: template::value> 29761: class _Mem_fn_base 29761: : public _Mem_fn_traits<_MemFunPtr>::__maybe_type 29761: { 29761: using _Traits = _Mem_fn_traits<_MemFunPtr>; 29761: 29761: using _Arity = typename _Traits::__arity; 29761: using _Varargs = typename _Traits::__vararg; 29761: 29761: template 29761: friend struct _Bind_check_arity; 29761: 29761: _MemFunPtr _M_pmf; 29761: 29761: public: 29761: 29761: using result_type = typename _Traits::__result_type; 29761: 29761: explicit constexpr 29761: _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } 29761: 29761: template 29761: 29761: auto 29761: operator()(_Args&&... __args) const 29761: noexcept(noexcept( 29761: std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) 29761: -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) 29761: { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } 29761: }; 29761: 29761: 29761: template 29761: class _Mem_fn_base<_MemObjPtr, false> 29761: { 29761: using _Arity = integral_constant; 29761: using _Varargs = false_type; 29761: 29761: template 29761: friend struct _Bind_check_arity; 29761: 29761: _MemObjPtr _M_pm; 29761: 29761: public: 29761: explicit constexpr 29761: _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } 29761: 29761: template 29761: 29761: auto 29761: operator()(_Tp&& __obj) const 29761: noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) 29761: -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) 29761: { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } 29761: }; 29761: 29761: template 29761: struct _Mem_fn; 29761: 29761: template 29761: struct _Mem_fn<_Res _Class::*> 29761: : _Mem_fn_base<_Res _Class::*> 29761: { 29761: using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; 29761: }; 29761: # 241 "/usr/include/c++/14/functional" 3 29761: template 29761: 29761: inline _Mem_fn<_Tp _Class::*> 29761: mem_fn(_Tp _Class::* __pm) noexcept 29761: { 29761: return _Mem_fn<_Tp _Class::*>(__pm); 29761: } 29761: # 260 "/usr/include/c++/14/functional" 3 29761: template 29761: struct is_bind_expression 29761: : public false_type { }; 29761: # 272 "/usr/include/c++/14/functional" 3 29761: template 29761: struct is_placeholder 29761: : public integral_constant 29761: { }; 29761: 29761: 29761: template inline constexpr bool is_bind_expression_v 29761: = is_bind_expression<_Tp>::value; 29761: template inline constexpr int is_placeholder_v 29761: = is_placeholder<_Tp>::value; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace placeholders 29761: { 29761: # 301 "/usr/include/c++/14/functional" 3 29761: inline const _Placeholder<1> _1; 29761: inline const _Placeholder<2> _2; 29761: inline const _Placeholder<3> _3; 29761: inline const _Placeholder<4> _4; 29761: inline const _Placeholder<5> _5; 29761: inline const _Placeholder<6> _6; 29761: inline const _Placeholder<7> _7; 29761: inline const _Placeholder<8> _8; 29761: inline const _Placeholder<9> _9; 29761: inline const _Placeholder<10> _10; 29761: inline const _Placeholder<11> _11; 29761: inline const _Placeholder<12> _12; 29761: inline const _Placeholder<13> _13; 29761: inline const _Placeholder<14> _14; 29761: inline const _Placeholder<15> _15; 29761: inline const _Placeholder<16> _16; 29761: inline const _Placeholder<17> _17; 29761: inline const _Placeholder<18> _18; 29761: inline const _Placeholder<19> _19; 29761: inline const _Placeholder<20> _20; 29761: inline const _Placeholder<21> _21; 29761: inline const _Placeholder<22> _22; 29761: inline const _Placeholder<23> _23; 29761: inline const _Placeholder<24> _24; 29761: inline const _Placeholder<25> _25; 29761: inline const _Placeholder<26> _26; 29761: inline const _Placeholder<27> _27; 29761: inline const _Placeholder<28> _28; 29761: inline const _Placeholder<29> _29; 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_placeholder<_Placeholder<_Num> > 29761: : public integral_constant 29761: { }; 29761: 29761: template 29761: struct is_placeholder > 29761: : public integral_constant 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: using _Safe_tuple_element_t 29761: = typename enable_if<(__i < tuple_size<_Tuple>::value), 29761: tuple_element<__i, _Tuple>>::type::type; 29761: # 369 "/usr/include/c++/14/functional" 3 29761: template::value, 29761: bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> 29761: class _Mu; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Mu, false, false> 29761: { 29761: public: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _Tp& 29761: operator()(_CVRef& __arg, _Tuple&) const volatile 29761: { return __arg.get(); } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Mu<_Arg, true, false> 29761: { 29761: public: 29761: template 29761: 29761: auto 29761: operator()(_CVArg& __arg, 29761: tuple<_Args...>& __tuple) const volatile 29761: -> decltype(__arg(declval<_Args>()...)) 29761: { 29761: 29761: typedef typename _Build_index_tuple::__type 29761: _Indexes; 29761: return this->__call(__arg, __tuple, _Indexes()); 29761: } 29761: 29761: private: 29761: 29761: 29761: template 29761: 29761: auto 29761: __call(_CVArg& __arg, tuple<_Args...>& __tuple, 29761: const _Index_tuple<_Indexes...>&) const volatile 29761: -> decltype(__arg(declval<_Args>()...)) 29761: { 29761: return __arg(std::get<_Indexes>(std::move(__tuple))...); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Mu<_Arg, false, true> 29761: { 29761: public: 29761: template 29761: 29761: _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& 29761: operator()(const volatile _Arg&, _Tuple& __tuple) const volatile 29761: { 29761: return 29761: ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Mu<_Arg, false, false> 29761: { 29761: public: 29761: template 29761: 29761: _CVArg&& 29761: operator()(_CVArg&& __arg, _Tuple&) const volatile 29761: { return std::forward<_CVArg>(__arg); } 29761: }; 29761: 29761: 29761: template 29761: inline auto 29761: __volget(volatile tuple<_Tp...>& __tuple) 29761: -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& 29761: { return std::get<_Ind>(const_cast&>(__tuple)); } 29761: 29761: 29761: template 29761: inline auto 29761: __volget(const volatile tuple<_Tp...>& __tuple) 29761: -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& 29761: { return std::get<_Ind>(const_cast&>(__tuple)); } 29761: # 494 "/usr/include/c++/14/functional" 3 29761: template 29761: class _Bind; 29761: 29761: template 29761: class _Bind<_Functor(_Bound_args...)> 29761: : public _Weak_result_type<_Functor> 29761: { 29761: typedef typename _Build_index_tuple::__type 29761: _Bound_indexes; 29761: 29761: _Functor _M_f; 29761: tuple<_Bound_args...> _M_bound_args; 29761: 29761: 29761: template 29761: 29761: _Result 29761: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 29761: { 29761: return std::__invoke(_M_f, 29761: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 29761: ); 29761: } 29761: 29761: 29761: template 29761: 29761: _Result 29761: __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 29761: { 29761: return std::__invoke(_M_f, 29761: _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... 29761: ); 29761: } 29761: 29761: 29761: 29761: template 29761: _Result 29761: __call_v(tuple<_Args...>&& __args, 29761: _Index_tuple<_Indexes...>) volatile 29761: { 29761: return std::__invoke(_M_f, 29761: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 29761: ); 29761: } 29761: 29761: 29761: template 29761: _Result 29761: __call_c_v(tuple<_Args...>&& __args, 29761: _Index_tuple<_Indexes...>) const volatile 29761: { 29761: return std::__invoke(_M_f, 29761: _Mu<_Bound_args>()(__volget<_Indexes>(_M_bound_args), __args)... 29761: ); 29761: } 29761: 29761: 29761: template 29761: using _Mu_type = decltype( 29761: _Mu::type>()( 29761: std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); 29761: 29761: template 29761: using _Res_type_impl 29761: = __invoke_result_t<_Fn&, _Mu_type<_BArgs, _CallArgs>&&...>; 29761: 29761: template 29761: using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; 29761: 29761: template 29761: using __dependent = typename 29761: enable_if::value+1), _Functor>::type; 29761: 29761: template class __cv_quals> 29761: using _Res_type_cv = _Res_type_impl< 29761: typename __cv_quals<__dependent<_CallArgs>>::type, 29761: _CallArgs, 29761: typename __cv_quals<_Bound_args>::type...>; 29761: 29761: public: 29761: template 29761: explicit 29761: _Bind(const _Functor& __f, _Args&&... __args) 29761: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: explicit 29761: _Bind(_Functor&& __f, _Args&&... __args) 29761: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: _Bind(const _Bind&) = default; 29761: _Bind(_Bind&&) = default; 29761: 29761: 29761: template>> 29761: 29761: _Result 29761: operator()(_Args&&... __args) 29761: { 29761: return this->__call<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: template, add_const>> 29761: 29761: _Result 29761: operator()(_Args&&... __args) const 29761: { 29761: return this->__call_c<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: 29761: template, add_volatile>> 29761: [[deprecated("std::bind does not support volatile in C++17")]] 29761: _Result 29761: operator()(_Args&&... __args) volatile 29761: { 29761: return this->__call_v<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: template, add_cv>> 29761: [[deprecated("std::bind does not support volatile in C++17")]] 29761: _Result 29761: operator()(_Args&&... __args) const volatile 29761: { 29761: return this->__call_c_v<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: }; 29761: 29761: 29761: template 29761: class _Bind_result; 29761: 29761: template 29761: class _Bind_result<_Result, _Functor(_Bound_args...)> 29761: { 29761: typedef typename _Build_index_tuple::__type 29761: _Bound_indexes; 29761: 29761: _Functor _M_f; 29761: tuple<_Bound_args...> _M_bound_args; 29761: 29761: 29761: template 29761: 29761: _Res 29761: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) 29761: { 29761: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29761: (std::get<_Indexes>(_M_bound_args), __args)...); 29761: } 29761: 29761: 29761: template 29761: 29761: _Res 29761: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const 29761: { 29761: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29761: (std::get<_Indexes>(_M_bound_args), __args)...); 29761: } 29761: 29761: 29761: 29761: template 29761: _Res 29761: __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) volatile 29761: { 29761: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29761: (__volget<_Indexes>(_M_bound_args), __args)...); 29761: } 29761: 29761: 29761: template 29761: _Res 29761: __call(tuple<_Args...>&& __args, 29761: _Index_tuple<_Indexes...>) const volatile 29761: { 29761: return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() 29761: (__volget<_Indexes>(_M_bound_args), __args)...); 29761: } 29761: 29761: 29761: public: 29761: typedef _Result result_type; 29761: 29761: template 29761: explicit 29761: _Bind_result(const _Functor& __f, _Args&&... __args) 29761: : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: explicit 29761: _Bind_result(_Functor&& __f, _Args&&... __args) 29761: : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: _Bind_result(const _Bind_result&) = default; 29761: _Bind_result(_Bind_result&&) = default; 29761: 29761: 29761: template 29761: 29761: result_type 29761: operator()(_Args&&... __args) 29761: { 29761: return this->__call<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: template 29761: 29761: result_type 29761: operator()(_Args&&... __args) const 29761: { 29761: return this->__call<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: 29761: template 29761: [[deprecated("std::bind does not support volatile in C++17")]] 29761: result_type 29761: operator()(_Args&&... __args) volatile 29761: { 29761: return this->__call<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: template 29761: [[deprecated("std::bind does not support volatile in C++17")]] 29761: result_type 29761: operator()(_Args&&... __args) const volatile 29761: { 29761: return this->__call<_Result>( 29761: std::forward_as_tuple(std::forward<_Args>(__args)...), 29761: _Bound_indexes()); 29761: } 29761: 29761: 29761: 29761: 29761: }; 29761: # 771 "/usr/include/c++/14/functional" 3 29761: template 29761: struct is_bind_expression<_Bind<_Signature> > 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression > 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression > 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression> 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression<_Bind_result<_Result, _Signature>> 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression> 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression> 29761: : public true_type { }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct is_bind_expression> 29761: : public true_type { }; 29761: 29761: template 29761: struct _Bind_check_arity { }; 29761: 29761: template 29761: struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> 29761: { 29761: static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), 29761: "Wrong number of arguments for function"); 29761: }; 29761: 29761: template 29761: struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> 29761: { 29761: static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), 29761: "Wrong number of arguments for function"); 29761: }; 29761: 29761: template 29761: struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> 29761: { 29761: using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; 29761: using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; 29761: static_assert(_Varargs::value 29761: ? sizeof...(_BoundArgs) >= _Arity::value + 1 29761: : sizeof...(_BoundArgs) == _Arity::value + 1, 29761: "Wrong number of arguments for pointer-to-member"); 29761: }; 29761: 29761: 29761: 29761: 29761: template::type> 29761: using __is_socketlike = __or_, is_enum<_Tp2>>; 29761: 29761: template 29761: struct _Bind_helper 29761: : _Bind_check_arity::type, _BoundArgs...> 29761: { 29761: typedef typename decay<_Func>::type __func_type; 29761: typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Bind_helper 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline typename 29761: _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type 29761: bind(_Func&& __f, _BoundArgs&&... __args) 29761: { 29761: typedef _Bind_helper __helper_type; 29761: return typename __helper_type::type(std::forward<_Func>(__f), 29761: std::forward<_BoundArgs>(__args)...); 29761: } 29761: 29761: template 29761: struct _Bindres_helper 29761: : _Bind_check_arity::type, _BoundArgs...> 29761: { 29761: typedef typename decay<_Func>::type __functor_type; 29761: typedef _Bind_result<_Result, 29761: __functor_type(typename decay<_BoundArgs>::type...)> 29761: type; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline 29761: typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type 29761: bind(_Func&& __f, _BoundArgs&&... __args) 29761: { 29761: typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; 29761: return typename __helper_type::type(std::forward<_Func>(__f), 29761: std::forward<_BoundArgs>(__args)...); 29761: } 29761: # 1121 "/usr/include/c++/14/functional" 3 29761: template 29761: class _Not_fn 29761: { 29761: template 29761: using __inv_res_t = typename __invoke_result<_Fn2, _Args...>::type; 29761: 29761: template 29761: static decltype(!std::declval<_Tp>()) 29761: _S_not() noexcept(noexcept(!std::declval<_Tp>())); 29761: 29761: public: 29761: template 29761: constexpr 29761: _Not_fn(_Fn2&& __fn, int) 29761: : _M_fn(std::forward<_Fn2>(__fn)) { } 29761: 29761: _Not_fn(const _Not_fn& __fn) = default; 29761: _Not_fn(_Not_fn&& __fn) = default; 29761: ~_Not_fn() = default; 29761: # 1161 "/usr/include/c++/14/functional" 3 29761: template::value>> decltype(_S_not<__inv_res_t<_Fn &, _Args...>>()) operator()(_Args&&... __args) & noexcept(__is_nothrow_invocable<_Fn &, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn &, _Args...>>())) { return !std::__invoke(std::forward< _Fn & >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) & = delete; 29761: template::value>> decltype(_S_not<__inv_res_t<_Fn const &, _Args...>>()) operator()(_Args&&... __args) const & noexcept(__is_nothrow_invocable<_Fn const &, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn const &, _Args...>>())) { return !std::__invoke(std::forward< _Fn const & >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) const & = delete; 29761: template::value>> decltype(_S_not<__inv_res_t<_Fn &&, _Args...>>()) operator()(_Args&&... __args) && noexcept(__is_nothrow_invocable<_Fn &&, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn &&, _Args...>>())) { return !std::__invoke(std::forward< _Fn && >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) && = delete; 29761: template::value>> decltype(_S_not<__inv_res_t<_Fn const &&, _Args...>>()) operator()(_Args&&... __args) const && noexcept(__is_nothrow_invocable<_Fn const &&, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn const &&, _Args...>>())) { return !std::__invoke(std::forward< _Fn const && >(_M_fn), std::forward<_Args>(__args)...); } template::value>> void operator()(_Args&&... __args) const && = delete; 29761: 29761: 29761: private: 29761: _Fn _M_fn; 29761: }; 29761: 29761: template 29761: struct __is_byte_like : false_type { }; 29761: 29761: template 29761: struct __is_byte_like<_Tp, equal_to<_Tp>> 29761: : __bool_constant::value> { }; 29761: 29761: template 29761: struct __is_byte_like<_Tp, equal_to> 29761: : __bool_constant::value> { }; 29761: 29761: 29761: 29761: enum class byte : unsigned char; 29761: 29761: template<> 29761: struct __is_byte_like> 29761: : true_type { }; 29761: 29761: template<> 29761: struct __is_byte_like> 29761: : true_type { }; 29761: # 1209 "/usr/include/c++/14/functional" 3 29761: template 29761: 29761: inline auto 29761: not_fn(_Fn&& __fn) 29761: noexcept(std::is_nothrow_constructible, _Fn&&>::value) 29761: { 29761: return _Not_fn>{std::forward<_Fn>(__fn), 0}; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: class default_searcher 29761: { 29761: public: 29761: 29761: default_searcher(_ForwardIterator1 __pat_first, 29761: _ForwardIterator1 __pat_last, 29761: _BinaryPredicate __pred = _BinaryPredicate()) 29761: : _M_m(__pat_first, __pat_last, std::move(__pred)) 29761: { } 29761: 29761: template 29761: 29761: pair<_ForwardIterator2, _ForwardIterator2> 29761: operator()(_ForwardIterator2 __first, _ForwardIterator2 __last) const 29761: { 29761: _ForwardIterator2 __first_ret = 29761: std::search(__first, __last, std::get<0>(_M_m), std::get<1>(_M_m), 29761: std::get<2>(_M_m)); 29761: auto __ret = std::make_pair(__first_ret, __first_ret); 29761: if (__ret.first != __last) 29761: std::advance(__ret.second, std::distance(std::get<0>(_M_m), 29761: std::get<1>(_M_m))); 29761: return __ret; 29761: } 29761: 29761: private: 29761: tuple<_ForwardIterator1, _ForwardIterator1, _BinaryPredicate> _M_m; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __boyer_moore_map_base 29761: { 29761: template 29761: __boyer_moore_map_base(_RAIter __pat, size_t __patlen, 29761: _Hash&& __hf, _Pred&& __pred) 29761: : _M_bad_char{ __patlen, std::move(__hf), std::move(__pred) } 29761: { 29761: if (__patlen > 0) 29761: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 29761: _M_bad_char[__pat[__i]] = __patlen - 1 - __i; 29761: } 29761: 29761: using __diff_type = _Tp; 29761: 29761: __diff_type 29761: _M_lookup(_Key __key, __diff_type __not_found) const 29761: { 29761: auto __iter = _M_bad_char.find(__key); 29761: if (__iter == _M_bad_char.end()) 29761: return __not_found; 29761: return __iter->second; 29761: } 29761: 29761: _Pred 29761: _M_pred() const { return _M_bad_char.key_eq(); } 29761: 29761: std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; 29761: }; 29761: 29761: template 29761: struct __boyer_moore_array_base 29761: { 29761: template 29761: __boyer_moore_array_base(_RAIter __pat, size_t __patlen, 29761: _Unused&&, _Pred&& __pred) 29761: : _M_bad_char{ array<_Tp, _Len>{}, std::move(__pred) } 29761: { 29761: std::get<0>(_M_bad_char).fill(__patlen); 29761: if (__patlen > 0) 29761: for (__diff_type __i = 0; __i < __patlen - 1; ++__i) 29761: { 29761: auto __ch = __pat[__i]; 29761: using _UCh = make_unsigned_t; 29761: auto __uch = static_cast<_UCh>(__ch); 29761: std::get<0>(_M_bad_char)[__uch] = __patlen - 1 - __i; 29761: } 29761: } 29761: 29761: using __diff_type = _Tp; 29761: 29761: template 29761: __diff_type 29761: _M_lookup(_Key __key, __diff_type __not_found) const 29761: { 29761: auto __ukey = static_cast>(__key); 29761: if (__ukey >= _Len) 29761: return __not_found; 29761: return std::get<0>(_M_bad_char)[__ukey]; 29761: } 29761: 29761: const _Pred& 29761: _M_pred() const { return std::get<1>(_M_bad_char); } 29761: 29761: tuple, _Pred> _M_bad_char; 29761: }; 29761: 29761: 29761: 29761: template::value_type, 29761: typename _Diff = typename iterator_traits<_RAIter>::difference_type> 29761: using __boyer_moore_base_t 29761: = __conditional_t<__is_byte_like<_Val, _Pred>::value, 29761: __boyer_moore_array_base<_Diff, 256, _Pred>, 29761: __boyer_moore_map_base<_Val, _Diff, _Hash, _Pred>>; 29761: 29761: template::value_type>, 29761: typename _BinaryPredicate = equal_to<>> 29761: class boyer_moore_searcher 29761: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 29761: { 29761: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 29761: using typename _Base::__diff_type; 29761: 29761: public: 29761: boyer_moore_searcher(_RAIter __pat_first, _RAIter __pat_last, 29761: _Hash __hf = _Hash(), 29761: _BinaryPredicate __pred = _BinaryPredicate()); 29761: 29761: template 29761: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29761: operator()(_RandomAccessIterator2 __first, 29761: _RandomAccessIterator2 __last) const; 29761: 29761: private: 29761: bool 29761: _M_is_prefix(_RAIter __word, __diff_type __len, 29761: __diff_type __pos) 29761: { 29761: const auto& __pred = this->_M_pred(); 29761: __diff_type __suffixlen = __len - __pos; 29761: for (__diff_type __i = 0; __i < __suffixlen; ++__i) 29761: if (!__pred(__word[__i], __word[__pos + __i])) 29761: return false; 29761: return true; 29761: } 29761: 29761: __diff_type 29761: _M_suffix_length(_RAIter __word, __diff_type __len, 29761: __diff_type __pos) 29761: { 29761: const auto& __pred = this->_M_pred(); 29761: __diff_type __i = 0; 29761: while (__pred(__word[__pos - __i], __word[__len - 1 - __i]) 29761: && __i < __pos) 29761: { 29761: ++__i; 29761: } 29761: return __i; 29761: } 29761: 29761: template 29761: __diff_type 29761: _M_bad_char_shift(_Tp __c) const 29761: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 29761: 29761: _RAIter _M_pat; 29761: _RAIter _M_pat_end; 29761: std::vector<__diff_type> _M_good_suffix; 29761: }; 29761: 29761: template::value_type>, 29761: typename _BinaryPredicate = equal_to<>> 29761: class boyer_moore_horspool_searcher 29761: : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> 29761: { 29761: using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; 29761: using typename _Base::__diff_type; 29761: 29761: public: 29761: boyer_moore_horspool_searcher(_RAIter __pat, 29761: _RAIter __pat_end, 29761: _Hash __hf = _Hash(), 29761: _BinaryPredicate __pred 29761: = _BinaryPredicate()) 29761: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 29761: _M_pat(__pat), _M_pat_end(__pat_end) 29761: { } 29761: 29761: template 29761: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29761: operator()(_RandomAccessIterator2 __first, 29761: _RandomAccessIterator2 __last) const 29761: { 29761: const auto& __pred = this->_M_pred(); 29761: auto __patlen = _M_pat_end - _M_pat; 29761: if (__patlen == 0) 29761: return std::make_pair(__first, __first); 29761: auto __len = __last - __first; 29761: while (__len >= __patlen) 29761: { 29761: for (auto __scan = __patlen - 1; 29761: __pred(__first[__scan], _M_pat[__scan]); --__scan) 29761: if (__scan == 0) 29761: return std::make_pair(__first, __first + __patlen); 29761: auto __shift = _M_bad_char_shift(__first[__patlen - 1]); 29761: __len -= __shift; 29761: __first += __shift; 29761: } 29761: return std::make_pair(__last, __last); 29761: } 29761: 29761: private: 29761: template 29761: __diff_type 29761: _M_bad_char_shift(_Tp __c) const 29761: { return this->_M_lookup(__c, _M_pat_end - _M_pat); } 29761: 29761: _RAIter _M_pat; 29761: _RAIter _M_pat_end; 29761: }; 29761: 29761: template 29761: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 29761: boyer_moore_searcher(_RAIter __pat, _RAIter __pat_end, 29761: _Hash __hf, _BinaryPredicate __pred) 29761: : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), 29761: _M_pat(__pat), _M_pat_end(__pat_end), _M_good_suffix(__pat_end - __pat) 29761: { 29761: auto __patlen = __pat_end - __pat; 29761: if (__patlen == 0) 29761: return; 29761: __diff_type __last_prefix = __patlen - 1; 29761: for (__diff_type __p = __patlen - 1; __p >= 0; --__p) 29761: { 29761: if (_M_is_prefix(__pat, __patlen, __p + 1)) 29761: __last_prefix = __p + 1; 29761: _M_good_suffix[__p] = __last_prefix + (__patlen - 1 - __p); 29761: } 29761: for (__diff_type __p = 0; __p < __patlen - 1; ++__p) 29761: { 29761: auto __slen = _M_suffix_length(__pat, __patlen, __p); 29761: auto __pos = __patlen - 1 - __slen; 29761: if (!__pred(__pat[__p - __slen], __pat[__pos])) 29761: _M_good_suffix[__pos] = __patlen - 1 - __p + __slen; 29761: } 29761: } 29761: 29761: template 29761: template 29761: pair<_RandomAccessIterator2, _RandomAccessIterator2> 29761: boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: 29761: operator()(_RandomAccessIterator2 __first, 29761: _RandomAccessIterator2 __last) const 29761: { 29761: auto __patlen = _M_pat_end - _M_pat; 29761: if (__patlen == 0) 29761: return std::make_pair(__first, __first); 29761: const auto& __pred = this->_M_pred(); 29761: __diff_type __i = __patlen - 1; 29761: auto __stringlen = __last - __first; 29761: while (__i < __stringlen) 29761: { 29761: __diff_type __j = __patlen - 1; 29761: while (__j >= 0 && __pred(__first[__i], _M_pat[__j])) 29761: { 29761: --__i; 29761: --__j; 29761: } 29761: if (__j < 0) 29761: { 29761: const auto __match = __first + __i + 1; 29761: return std::make_pair(__match, __match + __patlen); 29761: } 29761: __i += std::max(_M_bad_char_shift(__first[__i]), 29761: _M_good_suffix[__j]); 29761: } 29761: return std::make_pair(__last, __last); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/usr/include/c++/14/memory" 1 3 29761: # 47 "/usr/include/c++/14/memory" 3 29761: 29761: # 48 "/usr/include/c++/14/memory" 3 29761: # 66 "/usr/include/c++/14/memory" 3 29761: # 1 "/usr/include/c++/14/bits/stl_tempbuf.h" 1 3 29761: # 65 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: namespace __detail 29761: { 29761: template 29761: inline void 29761: __return_temporary_buffer(_Tp* __p, 29761: size_t __len __attribute__((__unused__))) 29761: { 29761: 29761: ::operator delete(__p, __len * sizeof(_Tp)); 29761: 29761: 29761: 29761: } 29761: } 29761: # 101 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29761: template 29761: [[__deprecated__]] 29761: pair<_Tp*, ptrdiff_t> 29761: get_temporary_buffer(ptrdiff_t __len) noexcept 29761: { 29761: const ptrdiff_t __max = 29761: __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); 29761: if (__len > __max) 29761: __len = __max; 29761: 29761: while (__len > 0) 29761: { 29761: _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), 29761: std::nothrow)); 29761: if (__tmp != 0) 29761: return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); 29761: __len = __len == 1 ? 0 : ((__len + 1) / 2); 29761: } 29761: return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); 29761: } 29761: # 129 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29761: template 29761: inline void 29761: return_temporary_buffer(_Tp* __p) 29761: { ::operator delete(__p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Temporary_buffer 29761: { 29761: 29761: 29761: 29761: public: 29761: typedef _Tp value_type; 29761: typedef value_type* pointer; 29761: typedef pointer iterator; 29761: typedef ptrdiff_t size_type; 29761: 29761: protected: 29761: size_type _M_original_len; 29761: size_type _M_len; 29761: pointer _M_buffer; 29761: 29761: public: 29761: 29761: size_type 29761: size() const 29761: { return _M_len; } 29761: 29761: 29761: size_type 29761: requested_size() const 29761: { return _M_original_len; } 29761: 29761: 29761: iterator 29761: begin() 29761: { return _M_buffer; } 29761: 29761: 29761: iterator 29761: end() 29761: { return _M_buffer + _M_len; } 29761: 29761: 29761: 29761: 29761: 29761: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); 29761: 29761: ~_Temporary_buffer() 29761: { 29761: std::_Destroy(_M_buffer, _M_buffer + _M_len); 29761: std::__detail::__return_temporary_buffer(_M_buffer, _M_len); 29761: } 29761: 29761: private: 29761: 29761: _Temporary_buffer(const _Temporary_buffer&); 29761: 29761: void 29761: operator=(const _Temporary_buffer&); 29761: }; 29761: 29761: 29761: template 29761: struct __uninitialized_construct_buf_dispatch 29761: { 29761: template 29761: static void 29761: __ucr(_Pointer __first, _Pointer __last, 29761: _ForwardIterator __seed) 29761: { 29761: if (__first == __last) 29761: return; 29761: 29761: _Pointer __cur = __first; 29761: try 29761: { 29761: std::_Construct(std::__addressof(*__first), 29761: std::move(*__seed)); 29761: _Pointer __prev = __cur; 29761: ++__cur; 29761: for(; __cur != __last; ++__cur, ++__prev) 29761: std::_Construct(std::__addressof(*__cur), 29761: std::move(*__prev)); 29761: *__seed = std::move(*__prev); 29761: } 29761: catch(...) 29761: { 29761: std::_Destroy(__first, __cur); 29761: throw; 29761: } 29761: } 29761: }; 29761: 29761: template<> 29761: struct __uninitialized_construct_buf_dispatch 29761: { 29761: template 29761: static void 29761: __ucr(_Pointer, _Pointer, _ForwardIterator) { } 29761: }; 29761: # 247 "/usr/include/c++/14/bits/stl_tempbuf.h" 3 29761: template 29761: inline void 29761: __uninitialized_construct_buf(_Pointer __first, _Pointer __last, 29761: _ForwardIterator __seed) 29761: { 29761: typedef typename std::iterator_traits<_Pointer>::value_type 29761: _ValueType; 29761: 29761: std::__uninitialized_construct_buf_dispatch< 29761: __has_trivial_constructor(_ValueType)>:: 29761: __ucr(__first, __last, __seed); 29761: } 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template 29761: _Temporary_buffer<_ForwardIterator, _Tp>:: 29761: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) 29761: : _M_original_len(__original_len), _M_len(0), _M_buffer(0) 29761: { 29761: std::pair __p( 29761: std::get_temporary_buffer(_M_original_len)); 29761: 29761: if (__p.first) 29761: { 29761: try 29761: { 29761: std::__uninitialized_construct_buf(__p.first, __p.first + __p.second, 29761: __seed); 29761: _M_buffer = __p.first; 29761: _M_len = __p.second; 29761: } 29761: catch(...) 29761: { 29761: std::__detail::__return_temporary_buffer(__p.first, __p.second); 29761: throw; 29761: } 29761: } 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: } 29761: # 67 "/usr/include/c++/14/memory" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 1 3 29761: # 59 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: # 64 "/usr/include/c++/14/bits/stl_raw_storage_iter.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class [[__deprecated__]] raw_storage_iterator 29761: : public iterator 29761: { 29761: protected: 29761: _OutputIterator _M_iter; 29761: 29761: public: 29761: explicit 29761: raw_storage_iterator(_OutputIterator __x) 29761: : _M_iter(__x) {} 29761: 29761: raw_storage_iterator& 29761: operator*() { return *this; } 29761: 29761: raw_storage_iterator& 29761: operator=(const _Tp& __element) 29761: { 29761: std::_Construct(std::__addressof(*_M_iter), __element); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: raw_storage_iterator& 29761: operator=(_Tp&& __element) 29761: { 29761: std::_Construct(std::__addressof(*_M_iter), std::move(__element)); 29761: return *this; 29761: } 29761: 29761: 29761: raw_storage_iterator& 29761: operator++() 29761: { 29761: ++_M_iter; 29761: return *this; 29761: } 29761: 29761: raw_storage_iterator 29761: operator++(int) 29761: { 29761: raw_storage_iterator __tmp = *this; 29761: ++_M_iter; 29761: return __tmp; 29761: } 29761: 29761: 29761: 29761: _OutputIterator base() const { return _M_iter; } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: } 29761: # 71 "/usr/include/c++/14/memory" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/align.h" 1 3 29761: # 36 "/usr/include/c++/14/bits/align.h" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 37 "/usr/include/c++/14/bits/align.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 60 "/usr/include/c++/14/bits/align.h" 3 29761: inline void* 29761: align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept 29761: { 29761: if (__space < __size) 29761: return nullptr; 29761: const auto __intptr = reinterpret_cast(__ptr); 29761: const auto __aligned = (__intptr - 1u + __align) & -__align; 29761: const auto __diff = __aligned - __intptr; 29761: if (__diff > (__space - __size)) 29761: return nullptr; 29761: else 29761: { 29761: __space -= __diff; 29761: return __ptr = reinterpret_cast(__aligned); 29761: } 29761: } 29761: # 106 "/usr/include/c++/14/bits/align.h" 3 29761: 29761: } 29761: # 75 "/usr/include/c++/14/memory" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/unique_ptr.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 57 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template class auto_ptr; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct default_delete 29761: { 29761: 29761: constexpr default_delete() noexcept = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template>> 29761: 29761: default_delete(const default_delete<_Up>&) noexcept { } 29761: 29761: 29761: 29761: void 29761: operator()(_Tp* __ptr) const 29761: { 29761: static_assert(!is_void<_Tp>::value, 29761: "can't delete pointer to incomplete type"); 29761: static_assert(sizeof(_Tp)>0, 29761: "can't delete pointer to incomplete type"); 29761: delete __ptr; 29761: } 29761: }; 29761: # 105 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: struct default_delete<_Tp[]> 29761: { 29761: public: 29761: 29761: constexpr default_delete() noexcept = default; 29761: # 121 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template>> 29761: 29761: default_delete(const default_delete<_Up[]>&) noexcept { } 29761: 29761: 29761: template 29761: 29761: typename enable_if::value>::type 29761: operator()(_Up* __ptr) const 29761: { 29761: static_assert(sizeof(_Tp)>0, 29761: "can't delete pointer to incomplete type"); 29761: delete [] __ptr; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: class __uniq_ptr_impl 29761: { 29761: template 29761: struct _Ptr 29761: { 29761: using type = _Up*; 29761: }; 29761: 29761: template 29761: struct 29761: _Ptr<_Up, _Ep, __void_t::type::pointer>> 29761: { 29761: using type = typename remove_reference<_Ep>::type::pointer; 29761: }; 29761: 29761: public: 29761: using _DeleterConstraint = enable_if< 29761: __and_<__not_>, 29761: is_default_constructible<_Dp>>::value>; 29761: 29761: using pointer = typename _Ptr<_Tp, _Dp>::type; 29761: 29761: static_assert( !is_rvalue_reference<_Dp>::value, 29761: "unique_ptr's deleter type must be a function object type" 29761: " or an lvalue reference type" ); 29761: 29761: __uniq_ptr_impl() = default; 29761: 29761: __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } 29761: 29761: template 29761: 29761: __uniq_ptr_impl(pointer __p, _Del&& __d) 29761: : _M_t(__p, std::forward<_Del>(__d)) { } 29761: 29761: 29761: __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept 29761: : _M_t(std::move(__u._M_t)) 29761: { __u._M_ptr() = nullptr; } 29761: 29761: 29761: __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept 29761: { 29761: reset(__u.release()); 29761: _M_deleter() = std::forward<_Dp>(__u._M_deleter()); 29761: return *this; 29761: } 29761: 29761: 29761: pointer& _M_ptr() noexcept { return std::get<0>(_M_t); } 29761: 29761: pointer _M_ptr() const noexcept { return std::get<0>(_M_t); } 29761: 29761: _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); } 29761: 29761: const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); } 29761: 29761: 29761: void reset(pointer __p) noexcept 29761: { 29761: const pointer __old_p = _M_ptr(); 29761: _M_ptr() = __p; 29761: if (__old_p) 29761: _M_deleter()(__old_p); 29761: } 29761: 29761: 29761: pointer release() noexcept 29761: { 29761: pointer __p = _M_ptr(); 29761: _M_ptr() = nullptr; 29761: return __p; 29761: } 29761: 29761: 29761: void 29761: swap(__uniq_ptr_impl& __rhs) noexcept 29761: { 29761: using std::swap; 29761: swap(this->_M_ptr(), __rhs._M_ptr()); 29761: swap(this->_M_deleter(), __rhs._M_deleter()); 29761: } 29761: 29761: private: 29761: tuple _M_t; 29761: }; 29761: 29761: 29761: template ::value, 29761: bool = is_move_assignable<_Dp>::value> 29761: struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp> 29761: { 29761: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29761: __uniq_ptr_data(__uniq_ptr_data&&) = default; 29761: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 29761: }; 29761: 29761: template 29761: struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp> 29761: { 29761: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29761: __uniq_ptr_data(__uniq_ptr_data&&) = default; 29761: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 29761: }; 29761: 29761: template 29761: struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp> 29761: { 29761: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29761: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 29761: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; 29761: }; 29761: 29761: template 29761: struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp> 29761: { 29761: using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; 29761: __uniq_ptr_data(__uniq_ptr_data&&) = delete; 29761: __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template > 29761: class unique_ptr 29761: { 29761: template 29761: using _DeleterConstraint = 29761: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 29761: 29761: __uniq_ptr_data<_Tp, _Dp> _M_t; 29761: 29761: public: 29761: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 29761: using element_type = _Tp; 29761: using deleter_type = _Dp; 29761: 29761: private: 29761: 29761: 29761: template 29761: using __safe_conversion_up = __and_< 29761: is_convertible::pointer, pointer>, 29761: __not_> 29761: >; 29761: 29761: public: 29761: 29761: 29761: 29761: template> 29761: constexpr unique_ptr() noexcept 29761: : _M_t() 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: 29761: explicit 29761: unique_ptr(pointer __p) noexcept 29761: : _M_t(__p) 29761: { } 29761: # 322 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template>> 29761: 29761: unique_ptr(pointer __p, const deleter_type& __d) noexcept 29761: : _M_t(__p, __d) { } 29761: # 335 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template>> 29761: 29761: unique_ptr(pointer __p, 29761: __enable_if_t::value, 29761: _Del&&> __d) noexcept 29761: : _M_t(__p, std::move(__d)) 29761: { } 29761: 29761: template::type> 29761: 29761: unique_ptr(pointer, 29761: __enable_if_t::value, 29761: _DelUnref&&>) = delete; 29761: 29761: 29761: template> 29761: constexpr unique_ptr(nullptr_t) noexcept 29761: : _M_t() 29761: { } 29761: 29761: 29761: 29761: 29761: unique_ptr(unique_ptr&&) = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template, 29761: __conditional_t::value, 29761: is_same<_Ep, _Dp>, 29761: is_convertible<_Ep, _Dp>>>> 29761: 29761: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 29761: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 29761: { } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: template, 29761: is_same<_Dp, default_delete<_Tp>>>> 29761: unique_ptr(auto_ptr<_Up>&& __u) noexcept; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~unique_ptr() noexcept 29761: { 29761: static_assert(__is_invocable::value, 29761: "unique_ptr's deleter must be invocable with a pointer"); 29761: auto& __ptr = _M_t._M_ptr(); 29761: if (__ptr != nullptr) 29761: get_deleter()(std::move(__ptr)); 29761: __ptr = pointer(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: unique_ptr& operator=(unique_ptr&&) = default; 29761: # 418 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: 29761: typename enable_if< __and_< 29761: __safe_conversion_up<_Up, _Ep>, 29761: is_assignable 29761: >::value, 29761: unique_ptr&>::type 29761: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 29761: { 29761: reset(__u.release()); 29761: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: unique_ptr& 29761: operator=(nullptr_t) noexcept 29761: { 29761: reset(); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: typename add_lvalue_reference::type 29761: operator*() const noexcept(noexcept(*std::declval())) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) std::__glibcxx_assert_fail(); } while (false); 29761: return *get(); 29761: } 29761: 29761: 29761: 29761: pointer 29761: operator->() const noexcept 29761: { 29761: ; 29761: return get(); 29761: } 29761: 29761: 29761: 29761: pointer 29761: get() const noexcept 29761: { return _M_t._M_ptr(); } 29761: 29761: 29761: 29761: deleter_type& 29761: get_deleter() noexcept 29761: { return _M_t._M_deleter(); } 29761: 29761: 29761: 29761: const deleter_type& 29761: get_deleter() const noexcept 29761: { return _M_t._M_deleter(); } 29761: 29761: 29761: 29761: explicit operator bool() const noexcept 29761: { return get() == pointer() ? false : true; } 29761: 29761: 29761: 29761: 29761: 29761: pointer 29761: release() noexcept 29761: { return _M_t.release(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset(pointer __p = pointer()) noexcept 29761: { 29761: static_assert(__is_invocable::value, 29761: "unique_ptr's deleter must be invocable with a pointer"); 29761: _M_t.reset(std::move(__p)); 29761: } 29761: 29761: 29761: 29761: void 29761: swap(unique_ptr& __u) noexcept 29761: { 29761: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 29761: _M_t.swap(__u._M_t); 29761: } 29761: 29761: 29761: unique_ptr(const unique_ptr&) = delete; 29761: unique_ptr& operator=(const unique_ptr&) = delete; 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: # 537 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: class unique_ptr<_Tp[], _Dp> 29761: { 29761: template 29761: using _DeleterConstraint = 29761: typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; 29761: 29761: __uniq_ptr_data<_Tp, _Dp> _M_t; 29761: 29761: 29761: template 29761: using __is_derived_Tp 29761: = __and_< is_base_of<_Tp, _Up>, 29761: __not_, __remove_cv_t<_Up>>> >; 29761: 29761: public: 29761: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; 29761: using element_type = _Tp; 29761: using deleter_type = _Dp; 29761: 29761: 29761: 29761: template, 29761: typename _UP_pointer = typename _UPtr::pointer, 29761: typename _UP_element_type = typename _UPtr::element_type> 29761: using __safe_conversion_up = __and_< 29761: is_array<_Up>, 29761: is_same, 29761: is_same<_UP_pointer, _UP_element_type*>, 29761: is_convertible<_UP_element_type(*)[], element_type(*)[]> 29761: >; 29761: 29761: 29761: template 29761: using __safe_conversion_raw = __and_< 29761: __or_<__or_, 29761: is_same<_Up, nullptr_t>>, 29761: __and_, 29761: is_same, 29761: is_convertible< 29761: typename remove_pointer<_Up>::type(*)[], 29761: element_type(*)[]> 29761: > 29761: > 29761: >; 29761: 29761: 29761: 29761: 29761: template> 29761: constexpr unique_ptr() noexcept 29761: : _M_t() 29761: { } 29761: # 599 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template, 29761: typename = typename enable_if< 29761: __safe_conversion_raw<_Up>::value, bool>::type> 29761: 29761: explicit 29761: unique_ptr(_Up __p) noexcept 29761: : _M_t(__p) 29761: { } 29761: # 618 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template, 29761: is_copy_constructible<_Del>>> 29761: 29761: unique_ptr(_Up __p, const deleter_type& __d) noexcept 29761: : _M_t(__p, __d) { } 29761: # 633 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template, 29761: is_move_constructible<_Del>>> 29761: 29761: unique_ptr(_Up __p, 29761: __enable_if_t::value, 29761: _Del&&> __d) noexcept 29761: : _M_t(std::move(__p), std::move(__d)) 29761: { } 29761: 29761: template::type, 29761: typename = _Require<__safe_conversion_raw<_Up>>> 29761: unique_ptr(_Up, 29761: __enable_if_t::value, 29761: _DelUnref&&>) = delete; 29761: 29761: 29761: unique_ptr(unique_ptr&&) = default; 29761: 29761: 29761: template> 29761: constexpr unique_ptr(nullptr_t) noexcept 29761: : _M_t() 29761: { } 29761: 29761: template, 29761: __conditional_t::value, 29761: is_same<_Ep, _Dp>, 29761: is_convertible<_Ep, _Dp>>>> 29761: 29761: unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept 29761: : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: ~unique_ptr() 29761: { 29761: auto& __ptr = _M_t._M_ptr(); 29761: if (__ptr != nullptr) 29761: get_deleter()(__ptr); 29761: __ptr = pointer(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: unique_ptr& 29761: operator=(unique_ptr&&) = default; 29761: # 697 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: 29761: typename 29761: enable_if<__and_<__safe_conversion_up<_Up, _Ep>, 29761: is_assignable 29761: >::value, 29761: unique_ptr&>::type 29761: operator=(unique_ptr<_Up, _Ep>&& __u) noexcept 29761: { 29761: reset(__u.release()); 29761: get_deleter() = std::forward<_Ep>(__u.get_deleter()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: unique_ptr& 29761: operator=(nullptr_t) noexcept 29761: { 29761: reset(); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: typename std::add_lvalue_reference::type 29761: operator[](size_t __i) const 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) std::__glibcxx_assert_fail(); } while (false); 29761: return get()[__i]; 29761: } 29761: 29761: 29761: 29761: pointer 29761: get() const noexcept 29761: { return _M_t._M_ptr(); } 29761: 29761: 29761: 29761: deleter_type& 29761: get_deleter() noexcept 29761: { return _M_t._M_deleter(); } 29761: 29761: 29761: 29761: const deleter_type& 29761: get_deleter() const noexcept 29761: { return _M_t._M_deleter(); } 29761: 29761: 29761: 29761: explicit operator bool() const noexcept 29761: { return get() == pointer() ? false : true; } 29761: 29761: 29761: 29761: 29761: 29761: pointer 29761: release() noexcept 29761: { return _M_t.release(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template , 29761: __and_, 29761: is_pointer<_Up>, 29761: is_convertible< 29761: typename remove_pointer<_Up>::type(*)[], 29761: element_type(*)[] 29761: > 29761: > 29761: > 29761: >> 29761: 29761: void 29761: reset(_Up __p) noexcept 29761: { _M_t.reset(std::move(__p)); } 29761: 29761: 29761: void reset(nullptr_t = nullptr) noexcept 29761: { reset(pointer()); } 29761: 29761: 29761: 29761: void 29761: swap(unique_ptr& __u) noexcept 29761: { 29761: static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); 29761: _M_t.swap(__u._M_t); 29761: } 29761: 29761: 29761: unique_ptr(const unique_ptr&) = delete; 29761: unique_ptr& operator=(const unique_ptr&) = delete; 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline 29761: 29761: 29761: 29761: typename enable_if<__is_swappable<_Dp>::value>::type 29761: 29761: 29761: 29761: swap(unique_ptr<_Tp, _Dp>& __x, 29761: unique_ptr<_Tp, _Dp>& __y) noexcept 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: typename enable_if::value>::type 29761: swap(unique_ptr<_Tp, _Dp>&, 29761: unique_ptr<_Tp, _Dp>&) = delete; 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { return __x.get() == __y.get(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 29761: { return !__x; } 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 29761: { return !__x; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { return __x.get() != __y.get(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept 29761: { return (bool)__x; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept 29761: { return (bool)__x; } 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { 29761: typedef typename 29761: std::common_type::pointer, 29761: typename unique_ptr<_Up, _Ep>::pointer>::type _CT; 29761: return std::less<_CT>()(__x.get(), __y.get()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29761: { 29761: return std::less::pointer>()(__x.get(), 29761: nullptr); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29761: { 29761: return std::less::pointer>()(nullptr, 29761: __x.get()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29761: { return !(nullptr < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29761: { return !(__x < nullptr); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { return (__y < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29761: { 29761: return std::less::pointer>()(nullptr, 29761: __x.get()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29761: { 29761: return std::less::pointer>()(__x.get(), 29761: nullptr); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const unique_ptr<_Tp, _Dp>& __x, 29761: const unique_ptr<_Up, _Ep>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) 29761: { return !(__x < nullptr); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) 29761: { return !(nullptr < __x); } 29761: # 1015 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template::__enable_hash_call> 29761: struct __uniq_ptr_hash 29761: 29761: : private __poison_hash<_Ptr> 29761: 29761: { 29761: size_t 29761: operator()(const _Up& __u) const 29761: noexcept(noexcept(std::declval>()(std::declval<_Ptr>()))) 29761: { return hash<_Ptr>()(__u.get()); } 29761: }; 29761: 29761: template 29761: struct __uniq_ptr_hash<_Up, _Ptr, false> 29761: : private __poison_hash<_Ptr> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct hash> 29761: : public __hash_base>, 29761: public __uniq_ptr_hash> 29761: { }; 29761: 29761: 29761: 29761: namespace __detail 29761: { 29761: template 29761: struct _MakeUniq 29761: { typedef unique_ptr<_Tp> __single_object; }; 29761: 29761: template 29761: struct _MakeUniq<_Tp[]> 29761: { typedef unique_ptr<_Tp[]> __array; }; 29761: 29761: template 29761: struct _MakeUniq<_Tp[_Bound]> 29761: { struct __invalid_type { }; }; 29761: 29761: template 29761: using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object; 29761: template 29761: using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array; 29761: template 29761: using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type; 29761: } 29761: # 1073 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: 29761: inline __detail::__unique_ptr_t<_Tp> 29761: make_unique(_Args&&... __args) 29761: { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } 29761: # 1088 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: 29761: inline __detail::__unique_ptr_array_t<_Tp> 29761: make_unique(size_t __num) 29761: { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: __detail::__invalid_make_unique_t<_Tp> 29761: make_unique(_Args&&...) = delete; 29761: # 1159 "/usr/include/c++/14/bits/unique_ptr.h" 3 29761: template 29761: static constexpr bool __is_unique_ptr = false; 29761: template 29761: static constexpr bool __is_unique_ptr> = true; 29761: 29761: 29761: 29761: 29761: 29761: namespace __detail::__variant 29761: { 29761: template struct _Never_valueless_alt; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : std::true_type 29761: { }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 79 "/usr/include/c++/14/memory" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/shared_ptr.h" 1 3 29761: # 52 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: # 1 "/usr/include/c++/14/iosfwd" 1 3 29761: # 36 "/usr/include/c++/14/iosfwd" 3 29761: 29761: # 37 "/usr/include/c++/14/iosfwd" 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stringfwd.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/stringfwd.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/stringfwd.h" 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct char_traits; 29761: 29761: template<> struct char_traits; 29761: 29761: template<> struct char_traits; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> struct char_traits; 29761: template<> struct char_traits; 29761: 29761: 29761: namespace __cxx11 { 29761: 29761: template, 29761: typename _Alloc = allocator<_CharT> > 29761: class basic_string; 29761: 29761: } 29761: 29761: 29761: typedef basic_string string; 29761: 29761: 29761: typedef basic_string wstring; 29761: # 89 "/usr/include/c++/14/bits/stringfwd.h" 3 29761: typedef basic_string u16string; 29761: 29761: 29761: typedef basic_string u32string; 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 42 "/usr/include/c++/14/iosfwd" 2 3 29761: # 1 "/usr/include/c++/14/bits/postypes.h" 1 3 29761: # 38 "/usr/include/c++/14/bits/postypes.h" 3 29761: 29761: # 39 "/usr/include/c++/14/bits/postypes.h" 3 29761: 29761: # 1 "/usr/include/c++/14/cwchar" 1 3 29761: # 39 "/usr/include/c++/14/cwchar" 3 29761: 29761: # 40 "/usr/include/c++/14/cwchar" 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/wchar.h" 1 3 4 29761: # 27 "/usr/include/wchar.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 28 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29761: # 52 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/long-double.h" 1 3 4 29761: # 25 "/usr/include/arm-linux-gnueabihf/bits/floatn-common.h" 2 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 2 3 4 29761: # 31 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 36 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29761: # 40 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 3 4 29761: typedef __builtin_va_list __gnuc_va_list; 29761: # 39 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: 29761: 29761: typedef __gnuc_va_list va_list; 29761: # 52 "/usr/include/wchar.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 1 3 4 29761: # 20 "/usr/include/arm-linux-gnueabihf/bits/types/wint_t.h" 3 4 29761: typedef unsigned int wint_t; 29761: # 53 "/usr/include/wchar.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 1 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 1 3 4 29761: # 13 "/usr/include/arm-linux-gnueabihf/bits/types/__mbstate_t.h" 3 4 29761: typedef struct 29761: { 29761: int __count; 29761: union 29761: { 29761: unsigned int __wch; 29761: char __wchb[4]; 29761: } __value; 29761: } __mbstate_t; 29761: # 5 "/usr/include/arm-linux-gnueabihf/bits/types/mbstate_t.h" 2 3 4 29761: 29761: typedef __mbstate_t mbstate_t; 29761: # 54 "/usr/include/wchar.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__FILE.h" 1 3 4 29761: 29761: 29761: 29761: struct _IO_FILE; 29761: typedef struct _IO_FILE __FILE; 29761: # 55 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/FILE.h" 1 3 4 29761: 29761: 29761: 29761: struct _IO_FILE; 29761: 29761: 29761: typedef struct _IO_FILE FILE; 29761: # 58 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 1 3 4 29761: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/__locale_t.h" 3 4 29761: struct __locale_struct 29761: { 29761: 29761: struct __locale_data *__locales[13]; 29761: 29761: 29761: const unsigned short int *__ctype_b; 29761: const int *__ctype_tolower; 29761: const int *__ctype_toupper; 29761: 29761: 29761: const char *__names[13]; 29761: }; 29761: 29761: typedef struct __locale_struct *__locale_t; 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/locale_t.h" 2 3 4 29761: 29761: typedef __locale_t locale_t; 29761: # 61 "/usr/include/wchar.h" 2 3 4 29761: # 90 "/usr/include/wchar.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: struct tm; 29761: 29761: 29761: 29761: extern wchar_t *wcscpy (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern size_t wcslcpy (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: 29761: 29761: 29761: extern size_t wcslcat (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 29761: 29761: 29761: 29761: extern wchar_t *wcscat (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern wchar_t *wcsncat (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 29761: 29761: 29761: extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, 29761: size_t __n) noexcept (true); 29761: 29761: 29761: 29761: extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 29761: locale_t __loc) noexcept (true); 29761: 29761: extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, 29761: size_t __n, locale_t __loc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); 29761: 29761: 29761: 29761: extern size_t wcsxfrm (wchar_t *__restrict __s1, 29761: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, 29761: locale_t __loc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, 29761: size_t __n, locale_t __loc) noexcept (true); 29761: 29761: 29761: extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: 29761: 29761: extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) 29761: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) 29761: noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) 29761: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) 29761: noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); 29761: # 206 "/usr/include/wchar.h" 3 4 29761: extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) 29761: noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) 29761: noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) 29761: noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) 29761: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, 29761: const wchar_t *__accept) 29761: noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) 29761: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, 29761: const wchar_t *__needle) 29761: noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wchar_t *wcstok (wchar_t *__restrict __s, 29761: const wchar_t *__restrict __delim, 29761: wchar_t **__restrict __ptr) noexcept (true); 29761: 29761: 29761: extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) 29761: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, 29761: const wchar_t *__needle) 29761: noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); 29761: # 265 "/usr/include/wchar.h" 3 4 29761: extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) 29761: noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) 29761: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 29761: extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, 29761: size_t __n) 29761: noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, 29761: const wchar_t *__restrict __s2, size_t __n) noexcept (true); 29761: 29761: 29761: 29761: extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) 29761: noexcept (true); 29761: 29761: 29761: extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern wchar_t *wmempcpy (wchar_t *__restrict __s1, 29761: const wchar_t *__restrict __s2, size_t __n) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t btowc (int __c) noexcept (true); 29761: 29761: 29761: 29761: extern int wctob (wint_t __c) noexcept (true); 29761: 29761: 29761: 29761: extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: extern size_t mbrtowc (wchar_t *__restrict __pwc, 29761: const char *__restrict __s, size_t __n, 29761: mbstate_t *__restrict __p) noexcept (true); 29761: 29761: 29761: extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: extern size_t __mbrlen (const char *__restrict __s, size_t __n, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: extern size_t mbrlen (const char *__restrict __s, size_t __n, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t __btowc_alias (int __c) __asm ("btowc"); 29761: extern __inline __attribute__ ((__gnu_inline__)) wint_t 29761: __attribute__ ((__leaf__)) btowc (int __c) noexcept (true) 29761: { return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' 29761: ? (wint_t) __c : __btowc_alias (__c)); } 29761: 29761: extern int __wctob_alias (wint_t __c) __asm ("wctob"); 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: __attribute__ ((__leaf__)) wctob (wint_t __wc) noexcept (true) 29761: { return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' 29761: ? (int) __wc : __wctob_alias (__wc)); } 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) size_t 29761: __attribute__ ((__leaf__)) mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: { return (__ps != __null 29761: ? mbrtowc (__null, __s, __n, __ps) : __mbrlen (__s, __n, __null)); } 29761: 29761: 29761: 29761: 29761: extern size_t mbsrtowcs (wchar_t *__restrict __dst, 29761: const char **__restrict __src, size_t __len, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: 29761: extern size_t wcsrtombs (char *__restrict __dst, 29761: const wchar_t **__restrict __src, size_t __len, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern size_t mbsnrtowcs (wchar_t *__restrict __dst, 29761: const char **__restrict __src, size_t __nmc, 29761: size_t __len, mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: 29761: extern size_t wcsnrtombs (char *__restrict __dst, 29761: const wchar_t **__restrict __src, 29761: size_t __nwc, size_t __len, 29761: mbstate_t *__restrict __ps) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int wcwidth (wchar_t __c) noexcept (true); 29761: 29761: 29761: 29761: extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern double wcstod (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: 29761: 29761: 29761: extern float wcstof (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: extern long double wcstold (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: # 422 "/usr/include/wchar.h" 3 4 29761: extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: # 437 "/usr/include/wchar.h" 3 4 29761: extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr) noexcept (true); 29761: # 455 "/usr/include/wchar.h" 3 4 29761: extern long int wcstol (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base) noexcept (true); 29761: 29761: 29761: 29761: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: __extension__ 29761: extern long long int wcstoll (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base) 29761: noexcept (true); 29761: 29761: 29761: 29761: __extension__ 29761: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: int __base) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: __extension__ 29761: extern long long int wcstoq (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base) 29761: noexcept (true); 29761: 29761: 29761: 29761: __extension__ 29761: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: int __base) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int wcstol (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstol") 29761: 29761: ; 29761: extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoul") 29761: 29761: 29761: ; 29761: __extension__ 29761: extern long long int wcstoll (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 29761: 29761: 29761: ; 29761: __extension__ 29761: extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 29761: 29761: 29761: ; 29761: 29761: __extension__ 29761: extern long long int wcstoq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoll") 29761: 29761: ; 29761: __extension__ 29761: extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoull") 29761: 29761: 29761: ; 29761: # 561 "/usr/include/wchar.h" 3 4 29761: extern long int wcstol_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base, 29761: locale_t __loc) noexcept (true); 29761: 29761: extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: int __base, locale_t __loc) noexcept (true); 29761: 29761: __extension__ 29761: extern long long int wcstoll_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: int __base, locale_t __loc) noexcept (true); 29761: 29761: __extension__ 29761: extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: int __base, locale_t __loc) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 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") 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: ; 29761: __extension__ 29761: 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") 29761: 29761: 29761: 29761: ; 29761: __extension__ 29761: 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") 29761: 29761: 29761: 29761: ; 29761: # 630 "/usr/include/wchar.h" 3 4 29761: extern double wcstod_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, locale_t __loc) 29761: noexcept (true); 29761: 29761: extern float wcstof_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, locale_t __loc) 29761: noexcept (true); 29761: 29761: extern long double wcstold_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: locale_t __loc) noexcept (true); 29761: # 649 "/usr/include/wchar.h" 3 4 29761: extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: locale_t __loc) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: locale_t __loc) noexcept (true); 29761: # 667 "/usr/include/wchar.h" 3 4 29761: extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, 29761: locale_t __loc) noexcept (true); 29761: # 689 "/usr/include/wchar.h" 3 4 29761: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src) noexcept (true); 29761: 29761: 29761: 29761: extern wchar_t *wcpncpy (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n) 29761: noexcept (true); 29761: # 718 "/usr/include/wchar.h" 3 4 29761: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 29761: __attribute__ ((__malloc__)) ; 29761: 29761: 29761: 29761: 29761: 29761: extern int fwide (__FILE *__fp, int __mode) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fwprintf (__FILE *__restrict __stream, 29761: const wchar_t *__restrict __format, ...) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int wprintf (const wchar_t *__restrict __format, ...) 29761: ; 29761: 29761: extern int swprintf (wchar_t *__restrict __s, size_t __n, 29761: const wchar_t *__restrict __format, ...) 29761: noexcept (true) ; 29761: 29761: 29761: 29761: 29761: 29761: extern int vfwprintf (__FILE *__restrict __s, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int vwprintf (const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: ; 29761: 29761: 29761: extern int vswprintf (wchar_t *__restrict __s, size_t __n, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: noexcept (true) ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fwscanf (__FILE *__restrict __stream, 29761: const wchar_t *__restrict __format, ...) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int wscanf (const wchar_t *__restrict __format, ...) 29761: ; 29761: 29761: extern int swscanf (const wchar_t *__restrict __s, 29761: const wchar_t *__restrict __format, ...) 29761: noexcept (true) ; 29761: # 795 "/usr/include/wchar.h" 3 4 29761: extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_fwscanf") 29761: 29761: 29761: ; 29761: extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc23_wscanf") 29761: 29761: ; 29761: extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_swscanf") 29761: 29761: 29761: ; 29761: # 851 "/usr/include/wchar.h" 3 4 29761: extern int vfwscanf (__FILE *__restrict __s, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int vwscanf (const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: ; 29761: 29761: extern int vswscanf (const wchar_t *__restrict __s, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: noexcept (true) ; 29761: # 875 "/usr/include/wchar.h" 3 4 29761: extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfwscanf") 29761: 29761: 29761: ; 29761: extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vwscanf") 29761: 29761: ; 29761: extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vswscanf") 29761: 29761: 29761: ; 29761: # 935 "/usr/include/wchar.h" 3 4 29761: extern wint_t fgetwc (__FILE *__stream); 29761: extern wint_t getwc (__FILE *__stream); 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t getwchar (void); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t fputwc (wchar_t __wc, __FILE *__stream); 29761: extern wint_t putwc (wchar_t __wc, __FILE *__stream); 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t putwchar (wchar_t __wc); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, 29761: __FILE *__restrict __stream); 29761: 29761: 29761: 29761: 29761: 29761: extern int fputws (const wchar_t *__restrict __ws, 29761: __FILE *__restrict __stream); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t ungetwc (wint_t __wc, __FILE *__stream); 29761: # 990 "/usr/include/wchar.h" 3 4 29761: extern wint_t getwc_unlocked (__FILE *__stream); 29761: extern wint_t getwchar_unlocked (void); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t fgetwc_unlocked (__FILE *__stream); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); 29761: # 1016 "/usr/include/wchar.h" 3 4 29761: extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); 29761: extern wint_t putwchar_unlocked (wchar_t __wc); 29761: # 1026 "/usr/include/wchar.h" 3 4 29761: extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, 29761: __FILE *__restrict __stream); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fputws_unlocked (const wchar_t *__restrict __ws, 29761: __FILE *__restrict __stream); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, 29761: const wchar_t *__restrict __format, 29761: const struct tm *__restrict __tp) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, 29761: const wchar_t *__restrict __format, 29761: const struct tm *__restrict __tp, 29761: locale_t __loc) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/wchar2-decl.h" 3 4 29761: extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, 29761: const wchar_t *__restrict __s2, size_t __n, 29761: size_t __ns1) noexcept (true); 29761: extern wchar_t *__wmemcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmemcpy") 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wmemcpy called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, 29761: size_t __n, size_t __ns1) noexcept (true); 29761: extern wchar_t *__wmemmove_alias (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __asm__ ("" "wmemmove") 29761: 29761: ; 29761: extern wchar_t *__wmemmove_chk_warn (wchar_t *__s1, const wchar_t *__s2, size_t __n, size_t __ns1) noexcept (true) __asm__ ("" "__wmemmove_chk") 29761: 29761: 29761: __attribute__((__warning__ ("wmemmove called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: 29761: 29761: 29761: extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, 29761: const wchar_t *__restrict __s2, size_t __n, 29761: size_t __ns1) noexcept (true); 29761: extern wchar_t *__wmempcpy_alias (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) __asm__ ("" "wmempcpy") 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wmempcpy called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: 29761: 29761: 29761: extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, 29761: size_t __ns) noexcept (true); 29761: extern wchar_t *__wmemset_alias (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm__ ("" "wmemset") 29761: ; 29761: extern wchar_t *__wmemset_chk_warn (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) noexcept (true) __asm__ ("" "__wmemset_chk") 29761: 29761: 29761: __attribute__((__warning__ ("wmemset called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, 29761: size_t __n) noexcept (true); 29761: extern wchar_t *__wcscpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscpy") 29761: 29761: ; 29761: 29761: extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, 29761: size_t __destlen) noexcept (true); 29761: extern wchar_t *__wcpcpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcpcpy") 29761: 29761: ; 29761: 29761: extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: extern wchar_t *__wcsncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncpy") 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wcsncpy called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: 29761: extern wchar_t *__wcpncpy_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcpncpy") 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wcpncpy called with length bigger than size of destination " "buffer"))) 29761: ; 29761: 29761: extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, 29761: size_t __destlen) noexcept (true); 29761: extern wchar_t *__wcscat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __asm__ ("" "wcscat") 29761: 29761: ; 29761: 29761: extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, 29761: const wchar_t *__restrict __src, 29761: size_t __n, size_t __destlen) noexcept (true); 29761: extern wchar_t *__wcsncat_alias (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __asm__ ("" "wcsncat") 29761: 29761: 29761: ; 29761: 29761: extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, 29761: int __flag, size_t __s_len, 29761: const wchar_t *__restrict __format, ...) 29761: noexcept (true) ; 29761: extern int __swprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) __asm__ ("" "swprintf") 29761: 29761: 29761: ; 29761: 29761: extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, 29761: int __flag, size_t __s_len, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __arg) 29761: noexcept (true) ; 29761: extern int __vswprintf_alias (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) __asm__ ("" "vswprintf") 29761: 29761: 29761: ; 29761: 29761: 29761: 29761: 29761: extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, 29761: const wchar_t *__restrict __format, ...); 29761: extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, 29761: ...); 29761: extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, 29761: const wchar_t *__restrict __format, 29761: __gnuc_va_list __ap); 29761: extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, 29761: __gnuc_va_list __ap); 29761: 29761: 29761: 29761: extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, 29761: __FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)); 29761: extern wchar_t *__fgetws_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws") 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: extern wchar_t *__fgetws_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws called with bigger size than length " "of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, 29761: int __n, __FILE *__restrict __stream) 29761: __attribute__ ((__warn_unused_result__)); 29761: extern wchar_t *__fgetws_unlocked_alias (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) __asm__ ("" "fgetws_unlocked") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: extern wchar_t *__fgetws_unlocked_chk_warn (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __asm__ ("" "__fgetws_unlocked_chk") 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgetws_unlocked called with bigger size than length " "of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, 29761: mbstate_t *__restrict __p, 29761: size_t __buflen) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: extern size_t __wcrtomb_alias (char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcrtomb") 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: 29761: extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, 29761: const char **__restrict __src, 29761: size_t __len, mbstate_t *__restrict __ps, 29761: size_t __dstlen) noexcept (true); 29761: extern size_t __mbsrtowcs_alias (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "mbsrtowcs") 29761: 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: 29761: __attribute__((__warning__ ("mbsrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29761: ; 29761: 29761: extern size_t __wcsrtombs_chk (char *__restrict __dst, 29761: const wchar_t **__restrict __src, 29761: size_t __len, mbstate_t *__restrict __ps, 29761: size_t __dstlen) noexcept (true); 29761: extern size_t __wcsrtombs_alias (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) __asm__ ("" "wcsrtombs") 29761: 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wcsrtombs called with dst buffer smaller than len"))); 29761: 29761: 29761: 29761: extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, 29761: const char **__restrict __src, size_t __nmc, 29761: size_t __len, mbstate_t *__restrict __ps, 29761: size_t __dstlen) noexcept (true); 29761: 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") 29761: 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: 29761: __attribute__((__warning__ ("mbsnrtowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29761: ; 29761: 29761: extern size_t __wcsnrtombs_chk (char *__restrict __dst, 29761: const wchar_t **__restrict __src, 29761: size_t __nwc, size_t __len, 29761: mbstate_t *__restrict __ps, size_t __dstlen) 29761: noexcept (true); 29761: 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") 29761: 29761: 29761: 29761: ; 29761: 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") 29761: 29761: 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wcsnrtombs called with dst buffer smaller than len"))); 29761: 29761: 29761: 29761: 29761: extern size_t __wcslcpy_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: extern size_t __wcslcpy_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcpy") 29761: 29761: ; 29761: 29761: extern size_t __wcslcat_chk (wchar_t *__dest, const wchar_t *__src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: extern size_t __wcslcat_alias (wchar_t *__dest, const wchar_t *__src, size_t __n) noexcept (true) __asm__ ("" "wcslcat") 29761: 29761: ; 29761: # 1060 "/usr/include/wchar.h" 2 3 4 29761: # 1070 "/usr/include/wchar.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wmemcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmemcpy_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmemcpy_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wmemmove (wchar_t * __s1, const wchar_t *__s2, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmemmove_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmemmove_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wmempcpy (wchar_t * __restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__s1, 0)) && (__builtin_object_size (__s1, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s1, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t)))) ? __wmempcpy_chk_warn (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))) : __wmempcpy_chk (__s1, __s2, __n, (__builtin_object_size (__s1, 0)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wmemset (wchar_t * __s, wchar_t __c, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__s, 0)) && (__builtin_object_size (__s, 0)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__s, 0))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_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 ((((unsigned int) (__n)) <= (__builtin_object_size (__s, 0)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__s, 0)) / (sizeof (wchar_t)))) ? __wmemset_chk_warn (__s, __c, __n, (__builtin_object_size (__s, 0)) / (sizeof (wchar_t))) : __wmemset_chk (__s, __c, __n, (__builtin_object_size (__s, 0)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcscpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29761: if (__sz != (size_t) -1) 29761: return __wcscpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 29761: return __wcscpy_alias (__dest, __src); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcpcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29761: if (__sz != (size_t) -1) 29761: return __wcpcpy_chk (__dest, __src, __sz / sizeof (wchar_t)); 29761: return __wcpcpy_alias (__dest, __src); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcsncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dest, 2 > 1)) && (__builtin_object_size (__dest, 2 > 1)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t)))))) ? __wcsncpy_alias (__dest, __src, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) ? __wcsncpy_chk_warn (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))) : __wcsncpy_chk (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcpncpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dest, 2 > 1)) && (__builtin_object_size (__dest, 2 > 1)) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__builtin_object_size (__dest, 2 > 1))) / ((sizeof (wchar_t)))))) ? __wcpncpy_alias (__dest, __src, __n) : ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t)))) ? __wcpncpy_chk_warn (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))) : __wcpncpy_chk (__dest, __src, __n, (__builtin_object_size (__dest, 2 > 1)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcscat (wchar_t * __restrict __dest, const wchar_t *__restrict __src) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29761: if (__sz != (size_t) -1) 29761: return __wcscat_chk (__dest, __src, __sz / sizeof (wchar_t)); 29761: return __wcscat_alias (__dest, __src); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) wchar_t * 29761: __attribute__ ((__leaf__)) wcsncat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__dest, 2 > 1); 29761: if (__sz != (size_t) -1) 29761: return __wcsncat_chk (__dest, __src, __n, __sz / sizeof (wchar_t)); 29761: return __wcsncat_alias (__dest, __src, __n); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) wcslcpy (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29761: && (!__builtin_constant_p (__n 29761: > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)) 29761: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 29761: return __wcslcpy_chk (__dest, __src, __n, 29761: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 29761: return __wcslcpy_alias (__dest, __src, __n); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) wcslcat (wchar_t * __restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) 29761: 29761: { 29761: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29761: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1) 29761: / sizeof (wchar_t)) 29761: || __n > __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t))) 29761: return __wcslcat_chk (__dest, __src, __n, 29761: __builtin_object_size (__dest, 2 > 1) / sizeof (wchar_t)); 29761: return __wcslcat_alias (__dest, __src, __n); 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, ...) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (__sz != (size_t) -1 || 2 > 1) 29761: return __swprintf_chk (__s, __n, 2 - 1, 29761: __sz / sizeof (wchar_t), __fmt, __builtin_va_arg_pack ()); 29761: return __swprintf_alias (__s, __n, __fmt, __builtin_va_arg_pack ()); 29761: } 29761: # 205 "/usr/include/arm-linux-gnueabihf/bits/wchar2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (__sz != (size_t) -1 || 2 > 1) 29761: return __vswprintf_chk (__s, __n, 2 - 1, 29761: __sz / sizeof (wchar_t), __fmt, __ap); 29761: return __vswprintf_alias (__s, __n, __fmt, __ap); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: wprintf (const wchar_t *__restrict __fmt, ...) 29761: { 29761: return __wprintf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) 29761: { 29761: return __fwprintf_chk (__stream, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 29761: { 29761: return __vwprintf_chk (2 - 1, __fmt, __ap); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: vfwprintf (__FILE *__restrict __stream, 29761: const wchar_t *__restrict __fmt, __gnuc_va_list __ap) 29761: { 29761: return __vfwprintf_chk (__stream, 2 - 1, __fmt, __ap); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 29761: fgetws (wchar_t * __restrict __s, int __n, 29761: __FILE *__restrict __stream) 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))))) 29761: return __fgetws_alias (__s, __n, __stream); 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t))))) 29761: return __fgetws_chk_warn (__s, __sz / sizeof (wchar_t), __n, __stream); 29761: 29761: return __fgetws_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) wchar_t * 29761: fgetws_unlocked (wchar_t * __restrict __s, 29761: int __n, __FILE *__restrict __stream) 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (wchar_t))))))) 29761: return __fgetws_unlocked_alias (__s, __n, __stream); 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (wchar_t))))) 29761: return __fgetws_unlocked_chk_warn (__s, __sz / sizeof (wchar_t), __n, 29761: __stream); 29761: 29761: return __fgetws_unlocked_chk (__s, __sz / sizeof (wchar_t), __n, __stream); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) size_t 29761: __attribute__ ((__leaf__)) wcrtomb (char * __restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 29761: && 16 > __builtin_object_size (__s, 2 > 1)) 29761: return __wcrtomb_chk (__s, __wchar, __ps, __builtin_object_size (__s, 2 > 1)); 29761: return __wcrtomb_alias (__s, __wchar, __ps); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) mbsrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbsrtowcs_chk_warn (__dst, __src, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbsrtowcs_chk (__dst, __src, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) wcsrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char)))))) ? __wcsrtombs_alias (__dst, __src, __len, __ps) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcsrtombs_chk_warn (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)) : __wcsrtombs_chk (__dst, __src, __len, __ps, __builtin_object_size (__dst, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) mbsnrtowcs (wchar_t * __restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbsnrtowcs_chk_warn (__dst, __src, __nmc, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbsnrtowcs_chk (__dst, __src, __nmc, __len, __ps, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29761: 29761: ; 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) wcsnrtombs (char * __restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 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 ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcsnrtombs_chk_warn (__dst, __src, __nwc, __len, __ps, __builtin_object_size (__dst, 2 > 1)) : __wcsnrtombs_chk (__dst, __src, __nwc, __len, __ps, __builtin_object_size (__dst, 2 > 1)))) 29761: 29761: ; 29761: } 29761: # 1071 "/usr/include/wchar.h" 2 3 4 29761: 29761: 29761: } 29761: # 45 "/usr/include/c++/14/cwchar" 2 3 29761: # 62 "/usr/include/c++/14/cwchar" 3 29761: namespace std 29761: { 29761: using ::mbstate_t; 29761: } 29761: # 135 "/usr/include/c++/14/cwchar" 3 29761: extern "C++" 29761: { 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: using ::wint_t; 29761: 29761: using ::btowc; 29761: using ::fgetwc; 29761: using ::fgetws; 29761: using ::fputwc; 29761: using ::fputws; 29761: using ::fwide; 29761: using ::fwprintf; 29761: using ::fwscanf; 29761: using ::getwc; 29761: using ::getwchar; 29761: using ::mbrlen; 29761: using ::mbrtowc; 29761: using ::mbsinit; 29761: using ::mbsrtowcs; 29761: using ::putwc; 29761: using ::putwchar; 29761: 29761: using ::swprintf; 29761: 29761: using ::swscanf; 29761: using ::ungetwc; 29761: using ::vfwprintf; 29761: 29761: using ::vfwscanf; 29761: 29761: 29761: using ::vswprintf; 29761: 29761: 29761: using ::vswscanf; 29761: 29761: using ::vwprintf; 29761: 29761: using ::vwscanf; 29761: 29761: using ::wcrtomb; 29761: using ::wcscat; 29761: using ::wcscmp; 29761: using ::wcscoll; 29761: using ::wcscpy; 29761: using ::wcscspn; 29761: using ::wcsftime; 29761: using ::wcslen; 29761: using ::wcsncat; 29761: using ::wcsncmp; 29761: using ::wcsncpy; 29761: using ::wcsrtombs; 29761: using ::wcsspn; 29761: using ::wcstod; 29761: 29761: using ::wcstof; 29761: 29761: using ::wcstok; 29761: using ::wcstol; 29761: using ::wcstoul; 29761: using ::wcsxfrm; 29761: using ::wctob; 29761: using ::wmemcmp; 29761: using ::wmemcpy; 29761: using ::wmemmove; 29761: using ::wmemset; 29761: using ::wprintf; 29761: using ::wscanf; 29761: using ::wcschr; 29761: using ::wcspbrk; 29761: using ::wcsrchr; 29761: using ::wcsstr; 29761: using ::wmemchr; 29761: # 234 "/usr/include/c++/14/cwchar" 3 29761: 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __gnu_cxx 29761: { 29761: 29761: 29761: 29761: 29761: 29761: using ::wcstold; 29761: # 260 "/usr/include/c++/14/cwchar" 3 29761: using ::wcstoll; 29761: using ::wcstoull; 29761: 29761: } 29761: 29761: namespace std 29761: { 29761: using ::__gnu_cxx::wcstold; 29761: using ::__gnu_cxx::wcstoll; 29761: using ::__gnu_cxx::wcstoull; 29761: } 29761: # 280 "/usr/include/c++/14/cwchar" 3 29761: namespace std 29761: { 29761: 29761: using std::wcstof; 29761: 29761: 29761: using std::vfwscanf; 29761: 29761: 29761: using std::vswscanf; 29761: 29761: 29761: using std::vwscanf; 29761: 29761: 29761: 29761: using std::wcstold; 29761: using std::wcstoll; 29761: using std::wcstoull; 29761: 29761: } 29761: # 41 "/usr/include/c++/14/bits/postypes.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 62 "/usr/include/c++/14/bits/postypes.h" 3 29761: typedef long long int streamoff; 29761: 29761: 29761: 29761: 29761: 29761: typedef ptrdiff_t streamsize; 29761: # 81 "/usr/include/c++/14/bits/postypes.h" 3 29761: template 29761: class fpos 29761: { 29761: private: 29761: streamoff _M_off; 29761: _StateT _M_state; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: fpos() 29761: : _M_off(0), _M_state() { } 29761: # 103 "/usr/include/c++/14/bits/postypes.h" 3 29761: fpos(streamoff __off) 29761: : _M_off(__off), _M_state() { } 29761: 29761: 29761: fpos(const fpos&) = default; 29761: fpos& operator=(const fpos&) = default; 29761: ~fpos() = default; 29761: 29761: 29761: 29761: operator streamoff() const { return _M_off; } 29761: 29761: 29761: void 29761: state(_StateT __st) 29761: { _M_state = __st; } 29761: 29761: 29761: _StateT 29761: state() const 29761: { return _M_state; } 29761: 29761: 29761: 29761: 29761: 29761: fpos& 29761: operator+=(streamoff __off) 29761: { 29761: _M_off += __off; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: fpos& 29761: operator-=(streamoff __off) 29761: { 29761: _M_off -= __off; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: fpos 29761: operator+(streamoff __off) const 29761: { 29761: fpos __pos(*this); 29761: __pos += __off; 29761: return __pos; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: fpos 29761: operator-(streamoff __off) const 29761: { 29761: fpos __pos(*this); 29761: __pos -= __off; 29761: return __pos; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: streamoff 29761: operator-(const fpos& __other) const 29761: { return _M_off - __other._M_off; } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 29761: { return streamoff(__lhs) == streamoff(__rhs); } 29761: 29761: template 29761: inline bool 29761: operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) 29761: { return streamoff(__lhs) != streamoff(__rhs); } 29761: 29761: 29761: 29761: 29761: 29761: typedef fpos streampos; 29761: 29761: typedef fpos wstreampos; 29761: # 215 "/usr/include/c++/14/bits/postypes.h" 3 29761: typedef fpos u16streampos; 29761: 29761: typedef fpos u32streampos; 29761: 29761: 29761: 29761: } 29761: # 43 "/usr/include/c++/14/iosfwd" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 76 "/usr/include/c++/14/iosfwd" 3 29761: class ios_base; 29761: 29761: template > 29761: class basic_ios; 29761: 29761: template > 29761: class basic_streambuf; 29761: 29761: template > 29761: class basic_istream; 29761: 29761: template > 29761: class basic_ostream; 29761: 29761: template > 29761: class basic_iostream; 29761: 29761: 29761: namespace __cxx11 { 29761: 29761: template, 29761: typename _Alloc = allocator<_CharT> > 29761: class basic_stringbuf; 29761: 29761: template, 29761: typename _Alloc = allocator<_CharT> > 29761: class basic_istringstream; 29761: 29761: template, 29761: typename _Alloc = allocator<_CharT> > 29761: class basic_ostringstream; 29761: 29761: template, 29761: typename _Alloc = allocator<_CharT> > 29761: class basic_stringstream; 29761: 29761: } 29761: 29761: template > 29761: class basic_filebuf; 29761: 29761: template > 29761: class basic_ifstream; 29761: 29761: template > 29761: class basic_ofstream; 29761: 29761: template > 29761: class basic_fstream; 29761: 29761: template > 29761: class istreambuf_iterator; 29761: 29761: template > 29761: class ostreambuf_iterator; 29761: 29761: 29761: 29761: typedef basic_ios ios; 29761: 29761: 29761: typedef basic_streambuf streambuf; 29761: 29761: 29761: typedef basic_istream istream; 29761: 29761: 29761: typedef basic_ostream ostream; 29761: 29761: 29761: typedef basic_iostream iostream; 29761: 29761: 29761: typedef basic_stringbuf stringbuf; 29761: 29761: 29761: typedef basic_istringstream istringstream; 29761: 29761: 29761: typedef basic_ostringstream ostringstream; 29761: 29761: 29761: typedef basic_stringstream stringstream; 29761: 29761: 29761: typedef basic_filebuf filebuf; 29761: 29761: 29761: typedef basic_ifstream ifstream; 29761: 29761: 29761: typedef basic_ofstream ofstream; 29761: 29761: 29761: typedef basic_fstream fstream; 29761: 29761: 29761: 29761: typedef basic_ios wios; 29761: 29761: 29761: typedef basic_streambuf wstreambuf; 29761: 29761: 29761: typedef basic_istream wistream; 29761: 29761: 29761: typedef basic_ostream wostream; 29761: 29761: 29761: typedef basic_iostream wiostream; 29761: 29761: 29761: typedef basic_stringbuf wstringbuf; 29761: 29761: 29761: typedef basic_istringstream wistringstream; 29761: 29761: 29761: typedef basic_ostringstream wostringstream; 29761: 29761: 29761: typedef basic_stringstream wstringstream; 29761: 29761: 29761: typedef basic_filebuf wfilebuf; 29761: 29761: 29761: typedef basic_ifstream wifstream; 29761: 29761: 29761: typedef basic_ofstream wofstream; 29761: 29761: 29761: typedef basic_fstream wfstream; 29761: # 255 "/usr/include/c++/14/iosfwd" 3 29761: 29761: } 29761: # 53 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/shared_ptr_base.h" 1 3 29761: # 53 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: # 1 "/usr/include/c++/14/bits/allocated_ptr.h" 1 3 29761: # 40 "/usr/include/c++/14/bits/allocated_ptr.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: struct __allocated_ptr 29761: { 29761: using pointer = typename allocator_traits<_Alloc>::pointer; 29761: using value_type = typename allocator_traits<_Alloc>::value_type; 29761: 29761: 29761: __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept 29761: : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) 29761: { } 29761: 29761: 29761: template>> 29761: __allocated_ptr(_Alloc& __a, _Ptr __ptr) 29761: : _M_alloc(std::__addressof(__a)), 29761: _M_ptr(pointer_traits::pointer_to(*__ptr)) 29761: { } 29761: 29761: 29761: __allocated_ptr(__allocated_ptr&& __gd) noexcept 29761: : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) 29761: { __gd._M_ptr = nullptr; } 29761: 29761: 29761: ~__allocated_ptr() 29761: { 29761: if (_M_ptr != nullptr) 29761: std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); 29761: } 29761: 29761: 29761: __allocated_ptr& 29761: operator=(std::nullptr_t) noexcept 29761: { 29761: _M_ptr = nullptr; 29761: return *this; 29761: } 29761: 29761: 29761: value_type* get() { return std::__to_address(_M_ptr); } 29761: 29761: private: 29761: _Alloc* _M_alloc; 29761: pointer _M_ptr; 29761: }; 29761: 29761: 29761: template 29761: __allocated_ptr<_Alloc> 29761: __allocate_guarded(_Alloc& __a) 29761: { 29761: return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 54 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ext/atomicity.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/atomicity.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/atomicity.h" 3 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 1 3 29761: # 30 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 29761: #pragma GCC visibility push(default) 29761: # 157 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 1 3 29761: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: # 1 "/usr/include/pthread.h" 1 3 4 29761: # 22 "/usr/include/pthread.h" 3 4 29761: # 1 "/usr/include/sched.h" 1 3 4 29761: # 29 "/usr/include/sched.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 30 "/usr/include/sched.h" 2 3 4 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/time_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __time64_t time_t; 29761: # 32 "/usr/include/sched.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 1 3 4 29761: # 35 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/endianness.h" 1 3 4 29761: # 36 "/usr/include/arm-linux-gnueabihf/bits/endian.h" 2 3 4 29761: # 7 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 2 3 4 29761: 29761: 29761: 29761: 29761: struct timespec 29761: { 29761: 29761: __time64_t tv_sec; 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timespec.h" 3 4 29761: long int tv_nsec; 29761: int: 32; 29761: 29761: 29761: }; 29761: # 33 "/usr/include/sched.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: typedef __pid_t pid_t; 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 1 3 4 29761: # 80 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_sched_param.h" 3 4 29761: struct sched_param 29761: { 29761: int sched_priority; 29761: }; 29761: # 81 "/usr/include/arm-linux-gnueabihf/bits/sched.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: extern int clone (int (*__fn) (void *__arg), void *__child_stack, 29761: int __flags, void *__arg, ...) noexcept (true); 29761: 29761: 29761: extern int unshare (int __flags) noexcept (true); 29761: 29761: 29761: extern int sched_getcpu (void) noexcept (true); 29761: 29761: 29761: extern int getcpu (unsigned int *, unsigned int *) noexcept (true); 29761: 29761: 29761: extern int setns (int __fd, int __nstype) noexcept (true); 29761: 29761: 29761: } 29761: # 44 "/usr/include/sched.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 1 3 4 29761: # 32 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 29761: typedef unsigned long int __cpu_mask; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef struct 29761: { 29761: __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; 29761: } cpu_set_t; 29761: # 115 "/usr/include/arm-linux-gnueabihf/bits/cpu-set.h" 3 4 29761: extern "C" { 29761: 29761: extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 29761: noexcept (true); 29761: extern cpu_set_t *__sched_cpualloc (size_t __count) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: extern void __sched_cpufree (cpu_set_t *__set) noexcept (true); 29761: 29761: } 29761: # 45 "/usr/include/sched.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: 29761: 29761: extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) 29761: noexcept (true); 29761: 29761: 29761: extern int sched_getparam (__pid_t __pid, struct sched_param *__param) noexcept (true); 29761: 29761: 29761: extern int sched_setscheduler (__pid_t __pid, int __policy, 29761: const struct sched_param *__param) noexcept (true); 29761: 29761: 29761: extern int sched_getscheduler (__pid_t __pid) noexcept (true); 29761: 29761: 29761: extern int sched_yield (void) noexcept (true); 29761: 29761: 29761: extern int sched_get_priority_max (int __algorithm) noexcept (true); 29761: 29761: 29761: extern int sched_get_priority_min (int __algorithm) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) noexcept (true) __asm__ ("" "__sched_rr_get_interval64") 29761: 29761: ; 29761: # 130 "/usr/include/sched.h" 3 4 29761: extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, 29761: const cpu_set_t *__cpuset) noexcept (true); 29761: 29761: 29761: extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, 29761: cpu_set_t *__cpuset) noexcept (true); 29761: 29761: 29761: } 29761: # 23 "/usr/include/pthread.h" 2 3 4 29761: # 1 "/usr/include/time.h" 1 3 4 29761: # 29 "/usr/include/time.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 30 "/usr/include/time.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/time.h" 1 3 4 29761: # 73 "/usr/include/arm-linux-gnueabihf/bits/time.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 1 3 4 29761: # 22 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_timeval.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct timeval 29761: { 29761: 29761: __time64_t tv_sec; 29761: __suseconds64_t tv_usec; 29761: 29761: 29761: 29761: 29761: }; 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 2 3 4 29761: 29761: 29761: 29761: struct timex 29761: { 29761: 29761: unsigned int modes; 29761: int :32; 29761: long long offset; 29761: long long freq; 29761: long long maxerror; 29761: long long esterror; 29761: int status; 29761: int :32; 29761: long long constant; 29761: long long precision; 29761: long long tolerance; 29761: struct timeval time; 29761: long long tick; 29761: long long ppsfreq; 29761: long long jitter; 29761: int shift; 29761: int :32; 29761: long long stabil; 29761: long long jitcnt; 29761: long long calcnt; 29761: long long errcnt; 29761: long long stbcnt; 29761: 29761: int tai; 29761: 29761: int :32; int :32; int :32; int :32; 29761: int :32; int :32; int :32; int :32; 29761: int :32; int :32; int :32; 29761: # 85 "/usr/include/arm-linux-gnueabihf/bits/timex.h" 3 4 29761: }; 29761: # 74 "/usr/include/arm-linux-gnueabihf/bits/time.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true) __asm__ ("" "__clock_adjtime64") 29761: 29761: __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 34 "/usr/include/time.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clock_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __clock_t clock_t; 29761: # 38 "/usr/include/time.h" 2 3 4 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_tm.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct tm 29761: { 29761: int tm_sec; 29761: int tm_min; 29761: int tm_hour; 29761: int tm_mday; 29761: int tm_mon; 29761: int tm_year; 29761: int tm_wday; 29761: int tm_yday; 29761: int tm_isdst; 29761: 29761: 29761: long int tm_gmtoff; 29761: const char *tm_zone; 29761: 29761: 29761: 29761: 29761: }; 29761: # 40 "/usr/include/time.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/clockid_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __clockid_t clockid_t; 29761: # 47 "/usr/include/time.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/timer_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __timer_t timer_t; 29761: # 48 "/usr/include/time.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_itimerspec.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct itimerspec 29761: { 29761: struct timespec it_interval; 29761: struct timespec it_value; 29761: }; 29761: # 49 "/usr/include/time.h" 2 3 4 29761: struct sigevent; 29761: # 68 "/usr/include/time.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: extern clock_t clock (void) noexcept (true); 29761: # 85 "/usr/include/time.h" 3 4 29761: extern time_t time (time_t *__timer) noexcept (true) __asm__ ("" "__time64"); 29761: extern double difftime (time_t __time1, time_t __time0) noexcept (true) __asm__ ("" "__difftime64") 29761: ; 29761: extern time_t mktime (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 29761: # 99 "/usr/include/time.h" 3 4 29761: extern size_t strftime (char *__restrict __s, size_t __maxsize, 29761: const char *__restrict __format, 29761: const struct tm *__restrict __tp) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3, 4))); 29761: 29761: 29761: 29761: 29761: extern char *strptime (const char *__restrict __s, 29761: const char *__restrict __fmt, struct tm *__tp) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern size_t strftime_l (char *__restrict __s, size_t __maxsize, 29761: const char *__restrict __format, 29761: const struct tm *__restrict __tp, 29761: locale_t __loc) noexcept (true); 29761: 29761: 29761: 29761: extern char *strptime_l (const char *__restrict __s, 29761: const char *__restrict __fmt, struct tm *__tp, 29761: locale_t __loc) noexcept (true); 29761: # 140 "/usr/include/time.h" 3 4 29761: extern struct tm*gmtime (const time_t *__timer) noexcept (true) __asm__ ("" "__gmtime64"); 29761: extern struct tm *localtime (const time_t *__timer) noexcept (true) __asm__ ("" "__localtime64") 29761: ; 29761: # 163 "/usr/include/time.h" 3 4 29761: extern struct tm*gmtime_r (const time_t *__restrict __timer, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__gmtime64_r") 29761: 29761: ; 29761: 29761: extern struct tm*localtime_r (const time_t *__restrict __t, struct tm *__restrict __tp) noexcept (true) __asm__ ("" "__localtime64_r") 29761: 29761: ; 29761: # 179 "/usr/include/time.h" 3 4 29761: extern char *asctime (const struct tm *__tp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *ctime (const time_t *__timer) noexcept (true) __asm__ ("" "__ctime64"); 29761: # 197 "/usr/include/time.h" 3 4 29761: extern char *asctime_r (const struct tm *__restrict __tp, 29761: char *__restrict __buf) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *ctime_r (const time_t *__restrict __timer, char *__restrict __buf) noexcept (true) __asm__ ("" "__ctime64_r") 29761: ; 29761: # 217 "/usr/include/time.h" 3 4 29761: extern char *__tzname[2]; 29761: extern int __daylight; 29761: extern long int __timezone; 29761: 29761: 29761: 29761: 29761: extern char *tzname[2]; 29761: 29761: 29761: 29761: extern void tzset (void) noexcept (true); 29761: 29761: 29761: 29761: extern int daylight; 29761: extern long int timezone; 29761: # 249 "/usr/include/time.h" 3 4 29761: extern time_t timegm (struct tm *__tp) noexcept (true) __asm__ ("" "__timegm64"); 29761: # 266 "/usr/include/time.h" 3 4 29761: extern time_t timelocal (struct tm *__tp) noexcept (true) __asm__ ("" "__mktime64"); 29761: 29761: 29761: 29761: 29761: extern int dysize (int __year) noexcept (true) __attribute__ ((__const__)); 29761: # 296 "/usr/include/time.h" 3 4 29761: extern int nanosleep (const struct timespec *__requested_time, struct timespec *__remaining) __asm__ ("" "__nanosleep64") 29761: 29761: ; 29761: extern int clock_getres (clockid_t __clock_id, struct timespec *__res) noexcept (true) __asm__ ("" "__clock_getres64") 29761: 29761: ; 29761: extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_gettime64") 29761: 29761: __attribute__ ((__nonnull__ (2))); 29761: extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) noexcept (true) __asm__ ("" "__clock_settime64") 29761: 29761: __attribute__ ((__nonnull__ (2))); 29761: # 328 "/usr/include/time.h" 3 4 29761: extern int clock_nanosleep (clockid_t __clock_id, int __flags, const struct timespec *__req, struct timespec *__rem) __asm__ ("" "__clock_nanosleep_time64") 29761: 29761: 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int timer_create (clockid_t __clock_id, 29761: struct sigevent *__restrict __evp, 29761: timer_t *__restrict __timerid) noexcept (true); 29761: 29761: 29761: extern int timer_delete (timer_t __timerid) noexcept (true); 29761: # 361 "/usr/include/time.h" 3 4 29761: extern int timer_settime (timer_t __timerid, int __flags, const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) noexcept (true) __asm__ ("" "__timer_settime64") 29761: 29761: 29761: ; 29761: 29761: extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) noexcept (true) __asm__ ("" "__timer_gettime64") 29761: 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int timer_getoverrun (timer_t __timerid) noexcept (true); 29761: # 387 "/usr/include/time.h" 3 4 29761: extern int timespec_get (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_get64") 29761: __attribute__ ((__nonnull__ (1))); 29761: # 403 "/usr/include/time.h" 3 4 29761: extern int timespec_getres (struct timespec *__ts, int __base) noexcept (true) __asm__ ("" "__timespec_getres64") 29761: 29761: ; 29761: # 425 "/usr/include/time.h" 3 4 29761: extern int getdate_err; 29761: # 434 "/usr/include/time.h" 3 4 29761: extern struct tm *getdate (const char *__string); 29761: # 448 "/usr/include/time.h" 3 4 29761: extern int getdate_r (const char *__restrict __string, 29761: struct tm *__restrict __resbufp); 29761: 29761: 29761: } 29761: # 24 "/usr/include/pthread.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 1 3 4 29761: # 44 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h" 2 3 4 29761: # 45 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 1 3 4 29761: # 25 "/usr/include/arm-linux-gnueabihf/bits/atomic_wide_counter.h" 3 4 29761: typedef union 29761: { 29761: __extension__ unsigned long long int __value64; 29761: struct 29761: { 29761: unsigned int __low; 29761: unsigned int __high; 29761: } __value32; 29761: } __atomic_wide_counter; 29761: # 47 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29761: 29761: 29761: 29761: 29761: typedef struct __pthread_internal_list 29761: { 29761: struct __pthread_internal_list *__prev; 29761: struct __pthread_internal_list *__next; 29761: } __pthread_list_t; 29761: 29761: typedef struct __pthread_internal_slist 29761: { 29761: struct __pthread_internal_slist *__next; 29761: } __pthread_slist_t; 29761: # 76 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 29761: struct __pthread_mutex_s 29761: { 29761: int __lock ; 29761: unsigned int __count; 29761: int __owner; 29761: # 58 "/usr/include/arm-linux-gnueabihf/bits/struct_mutex.h" 3 4 29761: int __kind; 29761: 29761: unsigned int __nusers; 29761: 29761: 29761: 29761: 29761: 29761: 29761: __extension__ union 29761: { 29761: int __spins; 29761: __pthread_slist_t __list; 29761: }; 29761: 29761: 29761: }; 29761: # 77 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29761: # 89 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 1 3 4 29761: # 29 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 29761: struct __pthread_rwlock_arch_t 29761: { 29761: unsigned int __readers; 29761: unsigned int __writers; 29761: unsigned int __wrphase_futex; 29761: unsigned int __writers_futex; 29761: unsigned int __pad3; 29761: unsigned int __pad4; 29761: # 45 "/usr/include/arm-linux-gnueabihf/bits/struct_rwlock.h" 3 4 29761: unsigned char __flags; 29761: unsigned char __shared; 29761: unsigned char __pad1; 29761: unsigned char __pad2; 29761: 29761: int __cur_writer; 29761: }; 29761: # 90 "/usr/include/arm-linux-gnueabihf/bits/thread-shared-types.h" 2 3 4 29761: 29761: 29761: 29761: 29761: struct __pthread_cond_s 29761: { 29761: __atomic_wide_counter __wseq; 29761: __atomic_wide_counter __g1_start; 29761: unsigned int __g_refs[2] ; 29761: unsigned int __g_size[2]; 29761: unsigned int __g1_orig_size; 29761: unsigned int __wrefs; 29761: unsigned int __g_signals[2]; 29761: }; 29761: 29761: typedef unsigned int __tss_t; 29761: typedef unsigned long int __thrd_t; 29761: 29761: typedef struct 29761: { 29761: int __data ; 29761: } __once_flag; 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h" 2 3 4 29761: 29761: 29761: 29761: typedef unsigned long int pthread_t; 29761: 29761: 29761: 29761: 29761: typedef union 29761: { 29761: char __size[4]; 29761: int __align; 29761: } pthread_mutexattr_t; 29761: 29761: 29761: 29761: 29761: typedef union 29761: { 29761: char __size[4]; 29761: int __align; 29761: } pthread_condattr_t; 29761: 29761: 29761: 29761: typedef unsigned int pthread_key_t; 29761: 29761: 29761: 29761: typedef int pthread_once_t; 29761: 29761: 29761: union pthread_attr_t 29761: { 29761: char __size[36]; 29761: long int __align; 29761: }; 29761: 29761: typedef union pthread_attr_t pthread_attr_t; 29761: 29761: 29761: 29761: 29761: typedef union 29761: { 29761: struct __pthread_mutex_s __data; 29761: char __size[24]; 29761: long int __align; 29761: } pthread_mutex_t; 29761: 29761: 29761: typedef union 29761: { 29761: struct __pthread_cond_s __data; 29761: char __size[48]; 29761: __extension__ long long int __align; 29761: } pthread_cond_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef union 29761: { 29761: struct __pthread_rwlock_arch_t __data; 29761: char __size[32]; 29761: long int __align; 29761: } pthread_rwlock_t; 29761: 29761: typedef union 29761: { 29761: char __size[8]; 29761: long int __align; 29761: } pthread_rwlockattr_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef volatile int pthread_spinlock_t; 29761: 29761: 29761: 29761: 29761: typedef union 29761: { 29761: char __size[20]; 29761: long int __align; 29761: } pthread_barrier_t; 29761: 29761: typedef union 29761: { 29761: char __size[4]; 29761: int __align; 29761: } pthread_barrierattr_t; 29761: # 27 "/usr/include/pthread.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 1 3 4 29761: # 33 "/usr/include/arm-linux-gnueabihf/bits/setjmp.h" 3 4 29761: typedef int __jmp_buf[64] __attribute__((__aligned__ (8))); 29761: # 28 "/usr/include/pthread.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 29 "/usr/include/pthread.h" 2 3 4 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__sigset_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: typedef struct 29761: { 29761: unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; 29761: } __sigset_t; 29761: # 31 "/usr/include/pthread.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct___jmp_buf_tag.h" 3 4 29761: struct __jmp_buf_tag 29761: { 29761: 29761: 29761: 29761: 29761: __jmp_buf __jmpbuf; 29761: int __mask_was_saved; 29761: __sigset_t __saved_mask; 29761: }; 29761: # 32 "/usr/include/pthread.h" 2 3 4 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/pthread_stack_min-dynamic.h" 3 4 29761: extern "C" { 29761: extern long int __sysconf (int __name) noexcept (true); 29761: } 29761: # 34 "/usr/include/pthread.h" 2 3 4 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_CREATE_JOINABLE, 29761: 29761: PTHREAD_CREATE_DETACHED 29761: 29761: }; 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_MUTEX_TIMED_NP, 29761: PTHREAD_MUTEX_RECURSIVE_NP, 29761: PTHREAD_MUTEX_ERRORCHECK_NP, 29761: PTHREAD_MUTEX_ADAPTIVE_NP 29761: 29761: , 29761: PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, 29761: PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, 29761: PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, 29761: PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL 29761: 29761: 29761: 29761: , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_MUTEX_STALLED, 29761: PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, 29761: PTHREAD_MUTEX_ROBUST, 29761: PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_PRIO_NONE, 29761: PTHREAD_PRIO_INHERIT, 29761: PTHREAD_PRIO_PROTECT 29761: }; 29761: # 104 "/usr/include/pthread.h" 3 4 29761: enum 29761: { 29761: PTHREAD_RWLOCK_PREFER_READER_NP, 29761: PTHREAD_RWLOCK_PREFER_WRITER_NP, 29761: PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 29761: PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP 29761: }; 29761: # 124 "/usr/include/pthread.h" 3 4 29761: enum 29761: { 29761: PTHREAD_INHERIT_SCHED, 29761: 29761: PTHREAD_EXPLICIT_SCHED 29761: 29761: }; 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_SCOPE_SYSTEM, 29761: 29761: PTHREAD_SCOPE_PROCESS 29761: 29761: }; 29761: 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_PROCESS_PRIVATE, 29761: 29761: PTHREAD_PROCESS_SHARED 29761: 29761: }; 29761: # 159 "/usr/include/pthread.h" 3 4 29761: struct _pthread_cleanup_buffer 29761: { 29761: void (*__routine) (void *); 29761: void *__arg; 29761: int __canceltype; 29761: struct _pthread_cleanup_buffer *__prev; 29761: }; 29761: 29761: 29761: enum 29761: { 29761: PTHREAD_CANCEL_ENABLE, 29761: 29761: PTHREAD_CANCEL_DISABLE 29761: 29761: }; 29761: enum 29761: { 29761: PTHREAD_CANCEL_DEFERRED, 29761: 29761: PTHREAD_CANCEL_ASYNCHRONOUS 29761: 29761: }; 29761: # 197 "/usr/include/pthread.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: extern int pthread_create (pthread_t *__restrict __newthread, 29761: const pthread_attr_t *__restrict __attr, 29761: void *(*__start_routine) (void *), 29761: void *__restrict __arg) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_join (pthread_t __th, void **__thread_return); 29761: 29761: 29761: 29761: 29761: extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) noexcept (true); 29761: # 248 "/usr/include/pthread.h" 3 4 29761: extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, const struct timespec *__abstime) __asm__ ("" "__pthread_timedjoin_np64") 29761: 29761: 29761: ; 29761: 29761: extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, clockid_t __clockid, const struct timespec *__abstime) __asm__ ("" "__pthread_clockjoin_np64") 29761: 29761: 29761: 29761: ; 29761: # 269 "/usr/include/pthread.h" 3 4 29761: extern int pthread_detach (pthread_t __th) noexcept (true); 29761: 29761: 29761: 29761: extern pthread_t pthread_self (void) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) 29761: noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_init (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_attr_destroy (pthread_attr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, 29761: int *__detachstate) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, 29761: int __detachstate) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, 29761: size_t *__guardsize) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setguardsize (pthread_attr_t *__attr, 29761: size_t __guardsize) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, 29761: struct sched_param *__restrict __param) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, 29761: const struct sched_param *__restrict 29761: __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict 29761: __attr, int *__restrict __policy) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict 29761: __attr, int *__restrict __inherit) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, 29761: int __inherit) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, 29761: int *__restrict __scope) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict 29761: __attr, void **__restrict __stackaddr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, 29761: void *__stackaddr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); 29761: 29761: 29761: extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict 29761: __attr, size_t *__restrict __stacksize) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_setstacksize (pthread_attr_t *__attr, 29761: size_t __stacksize) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, 29761: void **__restrict __stackaddr, 29761: size_t *__restrict __stacksize) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, 29761: size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, 29761: size_t __cpusetsize, 29761: const cpu_set_t *__cpuset) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, 29761: size_t __cpusetsize, 29761: cpu_set_t *__cpuset) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: extern int pthread_getattr_default_np (pthread_attr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr, 29761: const __sigset_t *sigmask); 29761: 29761: 29761: 29761: 29761: extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr, 29761: __sigset_t *sigmask); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_setattr_default_np (const pthread_attr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_setschedparam (pthread_t __target_thread, int __policy, 29761: const struct sched_param *__param) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: extern int pthread_getschedparam (pthread_t __target_thread, 29761: int *__restrict __policy, 29761: struct sched_param *__restrict __param) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29761: 29761: 29761: extern int pthread_setschedprio (pthread_t __target_thread, int __prio) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int pthread_getname_np (pthread_t __target_thread, char *__buf, 29761: size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: extern int pthread_setname_np (pthread_t __target_thread, const char *__name) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_getconcurrency (void) noexcept (true); 29761: 29761: 29761: extern int pthread_setconcurrency (int __level) noexcept (true); 29761: 29761: 29761: 29761: extern int pthread_yield (void) noexcept (true); 29761: 29761: extern int pthread_yield (void) noexcept (true) __asm__ ("" "sched_yield") 29761: __attribute__ ((__deprecated__ ("pthread_yield is deprecated, use sched_yield instead"))) 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, 29761: const cpu_set_t *__cpuset) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, 29761: cpu_set_t *__cpuset) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: # 509 "/usr/include/pthread.h" 3 4 29761: extern int pthread_once (pthread_once_t *__once_control, 29761: void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); 29761: # 521 "/usr/include/pthread.h" 3 4 29761: extern int pthread_setcancelstate (int __state, int *__oldstate); 29761: 29761: 29761: 29761: extern int pthread_setcanceltype (int __type, int *__oldtype); 29761: 29761: 29761: extern int pthread_cancel (pthread_t __th); 29761: 29761: 29761: 29761: 29761: extern void pthread_testcancel (void); 29761: 29761: 29761: 29761: 29761: struct __cancel_jmp_buf_tag 29761: { 29761: __jmp_buf __cancel_jmp_buf; 29761: int __mask_was_saved; 29761: }; 29761: 29761: typedef struct 29761: { 29761: struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; 29761: void *__pad[4]; 29761: } __pthread_unwind_buf_t __attribute__ ((__aligned__)); 29761: # 557 "/usr/include/pthread.h" 3 4 29761: struct __pthread_cleanup_frame 29761: { 29761: void (*__cancel_routine) (void *); 29761: void *__cancel_arg; 29761: int __do_it; 29761: int __cancel_type; 29761: }; 29761: 29761: 29761: 29761: 29761: class __pthread_cleanup_class 29761: { 29761: void (*__cancel_routine) (void *); 29761: void *__cancel_arg; 29761: int __do_it; 29761: int __cancel_type; 29761: 29761: public: 29761: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) 29761: : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } 29761: ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } 29761: void __setdoit (int __newval) { __do_it = __newval; } 29761: void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, 29761: &__cancel_type); } 29761: void __restore () const { pthread_setcanceltype (__cancel_type, 0); } 29761: }; 29761: # 766 "/usr/include/pthread.h" 3 4 29761: extern int __sigsetjmp_cancel (struct __cancel_jmp_buf_tag __env[1], int __savemask) noexcept (true) __asm__ ("" "__sigsetjmp") 29761: 29761: 29761: __attribute__ ((__returns_twice__)); 29761: # 781 "/usr/include/pthread.h" 3 4 29761: extern int pthread_mutex_init (pthread_mutex_t *__mutex, 29761: const pthread_mutexattr_t *__mutexattr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutex_lock (pthread_mutex_t *__mutex) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 805 "/usr/include/pthread.h" 3 4 29761: extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_timedlock64") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2))); 29761: # 823 "/usr/include/pthread.h" 3 4 29761: extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_mutex_clocklock64") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_mutex_getprioceiling (const pthread_mutex_t * 29761: __restrict __mutex, 29761: int *__restrict __prioceiling) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, 29761: int __prioceiling, 29761: int *__restrict __old_ceiling) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: 29761: extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutex_consistent_np (pthread_mutex_t *) noexcept (true) __asm__ ("" "pthread_mutex_consistent") 29761: __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__deprecated__ ("pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent"))) 29761: ; 29761: # 874 "/usr/include/pthread.h" 3 4 29761: extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * 29761: __restrict __attr, 29761: int *__restrict __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, 29761: int __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict 29761: __attr, int *__restrict __kind) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * 29761: __restrict __attr, 29761: int *__restrict __protocol) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, 29761: int __protocol) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * 29761: __restrict __attr, 29761: int *__restrict __prioceiling) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, 29761: int __prioceiling) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, 29761: int *__robustness) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_mutexattr_getrobust_np (pthread_mutexattr_t *, int *) noexcept (true) __asm__ ("" "pthread_mutexattr_getrobust") 29761: 29761: __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__deprecated__ ("pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust"))) 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, 29761: int __robustness) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *, int) noexcept (true) __asm__ ("" "pthread_mutexattr_setrobust") 29761: 29761: __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__deprecated__ ("pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust"))) 29761: ; 29761: # 967 "/usr/include/pthread.h" 3 4 29761: extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, 29761: const pthread_rwlockattr_t *__restrict 29761: __attr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 991 "/usr/include/pthread.h" 3 4 29761: extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedrdlock64") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2))); 29761: # 1010 "/usr/include/pthread.h" 3 4 29761: extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockrdlock64") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 1038 "/usr/include/pthread.h" 3 4 29761: extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_timedwrlock64") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2))); 29761: # 1058 "/usr/include/pthread.h" 3 4 29761: extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __asm__ ("" "__pthread_rwlock_clockwrlock64") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * 29761: __restrict __attr, 29761: int *__restrict __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, 29761: int __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * 29761: __restrict __attr, 29761: int *__restrict __pref) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, 29761: int __pref) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_cond_init (pthread_cond_t *__restrict __cond, 29761: const pthread_condattr_t *__restrict __cond_attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_cond_destroy (pthread_cond_t *__cond) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_cond_signal (pthread_cond_t *__cond) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_cond_broadcast (pthread_cond_t *__cond) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, 29761: pthread_mutex_t *__restrict __mutex) 29761: __attribute__ ((__nonnull__ (1, 2))); 29761: # 1151 "/usr/include/pthread.h" 3 4 29761: extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) __asm__ ("" "__pthread_cond_timedwait64") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2, 3))); 29761: # 1178 "/usr/include/pthread.h" 3 4 29761: extern int pthread_cond_clockwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, __clockid_t __clock_id, const struct timespec *__restrict __abstime) __asm__ ("" "__pthread_cond_clockwait64") 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2, 4))); 29761: # 1194 "/usr/include/pthread.h" 3 4 29761: extern int pthread_condattr_init (pthread_condattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_condattr_destroy (pthread_condattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_condattr_getpshared (const pthread_condattr_t * 29761: __restrict __attr, 29761: int *__restrict __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, 29761: int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_condattr_getclock (const pthread_condattr_t * 29761: __restrict __attr, 29761: __clockid_t *__restrict __clock_id) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_condattr_setclock (pthread_condattr_t *__attr, 29761: __clockid_t __clock_id) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 1230 "/usr/include/pthread.h" 3 4 29761: extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_spin_destroy (pthread_spinlock_t *__lock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_spin_lock (pthread_spinlock_t *__lock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_spin_trylock (pthread_spinlock_t *__lock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_spin_unlock (pthread_spinlock_t *__lock) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, 29761: const pthread_barrierattr_t *__restrict 29761: __attr, unsigned int __count) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_barrier_wait (pthread_barrier_t *__barrier) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * 29761: __restrict __attr, 29761: int *__restrict __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, 29761: int __pshared) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 1297 "/usr/include/pthread.h" 3 4 29761: extern int pthread_key_create (pthread_key_t *__key, 29761: void (*__destr_function) (void *)) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int pthread_key_delete (pthread_key_t __key) noexcept (true); 29761: 29761: 29761: extern void *pthread_getspecific (pthread_key_t __key) noexcept (true); 29761: 29761: 29761: extern int pthread_setspecific (pthread_key_t __key, 29761: const void *__pointer) 29761: noexcept (true) __attribute__ ((__access__ (__none__, 2))); 29761: 29761: 29761: 29761: 29761: extern int pthread_getcpuclockid (pthread_t __thread_id, 29761: __clockid_t *__clock_id) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: # 1332 "/usr/include/pthread.h" 3 4 29761: extern int pthread_atfork (void (*__prepare) (void), 29761: void (*__parent) (void), 29761: void (*__child) (void)) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: __attribute__ ((__leaf__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) noexcept (true) 29761: { 29761: return __thread1 == __thread2; 29761: } 29761: 29761: 29761: } 29761: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 2 3 29761: # 47 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: typedef pthread_t __gthread_t; 29761: typedef pthread_key_t __gthread_key_t; 29761: typedef pthread_once_t __gthread_once_t; 29761: typedef pthread_mutex_t __gthread_mutex_t; 29761: 29761: 29761: 29761: typedef pthread_mutex_t __gthread_recursive_mutex_t; 29761: typedef pthread_cond_t __gthread_cond_t; 29761: typedef struct timespec __gthread_time_t; 29761: # 108 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 312 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: static inline int 29761: __gthread_active_p (void) 29761: { 29761: return 1; 29761: } 29761: # 672 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: static inline int 29761: __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), 29761: void *__args) 29761: { 29761: return pthread_create (__threadid, __null, __func, __args); 29761: } 29761: 29761: static inline int 29761: __gthread_join (__gthread_t __threadid, void **__value_ptr) 29761: { 29761: return pthread_join (__threadid, __value_ptr); 29761: } 29761: 29761: static inline int 29761: __gthread_detach (__gthread_t __threadid) 29761: { 29761: return pthread_detach (__threadid); 29761: } 29761: 29761: static inline int 29761: __gthread_equal (__gthread_t __t1, __gthread_t __t2) 29761: { 29761: return pthread_equal (__t1, __t2); 29761: } 29761: 29761: static inline __gthread_t 29761: __gthread_self (void) 29761: { 29761: return pthread_self (); 29761: } 29761: 29761: static inline int 29761: __gthread_yield (void) 29761: { 29761: return sched_yield (); 29761: } 29761: 29761: static inline int 29761: __gthread_once (__gthread_once_t *__once, void (*__func) (void)) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_once (__once, __func); 29761: else 29761: return -1; 29761: } 29761: 29761: static inline int 29761: __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) 29761: { 29761: return pthread_key_create (__key, __dtor); 29761: } 29761: 29761: static inline int 29761: __gthread_key_delete (__gthread_key_t __key) 29761: { 29761: return pthread_key_delete (__key); 29761: } 29761: 29761: static inline void * 29761: __gthread_getspecific (__gthread_key_t __key) 29761: { 29761: return pthread_getspecific (__key); 29761: } 29761: 29761: static inline int 29761: __gthread_setspecific (__gthread_key_t __key, const void *__ptr) 29761: { 29761: return pthread_setspecific (__key, __ptr); 29761: } 29761: 29761: static inline void 29761: __gthread_mutex_init_function (__gthread_mutex_t *__mutex) 29761: { 29761: if (__gthread_active_p ()) 29761: pthread_mutex_init (__mutex, __null); 29761: } 29761: 29761: static inline int 29761: __gthread_mutex_destroy (__gthread_mutex_t *__mutex) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_mutex_destroy (__mutex); 29761: else 29761: return 0; 29761: } 29761: 29761: static inline int 29761: __gthread_mutex_lock (__gthread_mutex_t *__mutex) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_mutex_lock (__mutex); 29761: else 29761: return 0; 29761: } 29761: 29761: static inline int 29761: __gthread_mutex_trylock (__gthread_mutex_t *__mutex) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_mutex_trylock (__mutex); 29761: else 29761: return 0; 29761: } 29761: 29761: 29761: static inline int 29761: __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, 29761: const __gthread_time_t *__abs_timeout) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_mutex_timedlock (__mutex, __abs_timeout); 29761: else 29761: return 0; 29761: } 29761: 29761: 29761: static inline int 29761: __gthread_mutex_unlock (__gthread_mutex_t *__mutex) 29761: { 29761: if (__gthread_active_p ()) 29761: return pthread_mutex_unlock (__mutex); 29761: else 29761: return 0; 29761: } 29761: # 821 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: static inline int 29761: __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) 29761: { 29761: return __gthread_mutex_lock (__mutex); 29761: } 29761: 29761: static inline int 29761: __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) 29761: { 29761: return __gthread_mutex_trylock (__mutex); 29761: } 29761: 29761: 29761: static inline int 29761: __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, 29761: const __gthread_time_t *__abs_timeout) 29761: { 29761: return __gthread_mutex_timedlock (__mutex, __abs_timeout); 29761: } 29761: 29761: 29761: static inline int 29761: __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) 29761: { 29761: return __gthread_mutex_unlock (__mutex); 29761: } 29761: 29761: static inline int 29761: __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) 29761: { 29761: return __gthread_mutex_destroy (__mutex); 29761: } 29761: # 863 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr-default.h" 3 29761: static inline int 29761: __gthread_cond_broadcast (__gthread_cond_t *__cond) 29761: { 29761: return pthread_cond_broadcast (__cond); 29761: } 29761: 29761: static inline int 29761: __gthread_cond_signal (__gthread_cond_t *__cond) 29761: { 29761: return pthread_cond_signal (__cond); 29761: } 29761: 29761: static inline int 29761: __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) 29761: { 29761: return pthread_cond_wait (__cond, __mutex); 29761: } 29761: 29761: static inline int 29761: __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, 29761: const __gthread_time_t *__abs_timeout) 29761: { 29761: return pthread_cond_timedwait (__cond, __mutex, __abs_timeout); 29761: } 29761: 29761: static inline int 29761: __gthread_cond_wait_recursive (__gthread_cond_t *__cond, 29761: __gthread_recursive_mutex_t *__mutex) 29761: { 29761: return __gthread_cond_wait (__cond, __mutex); 29761: } 29761: 29761: static inline int 29761: __gthread_cond_destroy (__gthread_cond_t* __cond) 29761: { 29761: return pthread_cond_destroy (__cond); 29761: } 29761: # 158 "/usr/include/arm-linux-gnueabihf/c++/14/bits/gthr.h" 2 3 29761: 29761: 29761: #pragma GCC visibility pop 29761: # 36 "/usr/include/c++/14/ext/atomicity.h" 2 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 1 3 29761: # 32 "/usr/include/arm-linux-gnueabihf/c++/14/bits/atomic_word.h" 3 29761: typedef int _Atomic_word; 29761: # 37 "/usr/include/c++/14/ext/atomicity.h" 2 3 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/sys/single_threaded.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: extern char __libc_single_threaded; 29761: 29761: } 29761: # 39 "/usr/include/c++/14/ext/atomicity.h" 2 3 29761: 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: inline bool 29761: __is_single_threaded() noexcept 29761: { 29761: 29761: 29761: 29761: return ::__libc_single_threaded; 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline _Atomic_word 29761: __attribute__((__always_inline__)) 29761: __exchange_and_add(volatile _Atomic_word* __mem, int __val) 29761: { return __atomic_fetch_add(__mem, __val, 4); } 29761: 29761: inline void 29761: __attribute__((__always_inline__)) 29761: __atomic_add(volatile _Atomic_word* __mem, int __val) 29761: { __atomic_fetch_add(__mem, __val, 4); } 29761: # 80 "/usr/include/c++/14/ext/atomicity.h" 3 29761: inline _Atomic_word 29761: __attribute__((__always_inline__)) 29761: __exchange_and_add_single(_Atomic_word* __mem, int __val) 29761: { 29761: _Atomic_word __result = *__mem; 29761: *__mem += __val; 29761: return __result; 29761: } 29761: 29761: inline void 29761: __attribute__((__always_inline__)) 29761: __atomic_add_single(_Atomic_word* __mem, int __val) 29761: { *__mem += __val; } 29761: 29761: inline _Atomic_word 29761: __attribute__ ((__always_inline__)) 29761: __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) 29761: { 29761: if (__is_single_threaded()) 29761: return __exchange_and_add_single(__mem, __val); 29761: else 29761: return __exchange_and_add(__mem, __val); 29761: } 29761: 29761: inline void 29761: __attribute__ ((__always_inline__)) 29761: __atomic_add_dispatch(_Atomic_word* __mem, int __val) 29761: { 29761: if (__is_single_threaded()) 29761: __atomic_add_single(__mem, __val); 29761: else 29761: __atomic_add(__mem, __val); 29761: } 29761: 29761: 29761: } 29761: # 62 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29761: # 1 "/usr/include/c++/14/ext/concurrence.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/concurrence.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/concurrence.h" 3 29761: 29761: # 1 "/usr/include/c++/14/exception" 1 3 29761: # 33 "/usr/include/c++/14/exception" 3 29761: 29761: # 34 "/usr/include/c++/14/exception" 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 40 "/usr/include/c++/14/exception" 2 3 29761: 29761: extern "C++" { 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: # 54 "/usr/include/c++/14/exception" 3 29761: class bad_exception : public exception 29761: { 29761: public: 29761: bad_exception() noexcept { } 29761: 29761: 29761: 29761: virtual ~bad_exception() noexcept; 29761: 29761: 29761: virtual const char* 29761: what() const noexcept; 29761: }; 29761: 29761: 29761: typedef void (*terminate_handler) (); 29761: 29761: 29761: terminate_handler set_terminate(terminate_handler) noexcept; 29761: 29761: 29761: 29761: terminate_handler get_terminate() noexcept; 29761: 29761: 29761: 29761: 29761: void terminate() noexcept __attribute__ ((__noreturn__,__cold__)); 29761: 29761: 29761: 29761: typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((__deprecated__)) 29761: unexpected_handler set_unexpected(unexpected_handler) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((__deprecated__)) 29761: unexpected_handler get_unexpected() noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((__deprecated__)) 29761: void unexpected() __attribute__ ((__noreturn__,__cold__)); 29761: # 124 "/usr/include/c++/14/exception" 3 29761: __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) 29761: bool uncaught_exception() noexcept __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: int uncaught_exceptions() noexcept __attribute__ ((__pure__)); 29761: 29761: 29761: 29761: } 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 158 "/usr/include/c++/14/exception" 3 29761: void __verbose_terminate_handler(); 29761: 29761: 29761: } 29761: 29761: } 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/exception_ptr.h" 1 3 29761: # 36 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: # 1 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 1 3 29761: # 34 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29761: 29761: # 35 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29761: 29761: #pragma GCC visibility push(default) 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 39 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 2 3 29761: # 50 "/usr/include/c++/14/bits/cxxabi_init_exception.h" 3 29761: namespace std 29761: { 29761: class type_info; 29761: } 29761: 29761: namespace __cxxabiv1 29761: { 29761: struct __cxa_refcounted_exception; 29761: 29761: extern "C" 29761: { 29761: 29761: void* 29761: __cxa_allocate_exception(size_t) noexcept; 29761: 29761: void 29761: __cxa_free_exception(void*) noexcept; 29761: 29761: 29761: __cxa_refcounted_exception* 29761: __cxa_init_primary_exception(void *__object, std::type_info *__tinfo, 29761: void ( *__dest) (void *)) 29761: noexcept; 29761: 29761: } 29761: } 29761: 29761: 29761: 29761: #pragma GCC visibility pop 29761: # 37 "/usr/include/c++/14/bits/exception_ptr.h" 2 3 29761: # 50 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: extern "C++" { 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: class type_info; 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __exception_ptr 29761: { 29761: class exception_ptr; 29761: } 29761: 29761: using __exception_ptr::exception_ptr; 29761: # 75 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: exception_ptr current_exception() noexcept; 29761: 29761: template 29761: exception_ptr make_exception_ptr(_Ex) noexcept; 29761: 29761: 29761: void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); 29761: 29761: namespace __exception_ptr 29761: { 29761: using std::rethrow_exception; 29761: # 97 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: class exception_ptr 29761: { 29761: void* _M_exception_object; 29761: 29761: explicit exception_ptr(void* __e) noexcept; 29761: 29761: void _M_addref() noexcept; 29761: void _M_release() noexcept; 29761: 29761: void *_M_get() const noexcept __attribute__ ((__pure__)); 29761: 29761: friend exception_ptr std::current_exception() noexcept; 29761: friend void std::rethrow_exception(exception_ptr); 29761: template 29761: friend exception_ptr std::make_exception_ptr(_Ex) noexcept; 29761: 29761: public: 29761: exception_ptr() noexcept; 29761: 29761: exception_ptr(const exception_ptr&) noexcept; 29761: 29761: 29761: exception_ptr(nullptr_t) noexcept 29761: : _M_exception_object(nullptr) 29761: { } 29761: 29761: exception_ptr(exception_ptr&& __o) noexcept 29761: : _M_exception_object(__o._M_exception_object) 29761: { __o._M_exception_object = nullptr; } 29761: # 135 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: exception_ptr& 29761: operator=(const exception_ptr&) noexcept; 29761: 29761: 29761: exception_ptr& 29761: operator=(exception_ptr&& __o) noexcept 29761: { 29761: exception_ptr(static_cast(__o)).swap(*this); 29761: return *this; 29761: } 29761: 29761: 29761: ~exception_ptr() noexcept; 29761: 29761: void 29761: swap(exception_ptr&) noexcept; 29761: # 161 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: explicit operator bool() const noexcept 29761: { return _M_exception_object; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const exception_ptr& __x, const exception_ptr& __y) 29761: noexcept 29761: { return __x._M_exception_object == __y._M_exception_object; } 29761: 29761: friend bool 29761: operator!=(const exception_ptr& __x, const exception_ptr& __y) 29761: noexcept 29761: { return __x._M_exception_object != __y._M_exception_object; } 29761: 29761: 29761: const class std::type_info* 29761: __cxa_exception_type() const noexcept 29761: __attribute__ ((__pure__)); 29761: }; 29761: 29761: 29761: inline 29761: exception_ptr::exception_ptr() noexcept 29761: : _M_exception_object(0) 29761: { } 29761: 29761: 29761: inline 29761: exception_ptr::exception_ptr(const exception_ptr& __other) 29761: noexcept 29761: : _M_exception_object(__other._M_exception_object) 29761: { 29761: if (_M_exception_object) 29761: _M_addref(); 29761: } 29761: 29761: 29761: inline 29761: exception_ptr::~exception_ptr() noexcept 29761: { 29761: if (_M_exception_object) 29761: _M_release(); 29761: } 29761: 29761: 29761: inline exception_ptr& 29761: exception_ptr::operator=(const exception_ptr& __other) noexcept 29761: { 29761: exception_ptr(__other).swap(*this); 29761: return *this; 29761: } 29761: 29761: 29761: inline void 29761: exception_ptr::swap(exception_ptr &__other) noexcept 29761: { 29761: void *__tmp = _M_exception_object; 29761: _M_exception_object = __other._M_exception_object; 29761: __other._M_exception_object = __tmp; 29761: } 29761: 29761: 29761: inline void 29761: swap(exception_ptr& __lhs, exception_ptr& __rhs) 29761: { __lhs.swap(__rhs); } 29761: 29761: 29761: template 29761: 29761: inline void 29761: __dest_thunk(void* __x) 29761: { static_cast<_Ex*>(__x)->~_Ex(); } 29761: 29761: 29761: } 29761: 29761: using __exception_ptr::swap; 29761: 29761: 29761: 29761: template 29761: exception_ptr 29761: make_exception_ptr(_Ex __ex) noexcept 29761: { 29761: 29761: using _Ex2 = typename decay<_Ex>::type; 29761: void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); 29761: (void) __cxxabiv1::__cxa_init_primary_exception( 29761: __e, const_cast(&typeid(_Ex)), 29761: __exception_ptr::__dest_thunk<_Ex2>); 29761: try 29761: { 29761: ::new (__e) _Ex2(__ex); 29761: return exception_ptr(__e); 29761: } 29761: catch(...) 29761: { 29761: __cxxabiv1::__cxa_free_exception(__e); 29761: return current_exception(); 29761: } 29761: # 276 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: } 29761: # 290 "/usr/include/c++/14/bits/exception_ptr.h" 3 29761: } 29761: 29761: } 29761: # 167 "/usr/include/c++/14/exception" 2 3 29761: # 1 "/usr/include/c++/14/bits/nested_exception.h" 1 3 29761: # 40 "/usr/include/c++/14/bits/nested_exception.h" 3 29761: extern "C++" { 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: # 59 "/usr/include/c++/14/bits/nested_exception.h" 3 29761: class nested_exception 29761: { 29761: exception_ptr _M_ptr; 29761: 29761: public: 29761: 29761: nested_exception() noexcept : _M_ptr(current_exception()) { } 29761: 29761: nested_exception(const nested_exception&) noexcept = default; 29761: 29761: nested_exception& operator=(const nested_exception&) noexcept = default; 29761: 29761: virtual ~nested_exception() noexcept; 29761: 29761: 29761: [[noreturn]] 29761: void 29761: rethrow_nested() const 29761: { 29761: if (_M_ptr) 29761: rethrow_exception(_M_ptr); 29761: std::terminate(); 29761: } 29761: 29761: 29761: exception_ptr 29761: nested_ptr() const noexcept 29761: { return _M_ptr; } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct _Nested_exception : public _Except, public nested_exception 29761: { 29761: explicit _Nested_exception(const _Except& __ex) 29761: : _Except(__ex) 29761: { } 29761: 29761: explicit _Nested_exception(_Except&& __ex) 29761: : _Except(static_cast<_Except&&>(__ex)) 29761: { } 29761: }; 29761: # 145 "/usr/include/c++/14/bits/nested_exception.h" 3 29761: template 29761: [[noreturn]] 29761: inline void 29761: throw_with_nested(_Tp&& __t) 29761: { 29761: using _Up = typename decay<_Tp>::type; 29761: using _CopyConstructible 29761: = __and_, is_move_constructible<_Up>>; 29761: static_assert(_CopyConstructible::value, 29761: "throw_with_nested argument must be CopyConstructible"); 29761: 29761: 29761: if constexpr (is_class_v<_Up>) 29761: if constexpr (!is_final_v<_Up>) 29761: if constexpr (!is_base_of_v) 29761: throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; 29761: throw std::forward<_Tp>(__t); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 203 "/usr/include/c++/14/bits/nested_exception.h" 3 29761: template 29761: 29761: 29761: 29761: inline void 29761: rethrow_if_nested(const _Ex& __ex) 29761: { 29761: const _Ex* __ptr = __builtin_addressof(__ex); 29761: # 223 "/usr/include/c++/14/bits/nested_exception.h" 3 29761: if constexpr (!is_polymorphic_v<_Ex>) 29761: return; 29761: else if constexpr (is_base_of_v 29761: && !is_convertible_v<_Ex*, nested_exception*>) 29761: return; 29761: 29761: 29761: 29761: 29761: else if (auto __ne_ptr = dynamic_cast(__ptr)) 29761: __ne_ptr->rethrow_nested(); 29761: 29761: } 29761: 29761: 29761: } 29761: 29761: } 29761: # 168 "/usr/include/c++/14/exception" 2 3 29761: # 35 "/usr/include/c++/14/ext/concurrence.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; 29761: 29761: 29761: 29761: inline const _Lock_policy __default_lock_policy = 29761: 29761: 29761: 29761: _S_atomic; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class __concurrence_lock_error : public std::exception 29761: { 29761: public: 29761: virtual char const* 29761: what() const throw() 29761: { return "__gnu_cxx::__concurrence_lock_error"; } 29761: }; 29761: 29761: class __concurrence_unlock_error : public std::exception 29761: { 29761: public: 29761: virtual char const* 29761: what() const throw() 29761: { return "__gnu_cxx::__concurrence_unlock_error"; } 29761: }; 29761: 29761: class __concurrence_broadcast_error : public std::exception 29761: { 29761: public: 29761: virtual char const* 29761: what() const throw() 29761: { return "__gnu_cxx::__concurrence_broadcast_error"; } 29761: }; 29761: 29761: class __concurrence_wait_error : public std::exception 29761: { 29761: public: 29761: virtual char const* 29761: what() const throw() 29761: { return "__gnu_cxx::__concurrence_wait_error"; } 29761: }; 29761: 29761: 29761: inline void 29761: __throw_concurrence_lock_error() 29761: { (throw (__concurrence_lock_error())); } 29761: 29761: inline void 29761: __throw_concurrence_unlock_error() 29761: { (throw (__concurrence_unlock_error())); } 29761: 29761: 29761: inline void 29761: __throw_concurrence_broadcast_error() 29761: { (throw (__concurrence_broadcast_error())); } 29761: 29761: inline void 29761: __throw_concurrence_wait_error() 29761: { (throw (__concurrence_wait_error())); } 29761: 29761: 29761: class __mutex 29761: { 29761: private: 29761: 29761: __gthread_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 29761: 29761: 29761: 29761: 29761: __mutex(const __mutex&); 29761: __mutex& operator=(const __mutex&); 29761: 29761: public: 29761: __mutex() 29761: { 29761: 29761: 29761: 29761: 29761: } 29761: # 144 "/usr/include/c++/14/ext/concurrence.h" 3 29761: void lock() 29761: { 29761: 29761: if (__gthread_active_p()) 29761: { 29761: if (__gthread_mutex_lock(&_M_mutex) != 0) 29761: __throw_concurrence_lock_error(); 29761: } 29761: 29761: } 29761: 29761: void unlock() 29761: { 29761: 29761: if (__gthread_active_p()) 29761: { 29761: if (__gthread_mutex_unlock(&_M_mutex) != 0) 29761: __throw_concurrence_unlock_error(); 29761: } 29761: 29761: } 29761: 29761: __gthread_mutex_t* gthread_mutex(void) 29761: { return &_M_mutex; } 29761: }; 29761: 29761: class __recursive_mutex 29761: { 29761: private: 29761: 29761: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 29761: 29761: 29761: 29761: 29761: __recursive_mutex(const __recursive_mutex&); 29761: __recursive_mutex& operator=(const __recursive_mutex&); 29761: 29761: public: 29761: __recursive_mutex() 29761: { 29761: 29761: 29761: 29761: 29761: } 29761: # 199 "/usr/include/c++/14/ext/concurrence.h" 3 29761: void lock() 29761: { 29761: 29761: if (__gthread_active_p()) 29761: { 29761: if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) 29761: __throw_concurrence_lock_error(); 29761: } 29761: 29761: } 29761: 29761: void unlock() 29761: { 29761: 29761: if (__gthread_active_p()) 29761: { 29761: if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) 29761: __throw_concurrence_unlock_error(); 29761: } 29761: 29761: } 29761: 29761: __gthread_recursive_mutex_t* gthread_recursive_mutex(void) 29761: { return &_M_mutex; } 29761: }; 29761: 29761: 29761: 29761: 29761: class __scoped_lock 29761: { 29761: public: 29761: typedef __mutex __mutex_type; 29761: 29761: private: 29761: __mutex_type& _M_device; 29761: 29761: __scoped_lock(const __scoped_lock&); 29761: __scoped_lock& operator=(const __scoped_lock&); 29761: 29761: public: 29761: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) 29761: { _M_device.lock(); } 29761: 29761: ~__scoped_lock() throw() 29761: { _M_device.unlock(); } 29761: }; 29761: 29761: 29761: class __cond 29761: { 29761: private: 29761: 29761: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 29761: 29761: 29761: 29761: 29761: __cond(const __cond&); 29761: __cond& operator=(const __cond&); 29761: 29761: public: 29761: __cond() 29761: { 29761: 29761: 29761: 29761: 29761: } 29761: # 277 "/usr/include/c++/14/ext/concurrence.h" 3 29761: void broadcast() 29761: { 29761: 29761: if (__gthread_active_p()) 29761: { 29761: if (__gthread_cond_broadcast(&_M_cond) != 0) 29761: __throw_concurrence_broadcast_error(); 29761: } 29761: 29761: } 29761: 29761: void wait(__mutex *mutex) 29761: { 29761: 29761: { 29761: if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) 29761: __throw_concurrence_wait_error(); 29761: } 29761: 29761: } 29761: 29761: void wait_recursive(__recursive_mutex *mutex) 29761: { 29761: 29761: { 29761: if (__gthread_cond_wait_recursive(&_M_cond, 29761: mutex->gthread_recursive_mutex()) 29761: != 0) 29761: __throw_concurrence_wait_error(); 29761: } 29761: 29761: } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 63 "/usr/include/c++/14/bits/shared_ptr_base.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: # 75 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template class auto_ptr; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: 29761: 29761: class bad_weak_ptr : public std::exception 29761: { 29761: public: 29761: virtual char const* what() const noexcept; 29761: 29761: virtual ~bad_weak_ptr() noexcept; 29761: }; 29761: 29761: 29761: inline void 29761: __throw_bad_weak_ptr() 29761: { (throw (bad_weak_ptr())); } 29761: 29761: using __gnu_cxx::_Lock_policy; 29761: using __gnu_cxx::__default_lock_policy; 29761: using __gnu_cxx::_S_single; 29761: using __gnu_cxx::_S_mutex; 29761: using __gnu_cxx::_S_atomic; 29761: 29761: 29761: template<_Lock_policy _Lp> 29761: class _Mutex_base 29761: { 29761: protected: 29761: 29761: enum { _S_need_barriers = 0 }; 29761: }; 29761: 29761: template<> 29761: class _Mutex_base<_S_mutex> 29761: : public __gnu_cxx::__mutex 29761: { 29761: protected: 29761: 29761: 29761: 29761: enum { _S_need_barriers = 1 }; 29761: }; 29761: 29761: template<_Lock_policy _Lp = __default_lock_policy> 29761: class _Sp_counted_base 29761: : public _Mutex_base<_Lp> 29761: { 29761: public: 29761: _Sp_counted_base() noexcept 29761: : _M_use_count(1), _M_weak_count(1) { } 29761: 29761: virtual 29761: ~_Sp_counted_base() noexcept 29761: { } 29761: 29761: 29761: 29761: virtual void 29761: _M_dispose() noexcept = 0; 29761: 29761: 29761: virtual void 29761: _M_destroy() noexcept 29761: { delete this; } 29761: 29761: virtual void* 29761: _M_get_deleter(const std::type_info&) noexcept = 0; 29761: 29761: 29761: void 29761: _M_add_ref_copy() 29761: { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } 29761: 29761: 29761: void 29761: _M_add_ref_lock() 29761: { 29761: if (!_M_add_ref_lock_nothrow()) 29761: __throw_bad_weak_ptr(); 29761: } 29761: 29761: 29761: bool 29761: _M_add_ref_lock_nothrow() noexcept; 29761: 29761: 29761: void 29761: _M_release() noexcept; 29761: 29761: 29761: void 29761: _M_release_last_use() noexcept 29761: { 29761: ; 29761: _M_dispose(); 29761: 29761: 29761: 29761: 29761: if (_Mutex_base<_Lp>::_S_need_barriers) 29761: { 29761: __atomic_thread_fence (4); 29761: } 29761: 29761: 29761: ; 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, 29761: -1) == 1) 29761: { 29761: ; 29761: _M_destroy(); 29761: } 29761: } 29761: 29761: 29761: __attribute__((__noinline__)) 29761: void 29761: _M_release_last_use_cold() noexcept 29761: { _M_release_last_use(); } 29761: 29761: 29761: void 29761: _M_weak_add_ref() noexcept 29761: { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } 29761: 29761: 29761: void 29761: _M_weak_release() noexcept 29761: { 29761: 29761: ; 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) 29761: { 29761: ; 29761: if (_Mutex_base<_Lp>::_S_need_barriers) 29761: { 29761: 29761: 29761: __atomic_thread_fence (4); 29761: } 29761: _M_destroy(); 29761: } 29761: } 29761: 29761: long 29761: _M_get_use_count() const noexcept 29761: { 29761: 29761: 29761: return __atomic_load_n(&_M_use_count, 0); 29761: } 29761: 29761: private: 29761: _Sp_counted_base(_Sp_counted_base const&) = delete; 29761: _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; 29761: 29761: _Atomic_word _M_use_count; 29761: _Atomic_word _M_weak_count; 29761: }; 29761: 29761: template<> 29761: inline bool 29761: _Sp_counted_base<_S_single>:: 29761: _M_add_ref_lock_nothrow() noexcept 29761: { 29761: if (_M_use_count == 0) 29761: return false; 29761: ++_M_use_count; 29761: return true; 29761: } 29761: 29761: template<> 29761: inline bool 29761: _Sp_counted_base<_S_mutex>:: 29761: _M_add_ref_lock_nothrow() noexcept 29761: { 29761: __gnu_cxx::__scoped_lock sentry(*this); 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) 29761: { 29761: _M_use_count = 0; 29761: return false; 29761: } 29761: return true; 29761: } 29761: 29761: template<> 29761: inline bool 29761: _Sp_counted_base<_S_atomic>:: 29761: _M_add_ref_lock_nothrow() noexcept 29761: { 29761: 29761: _Atomic_word __count = _M_get_use_count(); 29761: do 29761: { 29761: if (__count == 0) 29761: return false; 29761: 29761: 29761: } 29761: while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, 29761: true, 4, 29761: 0)); 29761: return true; 29761: } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_single>::_M_add_ref_copy() 29761: { ++_M_use_count; } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_single>::_M_release() noexcept 29761: { 29761: if (--_M_use_count == 0) 29761: { 29761: _M_dispose(); 29761: if (--_M_weak_count == 0) 29761: _M_destroy(); 29761: } 29761: } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_mutex>::_M_release() noexcept 29761: { 29761: 29761: ; 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29761: { 29761: _M_release_last_use(); 29761: } 29761: } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_atomic>::_M_release() noexcept 29761: { 29761: ; 29761: 29761: constexpr bool __lock_free 29761: = __atomic_always_lock_free(sizeof(long long), 0) 29761: && __atomic_always_lock_free(sizeof(_Atomic_word), 0); 29761: constexpr bool __double_word 29761: = sizeof(long long) == 2 * sizeof(_Atomic_word); 29761: 29761: 29761: constexpr bool __aligned = __alignof(long long) <= alignof(void*); 29761: if constexpr (__lock_free && __double_word && __aligned) 29761: { 29761: constexpr int __wordbits = 8 * sizeof(_Atomic_word); 29761: constexpr int __shiftbits = __double_word ? __wordbits : 0; 29761: constexpr long long __unique_ref = 1LL + (1LL << __shiftbits); 29761: auto __both_counts = reinterpret_cast(&_M_use_count); 29761: 29761: ; 29761: if (__atomic_load_n(__both_counts, 2) == __unique_ref) 29761: { 29761: 29761: 29761: 29761: 29761: _M_weak_count = _M_use_count = 0; 29761: ; 29761: ; 29761: _M_dispose(); 29761: _M_destroy(); 29761: return; 29761: } 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29761: [[__unlikely__]] 29761: { 29761: _M_release_last_use_cold(); 29761: return; 29761: } 29761: } 29761: else 29761: 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) 29761: { 29761: _M_release_last_use(); 29761: } 29761: } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept 29761: { ++_M_weak_count; } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_base<_S_single>::_M_weak_release() noexcept 29761: { 29761: if (--_M_weak_count == 0) 29761: _M_destroy(); 29761: } 29761: 29761: template<> 29761: inline long 29761: _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept 29761: { return _M_use_count; } 29761: 29761: 29761: 29761: template 29761: class __shared_ptr; 29761: 29761: template 29761: class __weak_ptr; 29761: 29761: template 29761: class __enable_shared_from_this; 29761: 29761: template 29761: class shared_ptr; 29761: 29761: template 29761: class weak_ptr; 29761: 29761: template 29761: struct owner_less; 29761: 29761: template 29761: class enable_shared_from_this; 29761: 29761: template<_Lock_policy _Lp = __default_lock_policy> 29761: class __weak_count; 29761: 29761: template<_Lock_policy _Lp = __default_lock_policy> 29761: class __shared_count; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> 29761: { 29761: public: 29761: explicit 29761: _Sp_counted_ptr(_Ptr __p) noexcept 29761: : _M_ptr(__p) { } 29761: 29761: virtual void 29761: _M_dispose() noexcept 29761: { delete _M_ptr; } 29761: 29761: virtual void 29761: _M_destroy() noexcept 29761: { delete this; } 29761: 29761: virtual void* 29761: _M_get_deleter(const std::type_info&) noexcept 29761: { return nullptr; } 29761: 29761: _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; 29761: _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; 29761: 29761: private: 29761: _Ptr _M_ptr; 29761: }; 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_ptr::_M_dispose() noexcept { } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_ptr::_M_dispose() noexcept { } 29761: 29761: template<> 29761: inline void 29761: _Sp_counted_ptr::_M_dispose() noexcept { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Sp_ebo_helper; 29761: 29761: 29761: template 29761: struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp 29761: { 29761: explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } 29761: explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } 29761: 29761: static _Tp& 29761: _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } 29761: }; 29761: 29761: 29761: template 29761: struct _Sp_ebo_helper<_Nm, _Tp, false> 29761: { 29761: explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } 29761: explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } 29761: 29761: static _Tp& 29761: _S_get(_Sp_ebo_helper& __eboh) 29761: { return __eboh._M_tp; } 29761: 29761: private: 29761: _Tp _M_tp; 29761: }; 29761: 29761: 29761: template 29761: class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> 29761: { 29761: class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> 29761: { 29761: typedef _Sp_ebo_helper<0, _Deleter> _Del_base; 29761: typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; 29761: 29761: public: 29761: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 29761: : _Del_base(std::move(__d)), _Alloc_base(__a), _M_ptr(__p) 29761: { } 29761: 29761: _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } 29761: _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } 29761: 29761: _Ptr _M_ptr; 29761: }; 29761: 29761: public: 29761: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; 29761: 29761: 29761: _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept 29761: : _M_impl(__p, std::move(__d), _Alloc()) { } 29761: 29761: 29761: _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept 29761: : _M_impl(__p, std::move(__d), __a) { } 29761: 29761: ~_Sp_counted_deleter() noexcept { } 29761: 29761: virtual void 29761: _M_dispose() noexcept 29761: { _M_impl._M_del()(_M_impl._M_ptr); } 29761: 29761: virtual void 29761: _M_destroy() noexcept 29761: { 29761: __allocator_type __a(_M_impl._M_alloc()); 29761: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 29761: this->~_Sp_counted_deleter(); 29761: } 29761: 29761: virtual void* 29761: _M_get_deleter(const type_info& __ti [[__gnu__::__unused__]]) noexcept 29761: { 29761: 29761: 29761: 29761: return __ti == typeid(_Deleter) 29761: ? std::__addressof(_M_impl._M_del()) 29761: : nullptr; 29761: 29761: 29761: 29761: } 29761: 29761: private: 29761: 29761: 29761: 29761: _Impl _M_impl; 29761: }; 29761: 29761: 29761: 29761: struct _Sp_make_shared_tag 29761: { 29761: private: 29761: template 29761: friend class _Sp_counted_ptr_inplace; 29761: 29761: static const type_info& 29761: _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) 29761: { 29761: alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; 29761: return reinterpret_cast(__tag); 29761: } 29761: 29761: static bool _S_eq(const type_info&) noexcept; 29761: }; 29761: 29761: template 29761: struct _Sp_alloc_shared_tag 29761: { 29761: const _Alloc& _M_a; 29761: }; 29761: 29761: template 29761: class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> 29761: { 29761: class _Impl : _Sp_ebo_helper<0, _Alloc> 29761: { 29761: typedef _Sp_ebo_helper<0, _Alloc> _A_base; 29761: 29761: public: 29761: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } 29761: 29761: _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } 29761: 29761: __gnu_cxx::__aligned_buffer<_Tp> _M_storage; 29761: }; 29761: 29761: public: 29761: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; 29761: 29761: 29761: template 29761: _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) 29761: : _M_impl(__a) 29761: { 29761: 29761: 29761: allocator_traits<_Alloc>::construct(__a, _M_ptr(), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: ~_Sp_counted_ptr_inplace() noexcept { } 29761: 29761: virtual void 29761: _M_dispose() noexcept 29761: { 29761: allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); 29761: } 29761: 29761: 29761: virtual void 29761: _M_destroy() noexcept 29761: { 29761: __allocator_type __a(_M_impl._M_alloc()); 29761: __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; 29761: this->~_Sp_counted_ptr_inplace(); 29761: } 29761: 29761: private: 29761: friend class __shared_count<_Lp>; 29761: 29761: 29761: 29761: virtual void* 29761: _M_get_deleter(const std::type_info& __ti) noexcept override 29761: { 29761: auto __ptr = const_cast::type*>(_M_ptr()); 29761: 29761: 29761: 29761: 29761: if (&__ti == &_Sp_make_shared_tag::_S_ti() 29761: || 29761: 29761: __ti == typeid(_Sp_make_shared_tag) 29761: 29761: 29761: 29761: ) 29761: return __ptr; 29761: return nullptr; 29761: } 29761: 29761: _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } 29761: 29761: _Impl _M_impl; 29761: }; 29761: # 884 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: struct __sp_array_delete 29761: { 29761: template 29761: void operator()(_Yp* __p) const { delete[] __p; } 29761: }; 29761: 29761: template<_Lock_policy _Lp> 29761: class __shared_count 29761: { 29761: 29761: template 29761: struct __not_alloc_shared_tag { using type = void; }; 29761: 29761: template 29761: struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: public: 29761: constexpr __shared_count() noexcept : _M_pi(0) 29761: { } 29761: 29761: template 29761: explicit 29761: __shared_count(_Ptr __p) : _M_pi(0) 29761: { 29761: try 29761: { 29761: _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); 29761: } 29761: catch(...) 29761: { 29761: delete __p; 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: __shared_count(_Ptr __p, false_type) 29761: : __shared_count(__p) 29761: { } 29761: 29761: template 29761: __shared_count(_Ptr __p, true_type) 29761: : __shared_count(__p, __sp_array_delete{}, allocator()) 29761: { } 29761: 29761: template::type> 29761: __shared_count(_Ptr __p, _Deleter __d) 29761: : __shared_count(__p, std::move(__d), allocator()) 29761: { } 29761: 29761: template::type> 29761: __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) 29761: { 29761: typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; 29761: try 29761: { 29761: typename _Sp_cd_type::__allocator_type __a2(__a); 29761: auto __guard = std::__allocate_guarded(__a2); 29761: _Sp_cd_type* __mem = __guard.get(); 29761: ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); 29761: _M_pi = __mem; 29761: __guard = nullptr; 29761: } 29761: catch(...) 29761: { 29761: __d(__p); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, 29761: _Args&&... __args) 29761: { 29761: typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; 29761: typename _Sp_cp_type::__allocator_type __a2(__a._M_a); 29761: auto __guard = std::__allocate_guarded(__a2); 29761: _Sp_cp_type* __mem = __guard.get(); 29761: auto __pi = ::new (__mem) 29761: _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); 29761: __guard = nullptr; 29761: _M_pi = __pi; 29761: __p = __pi->_M_ptr(); 29761: } 29761: # 1022 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: template 29761: explicit 29761: __shared_count(std::auto_ptr<_Tp>&& __r); 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: template 29761: explicit 29761: __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) 29761: { 29761: 29761: 29761: if (__r.get() == nullptr) 29761: return; 29761: 29761: using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; 29761: using _Del2 = __conditional_t::value, 29761: reference_wrapper::type>, 29761: _Del>; 29761: using _Sp_cd_type 29761: = _Sp_counted_deleter<_Ptr, _Del2, allocator, _Lp>; 29761: using _Alloc = allocator<_Sp_cd_type>; 29761: using _Alloc_traits = allocator_traits<_Alloc>; 29761: _Alloc __a; 29761: _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); 29761: 29761: 29761: 29761: _Alloc_traits::construct(__a, __mem, __r.release(), 29761: std::forward<_Del>(__r.get_deleter())); 29761: _M_pi = __mem; 29761: } 29761: 29761: 29761: explicit __shared_count(const __weak_count<_Lp>& __r); 29761: 29761: 29761: explicit 29761: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept; 29761: 29761: ~__shared_count() noexcept 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_release(); 29761: } 29761: 29761: __shared_count(const __shared_count& __r) noexcept 29761: : _M_pi(__r._M_pi) 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_add_ref_copy(); 29761: } 29761: 29761: __shared_count& 29761: operator=(const __shared_count& __r) noexcept 29761: { 29761: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29761: if (__tmp != _M_pi) 29761: { 29761: if (__tmp != nullptr) 29761: __tmp->_M_add_ref_copy(); 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_release(); 29761: _M_pi = __tmp; 29761: } 29761: return *this; 29761: } 29761: 29761: void 29761: _M_swap(__shared_count& __r) noexcept 29761: { 29761: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29761: __r._M_pi = _M_pi; 29761: _M_pi = __tmp; 29761: } 29761: 29761: long 29761: _M_get_use_count() const noexcept 29761: { return _M_pi ? _M_pi->_M_get_use_count() : 0; } 29761: 29761: bool 29761: _M_unique() const noexcept 29761: { return this->_M_get_use_count() == 1; } 29761: 29761: void* 29761: _M_get_deleter(const std::type_info& __ti) const noexcept 29761: { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } 29761: 29761: bool 29761: _M_less(const __shared_count& __rhs) const noexcept 29761: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29761: 29761: bool 29761: _M_less(const __weak_count<_Lp>& __rhs) const noexcept 29761: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29761: 29761: 29761: friend inline bool 29761: operator==(const __shared_count& __a, const __shared_count& __b) noexcept 29761: { return __a._M_pi == __b._M_pi; } 29761: 29761: private: 29761: friend class __weak_count<_Lp>; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: _Sp_counted_base<_Lp>* _M_pi; 29761: }; 29761: 29761: 29761: template<_Lock_policy _Lp> 29761: class __weak_count 29761: { 29761: public: 29761: constexpr __weak_count() noexcept : _M_pi(nullptr) 29761: { } 29761: 29761: __weak_count(const __shared_count<_Lp>& __r) noexcept 29761: : _M_pi(__r._M_pi) 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_add_ref(); 29761: } 29761: 29761: __weak_count(const __weak_count& __r) noexcept 29761: : _M_pi(__r._M_pi) 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_add_ref(); 29761: } 29761: 29761: __weak_count(__weak_count&& __r) noexcept 29761: : _M_pi(__r._M_pi) 29761: { __r._M_pi = nullptr; } 29761: 29761: ~__weak_count() noexcept 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_release(); 29761: } 29761: 29761: __weak_count& 29761: operator=(const __shared_count<_Lp>& __r) noexcept 29761: { 29761: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29761: if (__tmp != nullptr) 29761: __tmp->_M_weak_add_ref(); 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_release(); 29761: _M_pi = __tmp; 29761: return *this; 29761: } 29761: 29761: __weak_count& 29761: operator=(const __weak_count& __r) noexcept 29761: { 29761: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29761: if (__tmp != nullptr) 29761: __tmp->_M_weak_add_ref(); 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_release(); 29761: _M_pi = __tmp; 29761: return *this; 29761: } 29761: 29761: __weak_count& 29761: operator=(__weak_count&& __r) noexcept 29761: { 29761: if (_M_pi != nullptr) 29761: _M_pi->_M_weak_release(); 29761: _M_pi = __r._M_pi; 29761: __r._M_pi = nullptr; 29761: return *this; 29761: } 29761: 29761: void 29761: _M_swap(__weak_count& __r) noexcept 29761: { 29761: _Sp_counted_base<_Lp>* __tmp = __r._M_pi; 29761: __r._M_pi = _M_pi; 29761: _M_pi = __tmp; 29761: } 29761: 29761: long 29761: _M_get_use_count() const noexcept 29761: { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } 29761: 29761: bool 29761: _M_less(const __weak_count& __rhs) const noexcept 29761: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29761: 29761: bool 29761: _M_less(const __shared_count<_Lp>& __rhs) const noexcept 29761: { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } 29761: 29761: 29761: friend inline bool 29761: operator==(const __weak_count& __a, const __weak_count& __b) noexcept 29761: { return __a._M_pi == __b._M_pi; } 29761: 29761: private: 29761: friend class __shared_count<_Lp>; 29761: 29761: 29761: 29761: 29761: _Sp_counted_base<_Lp>* _M_pi; 29761: }; 29761: 29761: 29761: template<_Lock_policy _Lp> 29761: inline 29761: __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) 29761: : _M_pi(__r._M_pi) 29761: { 29761: if (_M_pi == nullptr || !_M_pi->_M_add_ref_lock_nothrow()) 29761: __throw_bad_weak_ptr(); 29761: } 29761: 29761: 29761: template<_Lock_policy _Lp> 29761: inline 29761: __shared_count<_Lp>:: 29761: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept 29761: : _M_pi(__r._M_pi) 29761: { 29761: if (_M_pi && !_M_pi->_M_add_ref_lock_nothrow()) 29761: _M_pi = nullptr; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __sp_compatible_with 29761: : false_type 29761: { }; 29761: 29761: template 29761: struct __sp_compatible_with<_Yp*, _Tp*> 29761: : is_convertible<_Yp*, _Tp*>::type 29761: { }; 29761: 29761: template 29761: struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> 29761: : true_type 29761: { }; 29761: 29761: template 29761: struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> 29761: : true_type 29761: { }; 29761: 29761: template 29761: struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> 29761: : true_type 29761: { }; 29761: 29761: template 29761: struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> 29761: : true_type 29761: { }; 29761: 29761: 29761: template 29761: struct __sp_is_constructible_arrN 29761: : false_type 29761: { }; 29761: 29761: template 29761: struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> 29761: : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type 29761: { }; 29761: 29761: 29761: template 29761: struct __sp_is_constructible_arr 29761: : false_type 29761: { }; 29761: 29761: template 29761: struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> 29761: : is_convertible<_Yp(*)[], _Up(*)[]>::type 29761: { }; 29761: 29761: 29761: template 29761: struct __sp_is_constructible; 29761: 29761: 29761: template 29761: struct __sp_is_constructible<_Up[_Nm], _Yp> 29761: : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type 29761: { }; 29761: 29761: 29761: template 29761: struct __sp_is_constructible<_Up[], _Yp> 29761: : __sp_is_constructible_arr<_Up, _Yp>::type 29761: { }; 29761: 29761: 29761: template 29761: struct __sp_is_constructible 29761: : is_convertible<_Yp*, _Tp*>::type 29761: { }; 29761: 29761: 29761: 29761: template::value, bool = is_void<_Tp>::value> 29761: class __shared_ptr_access 29761: { 29761: public: 29761: using element_type = _Tp; 29761: 29761: element_type& 29761: operator*() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29761: return *_M_get(); 29761: } 29761: 29761: element_type* 29761: operator->() const noexcept 29761: { 29761: ; 29761: return _M_get(); 29761: } 29761: 29761: private: 29761: element_type* 29761: _M_get() const noexcept 29761: { return static_cast*>(this)->get(); } 29761: }; 29761: 29761: 29761: template 29761: class __shared_ptr_access<_Tp, _Lp, false, true> 29761: { 29761: public: 29761: using element_type = _Tp; 29761: 29761: element_type* 29761: operator->() const noexcept 29761: { 29761: auto __ptr = static_cast*>(this)->get(); 29761: ; 29761: return __ptr; 29761: } 29761: }; 29761: 29761: 29761: template 29761: class __shared_ptr_access<_Tp, _Lp, true, false> 29761: { 29761: public: 29761: using element_type = typename remove_extent<_Tp>::type; 29761: # 1408 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: element_type& 29761: operator[](ptrdiff_t __i) const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) std::__glibcxx_assert_fail(); } while (false); 29761: do { if (std::__is_constant_evaluated() && !bool(!extent<_Tp>::value || __i < extent<_Tp>::value)) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_get()[__i]; 29761: } 29761: 29761: private: 29761: element_type* 29761: _M_get() const noexcept 29761: { return static_cast*>(this)->get(); } 29761: }; 29761: 29761: template 29761: class __shared_ptr 29761: : public __shared_ptr_access<_Tp, _Lp> 29761: { 29761: public: 29761: using element_type = typename remove_extent<_Tp>::type; 29761: 29761: private: 29761: 29761: template 29761: using _SafeConv 29761: = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; 29761: 29761: 29761: template 29761: using _Compatible = typename 29761: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 29761: 29761: 29761: template 29761: using _Assignable = _Compatible<_Yp, __shared_ptr&>; 29761: 29761: 29761: template::pointer> 29761: using _UniqCompatible = __enable_if_t<__and_< 29761: __sp_compatible_with<_Yp*, _Tp*>, 29761: is_convertible<_Ptr, element_type*>, 29761: is_move_constructible<_Del> 29761: >::value, _Res>; 29761: 29761: 29761: template 29761: using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; 29761: 29761: public: 29761: 29761: 29761: using weak_type = __weak_ptr<_Tp, _Lp>; 29761: 29761: 29761: constexpr __shared_ptr() noexcept 29761: : _M_ptr(0), _M_refcount() 29761: { } 29761: 29761: template> 29761: explicit 29761: __shared_ptr(_Yp* __p) 29761: : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) 29761: { 29761: static_assert( !is_void<_Yp>::value, "incomplete type" ); 29761: static_assert( sizeof(_Yp) > 0, "incomplete type" ); 29761: _M_enable_shared_from_this_with(__p); 29761: } 29761: 29761: template> 29761: __shared_ptr(_Yp* __p, _Deleter __d) 29761: : _M_ptr(__p), _M_refcount(__p, std::move(__d)) 29761: { 29761: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 29761: "deleter expression d(p) is well-formed"); 29761: _M_enable_shared_from_this_with(__p); 29761: } 29761: 29761: template> 29761: __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 29761: : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) 29761: { 29761: static_assert(__is_invocable<_Deleter&, _Yp*&>::value, 29761: "deleter expression d(p) is well-formed"); 29761: _M_enable_shared_from_this_with(__p); 29761: } 29761: 29761: template 29761: __shared_ptr(nullptr_t __p, _Deleter __d) 29761: : _M_ptr(0), _M_refcount(__p, std::move(__d)) 29761: { } 29761: 29761: template 29761: __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 29761: : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) 29761: { } 29761: 29761: 29761: template 29761: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, 29761: element_type* __p) noexcept 29761: : _M_ptr(__p), _M_refcount(__r._M_refcount) 29761: { } 29761: 29761: 29761: template 29761: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r, 29761: element_type* __p) noexcept 29761: : _M_ptr(__p), _M_refcount() 29761: { 29761: _M_refcount._M_swap(__r._M_refcount); 29761: __r._M_ptr = nullptr; 29761: } 29761: 29761: __shared_ptr(const __shared_ptr&) noexcept = default; 29761: __shared_ptr& operator=(const __shared_ptr&) noexcept = default; 29761: ~__shared_ptr() = default; 29761: 29761: template> 29761: __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29761: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 29761: { } 29761: 29761: __shared_ptr(__shared_ptr&& __r) noexcept 29761: : _M_ptr(__r._M_ptr), _M_refcount() 29761: { 29761: _M_refcount._M_swap(__r._M_refcount); 29761: __r._M_ptr = nullptr; 29761: } 29761: 29761: template> 29761: __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 29761: : _M_ptr(__r._M_ptr), _M_refcount() 29761: { 29761: _M_refcount._M_swap(__r._M_refcount); 29761: __r._M_ptr = nullptr; 29761: } 29761: 29761: template> 29761: explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) 29761: : _M_refcount(__r._M_refcount) 29761: { 29761: 29761: 29761: _M_ptr = __r._M_ptr; 29761: } 29761: 29761: 29761: template> 29761: __shared_ptr(unique_ptr<_Yp, _Del>&& __r) 29761: : _M_ptr(__r.get()), _M_refcount() 29761: { 29761: auto __raw = __to_address(__r.get()); 29761: _M_refcount = __shared_count<_Lp>(std::move(__r)); 29761: _M_enable_shared_from_this_with(__raw); 29761: } 29761: # 1586 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: template> 29761: __shared_ptr(auto_ptr<_Yp>&& __r); 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } 29761: 29761: template 29761: _Assignable<_Yp> 29761: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29761: { 29761: _M_ptr = __r._M_ptr; 29761: _M_refcount = __r._M_refcount; 29761: return *this; 29761: } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template 29761: _Assignable<_Yp> 29761: operator=(auto_ptr<_Yp>&& __r) 29761: { 29761: __shared_ptr(std::move(__r)).swap(*this); 29761: return *this; 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: __shared_ptr& 29761: operator=(__shared_ptr&& __r) noexcept 29761: { 29761: __shared_ptr(std::move(__r)).swap(*this); 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable<_Yp> 29761: operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 29761: { 29761: __shared_ptr(std::move(__r)).swap(*this); 29761: return *this; 29761: } 29761: 29761: template 29761: _UniqAssignable<_Yp, _Del> 29761: operator=(unique_ptr<_Yp, _Del>&& __r) 29761: { 29761: __shared_ptr(std::move(__r)).swap(*this); 29761: return *this; 29761: } 29761: 29761: void 29761: reset() noexcept 29761: { __shared_ptr().swap(*this); } 29761: 29761: template 29761: _SafeConv<_Yp> 29761: reset(_Yp* __p) 29761: { 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__p == nullptr || __p != _M_ptr)) std::__glibcxx_assert_fail(); } while (false); 29761: __shared_ptr(__p).swap(*this); 29761: } 29761: 29761: template 29761: _SafeConv<_Yp> 29761: reset(_Yp* __p, _Deleter __d) 29761: { __shared_ptr(__p, std::move(__d)).swap(*this); } 29761: 29761: template 29761: _SafeConv<_Yp> 29761: reset(_Yp* __p, _Deleter __d, _Alloc __a) 29761: { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } 29761: 29761: 29761: element_type* 29761: get() const noexcept 29761: { return _M_ptr; } 29761: 29761: 29761: explicit operator bool() const noexcept 29761: { return _M_ptr != nullptr; } 29761: 29761: 29761: bool 29761: unique() const noexcept 29761: { return _M_refcount._M_unique(); } 29761: 29761: 29761: long 29761: use_count() const noexcept 29761: { return _M_refcount._M_get_use_count(); } 29761: 29761: 29761: void 29761: swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 29761: { 29761: std::swap(_M_ptr, __other._M_ptr); 29761: _M_refcount._M_swap(__other._M_refcount); 29761: } 29761: # 1698 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: template 29761: bool 29761: owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept 29761: { return _M_refcount._M_less(__rhs._M_refcount); } 29761: 29761: template 29761: bool 29761: owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept 29761: { return _M_refcount._M_less(__rhs._M_refcount); } 29761: 29761: 29761: protected: 29761: 29761: template 29761: __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 29761: : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) 29761: { _M_enable_shared_from_this_with(_M_ptr); } 29761: 29761: template 29761: friend __shared_ptr<_Tp1, _Lp1> 29761: __allocate_shared(const _Alloc& __a, _Args&&... __args); 29761: # 1732 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) noexcept 29761: : _M_refcount(__r._M_refcount, std::nothrow) 29761: { 29761: _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; 29761: } 29761: 29761: friend class __weak_ptr<_Tp, _Lp>; 29761: 29761: private: 29761: 29761: template 29761: using __esft_base_t = decltype(__enable_shared_from_this_base( 29761: std::declval&>(), 29761: std::declval<_Yp*>())); 29761: 29761: 29761: template 29761: struct __has_esft_base 29761: : false_type { }; 29761: 29761: template 29761: struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> 29761: : __not_> { }; 29761: 29761: template::type> 29761: typename enable_if<__has_esft_base<_Yp2>::value>::type 29761: _M_enable_shared_from_this_with(_Yp* __p) noexcept 29761: { 29761: if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) 29761: __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); 29761: } 29761: 29761: template::type> 29761: typename enable_if::value>::type 29761: _M_enable_shared_from_this_with(_Yp*) noexcept 29761: { } 29761: 29761: void* 29761: _M_get_deleter(const std::type_info& __ti) const noexcept 29761: { return _M_refcount._M_get_deleter(__ti); } 29761: 29761: template friend class __shared_ptr; 29761: template friend class __weak_ptr; 29761: 29761: template 29761: friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; 29761: 29761: template 29761: friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; 29761: # 1789 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: element_type* _M_ptr; 29761: __shared_count<_Lp> _M_refcount; 29761: }; 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator==(const __shared_ptr<_Tp1, _Lp>& __a, 29761: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29761: { return __a.get() == __b.get(); } 29761: 29761: template 29761: inline bool 29761: operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { return !__a; } 29761: # 1821 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: template 29761: inline bool 29761: operator==(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { return !__a; } 29761: 29761: template 29761: inline bool 29761: operator!=(const __shared_ptr<_Tp1, _Lp>& __a, 29761: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29761: { return __a.get() != __b.get(); } 29761: 29761: template 29761: inline bool 29761: operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { return (bool)__a; } 29761: 29761: template 29761: inline bool 29761: operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { return (bool)__a; } 29761: 29761: template 29761: inline bool 29761: operator<(const __shared_ptr<_Tp, _Lp>& __a, 29761: const __shared_ptr<_Up, _Lp>& __b) noexcept 29761: { 29761: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29761: using _Up_elt = typename __shared_ptr<_Up, _Lp>::element_type; 29761: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 29761: return less<_Vp>()(__a.get(), __b.get()); 29761: } 29761: 29761: template 29761: inline bool 29761: operator<(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { 29761: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29761: return less<_Tp_elt*>()(__a.get(), nullptr); 29761: } 29761: 29761: template 29761: inline bool 29761: operator<(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { 29761: using _Tp_elt = typename __shared_ptr<_Tp, _Lp>::element_type; 29761: return less<_Tp_elt*>()(nullptr, __a.get()); 29761: } 29761: 29761: template 29761: inline bool 29761: operator<=(const __shared_ptr<_Tp1, _Lp>& __a, 29761: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29761: { return !(__b < __a); } 29761: 29761: template 29761: inline bool 29761: operator<=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { return !(nullptr < __a); } 29761: 29761: template 29761: inline bool 29761: operator<=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { return !(__a < nullptr); } 29761: 29761: template 29761: inline bool 29761: operator>(const __shared_ptr<_Tp1, _Lp>& __a, 29761: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29761: { return (__b < __a); } 29761: 29761: template 29761: inline bool 29761: operator>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { return nullptr < __a; } 29761: 29761: template 29761: inline bool 29761: operator>(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { return __a < nullptr; } 29761: 29761: template 29761: inline bool 29761: operator>=(const __shared_ptr<_Tp1, _Lp>& __a, 29761: const __shared_ptr<_Tp2, _Lp>& __b) noexcept 29761: { return !(__a < __b); } 29761: 29761: template 29761: inline bool 29761: operator>=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept 29761: { return !(__a < nullptr); } 29761: 29761: template 29761: inline bool 29761: operator>=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept 29761: { return !(nullptr < __a); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept 29761: { __a.swap(__b); } 29761: # 1931 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29761: { 29761: using _Sp = __shared_ptr<_Tp, _Lp>; 29761: return _Sp(__r, static_cast(__r.get())); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29761: { 29761: using _Sp = __shared_ptr<_Tp, _Lp>; 29761: return _Sp(__r, const_cast(__r.get())); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29761: { 29761: using _Sp = __shared_ptr<_Tp, _Lp>; 29761: if (auto* __p = dynamic_cast(__r.get())) 29761: return _Sp(__r, __p); 29761: return _Sp(); 29761: } 29761: 29761: 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: reinterpret_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept 29761: { 29761: using _Sp = __shared_ptr<_Tp, _Lp>; 29761: return _Sp(__r, reinterpret_cast(__r.get())); 29761: } 29761: 29761: 29761: template 29761: class __weak_ptr 29761: { 29761: template 29761: using _Compatible = typename 29761: enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; 29761: 29761: 29761: template 29761: using _Assignable = _Compatible<_Yp, __weak_ptr&>; 29761: 29761: public: 29761: using element_type = typename remove_extent<_Tp>::type; 29761: 29761: constexpr __weak_ptr() noexcept 29761: : _M_ptr(nullptr), _M_refcount() 29761: { } 29761: 29761: __weak_ptr(const __weak_ptr&) noexcept = default; 29761: 29761: ~__weak_ptr() = default; 29761: # 2013 "/usr/include/c++/14/bits/shared_ptr_base.h" 3 29761: template> 29761: __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept 29761: : _M_refcount(__r._M_refcount) 29761: { _M_ptr = __r.lock().get(); } 29761: 29761: template> 29761: __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29761: : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) 29761: { } 29761: 29761: __weak_ptr(__weak_ptr&& __r) noexcept 29761: : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) 29761: { __r._M_ptr = nullptr; } 29761: 29761: template> 29761: __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept 29761: : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) 29761: { __r._M_ptr = nullptr; } 29761: 29761: __weak_ptr& 29761: operator=(const __weak_ptr& __r) noexcept = default; 29761: 29761: template 29761: _Assignable<_Yp> 29761: operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept 29761: { 29761: _M_ptr = __r.lock().get(); 29761: _M_refcount = __r._M_refcount; 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable<_Yp> 29761: operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 29761: { 29761: _M_ptr = __r._M_ptr; 29761: _M_refcount = __r._M_refcount; 29761: return *this; 29761: } 29761: 29761: __weak_ptr& 29761: operator=(__weak_ptr&& __r) noexcept 29761: { 29761: __weak_ptr(std::move(__r)).swap(*this); 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable<_Yp> 29761: operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept 29761: { 29761: _M_ptr = __r.lock().get(); 29761: _M_refcount = std::move(__r._M_refcount); 29761: __r._M_ptr = nullptr; 29761: return *this; 29761: } 29761: 29761: __shared_ptr<_Tp, _Lp> 29761: lock() const noexcept 29761: { return __shared_ptr(*this, std::nothrow); } 29761: 29761: long 29761: use_count() const noexcept 29761: { return _M_refcount._M_get_use_count(); } 29761: 29761: bool 29761: expired() const noexcept 29761: { return _M_refcount._M_get_use_count() == 0; } 29761: 29761: template 29761: bool 29761: owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept 29761: { return _M_refcount._M_less(__rhs._M_refcount); } 29761: 29761: template 29761: bool 29761: owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept 29761: { return _M_refcount._M_less(__rhs._M_refcount); } 29761: 29761: void 29761: reset() noexcept 29761: { __weak_ptr().swap(*this); } 29761: 29761: void 29761: swap(__weak_ptr& __s) noexcept 29761: { 29761: std::swap(_M_ptr, __s._M_ptr); 29761: _M_refcount._M_swap(__s._M_refcount); 29761: } 29761: 29761: private: 29761: 29761: void 29761: _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept 29761: { 29761: if (use_count() == 0) 29761: { 29761: _M_ptr = __ptr; 29761: _M_refcount = __refcount; 29761: } 29761: } 29761: 29761: template friend class __shared_ptr; 29761: template friend class __weak_ptr; 29761: friend class __enable_shared_from_this<_Tp, _Lp>; 29761: friend class enable_shared_from_this<_Tp>; 29761: 29761: 29761: 29761: 29761: element_type* _M_ptr; 29761: __weak_count<_Lp> _M_refcount; 29761: }; 29761: 29761: 29761: template 29761: inline void 29761: swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept 29761: { __a.swap(__b); } 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template 29761: struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> 29761: { 29761: bool 29761: operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept 29761: { return __lhs.owner_before(__rhs); } 29761: 29761: bool 29761: operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept 29761: { return __lhs.owner_before(__rhs); } 29761: 29761: bool 29761: operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept 29761: { return __lhs.owner_before(__rhs); } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: template<> 29761: struct _Sp_owner_less 29761: { 29761: template 29761: auto 29761: operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept 29761: -> decltype(__lhs.owner_before(__rhs)) 29761: { return __lhs.owner_before(__rhs); } 29761: 29761: using is_transparent = void; 29761: }; 29761: 29761: template 29761: struct owner_less<__shared_ptr<_Tp, _Lp>> 29761: : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> 29761: { }; 29761: 29761: template 29761: struct owner_less<__weak_ptr<_Tp, _Lp>> 29761: : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> 29761: { }; 29761: 29761: 29761: template 29761: class __enable_shared_from_this 29761: { 29761: protected: 29761: constexpr __enable_shared_from_this() noexcept { } 29761: 29761: __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } 29761: 29761: __enable_shared_from_this& 29761: operator=(const __enable_shared_from_this&) noexcept 29761: { return *this; } 29761: 29761: ~__enable_shared_from_this() { } 29761: 29761: public: 29761: __shared_ptr<_Tp, _Lp> 29761: shared_from_this() 29761: { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } 29761: 29761: __shared_ptr 29761: shared_from_this() const 29761: { return __shared_ptr(this->_M_weak_this); } 29761: 29761: 29761: __weak_ptr<_Tp, _Lp> 29761: weak_from_this() noexcept 29761: { return this->_M_weak_this; } 29761: 29761: __weak_ptr 29761: weak_from_this() const noexcept 29761: { return this->_M_weak_this; } 29761: 29761: 29761: private: 29761: template 29761: void 29761: _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept 29761: { _M_weak_this._M_assign(__p, __n); } 29761: 29761: friend const __enable_shared_from_this* 29761: __enable_shared_from_this_base(const __shared_count<_Lp>&, 29761: const __enable_shared_from_this* __p) 29761: { return __p; } 29761: 29761: template 29761: friend class __shared_ptr; 29761: 29761: mutable __weak_ptr<_Tp, _Lp> _M_weak_this; 29761: }; 29761: 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: __allocate_shared(const _Alloc& __a, _Args&&... __args) 29761: { 29761: static_assert(!is_array<_Tp>::value, "make_shared not supported"); 29761: 29761: return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: template 29761: inline __shared_ptr<_Tp, _Lp> 29761: __make_shared(_Args&&... __args) 29761: { 29761: typedef typename std::remove_const<_Tp>::type _Tp_nc; 29761: return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: template 29761: struct hash<__shared_ptr<_Tp, _Lp>> 29761: : public __hash_base> 29761: { 29761: size_t 29761: operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept 29761: { 29761: return hash::element_type*>()( 29761: __s.get()); 29761: } 29761: }; 29761: 29761: 29761: } 29761: # 54 "/usr/include/c++/14/bits/shared_ptr.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 68 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: inline std::basic_ostream<_Ch, _Tr>& 29761: operator<<(std::basic_ostream<_Ch, _Tr>& __os, 29761: const __shared_ptr<_Tp, _Lp>& __p) 29761: { 29761: __os << __p.get(); 29761: return __os; 29761: } 29761: 29761: template 29761: inline _Del* 29761: get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept 29761: { 29761: 29761: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline _Del* 29761: get_deleter(const shared_ptr<_Tp>& __p) noexcept 29761: { 29761: 29761: return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); 29761: 29761: 29761: 29761: } 29761: # 111 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: using _NonArray = __enable_if_t::value, _Tp>; 29761: # 174 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: class shared_ptr : public __shared_ptr<_Tp> 29761: { 29761: template 29761: using _Constructible = typename enable_if< 29761: is_constructible<__shared_ptr<_Tp>, _Args...>::value 29761: >::type; 29761: 29761: template 29761: using _Assignable = typename enable_if< 29761: is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& 29761: >::type; 29761: 29761: public: 29761: 29761: 29761: using element_type = typename __shared_ptr<_Tp>::element_type; 29761: 29761: 29761: 29761: 29761: using weak_type = weak_ptr<_Tp>; 29761: 29761: 29761: 29761: 29761: 29761: constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } 29761: 29761: shared_ptr(const shared_ptr&) noexcept = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 29761: # 228 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template> 29761: shared_ptr(_Yp* __p, _Deleter __d) 29761: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 29761: # 246 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: shared_ptr(nullptr_t __p, _Deleter __d) 29761: : __shared_ptr<_Tp>(__p, std::move(__d)) { } 29761: # 265 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template> 29761: shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) 29761: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 29761: # 285 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) 29761: : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } 29761: # 309 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept 29761: : __shared_ptr<_Tp>(__r, __p) { } 29761: # 348 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template&>> 29761: shared_ptr(const shared_ptr<_Yp>& __r) noexcept 29761: : __shared_ptr<_Tp>(__r) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: shared_ptr(shared_ptr&& __r) noexcept 29761: : __shared_ptr<_Tp>(std::move(__r)) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template>> 29761: shared_ptr(shared_ptr<_Yp>&& __r) noexcept 29761: : __shared_ptr<_Tp>(std::move(__r)) { } 29761: # 378 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template&>> 29761: explicit shared_ptr(const weak_ptr<_Yp>& __r) 29761: : __shared_ptr<_Tp>(__r) { } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template>> 29761: shared_ptr(auto_ptr<_Yp>&& __r); 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: template>> 29761: shared_ptr(unique_ptr<_Yp, _Del>&& __r) 29761: : __shared_ptr<_Tp>(std::move(__r)) { } 29761: # 411 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } 29761: 29761: shared_ptr& operator=(const shared_ptr&) noexcept = default; 29761: 29761: template 29761: _Assignable&> 29761: operator=(const shared_ptr<_Yp>& __r) noexcept 29761: { 29761: this->__shared_ptr<_Tp>::operator=(__r); 29761: return *this; 29761: } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: template 29761: _Assignable> 29761: operator=(auto_ptr<_Yp>&& __r) 29761: { 29761: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29761: return *this; 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: shared_ptr& 29761: operator=(shared_ptr&& __r) noexcept 29761: { 29761: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable> 29761: operator=(shared_ptr<_Yp>&& __r) noexcept 29761: { 29761: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable> 29761: operator=(unique_ptr<_Yp, _Del>&& __r) 29761: { 29761: this->__shared_ptr<_Tp>::operator=(std::move(__r)); 29761: return *this; 29761: } 29761: 29761: private: 29761: 29761: template 29761: shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) 29761: : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: friend shared_ptr<_NonArray<_Yp>> 29761: allocate_shared(const _Alloc&, _Args&&...); 29761: 29761: template 29761: friend shared_ptr<_NonArray<_Yp>> 29761: make_shared(_Args&&...); 29761: # 534 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept 29761: : __shared_ptr<_Tp>(__r, std::nothrow) { } 29761: 29761: friend class weak_ptr<_Tp>; 29761: }; 29761: 29761: 29761: template 29761: shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>; 29761: template 29761: shared_ptr(unique_ptr<_Tp, _Del>) -> shared_ptr<_Tp>; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { return __a.get() == __b.get(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { return !__a; } 29761: # 579 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator==(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { return !__a; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { return __a.get() != __b.get(); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { return (bool)__a; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { return (bool)__a; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { 29761: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29761: using _Up_elt = typename shared_ptr<_Up>::element_type; 29761: using _Vp = typename common_type<_Tp_elt*, _Up_elt*>::type; 29761: return less<_Vp>()(__a.get(), __b.get()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { 29761: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29761: return less<_Tp_elt*>()(__a.get(), nullptr); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { 29761: using _Tp_elt = typename shared_ptr<_Tp>::element_type; 29761: return less<_Tp_elt*>()(nullptr, __a.get()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { return !(__b < __a); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { return !(nullptr < __a); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator<=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { return !(__a < nullptr); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { return (__b < __a); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { return nullptr < __a; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { return __a < nullptr; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept 29761: { return !(__a < __b); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept 29761: { return !(__a < nullptr); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] inline bool 29761: operator>=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept 29761: { return !(nullptr < __a); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept 29761: { __a.swap(__b); } 29761: 29761: 29761: 29761: 29761: template 29761: inline shared_ptr<_Tp> 29761: static_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29761: { 29761: using _Sp = shared_ptr<_Tp>; 29761: return _Sp(__r, static_cast(__r.get())); 29761: } 29761: 29761: 29761: template 29761: inline shared_ptr<_Tp> 29761: const_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29761: { 29761: using _Sp = shared_ptr<_Tp>; 29761: return _Sp(__r, const_cast(__r.get())); 29761: } 29761: 29761: 29761: template 29761: inline shared_ptr<_Tp> 29761: dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29761: { 29761: using _Sp = shared_ptr<_Tp>; 29761: if (auto* __p = dynamic_cast(__r.get())) 29761: return _Sp(__r, __p); 29761: return _Sp(); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline shared_ptr<_Tp> 29761: reinterpret_pointer_cast(const shared_ptr<_Up>& __r) noexcept 29761: { 29761: using _Sp = shared_ptr<_Tp>; 29761: return _Sp(__r, reinterpret_cast(__r.get())); 29761: } 29761: # 809 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: class weak_ptr : public __weak_ptr<_Tp> 29761: { 29761: template 29761: using _Constructible = typename enable_if< 29761: is_constructible<__weak_ptr<_Tp>, _Arg>::value 29761: >::type; 29761: 29761: template 29761: using _Assignable = typename enable_if< 29761: is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& 29761: >::type; 29761: 29761: public: 29761: constexpr weak_ptr() noexcept = default; 29761: 29761: template&>> 29761: weak_ptr(const shared_ptr<_Yp>& __r) noexcept 29761: : __weak_ptr<_Tp>(__r) { } 29761: 29761: weak_ptr(const weak_ptr&) noexcept = default; 29761: 29761: template&>> 29761: weak_ptr(const weak_ptr<_Yp>& __r) noexcept 29761: : __weak_ptr<_Tp>(__r) { } 29761: 29761: weak_ptr(weak_ptr&&) noexcept = default; 29761: 29761: template>> 29761: weak_ptr(weak_ptr<_Yp>&& __r) noexcept 29761: : __weak_ptr<_Tp>(std::move(__r)) { } 29761: 29761: weak_ptr& 29761: operator=(const weak_ptr& __r) noexcept = default; 29761: 29761: template 29761: _Assignable&> 29761: operator=(const weak_ptr<_Yp>& __r) noexcept 29761: { 29761: this->__weak_ptr<_Tp>::operator=(__r); 29761: return *this; 29761: } 29761: 29761: template 29761: _Assignable&> 29761: operator=(const shared_ptr<_Yp>& __r) noexcept 29761: { 29761: this->__weak_ptr<_Tp>::operator=(__r); 29761: return *this; 29761: } 29761: 29761: weak_ptr& 29761: operator=(weak_ptr&& __r) noexcept = default; 29761: 29761: template 29761: _Assignable> 29761: operator=(weak_ptr<_Yp>&& __r) noexcept 29761: { 29761: this->__weak_ptr<_Tp>::operator=(std::move(__r)); 29761: return *this; 29761: } 29761: 29761: shared_ptr<_Tp> 29761: lock() const noexcept 29761: { return shared_ptr<_Tp>(*this, std::nothrow); } 29761: }; 29761: 29761: 29761: template 29761: weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept 29761: { __a.swap(__b); } 29761: 29761: 29761: 29761: template 29761: struct owner_less; 29761: 29761: 29761: template<> 29761: struct owner_less : _Sp_owner_less 29761: { }; 29761: 29761: 29761: template 29761: struct owner_less> 29761: : public _Sp_owner_less, weak_ptr<_Tp>> 29761: { }; 29761: 29761: 29761: template 29761: struct owner_less> 29761: : public _Sp_owner_less, shared_ptr<_Tp>> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class enable_shared_from_this 29761: { 29761: protected: 29761: constexpr enable_shared_from_this() noexcept { } 29761: 29761: enable_shared_from_this(const enable_shared_from_this&) noexcept { } 29761: 29761: enable_shared_from_this& 29761: operator=(const enable_shared_from_this&) noexcept 29761: { return *this; } 29761: 29761: ~enable_shared_from_this() { } 29761: 29761: public: 29761: shared_ptr<_Tp> 29761: shared_from_this() 29761: { return shared_ptr<_Tp>(this->_M_weak_this); } 29761: 29761: shared_ptr 29761: shared_from_this() const 29761: { return shared_ptr(this->_M_weak_this); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: weak_ptr<_Tp> 29761: weak_from_this() noexcept 29761: { return this->_M_weak_this; } 29761: 29761: weak_ptr 29761: weak_from_this() const noexcept 29761: { return this->_M_weak_this; } 29761: 29761: 29761: 29761: private: 29761: template 29761: void 29761: _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept 29761: { _M_weak_this._M_assign(__p, __n); } 29761: 29761: 29761: friend const enable_shared_from_this* 29761: __enable_shared_from_this_base(const __shared_count<>&, 29761: const enable_shared_from_this* __p) 29761: { return __p; } 29761: 29761: template 29761: friend class __shared_ptr; 29761: 29761: mutable weak_ptr<_Tp> _M_weak_this; 29761: }; 29761: # 986 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: inline shared_ptr<_NonArray<_Tp>> 29761: allocate_shared(const _Alloc& __a, _Args&&... __args) 29761: { 29761: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 1001 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: inline shared_ptr<_NonArray<_Tp>> 29761: make_shared(_Args&&... __args) 29761: { 29761: using _Alloc = allocator; 29761: _Alloc __a; 29761: return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 1150 "/usr/include/c++/14/bits/shared_ptr.h" 3 29761: template 29761: struct hash> 29761: : public __hash_base> 29761: { 29761: size_t 29761: operator()(const shared_ptr<_Tp>& __s) const noexcept 29761: { 29761: return std::hash::element_type*>()(__s.get()); 29761: } 29761: }; 29761: 29761: 29761: template 29761: static constexpr bool __is_shared_ptr = false; 29761: template 29761: static constexpr bool __is_shared_ptr> = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __detail::__variant 29761: { 29761: template struct _Never_valueless_alt; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : std::true_type 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : std::true_type 29761: { }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 81 "/usr/include/c++/14/memory" 2 3 29761: # 1 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 1 3 29761: # 62 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 74 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: struct _Sp_locker 29761: { 29761: _Sp_locker(const _Sp_locker&) = delete; 29761: _Sp_locker& operator=(const _Sp_locker&) = delete; 29761: 29761: 29761: explicit 29761: _Sp_locker(const void*) noexcept; 29761: _Sp_locker(const void*, const void*) noexcept; 29761: ~_Sp_locker(); 29761: 29761: private: 29761: unsigned char _M_key1; 29761: unsigned char _M_key2; 29761: 29761: 29761: 29761: }; 29761: # 101 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: template 29761: 29761: inline bool 29761: atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>*) 29761: { 29761: 29761: return __gthread_active_p() == 0; 29761: 29761: 29761: 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_is_lock_free(const shared_ptr<_Tp>* __p) 29761: { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } 29761: # 130 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: template 29761: 29761: inline shared_ptr<_Tp> 29761: atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: return *__p; 29761: } 29761: 29761: template 29761: 29761: inline shared_ptr<_Tp> 29761: atomic_load(const shared_ptr<_Tp>* __p) 29761: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 29761: 29761: template 29761: 29761: inline __shared_ptr<_Tp, _Lp> 29761: atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: return *__p; 29761: } 29761: 29761: template 29761: 29761: inline __shared_ptr<_Tp, _Lp> 29761: atomic_load(const __shared_ptr<_Tp, _Lp>* __p) 29761: { return std::atomic_load_explicit(__p, memory_order_seq_cst); } 29761: # 170 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: template 29761: 29761: inline void 29761: atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 29761: memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: __p->swap(__r); 29761: } 29761: 29761: template 29761: 29761: inline void 29761: atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 29761: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 29761: 29761: template 29761: 29761: inline void 29761: atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp> __r, 29761: memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: __p->swap(__r); 29761: } 29761: 29761: template 29761: 29761: inline void 29761: atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 29761: { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } 29761: # 211 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: template 29761: 29761: inline shared_ptr<_Tp> 29761: atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, 29761: memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: __p->swap(__r); 29761: return __r; 29761: } 29761: 29761: template 29761: 29761: inline shared_ptr<_Tp> 29761: atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) 29761: { 29761: return std::atomic_exchange_explicit(__p, std::move(__r), 29761: memory_order_seq_cst); 29761: } 29761: 29761: template 29761: 29761: inline __shared_ptr<_Tp, _Lp> 29761: atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp> __r, 29761: memory_order) 29761: { 29761: _Sp_locker __lock{__p}; 29761: __p->swap(__r); 29761: return __r; 29761: } 29761: 29761: template 29761: 29761: inline __shared_ptr<_Tp, _Lp> 29761: atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) 29761: { 29761: return std::atomic_exchange_explicit(__p, std::move(__r), 29761: memory_order_seq_cst); 29761: } 29761: # 264 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: template 29761: 29761: bool 29761: atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, 29761: shared_ptr<_Tp>* __v, 29761: shared_ptr<_Tp> __w, 29761: memory_order, 29761: memory_order) 29761: { 29761: shared_ptr<_Tp> __x; 29761: _Sp_locker __lock{__p, __v}; 29761: owner_less> __less; 29761: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 29761: { 29761: __x = std::move(*__p); 29761: *__p = std::move(__w); 29761: return true; 29761: } 29761: __x = std::move(*__v); 29761: *__v = *__p; 29761: return false; 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 29761: shared_ptr<_Tp> __w) 29761: { 29761: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29761: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, 29761: shared_ptr<_Tp>* __v, 29761: shared_ptr<_Tp> __w, 29761: memory_order __success, 29761: memory_order __failure) 29761: { 29761: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29761: std::move(__w), __success, __failure); 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, 29761: shared_ptr<_Tp> __w) 29761: { 29761: return std::atomic_compare_exchange_weak_explicit(__p, __v, 29761: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29761: } 29761: 29761: template 29761: 29761: bool 29761: atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp>* __v, 29761: __shared_ptr<_Tp, _Lp> __w, 29761: memory_order, 29761: memory_order) 29761: { 29761: __shared_ptr<_Tp, _Lp> __x; 29761: _Sp_locker __lock{__p, __v}; 29761: owner_less<__shared_ptr<_Tp, _Lp>> __less; 29761: if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) 29761: { 29761: __x = std::move(*__p); 29761: *__p = std::move(__w); 29761: return true; 29761: } 29761: __x = std::move(*__v); 29761: *__v = *__p; 29761: return false; 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp>* __v, 29761: __shared_ptr<_Tp, _Lp> __w) 29761: { 29761: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29761: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp>* __v, 29761: __shared_ptr<_Tp, _Lp> __w, 29761: memory_order __success, 29761: memory_order __failure) 29761: { 29761: return std::atomic_compare_exchange_strong_explicit(__p, __v, 29761: std::move(__w), __success, __failure); 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, 29761: __shared_ptr<_Tp, _Lp>* __v, 29761: __shared_ptr<_Tp, _Lp> __w) 29761: { 29761: return std::atomic_compare_exchange_weak_explicit(__p, __v, 29761: std::move(__w), memory_order_seq_cst, memory_order_seq_cst); 29761: } 29761: # 867 "/usr/include/c++/14/bits/shared_ptr_atomic.h" 3 29761: 29761: } 29761: # 82 "/usr/include/c++/14/memory" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/backward/auto_ptr.h" 1 3 29761: # 36 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 47 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: template 29761: struct auto_ptr_ref 29761: { 29761: _Tp1* _M_ptr; 29761: 29761: explicit 29761: auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } 29761: } __attribute__ ((__deprecated__)); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: # 92 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: template 29761: class auto_ptr 29761: { 29761: private: 29761: _Tp* _M_ptr; 29761: 29761: public: 29761: 29761: typedef _Tp element_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } 29761: # 118 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } 29761: # 130 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: template 29761: auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } 29761: # 141 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: auto_ptr& 29761: operator=(auto_ptr& __a) throw() 29761: { 29761: reset(__a.release()); 29761: return *this; 29761: } 29761: # 158 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: template 29761: auto_ptr& 29761: operator=(auto_ptr<_Tp1>& __a) throw() 29761: { 29761: reset(__a.release()); 29761: return *this; 29761: } 29761: # 176 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: ~auto_ptr() { delete _M_ptr; } 29761: # 186 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: element_type& 29761: operator*() const throw() 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) std::__glibcxx_assert_fail(); } while (false); 29761: return *_M_ptr; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: element_type* 29761: operator->() const throw() 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_ptr; 29761: } 29761: # 216 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: element_type* 29761: get() const throw() { return _M_ptr; } 29761: # 230 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: element_type* 29761: release() throw() 29761: { 29761: element_type* __tmp = _M_ptr; 29761: _M_ptr = 0; 29761: return __tmp; 29761: } 29761: # 245 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: void 29761: reset(element_type* __p = 0) throw() 29761: { 29761: if (__p != _M_ptr) 29761: { 29761: delete _M_ptr; 29761: _M_ptr = __p; 29761: } 29761: } 29761: # 270 "/usr/include/c++/14/backward/auto_ptr.h" 3 29761: auto_ptr(auto_ptr_ref __ref) throw() 29761: : _M_ptr(__ref._M_ptr) { } 29761: 29761: auto_ptr& 29761: operator=(auto_ptr_ref __ref) throw() 29761: { 29761: if (__ref._M_ptr != this->get()) 29761: { 29761: delete _M_ptr; 29761: _M_ptr = __ref._M_ptr; 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: operator auto_ptr_ref<_Tp1>() throw() 29761: { return auto_ptr_ref<_Tp1>(this->release()); } 29761: 29761: template 29761: operator auto_ptr<_Tp1>() throw() 29761: { return auto_ptr<_Tp1>(this->release()); } 29761: } __attribute__ ((__deprecated__ ("use '" "std::unique_ptr" "' instead"))); 29761: 29761: 29761: 29761: template<> 29761: class auto_ptr 29761: { 29761: public: 29761: typedef void element_type; 29761: } __attribute__ ((__deprecated__)); 29761: 29761: 29761: 29761: template<_Lock_policy _Lp> 29761: template 29761: inline 29761: __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) 29761: : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) 29761: { __r.release(); } 29761: 29761: template 29761: template 29761: inline 29761: __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) 29761: : _M_ptr(__r.get()), _M_refcount() 29761: { 29761: 29761: static_assert( sizeof(_Tp1) > 0, "incomplete type" ); 29761: _Tp1* __tmp = __r.get(); 29761: _M_refcount = __shared_count<_Lp>(std::move(__r)); 29761: _M_enable_shared_from_this_with(__tmp); 29761: } 29761: 29761: template 29761: template 29761: inline 29761: shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) 29761: : __shared_ptr<_Tp>(std::move(__r)) { } 29761: 29761: 29761: template 29761: template 29761: inline 29761: unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept 29761: : _M_t(__u.release(), deleter_type()) { } 29761: 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: } 29761: # 87 "/usr/include/c++/14/memory" 2 3 29761: # 115 "/usr/include/c++/14/memory" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 116 "/usr/include/c++/14/memory" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 136 "/usr/include/c++/14/memory" 3 29761: enum class pointer_safety { relaxed, preferred, strict }; 29761: 29761: 29761: inline void 29761: declare_reachable(void*) { } 29761: 29761: 29761: template 29761: inline _Tp* 29761: undeclare_reachable(_Tp* __p) { return __p; } 29761: 29761: 29761: inline void 29761: declare_no_pointers(char*, size_t) { } 29761: 29761: 29761: inline void 29761: undeclare_no_pointers(char*, size_t) { } 29761: 29761: 29761: inline pointer_safety 29761: get_pointer_safety() noexcept { return pointer_safety::relaxed; } 29761: 29761: 29761: 29761: } 29761: # 171 "/usr/include/c++/14/memory" 3 29761: # 1 "/usr/include/c++/14/pstl/glue_memory_defs.h" 1 3 29761: # 13 "/usr/include/c++/14/pstl/glue_memory_defs.h" 3 29761: # 1 "/usr/include/c++/14/pstl/execution_defs.h" 1 3 29761: # 15 "/usr/include/c++/14/pstl/execution_defs.h" 3 29761: namespace __pstl 29761: { 29761: namespace execution 29761: { 29761: inline namespace v1 29761: { 29761: 29761: 29761: class sequenced_policy 29761: { 29761: }; 29761: 29761: 29761: class parallel_policy 29761: { 29761: }; 29761: 29761: 29761: class parallel_unsequenced_policy 29761: { 29761: }; 29761: 29761: class unsequenced_policy 29761: { 29761: }; 29761: 29761: 29761: inline constexpr sequenced_policy seq{}; 29761: inline constexpr parallel_policy par{}; 29761: inline constexpr parallel_unsequenced_policy par_unseq{}; 29761: inline constexpr unsequenced_policy unseq{}; 29761: 29761: 29761: template 29761: struct is_execution_policy : std::false_type 29761: { 29761: }; 29761: 29761: template <> 29761: struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type 29761: { 29761: }; 29761: template <> 29761: struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type 29761: { 29761: }; 29761: template <> 29761: struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type 29761: { 29761: }; 29761: template <> 29761: struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type 29761: { 29761: }; 29761: 29761: 29761: template 29761: constexpr bool is_execution_policy_v = __pstl::execution::is_execution_policy<_Tp>::value; 29761: 29761: 29761: } 29761: } 29761: 29761: namespace __internal 29761: { 29761: template 29761: 29761: using __enable_if_execution_policy = 29761: typename std::enable_if<__pstl::execution::is_execution_policy>::value, 29761: _Tp>::type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __serial_tag; 29761: template 29761: struct __parallel_tag; 29761: 29761: } 29761: 29761: } 29761: # 14 "/usr/include/c++/14/pstl/glue_memory_defs.h" 2 3 29761: 29761: namespace std 29761: { 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: uninitialized_fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, const _Tp& __value); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: destroy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: destroy_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: uninitialized_default_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_default_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: uninitialized_value_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); 29761: 29761: } 29761: # 172 "/usr/include/c++/14/memory" 2 3 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/usr/include/c++/14/string" 1 3 29761: # 36 "/usr/include/c++/14/string" 3 29761: 29761: # 37 "/usr/include/c++/14/string" 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/char_traits.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/char_traits.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/char_traits.h" 3 29761: # 46 "/usr/include/c++/14/bits/char_traits.h" 3 29761: # 1 "/usr/include/c++/14/cwchar" 1 3 29761: # 39 "/usr/include/c++/14/cwchar" 3 29761: 29761: # 40 "/usr/include/c++/14/cwchar" 3 29761: # 47 "/usr/include/c++/14/bits/char_traits.h" 2 3 29761: # 64 "/usr/include/c++/14/bits/char_traits.h" 3 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: # 68 "/usr/include/c++/14/bits/char_traits.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wstringop-overflow" 29761: #pragma GCC diagnostic ignored "-Wstringop-overread" 29761: #pragma GCC diagnostic ignored "-Warray-bounds" 29761: # 83 "/usr/include/c++/14/bits/char_traits.h" 3 29761: template 29761: struct _Char_types 29761: { 29761: typedef unsigned long int_type; 29761: 29761: typedef std::streampos pos_type; 29761: typedef std::streamoff off_type; 29761: typedef std::mbstate_t state_type; 29761: 29761: }; 29761: # 110 "/usr/include/c++/14/bits/char_traits.h" 3 29761: template 29761: struct char_traits 29761: { 29761: typedef _CharT char_type; 29761: typedef typename _Char_types<_CharT>::int_type int_type; 29761: 29761: typedef typename _Char_types<_CharT>::pos_type pos_type; 29761: typedef typename _Char_types<_CharT>::off_type off_type; 29761: typedef typename _Char_types<_CharT>::state_type state_type; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr void 29761: assign(char_type& __c1, const char_type& __c2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: __c1 = __c2; 29761: } 29761: 29761: static constexpr bool 29761: eq(const char_type& __c1, const char_type& __c2) 29761: { return __c1 == __c2; } 29761: 29761: static constexpr bool 29761: lt(const char_type& __c1, const char_type& __c2) 29761: { return __c1 < __c2; } 29761: 29761: static constexpr int 29761: compare(const char_type* __s1, const char_type* __s2, std::size_t __n); 29761: 29761: static constexpr std::size_t 29761: length(const char_type* __s); 29761: 29761: static constexpr const char_type* 29761: find(const char_type* __s, std::size_t __n, const char_type& __a); 29761: 29761: static char_type* 29761: move(char_type* __s1, const char_type* __s2, std::size_t __n); 29761: 29761: static char_type* 29761: copy(char_type* __s1, const char_type* __s2, std::size_t __n); 29761: 29761: static char_type* 29761: assign(char_type* __s, std::size_t __n, char_type __a); 29761: 29761: static constexpr char_type 29761: to_char_type(const int_type& __c) 29761: { return static_cast(__c); } 29761: 29761: static constexpr int_type 29761: to_int_type(const char_type& __c) 29761: { return static_cast(__c); } 29761: 29761: static constexpr bool 29761: eq_int_type(const int_type& __c1, const int_type& __c2) 29761: { return __c1 == __c2; } 29761: 29761: 29761: static constexpr int_type 29761: eof() 29761: { return static_cast(-1); } 29761: 29761: static constexpr int_type 29761: not_eof(const int_type& __c) 29761: { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } 29761: 29761: }; 29761: 29761: template 29761: constexpr int 29761: char_traits<_CharT>:: 29761: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) 29761: { 29761: for (std::size_t __i = 0; __i < __n; ++__i) 29761: if (lt(__s1[__i], __s2[__i])) 29761: return -1; 29761: else if (lt(__s2[__i], __s1[__i])) 29761: return 1; 29761: return 0; 29761: } 29761: 29761: template 29761: constexpr std::size_t 29761: char_traits<_CharT>:: 29761: length(const char_type* __p) 29761: { 29761: std::size_t __i = 0; 29761: while (!eq(__p[__i], char_type())) 29761: ++__i; 29761: return __i; 29761: } 29761: 29761: template 29761: constexpr const typename char_traits<_CharT>::char_type* 29761: char_traits<_CharT>:: 29761: find(const char_type* __s, std::size_t __n, const char_type& __a) 29761: { 29761: for (std::size_t __i = 0; __i < __n; ++__i) 29761: if (eq(__s[__i], __a)) 29761: return __s + __i; 29761: return 0; 29761: } 29761: 29761: template 29761: 29761: typename char_traits<_CharT>::char_type* 29761: char_traits<_CharT>:: 29761: move(char_type* __s1, const char_type* __s2, std::size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: # 246 "/usr/include/c++/14/bits/char_traits.h" 3 29761: __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); 29761: return __s1; 29761: } 29761: 29761: template 29761: 29761: typename char_traits<_CharT>::char_type* 29761: char_traits<_CharT>:: 29761: copy(char_type* __s1, const char_type* __s2, std::size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: # 266 "/usr/include/c++/14/bits/char_traits.h" 3 29761: __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); 29761: return __s1; 29761: } 29761: 29761: template 29761: 29761: typename char_traits<_CharT>::char_type* 29761: char_traits<_CharT>:: 29761: assign(char_type* __s, std::size_t __n, char_type __a) 29761: { 29761: # 285 "/usr/include/c++/14/bits/char_traits.h" 3 29761: if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) 29761: { 29761: if (__n) 29761: { 29761: unsigned char __c; 29761: __builtin_memcpy(&__c, __builtin_addressof(__a), 1); 29761: __builtin_memset(__s, __c, __n); 29761: } 29761: } 29761: else 29761: { 29761: for (std::size_t __i = 0; __i < __n; ++__i) 29761: __s[__i] = __a; 29761: } 29761: return __s; 29761: } 29761: 29761: 29761: } 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 322 "/usr/include/c++/14/bits/char_traits.h" 3 29761: template 29761: struct char_traits : public __gnu_cxx::char_traits<_CharT> 29761: { }; 29761: 29761: 29761: 29761: template<> 29761: struct char_traits 29761: { 29761: typedef char char_type; 29761: typedef int int_type; 29761: 29761: typedef streampos pos_type; 29761: typedef streamoff off_type; 29761: typedef mbstate_t state_type; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr void 29761: assign(char_type& __c1, const char_type& __c2) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: __c1 = __c2; 29761: } 29761: 29761: static constexpr bool 29761: eq(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: static constexpr bool 29761: lt(const char_type& __c1, const char_type& __c2) noexcept 29761: { 29761: 29761: return (static_cast(__c1) 29761: < static_cast(__c2)); 29761: } 29761: 29761: static constexpr int 29761: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return 0; 29761: 29761: if (std::__is_constant_evaluated()) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: if (lt(__s1[__i], __s2[__i])) 29761: return -1; 29761: else if (lt(__s2[__i], __s1[__i])) 29761: return 1; 29761: return 0; 29761: } 29761: 29761: return __builtin_memcmp(__s1, __s2, __n); 29761: } 29761: 29761: static constexpr size_t 29761: length(const char_type* __s) 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __gnu_cxx::char_traits::length(__s); 29761: 29761: return __builtin_strlen(__s); 29761: } 29761: 29761: static constexpr const char_type* 29761: find(const char_type* __s, size_t __n, const char_type& __a) 29761: { 29761: if (__n == 0) 29761: return 0; 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __gnu_cxx::char_traits::find(__s, __n, __a); 29761: 29761: return static_cast(__builtin_memchr(__s, __a, __n)); 29761: } 29761: 29761: static char_type* 29761: move(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return static_cast(__builtin_memmove(__s1, __s2, __n)); 29761: } 29761: 29761: static char_type* 29761: copy(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return static_cast(__builtin_memcpy(__s1, __s2, __n)); 29761: } 29761: 29761: static char_type* 29761: assign(char_type* __s, size_t __n, char_type __a) 29761: { 29761: if (__n == 0) 29761: return __s; 29761: 29761: 29761: 29761: 29761: return static_cast(__builtin_memset(__s, __a, __n)); 29761: } 29761: 29761: static constexpr char_type 29761: to_char_type(const int_type& __c) noexcept 29761: { return static_cast(__c); } 29761: 29761: 29761: 29761: static constexpr int_type 29761: to_int_type(const char_type& __c) noexcept 29761: { return static_cast(static_cast(__c)); } 29761: 29761: static constexpr bool 29761: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: 29761: static constexpr int_type 29761: eof() noexcept 29761: { return static_cast(-1); } 29761: 29761: static constexpr int_type 29761: not_eof(const int_type& __c) noexcept 29761: { return (__c == eof()) ? 0 : __c; } 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: template<> 29761: struct char_traits 29761: { 29761: typedef wchar_t char_type; 29761: typedef wint_t int_type; 29761: 29761: typedef streamoff off_type; 29761: typedef wstreampos pos_type; 29761: typedef mbstate_t state_type; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr void 29761: assign(char_type& __c1, const char_type& __c2) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: __c1 = __c2; 29761: } 29761: 29761: static constexpr bool 29761: eq(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: static constexpr bool 29761: lt(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 < __c2; } 29761: 29761: static constexpr int 29761: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return 0; 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __gnu_cxx::char_traits::compare(__s1, __s2, __n); 29761: 29761: return wmemcmp(__s1, __s2, __n); 29761: } 29761: 29761: static constexpr size_t 29761: length(const char_type* __s) 29761: { 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __gnu_cxx::char_traits::length(__s); 29761: 29761: return wcslen(__s); 29761: } 29761: 29761: static constexpr const char_type* 29761: find(const char_type* __s, size_t __n, const char_type& __a) 29761: { 29761: if (__n == 0) 29761: return 0; 29761: 29761: if (std::__is_constant_evaluated()) 29761: return __gnu_cxx::char_traits::find(__s, __n, __a); 29761: 29761: return wmemchr(__s, __a, __n); 29761: } 29761: 29761: static char_type* 29761: move(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return wmemmove(__s1, __s2, __n); 29761: } 29761: 29761: static char_type* 29761: copy(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return wmemcpy(__s1, __s2, __n); 29761: } 29761: 29761: static char_type* 29761: assign(char_type* __s, size_t __n, char_type __a) 29761: { 29761: if (__n == 0) 29761: return __s; 29761: 29761: 29761: 29761: 29761: return wmemset(__s, __a, __n); 29761: } 29761: 29761: static constexpr char_type 29761: to_char_type(const int_type& __c) noexcept 29761: { return char_type(__c); } 29761: 29761: static constexpr int_type 29761: to_int_type(const char_type& __c) noexcept 29761: { return int_type(__c); } 29761: 29761: static constexpr bool 29761: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: 29761: static constexpr int_type 29761: eof() noexcept 29761: { return static_cast((0xffffffffu)); } 29761: 29761: static constexpr int_type 29761: not_eof(const int_type& __c) noexcept 29761: { return eq_int_type(__c, eof()) ? 0 : __c; } 29761: 29761: }; 29761: # 732 "/usr/include/c++/14/bits/char_traits.h" 3 29761: 29761: } 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template<> 29761: struct char_traits 29761: { 29761: typedef char16_t char_type; 29761: 29761: typedef short unsigned int int_type; 29761: 29761: 29761: 29761: 29761: typedef streamoff off_type; 29761: typedef u16streampos pos_type; 29761: typedef mbstate_t state_type; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr void 29761: assign(char_type& __c1, const char_type& __c2) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: __c1 = __c2; 29761: } 29761: 29761: static constexpr bool 29761: eq(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: static constexpr bool 29761: lt(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 < __c2; } 29761: 29761: static constexpr int 29761: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: if (lt(__s1[__i], __s2[__i])) 29761: return -1; 29761: else if (lt(__s2[__i], __s1[__i])) 29761: return 1; 29761: return 0; 29761: } 29761: 29761: static constexpr size_t 29761: length(const char_type* __s) 29761: { 29761: size_t __i = 0; 29761: while (!eq(__s[__i], char_type())) 29761: ++__i; 29761: return __i; 29761: } 29761: 29761: static constexpr const char_type* 29761: find(const char_type* __s, size_t __n, const char_type& __a) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: if (eq(__s[__i], __a)) 29761: return __s + __i; 29761: return 0; 29761: } 29761: 29761: static char_type* 29761: move(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return (static_cast 29761: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 29761: } 29761: 29761: static char_type* 29761: copy(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return (static_cast 29761: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 29761: } 29761: 29761: static char_type* 29761: assign(char_type* __s, size_t __n, char_type __a) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: assign(__s[__i], __a); 29761: return __s; 29761: } 29761: 29761: static constexpr char_type 29761: to_char_type(const int_type& __c) noexcept 29761: { return char_type(__c); } 29761: 29761: static constexpr bool 29761: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: 29761: static constexpr int_type 29761: to_int_type(const char_type& __c) noexcept 29761: { return __c == eof() ? int_type(0xfffd) : int_type(__c); } 29761: 29761: static constexpr int_type 29761: eof() noexcept 29761: { return static_cast(-1); } 29761: 29761: static constexpr int_type 29761: not_eof(const int_type& __c) noexcept 29761: { return eq_int_type(__c, eof()) ? 0 : __c; } 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: template<> 29761: struct char_traits 29761: { 29761: typedef char32_t char_type; 29761: 29761: typedef unsigned int int_type; 29761: 29761: 29761: 29761: 29761: typedef streamoff off_type; 29761: typedef u32streampos pos_type; 29761: typedef mbstate_t state_type; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr void 29761: assign(char_type& __c1, const char_type& __c2) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: __c1 = __c2; 29761: } 29761: 29761: static constexpr bool 29761: eq(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: static constexpr bool 29761: lt(const char_type& __c1, const char_type& __c2) noexcept 29761: { return __c1 < __c2; } 29761: 29761: static constexpr int 29761: compare(const char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: if (lt(__s1[__i], __s2[__i])) 29761: return -1; 29761: else if (lt(__s2[__i], __s1[__i])) 29761: return 1; 29761: return 0; 29761: } 29761: 29761: static constexpr size_t 29761: length(const char_type* __s) 29761: { 29761: size_t __i = 0; 29761: while (!eq(__s[__i], char_type())) 29761: ++__i; 29761: return __i; 29761: } 29761: 29761: static constexpr const char_type* 29761: find(const char_type* __s, size_t __n, const char_type& __a) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: if (eq(__s[__i], __a)) 29761: return __s + __i; 29761: return 0; 29761: } 29761: 29761: static char_type* 29761: move(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return (static_cast 29761: (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); 29761: } 29761: 29761: static char_type* 29761: copy(char_type* __s1, const char_type* __s2, size_t __n) 29761: { 29761: if (__n == 0) 29761: return __s1; 29761: 29761: 29761: 29761: 29761: return (static_cast 29761: (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); 29761: } 29761: 29761: static char_type* 29761: assign(char_type* __s, size_t __n, char_type __a) 29761: { 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: assign(__s[__i], __a); 29761: return __s; 29761: } 29761: 29761: static constexpr char_type 29761: to_char_type(const int_type& __c) noexcept 29761: { return char_type(__c); } 29761: 29761: static constexpr int_type 29761: to_int_type(const char_type& __c) noexcept 29761: { return int_type(__c); } 29761: 29761: static constexpr bool 29761: eq_int_type(const int_type& __c1, const int_type& __c2) noexcept 29761: { return __c1 == __c2; } 29761: 29761: 29761: static constexpr int_type 29761: eof() noexcept 29761: { return static_cast(-1); } 29761: 29761: static constexpr int_type 29761: not_eof(const int_type& __c) noexcept 29761: { return eq_int_type(__c, eof()) ? 0 : __c; } 29761: 29761: }; 29761: # 1010 "/usr/include/c++/14/bits/char_traits.h" 3 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: } 29761: # 43 "/usr/include/c++/14/string" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/localefwd.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/localefwd.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/localefwd.h" 3 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 1 3 29761: # 39 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29761: 29761: # 40 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29761: 29761: # 1 "/usr/include/c++/14/clocale" 1 3 29761: # 39 "/usr/include/c++/14/clocale" 3 29761: 29761: # 40 "/usr/include/c++/14/clocale" 3 29761: 29761: 29761: # 1 "/usr/include/locale.h" 1 3 4 29761: # 28 "/usr/include/locale.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 29 "/usr/include/locale.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/locale.h" 1 3 4 29761: # 30 "/usr/include/locale.h" 2 3 4 29761: 29761: extern "C" { 29761: # 51 "/usr/include/locale.h" 3 4 29761: struct lconv 29761: { 29761: 29761: 29761: char *decimal_point; 29761: char *thousands_sep; 29761: 29761: 29761: 29761: 29761: 29761: char *grouping; 29761: 29761: 29761: 29761: 29761: 29761: char *int_curr_symbol; 29761: char *currency_symbol; 29761: char *mon_decimal_point; 29761: char *mon_thousands_sep; 29761: char *mon_grouping; 29761: char *positive_sign; 29761: char *negative_sign; 29761: char int_frac_digits; 29761: char frac_digits; 29761: 29761: char p_cs_precedes; 29761: 29761: char p_sep_by_space; 29761: 29761: char n_cs_precedes; 29761: 29761: char n_sep_by_space; 29761: 29761: 29761: 29761: 29761: 29761: 29761: char p_sign_posn; 29761: char n_sign_posn; 29761: 29761: 29761: char int_p_cs_precedes; 29761: 29761: char int_p_sep_by_space; 29761: 29761: char int_n_cs_precedes; 29761: 29761: char int_n_sep_by_space; 29761: 29761: 29761: 29761: 29761: 29761: 29761: char int_p_sign_posn; 29761: char int_n_sign_posn; 29761: # 118 "/usr/include/locale.h" 3 4 29761: }; 29761: 29761: 29761: 29761: extern char *setlocale (int __category, const char *__locale) noexcept (true); 29761: 29761: 29761: extern struct lconv *localeconv (void) noexcept (true); 29761: # 141 "/usr/include/locale.h" 3 4 29761: extern locale_t newlocale (int __category_mask, const char *__locale, 29761: locale_t __base) noexcept (true); 29761: # 176 "/usr/include/locale.h" 3 4 29761: extern locale_t duplocale (locale_t __dataset) noexcept (true); 29761: 29761: 29761: 29761: extern void freelocale (locale_t __dataset) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern locale_t uselocale (locale_t __dataset) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 43 "/usr/include/c++/14/clocale" 2 3 29761: # 51 "/usr/include/c++/14/clocale" 3 29761: namespace std 29761: { 29761: using ::lconv; 29761: using ::setlocale; 29761: using ::localeconv; 29761: } 29761: # 42 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: extern "C" __typeof(uselocale) __uselocale; 29761: 29761: 29761: } 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: typedef __locale_t __c_locale; 29761: # 73 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29761: inline int 29761: __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), 29761: char* __out, 29761: const int __size __attribute__ ((__unused__)), 29761: const char* __fmt, ...) 29761: { 29761: 29761: __c_locale __old = __gnu_cxx::__uselocale(__cloc); 29761: # 93 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++locale.h" 3 29761: __builtin_va_list __args; 29761: __builtin_va_start(__args, __fmt); 29761: 29761: 29761: const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); 29761: 29761: 29761: 29761: 29761: __builtin_va_end(__args); 29761: 29761: 29761: __gnu_cxx::__uselocale(__old); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: return __ret; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 41 "/usr/include/c++/14/bits/localefwd.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/cctype" 1 3 29761: # 39 "/usr/include/c++/14/cctype" 3 29761: 29761: # 40 "/usr/include/c++/14/cctype" 3 29761: 29761: 29761: # 1 "/usr/include/ctype.h" 1 3 4 29761: # 28 "/usr/include/ctype.h" 3 4 29761: extern "C" { 29761: # 46 "/usr/include/ctype.h" 3 4 29761: enum 29761: { 29761: _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), 29761: _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), 29761: _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), 29761: _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), 29761: _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), 29761: _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), 29761: _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), 29761: _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), 29761: _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), 29761: _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), 29761: _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), 29761: _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) 29761: }; 29761: # 79 "/usr/include/ctype.h" 3 4 29761: extern const unsigned short int **__ctype_b_loc (void) 29761: noexcept (true) __attribute__ ((__const__)); 29761: extern const __int32_t **__ctype_tolower_loc (void) 29761: noexcept (true) __attribute__ ((__const__)); 29761: extern const __int32_t **__ctype_toupper_loc (void) 29761: noexcept (true) __attribute__ ((__const__)); 29761: # 108 "/usr/include/ctype.h" 3 4 29761: extern int isalnum (int) noexcept (true); 29761: extern int isalpha (int) noexcept (true); 29761: extern int iscntrl (int) noexcept (true); 29761: extern int isdigit (int) noexcept (true); 29761: extern int islower (int) noexcept (true); 29761: extern int isgraph (int) noexcept (true); 29761: extern int isprint (int) noexcept (true); 29761: extern int ispunct (int) noexcept (true); 29761: extern int isspace (int) noexcept (true); 29761: extern int isupper (int) noexcept (true); 29761: extern int isxdigit (int) noexcept (true); 29761: 29761: 29761: 29761: extern int tolower (int __c) noexcept (true); 29761: 29761: 29761: extern int toupper (int __c) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int isblank (int) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int isctype (int __c, int __mask) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int isascii (int __c) noexcept (true); 29761: 29761: 29761: 29761: extern int toascii (int __c) noexcept (true); 29761: 29761: 29761: 29761: extern int _toupper (int) noexcept (true); 29761: extern int _tolower (int) noexcept (true); 29761: # 251 "/usr/include/ctype.h" 3 4 29761: extern int isalnum_l (int, locale_t) noexcept (true); 29761: extern int isalpha_l (int, locale_t) noexcept (true); 29761: extern int iscntrl_l (int, locale_t) noexcept (true); 29761: extern int isdigit_l (int, locale_t) noexcept (true); 29761: extern int islower_l (int, locale_t) noexcept (true); 29761: extern int isgraph_l (int, locale_t) noexcept (true); 29761: extern int isprint_l (int, locale_t) noexcept (true); 29761: extern int ispunct_l (int, locale_t) noexcept (true); 29761: extern int isspace_l (int, locale_t) noexcept (true); 29761: extern int isupper_l (int, locale_t) noexcept (true); 29761: extern int isxdigit_l (int, locale_t) noexcept (true); 29761: 29761: extern int isblank_l (int, locale_t) noexcept (true); 29761: 29761: 29761: 29761: extern int __tolower_l (int __c, locale_t __l) noexcept (true); 29761: extern int tolower_l (int __c, locale_t __l) noexcept (true); 29761: 29761: 29761: extern int __toupper_l (int __c, locale_t __l) noexcept (true); 29761: extern int toupper_l (int __c, locale_t __l) noexcept (true); 29761: # 327 "/usr/include/ctype.h" 3 4 29761: } 29761: # 43 "/usr/include/c++/14/cctype" 2 3 29761: # 62 "/usr/include/c++/14/cctype" 3 29761: namespace std 29761: { 29761: using ::isalnum; 29761: using ::isalpha; 29761: using ::iscntrl; 29761: using ::isdigit; 29761: using ::isgraph; 29761: using ::islower; 29761: using ::isprint; 29761: using ::ispunct; 29761: using ::isspace; 29761: using ::isupper; 29761: using ::isxdigit; 29761: using ::tolower; 29761: using ::toupper; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std 29761: { 29761: using ::isblank; 29761: } 29761: # 43 "/usr/include/c++/14/bits/localefwd.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 55 "/usr/include/c++/14/bits/localefwd.h" 3 29761: class locale; 29761: 29761: template 29761: bool 29761: has_facet(const locale&) throw(); 29761: 29761: template 29761: const _Facet& 29761: use_facet(const locale&); 29761: 29761: 29761: template 29761: bool 29761: isspace(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isprint(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: iscntrl(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isupper(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: islower(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isalpha(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isdigit(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: ispunct(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isxdigit(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isalnum(_CharT, const locale&); 29761: 29761: template 29761: bool 29761: isgraph(_CharT, const locale&); 29761: 29761: 29761: template 29761: bool 29761: isblank(_CharT, const locale&); 29761: 29761: 29761: template 29761: _CharT 29761: toupper(_CharT, const locale&); 29761: 29761: template 29761: _CharT 29761: tolower(_CharT, const locale&); 29761: 29761: 29761: struct ctype_base; 29761: template 29761: class ctype; 29761: template<> class ctype; 29761: 29761: template<> class ctype; 29761: 29761: template 29761: class ctype_byname; 29761: 29761: 29761: class codecvt_base; 29761: template 29761: class codecvt; 29761: template<> class codecvt; 29761: 29761: template<> class codecvt; 29761: 29761: 29761: template<> class codecvt; 29761: template<> class codecvt; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class codecvt_byname; 29761: 29761: 29761: 29761: template > 29761: class num_get; 29761: template > 29761: class num_put; 29761: 29761: namespace __cxx11 { 29761: template class numpunct; 29761: template class numpunct_byname; 29761: } 29761: 29761: namespace __cxx11 { 29761: 29761: template 29761: class collate; 29761: template 29761: class collate_byname; 29761: } 29761: 29761: 29761: class time_base; 29761: namespace __cxx11 { 29761: template > 29761: class time_get; 29761: template > 29761: class time_get_byname; 29761: } 29761: template > 29761: class time_put; 29761: template > 29761: class time_put_byname; 29761: 29761: 29761: class money_base; 29761: namespace __cxx11 { 29761: template > 29761: class money_get; 29761: template > 29761: class money_put; 29761: } 29761: namespace __cxx11 { 29761: template 29761: class moneypunct; 29761: template 29761: class moneypunct_byname; 29761: } 29761: 29761: 29761: struct messages_base; 29761: namespace __cxx11 { 29761: template 29761: class messages; 29761: template 29761: class messages_byname; 29761: } 29761: 29761: 29761: } 29761: # 46 "/usr/include/c++/14/string" 2 3 29761: # 1 "/usr/include/c++/14/bits/ostream_insert.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/ostream_insert.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/ostream_insert.h" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/cxxabi_forced.h" 1 3 29761: # 34 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 29761: 29761: # 35 "/usr/include/c++/14/bits/cxxabi_forced.h" 3 29761: 29761: #pragma GCC visibility push(default) 29761: 29761: 29761: namespace __cxxabiv1 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class __forced_unwind 29761: { 29761: virtual ~__forced_unwind() throw(); 29761: 29761: 29761: virtual void __pure_dummy() = 0; 29761: }; 29761: } 29761: 29761: 29761: #pragma GCC visibility pop 29761: # 37 "/usr/include/c++/14/bits/ostream_insert.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: inline void 29761: __ostream_write(basic_ostream<_CharT, _Traits>& __out, 29761: const _CharT* __s, streamsize __n) 29761: { 29761: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29761: typedef typename __ostream_type::ios_base __ios_base; 29761: 29761: const streamsize __put = __out.rdbuf()->sputn(__s, __n); 29761: if (__put != __n) 29761: __out.setstate(__ios_base::badbit); 29761: } 29761: 29761: template 29761: inline void 29761: __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) 29761: { 29761: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29761: typedef typename __ostream_type::ios_base __ios_base; 29761: 29761: const _CharT __c = __out.fill(); 29761: for (; __n > 0; --__n) 29761: { 29761: const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); 29761: if (_Traits::eq_int_type(__put, _Traits::eof())) 29761: { 29761: __out.setstate(__ios_base::badbit); 29761: break; 29761: } 29761: } 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: __ostream_insert(basic_ostream<_CharT, _Traits>& __out, 29761: const _CharT* __s, streamsize __n) 29761: { 29761: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29761: typedef typename __ostream_type::ios_base __ios_base; 29761: 29761: typename __ostream_type::sentry __cerb(__out); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: const streamsize __w = __out.width(); 29761: if (__w > __n) 29761: { 29761: const bool __left = ((__out.flags() 29761: & __ios_base::adjustfield) 29761: == __ios_base::left); 29761: if (!__left) 29761: __ostream_fill(__out, __w - __n); 29761: if (__out.good()) 29761: __ostream_write(__out, __s, __n); 29761: if (__left && __out.good()) 29761: __ostream_fill(__out, __w - __n); 29761: } 29761: else 29761: __ostream_write(__out, __s, __n); 29761: __out.width(0); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __out._M_setstate(__ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { __out._M_setstate(__ios_base::badbit); } 29761: } 29761: return __out; 29761: } 29761: 29761: 29761: 29761: 29761: extern template ostream& __ostream_insert(ostream&, const char*, streamsize); 29761: 29761: 29761: extern template wostream& __ostream_insert(wostream&, const wchar_t*, 29761: streamsize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 47 "/usr/include/c++/14/string" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/basic_string.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/basic_string.h" 3 29761: # 47 "/usr/include/c++/14/bits/basic_string.h" 3 29761: # 1 "/usr/include/c++/14/string_view" 1 3 29761: # 36 "/usr/include/c++/14/string_view" 3 29761: 29761: # 37 "/usr/include/c++/14/string_view" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 45 "/usr/include/c++/14/string_view" 2 3 29761: # 64 "/usr/include/c++/14/string_view" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: constexpr size_t 29761: __sv_check(size_t __size, size_t __pos, const char* __s) 29761: { 29761: if (__pos > __size) 29761: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") 29761: , __s, __pos, __size); 29761: return __pos; 29761: } 29761: 29761: 29761: 29761: constexpr size_t 29761: __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept 29761: { 29761: const bool __testoff = __off < __size - __pos; 29761: return __testoff ? __off : __size - __pos; 29761: } 29761: # 105 "/usr/include/c++/14/string_view" 3 29761: template> 29761: class basic_string_view 29761: { 29761: static_assert(!is_array_v<_CharT>); 29761: static_assert(is_trivial_v<_CharT> && is_standard_layout_v<_CharT>); 29761: static_assert(is_same_v<_CharT, typename _Traits::char_type>); 29761: 29761: public: 29761: 29761: 29761: using traits_type = _Traits; 29761: using value_type = _CharT; 29761: using pointer = value_type*; 29761: using const_pointer = const value_type*; 29761: using reference = value_type&; 29761: using const_reference = const value_type&; 29761: using const_iterator = const value_type*; 29761: using iterator = const_iterator; 29761: using const_reverse_iterator = std::reverse_iterator; 29761: using reverse_iterator = const_reverse_iterator; 29761: using size_type = size_t; 29761: using difference_type = ptrdiff_t; 29761: static constexpr size_type npos = size_type(-1); 29761: 29761: 29761: 29761: constexpr 29761: basic_string_view() noexcept 29761: : _M_len{0}, _M_str{nullptr} 29761: { } 29761: 29761: constexpr basic_string_view(const basic_string_view&) noexcept = default; 29761: 29761: [[__gnu__::__nonnull__]] 29761: constexpr 29761: basic_string_view(const _CharT* __str) noexcept 29761: : _M_len{traits_type::length(__str)}, 29761: _M_str{__str} 29761: { } 29761: 29761: constexpr 29761: basic_string_view(const _CharT* __str, size_type __len) noexcept 29761: : _M_len{__len}, _M_str{__str} 29761: { } 29761: # 180 "/usr/include/c++/14/string_view" 3 29761: constexpr basic_string_view& 29761: operator=(const basic_string_view&) noexcept = default; 29761: 29761: 29761: 29761: [[nodiscard]] 29761: constexpr const_iterator 29761: begin() const noexcept 29761: { return this->_M_str; } 29761: 29761: [[nodiscard]] 29761: constexpr const_iterator 29761: end() const noexcept 29761: { return this->_M_str + this->_M_len; } 29761: 29761: [[nodiscard]] 29761: constexpr const_iterator 29761: cbegin() const noexcept 29761: { return this->_M_str; } 29761: 29761: [[nodiscard]] 29761: constexpr const_iterator 29761: cend() const noexcept 29761: { return this->_M_str + this->_M_len; } 29761: 29761: [[nodiscard]] 29761: constexpr const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(this->end()); } 29761: 29761: [[nodiscard]] 29761: constexpr const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(this->begin()); } 29761: 29761: [[nodiscard]] 29761: constexpr const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(this->end()); } 29761: 29761: [[nodiscard]] 29761: constexpr const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(this->begin()); } 29761: 29761: 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: size() const noexcept 29761: { return this->_M_len; } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: length() const noexcept 29761: { return _M_len; } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: max_size() const noexcept 29761: { 29761: return (npos - sizeof(size_type) - sizeof(void*)) 29761: / sizeof(value_type) / 4; 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr bool 29761: empty() const noexcept 29761: { return this->_M_len == 0; } 29761: 29761: 29761: 29761: [[nodiscard]] 29761: constexpr const_reference 29761: operator[](size_type __pos) const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos < this->_M_len)) std::__glibcxx_assert_fail(); } while (false); 29761: return *(this->_M_str + __pos); 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr const_reference 29761: at(size_type __pos) const 29761: { 29761: if (__pos >= _M_len) 29761: __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") 29761: 29761: , __pos, this->size()); 29761: return *(this->_M_str + __pos); 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr const_reference 29761: front() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: return *this->_M_str; 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr const_reference 29761: back() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: return *(this->_M_str + this->_M_len - 1); 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr const_pointer 29761: data() const noexcept 29761: { return this->_M_str; } 29761: 29761: 29761: 29761: constexpr void 29761: remove_prefix(size_type __n) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) std::__glibcxx_assert_fail(); } while (false); 29761: this->_M_str += __n; 29761: this->_M_len -= __n; 29761: } 29761: 29761: constexpr void 29761: remove_suffix(size_type __n) noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) std::__glibcxx_assert_fail(); } while (false); 29761: this->_M_len -= __n; 29761: } 29761: 29761: constexpr void 29761: swap(basic_string_view& __sv) noexcept 29761: { 29761: auto __tmp = *this; 29761: *this = __sv; 29761: __sv = __tmp; 29761: } 29761: 29761: 29761: 29761: 29761: size_type 29761: copy(_CharT* __str, size_type __n, size_type __pos = 0) const 29761: { 29761: ; 29761: __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); 29761: const size_type __rlen = std::min(__n, _M_len - __pos); 29761: 29761: 29761: traits_type::copy(__str, data() + __pos, __rlen); 29761: return __rlen; 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr basic_string_view 29761: substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) 29761: { 29761: __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); 29761: const size_type __rlen = std::min(__n, _M_len - __pos); 29761: return basic_string_view{_M_str + __pos, __rlen}; 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr int 29761: compare(basic_string_view __str) const noexcept 29761: { 29761: const size_type __rlen = std::min(this->_M_len, __str._M_len); 29761: int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); 29761: if (__ret == 0) 29761: __ret = _S_compare(this->_M_len, __str._M_len); 29761: return __ret; 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr int 29761: compare(size_type __pos1, size_type __n1, basic_string_view __str) const 29761: { return this->substr(__pos1, __n1).compare(__str); } 29761: 29761: [[nodiscard]] 29761: constexpr int 29761: compare(size_type __pos1, size_type __n1, 29761: basic_string_view __str, size_type __pos2, size_type __n2) const 29761: { 29761: return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); 29761: } 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr int 29761: compare(const _CharT* __str) const noexcept 29761: { return this->compare(basic_string_view{__str}); } 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr int 29761: compare(size_type __pos1, size_type __n1, const _CharT* __str) const 29761: { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } 29761: 29761: [[nodiscard]] 29761: constexpr int 29761: compare(size_type __pos1, size_type __n1, 29761: const _CharT* __str, size_type __n2) const noexcept(false) 29761: { 29761: return this->substr(__pos1, __n1) 29761: .compare(basic_string_view(__str, __n2)); 29761: } 29761: # 445 "/usr/include/c++/14/string_view" 3 29761: [[nodiscard]] 29761: constexpr size_type 29761: find(basic_string_view __str, size_type __pos = 0) const noexcept 29761: { return this->find(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find(_CharT __c, size_type __pos = 0) const noexcept; 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: find(const _CharT* __str, size_type __pos = 0) const noexcept 29761: { return this->find(__str, __pos, traits_type::length(__str)); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: rfind(basic_string_view __str, size_type __pos = npos) const noexcept 29761: { return this->rfind(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: rfind(_CharT __c, size_type __pos = npos) const noexcept; 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: rfind(const _CharT* __str, size_type __pos = npos) const noexcept 29761: { return this->rfind(__str, __pos, traits_type::length(__str)); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept 29761: { return this->find_first_of(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 29761: { return this->find(__c, __pos); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept 29761: { return this->find_first_of(__str, __pos, traits_type::length(__str)); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_of(basic_string_view __str, 29761: size_type __pos = npos) const noexcept 29761: { return this->find_last_of(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_of(_CharT __c, size_type __pos=npos) const noexcept 29761: { return this->rfind(__c, __pos); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept 29761: { return this->find_last_of(__str, __pos, traits_type::length(__str)); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_not_of(basic_string_view __str, 29761: size_type __pos = 0) const noexcept 29761: { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_first_not_of(const _CharT* __str, 29761: size_type __pos, size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept 29761: { 29761: return this->find_first_not_of(__str, __pos, 29761: traits_type::length(__str)); 29761: } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_not_of(basic_string_view __str, 29761: size_type __pos = npos) const noexcept 29761: { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; 29761: 29761: [[nodiscard]] 29761: constexpr size_type 29761: find_last_not_of(const _CharT* __str, 29761: size_type __pos, size_type __n) const noexcept; 29761: 29761: [[nodiscard, __gnu__::__nonnull__]] 29761: constexpr size_type 29761: find_last_not_of(const _CharT* __str, 29761: size_type __pos = npos) const noexcept 29761: { 29761: return this->find_last_not_of(__str, __pos, 29761: traits_type::length(__str)); 29761: } 29761: 29761: private: 29761: 29761: static constexpr int 29761: _S_compare(size_type __n1, size_type __n2) noexcept 29761: { 29761: using __limits = __gnu_cxx::__int_traits; 29761: const difference_type __diff = __n1 - __n2; 29761: if (__diff > __limits::__max) 29761: return __limits::__max; 29761: if (__diff < __limits::__min) 29761: return __limits::__min; 29761: return static_cast(__diff); 29761: } 29761: 29761: size_t _M_len; 29761: const _CharT* _M_str; 29761: }; 29761: # 623 "/usr/include/c++/14/string_view" 3 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator==(basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator==(basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator==(__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.size() == __y.size() && __x.compare(__y) == 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator!=(basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator!=(basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator!=(__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return !(__x == __y); } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator< (basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) < 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator< (basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return __x.compare(__y) < 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator< (__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) < 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator> (basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) > 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator> (basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return __x.compare(__y) > 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator> (__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) > 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator<=(basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) <= 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator<=(basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return __x.compare(__y) <= 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator<=(__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) <= 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator>=(basic_string_view<_CharT, _Traits> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) >= 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator>=(basic_string_view<_CharT, _Traits> __x, 29761: __type_identity_t> __y) 29761: noexcept 29761: { return __x.compare(__y) >= 0; } 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr bool 29761: operator>=(__type_identity_t> __x, 29761: basic_string_view<_CharT, _Traits> __y) noexcept 29761: { return __x.compare(__y) >= 0; } 29761: 29761: 29761: 29761: 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __os, 29761: basic_string_view<_CharT,_Traits> __str) 29761: { return __ostream_insert(__os, __str.data(), __str.size()); } 29761: 29761: 29761: 29761: 29761: using string_view = basic_string_view; 29761: using wstring_view = basic_string_view; 29761: 29761: 29761: 29761: using u16string_view = basic_string_view; 29761: using u32string_view = basic_string_view; 29761: 29761: 29761: 29761: template 29761: struct hash; 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: [[nodiscard]] 29761: size_t 29761: operator()(const string_view& __str) const noexcept 29761: { return std::_Hash_impl::hash(__str.data(), __str.length()); } 29761: }; 29761: 29761: template<> 29761: struct __is_fast_hash> : std::false_type 29761: { }; 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: [[nodiscard]] 29761: size_t 29761: operator()(const wstring_view& __s) const noexcept 29761: { return std::_Hash_impl::hash(__s.data(), 29761: __s.length() * sizeof(wchar_t)); } 29761: }; 29761: 29761: template<> 29761: struct __is_fast_hash> : std::false_type 29761: { }; 29761: # 825 "/usr/include/c++/14/string_view" 3 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: [[nodiscard]] 29761: size_t 29761: operator()(const u16string_view& __s) const noexcept 29761: { return std::_Hash_impl::hash(__s.data(), 29761: __s.length() * sizeof(char16_t)); } 29761: }; 29761: 29761: template<> 29761: struct __is_fast_hash> : std::false_type 29761: { }; 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: [[nodiscard]] 29761: size_t 29761: operator()(const u32string_view& __s) const noexcept 29761: { return std::_Hash_impl::hash(__s.data(), 29761: __s.length() * sizeof(char32_t)); } 29761: }; 29761: 29761: template<> 29761: struct __is_fast_hash> : std::false_type 29761: { }; 29761: 29761: inline namespace literals 29761: { 29761: inline namespace string_view_literals 29761: { 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29761: inline constexpr basic_string_view 29761: operator""sv(const char* __str, size_t __len) noexcept 29761: { return basic_string_view{__str, __len}; } 29761: 29761: inline constexpr basic_string_view 29761: operator""sv(const wchar_t* __str, size_t __len) noexcept 29761: { return basic_string_view{__str, __len}; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline constexpr basic_string_view 29761: operator""sv(const char16_t* __str, size_t __len) noexcept 29761: { return basic_string_view{__str, __len}; } 29761: 29761: inline constexpr basic_string_view 29761: operator""sv(const char32_t* __str, size_t __len) noexcept 29761: { return basic_string_view{__str, __len}; } 29761: 29761: #pragma GCC diagnostic pop 29761: } 29761: } 29761: # 901 "/usr/include/c++/14/string_view" 3 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/string_view.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/string_view.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/string_view.tcc" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept 29761: { 29761: ; 29761: 29761: if (__n == 0) 29761: return __pos <= _M_len ? __pos : npos; 29761: if (__pos >= _M_len) 29761: return npos; 29761: 29761: const _CharT __elem0 = __str[0]; 29761: const _CharT* __first = _M_str + __pos; 29761: const _CharT* const __last = _M_str + _M_len; 29761: size_type __len = _M_len - __pos; 29761: 29761: while (__len >= __n) 29761: { 29761: 29761: __first = traits_type::find(__first, __len - __n + 1, __elem0); 29761: if (!__first) 29761: return npos; 29761: 29761: 29761: 29761: if (traits_type::compare(__first, __str, __n) == 0) 29761: return __first - _M_str; 29761: __len = __last - ++__first; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __ret = npos; 29761: if (__pos < this->_M_len) 29761: { 29761: const size_type __n = this->_M_len - __pos; 29761: const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); 29761: if (__p) 29761: __ret = __p - this->_M_str; 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept 29761: { 29761: ; 29761: 29761: if (__n <= this->_M_len) 29761: { 29761: __pos = std::min(size_type(this->_M_len - __n), __pos); 29761: do 29761: { 29761: if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) 29761: return __pos; 29761: } 29761: while (__pos-- > 0); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: rfind(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __size = this->_M_len; 29761: if (__size > 0) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: for (++__size; __size-- > 0; ) 29761: if (traits_type::eq(this->_M_str[__size], __c)) 29761: return __size; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_first_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept 29761: { 29761: ; 29761: for (; __n && __pos < this->_M_len; ++__pos) 29761: { 29761: const _CharT* __p = traits_type::find(__str, __n, 29761: this->_M_str[__pos]); 29761: if (__p) 29761: return __pos; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_last_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept 29761: { 29761: ; 29761: size_type __size = this->size(); 29761: if (__size && __n) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (traits_type::find(__str, __n, this->_M_str[__size])) 29761: return __size; 29761: } 29761: while (__size-- != 0); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_first_not_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept 29761: { 29761: ; 29761: for (; __pos < this->_M_len; ++__pos) 29761: if (!traits_type::find(__str, __n, this->_M_str[__pos])) 29761: return __pos; 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_first_not_of(_CharT __c, size_type __pos) const noexcept 29761: { 29761: for (; __pos < this->_M_len; ++__pos) 29761: if (!traits_type::eq(this->_M_str[__pos], __c)) 29761: return __pos; 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_last_not_of(const _CharT* __str, size_type __pos, 29761: size_type __n) const noexcept 29761: { 29761: ; 29761: size_type __size = this->_M_len; 29761: if (__size) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (!traits_type::find(__str, __n, this->_M_str[__size])) 29761: return __size; 29761: } 29761: while (__size--); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: constexpr typename basic_string_view<_CharT, _Traits>::size_type 29761: basic_string_view<_CharT, _Traits>:: 29761: find_last_not_of(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __size = this->_M_len; 29761: if (__size) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (!traits_type::eq(this->_M_str[__size], __c)) 29761: return __size; 29761: } 29761: while (__size--); 29761: } 29761: return npos; 29761: } 29761: 29761: 29761: } 29761: # 905 "/usr/include/c++/14/string_view" 2 3 29761: # 48 "/usr/include/c++/14/bits/basic_string.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 55 "/usr/include/c++/14/bits/basic_string.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace __cxx11 { 29761: # 85 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: class basic_string 29761: { 29761: 29761: 29761: 29761: 29761: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_CharT>::other _Char_alloc_type; 29761: 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; 29761: 29761: 29761: public: 29761: typedef _Traits traits_type; 29761: typedef typename _Traits::char_type value_type; 29761: typedef _Char_alloc_type allocator_type; 29761: typedef typename _Alloc_traits::size_type size_type; 29761: typedef typename _Alloc_traits::difference_type difference_type; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef __gnu_cxx::__normal_iterator iterator; 29761: typedef __gnu_cxx::__normal_iterator 29761: const_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: typedef std::reverse_iterator reverse_iterator; 29761: 29761: 29761: static const size_type npos = static_cast(-1); 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: typedef const_iterator __const_iterator; 29761: 29761: 29761: private: 29761: static pointer 29761: _S_allocate(_Char_alloc_type& __a, size_type __n) 29761: { 29761: pointer __p = _Alloc_traits::allocate(__a, __n); 29761: # 141 "/usr/include/c++/14/bits/basic_string.h" 3 29761: return __p; 29761: } 29761: 29761: 29761: 29761: typedef basic_string_view<_CharT, _Traits> __sv_type; 29761: 29761: template 29761: using _If_sv = enable_if_t< 29761: __and_, 29761: __not_>, 29761: __not_>>::value, 29761: _Res>; 29761: 29761: 29761: 29761: static __sv_type 29761: _S_to_string_view(__sv_type __svt) noexcept 29761: { return __svt; } 29761: 29761: 29761: 29761: 29761: 29761: struct __sv_wrapper 29761: { 29761: explicit 29761: __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } 29761: 29761: __sv_type _M_sv; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_string(__sv_wrapper __svw, const _Alloc& __a) 29761: : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } 29761: 29761: 29761: 29761: struct _Alloc_hider : allocator_type 29761: { 29761: 29761: 29761: 29761: 29761: 29761: _Alloc_hider(pointer __dat, const _Alloc& __a) 29761: : allocator_type(__a), _M_p(__dat) { } 29761: 29761: 29761: _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) 29761: : allocator_type(std::move(__a)), _M_p(__dat) { } 29761: 29761: 29761: pointer _M_p; 29761: }; 29761: 29761: _Alloc_hider _M_dataplus; 29761: size_type _M_string_length; 29761: 29761: enum { _S_local_capacity = 15 / sizeof(_CharT) }; 29761: 29761: union 29761: { 29761: _CharT _M_local_buf[_S_local_capacity + 1]; 29761: size_type _M_allocated_capacity; 29761: }; 29761: 29761: 29761: void 29761: _M_data(pointer __p) 29761: { _M_dataplus._M_p = __p; } 29761: 29761: 29761: void 29761: _M_length(size_type __length) 29761: { _M_string_length = __length; } 29761: 29761: 29761: pointer 29761: _M_data() const 29761: { return _M_dataplus._M_p; } 29761: 29761: 29761: pointer 29761: _M_local_data() 29761: { 29761: 29761: return std::pointer_traits::pointer_to(*_M_local_buf); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: const_pointer 29761: _M_local_data() const 29761: { 29761: 29761: return std::pointer_traits::pointer_to(*_M_local_buf); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: void 29761: _M_capacity(size_type __capacity) 29761: { _M_allocated_capacity = __capacity; } 29761: 29761: 29761: void 29761: _M_set_length(size_type __n) 29761: { 29761: _M_length(__n); 29761: traits_type::assign(_M_data()[__n], _CharT()); 29761: } 29761: 29761: 29761: bool 29761: _M_is_local() const 29761: { 29761: if (_M_data() == _M_local_data()) 29761: { 29761: if (_M_string_length > _S_local_capacity) 29761: __builtin_unreachable(); 29761: return true; 29761: } 29761: return false; 29761: } 29761: 29761: 29761: 29761: pointer 29761: _M_create(size_type&, size_type); 29761: 29761: 29761: void 29761: _M_dispose() 29761: { 29761: if (!_M_is_local()) 29761: _M_destroy(_M_allocated_capacity); 29761: } 29761: 29761: 29761: void 29761: _M_destroy(size_type __size) throw() 29761: { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } 29761: # 321 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: void 29761: _M_construct(_InIterator __beg, _InIterator __end, 29761: std::input_iterator_tag); 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: _M_construct(_FwdIterator __beg, _FwdIterator __end, 29761: std::forward_iterator_tag); 29761: 29761: 29761: void 29761: _M_construct(size_type __req, _CharT __c); 29761: 29761: 29761: allocator_type& 29761: _M_get_allocator() 29761: { return _M_dataplus; } 29761: 29761: 29761: const allocator_type& 29761: _M_get_allocator() const 29761: { return _M_dataplus; } 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: constexpr 29761: void 29761: _M_init_local_buf() noexcept 29761: { 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: __attribute__((__always_inline__)) 29761: constexpr 29761: pointer 29761: _M_use_local_data() noexcept 29761: { 29761: 29761: 29761: 29761: return _M_local_data(); 29761: } 29761: 29761: private: 29761: # 389 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: size_type 29761: _M_check(size_type __pos, const char* __s) const 29761: { 29761: if (__pos > this->size()) 29761: __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") 29761: , 29761: __s, __pos, this->size()); 29761: return __pos; 29761: } 29761: 29761: 29761: void 29761: _M_check_length(size_type __n1, size_type __n2, const char* __s) const 29761: { 29761: if (this->max_size() - (this->size() - __n1) < __n2) 29761: __throw_length_error((__s)); 29761: } 29761: 29761: 29761: 29761: 29761: size_type 29761: _M_limit(size_type __pos, size_type __off) const noexcept 29761: { 29761: const bool __testoff = __off < this->size() - __pos; 29761: return __testoff ? __off : this->size() - __pos; 29761: } 29761: 29761: 29761: bool 29761: _M_disjunct(const _CharT* __s) const noexcept 29761: { 29761: return (less()(__s, _M_data()) 29761: || less()(_M_data() + this->size(), __s)); 29761: } 29761: 29761: 29761: 29761: 29761: static void 29761: _S_copy(_CharT* __d, const _CharT* __s, size_type __n) 29761: { 29761: if (__n == 1) 29761: traits_type::assign(*__d, *__s); 29761: else 29761: traits_type::copy(__d, __s, __n); 29761: } 29761: 29761: 29761: static void 29761: _S_move(_CharT* __d, const _CharT* __s, size_type __n) 29761: { 29761: if (__n == 1) 29761: traits_type::assign(*__d, *__s); 29761: else 29761: traits_type::move(__d, __s, __n); 29761: } 29761: 29761: 29761: static void 29761: _S_assign(_CharT* __d, size_type __n, _CharT __c) 29761: { 29761: if (__n == 1) 29761: traits_type::assign(*__d, __c); 29761: else 29761: traits_type::assign(__d, __n, __c); 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: static void 29761: _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) 29761: { 29761: for (; __k1 != __k2; ++__k1, (void)++__p) 29761: traits_type::assign(*__p, *__k1); 29761: } 29761: 29761: 29761: static void 29761: _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept 29761: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 29761: 29761: 29761: static void 29761: _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) 29761: noexcept 29761: { _S_copy_chars(__p, __k1.base(), __k2.base()); } 29761: 29761: 29761: static void 29761: _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept 29761: { _S_copy(__p, __k1, __k2 - __k1); } 29761: 29761: 29761: static void 29761: _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) 29761: noexcept 29761: { _S_copy(__p, __k1, __k2 - __k1); } 29761: 29761: 29761: static int 29761: _S_compare(size_type __n1, size_type __n2) noexcept 29761: { 29761: const difference_type __d = difference_type(__n1 - __n2); 29761: 29761: if (__d > __gnu_cxx::__numeric_traits::__max) 29761: return __gnu_cxx::__numeric_traits::__max; 29761: else if (__d < __gnu_cxx::__numeric_traits::__min) 29761: return __gnu_cxx::__numeric_traits::__min; 29761: else 29761: return int(__d); 29761: } 29761: 29761: 29761: void 29761: _M_assign(const basic_string&); 29761: 29761: 29761: void 29761: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 29761: size_type __len2); 29761: 29761: 29761: void 29761: _M_erase(size_type __pos, size_type __n); 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string() 29761: noexcept(is_nothrow_default_constructible<_Alloc>::value) 29761: : _M_dataplus(_M_local_data()) 29761: { 29761: _M_init_local_buf(); 29761: _M_set_length(0); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_string(const _Alloc& __a) noexcept 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: _M_init_local_buf(); 29761: _M_set_length(0); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string(const basic_string& __str) 29761: : _M_dataplus(_M_local_data(), 29761: _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) 29761: { 29761: _M_construct(__str._M_data(), __str._M_data() + __str.length(), 29761: std::forward_iterator_tag()); 29761: } 29761: # 568 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string(const basic_string& __str, size_type __pos, 29761: const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: const _CharT* __start = __str._M_data() 29761: + __str._M_check(__pos, "basic_string::basic_string"); 29761: _M_construct(__start, __start + __str._M_limit(__pos, npos), 29761: std::forward_iterator_tag()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string(const basic_string& __str, size_type __pos, 29761: size_type __n) 29761: : _M_dataplus(_M_local_data()) 29761: { 29761: const _CharT* __start = __str._M_data() 29761: + __str._M_check(__pos, "basic_string::basic_string"); 29761: _M_construct(__start, __start + __str._M_limit(__pos, __n), 29761: std::forward_iterator_tag()); 29761: } 29761: # 603 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string(const basic_string& __str, size_type __pos, 29761: size_type __n, const _Alloc& __a) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: const _CharT* __start 29761: = __str._M_data() + __str._M_check(__pos, "string::string"); 29761: _M_construct(__start, __start + __str._M_limit(__pos, __n), 29761: std::forward_iterator_tag()); 29761: } 29761: # 623 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string(const _CharT* __s, size_type __n, 29761: const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: 29761: if (__s == 0 && __n > 0) 29761: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 29761: ); 29761: _M_construct(__s, __s + __n, std::forward_iterator_tag()); 29761: } 29761: # 643 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: 29761: basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: 29761: if (__s == 0) 29761: std::__throw_logic_error(("basic_string: " "construction from null is not valid") 29761: ); 29761: const _CharT* __end = __s + traits_type::length(__s); 29761: _M_construct(__s, __end, forward_iterator_tag()); 29761: } 29761: # 666 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: 29761: basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { _M_construct(__n, __c); } 29761: # 681 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string(basic_string&& __str) noexcept 29761: : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) 29761: { 29761: if (__str._M_is_local()) 29761: { 29761: _M_init_local_buf(); 29761: traits_type::copy(_M_local_buf, __str._M_local_buf, 29761: __str.length() + 1); 29761: } 29761: else 29761: { 29761: _M_data(__str._M_data()); 29761: _M_capacity(__str._M_allocated_capacity); 29761: } 29761: 29761: 29761: 29761: 29761: _M_length(__str.length()); 29761: __str._M_data(__str._M_use_local_data()); 29761: __str._M_set_length(0); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } 29761: 29761: 29761: basic_string(const basic_string& __str, const _Alloc& __a) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } 29761: 29761: 29761: basic_string(basic_string&& __str, const _Alloc& __a) 29761: noexcept(_Alloc_traits::_S_always_equal()) 29761: : _M_dataplus(_M_local_data(), __a) 29761: { 29761: if (__str._M_is_local()) 29761: { 29761: _M_init_local_buf(); 29761: traits_type::copy(_M_local_buf, __str._M_local_buf, 29761: __str.length() + 1); 29761: _M_length(__str.length()); 29761: __str._M_set_length(0); 29761: } 29761: else if (_Alloc_traits::_S_always_equal() 29761: || __str.get_allocator() == __a) 29761: { 29761: _M_data(__str._M_data()); 29761: _M_length(__str.length()); 29761: _M_capacity(__str._M_allocated_capacity); 29761: __str._M_data(__str._M_use_local_data()); 29761: __str._M_set_length(0); 29761: } 29761: else 29761: _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); 29761: } 29761: # 759 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: 29761: 29761: 29761: basic_string(_InputIterator __beg, _InputIterator __end, 29761: const _Alloc& __a = _Alloc()) 29761: : _M_dataplus(_M_local_data(), __a), _M_string_length(0) 29761: { 29761: 29761: _M_construct(__beg, __end, std::__iterator_category(__beg)); 29761: 29761: 29761: 29761: 29761: } 29761: # 785 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template>> 29761: 29761: basic_string(const _Tp& __t, size_type __pos, size_type __n, 29761: const _Alloc& __a = _Alloc()) 29761: : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: 29761: explicit 29761: basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) 29761: : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~basic_string() 29761: { _M_dispose(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator=(const basic_string& __str) 29761: { 29761: return this->assign(__str); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator=(const _CharT* __s) 29761: { return this->assign(__s); } 29761: # 838 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: operator=(_CharT __c) 29761: { 29761: this->assign(1, __c); 29761: return *this; 29761: } 29761: # 856 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: operator=(basic_string&& __str) 29761: noexcept(_Alloc_traits::_S_nothrow_move()) 29761: { 29761: const bool __equal_allocs = _Alloc_traits::_S_always_equal() 29761: || _M_get_allocator() == __str._M_get_allocator(); 29761: if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() 29761: && !__equal_allocs) 29761: { 29761: 29761: _M_destroy(_M_allocated_capacity); 29761: _M_data(_M_local_data()); 29761: _M_set_length(0); 29761: } 29761: 29761: std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); 29761: 29761: if (__str._M_is_local()) 29761: { 29761: 29761: 29761: 29761: if (__builtin_expect(std::__addressof(__str) != this, true)) 29761: { 29761: if (__str.size()) 29761: this->_S_copy(_M_data(), __str._M_data(), __str.size()); 29761: _M_set_length(__str.size()); 29761: } 29761: } 29761: else if (_Alloc_traits::_S_propagate_on_move_assign() || __equal_allocs) 29761: { 29761: 29761: pointer __data = nullptr; 29761: size_type __capacity; 29761: if (!_M_is_local()) 29761: { 29761: if (__equal_allocs) 29761: { 29761: 29761: __data = _M_data(); 29761: __capacity = _M_allocated_capacity; 29761: } 29761: else 29761: _M_destroy(_M_allocated_capacity); 29761: } 29761: 29761: _M_data(__str._M_data()); 29761: _M_length(__str.length()); 29761: _M_capacity(__str._M_allocated_capacity); 29761: if (__data) 29761: { 29761: __str._M_data(__data); 29761: __str._M_capacity(__capacity); 29761: } 29761: else 29761: __str._M_data(__str._M_use_local_data()); 29761: } 29761: else 29761: _M_assign(__str); 29761: __str.clear(); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator=(initializer_list<_CharT> __l) 29761: { 29761: this->assign(__l.begin(), __l.size()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: operator=(const _Tp& __svt) 29761: { return this->assign(__svt); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: operator __sv_type() const noexcept 29761: { return __sv_type(data(), size()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: begin() noexcept 29761: { return iterator(_M_data()); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(_M_data()); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: end() noexcept 29761: { return iterator(_M_data() + this->size()); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: end() const noexcept 29761: { return const_iterator(_M_data() + this->size()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(this->end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(this->end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(this->begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(this->begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(this->_M_data()); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cend() const noexcept 29761: { return const_iterator(this->_M_data() + this->size()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(this->end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(this->begin()); } 29761: 29761: 29761: public: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: size() const noexcept 29761: { return _M_string_length; } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: length() const noexcept 29761: { return _M_string_length; } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: max_size() const noexcept 29761: { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } 29761: # 1102 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: void 29761: resize(size_type __n, _CharT __c); 29761: # 1116 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: void 29761: resize(size_type __n) 29761: { this->resize(__n, _CharT()); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: void 29761: shrink_to_fit() noexcept 29761: { reserve(); } 29761: #pragma GCC diagnostic pop 29761: # 1169 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: void 29761: __resize_and_overwrite(size_type __n, _Operation __op); 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: capacity() const noexcept 29761: { 29761: return _M_is_local() ? size_type(_S_local_capacity) 29761: : _M_allocated_capacity; 29761: } 29761: # 1203 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: void 29761: reserve(size_type __res_arg); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reserve(); 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_set_length(0); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: bool 29761: empty() const noexcept 29761: { return this->size() == 0; } 29761: # 1245 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: const_reference 29761: operator[] (size_type __pos) const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_data()[__pos]; 29761: } 29761: # 1263 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: operator[](size_type __pos) 29761: { 29761: 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: ; 29761: return _M_data()[__pos]; 29761: } 29761: # 1285 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: const_reference 29761: at(size_type __n) const 29761: { 29761: if (__n >= this->size()) 29761: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29761: 29761: , 29761: __n, this->size()); 29761: return _M_data()[__n]; 29761: } 29761: # 1307 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: at(size_type __n) 29761: { 29761: if (__n >= size()) 29761: __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") 29761: 29761: , 29761: __n, this->size()); 29761: return _M_data()[__n]; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: front() noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return operator[](0); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: front() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return operator[](0); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: back() noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return operator[](this->size() - 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: back() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29761: return operator[](this->size() - 1); 29761: } 29761: # 1375 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: operator+=(const basic_string& __str) 29761: { return this->append(__str); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator+=(const _CharT* __s) 29761: { return this->append(__s); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator+=(_CharT __c) 29761: { 29761: this->push_back(__c); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: operator+=(initializer_list<_CharT> __l) 29761: { return this->append(__l.begin(), __l.size()); } 29761: # 1421 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: operator+=(const _Tp& __svt) 29761: { return this->append(__svt); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: append(const basic_string& __str) 29761: { return this->append(__str._M_data(), __str.size()); } 29761: # 1451 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: append(const basic_string& __str, size_type __pos, size_type __n = npos) 29761: { return this->append(__str._M_data() 29761: + __str._M_check(__pos, "basic_string::append"), 29761: __str._M_limit(__pos, __n)); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: append(const _CharT* __s, size_type __n) 29761: { 29761: ; 29761: _M_check_length(size_type(0), __n, "basic_string::append"); 29761: return _M_append(__s, __n); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: append(const _CharT* __s) 29761: { 29761: ; 29761: const size_type __n = traits_type::length(__s); 29761: _M_check_length(size_type(0), __n, "basic_string::append"); 29761: return _M_append(__s, __n); 29761: } 29761: # 1496 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: append(size_type __n, _CharT __c) 29761: { return _M_replace_aux(this->size(), size_type(0), __n, __c); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: append(initializer_list<_CharT> __l) 29761: { return this->append(__l.begin(), __l.size()); } 29761: # 1522 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: 29761: 29761: 29761: basic_string& 29761: append(_InputIterator __first, _InputIterator __last) 29761: { return this->replace(end(), end(), __first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: append(const _Tp& __svt) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->append(__sv.data(), __sv.size()); 29761: } 29761: # 1554 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: append(const _Tp& __svt, size_type __pos, size_type __n = npos) 29761: { 29761: __sv_type __sv = __svt; 29761: return _M_append(__sv.data() 29761: + std::__sv_check(__sv.size(), __pos, "basic_string::append"), 29761: std::__sv_limit(__sv.size(), __pos, __n)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: push_back(_CharT __c) 29761: { 29761: const size_type __size = this->size(); 29761: if (__size + 1 > this->capacity()) 29761: this->_M_mutate(__size, size_type(0), 0, size_type(1)); 29761: traits_type::assign(this->_M_data()[__size], __c); 29761: this->_M_set_length(__size + 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_string& 29761: assign(const basic_string& __str) 29761: { 29761: 29761: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: if (!_Alloc_traits::_S_always_equal() && !_M_is_local() 29761: && _M_get_allocator() != __str._M_get_allocator()) 29761: { 29761: 29761: 29761: if (__str.size() <= _S_local_capacity) 29761: { 29761: _M_destroy(_M_allocated_capacity); 29761: _M_data(_M_use_local_data()); 29761: _M_set_length(0); 29761: } 29761: else 29761: { 29761: const auto __len = __str.size(); 29761: auto __alloc = __str._M_get_allocator(); 29761: 29761: auto __ptr = _S_allocate(__alloc, __len + 1); 29761: _M_destroy(_M_allocated_capacity); 29761: _M_data(__ptr); 29761: _M_capacity(__len); 29761: _M_set_length(__len); 29761: } 29761: } 29761: std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); 29761: } 29761: 29761: this->_M_assign(__str); 29761: return *this; 29761: } 29761: # 1632 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(basic_string&& __str) 29761: noexcept(_Alloc_traits::_S_nothrow_move()) 29761: { 29761: 29761: 29761: return *this = std::move(__str); 29761: } 29761: # 1656 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(const basic_string& __str, size_type __pos, size_type __n = npos) 29761: { return _M_replace(size_type(0), this->size(), __str._M_data() 29761: + __str._M_check(__pos, "basic_string::assign"), 29761: __str._M_limit(__pos, __n)); } 29761: # 1673 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(const _CharT* __s, size_type __n) 29761: { 29761: ; 29761: return _M_replace(size_type(0), this->size(), __s, __n); 29761: } 29761: # 1690 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(const _CharT* __s) 29761: { 29761: ; 29761: return _M_replace(size_type(0), this->size(), __s, 29761: traits_type::length(__s)); 29761: } 29761: # 1708 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(size_type __n, _CharT __c) 29761: { return _M_replace_aux(size_type(0), this->size(), __n, __c); } 29761: # 1722 "/usr/include/c++/14/bits/basic_string.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: template> 29761: 29761: basic_string& 29761: assign(_InputIterator __first, _InputIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: if constexpr (__is_one_of<_InputIterator, const_iterator, iterator, 29761: const _CharT*, _CharT*>::value) 29761: 29761: { 29761: ; 29761: return _M_replace(size_type(0), size(), 29761: std::__to_address(__first), __last - __first); 29761: } 29761: else 29761: return *this = basic_string(__first, __last, get_allocator()); 29761: } 29761: #pragma GCC diagnostic pop 29761: # 1759 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: assign(initializer_list<_CharT> __l) 29761: { 29761: 29761: 29761: const size_type __n = __l.size(); 29761: if (__n > capacity()) 29761: *this = basic_string(__l.begin(), __l.end(), get_allocator()); 29761: else 29761: { 29761: if (__n) 29761: _S_copy(_M_data(), __l.begin(), __n); 29761: _M_set_length(__n); 29761: } 29761: return *this; 29761: } 29761: # 1784 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: assign(const _Tp& __svt) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->assign(__sv.data(), __sv.size()); 29761: } 29761: # 1800 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: assign(const _Tp& __svt, size_type __pos, size_type __n = npos) 29761: { 29761: __sv_type __sv = __svt; 29761: return _M_replace(size_type(0), this->size(), 29761: __sv.data() 29761: + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), 29761: std::__sv_limit(__sv.size(), __pos, __n)); 29761: } 29761: # 1829 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: iterator 29761: insert(const_iterator __p, size_type __n, _CharT __c) 29761: { 29761: ; 29761: const size_type __pos = __p - begin(); 29761: this->replace(__p, __p, __n, __c); 29761: return iterator(this->_M_data() + __pos); 29761: } 29761: # 1872 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: iterator 29761: insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) 29761: { 29761: ; 29761: const size_type __pos = __p - begin(); 29761: this->replace(__p, __p, __beg, __end); 29761: return iterator(this->_M_data() + __pos); 29761: } 29761: # 1909 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: iterator 29761: insert(const_iterator __p, initializer_list<_CharT> __l) 29761: { return this->insert(__p, __l.begin(), __l.end()); } 29761: # 1937 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: insert(size_type __pos1, const basic_string& __str) 29761: { return this->replace(__pos1, size_type(0), 29761: __str._M_data(), __str.size()); } 29761: # 1961 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: insert(size_type __pos1, const basic_string& __str, 29761: size_type __pos2, size_type __n = npos) 29761: { return this->replace(__pos1, size_type(0), __str._M_data() 29761: + __str._M_check(__pos2, "basic_string::insert"), 29761: __str._M_limit(__pos2, __n)); } 29761: # 1985 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: insert(size_type __pos, const _CharT* __s, size_type __n) 29761: { return this->replace(__pos, size_type(0), __s, __n); } 29761: # 2005 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: insert(size_type __pos, const _CharT* __s) 29761: { 29761: ; 29761: return this->replace(__pos, size_type(0), __s, 29761: traits_type::length(__s)); 29761: } 29761: # 2030 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: insert(size_type __pos, size_type __n, _CharT __c) 29761: { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), 29761: size_type(0), __n, __c); } 29761: # 2049 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: iterator 29761: insert(__const_iterator __p, _CharT __c) 29761: { 29761: ; 29761: const size_type __pos = __p - begin(); 29761: _M_replace_aux(__pos, size_type(0), size_type(1), __c); 29761: return iterator(_M_data() + __pos); 29761: } 29761: # 2066 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: insert(size_type __pos, const _Tp& __svt) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->insert(__pos, __sv.data(), __sv.size()); 29761: } 29761: # 2083 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: insert(size_type __pos1, const _Tp& __svt, 29761: size_type __pos2, size_type __n = npos) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->replace(__pos1, size_type(0), 29761: __sv.data() 29761: + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), 29761: std::__sv_limit(__sv.size(), __pos2, __n)); 29761: } 29761: # 2112 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: erase(size_type __pos = 0, size_type __n = npos) 29761: { 29761: _M_check(__pos, "basic_string::erase"); 29761: if (__n == npos) 29761: this->_M_set_length(__pos); 29761: else if (__n != 0) 29761: this->_M_erase(__pos, _M_limit(__pos, __n)); 29761: return *this; 29761: } 29761: # 2132 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: iterator 29761: erase(__const_iterator __position) 29761: { 29761: 29761: ; 29761: const size_type __pos = __position - begin(); 29761: this->_M_erase(__pos, size_type(1)); 29761: return iterator(_M_data() + __pos); 29761: } 29761: # 2152 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: iterator 29761: erase(__const_iterator __first, __const_iterator __last) 29761: { 29761: 29761: ; 29761: const size_type __pos = __first - begin(); 29761: if (__last == end()) 29761: this->_M_set_length(__pos); 29761: else 29761: this->_M_erase(__pos, __last - __first); 29761: return iterator(this->_M_data() + __pos); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: pop_back() noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!empty())) std::__glibcxx_assert_fail(); } while (false); 29761: _M_erase(size() - 1, 1); 29761: } 29761: # 2198 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(size_type __pos, size_type __n, const basic_string& __str) 29761: { return this->replace(__pos, __n, __str._M_data(), __str.size()); } 29761: # 2221 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(size_type __pos1, size_type __n1, const basic_string& __str, 29761: size_type __pos2, size_type __n2 = npos) 29761: { return this->replace(__pos1, __n1, __str._M_data() 29761: + __str._M_check(__pos2, "basic_string::replace"), 29761: __str._M_limit(__pos2, __n2)); } 29761: # 2247 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(size_type __pos, size_type __n1, const _CharT* __s, 29761: size_type __n2) 29761: { 29761: ; 29761: return _M_replace(_M_check(__pos, "basic_string::replace"), 29761: _M_limit(__pos, __n1), __s, __n2); 29761: } 29761: # 2273 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(size_type __pos, size_type __n1, const _CharT* __s) 29761: { 29761: ; 29761: return this->replace(__pos, __n1, __s, traits_type::length(__s)); 29761: } 29761: # 2298 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) 29761: { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), 29761: _M_limit(__pos, __n1), __n2, __c); } 29761: # 2317 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: const basic_string& __str) 29761: { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } 29761: # 2338 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: const _CharT* __s, size_type __n) 29761: { 29761: 29761: ; 29761: return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); 29761: } 29761: # 2361 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) 29761: { 29761: ; 29761: return this->replace(__i1, __i2, __s, traits_type::length(__s)); 29761: } 29761: # 2383 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, size_type __n, 29761: _CharT __c) 29761: { 29761: 29761: ; 29761: return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); 29761: } 29761: # 2409 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template> 29761: 29761: basic_string& 29761: replace(const_iterator __i1, const_iterator __i2, 29761: _InputIterator __k1, _InputIterator __k2) 29761: { 29761: 29761: ; 29761: ; 29761: return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, 29761: std::__false_type()); 29761: } 29761: # 2442 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: _CharT* __k1, _CharT* __k2) 29761: { 29761: 29761: ; 29761: ; 29761: return this->replace(__i1 - begin(), __i2 - __i1, 29761: __k1, __k2 - __k1); 29761: } 29761: 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: const _CharT* __k1, const _CharT* __k2) 29761: { 29761: 29761: ; 29761: ; 29761: return this->replace(__i1 - begin(), __i2 - __i1, 29761: __k1, __k2 - __k1); 29761: } 29761: 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: iterator __k1, iterator __k2) 29761: { 29761: 29761: ; 29761: ; 29761: return this->replace(__i1 - begin(), __i2 - __i1, 29761: __k1.base(), __k2 - __k1); 29761: } 29761: 29761: 29761: basic_string& 29761: replace(__const_iterator __i1, __const_iterator __i2, 29761: const_iterator __k1, const_iterator __k2) 29761: { 29761: 29761: ; 29761: ; 29761: return this->replace(__i1 - begin(), __i2 - __i1, 29761: __k1.base(), __k2 - __k1); 29761: } 29761: # 2505 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: basic_string& replace(const_iterator __i1, const_iterator __i2, 29761: initializer_list<_CharT> __l) 29761: { return this->replace(__i1, __i2, __l.begin(), __l.size()); } 29761: # 2519 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: replace(size_type __pos, size_type __n, const _Tp& __svt) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->replace(__pos, __n, __sv.data(), __sv.size()); 29761: } 29761: # 2537 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: replace(size_type __pos1, size_type __n1, const _Tp& __svt, 29761: size_type __pos2, size_type __n2 = npos) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->replace(__pos1, __n1, 29761: __sv.data() 29761: + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), 29761: std::__sv_limit(__sv.size(), __pos2, __n2)); 29761: } 29761: # 2559 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: _If_sv<_Tp, basic_string&> 29761: replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->replace(__i1 - begin(), __i2 - __i1, __sv); 29761: } 29761: 29761: 29761: private: 29761: template 29761: 29761: basic_string& 29761: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29761: _Integer __n, _Integer __val, __true_type) 29761: { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } 29761: 29761: template 29761: 29761: basic_string& 29761: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29761: _InputIterator __k1, _InputIterator __k2, 29761: __false_type); 29761: 29761: 29761: basic_string& 29761: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 29761: _CharT __c); 29761: 29761: __attribute__((__noinline__, __noclone__, __cold__)) void 29761: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 29761: const size_type __len2, const size_type __how_much); 29761: 29761: 29761: basic_string& 29761: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 29761: const size_type __len2); 29761: 29761: 29761: basic_string& 29761: _M_append(const _CharT* __s, size_type __n); 29761: 29761: public: 29761: # 2616 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: size_type 29761: copy(_CharT* __s, size_type __n, size_type __pos = 0) const; 29761: # 2627 "/usr/include/c++/14/bits/basic_string.h" 3 29761: 29761: void 29761: swap(basic_string& __s) noexcept; 29761: # 2638 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: const _CharT* 29761: c_str() const noexcept 29761: { return _M_data(); } 29761: # 2651 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: const _CharT* 29761: data() const noexcept 29761: { return _M_data(); } 29761: # 2663 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: _CharT* 29761: data() noexcept 29761: { return _M_data(); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _M_get_allocator(); } 29761: # 2689 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept; 29761: # 2704 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find(const basic_string& __str, size_type __pos = 0) const 29761: noexcept 29761: { return this->find(__str.data(), __pos, __str.size()); } 29761: # 2717 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: find(const _Tp& __svt, size_type __pos = 0) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->find(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 2738 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find(const _CharT* __s, size_type __pos = 0) const noexcept 29761: { 29761: ; 29761: return this->find(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 2756 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find(_CharT __c, size_type __pos = 0) const noexcept; 29761: # 2770 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: rfind(const basic_string& __str, size_type __pos = npos) const 29761: noexcept 29761: { return this->rfind(__str.data(), __pos, __str.size()); } 29761: # 2783 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: rfind(const _Tp& __svt, size_type __pos = npos) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->rfind(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 2806 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: rfind(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept; 29761: # 2821 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: rfind(const _CharT* __s, size_type __pos = npos) const 29761: { 29761: ; 29761: return this->rfind(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 2839 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: rfind(_CharT __c, size_type __pos = npos) const noexcept; 29761: # 2854 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_of(const basic_string& __str, size_type __pos = 0) const 29761: noexcept 29761: { return this->find_first_of(__str.data(), __pos, __str.size()); } 29761: # 2868 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: find_first_of(const _Tp& __svt, size_type __pos = 0) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->find_first_of(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 2891 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept; 29761: # 2906 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_of(const _CharT* __s, size_type __pos = 0) const 29761: noexcept 29761: { 29761: ; 29761: return this->find_first_of(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 2927 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_of(_CharT __c, size_type __pos = 0) const noexcept 29761: { return this->find(__c, __pos); } 29761: # 2943 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_of(const basic_string& __str, size_type __pos = npos) const 29761: noexcept 29761: { return this->find_last_of(__str.data(), __pos, __str.size()); } 29761: # 2957 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: find_last_of(const _Tp& __svt, size_type __pos = npos) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->find_last_of(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 2980 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept; 29761: # 2995 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_of(const _CharT* __s, size_type __pos = npos) const 29761: noexcept 29761: { 29761: ; 29761: return this->find_last_of(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 3016 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_of(_CharT __c, size_type __pos = npos) const noexcept 29761: { return this->rfind(__c, __pos); } 29761: # 3031 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_not_of(const basic_string& __str, size_type __pos = 0) const 29761: noexcept 29761: { return this->find_first_not_of(__str.data(), __pos, __str.size()); } 29761: # 3045 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: find_first_not_of(const _Tp& __svt, size_type __pos = 0) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->find_first_not_of(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 3068 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_not_of(const _CharT* __s, size_type __pos, 29761: size_type __n) const noexcept; 29761: # 3083 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_not_of(const _CharT* __s, size_type __pos = 0) const 29761: noexcept 29761: { 29761: ; 29761: return this->find_first_not_of(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 3102 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_first_not_of(_CharT __c, size_type __pos = 0) const 29761: noexcept; 29761: # 3118 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_not_of(const basic_string& __str, size_type __pos = npos) const 29761: noexcept 29761: { return this->find_last_not_of(__str.data(), __pos, __str.size()); } 29761: # 3132 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, size_type> 29761: find_last_not_of(const _Tp& __svt, size_type __pos = npos) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return this->find_last_not_of(__sv.data(), __pos, __sv.size()); 29761: } 29761: # 3155 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_not_of(const _CharT* __s, size_type __pos, 29761: size_type __n) const noexcept; 29761: # 3170 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_not_of(const _CharT* __s, size_type __pos = npos) const 29761: noexcept 29761: { 29761: ; 29761: return this->find_last_not_of(__s, __pos, traits_type::length(__s)); 29761: } 29761: # 3189 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: size_type 29761: find_last_not_of(_CharT __c, size_type __pos = npos) const 29761: noexcept; 29761: # 3206 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: basic_string 29761: substr(size_type __pos = 0, size_type __n = npos) const 29761: { return basic_string(*this, 29761: _M_check(__pos, "basic_string::substr"), __n); } 29761: # 3226 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(const basic_string& __str) const 29761: { 29761: const size_type __size = this->size(); 29761: const size_type __osize = __str.size(); 29761: const size_type __len = std::min(__size, __osize); 29761: 29761: int __r = traits_type::compare(_M_data(), __str.data(), __len); 29761: if (!__r) 29761: __r = _S_compare(__size, __osize); 29761: return __r; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, int> 29761: compare(const _Tp& __svt) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: const size_type __size = this->size(); 29761: const size_type __osize = __sv.size(); 29761: const size_type __len = std::min(__size, __osize); 29761: 29761: int __r = traits_type::compare(_M_data(), __sv.data(), __len); 29761: if (!__r) 29761: __r = _S_compare(__size, __osize); 29761: return __r; 29761: } 29761: # 3271 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, int> 29761: compare(size_type __pos, size_type __n, const _Tp& __svt) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return __sv_type(*this).substr(__pos, __n).compare(__sv); 29761: } 29761: # 3291 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _If_sv<_Tp, int> 29761: compare(size_type __pos1, size_type __n1, const _Tp& __svt, 29761: size_type __pos2, size_type __n2 = npos) const 29761: noexcept(is_same<_Tp, __sv_type>::value) 29761: { 29761: __sv_type __sv = __svt; 29761: return __sv_type(*this) 29761: .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); 29761: } 29761: # 3323 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(size_type __pos, size_type __n, const basic_string& __str) const 29761: { 29761: _M_check(__pos, "basic_string::compare"); 29761: __n = _M_limit(__pos, __n); 29761: const size_type __osize = __str.size(); 29761: const size_type __len = std::min(__n, __osize); 29761: int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); 29761: if (!__r) 29761: __r = _S_compare(__n, __osize); 29761: return __r; 29761: } 29761: # 3360 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(size_type __pos1, size_type __n1, const basic_string& __str, 29761: size_type __pos2, size_type __n2 = npos) const 29761: { 29761: _M_check(__pos1, "basic_string::compare"); 29761: __str._M_check(__pos2, "basic_string::compare"); 29761: __n1 = _M_limit(__pos1, __n1); 29761: __n2 = __str._M_limit(__pos2, __n2); 29761: const size_type __len = std::min(__n1, __n2); 29761: int __r = traits_type::compare(_M_data() + __pos1, 29761: __str.data() + __pos2, __len); 29761: if (!__r) 29761: __r = _S_compare(__n1, __n2); 29761: return __r; 29761: } 29761: # 3391 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(const _CharT* __s) const noexcept 29761: { 29761: ; 29761: const size_type __size = this->size(); 29761: const size_type __osize = traits_type::length(__s); 29761: const size_type __len = std::min(__size, __osize); 29761: int __r = traits_type::compare(_M_data(), __s, __len); 29761: if (!__r) 29761: __r = _S_compare(__size, __osize); 29761: return __r; 29761: } 29761: # 3426 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(size_type __pos, size_type __n1, const _CharT* __s) const 29761: { 29761: ; 29761: _M_check(__pos, "basic_string::compare"); 29761: __n1 = _M_limit(__pos, __n1); 29761: const size_type __osize = traits_type::length(__s); 29761: const size_type __len = std::min(__n1, __osize); 29761: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 29761: if (!__r) 29761: __r = _S_compare(__n1, __osize); 29761: return __r; 29761: } 29761: # 3465 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: int 29761: compare(size_type __pos, size_type __n1, const _CharT* __s, 29761: size_type __n2) const 29761: { 29761: ; 29761: _M_check(__pos, "basic_string::compare"); 29761: __n1 = _M_limit(__pos, __n1); 29761: const size_type __len = std::min(__n1, __n2); 29761: int __r = traits_type::compare(_M_data() + __pos, __s, __len); 29761: if (!__r) 29761: __r = _S_compare(__n1, __n2); 29761: return __r; 29761: } 29761: # 3530 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template friend class basic_stringbuf; 29761: }; 29761: } 29761: 29761: } 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: namespace __cxx11 { 29761: template::value_type, 29761: typename _Allocator = allocator<_CharT>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireAllocator<_Allocator>> 29761: basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29761: -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; 29761: 29761: 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) 29761: -> basic_string<_CharT, _Traits, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: basic_string(basic_string_view<_CharT, _Traits>, 29761: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 29761: typename basic_string<_CharT, _Traits, _Allocator>::size_type, 29761: const _Allocator& = _Allocator()) 29761: -> basic_string<_CharT, _Traits, _Allocator>; 29761: } 29761: 29761: 29761: template 29761: 29761: inline _Str 29761: __str_concat(typename _Str::value_type const* __lhs, 29761: typename _Str::size_type __lhs_len, 29761: typename _Str::value_type const* __rhs, 29761: typename _Str::size_type __rhs_len, 29761: typename _Str::allocator_type const& __a) 29761: { 29761: typedef typename _Str::allocator_type allocator_type; 29761: typedef __gnu_cxx::__alloc_traits _Alloc_traits; 29761: _Str __str(_Alloc_traits::_S_select_on_copy(__a)); 29761: __str.reserve(__lhs_len + __rhs_len); 29761: __str.append(__lhs, __lhs_len); 29761: __str.append(__rhs, __rhs_len); 29761: return __str; 29761: } 29761: # 3595 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { 29761: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29761: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29761: __rhs.c_str(), __rhs.size(), 29761: __lhs.get_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT,_Traits,_Alloc> 29761: operator+(const _CharT* __lhs, 29761: const basic_string<_CharT,_Traits,_Alloc>& __rhs) 29761: { 29761: ; 29761: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29761: return std::__str_concat<_Str>(__lhs, _Traits::length(__lhs), 29761: __rhs.c_str(), __rhs.size(), 29761: __rhs.get_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT,_Traits,_Alloc> 29761: operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) 29761: { 29761: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29761: return std::__str_concat<_Str>(__builtin_addressof(__lhs), 1, 29761: __rhs.c_str(), __rhs.size(), 29761: __rhs.get_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { 29761: ; 29761: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29761: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29761: __rhs, _Traits::length(__rhs), 29761: __lhs.get_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) 29761: { 29761: typedef basic_string<_CharT, _Traits, _Alloc> _Str; 29761: return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), 29761: __builtin_addressof(__rhs), 1, 29761: __lhs.get_allocator()); 29761: } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return std::move(__lhs.append(__rhs)); } 29761: 29761: template 29761: 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29761: { return std::move(__rhs.insert(0, __lhs)); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29761: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29761: { 29761: 29761: using _Alloc_traits = allocator_traits<_Alloc>; 29761: bool __use_rhs = false; 29761: if constexpr (typename _Alloc_traits::is_always_equal{}) 29761: __use_rhs = true; 29761: else if (__lhs.get_allocator() == __rhs.get_allocator()) 29761: __use_rhs = true; 29761: if (__use_rhs) 29761: 29761: { 29761: const auto __size = __lhs.size() + __rhs.size(); 29761: if (__size > __lhs.capacity() && __size <= __rhs.capacity()) 29761: return std::move(__rhs.insert(0, __lhs)); 29761: } 29761: return std::move(__lhs.append(__rhs)); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(const _CharT* __lhs, 29761: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29761: { return std::move(__rhs.insert(0, __lhs)); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(_CharT __lhs, 29761: basic_string<_CharT, _Traits, _Alloc>&& __rhs) 29761: { return std::move(__rhs.insert(0, 1, __lhs)); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29761: const _CharT* __rhs) 29761: { return std::move(__lhs.append(__rhs)); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline basic_string<_CharT, _Traits, _Alloc> 29761: operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, 29761: _CharT __rhs) 29761: { return std::move(__lhs.append(1, __rhs)); } 29761: # 3752 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { 29761: return __lhs.size() == __rhs.size() 29761: && !_Traits::compare(__lhs.data(), __rhs.data(), __lhs.size()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { 29761: return __lhs.size() == _Traits::length(__rhs) 29761: && !_Traits::compare(__lhs.data(), __rhs, __lhs.size()); 29761: } 29761: # 3816 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return __rhs == __lhs; } 29761: # 3830 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return !(__rhs == __lhs); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 3871 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { return __lhs.compare(__rhs) < 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { return __lhs.compare(__rhs) < 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return __rhs.compare(__lhs) > 0; } 29761: # 3912 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { return __lhs.compare(__rhs) > 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { return __lhs.compare(__rhs) > 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return __rhs.compare(__lhs) < 0; } 29761: # 3953 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { return __lhs.compare(__rhs) <= 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { return __lhs.compare(__rhs) <= 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return __rhs.compare(__lhs) >= 0; } 29761: # 3994 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept 29761: { return __lhs.compare(__rhs) >= 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: const _CharT* __rhs) 29761: { return __lhs.compare(__rhs) >= 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const _CharT* __lhs, 29761: const basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: { return __rhs.compare(__lhs) <= 0; } 29761: # 4036 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: 29761: inline void 29761: swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, 29761: basic_string<_CharT, _Traits, _Alloc>& __rhs) 29761: noexcept(noexcept(__lhs.swap(__rhs))) 29761: { __lhs.swap(__rhs); } 29761: # 4057 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: operator>>(basic_istream<_CharT, _Traits>& __is, 29761: basic_string<_CharT, _Traits, _Alloc>& __str); 29761: 29761: template<> 29761: basic_istream& 29761: operator>>(basic_istream& __is, basic_string& __str); 29761: # 4075 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __os, 29761: const basic_string<_CharT, _Traits, _Alloc>& __str) 29761: { 29761: 29761: 29761: return __ostream_insert(__os, __str.data(), __str.size()); 29761: } 29761: # 4098 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: getline(basic_istream<_CharT, _Traits>& __is, 29761: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); 29761: # 4115 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: inline basic_istream<_CharT, _Traits>& 29761: getline(basic_istream<_CharT, _Traits>& __is, 29761: basic_string<_CharT, _Traits, _Alloc>& __str) 29761: { return std::getline(__is, __str, __is.widen('\n')); } 29761: 29761: 29761: 29761: template 29761: inline basic_istream<_CharT, _Traits>& 29761: getline(basic_istream<_CharT, _Traits>&& __is, 29761: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 29761: { return std::getline(__is, __str, __delim); } 29761: 29761: 29761: template 29761: inline basic_istream<_CharT, _Traits>& 29761: getline(basic_istream<_CharT, _Traits>&& __is, 29761: basic_string<_CharT, _Traits, _Alloc>& __str) 29761: { return std::getline(__is, __str); } 29761: 29761: 29761: template<> 29761: basic_istream& 29761: getline(basic_istream& __in, basic_string& __str, 29761: char __delim); 29761: 29761: 29761: template<> 29761: basic_istream& 29761: getline(basic_istream& __in, basic_string& __str, 29761: wchar_t __delim); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ext/string_conversions.h" 1 3 29761: # 32 "/usr/include/c++/14/ext/string_conversions.h" 3 29761: 29761: # 33 "/usr/include/c++/14/ext/string_conversions.h" 3 29761: # 43 "/usr/include/c++/14/ext/string_conversions.h" 3 29761: # 1 "/usr/include/c++/14/cstdlib" 1 3 29761: # 39 "/usr/include/c++/14/cstdlib" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdlib" 3 29761: # 79 "/usr/include/c++/14/cstdlib" 3 29761: # 1 "/usr/include/stdlib.h" 1 3 4 29761: # 26 "/usr/include/stdlib.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 27 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 33 "/usr/include/stdlib.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitflags.h" 1 3 4 29761: # 41 "/usr/include/stdlib.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/waitstatus.h" 1 3 4 29761: # 42 "/usr/include/stdlib.h" 2 3 4 29761: # 56 "/usr/include/stdlib.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29761: # 57 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: typedef struct 29761: { 29761: int quot; 29761: int rem; 29761: } div_t; 29761: 29761: 29761: 29761: typedef struct 29761: { 29761: long int quot; 29761: long int rem; 29761: } ldiv_t; 29761: 29761: 29761: 29761: 29761: 29761: __extension__ typedef struct 29761: { 29761: long long int quot; 29761: long long int rem; 29761: } lldiv_t; 29761: # 98 "/usr/include/stdlib.h" 3 4 29761: extern size_t __ctype_get_mb_cur_max (void) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern double atof (const char *__nptr) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: extern int atoi (const char *__nptr) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: extern long int atol (const char *__nptr) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: __extension__ extern long long int atoll (const char *__nptr) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern double strtod (const char *__restrict __nptr, 29761: char **__restrict __endptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern float strtof (const char *__restrict __nptr, 29761: char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: extern long double strtold (const char *__restrict __nptr, 29761: char **__restrict __endptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 141 "/usr/include/stdlib.h" 3 4 29761: extern _Float32 strtof32 (const char *__restrict __nptr, 29761: char **__restrict __endptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern _Float64 strtof64 (const char *__restrict __nptr, 29761: char **__restrict __endptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 159 "/usr/include/stdlib.h" 3 4 29761: extern _Float32x strtof32x (const char *__restrict __nptr, 29761: char **__restrict __endptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 177 "/usr/include/stdlib.h" 3 4 29761: extern long int strtol (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: extern unsigned long int strtoul (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: __extension__ 29761: extern long long int strtoq (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: __extension__ 29761: extern unsigned long long int strtouq (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: __extension__ 29761: extern long long int strtoll (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: __extension__ 29761: extern unsigned long long int strtoull (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int strtol (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtol") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: extern unsigned long int strtoul (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoul") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: __extension__ 29761: extern long long int strtoq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: __extension__ 29761: extern unsigned long long int strtouq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: __extension__ 29761: extern long long int strtoll (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoll") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: __extension__ 29761: extern unsigned long long int strtoull (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoull") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: # 278 "/usr/include/stdlib.h" 3 4 29761: extern int strfromd (char *__dest, size_t __size, const char *__format, 29761: double __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: 29761: extern int strfromf (char *__dest, size_t __size, const char *__format, 29761: float __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: 29761: extern int strfroml (char *__dest, size_t __size, const char *__format, 29761: long double __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: # 298 "/usr/include/stdlib.h" 3 4 29761: extern int strfromf32 (char *__dest, size_t __size, const char * __format, 29761: _Float32 __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: 29761: extern int strfromf64 (char *__dest, size_t __size, const char * __format, 29761: _Float64 __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: # 316 "/usr/include/stdlib.h" 3 4 29761: extern int strfromf32x (char *__dest, size_t __size, const char * __format, 29761: _Float32x __f) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))); 29761: # 340 "/usr/include/stdlib.h" 3 4 29761: extern long int strtol_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base, 29761: locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: extern unsigned long int strtoul_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: int __base, locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: __extension__ 29761: extern long long int strtoll_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base, 29761: locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: __extension__ 29761: extern unsigned long long int strtoull_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: int __base, locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: 29761: 29761: 29761: 29761: extern long int strtol_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtol_l") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 4))); 29761: extern unsigned long int strtoul_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoul_l") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 4))); 29761: __extension__ 29761: extern long long int strtoll_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __asm__ ("" "__isoc23_strtoll_l") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 4))); 29761: __extension__ 29761: 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") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 4))); 29761: # 415 "/usr/include/stdlib.h" 3 4 29761: extern double strtod_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: extern float strtof_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: extern long double strtold_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: # 436 "/usr/include/stdlib.h" 3 4 29761: extern _Float32 strtof32_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: 29761: 29761: 29761: extern _Float64 strtof64_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: # 457 "/usr/include/stdlib.h" 3 4 29761: extern _Float32x strtof32x_l (const char *__restrict __nptr, 29761: char **__restrict __endptr, 29761: locale_t __loc) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 3))); 29761: # 480 "/usr/include/stdlib.h" 3 4 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: __attribute__ ((__leaf__)) atoi (const char *__nptr) noexcept (true) 29761: { 29761: return (int) strtol (__nptr, (char **) __null, 10); 29761: } 29761: extern __inline __attribute__ ((__gnu_inline__)) long int 29761: __attribute__ ((__leaf__)) atol (const char *__nptr) noexcept (true) 29761: { 29761: return strtol (__nptr, (char **) __null, 10); 29761: } 29761: 29761: 29761: __extension__ extern __inline __attribute__ ((__gnu_inline__)) long long int 29761: __attribute__ ((__leaf__)) atoll (const char *__nptr) noexcept (true) 29761: { 29761: return strtoll (__nptr, (char **) __null, 10); 29761: } 29761: # 505 "/usr/include/stdlib.h" 3 4 29761: extern char *l64a (long int __n) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern long int a64l (const char *__s) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/types.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: typedef __u_char u_char; 29761: typedef __u_short u_short; 29761: typedef __u_int u_int; 29761: typedef __u_long u_long; 29761: typedef __quad_t quad_t; 29761: typedef __u_quad_t u_quad_t; 29761: typedef __fsid_t fsid_t; 29761: 29761: 29761: typedef __loff_t loff_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __ino64_t ino_t; 29761: 29761: 29761: 29761: 29761: typedef __ino64_t ino64_t; 29761: 29761: 29761: 29761: 29761: typedef __dev_t dev_t; 29761: 29761: 29761: 29761: 29761: typedef __gid_t gid_t; 29761: 29761: 29761: 29761: 29761: typedef __mode_t mode_t; 29761: 29761: 29761: 29761: 29761: typedef __nlink_t nlink_t; 29761: 29761: 29761: 29761: 29761: typedef __uid_t uid_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __off64_t off_t; 29761: 29761: 29761: 29761: 29761: typedef __off64_t off64_t; 29761: # 103 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: typedef __id_t id_t; 29761: 29761: 29761: 29761: 29761: typedef __ssize_t ssize_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef __daddr_t daddr_t; 29761: typedef __caddr_t caddr_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef __key_t key_t; 29761: # 134 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: typedef __useconds_t useconds_t; 29761: 29761: 29761: 29761: typedef __suseconds_t suseconds_t; 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 145 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29761: 29761: 29761: 29761: typedef unsigned long int ulong; 29761: typedef unsigned short int ushort; 29761: typedef unsigned int uint; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __uint8_t u_int8_t; 29761: typedef __uint16_t u_int16_t; 29761: typedef __uint32_t u_int32_t; 29761: typedef __uint64_t u_int64_t; 29761: 29761: 29761: typedef int register_t __attribute__ ((__mode__ (__word__))); 29761: # 176 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: # 1 "/usr/include/endian.h" 1 3 4 29761: # 35 "/usr/include/endian.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 1 3 4 29761: # 33 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 29761: static __inline __uint16_t 29761: __bswap_16 (__uint16_t __bsx) 29761: { 29761: 29761: return __builtin_bswap16 (__bsx); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: static __inline __uint32_t 29761: __bswap_32 (__uint32_t __bsx) 29761: { 29761: 29761: return __builtin_bswap32 (__bsx); 29761: 29761: 29761: 29761: } 29761: # 69 "/usr/include/arm-linux-gnueabihf/bits/byteswap.h" 3 4 29761: __extension__ static __inline __uint64_t 29761: __bswap_64 (__uint64_t __bsx) 29761: { 29761: 29761: return __builtin_bswap64 (__bsx); 29761: 29761: 29761: 29761: } 29761: # 36 "/usr/include/endian.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 1 3 4 29761: # 32 "/usr/include/arm-linux-gnueabihf/bits/uintn-identity.h" 3 4 29761: static __inline __uint16_t 29761: __uint16_identity (__uint16_t __x) 29761: { 29761: return __x; 29761: } 29761: 29761: static __inline __uint32_t 29761: __uint32_identity (__uint32_t __x) 29761: { 29761: return __x; 29761: } 29761: 29761: static __inline __uint64_t 29761: __uint64_identity (__uint64_t __x) 29761: { 29761: return __x; 29761: } 29761: # 37 "/usr/include/endian.h" 2 3 4 29761: # 177 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/select.h" 1 3 4 29761: # 30 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/select.h" 1 3 4 29761: # 31 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/sigset_t.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __sigset_t sigset_t; 29761: # 34 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29761: # 49 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: typedef long int __fd_mask; 29761: # 59 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: typedef struct 29761: { 29761: 29761: 29761: 29761: __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; 29761: 29761: 29761: 29761: 29761: 29761: } fd_set; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __fd_mask fd_mask; 29761: # 91 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: extern "C" { 29761: # 108 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout) __asm__ ("" "__select64") 29761: 29761: 29761: 29761: 29761: ; 29761: # 134 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: 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) __asm__ ("" "__pselect64") 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: # 150 "/usr/include/arm-linux-gnueabihf/sys/select.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/select-decl.h" 3 4 29761: extern long int __fdelt_chk (long int __d); 29761: extern long int __fdelt_warn (long int __d) 29761: __attribute__((__warning__ ("bit outside of fd_set selected"))); 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/select2.h" 2 3 4 29761: # 151 "/usr/include/arm-linux-gnueabihf/sys/select.h" 2 3 4 29761: 29761: 29761: } 29761: # 180 "/usr/include/arm-linux-gnueabihf/sys/types.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: typedef __blksize_t blksize_t; 29761: # 205 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: typedef __blkcnt64_t blkcnt_t; 29761: 29761: 29761: 29761: typedef __fsblkcnt64_t fsblkcnt_t; 29761: 29761: 29761: 29761: typedef __fsfilcnt64_t fsfilcnt_t; 29761: 29761: 29761: 29761: 29761: 29761: typedef __blkcnt64_t blkcnt64_t; 29761: typedef __fsblkcnt64_t fsblkcnt64_t; 29761: typedef __fsfilcnt64_t fsfilcnt64_t; 29761: # 230 "/usr/include/arm-linux-gnueabihf/sys/types.h" 3 4 29761: } 29761: # 515 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int random (void) noexcept (true); 29761: 29761: 29761: extern void srandom (unsigned int __seed) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern char *initstate (unsigned int __seed, char *__statebuf, 29761: size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct random_data 29761: { 29761: int32_t *fptr; 29761: int32_t *rptr; 29761: int32_t *state; 29761: int rand_type; 29761: int rand_deg; 29761: int rand_sep; 29761: int32_t *end_ptr; 29761: }; 29761: 29761: extern int random_r (struct random_data *__restrict __buf, 29761: int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern int srandom_r (unsigned int __seed, struct random_data *__buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, 29761: size_t __statelen, 29761: struct random_data *__restrict __buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 4))); 29761: 29761: extern int setstate_r (char *__restrict __statebuf, 29761: struct random_data *__restrict __buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int rand (void) noexcept (true); 29761: 29761: extern void srand (unsigned int __seed) noexcept (true); 29761: 29761: 29761: 29761: extern int rand_r (unsigned int *__seed) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double drand48 (void) noexcept (true); 29761: extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern long int lrand48 (void) noexcept (true); 29761: extern long int nrand48 (unsigned short int __xsubi[3]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern long int mrand48 (void) noexcept (true); 29761: extern long int jrand48 (unsigned short int __xsubi[3]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern void srand48 (long int __seedval) noexcept (true); 29761: extern unsigned short int *seed48 (unsigned short int __seed16v[3]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: struct drand48_data 29761: { 29761: unsigned short int __x[3]; 29761: unsigned short int __old_x[3]; 29761: unsigned short int __c; 29761: unsigned short int __init; 29761: __extension__ unsigned long long int __a; 29761: 29761: }; 29761: 29761: 29761: extern int drand48_r (struct drand48_data *__restrict __buffer, 29761: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern int erand48_r (unsigned short int __xsubi[3], 29761: struct drand48_data *__restrict __buffer, 29761: double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int lrand48_r (struct drand48_data *__restrict __buffer, 29761: long int *__restrict __result) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern int nrand48_r (unsigned short int __xsubi[3], 29761: struct drand48_data *__restrict __buffer, 29761: long int *__restrict __result) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int mrand48_r (struct drand48_data *__restrict __buffer, 29761: long int *__restrict __result) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern int jrand48_r (unsigned short int __xsubi[3], 29761: struct drand48_data *__restrict __buffer, 29761: long int *__restrict __result) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int srand48_r (long int __seedval, struct drand48_data *__buffer) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: extern int seed48_r (unsigned short int __seed16v[3], 29761: struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern int lcong48_r (unsigned short int __param[7], 29761: struct drand48_data *__buffer) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern __uint32_t arc4random (void) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern void arc4random_buf (void *__buf, size_t __size) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29761: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: extern void *calloc (size_t __nmemb, size_t __size) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void *realloc (void *__ptr, size_t __size) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 29761: 29761: 29761: extern void free (void *__ptr) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__alloc_size__ (2, 3))) 29761: __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29761: noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); 29761: 29761: 29761: 29761: # 1 "/usr/include/alloca.h" 1 3 4 29761: # 24 "/usr/include/alloca.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 25 "/usr/include/alloca.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: extern void *alloca (size_t __size) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 707 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29761: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern void *aligned_alloc (size_t __alignment, size_t __size) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 29761: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern "C++" int at_quick_exit (void (*__func) (void)) 29761: noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); 29761: # 749 "/usr/include/stdlib.h" 3 4 29761: extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: 29761: extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: 29761: extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern char *secure_getenv (const char *__name) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int setenv (const char *__name, const char *__value, int __replace) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int clearenv (void) noexcept (true); 29761: # 814 "/usr/include/stdlib.h" 3 4 29761: extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 830 "/usr/include/stdlib.h" 3 4 29761: extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 852 "/usr/include/stdlib.h" 3 4 29761: extern int mkstemps (char *__template, int __suffixlen) __asm__ ("" "mkstemps64") 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int mkstemps64 (char *__template, int __suffixlen) 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 870 "/usr/include/stdlib.h" 3 4 29761: extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 884 "/usr/include/stdlib.h" 3 4 29761: extern int mkostemp (char *__template, int __flags) __asm__ ("" "mkostemp64") 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 905 "/usr/include/stdlib.h" 3 4 29761: extern int mkostemps (char *__template, int __suffixlen, int __flags) __asm__ ("" "mkostemps64") 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int mkostemps64 (char *__template, int __suffixlen, int __flags) 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 923 "/usr/include/stdlib.h" 3 4 29761: extern int system (const char *__command) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern char *canonicalize_file_name (const char *__name) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) 29761: __attribute__ ((__malloc__ (__builtin_free, 1))) __attribute__ ((__warn_unused_result__)); 29761: # 940 "/usr/include/stdlib.h" 3 4 29761: extern char *realpath (const char *__restrict __name, 29761: char *__restrict __resolved) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef int (*__compar_fn_t) (const void *, const void *); 29761: 29761: 29761: typedef __compar_fn_t comparison_fn_t; 29761: 29761: 29761: 29761: typedef int (*__compar_d_fn_t) (const void *, const void *, void *); 29761: 29761: 29761: 29761: 29761: extern void *bsearch (const void *__key, const void *__base, 29761: size_t __nmemb, size_t __size, __compar_fn_t __compar) 29761: __attribute__ ((__nonnull__ (1, 2, 5))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 1 3 4 29761: # 19 "/usr/include/arm-linux-gnueabihf/bits/stdlib-bsearch.h" 3 4 29761: extern __inline __attribute__ ((__gnu_inline__)) void * 29761: bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 29761: __compar_fn_t __compar) 29761: { 29761: size_t __l, __u, __idx; 29761: const void *__p; 29761: int __comparison; 29761: 29761: __l = 0; 29761: __u = __nmemb; 29761: while (__l < __u) 29761: { 29761: __idx = (__l + __u) / 2; 29761: __p = (const void *) (((const char *) __base) + (__idx * __size)); 29761: __comparison = (*__compar) (__key, __p); 29761: if (__comparison < 0) 29761: __u = __idx; 29761: else if (__comparison > 0) 29761: __l = __idx + 1; 29761: else 29761: { 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wcast-qual" 29761: 29761: return (void *) __p; 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: } 29761: } 29761: 29761: return __null; 29761: } 29761: # 966 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: 29761: extern void qsort (void *__base, size_t __nmemb, size_t __size, 29761: __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: extern void qsort_r (void *__base, size_t __nmemb, size_t __size, 29761: __compar_d_fn_t __compar, void *__arg) 29761: __attribute__ ((__nonnull__ (1, 4))); 29761: 29761: 29761: 29761: 29761: extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: __extension__ extern long long int llabs (long long int __x) 29761: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern div_t div (int __numer, int __denom) 29761: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: extern ldiv_t ldiv (long int __numer, long int __denom) 29761: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: __extension__ extern lldiv_t lldiv (long long int __numer, 29761: long long int __denom) 29761: noexcept (true) __attribute__ ((__const__)) __attribute__ ((__warn_unused_result__)); 29761: # 1012 "/usr/include/stdlib.h" 3 4 29761: extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, 29761: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, 29761: int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern char *gcvt (double __value, int __ndigit, char *__buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern char *qecvt (long double __value, int __ndigit, 29761: int *__restrict __decpt, int *__restrict __sign) 29761: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29761: extern char *qfcvt (long double __value, int __ndigit, 29761: int *__restrict __decpt, int *__restrict __sign) 29761: noexcept (true) __attribute__ ((__nonnull__ (3, 4))) __attribute__ ((__warn_unused_result__)); 29761: extern char *qgcvt (long double __value, int __ndigit, char *__buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (3))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, 29761: int *__restrict __sign, char *__restrict __buf, 29761: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29761: extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, 29761: int *__restrict __sign, char *__restrict __buf, 29761: size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29761: 29761: extern int qecvt_r (long double __value, int __ndigit, 29761: int *__restrict __decpt, int *__restrict __sign, 29761: char *__restrict __buf, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29761: extern int qfcvt_r (long double __value, int __ndigit, 29761: int *__restrict __decpt, int *__restrict __sign, 29761: char *__restrict __buf, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); 29761: 29761: 29761: 29761: 29761: 29761: extern int mblen (const char *__s, size_t __n) noexcept (true); 29761: 29761: 29761: extern int mbtowc (wchar_t *__restrict __pwc, 29761: const char *__restrict __s, size_t __n) noexcept (true); 29761: 29761: 29761: extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); 29761: 29761: 29761: 29761: extern size_t mbstowcs (wchar_t *__restrict __pwcs, 29761: const char *__restrict __s, size_t __n) noexcept (true) 29761: __attribute__ ((__access__ (__read_only__, 2))); 29761: 29761: extern size_t wcstombs (char *__restrict __s, 29761: const wchar_t *__restrict __pwcs, size_t __n) 29761: noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))) 29761: __attribute__ ((__access__ (__read_only__, 2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 1099 "/usr/include/stdlib.h" 3 4 29761: extern int getsubopt (char **__restrict __optionp, 29761: char *const *__restrict __tokens, 29761: char **__restrict __valuep) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int posix_openpt (int __oflag) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int grantpt (int __fd) noexcept (true); 29761: 29761: 29761: 29761: extern int unlockpt (int __fd) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern char *ptsname (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int ptsname_r (int __fd, char *__buf, size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: extern int getpt (void); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int getloadavg (double __loadavg[], int __nelem) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 1155 "/usr/include/stdlib.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/stdlib-float.h" 3 4 29761: extern __inline __attribute__ ((__gnu_inline__)) double 29761: __attribute__ ((__leaf__)) atof (const char *__nptr) noexcept (true) 29761: { 29761: return strtod (__nptr, (char **) __null); 29761: } 29761: # 1156 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/stdlib.h" 3 4 29761: extern char *__realpath_chk (const char *__restrict __name, 29761: char *__restrict __resolved, 29761: size_t __resolvedlen) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: extern char *__realpath_alias (const char *__restrict __name, char *__restrict __resolved) noexcept (true) __asm__ ("" "realpath") 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: extern char *__realpath_chk_warn (const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) noexcept (true) __asm__ ("" "__realpath_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) 29761: __attribute__((__warning__ ("second argument of realpath must be either NULL or at " "least PATH_MAX bytes long buffer"))) 29761: ; 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 29761: __attribute__ ((__leaf__)) realpath (const char *__restrict __name, char * __restrict __resolved) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__resolved, 2 > 1); 29761: 29761: if (__sz == (size_t) -1) 29761: return __realpath_alias (__name, __resolved); 29761: 29761: 29761: 29761: 29761: 29761: return __realpath_chk (__name, __resolved, __sz); 29761: } 29761: 29761: 29761: extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, 29761: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern int __ptsname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ptsname_r") 29761: 29761: __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern int __ptsname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ptsname_r_chk") 29761: 29761: 29761: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ptsname_r called with buflen bigger than " "size of buf"))) 29761: ; 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) ptsname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __ptsname_r_alias (__fd, __buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __ptsname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __ptsname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: extern int __wctomb_alias (char *__s, wchar_t __wchar) noexcept (true) __asm__ ("" "wctomb") 29761: __attribute__ ((__warn_unused_result__)); 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) int 29761: __attribute__ ((__leaf__)) wctomb (char * __s, wchar_t __wchar) noexcept (true) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (__builtin_object_size (__s, 2 > 1) != (size_t) -1 29761: && 16 > __builtin_object_size (__s, 2 > 1)) 29761: return __wctomb_chk (__s, __wchar, __builtin_object_size (__s, 2 > 1)); 29761: return __wctomb_alias (__s, __wchar); 29761: } 29761: 29761: 29761: extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, 29761: const char *__restrict __src, 29761: size_t __len, size_t __dstlen) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29761: extern size_t __mbstowcs_nulldst (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 29761: 29761: 29761: 29761: __attribute__ ((__access__ (__read_only__, 2))); 29761: extern size_t __mbstowcs_alias (wchar_t *__restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "mbstowcs") 29761: 29761: 29761: 29761: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("mbstowcs called with dst buffer smaller than len " "* sizeof (wchar_t)"))) 29761: ; 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) mbstowcs (wchar_t * __restrict __dst, const char *__restrict __src, size_t __len) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: if (__builtin_constant_p (__dst == __null) && __dst == __null) 29761: return __mbstowcs_nulldst (__dst, __src, __len); 29761: else 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (wchar_t)))))) ? __mbstowcs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t)))) ? __mbstowcs_chk_warn (__dst, __src, __len, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))) : __mbstowcs_chk (__dst, __src, __len, (__builtin_object_size (__dst, 2 > 1)) / (sizeof (wchar_t))))) 29761: ; 29761: } 29761: 29761: extern size_t __wcstombs_chk (char *__restrict __dst, 29761: const wchar_t *__restrict __src, 29761: size_t __len, size_t __dstlen) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29761: extern size_t __wcstombs_alias (char *__restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) __asm__ ("" "wcstombs") 29761: 29761: 29761: 29761: __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); 29761: 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") 29761: 29761: 29761: 29761: __attribute__((__warning__ ("wcstombs called with dst buffer smaller than len"))); 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) wcstombs (char * __restrict __dst, const wchar_t *__restrict __src, size_t __len) noexcept (true) 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__dst, 2 > 1)) && (__builtin_object_size (__dst, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__dst, 2 > 1))) / ((sizeof (char)))))) ? __wcstombs_alias (__dst, __src, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__dst, 2 > 1)) / (sizeof (char)))) ? __wcstombs_chk_warn (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)) : __wcstombs_chk (__dst, __src, __len, __builtin_object_size (__dst, 2 > 1)))) 29761: 29761: ; 29761: } 29761: # 1160 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29761: # 1163 "/usr/include/stdlib.h" 2 3 4 29761: 29761: 29761: 29761: 29761: } 29761: # 80 "/usr/include/c++/14/cstdlib" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/std_abs.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/std_abs.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/std_abs.h" 3 29761: # 46 "/usr/include/c++/14/bits/std_abs.h" 3 29761: extern "C++" 29761: { 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: using ::abs; 29761: 29761: 29761: inline long 29761: abs(long __i) { return __builtin_labs(__i); } 29761: 29761: 29761: 29761: inline long long 29761: abs(long long __x) { return __builtin_llabs (__x); } 29761: # 70 "/usr/include/c++/14/bits/std_abs.h" 3 29761: inline constexpr double 29761: abs(double __x) 29761: { return __builtin_fabs(__x); } 29761: 29761: inline constexpr float 29761: abs(float __x) 29761: { return __builtin_fabsf(__x); } 29761: 29761: inline constexpr long double 29761: abs(long double __x) 29761: { return __builtin_fabsl(__x); } 29761: # 150 "/usr/include/c++/14/bits/std_abs.h" 3 29761: 29761: } 29761: } 29761: # 82 "/usr/include/c++/14/cstdlib" 2 3 29761: # 125 "/usr/include/c++/14/cstdlib" 3 29761: extern "C++" 29761: { 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: using ::div_t; 29761: using ::ldiv_t; 29761: 29761: using ::abort; 29761: 29761: using ::aligned_alloc; 29761: 29761: using ::atexit; 29761: 29761: 29761: using ::at_quick_exit; 29761: 29761: 29761: using ::atof; 29761: using ::atoi; 29761: using ::atol; 29761: using ::bsearch; 29761: using ::calloc; 29761: using ::div; 29761: using ::exit; 29761: using ::free; 29761: using ::getenv; 29761: using ::labs; 29761: using ::ldiv; 29761: using ::malloc; 29761: 29761: using ::mblen; 29761: using ::mbstowcs; 29761: using ::mbtowc; 29761: 29761: using ::qsort; 29761: 29761: 29761: using ::quick_exit; 29761: 29761: 29761: using ::rand; 29761: using ::realloc; 29761: using ::srand; 29761: using ::strtod; 29761: using ::strtol; 29761: using ::strtoul; 29761: using ::system; 29761: 29761: using ::wcstombs; 29761: using ::wctomb; 29761: 29761: 29761: 29761: inline ldiv_t 29761: div(long __i, long __j) noexcept { return ldiv(__i, __j); } 29761: 29761: 29761: 29761: 29761: } 29761: # 199 "/usr/include/c++/14/cstdlib" 3 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: using ::lldiv_t; 29761: 29761: 29761: 29761: 29761: 29761: using ::_Exit; 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: using ::llabs; 29761: 29761: inline lldiv_t 29761: div(long long __n, long long __d) 29761: { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } 29761: 29761: using ::lldiv; 29761: #pragma GCC diagnostic pop 29761: # 234 "/usr/include/c++/14/cstdlib" 3 29761: using ::atoll; 29761: using ::strtoll; 29761: using ::strtoull; 29761: 29761: using ::strtof; 29761: using ::strtold; 29761: 29761: 29761: } 29761: 29761: namespace std 29761: { 29761: 29761: using ::__gnu_cxx::lldiv_t; 29761: 29761: using ::__gnu_cxx::_Exit; 29761: 29761: using ::__gnu_cxx::llabs; 29761: using ::__gnu_cxx::div; 29761: using ::__gnu_cxx::lldiv; 29761: 29761: using ::__gnu_cxx::atoll; 29761: using ::__gnu_cxx::strtof; 29761: using ::__gnu_cxx::strtoll; 29761: using ::__gnu_cxx::strtoull; 29761: using ::__gnu_cxx::strtold; 29761: } 29761: # 278 "/usr/include/c++/14/cstdlib" 3 29761: } 29761: # 44 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29761: # 1 "/usr/include/c++/14/cwchar" 1 3 29761: # 39 "/usr/include/c++/14/cwchar" 3 29761: 29761: # 40 "/usr/include/c++/14/cwchar" 3 29761: # 45 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29761: # 1 "/usr/include/c++/14/cstdio" 1 3 29761: # 39 "/usr/include/c++/14/cstdio" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdio" 3 29761: 29761: 29761: # 1 "/usr/include/stdio.h" 1 3 4 29761: # 28 "/usr/include/stdio.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 29 "/usr/include/stdio.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 35 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29761: # 38 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 1 3 4 29761: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos_t.h" 3 4 29761: typedef struct _G_fpos_t 29761: { 29761: __off_t __pos; 29761: __mbstate_t __state; 29761: } __fpos_t; 29761: # 41 "/usr/include/stdio.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 1 3 4 29761: # 10 "/usr/include/arm-linux-gnueabihf/bits/types/__fpos64_t.h" 3 4 29761: typedef struct _G_fpos64_t 29761: { 29761: __off64_t __pos; 29761: __mbstate_t __state; 29761: } __fpos64_t; 29761: # 42 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 1 3 4 29761: # 35 "/usr/include/arm-linux-gnueabihf/bits/types/struct_FILE.h" 3 4 29761: struct _IO_FILE; 29761: struct _IO_marker; 29761: struct _IO_codecvt; 29761: struct _IO_wide_data; 29761: 29761: 29761: 29761: 29761: typedef void _IO_lock_t; 29761: 29761: 29761: 29761: 29761: 29761: struct _IO_FILE 29761: { 29761: int _flags; 29761: 29761: 29761: char *_IO_read_ptr; 29761: char *_IO_read_end; 29761: char *_IO_read_base; 29761: char *_IO_write_base; 29761: char *_IO_write_ptr; 29761: char *_IO_write_end; 29761: char *_IO_buf_base; 29761: char *_IO_buf_end; 29761: 29761: 29761: char *_IO_save_base; 29761: char *_IO_backup_base; 29761: char *_IO_save_end; 29761: 29761: struct _IO_marker *_markers; 29761: 29761: struct _IO_FILE *_chain; 29761: 29761: int _fileno; 29761: int _flags2; 29761: __off_t _old_offset; 29761: 29761: 29761: unsigned short _cur_column; 29761: signed char _vtable_offset; 29761: char _shortbuf[1]; 29761: 29761: _IO_lock_t *_lock; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __off64_t _offset; 29761: 29761: struct _IO_codecvt *_codecvt; 29761: struct _IO_wide_data *_wide_data; 29761: struct _IO_FILE *_freeres_list; 29761: void *_freeres_buf; 29761: struct _IO_FILE **_prevchain; 29761: int _mode; 29761: 29761: char _unused2[15 * sizeof (int) - 5 * sizeof (void *)]; 29761: }; 29761: # 45 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/types/cookie_io_functions_t.h" 3 4 29761: typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, 29761: size_t __nbytes); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, 29761: size_t __nbytes); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); 29761: 29761: 29761: typedef int cookie_close_function_t (void *__cookie); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef struct _IO_cookie_io_functions_t 29761: { 29761: cookie_read_function_t *read; 29761: cookie_write_function_t *write; 29761: cookie_seek_function_t *seek; 29761: cookie_close_function_t *close; 29761: } cookie_io_functions_t; 29761: # 48 "/usr/include/stdio.h" 2 3 4 29761: # 87 "/usr/include/stdio.h" 3 4 29761: typedef __fpos64_t fpos_t; 29761: 29761: 29761: typedef __fpos64_t fpos64_t; 29761: # 129 "/usr/include/stdio.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio_lim.h" 1 3 4 29761: # 130 "/usr/include/stdio.h" 2 3 4 29761: # 149 "/usr/include/stdio.h" 3 4 29761: extern FILE *stdin; 29761: extern FILE *stdout; 29761: extern FILE *stderr; 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int remove (const char *__filename) noexcept (true); 29761: 29761: extern int rename (const char *__old, const char *__new) noexcept (true); 29761: 29761: 29761: 29761: extern int renameat (int __oldfd, const char *__old, int __newfd, 29761: const char *__new) noexcept (true); 29761: # 176 "/usr/include/stdio.h" 3 4 29761: extern int renameat2 (int __oldfd, const char *__old, int __newfd, 29761: const char *__new, unsigned int __flags) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: # 198 "/usr/include/stdio.h" 3 4 29761: extern FILE *tmpfile (void) __asm__ ("" "tmpfile64") 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern FILE *tmpfile64 (void) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern char *tmpnam (char[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern char *tmpnam_r (char __s[20]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: # 228 "/usr/include/stdio.h" 3 4 29761: extern char *tempnam (const char *__dir, const char *__pfx) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fflush (FILE *__stream); 29761: # 245 "/usr/include/stdio.h" 3 4 29761: extern int fflush_unlocked (FILE *__stream); 29761: # 255 "/usr/include/stdio.h" 3 4 29761: extern int fcloseall (void); 29761: # 276 "/usr/include/stdio.h" 3 4 29761: extern FILE *fopen (const char *__restrict __filename, const char *__restrict __modes) __asm__ ("" "fopen64") 29761: 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: extern FILE *freopen (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern FILE *fopen64 (const char *__restrict __filename, 29761: const char *__restrict __modes) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: extern FILE *freopen64 (const char *__restrict __filename, 29761: const char *__restrict __modes, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: 29761: 29761: extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern FILE *fopencookie (void *__restrict __magic_cookie, 29761: const char *__restrict __modes, 29761: cookie_io_functions_t __io_funcs) noexcept (true) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); 29761: 29761: 29761: 29761: 29761: 29761: extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true) 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, 29761: int __modes, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, 29761: size_t __size) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern void setlinebuf (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fprintf (FILE *__restrict __stream, 29761: const char *__restrict __format, ...) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int printf (const char *__restrict __format, ...); 29761: 29761: extern int sprintf (char *__restrict __s, 29761: const char *__restrict __format, ...) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, 29761: __gnuc_va_list __arg) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); 29761: 29761: extern int vsprintf (char *__restrict __s, const char *__restrict __format, 29761: __gnuc_va_list __arg) noexcept (true); 29761: 29761: 29761: 29761: extern int snprintf (char *__restrict __s, size_t __maxlen, 29761: const char *__restrict __format, ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 29761: 29761: extern int vsnprintf (char *__restrict __s, size_t __maxlen, 29761: const char *__restrict __format, __gnuc_va_list __arg) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 29761: 29761: 29761: 29761: 29761: 29761: extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, 29761: __gnuc_va_list __arg) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) __attribute__ ((__warn_unused_result__)); 29761: extern int __asprintf (char **__restrict __ptr, 29761: const char *__restrict __fmt, ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 29761: extern int asprintf (char **__restrict __ptr, 29761: const char *__restrict __fmt, ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int vdprintf (int __fd, const char *__restrict __fmt, 29761: __gnuc_va_list __arg) 29761: __attribute__ ((__format__ (__printf__, 2, 0))); 29761: extern int dprintf (int __fd, const char *__restrict __fmt, ...) 29761: __attribute__ ((__format__ (__printf__, 2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fscanf (FILE *__restrict __stream, 29761: const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int scanf (const char *__restrict __format, ...) __attribute__ ((__warn_unused_result__)); 29761: 29761: extern int sscanf (const char *__restrict __s, 29761: const char *__restrict __format, ...) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29761: # 438 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: 29761: 29761: extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc23_fscanf") 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc23_scanf") 29761: __attribute__ ((__warn_unused_result__)); 29761: extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc23_sscanf") 29761: 29761: ; 29761: # 490 "/usr/include/stdio.h" 3 4 29761: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, 29761: __gnuc_va_list __arg) 29761: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) 29761: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern int vsscanf (const char *__restrict __s, 29761: const char *__restrict __format, __gnuc_va_list __arg) 29761: noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vfscanf") 29761: 29761: 29761: 29761: __attribute__ ((__format__ (__scanf__, 2, 0))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc23_vscanf") 29761: 29761: __attribute__ ((__format__ (__scanf__, 1, 0))) __attribute__ ((__warn_unused_result__)); 29761: extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc23_vsscanf") 29761: 29761: 29761: 29761: __attribute__ ((__format__ (__scanf__, 2, 0))); 29761: # 575 "/usr/include/stdio.h" 3 4 29761: extern int fgetc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: extern int getc (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int getchar (void); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int getc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: extern int getchar_unlocked (void); 29761: # 600 "/usr/include/stdio.h" 3 4 29761: extern int fgetc_unlocked (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: # 611 "/usr/include/stdio.h" 3 4 29761: extern int fputc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: extern int putc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int putchar (int __c); 29761: # 627 "/usr/include/stdio.h" 3 4 29761: extern int fputc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int putc_unlocked (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: extern int putchar_unlocked (int __c); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int getw (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int putw (int __w, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 29761: # 677 "/usr/include/stdio.h" 3 4 29761: extern char *fgets_unlocked (char *__restrict __s, int __n, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))) __attribute__ ((__nonnull__ (3))); 29761: # 689 "/usr/include/stdio.h" 3 4 29761: extern __ssize_t __getdelim (char **__restrict __lineptr, 29761: size_t *__restrict __n, int __delimiter, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 29761: extern __ssize_t getdelim (char **__restrict __lineptr, 29761: size_t *__restrict __n, int __delimiter, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))); 29761: 29761: 29761: extern __ssize_t getline (char **__restrict __lineptr, 29761: size_t *__restrict __n, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fputs (const char *__restrict __s, FILE *__restrict __stream) 29761: __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int puts (const char *__s); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int ungetc (int __c, FILE *__stream) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern size_t fread (void *__restrict __ptr, size_t __size, 29761: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__nonnull__ (4))); 29761: 29761: 29761: 29761: 29761: extern size_t fwrite (const void *__restrict __ptr, size_t __size, 29761: size_t __n, FILE *__restrict __s) __attribute__ ((__nonnull__ (4))); 29761: # 745 "/usr/include/stdio.h" 3 4 29761: extern int fputs_unlocked (const char *__restrict __s, 29761: FILE *__restrict __stream) __attribute__ ((__nonnull__ (2))); 29761: # 756 "/usr/include/stdio.h" 3 4 29761: extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, 29761: size_t __n, FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__nonnull__ (4))); 29761: extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, 29761: size_t __n, FILE *__restrict __stream) 29761: __attribute__ ((__nonnull__ (4))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fseek (FILE *__stream, long int __off, int __whence) 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern long int ftell (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern void rewind (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: # 802 "/usr/include/stdio.h" 3 4 29761: extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64") 29761: __attribute__ ((__nonnull__ (1))); 29761: # 828 "/usr/include/stdio.h" 3 4 29761: extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: extern int fsetpos (FILE *__stream, const fpos_t *__pos) __asm__ ("" "fsetpos64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence) 29761: __attribute__ ((__nonnull__ (1))); 29761: extern __off64_t ftello64 (FILE *__stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos) 29761: __attribute__ ((__nonnull__ (1))); 29761: extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern void clearerr (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: extern int feof (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: extern int ferror (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern void clearerr_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: extern int feof_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: extern int ferror_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void perror (const char *__s) __attribute__ ((__cold__)); 29761: 29761: 29761: 29761: 29761: extern int fileno (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int fileno_unlocked (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: # 887 "/usr/include/stdio.h" 3 4 29761: extern int pclose (FILE *__stream) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern FILE *popen (const char *__command, const char *__modes) 29761: __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *ctermid (char *__s) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1))); 29761: 29761: 29761: 29761: 29761: 29761: extern char *cuserid (char *__s) 29761: __attribute__ ((__access__ (__write_only__, 1))); 29761: 29761: 29761: 29761: 29761: struct obstack; 29761: 29761: 29761: extern int obstack_printf (struct obstack *__restrict __obstack, 29761: const char *__restrict __format, ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); 29761: extern int obstack_vprintf (struct obstack *__restrict __obstack, 29761: const char *__restrict __format, 29761: __gnuc_va_list __args) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void flockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int ftrylockfile (FILE *__stream) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern void funlockfile (FILE *__stream) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: # 949 "/usr/include/stdio.h" 3 4 29761: extern int __uflow (FILE *); 29761: extern int __overflow (FILE *, int); 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 29761: extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, 29761: const char *__restrict __format, ...) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, 29761: const char *__restrict __format, 29761: __gnuc_va_list __ap) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: 29761: 29761: 29761: extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, 29761: size_t __slen, const char *__restrict __format, 29761: ...) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, 29761: size_t __slen, const char *__restrict __format, 29761: __gnuc_va_list __ap) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int __fprintf_chk (FILE *__restrict __stream, int __flag, 29761: const char *__restrict __format, ...) 29761: __attribute__ ((__nonnull__ (1))); 29761: extern int __printf_chk (int __flag, const char *__restrict __format, ...); 29761: extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, 29761: const char *__restrict __format, 29761: __gnuc_va_list __ap) __attribute__ ((__nonnull__ (1))); 29761: extern int __vprintf_chk (int __flag, const char *__restrict __format, 29761: __gnuc_va_list __ap); 29761: 29761: 29761: extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, 29761: ...) __attribute__ ((__format__ (__printf__, 3, 4))); 29761: extern int __vdprintf_chk (int __fd, int __flag, 29761: const char *__restrict __fmt, __gnuc_va_list __arg) 29761: __attribute__ ((__format__ (__printf__, 3, 0))); 29761: 29761: 29761: 29761: 29761: extern int __asprintf_chk (char **__restrict __ptr, int __flag, 29761: const char *__restrict __fmt, ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))) __attribute__ ((__warn_unused_result__)); 29761: extern int __vasprintf_chk (char **__restrict __ptr, int __flag, 29761: const char *__restrict __fmt, __gnuc_va_list __arg) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))) __attribute__ ((__warn_unused_result__)); 29761: extern int __obstack_printf_chk (struct obstack *__restrict __obstack, 29761: int __flag, const char *__restrict __format, 29761: ...) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); 29761: extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, 29761: int __flag, 29761: const char *__restrict __format, 29761: __gnuc_va_list __args) 29761: noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); 29761: # 96 "/usr/include/arm-linux-gnueabihf/bits/stdio2-decl.h" 3 4 29761: extern char *__fgets_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern char *__fgets_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets called with bigger size than length " "of destination buffer"))) 29761: ; 29761: 29761: extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, 29761: FILE *__restrict __stream) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 29761: 29761: extern size_t __fread_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: extern size_t __fread_chk_warn (void *__restrict __ptr, size_t __ptrlen, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread called with bigger size * nmemb than length " "of destination buffer"))) 29761: ; 29761: 29761: extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, 29761: size_t __size, size_t __n, 29761: FILE *__restrict __stream) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 29761: 29761: 29761: extern char *__fgets_unlocked_alias (char *__restrict __s, int __n, FILE *__restrict __stream) __asm__ ("" "fgets_unlocked") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern char *__fgets_unlocked_chk_warn (char *__restrict __s, size_t __size, int __n, FILE *__restrict __stream) __asm__ ("" "__fgets_unlocked_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fgets_unlocked called with bigger size than length " "of destination buffer"))) 29761: ; 29761: 29761: 29761: extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, 29761: int __n, FILE *__restrict __stream) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__nonnull__ (4))); 29761: 29761: 29761: 29761: 29761: extern size_t __fread_unlocked_alias (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) __asm__ ("" "fread_unlocked") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)); 29761: 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") 29761: 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("fread_unlocked called with bigger size * nmemb than " "length of destination buffer"))) 29761: ; 29761: 29761: extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, 29761: size_t __size, size_t __n, 29761: FILE *__restrict __stream) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (5))); 29761: # 955 "/usr/include/stdio.h" 2 3 4 29761: # 966 "/usr/include/stdio.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 1 3 4 29761: # 46 "/usr/include/arm-linux-gnueabihf/bits/stdio.h" 3 4 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: getchar (void) 29761: { 29761: return getc (stdin); 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: fgetc_unlocked (FILE *__fp) 29761: { 29761: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: getc_unlocked (FILE *__fp) 29761: { 29761: return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: getchar_unlocked (void) 29761: { 29761: return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: putchar (int __c) 29761: { 29761: return putc (__c, stdout); 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: fputc_unlocked (int __c, FILE *__stream) 29761: { 29761: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: putc_unlocked (int __c, FILE *__stream) 29761: { 29761: return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: putchar_unlocked (int __c) 29761: { 29761: return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) __ssize_t 29761: getline (char **__lineptr, size_t *__n, FILE *__stream) 29761: { 29761: return __getdelim (__lineptr, __n, '\n', __stream); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: __attribute__ ((__leaf__)) feof_unlocked (FILE *__stream) noexcept (true) 29761: { 29761: return (((__stream)->_flags & 0x0010) != 0); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__gnu_inline__)) int 29761: __attribute__ ((__leaf__)) ferror_unlocked (FILE *__stream) noexcept (true) 29761: { 29761: return (((__stream)->_flags & 0x0020) != 0); 29761: } 29761: # 967 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) sprintf (char *__restrict __s, const char *__restrict __fmt, ...) noexcept (true) 29761: { 29761: return __builtin___sprintf_chk (__s, 2 - 1, 29761: __builtin_object_size (__s, 2 > 1), __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: # 54 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) vsprintf (char * __restrict __s, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29761: 29761: { 29761: return __builtin___vsprintf_chk (__s, 2 - 1, 29761: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) snprintf (char *__restrict __s, size_t __n, const char *__restrict __fmt, ...) noexcept (true) 29761: 29761: { 29761: return __builtin___snprintf_chk (__s, __n, 2 - 1, 29761: __builtin_object_size (__s, 2 > 1), __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: # 92 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) vsnprintf (char * __restrict __s, size_t __n, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return __builtin___vsnprintf_chk (__s, __n, 2 - 1, 29761: __builtin_object_size (__s, 2 > 1), __fmt, __ap); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 29761: fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) 29761: { 29761: return __fprintf_chk (__stream, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: printf (const char *__restrict __fmt, ...) 29761: { 29761: return __printf_chk (2 - 1, __fmt, __builtin_va_arg_pack ()); 29761: } 29761: # 151 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: vprintf (const char * __restrict __fmt, 29761: __gnuc_va_list __ap) 29761: { 29761: 29761: return __vfprintf_chk (stdout, 2 - 1, __fmt, __ap); 29761: 29761: 29761: 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) int 29761: vfprintf (FILE *__restrict __stream, 29761: const char *__restrict __fmt, __gnuc_va_list __ap) 29761: { 29761: return __vfprintf_chk (__stream, 2 - 1, __fmt, __ap); 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: dprintf (int __fd, const char *__restrict __fmt, ...) 29761: { 29761: return __dprintf_chk (__fd, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: # 194 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __ap) 29761: { 29761: return __vdprintf_chk (__fd, 2 - 1, __fmt, __ap); 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 29761: { 29761: return __asprintf_chk (__ptr, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) 29761: 29761: { 29761: return __asprintf_chk (__ptr, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __fmt, ...) noexcept (true) 29761: 29761: { 29761: return __obstack_printf_chk (__obstack, 2 - 1, __fmt, 29761: __builtin_va_arg_pack ()); 29761: } 29761: # 271 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) vasprintf (char **__restrict __ptr, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29761: 29761: { 29761: return __vasprintf_chk (__ptr, 2 - 1, __fmt, __ap); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __fmt, __gnuc_va_list __ap) noexcept (true) 29761: 29761: { 29761: return __obstack_vprintf_chk (__obstack, 2 - 1, __fmt, 29761: __ap); 29761: } 29761: # 303 "/usr/include/arm-linux-gnueabihf/bits/stdio2.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 29761: __attribute__ ((__nonnull__ (3))) char * 29761: fgets (char * __restrict __s, int __n, 29761: FILE *__restrict __stream) 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))))) 29761: return __fgets_alias (__s, __n, __stream); 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (char)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (char))))) 29761: return __fgets_chk_warn (__s, __sz, __n, __stream); 29761: 29761: return __fgets_chk (__s, __sz, __n, __stream); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 29761: fread (void * __restrict __ptr, 29761: size_t __size, size_t __n, FILE *__restrict __stream) 29761: 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__ptr, 0); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((__size)))) && (((unsigned int) (__n)) <= ((__sz)) / ((__size)))))) 29761: return __fread_alias (__ptr, __size, __n, __stream); 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (__size))) && !(((unsigned int) (__n)) <= (__sz) / (__size)))) 29761: return __fread_chk_warn (__ptr, __sz, __size, __n, __stream); 29761: 29761: return __fread_chk (__ptr, __sz, __size, __n, __stream); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))) 29761: __attribute__ ((__nonnull__ (3))) char * 29761: fgets_unlocked (char * __restrict __s, 29761: int __n, FILE *__restrict __stream) 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__s, 2 > 1); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))) && (((unsigned int) (__n)) <= ((__sz)) / ((sizeof (char))))))) 29761: return __fgets_unlocked_alias (__s, __n, __stream); 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (sizeof (char)))) && !(((unsigned int) (__n)) <= (__sz) / (sizeof (char))))) 29761: return __fgets_unlocked_chk_warn (__s, __sz, __n, __stream); 29761: 29761: return __fgets_unlocked_chk (__s, __sz, __n, __stream); 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) __attribute__ ((__nonnull__ (4))) size_t 29761: fread_unlocked (void * __restrict __ptr, 29761: size_t __size, size_t __n, FILE *__restrict __stream) 29761: 29761: 29761: 29761: 29761: { 29761: size_t __sz = __builtin_object_size (__ptr, 0); 29761: if (((__builtin_constant_p (__sz) && (__sz) == (unsigned int) -1) || (((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= ((__sz)) / ((__size)))) && (((unsigned int) (__n)) <= ((__sz)) / ((__size)))))) 29761: { 29761: 29761: if (__builtin_constant_p (__size) 29761: && __builtin_constant_p (__n) 29761: && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) 29761: && __size * __n <= 8) 29761: { 29761: size_t __cnt = __size * __n; 29761: char *__cptr = (char *) __ptr; 29761: if (__cnt == 0) 29761: return 0; 29761: 29761: for (; __cnt > 0; --__cnt) 29761: { 29761: int __c = getc_unlocked (__stream); 29761: if (__c == (-1)) 29761: break; 29761: *__cptr++ = __c; 29761: } 29761: return (__cptr - (char *) __ptr) / __size; 29761: } 29761: 29761: return __fread_unlocked_alias (__ptr, __size, __n, __stream); 29761: } 29761: 29761: if ((((__typeof (__n)) 0 < (__typeof (__n)) -1 || (__builtin_constant_p (__n) && (__n) > 0)) && __builtin_constant_p ((((unsigned int) (__n)) <= (__sz) / (__size))) && !(((unsigned int) (__n)) <= (__sz) / (__size)))) 29761: return __fread_unlocked_chk_warn (__ptr, __sz, __size, __n, __stream); 29761: 29761: return __fread_unlocked_chk (__ptr, __sz, __size, __n, __stream); 29761: 29761: } 29761: # 971 "/usr/include/stdio.h" 2 3 4 29761: 29761: 29761: } 29761: # 43 "/usr/include/c++/14/cstdio" 2 3 29761: # 96 "/usr/include/c++/14/cstdio" 3 29761: namespace std 29761: { 29761: using ::FILE; 29761: using ::fpos_t; 29761: 29761: using ::clearerr; 29761: using ::fclose; 29761: using ::feof; 29761: using ::ferror; 29761: using ::fflush; 29761: using ::fgetc; 29761: using ::fgetpos; 29761: using ::fgets; 29761: using ::fopen; 29761: using ::fprintf; 29761: using ::fputc; 29761: using ::fputs; 29761: using ::fread; 29761: using ::freopen; 29761: using ::fscanf; 29761: using ::fseek; 29761: using ::fsetpos; 29761: using ::ftell; 29761: using ::fwrite; 29761: using ::getc; 29761: using ::getchar; 29761: 29761: 29761: 29761: 29761: using ::perror; 29761: using ::printf; 29761: using ::putc; 29761: using ::putchar; 29761: using ::puts; 29761: using ::remove; 29761: using ::rename; 29761: using ::rewind; 29761: using ::scanf; 29761: using ::setbuf; 29761: using ::setvbuf; 29761: using ::sprintf; 29761: using ::sscanf; 29761: using ::tmpfile; 29761: 29761: using ::tmpnam; 29761: 29761: using ::ungetc; 29761: using ::vfprintf; 29761: using ::vprintf; 29761: using ::vsprintf; 29761: } 29761: # 157 "/usr/include/c++/14/cstdio" 3 29761: namespace __gnu_cxx 29761: { 29761: # 175 "/usr/include/c++/14/cstdio" 3 29761: using ::snprintf; 29761: using ::vfscanf; 29761: using ::vscanf; 29761: using ::vsnprintf; 29761: using ::vsscanf; 29761: 29761: } 29761: 29761: namespace std 29761: { 29761: using ::__gnu_cxx::snprintf; 29761: using ::__gnu_cxx::vfscanf; 29761: using ::__gnu_cxx::vscanf; 29761: using ::__gnu_cxx::vsnprintf; 29761: using ::__gnu_cxx::vsscanf; 29761: } 29761: # 46 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29761: # 1 "/usr/include/c++/14/cerrno" 1 3 29761: # 39 "/usr/include/c++/14/cerrno" 3 29761: 29761: # 40 "/usr/include/c++/14/cerrno" 3 29761: 29761: 29761: # 1 "/usr/include/errno.h" 1 3 4 29761: # 28 "/usr/include/errno.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 3 4 29761: # 1 "/usr/include/linux/errno.h" 1 3 4 29761: # 1 "/usr/lib/linux/uapi/arm/asm/errno.h" 1 3 4 29761: # 1 "/usr/include/asm-generic/errno.h" 1 3 4 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 29761: # 6 "/usr/include/asm-generic/errno.h" 2 3 4 29761: # 2 "/usr/lib/linux/uapi/arm/asm/errno.h" 2 3 4 29761: # 2 "/usr/include/linux/errno.h" 2 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/errno.h" 2 3 4 29761: # 29 "/usr/include/errno.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: 29761: 29761: extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *program_invocation_name; 29761: extern char *program_invocation_short_name; 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 1 3 4 29761: # 22 "/usr/include/arm-linux-gnueabihf/bits/types/error_t.h" 3 4 29761: typedef int error_t; 29761: # 49 "/usr/include/errno.h" 2 3 4 29761: 29761: 29761: 29761: } 29761: # 43 "/usr/include/c++/14/cerrno" 2 3 29761: # 47 "/usr/include/c++/14/ext/string_conversions.h" 2 3 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: _Ret 29761: __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), 29761: const char* __name, const _CharT* __str, std::size_t* __idx, 29761: _Base... __base) 29761: { 29761: _Ret __ret; 29761: 29761: _CharT* __endptr; 29761: 29761: struct _Save_errno { 29761: _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } 29761: ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } 29761: int _M_errno; 29761: } const __save_errno; 29761: 29761: struct _Range_chk { 29761: static bool 29761: _S_chk(_TRet, std::false_type) { return false; } 29761: 29761: static bool 29761: _S_chk(_TRet __val, std::true_type) 29761: { 29761: return __val < _TRet(__numeric_traits::__min) 29761: || __val > _TRet(__numeric_traits::__max); 29761: } 29761: }; 29761: 29761: const _TRet __tmp = __convf(__str, &__endptr, __base...); 29761: 29761: if (__endptr == __str) 29761: std::__throw_invalid_argument(__name); 29761: else if ((*__errno_location ()) == 34 29761: || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) 29761: std::__throw_out_of_range(__name); 29761: else 29761: __ret = __tmp; 29761: 29761: if (__idx) 29761: *__idx = __endptr - __str; 29761: 29761: return __ret; 29761: } 29761: 29761: 29761: template 29761: _String 29761: __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, 29761: __builtin_va_list), std::size_t __n, 29761: const _CharT* __fmt, ...) 29761: { 29761: 29761: 29761: _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __n)); 29761: 29761: __builtin_va_list __args; 29761: __builtin_va_start(__args, __fmt); 29761: 29761: const int __len = __convf(__s, __n, __fmt, __args); 29761: 29761: __builtin_va_end(__args); 29761: 29761: return _String(__s, __s + __len); 29761: } 29761: 29761: 29761: } 29761: # 4155 "/usr/include/c++/14/bits/basic_string.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/charconv.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/charconv.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/charconv.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: template 29761: constexpr bool __integer_to_chars_is_unsigned 29761: = ! __gnu_cxx::__int_traits<_Tp>::__is_signed; 29761: 29761: 29761: 29761: template 29761: constexpr unsigned 29761: __to_chars_len(_Tp __value, int __base = 10) noexcept 29761: { 29761: 29761: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 29761: 29761: 29761: unsigned __n = 1; 29761: const unsigned __b2 = __base * __base; 29761: const unsigned __b3 = __b2 * __base; 29761: const unsigned long __b4 = __b3 * __base; 29761: for (;;) 29761: { 29761: if (__value < (unsigned)__base) return __n; 29761: if (__value < __b2) return __n + 1; 29761: if (__value < __b3) return __n + 2; 29761: if (__value < __b4) return __n + 3; 29761: __value /= __b4; 29761: __n += 4; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept 29761: { 29761: 29761: static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); 29761: 29761: 29761: constexpr char __digits[201] = 29761: "0001020304050607080910111213141516171819" 29761: "2021222324252627282930313233343536373839" 29761: "4041424344454647484950515253545556575859" 29761: "6061626364656667686970717273747576777879" 29761: "8081828384858687888990919293949596979899"; 29761: unsigned __pos = __len - 1; 29761: while (__val >= 100) 29761: { 29761: auto const __num = (__val % 100) * 2; 29761: __val /= 100; 29761: __first[__pos] = __digits[__num + 1]; 29761: __first[__pos - 1] = __digits[__num]; 29761: __pos -= 2; 29761: } 29761: if (__val >= 10) 29761: { 29761: auto const __num = __val * 2; 29761: __first[1] = __digits[__num + 1]; 29761: __first[0] = __digits[__num]; 29761: } 29761: else 29761: __first[0] = '0' + __val; 29761: } 29761: 29761: } 29761: 29761: } 29761: # 4156 "/usr/include/c++/14/bits/basic_string.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace __cxx11 { 29761: 29761: 29761: inline int 29761: stoi(const string& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::strtol, "stoi", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline long 29761: stol(const string& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline unsigned long 29761: stoul(const string& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), 29761: __idx, __base); } 29761: 29761: 29761: inline long long 29761: stoll(const string& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline unsigned long long 29761: stoull(const string& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), 29761: __idx, __base); } 29761: # 4198 "/usr/include/c++/14/bits/basic_string.h" 3 29761: inline double 29761: stod(const string& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } 29761: 29761: 29761: 29761: inline float 29761: stof(const string& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } 29761: # 4226 "/usr/include/c++/14/bits/basic_string.h" 3 29761: inline long double 29761: stold(const string& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } 29761: # 4238 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(int __val) 29761: 29761: noexcept 29761: 29761: { 29761: const bool __neg = __val < 0; 29761: const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; 29761: const auto __len = __detail::__to_chars_len(__uval); 29761: string __str; 29761: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29761: __p[0] = '-'; 29761: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(unsigned __val) 29761: 29761: noexcept 29761: 29761: { 29761: const auto __len = __detail::__to_chars_len(__val); 29761: string __str; 29761: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29761: __detail::__to_chars_10_impl(__p, __n, __val); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(long __val) 29761: 29761: noexcept 29761: 29761: { 29761: const bool __neg = __val < 0; 29761: const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; 29761: const auto __len = __detail::__to_chars_len(__uval); 29761: string __str; 29761: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29761: __p[0] = '-'; 29761: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(unsigned long __val) 29761: 29761: noexcept 29761: 29761: { 29761: const auto __len = __detail::__to_chars_len(__val); 29761: string __str; 29761: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29761: __detail::__to_chars_10_impl(__p, __n, __val); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(long long __val) 29761: { 29761: const bool __neg = __val < 0; 29761: const unsigned long long __uval 29761: = __neg ? (unsigned long long)~__val + 1ull : __val; 29761: const auto __len = __detail::__to_chars_len(__uval); 29761: string __str; 29761: __str.__resize_and_overwrite(__neg + __len, [=](char* __p, size_t __n) { 29761: __p[0] = '-'; 29761: __detail::__to_chars_10_impl(__p + (int)__neg, __len, __uval); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(unsigned long long __val) 29761: { 29761: const auto __len = __detail::__to_chars_len(__val); 29761: string __str; 29761: __str.__resize_and_overwrite(__len, [__val](char* __p, size_t __n) { 29761: __detail::__to_chars_10_impl(__p, __n, __val); 29761: return __n; 29761: }); 29761: return __str; 29761: } 29761: # 4399 "/usr/include/c++/14/bits/basic_string.h" 3 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(float __val) 29761: { 29761: const int __n = 29761: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29761: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29761: "%f", __val); 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(double __val) 29761: { 29761: const int __n = 29761: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29761: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29761: "%f", __val); 29761: } 29761: 29761: [[__nodiscard__]] 29761: inline string 29761: to_string(long double __val) 29761: { 29761: const int __n = 29761: __gnu_cxx::__numeric_traits::__max_exponent10 + 20; 29761: return __gnu_cxx::__to_xstring(&std::vsnprintf, __n, 29761: "%Lf", __val); 29761: } 29761: 29761: 29761: 29761: inline int 29761: stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::wcstol, "stoi", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline long 29761: stol(const wstring& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline unsigned long 29761: stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline long long 29761: stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), 29761: __idx, __base); } 29761: 29761: inline unsigned long long 29761: stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) 29761: { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), 29761: __idx, __base); } 29761: 29761: 29761: inline float 29761: stof(const wstring& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } 29761: 29761: inline double 29761: stod(const wstring& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } 29761: 29761: inline long double 29761: stold(const wstring& __str, size_t* __idx = 0) 29761: { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: 29761: inline void 29761: __to_wstring_numeric(const char* __s, int __len, wchar_t* __wout) 29761: { 29761: 29761: 29761: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 29761: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 29761: { 29761: for (int __i = 0; __i < __len; ++__i) 29761: __wout[__i] = (wchar_t) __s[__i]; 29761: } 29761: else 29761: { 29761: wchar_t __wc[256]; 29761: for (int __i = '0'; __i <= '9'; ++__i) 29761: __wc[__i] = L'0' + __i; 29761: __wc['.'] = L'.'; 29761: __wc['+'] = L'+'; 29761: __wc['-'] = L'-'; 29761: __wc['a'] = L'a'; 29761: __wc['b'] = L'b'; 29761: __wc['c'] = L'c'; 29761: __wc['d'] = L'd'; 29761: __wc['e'] = L'e'; 29761: __wc['f'] = L'f'; 29761: __wc['n'] = L'n'; 29761: __wc['p'] = L'p'; 29761: __wc['x'] = L'x'; 29761: __wc['A'] = L'A'; 29761: __wc['B'] = L'B'; 29761: __wc['C'] = L'C'; 29761: __wc['D'] = L'D'; 29761: __wc['E'] = L'E'; 29761: __wc['F'] = L'F'; 29761: __wc['N'] = L'N'; 29761: __wc['P'] = L'P'; 29761: __wc['X'] = L'X'; 29761: 29761: for (int __i = 0; __i < __len; ++__i) 29761: __wout[__i] = __wc[(int)__s[__i]]; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: inline wstring 29761: 29761: __to_wstring_numeric(string_view __s) 29761: 29761: 29761: 29761: { 29761: if constexpr (wchar_t('0') == L'0' && wchar_t('-') == L'-' 29761: && wchar_t('.') == L'.' && wchar_t('e') == L'e') 29761: return wstring(__s.data(), __s.data() + __s.size()); 29761: else 29761: { 29761: wstring __ws; 29761: auto __f = __s.data(); 29761: __ws.__resize_and_overwrite(__s.size(), 29761: [__f] (wchar_t* __to, int __n) { 29761: std::__to_wstring_numeric(__f, __n, __to); 29761: return __n; 29761: }); 29761: return __ws; 29761: } 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(int __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(unsigned __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(long __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(unsigned long __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(long long __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(unsigned long long __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(float __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(double __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: [[__nodiscard__]] 29761: inline wstring 29761: to_wstring(long double __val) 29761: { return std::__to_wstring_numeric(std::to_string(__val)); } 29761: 29761: 29761: 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: template, _Alloc>> 29761: struct __str_hash_base 29761: : public __hash_base 29761: { 29761: [[__nodiscard__]] 29761: size_t 29761: operator()(const _StrT& __s) const noexcept 29761: { return _Hash_impl::hash(__s.data(), __s.length() * sizeof(_CharT)); } 29761: }; 29761: 29761: 29761: 29761: template 29761: struct hash, _Alloc>> 29761: : public __str_hash_base 29761: { }; 29761: 29761: 29761: template 29761: struct hash, _Alloc>> 29761: : public __str_hash_base 29761: { }; 29761: 29761: template 29761: struct __is_fast_hash, 29761: _Alloc>>> 29761: : std::false_type 29761: { }; 29761: # 4649 "/usr/include/c++/14/bits/basic_string.h" 3 29761: template 29761: struct hash, _Alloc>> 29761: : public __str_hash_base 29761: { }; 29761: 29761: 29761: template 29761: struct hash, _Alloc>> 29761: : public __str_hash_base 29761: { }; 29761: 29761: 29761: 29761: template<> struct __is_fast_hash> : std::false_type { }; 29761: template<> struct __is_fast_hash> : std::false_type { }; 29761: template<> struct __is_fast_hash> : std::false_type { }; 29761: template<> struct __is_fast_hash> : std::false_type { }; 29761: # 4678 "/usr/include/c++/14/bits/basic_string.h" 3 29761: inline namespace literals 29761: { 29761: inline namespace string_literals 29761: { 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: inline basic_string 29761: operator""s(const char* __str, size_t __len) 29761: { return basic_string{__str, __len}; } 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: inline basic_string 29761: operator""s(const wchar_t* __str, size_t __len) 29761: { return basic_string{__str, __len}; } 29761: # 4708 "/usr/include/c++/14/bits/basic_string.h" 3 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: inline basic_string 29761: operator""s(const char16_t* __str, size_t __len) 29761: { return basic_string{__str, __len}; } 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: inline basic_string 29761: operator""s(const char32_t* __str, size_t __len) 29761: { return basic_string{__str, __len}; } 29761: 29761: 29761: #pragma GCC diagnostic pop 29761: } 29761: } 29761: 29761: 29761: 29761: namespace __detail::__variant 29761: { 29761: template struct _Never_valueless_alt; 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt> 29761: : __and_< 29761: is_nothrow_move_constructible>, 29761: is_nothrow_move_assignable> 29761: >::type 29761: { }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 55 "/usr/include/c++/14/string" 2 3 29761: # 1 "/usr/include/c++/14/bits/basic_string.tcc" 1 3 29761: # 42 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: 29761: # 43 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: const typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>::npos; 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: swap(basic_string& __s) noexcept 29761: { 29761: if (this == std::__addressof(__s)) 29761: return; 29761: 29761: _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); 29761: 29761: if (_M_is_local()) 29761: if (__s._M_is_local()) 29761: { 29761: if (length() && __s.length()) 29761: { 29761: _CharT __tmp_data[_S_local_capacity + 1]; 29761: traits_type::copy(__tmp_data, __s._M_local_buf, 29761: __s.length() + 1); 29761: traits_type::copy(__s._M_local_buf, _M_local_buf, 29761: length() + 1); 29761: traits_type::copy(_M_local_buf, __tmp_data, 29761: __s.length() + 1); 29761: } 29761: else if (__s.length()) 29761: { 29761: _M_init_local_buf(); 29761: traits_type::copy(_M_local_buf, __s._M_local_buf, 29761: __s.length() + 1); 29761: _M_length(__s.length()); 29761: __s._M_set_length(0); 29761: return; 29761: } 29761: else if (length()) 29761: { 29761: __s._M_init_local_buf(); 29761: traits_type::copy(__s._M_local_buf, _M_local_buf, 29761: length() + 1); 29761: __s._M_length(length()); 29761: _M_set_length(0); 29761: return; 29761: } 29761: } 29761: else 29761: { 29761: const size_type __tmp_capacity = __s._M_allocated_capacity; 29761: __s._M_init_local_buf(); 29761: traits_type::copy(__s._M_local_buf, _M_local_buf, 29761: length() + 1); 29761: _M_data(__s._M_data()); 29761: __s._M_data(__s._M_local_buf); 29761: _M_capacity(__tmp_capacity); 29761: } 29761: else 29761: { 29761: const size_type __tmp_capacity = _M_allocated_capacity; 29761: if (__s._M_is_local()) 29761: { 29761: _M_init_local_buf(); 29761: traits_type::copy(_M_local_buf, __s._M_local_buf, 29761: __s.length() + 1); 29761: __s._M_data(_M_data()); 29761: _M_data(_M_local_buf); 29761: } 29761: else 29761: { 29761: pointer __tmp_ptr = _M_data(); 29761: _M_data(__s._M_data()); 29761: __s._M_data(__tmp_ptr); 29761: _M_capacity(__s._M_allocated_capacity); 29761: } 29761: __s._M_capacity(__tmp_capacity); 29761: } 29761: 29761: const size_type __tmp_length = length(); 29761: _M_length(__s.length()); 29761: __s._M_length(__tmp_length); 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::pointer 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_create(size_type& __capacity, size_type __old_capacity) 29761: { 29761: 29761: 29761: if (__capacity > max_size()) 29761: std::__throw_length_error(("basic_string::_M_create")); 29761: 29761: 29761: 29761: 29761: if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) 29761: { 29761: __capacity = 2 * __old_capacity; 29761: 29761: if (__capacity > max_size()) 29761: __capacity = max_size(); 29761: } 29761: 29761: 29761: 29761: return _S_allocate(_M_get_allocator(), __capacity + 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_construct(_InIterator __beg, _InIterator __end, 29761: std::input_iterator_tag) 29761: { 29761: size_type __len = 0; 29761: size_type __capacity = size_type(_S_local_capacity); 29761: 29761: _M_init_local_buf(); 29761: 29761: while (__beg != __end && __len < __capacity) 29761: { 29761: _M_local_buf[__len++] = *__beg; 29761: ++__beg; 29761: } 29761: 29761: struct _Guard 29761: { 29761: 29761: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 29761: 29761: 29761: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 29761: 29761: basic_string* _M_guarded; 29761: } __guard(this); 29761: 29761: while (__beg != __end) 29761: { 29761: if (__len == __capacity) 29761: { 29761: 29761: __capacity = __len + 1; 29761: pointer __another = _M_create(__capacity, __len); 29761: this->_S_copy(__another, _M_data(), __len); 29761: _M_dispose(); 29761: _M_data(__another); 29761: _M_capacity(__capacity); 29761: } 29761: traits_type::assign(_M_data()[__len++], *__beg); 29761: ++__beg; 29761: } 29761: 29761: __guard._M_guarded = 0; 29761: 29761: _M_set_length(__len); 29761: } 29761: 29761: template 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_construct(_InIterator __beg, _InIterator __end, 29761: std::forward_iterator_tag) 29761: { 29761: size_type __dnew = static_cast(std::distance(__beg, __end)); 29761: 29761: if (__dnew > size_type(_S_local_capacity)) 29761: { 29761: _M_data(_M_create(__dnew, size_type(0))); 29761: _M_capacity(__dnew); 29761: } 29761: else 29761: _M_init_local_buf(); 29761: 29761: 29761: struct _Guard 29761: { 29761: 29761: explicit _Guard(basic_string* __s) : _M_guarded(__s) { } 29761: 29761: 29761: ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } 29761: 29761: basic_string* _M_guarded; 29761: } __guard(this); 29761: 29761: this->_S_copy_chars(_M_data(), __beg, __end); 29761: 29761: __guard._M_guarded = 0; 29761: 29761: _M_set_length(__dnew); 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_construct(size_type __n, _CharT __c) 29761: { 29761: if (__n > size_type(_S_local_capacity)) 29761: { 29761: _M_data(_M_create(__n, size_type(0))); 29761: _M_capacity(__n); 29761: } 29761: else 29761: _M_init_local_buf(); 29761: 29761: if (__n) 29761: this->_S_assign(_M_data(), __n, __c); 29761: 29761: _M_set_length(__n); 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_assign(const basic_string& __str) 29761: { 29761: if (this != std::__addressof(__str)) 29761: { 29761: const size_type __rsize = __str.length(); 29761: const size_type __capacity = capacity(); 29761: 29761: if (__rsize > __capacity) 29761: { 29761: size_type __new_capacity = __rsize; 29761: pointer __tmp = _M_create(__new_capacity, __capacity); 29761: _M_dispose(); 29761: _M_data(__tmp); 29761: _M_capacity(__new_capacity); 29761: } 29761: 29761: if (__rsize) 29761: this->_S_copy(_M_data(), __str._M_data(), __rsize); 29761: 29761: _M_set_length(__rsize); 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: reserve(size_type __res) 29761: { 29761: const size_type __capacity = capacity(); 29761: 29761: 29761: 29761: 29761: if (__res <= __capacity) 29761: return; 29761: 29761: pointer __tmp = _M_create(__res, __capacity); 29761: this->_S_copy(__tmp, _M_data(), length() + 1); 29761: _M_dispose(); 29761: _M_data(__tmp); 29761: _M_capacity(__res); 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, 29761: size_type __len2) 29761: { 29761: const size_type __how_much = length() - __pos - __len1; 29761: 29761: size_type __new_capacity = length() + __len2 - __len1; 29761: pointer __r = _M_create(__new_capacity, capacity()); 29761: 29761: if (__pos) 29761: this->_S_copy(__r, _M_data(), __pos); 29761: if (__s && __len2) 29761: this->_S_copy(__r + __pos, __s, __len2); 29761: if (__how_much) 29761: this->_S_copy(__r + __pos + __len2, 29761: _M_data() + __pos + __len1, __how_much); 29761: 29761: _M_dispose(); 29761: _M_data(__r); 29761: _M_capacity(__new_capacity); 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_erase(size_type __pos, size_type __n) 29761: { 29761: const size_type __how_much = length() - __pos - __n; 29761: 29761: if (__how_much && __n) 29761: this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); 29761: 29761: _M_set_length(length() - __n); 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: reserve() 29761: { 29761: if (_M_is_local()) 29761: return; 29761: 29761: const size_type __length = length(); 29761: const size_type __capacity = _M_allocated_capacity; 29761: 29761: if (__length <= size_type(_S_local_capacity)) 29761: { 29761: _M_init_local_buf(); 29761: this->_S_copy(_M_local_buf, _M_data(), __length + 1); 29761: _M_destroy(__capacity); 29761: _M_data(_M_local_data()); 29761: } 29761: 29761: else if (__length < __capacity) 29761: try 29761: { 29761: pointer __tmp = _S_allocate(_M_get_allocator(), __length + 1); 29761: this->_S_copy(__tmp, _M_data(), __length + 1); 29761: _M_dispose(); 29761: _M_data(__tmp); 29761: _M_capacity(__length); 29761: } 29761: catch (const __cxxabiv1::__forced_unwind&) 29761: { throw; } 29761: catch (...) 29761: { } 29761: 29761: } 29761: 29761: template 29761: 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: resize(size_type __n, _CharT __c) 29761: { 29761: const size_type __size = this->size(); 29761: if (__size < __n) 29761: this->append(__n - __size, __c); 29761: else if (__n < __size) 29761: this->_M_set_length(__n); 29761: } 29761: 29761: template 29761: 29761: basic_string<_CharT, _Traits, _Alloc>& 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_append(const _CharT* __s, size_type __n) 29761: { 29761: const size_type __len = __n + this->size(); 29761: 29761: if (__len <= this->capacity()) 29761: { 29761: if (__n) 29761: this->_S_copy(this->_M_data() + this->size(), __s, __n); 29761: } 29761: else 29761: this->_M_mutate(this->size(), size_type(0), __s, __n); 29761: 29761: this->_M_set_length(__len); 29761: return *this; 29761: } 29761: 29761: template 29761: template 29761: 29761: basic_string<_CharT, _Traits, _Alloc>& 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, 29761: _InputIterator __k1, _InputIterator __k2, 29761: std::__false_type) 29761: { 29761: 29761: 29761: const basic_string __s(__k1, __k2, this->get_allocator()); 29761: const size_type __n1 = __i2 - __i1; 29761: return _M_replace(__i1 - begin(), __n1, __s._M_data(), 29761: __s.size()); 29761: } 29761: 29761: template 29761: 29761: basic_string<_CharT, _Traits, _Alloc>& 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, 29761: _CharT __c) 29761: { 29761: _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); 29761: 29761: const size_type __old_size = this->size(); 29761: const size_type __new_size = __old_size + __n2 - __n1; 29761: 29761: if (__new_size <= this->capacity()) 29761: { 29761: pointer __p = this->_M_data() + __pos1; 29761: 29761: const size_type __how_much = __old_size - __pos1 - __n1; 29761: if (__how_much && __n1 != __n2) 29761: this->_S_move(__p + __n2, __p + __n1, __how_much); 29761: } 29761: else 29761: this->_M_mutate(__pos1, __n1, 0, __n2); 29761: 29761: if (__n2) 29761: this->_S_assign(this->_M_data() + __pos1, __n2, __c); 29761: 29761: this->_M_set_length(__new_size); 29761: return *this; 29761: } 29761: 29761: template 29761: __attribute__((__noinline__, __noclone__, __cold__)) void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, 29761: const size_type __len2, const size_type __how_much) 29761: { 29761: 29761: if (__len2 && __len2 <= __len1) 29761: this->_S_move(__p, __s, __len2); 29761: if (__how_much && __len1 != __len2) 29761: this->_S_move(__p + __len2, __p + __len1, __how_much); 29761: if (__len2 > __len1) 29761: { 29761: if (__s + __len2 <= __p + __len1) 29761: this->_S_move(__p, __s, __len2); 29761: else if (__s >= __p + __len1) 29761: { 29761: 29761: 29761: const size_type __poff = (__s - __p) + (__len2 - __len1); 29761: this->_S_copy(__p, __p + __poff, __len2); 29761: } 29761: else 29761: { 29761: const size_type __nleft = (__p + __len1) - __s; 29761: this->_S_move(__p, __s, __nleft); 29761: this->_S_copy(__p + __nleft, __p + __len2, __len2 - __nleft); 29761: } 29761: } 29761: } 29761: 29761: template 29761: 29761: basic_string<_CharT, _Traits, _Alloc>& 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, 29761: const size_type __len2) 29761: { 29761: _M_check_length(__len1, __len2, "basic_string::_M_replace"); 29761: 29761: const size_type __old_size = this->size(); 29761: const size_type __new_size = __old_size + __len2 - __len1; 29761: 29761: if (__new_size <= this->capacity()) 29761: { 29761: pointer __p = this->_M_data() + __pos; 29761: 29761: const size_type __how_much = __old_size - __pos - __len1; 29761: # 537 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: if (__builtin_expect(_M_disjunct(__s), true)) 29761: { 29761: if (__how_much && __len1 != __len2) 29761: this->_S_move(__p + __len2, __p + __len1, __how_much); 29761: if (__len2) 29761: this->_S_copy(__p, __s, __len2); 29761: } 29761: else 29761: _M_replace_cold(__p, __len1, __s, __len2, __how_much); 29761: } 29761: else 29761: this->_M_mutate(__pos, __len1, __s, __len2); 29761: 29761: this->_M_set_length(__new_size); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: copy(_CharT* __s, size_type __n, size_type __pos) const 29761: { 29761: _M_check(__pos, "basic_string::copy"); 29761: __n = _M_limit(__pos, __n); 29761: ; 29761: if (__n) 29761: _S_copy(__s, _M_data() + __pos, __n); 29761: 29761: return __n; 29761: } 29761: # 580 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: template 29761: template 29761: void 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: 29761: 29761: 29761: __resize_and_overwrite(const size_type __n, _Operation __op) 29761: 29761: { 29761: reserve(__n); 29761: _CharT* const __p = _M_data(); 29761: 29761: 29761: 29761: 29761: struct _Terminator { 29761: ~_Terminator() { _M_this->_M_set_length(_M_r); } 29761: basic_string* _M_this; 29761: size_type _M_r; 29761: }; 29761: _Terminator __term{this, 0}; 29761: auto __r = std::move(__op)(__p + 0, __n + 0); 29761: 29761: 29761: 29761: static_assert(__gnu_cxx::__is_integer_nonstrict::__value, 29761: "resize_and_overwrite operation must return an integer"); 29761: 29761: ; 29761: __term._M_r = size_type(__r); 29761: if (__term._M_r > __n) 29761: __builtin_unreachable(); 29761: } 29761: # 623 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: const size_type __size = this->size(); 29761: 29761: if (__n == 0) 29761: return __pos <= __size ? __pos : npos; 29761: if (__pos >= __size) 29761: return npos; 29761: 29761: const _CharT __elem0 = __s[0]; 29761: const _CharT* const __data = data(); 29761: const _CharT* __first = __data + __pos; 29761: const _CharT* const __last = __data + __size; 29761: size_type __len = __size - __pos; 29761: 29761: while (__len >= __n) 29761: { 29761: 29761: __first = traits_type::find(__first, __len - __n + 1, __elem0); 29761: if (!__first) 29761: return npos; 29761: 29761: 29761: 29761: if (traits_type::compare(__first, __s, __n) == 0) 29761: return __first - __data; 29761: __len = __last - ++__first; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __ret = npos; 29761: const size_type __size = this->size(); 29761: if (__pos < __size) 29761: { 29761: const _CharT* __data = _M_data(); 29761: const size_type __n = __size - __pos; 29761: const _CharT* __p = traits_type::find(__data + __pos, __n, __c); 29761: if (__p) 29761: __ret = __p - __data; 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: rfind(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: const size_type __size = this->size(); 29761: if (__n <= __size) 29761: { 29761: __pos = std::min(size_type(__size - __n), __pos); 29761: const _CharT* __data = _M_data(); 29761: do 29761: { 29761: if (traits_type::compare(__data + __pos, __s, __n) == 0) 29761: return __pos; 29761: } 29761: while (__pos-- > 0); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: rfind(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __size = this->size(); 29761: if (__size) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: for (++__size; __size-- > 0; ) 29761: if (traits_type::eq(_M_data()[__size], __c)) 29761: return __size; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: for (; __n && __pos < this->size(); ++__pos) 29761: { 29761: const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); 29761: if (__p) 29761: return __pos; 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: size_type __size = this->size(); 29761: if (__size && __n) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (traits_type::find(__s, __n, _M_data()[__size])) 29761: return __size; 29761: } 29761: while (__size-- != 0); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: for (; __pos < this->size(); ++__pos) 29761: if (!traits_type::find(__s, __n, _M_data()[__pos])) 29761: return __pos; 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_first_not_of(_CharT __c, size_type __pos) const noexcept 29761: { 29761: for (; __pos < this->size(); ++__pos) 29761: if (!traits_type::eq(_M_data()[__pos], __c)) 29761: return __pos; 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const 29761: noexcept 29761: { 29761: ; 29761: size_type __size = this->size(); 29761: if (__size) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (!traits_type::find(__s, __n, _M_data()[__size])) 29761: return __size; 29761: } 29761: while (__size--); 29761: } 29761: return npos; 29761: } 29761: 29761: template 29761: 29761: typename basic_string<_CharT, _Traits, _Alloc>::size_type 29761: basic_string<_CharT, _Traits, _Alloc>:: 29761: find_last_not_of(_CharT __c, size_type __pos) const noexcept 29761: { 29761: size_type __size = this->size(); 29761: if (__size) 29761: { 29761: if (--__size > __pos) 29761: __size = __pos; 29761: do 29761: { 29761: if (!traits_type::eq(_M_data()[__size], __c)) 29761: return __size; 29761: } 29761: while (__size--); 29761: } 29761: return npos; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: operator>>(basic_istream<_CharT, _Traits>& __in, 29761: basic_string<_CharT, _Traits, _Alloc>& __str) 29761: { 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29761: typedef typename __istream_type::ios_base __ios_base; 29761: typedef typename __istream_type::int_type __int_type; 29761: typedef typename __string_type::size_type __size_type; 29761: typedef ctype<_CharT> __ctype_type; 29761: typedef typename __ctype_type::ctype_base __ctype_base; 29761: 29761: __size_type __extracted = 0; 29761: typename __ios_base::iostate __err = __ios_base::goodbit; 29761: typename __istream_type::sentry __cerb(__in, false); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: 29761: __str.erase(); 29761: _CharT __buf[128]; 29761: __size_type __len = 0; 29761: const streamsize __w = __in.width(); 29761: const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) 29761: : __str.max_size(); 29761: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29761: const __int_type __eof = _Traits::eof(); 29761: __int_type __c = __in.rdbuf()->sgetc(); 29761: 29761: while (__extracted < __n 29761: && !_Traits::eq_int_type(__c, __eof) 29761: && !__ct.is(__ctype_base::space, 29761: _Traits::to_char_type(__c))) 29761: { 29761: if (__len == sizeof(__buf) / sizeof(_CharT)) 29761: { 29761: __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); 29761: __len = 0; 29761: } 29761: __buf[__len++] = _Traits::to_char_type(__c); 29761: ++__extracted; 29761: __c = __in.rdbuf()->snextc(); 29761: } 29761: __str.append(__buf, __len); 29761: 29761: if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) 29761: __err |= __ios_base::eofbit; 29761: __in.width(0); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(__ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { 29761: 29761: 29761: 29761: __in._M_setstate(__ios_base::badbit); 29761: } 29761: } 29761: 29761: if (!__extracted) 29761: __err |= __ios_base::failbit; 29761: if (__err) 29761: __in.setstate(__err); 29761: return __in; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: getline(basic_istream<_CharT, _Traits>& __in, 29761: basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) 29761: { 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29761: typedef typename __istream_type::ios_base __ios_base; 29761: typedef typename __istream_type::int_type __int_type; 29761: typedef typename __string_type::size_type __size_type; 29761: 29761: __size_type __extracted = 0; 29761: const __size_type __n = __str.max_size(); 29761: typename __ios_base::iostate __err = __ios_base::goodbit; 29761: typename __istream_type::sentry __cerb(__in, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: __str.erase(); 29761: const __int_type __idelim = _Traits::to_int_type(__delim); 29761: const __int_type __eof = _Traits::eof(); 29761: __int_type __c = __in.rdbuf()->sgetc(); 29761: 29761: while (__extracted < __n 29761: && !_Traits::eq_int_type(__c, __eof) 29761: && !_Traits::eq_int_type(__c, __idelim)) 29761: { 29761: __str += _Traits::to_char_type(__c); 29761: ++__extracted; 29761: __c = __in.rdbuf()->snextc(); 29761: } 29761: 29761: if (_Traits::eq_int_type(__c, __eof)) 29761: __err |= __ios_base::eofbit; 29761: else if (_Traits::eq_int_type(__c, __idelim)) 29761: { 29761: ++__extracted; 29761: __in.rdbuf()->sbumpc(); 29761: } 29761: else 29761: __err |= __ios_base::failbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(__ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { 29761: 29761: 29761: 29761: __in._M_setstate(__ios_base::badbit); 29761: } 29761: } 29761: if (!__extracted) 29761: __err |= __ios_base::failbit; 29761: if (__err) 29761: __in.setstate(__err); 29761: return __in; 29761: } 29761: # 977 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: extern template class basic_string; 29761: # 990 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: extern template 29761: basic_istream& 29761: operator>>(basic_istream&, string&); 29761: extern template 29761: basic_ostream& 29761: operator<<(basic_ostream&, const string&); 29761: extern template 29761: basic_istream& 29761: getline(basic_istream&, string&, char); 29761: extern template 29761: basic_istream& 29761: getline(basic_istream&, string&); 29761: 29761: 29761: 29761: extern template class basic_string; 29761: # 1016 "/usr/include/c++/14/bits/basic_string.tcc" 3 29761: extern template 29761: basic_istream& 29761: operator>>(basic_istream&, wstring&); 29761: extern template 29761: basic_ostream& 29761: operator<<(basic_ostream&, const wstring&); 29761: extern template 29761: basic_istream& 29761: getline(basic_istream&, wstring&, wchar_t); 29761: extern template 29761: basic_istream& 29761: getline(basic_istream&, wstring&); 29761: 29761: 29761: 29761: 29761: } 29761: # 56 "/usr/include/c++/14/string" 2 3 29761: # 65 "/usr/include/c++/14/string" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 66 "/usr/include/c++/14/string" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr { 29761: template> 29761: using basic_string = std::basic_string<_CharT, _Traits, 29761: polymorphic_allocator<_CharT>>; 29761: using string = basic_string; 29761: 29761: 29761: 29761: using u16string = basic_string; 29761: using u32string = basic_string; 29761: using wstring = basic_string; 29761: } 29761: 29761: } 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/usr/include/c++/14/unordered_set" 1 3 29761: # 32 "/usr/include/c++/14/unordered_set" 3 29761: 29761: # 33 "/usr/include/c++/14/unordered_set" 3 29761: # 41 "/usr/include/c++/14/unordered_set" 3 29761: # 1 "/usr/include/c++/14/bits/unordered_set.h" 1 3 29761: # 38 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: using __uset_traits = __detail::_Hashtable_traits<_Cache, true, true>; 29761: 29761: template, 29761: typename _Pred = std::equal_to<_Value>, 29761: typename _Alloc = std::allocator<_Value>, 29761: typename _Tr = __uset_traits<__cache_default<_Value, _Hash>::value>> 29761: using __uset_hashtable = _Hashtable<_Value, _Value, _Alloc, 29761: __detail::_Identity, _Pred, _Hash, 29761: __detail::_Mod_range_hashing, 29761: __detail::_Default_ranged_hash, 29761: __detail::_Prime_rehash_policy, _Tr>; 29761: 29761: 29761: template 29761: using __umset_traits = __detail::_Hashtable_traits<_Cache, true, false>; 29761: 29761: template, 29761: typename _Pred = std::equal_to<_Value>, 29761: typename _Alloc = std::allocator<_Value>, 29761: typename _Tr = __umset_traits<__cache_default<_Value, _Hash>::value>> 29761: using __umset_hashtable = _Hashtable<_Value, _Value, _Alloc, 29761: __detail::_Identity, 29761: _Pred, _Hash, 29761: __detail::_Mod_range_hashing, 29761: __detail::_Default_ranged_hash, 29761: __detail::_Prime_rehash_policy, _Tr>; 29761: 29761: template 29761: class unordered_multiset; 29761: # 100 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template, 29761: typename _Pred = equal_to<_Value>, 29761: typename _Alloc = allocator<_Value>> 29761: class unordered_set 29761: { 29761: typedef __uset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 29761: _Hashtable _M_h; 29761: 29761: public: 29761: 29761: 29761: 29761: typedef typename _Hashtable::key_type key_type; 29761: typedef typename _Hashtable::value_type value_type; 29761: typedef typename _Hashtable::hasher hasher; 29761: typedef typename _Hashtable::key_equal key_equal; 29761: typedef typename _Hashtable::allocator_type allocator_type; 29761: 29761: 29761: 29761: 29761: typedef typename _Hashtable::pointer pointer; 29761: typedef typename _Hashtable::const_pointer const_pointer; 29761: typedef typename _Hashtable::reference reference; 29761: typedef typename _Hashtable::const_reference const_reference; 29761: typedef typename _Hashtable::iterator iterator; 29761: typedef typename _Hashtable::const_iterator const_iterator; 29761: typedef typename _Hashtable::local_iterator local_iterator; 29761: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29761: typedef typename _Hashtable::size_type size_type; 29761: typedef typename _Hashtable::difference_type difference_type; 29761: 29761: 29761: 29761: using node_type = typename _Hashtable::node_type; 29761: using insert_return_type = typename _Hashtable::insert_return_type; 29761: 29761: 29761: 29761: 29761: 29761: unordered_set() = default; 29761: # 151 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: explicit 29761: unordered_set(size_type __n, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__n, __hf, __eql, __a) 29761: { } 29761: # 172 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: unordered_set(_InputIterator __first, _InputIterator __last, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__first, __last, __n, __hf, __eql, __a) 29761: { } 29761: 29761: 29761: unordered_set(const unordered_set&) = default; 29761: 29761: 29761: unordered_set(unordered_set&&) = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: unordered_set(const allocator_type& __a) 29761: : _M_h(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_set(const unordered_set& __uset, 29761: const allocator_type& __a) 29761: : _M_h(__uset._M_h, __a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_set(unordered_set&& __uset, 29761: const allocator_type& __a) 29761: noexcept( noexcept(_Hashtable(std::move(__uset._M_h), __a)) ) 29761: : _M_h(std::move(__uset._M_h), __a) 29761: { } 29761: # 228 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: unordered_set(initializer_list __l, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__l, __n, __hf, __eql, __a) 29761: { } 29761: 29761: unordered_set(size_type __n, const allocator_type& __a) 29761: : unordered_set(__n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_set(size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_set(__n, __hf, key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_set(_InputIterator __first, _InputIterator __last, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_set(__first, __last, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_set(_InputIterator __first, _InputIterator __last, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_set(__first, __last, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: unordered_set(initializer_list __l, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_set(__l, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_set(initializer_list __l, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_set(__l, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: 29761: unordered_set& 29761: operator=(const unordered_set&) = default; 29761: 29761: 29761: unordered_set& 29761: operator=(unordered_set&&) = default; 29761: # 290 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: unordered_set& 29761: operator=(initializer_list __l) 29761: { 29761: _M_h = __l; 29761: return *this; 29761: } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _M_h.get_allocator(); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_h.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_h.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_h.max_size(); } 29761: # 326 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: begin() noexcept 29761: { return _M_h.begin(); } 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_h.end(); } 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_h.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_h.end(); } 29761: # 382 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: std::pair 29761: emplace(_Args&&... __args) 29761: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29761: # 408 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29761: # 427 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: std::pair 29761: insert(const value_type& __x) 29761: { return _M_h.insert(__x); } 29761: 29761: std::pair 29761: insert(value_type&& __x) 29761: { return _M_h.insert(std::move(__x)); } 29761: # 456 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: insert(const_iterator __hint, const value_type& __x) 29761: { return _M_h.insert(__hint, __x); } 29761: 29761: iterator 29761: insert(const_iterator __hint, value_type&& __x) 29761: { return _M_h.insert(__hint, std::move(__x)); } 29761: # 474 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_h.insert(__first, __last); } 29761: # 486 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { _M_h.insert(__l); } 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_h.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __key) 29761: { return _M_h.extract(__key); } 29761: 29761: 29761: insert_return_type 29761: insert(node_type&& __nh) 29761: { return _M_h._M_reinsert_node(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator, node_type&& __nh) 29761: { return _M_h._M_reinsert_node(std::move(__nh)).position; } 29761: # 529 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_h.erase(__position); } 29761: 29761: 29761: iterator 29761: erase(iterator __position) 29761: { return _M_h.erase(__position); } 29761: # 551 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_h.erase(__x); } 29761: # 569 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_h.erase(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_h.clear(); } 29761: # 592 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: swap(unordered_set& __x) 29761: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29761: { _M_h.swap(__x._M_h); } 29761: 29761: 29761: template 29761: friend class std::_Hash_merge_helper; 29761: 29761: template 29761: void 29761: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Hash_merge_helper; 29761: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Hash_merge_helper; 29761: _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: hasher 29761: hash_function() const 29761: { return _M_h.hash_function(); } 29761: 29761: 29761: 29761: key_equal 29761: key_eq() const 29761: { return _M_h.key_eq(); } 29761: # 656 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_h.find(__x); } 29761: # 668 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_h.find(__x); } 29761: # 691 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_h.count(__x); } 29761: # 732 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_h.equal_range(__x); } 29761: # 744 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_h.equal_range(__x); } 29761: # 760 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: bucket_count() const noexcept 29761: { return _M_h.bucket_count(); } 29761: 29761: 29761: size_type 29761: max_bucket_count() const noexcept 29761: { return _M_h.max_bucket_count(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_size(size_type __n) const 29761: { return _M_h.bucket_size(__n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket(const key_type& __key) const 29761: { return _M_h.bucket(__key); } 29761: # 794 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: local_iterator 29761: begin(size_type __n) 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: begin(size_type __n) const 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: cbegin(size_type __n) const 29761: { return _M_h.cbegin(__n); } 29761: # 814 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: local_iterator 29761: end(size_type __n) 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: end(size_type __n) const 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: cend(size_type __n) const 29761: { return _M_h.cend(__n); } 29761: 29761: 29761: 29761: 29761: 29761: float 29761: load_factor() const noexcept 29761: { return _M_h.load_factor(); } 29761: 29761: 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_h.max_load_factor(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: max_load_factor(float __z) 29761: { _M_h.max_load_factor(__z); } 29761: # 855 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: rehash(size_type __n) 29761: { _M_h.rehash(__n); } 29761: # 866 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: reserve(size_type __n) 29761: { _M_h.reserve(__n); } 29761: 29761: template 29761: friend bool 29761: operator==(const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&, 29761: const unordered_set<_Value1, _Hash1, _Pred1, _Alloc1>&); 29761: }; 29761: 29761: 29761: 29761: template::value_type>, 29761: typename _Pred = 29761: equal_to::value_type>, 29761: typename _Allocator = 29761: allocator::value_type>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_set(_InputIterator, _InputIterator, 29761: unordered_set::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29761: -> unordered_set::value_type, 29761: _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename _Pred = equal_to<_Tp>, 29761: typename _Allocator = allocator<_Tp>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_set(initializer_list<_Tp>, 29761: unordered_set::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) 29761: -> unordered_set<_Tp, _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_set(_InputIterator, _InputIterator, 29761: unordered_set::size_type, _Allocator) 29761: -> unordered_set::value_type, 29761: hash< 29761: typename iterator_traits<_InputIterator>::value_type>, 29761: equal_to< 29761: typename iterator_traits<_InputIterator>::value_type>, 29761: _Allocator>; 29761: 29761: template, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_set(_InputIterator, _InputIterator, 29761: unordered_set::size_type, 29761: _Hash, _Allocator) 29761: -> unordered_set::value_type, 29761: _Hash, 29761: equal_to< 29761: typename iterator_traits<_InputIterator>::value_type>, 29761: _Allocator>; 29761: 29761: template> 29761: unordered_set(initializer_list<_Tp>, 29761: unordered_set::size_type, _Allocator) 29761: -> unordered_set<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_set(initializer_list<_Tp>, 29761: unordered_set::size_type, _Hash, _Allocator) 29761: -> unordered_set<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 29761: # 968 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template, 29761: typename _Pred = equal_to<_Value>, 29761: typename _Alloc = allocator<_Value>> 29761: class unordered_multiset 29761: { 29761: typedef __umset_hashtable<_Value, _Hash, _Pred, _Alloc> _Hashtable; 29761: _Hashtable _M_h; 29761: 29761: public: 29761: 29761: 29761: 29761: typedef typename _Hashtable::key_type key_type; 29761: typedef typename _Hashtable::value_type value_type; 29761: typedef typename _Hashtable::hasher hasher; 29761: typedef typename _Hashtable::key_equal key_equal; 29761: typedef typename _Hashtable::allocator_type allocator_type; 29761: 29761: 29761: 29761: 29761: typedef typename _Hashtable::pointer pointer; 29761: typedef typename _Hashtable::const_pointer const_pointer; 29761: typedef typename _Hashtable::reference reference; 29761: typedef typename _Hashtable::const_reference const_reference; 29761: typedef typename _Hashtable::iterator iterator; 29761: typedef typename _Hashtable::const_iterator const_iterator; 29761: typedef typename _Hashtable::local_iterator local_iterator; 29761: typedef typename _Hashtable::const_local_iterator const_local_iterator; 29761: typedef typename _Hashtable::size_type size_type; 29761: typedef typename _Hashtable::difference_type difference_type; 29761: 29761: 29761: 29761: using node_type = typename _Hashtable::node_type; 29761: 29761: 29761: 29761: 29761: 29761: unordered_multiset() = default; 29761: # 1018 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: explicit 29761: unordered_multiset(size_type __n, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__n, __hf, __eql, __a) 29761: { } 29761: # 1039 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: unordered_multiset(_InputIterator __first, _InputIterator __last, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__first, __last, __n, __hf, __eql, __a) 29761: { } 29761: 29761: 29761: unordered_multiset(const unordered_multiset&) = default; 29761: 29761: 29761: unordered_multiset(unordered_multiset&&) = default; 29761: # 1065 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: unordered_multiset(initializer_list __l, 29761: size_type __n = 0, 29761: const hasher& __hf = hasher(), 29761: const key_equal& __eql = key_equal(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_h(__l, __n, __hf, __eql, __a) 29761: { } 29761: 29761: 29761: unordered_multiset& 29761: operator=(const unordered_multiset&) = default; 29761: 29761: 29761: unordered_multiset& 29761: operator=(unordered_multiset&&) = default; 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: unordered_multiset(const allocator_type& __a) 29761: : _M_h(__a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_multiset(const unordered_multiset& __umset, 29761: const allocator_type& __a) 29761: : _M_h(__umset._M_h, __a) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: unordered_multiset(unordered_multiset&& __umset, 29761: const allocator_type& __a) 29761: noexcept( noexcept(_Hashtable(std::move(__umset._M_h), __a)) ) 29761: : _M_h(std::move(__umset._M_h), __a) 29761: { } 29761: 29761: unordered_multiset(size_type __n, const allocator_type& __a) 29761: : unordered_multiset(__n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_multiset(size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multiset(__n, __hf, key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_multiset(_InputIterator __first, _InputIterator __last, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_multiset(__first, __last, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: template 29761: unordered_multiset(_InputIterator __first, _InputIterator __last, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multiset(__first, __last, __n, __hf, key_equal(), __a) 29761: { } 29761: 29761: unordered_multiset(initializer_list __l, 29761: size_type __n, 29761: const allocator_type& __a) 29761: : unordered_multiset(__l, __n, hasher(), key_equal(), __a) 29761: { } 29761: 29761: unordered_multiset(initializer_list __l, 29761: size_type __n, const hasher& __hf, 29761: const allocator_type& __a) 29761: : unordered_multiset(__l, __n, __hf, key_equal(), __a) 29761: { } 29761: # 1157 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: unordered_multiset& 29761: operator=(initializer_list __l) 29761: { 29761: _M_h = __l; 29761: return *this; 29761: } 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return _M_h.get_allocator(); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_h.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_h.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_h.max_size(); } 29761: # 1193 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: begin() noexcept 29761: { return _M_h.begin(); } 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_h.end(); } 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_h.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_h.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_h.end(); } 29761: # 1241 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: iterator 29761: emplace(_Args&&... __args) 29761: { return _M_h.emplace(std::forward<_Args>(__args)...); } 29761: # 1263 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } 29761: # 1276 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: insert(const value_type& __x) 29761: { return _M_h.insert(__x); } 29761: 29761: iterator 29761: insert(value_type&& __x) 29761: { return _M_h.insert(std::move(__x)); } 29761: # 1302 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: insert(const_iterator __hint, const value_type& __x) 29761: { return _M_h.insert(__hint, __x); } 29761: 29761: iterator 29761: insert(const_iterator __hint, value_type&& __x) 29761: { return _M_h.insert(__hint, std::move(__x)); } 29761: # 1319 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_h.insert(__first, __last); } 29761: # 1331 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { _M_h.insert(__l); } 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_h.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __key) 29761: { return _M_h.extract(__key); } 29761: 29761: 29761: iterator 29761: insert(node_type&& __nh) 29761: { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } 29761: # 1375 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_h.erase(__position); } 29761: 29761: 29761: iterator 29761: erase(iterator __position) 29761: { return _M_h.erase(__position); } 29761: # 1398 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_h.erase(__x); } 29761: # 1418 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_h.erase(__first, __last); } 29761: # 1429 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: clear() noexcept 29761: { _M_h.clear(); } 29761: # 1442 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: swap(unordered_multiset& __x) 29761: noexcept( noexcept(_M_h.swap(__x._M_h)) ) 29761: { _M_h.swap(__x._M_h); } 29761: 29761: 29761: template 29761: friend class std::_Hash_merge_helper; 29761: 29761: template 29761: void 29761: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper 29761: = _Hash_merge_helper; 29761: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_multiset<_Value, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(unordered_set<_Value, _H2, _P2, _Alloc>& __source) 29761: { 29761: using _Merge_helper 29761: = _Hash_merge_helper; 29761: _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(unordered_set<_Value, _H2, _P2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: hasher 29761: hash_function() const 29761: { return _M_h.hash_function(); } 29761: 29761: 29761: 29761: key_equal 29761: key_eq() const 29761: { return _M_h.key_eq(); } 29761: # 1508 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_h.find(__x); } 29761: # 1520 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_h.find(__x); } 29761: # 1539 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_h.count(__x); } 29761: # 1577 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_h.equal_range(__x); } 29761: # 1589 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_h.equal_range(__x); } 29761: # 1605 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: size_type 29761: bucket_count() const noexcept 29761: { return _M_h.bucket_count(); } 29761: 29761: 29761: size_type 29761: max_bucket_count() const noexcept 29761: { return _M_h.max_bucket_count(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket_size(size_type __n) const 29761: { return _M_h.bucket_size(__n); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_type 29761: bucket(const key_type& __key) const 29761: { return _M_h.bucket(__key); } 29761: # 1639 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: local_iterator 29761: begin(size_type __n) 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: begin(size_type __n) const 29761: { return _M_h.begin(__n); } 29761: 29761: const_local_iterator 29761: cbegin(size_type __n) const 29761: { return _M_h.cbegin(__n); } 29761: # 1659 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: local_iterator 29761: end(size_type __n) 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: end(size_type __n) const 29761: { return _M_h.end(__n); } 29761: 29761: const_local_iterator 29761: cend(size_type __n) const 29761: { return _M_h.cend(__n); } 29761: 29761: 29761: 29761: 29761: 29761: float 29761: load_factor() const noexcept 29761: { return _M_h.load_factor(); } 29761: 29761: 29761: 29761: float 29761: max_load_factor() const noexcept 29761: { return _M_h.max_load_factor(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: max_load_factor(float __z) 29761: { _M_h.max_load_factor(__z); } 29761: # 1700 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: rehash(size_type __n) 29761: { _M_h.rehash(__n); } 29761: # 1711 "/usr/include/c++/14/bits/unordered_set.h" 3 29761: void 29761: reserve(size_type __n) 29761: { _M_h.reserve(__n); } 29761: 29761: template 29761: friend bool 29761: operator==(const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&, 29761: const unordered_multiset<_Value1, _Hash1, _Pred1, _Alloc1>&); 29761: }; 29761: 29761: 29761: 29761: 29761: template::value_type>, 29761: typename _Pred = 29761: equal_to::value_type>, 29761: typename _Allocator = 29761: allocator::value_type>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multiset(_InputIterator, _InputIterator, 29761: unordered_multiset::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), 29761: _Allocator = _Allocator()) 29761: -> unordered_multiset::value_type, 29761: _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename _Pred = equal_to<_Tp>, 29761: typename _Allocator = allocator<_Tp>, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireNotAllocator<_Pred>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multiset(initializer_list<_Tp>, 29761: unordered_multiset::size_type = {}, 29761: _Hash = _Hash(), _Pred = _Pred(), 29761: _Allocator = _Allocator()) 29761: -> unordered_multiset<_Tp, _Hash, _Pred, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multiset(_InputIterator, _InputIterator, 29761: unordered_multiset::size_type, _Allocator) 29761: -> unordered_multiset::value_type, 29761: hash::value_type>, 29761: equal_to::value_type>, 29761: _Allocator>; 29761: 29761: template, 29761: typename = _RequireNotAllocatorOrIntegral<_Hash>, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multiset(_InputIterator, _InputIterator, 29761: unordered_multiset::size_type, 29761: _Hash, _Allocator) 29761: -> unordered_multiset::value_type, 29761: _Hash, 29761: equal_to< 29761: typename 29761: iterator_traits<_InputIterator>::value_type>, 29761: _Allocator>; 29761: 29761: template> 29761: unordered_multiset(initializer_list<_Tp>, 29761: unordered_multiset::size_type, _Allocator) 29761: -> unordered_multiset<_Tp, hash<_Tp>, equal_to<_Tp>, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: unordered_multiset(initializer_list<_Tp>, 29761: unordered_multiset::size_type, _Hash, _Allocator) 29761: -> unordered_multiset<_Tp, _Hash, equal_to<_Tp>, _Allocator>; 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29761: unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: template 29761: inline void 29761: swap(unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29761: unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: template 29761: inline bool 29761: operator==(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29761: { return __x._M_h._M_equal(__y._M_h); } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const unordered_set<_Value, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_set<_Value, _Hash, _Pred, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator==(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29761: { return __x._M_h._M_equal(__y._M_h); } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __x, 29761: const unordered_multiset<_Value, _Hash, _Pred, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Hash_merge_helper< 29761: std::unordered_set<_Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> 29761: { 29761: private: 29761: template 29761: using unordered_set = std::unordered_set<_Tp...>; 29761: template 29761: using unordered_multiset = std::unordered_multiset<_Tp...>; 29761: 29761: friend unordered_set<_Val, _Hash1, _Eq1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 29761: { return __set._M_h; } 29761: 29761: static auto& 29761: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 29761: { return __set._M_h; } 29761: }; 29761: 29761: 29761: template 29761: struct _Hash_merge_helper< 29761: std::unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>, 29761: _Hash2, _Eq2> 29761: { 29761: private: 29761: template 29761: using unordered_set = std::unordered_set<_Tp...>; 29761: template 29761: using unordered_multiset = std::unordered_multiset<_Tp...>; 29761: 29761: friend unordered_multiset<_Val, _Hash1, _Eq1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_table(unordered_set<_Val, _Hash2, _Eq2, _Alloc>& __set) 29761: { return __set._M_h; } 29761: 29761: static auto& 29761: _S_get_table(unordered_multiset<_Val, _Hash2, _Eq2, _Alloc>& __set) 29761: { return __set._M_h; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 42 "/usr/include/c++/14/unordered_set" 2 3 29761: # 54 "/usr/include/c++/14/unordered_set" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 55 "/usr/include/c++/14/unordered_set" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template, 29761: typename _Pred = std::equal_to<_Key>> 29761: using unordered_set 29761: = std::unordered_set<_Key, _Hash, _Pred, 29761: polymorphic_allocator<_Key>>; 29761: template, 29761: typename _Pred = std::equal_to<_Key>> 29761: using unordered_multiset 29761: = std::unordered_multiset<_Key, _Hash, _Pred, 29761: polymorphic_allocator<_Key>>; 29761: } 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/optional" 1 3 29761: # 33 "/usr/include/c++/14/optional" 3 29761: 29761: # 34 "/usr/include/c++/14/optional" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 38 "/usr/include/c++/14/optional" 2 3 29761: # 58 "/usr/include/c++/14/optional" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class optional; 29761: 29761: 29761: struct nullopt_t 29761: { 29761: 29761: 29761: 29761: 29761: 29761: enum class _Construct { _Token }; 29761: 29761: 29761: explicit constexpr nullopt_t(_Construct) noexcept { } 29761: }; 29761: 29761: 29761: inline constexpr nullopt_t nullopt { nullopt_t::_Construct::_Token }; 29761: 29761: template struct _Optional_func { _Fn& _M_f; }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class bad_optional_access : public exception 29761: { 29761: public: 29761: bad_optional_access() = default; 29761: virtual ~bad_optional_access() = default; 29761: 29761: const char* what() const noexcept override 29761: { return "bad optional access"; } 29761: }; 29761: 29761: 29761: [[__noreturn__]] inline void 29761: __throw_bad_optional_access() 29761: { (throw (bad_optional_access())); } 29761: 29761: 29761: 29761: template 29761: struct _Optional_payload_base 29761: { 29761: using _Stored_type = remove_const_t<_Tp>; 29761: 29761: _Optional_payload_base() = default; 29761: ~_Optional_payload_base() = default; 29761: 29761: template 29761: constexpr 29761: _Optional_payload_base(in_place_t __tag, _Args&&... __args) 29761: : _M_payload(__tag, std::forward<_Args>(__args)...), 29761: _M_engaged(true) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Optional_payload_base(std::initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : _M_payload(__il, std::forward<_Args>(__args)...), 29761: _M_engaged(true) 29761: { } 29761: 29761: 29761: 29761: constexpr 29761: _Optional_payload_base(bool , 29761: const _Optional_payload_base& __other) 29761: { 29761: if (__other._M_engaged) 29761: this->_M_construct(__other._M_get()); 29761: } 29761: 29761: 29761: 29761: constexpr 29761: _Optional_payload_base(bool , 29761: _Optional_payload_base&& __other) 29761: { 29761: if (__other._M_engaged) 29761: this->_M_construct(std::move(__other._M_get())); 29761: } 29761: 29761: 29761: 29761: _Optional_payload_base(const _Optional_payload_base&) = default; 29761: 29761: 29761: 29761: _Optional_payload_base(_Optional_payload_base&&) = default; 29761: 29761: _Optional_payload_base& 29761: operator=(const _Optional_payload_base&) = default; 29761: 29761: _Optional_payload_base& 29761: operator=(_Optional_payload_base&&) = default; 29761: 29761: 29761: constexpr void 29761: _M_copy_assign(const _Optional_payload_base& __other) 29761: { 29761: if (this->_M_engaged && __other._M_engaged) 29761: this->_M_get() = __other._M_get(); 29761: else 29761: { 29761: if (__other._M_engaged) 29761: this->_M_construct(__other._M_get()); 29761: else 29761: this->_M_reset(); 29761: } 29761: } 29761: 29761: 29761: constexpr void 29761: _M_move_assign(_Optional_payload_base&& __other) 29761: noexcept(__and_v, 29761: is_nothrow_move_assignable<_Tp>>) 29761: { 29761: if (this->_M_engaged && __other._M_engaged) 29761: this->_M_get() = std::move(__other._M_get()); 29761: else 29761: { 29761: if (__other._M_engaged) 29761: this->_M_construct(std::move(__other._M_get())); 29761: else 29761: this->_M_reset(); 29761: } 29761: } 29761: 29761: struct _Empty_byte { }; 29761: 29761: template> 29761: union _Storage 29761: { 29761: constexpr _Storage() noexcept : _M_empty() { } 29761: 29761: template 29761: constexpr 29761: _Storage(in_place_t, _Args&&... __args) 29761: : _M_value(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 29761: : _M_value(__il, std::forward<_Args>(__args)...) 29761: { } 29761: # 228 "/usr/include/c++/14/optional" 3 29761: _Empty_byte _M_empty; 29761: _Up _M_value; 29761: }; 29761: 29761: template 29761: union _Storage<_Up, false> 29761: { 29761: constexpr _Storage() noexcept : _M_empty() { } 29761: 29761: template 29761: constexpr 29761: _Storage(in_place_t, _Args&&... __args) 29761: : _M_value(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) 29761: : _M_value(__il, std::forward<_Args>(__args)...) 29761: { } 29761: # 259 "/usr/include/c++/14/optional" 3 29761: ~_Storage() { } 29761: 29761: _Empty_byte _M_empty; 29761: _Up _M_value; 29761: }; 29761: 29761: _Storage<_Stored_type> _M_payload; 29761: 29761: bool _M_engaged = false; 29761: 29761: template 29761: constexpr void 29761: _M_construct(_Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 29761: { 29761: std::_Construct(std::__addressof(this->_M_payload._M_value), 29761: std::forward<_Args>(__args)...); 29761: this->_M_engaged = true; 29761: } 29761: 29761: constexpr void 29761: _M_destroy() noexcept 29761: { 29761: _M_engaged = false; 29761: _M_payload._M_value.~_Stored_type(); 29761: } 29761: # 301 "/usr/include/c++/14/optional" 3 29761: constexpr _Tp& 29761: _M_get() noexcept 29761: { return this->_M_payload._M_value; } 29761: 29761: constexpr const _Tp& 29761: _M_get() const noexcept 29761: { return this->_M_payload._M_value; } 29761: 29761: 29761: constexpr void 29761: _M_reset() noexcept 29761: { 29761: if (this->_M_engaged) 29761: _M_destroy(); 29761: else 29761: this->_M_engaged = false; 29761: } 29761: }; 29761: 29761: 29761: template , 29761: bool = 29761: is_trivially_copy_assignable_v<_Tp> 29761: && is_trivially_copy_constructible_v<_Tp>, 29761: bool = 29761: is_trivially_move_assignable_v<_Tp> 29761: && is_trivially_move_constructible_v<_Tp>> 29761: struct _Optional_payload; 29761: 29761: 29761: template 29761: struct _Optional_payload<_Tp, true, true, true> 29761: : _Optional_payload_base<_Tp> 29761: { 29761: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29761: 29761: _Optional_payload() = default; 29761: }; 29761: 29761: 29761: template 29761: struct _Optional_payload<_Tp, true, false, true> 29761: : _Optional_payload_base<_Tp> 29761: { 29761: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29761: 29761: _Optional_payload() = default; 29761: ~_Optional_payload() = default; 29761: _Optional_payload(const _Optional_payload&) = default; 29761: _Optional_payload(_Optional_payload&&) = default; 29761: _Optional_payload& operator=(_Optional_payload&&) = default; 29761: 29761: 29761: constexpr 29761: _Optional_payload& 29761: operator=(const _Optional_payload& __other) 29761: { 29761: this->_M_copy_assign(__other); 29761: return *this; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Optional_payload<_Tp, true, true, false> 29761: : _Optional_payload_base<_Tp> 29761: { 29761: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29761: 29761: _Optional_payload() = default; 29761: ~_Optional_payload() = default; 29761: _Optional_payload(const _Optional_payload&) = default; 29761: _Optional_payload(_Optional_payload&&) = default; 29761: _Optional_payload& operator=(const _Optional_payload&) = default; 29761: 29761: 29761: constexpr 29761: _Optional_payload& 29761: operator=(_Optional_payload&& __other) 29761: noexcept(__and_v, 29761: is_nothrow_move_assignable<_Tp>>) 29761: { 29761: this->_M_move_assign(std::move(__other)); 29761: return *this; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Optional_payload<_Tp, true, false, false> 29761: : _Optional_payload_base<_Tp> 29761: { 29761: using _Optional_payload_base<_Tp>::_Optional_payload_base; 29761: 29761: _Optional_payload() = default; 29761: ~_Optional_payload() = default; 29761: _Optional_payload(const _Optional_payload&) = default; 29761: _Optional_payload(_Optional_payload&&) = default; 29761: 29761: 29761: constexpr 29761: _Optional_payload& 29761: operator=(const _Optional_payload& __other) 29761: { 29761: this->_M_copy_assign(__other); 29761: return *this; 29761: } 29761: 29761: 29761: constexpr 29761: _Optional_payload& 29761: operator=(_Optional_payload&& __other) 29761: noexcept(__and_v, 29761: is_nothrow_move_assignable<_Tp>>) 29761: { 29761: this->_M_move_assign(std::move(__other)); 29761: return *this; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Optional_payload<_Tp, false, _Copy, _Move> 29761: : _Optional_payload<_Tp, true, false, false> 29761: { 29761: 29761: using _Optional_payload<_Tp, true, false, false>::_Optional_payload; 29761: _Optional_payload() = default; 29761: _Optional_payload(const _Optional_payload&) = default; 29761: _Optional_payload(_Optional_payload&&) = default; 29761: _Optional_payload& operator=(const _Optional_payload&) = default; 29761: _Optional_payload& operator=(_Optional_payload&&) = default; 29761: 29761: 29761: ~_Optional_payload() { this->_M_reset(); } 29761: }; 29761: 29761: 29761: 29761: template 29761: class _Optional_base_impl 29761: { 29761: protected: 29761: using _Stored_type = remove_const_t<_Tp>; 29761: 29761: 29761: 29761: template 29761: constexpr void 29761: _M_construct(_Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) 29761: { 29761: static_cast<_Dp*>(this)->_M_payload._M_construct( 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: constexpr void 29761: _M_destruct() noexcept 29761: { static_cast<_Dp*>(this)->_M_payload._M_destroy(); } 29761: 29761: 29761: constexpr void 29761: _M_reset() noexcept 29761: { static_cast<_Dp*>(this)->_M_payload._M_reset(); } 29761: 29761: constexpr bool _M_is_engaged() const noexcept 29761: { return static_cast(this)->_M_payload._M_engaged; } 29761: 29761: 29761: constexpr _Tp& 29761: _M_get() noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) std::__glibcxx_assert_fail(); } while (false); 29761: return static_cast<_Dp*>(this)->_M_payload._M_get(); 29761: } 29761: 29761: constexpr const _Tp& 29761: _M_get() const noexcept 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) std::__glibcxx_assert_fail(); } while (false); 29761: return static_cast(this)->_M_payload._M_get(); 29761: } 29761: }; 29761: # 505 "/usr/include/c++/14/optional" 3 29761: template, 29761: bool = is_trivially_move_constructible_v<_Tp>> 29761: struct _Optional_base 29761: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29761: { 29761: 29761: constexpr _Optional_base() = default; 29761: 29761: 29761: template, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, _Args&&... __args) 29761: : _M_payload(in_place, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template&, 29761: _Args...>, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, 29761: initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: 29761: constexpr 29761: _Optional_base(const _Optional_base& __other) 29761: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 29761: { } 29761: 29761: constexpr 29761: _Optional_base(_Optional_base&& __other) 29761: noexcept(is_nothrow_move_constructible_v<_Tp>) 29761: : _M_payload(__other._M_payload._M_engaged, 29761: std::move(__other._M_payload)) 29761: { } 29761: 29761: 29761: _Optional_base& operator=(const _Optional_base&) = default; 29761: _Optional_base& operator=(_Optional_base&&) = default; 29761: 29761: _Optional_payload<_Tp> _M_payload; 29761: }; 29761: 29761: template 29761: struct _Optional_base<_Tp, false, true> 29761: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29761: { 29761: 29761: constexpr _Optional_base() = default; 29761: 29761: 29761: template, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, _Args&&... __args) 29761: : _M_payload(in_place, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template&, 29761: _Args...>, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, 29761: initializer_list<_Up> __il, 29761: _Args... __args) 29761: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: 29761: constexpr _Optional_base(const _Optional_base& __other) 29761: : _M_payload(__other._M_payload._M_engaged, __other._M_payload) 29761: { } 29761: 29761: constexpr _Optional_base(_Optional_base&& __other) = default; 29761: 29761: 29761: _Optional_base& operator=(const _Optional_base&) = default; 29761: _Optional_base& operator=(_Optional_base&&) = default; 29761: 29761: _Optional_payload<_Tp> _M_payload; 29761: }; 29761: 29761: template 29761: struct _Optional_base<_Tp, true, false> 29761: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29761: { 29761: 29761: constexpr _Optional_base() = default; 29761: 29761: 29761: template, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, _Args&&... __args) 29761: : _M_payload(in_place, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template&, 29761: _Args...>, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, 29761: initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: 29761: constexpr _Optional_base(const _Optional_base& __other) = default; 29761: 29761: constexpr 29761: _Optional_base(_Optional_base&& __other) 29761: noexcept(is_nothrow_move_constructible_v<_Tp>) 29761: : _M_payload(__other._M_payload._M_engaged, 29761: std::move(__other._M_payload)) 29761: { } 29761: 29761: 29761: _Optional_base& operator=(const _Optional_base&) = default; 29761: _Optional_base& operator=(_Optional_base&&) = default; 29761: 29761: _Optional_payload<_Tp> _M_payload; 29761: }; 29761: 29761: template 29761: struct _Optional_base<_Tp, true, true> 29761: : _Optional_base_impl<_Tp, _Optional_base<_Tp>> 29761: { 29761: 29761: constexpr _Optional_base() = default; 29761: 29761: 29761: template, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, _Args&&... __args) 29761: : _M_payload(in_place, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template&, 29761: _Args...>, bool> = false> 29761: constexpr explicit 29761: _Optional_base(in_place_t, 29761: initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : _M_payload(in_place, __il, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: 29761: constexpr _Optional_base(const _Optional_base& __other) = default; 29761: constexpr _Optional_base(_Optional_base&& __other) = default; 29761: 29761: 29761: _Optional_base& operator=(const _Optional_base&) = default; 29761: _Optional_base& operator=(_Optional_base&&) = default; 29761: 29761: _Optional_payload<_Tp> _M_payload; 29761: }; 29761: 29761: template 29761: class optional; 29761: 29761: template 29761: inline constexpr bool __is_optional_v = false; 29761: template 29761: inline constexpr bool __is_optional_v> = true; 29761: 29761: template 29761: using __converts_from_optional = 29761: __or_&>, 29761: is_constructible<_Tp, optional<_Up>&>, 29761: is_constructible<_Tp, const optional<_Up>&&>, 29761: is_constructible<_Tp, optional<_Up>&&>, 29761: is_convertible&, _Tp>, 29761: is_convertible&, _Tp>, 29761: is_convertible&&, _Tp>, 29761: is_convertible&&, _Tp>>; 29761: 29761: template 29761: using __assigns_from_optional = 29761: __or_&>, 29761: is_assignable<_Tp&, optional<_Up>&>, 29761: is_assignable<_Tp&, const optional<_Up>&&>, 29761: is_assignable<_Tp&, optional<_Up>&&>>; 29761: 29761: 29761: 29761: 29761: template 29761: class optional 29761: : private _Optional_base<_Tp>, 29761: private _Enable_copy_move< 29761: 29761: is_copy_constructible_v<_Tp>, 29761: 29761: __and_v, is_copy_assignable<_Tp>>, 29761: 29761: is_move_constructible_v<_Tp>, 29761: 29761: __and_v, is_move_assignable<_Tp>>, 29761: 29761: optional<_Tp>> 29761: { 29761: static_assert(!is_same_v, nullopt_t>); 29761: static_assert(!is_same_v, in_place_t>); 29761: static_assert(is_object_v<_Tp> && !is_array_v<_Tp>); 29761: 29761: private: 29761: using _Base = _Optional_base<_Tp>; 29761: 29761: 29761: template 29761: using __not_self = __not_>>; 29761: template 29761: using __not_tag = __not_>>; 29761: template 29761: using _Requires = enable_if_t<__and_v<_Cond...>, bool>; 29761: 29761: public: 29761: using value_type = _Tp; 29761: 29761: constexpr optional() noexcept { } 29761: 29761: constexpr optional(nullopt_t) noexcept { } 29761: 29761: 29761: template, __not_tag<_Up>, 29761: is_constructible<_Tp, _Up>, 29761: is_convertible<_Up, _Tp>> = true> 29761: constexpr 29761: optional(_Up&& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29761: : _Base(std::in_place, std::forward<_Up>(__t)) { } 29761: 29761: template, __not_tag<_Up>, 29761: is_constructible<_Tp, _Up>, 29761: __not_>> = false> 29761: explicit constexpr 29761: optional(_Up&& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29761: : _Base(std::in_place, std::forward<_Up>(__t)) { } 29761: 29761: template>, 29761: is_constructible<_Tp, const _Up&>, 29761: is_convertible, 29761: __not_<__converts_from_optional<_Tp, _Up>>> = true> 29761: constexpr 29761: optional(const optional<_Up>& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 29761: { 29761: if (__t) 29761: emplace(*__t); 29761: } 29761: 29761: template>, 29761: is_constructible<_Tp, const _Up&>, 29761: __not_>, 29761: __not_<__converts_from_optional<_Tp, _Up>>> = false> 29761: explicit constexpr 29761: optional(const optional<_Up>& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) 29761: { 29761: if (__t) 29761: emplace(*__t); 29761: } 29761: 29761: template>, 29761: is_constructible<_Tp, _Up>, 29761: is_convertible<_Up, _Tp>, 29761: __not_<__converts_from_optional<_Tp, _Up>>> = true> 29761: constexpr 29761: optional(optional<_Up>&& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29761: { 29761: if (__t) 29761: emplace(std::move(*__t)); 29761: } 29761: 29761: template>, 29761: is_constructible<_Tp, _Up>, 29761: __not_>, 29761: __not_<__converts_from_optional<_Tp, _Up>>> = false> 29761: explicit constexpr 29761: optional(optional<_Up>&& __t) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Up>) 29761: { 29761: if (__t) 29761: emplace(std::move(*__t)); 29761: } 29761: 29761: template> = false> 29761: explicit constexpr 29761: optional(in_place_t, _Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29761: : _Base(std::in_place, std::forward<_Args>(__args)...) { } 29761: 29761: template&, 29761: _Args...>> = false> 29761: explicit constexpr 29761: optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 29761: _Args...>) 29761: : _Base(std::in_place, __il, std::forward<_Args>(__args)...) { } 29761: 29761: 29761: 29761: optional& 29761: operator=(nullopt_t) noexcept 29761: { 29761: this->_M_reset(); 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: enable_if_t<__and_v<__not_self<_Up>, 29761: __not_<__and_, 29761: is_same<_Tp, decay_t<_Up>>>>, 29761: is_constructible<_Tp, _Up>, 29761: is_assignable<_Tp&, _Up>>, 29761: optional&> 29761: operator=(_Up&& __u) 29761: noexcept(__and_v, 29761: is_nothrow_assignable<_Tp&, _Up>>) 29761: { 29761: if (this->_M_is_engaged()) 29761: this->_M_get() = std::forward<_Up>(__u); 29761: else 29761: this->_M_construct(std::forward<_Up>(__u)); 29761: 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: enable_if_t<__and_v<__not_>, 29761: is_constructible<_Tp, const _Up&>, 29761: is_assignable<_Tp&, const _Up&>, 29761: __not_<__converts_from_optional<_Tp, _Up>>, 29761: __not_<__assigns_from_optional<_Tp, _Up>>>, 29761: optional&> 29761: operator=(const optional<_Up>& __u) 29761: noexcept(__and_v, 29761: is_nothrow_assignable<_Tp&, const _Up&>>) 29761: { 29761: if (__u) 29761: { 29761: if (this->_M_is_engaged()) 29761: this->_M_get() = *__u; 29761: else 29761: this->_M_construct(*__u); 29761: } 29761: else 29761: { 29761: this->_M_reset(); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: enable_if_t<__and_v<__not_>, 29761: is_constructible<_Tp, _Up>, 29761: is_assignable<_Tp&, _Up>, 29761: __not_<__converts_from_optional<_Tp, _Up>>, 29761: __not_<__assigns_from_optional<_Tp, _Up>>>, 29761: optional&> 29761: operator=(optional<_Up>&& __u) 29761: noexcept(__and_v, 29761: is_nothrow_assignable<_Tp&, _Up>>) 29761: { 29761: if (__u) 29761: { 29761: if (this->_M_is_engaged()) 29761: this->_M_get() = std::move(*__u); 29761: else 29761: this->_M_construct(std::move(*__u)); 29761: } 29761: else 29761: { 29761: this->_M_reset(); 29761: } 29761: 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: enable_if_t, _Tp&> 29761: emplace(_Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29761: { 29761: this->_M_reset(); 29761: this->_M_construct(std::forward<_Args>(__args)...); 29761: return this->_M_get(); 29761: } 29761: 29761: template 29761: 29761: enable_if_t&, _Args...>, 29761: _Tp&> 29761: emplace(initializer_list<_Up> __il, _Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, 29761: _Args...>) 29761: { 29761: this->_M_reset(); 29761: this->_M_construct(__il, std::forward<_Args>(__args)...); 29761: return this->_M_get(); 29761: } 29761: 29761: 29761: 29761: 29761: void 29761: swap(optional& __other) 29761: noexcept(is_nothrow_move_constructible_v<_Tp> 29761: && is_nothrow_swappable_v<_Tp>) 29761: { 29761: using std::swap; 29761: 29761: if (this->_M_is_engaged() && __other._M_is_engaged()) 29761: swap(this->_M_get(), __other._M_get()); 29761: else if (this->_M_is_engaged()) 29761: { 29761: __other._M_construct(std::move(this->_M_get())); 29761: this->_M_destruct(); 29761: } 29761: else if (__other._M_is_engaged()) 29761: { 29761: this->_M_construct(std::move(__other._M_get())); 29761: __other._M_destruct(); 29761: } 29761: } 29761: 29761: 29761: constexpr const _Tp* 29761: operator->() const noexcept 29761: { return std::__addressof(this->_M_get()); } 29761: 29761: constexpr _Tp* 29761: operator->() noexcept 29761: { return std::__addressof(this->_M_get()); } 29761: 29761: constexpr const _Tp& 29761: operator*() const& noexcept 29761: { return this->_M_get(); } 29761: 29761: constexpr _Tp& 29761: operator*()& noexcept 29761: { return this->_M_get(); } 29761: 29761: constexpr _Tp&& 29761: operator*()&& noexcept 29761: { return std::move(this->_M_get()); } 29761: 29761: constexpr const _Tp&& 29761: operator*() const&& noexcept 29761: { return std::move(this->_M_get()); } 29761: 29761: constexpr explicit operator bool() const noexcept 29761: { return this->_M_is_engaged(); } 29761: 29761: constexpr bool has_value() const noexcept 29761: { return this->_M_is_engaged(); } 29761: 29761: constexpr const _Tp& 29761: value() const& 29761: { 29761: if (this->_M_is_engaged()) 29761: return this->_M_get(); 29761: __throw_bad_optional_access(); 29761: } 29761: 29761: constexpr _Tp& 29761: value()& 29761: { 29761: if (this->_M_is_engaged()) 29761: return this->_M_get(); 29761: __throw_bad_optional_access(); 29761: } 29761: 29761: constexpr _Tp&& 29761: value()&& 29761: { 29761: if (this->_M_is_engaged()) 29761: return std::move(this->_M_get()); 29761: __throw_bad_optional_access(); 29761: } 29761: 29761: constexpr const _Tp&& 29761: value() const&& 29761: { 29761: if (this->_M_is_engaged()) 29761: return std::move(this->_M_get()); 29761: __throw_bad_optional_access(); 29761: } 29761: 29761: template 29761: constexpr _Tp 29761: value_or(_Up&& __u) const& 29761: { 29761: static_assert(is_copy_constructible_v<_Tp>); 29761: static_assert(is_convertible_v<_Up&&, _Tp>); 29761: 29761: if (this->_M_is_engaged()) 29761: return this->_M_get(); 29761: else 29761: return static_cast<_Tp>(std::forward<_Up>(__u)); 29761: } 29761: 29761: template 29761: constexpr _Tp 29761: value_or(_Up&& __u) && 29761: { 29761: static_assert(is_move_constructible_v<_Tp>); 29761: static_assert(is_convertible_v<_Up&&, _Tp>); 29761: 29761: if (this->_M_is_engaged()) 29761: return std::move(this->_M_get()); 29761: else 29761: return static_cast<_Tp>(std::forward<_Up>(__u)); 29761: } 29761: # 1180 "/usr/include/c++/14/optional" 3 29761: void reset() noexcept { this->_M_reset(); } 29761: 29761: private: 29761: # 1193 "/usr/include/c++/14/optional" 3 29761: }; 29761: 29761: template 29761: using __optional_relop_t = 29761: enable_if_t::value, bool>; 29761: 29761: template 29761: using __optional_eq_t = __optional_relop_t< 29761: decltype(std::declval() == std::declval()) 29761: >; 29761: 29761: template 29761: using __optional_ne_t = __optional_relop_t< 29761: decltype(std::declval() != std::declval()) 29761: >; 29761: 29761: template 29761: using __optional_lt_t = __optional_relop_t< 29761: decltype(std::declval() < std::declval()) 29761: >; 29761: 29761: template 29761: using __optional_gt_t = __optional_relop_t< 29761: decltype(std::declval() > std::declval()) 29761: >; 29761: 29761: template 29761: using __optional_le_t = __optional_relop_t< 29761: decltype(std::declval() <= std::declval()) 29761: >; 29761: 29761: template 29761: using __optional_ge_t = __optional_relop_t< 29761: decltype(std::declval() >= std::declval()) 29761: >; 29761: 29761: 29761: template 29761: constexpr auto 29761: operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_eq_t<_Tp, _Up> 29761: { 29761: return static_cast(__lhs) == static_cast(__rhs) 29761: && (!__lhs || *__lhs == *__rhs); 29761: } 29761: 29761: template 29761: constexpr auto 29761: operator!=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_ne_t<_Tp, _Up> 29761: { 29761: return static_cast(__lhs) != static_cast(__rhs) 29761: || (static_cast(__lhs) && *__lhs != *__rhs); 29761: } 29761: 29761: template 29761: constexpr auto 29761: operator<(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_lt_t<_Tp, _Up> 29761: { 29761: return static_cast(__rhs) && (!__lhs || *__lhs < *__rhs); 29761: } 29761: 29761: template 29761: constexpr auto 29761: operator>(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_gt_t<_Tp, _Up> 29761: { 29761: return static_cast(__lhs) && (!__rhs || *__lhs > *__rhs); 29761: } 29761: 29761: template 29761: constexpr auto 29761: operator<=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_le_t<_Tp, _Up> 29761: { 29761: return !__lhs || (static_cast(__rhs) && *__lhs <= *__rhs); 29761: } 29761: 29761: template 29761: constexpr auto 29761: operator>=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) 29761: -> __optional_ge_t<_Tp, _Up> 29761: { 29761: return !__rhs || (static_cast(__lhs) && *__lhs >= *__rhs); 29761: } 29761: # 1290 "/usr/include/c++/14/optional" 3 29761: template 29761: constexpr bool 29761: operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept 29761: { return !__lhs; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr bool 29761: operator==(nullopt_t, const optional<_Tp>& __rhs) noexcept 29761: { return !__rhs; } 29761: 29761: template 29761: constexpr bool 29761: operator!=(const optional<_Tp>& __lhs, nullopt_t) noexcept 29761: { return static_cast(__lhs); } 29761: 29761: template 29761: constexpr bool 29761: operator!=(nullopt_t, const optional<_Tp>& __rhs) noexcept 29761: { return static_cast(__rhs); } 29761: 29761: template 29761: constexpr bool 29761: operator<(const optional<_Tp>& , nullopt_t) noexcept 29761: { return false; } 29761: 29761: template 29761: constexpr bool 29761: operator<(nullopt_t, const optional<_Tp>& __rhs) noexcept 29761: { return static_cast(__rhs); } 29761: 29761: template 29761: constexpr bool 29761: operator>(const optional<_Tp>& __lhs, nullopt_t) noexcept 29761: { return static_cast(__lhs); } 29761: 29761: template 29761: constexpr bool 29761: operator>(nullopt_t, const optional<_Tp>& ) noexcept 29761: { return false; } 29761: 29761: template 29761: constexpr bool 29761: operator<=(const optional<_Tp>& __lhs, nullopt_t) noexcept 29761: { return !__lhs; } 29761: 29761: template 29761: constexpr bool 29761: operator<=(nullopt_t, const optional<_Tp>& ) noexcept 29761: { return true; } 29761: 29761: template 29761: constexpr bool 29761: operator>=(const optional<_Tp>& , nullopt_t) noexcept 29761: { return true; } 29761: 29761: template 29761: constexpr bool 29761: operator>=(nullopt_t, const optional<_Tp>& __rhs) noexcept 29761: { return !__rhs; } 29761: 29761: 29761: 29761: template 29761: constexpr auto 29761: operator==(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_eq_t<_Tp, _Up> 29761: { return __lhs && *__lhs == __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator==(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_eq_t<_Up, _Tp> 29761: { return __rhs && __lhs == *__rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator!=(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_ne_t<_Tp, _Up> 29761: { return !__lhs || *__lhs != __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator!=(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_ne_t<_Up, _Tp> 29761: { return !__rhs || __lhs != *__rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator<(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_lt_t<_Tp, _Up> 29761: { return !__lhs || *__lhs < __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator<(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_lt_t<_Up, _Tp> 29761: { return __rhs && __lhs < *__rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator>(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_gt_t<_Tp, _Up> 29761: { return __lhs && *__lhs > __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator>(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_gt_t<_Up, _Tp> 29761: { return !__rhs || __lhs > *__rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator<=(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_le_t<_Tp, _Up> 29761: { return !__lhs || *__lhs <= __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator<=(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_le_t<_Up, _Tp> 29761: { return __rhs && __lhs <= *__rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator>=(const optional<_Tp>& __lhs, const _Up& __rhs) 29761: -> __optional_ge_t<_Tp, _Up> 29761: { return __lhs && *__lhs >= __rhs; } 29761: 29761: template 29761: constexpr auto 29761: operator>=(const _Up& __lhs, const optional<_Tp>& __rhs) 29761: -> __optional_ge_t<_Up, _Tp> 29761: { return !__rhs || __lhs >= *__rhs; } 29761: # 1443 "/usr/include/c++/14/optional" 3 29761: template 29761: 29761: inline enable_if_t && is_swappable_v<_Tp>> 29761: swap(optional<_Tp>& __lhs, optional<_Tp>& __rhs) 29761: noexcept(noexcept(__lhs.swap(__rhs))) 29761: { __lhs.swap(__rhs); } 29761: 29761: template 29761: enable_if_t && is_swappable_v<_Tp>)> 29761: swap(optional<_Tp>&, optional<_Tp>&) = delete; 29761: 29761: template 29761: constexpr 29761: enable_if_t, _Tp>, 29761: optional>> 29761: make_optional(_Tp&& __t) 29761: noexcept(is_nothrow_constructible_v>, _Tp>) 29761: { return optional>{ std::forward<_Tp>(__t) }; } 29761: 29761: template 29761: constexpr 29761: enable_if_t, 29761: optional<_Tp>> 29761: make_optional(_Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, _Args...>) 29761: { return optional<_Tp>{ in_place, std::forward<_Args>(__args)... }; } 29761: 29761: template 29761: constexpr 29761: enable_if_t&, _Args...>, 29761: optional<_Tp>> 29761: make_optional(initializer_list<_Up> __il, _Args&&... __args) 29761: noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) 29761: { return optional<_Tp>{ in_place, __il, std::forward<_Args>(__args)... }; } 29761: 29761: 29761: 29761: template, 29761: bool = __poison_hash<_Up>::__enable_hash_call> 29761: struct __optional_hash_call_base 29761: { 29761: size_t 29761: operator()(const optional<_Tp>& __t) const 29761: noexcept(noexcept(hash<_Up>{}(*__t))) 29761: { 29761: 29761: 29761: constexpr size_t __magic_disengaged_hash = static_cast(-3333); 29761: return __t ? hash<_Up>{}(*__t) : __magic_disengaged_hash; 29761: } 29761: }; 29761: 29761: template 29761: struct __optional_hash_call_base<_Tp, _Up, false> {}; 29761: 29761: template 29761: struct hash> 29761: : private __poison_hash>, 29761: public __optional_hash_call_base<_Tp> 29761: { 29761: using result_type [[__deprecated__]] = size_t; 29761: using argument_type [[__deprecated__]] = optional<_Tp>; 29761: }; 29761: 29761: template 29761: struct __is_fast_hash>> : __is_fast_hash> 29761: { }; 29761: 29761: 29761: 29761: 29761: template optional(_Tp) -> optional<_Tp>; 29761: 29761: 29761: 29761: } 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: 29761: # 1 "/usr/include/c++/14/utility" 1 3 29761: # 58 "/usr/include/c++/14/utility" 3 29761: 29761: # 59 "/usr/include/c++/14/utility" 3 29761: # 68 "/usr/include/c++/14/utility" 3 29761: # 1 "/usr/include/c++/14/bits/stl_relops.h" 1 3 29761: # 62 "/usr/include/c++/14/bits/stl_relops.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: namespace rel_ops 29761: { 29761: # 86 "/usr/include/c++/14/bits/stl_relops.h" 3 29761: template 29761: inline bool 29761: operator!=(const _Tp& __x, const _Tp& __y) 29761: { return !(__x == __y); } 29761: # 99 "/usr/include/c++/14/bits/stl_relops.h" 3 29761: template 29761: inline bool 29761: operator>(const _Tp& __x, const _Tp& __y) 29761: { return __y < __x; } 29761: # 112 "/usr/include/c++/14/bits/stl_relops.h" 3 29761: template 29761: inline bool 29761: operator<=(const _Tp& __x, const _Tp& __y) 29761: { return !(__y < __x); } 29761: # 125 "/usr/include/c++/14/bits/stl_relops.h" 3 29761: template 29761: inline bool 29761: operator>=(const _Tp& __x, const _Tp& __y) 29761: { return !(__x < __y); } 29761: } 29761: 29761: 29761: } 29761: # 69 "/usr/include/c++/14/utility" 2 3 29761: # 96 "/usr/include/c++/14/utility" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 97 "/usr/include/c++/14/utility" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: 29761: inline _Tp 29761: exchange(_Tp& __obj, _Up&& __new_val) 29761: noexcept(__and_, 29761: is_nothrow_assignable<_Tp&, _Up>>::value) 29761: { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } 29761: 29761: 29761: 29761: template 29761: [[nodiscard]] 29761: constexpr add_const_t<_Tp>& 29761: as_const(_Tp& __t) noexcept 29761: { return __t; } 29761: 29761: template 29761: void as_const(const _Tp&&) = delete; 29761: # 230 "/usr/include/c++/14/utility" 3 29761: 29761: } 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rocksdb_namespace.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 1 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 29761: 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 1 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 66 "/usr/include/assert.h" 3 4 29761: extern "C" { 29761: 29761: 29761: extern void __assert_fail (const char *__assertion, const char *__file, 29761: unsigned int __line, const char *__function) 29761: noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: extern void __assert_perror_fail (int __errnum, const char *__file, 29761: unsigned int __line, const char *__function) 29761: noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: extern void __assert (const char *__assertion, const char *__file, int __line) 29761: noexcept (true) __attribute__ ((__noreturn__)); 29761: 29761: 29761: } 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29761: 29761: # 1 "/usr/include/c++/14/cstdio" 1 3 29761: # 39 "/usr/include/c++/14/cstdio" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdio" 3 29761: # 24 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29761: # 1 "/usr/include/c++/14/cstring" 1 3 29761: # 39 "/usr/include/c++/14/cstring" 3 29761: 29761: # 40 "/usr/include/c++/14/cstring" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 43 "/usr/include/c++/14/cstring" 2 3 29761: # 1 "/usr/include/string.h" 1 3 4 29761: # 26 "/usr/include/string.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 27 "/usr/include/string.h" 2 3 4 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 34 "/usr/include/string.h" 2 3 4 29761: # 43 "/usr/include/string.h" 3 4 29761: extern void *memcpy (void *__restrict __dest, const void *__restrict __src, 29761: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern void *memmove (void *__dest, const void *__src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: extern void *memccpy (void *__restrict __dest, const void *__restrict __src, 29761: int __c, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); 29761: 29761: 29761: 29761: 29761: extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int memcmp (const void *__s1, const void *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: # 80 "/usr/include/string.h" 3 4 29761: extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern "C++" 29761: { 29761: extern void *memchr (void *__s, int __c, size_t __n) 29761: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern const void *memchr (const void *__s, int __c, size_t __n) 29761: noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) void * 29761: memchr (void *__s, int __c, size_t __n) noexcept (true) 29761: { 29761: return __builtin_memchr (__s, __c, __n); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const void * 29761: memchr (const void *__s, int __c, size_t __n) noexcept (true) 29761: { 29761: return __builtin_memchr (__s, __c, __n); 29761: } 29761: 29761: } 29761: # 115 "/usr/include/string.h" 3 4 29761: extern "C++" void *rawmemchr (void *__s, int __c) 29761: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern "C++" const void *rawmemchr (const void *__s, int __c) 29761: noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" void *memrchr (void *__s, int __c, size_t __n) 29761: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__read_only__, 1, 3))); 29761: extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) 29761: noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__read_only__, 1, 3))); 29761: # 141 "/usr/include/string.h" 3 4 29761: extern char *strcpy (char *__restrict __dest, const char *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern char *strncpy (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern char *strcat (char *__restrict __dest, const char *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern char *strncat (char *__restrict __dest, const char *__restrict __src, 29761: size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int strcmp (const char *__s1, const char *__s2) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern int strncmp (const char *__s1, const char *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int strcoll (const char *__s1, const char *__s2) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: extern size_t strxfrm (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 29761: 29761: 29761: extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, 29761: locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) 29761: __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: 29761: 29761: 29761: 29761: 29761: extern char *strdup (const char *__s) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *strndup (const char *__string, size_t __n) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); 29761: # 224 "/usr/include/string.h" 3 4 29761: extern "C++" 29761: { 29761: extern char *strchr (char *__s, int __c) 29761: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern const char *strchr (const char *__s, int __c) 29761: noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: strchr (char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_strchr (__s, __c); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: strchr (const char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_strchr (__s, __c); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" 29761: { 29761: extern char *strrchr (char *__s, int __c) 29761: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern const char *strrchr (const char *__s, int __c) 29761: noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: strrchr (char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_strrchr (__s, __c); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: strrchr (const char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_strrchr (__s, __c); 29761: } 29761: 29761: } 29761: # 281 "/usr/include/string.h" 3 4 29761: extern "C++" char *strchrnul (char *__s, int __c) 29761: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern "C++" const char *strchrnul (const char *__s, int __c) 29761: noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: # 293 "/usr/include/string.h" 3 4 29761: extern size_t strcspn (const char *__s, const char *__reject) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern size_t strspn (const char *__s, const char *__accept) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern "C++" 29761: { 29761: extern char *strpbrk (char *__s, const char *__accept) 29761: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: extern const char *strpbrk (const char *__s, const char *__accept) 29761: noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: strpbrk (char *__s, const char *__accept) noexcept (true) 29761: { 29761: return __builtin_strpbrk (__s, __accept); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: strpbrk (const char *__s, const char *__accept) noexcept (true) 29761: { 29761: return __builtin_strpbrk (__s, __accept); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" 29761: { 29761: extern char *strstr (char *__haystack, const char *__needle) 29761: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: extern const char *strstr (const char *__haystack, const char *__needle) 29761: noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: strstr (char *__haystack, const char *__needle) noexcept (true) 29761: { 29761: return __builtin_strstr (__haystack, __needle); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: strstr (const char *__haystack, const char *__needle) noexcept (true) 29761: { 29761: return __builtin_strstr (__haystack, __needle); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *strtok (char *__restrict __s, const char *__restrict __delim) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern char *__strtok_r (char *__restrict __s, 29761: const char *__restrict __delim, 29761: char **__restrict __save_ptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29761: 29761: extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, 29761: char **__restrict __save_ptr) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" char *strcasestr (char *__haystack, const char *__needle) 29761: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: extern "C++" const char *strcasestr (const char *__haystack, 29761: const char *__needle) 29761: noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: # 389 "/usr/include/string.h" 3 4 29761: extern void *memmem (const void *__haystack, size_t __haystacklen, 29761: const void *__needle, size_t __needlelen) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) 29761: __attribute__ ((__access__ (__read_only__, 1, 2))) 29761: __attribute__ ((__access__ (__read_only__, 3, 4))); 29761: 29761: 29761: 29761: extern void *__mempcpy (void *__restrict __dest, 29761: const void *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern void *mempcpy (void *__restrict __dest, 29761: const void *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern size_t strlen (const char *__s) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern size_t strnlen (const char *__string, size_t __maxlen) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern char *strerror (int __errnum) noexcept (true); 29761: # 444 "/usr/include/string.h" 3 4 29761: extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: 29761: 29761: extern const char *strerrordesc_np (int __err) noexcept (true); 29761: 29761: extern const char *strerrorname_np (int __err) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); 29761: 29761: 29761: 29761: # 1 "/usr/include/strings.h" 1 3 4 29761: # 23 "/usr/include/strings.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 24 "/usr/include/strings.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: extern int bcmp (const void *__s1, const void *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern void bcopy (const void *__src, void *__dest, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern "C++" 29761: { 29761: extern char *index (char *__s, int __c) 29761: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern const char *index (const char *__s, int __c) 29761: noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: index (char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_index (__s, __c); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: index (const char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_index (__s, __c); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" 29761: { 29761: extern char *rindex (char *__s, int __c) 29761: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: extern const char *rindex (const char *__s, int __c) 29761: noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) char * 29761: rindex (char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_rindex (__s, __c); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) const char * 29761: rindex (const char *__s, int __c) noexcept (true) 29761: { 29761: return __builtin_rindex (__s, __c); 29761: } 29761: 29761: } 29761: # 104 "/usr/include/strings.h" 3 4 29761: extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); 29761: __extension__ extern int ffsll (long long int __ll) 29761: noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern int strcasecmp (const char *__s1, const char *__s2) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); 29761: 29761: 29761: 29761: extern int strncasecmp_l (const char *__s1, const char *__s2, 29761: size_t __n, locale_t __loc) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 1 3 4 29761: # 22 "/usr/include/arm-linux-gnueabihf/bits/strings_fortified.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29761: __attribute__ ((__leaf__)) bcopy (const void *__src, void *__dest, size_t __len) noexcept (true) 29761: { 29761: (void) __builtin___memmove_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29761: __attribute__ ((__leaf__)) bzero (void *__dest, size_t __len) noexcept (true) 29761: { 29761: (void) __builtin___memset_chk (__dest, '\0', __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: # 145 "/usr/include/strings.h" 2 3 4 29761: # 463 "/usr/include/string.h" 2 3 4 29761: 29761: 29761: 29761: extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: 29761: 29761: 29761: extern char *strsep (char **__restrict __stringp, 29761: const char *__restrict __delim) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern char *strsignal (int __sig) noexcept (true); 29761: 29761: 29761: 29761: extern const char *sigabbrev_np (int __sig) noexcept (true); 29761: 29761: 29761: extern const char *sigdescr_np (int __sig) noexcept (true); 29761: 29761: 29761: 29761: extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern char *__stpncpy (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: extern char *stpncpy (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern size_t strlcpy (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 3))); 29761: 29761: 29761: 29761: extern size_t strlcat (char *__restrict __dest, 29761: const char *__restrict __src, size_t __n) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_write__, 1, 3))); 29761: 29761: 29761: 29761: 29761: extern int strverscmp (const char *__s1, const char *__s2) 29761: noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__read_write__, 1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C++" char *basename (char *__filename) 29761: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 29761: extern "C++" const char *basename (const char *__filename) 29761: noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); 29761: # 548 "/usr/include/string.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 1 3 4 29761: # 25 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29761: __attribute__ ((__leaf__)) memcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 29761: 29761: { 29761: return __builtin___memcpy_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29761: __attribute__ ((__leaf__)) memmove (void *__dest, const void *__src, size_t __len) noexcept (true) 29761: { 29761: return __builtin___memmove_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29761: __attribute__ ((__leaf__)) mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __len) noexcept (true) 29761: 29761: { 29761: return __builtin___mempcpy_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: # 56 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void * 29761: __attribute__ ((__leaf__)) memset (void *__dest, int __ch, size_t __len) noexcept (true) 29761: { 29761: return __builtin___memset_chk (__dest, __ch, __len, 29761: __builtin_object_size (__dest, 0)); 29761: } 29761: 29761: 29761: 29761: 29761: void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) void 29761: __attribute__ ((__leaf__)) explicit_bzero (void *__dest, size_t __len) noexcept (true) 29761: { 29761: __explicit_bzero_chk (__dest, __len, __builtin_object_size (__dest, 0)); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) strcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___strcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) stpcpy (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___stpcpy_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) strncpy (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___strncpy_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) stpncpy (char * __dest, const char *__src, size_t __n) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___stpncpy_chk (__dest, __src, __n, 29761: __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: # 135 "/usr/include/arm-linux-gnueabihf/bits/string_fortified.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) strcat (char * __restrict __dest, const char *__restrict __src) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___strcat_chk (__dest, __src, __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) char * 29761: __attribute__ ((__leaf__)) strncat (char * __restrict __dest, const char *__restrict __src, size_t __len) noexcept (true) 29761: 29761: 29761: { 29761: return __builtin___strncat_chk (__dest, __src, __len, 29761: __builtin_object_size (__dest, 2 > 1)); 29761: } 29761: 29761: 29761: extern size_t __strlcpy_chk (char *__dest, const char *__src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: extern size_t __strlcpy_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcpy") 29761: 29761: ; 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) strlcpy (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 29761: 29761: 29761: { 29761: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29761: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 29761: || __n > __builtin_object_size (__dest, 2 > 1))) 29761: return __strlcpy_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 29761: return __strlcpy_alias (__dest, __src, __n); 29761: } 29761: 29761: extern size_t __strlcat_chk (char *__dest, const char *__src, size_t __n, 29761: size_t __destlen) noexcept (true); 29761: extern size_t __strlcat_alias (char *__dest, const char *__src, size_t __n) noexcept (true) __asm__ ("" "strlcat") 29761: 29761: ; 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) strlcat (char * __restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) 29761: 29761: { 29761: if (__builtin_object_size (__dest, 2 > 1) != (size_t) -1 29761: && (!__builtin_constant_p (__n > __builtin_object_size (__dest, 2 > 1)) 29761: || __n > __builtin_object_size (__dest, 2 > 1))) 29761: return __strlcat_chk (__dest, __src, __n, __builtin_object_size (__dest, 2 > 1)); 29761: return __strlcat_alias (__dest, __src, __n); 29761: } 29761: # 549 "/usr/include/string.h" 2 3 4 29761: 29761: 29761: 29761: } 29761: # 44 "/usr/include/c++/14/cstring" 2 3 29761: # 72 "/usr/include/c++/14/cstring" 3 29761: extern "C++" 29761: { 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: using ::memchr; 29761: using ::memcmp; 29761: using ::memcpy; 29761: using ::memmove; 29761: using ::memset; 29761: using ::strcat; 29761: using ::strcmp; 29761: using ::strcoll; 29761: using ::strcpy; 29761: using ::strcspn; 29761: using ::strerror; 29761: using ::strlen; 29761: using ::strncat; 29761: using ::strncmp; 29761: using ::strncpy; 29761: using ::strspn; 29761: 29761: using ::strtok; 29761: 29761: using ::strxfrm; 29761: using ::strchr; 29761: using ::strpbrk; 29761: using ::strrchr; 29761: using ::strstr; 29761: # 125 "/usr/include/c++/14/cstring" 3 29761: 29761: } 29761: } 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29761: 29761: 29761: 29761: 29761: 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29761: namespace rocksdb { 29761: 29761: class Cleanable { 29761: public: 29761: Cleanable(); 29761: 29761: Cleanable(Cleanable&) = delete; 29761: Cleanable& operator=(Cleanable&) = delete; 29761: 29761: 29761: ~Cleanable(); 29761: 29761: 29761: Cleanable(Cleanable&&) noexcept; 29761: Cleanable& operator=(Cleanable&&) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: using CleanupFunction = void (*)(void* arg1, void* arg2); 29761: 29761: 29761: void RegisterCleanup(CleanupFunction function, void* arg1, void* arg2); 29761: 29761: 29761: 29761: void DelegateCleanupsTo(Cleanable* other); 29761: 29761: 29761: inline void Reset() { 29761: DoCleanup(); 29761: cleanup_.function = nullptr; 29761: cleanup_.next = nullptr; 29761: } 29761: 29761: inline bool HasCleanups() { return cleanup_.function != nullptr; } 29761: 29761: protected: 29761: struct Cleanup { 29761: CleanupFunction function; 29761: void* arg1; 29761: void* arg2; 29761: Cleanup* next; 29761: }; 29761: Cleanup cleanup_; 29761: 29761: void RegisterCleanup(Cleanup* c); 29761: 29761: private: 29761: 29761: 29761: 29761: inline void DoCleanup() { 29761: if (cleanup_.function != nullptr) { 29761: (*cleanup_.function)(cleanup_.arg1, cleanup_.arg2); 29761: for (Cleanup* c = cleanup_.next; c != nullptr;) { 29761: (*c->function)(c->arg1, c->arg2); 29761: Cleanup* next = c->next; 29761: delete c; 29761: c = next; 29761: } 29761: } 29761: } 29761: }; 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cleanable.h" 29761: class SharedCleanablePtr { 29761: public: 29761: 29761: SharedCleanablePtr() {} 29761: 29761: SharedCleanablePtr(const SharedCleanablePtr& from); 29761: SharedCleanablePtr(SharedCleanablePtr&& from) noexcept; 29761: SharedCleanablePtr& operator=(const SharedCleanablePtr& from); 29761: SharedCleanablePtr& operator=(SharedCleanablePtr&& from) noexcept; 29761: 29761: ~SharedCleanablePtr(); 29761: 29761: 29761: void Allocate(); 29761: 29761: void Reset(); 29761: 29761: Cleanable& operator*(); 29761: Cleanable* operator->(); 29761: 29761: Cleanable* get(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: void RegisterCopyWith(Cleanable* target); 29761: 29761: 29761: 29761: 29761: void MoveAsCleanupTo(Cleanable* target); 29761: 29761: private: 29761: struct Impl; 29761: Impl* ptr_ = nullptr; 29761: }; 29761: 29761: } 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Slice { 29761: public: 29761: 29761: Slice() : data_(""), size_(0) {} 29761: 29761: 29761: Slice(const char* d, size_t n) : data_(d), size_(n) {} 29761: 29761: 29761: 29761: Slice(const std::string& s) : data_(s.data()), size_(s.size()) {} 29761: 29761: 29761: 29761: Slice(const std::string_view& sv) : data_(sv.data()), size_(sv.size()) {} 29761: 29761: 29761: 29761: Slice(const char* s) : data_(s) { size_ = (s == nullptr) ? 0 : strlen(s); } 29761: 29761: 29761: 29761: Slice(const struct SliceParts& parts, std::string* buf); 29761: 29761: 29761: const char* data() const { return data_; } 29761: 29761: 29761: size_t size() const { return size_; } 29761: 29761: 29761: bool empty() const { return size_ == 0; } 29761: 29761: 29761: 29761: char operator[](size_t n) const { 29761: 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: n < size() 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "n < size()" 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: return data_[n]; 29761: } 29761: 29761: 29761: void clear() { 29761: data_ = ""; 29761: size_ = 0; 29761: } 29761: 29761: 29761: void remove_prefix(size_t n) { 29761: 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: n <= size() 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "n <= size()" 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 80 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: data_ += n; 29761: size_ -= n; 29761: } 29761: 29761: void remove_suffix(size_t n) { 29761: 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: n <= size() 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "n <= size()" 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: size_ -= n; 29761: } 29761: 29761: 29761: 29761: std::string ToString(bool hex = false) const; 29761: 29761: 29761: std::string_view ToStringView() const { 29761: return std::string_view(data_, size_); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool DecodeHex(std::string* result) const; 29761: 29761: 29761: 29761: 29761: 29761: int compare(const Slice& b) const; 29761: 29761: 29761: bool starts_with(const Slice& x) const { 29761: return ((size_ >= x.size_) && (memcmp(data_, x.data_, x.size_) == 0)); 29761: } 29761: 29761: bool ends_with(const Slice& x) const { 29761: return ((size_ >= x.size_) && 29761: (memcmp(data_ + size_ - x.size_, x.data_, x.size_) == 0)); 29761: } 29761: 29761: 29761: size_t difference_offset(const Slice& b) const; 29761: 29761: 29761: const char* data_; 29761: size_t size_; 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class PinnableSlice : public Slice, public Cleanable { 29761: public: 29761: PinnableSlice() { buf_ = &self_space_; } 29761: explicit PinnableSlice(std::string* buf) { buf_ = buf; } 29761: 29761: PinnableSlice(PinnableSlice&& other); 29761: PinnableSlice& operator=(PinnableSlice&& other); 29761: 29761: 29761: PinnableSlice(PinnableSlice&) = delete; 29761: PinnableSlice& operator=(PinnableSlice&) = delete; 29761: 29761: inline void PinSlice(const Slice& s, CleanupFunction f, void* arg1, 29761: void* arg2) { 29761: 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 152 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: pinned_ = true; 29761: data_ = s.data(); 29761: size_ = s.size(); 29761: RegisterCleanup(f, arg1, arg2); 29761: 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: pinned_ 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "pinned_" 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: } 29761: 29761: inline void PinSlice(const Slice& s, Cleanable* cleanable) { 29761: 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: pinned_ = true; 29761: data_ = s.data(); 29761: size_ = s.size(); 29761: if (cleanable != nullptr) { 29761: cleanable->DelegateCleanupsTo(this); 29761: } 29761: 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: pinned_ 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "pinned_" 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: } 29761: 29761: inline void PinSelf(const Slice& slice) { 29761: 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: buf_->assign(slice.data(), slice.size()); 29761: data_ = buf_->data(); 29761: size_ = buf_->size(); 29761: 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: } 29761: 29761: inline void PinSelf() { 29761: 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: data_ = buf_->data(); 29761: size_ = buf_->size(); 29761: 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: !pinned_ 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "!pinned_" 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: } 29761: 29761: void remove_suffix(size_t n) { 29761: 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: n <= size() 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "n <= size()" 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 187 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: if (pinned_) { 29761: size_ -= n; 29761: } else { 29761: buf_->erase(size() - n, n); 29761: PinSelf(); 29761: } 29761: } 29761: 29761: void remove_prefix(size_t n) { 29761: 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: n <= size() 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "n <= size()" 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 197 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: if (pinned_) { 29761: data_ += n; 29761: size_ -= n; 29761: } else { 29761: buf_->erase(0, n); 29761: PinSelf(); 29761: } 29761: } 29761: 29761: void Reset() { 29761: Cleanable::Reset(); 29761: pinned_ = false; 29761: size_ = 0; 29761: } 29761: 29761: inline std::string* GetSelf() { return buf_; } 29761: 29761: inline bool IsPinned() const { return pinned_; } 29761: 29761: private: 29761: friend class PinnableSlice4Test; 29761: std::string self_space_; 29761: std::string* buf_; 29761: bool pinned_ = false; 29761: }; 29761: 29761: 29761: 29761: struct SliceParts { 29761: SliceParts(const Slice* _parts, int _num_parts) 29761: : parts(_parts), num_parts(_num_parts) {} 29761: SliceParts() : parts(nullptr), num_parts(0) {} 29761: 29761: const Slice* parts; 29761: int num_parts; 29761: }; 29761: 29761: inline bool operator==(const Slice& x, const Slice& y) { 29761: return ((x.size() == y.size()) && 29761: (memcmp(x.data(), y.data(), x.size()) == 0)); 29761: } 29761: 29761: inline bool operator!=(const Slice& x, const Slice& y) { return !(x == y); } 29761: 29761: inline int Slice::compare(const Slice& b) const { 29761: 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: (static_cast ( 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: data_ != nullptr && b.data_ != nullptr 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: "data_ != nullptr && b.data_ != nullptr" 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice.h" 29761: ; 29761: const size_t min_len = (size_ < b.size_) ? size_ : b.size_; 29761: int r = memcmp(data_, b.data_, min_len); 29761: if (r == 0) { 29761: if (size_ < b.size_) 29761: r = -1; 29761: else if (size_ > b.size_) 29761: r = +1; 29761: } 29761: return r; 29761: } 29761: 29761: inline size_t Slice::difference_offset(const Slice& b) const { 29761: size_t off = 0; 29761: const size_t len = (size_ < b.size_) ? size_ : b.size_; 29761: for (; off < len; off++) { 29761: if (data_[off] != b.data_[off]) break; 29761: } 29761: return off; 29761: } 29761: 29761: } 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/status.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Status { 29761: public: 29761: 29761: Status() 29761: : code_(kOk), 29761: subcode_(kNone), 29761: sev_(kNoError), 29761: retryable_(false), 29761: data_loss_(false), 29761: scope_(0), 29761: state_(nullptr) {} 29761: ~Status() { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: Status(const Status& s); 29761: Status& operator=(const Status& s); 29761: Status(Status&& s) noexcept; 29761: Status& operator=(Status&& s) noexcept; 29761: bool operator==(const Status& rhs) const; 29761: bool operator!=(const Status& rhs) const; 29761: 29761: 29761: 29761: 29761: inline void PermitUncheckedError() const { MarkChecked(); } 29761: 29761: inline void MustCheck() const { 29761: 29761: 29761: 29761: } 29761: 29761: enum Code : unsigned char { 29761: kOk = 0, 29761: kNotFound = 1, 29761: kCorruption = 2, 29761: kNotSupported = 3, 29761: kInvalidArgument = 4, 29761: kIOError = 5, 29761: kMergeInProgress = 6, 29761: kIncomplete = 7, 29761: kShutdownInProgress = 8, 29761: kTimedOut = 9, 29761: kAborted = 10, 29761: kBusy = 11, 29761: kExpired = 12, 29761: kTryAgain = 13, 29761: kCompactionTooLarge = 14, 29761: kColumnFamilyDropped = 15, 29761: kMaxCode 29761: }; 29761: 29761: Code code() const { 29761: MarkChecked(); 29761: return code_; 29761: } 29761: 29761: enum SubCode : unsigned char { 29761: kNone = 0, 29761: kMutexTimeout = 1, 29761: kLockTimeout = 2, 29761: kLockLimit = 3, 29761: kNoSpace = 4, 29761: kDeadlock = 5, 29761: kStaleFile = 6, 29761: kMemoryLimit = 7, 29761: kSpaceLimit = 8, 29761: kPathNotFound = 9, 29761: KMergeOperandsInsufficientCapacity = 10, 29761: kManualCompactionPaused = 11, 29761: kOverwritten = 12, 29761: kTxnNotPrepared = 13, 29761: kIOFenced = 14, 29761: kMergeOperatorFailed = 15, 29761: kMergeOperandThresholdExceeded = 16, 29761: kMaxSubCode 29761: }; 29761: 29761: SubCode subcode() const { 29761: MarkChecked(); 29761: return subcode_; 29761: } 29761: 29761: enum Severity : unsigned char { 29761: kNoError = 0, 29761: kSoftError = 1, 29761: kHardError = 2, 29761: kFatalError = 3, 29761: kUnrecoverableError = 4, 29761: kMaxSeverity 29761: }; 29761: 29761: Status(const Status& s, Severity sev); 29761: 29761: Status(Code _code, SubCode _subcode, Severity _sev, const Slice& msg) 29761: : Status(_code, _subcode, msg, "", _sev) {} 29761: 29761: static Status CopyAppendMessage(const Status& s, const Slice& delim, 29761: const Slice& msg); 29761: 29761: Severity severity() const { 29761: MarkChecked(); 29761: return sev_; 29761: } 29761: 29761: 29761: const char* getState() const { 29761: MarkChecked(); 29761: return state_.get(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: Status& UpdateIfOk(Status&& s) { 29761: if (code() == kOk) { 29761: *this = std::move(s); 29761: } else { 29761: 29761: s.PermitUncheckedError(); 29761: } 29761: MustCheck(); 29761: return *this; 29761: } 29761: 29761: Status& UpdateIfOk(const Status& s) { 29761: return UpdateIfOk(std::forward(Status(s))); 29761: } 29761: 29761: 29761: static Status OK() { return Status(); } 29761: 29761: 29761: 29761: 29761: 29761: static Status OkOverwritten() { return Status(kOk, kOverwritten); } 29761: 29761: 29761: 29761: 29761: 29761: static Status OkMergeOperandThresholdExceeded() { 29761: return Status(kOk, kMergeOperandThresholdExceeded); 29761: } 29761: 29761: 29761: static Status NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kNotFound, msg, msg2); 29761: } 29761: 29761: 29761: static Status NotFound(SubCode msg = kNone) { return Status(kNotFound, msg); } 29761: 29761: static Status NotFound(SubCode sc, const Slice& msg, 29761: const Slice& msg2 = Slice()) { 29761: return Status(kNotFound, sc, msg, msg2); 29761: } 29761: 29761: static Status Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kCorruption, msg, msg2); 29761: } 29761: static Status Corruption(SubCode msg = kNone) { 29761: return Status(kCorruption, msg); 29761: } 29761: 29761: static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kNotSupported, msg, msg2); 29761: } 29761: static Status NotSupported(SubCode msg = kNone) { 29761: return Status(kNotSupported, msg); 29761: } 29761: 29761: static Status InvalidArgument(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kInvalidArgument, msg, msg2); 29761: } 29761: static Status InvalidArgument(SubCode msg = kNone) { 29761: return Status(kInvalidArgument, msg); 29761: } 29761: 29761: static Status IOError(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kIOError, msg, msg2); 29761: } 29761: static Status IOError(SubCode msg = kNone) { return Status(kIOError, msg); } 29761: 29761: static Status MergeInProgress(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kMergeInProgress, msg, msg2); 29761: } 29761: static Status MergeInProgress(SubCode msg = kNone) { 29761: return Status(kMergeInProgress, msg); 29761: } 29761: 29761: static Status Incomplete(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kIncomplete, msg, msg2); 29761: } 29761: static Status Incomplete(SubCode msg = kNone) { 29761: return Status(kIncomplete, msg); 29761: } 29761: 29761: static Status ShutdownInProgress(SubCode msg = kNone) { 29761: return Status(kShutdownInProgress, msg); 29761: } 29761: static Status ShutdownInProgress(const Slice& msg, 29761: const Slice& msg2 = Slice()) { 29761: return Status(kShutdownInProgress, msg, msg2); 29761: } 29761: static Status Aborted(SubCode msg = kNone) { return Status(kAborted, msg); } 29761: static Status Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kAborted, msg, msg2); 29761: } 29761: 29761: static Status Busy(SubCode msg = kNone) { return Status(kBusy, msg); } 29761: static Status Busy(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kBusy, msg, msg2); 29761: } 29761: 29761: static Status TimedOut(SubCode msg = kNone) { return Status(kTimedOut, msg); } 29761: static Status TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kTimedOut, msg, msg2); 29761: } 29761: 29761: static Status Expired(SubCode msg = kNone) { return Status(kExpired, msg); } 29761: static Status Expired(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kExpired, msg, msg2); 29761: } 29761: 29761: static Status TryAgain(SubCode msg = kNone) { return Status(kTryAgain, msg); } 29761: static Status TryAgain(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kTryAgain, msg, msg2); 29761: } 29761: 29761: static Status CompactionTooLarge(SubCode msg = kNone) { 29761: return Status(kCompactionTooLarge, msg); 29761: } 29761: static Status CompactionTooLarge(const Slice& msg, 29761: const Slice& msg2 = Slice()) { 29761: return Status(kCompactionTooLarge, msg, msg2); 29761: } 29761: 29761: static Status ColumnFamilyDropped(SubCode msg = kNone) { 29761: return Status(kColumnFamilyDropped, msg); 29761: } 29761: 29761: static Status ColumnFamilyDropped(const Slice& msg, 29761: const Slice& msg2 = Slice()) { 29761: return Status(kColumnFamilyDropped, msg, msg2); 29761: } 29761: 29761: static Status NoSpace() { return Status(kIOError, kNoSpace); } 29761: static Status NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kIOError, kNoSpace, msg, msg2); 29761: } 29761: 29761: static Status MemoryLimit() { return Status(kAborted, kMemoryLimit); } 29761: static Status MemoryLimit(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kAborted, kMemoryLimit, msg, msg2); 29761: } 29761: 29761: static Status SpaceLimit() { return Status(kIOError, kSpaceLimit); } 29761: static Status SpaceLimit(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kIOError, kSpaceLimit, msg, msg2); 29761: } 29761: 29761: static Status PathNotFound() { return Status(kIOError, kPathNotFound); } 29761: static Status PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kIOError, kPathNotFound, msg, msg2); 29761: } 29761: 29761: static Status TxnNotPrepared() { 29761: return Status(kInvalidArgument, kTxnNotPrepared); 29761: } 29761: static Status TxnNotPrepared(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return Status(kInvalidArgument, kTxnNotPrepared, msg, msg2); 29761: } 29761: 29761: 29761: bool ok() const { 29761: MarkChecked(); 29761: return code() == kOk; 29761: } 29761: 29761: 29761: 29761: bool IsOkOverwritten() const { 29761: MarkChecked(); 29761: return code() == kOk && subcode() == kOverwritten; 29761: } 29761: 29761: 29761: 29761: bool IsOkMergeOperandThresholdExceeded() const { 29761: MarkChecked(); 29761: return code() == kOk && subcode() == kMergeOperandThresholdExceeded; 29761: } 29761: 29761: 29761: bool IsNotFound() const { 29761: MarkChecked(); 29761: return code() == kNotFound; 29761: } 29761: 29761: 29761: bool IsCorruption() const { 29761: MarkChecked(); 29761: return code() == kCorruption; 29761: } 29761: 29761: 29761: bool IsNotSupported() const { 29761: MarkChecked(); 29761: return code() == kNotSupported; 29761: } 29761: 29761: 29761: bool IsInvalidArgument() const { 29761: MarkChecked(); 29761: return code() == kInvalidArgument; 29761: } 29761: 29761: 29761: bool IsIOError() const { 29761: MarkChecked(); 29761: return code() == kIOError; 29761: } 29761: 29761: 29761: bool IsMergeInProgress() const { 29761: MarkChecked(); 29761: return code() == kMergeInProgress; 29761: } 29761: 29761: 29761: bool IsIncomplete() const { 29761: MarkChecked(); 29761: return code() == kIncomplete; 29761: } 29761: 29761: 29761: bool IsShutdownInProgress() const { 29761: MarkChecked(); 29761: return code() == kShutdownInProgress; 29761: } 29761: 29761: bool IsTimedOut() const { 29761: MarkChecked(); 29761: return code() == kTimedOut; 29761: } 29761: 29761: bool IsAborted() const { 29761: MarkChecked(); 29761: return code() == kAborted; 29761: } 29761: 29761: bool IsLockLimit() const { 29761: MarkChecked(); 29761: return code() == kAborted && subcode() == kLockLimit; 29761: } 29761: 29761: 29761: 29761: bool IsBusy() const { 29761: MarkChecked(); 29761: return code() == kBusy; 29761: } 29761: 29761: bool IsDeadlock() const { 29761: MarkChecked(); 29761: return code() == kBusy && subcode() == kDeadlock; 29761: } 29761: 29761: 29761: bool IsExpired() const { 29761: MarkChecked(); 29761: return code() == kExpired; 29761: } 29761: 29761: 29761: 29761: 29761: bool IsTryAgain() const { 29761: MarkChecked(); 29761: return code() == kTryAgain; 29761: } 29761: 29761: 29761: bool IsCompactionTooLarge() const { 29761: MarkChecked(); 29761: return code() == kCompactionTooLarge; 29761: } 29761: 29761: 29761: bool IsColumnFamilyDropped() const { 29761: MarkChecked(); 29761: return code() == kColumnFamilyDropped; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool IsNoSpace() const { 29761: MarkChecked(); 29761: return (code() == kIOError) && (subcode() == kNoSpace); 29761: } 29761: 29761: 29761: 29761: 29761: bool IsMemoryLimit() const { 29761: MarkChecked(); 29761: return (code() == kAborted) && (subcode() == kMemoryLimit); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: bool IsPathNotFound() const { 29761: MarkChecked(); 29761: return (code() == kIOError || code() == kNotFound) && 29761: (subcode() == kPathNotFound); 29761: } 29761: 29761: 29761: 29761: bool IsManualCompactionPaused() const { 29761: MarkChecked(); 29761: return (code() == kIncomplete) && (subcode() == kManualCompactionPaused); 29761: } 29761: 29761: 29761: bool IsTxnNotPrepared() const { 29761: MarkChecked(); 29761: return (code() == kInvalidArgument) && (subcode() == kTxnNotPrepared); 29761: } 29761: 29761: 29761: bool IsIOFenced() const { 29761: MarkChecked(); 29761: return (code() == kIOError) && (subcode() == kIOFenced); 29761: } 29761: 29761: 29761: 29761: std::string ToString() const; 29761: 29761: protected: 29761: Code code_; 29761: SubCode subcode_; 29761: Severity sev_; 29761: bool retryable_; 29761: bool data_loss_; 29761: unsigned char scope_; 29761: 29761: 29761: std::unique_ptr state_; 29761: 29761: 29761: 29761: 29761: explicit Status(Code _code, SubCode _subcode = kNone) 29761: : code_(_code), 29761: subcode_(_subcode), 29761: sev_(kNoError), 29761: retryable_(false), 29761: data_loss_(false), 29761: scope_(0) {} 29761: 29761: explicit Status(Code _code, SubCode _subcode, bool retryable, bool data_loss, 29761: unsigned char scope) 29761: : code_(_code), 29761: subcode_(_subcode), 29761: sev_(kNoError), 29761: retryable_(retryable), 29761: data_loss_(data_loss), 29761: scope_(scope) {} 29761: 29761: Status(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2, 29761: Severity sev = kNoError); 29761: Status(Code _code, const Slice& msg, const Slice& msg2) 29761: : Status(_code, kNone, msg, msg2) {} 29761: 29761: static std::unique_ptr CopyState(const char* s); 29761: 29761: inline void MarkChecked() const { 29761: 29761: 29761: 29761: } 29761: }; 29761: 29761: inline Status::Status(const Status& s) 29761: : code_(s.code_), 29761: subcode_(s.subcode_), 29761: sev_(s.sev_), 29761: retryable_(s.retryable_), 29761: data_loss_(s.data_loss_), 29761: scope_(s.scope_) { 29761: s.MarkChecked(); 29761: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29761: } 29761: inline Status::Status(const Status& s, Severity sev) 29761: : code_(s.code_), 29761: subcode_(s.subcode_), 29761: sev_(sev), 29761: retryable_(s.retryable_), 29761: data_loss_(s.data_loss_), 29761: scope_(s.scope_) { 29761: s.MarkChecked(); 29761: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29761: } 29761: inline Status& Status::operator=(const Status& s) { 29761: if (this != &s) { 29761: s.MarkChecked(); 29761: MustCheck(); 29761: code_ = s.code_; 29761: subcode_ = s.subcode_; 29761: sev_ = s.sev_; 29761: retryable_ = s.retryable_; 29761: data_loss_ = s.data_loss_; 29761: scope_ = s.scope_; 29761: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29761: } 29761: return *this; 29761: } 29761: 29761: inline Status::Status(Status&& s) noexcept : Status() { 29761: s.MarkChecked(); 29761: *this = std::move(s); 29761: } 29761: 29761: inline Status& Status::operator=(Status&& s) noexcept { 29761: if (this != &s) { 29761: s.MarkChecked(); 29761: MustCheck(); 29761: code_ = std::move(s.code_); 29761: s.code_ = kOk; 29761: subcode_ = std::move(s.subcode_); 29761: s.subcode_ = kNone; 29761: sev_ = std::move(s.sev_); 29761: s.sev_ = kNoError; 29761: retryable_ = std::move(s.retryable_); 29761: s.retryable_ = false; 29761: data_loss_ = std::move(s.data_loss_); 29761: s.data_loss_ = false; 29761: scope_ = std::move(s.scope_); 29761: s.scope_ = 0; 29761: state_ = std::move(s.state_); 29761: } 29761: return *this; 29761: } 29761: 29761: inline bool Status::operator==(const Status& rhs) const { 29761: MarkChecked(); 29761: rhs.MarkChecked(); 29761: return (code_ == rhs.code_); 29761: } 29761: 29761: inline bool Status::operator!=(const Status& rhs) const { 29761: MarkChecked(); 29761: rhs.MarkChecked(); 29761: return !(*this == rhs); 29761: } 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 2 29761: 29761: namespace rocksdb { 29761: class Logger; 29761: class ObjectRegistry; 29761: class OptionTypeInfo; 29761: struct ColumnFamilyOptions; 29761: struct ConfigOptions; 29761: struct DBOptions; 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: class Configurable { 29761: protected: 29761: friend class ConfigurableHelper; 29761: struct RegisteredOptions { 29761: 29761: std::string name; 29761: 29761: 29761: 29761: intptr_t opt_offset; 29761: 29761: const std::unordered_map* type_map; 29761: }; 29761: 29761: public: 29761: virtual ~Configurable() {} 29761: # 70 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: template 29761: const T* GetOptions() const { 29761: return GetOptions(T::kName()); 29761: } 29761: template 29761: T* GetOptions() { 29761: return GetOptions(T::kName()); 29761: } 29761: template 29761: const T* GetOptions(const std::string& name) const { 29761: return reinterpret_cast(GetOptionsPtr(name)); 29761: } 29761: template 29761: T* GetOptions(const std::string& name) { 29761: 29761: 29761: return reinterpret_cast(const_cast(GetOptionsPtr(name))); 29761: } 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: Status ConfigureFromMap( 29761: const ConfigOptions& config_options, 29761: const std::unordered_map& opt_map); 29761: Status ConfigureFromMap( 29761: const ConfigOptions& config_options, 29761: const std::unordered_map& opt_map, 29761: std::unordered_map* unused); 29761: # 137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: Status ConfigureOption(const ConfigOptions& config_options, 29761: const std::string& name, const std::string& value); 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: Status ConfigureFromString(const ConfigOptions& config_options, 29761: const std::string& opts); 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: Status GetOptionString(const ConfigOptions& config_options, 29761: std::string* result) const; 29761: 29761: 29761: 29761: 29761: 29761: std::string ToString(const ConfigOptions& config_options) const { 29761: return ToString(config_options, ""); 29761: } 29761: std::string ToString(const ConfigOptions& config_options, 29761: const std::string& prefix) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status GetOptionNames(const ConfigOptions& config_options, 29761: std::unordered_set* result) const; 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual Status GetOption(const ConfigOptions& config_options, 29761: const std::string& name, std::string* value) const; 29761: # 212 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual bool AreEquivalent(const ConfigOptions& config_options, 29761: const Configurable* other, 29761: std::string* name) const; 29761: 29761: 29761: 29761: 29761: virtual std::string GetPrintableOptions() const { return ""; } 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual Status PrepareOptions(const ConfigOptions& config_options); 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual Status ValidateOptions(const DBOptions& db_opts, 29761: const ColumnFamilyOptions& cf_opts) const; 29761: # 276 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: static Status GetOptionsMap( 29761: const std::string& opt_value, const std::string& default_id, 29761: std::string* id, std::unordered_map* options); 29761: 29761: protected: 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual const void* GetOptionsPtr(const std::string& name) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status ParseStringOptions(const ConfigOptions& config_options, 29761: const std::string& opts_str); 29761: # 313 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual Status ConfigureOptions( 29761: const ConfigOptions& config_options, 29761: const std::unordered_map& opts_map, 29761: std::unordered_map* unused); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status ParseOption(const ConfigOptions& config_options, 29761: const OptionTypeInfo& opt_info, 29761: const std::string& opt_name, 29761: const std::string& opt_value, void* opt_ptr); 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: virtual bool OptionsAreEqual(const ConfigOptions& config_options, 29761: const OptionTypeInfo& opt_info, 29761: const std::string& name, 29761: const void* const this_ptr, 29761: const void* const that_ptr, 29761: std::string* bad_name) const; 29761: 29761: 29761: virtual std::string SerializeOptions(const ConfigOptions& config_options, 29761: const std::string& header) const; 29761: 29761: 29761: virtual std::string GetOptionName(const std::string& long_name) const; 29761: # 375 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/configurable.h" 29761: template 29761: void RegisterOptions( 29761: T* opt_ptr, 29761: const std::unordered_map* opt_map) { 29761: RegisterOptions(T::kName(), opt_ptr, opt_map); 29761: } 29761: void RegisterOptions( 29761: const std::string& name, void* opt_ptr, 29761: const std::unordered_map* opt_map); 29761: 29761: 29761: inline bool HasRegisteredOptions() const { return !options_.empty(); } 29761: 29761: private: 29761: 29761: 29761: 29761: std::vector options_; 29761: }; 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: # 56 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: class Customizable : public Configurable { 29761: public: 29761: ~Customizable() override {} 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: 29761: 29761: virtual std::string GetId() const { 29761: std::string id = Name(); 29761: return id; 29761: } 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: virtual bool IsInstanceOf(const std::string& name) const { 29761: if (name.empty()) { 29761: return false; 29761: } else if (name == Name()) { 29761: return true; 29761: } else { 29761: const char* nickname = NickName(); 29761: if (nickname != nullptr && name == nickname) { 29761: return true; 29761: } else { 29761: return false; 29761: } 29761: } 29761: } 29761: 29761: const void* GetOptionsPtr(const std::string& name) const override { 29761: const void* ptr = Configurable::GetOptionsPtr(name); 29761: if (ptr != nullptr) { 29761: return ptr; 29761: } else { 29761: const auto inner = Inner(); 29761: if (inner != nullptr) { 29761: return inner->GetOptionsPtr(name); 29761: } else { 29761: return nullptr; 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: const T* CheckedCast() const { 29761: if (IsInstanceOf(T::kClassName())) { 29761: return static_cast(this); 29761: } else { 29761: const auto inner = Inner(); 29761: if (inner != nullptr) { 29761: return inner->CheckedCast(); 29761: } else { 29761: return nullptr; 29761: } 29761: } 29761: } 29761: 29761: template 29761: T* CheckedCast() { 29761: if (IsInstanceOf(T::kClassName())) { 29761: return static_cast(this); 29761: } else { 29761: auto inner = const_cast(Inner()); 29761: if (inner != nullptr) { 29761: return inner->CheckedCast(); 29761: } else { 29761: return nullptr; 29761: } 29761: } 29761: } 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: bool AreEquivalent(const ConfigOptions& config_options, 29761: const Configurable* other, 29761: std::string* mismatch) const override; 29761: 29761: 29761: Status GetOption(const ConfigOptions& config_options, const std::string& name, 29761: std::string* value) const override; 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: static Status GetOptionsMap( 29761: const ConfigOptions& config_options, const Customizable* custom, 29761: const std::string& opt_value, std::string* id, 29761: std::unordered_map* options); 29761: # 195 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: static Status ConfigureNewObject( 29761: const ConfigOptions& config_options, Customizable* object, 29761: const std::unordered_map& options); 29761: 29761: 29761: 29761: 29761: virtual const Customizable* Inner() const { return nullptr; } 29761: 29761: protected: 29761: # 217 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/customizable.h" 29761: std::string GenerateIndividualId() const; 29761: 29761: 29761: 29761: 29761: virtual const char* NickName() const { return ""; } 29761: 29761: std::string GetOptionName(const std::string& long_name) const override; 29761: std::string SerializeOptions(const ConfigOptions& options, 29761: const std::string& prefix) const override; 29761: }; 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: 29761: 29761: 29761: class CompareInterface { 29761: public: 29761: virtual ~CompareInterface() {} 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: virtual int Compare(const Slice& a, const Slice& b) const = 0; 29761: }; 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: class Comparator : public Customizable, public CompareInterface { 29761: public: 29761: Comparator() : timestamp_size_(0) {} 29761: 29761: Comparator(size_t ts_sz) : timestamp_size_(ts_sz) {} 29761: 29761: Comparator(const Comparator& orig) : timestamp_size_(orig.timestamp_size_) {} 29761: 29761: Comparator& operator=(const Comparator& rhs) { 29761: if (this != &rhs) { 29761: timestamp_size_ = rhs.timestamp_size_; 29761: } 29761: return *this; 29761: } 29761: 29761: ~Comparator() override {} 29761: 29761: static Status CreateFromString(const ConfigOptions& opts, 29761: const std::string& id, 29761: const Comparator** comp); 29761: static const char* Type() { return "Comparator"; } 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: const char* Name() const override = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool Equal(const Slice& a, const Slice& b) const { 29761: return Compare(a, b) == 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void FindShortestSeparator(std::string* start, 29761: const Slice& limit) const = 0; 29761: 29761: 29761: 29761: 29761: virtual void FindShortSuccessor(std::string* key) const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool IsSameLengthImmediateSuccessor(const Slice& , 29761: const Slice& ) const { 29761: return false; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual bool CanKeysWithDifferentByteContentsBeEqual() const { return true; } 29761: 29761: 29761: 29761: virtual const Comparator* GetRootComparator() const { return this; } 29761: 29761: inline size_t timestamp_size() const { return timestamp_size_; } 29761: 29761: 29761: 29761: 29761: virtual Slice GetMaxTimestamp() const { 29761: if (timestamp_size_ == 0) { 29761: return Slice(); 29761: } 29761: 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: (static_cast ( 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: false 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: "false" 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: ; 29761: return Slice(); 29761: } 29761: 29761: 29761: 29761: 29761: virtual Slice GetMinTimestamp() const { 29761: if (timestamp_size_ == 0) { 29761: return Slice(); 29761: } 29761: 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: (static_cast ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: false 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: "false" 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: ; 29761: return Slice(); 29761: } 29761: 29761: 29761: virtual std::string TimestampToString(const Slice& ) const { 29761: return ""; 29761: } 29761: 29761: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 29761: return CompareWithoutTimestamp(a, true, b, true); 29761: } 29761: # 163 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/comparator.h" 29761: virtual int CompareTimestamp(const Slice& , 29761: const Slice& ) const { 29761: return 0; 29761: } 29761: 29761: virtual int CompareWithoutTimestamp(const Slice& a, bool , 29761: const Slice& b, bool ) const { 29761: return Compare(a, b); 29761: } 29761: 29761: virtual bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 29761: return 0 == 29761: CompareWithoutTimestamp(a, true, b, true); 29761: } 29761: 29761: private: 29761: size_t timestamp_size_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: const Comparator* BytewiseComparator(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: const Comparator* ReverseBytewiseComparator(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: const Comparator* BytewiseComparatorWithU64Ts(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: const Comparator* ReverseBytewiseComparatorWithU64Ts(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status DecodeU64Ts(const Slice& ts, uint64_t* int_ts); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Slice EncodeU64Ts(uint64_t ts, std::string* ts_buf); 29761: 29761: 29761: 29761: 29761: Slice MaxU64Ts(); 29761: 29761: 29761: 29761: 29761: Slice MinU64Ts(); 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 1 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: struct ConfigOptions; 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29761: class SliceTransform : public Customizable { 29761: public: 29761: virtual ~SliceTransform(){} 29761: 29761: 29761: const char* Name() const override = 0; 29761: static const char* Type() { return "SliceTransform"; } 29761: 29761: 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& id, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: std::string AsString() const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Slice Transform(const Slice& key) const = 0; 29761: # 71 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29761: virtual bool InDomain(const Slice& key) const = 0; 29761: 29761: 29761: 29761: virtual bool InRange(const Slice& ) const { return false; } 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29761: virtual bool FullLengthEnabled(size_t* ) const { return false; } 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/slice_transform.h" 29761: virtual bool SameResultWhenAppended(const Slice& ) const { 29761: return false; 29761: } 29761: }; 29761: 29761: 29761: 29761: const SliceTransform* NewFixedPrefixTransform(size_t prefix_len); 29761: 29761: 29761: 29761: const SliceTransform* NewCappedPrefixTransform(size_t cap_len); 29761: 29761: 29761: const SliceTransform* NewNoopTransform(); 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/types.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/types.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: using ColumnFamilyId = uint32_t; 29761: 29761: 29761: using SequenceNumber = uint64_t; 29761: 29761: struct TableProperties; 29761: using TablePropertiesCollection = 29761: std::unordered_map>; 29761: 29761: const SequenceNumber kMinUnCommittedSeq = 1; 29761: 29761: enum class TableFileCreationReason { 29761: kFlush, 29761: kCompaction, 29761: kRecovery, 29761: kMisc, 29761: }; 29761: 29761: enum class BlobFileCreationReason { 29761: kFlush, 29761: kCompaction, 29761: kRecovery, 29761: }; 29761: 29761: 29761: 29761: enum FileType { 29761: kWalFile, 29761: kDBLockFile, 29761: kTableFile, 29761: kDescriptorFile, 29761: kCurrentFile, 29761: kTempFile, 29761: kInfoLogFile, 29761: kMetaDatabase, 29761: kIdentityFile, 29761: kOptionsFile, 29761: kBlobFile 29761: }; 29761: 29761: 29761: 29761: enum EntryType { 29761: kEntryPut, 29761: kEntryDelete, 29761: kEntrySingleDelete, 29761: kEntryMerge, 29761: kEntryRangeDeletion, 29761: kEntryBlobIndex, 29761: kEntryDeleteWithTimestamp, 29761: kEntryWideColumnEntity, 29761: kEntryTimedPut, 29761: kEntryOther, 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: struct ParsedEntryInfo { 29761: Slice user_key; 29761: Slice timestamp; 29761: SequenceNumber sequence; 29761: EntryType type; 29761: }; 29761: 29761: enum class WriteStallCause { 29761: 29761: 29761: 29761: kMemtableLimit, 29761: kL0FileCountLimit, 29761: kPendingCompactionBytes, 29761: kCFScopeWriteStallCauseEnumMax, 29761: 29761: 29761: 29761: 29761: 29761: kWriteBufferManagerLimit, 29761: kDBScopeWriteStallCauseEnumMax, 29761: 29761: 29761: 29761: kNone, 29761: }; 29761: 29761: enum class WriteStallCondition { 29761: kDelayed, 29761: kStopped, 29761: 29761: kNormal, 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: enum class Temperature : uint8_t { 29761: kUnknown = 0, 29761: kHot = 0x04, 29761: kWarm = 0x08, 29761: kCold = 0x0C, 29761: kLastTemperature, 29761: }; 29761: 29761: } 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 1 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 29761: 29761: # 1 "/usr/include/c++/14/algorithm" 1 3 29761: # 58 "/usr/include/c++/14/algorithm" 3 29761: 29761: # 59 "/usr/include/c++/14/algorithm" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_algo.h" 1 3 29761: # 59 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: # 1 "/usr/include/c++/14/bits/algorithmfwd.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: 29761: # 42 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 195 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: template 29761: 29761: bool 29761: all_of(_IIter, _IIter, _Predicate); 29761: 29761: template 29761: 29761: bool 29761: any_of(_IIter, _IIter, _Predicate); 29761: 29761: 29761: template 29761: 29761: bool 29761: binary_search(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: bool 29761: binary_search(_FIter, _FIter, const _Tp&, _Compare); 29761: 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: clamp(const _Tp&, const _Tp&, const _Tp&); 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: clamp(const _Tp&, const _Tp&, const _Tp&, _Compare); 29761: 29761: 29761: template 29761: 29761: _OIter 29761: copy(_IIter, _IIter, _OIter); 29761: 29761: template 29761: 29761: _BIter2 29761: copy_backward(_BIter1, _BIter1, _BIter2); 29761: 29761: 29761: template 29761: 29761: _OIter 29761: copy_if(_IIter, _IIter, _OIter, _Predicate); 29761: 29761: template 29761: 29761: _OIter 29761: copy_n(_IIter, _Size, _OIter); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: pair<_FIter, _FIter> 29761: equal_range(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: pair<_FIter, _FIter> 29761: equal_range(_FIter, _FIter, const _Tp&, _Compare); 29761: 29761: template 29761: 29761: void 29761: fill(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: _OIter 29761: fill_n(_OIter, _Size, const _Tp&); 29761: 29761: 29761: 29761: template 29761: 29761: _FIter1 29761: find_end(_FIter1, _FIter1, _FIter2, _FIter2); 29761: 29761: template 29761: 29761: _FIter1 29761: find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _IIter 29761: find_if_not(_IIter, _IIter, _Predicate); 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: bool 29761: includes(_IIter1, _IIter1, _IIter2, _IIter2); 29761: 29761: template 29761: 29761: bool 29761: includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 29761: 29761: template 29761: void 29761: inplace_merge(_BIter, _BIter, _BIter); 29761: 29761: template 29761: void 29761: inplace_merge(_BIter, _BIter, _BIter, _Compare); 29761: 29761: 29761: template 29761: 29761: bool 29761: is_heap(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: bool 29761: is_heap(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: _RAIter 29761: is_heap_until(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: _RAIter 29761: is_heap_until(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: bool 29761: is_partitioned(_IIter, _IIter, _Predicate); 29761: 29761: template 29761: 29761: bool 29761: is_permutation(_FIter1, _FIter1, _FIter2); 29761: 29761: template 29761: 29761: bool 29761: is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); 29761: 29761: template 29761: 29761: bool 29761: is_sorted(_FIter, _FIter); 29761: 29761: template 29761: 29761: bool 29761: is_sorted(_FIter, _FIter, _Compare); 29761: 29761: template 29761: 29761: _FIter 29761: is_sorted_until(_FIter, _FIter); 29761: 29761: template 29761: 29761: _FIter 29761: is_sorted_until(_FIter, _FIter, _Compare); 29761: 29761: 29761: template 29761: 29761: void 29761: iter_swap(_FIter1, _FIter2); 29761: 29761: template 29761: 29761: _FIter 29761: lower_bound(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: _FIter 29761: lower_bound(_FIter, _FIter, const _Tp&, _Compare); 29761: 29761: template 29761: 29761: void 29761: make_heap(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: make_heap(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: max(const _Tp&, const _Tp&); 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: max(const _Tp&, const _Tp&, _Compare); 29761: 29761: 29761: 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: min(const _Tp&, const _Tp&); 29761: 29761: template 29761: constexpr 29761: const _Tp& 29761: min(const _Tp&, const _Tp&, _Compare); 29761: 29761: 29761: 29761: 29761: template 29761: constexpr 29761: pair 29761: minmax(const _Tp&, const _Tp&); 29761: 29761: template 29761: constexpr 29761: pair 29761: minmax(const _Tp&, const _Tp&, _Compare); 29761: 29761: template 29761: constexpr 29761: pair<_FIter, _FIter> 29761: minmax_element(_FIter, _FIter); 29761: 29761: template 29761: constexpr 29761: pair<_FIter, _FIter> 29761: minmax_element(_FIter, _FIter, _Compare); 29761: 29761: template 29761: constexpr 29761: _Tp 29761: min(initializer_list<_Tp>); 29761: 29761: template 29761: constexpr 29761: _Tp 29761: min(initializer_list<_Tp>, _Compare); 29761: 29761: template 29761: constexpr 29761: _Tp 29761: max(initializer_list<_Tp>); 29761: 29761: template 29761: constexpr 29761: _Tp 29761: max(initializer_list<_Tp>, _Compare); 29761: 29761: template 29761: constexpr 29761: pair<_Tp, _Tp> 29761: minmax(initializer_list<_Tp>); 29761: 29761: template 29761: constexpr 29761: pair<_Tp, _Tp> 29761: minmax(initializer_list<_Tp>, _Compare); 29761: 29761: 29761: 29761: 29761: template 29761: 29761: bool 29761: next_permutation(_BIter, _BIter); 29761: 29761: template 29761: 29761: bool 29761: next_permutation(_BIter, _BIter, _Compare); 29761: 29761: 29761: template 29761: 29761: bool 29761: none_of(_IIter, _IIter, _Predicate); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _RAIter 29761: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); 29761: 29761: template 29761: 29761: _RAIter 29761: partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); 29761: 29761: 29761: 29761: 29761: template 29761: 29761: pair<_OIter1, _OIter2> 29761: partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); 29761: 29761: template 29761: 29761: _FIter 29761: partition_point(_FIter, _FIter, _Predicate); 29761: 29761: 29761: template 29761: 29761: void 29761: pop_heap(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: pop_heap(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: bool 29761: prev_permutation(_BIter, _BIter); 29761: 29761: template 29761: 29761: bool 29761: prev_permutation(_BIter, _BIter, _Compare); 29761: 29761: template 29761: 29761: void 29761: push_heap(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: push_heap(_RAIter, _RAIter, _Compare); 29761: 29761: 29761: 29761: template 29761: 29761: _FIter 29761: remove(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: _FIter 29761: remove_if(_FIter, _FIter, _Predicate); 29761: 29761: template 29761: 29761: _OIter 29761: remove_copy(_IIter, _IIter, _OIter, const _Tp&); 29761: 29761: template 29761: 29761: _OIter 29761: remove_copy_if(_IIter, _IIter, _OIter, _Predicate); 29761: 29761: 29761: 29761: template 29761: 29761: _OIter 29761: replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); 29761: 29761: template 29761: 29761: _OIter 29761: replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: reverse(_BIter, _BIter); 29761: 29761: template 29761: 29761: _OIter 29761: reverse_copy(_BIter, _BIter, _OIter); 29761: 29761: inline namespace _V2 { 29761: 29761: template 29761: 29761: _FIter 29761: rotate(_FIter, _FIter, _FIter); 29761: 29761: } 29761: 29761: template 29761: 29761: _OIter 29761: rotate_copy(_FIter, _FIter, _FIter, _OIter); 29761: # 622 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: template 29761: void 29761: shuffle(_RAIter, _RAIter, _UGenerator&&); 29761: 29761: 29761: template 29761: 29761: void 29761: sort_heap(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: sort_heap(_RAIter, _RAIter, _Compare); 29761: 29761: 29761: template 29761: _BIter 29761: stable_partition(_BIter, _BIter, _Predicate); 29761: # 657 "/usr/include/c++/14/bits/algorithmfwd.h" 3 29761: template 29761: 29761: _FIter2 29761: swap_ranges(_FIter1, _FIter1, _FIter2); 29761: 29761: 29761: 29761: template 29761: 29761: _FIter 29761: unique(_FIter, _FIter); 29761: 29761: template 29761: 29761: _FIter 29761: unique(_FIter, _FIter, _BinaryPredicate); 29761: 29761: 29761: 29761: template 29761: 29761: _FIter 29761: upper_bound(_FIter, _FIter, const _Tp&); 29761: 29761: template 29761: 29761: _FIter 29761: upper_bound(_FIter, _FIter, const _Tp&, _Compare); 29761: 29761: 29761: 29761: template 29761: 29761: _FIter 29761: adjacent_find(_FIter, _FIter); 29761: 29761: template 29761: 29761: _FIter 29761: adjacent_find(_FIter, _FIter, _BinaryPredicate); 29761: 29761: template 29761: 29761: typename iterator_traits<_IIter>::difference_type 29761: count(_IIter, _IIter, const _Tp&); 29761: 29761: template 29761: 29761: typename iterator_traits<_IIter>::difference_type 29761: count_if(_IIter, _IIter, _Predicate); 29761: 29761: template 29761: 29761: bool 29761: equal(_IIter1, _IIter1, _IIter2); 29761: 29761: template 29761: 29761: bool 29761: equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 29761: 29761: template 29761: 29761: _IIter 29761: find(_IIter, _IIter, const _Tp&); 29761: 29761: template 29761: 29761: _FIter1 29761: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); 29761: 29761: template 29761: 29761: _FIter1 29761: find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29761: 29761: template 29761: 29761: _IIter 29761: find_if(_IIter, _IIter, _Predicate); 29761: 29761: template 29761: 29761: _Funct 29761: for_each(_IIter, _IIter, _Funct); 29761: 29761: template 29761: 29761: void 29761: generate(_FIter, _FIter, _Generator); 29761: 29761: template 29761: 29761: _OIter 29761: generate_n(_OIter, _Size, _Generator); 29761: 29761: template 29761: 29761: bool 29761: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); 29761: 29761: template 29761: 29761: bool 29761: lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); 29761: 29761: template 29761: constexpr 29761: _FIter 29761: max_element(_FIter, _FIter); 29761: 29761: template 29761: constexpr 29761: _FIter 29761: max_element(_FIter, _FIter, _Compare); 29761: 29761: template 29761: 29761: _OIter 29761: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29761: 29761: template 29761: constexpr 29761: _FIter 29761: min_element(_FIter, _FIter); 29761: 29761: template 29761: constexpr 29761: _FIter 29761: min_element(_FIter, _FIter, _Compare); 29761: 29761: template 29761: 29761: pair<_IIter1, _IIter2> 29761: mismatch(_IIter1, _IIter1, _IIter2); 29761: 29761: template 29761: 29761: pair<_IIter1, _IIter2> 29761: mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); 29761: 29761: template 29761: 29761: void 29761: nth_element(_RAIter, _RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: nth_element(_RAIter, _RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: void 29761: partial_sort(_RAIter, _RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: partial_sort(_RAIter, _RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: _BIter 29761: partition(_BIter, _BIter, _Predicate); 29761: 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29761: void 29761: random_shuffle(_RAIter, _RAIter); 29761: 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29761: void 29761: random_shuffle(_RAIter, _RAIter, 29761: 29761: _Generator&&); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: replace(_FIter, _FIter, const _Tp&, const _Tp&); 29761: 29761: template 29761: 29761: void 29761: replace_if(_FIter, _FIter, _Predicate, const _Tp&); 29761: 29761: template 29761: 29761: _FIter1 29761: search(_FIter1, _FIter1, _FIter2, _FIter2); 29761: 29761: template 29761: 29761: _FIter1 29761: search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); 29761: 29761: template 29761: 29761: _FIter 29761: search_n(_FIter, _FIter, _Size, const _Tp&); 29761: 29761: template 29761: 29761: _FIter 29761: search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); 29761: 29761: template 29761: 29761: _OIter 29761: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29761: 29761: template 29761: 29761: _OIter 29761: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29761: 29761: template 29761: 29761: _OIter 29761: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, 29761: _OIter, _Compare); 29761: 29761: template 29761: 29761: _OIter 29761: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); 29761: 29761: template 29761: 29761: void 29761: sort(_RAIter, _RAIter); 29761: 29761: template 29761: 29761: void 29761: sort(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: void 29761: stable_sort(_RAIter, _RAIter); 29761: 29761: template 29761: void 29761: stable_sort(_RAIter, _RAIter, _Compare); 29761: 29761: template 29761: 29761: _OIter 29761: transform(_IIter, _IIter, _OIter, _UnaryOperation); 29761: 29761: template 29761: 29761: _OIter 29761: transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); 29761: 29761: template 29761: 29761: _OIter 29761: unique_copy(_IIter, _IIter, _OIter); 29761: 29761: template 29761: 29761: _OIter 29761: unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); 29761: 29761: 29761: 29761: } 29761: # 60 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_heap.h" 1 3 29761: # 63 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _Distance 29761: __is_heap_until(_RandomAccessIterator __first, _Distance __n, 29761: _Compare& __comp) 29761: { 29761: _Distance __parent = 0; 29761: for (_Distance __child = 1; __child < __n; ++__child) 29761: { 29761: if (__comp(__first + __parent, __first + __child)) 29761: return __child; 29761: if ((__child & 1) == 0) 29761: ++__parent; 29761: } 29761: return __n; 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: inline bool 29761: __is_heap(_RandomAccessIterator __first, _Distance __n) 29761: { 29761: __gnu_cxx::__ops::_Iter_less_iter __comp; 29761: return std::__is_heap_until(__first, __n, __comp) == __n; 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) 29761: { 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: return std::__is_heap_until(__first, __n, __cmp) == __n; 29761: } 29761: 29761: template 29761: 29761: inline bool 29761: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { return std::__is_heap(__first, std::distance(__first, __last)); } 29761: 29761: template 29761: 29761: inline bool 29761: __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: return std::__is_heap(__first, std::move(__comp), 29761: std::distance(__first, __last)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __push_heap(_RandomAccessIterator __first, 29761: _Distance __holeIndex, _Distance __topIndex, _Tp __value, 29761: _Compare& __comp) 29761: { 29761: _Distance __parent = (__holeIndex - 1) / 2; 29761: while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) 29761: { 29761: *(__first + __holeIndex) = std::move(*(__first + __parent)); 29761: __holeIndex = __parent; 29761: __parent = (__holeIndex - 1) / 2; 29761: } 29761: *(__first + __holeIndex) = std::move(__value); 29761: } 29761: # 159 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: __gnu_cxx::__ops::_Iter_less_val __comp; 29761: _ValueType __value = std::move(*(__last - 1)); 29761: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 29761: _DistanceType(0), std::move(__value), __comp); 29761: } 29761: # 195 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 29761: __cmp(std::move(__comp)); 29761: _ValueType __value = std::move(*(__last - 1)); 29761: std::__push_heap(__first, _DistanceType((__last - __first) - 1), 29761: _DistanceType(0), std::move(__value), __cmp); 29761: } 29761: 29761: template 29761: 29761: void 29761: __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, 29761: _Distance __len, _Tp __value, _Compare __comp) 29761: { 29761: const _Distance __topIndex = __holeIndex; 29761: _Distance __secondChild = __holeIndex; 29761: while (__secondChild < (__len - 1) / 2) 29761: { 29761: __secondChild = 2 * (__secondChild + 1); 29761: if (__comp(__first + __secondChild, 29761: __first + (__secondChild - 1))) 29761: __secondChild--; 29761: *(__first + __holeIndex) = std::move(*(__first + __secondChild)); 29761: __holeIndex = __secondChild; 29761: } 29761: if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) 29761: { 29761: __secondChild = 2 * (__secondChild + 1); 29761: *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) 29761: ; 29761: __holeIndex = __secondChild - 1; 29761: } 29761: __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) 29761: __cmp(std::move(__comp)); 29761: std::__push_heap(__first, __holeIndex, __topIndex, 29761: std::move(__value), __cmp); 29761: } 29761: 29761: template 29761: 29761: inline void 29761: __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _RandomAccessIterator __result, _Compare& __comp) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: _ValueType __value = std::move(*__result); 29761: *__result = std::move(*__first); 29761: std::__adjust_heap(__first, _DistanceType(0), 29761: _DistanceType(__last - __first), 29761: std::move(__value), __comp); 29761: } 29761: # 280 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: if (__last - __first > 1) 29761: { 29761: --__last; 29761: __gnu_cxx::__ops::_Iter_less_iter __comp; 29761: std::__pop_heap(__first, __last, __last, __comp); 29761: } 29761: } 29761: # 314 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: pop_heap(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: if (__last - __first > 1) 29761: { 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: --__last; 29761: std::__pop_heap(__first, __last, __last, __cmp); 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare& __comp) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: if (__last - __first < 2) 29761: return; 29761: 29761: const _DistanceType __len = __last - __first; 29761: _DistanceType __parent = (__len - 2) / 2; 29761: while (true) 29761: { 29761: _ValueType __value = std::move(*(__first + __parent)); 29761: std::__adjust_heap(__first, __parent, __len, std::move(__value), 29761: __comp); 29761: if (__parent == 0) 29761: return; 29761: __parent--; 29761: } 29761: } 29761: # 372 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: __gnu_cxx::__ops::_Iter_less_iter __comp; 29761: std::__make_heap(__first, __last, __comp); 29761: } 29761: # 399 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: std::__make_heap(__first, __last, __cmp); 29761: } 29761: 29761: template 29761: 29761: void 29761: __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare& __comp) 29761: { 29761: while (__last - __first > 1) 29761: { 29761: --__last; 29761: std::__pop_heap(__first, __last, __last, __comp); 29761: } 29761: } 29761: # 437 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: __gnu_cxx::__ops::_Iter_less_iter __comp; 29761: std::__sort_heap(__first, __last, __comp); 29761: } 29761: # 465 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: 29761: inline void 29761: sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: std::__sort_heap(__first, __last, __cmp); 29761: } 29761: # 494 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _RandomAccessIterator 29761: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: __gnu_cxx::__ops::_Iter_less_iter __comp; 29761: return __first + 29761: std::__is_heap_until(__first, std::distance(__first, __last), __comp); 29761: } 29761: # 523 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _RandomAccessIterator 29761: is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: return __first 29761: + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); 29761: } 29761: # 548 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { return std::is_heap_until(__first, __last) == __last; } 29761: # 562 "/usr/include/c++/14/bits/stl_heap.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: const auto __dist = std::distance(__first, __last); 29761: typedef __decltype(__comp) _Cmp; 29761: __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); 29761: return std::__is_heap_until(__first, __dist, __cmp) == __dist; 29761: } 29761: 29761: 29761: 29761: } 29761: # 62 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/uniform_int_dist.h" 1 3 29761: # 41 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 64 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: template 29761: constexpr bool 29761: _Power_of_2(_Tp __x) 29761: { 29761: return ((__x - 1) & __x) == 0; 29761: } 29761: } 29761: # 87 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: template 29761: class uniform_int_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "template argument must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: struct param_type 29761: { 29761: typedef uniform_int_distribution<_IntType> distribution_type; 29761: 29761: param_type() : param_type(0) { } 29761: 29761: explicit 29761: param_type(_IntType __a, 29761: _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) 29761: : _M_a(__a), _M_b(__b) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: result_type 29761: a() const 29761: { return _M_a; } 29761: 29761: result_type 29761: b() const 29761: { return _M_b; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: private: 29761: _IntType _M_a; 29761: _IntType _M_b; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: uniform_int_distribution() : uniform_int_distribution(0) { } 29761: 29761: 29761: 29761: 29761: explicit 29761: uniform_int_distribution(_IntType __a, 29761: _IntType __b 29761: = __gnu_cxx::__int_traits<_IntType>::__max) 29761: : _M_param(__a, __b) 29761: { } 29761: 29761: explicit 29761: uniform_int_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset() { } 29761: 29761: result_type 29761: a() const 29761: { return _M_param.a(); } 29761: 29761: result_type 29761: b() const 29761: { return _M_param.b(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return this->a(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return this->b(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomBitGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomBitGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomBitGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomBitGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomBitGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const uniform_int_distribution& __d1, 29761: const uniform_int_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomBitGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: 29761: 29761: 29761: template 29761: static _Up 29761: _S_nd(_Urbg& __g, _Up __range) 29761: { 29761: using _Up_traits = __gnu_cxx::__int_traits<_Up>; 29761: using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; 29761: static_assert(!_Up_traits::__is_signed, "U must be unsigned"); 29761: static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); 29761: static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), 29761: "W must be twice as wide as U"); 29761: 29761: 29761: 29761: 29761: _Wp __product = _Wp(__g()) * _Wp(__range); 29761: _Up __low = _Up(__product); 29761: if (__low < __range) 29761: { 29761: _Up __threshold = -__range % __range; 29761: while (__low < __threshold) 29761: { 29761: __product = _Wp(__g()) * _Wp(__range); 29761: __low = _Up(__product); 29761: } 29761: } 29761: return __product >> _Up_traits::__digits; 29761: } 29761: }; 29761: 29761: template 29761: template 29761: typename uniform_int_distribution<_IntType>::result_type 29761: uniform_int_distribution<_IntType>:: 29761: operator()(_UniformRandomBitGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 29761: typedef typename make_unsigned::type __utype; 29761: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 29761: 29761: constexpr __uctype __urngmin = _UniformRandomBitGenerator::min(); 29761: constexpr __uctype __urngmax = _UniformRandomBitGenerator::max(); 29761: static_assert( __urngmin < __urngmax, 29761: "Uniform random bit generator must define min() < max()"); 29761: constexpr __uctype __urngrange = __urngmax - __urngmin; 29761: 29761: const __uctype __urange 29761: = __uctype(__param.b()) - __uctype(__param.a()); 29761: 29761: __uctype __ret; 29761: if (__urngrange > __urange) 29761: { 29761: 29761: 29761: const __uctype __uerange = __urange + 1; 29761: # 323 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: if constexpr (__urngrange == 0xffffffffU) 29761: { 29761: 29761: 29761: unsigned int __u32erange = __uerange; 29761: __ret = _S_nd(__urng, __u32erange); 29761: } 29761: else 29761: 29761: { 29761: 29761: const __uctype __scaling = __urngrange / __uerange; 29761: const __uctype __past = __uerange * __scaling; 29761: do 29761: __ret = __uctype(__urng()) - __urngmin; 29761: while (__ret >= __past); 29761: __ret /= __scaling; 29761: } 29761: } 29761: else if (__urngrange < __urange) 29761: { 29761: # 359 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: __uctype __tmp; 29761: do 29761: { 29761: const __uctype __uerngrange = __urngrange + 1; 29761: __tmp = (__uerngrange * operator() 29761: (__urng, param_type(0, __urange / __uerngrange))); 29761: __ret = __tmp + (__uctype(__urng()) - __urngmin); 29761: } 29761: while (__ret > __urange || __ret < __tmp); 29761: } 29761: else 29761: __ret = __uctype(__urng()) - __urngmin; 29761: 29761: return __ret + __param.a(); 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: uniform_int_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomBitGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; 29761: typedef typename make_unsigned::type __utype; 29761: typedef typename common_type<_Gresult_type, __utype>::type __uctype; 29761: 29761: static_assert( __urng.min() < __urng.max(), 29761: "Uniform random bit generator must define min() < max()"); 29761: 29761: constexpr __uctype __urngmin = __urng.min(); 29761: constexpr __uctype __urngmax = __urng.max(); 29761: constexpr __uctype __urngrange = __urngmax - __urngmin; 29761: const __uctype __urange 29761: = __uctype(__param.b()) - __uctype(__param.a()); 29761: 29761: __uctype __ret; 29761: 29761: if (__urngrange > __urange) 29761: { 29761: if (__detail::_Power_of_2(__urngrange + 1) 29761: && __detail::_Power_of_2(__urange + 1)) 29761: { 29761: while (__f != __t) 29761: { 29761: __ret = __uctype(__urng()) - __urngmin; 29761: *__f++ = (__ret & __urange) + __param.a(); 29761: } 29761: } 29761: else 29761: { 29761: 29761: const __uctype __uerange = __urange + 1; 29761: const __uctype __scaling = __urngrange / __uerange; 29761: const __uctype __past = __uerange * __scaling; 29761: while (__f != __t) 29761: { 29761: do 29761: __ret = __uctype(__urng()) - __urngmin; 29761: while (__ret >= __past); 29761: *__f++ = __ret / __scaling + __param.a(); 29761: } 29761: } 29761: } 29761: else if (__urngrange < __urange) 29761: { 29761: # 444 "/usr/include/c++/14/bits/uniform_int_dist.h" 3 29761: __uctype __tmp; 29761: while (__f != __t) 29761: { 29761: do 29761: { 29761: constexpr __uctype __uerngrange = __urngrange + 1; 29761: __tmp = (__uerngrange * operator() 29761: (__urng, param_type(0, __urange / __uerngrange))); 29761: __ret = __tmp + (__uctype(__urng()) - __urngmin); 29761: } 29761: while (__ret > __urange || __ret < __tmp); 29761: *__f++ = __ret; 29761: } 29761: } 29761: else 29761: while (__f != __t) 29761: *__f++ = __uctype(__urng()) - __urngmin + __param.a(); 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstdlib" 1 3 29761: # 39 "/usr/include/c++/14/cstdlib" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdlib" 3 29761: # 72 "/usr/include/c++/14/bits/stl_algo.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, 29761: _Iterator __c, _Compare __comp) 29761: { 29761: if (__comp(__a, __b)) 29761: { 29761: if (__comp(__b, __c)) 29761: std::iter_swap(__result, __b); 29761: else if (__comp(__a, __c)) 29761: std::iter_swap(__result, __c); 29761: else 29761: std::iter_swap(__result, __a); 29761: } 29761: else if (__comp(__a, __c)) 29761: std::iter_swap(__result, __a); 29761: else if (__comp(__b, __c)) 29761: std::iter_swap(__result, __c); 29761: else 29761: std::iter_swap(__result, __b); 29761: } 29761: 29761: 29761: template 29761: 29761: inline _InputIterator 29761: __find_if_not(_InputIterator __first, _InputIterator __last, 29761: _Predicate __pred) 29761: { 29761: return std::__find_if(__first, __last, 29761: __gnu_cxx::__ops::__negate(__pred), 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _InputIterator 29761: __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) 29761: { 29761: for (; __len; --__len, (void) ++__first) 29761: if (!__pred(__first)) 29761: break; 29761: return __first; 29761: } 29761: # 148 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _ForwardIterator 29761: __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, 29761: _Integer __count, _UnaryPredicate __unary_pred, 29761: std::forward_iterator_tag) 29761: { 29761: __first = std::__find_if(__first, __last, __unary_pred); 29761: while (__first != __last) 29761: { 29761: typename iterator_traits<_ForwardIterator>::difference_type 29761: __n = __count; 29761: _ForwardIterator __i = __first; 29761: ++__i; 29761: while (__i != __last && __n != 1 && __unary_pred(__i)) 29761: { 29761: ++__i; 29761: --__n; 29761: } 29761: if (__n == 1) 29761: return __first; 29761: if (__i == __last) 29761: return __last; 29761: __first = std::__find_if(++__i, __last, __unary_pred); 29761: } 29761: return __last; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _RandomAccessIter 29761: __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, 29761: _Integer __count, _UnaryPredicate __unary_pred, 29761: std::random_access_iterator_tag) 29761: { 29761: typedef typename std::iterator_traits<_RandomAccessIter>::difference_type 29761: _DistanceType; 29761: 29761: _DistanceType __tailSize = __last - __first; 29761: _DistanceType __remainder = __count; 29761: 29761: while (__remainder <= __tailSize) 29761: { 29761: __first += __remainder; 29761: __tailSize -= __remainder; 29761: 29761: 29761: _RandomAccessIter __backTrack = __first; 29761: while (__unary_pred(--__backTrack)) 29761: { 29761: if (--__remainder == 0) 29761: return (__first - __count); 29761: } 29761: __remainder = __count + 1 - (__first - __backTrack); 29761: } 29761: return __last; 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __search_n(_ForwardIterator __first, _ForwardIterator __last, 29761: _Integer __count, 29761: _UnaryPredicate __unary_pred) 29761: { 29761: if (__count <= 0) 29761: return __first; 29761: 29761: if (__count == 1) 29761: return std::__find_if(__first, __last, __unary_pred); 29761: 29761: return std::__search_n_aux(__first, __last, __count, __unary_pred, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: 29761: template 29761: 29761: _ForwardIterator1 29761: __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: forward_iterator_tag, forward_iterator_tag, 29761: _BinaryPredicate __comp) 29761: { 29761: if (__first2 == __last2) 29761: return __last1; 29761: 29761: _ForwardIterator1 __result = __last1; 29761: while (1) 29761: { 29761: _ForwardIterator1 __new_result 29761: = std::__search(__first1, __last1, __first2, __last2, __comp); 29761: if (__new_result == __last1) 29761: return __result; 29761: else 29761: { 29761: __result = __new_result; 29761: __first1 = __new_result; 29761: ++__first1; 29761: } 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: _BidirectionalIterator1 29761: __find_end(_BidirectionalIterator1 __first1, 29761: _BidirectionalIterator1 __last1, 29761: _BidirectionalIterator2 __first2, 29761: _BidirectionalIterator2 __last2, 29761: bidirectional_iterator_tag, bidirectional_iterator_tag, 29761: _BinaryPredicate __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; 29761: typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; 29761: 29761: _RevIterator1 __rlast1(__first1); 29761: _RevIterator2 __rlast2(__first2); 29761: _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, 29761: _RevIterator2(__last2), __rlast2, 29761: __comp); 29761: 29761: if (__rresult == __rlast1) 29761: return __last1; 29761: else 29761: { 29761: _BidirectionalIterator1 __result = __rresult.base(); 29761: std::advance(__result, -std::distance(__first2, __last2)); 29761: return __result; 29761: } 29761: } 29761: # 322 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator1 29761: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__find_end(__first1, __last1, __first2, __last2, 29761: std::__iterator_category(__first1), 29761: std::__iterator_category(__first2), 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 371 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator1 29761: find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: _BinaryPredicate __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__find_end(__first1, __last1, __first2, __last2, 29761: std::__iterator_category(__first1), 29761: std::__iterator_category(__first2), 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 407 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29761: { return __last == std::find_if_not(__first, __last, __pred); } 29761: # 425 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29761: { return __last == std::find_if(__first, __last, __pred); } 29761: # 444 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29761: { return !std::none_of(__first, __last, __pred); } 29761: # 460 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _InputIterator 29761: find_if_not(_InputIterator __first, _InputIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: return std::__find_if_not(__first, __last, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: # 485 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_partitioned(_InputIterator __first, _InputIterator __last, 29761: _Predicate __pred) 29761: { 29761: __first = std::find_if_not(__first, __last, __pred); 29761: if (__first == __last) 29761: return true; 29761: ++__first; 29761: return std::none_of(__first, __last, __pred); 29761: } 29761: # 507 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _ForwardIterator 29761: partition_point(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: typedef typename iterator_traits<_ForwardIterator>::difference_type 29761: _DistanceType; 29761: 29761: _DistanceType __len = std::distance(__first, __last); 29761: 29761: while (__len > 0) 29761: { 29761: _DistanceType __half = __len >> 1; 29761: _ForwardIterator __middle = __first; 29761: std::advance(__middle, __half); 29761: if (__pred(*__middle)) 29761: { 29761: __first = __middle; 29761: ++__first; 29761: __len = __len - __half - 1; 29761: } 29761: else 29761: __len = __half; 29761: } 29761: return __first; 29761: } 29761: 29761: 29761: template 29761: 29761: _OutputIterator 29761: __remove_copy_if(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Predicate __pred) 29761: { 29761: for (; __first != __last; ++__first) 29761: if (!__pred(__first)) 29761: { 29761: *__result = *__first; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: # 574 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: remove_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, const _Tp& __value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__remove_copy_if(__first, __last, __result, 29761: __gnu_cxx::__ops::__iter_equals_val(__value)); 29761: } 29761: # 607 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: remove_copy_if(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__remove_copy_if(__first, __last, __result, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: # 642 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _OutputIterator 29761: copy_if(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: if (__pred(*__first)) 29761: { 29761: *__result = *__first; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __copy_n(_InputIterator __first, _Size __n, 29761: _OutputIterator __result, input_iterator_tag) 29761: { 29761: return std::__niter_wrap(__result, 29761: __copy_n_a(__first, __n, 29761: std::__niter_base(__result), true)); 29761: } 29761: 29761: template 29761: 29761: inline _OutputIterator 29761: __copy_n(_RandomAccessIterator __first, _Size __n, 29761: _OutputIterator __result, random_access_iterator_tag) 29761: { return std::copy(__first, __first + __n, __result); } 29761: # 698 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: const auto __n2 = std::__size_to_integer(__n); 29761: if (__n2 <= 0) 29761: return __result; 29761: 29761: ; 29761: ; 29761: 29761: return std::__copy_n(__first, __n2, __result, 29761: std::__iterator_category(__first)); 29761: } 29761: # 734 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: pair<_OutputIterator1, _OutputIterator2> 29761: partition_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator1 __out_true, _OutputIterator2 __out_false, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: if (__pred(*__first)) 29761: { 29761: *__out_true = *__first; 29761: ++__out_true; 29761: } 29761: else 29761: { 29761: *__out_false = *__first; 29761: ++__out_false; 29761: } 29761: 29761: return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); 29761: } 29761: # 785 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: remove(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__remove_if(__first, __last, 29761: __gnu_cxx::__ops::__iter_equals_val(__value)); 29761: } 29761: # 819 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: remove_if(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__remove_if(__first, __last, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: if (__first == __last) 29761: return __last; 29761: _ForwardIterator __next = __first; 29761: while (++__next != __last) 29761: { 29761: if (__binary_pred(__first, __next)) 29761: return __first; 29761: __first = __next; 29761: } 29761: return __last; 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __unique(_ForwardIterator __first, _ForwardIterator __last, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: __first = std::__adjacent_find(__first, __last, __binary_pred); 29761: if (__first == __last) 29761: return __last; 29761: 29761: 29761: _ForwardIterator __dest = __first; 29761: ++__first; 29761: while (++__first != __last) 29761: if (!__binary_pred(__dest, __first)) 29761: *++__dest = std::move(*__first); 29761: return ++__dest; 29761: } 29761: # 888 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: unique(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__unique(__first, __last, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 919 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: unique(_ForwardIterator __first, _ForwardIterator __last, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__unique(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _OutputIterator 29761: __unique_copy(_ForwardIterator __first, _ForwardIterator __last, 29761: _OutputIterator __result, _BinaryPredicate __binary_pred, 29761: forward_iterator_tag, output_iterator_tag) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: _ForwardIterator __next = __first; 29761: *__result = *__first; 29761: while (++__next != __last) 29761: if (!__binary_pred(__first, __next)) 29761: { 29761: __first = __next; 29761: *++__result = *__first; 29761: } 29761: return ++__result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _OutputIterator 29761: __unique_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _BinaryPredicate __binary_pred, 29761: input_iterator_tag, output_iterator_tag) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: typename iterator_traits<_InputIterator>::value_type __value = *__first; 29761: __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) 29761: __rebound_pred 29761: = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); 29761: *__result = __value; 29761: while (++__first != __last) 29761: if (!__rebound_pred(__first, __value)) 29761: { 29761: __value = *__first; 29761: *++__result = __value; 29761: } 29761: return ++__result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __unique_copy(_InputIterator __first, _InputIterator __last, 29761: _ForwardIterator __result, _BinaryPredicate __binary_pred, 29761: input_iterator_tag, forward_iterator_tag) 29761: { 29761: 29761: 29761: 29761: 29761: *__result = *__first; 29761: while (++__first != __last) 29761: if (!__binary_pred(__result, __first)) 29761: *++__result = *__first; 29761: return ++__result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, 29761: bidirectional_iterator_tag) 29761: { 29761: while (true) 29761: if (__first == __last || __first == --__last) 29761: return; 29761: else 29761: { 29761: std::iter_swap(__first, __last); 29761: ++__first; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: random_access_iterator_tag) 29761: { 29761: if (__first == __last) 29761: return; 29761: --__last; 29761: while (__first < __last) 29761: { 29761: std::iter_swap(__first, __last); 29761: ++__first; 29761: --__last; 29761: } 29761: } 29761: # 1080 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) 29761: { 29761: 29761: 29761: 29761: ; 29761: std::__reverse(__first, __last, std::__iterator_category(__first)); 29761: } 29761: # 1108 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _OutputIterator 29761: reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: while (__first != __last) 29761: { 29761: --__last; 29761: *__result = *__last; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _EuclideanRingElement 29761: __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) 29761: { 29761: while (__n != 0) 29761: { 29761: _EuclideanRingElement __t = __m % __n; 29761: __m = __n; 29761: __n = __t; 29761: } 29761: return __m; 29761: } 29761: 29761: inline namespace _V2 { 29761: 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __rotate(_ForwardIterator __first, 29761: _ForwardIterator __middle, 29761: _ForwardIterator __last, 29761: forward_iterator_tag) 29761: { 29761: if (__first == __middle) 29761: return __last; 29761: else if (__last == __middle) 29761: return __first; 29761: 29761: _ForwardIterator __first2 = __middle; 29761: do 29761: { 29761: std::iter_swap(__first, __first2); 29761: ++__first; 29761: ++__first2; 29761: if (__first == __middle) 29761: __middle = __first2; 29761: } 29761: while (__first2 != __last); 29761: 29761: _ForwardIterator __ret = __first; 29761: 29761: __first2 = __middle; 29761: 29761: while (__first2 != __last) 29761: { 29761: std::iter_swap(__first, __first2); 29761: ++__first; 29761: ++__first2; 29761: if (__first == __middle) 29761: __middle = __first2; 29761: else if (__first2 == __last) 29761: __first2 = __middle; 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: template 29761: 29761: _BidirectionalIterator 29761: __rotate(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: bidirectional_iterator_tag) 29761: { 29761: 29761: 29761: 29761: 29761: if (__first == __middle) 29761: return __last; 29761: else if (__last == __middle) 29761: return __first; 29761: 29761: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 29761: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 29761: 29761: while (__first != __middle && __middle != __last) 29761: { 29761: std::iter_swap(__first, --__last); 29761: ++__first; 29761: } 29761: 29761: if (__first == __middle) 29761: { 29761: std::__reverse(__middle, __last, bidirectional_iterator_tag()); 29761: return __last; 29761: } 29761: else 29761: { 29761: std::__reverse(__first, __middle, bidirectional_iterator_tag()); 29761: return __first; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: _RandomAccessIterator 29761: __rotate(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, 29761: random_access_iterator_tag) 29761: { 29761: 29761: 29761: 29761: 29761: if (__first == __middle) 29761: return __last; 29761: else if (__last == __middle) 29761: return __first; 29761: 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _Distance; 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: 29761: 29761: typedef typename make_unsigned<_Distance>::type _UDistance; 29761: 29761: 29761: 29761: 29761: _Distance __n = __last - __first; 29761: _Distance __k = __middle - __first; 29761: 29761: if (__k == __n - __k) 29761: { 29761: std::swap_ranges(__first, __middle, __middle); 29761: return __middle; 29761: } 29761: 29761: _RandomAccessIterator __p = __first; 29761: _RandomAccessIterator __ret = __first + (__last - __middle); 29761: 29761: for (;;) 29761: { 29761: if (__k < __n - __k) 29761: { 29761: if (__is_pod(_ValueType) && __k == 1) 29761: { 29761: _ValueType __t = std::move(*__p); 29761: std::move(__p + 1, __p + __n, __p); 29761: *(__p + __n - 1) = std::move(__t); 29761: return __ret; 29761: } 29761: _RandomAccessIterator __q = __p + __k; 29761: for (_Distance __i = 0; __i < __n - __k; ++ __i) 29761: { 29761: std::iter_swap(__p, __q); 29761: ++__p; 29761: ++__q; 29761: } 29761: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 29761: if (__n == 0) 29761: return __ret; 29761: std::swap(__n, __k); 29761: __k = __n - __k; 29761: } 29761: else 29761: { 29761: __k = __n - __k; 29761: if (__is_pod(_ValueType) && __k == 1) 29761: { 29761: _ValueType __t = std::move(*(__p + __n - 1)); 29761: std::move_backward(__p, __p + __n - 1, __p + __n); 29761: *__p = std::move(__t); 29761: return __ret; 29761: } 29761: _RandomAccessIterator __q = __p + __n; 29761: __p = __q - __k; 29761: for (_Distance __i = 0; __i < __n - __k; ++ __i) 29761: { 29761: --__p; 29761: --__q; 29761: std::iter_swap(__p, __q); 29761: } 29761: __n = static_cast<_UDistance>(__n) % static_cast<_UDistance>(__k); 29761: if (__n == 0) 29761: return __ret; 29761: std::swap(__n, __k); 29761: } 29761: } 29761: } 29761: # 1345 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _ForwardIterator 29761: rotate(_ForwardIterator __first, _ForwardIterator __middle, 29761: _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__rotate(__first, __middle, __last, 29761: std::__iterator_category(__first)); 29761: } 29761: 29761: } 29761: # 1383 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, 29761: _ForwardIterator __last, _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::copy(__first, __middle, 29761: std::copy(__middle, __last, __result)); 29761: } 29761: 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __partition(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred, forward_iterator_tag) 29761: { 29761: if (__first == __last) 29761: return __first; 29761: 29761: while (__pred(*__first)) 29761: if (++__first == __last) 29761: return __first; 29761: 29761: _ForwardIterator __next = __first; 29761: 29761: while (++__next != __last) 29761: if (__pred(*__next)) 29761: { 29761: std::iter_swap(__first, __next); 29761: ++__first; 29761: } 29761: 29761: return __first; 29761: } 29761: 29761: 29761: template 29761: 29761: _BidirectionalIterator 29761: __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, 29761: _Predicate __pred, bidirectional_iterator_tag) 29761: { 29761: while (true) 29761: { 29761: while (true) 29761: if (__first == __last) 29761: return __first; 29761: else if (__pred(*__first)) 29761: ++__first; 29761: else 29761: break; 29761: --__last; 29761: while (true) 29761: if (__first == __last) 29761: return __first; 29761: else if (!bool(__pred(*__last))) 29761: --__last; 29761: else 29761: break; 29761: std::iter_swap(__first, __last); 29761: ++__first; 29761: } 29761: } 29761: # 1464 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: _ForwardIterator 29761: __stable_partition_adaptive(_ForwardIterator __first, 29761: _ForwardIterator __last, 29761: _Predicate __pred, _Distance __len, 29761: _Pointer __buffer, 29761: _Distance __buffer_size) 29761: { 29761: if (__len == 1) 29761: return __first; 29761: 29761: if (__len <= __buffer_size) 29761: { 29761: _ForwardIterator __result1 = __first; 29761: _Pointer __result2 = __buffer; 29761: 29761: 29761: 29761: 29761: *__result2 = std::move(*__first); 29761: ++__result2; 29761: ++__first; 29761: for (; __first != __last; ++__first) 29761: if (__pred(__first)) 29761: { 29761: *__result1 = std::move(*__first); 29761: ++__result1; 29761: } 29761: else 29761: { 29761: *__result2 = std::move(*__first); 29761: ++__result2; 29761: } 29761: 29761: std::move(__buffer, __result2, __result1); 29761: return __result1; 29761: } 29761: 29761: _ForwardIterator __middle = __first; 29761: std::advance(__middle, __len / 2); 29761: _ForwardIterator __left_split = 29761: std::__stable_partition_adaptive(__first, __middle, __pred, 29761: __len / 2, __buffer, 29761: __buffer_size); 29761: 29761: 29761: 29761: _Distance __right_len = __len - __len / 2; 29761: _ForwardIterator __right_split = 29761: std::__find_if_not_n(__middle, __right_len, __pred); 29761: 29761: if (__right_len) 29761: __right_split = 29761: std::__stable_partition_adaptive(__right_split, __last, __pred, 29761: __right_len, 29761: __buffer, __buffer_size); 29761: 29761: return std::rotate(__left_split, __middle, __right_split); 29761: } 29761: 29761: template 29761: _ForwardIterator 29761: __stable_partition(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: __first = std::__find_if_not(__first, __last, __pred); 29761: 29761: if (__first == __last) 29761: return __first; 29761: 29761: typedef typename iterator_traits<_ForwardIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_ForwardIterator>::difference_type 29761: _DistanceType; 29761: 29761: _Temporary_buffer<_ForwardIterator, _ValueType> 29761: __buf(__first, std::distance(__first, __last)); 29761: return 29761: std::__stable_partition_adaptive(__first, __last, __pred, 29761: _DistanceType(__buf.requested_size()), 29761: __buf.begin(), 29761: _DistanceType(__buf.size())); 29761: } 29761: # 1566 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: inline _ForwardIterator 29761: stable_partition(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__stable_partition(__first, __last, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __heap_select(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: std::__make_heap(__first, __middle, __comp); 29761: for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) 29761: if (__comp(__i, __first)) 29761: std::__pop_heap(__first, __middle, __i, __comp); 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: _RandomAccessIterator 29761: __partial_sort_copy(_InputIterator __first, _InputIterator __last, 29761: _RandomAccessIterator __result_first, 29761: _RandomAccessIterator __result_last, 29761: _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type 29761: _InputValueType; 29761: typedef iterator_traits<_RandomAccessIterator> _RItTraits; 29761: typedef typename _RItTraits::difference_type _DistanceType; 29761: 29761: if (__result_first == __result_last) 29761: return __result_last; 29761: _RandomAccessIterator __result_real_last = __result_first; 29761: while (__first != __last && __result_real_last != __result_last) 29761: { 29761: *__result_real_last = *__first; 29761: ++__result_real_last; 29761: ++__first; 29761: } 29761: 29761: std::__make_heap(__result_first, __result_real_last, __comp); 29761: while (__first != __last) 29761: { 29761: if (__comp(__first, __result_first)) 29761: std::__adjust_heap(__result_first, _DistanceType(0), 29761: _DistanceType(__result_real_last 29761: - __result_first), 29761: _InputValueType(*__first), __comp); 29761: ++__first; 29761: } 29761: std::__sort_heap(__result_first, __result_real_last, __comp); 29761: return __result_real_last; 29761: } 29761: # 1659 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _RandomAccessIterator 29761: partial_sort_copy(_InputIterator __first, _InputIterator __last, 29761: _RandomAccessIterator __result_first, 29761: _RandomAccessIterator __result_last) 29761: { 29761: # 1674 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__partial_sort_copy(__first, __last, 29761: __result_first, __result_last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 1709 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _RandomAccessIterator 29761: partial_sort_copy(_InputIterator __first, _InputIterator __last, 29761: _RandomAccessIterator __result_first, 29761: _RandomAccessIterator __result_last, 29761: _Compare __comp) 29761: { 29761: # 1726 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__partial_sort_copy(__first, __last, 29761: __result_first, __result_last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: void 29761: __unguarded_linear_insert(_RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: typename iterator_traits<_RandomAccessIterator>::value_type 29761: __val = std::move(*__last); 29761: _RandomAccessIterator __next = __last; 29761: --__next; 29761: while (__comp(__val, __next)) 29761: { 29761: *__last = std::move(*__next); 29761: __last = __next; 29761: --__next; 29761: } 29761: *__last = std::move(__val); 29761: } 29761: 29761: 29761: template 29761: 29761: void 29761: __insertion_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: if (__first == __last) return; 29761: 29761: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29761: { 29761: if (__comp(__i, __first)) 29761: { 29761: typename iterator_traits<_RandomAccessIterator>::value_type 29761: __val = std::move(*__i); 29761: std::move_backward(__first, __i, __i + 1); 29761: *__first = std::move(__val); 29761: } 29761: else 29761: std::__unguarded_linear_insert(__i, 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline void 29761: __unguarded_insertion_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: for (_RandomAccessIterator __i = __first; __i != __last; ++__i) 29761: std::__unguarded_linear_insert(__i, 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: enum { _S_threshold = 16 }; 29761: 29761: 29761: template 29761: 29761: void 29761: __final_insertion_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: if (__last - __first > int(_S_threshold)) 29761: { 29761: std::__insertion_sort(__first, __first + int(_S_threshold), __comp); 29761: std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, 29761: __comp); 29761: } 29761: else 29761: std::__insertion_sort(__first, __last, __comp); 29761: } 29761: 29761: 29761: template 29761: 29761: _RandomAccessIterator 29761: __unguarded_partition(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, 29761: _RandomAccessIterator __pivot, _Compare __comp) 29761: { 29761: while (true) 29761: { 29761: while (__comp(__first, __pivot)) 29761: ++__first; 29761: --__last; 29761: while (__comp(__pivot, __last)) 29761: --__last; 29761: if (!(__first < __last)) 29761: return __first; 29761: std::iter_swap(__first, __last); 29761: ++__first; 29761: } 29761: } 29761: 29761: 29761: template 29761: 29761: inline _RandomAccessIterator 29761: __unguarded_partition_pivot(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: _RandomAccessIterator __mid = __first + (__last - __first) / 2; 29761: std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, 29761: __comp); 29761: return std::__unguarded_partition(__first + 1, __last, __first, __comp); 29761: } 29761: 29761: template 29761: 29761: inline void 29761: __partial_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: std::__heap_select(__first, __middle, __last, __comp); 29761: std::__sort_heap(__first, __middle, __comp); 29761: } 29761: 29761: 29761: template 29761: 29761: void 29761: __introsort_loop(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, 29761: _Size __depth_limit, _Compare __comp) 29761: { 29761: while (__last - __first > int(_S_threshold)) 29761: { 29761: if (__depth_limit == 0) 29761: { 29761: std::__partial_sort(__first, __last, __last, __comp); 29761: return; 29761: } 29761: --__depth_limit; 29761: _RandomAccessIterator __cut = 29761: std::__unguarded_partition_pivot(__first, __last, __comp); 29761: std::__introsort_loop(__cut, __last, __depth_limit, __comp); 29761: __last = __cut; 29761: } 29761: } 29761: 29761: 29761: 29761: template 29761: 29761: inline void 29761: __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: if (__first != __last) 29761: { 29761: std::__introsort_loop(__first, __last, 29761: std::__lg(__last - __first) * 2, 29761: __comp); 29761: std::__final_insertion_sort(__first, __last, __comp); 29761: } 29761: } 29761: 29761: template 29761: 29761: void 29761: __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29761: _RandomAccessIterator __last, _Size __depth_limit, 29761: _Compare __comp) 29761: { 29761: while (__last - __first > 3) 29761: { 29761: if (__depth_limit == 0) 29761: { 29761: std::__heap_select(__first, __nth + 1, __last, __comp); 29761: 29761: std::iter_swap(__first, __nth); 29761: return; 29761: } 29761: --__depth_limit; 29761: _RandomAccessIterator __cut = 29761: std::__unguarded_partition_pivot(__first, __last, __comp); 29761: if (__cut <= __nth) 29761: __first = __cut; 29761: else 29761: __last = __cut; 29761: } 29761: std::__insertion_sort(__first, __last, __comp); 29761: } 29761: # 1960 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: lower_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__lower_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29761: } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::difference_type 29761: _DistanceType; 29761: 29761: _DistanceType __len = std::distance(__first, __last); 29761: 29761: while (__len > 0) 29761: { 29761: _DistanceType __half = __len >> 1; 29761: _ForwardIterator __middle = __first; 29761: std::advance(__middle, __half); 29761: if (__comp(__val, __middle)) 29761: __len = __half; 29761: else 29761: { 29761: __first = __middle; 29761: ++__first; 29761: __len = __len - __half - 1; 29761: } 29761: } 29761: return __first; 29761: } 29761: # 2016 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__upper_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__val_less_iter()); 29761: } 29761: # 2047 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: upper_bound(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__upper_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: pair<_ForwardIterator, _ForwardIterator> 29761: __equal_range(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, 29761: _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) 29761: { 29761: typedef typename iterator_traits<_ForwardIterator>::difference_type 29761: _DistanceType; 29761: 29761: _DistanceType __len = std::distance(__first, __last); 29761: 29761: while (__len > 0) 29761: { 29761: _DistanceType __half = __len >> 1; 29761: _ForwardIterator __middle = __first; 29761: std::advance(__middle, __half); 29761: if (__comp_it_val(__middle, __val)) 29761: { 29761: __first = __middle; 29761: ++__first; 29761: __len = __len - __half - 1; 29761: } 29761: else if (__comp_val_it(__val, __middle)) 29761: __len = __half; 29761: else 29761: { 29761: _ForwardIterator __left 29761: = std::__lower_bound(__first, __middle, __val, __comp_it_val); 29761: std::advance(__first, __len); 29761: _ForwardIterator __right 29761: = std::__upper_bound(++__middle, __first, __val, __comp_val_it); 29761: return pair<_ForwardIterator, _ForwardIterator>(__left, __right); 29761: } 29761: } 29761: return pair<_ForwardIterator, _ForwardIterator>(__first, __first); 29761: } 29761: # 2120 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_ForwardIterator, _ForwardIterator> 29761: equal_range(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__equal_range(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_less_val(), 29761: __gnu_cxx::__ops::__val_less_iter()); 29761: } 29761: # 2157 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline pair<_ForwardIterator, _ForwardIterator> 29761: equal_range(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: ; 29761: 29761: return std::__equal_range(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_comp_val(__comp), 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: } 29761: # 2191 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: binary_search(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: _ForwardIterator __i 29761: = std::__lower_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_less_val()); 29761: return __i != __last && !(__val < *__i); 29761: } 29761: # 2225 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: binary_search(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __val, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: ; 29761: 29761: _ForwardIterator __i 29761: = std::__lower_bound(__first, __last, __val, 29761: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29761: return __i != __last && !bool(__comp(__val, *__i)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first2, __first1)) 29761: { 29761: *__result = std::move(*__first2); 29761: ++__first2; 29761: } 29761: else 29761: { 29761: *__result = std::move(*__first1); 29761: ++__first1; 29761: } 29761: ++__result; 29761: } 29761: if (__first1 != __last1) 29761: std::move(__first1, __last1, __result); 29761: } 29761: 29761: 29761: template 29761: void 29761: __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, 29761: _BidirectionalIterator1 __last1, 29761: _BidirectionalIterator2 __first2, 29761: _BidirectionalIterator2 __last2, 29761: _BidirectionalIterator3 __result, 29761: _Compare __comp) 29761: { 29761: if (__first1 == __last1) 29761: { 29761: std::move_backward(__first2, __last2, __result); 29761: return; 29761: } 29761: else if (__first2 == __last2) 29761: return; 29761: 29761: --__last1; 29761: --__last2; 29761: while (true) 29761: { 29761: if (__comp(__last2, __last1)) 29761: { 29761: *--__result = std::move(*__last1); 29761: if (__first1 == __last1) 29761: { 29761: std::move_backward(__first2, ++__last2, __result); 29761: return; 29761: } 29761: --__last1; 29761: } 29761: else 29761: { 29761: *--__result = std::move(*__last2); 29761: if (__first2 == __last2) 29761: return; 29761: --__last2; 29761: } 29761: } 29761: } 29761: 29761: 29761: template 29761: _BidirectionalIterator1 29761: __rotate_adaptive(_BidirectionalIterator1 __first, 29761: _BidirectionalIterator1 __middle, 29761: _BidirectionalIterator1 __last, 29761: _Distance __len1, _Distance __len2, 29761: _BidirectionalIterator2 __buffer, 29761: _Distance __buffer_size) 29761: { 29761: _BidirectionalIterator2 __buffer_end; 29761: if (__len1 > __len2 && __len2 <= __buffer_size) 29761: { 29761: if (__len2) 29761: { 29761: __buffer_end = std::move(__middle, __last, __buffer); 29761: std::move_backward(__first, __middle, __last); 29761: return std::move(__buffer, __buffer_end, __first); 29761: } 29761: else 29761: return __first; 29761: } 29761: else if (__len1 <= __buffer_size) 29761: { 29761: if (__len1) 29761: { 29761: __buffer_end = std::move(__first, __middle, __buffer); 29761: std::move(__middle, __last, __first); 29761: return std::move_backward(__buffer, __buffer_end, __last); 29761: } 29761: else 29761: return __last; 29761: } 29761: else 29761: return std::rotate(__first, __middle, __last); 29761: } 29761: 29761: 29761: template 29761: void 29761: __merge_adaptive(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: _Distance __len1, _Distance __len2, 29761: _Pointer __buffer, _Compare __comp) 29761: { 29761: if (__len1 <= __len2) 29761: { 29761: _Pointer __buffer_end = std::move(__first, __middle, __buffer); 29761: std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, 29761: __first, __comp); 29761: } 29761: else 29761: { 29761: _Pointer __buffer_end = std::move(__middle, __last, __buffer); 29761: std::__move_merge_adaptive_backward(__first, __middle, __buffer, 29761: __buffer_end, __last, __comp); 29761: } 29761: } 29761: 29761: template 29761: void 29761: __merge_adaptive_resize(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: _Distance __len1, _Distance __len2, 29761: _Pointer __buffer, _Distance __buffer_size, 29761: _Compare __comp) 29761: { 29761: if (__len1 <= __buffer_size || __len2 <= __buffer_size) 29761: std::__merge_adaptive(__first, __middle, __last, 29761: __len1, __len2, __buffer, __comp); 29761: else 29761: { 29761: _BidirectionalIterator __first_cut = __first; 29761: _BidirectionalIterator __second_cut = __middle; 29761: _Distance __len11 = 0; 29761: _Distance __len22 = 0; 29761: if (__len1 > __len2) 29761: { 29761: __len11 = __len1 / 2; 29761: std::advance(__first_cut, __len11); 29761: __second_cut 29761: = std::__lower_bound(__middle, __last, *__first_cut, 29761: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29761: __len22 = std::distance(__middle, __second_cut); 29761: } 29761: else 29761: { 29761: __len22 = __len2 / 2; 29761: std::advance(__second_cut, __len22); 29761: __first_cut 29761: = std::__upper_bound(__first, __middle, *__second_cut, 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: __len11 = std::distance(__first, __first_cut); 29761: } 29761: 29761: _BidirectionalIterator __new_middle 29761: = std::__rotate_adaptive(__first_cut, __middle, __second_cut, 29761: _Distance(__len1 - __len11), __len22, 29761: __buffer, __buffer_size); 29761: std::__merge_adaptive_resize(__first, __first_cut, __new_middle, 29761: __len11, __len22, 29761: __buffer, __buffer_size, __comp); 29761: std::__merge_adaptive_resize(__new_middle, __second_cut, __last, 29761: _Distance(__len1 - __len11), 29761: _Distance(__len2 - __len22), 29761: __buffer, __buffer_size, __comp); 29761: } 29761: } 29761: 29761: 29761: template 29761: void 29761: __merge_without_buffer(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: _Distance __len1, _Distance __len2, 29761: _Compare __comp) 29761: { 29761: if (__len1 == 0 || __len2 == 0) 29761: return; 29761: 29761: if (__len1 + __len2 == 2) 29761: { 29761: if (__comp(__middle, __first)) 29761: std::iter_swap(__first, __middle); 29761: return; 29761: } 29761: 29761: _BidirectionalIterator __first_cut = __first; 29761: _BidirectionalIterator __second_cut = __middle; 29761: _Distance __len11 = 0; 29761: _Distance __len22 = 0; 29761: if (__len1 > __len2) 29761: { 29761: __len11 = __len1 / 2; 29761: std::advance(__first_cut, __len11); 29761: __second_cut 29761: = std::__lower_bound(__middle, __last, *__first_cut, 29761: __gnu_cxx::__ops::__iter_comp_val(__comp)); 29761: __len22 = std::distance(__middle, __second_cut); 29761: } 29761: else 29761: { 29761: __len22 = __len2 / 2; 29761: std::advance(__second_cut, __len22); 29761: __first_cut 29761: = std::__upper_bound(__first, __middle, *__second_cut, 29761: __gnu_cxx::__ops::__val_comp_iter(__comp)); 29761: __len11 = std::distance(__first, __first_cut); 29761: } 29761: 29761: _BidirectionalIterator __new_middle 29761: = std::rotate(__first_cut, __middle, __second_cut); 29761: std::__merge_without_buffer(__first, __first_cut, __new_middle, 29761: __len11, __len22, __comp); 29761: std::__merge_without_buffer(__new_middle, __second_cut, __last, 29761: __len1 - __len11, __len2 - __len22, __comp); 29761: } 29761: 29761: template 29761: void 29761: __inplace_merge(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_BidirectionalIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_BidirectionalIterator>::difference_type 29761: _DistanceType; 29761: 29761: if (__first == __middle || __middle == __last) 29761: return; 29761: 29761: const _DistanceType __len1 = std::distance(__first, __middle); 29761: const _DistanceType __len2 = std::distance(__middle, __last); 29761: 29761: 29761: typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; 29761: 29761: 29761: _TmpBuf __buf(__first, std::min(__len1, __len2)); 29761: 29761: if (__builtin_expect(__buf.size() == __buf.requested_size(), true)) 29761: std::__merge_adaptive 29761: (__first, __middle, __last, __len1, __len2, __buf.begin(), __comp); 29761: else if (__builtin_expect(__buf.begin() == 0, false)) 29761: std::__merge_without_buffer 29761: (__first, __middle, __last, __len1, __len2, __comp); 29761: else 29761: std::__merge_adaptive_resize 29761: (__first, __middle, __last, __len1, __len2, __buf.begin(), 29761: _DistanceType(__buf.size()), __comp); 29761: 29761: 29761: 29761: 29761: } 29761: # 2540 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: inline void 29761: inplace_merge(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: std::__inplace_merge(__first, __middle, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 2581 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: inline void 29761: inplace_merge(_BidirectionalIterator __first, 29761: _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: std::__inplace_merge(__first, __middle, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: template 29761: _OutputIterator 29761: __move_merge(_InputIterator __first1, _InputIterator __last1, 29761: _InputIterator __first2, _InputIterator __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first2, __first1)) 29761: { 29761: *__result = std::move(*__first2); 29761: ++__first2; 29761: } 29761: else 29761: { 29761: *__result = std::move(*__first1); 29761: ++__first1; 29761: } 29761: ++__result; 29761: } 29761: return std::move(__first2, __last2, std::move(__first1, __last1, __result)) 29761: 29761: ; 29761: } 29761: 29761: template 29761: void 29761: __merge_sort_loop(_RandomAccessIterator1 __first, 29761: _RandomAccessIterator1 __last, 29761: _RandomAccessIterator2 __result, _Distance __step_size, 29761: _Compare __comp) 29761: { 29761: const _Distance __two_step = 2 * __step_size; 29761: 29761: while (__last - __first >= __two_step) 29761: { 29761: __result = std::__move_merge(__first, __first + __step_size, 29761: __first + __step_size, 29761: __first + __two_step, 29761: __result, __comp); 29761: __first += __two_step; 29761: } 29761: __step_size = std::min(_Distance(__last - __first), __step_size); 29761: 29761: std::__move_merge(__first, __first + __step_size, 29761: __first + __step_size, __last, __result, __comp); 29761: } 29761: 29761: template 29761: 29761: void 29761: __chunk_insertion_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, 29761: _Distance __chunk_size, _Compare __comp) 29761: { 29761: while (__last - __first >= __chunk_size) 29761: { 29761: std::__insertion_sort(__first, __first + __chunk_size, __comp); 29761: __first += __chunk_size; 29761: } 29761: std::__insertion_sort(__first, __last, __comp); 29761: } 29761: 29761: enum { _S_chunk_size = 7 }; 29761: 29761: template 29761: void 29761: __merge_sort_with_buffer(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, 29761: _Pointer __buffer, _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _Distance; 29761: 29761: const _Distance __len = __last - __first; 29761: const _Pointer __buffer_last = __buffer + __len; 29761: 29761: _Distance __step_size = _S_chunk_size; 29761: std::__chunk_insertion_sort(__first, __last, __step_size, __comp); 29761: 29761: while (__step_size < __len) 29761: { 29761: std::__merge_sort_loop(__first, __last, __buffer, 29761: __step_size, __comp); 29761: __step_size *= 2; 29761: std::__merge_sort_loop(__buffer, __buffer_last, __first, 29761: __step_size, __comp); 29761: __step_size *= 2; 29761: } 29761: } 29761: 29761: template 29761: void 29761: __stable_sort_adaptive(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, 29761: _Pointer __buffer, _Compare __comp) 29761: { 29761: std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); 29761: std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); 29761: 29761: std::__merge_adaptive(__first, __middle, __last, 29761: __middle - __first, __last - __middle, 29761: __buffer, __comp); 29761: } 29761: 29761: template 29761: void 29761: __stable_sort_adaptive_resize(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, 29761: _Pointer __buffer, _Distance __buffer_size, 29761: _Compare __comp) 29761: { 29761: const _Distance __len = (__last - __first + 1) / 2; 29761: const _RandomAccessIterator __middle = __first + __len; 29761: if (__len > __buffer_size) 29761: { 29761: std::__stable_sort_adaptive_resize(__first, __middle, __buffer, 29761: __buffer_size, __comp); 29761: std::__stable_sort_adaptive_resize(__middle, __last, __buffer, 29761: __buffer_size, __comp); 29761: std::__merge_adaptive_resize(__first, __middle, __last, 29761: _Distance(__middle - __first), 29761: _Distance(__last - __middle), 29761: __buffer, __buffer_size, 29761: __comp); 29761: } 29761: else 29761: std::__stable_sort_adaptive(__first, __middle, __last, 29761: __buffer, __comp); 29761: } 29761: 29761: 29761: template 29761: void 29761: __inplace_stable_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: if (__last - __first < 15) 29761: { 29761: std::__insertion_sort(__first, __last, __comp); 29761: return; 29761: } 29761: _RandomAccessIterator __middle = __first + (__last - __first) / 2; 29761: std::__inplace_stable_sort(__first, __middle, __comp); 29761: std::__inplace_stable_sort(__middle, __last, __comp); 29761: std::__merge_without_buffer(__first, __middle, __last, 29761: __middle - __first, 29761: __last - __middle, 29761: __comp); 29761: } 29761: # 2767 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: bool 29761: __includes(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first2, __first1)) 29761: return false; 29761: if (!__comp(__first1, __first2)) 29761: ++__first2; 29761: ++__first1; 29761: } 29761: 29761: return __first2 == __last2; 29761: } 29761: # 2805 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: includes(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__includes(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 2850 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: includes(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__includes(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 2886 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: bool 29761: __next_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last, _Compare __comp) 29761: { 29761: if (__first == __last) 29761: return false; 29761: _BidirectionalIterator __i = __first; 29761: ++__i; 29761: if (__i == __last) 29761: return false; 29761: __i = __last; 29761: --__i; 29761: 29761: for(;;) 29761: { 29761: _BidirectionalIterator __ii = __i; 29761: --__i; 29761: if (__comp(__i, __ii)) 29761: { 29761: _BidirectionalIterator __j = __last; 29761: while (!__comp(__i, --__j)) 29761: {} 29761: std::iter_swap(__i, __j); 29761: std::__reverse(__ii, __last, 29761: std::__iterator_category(__first)); 29761: return true; 29761: } 29761: if (__i == __first) 29761: { 29761: std::__reverse(__first, __last, 29761: std::__iterator_category(__first)); 29761: return false; 29761: } 29761: } 29761: } 29761: # 2936 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline bool 29761: next_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__next_permutation 29761: (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 2969 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline bool 29761: next_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__next_permutation 29761: (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: bool 29761: __prev_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last, _Compare __comp) 29761: { 29761: if (__first == __last) 29761: return false; 29761: _BidirectionalIterator __i = __first; 29761: ++__i; 29761: if (__i == __last) 29761: return false; 29761: __i = __last; 29761: --__i; 29761: 29761: for(;;) 29761: { 29761: _BidirectionalIterator __ii = __i; 29761: --__i; 29761: if (__comp(__ii, __i)) 29761: { 29761: _BidirectionalIterator __j = __last; 29761: while (!__comp(--__j, __i)) 29761: {} 29761: std::iter_swap(__i, __j); 29761: std::__reverse(__ii, __last, 29761: std::__iterator_category(__first)); 29761: return true; 29761: } 29761: if (__i == __first) 29761: { 29761: std::__reverse(__first, __last, 29761: std::__iterator_category(__first)); 29761: return false; 29761: } 29761: } 29761: } 29761: # 3039 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline bool 29761: prev_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__prev_permutation(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 3072 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline bool 29761: prev_permutation(_BidirectionalIterator __first, 29761: _BidirectionalIterator __last, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__prev_permutation(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: 29761: _OutputIterator 29761: __replace_copy_if(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: _Predicate __pred, const _Tp& __new_value) 29761: { 29761: for (; __first != __last; ++__first, (void)++__result) 29761: if (__pred(__first)) 29761: *__result = __new_value; 29761: else 29761: *__result = *__first; 29761: return __result; 29761: } 29761: # 3124 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: replace_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: const _Tp& __old_value, const _Tp& __new_value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__replace_copy_if(__first, __last, __result, 29761: __gnu_cxx::__ops::__iter_equals_val(__old_value), 29761: __new_value); 29761: } 29761: # 3159 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: replace_copy_if(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: _Predicate __pred, const _Tp& __new_value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__replace_copy_if(__first, __last, __result, 29761: __gnu_cxx::__ops::__pred_iter(__pred), 29761: __new_value); 29761: } 29761: # 3188 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_sorted(_ForwardIterator __first, _ForwardIterator __last) 29761: { return std::is_sorted_until(__first, __last) == __last; } 29761: # 3203 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_sorted(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { return std::is_sorted_until(__first, __last, __comp) == __last; } 29761: 29761: template 29761: 29761: _ForwardIterator 29761: __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: if (__first == __last) 29761: return __last; 29761: 29761: _ForwardIterator __next = __first; 29761: for (++__next; __next != __last; __first = __next, (void)++__next) 29761: if (__comp(__next, __first)) 29761: return __next; 29761: return __next; 29761: } 29761: # 3234 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__is_sorted_until(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 3259 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__is_sorted_until(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 3285 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair 29761: minmax(const _Tp& __a, const _Tp& __b) 29761: { 29761: 29761: 29761: 29761: return __b < __a ? pair(__b, __a) 29761: : pair(__a, __b); 29761: } 29761: # 3306 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair 29761: minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) 29761: { 29761: return __comp(__b, __a) ? pair(__b, __a) 29761: : pair(__a, __b); 29761: } 29761: 29761: template 29761: constexpr 29761: pair<_ForwardIterator, _ForwardIterator> 29761: __minmax_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: _ForwardIterator __next = __first; 29761: if (__first == __last 29761: || ++__next == __last) 29761: return std::make_pair(__first, __first); 29761: 29761: _ForwardIterator __min{}, __max{}; 29761: if (__comp(__next, __first)) 29761: { 29761: __min = __next; 29761: __max = __first; 29761: } 29761: else 29761: { 29761: __min = __first; 29761: __max = __next; 29761: } 29761: 29761: __first = __next; 29761: ++__first; 29761: 29761: while (__first != __last) 29761: { 29761: __next = __first; 29761: if (++__next == __last) 29761: { 29761: if (__comp(__first, __min)) 29761: __min = __first; 29761: else if (!__comp(__first, __max)) 29761: __max = __first; 29761: break; 29761: } 29761: 29761: if (__comp(__next, __first)) 29761: { 29761: if (__comp(__next, __min)) 29761: __min = __next; 29761: if (!__comp(__first, __max)) 29761: __max = __first; 29761: } 29761: else 29761: { 29761: if (__comp(__first, __min)) 29761: __min = __first; 29761: if (!__comp(__next, __max)) 29761: __max = __next; 29761: } 29761: 29761: __first = __next; 29761: ++__first; 29761: } 29761: 29761: return std::make_pair(__min, __max); 29761: } 29761: # 3386 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair<_ForwardIterator, _ForwardIterator> 29761: minmax_element(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__minmax_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 3414 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair<_ForwardIterator, _ForwardIterator> 29761: minmax_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__minmax_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair<_Tp, _Tp> 29761: minmax(initializer_list<_Tp> __l) 29761: { 29761: ; 29761: pair __p = 29761: std::__minmax_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: return std::make_pair(*__p.first, *__p.second); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline pair<_Tp, _Tp> 29761: minmax(initializer_list<_Tp> __l, _Compare __comp) 29761: { 29761: ; 29761: pair __p = 29761: std::__minmax_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: return std::make_pair(*__p.first, *__p.second); 29761: } 29761: # 3470 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _BinaryPredicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__is_permutation(__first1, __last1, __first2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 29761: } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: template 29761: 29761: bool 29761: __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: _BinaryPredicate __pred) 29761: { 29761: using _Cat1 29761: = typename iterator_traits<_ForwardIterator1>::iterator_category; 29761: using _Cat2 29761: = typename iterator_traits<_ForwardIterator2>::iterator_category; 29761: using _It1_is_RA = is_same<_Cat1, random_access_iterator_tag>; 29761: using _It2_is_RA = is_same<_Cat2, random_access_iterator_tag>; 29761: constexpr bool __ra_iters = __and_<_It1_is_RA, _It2_is_RA>::value; 29761: if constexpr (__ra_iters) 29761: { 29761: if ((__last1 - __first1) != (__last2 - __first2)) 29761: return false; 29761: } 29761: 29761: 29761: 29761: for (; __first1 != __last1 && __first2 != __last2; 29761: ++__first1, (void)++__first2) 29761: if (!__pred(__first1, __first2)) 29761: break; 29761: 29761: if constexpr (__ra_iters) 29761: { 29761: if (__first1 == __last1) 29761: return true; 29761: } 29761: else 29761: { 29761: auto __d1 = std::distance(__first1, __last1); 29761: auto __d2 = std::distance(__first2, __last2); 29761: if (__d1 == 0 && __d2 == 0) 29761: return true; 29761: if (__d1 != __d2) 29761: return false; 29761: } 29761: 29761: for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) 29761: { 29761: if (__scan != std::__find_if(__first1, __scan, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) 29761: continue; 29761: 29761: auto __matches = std::__count_if(__first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); 29761: if (0 == __matches 29761: || std::__count_if(__scan, __last1, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) 29761: != __matches) 29761: return false; 29761: } 29761: return true; 29761: } 29761: #pragma GCC diagnostic pop 29761: # 3566 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29761: { 29761: ; 29761: ; 29761: 29761: return 29761: std::__is_permutation(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 3594 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, 29761: _BinaryPredicate __pred) 29761: { 29761: ; 29761: ; 29761: 29761: return std::__is_permutation(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__pred)); 29761: } 29761: # 3622 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[nodiscard]] constexpr const _Tp& 29761: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!(__hi < __lo))) std::__glibcxx_assert_fail(); } while (false); 29761: return std::min(std::max(__val, __lo), __hi); 29761: } 29761: # 3642 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[nodiscard]] constexpr const _Tp& 29761: clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(!__comp(__hi, __lo))) std::__glibcxx_assert_fail(); } while (false); 29761: return std::min(std::max(__val, __lo, __comp), __hi, __comp); 29761: } 29761: # 3672 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: pair<_IntType, _IntType> 29761: __gen_two_uniform_ints(_IntType __b0, _IntType __b1, 29761: _UniformRandomBitGenerator&& __g) 29761: { 29761: _IntType __x 29761: = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); 29761: return std::make_pair(__x / __b1, __x % __b1); 29761: } 29761: # 3694 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: void 29761: shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _UniformRandomNumberGenerator&& __g) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return; 29761: 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: typedef typename std::make_unsigned<_DistanceType>::type __ud_type; 29761: typedef typename std::uniform_int_distribution<__ud_type> __distr_type; 29761: typedef typename __distr_type::param_type __p_type; 29761: 29761: typedef typename remove_reference<_UniformRandomNumberGenerator>::type 29761: _Gen; 29761: typedef typename common_type::type 29761: __uc_type; 29761: 29761: const __uc_type __urngrange = __g.max() - __g.min(); 29761: const __uc_type __urange = __uc_type(__last - __first); 29761: 29761: if (__urngrange / __urange >= __urange) 29761: 29761: { 29761: _RandomAccessIterator __i = __first + 1; 29761: 29761: 29761: 29761: 29761: 29761: if ((__urange % 2) == 0) 29761: { 29761: __distr_type __d{0, 1}; 29761: std::iter_swap(__i++, __first + __d(__g)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: while (__i != __last) 29761: { 29761: const __uc_type __swap_range = __uc_type(__i - __first) + 1; 29761: 29761: const pair<__uc_type, __uc_type> __pospos = 29761: __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); 29761: 29761: std::iter_swap(__i++, __first + __pospos.first); 29761: std::iter_swap(__i++, __first + __pospos.second); 29761: } 29761: 29761: return; 29761: } 29761: 29761: __distr_type __d; 29761: 29761: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29761: std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); 29761: } 29761: 29761: 29761: 29761: # 3777 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _Function 29761: for_each(_InputIterator __first, _InputIterator __last, _Function __f) 29761: { 29761: 29761: 29761: ; 29761: for (; __first != __last; ++__first) 29761: __f(*__first); 29761: return __f; 29761: } 29761: # 3803 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _InputIterator 29761: for_each_n(_InputIterator __first, _Size __n, _Function __f) 29761: { 29761: auto __n2 = std::__size_to_integer(__n); 29761: using _Cat = typename iterator_traits<_InputIterator>::iterator_category; 29761: if constexpr (is_base_of_v) 29761: { 29761: if (__n2 <= 0) 29761: return __first; 29761: auto __last = __first + __n2; 29761: std::for_each(__first, __last, std::move(__f)); 29761: return __last; 29761: } 29761: else 29761: { 29761: while (__n2-->0) 29761: { 29761: __f(*__first); 29761: ++__first; 29761: } 29761: return __first; 29761: } 29761: } 29761: # 3839 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _InputIterator 29761: find(_InputIterator __first, _InputIterator __last, 29761: const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: return std::__find_if(__first, __last, 29761: __gnu_cxx::__ops::__iter_equals_val(__val)); 29761: } 29761: # 3864 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _InputIterator 29761: find_if(_InputIterator __first, _InputIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__find_if(__first, __last, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: # 3896 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _InputIterator 29761: find_first_of(_InputIterator __first1, _InputIterator __last1, 29761: _ForwardIterator __first2, _ForwardIterator __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1) 29761: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 29761: if (*__first1 == *__iter) 29761: return __first1; 29761: return __last1; 29761: } 29761: # 3937 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: _InputIterator 29761: find_first_of(_InputIterator __first1, _InputIterator __last1, 29761: _ForwardIterator __first2, _ForwardIterator __last2, 29761: _BinaryPredicate __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1) 29761: for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) 29761: if (__comp(*__first1, *__iter)) 29761: return __first1; 29761: return __last1; 29761: } 29761: # 3970 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: adjacent_find(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__adjacent_find(__first, __last, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 3996 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: adjacent_find(_ForwardIterator __first, _ForwardIterator __last, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__adjacent_find(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); 29761: } 29761: # 4022 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline typename iterator_traits<_InputIterator>::difference_type 29761: count(_InputIterator __first, _InputIterator __last, const _Tp& __value) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__count_if(__first, __last, 29761: __gnu_cxx::__ops::__iter_equals_val(__value)); 29761: } 29761: # 4046 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline typename iterator_traits<_InputIterator>::difference_type 29761: count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__count_if(__first, __last, 29761: __gnu_cxx::__ops::__pred_iter(__pred)); 29761: } 29761: # 4087 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator1 29761: search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__search(__first1, __last1, __first2, __last2, 29761: __gnu_cxx::__ops::__iter_equal_to_iter()); 29761: } 29761: # 4121 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: search_n(_ForwardIterator __first, _ForwardIterator __last, 29761: _Integer __count, const _Tp& __val) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__search_n(__first, __last, __count, 29761: __gnu_cxx::__ops::__iter_equals_val(__val)); 29761: } 29761: # 4155 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: search_n(_ForwardIterator __first, _ForwardIterator __last, 29761: _Integer __count, const _Tp& __val, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__search_n(__first, __last, __count, 29761: __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); 29761: } 29761: # 4181 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline _ForwardIterator 29761: search(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Searcher& __searcher) 29761: { return __searcher(__first, __last).first; } 29761: # 4205 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _OutputIterator 29761: transform(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _UnaryOperation __unary_op) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first, (void)++__result) 29761: *__result = __unary_op(*__first); 29761: return __result; 29761: } 29761: # 4243 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _OutputIterator 29761: transform(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _OutputIterator __result, 29761: _BinaryOperation __binary_op) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) 29761: *__result = __binary_op(*__first1, *__first2); 29761: return __result; 29761: } 29761: # 4277 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: void 29761: replace(_ForwardIterator __first, _ForwardIterator __last, 29761: const _Tp& __old_value, const _Tp& __new_value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: if (*__first == __old_value) 29761: *__first = __new_value; 29761: } 29761: # 4310 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: void 29761: replace_if(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred, const _Tp& __new_value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: if (__pred(*__first)) 29761: *__first = __new_value; 29761: } 29761: # 4342 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: void 29761: generate(_ForwardIterator __first, _ForwardIterator __last, 29761: _Generator __gen) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: *__first = __gen(); 29761: } 29761: # 4375 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: _OutputIterator 29761: generate_n(_OutputIterator __first, _Size __n, _Generator __gen) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: typedef __decltype(std::__size_to_integer(__n)) _IntSize; 29761: for (_IntSize __niter = std::__size_to_integer(__n); 29761: __niter > 0; --__niter, (void) ++__first) 29761: *__first = __gen(); 29761: return __first; 29761: } 29761: # 4410 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: unique_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: return std::__unique_copy(__first, __last, __result, 29761: __gnu_cxx::__ops::__iter_equal_to_iter(), 29761: std::__iterator_category(__first), 29761: std::__iterator_category(__result)); 29761: } 29761: # 4450 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: unique_copy(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: _BinaryPredicate __binary_pred) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: return std::__unique_copy(__first, __last, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), 29761: std::__iterator_category(__first), 29761: std::__iterator_category(__result)); 29761: } 29761: # 4489 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29761: inline void 29761: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first != __last) 29761: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29761: { 29761: 29761: _RandomAccessIterator __j = __first 29761: + std::rand() % ((__i - __first) + 1); 29761: if (__i != __j) 29761: std::iter_swap(__i, __j); 29761: } 29761: } 29761: # 4528 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) 29761: void 29761: random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: 29761: _RandomNumberGenerator&& __rand) 29761: 29761: 29761: 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return; 29761: for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) 29761: { 29761: _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); 29761: if (__i != __j) 29761: std::iter_swap(__i, __j); 29761: } 29761: } 29761: # 4570 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _ForwardIterator 29761: partition(_ForwardIterator __first, _ForwardIterator __last, 29761: _Predicate __pred) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: return std::__partition(__first, __last, __pred, 29761: std::__iterator_category(__first)); 29761: } 29761: # 4605 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: partial_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: std::__partial_sort(__first, __middle, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 4644 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: partial_sort(_RandomAccessIterator __first, 29761: _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: std::__partial_sort(__first, __middle, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 4681 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29761: _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: if (__first == __last || __nth == __last) 29761: return; 29761: 29761: std::__introselect(__first, __nth, __last, 29761: std::__lg(__last - __first) * 2, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 4721 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, 29761: _RandomAccessIterator __last, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: 29761: if (__first == __last || __nth == __last) 29761: return; 29761: 29761: std::__introselect(__first, __nth, __last, 29761: std::__lg(__last - __first) * 2, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: # 4759 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 4790 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline void 29761: sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __merge(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first2, __first1)) 29761: { 29761: *__result = *__first2; 29761: ++__first2; 29761: } 29761: else 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: } 29761: ++__result; 29761: } 29761: return std::copy(__first2, __last2, 29761: std::copy(__first1, __last1, __result)); 29761: } 29761: # 4853 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: merge(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__merge(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 4904 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: merge(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__merge(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: inline void 29761: __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _ValueType; 29761: typedef typename iterator_traits<_RandomAccessIterator>::difference_type 29761: _DistanceType; 29761: 29761: if (__first == __last) 29761: return; 29761: 29761: 29761: typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; 29761: 29761: 29761: _TmpBuf __buf(__first, (__last - __first + 1) / 2); 29761: 29761: if (__builtin_expect(__buf.requested_size() == __buf.size(), true)) 29761: std::__stable_sort_adaptive(__first, 29761: __first + _DistanceType(__buf.size()), 29761: __last, __buf.begin(), __comp); 29761: else if (__builtin_expect(__buf.begin() == 0, false)) 29761: std::__inplace_stable_sort(__first, __last, __comp); 29761: else 29761: std::__stable_sort_adaptive_resize(__first, __last, __buf.begin(), 29761: _DistanceType(__buf.size()), __comp); 29761: 29761: 29761: 29761: } 29761: # 4982 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: inline void 29761: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: std::__stable_sort(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5016 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: inline void 29761: stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: std::__stable_sort(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first1, __first2)) 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: } 29761: else if (__comp(__first2, __first1)) 29761: { 29761: *__result = *__first2; 29761: ++__first2; 29761: } 29761: else 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: ++__first2; 29761: } 29761: ++__result; 29761: } 29761: return std::copy(__first2, __last2, 29761: std::copy(__first1, __last1, __result)); 29761: } 29761: # 5086 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_union(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5137 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_union(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_union(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: if (__comp(__first1, __first2)) 29761: ++__first1; 29761: else if (__comp(__first2, __first1)) 29761: ++__first2; 29761: else 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: ++__first2; 29761: ++__result; 29761: } 29761: return __result; 29761: } 29761: # 5210 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_intersection(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5260 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_intersection(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: if (__comp(__first1, __first2)) 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: ++__result; 29761: } 29761: else if (__comp(__first2, __first1)) 29761: ++__first2; 29761: else 29761: { 29761: ++__first1; 29761: ++__first2; 29761: } 29761: return std::copy(__first1, __last1, __result); 29761: } 29761: # 5335 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_difference(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5387 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_difference(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: 29761: _OutputIterator 29761: __set_symmetric_difference(_InputIterator1 __first1, 29761: _InputIterator1 __last1, 29761: _InputIterator2 __first2, 29761: _InputIterator2 __last2, 29761: _OutputIterator __result, 29761: _Compare __comp) 29761: { 29761: while (__first1 != __last1 && __first2 != __last2) 29761: if (__comp(__first1, __first2)) 29761: { 29761: *__result = *__first1; 29761: ++__first1; 29761: ++__result; 29761: } 29761: else if (__comp(__first2, __first1)) 29761: { 29761: *__result = *__first2; 29761: ++__first2; 29761: ++__result; 29761: } 29761: else 29761: { 29761: ++__first1; 29761: ++__first2; 29761: } 29761: return std::copy(__first2, __last2, 29761: std::copy(__first1, __last1, __result)); 29761: } 29761: # 5468 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_symmetric_difference(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5520 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: 29761: inline _OutputIterator 29761: set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _InputIterator2 __last2, 29761: _OutputIterator __result, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: ; 29761: ; 29761: 29761: return std::__set_symmetric_difference(__first1, __last1, 29761: __first2, __last2, __result, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: constexpr 29761: _ForwardIterator 29761: __min_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: if (__first == __last) 29761: return __first; 29761: _ForwardIterator __result = __first; 29761: while (++__first != __last) 29761: if (__comp(__first, __result)) 29761: __result = __first; 29761: return __result; 29761: } 29761: # 5574 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: _ForwardIterator 29761: inline min_element(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__min_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5599 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline _ForwardIterator 29761: min_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__min_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: constexpr 29761: _ForwardIterator 29761: __max_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: if (__first == __last) return __first; 29761: _ForwardIterator __result = __first; 29761: while (++__first != __last) 29761: if (__comp(__result, __first)) 29761: __result = __first; 29761: return __result; 29761: } 29761: # 5638 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline _ForwardIterator 29761: max_element(_ForwardIterator __first, _ForwardIterator __last) 29761: { 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__max_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: # 5663 "/usr/include/c++/14/bits/stl_algo.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: inline _ForwardIterator 29761: max_element(_ForwardIterator __first, _ForwardIterator __last, 29761: _Compare __comp) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: ; 29761: 29761: return std::__max_element(__first, __last, 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr 29761: inline _Tp 29761: min(initializer_list<_Tp> __l) 29761: { 29761: ; 29761: return *std::__min_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: 29761: template 29761: constexpr 29761: inline _Tp 29761: min(initializer_list<_Tp> __l, _Compare __comp) 29761: { 29761: ; 29761: return *std::__min_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: template 29761: constexpr 29761: inline _Tp 29761: max(initializer_list<_Tp> __l) 29761: { 29761: ; 29761: return *std::__max_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_less_iter()); 29761: } 29761: 29761: template 29761: constexpr 29761: inline _Tp 29761: max(initializer_list<_Tp> __l, _Compare __comp) 29761: { 29761: ; 29761: return *std::__max_element(__l.begin(), __l.end(), 29761: __gnu_cxx::__ops::__iter_comp_iter(__comp)); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: _RandomAccessIterator 29761: __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, 29761: _RandomAccessIterator __out, random_access_iterator_tag, 29761: _Size __n, _UniformRandomBitGenerator&& __g) 29761: { 29761: using __distrib_type = uniform_int_distribution<_Size>; 29761: using __param_type = typename __distrib_type::param_type; 29761: __distrib_type __d{}; 29761: _Size __sample_sz = 0; 29761: while (__first != __last && __sample_sz != __n) 29761: { 29761: __out[__sample_sz++] = *__first; 29761: ++__first; 29761: } 29761: for (auto __pop_sz = __sample_sz; __first != __last; 29761: ++__first, (void) ++__pop_sz) 29761: { 29761: const auto __k = __d(__g, __param_type{0, __pop_sz}); 29761: if (__k < __n) 29761: __out[__k] = *__first; 29761: } 29761: return __out + __sample_sz; 29761: } 29761: 29761: 29761: template 29761: _OutputIterator 29761: __sample(_ForwardIterator __first, _ForwardIterator __last, 29761: forward_iterator_tag, 29761: _OutputIterator __out, _Cat, 29761: _Size __n, _UniformRandomBitGenerator&& __g) 29761: { 29761: using __distrib_type = uniform_int_distribution<_Size>; 29761: using __param_type = typename __distrib_type::param_type; 29761: using _USize = make_unsigned_t<_Size>; 29761: using _Gen = remove_reference_t<_UniformRandomBitGenerator>; 29761: using __uc_type = common_type_t; 29761: 29761: if (__first == __last) 29761: return __out; 29761: 29761: __distrib_type __d{}; 29761: _Size __unsampled_sz = std::distance(__first, __last); 29761: __n = std::min(__n, __unsampled_sz); 29761: 29761: 29761: 29761: 29761: const __uc_type __urngrange = __g.max() - __g.min(); 29761: if (__urngrange / __uc_type(__unsampled_sz) >= __uc_type(__unsampled_sz)) 29761: 29761: 29761: { 29761: while (__n != 0 && __unsampled_sz >= 2) 29761: { 29761: const pair<_Size, _Size> __p = 29761: __gen_two_uniform_ints(__unsampled_sz, __unsampled_sz - 1, __g); 29761: 29761: --__unsampled_sz; 29761: if (__p.first < __n) 29761: { 29761: *__out++ = *__first; 29761: --__n; 29761: } 29761: 29761: ++__first; 29761: 29761: if (__n == 0) break; 29761: 29761: --__unsampled_sz; 29761: if (__p.second < __n) 29761: { 29761: *__out++ = *__first; 29761: --__n; 29761: } 29761: 29761: ++__first; 29761: } 29761: } 29761: 29761: 29761: 29761: for (; __n != 0; ++__first) 29761: if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) 29761: { 29761: *__out++ = *__first; 29761: --__n; 29761: } 29761: return __out; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: _SampleIterator 29761: sample(_PopulationIterator __first, _PopulationIterator __last, 29761: _SampleIterator __out, _Distance __n, 29761: _UniformRandomBitGenerator&& __g) 29761: { 29761: using __pop_cat = typename 29761: std::iterator_traits<_PopulationIterator>::iterator_category; 29761: using __samp_cat = typename 29761: std::iterator_traits<_SampleIterator>::iterator_category; 29761: 29761: static_assert( 29761: __or_, 29761: is_convertible<__samp_cat, random_access_iterator_tag>>::value, 29761: "output range must use a RandomAccessIterator when input range" 29761: " does not meet the ForwardIterator requirements"); 29761: 29761: static_assert(is_integral<_Distance>::value, 29761: "sample size must be an integer type"); 29761: 29761: typename iterator_traits<_PopulationIterator>::difference_type __d = __n; 29761: return std:: 29761: __sample(__first, __last, __pop_cat{}, __out, __samp_cat{}, __d, 29761: std::forward<_UniformRandomBitGenerator>(__g)); 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 62 "/usr/include/c++/14/algorithm" 2 3 29761: # 77 "/usr/include/c++/14/algorithm" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 78 "/usr/include/c++/14/algorithm" 2 3 29761: # 86 "/usr/include/c++/14/algorithm" 3 29761: # 1 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 1 3 29761: # 17 "/usr/include/c++/14/pstl/glue_algorithm_defs.h" 3 29761: namespace std 29761: { 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: any_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: none_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: for_each(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Function __f); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: for_each_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, _Function __f); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: find_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: find_if_not(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29761: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29761: _ForwardIterator2 __s_last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29761: typename iterator_traits<_ForwardIterator>::difference_type> 29761: count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29761: typename iterator_traits<_ForwardIterator>::difference_type> 29761: count_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29761: _ForwardIterator2 __s_last, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> 29761: search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, 29761: _ForwardIterator2 __s_last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 29761: const _Tp& __value, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, 29761: const _Tp& __value); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: copy_n(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 result, 29761: _Predicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: swap_ranges(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29761: _UnaryOperation __op); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator __result, _BinaryOperation __op); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred, 29761: const _Tp& __new_value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, 29761: const _Tp& __new_value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: replace_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: replace_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29761: const _Tp& __old_value, const _Tp& __new_value); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, const _Tp& __value); 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Generator __g); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: remove_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _Predicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: remove_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29761: const _Tp& __value); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: remove_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, 29761: _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: reverse_copy(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 29761: _ForwardIterator __d_first); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: rotate_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __middle, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: is_partitioned(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: partition(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _BidirectionalIterator> 29761: stable_partition(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, 29761: _UnaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29761: partition_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29761: _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29761: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29761: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _BinaryPredicate __pred); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29761: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> 29761: mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _BinaryPredicate __p); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _BinaryPredicate __p); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2); 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: move(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __d_first); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, 29761: _RandomAccessIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29761: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29761: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29761: partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, 29761: _RandomAccessIterator __d_first, _RandomAccessIterator __d_last); 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 29761: _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, 29761: _RandomAccessIterator __last); 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _ForwardIterator __d_first); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> 29761: inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, 29761: _BidirectionalIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, 29761: _ForwardIterator2 __last2, _ForwardIterator __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator result, 29761: _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29761: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> 29761: is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> 29761: max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 29761: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> 29761: minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> 29761: lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _ForwardIterator2 __last2); 29761: 29761: } 29761: # 87 "/usr/include/c++/14/algorithm" 2 3 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 1 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: 29761: 29761: # 1 "/usr/include/c++/14/thread" 1 3 29761: # 32 "/usr/include/c++/14/thread" 3 29761: 29761: # 33 "/usr/include/c++/14/thread" 3 29761: # 45 "/usr/include/c++/14/thread" 3 29761: # 1 "/usr/include/c++/14/bits/std_thread.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/std_thread.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/std_thread.h" 3 29761: # 52 "/usr/include/c++/14/bits/std_thread.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 82 "/usr/include/c++/14/bits/std_thread.h" 3 29761: class thread 29761: { 29761: public: 29761: 29761: using native_handle_type = __gthread_t; 29761: # 96 "/usr/include/c++/14/bits/std_thread.h" 3 29761: class id 29761: { 29761: native_handle_type _M_thread; 29761: 29761: public: 29761: id() noexcept : _M_thread() { } 29761: 29761: explicit 29761: id(native_handle_type __id) : _M_thread(__id) { } 29761: 29761: private: 29761: friend class thread; 29761: friend struct hash; 29761: 29761: friend bool 29761: operator==(id __x, id __y) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator<(id __x, id __y) noexcept; 29761: 29761: 29761: template 29761: friend basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, id __id); 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: private: 29761: id _M_id; 29761: 29761: 29761: 29761: 29761: template 29761: using __not_same = __not_, thread>>; 29761: 29761: public: 29761: thread() noexcept = default; 29761: 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: 29761: 29761: static void 29761: _M_thread_deps_never_run() { 29761: 29761: 29761: 29761: 29761: } 29761: 29761: public: 29761: template>> 29761: explicit 29761: thread(_Callable&& __f, _Args&&... __args) 29761: { 29761: static_assert( __is_invocable::type, 29761: typename decay<_Args>::type...>::value, 29761: "std::thread arguments must be invocable after conversion to rvalues" 29761: ); 29761: 29761: using _Wrapper = _Call_wrapper<_Callable, _Args...>; 29761: 29761: 29761: _M_start_thread(_State_ptr(new _State_impl<_Wrapper>( 29761: std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), 29761: _M_thread_deps_never_run); 29761: } 29761: 29761: 29761: ~thread() 29761: { 29761: if (joinable()) 29761: std::__terminate(); 29761: } 29761: 29761: thread(const thread&) = delete; 29761: 29761: thread(thread&& __t) noexcept 29761: { swap(__t); } 29761: 29761: thread& operator=(const thread&) = delete; 29761: 29761: thread& operator=(thread&& __t) noexcept 29761: { 29761: if (joinable()) 29761: std::__terminate(); 29761: swap(__t); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(thread& __t) noexcept 29761: { std::swap(_M_id, __t._M_id); } 29761: 29761: bool 29761: joinable() const noexcept 29761: { return !(_M_id == id()); } 29761: 29761: void 29761: join(); 29761: 29761: void 29761: detach(); 29761: 29761: id 29761: get_id() const noexcept 29761: { return _M_id; } 29761: 29761: 29761: 29761: native_handle_type 29761: native_handle() 29761: { return _M_id._M_thread; } 29761: 29761: 29761: static unsigned int 29761: hardware_concurrency() noexcept; 29761: 29761: 29761: 29761: private: 29761: 29761: 29761: 29761: struct _State 29761: { 29761: virtual ~_State(); 29761: virtual void _M_run() = 0; 29761: }; 29761: using _State_ptr = unique_ptr<_State>; 29761: 29761: private: 29761: template 29761: struct _State_impl : public _State 29761: { 29761: _Callable _M_func; 29761: 29761: template 29761: _State_impl(_Args&&... __args) 29761: : _M_func(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: void 29761: _M_run() { _M_func(); } 29761: }; 29761: 29761: void 29761: _M_start_thread(_State_ptr, void (*)()); 29761: # 278 "/usr/include/c++/14/bits/std_thread.h" 3 29761: private: 29761: 29761: template 29761: struct _Invoker 29761: { 29761: template 29761: explicit 29761: _Invoker(_Args&&... __args) 29761: : _M_t(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: _Tuple _M_t; 29761: 29761: template 29761: struct __result; 29761: template 29761: struct __result> 29761: : __invoke_result<_Fn, _Args...> 29761: { }; 29761: 29761: template 29761: typename __result<_Tuple>::type 29761: _M_invoke(_Index_tuple<_Ind...>) 29761: { return std::__invoke(std::get<_Ind>(std::move(_M_t))...); } 29761: 29761: typename __result<_Tuple>::type 29761: operator()() 29761: { 29761: using _Indices 29761: = typename _Build_index_tuple::value>::__type; 29761: return _M_invoke(_Indices()); 29761: } 29761: }; 29761: 29761: public: 29761: 29761: template 29761: using _Call_wrapper = _Invoker::type...>>; 29761: 29761: 29761: }; 29761: # 327 "/usr/include/c++/14/bits/std_thread.h" 3 29761: inline void 29761: swap(thread& __x, thread& __y) noexcept 29761: { __x.swap(__y); } 29761: 29761: 29761: inline bool 29761: operator==(thread::id __x, thread::id __y) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: return __x._M_thread == __y._M_thread; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: size_t 29761: operator()(const thread::id& __id) const noexcept 29761: { return std::_Hash_impl::hash(__id._M_thread); } 29761: }; 29761: 29761: namespace this_thread 29761: { 29761: 29761: inline thread::id 29761: get_id() noexcept 29761: { 29761: 29761: 29761: 29761: return thread::id(pthread_self()); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: inline void 29761: yield() noexcept 29761: { 29761: 29761: __gthread_yield(); 29761: 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 46 "/usr/include/c++/14/thread" 2 3 29761: # 1 "/usr/include/c++/14/bits/this_thread_sleep.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/chrono.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/chrono.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/chrono.h" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ratio" 1 3 29761: # 33 "/usr/include/c++/14/ratio" 3 29761: 29761: # 34 "/usr/include/c++/14/ratio" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstdint" 1 3 29761: # 32 "/usr/include/c++/14/cstdint" 3 29761: 29761: # 33 "/usr/include/c++/14/cstdint" 3 29761: # 48 "/usr/include/c++/14/cstdint" 3 29761: namespace std 29761: { 29761: 29761: using ::int8_t; 29761: using ::int16_t; 29761: using ::int32_t; 29761: using ::int64_t; 29761: 29761: using ::int_fast8_t; 29761: using ::int_fast16_t; 29761: using ::int_fast32_t; 29761: using ::int_fast64_t; 29761: 29761: using ::int_least8_t; 29761: using ::int_least16_t; 29761: using ::int_least32_t; 29761: using ::int_least64_t; 29761: 29761: using ::intmax_t; 29761: using ::intptr_t; 29761: 29761: using ::uint8_t; 29761: using ::uint16_t; 29761: using ::uint32_t; 29761: using ::uint64_t; 29761: 29761: using ::uint_fast8_t; 29761: using ::uint_fast16_t; 29761: using ::uint_fast32_t; 29761: using ::uint_fast64_t; 29761: 29761: using ::uint_least8_t; 29761: using ::uint_least16_t; 29761: using ::uint_least32_t; 29761: using ::uint_least64_t; 29761: 29761: using ::uintmax_t; 29761: using ::uintptr_t; 29761: # 142 "/usr/include/c++/14/cstdint" 3 29761: } 29761: # 41 "/usr/include/c++/14/ratio" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 44 "/usr/include/c++/14/ratio" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 59 "/usr/include/c++/14/ratio" 3 29761: template 29761: struct __static_sign 29761: : integral_constant 29761: { }; 29761: 29761: template 29761: struct __static_abs 29761: : integral_constant::value> 29761: { }; 29761: 29761: template 29761: struct __static_gcd 29761: : __static_gcd<_Qn, (_Pn % _Qn)> 29761: { }; 29761: 29761: template 29761: struct __static_gcd<_Pn, 0> 29761: : integral_constant::value> 29761: { }; 29761: 29761: template 29761: struct __static_gcd<0, _Qn> 29761: : integral_constant::value> 29761: { }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __safe_multiply 29761: { 29761: private: 29761: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29761: 29761: static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; 29761: static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; 29761: static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; 29761: static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; 29761: 29761: static_assert(__a1 == 0 || __b1 == 0, 29761: "overflow in multiplication"); 29761: static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), 29761: "overflow in multiplication"); 29761: static_assert(__b0 * __a0 <= 0x7fffffffffffffffLL, 29761: "overflow in multiplication"); 29761: static_assert((__a0 * __b1 + __b0 * __a1) * __c 29761: <= 0x7fffffffffffffffLL - __b0 * __a0, 29761: "overflow in multiplication"); 29761: 29761: public: 29761: static const intmax_t value = _Pn * _Qn; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __big_less 29761: : integral_constant 29761: { }; 29761: 29761: template 29761: struct __big_add 29761: { 29761: static constexpr uintmax_t __lo = __lo1 + __lo2; 29761: static constexpr uintmax_t __hi = (__hi1 + __hi2 + 29761: (__lo1 + __lo2 < __lo1)); 29761: }; 29761: 29761: 29761: template 29761: struct __big_sub 29761: { 29761: static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, 29761: "Internal library error"); 29761: static constexpr uintmax_t __lo = __lo1 - __lo2; 29761: static constexpr uintmax_t __hi = (__hi1 - __hi2 - 29761: (__lo1 < __lo2)); 29761: }; 29761: 29761: 29761: template 29761: struct __big_mul 29761: { 29761: private: 29761: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29761: static constexpr uintmax_t __x0 = __x % __c; 29761: static constexpr uintmax_t __x1 = __x / __c; 29761: static constexpr uintmax_t __y0 = __y % __c; 29761: static constexpr uintmax_t __y1 = __y / __c; 29761: static constexpr uintmax_t __x0y0 = __x0 * __y0; 29761: static constexpr uintmax_t __x0y1 = __x0 * __y1; 29761: static constexpr uintmax_t __x1y0 = __x1 * __y0; 29761: static constexpr uintmax_t __x1y1 = __x1 * __y1; 29761: static constexpr uintmax_t __mix = __x0y1 + __x1y0; 29761: static constexpr uintmax_t __mix_lo = __mix * __c; 29761: static constexpr uintmax_t __mix_hi 29761: = __mix / __c + ((__mix < __x0y1) ? __c : 0); 29761: typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; 29761: public: 29761: static constexpr uintmax_t __hi = _Res::__hi; 29761: static constexpr uintmax_t __lo = _Res::__lo; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __big_div_impl 29761: { 29761: private: 29761: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), 29761: "Internal library error"); 29761: static_assert(__n1 < __d, "Internal library error"); 29761: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); 29761: static constexpr uintmax_t __d1 = __d / __c; 29761: static constexpr uintmax_t __d0 = __d % __c; 29761: 29761: static constexpr uintmax_t __q1x = __n1 / __d1; 29761: static constexpr uintmax_t __r1x = __n1 % __d1; 29761: static constexpr uintmax_t __m = __q1x * __d0; 29761: static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; 29761: static constexpr uintmax_t __r1z = __r1y + __d; 29761: static constexpr uintmax_t __r1 29761: = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) 29761: ? (__r1z + __d) : __r1z : __r1y) - __m; 29761: static constexpr uintmax_t __q1 29761: = __q1x - ((__r1y < __m) 29761: ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); 29761: static constexpr uintmax_t __q0x = __r1 / __d1; 29761: static constexpr uintmax_t __r0x = __r1 % __d1; 29761: static constexpr uintmax_t __n = __q0x * __d0; 29761: static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; 29761: static constexpr uintmax_t __r0z = __r0y + __d; 29761: static constexpr uintmax_t __r0 29761: = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) 29761: ? (__r0z + __d) : __r0z : __r0y) - __n; 29761: static constexpr uintmax_t __q0 29761: = __q0x - ((__r0y < __n) ? ((__r0z >= __d) 29761: && (__r0z < __n)) ? 2 : 1 : 0); 29761: 29761: public: 29761: static constexpr uintmax_t __quot = __q1 * __c + __q0; 29761: static constexpr uintmax_t __rem = __r0; 29761: 29761: private: 29761: typedef __big_mul<__quot, __d> _Prod; 29761: typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; 29761: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 29761: "Internal library error"); 29761: }; 29761: 29761: template 29761: struct __big_div 29761: { 29761: private: 29761: static_assert(__d != 0, "Internal library error"); 29761: static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), 29761: "This library calls __builtin_clzll on uintmax_t, which " 29761: "is unsafe on your platform. Please complain to " 29761: "http://gcc.gnu.org/bugzilla/"); 29761: static constexpr int __shift = __builtin_clzll(__d); 29761: static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; 29761: static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; 29761: static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; 29761: static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; 29761: static constexpr uintmax_t __new_d = __d * __c1; 29761: static constexpr uintmax_t __new_n0 = __n0 * __c1; 29761: static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; 29761: static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; 29761: static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; 29761: typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; 29761: 29761: public: 29761: static constexpr uintmax_t __quot_hi = __n1 / __d; 29761: static constexpr uintmax_t __quot_lo = _Res::__quot; 29761: static constexpr uintmax_t __rem = _Res::__rem / __c1; 29761: 29761: private: 29761: typedef __big_mul<__quot_lo, __d> _P0; 29761: typedef __big_mul<__quot_hi, __d> _P1; 29761: typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; 29761: 29761: static_assert(_P1::__hi == 0, "Internal library error"); 29761: static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); 29761: 29761: static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, 29761: "Internal library error"); 29761: static_assert(__rem < __d, "Internal library error"); 29761: }; 29761: # 268 "/usr/include/c++/14/ratio" 3 29761: template 29761: struct ratio 29761: { 29761: static_assert(_Den != 0, "denominator cannot be zero"); 29761: static_assert(_Num >= -0x7fffffffffffffffLL && _Den >= -0x7fffffffffffffffLL, 29761: "out of range"); 29761: 29761: 29761: static constexpr intmax_t num = 29761: _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; 29761: 29761: static constexpr intmax_t den = 29761: __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; 29761: 29761: typedef ratio type; 29761: }; 29761: # 295 "/usr/include/c++/14/ratio" 3 29761: template 29761: struct __is_ratio 29761: : std::false_type 29761: { }; 29761: 29761: template 29761: struct __is_ratio> 29761: : std::true_type 29761: { }; 29761: 29761: 29761: template 29761: constexpr bool __is_ratio_v = false; 29761: template 29761: constexpr bool __is_ratio_v> = true; 29761: 29761: 29761: template 29761: constexpr bool 29761: __are_both_ratios() noexcept 29761: { 29761: 29761: if constexpr (__is_ratio_v<_R1>) 29761: if constexpr (__is_ratio_v<_R2>) 29761: return true; 29761: return false; 29761: 29761: 29761: 29761: } 29761: 29761: template 29761: struct __ratio_multiply 29761: { 29761: static_assert(std::__are_both_ratios<_R1, _R2>(), 29761: "both template arguments must be a std::ratio"); 29761: 29761: private: 29761: static const intmax_t __gcd1 = 29761: __static_gcd<_R1::num, _R2::den>::value; 29761: static const intmax_t __gcd2 = 29761: __static_gcd<_R2::num, _R1::den>::value; 29761: 29761: public: 29761: typedef ratio< 29761: __safe_multiply<(_R1::num / __gcd1), 29761: (_R2::num / __gcd2)>::value, 29761: __safe_multiply<(_R1::den / __gcd2), 29761: (_R2::den / __gcd1)>::value> type; 29761: 29761: static constexpr intmax_t num = type::num; 29761: static constexpr intmax_t den = type::den; 29761: }; 29761: # 360 "/usr/include/c++/14/ratio" 3 29761: template 29761: using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; 29761: 29761: 29761: 29761: template 29761: struct __ratio_divide 29761: { 29761: static_assert(_R2::num != 0, "division by 0"); 29761: 29761: typedef typename __ratio_multiply< 29761: _R1, 29761: ratio<_R2::den, _R2::num>>::type type; 29761: 29761: static constexpr intmax_t num = type::num; 29761: static constexpr intmax_t den = type::den; 29761: }; 29761: # 389 "/usr/include/c++/14/ratio" 3 29761: template 29761: using ratio_divide = typename __ratio_divide<_R1, _R2>::type; 29761: 29761: 29761: template 29761: struct ratio_equal 29761: : integral_constant 29761: { 29761: static_assert(std::__are_both_ratios<_R1, _R2>(), 29761: "both template arguments must be a std::ratio"); 29761: }; 29761: 29761: 29761: template 29761: struct ratio_not_equal 29761: : integral_constant::value> 29761: { }; 29761: 29761: 29761: 29761: 29761: template, 29761: typename _Right = __big_mul<_R2::num,_R1::den> > 29761: struct __ratio_less_impl_1 29761: : integral_constant::value> 29761: { }; 29761: 29761: template::value 29761: != __static_sign<_R2::num>::value)), 29761: bool = (__static_sign<_R1::num>::value == -1 29761: && __static_sign<_R2::num>::value == -1)> 29761: struct __ratio_less_impl 29761: : __ratio_less_impl_1<_R1, _R2>::type 29761: { }; 29761: 29761: template 29761: struct __ratio_less_impl<_R1, _R2, true, false> 29761: : integral_constant 29761: { }; 29761: 29761: template 29761: struct __ratio_less_impl<_R1, _R2, false, true> 29761: : __ratio_less_impl_1, 29761: ratio<-_R1::num, _R1::den> >::type 29761: { }; 29761: 29761: 29761: 29761: 29761: template 29761: struct ratio_less 29761: : __ratio_less_impl<_R1, _R2>::type 29761: { 29761: static_assert(std::__are_both_ratios<_R1, _R2>(), 29761: "both template arguments must be a std::ratio"); 29761: }; 29761: 29761: 29761: template 29761: struct ratio_less_equal 29761: : integral_constant::value> 29761: { }; 29761: 29761: 29761: template 29761: struct ratio_greater 29761: : integral_constant::value> 29761: { }; 29761: 29761: 29761: template 29761: struct ratio_greater_equal 29761: : integral_constant::value> 29761: { }; 29761: 29761: 29761: template 29761: inline constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; 29761: template 29761: inline constexpr bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; 29761: template 29761: inline constexpr bool ratio_less_v = ratio_less<_R1, _R2>::value; 29761: template 29761: inline constexpr bool ratio_less_equal_v 29761: = ratio_less_equal<_R1, _R2>::value; 29761: template 29761: inline constexpr bool ratio_greater_v = ratio_greater<_R1, _R2>::value; 29761: template 29761: inline constexpr bool ratio_greater_equal_v 29761: = ratio_greater_equal<_R1, _R2>::value; 29761: 29761: 29761: 29761: 29761: template= 0), 29761: bool = (_R2::num >= 0), 29761: bool = ratio_less::value, _R1::den>, 29761: ratio<__static_abs<_R2::num>::value, _R2::den> >::value> 29761: struct __ratio_add_impl 29761: { 29761: private: 29761: typedef typename __ratio_add_impl< 29761: ratio<-_R1::num, _R1::den>, 29761: ratio<-_R2::num, _R2::den> >::type __t; 29761: public: 29761: typedef ratio<-__t::num, __t::den> type; 29761: }; 29761: 29761: 29761: template 29761: struct __ratio_add_impl<_R1, _R2, true, true, __b> 29761: { 29761: private: 29761: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 29761: static constexpr uintmax_t __d2 = _R2::den / __g; 29761: typedef __big_mul<_R1::den, __d2> __d; 29761: typedef __big_mul<_R1::num, _R2::den / __g> __x; 29761: typedef __big_mul<_R2::num, _R1::den / __g> __y; 29761: typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 29761: static_assert(__n::__hi >= __x::__hi, "Internal library error"); 29761: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 29761: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 29761: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 29761: static_assert(__n_final::__rem == 0, "Internal library error"); 29761: static_assert(__n_final::__quot_hi == 0 && 29761: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29761: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 29761: static_assert(__d_final::__hi == 0 && 29761: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29761: public: 29761: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 29761: }; 29761: 29761: template 29761: struct __ratio_add_impl<_R1, _R2, false, true, true> 29761: : __ratio_add_impl<_R2, _R1> 29761: { }; 29761: 29761: 29761: template 29761: struct __ratio_add_impl<_R1, _R2, true, false, false> 29761: { 29761: private: 29761: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; 29761: static constexpr uintmax_t __d2 = _R2::den / __g; 29761: typedef __big_mul<_R1::den, __d2> __d; 29761: typedef __big_mul<_R1::num, _R2::den / __g> __x; 29761: typedef __big_mul<-_R2::num, _R1::den / __g> __y; 29761: typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; 29761: typedef __big_div<__n::__hi, __n::__lo, __g> __ng; 29761: static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; 29761: typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; 29761: static_assert(__n_final::__rem == 0, "Internal library error"); 29761: static_assert(__n_final::__quot_hi == 0 && 29761: __n_final::__quot_lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29761: typedef __big_mul<_R1::den / __g2, __d2> __d_final; 29761: static_assert(__d_final::__hi == 0 && 29761: __d_final::__lo <= 0x7fffffffffffffffLL, "overflow in addition"); 29761: public: 29761: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; 29761: }; 29761: 29761: template 29761: struct __ratio_add 29761: { 29761: static_assert(std::__are_both_ratios<_R1, _R2>(), 29761: "both template arguments must be a std::ratio"); 29761: 29761: typedef typename __ratio_add_impl<_R1, _R2>::type type; 29761: static constexpr intmax_t num = type::num; 29761: static constexpr intmax_t den = type::den; 29761: }; 29761: # 578 "/usr/include/c++/14/ratio" 3 29761: template 29761: using ratio_add = typename __ratio_add<_R1, _R2>::type; 29761: 29761: 29761: 29761: template 29761: struct __ratio_subtract 29761: { 29761: typedef typename __ratio_add< 29761: _R1, 29761: ratio<-_R2::num, _R2::den>>::type type; 29761: 29761: static constexpr intmax_t num = type::num; 29761: static constexpr intmax_t den = type::den; 29761: }; 29761: # 605 "/usr/include/c++/14/ratio" 3 29761: template 29761: using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; 29761: # 618 "/usr/include/c++/14/ratio" 3 29761: using atto = ratio< 1, 1000000000000000000>; 29761: using femto = ratio< 1, 1000000000000000>; 29761: using pico = ratio< 1, 1000000000000>; 29761: using nano = ratio< 1, 1000000000>; 29761: using micro = ratio< 1, 1000000>; 29761: using milli = ratio< 1, 1000>; 29761: using centi = ratio< 1, 100>; 29761: using deci = ratio< 1, 10>; 29761: using deca = ratio< 10, 1>; 29761: using hecto = ratio< 100, 1>; 29761: using kilo = ratio< 1000, 1>; 29761: using mega = ratio< 1000000, 1>; 29761: using giga = ratio< 1000000000, 1>; 29761: using tera = ratio< 1000000000000, 1>; 29761: using peta = ratio< 1000000000000000, 1>; 29761: using exa = ratio< 1000000000000000000, 1>; 29761: # 646 "/usr/include/c++/14/ratio" 3 29761: 29761: } 29761: # 38 "/usr/include/c++/14/bits/chrono.h" 2 3 29761: 29761: # 1 "/usr/include/c++/14/limits" 1 3 29761: # 40 "/usr/include/c++/14/limits" 3 29761: 29761: # 41 "/usr/include/c++/14/limits" 3 29761: # 158 "/usr/include/c++/14/limits" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum float_round_style 29761: { 29761: round_indeterminate = -1, 29761: round_toward_zero = 0, 29761: round_to_nearest = 1, 29761: round_toward_infinity = 2, 29761: round_toward_neg_infinity = 3 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum float_denorm_style 29761: { 29761: 29761: denorm_indeterminate = -1, 29761: 29761: denorm_absent = 0, 29761: 29761: denorm_present = 1 29761: }; 29761: # 202 "/usr/include/c++/14/limits" 3 29761: struct __numeric_limits_base 29761: { 29761: 29761: 29761: static constexpr bool is_specialized = false; 29761: 29761: 29761: 29761: 29761: static constexpr int digits = 0; 29761: 29761: 29761: static constexpr int digits10 = 0; 29761: 29761: 29761: 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: 29761: 29761: static constexpr bool is_signed = false; 29761: 29761: 29761: static constexpr bool is_integer = false; 29761: 29761: 29761: 29761: 29761: static constexpr bool is_exact = false; 29761: 29761: 29761: 29761: static constexpr int radix = 0; 29761: 29761: 29761: 29761: static constexpr int min_exponent = 0; 29761: 29761: 29761: 29761: static constexpr int min_exponent10 = 0; 29761: 29761: 29761: 29761: 29761: static constexpr int max_exponent = 0; 29761: 29761: 29761: 29761: static constexpr int max_exponent10 = 0; 29761: 29761: 29761: static constexpr bool has_infinity = false; 29761: 29761: 29761: 29761: static constexpr bool has_quiet_NaN = false; 29761: 29761: 29761: 29761: static constexpr bool has_signaling_NaN = false; 29761: 29761: 29761: static constexpr float_denorm_style has_denorm = denorm_absent; 29761: 29761: 29761: 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: 29761: 29761: static constexpr bool is_iec559 = false; 29761: 29761: 29761: 29761: 29761: static constexpr bool is_bounded = false; 29761: # 288 "/usr/include/c++/14/limits" 3 29761: static constexpr bool is_modulo = false; 29761: 29761: 29761: static constexpr bool traps = false; 29761: 29761: 29761: static constexpr bool tinyness_before = false; 29761: 29761: 29761: 29761: 29761: static constexpr float_round_style round_style = 29761: round_toward_zero; 29761: }; 29761: # 311 "/usr/include/c++/14/limits" 3 29761: template 29761: struct numeric_limits : public __numeric_limits_base 29761: { 29761: 29761: 29761: static constexpr _Tp 29761: min() noexcept { return _Tp(); } 29761: 29761: 29761: static constexpr _Tp 29761: max() noexcept { return _Tp(); } 29761: 29761: 29761: 29761: 29761: static constexpr _Tp 29761: lowest() noexcept { return _Tp(); } 29761: 29761: 29761: 29761: 29761: static constexpr _Tp 29761: epsilon() noexcept { return _Tp(); } 29761: 29761: 29761: static constexpr _Tp 29761: round_error() noexcept { return _Tp(); } 29761: 29761: 29761: static constexpr _Tp 29761: infinity() noexcept { return _Tp(); } 29761: 29761: 29761: 29761: static constexpr _Tp 29761: quiet_NaN() noexcept { return _Tp(); } 29761: 29761: 29761: 29761: static constexpr _Tp 29761: signaling_NaN() noexcept { return _Tp(); } 29761: 29761: 29761: 29761: 29761: static constexpr _Tp 29761: denorm_min() noexcept { return _Tp(); } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct numeric_limits 29761: : public numeric_limits<_Tp> { }; 29761: 29761: template 29761: struct numeric_limits 29761: : public numeric_limits<_Tp> { }; 29761: 29761: template 29761: struct numeric_limits 29761: : public numeric_limits<_Tp> { }; 29761: # 383 "/usr/include/c++/14/limits" 3 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr bool 29761: min() noexcept { return false; } 29761: 29761: static constexpr bool 29761: max() noexcept { return true; } 29761: 29761: 29761: static constexpr bool 29761: lowest() noexcept { return min(); } 29761: 29761: static constexpr int digits = 1; 29761: static constexpr int digits10 = 0; 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr bool 29761: epsilon() noexcept { return false; } 29761: 29761: static constexpr bool 29761: round_error() noexcept { return false; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr bool 29761: infinity() noexcept { return false; } 29761: 29761: static constexpr bool 29761: quiet_NaN() noexcept { return false; } 29761: 29761: static constexpr bool 29761: signaling_NaN() noexcept { return false; } 29761: 29761: static constexpr bool 29761: denorm_min() noexcept { return false; } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: 29761: 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr char 29761: 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); } 29761: 29761: static constexpr char 29761: max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } 29761: 29761: 29761: static constexpr char 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = ((char)(-1) < 0); 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr char 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr char 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr 29761: char infinity() noexcept { return char(); } 29761: 29761: static constexpr char 29761: quiet_NaN() noexcept { return char(); } 29761: 29761: static constexpr char 29761: signaling_NaN() noexcept { return char(); } 29761: 29761: static constexpr char 29761: denorm_min() noexcept { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = !is_signed; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr signed char 29761: min() noexcept { return -0x7f - 1; } 29761: 29761: static constexpr signed char 29761: max() noexcept { return 0x7f; } 29761: 29761: 29761: static constexpr signed char 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr signed char 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr signed char 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr signed char 29761: infinity() noexcept { return static_cast(0); } 29761: 29761: static constexpr signed char 29761: quiet_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr signed char 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr signed char 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr unsigned char 29761: min() noexcept { return 0; } 29761: 29761: static constexpr unsigned char 29761: max() noexcept { return 0x7f * 2U + 1; } 29761: 29761: 29761: static constexpr unsigned char 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr unsigned char 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr unsigned char 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr unsigned char 29761: infinity() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned char 29761: quiet_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned char 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned char 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = true; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr wchar_t 29761: 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); } 29761: 29761: static constexpr wchar_t 29761: 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); } 29761: 29761: 29761: static constexpr wchar_t 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = ((wchar_t)(-1) < 0); 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr wchar_t 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr wchar_t 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr wchar_t 29761: infinity() noexcept { return wchar_t(); } 29761: 29761: static constexpr wchar_t 29761: quiet_NaN() noexcept { return wchar_t(); } 29761: 29761: static constexpr wchar_t 29761: signaling_NaN() noexcept { return wchar_t(); } 29761: 29761: static constexpr wchar_t 29761: denorm_min() noexcept { return wchar_t(); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = !is_signed; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: # 796 "/usr/include/c++/14/limits" 3 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr char16_t 29761: 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); } 29761: 29761: static constexpr char16_t 29761: 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); } 29761: 29761: static constexpr char16_t 29761: lowest() noexcept { return min(); } 29761: 29761: static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); 29761: static constexpr int max_digits10 = 0; 29761: static constexpr bool is_signed = ((char16_t)(-1) < 0); 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr char16_t 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr char16_t 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr char16_t 29761: infinity() noexcept { return char16_t(); } 29761: 29761: static constexpr char16_t 29761: quiet_NaN() noexcept { return char16_t(); } 29761: 29761: static constexpr char16_t 29761: signaling_NaN() noexcept { return char16_t(); } 29761: 29761: static constexpr char16_t 29761: denorm_min() noexcept { return char16_t(); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = !is_signed; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr char32_t 29761: 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); } 29761: 29761: static constexpr char32_t 29761: 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); } 29761: 29761: static constexpr char32_t 29761: lowest() noexcept { return min(); } 29761: 29761: static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); 29761: static constexpr int max_digits10 = 0; 29761: static constexpr bool is_signed = ((char32_t)(-1) < 0); 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr char32_t 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr char32_t 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr char32_t 29761: infinity() noexcept { return char32_t(); } 29761: 29761: static constexpr char32_t 29761: quiet_NaN() noexcept { return char32_t(); } 29761: 29761: static constexpr char32_t 29761: signaling_NaN() noexcept { return char32_t(); } 29761: 29761: static constexpr char32_t 29761: denorm_min() noexcept { return char32_t(); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = !is_signed; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style = round_toward_zero; 29761: }; 29761: 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr short 29761: min() noexcept { return -0x7fff - 1; } 29761: 29761: static constexpr short 29761: max() noexcept { return 0x7fff; } 29761: 29761: 29761: static constexpr short 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr short 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr short 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr short 29761: infinity() noexcept { return short(); } 29761: 29761: static constexpr short 29761: quiet_NaN() noexcept { return short(); } 29761: 29761: static constexpr short 29761: signaling_NaN() noexcept { return short(); } 29761: 29761: static constexpr short 29761: denorm_min() noexcept { return short(); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr unsigned short 29761: min() noexcept { return 0; } 29761: 29761: static constexpr unsigned short 29761: max() noexcept { return 0x7fff * 2U + 1; } 29761: 29761: 29761: static constexpr unsigned short 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr unsigned short 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr unsigned short 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr unsigned short 29761: infinity() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned short 29761: quiet_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned short 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned short 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = true; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr int 29761: min() noexcept { return -0x7fffffff - 1; } 29761: 29761: static constexpr int 29761: max() noexcept { return 0x7fffffff; } 29761: 29761: 29761: static constexpr int 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr int 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr int 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr int 29761: infinity() noexcept { return static_cast(0); } 29761: 29761: static constexpr int 29761: quiet_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr int 29761: signaling_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr int 29761: denorm_min() noexcept { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr unsigned int 29761: min() noexcept { return 0; } 29761: 29761: static constexpr unsigned int 29761: max() noexcept { return 0x7fffffff * 2U + 1; } 29761: 29761: 29761: static constexpr unsigned int 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr unsigned int 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr unsigned int 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr unsigned int 29761: infinity() noexcept { return static_cast(0); } 29761: 29761: static constexpr unsigned int 29761: quiet_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned int 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned int 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = true; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr long 29761: min() noexcept { return -0x7fffffffL - 1; } 29761: 29761: static constexpr long 29761: max() noexcept { return 0x7fffffffL; } 29761: 29761: 29761: static constexpr long 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); 29761: static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr long 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr long 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr long 29761: infinity() noexcept { return static_cast(0); } 29761: 29761: static constexpr long 29761: quiet_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr long 29761: signaling_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr long 29761: denorm_min() noexcept { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr unsigned long 29761: min() noexcept { return 0; } 29761: 29761: static constexpr unsigned long 29761: max() noexcept { return 0x7fffffffL * 2UL + 1; } 29761: 29761: 29761: static constexpr unsigned long 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr unsigned long 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr unsigned long 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr unsigned long 29761: infinity() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long 29761: quiet_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = true; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr long long 29761: min() noexcept { return -0x7fffffffffffffffLL - 1; } 29761: 29761: static constexpr long long 29761: max() noexcept { return 0x7fffffffffffffffLL; } 29761: 29761: 29761: static constexpr long long 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(long long) * 8 - ((long long)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr long long 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr long long 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr long long 29761: infinity() noexcept { return static_cast(0); } 29761: 29761: static constexpr long long 29761: quiet_NaN() noexcept { return static_cast(0); } 29761: 29761: static constexpr long long 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr long long 29761: denorm_min() noexcept { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr unsigned long long 29761: min() noexcept { return 0; } 29761: 29761: static constexpr unsigned long long 29761: max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } 29761: 29761: 29761: static constexpr unsigned long long 29761: lowest() noexcept { return min(); } 29761: 29761: 29761: static constexpr int digits 29761: = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); 29761: static constexpr int digits10 29761: = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); 29761: 29761: static constexpr int max_digits10 = 0; 29761: 29761: static constexpr bool is_signed = false; 29761: static constexpr bool is_integer = true; 29761: static constexpr bool is_exact = true; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr unsigned long long 29761: epsilon() noexcept { return 0; } 29761: 29761: static constexpr unsigned long long 29761: round_error() noexcept { return 0; } 29761: 29761: static constexpr int min_exponent = 0; 29761: static constexpr int min_exponent10 = 0; 29761: static constexpr int max_exponent = 0; 29761: static constexpr int max_exponent10 = 0; 29761: 29761: static constexpr bool has_infinity = false; 29761: static constexpr bool has_quiet_NaN = false; 29761: static constexpr bool has_signaling_NaN = false; 29761: static constexpr float_denorm_style has_denorm 29761: = denorm_absent; 29761: static constexpr bool has_denorm_loss = false; 29761: 29761: static constexpr unsigned long long 29761: infinity() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long long 29761: quiet_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long long 29761: signaling_NaN() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr unsigned long long 29761: denorm_min() noexcept 29761: { return static_cast(0); } 29761: 29761: static constexpr bool is_iec559 = false; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = true; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = false; 29761: static constexpr float_round_style round_style 29761: = round_toward_zero; 29761: }; 29761: # 1669 "/usr/include/c++/14/limits" 3 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr float 29761: min() noexcept { return 1.1754943508222875e-38F; } 29761: 29761: static constexpr float 29761: max() noexcept { return 3.4028234663852886e+38F; } 29761: 29761: 29761: static constexpr float 29761: lowest() noexcept { return -3.4028234663852886e+38F; } 29761: 29761: 29761: static constexpr int digits = 24; 29761: static constexpr int digits10 = 6; 29761: 29761: static constexpr int max_digits10 29761: = (2 + (24) * 643L / 2136); 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = false; 29761: static constexpr bool is_exact = false; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr float 29761: epsilon() noexcept { return 1.1920928955078125e-7F; } 29761: 29761: static constexpr float 29761: round_error() noexcept { return 0.5F; } 29761: 29761: static constexpr int min_exponent = (-125); 29761: static constexpr int min_exponent10 = (-37); 29761: static constexpr int max_exponent = 128; 29761: static constexpr int max_exponent10 = 38; 29761: 29761: static constexpr bool has_infinity = 1; 29761: static constexpr bool has_quiet_NaN = 1; 29761: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29761: static constexpr float_denorm_style has_denorm 29761: = bool(1) ? denorm_present : denorm_absent; 29761: static constexpr bool has_denorm_loss 29761: = false; 29761: 29761: static constexpr float 29761: infinity() noexcept { return __builtin_huge_valf(); } 29761: 29761: static constexpr float 29761: quiet_NaN() noexcept { return __builtin_nanf(""); } 29761: 29761: static constexpr float 29761: signaling_NaN() noexcept { return __builtin_nansf(""); } 29761: 29761: static constexpr float 29761: denorm_min() noexcept { return 1.4012984643248171e-45F; } 29761: 29761: static constexpr bool is_iec559 29761: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before 29761: = false; 29761: static constexpr float_round_style round_style 29761: = round_to_nearest; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr double 29761: min() noexcept { return double(2.2250738585072014e-308L); } 29761: 29761: static constexpr double 29761: max() noexcept { return double(1.7976931348623157e+308L); } 29761: 29761: 29761: static constexpr double 29761: lowest() noexcept { return -double(1.7976931348623157e+308L); } 29761: 29761: 29761: static constexpr int digits = 53; 29761: static constexpr int digits10 = 15; 29761: 29761: static constexpr int max_digits10 29761: = (2 + (53) * 643L / 2136); 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = false; 29761: static constexpr bool is_exact = false; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr double 29761: epsilon() noexcept { return double(2.2204460492503131e-16L); } 29761: 29761: static constexpr double 29761: round_error() noexcept { return 0.5; } 29761: 29761: static constexpr int min_exponent = (-1021); 29761: static constexpr int min_exponent10 = (-307); 29761: static constexpr int max_exponent = 1024; 29761: static constexpr int max_exponent10 = 308; 29761: 29761: static constexpr bool has_infinity = 1; 29761: static constexpr bool has_quiet_NaN = 1; 29761: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29761: static constexpr float_denorm_style has_denorm 29761: = bool(1) ? denorm_present : denorm_absent; 29761: static constexpr bool has_denorm_loss 29761: = false; 29761: 29761: static constexpr double 29761: infinity() noexcept { return __builtin_huge_val(); } 29761: 29761: static constexpr double 29761: quiet_NaN() noexcept { return __builtin_nan(""); } 29761: 29761: static constexpr double 29761: signaling_NaN() noexcept { return __builtin_nans(""); } 29761: 29761: static constexpr double 29761: denorm_min() noexcept { return double(4.9406564584124654e-324L); } 29761: 29761: static constexpr bool is_iec559 29761: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before 29761: = false; 29761: static constexpr float_round_style round_style 29761: = round_to_nearest; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct numeric_limits 29761: { 29761: static constexpr bool is_specialized = true; 29761: 29761: static constexpr long double 29761: min() noexcept { return 2.2250738585072014e-308L; } 29761: 29761: static constexpr long double 29761: max() noexcept { return 1.7976931348623157e+308L; } 29761: 29761: 29761: static constexpr long double 29761: lowest() noexcept { return -1.7976931348623157e+308L; } 29761: 29761: 29761: static constexpr int digits = 53; 29761: static constexpr int digits10 = 15; 29761: 29761: static constexpr int max_digits10 29761: = (2 + (53) * 643L / 2136); 29761: 29761: static constexpr bool is_signed = true; 29761: static constexpr bool is_integer = false; 29761: static constexpr bool is_exact = false; 29761: static constexpr int radix = 2; 29761: 29761: static constexpr long double 29761: epsilon() noexcept { return 2.2204460492503131e-16L; } 29761: 29761: static constexpr long double 29761: round_error() noexcept { return 0.5L; } 29761: 29761: static constexpr int min_exponent = (-1021); 29761: static constexpr int min_exponent10 = (-307); 29761: static constexpr int max_exponent = 1024; 29761: static constexpr int max_exponent10 = 308; 29761: 29761: static constexpr bool has_infinity = 1; 29761: static constexpr bool has_quiet_NaN = 1; 29761: static constexpr bool has_signaling_NaN = has_quiet_NaN; 29761: static constexpr float_denorm_style has_denorm 29761: = bool(1) ? denorm_present : denorm_absent; 29761: static constexpr bool has_denorm_loss 29761: = false; 29761: 29761: static constexpr long double 29761: infinity() noexcept { return __builtin_huge_vall(); } 29761: 29761: static constexpr long double 29761: quiet_NaN() noexcept { return __builtin_nanl(""); } 29761: 29761: static constexpr long double 29761: signaling_NaN() noexcept { return __builtin_nansl(""); } 29761: 29761: static constexpr long double 29761: denorm_min() noexcept { return 4.9406564584124654e-324L; } 29761: 29761: static constexpr bool is_iec559 29761: = has_infinity && has_quiet_NaN && has_denorm == denorm_present; 29761: static constexpr bool is_bounded = true; 29761: static constexpr bool is_modulo = false; 29761: 29761: static constexpr bool traps = false; 29761: static constexpr bool tinyness_before = 29761: false; 29761: static constexpr float_round_style round_style = 29761: round_to_nearest; 29761: }; 29761: # 1989 "/usr/include/c++/14/limits" 3 29761: __extension__ template<> struct numeric_limits<_Float32> { static constexpr bool is_specialized = true; static constexpr _Float32 min() noexcept { return 1.1754943508222875e-38F32; } static constexpr _Float32 max() noexcept { return 3.4028234663852886e+38F32; } static constexpr _Float32 lowest() noexcept { return -3.4028234663852886e+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.1920928955078125e-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.4012984643248171e-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; }; 29761: 29761: 29761: __extension__ template<> struct numeric_limits<_Float64> { static constexpr bool is_specialized = true; static constexpr _Float64 min() noexcept { return 2.2250738585072014e-308F64; } static constexpr _Float64 max() noexcept { return 1.7976931348623157e+308F64; } static constexpr _Float64 lowest() noexcept { return -1.7976931348623157e+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.2204460492503131e-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.9406564584124654e-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; }; 29761: # 2222 "/usr/include/c++/14/limits" 3 29761: 29761: } 29761: # 40 "/usr/include/c++/14/bits/chrono.h" 2 3 29761: # 1 "/usr/include/c++/14/ctime" 1 3 29761: # 39 "/usr/include/c++/14/ctime" 3 29761: 29761: # 40 "/usr/include/c++/14/ctime" 3 29761: # 58 "/usr/include/c++/14/ctime" 3 29761: namespace std 29761: { 29761: using ::clock_t; 29761: using ::time_t; 29761: using ::tm; 29761: 29761: using ::clock; 29761: using ::difftime; 29761: using ::mktime; 29761: using ::time; 29761: using ::asctime; 29761: using ::ctime; 29761: using ::gmtime; 29761: using ::localtime; 29761: using ::strftime; 29761: } 29761: 29761: 29761: 29761: namespace std 29761: { 29761: using ::timespec; 29761: using ::timespec_get; 29761: } 29761: # 41 "/usr/include/c++/14/bits/chrono.h" 2 3 29761: # 1 "/usr/include/c++/14/bits/parse_numbers.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/parse_numbers.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/parse_numbers.h" 3 29761: # 42 "/usr/include/c++/14/bits/parse_numbers.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: namespace __parse_int 29761: { 29761: template 29761: struct _Digit; 29761: 29761: template 29761: struct _Digit<_Base, '0'> : integral_constant 29761: { 29761: using __valid = true_type; 29761: }; 29761: 29761: template 29761: struct _Digit<_Base, '1'> : integral_constant 29761: { 29761: using __valid = true_type; 29761: }; 29761: 29761: template 29761: struct _Digit_impl : integral_constant 29761: { 29761: static_assert(_Base > _Val, "invalid digit"); 29761: using __valid = true_type; 29761: }; 29761: 29761: template 29761: struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> 29761: { }; 29761: 29761: template 29761: struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> 29761: { }; 29761: 29761: 29761: template 29761: struct _Digit<_Base, '\''> : integral_constant 29761: { 29761: using __valid = false_type; 29761: }; 29761: 29761: 29761: 29761: template 29761: using __ull_constant = integral_constant; 29761: 29761: template 29761: struct _Power_help 29761: { 29761: using __next = typename _Power_help<_Base, _Digs...>::type; 29761: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 29761: using type 29761: = __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; 29761: }; 29761: 29761: template 29761: struct _Power_help<_Base, _Dig> 29761: { 29761: using __valid_digit = typename _Digit<_Base, _Dig>::__valid; 29761: using type = __ull_constant<__valid_digit::value>; 29761: }; 29761: 29761: template 29761: struct _Power : _Power_help<_Base, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Power<_Base> : __ull_constant<0> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct _Number_help 29761: { 29761: using __digit = _Digit<_Base, _Dig>; 29761: using __valid_digit = typename __digit::__valid; 29761: using __next = _Number_help<_Base, 29761: __valid_digit::value ? _Pow / _Base : _Pow, 29761: _Digs...>; 29761: using type = __ull_constant<_Pow * __digit::value + __next::type::value>; 29761: static_assert((type::value / _Pow) == __digit::value, 29761: "integer literal does not fit in unsigned long long"); 29761: }; 29761: 29761: 29761: template 29761: struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> 29761: : _Number_help<_Base, _Pow, _Dig, _Digs...> 29761: { }; 29761: 29761: 29761: template 29761: struct _Number_help<_Base, 1ULL, _Dig> 29761: { 29761: using type = __ull_constant<_Digit<_Base, _Dig>::value>; 29761: }; 29761: 29761: template 29761: struct _Number 29761: : _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Number<_Base> 29761: : __ull_constant<0> 29761: { }; 29761: 29761: 29761: 29761: template 29761: struct _Parse_int; 29761: 29761: template 29761: struct _Parse_int<'0', 'b', _Digs...> 29761: : _Number<2U, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Parse_int<'0', 'B', _Digs...> 29761: : _Number<2U, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Parse_int<'0', 'x', _Digs...> 29761: : _Number<16U, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Parse_int<'0', 'X', _Digs...> 29761: : _Number<16U, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Parse_int<'0', _Digs...> 29761: : _Number<8U, _Digs...>::type 29761: { }; 29761: 29761: template 29761: struct _Parse_int 29761: : _Number<10U, _Digs...>::type 29761: { }; 29761: 29761: } 29761: 29761: 29761: namespace __select_int 29761: { 29761: template 29761: struct _Select_int_base; 29761: 29761: template 29761: struct _Select_int_base<_Val, _IntType, _Ints...> 29761: : __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), 29761: integral_constant<_IntType, (_IntType)_Val>, 29761: _Select_int_base<_Val, _Ints...>> 29761: { }; 29761: 29761: template 29761: struct _Select_int_base<_Val> 29761: { }; 29761: 29761: template 29761: using _Select_int = typename _Select_int_base< 29761: __parse_int::_Parse_int<_Digs...>::value, 29761: unsigned char, 29761: unsigned short, 29761: unsigned int, 29761: unsigned long, 29761: unsigned long long 29761: >::type; 29761: 29761: } 29761: 29761: 29761: } 29761: # 42 "/usr/include/c++/14/bits/chrono.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 48 "/usr/include/c++/14/bits/chrono.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: namespace filesystem { struct __file_clock; }; 29761: 29761: 29761: namespace chrono 29761: { 29761: 29761: 29761: 29761: 29761: template> 29761: class duration; 29761: 29761: 29761: template 29761: class time_point; 29761: 29761: } 29761: # 79 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: struct __duration_common_type 29761: { }; 29761: 29761: template 29761: struct __duration_common_type<_CT, _Period1, _Period2, 29761: __void_t> 29761: { 29761: private: 29761: using __gcd_num = __static_gcd<_Period1::num, _Period2::num>; 29761: using __gcd_den = __static_gcd<_Period1::den, _Period2::den>; 29761: using __cr = typename _CT::type; 29761: using __r = ratio<__gcd_num::value, 29761: (_Period1::den / __gcd_den::value) * _Period2::den>; 29761: 29761: public: 29761: using type = chrono::duration<__cr, typename __r::type>; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct common_type, 29761: chrono::duration<_Rep2, _Period2>> 29761: : __duration_common_type, 29761: typename _Period1::type, 29761: typename _Period2::type> 29761: { }; 29761: 29761: 29761: template 29761: struct common_type, 29761: chrono::duration<_Rep, _Period>> 29761: { 29761: using type = chrono::duration::type, 29761: typename _Period::type>; 29761: }; 29761: 29761: 29761: template 29761: struct common_type> 29761: { 29761: using type = chrono::duration::type, 29761: typename _Period::type>; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __timepoint_common_type 29761: { }; 29761: 29761: template 29761: struct __timepoint_common_type<_CT, _Clock, __void_t> 29761: { 29761: using type = chrono::time_point<_Clock, typename _CT::type>; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct common_type, 29761: chrono::time_point<_Clock, _Duration2>> 29761: : __timepoint_common_type, _Clock> 29761: { }; 29761: 29761: 29761: template 29761: struct common_type, 29761: chrono::time_point<_Clock, _Duration>> 29761: { using type = chrono::time_point<_Clock, _Duration>; }; 29761: 29761: 29761: template 29761: struct common_type> 29761: { using type = chrono::time_point<_Clock, _Duration>; }; 29761: 29761: 29761: 29761: 29761: namespace chrono 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct __duration_cast_impl 29761: { 29761: template 29761: static constexpr _ToDur 29761: __cast(const duration<_Rep, _Period>& __d) 29761: { 29761: typedef typename _ToDur::rep __to_rep; 29761: return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) 29761: * static_cast<_CR>(_CF::num) 29761: / static_cast<_CR>(_CF::den))); 29761: } 29761: }; 29761: 29761: template 29761: struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> 29761: { 29761: template 29761: static constexpr _ToDur 29761: __cast(const duration<_Rep, _Period>& __d) 29761: { 29761: typedef typename _ToDur::rep __to_rep; 29761: return _ToDur(static_cast<__to_rep>(__d.count())); 29761: } 29761: }; 29761: 29761: template 29761: struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> 29761: { 29761: template 29761: static constexpr _ToDur 29761: __cast(const duration<_Rep, _Period>& __d) 29761: { 29761: typedef typename _ToDur::rep __to_rep; 29761: return _ToDur(static_cast<__to_rep>( 29761: static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); 29761: } 29761: }; 29761: 29761: template 29761: struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> 29761: { 29761: template 29761: static constexpr _ToDur 29761: __cast(const duration<_Rep, _Period>& __d) 29761: { 29761: typedef typename _ToDur::rep __to_rep; 29761: return _ToDur(static_cast<__to_rep>( 29761: static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); 29761: } 29761: }; 29761: 29761: template 29761: struct __is_duration 29761: : std::false_type 29761: { }; 29761: 29761: template 29761: struct __is_duration> 29761: : std::true_type 29761: { }; 29761: 29761: template 29761: using __enable_if_is_duration 29761: = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; 29761: 29761: template 29761: using __disable_if_is_duration 29761: = typename enable_if::value, _Tp>::type; 29761: 29761: 29761: template 29761: inline constexpr bool __is_duration_v = false; 29761: template 29761: inline constexpr bool __is_duration_v> = true; 29761: template 29761: inline constexpr bool __is_time_point_v = false; 29761: template 29761: inline constexpr bool __is_time_point_v> = true; 29761: # 272 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[__nodiscard__]] 29761: constexpr __enable_if_is_duration<_ToDur> 29761: duration_cast(const duration<_Rep, _Period>& __d) 29761: { 29761: 29761: if constexpr (is_same_v<_ToDur, duration<_Rep, _Period>>) 29761: return __d; 29761: else 29761: { 29761: 29761: using __to_period = typename _ToDur::period; 29761: using __to_rep = typename _ToDur::rep; 29761: using __cf = ratio_divide<_Period, __to_period>; 29761: using __cr = typename common_type<__to_rep, _Rep, intmax_t>::type; 29761: using __dc = __duration_cast_impl<_ToDur, __cf, __cr, 29761: __cf::num == 1, __cf::den == 1>; 29761: return __dc::__cast(__d); 29761: 29761: } 29761: 29761: } 29761: # 306 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: struct treat_as_floating_point 29761: : is_floating_point<_Rep> 29761: { }; 29761: 29761: 29761: template 29761: inline constexpr bool treat_as_floating_point_v = 29761: treat_as_floating_point<_Rep>::value; 29761: 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = false; 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = false; 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = false; 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = true; 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = true; 29761: template<> 29761: inline constexpr bool treat_as_floating_point_v = true; 29761: # 386 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 29761: floor(const duration<_Rep, _Period>& __d) 29761: { 29761: auto __to = chrono::duration_cast<_ToDur>(__d); 29761: if (__to > __d) 29761: return __to - _ToDur{1}; 29761: return __to; 29761: } 29761: # 406 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> 29761: ceil(const duration<_Rep, _Period>& __d) 29761: { 29761: auto __to = chrono::duration_cast<_ToDur>(__d); 29761: if (__to < __d) 29761: return __to + _ToDur{1}; 29761: return __to; 29761: } 29761: # 427 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr 29761: enable_if_t< 29761: __and_<__is_duration<_ToDur>, 29761: __not_>>::value, 29761: _ToDur> 29761: round(const duration<_Rep, _Period>& __d) 29761: { 29761: _ToDur __t0 = chrono::floor<_ToDur>(__d); 29761: _ToDur __t1 = __t0 + _ToDur{1}; 29761: auto __diff0 = __d - __t0; 29761: auto __diff1 = __t1 - __d; 29761: if (__diff0 == __diff1) 29761: { 29761: if (__t0.count() & 1) 29761: return __t1; 29761: return __t0; 29761: } 29761: else if (__diff0 < __diff1) 29761: return __t0; 29761: return __t1; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: [[nodiscard]] constexpr 29761: enable_if_t::is_signed, duration<_Rep, _Period>> 29761: abs(duration<_Rep, _Period> __d) 29761: { 29761: if (__d >= __d.zero()) 29761: return __d; 29761: return -__d; 29761: } 29761: 29761: 29761: namespace __detail { using chrono::ceil; } 29761: # 494 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: struct duration_values 29761: { 29761: static constexpr _Rep 29761: zero() noexcept 29761: { return _Rep(0); } 29761: 29761: static constexpr _Rep 29761: max() noexcept 29761: { return numeric_limits<_Rep>::max(); } 29761: 29761: static constexpr _Rep 29761: min() noexcept 29761: { return numeric_limits<_Rep>::lowest(); } 29761: }; 29761: 29761: template 29761: class duration 29761: { 29761: static_assert(!__is_duration<_Rep>::value, 29761: "rep cannot be a std::chrono::duration"); 29761: static_assert(__is_ratio<_Period>::value, 29761: "period must be a specialization of std::ratio"); 29761: static_assert(_Period::num > 0, "period must be positive"); 29761: 29761: template 29761: using __is_float = treat_as_floating_point<_Rep2>; 29761: 29761: static constexpr intmax_t 29761: _S_gcd(intmax_t __m, intmax_t __n) noexcept 29761: { 29761: 29761: 29761: 29761: do 29761: { 29761: intmax_t __rem = __m % __n; 29761: __m = __n; 29761: __n = __rem; 29761: } 29761: while (__n != 0); 29761: return __m; 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), 29761: (_R1::den / __gcd2) * (_R2::num / __gcd1)>; 29761: 29761: 29761: template 29761: using __is_harmonic 29761: = __bool_constant<__divide<_Period2, _Period>::den == 1>; 29761: 29761: public: 29761: 29761: using rep = _Rep; 29761: using period = typename _Period::type; 29761: 29761: 29761: constexpr duration() = default; 29761: 29761: duration(const duration&) = default; 29761: 29761: 29761: 29761: template, 29761: __or_<__is_float, __not_<__is_float<_Rep2>>>>> 29761: constexpr explicit duration(const _Rep2& __rep) 29761: : __r(static_cast(__rep)) { } 29761: 29761: template, 29761: __or_<__is_float, 29761: __and_<__is_harmonic<_Period2>, 29761: __not_<__is_float<_Rep2>>>>>> 29761: constexpr duration(const duration<_Rep2, _Period2>& __d) 29761: : __r(duration_cast(__d).count()) { } 29761: 29761: ~duration() = default; 29761: duration& operator=(const duration&) = default; 29761: 29761: 29761: constexpr rep 29761: count() const 29761: { return __r; } 29761: 29761: 29761: 29761: constexpr duration::type, period> 29761: operator+() const 29761: { return duration::type, period>(__r); } 29761: 29761: constexpr duration::type, period> 29761: operator-() const 29761: { return duration::type, period>(-__r); } 29761: 29761: constexpr duration& 29761: operator++() 29761: { 29761: ++__r; 29761: return *this; 29761: } 29761: 29761: constexpr duration 29761: operator++(int) 29761: { return duration(__r++); } 29761: 29761: constexpr duration& 29761: operator--() 29761: { 29761: --__r; 29761: return *this; 29761: } 29761: 29761: constexpr duration 29761: operator--(int) 29761: { return duration(__r--); } 29761: 29761: constexpr duration& 29761: operator+=(const duration& __d) 29761: { 29761: __r += __d.count(); 29761: return *this; 29761: } 29761: 29761: constexpr duration& 29761: operator-=(const duration& __d) 29761: { 29761: __r -= __d.count(); 29761: return *this; 29761: } 29761: 29761: constexpr duration& 29761: operator*=(const rep& __rhs) 29761: { 29761: __r *= __rhs; 29761: return *this; 29761: } 29761: 29761: constexpr duration& 29761: operator/=(const rep& __rhs) 29761: { 29761: __r /= __rhs; 29761: return *this; 29761: } 29761: 29761: 29761: template 29761: constexpr 29761: __enable_if_t::value, duration&> 29761: operator%=(const rep& __rhs) 29761: { 29761: __r %= __rhs; 29761: return *this; 29761: } 29761: 29761: template 29761: constexpr 29761: __enable_if_t::value, duration&> 29761: operator%=(const duration& __d) 29761: { 29761: __r %= __d.count(); 29761: return *this; 29761: } 29761: 29761: 29761: static constexpr duration 29761: zero() noexcept 29761: { return duration(duration_values::zero()); } 29761: 29761: static constexpr duration 29761: min() noexcept 29761: { return duration(duration_values::min()); } 29761: 29761: static constexpr duration 29761: max() noexcept 29761: { return duration(duration_values::max()); } 29761: 29761: private: 29761: rep __r; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr typename common_type, 29761: duration<_Rep2, _Period2>>::type 29761: operator+(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __cd; 29761: return __cd(__cd(__lhs).count() + __cd(__rhs).count()); 29761: } 29761: 29761: 29761: template 29761: constexpr typename common_type, 29761: duration<_Rep2, _Period2>>::type 29761: operator-(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __cd; 29761: return __cd(__cd(__lhs).count() - __cd(__rhs).count()); 29761: } 29761: # 727 "/usr/include/c++/14/bits/chrono.h" 3 29761: template::type> 29761: using __common_rep_t = typename 29761: enable_if::value, _CRep>::type; 29761: # 739 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> 29761: operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29761: { 29761: typedef duration::type, _Period> 29761: __cd; 29761: return __cd(__cd(__d).count() * __s); 29761: } 29761: 29761: template 29761: constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> 29761: operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) 29761: { return __d * __s; } 29761: 29761: template 29761: constexpr 29761: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 29761: operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29761: { 29761: typedef duration::type, _Period> 29761: __cd; 29761: return __cd(__cd(__d).count() / __s); 29761: } 29761: 29761: template 29761: constexpr typename common_type<_Rep1, _Rep2>::type 29761: operator/(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __cd; 29761: return __cd(__lhs).count() / __cd(__rhs).count(); 29761: } 29761: 29761: 29761: template 29761: constexpr 29761: duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> 29761: operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) 29761: { 29761: typedef duration::type, _Period> 29761: __cd; 29761: return __cd(__cd(__d).count() % __s); 29761: } 29761: 29761: template 29761: constexpr typename common_type, 29761: duration<_Rep2, _Period2>>::type 29761: operator%(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __cd; 29761: return __cd(__cd(__lhs).count() % __cd(__rhs).count()); 29761: } 29761: # 807 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: constexpr bool 29761: operator==(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __ct; 29761: return __ct(__lhs).count() == __ct(__rhs).count(); 29761: } 29761: 29761: template 29761: constexpr bool 29761: operator<(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<__dur1,__dur2>::type __ct; 29761: return __ct(__lhs).count() < __ct(__rhs).count(); 29761: } 29761: # 844 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: constexpr bool 29761: operator!=(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: template 29761: constexpr bool 29761: operator<=(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { return !(__rhs < __lhs); } 29761: 29761: template 29761: constexpr bool 29761: operator>(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { return __rhs < __lhs; } 29761: 29761: template 29761: constexpr bool 29761: operator>=(const duration<_Rep1, _Period1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { return !(__lhs < __rhs); } 29761: # 888 "/usr/include/c++/14/bits/chrono.h" 3 29761: using nanoseconds = duration; 29761: 29761: 29761: using microseconds = duration; 29761: 29761: 29761: using milliseconds = duration; 29761: 29761: 29761: using seconds = duration; 29761: 29761: 29761: using minutes = duration>; 29761: 29761: 29761: using hours = duration>; 29761: # 921 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: class time_point 29761: { 29761: static_assert(__is_duration<_Dur>::value, 29761: "duration must be a specialization of std::chrono::duration"); 29761: 29761: public: 29761: typedef _Clock clock; 29761: typedef _Dur duration; 29761: typedef typename duration::rep rep; 29761: typedef typename duration::period period; 29761: 29761: constexpr time_point() : __d(duration::zero()) 29761: { } 29761: 29761: constexpr explicit time_point(const duration& __dur) 29761: : __d(__dur) 29761: { } 29761: 29761: 29761: template>> 29761: constexpr time_point(const time_point& __t) 29761: : __d(__t.time_since_epoch()) 29761: { } 29761: 29761: 29761: constexpr duration 29761: time_since_epoch() const 29761: { return __d; } 29761: # 977 "/usr/include/c++/14/bits/chrono.h" 3 29761: constexpr time_point& 29761: operator+=(const duration& __dur) 29761: { 29761: __d += __dur; 29761: return *this; 29761: } 29761: 29761: constexpr time_point& 29761: operator-=(const duration& __dur) 29761: { 29761: __d -= __dur; 29761: return *this; 29761: } 29761: 29761: 29761: static constexpr time_point 29761: min() noexcept 29761: { return time_point(duration::min()); } 29761: 29761: static constexpr time_point 29761: max() noexcept 29761: { return time_point(duration::max()); } 29761: 29761: private: 29761: duration __d; 29761: }; 29761: # 1016 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[__nodiscard__]] constexpr 29761: __enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> 29761: time_point_cast(const time_point<_Clock, _Dur>& __t) 29761: { 29761: typedef time_point<_Clock, _ToDur> __time_point; 29761: return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); 29761: } 29761: # 1038 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr 29761: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 29761: floor(const time_point<_Clock, _Dur>& __tp) 29761: { 29761: return time_point<_Clock, _ToDur>{ 29761: chrono::floor<_ToDur>(__tp.time_since_epoch())}; 29761: } 29761: # 1059 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr 29761: enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> 29761: ceil(const time_point<_Clock, _Dur>& __tp) 29761: { 29761: return time_point<_Clock, _ToDur>{ 29761: chrono::ceil<_ToDur>(__tp.time_since_epoch())}; 29761: } 29761: # 1081 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: [[nodiscard]] constexpr 29761: enable_if_t<__is_duration_v<_ToDur> 29761: && !treat_as_floating_point_v, 29761: time_point<_Clock, _ToDur>> 29761: round(const time_point<_Clock, _Dur>& __tp) 29761: { 29761: return time_point<_Clock, _ToDur>{ 29761: chrono::round<_ToDur>(__tp.time_since_epoch())}; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr time_point<_Clock, 29761: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 29761: operator+(const time_point<_Clock, _Dur1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<_Dur1,__dur2>::type __ct; 29761: typedef time_point<_Clock, __ct> __time_point; 29761: return __time_point(__lhs.time_since_epoch() + __rhs); 29761: } 29761: 29761: 29761: template 29761: constexpr time_point<_Clock, 29761: typename common_type, _Dur2>::type> 29761: operator+(const duration<_Rep1, _Period1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { 29761: typedef duration<_Rep1, _Period1> __dur1; 29761: typedef typename common_type<__dur1,_Dur2>::type __ct; 29761: typedef time_point<_Clock, __ct> __time_point; 29761: return __time_point(__rhs.time_since_epoch() + __lhs); 29761: } 29761: 29761: 29761: template 29761: constexpr time_point<_Clock, 29761: typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> 29761: operator-(const time_point<_Clock, _Dur1>& __lhs, 29761: const duration<_Rep2, _Period2>& __rhs) 29761: { 29761: typedef duration<_Rep2, _Period2> __dur2; 29761: typedef typename common_type<_Dur1,__dur2>::type __ct; 29761: typedef time_point<_Clock, __ct> __time_point; 29761: return __time_point(__lhs.time_since_epoch() -__rhs); 29761: } 29761: 29761: 29761: template 29761: constexpr typename common_type<_Dur1, _Dur2>::type 29761: operator-(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: constexpr bool 29761: operator==(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } 29761: # 1165 "/usr/include/c++/14/bits/chrono.h" 3 29761: template 29761: constexpr bool 29761: operator!=(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: template 29761: constexpr bool 29761: operator<(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } 29761: 29761: template 29761: constexpr bool 29761: operator<=(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return !(__rhs < __lhs); } 29761: 29761: template 29761: constexpr bool 29761: operator>(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return __rhs < __lhs; } 29761: 29761: template 29761: constexpr bool 29761: operator>=(const time_point<_Clock, _Dur1>& __lhs, 29761: const time_point<_Clock, _Dur2>& __rhs) 29761: { return !(__lhs < __rhs); } 29761: # 1217 "/usr/include/c++/14/bits/chrono.h" 3 29761: inline namespace _V2 { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct system_clock 29761: { 29761: typedef chrono::nanoseconds duration; 29761: typedef duration::rep rep; 29761: typedef duration::period period; 29761: typedef chrono::time_point time_point; 29761: 29761: static_assert(system_clock::duration::min() 29761: < system_clock::duration::zero(), 29761: "a clock's minimum duration cannot be less than its epoch"); 29761: 29761: static constexpr bool is_steady = false; 29761: 29761: static time_point 29761: now() noexcept; 29761: 29761: 29761: 29761: static std::time_t 29761: to_time_t(const time_point& __t) noexcept 29761: { 29761: return std::time_t(duration_cast 29761: (__t.time_since_epoch()).count()); 29761: } 29761: 29761: 29761: static time_point 29761: from_time_t(std::time_t __t) noexcept 29761: { 29761: typedef chrono::time_point __from; 29761: return time_point_cast 29761: (__from(chrono::seconds(__t))); 29761: } 29761: }; 29761: # 1267 "/usr/include/c++/14/bits/chrono.h" 3 29761: struct steady_clock 29761: { 29761: typedef chrono::nanoseconds duration; 29761: typedef duration::rep rep; 29761: typedef duration::period period; 29761: typedef chrono::time_point time_point; 29761: 29761: static constexpr bool is_steady = true; 29761: 29761: static time_point 29761: now() noexcept; 29761: }; 29761: # 1289 "/usr/include/c++/14/bits/chrono.h" 3 29761: using high_resolution_clock = system_clock; 29761: 29761: } 29761: # 1315 "/usr/include/c++/14/bits/chrono.h" 3 29761: } 29761: 29761: 29761: inline namespace literals 29761: { 29761: # 1344 "/usr/include/c++/14/bits/chrono.h" 3 29761: inline namespace chrono_literals 29761: { 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wliteral-suffix" 29761: 29761: template 29761: constexpr _Dur __check_overflow() 29761: { 29761: using _Val = __parse_int::_Parse_int<_Digits...>; 29761: constexpr typename _Dur::rep __repval = _Val::value; 29761: static_assert(__repval >= 0 && __repval == _Val::value, 29761: "literal value cannot be represented by duration type"); 29761: return _Dur(__repval); 29761: } 29761: 29761: 29761: 29761: constexpr chrono::duration> 29761: operator""h(long double __hours) 29761: { return chrono::duration>{__hours}; } 29761: 29761: 29761: template 29761: constexpr chrono::hours 29761: operator""h() 29761: { return __check_overflow(); } 29761: 29761: 29761: constexpr chrono::duration> 29761: operator""min(long double __mins) 29761: { return chrono::duration>{__mins}; } 29761: 29761: 29761: template 29761: constexpr chrono::minutes 29761: operator""min() 29761: { return __check_overflow(); } 29761: 29761: 29761: constexpr chrono::duration 29761: operator""s(long double __secs) 29761: { return chrono::duration{__secs}; } 29761: 29761: 29761: template 29761: constexpr chrono::seconds 29761: operator""s() 29761: { return __check_overflow(); } 29761: 29761: 29761: constexpr chrono::duration 29761: operator""ms(long double __msecs) 29761: { return chrono::duration{__msecs}; } 29761: 29761: 29761: template 29761: constexpr chrono::milliseconds 29761: operator""ms() 29761: { return __check_overflow(); } 29761: 29761: 29761: constexpr chrono::duration 29761: operator""us(long double __usecs) 29761: { return chrono::duration{__usecs}; } 29761: 29761: 29761: template 29761: constexpr chrono::microseconds 29761: operator""us() 29761: { return __check_overflow(); } 29761: 29761: 29761: constexpr chrono::duration 29761: operator""ns(long double __nsecs) 29761: { return chrono::duration{__nsecs}; } 29761: 29761: 29761: template 29761: constexpr chrono::nanoseconds 29761: operator""ns() 29761: { return __check_overflow(); } 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: } 29761: } 29761: 29761: namespace chrono 29761: { 29761: using namespace literals::chrono_literals; 29761: } 29761: 29761: 29761: 29761: namespace filesystem 29761: { 29761: struct __file_clock 29761: { 29761: using duration = chrono::nanoseconds; 29761: using rep = duration::rep; 29761: using period = duration::period; 29761: using time_point = chrono::time_point<__file_clock>; 29761: static constexpr bool is_steady = false; 29761: 29761: static time_point 29761: now() noexcept 29761: { return _S_from_sys(chrono::system_clock::now()); } 29761: # 1470 "/usr/include/c++/14/bits/chrono.h" 3 29761: private: 29761: using __sys_clock = chrono::system_clock; 29761: 29761: 29761: 29761: 29761: static constexpr chrono::seconds _S_epoch_diff{6437664000}; 29761: 29761: protected: 29761: 29761: template 29761: static 29761: chrono::time_point<__file_clock, common_type_t<_Dur, chrono::seconds>> 29761: _S_from_sys(const chrono::time_point<__sys_clock, _Dur>& __t) noexcept 29761: { 29761: using _CDur = common_type_t<_Dur, chrono::seconds>; 29761: using __file_time = chrono::time_point<__file_clock, _CDur>; 29761: return __file_time{__t.time_since_epoch()} - _S_epoch_diff; 29761: } 29761: 29761: 29761: template 29761: static 29761: chrono::time_point<__sys_clock, common_type_t<_Dur, chrono::seconds>> 29761: _S_to_sys(const chrono::time_point<__file_clock, _Dur>& __t) noexcept 29761: { 29761: using _CDur = common_type_t<_Dur, chrono::seconds>; 29761: using __sys_time = chrono::time_point<__sys_clock, _CDur>; 29761: return __sys_time{__t.time_since_epoch()} + _S_epoch_diff; 29761: } 29761: }; 29761: } 29761: 29761: 29761: 29761: } 29761: # 37 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/cerrno" 1 3 29761: # 39 "/usr/include/c++/14/cerrno" 3 29761: 29761: # 40 "/usr/include/c++/14/cerrno" 3 29761: # 40 "/usr/include/c++/14/bits/this_thread_sleep.h" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 56 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29761: namespace this_thread 29761: { 29761: # 66 "/usr/include/c++/14/bits/this_thread_sleep.h" 3 29761: template 29761: inline void 29761: sleep_for(const chrono::duration<_Rep, _Period>& __rtime) 29761: { 29761: if (__rtime <= __rtime.zero()) 29761: return; 29761: auto __s = chrono::duration_cast(__rtime); 29761: auto __ns = chrono::duration_cast(__rtime - __s); 29761: 29761: struct ::timespec __ts = 29761: { 29761: static_cast(__s.count()), 29761: static_cast(__ns.count()) 29761: }; 29761: while (::nanosleep(&__ts, &__ts) == -1 && (*__errno_location ()) == 4) 29761: { } 29761: 29761: 29761: 29761: } 29761: 29761: 29761: template 29761: inline void 29761: sleep_until(const chrono::time_point<_Clock, _Duration>& __atime) 29761: { 29761: 29761: 29761: 29761: auto __now = _Clock::now(); 29761: if (_Clock::is_steady) 29761: { 29761: if (__now < __atime) 29761: sleep_for(__atime - __now); 29761: return; 29761: } 29761: while (__now < __atime) 29761: { 29761: sleep_for(__atime - __now); 29761: __now = _Clock::now(); 29761: } 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 47 "/usr/include/c++/14/thread" 2 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 51 "/usr/include/c++/14/thread" 2 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 78 "/usr/include/c++/14/thread" 3 29761: inline bool 29761: operator!=(thread::id __x, thread::id __y) noexcept 29761: { return !(__x == __y); } 29761: 29761: inline bool 29761: operator<(thread::id __x, thread::id __y) noexcept 29761: { 29761: 29761: 29761: return __x._M_thread < __y._M_thread; 29761: } 29761: 29761: inline bool 29761: operator<=(thread::id __x, thread::id __y) noexcept 29761: { return !(__y < __x); } 29761: 29761: inline bool 29761: operator>(thread::id __x, thread::id __y) noexcept 29761: { return __y < __x; } 29761: 29761: inline bool 29761: operator>=(thread::id __x, thread::id __y) noexcept 29761: { return !(__x < __y); } 29761: 29761: 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id) 29761: { 29761: 29761: using __output_type 29761: = __conditional_t::value, 29761: const void*, 29761: thread::native_handle_type>; 29761: 29761: if (__id == thread::id()) 29761: return __out << "thread::id of a non-executing thread"; 29761: else 29761: return __out << static_cast<__output_type>(__id._M_thread); 29761: } 29761: # 372 "/usr/include/c++/14/thread" 3 29761: 29761: } 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 29761: 29761: 29761: 29761: 29761: 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/port_defs.h" 29761: namespace rocksdb { 29761: 29761: namespace port { 29761: class CondVar; 29761: } 29761: 29761: enum class CpuPriority { 29761: kIdle = 0, 29761: kLow = 1, 29761: kNormal = 2, 29761: kHigh = 3, 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 2 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: namespace rocksdb { 29761: 29761: extern const bool kDefaultToAdaptiveMutex; 29761: 29761: namespace port { 29761: constexpr bool kLittleEndian = ( 29761: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 3 4 29761: 1234 29761: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: == 29761: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 3 4 29761: 1234 29761: # 91 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: ); 29761: 29761: 29761: class CondVar; 29761: 29761: class Mutex { 29761: public: 29761: static const char* kName() { return "pthread_mutex_t"; } 29761: 29761: explicit Mutex(bool adaptive = kDefaultToAdaptiveMutex); 29761: 29761: Mutex(const Mutex&) = delete; 29761: void operator=(const Mutex&) = delete; 29761: 29761: ~Mutex(); 29761: 29761: void Lock(); 29761: void Unlock(); 29761: 29761: bool TryLock(); 29761: 29761: 29761: 29761: void AssertHeld() const; 29761: 29761: 29761: inline void lock() { Lock(); } 29761: inline void unlock() { Unlock(); } 29761: inline bool try_lock() { return TryLock(); } 29761: 29761: private: 29761: friend class CondVar; 29761: pthread_mutex_t mu_; 29761: 29761: bool locked_ = false; 29761: 29761: }; 29761: 29761: class RWMutex { 29761: public: 29761: RWMutex(); 29761: 29761: RWMutex(const RWMutex&) = delete; 29761: void operator=(const RWMutex&) = delete; 29761: 29761: ~RWMutex(); 29761: 29761: void ReadLock(); 29761: void WriteLock(); 29761: void ReadUnlock(); 29761: void WriteUnlock(); 29761: void AssertHeld() const {} 29761: 29761: private: 29761: pthread_rwlock_t mu_; 29761: }; 29761: 29761: class CondVar { 29761: public: 29761: explicit CondVar(Mutex* mu); 29761: ~CondVar(); 29761: 29761: Mutex* GetMutex() const { return mu_; } 29761: 29761: void Wait(); 29761: 29761: bool TimedWait(uint64_t abs_time_us); 29761: void Signal(); 29761: void SignalAll(); 29761: 29761: private: 29761: pthread_cond_t cv_; 29761: Mutex* mu_; 29761: }; 29761: 29761: using Thread = std::thread; 29761: 29761: static inline void AsmVolatilePause() { 29761: # 179 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: } 29761: 29761: 29761: int PhysicalCoreID(); 29761: 29761: using OnceType = pthread_once_t; 29761: 29761: void InitOnce(OnceType* once, void (*initializer)()); 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: static_assert((64U & (64U - 1)) == 0, 29761: "Cache line size must be a power of 2 number of bytes"); 29761: 29761: void* cacheline_aligned_alloc(size_t size); 29761: 29761: void cacheline_aligned_free(void* memblock); 29761: # 229 "/build/reproducible-path/rocksdb-9.10.0/port/port_posix.h" 29761: void Crash(const std::string& srcfile, int srcline); 29761: 29761: int GetMaxOpenFiles(); 29761: 29761: extern const size_t kPageSize; 29761: 29761: using ThreadId = pid_t; 29761: 29761: void SetCpuPriority(ThreadId id, CpuPriority priority); 29761: 29761: int64_t GetProcessID(); 29761: 29761: 29761: 29761: bool GenerateRfcUuid(std::string* output); 29761: 29761: } 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 2 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/port/port.h" 29761: extern "C" bool RocksDbThreadYieldAndCheckAbort() __attribute__((__weak__)); 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 1 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstring" 1 3 29761: # 39 "/usr/include/c++/14/cstring" 3 29761: 29761: # 40 "/usr/include/c++/14/cstring" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 43 "/usr/include/c++/14/cstring" 2 3 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/util/coding_lean.h" 2 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: inline void EncodeFixed16(char* buf, uint16_t value) { 29761: if (port::kLittleEndian) { 29761: memcpy(buf, &value, sizeof(value)); 29761: } else { 29761: buf[0] = value & 0xff; 29761: buf[1] = (value >> 8) & 0xff; 29761: } 29761: } 29761: 29761: inline void EncodeFixed32(char* buf, uint32_t value) { 29761: if (port::kLittleEndian) { 29761: memcpy(buf, &value, sizeof(value)); 29761: } else { 29761: buf[0] = value & 0xff; 29761: buf[1] = (value >> 8) & 0xff; 29761: buf[2] = (value >> 16) & 0xff; 29761: buf[3] = (value >> 24) & 0xff; 29761: } 29761: } 29761: 29761: inline void EncodeFixed64(char* buf, uint64_t value) { 29761: if (port::kLittleEndian) { 29761: memcpy(buf, &value, sizeof(value)); 29761: } else { 29761: buf[0] = value & 0xff; 29761: buf[1] = (value >> 8) & 0xff; 29761: buf[2] = (value >> 16) & 0xff; 29761: buf[3] = (value >> 24) & 0xff; 29761: buf[4] = (value >> 32) & 0xff; 29761: buf[5] = (value >> 40) & 0xff; 29761: buf[6] = (value >> 48) & 0xff; 29761: buf[7] = (value >> 56) & 0xff; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: inline uint16_t DecodeFixed16(const char* ptr) { 29761: if (port::kLittleEndian) { 29761: 29761: uint16_t result; 29761: memcpy(&result, ptr, sizeof(result)); 29761: return result; 29761: } else { 29761: return ((static_cast(static_cast(ptr[0]))) | 29761: (static_cast(static_cast(ptr[1])) << 8)); 29761: } 29761: } 29761: 29761: inline uint32_t DecodeFixed32(const char* ptr) { 29761: if (port::kLittleEndian) { 29761: 29761: uint32_t result; 29761: memcpy(&result, ptr, sizeof(result)); 29761: return result; 29761: } else { 29761: return ((static_cast(static_cast(ptr[0]))) | 29761: (static_cast(static_cast(ptr[1])) << 8) | 29761: (static_cast(static_cast(ptr[2])) << 16) | 29761: (static_cast(static_cast(ptr[3])) << 24)); 29761: } 29761: } 29761: 29761: inline uint64_t DecodeFixed64(const char* ptr) { 29761: if (port::kLittleEndian) { 29761: 29761: uint64_t result; 29761: memcpy(&result, ptr, sizeof(result)); 29761: return result; 29761: } else { 29761: uint64_t lo = DecodeFixed32(ptr); 29761: uint64_t hi = DecodeFixed32(ptr + 4); 29761: return (hi << 32) | lo; 29761: } 29761: } 29761: 29761: } 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/util/coding.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: const uint32_t kMaxVarint64Length = 10; 29761: 29761: 29761: void PutFixed16(std::string* dst, uint16_t value); 29761: void PutFixed32(std::string* dst, uint32_t value); 29761: void PutFixed64(std::string* dst, uint64_t value); 29761: void PutVarint32(std::string* dst, uint32_t value); 29761: void PutVarint32Varint32(std::string* dst, uint32_t value1, uint32_t value2); 29761: void PutVarint32Varint32Varint32(std::string* dst, uint32_t value1, 29761: uint32_t value2, uint32_t value3); 29761: void PutVarint64(std::string* dst, uint64_t value); 29761: void PutVarint64Varint64(std::string* dst, uint64_t value1, uint64_t value2); 29761: void PutVarint32Varint64(std::string* dst, uint32_t value1, uint64_t value2); 29761: void PutVarint32Varint32Varint64(std::string* dst, uint32_t value1, 29761: uint32_t value2, uint64_t value3); 29761: void PutLengthPrefixedSlice(std::string* dst, const Slice& value); 29761: void PutLengthPrefixedSliceParts(std::string* dst, 29761: const SliceParts& slice_parts); 29761: void PutLengthPrefixedSlicePartsWithPadding(std::string* dst, 29761: const SliceParts& slice_parts, 29761: size_t pad_sz); 29761: 29761: 29761: 29761: bool GetFixed64(Slice* input, uint64_t* value); 29761: bool GetFixed32(Slice* input, uint32_t* value); 29761: bool GetFixed16(Slice* input, uint16_t* value); 29761: bool GetVarint32(Slice* input, uint32_t* value); 29761: bool GetVarint64(Slice* input, uint64_t* value); 29761: bool GetVarsignedint64(Slice* input, int64_t* value); 29761: bool GetLengthPrefixedSlice(Slice* input, Slice* result); 29761: 29761: Slice GetLengthPrefixedSlice(const char* data); 29761: 29761: Slice GetSliceUntil(Slice* slice, char delimiter); 29761: 29761: 29761: 29761: constexpr inline uint64_t i64ToZigzag(const int64_t l) { 29761: return (static_cast(l) << 1) ^ static_cast(l >> 63); 29761: } 29761: inline int64_t zigzagToI64(uint64_t n) { 29761: return (n >> 1) ^ -static_cast(n & 1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: const char* GetVarint32Ptr(const char* p, const char* limit, uint32_t* v); 29761: const char* GetVarint64Ptr(const char* p, const char* limit, uint64_t* v); 29761: inline const char* GetVarsignedint64Ptr(const char* p, const char* limit, 29761: int64_t* value) { 29761: uint64_t u = 0; 29761: const char* ret = GetVarint64Ptr(p, limit, &u); 29761: *value = zigzagToI64(u); 29761: return ret; 29761: } 29761: 29761: 29761: int VarintLength(uint64_t v); 29761: 29761: 29761: 29761: 29761: char* EncodeVarint32(char* dst, uint32_t value); 29761: char* EncodeVarint64(char* dst, uint64_t value); 29761: 29761: 29761: const char* GetVarint32PtrFallback(const char* p, const char* limit, 29761: uint32_t* value); 29761: inline const char* GetVarint32Ptr(const char* p, const char* limit, 29761: uint32_t* value) { 29761: if (p < limit) { 29761: uint32_t result = *(reinterpret_cast(p)); 29761: if ((result & 128) == 0) { 29761: *value = result; 29761: return p + 1; 29761: } 29761: } 29761: return GetVarint32PtrFallback(p, limit, value); 29761: } 29761: 29761: 29761: inline void PutFixed16(std::string* dst, uint16_t value) { 29761: if (port::kLittleEndian) { 29761: dst->append(const_cast(reinterpret_cast(&value)), 29761: sizeof(value)); 29761: } else { 29761: char buf[sizeof(value)]; 29761: EncodeFixed16(buf, value); 29761: dst->append(buf, sizeof(buf)); 29761: } 29761: } 29761: 29761: inline void PutFixed32(std::string* dst, uint32_t value) { 29761: if (port::kLittleEndian) { 29761: dst->append(const_cast(reinterpret_cast(&value)), 29761: sizeof(value)); 29761: } else { 29761: char buf[sizeof(value)]; 29761: EncodeFixed32(buf, value); 29761: dst->append(buf, sizeof(buf)); 29761: } 29761: } 29761: 29761: inline void PutFixed64(std::string* dst, uint64_t value) { 29761: if (port::kLittleEndian) { 29761: dst->append(const_cast(reinterpret_cast(&value)), 29761: sizeof(value)); 29761: } else { 29761: char buf[sizeof(value)]; 29761: EncodeFixed64(buf, value); 29761: dst->append(buf, sizeof(buf)); 29761: } 29761: } 29761: 29761: inline void PutVarint32(std::string* dst, uint32_t v) { 29761: char buf[5]; 29761: char* ptr = EncodeVarint32(buf, v); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarint32Varint32(std::string* dst, uint32_t v1, uint32_t v2) { 29761: char buf[10]; 29761: char* ptr = EncodeVarint32(buf, v1); 29761: ptr = EncodeVarint32(ptr, v2); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarint32Varint32Varint32(std::string* dst, uint32_t v1, 29761: uint32_t v2, uint32_t v3) { 29761: char buf[15]; 29761: char* ptr = EncodeVarint32(buf, v1); 29761: ptr = EncodeVarint32(ptr, v2); 29761: ptr = EncodeVarint32(ptr, v3); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline char* EncodeVarint64(char* dst, uint64_t v) { 29761: static const unsigned int B = 128; 29761: unsigned char* ptr = reinterpret_cast(dst); 29761: while (v >= B) { 29761: *(ptr++) = (v & (B - 1)) | B; 29761: v >>= 7; 29761: } 29761: *(ptr++) = static_cast(v); 29761: return reinterpret_cast(ptr); 29761: } 29761: 29761: inline void PutVarint64(std::string* dst, uint64_t v) { 29761: char buf[kMaxVarint64Length]; 29761: char* ptr = EncodeVarint64(buf, v); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarsignedint64(std::string* dst, int64_t v) { 29761: char buf[kMaxVarint64Length]; 29761: 29761: char* ptr = EncodeVarint64(buf, i64ToZigzag(v)); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarint64Varint64(std::string* dst, uint64_t v1, uint64_t v2) { 29761: char buf[20]; 29761: char* ptr = EncodeVarint64(buf, v1); 29761: ptr = EncodeVarint64(ptr, v2); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarint32Varint64(std::string* dst, uint32_t v1, uint64_t v2) { 29761: char buf[15]; 29761: char* ptr = EncodeVarint32(buf, v1); 29761: ptr = EncodeVarint64(ptr, v2); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutVarint32Varint32Varint64(std::string* dst, uint32_t v1, 29761: uint32_t v2, uint64_t v3) { 29761: char buf[20]; 29761: char* ptr = EncodeVarint32(buf, v1); 29761: ptr = EncodeVarint32(ptr, v2); 29761: ptr = EncodeVarint64(ptr, v3); 29761: dst->append(buf, static_cast(ptr - buf)); 29761: } 29761: 29761: inline void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { 29761: PutVarint32(dst, static_cast(value.size())); 29761: dst->append(value.data(), value.size()); 29761: } 29761: 29761: inline void PutLengthPrefixedSliceParts(std::string* dst, size_t total_bytes, 29761: const SliceParts& slice_parts) { 29761: for (int i = 0; i < slice_parts.num_parts; ++i) { 29761: total_bytes += slice_parts.parts[i].size(); 29761: } 29761: PutVarint32(dst, static_cast(total_bytes)); 29761: for (int i = 0; i < slice_parts.num_parts; ++i) { 29761: dst->append(slice_parts.parts[i].data(), slice_parts.parts[i].size()); 29761: } 29761: } 29761: 29761: inline void PutLengthPrefixedSliceParts(std::string* dst, 29761: const SliceParts& slice_parts) { 29761: PutLengthPrefixedSliceParts(dst, 0, slice_parts); 29761: } 29761: 29761: inline void PutLengthPrefixedSlicePartsWithPadding( 29761: std::string* dst, const SliceParts& slice_parts, size_t pad_sz) { 29761: PutLengthPrefixedSliceParts(dst, pad_sz, slice_parts); 29761: dst->append(pad_sz, '\0'); 29761: } 29761: 29761: inline int VarintLength(uint64_t v) { 29761: int len = 1; 29761: while (v >= 128) { 29761: v >>= 7; 29761: len++; 29761: } 29761: return len; 29761: } 29761: 29761: inline bool GetFixed64(Slice* input, uint64_t* value) { 29761: if (input->size() < sizeof(uint64_t)) { 29761: return false; 29761: } 29761: *value = DecodeFixed64(input->data()); 29761: input->remove_prefix(sizeof(uint64_t)); 29761: return true; 29761: } 29761: 29761: inline bool GetFixed32(Slice* input, uint32_t* value) { 29761: if (input->size() < sizeof(uint32_t)) { 29761: return false; 29761: } 29761: *value = DecodeFixed32(input->data()); 29761: input->remove_prefix(sizeof(uint32_t)); 29761: return true; 29761: } 29761: 29761: inline bool GetFixed16(Slice* input, uint16_t* value) { 29761: if (input->size() < sizeof(uint16_t)) { 29761: return false; 29761: } 29761: *value = DecodeFixed16(input->data()); 29761: input->remove_prefix(sizeof(uint16_t)); 29761: return true; 29761: } 29761: 29761: inline bool GetVarint32(Slice* input, uint32_t* value) { 29761: const char* p = input->data(); 29761: const char* limit = p + input->size(); 29761: const char* q = GetVarint32Ptr(p, limit, value); 29761: if (q == nullptr) { 29761: return false; 29761: } else { 29761: *input = Slice(q, static_cast(limit - q)); 29761: return true; 29761: } 29761: } 29761: 29761: inline bool GetVarint64(Slice* input, uint64_t* value) { 29761: const char* p = input->data(); 29761: const char* limit = p + input->size(); 29761: const char* q = GetVarint64Ptr(p, limit, value); 29761: if (q == nullptr) { 29761: return false; 29761: } else { 29761: *input = Slice(q, static_cast(limit - q)); 29761: return true; 29761: } 29761: } 29761: 29761: inline bool GetVarsignedint64(Slice* input, int64_t* value) { 29761: const char* p = input->data(); 29761: const char* limit = p + input->size(); 29761: const char* q = GetVarsignedint64Ptr(p, limit, value); 29761: if (q == nullptr) { 29761: return false; 29761: } else { 29761: *input = Slice(q, static_cast(limit - q)); 29761: return true; 29761: } 29761: } 29761: 29761: inline bool GetLengthPrefixedSlice(Slice* input, Slice* result) { 29761: uint32_t len = 0; 29761: if (GetVarint32(input, &len) && input->size() >= len) { 29761: *result = Slice(input->data(), len); 29761: input->remove_prefix(len); 29761: return true; 29761: } else { 29761: return false; 29761: } 29761: } 29761: 29761: inline Slice GetLengthPrefixedSlice(const char* data) { 29761: uint32_t len = 0; 29761: 29761: 29761: auto p = GetVarint32Ptr(data, data + 5 , &len); 29761: return Slice(p, len); 29761: } 29761: 29761: inline Slice GetSliceUntil(Slice* slice, char delimiter) { 29761: uint32_t len = 0; 29761: for (len = 0; len < slice->size() && slice->data()[len] != delimiter; ++len) { 29761: 29761: } 29761: 29761: Slice ret(slice->data(), len); 29761: slice->remove_prefix(len + ((len < slice->size()) ? 1 : 0)); 29761: return ret; 29761: } 29761: 29761: template 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline void 29761: PutUnaligned(T* memory, const T& value) { 29761: 29761: 29761: 29761: 29761: *memory = value; 29761: 29761: } 29761: 29761: template 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline void 29761: GetUnaligned(const T* memory, T* value) { 29761: 29761: 29761: 29761: 29761: *value = *memory; 29761: 29761: } 29761: 29761: } 29761: # 24 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_level_imp.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_level.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: enum PerfLevel : unsigned char { 29761: kUninitialized = 0, 29761: kDisable = 1, 29761: kEnableCount = 2, 29761: kEnableWait = 3, 29761: 29761: 29761: kEnableTimeExceptForMutex = 4, 29761: 29761: 29761: 29761: kEnableTimeAndCPUTimeExceptForMutex = 5, 29761: kEnableTime = 6, 29761: kOutOfBounds = 7 29761: }; 29761: 29761: 29761: void SetPerfLevel(PerfLevel level); 29761: 29761: 29761: PerfLevel GetPerfLevel(); 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_level_imp.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: extern thread_local PerfLevel perf_level; 29761: 29761: } 29761: # 8 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/map" 1 3 29761: # 58 "/usr/include/c++/14/map" 3 29761: 29761: # 59 "/usr/include/c++/14/map" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_tree.h" 1 3 29761: # 61 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: 29761: # 62 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: 29761: # 75 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 95 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: enum _Rb_tree_color { _S_red = false, _S_black = true }; 29761: 29761: struct _Rb_tree_node_base 29761: { 29761: typedef _Rb_tree_node_base* _Base_ptr; 29761: typedef const _Rb_tree_node_base* _Const_Base_ptr; 29761: 29761: _Rb_tree_color _M_color; 29761: _Base_ptr _M_parent; 29761: _Base_ptr _M_left; 29761: _Base_ptr _M_right; 29761: 29761: static _Base_ptr 29761: _S_minimum(_Base_ptr __x) noexcept 29761: { 29761: while (__x->_M_left != 0) __x = __x->_M_left; 29761: return __x; 29761: } 29761: 29761: static _Const_Base_ptr 29761: _S_minimum(_Const_Base_ptr __x) noexcept 29761: { 29761: while (__x->_M_left != 0) __x = __x->_M_left; 29761: return __x; 29761: } 29761: 29761: static _Base_ptr 29761: _S_maximum(_Base_ptr __x) noexcept 29761: { 29761: while (__x->_M_right != 0) __x = __x->_M_right; 29761: return __x; 29761: } 29761: 29761: static _Const_Base_ptr 29761: _S_maximum(_Const_Base_ptr __x) noexcept 29761: { 29761: while (__x->_M_right != 0) __x = __x->_M_right; 29761: return __x; 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Rb_tree_key_compare 29761: { 29761: _Key_compare _M_key_compare; 29761: 29761: _Rb_tree_key_compare() 29761: noexcept(is_nothrow_default_constructible<_Key_compare>::value) 29761: 29761: : _M_key_compare() 29761: { } 29761: 29761: _Rb_tree_key_compare(const _Key_compare& __comp) 29761: : _M_key_compare(__comp) 29761: { } 29761: 29761: 29761: 29761: _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; 29761: 29761: _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) 29761: noexcept(is_nothrow_copy_constructible<_Key_compare>::value) 29761: : _M_key_compare(__x._M_key_compare) 29761: { } 29761: 29761: }; 29761: 29761: 29761: struct _Rb_tree_header 29761: { 29761: _Rb_tree_node_base _M_header; 29761: size_t _M_node_count; 29761: 29761: _Rb_tree_header() noexcept 29761: { 29761: _M_header._M_color = _S_red; 29761: _M_reset(); 29761: } 29761: 29761: 29761: _Rb_tree_header(_Rb_tree_header&& __x) noexcept 29761: { 29761: if (__x._M_header._M_parent != nullptr) 29761: _M_move_data(__x); 29761: else 29761: { 29761: _M_header._M_color = _S_red; 29761: _M_reset(); 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_move_data(_Rb_tree_header& __from) 29761: { 29761: _M_header._M_color = __from._M_header._M_color; 29761: _M_header._M_parent = __from._M_header._M_parent; 29761: _M_header._M_left = __from._M_header._M_left; 29761: _M_header._M_right = __from._M_header._M_right; 29761: _M_header._M_parent->_M_parent = &_M_header; 29761: _M_node_count = __from._M_node_count; 29761: 29761: __from._M_reset(); 29761: } 29761: 29761: void 29761: _M_reset() 29761: { 29761: _M_header._M_parent = 0; 29761: _M_header._M_left = &_M_header; 29761: _M_header._M_right = &_M_header; 29761: _M_node_count = 0; 29761: } 29761: }; 29761: 29761: template 29761: struct _Rb_tree_node : public _Rb_tree_node_base 29761: { 29761: typedef _Rb_tree_node<_Val>* _Link_type; 29761: # 227 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: __gnu_cxx::__aligned_membuf<_Val> _M_storage; 29761: 29761: _Val* 29761: _M_valptr() 29761: { return _M_storage._M_ptr(); } 29761: 29761: const _Val* 29761: _M_valptr() const 29761: { return _M_storage._M_ptr(); } 29761: 29761: }; 29761: 29761: __attribute__ ((__pure__)) _Rb_tree_node_base* 29761: _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); 29761: 29761: __attribute__ ((__pure__)) const _Rb_tree_node_base* 29761: _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); 29761: 29761: __attribute__ ((__pure__)) _Rb_tree_node_base* 29761: _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); 29761: 29761: __attribute__ ((__pure__)) const _Rb_tree_node_base* 29761: _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); 29761: 29761: template 29761: struct _Rb_tree_iterator 29761: { 29761: typedef _Tp value_type; 29761: typedef _Tp& reference; 29761: typedef _Tp* pointer; 29761: 29761: typedef bidirectional_iterator_tag iterator_category; 29761: typedef ptrdiff_t difference_type; 29761: 29761: typedef _Rb_tree_iterator<_Tp> _Self; 29761: typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; 29761: typedef _Rb_tree_node<_Tp>* _Link_type; 29761: 29761: _Rb_tree_iterator() noexcept 29761: : _M_node() { } 29761: 29761: explicit 29761: _Rb_tree_iterator(_Base_ptr __x) noexcept 29761: : _M_node(__x) { } 29761: 29761: reference 29761: operator*() const noexcept 29761: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 29761: 29761: pointer 29761: operator->() const noexcept 29761: { return static_cast<_Link_type> (_M_node)->_M_valptr(); } 29761: 29761: _Self& 29761: operator++() noexcept 29761: { 29761: _M_node = _Rb_tree_increment(_M_node); 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator++(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _Rb_tree_increment(_M_node); 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator--() noexcept 29761: { 29761: _M_node = _Rb_tree_decrement(_M_node); 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator--(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _Rb_tree_decrement(_M_node); 29761: return __tmp; 29761: } 29761: 29761: friend bool 29761: operator==(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node == __y._M_node; } 29761: 29761: 29761: friend bool 29761: operator!=(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node != __y._M_node; } 29761: 29761: 29761: _Base_ptr _M_node; 29761: }; 29761: 29761: template 29761: struct _Rb_tree_const_iterator 29761: { 29761: typedef _Tp value_type; 29761: typedef const _Tp& reference; 29761: typedef const _Tp* pointer; 29761: 29761: typedef _Rb_tree_iterator<_Tp> iterator; 29761: 29761: typedef bidirectional_iterator_tag iterator_category; 29761: typedef ptrdiff_t difference_type; 29761: 29761: typedef _Rb_tree_const_iterator<_Tp> _Self; 29761: typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; 29761: typedef const _Rb_tree_node<_Tp>* _Link_type; 29761: 29761: _Rb_tree_const_iterator() noexcept 29761: : _M_node() { } 29761: 29761: explicit 29761: _Rb_tree_const_iterator(_Base_ptr __x) noexcept 29761: : _M_node(__x) { } 29761: 29761: _Rb_tree_const_iterator(const iterator& __it) noexcept 29761: : _M_node(__it._M_node) { } 29761: 29761: iterator 29761: _M_const_cast() const noexcept 29761: { return iterator(const_cast(_M_node)); } 29761: 29761: reference 29761: operator*() const noexcept 29761: { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } 29761: 29761: pointer 29761: operator->() const noexcept 29761: { return static_cast<_Link_type>(_M_node)->_M_valptr(); } 29761: 29761: _Self& 29761: operator++() noexcept 29761: { 29761: _M_node = _Rb_tree_increment(_M_node); 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator++(int) noexcept 29761: { 29761: _Self __tmp = *this; [ 23%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o 29761: _M_node = _Rb_tree_increment(_M_node); 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator--() noexcept 29761: { 29761: _M_node = _Rb_tree_decrement(_M_node); 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator--(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _Rb_tree_decrement(_M_node); 29761: return __tmp; 29761: } 29761: 29761: friend bool 29761: operator==(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node == __y._M_node; } 29761: 29761: 29761: friend bool 29761: operator!=(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node != __y._M_node; } 29761: 29761: 29761: _Base_ptr _M_node; 29761: }; 29761: 29761: __attribute__((__nonnull__)) 29761: void 29761: _Rb_tree_insert_and_rebalance(const bool __insert_left, 29761: _Rb_tree_node_base* __x, 29761: _Rb_tree_node_base* __p, 29761: _Rb_tree_node_base& __header) throw (); 29761: 29761: __attribute__((__nonnull__,__returns_nonnull__)) 29761: _Rb_tree_node_base* 29761: _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, 29761: _Rb_tree_node_base& __header) throw (); 29761: 29761: 29761: template 29761: struct _Rb_tree_merge_helper { }; 29761: 29761: 29761: template > 29761: class _Rb_tree 29761: { 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Rb_tree_node<_Val> >::other _Node_allocator; 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; 29761: 29761: protected: 29761: typedef _Rb_tree_node_base* _Base_ptr; 29761: typedef const _Rb_tree_node_base* _Const_Base_ptr; 29761: typedef _Rb_tree_node<_Val>* _Link_type; 29761: typedef const _Rb_tree_node<_Val>* _Const_Link_type; 29761: 29761: private: 29761: 29761: 29761: struct _Reuse_or_alloc_node 29761: { 29761: _Reuse_or_alloc_node(_Rb_tree& __t) 29761: : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) 29761: { 29761: if (_M_root) 29761: { 29761: _M_root->_M_parent = 0; 29761: 29761: if (_M_nodes->_M_left) 29761: _M_nodes = _M_nodes->_M_left; 29761: } 29761: else 29761: _M_nodes = 0; 29761: } 29761: 29761: 29761: _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; 29761: 29761: 29761: ~_Reuse_or_alloc_node() 29761: { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } 29761: 29761: template 29761: _Link_type 29761: operator()(_Arg&& __arg) 29761: { 29761: _Link_type __node = static_cast<_Link_type>(_M_extract()); 29761: if (__node) 29761: { 29761: _M_t._M_destroy_node(__node); 29761: _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); 29761: return __node; 29761: } 29761: 29761: return _M_t._M_create_node(std::forward<_Arg>(__arg)); 29761: } 29761: 29761: private: 29761: _Base_ptr 29761: _M_extract() 29761: { 29761: if (!_M_nodes) 29761: return _M_nodes; 29761: 29761: _Base_ptr __node = _M_nodes; 29761: _M_nodes = _M_nodes->_M_parent; 29761: if (_M_nodes) 29761: { 29761: if (_M_nodes->_M_right == __node) 29761: { 29761: _M_nodes->_M_right = 0; 29761: 29761: if (_M_nodes->_M_left) 29761: { 29761: _M_nodes = _M_nodes->_M_left; 29761: 29761: while (_M_nodes->_M_right) 29761: _M_nodes = _M_nodes->_M_right; 29761: 29761: if (_M_nodes->_M_left) 29761: _M_nodes = _M_nodes->_M_left; 29761: } 29761: } 29761: else 29761: _M_nodes->_M_left = 0; 29761: } 29761: else 29761: _M_root = 0; 29761: 29761: return __node; 29761: } 29761: 29761: _Base_ptr _M_root; 29761: _Base_ptr _M_nodes; 29761: _Rb_tree& _M_t; 29761: }; 29761: 29761: 29761: 29761: struct _Alloc_node 29761: { 29761: _Alloc_node(_Rb_tree& __t) 29761: : _M_t(__t) { } 29761: 29761: template 29761: _Link_type 29761: operator()(_Arg&& __arg) const 29761: { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } 29761: 29761: private: 29761: _Rb_tree& _M_t; 29761: }; 29761: 29761: public: 29761: typedef _Key key_type; 29761: typedef _Val value_type; 29761: typedef value_type* pointer; 29761: typedef const value_type* const_pointer; 29761: typedef value_type& reference; 29761: typedef const value_type& const_reference; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Alloc allocator_type; 29761: 29761: _Node_allocator& 29761: _M_get_Node_allocator() noexcept 29761: { return this->_M_impl; } 29761: 29761: const _Node_allocator& 29761: _M_get_Node_allocator() const noexcept 29761: { return this->_M_impl; } 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_get_Node_allocator()); } 29761: 29761: protected: 29761: _Link_type 29761: _M_get_node() 29761: { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } 29761: 29761: void 29761: _M_put_node(_Link_type __p) noexcept 29761: { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } 29761: # 586 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: template 29761: void 29761: _M_construct_node(_Link_type __node, _Args&&... __args) 29761: { 29761: try 29761: { 29761: ::new(__node) _Rb_tree_node<_Val>; 29761: _Alloc_traits::construct(_M_get_Node_allocator(), 29761: __node->_M_valptr(), 29761: std::forward<_Args>(__args)...); 29761: } 29761: catch(...) 29761: { 29761: __node->~_Rb_tree_node<_Val>(); 29761: _M_put_node(__node); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: _Link_type 29761: _M_create_node(_Args&&... __args) 29761: { 29761: _Link_type __tmp = _M_get_node(); 29761: _M_construct_node(__tmp, std::forward<_Args>(__args)...); 29761: return __tmp; 29761: } 29761: 29761: 29761: void 29761: _M_destroy_node(_Link_type __p) noexcept 29761: { 29761: 29761: 29761: 29761: _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); 29761: __p->~_Rb_tree_node<_Val>(); 29761: 29761: } 29761: 29761: void 29761: _M_drop_node(_Link_type __p) noexcept 29761: { 29761: _M_destroy_node(__p); 29761: _M_put_node(__p); 29761: } 29761: 29761: template 29761: _Link_type 29761: _M_clone_node(_Link_type __x, _NodeGen& __node_gen) 29761: { 29761: 29761: using _Vp = __conditional_t<_MoveValue, 29761: value_type&&, 29761: const value_type&>; 29761: 29761: _Link_type __tmp 29761: = __node_gen(std::forward<_Vp>(*__x->_M_valptr())); 29761: __tmp->_M_color = __x->_M_color; 29761: __tmp->_M_left = 0; 29761: __tmp->_M_right = 0; 29761: return __tmp; 29761: } 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: template 29761: 29761: struct _Rb_tree_impl 29761: : public _Node_allocator 29761: , public _Rb_tree_key_compare<_Key_compare> 29761: , public _Rb_tree_header 29761: { 29761: typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; 29761: 29761: _Rb_tree_impl() 29761: noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) 29761: 29761: 29761: : _Node_allocator() 29761: { } 29761: 29761: _Rb_tree_impl(const _Rb_tree_impl& __x) 29761: : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) 29761: , _Base_key_compare(__x._M_key_compare) 29761: , _Rb_tree_header() 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: _Rb_tree_impl(_Rb_tree_impl&&) 29761: noexcept( is_nothrow_move_constructible<_Base_key_compare>::value ) 29761: = default; 29761: 29761: explicit 29761: _Rb_tree_impl(_Node_allocator&& __a) 29761: : _Node_allocator(std::move(__a)) 29761: { } 29761: 29761: _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) 29761: : _Node_allocator(std::move(__a)), 29761: _Base_key_compare(std::move(__x)), 29761: _Rb_tree_header(std::move(__x)) 29761: { } 29761: 29761: _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) 29761: : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) 29761: { } 29761: 29761: }; 29761: 29761: _Rb_tree_impl<_Compare> _M_impl; 29761: 29761: protected: 29761: _Base_ptr& 29761: _M_root() noexcept 29761: { return this->_M_impl._M_header._M_parent; } 29761: 29761: _Const_Base_ptr 29761: _M_root() const noexcept 29761: { return this->_M_impl._M_header._M_parent; } 29761: 29761: _Base_ptr& 29761: _M_leftmost() noexcept 29761: { return this->_M_impl._M_header._M_left; } 29761: 29761: _Const_Base_ptr 29761: _M_leftmost() const noexcept 29761: { return this->_M_impl._M_header._M_left; } 29761: 29761: _Base_ptr& 29761: _M_rightmost() noexcept 29761: { return this->_M_impl._M_header._M_right; } 29761: 29761: _Const_Base_ptr 29761: _M_rightmost() const noexcept 29761: { return this->_M_impl._M_header._M_right; } 29761: 29761: _Link_type 29761: _M_mbegin() const noexcept 29761: { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } 29761: 29761: _Link_type 29761: _M_begin() noexcept 29761: { return _M_mbegin(); } 29761: 29761: _Const_Link_type 29761: _M_begin() const noexcept 29761: { 29761: return static_cast<_Const_Link_type> 29761: (this->_M_impl._M_header._M_parent); 29761: } 29761: 29761: _Base_ptr 29761: _M_end() noexcept 29761: { return &this->_M_impl._M_header; } 29761: 29761: _Const_Base_ptr 29761: _M_end() const noexcept 29761: { return &this->_M_impl._M_header; } 29761: 29761: static const _Key& 29761: _S_key(_Const_Link_type __x) 29761: { 29761: 29761: 29761: 29761: static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, 29761: "comparison object must be invocable " 29761: "with two arguments of key type"); 29761: 29761: 29761: 29761: if constexpr (__is_invocable<_Compare&, const _Key&, const _Key&>{}) 29761: static_assert( 29761: is_invocable_v, 29761: "comparison object must be invocable as const"); 29761: 29761: 29761: 29761: return _KeyOfValue()(*__x->_M_valptr()); 29761: } 29761: 29761: static _Link_type 29761: _S_left(_Base_ptr __x) noexcept 29761: { return static_cast<_Link_type>(__x->_M_left); } 29761: 29761: static _Const_Link_type 29761: _S_left(_Const_Base_ptr __x) noexcept 29761: { return static_cast<_Const_Link_type>(__x->_M_left); } 29761: 29761: static _Link_type 29761: _S_right(_Base_ptr __x) noexcept 29761: { return static_cast<_Link_type>(__x->_M_right); } 29761: 29761: static _Const_Link_type 29761: _S_right(_Const_Base_ptr __x) noexcept 29761: { return static_cast<_Const_Link_type>(__x->_M_right); } 29761: 29761: static const _Key& 29761: _S_key(_Const_Base_ptr __x) 29761: { return _S_key(static_cast<_Const_Link_type>(__x)); } 29761: 29761: static _Base_ptr 29761: _S_minimum(_Base_ptr __x) noexcept 29761: { return _Rb_tree_node_base::_S_minimum(__x); } 29761: 29761: static _Const_Base_ptr 29761: _S_minimum(_Const_Base_ptr __x) noexcept 29761: { return _Rb_tree_node_base::_S_minimum(__x); } 29761: 29761: static _Base_ptr 29761: _S_maximum(_Base_ptr __x) noexcept 29761: { return _Rb_tree_node_base::_S_maximum(__x); } 29761: 29761: static _Const_Base_ptr 29761: _S_maximum(_Const_Base_ptr __x) noexcept 29761: { return _Rb_tree_node_base::_S_maximum(__x); } 29761: 29761: public: 29761: typedef _Rb_tree_iterator iterator; 29761: typedef _Rb_tree_const_iterator const_iterator; 29761: 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: 29761: 29761: using node_type = _Node_handle<_Key, _Val, _Node_allocator>; 29761: using insert_return_type = _Node_insert_return< 29761: __conditional_t, const_iterator, iterator>, 29761: node_type>; 29761: 29761: 29761: pair<_Base_ptr, _Base_ptr> 29761: _M_get_insert_unique_pos(const key_type& __k); 29761: 29761: pair<_Base_ptr, _Base_ptr> 29761: _M_get_insert_equal_pos(const key_type& __k); 29761: 29761: pair<_Base_ptr, _Base_ptr> 29761: _M_get_insert_hint_unique_pos(const_iterator __pos, 29761: const key_type& __k); 29761: 29761: pair<_Base_ptr, _Base_ptr> 29761: _M_get_insert_hint_equal_pos(const_iterator __pos, 29761: const key_type& __k); 29761: 29761: private: 29761: 29761: template 29761: iterator 29761: _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); 29761: 29761: iterator 29761: _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); 29761: 29761: template 29761: iterator 29761: _M_insert_lower(_Base_ptr __y, _Arg&& __v); 29761: 29761: template 29761: iterator 29761: _M_insert_equal_lower(_Arg&& __x); 29761: 29761: iterator 29761: _M_insert_lower_node(_Base_ptr __p, _Link_type __z); 29761: 29761: iterator 29761: _M_insert_equal_lower_node(_Link_type __z); 29761: # 877 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: enum { __as_lvalue, __as_rvalue }; 29761: 29761: template 29761: _Link_type 29761: _M_copy(_Link_type, _Base_ptr, _NodeGen&); 29761: 29761: template 29761: _Link_type 29761: _M_copy(const _Rb_tree& __x, _NodeGen& __gen) 29761: { 29761: _Link_type __root = 29761: _M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen); 29761: _M_leftmost() = _S_minimum(__root); 29761: _M_rightmost() = _S_maximum(__root); 29761: _M_impl._M_node_count = __x._M_impl._M_node_count; 29761: return __root; 29761: } 29761: 29761: _Link_type 29761: _M_copy(const _Rb_tree& __x) 29761: { 29761: _Alloc_node __an(*this); 29761: return _M_copy<__as_lvalue>(__x, __an); 29761: } 29761: 29761: void 29761: _M_erase(_Link_type __x); 29761: 29761: iterator 29761: _M_lower_bound(_Link_type __x, _Base_ptr __y, 29761: const _Key& __k); 29761: 29761: const_iterator 29761: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29761: const _Key& __k) const; 29761: 29761: iterator 29761: _M_upper_bound(_Link_type __x, _Base_ptr __y, 29761: const _Key& __k); 29761: 29761: const_iterator 29761: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29761: const _Key& __k) const; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: _Rb_tree() = default; 29761: 29761: 29761: _Rb_tree(const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_impl(__comp, _Node_allocator(__a)) { } 29761: 29761: _Rb_tree(const _Rb_tree& __x) 29761: : _M_impl(__x._M_impl) 29761: { 29761: if (__x._M_root() != 0) 29761: _M_root() = _M_copy(__x); 29761: } 29761: 29761: 29761: _Rb_tree(const allocator_type& __a) 29761: : _M_impl(_Node_allocator(__a)) 29761: { } 29761: 29761: _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) 29761: : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) 29761: { 29761: if (__x._M_root() != nullptr) 29761: _M_root() = _M_copy(__x); 29761: } 29761: 29761: _Rb_tree(_Rb_tree&&) = default; 29761: 29761: _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) 29761: : _Rb_tree(std::move(__x), _Node_allocator(__a)) 29761: { } 29761: 29761: private: 29761: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) 29761: noexcept(is_nothrow_default_constructible<_Compare>::value) 29761: : _M_impl(std::move(__x._M_impl), std::move(__a)) 29761: { } 29761: 29761: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) 29761: : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) 29761: { 29761: if (__x._M_root() != nullptr) 29761: _M_move_data(__x, false_type{}); 29761: } 29761: 29761: public: 29761: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) 29761: noexcept( noexcept( 29761: _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), 29761: std::declval())) ) 29761: : _Rb_tree(std::move(__x), std::move(__a), 29761: typename _Alloc_traits::is_always_equal{}) 29761: { } 29761: 29761: 29761: ~_Rb_tree() noexcept 29761: { _M_erase(_M_begin()); } 29761: 29761: _Rb_tree& 29761: operator=(const _Rb_tree& __x); 29761: 29761: 29761: _Compare 29761: key_comp() const 29761: { return _M_impl._M_key_compare; } 29761: 29761: iterator 29761: begin() noexcept 29761: { return iterator(this->_M_impl._M_header._M_left); } 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(this->_M_impl._M_header._M_left); } 29761: 29761: iterator 29761: end() noexcept 29761: { return iterator(&this->_M_impl._M_header); } 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return const_iterator(&this->_M_impl._M_header); } 29761: 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(end()); } 29761: 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(begin()); } 29761: 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_impl._M_node_count == 0; } 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_impl._M_node_count; } 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _Alloc_traits::max_size(_M_get_Node_allocator()); } 29761: 29761: void 29761: swap(_Rb_tree& __t) 29761: noexcept(__is_nothrow_swappable<_Compare>::value); 29761: 29761: 29761: 29761: template 29761: pair 29761: _M_insert_unique(_Arg&& __x); 29761: 29761: template 29761: iterator 29761: _M_insert_equal(_Arg&& __x); 29761: 29761: template 29761: iterator 29761: _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); 29761: 29761: template 29761: iterator 29761: _M_insert_unique_(const_iterator __pos, _Arg&& __x) 29761: { 29761: _Alloc_node __an(*this); 29761: return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); 29761: } 29761: 29761: template 29761: iterator 29761: _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); 29761: 29761: template 29761: iterator 29761: _M_insert_equal_(const_iterator __pos, _Arg&& __x) 29761: { 29761: _Alloc_node __an(*this); 29761: return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); 29761: } 29761: 29761: template 29761: pair 29761: _M_emplace_unique(_Args&&... __args); 29761: 29761: template 29761: iterator 29761: _M_emplace_equal(_Args&&... __args); 29761: 29761: template 29761: iterator 29761: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); 29761: 29761: template 29761: iterator 29761: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); 29761: 29761: template 29761: using __same_value_type 29761: = is_same::value_type>; 29761: 29761: template 29761: __enable_if_t<__same_value_type<_InputIterator>::value> 29761: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 29761: { 29761: _Alloc_node __an(*this); 29761: for (; __first != __last; ++__first) 29761: _M_insert_unique_(end(), *__first, __an); 29761: } 29761: 29761: template 29761: __enable_if_t::value> 29761: _M_insert_range_unique(_InputIterator __first, _InputIterator __last) 29761: { 29761: for (; __first != __last; ++__first) 29761: _M_emplace_unique(*__first); 29761: } 29761: 29761: template 29761: __enable_if_t<__same_value_type<_InputIterator>::value> 29761: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 29761: { 29761: _Alloc_node __an(*this); 29761: for (; __first != __last; ++__first) 29761: _M_insert_equal_(end(), *__first, __an); 29761: } 29761: 29761: template 29761: __enable_if_t::value> 29761: _M_insert_range_equal(_InputIterator __first, _InputIterator __last) 29761: { 29761: for (; __first != __last; ++__first) 29761: _M_emplace_equal(*__first); 29761: } 29761: # 1176 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: private: 29761: void 29761: _M_erase_aux(const_iterator __position); 29761: 29761: void 29761: _M_erase_aux(const_iterator __first, const_iterator __last); 29761: 29761: public: 29761: 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __position) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__position != end())) std::__glibcxx_assert_fail(); } while (false); 29761: const_iterator __result = __position; 29761: ++__result; 29761: _M_erase_aux(__position); 29761: return __result._M_const_cast(); 29761: } 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(iterator __position) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__position != end())) std::__glibcxx_assert_fail(); } while (false); 29761: iterator __result = __position; 29761: ++__result; 29761: _M_erase_aux(__position); 29761: return __result; 29761: } 29761: # 1225 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: size_type 29761: erase(const key_type& __x); 29761: 29761: 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { 29761: _M_erase_aux(__first, __last); 29761: return __last._M_const_cast(); 29761: } 29761: # 1248 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: void 29761: clear() noexcept 29761: { 29761: _M_erase(_M_begin()); 29761: _M_impl._M_reset(); 29761: } 29761: 29761: 29761: iterator 29761: find(const key_type& __k); 29761: 29761: const_iterator 29761: find(const key_type& __k) const; 29761: 29761: size_type 29761: count(const key_type& __k) const; 29761: 29761: iterator 29761: lower_bound(const key_type& __k) 29761: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 29761: 29761: const_iterator 29761: lower_bound(const key_type& __k) const 29761: { return _M_lower_bound(_M_begin(), _M_end(), __k); } 29761: 29761: iterator 29761: upper_bound(const key_type& __k) 29761: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 29761: 29761: const_iterator 29761: upper_bound(const key_type& __k) const 29761: { return _M_upper_bound(_M_begin(), _M_end(), __k); } 29761: 29761: pair 29761: equal_range(const key_type& __k); 29761: 29761: pair 29761: equal_range(const key_type& __k) const; 29761: 29761: 29761: template> 29761: iterator 29761: _M_find_tr(const _Kt& __k) 29761: { 29761: const _Rb_tree* __const_this = this; 29761: return __const_this->_M_find_tr(__k)._M_const_cast(); 29761: } 29761: 29761: template> 29761: const_iterator 29761: _M_find_tr(const _Kt& __k) const 29761: { 29761: auto __j = _M_lower_bound_tr(__k); 29761: if (__j != end() && _M_impl._M_key_compare(__k, _S_key(__j._M_node))) 29761: __j = end(); 29761: return __j; 29761: } 29761: 29761: template> 29761: size_type 29761: _M_count_tr(const _Kt& __k) const 29761: { 29761: auto __p = _M_equal_range_tr(__k); 29761: return std::distance(__p.first, __p.second); 29761: } 29761: 29761: template> 29761: iterator 29761: _M_lower_bound_tr(const _Kt& __k) 29761: { 29761: const _Rb_tree* __const_this = this; 29761: return __const_this->_M_lower_bound_tr(__k)._M_const_cast(); 29761: } 29761: 29761: template> 29761: const_iterator 29761: _M_lower_bound_tr(const _Kt& __k) const 29761: { 29761: auto __x = _M_begin(); 29761: auto __y = _M_end(); 29761: while (__x != 0) 29761: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29761: { 29761: __y = __x; 29761: __x = _S_left(__x); 29761: } 29761: else 29761: __x = _S_right(__x); 29761: return const_iterator(__y); 29761: } 29761: 29761: template> 29761: iterator 29761: _M_upper_bound_tr(const _Kt& __k) 29761: { 29761: const _Rb_tree* __const_this = this; 29761: return __const_this->_M_upper_bound_tr(__k)._M_const_cast(); 29761: } 29761: 29761: template> 29761: const_iterator 29761: _M_upper_bound_tr(const _Kt& __k) const 29761: { 29761: auto __x = _M_begin(); 29761: auto __y = _M_end(); 29761: while (__x != 0) 29761: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29761: { 29761: __y = __x; 29761: __x = _S_left(__x); 29761: } 29761: else 29761: __x = _S_right(__x); 29761: return const_iterator(__y); 29761: } 29761: 29761: template> 29761: pair 29761: _M_equal_range_tr(const _Kt& __k) 29761: { 29761: const _Rb_tree* __const_this = this; 29761: auto __ret = __const_this->_M_equal_range_tr(__k); 29761: return { __ret.first._M_const_cast(), __ret.second._M_const_cast() }; 29761: } 29761: 29761: template> 29761: pair 29761: _M_equal_range_tr(const _Kt& __k) const 29761: { 29761: auto __low = _M_lower_bound_tr(__k); 29761: auto __high = __low; 29761: auto& __cmp = _M_impl._M_key_compare; 29761: while (__high != end() && !__cmp(__k, _S_key(__high._M_node))) 29761: ++__high; 29761: return { __low, __high }; 29761: } 29761: 29761: 29761: 29761: bool 29761: __rb_verify() const; 29761: 29761: 29761: _Rb_tree& 29761: operator=(_Rb_tree&&) 29761: noexcept(_Alloc_traits::_S_nothrow_move() 29761: && is_nothrow_move_assignable<_Compare>::value); 29761: 29761: template 29761: void 29761: _M_assign_unique(_Iterator, _Iterator); 29761: 29761: template 29761: void 29761: _M_assign_equal(_Iterator, _Iterator); 29761: 29761: private: 29761: 29761: void 29761: _M_move_data(_Rb_tree& __x, true_type) 29761: { _M_impl._M_move_data(__x._M_impl); } 29761: 29761: 29761: 29761: void 29761: _M_move_data(_Rb_tree&, false_type); 29761: 29761: 29761: void 29761: _M_move_assign(_Rb_tree&, true_type); 29761: 29761: 29761: 29761: void 29761: _M_move_assign(_Rb_tree&, false_type); 29761: 29761: 29761: 29761: public: 29761: 29761: insert_return_type 29761: _M_reinsert_node_unique(node_type&& __nh) 29761: { 29761: insert_return_type __ret; 29761: if (__nh.empty()) 29761: __ret.position = end(); 29761: else 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: auto __res = _M_get_insert_unique_pos(__nh._M_key()); 29761: if (__res.second) 29761: { 29761: __ret.position 29761: = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29761: __nh.release(); 29761: __ret.inserted = true; 29761: } 29761: else 29761: { 29761: __ret.node = std::move(__nh); 29761: __ret.position = iterator(__res.first); 29761: __ret.inserted = false; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: iterator 29761: _M_reinsert_node_equal(node_type&& __nh) 29761: { 29761: iterator __ret; 29761: if (__nh.empty()) 29761: __ret = end(); 29761: else 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: auto __res = _M_get_insert_equal_pos(__nh._M_key()); 29761: if (__res.second) 29761: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29761: else 29761: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 29761: __nh.release(); 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: iterator 29761: _M_reinsert_node_hint_unique(const_iterator __hint, node_type&& __nh) 29761: { 29761: iterator __ret; 29761: if (__nh.empty()) 29761: __ret = end(); 29761: else 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: auto __res = _M_get_insert_hint_unique_pos(__hint, __nh._M_key()); 29761: if (__res.second) 29761: { 29761: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29761: __nh.release(); 29761: } 29761: else 29761: __ret = iterator(__res.first); 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: iterator 29761: _M_reinsert_node_hint_equal(const_iterator __hint, node_type&& __nh) 29761: { 29761: iterator __ret; 29761: if (__nh.empty()) 29761: __ret = end(); 29761: else 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) std::__glibcxx_assert_fail(); } while (false); 29761: auto __res = _M_get_insert_hint_equal_pos(__hint, __nh._M_key()); 29761: if (__res.second) 29761: __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); 29761: else 29761: __ret = _M_insert_equal_lower_node(__nh._M_ptr); 29761: __nh.release(); 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: auto __ptr = _Rb_tree_rebalance_for_erase( 29761: __pos._M_const_cast()._M_node, _M_impl._M_header); 29761: --_M_impl._M_node_count; 29761: return { static_cast<_Link_type>(__ptr), _M_get_Node_allocator() }; 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __k) 29761: { 29761: node_type __nh; 29761: auto __pos = find(__k); 29761: if (__pos != end()) 29761: __nh = extract(const_iterator(__pos)); 29761: return __nh; 29761: } 29761: 29761: template 29761: using _Compatible_tree 29761: = _Rb_tree<_Key, _Val, _KeyOfValue, _Compare2, _Alloc>; 29761: 29761: template 29761: friend struct _Rb_tree_merge_helper; 29761: 29761: 29761: template 29761: void 29761: _M_merge_unique(_Compatible_tree<_Compare2>& __src) noexcept 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 29761: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 29761: { 29761: auto __pos = __i++; 29761: auto __res = _M_get_insert_unique_pos(_KeyOfValue()(*__pos)); 29761: if (__res.second) 29761: { 29761: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 29761: auto __ptr = _Rb_tree_rebalance_for_erase( 29761: __pos._M_node, __src_impl._M_header); 29761: --__src_impl._M_node_count; 29761: _M_insert_node(__res.first, __res.second, 29761: static_cast<_Link_type>(__ptr)); 29761: } 29761: } 29761: } 29761: 29761: 29761: template 29761: void 29761: _M_merge_equal(_Compatible_tree<_Compare2>& __src) noexcept 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; 29761: for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) 29761: { 29761: auto __pos = __i++; 29761: auto __res = _M_get_insert_equal_pos(_KeyOfValue()(*__pos)); 29761: if (__res.second) 29761: { 29761: auto& __src_impl = _Merge_helper::_S_get_impl(__src); 29761: auto __ptr = _Rb_tree_rebalance_for_erase( 29761: __pos._M_node, __src_impl._M_header); 29761: --__src_impl._M_node_count; 29761: _M_insert_node(__res.first, __res.second, 29761: static_cast<_Link_type>(__ptr)); 29761: } 29761: } 29761: } 29761: 29761: 29761: friend bool 29761: operator==(const _Rb_tree& __x, const _Rb_tree& __y) 29761: { 29761: return __x.size() == __y.size() 29761: && std::equal(__x.begin(), __x.end(), __y.begin()); 29761: } 29761: # 1617 "/usr/include/c++/14/bits/stl_tree.h" 3 29761: friend bool 29761: operator<(const _Rb_tree& __x, const _Rb_tree& __y) 29761: { 29761: return std::lexicographical_compare(__x.begin(), __x.end(), 29761: __y.begin(), __y.end()); 29761: } 29761: 29761: 29761: private: 29761: 29761: 29761: struct _Auto_node 29761: { 29761: template 29761: _Auto_node(_Rb_tree& __t, _Args&&... __args) 29761: : _M_t(__t), 29761: _M_node(__t._M_create_node(std::forward<_Args>(__args)...)) 29761: { } 29761: 29761: ~_Auto_node() 29761: { 29761: if (_M_node) 29761: _M_t._M_drop_node(_M_node); 29761: } 29761: 29761: _Auto_node(_Auto_node&& __n) 29761: : _M_t(__n._M_t), _M_node(__n._M_node) 29761: { __n._M_node = nullptr; } 29761: 29761: const _Key& 29761: _M_key() const 29761: { return _S_key(_M_node); } 29761: 29761: iterator 29761: _M_insert(pair<_Base_ptr, _Base_ptr> __p) 29761: { 29761: auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node); 29761: _M_node = nullptr; 29761: return __it; 29761: } 29761: 29761: iterator 29761: _M_insert_equal_lower() 29761: { 29761: auto __it = _M_t._M_insert_equal_lower_node(_M_node); 29761: _M_node = nullptr; 29761: return __it; 29761: } 29761: 29761: _Rb_tree& _M_t; 29761: _Link_type _M_node; 29761: }; 29761: 29761: }; 29761: 29761: template 29761: inline void 29761: swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_move_data(_Rb_tree& __x, false_type) 29761: { 29761: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 29761: _M_move_data(__x, true_type()); 29761: else 29761: { 29761: constexpr bool __move = !__move_if_noexcept_cond::value; 29761: _Alloc_node __an(*this); 29761: _M_root() = _M_copy<__move>(__x, __an); 29761: if constexpr (__move) 29761: __x.clear(); 29761: } 29761: } 29761: 29761: template 29761: inline void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_move_assign(_Rb_tree& __x, true_type) 29761: { 29761: clear(); 29761: if (__x._M_root() != nullptr) 29761: _M_move_data(__x, true_type()); 29761: std::__alloc_on_move(_M_get_Node_allocator(), 29761: __x._M_get_Node_allocator()); 29761: } 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_move_assign(_Rb_tree& __x, false_type) 29761: { 29761: if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) 29761: return _M_move_assign(__x, true_type{}); 29761: 29761: 29761: 29761: _Reuse_or_alloc_node __roan(*this); 29761: _M_impl._M_reset(); 29761: if (__x._M_root() != nullptr) 29761: { 29761: _M_root() = _M_copy<__as_rvalue>(__x, __roan); 29761: __x.clear(); 29761: } 29761: } 29761: 29761: template 29761: inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: operator=(_Rb_tree&& __x) 29761: noexcept(_Alloc_traits::_S_nothrow_move() 29761: && is_nothrow_move_assignable<_Compare>::value) 29761: { 29761: _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); 29761: _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); 29761: return *this; 29761: } 29761: 29761: template 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_assign_unique(_Iterator __first, _Iterator __last) 29761: { 29761: _Reuse_or_alloc_node __roan(*this); 29761: _M_impl._M_reset(); 29761: for (; __first != __last; ++__first) 29761: _M_insert_unique_(end(), *__first, __roan); 29761: } 29761: 29761: template 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_assign_equal(_Iterator __first, _Iterator __last) 29761: { 29761: _Reuse_or_alloc_node __roan(*this); 29761: _M_impl._M_reset(); 29761: for (; __first != __last; ++__first) 29761: _M_insert_equal_(end(), *__first, __roan); 29761: } 29761: 29761: 29761: template 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: operator=(const _Rb_tree& __x) 29761: { 29761: if (this != std::__addressof(__x)) 29761: { 29761: 29761: 29761: if (_Alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: auto& __this_alloc = this->_M_get_Node_allocator(); 29761: auto& __that_alloc = __x._M_get_Node_allocator(); 29761: if (!_Alloc_traits::_S_always_equal() 29761: && __this_alloc != __that_alloc) 29761: { 29761: 29761: 29761: clear(); 29761: std::__alloc_on_copy(__this_alloc, __that_alloc); 29761: } 29761: } 29761: 29761: 29761: _Reuse_or_alloc_node __roan(*this); 29761: _M_impl._M_reset(); 29761: _M_impl._M_key_compare = __x._M_impl._M_key_compare; 29761: if (__x._M_root() != 0) 29761: _M_root() = _M_copy<__as_lvalue>(__x, __roan); 29761: } 29761: 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_(_Base_ptr __x, _Base_ptr __p, 29761: 29761: _Arg&& __v, 29761: 29761: 29761: 29761: _NodeGen& __node_gen) 29761: { 29761: bool __insert_left = (__x != 0 || __p == _M_end() 29761: || _M_impl._M_key_compare(_KeyOfValue()(__v), 29761: _S_key(__p))); 29761: 29761: _Link_type __z = __node_gen(std::forward<_Arg>(__v)); 29761: 29761: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29761: this->_M_impl._M_header); 29761: ++_M_impl._M_node_count; 29761: return iterator(__z); 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: 29761: _M_insert_lower(_Base_ptr __p, _Arg&& __v) 29761: 29761: 29761: 29761: { 29761: bool __insert_left = (__p == _M_end() 29761: || !_M_impl._M_key_compare(_S_key(__p), 29761: _KeyOfValue()(__v))); 29761: 29761: _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); 29761: 29761: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29761: this->_M_impl._M_header); 29761: ++_M_impl._M_node_count; 29761: return iterator(__z); 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: 29761: _M_insert_equal_lower(_Arg&& __v) 29761: 29761: 29761: 29761: { 29761: _Link_type __x = _M_begin(); 29761: _Base_ptr __y = _M_end(); 29761: while (__x != 0) 29761: { 29761: __y = __x; 29761: __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? 29761: _S_left(__x) : _S_right(__x); 29761: } 29761: return _M_insert_lower(__y, std::forward<_Arg>(__v)); 29761: } 29761: 29761: template 29761: template 29761: typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type 29761: _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: 29761: _M_copy(_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) 29761: { 29761: 29761: _Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen); 29761: __top->_M_parent = __p; 29761: 29761: try 29761: { 29761: if (__x->_M_right) 29761: __top->_M_right = 29761: _M_copy<_MoveValues>(_S_right(__x), __top, __node_gen); 29761: __p = __top; 29761: __x = _S_left(__x); 29761: 29761: while (__x != 0) 29761: { 29761: _Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen); 29761: __p->_M_left = __y; 29761: __y->_M_parent = __p; 29761: if (__x->_M_right) 29761: __y->_M_right = _M_copy<_MoveValues>(_S_right(__x), 29761: __y, __node_gen); 29761: __p = __y; 29761: __x = _S_left(__x); 29761: } 29761: } 29761: catch(...) 29761: { 29761: _M_erase(__top); 29761: throw; 29761: } 29761: return __top; 29761: } 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_erase(_Link_type __x) 29761: { 29761: 29761: while (__x != 0) 29761: { 29761: _M_erase(_S_right(__x)); 29761: _Link_type __y = _S_left(__x); 29761: _M_drop_node(__x); 29761: __x = __y; 29761: } 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_lower_bound(_Link_type __x, _Base_ptr __y, 29761: const _Key& __k) 29761: { 29761: while (__x != 0) 29761: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: __x = _S_right(__x); 29761: return iterator(__y); 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::const_iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29761: const _Key& __k) const 29761: { 29761: while (__x != 0) 29761: if (!_M_impl._M_key_compare(_S_key(__x), __k)) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: __x = _S_right(__x); 29761: return const_iterator(__y); 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_upper_bound(_Link_type __x, _Base_ptr __y, 29761: const _Key& __k) 29761: { 29761: while (__x != 0) 29761: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: __x = _S_right(__x); 29761: return iterator(__y); 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::const_iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, 29761: const _Key& __k) const 29761: { 29761: while (__x != 0) 29761: if (_M_impl._M_key_compare(__k, _S_key(__x))) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: __x = _S_right(__x); 29761: return const_iterator(__y); 29761: } 29761: 29761: template 29761: pair::iterator, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::iterator> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: equal_range(const _Key& __k) 29761: { 29761: _Link_type __x = _M_begin(); 29761: _Base_ptr __y = _M_end(); 29761: while (__x != 0) 29761: { 29761: if (_M_impl._M_key_compare(_S_key(__x), __k)) 29761: __x = _S_right(__x); 29761: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: { 29761: _Link_type __xu(__x); 29761: _Base_ptr __yu(__y); 29761: __y = __x, __x = _S_left(__x); 29761: __xu = _S_right(__xu); 29761: return pair(_M_lower_bound(__x, __y, __k), 29761: _M_upper_bound(__xu, __yu, __k)); 29761: } 29761: } 29761: return pair(iterator(__y), 29761: iterator(__y)); 29761: } 29761: 29761: template 29761: pair::const_iterator, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::const_iterator> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: equal_range(const _Key& __k) const 29761: { 29761: _Const_Link_type __x = _M_begin(); 29761: _Const_Base_ptr __y = _M_end(); 29761: while (__x != 0) 29761: { 29761: if (_M_impl._M_key_compare(_S_key(__x), __k)) 29761: __x = _S_right(__x); 29761: else if (_M_impl._M_key_compare(__k, _S_key(__x))) 29761: __y = __x, __x = _S_left(__x); 29761: else 29761: { 29761: _Const_Link_type __xu(__x); 29761: _Const_Base_ptr __yu(__y); 29761: __y = __x, __x = _S_left(__x); 29761: __xu = _S_right(__xu); 29761: return pair(_M_lower_bound(__x, __y, __k), 29761: _M_upper_bound(__xu, __yu, __k)); 29761: } 29761: } 29761: return pair(const_iterator(__y), 29761: const_iterator(__y)); 29761: } 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: swap(_Rb_tree& __t) 29761: noexcept(__is_nothrow_swappable<_Compare>::value) 29761: { 29761: if (_M_root() == 0) 29761: { 29761: if (__t._M_root() != 0) 29761: _M_impl._M_move_data(__t._M_impl); 29761: } 29761: else if (__t._M_root() == 0) 29761: __t._M_impl._M_move_data(_M_impl); 29761: else 29761: { 29761: std::swap(_M_root(),__t._M_root()); 29761: std::swap(_M_leftmost(),__t._M_leftmost()); 29761: std::swap(_M_rightmost(),__t._M_rightmost()); 29761: 29761: _M_root()->_M_parent = _M_end(); 29761: __t._M_root()->_M_parent = __t._M_end(); 29761: std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); 29761: } 29761: 29761: std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); 29761: 29761: _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), 29761: __t._M_get_Node_allocator()); 29761: } 29761: 29761: template 29761: pair::_Base_ptr, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::_Base_ptr> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_get_insert_unique_pos(const key_type& __k) 29761: { 29761: typedef pair<_Base_ptr, _Base_ptr> _Res; 29761: _Link_type __x = _M_begin(); 29761: _Base_ptr __y = _M_end(); 29761: bool __comp = true; 29761: while (__x != 0) 29761: { 29761: __y = __x; 29761: __comp = _M_impl._M_key_compare(__k, _S_key(__x)); 29761: __x = __comp ? _S_left(__x) : _S_right(__x); 29761: } 29761: iterator __j = iterator(__y); 29761: if (__comp) 29761: { 29761: if (__j == begin()) 29761: return _Res(__x, __y); 29761: else 29761: --__j; 29761: } 29761: if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) 29761: return _Res(__x, __y); 29761: return _Res(__j._M_node, 0); 29761: } 29761: 29761: template 29761: pair::_Base_ptr, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::_Base_ptr> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_get_insert_equal_pos(const key_type& __k) 29761: { 29761: typedef pair<_Base_ptr, _Base_ptr> _Res; 29761: _Link_type __x = _M_begin(); 29761: _Base_ptr __y = _M_end(); 29761: while (__x != 0) 29761: { 29761: __y = __x; 29761: __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? 29761: _S_left(__x) : _S_right(__x); 29761: } 29761: return _Res(__x, __y); 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: pair::iterator, bool> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: 29761: _M_insert_unique(_Arg&& __v) 29761: 29761: 29761: 29761: { 29761: typedef pair _Res; 29761: pair<_Base_ptr, _Base_ptr> __res 29761: = _M_get_insert_unique_pos(_KeyOfValue()(__v)); 29761: 29761: if (__res.second) 29761: { 29761: _Alloc_node __an(*this); 29761: return _Res(_M_insert_(__res.first, __res.second, 29761: std::forward<_Arg>(__v), __an), 29761: true); 29761: } 29761: 29761: return _Res(iterator(__res.first), false); 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: 29761: _M_insert_equal(_Arg&& __v) 29761: 29761: 29761: 29761: { 29761: pair<_Base_ptr, _Base_ptr> __res 29761: = _M_get_insert_equal_pos(_KeyOfValue()(__v)); 29761: _Alloc_node __an(*this); 29761: return _M_insert_(__res.first, __res.second, 29761: std::forward<_Arg>(__v), __an); 29761: } 29761: 29761: template 29761: pair::_Base_ptr, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::_Base_ptr> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_get_insert_hint_unique_pos(const_iterator __position, 29761: const key_type& __k) 29761: { 29761: iterator __pos = __position._M_const_cast(); 29761: typedef pair<_Base_ptr, _Base_ptr> _Res; 29761: 29761: 29761: if (__pos._M_node == _M_end()) 29761: { 29761: if (size() > 0 29761: && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) 29761: return _Res(0, _M_rightmost()); 29761: else 29761: return _M_get_insert_unique_pos(__k); 29761: } 29761: else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) 29761: { 29761: 29761: iterator __before = __pos; 29761: if (__pos._M_node == _M_leftmost()) 29761: return _Res(_M_leftmost(), _M_leftmost()); 29761: else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) 29761: { 29761: if (_S_right(__before._M_node) == 0) 29761: return _Res(0, __before._M_node); 29761: else 29761: return _Res(__pos._M_node, __pos._M_node); 29761: } 29761: else 29761: return _M_get_insert_unique_pos(__k); 29761: } 29761: else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 29761: { 29761: 29761: iterator __after = __pos; 29761: if (__pos._M_node == _M_rightmost()) 29761: return _Res(0, _M_rightmost()); 29761: else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) 29761: { 29761: if (_S_right(__pos._M_node) == 0) 29761: return _Res(0, __pos._M_node); 29761: else 29761: return _Res(__after._M_node, __after._M_node); 29761: } 29761: else 29761: return _M_get_insert_unique_pos(__k); 29761: } 29761: else 29761: 29761: return _Res(__pos._M_node, 0); 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_unique_(const_iterator __position, 29761: 29761: _Arg&& __v, 29761: 29761: 29761: 29761: _NodeGen& __node_gen) 29761: { 29761: pair<_Base_ptr, _Base_ptr> __res 29761: = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); 29761: 29761: if (__res.second) 29761: return _M_insert_(__res.first, __res.second, 29761: std::forward<_Arg>(__v), 29761: __node_gen); 29761: return iterator(__res.first); 29761: } 29761: 29761: template 29761: pair::_Base_ptr, 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::_Base_ptr> 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) 29761: { 29761: iterator __pos = __position._M_const_cast(); 29761: typedef pair<_Base_ptr, _Base_ptr> _Res; 29761: 29761: 29761: if (__pos._M_node == _M_end()) 29761: { 29761: if (size() > 0 29761: && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) 29761: return _Res(0, _M_rightmost()); 29761: else 29761: return _M_get_insert_equal_pos(__k); 29761: } 29761: else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) 29761: { 29761: 29761: iterator __before = __pos; 29761: if (__pos._M_node == _M_leftmost()) 29761: return _Res(_M_leftmost(), _M_leftmost()); 29761: else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) 29761: { 29761: if (_S_right(__before._M_node) == 0) 29761: return _Res(0, __before._M_node); 29761: else 29761: return _Res(__pos._M_node, __pos._M_node); 29761: } 29761: else 29761: return _M_get_insert_equal_pos(__k); 29761: } 29761: else 29761: { 29761: 29761: iterator __after = __pos; 29761: if (__pos._M_node == _M_rightmost()) 29761: return _Res(0, _M_rightmost()); 29761: else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) 29761: { 29761: if (_S_right(__pos._M_node) == 0) 29761: return _Res(0, __pos._M_node); 29761: else 29761: return _Res(__after._M_node, __after._M_node); 29761: } 29761: else 29761: return _Res(0, 0); 29761: } 29761: } 29761: 29761: template 29761: 29761: template 29761: 29761: 29761: 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_equal_(const_iterator __position, 29761: 29761: _Arg&& __v, 29761: 29761: 29761: 29761: _NodeGen& __node_gen) 29761: { 29761: pair<_Base_ptr, _Base_ptr> __res 29761: = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); 29761: 29761: if (__res.second) 29761: return _M_insert_(__res.first, __res.second, 29761: std::forward<_Arg>(__v), 29761: __node_gen); 29761: 29761: return _M_insert_equal_lower(std::forward<_Arg>(__v)); 29761: } 29761: 29761: 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) 29761: -> iterator 29761: { 29761: bool __insert_left = (__x != 0 || __p == _M_end() 29761: || _M_impl._M_key_compare(_S_key(__z), 29761: _S_key(__p))); 29761: 29761: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29761: this->_M_impl._M_header); 29761: ++_M_impl._M_node_count; 29761: return iterator(__z); 29761: } 29761: 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) 29761: -> iterator 29761: { 29761: bool __insert_left = (__p == _M_end() 29761: || !_M_impl._M_key_compare(_S_key(__p), 29761: _S_key(__z))); 29761: 29761: _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, 29761: this->_M_impl._M_header); 29761: ++_M_impl._M_node_count; 29761: return iterator(__z); 29761: } 29761: 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_insert_equal_lower_node(_Link_type __z) 29761: -> iterator 29761: { 29761: _Link_type __x = _M_begin(); 29761: _Base_ptr __y = _M_end(); 29761: while (__x != 0) 29761: { 29761: __y = __x; 29761: __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? 29761: _S_left(__x) : _S_right(__x); 29761: } 29761: return _M_insert_lower_node(__y, __z); 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_emplace_unique(_Args&&... __args) 29761: -> pair 29761: { 29761: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29761: auto __res = _M_get_insert_unique_pos(__z._M_key()); 29761: if (__res.second) 29761: return {__z._M_insert(__res), true}; 29761: return {iterator(__res.first), false}; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_emplace_equal(_Args&&... __args) 29761: -> iterator 29761: { 29761: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29761: auto __res = _M_get_insert_equal_pos(__z._M_key()); 29761: return __z._M_insert(__res); 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) 29761: -> iterator 29761: { 29761: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29761: auto __res = _M_get_insert_hint_unique_pos(__pos, __z._M_key()); 29761: if (__res.second) 29761: return __z._M_insert(__res); 29761: return iterator(__res.first); 29761: } 29761: 29761: template 29761: template 29761: auto 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) 29761: -> iterator 29761: { 29761: _Auto_node __z(*this, std::forward<_Args>(__args)...); 29761: auto __res = _M_get_insert_hint_equal_pos(__pos, __z._M_key()); 29761: if (__res.second) 29761: return __z._M_insert(__res); 29761: return __z._M_insert_equal_lower(); 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_erase_aux(const_iterator __position) 29761: { 29761: _Link_type __y = 29761: static_cast<_Link_type>(_Rb_tree_rebalance_for_erase 29761: (const_cast<_Base_ptr>(__position._M_node), 29761: this->_M_impl._M_header)); 29761: _M_drop_node(__y); 29761: --_M_impl._M_node_count; 29761: } 29761: 29761: template 29761: void 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: _M_erase_aux(const_iterator __first, const_iterator __last) 29761: { 29761: if (__first == begin() && __last == end()) 29761: clear(); 29761: else 29761: while (__first != __last) 29761: _M_erase_aux(__first++); 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: erase(const _Key& __x) 29761: { 29761: pair __p = equal_range(__x); 29761: const size_type __old_size = size(); 29761: _M_erase_aux(__p.first, __p.second); 29761: return __old_size - size(); 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: find(const _Key& __k) 29761: { 29761: iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 29761: return (__j == end() 29761: || _M_impl._M_key_compare(__k, 29761: _S_key(__j._M_node))) ? end() : __j; 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, 29761: _Compare, _Alloc>::const_iterator 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: find(const _Key& __k) const 29761: { 29761: const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); 29761: return (__j == end() 29761: || _M_impl._M_key_compare(__k, 29761: _S_key(__j._M_node))) ? end() : __j; 29761: } 29761: 29761: template 29761: typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type 29761: _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: 29761: count(const _Key& __k) const 29761: { 29761: pair __p = equal_range(__k); 29761: const size_type __n = std::distance(__p.first, __p.second); 29761: return __n; 29761: } 29761: 29761: __attribute__ ((__pure__)) unsigned int 29761: _Rb_tree_black_count(const _Rb_tree_node_base* __node, 29761: const _Rb_tree_node_base* __root) throw (); 29761: 29761: template 29761: bool 29761: _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const 29761: { 29761: if (_M_impl._M_node_count == 0 || begin() == end()) 29761: return _M_impl._M_node_count == 0 && begin() == end() 29761: && this->_M_impl._M_header._M_left == _M_end() 29761: && this->_M_impl._M_header._M_right == _M_end(); 29761: 29761: unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); 29761: for (const_iterator __it = begin(); __it != end(); ++__it) 29761: { 29761: _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); 29761: _Const_Link_type __L = _S_left(__x); 29761: _Const_Link_type __R = _S_right(__x); 29761: 29761: if (__x->_M_color == _S_red) 29761: if ((__L && __L->_M_color == _S_red) 29761: || (__R && __R->_M_color == _S_red)) 29761: return false; 29761: 29761: if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) 29761: return false; 29761: if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) 29761: return false; 29761: 29761: if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) 29761: return false; 29761: } 29761: 29761: if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) 29761: return false; 29761: if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) 29761: return false; 29761: return true; 29761: } 29761: 29761: 29761: 29761: template 29761: struct _Rb_tree_merge_helper<_Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>, 29761: _Cmp2> 29761: { 29761: private: 29761: friend class _Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_impl(_Rb_tree<_Key, _Val, _Sel, _Cmp2, _Alloc>& __tree) 29761: { return __tree._M_impl; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 63 "/usr/include/c++/14/map" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_map.h" 1 3 29761: # 66 "/usr/include/c++/14/bits/stl_map.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class multimap; 29761: # 100 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template , 29761: typename _Alloc = std::allocator > > 29761: class map 29761: { 29761: public: 29761: typedef _Key key_type; 29761: typedef _Tp mapped_type; 29761: typedef std::pair value_type; 29761: typedef _Compare key_compare; 29761: typedef _Alloc allocator_type; 29761: 29761: private: 29761: # 130 "/usr/include/c++/14/bits/stl_map.h" 3 29761: public: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: class value_compare 29761: : public std::binary_function 29761: { 29761: friend class map<_Key, _Tp, _Compare, _Alloc>; 29761: protected: 29761: _Compare comp; 29761: 29761: value_compare(_Compare __c) 29761: : comp(__c) { } 29761: 29761: public: 29761: bool operator()(const value_type& __x, const value_type& __y) const 29761: { return comp(__x.first, __y.first); } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: private: 29761: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind::other _Pair_alloc_type; 29761: 29761: typedef _Rb_tree, 29761: key_compare, _Pair_alloc_type> _Rep_type; 29761: 29761: 29761: _Rep_type _M_t; 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 29761: 29761: 29761: template> 29761: static constexpr bool __usable_key 29761: = __or_v, 29761: __and_, is_scalar<_Key>>>; 29761: 29761: 29761: public: 29761: 29761: 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: typedef typename _Rep_type::iterator iterator; 29761: typedef typename _Rep_type::const_iterator const_iterator; 29761: typedef typename _Rep_type::size_type size_type; 29761: typedef typename _Rep_type::difference_type difference_type; 29761: typedef typename _Rep_type::reverse_iterator reverse_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29761: 29761: 29761: using node_type = typename _Rep_type::node_type; 29761: using insert_return_type = typename _Rep_type::insert_return_type; 29761: # 197 "/usr/include/c++/14/bits/stl_map.h" 3 29761: map() = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: map(const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) { } 29761: # 219 "/usr/include/c++/14/bits/stl_map.h" 3 29761: map(const map&) = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: map(map&&) = default; 29761: # 240 "/usr/include/c++/14/bits/stl_map.h" 3 29761: map(initializer_list __l, 29761: const _Compare& __comp = _Compare(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29761: 29761: 29761: explicit 29761: map(const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) { } 29761: 29761: 29761: map(const map& __m, const __type_identity_t& __a) 29761: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 29761: 29761: 29761: map(map&& __m, const __type_identity_t& __a) 29761: noexcept(is_nothrow_copy_constructible<_Compare>::value 29761: && _Alloc_traits::_S_always_equal()) 29761: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 29761: 29761: 29761: map(initializer_list __l, const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29761: 29761: 29761: template 29761: map(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 284 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: map(_InputIterator __first, _InputIterator __last) 29761: : _M_t() 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 301 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: map(_InputIterator __first, _InputIterator __last, 29761: const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~map() = default; 29761: # 330 "/usr/include/c++/14/bits/stl_map.h" 3 29761: map& 29761: operator=(const map&) = default; 29761: 29761: 29761: map& 29761: operator=(map&&) = default; 29761: # 348 "/usr/include/c++/14/bits/stl_map.h" 3 29761: map& 29761: operator=(initializer_list __l) 29761: { 29761: _M_t._M_assign_unique(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_t.get_allocator()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rend() noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_t.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_t.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_t.max_size(); } 29761: # 503 "/usr/include/c++/14/bits/stl_map.h" 3 29761: mapped_type& 29761: operator[](const key_type& __k) 29761: { 29761: 29761: 29761: 29761: iterator __i = lower_bound(__k); 29761: 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: 29761: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 29761: std::tuple(__k), 29761: std::tuple<>()); 29761: 29761: 29761: 29761: return (*__i).second; 29761: } 29761: 29761: 29761: mapped_type& 29761: operator[](key_type&& __k) 29761: { 29761: 29761: 29761: 29761: iterator __i = lower_bound(__k); 29761: 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::tuple<>()); 29761: return (*__i).second; 29761: } 29761: # 548 "/usr/include/c++/14/bits/stl_map.h" 3 29761: mapped_type& 29761: at(const key_type& __k) 29761: { 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: __throw_out_of_range(("map::at")); 29761: return (*__i).second; 29761: } 29761: 29761: const mapped_type& 29761: at(const key_type& __k) const 29761: { 29761: const_iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: __throw_out_of_range(("map::at")); 29761: return (*__i).second; 29761: } 29761: # 586 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: std::pair 29761: emplace(_Args&&... __args) 29761: { 29761: 29761: if constexpr (sizeof...(_Args) == 2) 29761: if constexpr (is_same_v>) 29761: { 29761: auto&& [__a, __v] = pair<_Args&...>(__args...); 29761: if constexpr (__usable_key) 29761: { 29761: const key_type& __k = __a; 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::forward<_Args>(__args)...); 29761: return {__i, true}; 29761: } 29761: return {__i, false}; 29761: } 29761: } 29761: 29761: return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); 29761: } 29761: # 636 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { 29761: return _M_t._M_emplace_hint_unique(__pos, 29761: std::forward<_Args>(__args)...); 29761: } 29761: 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_t.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __x) 29761: { return _M_t.extract(__x); } 29761: 29761: 29761: insert_return_type 29761: insert(node_type&& __nh) 29761: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 29761: 29761: template 29761: friend struct std::_Rb_tree_merge_helper; 29761: 29761: template 29761: void 29761: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29761: { merge(__source); } 29761: # 720 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: pair 29761: try_emplace(const key_type& __k, _Args&&... __args) 29761: { 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::piecewise_construct, 29761: std::forward_as_tuple(__k), 29761: std::forward_as_tuple( 29761: std::forward<_Args>(__args)...)); 29761: return {__i, true}; 29761: } 29761: return {__i, false}; 29761: } 29761: 29761: 29761: template 29761: pair 29761: try_emplace(key_type&& __k, _Args&&... __args) 29761: { 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::forward_as_tuple( 29761: std::forward<_Args>(__args)...)); 29761: return {__i, true}; 29761: } 29761: return {__i, false}; 29761: } 29761: # 780 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: iterator 29761: try_emplace(const_iterator __hint, const key_type& __k, 29761: _Args&&... __args) 29761: { 29761: iterator __i; 29761: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29761: if (__true_hint.second) 29761: __i = emplace_hint(iterator(__true_hint.second), 29761: std::piecewise_construct, 29761: std::forward_as_tuple(__k), 29761: std::forward_as_tuple( 29761: std::forward<_Args>(__args)...)); 29761: else 29761: __i = iterator(__true_hint.first); 29761: return __i; 29761: } 29761: 29761: 29761: template 29761: iterator 29761: try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) 29761: { 29761: iterator __i; 29761: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29761: if (__true_hint.second) 29761: __i = emplace_hint(iterator(__true_hint.second), 29761: std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::forward_as_tuple( 29761: std::forward<_Args>(__args)...)); 29761: else 29761: __i = iterator(__true_hint.first); 29761: return __i; 29761: } 29761: # 833 "/usr/include/c++/14/bits/stl_map.h" 3 29761: std::pair 29761: insert(const value_type& __x) 29761: { return _M_t._M_insert_unique(__x); } 29761: 29761: 29761: 29761: 29761: std::pair 29761: insert(value_type&& __x) 29761: { return _M_t._M_insert_unique(std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, 29761: pair> 29761: insert(_Pair&& __x) 29761: { 29761: 29761: using _P2 = remove_reference_t<_Pair>; 29761: if constexpr (__is_pair>) 29761: if constexpr (is_same_v>) 29761: if constexpr (__usable_key) 29761: { 29761: const key_type& __k = __x.first; 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::forward<_Pair>(__x)); 29761: return {__i, true}; 29761: } 29761: return {__i, false}; 29761: } 29761: 29761: return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); 29761: } 29761: # 878 "/usr/include/c++/14/bits/stl_map.h" 3 29761: void 29761: insert(std::initializer_list __list) 29761: { insert(__list.begin(), __list.end()); } 29761: # 907 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: 29761: insert(const_iterator __position, const value_type& __x) 29761: 29761: 29761: 29761: { return _M_t._M_insert_unique_(__position, __x); } 29761: 29761: 29761: 29761: 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(const_iterator __position, _Pair&& __x) 29761: { 29761: return _M_t._M_emplace_hint_unique(__position, 29761: std::forward<_Pair>(__x)); 29761: } 29761: # 940 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 965 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: pair 29761: insert_or_assign(const key_type& __k, _Obj&& __obj) 29761: { 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::piecewise_construct, 29761: std::forward_as_tuple(__k), 29761: std::forward_as_tuple( 29761: std::forward<_Obj>(__obj))); 29761: return {__i, true}; 29761: } 29761: (*__i).second = std::forward<_Obj>(__obj); 29761: return {__i, false}; 29761: } 29761: 29761: 29761: template 29761: pair 29761: insert_or_assign(key_type&& __k, _Obj&& __obj) 29761: { 29761: iterator __i = lower_bound(__k); 29761: if (__i == end() || key_comp()(__k, (*__i).first)) 29761: { 29761: __i = emplace_hint(__i, std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::forward_as_tuple( 29761: std::forward<_Obj>(__obj))); 29761: return {__i, true}; 29761: } 29761: (*__i).second = std::forward<_Obj>(__obj); 29761: return {__i, false}; 29761: } 29761: # 1020 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: iterator 29761: insert_or_assign(const_iterator __hint, 29761: const key_type& __k, _Obj&& __obj) 29761: { 29761: iterator __i; 29761: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29761: if (__true_hint.second) 29761: { 29761: return emplace_hint(iterator(__true_hint.second), 29761: std::piecewise_construct, 29761: std::forward_as_tuple(__k), 29761: std::forward_as_tuple( 29761: std::forward<_Obj>(__obj))); 29761: } 29761: __i = iterator(__true_hint.first); 29761: (*__i).second = std::forward<_Obj>(__obj); 29761: return __i; 29761: } 29761: 29761: 29761: template 29761: iterator 29761: insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) 29761: { 29761: iterator __i; 29761: auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); 29761: if (__true_hint.second) 29761: { 29761: return emplace_hint(iterator(__true_hint.second), 29761: std::piecewise_construct, 29761: std::forward_as_tuple(std::move(__k)), 29761: std::forward_as_tuple( 29761: std::forward<_Obj>(__obj))); 29761: } 29761: __i = iterator(__true_hint.first); 29761: (*__i).second = std::forward<_Obj>(__obj); 29761: return __i; 29761: } 29761: # 1079 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_t.erase(__position); } 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(iterator __position) 29761: { return _M_t.erase(__position); } 29761: # 1116 "/usr/include/c++/14/bits/stl_map.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_t.erase(__x); } 29761: # 1136 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_t.erase(__first, __last); } 29761: # 1170 "/usr/include/c++/14/bits/stl_map.h" 3 29761: void 29761: swap(map& __x) 29761: noexcept(__is_nothrow_swappable<_Compare>::value) 29761: { _M_t.swap(__x._M_t); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_t.clear(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: key_compare 29761: key_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: 29761: 29761: 29761: 29761: value_compare 29761: value_comp() const 29761: { return value_compare(_M_t.key_comp()); } 29761: # 1217 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 29761: { return _M_t._M_find_tr(__x); } 29761: # 1242 "/usr/include/c++/14/bits/stl_map.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 29761: { return _M_t._M_find_tr(__x); } 29761: # 1263 "/usr/include/c++/14/bits/stl_map.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 29761: 29761: 29761: template 29761: auto 29761: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29761: { return _M_t._M_count_tr(__x); } 29761: # 1306 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: lower_bound(const key_type& __x) 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 1331 "/usr/include/c++/14/bits/stl_map.h" 3 29761: const_iterator 29761: lower_bound(const key_type& __x) const 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) const 29761: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 1351 "/usr/include/c++/14/bits/stl_map.h" 3 29761: iterator 29761: upper_bound(const key_type& __x) 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 1371 "/usr/include/c++/14/bits/stl_map.h" 3 29761: const_iterator 29761: upper_bound(const key_type& __x) const 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) const 29761: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 1400 "/usr/include/c++/14/bits/stl_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: # 1429 "/usr/include/c++/14/bits/stl_map.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) const 29761: -> decltype(pair( 29761: _M_t._M_equal_range_tr(__x))) 29761: { 29761: return pair( 29761: _M_t._M_equal_range_tr(__x)); 29761: } 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator==(const map<_K1, _T1, _C1, _A1>&, 29761: const map<_K1, _T1, _C1, _A1>&); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator<(const map<_K1, _T1, _C1, _A1>&, 29761: const map<_K1, _T1, _C1, _A1>&); 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: template>, 29761: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: map(_InputIterator, _InputIterator, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29761: _Compare, _Allocator>; 29761: 29761: template, 29761: typename _Allocator = allocator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: map(initializer_list>, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> map<_Key, _Tp, _Compare, _Allocator>; 29761: 29761: template , 29761: typename = _RequireAllocator<_Allocator>> 29761: map(_InputIterator, _InputIterator, _Allocator) 29761: -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29761: less<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template> 29761: map(initializer_list>, _Allocator) 29761: -> map<_Key, _Tp, less<_Key>, _Allocator>; 29761: # 1510 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: inline bool 29761: operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __x._M_t == __y._M_t; } 29761: # 1548 "/usr/include/c++/14/bits/stl_map.h" 3 29761: template 29761: inline bool 29761: operator<(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __x._M_t < __y._M_t; } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: inline bool 29761: operator<=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>=(const map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(map<_Key, _Tp, _Compare, _Alloc>& __x, 29761: map<_Key, _Tp, _Compare, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: _Rb_tree_merge_helper, 29761: _Cmp2> 29761: { 29761: private: 29761: friend class std::map<_Key, _Val, _Cmp1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 29761: { return __map._M_t; } 29761: 29761: static auto& 29761: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 29761: { return __map._M_t; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 64 "/usr/include/c++/14/map" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_multimap.h" 1 3 29761: # 64 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class map; 29761: # 98 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template , 29761: typename _Alloc = std::allocator > > 29761: class multimap 29761: { 29761: public: 29761: typedef _Key key_type; 29761: typedef _Tp mapped_type; 29761: typedef std::pair value_type; 29761: typedef _Compare key_compare; 29761: typedef _Alloc allocator_type; 29761: 29761: private: 29761: # 129 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: public: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: class value_compare 29761: : public std::binary_function 29761: { 29761: friend class multimap<_Key, _Tp, _Compare, _Alloc>; 29761: protected: 29761: _Compare comp; 29761: 29761: value_compare(_Compare __c) 29761: : comp(__c) { } 29761: 29761: public: 29761: bool operator()(const value_type& __x, const value_type& __y) const 29761: { return comp(__x.first, __y.first); } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: private: 29761: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind::other _Pair_alloc_type; 29761: 29761: typedef _Rb_tree, 29761: key_compare, _Pair_alloc_type> _Rep_type; 29761: 29761: _Rep_type _M_t; 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; 29761: 29761: public: 29761: 29761: 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: typedef typename _Rep_type::iterator iterator; 29761: typedef typename _Rep_type::const_iterator const_iterator; 29761: typedef typename _Rep_type::size_type size_type; 29761: typedef typename _Rep_type::difference_type difference_type; 29761: typedef typename _Rep_type::reverse_iterator reverse_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29761: 29761: 29761: using node_type = typename _Rep_type::node_type; 29761: # 187 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap() = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: multimap(const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) { } 29761: # 209 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap(const multimap&) = default; 29761: # 218 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap(multimap&&) = default; 29761: # 230 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap(initializer_list __l, 29761: const _Compare& __comp = _Compare(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29761: 29761: 29761: explicit 29761: multimap(const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) { } 29761: 29761: 29761: multimap(const multimap& __m, 29761: const __type_identity_t& __a) 29761: : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } 29761: 29761: 29761: multimap(multimap&& __m, const __type_identity_t& __a) 29761: noexcept(is_nothrow_copy_constructible<_Compare>::value 29761: && _Alloc_traits::_S_always_equal()) 29761: : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } 29761: 29761: 29761: multimap(initializer_list __l, const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29761: 29761: 29761: template 29761: multimap(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a) 29761: : _M_t(_Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 274 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: multimap(_InputIterator __first, _InputIterator __last) 29761: : _M_t() 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 290 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: multimap(_InputIterator __first, _InputIterator __last, 29761: const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Pair_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~multimap() = default; 29761: # 319 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap& 29761: operator=(const multimap&) = default; 29761: 29761: 29761: multimap& 29761: operator=(multimap&&) = default; 29761: # 337 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: multimap& 29761: operator=(initializer_list __l) 29761: { 29761: _M_t._M_assign_equal(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_t.get_allocator()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: begin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: end() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rend() noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cbegin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_iterator 29761: cend() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_t.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_t.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_t.max_size(); } 29761: # 495 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: iterator 29761: emplace(_Args&&... __args) 29761: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 29761: # 522 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { 29761: return _M_t._M_emplace_hint_equal(__pos, 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 544 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: insert(const value_type& __x) 29761: { return _M_t._M_insert_equal(__x); } 29761: 29761: 29761: 29761: 29761: iterator 29761: insert(value_type&& __x) 29761: { return _M_t._M_insert_equal(std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(_Pair&& __x) 29761: { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } 29761: # 583 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: 29761: insert(const_iterator __position, const value_type& __x) 29761: 29761: 29761: 29761: { return _M_t._M_insert_equal_(__position, __x); } 29761: 29761: 29761: 29761: 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 29761: 29761: template 29761: __enable_if_t::value, iterator> 29761: insert(const_iterator __position, _Pair&& __x) 29761: { 29761: return _M_t._M_emplace_hint_equal(__position, 29761: std::forward<_Pair>(__x)); 29761: } 29761: # 617 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 630 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { this->insert(__l.begin(), __l.end()); } 29761: 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_t.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __x) 29761: { return _M_t.extract(__x); } 29761: 29761: 29761: iterator 29761: insert(node_type&& __nh) 29761: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 29761: 29761: template 29761: friend struct std::_Rb_tree_merge_helper; 29761: 29761: template 29761: void 29761: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) 29761: { merge(__source); } 29761: # 707 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_t.erase(__position); } 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(iterator __position) 29761: { return _M_t.erase(__position); } 29761: # 744 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_t.erase(__x); } 29761: # 765 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_t.erase(__first, __last); } 29761: # 802 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: void 29761: swap(multimap& __x) 29761: noexcept(__is_nothrow_swappable<_Compare>::value) 29761: { _M_t.swap(__x._M_t); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { _M_t.clear(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: key_compare 29761: key_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: 29761: 29761: 29761: 29761: value_compare 29761: value_comp() const 29761: { return value_compare(_M_t.key_comp()); } 29761: # 848 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) 29761: { return _M_t._M_find_tr(__x); } 29761: # 872 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) 29761: { return _M_t._M_find_tr(__x); } 29761: # 890 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_t.count(__x); } 29761: 29761: 29761: template 29761: auto 29761: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29761: { return _M_t._M_count_tr(__x); } 29761: # 933 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: lower_bound(const key_type& __x) 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 958 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: const_iterator 29761: lower_bound(const key_type& __x) const 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) const 29761: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 978 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: iterator 29761: upper_bound(const key_type& __x) 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 998 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: const_iterator 29761: upper_bound(const key_type& __x) const 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) const 29761: -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 1025 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: # 1052 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) const 29761: -> decltype(pair( 29761: _M_t._M_equal_range_tr(__x))) 29761: { 29761: return pair( 29761: _M_t._M_equal_range_tr(__x)); 29761: } 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator==(const multimap<_K1, _T1, _C1, _A1>&, 29761: const multimap<_K1, _T1, _C1, _A1>&); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator<(const multimap<_K1, _T1, _C1, _A1>&, 29761: const multimap<_K1, _T1, _C1, _A1>&); 29761: 29761: }; 29761: 29761: 29761: 29761: template>, 29761: typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: multimap(_InputIterator, _InputIterator, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29761: _Compare, _Allocator>; 29761: 29761: template, 29761: typename _Allocator = allocator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: multimap(initializer_list>, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> multimap<_Key, _Tp, _Compare, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: multimap(_InputIterator, _InputIterator, _Allocator) 29761: -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, 29761: less<__iter_key_t<_InputIterator>>, _Allocator>; 29761: 29761: template> 29761: multimap(initializer_list>, _Allocator) 29761: -> multimap<_Key, _Tp, less<_Key>, _Allocator>; 29761: # 1132 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: inline bool 29761: operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __x._M_t == __y._M_t; } 29761: # 1170 "/usr/include/c++/14/bits/stl_multimap.h" 3 29761: template 29761: inline bool 29761: operator<(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __x._M_t < __y._M_t; } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: inline bool 29761: operator<=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, 29761: multimap<_Key, _Tp, _Compare, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: _Rb_tree_merge_helper, 29761: _Cmp2> 29761: { 29761: private: 29761: friend class std::multimap<_Key, _Val, _Cmp1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) 29761: { return __map._M_t; } 29761: 29761: static auto& 29761: _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) 29761: { return __map._M_t; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 65 "/usr/include/c++/14/map" 2 3 29761: # 79 "/usr/include/c++/14/map" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 80 "/usr/include/c++/14/map" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template> 29761: using map 29761: = std::map<_Key, _Tp, _Cmp, 29761: polymorphic_allocator>>; 29761: template> 29761: using multimap 29761: = std::multimap<_Key, _Tp, _Cmp, 29761: polymorphic_allocator>>; 29761: } 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29761: 29761: # 1 "/usr/include/c++/14/mutex" 1 3 29761: # 32 "/usr/include/c++/14/mutex" 3 29761: 29761: # 33 "/usr/include/c++/14/mutex" 3 29761: # 47 "/usr/include/c++/14/mutex" 3 29761: # 1 "/usr/include/c++/14/bits/std_mutex.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: # 43 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 59 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: class __mutex_base 29761: { 29761: protected: 29761: typedef __gthread_mutex_t __native_type; 29761: 29761: 29761: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, { 0 } } }; 29761: 29761: constexpr __mutex_base() noexcept = default; 29761: # 80 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: __mutex_base(const __mutex_base&) = delete; 29761: __mutex_base& operator=(const __mutex_base&) = delete; 29761: }; 29761: # 96 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: class mutex : private __mutex_base 29761: { 29761: public: 29761: typedef __native_type* native_handle_type; 29761: 29761: 29761: constexpr 29761: 29761: mutex() noexcept = default; 29761: ~mutex() = default; 29761: 29761: mutex(const mutex&) = delete; 29761: mutex& operator=(const mutex&) = delete; 29761: 29761: void 29761: lock() 29761: { 29761: int __e = __gthread_mutex_lock(&_M_mutex); 29761: 29761: 29761: if (__e) 29761: __throw_system_error(__e); 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: try_lock() noexcept 29761: { 29761: 29761: return !__gthread_mutex_trylock(&_M_mutex); 29761: } 29761: 29761: void 29761: unlock() 29761: { 29761: 29761: __gthread_mutex_unlock(&_M_mutex); 29761: } 29761: 29761: native_handle_type 29761: native_handle() noexcept 29761: { return &_M_mutex; } 29761: }; 29761: 29761: 29761: 29761: 29761: class __condvar 29761: { 29761: using timespec = __gthread_time_t; 29761: 29761: public: 29761: __condvar() noexcept 29761: { 29761: 29761: 29761: 29761: } 29761: 29761: ~__condvar() 29761: { 29761: int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); 29761: do { if (std::__is_constant_evaluated() && !bool(__e != 16)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: __condvar(const __condvar&) = delete; 29761: __condvar& operator=(const __condvar&) = delete; 29761: 29761: __gthread_cond_t* native_handle() noexcept { return &_M_cond; } 29761: 29761: 29761: void 29761: wait(mutex& __m) 29761: { 29761: int __e __attribute__((__unused__)) 29761: = __gthread_cond_wait(&_M_cond, __m.native_handle()); 29761: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: void 29761: wait_until(mutex& __m, timespec& __abs_time) 29761: { 29761: __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); 29761: } 29761: 29761: 29761: void 29761: wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) 29761: { 29761: pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, 29761: &__abs_time); 29761: } 29761: 29761: 29761: void 29761: notify_one() noexcept 29761: { 29761: int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); 29761: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: void 29761: notify_all() noexcept 29761: { 29761: int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); 29761: do { if (std::__is_constant_evaluated() && !bool(__e == 0)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: protected: 29761: 29761: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: struct defer_lock_t { explicit defer_lock_t() = default; }; 29761: 29761: 29761: struct try_to_lock_t { explicit try_to_lock_t() = default; }; 29761: 29761: 29761: 29761: struct adopt_lock_t { explicit adopt_lock_t() = default; }; 29761: 29761: 29761: inline constexpr defer_lock_t defer_lock { }; 29761: 29761: 29761: inline constexpr try_to_lock_t try_to_lock { }; 29761: 29761: 29761: inline constexpr adopt_lock_t adopt_lock { }; 29761: # 242 "/usr/include/c++/14/bits/std_mutex.h" 3 29761: template 29761: class lock_guard 29761: { 29761: public: 29761: typedef _Mutex mutex_type; 29761: 29761: [[__nodiscard__]] 29761: explicit lock_guard(mutex_type& __m) : _M_device(__m) 29761: { _M_device.lock(); } 29761: 29761: [[__nodiscard__]] 29761: lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) 29761: { } 29761: 29761: ~lock_guard() 29761: { _M_device.unlock(); } 29761: 29761: lock_guard(const lock_guard&) = delete; 29761: lock_guard& operator=(const lock_guard&) = delete; 29761: 29761: private: 29761: mutex_type& _M_device; 29761: }; 29761: 29761: 29761: 29761: } 29761: # 48 "/usr/include/c++/14/mutex" 2 3 29761: # 1 "/usr/include/c++/14/bits/unique_lock.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/unique_lock.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/unique_lock.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 1 3 29761: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 3 29761: # 1 "/usr/include/c++/14/cerrno" 1 3 29761: # 39 "/usr/include/c++/14/cerrno" 3 29761: 29761: # 40 "/usr/include/c++/14/cerrno" 3 29761: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/error_constants.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: enum class errc 29761: { 29761: address_family_not_supported = 97, 29761: address_in_use = 98, 29761: address_not_available = 99, 29761: already_connected = 106, 29761: argument_list_too_long = 7, 29761: argument_out_of_domain = 33, 29761: bad_address = 14, 29761: bad_file_descriptor = 9, 29761: 29761: 29761: bad_message = 74, 29761: 29761: 29761: broken_pipe = 32, 29761: connection_aborted = 103, 29761: connection_already_in_progress = 114, 29761: connection_refused = 111, 29761: connection_reset = 104, 29761: cross_device_link = 18, 29761: destination_address_required = 89, 29761: device_or_resource_busy = 16, 29761: directory_not_empty = 39, 29761: executable_format_error = 8, 29761: file_exists = 17, 29761: file_too_large = 27, 29761: filename_too_long = 36, 29761: function_not_supported = 38, 29761: host_unreachable = 113, 29761: 29761: 29761: identifier_removed = 43, 29761: 29761: 29761: illegal_byte_sequence = 84, 29761: inappropriate_io_control_operation = 25, 29761: interrupted = 4, 29761: invalid_argument = 22, 29761: invalid_seek = 29, 29761: io_error = 5, 29761: is_a_directory = 21, 29761: message_size = 90, 29761: network_down = 100, 29761: network_reset = 102, 29761: network_unreachable = 101, 29761: no_buffer_space = 105, 29761: no_child_process = 10, 29761: 29761: 29761: no_link = 67, 29761: 29761: 29761: no_lock_available = 37, 29761: 29761: 29761: no_message_available = 61, 29761: 29761: 29761: no_message = 42, 29761: no_protocol_option = 92, 29761: no_space_on_device = 28, 29761: 29761: 29761: no_stream_resources = 63, 29761: 29761: 29761: no_such_device_or_address = 6, 29761: no_such_device = 19, 29761: no_such_file_or_directory = 2, 29761: no_such_process = 3, 29761: not_a_directory = 20, 29761: not_a_socket = 88, 29761: 29761: 29761: not_a_stream = 60, 29761: 29761: 29761: not_connected = 107, 29761: not_enough_memory = 12, 29761: 29761: 29761: not_supported = 95, 29761: 29761: 29761: 29761: operation_canceled = 125, 29761: 29761: 29761: operation_in_progress = 115, 29761: operation_not_permitted = 1, 29761: operation_not_supported = 95, 29761: operation_would_block = 11, 29761: 29761: 29761: owner_dead = 130, 29761: 29761: 29761: permission_denied = 13, 29761: 29761: 29761: protocol_error = 71, 29761: 29761: 29761: protocol_not_supported = 93, 29761: read_only_file_system = 30, 29761: resource_deadlock_would_occur = 35, 29761: resource_unavailable_try_again = 11, 29761: result_out_of_range = 34, 29761: 29761: 29761: state_not_recoverable = 131, 29761: 29761: 29761: 29761: stream_timeout = 62, 29761: 29761: 29761: 29761: text_file_busy = 26, 29761: 29761: 29761: timed_out = 110, 29761: too_many_files_open_in_system = 23, 29761: too_many_files_open = 24, 29761: too_many_links = 31, 29761: too_many_symbolic_link_levels = 40, 29761: 29761: 29761: value_too_large = 75, 29761: 29761: 29761: 29761: 29761: wrong_protocol_type = 91 29761: }; 29761: 29761: 29761: } 29761: # 41 "/usr/include/c++/14/bits/unique_lock.h" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 59 "/usr/include/c++/14/bits/unique_lock.h" 3 29761: template 29761: class unique_lock 29761: { 29761: public: 29761: typedef _Mutex mutex_type; 29761: 29761: unique_lock() noexcept 29761: : _M_device(0), _M_owns(false) 29761: { } 29761: 29761: [[__nodiscard__]] 29761: explicit unique_lock(mutex_type& __m) 29761: : _M_device(std::__addressof(__m)), _M_owns(false) 29761: { 29761: lock(); 29761: _M_owns = true; 29761: } 29761: 29761: unique_lock(mutex_type& __m, defer_lock_t) noexcept 29761: : _M_device(std::__addressof(__m)), _M_owns(false) 29761: { } 29761: 29761: [[__nodiscard__]] 29761: unique_lock(mutex_type& __m, try_to_lock_t) 29761: : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) 29761: { } 29761: 29761: [[__nodiscard__]] 29761: unique_lock(mutex_type& __m, adopt_lock_t) noexcept 29761: : _M_device(std::__addressof(__m)), _M_owns(true) 29761: { 29761: 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: unique_lock(mutex_type& __m, 29761: const chrono::time_point<_Clock, _Duration>& __atime) 29761: : _M_device(std::__addressof(__m)), 29761: _M_owns(_M_device->try_lock_until(__atime)) 29761: { } 29761: 29761: template 29761: [[__nodiscard__]] 29761: unique_lock(mutex_type& __m, 29761: const chrono::duration<_Rep, _Period>& __rtime) 29761: : _M_device(std::__addressof(__m)), 29761: _M_owns(_M_device->try_lock_for(__rtime)) 29761: { } 29761: 29761: ~unique_lock() 29761: { 29761: if (_M_owns) 29761: unlock(); 29761: } 29761: 29761: unique_lock(const unique_lock&) = delete; 29761: unique_lock& operator=(const unique_lock&) = delete; 29761: 29761: unique_lock(unique_lock&& __u) noexcept 29761: : _M_device(__u._M_device), _M_owns(__u._M_owns) 29761: { 29761: __u._M_device = 0; 29761: __u._M_owns = false; 29761: } 29761: 29761: unique_lock& operator=(unique_lock&& __u) noexcept 29761: { 29761: if(_M_owns) 29761: unlock(); 29761: 29761: unique_lock(std::move(__u)).swap(*this); 29761: 29761: __u._M_device = 0; 29761: __u._M_owns = false; 29761: 29761: return *this; 29761: } 29761: 29761: void 29761: lock() 29761: { 29761: if (!_M_device) 29761: __throw_system_error(int(errc::operation_not_permitted)); 29761: else if (_M_owns) 29761: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29761: else 29761: { 29761: _M_device->lock(); 29761: _M_owns = true; 29761: } 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: try_lock() 29761: { 29761: if (!_M_device) 29761: __throw_system_error(int(errc::operation_not_permitted)); 29761: else if (_M_owns) 29761: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29761: else 29761: { 29761: _M_owns = _M_device->try_lock(); 29761: return _M_owns; 29761: } 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29761: { 29761: if (!_M_device) 29761: __throw_system_error(int(errc::operation_not_permitted)); 29761: else if (_M_owns) 29761: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29761: else 29761: { 29761: _M_owns = _M_device->try_lock_until(__atime); 29761: return _M_owns; 29761: } 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29761: { 29761: if (!_M_device) 29761: __throw_system_error(int(errc::operation_not_permitted)); 29761: else if (_M_owns) 29761: __throw_system_error(int(errc::resource_deadlock_would_occur)); 29761: else 29761: { 29761: _M_owns = _M_device->try_lock_for(__rtime); 29761: return _M_owns; 29761: } 29761: } 29761: 29761: void 29761: unlock() 29761: { 29761: if (!_M_owns) 29761: __throw_system_error(int(errc::operation_not_permitted)); 29761: else if (_M_device) 29761: { 29761: _M_device->unlock(); 29761: _M_owns = false; 29761: } 29761: } 29761: 29761: void 29761: swap(unique_lock& __u) noexcept 29761: { 29761: std::swap(_M_device, __u._M_device); 29761: std::swap(_M_owns, __u._M_owns); 29761: } 29761: 29761: mutex_type* 29761: release() noexcept 29761: { 29761: mutex_type* __ret = _M_device; 29761: _M_device = 0; 29761: _M_owns = false; 29761: return __ret; 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: owns_lock() const noexcept 29761: { return _M_owns; } 29761: 29761: explicit operator bool() const noexcept 29761: { return owns_lock(); } 29761: 29761: [[__nodiscard__]] 29761: mutex_type* 29761: mutex() const noexcept 29761: { return _M_device; } 29761: 29761: private: 29761: mutex_type* _M_device; 29761: bool _M_owns; 29761: }; 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept 29761: { __x.swap(__y); } 29761: 29761: 29761: } 29761: # 49 "/usr/include/c++/14/mutex" 2 3 29761: # 60 "/usr/include/c++/14/mutex" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 61 "/usr/include/c++/14/mutex" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 75 "/usr/include/c++/14/mutex" 3 29761: class __recursive_mutex_base 29761: { 29761: protected: 29761: typedef __gthread_recursive_mutex_t __native_type; 29761: 29761: __recursive_mutex_base(const __recursive_mutex_base&) = delete; 29761: __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; 29761: 29761: 29761: __native_type _M_mutex = { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { 0 } } }; 29761: 29761: __recursive_mutex_base() = default; 29761: # 99 "/usr/include/c++/14/mutex" 3 29761: }; 29761: # 111 "/usr/include/c++/14/mutex" 3 29761: class recursive_mutex : private __recursive_mutex_base 29761: { 29761: public: 29761: typedef __native_type* native_handle_type; 29761: 29761: recursive_mutex() = default; 29761: ~recursive_mutex() = default; 29761: 29761: recursive_mutex(const recursive_mutex&) = delete; 29761: recursive_mutex& operator=(const recursive_mutex&) = delete; 29761: 29761: void 29761: lock() 29761: { 29761: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 29761: 29761: 29761: if (__e) 29761: __throw_system_error(__e); 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: try_lock() noexcept 29761: { 29761: 29761: return !__gthread_recursive_mutex_trylock(&_M_mutex); 29761: } 29761: 29761: void 29761: unlock() 29761: { 29761: 29761: __gthread_recursive_mutex_unlock(&_M_mutex); 29761: } 29761: 29761: native_handle_type 29761: native_handle() noexcept 29761: { return &_M_mutex; } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: class __timed_mutex_impl 29761: { 29761: protected: 29761: template 29761: bool 29761: _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29761: { 29761: 29761: using __clock = chrono::steady_clock; 29761: 29761: 29761: 29761: 29761: auto __rt = chrono::duration_cast<__clock::duration>(__rtime); 29761: if (ratio_greater<__clock::period, _Period>()) 29761: ++__rt; 29761: return _M_try_lock_until(__clock::now() + __rt); 29761: } 29761: 29761: template 29761: bool 29761: _M_try_lock_until(const chrono::time_point& __atime) 29761: { 29761: auto __s = chrono::time_point_cast(__atime); 29761: auto __ns = chrono::duration_cast(__atime - __s); 29761: 29761: __gthread_time_t __ts = { 29761: static_cast(__s.time_since_epoch().count()), 29761: static_cast(__ns.count()) 29761: }; 29761: 29761: return static_cast<_Derived*>(this)->_M_timedlock(__ts); 29761: } 29761: 29761: 29761: template 29761: bool 29761: _M_try_lock_until(const chrono::time_point& __atime) 29761: { 29761: auto __s = chrono::time_point_cast(__atime); 29761: auto __ns = chrono::duration_cast(__atime - __s); 29761: 29761: __gthread_time_t __ts = { 29761: static_cast(__s.time_since_epoch().count()), 29761: static_cast(__ns.count()) 29761: }; 29761: 29761: return static_cast<_Derived*>(this)->_M_clocklock(1, 29761: __ts); 29761: } 29761: 29761: 29761: template 29761: bool 29761: _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: auto __now = _Clock::now(); 29761: do { 29761: auto __rtime = __atime - __now; 29761: if (_M_try_lock_for(__rtime)) 29761: return true; 29761: __now = _Clock::now(); 29761: } while (__atime > __now); 29761: return false; 29761: } 29761: }; 29761: # 240 "/usr/include/c++/14/mutex" 3 29761: class timed_mutex 29761: : private __mutex_base, public __timed_mutex_impl 29761: { 29761: public: 29761: typedef __native_type* native_handle_type; 29761: 29761: timed_mutex() = default; 29761: ~timed_mutex() = default; 29761: 29761: timed_mutex(const timed_mutex&) = delete; 29761: timed_mutex& operator=(const timed_mutex&) = delete; 29761: 29761: void 29761: lock() 29761: { 29761: int __e = __gthread_mutex_lock(&_M_mutex); 29761: 29761: 29761: if (__e) 29761: __throw_system_error(__e); 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: try_lock() noexcept 29761: { 29761: 29761: return !__gthread_mutex_trylock(&_M_mutex); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29761: { return _M_try_lock_for(__rtime); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29761: { return _M_try_lock_until(__atime); } 29761: 29761: void 29761: unlock() 29761: { 29761: 29761: __gthread_mutex_unlock(&_M_mutex); 29761: } 29761: 29761: native_handle_type 29761: native_handle() noexcept 29761: { return &_M_mutex; } 29761: 29761: private: 29761: friend class __timed_mutex_impl; 29761: 29761: bool 29761: _M_timedlock(const __gthread_time_t& __ts) 29761: { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } 29761: 29761: 29761: bool 29761: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 29761: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 29761: 29761: }; 29761: # 317 "/usr/include/c++/14/mutex" 3 29761: class recursive_timed_mutex 29761: : private __recursive_mutex_base, 29761: public __timed_mutex_impl 29761: { 29761: public: 29761: typedef __native_type* native_handle_type; 29761: 29761: recursive_timed_mutex() = default; 29761: ~recursive_timed_mutex() = default; 29761: 29761: recursive_timed_mutex(const recursive_timed_mutex&) = delete; 29761: recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; 29761: 29761: void 29761: lock() 29761: { 29761: int __e = __gthread_recursive_mutex_lock(&_M_mutex); 29761: 29761: 29761: if (__e) 29761: __throw_system_error(__e); 29761: } 29761: 29761: [[__nodiscard__]] 29761: bool 29761: try_lock() noexcept 29761: { 29761: 29761: return !__gthread_recursive_mutex_trylock(&_M_mutex); 29761: } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) 29761: { return _M_try_lock_for(__rtime); } 29761: 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) 29761: { return _M_try_lock_until(__atime); } 29761: 29761: void 29761: unlock() 29761: { 29761: 29761: __gthread_recursive_mutex_unlock(&_M_mutex); 29761: } 29761: 29761: native_handle_type 29761: native_handle() noexcept 29761: { return &_M_mutex; } 29761: 29761: private: 29761: friend class __timed_mutex_impl; 29761: 29761: bool 29761: _M_timedlock(const __gthread_time_t& __ts) 29761: { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } 29761: 29761: 29761: bool 29761: _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) 29761: { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } 29761: 29761: }; 29761: # 564 "/usr/include/c++/14/mutex" 3 29761: namespace __detail 29761: { 29761: 29761: template 29761: inline int 29761: __try_lock_impl(_Lockable& __l) 29761: { 29761: if (unique_lock<_Lockable> __lock{__l, try_to_lock}) 29761: { 29761: __lock.release(); 29761: return -1; 29761: } 29761: else 29761: return 0; 29761: } 29761: 29761: 29761: 29761: template 29761: inline int 29761: __try_lock_impl(_L0& __l0, _Lockables&... __lockables) 29761: { 29761: 29761: if constexpr ((is_same_v<_L0, _Lockables> && ...)) 29761: { 29761: constexpr int _Np = 1 + sizeof...(_Lockables); 29761: unique_lock<_L0> __locks[_Np] = { 29761: {__l0, defer_lock}, {__lockables, defer_lock}... 29761: }; 29761: for (int __i = 0; __i < _Np; ++__i) 29761: { 29761: if (!__locks[__i].try_lock()) 29761: { 29761: const int __failed = __i; 29761: while (__i--) 29761: __locks[__i].unlock(); 29761: return __failed; 29761: } 29761: } 29761: for (auto& __l : __locks) 29761: __l.release(); 29761: return -1; 29761: } 29761: else 29761: 29761: if (unique_lock<_L0> __lock{__l0, try_to_lock}) 29761: { 29761: int __idx = __detail::__try_lock_impl(__lockables...); 29761: if (__idx == -1) 29761: { 29761: __lock.release(); 29761: return -1; 29761: } 29761: return __idx + 1; 29761: } 29761: else 29761: return 0; 29761: } 29761: 29761: } 29761: # 636 "/usr/include/c++/14/mutex" 3 29761: template 29761: [[__nodiscard__]] 29761: inline int 29761: try_lock(_L1& __l1, _L2& __l2, _L3&... __l3) 29761: { 29761: return __detail::__try_lock_impl(__l1, __l2, __l3...); 29761: } 29761: 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: __lock_impl(int& __i, int __depth, _L0& __l0, _L1&... __l1) 29761: { 29761: while (__i >= __depth) 29761: { 29761: if (__i == __depth) 29761: { 29761: int __failed = 1; 29761: { 29761: unique_lock<_L0> __first(__l0); 29761: __failed += __detail::__try_lock_impl(__l1...); 29761: if (!__failed) 29761: { 29761: __i = -1; 29761: __first.release(); 29761: return; 29761: } 29761: } 29761: 29761: __gthread_yield(); 29761: 29761: constexpr auto __n = 1 + sizeof...(_L1); 29761: __i = (__depth + __failed) % __n; 29761: } 29761: else 29761: __detail::__lock_impl(__i, __depth + 1, __l1..., __l0); 29761: } 29761: } 29761: 29761: } 29761: # 696 "/usr/include/c++/14/mutex" 3 29761: template 29761: void 29761: lock(_L1& __l1, _L2& __l2, _L3&... __l3) 29761: { 29761: 29761: if constexpr (is_same_v<_L1, _L2> && (is_same_v<_L1, _L3> && ...)) 29761: { 29761: constexpr int _Np = 2 + sizeof...(_L3); 29761: unique_lock<_L1> __locks[] = { 29761: {__l1, defer_lock}, {__l2, defer_lock}, {__l3, defer_lock}... 29761: }; 29761: int __first = 0; 29761: do { 29761: __locks[__first].lock(); 29761: for (int __j = 1; __j < _Np; ++__j) 29761: { 29761: const int __idx = (__first + __j) % _Np; 29761: if (!__locks[__idx].try_lock()) 29761: { 29761: for (int __k = __j; __k != 0; --__k) 29761: __locks[(__first + __k - 1) % _Np].unlock(); 29761: __first = __idx; 29761: break; 29761: } 29761: } 29761: } while (!__locks[__first].owns_lock()); 29761: 29761: for (auto& __l : __locks) 29761: __l.release(); 29761: } 29761: else 29761: 29761: { 29761: int __i = 0; 29761: __detail::__lock_impl(__i, 0, __l1, __l2, __l3...); 29761: } 29761: } 29761: # 743 "/usr/include/c++/14/mutex" 3 29761: template 29761: class scoped_lock 29761: { 29761: public: 29761: 29761: [[nodiscard]] 29761: explicit scoped_lock(_MutexTypes&... __m) : _M_devices(std::tie(__m...)) 29761: { std::lock(__m...); } 29761: 29761: [[nodiscard]] 29761: explicit scoped_lock(adopt_lock_t, _MutexTypes&... __m) noexcept 29761: : _M_devices(std::tie(__m...)) 29761: { } 29761: 29761: ~scoped_lock() 29761: { std::apply([](auto&... __m) { (__m.unlock(), ...); }, _M_devices); } 29761: 29761: scoped_lock(const scoped_lock&) = delete; 29761: scoped_lock& operator=(const scoped_lock&) = delete; 29761: 29761: private: 29761: tuple<_MutexTypes&...> _M_devices; 29761: }; 29761: 29761: template<> 29761: class scoped_lock<> 29761: { 29761: public: 29761: explicit scoped_lock() = default; 29761: explicit scoped_lock(adopt_lock_t) noexcept { } 29761: ~scoped_lock() = default; 29761: 29761: scoped_lock(const scoped_lock&) = delete; 29761: scoped_lock& operator=(const scoped_lock&) = delete; 29761: }; 29761: 29761: template 29761: class scoped_lock<_Mutex> 29761: { 29761: public: 29761: using mutex_type = _Mutex; 29761: 29761: [[nodiscard]] 29761: explicit scoped_lock(mutex_type& __m) : _M_device(__m) 29761: { _M_device.lock(); } 29761: 29761: [[nodiscard]] 29761: explicit scoped_lock(adopt_lock_t, mutex_type& __m) noexcept 29761: : _M_device(__m) 29761: { } 29761: 29761: ~scoped_lock() 29761: { _M_device.unlock(); } 29761: 29761: scoped_lock(const scoped_lock&) = delete; 29761: scoped_lock& operator=(const scoped_lock&) = delete; 29761: 29761: private: 29761: mutex_type& _M_device; 29761: }; 29761: 29761: 29761: 29761: 29761: struct once_flag 29761: { 29761: constexpr once_flag() noexcept = default; 29761: 29761: 29761: once_flag(const once_flag&) = delete; 29761: 29761: once_flag& operator=(const once_flag&) = delete; 29761: 29761: private: 29761: 29761: 29761: __gthread_once_t _M_once = 0; 29761: 29761: struct _Prepare_execution; 29761: 29761: template 29761: friend void 29761: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: extern __thread void* __once_callable; 29761: extern __thread void (*__once_call)(); 29761: 29761: 29761: struct once_flag::_Prepare_execution 29761: { 29761: template 29761: explicit 29761: _Prepare_execution(_Callable& __c) 29761: { 29761: 29761: __once_callable = std::__addressof(__c); 29761: 29761: __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; 29761: } 29761: 29761: ~_Prepare_execution() 29761: { 29761: 29761: __once_callable = nullptr; 29761: __once_call = nullptr; 29761: } 29761: 29761: _Prepare_execution(const _Prepare_execution&) = delete; 29761: _Prepare_execution& operator=(const _Prepare_execution&) = delete; 29761: }; 29761: # 900 "/usr/include/c++/14/mutex" 3 29761: extern "C" void __once_proxy(void); 29761: 29761: 29761: template 29761: void 29761: call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) 29761: { 29761: 29761: auto __callable = [&] { 29761: std::__invoke(std::forward<_Callable>(__f), 29761: std::forward<_Args>(__args)...); 29761: }; 29761: 29761: once_flag::_Prepare_execution __exec(__callable); 29761: 29761: 29761: if (int __e = __gthread_once(&__once._M_once, &__once_proxy)) 29761: __throw_system_error(__e); 29761: } 29761: # 1021 "/usr/include/c++/14/mutex" 3 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: namespace rocksdb { 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: enum Tickers : uint32_t { 29761: 29761: 29761: 29761: 29761: BLOCK_CACHE_MISS = 0, 29761: 29761: 29761: 29761: 29761: BLOCK_CACHE_HIT, 29761: 29761: BLOCK_CACHE_ADD, 29761: 29761: BLOCK_CACHE_ADD_FAILURES, 29761: 29761: BLOCK_CACHE_INDEX_MISS, 29761: 29761: BLOCK_CACHE_INDEX_HIT, 29761: 29761: BLOCK_CACHE_INDEX_ADD, 29761: 29761: BLOCK_CACHE_INDEX_BYTES_INSERT, 29761: 29761: BLOCK_CACHE_FILTER_MISS, 29761: 29761: BLOCK_CACHE_FILTER_HIT, 29761: 29761: BLOCK_CACHE_FILTER_ADD, 29761: 29761: BLOCK_CACHE_FILTER_BYTES_INSERT, 29761: 29761: BLOCK_CACHE_DATA_MISS, 29761: 29761: BLOCK_CACHE_DATA_HIT, 29761: 29761: BLOCK_CACHE_DATA_ADD, 29761: 29761: BLOCK_CACHE_DATA_BYTES_INSERT, 29761: 29761: BLOCK_CACHE_BYTES_READ, 29761: 29761: BLOCK_CACHE_BYTES_WRITE, 29761: 29761: BLOCK_CACHE_COMPRESSION_DICT_MISS, 29761: BLOCK_CACHE_COMPRESSION_DICT_HIT, 29761: BLOCK_CACHE_COMPRESSION_DICT_ADD, 29761: BLOCK_CACHE_COMPRESSION_DICT_BYTES_INSERT, 29761: 29761: 29761: 29761: BLOCK_CACHE_ADD_REDUNDANT, 29761: 29761: 29761: BLOCK_CACHE_INDEX_ADD_REDUNDANT, 29761: 29761: 29761: BLOCK_CACHE_FILTER_ADD_REDUNDANT, 29761: 29761: 29761: BLOCK_CACHE_DATA_ADD_REDUNDANT, 29761: 29761: 29761: 29761: BLOCK_CACHE_COMPRESSION_DICT_ADD_REDUNDANT, 29761: 29761: 29761: SECONDARY_CACHE_HITS, 29761: 29761: 29761: SECONDARY_CACHE_FILTER_HITS, 29761: SECONDARY_CACHE_INDEX_HITS, 29761: SECONDARY_CACHE_DATA_HITS, 29761: 29761: 29761: COMPRESSED_SECONDARY_CACHE_DUMMY_HITS, 29761: COMPRESSED_SECONDARY_CACHE_HITS, 29761: COMPRESSED_SECONDARY_CACHE_PROMOTIONS, 29761: COMPRESSED_SECONDARY_CACHE_PROMOTION_SKIPS, 29761: 29761: 29761: BLOOM_FILTER_USEFUL, 29761: 29761: BLOOM_FILTER_FULL_POSITIVE, 29761: 29761: 29761: BLOOM_FILTER_FULL_TRUE_POSITIVE, 29761: 29761: 29761: 29761: BLOOM_FILTER_PREFIX_CHECKED, 29761: 29761: BLOOM_FILTER_PREFIX_USEFUL, 29761: 29761: 29761: 29761: BLOOM_FILTER_PREFIX_TRUE_POSITIVE, 29761: 29761: 29761: PERSISTENT_CACHE_HIT, 29761: 29761: PERSISTENT_CACHE_MISS, 29761: 29761: 29761: SIM_BLOCK_CACHE_HIT, 29761: 29761: SIM_BLOCK_CACHE_MISS, 29761: 29761: 29761: MEMTABLE_HIT, 29761: 29761: MEMTABLE_MISS, 29761: 29761: 29761: GET_HIT_L0, 29761: 29761: GET_HIT_L1, 29761: 29761: GET_HIT_L2_AND_UP, 29761: 29761: 29761: 29761: 29761: 29761: COMPACTION_KEY_DROP_NEWER_ENTRY, 29761: 29761: COMPACTION_KEY_DROP_OBSOLETE, 29761: COMPACTION_KEY_DROP_RANGE_DEL, 29761: COMPACTION_KEY_DROP_USER, 29761: COMPACTION_RANGE_DEL_DROP_OBSOLETE, 29761: 29761: COMPACTION_OPTIMIZED_DEL_DROP_OBSOLETE, 29761: 29761: COMPACTION_CANCELLED, 29761: 29761: 29761: NUMBER_KEYS_WRITTEN, 29761: 29761: NUMBER_KEYS_READ, 29761: 29761: NUMBER_KEYS_UPDATED, 29761: 29761: 29761: BYTES_WRITTEN, 29761: 29761: 29761: 29761: 29761: BYTES_READ, 29761: 29761: NUMBER_DB_SEEK, 29761: NUMBER_DB_NEXT, 29761: NUMBER_DB_PREV, 29761: 29761: NUMBER_DB_SEEK_FOUND, 29761: NUMBER_DB_NEXT_FOUND, 29761: NUMBER_DB_PREV_FOUND, 29761: 29761: 29761: ITER_BYTES_READ, 29761: 29761: NUMBER_ITER_SKIP, 29761: 29761: 29761: NUMBER_OF_RESEEKS_IN_ITERATION, 29761: 29761: NO_ITERATOR_CREATED, 29761: NO_ITERATOR_DELETED, 29761: 29761: NO_FILE_OPENS, 29761: NO_FILE_ERRORS, 29761: 29761: STALL_MICROS, 29761: 29761: 29761: DB_MUTEX_WAIT_MICROS, 29761: 29761: 29761: NUMBER_MULTIGET_CALLS, 29761: NUMBER_MULTIGET_KEYS_READ, 29761: NUMBER_MULTIGET_BYTES_READ, 29761: 29761: 29761: 29761: NUMBER_MULTIGET_KEYS_FOUND, 29761: 29761: NUMBER_MERGE_FAILURES, 29761: 29761: 29761: 29761: GET_UPDATES_SINCE_CALLS, 29761: WAL_FILE_SYNCED, 29761: WAL_FILE_BYTES, 29761: 29761: 29761: 29761: WRITE_DONE_BY_SELF, 29761: WRITE_DONE_BY_OTHER, 29761: WRITE_WITH_WAL, 29761: COMPACT_READ_BYTES, 29761: COMPACT_WRITE_BYTES, 29761: FLUSH_WRITE_BYTES, 29761: 29761: 29761: COMPACT_READ_BYTES_MARKED, 29761: COMPACT_READ_BYTES_PERIODIC, 29761: COMPACT_READ_BYTES_TTL, 29761: COMPACT_WRITE_BYTES_MARKED, 29761: COMPACT_WRITE_BYTES_PERIODIC, 29761: COMPACT_WRITE_BYTES_TTL, 29761: 29761: 29761: 29761: NUMBER_DIRECT_LOAD_TABLE_PROPERTIES, 29761: NUMBER_SUPERVERSION_ACQUIRES, 29761: NUMBER_SUPERVERSION_RELEASES, 29761: NUMBER_SUPERVERSION_CLEANUPS, 29761: 29761: 29761: NUMBER_BLOCK_COMPRESSED, 29761: NUMBER_BLOCK_DECOMPRESSED, 29761: 29761: 29761: 29761: BYTES_COMPRESSED_FROM, 29761: 29761: 29761: BYTES_COMPRESSED_TO, 29761: 29761: 29761: 29761: 29761: BYTES_COMPRESSION_BYPASSED, 29761: 29761: 29761: 29761: 29761: 29761: BYTES_COMPRESSION_REJECTED, 29761: 29761: 29761: NUMBER_BLOCK_COMPRESSION_BYPASSED, 29761: 29761: NUMBER_BLOCK_COMPRESSION_REJECTED, 29761: 29761: 29761: 29761: BYTES_DECOMPRESSED_FROM, 29761: 29761: 29761: BYTES_DECOMPRESSED_TO, 29761: 29761: 29761: MERGE_OPERATION_TOTAL_TIME, 29761: FILTER_OPERATION_TOTAL_TIME, 29761: COMPACTION_CPU_TOTAL_TIME, 29761: 29761: 29761: ROW_CACHE_HIT, 29761: ROW_CACHE_MISS, 29761: 29761: 29761: 29761: 29761: 29761: 29761: READ_AMP_ESTIMATE_USEFUL_BYTES, 29761: READ_AMP_TOTAL_READ_BYTES, 29761: 29761: 29761: NUMBER_RATE_LIMITER_DRAINS, 29761: 29761: 29761: 29761: BLOB_DB_NUM_PUT, 29761: 29761: BLOB_DB_NUM_WRITE, 29761: 29761: BLOB_DB_NUM_GET, 29761: 29761: BLOB_DB_NUM_MULTIGET, 29761: 29761: 29761: BLOB_DB_NUM_SEEK, 29761: 29761: BLOB_DB_NUM_NEXT, 29761: 29761: BLOB_DB_NUM_PREV, 29761: 29761: BLOB_DB_NUM_KEYS_WRITTEN, 29761: 29761: BLOB_DB_NUM_KEYS_READ, 29761: 29761: 29761: BLOB_DB_BYTES_WRITTEN, 29761: 29761: 29761: BLOB_DB_BYTES_READ, 29761: 29761: 29761: BLOB_DB_WRITE_INLINED, 29761: 29761: 29761: BLOB_DB_WRITE_INLINED_TTL, 29761: 29761: 29761: BLOB_DB_WRITE_BLOB, 29761: 29761: 29761: BLOB_DB_WRITE_BLOB_TTL, 29761: 29761: BLOB_DB_BLOB_FILE_BYTES_WRITTEN, 29761: 29761: BLOB_DB_BLOB_FILE_BYTES_READ, 29761: 29761: BLOB_DB_BLOB_FILE_SYNCED, 29761: 29761: 29761: BLOB_DB_BLOB_INDEX_EXPIRED_COUNT, 29761: 29761: 29761: BLOB_DB_BLOB_INDEX_EXPIRED_SIZE, 29761: 29761: 29761: BLOB_DB_BLOB_INDEX_EVICTED_COUNT, 29761: 29761: 29761: BLOB_DB_BLOB_INDEX_EVICTED_SIZE, 29761: 29761: 29761: BLOB_DB_GC_NUM_FILES, 29761: 29761: 29761: BLOB_DB_GC_NUM_NEW_FILES, 29761: 29761: BLOB_DB_GC_FAILURES, 29761: 29761: BLOB_DB_GC_NUM_KEYS_RELOCATED, 29761: 29761: BLOB_DB_GC_BYTES_RELOCATED, 29761: 29761: 29761: BLOB_DB_FIFO_NUM_FILES_EVICTED, 29761: 29761: 29761: BLOB_DB_FIFO_NUM_KEYS_EVICTED, 29761: 29761: 29761: BLOB_DB_FIFO_BYTES_EVICTED, 29761: 29761: 29761: 29761: BLOB_DB_CACHE_MISS, 29761: 29761: BLOB_DB_CACHE_HIT, 29761: 29761: BLOB_DB_CACHE_ADD, 29761: 29761: BLOB_DB_CACHE_ADD_FAILURES, 29761: 29761: BLOB_DB_CACHE_BYTES_READ, 29761: 29761: BLOB_DB_CACHE_BYTES_WRITE, 29761: 29761: 29761: 29761: 29761: TXN_PREPARE_MUTEX_OVERHEAD, 29761: 29761: TXN_OLD_COMMIT_MAP_MUTEX_OVERHEAD, 29761: 29761: TXN_DUPLICATE_KEY_OVERHEAD, 29761: 29761: TXN_SNAPSHOT_MUTEX_OVERHEAD, 29761: 29761: TXN_GET_TRY_AGAIN, 29761: 29761: 29761: 29761: FILES_MARKED_TRASH, 29761: 29761: FILES_DELETED_FROM_TRASH_QUEUE, 29761: 29761: 29761: FILES_DELETED_IMMEDIATELY, 29761: 29761: 29761: 29761: ERROR_HANDLER_BG_ERROR_COUNT, 29761: ERROR_HANDLER_BG_IO_ERROR_COUNT, 29761: ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT, 29761: ERROR_HANDLER_AUTORESUME_COUNT, 29761: ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT, 29761: ERROR_HANDLER_AUTORESUME_SUCCESS_COUNT, 29761: 29761: 29761: 29761: MEMTABLE_PAYLOAD_BYTES_AT_FLUSH, 29761: 29761: MEMTABLE_GARBAGE_BYTES_AT_FLUSH, 29761: 29761: 29761: VERIFY_CHECKSUM_READ_BYTES, 29761: 29761: 29761: BACKUP_READ_BYTES, 29761: BACKUP_WRITE_BYTES, 29761: 29761: 29761: REMOTE_COMPACT_READ_BYTES, 29761: REMOTE_COMPACT_WRITE_BYTES, 29761: 29761: 29761: HOT_FILE_READ_BYTES, 29761: WARM_FILE_READ_BYTES, 29761: COLD_FILE_READ_BYTES, 29761: HOT_FILE_READ_COUNT, 29761: WARM_FILE_READ_COUNT, 29761: COLD_FILE_READ_COUNT, 29761: 29761: 29761: LAST_LEVEL_READ_BYTES, 29761: LAST_LEVEL_READ_COUNT, 29761: NON_LAST_LEVEL_READ_BYTES, 29761: NON_LAST_LEVEL_READ_COUNT, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: LAST_LEVEL_SEEK_FILTERED, 29761: 29761: 29761: LAST_LEVEL_SEEK_FILTER_MATCH, 29761: 29761: 29761: LAST_LEVEL_SEEK_DATA, 29761: 29761: 29761: LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 29761: 29761: 29761: LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 29761: 29761: NON_LAST_LEVEL_SEEK_FILTERED, 29761: NON_LAST_LEVEL_SEEK_FILTER_MATCH, 29761: NON_LAST_LEVEL_SEEK_DATA, 29761: NON_LAST_LEVEL_SEEK_DATA_USEFUL_NO_FILTER, 29761: NON_LAST_LEVEL_SEEK_DATA_USEFUL_FILTER_MATCH, 29761: 29761: 29761: BLOCK_CHECKSUM_COMPUTE_COUNT, 29761: 29761: 29761: 29761: BLOCK_CHECKSUM_MISMATCH_COUNT, 29761: 29761: MULTIGET_COROUTINE_COUNT, 29761: 29761: 29761: READ_ASYNC_MICROS, 29761: 29761: ASYNC_READ_ERROR_COUNT, 29761: 29761: 29761: 29761: 29761: TABLE_OPEN_PREFETCH_TAIL_MISS, 29761: 29761: 29761: 29761: TABLE_OPEN_PREFETCH_TAIL_HIT, 29761: 29761: 29761: 29761: TIMESTAMP_FILTER_TABLE_CHECKED, 29761: 29761: TIMESTAMP_FILTER_TABLE_FILTERED, 29761: 29761: 29761: 29761: READAHEAD_TRIMMED, 29761: 29761: 29761: FIFO_MAX_SIZE_COMPACTIONS, 29761: FIFO_TTL_COMPACTIONS, 29761: 29761: 29761: PREFETCH_BYTES, 29761: 29761: 29761: PREFETCH_BYTES_USEFUL, 29761: 29761: 29761: PREFETCH_HITS, 29761: 29761: 29761: SST_FOOTER_CORRUPTION_COUNT, 29761: 29761: 29761: 29761: FILE_READ_CORRUPTION_RETRY_COUNT, 29761: FILE_READ_CORRUPTION_RETRY_SUCCESS_COUNT, 29761: 29761: TICKER_ENUM_MAX 29761: }; 29761: 29761: 29761: 29761: extern const std::vector> TickersNameMap; 29761: # 555 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: enum Histograms : uint32_t { 29761: DB_GET = 0, 29761: DB_WRITE, 29761: COMPACTION_TIME, 29761: COMPACTION_CPU_TIME, 29761: SUBCOMPACTION_SETUP_TIME, 29761: TABLE_SYNC_MICROS, 29761: COMPACTION_OUTFILE_SYNC_MICROS, 29761: WAL_FILE_SYNC_MICROS, 29761: MANIFEST_FILE_SYNC_MICROS, 29761: 29761: TABLE_OPEN_IO_MICROS, 29761: DB_MULTIGET, 29761: READ_BLOCK_COMPACTION_MICROS, 29761: READ_BLOCK_GET_MICROS, 29761: WRITE_RAW_BLOCK_MICROS, 29761: NUM_FILES_IN_SINGLE_COMPACTION, 29761: DB_SEEK, 29761: WRITE_STALL, 29761: 29761: SST_READ_MICROS, 29761: 29761: 29761: FILE_READ_FLUSH_MICROS, 29761: FILE_READ_COMPACTION_MICROS, 29761: FILE_READ_DB_OPEN_MICROS, 29761: 29761: 29761: FILE_READ_GET_MICROS, 29761: FILE_READ_MULTIGET_MICROS, 29761: FILE_READ_DB_ITERATOR_MICROS, 29761: FILE_READ_VERIFY_DB_CHECKSUM_MICROS, 29761: FILE_READ_VERIFY_FILE_CHECKSUMS_MICROS, 29761: 29761: 29761: SST_WRITE_MICROS, 29761: 29761: 29761: FILE_WRITE_FLUSH_MICROS, 29761: FILE_WRITE_COMPACTION_MICROS, 29761: FILE_WRITE_DB_OPEN_MICROS, 29761: 29761: 29761: NUM_SUBCOMPACTIONS_SCHEDULED, 29761: 29761: BYTES_PER_READ, 29761: BYTES_PER_WRITE, 29761: BYTES_PER_MULTIGET, 29761: 29761: COMPRESSION_TIMES_NANOS, 29761: DECOMPRESSION_TIMES_NANOS, 29761: 29761: 29761: READ_NUM_MERGE_OPERANDS, 29761: 29761: 29761: 29761: BLOB_DB_KEY_SIZE, 29761: 29761: BLOB_DB_VALUE_SIZE, 29761: 29761: 29761: BLOB_DB_WRITE_MICROS, 29761: 29761: BLOB_DB_GET_MICROS, 29761: 29761: BLOB_DB_MULTIGET_MICROS, 29761: 29761: 29761: BLOB_DB_SEEK_MICROS, 29761: 29761: BLOB_DB_NEXT_MICROS, 29761: 29761: BLOB_DB_PREV_MICROS, 29761: 29761: BLOB_DB_BLOB_FILE_WRITE_MICROS, 29761: 29761: BLOB_DB_BLOB_FILE_READ_MICROS, 29761: 29761: BLOB_DB_BLOB_FILE_SYNC_MICROS, 29761: 29761: BLOB_DB_COMPRESSION_MICROS, 29761: 29761: BLOB_DB_DECOMPRESSION_MICROS, 29761: 29761: FLUSH_TIME, 29761: SST_BATCH_SIZE, 29761: 29761: 29761: MULTIGET_IO_BATCH_SIZE, 29761: 29761: 29761: NUM_INDEX_AND_FILTER_BLOCKS_READ_PER_LEVEL, 29761: 29761: NUM_SST_READ_PER_LEVEL, 29761: 29761: NUM_LEVEL_READ_PER_MULTIGET, 29761: 29761: 29761: ERROR_HANDLER_AUTORESUME_RETRY_COUNT, 29761: 29761: 29761: ASYNC_READ_BYTES, 29761: POLL_WAIT_MICROS, 29761: 29761: 29761: PREFETCHED_BYTES_DISCARDED, 29761: 29761: 29761: ASYNC_PREFETCH_ABORT_MICROS, 29761: 29761: 29761: 29761: TABLE_OPEN_PREFETCH_TAIL_READ_BYTES, 29761: 29761: HISTOGRAM_ENUM_MAX 29761: }; 29761: 29761: extern const std::vector> HistogramsNameMap; 29761: 29761: struct HistogramData { 29761: double median; 29761: double percentile95; 29761: double percentile99; 29761: double average; 29761: double standard_deviation; 29761: 29761: 29761: double max = 0.0; 29761: uint64_t count = 0; 29761: uint64_t sum = 0; 29761: double min = 0.0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: enum StatsLevel : uint8_t { 29761: 29761: kDisableAll, 29761: 29761: kExceptTickers = kDisableAll, 29761: 29761: kExceptHistogramOrTimers, 29761: 29761: kExceptTimers, 29761: 29761: 29761: kExceptDetailedTimers, 29761: 29761: 29761: kExceptTimeForMutex, 29761: 29761: 29761: 29761: kAll, 29761: }; 29761: # 727 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: class Statistics : public Customizable { 29761: public: 29761: ~Statistics() override {} 29761: static const char* Type() { return "Statistics"; } 29761: static Status CreateFromString(const ConfigOptions& opts, 29761: const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: const char* Name() const override { return ""; } 29761: virtual uint64_t getTickerCount(uint32_t tickerType) const = 0; 29761: virtual void histogramData(uint32_t type, 29761: HistogramData* const data) const = 0; 29761: virtual std::string getHistogramString(uint32_t ) const { return ""; } 29761: virtual void recordTick(uint32_t tickerType, uint64_t count = 1) = 0; 29761: virtual void setTickerCount(uint32_t tickerType, uint64_t count) = 0; 29761: virtual uint64_t getAndResetTickerCount(uint32_t tickerType) = 0; 29761: virtual void reportTimeToHistogram(uint32_t histogramType, uint64_t time) { 29761: if (get_stats_level() <= StatsLevel::kExceptTimers) { 29761: return; 29761: } 29761: recordInHistogram(histogramType, time); 29761: } 29761: 29761: 29761: 29761: virtual void measureTime(uint32_t , uint64_t ) { 29761: 29761: 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29761: (static_cast ( 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: false 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: "false" 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/statistics.h" 29761: ; 29761: } 29761: virtual void recordInHistogram(uint32_t histogramType, uint64_t time) { 29761: 29761: 29761: 29761: 29761: measureTime(histogramType, time); 29761: } 29761: 29761: 29761: virtual Status Reset() { return Status::NotSupported("Not implemented"); } 29761: 29761: using Customizable::ToString; 29761: 29761: virtual std::string ToString() const { 29761: 29761: return std::string("ToString(): not implemented"); 29761: } 29761: 29761: virtual bool getTickerMap(std::map*) const { 29761: 29761: return false; 29761: } 29761: 29761: 29761: virtual bool HistEnabledForType(uint32_t type) const { 29761: return type < HISTOGRAM_ENUM_MAX; 29761: } 29761: void set_stats_level(StatsLevel sl) { 29761: stats_level_.store(sl, std::memory_order_relaxed); 29761: } 29761: StatsLevel get_stats_level() const { 29761: return stats_level_.load(std::memory_order_relaxed); 29761: } 29761: 29761: private: 29761: std::atomic stats_level_{kExceptDetailedTimers}; 29761: }; 29761: 29761: 29761: std::shared_ptr CreateDBStatistics(); 29761: 29761: } 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class HistogramBucketMapper { 29761: public: 29761: HistogramBucketMapper(); 29761: 29761: 29761: size_t IndexForValue(uint64_t value) const; 29761: 29761: 29761: size_t BucketCount() const { return bucketValues_.size(); } 29761: 29761: uint64_t LastValue() const { return maxBucketValue_; } 29761: 29761: uint64_t FirstValue() const { return minBucketValue_; } 29761: 29761: uint64_t BucketLimit(const size_t bucketNumber) const { 29761: 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29761: (static_cast ( 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29761: bucketNumber < BucketCount() 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29761: "bucketNumber < BucketCount()" 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/monitoring/histogram.h" 29761: ; 29761: return bucketValues_[bucketNumber]; 29761: } 29761: 29761: private: 29761: std::vector bucketValues_; 29761: uint64_t maxBucketValue_; 29761: uint64_t minBucketValue_; 29761: }; 29761: 29761: struct HistogramStat { 29761: HistogramStat(); 29761: ~HistogramStat() {} 29761: 29761: HistogramStat(const HistogramStat&) = delete; 29761: HistogramStat& operator=(const HistogramStat&) = delete; 29761: 29761: void Clear(); 29761: bool Empty() const; 29761: void Add(uint64_t value); 29761: void Merge(const HistogramStat& other); 29761: 29761: inline uint64_t min() const { return min_.load(std::memory_order_relaxed); } 29761: inline uint64_t max() const { return max_.load(std::memory_order_relaxed); } 29761: inline uint64_t num() const { return num_.load(std::memory_order_relaxed); } 29761: inline uint64_t sum() const { return sum_.load(std::memory_order_relaxed); } 29761: inline uint64_t sum_squares() const { 29761: return sum_squares_.load(std::memory_order_relaxed); 29761: } 29761: inline uint64_t bucket_at(size_t b) const { 29761: return buckets_[b].load(std::memory_order_relaxed); 29761: } 29761: 29761: double Median() const; 29761: double Percentile(double p) const; 29761: double Average() const; 29761: double StandardDeviation() const; 29761: void Data(HistogramData* const data) const; 29761: std::string ToString() const; 29761: 29761: 29761: 29761: 29761: std::atomic_uint_fast64_t min_; 29761: std::atomic_uint_fast64_t max_; 29761: std::atomic_uint_fast64_t num_; 29761: std::atomic_uint_fast64_t sum_; 29761: std::atomic_uint_fast64_t sum_squares_; 29761: std::atomic_uint_fast64_t buckets_[109]; 29761: const uint64_t num_buckets_; 29761: }; 29761: 29761: class Histogram { 29761: public: 29761: Histogram() {} 29761: virtual ~Histogram(){} 29761: 29761: virtual void Clear() = 0; 29761: virtual bool Empty() const = 0; 29761: virtual void Add(uint64_t value) = 0; 29761: virtual void Merge(const Histogram&) = 0; 29761: 29761: virtual std::string ToString() const = 0; 29761: virtual const char* Name() const = 0; 29761: virtual uint64_t min() const = 0; 29761: virtual uint64_t max() const = 0; 29761: virtual uint64_t num() const = 0; 29761: virtual double Median() const = 0; 29761: virtual double Percentile(double p) const = 0; 29761: virtual double Average() const = 0; 29761: virtual double StandardDeviation() const = 0; 29761: virtual void Data(HistogramData* const data) const = 0; 29761: }; 29761: 29761: class HistogramImpl : public Histogram { 29761: public: 29761: HistogramImpl() { Clear(); } 29761: 29761: HistogramImpl(const HistogramImpl&) = delete; 29761: HistogramImpl& operator=(const HistogramImpl&) = delete; 29761: 29761: void Clear() override; 29761: bool Empty() const override; 29761: void Add(uint64_t value) override; 29761: void Merge(const Histogram& other) override; 29761: void Merge(const HistogramImpl& other); 29761: 29761: std::string ToString() const override; 29761: const char* Name() const override { return "HistogramImpl"; } 29761: uint64_t min() const override { return stats_.min(); } 29761: uint64_t max() const override { return stats_.max(); } 29761: uint64_t num() const override { return stats_.num(); } 29761: double Median() const override; 29761: double Percentile(double p) const override; 29761: double Average() const override; 29761: double StandardDeviation() const override; 29761: void Data(HistogramData* const data) const override; 29761: 29761: virtual ~HistogramImpl() {} 29761: 29761: inline HistogramStat& TEST_GetStats() { return stats_; } 29761: 29761: private: 29761: HistogramStat stats_; 29761: std::mutex mutex_; 29761: }; 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/likely.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/port/likely.h" 29761: 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 2 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/lang.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/port/lang.h" 29761: constexpr bool kMustFreeHeapAllocations = false; 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 2 29761: 29761: 29761: static_assert(true, "Semicolon required"); 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: template 29761: inline T BottomNBits(T v, int nbits) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: (static_cast ( 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: nbits >= 0 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: "nbits >= 0" 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: ; 29761: 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: (static_cast ( 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: nbits < int{8 * sizeof(T)} 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: "nbits < int{8 * sizeof(T)}" 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: ; 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: return static_cast(v & ((T{1} << nbits) - 1)); 29761: } 29761: 29761: 29761: 29761: template 29761: inline int FloorLog2(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: (static_cast ( 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: v > 0 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: "v > 0" 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: ; 29761: # 74 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29761: if (sizeof(T) <= sizeof(unsigned int)) { 29761: int lz = __builtin_clz(static_cast(v)); 29761: return int{sizeof(unsigned int)} * 8 - 1 - lz; 29761: } else if (sizeof(T) <= sizeof(unsigned long)) { 29761: int lz = __builtin_clzl(static_cast(v)); 29761: return int{sizeof(unsigned long)} * 8 - 1 - lz; 29761: } else { 29761: int lz = __builtin_clzll(static_cast(v)); 29761: return int{sizeof(unsigned long long)} * 8 - 1 - lz; 29761: } 29761: 29761: } 29761: 29761: 29761: template 29761: constexpr int ConstexprFloorLog2(T v) { 29761: 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: int rv = 0; 29761: while (v > T{1}) { 29761: ++rv; 29761: v >>= 1; 29761: } 29761: return rv; 29761: } 29761: 29761: 29761: template 29761: inline int CountTrailingZeroBits(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: (static_cast ( 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: v != 0 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: "v != 0" 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: ; 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29761: if (sizeof(T) <= sizeof(unsigned int)) { 29761: return __builtin_ctz(static_cast(v)); 29761: } else if (sizeof(T) <= sizeof(unsigned long)) { 29761: return __builtin_ctzl(static_cast(v)); 29761: } else { 29761: return __builtin_ctzll(static_cast(v)); 29761: } 29761: 29761: } 29761: # 172 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: template 29761: inline int BitsSetToOne(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: # 209 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29761: if (sizeof(T) < sizeof(unsigned int)) { 29761: 29761: constexpr auto mm = 8 * sizeof(unsigned int) - 1; 29761: 29761: constexpr unsigned int m = (1U << ((8 * sizeof(T)) & mm)) - 1; 29761: return __builtin_popcount(static_cast(v) & m); 29761: } else if (sizeof(T) == sizeof(unsigned int)) { 29761: return __builtin_popcount(static_cast(v)); 29761: } else if (sizeof(T) <= sizeof(unsigned long)) { 29761: return __builtin_popcountl(static_cast(v)); 29761: } else { 29761: return __builtin_popcountll(static_cast(v)); 29761: } 29761: 29761: } 29761: 29761: template 29761: inline int BitParity(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: 29761: 29761: 29761: 29761: 29761: static_assert(sizeof(T) <= sizeof(unsigned long long), "type too big"); 29761: if (sizeof(T) <= sizeof(unsigned int)) { 29761: 29761: return __builtin_parity(static_cast(v)); 29761: } else if (sizeof(T) <= sizeof(unsigned long)) { 29761: return __builtin_parityl(static_cast(v)); 29761: } else { 29761: return __builtin_parityll(static_cast(v)); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline T EndianSwapValue(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: if (sizeof(T) == 2) { 29761: return static_cast(__builtin_bswap16(static_cast(v))); 29761: } else if (sizeof(T) == 4) { 29761: return static_cast(__builtin_bswap32(static_cast(v))); 29761: } else if (sizeof(T) == 8) { 29761: return static_cast(__builtin_bswap64(static_cast(v))); 29761: } 29761: 29761: 29761: T ret_val = 0; 29761: for (std::size_t i = 0; i < sizeof(T); ++i) { 29761: ret_val |= ((v >> (8 * i)) & 0xff) << (8 * (sizeof(T) - 1 - i)); 29761: } 29761: return ret_val; 29761: } 29761: 29761: 29761: template 29761: inline T ReverseBits(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: 29761: T r = EndianSwapValue(v); 29761: const T kHighestByte = T{1} << ((sizeof(T) - 1) * 8); 29761: const T kEveryByte = kHighestByte | (kHighestByte / 255); 29761: 29761: r = ((r & (kEveryByte * 0x0f)) << 4) | ((r >> 4) & (kEveryByte * 0x0f)); 29761: r = ((r & (kEveryByte * 0x33)) << 2) | ((r >> 2) & (kEveryByte * 0x33)); 29761: r = ((r & (kEveryByte * 0x55)) << 1) | ((r >> 1) & (kEveryByte * 0x55)); 29761: 29761: return r; 29761: } 29761: # 317 "/build/reproducible-path/rocksdb-9.10.0/util/math.h" 29761: template 29761: inline T DownwardInvolution(T v) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: static_assert(sizeof(T) <= 8, "only supported up to 64 bits"); 29761: 29761: uint64_t r = static_cast(v); 29761: if constexpr (sizeof(T) > 4) { 29761: r ^= r >> 32; 29761: } 29761: if constexpr (sizeof(T) > 2) { 29761: r ^= (r & 0xffff0000ffff0000U) >> 16; 29761: } 29761: if constexpr (sizeof(T) > 1) { 29761: r ^= (r & 0xff00ff00ff00ff00U) >> 8; 29761: } 29761: r ^= (r & 0xf0f0f0f0f0f0f0f0U) >> 4; 29761: r ^= (r & 0xccccccccccccccccU) >> 2; 29761: r ^= (r & 0xaaaaaaaaaaaaaaaaU) >> 1; 29761: return static_cast(r); 29761: } 29761: 29761: 29761: 29761: template 29761: inline std::conditional_t BitwiseAnd(A a, B b) { 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(std::is_integral_v, "non-integral type"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: static_assert(!std::is_reference_v, "use std::remove_reference_t"); 29761: using Smaller = std::conditional_t; 29761: return static_cast(a & b); 29761: } 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/random" 1 3 29761: # 32 "/usr/include/c++/14/random" 3 29761: 29761: # 33 "/usr/include/c++/14/random" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cmath" 1 3 29761: # 39 "/usr/include/c++/14/cmath" 3 29761: 29761: # 40 "/usr/include/c++/14/cmath" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/math.h" 1 3 4 29761: # 27 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 28 "/usr/include/math.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 34 "/usr/include/math.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libm-simd-decl-stubs.h" 1 3 4 29761: # 28 "/usr/include/arm-linux-gnueabihf/bits/math-vector.h" 2 3 4 29761: # 41 "/usr/include/math.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/floatn.h" 1 3 4 29761: # 44 "/usr/include/math.h" 2 3 4 29761: # 152 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/flt-eval-method.h" 1 3 4 29761: # 153 "/usr/include/math.h" 2 3 4 29761: # 163 "/usr/include/math.h" 3 4 29761: typedef float float_t; 29761: typedef double double_t; 29761: # 204 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-logb.h" 1 3 4 29761: # 205 "/usr/include/math.h" 2 3 4 29761: # 247 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/fp-fast.h" 1 3 4 29761: # 248 "/usr/include/math.h" 2 3 4 29761: 29761: 29761: 29761: enum 29761: { 29761: FP_INT_UPWARD = 29761: 29761: 0, 29761: FP_INT_DOWNWARD = 29761: 29761: 1, 29761: FP_INT_TOWARDZERO = 29761: 29761: 2, 29761: FP_INT_TONEARESTFROMZERO = 29761: 29761: 3, 29761: FP_INT_TONEAREST = 29761: 29761: 4, 29761: }; 29761: # 312 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29761: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29761: extern int __fpclassify (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __signbit (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern int __isinf (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __finite (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __isnan (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __iseqsig (double __x, double __y) noexcept (true); 29761: 29761: 29761: extern int __issignaling (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: # 313 "/usr/include/math.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); 29761: 29761: extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); 29761: 29761: extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); 29761: 29761: extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); 29761: 29761: 29761: extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); 29761: 29761: extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); 29761: 29761: extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); 29761: 29761: extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); 29761: 29761: extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); 29761: 29761: extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); 29761: 29761: extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); 29761: 29761: 29761: extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); 29761: 29761: 29761: extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); 29761: 29761: 29761: extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); 29761: 29761: 29761: extern double exp2m1 (double __x) noexcept (true); extern double __exp2m1 (double __x) noexcept (true); 29761: 29761: 29761: extern double exp10m1 (double __x) noexcept (true); extern double __exp10m1 (double __x) noexcept (true); 29761: 29761: 29761: extern double log2p1 (double __x) noexcept (true); extern double __log2p1 (double __x) noexcept (true); 29761: 29761: 29761: extern double log10p1 (double __x) noexcept (true); extern double __log10p1 (double __x) noexcept (true); 29761: 29761: 29761: extern double logp1 (double __x) noexcept (true); extern double __logp1 (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); 29761: 29761: 29761: extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); 29761: 29761: 29761: extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); 29761: 29761: 29761: extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); 29761: 29761: 29761: extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); 29761: # 198 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern int finite (double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); 29761: 29761: 29761: 29761: extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); 29761: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); 29761: extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); 29761: extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); 29761: extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); 29761: extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); 29761: extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); 29761: extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); 29761: extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); 29761: 29761: 29761: extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); 29761: 29761: extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); 29761: 29761: extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); 29761: 29761: 29761: 29761: extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); 29761: __extension__ 29761: extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); 29761: 29761: 29761: 29761: extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); 29761: 29761: 29761: 29761: extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfp (double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfp (double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpx (double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpx (double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalize (double *__cx, const double *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern double fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int totalorder (const double *__x, const double *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermag (const double *__x, const double *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); 29761: 29761: 29761: extern int setpayload (double *__x, double __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsig (double *__x, double __payload) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); 29761: # 314 "/usr/include/math.h" 2 3 4 29761: # 329 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29761: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29761: extern int __fpclassifyf (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __signbitf (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern int __isinff (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __finitef (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __isnanf (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __iseqsigf (float __x, float __y) noexcept (true); 29761: 29761: 29761: extern int __issignalingf (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: # 330 "/usr/include/math.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); 29761: 29761: extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); 29761: 29761: extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); 29761: 29761: extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); 29761: 29761: 29761: extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); 29761: 29761: extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); 29761: 29761: extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); 29761: 29761: extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); 29761: 29761: extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); 29761: 29761: extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); 29761: 29761: extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); 29761: 29761: 29761: extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); 29761: 29761: 29761: extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); 29761: 29761: 29761: extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); 29761: 29761: 29761: extern float exp2m1f (float __x) noexcept (true); extern float __exp2m1f (float __x) noexcept (true); 29761: 29761: 29761: extern float exp10m1f (float __x) noexcept (true); extern float __exp10m1f (float __x) noexcept (true); 29761: 29761: 29761: extern float log2p1f (float __x) noexcept (true); extern float __log2p1f (float __x) noexcept (true); 29761: 29761: 29761: extern float log10p1f (float __x) noexcept (true); extern float __log10p1f (float __x) noexcept (true); 29761: 29761: 29761: extern float logp1f (float __x) noexcept (true); extern float __logp1f (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); 29761: 29761: 29761: extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); 29761: 29761: 29761: extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); 29761: 29761: 29761: extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); 29761: 29761: 29761: extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); 29761: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern int isinff (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int finitef (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); 29761: 29761: 29761: 29761: extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); 29761: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern int isnanf (float __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 29761: extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); 29761: extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); 29761: extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); 29761: extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); 29761: extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); 29761: extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); 29761: extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); 29761: extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); 29761: 29761: 29761: extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); 29761: 29761: extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); 29761: 29761: extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); 29761: 29761: 29761: 29761: extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); 29761: __extension__ 29761: extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); 29761: 29761: 29761: 29761: extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); 29761: 29761: 29761: 29761: extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf (float __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf (float __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf (float __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalizef (float *__cx, const float *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern float fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int totalorderf (const float *__x, const float *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermagf (const float *__x, const float *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); 29761: 29761: 29761: extern int setpayloadf (float *__x, float __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsigf (float *__x, float __payload) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); 29761: # 331 "/usr/include/math.h" 2 3 4 29761: # 398 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 1 3 4 29761: # 20 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-helper-functions.h" 3 4 29761: extern int __fpclassifyl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __signbitl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern int __isinfl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __finitel (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __isnanl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern int __iseqsigl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern int __issignalingl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: # 399 "/usr/include/math.h" 2 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); 29761: 29761: extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); 29761: 29761: extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); 29761: 29761: extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); 29761: 29761: 29761: extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); 29761: 29761: extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); 29761: 29761: extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); 29761: 29761: extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); 29761: 29761: extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 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) 29761: ; 29761: 29761: 29761: 29761: 29761: extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); 29761: 29761: extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); 29761: 29761: extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); 29761: 29761: 29761: extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); 29761: 29761: 29761: extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); 29761: 29761: 29761: 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))); 29761: 29761: 29761: 29761: extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double exp2m1l (long double __x) noexcept (true); extern long double __exp2m1l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double exp10m1l (long double __x) noexcept (true); extern long double __exp10m1l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double log2p1l (long double __x) noexcept (true); extern long double __log2p1l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double log10p1l (long double __x) noexcept (true); extern long double __log10p1l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double logp1l (long double __x) noexcept (true); extern long double __logp1l (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); 29761: 29761: 29761: extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); 29761: 29761: 29761: extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); 29761: # 192 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern int isinfl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int finitel (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); 29761: # 228 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern int isnanl (long double __value) noexcept (true) 29761: __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 29761: extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); 29761: extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); 29761: extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); 29761: extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); 29761: extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); 29761: extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); 29761: extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); 29761: extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); 29761: 29761: 29761: extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); 29761: 29761: extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); 29761: 29761: extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: 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); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); 29761: __extension__ 29761: extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); 29761: 29761: 29761: 29761: extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: 29761: extern long double fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 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); 29761: 29761: 29761: 29761: 29761: extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpl (long double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern long double fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern long double fmaximum_numl (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__)); 29761: 29761: 29761: extern long double fminimum_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__)); 29761: 29761: 29761: extern long double fmaximum_magl (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__)); 29761: 29761: 29761: extern long double fminimum_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__)); 29761: 29761: 29761: extern long double fmaximum_mag_numl (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__)); 29761: 29761: 29761: extern long double fminimum_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__)); 29761: 29761: 29761: 29761: 29761: extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); 29761: 29761: 29761: extern int setpayloadl (long double *__x, long double __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); 29761: # 400 "/usr/include/math.h" 2 3 4 29761: # 450 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 exp2m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2m1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 exp10m1f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10m1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 log2p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log2p1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 log10p1f32 (_Float32 __x) noexcept (true); extern _Float32 __log10p1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 logp1f32 (_Float32 __x) noexcept (true); extern _Float32 __logp1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: 29761: 29761: extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); 29761: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); 29761: extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); 29761: extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); 29761: extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); 29761: extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); 29761: extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); 29761: extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); 29761: extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); 29761: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); 29761: 29761: extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); 29761: __extension__ 29761: extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32 fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); 29761: 29761: 29761: extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); 29761: # 451 "/usr/include/math.h" 2 3 4 29761: # 467 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 exp2m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2m1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 exp10m1f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10m1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 log2p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log2p1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 log10p1f64 (_Float64 __x) noexcept (true); extern _Float64 __log10p1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 logp1f64 (_Float64 __x) noexcept (true); extern _Float64 __logp1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); 29761: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); 29761: extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); 29761: extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); 29761: extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); 29761: extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); 29761: extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); 29761: extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); 29761: extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); 29761: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); 29761: 29761: extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); 29761: __extension__ 29761: extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float64 fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); 29761: 29761: 29761: extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); 29761: # 468 "/usr/include/math.h" 2 3 4 29761: # 501 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 1 3 4 29761: # 53 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); 29761: 29761: 29761: extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); 29761: 29761: 29761: extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x exp2m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2m1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x exp10m1f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10m1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x log2p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log2p1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x log10p1f32x (_Float32x __x) noexcept (true); extern _Float32x __log10p1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x logp1f32x (_Float32x __x) noexcept (true); extern _Float32x __logp1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: # 213 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); 29761: # 235 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); 29761: extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); 29761: extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); 29761: extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); 29761: extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); 29761: extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); 29761: extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); 29761: extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); 29761: # 267 "/usr/include/arm-linux-gnueabihf/bits/mathcalls.h" 3 4 29761: extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); 29761: 29761: extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); 29761: 29761: 29761: 29761: extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); 29761: __extension__ 29761: extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); 29761: __extension__ 29761: extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: 29761: extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: extern __intmax_t fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __intmax_t fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: 29761: 29761: extern __uintmax_t ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) 29761: ; 29761: 29761: 29761: extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern _Float32x fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) 29761: 29761: __attribute__ ((__pure__)); 29761: 29761: 29761: extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); 29761: 29761: 29761: extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 29761: 29761: 29761: extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); 29761: # 502 "/usr/include/math.h" 2 3 4 29761: # 566 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern float fadd (double __x, double __y) noexcept (true); 29761: 29761: 29761: extern float fdiv (double __x, double __y) noexcept (true); 29761: 29761: 29761: extern float ffma (double __x, double __y, double __z) noexcept (true); 29761: 29761: 29761: extern float fmul (double __x, double __y) noexcept (true); 29761: 29761: 29761: extern float fsqrt (double __x) noexcept (true); 29761: 29761: 29761: extern float fsub (double __x, double __y) noexcept (true); 29761: # 567 "/usr/include/math.h" 2 3 4 29761: # 587 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern float faddl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern float fdivl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); 29761: 29761: 29761: extern float fmull (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern float fsqrtl (long double __x) noexcept (true); 29761: 29761: 29761: extern float fsubl (long double __x, long double __y) noexcept (true); 29761: # 588 "/usr/include/math.h" 2 3 4 29761: # 616 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern double daddl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern double ddivl (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); 29761: 29761: 29761: extern double dmull (long double __x, long double __y) noexcept (true); 29761: 29761: 29761: extern double dsqrtl (long double __x) noexcept (true); 29761: 29761: 29761: extern double dsubl (long double __x, long double __y) noexcept (true); 29761: # 617 "/usr/include/math.h" 2 3 4 29761: # 697 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); 29761: 29761: 29761: extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); 29761: 29761: 29761: extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); 29761: # 698 "/usr/include/math.h" 2 3 4 29761: # 707 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29761: 29761: 29761: extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: # 708 "/usr/include/math.h" 2 3 4 29761: # 747 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mathcalls-narrow.h" 3 4 29761: extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); 29761: 29761: 29761: extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: 29761: 29761: extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); 29761: 29761: 29761: extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); 29761: # 748 "/usr/include/math.h" 2 3 4 29761: # 854 "/usr/include/math.h" 3 4 29761: extern int signgam; 29761: # 934 "/usr/include/math.h" 3 4 29761: enum 29761: { 29761: FP_NAN = 29761: 29761: 0, 29761: FP_INFINITE = 29761: 29761: 1, 29761: FP_ZERO = 29761: 29761: 2, 29761: FP_SUBNORMAL = 29761: 29761: 3, 29761: FP_NORMAL = 29761: 29761: 4 29761: }; 29761: # 1055 "/usr/include/math.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/iscanonical.h" 1 3 4 29761: # 1056 "/usr/include/math.h" 2 3 4 29761: # 1067 "/usr/include/math.h" 3 4 29761: extern "C++" { 29761: inline int issignaling (float __val) { return __issignalingf (__val); } 29761: inline int issignaling (double __val) { return __issignaling (__val); } 29761: inline int 29761: issignaling (long double __val) 29761: { 29761: 29761: return __issignaling (__val); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 1098 "/usr/include/math.h" 3 4 29761: extern "C++" { 29761: # 1129 "/usr/include/math.h" 3 4 29761: template inline bool 29761: iszero (__T __val) 29761: { 29761: return __val == 0; 29761: } 29761: 29761: } 29761: # 1364 "/usr/include/math.h" 3 4 29761: extern "C++" { 29761: template struct __iseqsig_type; 29761: 29761: template<> struct __iseqsig_type 29761: { 29761: static int __call (float __x, float __y) throw () 29761: { 29761: return __iseqsigf (__x, __y); 29761: } 29761: }; 29761: 29761: template<> struct __iseqsig_type 29761: { 29761: static int __call (double __x, double __y) throw () 29761: { 29761: return __iseqsig (__x, __y); 29761: } 29761: }; 29761: 29761: template<> struct __iseqsig_type 29761: { 29761: static int __call (long double __x, long double __y) throw () 29761: { 29761: 29761: 29761: 29761: return __iseqsig (__x, __y); 29761: 29761: } 29761: }; 29761: 29761: 29761: template<> struct __iseqsig_type<_Float32> 29761: { 29761: static int __call (_Float32 __x, _Float32 __y) throw () 29761: { 29761: return __iseqsigf (__x, __y); 29761: } 29761: }; 29761: 29761: 29761: 29761: template<> struct __iseqsig_type<_Float64> 29761: { 29761: static int __call (_Float64 __x, _Float64 __y) throw () 29761: { 29761: return __iseqsig (__x, __y); 29761: } 29761: }; 29761: # 1432 "/usr/include/math.h" 3 4 29761: template<> struct __iseqsig_type<_Float32x> 29761: { 29761: static int __call (_Float32x __x, _Float32x __y) throw () 29761: { 29761: return __iseqsig (__x, __y); 29761: } 29761: }; 29761: # 1455 "/usr/include/math.h" 3 4 29761: template 29761: inline int 29761: iseqsig (_T1 __x, _T2 __y) throw () 29761: { 29761: 29761: typedef decltype (((__x) + (__y) + 0.0f)) _T3; 29761: 29761: 29761: 29761: return __iseqsig_type<_T3>::__call (__x, __y); 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 48 "/usr/include/c++/14/cmath" 2 3 29761: # 56 "/usr/include/c++/14/cmath" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 57 "/usr/include/c++/14/cmath" 2 3 29761: # 83 "/usr/include/c++/14/cmath" 3 29761: extern "C++" 29761: { 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: using ::acos; 29761: 29761: 29761: inline constexpr float 29761: acos(float __x) 29761: { return __builtin_acosf(__x); } 29761: 29761: inline constexpr long double 29761: acos(long double __x) 29761: { return __builtin_acosl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: acos(_Tp __x) 29761: { return __builtin_acos(__x); } 29761: 29761: using ::asin; 29761: 29761: 29761: inline constexpr float 29761: asin(float __x) 29761: { return __builtin_asinf(__x); } 29761: 29761: inline constexpr long double 29761: asin(long double __x) 29761: { return __builtin_asinl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: asin(_Tp __x) 29761: { return __builtin_asin(__x); } 29761: 29761: using ::atan; 29761: 29761: 29761: inline constexpr float 29761: atan(float __x) 29761: { return __builtin_atanf(__x); } 29761: 29761: inline constexpr long double 29761: atan(long double __x) 29761: { return __builtin_atanl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: atan(_Tp __x) 29761: { return __builtin_atan(__x); } 29761: 29761: using ::atan2; 29761: 29761: 29761: inline constexpr float 29761: atan2(float __y, float __x) 29761: { return __builtin_atan2f(__y, __x); } 29761: 29761: inline constexpr long double 29761: atan2(long double __y, long double __x) 29761: { return __builtin_atan2l(__y, __x); } 29761: 29761: 29761: using ::ceil; 29761: 29761: 29761: inline constexpr float 29761: ceil(float __x) 29761: { return __builtin_ceilf(__x); } 29761: 29761: inline constexpr long double 29761: ceil(long double __x) 29761: { return __builtin_ceill(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: ceil(_Tp __x) 29761: { return __builtin_ceil(__x); } 29761: 29761: using ::cos; 29761: 29761: 29761: inline constexpr float 29761: cos(float __x) 29761: { return __builtin_cosf(__x); } 29761: 29761: inline constexpr long double 29761: cos(long double __x) 29761: { return __builtin_cosl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: cos(_Tp __x) 29761: { return __builtin_cos(__x); } 29761: 29761: using ::cosh; 29761: 29761: 29761: inline constexpr float 29761: cosh(float __x) 29761: { return __builtin_coshf(__x); } 29761: 29761: inline constexpr long double 29761: cosh(long double __x) 29761: { return __builtin_coshl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: cosh(_Tp __x) 29761: { return __builtin_cosh(__x); } 29761: 29761: using ::exp; 29761: 29761: 29761: inline constexpr float 29761: exp(float __x) 29761: { return __builtin_expf(__x); } 29761: 29761: inline constexpr long double 29761: exp(long double __x) 29761: { return __builtin_expl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: exp(_Tp __x) 29761: { return __builtin_exp(__x); } 29761: 29761: using ::fabs; 29761: 29761: 29761: inline constexpr float 29761: fabs(float __x) 29761: { return __builtin_fabsf(__x); } 29761: 29761: inline constexpr long double 29761: fabs(long double __x) 29761: { return __builtin_fabsl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: fabs(_Tp __x) 29761: { return __builtin_fabs(__x); } 29761: 29761: using ::floor; 29761: 29761: 29761: inline constexpr float 29761: floor(float __x) 29761: { return __builtin_floorf(__x); } 29761: 29761: inline constexpr long double 29761: floor(long double __x) 29761: { return __builtin_floorl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: floor(_Tp __x) 29761: { return __builtin_floor(__x); } 29761: 29761: using ::fmod; 29761: 29761: 29761: inline constexpr float 29761: fmod(float __x, float __y) 29761: { return __builtin_fmodf(__x, __y); } 29761: 29761: inline constexpr long double 29761: fmod(long double __x, long double __y) 29761: { return __builtin_fmodl(__x, __y); } 29761: 29761: 29761: using ::frexp; 29761: 29761: 29761: inline float 29761: frexp(float __x, int* __exp) 29761: { return __builtin_frexpf(__x, __exp); } 29761: 29761: inline long double 29761: frexp(long double __x, int* __exp) 29761: { return __builtin_frexpl(__x, __exp); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: frexp(_Tp __x, int* __exp) 29761: { return __builtin_frexp(__x, __exp); } 29761: 29761: using ::ldexp; 29761: 29761: 29761: inline constexpr float 29761: ldexp(float __x, int __exp) 29761: { return __builtin_ldexpf(__x, __exp); } 29761: 29761: inline constexpr long double 29761: ldexp(long double __x, int __exp) 29761: { return __builtin_ldexpl(__x, __exp); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: ldexp(_Tp __x, int __exp) 29761: { return __builtin_ldexp(__x, __exp); } 29761: 29761: using ::log; 29761: 29761: 29761: inline constexpr float 29761: log(float __x) 29761: { return __builtin_logf(__x); } 29761: 29761: inline constexpr long double 29761: log(long double __x) 29761: { return __builtin_logl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: log(_Tp __x) 29761: { return __builtin_log(__x); } 29761: 29761: using ::log10; 29761: 29761: 29761: inline constexpr float 29761: log10(float __x) 29761: { return __builtin_log10f(__x); } 29761: 29761: inline constexpr long double 29761: log10(long double __x) 29761: { return __builtin_log10l(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: log10(_Tp __x) 29761: { return __builtin_log10(__x); } 29761: 29761: using ::modf; 29761: 29761: 29761: inline float 29761: modf(float __x, float* __iptr) 29761: { return __builtin_modff(__x, __iptr); } 29761: 29761: inline long double 29761: modf(long double __x, long double* __iptr) 29761: { return __builtin_modfl(__x, __iptr); } 29761: 29761: 29761: using ::pow; 29761: 29761: 29761: inline constexpr float 29761: pow(float __x, float __y) 29761: { return __builtin_powf(__x, __y); } 29761: 29761: inline constexpr long double 29761: pow(long double __x, long double __y) 29761: { return __builtin_powl(__x, __y); } 29761: # 400 "/usr/include/c++/14/cmath" 3 29761: using ::sin; 29761: 29761: 29761: inline constexpr float 29761: sin(float __x) 29761: { return __builtin_sinf(__x); } 29761: 29761: inline constexpr long double 29761: sin(long double __x) 29761: { return __builtin_sinl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: sin(_Tp __x) 29761: { return __builtin_sin(__x); } 29761: 29761: using ::sinh; 29761: 29761: 29761: inline constexpr float 29761: sinh(float __x) 29761: { return __builtin_sinhf(__x); } 29761: 29761: inline constexpr long double 29761: sinh(long double __x) 29761: { return __builtin_sinhl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: sinh(_Tp __x) 29761: { return __builtin_sinh(__x); } 29761: 29761: using ::sqrt; 29761: 29761: 29761: inline constexpr float 29761: sqrt(float __x) 29761: { return __builtin_sqrtf(__x); } 29761: 29761: inline constexpr long double 29761: sqrt(long double __x) 29761: { return __builtin_sqrtl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: sqrt(_Tp __x) 29761: { return __builtin_sqrt(__x); } 29761: 29761: using ::tan; 29761: 29761: 29761: inline constexpr float 29761: tan(float __x) 29761: { return __builtin_tanf(__x); } 29761: 29761: inline constexpr long double 29761: tan(long double __x) 29761: { return __builtin_tanl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: tan(_Tp __x) 29761: { return __builtin_tan(__x); } 29761: 29761: using ::tanh; 29761: 29761: 29761: inline constexpr float 29761: tanh(float __x) 29761: { return __builtin_tanhf(__x); } 29761: 29761: inline constexpr long double 29761: tanh(long double __x) 29761: { return __builtin_tanhl(__x); } 29761: 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: tanh(_Tp __x) 29761: { return __builtin_tanh(__x); } 29761: # 1053 "/usr/include/c++/14/cmath" 3 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: atan2(_Tp __y, _Up __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return atan2(__type(__y), __type(__x)); 29761: } 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: fmod(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return fmod(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: inline constexpr 29761: typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: pow(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return pow(__type(__x), __type(__y)); 29761: } 29761: # 1100 "/usr/include/c++/14/cmath" 3 29761: constexpr int 29761: fpclassify(float __x) 29761: { return __builtin_fpclassify(0, 1, 4, 29761: 3, 2, __x); } 29761: 29761: constexpr int 29761: fpclassify(double __x) 29761: { return __builtin_fpclassify(0, 1, 4, 29761: 3, 2, __x); } 29761: 29761: constexpr int 29761: fpclassify(long double __x) 29761: { return __builtin_fpclassify(0, 1, 4, 29761: 3, 2, __x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: int>::__type 29761: fpclassify(_Tp __x) 29761: { return __x != 0 ? 4 : 2; } 29761: 29761: 29761: 29761: constexpr bool 29761: isfinite(float __x) 29761: { return __builtin_isfinite(__x); } 29761: 29761: constexpr bool 29761: isfinite(double __x) 29761: { return __builtin_isfinite(__x); } 29761: 29761: constexpr bool 29761: isfinite(long double __x) 29761: { return __builtin_isfinite(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: bool>::__type 29761: isfinite(_Tp) 29761: { return true; } 29761: 29761: 29761: 29761: constexpr bool 29761: isinf(float __x) 29761: { return __builtin_isinf(__x); } 29761: 29761: 29761: 29761: 29761: 29761: constexpr bool 29761: isinf(double __x) 29761: { return __builtin_isinf(__x); } 29761: 29761: 29761: constexpr bool 29761: isinf(long double __x) 29761: { return __builtin_isinf(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: bool>::__type 29761: isinf(_Tp) 29761: { return false; } 29761: 29761: 29761: 29761: constexpr bool 29761: isnan(float __x) 29761: { return __builtin_isnan(__x); } 29761: 29761: 29761: 29761: 29761: 29761: constexpr bool 29761: isnan(double __x) 29761: { return __builtin_isnan(__x); } 29761: 29761: 29761: constexpr bool 29761: isnan(long double __x) 29761: { return __builtin_isnan(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: bool>::__type 29761: isnan(_Tp) 29761: { return false; } 29761: 29761: 29761: 29761: constexpr bool 29761: isnormal(float __x) 29761: { return __builtin_isnormal(__x); } 29761: 29761: constexpr bool 29761: isnormal(double __x) 29761: { return __builtin_isnormal(__x); } 29761: 29761: constexpr bool 29761: isnormal(long double __x) 29761: { return __builtin_isnormal(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: bool>::__type 29761: isnormal(_Tp __x) 29761: { return __x != 0 ? true : false; } 29761: 29761: 29761: 29761: 29761: constexpr bool 29761: signbit(float __x) 29761: { return __builtin_signbit(__x); } 29761: 29761: constexpr bool 29761: signbit(double __x) 29761: { return __builtin_signbit(__x); } 29761: 29761: constexpr bool 29761: signbit(long double __x) 29761: { return __builtin_signbit(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: bool>::__type 29761: signbit(_Tp __x) 29761: { return __x < 0 ? true : false; } 29761: 29761: 29761: 29761: constexpr bool 29761: isgreater(float __x, float __y) 29761: { return __builtin_isgreater(__x, __y); } 29761: 29761: constexpr bool 29761: isgreater(double __x, double __y) 29761: { return __builtin_isgreater(__x, __y); } 29761: 29761: constexpr bool 29761: isgreater(long double __x, long double __y) 29761: { return __builtin_isgreater(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: isgreater(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_isgreater(__type(__x), __type(__y)); 29761: } 29761: 29761: 29761: 29761: constexpr bool 29761: isgreaterequal(float __x, float __y) 29761: { return __builtin_isgreaterequal(__x, __y); } 29761: 29761: constexpr bool 29761: isgreaterequal(double __x, double __y) 29761: { return __builtin_isgreaterequal(__x, __y); } 29761: 29761: constexpr bool 29761: isgreaterequal(long double __x, long double __y) 29761: { return __builtin_isgreaterequal(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: isgreaterequal(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_isgreaterequal(__type(__x), __type(__y)); 29761: } 29761: 29761: 29761: 29761: constexpr bool 29761: isless(float __x, float __y) 29761: { return __builtin_isless(__x, __y); } 29761: 29761: constexpr bool 29761: isless(double __x, double __y) 29761: { return __builtin_isless(__x, __y); } 29761: 29761: constexpr bool 29761: isless(long double __x, long double __y) 29761: { return __builtin_isless(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: isless(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_isless(__type(__x), __type(__y)); 29761: } 29761: 29761: 29761: 29761: constexpr bool 29761: islessequal(float __x, float __y) 29761: { return __builtin_islessequal(__x, __y); } 29761: 29761: constexpr bool 29761: islessequal(double __x, double __y) 29761: { return __builtin_islessequal(__x, __y); } 29761: 29761: constexpr bool 29761: islessequal(long double __x, long double __y) 29761: { return __builtin_islessequal(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: islessequal(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_islessequal(__type(__x), __type(__y)); 29761: } 29761: 29761: 29761: 29761: constexpr bool 29761: islessgreater(float __x, float __y) 29761: { return __builtin_islessgreater(__x, __y); } 29761: 29761: constexpr bool 29761: islessgreater(double __x, double __y) 29761: { return __builtin_islessgreater(__x, __y); } 29761: 29761: constexpr bool 29761: islessgreater(long double __x, long double __y) 29761: { return __builtin_islessgreater(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: islessgreater(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_islessgreater(__type(__x), __type(__y)); 29761: } 29761: 29761: 29761: 29761: constexpr bool 29761: isunordered(float __x, float __y) 29761: { return __builtin_isunordered(__x, __y); } 29761: 29761: constexpr bool 29761: isunordered(double __x, double __y) 29761: { return __builtin_isunordered(__x, __y); } 29761: 29761: constexpr bool 29761: isunordered(long double __x, long double __y) 29761: { return __builtin_isunordered(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename 29761: __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value 29761: && __is_arithmetic<_Up>::__value), bool>::__type 29761: isunordered(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return __builtin_isunordered(__type(__x), __type(__y)); 29761: } 29761: # 1820 "/usr/include/c++/14/cmath" 3 29761: using ::acosf; 29761: 29761: 29761: using ::acosl; 29761: 29761: 29761: 29761: using ::asinf; 29761: 29761: 29761: using ::asinl; 29761: 29761: 29761: 29761: using ::atanf; 29761: 29761: 29761: using ::atanl; 29761: 29761: 29761: 29761: using ::atan2f; 29761: 29761: 29761: using ::atan2l; 29761: 29761: 29761: 29761: using ::ceilf; 29761: 29761: 29761: using ::ceill; 29761: 29761: 29761: 29761: using ::cosf; 29761: 29761: 29761: using ::cosl; 29761: 29761: 29761: 29761: using ::coshf; 29761: 29761: 29761: using ::coshl; 29761: 29761: 29761: 29761: using ::expf; 29761: 29761: 29761: using ::expl; 29761: 29761: 29761: 29761: using ::fabsf; 29761: 29761: 29761: using ::fabsl; 29761: 29761: 29761: 29761: using ::floorf; 29761: 29761: 29761: using ::floorl; 29761: 29761: 29761: 29761: using ::fmodf; 29761: 29761: 29761: using ::fmodl; 29761: 29761: 29761: 29761: using ::frexpf; 29761: 29761: 29761: using ::frexpl; 29761: 29761: 29761: 29761: using ::ldexpf; 29761: 29761: 29761: using ::ldexpl; 29761: 29761: 29761: 29761: using ::logf; 29761: 29761: 29761: using ::logl; 29761: 29761: 29761: 29761: using ::log10f; 29761: 29761: 29761: using ::log10l; 29761: 29761: 29761: 29761: using ::modff; 29761: 29761: 29761: using ::modfl; 29761: 29761: 29761: 29761: using ::powf; 29761: 29761: 29761: using ::powl; 29761: 29761: 29761: 29761: using ::sinf; 29761: 29761: 29761: using ::sinl; 29761: 29761: 29761: 29761: using ::sinhf; 29761: 29761: 29761: using ::sinhl; 29761: 29761: 29761: 29761: using ::sqrtf; 29761: 29761: 29761: using ::sqrtl; 29761: 29761: 29761: 29761: using ::tanf; 29761: 29761: 29761: using ::tanl; 29761: 29761: 29761: 29761: using ::tanhf; 29761: 29761: 29761: using ::tanhl; 29761: # 2085 "/usr/include/c++/14/cmath" 3 29761: using ::double_t; 29761: using ::float_t; 29761: 29761: 29761: 29761: using ::acosh; 29761: using ::acoshf; 29761: using ::acoshl; 29761: 29761: using ::asinh; 29761: using ::asinhf; 29761: using ::asinhl; 29761: 29761: using ::atanh; 29761: using ::atanhf; 29761: using ::atanhl; 29761: 29761: using ::cbrt; 29761: using ::cbrtf; 29761: using ::cbrtl; 29761: 29761: using ::copysign; 29761: using ::copysignf; 29761: using ::copysignl; 29761: 29761: using ::erf; 29761: using ::erff; 29761: using ::erfl; 29761: 29761: using ::erfc; 29761: using ::erfcf; 29761: using ::erfcl; 29761: 29761: using ::exp2; 29761: using ::exp2f; 29761: using ::exp2l; 29761: 29761: using ::expm1; 29761: using ::expm1f; 29761: using ::expm1l; 29761: 29761: using ::fdim; 29761: using ::fdimf; 29761: using ::fdiml; 29761: 29761: using ::fma; 29761: using ::fmaf; 29761: using ::fmal; 29761: 29761: using ::fmax; 29761: using ::fmaxf; 29761: using ::fmaxl; 29761: 29761: using ::fmin; 29761: using ::fminf; 29761: using ::fminl; 29761: 29761: using ::hypot; 29761: using ::hypotf; 29761: using ::hypotl; 29761: 29761: using ::ilogb; 29761: using ::ilogbf; 29761: using ::ilogbl; 29761: 29761: using ::lgamma; 29761: using ::lgammaf; 29761: using ::lgammal; 29761: 29761: 29761: using ::llrint; 29761: using ::llrintf; 29761: using ::llrintl; 29761: 29761: using ::llround; 29761: using ::llroundf; 29761: using ::llroundl; 29761: 29761: 29761: using ::log1p; 29761: using ::log1pf; 29761: using ::log1pl; 29761: 29761: using ::log2; 29761: using ::log2f; 29761: using ::log2l; 29761: 29761: using ::logb; 29761: using ::logbf; 29761: using ::logbl; 29761: 29761: using ::lrint; 29761: using ::lrintf; 29761: using ::lrintl; 29761: 29761: using ::lround; 29761: using ::lroundf; 29761: using ::lroundl; 29761: 29761: using ::nan; 29761: using ::nanf; 29761: using ::nanl; 29761: 29761: using ::nearbyint; 29761: using ::nearbyintf; 29761: using ::nearbyintl; 29761: 29761: using ::nextafter; 29761: using ::nextafterf; 29761: using ::nextafterl; 29761: 29761: using ::nexttoward; 29761: using ::nexttowardf; 29761: using ::nexttowardl; 29761: 29761: using ::remainder; 29761: using ::remainderf; 29761: using ::remainderl; 29761: 29761: using ::remquo; 29761: using ::remquof; 29761: using ::remquol; 29761: 29761: using ::rint; 29761: using ::rintf; 29761: using ::rintl; 29761: 29761: using ::round; 29761: using ::roundf; 29761: using ::roundl; 29761: 29761: using ::scalbln; 29761: using ::scalblnf; 29761: using ::scalblnl; 29761: 29761: using ::scalbn; 29761: using ::scalbnf; 29761: using ::scalbnl; 29761: 29761: using ::tgamma; 29761: using ::tgammaf; 29761: using ::tgammal; 29761: 29761: using ::trunc; 29761: using ::truncf; 29761: using ::truncl; 29761: 29761: 29761: 29761: constexpr float 29761: acosh(float __x) 29761: { return __builtin_acoshf(__x); } 29761: 29761: constexpr long double 29761: acosh(long double __x) 29761: { return __builtin_acoshl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: acosh(_Tp __x) 29761: { return __builtin_acosh(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: asinh(float __x) 29761: { return __builtin_asinhf(__x); } 29761: 29761: constexpr long double 29761: asinh(long double __x) 29761: { return __builtin_asinhl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: asinh(_Tp __x) 29761: { return __builtin_asinh(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: atanh(float __x) 29761: { return __builtin_atanhf(__x); } 29761: 29761: constexpr long double 29761: atanh(long double __x) 29761: { return __builtin_atanhl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: atanh(_Tp __x) 29761: { return __builtin_atanh(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: cbrt(float __x) 29761: { return __builtin_cbrtf(__x); } 29761: 29761: constexpr long double 29761: cbrt(long double __x) 29761: { return __builtin_cbrtl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: cbrt(_Tp __x) 29761: { return __builtin_cbrt(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: copysign(float __x, float __y) 29761: { return __builtin_copysignf(__x, __y); } 29761: 29761: constexpr long double 29761: copysign(long double __x, long double __y) 29761: { return __builtin_copysignl(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: erf(float __x) 29761: { return __builtin_erff(__x); } 29761: 29761: constexpr long double 29761: erf(long double __x) 29761: { return __builtin_erfl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: erf(_Tp __x) 29761: { return __builtin_erf(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: erfc(float __x) 29761: { return __builtin_erfcf(__x); } 29761: 29761: constexpr long double 29761: erfc(long double __x) 29761: { return __builtin_erfcl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: erfc(_Tp __x) 29761: { return __builtin_erfc(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: exp2(float __x) 29761: { return __builtin_exp2f(__x); } 29761: 29761: constexpr long double 29761: exp2(long double __x) 29761: { return __builtin_exp2l(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: exp2(_Tp __x) 29761: { return __builtin_exp2(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: expm1(float __x) 29761: { return __builtin_expm1f(__x); } 29761: 29761: constexpr long double 29761: expm1(long double __x) 29761: { return __builtin_expm1l(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: expm1(_Tp __x) 29761: { return __builtin_expm1(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: fdim(float __x, float __y) 29761: { return __builtin_fdimf(__x, __y); } 29761: 29761: constexpr long double 29761: fdim(long double __x, long double __y) 29761: { return __builtin_fdiml(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: fma(float __x, float __y, float __z) 29761: { return __builtin_fmaf(__x, __y, __z); } 29761: 29761: constexpr long double 29761: fma(long double __x, long double __y, long double __z) 29761: { return __builtin_fmal(__x, __y, __z); } 29761: 29761: 29761: 29761: constexpr float 29761: fmax(float __x, float __y) 29761: { return __builtin_fmaxf(__x, __y); } 29761: 29761: constexpr long double 29761: fmax(long double __x, long double __y) 29761: { return __builtin_fmaxl(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: fmin(float __x, float __y) 29761: { return __builtin_fminf(__x, __y); } 29761: 29761: constexpr long double 29761: fmin(long double __x, long double __y) 29761: { return __builtin_fminl(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: hypot(float __x, float __y) 29761: { return __builtin_hypotf(__x, __y); } 29761: 29761: constexpr long double 29761: hypot(long double __x, long double __y) 29761: { return __builtin_hypotl(__x, __y); } 29761: 29761: 29761: 29761: constexpr int 29761: ilogb(float __x) 29761: { return __builtin_ilogbf(__x); } 29761: 29761: constexpr int 29761: ilogb(long double __x) 29761: { return __builtin_ilogbl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr 29761: typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: int>::__type 29761: ilogb(_Tp __x) 29761: { return __builtin_ilogb(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: lgamma(float __x) 29761: { return __builtin_lgammaf(__x); } 29761: 29761: constexpr long double 29761: lgamma(long double __x) 29761: { return __builtin_lgammal(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: lgamma(_Tp __x) 29761: { return __builtin_lgamma(__x); } 29761: 29761: 29761: 29761: constexpr long long 29761: llrint(float __x) 29761: { return __builtin_llrintf(__x); } 29761: 29761: constexpr long long 29761: llrint(long double __x) 29761: { return __builtin_llrintl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: long long>::__type 29761: llrint(_Tp __x) 29761: { return __builtin_llrint(__x); } 29761: 29761: 29761: 29761: constexpr long long 29761: llround(float __x) 29761: { return __builtin_llroundf(__x); } 29761: 29761: constexpr long long 29761: llround(long double __x) 29761: { return __builtin_llroundl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: long long>::__type 29761: llround(_Tp __x) 29761: { return __builtin_llround(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: log1p(float __x) 29761: { return __builtin_log1pf(__x); } 29761: 29761: constexpr long double 29761: log1p(long double __x) 29761: { return __builtin_log1pl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: log1p(_Tp __x) 29761: { return __builtin_log1p(__x); } 29761: 29761: 29761: 29761: 29761: constexpr float 29761: log2(float __x) 29761: { return __builtin_log2f(__x); } 29761: 29761: constexpr long double 29761: log2(long double __x) 29761: { return __builtin_log2l(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: log2(_Tp __x) 29761: { return __builtin_log2(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: logb(float __x) 29761: { return __builtin_logbf(__x); } 29761: 29761: constexpr long double 29761: logb(long double __x) 29761: { return __builtin_logbl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: logb(_Tp __x) 29761: { return __builtin_logb(__x); } 29761: 29761: 29761: 29761: constexpr long 29761: lrint(float __x) 29761: { return __builtin_lrintf(__x); } 29761: 29761: constexpr long 29761: lrint(long double __x) 29761: { return __builtin_lrintl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: long>::__type 29761: lrint(_Tp __x) 29761: { return __builtin_lrint(__x); } 29761: 29761: 29761: 29761: constexpr long 29761: lround(float __x) 29761: { return __builtin_lroundf(__x); } 29761: 29761: constexpr long 29761: lround(long double __x) 29761: { return __builtin_lroundl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: long>::__type 29761: lround(_Tp __x) 29761: { return __builtin_lround(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: nearbyint(float __x) 29761: { return __builtin_nearbyintf(__x); } 29761: 29761: constexpr long double 29761: nearbyint(long double __x) 29761: { return __builtin_nearbyintl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: nearbyint(_Tp __x) 29761: { return __builtin_nearbyint(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: nextafter(float __x, float __y) 29761: { return __builtin_nextafterf(__x, __y); } 29761: 29761: constexpr long double 29761: nextafter(long double __x, long double __y) 29761: { return __builtin_nextafterl(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: nexttoward(float __x, long double __y) 29761: { return __builtin_nexttowardf(__x, __y); } 29761: 29761: constexpr long double 29761: nexttoward(long double __x, long double __y) 29761: { return __builtin_nexttowardl(__x, __y); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: nexttoward(_Tp __x, long double __y) 29761: { return __builtin_nexttoward(__x, __y); } 29761: 29761: 29761: 29761: constexpr float 29761: remainder(float __x, float __y) 29761: { return __builtin_remainderf(__x, __y); } 29761: 29761: constexpr long double 29761: remainder(long double __x, long double __y) 29761: { return __builtin_remainderl(__x, __y); } 29761: 29761: 29761: 29761: inline float 29761: remquo(float __x, float __y, int* __pquo) 29761: { return __builtin_remquof(__x, __y, __pquo); } 29761: 29761: inline long double 29761: remquo(long double __x, long double __y, int* __pquo) 29761: { return __builtin_remquol(__x, __y, __pquo); } 29761: 29761: 29761: 29761: constexpr float 29761: rint(float __x) 29761: { return __builtin_rintf(__x); } 29761: 29761: constexpr long double 29761: rint(long double __x) 29761: { return __builtin_rintl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: rint(_Tp __x) 29761: { return __builtin_rint(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: round(float __x) 29761: { return __builtin_roundf(__x); } 29761: 29761: constexpr long double 29761: round(long double __x) 29761: { return __builtin_roundl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: round(_Tp __x) 29761: { return __builtin_round(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: scalbln(float __x, long __ex) 29761: { return __builtin_scalblnf(__x, __ex); } 29761: 29761: constexpr long double 29761: scalbln(long double __x, long __ex) 29761: { return __builtin_scalblnl(__x, __ex); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: scalbln(_Tp __x, long __ex) 29761: { return __builtin_scalbln(__x, __ex); } 29761: 29761: 29761: 29761: constexpr float 29761: scalbn(float __x, int __ex) 29761: { return __builtin_scalbnf(__x, __ex); } 29761: 29761: constexpr long double 29761: scalbn(long double __x, int __ex) 29761: { return __builtin_scalbnl(__x, __ex); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: scalbn(_Tp __x, int __ex) 29761: { return __builtin_scalbn(__x, __ex); } 29761: 29761: 29761: 29761: constexpr float 29761: tgamma(float __x) 29761: { return __builtin_tgammaf(__x); } 29761: 29761: constexpr long double 29761: tgamma(long double __x) 29761: { return __builtin_tgammal(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: tgamma(_Tp __x) 29761: { return __builtin_tgamma(__x); } 29761: 29761: 29761: 29761: constexpr float 29761: trunc(float __x) 29761: { return __builtin_truncf(__x); } 29761: 29761: constexpr long double 29761: trunc(long double __x) 29761: { return __builtin_truncl(__x); } 29761: 29761: 29761: 29761: template 29761: constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, 29761: double>::__type 29761: trunc(_Tp __x) 29761: { return __builtin_trunc(__x); } 29761: # 3682 "/usr/include/c++/14/cmath" 3 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: copysign(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return copysign(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: fdim(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return fdim(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: fmax(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return fmax(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: fmin(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return fmin(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: hypot(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return hypot(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: nextafter(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return nextafter(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: remainder(_Tp __x, _Up __y) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return remainder(__type(__x), __type(__y)); 29761: } 29761: 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type 29761: remquo(_Tp __x, _Up __y, int* __pquo) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; 29761: return remquo(__type(__x), __type(__y), __pquo); 29761: } 29761: 29761: template 29761: constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type 29761: fma(_Tp __x, _Up __y, _Vp __z) 29761: { 29761: typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; 29761: return fma(__type(__x), __type(__y), __type(__z)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline _Tp 29761: __hypot3(_Tp __x, _Tp __y, _Tp __z) 29761: { 29761: __x = std::abs(__x); 29761: __y = std::abs(__y); 29761: __z = std::abs(__z); 29761: if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) 29761: return __a * std::sqrt((__x / __a) * (__x / __a) 29761: + (__y / __a) * (__y / __a) 29761: + (__z / __a) * (__z / __a)); 29761: else 29761: return {}; 29761: } 29761: 29761: inline float 29761: hypot(float __x, float __y, float __z) 29761: { return std::__hypot3(__x, __y, __z); } 29761: 29761: inline double 29761: hypot(double __x, double __y, double __z) 29761: { return std::__hypot3(__x, __y, __z); } 29761: 29761: inline long double 29761: hypot(long double __x, long double __y, long double __z) 29761: { return std::__hypot3(__x, __y, __z); } 29761: 29761: template 29761: __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> 29761: hypot(_Tp __x, _Up __y, _Vp __z) 29761: { 29761: using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; 29761: return std::__hypot3<__type>(__x, __y, __z); 29761: } 29761: # 3902 "/usr/include/c++/14/cmath" 3 29761: 29761: } 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/specfun.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/specfun.h" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 38 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 47 "/usr/include/c++/14/bits/specfun.h" 3 29761: # 1 "/usr/include/c++/14/tr1/gamma.tcc" 1 3 29761: # 49 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: # 1 "/usr/include/c++/14/tr1/special_function_util.h" 1 3 29761: # 39 "/usr/include/c++/14/tr1/special_function_util.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 50 "/usr/include/c++/14/tr1/special_function_util.h" 3 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: template 29761: struct __floating_point_constant 29761: { 29761: static const _Tp __value; 29761: }; 29761: 29761: 29761: 29761: template 29761: struct __numeric_constants 29761: { 29761: 29761: static _Tp __pi() throw() 29761: { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } 29761: 29761: static _Tp __pi_2() throw() 29761: { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } 29761: 29761: static _Tp __pi_3() throw() 29761: { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } 29761: 29761: static _Tp __pi_4() throw() 29761: { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } 29761: 29761: static _Tp __1_pi() throw() 29761: { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } 29761: 29761: static _Tp __2_sqrtpi() throw() 29761: { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } 29761: 29761: static _Tp __sqrt2() throw() 29761: { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } 29761: 29761: static _Tp __sqrt3() throw() 29761: { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } 29761: 29761: static _Tp __sqrtpio2() throw() 29761: { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } 29761: 29761: static _Tp __sqrt1_2() throw() 29761: { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } 29761: 29761: static _Tp __lnpi() throw() 29761: { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } 29761: 29761: static _Tp __gamma_e() throw() 29761: { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } 29761: 29761: static _Tp __euler() throw() 29761: { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } 29761: }; 29761: # 114 "/usr/include/c++/14/tr1/special_function_util.h" 3 29761: template 29761: inline bool __isnan(_Tp __x) 29761: { return std::isnan(__x); } 29761: # 133 "/usr/include/c++/14/tr1/special_function_util.h" 3 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 50 "/usr/include/c++/14/tr1/gamma.tcc" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 65 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: namespace __detail 29761: { 29761: # 76 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __bernoulli_series(unsigned int __n) 29761: { 29761: 29761: static const _Tp __num[28] = { 29761: _Tp(1UL), -_Tp(1UL) / _Tp(2UL), 29761: _Tp(1UL) / _Tp(6UL), _Tp(0UL), 29761: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 29761: _Tp(1UL) / _Tp(42UL), _Tp(0UL), 29761: -_Tp(1UL) / _Tp(30UL), _Tp(0UL), 29761: _Tp(5UL) / _Tp(66UL), _Tp(0UL), 29761: -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), 29761: _Tp(7UL) / _Tp(6UL), _Tp(0UL), 29761: -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), 29761: _Tp(43867UL) / _Tp(798UL), _Tp(0UL), 29761: -_Tp(174611) / _Tp(330UL), _Tp(0UL), 29761: _Tp(854513UL) / _Tp(138UL), _Tp(0UL), 29761: -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), 29761: _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) 29761: }; 29761: 29761: if (__n == 0) 29761: return _Tp(1); 29761: 29761: if (__n == 1) 29761: return -_Tp(1) / _Tp(2); 29761: 29761: 29761: if (__n % 2 == 1) 29761: return _Tp(0); 29761: 29761: 29761: if (__n < 28) 29761: return __num[__n]; 29761: 29761: 29761: _Tp __fact = _Tp(1); 29761: if ((__n / 2) % 2 == 0) 29761: __fact *= _Tp(-1); 29761: for (unsigned int __k = 1; __k <= __n; ++__k) 29761: __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); 29761: __fact *= _Tp(2); 29761: 29761: _Tp __sum = _Tp(0); 29761: for (unsigned int __i = 1; __i < 1000; ++__i) 29761: { 29761: _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); 29761: if (__term < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __sum += __term; 29761: } 29761: 29761: return __fact * __sum; 29761: } 29761: # 139 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: inline _Tp 29761: __bernoulli(int __n) 29761: { return __bernoulli_series<_Tp>(__n); } 29761: # 153 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __log_gamma_bernoulli(_Tp __x) 29761: { 29761: _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x 29761: + _Tp(0.5L) * std::log(_Tp(2) 29761: * __numeric_constants<_Tp>::__pi()); 29761: 29761: const _Tp __xx = __x * __x; 29761: _Tp __help = _Tp(1) / __x; 29761: for ( unsigned int __i = 1; __i < 20; ++__i ) 29761: { 29761: const _Tp __2i = _Tp(2 * __i); 29761: __help /= __2i * (__2i - _Tp(1)) * __xx; 29761: __lg += __bernoulli<_Tp>(2 * __i) * __help; 29761: } 29761: 29761: return __lg; 29761: } 29761: # 181 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __log_gamma_lanczos(_Tp __x) 29761: { 29761: const _Tp __xm1 = __x - _Tp(1); 29761: 29761: static const _Tp __lanczos_cheb_7[9] = { 29761: _Tp( 0.99999999999980993227684700473478L), 29761: _Tp( 676.520368121885098567009190444019L), 29761: _Tp(-1259.13921672240287047156078755283L), 29761: _Tp( 771.3234287776530788486528258894L), 29761: _Tp(-176.61502916214059906584551354L), 29761: _Tp( 12.507343278686904814458936853L), 29761: _Tp(-0.13857109526572011689554707L), 29761: _Tp( 9.984369578019570859563e-6L), 29761: _Tp( 1.50563273514931155834e-7L) 29761: }; 29761: 29761: static const _Tp __LOGROOT2PI 29761: = _Tp(0.9189385332046727417803297364056176L); 29761: 29761: _Tp __sum = __lanczos_cheb_7[0]; 29761: for(unsigned int __k = 1; __k < 9; ++__k) 29761: __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); 29761: 29761: const _Tp __term1 = (__xm1 + _Tp(0.5L)) 29761: * std::log((__xm1 + _Tp(7.5L)) 29761: / __numeric_constants<_Tp>::__euler()); 29761: const _Tp __term2 = __LOGROOT2PI + std::log(__sum); 29761: const _Tp __result = __term1 + (__term2 - _Tp(7)); 29761: 29761: return __result; 29761: } 29761: # 225 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __log_gamma(_Tp __x) 29761: { 29761: if (__x > _Tp(0.5L)) 29761: return __log_gamma_lanczos(__x); 29761: else 29761: { 29761: const _Tp __sin_fact 29761: = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); 29761: if (__sin_fact == _Tp(0)) 29761: std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") 29761: ); 29761: return __numeric_constants<_Tp>::__lnpi() 29761: - std::log(__sin_fact) 29761: - __log_gamma_lanczos(_Tp(1) - __x); 29761: } 29761: } 29761: # 252 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __log_gamma_sign(_Tp __x) 29761: { 29761: if (__x > _Tp(0)) 29761: return _Tp(1); 29761: else 29761: { 29761: const _Tp __sin_fact 29761: = std::sin(__numeric_constants<_Tp>::__pi() * __x); 29761: if (__sin_fact > _Tp(0)) 29761: return (1); 29761: else if (__sin_fact < _Tp(0)) 29761: return -_Tp(1); 29761: else 29761: return _Tp(0); 29761: } 29761: } 29761: # 283 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __log_bincoef(unsigned int __n, unsigned int __k) 29761: { 29761: 29761: static const _Tp __max_bincoeff 29761: = std::numeric_limits<_Tp>::max_exponent10 29761: * std::log(_Tp(10)) - _Tp(1); 29761: 29761: _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) 29761: - ::std::lgamma(_Tp(1 + __k)) 29761: - ::std::lgamma(_Tp(1 + __n - __k)); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 314 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __bincoef(unsigned int __n, unsigned int __k) 29761: { 29761: 29761: static const _Tp __max_bincoeff 29761: = std::numeric_limits<_Tp>::max_exponent10 29761: * std::log(_Tp(10)) - _Tp(1); 29761: 29761: const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); 29761: if (__log_coeff > __max_bincoeff) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: return std::exp(__log_coeff); 29761: } 29761: # 337 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: inline _Tp 29761: __gamma(_Tp __x) 29761: { return std::exp(__log_gamma(__x)); } 29761: # 356 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __psi_series(_Tp __x) 29761: { 29761: _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; 29761: const unsigned int __max_iter = 100000; 29761: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29761: { 29761: const _Tp __term = __x / (__k * (__k + __x)); 29761: __sum += __term; 29761: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: } 29761: return __sum; 29761: } 29761: # 386 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __psi_asymp(_Tp __x) 29761: { 29761: _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; 29761: const _Tp __xx = __x * __x; 29761: _Tp __xp = __xx; 29761: const unsigned int __max_iter = 100; 29761: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29761: { 29761: const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); 29761: __sum -= __term; 29761: if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __xp *= __xx; 29761: } 29761: return __sum; 29761: } 29761: # 417 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __psi(_Tp __x) 29761: { 29761: const int __n = static_cast(__x + 0.5L); 29761: const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); 29761: if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x < _Tp(0)) 29761: { 29761: const _Tp __pi = __numeric_constants<_Tp>::__pi(); 29761: return __psi(_Tp(1) - __x) 29761: - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); 29761: } 29761: else if (__x > _Tp(100)) 29761: return __psi_asymp(__x); 29761: else 29761: return __psi_series(__x); 29761: } 29761: # 446 "/usr/include/c++/14/tr1/gamma.tcc" 3 29761: template 29761: _Tp 29761: __psi(unsigned int __n, _Tp __x) 29761: { 29761: if (__x <= _Tp(0)) 29761: std::__throw_domain_error(("Argument out of range " "in __psi") 29761: ); 29761: else if (__n == 0) 29761: return __psi(__x); 29761: else 29761: { 29761: const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); 29761: 29761: const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); 29761: 29761: 29761: 29761: _Tp __result = std::exp(__ln_nfact) * __hzeta; 29761: if (__n % 2 == 1) 29761: __result = -__result; 29761: return __result; 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 48 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/bessel_function.tcc" 1 3 29761: # 55 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 71 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: namespace __detail 29761: { 29761: # 98 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: void 29761: __gamma_temme(_Tp __mu, 29761: _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) 29761: { 29761: 29761: __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); 29761: __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); 29761: 29761: 29761: 29761: 29761: 29761: if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) 29761: __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); 29761: else 29761: __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); 29761: 29761: __gam2 = (__gammi + __gampl) / (_Tp(2)); 29761: 29761: return; 29761: } 29761: # 136 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: void 29761: __bessel_jn(_Tp __nu, _Tp __x, 29761: _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) 29761: { 29761: if (__x == _Tp(0)) 29761: { 29761: if (__nu == _Tp(0)) 29761: { 29761: __Jnu = _Tp(1); 29761: __Jpnu = _Tp(0); 29761: } 29761: else if (__nu == _Tp(1)) 29761: { 29761: __Jnu = _Tp(0); 29761: __Jpnu = _Tp(0.5L); 29761: } 29761: else 29761: { 29761: __Jnu = _Tp(0); 29761: __Jpnu = _Tp(0); 29761: } 29761: __Nnu = -std::numeric_limits<_Tp>::infinity(); 29761: __Npnu = std::numeric_limits<_Tp>::infinity(); 29761: return; 29761: } 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: 29761: 29761: 29761: const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); 29761: const int __max_iter = 15000; 29761: const _Tp __x_min = _Tp(2); 29761: 29761: const int __nl = (__x < __x_min 29761: ? static_cast(__nu + _Tp(0.5L)) 29761: : std::max(0, static_cast(__nu - __x + _Tp(1.5L)))); 29761: 29761: const _Tp __mu = __nu - __nl; 29761: const _Tp __mu2 = __mu * __mu; 29761: const _Tp __xi = _Tp(1) / __x; 29761: const _Tp __xi2 = _Tp(2) * __xi; 29761: _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); 29761: int __isign = 1; 29761: _Tp __h = __nu * __xi; 29761: if (__h < __fp_min) 29761: __h = __fp_min; 29761: _Tp __b = __xi2 * __nu; 29761: _Tp __d = _Tp(0); 29761: _Tp __c = __h; 29761: int __i; 29761: for (__i = 1; __i <= __max_iter; ++__i) 29761: { 29761: __b += __xi2; 29761: __d = __b - __d; 29761: if (std::abs(__d) < __fp_min) 29761: __d = __fp_min; 29761: __c = __b - _Tp(1) / __c; 29761: if (std::abs(__c) < __fp_min) 29761: __c = __fp_min; 29761: __d = _Tp(1) / __d; 29761: const _Tp __del = __c * __d; 29761: __h *= __del; 29761: if (__d < _Tp(0)) 29761: __isign = -__isign; 29761: if (std::abs(__del - _Tp(1)) < __eps) 29761: break; 29761: } 29761: if (__i > __max_iter) 29761: std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") 29761: ); 29761: _Tp __Jnul = __isign * __fp_min; 29761: _Tp __Jpnul = __h * __Jnul; 29761: _Tp __Jnul1 = __Jnul; 29761: _Tp __Jpnu1 = __Jpnul; 29761: _Tp __fact = __nu * __xi; 29761: for ( int __l = __nl; __l >= 1; --__l ) 29761: { 29761: const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; 29761: __fact -= __xi; 29761: __Jpnul = __fact * __Jnutemp - __Jnul; 29761: __Jnul = __Jnutemp; 29761: } 29761: if (__Jnul == _Tp(0)) 29761: __Jnul = __eps; 29761: _Tp __f= __Jpnul / __Jnul; 29761: _Tp __Nmu, __Nnu1, __Npmu, __Jmu; 29761: if (__x < __x_min) 29761: { 29761: const _Tp __x2 = __x / _Tp(2); 29761: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 29761: _Tp __fact = (std::abs(__pimu) < __eps 29761: ? _Tp(1) : __pimu / std::sin(__pimu)); 29761: _Tp __d = -std::log(__x2); 29761: _Tp __e = __mu * __d; 29761: _Tp __fact2 = (std::abs(__e) < __eps 29761: ? _Tp(1) : std::sinh(__e) / __e); 29761: _Tp __gam1, __gam2, __gampl, __gammi; 29761: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 29761: _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) 29761: * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 29761: __e = std::exp(__e); 29761: _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); 29761: _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); 29761: const _Tp __pimu2 = __pimu / _Tp(2); 29761: _Tp __fact3 = (std::abs(__pimu2) < __eps 29761: ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); 29761: _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; 29761: _Tp __c = _Tp(1); 29761: __d = -__x2 * __x2; 29761: _Tp __sum = __ff + __r * __q; 29761: _Tp __sum1 = __p; 29761: for (__i = 1; __i <= __max_iter; ++__i) 29761: { 29761: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 29761: __c *= __d / _Tp(__i); 29761: __p /= _Tp(__i) - __mu; 29761: __q /= _Tp(__i) + __mu; 29761: const _Tp __del = __c * (__ff + __r * __q); 29761: __sum += __del; 29761: const _Tp __del1 = __c * __p - __i * __del; 29761: __sum1 += __del1; 29761: if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) 29761: break; 29761: } 29761: if ( __i > __max_iter ) 29761: std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") 29761: ); 29761: __Nmu = -__sum; 29761: __Nnu1 = -__sum1 * __xi2; 29761: __Npmu = __mu * __xi * __Nmu - __Nnu1; 29761: __Jmu = __w / (__Npmu - __f * __Nmu); 29761: } 29761: else 29761: { 29761: _Tp __a = _Tp(0.25L) - __mu2; 29761: _Tp __q = _Tp(1); 29761: _Tp __p = -__xi / _Tp(2); 29761: _Tp __br = _Tp(2) * __x; 29761: _Tp __bi = _Tp(2); 29761: _Tp __fact = __a * __xi / (__p * __p + __q * __q); 29761: _Tp __cr = __br + __q * __fact; 29761: _Tp __ci = __bi + __p * __fact; 29761: _Tp __den = __br * __br + __bi * __bi; 29761: _Tp __dr = __br / __den; 29761: _Tp __di = -__bi / __den; 29761: _Tp __dlr = __cr * __dr - __ci * __di; 29761: _Tp __dli = __cr * __di + __ci * __dr; 29761: _Tp __temp = __p * __dlr - __q * __dli; 29761: __q = __p * __dli + __q * __dlr; 29761: __p = __temp; 29761: int __i; 29761: for (__i = 2; __i <= __max_iter; ++__i) 29761: { 29761: __a += _Tp(2 * (__i - 1)); 29761: __bi += _Tp(2); 29761: __dr = __a * __dr + __br; 29761: __di = __a * __di + __bi; 29761: if (std::abs(__dr) + std::abs(__di) < __fp_min) 29761: __dr = __fp_min; 29761: __fact = __a / (__cr * __cr + __ci * __ci); 29761: __cr = __br + __cr * __fact; 29761: __ci = __bi - __ci * __fact; 29761: if (std::abs(__cr) + std::abs(__ci) < __fp_min) 29761: __cr = __fp_min; 29761: __den = __dr * __dr + __di * __di; 29761: __dr /= __den; 29761: __di /= -__den; 29761: __dlr = __cr * __dr - __ci * __di; 29761: __dli = __cr * __di + __ci * __dr; 29761: __temp = __p * __dlr - __q * __dli; 29761: __q = __p * __dli + __q * __dlr; 29761: __p = __temp; 29761: if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) 29761: break; 29761: } 29761: if (__i > __max_iter) 29761: std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") 29761: ); 29761: const _Tp __gam = (__p - __f) / __q; 29761: __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); 29761: 29761: __Jmu = ::std::copysign(__Jmu, __Jnul); 29761: 29761: 29761: 29761: 29761: __Nmu = __gam * __Jmu; 29761: __Npmu = (__p + __q / __gam) * __Nmu; 29761: __Nnu1 = __mu * __xi * __Nmu - __Npmu; 29761: } 29761: __fact = __Jmu / __Jnul; 29761: __Jnu = __fact * __Jnul1; 29761: __Jpnu = __fact * __Jpnu1; 29761: for (__i = 1; __i <= __nl; ++__i) 29761: { 29761: const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; 29761: __Nmu = __Nnu1; 29761: __Nnu1 = __Nnutemp; 29761: } 29761: __Nnu = __Nmu; 29761: __Npnu = __nu * __xi * __Nmu - __Nnu1; 29761: 29761: return; 29761: } 29761: # 361 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: void 29761: __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) 29761: { 29761: const _Tp __mu = _Tp(4) * __nu * __nu; 29761: const _Tp __8x = _Tp(8) * __x; 29761: 29761: _Tp __P = _Tp(0); 29761: _Tp __Q = _Tp(0); 29761: 29761: _Tp __k = _Tp(0); 29761: _Tp __term = _Tp(1); 29761: 29761: int __epsP = 0; 29761: int __epsQ = 0; 29761: 29761: _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: do 29761: { 29761: __term *= (__k == 0 29761: ? _Tp(1) 29761: : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); 29761: 29761: __epsP = std::abs(__term) < __eps * std::abs(__P); 29761: __P += __term; 29761: 29761: __k++; 29761: 29761: __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); 29761: __epsQ = std::abs(__term) < __eps * std::abs(__Q); 29761: __Q += __term; 29761: 29761: if (__epsP && __epsQ && __k > (__nu / 2.)) 29761: break; 29761: 29761: __k++; 29761: } 29761: while (__k < 1000); 29761: 29761: const _Tp __chi = __x - (__nu + _Tp(0.5L)) 29761: * __numeric_constants<_Tp>::__pi_2(); 29761: 29761: const _Tp __c = std::cos(__chi); 29761: const _Tp __s = std::sin(__chi); 29761: 29761: const _Tp __coef = std::sqrt(_Tp(2) 29761: / (__numeric_constants<_Tp>::__pi() * __x)); 29761: 29761: __Jnu = __coef * (__c * __P - __s * __Q); 29761: __Nnu = __coef * (__s * __P + __c * __Q); 29761: 29761: return; 29761: } 29761: # 444 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: _Tp 29761: __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, 29761: unsigned int __max_iter) 29761: { 29761: if (__x == _Tp(0)) 29761: return __nu == _Tp(0) ? _Tp(1) : _Tp(0); 29761: 29761: const _Tp __x2 = __x / _Tp(2); 29761: _Tp __fact = __nu * std::log(__x2); 29761: 29761: __fact -= ::std::lgamma(__nu + _Tp(1)); 29761: 29761: 29761: 29761: __fact = std::exp(__fact); 29761: const _Tp __xx4 = __sgn * __x2 * __x2; 29761: _Tp __Jn = _Tp(1); 29761: _Tp __term = _Tp(1); 29761: 29761: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29761: { 29761: __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); 29761: __Jn += __term; 29761: if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: } 29761: 29761: return __fact * __Jn; 29761: } 29761: # 490 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: _Tp 29761: __cyl_bessel_j(_Tp __nu, _Tp __x) 29761: { 29761: if (__nu < _Tp(0) || __x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") 29761: ); 29761: else if (__isnan(__nu) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 29761: return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); 29761: else if (__x > _Tp(1000)) 29761: { 29761: _Tp __J_nu, __N_nu; 29761: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 29761: return __J_nu; 29761: } 29761: else 29761: { 29761: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29761: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29761: return __J_nu; 29761: } 29761: } 29761: # 532 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: _Tp 29761: __cyl_neumann_n(_Tp __nu, _Tp __x) 29761: { 29761: if (__nu < _Tp(0) || __x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") 29761: ); 29761: else if (__isnan(__nu) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x > _Tp(1000)) 29761: { 29761: _Tp __J_nu, __N_nu; 29761: __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); 29761: return __N_nu; 29761: } 29761: else 29761: { 29761: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29761: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29761: return __N_nu; 29761: } 29761: } 29761: # 569 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: void 29761: __sph_bessel_jn(unsigned int __n, _Tp __x, 29761: _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) 29761: { 29761: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 29761: 29761: _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; 29761: __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29761: 29761: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 29761: / std::sqrt(__x); 29761: 29761: __j_n = __factor * __J_nu; 29761: __n_n = __factor * __N_nu; 29761: __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); 29761: __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); 29761: 29761: return; 29761: } 29761: # 604 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: _Tp 29761: __sph_bessel(unsigned int __n, _Tp __x) 29761: { 29761: if (__x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __sph_bessel.") 29761: ); 29761: else if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x == _Tp(0)) 29761: { 29761: if (__n == 0) 29761: return _Tp(1); 29761: else 29761: return _Tp(0); 29761: } 29761: else 29761: { 29761: _Tp __j_n, __n_n, __jp_n, __np_n; 29761: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 29761: return __j_n; 29761: } 29761: } 29761: # 642 "/usr/include/c++/14/tr1/bessel_function.tcc" 3 29761: template 29761: _Tp 29761: __sph_neumann(unsigned int __n, _Tp __x) 29761: { 29761: if (__x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __sph_neumann.") 29761: ); 29761: else if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x == _Tp(0)) 29761: return -std::numeric_limits<_Tp>::infinity(); 29761: else 29761: { 29761: _Tp __j_n, __n_n, __jp_n, __np_n; 29761: __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); 29761: return __n_n; 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 49 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/beta_function.tcc" 1 3 29761: # 49 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 65 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: namespace __detail 29761: { 29761: # 79 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: template 29761: _Tp 29761: __beta_gamma(_Tp __x, _Tp __y) 29761: { 29761: 29761: _Tp __bet; 29761: 29761: if (__x > __y) 29761: { 29761: __bet = ::std::tgamma(__x) 29761: / ::std::tgamma(__x + __y); 29761: __bet *= ::std::tgamma(__y); 29761: } 29761: else 29761: { 29761: __bet = ::std::tgamma(__y) 29761: / ::std::tgamma(__x + __y); 29761: __bet *= ::std::tgamma(__x); 29761: } 29761: # 111 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: return __bet; 29761: } 29761: # 127 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: template 29761: _Tp 29761: __beta_lgamma(_Tp __x, _Tp __y) 29761: { 29761: 29761: _Tp __bet = ::std::lgamma(__x) 29761: + ::std::lgamma(__y) 29761: - ::std::lgamma(__x + __y); 29761: 29761: 29761: 29761: 29761: 29761: __bet = std::exp(__bet); 29761: return __bet; 29761: } 29761: # 158 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: template 29761: _Tp 29761: __beta_product(_Tp __x, _Tp __y) 29761: { 29761: 29761: _Tp __bet = (__x + __y) / (__x * __y); 29761: 29761: unsigned int __max_iter = 1000000; 29761: for (unsigned int __k = 1; __k < __max_iter; ++__k) 29761: { 29761: _Tp __term = (_Tp(1) + (__x + __y) / __k) 29761: / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); 29761: __bet *= __term; 29761: } 29761: 29761: return __bet; 29761: } 29761: # 189 "/usr/include/c++/14/tr1/beta_function.tcc" 3 29761: template 29761: inline _Tp 29761: __beta(_Tp __x, _Tp __y) 29761: { 29761: if (__isnan(__x) || __isnan(__y)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: return __beta_lgamma(__x, __y); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 50 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/ell_integral.tcc" 1 3 29761: # 45 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 59 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: namespace __detail 29761: { 29761: # 76 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_rf(_Tp __x, _Tp __y, _Tp __z) 29761: { 29761: const _Tp __min = std::numeric_limits<_Tp>::min(); 29761: const _Tp __lolim = _Tp(5) * __min; 29761: 29761: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 29761: std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") 29761: ); 29761: else if (__x + __y < __lolim || __x + __z < __lolim 29761: || __y + __z < __lolim) 29761: std::__throw_domain_error(("Argument too small in __ellint_rf")); 29761: else 29761: { 29761: const _Tp __c0 = _Tp(1) / _Tp(4); 29761: const _Tp __c1 = _Tp(1) / _Tp(24); 29761: const _Tp __c2 = _Tp(1) / _Tp(10); 29761: const _Tp __c3 = _Tp(3) / _Tp(44); 29761: const _Tp __c4 = _Tp(1) / _Tp(14); 29761: 29761: _Tp __xn = __x; 29761: _Tp __yn = __y; 29761: _Tp __zn = __z; 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); 29761: _Tp __mu; 29761: _Tp __xndev, __yndev, __zndev; 29761: 29761: const unsigned int __max_iter = 100; 29761: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29761: { 29761: __mu = (__xn + __yn + __zn) / _Tp(3); 29761: __xndev = 2 - (__mu + __xn) / __mu; 29761: __yndev = 2 - (__mu + __yn) / __mu; 29761: __zndev = 2 - (__mu + __zn) / __mu; 29761: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29761: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29761: if (__epsilon < __errtol) 29761: break; 29761: const _Tp __xnroot = std::sqrt(__xn); 29761: const _Tp __ynroot = std::sqrt(__yn); 29761: const _Tp __znroot = std::sqrt(__zn); 29761: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 29761: + __ynroot * __znroot; 29761: __xn = __c0 * (__xn + __lambda); 29761: __yn = __c0 * (__yn + __lambda); 29761: __zn = __c0 * (__zn + __lambda); 29761: } 29761: 29761: const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; 29761: const _Tp __e3 = __xndev * __yndev * __zndev; 29761: const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 29761: + __c4 * __e3; 29761: 29761: return __s / std::sqrt(__mu); 29761: } 29761: } 29761: # 153 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __comp_ellint_1_series(_Tp __k) 29761: { 29761: 29761: const _Tp __kk = __k * __k; 29761: 29761: _Tp __term = __kk / _Tp(4); 29761: _Tp __sum = _Tp(1) + __term; 29761: 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 2; __i < __max_iter; ++__i) 29761: { 29761: __term *= (2 * __i - 1) * __kk / (2 * __i); 29761: if (__term < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __sum += __term; 29761: } 29761: 29761: return __numeric_constants<_Tp>::__pi_2() * __sum; 29761: } 29761: # 191 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __comp_ellint_1(_Tp __k) 29761: { 29761: 29761: if (__isnan(__k)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (std::abs(__k) >= _Tp(1)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); 29761: } 29761: # 219 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_1(_Tp __k, _Tp __phi) 29761: { 29761: 29761: if (__isnan(__k) || __isnan(__phi)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (std::abs(__k) > _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in __ellint_1.")); 29761: else 29761: { 29761: 29761: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29761: + _Tp(0.5L)); 29761: const _Tp __phi_red = __phi 29761: - __n * __numeric_constants<_Tp>::__pi(); 29761: 29761: const _Tp __s = std::sin(__phi_red); 29761: const _Tp __c = std::cos(__phi_red); 29761: 29761: const _Tp __F = __s 29761: * __ellint_rf(__c * __c, 29761: _Tp(1) - __k * __k * __s * __s, _Tp(1)); 29761: 29761: if (__n == 0) 29761: return __F; 29761: else 29761: return __F + _Tp(2) * __n * __comp_ellint_1(__k); 29761: } 29761: } 29761: # 266 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __comp_ellint_2_series(_Tp __k) 29761: { 29761: 29761: const _Tp __kk = __k * __k; 29761: 29761: _Tp __term = __kk; 29761: _Tp __sum = __term; 29761: 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 2; __i < __max_iter; ++__i) 29761: { 29761: const _Tp __i2m = 2 * __i - 1; 29761: const _Tp __i2 = 2 * __i; 29761: __term *= __i2m * __i2m * __kk / (__i2 * __i2); 29761: if (__term < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __sum += __term / __i2m; 29761: } 29761: 29761: return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); 29761: } 29761: # 314 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_rd(_Tp __x, _Tp __y, _Tp __z) 29761: { 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 29761: const _Tp __max = std::numeric_limits<_Tp>::max(); 29761: const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); 29761: 29761: if (__x < _Tp(0) || __y < _Tp(0)) 29761: std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") 29761: ); 29761: else if (__x + __y < __lolim || __z < __lolim) 29761: std::__throw_domain_error(("Argument too small " "in __ellint_rd.") 29761: ); 29761: else 29761: { 29761: const _Tp __c0 = _Tp(1) / _Tp(4); 29761: const _Tp __c1 = _Tp(3) / _Tp(14); 29761: const _Tp __c2 = _Tp(1) / _Tp(6); 29761: const _Tp __c3 = _Tp(9) / _Tp(22); 29761: const _Tp __c4 = _Tp(3) / _Tp(26); 29761: 29761: _Tp __xn = __x; 29761: _Tp __yn = __y; 29761: _Tp __zn = __z; 29761: _Tp __sigma = _Tp(0); 29761: _Tp __power4 = _Tp(1); 29761: 29761: _Tp __mu; 29761: _Tp __xndev, __yndev, __zndev; 29761: 29761: const unsigned int __max_iter = 100; 29761: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29761: { 29761: __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); 29761: __xndev = (__mu - __xn) / __mu; 29761: __yndev = (__mu - __yn) / __mu; 29761: __zndev = (__mu - __zn) / __mu; 29761: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29761: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29761: if (__epsilon < __errtol) 29761: break; 29761: _Tp __xnroot = std::sqrt(__xn); 29761: _Tp __ynroot = std::sqrt(__yn); 29761: _Tp __znroot = std::sqrt(__zn); 29761: _Tp __lambda = __xnroot * (__ynroot + __znroot) 29761: + __ynroot * __znroot; 29761: __sigma += __power4 / (__znroot * (__zn + __lambda)); 29761: __power4 *= __c0; 29761: __xn = __c0 * (__xn + __lambda); 29761: __yn = __c0 * (__yn + __lambda); 29761: __zn = __c0 * (__zn + __lambda); 29761: } 29761: 29761: _Tp __ea = __xndev * __yndev; 29761: _Tp __eb = __zndev * __zndev; 29761: _Tp __ec = __ea - __eb; 29761: _Tp __ed = __ea - _Tp(6) * __eb; 29761: _Tp __ef = __ed + __ec + __ec; 29761: _Tp __s1 = __ed * (-__c1 + __c3 * __ed 29761: / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef 29761: / _Tp(2)); 29761: _Tp __s2 = __zndev 29761: * (__c2 * __ef 29761: + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); 29761: 29761: return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) 29761: / (__mu * std::sqrt(__mu)); 29761: } 29761: } 29761: # 399 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __comp_ellint_2(_Tp __k) 29761: { 29761: 29761: if (__isnan(__k)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (std::abs(__k) == 1) 29761: return _Tp(1); 29761: else if (std::abs(__k) > _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); 29761: else 29761: { 29761: const _Tp __kk = __k * __k; 29761: 29761: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 29761: - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); 29761: } 29761: } 29761: # 433 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_2(_Tp __k, _Tp __phi) 29761: { 29761: 29761: if (__isnan(__k) || __isnan(__phi)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (std::abs(__k) > _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in __ellint_2.")); 29761: else 29761: { 29761: 29761: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29761: + _Tp(0.5L)); 29761: const _Tp __phi_red = __phi 29761: - __n * __numeric_constants<_Tp>::__pi(); 29761: 29761: const _Tp __kk = __k * __k; 29761: const _Tp __s = std::sin(__phi_red); 29761: const _Tp __ss = __s * __s; 29761: const _Tp __sss = __ss * __s; 29761: const _Tp __c = std::cos(__phi_red); 29761: const _Tp __cc = __c * __c; 29761: 29761: const _Tp __E = __s 29761: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29761: - __kk * __sss 29761: * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29761: / _Tp(3); 29761: 29761: if (__n == 0) 29761: return __E; 29761: else 29761: return __E + _Tp(2) * __n * __comp_ellint_2(__k); 29761: } 29761: } 29761: # 492 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_rc(_Tp __x, _Tp __y) 29761: { 29761: const _Tp __min = std::numeric_limits<_Tp>::min(); 29761: const _Tp __lolim = _Tp(5) * __min; 29761: 29761: if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) 29761: std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") 29761: ); 29761: else 29761: { 29761: const _Tp __c0 = _Tp(1) / _Tp(4); 29761: const _Tp __c1 = _Tp(1) / _Tp(7); 29761: const _Tp __c2 = _Tp(9) / _Tp(22); 29761: const _Tp __c3 = _Tp(3) / _Tp(10); 29761: const _Tp __c4 = _Tp(3) / _Tp(8); 29761: 29761: _Tp __xn = __x; 29761: _Tp __yn = __y; 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); 29761: _Tp __mu; 29761: _Tp __sn; 29761: 29761: const unsigned int __max_iter = 100; 29761: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29761: { 29761: __mu = (__xn + _Tp(2) * __yn) / _Tp(3); 29761: __sn = (__yn + __mu) / __mu - _Tp(2); 29761: if (std::abs(__sn) < __errtol) 29761: break; 29761: const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) 29761: + __yn; 29761: __xn = __c0 * (__xn + __lambda); 29761: __yn = __c0 * (__yn + __lambda); 29761: } 29761: 29761: _Tp __s = __sn * __sn 29761: * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); 29761: 29761: return (_Tp(1) + __s) / std::sqrt(__mu); 29761: } 29761: } 29761: # 561 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) 29761: { 29761: const _Tp __min = std::numeric_limits<_Tp>::min(); 29761: const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); 29761: 29761: if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) 29761: std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") 29761: ); 29761: else if (__x + __y < __lolim || __x + __z < __lolim 29761: || __y + __z < __lolim || __p < __lolim) 29761: std::__throw_domain_error(("Argument too small " "in __ellint_rj") 29761: ); 29761: else 29761: { 29761: const _Tp __c0 = _Tp(1) / _Tp(4); 29761: const _Tp __c1 = _Tp(3) / _Tp(14); 29761: const _Tp __c2 = _Tp(1) / _Tp(3); 29761: const _Tp __c3 = _Tp(3) / _Tp(22); 29761: const _Tp __c4 = _Tp(3) / _Tp(26); 29761: 29761: _Tp __xn = __x; 29761: _Tp __yn = __y; 29761: _Tp __zn = __z; 29761: _Tp __pn = __p; 29761: _Tp __sigma = _Tp(0); 29761: _Tp __power4 = _Tp(1); 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); 29761: 29761: _Tp __mu; 29761: _Tp __xndev, __yndev, __zndev, __pndev; 29761: 29761: const unsigned int __max_iter = 100; 29761: for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) 29761: { 29761: __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); 29761: __xndev = (__mu - __xn) / __mu; 29761: __yndev = (__mu - __yn) / __mu; 29761: __zndev = (__mu - __zn) / __mu; 29761: __pndev = (__mu - __pn) / __mu; 29761: _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); 29761: __epsilon = std::max(__epsilon, std::abs(__zndev)); 29761: __epsilon = std::max(__epsilon, std::abs(__pndev)); 29761: if (__epsilon < __errtol) 29761: break; 29761: const _Tp __xnroot = std::sqrt(__xn); 29761: const _Tp __ynroot = std::sqrt(__yn); 29761: const _Tp __znroot = std::sqrt(__zn); 29761: const _Tp __lambda = __xnroot * (__ynroot + __znroot) 29761: + __ynroot * __znroot; 29761: const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) 29761: + __xnroot * __ynroot * __znroot; 29761: const _Tp __alpha2 = __alpha1 * __alpha1; 29761: const _Tp __beta = __pn * (__pn + __lambda) 29761: * (__pn + __lambda); 29761: __sigma += __power4 * __ellint_rc(__alpha2, __beta); 29761: __power4 *= __c0; 29761: __xn = __c0 * (__xn + __lambda); 29761: __yn = __c0 * (__yn + __lambda); 29761: __zn = __c0 * (__zn + __lambda); 29761: __pn = __c0 * (__pn + __lambda); 29761: } 29761: 29761: _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; 29761: _Tp __eb = __xndev * __yndev * __zndev; 29761: _Tp __ec = __pndev * __pndev; 29761: _Tp __e2 = __ea - _Tp(3) * __ec; 29761: _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); 29761: _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) 29761: - _Tp(3) * __c4 * __e3 / _Tp(2)); 29761: _Tp __s2 = __eb * (__c2 / _Tp(2) 29761: + __pndev * (-__c3 - __c3 + __pndev * __c4)); 29761: _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) 29761: - __c2 * __pndev * __ec; 29761: 29761: return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) 29761: / (__mu * std::sqrt(__mu)); 29761: } 29761: } 29761: # 661 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __comp_ellint_3(_Tp __k, _Tp __nu) 29761: { 29761: 29761: if (__isnan(__k) || __isnan(__nu)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__nu == _Tp(1)) 29761: return std::numeric_limits<_Tp>::infinity(); 29761: else if (std::abs(__k) > _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); 29761: else 29761: { 29761: const _Tp __kk = __k * __k; 29761: 29761: return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) 29761: + __nu 29761: * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) 29761: / _Tp(3); 29761: } 29761: } 29761: # 701 "/usr/include/c++/14/tr1/ell_integral.tcc" 3 29761: template 29761: _Tp 29761: __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) 29761: { 29761: 29761: if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (std::abs(__k) > _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in __ellint_3.")); 29761: else 29761: { 29761: 29761: const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() 29761: + _Tp(0.5L)); 29761: const _Tp __phi_red = __phi 29761: - __n * __numeric_constants<_Tp>::__pi(); 29761: 29761: const _Tp __kk = __k * __k; 29761: const _Tp __s = std::sin(__phi_red); 29761: const _Tp __ss = __s * __s; 29761: const _Tp __sss = __ss * __s; 29761: const _Tp __c = std::cos(__phi_red); 29761: const _Tp __cc = __c * __c; 29761: 29761: const _Tp __Pi = __s 29761: * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) 29761: + __nu * __sss 29761: * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), 29761: _Tp(1) - __nu * __ss) / _Tp(3); 29761: 29761: if (__n == 0) 29761: return __Pi; 29761: else 29761: return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 51 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/exp_integral.tcc" 1 3 29761: # 50 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 64 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: namespace __detail 29761: { 29761: template _Tp __expint_E1(_Tp); 29761: # 81 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_E1_series(_Tp __x) 29761: { 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: _Tp __term = _Tp(1); 29761: _Tp __esum = _Tp(0); 29761: _Tp __osum = _Tp(0); 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29761: { 29761: __term *= - __x / __i; 29761: if (std::abs(__term) < __eps) 29761: break; 29761: if (__term >= _Tp(0)) 29761: __esum += __term / __i; 29761: else 29761: __osum += __term / __i; 29761: } 29761: 29761: return - __esum - __osum 29761: - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); 29761: } 29761: # 118 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_E1_asymp(_Tp __x) 29761: { 29761: _Tp __term = _Tp(1); 29761: _Tp __esum = _Tp(1); 29761: _Tp __osum = _Tp(0); 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29761: { 29761: _Tp __prev = __term; 29761: __term *= - __i / __x; 29761: if (std::abs(__term) > std::abs(__prev)) 29761: break; 29761: if (__term >= _Tp(0)) 29761: __esum += __term; 29761: else 29761: __osum += __term; 29761: } 29761: 29761: return std::exp(- __x) * (__esum + __osum) / __x; 29761: } 29761: # 155 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_En_series(unsigned int __n, _Tp __x) 29761: { 29761: const unsigned int __max_iter = 1000; 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const int __nm1 = __n - 1; 29761: _Tp __ans = (__nm1 != 0 29761: ? _Tp(1) / __nm1 : -std::log(__x) 29761: - __numeric_constants<_Tp>::__gamma_e()); 29761: _Tp __fact = _Tp(1); 29761: for (int __i = 1; __i <= __max_iter; ++__i) 29761: { 29761: __fact *= -__x / _Tp(__i); 29761: _Tp __del; 29761: if ( __i != __nm1 ) 29761: __del = -__fact / _Tp(__i - __nm1); 29761: else 29761: { 29761: _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); 29761: for (int __ii = 1; __ii <= __nm1; ++__ii) 29761: __psi += _Tp(1) / _Tp(__ii); 29761: __del = __fact * (__psi - std::log(__x)); 29761: } 29761: __ans += __del; 29761: if (std::abs(__del) < __eps * std::abs(__ans)) 29761: return __ans; 29761: } 29761: std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") 29761: ); 29761: } 29761: # 201 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_En_cont_frac(unsigned int __n, _Tp __x) 29761: { 29761: const unsigned int __max_iter = 1000; 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __fp_min = std::numeric_limits<_Tp>::min(); 29761: const int __nm1 = __n - 1; 29761: _Tp __b = __x + _Tp(__n); 29761: _Tp __c = _Tp(1) / __fp_min; 29761: _Tp __d = _Tp(1) / __b; 29761: _Tp __h = __d; 29761: for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) 29761: { 29761: _Tp __a = -_Tp(__i * (__nm1 + __i)); 29761: __b += _Tp(2); 29761: __d = _Tp(1) / (__a * __d + __b); 29761: __c = __b + __a / __c; 29761: const _Tp __del = __c * __d; 29761: __h *= __del; 29761: if (std::abs(__del - _Tp(1)) < __eps) 29761: { 29761: const _Tp __ans = __h * std::exp(-__x); 29761: return __ans; 29761: } 29761: } 29761: std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") 29761: ); 29761: } 29761: # 246 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_En_recursion(unsigned int __n, _Tp __x) 29761: { 29761: _Tp __En; 29761: _Tp __E1 = __expint_E1(__x); 29761: if (__x < _Tp(__n)) 29761: { 29761: 29761: __En = __E1; 29761: for (unsigned int __j = 2; __j < __n; ++__j) 29761: __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); 29761: } 29761: else 29761: { 29761: 29761: __En = _Tp(1); 29761: const int __N = __n + 20; 29761: _Tp __save = _Tp(0); 29761: for (int __j = __N; __j > 0; --__j) 29761: { 29761: __En = (std::exp(-__x) - __j * __En) / __x; 29761: if (__j == __n) 29761: __save = __En; 29761: } 29761: _Tp __norm = __En / __E1; 29761: __En /= __norm; 29761: } 29761: 29761: return __En; 29761: } 29761: # 290 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_Ei_series(_Tp __x) 29761: { 29761: _Tp __term = _Tp(1); 29761: _Tp __sum = _Tp(0); 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29761: { 29761: __term *= __x / __i; 29761: __sum += __term / __i; 29761: if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) 29761: break; 29761: } 29761: 29761: return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); 29761: } 29761: # 321 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_Ei_asymp(_Tp __x) 29761: { 29761: _Tp __term = _Tp(1); 29761: _Tp __sum = _Tp(1); 29761: const unsigned int __max_iter = 1000; 29761: for (unsigned int __i = 1; __i < __max_iter; ++__i) 29761: { 29761: _Tp __prev = __term; 29761: __term *= __i / __x; 29761: if (__term < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: if (__term >= __prev) 29761: break; 29761: __sum += __term; 29761: } 29761: 29761: return std::exp(__x) * __sum / __x; 29761: } 29761: # 354 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_Ei(_Tp __x) 29761: { 29761: if (__x < _Tp(0)) 29761: return -__expint_E1(-__x); 29761: else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) 29761: return __expint_Ei_series(__x); 29761: else 29761: return __expint_Ei_asymp(__x); 29761: } 29761: # 378 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_E1(_Tp __x) 29761: { 29761: if (__x < _Tp(0)) 29761: return -__expint_Ei(-__x); 29761: else if (__x < _Tp(1)) 29761: return __expint_E1_series(__x); 29761: else if (__x < _Tp(100)) 29761: return __expint_En_cont_frac(1, __x); 29761: else 29761: return __expint_E1_asymp(__x); 29761: } 29761: # 408 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_asymp(unsigned int __n, _Tp __x) 29761: { 29761: _Tp __term = _Tp(1); 29761: _Tp __sum = _Tp(1); 29761: for (unsigned int __i = 1; __i <= __n; ++__i) 29761: { 29761: _Tp __prev = __term; 29761: __term *= -(__n - __i + 1) / __x; 29761: if (std::abs(__term) > std::abs(__prev)) 29761: break; 29761: __sum += __term; 29761: } 29761: 29761: return std::exp(-__x) * __sum / __x; 29761: } 29761: # 442 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint_large_n(unsigned int __n, _Tp __x) 29761: { 29761: const _Tp __xpn = __x + __n; 29761: const _Tp __xpn2 = __xpn * __xpn; 29761: _Tp __term = _Tp(1); 29761: _Tp __sum = _Tp(1); 29761: for (unsigned int __i = 1; __i <= __n; ++__i) 29761: { 29761: _Tp __prev = __term; 29761: __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; 29761: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __sum += __term; 29761: } 29761: 29761: return std::exp(-__x) * __sum / __xpn; 29761: } 29761: # 476 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: _Tp 29761: __expint(unsigned int __n, _Tp __x) 29761: { 29761: 29761: if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__n <= 1 && __x == _Tp(0)) 29761: return std::numeric_limits<_Tp>::infinity(); 29761: else 29761: { 29761: _Tp __E0 = std::exp(__x) / __x; 29761: if (__n == 0) 29761: return __E0; 29761: 29761: _Tp __E1 = __expint_E1(__x); 29761: if (__n == 1) 29761: return __E1; 29761: 29761: if (__x == _Tp(0)) 29761: return _Tp(1) / static_cast<_Tp>(__n - 1); 29761: 29761: _Tp __En = __expint_En_recursion(__n, __x); 29761: 29761: return __En; 29761: } 29761: } 29761: # 516 "/usr/include/c++/14/tr1/exp_integral.tcc" 3 29761: template 29761: inline _Tp 29761: __expint(_Tp __x) 29761: { 29761: if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: return __expint_Ei(__x); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 52 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/hypergeometric.tcc" 1 3 29761: # 44 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 60 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: namespace __detail 29761: { 29761: # 83 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) 29761: { 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: _Tp __term = _Tp(1); 29761: _Tp __Fac = _Tp(1); 29761: const unsigned int __max_iter = 100000; 29761: unsigned int __i; 29761: for (__i = 0; __i < __max_iter; ++__i) 29761: { 29761: __term *= (__a + _Tp(__i)) * __x 29761: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 29761: if (std::abs(__term) < __eps) 29761: { 29761: break; 29761: } 29761: __Fac += __term; 29761: } 29761: if (__i == __max_iter) 29761: std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") 29761: ); 29761: 29761: return __Fac; 29761: } 29761: # 120 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) 29761: { 29761: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 29761: const int __nmax = 20000; 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __x = -__xin; 29761: const _Tp __x3 = __x * __x * __x; 29761: const _Tp __t0 = __a / __c; 29761: const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); 29761: const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); 29761: _Tp __F = _Tp(1); 29761: _Tp __prec; 29761: 29761: _Tp __Bnm3 = _Tp(1); 29761: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 29761: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 29761: 29761: _Tp __Anm3 = _Tp(1); 29761: _Tp __Anm2 = __Bnm2 - __t0 * __x; 29761: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 29761: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 29761: 29761: int __n = 3; 29761: while(1) 29761: { 29761: _Tp __npam1 = _Tp(__n - 1) + __a; 29761: _Tp __npcm1 = _Tp(__n - 1) + __c; 29761: _Tp __npam2 = _Tp(__n - 2) + __a; 29761: _Tp __npcm2 = _Tp(__n - 2) + __c; 29761: _Tp __tnm1 = _Tp(2 * __n - 1); 29761: _Tp __tnm3 = _Tp(2 * __n - 3); 29761: _Tp __tnm5 = _Tp(2 * __n - 5); 29761: _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); 29761: _Tp __F2 = (_Tp(__n) + __a) * __npam1 29761: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 29761: _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) 29761: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 29761: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 29761: _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) 29761: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 29761: 29761: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 29761: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 29761: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 29761: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 29761: _Tp __r = __An / __Bn; 29761: 29761: __prec = std::abs((__F - __r) / __F); 29761: __F = __r; 29761: 29761: if (__prec < __eps || __n > __nmax) 29761: break; 29761: 29761: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 29761: { 29761: __An /= __big; 29761: __Bn /= __big; 29761: __Anm1 /= __big; 29761: __Bnm1 /= __big; 29761: __Anm2 /= __big; 29761: __Bnm2 /= __big; 29761: __Anm3 /= __big; 29761: __Bnm3 /= __big; 29761: } 29761: else if (std::abs(__An) < _Tp(1) / __big 29761: || std::abs(__Bn) < _Tp(1) / __big) 29761: { 29761: __An *= __big; 29761: __Bn *= __big; 29761: __Anm1 *= __big; 29761: __Bnm1 *= __big; 29761: __Anm2 *= __big; 29761: __Bnm2 *= __big; 29761: __Anm3 *= __big; 29761: __Bnm3 *= __big; 29761: } 29761: 29761: ++__n; 29761: __Bnm3 = __Bnm2; 29761: __Bnm2 = __Bnm1; 29761: __Bnm1 = __Bn; 29761: __Anm3 = __Anm2; 29761: __Anm2 = __Anm1; 29761: __Anm1 = __An; 29761: } 29761: 29761: if (__n >= __nmax) 29761: std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") 29761: ); 29761: 29761: return __F; 29761: } 29761: # 227 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) 29761: { 29761: 29761: const _Tp __c_nint = ::std::nearbyint(__c); 29761: 29761: 29761: 29761: if (__isnan(__a) || __isnan(__c) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__c_nint == __c && __c_nint <= 0) 29761: return std::numeric_limits<_Tp>::infinity(); 29761: else if (__a == _Tp(0)) 29761: return _Tp(1); 29761: else if (__c == __a) 29761: return std::exp(__x); 29761: else if (__x < _Tp(0)) 29761: return __conf_hyperg_luke(__a, __c, __x); 29761: else 29761: return __conf_hyperg_series(__a, __c, __x); 29761: } 29761: # 271 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29761: { 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: _Tp __term = _Tp(1); 29761: _Tp __Fabc = _Tp(1); 29761: const unsigned int __max_iter = 100000; 29761: unsigned int __i; 29761: for (__i = 0; __i < __max_iter; ++__i) 29761: { 29761: __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x 29761: / ((__c + _Tp(__i)) * _Tp(1 + __i)); 29761: if (std::abs(__term) < __eps) 29761: { 29761: break; 29761: } 29761: __Fabc += __term; 29761: } 29761: if (__i == __max_iter) 29761: std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") 29761: ); 29761: 29761: return __Fabc; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _Tp 29761: __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) 29761: { 29761: const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); 29761: const int __nmax = 20000; 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __x = -__xin; 29761: const _Tp __x3 = __x * __x * __x; 29761: const _Tp __t0 = __a * __b / __c; 29761: const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); 29761: const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) 29761: / (_Tp(2) * (__c + _Tp(1))); 29761: 29761: _Tp __F = _Tp(1); 29761: 29761: _Tp __Bnm3 = _Tp(1); 29761: _Tp __Bnm2 = _Tp(1) + __t1 * __x; 29761: _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); 29761: 29761: _Tp __Anm3 = _Tp(1); 29761: _Tp __Anm2 = __Bnm2 - __t0 * __x; 29761: _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x 29761: + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; 29761: 29761: int __n = 3; 29761: while (1) 29761: { 29761: const _Tp __npam1 = _Tp(__n - 1) + __a; 29761: const _Tp __npbm1 = _Tp(__n - 1) + __b; 29761: const _Tp __npcm1 = _Tp(__n - 1) + __c; 29761: const _Tp __npam2 = _Tp(__n - 2) + __a; 29761: const _Tp __npbm2 = _Tp(__n - 2) + __b; 29761: const _Tp __npcm2 = _Tp(__n - 2) + __c; 29761: const _Tp __tnm1 = _Tp(2 * __n - 1); 29761: const _Tp __tnm3 = _Tp(2 * __n - 3); 29761: const _Tp __tnm5 = _Tp(2 * __n - 5); 29761: const _Tp __n2 = __n * __n; 29761: const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n 29761: + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) 29761: / (_Tp(2) * __tnm3 * __npcm1); 29761: const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n 29761: + _Tp(2) - __a * __b) * __npam1 * __npbm1 29761: / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); 29761: const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 29761: * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) 29761: / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 29761: * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); 29761: const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) 29761: / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); 29761: 29761: _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 29761: + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; 29761: _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 29761: + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; 29761: const _Tp __r = __An / __Bn; 29761: 29761: const _Tp __prec = std::abs((__F - __r) / __F); 29761: __F = __r; 29761: 29761: if (__prec < __eps || __n > __nmax) 29761: break; 29761: 29761: if (std::abs(__An) > __big || std::abs(__Bn) > __big) 29761: { 29761: __An /= __big; 29761: __Bn /= __big; 29761: __Anm1 /= __big; 29761: __Bnm1 /= __big; 29761: __Anm2 /= __big; 29761: __Bnm2 /= __big; 29761: __Anm3 /= __big; 29761: __Bnm3 /= __big; 29761: } 29761: else if (std::abs(__An) < _Tp(1) / __big 29761: || std::abs(__Bn) < _Tp(1) / __big) 29761: { 29761: __An *= __big; 29761: __Bn *= __big; 29761: __Anm1 *= __big; 29761: __Bnm1 *= __big; 29761: __Anm2 *= __big; 29761: __Bnm2 *= __big; 29761: __Anm3 *= __big; 29761: __Bnm3 *= __big; 29761: } 29761: 29761: ++__n; 29761: __Bnm3 = __Bnm2; 29761: __Bnm2 = __Bnm1; 29761: __Bnm1 = __Bn; 29761: __Anm3 = __Anm2; 29761: __Anm2 = __Anm1; 29761: __Anm1 = __An; 29761: } 29761: 29761: if (__n >= __nmax) 29761: std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") 29761: ); 29761: 29761: return __F; 29761: } 29761: # 438 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29761: { 29761: const _Tp __d = __c - __a - __b; 29761: const int __intd = std::floor(__d + _Tp(0.5L)); 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __toler = _Tp(1000) * __eps; 29761: const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); 29761: const bool __d_integer = (std::abs(__d - __intd) < __toler); 29761: 29761: if (__d_integer) 29761: { 29761: const _Tp __ln_omx = std::log(_Tp(1) - __x); 29761: const _Tp __ad = std::abs(__d); 29761: _Tp __F1, __F2; 29761: 29761: _Tp __d1, __d2; 29761: if (__d >= _Tp(0)) 29761: { 29761: __d1 = __d; 29761: __d2 = _Tp(0); 29761: } 29761: else 29761: { 29761: __d1 = _Tp(0); 29761: __d2 = __d; 29761: } 29761: 29761: const _Tp __lng_c = __log_gamma(__c); 29761: 29761: 29761: if (__ad < __eps) 29761: { 29761: 29761: __F1 = _Tp(0); 29761: } 29761: else 29761: { 29761: 29761: bool __ok_d1 = true; 29761: _Tp __lng_ad, __lng_ad1, __lng_bd1; 29761: try 29761: { 29761: __lng_ad = __log_gamma(__ad); 29761: __lng_ad1 = __log_gamma(__a + __d1); 29761: __lng_bd1 = __log_gamma(__b + __d1); 29761: } 29761: catch(...) 29761: { 29761: __ok_d1 = false; 29761: } 29761: 29761: if (__ok_d1) 29761: { 29761: 29761: 29761: 29761: _Tp __sum1 = _Tp(1); 29761: _Tp __term = _Tp(1); 29761: _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx 29761: - __lng_ad1 - __lng_bd1; 29761: 29761: 29761: 29761: for (int __i = 1; __i < __ad; ++__i) 29761: { 29761: const int __j = __i - 1; 29761: __term *= (__a + __d2 + __j) * (__b + __d2 + __j) 29761: / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); 29761: __sum1 += __term; 29761: } 29761: 29761: if (__ln_pre1 > __log_max) 29761: std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") 29761: ); 29761: else 29761: __F1 = std::exp(__ln_pre1) * __sum1; 29761: } 29761: else 29761: { 29761: 29761: 29761: __F1 = _Tp(0); 29761: } 29761: } 29761: 29761: 29761: bool __ok_d2 = true; 29761: _Tp __lng_ad2, __lng_bd2; 29761: try 29761: { 29761: __lng_ad2 = __log_gamma(__a + __d2); 29761: __lng_bd2 = __log_gamma(__b + __d2); 29761: } 29761: catch(...) 29761: { 29761: __ok_d2 = false; 29761: } 29761: 29761: if (__ok_d2) 29761: { 29761: 29761: 29761: const int __maxiter = 2000; 29761: const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); 29761: const _Tp __psi_1pd = __psi(_Tp(1) + __ad); 29761: const _Tp __psi_apd1 = __psi(__a + __d1); 29761: const _Tp __psi_bpd1 = __psi(__b + __d1); 29761: 29761: _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 29761: - __psi_bpd1 - __ln_omx; 29761: _Tp __fact = _Tp(1); 29761: _Tp __sum2 = __psi_term; 29761: _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx 29761: - __lng_ad2 - __lng_bd2; 29761: 29761: 29761: int __j; 29761: for (__j = 1; __j < __maxiter; ++__j) 29761: { 29761: 29761: 29761: const _Tp __term1 = _Tp(1) / _Tp(__j) 29761: + _Tp(1) / (__ad + __j); 29761: const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) 29761: + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); 29761: __psi_term += __term1 - __term2; 29761: __fact *= (__a + __d1 + _Tp(__j - 1)) 29761: * (__b + __d1 + _Tp(__j - 1)) 29761: / ((__ad + __j) * __j) * (_Tp(1) - __x); 29761: const _Tp __delta = __fact * __psi_term; 29761: __sum2 += __delta; 29761: if (std::abs(__delta) < __eps * std::abs(__sum2)) 29761: break; 29761: } 29761: if (__j == __maxiter) 29761: std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") 29761: ); 29761: 29761: if (__sum2 == _Tp(0)) 29761: __F2 = _Tp(0); 29761: else 29761: __F2 = std::exp(__ln_pre2) * __sum2; 29761: } 29761: else 29761: { 29761: 29761: 29761: __F2 = _Tp(0); 29761: } 29761: 29761: const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); 29761: const _Tp __F = __F1 + __sgn_2 * __F2; 29761: 29761: return __F; 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: 29761: bool __ok1 = true; 29761: _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); 29761: _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); 29761: try 29761: { 29761: __sgn_g1ca = __log_gamma_sign(__c - __a); 29761: __ln_g1ca = __log_gamma(__c - __a); 29761: __sgn_g1cb = __log_gamma_sign(__c - __b); 29761: __ln_g1cb = __log_gamma(__c - __b); 29761: } 29761: catch(...) 29761: { 29761: __ok1 = false; 29761: } 29761: 29761: bool __ok2 = true; 29761: _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); 29761: _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); 29761: try 29761: { 29761: __sgn_g2a = __log_gamma_sign(__a); 29761: __ln_g2a = __log_gamma(__a); 29761: __sgn_g2b = __log_gamma_sign(__b); 29761: __ln_g2b = __log_gamma(__b); 29761: } 29761: catch(...) 29761: { 29761: __ok2 = false; 29761: } 29761: 29761: const _Tp __sgn_gc = __log_gamma_sign(__c); 29761: const _Tp __ln_gc = __log_gamma(__c); 29761: const _Tp __sgn_gd = __log_gamma_sign(__d); 29761: const _Tp __ln_gd = __log_gamma(__d); 29761: const _Tp __sgn_gmd = __log_gamma_sign(-__d); 29761: const _Tp __ln_gmd = __log_gamma(-__d); 29761: 29761: const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; 29761: const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; 29761: 29761: _Tp __pre1, __pre2; 29761: if (__ok1 && __ok2) 29761: { 29761: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 29761: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 29761: + __d * std::log(_Tp(1) - __x); 29761: if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) 29761: { 29761: __pre1 = std::exp(__ln_pre1); 29761: __pre2 = std::exp(__ln_pre2); 29761: __pre1 *= __sgn1; 29761: __pre2 *= __sgn2; 29761: } 29761: else 29761: { 29761: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29761: ); 29761: } 29761: } 29761: else if (__ok1 && !__ok2) 29761: { 29761: _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; 29761: if (__ln_pre1 < __log_max) 29761: { 29761: __pre1 = std::exp(__ln_pre1); 29761: __pre1 *= __sgn1; 29761: __pre2 = _Tp(0); 29761: } 29761: else 29761: { 29761: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29761: ); 29761: } 29761: } 29761: else if (!__ok1 && __ok2) 29761: { 29761: _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b 29761: + __d * std::log(_Tp(1) - __x); 29761: if (__ln_pre2 < __log_max) 29761: { 29761: __pre1 = _Tp(0); 29761: __pre2 = std::exp(__ln_pre2); 29761: __pre2 *= __sgn2; 29761: } 29761: else 29761: { 29761: std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") 29761: ); 29761: } 29761: } 29761: else 29761: { 29761: __pre1 = _Tp(0); 29761: __pre2 = _Tp(0); 29761: std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") 29761: ); 29761: } 29761: 29761: const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, 29761: _Tp(1) - __x); 29761: const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, 29761: _Tp(1) - __x); 29761: 29761: const _Tp __F = __pre1 * __F1 + __pre2 * __F2; 29761: 29761: return __F; 29761: } 29761: } 29761: # 728 "/usr/include/c++/14/tr1/hypergeometric.tcc" 3 29761: template 29761: _Tp 29761: __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) 29761: { 29761: 29761: const _Tp __a_nint = ::std::nearbyint(__a); 29761: const _Tp __b_nint = ::std::nearbyint(__b); 29761: const _Tp __c_nint = ::std::nearbyint(__c); 29761: 29761: 29761: 29761: 29761: 29761: const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); 29761: if (std::abs(__x) >= _Tp(1)) 29761: std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") 29761: ); 29761: else if (__isnan(__a) || __isnan(__b) 29761: || __isnan(__c) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__c_nint == __c && __c_nint <= _Tp(0)) 29761: return std::numeric_limits<_Tp>::infinity(); 29761: else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) 29761: return std::pow(_Tp(1) - __x, __c - __a - __b); 29761: else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) 29761: && __x >= _Tp(0) && __x < _Tp(0.995L)) 29761: return __hyperg_series(__a, __b, __c, __x); 29761: else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) 29761: { 29761: 29761: 29761: if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) 29761: return __hyperg_series(__a_nint, __b, __c, __x); 29761: else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) 29761: return __hyperg_series(__a, __b_nint, __c, __x); 29761: else if (__x < -_Tp(0.25L)) 29761: return __hyperg_luke(__a, __b, __c, __x); 29761: else if (__x < _Tp(0.5L)) 29761: return __hyperg_series(__a, __b, __c, __x); 29761: else 29761: if (std::abs(__c) > _Tp(10)) 29761: return __hyperg_series(__a, __b, __c, __x); 29761: else 29761: return __hyperg_reflect(__a, __b, __c, __x); 29761: } 29761: else 29761: return __hyperg_luke(__a, __b, __c, __x); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 53 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/legendre_function.tcc" 1 3 29761: # 49 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 65 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29761: namespace __detail 29761: { 29761: # 80 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29761: template 29761: _Tp 29761: __poly_legendre_p(unsigned int __l, _Tp __x) 29761: { 29761: 29761: if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x == +_Tp(1)) 29761: return +_Tp(1); 29761: else if (__x == -_Tp(1)) 29761: return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); 29761: else 29761: { 29761: _Tp __p_lm2 = _Tp(1); 29761: if (__l == 0) 29761: return __p_lm2; 29761: 29761: _Tp __p_lm1 = __x; 29761: if (__l == 1) 29761: return __p_lm1; 29761: 29761: _Tp __p_l = 0; 29761: for (unsigned int __ll = 2; __ll <= __l; ++__ll) 29761: { 29761: 29761: 29761: __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 29761: - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); 29761: __p_lm2 = __p_lm1; 29761: __p_lm1 = __p_l; 29761: } 29761: 29761: return __p_l; 29761: } 29761: } 29761: # 136 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29761: template 29761: _Tp 29761: __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, 29761: _Tp __phase = _Tp(+1)) 29761: { 29761: 29761: if (__m > __l) 29761: return _Tp(0); 29761: else if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__m == 0) 29761: return __poly_legendre_p(__l, __x); 29761: else 29761: { 29761: _Tp __p_mm = _Tp(1); 29761: if (__m > 0) 29761: { 29761: 29761: 29761: _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); 29761: _Tp __fact = _Tp(1); 29761: for (unsigned int __i = 1; __i <= __m; ++__i) 29761: { 29761: __p_mm *= __phase * __fact * __root; 29761: __fact += _Tp(2); 29761: } 29761: } 29761: if (__l == __m) 29761: return __p_mm; 29761: 29761: _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; 29761: if (__l == __m + 1) 29761: return __p_mp1m; 29761: 29761: _Tp __p_lm2m = __p_mm; 29761: _Tp __P_lm1m = __p_mp1m; 29761: _Tp __p_lm = _Tp(0); 29761: for (unsigned int __j = __m + 2; __j <= __l; ++__j) 29761: { 29761: __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m 29761: - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); 29761: __p_lm2m = __P_lm1m; 29761: __P_lm1m = __p_lm; 29761: } 29761: 29761: return __p_lm; 29761: } 29761: } 29761: # 214 "/usr/include/c++/14/tr1/legendre_function.tcc" 3 29761: template 29761: _Tp 29761: __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 29761: { 29761: if (__isnan(__theta)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: 29761: const _Tp __x = std::cos(__theta); 29761: 29761: if (__m > __l) 29761: return _Tp(0); 29761: else if (__m == 0) 29761: { 29761: _Tp __P = __poly_legendre_p(__l, __x); 29761: _Tp __fact = std::sqrt(_Tp(2 * __l + 1) 29761: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 29761: __P *= __fact; 29761: return __P; 29761: } 29761: else if (__x == _Tp(1) || __x == -_Tp(1)) 29761: { 29761: 29761: return _Tp(0); 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: 29761: 29761: const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); 29761: const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); 29761: 29761: const _Tp __lncirc = ::std::log1p(-__x * __x); 29761: 29761: 29761: 29761: 29761: 29761: const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) 29761: - ::std::lgamma(_Tp(__m)); 29761: 29761: 29761: 29761: 29761: const _Tp __lnpre_val = 29761: -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() 29761: + _Tp(0.5L) * (__lnpoch + __m * __lncirc); 29761: const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) 29761: / (_Tp(4) * __numeric_constants<_Tp>::__pi())); 29761: _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); 29761: _Tp __y_mp1m = __y_mp1m_factor * __y_mm; 29761: 29761: if (__l == __m) 29761: return __y_mm; 29761: else if (__l == __m + 1) 29761: return __y_mp1m; 29761: else 29761: { 29761: _Tp __y_lm = _Tp(0); 29761: 29761: 29761: for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) 29761: { 29761: const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); 29761: const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); 29761: const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) 29761: * _Tp(2 * __ll - 1)); 29761: const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) 29761: / _Tp(2 * __ll - 3)); 29761: __y_lm = (__x * __y_mp1m * __fact1 29761: - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); 29761: __y_mm = __y_mp1m; 29761: __y_mp1m = __y_lm; 29761: } 29761: 29761: return __y_lm; 29761: } 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 54 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 1 3 29761: # 51 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 65 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: namespace __detail 29761: { 29761: # 83 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: template 29761: void 29761: __bessel_ik(_Tp __nu, _Tp __x, 29761: _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) 29761: { 29761: if (__x == _Tp(0)) 29761: { 29761: if (__nu == _Tp(0)) 29761: { 29761: __Inu = _Tp(1); 29761: __Ipnu = _Tp(0); 29761: } 29761: else if (__nu == _Tp(1)) 29761: { 29761: __Inu = _Tp(0); 29761: __Ipnu = _Tp(0.5L); 29761: } 29761: else 29761: { 29761: __Inu = _Tp(0); 29761: __Ipnu = _Tp(0); 29761: } 29761: __Knu = std::numeric_limits<_Tp>::infinity(); 29761: __Kpnu = -std::numeric_limits<_Tp>::infinity(); 29761: return; 29761: } 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); 29761: const int __max_iter = 15000; 29761: const _Tp __x_min = _Tp(2); 29761: 29761: const int __nl = static_cast(__nu + _Tp(0.5L)); 29761: 29761: const _Tp __mu = __nu - __nl; 29761: const _Tp __mu2 = __mu * __mu; 29761: const _Tp __xi = _Tp(1) / __x; 29761: const _Tp __xi2 = _Tp(2) * __xi; 29761: _Tp __h = __nu * __xi; 29761: if ( __h < __fp_min ) 29761: __h = __fp_min; 29761: _Tp __b = __xi2 * __nu; 29761: _Tp __d = _Tp(0); 29761: _Tp __c = __h; 29761: int __i; 29761: for ( __i = 1; __i <= __max_iter; ++__i ) 29761: { 29761: __b += __xi2; 29761: __d = _Tp(1) / (__b + __d); 29761: __c = __b + _Tp(1) / __c; 29761: const _Tp __del = __c * __d; 29761: __h *= __del; 29761: if (std::abs(__del - _Tp(1)) < __eps) 29761: break; 29761: } 29761: if (__i > __max_iter) 29761: std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") 29761: 29761: ); 29761: _Tp __Inul = __fp_min; 29761: _Tp __Ipnul = __h * __Inul; 29761: _Tp __Inul1 = __Inul; 29761: _Tp __Ipnu1 = __Ipnul; 29761: _Tp __fact = __nu * __xi; 29761: for (int __l = __nl; __l >= 1; --__l) 29761: { 29761: const _Tp __Inutemp = __fact * __Inul + __Ipnul; 29761: __fact -= __xi; 29761: __Ipnul = __fact * __Inutemp + __Inul; 29761: __Inul = __Inutemp; 29761: } 29761: _Tp __f = __Ipnul / __Inul; 29761: _Tp __Kmu, __Knu1; 29761: if (__x < __x_min) 29761: { 29761: const _Tp __x2 = __x / _Tp(2); 29761: const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; 29761: const _Tp __fact = (std::abs(__pimu) < __eps 29761: ? _Tp(1) : __pimu / std::sin(__pimu)); 29761: _Tp __d = -std::log(__x2); 29761: _Tp __e = __mu * __d; 29761: const _Tp __fact2 = (std::abs(__e) < __eps 29761: ? _Tp(1) : std::sinh(__e) / __e); 29761: _Tp __gam1, __gam2, __gampl, __gammi; 29761: __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); 29761: _Tp __ff = __fact 29761: * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); 29761: _Tp __sum = __ff; 29761: __e = std::exp(__e); 29761: _Tp __p = __e / (_Tp(2) * __gampl); 29761: _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); 29761: _Tp __c = _Tp(1); 29761: __d = __x2 * __x2; 29761: _Tp __sum1 = __p; 29761: int __i; 29761: for (__i = 1; __i <= __max_iter; ++__i) 29761: { 29761: __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); 29761: __c *= __d / __i; 29761: __p /= __i - __mu; 29761: __q /= __i + __mu; 29761: const _Tp __del = __c * __ff; 29761: __sum += __del; 29761: const _Tp __del1 = __c * (__p - __i * __ff); 29761: __sum1 += __del1; 29761: if (std::abs(__del) < __eps * std::abs(__sum)) 29761: break; 29761: } 29761: if (__i > __max_iter) 29761: std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") 29761: ); 29761: __Kmu = __sum; 29761: __Knu1 = __sum1 * __xi2; 29761: } 29761: else 29761: { 29761: _Tp __b = _Tp(2) * (_Tp(1) + __x); 29761: _Tp __d = _Tp(1) / __b; 29761: _Tp __delh = __d; 29761: _Tp __h = __delh; 29761: _Tp __q1 = _Tp(0); 29761: _Tp __q2 = _Tp(1); 29761: _Tp __a1 = _Tp(0.25L) - __mu2; 29761: _Tp __q = __c = __a1; 29761: _Tp __a = -__a1; 29761: _Tp __s = _Tp(1) + __q * __delh; 29761: int __i; 29761: for (__i = 2; __i <= __max_iter; ++__i) 29761: { 29761: __a -= 2 * (__i - 1); 29761: __c = -__a * __c / __i; 29761: const _Tp __qnew = (__q1 - __b * __q2) / __a; 29761: __q1 = __q2; 29761: __q2 = __qnew; 29761: __q += __c * __qnew; 29761: __b += _Tp(2); 29761: __d = _Tp(1) / (__b + __a * __d); 29761: __delh = (__b * __d - _Tp(1)) * __delh; 29761: __h += __delh; 29761: const _Tp __dels = __q * __delh; 29761: __s += __dels; 29761: if ( std::abs(__dels / __s) < __eps ) 29761: break; 29761: } 29761: if (__i > __max_iter) 29761: std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") 29761: ); 29761: __h = __a1 * __h; 29761: __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) 29761: * std::exp(-__x) / __s; 29761: __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; 29761: } 29761: 29761: _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; 29761: _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); 29761: __Inu = __Inumu * __Inul1 / __Inul; 29761: __Ipnu = __Inumu * __Ipnu1 / __Inul; 29761: for ( __i = 1; __i <= __nl; ++__i ) 29761: { 29761: const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; 29761: __Kmu = __Knu1; 29761: __Knu1 = __Knutemp; 29761: } 29761: __Knu = __Kmu; 29761: __Kpnu = __nu * __xi * __Kmu - __Knu1; 29761: 29761: return; 29761: } 29761: # 267 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: template 29761: _Tp 29761: __cyl_bessel_i(_Tp __nu, _Tp __x) 29761: { 29761: if (__nu < _Tp(0) || __x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") 29761: ); 29761: else if (__isnan(__nu) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) 29761: return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); 29761: else 29761: { 29761: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 29761: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29761: return __I_nu; 29761: } 29761: } 29761: # 303 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: template 29761: _Tp 29761: __cyl_bessel_k(_Tp __nu, _Tp __x) 29761: { 29761: if (__nu < _Tp(0) || __x < _Tp(0)) 29761: std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") 29761: ); 29761: else if (__isnan(__nu) || __isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: { 29761: _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; 29761: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29761: return __K_nu; 29761: } 29761: } 29761: # 337 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: template 29761: void 29761: __sph_bessel_ik(unsigned int __n, _Tp __x, 29761: _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) 29761: { 29761: const _Tp __nu = _Tp(__n) + _Tp(0.5L); 29761: 29761: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 29761: __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29761: 29761: const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() 29761: / std::sqrt(__x); 29761: 29761: __i_n = __factor * __I_nu; 29761: __k_n = __factor * __K_nu; 29761: __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); 29761: __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); 29761: 29761: return; 29761: } 29761: # 373 "/usr/include/c++/14/tr1/modified_bessel_func.tcc" 3 29761: template 29761: void 29761: __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) 29761: { 29761: const _Tp __absx = std::abs(__x); 29761: const _Tp __rootx = std::sqrt(__absx); 29761: const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); 29761: const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); 29761: 29761: if (__isnan(__x)) 29761: __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__z == _S_inf) 29761: { 29761: __Aip = __Ai = _Tp(0); 29761: __Bip = __Bi = _S_inf; 29761: } 29761: else if (__z == -_S_inf) 29761: __Bip = __Aip = __Bi = __Ai = _Tp(0); 29761: else if (__x > _Tp(0)) 29761: { 29761: _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; 29761: 29761: __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29761: __Ai = __rootx * __K_nu 29761: / (__numeric_constants<_Tp>::__sqrt3() 29761: * __numeric_constants<_Tp>::__pi()); 29761: __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() 29761: + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); 29761: 29761: __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); 29761: __Aip = -__x * __K_nu 29761: / (__numeric_constants<_Tp>::__sqrt3() 29761: * __numeric_constants<_Tp>::__pi()); 29761: __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() 29761: + _Tp(2) * __I_nu 29761: / __numeric_constants<_Tp>::__sqrt3()); 29761: } 29761: else if (__x < _Tp(0)) 29761: { 29761: _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; 29761: 29761: __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29761: __Ai = __rootx * (__J_nu 29761: - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 29761: __Bi = -__rootx * (__N_nu 29761: + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); 29761: 29761: __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); 29761: __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() 29761: + __J_nu) / _Tp(2); 29761: __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() 29761: - __N_nu) / _Tp(2); 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: __Ai = _Tp(0.35502805388781723926L); 29761: __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); 29761: 29761: 29761: 29761: 29761: __Aip = -_Tp(0.25881940379280679840L); 29761: __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); 29761: } 29761: 29761: return; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 55 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/poly_hermite.tcc" 1 3 29761: # 42 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 56 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29761: namespace __detail 29761: { 29761: # 72 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29761: template 29761: _Tp 29761: __poly_hermite_recursion(unsigned int __n, _Tp __x) 29761: { 29761: 29761: _Tp __H_0 = 1; 29761: if (__n == 0) 29761: return __H_0; 29761: 29761: 29761: _Tp __H_1 = 2 * __x; 29761: if (__n == 1) 29761: return __H_1; 29761: 29761: 29761: _Tp __H_n, __H_nm1, __H_nm2; 29761: unsigned int __i; 29761: for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) 29761: { 29761: __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); 29761: __H_nm2 = __H_nm1; 29761: __H_nm1 = __H_n; 29761: } 29761: 29761: return __H_n; 29761: } 29761: # 114 "/usr/include/c++/14/tr1/poly_hermite.tcc" 3 29761: template 29761: inline _Tp 29761: __poly_hermite(unsigned int __n, _Tp __x) 29761: { 29761: if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else 29761: return __poly_hermite_recursion(__n, __x); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 56 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 1 3 29761: # 44 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 60 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: namespace __detail 29761: { 29761: # 75 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: _Tp 29761: __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) 29761: { 29761: const _Tp __a = -_Tp(__n); 29761: const _Tp __b = _Tp(__alpha1) + _Tp(1); 29761: const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; 29761: const _Tp __cos2th = __x / __eta; 29761: const _Tp __sin2th = _Tp(1) - __cos2th; 29761: const _Tp __th = std::acos(std::sqrt(__cos2th)); 29761: const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() 29761: * __numeric_constants<_Tp>::__pi_2() 29761: * __eta * __eta * __cos2th * __sin2th; 29761: 29761: 29761: const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); 29761: const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); 29761: 29761: 29761: 29761: 29761: 29761: _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) 29761: * std::log(_Tp(0.25L) * __x * __eta); 29761: _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); 29761: _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x 29761: + __pre_term1 - __pre_term2; 29761: _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); 29761: _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta 29761: * (_Tp(2) * __th 29761: - std::sin(_Tp(2) * __th)) 29761: + __numeric_constants<_Tp>::__pi_4()); 29761: _Tp __ser = __ser_term1 + __ser_term2; 29761: 29761: return std::exp(__lnpre) * __ser; 29761: } 29761: # 129 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: _Tp 29761: __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) 29761: { 29761: const _Tp __b = _Tp(__alpha1) + _Tp(1); 29761: const _Tp __mx = -__x; 29761: const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) 29761: : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); 29761: 29761: _Tp __tc = _Tp(1); 29761: const _Tp __ax = std::abs(__x); 29761: for (unsigned int __k = 1; __k <= __n; ++__k) 29761: __tc *= (__ax / __k); 29761: 29761: _Tp __term = __tc * __tc_sgn; 29761: _Tp __sum = __term; 29761: for (int __k = int(__n) - 1; __k >= 0; --__k) 29761: { 29761: __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) 29761: * _Tp(__k + 1) / __mx; 29761: __sum += __term; 29761: } 29761: 29761: return __sum; 29761: } 29761: # 185 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: _Tp 29761: __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) 29761: { 29761: 29761: _Tp __l_0 = _Tp(1); 29761: if (__n == 0) 29761: return __l_0; 29761: 29761: 29761: _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); 29761: if (__n == 1) 29761: return __l_1; 29761: 29761: 29761: _Tp __l_n2 = __l_0; 29761: _Tp __l_n1 = __l_1; 29761: _Tp __l_n = _Tp(0); 29761: for (unsigned int __nn = 2; __nn <= __n; ++__nn) 29761: { 29761: __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) 29761: * __l_n1 / _Tp(__nn) 29761: - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); 29761: __l_n2 = __l_n1; 29761: __l_n1 = __l_n; 29761: } 29761: 29761: return __l_n; 29761: } 29761: # 244 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: _Tp 29761: __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) 29761: { 29761: if (__x < _Tp(0)) 29761: std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") 29761: ); 29761: 29761: else if (__isnan(__x)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__n == 0) 29761: return _Tp(1); 29761: else if (__n == 1) 29761: return _Tp(1) + _Tp(__alpha1) - __x; 29761: else if (__x == _Tp(0)) 29761: { 29761: _Tp __prod = _Tp(__alpha1) + _Tp(1); 29761: for (unsigned int __k = 2; __k <= __n; ++__k) 29761: __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); 29761: return __prod; 29761: } 29761: else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) 29761: && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) 29761: return __poly_laguerre_large_n(__n, __alpha1, __x); 29761: else if (_Tp(__alpha1) >= _Tp(0) 29761: || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) 29761: return __poly_laguerre_recursion(__n, __alpha1, __x); 29761: else 29761: return __poly_laguerre_hyperg(__n, __alpha1, __x); 29761: } 29761: # 296 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: inline _Tp 29761: __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 29761: { return __poly_laguerre(__n, __m, __x); } 29761: # 316 "/usr/include/c++/14/tr1/poly_laguerre.tcc" 3 29761: template 29761: inline _Tp 29761: __laguerre(unsigned int __n, _Tp __x) 29761: { return __poly_laguerre(__n, 0, __x); } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 57 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: # 1 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 1 3 29761: # 47 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 63 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: namespace __detail 29761: { 29761: # 78 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __riemann_zeta_sum(_Tp __s) 29761: { 29761: 29761: if (__s < _Tp(1)) 29761: std::__throw_domain_error(("Bad argument in zeta sum.")); 29761: 29761: const unsigned int max_iter = 10000; 29761: _Tp __zeta = _Tp(0); 29761: for (unsigned int __k = 1; __k < max_iter; ++__k) 29761: { 29761: _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); 29761: if (__term < std::numeric_limits<_Tp>::epsilon()) 29761: { 29761: break; 29761: } 29761: __zeta += __term; 29761: } 29761: 29761: return __zeta; 29761: } 29761: # 115 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __riemann_zeta_alt(_Tp __s) 29761: { 29761: _Tp __sgn = _Tp(1); 29761: _Tp __zeta = _Tp(0); 29761: for (unsigned int __i = 1; __i < 10000000; ++__i) 29761: { 29761: _Tp __term = __sgn / std::pow(__i, __s); 29761: if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: __zeta += __term; 29761: __sgn *= _Tp(-1); 29761: } 29761: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 29761: 29761: return __zeta; 29761: } 29761: # 157 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __riemann_zeta_glob(_Tp __s) 29761: { 29761: _Tp __zeta = _Tp(0); 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 29761: * std::log(_Tp(10)) - _Tp(1); 29761: 29761: 29761: 29761: if (__s < _Tp(0)) 29761: { 29761: 29761: if (::std::fmod(__s,_Tp(2)) == _Tp(0)) 29761: return _Tp(0); 29761: else 29761: 29761: { 29761: _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); 29761: __zeta *= std::pow(_Tp(2) 29761: * __numeric_constants<_Tp>::__pi(), __s) 29761: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29761: 29761: * std::exp(::std::lgamma(_Tp(1) - __s)) 29761: 29761: 29761: 29761: / __numeric_constants<_Tp>::__pi(); 29761: return __zeta; 29761: } 29761: } 29761: 29761: _Tp __num = _Tp(0.5L); 29761: const unsigned int __maxit = 10000; 29761: for (unsigned int __i = 0; __i < __maxit; ++__i) 29761: { 29761: bool __punt = false; 29761: _Tp __sgn = _Tp(1); 29761: _Tp __term = _Tp(0); 29761: for (unsigned int __j = 0; __j <= __i; ++__j) 29761: { 29761: 29761: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 29761: - ::std::lgamma(_Tp(1 + __j)) 29761: - ::std::lgamma(_Tp(1 + __i - __j)); 29761: 29761: 29761: 29761: 29761: 29761: if (__bincoeff > __max_bincoeff) 29761: { 29761: 29761: __punt = true; 29761: break; 29761: } 29761: __bincoeff = std::exp(__bincoeff); 29761: __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); 29761: __sgn *= _Tp(-1); 29761: } 29761: if (__punt) 29761: break; 29761: __term *= __num; 29761: __zeta += __term; 29761: if (std::abs(__term/__zeta) < __eps) 29761: break; 29761: __num *= _Tp(0.5L); 29761: } 29761: 29761: __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); 29761: 29761: return __zeta; 29761: } 29761: # 252 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __riemann_zeta_product(_Tp __s) 29761: { 29761: static const _Tp __prime[] = { 29761: _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), 29761: _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), 29761: _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), 29761: _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) 29761: }; 29761: static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); 29761: 29761: _Tp __zeta = _Tp(1); 29761: for (unsigned int __i = 0; __i < __num_primes; ++__i) 29761: { 29761: const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); 29761: __zeta *= __fact; 29761: if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) 29761: break; 29761: } 29761: 29761: __zeta = _Tp(1) / __zeta; 29761: 29761: return __zeta; 29761: } 29761: # 293 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __riemann_zeta(_Tp __s) 29761: { 29761: if (__isnan(__s)) 29761: return std::numeric_limits<_Tp>::quiet_NaN(); 29761: else if (__s == _Tp(1)) 29761: return std::numeric_limits<_Tp>::infinity(); 29761: else if (__s < -_Tp(19)) 29761: { 29761: _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); 29761: __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) 29761: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29761: 29761: * std::exp(::std::lgamma(_Tp(1) - __s)) 29761: 29761: 29761: 29761: / __numeric_constants<_Tp>::__pi(); 29761: return __zeta; 29761: } 29761: else if (__s < _Tp(20)) 29761: { 29761: 29761: bool __glob = true; 29761: if (__glob) 29761: return __riemann_zeta_glob(__s); 29761: else 29761: { 29761: if (__s > _Tp(1)) 29761: return __riemann_zeta_sum(__s); 29761: else 29761: { 29761: _Tp __zeta = std::pow(_Tp(2) 29761: * __numeric_constants<_Tp>::__pi(), __s) 29761: * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) 29761: 29761: * ::std::tgamma(_Tp(1) - __s) 29761: 29761: 29761: 29761: * __riemann_zeta_sum(_Tp(1) - __s); 29761: return __zeta; 29761: } 29761: } 29761: } 29761: else 29761: return __riemann_zeta_product(__s); 29761: } 29761: # 365 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: _Tp 29761: __hurwitz_zeta_glob(_Tp __a, _Tp __s) 29761: { 29761: _Tp __zeta = _Tp(0); 29761: 29761: const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); 29761: 29761: const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 29761: * std::log(_Tp(10)) - _Tp(1); 29761: 29761: const unsigned int __maxit = 10000; 29761: for (unsigned int __i = 0; __i < __maxit; ++__i) 29761: { 29761: bool __punt = false; 29761: _Tp __sgn = _Tp(1); 29761: _Tp __term = _Tp(0); 29761: for (unsigned int __j = 0; __j <= __i; ++__j) 29761: { 29761: 29761: _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) 29761: - ::std::lgamma(_Tp(1 + __j)) 29761: - ::std::lgamma(_Tp(1 + __i - __j)); 29761: 29761: 29761: 29761: 29761: 29761: if (__bincoeff > __max_bincoeff) 29761: { 29761: 29761: __punt = true; 29761: break; 29761: } 29761: __bincoeff = std::exp(__bincoeff); 29761: __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); 29761: __sgn *= _Tp(-1); 29761: } 29761: if (__punt) 29761: break; 29761: __term /= _Tp(__i + 1); 29761: if (std::abs(__term / __zeta) < __eps) 29761: break; 29761: __zeta += __term; 29761: } 29761: 29761: __zeta /= __s - _Tp(1); 29761: 29761: return __zeta; 29761: } 29761: # 430 "/usr/include/c++/14/tr1/riemann_zeta.tcc" 3 29761: template 29761: inline _Tp 29761: __hurwitz_zeta(_Tp __a, _Tp __s) 29761: { return __hurwitz_zeta_glob(__a, __s); } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 58 "/usr/include/c++/14/bits/specfun.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 203 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: assoc_laguerref(unsigned int __n, unsigned int __m, float __x) 29761: { return __detail::__assoc_laguerre(__n, __m, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) 29761: { return __detail::__assoc_laguerre(__n, __m, __x); } 29761: # 248 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__assoc_laguerre<__type>(__n, __m, __x); 29761: } 29761: # 264 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: assoc_legendref(unsigned int __l, unsigned int __m, float __x) 29761: { return __detail::__assoc_legendre_p(__l, __m, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) 29761: { return __detail::__assoc_legendre_p(__l, __m, __x); } 29761: # 294 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__assoc_legendre_p<__type>(__l, __m, __x); 29761: } 29761: # 309 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: betaf(float __a, float __b) 29761: { return __detail::__beta(__a, __b); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: betal(long double __a, long double __b) 29761: { return __detail::__beta(__a, __b); } 29761: # 339 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type 29761: beta(_Tpa __a, _Tpb __b) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; 29761: return __detail::__beta<__type>(__a, __b); 29761: } 29761: # 355 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: comp_ellint_1f(float __k) 29761: { return __detail::__comp_ellint_1(__k); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: comp_ellint_1l(long double __k) 29761: { return __detail::__comp_ellint_1(__k); } 29761: # 387 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: comp_ellint_1(_Tp __k) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__comp_ellint_1<__type>(__k); 29761: } 29761: # 403 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: comp_ellint_2f(float __k) 29761: { return __detail::__comp_ellint_2(__k); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: comp_ellint_2l(long double __k) 29761: { return __detail::__comp_ellint_2(__k); } 29761: # 434 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: comp_ellint_2(_Tp __k) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__comp_ellint_2<__type>(__k); 29761: } 29761: # 450 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: comp_ellint_3f(float __k, float __nu) 29761: { return __detail::__comp_ellint_3(__k, __nu); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: comp_ellint_3l(long double __k, long double __nu) 29761: { return __detail::__comp_ellint_3(__k, __nu); } 29761: # 485 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type 29761: comp_ellint_3(_Tp __k, _Tpn __nu) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; 29761: return __detail::__comp_ellint_3<__type>(__k, __nu); 29761: } 29761: # 501 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: cyl_bessel_if(float __nu, float __x) 29761: { return __detail::__cyl_bessel_i(__nu, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: cyl_bessel_il(long double __nu, long double __x) 29761: { return __detail::__cyl_bessel_i(__nu, __x); } 29761: # 531 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29761: cyl_bessel_i(_Tpnu __nu, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29761: return __detail::__cyl_bessel_i<__type>(__nu, __x); 29761: } 29761: # 547 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: cyl_bessel_jf(float __nu, float __x) 29761: { return __detail::__cyl_bessel_j(__nu, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: cyl_bessel_jl(long double __nu, long double __x) 29761: { return __detail::__cyl_bessel_j(__nu, __x); } 29761: # 577 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29761: cyl_bessel_j(_Tpnu __nu, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29761: return __detail::__cyl_bessel_j<__type>(__nu, __x); 29761: } 29761: # 593 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: cyl_bessel_kf(float __nu, float __x) 29761: { return __detail::__cyl_bessel_k(__nu, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: cyl_bessel_kl(long double __nu, long double __x) 29761: { return __detail::__cyl_bessel_k(__nu, __x); } 29761: # 629 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29761: cyl_bessel_k(_Tpnu __nu, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29761: return __detail::__cyl_bessel_k<__type>(__nu, __x); 29761: } 29761: # 645 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: cyl_neumannf(float __nu, float __x) 29761: { return __detail::__cyl_neumann_n(__nu, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: cyl_neumannl(long double __nu, long double __x) 29761: { return __detail::__cyl_neumann_n(__nu, __x); } 29761: # 677 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type 29761: cyl_neumann(_Tpnu __nu, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; 29761: return __detail::__cyl_neumann_n<__type>(__nu, __x); 29761: } 29761: # 693 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: ellint_1f(float __k, float __phi) 29761: { return __detail::__ellint_1(__k, __phi); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: ellint_1l(long double __k, long double __phi) 29761: { return __detail::__ellint_1(__k, __phi); } 29761: # 725 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 29761: ellint_1(_Tp __k, _Tpp __phi) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 29761: return __detail::__ellint_1<__type>(__k, __phi); 29761: } 29761: # 741 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: ellint_2f(float __k, float __phi) 29761: { return __detail::__ellint_2(__k, __phi); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: ellint_2l(long double __k, long double __phi) 29761: { return __detail::__ellint_2(__k, __phi); } 29761: # 773 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type 29761: ellint_2(_Tp __k, _Tpp __phi) 29761: { 29761: typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; 29761: return __detail::__ellint_2<__type>(__k, __phi); 29761: } 29761: # 789 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: ellint_3f(float __k, float __nu, float __phi) 29761: { return __detail::__ellint_3(__k, __nu, __phi); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: ellint_3l(long double __k, long double __nu, long double __phi) 29761: { return __detail::__ellint_3(__k, __nu, __phi); } 29761: # 826 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type 29761: ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) 29761: { 29761: typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; 29761: return __detail::__ellint_3<__type>(__k, __nu, __phi); 29761: } 29761: # 841 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: expintf(float __x) 29761: { return __detail::__expint(__x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: expintl(long double __x) 29761: { return __detail::__expint(__x); } 29761: # 866 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: expint(_Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__expint<__type>(__x); 29761: } 29761: # 882 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: hermitef(unsigned int __n, float __x) 29761: { return __detail::__poly_hermite(__n, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: hermitel(unsigned int __n, long double __x) 29761: { return __detail::__poly_hermite(__n, __x); } 29761: # 914 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: hermite(unsigned int __n, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__poly_hermite<__type>(__n, __x); 29761: } 29761: # 930 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: laguerref(unsigned int __n, float __x) 29761: { return __detail::__laguerre(__n, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: laguerrel(unsigned int __n, long double __x) 29761: { return __detail::__laguerre(__n, __x); } 29761: # 958 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: laguerre(unsigned int __n, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__laguerre<__type>(__n, __x); 29761: } 29761: # 974 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: legendref(unsigned int __l, float __x) 29761: { return __detail::__poly_legendre_p(__l, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: legendrel(unsigned int __l, long double __x) 29761: { return __detail::__poly_legendre_p(__l, __x); } 29761: # 1003 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: legendre(unsigned int __l, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__poly_legendre_p<__type>(__l, __x); 29761: } 29761: # 1019 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: riemann_zetaf(float __s) 29761: { return __detail::__riemann_zeta(__s); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: riemann_zetal(long double __s) 29761: { return __detail::__riemann_zeta(__s); } 29761: # 1054 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: riemann_zeta(_Tp __s) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__riemann_zeta<__type>(__s); 29761: } 29761: # 1070 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: sph_besself(unsigned int __n, float __x) 29761: { return __detail::__sph_bessel(__n, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: sph_bessell(unsigned int __n, long double __x) 29761: { return __detail::__sph_bessel(__n, __x); } 29761: # 1098 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: sph_bessel(unsigned int __n, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__sph_bessel<__type>(__n, __x); 29761: } 29761: # 1114 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: sph_legendref(unsigned int __l, unsigned int __m, float __theta) 29761: { return __detail::__sph_legendre(__l, __m, __theta); } 29761: # 1125 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline long double 29761: sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) 29761: { return __detail::__sph_legendre(__l, __m, __theta); } 29761: # 1145 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__sph_legendre<__type>(__l, __m, __theta); 29761: } 29761: # 1161 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: sph_neumannf(unsigned int __n, float __x) 29761: { return __detail::__sph_neumann(__n, __x); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline long double 29761: sph_neumannl(unsigned int __n, long double __x) 29761: { return __detail::__sph_neumann(__n, __x); } 29761: # 1189 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: sph_neumann(unsigned int __n, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: return __detail::__sph_neumann<__type>(__n, __x); 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 1216 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: airy_aif(float __x) 29761: { 29761: float __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Ai; 29761: } 29761: 29761: 29761: 29761: 29761: inline long double 29761: airy_ail(long double __x) 29761: { 29761: long double __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Ai; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: airy_ai(_Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: __type __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Ai; 29761: } 29761: 29761: 29761: 29761: 29761: inline float 29761: airy_bif(float __x) 29761: { 29761: float __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Bi; 29761: } 29761: 29761: 29761: 29761: 29761: inline long double 29761: airy_bil(long double __x) 29761: { 29761: long double __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Bi; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline typename __gnu_cxx::__promote<_Tp>::__type 29761: airy_bi(_Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; 29761: __type __Ai, __Bi, __Aip, __Bip; 29761: std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); 29761: return __Bi; 29761: } 29761: # 1292 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: conf_hypergf(float __a, float __c, float __x) 29761: { return std::__detail::__conf_hyperg(__a, __c, __x); } 29761: # 1303 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline long double 29761: conf_hypergl(long double __a, long double __c, long double __x) 29761: { return std::__detail::__conf_hyperg(__a, __c, __x); } 29761: # 1323 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type 29761: conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; 29761: return std::__detail::__conf_hyperg<__type>(__a, __c, __x); 29761: } 29761: # 1340 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline float 29761: hypergf(float __a, float __b, float __c, float __x) 29761: { return std::__detail::__hyperg(__a, __b, __c, __x); } 29761: # 1351 "/usr/include/c++/14/bits/specfun.h" 3 29761: inline long double 29761: hypergl(long double __a, long double __b, long double __c, long double __x) 29761: { return std::__detail::__hyperg(__a, __b, __c, __x); } 29761: # 1372 "/usr/include/c++/14/bits/specfun.h" 3 29761: template 29761: inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type 29761: hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) 29761: { 29761: typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> 29761: ::__type __type; 29761: return std::__detail::__hyperg<__type>(__a, __b, __c, __x); 29761: } 29761: 29761: 29761: 29761: } 29761: # 3907 "/usr/include/c++/14/cmath" 2 3 29761: 29761: 29761: } 29761: # 41 "/usr/include/c++/14/random" 2 3 29761: 29761: # 1 "/usr/include/c++/14/cstdlib" 1 3 29761: # 39 "/usr/include/c++/14/cstdlib" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdlib" 3 29761: # 43 "/usr/include/c++/14/random" 2 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/random.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/random.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 58 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: _RealType 29761: generate_canonical(_UniformRandomNumberGenerator& __g); 29761: 29761: 29761: 29761: namespace __detail 29761: { 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: 29761: template 29761: (std::numeric_limits<_UIntType>::digits)> 29761: struct _Shift 29761: { static constexpr _UIntType __value = 0; }; 29761: 29761: template 29761: struct _Shift<_UIntType, __w, true> 29761: { static constexpr _UIntType __value = _UIntType(1) << __w; }; 29761: 29761: template 29761: struct _Select_uint_least_t 29761: { 29761: static_assert(__which < 0, 29761: "sorry, would be too much trouble for a slow result"); 29761: }; 29761: 29761: template 29761: struct _Select_uint_least_t<__s, 4> 29761: { using type = unsigned int; }; 29761: 29761: template 29761: struct _Select_uint_least_t<__s, 3> 29761: { using type = unsigned long; }; 29761: 29761: template 29761: struct _Select_uint_least_t<__s, 2> 29761: { using type = unsigned long long; }; 29761: # 111 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: struct _Select_uint_least_t<__s, 1> 29761: { 29761: 29761: 29761: struct type 29761: { 29761: explicit 29761: type(uint64_t __a) noexcept : _M_lo(__a), _M_hi(0) { } 29761: 29761: 29761: friend type 29761: operator*(type __l, uint64_t __x) noexcept 29761: { 29761: 29761: 29761: 29761: 29761: constexpr uint64_t __mask = 0xffffffff; 29761: uint64_t __ll[2] = { __l._M_lo >> 32, __l._M_lo & __mask }; 29761: uint64_t __xx[2] = { __x >> 32, __x & __mask }; 29761: uint64_t __l0x0 = __ll[0] * __xx[0]; 29761: uint64_t __l0x1 = __ll[0] * __xx[1]; 29761: uint64_t __l1x0 = __ll[1] * __xx[0]; 29761: uint64_t __l1x1 = __ll[1] * __xx[1]; 29761: 29761: 29761: uint64_t __mid 29761: = (__l0x1 & __mask) + (__l1x0 & __mask) + (__l1x1 >> 32); 29761: __l._M_hi = __l0x0 + (__l0x1 >> 32) + (__l1x0 >> 32) + (__mid >> 32); 29761: __l._M_lo = (__mid << 32) + (__l1x1 & __mask); 29761: return __l; 29761: } 29761: 29761: friend type 29761: operator+(type __l, uint64_t __c) noexcept 29761: { 29761: __l._M_hi += __builtin_add_overflow(__l._M_lo, __c, &__l._M_lo); 29761: return __l; 29761: } 29761: 29761: friend type 29761: operator%(type __l, uint64_t __m) noexcept 29761: { 29761: if (__builtin_expect(__l._M_hi == 0, 0)) 29761: { 29761: __l._M_lo %= __m; 29761: return __l; 29761: } 29761: 29761: int __shift = __builtin_clzll(__m) + 64 29761: - __builtin_clzll(__l._M_hi); 29761: type __x(0); 29761: if (__shift >= 64) 29761: { 29761: __x._M_hi = __m << (__shift - 64); 29761: __x._M_lo = 0; 29761: } 29761: else 29761: { 29761: __x._M_hi = __m >> (64 - __shift); 29761: __x._M_lo = __m << __shift; 29761: } 29761: 29761: while (__l._M_hi != 0 || __l._M_lo >= __m) 29761: { 29761: if (__x <= __l) 29761: { 29761: __l._M_hi -= __x._M_hi; 29761: __l._M_hi -= __builtin_sub_overflow(__l._M_lo, __x._M_lo, 29761: &__l._M_lo); 29761: } 29761: __x._M_lo = (__x._M_lo >> 1) | (__x._M_hi << 63); 29761: __x._M_hi >>= 1; 29761: } 29761: return __l; 29761: } 29761: 29761: 29761: explicit operator uint64_t() const noexcept 29761: { return _M_lo; } 29761: 29761: friend bool operator<(const type& __l, const type& __r) noexcept 29761: { 29761: if (__l._M_hi < __r._M_hi) 29761: return true; 29761: else if (__l._M_hi == __r._M_hi) 29761: return __l._M_lo < __r._M_lo; 29761: else 29761: return false; 29761: } 29761: 29761: friend bool operator<=(const type& __l, const type& __r) noexcept 29761: { return !(__r < __l); } 29761: 29761: uint64_t _M_lo; 29761: uint64_t _M_hi; 29761: }; 29761: }; 29761: 29761: 29761: 29761: template= __m - 1), 29761: bool __schrage_ok = __m % __a < __m / __a> 29761: struct _Mod 29761: { 29761: static _Tp 29761: __calc(_Tp __x) 29761: { 29761: using _Tp2 29761: = typename _Select_uint_least_t::type; 29761: return static_cast<_Tp>((_Tp2(__a) * __x + __c) % __m); 29761: } 29761: }; 29761: 29761: 29761: template 29761: struct _Mod<_Tp, __m, __a, __c, false, true> 29761: { 29761: static _Tp 29761: __calc(_Tp __x); 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Mod<_Tp, __m, __a, __c, true, __s> 29761: { 29761: static _Tp 29761: __calc(_Tp __x) 29761: { 29761: _Tp __res = __a * __x + __c; 29761: if (__m) 29761: __res %= __m; 29761: return __res; 29761: } 29761: }; 29761: 29761: template 29761: inline _Tp 29761: __mod(_Tp __x) 29761: { 29761: if constexpr (__a == 0) 29761: return __c; 29761: else 29761: return _Mod<_Tp, __m, __a, __c>::__calc(__x); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Adaptor 29761: { 29761: static_assert(std::is_floating_point<_DInputType>::value, 29761: "template argument must be a floating point type"); 29761: 29761: public: 29761: _Adaptor(_Engine& __g) 29761: : _M_g(__g) { } 29761: 29761: _DInputType 29761: min() const 29761: { return _DInputType(0); } 29761: 29761: _DInputType 29761: max() const 29761: { return _DInputType(1); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: _DInputType 29761: operator()() 29761: { 29761: return std::generate_canonical<_DInputType, 29761: std::numeric_limits<_DInputType>::digits, 29761: _Engine>(_M_g); 29761: } 29761: 29761: private: 29761: _Engine& _M_g; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: using __seed_seq_generate_t = decltype( 29761: std::declval<_Sseq&>().generate(std::declval(), 29761: std::declval())); 29761: 29761: template> 29761: using _If_seed_seq_for = _Require< 29761: __not_, _Engine>>, 29761: is_unsigned, 29761: __not_> 29761: >; 29761: 29761: #pragma GCC diagnostic pop 29761: } 29761: # 365 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class linear_congruential_engine 29761: { 29761: static_assert(std::is_unsigned<_UIntType>::value, 29761: "result_type must be an unsigned integral type"); 29761: static_assert(__m == 0u || (__a < __m && __c < __m), 29761: "template argument substituting __m out of bounds"); 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, linear_congruential_engine, 29761: _UIntType>; 29761: 29761: public: 29761: 29761: typedef _UIntType result_type; 29761: 29761: 29761: static constexpr result_type multiplier = __a; 29761: 29761: static constexpr result_type increment = __c; 29761: 29761: static constexpr result_type modulus = __m; 29761: static constexpr result_type default_seed = 1u; 29761: 29761: 29761: 29761: 29761: 29761: linear_congruential_engine() : linear_congruential_engine(default_seed) 29761: { } 29761: # 404 "/usr/include/c++/14/bits/random.h" 3 29761: explicit 29761: linear_congruential_engine(result_type __s) 29761: { seed(__s); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: linear_congruential_engine(_Sseq& __q) 29761: { seed(__q); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed(result_type __s = default_seed); 29761: # 435 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return __c == 0u ? 1u : 0u; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return __m - 1u; } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z) 29761: { 29761: for (; __z != 0ULL; --__z) 29761: (*this)(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: operator()() 29761: { 29761: _M_x = __detail::__mod<_UIntType, __m, __a, __c>(_M_x); 29761: return _M_x; 29761: } 29761: # 487 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const linear_congruential_engine& __lhs, 29761: const linear_congruential_engine& __rhs) 29761: { return __lhs._M_x == __rhs._M_x; } 29761: # 500 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::linear_congruential_engine<_UIntType1, 29761: __a1, __c1, __m1>& __lcr); 29761: # 520 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::linear_congruential_engine<_UIntType1, __a1, 29761: __c1, __m1>& __lcr); 29761: 29761: private: 29761: _UIntType _M_x; 29761: }; 29761: # 543 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::linear_congruential_engine<_UIntType, __a, 29761: __c, __m>& __lhs, 29761: const std::linear_congruential_engine<_UIntType, __a, 29761: __c, __m>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 583 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class mersenne_twister_engine 29761: { 29761: static_assert(std::is_unsigned<_UIntType>::value, 29761: "result_type must be an unsigned integral type"); 29761: static_assert(1u <= __m && __m <= __n, 29761: "template argument substituting __m out of bounds"); 29761: static_assert(__r <= __w, "template argument substituting " 29761: "__r out of bound"); 29761: static_assert(__u <= __w, "template argument substituting " 29761: "__u out of bound"); 29761: static_assert(__s <= __w, "template argument substituting " 29761: "__s out of bound"); 29761: static_assert(__t <= __w, "template argument substituting " 29761: "__t out of bound"); 29761: static_assert(__l <= __w, "template argument substituting " 29761: "__l out of bound"); 29761: static_assert(__w <= std::numeric_limits<_UIntType>::digits, 29761: "template argument substituting __w out of bound"); 29761: static_assert(__a <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29761: "template argument substituting __a out of bound"); 29761: static_assert(__b <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29761: "template argument substituting __b out of bound"); 29761: static_assert(__c <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29761: "template argument substituting __c out of bound"); 29761: static_assert(__d <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29761: "template argument substituting __d out of bound"); 29761: static_assert(__f <= (__detail::_Shift<_UIntType, __w>::__value - 1), 29761: "template argument substituting __f out of bound"); 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, mersenne_twister_engine, 29761: _UIntType>; 29761: 29761: public: 29761: 29761: typedef _UIntType result_type; 29761: 29761: 29761: static constexpr size_t word_size = __w; 29761: static constexpr size_t state_size = __n; 29761: static constexpr size_t shift_size = __m; 29761: static constexpr size_t mask_bits = __r; 29761: static constexpr result_type xor_mask = __a; 29761: static constexpr size_t tempering_u = __u; 29761: static constexpr result_type tempering_d = __d; 29761: static constexpr size_t tempering_s = __s; 29761: static constexpr result_type tempering_b = __b; 29761: static constexpr size_t tempering_t = __t; 29761: static constexpr result_type tempering_c = __c; 29761: static constexpr size_t tempering_l = __l; 29761: static constexpr result_type initialization_multiplier = __f; 29761: static constexpr result_type default_seed = 5489u; 29761: 29761: 29761: 29761: mersenne_twister_engine() : mersenne_twister_engine(default_seed) { } 29761: 29761: explicit 29761: mersenne_twister_engine(result_type __sd) 29761: { seed(__sd); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: mersenne_twister_engine(_Sseq& __q) 29761: { seed(__q); } 29761: 29761: void 29761: seed(result_type __sd = default_seed); 29761: 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q); 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return 0; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z); 29761: 29761: result_type 29761: operator()(); 29761: # 703 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const mersenne_twister_engine& __lhs, 29761: const mersenne_twister_engine& __rhs) 29761: { return (std::equal(__lhs._M_x, __lhs._M_x + state_size, __rhs._M_x) 29761: && __lhs._M_p == __rhs._M_p); } 29761: # 721 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::mersenne_twister_engine<_UIntType1, __w1, __n1, 29761: __m1, __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 29761: __l1, __f1>& __x); 29761: # 747 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::mersenne_twister_engine<_UIntType1, __w1, __n1, __m1, 29761: __r1, __a1, __u1, __d1, __s1, __b1, __t1, __c1, 29761: __l1, __f1>& __x); 29761: 29761: private: 29761: void _M_gen_rand(); 29761: 29761: _UIntType _M_x[state_size]; 29761: size_t _M_p; 29761: }; 29761: # 781 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 29761: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __lhs, 29761: const std::mersenne_twister_engine<_UIntType, __w, __n, __m, 29761: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 812 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class subtract_with_carry_engine 29761: { 29761: static_assert(std::is_unsigned<_UIntType>::value, 29761: "result_type must be an unsigned integral type"); 29761: static_assert(0u < __s && __s < __r, 29761: "0 < s < r"); 29761: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 29761: "template argument substituting __w out of bounds"); 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, subtract_with_carry_engine, 29761: _UIntType>; 29761: 29761: public: 29761: 29761: typedef _UIntType result_type; 29761: 29761: 29761: static constexpr size_t word_size = __w; 29761: static constexpr size_t short_lag = __s; 29761: static constexpr size_t long_lag = __r; 29761: static constexpr uint_least32_t default_seed = 19780503u; 29761: 29761: subtract_with_carry_engine() : subtract_with_carry_engine(0u) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: subtract_with_carry_engine(result_type __sd) 29761: { seed(__sd); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: subtract_with_carry_engine(_Sseq& __q) 29761: { seed(__q); } 29761: # 871 "/usr/include/c++/14/bits/random.h" 3 29761: void 29761: seed(result_type __sd = 0u); 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q); 29761: 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return 0; } 29761: 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z) 29761: { 29761: for (; __z != 0ULL; --__z) 29761: (*this)(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: operator()(); 29761: # 926 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const subtract_with_carry_engine& __lhs, 29761: const subtract_with_carry_engine& __rhs) 29761: { return (std::equal(__lhs._M_x, __lhs._M_x + long_lag, __rhs._M_x) 29761: && __lhs._M_carry == __rhs._M_carry 29761: && __lhs._M_p == __rhs._M_p); } 29761: # 945 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::subtract_with_carry_engine<_UIntType1, __w1, 29761: __s1, __r1>& __x); 29761: # 964 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::subtract_with_carry_engine<_UIntType1, __w1, 29761: __s1, __r1>& __x); 29761: 29761: private: 29761: 29761: _UIntType _M_x[long_lag]; 29761: _UIntType _M_carry; 29761: size_t _M_p; 29761: }; 29761: # 991 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::subtract_with_carry_engine<_UIntType, __w, 29761: __s, __r>& __lhs, 29761: const std::subtract_with_carry_engine<_UIntType, __w, 29761: __s, __r>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 1009 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class discard_block_engine 29761: { 29761: static_assert(1 <= __r && __r <= __p, 29761: "template argument substituting __r out of bounds"); 29761: 29761: public: 29761: 29761: typedef typename _RandomNumberEngine::result_type result_type; 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, discard_block_engine, 29761: result_type>; 29761: 29761: 29761: static constexpr size_t block_size = __p; 29761: static constexpr size_t used_block = __r; 29761: 29761: 29761: 29761: 29761: 29761: 29761: discard_block_engine() 29761: : _M_b(), _M_n(0) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: discard_block_engine(const _RandomNumberEngine& __rng) 29761: : _M_b(__rng), _M_n(0) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: discard_block_engine(_RandomNumberEngine&& __rng) 29761: : _M_b(std::move(__rng)), _M_n(0) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: discard_block_engine(result_type __s) 29761: : _M_b(__s), _M_n(0) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: discard_block_engine(_Sseq& __q) 29761: : _M_b(__q), _M_n(0) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed() 29761: { 29761: _M_b.seed(); 29761: _M_n = 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed(result_type __s) 29761: { 29761: _M_b.seed(__s); 29761: _M_n = 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q) 29761: { 29761: _M_b.seed(__q); 29761: _M_n = 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: const _RandomNumberEngine& 29761: base() const noexcept 29761: { return _M_b; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return _RandomNumberEngine::min(); } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return _RandomNumberEngine::max(); } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z) 29761: { 29761: for (; __z != 0ULL; --__z) 29761: (*this)(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: operator()(); 29761: # 1161 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const discard_block_engine& __lhs, 29761: const discard_block_engine& __rhs) 29761: { return __lhs._M_b == __rhs._M_b && __lhs._M_n == __rhs._M_n; } 29761: # 1177 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::discard_block_engine<_RandomNumberEngine1, 29761: __p1, __r1>& __x); 29761: # 1195 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::discard_block_engine<_RandomNumberEngine1, 29761: __p1, __r1>& __x); 29761: 29761: private: 29761: _RandomNumberEngine _M_b; 29761: size_t _M_n; 29761: }; 29761: # 1219 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::discard_block_engine<_RandomNumberEngine, __p, 29761: __r>& __lhs, 29761: const std::discard_block_engine<_RandomNumberEngine, __p, 29761: __r>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 1235 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class independent_bits_engine 29761: { 29761: static_assert(std::is_unsigned<_UIntType>::value, 29761: "result_type must be an unsigned integral type"); 29761: static_assert(0u < __w && __w <= std::numeric_limits<_UIntType>::digits, 29761: "template argument substituting __w out of bounds"); 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, independent_bits_engine, 29761: _UIntType>; 29761: 29761: public: 29761: 29761: typedef _UIntType result_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: independent_bits_engine() 29761: : _M_b() { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: independent_bits_engine(const _RandomNumberEngine& __rng) 29761: : _M_b(__rng) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: independent_bits_engine(_RandomNumberEngine&& __rng) 29761: : _M_b(std::move(__rng)) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: independent_bits_engine(result_type __s) 29761: : _M_b(__s) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: independent_bits_engine(_Sseq& __q) 29761: : _M_b(__q) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed() 29761: { _M_b.seed(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed(result_type __s) 29761: { _M_b.seed(__s); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q) 29761: { _M_b.seed(__q); } 29761: 29761: 29761: 29761: 29761: 29761: const _RandomNumberEngine& 29761: base() const noexcept 29761: { return _M_b; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return 0U; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return __detail::_Shift<_UIntType, __w>::__value - 1; } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z) 29761: { 29761: for (; __z != 0ULL; --__z) 29761: (*this)(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: operator()(); 29761: # 1377 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const independent_bits_engine& __lhs, 29761: const independent_bits_engine& __rhs) 29761: { return __lhs._M_b == __rhs._M_b; } 29761: # 1394 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::independent_bits_engine<_RandomNumberEngine, 29761: __w, _UIntType>& __x) 29761: { 29761: __is >> __x._M_b; 29761: return __is; 29761: } 29761: 29761: private: 29761: _RandomNumberEngine _M_b; 29761: }; 29761: # 1421 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::independent_bits_engine<_RandomNumberEngine, __w, 29761: _UIntType>& __lhs, 29761: const std::independent_bits_engine<_RandomNumberEngine, __w, 29761: _UIntType>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: # 1440 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::independent_bits_engine<_RandomNumberEngine, 29761: __w, _UIntType>& __x) 29761: { 29761: __os << __x.base(); 29761: return __os; 29761: } 29761: # 1462 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class shuffle_order_engine 29761: { 29761: static_assert(1u <= __k, "template argument substituting " 29761: "__k out of bound"); 29761: 29761: public: 29761: 29761: typedef typename _RandomNumberEngine::result_type result_type; 29761: 29761: template 29761: using _If_seed_seq 29761: = __detail::_If_seed_seq_for<_Sseq, shuffle_order_engine, 29761: result_type>; 29761: 29761: static constexpr size_t table_size = __k; 29761: 29761: 29761: 29761: 29761: 29761: 29761: shuffle_order_engine() 29761: : _M_b() 29761: { _M_initialize(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: shuffle_order_engine(const _RandomNumberEngine& __rng) 29761: : _M_b(__rng) 29761: { _M_initialize(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: shuffle_order_engine(_RandomNumberEngine&& __rng) 29761: : _M_b(std::move(__rng)) 29761: { _M_initialize(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: shuffle_order_engine(result_type __s) 29761: : _M_b(__s) 29761: { _M_initialize(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: explicit 29761: shuffle_order_engine(_Sseq& __q) 29761: : _M_b(__q) 29761: { _M_initialize(); } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed() 29761: { 29761: _M_b.seed(); 29761: _M_initialize(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: seed(result_type __s) 29761: { 29761: _M_b.seed(__s); 29761: _M_initialize(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _If_seed_seq<_Sseq> 29761: seed(_Sseq& __q) 29761: { 29761: _M_b.seed(__q); 29761: _M_initialize(); 29761: } 29761: 29761: 29761: 29761: 29761: const _RandomNumberEngine& 29761: base() const noexcept 29761: { return _M_b; } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: min() 29761: { return _RandomNumberEngine::min(); } 29761: 29761: 29761: 29761: 29761: static constexpr result_type 29761: max() 29761: { return _RandomNumberEngine::max(); } 29761: 29761: 29761: 29761: 29761: void 29761: discard(unsigned long long __z) 29761: { 29761: for (; __z != 0ULL; --__z) 29761: (*this)(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: operator()(); 29761: # 1615 "/usr/include/c++/14/bits/random.h" 3 29761: friend bool 29761: operator==(const shuffle_order_engine& __lhs, 29761: const shuffle_order_engine& __rhs) 29761: { return (__lhs._M_b == __rhs._M_b 29761: && std::equal(__lhs._M_v, __lhs._M_v + __k, __rhs._M_v) 29761: && __lhs._M_y == __rhs._M_y); } 29761: # 1633 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::shuffle_order_engine<_RandomNumberEngine1, 29761: __k1>& __x); 29761: # 1651 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::shuffle_order_engine<_RandomNumberEngine1, __k1>& __x); 29761: 29761: private: 29761: void _M_initialize() 29761: { 29761: for (size_t __i = 0; __i < __k; ++__i) 29761: _M_v[__i] = _M_b(); 29761: _M_y = _M_b(); 29761: } 29761: 29761: _RandomNumberEngine _M_b; 29761: result_type _M_v[__k]; 29761: result_type _M_y; 29761: }; 29761: # 1682 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::shuffle_order_engine<_RandomNumberEngine, 29761: __k>& __lhs, 29761: const std::shuffle_order_engine<_RandomNumberEngine, 29761: __k>& __rhs) 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: 29761: 29761: 29761: typedef linear_congruential_engine 29761: minstd_rand0; 29761: 29761: 29761: 29761: 29761: typedef linear_congruential_engine 29761: minstd_rand; 29761: # 1711 "/usr/include/c++/14/bits/random.h" 3 29761: typedef mersenne_twister_engine< 29761: uint_fast32_t, 29761: 32, 624, 397, 31, 29761: 0x9908b0dfUL, 11, 29761: 0xffffffffUL, 7, 29761: 0x9d2c5680UL, 15, 29761: 0xefc60000UL, 18, 1812433253UL> mt19937; 29761: 29761: 29761: 29761: 29761: typedef mersenne_twister_engine< 29761: uint_fast64_t, 29761: 64, 312, 156, 31, 29761: 0xb5026f5aa96619e9ULL, 29, 29761: 0x5555555555555555ULL, 17, 29761: 0x71d67fffeda60000ULL, 37, 29761: 0xfff7eee000000000ULL, 43, 29761: 6364136223846793005ULL> mt19937_64; 29761: 29761: typedef subtract_with_carry_engine 29761: ranlux24_base; 29761: 29761: typedef subtract_with_carry_engine 29761: ranlux48_base; 29761: 29761: typedef discard_block_engine ranlux24; 29761: 29761: typedef discard_block_engine ranlux48; 29761: 29761: typedef shuffle_order_engine knuth_b; 29761: 29761: typedef minstd_rand0 default_random_engine; 29761: # 1752 "/usr/include/c++/14/bits/random.h" 3 29761: class random_device 29761: { 29761: public: 29761: 29761: typedef unsigned int result_type; 29761: 29761: 29761: 29761: random_device() { _M_init("default"); } 29761: 29761: explicit 29761: random_device(const std::string& __token) { _M_init(__token); } 29761: 29761: ~random_device() 29761: { _M_fini(); } 29761: 29761: static constexpr result_type 29761: min() 29761: { return std::numeric_limits::min(); } 29761: 29761: static constexpr result_type 29761: max() 29761: { return std::numeric_limits::max(); } 29761: 29761: double 29761: entropy() const noexcept 29761: { return this->_M_getentropy(); } 29761: 29761: result_type 29761: operator()() 29761: { return this->_M_getval(); } 29761: 29761: 29761: random_device(const random_device&) = delete; 29761: void operator=(const random_device&) = delete; 29761: 29761: private: 29761: 29761: void _M_init(const std::string& __token); 29761: void _M_init_pretr1(const std::string& __token); 29761: void _M_fini(); 29761: 29761: result_type _M_getval(); 29761: result_type _M_getval_pretr1(); 29761: double _M_getentropy() const noexcept; 29761: 29761: void _M_init(const char*, size_t); 29761: 29761: __extension__ union 29761: { 29761: struct 29761: { 29761: void* _M_file; 29761: result_type (*_M_func)(void*); 29761: int _M_fd; 29761: }; 29761: mt19937 _M_mt; 29761: }; 29761: }; 29761: # 1833 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline bool 29761: operator!=(const std::uniform_int_distribution<_IntType>& __d1, 29761: const std::uniform_int_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 1850 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>&, 29761: const std::uniform_int_distribution<_IntType>&); 29761: # 1864 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>&, 29761: std::uniform_int_distribution<_IntType>&); 29761: # 1880 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class uniform_real_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef uniform_real_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(0) { } 29761: 29761: explicit 29761: param_type(_RealType __a, _RealType __b = _RealType(1)) 29761: : _M_a(__a), _M_b(__b) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: result_type 29761: a() const 29761: { return _M_a; } 29761: 29761: result_type 29761: b() const 29761: { return _M_b; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_a; 29761: _RealType _M_b; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: uniform_real_distribution() : uniform_real_distribution(0.0) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: uniform_real_distribution(_RealType __a, _RealType __b = _RealType(1)) 29761: : _M_param(__a, __b) 29761: { } 29761: 29761: explicit 29761: uniform_real_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset() { } 29761: 29761: result_type 29761: a() const 29761: { return _M_param.a(); } 29761: 29761: result_type 29761: b() const 29761: { return _M_param.b(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return this->a(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return this->b(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: return (__aurng() * (__p.b() - __p.a())) + __p.a(); 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const uniform_real_distribution& __d1, 29761: const uniform_real_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::uniform_real_distribution<_IntType>& __d1, 29761: const std::uniform_real_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 2078 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>&, 29761: const std::uniform_real_distribution<_RealType>&); 29761: # 2092 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>&, 29761: std::uniform_real_distribution<_RealType>&); 29761: # 2117 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class normal_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef normal_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(0.0) { } 29761: 29761: explicit 29761: param_type(_RealType __mean, _RealType __stddev = _RealType(1)) 29761: : _M_mean(__mean), _M_stddev(__stddev) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_stddev > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: _RealType 29761: mean() const 29761: { return _M_mean; } 29761: 29761: _RealType 29761: stddev() const 29761: { return _M_stddev; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return (__p1._M_mean == __p2._M_mean 29761: && __p1._M_stddev == __p2._M_stddev); } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_mean; 29761: _RealType _M_stddev; 29761: }; 29761: 29761: public: 29761: normal_distribution() : normal_distribution(0.0) { } 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: normal_distribution(result_type __mean, 29761: result_type __stddev = result_type(1)) 29761: : _M_param(__mean, __stddev) 29761: { } 29761: 29761: explicit 29761: normal_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_saved_available = false; } 29761: 29761: 29761: 29761: 29761: _RealType 29761: mean() const 29761: { return _M_param.mean(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: stddev() const 29761: { return _M_param.stddev(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return std::numeric_limits::lowest(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator==(const std::normal_distribution<_RealType1>& __d1, 29761: const std::normal_distribution<_RealType1>& __d2); 29761: # 2288 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::normal_distribution<_RealType1>& __x); 29761: # 2303 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::normal_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: result_type _M_saved = 0; 29761: bool _M_saved_available = false; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::normal_distribution<_RealType>& __d1, 29761: const std::normal_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 2344 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class lognormal_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef lognormal_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(0.0) { } 29761: 29761: explicit 29761: param_type(_RealType __m, _RealType __s = _RealType(1)) 29761: : _M_m(__m), _M_s(__s) 29761: { } 29761: 29761: _RealType 29761: m() const 29761: { return _M_m; } 29761: 29761: _RealType 29761: s() const 29761: { return _M_s; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_m == __p2._M_m && __p1._M_s == __p2._M_s; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_m; 29761: _RealType _M_s; 29761: }; 29761: 29761: lognormal_distribution() : lognormal_distribution(0.0) { } 29761: 29761: explicit 29761: lognormal_distribution(_RealType __m, _RealType __s = _RealType(1)) 29761: : _M_param(__m, __s), _M_nd() 29761: { } 29761: 29761: explicit 29761: lognormal_distribution(const param_type& __p) 29761: : _M_param(__p), _M_nd() 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_nd.reset(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: m() const 29761: { return _M_param.m(); } 29761: 29761: _RealType 29761: s() const 29761: { return _M_param.s(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { return std::exp(__p.s() * _M_nd(__urng) + __p.m()); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const lognormal_distribution& __d1, 29761: const lognormal_distribution& __d2) 29761: { return (__d1._M_param == __d2._M_param 29761: && __d1._M_nd == __d2._M_nd); } 29761: # 2505 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::lognormal_distribution<_RealType1>& __x); 29761: # 2520 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::lognormal_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::normal_distribution _M_nd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::lognormal_distribution<_RealType>& __d1, 29761: const std::lognormal_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 2569 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class gamma_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef gamma_distribution<_RealType> distribution_type; 29761: friend class gamma_distribution<_RealType>; 29761: 29761: param_type() : param_type(1.0) { } 29761: 29761: explicit 29761: param_type(_RealType __alpha_val, _RealType __beta_val = _RealType(1)) 29761: : _M_alpha(__alpha_val), _M_beta(__beta_val) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_alpha > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29761: _M_initialize(); 29761: } 29761: 29761: _RealType 29761: alpha() const 29761: { return _M_alpha; } 29761: 29761: _RealType 29761: beta() const 29761: { return _M_beta; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return (__p1._M_alpha == __p2._M_alpha 29761: && __p1._M_beta == __p2._M_beta); } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize(); 29761: 29761: _RealType _M_alpha; 29761: _RealType _M_beta; 29761: 29761: _RealType _M_malpha, _M_a2; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: gamma_distribution() : gamma_distribution(1.0) { } 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: gamma_distribution(_RealType __alpha_val, 29761: _RealType __beta_val = _RealType(1)) 29761: : _M_param(__alpha_val, __beta_val), _M_nd() 29761: { } 29761: 29761: explicit 29761: gamma_distribution(const param_type& __p) 29761: : _M_param(__p), _M_nd() 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_nd.reset(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: alpha() const 29761: { return _M_param.alpha(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: beta() const 29761: { return _M_param.beta(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const gamma_distribution& __d1, 29761: const gamma_distribution& __d2) 29761: { return (__d1._M_param == __d2._M_param 29761: && __d1._M_nd == __d2._M_nd); } 29761: # 2751 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::gamma_distribution<_RealType1>& __x); 29761: # 2765 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::gamma_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::normal_distribution _M_nd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::gamma_distribution<_RealType>& __d1, 29761: const std::gamma_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 2811 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class chi_squared_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef chi_squared_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(1) { } 29761: 29761: explicit 29761: param_type(_RealType __n) 29761: : _M_n(__n) 29761: { } 29761: 29761: _RealType 29761: n() const 29761: { return _M_n; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_n == __p2._M_n; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_n; 29761: }; 29761: 29761: chi_squared_distribution() : chi_squared_distribution(1) { } 29761: 29761: explicit 29761: chi_squared_distribution(_RealType __n) 29761: : _M_param(__n), _M_gd(__n / 2) 29761: { } 29761: 29761: explicit 29761: chi_squared_distribution(const param_type& __p) 29761: : _M_param(__p), _M_gd(__p.n() / 2) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_gd.reset(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: n() const 29761: { return _M_param.n(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { 29761: _M_param = __param; 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: _M_gd.param(param_type{__param.n() / 2}); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return 2 * _M_gd(__urng); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: return 2 * _M_gd(__urng, param_type(__p.n() / 2)); 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { typename std::gamma_distribution::param_type 29761: __p2(__p.n() / 2); 29761: this->__generate_impl(__f, __t, __urng, __p2); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { typename std::gamma_distribution::param_type 29761: __p2(__p.n() / 2); 29761: this->__generate_impl(__f, __t, __urng, __p2); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const chi_squared_distribution& __d1, 29761: const chi_squared_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 29761: # 2981 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::chi_squared_distribution<_RealType1>& __x); 29761: # 2996 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::chi_squared_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng); 29761: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const typename 29761: std::gamma_distribution::param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::gamma_distribution _M_gd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::chi_squared_distribution<_RealType>& __d1, 29761: const std::chi_squared_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 3041 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class cauchy_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef cauchy_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(0) { } 29761: 29761: explicit 29761: param_type(_RealType __a, _RealType __b = _RealType(1)) 29761: : _M_a(__a), _M_b(__b) 29761: { } 29761: 29761: _RealType 29761: a() const 29761: { return _M_a; } 29761: 29761: _RealType 29761: b() const 29761: { return _M_b; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_a; 29761: _RealType _M_b; 29761: }; 29761: 29761: cauchy_distribution() : cauchy_distribution(0.0) { } 29761: 29761: explicit 29761: cauchy_distribution(_RealType __a, _RealType __b = 1.0) 29761: : _M_param(__a, __b) 29761: { } 29761: 29761: explicit 29761: cauchy_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: _RealType 29761: a() const 29761: { return _M_param.a(); } 29761: 29761: _RealType 29761: b() const 29761: { return _M_param.b(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return std::numeric_limits::lowest(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const cauchy_distribution& __d1, 29761: const cauchy_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::cauchy_distribution<_RealType>& __d1, 29761: const std::cauchy_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 3222 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::cauchy_distribution<_RealType>& __x); 29761: # 3237 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::cauchy_distribution<_RealType>& __x); 29761: # 3256 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class fisher_f_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef fisher_f_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(1) { } 29761: 29761: explicit 29761: param_type(_RealType __m, _RealType __n = _RealType(1)) 29761: : _M_m(__m), _M_n(__n) 29761: { } 29761: 29761: _RealType 29761: m() const 29761: { return _M_m; } 29761: 29761: _RealType 29761: n() const 29761: { return _M_n; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_m == __p2._M_m && __p1._M_n == __p2._M_n; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_m; 29761: _RealType _M_n; 29761: }; 29761: 29761: fisher_f_distribution() : fisher_f_distribution(1.0) { } 29761: 29761: explicit 29761: fisher_f_distribution(_RealType __m, 29761: _RealType __n = _RealType(1)) 29761: : _M_param(__m, __n), _M_gd_x(__m / 2), _M_gd_y(__n / 2) 29761: { } 29761: 29761: explicit 29761: fisher_f_distribution(const param_type& __p) 29761: : _M_param(__p), _M_gd_x(__p.m() / 2), _M_gd_y(__p.n() / 2) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { 29761: _M_gd_x.reset(); 29761: _M_gd_y.reset(); 29761: } 29761: 29761: 29761: 29761: 29761: _RealType 29761: m() const 29761: { return _M_param.m(); } 29761: 29761: _RealType 29761: n() const 29761: { return _M_param.n(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return (_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m()); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: return ((_M_gd_x(__urng, param_type(__p.m() / 2)) * n()) 29761: / (_M_gd_y(__urng, param_type(__p.n() / 2)) * m())); 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const fisher_f_distribution& __d1, 29761: const fisher_f_distribution& __d2) 29761: { return (__d1._M_param == __d2._M_param 29761: && __d1._M_gd_x == __d2._M_gd_x 29761: && __d1._M_gd_y == __d2._M_gd_y); } 29761: # 3433 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::fisher_f_distribution<_RealType1>& __x); 29761: # 3448 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::fisher_f_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng); 29761: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::gamma_distribution _M_gd_x, _M_gd_y; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::fisher_f_distribution<_RealType>& __d1, 29761: const std::fisher_f_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 3495 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class student_t_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef student_t_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(1) { } 29761: 29761: explicit 29761: param_type(_RealType __n) 29761: : _M_n(__n) 29761: { } 29761: 29761: _RealType 29761: n() const 29761: { return _M_n; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_n == __p2._M_n; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_n; 29761: }; 29761: 29761: student_t_distribution() : student_t_distribution(1.0) { } 29761: 29761: explicit 29761: student_t_distribution(_RealType __n) 29761: : _M_param(__n), _M_nd(), _M_gd(__n / 2, 2) 29761: { } 29761: 29761: explicit 29761: student_t_distribution(const param_type& __p) 29761: : _M_param(__p), _M_nd(), _M_gd(__p.n() / 2, 2) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { 29761: _M_nd.reset(); 29761: _M_gd.reset(); 29761: } 29761: 29761: 29761: 29761: 29761: _RealType 29761: n() const 29761: { return _M_param.n(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return std::numeric_limits::lowest(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: 29761: const result_type __g = _M_gd(__urng, param_type(__p.n() / 2, 2)); 29761: return _M_nd(__urng) * std::sqrt(__p.n() / __g); 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const student_t_distribution& __d1, 29761: const student_t_distribution& __d2) 29761: { return (__d1._M_param == __d2._M_param 29761: && __d1._M_nd == __d2._M_nd && __d1._M_gd == __d2._M_gd); } 29761: # 3662 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::student_t_distribution<_RealType1>& __x); 29761: # 3677 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::student_t_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng); 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::normal_distribution _M_nd; 29761: std::gamma_distribution _M_gd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::student_t_distribution<_RealType>& __d1, 29761: const std::student_t_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 3729 "/usr/include/c++/14/bits/random.h" 3 29761: class bernoulli_distribution 29761: { 29761: public: 29761: 29761: typedef bool result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef bernoulli_distribution distribution_type; 29761: 29761: param_type() : param_type(0.5) { } 29761: 29761: explicit 29761: param_type(double __p) 29761: : _M_p(__p) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool((_M_p >= 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: double 29761: p() const 29761: { return _M_p; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_p == __p2._M_p; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: double _M_p; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: bernoulli_distribution() : bernoulli_distribution(0.5) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: bernoulli_distribution(double __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: explicit 29761: bernoulli_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset() { } 29761: 29761: 29761: 29761: 29761: double 29761: p() const 29761: { return _M_param.p(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return std::numeric_limits::min(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: if ((__aurng() - __aurng.min()) 29761: < __p.p() * (__aurng.max() - __aurng.min())) 29761: return true; 29761: return false; 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const bernoulli_distribution& __d1, 29761: const bernoulli_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline bool 29761: operator!=(const std::bernoulli_distribution& __d1, 29761: const std::bernoulli_distribution& __d2) 29761: { return !(__d1 == __d2); } 29761: # 3916 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::bernoulli_distribution& __x); 29761: # 3930 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: inline std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::bernoulli_distribution& __x) 29761: { 29761: double __p; 29761: if (__is >> __p) 29761: __x.param(bernoulli_distribution::param_type(__p)); 29761: return __is; 29761: } 29761: # 3952 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class binomial_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "result_type must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef binomial_distribution<_IntType> distribution_type; 29761: friend class binomial_distribution<_IntType>; 29761: 29761: param_type() : param_type(1) { } 29761: 29761: explicit 29761: param_type(_IntType __t, double __p = 0.5) 29761: : _M_t(__t), _M_p(__p) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool((_M_t >= _IntType(0)) && (_M_p >= 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false) 29761: 29761: ; 29761: _M_initialize(); 29761: } 29761: 29761: _IntType 29761: t() const 29761: { return _M_t; } 29761: 29761: double 29761: p() const 29761: { return _M_p; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_t == __p2._M_t && __p1._M_p == __p2._M_p; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize(); 29761: 29761: _IntType _M_t; 29761: double _M_p; 29761: 29761: double _M_q; 29761: 29761: double _M_d1, _M_d2, _M_s1, _M_s2, _M_c, 29761: _M_a1, _M_a123, _M_s, _M_lf, _M_lp1p; 29761: 29761: bool _M_easy; 29761: }; 29761: 29761: 29761: 29761: binomial_distribution() : binomial_distribution(1) { } 29761: 29761: explicit 29761: binomial_distribution(_IntType __t, double __p = 0.5) 29761: : _M_param(__t, __p), _M_nd() 29761: { } 29761: 29761: explicit 29761: binomial_distribution(const param_type& __p) 29761: : _M_param(__p), _M_nd() 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_nd.reset(); } 29761: 29761: 29761: 29761: 29761: _IntType 29761: t() const 29761: { return _M_param.t(); } 29761: 29761: 29761: 29761: 29761: double 29761: p() const 29761: { return _M_param.p(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return 0; } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return _M_param.t(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const binomial_distribution& __d1, 29761: const binomial_distribution& __d2) 29761: 29761: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 29761: # 4136 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::binomial_distribution<_IntType1>& __x); 29761: # 4152 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::binomial_distribution<_IntType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: result_type 29761: _M_waiting(_UniformRandomNumberGenerator& __urng, 29761: _IntType __t, double __q); 29761: 29761: param_type _M_param; 29761: 29761: 29761: std::normal_distribution _M_nd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::binomial_distribution<_IntType>& __d1, 29761: const std::binomial_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 4198 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class geometric_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "result_type must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef geometric_distribution<_IntType> distribution_type; 29761: friend class geometric_distribution<_IntType>; 29761: 29761: param_type() : param_type(0.5) { } 29761: 29761: explicit 29761: param_type(double __p) 29761: : _M_p(__p) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool((_M_p > 0.0) && (_M_p < 1.0))) std::__glibcxx_assert_fail(); } while (false); 29761: _M_initialize(); 29761: } 29761: 29761: double 29761: p() const 29761: { return _M_p; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_p == __p2._M_p; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize() 29761: { _M_log_1_p = std::log(1.0 - _M_p); } 29761: 29761: double _M_p; 29761: 29761: double _M_log_1_p; 29761: }; 29761: 29761: 29761: 29761: geometric_distribution() : geometric_distribution(0.5) { } 29761: 29761: explicit 29761: geometric_distribution(double __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: explicit 29761: geometric_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset() { } 29761: 29761: 29761: 29761: 29761: double 29761: p() const 29761: { return _M_param.p(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return 0; } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const geometric_distribution& __d1, 29761: const geometric_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::geometric_distribution<_IntType>& __d1, 29761: const std::geometric_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 4383 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::geometric_distribution<_IntType>& __x); 29761: # 4398 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::geometric_distribution<_IntType>& __x); 29761: # 4415 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class negative_binomial_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "result_type must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef negative_binomial_distribution<_IntType> distribution_type; 29761: 29761: param_type() : param_type(1) { } 29761: 29761: explicit 29761: param_type(_IntType __k, double __p = 0.5) 29761: : _M_k(__k), _M_p(__p) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool((_M_k > 0) && (_M_p > 0.0) && (_M_p <= 1.0))) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: _IntType 29761: k() const 29761: { return _M_k; } 29761: 29761: double 29761: p() const 29761: { return _M_p; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_k == __p2._M_k && __p1._M_p == __p2._M_p; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _IntType _M_k; 29761: double _M_p; 29761: }; 29761: 29761: negative_binomial_distribution() : negative_binomial_distribution(1) { } 29761: 29761: explicit 29761: negative_binomial_distribution(_IntType __k, double __p = 0.5) 29761: : _M_param(__k, __p), _M_gd(__k, (1.0 - __p) / __p) 29761: { } 29761: 29761: explicit 29761: negative_binomial_distribution(const param_type& __p) 29761: : _M_param(__p), _M_gd(__p.k(), (1.0 - __p.p()) / __p.p()) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_gd.reset(); } 29761: 29761: 29761: 29761: 29761: _IntType 29761: k() const 29761: { return _M_param.k(); } 29761: 29761: 29761: 29761: 29761: double 29761: p() const 29761: { return _M_param.p(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng); 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate_impl(__f, __t, __urng); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const negative_binomial_distribution& __d1, 29761: const negative_binomial_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param && __d1._M_gd == __d2._M_gd; } 29761: # 4585 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::negative_binomial_distribution<_IntType1>& __x); 29761: # 4600 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::negative_binomial_distribution<_IntType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng); 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: std::gamma_distribution _M_gd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::negative_binomial_distribution<_IntType>& __d1, 29761: const std::negative_binomial_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 4652 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class poisson_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "result_type must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef poisson_distribution<_IntType> distribution_type; 29761: friend class poisson_distribution<_IntType>; 29761: 29761: param_type() : param_type(1.0) { } 29761: 29761: explicit 29761: param_type(double __mean) 29761: : _M_mean(__mean) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_mean > 0.0)) std::__glibcxx_assert_fail(); } while (false); 29761: _M_initialize(); 29761: } 29761: 29761: double 29761: mean() const 29761: { return _M_mean; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_mean == __p2._M_mean; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: 29761: void 29761: _M_initialize(); 29761: 29761: double _M_mean; 29761: 29761: double _M_lm_thr; 29761: 29761: double _M_lfm, _M_sm, _M_d, _M_scx, _M_1cx, _M_c2b, _M_cb; 29761: 29761: }; 29761: 29761: 29761: 29761: poisson_distribution() : poisson_distribution(1.0) { } 29761: 29761: explicit 29761: poisson_distribution(double __mean) 29761: : _M_param(__mean), _M_nd() 29761: { } 29761: 29761: explicit 29761: poisson_distribution(const param_type& __p) 29761: : _M_param(__p), _M_nd() 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { _M_nd.reset(); } 29761: 29761: 29761: 29761: 29761: double 29761: mean() const 29761: { return _M_param.mean(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return 0; } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const poisson_distribution& __d1, 29761: const poisson_distribution& __d2) 29761: 29761: { return __d1._M_param == __d2._M_param && __d1._M_nd == __d2._M_nd; } 29761: # 4821 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::poisson_distribution<_IntType1>& __x); 29761: # 4836 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::poisson_distribution<_IntType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: 29761: 29761: std::normal_distribution _M_nd; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::poisson_distribution<_IntType>& __d1, 29761: const std::poisson_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 4884 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class exponential_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef exponential_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(1.0) { } 29761: 29761: explicit 29761: param_type(_RealType __lambda) 29761: : _M_lambda(__lambda) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(_M_lambda > _RealType(0))) std::__glibcxx_assert_fail(); } while (false); 29761: } 29761: 29761: _RealType 29761: lambda() const 29761: { return _M_lambda; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_lambda == __p2._M_lambda; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_lambda; 29761: }; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: exponential_distribution() : exponential_distribution(1.0) { } 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: exponential_distribution(_RealType __lambda) 29761: : _M_param(__lambda) 29761: { } 29761: 29761: explicit 29761: exponential_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: reset() { } 29761: 29761: 29761: 29761: 29761: _RealType 29761: lambda() const 29761: { return _M_param.lambda(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: return -std::log(result_type(1) - __aurng()) / __p.lambda(); 29761: } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const exponential_distribution& __d1, 29761: const exponential_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::exponential_distribution<_RealType>& __d1, 29761: const std::exponential_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 5073 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::exponential_distribution<_RealType>& __x); 29761: # 5088 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::exponential_distribution<_RealType>& __x); 29761: # 5106 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class weibull_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef weibull_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(1.0) { } 29761: 29761: explicit 29761: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 29761: : _M_a(__a), _M_b(__b) 29761: { } 29761: 29761: _RealType 29761: a() const 29761: { return _M_a; } 29761: 29761: _RealType 29761: b() const 29761: { return _M_b; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_a; 29761: _RealType _M_b; 29761: }; 29761: 29761: weibull_distribution() : weibull_distribution(1.0) { } 29761: 29761: explicit 29761: weibull_distribution(_RealType __a, _RealType __b = _RealType(1)) 29761: : _M_param(__a, __b) 29761: { } 29761: 29761: explicit 29761: weibull_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: _RealType 29761: a() const 29761: { return _M_param.a(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: b() const 29761: { return _M_param.b(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const weibull_distribution& __d1, 29761: const weibull_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::weibull_distribution<_RealType>& __d1, 29761: const std::weibull_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 5290 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::weibull_distribution<_RealType>& __x); 29761: # 5305 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::weibull_distribution<_RealType>& __x); 29761: # 5323 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class extreme_value_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef extreme_value_distribution<_RealType> distribution_type; 29761: 29761: param_type() : param_type(0.0) { } 29761: 29761: explicit 29761: param_type(_RealType __a, _RealType __b = _RealType(1.0)) 29761: : _M_a(__a), _M_b(__b) 29761: { } 29761: 29761: _RealType 29761: a() const 29761: { return _M_a; } 29761: 29761: _RealType 29761: b() const 29761: { return _M_b; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: _RealType _M_a; 29761: _RealType _M_b; 29761: }; 29761: 29761: extreme_value_distribution() : extreme_value_distribution(0.0) { } 29761: 29761: explicit 29761: extreme_value_distribution(_RealType __a, _RealType __b = _RealType(1)) 29761: : _M_param(__a, __b) 29761: { } 29761: 29761: explicit 29761: extreme_value_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: _RealType 29761: a() const 29761: { return _M_param.a(); } 29761: 29761: 29761: 29761: 29761: _RealType 29761: b() const 29761: { return _M_param.b(); } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return std::numeric_limits::lowest(); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { return std::numeric_limits::max(); } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const extreme_value_distribution& __d1, 29761: const extreme_value_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::extreme_value_distribution<_RealType>& __d1, 29761: const std::extreme_value_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 5507 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::extreme_value_distribution<_RealType>& __x); 29761: # 5522 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::extreme_value_distribution<_RealType>& __x); 29761: # 5545 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class discrete_distribution 29761: { 29761: static_assert(std::is_integral<_IntType>::value, 29761: "result_type must be an integral type"); 29761: 29761: public: 29761: 29761: typedef _IntType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef discrete_distribution<_IntType> distribution_type; 29761: friend class discrete_distribution<_IntType>; 29761: 29761: param_type() 29761: : _M_prob(), _M_cp() 29761: { } 29761: 29761: template 29761: param_type(_InputIterator __wbegin, 29761: _InputIterator __wend) 29761: : _M_prob(__wbegin, __wend), _M_cp() 29761: { _M_initialize(); } 29761: 29761: param_type(initializer_list __wil) 29761: : _M_prob(__wil.begin(), __wil.end()), _M_cp() 29761: { _M_initialize(); } 29761: 29761: template 29761: param_type(size_t __nw, double __xmin, double __xmax, 29761: _Func __fw); 29761: 29761: 29761: param_type(const param_type&) = default; 29761: param_type& operator=(const param_type&) = default; 29761: 29761: std::vector 29761: probabilities() const 29761: { return _M_prob.empty() ? std::vector(1, 1.0) : _M_prob; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_prob == __p2._M_prob; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize(); 29761: 29761: std::vector _M_prob; 29761: std::vector _M_cp; 29761: }; 29761: 29761: discrete_distribution() 29761: : _M_param() 29761: { } 29761: 29761: template 29761: discrete_distribution(_InputIterator __wbegin, 29761: _InputIterator __wend) 29761: : _M_param(__wbegin, __wend) 29761: { } 29761: 29761: discrete_distribution(initializer_list __wl) 29761: : _M_param(__wl) 29761: { } 29761: 29761: template 29761: discrete_distribution(size_t __nw, double __xmin, double __xmax, 29761: _Func __fw) 29761: : _M_param(__nw, __xmin, __xmax, __fw) 29761: { } 29761: 29761: explicit 29761: discrete_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: std::vector 29761: probabilities() const 29761: { 29761: return _M_param._M_prob.empty() 29761: ? std::vector(1, 1.0) : _M_param._M_prob; 29761: } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { return result_type(0); } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { 29761: return _M_param._M_prob.empty() 29761: ? result_type(0) : result_type(_M_param._M_prob.size() - 1); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const discrete_distribution& __d1, 29761: const discrete_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: # 5733 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::discrete_distribution<_IntType1>& __x); 29761: # 5749 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::discrete_distribution<_IntType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::discrete_distribution<_IntType>& __d1, 29761: const std::discrete_distribution<_IntType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 5793 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class piecewise_constant_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef piecewise_constant_distribution<_RealType> distribution_type; 29761: friend class piecewise_constant_distribution<_RealType>; 29761: 29761: param_type() 29761: : _M_int(), _M_den(), _M_cp() 29761: { } 29761: 29761: template 29761: param_type(_InputIteratorB __bfirst, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin); 29761: 29761: template 29761: param_type(initializer_list<_RealType> __bi, _Func __fw); 29761: 29761: template 29761: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 29761: _Func __fw); 29761: 29761: 29761: param_type(const param_type&) = default; 29761: param_type& operator=(const param_type&) = default; 29761: 29761: std::vector<_RealType> 29761: intervals() const 29761: { 29761: if (_M_int.empty()) 29761: { 29761: std::vector<_RealType> __tmp(2); 29761: __tmp[1] = _RealType(1); 29761: return __tmp; 29761: } 29761: else 29761: return _M_int; 29761: } 29761: 29761: std::vector 29761: densities() const 29761: { return _M_den.empty() ? std::vector(1, 1.0) : _M_den; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize(); 29761: 29761: std::vector<_RealType> _M_int; 29761: std::vector _M_den; 29761: std::vector _M_cp; 29761: }; 29761: 29761: piecewise_constant_distribution() 29761: : _M_param() 29761: { } 29761: 29761: template 29761: piecewise_constant_distribution(_InputIteratorB __bfirst, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin) 29761: : _M_param(__bfirst, __bend, __wbegin) 29761: { } 29761: 29761: template 29761: piecewise_constant_distribution(initializer_list<_RealType> __bl, 29761: _Func __fw) 29761: : _M_param(__bl, __fw) 29761: { } 29761: 29761: template 29761: piecewise_constant_distribution(size_t __nw, 29761: _RealType __xmin, _RealType __xmax, 29761: _Func __fw) 29761: : _M_param(__nw, __xmin, __xmax, __fw) 29761: { } 29761: 29761: explicit 29761: piecewise_constant_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: std::vector<_RealType> 29761: intervals() const 29761: { 29761: if (_M_param._M_int.empty()) 29761: { 29761: std::vector<_RealType> __tmp(2); 29761: __tmp[1] = _RealType(1); 29761: return __tmp; 29761: } 29761: else 29761: return _M_param._M_int; 29761: } 29761: 29761: 29761: 29761: 29761: std::vector 29761: densities() const 29761: { 29761: return _M_param._M_den.empty() 29761: ? std::vector(1, 1.0) : _M_param._M_den; 29761: } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { 29761: return _M_param._M_int.empty() 29761: ? result_type(0) : _M_param._M_int.front(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { 29761: return _M_param._M_int.empty() 29761: ? result_type(1) : _M_param._M_int.back(); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const piecewise_constant_distribution& __d1, 29761: const piecewise_constant_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: # 6017 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::piecewise_constant_distribution<_RealType1>& __x); 29761: # 6033 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::piecewise_constant_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::piecewise_constant_distribution<_RealType>& __d1, 29761: const std::piecewise_constant_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 6073 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: class piecewise_linear_distribution 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "result_type must be a floating point type"); 29761: 29761: public: 29761: 29761: typedef _RealType result_type; 29761: 29761: 29761: struct param_type 29761: { 29761: typedef piecewise_linear_distribution<_RealType> distribution_type; 29761: friend class piecewise_linear_distribution<_RealType>; 29761: 29761: param_type() 29761: : _M_int(), _M_den(), _M_cp(), _M_m() 29761: { } 29761: 29761: template 29761: param_type(_InputIteratorB __bfirst, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin); 29761: 29761: template 29761: param_type(initializer_list<_RealType> __bl, _Func __fw); 29761: 29761: template 29761: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, 29761: _Func __fw); 29761: 29761: 29761: param_type(const param_type&) = default; 29761: param_type& operator=(const param_type&) = default; 29761: 29761: std::vector<_RealType> 29761: intervals() const 29761: { 29761: if (_M_int.empty()) 29761: { 29761: std::vector<_RealType> __tmp(2); 29761: __tmp[1] = _RealType(1); 29761: return __tmp; 29761: } 29761: else 29761: return _M_int; 29761: } 29761: 29761: std::vector 29761: densities() const 29761: { return _M_den.empty() ? std::vector(2, 1.0) : _M_den; } 29761: 29761: friend bool 29761: operator==(const param_type& __p1, const param_type& __p2) 29761: { return __p1._M_int == __p2._M_int && __p1._M_den == __p2._M_den; } 29761: 29761: 29761: friend bool 29761: operator!=(const param_type& __p1, const param_type& __p2) 29761: { return !(__p1 == __p2); } 29761: 29761: 29761: private: 29761: void 29761: _M_initialize(); 29761: 29761: std::vector<_RealType> _M_int; 29761: std::vector _M_den; 29761: std::vector _M_cp; 29761: std::vector _M_m; 29761: }; 29761: 29761: piecewise_linear_distribution() 29761: : _M_param() 29761: { } 29761: 29761: template 29761: piecewise_linear_distribution(_InputIteratorB __bfirst, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin) 29761: : _M_param(__bfirst, __bend, __wbegin) 29761: { } 29761: 29761: template 29761: piecewise_linear_distribution(initializer_list<_RealType> __bl, 29761: _Func __fw) 29761: : _M_param(__bl, __fw) 29761: { } 29761: 29761: template 29761: piecewise_linear_distribution(size_t __nw, 29761: _RealType __xmin, _RealType __xmax, 29761: _Func __fw) 29761: : _M_param(__nw, __xmin, __xmax, __fw) 29761: { } 29761: 29761: explicit 29761: piecewise_linear_distribution(const param_type& __p) 29761: : _M_param(__p) 29761: { } 29761: 29761: 29761: 29761: 29761: void 29761: reset() 29761: { } 29761: 29761: 29761: 29761: 29761: std::vector<_RealType> 29761: intervals() const 29761: { 29761: if (_M_param._M_int.empty()) 29761: { 29761: std::vector<_RealType> __tmp(2); 29761: __tmp[1] = _RealType(1); 29761: return __tmp; 29761: } 29761: else 29761: return _M_param._M_int; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: std::vector 29761: densities() const 29761: { 29761: return _M_param._M_den.empty() 29761: ? std::vector(2, 1.0) : _M_param._M_den; 29761: } 29761: 29761: 29761: 29761: 29761: param_type 29761: param() const 29761: { return _M_param; } 29761: 29761: 29761: 29761: 29761: 29761: void 29761: param(const param_type& __param) 29761: { _M_param = __param; } 29761: 29761: 29761: 29761: 29761: result_type 29761: min() const 29761: { 29761: return _M_param._M_int.empty() 29761: ? result_type(0) : _M_param._M_int.front(); 29761: } 29761: 29761: 29761: 29761: 29761: result_type 29761: max() const 29761: { 29761: return _M_param._M_int.empty() 29761: ? result_type(1) : _M_param._M_int.back(); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { return this->operator()(__urng, _M_param); } 29761: 29761: template 29761: result_type 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { this->__generate(__f, __t, __urng, _M_param); } 29761: 29761: template 29761: void 29761: __generate(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: template 29761: void 29761: __generate(result_type* __f, result_type* __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { this->__generate_impl(__f, __t, __urng, __p); } 29761: 29761: 29761: 29761: 29761: 29761: friend bool 29761: operator==(const piecewise_linear_distribution& __d1, 29761: const piecewise_linear_distribution& __d2) 29761: { return __d1._M_param == __d2._M_param; } 29761: # 6299 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const std::piecewise_linear_distribution<_RealType1>& __x); 29761: # 6315 "/usr/include/c++/14/bits/random.h" 3 29761: template 29761: friend std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: std::piecewise_linear_distribution<_RealType1>& __x); 29761: 29761: private: 29761: template 29761: void 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p); 29761: 29761: param_type _M_param; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const std::piecewise_linear_distribution<_RealType>& __d1, 29761: const std::piecewise_linear_distribution<_RealType>& __d2) 29761: { return !(__d1 == __d2); } 29761: # 6360 "/usr/include/c++/14/bits/random.h" 3 29761: class seed_seq 29761: { 29761: public: 29761: 29761: typedef uint_least32_t result_type; 29761: 29761: 29761: seed_seq() noexcept 29761: : _M_v() 29761: { } 29761: 29761: template>> 29761: seed_seq(std::initializer_list<_IntType> __il); 29761: 29761: template 29761: seed_seq(_InputIterator __begin, _InputIterator __end); 29761: 29761: 29761: template 29761: void 29761: generate(_RandomAccessIterator __begin, _RandomAccessIterator __end); 29761: 29761: 29761: size_t size() const noexcept 29761: { return _M_v.size(); } 29761: 29761: template 29761: void 29761: param(_OutputIterator __dest) const 29761: { std::copy(_M_v.begin(), _M_v.end(), __dest); } 29761: 29761: 29761: seed_seq(const seed_seq&) = delete; 29761: seed_seq& operator=(const seed_seq&) = delete; 29761: 29761: private: 29761: std::vector _M_v; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 49 "/usr/include/c++/14/random" 2 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 1 3 29761: # 33 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 29761: 29761: # 34 "/usr/include/arm-linux-gnueabihf/c++/14/bits/opt_random.h" 3 29761: # 50 "/usr/include/c++/14/random" 2 3 29761: # 1 "/usr/include/c++/14/bits/random.tcc" 1 3 29761: # 33 "/usr/include/c++/14/bits/random.tcc" 3 29761: # 1 "/usr/include/c++/14/numeric" 1 3 29761: # 58 "/usr/include/c++/14/numeric" 3 29761: 29761: # 59 "/usr/include/c++/14/numeric" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_numeric.h" 1 3 29761: # 64 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 85 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: void 29761: iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: { 29761: *__first = __value; 29761: ++__value; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: # 131 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: inline _Tp 29761: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init) 29761: { 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: __init = __init + *__first; 29761: return __init; 29761: } 29761: # 158 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: inline _Tp 29761: accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, 29761: _BinaryOperation __binary_op) 29761: { 29761: 29761: 29761: ; 29761: 29761: for (; __first != __last; ++__first) 29761: __init = __binary_op(__init, *__first); 29761: return __init; 29761: } 29761: # 187 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: inline _Tp 29761: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _Tp __init) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2) 29761: __init = __init + (*__first1 * *__first2); 29761: return __init; 29761: } 29761: # 219 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: inline _Tp 29761: inner_product(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _Tp __init, 29761: _BinaryOperation1 __binary_op1, 29761: _BinaryOperation2 __binary_op2) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: for (; __first1 != __last1; ++__first1, (void)++__first2) 29761: __init = __binary_op1(__init, 29761: __binary_op2(*__first1, *__first2)); 29761: return __init; 29761: } 29761: # 253 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: _OutputIterator 29761: partial_sum(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: _ValueType __value = *__first; 29761: *__result = __value; 29761: while (++__first != __last) 29761: { 29761: __value = __value + *__first; 29761: *++__result = __value; 29761: } 29761: return ++__result; 29761: } 29761: # 294 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: _OutputIterator 29761: partial_sum(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _BinaryOperation __binary_op) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: _ValueType __value = *__first; 29761: *__result = __value; 29761: while (++__first != __last) 29761: { 29761: __value = __binary_op(__value, *__first); 29761: *++__result = __value; 29761: } 29761: return ++__result; 29761: } 29761: # 334 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: _OutputIterator 29761: adjacent_difference(_InputIterator __first, 29761: _InputIterator __last, _OutputIterator __result) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: _ValueType __value = *__first; 29761: *__result = __value; 29761: while (++__first != __last) 29761: { 29761: _ValueType __tmp = *__first; 29761: *++__result = __tmp - __value; 29761: __value = std::move(__tmp); 29761: } 29761: return ++__result; 29761: } 29761: # 376 "/usr/include/c++/14/bits/stl_numeric.h" 3 29761: template 29761: 29761: _OutputIterator 29761: adjacent_difference(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _BinaryOperation __binary_op) 29761: { 29761: typedef typename iterator_traits<_InputIterator>::value_type _ValueType; 29761: 29761: 29761: 29761: 29761: 29761: ; 29761: 29761: if (__first == __last) 29761: return __result; 29761: _ValueType __value = *__first; 29761: *__result = __value; 29761: while (++__first != __last) 29761: { 29761: _ValueType __tmp = *__first; 29761: *++__result = __binary_op(__tmp, __value); 29761: __value = std::move(__tmp); 29761: } 29761: return ++__result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 63 "/usr/include/c++/14/numeric" 2 3 29761: # 90 "/usr/include/c++/14/numeric" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 91 "/usr/include/c++/14/numeric" 2 3 29761: # 104 "/usr/include/c++/14/numeric" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: template 29761: constexpr _Res 29761: __abs_r(_Tp __val) 29761: { 29761: static_assert(sizeof(_Res) >= sizeof(_Tp), 29761: "result type must be at least as wide as the input type"); 29761: 29761: if (__val >= 0) 29761: return __val; 29761: 29761: 29761: 29761: 29761: return -static_cast<_Res>(__val); 29761: } 29761: 29761: template void __abs_r(bool) = delete; 29761: 29761: 29761: template 29761: constexpr _Tp 29761: __gcd(_Tp __m, _Tp __n) 29761: { 29761: static_assert(is_unsigned<_Tp>::value, "type must be unsigned"); 29761: 29761: if (__m == 0) 29761: return __n; 29761: if (__n == 0) 29761: return __m; 29761: 29761: const int __i = std::__countr_zero(__m); 29761: __m >>= __i; 29761: const int __j = std::__countr_zero(__n); 29761: __n >>= __j; 29761: const int __k = __i < __j ? __i : __j; 29761: 29761: while (true) 29761: { 29761: if (__m > __n) 29761: { 29761: _Tp __tmp = __m; 29761: __m = __n; 29761: __n = __tmp; 29761: } 29761: 29761: __n -= __m; 29761: 29761: if (__n == 0) 29761: return __m << __k; 29761: 29761: __n >>= std::__countr_zero(__n); 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: constexpr common_type_t<_Mn, _Nn> 29761: gcd(_Mn __m, _Nn __n) noexcept 29761: { 29761: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 29761: "std::gcd arguments must be integers"); 29761: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 29761: "std::gcd arguments must not be bool"); 29761: using _Ct = common_type_t<_Mn, _Nn>; 29761: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 29761: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 29761: return __detail::__gcd>(__m2, __n2); 29761: } 29761: 29761: 29761: template 29761: constexpr common_type_t<_Mn, _Nn> 29761: lcm(_Mn __m, _Nn __n) noexcept 29761: { 29761: static_assert(is_integral_v<_Mn> && is_integral_v<_Nn>, 29761: "std::lcm arguments must be integers"); 29761: static_assert(_Mn(2) == 2 && _Nn(2) == 2, 29761: "std::lcm arguments must not be bool"); 29761: using _Ct = common_type_t<_Mn, _Nn>; 29761: const _Ct __m2 = __detail::__abs_r<_Ct>(__m); 29761: const _Ct __n2 = __detail::__abs_r<_Ct>(__n); 29761: if (__m2 == 0 || __n2 == 0) 29761: return 0; 29761: _Ct __r = __m2 / __detail::__gcd>(__m2, __n2); 29761: 29761: if constexpr (is_signed_v<_Ct>) 29761: if (__is_constant_evaluated()) 29761: return __r * __n2; 29761: 29761: bool __overflow = __builtin_mul_overflow(__r, __n2, &__r); 29761: do { if (std::__is_constant_evaluated() && !bool(!__overflow)) std::__glibcxx_assert_fail(); } while (false); 29761: return __r; 29761: } 29761: # 284 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _Tp 29761: reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 29761: _BinaryOperation __binary_op) 29761: { 29761: using __ref = typename iterator_traits<_InputIterator>::reference; 29761: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, __ref>); 29761: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, _Tp&>); 29761: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, _Tp&, _Tp&>); 29761: static_assert(is_invocable_r_v<_Tp, _BinaryOperation&, __ref, __ref>); 29761: if constexpr (__is_random_access_iter<_InputIterator>::value) 29761: { 29761: while ((__last - __first) >= 4) 29761: { 29761: _Tp __v1 = __binary_op(__first[0], __first[1]); 29761: _Tp __v2 = __binary_op(__first[2], __first[3]); 29761: _Tp __v3 = __binary_op(__v1, __v2); 29761: __init = __binary_op(__init, __v3); 29761: __first += 4; 29761: } 29761: } 29761: for (; __first != __last; ++__first) 29761: __init = __binary_op(__init, *__first); 29761: return __init; 29761: } 29761: # 322 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: inline _Tp 29761: reduce(_InputIterator __first, _InputIterator __last, _Tp __init) 29761: { return std::reduce(__first, __last, std::move(__init), plus<>()); } 29761: # 339 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: inline typename iterator_traits<_InputIterator>::value_type 29761: reduce(_InputIterator __first, _InputIterator __last) 29761: { 29761: using value_type = typename iterator_traits<_InputIterator>::value_type; 29761: return std::reduce(__first, __last, value_type{}, plus<>()); 29761: } 29761: # 366 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _Tp 29761: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _Tp __init, 29761: _BinaryOperation1 __binary_op1, 29761: _BinaryOperation2 __binary_op2) 29761: { 29761: if constexpr (__and_v<__is_random_access_iter<_InputIterator1>, 29761: __is_random_access_iter<_InputIterator2>>) 29761: { 29761: while ((__last1 - __first1) >= 4) 29761: { 29761: _Tp __v1 = __binary_op1(__binary_op2(__first1[0], __first2[0]), 29761: __binary_op2(__first1[1], __first2[1])); 29761: _Tp __v2 = __binary_op1(__binary_op2(__first1[2], __first2[2]), 29761: __binary_op2(__first1[3], __first2[3])); 29761: _Tp __v3 = __binary_op1(__v1, __v2); 29761: __init = __binary_op1(__init, __v3); 29761: __first1 += 4; 29761: __first2 += 4; 29761: } 29761: } 29761: for (; __first1 != __last1; ++__first1, (void) ++__first2) 29761: __init = __binary_op1(__init, __binary_op2(*__first1, *__first2)); 29761: return __init; 29761: } 29761: # 410 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: inline _Tp 29761: transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, 29761: _InputIterator2 __first2, _Tp __init) 29761: { 29761: return std::transform_reduce(__first1, __last1, __first2, 29761: std::move(__init), 29761: plus<>(), multiplies<>()); 29761: } 29761: # 435 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _Tp 29761: transform_reduce(_InputIterator __first, _InputIterator __last, _Tp __init, 29761: _BinaryOperation __binary_op, _UnaryOperation __unary_op) 29761: { 29761: if constexpr (__is_random_access_iter<_InputIterator>::value) 29761: { 29761: while ((__last - __first) >= 4) 29761: { 29761: _Tp __v1 = __binary_op(__unary_op(__first[0]), 29761: __unary_op(__first[1])); 29761: _Tp __v2 = __binary_op(__unary_op(__first[2]), 29761: __unary_op(__first[3])); 29761: _Tp __v3 = __binary_op(__v1, __v2); 29761: __init = __binary_op(__init, __v3); 29761: __first += 4; 29761: } 29761: } 29761: for (; __first != __last; ++__first) 29761: __init = __binary_op(__init, __unary_op(*__first)); 29761: return __init; 29761: } 29761: # 478 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: exclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Tp __init, 29761: _BinaryOperation __binary_op) 29761: { 29761: while (__first != __last) 29761: { 29761: _Tp __v = std::move(__init); 29761: __init = __binary_op(__v, *__first); 29761: ++__first; 29761: *__result++ = std::move(__v); 29761: } 29761: return __result; 29761: } 29761: # 513 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: inline _OutputIterator 29761: exclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Tp __init) 29761: { 29761: return std::exclusive_scan(__first, __last, __result, std::move(__init), 29761: plus<>()); 29761: } 29761: # 541 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: inclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _BinaryOperation __binary_op, 29761: _Tp __init) 29761: { 29761: for (; __first != __last; ++__first) 29761: *__result++ = __init = __binary_op(__init, *__first); 29761: return __result; 29761: } 29761: # 570 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: inclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _BinaryOperation __binary_op) 29761: { 29761: if (__first != __last) 29761: { 29761: auto __init = *__first; 29761: *__result++ = __init; 29761: ++__first; 29761: if (__first != __last) 29761: __result = std::inclusive_scan(__first, __last, __result, 29761: __binary_op, std::move(__init)); 29761: } 29761: return __result; 29761: } 29761: # 604 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: inline _OutputIterator 29761: inclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result) 29761: { return std::inclusive_scan(__first, __last, __result, plus<>()); } 29761: # 631 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: transform_exclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, _Tp __init, 29761: _BinaryOperation __binary_op, 29761: _UnaryOperation __unary_op) 29761: { 29761: while (__first != __last) 29761: { 29761: auto __v = __init; 29761: __init = __binary_op(__init, __unary_op(*__first)); 29761: ++__first; 29761: *__result++ = std::move(__v); 29761: } 29761: return __result; 29761: } 29761: # 670 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: _BinaryOperation __binary_op, 29761: _UnaryOperation __unary_op, 29761: _Tp __init) 29761: { 29761: for (; __first != __last; ++__first) 29761: *__result++ = __init = __binary_op(__init, __unary_op(*__first)); 29761: return __result; 29761: } 29761: # 704 "/usr/include/c++/14/numeric" 3 29761: template 29761: 29761: _OutputIterator 29761: transform_inclusive_scan(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, 29761: _BinaryOperation __binary_op, 29761: _UnaryOperation __unary_op) 29761: { 29761: if (__first != __last) 29761: { 29761: auto __init = __unary_op(*__first); 29761: *__result++ = __init; 29761: ++__first; 29761: if (__first != __last) 29761: __result = std::transform_inclusive_scan(__first, __last, __result, 29761: __binary_op, __unary_op, 29761: std::move(__init)); 29761: } 29761: return __result; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 739 "/usr/include/c++/14/numeric" 3 29761: # 1 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 1 3 29761: # 15 "/usr/include/c++/14/pstl/glue_numeric_defs.h" 3 29761: namespace std 29761: { 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29761: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 29761: _BinaryOperation __binary_op); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29761: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, 29761: typename iterator_traits<_ForwardIterator>::value_type> 29761: reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29761: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _Tp __init); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29761: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, 29761: _ForwardIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, 29761: _BinaryOperation2 __binary_op2); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _Tp> 29761: transform_reduce(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, 29761: _BinaryOperation __binary_op, _UnaryOperation __unary_op); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _Tp __init); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _BinaryOperation __binary_op); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: transform_exclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, 29761: _UnaryOperation __unary_op); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, 29761: _Tp __init); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: transform_inclusive_scan(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op); 29761: 29761: 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __d_first, _BinaryOperation __op); 29761: 29761: template 29761: __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> 29761: adjacent_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, 29761: _ForwardIterator2 __d_first); 29761: 29761: } 29761: # 740 "/usr/include/c++/14/numeric" 2 3 29761: # 34 "/usr/include/c++/14/bits/random.tcc" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _Tp 29761: _Mod<_Tp, __m, __a, __c, false, true>:: 29761: __calc(_Tp __x) 29761: { 29761: if (__a == 1) 29761: __x %= __m; 29761: else 29761: { 29761: static const _Tp __q = __m / __a; 29761: static const _Tp __r = __m % __a; 29761: 29761: _Tp __t1 = __a * (__x % __q); 29761: _Tp __t2 = __r * (__x / __q); 29761: if (__t1 >= __t2) 29761: __x = __t1 - __t2; 29761: else 29761: __x = __m - __t2 + __t1; 29761: } 29761: 29761: if (__c != 0) 29761: { 29761: const _Tp __d = __m - __x; 29761: if (__d > __c) 29761: __x += __c; 29761: else 29761: __x = __c - __d; 29761: } 29761: return __x; 29761: } 29761: 29761: template 29761: _OutputIterator 29761: __normalize(_InputIterator __first, _InputIterator __last, 29761: _OutputIterator __result, const _Tp& __factor) 29761: { 29761: for (; __first != __last; ++__first, ++__result) 29761: *__result = *__first / __factor; 29761: return __result; 29761: } 29761: 29761: } 29761: # 116 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: void 29761: linear_congruential_engine<_UIntType, __a, __c, __m>:: 29761: seed(result_type __s) 29761: { 29761: if ((__detail::__mod<_UIntType, __m>(__c) == 0) 29761: && (__detail::__mod<_UIntType, __m>(__s) == 0)) 29761: _M_x = 1; 29761: else 29761: _M_x = __detail::__mod<_UIntType, __m>(__s); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: template 29761: auto 29761: linear_congruential_engine<_UIntType, __a, __c, __m>:: 29761: seed(_Sseq& __q) 29761: -> _If_seed_seq<_Sseq> 29761: { 29761: const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits 29761: : std::__lg(__m); 29761: const _UIntType __k = (__k0 + 31) / 32; 29761: uint_least32_t __arr[__k + 3]; 29761: __q.generate(__arr + 0, __arr + __k + 3); 29761: _UIntType __factor = 1u; 29761: _UIntType __sum = 0u; 29761: for (size_t __j = 0; __j < __k; ++__j) 29761: { 29761: __sum += __arr[__j + 3] * __factor; 29761: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29761: } 29761: seed(__sum); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const linear_congruential_engine<_UIntType, 29761: __a, __c, __m>& __lcr) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29761: __os.fill(__os.widen(' ')); 29761: 29761: __os << __lcr._M_x; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: linear_congruential_engine<_UIntType, __a, __c, __m>& __lcr) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec); 29761: 29761: __is >> __lcr._M_x; 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: # 320 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: void 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>:: 29761: seed(result_type __sd) 29761: { 29761: _M_x[0] = __detail::__mod<_UIntType, 29761: __detail::_Shift<_UIntType, __w>::__value>(__sd); 29761: 29761: for (size_t __i = 1; __i < state_size; ++__i) 29761: { 29761: _UIntType __x = _M_x[__i - 1]; 29761: __x ^= __x >> (__w - 2); 29761: __x *= __f; 29761: __x += __detail::__mod<_UIntType, __n>(__i); 29761: _M_x[__i] = __detail::__mod<_UIntType, 29761: __detail::_Shift<_UIntType, __w>::__value>(__x); 29761: } 29761: _M_p = state_size; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>:: 29761: seed(_Sseq& __q) 29761: -> _If_seed_seq<_Sseq> 29761: { 29761: const _UIntType __upper_mask = (~_UIntType()) << __r; 29761: const size_t __k = (__w + 31) / 32; 29761: uint_least32_t __arr[__n * __k]; 29761: __q.generate(__arr + 0, __arr + __n * __k); 29761: 29761: bool __zero = true; 29761: for (size_t __i = 0; __i < state_size; ++__i) 29761: { 29761: _UIntType __factor = 1u; 29761: _UIntType __sum = 0u; 29761: for (size_t __j = 0; __j < __k; ++__j) 29761: { 29761: __sum += __arr[__k * __i + __j] * __factor; 29761: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29761: } 29761: _M_x[__i] = __detail::__mod<_UIntType, 29761: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29761: 29761: if (__zero) 29761: { 29761: if (__i == 0) 29761: { 29761: if ((_M_x[0] & __upper_mask) != 0u) 29761: __zero = false; 29761: } 29761: else if (_M_x[__i] != 0u) 29761: __zero = false; 29761: } 29761: } 29761: if (__zero) 29761: _M_x[0] = __detail::_Shift<_UIntType, __w - 1>::__value; 29761: _M_p = state_size; 29761: } 29761: 29761: template 29761: void 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>:: 29761: _M_gen_rand(void) 29761: { 29761: const _UIntType __upper_mask = (~_UIntType()) << __r; 29761: const _UIntType __lower_mask = ~__upper_mask; 29761: 29761: for (size_t __k = 0; __k < (__n - __m); ++__k) 29761: { 29761: _UIntType __y = ((_M_x[__k] & __upper_mask) 29761: | (_M_x[__k + 1] & __lower_mask)); 29761: _M_x[__k] = (_M_x[__k + __m] ^ (__y >> 1) 29761: ^ ((__y & 0x01) ? __a : 0)); 29761: } 29761: 29761: for (size_t __k = (__n - __m); __k < (__n - 1); ++__k) 29761: { 29761: _UIntType __y = ((_M_x[__k] & __upper_mask) 29761: | (_M_x[__k + 1] & __lower_mask)); 29761: _M_x[__k] = (_M_x[__k + (__m - __n)] ^ (__y >> 1) 29761: ^ ((__y & 0x01) ? __a : 0)); 29761: } 29761: 29761: _UIntType __y = ((_M_x[__n - 1] & __upper_mask) 29761: | (_M_x[0] & __lower_mask)); 29761: _M_x[__n - 1] = (_M_x[__m - 1] ^ (__y >> 1) 29761: ^ ((__y & 0x01) ? __a : 0)); 29761: _M_p = 0; 29761: } 29761: 29761: template 29761: void 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>:: 29761: discard(unsigned long long __z) 29761: { 29761: while (__z > state_size - _M_p) 29761: { 29761: __z -= state_size - _M_p; 29761: _M_gen_rand(); 29761: } 29761: _M_p += __z; 29761: } 29761: 29761: template 29761: typename 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>::result_type 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, 29761: __s, __b, __t, __c, __l, __f>:: 29761: operator()() 29761: { 29761: 29761: if (_M_p >= state_size) 29761: _M_gen_rand(); 29761: 29761: 29761: result_type __z = _M_x[_M_p++]; 29761: __z ^= (__z >> __u) & __d; 29761: __z ^= (__z << __s) & __b; 29761: __z ^= (__z << __t) & __c; 29761: __z ^= (__z >> __l); 29761: 29761: return __z; 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const mersenne_twister_engine<_UIntType, __w, __n, __m, 29761: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29761: __os.fill(__space); 29761: 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: __os << __x._M_x[__i] << __space; 29761: __os << __x._M_p; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: mersenne_twister_engine<_UIntType, __w, __n, __m, 29761: __r, __a, __u, __d, __s, __b, __t, __c, __l, __f>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: for (size_t __i = 0; __i < __n; ++__i) 29761: __is >> __x._M_x[__i]; 29761: __is >> __x._M_p; 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: # 539 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: void 29761: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29761: seed(result_type __value) 29761: { 29761: 29761: 29761: 29761: std::linear_congruential_engine 29761: __lcg(__value == 0u ? default_seed : __value % 2147483563u); 29761: 29761: const size_t __n = (__w + 31) / 32; 29761: 29761: for (size_t __i = 0; __i < long_lag; ++__i) 29761: { 29761: _UIntType __sum = 0u; 29761: _UIntType __factor = 1u; 29761: for (size_t __j = 0; __j < __n; ++__j) 29761: { 29761: __sum += __detail::__mod::__value> 29761: (__lcg()) * __factor; 29761: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29761: } 29761: _M_x[__i] = __detail::__mod<_UIntType, 29761: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29761: } 29761: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 29761: _M_p = 0; 29761: } 29761: 29761: template 29761: template 29761: auto 29761: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29761: seed(_Sseq& __q) 29761: -> _If_seed_seq<_Sseq> 29761: { 29761: const size_t __k = (__w + 31) / 32; 29761: uint_least32_t __arr[__r * __k]; 29761: __q.generate(__arr + 0, __arr + __r * __k); 29761: 29761: for (size_t __i = 0; __i < long_lag; ++__i) 29761: { 29761: _UIntType __sum = 0u; 29761: _UIntType __factor = 1u; 29761: for (size_t __j = 0; __j < __k; ++__j) 29761: { 29761: __sum += __arr[__k * __i + __j] * __factor; 29761: __factor *= __detail::_Shift<_UIntType, 32>::__value; 29761: } 29761: _M_x[__i] = __detail::__mod<_UIntType, 29761: __detail::_Shift<_UIntType, __w>::__value>(__sum); 29761: } 29761: _M_carry = (_M_x[long_lag - 1] == 0) ? 1 : 0; 29761: _M_p = 0; 29761: } 29761: 29761: template 29761: typename subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29761: result_type 29761: subtract_with_carry_engine<_UIntType, __w, __s, __r>:: 29761: operator()() 29761: { 29761: 29761: long __ps = _M_p - short_lag; 29761: if (__ps < 0) 29761: __ps += long_lag; 29761: 29761: 29761: 29761: 29761: _UIntType __xi; 29761: if (_M_x[__ps] >= _M_x[_M_p] + _M_carry) 29761: { 29761: __xi = _M_x[__ps] - _M_x[_M_p] - _M_carry; 29761: _M_carry = 0; 29761: } 29761: else 29761: { 29761: __xi = (__detail::_Shift<_UIntType, __w>::__value 29761: - _M_x[_M_p] - _M_carry + _M_x[__ps]); 29761: _M_carry = 1; 29761: } 29761: _M_x[_M_p] = __xi; 29761: 29761: 29761: if (++_M_p >= long_lag) 29761: _M_p = 0; 29761: 29761: return __xi; 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const subtract_with_carry_engine<_UIntType, 29761: __w, __s, __r>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29761: __os.fill(__space); 29761: 29761: for (size_t __i = 0; __i < __r; ++__i) 29761: __os << __x._M_x[__i] << __space; 29761: __os << __x._M_carry << __space << __x._M_p; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: subtract_with_carry_engine<_UIntType, __w, __s, __r>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: for (size_t __i = 0; __i < __r; ++__i) 29761: __is >> __x._M_x[__i]; 29761: __is >> __x._M_carry; 29761: __is >> __x._M_p; 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: # 686 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: typename discard_block_engine<_RandomNumberEngine, 29761: __p, __r>::result_type 29761: discard_block_engine<_RandomNumberEngine, __p, __r>:: 29761: operator()() 29761: { 29761: if (_M_n >= used_block) 29761: { 29761: _M_b.discard(block_size - _M_n); 29761: _M_n = 0; 29761: } 29761: ++_M_n; 29761: return _M_b(); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const discard_block_engine<_RandomNumberEngine, 29761: __p, __r>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29761: __os.fill(__space); 29761: 29761: __os << __x.base() << __space << __x._M_n; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: discard_block_engine<_RandomNumberEngine, __p, __r>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: __is >> __x._M_b >> __x._M_n; 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: typename independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 29761: result_type 29761: independent_bits_engine<_RandomNumberEngine, __w, _UIntType>:: 29761: operator()() 29761: { 29761: typedef typename _RandomNumberEngine::result_type _Eresult_type; 29761: const _Eresult_type __r 29761: = (_M_b.max() - _M_b.min() < std::numeric_limits<_Eresult_type>::max() 29761: ? _M_b.max() - _M_b.min() + 1 : 0); 29761: const unsigned __edig = std::numeric_limits<_Eresult_type>::digits; 29761: const unsigned __m = __r ? std::__lg(__r) : __edig; 29761: 29761: typedef typename std::common_type<_Eresult_type, result_type>::type 29761: __ctype; 29761: const unsigned __cdig = std::numeric_limits<__ctype>::digits; 29761: 29761: unsigned __n, __n0; 29761: __ctype __s0, __s1, __y0, __y1; 29761: 29761: for (size_t __i = 0; __i < 2; ++__i) 29761: { 29761: __n = (__w + __m - 1) / __m + __i; 29761: __n0 = __n - __w % __n; 29761: const unsigned __w0 = __w / __n; 29761: 29761: __s0 = 0; 29761: __s1 = 0; 29761: if (__w0 < __cdig) 29761: { 29761: __s0 = __ctype(1) << __w0; 29761: __s1 = __s0 << 1; 29761: } 29761: 29761: __y0 = 0; 29761: __y1 = 0; 29761: if (__r) 29761: { 29761: __y0 = __s0 * (__r / __s0); 29761: if (__s1) 29761: __y1 = __s1 * (__r / __s1); 29761: 29761: if (__r - __y0 <= __y0 / __n) 29761: break; 29761: } 29761: else 29761: break; 29761: } 29761: 29761: result_type __sum = 0; 29761: for (size_t __k = 0; __k < __n0; ++__k) 29761: { 29761: __ctype __u; 29761: do 29761: __u = _M_b() - _M_b.min(); 29761: while (__y0 && __u >= __y0); 29761: __sum = __s0 * __sum + (__s0 ? __u % __s0 : __u); 29761: } 29761: for (size_t __k = __n0; __k < __n; ++__k) 29761: { 29761: __ctype __u; 29761: do 29761: __u = _M_b() - _M_b.min(); 29761: while (__y1 && __u >= __y1); 29761: __sum = __s1 * __sum + (__s1 ? __u % __s1 : __u); 29761: } 29761: return __sum; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace __detail 29761: { 29761: 29761: template 29761: constexpr bool 29761: __representable_as_double(_Tp __x) noexcept 29761: { 29761: static_assert(numeric_limits<_Tp>::is_integer, ""); 29761: static_assert(!numeric_limits<_Tp>::is_signed, ""); 29761: 29761: return (__x <= (1ull << 53)) 29761: 29761: || (!(__x & 1) && __detail::__representable_as_double(__x >> 1)); 29761: } 29761: 29761: 29761: template 29761: constexpr bool 29761: __p1_representable_as_double(_Tp __x) noexcept 29761: { 29761: static_assert(numeric_limits<_Tp>::is_integer, ""); 29761: static_assert(!numeric_limits<_Tp>::is_signed, ""); 29761: return numeric_limits<_Tp>::digits < 53 29761: || (bool(__x + 1u) 29761: && __detail::__representable_as_double(__x + 1u)); 29761: } 29761: } 29761: 29761: template 29761: typename shuffle_order_engine<_RandomNumberEngine, __k>::result_type 29761: shuffle_order_engine<_RandomNumberEngine, __k>:: 29761: operator()() 29761: { 29761: constexpr result_type __range = max() - min(); 29761: size_t __j = __k; 29761: const result_type __y = _M_y - min(); 29761: 29761: if constexpr (__detail::__p1_representable_as_double(__range)) 29761: __j *= __y / (__range + 1.0); 29761: else 29761: __j *= __y / (__range + 1.0L); 29761: _M_y = _M_v[__j]; 29761: _M_v[__j] = _M_b(); 29761: 29761: return _M_y; 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const shuffle_order_engine<_RandomNumberEngine, __k>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::dec | __ios_base::fixed | __ios_base::left); 29761: __os.fill(__space); 29761: 29761: __os << __x.base(); 29761: for (size_t __i = 0; __i < __k; ++__i) 29761: __os << __space << __x._M_v[__i]; 29761: __os << __space << __x._M_y; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: shuffle_order_engine<_RandomNumberEngine, __k>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: __is >> __x._M_b; 29761: for (size_t __i = 0; __i < __k; ++__i) 29761: __is >> __x._M_v[__i]; 29761: __is >> __x._M_y; 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const uniform_int_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: 29761: __os << __x.a() << __space << __x.b(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: uniform_int_distribution<_IntType>& __x) 29761: { 29761: using param_type 29761: = typename uniform_int_distribution<_IntType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _IntType __a, __b; 29761: if (__is >> __a >> __b) 29761: __x.param(param_type(__a, __b)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: uniform_real_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: auto __range = __p.b() - __p.a(); 29761: while (__f != __t) 29761: *__f++ = __aurng() * __range + __p.a(); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const uniform_real_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.a() << __space << __x.b(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: uniform_real_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename uniform_real_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::skipws); 29761: 29761: _RealType __a, __b; 29761: if (__is >> __a >> __b) 29761: __x.param(param_type(__a, __b)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: std::bernoulli_distribution:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: auto __limit = __p.p() * (__aurng.max() - __aurng.min()); 29761: 29761: while (__f != __t) 29761: *__f++ = (__aurng() - __aurng.min()) < __limit; 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const bernoulli_distribution& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__os.widen(' ')); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: __os << __x.p(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: 29761: template 29761: template 29761: typename geometric_distribution<_IntType>::result_type 29761: geometric_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: const double __naf = 29761: (1 - std::numeric_limits::epsilon()) / 2; 29761: 29761: const double __thr = 29761: std::numeric_limits<_IntType>::max() + __naf; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: double __cand; 29761: do 29761: __cand = std::floor(std::log(1.0 - __aurng()) / __param._M_log_1_p); 29761: while (__cand >= __thr); 29761: 29761: return result_type(__cand + __naf); 29761: } 29761: 29761: template 29761: template 29761: void 29761: geometric_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: 29761: const double __naf = 29761: (1 - std::numeric_limits::epsilon()) / 2; 29761: 29761: const double __thr = 29761: std::numeric_limits<_IntType>::max() + __naf; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: while (__f != __t) 29761: { 29761: double __cand; 29761: do 29761: __cand = std::floor(std::log(1.0 - __aurng()) 29761: / __param._M_log_1_p); 29761: while (__cand >= __thr); 29761: 29761: *__f++ = __cand + __naf; 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const geometric_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__os.widen(' ')); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: __os << __x.p(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: geometric_distribution<_IntType>& __x) 29761: { 29761: using param_type = typename geometric_distribution<_IntType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::skipws); 29761: 29761: double __p; 29761: if (__is >> __p) 29761: __x.param(param_type(__p)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: typename negative_binomial_distribution<_IntType>::result_type 29761: negative_binomial_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng) 29761: { 29761: const double __y = _M_gd(__urng); 29761: 29761: 29761: std::poisson_distribution __poisson(__y); 29761: return __poisson(__urng); 29761: } 29761: 29761: template 29761: template 29761: typename negative_binomial_distribution<_IntType>::result_type 29761: negative_binomial_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: 29761: const double __y = 29761: _M_gd(__urng, param_type(__p.k(), (1.0 - __p.p()) / __p.p())); 29761: 29761: std::poisson_distribution __poisson(__y); 29761: return __poisson(__urng); 29761: } 29761: 29761: template 29761: template 29761: void 29761: negative_binomial_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { 29761: 29761: while (__f != __t) 29761: { 29761: const double __y = _M_gd(__urng); 29761: 29761: 29761: std::poisson_distribution __poisson(__y); 29761: *__f++ = __poisson(__urng); 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: negative_binomial_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: typename std::gamma_distribution::param_type 29761: __p2(__p.k(), (1.0 - __p.p()) / __p.p()); 29761: 29761: while (__f != __t) 29761: { 29761: const double __y = _M_gd(__urng, __p2); 29761: 29761: std::poisson_distribution __poisson(__y); 29761: *__f++ = __poisson(__urng); 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const negative_binomial_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__os.widen(' ')); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: __os << __x.k() << __space << __x.p() 29761: << __space << __x._M_gd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: negative_binomial_distribution<_IntType>& __x) 29761: { 29761: using param_type 29761: = typename negative_binomial_distribution<_IntType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::skipws); 29761: 29761: _IntType __k; 29761: double __p; 29761: if (__is >> __k >> __p >> __x._M_gd) 29761: __x.param(param_type(__k, __p)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: poisson_distribution<_IntType>::param_type:: 29761: _M_initialize() 29761: { 29761: 29761: if (_M_mean >= 12) 29761: { 29761: const double __m = std::floor(_M_mean); 29761: _M_lm_thr = std::log(_M_mean); 29761: _M_lfm = std::lgamma(__m + 1); 29761: _M_sm = std::sqrt(__m); 29761: 29761: const double __pi_4 = 0.7853981633974483096156608458198757L; 29761: const double __dx = std::sqrt(2 * __m * std::log(32 * __m 29761: / __pi_4)); 29761: _M_d = std::round(std::max(6.0, std::min(__m, __dx))); 29761: const double __cx = 2 * __m + _M_d; 29761: _M_scx = std::sqrt(__cx / 2); 29761: _M_1cx = 1 / __cx; 29761: 29761: _M_c2b = std::sqrt(__pi_4 * __cx) * std::exp(_M_1cx); 29761: _M_cb = 2 * __cx * std::exp(-_M_d * _M_1cx * (1 + _M_d / 2)) 29761: / _M_d; 29761: } 29761: else 29761: 29761: _M_lm_thr = std::exp(-_M_mean); 29761: } 29761: # 1308 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: template 29761: typename poisson_distribution<_IntType>::result_type 29761: poisson_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: if (__param.mean() >= 12) 29761: { 29761: double __x; 29761: 29761: 29761: const double __naf = 29761: (1 - std::numeric_limits::epsilon()) / 2; 29761: const double __thr = 29761: std::numeric_limits<_IntType>::max() + __naf; 29761: 29761: const double __m = std::floor(__param.mean()); 29761: 29761: const double __spi_2 = 1.2533141373155002512078826424055226L; 29761: const double __c1 = __param._M_sm * __spi_2; 29761: const double __c2 = __param._M_c2b + __c1; 29761: const double __c3 = __c2 + 1; 29761: const double __c4 = __c3 + 1; 29761: 29761: const double __178 = 0.0128205128205128205128205128205128L; 29761: 29761: const double __e178 = 1.0129030479320018583185514777512983L; 29761: const double __c5 = __c4 + __e178; 29761: const double __c = __param._M_cb + __c5; 29761: const double __2cx = 2 * (2 * __m + __param._M_d); 29761: 29761: bool __reject = true; 29761: do 29761: { 29761: const double __u = __c * __aurng(); 29761: const double __e = -std::log(1.0 - __aurng()); 29761: 29761: double __w = 0.0; 29761: 29761: if (__u <= __c1) 29761: { 29761: const double __n = _M_nd(__urng); 29761: const double __y = -std::abs(__n) * __param._M_sm - 1; 29761: __x = std::floor(__y); 29761: __w = -__n * __n / 2; 29761: if (__x < -__m) 29761: continue; 29761: } 29761: else if (__u <= __c2) 29761: { 29761: const double __n = _M_nd(__urng); 29761: const double __y = 1 + std::abs(__n) * __param._M_scx; 29761: __x = std::ceil(__y); 29761: __w = __y * (2 - __y) * __param._M_1cx; 29761: if (__x > __param._M_d) 29761: continue; 29761: } 29761: else if (__u <= __c3) 29761: 29761: 29761: __x = -1; 29761: else if (__u <= __c4) 29761: __x = 0; 29761: else if (__u <= __c5) 29761: { 29761: __x = 1; 29761: 29761: __w = __178; 29761: } 29761: else 29761: { 29761: const double __v = -std::log(1.0 - __aurng()); 29761: const double __y = __param._M_d 29761: + __v * __2cx / __param._M_d; 29761: __x = std::ceil(__y); 29761: __w = -__param._M_d * __param._M_1cx * (1 + __y / 2); 29761: } 29761: 29761: __reject = (__w - __e - __x * __param._M_lm_thr 29761: > __param._M_lfm - std::lgamma(__x + __m + 1)); 29761: 29761: __reject |= __x + __m >= __thr; 29761: 29761: } while (__reject); 29761: 29761: return result_type(__x + __m + __naf); 29761: } 29761: else 29761: 29761: { 29761: _IntType __x = 0; 29761: double __prod = 1.0; 29761: 29761: do 29761: { 29761: __prod *= __aurng(); 29761: __x += 1; 29761: } 29761: while (__prod > __param._M_lm_thr); 29761: 29761: return __x - 1; 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: poisson_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: while (__f != __t) 29761: *__f++ = this->operator()(__urng, __param); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const poisson_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: __os << __x.mean() << __space << __x._M_nd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: poisson_distribution<_IntType>& __x) 29761: { 29761: using param_type = typename poisson_distribution<_IntType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::skipws); 29761: 29761: double __mean; 29761: if (__is >> __mean >> __x._M_nd) 29761: __x.param(param_type(__mean)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: binomial_distribution<_IntType>::param_type:: 29761: _M_initialize() 29761: { 29761: const double __p12 = _M_p <= 0.5 ? _M_p : 1.0 - _M_p; 29761: 29761: _M_easy = true; 29761: 29761: 29761: if (_M_t * __p12 >= 8) 29761: { 29761: _M_easy = false; 29761: const double __np = std::floor(_M_t * __p12); 29761: const double __pa = __np / _M_t; 29761: const double __1p = 1 - __pa; 29761: 29761: const double __pi_4 = 0.7853981633974483096156608458198757L; 29761: const double __d1x = 29761: std::sqrt(__np * __1p * std::log(32 * __np 29761: / (81 * __pi_4 * __1p))); 29761: _M_d1 = std::round(std::max(1.0, __d1x)); 29761: const double __d2x = 29761: std::sqrt(__np * __1p * std::log(32 * _M_t * __1p 29761: / (__pi_4 * __pa))); 29761: _M_d2 = std::round(std::max(1.0, __d2x)); 29761: 29761: 29761: const double __spi_2 = 1.2533141373155002512078826424055226L; 29761: _M_s1 = std::sqrt(__np * __1p) * (1 + _M_d1 / (4 * __np)); 29761: _M_s2 = std::sqrt(__np * __1p) * (1 + _M_d2 / (4 * (_M_t * __1p))); 29761: _M_c = 2 * _M_d1 / __np; 29761: _M_a1 = std::exp(_M_c) * _M_s1 * __spi_2; 29761: const double __a12 = _M_a1 + _M_s2 * __spi_2; 29761: const double __s1s = _M_s1 * _M_s1; 29761: _M_a123 = __a12 + (std::exp(_M_d1 / (_M_t * __1p)) 29761: * 2 * __s1s / _M_d1 29761: * std::exp(-_M_d1 * _M_d1 / (2 * __s1s))); 29761: const double __s2s = _M_s2 * _M_s2; 29761: _M_s = (_M_a123 + 2 * __s2s / _M_d2 29761: * std::exp(-_M_d2 * _M_d2 / (2 * __s2s))); 29761: _M_lf = (std::lgamma(__np + 1) 29761: + std::lgamma(_M_t - __np + 1)); 29761: _M_lp1p = std::log(__pa / __1p); 29761: 29761: _M_q = -std::log(1 - (__p12 - __pa) / __1p); 29761: } 29761: else 29761: 29761: _M_q = -std::log(1 - __p12); 29761: } 29761: 29761: template 29761: template 29761: typename binomial_distribution<_IntType>::result_type 29761: binomial_distribution<_IntType>:: 29761: _M_waiting(_UniformRandomNumberGenerator& __urng, 29761: _IntType __t, double __q) 29761: { 29761: _IntType __x = 0; 29761: double __sum = 0.0; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: do 29761: { 29761: if (__t == __x) 29761: return __x; 29761: const double __e = -std::log(1.0 - __aurng()); 29761: __sum += __e / (__t - __x); 29761: __x += 1; 29761: } 29761: while (__sum <= __q); 29761: 29761: return __x - 1; 29761: } 29761: # 1563 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: template 29761: typename binomial_distribution<_IntType>::result_type 29761: binomial_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: result_type __ret; 29761: const _IntType __t = __param.t(); 29761: const double __p = __param.p(); 29761: const double __p12 = __p <= 0.5 ? __p : 1.0 - __p; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: 29761: if (!__param._M_easy) 29761: { 29761: double __x; 29761: 29761: 29761: const double __naf = 29761: (1 - std::numeric_limits::epsilon()) / 2; 29761: const double __thr = 29761: std::numeric_limits<_IntType>::max() + __naf; 29761: 29761: const double __np = std::floor(__t * __p12); 29761: 29761: 29761: const double __spi_2 = 1.2533141373155002512078826424055226L; 29761: const double __a1 = __param._M_a1; 29761: const double __a12 = __a1 + __param._M_s2 * __spi_2; 29761: const double __a123 = __param._M_a123; 29761: const double __s1s = __param._M_s1 * __param._M_s1; 29761: const double __s2s = __param._M_s2 * __param._M_s2; 29761: 29761: bool __reject; 29761: do 29761: { 29761: const double __u = __param._M_s * __aurng(); 29761: 29761: double __v; 29761: 29761: if (__u <= __a1) 29761: { 29761: const double __n = _M_nd(__urng); 29761: const double __y = __param._M_s1 * std::abs(__n); 29761: __reject = __y >= __param._M_d1; 29761: if (!__reject) 29761: { 29761: const double __e = -std::log(1.0 - __aurng()); 29761: __x = std::floor(__y); 29761: __v = -__e - __n * __n / 2 + __param._M_c; 29761: } 29761: } 29761: else if (__u <= __a12) 29761: { 29761: const double __n = _M_nd(__urng); 29761: const double __y = __param._M_s2 * std::abs(__n); 29761: __reject = __y >= __param._M_d2; 29761: if (!__reject) 29761: { 29761: const double __e = -std::log(1.0 - __aurng()); 29761: __x = std::floor(-__y); 29761: __v = -__e - __n * __n / 2; 29761: } 29761: } 29761: else if (__u <= __a123) 29761: { 29761: const double __e1 = -std::log(1.0 - __aurng()); 29761: const double __e2 = -std::log(1.0 - __aurng()); 29761: 29761: const double __y = __param._M_d1 29761: + 2 * __s1s * __e1 / __param._M_d1; 29761: __x = std::floor(__y); 29761: __v = (-__e2 + __param._M_d1 * (1 / (__t - __np) 29761: -__y / (2 * __s1s))); 29761: __reject = false; 29761: } 29761: else 29761: { 29761: const double __e1 = -std::log(1.0 - __aurng()); 29761: const double __e2 = -std::log(1.0 - __aurng()); 29761: 29761: const double __y = __param._M_d2 29761: + 2 * __s2s * __e1 / __param._M_d2; 29761: __x = std::floor(-__y); 29761: __v = -__e2 - __param._M_d2 * __y / (2 * __s2s); 29761: __reject = false; 29761: } 29761: 29761: __reject = __reject || __x < -__np || __x > __t - __np; 29761: if (!__reject) 29761: { 29761: const double __lfx = 29761: std::lgamma(__np + __x + 1) 29761: + std::lgamma(__t - (__np + __x) + 1); 29761: __reject = __v > __param._M_lf - __lfx 29761: + __x * __param._M_lp1p; 29761: } 29761: 29761: __reject |= __x + __np >= __thr; 29761: } 29761: while (__reject); 29761: 29761: __x += __np + __naf; 29761: 29761: const _IntType __z = _M_waiting(__urng, __t - _IntType(__x), 29761: __param._M_q); 29761: __ret = _IntType(__x) + __z; 29761: } 29761: else 29761: 29761: __ret = _M_waiting(__urng, __t, __param._M_q); 29761: 29761: if (__p12 != __p) 29761: __ret = __t - __ret; 29761: return __ret; 29761: } 29761: 29761: template 29761: template 29761: void 29761: binomial_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: while (__f != __t) 29761: *__f++ = this->operator()(__urng, __param); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const binomial_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: __os << __x.t() << __space << __x.p() 29761: << __space << __x._M_nd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: binomial_distribution<_IntType>& __x) 29761: { 29761: using param_type = typename binomial_distribution<_IntType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _IntType __t; 29761: double __p; 29761: if (__is >> __t >> __p >> __x._M_nd) 29761: __x.param(param_type(__t, __p)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: std::exponential_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: while (__f != __t) 29761: *__f++ = -std::log(result_type(1) - __aurng()) / __p.lambda(); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const exponential_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__os.widen(' ')); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.lambda(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: exponential_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename exponential_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __lambda; 29761: if (__is >> __lambda) 29761: __x.param(param_type(__lambda)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: # 1809 "/usr/include/c++/14/bits/random.tcc" 3 29761: template 29761: template 29761: typename normal_distribution<_RealType>::result_type 29761: normal_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: result_type __ret; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: 29761: if (_M_saved_available) 29761: { 29761: _M_saved_available = false; 29761: __ret = _M_saved; 29761: } 29761: else 29761: { 29761: result_type __x, __y, __r2; 29761: do 29761: { 29761: __x = result_type(2.0) * __aurng() - 1.0; 29761: __y = result_type(2.0) * __aurng() - 1.0; 29761: __r2 = __x * __x + __y * __y; 29761: } 29761: while (__r2 > 1.0 || __r2 == 0.0); 29761: 29761: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29761: _M_saved = __x * __mult; 29761: _M_saved_available = true; 29761: __ret = __y * __mult; 29761: } 29761: 29761: __ret = __ret * __param.stddev() + __param.mean(); 29761: return __ret; 29761: } 29761: 29761: template 29761: template 29761: void 29761: normal_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: if (__f == __t) 29761: return; 29761: 29761: if (_M_saved_available) 29761: { 29761: _M_saved_available = false; 29761: *__f++ = _M_saved * __param.stddev() + __param.mean(); 29761: 29761: if (__f == __t) 29761: return; 29761: } 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: 29761: while (__f + 1 < __t) 29761: { 29761: result_type __x, __y, __r2; 29761: do 29761: { 29761: __x = result_type(2.0) * __aurng() - 1.0; 29761: __y = result_type(2.0) * __aurng() - 1.0; 29761: __r2 = __x * __x + __y * __y; 29761: } 29761: while (__r2 > 1.0 || __r2 == 0.0); 29761: 29761: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29761: *__f++ = __y * __mult * __param.stddev() + __param.mean(); 29761: *__f++ = __x * __mult * __param.stddev() + __param.mean(); 29761: } 29761: 29761: if (__f != __t) 29761: { 29761: result_type __x, __y, __r2; 29761: do 29761: { 29761: __x = result_type(2.0) * __aurng() - 1.0; 29761: __y = result_type(2.0) * __aurng() - 1.0; 29761: __r2 = __x * __x + __y * __y; 29761: } 29761: while (__r2 > 1.0 || __r2 == 0.0); 29761: 29761: const result_type __mult = std::sqrt(-2 * std::log(__r2) / __r2); 29761: _M_saved = __x * __mult; 29761: _M_saved_available = true; 29761: *__f = __y * __mult * __param.stddev() + __param.mean(); 29761: } 29761: } 29761: 29761: template 29761: bool 29761: operator==(const std::normal_distribution<_RealType>& __d1, 29761: const std::normal_distribution<_RealType>& __d2) 29761: { 29761: if (__d1._M_param == __d2._M_param 29761: && __d1._M_saved_available == __d2._M_saved_available) 29761: return __d1._M_saved_available ? __d1._M_saved == __d2._M_saved : true; 29761: else 29761: return false; 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const normal_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.mean() << __space << __x.stddev() 29761: << __space << __x._M_saved_available; 29761: if (__x._M_saved_available) 29761: __os << __space << __x._M_saved; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: normal_distribution<_RealType>& __x) 29761: { 29761: using param_type = typename normal_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: double __mean, __stddev; 29761: bool __saved_avail; 29761: if (__is >> __mean >> __stddev >> __saved_avail) 29761: { 29761: if (!__saved_avail || (__is >> __x._M_saved)) 29761: { 29761: __x._M_saved_available = __saved_avail; 29761: __x.param(param_type(__mean, __stddev)); 29761: } 29761: } 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: lognormal_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: while (__f != __t) 29761: *__f++ = std::exp(__p.s() * _M_nd(__urng) + __p.m()); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const lognormal_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.m() << __space << __x.s() 29761: << __space << __x._M_nd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: lognormal_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename lognormal_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __m, __s; 29761: if (__is >> __m >> __s >> __x._M_nd) 29761: __x.param(param_type(__m, __s)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: template 29761: template 29761: void 29761: std::chi_squared_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { 29761: 29761: while (__f != __t) 29761: *__f++ = 2 * _M_gd(__urng); 29761: } 29761: 29761: template 29761: template 29761: void 29761: std::chi_squared_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const typename 29761: std::gamma_distribution::param_type& __p) 29761: { 29761: 29761: while (__f != __t) 29761: *__f++ = 2 * _M_gd(__urng, __p); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const chi_squared_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.n() << __space << __x._M_gd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: chi_squared_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename chi_squared_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __n; 29761: if (__is >> __n >> __x._M_gd) 29761: __x.param(param_type(__n)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: typename cauchy_distribution<_RealType>::result_type 29761: cauchy_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: _RealType __u; 29761: do 29761: __u = __aurng(); 29761: while (__u == 0.5); 29761: 29761: const _RealType __pi = 3.1415926535897932384626433832795029L; 29761: return __p.a() + __p.b() * std::tan(__pi * __u); 29761: } 29761: 29761: template 29761: template 29761: void 29761: cauchy_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: const _RealType __pi = 3.1415926535897932384626433832795029L; 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: while (__f != __t) 29761: { 29761: _RealType __u; 29761: do 29761: __u = __aurng(); 29761: while (__u == 0.5); 29761: 29761: *__f++ = __p.a() + __p.b() * std::tan(__pi * __u); 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const cauchy_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.a() << __space << __x.b(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: cauchy_distribution<_RealType>& __x) 29761: { 29761: using param_type = typename cauchy_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __a, __b; 29761: if (__is >> __a >> __b) 29761: __x.param(param_type(__a, __b)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: std::fisher_f_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { 29761: 29761: while (__f != __t) 29761: *__f++ = ((_M_gd_x(__urng) * n()) / (_M_gd_y(__urng) * m())); 29761: } 29761: 29761: template 29761: template 29761: void 29761: std::fisher_f_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: typedef typename std::gamma_distribution::param_type 29761: param_type; 29761: param_type __p1(__p.m() / 2); 29761: param_type __p2(__p.n() / 2); 29761: while (__f != __t) 29761: *__f++ = ((_M_gd_x(__urng, __p1) * n()) 29761: / (_M_gd_y(__urng, __p2) * m())); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const fisher_f_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.m() << __space << __x.n() 29761: << __space << __x._M_gd_x << __space << __x._M_gd_y; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: fisher_f_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename fisher_f_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __m, __n; 29761: if (__is >> __m >> __n >> __x._M_gd_x >> __x._M_gd_y) 29761: __x.param(param_type(__m, __n)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: void 29761: std::student_t_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng) 29761: { 29761: 29761: while (__f != __t) 29761: *__f++ = _M_nd(__urng) * std::sqrt(n() / _M_gd(__urng)); 29761: } 29761: 29761: template 29761: template 29761: void 29761: std::student_t_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: typename std::gamma_distribution::param_type 29761: __p2(__p.n() / 2, 2); 29761: while (__f != __t) 29761: *__f++ = _M_nd(__urng) * std::sqrt(__p.n() / _M_gd(__urng, __p2)); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const student_t_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.n() << __space << __x._M_nd << __space << __x._M_gd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: student_t_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename student_t_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __n; 29761: if (__is >> __n >> __x._M_nd >> __x._M_gd) 29761: __x.param(param_type(__n)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: gamma_distribution<_RealType>::param_type:: 29761: _M_initialize() 29761: { 29761: _M_malpha = _M_alpha < 1.0 ? _M_alpha + _RealType(1.0) : _M_alpha; 29761: 29761: const _RealType __a1 = _M_malpha - _RealType(1.0) / _RealType(3.0); 29761: _M_a2 = _RealType(1.0) / std::sqrt(_RealType(9.0) * __a1); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: template 29761: typename gamma_distribution<_RealType>::result_type 29761: gamma_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: 29761: result_type __u, __v, __n; 29761: const result_type __a1 = (__param._M_malpha 29761: - _RealType(1.0) / _RealType(3.0)); 29761: 29761: do 29761: { 29761: do 29761: { 29761: __n = _M_nd(__urng); 29761: __v = result_type(1.0) + __param._M_a2 * __n; 29761: } 29761: while (__v <= 0.0); 29761: 29761: __v = __v * __v * __v; 29761: __u = __aurng(); 29761: } 29761: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29761: && (std::log(__u) > (0.5 * __n * __n + __a1 29761: * (1.0 - __v + std::log(__v))))); 29761: 29761: if (__param.alpha() == __param._M_malpha) 29761: return __a1 * __v * __param.beta(); 29761: else 29761: { 29761: do 29761: __u = __aurng(); 29761: while (__u == 0.0); 29761: 29761: return (std::pow(__u, result_type(1.0) / __param.alpha()) 29761: * __a1 * __v * __param.beta()); 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: gamma_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: 29761: result_type __u, __v, __n; 29761: const result_type __a1 = (__param._M_malpha 29761: - _RealType(1.0) / _RealType(3.0)); 29761: 29761: if (__param.alpha() == __param._M_malpha) 29761: while (__f != __t) 29761: { 29761: do 29761: { 29761: do 29761: { 29761: __n = _M_nd(__urng); 29761: __v = result_type(1.0) + __param._M_a2 * __n; 29761: } 29761: while (__v <= 0.0); 29761: 29761: __v = __v * __v * __v; 29761: __u = __aurng(); 29761: } 29761: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29761: && (std::log(__u) > (0.5 * __n * __n + __a1 29761: * (1.0 - __v + std::log(__v))))); 29761: 29761: *__f++ = __a1 * __v * __param.beta(); 29761: } 29761: else 29761: while (__f != __t) 29761: { 29761: do 29761: { 29761: do 29761: { 29761: __n = _M_nd(__urng); 29761: __v = result_type(1.0) + __param._M_a2 * __n; 29761: } 29761: while (__v <= 0.0); 29761: 29761: __v = __v * __v * __v; 29761: __u = __aurng(); 29761: } 29761: while (__u > result_type(1.0) - 0.0331 * __n * __n * __n * __n 29761: && (std::log(__u) > (0.5 * __n * __n + __a1 29761: * (1.0 - __v + std::log(__v))))); 29761: 29761: do 29761: __u = __aurng(); 29761: while (__u == 0.0); 29761: 29761: *__f++ = (std::pow(__u, result_type(1.0) / __param.alpha()) 29761: * __a1 * __v * __param.beta()); 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const gamma_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.alpha() << __space << __x.beta() 29761: << __space << __x._M_nd; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: gamma_distribution<_RealType>& __x) 29761: { 29761: using param_type = typename gamma_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __alpha_val, __beta_val; 29761: if (__is >> __alpha_val >> __beta_val >> __x._M_nd) 29761: __x.param(param_type(__alpha_val, __beta_val)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: typename weibull_distribution<_RealType>::result_type 29761: weibull_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: return __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 29761: result_type(1) / __p.a()); 29761: } 29761: 29761: template 29761: template 29761: void 29761: weibull_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: auto __inv_a = result_type(1) / __p.a(); 29761: 29761: while (__f != __t) 29761: *__f++ = __p.b() * std::pow(-std::log(result_type(1) - __aurng()), 29761: __inv_a); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const weibull_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.a() << __space << __x.b(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: weibull_distribution<_RealType>& __x) 29761: { 29761: using param_type = typename weibull_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __a, __b; 29761: if (__is >> __a >> __b) 29761: __x.param(param_type(__a, __b)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: template 29761: typename extreme_value_distribution<_RealType>::result_type 29761: extreme_value_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: return __p.a() - __p.b() * std::log(-std::log(result_type(1) 29761: - __aurng())); 29761: } 29761: 29761: template 29761: template 29761: void 29761: extreme_value_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __p) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, result_type> 29761: __aurng(__urng); 29761: 29761: while (__f != __t) 29761: *__f++ = __p.a() - __p.b() * std::log(-std::log(result_type(1) 29761: - __aurng())); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const extreme_value_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: __os << __x.a() << __space << __x.b(); 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: extreme_value_distribution<_RealType>& __x) 29761: { 29761: using param_type 29761: = typename extreme_value_distribution<_RealType>::param_type; 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: _RealType __a, __b; 29761: if (__is >> __a >> __b) 29761: __x.param(param_type(__a, __b)); 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: discrete_distribution<_IntType>::param_type:: 29761: _M_initialize() 29761: { 29761: if (_M_prob.size() < 2) 29761: { 29761: _M_prob.clear(); 29761: return; 29761: } 29761: 29761: const double __sum = std::accumulate(_M_prob.begin(), 29761: _M_prob.end(), 0.0); 29761: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __detail::__normalize(_M_prob.begin(), _M_prob.end(), _M_prob.begin(), 29761: __sum); 29761: 29761: _M_cp.reserve(_M_prob.size()); 29761: std::partial_sum(_M_prob.begin(), _M_prob.end(), 29761: std::back_inserter(_M_cp)); 29761: 29761: _M_cp[_M_cp.size() - 1] = 1.0; 29761: } 29761: 29761: template 29761: template 29761: discrete_distribution<_IntType>::param_type:: 29761: param_type(size_t __nw, double __xmin, double __xmax, _Func __fw) 29761: : _M_prob(), _M_cp() 29761: { 29761: const size_t __n = __nw == 0 ? 1 : __nw; 29761: const double __delta = (__xmax - __xmin) / __n; 29761: 29761: _M_prob.reserve(__n); 29761: for (size_t __k = 0; __k < __nw; ++__k) 29761: _M_prob.push_back(__fw(__xmin + __k * __delta + 0.5 * __delta)); 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: typename discrete_distribution<_IntType>::result_type 29761: discrete_distribution<_IntType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: if (__param._M_cp.empty()) 29761: return result_type(0); 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: const double __p = __aurng(); 29761: auto __pos = std::lower_bound(__param._M_cp.begin(), 29761: __param._M_cp.end(), __p); 29761: 29761: return __pos - __param._M_cp.begin(); 29761: } 29761: 29761: template 29761: template 29761: void 29761: discrete_distribution<_IntType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: if (__param._M_cp.empty()) 29761: { 29761: while (__f != __t) 29761: *__f++ = result_type(0); 29761: return; 29761: } 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: while (__f != __t) 29761: { 29761: const double __p = __aurng(); 29761: auto __pos = std::lower_bound(__param._M_cp.begin(), 29761: __param._M_cp.end(), __p); 29761: 29761: *__f++ = __pos - __param._M_cp.begin(); 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const discrete_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits::max_digits10); 29761: 29761: std::vector __prob = __x.probabilities(); 29761: __os << __prob.size(); 29761: for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit) 29761: __os << __space << *__dit; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: namespace __detail 29761: { 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: __extract_params(basic_istream<_CharT, _Traits>& __is, 29761: vector<_ValT>& __vals, size_t __n) 29761: { 29761: __vals.reserve(__n); 29761: while (__n--) 29761: { 29761: _ValT __val; 29761: if (__is >> __val) 29761: __vals.push_back(__val); 29761: else 29761: break; 29761: } 29761: return __is; 29761: } 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: discrete_distribution<_IntType>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: size_t __n; 29761: if (__is >> __n) 29761: { 29761: std::vector __prob_vec; 29761: if (__detail::__extract_params(__is, __prob_vec, __n)) 29761: __x.param({__prob_vec.begin(), __prob_vec.end()}); 29761: } 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: piecewise_constant_distribution<_RealType>::param_type:: 29761: _M_initialize() 29761: { 29761: if (_M_int.size() < 2 29761: || (_M_int.size() == 2 29761: && _M_int[0] == _RealType(0) 29761: && _M_int[1] == _RealType(1))) 29761: { 29761: _M_int.clear(); 29761: _M_den.clear(); 29761: return; 29761: } 29761: 29761: const double __sum = std::accumulate(_M_den.begin(), 29761: _M_den.end(), 0.0); 29761: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 29761: __sum); 29761: 29761: _M_cp.reserve(_M_den.size()); 29761: std::partial_sum(_M_den.begin(), _M_den.end(), 29761: std::back_inserter(_M_cp)); 29761: 29761: 29761: _M_cp[_M_cp.size() - 1] = 1.0; 29761: 29761: for (size_t __k = 0; __k < _M_den.size(); ++__k) 29761: _M_den[__k] /= _M_int[__k + 1] - _M_int[__k]; 29761: } 29761: 29761: template 29761: template 29761: piecewise_constant_distribution<_RealType>::param_type:: 29761: param_type(_InputIteratorB __bbegin, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin) 29761: : _M_int(), _M_den(), _M_cp() 29761: { 29761: if (__bbegin != __bend) 29761: { 29761: for (;;) 29761: { 29761: _M_int.push_back(*__bbegin); 29761: ++__bbegin; 29761: if (__bbegin == __bend) 29761: break; 29761: 29761: _M_den.push_back(*__wbegin); 29761: ++__wbegin; 29761: } 29761: } 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: piecewise_constant_distribution<_RealType>::param_type:: 29761: param_type(initializer_list<_RealType> __bl, _Func __fw) 29761: : _M_int(), _M_den(), _M_cp() 29761: { 29761: _M_int.reserve(__bl.size()); 29761: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 29761: _M_int.push_back(*__biter); 29761: 29761: _M_den.reserve(_M_int.size() - 1); 29761: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 29761: _M_den.push_back(__fw(0.5 * (_M_int[__k + 1] + _M_int[__k]))); 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: piecewise_constant_distribution<_RealType>::param_type:: 29761: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 29761: : _M_int(), _M_den(), _M_cp() 29761: { 29761: const size_t __n = __nw == 0 ? 1 : __nw; 29761: const _RealType __delta = (__xmax - __xmin) / __n; 29761: 29761: _M_int.reserve(__n + 1); 29761: for (size_t __k = 0; __k <= __nw; ++__k) 29761: _M_int.push_back(__xmin + __k * __delta); 29761: 29761: _M_den.reserve(__n); 29761: for (size_t __k = 0; __k < __nw; ++__k) 29761: _M_den.push_back(__fw(_M_int[__k] + 0.5 * __delta)); 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: typename piecewise_constant_distribution<_RealType>::result_type 29761: piecewise_constant_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: const double __p = __aurng(); 29761: if (__param._M_cp.empty()) 29761: return __p; 29761: 29761: auto __pos = std::lower_bound(__param._M_cp.begin(), 29761: __param._M_cp.end(), __p); 29761: const size_t __i = __pos - __param._M_cp.begin(); 29761: 29761: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29761: 29761: return __param._M_int[__i] + (__p - __pref) / __param._M_den[__i]; 29761: } 29761: 29761: template 29761: template 29761: void 29761: piecewise_constant_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: if (__param._M_cp.empty()) 29761: { 29761: while (__f != __t) 29761: *__f++ = __aurng(); 29761: return; 29761: } 29761: 29761: while (__f != __t) 29761: { 29761: const double __p = __aurng(); 29761: 29761: auto __pos = std::lower_bound(__param._M_cp.begin(), 29761: __param._M_cp.end(), __p); 29761: const size_t __i = __pos - __param._M_cp.begin(); 29761: 29761: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29761: 29761: *__f++ = (__param._M_int[__i] 29761: + (__p - __pref) / __param._M_den[__i]); 29761: } 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const piecewise_constant_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: std::vector<_RealType> __int = __x.intervals(); 29761: __os << __int.size() - 1; 29761: 29761: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 29761: __os << __space << *__xit; 29761: 29761: std::vector __den = __x.densities(); 29761: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 29761: __os << __space << *__dit; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: piecewise_constant_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: size_t __n; 29761: if (__is >> __n) 29761: { 29761: std::vector<_RealType> __int_vec; 29761: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 29761: { 29761: std::vector __den_vec; 29761: if (__detail::__extract_params(__is, __den_vec, __n)) 29761: { 29761: __x.param({ __int_vec.begin(), __int_vec.end(), 29761: __den_vec.begin() }); 29761: } 29761: } 29761: } 29761: 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: void 29761: piecewise_linear_distribution<_RealType>::param_type:: 29761: _M_initialize() 29761: { 29761: if (_M_int.size() < 2 29761: || (_M_int.size() == 2 29761: && _M_int[0] == _RealType(0) 29761: && _M_int[1] == _RealType(1) 29761: && _M_den[0] == _M_den[1])) 29761: { 29761: _M_int.clear(); 29761: _M_den.clear(); 29761: return; 29761: } 29761: 29761: double __sum = 0.0; 29761: _M_cp.reserve(_M_int.size() - 1); 29761: _M_m.reserve(_M_int.size() - 1); 29761: for (size_t __k = 0; __k < _M_int.size() - 1; ++__k) 29761: { 29761: const _RealType __delta = _M_int[__k + 1] - _M_int[__k]; 29761: __sum += 0.5 * (_M_den[__k + 1] + _M_den[__k]) * __delta; 29761: _M_cp.push_back(__sum); 29761: _M_m.push_back((_M_den[__k + 1] - _M_den[__k]) / __delta); 29761: } 29761: do { if (std::__is_constant_evaluated() && !bool(__sum > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: 29761: __detail::__normalize(_M_den.begin(), _M_den.end(), _M_den.begin(), 29761: __sum); 29761: 29761: __detail::__normalize(_M_cp.begin(), _M_cp.end(), _M_cp.begin(), __sum); 29761: 29761: __detail::__normalize(_M_m.begin(), _M_m.end(), _M_m.begin(), __sum); 29761: 29761: 29761: _M_cp[_M_cp.size() - 1] = 1.0; 29761: } 29761: 29761: template 29761: template 29761: piecewise_linear_distribution<_RealType>::param_type:: 29761: param_type(_InputIteratorB __bbegin, 29761: _InputIteratorB __bend, 29761: _InputIteratorW __wbegin) 29761: : _M_int(), _M_den(), _M_cp(), _M_m() 29761: { 29761: for (; __bbegin != __bend; ++__bbegin, ++__wbegin) 29761: { 29761: _M_int.push_back(*__bbegin); 29761: _M_den.push_back(*__wbegin); 29761: } 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: piecewise_linear_distribution<_RealType>::param_type:: 29761: param_type(initializer_list<_RealType> __bl, _Func __fw) 29761: : _M_int(), _M_den(), _M_cp(), _M_m() 29761: { 29761: _M_int.reserve(__bl.size()); 29761: _M_den.reserve(__bl.size()); 29761: for (auto __biter = __bl.begin(); __biter != __bl.end(); ++__biter) 29761: { 29761: _M_int.push_back(*__biter); 29761: _M_den.push_back(__fw(*__biter)); 29761: } 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: piecewise_linear_distribution<_RealType>::param_type:: 29761: param_type(size_t __nw, _RealType __xmin, _RealType __xmax, _Func __fw) 29761: : _M_int(), _M_den(), _M_cp(), _M_m() 29761: { 29761: const size_t __n = __nw == 0 ? 1 : __nw; 29761: const _RealType __delta = (__xmax - __xmin) / __n; 29761: 29761: _M_int.reserve(__n + 1); 29761: _M_den.reserve(__n + 1); 29761: for (size_t __k = 0; __k <= __nw; ++__k) 29761: { 29761: _M_int.push_back(__xmin + __k * __delta); 29761: _M_den.push_back(__fw(_M_int[__k] + __delta)); 29761: } 29761: 29761: _M_initialize(); 29761: } 29761: 29761: template 29761: template 29761: typename piecewise_linear_distribution<_RealType>::result_type 29761: piecewise_linear_distribution<_RealType>:: 29761: operator()(_UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: __detail::_Adaptor<_UniformRandomNumberGenerator, double> 29761: __aurng(__urng); 29761: 29761: const double __p = __aurng(); 29761: if (__param._M_cp.empty()) 29761: return __p; 29761: 29761: auto __pos = std::lower_bound(__param._M_cp.begin(), 29761: __param._M_cp.end(), __p); 29761: const size_t __i = __pos - __param._M_cp.begin(); 29761: 29761: const double __pref = __i > 0 ? __param._M_cp[__i - 1] : 0.0; 29761: 29761: const double __a = 0.5 * __param._M_m[__i]; 29761: const double __b = __param._M_den[__i]; 29761: const double __cm = __p - __pref; 29761: 29761: _RealType __x = __param._M_int[__i]; 29761: if (__a == 0) 29761: __x += __cm / __b; 29761: else 29761: { 29761: const double __d = __b * __b + 4.0 * __a * __cm; 29761: __x += 0.5 * (std::sqrt(__d) - __b) / __a; 29761: } 29761: 29761: return __x; 29761: } 29761: 29761: template 29761: template 29761: void 29761: piecewise_linear_distribution<_RealType>:: 29761: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, 29761: _UniformRandomNumberGenerator& __urng, 29761: const param_type& __param) 29761: { 29761: 29761: 29761: while (__f != __t) 29761: *__f++ = this->operator()(__urng, __param); 29761: } 29761: 29761: template 29761: std::basic_ostream<_CharT, _Traits>& 29761: operator<<(std::basic_ostream<_CharT, _Traits>& __os, 29761: const piecewise_linear_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_ostream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __os.flags(); 29761: const _CharT __fill = __os.fill(); 29761: const std::streamsize __precision = __os.precision(); 29761: const _CharT __space = __os.widen(' '); 29761: __os.flags(__ios_base::scientific | __ios_base::left); 29761: __os.fill(__space); 29761: __os.precision(std::numeric_limits<_RealType>::max_digits10); 29761: 29761: std::vector<_RealType> __int = __x.intervals(); 29761: __os << __int.size() - 1; 29761: 29761: for (auto __xit = __int.begin(); __xit != __int.end(); ++__xit) 29761: __os << __space << *__xit; 29761: 29761: std::vector __den = __x.densities(); 29761: for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit) 29761: __os << __space << *__dit; 29761: 29761: __os.flags(__flags); 29761: __os.fill(__fill); 29761: __os.precision(__precision); 29761: return __os; 29761: } 29761: 29761: template 29761: std::basic_istream<_CharT, _Traits>& 29761: operator>>(std::basic_istream<_CharT, _Traits>& __is, 29761: piecewise_linear_distribution<_RealType>& __x) 29761: { 29761: using __ios_base = typename basic_istream<_CharT, _Traits>::ios_base; 29761: 29761: const typename __ios_base::fmtflags __flags = __is.flags(); 29761: __is.flags(__ios_base::dec | __ios_base::skipws); 29761: 29761: size_t __n; 29761: if (__is >> __n) 29761: { 29761: vector<_RealType> __int_vec; 29761: if (__detail::__extract_params(__is, __int_vec, __n + 1)) 29761: { 29761: vector __den_vec; 29761: if (__detail::__extract_params(__is, __den_vec, __n + 1)) 29761: { 29761: __x.param({ __int_vec.begin(), __int_vec.end(), 29761: __den_vec.begin() }); 29761: } 29761: } 29761: } 29761: __is.flags(__flags); 29761: return __is; 29761: } 29761: 29761: 29761: template 29761: seed_seq::seed_seq(std::initializer_list<_IntType> __il) 29761: { 29761: _M_v.reserve(__il.size()); 29761: for (auto __iter = __il.begin(); __iter != __il.end(); ++__iter) 29761: _M_v.push_back(__detail::__mod::__value>(*__iter)); 29761: } 29761: 29761: template 29761: seed_seq::seed_seq(_InputIterator __begin, _InputIterator __end) 29761: { 29761: if constexpr (__is_random_access_iter<_InputIterator>::value) 29761: _M_v.reserve(std::distance(__begin, __end)); 29761: 29761: for (_InputIterator __iter = __begin; __iter != __end; ++__iter) 29761: _M_v.push_back(__detail::__mod::__value>(*__iter)); 29761: } 29761: 29761: template 29761: void 29761: seed_seq::generate(_RandomAccessIterator __begin, 29761: _RandomAccessIterator __end) 29761: { 29761: typedef typename iterator_traits<_RandomAccessIterator>::value_type 29761: _Type; 29761: 29761: if (__begin == __end) 29761: return; 29761: 29761: std::fill(__begin, __end, _Type(0x8b8b8b8bu)); 29761: 29761: const size_t __n = __end - __begin; 29761: const size_t __s = _M_v.size(); 29761: const size_t __t = (__n >= 623) ? 11 29761: : (__n >= 68) ? 7 29761: : (__n >= 39) ? 5 29761: : (__n >= 7) ? 3 29761: : (__n - 1) / 2; 29761: const size_t __p = (__n - __t) / 2; 29761: const size_t __q = __p + __t; 29761: const size_t __m = std::max(size_t(__s + 1), __n); 29761: # 3292 "/usr/include/c++/14/bits/random.tcc" 3 29761: { 29761: uint32_t __r1 = 1371501266u; 29761: uint32_t __r2 = __r1 + __s; 29761: __begin[__p] += __r1; 29761: __begin[__q] = (uint32_t)__begin[__q] + __r2; 29761: __begin[0] = __r2; 29761: } 29761: 29761: for (size_t __k = 1; __k <= __s; ++__k) 29761: { 29761: const size_t __kn = __k % __n; 29761: const size_t __kpn = (__k + __p) % __n; 29761: const size_t __kqn = (__k + __q) % __n; 29761: uint32_t __arg = (__begin[__kn] 29761: ^ __begin[__kpn] 29761: ^ __begin[(__k - 1) % __n]); 29761: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 29761: uint32_t __r2 = __r1 + (uint32_t)__kn + _M_v[__k - 1]; 29761: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 29761: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 29761: __begin[__kn] = __r2; 29761: } 29761: 29761: for (size_t __k = __s + 1; __k < __m; ++__k) 29761: { 29761: const size_t __kn = __k % __n; 29761: const size_t __kpn = (__k + __p) % __n; 29761: const size_t __kqn = (__k + __q) % __n; 29761: uint32_t __arg = (__begin[__kn] 29761: ^ __begin[__kpn] 29761: ^ __begin[(__k - 1) % __n]); 29761: uint32_t __r1 = 1664525u * (__arg ^ (__arg >> 27)); 29761: uint32_t __r2 = __r1 + (uint32_t)__kn; 29761: __begin[__kpn] = (uint32_t)__begin[__kpn] + __r1; 29761: __begin[__kqn] = (uint32_t)__begin[__kqn] + __r2; 29761: __begin[__kn] = __r2; 29761: } 29761: 29761: for (size_t __k = __m; __k < __m + __n; ++__k) 29761: { 29761: const size_t __kn = __k % __n; 29761: const size_t __kpn = (__k + __p) % __n; 29761: const size_t __kqn = (__k + __q) % __n; 29761: uint32_t __arg = (__begin[__kn] 29761: + __begin[__kpn] 29761: + __begin[(__k - 1) % __n]); 29761: uint32_t __r3 = 1566083941u * (__arg ^ (__arg >> 27)); 29761: uint32_t __r4 = __r3 - __kn; 29761: __begin[__kpn] ^= __r3; 29761: __begin[__kqn] ^= __r4; 29761: __begin[__kn] = __r4; 29761: } 29761: } 29761: 29761: template 29761: _RealType 29761: generate_canonical(_UniformRandomNumberGenerator& __urng) 29761: { 29761: static_assert(std::is_floating_point<_RealType>::value, 29761: "template argument must be a floating point type"); 29761: 29761: const size_t __b 29761: = std::min(static_cast(std::numeric_limits<_RealType>::digits), 29761: __bits); 29761: const long double __r = static_cast(__urng.max()) 29761: - static_cast(__urng.min()) + 1.0L; 29761: const size_t __log2r = std::log(__r) / std::log(2.0L); 29761: const size_t __m = std::max(1UL, 29761: (__b + __log2r - 1UL) / __log2r); 29761: _RealType __ret; 29761: _RealType __sum = _RealType(0); 29761: _RealType __tmp = _RealType(1); 29761: for (size_t __k = __m; __k != 0; --__k) 29761: { 29761: __sum += _RealType(__urng() - __urng.min()) * __tmp; 29761: __tmp *= __r; 29761: } 29761: __ret = __sum / __tmp; 29761: if (__builtin_expect(__ret >= _RealType(1), 0)) 29761: { 29761: 29761: __ret = std::nextafter(_RealType(1), _RealType(0)); 29761: 29761: 29761: 29761: 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: } 29761: # 51 "/usr/include/c++/14/random" 2 3 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 2 29761: 29761: 29761: 29761: 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/random.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: class Random { 29761: private: 29761: enum : uint32_t { 29761: M = 2147483647L 29761: }; 29761: enum : uint64_t { 29761: A = 16807 29761: }; 29761: 29761: uint32_t seed_; 29761: 29761: static uint32_t GoodSeed(uint32_t s) { return (s & M) != 0 ? (s & M) : 1; } 29761: 29761: public: 29761: 29761: enum : uint32_t { kMaxNext = M }; 29761: 29761: explicit Random(uint32_t s) : seed_(GoodSeed(s)) {} 29761: 29761: void Reset(uint32_t s) { seed_ = GoodSeed(s); } 29761: 29761: uint32_t Next() { 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t product = seed_ * A; 29761: 29761: 29761: seed_ = static_cast((product >> 31) + (product & M)); 29761: 29761: 29761: 29761: if (seed_ > M) { 29761: seed_ -= M; 29761: } 29761: return seed_; 29761: } 29761: 29761: uint64_t Next64() { return (uint64_t{Next()} << 32) | Next(); } 29761: 29761: 29761: 29761: uint32_t Uniform(int n) { return Next() % n; } 29761: 29761: 29761: 29761: bool OneIn(int n) { return Uniform(n) == 0; } 29761: 29761: 29761: 29761: bool OneInOpt(int n) { return n > 0 && OneIn(n); } 29761: 29761: 29761: 29761: 29761: bool PercentTrue(int percentage) { 29761: return static_cast(Uniform(100)) < percentage; 29761: } 29761: 29761: 29761: 29761: 29761: uint32_t Skewed(int max_log) { return Uniform(1 << Uniform(max_log + 1)); } 29761: 29761: 29761: std::string RandomString(int len); 29761: 29761: 29761: std::string HumanReadableString(int len); 29761: 29761: 29761: std::string RandomBinaryString(int len); 29761: 29761: 29761: 29761: static Random* GetTLSInstance(); 29761: }; 29761: 29761: 29761: 29761: 29761: class Random32 { 29761: private: 29761: std::mt19937 generator_; 29761: 29761: public: 29761: explicit Random32(uint32_t s) : generator_(s) {} 29761: 29761: 29761: uint32_t Next() { return static_cast(generator_()); } 29761: 29761: 29761: 29761: uint32_t Uniform(uint32_t n) { 29761: return static_cast( 29761: std::uniform_int_distribution( 29761: 0, n - 1)(generator_)); 29761: } 29761: 29761: 29761: 29761: 29761: uint32_t Uniformish(uint32_t n) { 29761: 29761: return static_cast((uint64_t(generator_()) * uint64_t(n)) >> 32); 29761: } 29761: 29761: 29761: 29761: bool OneIn(uint32_t n) { return Uniform(n) == 0; } 29761: 29761: 29761: 29761: 29761: uint32_t Skewed(int max_log) { 29761: return Uniform(uint32_t{1} << Uniform(max_log + 1)); 29761: } 29761: 29761: 29761: void Seed(uint32_t new_seed) { generator_.seed(new_seed); } 29761: }; 29761: 29761: 29761: class Random64 { 29761: private: 29761: std::mt19937_64 generator_; 29761: 29761: public: 29761: explicit Random64(uint64_t s) : generator_(s) {} 29761: 29761: 29761: uint64_t Next() { return generator_(); } 29761: 29761: 29761: 29761: uint64_t Uniform(uint64_t n) { 29761: return std::uniform_int_distribution(0, n - 1)(generator_); 29761: } 29761: 29761: 29761: 29761: bool OneIn(uint64_t n) { return Uniform(n) == 0; } 29761: 29761: 29761: 29761: 29761: uint64_t Skewed(int max_log) { 29761: return Uniform(uint64_t(1) << Uniform(max_log + 1)); 29761: } 29761: }; 29761: 29761: 29761: template 29761: void RandomShuffle(RandomIt first, RandomIt last, uint32_t seed) { 29761: std::mt19937 rng(seed); 29761: std::shuffle(first, last, rng); 29761: } 29761: 29761: 29761: template 29761: void RandomShuffle(RandomIt first, RandomIt last) { 29761: RandomShuffle(first, last, std::random_device{}()); 29761: } 29761: 29761: } 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: template 29761: class CoreLocalArray { 29761: public: 29761: CoreLocalArray(); 29761: 29761: size_t Size() const; 29761: 29761: 29761: T* Access() const; 29761: 29761: 29761: 29761: std::pair AccessElementAndIndex() const; 29761: 29761: 29761: T* AccessAtCore(size_t core_idx) const; 29761: 29761: private: 29761: std::unique_ptr data_; 29761: int size_shift_; 29761: }; 29761: 29761: template 29761: CoreLocalArray::CoreLocalArray() { 29761: int num_cpus = static_cast(std::thread::hardware_concurrency()); 29761: 29761: size_shift_ = 3; 29761: while (1 << size_shift_ < num_cpus) { 29761: ++size_shift_; 29761: } 29761: data_.reset(new T[static_cast(1) << size_shift_]); 29761: } 29761: 29761: template 29761: size_t CoreLocalArray::Size() const { 29761: return static_cast(1) << size_shift_; 29761: } 29761: 29761: template 29761: T* CoreLocalArray::Access() const { 29761: return AccessElementAndIndex().first; 29761: } 29761: 29761: template 29761: std::pair CoreLocalArray::AccessElementAndIndex() const { 29761: int cpuid = port::PhysicalCoreID(); 29761: size_t core_idx; 29761: if ((__builtin_expect((cpuid < 0), 0))) { 29761: 29761: core_idx = Random::GetTLSInstance()->Uniform(1 << size_shift_); 29761: } else { 29761: core_idx = static_cast(BottomNBits(cpuid, size_shift_)); 29761: } 29761: return {AccessAtCore(core_idx), core_idx}; 29761: } 29761: 29761: template 29761: T* CoreLocalArray::AccessAtCore(size_t core_idx) const { 29761: 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29761: (static_cast ( 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29761: core_idx < static_cast(1) << size_shift_ 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29761: "core_idx < static_cast(1) << size_shift_" 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 81 "/build/reproducible-path/rocksdb-9.10.0/util/core_local.h" 29761: ; 29761: return &data_[core_idx]; 29761: } 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 1 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29761: 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29761: namespace rocksdb { 29761: 29761: namespace detail { 29761: 29761: 29761: template 29761: struct FastRangeGenericImpl { 29761: 29761: }; 29761: 29761: template 29761: struct FastRangeGenericImpl { 29761: static inline Range Fn(uint32_t hash, Range range) { 29761: static_assert(std::is_unsigned::value, "must be unsigned"); 29761: static_assert(sizeof(Range) <= sizeof(uint32_t), 29761: "cannot be larger than hash (32 bits)"); 29761: 29761: uint64_t product = uint64_t{range} * hash; 29761: return static_cast(product >> 32); 29761: } 29761: }; 29761: 29761: template 29761: struct FastRangeGenericImpl { 29761: static inline Range Fn(uint64_t hash, Range range) { 29761: static_assert(std::is_unsigned::value, "must be unsigned"); 29761: static_assert(sizeof(Range) <= sizeof(uint64_t), 29761: "cannot be larger than hash (64 bits)"); 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29761: uint64_t range64 = range; 29761: uint64_t tmp = uint64_t{range64 & 0xffffFFFF} * uint64_t{hash & 0xffffFFFF}; 29761: tmp >>= 32; 29761: tmp += uint64_t{range64 & 0xffffFFFF} * uint64_t{hash >> 32}; 29761: 29761: uint64_t tmp2 = uint64_t{range64 >> 32} * uint64_t{hash & 0xffffFFFF}; 29761: tmp += static_cast(tmp2); 29761: tmp >>= 32; 29761: tmp += (tmp2 >> 32); 29761: tmp += uint64_t{range64 >> 32} * uint64_t{hash >> 32}; 29761: return static_cast(tmp); 29761: 29761: } 29761: }; 29761: 29761: } 29761: # 96 "/build/reproducible-path/rocksdb-9.10.0/util/fastrange.h" 29761: template 29761: inline Range FastRangeGeneric(Hash hash, Range range) { 29761: return detail::FastRangeGenericImpl::Fn(hash, range); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: inline size_t FastRange64(uint64_t hash, size_t range) { 29761: return FastRangeGeneric(hash, range); 29761: } 29761: 29761: 29761: inline uint32_t FastRange32(uint32_t hash, uint32_t range) { 29761: return FastRangeGeneric(hash, range); 29761: } 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/hash.h" 1 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/util/hash.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: uint64_t Hash64(const char* data, size_t n, uint64_t seed); 29761: 29761: 29761: uint64_t Hash64(const char* data, size_t n); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline uint64_t NPHash64(const char* data, size_t n, uint64_t seed) { 29761: 29761: 29761: 29761: 29761: 29761: return Hash64(data, n, seed); 29761: 29761: } 29761: 29761: 29761: inline uint64_t NPHash64(const char* data, size_t n) { 29761: 29761: 29761: 29761: 29761: 29761: return Hash64(data, n); 29761: 29761: } 29761: 29761: 29761: 29761: void Hash2x64(const char* data, size_t n, uint64_t* high64, uint64_t* low64); 29761: void Hash2x64(const char* data, size_t n, uint64_t seed, uint64_t* high64, 29761: uint64_t* low64); 29761: 29761: 29761: 29761: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, 29761: uint64_t* out_high64, uint64_t* out_low64); 29761: void BijectiveHash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 29761: uint64_t* out_high64, uint64_t* out_low64); 29761: 29761: 29761: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, 29761: uint64_t* out_high64, uint64_t* out_low64); 29761: void BijectiveUnhash2x64(uint64_t in_high64, uint64_t in_low64, uint64_t seed, 29761: uint64_t* out_high64, uint64_t* out_low64); 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t Hash(const char* data, size_t n, uint32_t seed); 29761: 29761: 29761: inline uint32_t BloomHash(const Slice& key) { 29761: return Hash(key.data(), key.size(), 0xbc9f1d34); 29761: } 29761: 29761: inline uint64_t GetSliceHash64(const Slice& key) { 29761: return Hash64(key.data(), key.size()); 29761: } 29761: 29761: 29761: extern uint64_t (*kGetSliceNPHash64UnseededFnPtr)(const Slice&); 29761: 29761: inline uint64_t GetSliceNPHash64(const Slice& s) { 29761: return NPHash64(s.data(), s.size()); 29761: } 29761: 29761: inline uint64_t GetSliceNPHash64(const Slice& s, uint64_t seed) { 29761: return NPHash64(s.data(), s.size(), seed); 29761: } 29761: 29761: 29761: 29761: uint64_t GetSlicePartsNPHash64(const SliceParts& data, uint64_t seed); 29761: 29761: inline size_t GetSliceRangedNPHash(const Slice& s, size_t range) { 29761: return FastRange64(NPHash64(s.data(), s.size()), range); 29761: } 29761: 29761: 29761: inline uint32_t GetSliceHash(const Slice& s) { 29761: return Hash(s.data(), s.size(), 397); 29761: } 29761: 29761: 29761: inline uint32_t Upper32of64(uint64_t v) { 29761: return static_cast(v >> 32); 29761: } 29761: inline uint32_t Lower32of64(uint64_t v) { return static_cast(v); } 29761: 29761: 29761: struct SliceHasher32 { 29761: uint32_t operator()(const Slice& s) const { return GetSliceHash(s); } 29761: }; 29761: struct SliceNPHasher64 { 29761: uint64_t operator()(const Slice& s, uint64_t seed = 0) const { 29761: return GetSliceNPHash64(s, seed); 29761: } 29761: }; 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 2 29761: 29761: namespace rocksdb { 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29761: class MutexLock { 29761: public: 29761: explicit MutexLock(port::Mutex *mu) : mu_(mu) { this->mu_->Lock(); } 29761: 29761: MutexLock(const MutexLock &) = delete; 29761: void operator=(const MutexLock &) = delete; 29761: 29761: ~MutexLock() { this->mu_->Unlock(); } 29761: 29761: private: 29761: port::Mutex *const mu_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class ReadLock { 29761: public: 29761: explicit ReadLock(port::RWMutex *mu) : mu_(mu) { this->mu_->ReadLock(); } 29761: 29761: ReadLock(const ReadLock &) = delete; 29761: void operator=(const ReadLock &) = delete; 29761: 29761: ~ReadLock() { this->mu_->ReadUnlock(); } 29761: 29761: private: 29761: port::RWMutex *const mu_; 29761: }; 29761: 29761: 29761: 29761: 29761: class ReadUnlock { 29761: public: 29761: explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); } 29761: 29761: ReadUnlock(const ReadUnlock &) = delete; 29761: ReadUnlock &operator=(const ReadUnlock &) = delete; 29761: 29761: ~ReadUnlock() { mu_->ReadUnlock(); } 29761: 29761: private: 29761: port::RWMutex *const mu_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class WriteLock { 29761: public: 29761: explicit WriteLock(port::RWMutex *mu) : mu_(mu) { this->mu_->WriteLock(); } 29761: 29761: WriteLock(const WriteLock &) = delete; 29761: void operator=(const WriteLock &) = delete; 29761: 29761: ~WriteLock() { this->mu_->WriteUnlock(); } 29761: 29761: private: 29761: port::RWMutex *const mu_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class SpinMutex { 29761: public: 29761: SpinMutex() : locked_(false) {} 29761: 29761: bool try_lock() { 29761: auto currently_locked = locked_.load(std::memory_order_relaxed); 29761: return !currently_locked && 29761: locked_.compare_exchange_weak(currently_locked, true, 29761: std::memory_order_acquire, 29761: std::memory_order_relaxed); 29761: } 29761: 29761: void lock() { 29761: for (size_t tries = 0;; ++tries) { 29761: if (try_lock()) { 29761: 29761: break; 29761: } 29761: port::AsmVolatilePause(); 29761: if (tries > 100) { 29761: std::this_thread::yield(); 29761: } 29761: } 29761: } 29761: 29761: void unlock() { locked_.store(false, std::memory_order_release); } 29761: 29761: private: 29761: std::atomic locked_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct alignas(64U) CacheAlignedWrapper { 29761: T obj_; 29761: }; 29761: template 29761: struct Unwrap { 29761: using type = T; 29761: static type &Go(T &t) { return t; } 29761: }; 29761: template 29761: struct Unwrap> { 29761: using type = T; 29761: static type &Go(CacheAlignedWrapper &t) { return t.obj_; } 29761: }; 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/mutexlock.h" 29761: template 29761: class Striped { 29761: public: 29761: explicit Striped(size_t stripe_count) 29761: : stripe_count_(stripe_count), data_(new T[stripe_count]) {} 29761: 29761: using Unwrapped = typename Unwrap::type; 29761: Unwrapped &Get(const Key &key, uint64_t seed = 0) { 29761: size_t index = FastRangeGeneric(hash_(key, seed), stripe_count_); 29761: return Unwrap::Go(data_[index]); 29761: } 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: 29761: 29761: return sizeof(*this) + stripe_count_ * sizeof(T); 29761: } 29761: 29761: private: 29761: size_t stripe_count_; 29761: std::unique_ptr data_; 29761: Hash hash_; 29761: }; 29761: 29761: } 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 2 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/monitoring/statistics_impl.h" 29761: namespace rocksdb { 29761: 29761: enum TickersInternal : uint32_t { 29761: INTERNAL_TICKER_ENUM_START = TICKER_ENUM_MAX, 29761: INTERNAL_TICKER_ENUM_MAX 29761: }; 29761: 29761: enum HistogramsInternal : uint32_t { 29761: INTERNAL_HISTOGRAM_START = HISTOGRAM_ENUM_MAX, 29761: INTERNAL_HISTOGRAM_ENUM_MAX 29761: }; 29761: 29761: class StatisticsImpl : public Statistics { 29761: public: 29761: StatisticsImpl(std::shared_ptr stats); 29761: virtual ~StatisticsImpl(); 29761: const char* Name() const override { return kClassName(); } 29761: static const char* kClassName() { return "BasicStatistics"; } 29761: 29761: uint64_t getTickerCount(uint32_t ticker_type) const override; 29761: void histogramData(uint32_t histogram_type, 29761: HistogramData* const data) const override; 29761: std::string getHistogramString(uint32_t histogram_type) const override; 29761: 29761: void setTickerCount(uint32_t ticker_type, uint64_t count) override; 29761: uint64_t getAndResetTickerCount(uint32_t ticker_type) override; 29761: void recordTick(uint32_t ticker_type, uint64_t count) override; 29761: 29761: 29761: 29761: 29761: void measureTime(uint32_t histogramType, uint64_t time) override { 29761: recordInHistogram(histogramType, time); 29761: } 29761: void recordInHistogram(uint32_t histogram_type, uint64_t value) override; 29761: 29761: Status Reset() override; 29761: std::string ToString() const override; 29761: bool getTickerMap(std::map*) const override; 29761: bool HistEnabledForType(uint32_t type) const override; 29761: 29761: const Customizable* Inner() const override { return stats_.get(); } 29761: 29761: private: 29761: 29761: std::shared_ptr stats_; 29761: 29761: 29761: mutable port::Mutex aggregate_lock_; 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct alignas(64U) StatisticsData { 29761: std::atomic_uint_fast64_t tickers_[INTERNAL_TICKER_ENUM_MAX] = {{0}}; 29761: HistogramImpl histograms_[INTERNAL_HISTOGRAM_ENUM_MAX]; 29761: 29761: char 29761: padding[(64U - 29761: (INTERNAL_TICKER_ENUM_MAX * sizeof(std::atomic_uint_fast64_t) + 29761: INTERNAL_HISTOGRAM_ENUM_MAX * sizeof(HistogramImpl)) % 29761: 64U)] ; 29761: 29761: void* operator new(size_t s) { return port::cacheline_aligned_alloc(s); } 29761: void* operator new[](size_t s) { return port::cacheline_aligned_alloc(s); } 29761: void operator delete(void* p) { port::cacheline_aligned_free(p); } 29761: void operator delete[](void* p) { port::cacheline_aligned_free(p); } 29761: }; 29761: 29761: 29761: static_assert(sizeof(StatisticsData) % 64U == 0, 29761: "Expected " "64U" "-byte aligned"); 29761: 29761: 29761: CoreLocalArray per_core_stats_; 29761: 29761: uint64_t getTickerCountLocked(uint32_t ticker_type) const; 29761: std::unique_ptr getHistogramImplLocked( 29761: uint32_t histogram_type) const; 29761: void setTickerCountLocked(uint32_t ticker_type, uint64_t count); 29761: }; 29761: 29761: 29761: inline void RecordInHistogram(Statistics* statistics, uint32_t histogram_type, 29761: uint64_t value) { 29761: if (statistics) { 29761: statistics->recordInHistogram(histogram_type, value); 29761: } 29761: } 29761: 29761: inline void RecordTimeToHistogram(Statistics* statistics, 29761: uint32_t histogram_type, uint64_t value) { 29761: if (statistics) { 29761: statistics->reportTimeToHistogram(histogram_type, value); 29761: } 29761: } 29761: 29761: inline void RecordTick(Statistics* statistics, uint32_t ticker_type, 29761: uint64_t count = 1) { 29761: if (statistics) { 29761: statistics->recordTick(ticker_type, count); 29761: } 29761: } 29761: 29761: inline void SetTickerCount(Statistics* statistics, uint32_t ticker_type, 29761: uint64_t count) { 29761: if (statistics) { 29761: statistics->setTickerCount(ticker_type, count); 29761: } 29761: } 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/chrono" 1 3 29761: # 33 "/usr/include/c++/14/chrono" 3 29761: 29761: # 34 "/usr/include/c++/14/chrono" 3 29761: # 55 "/usr/include/c++/14/chrono" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 56 "/usr/include/c++/14/chrono" 2 3 29761: 29761: 29761: # 57 "/usr/include/c++/14/chrono" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 74 "/usr/include/c++/14/chrono" 3 29761: namespace chrono 29761: { 29761: # 3328 "/usr/include/c++/14/chrono" 3 29761: } 29761: # 3356 "/usr/include/c++/14/chrono" 3 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 2 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29761: 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/system_clock.h" 29761: namespace rocksdb { 29761: struct ConfigOptions; 29761: 29761: 29761: 29761: class SystemClock : public Customizable { 29761: public: 29761: ~SystemClock() override {} 29761: 29761: static const char* Type() { return "SystemClock"; } 29761: static Status CreateFromString(const ConfigOptions& options, 29761: const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: 29761: static const char* kDefaultName() { return "DefaultClock"; } 29761: 29761: 29761: 29761: static const std::shared_ptr& Default(); 29761: 29761: 29761: 29761: 29761: virtual uint64_t NowMicros() = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 29761: 29761: 29761: 29761: virtual uint64_t CPUMicros() { return 0; } 29761: 29761: 29761: 29761: 29761: virtual uint64_t CPUNanos() { return CPUMicros() * 1000; } 29761: 29761: 29761: virtual void SleepForMicroseconds(int micros) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool TimedWait(port::CondVar* cv, std::chrono::microseconds deadline); 29761: 29761: 29761: 29761: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 29761: 29761: 29761: virtual std::string TimeToString(uint64_t time) = 0; 29761: }; 29761: 29761: 29761: 29761: class SystemClockWrapper : public SystemClock { 29761: public: 29761: explicit SystemClockWrapper(const std::shared_ptr& t); 29761: 29761: uint64_t NowMicros() override { return target_->NowMicros(); } 29761: 29761: uint64_t NowNanos() override { return target_->NowNanos(); } 29761: 29761: uint64_t CPUMicros() override { return target_->CPUMicros(); } 29761: 29761: uint64_t CPUNanos() override { return target_->CPUNanos(); } 29761: 29761: void SleepForMicroseconds(int micros) override { 29761: return target_->SleepForMicroseconds(micros); 29761: } 29761: 29761: bool TimedWait(port::CondVar* cv, 29761: std::chrono::microseconds deadline) override { 29761: return target_->TimedWait(cv, deadline); 29761: } 29761: 29761: Status GetCurrentTime(int64_t* unix_time) override { 29761: return target_->GetCurrentTime(unix_time); 29761: } 29761: 29761: std::string TimeToString(uint64_t time) override { 29761: return target_->TimeToString(time); 29761: } 29761: 29761: Status PrepareOptions(const ConfigOptions& options) override; 29761: std::string SerializeOptions(const ConfigOptions& config_options, 29761: const std::string& header) const override; 29761: const Customizable* Inner() const override { return target_.get(); } 29761: 29761: protected: 29761: std::shared_ptr target_; 29761: }; 29761: 29761: } 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_step_timer.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class PerfStepTimer { 29761: public: 29761: explicit PerfStepTimer( 29761: uint64_t* metric, SystemClock* clock = nullptr, bool use_cpu_time = false, 29761: PerfLevel enable_level = PerfLevel::kEnableTimeExceptForMutex, 29761: Statistics* statistics = nullptr, uint32_t ticker_type = 0) 29761: : perf_counter_enabled_(perf_level >= enable_level), 29761: use_cpu_time_(use_cpu_time), 29761: ticker_type_(ticker_type), 29761: clock_((perf_counter_enabled_ || statistics != nullptr) 29761: ? (clock ? clock : SystemClock::Default().get()) 29761: : nullptr), 29761: start_(0), 29761: metric_(metric), 29761: statistics_(statistics) {} 29761: 29761: ~PerfStepTimer() { Stop(); } 29761: 29761: void Start() { 29761: if (perf_counter_enabled_ || statistics_ != nullptr) { 29761: start_ = time_now(); 29761: } 29761: } 29761: 29761: void Measure() { 29761: if (start_) { 29761: uint64_t now = time_now(); 29761: *metric_ += now - start_; 29761: start_ = now; 29761: } 29761: } 29761: 29761: void Stop() { 29761: if (start_) { 29761: uint64_t duration = time_now() - start_; 29761: if (perf_counter_enabled_) { 29761: *metric_ += duration; 29761: } 29761: 29761: if (statistics_ != nullptr) { 29761: RecordTick(statistics_, ticker_type_, duration); 29761: } 29761: start_ = 0; 29761: } 29761: } 29761: 29761: private: 29761: uint64_t time_now() { 29761: if (!use_cpu_time_) { 29761: return clock_->NowNanos(); 29761: } else { 29761: return clock_->CPUNanos(); 29761: } 29761: } 29761: 29761: const bool perf_counter_enabled_; 29761: const bool use_cpu_time_; 29761: uint32_t ticker_type_; 29761: SystemClock* const clock_; 29761: uint64_t start_; 29761: uint64_t* metric_; 29761: Statistics* statistics_; 29761: }; 29761: 29761: } 29761: # 8 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29761: namespace rocksdb { 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29761: struct PerfContextByLevelBase { 29761: 29761: 29761: 29761: uint64_t bloom_filter_useful = 0; 29761: 29761: uint64_t bloom_filter_full_positive = 0; 29761: 29761: 29761: uint64_t bloom_filter_full_true_positive = 0; 29761: 29761: 29761: 29761: uint64_t user_key_return_count = 0; 29761: 29761: 29761: uint64_t get_from_table_nanos = 0; 29761: 29761: uint64_t block_cache_hit_count = 0; 29761: uint64_t block_cache_miss_count = 0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct PerfContextByLevel : public PerfContextByLevelBase { 29761: void Reset(); 29761: }; 29761: # 67 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29761: struct PerfContextBase { 29761: uint64_t user_key_comparison_count; 29761: uint64_t block_cache_hit_count; 29761: uint64_t block_read_count; 29761: uint64_t block_read_byte; 29761: uint64_t block_read_time; 29761: 29761: uint64_t block_read_cpu_time; 29761: uint64_t block_cache_index_hit_count; 29761: 29761: uint64_t block_cache_standalone_handle_count; 29761: 29761: 29761: uint64_t block_cache_real_handle_count; 29761: uint64_t index_block_read_count; 29761: uint64_t block_cache_filter_hit_count; 29761: uint64_t filter_block_read_count; 29761: uint64_t compression_dict_block_read_count; 29761: 29761: 29761: uint64_t block_cache_index_read_byte; 29761: uint64_t block_cache_filter_read_byte; 29761: uint64_t block_cache_compression_dict_read_byte; 29761: uint64_t block_cache_read_byte; 29761: 29761: uint64_t secondary_cache_hit_count; 29761: 29761: uint64_t compressed_sec_cache_insert_real_count; 29761: 29761: uint64_t compressed_sec_cache_insert_dummy_count; 29761: 29761: uint64_t compressed_sec_cache_uncompressed_bytes; 29761: 29761: uint64_t compressed_sec_cache_compressed_bytes; 29761: 29761: uint64_t block_checksum_time; 29761: uint64_t block_decompress_time; 29761: 29761: uint64_t get_read_bytes; 29761: uint64_t multiget_read_bytes; 29761: uint64_t iter_read_bytes; 29761: 29761: uint64_t blob_cache_hit_count; 29761: uint64_t blob_read_count; 29761: uint64_t blob_read_byte; 29761: uint64_t blob_read_time; 29761: uint64_t blob_checksum_time; 29761: uint64_t blob_decompress_time; 29761: # 133 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29761: uint64_t internal_key_skipped_count; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t internal_delete_skipped_count; 29761: 29761: 29761: 29761: uint64_t internal_recent_skipped_count; 29761: 29761: 29761: 29761: uint64_t internal_merge_count; 29761: 29761: 29761: 29761: uint64_t internal_merge_point_lookup_count; 29761: 29761: 29761: 29761: uint64_t internal_range_del_reseek_count; 29761: 29761: uint64_t get_snapshot_time; 29761: uint64_t get_from_memtable_time; 29761: uint64_t get_from_memtable_count; 29761: 29761: uint64_t get_post_process_time; 29761: uint64_t get_from_output_files_time; 29761: 29761: uint64_t seek_on_memtable_time; 29761: 29761: 29761: uint64_t seek_on_memtable_count; 29761: 29761: uint64_t next_on_memtable_count; 29761: 29761: uint64_t prev_on_memtable_count; 29761: 29761: uint64_t seek_child_seek_time; 29761: 29761: uint64_t seek_child_seek_count; 29761: uint64_t seek_min_heap_time; 29761: uint64_t seek_max_heap_time; 29761: 29761: uint64_t seek_internal_seek_time; 29761: 29761: uint64_t find_next_user_entry_time; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t write_wal_time; 29761: 29761: uint64_t write_memtable_time; 29761: 29761: uint64_t write_delay_time; 29761: 29761: 29761: uint64_t write_scheduling_flushes_compactions_time; 29761: 29761: uint64_t write_pre_and_post_process_time; 29761: 29761: 29761: uint64_t write_thread_wait_nanos; 29761: 29761: 29761: uint64_t db_mutex_lock_nanos; 29761: 29761: uint64_t db_condition_wait_nanos; 29761: 29761: uint64_t merge_operator_time_nanos; 29761: 29761: 29761: uint64_t read_index_block_nanos; 29761: 29761: uint64_t read_filter_block_nanos; 29761: 29761: uint64_t new_table_block_iter_nanos; 29761: 29761: uint64_t new_table_iterator_nanos; 29761: 29761: uint64_t block_seek_nanos; 29761: 29761: uint64_t find_table_nanos; 29761: 29761: uint64_t bloom_memtable_hit_count; 29761: 29761: uint64_t bloom_memtable_miss_count; 29761: 29761: uint64_t bloom_sst_hit_count; 29761: 29761: uint64_t bloom_sst_miss_count; 29761: 29761: 29761: uint64_t key_lock_wait_time; 29761: 29761: uint64_t key_lock_wait_count; 29761: 29761: 29761: 29761: uint64_t env_new_sequential_file_nanos; 29761: uint64_t env_new_random_access_file_nanos; 29761: uint64_t env_new_writable_file_nanos; 29761: uint64_t env_reuse_writable_file_nanos; 29761: uint64_t env_new_random_rw_file_nanos; 29761: uint64_t env_new_directory_nanos; 29761: uint64_t env_file_exists_nanos; 29761: uint64_t env_get_children_nanos; 29761: uint64_t env_get_children_file_attributes_nanos; 29761: uint64_t env_delete_file_nanos; 29761: uint64_t env_create_dir_nanos; 29761: uint64_t env_create_dir_if_missing_nanos; 29761: uint64_t env_delete_dir_nanos; 29761: uint64_t env_get_file_size_nanos; 29761: uint64_t env_get_file_modification_time_nanos; 29761: uint64_t env_rename_file_nanos; 29761: uint64_t env_link_file_nanos; 29761: uint64_t env_lock_file_nanos; 29761: uint64_t env_unlock_file_nanos; 29761: uint64_t env_new_logger_nanos; 29761: 29761: uint64_t get_cpu_nanos; 29761: uint64_t iter_next_cpu_nanos; 29761: uint64_t iter_prev_cpu_nanos; 29761: uint64_t iter_seek_cpu_nanos; 29761: 29761: 29761: 29761: 29761: uint64_t iter_next_count; 29761: uint64_t iter_prev_count; 29761: uint64_t iter_seek_count; 29761: 29761: 29761: uint64_t encrypt_data_nanos; 29761: 29761: uint64_t decrypt_data_nanos; 29761: 29761: uint64_t number_async_seek; 29761: }; 29761: 29761: struct PerfContext : public PerfContextBase { 29761: ~PerfContext(); 29761: 29761: PerfContext() { Reset(); } 29761: 29761: PerfContext(const PerfContext&); 29761: PerfContext& operator=(const PerfContext&); 29761: PerfContext(PerfContext&&) noexcept; 29761: 29761: void Reset(); 29761: 29761: std::string ToString(bool exclude_zero_counters = false) const; 29761: 29761: 29761: void EnablePerLevelPerfContext(); 29761: 29761: 29761: void DisablePerLevelPerfContext(); 29761: 29761: 29761: void ClearPerLevelPerfContext(); 29761: 29761: std::map* level_to_perf_context = nullptr; 29761: bool per_level_perf_context_enabled = false; 29761: 29761: void copyMetrics(const PerfContext* other) noexcept; 29761: }; 29761: # 317 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/perf_context.h" 29761: PerfContext* get_perf_context(); 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/stop_watch.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class StopWatch { 29761: public: 29761: StopWatch(SystemClock* clock, Statistics* statistics, 29761: const uint32_t hist_type_1, 29761: const uint32_t hist_type_2 = Histograms::HISTOGRAM_ENUM_MAX, 29761: uint64_t* elapsed = nullptr, bool overwrite = true, 29761: bool delay_enabled = false) 29761: : clock_(clock), 29761: statistics_(statistics), 29761: hist_type_1_(statistics && statistics->HistEnabledForType(hist_type_1) 29761: ? hist_type_1 29761: : Histograms::HISTOGRAM_ENUM_MAX), 29761: hist_type_2_(statistics && statistics->HistEnabledForType(hist_type_2) 29761: ? hist_type_2 29761: : Histograms::HISTOGRAM_ENUM_MAX), 29761: elapsed_(elapsed), 29761: overwrite_(overwrite), 29761: stats_enabled_(statistics && 29761: statistics->get_stats_level() > 29761: StatsLevel::kExceptTimers && 29761: (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX || 29761: hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX)), 29761: delay_enabled_(delay_enabled), 29761: total_delay_(0), 29761: delay_start_time_(0), 29761: start_time_((stats_enabled_ || elapsed != nullptr) ? clock->NowMicros() 29761: : 0) {} 29761: 29761: ~StopWatch() { 29761: if (elapsed_) { 29761: if (overwrite_) { 29761: *elapsed_ = clock_->NowMicros() - start_time_; 29761: } else { 29761: *elapsed_ += clock_->NowMicros() - start_time_; 29761: } 29761: } 29761: if (elapsed_ && delay_enabled_) { 29761: *elapsed_ -= total_delay_; 29761: } 29761: if (stats_enabled_) { 29761: const auto time = (elapsed_ != nullptr) 29761: ? *elapsed_ 29761: : (clock_->NowMicros() - start_time_); 29761: if (hist_type_1_ != Histograms::HISTOGRAM_ENUM_MAX) { 29761: statistics_->reportTimeToHistogram(hist_type_1_, time); 29761: } 29761: if (hist_type_2_ != Histograms::HISTOGRAM_ENUM_MAX) { 29761: statistics_->reportTimeToHistogram(hist_type_2_, time); 29761: } 29761: } 29761: } 29761: 29761: void DelayStart() { 29761: 29761: 29761: if (elapsed_ && delay_enabled_ && delay_start_time_ == 0) { 29761: delay_start_time_ = clock_->NowMicros(); 29761: } 29761: } 29761: 29761: void DelayStop() { 29761: if (elapsed_ && delay_enabled_ && delay_start_time_ != 0) { 29761: total_delay_ += clock_->NowMicros() - delay_start_time_; 29761: } 29761: 29761: 29761: delay_start_time_ = 0; 29761: } 29761: 29761: uint64_t GetDelay() const { return delay_enabled_ ? total_delay_ : 0; } 29761: 29761: uint64_t start_time() const { return start_time_; } 29761: 29761: private: 29761: SystemClock* clock_; 29761: Statistics* statistics_; 29761: const uint32_t hist_type_1_; 29761: const uint32_t hist_type_2_; 29761: uint64_t* elapsed_; 29761: bool overwrite_; 29761: bool stats_enabled_; 29761: bool delay_enabled_; 29761: uint64_t total_delay_; 29761: uint64_t delay_start_time_; 29761: const uint64_t start_time_; 29761: }; 29761: 29761: 29761: class StopWatchNano { 29761: public: 29761: explicit StopWatchNano(SystemClock* clock, bool auto_start = false) 29761: : clock_(clock), start_(0) { 29761: if (auto_start) { 29761: Start(); 29761: } 29761: } 29761: 29761: void Start() { start_ = clock_->NowNanos(); } 29761: 29761: uint64_t ElapsedNanos(bool reset = false) { 29761: auto now = clock_->NowNanos(); 29761: auto elapsed = now - start_; 29761: if (reset) { 29761: start_ = now; 29761: } 29761: return elapsed; 29761: } 29761: 29761: uint64_t ElapsedNanosSafe(bool reset = false) { 29761: return (clock_ != nullptr) ? ElapsedNanos(reset) : 0U; 29761: } 29761: 29761: bool IsStarted() { return start_ != 0; } 29761: 29761: private: 29761: SystemClock* clock_; 29761: uint64_t start_; 29761: }; 29761: 29761: } 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern thread_local PerfContext perf_context; 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/monitoring/perf_context_imp.h" 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/util/user_comparator_wrapper.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: class UserComparatorWrapper { 29761: public: 29761: 29761: 29761: UserComparatorWrapper() : user_comparator_(nullptr) {} 29761: 29761: explicit UserComparatorWrapper(const Comparator* const user_cmp) 29761: : user_comparator_(user_cmp) {} 29761: 29761: ~UserComparatorWrapper() = default; 29761: 29761: const Comparator* user_comparator() const { return user_comparator_; } 29761: 29761: int Compare(const Slice& a, const Slice& b) const { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29761: return user_comparator_->Compare(a, b); 29761: } 29761: 29761: bool Equal(const Slice& a, const Slice& b) const { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29761: return user_comparator_->Equal(a, b); 29761: } 29761: 29761: int CompareTimestamp(const Slice& ts1, const Slice& ts2) const { 29761: return user_comparator_->CompareTimestamp(ts1, ts2); 29761: } 29761: 29761: int CompareWithoutTimestamp(const Slice& a, const Slice& b) const { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29761: return user_comparator_->CompareWithoutTimestamp(a, b); 29761: } 29761: 29761: int CompareWithoutTimestamp(const Slice& a, bool a_has_ts, const Slice& b, 29761: bool b_has_ts) const { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.user_key_comparison_count += 1; } static_assert(true, "semicolon required"); 29761: return user_comparator_->CompareWithoutTimestamp(a, a_has_ts, b, b_has_ts); 29761: } 29761: 29761: bool EqualWithoutTimestamp(const Slice& a, const Slice& b) const { 29761: return user_comparator_->EqualWithoutTimestamp(a, b); 29761: } 29761: 29761: private: 29761: const Comparator* user_comparator_; 29761: }; 29761: 29761: } 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class InternalKey; 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum ValueType : unsigned char { 29761: kTypeDeletion = 0x0, 29761: kTypeValue = 0x1, 29761: kTypeMerge = 0x2, 29761: kTypeLogData = 0x3, 29761: kTypeColumnFamilyDeletion = 0x4, 29761: kTypeColumnFamilyValue = 0x5, 29761: kTypeColumnFamilyMerge = 0x6, 29761: kTypeSingleDeletion = 0x7, 29761: kTypeColumnFamilySingleDeletion = 0x8, 29761: kTypeBeginPrepareXID = 0x9, 29761: kTypeEndPrepareXID = 0xA, 29761: kTypeCommitXID = 0xB, 29761: kTypeRollbackXID = 0xC, 29761: kTypeNoop = 0xD, 29761: kTypeColumnFamilyRangeDeletion = 0xE, 29761: kTypeRangeDeletion = 0xF, 29761: kTypeColumnFamilyBlobIndex = 0x10, 29761: kTypeBlobIndex = 0x11, 29761: 29761: 29761: 29761: 29761: kTypeBeginPersistedPrepareXID = 0x12, 29761: 29761: 29761: 29761: kTypeBeginUnprepareXID = 0x13, 29761: kTypeDeletionWithTimestamp = 0x14, 29761: kTypeCommitXIDAndTimestamp = 0x15, 29761: kTypeWideColumnEntity = 0x16, 29761: kTypeColumnFamilyWideColumnEntity = 0x17, 29761: kTypeValuePreferredSeqno = 0x18, 29761: kTypeColumnFamilyValuePreferredSeqno = 0x19, 29761: kTypeMaxValid, 29761: 29761: kMaxValue = 0x7F 29761: }; 29761: 29761: 29761: extern const ValueType kValueTypeForSeek; 29761: extern const ValueType kValueTypeForSeekForPrev; 29761: 29761: 29761: 29761: struct UserKeyRange { 29761: 29761: 29761: Slice start; 29761: Slice limit; 29761: 29761: UserKeyRange() = default; 29761: UserKeyRange(const Slice& s, const Slice& l) : start(s), limit(l) {} 29761: }; 29761: 29761: 29761: 29761: struct UserKeyRangePtr { 29761: 29761: 29761: 29761: std::optional start; 29761: 29761: std::optional limit; 29761: 29761: UserKeyRangePtr(const std::optional& s, const std::optional& l) 29761: : start(s), limit(l) {} 29761: }; 29761: 29761: 29761: 29761: inline bool IsValueType(ValueType t) { 29761: return t <= kTypeMerge || kTypeSingleDeletion == t || kTypeBlobIndex == t || 29761: kTypeDeletionWithTimestamp == t || kTypeWideColumnEntity == t || 29761: kTypeValuePreferredSeqno == t; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: inline bool IsExtendedValueType(ValueType t) { 29761: return IsValueType(t) || t == kTypeRangeDeletion || t == kTypeMaxValid; 29761: } 29761: 29761: 29761: 29761: static const SequenceNumber kMaxSequenceNumber = ((0x1ull << 56) - 1); 29761: 29761: static const SequenceNumber kDisableGlobalSequenceNumber = 29761: std::numeric_limits::max(); 29761: 29761: constexpr uint64_t kNumInternalBytes = 8; 29761: 29761: 29761: extern const std::string kDisableUserTimestamp; 29761: 29761: 29761: 29761: struct ParsedInternalKey { 29761: Slice user_key; 29761: SequenceNumber sequence; 29761: ValueType type; 29761: 29761: ParsedInternalKey() 29761: : sequence(kMaxSequenceNumber), 29761: type(kTypeDeletion) 29761: {} 29761: 29761: ParsedInternalKey(const Slice& u, const SequenceNumber& seq, ValueType t) 29761: : user_key(u), sequence(seq), type(t) {} 29761: std::string DebugString(bool log_err_key, bool hex, 29761: const Comparator* ucmp = nullptr) const; 29761: 29761: void clear() { 29761: user_key.clear(); 29761: sequence = 0; 29761: type = kTypeDeletion; 29761: } 29761: 29761: void SetTimestamp(const Slice& ts) { 29761: 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts.size() <= user_key.size() 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts.size() <= user_key.size()" 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: const char* addr = user_key.data() + user_key.size() - ts.size(); 29761: memcpy(const_cast(addr), ts.data(), ts.size()); 29761: } 29761: 29761: Slice GetTimestamp(size_t ts_sz) { 29761: 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts_sz <= user_key.size() 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts_sz <= user_key.size()" 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: const char* addr = user_key.data() + user_key.size() - ts_sz; 29761: return Slice(const_cast(addr), ts_sz); 29761: } 29761: }; 29761: 29761: 29761: inline size_t InternalKeyEncodingLength(const ParsedInternalKey& key) { 29761: return key.user_key.size() + kNumInternalBytes; 29761: } 29761: 29761: 29761: inline uint64_t PackSequenceAndType(uint64_t seq, ValueType t) { 29761: 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: seq <= kMaxSequenceNumber 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "seq <= kMaxSequenceNumber" 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 181 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: 29761: 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: IsExtendedValueType(t) || t == kTypeMaxValid 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "IsExtendedValueType(t) || t == kTypeMaxValid" 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 183 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return (seq << 8) | t; 29761: } 29761: 29761: 29761: 29761: inline void UnPackSequenceAndType(uint64_t packed, uint64_t* seq, 29761: ValueType* t) { 29761: *seq = packed >> 8; 29761: *t = static_cast(packed & 0xff); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: const uint64_t kRangeTombstoneSentinel = 29761: PackSequenceAndType(kMaxSequenceNumber, kTypeRangeDeletion); 29761: 29761: EntryType GetEntryType(ValueType value_type); 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendInternalKey(std::string* result, const ParsedInternalKey& key); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendInternalKeyWithDifferentTimestamp(std::string* result, 29761: const ParsedInternalKey& key, 29761: const Slice& ts); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendUserKeyWithDifferentTimestamp(std::string* result, const Slice& key, 29761: const Slice& ts); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendInternalKeyFooter(std::string* result, SequenceNumber s, 29761: ValueType t); 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendKeyWithMinTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendKeyWithMaxTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendUserKeyWithMinTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void AppendUserKeyWithMaxTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: # 281 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: void PadInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: void PadInternalKeyWithMaxTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: # 301 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: void StripTimestampFromInternalKey(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: # 311 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: void ReplaceInternalKeyWithMinTimestamp(std::string* result, const Slice& key, 29761: size_t ts_sz); 29761: 29761: 29761: 29761: 29761: 29761: Status ParseInternalKey(const Slice& internal_key, ParsedInternalKey* result, 29761: bool log_err_key); 29761: 29761: 29761: 29761: 29761: 29761: inline Slice ExtractUserKey(const Slice& internal_key) { 29761: 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: internal_key.size() >= kNumInternalBytes 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "internal_key.size() >= kNumInternalBytes" 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 326 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(internal_key.data(), internal_key.size() - kNumInternalBytes); 29761: } 29761: 29761: 29761: 29761: inline Slice ExtractUserKeyAndStripTimestamp(const Slice& internal_key, 29761: size_t ts_sz) { 29761: 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: internal_key.size() >= kNumInternalBytes + ts_sz 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "internal_key.size() >= kNumInternalBytes + ts_sz" 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(internal_key.data(), 29761: internal_key.size() - (kNumInternalBytes + ts_sz)); 29761: } 29761: 29761: 29761: 29761: inline Slice StripTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 29761: 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: user_key.size() >= ts_sz 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "user_key.size() >= ts_sz" 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(user_key.data(), user_key.size() - ts_sz); 29761: } 29761: 29761: 29761: 29761: inline Slice ExtractTimestampFromUserKey(const Slice& user_key, size_t ts_sz) { 29761: 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: user_key.size() >= ts_sz 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "user_key.size() >= ts_sz" 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(user_key.data() + user_key.size() - ts_sz, ts_sz); 29761: } 29761: 29761: 29761: 29761: inline Slice ExtractTimestampFromKey(const Slice& internal_key, size_t ts_sz) { 29761: const size_t key_size = internal_key.size(); 29761: 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_size >= kNumInternalBytes + ts_sz 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_size >= kNumInternalBytes + ts_sz" 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 357 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(internal_key.data() + key_size - ts_sz - kNumInternalBytes, 29761: ts_sz); 29761: } 29761: 29761: 29761: 29761: inline uint64_t ExtractInternalKeyFooter(const Slice& internal_key) { 29761: 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: internal_key.size() >= kNumInternalBytes 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "internal_key.size() >= kNumInternalBytes" 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 365 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: const size_t n = internal_key.size(); 29761: return DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29761: } 29761: 29761: 29761: 29761: inline ValueType ExtractValueType(const Slice& internal_key) { 29761: uint64_t num = ExtractInternalKeyFooter(internal_key); 29761: unsigned char c = num & 0xff; 29761: return static_cast(c); 29761: } 29761: 29761: 29761: 29761: class InternalKeyComparator 29761: 29761: 29761: 29761: : public CompareInterface { 29761: private: 29761: UserComparatorWrapper user_comparator_; 29761: 29761: public: 29761: 29761: 29761: InternalKeyComparator() = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit InternalKeyComparator(const Comparator* c) : user_comparator_(c) {} 29761: virtual ~InternalKeyComparator() {} 29761: 29761: int Compare(const Slice& a, const Slice& b) const override; 29761: 29761: bool Equal(const Slice& a, const Slice& b) const { 29761: 29761: 29761: return Compare(a, b) == 0; 29761: } 29761: 29761: 29761: int CompareKeySeq(const Slice& a, const Slice& b) const; 29761: int CompareKeySeq(const ParsedInternalKey& a, const Slice& b) const; 29761: 29761: const Comparator* user_comparator() const { 29761: return user_comparator_.user_comparator(); 29761: } 29761: 29761: int Compare(const InternalKey& a, const InternalKey& b) const; 29761: int Compare(const ParsedInternalKey& a, const ParsedInternalKey& b) const; 29761: int Compare(const Slice& a, const ParsedInternalKey& b) const; 29761: int Compare(const ParsedInternalKey& a, const Slice& b) const; 29761: 29761: 29761: 29761: 29761: int Compare(const Slice& a, SequenceNumber a_global_seqno, const Slice& b, 29761: SequenceNumber b_global_seqno) const; 29761: }; 29761: 29761: 29761: class InternalKey { 29761: private: 29761: std::string rep_; 29761: 29761: public: 29761: InternalKey() {} 29761: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t) { 29761: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, s, t)); 29761: } 29761: InternalKey(const Slice& _user_key, SequenceNumber s, ValueType t, Slice ts) { 29761: AppendInternalKeyWithDifferentTimestamp( 29761: &rep_, ParsedInternalKey(_user_key, s, t), ts); 29761: } 29761: 29761: 29761: 29761: void SetMaxPossibleForUserKey(const Slice& _user_key) { 29761: AppendInternalKey( 29761: &rep_, ParsedInternalKey(_user_key, 0, static_cast(0))); 29761: } 29761: 29761: 29761: 29761: void SetMinPossibleForUserKey(const Slice& _user_key) { 29761: AppendInternalKey(&rep_, ParsedInternalKey(_user_key, kMaxSequenceNumber, 29761: kValueTypeForSeek)); 29761: } 29761: 29761: bool Valid() const { 29761: ParsedInternalKey parsed; 29761: return (ParseInternalKey(Slice(rep_), &parsed, false ) 29761: .ok()); 29761: } 29761: 29761: void DecodeFrom(const Slice& s) { rep_.assign(s.data(), s.size()); } 29761: Slice Encode() const { 29761: 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: !rep_.empty() 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "!rep_.empty()" 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return rep_; 29761: } 29761: 29761: Slice user_key() const { return ExtractUserKey(rep_); } 29761: size_t size() const { return rep_.size(); } 29761: 29761: void Set(const Slice& _user_key, SequenceNumber s, ValueType t) { 29761: SetFrom(ParsedInternalKey(_user_key, s, t)); 29761: } 29761: 29761: void Set(const Slice& _user_key_with_ts, SequenceNumber s, ValueType t, 29761: const Slice& ts) { 29761: ParsedInternalKey pik(_user_key_with_ts, s, t); 29761: 29761: 29761: SetFrom(pik, ts); 29761: } 29761: 29761: void SetFrom(const ParsedInternalKey& p) { 29761: rep_.clear(); 29761: AppendInternalKey(&rep_, p); 29761: } 29761: 29761: void SetFrom(const ParsedInternalKey& p, const Slice& ts) { 29761: rep_.clear(); 29761: AppendInternalKeyWithDifferentTimestamp(&rep_, p, ts); 29761: } 29761: 29761: void Clear() { rep_.clear(); } 29761: 29761: 29761: 29761: std::string* rep() { return &rep_; } 29761: 29761: 29761: 29761: void ConvertFromUserKey(SequenceNumber s, ValueType t) { 29761: AppendInternalKeyFooter(&rep_, s, t); 29761: } 29761: 29761: std::string DebugString(bool hex, const Comparator* ucmp = nullptr) const; 29761: }; 29761: 29761: inline int InternalKeyComparator::Compare(const InternalKey& a, 29761: const InternalKey& b) const { 29761: return Compare(a.Encode(), b.Encode()); 29761: } 29761: 29761: inline Status ParseInternalKey(const Slice& internal_key, 29761: ParsedInternalKey* result, bool log_err_key) { 29761: const size_t n = internal_key.size(); 29761: 29761: if (n < kNumInternalBytes) { 29761: return Status::Corruption("Corrupted Key: Internal Key too small. Size=" + 29761: std::to_string(n) + ". "); 29761: } 29761: 29761: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29761: unsigned char c = num & 0xff; 29761: result->sequence = num >> 8; 29761: result->type = static_cast(c); 29761: 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: result->type <= ValueType::kMaxValue 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "result->type <= ValueType::kMaxValue" 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 528 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: result->user_key = Slice(internal_key.data(), n - kNumInternalBytes); 29761: 29761: if (IsExtendedValueType(result->type)) { 29761: return Status::OK(); 29761: } else { 29761: return Status::Corruption("Corrupted Key", 29761: result->DebugString(log_err_key, true)); 29761: } 29761: } 29761: 29761: 29761: 29761: inline void UpdateInternalKey(std::string* ikey, uint64_t seq, ValueType t) { 29761: size_t ikey_sz = ikey->size(); 29761: 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ikey_sz >= kNumInternalBytes 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ikey_sz >= kNumInternalBytes" 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: uint64_t newval = (seq << 8) | t; 29761: 29761: 29761: 29761: EncodeFixed64(&(*ikey)[ikey_sz - kNumInternalBytes], newval); 29761: } 29761: 29761: 29761: inline uint64_t GetInternalKeySeqno(const Slice& internal_key) { 29761: const size_t n = internal_key.size(); 29761: 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: n >= kNumInternalBytes 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "n >= kNumInternalBytes" 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: uint64_t num = DecodeFixed64(internal_key.data() + n - kNumInternalBytes); 29761: return num >> 8; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class IterKey { 29761: static constexpr size_t kInlineBufferSize = 39; 29761: 29761: 29761: static constexpr char kTsMin[] = "\x00\x00\x00\x00\x00\x00\x00\x00"; 29761: 29761: public: 29761: IterKey() 29761: : buf_(space_), 29761: key_(buf_), 29761: key_size_(0), 29761: buf_size_(kInlineBufferSize), 29761: is_user_key_(true), 29761: secondary_buf_(space_for_secondary_buf_), 29761: secondary_buf_size_(kInlineBufferSize) {} 29761: 29761: IterKey(const IterKey&) = delete; 29761: void operator=(const IterKey&) = delete; 29761: 29761: ~IterKey() { 29761: ResetBuffer(); 29761: ResetSecondaryBuffer(); 29761: } 29761: 29761: 29761: void SetIsUserKey(bool is_user_key) { is_user_key_ = is_user_key; } 29761: 29761: 29761: 29761: 29761: Slice GetKey() const { return Slice(key_, key_size_); } 29761: 29761: Slice GetInternalKey() const { 29761: 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: !IsUserKey() 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "!IsUserKey()" 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 598 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(key_, key_size_); 29761: } 29761: 29761: 29761: 29761: Slice GetUserKey() const { 29761: if (IsUserKey()) { 29761: return Slice(key_, key_size_); 29761: } else { 29761: 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_size_ >= kNumInternalBytes 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_size_ >= kNumInternalBytes" 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: return Slice(key_, key_size_ - kNumInternalBytes); 29761: } 29761: } 29761: 29761: size_t Size() const { return key_size_; } 29761: 29761: void Clear() { key_size_ = 0; } 29761: 29761: 29761: 29761: 29761: 29761: void TrimAppend(const size_t shared_len, const char* non_shared_data, 29761: const size_t non_shared_len) { 29761: 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: shared_len <= key_size_ 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "shared_len <= key_size_" 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: size_t total_size = shared_len + non_shared_len; 29761: 29761: if (IsKeyPinned() ) { 29761: 29761: EnlargeBufferIfNeeded(total_size); 29761: memcpy(buf_, key_, shared_len); 29761: } else if (total_size > buf_size_) { 29761: 29761: char* p = new char[total_size]; 29761: memcpy(p, key_, shared_len); 29761: 29761: if (buf_ != space_) { 29761: delete[] buf_; 29761: } 29761: 29761: buf_ = p; 29761: buf_size_ = total_size; 29761: } 29761: 29761: memcpy(buf_ + shared_len, non_shared_data, non_shared_len); 29761: key_ = buf_; 29761: key_size_ = total_size; 29761: } 29761: 29761: 29761: 29761: 29761: void TrimAppendWithTimestamp(const size_t shared_len, 29761: const char* non_shared_data, 29761: const size_t non_shared_len, 29761: const size_t ts_sz) { 29761: 29761: 29761: 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts_sz == sizeof(uint64_t) 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts_sz == sizeof(uint64_t)" 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 657 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: size_t next_key_slice_index = 0; 29761: if (IsUserKey()) { 29761: key_slices_[next_key_slice_index++] = Slice(key_, shared_len); 29761: key_slices_[next_key_slice_index++] = 29761: Slice(non_shared_data, non_shared_len); 29761: key_slices_[next_key_slice_index++] = Slice(kTsMin, ts_sz); 29761: } else { 29761: 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: shared_len + non_shared_len >= kNumInternalBytes 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "shared_len + non_shared_len >= kNumInternalBytes" 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: const size_t user_key_len = key_size_ - kNumInternalBytes; 29761: const size_t sharable_user_key_len = user_key_len - ts_sz; 29761: const size_t shared_user_key_len = 29761: std::min(shared_len, sharable_user_key_len); 29761: const size_t shared_internal_bytes_len = shared_len - shared_user_key_len; 29761: 29761: 29761: 29761: bool ts_added = false; 29761: 29761: MaybeAddKeyPartsWithTimestamp( 29761: key_, shared_user_key_len, 29761: shared_internal_bytes_len + non_shared_len < kNumInternalBytes, 29761: shared_len + non_shared_len - kNumInternalBytes, ts_sz, 29761: &next_key_slice_index, &ts_added); 29761: MaybeAddKeyPartsWithTimestamp( 29761: key_ + user_key_len, shared_internal_bytes_len, 29761: non_shared_len < kNumInternalBytes, 29761: shared_internal_bytes_len + non_shared_len - kNumInternalBytes, ts_sz, 29761: &next_key_slice_index, &ts_added); 29761: MaybeAddKeyPartsWithTimestamp(non_shared_data, non_shared_len, 29761: non_shared_len >= kNumInternalBytes, 29761: non_shared_len - kNumInternalBytes, ts_sz, 29761: &next_key_slice_index, &ts_added); 29761: 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts_added 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts_added" 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: } 29761: SetKeyImpl(next_key_slice_index, 29761: shared_len + non_shared_len + ts_sz); 29761: } 29761: 29761: Slice SetKeyWithPaddedMinTimestamp(const Slice& key, size_t ts_sz) { 29761: 29761: 29761: 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts_sz == sizeof(uint64_t) 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts_sz == sizeof(uint64_t)" 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 705 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: size_t num_key_slices = 0; 29761: if (is_user_key_) { 29761: key_slices_[0] = key; 29761: key_slices_[1] = Slice(kTsMin, ts_sz); 29761: num_key_slices = 2; 29761: } else { 29761: 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key.size() >= kNumInternalBytes 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key.size() >= kNumInternalBytes" 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 712 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: size_t user_key_size = key.size() - kNumInternalBytes; 29761: key_slices_[0] = Slice(key.data(), user_key_size); 29761: key_slices_[1] = Slice(kTsMin, ts_sz); 29761: key_slices_[2] = Slice(key.data() + user_key_size, kNumInternalBytes); 29761: num_key_slices = 3; 29761: } 29761: return SetKeyImpl(num_key_slices, key.size() + ts_sz); 29761: } 29761: 29761: Slice SetKey(const Slice& key, bool copy = true) { 29761: 29761: return SetKeyImpl(key, copy); 29761: } 29761: 29761: 29761: 29761: 29761: Slice SetUserKey(const Slice& key, bool copy = true) { 29761: is_user_key_ = true; 29761: return SetKeyImpl(key, copy); 29761: } 29761: 29761: Slice SetInternalKey(const Slice& key, bool copy = true) { 29761: is_user_key_ = false; 29761: return SetKeyImpl(key, copy); 29761: } 29761: 29761: 29761: 29761: Slice SetInternalKey(const Slice& key, ParsedInternalKey* ikey) { 29761: size_t key_n = key.size(); 29761: 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_n >= kNumInternalBytes 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_n >= kNumInternalBytes" 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 744 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: SetInternalKey(key); 29761: ikey->user_key = Slice(key_, key_n - kNumInternalBytes); 29761: return Slice(key_, key_n); 29761: } 29761: 29761: 29761: 29761: void UpdateInternalKey(uint64_t seq, ValueType t, const Slice* ts = nullptr) { 29761: 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: !IsKeyPinned() 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "!IsKeyPinned()" 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 753 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_size_ >= kNumInternalBytes 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_size_ >= kNumInternalBytes" 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 754 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: if (ts) { 29761: 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_size_ >= kNumInternalBytes + ts->size() 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_size_ >= kNumInternalBytes + ts->size()" 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 756 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: memcpy(&buf_[key_size_ - kNumInternalBytes - ts->size()], ts->data(), 29761: ts->size()); 29761: } 29761: uint64_t newval = (seq << 8) | t; 29761: if (key_ == buf_) { 29761: EncodeFixed64(&buf_[key_size_ - kNumInternalBytes], newval); 29761: } else { 29761: 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: key_ == secondary_buf_ 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "key_ == secondary_buf_" 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: EncodeFixed64(&secondary_buf_[key_size_ - kNumInternalBytes], newval); 29761: } 29761: } 29761: 29761: bool IsKeyPinned() const { return key_ != buf_ && key_ != secondary_buf_; } 29761: 29761: 29761: 29761: 29761: void SetInternalKey(const Slice& key_prefix, const Slice& user_key, 29761: SequenceNumber s, 29761: ValueType value_type = kValueTypeForSeek, 29761: const Slice* ts = nullptr) { 29761: size_t psize = key_prefix.size(); 29761: size_t usize = user_key.size(); 29761: size_t ts_sz = (ts != nullptr ? ts->size() : 0); 29761: EnlargeBufferIfNeeded(psize + usize + sizeof(uint64_t) + ts_sz); 29761: if (psize > 0) { 29761: memcpy(buf_, key_prefix.data(), psize); 29761: } 29761: memcpy(buf_ + psize, user_key.data(), usize); 29761: if (ts) { 29761: memcpy(buf_ + psize + usize, ts->data(), ts_sz); 29761: } 29761: EncodeFixed64(buf_ + usize + psize + ts_sz, 29761: PackSequenceAndType(s, value_type)); 29761: 29761: key_ = buf_; 29761: key_size_ = psize + usize + sizeof(uint64_t) + ts_sz; 29761: is_user_key_ = false; 29761: } 29761: 29761: void SetInternalKey(const Slice& user_key, SequenceNumber s, 29761: ValueType value_type = kValueTypeForSeek, 29761: const Slice* ts = nullptr) { 29761: SetInternalKey(Slice(), user_key, s, value_type, ts); 29761: } 29761: 29761: void Reserve(size_t size) { 29761: EnlargeBufferIfNeeded(size); 29761: key_size_ = size; 29761: } 29761: 29761: void SetInternalKey(const ParsedInternalKey& parsed_key) { 29761: SetInternalKey(Slice(), parsed_key); 29761: } 29761: 29761: void SetInternalKey(const Slice& key_prefix, 29761: const ParsedInternalKey& parsed_key_suffix) { 29761: SetInternalKey(key_prefix, parsed_key_suffix.user_key, 29761: parsed_key_suffix.sequence, parsed_key_suffix.type); 29761: } 29761: 29761: void EncodeLengthPrefixedKey(const Slice& key) { 29761: auto size = key.size(); 29761: EnlargeBufferIfNeeded(size + static_cast(VarintLength(size))); 29761: char* ptr = EncodeVarint32(buf_, static_cast(size)); 29761: memcpy(ptr, key.data(), size); 29761: key_ = buf_; 29761: is_user_key_ = true; 29761: } 29761: 29761: bool IsUserKey() const { return is_user_key_; } 29761: 29761: private: 29761: char* buf_; 29761: const char* key_; 29761: size_t key_size_; 29761: size_t buf_size_; 29761: char space_[kInlineBufferSize]; 29761: bool is_user_key_; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: char space_for_secondary_buf_[kInlineBufferSize]; 29761: 29761: char* secondary_buf_; 29761: size_t secondary_buf_size_; 29761: 29761: 29761: 29761: std::array key_slices_; 29761: 29761: 29761: Slice SetKeyImpl(const Slice& key, bool copy) { 29761: size_t size = key.size(); 29761: if (copy) { 29761: 29761: EnlargeBufferIfNeeded(size); 29761: memcpy(buf_, key.data(), size); 29761: key_ = buf_; 29761: } else { 29761: 29761: key_ = key.data(); 29761: } 29761: key_size_ = size; 29761: return Slice(key_, key_size_); 29761: } 29761: 29761: Slice SetKeyImpl(size_t num_key_slices, size_t total_bytes) { 29761: 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: num_key_slices <= 5 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "num_key_slices <= 5" 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 869 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: char* buf_start = nullptr; 29761: if (key_ == buf_) { 29761: 29761: 29761: EnlargeSecondaryBufferIfNeeded(total_bytes); 29761: buf_start = secondary_buf_; 29761: key_ = secondary_buf_; 29761: } else { 29761: 29761: EnlargeBufferIfNeeded(total_bytes); 29761: buf_start = buf_; 29761: key_ = buf_; 29761: } 29761: 29761: size_t actual_total_bytes = 0; 29761: 29761: for (size_t i = 0; i < num_key_slices; i++) { 29761: size_t key_slice_size = key_slices_[i].size(); 29761: memcpy(buf_start, key_slices_[i].data(), key_slice_size); 29761: buf_start += key_slice_size; 29761: 29761: actual_total_bytes += key_slice_size; 29761: 29761: } 29761: 29761: 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: actual_total_bytes == total_bytes 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "actual_total_bytes == total_bytes" 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 895 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: 29761: key_size_ = total_bytes; 29761: return Slice(key_, key_size_); 29761: } 29761: 29761: void ResetBuffer() { 29761: if (key_ == buf_) { 29761: key_size_ = 0; 29761: } 29761: if (buf_ != space_) { 29761: delete[] buf_; 29761: buf_ = space_; 29761: } 29761: buf_size_ = kInlineBufferSize; 29761: } 29761: 29761: void ResetSecondaryBuffer() { 29761: if (key_ == secondary_buf_) { 29761: key_size_ = 0; 29761: } 29761: if (secondary_buf_ != space_for_secondary_buf_) { 29761: delete[] secondary_buf_; 29761: secondary_buf_ = space_for_secondary_buf_; 29761: } 29761: secondary_buf_size_ = kInlineBufferSize; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void EnlargeBufferIfNeeded(size_t key_size) { 29761: 29761: 29761: if (key_size > buf_size_) { 29761: EnlargeBuffer(key_size); 29761: } 29761: } 29761: 29761: void EnlargeSecondaryBufferIfNeeded(size_t key_size); 29761: 29761: void EnlargeBuffer(size_t key_size); 29761: 29761: void MaybeAddKeyPartsWithTimestamp(const char* slice_data, 29761: const size_t slice_sz, bool add_timestamp, 29761: const size_t left_sz, const size_t ts_sz, 29761: size_t* next_key_slice_idx, 29761: bool* ts_added) { 29761: 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: next_key_slice_idx 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "next_key_slice_idx" 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: if (add_timestamp && !*ts_added) { 29761: 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: slice_sz >= left_sz 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "slice_sz >= left_sz" 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 947 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, left_sz); 29761: key_slices_[(*next_key_slice_idx)++] = Slice(kTsMin, ts_sz); 29761: key_slices_[(*next_key_slice_idx)++] = 29761: Slice(slice_data + left_sz, slice_sz - left_sz); 29761: *ts_added = true; 29761: } else { 29761: key_slices_[(*next_key_slice_idx)++] = Slice(slice_data, slice_sz); 29761: } 29761: 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: *next_key_slice_idx <= 5 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "*next_key_slice_idx <= 5" 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 956 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: } 29761: }; 29761: 29761: 29761: 29761: class InternalKeySliceTransform : public SliceTransform { 29761: public: 29761: explicit InternalKeySliceTransform(const SliceTransform* transform) 29761: : transform_(transform) {} 29761: 29761: const char* Name() const override { return transform_->Name(); } 29761: 29761: Slice Transform(const Slice& src) const override { 29761: auto user_key = ExtractUserKey(src); 29761: return transform_->Transform(user_key); 29761: } 29761: 29761: bool InDomain(const Slice& src) const override { 29761: auto user_key = ExtractUserKey(src); 29761: return transform_->InDomain(user_key); 29761: } 29761: 29761: bool InRange(const Slice& dst) const override { 29761: auto user_key = ExtractUserKey(dst); 29761: return transform_->InRange(user_key); 29761: } 29761: 29761: const SliceTransform* user_prefix_extractor() const { return transform_; } 29761: 29761: private: 29761: 29761: 29761: const SliceTransform* const transform_; 29761: }; 29761: 29761: 29761: 29761: 29761: bool ReadKeyFromWriteBatchEntry(Slice* input, Slice* key, bool cf_record); 29761: # 1004 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: Status ReadRecordFromWriteBatch(Slice* input, char* tag, 29761: uint32_t* column_family, Slice* key, 29761: Slice* value, Slice* blob, Slice* xid, 29761: uint64_t* write_unix_time); 29761: 29761: 29761: 29761: 29761: 29761: struct RangeTombstone { 29761: Slice start_key_; 29761: Slice end_key_; 29761: SequenceNumber seq_; 29761: 29761: 29761: Slice ts_; 29761: std::string pinned_start_key_; 29761: std::string pinned_end_key_; 29761: 29761: RangeTombstone() = default; 29761: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn) 29761: : start_key_(sk), end_key_(ek), seq_(sn) {} 29761: 29761: 29761: 29761: 29761: RangeTombstone(Slice sk, Slice ek, SequenceNumber sn, Slice ts) : seq_(sn) { 29761: const size_t ts_sz = ts.size(); 29761: 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: (static_cast ( 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ts_sz > 0 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: "ts_sz > 0" 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1032 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: ; 29761: pinned_start_key_.reserve(sk.size()); 29761: pinned_end_key_.reserve(ek.size()); 29761: AppendUserKeyWithDifferentTimestamp(&pinned_start_key_, sk, ts); 29761: AppendUserKeyWithDifferentTimestamp(&pinned_end_key_, ek, ts); 29761: start_key_ = pinned_start_key_; 29761: end_key_ = pinned_end_key_; 29761: ts_ = Slice(pinned_start_key_.data() + sk.size() - ts_sz, ts_sz); 29761: } 29761: 29761: RangeTombstone(ParsedInternalKey parsed_key, Slice value) { 29761: start_key_ = parsed_key.user_key; 29761: seq_ = parsed_key.sequence; 29761: end_key_ = value; 29761: } 29761: 29761: 29761: std::pair Serialize() const { 29761: auto key = InternalKey(start_key_, seq_, kTypeRangeDeletion); 29761: return std::make_pair(std::move(key), end_key_); 29761: } 29761: 29761: 29761: InternalKey SerializeKey() const { 29761: return InternalKey(start_key_, seq_, kTypeRangeDeletion); 29761: } 29761: # 1066 "/build/reproducible-path/rocksdb-9.10.0/db/dbformat.h" 29761: InternalKey SerializeEndKey() const { 29761: if (!ts_.empty()) { 29761: static constexpr char kTsMax[] = "\xff\xff\xff\xff\xff\xff\xff\xff\xff"; 29761: if (ts_.size() <= strlen(kTsMax)) { 29761: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 29761: Slice(kTsMax, ts_.size())); 29761: } else { 29761: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion, 29761: std::string(ts_.size(), '\xff')); 29761: } 29761: } 29761: return InternalKey(end_key_, kMaxSequenceNumber, kTypeRangeDeletion); 29761: } 29761: }; 29761: 29761: inline int InternalKeyComparator::Compare(const Slice& akey, 29761: const Slice& bkey) const { 29761: 29761: 29761: 29761: 29761: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 29761: if (r == 0) { 29761: const uint64_t anum = 29761: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes); 29761: const uint64_t bnum = 29761: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes); 29761: if (anum > bnum) { 29761: r = -1; 29761: } else if (anum < bnum) { 29761: r = +1; 29761: } 29761: } 29761: return r; 29761: } 29761: 29761: inline int InternalKeyComparator::CompareKeySeq(const Slice& akey, 29761: const Slice& bkey) const { 29761: 29761: 29761: 29761: int r = user_comparator_.Compare(ExtractUserKey(akey), ExtractUserKey(bkey)); 29761: if (r == 0) { 29761: 29761: const uint64_t anum = 29761: DecodeFixed64(akey.data() + akey.size() - kNumInternalBytes) >> 8; 29761: const uint64_t bnum = 29761: DecodeFixed64(bkey.data() + bkey.size() - kNumInternalBytes) >> 8; 29761: if (anum > bnum) { 29761: r = -1; 29761: } else if (anum < bnum) { 29761: r = +1; 29761: } 29761: } 29761: return r; 29761: } 29761: 29761: inline int InternalKeyComparator::CompareKeySeq(const ParsedInternalKey& a, 29761: const Slice& b) const { 29761: 29761: 29761: 29761: int r = user_comparator_.Compare(a.user_key, ExtractUserKey(b)); 29761: if (r == 0) { 29761: 29761: const uint64_t anum = a.sequence; 29761: const uint64_t bnum = 29761: DecodeFixed64(b.data() + b.size() - kNumInternalBytes) >> 8; 29761: if (anum > bnum) { 29761: r = -1; 29761: } else if (anum < bnum) { 29761: r = +1; 29761: } 29761: } 29761: return r; 29761: } 29761: 29761: inline int InternalKeyComparator::Compare(const Slice& a, 29761: SequenceNumber a_global_seqno, 29761: const Slice& b, 29761: SequenceNumber b_global_seqno) const { 29761: int r = user_comparator_.Compare(ExtractUserKey(a), ExtractUserKey(b)); 29761: if (r == 0) { 29761: uint64_t a_footer, b_footer; 29761: if (a_global_seqno == kDisableGlobalSequenceNumber) { 29761: a_footer = ExtractInternalKeyFooter(a); 29761: } else { 29761: a_footer = PackSequenceAndType(a_global_seqno, ExtractValueType(a)); 29761: } 29761: if (b_global_seqno == kDisableGlobalSequenceNumber) { 29761: b_footer = ExtractInternalKeyFooter(b); 29761: } else { 29761: b_footer = PackSequenceAndType(b_global_seqno, ExtractValueType(b)); 29761: } 29761: if (a_footer > b_footer) { 29761: r = -1; 29761: } else if (a_footer < b_footer) { 29761: r = +1; 29761: } 29761: } 29761: return r; 29761: } 29761: 29761: 29761: struct ParsedInternalKeyComparator { 29761: explicit ParsedInternalKeyComparator(const InternalKeyComparator* c) 29761: : cmp(c) {} 29761: 29761: bool operator()(const ParsedInternalKey& a, 29761: const ParsedInternalKey& b) const { 29761: return cmp->Compare(a, b) < 0; 29761: } 29761: 29761: const InternalKeyComparator* cmp; 29761: }; 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 1 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: template 29761: class ProtectionInfo; 29761: template 29761: class ProtectionInfoKVO; 29761: template 29761: class ProtectionInfoKVOC; 29761: template 29761: class ProtectionInfoKVOS; 29761: template 29761: class ProtectionInfoKV; 29761: 29761: 29761: using ProtectionInfo64 = ProtectionInfo; 29761: using ProtectionInfoKVO64 = ProtectionInfoKVO; 29761: using ProtectionInfoKVOC64 = ProtectionInfoKVOC; 29761: using ProtectionInfoKVOS64 = ProtectionInfoKVOS; 29761: 29761: template 29761: class ProtectionInfo { 29761: public: 29761: ProtectionInfo() = default; 29761: 29761: Status GetStatus() const; 29761: ProtectionInfoKVO ProtectKVO(const Slice& key, const Slice& value, 29761: ValueType op_type) const; 29761: ProtectionInfoKVO ProtectKVO(const SliceParts& key, 29761: const SliceParts& value, 29761: ValueType op_type) const; 29761: ProtectionInfoKV ProtectKV(const Slice& key, const Slice& value) const; 29761: 29761: private: 29761: friend class ProtectionInfoKVO; 29761: friend class ProtectionInfoKVOS; 29761: friend class ProtectionInfoKVOC; 29761: friend class ProtectionInfoKV; 29761: # 84 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: static const uint64_t kSeedK = 0; 29761: static const uint64_t kSeedV = 0xD28AAD72F49BD50B; 29761: static const uint64_t kSeedO = 0xA5155AE5E937AA16; 29761: static const uint64_t kSeedS = 0x77A00858DDD37F21; 29761: static const uint64_t kSeedC = 0x4A2AB5CBD26F542C; 29761: 29761: ProtectionInfo(T val) : val_(val) { 29761: static_assert(sizeof(ProtectionInfo) == sizeof(T), ""); 29761: } 29761: 29761: T GetVal() const { return val_; } 29761: void SetVal(T val) { val_ = val; } 29761: 29761: void Encode(uint8_t len, char* dst) const { 29761: 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: (static_cast ( 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: sizeof(val_) >= len 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: "sizeof(val_) >= len" 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: ; 29761: switch (len) { 29761: case 1: 29761: dst[0] = static_cast(val_); 29761: break; 29761: case 2: 29761: EncodeFixed16(dst, static_cast(val_)); 29761: break; 29761: case 4: 29761: EncodeFixed32(dst, static_cast(val_)); 29761: break; 29761: case 8: 29761: EncodeFixed64(dst, static_cast(val_)); 29761: break; 29761: default: 29761: 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: (static_cast ( 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: false 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: "false" 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: ; 29761: } 29761: } 29761: 29761: bool Verify(uint8_t len, const char* checksum_ptr) const { 29761: 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: (static_cast ( 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: sizeof(val_) >= len 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: "sizeof(val_) >= len" 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: ; 29761: switch (len) { 29761: case 1: 29761: return static_cast(checksum_ptr[0]) == 29761: static_cast(val_); 29761: case 2: 29761: return DecodeFixed16(checksum_ptr) == static_cast(val_); 29761: case 4: 29761: return DecodeFixed32(checksum_ptr) == static_cast(val_); 29761: case 8: 29761: return DecodeFixed64(checksum_ptr) == static_cast(val_); 29761: default: 29761: 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: (static_cast ( 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: false 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: "false" 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/db/kv_checksum.h" 29761: ; 29761: return false; 29761: } 29761: } 29761: 29761: T val_ = 0; 29761: }; 29761: 29761: template 29761: class ProtectionInfoKVO { 29761: public: 29761: ProtectionInfoKVO() = default; 29761: 29761: ProtectionInfo StripKVO(const Slice& key, const Slice& value, 29761: ValueType op_type) const; 29761: ProtectionInfo StripKVO(const SliceParts& key, const SliceParts& value, 29761: ValueType op_type) const; 29761: 29761: ProtectionInfoKVOC ProtectC(ColumnFamilyId column_family_id) const; 29761: ProtectionInfoKVOS ProtectS(SequenceNumber sequence_number) const; 29761: 29761: void UpdateK(const Slice& old_key, const Slice& new_key); 29761: void UpdateK(const SliceParts& old_key, const SliceParts& new_key); 29761: void UpdateV(const Slice& old_value, const Slice& new_value); 29761: void UpdateV(const SliceParts& old_value, const SliceParts& new_value); 29761: void UpdateO(ValueType old_op_type, ValueType new_op_type); 29761: 29761: 29761: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 29761: 29761: 29761: 29761: bool Verify(uint8_t len, const char* checksum_ptr) const { 29761: return info_.Verify(len, checksum_ptr); 29761: } 29761: 29761: private: 29761: friend class ProtectionInfo; 29761: friend class ProtectionInfoKVOS; 29761: friend class ProtectionInfoKVOC; 29761: 29761: explicit ProtectionInfoKVO(T val) : info_(val) { 29761: static_assert(sizeof(ProtectionInfoKVO) == sizeof(T), ""); 29761: } 29761: 29761: T GetVal() const { return info_.GetVal(); } 29761: void SetVal(T val) { info_.SetVal(val); } 29761: 29761: ProtectionInfo info_; 29761: }; 29761: 29761: template 29761: class ProtectionInfoKVOC { 29761: public: 29761: ProtectionInfoKVOC() = default; 29761: 29761: ProtectionInfoKVO StripC(ColumnFamilyId column_family_id) const; 29761: 29761: void UpdateK(const Slice& old_key, const Slice& new_key) { 29761: kvo_.UpdateK(old_key, new_key); 29761: } 29761: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 29761: kvo_.UpdateK(old_key, new_key); 29761: } 29761: void UpdateV(const Slice& old_value, const Slice& new_value) { 29761: kvo_.UpdateV(old_value, new_value); 29761: } 29761: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 29761: kvo_.UpdateV(old_value, new_value); 29761: } 29761: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 29761: kvo_.UpdateO(old_op_type, new_op_type); 29761: } 29761: void UpdateC(ColumnFamilyId old_column_family_id, 29761: ColumnFamilyId new_column_family_id); 29761: 29761: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 29761: bool Verify(uint8_t len, const char* checksum_ptr) const { 29761: return kvo_.Verify(len, checksum_ptr); 29761: } 29761: 29761: private: 29761: friend class ProtectionInfoKVO; 29761: 29761: explicit ProtectionInfoKVOC(T val) : kvo_(val) { 29761: static_assert(sizeof(ProtectionInfoKVOC) == sizeof(T), ""); 29761: } 29761: 29761: T GetVal() const { return kvo_.GetVal(); } 29761: void SetVal(T val) { kvo_.SetVal(val); } 29761: 29761: ProtectionInfoKVO kvo_; 29761: }; 29761: 29761: template 29761: class ProtectionInfoKVOS { 29761: public: 29761: ProtectionInfoKVOS() = default; 29761: 29761: ProtectionInfoKVO StripS(SequenceNumber sequence_number) const; 29761: 29761: void UpdateK(const Slice& old_key, const Slice& new_key) { 29761: kvo_.UpdateK(old_key, new_key); 29761: } 29761: void UpdateK(const SliceParts& old_key, const SliceParts& new_key) { 29761: kvo_.UpdateK(old_key, new_key); 29761: } 29761: void UpdateV(const Slice& old_value, const Slice& new_value) { 29761: kvo_.UpdateV(old_value, new_value); 29761: } 29761: void UpdateV(const SliceParts& old_value, const SliceParts& new_value) { 29761: kvo_.UpdateV(old_value, new_value); 29761: } 29761: void UpdateO(ValueType old_op_type, ValueType new_op_type) { 29761: kvo_.UpdateO(old_op_type, new_op_type); 29761: } 29761: void UpdateS(SequenceNumber old_sequence_number, 29761: SequenceNumber new_sequence_number); 29761: 29761: void Encode(uint8_t len, char* dst) const { kvo_.Encode(len, dst); } 29761: bool Verify(uint8_t len, const char* checksum_ptr) const { 29761: return kvo_.Verify(len, checksum_ptr); 29761: } 29761: 29761: private: 29761: friend class ProtectionInfoKVO; 29761: 29761: explicit ProtectionInfoKVOS(T val) : kvo_(val) { 29761: static_assert(sizeof(ProtectionInfoKVOS) == sizeof(T), ""); 29761: } 29761: 29761: T GetVal() const { return kvo_.GetVal(); } 29761: void SetVal(T val) { kvo_.SetVal(val); } 29761: 29761: ProtectionInfoKVO kvo_; 29761: }; 29761: 29761: template 29761: class ProtectionInfoKV { 29761: public: 29761: ProtectionInfoKV() = default; 29761: 29761: void Encode(uint8_t len, char* dst) const { info_.Encode(len, dst); } 29761: bool Verify(uint8_t len, const char* checksum_ptr) const { 29761: return info_.Verify(len, checksum_ptr); 29761: } 29761: 29761: private: 29761: friend class ProtectionInfo; 29761: 29761: explicit ProtectionInfoKV(T val) : info_(val) { 29761: static_assert(sizeof(ProtectionInfoKV) == sizeof(T)); 29761: } 29761: 29761: ProtectionInfo info_; 29761: }; 29761: 29761: template 29761: Status ProtectionInfo::GetStatus() const { 29761: if (val_ != 0) { 29761: return Status::Corruption("ProtectionInfo mismatch"); 29761: } 29761: return Status::OK(); 29761: } 29761: 29761: template 29761: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const Slice& key, 29761: const Slice& value, 29761: ValueType op_type) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29761: val = 29761: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29761: val = val ^ 29761: static_cast(NPHash64(reinterpret_cast(&op_type), 29761: sizeof(op_type), ProtectionInfo::kSeedO)); 29761: return ProtectionInfoKVO(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKVO ProtectionInfo::ProtectKVO(const SliceParts& key, 29761: const SliceParts& value, 29761: ValueType op_type) const { 29761: T val = GetVal(); 29761: val = val ^ 29761: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 29761: val = val ^ 29761: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 29761: val = val ^ 29761: static_cast(NPHash64(reinterpret_cast(&op_type), 29761: sizeof(op_type), ProtectionInfo::kSeedO)); 29761: return ProtectionInfoKVO(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKV ProtectionInfo::ProtectKV(const Slice& key, 29761: const Slice& value) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29761: val = 29761: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29761: return ProtectionInfoKV(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVO::UpdateK(const Slice& old_key, const Slice& new_key) { 29761: T val = GetVal(); 29761: val = val ^ 29761: static_cast(GetSliceNPHash64(old_key, ProtectionInfo::kSeedK)); 29761: val = val ^ 29761: static_cast(GetSliceNPHash64(new_key, ProtectionInfo::kSeedK)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVO::UpdateK(const SliceParts& old_key, 29761: const SliceParts& new_key) { 29761: T val = GetVal(); 29761: val = val ^ static_cast( 29761: GetSlicePartsNPHash64(old_key, ProtectionInfo::kSeedK)); 29761: val = val ^ static_cast( 29761: GetSlicePartsNPHash64(new_key, ProtectionInfo::kSeedK)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVO::UpdateV(const Slice& old_value, 29761: const Slice& new_value) { 29761: T val = GetVal(); 29761: val = val ^ 29761: static_cast(GetSliceNPHash64(old_value, ProtectionInfo::kSeedV)); 29761: val = val ^ 29761: static_cast(GetSliceNPHash64(new_value, ProtectionInfo::kSeedV)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVO::UpdateV(const SliceParts& old_value, 29761: const SliceParts& new_value) { 29761: T val = GetVal(); 29761: val = val ^ static_cast( 29761: GetSlicePartsNPHash64(old_value, ProtectionInfo::kSeedV)); 29761: val = val ^ static_cast( 29761: GetSlicePartsNPHash64(new_value, ProtectionInfo::kSeedV)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVO::UpdateO(ValueType old_op_type, 29761: ValueType new_op_type) { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64(reinterpret_cast(&old_op_type), 29761: sizeof(old_op_type), 29761: ProtectionInfo::kSeedO)); 29761: val = val ^ static_cast(NPHash64(reinterpret_cast(&new_op_type), 29761: sizeof(new_op_type), 29761: ProtectionInfo::kSeedO)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: ProtectionInfo ProtectionInfoKVO::StripKVO(const Slice& key, 29761: const Slice& value, 29761: ValueType op_type) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(GetSliceNPHash64(key, ProtectionInfo::kSeedK)); 29761: val = 29761: val ^ static_cast(GetSliceNPHash64(value, ProtectionInfo::kSeedV)); 29761: val = val ^ 29761: static_cast(NPHash64(reinterpret_cast(&op_type), 29761: sizeof(op_type), ProtectionInfo::kSeedO)); 29761: return ProtectionInfo(val); 29761: } 29761: 29761: template 29761: ProtectionInfo ProtectionInfoKVO::StripKVO(const SliceParts& key, 29761: const SliceParts& value, 29761: ValueType op_type) const { 29761: T val = GetVal(); 29761: val = val ^ 29761: static_cast(GetSlicePartsNPHash64(key, ProtectionInfo::kSeedK)); 29761: val = val ^ 29761: static_cast(GetSlicePartsNPHash64(value, ProtectionInfo::kSeedV)); 29761: val = val ^ 29761: static_cast(NPHash64(reinterpret_cast(&op_type), 29761: sizeof(op_type), ProtectionInfo::kSeedO)); 29761: return ProtectionInfo(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKVOC ProtectionInfoKVO::ProtectC( 29761: ColumnFamilyId column_family_id) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&column_family_id), 29761: sizeof(column_family_id), ProtectionInfo::kSeedC)); 29761: return ProtectionInfoKVOC(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKVO ProtectionInfoKVOC::StripC( 29761: ColumnFamilyId column_family_id) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&column_family_id), 29761: sizeof(column_family_id), ProtectionInfo::kSeedC)); 29761: return ProtectionInfoKVO(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVOC::UpdateC(ColumnFamilyId old_column_family_id, 29761: ColumnFamilyId new_column_family_id) { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&old_column_family_id), 29761: sizeof(old_column_family_id), ProtectionInfo::kSeedC)); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&new_column_family_id), 29761: sizeof(new_column_family_id), ProtectionInfo::kSeedC)); 29761: SetVal(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKVOS ProtectionInfoKVO::ProtectS( 29761: SequenceNumber sequence_number) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 29761: sizeof(sequence_number), 29761: ProtectionInfo::kSeedS)); 29761: return ProtectionInfoKVOS(val); 29761: } 29761: 29761: template 29761: ProtectionInfoKVO ProtectionInfoKVOS::StripS( 29761: SequenceNumber sequence_number) const { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64(reinterpret_cast(&sequence_number), 29761: sizeof(sequence_number), 29761: ProtectionInfo::kSeedS)); 29761: return ProtectionInfoKVO(val); 29761: } 29761: 29761: template 29761: void ProtectionInfoKVOS::UpdateS(SequenceNumber old_sequence_number, 29761: SequenceNumber new_sequence_number) { 29761: T val = GetVal(); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&old_sequence_number), 29761: sizeof(old_sequence_number), ProtectionInfo::kSeedS)); 29761: val = val ^ static_cast(NPHash64( 29761: reinterpret_cast(&new_sequence_number), 29761: sizeof(new_sequence_number), ProtectionInfo::kSeedS)); 29761: SetVal(val); 29761: } 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class IteratorBase : public Cleanable { 29761: public: 29761: IteratorBase() {} 29761: 29761: IteratorBase(const IteratorBase&) = delete; 29761: void operator=(const IteratorBase&) = delete; 29761: 29761: virtual ~IteratorBase() {} 29761: 29761: 29761: 29761: 29761: virtual bool Valid() const = 0; 29761: 29761: 29761: 29761: virtual void SeekToFirst() = 0; 29761: 29761: 29761: 29761: virtual void SeekToLast() = 0; 29761: # 43 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29761: virtual void Seek(const Slice& target) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void SeekForPrev(const Slice& target) = 0; 29761: 29761: 29761: 29761: 29761: virtual void Next() = 0; 29761: 29761: 29761: 29761: 29761: virtual void Prev() = 0; 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29761: virtual Status Refresh() { return Refresh(nullptr); } 29761: 29761: 29761: 29761: virtual Status Refresh(const class Snapshot*) { 29761: return Status::NotSupported("Refresh() is not supported"); 29761: } 29761: # 96 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator_base.h" 29761: virtual bool PrepareValue() { return true; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Slice key() const = 0; 29761: 29761: 29761: 29761: 29761: virtual Status status() const = 0; 29761: }; 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ostream" 1 3 29761: # 36 "/usr/include/c++/14/ostream" 3 29761: 29761: # 37 "/usr/include/c++/14/ostream" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ios" 1 3 29761: # 36 "/usr/include/c++/14/ios" 3 29761: 29761: # 37 "/usr/include/c++/14/ios" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/ios_base.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/ios_base.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/ios_base.h" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/locale_classes.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: 29761: # 47 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 66 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: class locale 29761: { 29761: public: 29761: 29761: 29761: typedef int category; 29761: 29761: 29761: class facet; 29761: class id; 29761: class _Impl; 29761: 29761: friend class facet; 29761: friend class _Impl; 29761: 29761: template 29761: friend bool 29761: has_facet(const locale&) throw(); 29761: 29761: template 29761: friend const _Facet& 29761: use_facet(const locale&); 29761: 29761: template 29761: friend const _Facet* 29761: __try_use_facet(const locale&) noexcept; 29761: 29761: template 29761: friend struct __use_cache; 29761: # 106 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: static const category none = 0; 29761: static const category ctype = 1L << 0; 29761: static const category numeric = 1L << 1; 29761: static const category collate = 1L << 2; 29761: static const category time = 1L << 3; 29761: static const category monetary = 1L << 4; 29761: static const category messages = 1L << 5; 29761: static const category all = (ctype | numeric | collate | 29761: time | monetary | messages); 29761: # 125 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: locale() throw(); 29761: # 134 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: locale(const locale& __other) throw(); 29761: # 144 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: explicit 29761: locale(const char* __s); 29761: # 159 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: locale(const locale& __base, const char* __s, category __cat); 29761: # 170 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: explicit 29761: locale(const std::string& __s) : locale(__s.c_str()) { } 29761: # 185 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: locale(const locale& __base, const std::string& __s, category __cat) 29761: : locale(__base, __s.c_str(), __cat) { } 29761: # 200 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: locale(const locale& __base, const locale& __add, category __cat); 29761: # 213 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: template 29761: locale(const locale& __other, _Facet* __f); 29761: 29761: 29761: ~locale() throw(); 29761: # 227 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: const locale& 29761: operator=(const locale& __other) throw(); 29761: # 242 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: template 29761: [[__nodiscard__]] 29761: locale 29761: combine(const locale& __other) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] __attribute ((__abi_tag__ ("cxx11"))) 29761: string 29761: name() const; 29761: # 273 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: [[__nodiscard__]] 29761: bool 29761: operator==(const locale& __other) const throw(); 29761: # 284 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: [[__nodiscard__]] 29761: bool 29761: operator!=(const locale& __other) const throw() 29761: { return !(this->operator==(__other)); } 29761: # 305 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: template 29761: [[__nodiscard__]] 29761: bool 29761: operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, 29761: const basic_string<_Char, _Traits, _Alloc>& __s2) const; 29761: # 322 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: static locale 29761: global(const locale& __loc); 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: static const locale& 29761: classic(); 29761: 29761: private: 29761: 29761: _Impl* _M_impl; 29761: 29761: 29761: static _Impl* _S_classic; 29761: 29761: 29761: static _Impl* _S_global; 29761: 29761: 29761: 29761: 29761: 29761: static const char* const* const _S_categories; 29761: # 358 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: enum { _S_categories_size = 6 + 6 }; 29761: 29761: 29761: static __gthread_once_t _S_once; 29761: 29761: 29761: explicit 29761: locale(_Impl*) throw(); 29761: 29761: static void 29761: _S_initialize(); 29761: 29761: static void 29761: _S_initialize_once() throw(); 29761: 29761: static category 29761: _S_normalize_category(category); 29761: 29761: void 29761: _M_coalesce(const locale& __base, const locale& __add, category __cat); 29761: 29761: 29761: static const id* const _S_twinned_facets[]; 29761: 29761: }; 29761: # 396 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: class locale::facet 29761: { 29761: private: 29761: friend class locale; 29761: friend class locale::_Impl; 29761: 29761: mutable _Atomic_word _M_refcount; 29761: 29761: 29761: static __c_locale _S_c_locale; 29761: 29761: 29761: static const char _S_c_name[2]; 29761: 29761: 29761: static __gthread_once_t _S_once; 29761: 29761: 29761: static void 29761: _S_initialize_once(); 29761: 29761: protected: 29761: # 427 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: explicit 29761: facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) 29761: { } 29761: 29761: 29761: virtual 29761: ~facet(); 29761: 29761: static void 29761: _S_create_c_locale(__c_locale& __cloc, const char* __s, 29761: __c_locale __old = 0); 29761: 29761: static __c_locale 29761: _S_clone_c_locale(__c_locale& __cloc) throw(); 29761: 29761: static void 29761: _S_destroy_c_locale(__c_locale& __cloc); 29761: 29761: static __c_locale 29761: _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); 29761: 29761: 29761: 29761: static __c_locale 29761: _S_get_c_locale(); 29761: 29761: __attribute__ ((__const__)) static const char* 29761: _S_get_c_name() throw(); 29761: # 463 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: facet(const facet&) = delete; 29761: 29761: facet& 29761: operator=(const facet&) = delete; 29761: 29761: 29761: private: 29761: void 29761: _M_add_reference() const throw() 29761: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29761: 29761: void 29761: _M_remove_reference() const throw() 29761: { 29761: 29761: ; 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 29761: { 29761: ; 29761: try 29761: { delete this; } 29761: catch(...) 29761: { } 29761: } 29761: } 29761: 29761: const facet* _M_sso_shim(const id*) const; 29761: const facet* _M_cow_shim(const id*) const; 29761: 29761: protected: 29761: class __shim; 29761: }; 29761: # 508 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: class locale::id 29761: { 29761: private: 29761: friend class locale; 29761: friend class locale::_Impl; 29761: 29761: template 29761: friend const _Facet& 29761: use_facet(const locale&); 29761: 29761: template 29761: friend bool 29761: has_facet(const locale&) throw(); 29761: 29761: template 29761: friend const _Facet* 29761: __try_use_facet(const locale&) noexcept; 29761: 29761: 29761: 29761: 29761: mutable size_t _M_index; 29761: 29761: 29761: static _Atomic_word _S_refcount; 29761: 29761: void 29761: operator=(const id&); 29761: 29761: id(const id&); 29761: 29761: public: 29761: 29761: 29761: 29761: id() { } 29761: 29761: size_t 29761: _M_id() const throw(); 29761: }; 29761: 29761: 29761: 29761: class locale::_Impl 29761: { 29761: public: 29761: 29761: friend class locale; 29761: friend class locale::facet; 29761: 29761: template 29761: friend bool 29761: has_facet(const locale&) throw(); 29761: 29761: template 29761: friend const _Facet& 29761: use_facet(const locale&); 29761: 29761: template 29761: friend const _Facet* 29761: __try_use_facet(const locale&) noexcept; 29761: 29761: template 29761: friend struct __use_cache; 29761: 29761: private: 29761: 29761: _Atomic_word _M_refcount; 29761: const facet** _M_facets; 29761: size_t _M_facets_size; 29761: const facet** _M_caches; 29761: char** _M_names; 29761: static const locale::id* const _S_id_ctype[]; 29761: static const locale::id* const _S_id_numeric[]; 29761: static const locale::id* const _S_id_collate[]; 29761: static const locale::id* const _S_id_time[]; 29761: static const locale::id* const _S_id_monetary[]; 29761: static const locale::id* const _S_id_messages[]; 29761: static const locale::id* const* const _S_facet_categories[]; 29761: 29761: void 29761: _M_add_reference() throw() 29761: { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29761: 29761: void 29761: _M_remove_reference() throw() 29761: { 29761: 29761: ; 29761: if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) 29761: { 29761: ; 29761: try 29761: { delete this; } 29761: catch(...) 29761: { } 29761: } 29761: } 29761: 29761: _Impl(const _Impl&, size_t); 29761: _Impl(const char*, size_t); 29761: _Impl(size_t) throw(); 29761: 29761: ~_Impl() throw(); 29761: 29761: _Impl(const _Impl&); 29761: 29761: void 29761: operator=(const _Impl&); 29761: 29761: bool 29761: _M_check_same_name() 29761: { 29761: bool __ret = true; 29761: if (_M_names[1]) 29761: 29761: for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) 29761: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; 29761: return __ret; 29761: } 29761: 29761: void 29761: _M_replace_categories(const _Impl*, category); 29761: 29761: void 29761: _M_replace_category(const _Impl*, const locale::id* const*); 29761: 29761: void 29761: _M_replace_facet(const _Impl*, const locale::id*); 29761: 29761: void 29761: _M_install_facet(const locale::id*, const facet*); 29761: 29761: template 29761: void 29761: _M_init_facet(_Facet* __facet) 29761: { _M_install_facet(&_Facet::id, __facet); } 29761: 29761: template 29761: void 29761: _M_init_facet_unchecked(_Facet* __facet) 29761: { 29761: __facet->_M_add_reference(); 29761: _M_facets[_Facet::id._M_id()] = __facet; 29761: } 29761: 29761: void 29761: _M_install_cache(const facet*, size_t); 29761: 29761: void _M_init_extra(facet**); 29761: void _M_init_extra(void*, void*, const char*, const char*); 29761: 29761: 29761: 29761: 29761: }; 29761: # 678 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: template 29761: class __cxx11:: collate : public locale::facet 29761: { 29761: public: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef basic_string<_CharT> string_type; 29761: 29761: 29761: protected: 29761: 29761: 29761: __c_locale _M_c_locale_collate; 29761: 29761: public: 29761: 29761: static locale::id id; 29761: # 705 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: explicit 29761: collate(size_t __refs = 0) 29761: : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) 29761: { } 29761: # 719 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: explicit 29761: collate(__c_locale __cloc, size_t __refs = 0) 29761: : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) 29761: { } 29761: # 736 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: int 29761: compare(const _CharT* __lo1, const _CharT* __hi1, 29761: const _CharT* __lo2, const _CharT* __hi2) const 29761: { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } 29761: # 755 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: string_type 29761: transform(const _CharT* __lo, const _CharT* __hi) const 29761: { return this->do_transform(__lo, __hi); } 29761: # 769 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: long 29761: hash(const _CharT* __lo, const _CharT* __hi) const 29761: { return this->do_hash(__lo, __hi); } 29761: 29761: 29761: int 29761: _M_compare(const _CharT*, const _CharT*) const throw(); 29761: 29761: size_t 29761: _M_transform(_CharT*, const _CharT*, size_t) const throw(); 29761: 29761: protected: 29761: 29761: virtual 29761: ~collate() 29761: { _S_destroy_c_locale(_M_c_locale_collate); } 29761: # 798 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: virtual int 29761: do_compare(const _CharT* __lo1, const _CharT* __hi1, 29761: const _CharT* __lo2, const _CharT* __hi2) const; 29761: # 812 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: virtual string_type 29761: do_transform(const _CharT* __lo, const _CharT* __hi) const; 29761: # 825 "/usr/include/c++/14/bits/locale_classes.h" 3 29761: virtual long 29761: do_hash(const _CharT* __lo, const _CharT* __hi) const; 29761: }; 29761: 29761: template 29761: locale::id collate<_CharT>::id; 29761: 29761: 29761: template<> 29761: int 29761: collate::_M_compare(const char*, const char*) const throw(); 29761: 29761: template<> 29761: size_t 29761: collate::_M_transform(char*, const char*, size_t) const throw(); 29761: 29761: 29761: template<> 29761: int 29761: collate::_M_compare(const wchar_t*, const wchar_t*) const throw(); 29761: 29761: template<> 29761: size_t 29761: collate::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); 29761: 29761: 29761: 29761: template 29761: class __cxx11:: collate_byname : public collate<_CharT> 29761: { 29761: public: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef basic_string<_CharT> string_type; 29761: 29761: 29761: explicit 29761: collate_byname(const char* __s, size_t __refs = 0) 29761: : collate<_CharT>(__refs) 29761: { 29761: if (__builtin_strcmp(__s, "C") != 0 29761: && __builtin_strcmp(__s, "POSIX") != 0) 29761: { 29761: this->_S_destroy_c_locale(this->_M_c_locale_collate); 29761: this->_S_create_c_locale(this->_M_c_locale_collate, __s); 29761: } 29761: } 29761: 29761: 29761: explicit 29761: collate_byname(const string& __s, size_t __refs = 0) 29761: : collate_byname(__s.c_str(), __refs) { } 29761: 29761: 29761: protected: 29761: virtual 29761: ~collate_byname() { } 29761: }; 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/locale_classes.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: locale:: 29761: locale(const locale& __other, _Facet* __f) 29761: { 29761: _M_impl = new _Impl(*__other._M_impl, 1); 29761: 29761: try 29761: { _M_impl->_M_install_facet(&_Facet::id, __f); } 29761: catch(...) 29761: { 29761: _M_impl->_M_remove_reference(); 29761: throw; 29761: } 29761: delete [] _M_impl->_M_names[0]; 29761: _M_impl->_M_names[0] = 0; 29761: } 29761: 29761: template 29761: locale 29761: locale:: 29761: combine(const locale& __other) const 29761: { 29761: _Impl* __tmp = new _Impl(*_M_impl, 1); 29761: try 29761: { 29761: __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); 29761: } 29761: catch(...) 29761: { 29761: __tmp->_M_remove_reference(); 29761: throw; 29761: } 29761: return locale(__tmp); 29761: } 29761: 29761: template 29761: bool 29761: locale:: 29761: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, 29761: const basic_string<_CharT, _Traits, _Alloc>& __s2) const 29761: { 29761: typedef std::collate<_CharT> __collate_type; 29761: const __collate_type& __collate = use_facet<__collate_type>(*this); 29761: return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), 29761: __s2.data(), __s2.data() + __s2.length()) < 0); 29761: } 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++17-extensions" 29761: template 29761: inline const _Facet* 29761: __try_use_facet(const locale& __loc) noexcept 29761: { 29761: const size_t __i = _Facet::id._M_id(); 29761: const locale::facet** __facets = __loc._M_impl->_M_facets; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 29761: 29761: 29761: if constexpr (__is_same(_Facet, ctype)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, num_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, num_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, collate)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, moneypunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, money_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, money_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, numpunct)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, time_get)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, time_put)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, messages)) return static_cast(__facets[__i]); 29761: 29761: 29761: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29761: if constexpr (__is_same(_Facet, codecvt)) return static_cast(__facets[__i]); 29761: 29761: 29761: 29761: 29761: if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) 29761: return 0; 29761: 29761: 29761: return dynamic_cast(__facets[__i]); 29761: 29761: 29761: 29761: } 29761: #pragma GCC diagnostic pop 29761: # 164 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: has_facet(const locale& __loc) throw() 29761: { 29761: 29761: static_assert(__is_base_of(locale::facet, _Facet), 29761: "template argument must be derived from locale::facet"); 29761: 29761: 29761: 29761: return std::__try_use_facet<_Facet>(__loc) != 0; 29761: } 29761: # 192 "/usr/include/c++/14/bits/locale_classes.tcc" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdangling-reference" 29761: template 29761: [[__nodiscard__]] 29761: inline const _Facet& 29761: use_facet(const locale& __loc) 29761: { 29761: 29761: static_assert(__is_base_of(locale::facet, _Facet), 29761: "template argument must be derived from locale::facet"); 29761: 29761: 29761: 29761: if (const _Facet* __f = std::__try_use_facet<_Facet>(__loc)) 29761: return *__f; 29761: __throw_bad_cast(); 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: template 29761: int 29761: collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () 29761: { return 0; } 29761: 29761: 29761: template 29761: size_t 29761: collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () 29761: { return 0; } 29761: 29761: template 29761: int 29761: collate<_CharT>:: 29761: do_compare(const _CharT* __lo1, const _CharT* __hi1, 29761: const _CharT* __lo2, const _CharT* __hi2) const 29761: { 29761: 29761: 29761: const string_type __one(__lo1, __hi1); 29761: const string_type __two(__lo2, __hi2); 29761: 29761: const _CharT* __p = __one.c_str(); 29761: const _CharT* __pend = __one.data() + __one.length(); 29761: const _CharT* __q = __two.c_str(); 29761: const _CharT* __qend = __two.data() + __two.length(); 29761: 29761: 29761: 29761: 29761: for (;;) 29761: { 29761: const int __res = _M_compare(__p, __q); 29761: if (__res) 29761: return __res; 29761: 29761: __p += char_traits<_CharT>::length(__p); 29761: __q += char_traits<_CharT>::length(__q); 29761: if (__p == __pend && __q == __qend) 29761: return 0; 29761: else if (__p == __pend) 29761: return -1; 29761: else if (__q == __qend) 29761: return 1; 29761: 29761: __p++; 29761: __q++; 29761: } 29761: } 29761: 29761: template 29761: typename collate<_CharT>::string_type 29761: collate<_CharT>:: 29761: do_transform(const _CharT* __lo, const _CharT* __hi) const 29761: { 29761: string_type __ret; 29761: 29761: 29761: const string_type __str(__lo, __hi); 29761: 29761: const _CharT* __p = __str.c_str(); 29761: const _CharT* __pend = __str.data() + __str.length(); 29761: 29761: size_t __len = (__hi - __lo) * 2; 29761: 29761: _CharT* __c = new _CharT[__len]; 29761: 29761: try 29761: { 29761: 29761: 29761: 29761: for (;;) 29761: { 29761: 29761: size_t __res = _M_transform(__c, __p, __len); 29761: 29761: 29761: if (__res >= __len) 29761: { 29761: __len = __res + 1; 29761: delete [] __c, __c = 0; 29761: __c = new _CharT[__len]; 29761: __res = _M_transform(__c, __p, __len); 29761: } 29761: 29761: __ret.append(__c, __res); 29761: __p += char_traits<_CharT>::length(__p); 29761: if (__p == __pend) 29761: break; 29761: 29761: __p++; 29761: __ret.push_back(_CharT()); 29761: } 29761: } 29761: catch(...) 29761: { 29761: delete [] __c; 29761: throw; 29761: } 29761: 29761: delete [] __c; 29761: 29761: return __ret; 29761: } 29761: 29761: template 29761: long 29761: collate<_CharT>:: 29761: do_hash(const _CharT* __lo, const _CharT* __hi) const 29761: { 29761: unsigned long __val = 0; 29761: for (; __lo < __hi; ++__lo) 29761: __val = 29761: *__lo + ((__val << 7) 29761: | (__val >> (__gnu_cxx::__numeric_traits:: 29761: __digits - 7))); 29761: return static_cast(__val); 29761: } 29761: 29761: 29761: 29761: 29761: extern template class collate; 29761: extern template class collate_byname; 29761: 29761: extern template 29761: const collate* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const collate& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: extern template class collate; 29761: extern template class collate_byname; 29761: 29761: extern template 29761: const collate* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const collate& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: 29761: 29761: } 29761: # 889 "/usr/include/c++/14/bits/locale_classes.h" 2 3 29761: # 42 "/usr/include/c++/14/bits/ios_base.h" 2 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/system_error" 1 3 29761: # 32 "/usr/include/c++/14/system_error" 3 29761: 29761: # 33 "/usr/include/c++/14/system_error" 3 29761: # 43 "/usr/include/c++/14/system_error" 3 29761: # 1 "/usr/include/c++/14/stdexcept" 1 3 29761: # 36 "/usr/include/c++/14/stdexcept" 3 29761: 29761: # 37 "/usr/include/c++/14/stdexcept" 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: struct __cow_string 29761: { 29761: union { 29761: const char* _M_p; 29761: char _M_bytes[sizeof(const char*)]; 29761: }; 29761: 29761: __cow_string(); 29761: __cow_string(const std::string&); 29761: __cow_string(const char*, size_t); 29761: __cow_string(const __cow_string&) noexcept; 29761: __cow_string& operator=(const __cow_string&) noexcept; 29761: ~__cow_string(); 29761: 29761: __cow_string(__cow_string&&) noexcept; 29761: __cow_string& operator=(__cow_string&&) noexcept; 29761: 29761: }; 29761: 29761: typedef basic_string __sso_string; 29761: # 113 "/usr/include/c++/14/stdexcept" 3 29761: class logic_error : public exception 29761: { 29761: __cow_string _M_msg; 29761: 29761: public: 29761: 29761: explicit 29761: logic_error(const string& __arg) ; 29761: 29761: 29761: explicit 29761: logic_error(const char*) ; 29761: 29761: logic_error(logic_error&&) noexcept; 29761: logic_error& operator=(logic_error&&) noexcept; 29761: 29761: 29761: 29761: logic_error(const logic_error&) noexcept; 29761: logic_error& operator=(const logic_error&) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: virtual ~logic_error() noexcept; 29761: 29761: 29761: 29761: virtual const char* 29761: what() const noexcept; 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: class domain_error : public logic_error 29761: { 29761: public: 29761: explicit domain_error(const string& __arg) ; 29761: 29761: explicit domain_error(const char*) ; 29761: domain_error(const domain_error&) = default; 29761: domain_error& operator=(const domain_error&) = default; 29761: domain_error(domain_error&&) = default; 29761: domain_error& operator=(domain_error&&) = default; 29761: 29761: virtual ~domain_error() noexcept; 29761: }; 29761: 29761: 29761: class invalid_argument : public logic_error 29761: { 29761: public: 29761: explicit invalid_argument(const string& __arg) ; 29761: 29761: explicit invalid_argument(const char*) ; 29761: invalid_argument(const invalid_argument&) = default; 29761: invalid_argument& operator=(const invalid_argument&) = default; 29761: invalid_argument(invalid_argument&&) = default; 29761: invalid_argument& operator=(invalid_argument&&) = default; 29761: 29761: virtual ~invalid_argument() noexcept; 29761: }; 29761: 29761: 29761: 29761: class length_error : public logic_error 29761: { 29761: public: 29761: explicit length_error(const string& __arg) ; 29761: 29761: explicit length_error(const char*) ; 29761: length_error(const length_error&) = default; 29761: length_error& operator=(const length_error&) = default; 29761: length_error(length_error&&) = default; 29761: length_error& operator=(length_error&&) = default; 29761: 29761: virtual ~length_error() noexcept; 29761: }; 29761: 29761: 29761: 29761: class out_of_range : public logic_error 29761: { 29761: public: 29761: explicit out_of_range(const string& __arg) ; 29761: 29761: explicit out_of_range(const char*) ; 29761: out_of_range(const out_of_range&) = default; 29761: out_of_range& operator=(const out_of_range&) = default; 29761: out_of_range(out_of_range&&) = default; 29761: out_of_range& operator=(out_of_range&&) = default; 29761: 29761: virtual ~out_of_range() noexcept; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class runtime_error : public exception 29761: { 29761: __cow_string _M_msg; 29761: 29761: public: 29761: 29761: explicit 29761: runtime_error(const string& __arg) ; 29761: 29761: 29761: explicit 29761: runtime_error(const char*) ; 29761: 29761: runtime_error(runtime_error&&) noexcept; 29761: runtime_error& operator=(runtime_error&&) noexcept; 29761: 29761: 29761: 29761: runtime_error(const runtime_error&) noexcept; 29761: runtime_error& operator=(const runtime_error&) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: virtual ~runtime_error() noexcept; 29761: 29761: 29761: 29761: virtual const char* 29761: what() const noexcept; 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: class range_error : public runtime_error 29761: { 29761: public: 29761: explicit range_error(const string& __arg) ; 29761: 29761: explicit range_error(const char*) ; 29761: range_error(const range_error&) = default; 29761: range_error& operator=(const range_error&) = default; 29761: range_error(range_error&&) = default; 29761: range_error& operator=(range_error&&) = default; 29761: 29761: virtual ~range_error() noexcept; 29761: }; 29761: 29761: 29761: class overflow_error : public runtime_error 29761: { 29761: public: 29761: explicit overflow_error(const string& __arg) ; 29761: 29761: explicit overflow_error(const char*) ; 29761: overflow_error(const overflow_error&) = default; 29761: overflow_error& operator=(const overflow_error&) = default; 29761: overflow_error(overflow_error&&) = default; 29761: overflow_error& operator=(overflow_error&&) = default; 29761: 29761: virtual ~overflow_error() noexcept; 29761: }; 29761: 29761: 29761: class underflow_error : public runtime_error 29761: { 29761: public: 29761: explicit underflow_error(const string& __arg) ; 29761: 29761: explicit underflow_error(const char*) ; 29761: underflow_error(const underflow_error&) = default; 29761: underflow_error& operator=(const underflow_error&) = default; 29761: underflow_error(underflow_error&&) = default; 29761: underflow_error& operator=(underflow_error&&) = default; 29761: 29761: virtual ~underflow_error() noexcept; 29761: }; 29761: 29761: 29761: 29761: 29761: } 29761: # 44 "/usr/include/c++/14/system_error" 2 3 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class error_code; 29761: class error_condition; 29761: class system_error; 29761: 29761: 29761: template 29761: struct is_error_code_enum : public false_type { }; 29761: 29761: 29761: template 29761: struct is_error_condition_enum : public false_type { }; 29761: 29761: template<> 29761: struct is_error_condition_enum 29761: : public true_type { }; 29761: 29761: 29761: template 29761: inline constexpr bool is_error_code_enum_v = 29761: is_error_code_enum<_Tp>::value; 29761: template 29761: inline constexpr bool is_error_condition_enum_v = 29761: is_error_condition_enum<_Tp>::value; 29761: 29761: 29761: 29761: inline namespace _V2 { 29761: # 106 "/usr/include/c++/14/system_error" 3 29761: class error_category 29761: { 29761: public: 29761: constexpr error_category() noexcept = default; 29761: 29761: virtual ~error_category(); 29761: 29761: error_category(const error_category&) = delete; 29761: error_category& operator=(const error_category&) = delete; 29761: 29761: 29761: virtual const char* 29761: name() const noexcept = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: private: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: virtual __cow_string 29761: _M_message(int) const; 29761: 29761: public: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: virtual string 29761: message(int) const = 0; 29761: # 144 "/usr/include/c++/14/system_error" 3 29761: public: 29761: 29761: virtual error_condition 29761: default_error_condition(int __i) const noexcept; 29761: 29761: 29761: virtual bool 29761: equivalent(int __i, const error_condition& __cond) const noexcept; 29761: 29761: 29761: virtual bool 29761: equivalent(const error_code& __code, int __i) const noexcept; 29761: 29761: 29761: [[__nodiscard__]] 29761: bool 29761: operator==(const error_category& __other) const noexcept 29761: { return this == &__other; } 29761: # 170 "/usr/include/c++/14/system_error" 3 29761: bool 29761: operator<(const error_category& __other) const noexcept 29761: { return less()(this, &__other); } 29761: 29761: bool 29761: operator!=(const error_category& __other) const noexcept 29761: { return this != &__other; } 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: [[__nodiscard__, __gnu__::__const__]] 29761: const error_category& 29761: generic_category() noexcept; 29761: 29761: 29761: [[__nodiscard__, __gnu__::__const__]] 29761: const error_category& 29761: system_category() noexcept; 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: namespace __adl_only 29761: { 29761: void make_error_code() = delete; 29761: void make_error_condition() = delete; 29761: } 29761: # 223 "/usr/include/c++/14/system_error" 3 29761: class error_code 29761: { 29761: template 29761: using _Check 29761: = __enable_if_t::value>; 29761: 29761: public: 29761: error_code() noexcept 29761: : _M_value(0), _M_cat(&system_category()) { } 29761: 29761: error_code(int __v, const error_category& __cat) noexcept 29761: : _M_value(__v), _M_cat(&__cat) { } 29761: 29761: 29761: template> 29761: error_code(_ErrorCodeEnum __e) noexcept 29761: { 29761: using __adl_only::make_error_code; 29761: *this = make_error_code(__e); 29761: } 29761: 29761: error_code(const error_code&) = default; 29761: error_code& operator=(const error_code&) = default; 29761: 29761: void 29761: assign(int __v, const error_category& __cat) noexcept 29761: { 29761: _M_value = __v; 29761: _M_cat = &__cat; 29761: } 29761: 29761: void 29761: clear() noexcept 29761: { assign(0, system_category()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: int 29761: value() const noexcept { return _M_value; } 29761: 29761: 29761: [[__nodiscard__]] 29761: const error_category& 29761: category() const noexcept { return *_M_cat; } 29761: 29761: 29761: error_condition 29761: default_error_condition() const noexcept; 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: string 29761: message() const 29761: { return category().message(value()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: explicit operator bool() const noexcept 29761: { return _M_value != 0; } 29761: 29761: 29761: private: 29761: int _M_value; 29761: const error_category* _M_cat; 29761: }; 29761: # 300 "/usr/include/c++/14/system_error" 3 29761: [[__nodiscard__]] 29761: inline error_code 29761: make_error_code(errc __e) noexcept 29761: { return error_code(static_cast(__e), generic_category()); } 29761: # 323 "/usr/include/c++/14/system_error" 3 29761: inline bool 29761: operator<(const error_code& __lhs, const error_code& __rhs) noexcept 29761: { 29761: return (__lhs.category() < __rhs.category() 29761: || (__lhs.category() == __rhs.category() 29761: && __lhs.value() < __rhs.value())); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) 29761: { return (__os << __e.category().name() << ':' << __e.value()); } 29761: # 354 "/usr/include/c++/14/system_error" 3 29761: class error_condition 29761: { 29761: template 29761: using _Check 29761: = __enable_if_t::value>; 29761: 29761: public: 29761: 29761: error_condition() noexcept 29761: : _M_value(0), _M_cat(&generic_category()) { } 29761: 29761: 29761: error_condition(int __v, const error_category& __cat) noexcept 29761: : _M_value(__v), _M_cat(&__cat) { } 29761: 29761: 29761: template> 29761: error_condition(_ErrorConditionEnum __e) noexcept 29761: { 29761: using __adl_only::make_error_condition; 29761: *this = make_error_condition(__e); 29761: } 29761: 29761: error_condition(const error_condition&) = default; 29761: error_condition& operator=(const error_condition&) = default; 29761: 29761: 29761: void 29761: assign(int __v, const error_category& __cat) noexcept 29761: { 29761: _M_value = __v; 29761: _M_cat = &__cat; 29761: } 29761: 29761: 29761: void 29761: clear() noexcept 29761: { assign(0, generic_category()); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: int 29761: value() const noexcept { return _M_value; } 29761: 29761: 29761: [[__nodiscard__]] 29761: const error_category& 29761: category() const noexcept { return *_M_cat; } 29761: 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: string 29761: message() const 29761: { return category().message(value()); } 29761: 29761: 29761: [[__nodiscard__]] 29761: explicit operator bool() const noexcept 29761: { return _M_value != 0; } 29761: 29761: 29761: private: 29761: int _M_value; 29761: const error_category* _M_cat; 29761: }; 29761: # 433 "/usr/include/c++/14/system_error" 3 29761: [[__nodiscard__]] 29761: inline error_condition 29761: make_error_condition(errc __e) noexcept 29761: { return error_condition(static_cast(__e), generic_category()); } 29761: # 447 "/usr/include/c++/14/system_error" 3 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const error_code& __lhs, const error_code& __rhs) noexcept 29761: { 29761: return __lhs.category() == __rhs.category() 29761: && __lhs.value() == __rhs.value(); 29761: } 29761: # 463 "/usr/include/c++/14/system_error" 3 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const error_code& __lhs, const error_condition& __rhs) noexcept 29761: { 29761: return __lhs.category().equivalent(__lhs.value(), __rhs) 29761: || __rhs.category().equivalent(__lhs, __rhs.value()); 29761: } 29761: # 478 "/usr/include/c++/14/system_error" 3 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const error_condition& __lhs, 29761: const error_condition& __rhs) noexcept 29761: { 29761: return __lhs.category() == __rhs.category() 29761: && __lhs.value() == __rhs.value(); 29761: } 29761: # 506 "/usr/include/c++/14/system_error" 3 29761: inline bool 29761: operator<(const error_condition& __lhs, 29761: const error_condition& __rhs) noexcept 29761: { 29761: return (__lhs.category() < __rhs.category() 29761: || (__lhs.category() == __rhs.category() 29761: && __lhs.value() < __rhs.value())); 29761: } 29761: 29761: 29761: inline bool 29761: operator==(const error_condition& __lhs, const error_code& __rhs) noexcept 29761: { 29761: return (__rhs.category().equivalent(__rhs.value(), __lhs) 29761: || __lhs.category().equivalent(__rhs, __lhs.value())); 29761: } 29761: 29761: 29761: inline bool 29761: operator!=(const error_code& __lhs, const error_code& __rhs) noexcept 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: inline bool 29761: operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: inline bool 29761: operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept 29761: { return !(__lhs == __rhs); } 29761: 29761: 29761: inline bool 29761: operator!=(const error_condition& __lhs, 29761: const error_condition& __rhs) noexcept 29761: { return !(__lhs == __rhs); } 29761: # 556 "/usr/include/c++/14/system_error" 3 29761: class system_error : public std::runtime_error 29761: { 29761: private: 29761: error_code _M_code; 29761: 29761: public: 29761: system_error(error_code __ec = error_code()) 29761: : runtime_error(__ec.message()), _M_code(__ec) { } 29761: 29761: system_error(error_code __ec, const string& __what) 29761: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 29761: 29761: system_error(error_code __ec, const char* __what) 29761: : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } 29761: 29761: system_error(int __v, const error_category& __ecat, const char* __what) 29761: : system_error(error_code(__v, __ecat), __what) { } 29761: 29761: system_error(int __v, const error_category& __ecat) 29761: : runtime_error(error_code(__v, __ecat).message()), 29761: _M_code(__v, __ecat) { } 29761: 29761: system_error(int __v, const error_category& __ecat, const string& __what) 29761: : runtime_error(__what + (": " + error_code(__v, __ecat).message())), 29761: _M_code(__v, __ecat) { } 29761: 29761: 29761: system_error (const system_error &) = default; 29761: system_error &operator= (const system_error &) = default; 29761: 29761: 29761: virtual ~system_error() noexcept; 29761: 29761: const error_code& 29761: code() const noexcept { return _M_code; } 29761: }; 29761: 29761: 29761: } 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: size_t 29761: operator()(const error_code& __e) const noexcept 29761: { 29761: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 29761: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: struct hash 29761: : public __hash_base 29761: { 29761: size_t 29761: operator()(const error_condition& __e) const noexcept 29761: { 29761: const size_t __tmp = std::_Hash_impl::hash(__e.value()); 29761: return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); 29761: } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 47 "/usr/include/c++/14/bits/ios_base.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum _Ios_Fmtflags 29761: { 29761: _S_boolalpha = 1L << 0, 29761: _S_dec = 1L << 1, 29761: _S_fixed = 1L << 2, 29761: _S_hex = 1L << 3, 29761: _S_internal = 1L << 4, 29761: _S_left = 1L << 5, 29761: _S_oct = 1L << 6, 29761: _S_right = 1L << 7, 29761: _S_scientific = 1L << 8, 29761: _S_showbase = 1L << 9, 29761: _S_showpoint = 1L << 10, 29761: _S_showpos = 1L << 11, 29761: _S_skipws = 1L << 12, 29761: _S_unitbuf = 1L << 13, 29761: _S_uppercase = 1L << 14, 29761: _S_adjustfield = _S_left | _S_right | _S_internal, 29761: _S_basefield = _S_dec | _S_oct | _S_hex, 29761: _S_floatfield = _S_scientific | _S_fixed, 29761: _S_ios_fmtflags_end = 1L << 16, 29761: _S_ios_fmtflags_max = 0x7fffffff, 29761: _S_ios_fmtflags_min = ~0x7fffffff 29761: }; 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Fmtflags 29761: operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29761: { return _Ios_Fmtflags(static_cast(__a) & static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Fmtflags 29761: operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29761: { return _Ios_Fmtflags(static_cast(__a) | static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Fmtflags 29761: operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) noexcept 29761: { return _Ios_Fmtflags(static_cast(__a) ^ static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Fmtflags 29761: operator~(_Ios_Fmtflags __a) noexcept 29761: { return _Ios_Fmtflags(~static_cast(__a)); } 29761: 29761: constexpr 29761: inline const _Ios_Fmtflags& 29761: operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29761: { return __a = __a | __b; } 29761: 29761: constexpr 29761: inline const _Ios_Fmtflags& 29761: operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29761: { return __a = __a & __b; } 29761: 29761: constexpr 29761: inline const _Ios_Fmtflags& 29761: operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) noexcept 29761: { return __a = __a ^ __b; } 29761: 29761: 29761: enum _Ios_Openmode 29761: { 29761: _S_app = 1L << 0, 29761: _S_ate = 1L << 1, 29761: _S_bin = 1L << 2, 29761: _S_in = 1L << 3, 29761: _S_out = 1L << 4, 29761: _S_trunc = 1L << 5, 29761: _S_noreplace = 1L << 6, 29761: _S_ios_openmode_end = 1L << 16, 29761: _S_ios_openmode_max = 0x7fffffff, 29761: _S_ios_openmode_min = ~0x7fffffff 29761: }; 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Openmode 29761: operator&(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29761: { return _Ios_Openmode(static_cast(__a) & static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Openmode 29761: operator|(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29761: { return _Ios_Openmode(static_cast(__a) | static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Openmode 29761: operator^(_Ios_Openmode __a, _Ios_Openmode __b) noexcept 29761: { return _Ios_Openmode(static_cast(__a) ^ static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Openmode 29761: operator~(_Ios_Openmode __a) noexcept 29761: { return _Ios_Openmode(~static_cast(__a)); } 29761: 29761: constexpr 29761: inline const _Ios_Openmode& 29761: operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29761: { return __a = __a | __b; } 29761: 29761: constexpr 29761: inline const _Ios_Openmode& 29761: operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29761: { return __a = __a & __b; } 29761: 29761: constexpr 29761: inline const _Ios_Openmode& 29761: operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) noexcept 29761: { return __a = __a ^ __b; } 29761: 29761: 29761: enum _Ios_Iostate 29761: { 29761: _S_goodbit = 0, 29761: _S_badbit = 1L << 0, 29761: _S_eofbit = 1L << 1, 29761: _S_failbit = 1L << 2, 29761: _S_ios_iostate_end = 1L << 16, 29761: _S_ios_iostate_max = 0x7fffffff, 29761: _S_ios_iostate_min = ~0x7fffffff 29761: }; 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Iostate 29761: operator&(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29761: { return _Ios_Iostate(static_cast(__a) & static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Iostate 29761: operator|(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29761: { return _Ios_Iostate(static_cast(__a) | static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Iostate 29761: operator^(_Ios_Iostate __a, _Ios_Iostate __b) noexcept 29761: { return _Ios_Iostate(static_cast(__a) ^ static_cast(__b)); } 29761: 29761: [[__nodiscard__]] constexpr 29761: inline _Ios_Iostate 29761: operator~(_Ios_Iostate __a) noexcept 29761: { return _Ios_Iostate(~static_cast(__a)); } 29761: 29761: constexpr 29761: inline const _Ios_Iostate& 29761: operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29761: { return __a = __a | __b; } 29761: 29761: constexpr 29761: inline const _Ios_Iostate& 29761: operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29761: { return __a = __a & __b; } 29761: 29761: constexpr 29761: inline const _Ios_Iostate& 29761: operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) noexcept 29761: { return __a = __a ^ __b; } 29761: 29761: 29761: enum _Ios_Seekdir 29761: { 29761: _S_beg = 0, 29761: _S_cur = 1, 29761: _S_end = 2, 29761: _S_ios_seekdir_end = 1L << 16 29761: }; 29761: 29761: 29761: 29761: enum class io_errc { stream = 1 }; 29761: 29761: template <> struct is_error_code_enum : public true_type { }; 29761: 29761: [[__nodiscard__, __gnu__::__const__]] 29761: const error_category& 29761: iostream_category() noexcept; 29761: 29761: [[__nodiscard__]] 29761: inline error_code 29761: make_error_code(io_errc __e) noexcept 29761: { return error_code(static_cast(__e), iostream_category()); } 29761: 29761: [[__nodiscard__]] 29761: inline error_condition 29761: make_error_condition(io_errc __e) noexcept 29761: { return error_condition(static_cast(__e), iostream_category()); } 29761: # 254 "/usr/include/c++/14/bits/ios_base.h" 3 29761: class ios_base 29761: { 29761: # 272 "/usr/include/c++/14/bits/ios_base.h" 3 29761: public: 29761: # 281 "/usr/include/c++/14/bits/ios_base.h" 3 29761: class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error 29761: { 29761: public: 29761: explicit 29761: failure(const string& __str); 29761: 29761: 29761: explicit 29761: failure(const string&, const error_code&); 29761: 29761: explicit 29761: failure(const char*, const error_code& = io_errc::stream); 29761: 29761: 29761: virtual 29761: ~failure() throw(); 29761: 29761: virtual const char* 29761: what() const throw(); 29761: }; 29761: # 367 "/usr/include/c++/14/bits/ios_base.h" 3 29761: typedef _Ios_Fmtflags fmtflags; 29761: 29761: 29761: static const fmtflags boolalpha = _S_boolalpha; 29761: 29761: 29761: static const fmtflags dec = _S_dec; 29761: 29761: 29761: static const fmtflags fixed = _S_fixed; 29761: 29761: 29761: static const fmtflags hex = _S_hex; 29761: 29761: 29761: 29761: 29761: static const fmtflags internal = _S_internal; 29761: 29761: 29761: 29761: static const fmtflags left = _S_left; 29761: 29761: 29761: static const fmtflags oct = _S_oct; 29761: 29761: 29761: 29761: static const fmtflags right = _S_right; 29761: 29761: 29761: static const fmtflags scientific = _S_scientific; 29761: 29761: 29761: 29761: static const fmtflags showbase = _S_showbase; 29761: 29761: 29761: 29761: static const fmtflags showpoint = _S_showpoint; 29761: 29761: 29761: static const fmtflags showpos = _S_showpos; 29761: 29761: 29761: static const fmtflags skipws = _S_skipws; 29761: 29761: 29761: static const fmtflags unitbuf = _S_unitbuf; 29761: 29761: 29761: 29761: static const fmtflags uppercase = _S_uppercase; 29761: 29761: 29761: static const fmtflags adjustfield = _S_adjustfield; 29761: 29761: 29761: static const fmtflags basefield = _S_basefield; 29761: 29761: 29761: static const fmtflags floatfield = _S_floatfield; 29761: # 442 "/usr/include/c++/14/bits/ios_base.h" 3 29761: typedef _Ios_Iostate iostate; 29761: 29761: 29761: 29761: static const iostate badbit = _S_badbit; 29761: 29761: 29761: static const iostate eofbit = _S_eofbit; 29761: 29761: 29761: 29761: 29761: static const iostate failbit = _S_failbit; 29761: 29761: 29761: static const iostate goodbit = _S_goodbit; 29761: # 473 "/usr/include/c++/14/bits/ios_base.h" 3 29761: typedef _Ios_Openmode openmode; 29761: 29761: 29761: static const openmode app = _S_app; 29761: 29761: 29761: static const openmode ate = _S_ate; 29761: 29761: 29761: 29761: 29761: static const openmode binary = _S_bin; 29761: 29761: 29761: static const openmode in = _S_in; 29761: 29761: 29761: static const openmode out = _S_out; 29761: 29761: 29761: static const openmode trunc = _S_trunc; 29761: 29761: static const openmode __noreplace = _S_noreplace; 29761: # 512 "/usr/include/c++/14/bits/ios_base.h" 3 29761: typedef _Ios_Seekdir seekdir; 29761: 29761: 29761: static const seekdir beg = _S_beg; 29761: 29761: 29761: static const seekdir cur = _S_cur; 29761: 29761: 29761: static const seekdir end = _S_end; 29761: # 545 "/usr/include/c++/14/bits/ios_base.h" 3 29761: enum event 29761: { 29761: erase_event, 29761: imbue_event, 29761: copyfmt_event 29761: }; 29761: # 562 "/usr/include/c++/14/bits/ios_base.h" 3 29761: typedef void (*event_callback) (event __e, ios_base& __b, int __i); 29761: # 574 "/usr/include/c++/14/bits/ios_base.h" 3 29761: void 29761: register_callback(event_callback __fn, int __index); 29761: 29761: protected: 29761: streamsize _M_precision; 29761: streamsize _M_width; 29761: fmtflags _M_flags; 29761: iostate _M_exception; 29761: iostate _M_streambuf_state; 29761: 29761: 29761: 29761: struct _Callback_list 29761: { 29761: 29761: _Callback_list* _M_next; 29761: ios_base::event_callback _M_fn; 29761: int _M_index; 29761: _Atomic_word _M_refcount; 29761: 29761: _Callback_list(ios_base::event_callback __fn, int __index, 29761: _Callback_list* __cb) 29761: : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } 29761: 29761: void 29761: _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } 29761: 29761: 29761: int 29761: _M_remove_reference() 29761: { 29761: 29761: ; 29761: int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); 29761: if (__res == 0) 29761: { 29761: ; 29761: } 29761: return __res; 29761: } 29761: }; 29761: 29761: _Callback_list* _M_callbacks; 29761: 29761: void 29761: _M_call_callbacks(event __ev) throw(); 29761: 29761: void 29761: _M_dispose_callbacks(void) throw(); 29761: 29761: 29761: struct _Words 29761: { 29761: void* _M_pword; 29761: long _M_iword; 29761: _Words() : _M_pword(0), _M_iword(0) { } 29761: }; 29761: 29761: 29761: _Words _M_word_zero; 29761: 29761: 29761: 29761: enum { _S_local_word_size = 8 }; 29761: _Words _M_local_word[_S_local_word_size]; 29761: 29761: 29761: int _M_word_size; 29761: _Words* _M_word; 29761: 29761: _Words& 29761: _M_grow_words(int __index, bool __iword); 29761: 29761: 29761: locale _M_ios_locale; 29761: 29761: void 29761: _M_init() throw(); 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: class Init 29761: { 29761: friend class ios_base; 29761: public: 29761: Init(); 29761: ~Init(); 29761: 29761: 29761: Init(const Init&) = default; 29761: Init& operator=(const Init&) = default; 29761: 29761: 29761: private: 29761: static _Atomic_word _S_refcount; 29761: static bool _S_synced_with_stdio; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: fmtflags 29761: flags() const 29761: { return _M_flags; } 29761: # 692 "/usr/include/c++/14/bits/ios_base.h" 3 29761: fmtflags 29761: flags(fmtflags __fmtfl) 29761: { 29761: fmtflags __old = _M_flags; 29761: _M_flags = __fmtfl; 29761: return __old; 29761: } 29761: # 708 "/usr/include/c++/14/bits/ios_base.h" 3 29761: fmtflags 29761: setf(fmtflags __fmtfl) 29761: { 29761: fmtflags __old = _M_flags; 29761: _M_flags |= __fmtfl; 29761: return __old; 29761: } 29761: # 725 "/usr/include/c++/14/bits/ios_base.h" 3 29761: fmtflags 29761: setf(fmtflags __fmtfl, fmtflags __mask) 29761: { 29761: fmtflags __old = _M_flags; 29761: _M_flags &= ~__mask; 29761: _M_flags |= (__fmtfl & __mask); 29761: return __old; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: unsetf(fmtflags __mask) 29761: { _M_flags &= ~__mask; } 29761: # 751 "/usr/include/c++/14/bits/ios_base.h" 3 29761: streamsize 29761: precision() const 29761: { return _M_precision; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: streamsize 29761: precision(streamsize __prec) 29761: { 29761: streamsize __old = _M_precision; 29761: _M_precision = __prec; 29761: return __old; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: streamsize 29761: width() const 29761: { return _M_width; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: streamsize 29761: width(streamsize __wide) 29761: { 29761: streamsize __old = _M_width; 29761: _M_width = __wide; 29761: return __old; 29761: } 29761: # 802 "/usr/include/c++/14/bits/ios_base.h" 3 29761: static bool 29761: sync_with_stdio(bool __sync = true); 29761: # 814 "/usr/include/c++/14/bits/ios_base.h" 3 29761: locale 29761: imbue(const locale& __loc) throw(); 29761: # 825 "/usr/include/c++/14/bits/ios_base.h" 3 29761: locale 29761: getloc() const 29761: { return _M_ios_locale; } 29761: # 836 "/usr/include/c++/14/bits/ios_base.h" 3 29761: const locale& 29761: _M_getloc() const 29761: { return _M_ios_locale; } 29761: # 855 "/usr/include/c++/14/bits/ios_base.h" 3 29761: static int 29761: xalloc() throw(); 29761: # 871 "/usr/include/c++/14/bits/ios_base.h" 3 29761: long& 29761: iword(int __ix) 29761: { 29761: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 29761: ? _M_word[__ix] : _M_grow_words(__ix, true); 29761: return __word._M_iword; 29761: } 29761: # 892 "/usr/include/c++/14/bits/ios_base.h" 3 29761: void*& 29761: pword(int __ix) 29761: { 29761: _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) 29761: ? _M_word[__ix] : _M_grow_words(__ix, false); 29761: return __word._M_pword; 29761: } 29761: # 909 "/usr/include/c++/14/bits/ios_base.h" 3 29761: virtual ~ios_base(); 29761: 29761: protected: 29761: ios_base() throw (); 29761: # 923 "/usr/include/c++/14/bits/ios_base.h" 3 29761: public: 29761: ios_base(const ios_base&) = delete; 29761: 29761: ios_base& 29761: operator=(const ios_base&) = delete; 29761: 29761: protected: 29761: void 29761: _M_move(ios_base&) noexcept; 29761: 29761: void 29761: _M_swap(ios_base& __rhs) noexcept; 29761: 29761: }; 29761: 29761: 29761: 29761: inline ios_base& 29761: boolalpha(ios_base& __base) 29761: { 29761: __base.setf(ios_base::boolalpha); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: noboolalpha(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::boolalpha); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: showbase(ios_base& __base) 29761: { 29761: __base.setf(ios_base::showbase); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: noshowbase(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::showbase); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: showpoint(ios_base& __base) 29761: { 29761: __base.setf(ios_base::showpoint); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: noshowpoint(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::showpoint); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: showpos(ios_base& __base) 29761: { 29761: __base.setf(ios_base::showpos); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: noshowpos(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::showpos); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: skipws(ios_base& __base) 29761: { 29761: __base.setf(ios_base::skipws); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: noskipws(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::skipws); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: uppercase(ios_base& __base) 29761: { 29761: __base.setf(ios_base::uppercase); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: nouppercase(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::uppercase); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: unitbuf(ios_base& __base) 29761: { 29761: __base.setf(ios_base::unitbuf); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: nounitbuf(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::unitbuf); 29761: return __base; 29761: } 29761: 29761: 29761: 29761: inline ios_base& 29761: internal(ios_base& __base) 29761: { 29761: __base.setf(ios_base::internal, ios_base::adjustfield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: left(ios_base& __base) 29761: { 29761: __base.setf(ios_base::left, ios_base::adjustfield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: right(ios_base& __base) 29761: { 29761: __base.setf(ios_base::right, ios_base::adjustfield); 29761: return __base; 29761: } 29761: 29761: 29761: 29761: inline ios_base& 29761: dec(ios_base& __base) 29761: { 29761: __base.setf(ios_base::dec, ios_base::basefield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: hex(ios_base& __base) 29761: { 29761: __base.setf(ios_base::hex, ios_base::basefield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: oct(ios_base& __base) 29761: { 29761: __base.setf(ios_base::oct, ios_base::basefield); 29761: return __base; 29761: } 29761: 29761: 29761: 29761: inline ios_base& 29761: fixed(ios_base& __base) 29761: { 29761: __base.setf(ios_base::fixed, ios_base::floatfield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: scientific(ios_base& __base) 29761: { 29761: __base.setf(ios_base::scientific, ios_base::floatfield); 29761: return __base; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline ios_base& 29761: hexfloat(ios_base& __base) 29761: { 29761: __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); 29761: return __base; 29761: } 29761: 29761: 29761: inline ios_base& 29761: defaultfloat(ios_base& __base) 29761: { 29761: __base.unsetf(ios_base::floatfield); 29761: return __base; 29761: } 29761: 29761: 29761: 29761: } 29761: # 45 "/usr/include/c++/14/ios" 2 3 29761: # 1 "/usr/include/c++/14/streambuf" 1 3 29761: # 36 "/usr/include/c++/14/streambuf" 3 29761: 29761: # 37 "/usr/include/c++/14/streambuf" 3 29761: # 47 "/usr/include/c++/14/streambuf" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: streamsize 29761: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, 29761: basic_streambuf<_CharT, _Traits>*, bool&); 29761: # 123 "/usr/include/c++/14/streambuf" 3 29761: template 29761: class basic_streambuf 29761: { 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: 29761: 29761: typedef basic_streambuf __streambuf_type; 29761: 29761: 29761: friend class basic_ios; 29761: friend class basic_istream; 29761: friend class basic_ostream; 29761: friend class istreambuf_iterator; 29761: friend class ostreambuf_iterator; 29761: 29761: friend streamsize 29761: __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: _CharT2*>::__type 29761: __copy_move_a2(istreambuf_iterator<_CharT2>, 29761: istreambuf_iterator<_CharT2>, _CharT2*); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: istreambuf_iterator<_CharT2> >::__type 29761: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29761: const _CharT2&); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: void>::__type 29761: advance(istreambuf_iterator<_CharT2>&, _Distance); 29761: 29761: friend void __istream_extract(istream&, char*, streamsize); 29761: 29761: template 29761: friend basic_istream<_CharT2, _Traits2>& 29761: operator>>(basic_istream<_CharT2, _Traits2>&, 29761: basic_string<_CharT2, _Traits2, _Alloc>&); 29761: 29761: template 29761: friend basic_istream<_CharT2, _Traits2>& 29761: getline(basic_istream<_CharT2, _Traits2>&, 29761: basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: char_type* _M_in_beg; 29761: char_type* _M_in_cur; 29761: char_type* _M_in_end; 29761: char_type* _M_out_beg; 29761: char_type* _M_out_cur; 29761: char_type* _M_out_end; 29761: 29761: 29761: locale _M_buf_locale; 29761: 29761: public: 29761: 29761: virtual 29761: ~basic_streambuf() 29761: { } 29761: # 215 "/usr/include/c++/14/streambuf" 3 29761: locale 29761: pubimbue(const locale& __loc) 29761: { 29761: locale __tmp(this->getloc()); 29761: this->imbue(__loc); 29761: _M_buf_locale = __loc; 29761: return __tmp; 29761: } 29761: # 232 "/usr/include/c++/14/streambuf" 3 29761: locale 29761: getloc() const 29761: { return _M_buf_locale; } 29761: # 245 "/usr/include/c++/14/streambuf" 3 29761: basic_streambuf* 29761: pubsetbuf(char_type* __s, streamsize __n) 29761: { return this->setbuf(__s, __n); } 29761: # 257 "/usr/include/c++/14/streambuf" 3 29761: pos_type 29761: pubseekoff(off_type __off, ios_base::seekdir __way, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: { return this->seekoff(__off, __way, __mode); } 29761: # 269 "/usr/include/c++/14/streambuf" 3 29761: pos_type 29761: pubseekpos(pos_type __sp, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: { return this->seekpos(__sp, __mode); } 29761: 29761: 29761: 29761: 29761: int 29761: pubsync() { return this->sync(); } 29761: # 290 "/usr/include/c++/14/streambuf" 3 29761: streamsize 29761: in_avail() 29761: { 29761: const streamsize __ret = this->egptr() - this->gptr(); 29761: return __ret ? __ret : this->showmanyc(); 29761: } 29761: # 304 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: snextc() 29761: { 29761: int_type __ret = traits_type::eof(); 29761: if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), 29761: __ret), true)) 29761: __ret = this->sgetc(); 29761: return __ret; 29761: } 29761: # 322 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: sbumpc() 29761: { 29761: int_type __ret; 29761: if (__builtin_expect(this->gptr() < this->egptr(), true)) 29761: { 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: this->gbump(1); 29761: } 29761: else 29761: __ret = this->uflow(); 29761: return __ret; 29761: } 29761: # 344 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: sgetc() 29761: { 29761: int_type __ret; 29761: if (__builtin_expect(this->gptr() < this->egptr(), true)) 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: else 29761: __ret = this->underflow(); 29761: return __ret; 29761: } 29761: # 363 "/usr/include/c++/14/streambuf" 3 29761: streamsize 29761: sgetn(char_type* __s, streamsize __n) 29761: { return this->xsgetn(__s, __n); } 29761: # 378 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: sputbackc(char_type __c) 29761: { 29761: int_type __ret; 29761: const bool __testpos = this->eback() < this->gptr(); 29761: if (__builtin_expect(!__testpos || 29761: !traits_type::eq(__c, this->gptr()[-1]), false)) 29761: __ret = this->pbackfail(traits_type::to_int_type(__c)); 29761: else 29761: { 29761: this->gbump(-1); 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: } 29761: return __ret; 29761: } 29761: # 403 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: sungetc() 29761: { 29761: int_type __ret; 29761: if (__builtin_expect(this->eback() < this->gptr(), true)) 29761: { 29761: this->gbump(-1); 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: } 29761: else 29761: __ret = this->pbackfail(); 29761: return __ret; 29761: } 29761: # 430 "/usr/include/c++/14/streambuf" 3 29761: int_type 29761: sputc(char_type __c) 29761: { 29761: int_type __ret; 29761: if (__builtin_expect(this->pptr() < this->epptr(), true)) 29761: { 29761: *this->pptr() = __c; 29761: this->pbump(1); 29761: __ret = traits_type::to_int_type(__c); 29761: } 29761: else 29761: __ret = this->overflow(traits_type::to_int_type(__c)); 29761: return __ret; 29761: } 29761: # 456 "/usr/include/c++/14/streambuf" 3 29761: streamsize 29761: sputn(const char_type* __s, streamsize __n) 29761: { return this->xsputn(__s, __n); } 29761: 29761: protected: 29761: # 470 "/usr/include/c++/14/streambuf" 3 29761: basic_streambuf() 29761: : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), 29761: _M_out_beg(0), _M_out_cur(0), _M_out_end(0), 29761: _M_buf_locale(locale()) 29761: { } 29761: # 488 "/usr/include/c++/14/streambuf" 3 29761: char_type* 29761: eback() const { return _M_in_beg; } 29761: 29761: char_type* 29761: gptr() const { return _M_in_cur; } 29761: 29761: char_type* 29761: egptr() const { return _M_in_end; } 29761: # 504 "/usr/include/c++/14/streambuf" 3 29761: void 29761: gbump(int __n) { _M_in_cur += __n; } 29761: # 515 "/usr/include/c++/14/streambuf" 3 29761: void 29761: setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) 29761: { 29761: _M_in_beg = __gbeg; 29761: _M_in_cur = __gnext; 29761: _M_in_end = __gend; 29761: } 29761: # 535 "/usr/include/c++/14/streambuf" 3 29761: char_type* 29761: pbase() const { return _M_out_beg; } 29761: 29761: char_type* 29761: pptr() const { return _M_out_cur; } 29761: 29761: char_type* 29761: epptr() const { return _M_out_end; } 29761: # 551 "/usr/include/c++/14/streambuf" 3 29761: void 29761: pbump(int __n) { _M_out_cur += __n; } 29761: # 561 "/usr/include/c++/14/streambuf" 3 29761: void 29761: setp(char_type* __pbeg, char_type* __pend) 29761: { 29761: _M_out_beg = _M_out_cur = __pbeg; 29761: _M_out_end = __pend; 29761: } 29761: # 582 "/usr/include/c++/14/streambuf" 3 29761: virtual void 29761: imbue(const locale& __loc __attribute__ ((__unused__))) 29761: { } 29761: # 597 "/usr/include/c++/14/streambuf" 3 29761: virtual basic_streambuf* 29761: setbuf(char_type*, streamsize) 29761: { return this; } 29761: # 608 "/usr/include/c++/14/streambuf" 3 29761: virtual pos_type 29761: seekoff(off_type, ios_base::seekdir, 29761: ios_base::openmode = ios_base::in | ios_base::out) 29761: { return pos_type(off_type(-1)); } 29761: # 620 "/usr/include/c++/14/streambuf" 3 29761: virtual pos_type 29761: seekpos(pos_type, 29761: ios_base::openmode = ios_base::in | ios_base::out) 29761: { return pos_type(off_type(-1)); } 29761: # 633 "/usr/include/c++/14/streambuf" 3 29761: virtual int 29761: sync() { return 0; } 29761: # 655 "/usr/include/c++/14/streambuf" 3 29761: virtual streamsize 29761: showmanyc() { return 0; } 29761: # 671 "/usr/include/c++/14/streambuf" 3 29761: virtual streamsize 29761: xsgetn(char_type* __s, streamsize __n); 29761: # 693 "/usr/include/c++/14/streambuf" 3 29761: virtual int_type 29761: underflow() 29761: { return traits_type::eof(); } 29761: # 706 "/usr/include/c++/14/streambuf" 3 29761: virtual int_type 29761: uflow() 29761: { 29761: int_type __ret = traits_type::eof(); 29761: const bool __testeof = traits_type::eq_int_type(this->underflow(), 29761: __ret); 29761: if (!__testeof) 29761: { 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: this->gbump(1); 29761: } 29761: return __ret; 29761: } 29761: # 730 "/usr/include/c++/14/streambuf" 3 29761: virtual int_type 29761: pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 29761: { return traits_type::eof(); } 29761: # 748 "/usr/include/c++/14/streambuf" 3 29761: virtual streamsize 29761: xsputn(const char_type* __s, streamsize __n); 29761: # 774 "/usr/include/c++/14/streambuf" 3 29761: virtual int_type 29761: overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) 29761: { return traits_type::eof(); } 29761: # 801 "/usr/include/c++/14/streambuf" 3 29761: void 29761: __safe_gbump(streamsize __n) { _M_in_cur += __n; } 29761: 29761: void 29761: __safe_pbump(streamsize __n) { _M_out_cur += __n; } 29761: 29761: 29761: 29761: 29761: protected: 29761: 29761: basic_streambuf(const basic_streambuf&); 29761: 29761: basic_streambuf& 29761: operator=(const basic_streambuf&); 29761: 29761: 29761: void 29761: swap(basic_streambuf& __sb) 29761: { 29761: std::swap(_M_in_beg, __sb._M_in_beg); 29761: std::swap(_M_in_cur, __sb._M_in_cur); 29761: std::swap(_M_in_end, __sb._M_in_end); 29761: std::swap(_M_out_beg, __sb._M_out_beg); 29761: std::swap(_M_out_cur, __sb._M_out_cur); 29761: std::swap(_M_out_end, __sb._M_out_end); 29761: std::swap(_M_buf_locale, __sb._M_buf_locale); 29761: } 29761: 29761: }; 29761: 29761: 29761: template 29761: std::basic_streambuf<_CharT, _Traits>:: 29761: basic_streambuf(const basic_streambuf&) = default; 29761: 29761: template 29761: std::basic_streambuf<_CharT, _Traits>& 29761: std::basic_streambuf<_CharT, _Traits>:: 29761: operator=(const basic_streambuf&) = default; 29761: 29761: 29761: 29761: template<> 29761: streamsize 29761: __copy_streambufs_eof(basic_streambuf* __sbin, 29761: basic_streambuf* __sbout, bool& __ineof); 29761: 29761: template<> 29761: streamsize 29761: __copy_streambufs_eof(basic_streambuf* __sbin, 29761: basic_streambuf* __sbout, bool& __ineof); 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/streambuf.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/streambuf.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/streambuf.tcc" 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: streamsize 29761: basic_streambuf<_CharT, _Traits>:: 29761: xsgetn(char_type* __s, streamsize __n) 29761: { 29761: streamsize __ret = 0; 29761: while (__ret < __n) 29761: { 29761: const streamsize __buf_len = this->egptr() - this->gptr(); 29761: if (__buf_len) 29761: { 29761: const streamsize __remaining = __n - __ret; 29761: const streamsize __len = std::min(__buf_len, __remaining); 29761: traits_type::copy(__s, this->gptr(), __len); 29761: __ret += __len; 29761: __s += __len; 29761: this->__safe_gbump(__len); 29761: } 29761: 29761: if (__ret < __n) 29761: { 29761: const int_type __c = this->uflow(); 29761: if (!traits_type::eq_int_type(__c, traits_type::eof())) 29761: { 29761: traits_type::assign(*__s++, traits_type::to_char_type(__c)); 29761: ++__ret; 29761: } 29761: else 29761: break; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: streamsize 29761: basic_streambuf<_CharT, _Traits>:: 29761: xsputn(const char_type* __s, streamsize __n) 29761: { 29761: streamsize __ret = 0; 29761: while (__ret < __n) 29761: { 29761: const streamsize __buf_len = this->epptr() - this->pptr(); 29761: if (__buf_len) 29761: { 29761: const streamsize __remaining = __n - __ret; 29761: const streamsize __len = std::min(__buf_len, __remaining); 29761: traits_type::copy(this->pptr(), __s, __len); 29761: __ret += __len; 29761: __s += __len; 29761: this->__safe_pbump(__len); 29761: } 29761: 29761: if (__ret < __n) 29761: { 29761: int_type __c = this->overflow(traits_type::to_int_type(*__s)); 29761: if (!traits_type::eq_int_type(__c, traits_type::eof())) 29761: { 29761: ++__ret; 29761: ++__s; 29761: } 29761: else 29761: break; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: streamsize 29761: __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, 29761: basic_streambuf<_CharT, _Traits>* __sbout, 29761: bool& __ineof) 29761: { 29761: streamsize __ret = 0; 29761: __ineof = true; 29761: typename _Traits::int_type __c = __sbin->sgetc(); 29761: while (!_Traits::eq_int_type(__c, _Traits::eof())) 29761: { 29761: __c = __sbout->sputc(_Traits::to_char_type(__c)); 29761: if (_Traits::eq_int_type(__c, _Traits::eof())) 29761: { 29761: __ineof = false; 29761: break; 29761: } 29761: ++__ret; 29761: __c = __sbin->snextc(); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: inline streamsize 29761: __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, 29761: basic_streambuf<_CharT, _Traits>* __sbout) 29761: { 29761: bool __ineof; 29761: return __copy_streambufs_eof(__sbin, __sbout, __ineof); 29761: } 29761: 29761: 29761: 29761: 29761: extern template class basic_streambuf; 29761: 29761: extern template 29761: streamsize 29761: __copy_streambufs(basic_streambuf*, 29761: basic_streambuf*); 29761: 29761: 29761: extern template class basic_streambuf; 29761: 29761: extern template 29761: streamsize 29761: __copy_streambufs(basic_streambuf*, 29761: basic_streambuf*); 29761: 29761: 29761: 29761: 29761: } 29761: # 861 "/usr/include/c++/14/streambuf" 2 3 29761: # 46 "/usr/include/c++/14/ios" 2 3 29761: # 1 "/usr/include/c++/14/bits/basic_ios.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/locale_facets.h" 1 3 29761: # 37 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: 29761: # 1 "/usr/include/c++/14/cwctype" 1 3 29761: # 39 "/usr/include/c++/14/cwctype" 3 29761: 29761: # 40 "/usr/include/c++/14/cwctype" 3 29761: # 50 "/usr/include/c++/14/cwctype" 3 29761: # 1 "/usr/include/wctype.h" 1 3 4 29761: # 38 "/usr/include/wctype.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 1 3 4 29761: # 38 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29761: typedef unsigned long int wctype_t; 29761: # 56 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29761: enum 29761: { 29761: __ISwupper = 0, 29761: __ISwlower = 1, 29761: __ISwalpha = 2, 29761: __ISwdigit = 3, 29761: __ISwxdigit = 4, 29761: __ISwspace = 5, 29761: __ISwprint = 6, 29761: __ISwgraph = 7, 29761: __ISwblank = 8, 29761: __ISwcntrl = 9, 29761: __ISwpunct = 10, 29761: __ISwalnum = 11, 29761: 29761: _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), 29761: _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), 29761: _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), 29761: _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), 29761: _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), 29761: _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), 29761: _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), 29761: _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), 29761: _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), 29761: _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), 29761: _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), 29761: _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) 29761: }; 29761: 29761: 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int iswalnum (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int iswalpha (wint_t __wc) noexcept (true); 29761: 29761: 29761: extern int iswcntrl (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: extern int iswdigit (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: extern int iswgraph (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswlower (wint_t __wc) noexcept (true); 29761: 29761: 29761: extern int iswprint (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswpunct (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswspace (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswupper (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswxdigit (wint_t __wc) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int iswblank (wint_t __wc) noexcept (true); 29761: # 155 "/usr/include/arm-linux-gnueabihf/bits/wctype-wchar.h" 3 4 29761: extern wctype_t wctype (const char *__property) noexcept (true); 29761: 29761: 29761: 29761: extern int iswctype (wint_t __wc, wctype_t __desc) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t towlower (wint_t __wc) noexcept (true); 29761: 29761: 29761: extern wint_t towupper (wint_t __wc) noexcept (true); 29761: 29761: } 29761: # 39 "/usr/include/wctype.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: 29761: 29761: 29761: typedef const __int32_t *wctrans_t; 29761: 29761: 29761: 29761: extern wctrans_t wctrans (const char *__property) noexcept (true); 29761: 29761: 29761: extern wint_t towctrans (wint_t __wc, wctrans_t __desc) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int iswalnum_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int iswalpha_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: extern int iswcntrl_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: extern int iswdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: extern int iswgraph_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswlower_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: extern int iswprint_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswpunct_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswspace_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswupper_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswxdigit_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int iswblank_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: extern wctype_t wctype_l (const char *__property, locale_t __locale) 29761: noexcept (true); 29761: 29761: 29761: 29761: extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern wint_t towlower_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: extern wint_t towupper_l (wint_t __wc, locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: extern wctrans_t wctrans_l (const char *__property, locale_t __locale) 29761: noexcept (true); 29761: 29761: 29761: extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, 29761: locale_t __locale) noexcept (true); 29761: 29761: 29761: 29761: } 29761: # 51 "/usr/include/c++/14/cwctype" 2 3 29761: # 80 "/usr/include/c++/14/cwctype" 3 29761: namespace std 29761: { 29761: using ::wctrans_t; 29761: using ::wctype_t; 29761: using ::wint_t; 29761: 29761: using ::iswalnum; 29761: using ::iswalpha; 29761: 29761: using ::iswblank; 29761: 29761: using ::iswcntrl; 29761: using ::iswctype; 29761: using ::iswdigit; 29761: using ::iswgraph; 29761: using ::iswlower; 29761: using ::iswprint; 29761: using ::iswpunct; 29761: using ::iswspace; 29761: using ::iswupper; 29761: using ::iswxdigit; 29761: using ::towctrans; 29761: using ::towlower; 29761: using ::towupper; 29761: using ::wctrans; 29761: using ::wctype; 29761: } 29761: # 40 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: # 1 "/usr/include/c++/14/cctype" 1 3 29761: # 39 "/usr/include/c++/14/cctype" 3 29761: 29761: # 40 "/usr/include/c++/14/cctype" 3 29761: # 41 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 1 3 29761: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_base.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: struct ctype_base 29761: { 29761: 29761: typedef const int* __to_type; 29761: 29761: 29761: 29761: typedef unsigned short mask; 29761: static const mask upper = _ISupper; 29761: static const mask lower = _ISlower; 29761: static const mask alpha = _ISalpha; 29761: static const mask digit = _ISdigit; 29761: static const mask xdigit = _ISxdigit; 29761: static const mask space = _ISspace; 29761: static const mask print = _ISprint; 29761: static const mask graph = _ISalpha | _ISdigit | _ISpunct; 29761: static const mask cntrl = _IScntrl; 29761: static const mask punct = _ISpunct; 29761: static const mask alnum = _ISalpha | _ISdigit; 29761: 29761: static const mask blank = _ISblank; 29761: 29761: }; 29761: 29761: 29761: } 29761: # 42 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/streambuf_iterator.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 49 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template 29761: class istreambuf_iterator 29761: : public iterator 29761: { 29761: public: 29761: # 70 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 29761: typedef basic_istream<_CharT, _Traits> istream_type; 29761: 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: ostreambuf_iterator<_CharT2> >::__type 29761: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29761: ostreambuf_iterator<_CharT2>); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: _CharT2*>::__type 29761: __copy_move_a2(istreambuf_iterator<_CharT2>, 29761: istreambuf_iterator<_CharT2>, _CharT2*); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: _CharT2*>::__type 29761: __copy_n_a(istreambuf_iterator<_CharT2>, _Size, _CharT2*, bool); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: istreambuf_iterator<_CharT2> >::__type 29761: find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29761: const _CharT2&); 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: void>::__type 29761: advance(istreambuf_iterator<_CharT2>&, _Distance); 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: mutable streambuf_type* _M_sbuf; 29761: int_type _M_c; 29761: 29761: public: 29761: 29761: constexpr istreambuf_iterator() noexcept 29761: : _M_sbuf(0), _M_c(traits_type::eof()) { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: istreambuf_iterator(const istreambuf_iterator&) noexcept = default; 29761: 29761: ~istreambuf_iterator() = default; 29761: 29761: 29761: 29761: istreambuf_iterator(istream_type& __s) noexcept 29761: : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } 29761: 29761: 29761: istreambuf_iterator(streambuf_type* __s) noexcept 29761: : _M_sbuf(__s), _M_c(traits_type::eof()) { } 29761: 29761: 29761: istreambuf_iterator& 29761: operator=(const istreambuf_iterator&) noexcept = default; 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: char_type 29761: operator*() const 29761: { 29761: int_type __c = _M_get(); 29761: # 161 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: return traits_type::to_char_type(__c); 29761: } 29761: 29761: 29761: istreambuf_iterator& 29761: operator++() 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: _M_sbuf->sbumpc(); 29761: _M_c = traits_type::eof(); 29761: return *this; 29761: } 29761: 29761: 29761: istreambuf_iterator 29761: operator++(int) 29761: { 29761: 29761: 29761: 29761: ; 29761: 29761: istreambuf_iterator __old = *this; 29761: __old._M_c = _M_sbuf->sbumpc(); 29761: _M_c = traits_type::eof(); 29761: return __old; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: bool 29761: equal(const istreambuf_iterator& __b) const 29761: { return _M_at_eof() == __b._M_at_eof(); } 29761: 29761: private: 29761: int_type 29761: _M_get() const 29761: { 29761: int_type __ret = _M_c; 29761: if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) 29761: _M_sbuf = 0; 29761: return __ret; 29761: } 29761: 29761: bool 29761: _M_at_eof() const 29761: { return _S_is_eof(_M_get()); } 29761: 29761: static bool 29761: _S_is_eof(int_type __c) 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: return traits_type::eq_int_type(__c, __eof); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const istreambuf_iterator<_CharT, _Traits>& __a, 29761: const istreambuf_iterator<_CharT, _Traits>& __b) 29761: { return __a.equal(__b); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, 29761: const istreambuf_iterator<_CharT, _Traits>& __b) 29761: { return !__a.equal(__b); } 29761: 29761: 29761: 29761: template 29761: class ostreambuf_iterator 29761: : public iterator 29761: { 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef basic_streambuf<_CharT, _Traits> streambuf_type; 29761: typedef basic_ostream<_CharT, _Traits> ostream_type; 29761: 29761: 29761: template 29761: friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, 29761: ostreambuf_iterator<_CharT2> >::__type 29761: copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, 29761: ostreambuf_iterator<_CharT2>); 29761: 29761: private: 29761: streambuf_type* _M_sbuf; 29761: bool _M_failed; 29761: 29761: public: 29761: # 284 "/usr/include/c++/14/bits/streambuf_iterator.h" 3 29761: ostreambuf_iterator(ostream_type& __s) noexcept 29761: : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } 29761: 29761: 29761: ostreambuf_iterator(streambuf_type* __s) noexcept 29761: : _M_sbuf(__s), _M_failed(!_M_sbuf) { } 29761: 29761: 29761: ostreambuf_iterator& 29761: operator=(_CharT __c) 29761: { 29761: if (!_M_failed && 29761: _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) 29761: _M_failed = true; 29761: return *this; 29761: } 29761: 29761: 29761: [[__nodiscard__]] 29761: ostreambuf_iterator& 29761: operator*() 29761: { return *this; } 29761: 29761: 29761: ostreambuf_iterator& 29761: operator++(int) 29761: { return *this; } 29761: 29761: 29761: ostreambuf_iterator& 29761: operator++() 29761: { return *this; } 29761: 29761: 29761: [[__nodiscard__]] 29761: bool 29761: failed() const noexcept 29761: { return _M_failed; } 29761: 29761: ostreambuf_iterator& 29761: _M_put(const _CharT* __ws, streamsize __len) 29761: { 29761: if (__builtin_expect(!_M_failed, true) 29761: && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, 29761: false)) 29761: _M_failed = true; 29761: return *this; 29761: } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: ostreambuf_iterator<_CharT> >::__type 29761: copy(istreambuf_iterator<_CharT> __first, 29761: istreambuf_iterator<_CharT> __last, 29761: ostreambuf_iterator<_CharT> __result) 29761: { 29761: if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) 29761: { 29761: bool __ineof; 29761: __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); 29761: if (!__ineof) 29761: __result._M_failed = true; 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: ostreambuf_iterator<_CharT> >::__type 29761: __copy_move_a2(_CharT* __first, _CharT* __last, 29761: ostreambuf_iterator<_CharT> __result) 29761: { 29761: const streamsize __num = __last - __first; 29761: if (__num > 0) 29761: __result._M_put(__first, __num); 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: ostreambuf_iterator<_CharT> >::__type 29761: __copy_move_a2(const _CharT* __first, const _CharT* __last, 29761: ostreambuf_iterator<_CharT> __result) 29761: { 29761: const streamsize __num = __last - __first; 29761: if (__num > 0) 29761: __result._M_put(__first, __num); 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: _CharT*>::__type 29761: __copy_move_a2(istreambuf_iterator<_CharT> __first, 29761: istreambuf_iterator<_CharT> __last, _CharT* __result) 29761: { 29761: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29761: typedef typename __is_iterator_type::traits_type traits_type; 29761: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29761: typedef typename traits_type::int_type int_type; 29761: 29761: if (__first._M_sbuf && !__last._M_sbuf) 29761: { 29761: streambuf_type* __sb = __first._M_sbuf; 29761: int_type __c = __sb->sgetc(); 29761: while (!traits_type::eq_int_type(__c, traits_type::eof())) 29761: { 29761: const streamsize __n = __sb->egptr() - __sb->gptr(); 29761: if (__n > 1) 29761: { 29761: traits_type::copy(__result, __sb->gptr(), __n); 29761: __sb->__safe_gbump(__n); 29761: __result += __n; 29761: __c = __sb->underflow(); 29761: } 29761: else 29761: { 29761: *__result++ = traits_type::to_char_type(__c); 29761: __c = __sb->snextc(); 29761: } 29761: } 29761: } 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: _CharT*>::__type 29761: __copy_n_a(istreambuf_iterator<_CharT> __it, _Size __n, _CharT* __result, 29761: bool __strict __attribute__((__unused__))) 29761: { 29761: if (__n == 0) 29761: return __result; 29761: 29761: 29761: 29761: ; 29761: _CharT* __beg = __result; 29761: __result += __it._M_sbuf->sgetn(__beg, __n); 29761: 29761: 29761: ; 29761: return __result; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: istreambuf_iterator<_CharT> >::__type 29761: find(istreambuf_iterator<_CharT> __first, 29761: istreambuf_iterator<_CharT> __last, const _CharT& __val) 29761: { 29761: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29761: typedef typename __is_iterator_type::traits_type traits_type; 29761: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29761: typedef typename traits_type::int_type int_type; 29761: const int_type __eof = traits_type::eof(); 29761: 29761: if (__first._M_sbuf && !__last._M_sbuf) 29761: { 29761: const int_type __ival = traits_type::to_int_type(__val); 29761: streambuf_type* __sb = __first._M_sbuf; 29761: int_type __c = __sb->sgetc(); 29761: while (!traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __ival)) 29761: { 29761: streamsize __n = __sb->egptr() - __sb->gptr(); 29761: if (__n > 1) 29761: { 29761: const _CharT* __p = traits_type::find(__sb->gptr(), 29761: __n, __val); 29761: if (__p) 29761: __n = __p - __sb->gptr(); 29761: __sb->__safe_gbump(__n); 29761: __c = __sb->sgetc(); 29761: } 29761: else 29761: __c = __sb->snextc(); 29761: } 29761: 29761: __first._M_c = __eof; 29761: } 29761: 29761: return __first; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, 29761: void>::__type 29761: advance(istreambuf_iterator<_CharT>& __i, _Distance __n) 29761: { 29761: if (__n == 0) 29761: return; 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__n > 0)) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: 29761: ; 29761: 29761: typedef istreambuf_iterator<_CharT> __is_iterator_type; 29761: typedef typename __is_iterator_type::traits_type traits_type; 29761: typedef typename __is_iterator_type::streambuf_type streambuf_type; 29761: typedef typename traits_type::int_type int_type; 29761: const int_type __eof = traits_type::eof(); 29761: 29761: streambuf_type* __sb = __i._M_sbuf; 29761: while (__n > 0) 29761: { 29761: streamsize __size = __sb->egptr() - __sb->gptr(); 29761: if (__size > __n) 29761: { 29761: __sb->__safe_gbump(__n); 29761: break; 29761: } 29761: 29761: __sb->__safe_gbump(__size); 29761: __n -= __size; 29761: if (traits_type::eq_int_type(__sb->underflow(), __eof)) 29761: { 29761: 29761: 29761: ; 29761: break; 29761: } 29761: } 29761: 29761: __i._M_c = __eof; 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: # 49 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 74 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: void 29761: __convert_to_v(const char*, _Tp&, ios_base::iostate&, 29761: const __c_locale&) throw(); 29761: 29761: 29761: template<> 29761: void 29761: __convert_to_v(const char*, float&, ios_base::iostate&, 29761: const __c_locale&) throw(); 29761: 29761: template<> 29761: void 29761: __convert_to_v(const char*, double&, ios_base::iostate&, 29761: const __c_locale&) throw(); 29761: 29761: template<> 29761: void 29761: __convert_to_v(const char*, long double&, ios_base::iostate&, 29761: const __c_locale&) throw(); 29761: 29761: 29761: 29761: template 29761: struct __pad 29761: { 29761: static void 29761: _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, 29761: const _CharT* __olds, streamsize __newlen, streamsize __oldlen); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: _CharT* 29761: __add_grouping(_CharT* __s, _CharT __sep, 29761: const char* __gbeg, size_t __gsize, 29761: const _CharT* __first, const _CharT* __last); 29761: 29761: 29761: 29761: 29761: template 29761: inline 29761: ostreambuf_iterator<_CharT> 29761: __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) 29761: { 29761: __s._M_put(__ws, __len); 29761: return __s; 29761: } 29761: 29761: 29761: template 29761: inline 29761: _OutIter 29761: __write(_OutIter __s, const _CharT* __ws, int __len) 29761: { 29761: for (int __j = 0; __j < __len; __j++, ++__s) 29761: *__s = __ws[__j]; 29761: return __s; 29761: } 29761: # 152 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: class __ctype_abstract_base : public locale::facet, public ctype_base 29761: { 29761: public: 29761: 29761: 29761: typedef _CharT char_type; 29761: # 171 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: bool 29761: is(mask __m, char_type __c) const 29761: { return this->do_is(__m, __c); } 29761: # 188 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: is(const char_type *__lo, const char_type *__hi, mask *__vec) const 29761: { return this->do_is(__lo, __hi, __vec); } 29761: # 204 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: scan_is(mask __m, const char_type* __lo, const char_type* __hi) const 29761: { return this->do_scan_is(__m, __lo, __hi); } 29761: # 220 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: scan_not(mask __m, const char_type* __lo, const char_type* __hi) const 29761: { return this->do_scan_not(__m, __lo, __hi); } 29761: # 234 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: toupper(char_type __c) const 29761: { return this->do_toupper(__c); } 29761: # 249 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: toupper(char_type *__lo, const char_type* __hi) const 29761: { return this->do_toupper(__lo, __hi); } 29761: # 263 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: tolower(char_type __c) const 29761: { return this->do_tolower(__c); } 29761: # 278 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: tolower(char_type* __lo, const char_type* __hi) const 29761: { return this->do_tolower(__lo, __hi); } 29761: # 295 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: widen(char __c) const 29761: { return this->do_widen(__c); } 29761: # 314 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char* 29761: widen(const char* __lo, const char* __hi, char_type* __to) const 29761: { return this->do_widen(__lo, __hi, __to); } 29761: # 333 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char 29761: narrow(char_type __c, char __dfault) const 29761: { return this->do_narrow(__c, __dfault); } 29761: # 355 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault, char* __to) const 29761: { return this->do_narrow(__lo, __hi, __dfault, __to); } 29761: 29761: protected: 29761: explicit 29761: __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } 29761: 29761: virtual 29761: ~__ctype_abstract_base() { } 29761: # 380 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual bool 29761: do_is(mask __m, char_type __c) const = 0; 29761: # 399 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_is(const char_type* __lo, const char_type* __hi, 29761: mask* __vec) const = 0; 29761: # 418 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_scan_is(mask __m, const char_type* __lo, 29761: const char_type* __hi) const = 0; 29761: # 437 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_scan_not(mask __m, const char_type* __lo, 29761: const char_type* __hi) const = 0; 29761: # 455 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_toupper(char_type __c) const = 0; 29761: # 472 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_toupper(char_type* __lo, const char_type* __hi) const = 0; 29761: # 488 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_tolower(char_type __c) const = 0; 29761: # 505 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_tolower(char_type* __lo, const char_type* __hi) const = 0; 29761: # 524 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_widen(char __c) const = 0; 29761: # 545 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char* 29761: do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; 29761: # 566 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char 29761: do_narrow(char_type __c, char __dfault) const = 0; 29761: # 591 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault, char* __to) const = 0; 29761: }; 29761: # 614 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: class ctype : public __ctype_abstract_base<_CharT> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef typename __ctype_abstract_base<_CharT>::mask mask; 29761: 29761: 29761: static locale::id id; 29761: 29761: explicit 29761: ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } 29761: 29761: protected: 29761: virtual 29761: ~ctype(); 29761: 29761: virtual bool 29761: do_is(mask __m, char_type __c) const; 29761: 29761: virtual const char_type* 29761: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 29761: 29761: virtual const char_type* 29761: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 29761: 29761: virtual const char_type* 29761: do_scan_not(mask __m, const char_type* __lo, 29761: const char_type* __hi) const; 29761: 29761: virtual char_type 29761: do_toupper(char_type __c) const; 29761: 29761: virtual const char_type* 29761: do_toupper(char_type* __lo, const char_type* __hi) const; 29761: 29761: virtual char_type 29761: do_tolower(char_type __c) const; 29761: 29761: virtual const char_type* 29761: do_tolower(char_type* __lo, const char_type* __hi) const; 29761: 29761: virtual char_type 29761: do_widen(char __c) const; 29761: 29761: virtual const char* 29761: do_widen(const char* __lo, const char* __hi, char_type* __dest) const; 29761: 29761: virtual char 29761: do_narrow(char_type, char __dfault) const; 29761: 29761: virtual const char_type* 29761: do_narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault, char* __to) const; 29761: }; 29761: 29761: template 29761: locale::id ctype<_CharT>::id; 29761: 29761: 29761: 29761: template 29761: class ctype >; 29761: # 688 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template<> 29761: class ctype : public locale::facet, public ctype_base 29761: { 29761: public: 29761: 29761: 29761: typedef char char_type; 29761: 29761: protected: 29761: 29761: __c_locale _M_c_locale_ctype; 29761: bool _M_del; 29761: __to_type _M_toupper; 29761: __to_type _M_tolower; 29761: const mask* _M_table; 29761: mutable char _M_widen_ok; 29761: mutable char _M_widen[1 + static_cast(-1)]; 29761: mutable char _M_narrow[1 + static_cast(-1)]; 29761: mutable char _M_narrow_ok; 29761: 29761: 29761: public: 29761: 29761: static locale::id id; 29761: 29761: static const size_t table_size = 1 + static_cast(-1); 29761: # 725 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); 29761: # 738 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, 29761: size_t __refs = 0); 29761: # 751 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: inline bool 29761: is(mask __m, char __c) const; 29761: # 766 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: inline const char* 29761: is(const char* __lo, const char* __hi, mask* __vec) const; 29761: # 780 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: inline const char* 29761: scan_is(mask __m, const char* __lo, const char* __hi) const; 29761: # 794 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: inline const char* 29761: scan_not(mask __m, const char* __lo, const char* __hi) const; 29761: # 809 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: toupper(char_type __c) const 29761: { return this->do_toupper(__c); } 29761: # 826 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: toupper(char_type *__lo, const char_type* __hi) const 29761: { return this->do_toupper(__lo, __hi); } 29761: # 842 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: tolower(char_type __c) const 29761: { return this->do_tolower(__c); } 29761: # 859 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: tolower(char_type* __lo, const char_type* __hi) const 29761: { return this->do_tolower(__lo, __hi); } 29761: # 879 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: widen(char __c) const 29761: { 29761: if (_M_widen_ok) 29761: return _M_widen[static_cast(__c)]; 29761: this->_M_widen_init(); 29761: return this->do_widen(__c); 29761: } 29761: # 906 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char* 29761: widen(const char* __lo, const char* __hi, char_type* __to) const 29761: { 29761: if (_M_widen_ok == 1) 29761: { 29761: if (__builtin_expect(__hi != __lo, true)) 29761: __builtin_memcpy(__to, __lo, __hi - __lo); 29761: return __hi; 29761: } 29761: if (!_M_widen_ok) 29761: _M_widen_init(); 29761: return this->do_widen(__lo, __hi, __to); 29761: } 29761: # 938 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char 29761: narrow(char_type __c, char __dfault) const 29761: { 29761: if (_M_narrow[static_cast(__c)]) 29761: return _M_narrow[static_cast(__c)]; 29761: const char __t = do_narrow(__c, __dfault); 29761: if (__t != __dfault) 29761: _M_narrow[static_cast(__c)] = __t; 29761: return __t; 29761: } 29761: # 971 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: const char_type* 29761: narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault, char* __to) const 29761: { 29761: if (__builtin_expect(_M_narrow_ok == 1, true)) 29761: { 29761: if (__builtin_expect(__hi != __lo, true)) 29761: __builtin_memcpy(__to, __lo, __hi - __lo); 29761: return __hi; 29761: } 29761: if (!_M_narrow_ok) 29761: _M_narrow_init(); 29761: return this->do_narrow(__lo, __hi, __dfault, __to); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: const mask* 29761: table() const throw() 29761: { return _M_table; } 29761: 29761: 29761: static const mask* 29761: classic_table() throw(); 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual 29761: ~ctype(); 29761: # 1021 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_toupper(char_type __c) const; 29761: # 1038 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_toupper(char_type* __lo, const char_type* __hi) const; 29761: # 1054 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_tolower(char_type __c) const; 29761: # 1071 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_tolower(char_type* __lo, const char_type* __hi) const; 29761: # 1091 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_widen(char __c) const 29761: { return __c; } 29761: # 1114 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char* 29761: do_widen(const char* __lo, const char* __hi, char_type* __to) const 29761: { 29761: if (__builtin_expect(__hi != __lo, true)) 29761: __builtin_memcpy(__to, __lo, __hi - __lo); 29761: return __hi; 29761: } 29761: # 1141 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char 29761: do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const 29761: { return __c; } 29761: # 1167 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault __attribute__((__unused__)), char* __to) const 29761: { 29761: if (__builtin_expect(__hi != __lo, true)) 29761: __builtin_memcpy(__to, __lo, __hi - __lo); 29761: return __hi; 29761: } 29761: 29761: private: 29761: void _M_narrow_init() const; 29761: void _M_widen_init() const; 29761: }; 29761: # 1193 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template<> 29761: class ctype : public __ctype_abstract_base 29761: { 29761: public: 29761: 29761: 29761: typedef wchar_t char_type; 29761: typedef wctype_t __wmask_type; 29761: 29761: protected: 29761: __c_locale _M_c_locale_ctype; 29761: 29761: 29761: bool _M_narrow_ok; 29761: char _M_narrow[128]; 29761: wint_t _M_widen[1 + static_cast(-1)]; 29761: 29761: 29761: mask _M_bit[16]; 29761: __wmask_type _M_wmask[16]; 29761: 29761: public: 29761: 29761: 29761: static locale::id id; 29761: # 1226 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: ctype(size_t __refs = 0); 29761: # 1237 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: ctype(__c_locale __cloc, size_t __refs = 0); 29761: 29761: protected: 29761: __wmask_type 29761: _M_convert_to_wmask(const mask __m) const throw(); 29761: 29761: 29761: virtual 29761: ~ctype(); 29761: # 1261 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual bool 29761: do_is(mask __m, char_type __c) const; 29761: # 1280 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; 29761: # 1298 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; 29761: # 1316 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_scan_not(mask __m, const char_type* __lo, 29761: const char_type* __hi) const; 29761: # 1333 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_toupper(char_type __c) const; 29761: # 1350 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_toupper(char_type* __lo, const char_type* __hi) const; 29761: # 1366 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_tolower(char_type __c) const; 29761: # 1383 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_tolower(char_type* __lo, const char_type* __hi) const; 29761: # 1403 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_widen(char __c) const; 29761: # 1425 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char* 29761: do_widen(const char* __lo, const char* __hi, char_type* __to) const; 29761: # 1448 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char 29761: do_narrow(char_type __c, char __dfault) const; 29761: # 1474 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual const char_type* 29761: do_narrow(const char_type* __lo, const char_type* __hi, 29761: char __dfault, char* __to) const; 29761: 29761: 29761: void 29761: _M_initialize_ctype() throw(); 29761: }; 29761: 29761: 29761: 29761: template 29761: class ctype_byname : public ctype<_CharT> 29761: { 29761: public: 29761: typedef typename ctype<_CharT>::mask mask; 29761: 29761: explicit 29761: ctype_byname(const char* __s, size_t __refs = 0); 29761: 29761: 29761: explicit 29761: ctype_byname(const string& __s, size_t __refs = 0) 29761: : ctype_byname(__s.c_str(), __refs) { } 29761: 29761: 29761: protected: 29761: virtual 29761: ~ctype_byname() { } 29761: }; 29761: 29761: 29761: template<> 29761: class ctype_byname : public ctype 29761: { 29761: public: 29761: explicit 29761: ctype_byname(const char* __s, size_t __refs = 0); 29761: 29761: 29761: explicit 29761: ctype_byname(const string& __s, size_t __refs = 0); 29761: 29761: 29761: protected: 29761: virtual 29761: ~ctype_byname(); 29761: }; 29761: 29761: 29761: template<> 29761: class ctype_byname : public ctype 29761: { 29761: public: 29761: explicit 29761: ctype_byname(const char* __s, size_t __refs = 0); 29761: 29761: 29761: explicit 29761: ctype_byname(const string& __s, size_t __refs = 0); 29761: 29761: 29761: protected: 29761: virtual 29761: ~ctype_byname(); 29761: }; 29761: 29761: 29761: 29761: } 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 1 3 29761: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/ctype_inline.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: bool 29761: ctype:: 29761: is(mask __m, char __c) const 29761: { return _M_table[static_cast(__c)] & __m; } 29761: 29761: const char* 29761: ctype:: 29761: is(const char* __low, const char* __high, mask* __vec) const 29761: { 29761: while (__low < __high) 29761: *__vec++ = _M_table[static_cast(*__low++)]; 29761: return __high; 29761: } 29761: 29761: const char* 29761: ctype:: 29761: scan_is(mask __m, const char* __low, const char* __high) const 29761: { 29761: while (__low < __high 29761: && !(_M_table[static_cast(*__low)] & __m)) 29761: ++__low; 29761: return __low; 29761: } 29761: 29761: const char* 29761: ctype:: 29761: scan_not(mask __m, const char* __low, const char* __high) const 29761: { 29761: while (__low < __high 29761: && (_M_table[static_cast(*__low)] & __m) != 0) 29761: ++__low; 29761: return __low; 29761: } 29761: 29761: 29761: } 29761: # 1547 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: class __num_base 29761: { 29761: public: 29761: 29761: 29761: enum 29761: { 29761: _S_ominus, 29761: _S_oplus, 29761: _S_ox, 29761: _S_oX, 29761: _S_odigits, 29761: _S_odigits_end = _S_odigits + 16, 29761: _S_oudigits = _S_odigits_end, 29761: _S_oudigits_end = _S_oudigits + 16, 29761: _S_oe = _S_odigits + 14, 29761: _S_oE = _S_oudigits + 14, 29761: _S_oend = _S_oudigits_end 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static const char* _S_atoms_out; 29761: 29761: 29761: 29761: static const char* _S_atoms_in; 29761: 29761: enum 29761: { 29761: _S_iminus, 29761: _S_iplus, 29761: _S_ix, 29761: _S_iX, 29761: _S_izero, 29761: _S_ie = _S_izero + 14, 29761: _S_iE = _S_izero + 20, 29761: _S_iend = 26 29761: }; 29761: 29761: 29761: 29761: static void 29761: _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); 29761: }; 29761: 29761: template 29761: struct __numpunct_cache : public locale::facet 29761: { 29761: const char* _M_grouping; 29761: size_t _M_grouping_size; 29761: bool _M_use_grouping; 29761: const _CharT* _M_truename; 29761: size_t _M_truename_size; 29761: const _CharT* _M_falsename; 29761: size_t _M_falsename_size; 29761: _CharT _M_decimal_point; 29761: _CharT _M_thousands_sep; 29761: 29761: 29761: 29761: 29761: 29761: _CharT _M_atoms_out[__num_base::_S_oend]; 29761: 29761: 29761: 29761: 29761: 29761: _CharT _M_atoms_in[__num_base::_S_iend]; 29761: 29761: bool _M_allocated; 29761: 29761: __numpunct_cache(size_t __refs = 0) 29761: : facet(__refs), _M_grouping(0), _M_grouping_size(0), 29761: _M_use_grouping(false), 29761: _M_truename(0), _M_truename_size(0), _M_falsename(0), 29761: _M_falsename_size(0), _M_decimal_point(_CharT()), 29761: _M_thousands_sep(_CharT()), _M_allocated(false) 29761: { } 29761: 29761: ~__numpunct_cache(); 29761: 29761: void 29761: _M_cache(const locale& __loc); 29761: 29761: private: 29761: __numpunct_cache& 29761: operator=(const __numpunct_cache&); 29761: 29761: explicit 29761: __numpunct_cache(const __numpunct_cache&); 29761: }; 29761: 29761: template 29761: __numpunct_cache<_CharT>::~__numpunct_cache() 29761: { 29761: if (_M_allocated) 29761: { 29761: delete [] _M_grouping; 29761: delete [] _M_truename; 29761: delete [] _M_falsename; 29761: } 29761: } 29761: 29761: namespace __cxx11 { 29761: # 1677 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: class numpunct : public locale::facet 29761: { 29761: public: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef basic_string<_CharT> string_type; 29761: 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: 29761: protected: 29761: __cache_type* _M_data; 29761: 29761: public: 29761: 29761: static locale::id id; 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: numpunct(size_t __refs = 0) 29761: : facet(__refs), _M_data(0) 29761: { _M_initialize_numpunct(); } 29761: # 1715 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: numpunct(__cache_type* __cache, size_t __refs = 0) 29761: : facet(__refs), _M_data(__cache) 29761: { _M_initialize_numpunct(); } 29761: # 1729 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: numpunct(__c_locale __cloc, size_t __refs = 0) 29761: : facet(__refs), _M_data(0) 29761: { _M_initialize_numpunct(__cloc); } 29761: # 1743 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: decimal_point() const 29761: { return this->do_decimal_point(); } 29761: # 1756 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: char_type 29761: thousands_sep() const 29761: { return this->do_thousands_sep(); } 29761: # 1787 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: string 29761: grouping() const 29761: { return this->do_grouping(); } 29761: # 1800 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: string_type 29761: truename() const 29761: { return this->do_truename(); } 29761: # 1813 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: string_type 29761: falsename() const 29761: { return this->do_falsename(); } 29761: 29761: protected: 29761: 29761: virtual 29761: ~numpunct(); 29761: # 1830 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_decimal_point() const 29761: { return _M_data->_M_decimal_point; } 29761: # 1842 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual char_type 29761: do_thousands_sep() const 29761: { return _M_data->_M_thousands_sep; } 29761: # 1855 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual string 29761: do_grouping() const 29761: { return _M_data->_M_grouping; } 29761: # 1868 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual string_type 29761: do_truename() const 29761: { return _M_data->_M_truename; } 29761: # 1881 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual string_type 29761: do_falsename() const 29761: { return _M_data->_M_falsename; } 29761: 29761: 29761: void 29761: _M_initialize_numpunct(__c_locale __cloc = 0); 29761: }; 29761: 29761: template 29761: locale::id numpunct<_CharT>::id; 29761: 29761: template<> 29761: numpunct::~numpunct(); 29761: 29761: template<> 29761: void 29761: numpunct::_M_initialize_numpunct(__c_locale __cloc); 29761: 29761: 29761: template<> 29761: numpunct::~numpunct(); 29761: 29761: template<> 29761: void 29761: numpunct::_M_initialize_numpunct(__c_locale __cloc); 29761: 29761: 29761: 29761: template 29761: class numpunct_byname : public numpunct<_CharT> 29761: { 29761: public: 29761: typedef _CharT char_type; 29761: typedef basic_string<_CharT> string_type; 29761: 29761: explicit 29761: numpunct_byname(const char* __s, size_t __refs = 0) 29761: : numpunct<_CharT>(__refs) 29761: { 29761: if (__builtin_strcmp(__s, "C") != 0 29761: && __builtin_strcmp(__s, "POSIX") != 0) 29761: { 29761: __c_locale __tmp; 29761: this->_S_create_c_locale(__tmp, __s); 29761: this->_M_initialize_numpunct(__tmp); 29761: this->_S_destroy_c_locale(__tmp); 29761: } 29761: } 29761: 29761: 29761: explicit 29761: numpunct_byname(const string& __s, size_t __refs = 0) 29761: : numpunct_byname(__s.c_str(), __refs) { } 29761: 29761: 29761: protected: 29761: virtual 29761: ~numpunct_byname() { } 29761: }; 29761: 29761: } 29761: 29761: 29761: # 1959 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: class num_get : public locale::facet 29761: { 29761: public: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef _InIter iter_type; 29761: 29761: 29761: 29761: static locale::id id; 29761: # 1980 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: num_get(size_t __refs = 0) : facet(__refs) { } 29761: # 2006 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, bool& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: # 2043 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned short& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned int& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned long& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long long& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned long long& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: #pragma GCC diagnostic pop 29761: # 2106 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, float& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, double& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long double& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: # 2149 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: get(iter_type __in, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, void*& __v) const 29761: { return this->do_get(__in, __end, __io, __err, __v); } 29761: 29761: protected: 29761: 29761: virtual ~num_get() { } 29761: 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iter_type 29761: _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, 29761: string&) const; 29761: 29761: template 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iter_type 29761: _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, 29761: _ValueT&) const; 29761: 29761: template 29761: typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type 29761: _M_find(const _CharT2*, size_t __len, _CharT2 __c) const 29761: { 29761: int __ret = -1; 29761: if (__len <= 10) 29761: { 29761: if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) 29761: __ret = __c - _CharT2('0'); 29761: } 29761: else 29761: { 29761: if (__c >= _CharT2('0') && __c <= _CharT2('9')) 29761: __ret = __c - _CharT2('0'); 29761: else if (__c >= _CharT2('a') && __c <= _CharT2('f')) 29761: __ret = 10 + (__c - _CharT2('a')); 29761: else if (__c >= _CharT2('A') && __c <= _CharT2('F')) 29761: __ret = 10 + (__c - _CharT2('A')); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename __gnu_cxx::__enable_if::__value, 29761: int>::__type 29761: _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const 29761: { 29761: int __ret = -1; 29761: const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); 29761: if (__q) 29761: { 29761: __ret = __q - __zero; 29761: if (__ret > 15) 29761: __ret -= 6; 29761: } 29761: return __ret; 29761: } 29761: # 2222 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual iter_type 29761: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; 29761: 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned short& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned int& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned long& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long long& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: 29761: virtual iter_type 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, unsigned long long& __v) const 29761: { return _M_extract_int(__beg, __end, __io, __err, __v); } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: virtual iter_type 29761: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; 29761: 29761: virtual iter_type 29761: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 29761: double&) const; 29761: # 2277 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual iter_type 29761: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, 29761: long double&) const; 29761: 29761: 29761: virtual iter_type 29761: do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; 29761: # 2305 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: }; 29761: 29761: template 29761: locale::id num_get<_CharT, _InIter>::id; 29761: # 2323 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: template 29761: class num_put : public locale::facet 29761: { 29761: public: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef _OutIter iter_type; 29761: 29761: 29761: 29761: static locale::id id; 29761: # 2344 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: explicit 29761: num_put(size_t __refs = 0) : facet(__refs) { } 29761: # 2362 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: # 2404 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, 29761: unsigned long __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, 29761: unsigned long long __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: #pragma GCC diagnostic pop 29761: # 2470 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, 29761: long double __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: # 2495 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: iter_type 29761: put(iter_type __s, ios_base& __io, char_type __fill, 29761: const void* __v) const 29761: { return this->do_put(__s, __io, __fill, __v); } 29761: 29761: protected: 29761: template 29761: iter_type 29761: _M_insert_float(iter_type, ios_base& __io, char_type __fill, 29761: char __mod, _ValueT __v) const; 29761: 29761: void 29761: _M_group_float(const char* __grouping, size_t __grouping_size, 29761: char_type __sep, const char_type* __p, char_type* __new, 29761: char_type* __cs, int& __len) const; 29761: 29761: template 29761: iter_type 29761: _M_insert_int(iter_type, ios_base& __io, char_type __fill, 29761: _ValueT __v) const; 29761: 29761: void 29761: _M_group_int(const char* __grouping, size_t __grouping_size, 29761: char_type __sep, ios_base& __io, char_type* __new, 29761: char_type* __cs, int& __len) const; 29761: 29761: void 29761: _M_pad(char_type __fill, streamsize __w, ios_base& __io, 29761: char_type* __new, const char_type* __cs, int& __len) const; 29761: 29761: 29761: virtual 29761: ~num_put() { } 29761: # 2543 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: virtual iter_type 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; 29761: 29761: virtual iter_type 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const 29761: { return _M_insert_int(__s, __io, __fill, __v); } 29761: 29761: virtual iter_type 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, 29761: unsigned long __v) const 29761: { return _M_insert_int(__s, __io, __fill, __v); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: virtual iter_type 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, 29761: long long __v) const 29761: { return _M_insert_int(__s, __io, __fill, __v); } 29761: 29761: virtual iter_type 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, 29761: unsigned long long __v) const 29761: { return _M_insert_int(__s, __io, __fill, __v); } 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: virtual iter_type 29761: do_put(iter_type, ios_base&, char_type, double) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual iter_type 29761: do_put(iter_type, ios_base&, char_type, long double) const; 29761: 29761: 29761: virtual iter_type 29761: do_put(iter_type, ios_base&, char_type, const void*) const; 29761: # 2598 "/usr/include/c++/14/bits/locale_facets.h" 3 29761: }; 29761: 29761: template 29761: locale::id num_put<_CharT, _OutIter>::id; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline bool 29761: isspace(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::space, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isprint(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::print, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: iscntrl(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::cntrl, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isupper(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::upper, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: islower(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::lower, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isalpha(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::alpha, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isdigit(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::digit, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: ispunct(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::punct, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isxdigit(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::xdigit, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isalnum(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::alnum, __c); } 29761: 29761: 29761: template 29761: inline bool 29761: isgraph(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::graph, __c); } 29761: 29761: 29761: 29761: template 29761: inline bool 29761: isblank(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).is(ctype_base::blank, __c); } 29761: 29761: 29761: 29761: template 29761: inline _CharT 29761: toupper(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).toupper(__c); } 29761: 29761: 29761: template 29761: inline _CharT 29761: tolower(_CharT __c, const locale& __loc) 29761: { return use_facet >(__loc).tolower(__c); } 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/locale_facets.tcc" 1 3 29761: # 33 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template 29761: struct __use_cache 29761: { 29761: const _Facet* 29761: operator() (const locale& __loc) const; 29761: }; 29761: 29761: 29761: template 29761: struct __use_cache<__numpunct_cache<_CharT> > 29761: { 29761: const __numpunct_cache<_CharT>* 29761: operator() (const locale& __loc) const 29761: { 29761: const size_t __i = numpunct<_CharT>::id._M_id(); 29761: const locale::facet** __caches = __loc._M_impl->_M_caches; 29761: if (!__caches[__i]) 29761: { 29761: __numpunct_cache<_CharT>* __tmp = 0; 29761: try 29761: { 29761: __tmp = new __numpunct_cache<_CharT>; 29761: __tmp->_M_cache(__loc); 29761: } 29761: catch(...) 29761: { 29761: delete __tmp; 29761: throw; 29761: } 29761: __loc._M_impl->_M_install_cache(__tmp, __i); 29761: } 29761: return static_cast*>(__caches[__i]); 29761: } 29761: }; 29761: 29761: template 29761: void 29761: __numpunct_cache<_CharT>::_M_cache(const locale& __loc) 29761: { 29761: const numpunct<_CharT>& __np = use_facet >(__loc); 29761: 29761: char* __grouping = 0; 29761: _CharT* __truename = 0; 29761: _CharT* __falsename = 0; 29761: try 29761: { 29761: const string& __g = __np.grouping(); 29761: _M_grouping_size = __g.size(); 29761: __grouping = new char[_M_grouping_size]; 29761: __g.copy(__grouping, _M_grouping_size); 29761: _M_use_grouping = (_M_grouping_size 29761: && static_cast(__grouping[0]) > 0 29761: && (__grouping[0] 29761: != __gnu_cxx::__numeric_traits::__max)); 29761: 29761: const basic_string<_CharT>& __tn = __np.truename(); 29761: _M_truename_size = __tn.size(); 29761: __truename = new _CharT[_M_truename_size]; 29761: __tn.copy(__truename, _M_truename_size); 29761: 29761: const basic_string<_CharT>& __fn = __np.falsename(); 29761: _M_falsename_size = __fn.size(); 29761: __falsename = new _CharT[_M_falsename_size]; 29761: __fn.copy(__falsename, _M_falsename_size); 29761: 29761: _M_decimal_point = __np.decimal_point(); 29761: _M_thousands_sep = __np.thousands_sep(); 29761: 29761: const ctype<_CharT>& __ct = use_facet >(__loc); 29761: __ct.widen(__num_base::_S_atoms_out, 29761: __num_base::_S_atoms_out 29761: + __num_base::_S_oend, _M_atoms_out); 29761: __ct.widen(__num_base::_S_atoms_in, 29761: __num_base::_S_atoms_in 29761: + __num_base::_S_iend, _M_atoms_in); 29761: 29761: _M_grouping = __grouping; 29761: _M_truename = __truename; 29761: _M_falsename = __falsename; 29761: _M_allocated = true; 29761: } 29761: catch(...) 29761: { 29761: delete [] __grouping; 29761: delete [] __truename; 29761: delete [] __falsename; 29761: throw; 29761: } 29761: } 29761: # 139 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: __attribute__ ((__pure__)) bool 29761: __verify_grouping(const char* __grouping, size_t __grouping_size, 29761: const string& __grouping_tmp) throw (); 29761: 29761: 29761: 29761: template 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, 29761: ios_base::iostate& __err, string& __xtrc) const 29761: { 29761: typedef char_traits<_CharT> __traits_type; 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: const _CharT* __lit = __lc->_M_atoms_in; 29761: char_type __c = char_type(); 29761: 29761: 29761: bool __testeof = __beg == __end; 29761: 29761: 29761: if (!__testeof) 29761: { 29761: __c = *__beg; 29761: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29761: if ((__plus || __c == __lit[__num_base::_S_iminus]) 29761: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: && !(__c == __lc->_M_decimal_point)) 29761: { 29761: __xtrc += __plus ? '+' : '-'; 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: } 29761: 29761: 29761: bool __found_mantissa = false; 29761: int __sep_pos = 0; 29761: while (!__testeof) 29761: { 29761: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: || __c == __lc->_M_decimal_point) 29761: break; 29761: else if (__c == __lit[__num_base::_S_izero]) 29761: { 29761: if (!__found_mantissa) 29761: { 29761: __xtrc += '0'; 29761: __found_mantissa = true; 29761: } 29761: ++__sep_pos; 29761: 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: else 29761: break; 29761: } 29761: 29761: 29761: bool __found_dec = false; 29761: bool __found_sci = false; 29761: string __found_grouping; 29761: if (__lc->_M_use_grouping) 29761: __found_grouping.reserve(32); 29761: const char_type* __lit_zero = __lit + __num_base::_S_izero; 29761: 29761: if (!__lc->_M_allocated) 29761: 29761: while (!__testeof) 29761: { 29761: const int __digit = _M_find(__lit_zero, 10, __c); 29761: if (__digit != -1) 29761: { 29761: __xtrc += '0' + __digit; 29761: __found_mantissa = true; 29761: } 29761: else if (__c == __lc->_M_decimal_point 29761: && !__found_dec && !__found_sci) 29761: { 29761: __xtrc += '.'; 29761: __found_dec = true; 29761: } 29761: else if ((__c == __lit[__num_base::_S_ie] 29761: || __c == __lit[__num_base::_S_iE]) 29761: && !__found_sci && __found_mantissa) 29761: { 29761: 29761: __xtrc += 'e'; 29761: __found_sci = true; 29761: 29761: 29761: if (++__beg != __end) 29761: { 29761: __c = *__beg; 29761: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29761: if (__plus || __c == __lit[__num_base::_S_iminus]) 29761: __xtrc += __plus ? '+' : '-'; 29761: else 29761: continue; 29761: } 29761: else 29761: { 29761: __testeof = true; 29761: break; 29761: } 29761: } 29761: else 29761: break; 29761: 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: else 29761: while (!__testeof) 29761: { 29761: 29761: 29761: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: { 29761: if (!__found_dec && !__found_sci) 29761: { 29761: 29761: 29761: if (__sep_pos) 29761: { 29761: __found_grouping += static_cast(__sep_pos); 29761: __sep_pos = 0; 29761: } 29761: else 29761: { 29761: 29761: 29761: __xtrc.clear(); 29761: break; 29761: } 29761: } 29761: else 29761: break; 29761: } 29761: else if (__c == __lc->_M_decimal_point) 29761: { 29761: if (!__found_dec && !__found_sci) 29761: { 29761: 29761: 29761: 29761: if (__found_grouping.size()) 29761: __found_grouping += static_cast(__sep_pos); 29761: __xtrc += '.'; 29761: __found_dec = true; 29761: } 29761: else 29761: break; 29761: } 29761: else 29761: { 29761: const char_type* __q = 29761: __traits_type::find(__lit_zero, 10, __c); 29761: if (__q) 29761: { 29761: __xtrc += '0' + (__q - __lit_zero); 29761: __found_mantissa = true; 29761: ++__sep_pos; 29761: } 29761: else if ((__c == __lit[__num_base::_S_ie] 29761: || __c == __lit[__num_base::_S_iE]) 29761: && !__found_sci && __found_mantissa) 29761: { 29761: 29761: if (__found_grouping.size() && !__found_dec) 29761: __found_grouping += static_cast(__sep_pos); 29761: __xtrc += 'e'; 29761: __found_sci = true; 29761: 29761: 29761: if (++__beg != __end) 29761: { 29761: __c = *__beg; 29761: const bool __plus = __c == __lit[__num_base::_S_iplus]; 29761: if ((__plus || __c == __lit[__num_base::_S_iminus]) 29761: && !(__lc->_M_use_grouping 29761: && __c == __lc->_M_thousands_sep) 29761: && !(__c == __lc->_M_decimal_point)) 29761: __xtrc += __plus ? '+' : '-'; 29761: else 29761: continue; 29761: } 29761: else 29761: { 29761: __testeof = true; 29761: break; 29761: } 29761: } 29761: else 29761: break; 29761: } 29761: 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: 29761: 29761: 29761: if (__found_grouping.size()) 29761: { 29761: 29761: if (!__found_dec && !__found_sci) 29761: __found_grouping += static_cast(__sep_pos); 29761: 29761: if (!std::__verify_grouping(__lc->_M_grouping, 29761: __lc->_M_grouping_size, 29761: __found_grouping)) 29761: __err = ios_base::failbit; 29761: } 29761: 29761: return __beg; 29761: } 29761: 29761: template 29761: template 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, 29761: ios_base::iostate& __err, _ValueT& __v) const 29761: { 29761: typedef char_traits<_CharT> __traits_type; 29761: using __gnu_cxx::__add_unsigned; 29761: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: const _CharT* __lit = __lc->_M_atoms_in; 29761: char_type __c = char_type(); 29761: 29761: 29761: const ios_base::fmtflags __basefield = __io.flags() 29761: & ios_base::basefield; 29761: const bool __oct = __basefield == ios_base::oct; 29761: int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); 29761: 29761: 29761: bool __testeof = __beg == __end; 29761: 29761: 29761: bool __negative = false; 29761: if (!__testeof) 29761: { 29761: __c = *__beg; 29761: __negative = __c == __lit[__num_base::_S_iminus]; 29761: if ((__negative || __c == __lit[__num_base::_S_iplus]) 29761: && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: && !(__c == __lc->_M_decimal_point)) 29761: { 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: } 29761: 29761: 29761: 29761: bool __found_zero = false; 29761: int __sep_pos = 0; 29761: while (!__testeof) 29761: { 29761: if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: || __c == __lc->_M_decimal_point) 29761: break; 29761: else if (__c == __lit[__num_base::_S_izero] 29761: && (!__found_zero || __base == 10)) 29761: { 29761: __found_zero = true; 29761: ++__sep_pos; 29761: if (__basefield == 0) 29761: __base = 8; 29761: if (__base == 8) 29761: __sep_pos = 0; 29761: } 29761: else if (__found_zero 29761: && (__c == __lit[__num_base::_S_ix] 29761: || __c == __lit[__num_base::_S_iX])) 29761: { 29761: if (__basefield == 0) 29761: __base = 16; 29761: if (__base == 16) 29761: { 29761: __found_zero = false; 29761: __sep_pos = 0; 29761: } 29761: else 29761: break; 29761: } 29761: else 29761: break; 29761: 29761: if (++__beg != __end) 29761: { 29761: __c = *__beg; 29761: if (!__found_zero) 29761: break; 29761: } 29761: else 29761: __testeof = true; 29761: } 29761: 29761: 29761: 29761: const size_t __len = (__base == 16 ? __num_base::_S_iend 29761: - __num_base::_S_izero : __base); 29761: 29761: 29761: typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; 29761: string __found_grouping; 29761: if (__lc->_M_use_grouping) 29761: __found_grouping.reserve(32); 29761: bool __testfail = false; 29761: bool __testoverflow = false; 29761: const __unsigned_type __max = 29761: (__negative && __num_traits::__is_signed) 29761: ? -static_cast<__unsigned_type>(__num_traits::__min) 29761: : __num_traits::__max; 29761: const __unsigned_type __smax = __max / __base; 29761: __unsigned_type __result = 0; 29761: int __digit = 0; 29761: const char_type* __lit_zero = __lit + __num_base::_S_izero; 29761: 29761: if (!__lc->_M_allocated) 29761: 29761: while (!__testeof) 29761: { 29761: __digit = _M_find(__lit_zero, __len, __c); 29761: if (__digit == -1) 29761: break; 29761: 29761: if (__result > __smax) 29761: __testoverflow = true; 29761: else 29761: { 29761: __result *= __base; 29761: __testoverflow |= __result > __max - __digit; 29761: __result += __digit; 29761: ++__sep_pos; 29761: } 29761: 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: else 29761: while (!__testeof) 29761: { 29761: 29761: 29761: if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) 29761: { 29761: 29761: 29761: if (__sep_pos) 29761: { 29761: __found_grouping += static_cast(__sep_pos); 29761: __sep_pos = 0; 29761: } 29761: else 29761: { 29761: __testfail = true; 29761: break; 29761: } 29761: } 29761: else if (__c == __lc->_M_decimal_point) 29761: break; 29761: else 29761: { 29761: const char_type* __q = 29761: __traits_type::find(__lit_zero, __len, __c); 29761: if (!__q) 29761: break; 29761: 29761: __digit = __q - __lit_zero; 29761: if (__digit > 15) 29761: __digit -= 6; 29761: if (__result > __smax) 29761: __testoverflow = true; 29761: else 29761: { 29761: __result *= __base; 29761: __testoverflow |= __result > __max - __digit; 29761: __result += __digit; 29761: ++__sep_pos; 29761: } 29761: } 29761: 29761: if (++__beg != __end) 29761: __c = *__beg; 29761: else 29761: __testeof = true; 29761: } 29761: 29761: 29761: 29761: if (__found_grouping.size()) 29761: { 29761: 29761: __found_grouping += static_cast(__sep_pos); 29761: 29761: if (!std::__verify_grouping(__lc->_M_grouping, 29761: __lc->_M_grouping_size, 29761: __found_grouping)) 29761: __err = ios_base::failbit; 29761: } 29761: 29761: 29761: 29761: if ((!__sep_pos && !__found_zero && !__found_grouping.size()) 29761: || __testfail) 29761: { 29761: __v = 0; 29761: __err = ios_base::failbit; 29761: } 29761: else if (__testoverflow) 29761: { 29761: if (__negative && __num_traits::__is_signed) 29761: __v = __num_traits::__min; 29761: else 29761: __v = __num_traits::__max; 29761: __err = ios_base::failbit; 29761: } 29761: else 29761: __v = __negative ? -__result : __result; 29761: 29761: if (__testeof) 29761: __err |= ios_base::eofbit; 29761: return __beg; 29761: } 29761: 29761: 29761: 29761: template 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, bool& __v) const 29761: { 29761: if (!(__io.flags() & ios_base::boolalpha)) 29761: { 29761: 29761: 29761: 29761: long __l = -1; 29761: __beg = _M_extract_int(__beg, __end, __io, __err, __l); 29761: if (__l == 0 || __l == 1) 29761: __v = bool(__l); 29761: else 29761: { 29761: 29761: 29761: __v = true; 29761: __err = ios_base::failbit; 29761: if (__beg == __end) 29761: __err |= ios_base::eofbit; 29761: } 29761: } 29761: else 29761: { 29761: 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: 29761: bool __testf = true; 29761: bool __testt = true; 29761: bool __donef = __lc->_M_falsename_size == 0; 29761: bool __donet = __lc->_M_truename_size == 0; 29761: bool __testeof = false; 29761: size_t __n = 0; 29761: while (!__donef || !__donet) 29761: { 29761: if (__beg == __end) 29761: { 29761: __testeof = true; 29761: break; 29761: } 29761: 29761: const char_type __c = *__beg; 29761: 29761: if (!__donef) 29761: __testf = __c == __lc->_M_falsename[__n]; 29761: 29761: if (!__testf && __donet) 29761: break; 29761: 29761: if (!__donet) 29761: __testt = __c == __lc->_M_truename[__n]; 29761: 29761: if (!__testt && __donef) 29761: break; 29761: 29761: if (!__testt && !__testf) 29761: break; 29761: 29761: ++__n; 29761: ++__beg; 29761: 29761: __donef = !__testf || __n >= __lc->_M_falsename_size; 29761: __donet = !__testt || __n >= __lc->_M_truename_size; 29761: } 29761: if (__testf && __n == __lc->_M_falsename_size && __n) 29761: { 29761: __v = false; 29761: if (__testt && __n == __lc->_M_truename_size) 29761: __err = ios_base::failbit; 29761: else 29761: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 29761: } 29761: else if (__testt && __n == __lc->_M_truename_size && __n) 29761: { 29761: __v = true; 29761: __err = __testeof ? ios_base::eofbit : ios_base::goodbit; 29761: } 29761: else 29761: { 29761: 29761: 29761: __v = false; 29761: __err = ios_base::failbit; 29761: if (__testeof) 29761: __err |= ios_base::eofbit; 29761: } 29761: } 29761: return __beg; 29761: } 29761: 29761: template 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, float& __v) const 29761: { 29761: string __xtrc; 29761: __xtrc.reserve(32); 29761: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29761: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29761: if (__beg == __end) 29761: __err |= ios_base::eofbit; 29761: return __beg; 29761: } 29761: 29761: template 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, double& __v) const 29761: { 29761: string __xtrc; 29761: __xtrc.reserve(32); 29761: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29761: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29761: if (__beg == __end) 29761: __err |= ios_base::eofbit; 29761: return __beg; 29761: } 29761: # 735 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: template 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, long double& __v) const 29761: { 29761: string __xtrc; 29761: __xtrc.reserve(32); 29761: __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); 29761: std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); 29761: if (__beg == __end) 29761: __err |= ios_base::eofbit; 29761: return __beg; 29761: } 29761: 29761: template 29761: _InIter 29761: num_get<_CharT, _InIter>:: 29761: do_get(iter_type __beg, iter_type __end, ios_base& __io, 29761: ios_base::iostate& __err, void*& __v) const 29761: { 29761: 29761: typedef ios_base::fmtflags fmtflags; 29761: const fmtflags __fmt = __io.flags(); 29761: __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: typedef __gnu_cxx::__conditional_type<(sizeof(void*) 29761: <= sizeof(unsigned long)), 29761: unsigned long, unsigned long long>::__type _UIntPtrType; 29761: #pragma GCC diagnostic pop 29761: 29761: _UIntPtrType __ul; 29761: __beg = _M_extract_int(__beg, __end, __io, __err, __ul); 29761: 29761: 29761: __io.flags(__fmt); 29761: 29761: __v = reinterpret_cast(__ul); 29761: return __beg; 29761: } 29761: # 798 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: template 29761: void 29761: num_put<_CharT, _OutIter>:: 29761: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, 29761: _CharT* __new, const _CharT* __cs, int& __len) const 29761: { 29761: 29761: 29761: __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, 29761: __cs, __w, __len); 29761: __len = static_cast(__w); 29761: } 29761: 29761: 29761: 29761: template 29761: int 29761: __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, 29761: ios_base::fmtflags __flags, bool __dec) 29761: { 29761: _CharT* __buf = __bufend; 29761: if (__builtin_expect(__dec, true)) 29761: { 29761: 29761: do 29761: { 29761: *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; 29761: __v /= 10; 29761: } 29761: while (__v != 0); 29761: } 29761: else if ((__flags & ios_base::basefield) == ios_base::oct) 29761: { 29761: 29761: do 29761: { 29761: *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; 29761: __v >>= 3; 29761: } 29761: while (__v != 0); 29761: } 29761: else 29761: { 29761: 29761: const bool __uppercase = __flags & ios_base::uppercase; 29761: const int __case_offset = __uppercase ? __num_base::_S_oudigits 29761: : __num_base::_S_odigits; 29761: do 29761: { 29761: *--__buf = __lit[(__v & 0xf) + __case_offset]; 29761: __v >>= 4; 29761: } 29761: while (__v != 0); 29761: } 29761: return __bufend - __buf; 29761: } 29761: 29761: 29761: 29761: template 29761: void 29761: num_put<_CharT, _OutIter>:: 29761: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, 29761: ios_base&, _CharT* __new, _CharT* __cs, int& __len) const 29761: { 29761: _CharT* __p = std::__add_grouping(__new, __sep, __grouping, 29761: __grouping_size, __cs, __cs + __len); 29761: __len = __p - __new; 29761: } 29761: 29761: template 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, 29761: _ValueT __v) const 29761: { 29761: using __gnu_cxx::__add_unsigned; 29761: typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: const _CharT* __lit = __lc->_M_atoms_out; 29761: const ios_base::fmtflags __flags = __io.flags(); 29761: 29761: 29761: const int __ilen = 5 * sizeof(_ValueT); 29761: _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __ilen)); 29761: 29761: 29761: 29761: const ios_base::fmtflags __basefield = __flags & ios_base::basefield; 29761: const bool __dec = (__basefield != ios_base::oct 29761: && __basefield != ios_base::hex); 29761: const __unsigned_type __u = ((__v > 0 || !__dec) 29761: ? __unsigned_type(__v) 29761: : -__unsigned_type(__v)); 29761: int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); 29761: __cs += __ilen - __len; 29761: 29761: 29761: if (__lc->_M_use_grouping) 29761: { 29761: 29761: 29761: _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * (__len + 1) 29761: * 2)); 29761: _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, 29761: __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); 29761: __cs = __cs2 + 2; 29761: } 29761: 29761: 29761: if (__builtin_expect(__dec, true)) 29761: { 29761: 29761: if (__v >= 0) 29761: { 29761: if (bool(__flags & ios_base::showpos) 29761: && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) 29761: *--__cs = __lit[__num_base::_S_oplus], ++__len; 29761: } 29761: else 29761: *--__cs = __lit[__num_base::_S_ominus], ++__len; 29761: } 29761: else if (bool(__flags & ios_base::showbase) && __v) 29761: { 29761: if (__basefield == ios_base::oct) 29761: *--__cs = __lit[__num_base::_S_odigits], ++__len; 29761: else 29761: { 29761: 29761: const bool __uppercase = __flags & ios_base::uppercase; 29761: *--__cs = __lit[__num_base::_S_ox + __uppercase]; 29761: 29761: *--__cs = __lit[__num_base::_S_odigits]; 29761: __len += 2; 29761: } 29761: } 29761: 29761: 29761: const streamsize __w = __io.width(); 29761: if (__w > static_cast(__len)) 29761: { 29761: _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __w)); 29761: _M_pad(__fill, __w, __io, __cs3, __cs, __len); 29761: __cs = __cs3; 29761: } 29761: __io.width(0); 29761: 29761: 29761: 29761: return std::__write(__s, __cs, __len); 29761: } 29761: 29761: template 29761: void 29761: num_put<_CharT, _OutIter>:: 29761: _M_group_float(const char* __grouping, size_t __grouping_size, 29761: _CharT __sep, const _CharT* __p, _CharT* __new, 29761: _CharT* __cs, int& __len) const 29761: { 29761: 29761: 29761: 29761: const int __declen = __p ? __p - __cs : __len; 29761: _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, 29761: __grouping_size, 29761: __cs, __cs + __declen); 29761: 29761: 29761: int __newlen = __p2 - __new; 29761: if (__p) 29761: { 29761: char_traits<_CharT>::copy(__p2, __p, __len - __declen); 29761: __newlen += __len - __declen; 29761: } 29761: __len = __newlen; 29761: } 29761: # 992 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: template 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, 29761: _ValueT __v) const 29761: { 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: 29761: 29761: const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); 29761: 29761: const int __max_digits = 29761: __gnu_cxx::__numeric_traits<_ValueT>::__digits10; 29761: 29761: 29761: int __len; 29761: 29761: char __fbuf[16]; 29761: __num_base::_S_format_float(__io, __fbuf, __mod); 29761: 29761: 29761: 29761: const bool __use_prec = 29761: (__io.flags() & ios_base::floatfield) != ios_base::floatfield; 29761: 29761: 29761: 29761: int __cs_size = __max_digits * 3; 29761: char* __cs = static_cast(__builtin_alloca(__cs_size)); 29761: if (__use_prec) 29761: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29761: __fbuf, __prec, __v); 29761: else 29761: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29761: __fbuf, __v); 29761: 29761: 29761: if (__len >= __cs_size) 29761: { 29761: __cs_size = __len + 1; 29761: __cs = static_cast(__builtin_alloca(__cs_size)); 29761: if (__use_prec) 29761: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29761: __fbuf, __prec, __v); 29761: else 29761: __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, 29761: __fbuf, __v); 29761: } 29761: # 1065 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: const ctype<_CharT>& __ctype = use_facet >(__loc); 29761: 29761: _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __len)); 29761: __ctype.widen(__cs, __cs + __len, __ws); 29761: 29761: 29761: _CharT* __wp = 0; 29761: const char* __p = char_traits::find(__cs, __len, '.'); 29761: if (__p) 29761: { 29761: __wp = __ws + (__p - __cs); 29761: *__wp = __lc->_M_decimal_point; 29761: } 29761: 29761: 29761: 29761: 29761: if (__lc->_M_use_grouping 29761: && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' 29761: && __cs[1] >= '0' && __cs[2] >= '0'))) 29761: { 29761: 29761: 29761: _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __len * 2)); 29761: 29761: streamsize __off = 0; 29761: if (__cs[0] == '-' || __cs[0] == '+') 29761: { 29761: __off = 1; 29761: __ws2[0] = __ws[0]; 29761: __len -= 1; 29761: } 29761: 29761: _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, 29761: __lc->_M_thousands_sep, __wp, __ws2 + __off, 29761: __ws + __off, __len); 29761: __len += __off; 29761: 29761: __ws = __ws2; 29761: } 29761: 29761: 29761: const streamsize __w = __io.width(); 29761: if (__w > static_cast(__len)) 29761: { 29761: _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __w)); 29761: _M_pad(__fill, __w, __io, __ws3, __ws, __len); 29761: __ws = __ws3; 29761: } 29761: __io.width(0); 29761: 29761: 29761: 29761: return std::__write(__s, __ws, __len); 29761: } 29761: 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const 29761: { 29761: const ios_base::fmtflags __flags = __io.flags(); 29761: if ((__flags & ios_base::boolalpha) == 0) 29761: { 29761: const long __l = __v; 29761: __s = _M_insert_int(__s, __io, __fill, __l); 29761: } 29761: else 29761: { 29761: typedef __numpunct_cache<_CharT> __cache_type; 29761: __use_cache<__cache_type> __uc; 29761: const locale& __loc = __io._M_getloc(); 29761: const __cache_type* __lc = __uc(__loc); 29761: 29761: const _CharT* __name = __v ? __lc->_M_truename 29761: : __lc->_M_falsename; 29761: int __len = __v ? __lc->_M_truename_size 29761: : __lc->_M_falsename_size; 29761: 29761: const streamsize __w = __io.width(); 29761: if (__w > static_cast(__len)) 29761: { 29761: const streamsize __plen = __w - __len; 29761: _CharT* __ps 29761: = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 29761: * __plen)); 29761: 29761: char_traits<_CharT>::assign(__ps, __plen, __fill); 29761: __io.width(0); 29761: 29761: if ((__flags & ios_base::adjustfield) == ios_base::left) 29761: { 29761: __s = std::__write(__s, __name, __len); 29761: __s = std::__write(__s, __ps, __plen); 29761: } 29761: else 29761: { 29761: __s = std::__write(__s, __ps, __plen); 29761: __s = std::__write(__s, __name, __len); 29761: } 29761: return __s; 29761: } 29761: __io.width(0); 29761: __s = std::__write(__s, __name, __len); 29761: } 29761: return __s; 29761: } 29761: 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const 29761: { return _M_insert_float(__s, __io, __fill, char(), __v); } 29761: # 1190 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, 29761: long double __v) const 29761: { return _M_insert_float(__s, __io, __fill, 'L', __v); } 29761: 29761: template 29761: _OutIter 29761: num_put<_CharT, _OutIter>:: 29761: do_put(iter_type __s, ios_base& __io, char_type __fill, 29761: const void* __v) const 29761: { 29761: const ios_base::fmtflags __flags = __io.flags(); 29761: const ios_base::fmtflags __fmt = ~(ios_base::basefield 29761: | ios_base::uppercase); 29761: __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: typedef __gnu_cxx::__conditional_type<(sizeof(const void*) 29761: <= sizeof(unsigned long)), 29761: unsigned long, unsigned long long>::__type _UIntPtrType; 29761: #pragma GCC diagnostic pop 29761: 29761: __s = _M_insert_int(__s, __io, __fill, 29761: reinterpret_cast<_UIntPtrType>(__v)); 29761: __io.flags(__flags); 29761: return __s; 29761: } 29761: # 1230 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: 29761: # 1239 "/usr/include/c++/14/bits/locale_facets.tcc" 3 29761: template 29761: void 29761: __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, 29761: _CharT* __news, const _CharT* __olds, 29761: streamsize __newlen, streamsize __oldlen) 29761: { 29761: const size_t __plen = static_cast(__newlen - __oldlen); 29761: const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; 29761: 29761: 29761: if (__adjust == ios_base::left) 29761: { 29761: _Traits::copy(__news, __olds, __oldlen); 29761: _Traits::assign(__news + __oldlen, __plen, __fill); 29761: return; 29761: } 29761: 29761: size_t __mod = 0; 29761: if (__adjust == ios_base::internal) 29761: { 29761: 29761: 29761: 29761: const locale& __loc = __io._M_getloc(); 29761: const ctype<_CharT>& __ctype = use_facet >(__loc); 29761: 29761: if (__ctype.widen('-') == __olds[0] 29761: || __ctype.widen('+') == __olds[0]) 29761: { 29761: __news[0] = __olds[0]; 29761: __mod = 1; 29761: ++__news; 29761: } 29761: else if (__ctype.widen('0') == __olds[0] 29761: && __oldlen > 1 29761: && (__ctype.widen('x') == __olds[1] 29761: || __ctype.widen('X') == __olds[1])) 29761: { 29761: __news[0] = __olds[0]; 29761: __news[1] = __olds[1]; 29761: __mod = 2; 29761: __news += 2; 29761: } 29761: 29761: } 29761: _Traits::assign(__news, __plen, __fill); 29761: _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); 29761: } 29761: 29761: template 29761: _CharT* 29761: __add_grouping(_CharT* __s, _CharT __sep, 29761: const char* __gbeg, size_t __gsize, 29761: const _CharT* __first, const _CharT* __last) 29761: { 29761: size_t __idx = 0; 29761: size_t __ctr = 0; 29761: 29761: while (__last - __first > __gbeg[__idx] 29761: && static_cast(__gbeg[__idx]) > 0 29761: && __gbeg[__idx] != __gnu_cxx::__numeric_traits::__max) 29761: { 29761: __last -= __gbeg[__idx]; 29761: __idx < __gsize - 1 ? ++__idx : ++__ctr; 29761: } 29761: 29761: while (__first != __last) 29761: *__s++ = *__first++; 29761: 29761: while (__ctr--) 29761: { 29761: *__s++ = __sep; 29761: for (char __i = __gbeg[__idx]; __i > 0; --__i) 29761: *__s++ = *__first++; 29761: } 29761: 29761: while (__idx--) 29761: { 29761: *__s++ = __sep; 29761: for (char __i = __gbeg[__idx]; __i > 0; --__i) 29761: *__s++ = *__first++; 29761: } 29761: 29761: return __s; 29761: } 29761: 29761: 29761: 29761: 29761: extern template class __cxx11:: numpunct; 29761: extern template class __cxx11:: numpunct_byname; 29761: extern template class num_get; 29761: extern template class num_put; 29761: extern template class ctype_byname; 29761: 29761: extern template 29761: const ctype* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const numpunct* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const num_put* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const num_get* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const ctype& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const numpunct& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const num_put& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const num_get& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: extern template class __cxx11:: numpunct; 29761: extern template class __cxx11:: numpunct_byname; 29761: extern template class num_get; 29761: extern template class num_put; 29761: extern template class ctype_byname; 29761: 29761: extern template 29761: const ctype* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const numpunct* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const num_put* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const num_get* 29761: __try_use_facet >(const locale&) noexcept; 29761: 29761: extern template 29761: const ctype& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const numpunct& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const num_put& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: const num_get& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: 29761: 29761: } 29761: # 2700 "/usr/include/c++/14/bits/locale_facets.h" 2 3 29761: # 38 "/usr/include/c++/14/bits/basic_ios.h" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: inline const _Facet& 29761: __check_facet(const _Facet* __f) 29761: { 29761: if (!__f) 29761: __throw_bad_cast(); 29761: return *__f; 29761: } 29761: # 66 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: template 29761: class basic_ios : public ios_base 29761: { 29761: 29761: 29761: 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef typename _Traits::pos_type pos_type; 29761: typedef typename _Traits::off_type off_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef ctype<_CharT> __ctype_type; 29761: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 29761: __num_put_type; 29761: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 29761: __num_get_type; 29761: 29761: 29761: 29761: protected: 29761: basic_ostream<_CharT, _Traits>* _M_tie; 29761: mutable char_type _M_fill; 29761: mutable bool _M_fill_init; 29761: basic_streambuf<_CharT, _Traits>* _M_streambuf; 29761: 29761: 29761: const __ctype_type* _M_ctype; 29761: 29761: const __num_put_type* _M_num_put; 29761: 29761: const __num_get_type* _M_num_get; 29761: 29761: public: 29761: # 121 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: explicit operator bool() const 29761: { return !this->fail(); } 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: operator!() const 29761: { return this->fail(); } 29761: # 140 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: iostate 29761: rdstate() const 29761: { return _M_streambuf_state; } 29761: # 151 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: void 29761: clear(iostate __state = goodbit); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: setstate(iostate __state) 29761: { this->clear(this->rdstate() | __state); } 29761: 29761: 29761: 29761: 29761: void 29761: _M_setstate(iostate __state) 29761: { 29761: 29761: 29761: _M_streambuf_state |= __state; 29761: if (this->exceptions() & __state) 29761: throw; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: good() const 29761: { return this->rdstate() == 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: eof() const 29761: { return (this->rdstate() & eofbit) != 0; } 29761: # 204 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: bool 29761: fail() const 29761: { return (this->rdstate() & (badbit | failbit)) != 0; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: bad() const 29761: { return (this->rdstate() & badbit) != 0; } 29761: # 225 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: iostate 29761: exceptions() const 29761: { return _M_exception; } 29761: # 260 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: void 29761: exceptions(iostate __except) 29761: { 29761: _M_exception = __except; 29761: this->clear(_M_streambuf_state); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_ios(basic_streambuf<_CharT, _Traits>* __sb) 29761: : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), 29761: _M_ctype(0), _M_num_put(0), _M_num_get(0) 29761: { this->init(__sb); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual 29761: ~basic_ios() { } 29761: # 298 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: basic_ostream<_CharT, _Traits>* 29761: tie() const 29761: { return _M_tie; } 29761: # 310 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: basic_ostream<_CharT, _Traits>* 29761: tie(basic_ostream<_CharT, _Traits>* __tiestr) 29761: { 29761: basic_ostream<_CharT, _Traits>* __old = _M_tie; 29761: _M_tie = __tiestr; 29761: return __old; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_streambuf<_CharT, _Traits>* 29761: rdbuf() const 29761: { return _M_streambuf; } 29761: # 350 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: basic_streambuf<_CharT, _Traits>* 29761: rdbuf(basic_streambuf<_CharT, _Traits>* __sb); 29761: # 364 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: basic_ios& 29761: copyfmt(const basic_ios& __rhs); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: char_type 29761: fill() const 29761: { 29761: if (!_M_fill_init) 29761: { 29761: _M_fill = this->widen(' '); 29761: _M_fill_init = true; 29761: } 29761: return _M_fill; 29761: } 29761: # 393 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: char_type 29761: fill(char_type __ch) 29761: { 29761: char_type __old = this->fill(); 29761: _M_fill = __ch; 29761: return __old; 29761: } 29761: # 413 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: locale 29761: imbue(const locale& __loc); 29761: # 433 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: char 29761: narrow(char_type __c, char __dfault) const 29761: { return __check_facet(_M_ctype).narrow(__c, __dfault); } 29761: # 452 "/usr/include/c++/14/bits/basic_ios.h" 3 29761: char_type 29761: widen(char __c) const 29761: { return __check_facet(_M_ctype).widen(__c); } 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_ios() 29761: : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), 29761: _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) 29761: { } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: init(basic_streambuf<_CharT, _Traits>* __sb); 29761: 29761: 29761: basic_ios(const basic_ios&) = delete; 29761: basic_ios& operator=(const basic_ios&) = delete; 29761: 29761: void 29761: move(basic_ios& __rhs) 29761: { 29761: ios_base::_M_move(__rhs); 29761: _M_cache_locale(_M_ios_locale); 29761: this->tie(__rhs.tie(nullptr)); 29761: _M_fill = __rhs._M_fill; 29761: _M_fill_init = __rhs._M_fill_init; 29761: _M_streambuf = nullptr; 29761: } 29761: 29761: void 29761: move(basic_ios&& __rhs) 29761: { this->move(__rhs); } 29761: 29761: void 29761: swap(basic_ios& __rhs) noexcept 29761: { 29761: ios_base::_M_swap(__rhs); 29761: _M_cache_locale(_M_ios_locale); 29761: __rhs._M_cache_locale(__rhs._M_ios_locale); 29761: std::swap(_M_tie, __rhs._M_tie); 29761: std::swap(_M_fill, __rhs._M_fill); 29761: std::swap(_M_fill_init, __rhs._M_fill_init); 29761: } 29761: 29761: void 29761: set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 29761: { _M_streambuf = __sb; } 29761: 29761: 29761: void 29761: _M_cache_locale(const locale& __loc); 29761: }; 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/basic_ios.tcc" 1 3 29761: # 33 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: void 29761: basic_ios<_CharT, _Traits>::clear(iostate __state) 29761: { 29761: if (this->rdbuf()) 29761: _M_streambuf_state = __state; 29761: else 29761: _M_streambuf_state = __state | badbit; 29761: if (this->exceptions() & this->rdstate()) 29761: __throw_ios_failure(("basic_ios::clear")); 29761: } 29761: 29761: template 29761: basic_streambuf<_CharT, _Traits>* 29761: basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) 29761: { 29761: basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; 29761: _M_streambuf = __sb; 29761: this->clear(); 29761: return __old; 29761: } 29761: 29761: template 29761: basic_ios<_CharT, _Traits>& 29761: basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) 29761: { 29761: 29761: 29761: if (this != std::__addressof(__rhs)) 29761: { 29761: 29761: 29761: 29761: 29761: _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? 29761: _M_local_word : new _Words[__rhs._M_word_size]; 29761: 29761: 29761: _Callback_list* __cb = __rhs._M_callbacks; 29761: if (__cb) 29761: __cb->_M_add_reference(); 29761: _M_call_callbacks(erase_event); 29761: if (_M_word != _M_local_word) 29761: { 29761: delete [] _M_word; 29761: _M_word = 0; 29761: } 29761: _M_dispose_callbacks(); 29761: 29761: 29761: _M_callbacks = __cb; 29761: for (int __i = 0; __i < __rhs._M_word_size; ++__i) 29761: __words[__i] = __rhs._M_word[__i]; 29761: _M_word = __words; 29761: _M_word_size = __rhs._M_word_size; 29761: 29761: this->flags(__rhs.flags()); 29761: this->width(__rhs.width()); 29761: this->precision(__rhs.precision()); 29761: this->tie(__rhs.tie()); 29761: this->fill(__rhs.fill()); 29761: _M_ios_locale = __rhs.getloc(); 29761: _M_cache_locale(_M_ios_locale); 29761: 29761: _M_call_callbacks(copyfmt_event); 29761: 29761: 29761: this->exceptions(__rhs.exceptions()); 29761: } 29761: return *this; 29761: } 29761: 29761: 29761: template 29761: locale 29761: basic_ios<_CharT, _Traits>::imbue(const locale& __loc) 29761: { 29761: locale __old(this->getloc()); 29761: ios_base::imbue(__loc); 29761: _M_cache_locale(__loc); 29761: if (this->rdbuf() != 0) 29761: this->rdbuf()->pubimbue(__loc); 29761: return __old; 29761: } 29761: 29761: template 29761: void 29761: basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) 29761: { 29761: 29761: ios_base::_M_init(); 29761: 29761: 29761: _M_cache_locale(_M_ios_locale); 29761: # 146 "/usr/include/c++/14/bits/basic_ios.tcc" 3 29761: _M_fill = _CharT(); 29761: _M_fill_init = false; 29761: 29761: _M_tie = 0; 29761: _M_exception = goodbit; 29761: _M_streambuf = __sb; 29761: _M_streambuf_state = __sb ? goodbit : badbit; 29761: } 29761: 29761: template 29761: void 29761: basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) 29761: { 29761: _M_ctype = std::__try_use_facet<__ctype_type>(__loc); 29761: _M_num_put = std::__try_use_facet<__num_put_type>(__loc); 29761: _M_num_get = std::__try_use_facet<__num_get_type>(__loc); 29761: } 29761: 29761: 29761: 29761: 29761: extern template class basic_ios; 29761: 29761: 29761: extern template class basic_ios; 29761: 29761: 29761: 29761: 29761: } 29761: # 521 "/usr/include/c++/14/bits/basic_ios.h" 2 3 29761: # 47 "/usr/include/c++/14/ios" 2 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 50 "/usr/include/c++/14/ios" 2 3 29761: # 41 "/usr/include/c++/14/ostream" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 48 "/usr/include/c++/14/ostream" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 65 "/usr/include/c++/14/ostream" 3 29761: template 29761: class basic_ostream : virtual public basic_ios<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef typename _Traits::pos_type pos_type; 29761: typedef typename _Traits::off_type off_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29761: typedef basic_ios<_CharT, _Traits> __ios_type; 29761: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29761: typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > 29761: __num_put_type; 29761: typedef ctype<_CharT> __ctype_type; 29761: # 91 "/usr/include/c++/14/ostream" 3 29761: explicit 29761: basic_ostream(__streambuf_type* __sb) 29761: { this->init(__sb); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual 29761: ~basic_ostream() { } 29761: 29761: 29761: class sentry; 29761: friend class sentry; 29761: # 115 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: operator<<(__ostream_type& (*__pf)(__ostream_type&)) 29761: { 29761: 29761: 29761: 29761: return __pf(*this); 29761: } 29761: 29761: __ostream_type& 29761: operator<<(__ios_type& (*__pf)(__ios_type&)) 29761: { 29761: 29761: 29761: 29761: __pf(*this); 29761: return *this; 29761: } 29761: 29761: __ostream_type& 29761: operator<<(ios_base& (*__pf) (ios_base&)) 29761: { 29761: 29761: 29761: 29761: __pf(*this); 29761: return *this; 29761: } 29761: # 173 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: operator<<(long __n) 29761: { return _M_insert(__n); } 29761: 29761: __ostream_type& 29761: operator<<(unsigned long __n) 29761: { return _M_insert(__n); } 29761: 29761: __ostream_type& 29761: operator<<(bool __n) 29761: { return _M_insert(__n); } 29761: 29761: __ostream_type& 29761: operator<<(short __n); 29761: 29761: __ostream_type& 29761: operator<<(unsigned short __n) 29761: { 29761: 29761: 29761: return _M_insert(static_cast(__n)); 29761: } 29761: 29761: __ostream_type& 29761: operator<<(int __n); 29761: 29761: __ostream_type& 29761: operator<<(unsigned int __n) 29761: { 29761: 29761: 29761: return _M_insert(static_cast(__n)); 29761: } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: __ostream_type& 29761: operator<<(long long __n) 29761: { return _M_insert(__n); } 29761: 29761: __ostream_type& 29761: operator<<(unsigned long long __n) 29761: { return _M_insert(__n); } 29761: #pragma GCC diagnostic pop 29761: # 230 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: operator<<(double __f) 29761: { return _M_insert(__f); } 29761: 29761: __ostream_type& 29761: operator<<(float __f) 29761: { 29761: 29761: 29761: return _M_insert(static_cast(__f)); 29761: } 29761: 29761: __ostream_type& 29761: operator<<(long double __f) 29761: { return _M_insert(__f); } 29761: # 300 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: operator<<(const void* __p) 29761: { return _M_insert(__p); } 29761: 29761: 29761: __ostream_type& 29761: operator<<(nullptr_t) 29761: { return *this << "nullptr"; } 29761: # 338 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: operator<<(__streambuf_type* __sb); 29761: # 371 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: put(char_type __c); 29761: # 390 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: write(const char_type* __s, streamsize __n); 29761: # 403 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: flush(); 29761: # 413 "/usr/include/c++/14/ostream" 3 29761: pos_type 29761: tellp(); 29761: # 424 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: seekp(pos_type); 29761: # 436 "/usr/include/c++/14/ostream" 3 29761: __ostream_type& 29761: seekp(off_type, ios_base::seekdir); 29761: 29761: protected: 29761: basic_ostream() 29761: { this->init(0); } 29761: 29761: 29761: 29761: basic_ostream(basic_iostream<_CharT, _Traits>&) { } 29761: 29761: basic_ostream(const basic_ostream&) = delete; 29761: 29761: basic_ostream(basic_ostream&& __rhs) 29761: : __ios_type() 29761: { __ios_type::move(__rhs); } 29761: 29761: 29761: 29761: basic_ostream& operator=(const basic_ostream&) = delete; 29761: 29761: basic_ostream& 29761: operator=(basic_ostream&& __rhs) 29761: { 29761: swap(__rhs); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_ostream& __rhs) 29761: { __ios_type::swap(__rhs); } 29761: 29761: 29761: template 29761: __ostream_type& 29761: _M_insert(_ValueT __v); 29761: 29761: private: 29761: 29761: void 29761: _M_write(const char_type* __s, streamsize __n) 29761: { std::__ostream_insert(*this, __s, __n); } 29761: 29761: }; 29761: # 488 "/usr/include/c++/14/ostream" 3 29761: template 29761: class basic_ostream<_CharT, _Traits>::sentry 29761: { 29761: 29761: bool _M_ok; 29761: basic_ostream<_CharT, _Traits>& _M_os; 29761: 29761: public: 29761: # 507 "/usr/include/c++/14/ostream" 3 29761: explicit 29761: sentry(basic_ostream<_CharT, _Traits>& __os); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~sentry() 29761: { 29761: 29761: if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) 29761: { 29761: 29761: if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) 29761: _M_os.setstate(ios_base::badbit); 29761: } 29761: } 29761: #pragma GCC diagnostic pop 29761: # 539 "/usr/include/c++/14/ostream" 3 29761: explicit 29761: 29761: operator bool() const 29761: { return _M_ok; } 29761: }; 29761: # 561 "/usr/include/c++/14/ostream" 3 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) 29761: { 29761: if (__out.width() != 0) 29761: return __ostream_insert(__out, &__c, 1); 29761: __out.put(__c); 29761: return __out; 29761: } 29761: 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) 29761: { return (__out << __out.widen(__c)); } 29761: 29761: 29761: template 29761: inline basic_ostream& 29761: operator<<(basic_ostream& __out, char __c) 29761: { 29761: if (__out.width() != 0) 29761: return __ostream_insert(__out, &__c, 1); 29761: __out.put(__c); 29761: return __out; 29761: } 29761: 29761: 29761: template 29761: inline basic_ostream& 29761: operator<<(basic_ostream& __out, signed char __c) 29761: { return (__out << static_cast(__c)); } 29761: 29761: template 29761: inline basic_ostream& 29761: operator<<(basic_ostream& __out, unsigned char __c) 29761: { return (__out << static_cast(__c)); } 29761: # 652 "/usr/include/c++/14/ostream" 3 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) 29761: { 29761: if (!__s) 29761: __out.setstate(ios_base::badbit); 29761: else 29761: __ostream_insert(__out, __s, 29761: static_cast(_Traits::length(__s))); 29761: return __out; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits> & 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); 29761: 29761: 29761: template 29761: inline basic_ostream& 29761: operator<<(basic_ostream& __out, const char* __s) 29761: { 29761: if (!__s) 29761: __out.setstate(ios_base::badbit); 29761: else 29761: __ostream_insert(__out, __s, 29761: static_cast(_Traits::length(__s))); 29761: return __out; 29761: } 29761: 29761: 29761: template 29761: inline basic_ostream& 29761: operator<<(basic_ostream& __out, const signed char* __s) 29761: { return (__out << reinterpret_cast(__s)); } 29761: 29761: template 29761: inline basic_ostream & 29761: operator<<(basic_ostream& __out, const unsigned char* __s) 29761: { return (__out << reinterpret_cast(__s)); } 29761: # 742 "/usr/include/c++/14/ostream" 3 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: endl(basic_ostream<_CharT, _Traits>& __os) 29761: { return flush(__os.put(__os.widen('\n'))); } 29761: # 754 "/usr/include/c++/14/ostream" 3 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: ends(basic_ostream<_CharT, _Traits>& __os) 29761: { return __os.put(_CharT()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline basic_ostream<_CharT, _Traits>& 29761: flush(basic_ostream<_CharT, _Traits>& __os) 29761: { return __os.flush(); } 29761: # 786 "/usr/include/c++/14/ostream" 3 29761: template 29761: using _Require_derived_from_ios_base 29761: = _Require, __not_>, 29761: is_convertible::type, ios_base*>>; 29761: 29761: template, 29761: typename 29761: = decltype(std::declval<_Os&>() << std::declval())> 29761: using __rvalue_stream_insertion_t = _Os&&; 29761: # 808 "/usr/include/c++/14/ostream" 3 29761: template 29761: inline __rvalue_stream_insertion_t<_Ostream, _Tp> 29761: operator<<(_Ostream&& __os, const _Tp& __x) 29761: { 29761: __os << __x; 29761: return std::move(__os); 29761: } 29761: # 1019 "/usr/include/c++/14/ostream" 3 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/ostream.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/ostream.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/ostream.tcc" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>::sentry:: 29761: sentry(basic_ostream<_CharT, _Traits>& __os) 29761: : _M_ok(false), _M_os(__os) 29761: { 29761: 29761: if (__os.tie() && __os.good()) 29761: __os.tie()->flush(); 29761: 29761: if (__os.good()) 29761: _M_ok = true; 29761: else if (__os.bad()) 29761: __os.setstate(ios_base::failbit); 29761: } 29761: 29761: template 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: _M_insert(_ValueT __v) 29761: { 29761: sentry __cerb(*this); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: 29761: const __num_put_type& __np = __check_facet(this->_M_num_put); 29761: 29761: 29761: 29761: 29761: if (__np.put(*this, *this, this->fill(), __v).failed()) 29761: __err |= ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: operator<<(short __n) 29761: { 29761: 29761: 29761: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 29761: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 29761: return _M_insert(static_cast(static_cast(__n))); 29761: else 29761: return _M_insert(static_cast(__n)); 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: operator<<(int __n) 29761: { 29761: 29761: 29761: const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; 29761: if (__fmt == ios_base::oct || __fmt == ios_base::hex) 29761: return _M_insert(static_cast(static_cast(__n))); 29761: else 29761: return _M_insert(static_cast(__n)); 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: operator<<(__streambuf_type* __sbin) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this); 29761: if (__cerb && __sbin) 29761: { 29761: try 29761: { 29761: if (!__copy_streambufs(__sbin, this->rdbuf())) 29761: __err |= ios_base::failbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::failbit); } 29761: } 29761: else if (!__sbin) 29761: __err |= ios_base::badbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: put(char_type __c) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: sentry __cerb(*this); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __put = this->rdbuf()->sputc(__c); 29761: if (traits_type::eq_int_type(__put, traits_type::eof())) 29761: __err |= ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: write(const _CharT* __s, streamsize __n) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: sentry __cerb(*this); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: if (this->rdbuf()->sputn(__s, __n) != __n) 29761: __err = ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(ios_base::badbit); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: flush() 29761: { 29761: 29761: 29761: 29761: 29761: 29761: if (__streambuf_type* __buf = this->rdbuf()) 29761: { 29761: sentry __cerb(*this); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: if (this->rdbuf()->pubsync() == -1) 29761: __err |= ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: typename basic_ostream<_CharT, _Traits>::pos_type 29761: basic_ostream<_CharT, _Traits>:: 29761: tellp() 29761: { 29761: sentry __cerb(*this); 29761: pos_type __ret = pos_type(-1); 29761: if (!this->fail()) 29761: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); 29761: return __ret; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: seekp(pos_type __pos) 29761: { 29761: sentry __cerb(*this); 29761: if (!this->fail()) 29761: { 29761: 29761: 29761: const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); 29761: 29761: 29761: if (__p == pos_type(off_type(-1))) 29761: this->setstate(ios_base::failbit); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: basic_ostream<_CharT, _Traits>:: 29761: seekp(off_type __off, ios_base::seekdir __dir) 29761: { 29761: sentry __cerb(*this); 29761: if (!this->fail()) 29761: { 29761: 29761: 29761: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 29761: ios_base::out); 29761: 29761: 29761: if (__p == pos_type(off_type(-1))) 29761: this->setstate(ios_base::failbit); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_ostream<_CharT, _Traits>& 29761: operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) 29761: { 29761: if (!__s) 29761: __out.setstate(ios_base::badbit); 29761: else 29761: { 29761: 29761: 29761: const size_t __clen = char_traits::length(__s); 29761: try 29761: { 29761: struct __ptr_guard 29761: { 29761: _CharT *__p; 29761: __ptr_guard (_CharT *__ip): __p(__ip) { } 29761: ~__ptr_guard() { delete[] __p; } 29761: _CharT* __get() { return __p; } 29761: } __pg (new _CharT[__clen]); 29761: 29761: _CharT *__ws = __pg.__get(); 29761: for (size_t __i = 0; __i < __clen; ++__i) 29761: __ws[__i] = __out.widen(__s[__i]); 29761: __ostream_insert(__out, __ws, __clen); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __out._M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { __out._M_setstate(ios_base::badbit); } 29761: } 29761: return __out; 29761: } 29761: 29761: 29761: 29761: 29761: extern template class basic_ostream; 29761: extern template ostream& endl(ostream&); 29761: extern template ostream& ends(ostream&); 29761: extern template ostream& flush(ostream&); 29761: extern template ostream& operator<<(ostream&, char); 29761: extern template ostream& operator<<(ostream&, unsigned char); 29761: extern template ostream& operator<<(ostream&, signed char); 29761: extern template ostream& operator<<(ostream&, const char*); 29761: extern template ostream& operator<<(ostream&, const unsigned char*); 29761: extern template ostream& operator<<(ostream&, const signed char*); 29761: 29761: extern template ostream& ostream::_M_insert(long); 29761: extern template ostream& ostream::_M_insert(unsigned long); 29761: extern template ostream& ostream::_M_insert(bool); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: extern template ostream& ostream::_M_insert(long long); 29761: extern template ostream& ostream::_M_insert(unsigned long long); 29761: #pragma GCC diagnostic pop 29761: 29761: extern template ostream& ostream::_M_insert(double); 29761: extern template ostream& ostream::_M_insert(long double); 29761: extern template ostream& ostream::_M_insert(const void*); 29761: 29761: 29761: extern template class basic_ostream; 29761: extern template wostream& endl(wostream&); 29761: extern template wostream& ends(wostream&); 29761: extern template wostream& flush(wostream&); 29761: extern template wostream& operator<<(wostream&, wchar_t); 29761: extern template wostream& operator<<(wostream&, char); 29761: extern template wostream& operator<<(wostream&, const wchar_t*); 29761: extern template wostream& operator<<(wostream&, const char*); 29761: 29761: extern template wostream& wostream::_M_insert(long); 29761: extern template wostream& wostream::_M_insert(unsigned long); 29761: extern template wostream& wostream::_M_insert(bool); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: extern template wostream& wostream::_M_insert(long long); 29761: extern template wostream& wostream::_M_insert(unsigned long long); 29761: #pragma GCC diagnostic pop 29761: 29761: extern template wostream& wostream::_M_insert(double); 29761: extern template wostream& wostream::_M_insert(long double); 29761: extern template wostream& wostream::_M_insert(const void*); 29761: 29761: 29761: 29761: 29761: } 29761: # 1023 "/usr/include/c++/14/ostream" 2 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 2 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: namespace rocksdb { 29761: 29761: class ColumnFamilyHandle; 29761: 29761: 29761: 29761: class WideColumn { 29761: public: 29761: WideColumn() = default; 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: template 29761: WideColumn(N&& name, V&& value) 29761: : name_(std::forward(name)), value_(std::forward(value)) {} 29761: # 49 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: template 29761: WideColumn(std::piecewise_construct_t, NTuple&& name_tuple, 29761: VTuple&& value_tuple) 29761: : name_(std::make_from_tuple(std::forward(name_tuple))), 29761: value_(std::make_from_tuple(std::forward(value_tuple))) { 29761: } 29761: 29761: const Slice& name() const { return name_; } 29761: const Slice& value() const { return value_; } 29761: 29761: Slice& name() { return name_; } 29761: Slice& value() { return value_; } 29761: 29761: private: 29761: Slice name_; 29761: Slice value_; 29761: }; 29761: 29761: 29761: inline bool operator==(const WideColumn& lhs, const WideColumn& rhs) { 29761: return lhs.name() == rhs.name() && lhs.value() == rhs.value(); 29761: } 29761: 29761: inline bool operator!=(const WideColumn& lhs, const WideColumn& rhs) { 29761: return !(lhs == rhs); 29761: } 29761: 29761: inline std::ostream& operator<<(std::ostream& os, const WideColumn& column) { 29761: const bool hex = 29761: (os.flags() & std::ios_base::basefield) == std::ios_base::hex; 29761: if (!column.name().empty()) { 29761: if (hex) { 29761: os << "0x"; 29761: } 29761: os << column.name().ToString(hex); 29761: } 29761: os << ':'; 29761: if (!column.value().empty()) { 29761: if (hex) { 29761: os << "0x"; 29761: } 29761: os << column.value().ToString(hex); 29761: } 29761: return os; 29761: } 29761: 29761: 29761: using WideColumns = std::vector; 29761: 29761: 29761: extern const Slice kDefaultWideColumnName; 29761: 29761: 29761: extern const WideColumns kNoWideColumns; 29761: 29761: 29761: 29761: class PinnableWideColumns { 29761: public: 29761: PinnableWideColumns() = default; 29761: 29761: PinnableWideColumns(const PinnableWideColumns&) = delete; 29761: PinnableWideColumns& operator=(const PinnableWideColumns&) = delete; 29761: 29761: PinnableWideColumns(PinnableWideColumns&&); 29761: PinnableWideColumns& operator=(PinnableWideColumns&&); 29761: 29761: ~PinnableWideColumns() = default; 29761: 29761: const WideColumns& columns() const { return columns_; } 29761: size_t serialized_size() const { return value_.size(); } 29761: 29761: void SetPlainValue(const Slice& value); 29761: void SetPlainValue(const Slice& value, Cleanable* cleanable); 29761: void SetPlainValue(PinnableSlice&& value); 29761: void SetPlainValue(std::string&& value); 29761: 29761: Status SetWideColumnValue(const Slice& value); 29761: Status SetWideColumnValue(const Slice& value, Cleanable* cleanable); 29761: Status SetWideColumnValue(PinnableSlice&& value); 29761: Status SetWideColumnValue(std::string&& value); 29761: 29761: void Reset(); 29761: 29761: private: 29761: void Move(PinnableWideColumns&& other); 29761: void CopyValue(const Slice& value); 29761: void PinOrCopyValue(const Slice& value, Cleanable* cleanable); 29761: void MoveValue(PinnableSlice&& value); 29761: void MoveValue(std::string&& value); 29761: 29761: void CreateIndexForPlainValue(); 29761: Status CreateIndexForWideColumns(); 29761: 29761: PinnableSlice value_; 29761: WideColumns columns_; 29761: }; 29761: 29761: inline void PinnableWideColumns::Reset() { 29761: value_.Reset(); 29761: columns_.clear(); 29761: } 29761: 29761: inline void PinnableWideColumns::Move(PinnableWideColumns&& other) { 29761: 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: (static_cast ( 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: columns_.empty() 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: "columns_.empty()" 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: ; 29761: 29761: if (other.columns_.empty()) { 29761: return; 29761: } 29761: 29761: const char* const data = other.value_.data(); 29761: const bool is_plain_value = 29761: other.columns_.size() == 1 && 29761: other.columns_.front().name() == kDefaultWideColumnName && 29761: other.columns_.front().value() == other.value_; 29761: 29761: MoveValue(std::move(other.value_)); 29761: 29761: if (value_.data() == data) { 29761: columns_ = std::move(other.columns_); 29761: } else { 29761: if (is_plain_value) { 29761: CreateIndexForPlainValue(); 29761: } else { 29761: const Status s = CreateIndexForWideColumns(); 29761: 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: (static_cast ( 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: s.ok() 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: "s.ok()" 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: ; 29761: 29761: s.PermitUncheckedError(); 29761: } 29761: } 29761: 29761: other.Reset(); 29761: } 29761: 29761: inline void PinnableWideColumns::CopyValue(const Slice& value) { 29761: value_.PinSelf(value); 29761: } 29761: 29761: inline void PinnableWideColumns::PinOrCopyValue(const Slice& value, 29761: Cleanable* cleanable) { 29761: if (!cleanable) { 29761: CopyValue(value); 29761: return; 29761: } 29761: 29761: value_.PinSlice(value, cleanable); 29761: } 29761: 29761: inline void PinnableWideColumns::MoveValue(PinnableSlice&& value) { 29761: value_ = std::move(value); 29761: } 29761: 29761: inline void PinnableWideColumns::MoveValue(std::string&& value) { 29761: std::string* const buf = value_.GetSelf(); 29761: 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: (static_cast ( 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: buf 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: "buf" 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/wide_columns.h" 29761: ; 29761: 29761: *buf = std::move(value); 29761: value_.PinSelf(); 29761: } 29761: 29761: inline void PinnableWideColumns::CreateIndexForPlainValue() { 29761: columns_ = WideColumns{{kDefaultWideColumnName, value_}}; 29761: } 29761: 29761: inline void PinnableWideColumns::SetPlainValue(const Slice& value) { 29761: CopyValue(value); 29761: CreateIndexForPlainValue(); 29761: } 29761: 29761: inline void PinnableWideColumns::SetPlainValue(const Slice& value, 29761: Cleanable* cleanable) { 29761: PinOrCopyValue(value, cleanable); 29761: CreateIndexForPlainValue(); 29761: } 29761: 29761: inline void PinnableWideColumns::SetPlainValue(PinnableSlice&& value) { 29761: MoveValue(std::move(value)); 29761: CreateIndexForPlainValue(); 29761: } 29761: 29761: inline void PinnableWideColumns::SetPlainValue(std::string&& value) { 29761: MoveValue(std::move(value)); 29761: CreateIndexForPlainValue(); 29761: } 29761: 29761: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value) { 29761: CopyValue(value); 29761: 29761: const Status s = CreateIndexForWideColumns(); 29761: if (!s.ok()) { 29761: Reset(); 29761: } 29761: 29761: return s; 29761: } 29761: 29761: inline Status PinnableWideColumns::SetWideColumnValue(const Slice& value, 29761: Cleanable* cleanable) { 29761: PinOrCopyValue(value, cleanable); 29761: 29761: const Status s = CreateIndexForWideColumns(); 29761: if (!s.ok()) { 29761: Reset(); 29761: } 29761: 29761: return s; 29761: } 29761: 29761: inline Status PinnableWideColumns::SetWideColumnValue(PinnableSlice&& value) { 29761: MoveValue(std::move(value)); 29761: 29761: const Status s = CreateIndexForWideColumns(); 29761: if (!s.ok()) { 29761: Reset(); 29761: } 29761: 29761: return s; 29761: } 29761: 29761: inline Status PinnableWideColumns::SetWideColumnValue(std::string&& value) { 29761: MoveValue(std::move(value)); 29761: 29761: const Status s = CreateIndexForWideColumns(); 29761: if (!s.ok()) { 29761: Reset(); 29761: } 29761: 29761: return s; 29761: } 29761: 29761: inline PinnableWideColumns::PinnableWideColumns(PinnableWideColumns&& other) { 29761: Move(std::move(other)); 29761: } 29761: 29761: inline PinnableWideColumns& PinnableWideColumns::operator=( 29761: PinnableWideColumns&& other) { 29761: if (this != &other) { 29761: Reset(); 29761: Move(std::move(other)); 29761: } 29761: 29761: return *this; 29761: } 29761: 29761: inline bool operator==(const PinnableWideColumns& lhs, 29761: const PinnableWideColumns& rhs) { 29761: return lhs.columns() == rhs.columns(); 29761: } 29761: 29761: inline bool operator!=(const PinnableWideColumns& lhs, 29761: const PinnableWideColumns& rhs) { 29761: return !(lhs == rhs); 29761: } 29761: 29761: } 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/attribute_groups.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class ColumnFamilyHandle; 29761: 29761: 29761: 29761: 29761: class AttributeGroup { 29761: public: 29761: explicit AttributeGroup(ColumnFamilyHandle* column_family, 29761: const WideColumns& columns) 29761: : column_family_(column_family), columns_(columns) {} 29761: 29761: ColumnFamilyHandle* column_family() const { return column_family_; } 29761: const WideColumns& columns() const { return columns_; } 29761: WideColumns& columns() { return columns_; } 29761: 29761: private: 29761: ColumnFamilyHandle* column_family_; 29761: WideColumns columns_; 29761: }; 29761: 29761: inline bool operator==(const AttributeGroup& lhs, const AttributeGroup& rhs) { 29761: return lhs.column_family() == rhs.column_family() && 29761: lhs.columns() == rhs.columns(); 29761: } 29761: 29761: inline bool operator!=(const AttributeGroup& lhs, const AttributeGroup& rhs) { 29761: return !(lhs == rhs); 29761: } 29761: 29761: 29761: using AttributeGroups = std::vector; 29761: 29761: 29761: extern const AttributeGroups kNoAttributeGroups; 29761: 29761: 29761: class PinnableAttributeGroup { 29761: public: 29761: explicit PinnableAttributeGroup(ColumnFamilyHandle* column_family) 29761: : column_family_(column_family), status_(Status::OK()) {} 29761: 29761: ColumnFamilyHandle* column_family() const { return column_family_; } 29761: const Status& status() const { return status_; } 29761: const WideColumns& columns() const { return columns_.columns(); } 29761: 29761: void SetStatus(const Status& status); 29761: void SetColumns(PinnableWideColumns&& columns); 29761: 29761: void Reset(); 29761: 29761: private: 29761: ColumnFamilyHandle* column_family_; 29761: Status status_; 29761: PinnableWideColumns columns_; 29761: }; 29761: 29761: inline void PinnableAttributeGroup::SetStatus(const Status& status) { 29761: status_ = status; 29761: } 29761: inline void PinnableAttributeGroup::SetColumns(PinnableWideColumns&& columns) { 29761: columns_ = std::move(columns); 29761: } 29761: 29761: inline void PinnableAttributeGroup::Reset() { 29761: SetStatus(Status::OK()); 29761: columns_.Reset(); 29761: } 29761: 29761: 29761: using PinnableAttributeGroups = std::vector; 29761: 29761: 29761: 29761: class IteratorAttributeGroup { 29761: public: 29761: explicit IteratorAttributeGroup(ColumnFamilyHandle* column_family, 29761: const WideColumns* columns) 29761: : column_family_(column_family), columns_(columns) {} 29761: 29761: explicit IteratorAttributeGroup(const AttributeGroup& attribute_group) 29761: : IteratorAttributeGroup(attribute_group.column_family(), 29761: &attribute_group.columns()) {} 29761: 29761: ColumnFamilyHandle* column_family() const { return column_family_; } 29761: const WideColumns& columns() const { return *columns_; } 29761: 29761: private: 29761: ColumnFamilyHandle* column_family_; 29761: const WideColumns* columns_; 29761: }; 29761: 29761: inline bool operator==(const IteratorAttributeGroup& lhs, 29761: const IteratorAttributeGroup& rhs) { 29761: return lhs.column_family() == rhs.column_family() && 29761: lhs.columns() == rhs.columns(); 29761: } 29761: 29761: inline bool operator!=(const IteratorAttributeGroup& lhs, 29761: const IteratorAttributeGroup& rhs) { 29761: return !(lhs == rhs); 29761: } 29761: 29761: using IteratorAttributeGroups = std::vector; 29761: 29761: extern const IteratorAttributeGroups kNoIteratorAttributeGroups; 29761: 29761: 29761: 29761: class AttributeGroupIterator : public IteratorBase { 29761: public: 29761: AttributeGroupIterator() {} 29761: ~AttributeGroupIterator() override {} 29761: 29761: 29761: AttributeGroupIterator(const AttributeGroupIterator&) = delete; 29761: AttributeGroupIterator& operator=(const AttributeGroupIterator&) = delete; 29761: 29761: virtual const IteratorAttributeGroups& attribute_groups() const = 0; 29761: }; 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 1 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum CompressionType : unsigned char { 29761: 29761: 29761: kNoCompression = 0x0, 29761: kSnappyCompression = 0x1, 29761: kZlibCompression = 0x2, 29761: kBZip2Compression = 0x3, 29761: kLZ4Compression = 0x4, 29761: kLZ4HCCompression = 0x5, 29761: kXpressCompression = 0x6, 29761: kZSTD = 0x7, 29761: 29761: 29761: 29761: 29761: 29761: 29761: kZSTDNotFinalCompression = 0x40, 29761: 29761: 29761: kDisableCompressionOption = 0xff, 29761: }; 29761: 29761: 29761: struct CompressionOptions { 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: static constexpr int kDefaultCompressionLevel = 32767; 29761: 29761: 29761: int window_bits = -14; 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: int level = kDefaultCompressionLevel; 29761: 29761: 29761: int strategy = 0; 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: uint32_t max_dict_bytes = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t zstd_max_train_bytes = 0; 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: uint32_t parallel_threads = 1; 29761: # 122 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: bool enabled = false; 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: uint64_t max_dict_buffer_bytes = 0; 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: bool use_zstd_dict_trainer = true; 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compression_type.h" 29761: int max_compressed_bytes_per_kb = 1024 * 7 / 8; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool checksum = false; 29761: 29761: 29761: 29761: 29761: void SetMinRatio(double min_ratio) { 29761: max_compressed_bytes_per_kb = static_cast(1024.0 / min_ratio + 0.5); 29761: } 29761: }; 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: namespace detail { 29761: int CountTrailingZeroBitsForSmallEnumSet(uint64_t); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: class SmallEnumSet { 29761: private: 29761: using StateT = uint64_t; 29761: static constexpr int kStateBits = sizeof(StateT) * 8; 29761: static constexpr int kMaxMax = kStateBits - 1; 29761: static constexpr int kMaxValue = static_cast(MAX_ENUMERATOR); 29761: static_assert(kMaxValue >= 0); 29761: static_assert(kMaxValue <= kMaxMax); 29761: 29761: public: 29761: 29761: SmallEnumSet() : state_(0) {} 29761: 29761: template 29761: constexpr SmallEnumSet(const ENUM_TYPE e, TRest... rest) { 29761: *this = SmallEnumSet(rest...).With(e); 29761: } 29761: 29761: 29761: 29761: static constexpr SmallEnumSet All() { 29761: StateT tmp = StateT{1} << kMaxValue; 29761: return SmallEnumSet(RawStateMarker(), tmp | (tmp - 1)); 29761: } 29761: 29761: 29761: bool operator==(const SmallEnumSet& that) const { 29761: return this->state_ == that.state_; 29761: } 29761: bool operator!=(const SmallEnumSet& that) const { return !(*this == that); } 29761: 29761: 29761: 29761: 29761: bool Contains(const ENUM_TYPE e) const { 29761: int value = static_cast(e); 29761: 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: value >= 0 && value <= kMaxValue 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "value >= 0 && value <= kMaxValue" 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: StateT tmp = 1; 29761: return state_ & (tmp << value); 29761: } 29761: 29761: bool empty() const { return state_ == 0; } 29761: 29761: 29761: class const_iterator { 29761: public: 29761: 29761: const_iterator(const const_iterator& that) = default; 29761: const_iterator& operator=(const const_iterator& that) = default; 29761: 29761: 29761: const_iterator(const_iterator&& that) noexcept = default; 29761: const_iterator& operator=(const_iterator&& that) noexcept = default; 29761: 29761: 29761: bool operator==(const const_iterator& that) const { 29761: 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: set_ == that.set_ 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "set_ == that.set_" 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: return this->pos_ == that.pos_; 29761: } 29761: 29761: bool operator!=(const const_iterator& that) const { 29761: return !(*this == that); 29761: } 29761: 29761: 29761: const_iterator& operator++() { 29761: if (pos_ < kMaxValue) { 29761: pos_ = set_->SkipUnset(pos_ + 1); 29761: } else { 29761: pos_ = kStateBits; 29761: } 29761: return *this; 29761: } 29761: 29761: 29761: const_iterator operator++(int) { 29761: auto old = *this; 29761: ++*this; 29761: return old; 29761: } 29761: 29761: ENUM_TYPE operator*() const { 29761: 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: pos_ <= kMaxValue 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "pos_ <= kMaxValue" 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: return static_cast(pos_); 29761: } 29761: 29761: private: 29761: friend class SmallEnumSet; 29761: const_iterator(const SmallEnumSet* set, int pos) : set_(set), pos_(pos) {} 29761: const SmallEnumSet* set_; 29761: int pos_; 29761: }; 29761: 29761: const_iterator begin() const { return const_iterator(this, SkipUnset(0)); } 29761: 29761: const_iterator end() const { return const_iterator(this, kStateBits); } 29761: 29761: 29761: 29761: 29761: 29761: bool Add(const ENUM_TYPE e) { 29761: int value = static_cast(e); 29761: 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: value >= 0 && value <= kMaxValue 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "value >= 0 && value <= kMaxValue" 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 129 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: StateT old_state = state_; 29761: state_ |= (StateT{1} << value); 29761: return old_state != state_; 29761: } 29761: 29761: 29761: 29761: bool Remove(const ENUM_TYPE e) { 29761: int value = static_cast(e); 29761: 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: value >= 0 && value <= kMaxValue 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "value >= 0 && value <= kMaxValue" 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: StateT old_state = state_; 29761: state_ &= ~(StateT{1} << value); 29761: return old_state != state_; 29761: } 29761: 29761: 29761: 29761: 29761: constexpr SmallEnumSet With(const ENUM_TYPE e) const { 29761: int value = static_cast(e); 29761: 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: value >= 0 && value <= kMaxValue 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "value >= 0 && value <= kMaxValue" 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: return SmallEnumSet(RawStateMarker(), state_ | (StateT{1} << value)); 29761: } 29761: template 29761: constexpr SmallEnumSet With(const ENUM_TYPE e1, const ENUM_TYPE e2, 29761: TRest... rest) const { 29761: return With(e1).With(e2, rest...); 29761: } 29761: 29761: 29761: constexpr SmallEnumSet Without(const ENUM_TYPE e) const { 29761: int value = static_cast(e); 29761: 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: (static_cast ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: value >= 0 && value <= kMaxValue 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: "value >= 0 && value <= kMaxValue" 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/data_structure.h" 29761: ; 29761: return SmallEnumSet(RawStateMarker(), state_ & ~(StateT{1} << value)); 29761: } 29761: template 29761: constexpr SmallEnumSet Without(const ENUM_TYPE e1, const ENUM_TYPE e2, 29761: TRest... rest) const { 29761: return Without(e1).Without(e2, rest...); 29761: } 29761: 29761: private: 29761: int SkipUnset(int pos) const { 29761: StateT tmp = state_ >> pos; 29761: if (tmp == 0) { 29761: return kStateBits; 29761: } else { 29761: return pos + detail::CountTrailingZeroBitsForSmallEnumSet(tmp); 29761: } 29761: } 29761: struct RawStateMarker {}; 29761: explicit SmallEnumSet(RawStateMarker, StateT state) : state_(state) {} 29761: 29761: StateT state_; 29761: }; 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memory_allocator.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: class MemoryAllocator : public Customizable { 29761: public: 29761: static const char* Type() { return "MemoryAllocator"; } 29761: static Status CreateFromString(const ConfigOptions& options, 29761: const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: 29761: virtual void* Allocate(size_t size) = 0; 29761: 29761: 29761: virtual void Deallocate(void* p) = 0; 29761: 29761: 29761: 29761: virtual size_t UsableSize(void* , size_t allocation_size) const { 29761: 29761: return allocation_size; 29761: } 29761: 29761: std::string GetId() const override { return GenerateIndividualId(); } 29761: }; 29761: 29761: struct JemallocAllocatorOptions { 29761: static const char* kName() { return "JemallocAllocatorOptions"; } 29761: 29761: 29761: 29761: 29761: 29761: bool limit_tcache_size = false; 29761: 29761: 29761: 29761: size_t tcache_size_lower_bound = 1024; 29761: 29761: 29761: 29761: size_t tcache_size_upper_bound = 16 * 1024; 29761: 29761: 29761: 29761: 29761: size_t num_arenas = 1; 29761: }; 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memory_allocator.h" 29761: Status NewJemallocNodumpAllocator( 29761: const JemallocAllocatorOptions& options, 29761: std::shared_ptr* memory_allocator); 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Cache; 29761: struct ConfigOptions; 29761: class SecondaryCache; 29761: # 46 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: using BlockCache = Cache; 29761: using RowCache = Cache; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum class CacheEntryRole { 29761: 29761: kDataBlock, 29761: 29761: kFilterBlock, 29761: 29761: kFilterMetaBlock, 29761: 29761: kDeprecatedFilterBlock, 29761: 29761: kIndexBlock, 29761: 29761: kOtherBlock, 29761: 29761: kWriteBuffer, 29761: 29761: 29761: kCompressionDictionaryBuildingBuffer, 29761: 29761: 29761: kFilterConstruction, 29761: 29761: kBlockBasedTableReader, 29761: 29761: kFileMetadata, 29761: 29761: kBlobValue, 29761: 29761: 29761: kBlobCache, 29761: 29761: 29761: kMisc, 29761: }; 29761: constexpr uint32_t kNumCacheEntryRoles = 29761: static_cast(CacheEntryRole::kMisc) + 1; 29761: 29761: 29761: const std::string& GetCacheEntryRoleName(CacheEntryRole); 29761: 29761: 29761: using CacheEntryRoleSet = SmallEnumSet; 29761: 29761: 29761: 29761: 29761: struct BlockCacheEntryStatsMapKeys { 29761: static const std::string& CacheId(); 29761: static const std::string& CacheCapacityBytes(); 29761: static const std::string& LastCollectionDurationSeconds(); 29761: static const std::string& LastCollectionAgeSeconds(); 29761: 29761: static std::string EntryCount(CacheEntryRole); 29761: static std::string UsedBytes(CacheEntryRole); 29761: static std::string UsedPercent(CacheEntryRole); 29761: }; 29761: 29761: extern const bool kDefaultToAdaptiveMutex; 29761: 29761: enum CacheMetadataChargePolicy { 29761: 29761: 29761: kDontChargeCacheMetadata, 29761: 29761: 29761: 29761: kFullChargeCacheMetadata 29761: }; 29761: const CacheMetadataChargePolicy kDefaultCacheMetadataChargePolicy = 29761: kFullChargeCacheMetadata; 29761: 29761: 29761: 29761: struct ShardedCacheOptions { 29761: 29761: 29761: 29761: size_t capacity = 0; 29761: 29761: 29761: 29761: 29761: 29761: int num_shard_bits = -1; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool strict_capacity_limit = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr memory_allocator; 29761: 29761: 29761: CacheMetadataChargePolicy metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy; 29761: 29761: 29761: 29761: std::shared_ptr secondary_cache; 29761: 29761: 29761: static constexpr int32_t kQuasiRandomHashSeed = -1; 29761: static constexpr int32_t kHostHashSeed = -2; 29761: # 190 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: int32_t hash_seed = kHostHashSeed; 29761: 29761: ShardedCacheOptions() {} 29761: ShardedCacheOptions( 29761: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 29761: std::shared_ptr _memory_allocator = nullptr, 29761: CacheMetadataChargePolicy _metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy) 29761: : capacity(_capacity), 29761: num_shard_bits(_num_shard_bits), 29761: strict_capacity_limit(_strict_capacity_limit), 29761: memory_allocator(std::move(_memory_allocator)), 29761: metadata_charge_policy(_metadata_charge_policy) {} 29761: 29761: virtual ~ShardedCacheOptions() = default; 29761: }; 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: struct LRUCacheOptions : public ShardedCacheOptions { 29761: # 237 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: double high_pri_pool_ratio = 0.5; 29761: double low_pri_pool_ratio = 0.0; 29761: 29761: 29761: 29761: 29761: 29761: bool use_adaptive_mutex = kDefaultToAdaptiveMutex; 29761: 29761: LRUCacheOptions() {} 29761: LRUCacheOptions(size_t _capacity, int _num_shard_bits, 29761: bool _strict_capacity_limit, double _high_pri_pool_ratio, 29761: std::shared_ptr _memory_allocator = nullptr, 29761: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 29761: CacheMetadataChargePolicy _metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy, 29761: double _low_pri_pool_ratio = 0.0) 29761: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29761: std::move(_memory_allocator), 29761: _metadata_charge_policy), 29761: high_pri_pool_ratio(_high_pri_pool_ratio), 29761: low_pri_pool_ratio(_low_pri_pool_ratio), 29761: use_adaptive_mutex(_use_adaptive_mutex) {} 29761: 29761: 29761: std::shared_ptr MakeSharedCache() const; 29761: 29761: 29761: 29761: std::shared_ptr MakeSharedRowCache() const; 29761: }; 29761: 29761: 29761: inline std::shared_ptr NewLRUCache( 29761: size_t capacity, int num_shard_bits = -1, 29761: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 29761: std::shared_ptr memory_allocator = nullptr, 29761: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 29761: CacheMetadataChargePolicy metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy, 29761: double low_pri_pool_ratio = 0.0) { 29761: return LRUCacheOptions(capacity, num_shard_bits, strict_capacity_limit, 29761: high_pri_pool_ratio, memory_allocator, 29761: use_adaptive_mutex, metadata_charge_policy, 29761: low_pri_pool_ratio) 29761: .MakeSharedCache(); 29761: } 29761: 29761: 29761: inline std::shared_ptr NewLRUCache(const LRUCacheOptions& cache_opts) { 29761: return cache_opts.MakeSharedCache(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: struct CompressedSecondaryCacheOptions : LRUCacheOptions { 29761: 29761: CompressionType compression_type = CompressionType::kLZ4Compression; 29761: 29761: 29761: CompressionOptions compression_opts; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t compress_format_version = 2; 29761: 29761: 29761: 29761: bool enable_custom_split_merge = false; 29761: 29761: 29761: 29761: CacheEntryRoleSet do_not_compress_roles = {CacheEntryRole::kFilterBlock}; 29761: 29761: CompressedSecondaryCacheOptions() {} 29761: CompressedSecondaryCacheOptions( 29761: size_t _capacity, int _num_shard_bits, bool _strict_capacity_limit, 29761: double _high_pri_pool_ratio, double _low_pri_pool_ratio = 0.0, 29761: std::shared_ptr _memory_allocator = nullptr, 29761: bool _use_adaptive_mutex = kDefaultToAdaptiveMutex, 29761: CacheMetadataChargePolicy _metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy, 29761: CompressionType _compression_type = CompressionType::kLZ4Compression, 29761: uint32_t _compress_format_version = 2, 29761: bool _enable_custom_split_merge = false, 29761: const CacheEntryRoleSet& _do_not_compress_roles = 29761: {CacheEntryRole::kFilterBlock}) 29761: : LRUCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29761: _high_pri_pool_ratio, std::move(_memory_allocator), 29761: _use_adaptive_mutex, _metadata_charge_policy, 29761: _low_pri_pool_ratio), 29761: compression_type(_compression_type), 29761: compress_format_version(_compress_format_version), 29761: enable_custom_split_merge(_enable_custom_split_merge), 29761: do_not_compress_roles(_do_not_compress_roles) {} 29761: 29761: 29761: std::shared_ptr MakeSharedSecondaryCache() const; 29761: 29761: 29761: std::shared_ptr MakeSharedCache() const = delete; 29761: }; 29761: 29761: 29761: inline std::shared_ptr NewCompressedSecondaryCache( 29761: size_t capacity, int num_shard_bits = -1, 29761: bool strict_capacity_limit = false, double high_pri_pool_ratio = 0.5, 29761: double low_pri_pool_ratio = 0.0, 29761: std::shared_ptr memory_allocator = nullptr, 29761: bool use_adaptive_mutex = kDefaultToAdaptiveMutex, 29761: CacheMetadataChargePolicy metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy, 29761: CompressionType compression_type = CompressionType::kLZ4Compression, 29761: uint32_t compress_format_version = 2, 29761: bool enable_custom_split_merge = false, 29761: const CacheEntryRoleSet& _do_not_compress_roles = { 29761: CacheEntryRole::kFilterBlock}) { 29761: return CompressedSecondaryCacheOptions( 29761: capacity, num_shard_bits, strict_capacity_limit, 29761: high_pri_pool_ratio, low_pri_pool_ratio, memory_allocator, 29761: use_adaptive_mutex, metadata_charge_policy, compression_type, 29761: compress_format_version, enable_custom_split_merge, 29761: _do_not_compress_roles) 29761: .MakeSharedSecondaryCache(); 29761: } 29761: 29761: 29761: inline std::shared_ptr NewCompressedSecondaryCache( 29761: const CompressedSecondaryCacheOptions& opts) { 29761: return opts.MakeSharedSecondaryCache(); 29761: } 29761: # 388 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: struct HyperClockCacheOptions : public ShardedCacheOptions { 29761: # 425 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: size_t estimated_entry_charge; 29761: # 442 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: size_t min_avg_entry_charge = 450; 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: int eviction_effort_cap = 30; 29761: 29761: HyperClockCacheOptions( 29761: size_t _capacity, size_t _estimated_entry_charge, 29761: int _num_shard_bits = -1, bool _strict_capacity_limit = false, 29761: std::shared_ptr _memory_allocator = nullptr, 29761: CacheMetadataChargePolicy _metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy) 29761: : ShardedCacheOptions(_capacity, _num_shard_bits, _strict_capacity_limit, 29761: std::move(_memory_allocator), 29761: _metadata_charge_policy), 29761: estimated_entry_charge(_estimated_entry_charge) {} 29761: 29761: 29761: std::shared_ptr MakeSharedCache() const; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr NewClockCache( 29761: size_t capacity, int num_shard_bits = -1, 29761: bool strict_capacity_limit = false, 29761: CacheMetadataChargePolicy metadata_charge_policy = 29761: kDefaultCacheMetadataChargePolicy); 29761: 29761: enum PrimaryCacheType { 29761: kCacheTypeLRU, 29761: kCacheTypeHCC, 29761: kCacheTypeMax, 29761: }; 29761: 29761: enum TieredAdmissionPolicy { 29761: 29761: kAdmPolicyAuto, 29761: 29761: 29761: 29761: kAdmPolicyPlaceholder, 29761: 29761: 29761: kAdmPolicyAllowCacheHits, 29761: 29761: 29761: 29761: kAdmPolicyThreeQueue, 29761: 29761: 29761: 29761: 29761: kAdmPolicyAllowAll, 29761: kAdmPolicyMax, 29761: }; 29761: # 543 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: struct TieredCacheOptions { 29761: 29761: 29761: 29761: 29761: ShardedCacheOptions* cache_opts = nullptr; 29761: PrimaryCacheType cache_type = PrimaryCacheType::kCacheTypeLRU; 29761: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyAuto; 29761: CompressedSecondaryCacheOptions comp_cache_opts; 29761: 29761: 29761: 29761: 29761: size_t total_capacity = 0; 29761: double compressed_secondary_ratio = 0.0; 29761: 29761: 29761: 29761: std::shared_ptr nvm_sec_cache; 29761: }; 29761: 29761: std::shared_ptr NewTieredCache(const TieredCacheOptions& cache_opts); 29761: # 575 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/cache.h" 29761: Status UpdateTieredCache( 29761: const std::shared_ptr& cache, int64_t total_capacity = -1, 29761: double compressed_secondary_ratio = std::numeric_limits::max(), 29761: TieredAdmissionPolicy adm_policy = TieredAdmissionPolicy::kAdmPolicyMax); 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 1 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/stdlib.h" 1 3 29761: # 36 "/usr/include/c++/14/stdlib.h" 3 29761: # 1 "/usr/include/c++/14/cstdlib" 1 3 29761: # 39 "/usr/include/c++/14/cstdlib" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdlib" 3 29761: # 37 "/usr/include/c++/14/stdlib.h" 2 3 29761: 29761: 29761: # 38 "/usr/include/c++/14/stdlib.h" 3 29761: using std::abort; 29761: using std::atexit; 29761: using std::exit; 29761: 29761: 29761: using std::at_quick_exit; 29761: 29761: 29761: using std::quick_exit; 29761: 29761: 29761: using std::_Exit; 29761: 29761: 29761: 29761: 29761: using std::div_t; 29761: using std::ldiv_t; 29761: 29761: using std::abs; 29761: using std::atof; 29761: using std::atoi; 29761: using std::atol; 29761: using std::bsearch; 29761: using std::calloc; 29761: using std::div; 29761: using std::free; 29761: using std::getenv; 29761: using std::labs; 29761: using std::ldiv; 29761: using std::malloc; 29761: 29761: using std::mblen; 29761: using std::mbstowcs; 29761: using std::mbtowc; 29761: 29761: using std::qsort; 29761: using std::rand; 29761: using std::realloc; 29761: using std::srand; 29761: using std::strtod; 29761: using std::strtol; 29761: using std::strtoul; 29761: using std::system; 29761: 29761: using std::wcstombs; 29761: using std::wctomb; 29761: # 40 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 2 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: namespace rocksdb { 29761: 29761: class Arena; 29761: class Allocator; 29761: class LookupKey; 29761: class SliceTransform; 29761: class Logger; 29761: struct DBOptions; 29761: 29761: using KeyHandle = void*; 29761: 29761: Slice GetLengthPrefixedSlice(const char* data); 29761: 29761: class MemTableRep { 29761: public: 29761: 29761: 29761: class KeyComparator { 29761: public: 29761: using DecodedType = rocksdb::Slice; 29761: 29761: virtual DecodedType decode_key(const char* key) const { 29761: 29761: 29761: return GetLengthPrefixedSlice(key); 29761: } 29761: 29761: 29761: 29761: virtual int operator()(const char* prefix_len_key1, 29761: const char* prefix_len_key2) const = 0; 29761: 29761: virtual int operator()(const char* prefix_len_key, 29761: const Slice& key) const = 0; 29761: 29761: virtual ~KeyComparator() {} 29761: }; 29761: 29761: explicit MemTableRep(Allocator* allocator) : allocator_(allocator) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual KeyHandle Allocate(const size_t len, char** buf); 29761: 29761: 29761: 29761: 29761: 29761: virtual void Insert(KeyHandle handle) = 0; 29761: 29761: 29761: 29761: 29761: virtual bool InsertKey(KeyHandle handle) { 29761: Insert(handle); 29761: return true; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void InsertWithHint(KeyHandle handle, void** ) { 29761: 29761: Insert(handle); 29761: } 29761: 29761: 29761: 29761: 29761: virtual bool InsertKeyWithHint(KeyHandle handle, void** hint) { 29761: InsertWithHint(handle, hint); 29761: return true; 29761: } 29761: # 137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: virtual void InsertWithHintConcurrently(KeyHandle handle, void** ) { 29761: 29761: InsertConcurrently(handle); 29761: } 29761: 29761: 29761: 29761: 29761: virtual bool InsertKeyWithHintConcurrently(KeyHandle handle, void** hint) { 29761: InsertWithHintConcurrently(handle, hint); 29761: return true; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void InsertConcurrently(KeyHandle handle); 29761: 29761: 29761: 29761: 29761: virtual bool InsertKeyConcurrently(KeyHandle handle) { 29761: InsertConcurrently(handle); 29761: return true; 29761: } 29761: 29761: 29761: virtual bool Contains(const char* key) const = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void MarkReadOnly() {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void MarkFlushed() {} 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: virtual void Get(const LookupKey& k, void* callback_args, 29761: bool (*callback_func)(void* arg, const char* entry)); 29761: 29761: 29761: virtual Status GetAndValidate(const LookupKey& , 29761: void* , 29761: bool (* )(void* arg, 29761: const char* entry), 29761: bool ) { 29761: return Status::NotSupported("GetAndValidate() not implemented."); 29761: } 29761: 29761: virtual uint64_t ApproximateNumEntries(const Slice& , 29761: const Slice& ) { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: virtual void UniqueRandomSample(const uint64_t num_entries, 29761: const uint64_t target_sample_size, 29761: std::unordered_set* entries) { 29761: (void)num_entries; 29761: (void)target_sample_size; 29761: (void)entries; 29761: 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29761: (static_cast ( 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: false 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: "false" 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: ; 29761: } 29761: 29761: 29761: 29761: virtual size_t ApproximateMemoryUsage() = 0; 29761: 29761: virtual ~MemTableRep() {} 29761: 29761: 29761: class Iterator { 29761: public: 29761: 29761: 29761: 29761: virtual ~Iterator() {} 29761: 29761: 29761: virtual bool Valid() const = 0; 29761: 29761: 29761: 29761: virtual const char* key() const = 0; 29761: 29761: 29761: 29761: virtual void Next() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status NextAndValidate(bool ) { 29761: return Status::NotSupported("NextAndValidate() not implemented."); 29761: } 29761: 29761: 29761: 29761: virtual void Prev() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status PrevAndValidate(bool ) { 29761: return Status::NotSupported("PrevAndValidate() not implemented."); 29761: } 29761: 29761: 29761: virtual void Seek(const Slice& internal_key, const char* memtable_key) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status SeekAndValidate(const Slice& , 29761: const char* , 29761: bool ) { 29761: return Status::NotSupported("SeekAndValidate() not implemented."); 29761: } 29761: 29761: 29761: virtual void SeekForPrev(const Slice& internal_key, 29761: const char* memtable_key) = 0; 29761: 29761: virtual void RandomSeek() {} 29761: 29761: 29761: 29761: virtual void SeekToFirst() = 0; 29761: 29761: 29761: 29761: virtual void SeekToLast() = 0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Iterator* GetIterator(Arena* arena = nullptr) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Iterator* GetDynamicPrefixIterator(Arena* arena = nullptr) { 29761: return GetIterator(arena); 29761: } 29761: 29761: 29761: 29761: virtual bool IsMergeOperatorSupported() const { return true; } 29761: 29761: 29761: 29761: virtual bool IsSnapshotSupported() const { return true; } 29761: 29761: protected: 29761: 29761: 29761: virtual Slice UserKey(const char* key) const; 29761: 29761: Allocator* allocator_; 29761: }; 29761: 29761: 29761: 29761: class MemTableRepFactory : public Customizable { 29761: public: 29761: ~MemTableRepFactory() override {} 29761: 29761: static const char* Type() { return "MemTableRepFactory"; } 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& id, 29761: std::unique_ptr* factory); 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& id, 29761: std::shared_ptr* factory); 29761: 29761: virtual MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, 29761: Allocator*, const SliceTransform*, 29761: Logger* logger) = 0; 29761: virtual MemTableRep* CreateMemTableRep( 29761: const MemTableRep::KeyComparator& key_cmp, Allocator* allocator, 29761: const SliceTransform* slice_transform, Logger* logger, 29761: uint32_t ) { 29761: return CreateMemTableRep(key_cmp, allocator, slice_transform, logger); 29761: } 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: 29761: virtual bool IsInsertConcurrentlySupported() const { return false; } 29761: 29761: 29761: 29761: 29761: 29761: virtual bool CanHandleDuplicatedKey() const { return false; } 29761: }; 29761: # 371 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: class SkipListFactory : public MemTableRepFactory { 29761: public: 29761: explicit SkipListFactory(size_t lookahead = 0); 29761: 29761: 29761: static const char* kClassName() { return "SkipListFactory"; } 29761: static const char* kNickName() { return "skip_list"; } 29761: const char* Name() const override { return kClassName(); } 29761: const char* NickName() const override { return kNickName(); } 29761: std::string GetId() const override; 29761: 29761: 29761: using MemTableRepFactory::CreateMemTableRep; 29761: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 29761: const SliceTransform*, 29761: Logger* logger) override; 29761: 29761: bool IsInsertConcurrentlySupported() const override { return true; } 29761: 29761: bool CanHandleDuplicatedKey() const override { return true; } 29761: 29761: private: 29761: size_t lookahead_; 29761: }; 29761: # 404 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: class VectorRepFactory : public MemTableRepFactory { 29761: size_t count_; 29761: 29761: public: 29761: explicit VectorRepFactory(size_t count = 0); 29761: 29761: 29761: static const char* kClassName() { return "VectorRepFactory"; } 29761: static const char* kNickName() { return "vector"; } 29761: const char* Name() const override { return kClassName(); } 29761: const char* NickName() const override { return kNickName(); } 29761: 29761: 29761: using MemTableRepFactory::CreateMemTableRep; 29761: MemTableRep* CreateMemTableRep(const MemTableRep::KeyComparator&, Allocator*, 29761: const SliceTransform*, 29761: Logger* logger) override; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: MemTableRepFactory* NewHashSkipListRepFactory( 29761: size_t bucket_count = 1000000, int32_t skiplist_height = 4, 29761: int32_t skiplist_branching_factor = 4); 29761: # 449 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/memtablerep.h" 29761: MemTableRepFactory* NewHashLinkListRepFactory( 29761: size_t bucket_count = 50000, size_t huge_page_tlb_size = 0, 29761: int bucket_entries_logging_threshold = 4096, 29761: bool if_log_bucket_dist_when_flash = true, 29761: uint32_t threshold_use_skiplist = 256); 29761: 29761: } 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/climits" 1 3 29761: # 39 "/usr/include/c++/14/climits" 3 29761: 29761: # 40 "/usr/include/c++/14/climits" 3 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29761: # 34 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 1 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29761: # 210 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 3 4 29761: # 1 "/usr/include/limits.h" 1 3 4 29761: # 26 "/usr/include/limits.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/libc-header-start.h" 1 3 4 29761: # 27 "/usr/include/limits.h" 2 3 4 29761: # 195 "/usr/include/limits.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 28 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 29761: # 161 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 1 3 4 29761: # 38 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 3 4 29761: # 1 "/usr/include/linux/limits.h" 1 3 4 29761: # 39 "/usr/include/arm-linux-gnueabihf/bits/local_lim.h" 2 3 4 29761: # 162 "/usr/include/arm-linux-gnueabihf/bits/posix1_lim.h" 2 3 4 29761: # 196 "/usr/include/limits.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix2_lim.h" 1 3 4 29761: # 200 "/usr/include/limits.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 1 3 4 29761: # 64 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio_lim.h" 1 3 4 29761: # 65 "/usr/include/arm-linux-gnueabihf/bits/xopen_lim.h" 2 3 4 29761: # 204 "/usr/include/limits.h" 2 3 4 29761: # 211 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 29761: # 8 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/syslimits.h" 2 3 4 29761: # 35 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 2 3 4 29761: # 43 "/usr/include/c++/14/climits" 2 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 2 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: enum CompactionStopStyle { 29761: kCompactionStopStyleSimilarSize, 29761: kCompactionStopStyleTotalSize 29761: }; 29761: 29761: class CompactionOptionsUniversal { 29761: public: 29761: 29761: 29761: 29761: unsigned int size_ratio; 29761: 29761: 29761: unsigned int min_merge_width; 29761: 29761: 29761: unsigned int max_merge_width; 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29761: unsigned int max_size_amplification_percent; 29761: # 66 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29761: int compression_size_percent; 29761: # 96 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29761: int max_read_amp; 29761: 29761: 29761: 29761: CompactionStopStyle stop_style; 29761: 29761: 29761: 29761: 29761: bool allow_trivial_move; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool incremental; 29761: 29761: 29761: CompactionOptionsUniversal() 29761: : size_ratio(1), 29761: min_merge_width(2), 29761: max_merge_width( 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 3 4 29761: (0x7fffffff * 2U + 1U) 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/universal_compaction.h" 29761: ), 29761: max_size_amplification_percent(200), 29761: compression_size_percent(-1), 29761: max_read_amp(-1), 29761: stop_style(kCompactionStopStyleTotalSize), 29761: allow_trivial_move(false), 29761: incremental(false) {} 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class SliceTransform; 29761: class TablePropertiesCollectorFactory; 29761: class TableFactory; 29761: struct Options; 29761: 29761: enum CompactionStyle : char { 29761: 29761: kCompactionStyleLevel = 0x0, 29761: 29761: kCompactionStyleUniversal = 0x1, 29761: 29761: kCompactionStyleFIFO = 0x2, 29761: 29761: 29761: kCompactionStyleNone = 0x3, 29761: }; 29761: 29761: 29761: 29761: 29761: enum CompactionPri : char { 29761: 29761: kByCompensatedSize = 0x0, 29761: 29761: 29761: kOldestLargestSeqFirst = 0x1, 29761: 29761: 29761: 29761: kOldestSmallestSeqFirst = 0x2, 29761: 29761: 29761: 29761: 29761: 29761: kMinOverlappingRatio = 0x3, 29761: 29761: 29761: 29761: 29761: kRoundRobin = 0x4, 29761: }; 29761: 29761: struct FileTemperatureAge { 29761: Temperature temperature = Temperature::kUnknown; 29761: uint64_t age = 0; 29761: }; 29761: 29761: struct CompactionOptionsFIFO { 29761: 29761: 29761: 29761: uint64_t max_table_files_size; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool allow_compaction = false; 29761: 29761: 29761: 29761: 29761: uint64_t age_for_warm = 0; 29761: # 113 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: std::vector file_temperature_age_thresholds{}; 29761: 29761: CompactionOptionsFIFO() : max_table_files_size(1 * 1024 * 1024 * 1024) {} 29761: CompactionOptionsFIFO(uint64_t _max_table_files_size, bool _allow_compaction) 29761: : max_table_files_size(_max_table_files_size), 29761: allow_compaction(_allow_compaction) {} 29761: }; 29761: 29761: 29761: 29761: 29761: enum class CacheTier : uint8_t { 29761: kVolatileTier = 0, 29761: kVolatileCompressedTier = 0x01, 29761: kNonVolatileBlockTier = 0x02, 29761: }; 29761: 29761: enum UpdateStatus { 29761: UPDATE_FAILED = 0, 29761: UPDATED_INPLACE = 1, 29761: UPDATED = 2, 29761: }; 29761: 29761: enum class PrepopulateBlobCache : uint8_t { 29761: kDisable = 0x0, 29761: kFlushOnly = 0x1, 29761: }; 29761: 29761: struct AdvancedColumnFamilyOptions { 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int max_write_buffer_number = 2; 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int min_write_buffer_number_to_merge = 1; 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int max_write_buffer_number_to_maintain = 0; 29761: # 221 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int64_t max_write_buffer_size_to_maintain = 0; 29761: # 242 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool inplace_update_support = false; 29761: 29761: 29761: 29761: 29761: 29761: size_t inplace_update_num_locks = 10000; 29761: # 265 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: double experimental_mempurge_threshold = 0.0; 29761: # 308 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: UpdateStatus (*inplace_callback)(char* existing_value, 29761: uint32_t* existing_value_size, 29761: Slice delta_value, 29761: std::string* merged_value) = nullptr; 29761: # 327 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: double memtable_prefix_bloom_size_ratio = 0.0; 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool memtable_whole_key_filtering = false; 29761: # 348 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: size_t memtable_huge_page_size = 0; 29761: # 369 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: std::shared_ptr 29761: memtable_insert_with_hint_prefix_extractor = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t bloom_locality = 0; 29761: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: size_t arena_block_size = 0; 29761: # 426 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: std::vector compression_per_level; 29761: 29761: 29761: int num_levels = 7; 29761: # 438 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int level0_slowdown_writes_trigger = 20; 29761: 29761: 29761: 29761: 29761: 29761: 29761: int level0_stop_writes_trigger = 36; 29761: # 459 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t target_file_size_base = 64 * 1048576; 29761: 29761: 29761: 29761: 29761: 29761: int target_file_size_multiplier = 1; 29761: # 546 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool level_compaction_dynamic_level_bytes = true; 29761: 29761: 29761: 29761: 29761: double max_bytes_for_level_multiplier = 10; 29761: # 562 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: std::vector max_bytes_for_level_multiplier_additional = 29761: std::vector(static_cast(num_levels), 1); 29761: # 572 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t max_compaction_bytes = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t soft_pending_compaction_bytes_limit = 64 * 1073741824ull; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t hard_pending_compaction_bytes_limit = 256 * 1073741824ull; 29761: 29761: 29761: CompactionStyle compaction_style = kCompactionStyleLevel; 29761: 29761: 29761: 29761: 29761: CompactionPri compaction_pri = kMinOverlappingRatio; 29761: 29761: 29761: 29761: 29761: 29761: 29761: CompactionOptionsUniversal compaction_options_universal; 29761: 29761: 29761: 29761: 29761: 29761: 29761: CompactionOptionsFIFO compaction_options_fifo; 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t max_sequential_skip_in_iterations = 8; 29761: 29761: 29761: 29761: 29761: std::shared_ptr memtable_factory = 29761: std::shared_ptr(new SkipListFactory); 29761: # 645 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: using TablePropertiesCollectorFactories = 29761: std::vector>; 29761: TablePropertiesCollectorFactories table_properties_collector_factories; 29761: # 661 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: size_t max_successive_merges = 0; 29761: # 671 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool strict_max_successive_merges = false; 29761: # 687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool optimize_filters_for_hits = false; 29761: # 696 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool paranoid_file_checks = false; 29761: # 706 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool force_consistency_checks = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool report_bg_io_stats = false; 29761: # 747 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t ttl = 0xfffffffffffffffe; 29761: # 795 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t periodic_compaction_seconds = 0xfffffffffffffffe; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t sample_for_compression = 0; 29761: # 810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: Temperature last_level_temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Temperature default_write_temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Temperature default_temperature = Temperature::kUnknown; 29761: # 843 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t preclude_last_level_data_seconds = 0; 29761: # 866 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t preserve_internal_time_seconds = 0; 29761: # 880 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool enable_blob_files = false; 29761: # 892 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t min_blob_size = 0; 29761: # 901 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint64_t blob_file_size = 1ULL << 28; 29761: # 910 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: CompressionType blob_compression_type = kNoCompression; 29761: # 922 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool enable_blob_garbage_collection = false; 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: double blob_garbage_collection_age_cutoff = 0.25; 29761: # 945 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: double blob_garbage_collection_force_threshold = 1.0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t blob_compaction_readahead_size = 0; 29761: # 967 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: int blob_file_starting_level = 0; 29761: # 977 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: std::shared_ptr blob_cache = nullptr; 29761: # 988 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: PrepopulateBlobCache prepopulate_blob_cache = PrepopulateBlobCache::kDisable; 29761: # 1004 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint32_t memtable_protection_bytes_per_key = 0; 29761: # 1054 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: bool persist_user_defined_timestamps = true; 29761: # 1069 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint8_t block_protection_bytes_per_key = 0; 29761: # 1081 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_options.h" 29761: uint32_t bottommost_file_compaction_delay = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool paranoid_memory_checks = false; 29761: 29761: 29761: AdvancedColumnFamilyOptions(); 29761: 29761: explicit AdvancedColumnFamilyOptions(const Options& options); 29761: 29761: 29761: }; 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 1 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstdarg" 1 3 29761: # 39 "/usr/include/c++/14/cstdarg" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdarg" 3 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stdarg.h" 1 3 4 29761: # 44 "/usr/include/c++/14/cstdarg" 2 3 29761: # 53 "/usr/include/c++/14/cstdarg" 3 29761: 29761: # 53 "/usr/include/c++/14/cstdarg" 3 29761: namespace std 29761: { 29761: using ::va_list; 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/functor_wrapper.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/functor_wrapper.h" 29761: namespace rocksdb { 29761: 29761: namespace detail { 29761: template 29761: struct IndexSequence {}; 29761: 29761: template 29761: struct IndexSequenceHelper 29761: : public IndexSequenceHelper {}; 29761: 29761: template 29761: struct IndexSequenceHelper<0U, Next...> { 29761: using type = IndexSequence; 29761: }; 29761: 29761: template 29761: using make_index_sequence = typename IndexSequenceHelper::type; 29761: 29761: template 29761: void call(Function f, Tuple t, IndexSequence) { 29761: f(std::get(t)...); 29761: } 29761: 29761: template 29761: void call(Function f, Tuple t) { 29761: static constexpr auto size = std::tuple_size::value; 29761: call(f, t, make_index_sequence{}); 29761: } 29761: } 29761: 29761: template 29761: class FunctorWrapper { 29761: public: 29761: explicit FunctorWrapper(std::function functor, Args &&...args) 29761: : functor_(std::move(functor)), args_(std::forward(args)...) {} 29761: 29761: void invoke() { detail::call(functor_, args_); } 29761: 29761: private: 29761: std::function functor_; 29761: std::tuple args_; 29761: }; 29761: } 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 1 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 29761: 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/thread_status.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: template 29761: struct constexpr_max { 29761: static const int result = (A > B) ? A : B; 29761: }; 29761: 29761: 29761: 29761: 29761: struct ThreadStatus { 29761: 29761: enum ThreadType : int { 29761: HIGH_PRIORITY = 0, 29761: LOW_PRIORITY, 29761: USER, 29761: BOTTOM_PRIORITY, 29761: NUM_THREAD_TYPES 29761: }; 29761: 29761: 29761: 29761: 29761: enum OperationType : int { 29761: OP_UNKNOWN = 0, 29761: OP_COMPACTION, 29761: OP_FLUSH, 29761: OP_DBOPEN, 29761: OP_GET, 29761: OP_MULTIGET, 29761: OP_DBITERATOR, 29761: OP_VERIFY_DB_CHECKSUM, 29761: OP_VERIFY_FILE_CHECKSUMS, 29761: OP_GETENTITY, 29761: OP_MULTIGETENTITY, 29761: OP_READ_MANIFEST, 29761: NUM_OP_TYPES 29761: }; 29761: 29761: enum OperationStage : int { 29761: STAGE_UNKNOWN = 0, 29761: STAGE_FLUSH_RUN, 29761: STAGE_FLUSH_WRITE_L0, 29761: STAGE_COMPACTION_PREPARE, 29761: STAGE_COMPACTION_RUN, 29761: STAGE_COMPACTION_PROCESS_KV, 29761: STAGE_COMPACTION_INSTALL, 29761: STAGE_COMPACTION_SYNC_FILE, 29761: STAGE_PICK_MEMTABLES_TO_FLUSH, 29761: STAGE_MEMTABLE_ROLLBACK, 29761: STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 29761: NUM_OP_STAGES 29761: }; 29761: 29761: enum CompactionPropertyType : int { 29761: COMPACTION_JOB_ID = 0, 29761: COMPACTION_INPUT_OUTPUT_LEVEL, 29761: COMPACTION_PROP_FLAGS, 29761: COMPACTION_TOTAL_INPUT_BYTES, 29761: COMPACTION_BYTES_READ, 29761: COMPACTION_BYTES_WRITTEN, 29761: NUM_COMPACTION_PROPERTIES 29761: }; 29761: 29761: enum FlushPropertyType : int { 29761: FLUSH_JOB_ID = 0, 29761: FLUSH_BYTES_MEMTABLES, 29761: FLUSH_BYTES_WRITTEN, 29761: NUM_FLUSH_PROPERTIES 29761: }; 29761: 29761: 29761: 29761: static const int kNumOperationProperties = 29761: constexpr_max::result; 29761: 29761: 29761: 29761: 29761: enum StateType : int { 29761: STATE_UNKNOWN = 0, 29761: STATE_MUTEX_WAIT = 1, 29761: NUM_STATE_TYPES 29761: }; 29761: 29761: ThreadStatus(const uint64_t _id, const ThreadType _thread_type, 29761: const std::string& _db_name, const std::string& _cf_name, 29761: const OperationType _operation_type, 29761: const uint64_t _op_elapsed_micros, 29761: const OperationStage _operation_stage, 29761: const uint64_t _op_props[], const StateType _state_type) 29761: : thread_id(_id), 29761: thread_type(_thread_type), 29761: db_name(_db_name), 29761: cf_name(_cf_name), 29761: operation_type(_operation_type), 29761: op_elapsed_micros(_op_elapsed_micros), 29761: operation_stage(_operation_stage), 29761: state_type(_state_type) { 29761: for (int i = 0; i < kNumOperationProperties; ++i) { 29761: op_properties[i] = _op_props[i]; 29761: } 29761: } 29761: 29761: 29761: const uint64_t thread_id; 29761: 29761: 29761: 29761: const ThreadType thread_type; 29761: 29761: 29761: 29761: 29761: const std::string db_name; 29761: 29761: 29761: 29761: 29761: const std::string cf_name; 29761: 29761: 29761: const OperationType operation_type; 29761: 29761: 29761: const uint64_t op_elapsed_micros; 29761: 29761: 29761: 29761: const OperationStage operation_stage; 29761: 29761: 29761: 29761: 29761: uint64_t op_properties[kNumOperationProperties]; 29761: 29761: 29761: const StateType state_type; 29761: 29761: 29761: 29761: 29761: static std::string GetThreadTypeName(ThreadType thread_type); 29761: 29761: 29761: static const std::string& GetOperationName(OperationType op_type); 29761: 29761: static const std::string MicrosToString(uint64_t op_elapsed_time); 29761: 29761: 29761: static const std::string& GetOperationStageName(OperationStage stage); 29761: 29761: 29761: 29761: static const std::string& GetOperationPropertyName(OperationType op_type, 29761: int i); 29761: 29761: 29761: 29761: static std::map InterpretOperationProperties( 29761: OperationType op_type, const uint64_t* op_properties); 29761: 29761: 29761: static const std::string& GetStateName(StateType state_type); 29761: }; 29761: 29761: } 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 2 29761: # 49 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: namespace rocksdb { 29761: 29761: class DynamicLibrary; 29761: class FileLock; 29761: class Logger; 29761: class RandomAccessFile; 29761: class SequentialFile; 29761: class Slice; 29761: struct DataVerificationInfo; 29761: class WritableFile; 29761: class RandomRWFile; 29761: class MemoryMappedFileBuffer; 29761: class Directory; 29761: struct DBOptions; 29761: struct ImmutableDBOptions; 29761: struct MutableDBOptions; 29761: class RateLimiter; 29761: class ThreadStatusUpdater; 29761: struct ThreadStatus; 29761: class FileSystem; 29761: class SystemClock; 29761: struct ConfigOptions; 29761: struct IOOptions; 29761: 29761: const size_t kDefaultPageSize = 4 * 1024; 29761: 29761: 29761: struct EnvOptions { 29761: 29761: EnvOptions(); 29761: 29761: 29761: explicit EnvOptions(const DBOptions& options); 29761: 29761: 29761: 29761: bool use_mmap_reads = false; 29761: 29761: 29761: bool use_mmap_writes = true; 29761: 29761: 29761: bool use_direct_reads = false; 29761: 29761: 29761: bool use_direct_writes = false; 29761: 29761: 29761: bool allow_fallocate = true; 29761: 29761: 29761: bool set_fd_cloexec = true; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t bytes_per_sync = 0; 29761: # 123 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: bool strict_bytes_per_sync = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool fallocate_with_keep_size = true; 29761: 29761: 29761: size_t compaction_readahead_size = 0; 29761: 29761: 29761: size_t random_access_max_buffer_size = 0; 29761: 29761: 29761: size_t writable_file_max_buffer_size = 1024 * 1024; 29761: 29761: 29761: RateLimiter* rate_limiter = nullptr; 29761: }; 29761: # 154 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: class Env : public Customizable { 29761: public: 29761: static const char* kDefaultName() { return "DefaultEnv"; } 29761: struct FileAttributes { 29761: 29761: std::string name; 29761: 29761: 29761: uint64_t size_bytes; 29761: 29761: 29761: Temperature temperature = Temperature::kUnknown; 29761: }; 29761: 29761: Env(); 29761: 29761: 29761: explicit Env(const std::shared_ptr& fs); 29761: Env(const std::shared_ptr& fs, 29761: const std::shared_ptr& clock); 29761: 29761: Env(const Env&) = delete; 29761: void operator=(const Env&) = delete; 29761: 29761: ~Env() override; 29761: 29761: static const char* Type() { return "Environment"; } 29761: 29761: 29761: 29761: const char* Name() const override { return ""; } 29761: # 199 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& value, Env** result); 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& value, Env** result, 29761: std::shared_ptr* guard); 29761: 29761: 29761: 29761: 29761: 29761: static Status CreateFromUri(const ConfigOptions& options, 29761: const std::string& env_uri, 29761: const std::string& fs_uri, Env** result, 29761: std::shared_ptr* guard); 29761: 29761: 29761: 29761: 29761: 29761: 29761: static Env* Default(); 29761: 29761: 29761: virtual Status RegisterDbPaths(const std::vector& ) { 29761: return Status::OK(); 29761: } 29761: 29761: virtual Status UnregisterDbPaths(const std::vector& ) { 29761: return Status::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status NewSequentialFile(const std::string& fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options) = 0; 29761: # 247 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status NewRandomAccessFile(const std::string& fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options) = 0; 29761: 29761: 29761: enum WriteLifeTimeHint { 29761: WLTH_NOT_SET = 0, 29761: WLTH_NONE, 29761: WLTH_SHORT, 29761: WLTH_MEDIUM, 29761: WLTH_LONG, 29761: WLTH_EXTREME, 29761: }; 29761: # 268 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status NewWritableFile(const std::string& fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options) = 0; 29761: # 280 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status ReopenWritableFile(const std::string& , 29761: std::unique_ptr* , 29761: const EnvOptions& ) { 29761: return Status::NotSupported("Env::ReopenWritableFile() not supported."); 29761: } 29761: 29761: 29761: virtual Status ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status NewRandomRWFile(const std::string& , 29761: std::unique_ptr* , 29761: const EnvOptions& ) { 29761: return Status::NotSupported("RandomRWFile is not implemented in this Env"); 29761: } 29761: 29761: 29761: 29761: 29761: virtual Status NewMemoryMappedFileBuffer( 29761: const std::string& , 29761: std::unique_ptr* ) { 29761: return Status::NotSupported( 29761: "MemoryMappedFileBuffer is not implemented in this Env"); 29761: } 29761: # 320 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status NewDirectory(const std::string& name, 29761: std::unique_ptr* result) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status FileExists(const std::string& fname) = 0; 29761: # 338 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status GetChildren(const std::string& dir, 29761: std::vector* result) = 0; 29761: # 352 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status GetChildrenFileAttributes(const std::string& dir, 29761: std::vector* result); 29761: 29761: 29761: virtual Status DeleteFile(const std::string& fname) = 0; 29761: 29761: 29761: virtual Status Truncate(const std::string& , size_t ) { 29761: return Status::NotSupported("Truncate is not supported for this Env"); 29761: } 29761: 29761: 29761: virtual Status CreateDir(const std::string& dirname) = 0; 29761: 29761: 29761: 29761: virtual Status CreateDirIfMissing(const std::string& dirname) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status DeleteDir(const std::string& dirname) = 0; 29761: 29761: 29761: virtual Status GetFileSize(const std::string& fname, uint64_t* file_size) = 0; 29761: 29761: 29761: virtual Status GetFileModificationTime(const std::string& fname, 29761: uint64_t* file_mtime) = 0; 29761: 29761: virtual Status RenameFile(const std::string& src, 29761: const std::string& target) = 0; 29761: 29761: 29761: virtual Status LinkFile(const std::string& , 29761: const std::string& ) { 29761: return Status::NotSupported("LinkFile is not supported for this Env"); 29761: } 29761: 29761: virtual Status NumFileLinks(const std::string& , 29761: uint64_t* ) { 29761: return Status::NotSupported( 29761: "Getting number of file links is not supported for this Env"); 29761: } 29761: 29761: virtual Status AreFilesSame(const std::string& , 29761: const std::string& , bool* ) { 29761: return Status::NotSupported("AreFilesSame is not supported for this Env"); 29761: } 29761: # 416 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status LockFile(const std::string& fname, FileLock** lock) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status UnlockFile(FileLock* lock) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status LoadLibrary(const std::string& , 29761: const std::string& , 29761: std::shared_ptr* ) { 29761: return Status::NotSupported("LoadLibrary is not implemented in this Env"); 29761: } 29761: 29761: 29761: enum Priority { BOTTOM, LOW, HIGH, USER, TOTAL }; 29761: 29761: static std::string PriorityToString(Priority priority); 29761: 29761: 29761: enum IOPriority { 29761: IO_LOW = 0, 29761: IO_MID = 1, 29761: IO_HIGH = 2, 29761: IO_USER = 3, 29761: IO_TOTAL = 4 29761: }; 29761: 29761: 29761: enum class IOActivity : uint8_t { 29761: kFlush = 0, 29761: kCompaction = 1, 29761: kDBOpen = 2, 29761: kGet = 3, 29761: kMultiGet = 4, 29761: kDBIterator = 5, 29761: kVerifyDBChecksum = 6, 29761: kVerifyFileChecksums = 7, 29761: kGetEntity = 8, 29761: kMultiGetEntity = 9, 29761: kReadManifest = 10, 29761: kUnknown, 29761: }; 29761: # 475 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual void Schedule(void (*function)(void* arg), void* arg, 29761: Priority pri = LOW, void* tag = nullptr, 29761: void (*unschedFunction)(void* arg) = nullptr) = 0; 29761: 29761: 29761: 29761: virtual int UnSchedule(void* , Priority ) { return 0; } 29761: 29761: 29761: 29761: virtual void StartThread(void (*function)(void* arg), void* arg) = 0; 29761: 29761: 29761: 29761: template 29761: void StartThreadTyped(FunctionT function, Args&&... args) { 29761: using FWType = FunctorWrapper; 29761: StartThread( 29761: [](void* arg) { 29761: auto* functor = static_cast(arg); 29761: functor->invoke(); 29761: delete functor; 29761: }, 29761: new FWType(std::function(function), 29761: std::forward(args)...)); 29761: } 29761: 29761: 29761: virtual void WaitForJoin() {} 29761: 29761: 29761: virtual int ReserveThreads(int , Priority ) { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: virtual int ReleaseThreads(int , Priority ) { 29761: return 0; 29761: } 29761: 29761: 29761: virtual unsigned int GetThreadPoolQueueLen(Priority = LOW) const { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetTestDirectory(std::string* path) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status NewLogger(const std::string& fname, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: 29761: virtual uint64_t NowMicros() = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual uint64_t NowNanos() { return NowMicros() * 1000; } 29761: 29761: 29761: virtual uint64_t NowCPUNanos() { return 0; } 29761: 29761: 29761: virtual void SleepForMicroseconds(int micros) = 0; 29761: 29761: 29761: 29761: virtual Status GetHostName(char* name, uint64_t len) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status GetHostNameString(std::string* result); 29761: 29761: 29761: 29761: virtual Status GetCurrentTime(int64_t* unix_time) = 0; 29761: 29761: 29761: virtual Status GetAbsolutePath(const std::string& db_path, 29761: std::string* output_path) = 0; 29761: 29761: 29761: 29761: 29761: virtual void SetBackgroundThreads(int number, Priority pri = LOW) = 0; 29761: virtual int GetBackgroundThreads(Priority pri = LOW) = 0; 29761: 29761: virtual Status SetAllowNonOwnerAccess(bool ) { 29761: return Status::NotSupported("Env::SetAllowNonOwnerAccess() not supported."); 29761: } 29761: 29761: 29761: 29761: 29761: virtual void IncBackgroundThreadsIfNeeded(int number, Priority pri) = 0; 29761: 29761: 29761: virtual void LowerThreadPoolIOPriority(Priority = LOW) {} 29761: 29761: 29761: virtual Status LowerThreadPoolCPUPriority(Priority , 29761: CpuPriority ) { 29761: return Status::NotSupported( 29761: "Env::LowerThreadPoolCPUPriority(Priority, CpuPriority) not supported"); 29761: } 29761: 29761: 29761: virtual void LowerThreadPoolCPUPriority(Priority = LOW) {} 29761: 29761: 29761: virtual std::string TimeToString(uint64_t time) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual std::string GenerateUniqueId(); 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const; 29761: 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForManifestRead( 29761: const EnvOptions& env_options) const; 29761: 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 29761: const DBOptions& db_options) const; 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForManifestWrite( 29761: const EnvOptions& env_options) const; 29761: 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForCompactionTableWrite( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& immutable_ops) const; 29761: 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForCompactionTableRead( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& db_options) const; 29761: 29761: 29761: 29761: 29761: virtual EnvOptions OptimizeForBlobFileRead( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& db_options) const; 29761: 29761: 29761: virtual Status GetThreadList(std::vector* ) { 29761: return Status::NotSupported("Env::GetThreadList() not supported."); 29761: } 29761: 29761: 29761: 29761: 29761: virtual ThreadStatusUpdater* GetThreadStatusUpdater() const { 29761: return thread_status_updater_; 29761: } 29761: 29761: 29761: virtual uint64_t GetThreadID() const; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetFreeSpace(const std::string& , 29761: uint64_t* ) { 29761: return Status::NotSupported("Env::GetFreeSpace() not supported."); 29761: } 29761: 29761: 29761: virtual Status IsDirectory(const std::string& , bool* ) { 29761: return Status::NotSupported("Env::IsDirectory() not supported."); 29761: } 29761: 29761: virtual void SanitizeEnvOptions(EnvOptions* ) const {} 29761: 29761: 29761: 29761: const std::shared_ptr& GetFileSystem() const; 29761: 29761: 29761: 29761: const std::shared_ptr& GetSystemClock() const; 29761: 29761: 29761: 29761: protected: 29761: 29761: 29761: ThreadStatusUpdater* thread_status_updater_; 29761: 29761: 29761: std::shared_ptr file_system_; 29761: 29761: 29761: std::shared_ptr system_clock_; 29761: 29761: private: 29761: static const size_t kMaxHostNameLen = 256; 29761: }; 29761: 29761: 29761: 29761: 29761: ThreadStatusUpdater* CreateThreadStatusUpdater(); 29761: 29761: 29761: class SequentialFile { 29761: public: 29761: SequentialFile() {} 29761: virtual ~SequentialFile(); 29761: # 726 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status Read(size_t n, Slice* result, char* scratch) = 0; 29761: # 735 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status Skip(uint64_t n) = 0; 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: 29761: virtual Status InvalidateCache(size_t , size_t ) { 29761: return Status::NotSupported( 29761: "SequentialFile::InvalidateCache not supported."); 29761: } 29761: 29761: 29761: 29761: virtual Status PositionedRead(uint64_t , size_t , 29761: Slice* , char* ) { 29761: return Status::NotSupported( 29761: "SequentialFile::PositionedRead() not supported."); 29761: } 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: struct ReadRequest { 29761: 29761: uint64_t offset; 29761: 29761: 29761: 29761: size_t len; 29761: 29761: 29761: 29761: char* scratch; 29761: 29761: 29761: 29761: Slice result; 29761: 29761: 29761: Status status; 29761: }; 29761: 29761: 29761: class RandomAccessFile { 29761: public: 29761: RandomAccessFile() {} 29761: virtual ~RandomAccessFile(); 29761: # 806 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status Read(uint64_t offset, size_t n, Slice* result, 29761: char* scratch) const = 0; 29761: 29761: 29761: virtual Status Prefetch(uint64_t , size_t ) { 29761: return Status::OK(); 29761: } 29761: # 821 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status MultiRead(ReadRequest* reqs, size_t num_reqs) { 29761: 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: (static_cast ( 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: reqs != nullptr 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: "reqs != nullptr" 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: ; 29761: for (size_t i = 0; i < num_reqs; ++i) { 29761: ReadRequest& req = reqs[i]; 29761: req.status = Read(req.offset, req.len, &req.result, req.scratch); 29761: } 29761: return Status::OK(); 29761: } 29761: # 845 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: 29761: } 29761: 29761: enum AccessPattern { NORMAL, RANDOM, SEQUENTIAL, WILLNEED, DONTNEED }; 29761: 29761: virtual void Hint(AccessPattern ) {} 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: 29761: virtual Status InvalidateCache(size_t , size_t ) { 29761: return Status::NotSupported( 29761: "RandomAccessFile::InvalidateCache not supported."); 29761: } 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: class WritableFile { 29761: public: 29761: WritableFile() 29761: : last_preallocated_block_(0), 29761: preallocation_block_size_(0), 29761: io_priority_(Env::IO_TOTAL), 29761: write_hint_(Env::WLTH_NOT_SET), 29761: strict_bytes_per_sync_(false) {} 29761: 29761: explicit WritableFile(const EnvOptions& options) 29761: : last_preallocated_block_(0), 29761: preallocation_block_size_(0), 29761: io_priority_(Env::IO_TOTAL), 29761: write_hint_(Env::WLTH_NOT_SET), 29761: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 29761: 29761: WritableFile(const WritableFile&) = delete; 29761: void operator=(const WritableFile&) = delete; 29761: 29761: 29761: 29761: 29761: virtual ~WritableFile(); 29761: 29761: 29761: 29761: 29761: virtual Status Append(const Slice& data) = 0; 29761: # 913 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status Append(const Slice& data, 29761: const DataVerificationInfo& ) { 29761: return Append(data); 29761: } 29761: # 938 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status PositionedAppend(const Slice& , 29761: uint64_t ) { 29761: return Status::NotSupported( 29761: "WritableFile::PositionedAppend() not supported."); 29761: } 29761: # 951 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status PositionedAppend( 29761: const Slice& , uint64_t , 29761: const DataVerificationInfo& ) { 29761: return Status::NotSupported("PositionedAppend"); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Truncate(uint64_t ) { return Status::OK(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Close() = 0; 29761: virtual Status Flush() = 0; 29761: virtual Status Sync() = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Fsync() { return Sync(); } 29761: 29761: 29761: 29761: virtual bool IsSyncThreadSafe() const { return false; } 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: # 1003 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 29761: 29761: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 29761: 29761: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 29761: write_hint_ = hint; 29761: } 29761: 29761: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 29761: 29761: 29761: 29761: virtual uint64_t GetFileSize() = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void SetPreallocationBlockSize(size_t size) { 29761: preallocation_block_size_ = size; 29761: } 29761: 29761: virtual void GetPreallocationStatus(size_t* block_size, 29761: size_t* last_allocated_block) { 29761: *last_allocated_block = last_preallocated_block_; 29761: *block_size = preallocation_block_size_; 29761: } 29761: 29761: 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status InvalidateCache(size_t , size_t ) { 29761: return Status::NotSupported("WritableFile::InvalidateCache not supported."); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status RangeSync(uint64_t , uint64_t ) { 29761: if (strict_bytes_per_sync_) { 29761: return Sync(); 29761: } 29761: return Status::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void PrepareWrite(size_t offset, size_t len) { 29761: if (preallocation_block_size_ == 0) { 29761: return; 29761: } 29761: 29761: 29761: 29761: const auto block_size = preallocation_block_size_; 29761: size_t new_last_preallocated_block = 29761: (offset + len + block_size - 1) / block_size; 29761: if (new_last_preallocated_block > last_preallocated_block_) { 29761: size_t num_spanned_blocks = 29761: new_last_preallocated_block - last_preallocated_block_; 29761: 29761: Allocate(block_size * last_preallocated_block_, 29761: block_size * num_spanned_blocks) 29761: .PermitUncheckedError(); 29761: last_preallocated_block_ = new_last_preallocated_block; 29761: } 29761: } 29761: 29761: 29761: virtual Status Allocate(uint64_t , uint64_t ) { 29761: return Status::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: protected: 29761: size_t preallocation_block_size() { return preallocation_block_size_; } 29761: 29761: private: 29761: size_t last_preallocated_block_; 29761: size_t preallocation_block_size_; 29761: 29761: protected: 29761: Env::IOPriority io_priority_; 29761: Env::WriteLifeTimeHint write_hint_; 29761: const bool strict_bytes_per_sync_; 29761: }; 29761: 29761: 29761: class RandomRWFile { 29761: public: 29761: RandomRWFile() {} 29761: 29761: RandomRWFile(const RandomRWFile&) = delete; 29761: RandomRWFile& operator=(const RandomRWFile&) = delete; 29761: 29761: 29761: 29761: 29761: virtual ~RandomRWFile() {} 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: virtual Status Write(uint64_t offset, const Slice& data) = 0; 29761: # 1139 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: virtual Status Read(uint64_t offset, size_t n, Slice* result, 29761: char* scratch) const = 0; 29761: 29761: virtual Status Flush() = 0; 29761: 29761: virtual Status Sync() = 0; 29761: 29761: virtual Status Fsync() { return Sync(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Close() = 0; 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: class MemoryMappedFileBuffer { 29761: public: 29761: MemoryMappedFileBuffer(void* _base, size_t _length) 29761: : base_(_base), length_(_length) {} 29761: 29761: virtual ~MemoryMappedFileBuffer() = 0; 29761: 29761: 29761: 29761: MemoryMappedFileBuffer(const MemoryMappedFileBuffer&) = delete; 29761: MemoryMappedFileBuffer& operator=(const MemoryMappedFileBuffer&) = delete; 29761: 29761: void* GetBase() const { return base_; } 29761: size_t GetLen() const { return length_; } 29761: 29761: protected: 29761: void* base_; 29761: const size_t length_; 29761: }; 29761: 29761: 29761: 29761: class Directory { 29761: public: 29761: 29761: 29761: virtual ~Directory() {} 29761: 29761: virtual Status Fsync() = 0; 29761: 29761: 29761: 29761: virtual Status Close() { return Status::NotSupported("Close"); } 29761: 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: }; 29761: 29761: enum InfoLogLevel : unsigned char { 29761: DEBUG_LEVEL = 0, 29761: INFO_LEVEL, 29761: WARN_LEVEL, 29761: ERROR_LEVEL, 29761: FATAL_LEVEL, 29761: HEADER_LEVEL, 29761: NUM_INFO_LOG_LEVELS, 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class Logger { 29761: public: 29761: static constexpr size_t kDoNotSupportGetLogFileSize = 29761: # 1220 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: (4294967295U) 29761: # 1220 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: ; 29761: 29761: 29761: 29761: static const InfoLogLevel kDefaultLogLevel; 29761: 29761: explicit Logger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL) 29761: : closed_(false), log_level_(log_level) {} 29761: 29761: Logger(const Logger&) = delete; 29761: void operator=(const Logger&) = delete; 29761: 29761: virtual ~Logger(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Close(); 29761: 29761: 29761: 29761: 29761: virtual void LogHeader(const char* format, va_list ap) { 29761: 29761: 29761: Logv(InfoLogLevel::INFO_LEVEL, format, ap); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void Logv(const char* , va_list ) { 29761: 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: (static_cast ( 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: false 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: "false" 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: ; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual void Logv(const InfoLogLevel log_level, const char* format, 29761: va_list ap); 29761: 29761: virtual size_t GetLogFileSize() const { return kDoNotSupportGetLogFileSize; } 29761: 29761: virtual void Flush() {} 29761: virtual InfoLogLevel GetInfoLogLevel() const { return log_level_; } 29761: virtual void SetInfoLogLevel(const InfoLogLevel log_level) { 29761: log_level_ = log_level; 29761: } 29761: 29761: 29761: 29761: protected: 29761: virtual Status CloseImpl(); 29761: bool closed_; 29761: 29761: private: 29761: InfoLogLevel log_level_; 29761: }; 29761: 29761: 29761: 29761: 29761: class FileLock { 29761: public: 29761: FileLock() {} 29761: virtual ~FileLock(); 29761: 29761: private: 29761: 29761: FileLock(const FileLock&) = delete; 29761: void operator=(const FileLock&) = delete; 29761: }; 29761: 29761: class DynamicLibrary { 29761: public: 29761: virtual ~DynamicLibrary() {} 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: 29761: template 29761: Status LoadFunction(const std::string& sym_name, std::function* function) { 29761: 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: (static_cast ( 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: nullptr != function 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: "nullptr != function" 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1309 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: ; 29761: void* ptr = nullptr; 29761: Status s = LoadSymbol(sym_name, &ptr); 29761: *function = reinterpret_cast(ptr); 29761: return s; 29761: } 29761: 29761: virtual Status LoadSymbol(const std::string& sym_name, void** func) = 0; 29761: }; 29761: 29761: void LogFlush(const std::shared_ptr& info_log); 29761: 29761: void Log(const InfoLogLevel log_level, const std::shared_ptr& info_log, 29761: const char* format, ...) __attribute__((__format__(__printf__, 3, 4))); 29761: 29761: 29761: void Header(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Debug(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Info(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Warn(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Error(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Fatal(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: 29761: 29761: 29761: void Log(const std::shared_ptr& info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: 29761: void LogFlush(Logger* info_log); 29761: 29761: void Log(const InfoLogLevel log_level, Logger* info_log, const char* format, 29761: ...) __attribute__((__format__(__printf__, 3, 4))); 29761: 29761: 29761: void Log(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: 29761: 29761: void Header(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Debug(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Info(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Warn(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Error(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: void Fatal(Logger* info_log, const char* format, ...) 29761: __attribute__((__format__(__printf__, 2, 3))); 29761: 29761: 29761: Status WriteStringToFile(Env* env, const Slice& data, const std::string& fname, 29761: bool should_sync = false, 29761: const IOOptions* io_options = nullptr); 29761: 29761: 29761: Status ReadFileToString(Env* env, const std::string& fname, std::string* data); 29761: # 1402 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/env.h" 29761: class EnvWrapper : public Env { 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: struct Target { 29761: Env* env; 29761: std::shared_ptr guard; 29761: 29761: 29761: explicit Target(Env* t) : env(t) {} 29761: 29761: 29761: explicit Target(std::unique_ptr&& t) : guard(t.release()) { 29761: env = guard.get(); 29761: } 29761: 29761: 29761: explicit Target(const std::shared_ptr& t) : guard(t) { 29761: env = guard.get(); 29761: } 29761: 29761: 29761: void Prepare() { 29761: if (guard.get() != nullptr) { 29761: env = guard.get(); 29761: } else if (env == nullptr) { 29761: env = Env::Default(); 29761: } 29761: } 29761: }; 29761: 29761: 29761: explicit EnvWrapper(Env* t); 29761: explicit EnvWrapper(std::unique_ptr&& t); 29761: explicit EnvWrapper(const std::shared_ptr& t); 29761: ~EnvWrapper() override; 29761: 29761: 29761: Env* target() const { return target_.env; } 29761: 29761: 29761: 29761: const char* Name() const override { return target_.env->Name(); } 29761: 29761: 29761: Status RegisterDbPaths(const std::vector& paths) override { 29761: return target_.env->RegisterDbPaths(paths); 29761: } 29761: 29761: Status UnregisterDbPaths(const std::vector& paths) override { 29761: return target_.env->UnregisterDbPaths(paths); 29761: } 29761: 29761: Status NewSequentialFile(const std::string& f, 29761: std::unique_ptr* r, 29761: const EnvOptions& options) override { 29761: return target_.env->NewSequentialFile(f, r, options); 29761: } 29761: Status NewRandomAccessFile(const std::string& f, 29761: std::unique_ptr* r, 29761: const EnvOptions& options) override { 29761: return target_.env->NewRandomAccessFile(f, r, options); 29761: } 29761: Status NewWritableFile(const std::string& f, std::unique_ptr* r, 29761: const EnvOptions& options) override { 29761: return target_.env->NewWritableFile(f, r, options); 29761: } 29761: Status ReopenWritableFile(const std::string& fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options) override { 29761: return target_.env->ReopenWritableFile(fname, result, options); 29761: } 29761: Status ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: std::unique_ptr* r, 29761: const EnvOptions& options) override { 29761: return target_.env->ReuseWritableFile(fname, old_fname, r, options); 29761: } 29761: Status NewRandomRWFile(const std::string& fname, 29761: std::unique_ptr* result, 29761: const EnvOptions& options) override { 29761: return target_.env->NewRandomRWFile(fname, result, options); 29761: } 29761: Status NewMemoryMappedFileBuffer( 29761: const std::string& fname, 29761: std::unique_ptr* result) override { 29761: return target_.env->NewMemoryMappedFileBuffer(fname, result); 29761: } 29761: Status NewDirectory(const std::string& name, 29761: std::unique_ptr* result) override { 29761: return target_.env->NewDirectory(name, result); 29761: } 29761: Status FileExists(const std::string& f) override { 29761: return target_.env->FileExists(f); 29761: } 29761: Status GetChildren(const std::string& dir, 29761: std::vector* r) override { 29761: return target_.env->GetChildren(dir, r); 29761: } 29761: Status GetChildrenFileAttributes( 29761: const std::string& dir, std::vector* result) override { 29761: return target_.env->GetChildrenFileAttributes(dir, result); 29761: } 29761: Status DeleteFile(const std::string& f) override { 29761: return target_.env->DeleteFile(f); 29761: } 29761: Status Truncate(const std::string& fname, size_t size) override { 29761: return target_.env->Truncate(fname, size); 29761: } 29761: Status CreateDir(const std::string& d) override { 29761: return target_.env->CreateDir(d); 29761: } 29761: Status CreateDirIfMissing(const std::string& d) override { 29761: return target_.env->CreateDirIfMissing(d); 29761: } 29761: Status DeleteDir(const std::string& d) override { 29761: return target_.env->DeleteDir(d); 29761: } 29761: Status GetFileSize(const std::string& f, uint64_t* s) override { 29761: return target_.env->GetFileSize(f, s); 29761: } 29761: 29761: Status GetFileModificationTime(const std::string& fname, 29761: uint64_t* file_mtime) override { 29761: return target_.env->GetFileModificationTime(fname, file_mtime); 29761: } 29761: 29761: Status RenameFile(const std::string& s, const std::string& t) override { 29761: return target_.env->RenameFile(s, t); 29761: } 29761: 29761: Status LinkFile(const std::string& s, const std::string& t) override { 29761: return target_.env->LinkFile(s, t); 29761: } 29761: 29761: Status NumFileLinks(const std::string& fname, uint64_t* count) override { 29761: return target_.env->NumFileLinks(fname, count); 29761: } 29761: 29761: Status AreFilesSame(const std::string& first, const std::string& second, 29761: bool* res) override { 29761: return target_.env->AreFilesSame(first, second, res); 29761: } 29761: 29761: Status LockFile(const std::string& f, FileLock** l) override { 29761: return target_.env->LockFile(f, l); 29761: } 29761: 29761: Status UnlockFile(FileLock* l) override { return target_.env->UnlockFile(l); } 29761: 29761: Status IsDirectory(const std::string& path, bool* is_dir) override { 29761: return target_.env->IsDirectory(path, is_dir); 29761: } 29761: 29761: Status LoadLibrary(const std::string& lib_name, 29761: const std::string& search_path, 29761: std::shared_ptr* result) override { 29761: return target_.env->LoadLibrary(lib_name, search_path, result); 29761: } 29761: 29761: void Schedule(void (*f)(void* arg), void* a, Priority pri, 29761: void* tag = nullptr, void (*u)(void* arg) = nullptr) override { 29761: return target_.env->Schedule(f, a, pri, tag, u); 29761: } 29761: 29761: int UnSchedule(void* tag, Priority pri) override { 29761: return target_.env->UnSchedule(tag, pri); 29761: } 29761: 29761: void StartThread(void (*f)(void*), void* a) override { 29761: return target_.env->StartThread(f, a); 29761: } 29761: void WaitForJoin() override { return target_.env->WaitForJoin(); } 29761: unsigned int GetThreadPoolQueueLen(Priority pri = LOW) const override { 29761: return target_.env->GetThreadPoolQueueLen(pri); 29761: } 29761: 29761: int ReserveThreads(int threads_to_be_reserved, Priority pri) override { 29761: return target_.env->ReserveThreads(threads_to_be_reserved, pri); 29761: } 29761: 29761: int ReleaseThreads(int threads_to_be_released, Priority pri) override { 29761: return target_.env->ReleaseThreads(threads_to_be_released, pri); 29761: } 29761: 29761: Status GetTestDirectory(std::string* path) override { 29761: return target_.env->GetTestDirectory(path); 29761: } 29761: Status NewLogger(const std::string& fname, 29761: std::shared_ptr* result) override { 29761: return target_.env->NewLogger(fname, result); 29761: } 29761: uint64_t NowMicros() override { return target_.env->NowMicros(); } 29761: uint64_t NowNanos() override { return target_.env->NowNanos(); } 29761: uint64_t NowCPUNanos() override { return target_.env->NowCPUNanos(); } 29761: 29761: void SleepForMicroseconds(int micros) override { 29761: target_.env->SleepForMicroseconds(micros); 29761: } 29761: Status GetHostName(char* name, uint64_t len) override { 29761: return target_.env->GetHostName(name, len); 29761: } 29761: Status GetCurrentTime(int64_t* unix_time) override { 29761: return target_.env->GetCurrentTime(unix_time); 29761: } 29761: Status GetAbsolutePath(const std::string& db_path, 29761: std::string* output_path) override { 29761: return target_.env->GetAbsolutePath(db_path, output_path); 29761: } 29761: void SetBackgroundThreads(int num, Priority pri) override { 29761: return target_.env->SetBackgroundThreads(num, pri); 29761: } 29761: int GetBackgroundThreads(Priority pri) override { 29761: return target_.env->GetBackgroundThreads(pri); 29761: } 29761: 29761: Status SetAllowNonOwnerAccess(bool allow_non_owner_access) override { 29761: return target_.env->SetAllowNonOwnerAccess(allow_non_owner_access); 29761: } 29761: 29761: void IncBackgroundThreadsIfNeeded(int num, Priority pri) override { 29761: return target_.env->IncBackgroundThreadsIfNeeded(num, pri); 29761: } 29761: 29761: void LowerThreadPoolIOPriority(Priority pool) override { 29761: target_.env->LowerThreadPoolIOPriority(pool); 29761: } 29761: 29761: void LowerThreadPoolCPUPriority(Priority pool) override { 29761: target_.env->LowerThreadPoolCPUPriority(pool); 29761: } 29761: 29761: Status LowerThreadPoolCPUPriority(Priority pool, CpuPriority pri) override { 29761: return target_.env->LowerThreadPoolCPUPriority(pool, pri); 29761: } 29761: 29761: std::string TimeToString(uint64_t time) override { 29761: return target_.env->TimeToString(time); 29761: } 29761: 29761: Status GetThreadList(std::vector* thread_list) override { 29761: return target_.env->GetThreadList(thread_list); 29761: } 29761: 29761: ThreadStatusUpdater* GetThreadStatusUpdater() const override { 29761: return target_.env->GetThreadStatusUpdater(); 29761: } 29761: 29761: uint64_t GetThreadID() const override { return target_.env->GetThreadID(); } 29761: 29761: std::string GenerateUniqueId() override { 29761: return target_.env->GenerateUniqueId(); 29761: } 29761: 29761: EnvOptions OptimizeForLogRead(const EnvOptions& env_options) const override { 29761: return target_.env->OptimizeForLogRead(env_options); 29761: } 29761: EnvOptions OptimizeForManifestRead( 29761: const EnvOptions& env_options) const override { 29761: return target_.env->OptimizeForManifestRead(env_options); 29761: } 29761: EnvOptions OptimizeForLogWrite(const EnvOptions& env_options, 29761: const DBOptions& db_options) const override { 29761: return target_.env->OptimizeForLogWrite(env_options, db_options); 29761: } 29761: EnvOptions OptimizeForManifestWrite( 29761: const EnvOptions& env_options) const override { 29761: return target_.env->OptimizeForManifestWrite(env_options); 29761: } 29761: EnvOptions OptimizeForCompactionTableWrite( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& immutable_ops) const override { 29761: return target_.env->OptimizeForCompactionTableWrite(env_options, 29761: immutable_ops); 29761: } 29761: EnvOptions OptimizeForCompactionTableRead( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& db_options) const override { 29761: return target_.env->OptimizeForCompactionTableRead(env_options, db_options); 29761: } 29761: EnvOptions OptimizeForBlobFileRead( 29761: const EnvOptions& env_options, 29761: const ImmutableDBOptions& db_options) const override { 29761: return target_.env->OptimizeForBlobFileRead(env_options, db_options); 29761: } 29761: Status GetFreeSpace(const std::string& path, uint64_t* diskfree) override { 29761: return target_.env->GetFreeSpace(path, diskfree); 29761: } 29761: void SanitizeEnvOptions(EnvOptions* env_opts) const override { 29761: target_.env->SanitizeEnvOptions(env_opts); 29761: } 29761: Status PrepareOptions(const ConfigOptions& options) override; 29761: std::string SerializeOptions(const ConfigOptions& config_options, 29761: const std::string& header) const override; 29761: 29761: private: 29761: Target target_; 29761: }; 29761: 29761: class SequentialFileWrapper : public SequentialFile { 29761: public: 29761: explicit SequentialFileWrapper(SequentialFile* target) : target_(target) {} 29761: 29761: Status Read(size_t n, Slice* result, char* scratch) override { 29761: return target_->Read(n, result, scratch); 29761: } 29761: Status Skip(uint64_t n) override { return target_->Skip(n); } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: Status InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: Status PositionedRead(uint64_t offset, size_t n, Slice* result, 29761: char* scratch) override { 29761: return target_->PositionedRead(offset, n, result, scratch); 29761: } 29761: 29761: private: 29761: SequentialFile* target_; 29761: }; 29761: 29761: class RandomAccessFileWrapper : public RandomAccessFile { 29761: public: 29761: explicit RandomAccessFileWrapper(RandomAccessFile* target) 29761: : target_(target) {} 29761: 29761: Status Read(uint64_t offset, size_t n, Slice* result, 29761: char* scratch) const override { 29761: return target_->Read(offset, n, result, scratch); 29761: } 29761: Status MultiRead(ReadRequest* reqs, size_t num_reqs) override { 29761: return target_->MultiRead(reqs, num_reqs); 29761: } 29761: Status Prefetch(uint64_t offset, size_t n) override { 29761: return target_->Prefetch(offset, n); 29761: } 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: Status InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: 29761: private: 29761: RandomAccessFile* target_; 29761: }; 29761: 29761: class WritableFileWrapper : public WritableFile { 29761: public: 29761: explicit WritableFileWrapper(WritableFile* t) : target_(t) {} 29761: 29761: Status Append(const Slice& data) override { return target_->Append(data); } 29761: Status Append(const Slice& data, 29761: const DataVerificationInfo& verification_info) override { 29761: return target_->Append(data, verification_info); 29761: } 29761: Status PositionedAppend(const Slice& data, uint64_t offset) override { 29761: return target_->PositionedAppend(data, offset); 29761: } 29761: Status PositionedAppend( 29761: const Slice& data, uint64_t offset, 29761: const DataVerificationInfo& verification_info) override { 29761: return target_->PositionedAppend(data, offset, verification_info); 29761: } 29761: Status Truncate(uint64_t size) override { return target_->Truncate(size); } 29761: Status Close() override { return target_->Close(); } 29761: Status Flush() override { return target_->Flush(); } 29761: Status Sync() override { return target_->Sync(); } 29761: Status Fsync() override { return target_->Fsync(); } 29761: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 29761: 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: 29761: void SetIOPriority(Env::IOPriority pri) override { 29761: target_->SetIOPriority(pri); 29761: } 29761: 29761: Env::IOPriority GetIOPriority() override { return target_->GetIOPriority(); } 29761: 29761: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 29761: target_->SetWriteLifeTimeHint(hint); 29761: } 29761: 29761: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 29761: return target_->GetWriteLifeTimeHint(); 29761: } 29761: 29761: uint64_t GetFileSize() override { return target_->GetFileSize(); } 29761: 29761: void SetPreallocationBlockSize(size_t size) override { 29761: target_->SetPreallocationBlockSize(size); 29761: } 29761: 29761: void GetPreallocationStatus(size_t* block_size, 29761: size_t* last_allocated_block) override { 29761: target_->GetPreallocationStatus(block_size, last_allocated_block); 29761: } 29761: 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: 29761: Status InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: 29761: Status RangeSync(uint64_t offset, uint64_t nbytes) override { 29761: return target_->RangeSync(offset, nbytes); 29761: } 29761: 29761: void PrepareWrite(size_t offset, size_t len) override { 29761: target_->PrepareWrite(offset, len); 29761: } 29761: 29761: Status Allocate(uint64_t offset, uint64_t len) override { 29761: return target_->Allocate(offset, len); 29761: } 29761: 29761: private: 29761: WritableFile* target_; 29761: }; 29761: 29761: class RandomRWFileWrapper : public RandomRWFile { 29761: public: 29761: explicit RandomRWFileWrapper(RandomRWFile* target) : target_(target) {} 29761: 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: Status Write(uint64_t offset, const Slice& data) override { 29761: return target_->Write(offset, data); 29761: } 29761: Status Read(uint64_t offset, size_t n, Slice* result, 29761: char* scratch) const override { 29761: return target_->Read(offset, n, result, scratch); 29761: } 29761: Status Flush() override { return target_->Flush(); } 29761: Status Sync() override { return target_->Sync(); } 29761: Status Fsync() override { return target_->Fsync(); } 29761: Status Close() override { return target_->Close(); } 29761: 29761: private: 29761: RandomRWFile* target_; 29761: }; 29761: 29761: class DirectoryWrapper : public Directory { 29761: public: 29761: explicit DirectoryWrapper(Directory* target) : target_(target) {} 29761: 29761: Status Fsync() override { return target_->Fsync(); } 29761: Status Close() override { return target_->Close(); } 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: 29761: private: 29761: Directory* target_; 29761: }; 29761: 29761: class LoggerWrapper : public Logger { 29761: public: 29761: explicit LoggerWrapper(Logger* target) : target_(target) {} 29761: 29761: Status Close() override { return target_->Close(); } 29761: void LogHeader(const char* format, va_list ap) override { 29761: return target_->LogHeader(format, ap); 29761: } 29761: void Logv(const char* format, va_list ap) override { 29761: return target_->Logv(format, ap); 29761: } 29761: void Logv(const InfoLogLevel log_level, const char* format, 29761: va_list ap) override { 29761: return target_->Logv(log_level, format, ap); 29761: } 29761: size_t GetLogFileSize() const override { return target_->GetLogFileSize(); } 29761: void Flush() override { return target_->Flush(); } 29761: InfoLogLevel GetInfoLogLevel() const override { 29761: return target_->GetInfoLogLevel(); 29761: } 29761: void SetInfoLogLevel(const InfoLogLevel log_level) override { 29761: return target_->SetInfoLogLevel(log_level); 29761: } 29761: 29761: private: 29761: Logger* target_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: Env* NewMemEnv(Env* base_env); 29761: 29761: 29761: 29761: 29761: Env* NewTimedEnv(Env* base_env); 29761: 29761: 29761: 29761: 29761: Status NewEnvLogger(const std::string& fname, Env* env, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: std::unique_ptr NewCompositeEnv(const std::shared_ptr& fs); 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 2 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29761: namespace rocksdb { 29761: 29761: 29761: constexpr char kUnknownFileChecksum[] = ""; 29761: 29761: constexpr char kUnknownFileChecksumFuncName[] = "Unknown"; 29761: 29761: 29761: 29761: constexpr char kStandardDbFileChecksumFuncName[] = "FileChecksumCrc32c"; 29761: 29761: struct FileChecksumGenContext { 29761: std::string file_name; 29761: 29761: 29761: 29761: 29761: std::string requested_checksum_func_name; 29761: }; 29761: # 50 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29761: class FileChecksumGenerator { 29761: public: 29761: virtual ~FileChecksumGenerator() {} 29761: 29761: 29761: 29761: 29761: virtual void Update(const char* data, size_t n) = 0; 29761: 29761: 29761: virtual void Finalize() = 0; 29761: 29761: 29761: 29761: virtual std::string GetChecksum() const = 0; 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FileChecksumGenFactory : public Customizable { 29761: public: 29761: ~FileChecksumGenFactory() override {} 29761: static const char* Type() { return "FileChecksumGenFactory"; } 29761: static Status CreateFromString( 29761: const ConfigOptions& options, const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: 29761: virtual std::unique_ptr CreateFileChecksumGenerator( 29761: const FileChecksumGenContext& context) = 0; 29761: 29761: 29761: const char* Name() const override = 0; 29761: }; 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29761: class FileChecksumList { 29761: public: 29761: virtual ~FileChecksumList() {} 29761: 29761: 29761: virtual void reset() = 0; 29761: 29761: 29761: virtual size_t size() const = 0; 29761: 29761: 29761: 29761: 29761: virtual Status GetAllFileChecksums( 29761: std::vector* file_numbers, std::vector* checksums, 29761: std::vector* checksum_func_names) = 0; 29761: 29761: 29761: 29761: virtual Status SearchOneFileChecksum(uint64_t file_number, 29761: std::string* checksum, 29761: std::string* checksum_func_name) = 0; 29761: 29761: 29761: virtual Status InsertOneFileChecksum( 29761: uint64_t file_number, const std::string& checksum, 29761: const std::string& checksum_func_name) = 0; 29761: 29761: 29761: virtual Status RemoveOneFileChecksum(uint64_t file_number) = 0; 29761: }; 29761: 29761: 29761: FileChecksumList* NewFileChecksumList(); 29761: # 143 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_checksum.h" 29761: extern std::shared_ptr 29761: GetFileChecksumGenCrc32cFactory(); 29761: 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_job_stats.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 8 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_job_stats.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: struct CompactionJobStats { 29761: CompactionJobStats() { Reset(); } 29761: void Reset(); 29761: 29761: void Add(const CompactionJobStats& stats); 29761: 29761: 29761: uint64_t elapsed_micros = 0; 29761: 29761: 29761: uint64_t cpu_micros = 0; 29761: 29761: 29761: 29761: bool has_num_input_records = false; 29761: 29761: uint64_t num_input_records = 0; 29761: 29761: uint64_t num_blobs_read = 0; 29761: 29761: size_t num_input_files = 0; 29761: 29761: size_t num_input_files_at_output_level = 0; 29761: 29761: 29761: size_t num_filtered_input_files = 0; 29761: 29761: 29761: size_t num_filtered_input_files_at_output_level = 0; 29761: 29761: 29761: uint64_t num_output_records = 0; 29761: 29761: size_t num_output_files = 0; 29761: 29761: size_t num_output_files_blob = 0; 29761: 29761: 29761: bool is_full_compaction = false; 29761: 29761: bool is_manual_compaction = false; 29761: 29761: bool is_remote_compaction = false; 29761: 29761: 29761: uint64_t total_input_bytes = 0; 29761: 29761: uint64_t total_blob_bytes_read = 0; 29761: 29761: uint64_t total_output_bytes = 0; 29761: 29761: uint64_t total_output_bytes_blob = 0; 29761: 29761: 29761: uint64_t total_skipped_input_bytes = 0; 29761: 29761: 29761: 29761: 29761: uint64_t num_records_replaced = 0; 29761: 29761: 29761: uint64_t total_input_raw_key_bytes = 0; 29761: 29761: uint64_t total_input_raw_value_bytes = 0; 29761: 29761: 29761: 29761: uint64_t num_input_deletion_records = 0; 29761: 29761: 29761: 29761: uint64_t num_expired_deletion_records = 0; 29761: 29761: 29761: 29761: uint64_t num_corrupt_keys = 0; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t file_write_nanos = 0; 29761: 29761: 29761: uint64_t file_range_sync_nanos = 0; 29761: 29761: 29761: uint64_t file_fsync_nanos = 0; 29761: 29761: 29761: uint64_t file_prepare_write_nanos = 0; 29761: 29761: 29761: 29761: static const size_t kMaxPrefixLength = 8; 29761: 29761: std::string smallest_output_key_prefix; 29761: std::string largest_output_key_prefix; 29761: 29761: 29761: uint64_t num_single_del_fallthru = 0; 29761: 29761: 29761: uint64_t num_single_del_mismatch = 0; 29761: 29761: 29761: }; 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 1 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstring" 1 3 29761: # 39 "/usr/include/c++/14/cstring" 3 29761: 29761: # 40 "/usr/include/c++/14/cstring" 3 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 43 "/usr/include/c++/14/cstring" 2 3 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 2 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class IOStatus : public Status { 29761: public: 29761: using Code = Status::Code; 29761: using SubCode = Status::SubCode; 29761: 29761: enum IOErrorScope : unsigned char { 29761: kIOErrorScopeFileSystem, 29761: kIOErrorScopeFile, 29761: kIOErrorScopeRange, 29761: kIOErrorScopeMax, 29761: }; 29761: 29761: 29761: IOStatus() : IOStatus(kOk, kNone) {} 29761: ~IOStatus() {} 29761: 29761: 29761: IOStatus(const IOStatus& s); 29761: IOStatus& operator=(const IOStatus& s); 29761: IOStatus(IOStatus&& s) noexcept; 29761: IOStatus& operator=(IOStatus&& s) noexcept; 29761: bool operator==(const IOStatus& rhs) const; 29761: bool operator!=(const IOStatus& rhs) const; 29761: 29761: void SetRetryable(bool retryable) { retryable_ = retryable; } 29761: void SetDataLoss(bool data_loss) { data_loss_ = data_loss; } 29761: void SetScope(IOErrorScope scope) { 29761: scope_ = static_cast(scope); 29761: } 29761: 29761: bool GetRetryable() const { return retryable_; } 29761: bool GetDataLoss() const { return data_loss_; } 29761: IOErrorScope GetScope() const { return static_cast(scope_); } 29761: 29761: 29761: static IOStatus OK() { return IOStatus(); } 29761: 29761: static IOStatus NotSupported(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kNotSupported, msg, msg2); 29761: } 29761: static IOStatus NotSupported(SubCode msg = kNone) { 29761: return IOStatus(kNotSupported, msg); 29761: } 29761: 29761: 29761: static IOStatus NotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kNotFound, msg, msg2); 29761: } 29761: 29761: static IOStatus NotFound(SubCode msg = kNone) { 29761: return IOStatus(kNotFound, msg); 29761: } 29761: 29761: static IOStatus Corruption(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kCorruption, msg, msg2); 29761: } 29761: static IOStatus Corruption(SubCode msg = kNone) { 29761: return IOStatus(kCorruption, msg); 29761: } 29761: 29761: static IOStatus InvalidArgument(const Slice& msg, 29761: const Slice& msg2 = Slice()) { 29761: return IOStatus(kInvalidArgument, msg, msg2); 29761: } 29761: static IOStatus InvalidArgument(SubCode msg = kNone) { 29761: return IOStatus(kInvalidArgument, msg); 29761: } 29761: 29761: static IOStatus IOError(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kIOError, msg, msg2); 29761: } 29761: static IOStatus IOError(SubCode msg = kNone) { 29761: return IOStatus(kIOError, msg); 29761: } 29761: 29761: static IOStatus Busy(SubCode msg = kNone) { return IOStatus(kBusy, msg); } 29761: static IOStatus Busy(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kBusy, msg, msg2); 29761: } 29761: 29761: static IOStatus TimedOut(SubCode msg = kNone) { 29761: return IOStatus(kTimedOut, msg); 29761: } 29761: static IOStatus TimedOut(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kTimedOut, msg, msg2); 29761: } 29761: 29761: static IOStatus NoSpace() { return IOStatus(kIOError, kNoSpace); } 29761: static IOStatus NoSpace(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kIOError, kNoSpace, msg, msg2); 29761: } 29761: 29761: static IOStatus PathNotFound() { return IOStatus(kIOError, kPathNotFound); } 29761: static IOStatus PathNotFound(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kIOError, kPathNotFound, msg, msg2); 29761: } 29761: 29761: static IOStatus IOFenced() { return IOStatus(kIOError, kIOFenced); } 29761: static IOStatus IOFenced(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kIOError, kIOFenced, msg, msg2); 29761: } 29761: 29761: static IOStatus Aborted(SubCode msg = kNone) { 29761: return IOStatus(kAborted, msg); 29761: } 29761: static IOStatus Aborted(const Slice& msg, const Slice& msg2 = Slice()) { 29761: return IOStatus(kAborted, msg, msg2); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: private: 29761: friend IOStatus status_to_io_status(Status&&); 29761: 29761: explicit IOStatus(Code _code, SubCode _subcode = kNone) 29761: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) {} 29761: 29761: IOStatus(Code _code, SubCode _subcode, const Slice& msg, const Slice& msg2); 29761: IOStatus(Code _code, const Slice& msg, const Slice& msg2) 29761: : IOStatus(_code, kNone, msg, msg2) {} 29761: }; 29761: 29761: inline IOStatus::IOStatus(Code _code, SubCode _subcode, const Slice& msg, 29761: const Slice& msg2) 29761: : Status(_code, _subcode, false, false, kIOErrorScopeFileSystem) { 29761: 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: (static_cast ( 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: code_ != kOk 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: "code_ != kOk" 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: ; 29761: 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: (static_cast ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: subcode_ != kMaxSubCode 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: "subcode_ != kMaxSubCode" 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/io_status.h" 29761: ; 29761: const size_t len1 = msg.size(); 29761: const size_t len2 = msg2.size(); 29761: const size_t size = len1 + (len2 ? (2 + len2) : 0); 29761: char* const result = new char[size + 1]; 29761: memcpy(result, msg.data(), len1); 29761: if (len2) { 29761: result[len1] = ':'; 29761: result[len1 + 1] = ' '; 29761: memcpy(result + len1 + 2, msg2.data(), len2); 29761: } 29761: result[size] = '\0'; 29761: state_.reset(result); 29761: } 29761: 29761: inline IOStatus::IOStatus(const IOStatus& s) : Status(s.code_, s.subcode_) { 29761: 29761: 29761: 29761: retryable_ = s.retryable_; 29761: data_loss_ = s.data_loss_; 29761: scope_ = s.scope_; 29761: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29761: } 29761: inline IOStatus& IOStatus::operator=(const IOStatus& s) { 29761: 29761: 29761: if (this != &s) { 29761: 29761: 29761: 29761: 29761: code_ = s.code_; 29761: subcode_ = s.subcode_; 29761: retryable_ = s.retryable_; 29761: data_loss_ = s.data_loss_; 29761: scope_ = s.scope_; 29761: state_ = (s.state_ == nullptr) ? nullptr : CopyState(s.state_.get()); 29761: } 29761: return *this; 29761: } 29761: 29761: inline IOStatus::IOStatus(IOStatus&& s) noexcept : IOStatus() { 29761: *this = std::move(s); 29761: } 29761: 29761: inline IOStatus& IOStatus::operator=(IOStatus&& s) noexcept { 29761: if (this != &s) { 29761: 29761: 29761: 29761: 29761: code_ = std::move(s.code_); 29761: s.code_ = kOk; 29761: subcode_ = std::move(s.subcode_); 29761: s.subcode_ = kNone; 29761: retryable_ = s.retryable_; 29761: data_loss_ = s.data_loss_; 29761: scope_ = s.scope_; 29761: s.scope_ = kIOErrorScopeFileSystem; 29761: state_ = std::move(s.state_); 29761: } 29761: return *this; 29761: } 29761: 29761: inline bool IOStatus::operator==(const IOStatus& rhs) const { 29761: 29761: 29761: 29761: 29761: return (code_ == rhs.code_); 29761: } 29761: 29761: inline bool IOStatus::operator!=(const IOStatus& rhs) const { 29761: 29761: 29761: 29761: 29761: return !(*this == rhs); 29761: } 29761: 29761: inline IOStatus status_to_io_status(Status&& status) { 29761: IOStatus io_s; 29761: Status& s = io_s; 29761: s = std::move(status); 29761: return io_s; 29761: } 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 1 29761: 29761: 29761: 29761: 29761: 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: namespace rocksdb { 29761: 29761: class InternalTblPropColl; 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: using UserCollectedProperties = std::map; 29761: 29761: 29761: struct TablePropertiesNames { 29761: static const std::string kDbId; 29761: static const std::string kDbSessionId; 29761: static const std::string kDbHostId; 29761: static const std::string kOriginalFileNumber; 29761: static const std::string kDataSize; 29761: static const std::string kIndexSize; 29761: static const std::string kIndexPartitions; 29761: static const std::string kTopLevelIndexSize; 29761: static const std::string kIndexKeyIsUserKey; 29761: static const std::string kIndexValueIsDeltaEncoded; 29761: static const std::string kFilterSize; 29761: static const std::string kRawKeySize; 29761: static const std::string kRawValueSize; 29761: static const std::string kNumDataBlocks; 29761: static const std::string kNumEntries; 29761: static const std::string kNumFilterEntries; 29761: static const std::string kDeletedKeys; 29761: static const std::string kMergeOperands; 29761: static const std::string kNumRangeDeletions; 29761: static const std::string kFormatVersion; 29761: static const std::string kFixedKeyLen; 29761: static const std::string kFilterPolicy; 29761: static const std::string kColumnFamilyName; 29761: static const std::string kColumnFamilyId; 29761: static const std::string kComparator; 29761: static const std::string kMergeOperator; 29761: static const std::string kPrefixExtractorName; 29761: static const std::string kPropertyCollectors; 29761: static const std::string kCompression; 29761: static const std::string kCompressionOptions; 29761: static const std::string kCreationTime; 29761: static const std::string kOldestKeyTime; 29761: static const std::string kNewestKeyTime; 29761: static const std::string kFileCreationTime; 29761: static const std::string kSlowCompressionEstimatedDataSize; 29761: static const std::string kFastCompressionEstimatedDataSize; 29761: static const std::string kSequenceNumberTimeMapping; 29761: static const std::string kTailStartOffset; 29761: static const std::string kUserDefinedTimestampsPersisted; 29761: static const std::string kKeyLargestSeqno; 29761: }; 29761: # 94 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: class TablePropertiesCollector { 29761: public: 29761: virtual ~TablePropertiesCollector() {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Add(const Slice& , const Slice& ) { 29761: return Status::InvalidArgument( 29761: "TablePropertiesCollector::Add() deprecated."); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status AddUserKey(const Slice& key, const Slice& value, 29761: EntryType , SequenceNumber , 29761: uint64_t ) { 29761: 29761: return Add(key, value); 29761: } 29761: 29761: 29761: virtual void BlockAdd(uint64_t , 29761: uint64_t , 29761: uint64_t ) { 29761: 29761: return; 29761: } 29761: # 135 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: virtual Status Finish(UserCollectedProperties* properties) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual UserCollectedProperties GetReadableProperties() const = 0; 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: virtual bool NeedCompact() const { return false; } 29761: 29761: 29761: virtual InternalTblPropColl* AsInternal() { return nullptr; } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class TablePropertiesCollectorFactory : public Customizable { 29761: public: 29761: struct Context { 29761: uint32_t column_family_id; 29761: 29761: 29761: int level_at_creation = kUnknownLevelAtCreation; 29761: int num_levels = kUnknownNumLevels; 29761: 29761: 29761: 29761: 29761: SequenceNumber last_level_inclusive_max_seqno_threshold; 29761: static const uint32_t kUnknownColumnFamily; 29761: static const int kUnknownLevelAtCreation = -1; 29761: static const int kUnknownNumLevels = -1; 29761: 29761: Context() {} 29761: 29761: Context(uint32_t _column_family_id, int _level_at_creation, int _num_levels, 29761: SequenceNumber _last_level_inclusive_max_seqno_threshold) 29761: : column_family_id(_column_family_id), 29761: level_at_creation(_level_at_creation), 29761: num_levels(_num_levels), 29761: last_level_inclusive_max_seqno_threshold( 29761: _last_level_inclusive_max_seqno_threshold) {} 29761: }; 29761: 29761: ~TablePropertiesCollectorFactory() override {} 29761: static const char* Type() { return "TablePropertiesCollectorFactory"; } 29761: static Status CreateFromString( 29761: const ConfigOptions& options, const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual TablePropertiesCollector* CreateTablePropertiesCollector( 29761: TablePropertiesCollectorFactory::Context context) = 0; 29761: 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: 29761: 29761: virtual std::string ToString() const { return Name(); } 29761: }; 29761: 29761: 29761: 29761: struct TableProperties { 29761: public: 29761: 29761: 29761: uint64_t orig_file_number = 0; 29761: 29761: uint64_t data_size = 0; 29761: 29761: uint64_t index_size = 0; 29761: 29761: uint64_t index_partitions = 0; 29761: 29761: uint64_t top_level_index_size = 0; 29761: 29761: 29761: uint64_t index_key_is_user_key = 0; 29761: 29761: uint64_t index_value_is_delta_encoded = 0; 29761: 29761: uint64_t filter_size = 0; 29761: 29761: uint64_t raw_key_size = 0; 29761: 29761: uint64_t raw_value_size = 0; 29761: 29761: uint64_t num_data_blocks = 0; 29761: 29761: uint64_t num_entries = 0; 29761: 29761: uint64_t num_filter_entries = 0; 29761: 29761: uint64_t num_deletions = 0; 29761: 29761: uint64_t num_merge_operands = 0; 29761: 29761: uint64_t num_range_deletions = 0; 29761: 29761: uint64_t format_version = 0; 29761: 29761: uint64_t fixed_key_len = 0; 29761: 29761: 29761: uint64_t column_family_id = rocksdb:: 29761: TablePropertiesCollectorFactory::Context::kUnknownColumnFamily; 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: uint64_t creation_time = 0; 29761: 29761: 29761: uint64_t oldest_key_time = 0; 29761: 29761: uint64_t newest_key_time = 0; 29761: 29761: uint64_t file_creation_time = 0; 29761: 29761: 29761: 29761: uint64_t slow_compression_estimated_data_size = 0; 29761: 29761: 29761: 29761: uint64_t fast_compression_estimated_data_size = 0; 29761: 29761: 29761: 29761: uint64_t external_sst_file_global_seqno_offset = 0; 29761: 29761: 29761: 29761: uint64_t tail_start_offset = 0; 29761: 29761: 29761: 29761: 29761: uint64_t user_defined_timestamps_persisted = 1; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t key_largest_seqno = 29761: # 304 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 3 4 29761: (18446744073709551615ULL) 29761: # 304 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: ; 29761: 29761: 29761: 29761: 29761: std::string db_id; 29761: 29761: 29761: 29761: 29761: 29761: std::string db_session_id; 29761: 29761: 29761: 29761: 29761: 29761: std::string db_host_id; 29761: 29761: 29761: 29761: std::string column_family_name; 29761: 29761: 29761: 29761: std::string filter_policy_name; 29761: 29761: 29761: std::string comparator_name; 29761: 29761: 29761: 29761: std::string merge_operator_name; 29761: 29761: 29761: 29761: std::string prefix_extractor_name; 29761: 29761: 29761: 29761: 29761: std::string property_collectors_names; 29761: 29761: 29761: std::string compression_name; 29761: 29761: 29761: std::string compression_options; 29761: 29761: 29761: std::string seqno_to_time_mapping; 29761: 29761: 29761: UserCollectedProperties user_collected_properties; 29761: UserCollectedProperties readable_properties; 29761: 29761: 29761: 29761: std::string ToString(const std::string& prop_delim = "; ", 29761: const std::string& kv_delim = "=") const; 29761: 29761: 29761: 29761: void Add(const TableProperties& tp); 29761: 29761: 29761: 29761: 29761: std::map GetAggregatablePropertiesAsMap() const; 29761: 29761: 29761: 29761: std::size_t ApproximateMemoryUsage() const; 29761: 29761: 29761: Status Serialize(const ConfigOptions& opts, std::string* output) const; 29761: static Status Parse(const ConfigOptions& opts, const std::string& serialized, 29761: TableProperties* table_properties); 29761: bool AreEqual(const ConfigOptions& opts, 29761: const TableProperties* other_table_properties, 29761: std::string* mismatch) const; 29761: }; 29761: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_properties.h" 29761: uint64_t GetDeletedKeys(const UserCollectedProperties& props); 29761: uint64_t GetMergeOperands(const UserCollectedProperties& props, 29761: bool* property_present); 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: using TablePropertiesCollection = 29761: std::unordered_map>; 29761: 29761: class DB; 29761: class ColumnFamilyHandle; 29761: class Status; 29761: struct CompactionJobStats; 29761: 29761: struct FileCreationBriefInfo { 29761: FileCreationBriefInfo() = default; 29761: FileCreationBriefInfo(const std::string& _db_name, 29761: const std::string& _cf_name, 29761: const std::string& _file_path, int _job_id) 29761: : db_name(_db_name), 29761: cf_name(_cf_name), 29761: file_path(_file_path), 29761: job_id(_job_id) {} 29761: 29761: std::string db_name; 29761: 29761: std::string cf_name; 29761: 29761: std::string file_path; 29761: 29761: 29761: int job_id = 0; 29761: }; 29761: 29761: struct TableFileCreationBriefInfo : public FileCreationBriefInfo { 29761: 29761: TableFileCreationReason reason; 29761: }; 29761: 29761: struct TableFileCreationInfo : public TableFileCreationBriefInfo { 29761: TableFileCreationInfo() = default; 29761: explicit TableFileCreationInfo(TableProperties&& prop) 29761: : table_properties(prop) {} 29761: 29761: uint64_t file_size; 29761: 29761: TableProperties table_properties; 29761: 29761: Status status; 29761: 29761: std::string file_checksum; 29761: 29761: std::string file_checksum_func_name; 29761: }; 29761: 29761: struct BlobFileCreationBriefInfo : public FileCreationBriefInfo { 29761: BlobFileCreationBriefInfo(const std::string& _db_name, 29761: const std::string& _cf_name, 29761: const std::string& _file_path, int _job_id, 29761: BlobFileCreationReason _reason) 29761: : FileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id), 29761: reason(_reason) {} 29761: 29761: BlobFileCreationReason reason; 29761: }; 29761: 29761: struct BlobFileCreationInfo : public BlobFileCreationBriefInfo { 29761: BlobFileCreationInfo(const std::string& _db_name, const std::string& _cf_name, 29761: const std::string& _file_path, int _job_id, 29761: BlobFileCreationReason _reason, 29761: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 29761: Status _status, const std::string& _file_checksum, 29761: const std::string& _file_checksum_func_name) 29761: : BlobFileCreationBriefInfo(_db_name, _cf_name, _file_path, _job_id, 29761: _reason), 29761: total_blob_count(_total_blob_count), 29761: total_blob_bytes(_total_blob_bytes), 29761: status(_status), 29761: file_checksum(_file_checksum), 29761: file_checksum_func_name(_file_checksum_func_name) {} 29761: 29761: 29761: uint64_t total_blob_count; 29761: 29761: uint64_t total_blob_bytes; 29761: 29761: Status status; 29761: 29761: std::string file_checksum; 29761: 29761: std::string file_checksum_func_name; 29761: }; 29761: 29761: enum class CompactionReason : int { 29761: kUnknown = 0, 29761: 29761: kLevelL0FilesNum, 29761: 29761: kLevelMaxLevelSize, 29761: 29761: kUniversalSizeAmplification, 29761: 29761: kUniversalSizeRatio, 29761: 29761: kUniversalSortedRunNum, 29761: 29761: kFIFOMaxSize, 29761: 29761: kFIFOReduceNumFiles, 29761: 29761: kFIFOTtl, 29761: 29761: kManualCompaction, 29761: 29761: kFilesMarkedForCompaction, 29761: 29761: 29761: kBottommostFiles, 29761: 29761: kTtl, 29761: 29761: 29761: kFlush, 29761: 29761: 29761: 29761: 29761: kExternalSstIngestion, 29761: 29761: kPeriodicCompaction, 29761: 29761: kChangeTemperature, 29761: 29761: kForcedBlobGC, 29761: 29761: 29761: kRoundRobinTtl, 29761: 29761: 29761: kRefitLevel, 29761: 29761: kNumOfReasons, 29761: }; 29761: 29761: const char* GetCompactionReasonString(CompactionReason compaction_reason); 29761: 29761: 29761: enum class FlushReason : int { 29761: kOthers = 0x00, 29761: kGetLiveFiles = 0x01, 29761: kShutDown = 0x02, 29761: kExternalFileIngestion = 0x03, 29761: kManualCompaction = 0x04, 29761: kWriteBufferManager = 0x05, 29761: kWriteBufferFull = 0x06, 29761: kTest = 0x07, 29761: kDeleteFiles = 0x08, 29761: kAutoCompaction = 0x09, 29761: kManualFlush = 0x0a, 29761: kErrorRecovery = 0xb, 29761: 29761: 29761: kErrorRecoveryRetryFlush = 0xc, 29761: kWalFull = 0xd, 29761: 29761: kCatchUpAfterErrorRecovery = 0xe, 29761: }; 29761: 29761: const char* GetFlushReasonString(FlushReason flush_reason); 29761: 29761: 29761: 29761: 29761: 29761: enum class BackgroundErrorReason { 29761: kFlush, 29761: kCompaction, 29761: kWriteCallback, 29761: kMemTable, 29761: kManifestWrite, 29761: kFlushNoWAL, 29761: kManifestWriteNoWAL, 29761: }; 29761: 29761: struct WriteStallInfo { 29761: 29761: std::string cf_name; 29761: 29761: struct { 29761: WriteStallCondition cur; 29761: WriteStallCondition prev; 29761: } condition; 29761: }; 29761: 29761: 29761: struct FileDeletionInfo { 29761: FileDeletionInfo() = default; 29761: 29761: FileDeletionInfo(const std::string& _db_name, const std::string& _file_path, 29761: int _job_id, Status _status) 29761: : db_name(_db_name), 29761: file_path(_file_path), 29761: job_id(_job_id), 29761: status(_status) {} 29761: 29761: std::string db_name; 29761: 29761: std::string file_path; 29761: 29761: int job_id = 0; 29761: 29761: Status status; 29761: }; 29761: 29761: struct TableFileDeletionInfo : public FileDeletionInfo {}; 29761: 29761: struct BlobFileDeletionInfo : public FileDeletionInfo { 29761: BlobFileDeletionInfo(const std::string& _db_name, 29761: const std::string& _file_path, int _job_id, 29761: Status _status) 29761: : FileDeletionInfo(_db_name, _file_path, _job_id, _status) {} 29761: }; 29761: 29761: enum class FileOperationType { 29761: kRead, 29761: kWrite, 29761: kTruncate, 29761: kClose, 29761: kFlush, 29761: kSync, 29761: kFsync, 29761: kRangeSync, 29761: kAppend, 29761: kPositionedAppend, 29761: kOpen, 29761: kVerify 29761: }; 29761: 29761: struct FileOperationInfo { 29761: using Duration = std::chrono::nanoseconds; 29761: using SteadyTimePoint = 29761: std::chrono::time_point; 29761: using SystemTimePoint = 29761: std::chrono::time_point; 29761: using StartTimePoint = std::pair; 29761: using FinishTimePoint = SteadyTimePoint; 29761: 29761: FileOperationType type; 29761: const std::string& path; 29761: 29761: 29761: Temperature temperature; 29761: uint64_t offset; 29761: size_t length; 29761: const Duration duration; 29761: const SystemTimePoint& start_ts; 29761: Status status; 29761: 29761: FileOperationInfo(const FileOperationType _type, const std::string& _path, 29761: const StartTimePoint& _start_ts, 29761: const FinishTimePoint& _finish_ts, const Status& _status, 29761: const Temperature _temperature = Temperature::kUnknown) 29761: : type(_type), 29761: path(_path), 29761: temperature(_temperature), 29761: duration(std::chrono::duration_cast( 29761: _finish_ts - _start_ts.second)), 29761: start_ts(_start_ts.first), 29761: status(_status) {} 29761: static StartTimePoint StartNow() { 29761: return std::make_pair( 29761: std::chrono::system_clock::now(), std::chrono::steady_clock::now()); 29761: } 29761: static FinishTimePoint FinishNow() { 29761: return std::chrono::steady_clock::now(); 29761: } 29761: }; 29761: 29761: struct BlobFileInfo { 29761: BlobFileInfo(const std::string& _blob_file_path, 29761: const uint64_t _blob_file_number) 29761: : blob_file_path(_blob_file_path), blob_file_number(_blob_file_number) {} 29761: 29761: std::string blob_file_path; 29761: uint64_t blob_file_number; 29761: }; 29761: 29761: struct BlobFileAdditionInfo : public BlobFileInfo { 29761: BlobFileAdditionInfo(const std::string& _blob_file_path, 29761: const uint64_t _blob_file_number, 29761: const uint64_t _total_blob_count, 29761: const uint64_t _total_blob_bytes) 29761: : BlobFileInfo(_blob_file_path, _blob_file_number), 29761: total_blob_count(_total_blob_count), 29761: total_blob_bytes(_total_blob_bytes) {} 29761: uint64_t total_blob_count; 29761: uint64_t total_blob_bytes; 29761: }; 29761: 29761: struct BlobFileGarbageInfo : public BlobFileInfo { 29761: BlobFileGarbageInfo(const std::string& _blob_file_path, 29761: const uint64_t _blob_file_number, 29761: const uint64_t _garbage_blob_count, 29761: const uint64_t _garbage_blob_bytes) 29761: : BlobFileInfo(_blob_file_path, _blob_file_number), 29761: garbage_blob_count(_garbage_blob_count), 29761: garbage_blob_bytes(_garbage_blob_bytes) {} 29761: uint64_t garbage_blob_count; 29761: uint64_t garbage_blob_bytes; 29761: }; 29761: 29761: struct ManualFlushInfo { 29761: 29761: uint32_t cf_id; 29761: 29761: std::string cf_name; 29761: 29761: FlushReason flush_reason; 29761: }; 29761: 29761: struct FlushJobInfo { 29761: 29761: uint32_t cf_id; 29761: 29761: std::string cf_name; 29761: 29761: std::string file_path; 29761: 29761: uint64_t file_number; 29761: 29761: uint64_t oldest_blob_file_number; 29761: 29761: uint64_t thread_id; 29761: 29761: int job_id; 29761: 29761: 29761: 29761: 29761: bool triggered_writes_slowdown; 29761: 29761: 29761: 29761: 29761: bool triggered_writes_stop; 29761: 29761: SequenceNumber smallest_seqno; 29761: 29761: SequenceNumber largest_seqno; 29761: 29761: TableProperties table_properties; 29761: 29761: FlushReason flush_reason; 29761: 29761: 29761: CompressionType blob_compression_type; 29761: 29761: 29761: std::vector blob_file_addition_infos; 29761: }; 29761: 29761: struct CompactionFileInfo { 29761: 29761: int level; 29761: 29761: 29761: uint64_t file_number; 29761: 29761: 29761: uint64_t oldest_blob_file_number; 29761: }; 29761: 29761: struct SubcompactionJobInfo { 29761: ~SubcompactionJobInfo() { status.PermitUncheckedError(); } 29761: 29761: uint32_t cf_id; 29761: 29761: std::string cf_name; 29761: 29761: Status status; 29761: 29761: uint64_t thread_id; 29761: 29761: int job_id; 29761: 29761: 29761: 29761: 29761: 29761: int subcompaction_job_id; 29761: 29761: int base_input_level; 29761: 29761: int output_level; 29761: 29761: 29761: CompactionReason compaction_reason; 29761: 29761: 29761: CompressionType compression; 29761: 29761: 29761: CompactionJobStats stats; 29761: 29761: 29761: CompressionType blob_compression_type; 29761: }; 29761: 29761: struct CompactionJobInfo { 29761: ~CompactionJobInfo() { status.PermitUncheckedError(); } 29761: 29761: uint32_t cf_id; 29761: 29761: std::string cf_name; 29761: 29761: Status status; 29761: 29761: uint64_t thread_id; 29761: 29761: int job_id; 29761: 29761: 29761: int base_input_level; 29761: 29761: int output_level; 29761: # 453 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: std::vector input_files; 29761: 29761: 29761: std::vector input_file_infos; 29761: 29761: 29761: std::vector output_files; 29761: 29761: 29761: std::vector output_file_infos; 29761: 29761: 29761: 29761: TablePropertiesCollection table_properties; 29761: 29761: 29761: CompactionReason compaction_reason; 29761: 29761: 29761: CompressionType compression; 29761: 29761: 29761: CompactionJobStats stats; 29761: 29761: 29761: CompressionType blob_compression_type; 29761: 29761: 29761: 29761: std::vector blob_file_addition_infos; 29761: 29761: 29761: 29761: std::vector blob_file_garbage_infos; 29761: }; 29761: 29761: struct MemTableInfo { 29761: 29761: std::string cf_name; 29761: 29761: 29761: SequenceNumber first_seqno; 29761: 29761: 29761: 29761: 29761: SequenceNumber earliest_seqno; 29761: 29761: uint64_t num_entries; 29761: 29761: uint64_t num_deletes; 29761: 29761: 29761: 29761: std::string newest_udt; 29761: }; 29761: 29761: struct ExternalFileIngestionInfo { 29761: 29761: std::string cf_name; 29761: 29761: std::string external_file_path; 29761: 29761: std::string internal_file_path; 29761: 29761: SequenceNumber global_seqno; 29761: 29761: TableProperties table_properties; 29761: }; 29761: 29761: 29761: struct BackgroundErrorRecoveryInfo { 29761: 29761: Status old_bg_error; 29761: 29761: 29761: 29761: Status new_bg_error; 29761: }; 29761: 29761: struct IOErrorInfo { 29761: IOErrorInfo(const IOStatus& _io_status, FileOperationType _operation, 29761: const std::string& _file_path, size_t _length, uint64_t _offset) 29761: : io_status(_io_status), 29761: operation(_operation), 29761: file_path(_file_path), 29761: length(_length), 29761: offset(_offset) {} 29761: 29761: IOStatus io_status; 29761: FileOperationType operation; 29761: std::string file_path; 29761: size_t length; 29761: uint64_t offset; 29761: }; 29761: # 580 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: class EventListener : public Customizable { 29761: public: 29761: static const char* Type() { return "EventListener"; } 29761: static Status CreateFromString(const ConfigOptions& options, 29761: const std::string& id, 29761: std::shared_ptr* result); 29761: const char* Name() const override { 29761: 29761: 29761: return ""; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnFlushCompleted(DB* , 29761: const FlushJobInfo& ) {} 29761: # 608 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnFlushBegin(DB* , 29761: const FlushJobInfo& ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnManualFlushScheduled( 29761: DB* , const std::vector& ) {} 29761: # 630 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnTableFileDeleted(const TableFileDeletionInfo& ) {} 29761: # 639 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnCompactionBegin(DB* , const CompactionJobInfo& ) {} 29761: # 654 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnCompactionCompleted(DB* , 29761: const CompactionJobInfo& ) {} 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnSubcompactionBegin(const SubcompactionJobInfo& ) {} 29761: # 692 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnSubcompactionCompleted(const SubcompactionJobInfo& ) {} 29761: # 709 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnTableFileCreated(const TableFileCreationInfo& ) {} 29761: # 718 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnTableFileCreationStarted( 29761: const TableFileCreationBriefInfo& ) {} 29761: # 731 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnMemTableSealed(const MemTableInfo& ) {} 29761: # 741 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnColumnFamilyHandleDeletionStarted( 29761: ColumnFamilyHandle* ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnExternalFileIngested( 29761: DB* , const ExternalFileIngestionInfo& ) {} 29761: # 764 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnBackgroundError(BackgroundErrorReason , 29761: Status* ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnStallConditionsChanged(const WriteStallInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileReadFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileWriteFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileFlushFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileSyncFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileRangeSyncFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileTruncateFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnFileCloseFinish(const FileOperationInfo& ) {} 29761: 29761: 29761: 29761: virtual bool ShouldBeNotifiedOnFileIO() { return false; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnErrorRecoveryBegin(BackgroundErrorReason , 29761: Status , 29761: bool* ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnErrorRecoveryCompleted(Status old_bg_error) { 29761: old_bg_error.PermitUncheckedError(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnErrorRecoveryEnd(const BackgroundErrorRecoveryInfo& ) { 29761: } 29761: # 840 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnBlobFileCreationStarted( 29761: const BlobFileCreationBriefInfo& ) {} 29761: # 851 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/listener.h" 29761: virtual void OnBlobFileCreated(const BlobFileCreationInfo& ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void OnBlobFileDeleted(const BlobFileDeletionInfo& ) {} 29761: 29761: 29761: 29761: virtual void OnIOError(const IOErrorInfo& ) {} 29761: 29761: ~EventListener() override {} 29761: }; 29761: 29761: 29761: } 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_partitioner.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_partitioner.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: 29761: enum PartitionerResult : char { 29761: 29761: kNotRequired = 0x0, 29761: 29761: kRequired = 0x1 29761: 29761: }; 29761: 29761: struct PartitionerRequest { 29761: PartitionerRequest(const Slice& prev_user_key_, 29761: const Slice& current_user_key_, 29761: uint64_t current_output_file_size_) 29761: : prev_user_key(&prev_user_key_), 29761: current_user_key(¤t_user_key_), 29761: current_output_file_size(current_output_file_size_) {} 29761: const Slice* prev_user_key; 29761: const Slice* current_user_key; 29761: uint64_t current_output_file_size; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class SstPartitioner { 29761: public: 29761: virtual ~SstPartitioner() {} 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual PartitionerResult ShouldPartition( 29761: const PartitionerRequest& request) = 0; 29761: 29761: 29761: 29761: virtual bool CanDoTrivialMove(const Slice& smallest_user_key, 29761: const Slice& largest_user_key) = 0; 29761: 29761: 29761: struct Context { 29761: 29761: bool is_full_compaction; 29761: 29761: 29761: bool is_manual_compaction; 29761: 29761: int output_level; 29761: 29761: Slice smallest_user_key; 29761: 29761: Slice largest_user_key; 29761: }; 29761: }; 29761: 29761: 29761: 29761: 29761: class SstPartitionerFactory : public Customizable { 29761: public: 29761: ~SstPartitionerFactory() override {} 29761: static const char* Type() { return "SstPartitionerFactory"; } 29761: static Status CreateFromString( 29761: const ConfigOptions& options, const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: virtual std::unique_ptr CreatePartitioner( 29761: const SstPartitioner::Context& context) const = 0; 29761: 29761: 29761: const char* Name() const override = 0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class SstPartitionerFixedPrefix : public SstPartitioner { 29761: public: 29761: explicit SstPartitionerFixedPrefix(size_t len) : len_(len) {} 29761: 29761: ~SstPartitionerFixedPrefix() override {} 29761: 29761: const char* Name() const override { return "SstPartitionerFixedPrefix"; } 29761: 29761: PartitionerResult ShouldPartition(const PartitionerRequest& request) override; 29761: 29761: bool CanDoTrivialMove(const Slice& smallest_user_key, 29761: const Slice& largest_user_key) override; 29761: 29761: private: 29761: size_t len_; 29761: }; 29761: 29761: 29761: 29761: 29761: class SstPartitionerFixedPrefixFactory : public SstPartitionerFactory { 29761: public: 29761: explicit SstPartitionerFixedPrefixFactory(size_t len); 29761: 29761: ~SstPartitionerFixedPrefixFactory() override {} 29761: 29761: static const char* kClassName() { return "SstPartitionerFixedPrefixFactory"; } 29761: const char* Name() const override { return kClassName(); } 29761: 29761: std::unique_ptr CreatePartitioner( 29761: const SstPartitioner::Context& ) const override; 29761: 29761: private: 29761: size_t len_; 29761: }; 29761: 29761: std::shared_ptr NewSstPartitionerFixedPrefixFactory( 29761: size_t prefix_len); 29761: 29761: } 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/version.h" 1 29761: 29761: 29761: 29761: 29761: 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/version.h" 29761: namespace rocksdb { 29761: 29761: 29761: const std::unordered_map& GetRocksBuildProperties(); 29761: 29761: 29761: 29761: 29761: std::string GetRocksVersionAsString(bool with_patch = true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::string GetRocksBuildInfoAsString(const std::string& program, 29761: bool verbose = false); 29761: } 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 1 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/condition_variable" 1 3 29761: # 32 "/usr/include/c++/14/condition_variable" 3 29761: 29761: # 33 "/usr/include/c++/14/condition_variable" 3 29761: # 54 "/usr/include/c++/14/condition_variable" 3 29761: 29761: # 54 "/usr/include/c++/14/condition_variable" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 67 "/usr/include/c++/14/condition_variable" 3 29761: enum class cv_status { no_timeout, timeout }; 29761: 29761: 29761: class condition_variable 29761: { 29761: using steady_clock = chrono::steady_clock; 29761: using system_clock = chrono::system_clock; 29761: 29761: using __clock_t = steady_clock; 29761: 29761: 29761: 29761: 29761: __condvar _M_cond; 29761: 29761: public: 29761: typedef __gthread_cond_t* native_handle_type; 29761: 29761: condition_variable() noexcept; 29761: ~condition_variable() noexcept; 29761: 29761: condition_variable(const condition_variable&) = delete; 29761: condition_variable& operator=(const condition_variable&) = delete; 29761: 29761: void 29761: notify_one() noexcept; 29761: 29761: void 29761: notify_all() noexcept; 29761: 29761: void 29761: wait(unique_lock& __lock); 29761: 29761: template 29761: void 29761: wait(unique_lock& __lock, _Predicate __p) 29761: { 29761: while (!__p()) 29761: wait(__lock); 29761: } 29761: 29761: 29761: template 29761: cv_status 29761: wait_until(unique_lock& __lock, 29761: const chrono::time_point& __atime) 29761: { return __wait_until_impl(__lock, __atime); } 29761: 29761: 29761: template 29761: cv_status 29761: wait_until(unique_lock& __lock, 29761: const chrono::time_point& __atime) 29761: { return __wait_until_impl(__lock, __atime); } 29761: 29761: template 29761: cv_status 29761: wait_until(unique_lock& __lock, 29761: const chrono::time_point<_Clock, _Duration>& __atime) 29761: { 29761: 29761: 29761: 29761: using __s_dur = typename __clock_t::duration; 29761: const typename _Clock::time_point __c_entry = _Clock::now(); 29761: const __clock_t::time_point __s_entry = __clock_t::now(); 29761: const auto __delta = __atime - __c_entry; 29761: const auto __s_atime = __s_entry + 29761: chrono::__detail::ceil<__s_dur>(__delta); 29761: 29761: if (__wait_until_impl(__lock, __s_atime) == cv_status::no_timeout) 29761: return cv_status::no_timeout; 29761: 29761: 29761: 29761: if (_Clock::now() < __atime) 29761: return cv_status::no_timeout; 29761: return cv_status::timeout; 29761: } 29761: 29761: template 29761: bool 29761: wait_until(unique_lock& __lock, 29761: const chrono::time_point<_Clock, _Duration>& __atime, 29761: _Predicate __p) 29761: { 29761: while (!__p()) 29761: if (wait_until(__lock, __atime) == cv_status::timeout) 29761: return __p(); 29761: return true; 29761: } 29761: 29761: template 29761: cv_status 29761: wait_for(unique_lock& __lock, 29761: const chrono::duration<_Rep, _Period>& __rtime) 29761: { 29761: using __dur = typename steady_clock::duration; 29761: return wait_until(__lock, 29761: steady_clock::now() + 29761: chrono::__detail::ceil<__dur>(__rtime)); 29761: } 29761: 29761: template 29761: bool 29761: wait_for(unique_lock& __lock, 29761: const chrono::duration<_Rep, _Period>& __rtime, 29761: _Predicate __p) 29761: { 29761: using __dur = typename steady_clock::duration; 29761: return wait_until(__lock, 29761: steady_clock::now() + 29761: chrono::__detail::ceil<__dur>(__rtime), 29761: std::move(__p)); 29761: } 29761: 29761: native_handle_type 29761: native_handle() 29761: { return _M_cond.native_handle(); } 29761: 29761: private: 29761: 29761: template 29761: cv_status 29761: __wait_until_impl(unique_lock& __lock, 29761: const chrono::time_point& __atime) 29761: { 29761: auto __s = chrono::time_point_cast(__atime); 29761: auto __ns = chrono::duration_cast(__atime - __s); 29761: 29761: __gthread_time_t __ts = 29761: { 29761: static_cast(__s.time_since_epoch().count()), 29761: static_cast(__ns.count()) 29761: }; 29761: 29761: _M_cond.wait_until(*__lock.mutex(), 1, __ts); 29761: 29761: return (steady_clock::now() < __atime 29761: ? cv_status::no_timeout : cv_status::timeout); 29761: } 29761: 29761: 29761: template 29761: cv_status 29761: __wait_until_impl(unique_lock& __lock, 29761: const chrono::time_point& __atime) 29761: { 29761: auto __s = chrono::time_point_cast(__atime); 29761: auto __ns = chrono::duration_cast(__atime - __s); 29761: 29761: __gthread_time_t __ts = 29761: { 29761: static_cast(__s.time_since_epoch().count()), 29761: static_cast(__ns.count()) 29761: }; 29761: 29761: _M_cond.wait_until(*__lock.mutex(), __ts); 29761: 29761: return (system_clock::now() < __atime 29761: ? cv_status::no_timeout : cv_status::timeout); 29761: } 29761: }; 29761: 29761: void 29761: notify_all_at_thread_exit(condition_variable&, unique_lock); 29761: 29761: struct __at_thread_exit_elt 29761: { 29761: __at_thread_exit_elt* _M_next; 29761: void (*_M_cb)(void*); 29761: }; 29761: 29761: inline namespace _V2 { 29761: 29761: 29761: 29761: class condition_variable_any 29761: { 29761: 29761: using __clock_t = chrono::steady_clock; 29761: 29761: 29761: 29761: condition_variable _M_cond; 29761: shared_ptr _M_mutex; 29761: 29761: 29761: template 29761: struct _Unlock 29761: { 29761: explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: ~_Unlock() noexcept(false) 29761: { 29761: if (uncaught_exception()) 29761: { 29761: try 29761: { _M_lock.lock(); } 29761: catch(const __cxxabiv1::__forced_unwind&) 29761: { throw; } 29761: catch(...) 29761: { } 29761: } 29761: else 29761: _M_lock.lock(); 29761: } 29761: #pragma GCC diagnostic pop 29761: 29761: _Unlock(const _Unlock&) = delete; 29761: _Unlock& operator=(const _Unlock&) = delete; 29761: 29761: _Lock& _M_lock; 29761: }; 29761: 29761: public: 29761: condition_variable_any() : _M_mutex(std::make_shared()) { } 29761: ~condition_variable_any() = default; 29761: 29761: condition_variable_any(const condition_variable_any&) = delete; 29761: condition_variable_any& operator=(const condition_variable_any&) = delete; 29761: 29761: void 29761: notify_one() noexcept 29761: { 29761: lock_guard __lock(*_M_mutex); 29761: _M_cond.notify_one(); 29761: } 29761: 29761: void 29761: notify_all() noexcept 29761: { 29761: lock_guard __lock(*_M_mutex); 29761: _M_cond.notify_all(); 29761: } 29761: 29761: template 29761: void 29761: wait(_Lock& __lock) 29761: { 29761: shared_ptr __mutex = _M_mutex; 29761: unique_lock __my_lock(*__mutex); 29761: _Unlock<_Lock> __unlock(__lock); 29761: 29761: 29761: unique_lock __my_lock2(std::move(__my_lock)); 29761: _M_cond.wait(__my_lock2); 29761: } 29761: 29761: 29761: template 29761: void 29761: wait(_Lock& __lock, _Predicate __p) 29761: { 29761: while (!__p()) 29761: wait(__lock); 29761: } 29761: 29761: template 29761: cv_status 29761: wait_until(_Lock& __lock, 29761: const chrono::time_point<_Clock, _Duration>& __atime) 29761: { 29761: shared_ptr __mutex = _M_mutex; 29761: unique_lock __my_lock(*__mutex); 29761: _Unlock<_Lock> __unlock(__lock); 29761: 29761: 29761: unique_lock __my_lock2(std::move(__my_lock)); 29761: return _M_cond.wait_until(__my_lock2, __atime); 29761: } 29761: 29761: template 29761: bool 29761: wait_until(_Lock& __lock, 29761: const chrono::time_point<_Clock, _Duration>& __atime, 29761: _Predicate __p) 29761: { 29761: while (!__p()) 29761: if (wait_until(__lock, __atime) == cv_status::timeout) 29761: return __p(); 29761: return true; 29761: } 29761: 29761: template 29761: cv_status 29761: wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) 29761: { return wait_until(__lock, __clock_t::now() + __rtime); } 29761: 29761: template 29761: bool 29761: wait_for(_Lock& __lock, 29761: const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) 29761: { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } 29761: # 443 "/usr/include/c++/14/condition_variable" 3 29761: }; 29761: 29761: } 29761: 29761: 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 2 29761: 29761: # 1 "/usr/include/c++/14/list" 1 3 29761: # 58 "/usr/include/c++/14/list" 3 29761: 29761: # 59 "/usr/include/c++/14/list" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_list.h" 1 3 29761: # 68 "/usr/include/c++/14/bits/stl_list.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: namespace __detail 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct _List_node_base 29761: { 29761: _List_node_base* _M_next; 29761: _List_node_base* _M_prev; 29761: 29761: static void 29761: swap(_List_node_base& __x, _List_node_base& __y) noexcept; 29761: 29761: void 29761: _M_transfer(_List_node_base* const __first, 29761: _List_node_base* const __last) noexcept; 29761: 29761: void 29761: _M_reverse() noexcept; 29761: 29761: void 29761: _M_hook(_List_node_base* const __position) noexcept; 29761: 29761: void 29761: _M_unhook() noexcept; 29761: }; 29761: 29761: 29761: struct _List_node_header : public _List_node_base 29761: { 29761: 29761: std::size_t _M_size; 29761: 29761: 29761: _List_node_header() noexcept 29761: { _M_init(); } 29761: 29761: 29761: _List_node_header(_List_node_header&& __x) noexcept 29761: : _List_node_base{ __x._M_next, __x._M_prev } 29761: 29761: , _M_size(__x._M_size) 29761: 29761: { 29761: if (__x._M_base()->_M_next == __x._M_base()) 29761: this->_M_next = this->_M_prev = this; 29761: else 29761: { 29761: this->_M_next->_M_prev = this->_M_prev->_M_next = this->_M_base(); 29761: __x._M_init(); 29761: } 29761: } 29761: 29761: void 29761: _M_move_nodes(_List_node_header&& __x) 29761: { 29761: _List_node_base* const __xnode = __x._M_base(); 29761: if (__xnode->_M_next == __xnode) 29761: _M_init(); 29761: else 29761: { 29761: _List_node_base* const __node = this->_M_base(); 29761: __node->_M_next = __xnode->_M_next; 29761: __node->_M_prev = __xnode->_M_prev; 29761: __node->_M_next->_M_prev = __node->_M_prev->_M_next = __node; 29761: 29761: _M_size = __x._M_size; 29761: 29761: __x._M_init(); 29761: } 29761: } 29761: 29761: 29761: void 29761: _M_init() noexcept 29761: { 29761: this->_M_next = this->_M_prev = this; 29761: 29761: this->_M_size = 0; 29761: 29761: } 29761: 29761: private: 29761: _List_node_base* _M_base() { return this; } 29761: }; 29761: 29761: 29761: struct _Scratch_list : _List_node_base 29761: { 29761: _Scratch_list() { _M_next = _M_prev = this; } 29761: 29761: bool empty() const { return _M_next == this; } 29761: 29761: void swap(_List_node_base& __l) { _List_node_base::swap(*this, __l); } 29761: 29761: template 29761: struct _Ptr_cmp 29761: { 29761: _Cmp _M_cmp; 29761: 29761: bool 29761: operator()(__detail::_List_node_base* __lhs, 29761: __detail::_List_node_base* __rhs) 29761: { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); } 29761: }; 29761: 29761: template 29761: struct _Ptr_cmp<_Iter, void> 29761: { 29761: bool 29761: operator()(__detail::_List_node_base* __lhs, 29761: __detail::_List_node_base* __rhs) const 29761: { return *_Iter(__lhs) < *_Iter(__rhs); } 29761: }; 29761: 29761: 29761: template 29761: void 29761: merge(_List_node_base& __x, _Cmp __comp) 29761: { 29761: _List_node_base* __first1 = _M_next; 29761: _List_node_base* const __last1 = this; 29761: _List_node_base* __first2 = __x._M_next; 29761: _List_node_base* const __last2 = std::__addressof(__x); 29761: 29761: while (__first1 != __last1 && __first2 != __last2) 29761: { 29761: if (__comp(__first2, __first1)) 29761: { 29761: _List_node_base* __next = __first2->_M_next; 29761: __first1->_M_transfer(__first2, __next); 29761: __first2 = __next; 29761: } 29761: else 29761: __first1 = __first1->_M_next; 29761: } 29761: if (__first2 != __last2) 29761: this->_M_transfer(__first2, __last2); 29761: } 29761: 29761: 29761: void _M_take_one(_List_node_base* __i) 29761: { this->_M_transfer(__i, __i->_M_next); } 29761: 29761: 29761: void _M_put_all(_List_node_base* __i) 29761: { 29761: if (!empty()) 29761: __i->_M_transfer(_M_next, this); 29761: } 29761: }; 29761: 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: struct _List_node : public __detail::_List_node_base 29761: { 29761: 29761: __gnu_cxx::__aligned_membuf<_Tp> _M_storage; 29761: _Tp* _M_valptr() { return _M_storage._M_ptr(); } 29761: _Tp const* _M_valptr() const { return _M_storage._M_ptr(); } 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _List_iterator 29761: { 29761: typedef _List_iterator<_Tp> _Self; 29761: typedef _List_node<_Tp> _Node; 29761: 29761: typedef ptrdiff_t difference_type; 29761: typedef std::bidirectional_iterator_tag iterator_category; 29761: typedef _Tp value_type; 29761: typedef _Tp* pointer; 29761: typedef _Tp& reference; 29761: 29761: _List_iterator() noexcept 29761: : _M_node() { } 29761: 29761: explicit 29761: _List_iterator(__detail::_List_node_base* __x) noexcept 29761: : _M_node(__x) { } 29761: 29761: _Self 29761: _M_const_cast() const noexcept 29761: { return *this; } 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator*() const noexcept 29761: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 29761: 29761: [[__nodiscard__]] 29761: pointer 29761: operator->() const noexcept 29761: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 29761: 29761: _Self& 29761: operator++() noexcept 29761: { 29761: _M_node = _M_node->_M_next; 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator++(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _M_node->_M_next; 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator--() noexcept 29761: { 29761: _M_node = _M_node->_M_prev; 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator--(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _M_node->_M_prev; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node == __y._M_node; } 29761: 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node != __y._M_node; } 29761: 29761: 29761: 29761: __detail::_List_node_base* _M_node; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _List_const_iterator 29761: { 29761: typedef _List_const_iterator<_Tp> _Self; 29761: typedef const _List_node<_Tp> _Node; 29761: typedef _List_iterator<_Tp> iterator; 29761: 29761: typedef ptrdiff_t difference_type; 29761: typedef std::bidirectional_iterator_tag iterator_category; 29761: typedef _Tp value_type; 29761: typedef const _Tp* pointer; 29761: typedef const _Tp& reference; 29761: 29761: _List_const_iterator() noexcept 29761: : _M_node() { } 29761: 29761: explicit 29761: _List_const_iterator(const __detail::_List_node_base* __x) 29761: noexcept 29761: : _M_node(__x) { } 29761: 29761: _List_const_iterator(const iterator& __x) noexcept 29761: : _M_node(__x._M_node) { } 29761: 29761: iterator 29761: _M_const_cast() const noexcept 29761: { return iterator(const_cast<__detail::_List_node_base*>(_M_node)); } 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: operator*() const noexcept 29761: { return *static_cast<_Node*>(_M_node)->_M_valptr(); } 29761: 29761: [[__nodiscard__]] 29761: pointer 29761: operator->() const noexcept 29761: { return static_cast<_Node*>(_M_node)->_M_valptr(); } 29761: 29761: _Self& 29761: operator++() noexcept 29761: { 29761: _M_node = _M_node->_M_next; 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator++(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _M_node->_M_next; 29761: return __tmp; 29761: } 29761: 29761: _Self& 29761: operator--() noexcept 29761: { 29761: _M_node = _M_node->_M_prev; 29761: return *this; 29761: } 29761: 29761: _Self 29761: operator--(int) noexcept 29761: { 29761: _Self __tmp = *this; 29761: _M_node = _M_node->_M_prev; 29761: return __tmp; 29761: } 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node == __y._M_node; } 29761: 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const _Self& __x, const _Self& __y) noexcept 29761: { return __x._M_node != __y._M_node; } 29761: 29761: 29761: 29761: const __detail::_List_node_base* _M_node; 29761: }; 29761: 29761: namespace __cxx11 { 29761: 29761: template 29761: class _List_base 29761: { 29761: protected: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Tp>::other _Tp_alloc_type; 29761: typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tp_alloc_traits; 29761: typedef typename _Tp_alloc_traits::template 29761: rebind<_List_node<_Tp> >::other _Node_alloc_type; 29761: typedef __gnu_cxx::__alloc_traits<_Node_alloc_type> _Node_alloc_traits; 29761: 29761: 29761: static size_t 29761: _S_distance(const __detail::_List_node_base* __first, 29761: const __detail::_List_node_base* __last) 29761: { 29761: size_t __n = 0; 29761: while (__first != __last) 29761: { 29761: __first = __first->_M_next; 29761: ++__n; 29761: } 29761: return __n; 29761: } 29761: 29761: 29761: struct _List_impl 29761: : public _Node_alloc_type 29761: { 29761: __detail::_List_node_header _M_node; 29761: 29761: _List_impl() noexcept(is_nothrow_default_constructible<_Node_alloc_type>::value) 29761: 29761: : _Node_alloc_type() 29761: { } 29761: 29761: _List_impl(const _Node_alloc_type& __a) noexcept 29761: : _Node_alloc_type(__a) 29761: { } 29761: 29761: 29761: _List_impl(_List_impl&&) = default; 29761: 29761: _List_impl(_Node_alloc_type&& __a, _List_impl&& __x) 29761: : _Node_alloc_type(std::move(__a)), _M_node(std::move(__x._M_node)) 29761: { } 29761: 29761: _List_impl(_Node_alloc_type&& __a) noexcept 29761: : _Node_alloc_type(std::move(__a)) 29761: { } 29761: 29761: }; 29761: 29761: _List_impl _M_impl; 29761: 29761: 29761: size_t _M_get_size() const { return _M_impl._M_node._M_size; } 29761: 29761: void _M_set_size(size_t __n) { _M_impl._M_node._M_size = __n; } 29761: 29761: void _M_inc_size(size_t __n) { _M_impl._M_node._M_size += __n; } 29761: 29761: void _M_dec_size(size_t __n) { _M_impl._M_node._M_size -= __n; } 29761: 29761: 29761: size_t 29761: _M_distance(const __detail::_List_node_base* __first, 29761: const __detail::_List_node_base* __last) const 29761: { return _S_distance(__first, __last); } 29761: 29761: 29761: size_t _M_node_count() const { return _M_get_size(); } 29761: # 516 "/usr/include/c++/14/bits/stl_list.h" 3 29761: typename _Node_alloc_traits::pointer 29761: _M_get_node() 29761: { return _Node_alloc_traits::allocate(_M_impl, 1); } 29761: 29761: void 29761: _M_put_node(typename _Node_alloc_traits::pointer __p) noexcept 29761: { _Node_alloc_traits::deallocate(_M_impl, __p, 1); } 29761: 29761: public: 29761: typedef _Alloc allocator_type; 29761: 29761: _Node_alloc_type& 29761: _M_get_Node_allocator() noexcept 29761: { return _M_impl; } 29761: 29761: const _Node_alloc_type& 29761: _M_get_Node_allocator() const noexcept 29761: { return _M_impl; } 29761: 29761: 29761: _List_base() = default; 29761: 29761: 29761: 29761: 29761: _List_base(const _Node_alloc_type& __a) noexcept 29761: : _M_impl(__a) 29761: { } 29761: 29761: 29761: _List_base(_List_base&&) = default; 29761: 29761: 29761: _List_base(_List_base&& __x, _Node_alloc_type&& __a) 29761: : _M_impl(std::move(__a)) 29761: { 29761: if (__x._M_get_Node_allocator() == _M_get_Node_allocator()) 29761: _M_move_nodes(std::move(__x)); 29761: 29761: } 29761: 29761: 29761: 29761: _List_base(_Node_alloc_type&& __a, _List_base&& __x) 29761: : _M_impl(std::move(__a), std::move(__x._M_impl)) 29761: { } 29761: 29761: 29761: _List_base(_Node_alloc_type&& __a) 29761: : _M_impl(std::move(__a)) 29761: { } 29761: 29761: void 29761: _M_move_nodes(_List_base&& __x) 29761: { _M_impl._M_node._M_move_nodes(std::move(__x._M_impl._M_node)); } 29761: 29761: 29761: 29761: ~_List_base() noexcept 29761: { _M_clear(); } 29761: 29761: void 29761: _M_clear() noexcept; 29761: 29761: void 29761: _M_init() noexcept 29761: { this->_M_impl._M_node._M_init(); } 29761: }; 29761: # 631 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template > 29761: class list : protected _List_base<_Tp, _Alloc> 29761: { 29761: # 644 "/usr/include/c++/14/bits/stl_list.h" 3 29761: static_assert(is_same::type, _Tp>::value, 29761: "std::list must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef _List_base<_Tp, _Alloc> _Base; 29761: typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; 29761: typedef typename _Base::_Tp_alloc_traits _Tp_alloc_traits; 29761: typedef typename _Base::_Node_alloc_type _Node_alloc_type; 29761: typedef typename _Base::_Node_alloc_traits _Node_alloc_traits; 29761: 29761: public: 29761: typedef _Tp value_type; 29761: typedef typename _Tp_alloc_traits::pointer pointer; 29761: typedef typename _Tp_alloc_traits::const_pointer const_pointer; 29761: typedef typename _Tp_alloc_traits::reference reference; 29761: typedef typename _Tp_alloc_traits::const_reference const_reference; 29761: typedef _List_iterator<_Tp> iterator; 29761: typedef _List_const_iterator<_Tp> const_iterator; 29761: typedef std::reverse_iterator const_reverse_iterator; 29761: typedef std::reverse_iterator reverse_iterator; 29761: typedef size_t size_type; 29761: typedef ptrdiff_t difference_type; 29761: typedef _Alloc allocator_type; 29761: 29761: protected: 29761: 29761: 29761: typedef _List_node<_Tp> _Node; 29761: 29761: using _Base::_M_impl; 29761: using _Base::_M_put_node; 29761: using _Base::_M_get_node; 29761: using _Base::_M_get_Node_allocator; 29761: # 706 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: _Node* 29761: _M_create_node(_Args&&... __args) 29761: { 29761: auto __p = this->_M_get_node(); 29761: auto& __alloc = _M_get_Node_allocator(); 29761: __allocated_ptr<_Node_alloc_type> __guard{__alloc, __p}; 29761: _Node_alloc_traits::construct(__alloc, __p->_M_valptr(), 29761: std::forward<_Args>(__args)...); 29761: __guard = nullptr; 29761: return __p; 29761: } 29761: 29761: 29761: 29761: static size_t 29761: _S_distance(const_iterator __first, const_iterator __last) 29761: { return std::distance(__first, __last); } 29761: 29761: 29761: size_t 29761: _M_node_count() const 29761: { return this->_M_get_size(); } 29761: # 741 "/usr/include/c++/14/bits/stl_list.h" 3 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: list() = default; 29761: # 758 "/usr/include/c++/14/bits/stl_list.h" 3 29761: explicit 29761: list(const allocator_type& __a) noexcept 29761: : _Base(_Node_alloc_type(__a)) { } 29761: # 771 "/usr/include/c++/14/bits/stl_list.h" 3 29761: explicit 29761: list(size_type __n, const allocator_type& __a = allocator_type()) 29761: : _Base(_Node_alloc_type(__a)) 29761: { _M_default_initialize(__n); } 29761: # 784 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list(size_type __n, const value_type& __value, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(_Node_alloc_type(__a)) 29761: { _M_fill_initialize(__n, __value); } 29761: # 811 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list(const list& __x) 29761: : _Base(_Node_alloc_traits:: 29761: _S_select_on_copy(__x._M_get_Node_allocator())) 29761: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 29761: # 824 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list(list&&) = default; 29761: # 834 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list(initializer_list __l, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(_Node_alloc_type(__a)) 29761: { _M_initialize_dispatch(__l.begin(), __l.end(), __false_type()); } 29761: 29761: list(const list& __x, const __type_identity_t& __a) 29761: : _Base(_Node_alloc_type(__a)) 29761: { _M_initialize_dispatch(__x.begin(), __x.end(), __false_type()); } 29761: 29761: private: 29761: list(list&& __x, const allocator_type& __a, true_type) noexcept 29761: : _Base(_Node_alloc_type(__a), std::move(__x)) 29761: { } 29761: 29761: list(list&& __x, const allocator_type& __a, false_type) 29761: : _Base(_Node_alloc_type(__a)) 29761: { 29761: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 29761: this->_M_move_nodes(std::move(__x)); 29761: else 29761: insert(begin(), std::__make_move_if_noexcept_iterator(__x.begin()), 29761: std::__make_move_if_noexcept_iterator(__x.end())); 29761: } 29761: 29761: public: 29761: list(list&& __x, const __type_identity_t& __a) 29761: noexcept(_Node_alloc_traits::_S_always_equal()) 29761: : list(std::move(__x), __a, 29761: typename _Node_alloc_traits::is_always_equal{}) 29761: { } 29761: # 877 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template> 29761: list(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a = allocator_type()) 29761: : _Base(_Node_alloc_type(__a)) 29761: { _M_initialize_dispatch(__first, __last, __false_type()); } 29761: # 903 "/usr/include/c++/14/bits/stl_list.h" 3 29761: ~list() = default; 29761: # 914 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list& 29761: operator=(const list& __x); 29761: # 928 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list& 29761: operator=(list&& __x) 29761: noexcept(_Node_alloc_traits::_S_nothrow_move()) 29761: { 29761: constexpr bool __move_storage = 29761: _Node_alloc_traits::_S_propagate_on_move_assign() 29761: || _Node_alloc_traits::_S_always_equal(); 29761: _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); 29761: return *this; 29761: } 29761: # 946 "/usr/include/c++/14/bits/stl_list.h" 3 29761: list& 29761: operator=(initializer_list __l) 29761: { 29761: this->assign(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: # 964 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: assign(size_type __n, const value_type& __val) 29761: { _M_fill_assign(__n, __val); } 29761: # 981 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template> 29761: void 29761: assign(_InputIterator __first, _InputIterator __last) 29761: { _M_assign_dispatch(__first, __last, __false_type()); } 29761: # 1005 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: assign(initializer_list __l) 29761: { this->_M_assign_dispatch(__l.begin(), __l.end(), __false_type()); } 29761: 29761: 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_Base::_M_get_Node_allocator()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: begin() noexcept 29761: { return iterator(this->_M_impl._M_node._M_next); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: begin() const noexcept 29761: { return const_iterator(this->_M_impl._M_node._M_next); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: iterator 29761: end() noexcept 29761: { return iterator(&this->_M_impl._M_node); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: end() const noexcept 29761: { return const_iterator(&this->_M_impl._M_node); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rbegin() noexcept 29761: { return reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reverse_iterator 29761: rend() noexcept 29761: { return reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: rend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cbegin() const noexcept 29761: { return const_iterator(this->_M_impl._M_node._M_next); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_iterator 29761: cend() const noexcept 29761: { return const_iterator(&this->_M_impl._M_node); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crbegin() const noexcept 29761: { return const_reverse_iterator(end()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reverse_iterator 29761: crend() const noexcept 29761: { return const_reverse_iterator(begin()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return this->_M_impl._M_node._M_next == &this->_M_impl._M_node; } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: size() const noexcept 29761: { return _M_node_count(); } 29761: 29761: 29761: [[__nodiscard__]] 29761: size_type 29761: max_size() const noexcept 29761: { return _Node_alloc_traits::max_size(_M_get_Node_allocator()); } 29761: # 1168 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: resize(size_type __new_size); 29761: # 1181 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: resize(size_type __new_size, const value_type& __x); 29761: # 1203 "/usr/include/c++/14/bits/stl_list.h" 3 29761: [[__nodiscard__]] 29761: reference 29761: front() noexcept 29761: { return *begin(); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: front() const noexcept 29761: { return *begin(); } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: reference 29761: back() noexcept 29761: { 29761: iterator __tmp = end(); 29761: --__tmp; 29761: return *__tmp; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: const_reference 29761: back() const noexcept 29761: { 29761: const_iterator __tmp = end(); 29761: --__tmp; 29761: return *__tmp; 29761: } 29761: # 1254 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: push_front(const value_type& __x) 29761: { this->_M_insert(begin(), __x); } 29761: 29761: 29761: void 29761: push_front(value_type&& __x) 29761: { this->_M_insert(begin(), std::move(__x)); } 29761: 29761: template 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_front(_Args&&... __args) 29761: { 29761: this->_M_insert(begin(), std::forward<_Args>(__args)...); 29761: 29761: return front(); 29761: 29761: } 29761: # 1290 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: pop_front() noexcept 29761: { this->_M_erase(begin()); } 29761: # 1304 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: push_back(const value_type& __x) 29761: { this->_M_insert(end(), __x); } 29761: 29761: 29761: void 29761: push_back(value_type&& __x) 29761: { this->_M_insert(end(), std::move(__x)); } 29761: 29761: template 29761: 29761: reference 29761: 29761: 29761: 29761: emplace_back(_Args&&... __args) 29761: { 29761: this->_M_insert(end(), std::forward<_Args>(__args)...); 29761: 29761: return back(); 29761: 29761: } 29761: # 1339 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: pop_back() noexcept 29761: { this->_M_erase(iterator(this->_M_impl._M_node._M_prev)); } 29761: # 1356 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: iterator 29761: emplace(const_iterator __position, _Args&&... __args); 29761: # 1371 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: insert(const_iterator __position, const value_type& __x); 29761: # 1401 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return emplace(__position, std::move(__x)); } 29761: # 1420 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: insert(const_iterator __p, initializer_list __l) 29761: { return this->insert(__p, __l.begin(), __l.end()); } 29761: # 1440 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: insert(const_iterator __position, size_type __n, const value_type& __x); 29761: # 1479 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template> 29761: iterator 29761: insert(const_iterator __position, _InputIterator __first, 29761: _InputIterator __last); 29761: # 1523 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: 29761: erase(const_iterator __position) noexcept; 29761: # 1548 "/usr/include/c++/14/bits/stl_list.h" 3 29761: iterator 29761: 29761: erase(const_iterator __first, const_iterator __last) noexcept 29761: 29761: 29761: 29761: { 29761: while (__first != __last) 29761: __first = erase(__first); 29761: return __last._M_const_cast(); 29761: } 29761: # 1571 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: swap(list& __x) noexcept 29761: { 29761: __detail::_List_node_base::swap(this->_M_impl._M_node, 29761: __x._M_impl._M_node); 29761: 29761: size_t __xsize = __x._M_get_size(); 29761: __x._M_set_size(this->_M_get_size()); 29761: this->_M_set_size(__xsize); 29761: 29761: _Node_alloc_traits::_S_on_swap(this->_M_get_Node_allocator(), 29761: __x._M_get_Node_allocator()); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: clear() noexcept 29761: { 29761: _Base::_M_clear(); 29761: _Base::_M_init(); 29761: } 29761: # 1610 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: 29761: splice(const_iterator __position, list&& __x) noexcept 29761: 29761: 29761: 29761: { 29761: if (!__x.empty()) 29761: { 29761: _M_check_equal_allocators(__x); 29761: 29761: this->_M_transfer(__position._M_const_cast(), 29761: __x.begin(), __x.end()); 29761: 29761: this->_M_inc_size(__x._M_get_size()); 29761: __x._M_set_size(0); 29761: } 29761: } 29761: 29761: 29761: void 29761: splice(const_iterator __position, list& __x) noexcept 29761: { splice(__position, std::move(__x)); } 29761: # 1646 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: splice(const_iterator __position, list&& __x, const_iterator __i) noexcept 29761: # 1661 "/usr/include/c++/14/bits/stl_list.h" 3 29761: { 29761: iterator __j = __i._M_const_cast(); 29761: ++__j; 29761: if (__position == __i || __position == __j) 29761: return; 29761: 29761: if (this != std::__addressof(__x)) 29761: _M_check_equal_allocators(__x); 29761: 29761: this->_M_transfer(__position._M_const_cast(), 29761: __i._M_const_cast(), __j); 29761: 29761: this->_M_inc_size(1); 29761: __x._M_dec_size(1); 29761: } 29761: # 1688 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: splice(const_iterator __position, list& __x, const_iterator __i) noexcept 29761: { splice(__position, std::move(__x), __i); } 29761: # 1707 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: splice(const_iterator __position, list&& __x, const_iterator __first, 29761: const_iterator __last) noexcept 29761: # 1727 "/usr/include/c++/14/bits/stl_list.h" 3 29761: { 29761: if (__first != __last) 29761: { 29761: if (this != std::__addressof(__x)) 29761: _M_check_equal_allocators(__x); 29761: 29761: size_t __n = _S_distance(__first, __last); 29761: this->_M_inc_size(__n); 29761: __x._M_dec_size(__n); 29761: 29761: this->_M_transfer(__position._M_const_cast(), 29761: __first._M_const_cast(), 29761: __last._M_const_cast()); 29761: } 29761: } 29761: # 1757 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: splice(const_iterator __position, list& __x, const_iterator __first, 29761: const_iterator __last) noexcept 29761: { splice(__position, std::move(__x), __first, __last); } 29761: 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: 29761: typedef void __remove_return_type; 29761: 29761: 29761: public: 29761: # 1785 "/usr/include/c++/14/bits/stl_list.h" 3 29761: 29761: __remove_return_type 29761: remove(const _Tp& __value); 29761: # 1800 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: __remove_return_type 29761: remove_if(_Predicate); 29761: # 1814 "/usr/include/c++/14/bits/stl_list.h" 3 29761: 29761: __remove_return_type 29761: unique(); 29761: # 1830 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: __remove_return_type 29761: unique(_BinaryPredicate); 29761: # 1846 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: merge(list&& __x); 29761: 29761: void 29761: merge(list& __x) 29761: { merge(std::move(__x)); } 29761: # 1871 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: void 29761: merge(list&& __x, _StrictWeakOrdering __comp); 29761: 29761: template 29761: void 29761: merge(list& __x, _StrictWeakOrdering __comp) 29761: { merge(std::move(__x), __comp); } 29761: # 1890 "/usr/include/c++/14/bits/stl_list.h" 3 29761: void 29761: reverse() noexcept 29761: { this->_M_impl._M_node._M_reverse(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: sort(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: sort(_StrictWeakOrdering); 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: void 29761: _M_initialize_dispatch(_Integer __n, _Integer __x, __true_type) 29761: { _M_fill_initialize(static_cast(__n), __x); } 29761: 29761: 29761: template 29761: void 29761: _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, 29761: __false_type) 29761: { 29761: for (; __first != __last; ++__first) 29761: 29761: emplace_back(*__first); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: void 29761: _M_fill_initialize(size_type __n, const value_type& __x) 29761: { 29761: for (; __n; --__n) 29761: push_back(__x); 29761: } 29761: 29761: 29761: 29761: void 29761: _M_default_initialize(size_type __n) 29761: { 29761: for (; __n; --__n) 29761: emplace_back(); 29761: } 29761: 29761: 29761: void 29761: _M_default_append(size_type __n); 29761: # 1968 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: void 29761: _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) 29761: { _M_fill_assign(__n, __val); } 29761: 29761: 29761: template 29761: void 29761: _M_assign_dispatch(_InputIterator __first, _InputIterator __last, 29761: __false_type); 29761: 29761: 29761: 29761: void 29761: _M_fill_assign(size_type __n, const value_type& __val); 29761: 29761: 29761: 29761: void 29761: _M_transfer(iterator __position, iterator __first, iterator __last) 29761: { __position._M_node->_M_transfer(__first._M_node, __last._M_node); } 29761: # 2000 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: void 29761: _M_insert(iterator __position, _Args&&... __args) 29761: { 29761: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 29761: __tmp->_M_hook(__position._M_node); 29761: this->_M_inc_size(1); 29761: } 29761: 29761: 29761: 29761: void 29761: _M_erase(iterator __position) noexcept 29761: { 29761: this->_M_dec_size(1); 29761: __position._M_node->_M_unhook(); 29761: _Node* __n = static_cast<_Node*>(__position._M_node); 29761: 29761: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __n->_M_valptr()); 29761: 29761: 29761: 29761: 29761: _M_put_node(__n); 29761: } 29761: 29761: 29761: void 29761: _M_check_equal_allocators(const list& __x) noexcept 29761: { 29761: if (_M_get_Node_allocator() != __x._M_get_Node_allocator()) 29761: __builtin_abort(); 29761: } 29761: 29761: 29761: const_iterator 29761: _M_resize_pos(size_type& __new_size) const; 29761: 29761: 29761: void 29761: _M_move_assign(list&& __x, true_type) noexcept 29761: { 29761: this->clear(); 29761: this->_M_move_nodes(std::move(__x)); 29761: std::__alloc_on_move(this->_M_get_Node_allocator(), 29761: __x._M_get_Node_allocator()); 29761: } 29761: 29761: void 29761: _M_move_assign(list&& __x, false_type) 29761: { 29761: if (__x._M_get_Node_allocator() == this->_M_get_Node_allocator()) 29761: _M_move_assign(std::move(__x), true_type{}); 29761: else 29761: 29761: 29761: _M_assign_dispatch(std::make_move_iterator(__x.begin()), 29761: std::make_move_iterator(__x.end()), 29761: __false_type{}); 29761: } 29761: 29761: 29761: 29761: 29761: struct _Finalize_merge 29761: { 29761: explicit 29761: _Finalize_merge(list& __dest, list& __src, const iterator& __src_next) 29761: : _M_dest(__dest), _M_src(__src), _M_next(__src_next) 29761: { } 29761: 29761: ~_Finalize_merge() 29761: { 29761: 29761: 29761: 29761: const size_t __num_unmerged = std::distance(_M_next, _M_src.end()); 29761: const size_t __orig_size = _M_src._M_get_size(); 29761: _M_dest._M_inc_size(__orig_size - __num_unmerged); 29761: _M_src._M_set_size(__num_unmerged); 29761: } 29761: 29761: list& _M_dest; 29761: list& _M_src; 29761: const iterator& _M_next; 29761: 29761: 29761: _Finalize_merge(const _Finalize_merge&) = delete; 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: template::value_type, 29761: typename _Allocator = allocator<_ValT>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireAllocator<_Allocator>> 29761: list(_InputIterator, _InputIterator, _Allocator = _Allocator()) 29761: -> list<_ValT, _Allocator>; 29761: 29761: 29761: } 29761: # 2119 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { 29761: 29761: if (__x.size() != __y.size()) 29761: return false; 29761: 29761: 29761: typedef typename list<_Tp, _Alloc>::const_iterator const_iterator; 29761: const_iterator __end1 = __x.end(); 29761: const_iterator __end2 = __y.end(); 29761: 29761: const_iterator __i1 = __x.begin(); 29761: const_iterator __i2 = __y.begin(); 29761: while (__i1 != __end1 && __i2 != __end2 && *__i1 == *__i2) 29761: { 29761: ++__i1; 29761: ++__i2; 29761: } 29761: return __i1 == __end1 && __i2 == __end2; 29761: } 29761: # 2176 "/usr/include/c++/14/bits/stl_list.h" 3 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { return std::lexicographical_compare(__x.begin(), __x.end(), 29761: __y.begin(), __y.end()); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: [[__nodiscard__]] 29761: inline bool 29761: operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline ptrdiff_t 29761: __distance(std::_List_iterator<_Tp> __first, 29761: std::_List_iterator<_Tp> __last, 29761: input_iterator_tag __tag) 29761: { 29761: typedef std::_List_const_iterator<_Tp> _CIter; 29761: return std::__distance(_CIter(__first), _CIter(__last), __tag); 29761: } 29761: 29761: template 29761: inline ptrdiff_t 29761: __distance(std::_List_const_iterator<_Tp> __first, 29761: std::_List_const_iterator<_Tp> __last, 29761: input_iterator_tag) 29761: { 29761: typedef __detail::_List_node_header _Sentinel; 29761: std::_List_const_iterator<_Tp> __beyond = __last; 29761: ++__beyond; 29761: const bool __whole = __first == __beyond; 29761: if (__builtin_constant_p (__whole) && __whole) 29761: return static_cast(__last._M_node)->_M_size; 29761: 29761: ptrdiff_t __n = 0; 29761: while (__first != __last) 29761: { 29761: ++__first; 29761: ++__n; 29761: } 29761: return __n; 29761: } 29761: 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/list" 2 3 29761: # 1 "/usr/include/c++/14/bits/list.tcc" 1 3 29761: # 59 "/usr/include/c++/14/bits/list.tcc" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: void 29761: _List_base<_Tp, _Alloc>:: 29761: _M_clear() noexcept 29761: { 29761: typedef _List_node<_Tp> _Node; 29761: __detail::_List_node_base* __cur = _M_impl._M_node._M_next; 29761: while (__cur != &_M_impl._M_node) 29761: { 29761: _Node* __tmp = static_cast<_Node*>(__cur); 29761: __cur = __tmp->_M_next; 29761: _Tp* __val = __tmp->_M_valptr(); 29761: 29761: _Node_alloc_traits::destroy(_M_get_Node_allocator(), __val); 29761: 29761: 29761: 29761: _M_put_node(__tmp); 29761: } 29761: } 29761: 29761: 29761: template 29761: template 29761: typename list<_Tp, _Alloc>::iterator 29761: list<_Tp, _Alloc>:: 29761: emplace(const_iterator __position, _Args&&... __args) 29761: { 29761: _Node* __tmp = _M_create_node(std::forward<_Args>(__args)...); 29761: __tmp->_M_hook(__position._M_const_cast()._M_node); 29761: this->_M_inc_size(1); 29761: return iterator(__tmp); 29761: } 29761: 29761: 29761: template 29761: typename list<_Tp, _Alloc>::iterator 29761: list<_Tp, _Alloc>:: 29761: 29761: insert(const_iterator __position, const value_type& __x) 29761: 29761: 29761: 29761: { 29761: _Node* __tmp = _M_create_node(__x); 29761: __tmp->_M_hook(__position._M_const_cast()._M_node); 29761: this->_M_inc_size(1); 29761: return iterator(__tmp); 29761: } 29761: 29761: 29761: template 29761: typename list<_Tp, _Alloc>::iterator 29761: list<_Tp, _Alloc>:: 29761: insert(const_iterator __position, size_type __n, const value_type& __x) 29761: { 29761: if (__n) 29761: { 29761: list __tmp(__n, __x, get_allocator()); 29761: iterator __it = __tmp.begin(); 29761: splice(__position, __tmp); 29761: return __it; 29761: } 29761: return __position._M_const_cast(); 29761: } 29761: 29761: template 29761: template 29761: typename list<_Tp, _Alloc>::iterator 29761: list<_Tp, _Alloc>:: 29761: insert(const_iterator __position, _InputIterator __first, 29761: _InputIterator __last) 29761: { 29761: list __tmp(__first, __last, get_allocator()); 29761: if (!__tmp.empty()) 29761: { 29761: iterator __it = __tmp.begin(); 29761: splice(__position, __tmp); 29761: return __it; 29761: } 29761: return __position._M_const_cast(); 29761: } 29761: 29761: 29761: template 29761: typename list<_Tp, _Alloc>::iterator 29761: list<_Tp, _Alloc>:: 29761: 29761: erase(const_iterator __position) noexcept 29761: 29761: 29761: 29761: { 29761: iterator __ret = iterator(__position._M_node->_M_next); 29761: _M_erase(__position._M_const_cast()); 29761: return __ret; 29761: } 29761: # 173 "/usr/include/c++/14/bits/list.tcc" 3 29761: template 29761: typename list<_Tp, _Alloc>::const_iterator 29761: list<_Tp, _Alloc>:: 29761: _M_resize_pos(size_type& __new_size) const 29761: { 29761: const_iterator __i; 29761: 29761: const size_type __len = size(); 29761: if (__new_size < __len) 29761: { 29761: if (__new_size <= __len / 2) 29761: { 29761: __i = begin(); 29761: std::advance(__i, __new_size); 29761: } 29761: else 29761: { 29761: __i = end(); 29761: ptrdiff_t __num_erase = __len - __new_size; 29761: std::advance(__i, -__num_erase); 29761: } 29761: __new_size = 0; 29761: return __i; 29761: } 29761: else 29761: __i = end(); 29761: 29761: 29761: 29761: 29761: 29761: __new_size -= __len; 29761: return __i; 29761: } 29761: 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: _M_default_append(size_type __n) 29761: { 29761: size_type __i = 0; 29761: try 29761: { 29761: for (; __i < __n; ++__i) 29761: emplace_back(); 29761: } 29761: catch(...) 29761: { 29761: for (; __i; --__i) 29761: pop_back(); 29761: throw; 29761: } 29761: } 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: resize(size_type __new_size) 29761: { 29761: const_iterator __i = _M_resize_pos(__new_size); 29761: if (__new_size) 29761: _M_default_append(__new_size); 29761: else 29761: erase(__i, end()); 29761: } 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: resize(size_type __new_size, const value_type& __x) 29761: { 29761: const_iterator __i = _M_resize_pos(__new_size); 29761: if (__new_size) 29761: insert(end(), __new_size, __x); 29761: else 29761: erase(__i, end()); 29761: } 29761: # 265 "/usr/include/c++/14/bits/list.tcc" 3 29761: template 29761: list<_Tp, _Alloc>& 29761: list<_Tp, _Alloc>:: 29761: operator=(const list& __x) 29761: { 29761: if (this != std::__addressof(__x)) 29761: { 29761: 29761: if (_Node_alloc_traits::_S_propagate_on_copy_assign()) 29761: { 29761: auto& __this_alloc = this->_M_get_Node_allocator(); 29761: auto& __that_alloc = __x._M_get_Node_allocator(); 29761: if (!_Node_alloc_traits::_S_always_equal() 29761: && __this_alloc != __that_alloc) 29761: { 29761: 29761: clear(); 29761: } 29761: std::__alloc_on_copy(__this_alloc, __that_alloc); 29761: } 29761: 29761: _M_assign_dispatch(__x.begin(), __x.end(), __false_type()); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: _M_fill_assign(size_type __n, const value_type& __val) 29761: { 29761: iterator __i = begin(); 29761: for (; __i != end() && __n > 0; ++__i, --__n) 29761: *__i = __val; 29761: if (__n > 0) 29761: insert(end(), __n, __val); 29761: else 29761: erase(__i, end()); 29761: } 29761: 29761: template 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: _M_assign_dispatch(_InputIterator __first2, _InputIterator __last2, 29761: __false_type) 29761: { 29761: iterator __first1 = begin(); 29761: iterator __last1 = end(); 29761: for (; __first1 != __last1 && __first2 != __last2; 29761: ++__first1, (void)++__first2) 29761: *__first1 = *__first2; 29761: if (__first2 == __last2) 29761: erase(__first1, __last1); 29761: else 29761: insert(__last1, __first2, __last2); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: typename list<_Tp, _Alloc>::__remove_return_type 29761: list<_Tp, _Alloc>:: 29761: remove(const value_type& __value) 29761: { 29761: 29761: 29761: 29761: list __to_destroy(get_allocator()); 29761: iterator __first = begin(); 29761: iterator __last = end(); 29761: while (__first != __last) 29761: { 29761: iterator __next = __first; 29761: ++__next; 29761: if (*__first == __value) 29761: { 29761: 29761: 29761: 29761: __to_destroy.splice(__to_destroy.begin(), *this, __first); 29761: 29761: 29761: 29761: } 29761: 29761: __first = __next; 29761: } 29761: 29761: 29761: 29761: 29761: return ; 29761: 29761: } 29761: 29761: template 29761: typename list<_Tp, _Alloc>::__remove_return_type 29761: list<_Tp, _Alloc>:: 29761: unique() 29761: { 29761: iterator __first = begin(); 29761: iterator __last = end(); 29761: if (__first == __last) 29761: return ; 29761: 29761: 29761: 29761: list __to_destroy(get_allocator()); 29761: iterator __next = __first; 29761: while (++__next != __last) 29761: { 29761: if (*__first == *__next) 29761: { 29761: __to_destroy.splice(__to_destroy.begin(), *this, __next); 29761: 29761: 29761: 29761: } 29761: else 29761: __first = __next; 29761: __next = __first; 29761: } 29761: 29761: 29761: 29761: 29761: return ; 29761: 29761: } 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: 29761: merge(list&& __x) 29761: 29761: 29761: 29761: { 29761: 29761: 29761: if (this != std::__addressof(__x)) 29761: { 29761: _M_check_equal_allocators(__x); 29761: 29761: iterator __first1 = begin(); 29761: iterator __last1 = end(); 29761: iterator __first2 = __x.begin(); 29761: iterator __last2 = __x.end(); 29761: 29761: const _Finalize_merge __fin(*this, __x, __first2); 29761: 29761: while (__first1 != __last1 && __first2 != __last2) 29761: if (*__first2 < *__first1) 29761: { 29761: iterator __next = __first2; 29761: _M_transfer(__first1, __first2, ++__next); 29761: __first2 = __next; 29761: } 29761: else 29761: ++__first1; 29761: if (__first2 != __last2) 29761: { 29761: _M_transfer(__last1, __first2, __last2); 29761: __first2 = __last2; 29761: } 29761: } 29761: } 29761: 29761: template 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: 29761: merge(list&& __x, _StrictWeakOrdering __comp) 29761: 29761: 29761: 29761: { 29761: 29761: 29761: if (this != std::__addressof(__x)) 29761: { 29761: _M_check_equal_allocators(__x); 29761: 29761: iterator __first1 = begin(); 29761: iterator __last1 = end(); 29761: iterator __first2 = __x.begin(); 29761: iterator __last2 = __x.end(); 29761: 29761: const _Finalize_merge __fin(*this, __x, __first2); 29761: 29761: while (__first1 != __last1 && __first2 != __last2) 29761: if (__comp(*__first2, *__first1)) 29761: { 29761: iterator __next = __first2; 29761: _M_transfer(__first1, __first2, ++__next); 29761: __first2 = __next; 29761: } 29761: else 29761: ++__first1; 29761: if (__first2 != __last2) 29761: { 29761: _M_transfer(__last1, __first2, __last2); 29761: __first2 = __last2; 29761: } 29761: } 29761: } 29761: 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: sort() 29761: { 29761: 29761: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 29761: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 29761: { 29761: using __detail::_Scratch_list; 29761: # 497 "/usr/include/c++/14/bits/list.tcc" 3 29761: _Scratch_list __carry; 29761: _Scratch_list __tmp[64]; 29761: _Scratch_list* __fill = __tmp; 29761: _Scratch_list* __counter; 29761: 29761: _Scratch_list::_Ptr_cmp __ptr_comp; 29761: 29761: try 29761: { 29761: do 29761: { 29761: __carry._M_take_one(begin()._M_node); 29761: 29761: for(__counter = __tmp; 29761: __counter != __fill && !__counter->empty(); 29761: ++__counter) 29761: { 29761: 29761: __counter->merge(__carry, __ptr_comp); 29761: __carry.swap(*__counter); 29761: } 29761: __carry.swap(*__counter); 29761: if (__counter == __fill) 29761: ++__fill; 29761: } 29761: while ( !empty() ); 29761: 29761: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 29761: __counter->merge(__counter[-1], __ptr_comp); 29761: __fill[-1].swap(this->_M_impl._M_node); 29761: } 29761: catch(...) 29761: { 29761: 29761: __carry._M_put_all(end()._M_node); 29761: for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 29761: __tmp[__i]._M_put_all(end()._M_node); 29761: throw; 29761: } 29761: } 29761: } 29761: 29761: template 29761: template 29761: typename list<_Tp, _Alloc>::__remove_return_type 29761: list<_Tp, _Alloc>:: 29761: remove_if(_Predicate __pred) 29761: { 29761: 29761: 29761: 29761: list __to_destroy(get_allocator()); 29761: iterator __first = begin(); 29761: iterator __last = end(); 29761: while (__first != __last) 29761: { 29761: iterator __next = __first; 29761: ++__next; 29761: if (__pred(*__first)) 29761: { 29761: __to_destroy.splice(__to_destroy.begin(), *this, __first); 29761: 29761: 29761: 29761: } 29761: __first = __next; 29761: } 29761: 29761: 29761: 29761: 29761: return ; 29761: 29761: } 29761: 29761: template 29761: template 29761: typename list<_Tp, _Alloc>::__remove_return_type 29761: list<_Tp, _Alloc>:: 29761: unique(_BinaryPredicate __binary_pred) 29761: { 29761: iterator __first = begin(); 29761: iterator __last = end(); 29761: if (__first == __last) 29761: return ; 29761: 29761: 29761: 29761: list __to_destroy(get_allocator()); 29761: iterator __next = __first; 29761: while (++__next != __last) 29761: { 29761: if (__binary_pred(*__first, *__next)) 29761: { 29761: __to_destroy.splice(__to_destroy.begin(), *this, __next); 29761: 29761: 29761: 29761: } 29761: else 29761: __first = __next; 29761: __next = __first; 29761: } 29761: 29761: 29761: 29761: 29761: return ; 29761: 29761: } 29761: 29761: 29761: 29761: template 29761: template 29761: void 29761: list<_Tp, _Alloc>:: 29761: sort(_StrictWeakOrdering __comp) 29761: { 29761: 29761: if (this->_M_impl._M_node._M_next != &this->_M_impl._M_node 29761: && this->_M_impl._M_node._M_next->_M_next != &this->_M_impl._M_node) 29761: { 29761: using __detail::_Scratch_list; 29761: _Scratch_list __carry; 29761: _Scratch_list __tmp[64]; 29761: _Scratch_list* __fill = __tmp; 29761: _Scratch_list* __counter; 29761: 29761: _Scratch_list::_Ptr_cmp __ptr_comp 29761: = { __comp }; 29761: 29761: try 29761: { 29761: do 29761: { 29761: __carry._M_take_one(begin()._M_node); 29761: 29761: for(__counter = __tmp; 29761: __counter != __fill && !__counter->empty(); 29761: ++__counter) 29761: { 29761: 29761: __counter->merge(__carry, __ptr_comp); 29761: __carry.swap(*__counter); 29761: } 29761: __carry.swap(*__counter); 29761: if (__counter == __fill) 29761: ++__fill; 29761: } 29761: while ( !empty() ); 29761: 29761: for (__counter = __tmp + 1; __counter != __fill; ++__counter) 29761: __counter->merge(__counter[-1], __ptr_comp); 29761: __fill[-1].swap(this->_M_impl._M_node); 29761: } 29761: catch(...) 29761: { 29761: 29761: __carry._M_put_all(end()._M_node); 29761: for (size_t __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) 29761: __tmp[__i]._M_put_all(end()._M_node); 29761: throw; 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: } 29761: # 67 "/usr/include/c++/14/list" 2 3 29761: # 77 "/usr/include/c++/14/list" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 78 "/usr/include/c++/14/list" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template 29761: using list = std::list<_Tp, polymorphic_allocator<_Tp>>; 29761: } 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 2 29761: 29761: 29761: 29761: 29761: 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: namespace rocksdb { 29761: class CacheReservationManager; 29761: 29761: 29761: 29761: class StallInterface { 29761: public: 29761: virtual ~StallInterface() {} 29761: 29761: virtual void Block() = 0; 29761: 29761: virtual void Signal() = 0; 29761: }; 29761: 29761: class WriteBufferManager final { 29761: public: 29761: # 50 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: explicit WriteBufferManager(size_t _buffer_size, 29761: std::shared_ptr cache = {}, 29761: bool allow_stall = false); 29761: 29761: WriteBufferManager(const WriteBufferManager&) = delete; 29761: WriteBufferManager& operator=(const WriteBufferManager&) = delete; 29761: 29761: ~WriteBufferManager(); 29761: 29761: 29761: 29761: bool enabled() const { return buffer_size() > 0; } 29761: 29761: 29761: bool cost_to_cache() const { return cache_res_mgr_ != nullptr; } 29761: 29761: 29761: 29761: size_t memory_usage() const { 29761: return memory_used_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: size_t mutable_memtable_memory_usage() const { 29761: return memory_active_.load(std::memory_order_relaxed); 29761: } 29761: 29761: size_t dummy_entries_in_cache_usage() const; 29761: 29761: 29761: size_t buffer_size() const { 29761: return buffer_size_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: void SetBufferSize(size_t new_size) { 29761: 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29761: (static_cast ( 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: new_size > 0 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: "new_size > 0" 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 86 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: ; 29761: buffer_size_.store(new_size, std::memory_order_relaxed); 29761: mutable_limit_.store(new_size * 7 / 8, std::memory_order_relaxed); 29761: 29761: MaybeEndWriteStall(); 29761: } 29761: 29761: void SetAllowStall(bool new_allow_stall) { 29761: allow_stall_.store(new_allow_stall, std::memory_order_relaxed); 29761: MaybeEndWriteStall(); 29761: } 29761: 29761: 29761: 29761: 29761: bool ShouldFlush() const { 29761: if (enabled()) { 29761: if (mutable_memtable_memory_usage() > 29761: mutable_limit_.load(std::memory_order_relaxed)) { 29761: return true; 29761: } 29761: size_t local_size = buffer_size(); 29761: if (memory_usage() >= local_size && 29761: mutable_memtable_memory_usage() >= local_size / 2) { 29761: 29761: 29761: 29761: return true; 29761: } 29761: } 29761: return false; 29761: } 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_buffer_manager.h" 29761: bool ShouldStall() const { 29761: if (!allow_stall_.load(std::memory_order_relaxed) || !enabled()) { 29761: return false; 29761: } 29761: 29761: return IsStallActive() || IsStallThresholdExceeded(); 29761: } 29761: 29761: 29761: bool IsStallActive() const { 29761: return stall_active_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: bool IsStallThresholdExceeded() const { 29761: return memory_usage() >= buffer_size_; 29761: } 29761: 29761: void ReserveMem(size_t mem); 29761: 29761: 29761: 29761: void ScheduleFreeMem(size_t mem); 29761: 29761: void FreeMem(size_t mem); 29761: 29761: 29761: 29761: void BeginWriteStall(StallInterface* wbm_stall); 29761: 29761: 29761: 29761: void MaybeEndWriteStall(); 29761: 29761: void RemoveDBFromQueue(StallInterface* wbm_stall); 29761: 29761: private: 29761: std::atomic buffer_size_; 29761: std::atomic mutable_limit_; 29761: std::atomic memory_used_; 29761: 29761: std::atomic memory_active_; 29761: std::shared_ptr cache_res_mgr_; 29761: 29761: std::mutex cache_res_mgr_mu_; 29761: 29761: std::list queue_; 29761: 29761: std::mutex mu_; 29761: std::atomic allow_stall_; 29761: 29761: 29761: std::atomic stall_active_; 29761: 29761: void ReserveMemWithCache(size_t mem); 29761: void FreeMemWithCache(size_t mem); 29761: }; 29761: } 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 2 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Cache; 29761: class CompactionFilter; 29761: class CompactionFilterFactory; 29761: class Comparator; 29761: class ConcurrentTaskLimiter; 29761: class Env; 29761: enum InfoLogLevel : unsigned char; 29761: class SstFileManager; 29761: class FilterPolicy; 29761: class Logger; 29761: class MergeOperator; 29761: class Snapshot; 29761: class MemTableRepFactory; 29761: class RateLimiter; 29761: class Slice; 29761: class Statistics; 29761: class InternalKeyComparator; 29761: class WalFilter; 29761: class FileSystem; 29761: 29761: struct Options; 29761: struct DbPath; 29761: 29761: using FileTypeSet = SmallEnumSet; 29761: 29761: struct ColumnFamilyOptions : public AdvancedColumnFamilyOptions { 29761: 29761: 29761: 29761: 29761: 29761: 29761: ColumnFamilyOptions* OldDefaults(int rocksdb_major_version = 4, 29761: int rocksdb_minor_version = 6); 29761: 29761: 29761: 29761: 29761: 29761: ColumnFamilyOptions* OptimizeForSmallDb( 29761: std::shared_ptr* cache = nullptr); 29761: 29761: 29761: 29761: 29761: ColumnFamilyOptions* OptimizeForPointLookup(uint64_t block_cache_size_mb); 29761: # 102 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: ColumnFamilyOptions* OptimizeLevelStyleCompaction( 29761: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 29761: ColumnFamilyOptions* OptimizeUniversalStyleCompaction( 29761: uint64_t memtable_memory_budget = 512 * 1024 * 1024); 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: const Comparator* comparator = BytewiseComparator(); 29761: # 128 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr merge_operator = nullptr; 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: const CompactionFilter* compaction_filter = nullptr; 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr compaction_filter_factory = nullptr; 29761: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t write_buffer_size = 64 << 20; 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: CompressionType compression; 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: CompressionType bottommost_compression = kDisableCompressionOption; 29761: 29761: 29761: 29761: 29761: 29761: CompressionOptions bottommost_compression_opts; 29761: 29761: 29761: CompressionOptions compression_opts; 29761: # 246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: int level0_file_num_compaction_trigger = 4; 29761: # 280 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr prefix_extractor = nullptr; 29761: # 294 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t max_bytes_for_level_base = 256 * 1048576; 29761: 29761: 29761: uint64_t snap_refresh_nanos = 0; 29761: 29761: 29761: 29761: 29761: 29761: bool disable_auto_compactions = false; 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr table_factory; 29761: # 323 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::vector cf_paths; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr compaction_thread_limiter = nullptr; 29761: # 340 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr sst_partitioner_factory = nullptr; 29761: # 351 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint32_t memtable_max_range_deletions = 0; 29761: # 395 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint32_t uncache_aggressiveness = 0; 29761: 29761: 29761: ColumnFamilyOptions(); 29761: 29761: explicit ColumnFamilyOptions(const Options& options); 29761: 29761: void Dump(Logger* log) const; 29761: }; 29761: 29761: enum class WALRecoveryMode : char { 29761: # 425 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: kTolerateCorruptedTailRecords = 0x00, 29761: 29761: 29761: 29761: 29761: kAbsoluteConsistency = 0x01, 29761: 29761: 29761: 29761: 29761: kPointInTimeRecovery = 0x02, 29761: 29761: 29761: 29761: 29761: 29761: kSkipAnyCorruptedRecords = 0x03, 29761: }; 29761: 29761: struct DbPath { 29761: std::string path; 29761: uint64_t target_size; 29761: 29761: DbPath() : target_size(0) {} 29761: DbPath(const std::string& p, uint64_t t) : path(p), target_size(t) {} 29761: }; 29761: 29761: extern const char* kHostnameForDbHostId; 29761: 29761: enum class CompactionServiceJobStatus : char { 29761: kSuccess, 29761: kFailure, 29761: kUseLocal, 29761: }; 29761: 29761: struct CompactionServiceJobInfo { 29761: std::string db_name; 29761: std::string db_id; 29761: std::string db_session_id; 29761: uint64_t job_id; 29761: 29761: 29761: 29761: 29761: Env::Priority priority; 29761: 29761: 29761: CompactionReason compaction_reason; 29761: bool is_full_compaction; 29761: bool is_manual_compaction; 29761: bool bottommost_level; 29761: 29761: CompactionServiceJobInfo(std::string db_name_, std::string db_id_, 29761: std::string db_session_id_, uint64_t job_id_, 29761: Env::Priority priority_, 29761: CompactionReason compaction_reason_, 29761: bool is_full_compaction_, bool is_manual_compaction_, 29761: bool bottommost_level_) 29761: : db_name(std::move(db_name_)), 29761: db_id(std::move(db_id_)), 29761: db_session_id(std::move(db_session_id_)), 29761: job_id(job_id_), 29761: priority(priority_), 29761: compaction_reason(compaction_reason_), 29761: is_full_compaction(is_full_compaction_), 29761: is_manual_compaction(is_manual_compaction_), 29761: bottommost_level(bottommost_level_) {} 29761: }; 29761: 29761: struct CompactionServiceScheduleResponse { 29761: std::string scheduled_job_id; 29761: 29761: CompactionServiceJobStatus status; 29761: CompactionServiceScheduleResponse(std::string scheduled_job_id_, 29761: CompactionServiceJobStatus status_) 29761: : scheduled_job_id(scheduled_job_id_), status(status_) {} 29761: explicit CompactionServiceScheduleResponse(CompactionServiceJobStatus status_) 29761: : status(status_) {} 29761: }; 29761: 29761: 29761: 29761: 29761: class CompactionService : public Customizable { 29761: public: 29761: static const char* Type() { return "CompactionService"; } 29761: 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: virtual CompactionServiceScheduleResponse Schedule( 29761: const CompactionServiceJobInfo& , 29761: const std::string& ) { 29761: CompactionServiceScheduleResponse response( 29761: CompactionServiceJobStatus::kUseLocal); 29761: return response; 29761: } 29761: 29761: 29761: virtual CompactionServiceJobStatus Wait( 29761: const std::string& , std::string* ) { 29761: return CompactionServiceJobStatus::kUseLocal; 29761: } 29761: 29761: 29761: virtual void OnInstallation(const std::string& , 29761: CompactionServiceJobStatus ) {} 29761: 29761: ~CompactionService() override = default; 29761: }; 29761: 29761: struct DBOptions { 29761: 29761: 29761: 29761: 29761: 29761: DBOptions* OldDefaults(int rocksdb_major_version = 4, 29761: int rocksdb_minor_version = 6); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: DBOptions* OptimizeForSmallDb(std::shared_ptr* cache = nullptr); 29761: 29761: 29761: 29761: 29761: 29761: 29761: DBOptions* IncreaseParallelism(int total_threads = 16); 29761: 29761: 29761: 29761: bool create_if_missing = false; 29761: 29761: 29761: 29761: 29761: bool create_missing_column_families = false; 29761: 29761: 29761: 29761: bool error_if_exists = false; 29761: # 588 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool paranoid_checks = true; 29761: # 600 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool flush_verify_memtable_count = true; 29761: # 617 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool compaction_verify_record_count = true; 29761: # 633 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool track_and_verify_wals_in_manifest = false; 29761: # 653 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool verify_sst_unique_id_in_manifest = true; 29761: 29761: 29761: 29761: 29761: Env* env = Env::Default(); 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr rate_limiter = nullptr; 29761: # 692 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr sst_file_manager = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr info_log = nullptr; 29761: 29761: 29761: 29761: 29761: InfoLogLevel info_log_level = Logger::kDefaultLogLevel; 29761: # 718 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: int max_open_files = -1; 29761: 29761: 29761: 29761: 29761: int max_file_opening_threads = 16; 29761: # 746 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t max_total_wal_size = 0; 29761: 29761: 29761: std::shared_ptr statistics = nullptr; 29761: # 759 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool use_fsync = false; 29761: # 785 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::vector db_paths; 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::string db_log_dir = ""; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::string wal_dir = ""; 29761: # 810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t delete_obsolete_files_period_micros = 6ULL * 60 * 60 * 1000000; 29761: 29761: 29761: 29761: 29761: 29761: 29761: int max_background_jobs = 2; 29761: # 835 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: int max_background_compactions = -1; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t max_subcompactions = 1; 29761: # 865 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: int max_background_flushes = -1; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t max_log_file_size = 0; 29761: 29761: 29761: 29761: 29761: 29761: size_t log_file_time_to_roll = 0; 29761: 29761: 29761: 29761: size_t keep_log_file_num = 1000; 29761: # 892 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t recycle_log_file_num = 0; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t max_manifest_file_size = 1024 * 1024 * 1024; 29761: 29761: 29761: int table_cache_numshardbits = 6; 29761: # 920 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t WAL_ttl_seconds = 0; 29761: uint64_t WAL_size_limit_MB = 0; 29761: 29761: 29761: 29761: 29761: 29761: size_t manifest_preallocation_size = 4 * 1024 * 1024; 29761: # 940 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_mmap_reads = false; 29761: 29761: 29761: 29761: 29761: bool allow_mmap_writes = false; 29761: # 957 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool use_direct_reads = false; 29761: 29761: 29761: 29761: bool use_direct_io_for_flush_and_compaction = false; 29761: # 972 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_fallocate = true; 29761: 29761: 29761: bool is_fd_close_on_exec = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: unsigned int stats_dump_period_sec = 600; 29761: 29761: 29761: 29761: unsigned int stats_persist_period_sec = 600; 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool persist_stats_to_disk = false; 29761: 29761: 29761: 29761: 29761: size_t stats_history_buffer_size = 1024 * 1024; 29761: 29761: 29761: 29761: 29761: bool advise_random_on_open = true; 29761: # 1020 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t db_write_buffer_size = 0; 29761: # 1037 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr write_buffer_manager = nullptr; 29761: # 1046 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t compaction_readahead_size = 2 * 1024 * 1024; 29761: # 1063 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t random_access_max_buffer_size = 1024 * 1024; 29761: # 1074 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t writable_file_max_buffer_size = 1024 * 1024; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool use_adaptive_mutex = false; 29761: 29761: 29761: DBOptions(); 29761: 29761: explicit DBOptions(const Options& options); 29761: 29761: void Dump(Logger* log) const; 29761: # 1106 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t bytes_per_sync = 0; 29761: # 1116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t wal_bytes_per_sync = 0; 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool strict_bytes_per_sync = false; 29761: 29761: 29761: 29761: std::vector> listeners; 29761: 29761: 29761: 29761: 29761: 29761: bool enable_thread_tracking = false; 29761: # 1165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t delayed_write_rate = 0; 29761: # 1180 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool enable_pipelined_write = false; 29761: # 1206 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool unordered_write = false; 29761: # 1216 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_concurrent_memtable_write = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool enable_write_thread_adaptive_yield = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t max_write_batch_group_size_bytes = 1 << 20; 29761: # 1240 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t write_thread_max_yield_usec = 100; 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t write_thread_slow_yield_usec = 3; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool skip_stats_update_on_db_open = false; 29761: # 1268 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool skip_checking_sst_file_sizes_on_db_open = false; 29761: 29761: 29761: 29761: WALRecoveryMode wal_recovery_mode = WALRecoveryMode::kPointInTimeRecovery; 29761: 29761: 29761: 29761: bool allow_2pc = false; 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr row_cache = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: 29761: WalFilter* wal_filter = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool fail_if_options_file_error = true; 29761: 29761: 29761: 29761: 29761: bool dump_malloc_stats = false; 29761: # 1311 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool avoid_flush_during_recovery = false; 29761: # 1320 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool avoid_flush_during_shutdown = false; 29761: # 1335 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_ingest_behind = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool two_write_queues = false; 29761: 29761: 29761: 29761: 29761: bool manual_wal_flush = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: CompressionType wal_compression = kNoCompression; 29761: # 1363 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool background_close_inactive_wals = false; 29761: # 1377 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool atomic_flush = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool avoid_unnecessary_blocking_io = false; 29761: # 1397 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool write_dbid_to_manifest = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool write_identity_file = true; 29761: # 1415 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool prefix_seek_opt_in_only = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t log_readahead_size = 0; 29761: # 1431 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr file_checksum_gen_factory = nullptr; 29761: # 1480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool best_efforts_recovery = false; 29761: # 1490 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: int max_bgerror_resume_count = 0x7fffffff 29761: # 1490 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t bgerror_resume_retry_interval = 1000000; 29761: # 1506 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_data_in_errors = false; 29761: # 1519 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::string db_host_id = kHostnameForDbHostId; 29761: # 1529 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: FileTypeSet checksum_handoff_file_types; 29761: # 1538 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::shared_ptr compaction_service = nullptr; 29761: # 1550 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: CacheTier lowest_used_cache_tier = CacheTier::kNonVolatileBlockTier; 29761: # 1565 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool enforce_single_del_contracts = true; 29761: # 1582 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::string daily_offpeak_time_utc = ""; 29761: # 1592 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: uint64_t follower_refresh_catchup_period_ms = 10000; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t follower_catchup_retry_count = 10; 29761: 29761: 29761: 29761: uint64_t follower_catchup_retry_wait_ms = 100; 29761: 29761: 29761: 29761: 29761: 29761: Temperature metadata_write_temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: 29761: Temperature wal_write_temperature = Temperature::kUnknown; 29761: 29761: }; 29761: 29761: 29761: struct Options : public DBOptions, public ColumnFamilyOptions { 29761: 29761: Options() : DBOptions(), ColumnFamilyOptions() {} 29761: 29761: Options(const DBOptions& db_options, 29761: const ColumnFamilyOptions& column_family_options) 29761: : DBOptions(db_options), ColumnFamilyOptions(column_family_options) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: Options* OldDefaults(int rocksdb_major_version = 4, 29761: int rocksdb_minor_version = 6); 29761: 29761: void Dump(Logger* log) const; 29761: 29761: void DumpCFOptions(Logger* log) const; 29761: # 1650 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: Options* PrepareForBulkLoad(); 29761: 29761: 29761: 29761: Options* OptimizeForSmallDb(); 29761: 29761: 29761: 29761: 29761: 29761: Options* DisableExtraChecks(); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum ReadTier { 29761: kReadAllTier = 0x0, 29761: kBlockCacheTier = 0x1, 29761: kPersistedTier = 0x2, 29761: 29761: 29761: 29761: kMemtableTier = 0x3 29761: }; 29761: 29761: 29761: struct ReadOptions { 29761: 29761: 29761: 29761: 29761: 29761: 29761: const Snapshot* snapshot = nullptr; 29761: # 1699 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: const Slice* timestamp = nullptr; 29761: const Slice* iter_start_ts = nullptr; 29761: # 1711 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: std::chrono::microseconds deadline = std::chrono::microseconds::zero(); 29761: 29761: 29761: 29761: 29761: 29761: std::chrono::microseconds io_timeout = std::chrono::microseconds::zero(); 29761: 29761: 29761: 29761: 29761: ReadTier read_tier = kReadAllTier; 29761: # 1736 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 29761: 29761: 29761: 29761: 29761: uint64_t value_size_soft_limit = std::numeric_limits::max(); 29761: 29761: 29761: 29761: 29761: 29761: std::optional merge_operand_count_threshold; 29761: 29761: 29761: 29761: bool verify_checksums = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool fill_cache = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool ignore_range_deletions = false; 29761: 29761: 29761: 29761: 29761: bool async_io = false; 29761: # 1779 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool optimize_multiget_for_io = true; 29761: # 1792 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: size_t readahead_size = 0; 29761: 29761: 29761: 29761: 29761: uint64_t max_skippable_internal_keys = 0; 29761: # 1810 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: const Slice* iterate_lower_bound = nullptr; 29761: # 1830 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: const Slice* iterate_upper_bound = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: bool tailing = false; 29761: 29761: 29761: 29761: bool managed = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool total_order_seek = false; 29761: # 1863 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool auto_prefix_mode = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool prefix_same_as_start = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool pin_data = false; 29761: # 1888 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool adaptive_readahead = false; 29761: 29761: 29761: 29761: 29761: bool background_purge_on_iterator_cleanup = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::function table_filter; 29761: # 1928 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool auto_readahead_size = true; 29761: # 1941 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_unprepared_value = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29761: 29761: 29761: 29761: ReadOptions() {} 29761: ReadOptions(bool _verify_checksums, bool _fill_cache); 29761: explicit ReadOptions(Env::IOActivity _io_activity); 29761: }; 29761: 29761: 29761: struct WriteOptions { 29761: # 1975 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool sync = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool disableWAL = false; 29761: 29761: 29761: 29761: 29761: 29761: bool ignore_missing_column_families = false; 29761: 29761: 29761: 29761: 29761: bool no_slowdown = false; 29761: # 2003 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool low_pri = false; 29761: # 2012 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool memtable_insert_hint_per_batch = false; 29761: # 2027 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: Env::IOPriority rate_limiter_priority = Env::IO_TOTAL; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t protection_bytes_per_key = 0; 29761: 29761: 29761: 29761: 29761: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29761: 29761: WriteOptions() {} 29761: explicit WriteOptions(Env::IOActivity _io_activity); 29761: explicit WriteOptions( 29761: Env::IOPriority _rate_limiter_priority, 29761: Env::IOActivity _io_activity = Env::IOActivity::kUnknown); 29761: }; 29761: 29761: 29761: struct FlushOptions { 29761: 29761: 29761: bool wait; 29761: 29761: 29761: 29761: 29761: 29761: bool allow_write_stall; 29761: 29761: FlushOptions() : wait(true), allow_write_stall(false) {} 29761: }; 29761: 29761: 29761: Status CreateLoggerFromOptions(const std::string& dbname, 29761: const DBOptions& options, 29761: std::shared_ptr* logger); 29761: 29761: 29761: struct CompactionOptions { 29761: # 2082 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: CompressionType compression; 29761: 29761: 29761: 29761: uint64_t output_file_size_limit; 29761: 29761: 29761: uint32_t max_subcompactions; 29761: 29761: CompactionOptions() 29761: : compression(kDisableCompressionOption), 29761: output_file_size_limit(std::numeric_limits::max()), 29761: max_subcompactions(0) {} 29761: }; 29761: 29761: 29761: 29761: enum class BottommostLevelCompaction { 29761: 29761: kSkip, 29761: 29761: 29761: 29761: 29761: 29761: kIfHaveCompactionFilter, 29761: 29761: kForce, 29761: 29761: 29761: kForceOptimized, 29761: }; 29761: 29761: 29761: 29761: enum class BlobGarbageCollectionPolicy { 29761: 29761: kForce, 29761: 29761: kDisable, 29761: 29761: kUseDefault, 29761: }; 29761: 29761: 29761: struct CompactRangeOptions { 29761: 29761: 29761: 29761: 29761: bool exclusive_manual_compaction = false; 29761: 29761: 29761: 29761: bool change_level = false; 29761: 29761: 29761: int target_level = -1; 29761: 29761: 29761: uint32_t target_path_id = 0; 29761: 29761: 29761: BottommostLevelCompaction bottommost_level_compaction = 29761: BottommostLevelCompaction::kIfHaveCompactionFilter; 29761: 29761: 29761: bool allow_write_stall = false; 29761: 29761: uint32_t max_subcompactions = 0; 29761: 29761: 29761: const Slice* full_history_ts_low = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: std::atomic* canceled = nullptr; 29761: # 2173 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: BlobGarbageCollectionPolicy blob_garbage_collection_policy = 29761: BlobGarbageCollectionPolicy::kUseDefault; 29761: 29761: 29761: 29761: 29761: 29761: double blob_garbage_collection_age_cutoff = -1; 29761: }; 29761: 29761: 29761: struct IngestExternalFileOptions { 29761: 29761: 29761: 29761: 29761: 29761: bool move_files = false; 29761: 29761: 29761: bool link_files = false; 29761: 29761: 29761: bool failed_move_fall_back_to_copy = true; 29761: 29761: 29761: bool snapshot_consistency = true; 29761: 29761: 29761: 29761: 29761: bool allow_global_seqno = true; 29761: 29761: 29761: bool allow_blocking_flush = true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool ingest_behind = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool write_global_seqno = false; 29761: 29761: 29761: 29761: 29761: bool verify_checksums_before_ingest = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t verify_checksums_readahead_size = 0; 29761: # 2255 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool verify_file_checksum = true; 29761: # 2265 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool fail_if_not_bottommost_level = false; 29761: # 2278 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: bool allow_db_generated_files = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool fill_cache = true; 29761: }; 29761: 29761: enum TraceFilterType : uint64_t { 29761: 29761: kTraceFilterNone = 0x0, 29761: 29761: kTraceFilterGet = 0x1 << 0, 29761: 29761: kTraceFilterWrite = 0x1 << 1, 29761: 29761: kTraceFilterIteratorSeek = 0x1 << 2, 29761: 29761: kTraceFilterIteratorSeekForPrev = 0x1 << 3, 29761: 29761: kTraceFilterMultiGet = 0x1 << 4, 29761: }; 29761: 29761: 29761: struct TraceOptions { 29761: 29761: 29761: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 29761: 29761: 29761: uint64_t sampling_frequency = 1; 29761: 29761: uint64_t filter = kTraceFilterNone; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool preserve_write_order = false; 29761: }; 29761: 29761: 29761: struct ImportColumnFamilyOptions { 29761: 29761: bool move_files = false; 29761: }; 29761: 29761: 29761: struct SizeApproximationOptions { 29761: 29761: 29761: bool include_memtables = false; 29761: 29761: 29761: bool include_files = true; 29761: # 2346 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/options.h" 29761: double files_size_error_margin = -1.0; 29761: }; 29761: 29761: struct CompactionServiceOptionsOverride { 29761: Env* env = Env::Default(); 29761: std::shared_ptr file_checksum_gen_factory = nullptr; 29761: 29761: const Comparator* comparator = BytewiseComparator(); 29761: std::shared_ptr merge_operator = nullptr; 29761: const CompactionFilter* compaction_filter = nullptr; 29761: std::shared_ptr compaction_filter_factory = nullptr; 29761: std::shared_ptr prefix_extractor = nullptr; 29761: std::shared_ptr table_factory; 29761: std::shared_ptr sst_partitioner_factory = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::vector> listeners; 29761: 29761: 29761: 29761: 29761: std::shared_ptr statistics = nullptr; 29761: 29761: 29761: 29761: std::vector> 29761: table_properties_collector_factories; 29761: }; 29761: 29761: struct OpenAndCompactOptions { 29761: 29761: std::atomic* canceled = nullptr; 29761: }; 29761: 29761: struct LiveFilesStorageInfoOptions { 29761: 29761: bool include_checksum_info = false; 29761: 29761: 29761: 29761: uint64_t wal_size_for_flush = 0; 29761: }; 29761: 29761: struct WaitForCompactOptions { 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool abort_on_pause = false; 29761: 29761: 29761: bool flush = false; 29761: 29761: 29761: bool wait_for_purge = false; 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool close_db = false; 29761: 29761: 29761: 29761: 29761: 29761: std::chrono::microseconds timeout = std::chrono::microseconds::zero(); 29761: }; 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table_reader_caller.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: enum TableReaderCaller : char { 29761: kUserGet = 1, 29761: kUserMultiGet = 2, 29761: kUserIterator = 3, 29761: kUserApproximateSize = 4, 29761: kUserVerifyChecksum = 5, 29761: kSSTDumpTool = 6, 29761: kExternalSSTIngestion = 7, 29761: kRepair = 8, 29761: kPrefetch = 9, 29761: kCompaction = 10, 29761: 29761: 29761: kCompactionRefill = 11, 29761: 29761: 29761: kFlush = 12, 29761: 29761: kSSTFileReader = 13, 29761: 29761: 29761: kUncategorized = 14, 29761: 29761: kMaxBlockCacheLookupCaller 29761: }; 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_reader_writer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_reader_writer.h" 29761: class TraceWriter { 29761: public: 29761: virtual ~TraceWriter() = default; 29761: 29761: virtual Status Write(const Slice& data) = 0; 29761: virtual Status Close() = 0; 29761: virtual uint64_t GetFileSize() = 0; 29761: }; 29761: 29761: 29761: 29761: class TraceReader { 29761: public: 29761: virtual ~TraceReader() = default; 29761: 29761: virtual Status Read(std::string* data) = 0; 29761: virtual Status Close() = 0; 29761: 29761: 29761: 29761: virtual Status Reset() = 0; 29761: }; 29761: 29761: 29761: 29761: Status NewFileTraceWriter(Env* env, const EnvOptions& env_options, 29761: const std::string& trace_filename, 29761: std::unique_ptr* trace_writer); 29761: Status NewFileTraceReader(Env* env, const EnvOptions& env_options, 29761: const std::string& trace_filename, 29761: std::unique_ptr* trace_reader); 29761: 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_record.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/trace_record.h" 29761: namespace rocksdb { 29761: 29761: class ColumnFamilyHandle; 29761: class DB; 29761: 29761: 29761: enum TraceType : char { 29761: kTraceNone = 0, 29761: kTraceBegin = 1, 29761: kTraceEnd = 2, 29761: 29761: kTraceWrite = 3, 29761: kTraceGet = 4, 29761: kTraceIteratorSeek = 5, 29761: kTraceIteratorSeekForPrev = 6, 29761: 29761: kBlockTraceIndexBlock = 7, 29761: 29761: kBlockTraceFilterBlock = 8, 29761: kBlockTraceDataBlock = 9, 29761: kBlockTraceUncompressionDictBlock = 10, 29761: kBlockTraceRangeDeletionBlock = 11, 29761: 29761: kIOTracer = 12, 29761: 29761: kTraceMultiGet = 13, 29761: 29761: kTraceMax, 29761: }; 29761: 29761: class GetQueryTraceRecord; 29761: class IteratorSeekQueryTraceRecord; 29761: class MultiGetQueryTraceRecord; 29761: class TraceRecordResult; 29761: class WriteQueryTraceRecord; 29761: 29761: 29761: class TraceRecord { 29761: public: 29761: explicit TraceRecord(uint64_t timestamp); 29761: 29761: virtual ~TraceRecord() = default; 29761: 29761: 29761: virtual TraceType GetTraceType() const = 0; 29761: 29761: 29761: virtual uint64_t GetTimestamp() const; 29761: 29761: class Handler { 29761: public: 29761: virtual ~Handler() = default; 29761: 29761: virtual Status Handle(const WriteQueryTraceRecord& record, 29761: std::unique_ptr* result) = 0; 29761: 29761: virtual Status Handle(const GetQueryTraceRecord& record, 29761: std::unique_ptr* result) = 0; 29761: 29761: virtual Status Handle(const IteratorSeekQueryTraceRecord& record, 29761: std::unique_ptr* result) = 0; 29761: 29761: virtual Status Handle(const MultiGetQueryTraceRecord& record, 29761: std::unique_ptr* result) = 0; 29761: }; 29761: 29761: 29761: virtual Status Accept(Handler* handler, 29761: std::unique_ptr* result) = 0; 29761: 29761: 29761: static Handler* NewExecutionHandler( 29761: DB* db, const std::vector& handles); 29761: 29761: private: 29761: uint64_t timestamp_; 29761: }; 29761: 29761: 29761: class QueryTraceRecord : public TraceRecord { 29761: public: 29761: explicit QueryTraceRecord(uint64_t timestamp); 29761: }; 29761: 29761: 29761: class WriteQueryTraceRecord : public QueryTraceRecord { 29761: public: 29761: WriteQueryTraceRecord(PinnableSlice&& write_batch_rep, uint64_t timestamp); 29761: 29761: WriteQueryTraceRecord(const std::string& write_batch_rep, uint64_t timestamp); 29761: 29761: ~WriteQueryTraceRecord() override; 29761: 29761: TraceType GetTraceType() const override { return kTraceWrite; } 29761: 29761: 29761: virtual Slice GetWriteBatchRep() const; 29761: 29761: Status Accept(Handler* handler, 29761: std::unique_ptr* result) override; 29761: 29761: private: 29761: PinnableSlice rep_; 29761: }; 29761: 29761: 29761: class GetQueryTraceRecord : public QueryTraceRecord { 29761: public: 29761: GetQueryTraceRecord(uint32_t column_family_id, PinnableSlice&& key, 29761: uint64_t timestamp); 29761: 29761: GetQueryTraceRecord(uint32_t column_family_id, const std::string& key, 29761: uint64_t timestamp); 29761: 29761: ~GetQueryTraceRecord() override; 29761: 29761: TraceType GetTraceType() const override { return kTraceGet; } 29761: 29761: 29761: virtual uint32_t GetColumnFamilyID() const; 29761: 29761: 29761: virtual Slice GetKey() const; 29761: 29761: Status Accept(Handler* handler, 29761: std::unique_ptr* result) override; 29761: 29761: private: 29761: uint32_t cf_id_; 29761: PinnableSlice key_; 29761: }; 29761: 29761: 29761: class IteratorQueryTraceRecord : public QueryTraceRecord { 29761: public: 29761: explicit IteratorQueryTraceRecord(uint64_t timestamp); 29761: 29761: IteratorQueryTraceRecord(PinnableSlice&& lower_bound, 29761: PinnableSlice&& upper_bound, uint64_t timestamp); 29761: 29761: IteratorQueryTraceRecord(const std::string& lower_bound, 29761: const std::string& upper_bound, uint64_t timestamp); 29761: 29761: ~IteratorQueryTraceRecord() override; 29761: 29761: 29761: 29761: virtual Slice GetLowerBound() const; 29761: virtual Slice GetUpperBound() const; 29761: 29761: private: 29761: PinnableSlice lower_; 29761: PinnableSlice upper_; 29761: }; 29761: 29761: 29761: class IteratorSeekQueryTraceRecord : public IteratorQueryTraceRecord { 29761: public: 29761: 29761: enum SeekType { 29761: kSeek = kTraceIteratorSeek, 29761: kSeekForPrev = kTraceIteratorSeekForPrev 29761: }; 29761: 29761: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29761: PinnableSlice&& key, uint64_t timestamp); 29761: 29761: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29761: const std::string& key, uint64_t timestamp); 29761: 29761: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29761: PinnableSlice&& key, PinnableSlice&& lower_bound, 29761: PinnableSlice&& upper_bound, uint64_t timestamp); 29761: 29761: IteratorSeekQueryTraceRecord(SeekType seekType, uint32_t column_family_id, 29761: const std::string& key, 29761: const std::string& lower_bound, 29761: const std::string& upper_bound, 29761: uint64_t timestamp); 29761: 29761: ~IteratorSeekQueryTraceRecord() override; 29761: 29761: 29761: TraceType GetTraceType() const override; 29761: 29761: 29761: virtual SeekType GetSeekType() const; 29761: 29761: 29761: virtual uint32_t GetColumnFamilyID() const; 29761: 29761: 29761: virtual Slice GetKey() const; 29761: 29761: Status Accept(Handler* handler, 29761: std::unique_ptr* result) override; 29761: 29761: private: 29761: SeekType type_; 29761: uint32_t cf_id_; 29761: PinnableSlice key_; 29761: }; 29761: 29761: 29761: class MultiGetQueryTraceRecord : public QueryTraceRecord { 29761: public: 29761: MultiGetQueryTraceRecord(std::vector column_family_ids, 29761: std::vector&& keys, 29761: uint64_t timestamp); 29761: 29761: MultiGetQueryTraceRecord(std::vector column_family_ids, 29761: const std::vector& keys, 29761: uint64_t timestamp); 29761: 29761: ~MultiGetQueryTraceRecord() override; 29761: 29761: TraceType GetTraceType() const override { return kTraceMultiGet; } 29761: 29761: 29761: virtual std::vector GetColumnFamilyIDs() const; 29761: 29761: 29761: virtual std::vector GetKeys() const; 29761: 29761: Status Accept(Handler* handler, 29761: std::unique_ptr* result) override; 29761: 29761: private: 29761: std::vector cf_ids_; 29761: std::vector keys_; 29761: }; 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/block_cache_trace_writer.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: struct BlockCacheTraceRecord { 29761: 29761: uint64_t access_timestamp = 0; 29761: 29761: 29761: 29761: 29761: std::string block_key; 29761: 29761: 29761: TraceType block_type = TraceType::kTraceMax; 29761: 29761: 29761: uint64_t block_size = 0; 29761: 29761: 29761: 29761: 29761: uint64_t cf_id = 0; 29761: 29761: 29761: std::string cf_name; 29761: 29761: 29761: uint32_t level = 0; 29761: 29761: 29761: uint64_t sst_fd_number = 0; 29761: 29761: 29761: 29761: 29761: TableReaderCaller caller = TableReaderCaller::kMaxBlockCacheLookupCaller; 29761: 29761: 29761: bool is_cache_hit = false; 29761: 29761: 29761: bool no_insert = false; 29761: 29761: 29761: 29761: 29761: uint64_t get_id = kReservedGetId; 29761: 29761: 29761: bool get_from_user_specified_snapshot = false; 29761: 29761: 29761: std::string referenced_key; 29761: 29761: 29761: 29761: 29761: uint64_t referenced_data_size = 0; 29761: 29761: 29761: uint64_t num_keys_in_block = 0; 29761: 29761: 29761: bool referenced_key_exist_in_block = false; 29761: 29761: static const uint64_t kReservedGetId; 29761: 29761: BlockCacheTraceRecord() {} 29761: 29761: BlockCacheTraceRecord(uint64_t _access_timestamp, std::string _block_key, 29761: TraceType _block_type, uint64_t _block_size, 29761: uint64_t _cf_id, std::string _cf_name, uint32_t _level, 29761: uint64_t _sst_fd_number, TableReaderCaller _caller, 29761: bool _is_cache_hit, bool _no_insert, uint64_t _get_id, 29761: bool _get_from_user_specified_snapshot = false, 29761: std::string _referenced_key = "", 29761: uint64_t _referenced_data_size = 0, 29761: uint64_t _num_keys_in_block = 0, 29761: bool _referenced_key_exist_in_block = false) 29761: : access_timestamp(_access_timestamp), 29761: block_key(_block_key), 29761: block_type(_block_type), 29761: block_size(_block_size), 29761: cf_id(_cf_id), 29761: cf_name(_cf_name), 29761: level(_level), 29761: sst_fd_number(_sst_fd_number), 29761: caller(_caller), 29761: is_cache_hit(_is_cache_hit), 29761: no_insert(_no_insert), 29761: get_id(_get_id), 29761: get_from_user_specified_snapshot(_get_from_user_specified_snapshot), 29761: referenced_key(_referenced_key), 29761: referenced_data_size(_referenced_data_size), 29761: num_keys_in_block(_num_keys_in_block), 29761: referenced_key_exist_in_block(_referenced_key_exist_in_block) {} 29761: }; 29761: 29761: 29761: struct BlockCacheTraceOptions { 29761: 29761: 29761: uint64_t sampling_frequency = 1; 29761: }; 29761: 29761: 29761: struct BlockCacheTraceWriterOptions { 29761: uint64_t max_trace_file_size = uint64_t{64} * 1024 * 1024 * 1024; 29761: }; 29761: 29761: 29761: 29761: 29761: class BlockCacheTraceWriter { 29761: public: 29761: virtual ~BlockCacheTraceWriter() {} 29761: 29761: 29761: virtual Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29761: const Slice& block_key, const Slice& cf_name, 29761: const Slice& referenced_key) = 0; 29761: 29761: 29761: 29761: virtual Status WriteHeader() = 0; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: std::unique_ptr NewBlockCacheTraceWriter( 29761: SystemClock* clock, const BlockCacheTraceWriterOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 1 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Iterator : public IteratorBase { 29761: public: 29761: Iterator() {} 29761: 29761: Iterator(const Iterator&) = delete; 29761: void operator=(const Iterator&) = delete; 29761: 29761: virtual ~Iterator() override {} 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: virtual Slice value() const = 0; 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: virtual const WideColumns& columns() const { 29761: 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: (static_cast ( 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: false 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: "false" 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: ; 29761: return kNoWideColumns; 29761: } 29761: # 90 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: virtual Status GetProperty(std::string prop_name, std::string* prop); 29761: 29761: virtual Slice timestamp() const { 29761: 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: (static_cast ( 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: false 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: "false" 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 93 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/iterator.h" 29761: ; 29761: return Slice(); 29761: } 29761: }; 29761: 29761: 29761: Iterator* NewEmptyIterator(); 29761: 29761: 29761: Iterator* NewErrorIterator(const Status& status); 29761: 29761: } 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct FileStorageInfo { 29761: 29761: std::string relative_filename; 29761: 29761: 29761: std::string directory; 29761: 29761: 29761: 29761: uint64_t file_number = 0; 29761: 29761: FileType file_type = kTempFile; 29761: 29761: 29761: uint64_t size = 0; 29761: 29761: 29761: Temperature temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: 29761: 29761: std::string file_checksum; 29761: 29761: 29761: 29761: 29761: 29761: std::string file_checksum_func_name; 29761: }; 29761: 29761: 29761: 29761: struct LiveFileStorageInfo : public FileStorageInfo { 29761: 29761: 29761: 29761: 29761: 29761: std::string replacement_contents; 29761: 29761: 29761: 29761: 29761: bool trim_to_size = false; 29761: }; 29761: 29761: 29761: 29761: struct SstFileMetaData : public FileStorageInfo { 29761: SstFileMetaData() { file_type = kTableFile; } 29761: 29761: SstFileMetaData(const std::string& _file_name, uint64_t _file_number, 29761: const std::string& _directory, uint64_t _size, 29761: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno, 29761: const std::string& _smallestkey, 29761: const std::string& _largestkey, uint64_t _num_reads_sampled, 29761: bool _being_compacted, Temperature _temperature, 29761: uint64_t _oldest_blob_file_number, 29761: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 29761: uint64_t _epoch_number, std::string& _file_checksum, 29761: std::string& _file_checksum_func_name) 29761: : smallest_seqno(_smallest_seqno), 29761: largest_seqno(_largest_seqno), 29761: smallestkey(_smallestkey), 29761: largestkey(_largestkey), 29761: num_reads_sampled(_num_reads_sampled), 29761: being_compacted(_being_compacted), 29761: num_entries(0), 29761: num_deletions(0), 29761: oldest_blob_file_number(_oldest_blob_file_number), 29761: oldest_ancester_time(_oldest_ancester_time), 29761: file_creation_time(_file_creation_time), 29761: epoch_number(_epoch_number) { 29761: if (!_file_name.empty()) { 29761: if (_file_name[0] == '/') { 29761: relative_filename = _file_name.substr(1); 29761: name = _file_name; 29761: } else { 29761: relative_filename = _file_name; 29761: name = std::string("/") + _file_name; 29761: } 29761: 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: (static_cast ( 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: relative_filename.size() + 1 == name.size() 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: "relative_filename.size() + 1 == name.size()" 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: ; 29761: 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: (static_cast ( 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: relative_filename[0] != '/' 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: "relative_filename[0] != '/'" 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 108 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: ; 29761: 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: (static_cast ( 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: name[0] == '/' 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: "name[0] == '/'" 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 109 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: ; 29761: } 29761: directory = _directory; 29761: db_path = _directory; 29761: file_number = _file_number; 29761: file_type = kTableFile; 29761: size = _size; 29761: temperature = _temperature; 29761: file_checksum = _file_checksum; 29761: file_checksum_func_name = _file_checksum_func_name; 29761: } 29761: 29761: SequenceNumber smallest_seqno = 0; 29761: SequenceNumber largest_seqno = 0; 29761: std::string smallestkey; 29761: std::string largestkey; 29761: uint64_t num_reads_sampled = 0; 29761: bool being_compacted = 29761: false; 29761: 29761: uint64_t num_entries = 0; 29761: uint64_t num_deletions = 0; 29761: 29761: uint64_t oldest_blob_file_number = 0; 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/metadata.h" 29761: uint64_t oldest_ancester_time = 0; 29761: 29761: 29761: uint64_t file_creation_time = 0; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t epoch_number = 0; 29761: 29761: 29761: 29761: 29761: std::string smallest{}; 29761: std::string largest{}; 29761: 29761: 29761: 29761: 29761: std::string name; 29761: 29761: 29761: std::string db_path; 29761: }; 29761: 29761: 29761: struct LiveFileMetaData : SstFileMetaData { 29761: std::string column_family_name; 29761: int level; 29761: LiveFileMetaData() : column_family_name(), level(0) {} 29761: }; 29761: 29761: 29761: struct BlobMetaData { 29761: BlobMetaData() 29761: : blob_file_number(0), 29761: blob_file_size(0), 29761: total_blob_count(0), 29761: total_blob_bytes(0), 29761: garbage_blob_count(0), 29761: garbage_blob_bytes(0) {} 29761: 29761: BlobMetaData(uint64_t _file_number, const std::string& _file_name, 29761: const std::string& _file_path, uint64_t _file_size, 29761: uint64_t _total_blob_count, uint64_t _total_blob_bytes, 29761: uint64_t _garbage_blob_count, uint64_t _garbage_blob_bytes, 29761: const std::string& _file_checksum, 29761: const std::string& _file_checksum_func_name) 29761: : blob_file_number(_file_number), 29761: blob_file_name(_file_name), 29761: blob_file_path(_file_path), 29761: blob_file_size(_file_size), 29761: total_blob_count(_total_blob_count), 29761: total_blob_bytes(_total_blob_bytes), 29761: garbage_blob_count(_garbage_blob_count), 29761: garbage_blob_bytes(_garbage_blob_bytes), 29761: checksum_method(_file_checksum), 29761: checksum_value(_file_checksum_func_name) {} 29761: uint64_t blob_file_number; 29761: std::string blob_file_name; 29761: std::string blob_file_path; 29761: uint64_t blob_file_size; 29761: uint64_t total_blob_count; 29761: uint64_t total_blob_bytes; 29761: uint64_t garbage_blob_count; 29761: uint64_t garbage_blob_bytes; 29761: std::string checksum_method; 29761: std::string checksum_value; 29761: }; 29761: 29761: 29761: struct LevelMetaData { 29761: LevelMetaData(int _level, uint64_t _size, 29761: const std::vector&& _files) 29761: : level(_level), size(_size), files(_files) {} 29761: 29761: 29761: const int level; 29761: 29761: 29761: const uint64_t size; 29761: 29761: const std::vector files; 29761: }; 29761: 29761: 29761: struct ColumnFamilyMetaData { 29761: ColumnFamilyMetaData() : size(0), file_count(0), name("") {} 29761: ColumnFamilyMetaData(const std::string& _name, uint64_t _size, 29761: const std::vector&& _levels) 29761: : size(_size), name(_name), levels(_levels) {} 29761: 29761: 29761: 29761: uint64_t size; 29761: 29761: size_t file_count; 29761: 29761: std::string name; 29761: 29761: std::vector levels; 29761: 29761: 29761: uint64_t blob_file_size = 0; 29761: 29761: size_t blob_file_count = 0; 29761: 29761: std::vector blob_files; 29761: }; 29761: 29761: 29761: 29761: struct ExportImportFilesMetaData { 29761: std::string db_comparator_name; 29761: std::vector files; 29761: }; 29761: } 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/snapshot.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class DB; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class Snapshot { 29761: public: 29761: virtual SequenceNumber GetSequenceNumber() const = 0; 29761: 29761: 29761: 29761: virtual int64_t GetUnixTime() const = 0; 29761: 29761: virtual uint64_t GetTimestamp() const = 0; 29761: 29761: protected: 29761: virtual ~Snapshot(); 29761: }; 29761: 29761: 29761: 29761: 29761: class ManagedSnapshot { 29761: public: 29761: explicit ManagedSnapshot(DB* db); 29761: 29761: 29761: ManagedSnapshot(DB* db, const Snapshot* _snapshot); 29761: 29761: ~ManagedSnapshot(); 29761: 29761: const Snapshot* snapshot(); 29761: 29761: private: 29761: DB* db_; 29761: const Snapshot* snapshot_; 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29761: namespace rocksdb { 29761: 29761: class Comparator; 29761: 29761: 29761: 29761: struct ExternalSstFileInfo { 29761: ExternalSstFileInfo() 29761: : file_path(""), 29761: smallest_key(""), 29761: largest_key(""), 29761: smallest_range_del_key(""), 29761: largest_range_del_key(""), 29761: file_checksum(""), 29761: file_checksum_func_name(""), 29761: sequence_number(0), 29761: file_size(0), 29761: num_entries(0), 29761: num_range_del_entries(0), 29761: version(0) {} 29761: 29761: ExternalSstFileInfo(const std::string& _file_path, 29761: const std::string& _smallest_key, 29761: const std::string& _largest_key, 29761: SequenceNumber _sequence_number, uint64_t _file_size, 29761: uint64_t _num_entries, int32_t _version) 29761: : file_path(_file_path), 29761: smallest_key(_smallest_key), 29761: largest_key(_largest_key), 29761: smallest_range_del_key(""), 29761: largest_range_del_key(""), 29761: file_checksum(""), 29761: file_checksum_func_name(""), 29761: sequence_number(_sequence_number), 29761: file_size(_file_size), 29761: num_entries(_num_entries), 29761: num_range_del_entries(0), 29761: version(_version) {} 29761: 29761: std::string file_path; 29761: std::string smallest_key; 29761: std::string largest_key; 29761: std::string 29761: smallest_range_del_key; 29761: std::string largest_range_del_key; 29761: std::string file_checksum; 29761: std::string file_checksum_func_name; 29761: SequenceNumber sequence_number; 29761: uint64_t file_size; 29761: uint64_t num_entries; 29761: uint64_t num_range_del_entries; 29761: int32_t version; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class SstFileWriter { 29761: public: 29761: # 95 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29761: SstFileWriter(const EnvOptions& env_options, const Options& options, 29761: ColumnFamilyHandle* column_family = nullptr, 29761: bool invalidate_page_cache = true, 29761: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 29761: bool skip_filters = false) 29761: : SstFileWriter(env_options, options, options.comparator, column_family, 29761: invalidate_page_cache, io_priority, skip_filters) {} 29761: 29761: 29761: SstFileWriter(const EnvOptions& env_options, const Options& options, 29761: const Comparator* user_comparator, 29761: ColumnFamilyHandle* column_family = nullptr, 29761: bool invalidate_page_cache = true, 29761: Env::IOPriority io_priority = Env::IOPriority::IO_TOTAL, 29761: bool skip_filters = false); 29761: 29761: ~SstFileWriter(); 29761: 29761: 29761: Status Open(const std::string& file_path, 29761: Temperature temp = Temperature::kUnknown); 29761: 29761: 29761: 29761: 29761: 29761: __attribute__((__deprecated__)) Status Add(const Slice& user_key, const Slice& value); 29761: 29761: 29761: 29761: 29761: 29761: Status Put(const Slice& user_key, const Slice& value); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status Put(const Slice& user_key, const Slice& timestamp, const Slice& value); 29761: 29761: 29761: 29761: Status PutEntity(const Slice& user_key, const WideColumns& columns); 29761: 29761: 29761: 29761: 29761: 29761: Status Merge(const Slice& user_key, const Slice& value); 29761: 29761: 29761: 29761: 29761: 29761: Status Delete(const Slice& user_key); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status Delete(const Slice& user_key, const Slice& timestamp); 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29761: Status DeleteRange(const Slice& begin_key, const Slice& end_key); 29761: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/sst_file_writer.h" 29761: Status DeleteRange(const Slice& begin_key, const Slice& end_key, 29761: const Slice& timestamp); 29761: 29761: 29761: 29761: 29761: 29761: Status Finish(ExternalSstFileInfo* file_info = nullptr); 29761: 29761: 29761: uint64_t FileSize(); 29761: 29761: 29761: static bool CreatedBySstFileWriter(const TableProperties&); 29761: 29761: private: 29761: void InvalidatePageCache(bool closing); 29761: struct Rep; 29761: std::unique_ptr rep_; 29761: }; 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/transaction_log.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 1 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class Status; 29761: class ColumnFamilyHandle; 29761: class WriteBatch; 29761: struct SliceParts; 29761: 29761: 29761: 29761: 29761: class WriteBatchBase { 29761: public: 29761: virtual ~WriteBatchBase() {} 29761: 29761: 29761: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) = 0; 29761: virtual Status Put(const Slice& key, const Slice& value) = 0; 29761: virtual Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts, const Slice& value) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 29761: const SliceParts& value); 29761: virtual Status Put(const SliceParts& key, const SliceParts& value); 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29761: virtual Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value, uint64_t write_unix_time) = 0; 29761: 29761: 29761: 29761: virtual Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 29761: const WideColumns& columns) = 0; 29761: 29761: 29761: 29761: virtual Status PutEntity(const Slice& key, 29761: const AttributeGroups& attribute_groups) = 0; 29761: 29761: 29761: 29761: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) = 0; 29761: virtual Status Merge(const Slice& key, const Slice& value) = 0; 29761: virtual Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts, const Slice& value) = 0; 29761: 29761: 29761: virtual Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 29761: const SliceParts& value); 29761: virtual Status Merge(const SliceParts& key, const SliceParts& value); 29761: 29761: 29761: virtual Status Delete(ColumnFamilyHandle* column_family, 29761: const Slice& key) = 0; 29761: virtual Status Delete(const Slice& key) = 0; 29761: virtual Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts) = 0; 29761: 29761: 29761: virtual Status Delete(ColumnFamilyHandle* column_family, 29761: const SliceParts& key); 29761: virtual Status Delete(const SliceParts& key); 29761: 29761: 29761: 29761: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29761: const Slice& key) = 0; 29761: virtual Status SingleDelete(const Slice& key) = 0; 29761: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29761: const Slice& key, const Slice& ts) = 0; 29761: 29761: 29761: virtual Status SingleDelete(ColumnFamilyHandle* column_family, 29761: const SliceParts& key); 29761: virtual Status SingleDelete(const SliceParts& key); 29761: 29761: 29761: 29761: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29761: const Slice& begin_key, const Slice& end_key) = 0; 29761: virtual Status DeleteRange(const Slice& begin_key, const Slice& end_key) = 0; 29761: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29761: const Slice& begin_key, const Slice& end_key, 29761: const Slice& ts) = 0; 29761: 29761: 29761: virtual Status DeleteRange(ColumnFamilyHandle* column_family, 29761: const SliceParts& begin_key, 29761: const SliceParts& end_key); 29761: virtual Status DeleteRange(const SliceParts& begin_key, 29761: const SliceParts& end_key); 29761: # 135 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch_base.h" 29761: virtual Status PutLogData(const Slice& blob) = 0; 29761: 29761: 29761: virtual void Clear() = 0; 29761: 29761: 29761: 29761: 29761: virtual WriteBatch* GetWriteBatch() = 0; 29761: 29761: 29761: 29761: virtual void SetSavePoint() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status RollbackToSavePoint() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status PopSavePoint() = 0; 29761: 29761: 29761: virtual void SetMaxBytes(size_t max_bytes) = 0; 29761: }; 29761: 29761: } 29761: # 37 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class ColumnFamilyHandle; 29761: struct SavePoints; 29761: struct SliceParts; 29761: 29761: struct SavePoint { 29761: size_t size; 29761: uint32_t count; 29761: uint32_t content_flags; 29761: 29761: SavePoint() : size(0), count(0), content_flags(0) {} 29761: 29761: SavePoint(size_t _size, uint32_t _count, uint32_t _flags) 29761: : size(_size), count(_count), content_flags(_flags) {} 29761: 29761: void clear() { 29761: size = 0; 29761: count = 0; 29761: content_flags = 0; 29761: } 29761: 29761: bool is_cleared() const { return (size | count | content_flags) == 0; } 29761: }; 29761: 29761: class WriteBatch : public WriteBatchBase { 29761: public: 29761: explicit WriteBatch(size_t reserved_bytes = 0, size_t max_bytes = 0) 29761: : WriteBatch(reserved_bytes, max_bytes, 0, 0) {} 29761: 29761: 29761: 29761: 29761: explicit WriteBatch(size_t reserved_bytes, size_t max_bytes, 29761: size_t protection_bytes_per_key, size_t default_cf_ts_sz); 29761: ~WriteBatch() override; 29761: 29761: using WriteBatchBase::Put; 29761: 29761: 29761: 29761: 29761: 29761: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) override; 29761: Status Put(const Slice& key, const Slice& value) override { 29761: return Put(nullptr, key, value); 29761: } 29761: Status Put(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts, const Slice& value) override; 29761: # 97 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: Status Put(ColumnFamilyHandle* column_family, const SliceParts& key, 29761: const SliceParts& value) override; 29761: Status Put(const SliceParts& key, const SliceParts& value) override { 29761: return Put(nullptr, key, value); 29761: } 29761: 29761: using WriteBatchBase::TimedPut; 29761: 29761: 29761: 29761: 29761: Status TimedPut(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value, uint64_t write_unix_time) override; 29761: 29761: 29761: 29761: using WriteBatchBase::PutEntity; 29761: Status PutEntity(ColumnFamilyHandle* column_family, const Slice& key, 29761: const WideColumns& columns) override; 29761: 29761: 29761: 29761: Status PutEntity(const Slice& key, 29761: const AttributeGroups& attribute_groups) override; 29761: 29761: using WriteBatchBase::Delete; 29761: 29761: 29761: 29761: 29761: 29761: Status Delete(ColumnFamilyHandle* column_family, const Slice& key) override; 29761: Status Delete(const Slice& key) override { return Delete(nullptr, key); } 29761: Status Delete(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts) override; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status Delete(ColumnFamilyHandle* column_family, 29761: const SliceParts& key) override; 29761: Status Delete(const SliceParts& key) override { return Delete(nullptr, key); } 29761: 29761: using WriteBatchBase::SingleDelete; 29761: 29761: Status SingleDelete(ColumnFamilyHandle* column_family, 29761: const Slice& key) override; 29761: Status SingleDelete(const Slice& key) override { 29761: return SingleDelete(nullptr, key); 29761: } 29761: Status SingleDelete(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts) override; 29761: 29761: 29761: Status SingleDelete(ColumnFamilyHandle* column_family, 29761: const SliceParts& key) override; 29761: Status SingleDelete(const SliceParts& key) override { 29761: return SingleDelete(nullptr, key); 29761: } 29761: 29761: using WriteBatchBase::DeleteRange; 29761: 29761: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 29761: const Slice& end_key) override; 29761: Status DeleteRange(const Slice& begin_key, const Slice& end_key) override { 29761: return DeleteRange(nullptr, begin_key, end_key); 29761: } 29761: 29761: Status DeleteRange(ColumnFamilyHandle* column_family, const Slice& begin_key, 29761: const Slice& end_key, const Slice& ts) override; 29761: 29761: 29761: Status DeleteRange(ColumnFamilyHandle* column_family, 29761: const SliceParts& begin_key, 29761: const SliceParts& end_key) override; 29761: Status DeleteRange(const SliceParts& begin_key, 29761: const SliceParts& end_key) override { 29761: return DeleteRange(nullptr, begin_key, end_key); 29761: } 29761: 29761: using WriteBatchBase::Merge; 29761: 29761: 29761: Status Merge(ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) override; 29761: Status Merge(const Slice& key, const Slice& value) override { 29761: return Merge(nullptr, key, value); 29761: } 29761: Status Merge(ColumnFamilyHandle* , const Slice& , 29761: const Slice& , const Slice& ) override; 29761: 29761: 29761: Status Merge(ColumnFamilyHandle* column_family, const SliceParts& key, 29761: const SliceParts& value) override; 29761: Status Merge(const SliceParts& key, const SliceParts& value) override { 29761: return Merge(nullptr, key, value); 29761: } 29761: 29761: using WriteBatchBase::PutLogData; 29761: # 208 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: Status PutLogData(const Slice& blob) override; 29761: 29761: using WriteBatchBase::Clear; 29761: 29761: 29761: 29761: void Clear() override; 29761: 29761: 29761: 29761: void SetSavePoint() override; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status RollbackToSavePoint() override; 29761: 29761: 29761: 29761: 29761: 29761: Status PopSavePoint() override; 29761: 29761: 29761: 29761: class Handler { 29761: public: 29761: virtual ~Handler(); 29761: # 246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: virtual Status PutCF(uint32_t column_family_id, const Slice& key, 29761: const Slice& value) { 29761: if (column_family_id == 0) { 29761: 29761: 29761: 29761: Put(key, value); 29761: return Status::OK(); 29761: } 29761: return Status::InvalidArgument( 29761: "non-default column family and PutCF not implemented"); 29761: } 29761: 29761: virtual void Put(const Slice& , const Slice& ) {} 29761: 29761: 29761: virtual Status TimedPutCF(uint32_t , 29761: const Slice& , const Slice& , 29761: uint64_t ) { 29761: return Status::InvalidArgument("TimedPutCF not implemented"); 29761: } 29761: 29761: 29761: virtual Status PutEntityCF(uint32_t , 29761: const Slice& , 29761: const Slice& ) { 29761: return Status::NotSupported("PutEntityCF not implemented"); 29761: } 29761: 29761: 29761: virtual Status DeleteCF(uint32_t column_family_id, const Slice& key) { 29761: if (column_family_id == 0) { 29761: Delete(key); 29761: return Status::OK(); 29761: } 29761: return Status::InvalidArgument( 29761: "non-default column family and DeleteCF not implemented"); 29761: } 29761: 29761: virtual void Delete(const Slice& ) {} 29761: 29761: 29761: virtual Status SingleDeleteCF(uint32_t column_family_id, const Slice& key) { 29761: if (column_family_id == 0) { 29761: SingleDelete(key); 29761: return Status::OK(); 29761: } 29761: return Status::InvalidArgument( 29761: "non-default column family and SingleDeleteCF not implemented"); 29761: } 29761: 29761: virtual void SingleDelete(const Slice& ) {} 29761: 29761: 29761: 29761: virtual Status DeleteRangeCF(uint32_t , 29761: const Slice& , 29761: const Slice& ) { 29761: return Status::InvalidArgument("DeleteRangeCF not implemented"); 29761: } 29761: 29761: 29761: virtual Status MergeCF(uint32_t column_family_id, const Slice& key, 29761: const Slice& value) { 29761: if (column_family_id == 0) { 29761: Merge(key, value); 29761: return Status::OK(); 29761: } 29761: return Status::InvalidArgument( 29761: "non-default column family and MergeCF not implemented"); 29761: } 29761: 29761: virtual void Merge(const Slice& , const Slice& ) {} 29761: 29761: 29761: virtual Status PutBlobIndexCF(uint32_t , 29761: const Slice& , 29761: const Slice& ) { 29761: return Status::InvalidArgument("PutBlobIndexCF not implemented"); 29761: } 29761: 29761: 29761: virtual void LogData(const Slice& blob); 29761: 29761: virtual Status MarkBeginPrepare(bool = false) { 29761: return Status::InvalidArgument("MarkBeginPrepare() handler not defined."); 29761: } 29761: 29761: virtual Status MarkEndPrepare(const Slice& ) { 29761: return Status::InvalidArgument("MarkEndPrepare() handler not defined."); 29761: } 29761: 29761: virtual Status MarkNoop(bool ) { 29761: return Status::InvalidArgument("MarkNoop() handler not defined."); 29761: } 29761: 29761: virtual Status MarkRollback(const Slice& ) { 29761: return Status::InvalidArgument( 29761: "MarkRollbackPrepare() handler not defined."); 29761: } 29761: 29761: virtual Status MarkCommit(const Slice& ) { 29761: return Status::InvalidArgument("MarkCommit() handler not defined."); 29761: } 29761: 29761: virtual Status MarkCommitWithTimestamp(const Slice& , 29761: const Slice& ) { 29761: return Status::InvalidArgument( 29761: "MarkCommitWithTimestamp() handler not defined."); 29761: } 29761: 29761: 29761: 29761: 29761: virtual bool Continue(); 29761: 29761: protected: 29761: friend class WriteBatchInternal; 29761: enum class OptionState { 29761: kUnknown, 29761: kDisabled, 29761: kEnabled, 29761: }; 29761: virtual OptionState WriteAfterCommit() const { 29761: return OptionState::kUnknown; 29761: } 29761: virtual OptionState WriteBeforePrepare() const { 29761: return OptionState::kUnknown; 29761: } 29761: }; 29761: Status Iterate(Handler* handler) const; 29761: 29761: 29761: const std::string& Data() const { return rep_; } 29761: 29761: 29761: std::string Release(); 29761: 29761: 29761: size_t GetDataSize() const { return rep_.size(); } 29761: 29761: 29761: uint32_t Count() const; 29761: 29761: 29761: bool HasPut() const; 29761: 29761: 29761: bool HasTimedPut() const; 29761: 29761: 29761: bool HasPutEntity() const; 29761: 29761: 29761: bool HasDelete() const; 29761: 29761: 29761: bool HasSingleDelete() const; 29761: 29761: 29761: bool HasDeleteRange() const; 29761: 29761: 29761: bool HasMerge() const; 29761: 29761: 29761: bool HasBeginPrepare() const; 29761: 29761: 29761: bool HasEndPrepare() const; 29761: 29761: 29761: bool HasCommit() const; 29761: 29761: 29761: bool HasRollback() const; 29761: # 439 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: Status UpdateTimestamps(const Slice& ts, 29761: std::function ts_sz_func); 29761: 29761: 29761: 29761: 29761: 29761: void SetTrackTimestampSize(bool track_timestamp_size) { 29761: track_timestamp_size_ = track_timestamp_size; 29761: } 29761: 29761: inline void MaybeTrackTimestampSize(uint32_t column_family_id, size_t ts_sz) { 29761: if (!track_timestamp_size_) { 29761: return; 29761: } 29761: auto iter = cf_id_to_ts_sz_.find(column_family_id); 29761: if (iter == cf_id_to_ts_sz_.end()) { 29761: cf_id_to_ts_sz_.emplace(column_family_id, ts_sz); 29761: } 29761: } 29761: 29761: 29761: 29761: const std::unordered_map& GetColumnFamilyToTimestampSize() { 29761: return cf_id_to_ts_sz_; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: Status VerifyChecksum() const; 29761: 29761: using WriteBatchBase::GetWriteBatch; 29761: WriteBatch* GetWriteBatch() override { return this; } 29761: 29761: 29761: explicit WriteBatch(const std::string& rep); 29761: explicit WriteBatch(std::string&& rep); 29761: 29761: WriteBatch(const WriteBatch& src); 29761: WriteBatch(WriteBatch&& src) noexcept; 29761: WriteBatch& operator=(const WriteBatch& src); 29761: WriteBatch& operator=(WriteBatch&& src); 29761: 29761: 29761: 29761: void MarkWalTerminationPoint(); 29761: const SavePoint& GetWalTerminationPoint() const { return wal_term_point_; } 29761: 29761: void SetMaxBytes(size_t max_bytes) override { max_bytes_ = max_bytes; } 29761: 29761: struct ProtectionInfo; 29761: size_t GetProtectionBytesPerKey() const; 29761: 29761: private: 29761: friend class WriteBatchInternal; 29761: friend class LocalSavePoint; 29761: 29761: 29761: 29761: friend class WriteBatchWithIndex; 29761: std::unique_ptr save_points_; 29761: 29761: 29761: 29761: 29761: SavePoint wal_term_point_; 29761: 29761: 29761: 29761: 29761: 29761: bool is_latest_persistent_state_ = false; 29761: # 521 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/write_batch.h" 29761: bool needs_in_place_update_ts_ = false; 29761: 29761: 29761: 29761: bool has_key_with_ts_ = false; 29761: 29761: 29761: mutable std::atomic content_flags_; 29761: 29761: 29761: uint32_t ComputeContentFlags() const; 29761: 29761: 29761: size_t max_bytes_; 29761: 29761: std::unique_ptr prot_info_; 29761: 29761: size_t default_cf_ts_sz_ = 0; 29761: 29761: bool track_timestamp_size_ = false; 29761: 29761: std::unordered_map cf_id_to_ts_sz_; 29761: 29761: protected: 29761: std::string rep_; 29761: }; 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/transaction_log.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class WalFile; 29761: using VectorWalPtr = std::vector>; 29761: 29761: using VectorLogPtr = VectorWalPtr; 29761: 29761: enum WalFileType { 29761: 29761: 29761: 29761: 29761: 29761: 29761: kArchivedLogFile = 0, 29761: 29761: 29761: kAliveLogFile = 1 29761: }; 29761: 29761: class WalFile { 29761: public: 29761: WalFile() {} 29761: virtual ~WalFile() {} 29761: 29761: 29761: 29761: 29761: virtual std::string PathName() const = 0; 29761: 29761: 29761: 29761: virtual uint64_t LogNumber() const = 0; 29761: 29761: 29761: virtual WalFileType Type() const = 0; 29761: 29761: 29761: virtual SequenceNumber StartSequence() const = 0; 29761: 29761: 29761: 29761: virtual uint64_t SizeFileBytes() const = 0; 29761: }; 29761: 29761: 29761: using LogFile = WalFile; 29761: 29761: struct BatchResult { 29761: SequenceNumber sequence = 0; 29761: std::unique_ptr writeBatchPtr; 29761: 29761: 29761: 29761: 29761: BatchResult() {} 29761: 29761: ~BatchResult() {} 29761: 29761: BatchResult(const BatchResult&) = delete; 29761: 29761: BatchResult& operator=(const BatchResult&) = delete; 29761: 29761: BatchResult(BatchResult&& bResult) 29761: : sequence(std::move(bResult.sequence)), 29761: writeBatchPtr(std::move(bResult.writeBatchPtr)) {} 29761: 29761: BatchResult& operator=(BatchResult&& bResult) { 29761: sequence = std::move(bResult.sequence); 29761: writeBatchPtr = std::move(bResult.writeBatchPtr); 29761: return *this; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: class TransactionLogIterator { 29761: public: 29761: TransactionLogIterator() {} 29761: virtual ~TransactionLogIterator() {} 29761: 29761: 29761: 29761: 29761: virtual bool Valid() = 0; 29761: 29761: 29761: 29761: virtual void Next() = 0; 29761: 29761: 29761: 29761: virtual Status status() = 0; 29761: 29761: 29761: 29761: 29761: virtual BatchResult GetBatch() = 0; 29761: 29761: 29761: struct ReadOptions { 29761: 29761: 29761: 29761: bool verify_checksums_; 29761: 29761: ReadOptions() : verify_checksums_(true) {} 29761: 29761: explicit ReadOptions(bool verify_checksums) 29761: : verify_checksums_(verify_checksums) {} 29761: }; 29761: }; 29761: } 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/user_write_callback.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: class UserWriteCallback { 29761: public: 29761: virtual ~UserWriteCallback() {} 29761: 29761: 29761: virtual void OnWriteEnqueued() = 0; 29761: 29761: 29761: virtual void OnWalWriteFinish() = 0; 29761: }; 29761: 29761: } 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: class CompactOnDeletionCollectorFactory 29761: : public TablePropertiesCollectorFactory { 29761: public: 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29761: CompactOnDeletionCollectorFactory(size_t sliding_window_size, 29761: size_t deletion_trigger, 29761: double deletion_ratio); 29761: 29761: ~CompactOnDeletionCollectorFactory() override {} 29761: 29761: TablePropertiesCollector* CreateTablePropertiesCollector( 29761: TablePropertiesCollectorFactory::Context context) override; 29761: 29761: 29761: 29761: void SetWindowSize(size_t sliding_window_size) { 29761: sliding_window_size_.store(sliding_window_size); 29761: } 29761: size_t GetWindowSize() const { return sliding_window_size_.load(); } 29761: 29761: 29761: void SetDeletionTrigger(size_t deletion_trigger) { 29761: deletion_trigger_.store(deletion_trigger); 29761: } 29761: 29761: size_t GetDeletionTrigger() const { return deletion_trigger_.load(); } 29761: 29761: 29761: 29761: void SetDeletionRatio(double deletion_ratio) { 29761: deletion_ratio_.store(deletion_ratio); 29761: } 29761: 29761: double GetDeletionRatio() const { return deletion_ratio_.load(); } 29761: static const char* kClassName() { return "CompactOnDeletionCollector"; } 29761: const char* Name() const override { return kClassName(); } 29761: 29761: std::string ToString() const override; 29761: 29761: private: 29761: std::atomic sliding_window_size_; 29761: std::atomic deletion_trigger_; 29761: std::atomic deletion_ratio_; 29761: }; 29761: # 85 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29761: std::shared_ptr 29761: NewCompactOnDeletionCollectorFactory(size_t sliding_window_size, 29761: size_t deletion_trigger, 29761: double deletion_ratio = 0); 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29761: class CompactForTieringCollectorFactory 29761: : public TablePropertiesCollectorFactory { 29761: public: 29761: 29761: 29761: 29761: CompactForTieringCollectorFactory(double compaction_trigger_ratio); 29761: 29761: ~CompactForTieringCollectorFactory() override {} 29761: 29761: TablePropertiesCollector* CreateTablePropertiesCollector( 29761: TablePropertiesCollectorFactory::Context context) override; 29761: 29761: void SetCompactionTriggerRatio(double new_ratio) { 29761: compaction_trigger_ratio_.store(new_ratio); 29761: } 29761: 29761: double GetCompactionTriggerRatio() const { 29761: return compaction_trigger_ratio_.load(); 29761: } 29761: 29761: static const char* kClassName() { return "CompactForTieringCollector"; } 29761: const char* Name() const override { return kClassName(); } 29761: 29761: std::string ToString() const override; 29761: 29761: private: 29761: std::atomic compaction_trigger_ratio_; 29761: }; 29761: 29761: std::shared_ptr 29761: NewCompactForTieringCollectorFactory(double compaction_trigger_ratio); 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct DataCollectionUnixWriteTimeInfo { 29761: 29761: uint64_t min_write_time = 0; 29761: 29761: uint64_t max_write_time = 0; 29761: 29761: uint64_t average_write_time = 0; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t num_entries_infinitely_old = 0; 29761: 29761: 29761: uint64_t num_entries_write_time_aggregated = 0; 29761: 29761: 29761: uint64_t num_entries_write_time_untracked = 0; 29761: 29761: DataCollectionUnixWriteTimeInfo() {} 29761: 29761: DataCollectionUnixWriteTimeInfo(uint64_t _min_write_time, 29761: uint64_t _max_write_time, 29761: uint64_t _average_write_time, 29761: uint64_t _num_entries_infinitely_old, 29761: uint64_t _num_entries_write_time_aggregated, 29761: uint64_t _num_entries_write_time_untracked) 29761: : min_write_time(_min_write_time), 29761: max_write_time(_max_write_time), 29761: average_write_time(_average_write_time), 29761: num_entries_infinitely_old(_num_entries_infinitely_old), 29761: num_entries_write_time_aggregated(_num_entries_write_time_aggregated), 29761: num_entries_write_time_untracked(_num_entries_write_time_untracked) {} 29761: 29761: 29761: 29761: bool DataCollectionIsEmpty() const { 29761: return num_entries_infinitely_old == 0 && 29761: num_entries_write_time_aggregated == 0 && 29761: num_entries_write_time_untracked == 0; 29761: } 29761: # 193 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/table_properties_collectors.h" 29761: double TrackedDataRatio() const { 29761: if (DataCollectionIsEmpty()) { 29761: return 0; 29761: } 29761: uint64_t num_entries_write_time_tracked = 29761: num_entries_infinitely_old + num_entries_write_time_aggregated; 29761: return num_entries_write_time_tracked / 29761: static_cast(num_entries_write_time_tracked + 29761: num_entries_write_time_untracked); 29761: } 29761: 29761: 29761: bool HasInfinitelyOldData() const { return num_entries_infinitely_old > 0; } 29761: }; 29761: 29761: 29761: 29761: Status GetDataCollectionUnixWriteTimeInfoForFile( 29761: const std::shared_ptr& table_properties, 29761: std::unique_ptr* file_info); 29761: 29761: 29761: 29761: Status GetDataCollectionUnixWriteTimeInfoForLevels( 29761: const std::vector>& 29761: levels_table_properties, 29761: std::vector>* levels_info); 29761: } 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 2 29761: # 47 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: namespace rocksdb { 29761: 29761: struct ColumnFamilyOptions; 29761: struct CompactionOptions; 29761: struct CompactRangeOptions; 29761: struct DBOptions; 29761: struct ExternalSstFileInfo; 29761: struct FlushOptions; 29761: struct Options; 29761: struct ReadOptions; 29761: struct TableProperties; 29761: struct WriteOptions; 29761: struct WaitForCompactOptions; 29761: class Env; 29761: class EventListener; 29761: class FileSystem; 29761: class Replayer; 29761: class StatsHistoryIterator; 29761: class TraceReader; 29761: class TraceWriter; 29761: class WriteBatch; 29761: 29761: extern const std::string kDefaultColumnFamilyName; 29761: extern const std::string kPersistentStatsColumnFamilyName; 29761: struct ColumnFamilyDescriptor { 29761: std::string name; 29761: ColumnFamilyOptions options; 29761: ColumnFamilyDescriptor() 29761: : name(kDefaultColumnFamilyName), options(ColumnFamilyOptions()) {} 29761: ColumnFamilyDescriptor(const std::string& _name, 29761: const ColumnFamilyOptions& _options) 29761: : name(_name), options(_options) {} 29761: }; 29761: 29761: class ColumnFamilyHandle { 29761: public: 29761: virtual ~ColumnFamilyHandle() {} 29761: 29761: virtual const std::string& GetName() const = 0; 29761: 29761: virtual uint32_t GetID() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetDescriptor(ColumnFamilyDescriptor* desc) = 0; 29761: 29761: 29761: virtual const Comparator* GetComparator() const = 0; 29761: }; 29761: 29761: static const int kMajorVersion = 9; 29761: static const int kMinorVersion = 10; 29761: 29761: 29761: struct Range { 29761: 29761: 29761: Slice start; 29761: Slice limit; 29761: 29761: Range() {} 29761: Range(const Slice& s, const Slice& l) : start(s), limit(l) {} 29761: }; 29761: 29761: struct RangePtr { 29761: 29761: 29761: const Slice* start; 29761: const Slice* limit; 29761: 29761: RangePtr() : start(nullptr), limit(nullptr) {} 29761: RangePtr(const Slice* s, const Slice* l) : start(s), limit(l) {} 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct IngestExternalFileArg { 29761: ColumnFamilyHandle* column_family = nullptr; 29761: std::vector external_files; 29761: IngestExternalFileOptions options; 29761: std::vector files_checksums; 29761: std::vector files_checksum_func_names; 29761: 29761: Temperature file_temperature = Temperature::kUnknown; 29761: }; 29761: 29761: struct GetMergeOperandsOptions { 29761: using ContinueCallback = std::function; 29761: 29761: 29761: 29761: 29761: 29761: 29761: int expected_max_number_of_operands = 0; 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: ContinueCallback continue_cb; 29761: }; 29761: 29761: 29761: 29761: 29761: using TablePropertiesCollection = 29761: std::unordered_map>; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class DB { 29761: public: 29761: # 186 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status Open(const Options& options, const std::string& name, 29761: DB** dbptr); 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status Open(const DBOptions& db_options, const std::string& name, 29761: const std::vector& column_families, 29761: std::vector* handles, DB** dbptr); 29761: # 221 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenForReadOnly(const Options& options, const std::string& name, 29761: DB** dbptr, 29761: bool error_if_wal_file_exists = false); 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenForReadOnly( 29761: const DBOptions& db_options, const std::string& name, 29761: const std::vector& column_families, 29761: std::vector* handles, DB** dbptr, 29761: bool error_if_wal_file_exists = false); 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenAsSecondary(const Options& options, const std::string& name, 29761: const std::string& secondary_path, DB** dbptr); 29761: # 297 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenAsSecondary( 29761: const DBOptions& db_options, const std::string& name, 29761: const std::string& secondary_path, 29761: const std::vector& column_families, 29761: std::vector* handles, DB** dbptr); 29761: # 314 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenAsFollower(const Options& options, const std::string& name, 29761: const std::string& leader_path, 29761: std::unique_ptr* dbptr); 29761: 29761: 29761: static Status OpenAsFollower( 29761: const DBOptions& db_options, const std::string& name, 29761: const std::string& leader_path, 29761: const std::vector& column_families, 29761: std::vector* handles, std::unique_ptr* dbptr); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: static Status OpenAndCompact( 29761: const std::string& name, const std::string& output_directory, 29761: const std::string& input, std::string* output, 29761: const CompactionServiceOptionsOverride& override_options); 29761: 29761: static Status OpenAndCompact( 29761: const OpenAndCompactOptions& options, const std::string& name, 29761: const std::string& output_directory, const std::string& input, 29761: std::string* output, 29761: const CompactionServiceOptionsOverride& override_options); 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static Status OpenAndTrimHistory( 29761: const DBOptions& db_options, const std::string& dbname, 29761: const std::vector& column_families, 29761: std::vector* handles, DB** dbptr, 29761: std::string trim_ts); 29761: # 367 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status Resume() { return Status::NotSupported(); } 29761: # 386 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status Close() { return Status::NotSupported(); } 29761: 29761: 29761: 29761: 29761: 29761: static Status ListColumnFamilies(const DBOptions& db_options, 29761: const std::string& name, 29761: std::vector* column_families); 29761: 29761: 29761: DB() {} 29761: 29761: DB(const DB&) = delete; 29761: void operator=(const DB&) = delete; 29761: 29761: virtual ~DB(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status CreateColumnFamily(const ColumnFamilyOptions& options, 29761: const std::string& column_family_name, 29761: ColumnFamilyHandle** handle); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status CreateColumnFamilies( 29761: const ColumnFamilyOptions& options, 29761: const std::vector& column_family_names, 29761: std::vector* handles); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status CreateColumnFamilies( 29761: const std::vector& column_families, 29761: std::vector* handles); 29761: 29761: 29761: 29761: 29761: virtual Status DropColumnFamily(ColumnFamilyHandle* column_family); 29761: 29761: 29761: 29761: 29761: 29761: virtual Status DropColumnFamilies( 29761: const std::vector& column_families); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status DestroyColumnFamilyHandle(ColumnFamilyHandle* column_family); 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Put(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) = 0; 29761: virtual Status Put(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts, const Slice& value) = 0; 29761: virtual Status Put(const WriteOptions& options, const Slice& key, 29761: const Slice& value) { 29761: return Put(options, DefaultColumnFamily(), key, value); 29761: } 29761: virtual Status Put(const WriteOptions& options, const Slice& key, 29761: const Slice& ts, const Slice& value) { 29761: return Put(options, DefaultColumnFamily(), key, ts, value); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status PutEntity(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: const WideColumns& columns); 29761: 29761: 29761: virtual Status PutEntity(const WriteOptions& options, const Slice& key, 29761: const AttributeGroups& attribute_groups); 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Delete(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice& key) = 0; 29761: virtual Status Delete(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& ts) = 0; 29761: virtual Status Delete(const WriteOptions& options, const Slice& key) { 29761: return Delete(options, DefaultColumnFamily(), key); 29761: } 29761: virtual Status Delete(const WriteOptions& options, const Slice& key, 29761: const Slice& ts) { 29761: return Delete(options, DefaultColumnFamily(), key, ts); 29761: } 29761: # 518 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status SingleDelete(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice& key) = 0; 29761: virtual Status SingleDelete(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice& key, const Slice& ts) = 0; 29761: virtual Status SingleDelete(const WriteOptions& options, const Slice& key) { 29761: return SingleDelete(options, DefaultColumnFamily(), key); 29761: } 29761: virtual Status SingleDelete(const WriteOptions& options, const Slice& key, 29761: const Slice& ts) { 29761: return SingleDelete(options, DefaultColumnFamily(), key, ts); 29761: } 29761: # 548 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status DeleteRange(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice& begin_key, const Slice& end_key); 29761: virtual Status DeleteRange(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice& begin_key, const Slice& end_key, 29761: const Slice& ts); 29761: virtual Status DeleteRange(const WriteOptions& options, 29761: const Slice& begin_key, const Slice& end_key) { 29761: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key); 29761: } 29761: virtual Status DeleteRange(const WriteOptions& options, 29761: const Slice& begin_key, const Slice& end_key, 29761: const Slice& ts) { 29761: return DeleteRange(options, DefaultColumnFamily(), begin_key, end_key, ts); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Merge(const WriteOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: const Slice& value) = 0; 29761: virtual Status Merge(const WriteOptions& options, const Slice& key, 29761: const Slice& value) { 29761: return Merge(options, DefaultColumnFamily(), key, value); 29761: } 29761: virtual Status Merge(const WriteOptions& , 29761: ColumnFamilyHandle* , 29761: const Slice& , const Slice& , 29761: const Slice& ); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Write(const WriteOptions& options, WriteBatch* updates) = 0; 29761: 29761: 29761: 29761: virtual Status WriteWithCallback(const WriteOptions& , 29761: WriteBatch* , 29761: UserWriteCallback* ) { 29761: return Status::NotSupported( 29761: "WriteWithCallback not implemented for this interface."); 29761: } 29761: # 611 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status Get(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: PinnableSlice* value, std::string* timestamp) = 0; 29761: 29761: 29761: 29761: 29761: virtual inline Status Get(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: std::string* value, std::string* timestamp) final { 29761: 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: (static_cast ( 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: value != nullptr 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: "value != nullptr" 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 621 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: ; 29761: PinnableSlice pinnable_val(value); 29761: 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: (static_cast ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: !pinnable_val.IsPinned() 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: "!pinnable_val.IsPinned()" 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: ; 29761: auto s = Get(options, column_family, key, &pinnable_val, timestamp); 29761: if (s.ok() && pinnable_val.IsPinned()) { 29761: value->assign(pinnable_val.data(), pinnable_val.size()); 29761: } 29761: return s; 29761: } 29761: 29761: 29761: 29761: virtual Status Get(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: PinnableSlice* value) final { 29761: return Get(options, column_family, key, value, nullptr); 29761: } 29761: 29761: 29761: 29761: virtual inline Status Get(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: std::string* value) final { 29761: 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: (static_cast ( 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: value != nullptr 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: "value != nullptr" 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 644 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: ; 29761: PinnableSlice pinnable_val(value); 29761: 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: (static_cast ( 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: !pinnable_val.IsPinned() 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: "!pinnable_val.IsPinned()" 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 646 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: ; 29761: auto s = Get(options, column_family, key, &pinnable_val); 29761: if (s.ok() && pinnable_val.IsPinned()) { 29761: value->assign(pinnable_val.data(), pinnable_val.size()); 29761: } 29761: return s; 29761: } 29761: 29761: 29761: 29761: 29761: virtual Status Get(const ReadOptions& options, const Slice& key, 29761: std::string* value) final { 29761: return Get(options, DefaultColumnFamily(), key, value); 29761: } 29761: 29761: 29761: 29761: 29761: virtual Status Get(const ReadOptions& options, const Slice& key, 29761: std::string* value, std::string* timestamp) final { 29761: return Get(options, DefaultColumnFamily(), key, value, timestamp); 29761: } 29761: # 679 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetEntity(const ReadOptions& , 29761: ColumnFamilyHandle* , 29761: const Slice& , 29761: PinnableWideColumns* ) { 29761: return Status::NotSupported("GetEntity not supported"); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetEntity(const ReadOptions& , 29761: const Slice& , 29761: PinnableAttributeGroups* ) { 29761: return Status::NotSupported("GetEntity not supported"); 29761: } 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetMergeOperands( 29761: const ReadOptions& options, ColumnFamilyHandle* column_family, 29761: const Slice& key, PinnableSlice* merge_operands, 29761: GetMergeOperandsOptions* get_merge_operands_options, 29761: int* number_of_operands) = 0; 29761: # 741 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual std::vector MultiGet( 29761: const ReadOptions& options, 29761: const std::vector& column_families, 29761: const std::vector& keys, std::vector* values, 29761: std::vector* timestamps) final { 29761: size_t num_keys = keys.size(); 29761: std::vector statuses(num_keys); 29761: std::vector pin_values(num_keys); 29761: 29761: values->resize(num_keys); 29761: if (timestamps) { 29761: timestamps->resize(num_keys); 29761: } 29761: MultiGet(options, num_keys, 29761: const_cast(column_families.data()), 29761: keys.data(), pin_values.data(), 29761: timestamps ? timestamps->data() : nullptr, statuses.data(), 29761: false); 29761: for (size_t i = 0; i < num_keys; ++i) { 29761: if (statuses[i].ok()) { 29761: (*values)[i].assign(pin_values[i].data(), pin_values[i].size()); 29761: } 29761: } 29761: return statuses; 29761: } 29761: 29761: 29761: 29761: virtual std::vector MultiGet( 29761: const ReadOptions& options, 29761: const std::vector& column_family, 29761: const std::vector& keys, std::vector* values) final { 29761: values->resize(keys.size()); 29761: return MultiGet(options, column_family, keys, values, nullptr); 29761: } 29761: 29761: 29761: 29761: virtual std::vector MultiGet(const ReadOptions& options, 29761: const std::vector& keys, 29761: std::vector* values) final { 29761: values->resize(keys.size()); 29761: return MultiGet( 29761: options, 29761: std::vector(keys.size(), DefaultColumnFamily()), 29761: keys, values); 29761: } 29761: 29761: 29761: 29761: virtual std::vector MultiGet( 29761: const ReadOptions& options, const std::vector& keys, 29761: std::vector* values, 29761: std::vector* timestamps) final { 29761: values->resize(keys.size()); 29761: return MultiGet( 29761: options, 29761: std::vector(keys.size(), DefaultColumnFamily()), 29761: keys, values, timestamps); 29761: } 29761: # 830 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 29761: ColumnFamilyHandle** column_families, const Slice* keys, 29761: PinnableSlice* values, std::string* timestamps, 29761: Status* statuses, const bool sorted_input = false) = 0; 29761: 29761: 29761: 29761: virtual void MultiGet(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const size_t num_keys, const Slice* keys, 29761: PinnableSlice* values, std::string* timestamps, 29761: Status* statuses, 29761: const bool sorted_input = false) final; 29761: 29761: 29761: 29761: virtual void MultiGet(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const size_t num_keys, const Slice* keys, 29761: PinnableSlice* values, Status* statuses, 29761: const bool sorted_input = false) final { 29761: MultiGet(options, column_family, num_keys, keys, values, nullptr, statuses, 29761: sorted_input); 29761: } 29761: 29761: 29761: 29761: virtual void MultiGet(const ReadOptions& options, const size_t num_keys, 29761: ColumnFamilyHandle** column_families, const Slice* keys, 29761: PinnableSlice* values, Status* statuses, 29761: const bool sorted_input = false) final { 29761: MultiGet(options, num_keys, column_families, keys, values, nullptr, 29761: statuses, sorted_input); 29761: } 29761: # 884 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual void MultiGetEntity(const ReadOptions& , 29761: ColumnFamilyHandle* , 29761: size_t num_keys, const Slice* , 29761: PinnableWideColumns* , 29761: Status* statuses, 29761: bool = false) { 29761: for (size_t i = 0; i < num_keys; ++i) { 29761: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 29761: } 29761: } 29761: # 916 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 29761: ColumnFamilyHandle** , 29761: const Slice* , 29761: PinnableWideColumns* , 29761: Status* statuses, 29761: bool = false) { 29761: for (size_t i = 0; i < num_keys; ++i) { 29761: statuses[i] = Status::NotSupported("MultiGetEntity not supported"); 29761: } 29761: } 29761: # 944 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual void MultiGetEntity(const ReadOptions& , size_t num_keys, 29761: const Slice* , 29761: PinnableAttributeGroups* results) { 29761: for (size_t i = 0; i < num_keys; ++i) { 29761: for (size_t j = 0; j < results[i].size(); ++j) { 29761: results[i][j].SetStatus( 29761: Status::NotSupported("MultiGetEntity not supported")); 29761: } 29761: } 29761: } 29761: # 962 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual bool KeyMayExist(const ReadOptions& , 29761: ColumnFamilyHandle* , 29761: const Slice& , std::string* , 29761: std::string* , 29761: bool* value_found = nullptr) { 29761: if (value_found != nullptr) { 29761: *value_found = false; 29761: } 29761: return true; 29761: } 29761: 29761: virtual bool KeyMayExist(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family, const Slice& key, 29761: std::string* value, bool* value_found = nullptr) { 29761: return KeyMayExist(options, column_family, key, value, 29761: nullptr, value_found); 29761: } 29761: 29761: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 29761: std::string* value, bool* value_found = nullptr) { 29761: return KeyMayExist(options, DefaultColumnFamily(), key, value, value_found); 29761: } 29761: 29761: virtual bool KeyMayExist(const ReadOptions& options, const Slice& key, 29761: std::string* value, std::string* timestamp, 29761: bool* value_found = nullptr) { 29761: return KeyMayExist(options, DefaultColumnFamily(), key, value, timestamp, 29761: value_found); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Iterator* NewIterator(const ReadOptions& options, 29761: ColumnFamilyHandle* column_family) = 0; 29761: virtual Iterator* NewIterator(const ReadOptions& options) { 29761: return NewIterator(options, DefaultColumnFamily()); 29761: } 29761: 29761: 29761: 29761: virtual Status NewIterators( 29761: const ReadOptions& options, 29761: const std::vector& column_families, 29761: std::vector* iterators) = 0; 29761: # 1024 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual std::unique_ptr NewCoalescingIterator( 29761: const ReadOptions& options, 29761: const std::vector& column_families) = 0; 29761: 29761: 29761: 29761: virtual std::unique_ptr NewAttributeGroupIterator( 29761: const ReadOptions& options, 29761: const std::vector& column_families) = 0; 29761: # 1041 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual const Snapshot* GetSnapshot() = 0; 29761: 29761: 29761: 29761: virtual void ReleaseSnapshot(const Snapshot* snapshot) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct Properties { 29761: 29761: 29761: 29761: static const std::string kNumFilesAtLevelPrefix; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kCompressionRatioAtLevelPrefix; 29761: 29761: 29761: 29761: static const std::string kStats; 29761: 29761: 29761: 29761: static const std::string kSSTables; 29761: 29761: 29761: 29761: static const std::string kCFStats; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kCFStatsNoFileHistogram; 29761: 29761: 29761: 29761: static const std::string kCFFileHistogram; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kCFWriteStallStats; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kDBWriteStallStats; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kDBStats; 29761: 29761: 29761: 29761: static const std::string kLevelStats; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kBlockCacheEntryStats; 29761: 29761: 29761: 29761: static const std::string kFastBlockCacheEntryStats; 29761: 29761: 29761: 29761: static const std::string kNumImmutableMemTable; 29761: 29761: 29761: 29761: static const std::string kNumImmutableMemTableFlushed; 29761: 29761: 29761: 29761: static const std::string kMemTableFlushPending; 29761: 29761: 29761: 29761: static const std::string kNumRunningFlushes; 29761: 29761: 29761: 29761: static const std::string kCompactionPending; 29761: 29761: 29761: 29761: static const std::string kNumRunningCompactions; 29761: 29761: 29761: 29761: static const std::string kBackgroundErrors; 29761: 29761: 29761: 29761: static const std::string kCurSizeActiveMemTable; 29761: 29761: 29761: 29761: static const std::string kCurSizeAllMemTables; 29761: 29761: 29761: 29761: static const std::string kSizeAllMemTables; 29761: 29761: 29761: 29761: static const std::string kNumEntriesActiveMemTable; 29761: 29761: 29761: 29761: static const std::string kNumEntriesImmMemTables; 29761: 29761: 29761: 29761: static const std::string kNumDeletesActiveMemTable; 29761: 29761: 29761: 29761: static const std::string kNumDeletesImmMemTables; 29761: 29761: 29761: 29761: static const std::string kEstimateNumKeys; 29761: 29761: 29761: 29761: 29761: static const std::string kEstimateTableReadersMem; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kIsFileDeletionsEnabled; 29761: 29761: 29761: 29761: static const std::string kNumSnapshots; 29761: 29761: 29761: 29761: static const std::string kOldestSnapshotTime; 29761: 29761: 29761: 29761: static const std::string kOldestSnapshotSequence; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kNumLiveVersions; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kCurrentSuperVersionNumber; 29761: 29761: 29761: 29761: 29761: static const std::string kEstimateLiveDataSize; 29761: 29761: 29761: 29761: static const std::string kMinLogNumberToKeep; 29761: 29761: 29761: 29761: 29761: static const std::string kMinObsoleteSstNumberToKeep; 29761: 29761: 29761: 29761: 29761: static const std::string kTotalSstFilesSize; 29761: 29761: 29761: 29761: static const std::string kLiveSstFilesSize; 29761: # 1246 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static const std::string kObsoleteSstFilesSize; 29761: 29761: 29761: 29761: static const std::string kLiveSstFilesSizeAtTemperature; 29761: 29761: 29761: 29761: static const std::string kBaseLevel; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kEstimatePendingCompactionBytes; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kAggregatedTableProperties; 29761: 29761: 29761: 29761: 29761: static const std::string kAggregatedTablePropertiesAtLevel; 29761: 29761: 29761: 29761: static const std::string kActualDelayedWriteRate; 29761: 29761: 29761: static const std::string kIsWriteStopped; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kEstimateOldestKeyTime; 29761: 29761: 29761: static const std::string kBlockCacheCapacity; 29761: 29761: 29761: 29761: static const std::string kBlockCacheUsage; 29761: 29761: 29761: 29761: static const std::string kBlockCachePinnedUsage; 29761: 29761: 29761: 29761: static const std::string kOptionsStatistics; 29761: 29761: 29761: 29761: static const std::string kNumBlobFiles; 29761: 29761: 29761: 29761: 29761: static const std::string kBlobStats; 29761: 29761: 29761: 29761: static const std::string kTotalBlobFileSize; 29761: 29761: 29761: 29761: static const std::string kLiveBlobFileSize; 29761: 29761: 29761: 29761: static const std::string kLiveBlobFileGarbageSize; 29761: 29761: 29761: static const std::string kBlobCacheCapacity; 29761: 29761: 29761: 29761: static const std::string kBlobCacheUsage; 29761: 29761: 29761: 29761: static const std::string kBlobCachePinnedUsage; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool GetProperty(ColumnFamilyHandle* column_family, 29761: const Slice& property, std::string* value) = 0; 29761: virtual bool GetProperty(const Slice& property, std::string* value) { 29761: return GetProperty(DefaultColumnFamily(), property, value); 29761: } 29761: 29761: 29761: 29761: virtual bool GetMapProperty(ColumnFamilyHandle* column_family, 29761: const Slice& property, 29761: std::map* value) = 0; 29761: virtual bool GetMapProperty(const Slice& property, 29761: std::map* value) { 29761: return GetMapProperty(DefaultColumnFamily(), property, value); 29761: } 29761: # 1401 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual bool GetIntProperty(ColumnFamilyHandle* column_family, 29761: const Slice& property, uint64_t* value) = 0; 29761: virtual bool GetIntProperty(const Slice& property, uint64_t* value) { 29761: return GetIntProperty(DefaultColumnFamily(), property, value); 29761: } 29761: 29761: 29761: 29761: 29761: virtual Status ResetStats() { 29761: return Status::NotSupported("Not implemented"); 29761: } 29761: 29761: 29761: 29761: virtual bool GetAggregatedIntProperty(const Slice& property, 29761: uint64_t* value) = 0; 29761: 29761: 29761: 29761: enum class SizeApproximationFlags : uint8_t { 29761: NONE = 0, 29761: INCLUDE_MEMTABLES = 1 << 0, 29761: INCLUDE_FILES = 1 << 1 29761: }; 29761: # 1434 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetApproximateSizes(const SizeApproximationOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Range* ranges, int n, 29761: uint64_t* sizes) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status GetApproximateSizes(ColumnFamilyHandle* column_family, 29761: const Range* ranges, int n, 29761: uint64_t* sizes, 29761: SizeApproximationFlags include_flags = 29761: SizeApproximationFlags::INCLUDE_FILES); 29761: 29761: virtual Status GetApproximateSizes( 29761: const Range* ranges, int n, uint64_t* sizes, 29761: SizeApproximationFlags include_flags = 29761: SizeApproximationFlags::INCLUDE_FILES) { 29761: return GetApproximateSizes(DefaultColumnFamily(), ranges, n, sizes, 29761: include_flags); 29761: } 29761: 29761: 29761: 29761: virtual void GetApproximateMemTableStats(ColumnFamilyHandle* column_family, 29761: const Range& range, 29761: uint64_t* const count, 29761: uint64_t* const size) = 0; 29761: virtual void GetApproximateMemTableStats(const Range& range, 29761: uint64_t* const count, 29761: uint64_t* const size) { 29761: GetApproximateMemTableStats(DefaultColumnFamily(), range, count, size); 29761: } 29761: # 1493 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status CompactRange(const CompactRangeOptions& options, 29761: ColumnFamilyHandle* column_family, 29761: const Slice* begin, const Slice* end) = 0; 29761: virtual Status CompactRange(const CompactRangeOptions& options, 29761: const Slice* begin, const Slice* end) { 29761: return CompactRange(options, DefaultColumnFamily(), begin, end); 29761: } 29761: # 1519 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status SetOptions( 29761: ColumnFamilyHandle* , 29761: const std::unordered_map& ) { 29761: return Status::NotSupported("Not implemented"); 29761: } 29761: 29761: virtual Status SetOptions( 29761: const std::unordered_map& new_options) { 29761: return SetOptions(DefaultColumnFamily(), new_options); 29761: } 29761: # 1539 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status SetDBOptions( 29761: const std::unordered_map& new_options) = 0; 29761: # 1549 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status CompactFiles( 29761: const CompactionOptions& compact_options, 29761: ColumnFamilyHandle* column_family, 29761: const std::vector& input_file_names, const int output_level, 29761: const int output_path_id = -1, 29761: std::vector* const output_file_names = nullptr, 29761: CompactionJobInfo* compaction_job_info = nullptr) = 0; 29761: 29761: virtual Status CompactFiles( 29761: const CompactionOptions& compact_options, 29761: const std::vector& input_file_names, const int output_level, 29761: const int output_path_id = -1, 29761: std::vector* const output_file_names = nullptr, 29761: CompactionJobInfo* compaction_job_info = nullptr) { 29761: return CompactFiles(compact_options, DefaultColumnFamily(), 29761: input_file_names, output_level, output_path_id, 29761: output_file_names, compaction_job_info); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual Status PauseBackgroundWork() = 0; 29761: virtual Status ContinueBackgroundWork() = 0; 29761: # 1584 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status EnableAutoCompaction( 29761: const std::vector& column_family_handles) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void DisableManualCompaction() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void EnableManualCompaction() = 0; 29761: # 1608 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status WaitForCompact( 29761: const WaitForCompactOptions& ) = 0; 29761: 29761: 29761: virtual int NumberLevels(ColumnFamilyHandle* column_family) = 0; 29761: virtual int NumberLevels() { return NumberLevels(DefaultColumnFamily()); } 29761: 29761: 29761: 29761: virtual int MaxMemCompactionLevel(ColumnFamilyHandle* column_family) = 0; 29761: virtual int MaxMemCompactionLevel() { 29761: return MaxMemCompactionLevel(DefaultColumnFamily()); 29761: } 29761: 29761: 29761: virtual int Level0StopWriteTrigger(ColumnFamilyHandle* column_family) = 0; 29761: virtual int Level0StopWriteTrigger() { 29761: return Level0StopWriteTrigger(DefaultColumnFamily()); 29761: } 29761: 29761: 29761: 29761: virtual const std::string& GetName() const = 0; 29761: 29761: 29761: virtual Env* GetEnv() const = 0; 29761: 29761: 29761: 29761: virtual FileSystem* GetFileSystem() const; 29761: 29761: 29761: 29761: 29761: 29761: virtual Options GetOptions(ColumnFamilyHandle* column_family) const = 0; 29761: virtual Options GetOptions() const { 29761: return GetOptions(DefaultColumnFamily()); 29761: } 29761: 29761: virtual DBOptions GetDBOptions() const = 0; 29761: 29761: 29761: 29761: 29761: virtual Status Flush(const FlushOptions& options, 29761: ColumnFamilyHandle* column_family) = 0; 29761: virtual Status Flush(const FlushOptions& options) { 29761: return Flush(options, DefaultColumnFamily()); 29761: } 29761: # 1666 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status Flush( 29761: const FlushOptions& options, 29761: const std::vector& column_families) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status FlushWAL(bool ) { 29761: return Status::NotSupported("FlushWAL not implemented"); 29761: } 29761: # 1687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status SyncWAL() = 0; 29761: # 1698 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status LockWAL() { 29761: return Status::NotSupported("LockWAL not implemented"); 29761: } 29761: 29761: 29761: 29761: 29761: virtual Status UnlockWAL() { 29761: return Status::NotSupported("UnlockWAL not implemented"); 29761: } 29761: 29761: 29761: virtual SequenceNumber GetLatestSequenceNumber() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status IncreaseFullHistoryTsLow(ColumnFamilyHandle* column_family, 29761: std::string ts_low) = 0; 29761: 29761: 29761: virtual Status GetFullHistoryTsLow(ColumnFamilyHandle* column_family, 29761: std::string* ts_low) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Status DisableFileDeletions() = 0; 29761: # 1740 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status EnableFileDeletions() = 0; 29761: # 1752 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetCreationTimeOfOldestFile(uint64_t* creation_time) = 0; 29761: # 1766 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetUpdatesSince( 29761: SequenceNumber seq_number, std::unique_ptr* iter, 29761: const TransactionLogIterator::ReadOptions& read_options = 29761: TransactionLogIterator::ReadOptions()) = 0; 29761: # 1784 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status DeleteFile(std::string name) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void GetLiveFilesMetaData( 29761: std::vector* ) {} 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetLiveFilesChecksumInfo(FileChecksumList* checksum_list) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetLiveFilesStorageInfo( 29761: const LiveFilesStorageInfoOptions& opts, 29761: std::vector* files) = 0; 29761: 29761: 29761: 29761: virtual void GetColumnFamilyMetaData(ColumnFamilyHandle* , 29761: ColumnFamilyMetaData* ) {} 29761: 29761: 29761: void GetColumnFamilyMetaData(ColumnFamilyMetaData* metadata) { 29761: GetColumnFamilyMetaData(DefaultColumnFamily(), metadata); 29761: } 29761: 29761: 29761: 29761: virtual void GetAllColumnFamilyMetaData( 29761: std::vector* ) {} 29761: # 1839 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetLiveFiles(std::vector&, 29761: uint64_t* manifest_file_size, 29761: bool flush_memtable = true) = 0; 29761: 29761: 29761: virtual Status GetSortedWalFiles(VectorWalPtr& files) = 0; 29761: # 1853 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status GetCurrentWalFile( 29761: std::unique_ptr* current_log_file) = 0; 29761: # 1897 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status IngestExternalFile( 29761: ColumnFamilyHandle* column_family, 29761: const std::vector& external_files, 29761: const IngestExternalFileOptions& options) = 0; 29761: 29761: virtual Status IngestExternalFile( 29761: const std::vector& external_files, 29761: const IngestExternalFileOptions& options) { 29761: return IngestExternalFile(DefaultColumnFamily(), external_files, options); 29761: } 29761: # 1923 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status IngestExternalFiles( 29761: const std::vector& args) = 0; 29761: # 1943 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status CreateColumnFamilyWithImport( 29761: const ColumnFamilyOptions& options, const std::string& column_family_name, 29761: const ImportColumnFamilyOptions& import_options, 29761: const ExportImportFilesMetaData& metadata, ColumnFamilyHandle** handle) { 29761: const std::vector& metadatas{&metadata}; 29761: return CreateColumnFamilyWithImport(options, column_family_name, 29761: import_options, metadatas, handle); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status CreateColumnFamilyWithImport( 29761: const ColumnFamilyOptions& options, const std::string& column_family_name, 29761: const ImportColumnFamilyOptions& import_options, 29761: const std::vector& metadatas, 29761: ColumnFamilyHandle** handle) = 0; 29761: # 1976 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status ClipColumnFamily(ColumnFamilyHandle* column_family, 29761: const Slice& begin_key, 29761: const Slice& end_key) = 0; 29761: 29761: 29761: 29761: virtual Status VerifyFileChecksums(const ReadOptions& ) { 29761: return Status::NotSupported("File verification not supported"); 29761: } 29761: 29761: 29761: 29761: virtual Status VerifyChecksum(const ReadOptions& read_options) = 0; 29761: 29761: virtual Status VerifyChecksum() { return VerifyChecksum(ReadOptions()); } 29761: 29761: 29761: 29761: 29761: virtual Status GetDbIdentity(std::string& identity) const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetDbSessionId(std::string& session_id) const = 0; 29761: 29761: 29761: virtual ColumnFamilyHandle* DefaultColumnFamily() const = 0; 29761: 29761: virtual Status GetPropertiesOfAllTables(ColumnFamilyHandle* column_family, 29761: TablePropertiesCollection* props) = 0; 29761: virtual Status GetPropertiesOfAllTables(TablePropertiesCollection* props) { 29761: return GetPropertiesOfAllTables(DefaultColumnFamily(), props); 29761: } 29761: virtual Status GetPropertiesOfTablesInRange( 29761: ColumnFamilyHandle* column_family, const Range* range, std::size_t n, 29761: TablePropertiesCollection* props) = 0; 29761: 29761: 29761: virtual Status GetPropertiesOfTablesForLevels( 29761: ColumnFamilyHandle* , 29761: std::vector< 29761: std::unique_ptr>* ) { 29761: return Status::NotSupported( 29761: "GetPropertiesOfTablesForLevels() is not implemented."); 29761: } 29761: 29761: virtual Status SuggestCompactRange(ColumnFamilyHandle* , 29761: const Slice* , 29761: const Slice* ) { 29761: return Status::NotSupported("SuggestCompactRange() is not implemented."); 29761: } 29761: 29761: 29761: 29761: virtual Status PromoteL0(ColumnFamilyHandle* , 29761: int ) { 29761: return Status::NotSupported("PromoteL0() is not implemented."); 29761: } 29761: 29761: 29761: virtual Status StartTrace(const TraceOptions& , 29761: std::unique_ptr&& ) { 29761: return Status::NotSupported("StartTrace() is not implemented."); 29761: } 29761: 29761: virtual Status EndTrace() { 29761: return Status::NotSupported("EndTrace() is not implemented."); 29761: } 29761: 29761: 29761: virtual Status StartIOTrace(const TraceOptions& , 29761: std::unique_ptr&& ) { 29761: return Status::NotSupported("StartIOTrace() is not implemented."); 29761: } 29761: 29761: virtual Status EndIOTrace() { 29761: return Status::NotSupported("EndIOTrace() is not implemented."); 29761: } 29761: 29761: 29761: virtual Status StartBlockCacheTrace( 29761: const TraceOptions& , 29761: std::unique_ptr&& ) { 29761: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 29761: } 29761: 29761: virtual Status StartBlockCacheTrace( 29761: const BlockCacheTraceOptions& , 29761: std::unique_ptr&& ) { 29761: return Status::NotSupported("StartBlockCacheTrace() is not implemented."); 29761: } 29761: 29761: virtual Status EndBlockCacheTrace() { 29761: return Status::NotSupported("EndBlockCacheTrace() is not implemented."); 29761: } 29761: 29761: 29761: virtual Status NewDefaultReplayer( 29761: const std::vector& , 29761: std::unique_ptr&& , 29761: std::unique_ptr* ) { 29761: return Status::NotSupported("NewDefaultReplayer() is not implemented."); 29761: } 29761: 29761: 29761: virtual DB* GetRootDB() { return this; } 29761: 29761: 29761: 29761: 29761: virtual Status GetStatsHistory( 29761: uint64_t , uint64_t , 29761: std::unique_ptr* ) { 29761: return Status::NotSupported("GetStatsHistory() is not implemented."); 29761: } 29761: # 2105 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: virtual Status TryCatchUpWithPrimary() { 29761: return Status::NotSupported("Supported only by secondary instance"); 29761: } 29761: }; 29761: 29761: struct WriteStallStatsMapKeys { 29761: static const std::string& TotalStops(); 29761: static const std::string& TotalDelays(); 29761: 29761: static const std::string& CFL0FileCountLimitDelaysWithOngoingCompaction(); 29761: static const std::string& CFL0FileCountLimitStopsWithOngoingCompaction(); 29761: # 2124 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: static std::string CauseConditionCount(WriteStallCause cause, 29761: WriteStallCondition condition); 29761: }; 29761: 29761: 29761: inline DB::SizeApproximationFlags operator&(DB::SizeApproximationFlags lhs, 29761: DB::SizeApproximationFlags rhs) { 29761: return static_cast(static_cast(lhs) & 29761: static_cast(rhs)); 29761: } 29761: inline DB::SizeApproximationFlags operator|(DB::SizeApproximationFlags lhs, 29761: DB::SizeApproximationFlags rhs) { 29761: return static_cast(static_cast(lhs) | 29761: static_cast(rhs)); 29761: } 29761: 29761: inline Status DB::GetApproximateSizes(ColumnFamilyHandle* column_family, 29761: const Range* ranges, int n, 29761: uint64_t* sizes, 29761: SizeApproximationFlags include_flags) { 29761: SizeApproximationOptions options; 29761: options.include_memtables = 29761: ((include_flags & SizeApproximationFlags::INCLUDE_MEMTABLES) != 29761: SizeApproximationFlags::NONE); 29761: options.include_files = 29761: ((include_flags & SizeApproximationFlags::INCLUDE_FILES) != 29761: SizeApproximationFlags::NONE); 29761: return GetApproximateSizes(options, column_family, ranges, n, sizes); 29761: } 29761: 29761: 29761: 29761: Status DestroyDB(const std::string& name, const Options& options, 29761: const std::vector& column_families = 29761: std::vector()); 29761: # 2169 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/db.h" 29761: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 29761: const std::vector& column_families); 29761: 29761: 29761: 29761: Status RepairDB(const std::string& dbname, const DBOptions& db_options, 29761: const std::vector& column_families, 29761: const ColumnFamilyOptions& unknown_cf_opts); 29761: 29761: 29761: 29761: Status RepairDB(const std::string& dbname, const Options& options); 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: const std::vector empty_operand_list; 29761: 29761: 29761: 29761: 29761: 29761: class MergeContext { 29761: public: 29761: GetMergeOperandsOptions* get_merge_operands_options = nullptr; 29761: 29761: 29761: void Clear() { 29761: if (operand_list_) { 29761: operand_list_->clear(); 29761: copied_operands_->clear(); 29761: } 29761: } 29761: 29761: 29761: void PushOperand(const Slice& operand_slice, bool operand_pinned = false) { 29761: Initialize(); 29761: SetDirectionBackward(); 29761: 29761: if (operand_pinned) { 29761: operand_list_->push_back(operand_slice); 29761: } else { 29761: 29761: copied_operands_->emplace_back( 29761: new std::string(operand_slice.data(), operand_slice.size())); 29761: operand_list_->push_back(*copied_operands_->back()); 29761: } 29761: } 29761: 29761: 29761: void PushOperandBack(const Slice& operand_slice, 29761: bool operand_pinned = false) { 29761: Initialize(); 29761: SetDirectionForward(); 29761: 29761: if (operand_pinned) { 29761: operand_list_->push_back(operand_slice); 29761: } else { 29761: 29761: copied_operands_->emplace_back( 29761: new std::string(operand_slice.data(), operand_slice.size())); 29761: operand_list_->push_back(*copied_operands_->back()); 29761: } 29761: } 29761: 29761: 29761: size_t GetNumOperands() const { 29761: if (!operand_list_) { 29761: return 0; 29761: } 29761: return operand_list_->size(); 29761: } 29761: 29761: 29761: Slice GetOperand(int index) const { 29761: 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29761: (static_cast ( 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29761: operand_list_ 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29761: "operand_list_" 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/db/merge_context.h" 29761: ; 29761: 29761: SetDirectionForward(); 29761: return (*operand_list_)[index]; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: const std::vector& GetOperands() const { 29761: return GetOperandsDirectionForward(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const std::vector& GetOperandsDirectionForward() const { 29761: if (!operand_list_) { 29761: return empty_operand_list; 29761: } 29761: 29761: SetDirectionForward(); 29761: return *operand_list_; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const std::vector& GetOperandsDirectionBackward() const { 29761: if (!operand_list_) { 29761: return empty_operand_list; 29761: } 29761: 29761: SetDirectionBackward(); 29761: return *operand_list_; 29761: } 29761: 29761: private: 29761: void Initialize() { 29761: if (!operand_list_) { 29761: operand_list_.reset(new std::vector()); 29761: copied_operands_.reset(new std::vector>()); 29761: } 29761: } 29761: 29761: void SetDirectionForward() const { 29761: if (operands_reversed_ == true) { 29761: std::reverse(operand_list_->begin(), operand_list_->end()); 29761: operands_reversed_ = false; 29761: } 29761: } 29761: 29761: void SetDirectionBackward() const { 29761: if (operands_reversed_ == false) { 29761: std::reverse(operand_list_->begin(), operand_list_->end()); 29761: operands_reversed_ = true; 29761: } 29761: } 29761: 29761: 29761: mutable std::unique_ptr> operand_list_; 29761: 29761: std::unique_ptr>> copied_operands_; 29761: mutable bool operands_reversed_ = true; 29761: }; 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/iterator" 1 3 29761: # 58 "/usr/include/c++/14/iterator" 3 29761: 29761: # 59 "/usr/include/c++/14/iterator" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stream_iterator.h" 1 3 29761: # 33 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: 29761: # 34 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 40 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 50 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 29761: 29761: 29761: template, typename _Dist = ptrdiff_t> 29761: class istream_iterator 29761: : public iterator 29761: { 29761: public: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef basic_istream<_CharT, _Traits> istream_type; 29761: 29761: private: 29761: istream_type* _M_stream; 29761: _Tp _M_value; 29761: 29761: 29761: 29761: bool _M_ok; 29761: 29761: public: 29761: 29761: constexpr istream_iterator() 29761: noexcept(is_nothrow_default_constructible<_Tp>::value) 29761: : _M_stream(0), _M_value(), _M_ok(false) {} 29761: 29761: 29761: istream_iterator(istream_type& __s) 29761: : _M_stream(std::__addressof(__s)), _M_ok(true) 29761: { _M_read(); } 29761: 29761: constexpr 29761: istream_iterator(const istream_iterator& __obj) 29761: noexcept(is_nothrow_copy_constructible<_Tp>::value) 29761: : _M_stream(__obj._M_stream), _M_value(__obj._M_value), 29761: _M_ok(__obj._M_ok) 29761: { } 29761: # 98 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: istream_iterator& operator=(const istream_iterator&) = default; 29761: ~istream_iterator() = default; 29761: 29761: 29761: [[__nodiscard__]] 29761: const _Tp& 29761: operator*() const noexcept 29761: { 29761: 29761: 29761: ; 29761: return _M_value; 29761: } 29761: 29761: [[__nodiscard__]] 29761: const _Tp* 29761: operator->() const noexcept 29761: { return std::__addressof((operator*())); } 29761: 29761: istream_iterator& 29761: operator++() 29761: { 29761: 29761: 29761: ; 29761: _M_read(); 29761: return *this; 29761: } 29761: 29761: istream_iterator 29761: operator++(int) 29761: { 29761: 29761: 29761: ; 29761: istream_iterator __tmp = *this; 29761: _M_read(); 29761: return __tmp; 29761: } 29761: 29761: private: 29761: bool 29761: _M_equal(const istream_iterator& __x) const noexcept 29761: { 29761: 29761: 29761: return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); 29761: } 29761: 29761: void 29761: _M_read() 29761: { 29761: if (_M_stream && !(*_M_stream >> _M_value)) 29761: { 29761: _M_stream = 0; 29761: _M_ok = false; 29761: } 29761: } 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator==(const istream_iterator& __x, const istream_iterator& __y) 29761: noexcept 29761: { return __x._M_equal(__y); } 29761: 29761: 29761: 29761: 29761: [[__nodiscard__]] 29761: friend bool 29761: operator!=(const istream_iterator& __x, const istream_iterator& __y) 29761: noexcept 29761: { return !__x._M_equal(__y); } 29761: # 181 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: }; 29761: # 194 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: template > 29761: class ostream_iterator 29761: : public iterator 29761: { 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef basic_ostream<_CharT, _Traits> ostream_type; 29761: 29761: 29761: private: 29761: ostream_type* _M_stream; 29761: const _CharT* _M_string; 29761: 29761: public: 29761: 29761: ostream_iterator(ostream_type& __s) noexcept 29761: : _M_stream(std::__addressof(__s)), _M_string(0) {} 29761: # 229 "/usr/include/c++/14/bits/stream_iterator.h" 3 29761: ostream_iterator(ostream_type& __s, const _CharT* __c) noexcept 29761: : _M_stream(std::__addressof(__s)), _M_string(__c) { } 29761: 29761: 29761: ostream_iterator(const ostream_iterator& __obj) noexcept 29761: : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } 29761: 29761: 29761: ostream_iterator& operator=(const ostream_iterator&) = default; 29761: 29761: 29761: 29761: 29761: ostream_iterator& 29761: operator=(const _Tp& __value) 29761: { 29761: 29761: 29761: ; 29761: *_M_stream << __value; 29761: if (_M_string) 29761: *_M_stream << _M_string; 29761: return *this; 29761: } 29761: 29761: [[__nodiscard__]] 29761: ostream_iterator& 29761: operator*() noexcept 29761: { return *this; } 29761: 29761: ostream_iterator& 29761: operator++() noexcept 29761: { return *this; } 29761: 29761: ostream_iterator& 29761: operator++(int) noexcept 29761: { return *this; } 29761: }; 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: 29761: } 29761: # 66 "/usr/include/c++/14/iterator" 2 3 29761: # 78 "/usr/include/c++/14/iterator" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 79 "/usr/include/c++/14/iterator" 2 3 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: 29761: # 1 "/usr/include/c++/14/set" 1 3 29761: # 58 "/usr/include/c++/14/set" 3 29761: 29761: # 59 "/usr/include/c++/14/set" 3 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/stl_set.h" 1 3 29761: # 64 "/usr/include/c++/14/bits/stl_set.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class multiset; 29761: # 94 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template, 29761: typename _Alloc = std::allocator<_Key> > 29761: class set 29761: { 29761: # 110 "/usr/include/c++/14/bits/stl_set.h" 3 29761: static_assert(is_same::type, _Key>::value, 29761: "std::set must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: 29761: public: 29761: 29761: 29761: 29761: typedef _Key key_type; 29761: typedef _Key value_type; 29761: typedef _Compare key_compare; 29761: typedef _Compare value_compare; 29761: typedef _Alloc allocator_type; 29761: 29761: 29761: private: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Key>::other _Key_alloc_type; 29761: 29761: typedef _Rb_tree, 29761: key_compare, _Key_alloc_type> _Rep_type; 29761: _Rep_type _M_t; 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 29761: 29761: public: 29761: 29761: 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: 29761: 29761: 29761: typedef typename _Rep_type::const_iterator iterator; 29761: typedef typename _Rep_type::const_iterator const_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29761: typedef typename _Rep_type::size_type size_type; 29761: typedef typename _Rep_type::difference_type difference_type; 29761: 29761: 29761: 29761: using node_type = typename _Rep_type::node_type; 29761: using insert_return_type = typename _Rep_type::insert_return_type; 29761: # 169 "/usr/include/c++/14/bits/stl_set.h" 3 29761: set() = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: set(const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) { } 29761: # 192 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: set(_InputIterator __first, _InputIterator __last) 29761: : _M_t() 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 209 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: set(_InputIterator __first, _InputIterator __last, 29761: const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 225 "/usr/include/c++/14/bits/stl_set.h" 3 29761: set(const set&) = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: set(set&&) = default; 29761: # 245 "/usr/include/c++/14/bits/stl_set.h" 3 29761: set(initializer_list __l, 29761: const _Compare& __comp = _Compare(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29761: 29761: 29761: explicit 29761: set(const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) { } 29761: 29761: 29761: set(const set& __x, const __type_identity_t& __a) 29761: : _M_t(__x._M_t, _Key_alloc_type(__a)) { } 29761: 29761: 29761: set(set&& __x, const __type_identity_t& __a) 29761: noexcept(is_nothrow_copy_constructible<_Compare>::value 29761: && _Alloc_traits::_S_always_equal()) 29761: : _M_t(std::move(__x._M_t), _Key_alloc_type(__a)) { } 29761: 29761: 29761: set(initializer_list __l, const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } 29761: 29761: 29761: template 29761: set(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~set() = default; 29761: # 299 "/usr/include/c++/14/bits/stl_set.h" 3 29761: set& 29761: operator=(const set&) = default; 29761: 29761: 29761: set& 29761: operator=(set&&) = default; 29761: # 317 "/usr/include/c++/14/bits/stl_set.h" 3 29761: set& 29761: operator=(initializer_list __l) 29761: { 29761: _M_t._M_assign_unique(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: key_compare 29761: key_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: value_compare 29761: value_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_t.get_allocator()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: cbegin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: cend() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: crbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: crend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_t.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_t.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_t.max_size(); } 29761: # 442 "/usr/include/c++/14/bits/stl_set.h" 3 29761: void 29761: swap(set& __x) 29761: noexcept(__is_nothrow_swappable<_Compare>::value) 29761: { _M_t.swap(__x._M_t); } 29761: # 462 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: std::pair 29761: emplace(_Args&&... __args) 29761: { return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } 29761: # 488 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { 29761: return _M_t._M_emplace_hint_unique(__pos, 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 510 "/usr/include/c++/14/bits/stl_set.h" 3 29761: std::pair 29761: insert(const value_type& __x) 29761: { 29761: std::pair __p = 29761: _M_t._M_insert_unique(__x); 29761: return std::pair(__p.first, __p.second); 29761: } 29761: 29761: 29761: std::pair 29761: insert(value_type&& __x) 29761: { 29761: std::pair __p = 29761: _M_t._M_insert_unique(std::move(__x)); 29761: return std::pair(__p.first, __p.second); 29761: } 29761: # 547 "/usr/include/c++/14/bits/stl_set.h" 3 29761: iterator 29761: insert(const_iterator __position, const value_type& __x) 29761: { return _M_t._M_insert_unique_(__position, __x); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return _M_t._M_insert_unique_(__position, std::move(__x)); } 29761: # 566 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_t._M_insert_range_unique(__first, __last); } 29761: # 579 "/usr/include/c++/14/bits/stl_set.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { this->insert(__l.begin(), __l.end()); } 29761: 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_t.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __x) 29761: { return _M_t.extract(__x); } 29761: 29761: 29761: insert_return_type 29761: insert(node_type&& __nh) 29761: { return _M_t._M_reinsert_node_unique(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } 29761: 29761: template 29761: friend struct std::_Rb_tree_merge_helper; 29761: 29761: template 29761: void 29761: merge(set<_Key, _Compare1, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(set<_Key, _Compare1, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(multiset<_Key, _Compare1, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 29761: { merge(__source); } 29761: # 654 "/usr/include/c++/14/bits/stl_set.h" 3 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_t.erase(__position); } 29761: # 685 "/usr/include/c++/14/bits/stl_set.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_t.erase(__x); } 29761: # 706 "/usr/include/c++/14/bits/stl_set.h" 3 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_t.erase(__first, __last); } 29761: # 734 "/usr/include/c++/14/bits/stl_set.h" 3 29761: void 29761: clear() noexcept 29761: { _M_t.clear(); } 29761: # 749 "/usr/include/c++/14/bits/stl_set.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } 29761: 29761: 29761: template 29761: auto 29761: count(const _Kt& __x) const 29761: -> decltype(_M_t._M_count_tr(__x)) 29761: { return _M_t._M_count_tr(__x); } 29761: # 795 "/usr/include/c++/14/bits/stl_set.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_t.find(__x); } 29761: 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) 29761: -> decltype(iterator{_M_t._M_find_tr(__x)}) 29761: { return iterator{_M_t._M_find_tr(__x)}; } 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) const 29761: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 29761: { return const_iterator{_M_t._M_find_tr(__x)}; } 29761: # 830 "/usr/include/c++/14/bits/stl_set.h" 3 29761: iterator 29761: lower_bound(const key_type& __x) 29761: { return _M_t.lower_bound(__x); } 29761: 29761: const_iterator 29761: lower_bound(const key_type& __x) const 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) const 29761: -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 860 "/usr/include/c++/14/bits/stl_set.h" 3 29761: iterator 29761: upper_bound(const key_type& __x) 29761: { return _M_t.upper_bound(__x); } 29761: 29761: const_iterator 29761: upper_bound(const key_type& __x) const 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) const 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return const_iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 899 "/usr/include/c++/14/bits/stl_set.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_t.equal_range(__x); } 29761: 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) const 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator==(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator<(const set<_K1, _C1, _A1>&, const set<_K1, _C1, _A1>&); 29761: 29761: }; 29761: 29761: 29761: 29761: template::value_type>, 29761: typename _Allocator = 29761: allocator::value_type>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: set(_InputIterator, _InputIterator, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> set::value_type, 29761: _Compare, _Allocator>; 29761: 29761: template, 29761: typename _Allocator = allocator<_Key>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: set(initializer_list<_Key>, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> set<_Key, _Compare, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: set(_InputIterator, _InputIterator, _Allocator) 29761: -> set::value_type, 29761: less::value_type>, 29761: _Allocator>; 29761: 29761: template> 29761: set(initializer_list<_Key>, _Allocator) 29761: -> set<_Key, less<_Key>, _Allocator>; 29761: # 985 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: inline bool 29761: operator==(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return __x._M_t == __y._M_t; } 29761: # 1023 "/usr/include/c++/14/bits/stl_set.h" 3 29761: template 29761: inline bool 29761: operator<(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return __x._M_t < __y._M_t; } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: inline bool 29761: operator<=(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>=(const set<_Key, _Compare, _Alloc>& __x, 29761: const set<_Key, _Compare, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(set<_Key, _Compare, _Alloc>& __x, set<_Key, _Compare, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: _Rb_tree_merge_helper, _Cmp2> 29761: { 29761: private: 29761: friend class std::set<_Val, _Cmp1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 29761: { return __set._M_t; } 29761: 29761: static auto& 29761: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 29761: { return __set._M_t; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 64 "/usr/include/c++/14/set" 2 3 29761: # 1 "/usr/include/c++/14/bits/stl_multiset.h" 1 3 29761: # 64 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class set; 29761: # 95 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template , 29761: typename _Alloc = std::allocator<_Key> > 29761: class multiset 29761: { 29761: # 111 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: static_assert(is_same::type, _Key>::value, 29761: "std::multiset must have a non-const, non-volatile value_type"); 29761: 29761: 29761: 29761: 29761: 29761: 29761: public: 29761: 29761: typedef _Key key_type; 29761: typedef _Key value_type; 29761: typedef _Compare key_compare; 29761: typedef _Compare value_compare; 29761: typedef _Alloc allocator_type; 29761: 29761: private: 29761: 29761: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template 29761: rebind<_Key>::other _Key_alloc_type; 29761: 29761: typedef _Rb_tree, 29761: key_compare, _Key_alloc_type> _Rep_type; 29761: 29761: _Rep_type _M_t; 29761: 29761: typedef __gnu_cxx::__alloc_traits<_Key_alloc_type> _Alloc_traits; 29761: 29761: public: 29761: typedef typename _Alloc_traits::pointer pointer; 29761: typedef typename _Alloc_traits::const_pointer const_pointer; 29761: typedef typename _Alloc_traits::reference reference; 29761: typedef typename _Alloc_traits::const_reference const_reference; 29761: 29761: 29761: 29761: typedef typename _Rep_type::const_iterator iterator; 29761: typedef typename _Rep_type::const_iterator const_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator reverse_iterator; 29761: typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; 29761: typedef typename _Rep_type::size_type size_type; 29761: typedef typename _Rep_type::difference_type difference_type; 29761: 29761: 29761: using node_type = typename _Rep_type::node_type; 29761: # 165 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset() = default; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: multiset(const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) { } 29761: # 187 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: multiset(_InputIterator __first, _InputIterator __last) 29761: : _M_t() 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 203 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: multiset(_InputIterator __first, _InputIterator __last, 29761: const _Compare& __comp, 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 219 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset(const multiset&) = default; 29761: # 228 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset(multiset&&) = default; 29761: # 240 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset(initializer_list __l, 29761: const _Compare& __comp = _Compare(), 29761: const allocator_type& __a = allocator_type()) 29761: : _M_t(__comp, _Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29761: 29761: 29761: explicit 29761: multiset(const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) { } 29761: 29761: 29761: multiset(const multiset& __m, 29761: const __type_identity_t& __a) 29761: : _M_t(__m._M_t, _Key_alloc_type(__a)) { } 29761: 29761: 29761: multiset(multiset&& __m, const __type_identity_t& __a) 29761: noexcept(is_nothrow_copy_constructible<_Compare>::value 29761: && _Alloc_traits::_S_always_equal()) 29761: : _M_t(std::move(__m._M_t), _Key_alloc_type(__a)) { } 29761: 29761: 29761: multiset(initializer_list __l, const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } 29761: 29761: 29761: template 29761: multiset(_InputIterator __first, _InputIterator __last, 29761: const allocator_type& __a) 29761: : _M_t(_Key_alloc_type(__a)) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~multiset() = default; 29761: # 295 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset& 29761: operator=(const multiset&) = default; 29761: 29761: 29761: multiset& 29761: operator=(multiset&&) = default; 29761: # 313 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: multiset& 29761: operator=(initializer_list __l) 29761: { 29761: _M_t._M_assign_equal(__l.begin(), __l.end()); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: key_compare 29761: key_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: value_compare 29761: value_comp() const 29761: { return _M_t.key_comp(); } 29761: 29761: allocator_type 29761: get_allocator() const noexcept 29761: { return allocator_type(_M_t.get_allocator()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: begin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: end() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: rend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: cbegin() const noexcept 29761: { return _M_t.begin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: iterator 29761: cend() const noexcept 29761: { return _M_t.end(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: crbegin() const noexcept 29761: { return _M_t.rbegin(); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: reverse_iterator 29761: crend() const noexcept 29761: { return _M_t.rend(); } 29761: 29761: 29761: 29761: [[__nodiscard__]] bool 29761: empty() const noexcept 29761: { return _M_t.empty(); } 29761: 29761: 29761: size_type 29761: size() const noexcept 29761: { return _M_t.size(); } 29761: 29761: 29761: size_type 29761: max_size() const noexcept 29761: { return _M_t.max_size(); } 29761: # 438 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: void 29761: swap(multiset& __x) 29761: noexcept(__is_nothrow_swappable<_Compare>::value) 29761: { _M_t.swap(__x._M_t); } 29761: # 457 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: iterator 29761: emplace(_Args&&... __args) 29761: { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } 29761: # 483 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: iterator 29761: emplace_hint(const_iterator __pos, _Args&&... __args) 29761: { 29761: return _M_t._M_emplace_hint_equal(__pos, 29761: std::forward<_Args>(__args)...); 29761: } 29761: # 503 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: iterator 29761: insert(const value_type& __x) 29761: { return _M_t._M_insert_equal(__x); } 29761: 29761: 29761: iterator 29761: insert(value_type&& __x) 29761: { return _M_t._M_insert_equal(std::move(__x)); } 29761: # 533 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: iterator 29761: insert(const_iterator __position, const value_type& __x) 29761: { return _M_t._M_insert_equal_(__position, __x); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __position, value_type&& __x) 29761: { return _M_t._M_insert_equal_(__position, std::move(__x)); } 29761: # 551 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: void 29761: insert(_InputIterator __first, _InputIterator __last) 29761: { _M_t._M_insert_range_equal(__first, __last); } 29761: # 564 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: void 29761: insert(initializer_list __l) 29761: { this->insert(__l.begin(), __l.end()); } 29761: 29761: 29761: 29761: 29761: node_type 29761: extract(const_iterator __pos) 29761: { 29761: do { if (std::__is_constant_evaluated() && !bool(__pos != end())) std::__glibcxx_assert_fail(); } while (false); 29761: return _M_t.extract(__pos); 29761: } 29761: 29761: 29761: node_type 29761: extract(const key_type& __x) 29761: { return _M_t.extract(__x); } 29761: 29761: 29761: iterator 29761: insert(node_type&& __nh) 29761: { return _M_t._M_reinsert_node_equal(std::move(__nh)); } 29761: 29761: 29761: iterator 29761: insert(const_iterator __hint, node_type&& __nh) 29761: { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } 29761: 29761: template 29761: friend struct std::_Rb_tree_merge_helper; 29761: 29761: template 29761: void 29761: merge(multiset<_Key, _Compare1, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(multiset<_Key, _Compare1, _Alloc>&& __source) 29761: { merge(__source); } 29761: 29761: template 29761: void 29761: merge(set<_Key, _Compare1, _Alloc>& __source) 29761: { 29761: using _Merge_helper = _Rb_tree_merge_helper; 29761: _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); 29761: } 29761: 29761: template 29761: void 29761: merge(set<_Key, _Compare1, _Alloc>&& __source) 29761: { merge(__source); } 29761: # 639 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __position) 29761: { return _M_t.erase(__position); } 29761: # 670 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: size_type 29761: erase(const key_type& __x) 29761: { return _M_t.erase(__x); } 29761: # 691 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: __attribute ((__abi_tag__ ("cxx11"))) 29761: iterator 29761: erase(const_iterator __first, const_iterator __last) 29761: { return _M_t.erase(__first, __last); } 29761: # 719 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: void 29761: clear() noexcept 29761: { _M_t.clear(); } 29761: # 731 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: size_type 29761: count(const key_type& __x) const 29761: { return _M_t.count(__x); } 29761: 29761: 29761: template 29761: auto 29761: count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) 29761: { return _M_t._M_count_tr(__x); } 29761: # 776 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: iterator 29761: find(const key_type& __x) 29761: { return _M_t.find(__x); } 29761: 29761: const_iterator 29761: find(const key_type& __x) const 29761: { return _M_t.find(__x); } 29761: 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) 29761: -> decltype(iterator{_M_t._M_find_tr(__x)}) 29761: { return iterator{_M_t._M_find_tr(__x)}; } 29761: 29761: template 29761: auto 29761: find(const _Kt& __x) const 29761: -> decltype(const_iterator{_M_t._M_find_tr(__x)}) 29761: { return const_iterator{_M_t._M_find_tr(__x)}; } 29761: # 811 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: iterator 29761: lower_bound(const key_type& __x) 29761: { return _M_t.lower_bound(__x); } 29761: 29761: const_iterator 29761: lower_bound(const key_type& __x) const 29761: { return _M_t.lower_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29761: 29761: template 29761: auto 29761: lower_bound(const _Kt& __x) const 29761: -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) 29761: { return iterator(_M_t._M_lower_bound_tr(__x)); } 29761: # 841 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: iterator 29761: upper_bound(const key_type& __x) 29761: { return _M_t.upper_bound(__x); } 29761: 29761: const_iterator 29761: upper_bound(const key_type& __x) const 29761: { return _M_t.upper_bound(__x); } 29761: 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29761: 29761: template 29761: auto 29761: upper_bound(const _Kt& __x) const 29761: -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) 29761: { return iterator(_M_t._M_upper_bound_tr(__x)); } 29761: # 880 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: std::pair 29761: equal_range(const key_type& __x) 29761: { return _M_t.equal_range(__x); } 29761: 29761: std::pair 29761: equal_range(const key_type& __x) const 29761: { return _M_t.equal_range(__x); } 29761: 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: 29761: template 29761: auto 29761: equal_range(const _Kt& __x) const 29761: -> decltype(pair(_M_t._M_equal_range_tr(__x))) 29761: { return pair(_M_t._M_equal_range_tr(__x)); } 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator==(const multiset<_K1, _C1, _A1>&, 29761: const multiset<_K1, _C1, _A1>&); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: friend bool 29761: operator< (const multiset<_K1, _C1, _A1>&, 29761: const multiset<_K1, _C1, _A1>&); 29761: 29761: }; 29761: 29761: 29761: 29761: template::value_type>, 29761: typename _Allocator = 29761: allocator::value_type>, 29761: typename = _RequireInputIter<_InputIterator>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: multiset(_InputIterator, _InputIterator, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> multiset::value_type, 29761: _Compare, _Allocator>; 29761: 29761: template, 29761: typename _Allocator = allocator<_Key>, 29761: typename = _RequireNotAllocator<_Compare>, 29761: typename = _RequireAllocator<_Allocator>> 29761: multiset(initializer_list<_Key>, 29761: _Compare = _Compare(), _Allocator = _Allocator()) 29761: -> multiset<_Key, _Compare, _Allocator>; 29761: 29761: template, 29761: typename = _RequireAllocator<_Allocator>> 29761: multiset(_InputIterator, _InputIterator, _Allocator) 29761: -> multiset::value_type, 29761: less::value_type>, 29761: _Allocator>; 29761: 29761: template> 29761: multiset(initializer_list<_Key>, _Allocator) 29761: -> multiset<_Key, less<_Key>, _Allocator>; 29761: # 971 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: inline bool 29761: operator==(const multiset<_Key, _Compare, _Alloc>& __x, 29761: const multiset<_Key, _Compare, _Alloc>& __y) 29761: { return __x._M_t == __y._M_t; } 29761: # 1009 "/usr/include/c++/14/bits/stl_multiset.h" 3 29761: template 29761: inline bool 29761: operator<(const multiset<_Key, _Compare, _Alloc>& __x, 29761: const multiset<_Key, _Compare, _Alloc>& __y) 29761: { return __x._M_t < __y._M_t; } 29761: 29761: 29761: template 29761: inline bool 29761: operator!=(const multiset<_Key, _Compare, _Alloc>& __x, 29761: const multiset<_Key, _Compare, _Alloc>& __y) 29761: { return !(__x == __y); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>(const multiset<_Key,_Compare,_Alloc>& __x, 29761: const multiset<_Key,_Compare,_Alloc>& __y) 29761: { return __y < __x; } 29761: 29761: 29761: template 29761: inline bool 29761: operator<=(const multiset<_Key, _Compare, _Alloc>& __x, 29761: const multiset<_Key, _Compare, _Alloc>& __y) 29761: { return !(__y < __x); } 29761: 29761: 29761: template 29761: inline bool 29761: operator>=(const multiset<_Key, _Compare, _Alloc>& __x, 29761: const multiset<_Key, _Compare, _Alloc>& __y) 29761: { return !(__x < __y); } 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(multiset<_Key, _Compare, _Alloc>& __x, 29761: multiset<_Key, _Compare, _Alloc>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct 29761: _Rb_tree_merge_helper, 29761: _Cmp2> 29761: { 29761: private: 29761: friend class std::multiset<_Val, _Cmp1, _Alloc>; 29761: 29761: static auto& 29761: _S_get_tree(std::set<_Val, _Cmp2, _Alloc>& __set) 29761: { return __set._M_t; } 29761: 29761: static auto& 29761: _S_get_tree(std::multiset<_Val, _Cmp2, _Alloc>& __set) 29761: { return __set._M_t; } 29761: }; 29761: 29761: 29761: 29761: } 29761: # 65 "/usr/include/c++/14/set" 2 3 29761: # 77 "/usr/include/c++/14/set" 3 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 78 "/usr/include/c++/14/set" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace pmr 29761: { 29761: template> 29761: using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>; 29761: template> 29761: using multiset = std::multiset<_Key, _Cmp, polymorphic_allocator<_Key>>; 29761: } 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iteration_stats.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/db/compaction/compaction_iteration_stats.h" 29761: namespace rocksdb { 29761: 29761: struct CompactionIterationStats { 29761: 29761: 29761: 29761: 29761: int64_t num_record_drop_user = 0; 29761: 29761: int64_t num_record_drop_hidden = 0; 29761: int64_t num_record_drop_obsolete = 0; 29761: int64_t num_record_drop_range_del = 0; 29761: int64_t num_range_del_drop_obsolete = 0; 29761: 29761: int64_t num_optimized_del_drop_obsolete = 0; 29761: uint64_t total_filter_time = 0; 29761: 29761: 29761: 29761: 29761: uint64_t num_input_records = 0; 29761: uint64_t num_input_deletion_records = 0; 29761: uint64_t num_input_corrupt_records = 0; 29761: uint64_t total_input_raw_key_bytes = 0; 29761: uint64_t total_input_raw_value_bytes = 0; 29761: 29761: 29761: uint64_t num_single_del_fallthru = 0; 29761: uint64_t num_single_del_mismatch = 0; 29761: 29761: 29761: uint64_t num_blobs_read = 0; 29761: uint64_t total_blob_bytes_read = 0; 29761: uint64_t num_blobs_relocated = 0; 29761: uint64_t total_blob_bytes_relocated = 0; 29761: 29761: 29761: 29761: uint64_t num_input_timed_put_records = 0; 29761: 29761: 29761: uint64_t num_timed_put_swap_preferred_seqno = 0; 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/readahead_file_info.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct ReadaheadFileInfo { 29761: struct ReadaheadInfo { 29761: size_t readahead_size = 0; 29761: int64_t num_file_reads = 0; 29761: }; 29761: 29761: 29761: ReadaheadInfo data_block_readahead_info; 29761: 29761: 29761: ReadaheadInfo index_block_readahead_info; 29761: }; 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/sstream" 1 3 29761: # 36 "/usr/include/c++/14/sstream" 3 29761: 29761: # 37 "/usr/include/c++/14/sstream" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/istream" 1 3 29761: # 36 "/usr/include/c++/14/istream" 3 29761: 29761: # 37 "/usr/include/c++/14/istream" 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 43 "/usr/include/c++/14/istream" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: # 59 "/usr/include/c++/14/istream" 3 29761: template 29761: class basic_istream : virtual public basic_ios<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef typename _Traits::pos_type pos_type; 29761: typedef typename _Traits::off_type off_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29761: typedef basic_ios<_CharT, _Traits> __ios_type; 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > 29761: __num_get_type; 29761: typedef ctype<_CharT> __ctype_type; 29761: 29761: protected: 29761: 29761: 29761: 29761: 29761: 29761: streamsize _M_gcount; 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_istream(__streambuf_type* __sb) 29761: : _M_gcount(streamsize(0)) 29761: { this->init(__sb); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual 29761: ~basic_istream() 29761: { _M_gcount = streamsize(0); } 29761: 29761: 29761: class sentry; 29761: friend class sentry; 29761: # 121 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: operator>>(__istream_type& (*__pf)(__istream_type&)) 29761: { return __pf(*this); } 29761: 29761: __istream_type& 29761: operator>>(__ios_type& (*__pf)(__ios_type&)) 29761: { 29761: __pf(*this); 29761: return *this; 29761: } 29761: 29761: __istream_type& 29761: operator>>(ios_base& (*__pf)(ios_base&)) 29761: { 29761: __pf(*this); 29761: return *this; 29761: } 29761: # 169 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: operator>>(bool& __n) 29761: { return _M_extract(__n); } 29761: 29761: __istream_type& 29761: operator>>(short& __n); 29761: 29761: __istream_type& 29761: operator>>(unsigned short& __n) 29761: { return _M_extract(__n); } 29761: 29761: __istream_type& 29761: operator>>(int& __n); 29761: 29761: __istream_type& 29761: operator>>(unsigned int& __n) 29761: { return _M_extract(__n); } 29761: 29761: __istream_type& 29761: operator>>(long& __n) 29761: { return _M_extract(__n); } 29761: 29761: __istream_type& 29761: operator>>(unsigned long& __n) 29761: { return _M_extract(__n); } 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: __istream_type& 29761: operator>>(long long& __n) 29761: { return _M_extract(__n); } 29761: 29761: __istream_type& 29761: operator>>(unsigned long long& __n) 29761: { return _M_extract(__n); } 29761: #pragma GCC diagnostic pop 29761: # 218 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: operator>>(float& __f) 29761: { return _M_extract(__f); } 29761: 29761: __istream_type& 29761: operator>>(double& __f) 29761: { return _M_extract(__f); } 29761: 29761: __istream_type& 29761: operator>>(long double& __f) 29761: { return _M_extract(__f); } 29761: # 327 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: operator>>(void*& __p) 29761: { return _M_extract(__p); } 29761: # 351 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: operator>>(__streambuf_type* __sb); 29761: # 361 "/usr/include/c++/14/istream" 3 29761: streamsize 29761: gcount() const 29761: { return _M_gcount; } 29761: # 394 "/usr/include/c++/14/istream" 3 29761: int_type 29761: get(); 29761: # 408 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: get(char_type& __c); 29761: # 435 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: get(char_type* __s, streamsize __n, char_type __delim); 29761: # 446 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: get(char_type* __s, streamsize __n) 29761: { return this->get(__s, __n, this->widen('\n')); } 29761: # 469 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: get(__streambuf_type& __sb, char_type __delim); 29761: # 479 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: get(__streambuf_type& __sb) 29761: { return this->get(__sb, this->widen('\n')); } 29761: # 508 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: getline(char_type* __s, streamsize __n, char_type __delim); 29761: # 519 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: getline(char_type* __s, streamsize __n) 29761: { return this->getline(__s, __n, this->widen('\n')); } 29761: # 543 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: ignore(streamsize __n, int_type __delim); 29761: 29761: __istream_type& 29761: ignore(streamsize __n); 29761: 29761: __istream_type& 29761: ignore(); 29761: # 560 "/usr/include/c++/14/istream" 3 29761: int_type 29761: peek(); 29761: # 578 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: read(char_type* __s, streamsize __n); 29761: # 597 "/usr/include/c++/14/istream" 3 29761: streamsize 29761: readsome(char_type* __s, streamsize __n); 29761: # 614 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: putback(char_type __c); 29761: # 630 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: unget(); 29761: # 648 "/usr/include/c++/14/istream" 3 29761: int 29761: sync(); 29761: # 663 "/usr/include/c++/14/istream" 3 29761: pos_type 29761: tellg(); 29761: # 678 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: seekg(pos_type); 29761: # 694 "/usr/include/c++/14/istream" 3 29761: __istream_type& 29761: seekg(off_type, ios_base::seekdir); 29761: 29761: 29761: protected: 29761: basic_istream() 29761: : _M_gcount(streamsize(0)) 29761: { this->init(0); } 29761: 29761: 29761: basic_istream(const basic_istream&) = delete; 29761: 29761: basic_istream(basic_istream&& __rhs) 29761: : __ios_type(), _M_gcount(__rhs._M_gcount) 29761: { 29761: __ios_type::move(__rhs); 29761: __rhs._M_gcount = 0; 29761: } 29761: 29761: 29761: 29761: basic_istream& operator=(const basic_istream&) = delete; 29761: 29761: basic_istream& 29761: operator=(basic_istream&& __rhs) 29761: { 29761: swap(__rhs); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_istream& __rhs) 29761: { 29761: __ios_type::swap(__rhs); 29761: std::swap(_M_gcount, __rhs._M_gcount); 29761: } 29761: 29761: 29761: template 29761: __istream_type& 29761: _M_extract(_ValueT& __v); 29761: }; 29761: 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: getline(char_type* __s, streamsize __n, char_type __delim); 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: ignore(streamsize __n); 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: ignore(streamsize __n, int_type __delim); 29761: 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: getline(char_type* __s, streamsize __n, char_type __delim); 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: ignore(streamsize __n); 29761: 29761: template<> 29761: basic_istream& 29761: basic_istream:: 29761: ignore(streamsize __n, int_type __delim); 29761: # 778 "/usr/include/c++/14/istream" 3 29761: template 29761: class basic_istream<_CharT, _Traits>::sentry 29761: { 29761: 29761: bool _M_ok; 29761: 29761: public: 29761: 29761: typedef _Traits traits_type; 29761: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef typename __istream_type::__ctype_type __ctype_type; 29761: typedef typename _Traits::int_type __int_type; 29761: # 814 "/usr/include/c++/14/istream" 3 29761: explicit 29761: sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); 29761: # 825 "/usr/include/c++/14/istream" 3 29761: explicit 29761: 29761: operator bool() const 29761: { return _M_ok; } 29761: }; 29761: # 843 "/usr/include/c++/14/istream" 3 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); 29761: 29761: template 29761: inline basic_istream& 29761: operator>>(basic_istream& __in, unsigned char& __c) 29761: { return (__in >> reinterpret_cast(__c)); } 29761: 29761: template 29761: inline basic_istream& 29761: operator>>(basic_istream& __in, signed char& __c) 29761: { return (__in >> reinterpret_cast(__c)); } 29761: 29761: 29761: 29761: template 29761: void 29761: __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize); 29761: 29761: void __istream_extract(istream&, char*, streamsize); 29761: # 893 "/usr/include/c++/14/istream" 3 29761: template 29761: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29761: inline basic_istream<_CharT, _Traits>& 29761: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) 29761: { 29761: 29761: 29761: 29761: size_t __n = __builtin_object_size(__s, 0); 29761: if (__n < sizeof(_CharT)) 29761: { 29761: 29761: do { if (std::__is_constant_evaluated() && !bool(__n >= sizeof(_CharT))) std::__glibcxx_assert_fail(); } while (false); 29761: 29761: __in.width(0); 29761: __in.setstate(ios_base::failbit); 29761: } 29761: else if (__n != (size_t)-1) 29761: { 29761: __n /= sizeof(_CharT); 29761: streamsize __w = __in.width(); 29761: std::__istream_extract(__in, __s, __n); 29761: if (__in.good() && (__w <= 0 || __n < (size_t)__w)) 29761: { 29761: 29761: 29761: const typename _Traits::int_type __c = __in.rdbuf()->sgetc(); 29761: const bool __eof = _Traits::eq_int_type(__c, _Traits::eof()); 29761: if (__builtin_expect(__eof, true)) 29761: __in.setstate(ios_base::eofbit); 29761: } 29761: } 29761: else 29761: 29761: { 29761: 29761: streamsize __n = __gnu_cxx::__numeric_traits::__max; 29761: __n /= sizeof(_CharT); 29761: std::__istream_extract(__in, __s, __n); 29761: } 29761: return __in; 29761: } 29761: 29761: template 29761: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29761: inline basic_istream& 29761: operator>>(basic_istream& __in, unsigned char* __s) 29761: { return __in >> reinterpret_cast(__s); } 29761: 29761: template 29761: __attribute__((__nonnull__(2), __access__(__write_only__, 2))) 29761: inline basic_istream& 29761: operator>>(basic_istream& __in, signed char* __s) 29761: { return __in >> reinterpret_cast(__s); } 29761: # 982 "/usr/include/c++/14/istream" 3 29761: template 29761: class basic_iostream 29761: : public basic_istream<_CharT, _Traits>, 29761: public basic_ostream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: 29761: 29761: typedef _CharT char_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef typename _Traits::pos_type pos_type; 29761: typedef typename _Traits::off_type off_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef basic_ostream<_CharT, _Traits> __ostream_type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) 29761: : __istream_type(__sb), __ostream_type(__sb) { } 29761: 29761: 29761: 29761: 29761: virtual 29761: ~basic_iostream() { } 29761: 29761: protected: 29761: basic_iostream() 29761: : __istream_type(), __ostream_type() { } 29761: 29761: 29761: basic_iostream(const basic_iostream&) = delete; 29761: 29761: basic_iostream(basic_iostream&& __rhs) 29761: : __istream_type(std::move(__rhs)), __ostream_type(*this) 29761: { } 29761: 29761: 29761: 29761: basic_iostream& operator=(const basic_iostream&) = delete; 29761: 29761: basic_iostream& 29761: operator=(basic_iostream&& __rhs) 29761: { 29761: swap(__rhs); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_iostream& __rhs) 29761: { __istream_type::swap(__rhs); } 29761: 29761: }; 29761: # 1065 "/usr/include/c++/14/istream" 3 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: ws(basic_istream<_CharT, _Traits>& __is); 29761: # 1081 "/usr/include/c++/14/istream" 3 29761: template, 29761: typename = decltype(std::declval<_Is&>() >> std::declval<_Tp>())> 29761: using __rvalue_stream_extraction_t = _Is&&; 29761: # 1097 "/usr/include/c++/14/istream" 3 29761: template 29761: inline __rvalue_stream_extraction_t<_Istream, _Tp> 29761: operator>>(_Istream&& __is, _Tp&& __x) 29761: { 29761: __is >> std::forward<_Tp>(__x); 29761: return std::move(__is); 29761: } 29761: 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/istream.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/istream.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/istream.tcc" 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: basic_istream<_CharT, _Traits>::sentry:: 29761: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: if (__in.good()) 29761: { 29761: try 29761: { 29761: if (__in.tie()) 29761: __in.tie()->flush(); 29761: if (!__noskip && bool(__in.flags() & ios_base::skipws)) 29761: { 29761: const __int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = __in.rdbuf(); 29761: __int_type __c = __sb->sgetc(); 29761: 29761: const __ctype_type& __ct = __check_facet(__in._M_ctype); 29761: while (!traits_type::eq_int_type(__c, __eof) 29761: && __ct.is(ctype_base::space, 29761: traits_type::to_char_type(__c))) 29761: __c = __sb->snextc(); 29761: 29761: 29761: 29761: 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { __in._M_setstate(ios_base::badbit); } 29761: } 29761: 29761: if (__in.good() && __err == ios_base::goodbit) 29761: _M_ok = true; 29761: else 29761: { 29761: __err |= ios_base::failbit; 29761: __in.setstate(__err); 29761: } 29761: } 29761: 29761: template 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: _M_extract(_ValueT& __v) 29761: { 29761: sentry __cerb(*this, false); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: 29761: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29761: 29761: 29761: 29761: 29761: __ng.get(*this, 0, *this, __err, __v); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: operator>>(short& __n) 29761: { 29761: 29761: 29761: sentry __cerb(*this, false); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: long __l; 29761: 29761: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29761: 29761: 29761: 29761: 29761: __ng.get(*this, 0, *this, __err, __l); 29761: 29761: 29761: 29761: if (__l < __gnu_cxx::__numeric_traits::__min) 29761: { 29761: __err |= ios_base::failbit; 29761: __n = __gnu_cxx::__numeric_traits::__min; 29761: } 29761: else if (__l > __gnu_cxx::__numeric_traits::__max) 29761: { 29761: __err |= ios_base::failbit; 29761: __n = __gnu_cxx::__numeric_traits::__max; 29761: } 29761: else 29761: __n = short(__l); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: operator>>(int& __n) 29761: { 29761: 29761: 29761: sentry __cerb(*this, false); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: long __l; 29761: 29761: const __num_get_type& __ng = __check_facet(this->_M_num_get); 29761: 29761: 29761: 29761: 29761: __ng.get(*this, 0, *this, __err, __l); 29761: 29761: 29761: 29761: if (__l < __gnu_cxx::__numeric_traits::__min) 29761: { 29761: __err |= ios_base::failbit; 29761: __n = __gnu_cxx::__numeric_traits::__min; 29761: } 29761: else if (__l > __gnu_cxx::__numeric_traits::__max) 29761: { 29761: __err |= ios_base::failbit; 29761: __n = __gnu_cxx::__numeric_traits::__max; 29761: } 29761: else 29761: __n = int(__l); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: operator>>(__streambuf_type* __sbout) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, false); 29761: if (__cerb && __sbout) 29761: { 29761: try 29761: { 29761: bool __ineof; 29761: if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) 29761: __err |= ios_base::failbit; 29761: if (__ineof) 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::failbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::failbit); } 29761: } 29761: else if (!__sbout) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: template 29761: typename basic_istream<_CharT, _Traits>::int_type 29761: basic_istream<_CharT, _Traits>:: 29761: get(void) 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: int_type __c = __eof; 29761: _M_gcount = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: __c = this->rdbuf()->sbumpc(); 29761: 29761: if (!traits_type::eq_int_type(__c, __eof)) 29761: _M_gcount = 1; 29761: else 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: if (!_M_gcount) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return __c; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: get(char_type& __c) 29761: { 29761: _M_gcount = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: const int_type __cb = this->rdbuf()->sbumpc(); 29761: 29761: if (!traits_type::eq_int_type(__cb, traits_type::eof())) 29761: { 29761: _M_gcount = 1; 29761: __c = traits_type::to_char_type(__cb); 29761: } 29761: else 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: if (!_M_gcount) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: get(char_type* __s, streamsize __n, char_type __delim) 29761: { 29761: _M_gcount = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: const int_type __idelim = traits_type::to_int_type(__delim); 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: int_type __c = __sb->sgetc(); 29761: 29761: while (_M_gcount + 1 < __n 29761: && !traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __idelim)) 29761: { 29761: *__s++ = traits_type::to_char_type(__c); 29761: ++_M_gcount; 29761: __c = __sb->snextc(); 29761: } 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: 29761: 29761: if (__n > 0) 29761: *__s = char_type(); 29761: if (!_M_gcount) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: get(__streambuf_type& __sb, char_type __delim) 29761: { 29761: _M_gcount = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: const int_type __idelim = traits_type::to_int_type(__delim); 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __this_sb = this->rdbuf(); 29761: int_type __c = __this_sb->sgetc(); 29761: char_type __c2 = traits_type::to_char_type(__c); 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: unsigned long long __gcount = 0; 29761: #pragma GCC diagnostic pop 29761: 29761: while (!traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __idelim) 29761: && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) 29761: { 29761: ++__gcount; 29761: __c = __this_sb->snextc(); 29761: __c2 = traits_type::to_char_type(__c); 29761: } 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: 29761: 29761: if (__gcount <= __gnu_cxx::__numeric_traits::__max) 29761: _M_gcount = __gcount; 29761: else 29761: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: if (!_M_gcount) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: getline(char_type* __s, streamsize __n, char_type __delim) 29761: { 29761: _M_gcount = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: const int_type __idelim = traits_type::to_int_type(__delim); 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: int_type __c = __sb->sgetc(); 29761: 29761: while (_M_gcount + 1 < __n 29761: && !traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __idelim)) 29761: { 29761: *__s++ = traits_type::to_char_type(__c); 29761: __c = __sb->snextc(); 29761: ++_M_gcount; 29761: } 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: else 29761: { 29761: if (traits_type::eq_int_type(__c, __idelim)) 29761: { 29761: __sb->sbumpc(); 29761: ++_M_gcount; 29761: } 29761: else 29761: __err |= ios_base::failbit; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: 29761: 29761: if (__n > 0) 29761: *__s = char_type(); 29761: if (!_M_gcount) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: this->setstate(__err); 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: ignore(void) 29761: { 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: 29761: if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) 29761: __err |= ios_base::eofbit; 29761: else 29761: _M_gcount = 1; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: ignore(streamsize __n) 29761: { 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb && __n > 0) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: int_type __c = __sb->sgetc(); 29761: # 548 "/usr/include/c++/14/bits/istream.tcc" 3 29761: bool __large_ignore = false; 29761: while (true) 29761: { 29761: while (_M_gcount < __n 29761: && !traits_type::eq_int_type(__c, __eof)) 29761: { 29761: ++_M_gcount; 29761: __c = __sb->snextc(); 29761: } 29761: if (__n == __gnu_cxx::__numeric_traits::__max 29761: && !traits_type::eq_int_type(__c, __eof)) 29761: { 29761: _M_gcount = 29761: __gnu_cxx::__numeric_traits::__min; 29761: __large_ignore = true; 29761: } 29761: else 29761: break; 29761: } 29761: 29761: if (__n == __gnu_cxx::__numeric_traits::__max) 29761: { 29761: if (__large_ignore) 29761: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29761: 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: } 29761: else if (_M_gcount < __n) 29761: { 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: ignore(streamsize __n, int_type __delim) 29761: { 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb && __n > 0) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: int_type __c = __sb->sgetc(); 29761: 29761: 29761: bool __large_ignore = false; 29761: while (true) 29761: { 29761: while (_M_gcount < __n 29761: && !traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __delim)) 29761: { 29761: ++_M_gcount; 29761: __c = __sb->snextc(); 29761: } 29761: if (__n == __gnu_cxx::__numeric_traits::__max 29761: && !traits_type::eq_int_type(__c, __eof) 29761: && !traits_type::eq_int_type(__c, __delim)) 29761: { 29761: _M_gcount = 29761: __gnu_cxx::__numeric_traits::__min; 29761: __large_ignore = true; 29761: } 29761: else 29761: break; 29761: } 29761: 29761: if (__n == __gnu_cxx::__numeric_traits::__max) 29761: { 29761: if (__large_ignore) 29761: _M_gcount = __gnu_cxx::__numeric_traits::__max; 29761: 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: else 29761: { 29761: if (_M_gcount != __n) 29761: ++_M_gcount; 29761: __sb->sbumpc(); 29761: } 29761: } 29761: else if (_M_gcount < __n) 29761: { 29761: if (traits_type::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: else 29761: { 29761: ++_M_gcount; 29761: __sb->sbumpc(); 29761: } 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: typename basic_istream<_CharT, _Traits>::int_type 29761: basic_istream<_CharT, _Traits>:: 29761: peek(void) 29761: { 29761: int_type __c = traits_type::eof(); 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: __c = this->rdbuf()->sgetc(); 29761: if (traits_type::eq_int_type(__c, traits_type::eof())) 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return __c; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: read(char_type* __s, streamsize __n) 29761: { 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: _M_gcount = this->rdbuf()->sgetn(__s, __n); 29761: if (_M_gcount != __n) 29761: __err |= (ios_base::eofbit | ios_base::failbit); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: streamsize 29761: basic_istream<_CharT, _Traits>:: 29761: readsome(char_type* __s, streamsize __n) 29761: { 29761: _M_gcount = 0; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: 29761: const streamsize __num = this->rdbuf()->in_avail(); 29761: if (__num > 0) 29761: _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); 29761: else if (__num == -1) 29761: __err |= ios_base::eofbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return _M_gcount; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: putback(char_type __c) 29761: { 29761: 29761: 29761: _M_gcount = 0; 29761: 29761: this->clear(this->rdstate() & ~ios_base::eofbit); 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: if (!__sb 29761: || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) 29761: __err |= ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: unget(void) 29761: { 29761: 29761: 29761: _M_gcount = 0; 29761: 29761: this->clear(this->rdstate() & ~ios_base::eofbit); 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const int_type __eof = traits_type::eof(); 29761: __streambuf_type* __sb = this->rdbuf(); 29761: if (!__sb 29761: || traits_type::eq_int_type(__sb->sungetc(), __eof)) 29761: __err |= ios_base::badbit; 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: int 29761: basic_istream<_CharT, _Traits>:: 29761: sync(void) 29761: { 29761: 29761: 29761: int __ret = -1; 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: __streambuf_type* __sb = this->rdbuf(); 29761: if (__sb) 29761: { 29761: if (__sb->pubsync() == -1) 29761: __err |= ios_base::badbit; 29761: else 29761: __ret = 0; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_istream<_CharT, _Traits>::pos_type 29761: basic_istream<_CharT, _Traits>:: 29761: tellg(void) 29761: { 29761: 29761: 29761: pos_type __ret = pos_type(-1); 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: if (!this->fail()) 29761: __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, 29761: ios_base::in); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: seekg(pos_type __pos) 29761: { 29761: 29761: 29761: 29761: this->clear(this->rdstate() & ~ios_base::eofbit); 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: if (!this->fail()) 29761: { 29761: 29761: const pos_type __p = this->rdbuf()->pubseekpos(__pos, 29761: ios_base::in); 29761: 29761: 29761: if (__p == pos_type(off_type(-1))) 29761: __err |= ios_base::failbit; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: basic_istream<_CharT, _Traits>:: 29761: seekg(off_type __off, ios_base::seekdir __dir) 29761: { 29761: 29761: 29761: 29761: this->clear(this->rdstate() & ~ios_base::eofbit); 29761: sentry __cerb(*this, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: if (!this->fail()) 29761: { 29761: 29761: const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, 29761: ios_base::in); 29761: 29761: 29761: if (__p == pos_type(off_type(-1))) 29761: __err |= ios_base::failbit; 29761: } 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: this->_M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { this->_M_setstate(ios_base::badbit); } 29761: if (__err) 29761: this->setstate(__err); 29761: } 29761: return *this; 29761: } 29761: 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) 29761: { 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef typename __istream_type::int_type __int_type; 29761: 29761: typename __istream_type::sentry __cerb(__in, false); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const __int_type __cb = __in.rdbuf()->sbumpc(); 29761: if (!_Traits::eq_int_type(__cb, _Traits::eof())) 29761: __c = _Traits::to_char_type(__cb); 29761: else 29761: __err |= (ios_base::eofbit | ios_base::failbit); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { __in._M_setstate(ios_base::badbit); } 29761: if (__err) 29761: __in.setstate(__err); 29761: } 29761: return __in; 29761: } 29761: 29761: template 29761: void 29761: __istream_extract(basic_istream<_CharT, _Traits>& __in, _CharT* __s, 29761: streamsize __num) 29761: { 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29761: typedef typename _Traits::int_type int_type; 29761: typedef _CharT char_type; 29761: typedef ctype<_CharT> __ctype_type; 29761: 29761: streamsize __extracted = 0; 29761: ios_base::iostate __err = ios_base::goodbit; 29761: typename __istream_type::sentry __cerb(__in, false); 29761: if (__cerb) 29761: { 29761: try 29761: { 29761: 29761: streamsize __width = __in.width(); 29761: if (0 < __width && __width < __num) 29761: __num = __width; 29761: 29761: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29761: 29761: const int_type __eof = _Traits::eof(); 29761: __streambuf_type* __sb = __in.rdbuf(); 29761: int_type __c = __sb->sgetc(); 29761: 29761: while (__extracted < __num - 1 29761: && !_Traits::eq_int_type(__c, __eof) 29761: && !__ct.is(ctype_base::space, 29761: _Traits::to_char_type(__c))) 29761: { 29761: *__s++ = _Traits::to_char_type(__c); 29761: ++__extracted; 29761: __c = __sb->snextc(); 29761: } 29761: 29761: if (__extracted < __num - 1 29761: && _Traits::eq_int_type(__c, __eof)) 29761: __err |= ios_base::eofbit; 29761: 29761: 29761: 29761: *__s = char_type(); 29761: __in.width(0); 29761: } 29761: catch(__cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { __in._M_setstate(ios_base::badbit); } 29761: } 29761: if (!__extracted) 29761: __err |= ios_base::failbit; 29761: if (__err) 29761: __in.setstate(__err); 29761: } 29761: 29761: 29761: template 29761: basic_istream<_CharT, _Traits>& 29761: ws(basic_istream<_CharT, _Traits>& __in) 29761: { 29761: typedef basic_istream<_CharT, _Traits> __istream_type; 29761: typedef basic_streambuf<_CharT, _Traits> __streambuf_type; 29761: typedef typename __istream_type::int_type __int_type; 29761: typedef ctype<_CharT> __ctype_type; 29761: 29761: 29761: 29761: typename __istream_type::sentry __cerb(__in, true); 29761: if (__cerb) 29761: { 29761: ios_base::iostate __err = ios_base::goodbit; 29761: try 29761: { 29761: const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); 29761: const __int_type __eof = _Traits::eof(); 29761: __streambuf_type* __sb = __in.rdbuf(); 29761: __int_type __c = __sb->sgetc(); 29761: 29761: while (true) 29761: { 29761: if (_Traits::eq_int_type(__c, __eof)) 29761: { 29761: __err = ios_base::eofbit; 29761: break; 29761: } 29761: if (!__ct.is(ctype_base::space, _Traits::to_char_type(__c))) 29761: break; 29761: __c = __sb->snextc(); 29761: } 29761: } 29761: catch(const __cxxabiv1::__forced_unwind&) 29761: { 29761: __in._M_setstate(ios_base::badbit); 29761: throw; 29761: } 29761: catch(...) 29761: { 29761: __in._M_setstate(ios_base::badbit); 29761: } 29761: if (__err) 29761: __in.setstate(__err); 29761: } 29761: return __in; 29761: } 29761: 29761: 29761: 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wc++11-extensions" 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: extern template class basic_istream; 29761: extern template istream& ws(istream&); 29761: extern template istream& operator>>(istream&, char&); 29761: extern template istream& operator>>(istream&, unsigned char&); 29761: extern template istream& operator>>(istream&, signed char&); 29761: 29761: extern template istream& istream::_M_extract(unsigned short&); 29761: extern template istream& istream::_M_extract(unsigned int&); 29761: extern template istream& istream::_M_extract(long&); 29761: extern template istream& istream::_M_extract(unsigned long&); 29761: extern template istream& istream::_M_extract(bool&); 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wlong-long" 29761: extern template istream& istream::_M_extract(long long&); 29761: extern template istream& istream::_M_extract(unsigned long long&); 29761: #pragma GCC diagnostic pop 29761: 29761: extern template istream& istream::_M_extract(float&); 29761: extern template istream& istream::_M_extract(double&); 29761: extern template istream& istream::_M_extract(long double&); 29761: extern template istream& istream::_M_extract(void*&); 29761: 29761: extern template class basic_iostream; 29761: 29761: 29761: extern template class basic_istream; 29761: extern template wistream& ws(wistream&); 29761: extern template wistream& operator>>(wistream&, wchar_t&); 29761: extern template void __istream_extract(wistream&, wchar_t*, streamsize); 29761: 29761: extern template wistream& wistream::_M_extract(unsigned short&); 29761: extern template wistream& wistream::_M_extract(unsigned int&); 29761: extern template wistream& wistream::_M_extract(long&); 29761: extern template wistream& wistream::_M_extract(unsigned long&); 29761: extern template wistream& wistream::_M_extract(bool&); 29761: 29761: extern template wistream& wistream::_M_extract(long long&); 29761: extern template wistream& wistream::_M_extract(unsigned long long&); 29761: 29761: extern template wistream& wistream::_M_extract(float&); 29761: extern template wistream& wistream::_M_extract(double&); 29761: extern template wistream& wistream::_M_extract(long double&); 29761: extern template wistream& wistream::_M_extract(void*&); 29761: 29761: extern template class basic_iostream; 29761: 29761: #pragma GCC diagnostic pop 29761: 29761: 29761: 29761: } 29761: # 1110 "/usr/include/c++/14/istream" 2 3 29761: # 41 "/usr/include/c++/14/sstream" 2 3 29761: # 55 "/usr/include/c++/14/sstream" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: namespace __cxx11 { 29761: # 78 "/usr/include/c++/14/sstream" 3 29761: template 29761: class basic_stringbuf : public basic_streambuf<_CharT, _Traits> 29761: { 29761: struct __xfer_bufptrs; 29761: 29761: 29761: using allocator_traits = std::allocator_traits<_Alloc>; 29761: using _Noexcept_swap 29761: = __or_; 29761: 29761: 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef _Alloc allocator_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: typedef basic_streambuf __streambuf_type; 29761: typedef basic_string __string_type; 29761: typedef typename __string_type::size_type __size_type; 29761: 29761: protected: 29761: 29761: ios_base::openmode _M_mode; 29761: 29761: 29761: __string_type _M_string; 29761: 29761: public: 29761: # 121 "/usr/include/c++/14/sstream" 3 29761: basic_stringbuf() 29761: : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() 29761: { } 29761: # 132 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_stringbuf(ios_base::openmode __mode) 29761: : __streambuf_type(), _M_mode(__mode), _M_string() 29761: { } 29761: # 145 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_stringbuf(const __string_type& __str, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: : __streambuf_type(), _M_mode(), 29761: _M_string(__str.data(), __str.size(), __str.get_allocator()) 29761: { _M_stringbuf_init(__mode); } 29761: 29761: 29761: basic_stringbuf(const basic_stringbuf&) = delete; 29761: 29761: basic_stringbuf(basic_stringbuf&& __rhs) 29761: : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) 29761: { __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); } 29761: # 209 "/usr/include/c++/14/sstream" 3 29761: basic_stringbuf& 29761: operator=(const basic_stringbuf&) = delete; 29761: 29761: basic_stringbuf& 29761: operator=(basic_stringbuf&& __rhs) 29761: { 29761: __xfer_bufptrs __st{__rhs, this}; 29761: const __streambuf_type& __base = __rhs; 29761: __streambuf_type::operator=(__base); 29761: this->pubimbue(__rhs.getloc()); 29761: _M_mode = __rhs._M_mode; 29761: _M_string = std::move(__rhs._M_string); 29761: __rhs._M_sync(const_cast(__rhs._M_string.data()), 0, 0); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_stringbuf& __rhs) noexcept(_Noexcept_swap::value) 29761: { 29761: __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; 29761: __xfer_bufptrs __r_st{__rhs, this}; 29761: __streambuf_type& __base = __rhs; 29761: __streambuf_type::swap(__base); 29761: __rhs.pubimbue(this->pubimbue(__rhs.getloc())); 29761: std::swap(_M_mode, __rhs._M_mode); 29761: std::swap(_M_string, __rhs._M_string); 29761: } 29761: # 248 "/usr/include/c++/14/sstream" 3 29761: __string_type 29761: str() const 29761: { 29761: __string_type __ret(_M_string.get_allocator()); 29761: if (char_type* __hi = _M_high_mark()) 29761: __ret.assign(this->pbase(), __hi); 29761: else 29761: __ret = _M_string; 29761: return __ret; 29761: } 29761: # 304 "/usr/include/c++/14/sstream" 3 29761: void 29761: str(const __string_type& __s) 29761: { 29761: 29761: 29761: _M_string.assign(__s.data(), __s.size()); 29761: _M_stringbuf_init(_M_mode); 29761: } 29761: # 333 "/usr/include/c++/14/sstream" 3 29761: protected: 29761: 29761: void 29761: _M_stringbuf_init(ios_base::openmode __mode) 29761: { 29761: _M_mode = __mode; 29761: __size_type __len = 0; 29761: if (_M_mode & (ios_base::ate | ios_base::app)) 29761: __len = _M_string.size(); 29761: _M_sync(const_cast(_M_string.data()), 0, __len); 29761: } 29761: 29761: virtual streamsize 29761: showmanyc() 29761: { 29761: streamsize __ret = -1; 29761: if (_M_mode & ios_base::in) 29761: { 29761: _M_update_egptr(); 29761: __ret = this->egptr() - this->gptr(); 29761: } 29761: return __ret; 29761: } 29761: 29761: virtual int_type 29761: underflow(); 29761: 29761: virtual int_type 29761: pbackfail(int_type __c = traits_type::eof()); 29761: 29761: virtual int_type 29761: overflow(int_type __c = traits_type::eof()); 29761: # 377 "/usr/include/c++/14/sstream" 3 29761: virtual __streambuf_type* 29761: setbuf(char_type* __s, streamsize __n) 29761: { 29761: if (__s && __n >= 0) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: _M_string.clear(); 29761: 29761: 29761: _M_sync(__s, __n, 0); 29761: } 29761: return this; 29761: } 29761: 29761: virtual pos_type 29761: seekoff(off_type __off, ios_base::seekdir __way, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out); 29761: 29761: virtual pos_type 29761: seekpos(pos_type __sp, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out); 29761: 29761: 29761: 29761: 29761: void 29761: _M_sync(char_type* __base, __size_type __i, __size_type __o); 29761: 29761: 29761: 29761: void 29761: _M_update_egptr() 29761: { 29761: if (char_type* __pptr = this->pptr()) 29761: { 29761: char_type* __egptr = this->egptr(); 29761: if (!__egptr || __pptr > __egptr) 29761: { 29761: if (_M_mode & ios_base::in) 29761: this->setg(this->eback(), this->gptr(), __pptr); 29761: else 29761: this->setg(__pptr, __pptr, __pptr); 29761: } 29761: } 29761: } 29761: 29761: 29761: 29761: void 29761: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: __attribute__((__always_inline__)) 29761: char_type* 29761: _M_high_mark() const noexcept 29761: { 29761: if (char_type* __pptr = this->pptr()) 29761: { 29761: char_type* __egptr = this->egptr(); 29761: if (!__egptr || __pptr > __egptr) 29761: return __pptr; 29761: else 29761: return __egptr; 29761: } 29761: return 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: struct __xfer_bufptrs 29761: { 29761: __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) 29761: : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} 29761: { 29761: const _CharT* const __str = __from._M_string.data(); 29761: const _CharT* __end = nullptr; 29761: if (__from.eback()) 29761: { 29761: _M_goff[0] = __from.eback() - __str; 29761: _M_goff[1] = __from.gptr() - __str; 29761: _M_goff[2] = __from.egptr() - __str; 29761: __end = __from.egptr(); 29761: } 29761: if (__from.pbase()) 29761: { 29761: _M_poff[0] = __from.pbase() - __str; 29761: _M_poff[1] = __from.pptr() - __from.pbase(); 29761: _M_poff[2] = __from.epptr() - __str; 29761: if (!__end || __from.pptr() > __end) 29761: __end = __from.pptr(); 29761: } 29761: 29761: 29761: if (__end) 29761: { 29761: 29761: 29761: auto& __mut_from = const_cast(__from); 29761: __mut_from._M_string._M_length(__end - __str); 29761: } 29761: } 29761: 29761: ~__xfer_bufptrs() 29761: { 29761: char_type* __str = const_cast(_M_to->_M_string.data()); 29761: if (_M_goff[0] != -1) 29761: _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); 29761: if (_M_poff[0] != -1) 29761: _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); 29761: } 29761: 29761: basic_stringbuf* _M_to; 29761: off_type _M_goff[3]; 29761: off_type _M_poff[3]; 29761: }; 29761: # 513 "/usr/include/c++/14/sstream" 3 29761: basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) 29761: : __streambuf_type(static_cast(__rhs)), 29761: _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) 29761: { } 29761: # 528 "/usr/include/c++/14/sstream" 3 29761: }; 29761: # 546 "/usr/include/c++/14/sstream" 3 29761: template 29761: class basic_istringstream : public basic_istream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef _Alloc allocator_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29761: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29761: typedef basic_istream __istream_type; 29761: 29761: private: 29761: __stringbuf_type _M_stringbuf; 29761: 29761: public: 29761: # 580 "/usr/include/c++/14/sstream" 3 29761: basic_istringstream() 29761: : __istream_type(), _M_stringbuf(ios_base::in) 29761: { this->init(&_M_stringbuf); } 29761: # 596 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_istringstream(ios_base::openmode __mode) 29761: : __istream_type(), _M_stringbuf(__mode | ios_base::in) 29761: { this->init(&_M_stringbuf); } 29761: # 614 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_istringstream(const __string_type& __str, 29761: ios_base::openmode __mode = ios_base::in) 29761: : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) 29761: { this->init(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~basic_istringstream() 29761: { } 29761: 29761: 29761: basic_istringstream(const basic_istringstream&) = delete; 29761: 29761: basic_istringstream(basic_istringstream&& __rhs) 29761: : __istream_type(std::move(__rhs)), 29761: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29761: { __istream_type::set_rdbuf(&_M_stringbuf); } 29761: # 671 "/usr/include/c++/14/sstream" 3 29761: basic_istringstream& 29761: operator=(const basic_istringstream&) = delete; 29761: 29761: basic_istringstream& 29761: operator=(basic_istringstream&& __rhs) 29761: { 29761: __istream_type::operator=(std::move(__rhs)); 29761: _M_stringbuf = std::move(__rhs._M_stringbuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_istringstream& __rhs) 29761: { 29761: __istream_type::swap(__rhs); 29761: _M_stringbuf.swap(__rhs._M_stringbuf); 29761: } 29761: # 697 "/usr/include/c++/14/sstream" 3 29761: __stringbuf_type* 29761: rdbuf() const 29761: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: __string_type 29761: str() const 29761: { return _M_stringbuf.str(); } 29761: # 735 "/usr/include/c++/14/sstream" 3 29761: void 29761: str(const __string_type& __s) 29761: { _M_stringbuf.str(__s); } 29761: # 752 "/usr/include/c++/14/sstream" 3 29761: }; 29761: # 770 "/usr/include/c++/14/sstream" 3 29761: template 29761: class basic_ostringstream : public basic_ostream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef _Alloc allocator_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29761: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29761: typedef basic_ostream __ostream_type; 29761: 29761: private: 29761: __stringbuf_type _M_stringbuf; 29761: 29761: public: 29761: # 804 "/usr/include/c++/14/sstream" 3 29761: basic_ostringstream() 29761: : __ostream_type(), _M_stringbuf(ios_base::out) 29761: { this->init(&_M_stringbuf); } 29761: # 820 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_ostringstream(ios_base::openmode __mode) 29761: : __ostream_type(), _M_stringbuf(__mode | ios_base::out) 29761: { this->init(&_M_stringbuf); } 29761: # 838 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_ostringstream(const __string_type& __str, 29761: ios_base::openmode __mode = ios_base::out) 29761: : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) 29761: { this->init(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~basic_ostringstream() 29761: { } 29761: 29761: 29761: basic_ostringstream(const basic_ostringstream&) = delete; 29761: 29761: basic_ostringstream(basic_ostringstream&& __rhs) 29761: : __ostream_type(std::move(__rhs)), 29761: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29761: { __ostream_type::set_rdbuf(&_M_stringbuf); } 29761: # 895 "/usr/include/c++/14/sstream" 3 29761: basic_ostringstream& 29761: operator=(const basic_ostringstream&) = delete; 29761: 29761: basic_ostringstream& 29761: operator=(basic_ostringstream&& __rhs) 29761: { 29761: __ostream_type::operator=(std::move(__rhs)); 29761: _M_stringbuf = std::move(__rhs._M_stringbuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_ostringstream& __rhs) 29761: { 29761: __ostream_type::swap(__rhs); 29761: _M_stringbuf.swap(__rhs._M_stringbuf); 29761: } 29761: # 921 "/usr/include/c++/14/sstream" 3 29761: __stringbuf_type* 29761: rdbuf() const 29761: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: __string_type 29761: str() const 29761: { return _M_stringbuf.str(); } 29761: # 959 "/usr/include/c++/14/sstream" 3 29761: void 29761: str(const __string_type& __s) 29761: { _M_stringbuf.str(__s); } 29761: # 976 "/usr/include/c++/14/sstream" 3 29761: }; 29761: # 994 "/usr/include/c++/14/sstream" 3 29761: template 29761: class basic_stringstream : public basic_iostream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: 29761: 29761: typedef _Alloc allocator_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_string<_CharT, _Traits, _Alloc> __string_type; 29761: typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; 29761: typedef basic_iostream __iostream_type; 29761: 29761: private: 29761: __stringbuf_type _M_stringbuf; 29761: 29761: public: 29761: # 1028 "/usr/include/c++/14/sstream" 3 29761: basic_stringstream() 29761: : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) 29761: { this->init(&_M_stringbuf); } 29761: # 1042 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_stringstream(ios_base::openmode __m) 29761: : __iostream_type(), _M_stringbuf(__m) 29761: { this->init(&_M_stringbuf); } 29761: # 1058 "/usr/include/c++/14/sstream" 3 29761: explicit 29761: basic_stringstream(const __string_type& __str, 29761: ios_base::openmode __m = ios_base::out | ios_base::in) 29761: : __iostream_type(), _M_stringbuf(__str, __m) 29761: { this->init(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ~basic_stringstream() 29761: { } 29761: 29761: 29761: basic_stringstream(const basic_stringstream&) = delete; 29761: 29761: basic_stringstream(basic_stringstream&& __rhs) 29761: : __iostream_type(std::move(__rhs)), 29761: _M_stringbuf(std::move(__rhs._M_stringbuf)) 29761: { __iostream_type::set_rdbuf(&_M_stringbuf); } 29761: # 1117 "/usr/include/c++/14/sstream" 3 29761: basic_stringstream& 29761: operator=(const basic_stringstream&) = delete; 29761: 29761: basic_stringstream& 29761: operator=(basic_stringstream&& __rhs) 29761: { 29761: __iostream_type::operator=(std::move(__rhs)); 29761: _M_stringbuf = std::move(__rhs._M_stringbuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_stringstream& __rhs) 29761: { 29761: __iostream_type::swap(__rhs); 29761: _M_stringbuf.swap(__rhs._M_stringbuf); 29761: } 29761: # 1143 "/usr/include/c++/14/sstream" 3 29761: __stringbuf_type* 29761: rdbuf() const 29761: { return const_cast<__stringbuf_type*>(&_M_stringbuf); } 29761: 29761: 29761: 29761: 29761: 29761: __string_type 29761: str() const 29761: { return _M_stringbuf.str(); } 29761: # 1181 "/usr/include/c++/14/sstream" 3 29761: void 29761: str(const __string_type& __s) 29761: { _M_stringbuf.str(__s); } 29761: # 1198 "/usr/include/c++/14/sstream" 3 29761: }; 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, 29761: basic_stringbuf<_CharT, _Traits, _Allocator>& __y) 29761: noexcept(noexcept(__x.swap(__y))) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, 29761: basic_istringstream<_CharT, _Traits, _Allocator>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, 29761: basic_ostringstream<_CharT, _Traits, _Allocator>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, 29761: basic_stringstream<_CharT, _Traits, _Allocator>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: } 29761: 29761: } 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/sstream.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/sstream.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/sstream.tcc" 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: pbackfail(int_type __c) 29761: { 29761: int_type __ret = traits_type::eof(); 29761: if (this->eback() < this->gptr()) 29761: { 29761: 29761: 29761: const bool __testeof = traits_type::eq_int_type(__c, __ret); 29761: if (!__testeof) 29761: { 29761: const bool __testeq = traits_type::eq(traits_type:: 29761: to_char_type(__c), 29761: this->gptr()[-1]); 29761: const bool __testout = this->_M_mode & ios_base::out; 29761: if (__testeq || __testout) 29761: { 29761: this->gbump(-1); 29761: if (!__testeq) 29761: *this->gptr() = traits_type::to_char_type(__c); 29761: __ret = __c; 29761: } 29761: } 29761: else 29761: { 29761: this->gbump(-1); 29761: __ret = traits_type::not_eof(__c); 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: overflow(int_type __c) 29761: { 29761: const bool __testout = this->_M_mode & ios_base::out; 29761: if (__builtin_expect(!__testout, false)) 29761: return traits_type::eof(); 29761: 29761: const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); 29761: if (__builtin_expect(__testeof, false)) 29761: return traits_type::not_eof(__c); 29761: 29761: const __size_type __capacity = _M_string.capacity(); 29761: 29761: 29761: if (size_t(this->epptr() - this->pbase()) < __capacity) 29761: { 29761: 29761: char_type* __base = const_cast(_M_string.data()); 29761: _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); 29761: if (_M_mode & ios_base::in) 29761: { 29761: const __size_type __nget = this->gptr() - this->eback(); 29761: const __size_type __eget = this->egptr() - this->eback(); 29761: this->setg(__base, __base + __nget, __base + __eget + 1); 29761: } 29761: *this->pptr() = traits_type::to_char_type(__c); 29761: this->pbump(1); 29761: return __c; 29761: } 29761: 29761: 29761: const __size_type __max_size = _M_string.max_size(); 29761: const bool __testput = this->pptr() < this->epptr(); 29761: if (__builtin_expect(!__testput && __capacity == __max_size, false)) 29761: return traits_type::eof(); 29761: 29761: 29761: 29761: const char_type __conv = traits_type::to_char_type(__c); 29761: if (!__testput) 29761: { 29761: # 129 "/usr/include/c++/14/bits/sstream.tcc" 3 29761: const __size_type __opt_len = std::max(__size_type(2 * __capacity), 29761: __size_type(512)); 29761: const __size_type __len = std::min(__opt_len, __max_size); 29761: __string_type __tmp(_M_string.get_allocator()); 29761: __tmp.reserve(__len); 29761: if (this->pbase()) 29761: __tmp.assign(this->pbase(), this->epptr() - this->pbase()); 29761: __tmp.push_back(__conv); 29761: _M_string.swap(__tmp); 29761: _M_sync(const_cast(_M_string.data()), 29761: this->gptr() - this->eback(), this->pptr() - this->pbase()); 29761: } 29761: else 29761: *this->pptr() = __conv; 29761: this->pbump(1); 29761: return __c; 29761: } 29761: 29761: template 29761: typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: underflow() 29761: { 29761: int_type __ret = traits_type::eof(); 29761: const bool __testin = this->_M_mode & ios_base::in; 29761: if (__testin) 29761: { 29761: 29761: _M_update_egptr(); 29761: 29761: if (this->gptr() < this->egptr()) 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) 29761: { 29761: pos_type __ret = pos_type(off_type(-1)); 29761: bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 29761: bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 29761: const bool __testboth = __testin && __testout && __way != ios_base::cur; 29761: __testin &= !(__mode & ios_base::out); 29761: __testout &= !(__mode & ios_base::in); 29761: 29761: 29761: 29761: const char_type* __beg = __testin ? this->eback() : this->pbase(); 29761: if ((__beg || !__off) && (__testin || __testout || __testboth)) 29761: { 29761: _M_update_egptr(); 29761: 29761: off_type __newoffi = __off; 29761: off_type __newoffo = __newoffi; 29761: if (__way == ios_base::cur) 29761: { 29761: __newoffi += this->gptr() - __beg; 29761: __newoffo += this->pptr() - __beg; 29761: } 29761: else if (__way == ios_base::end) 29761: __newoffo = __newoffi += this->egptr() - __beg; 29761: 29761: if ((__testin || __testboth) 29761: && __newoffi >= 0 29761: && this->egptr() - __beg >= __newoffi) 29761: { 29761: this->setg(this->eback(), this->eback() + __newoffi, 29761: this->egptr()); 29761: __ret = pos_type(__newoffi); 29761: } 29761: if ((__testout || __testboth) 29761: && __newoffo >= 0 29761: && this->egptr() - __beg >= __newoffo) 29761: { 29761: _M_pbump(this->pbase(), this->epptr(), __newoffo); 29761: __ret = pos_type(__newoffo); 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: seekpos(pos_type __sp, ios_base::openmode __mode) 29761: { 29761: pos_type __ret = pos_type(off_type(-1)); 29761: const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; 29761: const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; 29761: 29761: const char_type* __beg = __testin ? this->eback() : this->pbase(); 29761: if ((__beg || !off_type(__sp)) && (__testin || __testout)) 29761: { 29761: _M_update_egptr(); 29761: 29761: const off_type __pos(__sp); 29761: const bool __testpos = (0 <= __pos 29761: && __pos <= this->egptr() - __beg); 29761: if (__testpos) 29761: { 29761: if (__testin) 29761: this->setg(this->eback(), this->eback() + __pos, 29761: this->egptr()); 29761: if (__testout) 29761: _M_pbump(this->pbase(), this->epptr(), __pos); 29761: __ret = __sp; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: void 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: _M_sync(char_type* __base, __size_type __i, __size_type __o) 29761: { 29761: const bool __testin = _M_mode & ios_base::in; 29761: const bool __testout = _M_mode & ios_base::out; 29761: char_type* __endg = __base + _M_string.size(); 29761: char_type* __endp = __base + _M_string.capacity(); 29761: 29761: if (__base != _M_string.data()) 29761: { 29761: 29761: __endg += __i; 29761: __i = 0; 29761: __endp = __endg; 29761: } 29761: 29761: if (__testin) 29761: this->setg(__base, __base + __i, __endg); 29761: if (__testout) 29761: { 29761: _M_pbump(__base, __endp, __o); 29761: 29761: 29761: 29761: if (!__testin) 29761: this->setg(__endg, __endg, __endg); 29761: } 29761: } 29761: 29761: template 29761: void 29761: basic_stringbuf<_CharT, _Traits, _Alloc>:: 29761: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) 29761: { 29761: this->setp(__pbeg, __pend); 29761: while (__off > __gnu_cxx::__numeric_traits::__max) 29761: { 29761: this->pbump(__gnu_cxx::__numeric_traits::__max); 29761: __off -= __gnu_cxx::__numeric_traits::__max; 29761: } 29761: this->pbump(__off); 29761: } 29761: 29761: 29761: 29761: 29761: extern template class basic_stringbuf; 29761: extern template class basic_istringstream; 29761: extern template class basic_ostringstream; 29761: extern template class basic_stringstream; 29761: 29761: 29761: extern template class basic_stringbuf; 29761: extern template class basic_istringstream; 29761: extern template class basic_ostringstream; 29761: extern template class basic_stringstream; 29761: 29761: 29761: 29761: 29761: } 29761: # 1239 "/usr/include/c++/14/sstream" 2 3 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 1 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cstdarg" 1 3 29761: # 39 "/usr/include/c++/14/cstdarg" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdarg" 3 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 2 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 1 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: namespace rocksdb { 29761: 29761: 29761: class Cache; 29761: class FilterPolicy; 29761: class FlushBlockPolicyFactory; 29761: class PersistentCache; 29761: class RandomAccessFile; 29761: struct TableReaderOptions; 29761: struct TableBuilderOptions; 29761: class TableBuilder; 29761: class TableFactory; 29761: class TableReader; 29761: class WritableFileWriter; 29761: struct ConfigOptions; 29761: struct EnvOptions; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum ChecksumType : char { 29761: kNoChecksum = 0x0, 29761: kCRC32c = 0x1, 29761: kxxHash = 0x2, 29761: kxxHash64 = 0x3, 29761: kXXH3 = 0x4, 29761: }; 29761: 29761: 29761: 29761: 29761: enum class PinningTier { 29761: 29761: 29761: 29761: 29761: kFallback, 29761: 29761: 29761: kNone, 29761: 29761: 29761: 29761: 29761: 29761: 29761: kFlushedAndSimilar, 29761: 29761: 29761: kAll, 29761: }; 29761: 29761: 29761: 29761: struct MetadataCacheOptions { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: PinningTier top_level_index_pinning = PinningTier::kFallback; 29761: 29761: 29761: 29761: PinningTier partition_pinning = PinningTier::kFallback; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: PinningTier unpartitioned_pinning = PinningTier::kFallback; 29761: }; 29761: 29761: struct CacheEntryRoleOptions { 29761: enum class Decision { 29761: kEnabled, 29761: kDisabled, 29761: kFallback, 29761: }; 29761: Decision charged = Decision::kFallback; 29761: bool operator==(const CacheEntryRoleOptions& other) const { 29761: return charged == other.charged; 29761: } 29761: }; 29761: 29761: struct CacheUsageOptions { 29761: CacheEntryRoleOptions options; 29761: std::map options_overrides; 29761: }; 29761: # 147 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: struct BlockBasedTableOptions { 29761: static const char* kName() { return "BlockTableOptions"; } 29761: 29761: 29761: 29761: 29761: 29761: std::shared_ptr flush_block_policy_factory; 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool cache_index_and_filter_blocks = false; 29761: 29761: 29761: 29761: 29761: 29761: bool cache_index_and_filter_blocks_with_high_priority = true; 29761: # 196 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool pin_l0_filter_and_index_blocks_in_cache = false; 29761: # 218 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool pin_top_level_index_and_filter = true; 29761: 29761: 29761: 29761: 29761: 29761: MetadataCacheOptions metadata_cache_options; 29761: 29761: 29761: enum IndexType : char { 29761: 29761: 29761: kBinarySearch = 0x00, 29761: 29761: 29761: 29761: kHashSearch = 0x01, 29761: 29761: 29761: 29761: 29761: kTwoLevelIndexSearch = 0x02, 29761: # 252 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: kBinarySearchWithFirstKey = 0x03, 29761: }; 29761: 29761: IndexType index_type = kBinarySearch; 29761: 29761: 29761: enum DataBlockIndexType : char { 29761: kDataBlockBinarySearch = 0, 29761: kDataBlockBinaryAndHash = 1, 29761: }; 29761: 29761: DataBlockIndexType data_block_index_type = kDataBlockBinarySearch; 29761: 29761: 29761: 29761: double data_block_hash_table_util_ratio = 0.75; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ChecksumType checksum = kXXH3; 29761: 29761: 29761: 29761: 29761: 29761: bool no_block_cache = false; 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: std::shared_ptr block_cache = nullptr; 29761: 29761: 29761: 29761: std::shared_ptr persistent_cache = nullptr; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t block_size = 4 * 1024; 29761: 29761: 29761: 29761: 29761: 29761: 29761: int block_size_deviation = 10; 29761: 29761: 29761: 29761: 29761: 29761: int block_restart_interval = 16; 29761: 29761: 29761: int index_block_restart_interval = 1; 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t metadata_block_size = 4096; 29761: # 412 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: CacheUsageOptions cache_usage_options; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool partition_filters = false; 29761: # 437 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool decouple_partitioned_filters = false; 29761: # 472 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool optimize_filters_for_memory = true; 29761: 29761: 29761: 29761: 29761: 29761: bool use_delta_encoding = true; 29761: 29761: 29761: 29761: 29761: std::shared_ptr filter_policy = nullptr; 29761: 29761: 29761: 29761: bool whole_key_filtering = true; 29761: # 497 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: bool detect_filter_construct_corruption = false; 29761: 29761: 29761: 29761: 29761: bool verify_compression = false; 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: uint32_t read_amp_bytes_per_bit = 0; 29761: # 563 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: uint32_t format_version = 6; 29761: 29761: 29761: 29761: 29761: bool enable_index_compression = true; 29761: 29761: 29761: bool block_align = false; 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: enum class IndexShorteningMode : char { 29761: 29761: kNoShortening, 29761: 29761: 29761: kShortenSeparators, 29761: 29761: kShortenSeparatorsAndSuccessor, 29761: }; 29761: 29761: IndexShorteningMode index_shortening = 29761: IndexShorteningMode::kShortenSeparators; 29761: # 627 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: size_t max_auto_readahead_size = 256 * 1024; 29761: # 637 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: enum class PrepopulateBlockCache : char { 29761: 29761: kDisable, 29761: 29761: kFlushOnly, 29761: }; 29761: 29761: PrepopulateBlockCache prepopulate_block_cache = 29761: PrepopulateBlockCache::kDisable; 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: size_t initial_auto_readahead_size = 8 * 1024; 29761: # 687 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: uint64_t num_file_reads_for_auto_readahead = 2; 29761: }; 29761: 29761: 29761: struct BlockBasedTablePropertyNames { 29761: 29761: static const std::string kIndexType; 29761: 29761: static const std::string kWholeKeyFiltering; 29761: 29761: static const std::string kPrefixFiltering; 29761: 29761: 29761: 29761: 29761: static const std::string kDecoupledPartitionedFilters; 29761: }; 29761: 29761: 29761: TableFactory* NewBlockBasedTableFactory( 29761: const BlockBasedTableOptions& table_options = BlockBasedTableOptions()); 29761: 29761: enum EncodingType : char { 29761: 29761: kPlain, 29761: # 723 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: kPrefix, 29761: }; 29761: 29761: 29761: struct PlainTablePropertyNames { 29761: static const std::string kEncodingType; 29761: static const std::string kBloomVersion; 29761: static const std::string kNumBloomBlocks; 29761: }; 29761: 29761: const uint32_t kPlainTableVariableLength = 0; 29761: 29761: struct PlainTableOptions { 29761: static const char* kName() { return "PlainTableOptions"; } 29761: 29761: 29761: 29761: 29761: uint32_t user_key_len = kPlainTableVariableLength; 29761: 29761: 29761: 29761: int bloom_bits_per_key = 10; 29761: 29761: 29761: 29761: 29761: 29761: double hash_table_ratio = 0.75; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t index_sparseness = 16; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t huge_page_tlb_size = 0; 29761: # 776 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: EncodingType encoding_type = kPlain; 29761: 29761: 29761: 29761: bool full_scan_mode = false; 29761: 29761: 29761: 29761: 29761: bool store_index_in_file = false; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: TableFactory* NewPlainTableFactory( 29761: const PlainTableOptions& options = PlainTableOptions()); 29761: 29761: struct CuckooTablePropertyNames { 29761: 29761: static const std::string kEmptyKey; 29761: 29761: static const std::string kValueLength; 29761: 29761: static const std::string kNumHashFunc; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kCuckooBlockSize; 29761: 29761: 29761: 29761: 29761: 29761: static const std::string kHashTableSize; 29761: 29761: 29761: static const std::string kIsLastLevel; 29761: 29761: static const std::string kIdentityAsFirstHash; 29761: 29761: static const std::string kUseModuleHash; 29761: 29761: static const std::string kUserKeyLength; 29761: }; 29761: 29761: struct CuckooTableOptions { 29761: static const char* kName() { return "CuckooTableOptions"; } 29761: 29761: 29761: 29761: double hash_table_ratio = 0.9; 29761: 29761: 29761: 29761: 29761: 29761: uint32_t max_search_depth = 100; 29761: 29761: 29761: 29761: 29761: 29761: uint32_t cuckoo_block_size = 5; 29761: 29761: 29761: 29761: 29761: bool identity_as_first_hash = false; 29761: 29761: 29761: 29761: 29761: 29761: bool use_module_hash = true; 29761: }; 29761: 29761: 29761: TableFactory* NewCuckooTableFactory( 29761: const CuckooTableOptions& table_options = CuckooTableOptions()); 29761: 29761: class RandomAccessFileReader; 29761: 29761: 29761: class TableFactory : public Customizable { 29761: public: 29761: ~TableFactory() override {} 29761: 29761: static const char* kBlockCacheOpts() { return "BlockCache"; } 29761: static const char* kBlockBasedTableName() { return "BlockBasedTable"; } 29761: static const char* kPlainTableName() { return "PlainTable"; } 29761: static const char* kCuckooTableName() { return "CuckooTable"; } 29761: 29761: 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& id, 29761: std::shared_ptr* factory); 29761: 29761: static const char* Type() { return "TableFactory"; } 29761: # 900 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: virtual Status NewTableReader( 29761: const TableReaderOptions& table_reader_options, 29761: std::unique_ptr&& file, uint64_t file_size, 29761: std::unique_ptr* table_reader, 29761: bool prefetch_index_and_filter_in_cache = true) const { 29761: ReadOptions ro; 29761: return NewTableReader(ro, table_reader_options, std::move(file), file_size, 29761: table_reader, prefetch_index_and_filter_in_cache); 29761: } 29761: 29761: 29761: 29761: virtual Status NewTableReader( 29761: const ReadOptions& ro, const TableReaderOptions& table_reader_options, 29761: std::unique_ptr&& file, uint64_t file_size, 29761: std::unique_ptr* table_reader, 29761: bool prefetch_index_and_filter_in_cache) const = 0; 29761: # 936 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: virtual TableBuilder* NewTableBuilder( 29761: const TableBuilderOptions& table_builder_options, 29761: WritableFileWriter* file) const = 0; 29761: 29761: 29761: 29761: 29761: virtual std::unique_ptr Clone() const = 0; 29761: 29761: 29761: virtual bool IsDeleteRangeSupported() const { return false; } 29761: }; 29761: # 958 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/table.h" 29761: TableFactory* NewAdaptiveTableFactory( 29761: std::shared_ptr table_factory_to_write = nullptr, 29761: std::shared_ptr block_based_table_factory = nullptr, 29761: std::shared_ptr plain_table_factory = nullptr, 29761: std::shared_ptr cuckoo_table_factory = nullptr); 29761: 29761: } 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class FileLock; 29761: class FSDirectory; 29761: class FSRandomAccessFile; 29761: class FSRandomRWFile; 29761: class FSSequentialFile; 29761: class FSWritableFile; 29761: class Logger; 29761: class Slice; 29761: struct ImmutableDBOptions; 29761: struct MutableDBOptions; 29761: class RateLimiter; 29761: struct ConfigOptions; 29761: 29761: using AccessPattern = RandomAccessFile::AccessPattern; 29761: using FileAttributes = Env::FileAttributes; 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum class IOPriority : uint8_t { 29761: kIOLow, 29761: kIOHigh, 29761: kIOTotal, 29761: }; 29761: 29761: 29761: 29761: 29761: enum class IOType : uint8_t { 29761: kData, 29761: kFilter, 29761: kIndex, 29761: kMetadata, 29761: kWAL, 29761: kManifest, 29761: kLog, 29761: kUnknown, 29761: kInvalid, 29761: }; 29761: 29761: 29761: 29761: enum FSSupportedOps { 29761: kAsyncIO, 29761: kFSBuffer, 29761: 29761: kVerifyAndReconstructRead, 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: struct IOOptions { 29761: 29761: std::chrono::microseconds timeout; 29761: 29761: 29761: 29761: IOPriority prio; 29761: 29761: 29761: 29761: 29761: 29761: Env::IOPriority rate_limiter_priority; 29761: 29761: 29761: IOType type; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::unordered_map property_bag; 29761: 29761: 29761: 29761: bool force_dir_fsync; 29761: 29761: 29761: 29761: bool do_not_recurse; 29761: # 140 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: bool verify_and_reconstruct_read; 29761: 29761: 29761: Env::IOActivity io_activity = Env::IOActivity::kUnknown; 29761: 29761: IOOptions() : IOOptions(false) {} 29761: 29761: explicit IOOptions(bool force_dir_fsync_) 29761: : timeout(std::chrono::microseconds::zero()), 29761: prio(IOPriority::kIOLow), 29761: rate_limiter_priority(Env::IO_TOTAL), 29761: type(IOType::kUnknown), 29761: force_dir_fsync(force_dir_fsync_), 29761: do_not_recurse(false), 29761: verify_and_reconstruct_read(false) {} 29761: }; 29761: 29761: struct DirFsyncOptions { 29761: enum FsyncReason : uint8_t { 29761: kNewFileSynced, 29761: kFileRenamed, 29761: kDirRenamed, 29761: kFileDeleted, 29761: kDefault, 29761: } reason; 29761: 29761: std::string renamed_new_name; 29761: 29761: 29761: DirFsyncOptions(); 29761: 29761: explicit DirFsyncOptions(std::string file_renamed_new_name); 29761: 29761: explicit DirFsyncOptions(FsyncReason fsync_reason); 29761: }; 29761: 29761: 29761: 29761: 29761: struct FileOptions : EnvOptions { 29761: 29761: 29761: IOOptions io_options; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Temperature temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: ChecksumType handoff_checksum_type; 29761: 29761: FileOptions() : EnvOptions(), handoff_checksum_type(ChecksumType::kCRC32c) {} 29761: 29761: FileOptions(const DBOptions& opts) 29761: : EnvOptions(opts), 29761: temperature(opts.metadata_write_temperature), 29761: handoff_checksum_type(ChecksumType::kCRC32c) {} 29761: 29761: FileOptions(const EnvOptions& opts) 29761: : EnvOptions(opts), handoff_checksum_type(ChecksumType::kCRC32c) {} 29761: 29761: FileOptions(const FileOptions& opts) 29761: : EnvOptions(opts), 29761: io_options(opts.io_options), 29761: temperature(opts.temperature), 29761: handoff_checksum_type(opts.handoff_checksum_type) {} 29761: 29761: FileOptions& operator=(const FileOptions&) = default; 29761: }; 29761: 29761: 29761: 29761: struct IODebugContext { 29761: 29761: std::string file_path; 29761: 29761: 29761: std::map counters; 29761: 29761: 29761: std::string msg; 29761: 29761: 29761: std::string request_id; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum TraceData : char { 29761: 29761: 29761: 29761: kRequestID = 0, 29761: }; 29761: uint64_t trace_data = 0; 29761: 29761: IODebugContext() {} 29761: 29761: void AddCounter(std::string& name, uint64_t value) { 29761: counters.emplace(name, value); 29761: } 29761: 29761: 29761: 29761: void SetRequestId(const std::string& _request_id) { 29761: request_id = _request_id; 29761: trace_data |= (1 << TraceData::kRequestID); 29761: } 29761: 29761: std::string ToString() { 29761: std::ostringstream ss; 29761: ss << file_path << ", "; 29761: for (auto counter : counters) { 29761: ss << counter.first << " = " << counter.second << ","; 29761: } 29761: ss << msg; 29761: return ss.str(); 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: using IOHandleDeleter = std::function; 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: class FileSystem : public Customizable { 29761: public: 29761: FileSystem(); 29761: 29761: 29761: FileSystem(const FileSystem&) = delete; 29761: 29761: virtual ~FileSystem(); 29761: 29761: static const char* Type() { return "FileSystem"; } 29761: static const char* kDefaultName() { return "DefaultFileSystem"; } 29761: # 313 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: static Status CreateFromString(const ConfigOptions& options, 29761: const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: static std::shared_ptr Default(); 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual Status RegisterDbPaths(const std::vector& ) { 29761: return Status::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status UnregisterDbPaths(const std::vector& ) { 29761: return Status::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus NewSequentialFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) = 0; 29761: # 368 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus NewRandomAccessFile( 29761: const std::string& fname, const FileOptions& file_opts, 29761: std::unique_ptr* result, IODebugContext* dbg) = 0; 29761: 29761: 29761: enum WriteLifeTimeHint { 29761: kWLTHNotSet = 0, 29761: kWLTHNone, 29761: kWLTHShort, 29761: kWLTHMedium, 29761: kWLTHLong, 29761: kWLTHExtreme, 29761: }; 29761: # 389 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus NewWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) = 0; 29761: # 402 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus ReopenWritableFile( 29761: const std::string& , const FileOptions& , 29761: std::unique_ptr* , IODebugContext* ) { 29761: return IOStatus::NotSupported("ReopenWritableFile"); 29761: } 29761: 29761: 29761: virtual IOStatus ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus NewRandomRWFile(const std::string& , 29761: const FileOptions& , 29761: std::unique_ptr* , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported( 29761: "RandomRWFile is not implemented in this FileSystem"); 29761: } 29761: 29761: 29761: 29761: 29761: virtual IOStatus NewMemoryMappedFileBuffer( 29761: const std::string& , 29761: std::unique_ptr* ) { 29761: return IOStatus::NotSupported( 29761: "MemoryMappedFileBuffer is not implemented in this FileSystem"); 29761: } 29761: # 445 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus NewDirectory(const std::string& name, 29761: const IOOptions& io_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus FileExists(const std::string& fname, 29761: const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: # 466 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus GetChildren(const std::string& dir, const IOOptions& options, 29761: std::vector* result, 29761: IODebugContext* dbg) = 0; 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus GetChildrenFileAttributes( 29761: const std::string& dir, const IOOptions& options, 29761: std::vector* result, IODebugContext* dbg) { 29761: 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: (static_cast ( 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: result != nullptr 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: "result != nullptr" 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 483 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: ; 29761: std::vector child_fnames; 29761: IOStatus s = GetChildren(dir, options, &child_fnames, dbg); 29761: if (!s.ok()) { 29761: return s; 29761: } 29761: result->resize(child_fnames.size()); 29761: size_t result_size = 0; 29761: for (size_t i = 0; i < child_fnames.size(); ++i) { 29761: const std::string path = dir + "/" + child_fnames[i]; 29761: if (!(s = GetFileSize(path, options, &(*result)[result_size].size_bytes, 29761: dbg)) 29761: .ok()) { 29761: if (FileExists(path, options, dbg).IsNotFound()) { 29761: 29761: continue; 29761: } 29761: return s; 29761: } 29761: (*result)[result_size].name = std::move(child_fnames[i]); 29761: result_size++; 29761: } 29761: result->resize(result_size); 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus DeleteFile(const std::string& fname, 29761: const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: virtual IOStatus Truncate(const std::string& , size_t , 29761: const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported( 29761: "Truncate is not supported for this FileSystem"); 29761: } 29761: 29761: 29761: virtual IOStatus CreateDir(const std::string& dirname, 29761: const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: virtual IOStatus CreateDirIfMissing(const std::string& dirname, 29761: const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: virtual IOStatus DeleteDir(const std::string& dirname, 29761: const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: 29761: virtual IOStatus GetFileSize(const std::string& fname, 29761: const IOOptions& options, uint64_t* file_size, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: virtual IOStatus GetFileModificationTime(const std::string& fname, 29761: const IOOptions& options, 29761: uint64_t* file_mtime, 29761: IODebugContext* dbg) = 0; 29761: 29761: virtual IOStatus RenameFile(const std::string& src, const std::string& target, 29761: const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: virtual IOStatus LinkFile(const std::string& , 29761: const std::string& , 29761: const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported( 29761: "LinkFile is not supported for this FileSystem"); 29761: } 29761: 29761: virtual IOStatus NumFileLinks(const std::string& , 29761: const IOOptions& , 29761: uint64_t* , IODebugContext* ) { 29761: return IOStatus::NotSupported( 29761: "Getting number of file links is not supported for this FileSystem"); 29761: } 29761: 29761: virtual IOStatus AreFilesSame(const std::string& , 29761: const std::string& , 29761: const IOOptions& , bool* , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported( 29761: "AreFilesSame is not supported for this FileSystem"); 29761: } 29761: # 593 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus LockFile(const std::string& fname, const IOOptions& options, 29761: FileLock** lock, IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: virtual IOStatus UnlockFile(FileLock* lock, const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: virtual IOStatus NewLogger(const std::string& fname, const IOOptions& io_opts, 29761: std::shared_ptr* result, 29761: IODebugContext* dbg); 29761: 29761: 29761: virtual IOStatus GetAbsolutePath(const std::string& db_path, 29761: const IOOptions& options, 29761: std::string* output_path, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: virtual void SanitizeFileOptions(FileOptions* ) const {} 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForLogRead(const FileOptions& file_options) const; 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForManifestRead( 29761: const FileOptions& file_options) const; 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForLogWrite(const FileOptions& file_options, 29761: const DBOptions& db_options) const; 29761: 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForManifestWrite( 29761: const FileOptions& file_options) const; 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForCompactionTableWrite( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& immutable_ops) const; 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForCompactionTableRead( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& db_options) const; 29761: 29761: 29761: 29761: 29761: virtual FileOptions OptimizeForBlobFileRead( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& db_options) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus GetFreeSpace(const std::string& , 29761: const IOOptions& , 29761: uint64_t* , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("GetFreeSpace"); 29761: } 29761: 29761: virtual IOStatus IsDirectory(const std::string& , 29761: const IOOptions& options, bool* is_dir, 29761: IODebugContext* ) = 0; 29761: # 694 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Poll(std::vector& , 29761: size_t ) { 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus AbortIO(std::vector& ) { 29761: return IOStatus::OK(); 29761: } 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual void DiscardCacheForDirectory(const std::string& ) {} 29761: # 727 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual void SupportedOps(int64_t& supported_ops) { 29761: supported_ops = 0; 29761: supported_ops |= (1 << FSSupportedOps::kAsyncIO); 29761: } 29761: 29761: 29761: 29761: private: 29761: void operator=(const FileSystem&); 29761: }; 29761: 29761: 29761: class FSSequentialFile { 29761: public: 29761: FSSequentialFile() {} 29761: 29761: virtual ~FSSequentialFile() {} 29761: # 757 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29761: char* scratch, IODebugContext* dbg) = 0; 29761: # 767 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Skip(uint64_t n) = 0; 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: 29761: virtual IOStatus InvalidateCache(size_t , size_t ) { 29761: return IOStatus::NotSupported("InvalidateCache not supported."); 29761: } 29761: 29761: 29761: 29761: virtual IOStatus PositionedRead(uint64_t , size_t , 29761: const IOOptions& , 29761: Slice* , char* , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("PositionedRead"); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29761: 29761: 29761: 29761: }; 29761: 29761: using FSAllocationPtr = std::unique_ptr>; 29761: 29761: 29761: struct FSReadRequest { 29761: 29761: uint64_t offset; 29761: 29761: 29761: 29761: size_t len; 29761: # 822 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: char* scratch; 29761: # 836 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: Slice result; 29761: 29761: 29761: 29761: IOStatus status; 29761: # 865 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: FSAllocationPtr fs_scratch; 29761: }; 29761: 29761: 29761: class FSRandomAccessFile { 29761: public: 29761: FSRandomAccessFile() {} 29761: 29761: virtual ~FSRandomAccessFile() {} 29761: # 889 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const = 0; 29761: 29761: 29761: 29761: 29761: virtual IOStatus Prefetch(uint64_t , size_t , 29761: const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("Prefetch"); 29761: } 29761: # 910 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29761: const IOOptions& options, IODebugContext* dbg) { 29761: 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: (static_cast ( 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: reqs != nullptr 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: "reqs != nullptr" 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 912 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: ; 29761: for (size_t i = 0; i < num_reqs; ++i) { 29761: FSReadRequest& req = reqs[i]; 29761: req.status = 29761: Read(req.offset, req.len, options, &req.result, req.scratch, dbg); 29761: } 29761: return IOStatus::OK(); 29761: } 29761: # 936 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: 29761: } 29761: 29761: enum AccessPattern { kNormal, kRandom, kSequential, kWillNeed, kWontNeed }; 29761: 29761: virtual void Hint(AccessPattern ) {} 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: 29761: virtual IOStatus InvalidateCache(size_t , size_t ) { 29761: return IOStatus::NotSupported("InvalidateCache not supported."); 29761: } 29761: # 992 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29761: std::function cb, 29761: void* cb_arg, void** , 29761: IOHandleDeleter* , IODebugContext* dbg) { 29761: req.status = 29761: Read(req.offset, req.len, opts, &(req.result), req.scratch, dbg); 29761: cb(req, cb_arg); 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: struct DataVerificationInfo { 29761: 29761: Slice checksum; 29761: }; 29761: 29761: 29761: 29761: 29761: class FSWritableFile { 29761: public: 29761: FSWritableFile() 29761: : last_preallocated_block_(0), 29761: preallocation_block_size_(0), 29761: io_priority_(Env::IO_TOTAL), 29761: write_hint_(Env::WLTH_NOT_SET), 29761: strict_bytes_per_sync_(false) {} 29761: 29761: explicit FSWritableFile(const FileOptions& options) 29761: : last_preallocated_block_(0), 29761: preallocation_block_size_(0), 29761: io_priority_(Env::IO_TOTAL), 29761: write_hint_(Env::WLTH_NOT_SET), 29761: strict_bytes_per_sync_(options.strict_bytes_per_sync) {} 29761: 29761: 29761: 29761: 29761: virtual ~FSWritableFile() {} 29761: 29761: 29761: 29761: 29761: virtual IOStatus Append(const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: # 1058 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Append(const Slice& data, const IOOptions& options, 29761: const DataVerificationInfo& , 29761: IODebugContext* dbg) { 29761: return Append(data, options, dbg); 29761: } 29761: # 1084 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus PositionedAppend(const Slice& , 29761: uint64_t , 29761: const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("PositionedAppend"); 29761: } 29761: # 1099 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus PositionedAppend( 29761: const Slice& , uint64_t , 29761: const IOOptions& , 29761: const DataVerificationInfo& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("PositionedAppend"); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus Truncate(uint64_t , const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus Close(const IOOptions& , 29761: IODebugContext* ) = 0; 29761: 29761: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 29761: virtual IOStatus Sync(const IOOptions& options, 29761: IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 29761: return Sync(options, dbg); 29761: } 29761: 29761: 29761: 29761: virtual bool IsSyncThreadSafe() const { return false; } 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: virtual void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) { 29761: write_hint_ = hint; 29761: } 29761: # 1165 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual void SetIOPriority(Env::IOPriority pri) { io_priority_ = pri; } 29761: 29761: virtual Env::IOPriority GetIOPriority() { return io_priority_; } 29761: 29761: virtual Env::WriteLifeTimeHint GetWriteLifeTimeHint() { return write_hint_; } 29761: 29761: 29761: 29761: virtual uint64_t GetFileSize(const IOOptions& , 29761: IODebugContext* ) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void SetPreallocationBlockSize(size_t size) { 29761: preallocation_block_size_ = size; 29761: } 29761: 29761: virtual void GetPreallocationStatus(size_t* block_size, 29761: size_t* last_allocated_block) { 29761: *last_allocated_block = last_preallocated_block_; 29761: *block_size = preallocation_block_size_; 29761: } 29761: 29761: 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus InvalidateCache(size_t , size_t ) { 29761: return IOStatus::NotSupported("InvalidateCache not supported."); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus RangeSync(uint64_t , uint64_t , 29761: const IOOptions& options, IODebugContext* dbg) { 29761: if (strict_bytes_per_sync_) { 29761: return Sync(options, dbg); 29761: } 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 29761: IODebugContext* dbg) { 29761: if (preallocation_block_size_ == 0) { 29761: return; 29761: } 29761: 29761: 29761: 29761: const auto block_size = preallocation_block_size_; 29761: size_t new_last_preallocated_block = 29761: (offset + len + block_size - 1) / block_size; 29761: if (new_last_preallocated_block > last_preallocated_block_) { 29761: size_t num_spanned_blocks = 29761: new_last_preallocated_block - last_preallocated_block_; 29761: Allocate(block_size * last_preallocated_block_, 29761: block_size * num_spanned_blocks, options, dbg) 29761: .PermitUncheckedError(); 29761: last_preallocated_block_ = new_last_preallocated_block; 29761: } 29761: } 29761: 29761: 29761: virtual IOStatus Allocate(uint64_t , uint64_t , 29761: const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: 29761: protected: 29761: size_t preallocation_block_size() { return preallocation_block_size_; } 29761: 29761: private: 29761: size_t last_preallocated_block_; 29761: size_t preallocation_block_size_; 29761: 29761: FSWritableFile(const FSWritableFile&); 29761: void operator=(const FSWritableFile&); 29761: 29761: protected: 29761: Env::IOPriority io_priority_; 29761: Env::WriteLifeTimeHint write_hint_; 29761: const bool strict_bytes_per_sync_; 29761: }; 29761: 29761: 29761: class FSRandomRWFile { 29761: public: 29761: FSRandomRWFile() {} 29761: 29761: 29761: 29761: 29761: virtual ~FSRandomRWFile() {} 29761: 29761: 29761: 29761: virtual bool use_direct_io() const { return false; } 29761: 29761: 29761: 29761: virtual size_t GetRequiredBufferAlignment() const { return kDefaultPageSize; } 29761: 29761: 29761: 29761: virtual IOStatus Write(uint64_t offset, const Slice& data, 29761: const IOOptions& options, IODebugContext* dbg) = 0; 29761: # 1302 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: virtual IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const = 0; 29761: 29761: virtual IOStatus Flush(const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: virtual IOStatus Sync(const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) { 29761: return Sync(options, dbg); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IOStatus Close(const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Temperature GetTemperature() const { return Temperature::kUnknown; } 29761: 29761: 29761: 29761: 29761: 29761: FSRandomRWFile(const RandomRWFile&) = delete; 29761: FSRandomRWFile& operator=(const RandomRWFile&) = delete; 29761: }; 29761: 29761: 29761: 29761: class FSMemoryMappedFileBuffer { 29761: public: 29761: FSMemoryMappedFileBuffer(void* _base, size_t _length) 29761: : base_(_base), length_(_length) {} 29761: 29761: virtual ~FSMemoryMappedFileBuffer() = 0; 29761: 29761: 29761: 29761: FSMemoryMappedFileBuffer(const FSMemoryMappedFileBuffer&) = delete; 29761: FSMemoryMappedFileBuffer& operator=(const FSMemoryMappedFileBuffer&) = delete; 29761: 29761: void* GetBase() const { return base_; } 29761: size_t GetLen() const { return length_; } 29761: 29761: protected: 29761: void* base_; 29761: const size_t length_; 29761: }; 29761: 29761: 29761: 29761: class FSDirectory { 29761: public: 29761: 29761: 29761: 29761: virtual ~FSDirectory() {} 29761: 29761: virtual IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) = 0; 29761: 29761: 29761: 29761: 29761: virtual IOStatus FsyncWithDirOptions( 29761: const IOOptions& options, IODebugContext* dbg, 29761: const DirFsyncOptions& ) { 29761: return Fsync(options, dbg); 29761: } 29761: 29761: 29761: 29761: 29761: virtual IOStatus Close(const IOOptions& , 29761: IODebugContext* ) { 29761: return IOStatus::NotSupported("Close"); 29761: } 29761: 29761: virtual size_t GetUniqueId(char* , size_t ) const { 29761: return 0; 29761: } 29761: 29761: 29761: 29761: }; 29761: # 1424 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/file_system.h" 29761: class FileSystemWrapper : public FileSystem { 29761: public: 29761: 29761: explicit FileSystemWrapper(const std::shared_ptr& t); 29761: ~FileSystemWrapper() override {} 29761: 29761: 29761: FileSystem* target() const { return target_.get(); } 29761: 29761: 29761: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 29761: std::unique_ptr* r, 29761: IODebugContext* dbg) override { 29761: return target_->NewSequentialFile(f, file_opts, r, dbg); 29761: } 29761: IOStatus NewRandomAccessFile(const std::string& f, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* r, 29761: IODebugContext* dbg) override { 29761: return target_->NewRandomAccessFile(f, file_opts, r, dbg); 29761: } 29761: IOStatus NewWritableFile(const std::string& f, const FileOptions& file_opts, 29761: std::unique_ptr* r, 29761: IODebugContext* dbg) override { 29761: return target_->NewWritableFile(f, file_opts, r, dbg); 29761: } 29761: IOStatus ReopenWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override { 29761: return target_->ReopenWritableFile(fname, file_opts, result, dbg); 29761: } 29761: IOStatus ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* r, 29761: IODebugContext* dbg) override { 29761: return target_->ReuseWritableFile(fname, old_fname, file_opts, r, dbg); 29761: } 29761: IOStatus NewRandomRWFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override { 29761: return target_->NewRandomRWFile(fname, file_opts, result, dbg); 29761: } 29761: IOStatus NewMemoryMappedFileBuffer( 29761: const std::string& fname, 29761: std::unique_ptr* result) override { 29761: return target_->NewMemoryMappedFileBuffer(fname, result); 29761: } 29761: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override { 29761: return target_->NewDirectory(name, io_opts, result, dbg); 29761: } 29761: IOStatus FileExists(const std::string& f, const IOOptions& io_opts, 29761: IODebugContext* dbg) override { 29761: return target_->FileExists(f, io_opts, dbg); 29761: } 29761: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 29761: std::vector* r, 29761: IODebugContext* dbg) override { 29761: return target_->GetChildren(dir, io_opts, r, dbg); 29761: } 29761: IOStatus GetChildrenFileAttributes(const std::string& dir, 29761: const IOOptions& options, 29761: std::vector* result, 29761: IODebugContext* dbg) override { 29761: return target_->GetChildrenFileAttributes(dir, options, result, dbg); 29761: } 29761: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->DeleteFile(f, options, dbg); 29761: } 29761: IOStatus Truncate(const std::string& fname, size_t size, 29761: const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Truncate(fname, size, options, dbg); 29761: } 29761: IOStatus CreateDir(const std::string& d, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->CreateDir(d, options, dbg); 29761: } 29761: IOStatus CreateDirIfMissing(const std::string& d, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->CreateDirIfMissing(d, options, dbg); 29761: } 29761: IOStatus DeleteDir(const std::string& d, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->DeleteDir(d, options, dbg); 29761: } 29761: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 29761: uint64_t* s, IODebugContext* dbg) override { 29761: return target_->GetFileSize(f, options, s, dbg); 29761: } 29761: 29761: IOStatus GetFileModificationTime(const std::string& fname, 29761: const IOOptions& options, 29761: uint64_t* file_mtime, 29761: IODebugContext* dbg) override { 29761: return target_->GetFileModificationTime(fname, options, file_mtime, dbg); 29761: } 29761: 29761: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 29761: std::string* output_path, 29761: IODebugContext* dbg) override { 29761: return target_->GetAbsolutePath(db_path, options, output_path, dbg); 29761: } 29761: 29761: IOStatus RenameFile(const std::string& s, const std::string& t, 29761: const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->RenameFile(s, t, options, dbg); 29761: } 29761: 29761: IOStatus LinkFile(const std::string& s, const std::string& t, 29761: const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->LinkFile(s, t, options, dbg); 29761: } 29761: 29761: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 29761: uint64_t* count, IODebugContext* dbg) override { 29761: return target_->NumFileLinks(fname, options, count, dbg); 29761: } 29761: 29761: IOStatus AreFilesSame(const std::string& first, const std::string& second, 29761: const IOOptions& options, bool* res, 29761: IODebugContext* dbg) override { 29761: return target_->AreFilesSame(first, second, options, res, dbg); 29761: } 29761: 29761: IOStatus LockFile(const std::string& f, const IOOptions& options, 29761: FileLock** l, IODebugContext* dbg) override { 29761: return target_->LockFile(f, options, l, dbg); 29761: } 29761: 29761: IOStatus UnlockFile(FileLock* l, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->UnlockFile(l, options, dbg); 29761: } 29761: 29761: IOStatus GetTestDirectory(const IOOptions& options, std::string* path, 29761: IODebugContext* dbg) override { 29761: return target_->GetTestDirectory(options, path, dbg); 29761: } 29761: IOStatus NewLogger(const std::string& fname, const IOOptions& options, 29761: std::shared_ptr* result, 29761: IODebugContext* dbg) override { 29761: return target_->NewLogger(fname, options, result, dbg); 29761: } 29761: 29761: void SanitizeFileOptions(FileOptions* opts) const override { 29761: target_->SanitizeFileOptions(opts); 29761: } 29761: 29761: FileOptions OptimizeForLogRead( 29761: const FileOptions& file_options) const override { 29761: return target_->OptimizeForLogRead(file_options); 29761: } 29761: FileOptions OptimizeForManifestRead( 29761: const FileOptions& file_options) const override { 29761: return target_->OptimizeForManifestRead(file_options); 29761: } 29761: FileOptions OptimizeForLogWrite(const FileOptions& file_options, 29761: const DBOptions& db_options) const override { 29761: return target_->OptimizeForLogWrite(file_options, db_options); 29761: } 29761: FileOptions OptimizeForManifestWrite( 29761: const FileOptions& file_options) const override { 29761: return target_->OptimizeForManifestWrite(file_options); 29761: } 29761: FileOptions OptimizeForCompactionTableWrite( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& immutable_ops) const override { 29761: return target_->OptimizeForCompactionTableWrite(file_options, 29761: immutable_ops); 29761: } 29761: FileOptions OptimizeForCompactionTableRead( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& db_options) const override { 29761: return target_->OptimizeForCompactionTableRead(file_options, db_options); 29761: } 29761: FileOptions OptimizeForBlobFileRead( 29761: const FileOptions& file_options, 29761: const ImmutableDBOptions& db_options) const override { 29761: return target_->OptimizeForBlobFileRead(file_options, db_options); 29761: } 29761: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 29761: uint64_t* diskfree, IODebugContext* dbg) override { 29761: return target_->GetFreeSpace(path, options, diskfree, dbg); 29761: } 29761: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 29761: bool* is_dir, IODebugContext* dbg) override { 29761: return target_->IsDirectory(path, options, is_dir, dbg); 29761: } 29761: 29761: const Customizable* Inner() const override { return target_.get(); } 29761: Status PrepareOptions(const ConfigOptions& options) override; 29761: std::string SerializeOptions(const ConfigOptions& config_options, 29761: const std::string& header) const override; 29761: 29761: IOStatus Poll(std::vector& io_handles, 29761: size_t min_completions) override { 29761: return target_->Poll(io_handles, min_completions); 29761: } 29761: 29761: IOStatus AbortIO(std::vector& io_handles) override { 29761: return target_->AbortIO(io_handles); 29761: } 29761: 29761: void DiscardCacheForDirectory(const std::string& path) override { 29761: target_->DiscardCacheForDirectory(path); 29761: } 29761: 29761: void SupportedOps(int64_t& supported_ops) override { 29761: return target_->SupportedOps(supported_ops); 29761: } 29761: 29761: protected: 29761: std::shared_ptr target_; 29761: }; 29761: 29761: class FSSequentialFileWrapper : public FSSequentialFile { 29761: public: 29761: 29761: 29761: explicit FSSequentialFileWrapper(FSSequentialFile* t) : target_(t) {} 29761: 29761: FSSequentialFile* target() const { return target_; } 29761: 29761: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29761: char* scratch, IODebugContext* dbg) override { 29761: return target_->Read(n, options, result, scratch, dbg); 29761: } 29761: IOStatus Skip(uint64_t n) override { return target_->Skip(n); } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: IOStatus InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) override { 29761: return target_->PositionedRead(offset, n, options, result, scratch, dbg); 29761: } 29761: Temperature GetTemperature() const override { 29761: return target_->GetTemperature(); 29761: } 29761: 29761: private: 29761: FSSequentialFile* target_; 29761: }; 29761: 29761: class FSSequentialFileOwnerWrapper : public FSSequentialFileWrapper { 29761: public: 29761: 29761: 29761: explicit FSSequentialFileOwnerWrapper(std::unique_ptr&& t) 29761: : FSSequentialFileWrapper(t.get()), guard_(std::move(t)) {} 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: }; 29761: 29761: class FSRandomAccessFileWrapper : public FSRandomAccessFile { 29761: public: 29761: 29761: 29761: explicit FSRandomAccessFileWrapper(FSRandomAccessFile* t) : target_(t) {} 29761: 29761: FSRandomAccessFile* target() const { return target_; } 29761: 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override { 29761: return target_->Read(offset, n, options, result, scratch, dbg); 29761: } 29761: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29761: const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->MultiRead(reqs, num_reqs, options, dbg); 29761: } 29761: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->Prefetch(offset, n, options, dbg); 29761: } 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: void Hint(AccessPattern pattern) override { target_->Hint(pattern); } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: IOStatus InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29761: std::function cb, 29761: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29761: IODebugContext* dbg) override { 29761: return target()->ReadAsync(req, opts, cb, cb_arg, io_handle, del_fn, dbg); 29761: } 29761: Temperature GetTemperature() const override { 29761: return target_->GetTemperature(); 29761: } 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: FSRandomAccessFile* target_; 29761: }; 29761: 29761: class FSRandomAccessFileOwnerWrapper : public FSRandomAccessFileWrapper { 29761: public: 29761: 29761: 29761: explicit FSRandomAccessFileOwnerWrapper( 29761: std::unique_ptr&& t) 29761: : FSRandomAccessFileWrapper(t.get()), guard_(std::move(t)) {} 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: }; 29761: 29761: class FSWritableFileWrapper : public FSWritableFile { 29761: public: 29761: 29761: 29761: explicit FSWritableFileWrapper(FSWritableFile* t) : target_(t) {} 29761: 29761: FSWritableFile* target() const { return target_; } 29761: 29761: IOStatus Append(const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->Append(data, options, dbg); 29761: } 29761: IOStatus Append(const Slice& data, const IOOptions& options, 29761: const DataVerificationInfo& verification_info, 29761: IODebugContext* dbg) override { 29761: return target_->Append(data, options, verification_info, dbg); 29761: } 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->PositionedAppend(data, offset, options, dbg); 29761: } 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: const DataVerificationInfo& verification_info, 29761: IODebugContext* dbg) override { 29761: return target_->PositionedAppend(data, offset, options, verification_info, 29761: dbg); 29761: } 29761: IOStatus Truncate(uint64_t size, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->Truncate(size, options, dbg); 29761: } 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Close(options, dbg); 29761: } 29761: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Flush(options, dbg); 29761: } 29761: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Sync(options, dbg); 29761: } 29761: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Fsync(options, dbg); 29761: } 29761: bool IsSyncThreadSafe() const override { return target_->IsSyncThreadSafe(); } 29761: 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: 29761: void SetWriteLifeTimeHint(Env::WriteLifeTimeHint hint) override { 29761: target_->SetWriteLifeTimeHint(hint); 29761: } 29761: 29761: Env::WriteLifeTimeHint GetWriteLifeTimeHint() override { 29761: return target_->GetWriteLifeTimeHint(); 29761: } 29761: 29761: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->GetFileSize(options, dbg); 29761: } 29761: 29761: void SetPreallocationBlockSize(size_t size) override { 29761: target_->SetPreallocationBlockSize(size); 29761: } 29761: 29761: void GetPreallocationStatus(size_t* block_size, 29761: size_t* last_allocated_block) override { 29761: target_->GetPreallocationStatus(block_size, last_allocated_block); 29761: } 29761: 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: 29761: IOStatus InvalidateCache(size_t offset, size_t length) override { 29761: return target_->InvalidateCache(offset, length); 29761: } 29761: 29761: IOStatus RangeSync(uint64_t offset, uint64_t nbytes, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->RangeSync(offset, nbytes, options, dbg); 29761: } 29761: 29761: void PrepareWrite(size_t offset, size_t len, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: target_->PrepareWrite(offset, len, options, dbg); 29761: } 29761: 29761: IOStatus Allocate(uint64_t offset, uint64_t len, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->Allocate(offset, len, options, dbg); 29761: } 29761: 29761: private: 29761: FSWritableFile* target_; 29761: }; 29761: 29761: class FSWritableFileOwnerWrapper : public FSWritableFileWrapper { 29761: public: 29761: 29761: 29761: explicit FSWritableFileOwnerWrapper(std::unique_ptr&& t) 29761: : FSWritableFileWrapper(t.get()), guard_(std::move(t)) {} 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: }; 29761: 29761: class FSRandomRWFileWrapper : public FSRandomRWFile { 29761: public: 29761: 29761: 29761: explicit FSRandomRWFileWrapper(FSRandomRWFile* t) : target_(t) {} 29761: 29761: FSRandomRWFile* target() const { return target_; } 29761: 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) override { 29761: return target_->Write(offset, data, options, dbg); 29761: } 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override { 29761: return target_->Read(offset, n, options, result, scratch, dbg); 29761: } 29761: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Flush(options, dbg); 29761: } 29761: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Sync(options, dbg); 29761: } 29761: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Fsync(options, dbg); 29761: } 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Close(options, dbg); 29761: } 29761: Temperature GetTemperature() const override { 29761: return target_->GetTemperature(); 29761: } 29761: 29761: private: 29761: FSRandomRWFile* target_; 29761: }; 29761: 29761: class FSRandomRWFileOwnerWrapper : public FSRandomRWFileWrapper { 29761: public: 29761: 29761: 29761: explicit FSRandomRWFileOwnerWrapper(std::unique_ptr&& t) 29761: : FSRandomRWFileWrapper(t.get()), guard_(std::move(t)) {} 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: }; 29761: 29761: class FSDirectoryWrapper : public FSDirectory { 29761: public: 29761: 29761: 29761: explicit FSDirectoryWrapper(std::unique_ptr&& t) 29761: : guard_(std::move(t)) { 29761: target_ = guard_.get(); 29761: } 29761: 29761: 29761: 29761: explicit FSDirectoryWrapper(FSDirectory* t) : target_(t) {} 29761: 29761: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Fsync(options, dbg); 29761: } 29761: 29761: IOStatus FsyncWithDirOptions( 29761: const IOOptions& options, IODebugContext* dbg, 29761: const DirFsyncOptions& dir_fsync_options) override { 29761: return target_->FsyncWithDirOptions(options, dbg, dir_fsync_options); 29761: } 29761: 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override { 29761: return target_->Close(options, dbg); 29761: } 29761: 29761: size_t GetUniqueId(char* id, size_t max_size) const override { 29761: return target_->GetUniqueId(id, max_size); 29761: } 29761: 29761: private: 29761: std::unique_ptr guard_; 29761: FSDirectory* target_; 29761: }; 29761: 29761: 29761: IOStatus WriteStringToFile(FileSystem* fs, const Slice& data, 29761: const std::string& fname, bool should_sync = false, 29761: const IOOptions& io_options = IOOptions(), 29761: const FileOptions& file_options = FileOptions()); 29761: 29761: 29761: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 29761: std::string* data); 29761: 29761: 29761: IOStatus ReadFileToString(FileSystem* fs, const std::string& fname, 29761: const IOOptions& opts, std::string* data); 29761: 29761: } 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/fstream" 1 3 29761: # 36 "/usr/include/c++/14/fstream" 3 29761: 29761: # 37 "/usr/include/c++/14/fstream" 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/codecvt.h" 1 3 29761: # 39 "/usr/include/c++/14/bits/codecvt.h" 3 29761: 29761: # 40 "/usr/include/c++/14/bits/codecvt.h" 3 29761: 29761: 29761: 29761: 29761: 29761: # 44 "/usr/include/c++/14/bits/codecvt.h" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: class codecvt_base 29761: { 29761: public: 29761: enum result 29761: { 29761: ok, 29761: partial, 29761: error, 29761: noconv 29761: }; 29761: }; 29761: # 70 "/usr/include/c++/14/bits/codecvt.h" 3 29761: template 29761: class __codecvt_abstract_base 29761: : public locale::facet, public codecvt_base 29761: { 29761: public: 29761: 29761: typedef codecvt_base::result result; 29761: typedef _InternT intern_type; 29761: typedef _ExternT extern_type; 29761: typedef _StateT state_type; 29761: # 118 "/usr/include/c++/14/bits/codecvt.h" 3 29761: result 29761: out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const 29761: { 29761: return this->do_out(__state, __from, __from_end, __from_next, 29761: __to, __to_end, __to_next); 29761: } 29761: # 157 "/usr/include/c++/14/bits/codecvt.h" 3 29761: result 29761: unshift(state_type& __state, extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const 29761: { return this->do_unshift(__state, __to,__to_end,__to_next); } 29761: # 198 "/usr/include/c++/14/bits/codecvt.h" 3 29761: result 29761: in(state_type& __state, const extern_type* __from, 29761: const extern_type* __from_end, const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const 29761: { 29761: return this->do_in(__state, __from, __from_end, __from_next, 29761: __to, __to_end, __to_next); 29761: } 29761: 29761: int 29761: encoding() const throw() 29761: { return this->do_encoding(); } 29761: 29761: bool 29761: always_noconv() const throw() 29761: { return this->do_always_noconv(); } 29761: 29761: int 29761: length(state_type& __state, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const 29761: { return this->do_length(__state, __from, __end, __max); } 29761: 29761: int 29761: max_length() const throw() 29761: { return this->do_max_length(); } 29761: 29761: protected: 29761: explicit 29761: __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } 29761: 29761: virtual 29761: ~__codecvt_abstract_base() { } 29761: # 239 "/usr/include/c++/14/bits/codecvt.h" 3 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const = 0; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, extern_type* __to, 29761: extern_type* __to_end, extern_type*& __to_next) const = 0; 29761: 29761: virtual result 29761: do_in(state_type& __state, const extern_type* __from, 29761: const extern_type* __from_end, const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const = 0; 29761: 29761: virtual int 29761: do_encoding() const throw() = 0; 29761: 29761: virtual bool 29761: do_always_noconv() const throw() = 0; 29761: 29761: virtual int 29761: do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const = 0; 29761: 29761: virtual int 29761: do_max_length() const throw() = 0; 29761: }; 29761: # 276 "/usr/include/c++/14/bits/codecvt.h" 3 29761: template 29761: class codecvt 29761: : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> 29761: { 29761: public: 29761: 29761: typedef codecvt_base::result result; 29761: typedef _InternT intern_type; 29761: typedef _ExternT extern_type; 29761: typedef _StateT state_type; 29761: 29761: protected: 29761: __c_locale _M_c_locale_codecvt; 29761: 29761: public: 29761: static locale::id id; 29761: 29761: explicit 29761: codecvt(size_t __refs = 0) 29761: : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), 29761: _M_c_locale_codecvt(0) 29761: { } 29761: 29761: explicit 29761: codecvt(__c_locale __cloc, size_t __refs = 0); 29761: 29761: protected: 29761: virtual 29761: ~codecvt() { } 29761: 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, extern_type* __to, 29761: extern_type* __to_end, extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_in(state_type& __state, const extern_type* __from, 29761: const extern_type* __from_end, const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const; 29761: 29761: virtual int 29761: do_encoding() const throw(); 29761: 29761: virtual bool 29761: do_always_noconv() const throw(); 29761: 29761: virtual int 29761: do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const; 29761: 29761: virtual int 29761: do_max_length() const throw(); 29761: }; 29761: 29761: template 29761: locale::id codecvt<_InternT, _ExternT, _StateT>::id; 29761: 29761: 29761: template<> 29761: class codecvt 29761: : public __codecvt_abstract_base 29761: { 29761: friend class messages; 29761: 29761: public: 29761: 29761: typedef char intern_type; 29761: typedef char extern_type; 29761: typedef mbstate_t state_type; 29761: 29761: protected: 29761: __c_locale _M_c_locale_codecvt; 29761: 29761: public: 29761: static locale::id id; 29761: 29761: explicit 29761: codecvt(size_t __refs = 0); 29761: 29761: explicit 29761: codecvt(__c_locale __cloc, size_t __refs = 0); 29761: 29761: protected: 29761: virtual 29761: ~codecvt(); 29761: 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, extern_type* __to, 29761: extern_type* __to_end, extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_in(state_type& __state, const extern_type* __from, 29761: const extern_type* __from_end, const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const; 29761: 29761: virtual int 29761: do_encoding() const throw(); 29761: 29761: virtual bool 29761: do_always_noconv() const throw(); 29761: 29761: virtual int 29761: do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const; 29761: 29761: virtual int 29761: do_max_length() const throw(); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: class codecvt 29761: : public __codecvt_abstract_base 29761: { 29761: friend class messages; 29761: 29761: public: 29761: 29761: typedef wchar_t intern_type; 29761: typedef char extern_type; 29761: typedef mbstate_t state_type; 29761: 29761: protected: 29761: __c_locale _M_c_locale_codecvt; 29761: 29761: public: 29761: static locale::id id; 29761: 29761: explicit 29761: codecvt(size_t __refs = 0); 29761: 29761: explicit 29761: codecvt(__c_locale __cloc, size_t __refs = 0); 29761: 29761: protected: 29761: virtual 29761: ~codecvt(); 29761: 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_in(state_type& __state, 29761: const extern_type* __from, const extern_type* __from_end, 29761: const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const; 29761: 29761: virtual 29761: int do_encoding() const throw(); 29761: 29761: virtual 29761: bool do_always_noconv() const throw(); 29761: 29761: virtual 29761: int do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const; 29761: 29761: virtual int 29761: do_max_length() const throw(); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: class codecvt 29761: : public __codecvt_abstract_base 29761: { 29761: public: 29761: 29761: typedef char16_t intern_type; 29761: typedef char extern_type; 29761: typedef mbstate_t state_type; 29761: 29761: public: 29761: static locale::id id; 29761: 29761: explicit 29761: codecvt(size_t __refs = 0) 29761: : __codecvt_abstract_base(__refs) { } 29761: 29761: protected: 29761: virtual 29761: ~codecvt(); 29761: 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_in(state_type& __state, 29761: const extern_type* __from, const extern_type* __from_end, 29761: const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const; 29761: 29761: virtual 29761: int do_encoding() const throw(); 29761: 29761: virtual 29761: bool do_always_noconv() const throw(); 29761: 29761: virtual 29761: int do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const; 29761: 29761: virtual int 29761: do_max_length() const throw(); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: template<> 29761: class codecvt 29761: : public __codecvt_abstract_base 29761: { 29761: public: 29761: 29761: typedef char32_t intern_type; 29761: typedef char extern_type; 29761: typedef mbstate_t state_type; 29761: 29761: public: 29761: static locale::id id; 29761: 29761: explicit 29761: codecvt(size_t __refs = 0) 29761: : __codecvt_abstract_base(__refs) { } 29761: 29761: protected: 29761: virtual 29761: ~codecvt(); 29761: 29761: virtual result 29761: do_out(state_type& __state, const intern_type* __from, 29761: const intern_type* __from_end, const intern_type*& __from_next, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_unshift(state_type& __state, 29761: extern_type* __to, extern_type* __to_end, 29761: extern_type*& __to_next) const; 29761: 29761: virtual result 29761: do_in(state_type& __state, 29761: const extern_type* __from, const extern_type* __from_end, 29761: const extern_type*& __from_next, 29761: intern_type* __to, intern_type* __to_end, 29761: intern_type*& __to_next) const; 29761: 29761: virtual 29761: int do_encoding() const throw(); 29761: 29761: virtual 29761: bool do_always_noconv() const throw(); 29761: 29761: virtual 29761: int do_length(state_type&, const extern_type* __from, 29761: const extern_type* __end, size_t __max) const; 29761: 29761: virtual int 29761: do_max_length() const throw(); 29761: }; 29761: # 698 "/usr/include/c++/14/bits/codecvt.h" 3 29761: template 29761: class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> 29761: { 29761: public: 29761: explicit 29761: codecvt_byname(const char* __s, size_t __refs = 0) 29761: : codecvt<_InternT, _ExternT, _StateT>(__refs) 29761: { 29761: if (__builtin_strcmp(__s, "C") != 0 29761: && __builtin_strcmp(__s, "POSIX") != 0) 29761: { 29761: this->_S_destroy_c_locale(this->_M_c_locale_codecvt); 29761: this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); 29761: } 29761: } 29761: 29761: 29761: explicit 29761: codecvt_byname(const string& __s, size_t __refs = 0) 29761: : codecvt_byname(__s.c_str(), __refs) { } 29761: 29761: 29761: protected: 29761: virtual 29761: ~codecvt_byname() { } 29761: }; 29761: 29761: 29761: template<> 29761: class codecvt_byname 29761: : public codecvt 29761: { 29761: public: 29761: explicit 29761: codecvt_byname(const char*, size_t __refs = 0) 29761: : codecvt(__refs) { } 29761: 29761: explicit 29761: codecvt_byname(const string& __s, size_t __refs = 0) 29761: : codecvt_byname(__s.c_str(), __refs) { } 29761: 29761: protected: 29761: virtual 29761: ~codecvt_byname() { } 29761: }; 29761: 29761: template<> 29761: class codecvt_byname 29761: : public codecvt 29761: { 29761: public: 29761: explicit 29761: codecvt_byname(const char*, size_t __refs = 0) 29761: : codecvt(__refs) { } 29761: 29761: explicit 29761: codecvt_byname(const string& __s, size_t __refs = 0) 29761: : codecvt_byname(__s.c_str(), __refs) { } 29761: 29761: protected: 29761: virtual 29761: ~codecvt_byname() { } 29761: }; 29761: # 805 "/usr/include/c++/14/bits/codecvt.h" 3 29761: extern template class codecvt_byname; 29761: 29761: extern template 29761: const codecvt& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: extern template class codecvt_byname; 29761: 29761: extern template 29761: const codecvt& 29761: use_facet >(const locale&); 29761: 29761: extern template 29761: bool 29761: has_facet >(const locale&); 29761: 29761: 29761: 29761: extern template class codecvt_byname; 29761: extern template class codecvt_byname; 29761: # 840 "/usr/include/c++/14/bits/codecvt.h" 3 29761: 29761: } 29761: # 43 "/usr/include/c++/14/fstream" 2 3 29761: # 1 "/usr/include/c++/14/cstdio" 1 3 29761: # 39 "/usr/include/c++/14/cstdio" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdio" 3 29761: # 44 "/usr/include/c++/14/fstream" 2 3 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 1 3 29761: # 37 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 29761: 29761: # 38 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 3 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 1 3 29761: # 35 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 3 29761: # 1 "/usr/include/c++/14/cstdio" 1 3 29761: # 39 "/usr/include/c++/14/cstdio" 3 29761: 29761: # 40 "/usr/include/c++/14/cstdio" 3 29761: # 36 "/usr/include/arm-linux-gnueabihf/c++/14/bits/c++io.h" 2 3 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef __gthread_mutex_t __c_lock; 29761: 29761: 29761: 29761: typedef FILE __c_file; 29761: 29761: 29761: } 29761: # 41 "/usr/include/arm-linux-gnueabihf/c++/14/bits/basic_file.h" 2 3 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: template 29761: class __basic_file; 29761: 29761: 29761: template<> 29761: class __basic_file 29761: { 29761: 29761: __c_file* _M_cfile; 29761: 29761: 29761: bool _M_cfile_created; 29761: 29761: public: 29761: __basic_file(__c_lock* __lock = 0) throw (); 29761: 29761: 29761: __basic_file(__basic_file&& __rv, __c_lock* = 0) noexcept 29761: : _M_cfile(__rv._M_cfile), _M_cfile_created(__rv._M_cfile_created) 29761: { 29761: __rv._M_cfile = nullptr; 29761: __rv._M_cfile_created = false; 29761: } 29761: 29761: __basic_file& operator=(const __basic_file&) = delete; 29761: __basic_file& operator=(__basic_file&&) = delete; 29761: 29761: void 29761: swap(__basic_file& __f) noexcept 29761: { 29761: std::swap(_M_cfile, __f._M_cfile); 29761: std::swap(_M_cfile_created, __f._M_cfile_created); 29761: } 29761: 29761: 29761: __basic_file* 29761: open(const char* __name, ios_base::openmode __mode, int __prot = 0664); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __basic_file* 29761: sys_open(__c_file* __file, ios_base::openmode); 29761: 29761: __basic_file* 29761: sys_open(int __fd, ios_base::openmode __mode) throw (); 29761: 29761: __basic_file* 29761: close(); 29761: 29761: __attribute__ ((__pure__)) bool 29761: is_open() const throw (); 29761: 29761: __attribute__ ((__pure__)) int 29761: fd() throw (); 29761: 29761: __attribute__ ((__pure__)) __c_file* 29761: file() throw (); 29761: 29761: ~__basic_file(); 29761: 29761: streamsize 29761: xsputn(const char* __s, streamsize __n); 29761: 29761: streamsize 29761: xsputn_2(const char* __s1, streamsize __n1, 29761: const char* __s2, streamsize __n2); 29761: 29761: streamsize 29761: xsgetn(char* __s, streamsize __n); 29761: 29761: streamoff 29761: seekoff(streamoff __off, ios_base::seekdir __way) throw (); 29761: 29761: int 29761: sync(); 29761: 29761: streamsize 29761: showmanyc(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using native_handle_type = int; 29761: 29761: 29761: native_handle_type 29761: native_handle() const noexcept; 29761: 29761: }; 29761: 29761: 29761: } 29761: # 45 "/usr/include/c++/14/fstream" 2 3 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 51 "/usr/include/c++/14/fstream" 2 3 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: 29761: 29761: template().make_preferred().filename())> 29761: using _If_fs_path = enable_if_t, _Result>; 29761: # 89 "/usr/include/c++/14/fstream" 3 29761: template 29761: class basic_filebuf : public basic_streambuf<_CharT, _Traits> 29761: { 29761: 29761: template 29761: using __chk_state = __and_, 29761: is_copy_constructible<_Tp>, 29761: is_default_constructible<_Tp>>; 29761: 29761: static_assert(__chk_state::value, 29761: "state_type must be CopyAssignable, CopyConstructible" 29761: " and DefaultConstructible"); 29761: 29761: static_assert(is_same>::value, 29761: "pos_type must be fpos"); 29761: 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: typedef basic_streambuf __streambuf_type; 29761: typedef basic_filebuf __filebuf_type; 29761: typedef __basic_file __file_type; 29761: typedef typename traits_type::state_type __state_type; 29761: typedef codecvt __codecvt_type; 29761: 29761: friend class ios_base; 29761: 29761: protected: 29761: 29761: 29761: __c_lock _M_lock; 29761: 29761: 29761: __file_type _M_file; 29761: 29761: 29761: ios_base::openmode _M_mode; 29761: 29761: 29761: __state_type _M_state_beg; 29761: 29761: 29761: 29761: 29761: __state_type _M_state_cur; 29761: 29761: 29761: 29761: __state_type _M_state_last; 29761: 29761: 29761: char_type* _M_buf; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t _M_buf_size; 29761: 29761: 29761: bool _M_buf_allocated; 29761: # 165 "/usr/include/c++/14/fstream" 3 29761: bool _M_reading; 29761: bool _M_writing; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: char_type _M_pback; 29761: char_type* _M_pback_cur_save; 29761: char_type* _M_pback_end_save; 29761: bool _M_pback_init; 29761: 29761: 29761: 29761: const __codecvt_type* _M_codecvt; 29761: 29761: 29761: 29761: 29761: 29761: 29761: char* _M_ext_buf; 29761: 29761: 29761: 29761: 29761: streamsize _M_ext_buf_size; 29761: 29761: 29761: 29761: 29761: 29761: 29761: const char* _M_ext_next; 29761: char* _M_ext_end; 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: _M_create_pback() 29761: { 29761: if (!_M_pback_init) 29761: { 29761: _M_pback_cur_save = this->gptr(); 29761: _M_pback_end_save = this->egptr(); 29761: this->setg(&_M_pback, &_M_pback, &_M_pback + 1); 29761: _M_pback_init = true; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void 29761: _M_destroy_pback() throw() 29761: { 29761: if (_M_pback_init) 29761: { 29761: 29761: _M_pback_cur_save += this->gptr() != this->eback(); 29761: this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); 29761: _M_pback_init = false; 29761: } 29761: } 29761: 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: basic_filebuf(); 29761: 29761: 29761: basic_filebuf(const basic_filebuf&) = delete; 29761: basic_filebuf(basic_filebuf&&); 29761: 29761: 29761: 29761: 29761: 29761: virtual 29761: ~basic_filebuf() 29761: { 29761: try 29761: { this->close(); } 29761: catch(...) 29761: { } 29761: } 29761: 29761: 29761: basic_filebuf& operator=(const basic_filebuf&) = delete; 29761: basic_filebuf& operator=(basic_filebuf&&); 29761: void swap(basic_filebuf&); 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: is_open() const throw() 29761: { return _M_file.is_open(); } 29761: # 319 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: open(const char* __s, ios_base::openmode __mode); 29761: # 340 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: open(const std::string& __s, ios_base::openmode __mode) 29761: { return open(__s.c_str(), __mode); } 29761: # 351 "/usr/include/c++/14/fstream" 3 29761: template 29761: _If_fs_path<_Path, __filebuf_type*> 29761: open(const _Path& __s, ios_base::openmode __mode) 29761: { return open(__s.c_str(), __mode); } 29761: # 370 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: close(); 29761: # 403 "/usr/include/c++/14/fstream" 3 29761: protected: 29761: void 29761: _M_allocate_internal_buffer(); 29761: 29761: void 29761: _M_destroy_internal_buffer() throw(); 29761: 29761: 29761: virtual streamsize 29761: showmanyc(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual int_type 29761: underflow(); 29761: 29761: virtual int_type 29761: pbackfail(int_type __c = _Traits::eof()); 29761: # 432 "/usr/include/c++/14/fstream" 3 29761: virtual int_type 29761: overflow(int_type __c = _Traits::eof()); 29761: 29761: 29761: 29761: bool 29761: _M_convert_to_external(char_type*, streamsize); 29761: # 452 "/usr/include/c++/14/fstream" 3 29761: virtual __streambuf_type* 29761: setbuf(char_type* __s, streamsize __n); 29761: 29761: virtual pos_type 29761: seekoff(off_type __off, ios_base::seekdir __way, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out); 29761: 29761: virtual pos_type 29761: seekpos(pos_type __pos, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out); 29761: 29761: 29761: pos_type 29761: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); 29761: 29761: int 29761: _M_get_ext_pos(__state_type &__state); 29761: 29761: virtual int 29761: sync(); 29761: 29761: virtual void 29761: imbue(const locale& __loc); 29761: 29761: virtual streamsize 29761: xsgetn(char_type* __s, streamsize __n); 29761: 29761: virtual streamsize 29761: xsputn(const char_type* __s, streamsize __n); 29761: 29761: 29761: bool 29761: _M_terminate_output(); 29761: # 498 "/usr/include/c++/14/fstream" 3 29761: void 29761: _M_set_buffer(streamsize __off) 29761: { 29761: const bool __testin = _M_mode & ios_base::in; 29761: const bool __testout = (_M_mode & ios_base::out 29761: || _M_mode & ios_base::app); 29761: 29761: if (__testin && __off > 0) 29761: this->setg(_M_buf, _M_buf, _M_buf + __off); 29761: else 29761: this->setg(_M_buf, _M_buf, _M_buf); 29761: 29761: if (__testout && __off == 0 && _M_buf_size > 1 ) 29761: this->setp(_M_buf, _M_buf + _M_buf_size - 1); 29761: else 29761: this->setp(0, 0); 29761: } 29761: }; 29761: # 531 "/usr/include/c++/14/fstream" 3 29761: template 29761: class basic_ifstream : public basic_istream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_filebuf __filebuf_type; 29761: typedef basic_istream __istream_type; 29761: 29761: private: 29761: __filebuf_type _M_filebuf; 29761: 29761: public: 29761: # 558 "/usr/include/c++/14/fstream" 3 29761: basic_ifstream() : __istream_type(), _M_filebuf() 29761: { this->init(&_M_filebuf); } 29761: # 568 "/usr/include/c++/14/fstream" 3 29761: explicit 29761: basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) 29761: : __istream_type(), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: # 601 "/usr/include/c++/14/fstream" 3 29761: explicit 29761: basic_ifstream(const std::string& __s, 29761: ios_base::openmode __mode = ios_base::in) 29761: : __istream_type(), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: # 618 "/usr/include/c++/14/fstream" 3 29761: template> 29761: basic_ifstream(const _Path& __s, 29761: ios_base::openmode __mode = ios_base::in) 29761: : basic_ifstream(__s.c_str(), __mode) 29761: { } 29761: 29761: 29761: basic_ifstream(const basic_ifstream&) = delete; 29761: 29761: basic_ifstream(basic_ifstream&& __rhs) 29761: : __istream_type(std::move(__rhs)), 29761: _M_filebuf(std::move(__rhs._M_filebuf)) 29761: { __istream_type::set_rdbuf(&_M_filebuf); } 29761: # 639 "/usr/include/c++/14/fstream" 3 29761: ~basic_ifstream() 29761: { } 29761: 29761: 29761: 29761: 29761: basic_ifstream& 29761: operator=(const basic_ifstream&) = delete; 29761: 29761: basic_ifstream& 29761: operator=(basic_ifstream&& __rhs) 29761: { 29761: __istream_type::operator=(std::move(__rhs)); 29761: _M_filebuf = std::move(__rhs._M_filebuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_ifstream& __rhs) 29761: { 29761: __istream_type::swap(__rhs); 29761: _M_filebuf.swap(__rhs._M_filebuf); 29761: } 29761: # 671 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: rdbuf() const 29761: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: is_open() 29761: { return _M_filebuf.is_open(); } 29761: 29761: 29761: 29761: bool 29761: is_open() const 29761: { return _M_filebuf.is_open(); } 29761: # 697 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const char* __s, ios_base::openmode __mode = ios_base::in) 29761: { 29761: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 736 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const std::string& __s, ios_base::openmode __mode = ios_base::in) 29761: { 29761: if (!_M_filebuf.open(__s, __mode | ios_base::in)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 756 "/usr/include/c++/14/fstream" 3 29761: template 29761: _If_fs_path<_Path, void> 29761: open(const _Path& __s, ios_base::openmode __mode = ios_base::in) 29761: { open(__s.c_str(), __mode); } 29761: # 769 "/usr/include/c++/14/fstream" 3 29761: void 29761: close() 29761: { 29761: if (!_M_filebuf.close()) 29761: this->setstate(ios_base::failbit); 29761: } 29761: # 784 "/usr/include/c++/14/fstream" 3 29761: }; 29761: # 801 "/usr/include/c++/14/fstream" 3 29761: template 29761: class basic_ofstream : public basic_ostream<_CharT,_Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_filebuf __filebuf_type; 29761: typedef basic_ostream __ostream_type; 29761: 29761: private: 29761: __filebuf_type _M_filebuf; 29761: 29761: public: 29761: # 828 "/usr/include/c++/14/fstream" 3 29761: basic_ofstream(): __ostream_type(), _M_filebuf() 29761: { this->init(&_M_filebuf); } 29761: # 838 "/usr/include/c++/14/fstream" 3 29761: explicit 29761: basic_ofstream(const char* __s, 29761: ios_base::openmode __mode = ios_base::out) 29761: : __ostream_type(), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: # 873 "/usr/include/c++/14/fstream" 3 29761: explicit 29761: basic_ofstream(const std::string& __s, 29761: ios_base::openmode __mode = ios_base::out) 29761: : __ostream_type(), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: # 890 "/usr/include/c++/14/fstream" 3 29761: template> 29761: basic_ofstream(const _Path& __s, 29761: ios_base::openmode __mode = ios_base::out) 29761: : basic_ofstream(__s.c_str(), __mode) 29761: { } 29761: 29761: 29761: basic_ofstream(const basic_ofstream&) = delete; 29761: 29761: basic_ofstream(basic_ofstream&& __rhs) 29761: : __ostream_type(std::move(__rhs)), 29761: _M_filebuf(std::move(__rhs._M_filebuf)) 29761: { __ostream_type::set_rdbuf(&_M_filebuf); } 29761: # 911 "/usr/include/c++/14/fstream" 3 29761: ~basic_ofstream() 29761: { } 29761: 29761: 29761: 29761: 29761: basic_ofstream& 29761: operator=(const basic_ofstream&) = delete; 29761: 29761: basic_ofstream& 29761: operator=(basic_ofstream&& __rhs) 29761: { 29761: __ostream_type::operator=(std::move(__rhs)); 29761: _M_filebuf = std::move(__rhs._M_filebuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_ofstream& __rhs) 29761: { 29761: __ostream_type::swap(__rhs); 29761: _M_filebuf.swap(__rhs._M_filebuf); 29761: } 29761: # 943 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: rdbuf() const 29761: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: is_open() 29761: { return _M_filebuf.is_open(); } 29761: 29761: 29761: 29761: bool 29761: is_open() const 29761: { return _M_filebuf.is_open(); } 29761: # 969 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const char* __s, ios_base::openmode __mode = ios_base::out) 29761: { 29761: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 1008 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const std::string& __s, ios_base::openmode __mode = ios_base::out) 29761: { 29761: if (!_M_filebuf.open(__s, __mode | ios_base::out)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 1028 "/usr/include/c++/14/fstream" 3 29761: template 29761: _If_fs_path<_Path, void> 29761: open(const _Path& __s, ios_base::openmode __mode = ios_base::out) 29761: { open(__s.c_str(), __mode); } 29761: # 1041 "/usr/include/c++/14/fstream" 3 29761: void 29761: close() 29761: { 29761: if (!_M_filebuf.close()) 29761: this->setstate(ios_base::failbit); 29761: } 29761: # 1056 "/usr/include/c++/14/fstream" 3 29761: }; 29761: # 1073 "/usr/include/c++/14/fstream" 3 29761: template 29761: class basic_fstream : public basic_iostream<_CharT, _Traits> 29761: { 29761: public: 29761: 29761: typedef _CharT char_type; 29761: typedef _Traits traits_type; 29761: typedef typename traits_type::int_type int_type; 29761: typedef typename traits_type::pos_type pos_type; 29761: typedef typename traits_type::off_type off_type; 29761: 29761: 29761: typedef basic_filebuf __filebuf_type; 29761: typedef basic_ios __ios_type; 29761: typedef basic_iostream __iostream_type; 29761: 29761: private: 29761: __filebuf_type _M_filebuf; 29761: 29761: public: 29761: # 1101 "/usr/include/c++/14/fstream" 3 29761: basic_fstream() 29761: : __iostream_type(), _M_filebuf() 29761: { this->init(&_M_filebuf); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit 29761: basic_fstream(const char* __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: : __iostream_type(0), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: # 1140 "/usr/include/c++/14/fstream" 3 29761: explicit 29761: basic_fstream(const std::string& __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: : __iostream_type(0), _M_filebuf() 29761: { 29761: this->init(&_M_filebuf); 29761: this->open(__s, __mode); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: basic_fstream(const _Path& __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: : basic_fstream(__s.c_str(), __mode) 29761: { } 29761: 29761: 29761: basic_fstream(const basic_fstream&) = delete; 29761: 29761: basic_fstream(basic_fstream&& __rhs) 29761: : __iostream_type(std::move(__rhs)), 29761: _M_filebuf(std::move(__rhs._M_filebuf)) 29761: { __iostream_type::set_rdbuf(&_M_filebuf); } 29761: # 1176 "/usr/include/c++/14/fstream" 3 29761: ~basic_fstream() 29761: { } 29761: 29761: 29761: 29761: 29761: basic_fstream& 29761: operator=(const basic_fstream&) = delete; 29761: 29761: basic_fstream& 29761: operator=(basic_fstream&& __rhs) 29761: { 29761: __iostream_type::operator=(std::move(__rhs)); 29761: _M_filebuf = std::move(__rhs._M_filebuf); 29761: return *this; 29761: } 29761: 29761: void 29761: swap(basic_fstream& __rhs) 29761: { 29761: __iostream_type::swap(__rhs); 29761: _M_filebuf.swap(__rhs._M_filebuf); 29761: } 29761: # 1208 "/usr/include/c++/14/fstream" 3 29761: __filebuf_type* 29761: rdbuf() const 29761: { return const_cast<__filebuf_type*>(&_M_filebuf); } 29761: 29761: 29761: 29761: 29761: 29761: bool 29761: is_open() 29761: { return _M_filebuf.is_open(); } 29761: 29761: 29761: 29761: bool 29761: is_open() const 29761: { return _M_filebuf.is_open(); } 29761: # 1234 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const char* __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: { 29761: if (!_M_filebuf.open(__s, __mode)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 1275 "/usr/include/c++/14/fstream" 3 29761: void 29761: open(const std::string& __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: { 29761: if (!_M_filebuf.open(__s, __mode)) 29761: this->setstate(ios_base::failbit); 29761: else 29761: 29761: 29761: this->clear(); 29761: } 29761: # 1296 "/usr/include/c++/14/fstream" 3 29761: template 29761: _If_fs_path<_Path, void> 29761: open(const _Path& __s, 29761: ios_base::openmode __mode = ios_base::in | ios_base::out) 29761: { open(__s.c_str(), __mode); } 29761: # 1310 "/usr/include/c++/14/fstream" 3 29761: void 29761: close() 29761: { 29761: if (!_M_filebuf.close()) 29761: this->setstate(ios_base::failbit); 29761: } 29761: # 1325 "/usr/include/c++/14/fstream" 3 29761: }; 29761: 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_filebuf<_CharT, _Traits>& __x, 29761: basic_filebuf<_CharT, _Traits>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_ifstream<_CharT, _Traits>& __x, 29761: basic_ifstream<_CharT, _Traits>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_ofstream<_CharT, _Traits>& __x, 29761: basic_ofstream<_CharT, _Traits>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: template 29761: inline void 29761: swap(basic_fstream<_CharT, _Traits>& __x, 29761: basic_fstream<_CharT, _Traits>& __y) 29761: { __x.swap(__y); } 29761: 29761: 29761: 29761: } 29761: 29761: # 1 "/usr/include/c++/14/bits/fstream.tcc" 1 3 29761: # 37 "/usr/include/c++/14/bits/fstream.tcc" 3 29761: 29761: # 38 "/usr/include/c++/14/bits/fstream.tcc" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cerrno" 1 3 29761: # 39 "/usr/include/c++/14/cerrno" 3 29761: 29761: # 40 "/usr/include/c++/14/cerrno" 3 29761: # 42 "/usr/include/c++/14/bits/fstream.tcc" 2 3 29761: 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template 29761: void 29761: basic_filebuf<_CharT, _Traits>:: 29761: _M_allocate_internal_buffer() 29761: { 29761: 29761: 29761: if (!_M_buf_allocated && !_M_buf) 29761: { 29761: _M_buf = new char_type[_M_buf_size]; 29761: _M_buf_allocated = true; 29761: } 29761: } 29761: 29761: template 29761: void 29761: basic_filebuf<_CharT, _Traits>:: 29761: _M_destroy_internal_buffer() throw() 29761: { 29761: if (_M_buf_allocated) 29761: { 29761: delete [] _M_buf; 29761: _M_buf = 0; 29761: _M_buf_allocated = false; 29761: } 29761: delete [] _M_ext_buf; 29761: _M_ext_buf = 0; 29761: _M_ext_buf_size = 0; 29761: _M_ext_next = 0; 29761: _M_ext_end = 0; 29761: } 29761: 29761: template 29761: basic_filebuf<_CharT, _Traits>:: 29761: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), 29761: _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), 29761: _M_state_last(), _M_buf(0), _M_buf_size(8192), 29761: _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), 29761: _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), 29761: _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), 29761: _M_ext_end(0) 29761: { 29761: _M_codecvt = std::__try_use_facet<__codecvt_type>(this->_M_buf_locale); 29761: } 29761: 29761: 29761: template 29761: basic_filebuf<_CharT, _Traits>:: 29761: basic_filebuf(basic_filebuf&& __rhs) 29761: : __streambuf_type(__rhs), 29761: _M_lock(), _M_file(std::move(__rhs._M_file), &_M_lock), 29761: _M_mode(std::__exchange(__rhs._M_mode, ios_base::openmode(0))), 29761: _M_state_beg(std::move(__rhs._M_state_beg)), 29761: _M_state_cur(std::move(__rhs._M_state_cur)), 29761: _M_state_last(std::move(__rhs._M_state_last)), 29761: _M_buf(std::__exchange(__rhs._M_buf, nullptr)), 29761: _M_buf_size(std::__exchange(__rhs._M_buf_size, 1)), 29761: _M_buf_allocated(std::__exchange(__rhs._M_buf_allocated, false)), 29761: _M_reading(std::__exchange(__rhs._M_reading, false)), 29761: _M_writing(std::__exchange(__rhs._M_writing, false)), 29761: _M_pback(__rhs._M_pback), 29761: _M_pback_cur_save(std::__exchange(__rhs._M_pback_cur_save, nullptr)), 29761: _M_pback_end_save(std::__exchange(__rhs._M_pback_end_save, nullptr)), 29761: _M_pback_init(std::__exchange(__rhs._M_pback_init, false)), 29761: _M_codecvt(__rhs._M_codecvt), 29761: _M_ext_buf(std::__exchange(__rhs._M_ext_buf, nullptr)), 29761: _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), 29761: _M_ext_next(std::__exchange(__rhs._M_ext_next, nullptr)), 29761: _M_ext_end(std::__exchange(__rhs._M_ext_end, nullptr)) 29761: { 29761: __rhs._M_set_buffer(-1); 29761: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 29761: } 29761: 29761: template 29761: basic_filebuf<_CharT, _Traits>& 29761: basic_filebuf<_CharT, _Traits>:: 29761: operator=(basic_filebuf&& __rhs) 29761: { 29761: this->close(); 29761: __streambuf_type::operator=(__rhs); 29761: _M_file.swap(__rhs._M_file); 29761: _M_mode = std::__exchange(__rhs._M_mode, ios_base::openmode(0)); 29761: _M_state_beg = std::move(__rhs._M_state_beg); 29761: _M_state_cur = std::move(__rhs._M_state_cur); 29761: _M_state_last = std::move(__rhs._M_state_last); 29761: _M_buf = std::__exchange(__rhs._M_buf, nullptr); 29761: _M_buf_size = std::__exchange(__rhs._M_buf_size, 1); 29761: _M_buf_allocated = std::__exchange(__rhs._M_buf_allocated, false); 29761: _M_ext_buf = std::__exchange(__rhs._M_ext_buf, nullptr); 29761: _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); 29761: _M_ext_next = std::__exchange(__rhs._M_ext_next, nullptr); 29761: _M_ext_end = std::__exchange(__rhs._M_ext_end, nullptr); 29761: _M_reading = std::__exchange(__rhs._M_reading, false); 29761: _M_writing = std::__exchange(__rhs._M_writing, false); 29761: _M_pback_cur_save = std::__exchange(__rhs._M_pback_cur_save, nullptr); 29761: _M_pback_end_save = std::__exchange(__rhs._M_pback_end_save, nullptr); 29761: _M_pback_init = std::__exchange(__rhs._M_pback_init, false); 29761: __rhs._M_set_buffer(-1); 29761: __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; 29761: return *this; 29761: } 29761: 29761: template 29761: void 29761: basic_filebuf<_CharT, _Traits>:: 29761: swap(basic_filebuf& __rhs) 29761: { 29761: __streambuf_type::swap(__rhs); 29761: _M_file.swap(__rhs._M_file); 29761: std::swap(_M_mode, __rhs._M_mode); 29761: std::swap(_M_state_beg, __rhs._M_state_beg); 29761: std::swap(_M_state_cur, __rhs._M_state_cur); 29761: std::swap(_M_state_last, __rhs._M_state_last); 29761: std::swap(_M_buf, __rhs._M_buf); 29761: std::swap(_M_buf_size, __rhs._M_buf_size); 29761: std::swap(_M_buf_allocated, __rhs._M_buf_allocated); 29761: std::swap(_M_ext_buf, __rhs._M_ext_buf); 29761: std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); 29761: std::swap(_M_ext_next, __rhs._M_ext_next); 29761: std::swap(_M_ext_end, __rhs._M_ext_end); 29761: std::swap(_M_reading, __rhs._M_reading); 29761: std::swap(_M_writing, __rhs._M_writing); 29761: std::swap(_M_pback_cur_save, __rhs._M_pback_cur_save); 29761: std::swap(_M_pback_end_save, __rhs._M_pback_end_save); 29761: std::swap(_M_pback_init, __rhs._M_pback_init); 29761: } 29761: 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 29761: basic_filebuf<_CharT, _Traits>:: 29761: open(const char* __s, ios_base::openmode __mode) 29761: { 29761: __filebuf_type *__ret = 0; 29761: if (!this->is_open()) 29761: { 29761: _M_file.open(__s, __mode); 29761: if (this->is_open()) 29761: { 29761: _M_allocate_internal_buffer(); 29761: _M_mode = __mode; 29761: 29761: 29761: _M_reading = false; 29761: _M_writing = false; 29761: _M_set_buffer(-1); 29761: 29761: 29761: _M_state_last = _M_state_cur = _M_state_beg; 29761: 29761: 29761: if ((__mode & ios_base::ate) 29761: && this->seekoff(0, ios_base::end, __mode) 29761: == pos_type(off_type(-1))) 29761: this->close(); 29761: else 29761: __ret = this; 29761: } 29761: } 29761: return __ret; 29761: } 29761: # 246 "/usr/include/c++/14/bits/fstream.tcc" 3 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::__filebuf_type* 29761: basic_filebuf<_CharT, _Traits>:: 29761: close() 29761: { 29761: if (!this->is_open()) 29761: return 0; 29761: 29761: bool __testfail = false; 29761: { 29761: 29761: struct __close_sentry 29761: { 29761: basic_filebuf *__fb; 29761: __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } 29761: ~__close_sentry () 29761: { 29761: __fb->_M_mode = ios_base::openmode(0); 29761: __fb->_M_pback_init = false; 29761: __fb->_M_destroy_internal_buffer(); 29761: __fb->_M_reading = false; 29761: __fb->_M_writing = false; 29761: __fb->_M_set_buffer(-1); 29761: __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; 29761: } 29761: } __cs (this); 29761: 29761: try 29761: { 29761: if (!_M_terminate_output()) 29761: __testfail = true; 29761: } 29761: catch(...) 29761: { 29761: _M_file.close(); 29761: throw; 29761: } 29761: } 29761: 29761: if (!_M_file.close()) 29761: __testfail = true; 29761: 29761: if (__testfail) 29761: return 0; 29761: else 29761: return this; 29761: } 29761: 29761: template 29761: streamsize 29761: basic_filebuf<_CharT, _Traits>:: 29761: showmanyc() 29761: { 29761: streamsize __ret = -1; 29761: const bool __testin = _M_mode & ios_base::in; 29761: if (__testin && this->is_open()) 29761: { 29761: 29761: 29761: __ret = this->egptr() - this->gptr(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (__check_facet(_M_codecvt).encoding() >= 0) 29761: 29761: __ret += _M_file.showmanyc() / _M_codecvt->max_length(); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::int_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: underflow() 29761: { 29761: int_type __ret = traits_type::eof(); 29761: const bool __testin = _M_mode & ios_base::in; 29761: if (__testin) 29761: { 29761: if (_M_writing) 29761: { 29761: if (overflow() == traits_type::eof()) 29761: return __ret; 29761: _M_set_buffer(-1); 29761: _M_writing = false; 29761: } 29761: 29761: 29761: 29761: _M_destroy_pback(); 29761: 29761: if (this->gptr() < this->egptr()) 29761: return traits_type::to_int_type(*this->gptr()); 29761: 29761: 29761: const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 29761: 29761: 29761: bool __got_eof = false; 29761: 29761: streamsize __ilen = 0; 29761: codecvt_base::result __r = codecvt_base::ok; 29761: if (__check_facet(_M_codecvt).always_noconv()) 29761: { 29761: __ilen = _M_file.xsgetn(reinterpret_cast(this->eback()), 29761: __buflen); 29761: if (__ilen == 0) 29761: __got_eof = true; 29761: } 29761: else 29761: { 29761: 29761: 29761: const int __enc = _M_codecvt->encoding(); 29761: streamsize __blen; 29761: streamsize __rlen; 29761: if (__enc > 0) 29761: __blen = __rlen = __buflen * __enc; 29761: else 29761: { 29761: __blen = __buflen + _M_codecvt->max_length() - 1; 29761: __rlen = __buflen; 29761: } 29761: const streamsize __remainder = _M_ext_end - _M_ext_next; 29761: __rlen = __rlen > __remainder ? __rlen - __remainder : 0; 29761: 29761: 29761: 29761: if (_M_reading && this->egptr() == this->eback() && __remainder) 29761: __rlen = 0; 29761: 29761: 29761: 29761: if (_M_ext_buf_size < __blen) 29761: { 29761: char* __buf = new char[__blen]; 29761: if (__remainder) 29761: __builtin_memcpy(__buf, _M_ext_next, __remainder); 29761: 29761: delete [] _M_ext_buf; 29761: _M_ext_buf = __buf; 29761: _M_ext_buf_size = __blen; 29761: } 29761: else if (__remainder) 29761: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 29761: 29761: _M_ext_next = _M_ext_buf; 29761: _M_ext_end = _M_ext_buf + __remainder; 29761: _M_state_last = _M_state_cur; 29761: 29761: do 29761: { 29761: if (__rlen > 0) 29761: { 29761: 29761: 29761: 29761: if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) 29761: { 29761: __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") 29761: 29761: ); 29761: } 29761: streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); 29761: if (__elen == 0) 29761: __got_eof = true; 29761: else if (__elen == -1) 29761: break; 29761: _M_ext_end += __elen; 29761: } 29761: 29761: char_type* __iend = this->eback(); 29761: if (_M_ext_next < _M_ext_end) 29761: __r = _M_codecvt->in(_M_state_cur, _M_ext_next, 29761: _M_ext_end, _M_ext_next, 29761: this->eback(), 29761: this->eback() + __buflen, __iend); 29761: if (__r == codecvt_base::noconv) 29761: { 29761: size_t __avail = _M_ext_end - _M_ext_buf; 29761: __ilen = std::min(__avail, __buflen); 29761: traits_type::copy(this->eback(), 29761: reinterpret_cast 29761: (_M_ext_buf), __ilen); 29761: _M_ext_next = _M_ext_buf + __ilen; 29761: } 29761: else 29761: __ilen = __iend - this->eback(); 29761: 29761: 29761: 29761: 29761: if (__r == codecvt_base::error) 29761: break; 29761: 29761: __rlen = 1; 29761: } 29761: while (__ilen == 0 && !__got_eof); 29761: } 29761: 29761: if (__ilen > 0) 29761: { 29761: _M_set_buffer(__ilen); 29761: _M_reading = true; 29761: __ret = traits_type::to_int_type(*this->gptr()); 29761: } 29761: else if (__got_eof) 29761: { 29761: 29761: 29761: 29761: _M_set_buffer(-1); 29761: _M_reading = false; 29761: 29761: 29761: if (__r == codecvt_base::partial) 29761: __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") 29761: ); 29761: } 29761: else if (__r == codecvt_base::error) 29761: __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") 29761: ); 29761: else 29761: __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") 29761: , (*__errno_location ())); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::int_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: pbackfail(int_type __i) 29761: { 29761: int_type __ret = traits_type::eof(); 29761: const bool __testin = _M_mode & ios_base::in; 29761: if (__testin) 29761: { 29761: if (_M_writing) 29761: { 29761: if (overflow() == traits_type::eof()) 29761: return __ret; 29761: _M_set_buffer(-1); 29761: _M_writing = false; 29761: } 29761: 29761: 29761: const bool __testpb = _M_pback_init; 29761: const bool __testeof = traits_type::eq_int_type(__i, __ret); 29761: int_type __tmp; 29761: if (this->eback() < this->gptr()) 29761: { 29761: this->gbump(-1); 29761: __tmp = traits_type::to_int_type(*this->gptr()); 29761: } 29761: else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) 29761: { 29761: __tmp = this->underflow(); 29761: if (traits_type::eq_int_type(__tmp, __ret)) 29761: return __ret; 29761: } 29761: else 29761: { 29761: 29761: 29761: 29761: 29761: 29761: return __ret; 29761: } 29761: 29761: 29761: 29761: if (!__testeof && traits_type::eq_int_type(__i, __tmp)) 29761: __ret = __i; 29761: else if (__testeof) 29761: __ret = traits_type::not_eof(__i); 29761: else if (!__testpb) 29761: { 29761: _M_create_pback(); 29761: _M_reading = true; 29761: *this->gptr() = traits_type::to_char_type(__i); 29761: __ret = __i; 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::int_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: overflow(int_type __c) 29761: { 29761: int_type __ret = traits_type::eof(); 29761: const bool __testeof = traits_type::eq_int_type(__c, __ret); 29761: const bool __testout = (_M_mode & ios_base::out 29761: || _M_mode & ios_base::app); 29761: if (__testout) 29761: { 29761: if (_M_reading) 29761: { 29761: _M_destroy_pback(); 29761: const int __gptr_off = _M_get_ext_pos(_M_state_last); 29761: if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) 29761: == pos_type(off_type(-1))) 29761: return __ret; 29761: } 29761: if (this->pbase() < this->pptr()) 29761: { 29761: 29761: if (!__testeof) 29761: { 29761: *this->pptr() = traits_type::to_char_type(__c); 29761: this->pbump(1); 29761: } 29761: 29761: 29761: 29761: if (_M_convert_to_external(this->pbase(), 29761: this->pptr() - this->pbase())) 29761: { 29761: _M_set_buffer(0); 29761: __ret = traits_type::not_eof(__c); 29761: } 29761: } 29761: else if (_M_buf_size > 1) 29761: { 29761: 29761: 29761: 29761: _M_set_buffer(0); 29761: _M_writing = true; 29761: if (!__testeof) 29761: { 29761: *this->pptr() = traits_type::to_char_type(__c); 29761: this->pbump(1); 29761: } 29761: __ret = traits_type::not_eof(__c); 29761: } 29761: else 29761: { 29761: 29761: char_type __conv = traits_type::to_char_type(__c); 29761: if (__testeof || _M_convert_to_external(&__conv, 1)) 29761: { 29761: _M_writing = true; 29761: __ret = traits_type::not_eof(__c); 29761: } 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: bool 29761: basic_filebuf<_CharT, _Traits>:: 29761: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) 29761: { 29761: 29761: streamsize __elen; 29761: streamsize __plen; 29761: if (__check_facet(_M_codecvt).always_noconv()) 29761: { 29761: __elen = _M_file.xsputn(reinterpret_cast(__ibuf), __ilen); 29761: __plen = __ilen; 29761: } 29761: else 29761: { 29761: 29761: 29761: streamsize __blen = __ilen * _M_codecvt->max_length(); 29761: char* __buf = static_cast(__builtin_alloca(__blen)); 29761: 29761: char* __bend; 29761: const char_type* __iend; 29761: codecvt_base::result __r; 29761: __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, 29761: __iend, __buf, __buf + __blen, __bend); 29761: 29761: if (__r == codecvt_base::ok || __r == codecvt_base::partial) 29761: __blen = __bend - __buf; 29761: else if (__r == codecvt_base::noconv) 29761: { 29761: 29761: __buf = reinterpret_cast(__ibuf); 29761: __blen = __ilen; 29761: } 29761: else 29761: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 29761: ); 29761: 29761: __elen = _M_file.xsputn(__buf, __blen); 29761: __plen = __blen; 29761: 29761: 29761: if (__r == codecvt_base::partial && __elen == __plen) 29761: { 29761: const char_type* __iresume = __iend; 29761: streamsize __rlen = this->pptr() - __iend; 29761: __r = _M_codecvt->out(_M_state_cur, __iresume, 29761: __iresume + __rlen, __iend, __buf, 29761: __buf + __blen, __bend); 29761: if (__r != codecvt_base::error) 29761: { 29761: __rlen = __bend - __buf; 29761: __elen = _M_file.xsputn(__buf, __rlen); 29761: __plen = __rlen; 29761: } 29761: else 29761: __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") 29761: ); 29761: } 29761: } 29761: return __elen == __plen; 29761: } 29761: 29761: template 29761: streamsize 29761: basic_filebuf<_CharT, _Traits>:: 29761: xsgetn(_CharT* __s, streamsize __n) 29761: { 29761: 29761: streamsize __ret = 0; 29761: if (_M_pback_init) 29761: { 29761: if (__n > 0 && this->gptr() == this->eback()) 29761: { 29761: *__s++ = *this->gptr(); 29761: this->gbump(1); 29761: __ret = 1; 29761: --__n; 29761: } 29761: _M_destroy_pback(); 29761: } 29761: else if (_M_writing) 29761: { 29761: if (overflow() == traits_type::eof()) 29761: return __ret; 29761: _M_set_buffer(-1); 29761: _M_writing = false; 29761: } 29761: 29761: 29761: 29761: 29761: const bool __testin = _M_mode & ios_base::in; 29761: const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; 29761: 29761: if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() 29761: && __testin) 29761: { 29761: 29761: const streamsize __avail = this->egptr() - this->gptr(); 29761: if (__avail != 0) 29761: { 29761: traits_type::copy(__s, this->gptr(), __avail); 29761: __s += __avail; 29761: this->setg(this->eback(), this->gptr() + __avail, this->egptr()); 29761: __ret += __avail; 29761: __n -= __avail; 29761: } 29761: 29761: 29761: 29761: streamsize __len; 29761: for (;;) 29761: { 29761: __len = _M_file.xsgetn(reinterpret_cast(__s), __n); 29761: if (__len == -1) 29761: __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") 29761: , (*__errno_location ())); 29761: if (__len == 0) 29761: break; 29761: 29761: __n -= __len; 29761: __ret += __len; 29761: if (__n == 0) 29761: break; 29761: 29761: __s += __len; 29761: } 29761: 29761: if (__n == 0) 29761: { 29761: 29761: _M_reading = true; 29761: } 29761: else if (__len == 0) 29761: { 29761: 29761: 29761: 29761: _M_set_buffer(-1); 29761: _M_reading = false; 29761: } 29761: } 29761: else 29761: __ret += __streambuf_type::xsgetn(__s, __n); 29761: 29761: return __ret; 29761: } 29761: 29761: template 29761: streamsize 29761: basic_filebuf<_CharT, _Traits>:: 29761: xsputn(const _CharT* __s, streamsize __n) 29761: { 29761: streamsize __ret = 0; 29761: 29761: 29761: 29761: const bool __testout = (_M_mode & ios_base::out 29761: || _M_mode & ios_base::app); 29761: if (__check_facet(_M_codecvt).always_noconv() 29761: && __testout && !_M_reading) 29761: { 29761: streamsize __bufavail = this->epptr() - this->pptr(); 29761: 29761: 29761: if (!_M_writing && _M_buf_size > 1) 29761: __bufavail = _M_buf_size - 1; 29761: 29761: if (__n >= __bufavail) 29761: { 29761: const streamsize __buffill = this->pptr() - this->pbase(); 29761: const char* __buf = reinterpret_cast(this->pbase()); 29761: __ret = _M_file.xsputn_2(__buf, __buffill, 29761: reinterpret_cast(__s), 29761: __n); 29761: if (__ret == __buffill + __n) 29761: { 29761: _M_set_buffer(0); 29761: _M_writing = true; 29761: } 29761: if (__ret > __buffill) 29761: __ret -= __buffill; 29761: else 29761: __ret = 0; 29761: } 29761: else 29761: __ret = __streambuf_type::xsputn(__s, __n); 29761: } 29761: else 29761: __ret = __streambuf_type::xsputn(__s, __n); 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::__streambuf_type* 29761: basic_filebuf<_CharT, _Traits>:: 29761: setbuf(char_type* __s, streamsize __n) 29761: { 29761: if (!this->is_open()) 29761: { 29761: if (__s == 0 && __n == 0) 29761: _M_buf_size = 1; 29761: else if (__s && __n > 0) 29761: { 29761: # 816 "/usr/include/c++/14/bits/fstream.tcc" 3 29761: _M_buf = __s; 29761: _M_buf_size = __n; 29761: } 29761: } 29761: return this; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::pos_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) 29761: { 29761: int __width = 0; 29761: if (_M_codecvt) 29761: __width = _M_codecvt->encoding(); 29761: if (__width < 0) 29761: __width = 0; 29761: 29761: pos_type __ret = pos_type(off_type(-1)); 29761: const bool __testfail = __off != 0 && __width <= 0; 29761: if (this->is_open() && !__testfail) 29761: { 29761: 29761: 29761: 29761: 29761: bool __no_movement = __way == ios_base::cur && __off == 0 29761: && (!_M_writing || _M_codecvt->always_noconv()); 29761: 29761: 29761: if (!__no_movement) 29761: _M_destroy_pback(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __state_type __state = _M_state_beg; 29761: off_type __computed_off = __off * __width; 29761: if (_M_reading && __way == ios_base::cur) 29761: { 29761: __state = _M_state_last; 29761: __computed_off += _M_get_ext_pos(__state); 29761: } 29761: if (!__no_movement) 29761: __ret = _M_seek(__computed_off, __way, __state); 29761: else 29761: { 29761: if (_M_writing) 29761: __computed_off = this->pptr() - this->pbase(); 29761: 29761: off_type __file_off = _M_file.seekoff(0, ios_base::cur); 29761: if (__file_off != off_type(-1)) 29761: { 29761: __ret = __file_off + __computed_off; 29761: __ret.state(__state); 29761: } 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::pos_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: seekpos(pos_type __pos, ios_base::openmode) 29761: { 29761: pos_type __ret = pos_type(off_type(-1)); 29761: if (this->is_open()) 29761: { 29761: 29761: _M_destroy_pback(); 29761: __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: typename basic_filebuf<_CharT, _Traits>::pos_type 29761: basic_filebuf<_CharT, _Traits>:: 29761: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) 29761: { 29761: pos_type __ret = pos_type(off_type(-1)); 29761: if (_M_terminate_output()) 29761: { 29761: off_type __file_off = _M_file.seekoff(__off, __way); 29761: if (__file_off != off_type(-1)) 29761: { 29761: _M_reading = false; 29761: _M_writing = false; 29761: _M_ext_next = _M_ext_end = _M_ext_buf; 29761: _M_set_buffer(-1); 29761: _M_state_cur = __state; 29761: __ret = __file_off; 29761: __ret.state(_M_state_cur); 29761: } 29761: } 29761: return __ret; 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: int basic_filebuf<_CharT, _Traits>:: 29761: _M_get_ext_pos(__state_type& __state) 29761: { 29761: if (_M_codecvt->always_noconv()) 29761: return this->gptr() - this->egptr(); 29761: else 29761: { 29761: 29761: 29761: 29761: const int __gptr_off = 29761: _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, 29761: this->gptr() - this->eback()); 29761: return _M_ext_buf + __gptr_off - _M_ext_end; 29761: } 29761: } 29761: 29761: template 29761: bool 29761: basic_filebuf<_CharT, _Traits>:: 29761: _M_terminate_output() 29761: { 29761: 29761: bool __testvalid = true; 29761: if (this->pbase() < this->pptr()) 29761: { 29761: const int_type __tmp = this->overflow(); 29761: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29761: __testvalid = false; 29761: } 29761: 29761: 29761: if (_M_writing && !__check_facet(_M_codecvt).always_noconv() 29761: && __testvalid) 29761: { 29761: 29761: 29761: 29761: const size_t __blen = 128; 29761: char __buf[__blen]; 29761: codecvt_base::result __r; 29761: streamsize __ilen = 0; 29761: 29761: do 29761: { 29761: char* __next; 29761: __r = _M_codecvt->unshift(_M_state_cur, __buf, 29761: __buf + __blen, __next); 29761: if (__r == codecvt_base::error) 29761: __testvalid = false; 29761: else if (__r == codecvt_base::ok || 29761: __r == codecvt_base::partial) 29761: { 29761: __ilen = __next - __buf; 29761: if (__ilen > 0) 29761: { 29761: const streamsize __elen = _M_file.xsputn(__buf, __ilen); 29761: if (__elen != __ilen) 29761: __testvalid = false; 29761: } 29761: } 29761: } 29761: while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); 29761: 29761: if (__testvalid) 29761: { 29761: 29761: 29761: 29761: 29761: const int_type __tmp = this->overflow(); 29761: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29761: __testvalid = false; 29761: } 29761: } 29761: return __testvalid; 29761: } 29761: 29761: template 29761: int 29761: basic_filebuf<_CharT, _Traits>:: 29761: sync() 29761: { 29761: 29761: 29761: int __ret = 0; 29761: if (this->pbase() < this->pptr()) 29761: { 29761: const int_type __tmp = this->overflow(); 29761: if (traits_type::eq_int_type(__tmp, traits_type::eof())) 29761: __ret = -1; 29761: } 29761: return __ret; 29761: } 29761: 29761: template 29761: void 29761: basic_filebuf<_CharT, _Traits>:: 29761: imbue(const locale& __loc) 29761: { 29761: bool __testvalid = true; 29761: 29761: const __codecvt_type* const _M_codecvt_tmp 29761: = __try_use_facet<__codecvt_type>(__loc); 29761: 29761: if (this->is_open()) 29761: { 29761: 29761: if ((_M_reading || _M_writing) 29761: && __check_facet(_M_codecvt).encoding() == -1) 29761: __testvalid = false; 29761: else 29761: { 29761: if (_M_reading) 29761: { 29761: if (__check_facet(_M_codecvt).always_noconv()) 29761: { 29761: if (_M_codecvt_tmp 29761: && !__check_facet(_M_codecvt_tmp).always_noconv()) 29761: __testvalid = this->seekoff(0, ios_base::cur, _M_mode) 29761: != pos_type(off_type(-1)); 29761: } 29761: else 29761: { 29761: 29761: _M_ext_next = _M_ext_buf 29761: + _M_codecvt->length(_M_state_last, _M_ext_buf, 29761: _M_ext_next, 29761: this->gptr() - this->eback()); 29761: const streamsize __remainder = _M_ext_end - _M_ext_next; 29761: if (__remainder) 29761: __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); 29761: 29761: _M_ext_next = _M_ext_buf; 29761: _M_ext_end = _M_ext_buf + __remainder; 29761: _M_set_buffer(-1); 29761: _M_state_last = _M_state_cur = _M_state_beg; 29761: } 29761: } 29761: else if (_M_writing && (__testvalid = _M_terminate_output())) 29761: _M_set_buffer(-1); 29761: } 29761: } 29761: 29761: if (__testvalid) 29761: _M_codecvt = _M_codecvt_tmp; 29761: else 29761: _M_codecvt = 0; 29761: } 29761: 29761: 29761: 29761: 29761: extern template class basic_filebuf; 29761: extern template class basic_ifstream; 29761: extern template class basic_ofstream; 29761: extern template class basic_fstream; 29761: 29761: 29761: extern template class basic_filebuf; 29761: extern template class basic_ifstream; 29761: extern template class basic_ofstream; 29761: extern template class basic_fstream; 29761: 29761: 29761: 29761: 29761: } 29761: # 1361 "/usr/include/c++/14/fstream" 2 3 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29761: namespace rocksdb { 29761: class InstrumentedCondVar; 29761: 29761: 29761: 29761: class InstrumentedMutex { 29761: public: 29761: explicit InstrumentedMutex(bool adaptive = false) 29761: : mutex_(adaptive), stats_(nullptr), clock_(nullptr), stats_code_(0) {} 29761: 29761: explicit InstrumentedMutex(SystemClock* clock, bool adaptive = false) 29761: : mutex_(adaptive), stats_(nullptr), clock_(clock), stats_code_(0) {} 29761: 29761: InstrumentedMutex(Statistics* stats, SystemClock* clock, int stats_code, 29761: bool adaptive = false) 29761: : mutex_(adaptive), 29761: stats_(stats), 29761: clock_(clock), 29761: stats_code_(stats_code) {} 29761: # 45 "/build/reproducible-path/rocksdb-9.10.0/monitoring/instrumented_mutex.h" 29761: void Lock(); 29761: 29761: void Unlock() { mutex_.Unlock(); } 29761: 29761: void AssertHeld() const { mutex_.AssertHeld(); } 29761: 29761: private: 29761: void LockInternal(); 29761: friend class InstrumentedCondVar; 29761: port::Mutex mutex_; 29761: Statistics* stats_; 29761: SystemClock* clock_; 29761: int stats_code_; 29761: 29761: 29761: 29761: }; 29761: 29761: class alignas(64U) CacheAlignedInstrumentedMutex 29761: : public InstrumentedMutex { 29761: using InstrumentedMutex::InstrumentedMutex; 29761: }; 29761: static_assert(alignof(CacheAlignedInstrumentedMutex) != 64U || 29761: sizeof(CacheAlignedInstrumentedMutex) % 64U == 0); 29761: 29761: 29761: class InstrumentedMutexLock { 29761: public: 29761: explicit InstrumentedMutexLock(InstrumentedMutex* mutex) : mutex_(mutex) { 29761: mutex_->Lock(); 29761: } 29761: 29761: ~InstrumentedMutexLock() { mutex_->Unlock(); } 29761: 29761: private: 29761: InstrumentedMutex* const mutex_; 29761: InstrumentedMutexLock(const InstrumentedMutexLock&) = delete; 29761: void operator=(const InstrumentedMutexLock&) = delete; 29761: }; 29761: 29761: 29761: 29761: class InstrumentedMutexUnlock { 29761: public: 29761: explicit InstrumentedMutexUnlock(InstrumentedMutex* mutex) : mutex_(mutex) { 29761: mutex_->Unlock(); 29761: } 29761: 29761: ~InstrumentedMutexUnlock() { mutex_->Lock(); } 29761: 29761: private: 29761: InstrumentedMutex* const mutex_; 29761: InstrumentedMutexUnlock(const InstrumentedMutexUnlock&) = delete; 29761: void operator=(const InstrumentedMutexUnlock&) = delete; 29761: }; 29761: 29761: class InstrumentedCondVar { 29761: public: 29761: explicit InstrumentedCondVar(InstrumentedMutex* instrumented_mutex) 29761: : cond_(&(instrumented_mutex->mutex_)), 29761: stats_(instrumented_mutex->stats_), 29761: clock_(instrumented_mutex->clock_), 29761: stats_code_(instrumented_mutex->stats_code_) {} 29761: 29761: void Wait(); 29761: 29761: bool TimedWait(uint64_t abs_time_us); 29761: 29761: void Signal() { cond_.Signal(); } 29761: 29761: void SignalAll() { cond_.SignalAll(); } 29761: 29761: private: 29761: void WaitInternal(); 29761: bool TimedWaitInternal(uint64_t abs_time_us); 29761: port::CondVar cond_; 29761: Statistics* stats_; 29761: SystemClock* clock_; 29761: int stats_code_; 29761: }; 29761: 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/replayer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class TraceRecord; 29761: class TraceRecordResult; 29761: 29761: struct ReplayOptions { 29761: 29761: 29761: uint32_t num_threads; 29761: 29761: 29761: 29761: 29761: 29761: 29761: double fast_forward; 29761: 29761: ReplayOptions() : num_threads(1), fast_forward(1.0) {} 29761: 29761: ReplayOptions(uint32_t num_of_threads, double fast_forward_ratio) 29761: : num_threads(num_of_threads), fast_forward(fast_forward_ratio) {} 29761: }; 29761: 29761: 29761: 29761: 29761: class Replayer { 29761: public: 29761: virtual ~Replayer() = default; 29761: 29761: 29761: 29761: virtual Status Prepare() = 0; 29761: 29761: 29761: virtual uint64_t GetHeaderTimestamp() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Next(std::unique_ptr* record) = 0; 29761: # 71 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/utilities/replayer.h" 29761: virtual Status Execute(const std::unique_ptr& record, 29761: std::unique_ptr* result) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status Replay( 29761: const ReplayOptions& options, 29761: const std::function&&)>& 29761: result_callback) = 0; 29761: }; 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/trace_replay.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: class ColumnFamilyHandle; 29761: class ColumnFamilyData; 29761: class DB; 29761: class DBImpl; 29761: class Env; 29761: class Slice; 29761: class SystemClock; 29761: class TraceReader; 29761: class TraceWriter; 29761: class WriteBatch; 29761: 29761: struct ReadOptions; 29761: struct TraceOptions; 29761: struct WriteOptions; 29761: 29761: extern const std::string kTraceMagic; 29761: const unsigned int kTraceTimestampSize = 8; 29761: const unsigned int kTraceTypeSize = 1; 29761: const unsigned int kTracePayloadLengthSize = 4; 29761: const unsigned int kTraceMetadataSize = 29761: kTraceTimestampSize + kTraceTypeSize + kTracePayloadLengthSize; 29761: 29761: static const int kTraceFileMajorVersion = 0; 29761: static const int kTraceFileMinorVersion = 2; 29761: 29761: 29761: struct Trace { 29761: uint64_t ts; 29761: TraceType type; 29761: 29761: 29761: 29761: 29761: uint64_t payload_map = 0; 29761: 29761: 29761: std::string payload; 29761: 29761: void reset() { 29761: ts = 0; 29761: type = kTraceMax; 29761: payload_map = 0; 29761: payload.clear(); 29761: } 29761: }; 29761: 29761: enum TracePayloadType : char { 29761: 29761: 29761: kEmptyPayload = 0, 29761: kWriteBatchData = 1, 29761: kGetCFID = 2, 29761: kGetKey = 3, 29761: kIterCFID = 4, 29761: kIterKey = 5, 29761: kIterLowerBound = 6, 29761: kIterUpperBound = 7, 29761: kMultiGetSize = 8, 29761: kMultiGetCFIDs = 9, 29761: kMultiGetKeys = 10, 29761: }; 29761: 29761: class TracerHelper { 29761: public: 29761: 29761: static Status ParseVersionStr(std::string& v_string, int* v_num); 29761: 29761: 29761: static Status ParseTraceHeader(const Trace& header, int* trace_version, 29761: int* db_version); 29761: 29761: 29761: static void EncodeTrace(const Trace& trace, std::string* encoded_trace); 29761: 29761: 29761: static Status DecodeTrace(const std::string& encoded_trace, Trace* trace); 29761: 29761: 29761: static Status DecodeHeader(const std::string& encoded_trace, Trace* header); 29761: 29761: 29761: static bool SetPayloadMap(uint64_t& payload_map, 29761: const TracePayloadType payload_type); 29761: 29761: 29761: 29761: 29761: 29761: static Status DecodeTraceRecord(Trace* trace, int trace_file_version, 29761: std::unique_ptr* record); 29761: }; 29761: 29761: 29761: 29761: 29761: class Tracer { 29761: public: 29761: Tracer(SystemClock* clock, const TraceOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: ~Tracer(); 29761: 29761: 29761: Status Write(WriteBatch* write_batch); 29761: 29761: 29761: Status Get(ColumnFamilyHandle* cfname, const Slice& key); 29761: 29761: 29761: Status IteratorSeek(const uint32_t& cf_id, const Slice& key, 29761: const Slice& lower_bound, const Slice upper_bound); 29761: Status IteratorSeekForPrev(const uint32_t& cf_id, const Slice& key, 29761: const Slice& lower_bound, const Slice upper_bound); 29761: 29761: 29761: 29761: Status MultiGet(const size_t num_keys, ColumnFamilyHandle** column_families, 29761: const Slice* keys); 29761: 29761: Status MultiGet(const size_t num_keys, ColumnFamilyHandle* column_family, 29761: const Slice* keys); 29761: 29761: Status MultiGet(const std::vector& column_family, 29761: const std::vector& keys); 29761: 29761: 29761: 29761: bool IsTraceFileOverMax(); 29761: 29761: 29761: 29761: bool IsWriteOrderPreserved() { return trace_options_.preserve_write_order; } 29761: 29761: 29761: Status Close(); 29761: 29761: private: 29761: 29761: 29761: 29761: Status WriteHeader(); 29761: 29761: 29761: Status WriteFooter(); 29761: 29761: 29761: 29761: Status WriteTrace(const Trace& trace); 29761: 29761: 29761: 29761: bool ShouldSkipTrace(const TraceType& type); 29761: 29761: SystemClock* clock_; 29761: TraceOptions trace_options_; 29761: std::unique_ptr trace_writer_; 29761: uint64_t trace_request_count_; 29761: Status trace_write_status_; 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 2 29761: 29761: namespace rocksdb { 29761: class SystemClock; 29761: class TraceReader; 29761: class TraceWriter; 29761: # 32 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 29761: enum IOTraceOp : char { 29761: 29761: 29761: kIOFileSize = 0, 29761: kIOLen = 1, 29761: kIOOffset = 2, 29761: }; 29761: 29761: struct IOTraceRecord { 29761: 29761: uint64_t access_timestamp = 0; 29761: TraceType trace_type = TraceType::kTraceMax; 29761: 29761: 29761: 29761: uint64_t io_op_data = 0; 29761: std::string file_operation; 29761: uint64_t latency = 0; 29761: std::string io_status; 29761: 29761: std::string file_name; 29761: 29761: 29761: uint64_t len = 0; 29761: uint64_t offset = 0; 29761: uint64_t file_size = 0; 29761: 29761: 29761: uint64_t trace_data = 0; 29761: std::string request_id; 29761: 29761: IOTraceRecord() {} 29761: 29761: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 29761: const uint64_t& _io_op_data, const std::string& _file_operation, 29761: const uint64_t& _latency, const std::string& _io_status, 29761: const std::string& _file_name, const uint64_t& _file_size = 0) 29761: : access_timestamp(_access_timestamp), 29761: trace_type(_trace_type), 29761: io_op_data(_io_op_data), 29761: file_operation(_file_operation), 29761: latency(_latency), 29761: io_status(_io_status), 29761: file_name(_file_name), 29761: file_size(_file_size) {} 29761: 29761: IOTraceRecord(const uint64_t& _access_timestamp, const TraceType& _trace_type, 29761: const uint64_t& _io_op_data, const std::string& _file_operation, 29761: const uint64_t& _latency, const std::string& _io_status, 29761: const std::string& _file_name, const uint64_t& _len, 29761: const uint64_t& _offset) 29761: : access_timestamp(_access_timestamp), 29761: trace_type(_trace_type), 29761: io_op_data(_io_op_data), 29761: file_operation(_file_operation), 29761: latency(_latency), 29761: io_status(_io_status), 29761: file_name(_file_name), 29761: len(_len), 29761: offset(_offset) {} 29761: }; 29761: 29761: struct IOTraceHeader { 29761: uint64_t start_time; 29761: uint32_t rocksdb_major_version; 29761: uint32_t rocksdb_minor_version; 29761: }; 29761: 29761: 29761: 29761: class IOTraceWriter { 29761: public: 29761: IOTraceWriter(SystemClock* clock, const TraceOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: ~IOTraceWriter() = default; 29761: 29761: IOTraceWriter(const IOTraceWriter&) = delete; 29761: IOTraceWriter& operator=(const IOTraceWriter&) = delete; 29761: IOTraceWriter(IOTraceWriter&&) = delete; 29761: IOTraceWriter& operator=(IOTraceWriter&&) = delete; 29761: 29761: Status WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 29761: 29761: 29761: 29761: Status WriteHeader(); 29761: 29761: private: 29761: SystemClock* clock_; 29761: TraceOptions trace_options_; 29761: std::unique_ptr trace_writer_; 29761: }; 29761: 29761: 29761: class IOTraceReader { 29761: public: 29761: explicit IOTraceReader(std::unique_ptr&& reader); 29761: ~IOTraceReader() = default; 29761: 29761: IOTraceReader(const IOTraceReader&) = delete; 29761: IOTraceReader& operator=(const IOTraceReader&) = delete; 29761: IOTraceReader(IOTraceReader&&) = delete; 29761: IOTraceReader& operator=(IOTraceReader&&) = delete; 29761: 29761: Status ReadHeader(IOTraceHeader* header); 29761: 29761: Status ReadIOOp(IOTraceRecord* record); 29761: 29761: private: 29761: std::unique_ptr trace_reader_; 29761: }; 29761: 29761: 29761: 29761: class IOTracer { 29761: public: 29761: IOTracer(); 29761: ~IOTracer(); 29761: 29761: IOTracer(const IOTracer&) = delete; 29761: IOTracer& operator=(const IOTracer&) = delete; 29761: IOTracer(IOTracer&&) = delete; 29761: IOTracer& operator=(IOTracer&&) = delete; 29761: # 163 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/io_tracer.h" 29761: Status 29761: StartIOTrace(SystemClock* clock, const TraceOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: 29761: 29761: void EndIOTrace(); 29761: 29761: bool is_tracing_enabled() const { return tracing_enabled; } 29761: 29761: void WriteIOOp(const IOTraceRecord& record, IODebugContext* dbg); 29761: 29761: private: 29761: TraceOptions trace_options_; 29761: 29761: InstrumentedMutex trace_writer_mutex_; 29761: std::atomic writer_; 29761: 29761: 29761: 29761: bool tracing_enabled; 29761: }; 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/env/file_system_tracer.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FileSystemTracingWrapper : public FileSystemWrapper { 29761: public: 29761: FileSystemTracingWrapper(const std::shared_ptr& t, 29761: const std::shared_ptr& io_tracer) 29761: : FileSystemWrapper(t), 29761: io_tracer_(io_tracer), 29761: clock_(SystemClock::Default().get()) {} 29761: 29761: ~FileSystemTracingWrapper() override {} 29761: 29761: static const char* kClassName() { return "FileSystemTracing"; } 29761: const char* Name() const override { return kClassName(); } 29761: 29761: IOStatus NewSequentialFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewRandomAccessFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus ReopenWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewRandomRWFile(const std::string& fname, const FileOptions& options, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewDirectory(const std::string& name, const IOOptions& io_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus GetChildren(const std::string& dir, const IOOptions& io_opts, 29761: std::vector* r, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus DeleteFile(const std::string& fname, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus CreateDir(const std::string& dirname, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus CreateDirIfMissing(const std::string& dirname, 29761: const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus DeleteDir(const std::string& dirname, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus GetFileSize(const std::string& fname, const IOOptions& options, 29761: uint64_t* file_size, IODebugContext* dbg) override; 29761: 29761: IOStatus Truncate(const std::string& fname, size_t size, 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: SystemClock* clock_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FileSystemPtr { 29761: public: 29761: FileSystemPtr(std::shared_ptr fs, 29761: const std::shared_ptr& io_tracer) 29761: : fs_(fs), io_tracer_(io_tracer) { 29761: fs_tracer_ = std::make_shared(fs_, io_tracer_); 29761: } 29761: 29761: std::shared_ptr operator->() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return fs_tracer_; 29761: } else { 29761: return fs_; 29761: } 29761: } 29761: 29761: 29761: FileSystem* get() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return fs_tracer_.get(); 29761: } else { 29761: return fs_.get(); 29761: } 29761: } 29761: 29761: private: 29761: std::shared_ptr fs_; 29761: std::shared_ptr io_tracer_; 29761: std::shared_ptr fs_tracer_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSSequentialFileTracingWrapper : public FSSequentialFileOwnerWrapper { 29761: public: 29761: FSSequentialFileTracingWrapper(std::unique_ptr&& t, 29761: std::shared_ptr io_tracer, 29761: const std::string& file_name) 29761: : FSSequentialFileOwnerWrapper(std::move(t)), 29761: io_tracer_(io_tracer), 29761: clock_(SystemClock::Default().get()), 29761: file_name_(file_name) {} 29761: 29761: ~FSSequentialFileTracingWrapper() override {} 29761: 29761: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29761: char* scratch, IODebugContext* dbg) override; 29761: 29761: IOStatus InvalidateCache(size_t offset, size_t length) override; 29761: 29761: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) override; 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: SystemClock* clock_; 29761: std::string file_name_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSSequentialFilePtr { 29761: public: 29761: FSSequentialFilePtr() = delete; 29761: FSSequentialFilePtr(std::unique_ptr&& fs, 29761: const std::shared_ptr& io_tracer, 29761: const std::string& file_name) 29761: : io_tracer_(io_tracer), 29761: fs_tracer_(std::move(fs), io_tracer_, 29761: file_name.substr(file_name.find_last_of("/\\") + 29761: 1) ) {} 29761: 29761: FSSequentialFile* operator->() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: FSSequentialFile* get() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: FSSequentialFileTracingWrapper fs_tracer_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSRandomAccessFileTracingWrapper : public FSRandomAccessFileOwnerWrapper { 29761: public: 29761: FSRandomAccessFileTracingWrapper(std::unique_ptr&& t, 29761: std::shared_ptr io_tracer, 29761: const std::string& file_name) 29761: : FSRandomAccessFileOwnerWrapper(std::move(t)), 29761: io_tracer_(io_tracer), 29761: clock_(SystemClock::Default().get()), 29761: file_name_(file_name) {} 29761: 29761: ~FSRandomAccessFileTracingWrapper() override {} 29761: 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override; 29761: 29761: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus Prefetch(uint64_t offset, size_t n, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus InvalidateCache(size_t offset, size_t length) override; 29761: 29761: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29761: std::function cb, 29761: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29761: IODebugContext* dbg) override; 29761: 29761: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: SystemClock* clock_; 29761: 29761: std::string file_name_; 29761: 29761: struct ReadAsyncCallbackInfo { 29761: uint64_t start_time_; 29761: std::function cb_; 29761: void* cb_arg_; 29761: std::string file_op_; 29761: }; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSRandomAccessFilePtr { 29761: public: 29761: FSRandomAccessFilePtr(std::unique_ptr&& fs, 29761: const std::shared_ptr& io_tracer, 29761: const std::string& file_name) 29761: : io_tracer_(io_tracer), 29761: fs_tracer_(std::move(fs), io_tracer_, 29761: file_name.substr(file_name.find_last_of("/\\") + 29761: 1) ) {} 29761: 29761: FSRandomAccessFile* operator->() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: FSRandomAccessFile* get() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: FSRandomAccessFileTracingWrapper fs_tracer_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSWritableFileTracingWrapper : public FSWritableFileOwnerWrapper { 29761: public: 29761: FSWritableFileTracingWrapper(std::unique_ptr&& t, 29761: std::shared_ptr io_tracer, 29761: const std::string& file_name) 29761: : FSWritableFileOwnerWrapper(std::move(t)), 29761: io_tracer_(io_tracer), 29761: clock_(SystemClock::Default().get()), 29761: file_name_(file_name) {} 29761: 29761: ~FSWritableFileTracingWrapper() override {} 29761: 29761: IOStatus Append(const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: IOStatus Append(const Slice& data, const IOOptions& options, 29761: const DataVerificationInfo& , 29761: IODebugContext* dbg) override { 29761: return Append(data, options, dbg); 29761: } 29761: 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: const DataVerificationInfo& , 29761: IODebugContext* dbg) override { 29761: return PositionedAppend(data, offset, options, dbg); 29761: } 29761: 29761: IOStatus Truncate(uint64_t size, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus InvalidateCache(size_t offset, size_t length) override; 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: SystemClock* clock_; 29761: 29761: std::string file_name_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSWritableFilePtr { 29761: public: 29761: FSWritableFilePtr(std::unique_ptr&& fs, 29761: const std::shared_ptr& io_tracer, 29761: const std::string& file_name) 29761: : io_tracer_(io_tracer) { 29761: fs_tracer_.reset(new FSWritableFileTracingWrapper( 29761: std::move(fs), io_tracer_, 29761: file_name.substr(file_name.find_last_of("/\\") + 29761: 1) )); 29761: } 29761: 29761: FSWritableFile* operator->() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return fs_tracer_.get(); 29761: } else { 29761: return fs_tracer_->target(); 29761: } 29761: } 29761: 29761: FSWritableFile* get() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return fs_tracer_.get(); 29761: } else if (fs_tracer_) { 29761: return fs_tracer_->target(); 29761: } else { 29761: return nullptr; 29761: } 29761: } 29761: 29761: void reset() { 29761: fs_tracer_.reset(); 29761: io_tracer_ = nullptr; 29761: } 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: std::unique_ptr fs_tracer_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSRandomRWFileTracingWrapper : public FSRandomRWFileOwnerWrapper { 29761: public: 29761: FSRandomRWFileTracingWrapper(std::unique_ptr&& t, 29761: std::shared_ptr io_tracer, 29761: const std::string& file_name) 29761: : FSRandomRWFileOwnerWrapper(std::move(t)), 29761: io_tracer_(io_tracer), 29761: clock_(SystemClock::Default().get()), 29761: file_name_(file_name) {} 29761: 29761: ~FSRandomRWFileTracingWrapper() override {} 29761: 29761: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override; 29761: 29761: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: SystemClock* clock_; 29761: 29761: std::string file_name_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class FSRandomRWFilePtr { 29761: public: 29761: FSRandomRWFilePtr(std::unique_ptr&& fs, 29761: std::shared_ptr io_tracer, 29761: const std::string& file_name) 29761: : io_tracer_(io_tracer), 29761: fs_tracer_(std::move(fs), io_tracer_, 29761: file_name.substr(file_name.find_last_of("/\\") + 29761: 1) ) {} 29761: 29761: FSRandomRWFile* operator->() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: FSRandomRWFile* get() const { 29761: if (io_tracer_ && io_tracer_->is_tracing_enabled()) { 29761: return const_cast(&fs_tracer_); 29761: } else { 29761: return fs_tracer_.target(); 29761: } 29761: } 29761: 29761: private: 29761: std::shared_ptr io_tracer_; 29761: FSRandomRWFileTracingWrapper fs_tracer_; 29761: }; 29761: 29761: } 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: class RateLimiter { 29761: public: 29761: enum class OpType { 29761: kRead, 29761: kWrite, 29761: }; 29761: 29761: enum class Mode { 29761: kReadsOnly = 0, 29761: kWritesOnly = 1, 29761: kAllIo = 2, 29761: }; 29761: 29761: 29761: explicit RateLimiter(Mode mode = Mode::kWritesOnly) : mode_(mode) {} 29761: 29761: virtual ~RateLimiter() {} 29761: 29761: 29761: 29761: virtual void SetBytesPerSecond(int64_t bytes_per_second) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status SetSingleBurstBytes(int64_t ) { 29761: return Status::NotSupported(); 29761: } 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: virtual void Request(const int64_t , const Env::IOPriority ) { 29761: 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: (static_cast ( 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: false 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: "false" 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: ; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 29761: Statistics* ) { 29761: 29761: 29761: Request(bytes, pri); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void Request(const int64_t bytes, const Env::IOPriority pri, 29761: Statistics* stats, OpType op_type) { 29761: if (IsRateLimited(op_type)) { 29761: Request(bytes, pri, stats); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual size_t RequestToken(size_t bytes, size_t alignment, 29761: Env::IOPriority io_priority, Statistics* stats, 29761: RateLimiter::OpType op_type); 29761: 29761: 29761: virtual int64_t GetSingleBurstBytes() const = 0; 29761: 29761: 29761: virtual int64_t GetTotalBytesThrough( 29761: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 29761: 29761: 29761: virtual int64_t GetTotalRequests( 29761: const Env::IOPriority pri = Env::IO_TOTAL) const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual Status GetTotalPendingRequests( 29761: int64_t* total_pending_requests, 29761: const Env::IOPriority pri = Env::IO_TOTAL) const { 29761: 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: (static_cast ( 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: total_pending_requests != nullptr 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: "total_pending_requests != nullptr" 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 116 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: ; 29761: (void)total_pending_requests; 29761: (void)pri; 29761: return Status::NotSupported(); 29761: } 29761: 29761: virtual int64_t GetBytesPerSecond() const = 0; 29761: 29761: virtual bool IsRateLimited(OpType op_type) { 29761: if ((mode_ == RateLimiter::Mode::kWritesOnly && 29761: op_type == RateLimiter::OpType::kRead) || 29761: (mode_ == RateLimiter::Mode::kReadsOnly && 29761: op_type == RateLimiter::OpType::kWrite)) { 29761: return false; 29761: } 29761: return true; 29761: } 29761: 29761: protected: 29761: Mode GetMode() { return mode_; } 29761: 29761: private: 29761: const Mode mode_; 29761: }; 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/rate_limiter.h" 29761: RateLimiter* NewGenericRateLimiter( 29761: int64_t rate_bytes_per_sec, int64_t refill_period_us = 100 * 1000, 29761: int32_t fairness = 10, 29761: RateLimiter::Mode mode = RateLimiter::Mode::kWritesOnly, 29761: bool auto_tuned = false, int64_t single_burst_bytes = 0); 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 2 29761: 29761: 29761: 29761: namespace rocksdb { 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: inline size_t TruncateToPageBoundary(size_t page_size, size_t s) { 29761: s -= (s & (page_size - 1)); 29761: 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: (s % page_size) == 0 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "(s % page_size) == 0" 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: return s; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: inline size_t Roundup(size_t x, size_t y) { return ((x + y - 1) / y) * y; } 29761: 29761: 29761: 29761: 29761: 29761: inline size_t Rounddown(size_t x, size_t y) { return (x / y) * y; } 29761: # 57 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: class AlignedBuffer { 29761: size_t alignment_; 29761: FSAllocationPtr buf_; 29761: size_t capacity_; 29761: size_t cursize_; 29761: char* bufstart_; 29761: 29761: public: 29761: AlignedBuffer() 29761: : alignment_(), capacity_(0), cursize_(0), bufstart_(nullptr) {} 29761: 29761: AlignedBuffer(AlignedBuffer&& o) noexcept { *this = std::move(o); } 29761: 29761: AlignedBuffer& operator=(AlignedBuffer&& o) noexcept { 29761: alignment_ = std::move(o.alignment_); 29761: buf_ = std::move(o.buf_); 29761: capacity_ = std::move(o.capacity_); 29761: cursize_ = std::move(o.cursize_); 29761: bufstart_ = std::move(o.bufstart_); 29761: return *this; 29761: } 29761: 29761: AlignedBuffer(const AlignedBuffer&) = delete; 29761: 29761: AlignedBuffer& operator=(const AlignedBuffer&) = delete; 29761: 29761: static bool isAligned(const void* ptr, size_t alignment) { 29761: return reinterpret_cast(ptr) % alignment == 0; 29761: } 29761: 29761: static bool isAligned(size_t n, size_t alignment) { 29761: return n % alignment == 0; 29761: } 29761: 29761: size_t Alignment() const { return alignment_; } 29761: 29761: size_t Capacity() const { return capacity_; } 29761: 29761: size_t CurrentSize() const { return cursize_; } 29761: 29761: const char* BufferStart() const { return bufstart_; } 29761: 29761: char* BufferStart() { return bufstart_; } 29761: 29761: void Clear() { cursize_ = 0; } 29761: 29761: FSAllocationPtr Release() { 29761: cursize_ = 0; 29761: capacity_ = 0; 29761: bufstart_ = nullptr; 29761: return std::move(buf_); 29761: } 29761: 29761: void Alignment(size_t alignment) { 29761: 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: alignment > 0 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "alignment > 0" 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 111 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: (alignment & (alignment - 1)) == 0 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "(alignment & (alignment - 1)) == 0" 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: alignment_ = alignment; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: void SetBuffer(Slice& result, FSAllocationPtr new_buf) { 29761: alignment_ = 1; 29761: capacity_ = result.size(); 29761: cursize_ = result.size(); 29761: buf_ = std::move(new_buf); 29761: 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: buf_.get() != nullptr 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "buf_.get() != nullptr" 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 125 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: 29761: 29761: bufstart_ = const_cast(result.data()); 29761: } 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: void AllocateNewBuffer(size_t requested_capacity, bool copy_data = false, 29761: uint64_t copy_offset = 0, size_t copy_len = 0) { 29761: 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: alignment_ > 0 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "alignment_ > 0" 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: (alignment_ & (alignment_ - 1)) == 0 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "(alignment_ & (alignment_ - 1)) == 0" 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 149 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: 29761: copy_len = copy_len > 0 ? copy_len : cursize_; 29761: if (copy_data && requested_capacity < copy_len) { 29761: 29761: 29761: return; 29761: } 29761: 29761: size_t new_capacity = Roundup(requested_capacity, alignment_); 29761: char* new_buf = new char[new_capacity + alignment_]; 29761: char* new_bufstart = reinterpret_cast( 29761: (reinterpret_cast(new_buf) + (alignment_ - 1)) & 29761: ~static_cast(alignment_ - 1)); 29761: 29761: if (copy_data) { 29761: 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_ 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "bufstart_ + copy_offset + copy_len <= bufstart_ + cursize_" 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 165 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: memcpy(new_bufstart, bufstart_ + copy_offset, copy_len); 29761: cursize_ = copy_len; 29761: } else { 29761: cursize_ = 0; 29761: } 29761: 29761: bufstart_ = new_bufstart; 29761: capacity_ = new_capacity; 29761: 29761: 29761: buf_ = std::unique_ptr>( 29761: static_cast(new_buf), 29761: [](void* p) { delete[] static_cast(p); }); 29761: } 29761: # 189 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: size_t Append(const char* src, size_t append_size) { 29761: size_t buffer_remaining = capacity_ - cursize_; 29761: size_t to_copy = std::min(append_size, buffer_remaining); 29761: 29761: if (to_copy > 0) { 29761: memcpy(bufstart_ + cursize_, src, to_copy); 29761: cursize_ += to_copy; 29761: } 29761: return to_copy; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t Read(char* dest, size_t offset, size_t read_size) const { 29761: 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: offset < cursize_ 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "offset < cursize_" 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: 29761: size_t to_read = 0; 29761: if (offset < cursize_) { 29761: to_read = std::min(cursize_ - offset, read_size); 29761: } 29761: if (to_read > 0) { 29761: memcpy(dest, bufstart_ + offset, to_read); 29761: } 29761: return to_read; 29761: } 29761: 29761: 29761: void PadToAlignmentWith(int padding) { 29761: size_t total_size = Roundup(cursize_, alignment_); 29761: size_t pad_size = total_size - cursize_; 29761: 29761: if (pad_size > 0) { 29761: 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: (pad_size + cursize_) <= capacity_ 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "(pad_size + cursize_) <= capacity_" 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: memset(bufstart_ + cursize_, padding, pad_size); 29761: cursize_ += pad_size; 29761: } 29761: } 29761: 29761: void PadWith(size_t pad_size, int padding) { 29761: 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: (static_cast ( 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: (pad_size + cursize_) <= capacity_ 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: "(pad_size + cursize_) <= capacity_" 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 232 "/build/reproducible-path/rocksdb-9.10.0/util/aligned_buffer.h" 29761: ; 29761: memset(bufstart_ + cursize_, padding, pad_size); 29761: cursize_ += pad_size; 29761: } 29761: 29761: 29761: void RefitTail(size_t tail_offset, size_t tail_size) { 29761: if (tail_size > 0) { 29761: memmove(bufstart_, bufstart_ + tail_offset, tail_size); 29761: } 29761: cursize_ = tail_size; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: char* Destination() { return bufstart_ + cursize_; } 29761: 29761: void Size(size_t cursize) { cursize_ = cursize; } 29761: }; 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 2 29761: 29761: namespace rocksdb { 29761: class Statistics; 29761: class HistogramImpl; 29761: class SystemClock; 29761: 29761: using AlignedBuf = FSAllocationPtr; 29761: 29761: 29761: FSReadRequest Align(const FSReadRequest& r, size_t alignment); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool TryMerge(FSReadRequest* dest, const FSReadRequest& src); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class RandomAccessFileReader { 29761: private: 29761: void NotifyOnFileReadFinish( 29761: uint64_t offset, size_t length, 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const Status& status) const { 29761: FileOperationInfo info(FileOperationType::kRead, file_name_, start_ts, 29761: finish_ts, status, file_temperature_); 29761: info.offset = offset; 29761: info.length = length; 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileReadFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: 29761: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 29761: const std::string& file_path, size_t length, 29761: uint64_t offset) const { 29761: if (listeners_.empty()) { 29761: return; 29761: } 29761: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnIOError(io_error_info); 29761: } 29761: io_status.PermitUncheckedError(); 29761: } 29761: 29761: 29761: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 29761: 29761: FSRandomAccessFilePtr file_; 29761: std::string file_name_; 29761: SystemClock* clock_; 29761: Statistics* stats_; 29761: uint32_t hist_type_; 29761: HistogramImpl* file_read_hist_; 29761: RateLimiter* rate_limiter_; 29761: std::vector> listeners_; 29761: const Temperature file_temperature_; 29761: const bool is_last_level_; 29761: 29761: struct ReadAsyncInfo { 29761: ReadAsyncInfo(std::function cb, void* cb_arg, 29761: uint64_t start_time) 29761: : cb_(cb), 29761: cb_arg_(cb_arg), 29761: start_time_(start_time), 29761: user_scratch_(nullptr), 29761: user_aligned_buf_(nullptr), 29761: user_offset_(0), 29761: user_len_(0), 29761: is_aligned_(false) {} 29761: 29761: std::function cb_; 29761: void* cb_arg_; 29761: uint64_t start_time_; 29761: FileOperationInfo::StartTimePoint fs_start_ts_; 29761: 29761: char* user_scratch_; 29761: AlignedBuf* user_aligned_buf_; 29761: uint64_t user_offset_; 29761: size_t user_len_; 29761: Slice user_result_; 29761: 29761: AlignedBuffer buf_; 29761: bool is_aligned_; 29761: }; 29761: 29761: public: 29761: explicit RandomAccessFileReader( 29761: std::unique_ptr&& raf, const std::string& _file_name, 29761: SystemClock* clock = nullptr, 29761: const std::shared_ptr& io_tracer = nullptr, 29761: Statistics* stats = nullptr, 29761: uint32_t hist_type = Histograms::HISTOGRAM_ENUM_MAX, 29761: HistogramImpl* file_read_hist = nullptr, 29761: RateLimiter* rate_limiter = nullptr, 29761: const std::vector>& listeners = {}, 29761: Temperature file_temperature = Temperature::kUnknown, 29761: bool is_last_level = false) 29761: : file_(std::move(raf), io_tracer, _file_name), 29761: file_name_(std::move(_file_name)), 29761: clock_(clock), 29761: stats_(stats), 29761: hist_type_(hist_type), 29761: file_read_hist_(file_read_hist), 29761: rate_limiter_(rate_limiter), 29761: listeners_(), 29761: file_temperature_(file_temperature), 29761: is_last_level_(is_last_level) { 29761: std::for_each(listeners.begin(), listeners.end(), 29761: [this](const std::shared_ptr& e) { 29761: if (e->ShouldBeNotifiedOnFileIO()) { 29761: listeners_.emplace_back(e); 29761: } 29761: }); 29761: } 29761: 29761: static IOStatus Create(const std::shared_ptr& fs, 29761: const std::string& fname, const FileOptions& file_opts, 29761: std::unique_ptr* reader, 29761: IODebugContext* dbg); 29761: RandomAccessFileReader(const RandomAccessFileReader&) = delete; 29761: RandomAccessFileReader& operator=(const RandomAccessFileReader&) = delete; 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/file/random_access_file_reader.h" 29761: IOStatus Read(const IOOptions& opts, uint64_t offset, size_t n, Slice* result, 29761: char* scratch, AlignedBuf* aligned_buf) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: IOStatus MultiRead(const IOOptions& opts, FSReadRequest* reqs, 29761: size_t num_reqs, AlignedBuf* aligned_buf) const; 29761: 29761: IOStatus Prefetch(const IOOptions& opts, uint64_t offset, size_t n) const { 29761: return file_->Prefetch(offset, n, opts, nullptr); 29761: } 29761: 29761: FSRandomAccessFile* file() { return file_.get(); } 29761: 29761: const std::string& file_name() const { return file_name_; } 29761: 29761: bool use_direct_io() const { return file_->use_direct_io(); } 29761: 29761: IOStatus PrepareIOOptions(const ReadOptions& ro, IOOptions& opts) const; 29761: 29761: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29761: std::function cb, 29761: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29761: AlignedBuf* aligned_buf); 29761: 29761: void ReadAsyncCallback(FSReadRequest& req, void* cb_arg); 29761: }; 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 1 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/options/db_options.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: class SystemClock; 29761: 29761: struct ImmutableDBOptions { 29761: static const char* kName() { return "ImmutableDBOptions"; } 29761: ImmutableDBOptions(); 29761: explicit ImmutableDBOptions(const DBOptions& options); 29761: 29761: void Dump(Logger* log) const; 29761: 29761: bool create_if_missing; 29761: bool create_missing_column_families; 29761: bool error_if_exists; 29761: bool paranoid_checks; 29761: bool flush_verify_memtable_count; 29761: bool compaction_verify_record_count; 29761: bool track_and_verify_wals_in_manifest; 29761: bool verify_sst_unique_id_in_manifest; 29761: Env* env; 29761: std::shared_ptr rate_limiter; 29761: std::shared_ptr sst_file_manager; 29761: std::shared_ptr info_log; 29761: InfoLogLevel info_log_level; 29761: int max_file_opening_threads; 29761: std::shared_ptr statistics; 29761: bool use_fsync; 29761: std::vector db_paths; 29761: std::string db_log_dir; 29761: 29761: 29761: 29761: std::string wal_dir; 29761: size_t max_log_file_size; 29761: size_t log_file_time_to_roll; 29761: size_t keep_log_file_num; 29761: size_t recycle_log_file_num; 29761: uint64_t max_manifest_file_size; 29761: int table_cache_numshardbits; 29761: uint64_t WAL_ttl_seconds; 29761: uint64_t WAL_size_limit_MB; 29761: uint64_t max_write_batch_group_size_bytes; 29761: size_t manifest_preallocation_size; 29761: bool allow_mmap_reads; 29761: bool allow_mmap_writes; 29761: bool use_direct_reads; 29761: bool use_direct_io_for_flush_and_compaction; 29761: bool allow_fallocate; 29761: bool is_fd_close_on_exec; 29761: bool advise_random_on_open; 29761: size_t db_write_buffer_size; 29761: std::shared_ptr write_buffer_manager; 29761: size_t random_access_max_buffer_size; 29761: bool use_adaptive_mutex; 29761: std::vector> listeners; 29761: bool enable_thread_tracking; 29761: bool enable_pipelined_write; 29761: bool unordered_write; 29761: bool allow_concurrent_memtable_write; 29761: bool enable_write_thread_adaptive_yield; 29761: uint64_t write_thread_max_yield_usec; 29761: uint64_t write_thread_slow_yield_usec; 29761: bool skip_stats_update_on_db_open; 29761: bool skip_checking_sst_file_sizes_on_db_open; 29761: WALRecoveryMode wal_recovery_mode; 29761: bool allow_2pc; 29761: std::shared_ptr row_cache; 29761: WalFilter* wal_filter; 29761: bool fail_if_options_file_error; 29761: bool dump_malloc_stats; 29761: bool avoid_flush_during_recovery; 29761: bool allow_ingest_behind; 29761: bool two_write_queues; 29761: bool manual_wal_flush; 29761: CompressionType wal_compression; 29761: bool background_close_inactive_wals; 29761: bool atomic_flush; 29761: bool avoid_unnecessary_blocking_io; 29761: bool prefix_seek_opt_in_only; 29761: bool persist_stats_to_disk; 29761: bool write_dbid_to_manifest; 29761: bool write_identity_file; 29761: size_t log_readahead_size; 29761: std::shared_ptr file_checksum_gen_factory; 29761: bool best_efforts_recovery; 29761: int max_bgerror_resume_count; 29761: uint64_t bgerror_resume_retry_interval; 29761: bool allow_data_in_errors; 29761: std::string db_host_id; 29761: FileTypeSet checksum_handoff_file_types; 29761: CacheTier lowest_used_cache_tier; 29761: std::shared_ptr compaction_service; 29761: bool enforce_single_del_contracts; 29761: uint64_t follower_refresh_catchup_period_ms; 29761: uint64_t follower_catchup_retry_count; 29761: uint64_t follower_catchup_retry_wait_ms; 29761: Temperature metadata_write_temperature; 29761: Temperature wal_write_temperature; 29761: 29761: 29761: 29761: std::shared_ptr fs; 29761: SystemClock* clock; 29761: Statistics* stats; 29761: Logger* logger; 29761: 29761: 29761: bool IsWalDirSameAsDBPath() const; 29761: bool IsWalDirSameAsDBPath(const std::string& path) const; 29761: const std::string& GetWalDir() const; 29761: const std::string& GetWalDir(const std::string& path) const; 29761: }; 29761: 29761: struct MutableDBOptions { 29761: static const char* kName() { return "MutableDBOptions"; } 29761: MutableDBOptions(); 29761: explicit MutableDBOptions(const DBOptions& options); 29761: 29761: void Dump(Logger* log) const; 29761: 29761: int max_background_jobs; 29761: int max_background_compactions; 29761: uint32_t max_subcompactions; 29761: bool avoid_flush_during_shutdown; 29761: size_t writable_file_max_buffer_size; 29761: uint64_t delayed_write_rate; 29761: uint64_t max_total_wal_size; 29761: uint64_t delete_obsolete_files_period_micros; 29761: unsigned int stats_dump_period_sec; 29761: unsigned int stats_persist_period_sec; 29761: size_t stats_history_buffer_size; 29761: int max_open_files; 29761: uint64_t bytes_per_sync; 29761: uint64_t wal_bytes_per_sync; 29761: bool strict_bytes_per_sync; 29761: size_t compaction_readahead_size; 29761: int max_background_flushes; 29761: std::string daily_offpeak_time_utc; 29761: }; 29761: 29761: Status GetStringFromMutableDBOptions(const ConfigOptions& config_options, 29761: const MutableDBOptions& mutable_opts, 29761: std::string* opt_string); 29761: 29761: Status GetMutableDBOptionsFromStrings( 29761: const MutableDBOptions& base_options, 29761: const std::unordered_map& options_map, 29761: MutableDBOptions* new_options); 29761: 29761: bool MutableDBOptionsAreEqual(const MutableDBOptions& this_options, 29761: const MutableDBOptions& that_options); 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/file/filename.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Env; 29761: class Directory; 29761: class SystemClock; 29761: class WritableFileWriter; 29761: 29761: 29761: 29761: 29761: constexpr char kFilePathSeparator = '/'; 29761: 29761: 29761: 29761: 29761: 29761: std::string LogFileName(const std::string& dbname, uint64_t number); 29761: 29761: std::string LogFileName(uint64_t number); 29761: 29761: std::string BlobFileName(uint64_t number); 29761: 29761: std::string BlobFileName(const std::string& bdirname, uint64_t number); 29761: 29761: std::string BlobFileName(const std::string& dbname, const std::string& blob_dir, 29761: uint64_t number); 29761: 29761: std::string ArchivalDirectory(const std::string& dbname); 29761: 29761: 29761: 29761: std::string ArchivedLogFileName(const std::string& dbname, uint64_t num); 29761: 29761: std::string MakeTableFileName(const std::string& name, uint64_t number); 29761: 29761: std::string MakeTableFileName(uint64_t number); 29761: 29761: 29761: 29761: std::string Rocks2LevelTableFileName(const std::string& fullname); 29761: 29761: 29761: 29761: uint64_t TableFileNameToNumber(const std::string& name); 29761: 29761: 29761: 29761: 29761: std::string TableFileName(const std::vector& db_paths, uint64_t number, 29761: uint32_t path_id); 29761: 29761: 29761: const size_t kFormatFileNumberBufSize = 38; 29761: 29761: void FormatFileNumber(uint64_t number, uint32_t path_id, char* out_buf, 29761: size_t out_buf_size); 29761: 29761: 29761: 29761: 29761: std::string DescriptorFileName(const std::string& dbname, uint64_t number); 29761: 29761: std::string DescriptorFileName(uint64_t number); 29761: 29761: extern const std::string kCurrentFileName; 29761: 29761: 29761: 29761: 29761: std::string CurrentFileName(const std::string& dbname); 29761: 29761: 29761: 29761: std::string LockFileName(const std::string& dbname); 29761: 29761: 29761: 29761: std::string TempFileName(const std::string& dbname, uint64_t number); 29761: 29761: 29761: struct InfoLogPrefix { 29761: char buf[260]; 29761: Slice prefix; 29761: 29761: explicit InfoLogPrefix(bool has_log_dir, const std::string& db_absolute_path); 29761: 29761: explicit InfoLogPrefix(); 29761: }; 29761: 29761: 29761: std::string InfoLogFileName(const std::string& dbname, 29761: const std::string& db_path = "", 29761: const std::string& log_dir = ""); 29761: 29761: 29761: std::string OldInfoLogFileName(const std::string& dbname, uint64_t ts, 29761: const std::string& db_path = "", 29761: const std::string& log_dir = ""); 29761: 29761: extern const std::string kOptionsFileNamePrefix; 29761: extern const std::string kTempFileNameSuffix; 29761: 29761: 29761: 29761: std::string OptionsFileName(const std::string& dbname, uint64_t file_num); 29761: std::string OptionsFileName(uint64_t file_num); 29761: 29761: 29761: 29761: std::string TempOptionsFileName(const std::string& dbname, uint64_t file_num); 29761: 29761: 29761: 29761: std::string MetaDatabaseName(const std::string& dbname, uint64_t number); 29761: 29761: 29761: 29761: 29761: std::string IdentityFileName(const std::string& dbname); 29761: 29761: 29761: 29761: 29761: 29761: bool ParseFileName(const std::string& filename, uint64_t* number, 29761: const Slice& info_log_name_prefix, FileType* type, 29761: WalFileType* log_type = nullptr); 29761: 29761: bool ParseFileName(const std::string& filename, uint64_t* number, 29761: FileType* type, WalFileType* log_type = nullptr); 29761: 29761: 29761: 29761: 29761: 29761: IOStatus SetCurrentFile(const WriteOptions& write_options, FileSystem* fs, 29761: const std::string& dbname, uint64_t descriptor_number, 29761: Temperature temp, 29761: FSDirectory* dir_contains_current_file); 29761: 29761: 29761: Status SetIdentityFile(const WriteOptions& write_options, Env* env, 29761: const std::string& dbname, Temperature temp, 29761: const std::string& db_id = {}); 29761: 29761: 29761: IOStatus SyncManifest(const ImmutableDBOptions* db_options, 29761: const WriteOptions& write_options, 29761: WritableFileWriter* file); 29761: 29761: 29761: 29761: 29761: 29761: Status GetInfoLogFiles(const std::shared_ptr& fs, 29761: const std::string& db_log_dir, const std::string& dbname, 29761: std::string* parent_dir, 29761: std::vector* file_names); 29761: 29761: std::string NormalizePath(const std::string& path); 29761: } 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 2 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/file/file_util.h" 29761: namespace rocksdb { 29761: 29761: 29761: IOStatus CopyFile(FileSystem* fs, const std::string& source, 29761: Temperature src_temp_hint, 29761: std::unique_ptr& dest_writer, 29761: uint64_t size, bool use_fsync, 29761: const std::shared_ptr& io_tracer); 29761: IOStatus CopyFile(FileSystem* fs, const std::string& source, 29761: Temperature src_temp_hint, const std::string& destination, 29761: Temperature dst_temp, uint64_t size, bool use_fsync, 29761: const std::shared_ptr& io_tracer); 29761: inline IOStatus CopyFile(const std::shared_ptr& fs, 29761: const std::string& source, Temperature src_temp_hint, 29761: const std::string& destination, Temperature dst_temp, 29761: uint64_t size, bool use_fsync, 29761: const std::shared_ptr& io_tracer) { 29761: return CopyFile(fs.get(), source, src_temp_hint, destination, dst_temp, size, 29761: use_fsync, io_tracer); 29761: } 29761: IOStatus CreateFile(FileSystem* fs, const std::string& destination, 29761: const std::string& contents, bool use_fsync); 29761: 29761: inline IOStatus CreateFile(const std::shared_ptr& fs, 29761: const std::string& destination, 29761: const std::string& contents, bool use_fsync) { 29761: return CreateFile(fs.get(), destination, contents, use_fsync); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status DeleteDBFile(const ImmutableDBOptions* db_options, 29761: const std::string& fname, const std::string& path_to_sync, 29761: const bool force_bg, const bool force_fg); 29761: 29761: 29761: 29761: 29761: 29761: Status DeleteUnaccountedDBFile(const ImmutableDBOptions* db_options, 29761: const std::string& fname, 29761: const std::string& dir_to_sync, 29761: const bool force_bg, const bool force_fg, 29761: std::optional bucket); 29761: 29761: 29761: IOStatus GenerateOneFileChecksum( 29761: FileSystem* fs, const std::string& file_path, 29761: FileChecksumGenFactory* checksum_factory, 29761: const std::string& requested_checksum_func_name, std::string* file_checksum, 29761: std::string* file_checksum_func_name, 29761: size_t verify_checksums_readahead_size, bool allow_mmap_reads, 29761: std::shared_ptr& io_tracer, RateLimiter* rate_limiter, 29761: const ReadOptions& read_options, Statistics* stats, SystemClock* clock); 29761: 29761: inline IOStatus PrepareIOFromReadOptions(const ReadOptions& ro, 29761: SystemClock* clock, IOOptions& opts) { 29761: if (ro.deadline.count()) { 29761: std::chrono::microseconds now = 29761: std::chrono::microseconds(clock->NowMicros()); 29761: 29761: 29761: if (now >= ro.deadline) { 29761: return IOStatus::TimedOut("Deadline exceeded"); 29761: } 29761: opts.timeout = ro.deadline - now; 29761: } 29761: 29761: if (ro.io_timeout.count() && 29761: (!opts.timeout.count() || ro.io_timeout < opts.timeout)) { 29761: opts.timeout = ro.io_timeout; 29761: } 29761: 29761: opts.rate_limiter_priority = ro.rate_limiter_priority; 29761: opts.io_activity = ro.io_activity; 29761: 29761: return IOStatus::OK(); 29761: } 29761: 29761: inline IOStatus PrepareIOFromWriteOptions(const WriteOptions& wo, 29761: IOOptions& opts) { 29761: opts.rate_limiter_priority = wo.rate_limiter_priority; 29761: opts.io_activity = wo.io_activity; 29761: 29761: return IOStatus::OK(); 29761: } 29761: 29761: 29761: 29761: Status DestroyDir(Env* env, const std::string& dir); 29761: 29761: inline bool CheckFSFeatureSupport(FileSystem* fs, FSSupportedOps feat) { 29761: int64_t supported_ops = 0; 29761: fs->SupportedOps(supported_ops); 29761: if (supported_ops & (1ULL << feat)) { 29761: return true; 29761: } 29761: return false; 29761: } 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 2 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: namespace rocksdb { 29761: # 39 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: template 29761: class autovector { 29761: public: 29761: 29761: using value_type = T; 29761: using difference_type = typename std::vector::difference_type; 29761: using size_type = typename std::vector::size_type; 29761: using reference = value_type&; 29761: using const_reference = const value_type&; 29761: using pointer = value_type*; 29761: using const_pointer = const value_type*; 29761: 29761: 29761: template 29761: class iterator_impl { 29761: public: 29761: 29761: using self_type = iterator_impl; 29761: using value_type = TValueType; 29761: using reference = TValueType&; 29761: using pointer = TValueType*; 29761: using difference_type = typename TAutoVector::difference_type; 29761: using iterator_category = std::random_access_iterator_tag; 29761: 29761: iterator_impl(TAutoVector* vect, size_t index) 29761: : vect_(vect), index_(index){} 29761: iterator_impl(const iterator_impl&) = default; 29761: ~iterator_impl() {} 29761: iterator_impl& operator=(const iterator_impl&) = default; 29761: 29761: 29761: 29761: self_type& operator++() { 29761: ++index_; 29761: return *this; 29761: } 29761: 29761: 29761: self_type operator++(int) { 29761: auto old = *this; 29761: ++index_; 29761: return old; 29761: } 29761: 29761: 29761: self_type& operator--() { 29761: --index_; 29761: return *this; 29761: } 29761: 29761: 29761: self_type operator--(int) { 29761: auto old = *this; 29761: --index_; 29761: return old; 29761: } 29761: 29761: self_type operator-(difference_type len) const { 29761: return self_type(vect_, index_ - len); 29761: } 29761: 29761: difference_type operator-(const self_type& other) const { 29761: 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ - other.index_; 29761: } 29761: 29761: self_type operator+(difference_type len) const { 29761: return self_type(vect_, index_ + len); 29761: } 29761: 29761: self_type& operator+=(difference_type len) { 29761: index_ += len; 29761: return *this; 29761: } 29761: 29761: self_type& operator-=(difference_type len) { 29761: index_ -= len; 29761: return *this; 29761: } 29761: 29761: 29761: reference operator*() const { 29761: 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_->size() >= index_ 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_->size() >= index_" 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return (*vect_)[index_]; 29761: } 29761: 29761: pointer operator->() const { 29761: 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_->size() >= index_ 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_->size() >= index_" 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return &(*vect_)[index_]; 29761: } 29761: 29761: reference operator[](difference_type len) const { return *(*this + len); } 29761: 29761: 29761: bool operator==(const self_type& other) const { 29761: 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ == other.index_; 29761: } 29761: 29761: bool operator!=(const self_type& other) const { return !(*this == other); } 29761: 29761: bool operator>(const self_type& other) const { 29761: 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ > other.index_; 29761: } 29761: 29761: bool operator<(const self_type& other) const { 29761: 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ < other.index_; 29761: } 29761: 29761: bool operator>=(const self_type& other) const { 29761: 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ >= other.index_; 29761: } 29761: 29761: bool operator<=(const self_type& other) const { 29761: 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: vect_ == other.vect_ 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "vect_ == other.vect_" 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return index_ <= other.index_; 29761: } 29761: 29761: private: 29761: TAutoVector* vect_ = nullptr; 29761: size_t index_ = 0; 29761: }; 29761: 29761: using iterator = iterator_impl; 29761: using const_iterator = iterator_impl; 29761: using reverse_iterator = std::reverse_iterator; 29761: using const_reverse_iterator = std::reverse_iterator; 29761: 29761: autovector() : values_(reinterpret_cast(buf_)) {} 29761: 29761: autovector(std::initializer_list init_list) 29761: : values_(reinterpret_cast(buf_)) { 29761: for (const T& item : init_list) { 29761: push_back(item); 29761: } 29761: } 29761: 29761: ~autovector() { clear(); } 29761: 29761: 29761: 29761: bool only_in_stack() const { 29761: 29761: return vect_.capacity() == 0; 29761: } 29761: 29761: size_type size() const { return num_stack_items_ + vect_.size(); } 29761: 29761: 29761: 29761: void resize(size_type n) { 29761: if (n > kSize) { 29761: vect_.resize(n - kSize); 29761: while (num_stack_items_ < kSize) { 29761: new ((void*)(&values_[num_stack_items_++])) value_type(); 29761: } 29761: num_stack_items_ = kSize; 29761: } else { 29761: vect_.clear(); 29761: while (num_stack_items_ < n) { 29761: new ((void*)(&values_[num_stack_items_++])) value_type(); 29761: } 29761: while (num_stack_items_ > n) { 29761: values_[--num_stack_items_].~value_type(); 29761: } 29761: } 29761: } 29761: 29761: bool empty() const { return size() == 0; } 29761: 29761: size_type capacity() const { return kSize + vect_.capacity(); } 29761: 29761: void reserve(size_t cap) { 29761: if (cap > kSize) { 29761: vect_.reserve(cap - kSize); 29761: } 29761: 29761: 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: cap <= capacity() 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "cap <= capacity()" 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 219 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: } 29761: 29761: const_reference operator[](size_type n) const { 29761: 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: n < size() 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "n < size()" 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 223 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: if (n < kSize) { 29761: return values_[n]; 29761: } 29761: return vect_[n - kSize]; 29761: } 29761: 29761: reference operator[](size_type n) { 29761: 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: n < size() 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "n < size()" 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 231 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: if (n < kSize) { 29761: return values_[n]; 29761: } 29761: return vect_[n - kSize]; 29761: } 29761: 29761: const_reference at(size_type n) const { 29761: 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: n < size() 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "n < size()" 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 239 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return (*this)[n]; 29761: } 29761: 29761: reference at(size_type n) { 29761: 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: n < size() 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "n < size()" 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return (*this)[n]; 29761: } 29761: 29761: reference front() { 29761: 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: !empty() 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "!empty()" 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 249 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return *begin(); 29761: } 29761: 29761: const_reference front() const { 29761: 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: !empty() 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "!empty()" 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return *begin(); 29761: } 29761: 29761: reference back() { 29761: 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: !empty() 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "!empty()" 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 259 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return *(end() - 1); 29761: } 29761: 29761: const_reference back() const { 29761: 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: !empty() 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "!empty()" 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: return *(end() - 1); 29761: } 29761: 29761: 29761: void push_back(T&& item) { 29761: if (num_stack_items_ < kSize) { 29761: new ((void*)(&values_[num_stack_items_])) value_type(); 29761: values_[num_stack_items_++] = std::move(item); 29761: } else { 29761: vect_.push_back(item); 29761: } 29761: } 29761: 29761: void push_back(const T& item) { 29761: if (num_stack_items_ < kSize) { 29761: new ((void*)(&values_[num_stack_items_])) value_type(); 29761: values_[num_stack_items_++] = item; 29761: } else { 29761: vect_.push_back(item); 29761: } 29761: } 29761: 29761: template 29761: # 298 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: void emplace_back(Args&&... args) { 29761: if (num_stack_items_ < kSize) { 29761: new ((void*)(&values_[num_stack_items_++])) 29761: value_type(std::forward(args)...); 29761: } else { 29761: vect_.emplace_back(std::forward(args)...); 29761: } 29761: } 29761: 29761: 29761: void pop_back() { 29761: 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: (static_cast ( 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: !empty() 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: "!empty()" 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/util/autovector.h" 29761: ; 29761: if (!vect_.empty()) { 29761: vect_.pop_back(); 29761: } else { 29761: values_[--num_stack_items_].~value_type(); 29761: } 29761: } 29761: 29761: void clear() { 29761: while (num_stack_items_ > 0) { 29761: values_[--num_stack_items_].~value_type(); 29761: } 29761: vect_.clear(); 29761: } 29761: 29761: 29761: autovector& assign(const autovector& other); 29761: 29761: autovector(const autovector& other) { assign(other); } 29761: 29761: autovector& operator=(const autovector& other) { return assign(other); } 29761: 29761: autovector(autovector&& other) noexcept { *this = std::move(other); } 29761: autovector& operator=(autovector&& other); 29761: 29761: 29761: iterator begin() { return iterator(this, 0); } 29761: 29761: const_iterator begin() const { return const_iterator(this, 0); } 29761: 29761: iterator end() { return iterator(this, this->size()); } 29761: 29761: const_iterator end() const { return const_iterator(this, this->size()); } 29761: 29761: reverse_iterator rbegin() { return reverse_iterator(end()); } 29761: 29761: const_reverse_iterator rbegin() const { 29761: return const_reverse_iterator(end()); 29761: } 29761: 29761: reverse_iterator rend() { return reverse_iterator(begin()); } 29761: 29761: const_reverse_iterator rend() const { 29761: return const_reverse_iterator(begin()); 29761: } 29761: 29761: private: 29761: size_type num_stack_items_ = 0; 29761: alignas(alignof( 29761: value_type)) char buf_[kSize * 29761: sizeof(value_type)]; 29761: pointer values_; 29761: 29761: std::vector vect_; 29761: }; 29761: 29761: template 29761: autovector& autovector::assign( 29761: const autovector& other) { 29761: values_ = reinterpret_cast(buf_); 29761: 29761: vect_.assign(other.vect_.begin(), other.vect_.end()); 29761: 29761: 29761: num_stack_items_ = other.num_stack_items_; 29761: for (size_t i = 0; i < num_stack_items_; ++i) { 29761: new ((void*)(&values_[i])) value_type(); 29761: } 29761: std::copy(other.values_, other.values_ + num_stack_items_, values_); 29761: 29761: return *this; 29761: } 29761: 29761: template 29761: autovector& autovector::operator=( 29761: autovector&& other) { 29761: values_ = reinterpret_cast(buf_); 29761: vect_ = std::move(other.vect_); 29761: size_t n = other.num_stack_items_; 29761: num_stack_items_ = n; 29761: other.num_stack_items_ = 0; 29761: for (size_t i = 0; i < n; ++i) { 29761: new ((void*)(&values_[i])) value_type(); 29761: values_[i] = std::move(other.values_[i]); 29761: } 29761: return *this; 29761: } 29761: 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: struct IOOptions; 29761: class RandomAccessFileReader; 29761: 29761: struct ReadaheadParams { 29761: ReadaheadParams() {} 29761: 29761: 29761: size_t initial_readahead_size = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t max_readahead_size = 0; 29761: 29761: 29761: 29761: bool implicit_auto_readahead = false; 29761: 29761: 29761: uint64_t num_file_reads = 0; 29761: uint64_t num_file_reads_for_auto_readahead = 0; 29761: 29761: 29761: 29761: size_t num_buffers = 1; 29761: }; 29761: 29761: struct BufferInfo { 29761: void ClearBuffer() { 29761: buffer_.Clear(); 29761: initial_end_offset_ = 0; 29761: async_req_len_ = 0; 29761: } 29761: 29761: AlignedBuffer buffer_; 29761: 29761: uint64_t offset_ = 0; 29761: 29761: 29761: 29761: size_t async_req_len_ = 0; 29761: 29761: 29761: 29761: bool async_read_in_progress_ = false; 29761: 29761: 29761: 29761: void* io_handle_ = nullptr; 29761: 29761: IOHandleDeleter del_fn_ = nullptr; 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: uint64_t initial_end_offset_ = 0; 29761: 29761: bool IsDataBlockInBuffer(uint64_t offset, size_t length) { 29761: 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: async_read_in_progress_ == false 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "async_read_in_progress_ == false" 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: return (offset >= offset_ && 29761: offset + length <= offset_ + buffer_.CurrentSize()); 29761: } 29761: 29761: bool IsOffsetInBuffer(uint64_t offset) { 29761: 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: async_read_in_progress_ == false 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "async_read_in_progress_ == false" 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 107 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: return (offset >= offset_ && offset < offset_ + buffer_.CurrentSize()); 29761: } 29761: 29761: bool DoesBufferContainData() { 29761: 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: async_read_in_progress_ == false 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "async_read_in_progress_ == false" 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 112 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: return buffer_.CurrentSize() > 0; 29761: } 29761: 29761: bool IsBufferOutdated(uint64_t offset) { 29761: return (!async_read_in_progress_ && DoesBufferContainData() && 29761: offset >= offset_ + buffer_.CurrentSize()); 29761: } 29761: 29761: bool IsBufferOutdatedWithAsyncProgress(uint64_t offset) { 29761: return (async_read_in_progress_ && io_handle_ != nullptr && 29761: offset >= offset_ + async_req_len_); 29761: } 29761: 29761: bool IsOffsetInBufferWithAsyncProgress(uint64_t offset) { 29761: return (async_read_in_progress_ && offset >= offset_ && 29761: offset < offset_ + async_req_len_); 29761: } 29761: 29761: size_t CurrentSize() { return buffer_.CurrentSize(); } 29761: }; 29761: 29761: enum class FilePrefetchBufferUsage { 29761: kTableOpenPrefetchTail, 29761: kUserScanPrefetch, 29761: kUnknown, 29761: }; 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: class FilePrefetchBuffer { 29761: public: 29761: # 186 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: FilePrefetchBuffer( 29761: const ReadaheadParams& readahead_params = {}, bool enable = true, 29761: bool track_min_offset = false, FileSystem* fs = nullptr, 29761: SystemClock* clock = nullptr, Statistics* stats = nullptr, 29761: const std::function& cb = nullptr, 29761: FilePrefetchBufferUsage usage = FilePrefetchBufferUsage::kUnknown) 29761: : readahead_size_(readahead_params.initial_readahead_size), 29761: initial_auto_readahead_size_(readahead_params.initial_readahead_size), 29761: max_readahead_size_(readahead_params.max_readahead_size), 29761: min_offset_read_(std::numeric_limits::max()), 29761: enable_(enable), 29761: track_min_offset_(track_min_offset), 29761: implicit_auto_readahead_(readahead_params.implicit_auto_readahead), 29761: prev_offset_(0), 29761: prev_len_(0), 29761: num_file_reads_for_auto_readahead_( 29761: readahead_params.num_file_reads_for_auto_readahead), 29761: num_file_reads_(readahead_params.num_file_reads), 29761: explicit_prefetch_submitted_(false), 29761: fs_(fs), 29761: clock_(clock), 29761: stats_(stats), 29761: usage_(usage), 29761: readaheadsize_cb_(cb), 29761: num_buffers_(readahead_params.num_buffers) { 29761: 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: (num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0) 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "(num_file_reads_ >= num_file_reads_for_auto_readahead_ + 1) || (num_file_reads_ == 0)" 29761: # 211 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: 29761: # 212 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (num_buffers_ > 1 || 29761: (fs_ != nullptr && 29761: CheckFSFeatureSupport(fs_, FSSupportedOps::kFSBuffer))) { 29761: overlap_buf_ = new BufferInfo(); 29761: } 29761: 29761: free_bufs_.resize(num_buffers_); 29761: for (uint32_t i = 0; i < num_buffers_; i++) { 29761: free_bufs_[i] = new BufferInfo(); 29761: } 29761: } 29761: 29761: ~FilePrefetchBuffer() { 29761: 29761: if (fs_ != nullptr) { 29761: std::vector handles; 29761: for (auto& buf : bufs_) { 29761: if (buf->async_read_in_progress_ && buf->io_handle_ != nullptr) { 29761: handles.emplace_back(buf->io_handle_); 29761: } 29761: } 29761: if (!handles.empty()) { 29761: StopWatch sw(clock_, stats_, ASYNC_PREFETCH_ABORT_MICROS); 29761: Status s = fs_->AbortIO(handles); 29761: 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: s.ok() 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "s.ok()" 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 244 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: } 29761: 29761: for (auto& buf : bufs_) { 29761: if (buf->io_handle_ != nullptr) { 29761: DestroyAndClearIOHandle(buf); 29761: buf->ClearBuffer(); 29761: } 29761: buf->async_read_in_progress_ = false; 29761: } 29761: } 29761: 29761: 29761: uint64_t bytes_discarded = 0; 29761: 29761: for (auto& buf : bufs_) { 29761: if (buf->DoesBufferContainData()) { 29761: 29761: if (prev_offset_ >= buf->offset_ && 29761: prev_offset_ + prev_len_ < buf->offset_ + buf->CurrentSize()) { 29761: bytes_discarded += 29761: buf->CurrentSize() - (prev_offset_ + prev_len_ - buf->offset_); 29761: } 29761: 29761: else if (prev_offset_ < buf->offset_ && 29761: prev_offset_ + prev_len_ <= buf->offset_) { 29761: bytes_discarded += buf->CurrentSize(); 29761: } 29761: } 29761: } 29761: 29761: RecordInHistogram(stats_, PREFETCHED_BYTES_DISCARDED, bytes_discarded); 29761: 29761: for (auto& buf : bufs_) { 29761: delete buf; 29761: buf = nullptr; 29761: } 29761: 29761: for (auto& buf : free_bufs_) { 29761: delete buf; 29761: buf = nullptr; 29761: } 29761: 29761: if (overlap_buf_ != nullptr) { 29761: delete overlap_buf_; 29761: overlap_buf_ = nullptr; 29761: } 29761: } 29761: 29761: bool Enabled() const { return enable_; } 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: Status Prefetch(const IOOptions& opts, RandomAccessFileReader* reader, 29761: uint64_t offset, size_t n); 29761: # 316 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: Status PrefetchAsync(const IOOptions& opts, RandomAccessFileReader* reader, 29761: uint64_t offset, size_t n, Slice* result); 29761: # 332 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: bool TryReadFromCache(const IOOptions& opts, RandomAccessFileReader* reader, 29761: uint64_t offset, size_t n, Slice* result, Status* s, 29761: bool for_compaction = false); 29761: 29761: 29761: 29761: size_t min_offset_read() const { return min_offset_read_; } 29761: 29761: size_t GetPrefetchOffset() const { return bufs_.front()->offset_; } 29761: 29761: 29761: void UpdateReadPattern(const uint64_t& offset, const size_t& len, 29761: bool decrease_readaheadsize) { 29761: if (decrease_readaheadsize) { 29761: DecreaseReadAheadIfEligible(offset, len); 29761: } 29761: prev_offset_ = offset; 29761: prev_len_ = len; 29761: explicit_prefetch_submitted_ = false; 29761: } 29761: 29761: void GetReadaheadState(ReadaheadFileInfo::ReadaheadInfo* readahead_info) { 29761: readahead_info->readahead_size = readahead_size_; 29761: readahead_info->num_file_reads = num_file_reads_; 29761: } 29761: 29761: void DecreaseReadAheadIfEligible(uint64_t offset, size_t size, 29761: size_t value = 8 * 1024) { 29761: if (bufs_.empty()) { 29761: return; 29761: } 29761: # 374 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: size_t curr_size = bufs_.front()->async_read_in_progress_ 29761: ? bufs_.front()->async_req_len_ 29761: : bufs_.front()->CurrentSize(); 29761: if (implicit_auto_readahead_ && readahead_size_ > 0) { 29761: if ((offset + size > bufs_.front()->offset_ + curr_size) && 29761: IsBlockSequential(offset) && 29761: (num_file_reads_ + 1 > num_file_reads_for_auto_readahead_)) { 29761: readahead_size_ = 29761: std::max(initial_auto_readahead_size_, 29761: (readahead_size_ >= value ? readahead_size_ - value : 0)); 29761: } 29761: } 29761: } 29761: 29761: 29761: void PrefetchAsyncCallback(FSReadRequest& req, void* cb_arg); 29761: 29761: void TEST_GetBufferOffsetandSize( 29761: std::vector>& buffer_info) { 29761: for (size_t i = 0; i < bufs_.size(); i++) { 29761: std::get<0>(buffer_info[i]) = bufs_[i]->offset_; 29761: std::get<1>(buffer_info[i]) = bufs_[i]->async_read_in_progress_ 29761: ? bufs_[i]->async_req_len_ 29761: : bufs_[i]->CurrentSize(); 29761: std::get<2>(buffer_info[i]) = bufs_[i]->async_read_in_progress_; 29761: } 29761: } 29761: 29761: void TEST_GetOverlapBufferOffsetandSize( 29761: std::pair& buffer_info) { 29761: if (overlap_buf_ != nullptr) { 29761: buffer_info.first = overlap_buf_->offset_; 29761: buffer_info.second = overlap_buf_->CurrentSize(); 29761: } 29761: } 29761: 29761: private: 29761: 29761: 29761: 29761: void PrepareBufferForRead(BufferInfo* buf, size_t alignment, uint64_t offset, 29761: size_t roundup_len, bool refit_tail, 29761: bool use_fs_buffer, uint64_t& aligned_useful_len); 29761: 29761: void AbortOutdatedIO(uint64_t offset); 29761: 29761: void AbortAllIOs(); 29761: 29761: void ClearOutdatedData(uint64_t offset, size_t len); 29761: 29761: 29761: void PollIfNeeded(uint64_t offset, size_t len); 29761: 29761: Status PrefetchInternal(const IOOptions& opts, RandomAccessFileReader* reader, 29761: uint64_t offset, size_t length, size_t readahead_size, 29761: bool& copy_to_third_buffer); 29761: 29761: Status Read(BufferInfo* buf, const IOOptions& opts, 29761: RandomAccessFileReader* reader, uint64_t read_len, 29761: uint64_t aligned_useful_len, uint64_t start_offset, 29761: bool use_fs_buffer); 29761: 29761: Status ReadAsync(BufferInfo* buf, const IOOptions& opts, 29761: RandomAccessFileReader* reader, uint64_t read_len, 29761: uint64_t start_offset); 29761: 29761: 29761: void CopyDataToOverlapBuffer(BufferInfo* src, uint64_t& offset, 29761: size_t& length); 29761: 29761: bool IsBlockSequential(const size_t& offset) { 29761: return (prev_len_ == 0 || (prev_offset_ + prev_len_ == offset)); 29761: } 29761: 29761: 29761: void ResetValues() { 29761: num_file_reads_ = 1; 29761: readahead_size_ = initial_auto_readahead_size_; 29761: } 29761: 29761: 29761: bool IsEligibleForPrefetch(uint64_t offset, size_t n) { 29761: 29761: 29761: if (!IsBlockSequential(offset)) { 29761: UpdateReadPattern(offset, n, false ); 29761: ResetValues(); 29761: return false; 29761: } 29761: num_file_reads_++; 29761: 29761: 29761: 29761: 29761: if (explicit_prefetch_submitted_) { 29761: return true; 29761: } 29761: if (num_file_reads_ <= num_file_reads_for_auto_readahead_) { 29761: UpdateReadPattern(offset, n, false ); 29761: return false; 29761: } 29761: return true; 29761: } 29761: 29761: bool IsEligibleForFurtherPrefetching() { 29761: if (free_bufs_.empty()) { 29761: return false; 29761: } 29761: 29761: if (readahead_size_ == 0) { 29761: return false; 29761: } 29761: return true; 29761: } 29761: 29761: 29761: 29761: 29761: bool UseFSBuffer(RandomAccessFileReader* reader) { 29761: return reader->file() != nullptr && !reader->use_direct_io() && 29761: fs_ != nullptr && 29761: CheckFSFeatureSupport(fs_, FSSupportedOps::kFSBuffer) && 29761: num_buffers_ == 1; 29761: } 29761: 29761: 29761: 29761: 29761: size_t GetRequiredBufferAlignment(RandomAccessFileReader* reader) { 29761: if (UseFSBuffer(reader)) { 29761: return 1; 29761: } 29761: return reader->file()->GetRequiredBufferAlignment(); 29761: } 29761: 29761: 29761: IOStatus FSBufferDirectRead(RandomAccessFileReader* reader, BufferInfo* buf, 29761: const IOOptions& opts, uint64_t offset, size_t n, 29761: Slice& result) { 29761: FSReadRequest read_req; 29761: read_req.offset = offset; 29761: read_req.len = n; 29761: read_req.scratch = nullptr; 29761: IOStatus s = reader->MultiRead(opts, &read_req, 1, nullptr); 29761: if (!s.ok()) { 29761: return s; 29761: } 29761: s = read_req.status; 29761: if (!s.ok()) { 29761: return s; 29761: } 29761: buf->buffer_.SetBuffer(read_req.result, std::move(read_req.fs_scratch)); 29761: buf->offset_ = offset; 29761: buf->initial_end_offset_ = offset + read_req.result.size(); 29761: result = read_req.result; 29761: return s; 29761: } 29761: 29761: void DestroyAndClearIOHandle(BufferInfo* buf) { 29761: if (buf->io_handle_ != nullptr && buf->del_fn_ != nullptr) { 29761: buf->del_fn_(buf->io_handle_); 29761: buf->io_handle_ = nullptr; 29761: buf->del_fn_ = nullptr; 29761: } 29761: buf->async_read_in_progress_ = false; 29761: } 29761: 29761: void HandleOverlappingSyncData(uint64_t offset, size_t length, 29761: uint64_t& tmp_offset, size_t& tmp_length, 29761: bool& use_overlap_buffer); 29761: 29761: Status HandleOverlappingAsyncData(const IOOptions& opts, 29761: RandomAccessFileReader* reader, 29761: uint64_t offset, size_t length, 29761: size_t readahead_size, 29761: bool& copy_to_third_buffer, 29761: uint64_t& tmp_offset, size_t& tmp_length); 29761: 29761: bool TryReadFromCacheUntracked(const IOOptions& opts, 29761: RandomAccessFileReader* reader, 29761: uint64_t offset, size_t n, Slice* result, 29761: Status* s, bool for_compaction = false); 29761: 29761: void ReadAheadSizeTuning(BufferInfo* buf, bool read_curr_block, 29761: bool refit_tail, bool use_fs_buffer, 29761: uint64_t prev_buf_end_offset, size_t alignment, 29761: size_t length, size_t readahead_size, 29761: uint64_t& offset, uint64_t& end_offset, 29761: size_t& read_len, uint64_t& aligned_useful_len); 29761: 29761: void UpdateStats(bool found_in_buffer, size_t length_found) { 29761: if (found_in_buffer) { 29761: RecordTick(stats_, PREFETCH_HITS); 29761: } 29761: if (length_found > 0) { 29761: RecordTick(stats_, PREFETCH_BYTES_USEFUL, length_found); 29761: } 29761: } 29761: 29761: void UpdateReadAheadTrimmedStat(size_t initial_length, 29761: size_t updated_length) { 29761: if (initial_length != updated_length) { 29761: RecordTick(stats_, READAHEAD_TRIMMED); 29761: } 29761: } 29761: 29761: Status PrefetchRemBuffers(const IOOptions& opts, 29761: RandomAccessFileReader* reader, 29761: uint64_t end_offset1, size_t alignment, 29761: size_t readahead_size); 29761: 29761: 29761: bool IsBufferQueueEmpty() { return bufs_.empty(); } 29761: 29761: BufferInfo* GetFirstBuffer() { return bufs_.front(); } 29761: 29761: BufferInfo* GetLastBuffer() { return bufs_.back(); } 29761: 29761: size_t NumBuffersAllocated() { return bufs_.size(); } 29761: 29761: void AllocateBuffer() { 29761: 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: (static_cast ( 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: !free_bufs_.empty() 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: "!free_bufs_.empty()" 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 595 "/build/reproducible-path/rocksdb-9.10.0/file/file_prefetch_buffer.h" 29761: ; 29761: BufferInfo* buf = free_bufs_.front(); 29761: free_bufs_.pop_front(); 29761: bufs_.emplace_back(buf); 29761: } 29761: 29761: void AllocateBufferIfEmpty() { 29761: if (bufs_.empty()) { 29761: AllocateBuffer(); 29761: } 29761: } 29761: 29761: void FreeFrontBuffer() { 29761: BufferInfo* buf = bufs_.front(); 29761: buf->ClearBuffer(); 29761: bufs_.pop_front(); 29761: free_bufs_.emplace_back(buf); 29761: } 29761: 29761: void FreeLastBuffer() { 29761: BufferInfo* buf = bufs_.back(); 29761: buf->ClearBuffer(); 29761: bufs_.pop_back(); 29761: free_bufs_.emplace_back(buf); 29761: } 29761: 29761: void FreeAllBuffers() { 29761: while (!bufs_.empty()) { 29761: BufferInfo* buf = bufs_.front(); 29761: buf->ClearBuffer(); 29761: bufs_.pop_front(); 29761: free_bufs_.emplace_back(buf); 29761: } 29761: } 29761: 29761: void FreeEmptyBuffers() { 29761: if (bufs_.empty()) { 29761: return; 29761: } 29761: 29761: std::deque tmp_buf; 29761: while (!bufs_.empty()) { 29761: BufferInfo* buf = bufs_.front(); 29761: bufs_.pop_front(); 29761: if (buf->async_read_in_progress_ || buf->DoesBufferContainData()) { 29761: tmp_buf.emplace_back(buf); 29761: } else { 29761: free_bufs_.emplace_back(buf); 29761: } 29761: } 29761: bufs_ = tmp_buf; 29761: } 29761: 29761: 29761: 29761: std::deque bufs_; 29761: std::deque free_bufs_; 29761: BufferInfo* overlap_buf_ = nullptr; 29761: 29761: size_t readahead_size_; 29761: size_t initial_auto_readahead_size_; 29761: 29761: 29761: size_t max_readahead_size_; 29761: 29761: 29761: size_t min_offset_read_; 29761: 29761: 29761: bool enable_; 29761: 29761: 29761: bool track_min_offset_; 29761: 29761: 29761: 29761: bool implicit_auto_readahead_; 29761: uint64_t prev_offset_; 29761: size_t prev_len_; 29761: 29761: 29761: uint64_t num_file_reads_for_auto_readahead_; 29761: uint64_t num_file_reads_; 29761: 29761: 29761: 29761: 29761: 29761: bool explicit_prefetch_submitted_; 29761: 29761: FileSystem* fs_; 29761: SystemClock* clock_; 29761: Statistics* stats_; 29761: 29761: FilePrefetchBufferUsage usage_; 29761: 29761: std::function readaheadsize_cb_; 29761: 29761: 29761: 29761: size_t num_buffers_; 29761: }; 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_allocator_impl.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: struct CustomDeleter { 29761: CustomDeleter(MemoryAllocator* a = nullptr) : allocator(a) {} 29761: 29761: void operator()(char* ptr) const { 29761: if (allocator) { 29761: allocator->Deallocate(ptr); 29761: } else { 29761: delete[] ptr; 29761: } 29761: } 29761: 29761: MemoryAllocator* allocator; 29761: }; 29761: 29761: using CacheAllocationPtr = std::unique_ptr; 29761: 29761: inline CacheAllocationPtr AllocateBlock(size_t size, 29761: MemoryAllocator* allocator) { 29761: if (allocator) { 29761: auto block = reinterpret_cast(allocator->Allocate(size)); 29761: return CacheAllocationPtr(block, allocator); 29761: } 29761: return CacheAllocationPtr(new char[size]); 29761: } 29761: 29761: inline CacheAllocationPtr AllocateAndCopyBlock(const Slice& data, 29761: MemoryAllocator* allocator) { 29761: CacheAllocationPtr cap = AllocateBlock(data.size(), allocator); 29761: std::copy_n(data.data(), data.size(), cap.get()); 29761: return cap; 29761: } 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/malloc.h" 1 3 4 29761: # 24 "/usr/include/malloc.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 25 "/usr/include/malloc.h" 2 3 4 29761: # 36 "/usr/include/malloc.h" 3 4 29761: 29761: # 36 "/usr/include/malloc.h" 3 4 29761: extern "C" { 29761: 29761: 29761: extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29761: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern void *calloc (size_t __nmemb, size_t __size) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void *realloc (void *__ptr, size_t __size) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) 29761: __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: extern void free (void *__ptr) noexcept (true); 29761: 29761: 29761: extern void *memalign (size_t __alignment, size_t __size) 29761: noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) 29761: __attribute__ ((__alloc_size__ (2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29761: __attribute__ ((__alloc_size__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: 29761: extern void *pvalloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__malloc__ (__builtin_free, 1))); 29761: 29761: 29761: 29761: struct mallinfo 29761: { 29761: int arena; 29761: int ordblks; 29761: int smblks; 29761: int hblks; 29761: int hblkhd; 29761: int usmblks; 29761: int fsmblks; 29761: int uordblks; 29761: int fordblks; 29761: int keepcost; 29761: }; 29761: 29761: 29761: 29761: 29761: struct mallinfo2 29761: { 29761: size_t arena; 29761: size_t ordblks; 29761: size_t smblks; 29761: size_t hblks; 29761: size_t hblkhd; 29761: size_t usmblks; 29761: size_t fsmblks; 29761: size_t uordblks; 29761: size_t fordblks; 29761: size_t keepcost; 29761: }; 29761: 29761: 29761: extern struct mallinfo mallinfo (void) noexcept (true) __attribute__ ((__deprecated__)); 29761: 29761: 29761: extern struct mallinfo2 mallinfo2 (void) noexcept (true); 29761: # 144 "/usr/include/malloc.h" 3 4 29761: extern int mallopt (int __param, int __val) noexcept (true); 29761: 29761: 29761: 29761: extern int malloc_trim (size_t __pad) noexcept (true); 29761: 29761: 29761: 29761: extern size_t malloc_usable_size (void *__ptr) noexcept (true); 29761: 29761: 29761: extern void malloc_stats (void) noexcept (true); 29761: 29761: 29761: extern int malloc_info (int __options, FILE *__fp) noexcept (true); 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/block_based/block_type.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/table/block_based/block_type.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: enum class BlockType : uint8_t { 29761: kData, 29761: kFilter, 29761: kFilterPartitionIndex, 29761: kProperties, 29761: kCompressionDictionary, 29761: kRangeDeletion, 29761: kHashIndexPrefixes, 29761: kHashIndexMetadata, 29761: kMetaIndex, 29761: kIndex, 29761: 29761: kInvalid 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 8 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 2 29761: # 24 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct KillPoint { 29761: public: 29761: 29761: 29761: int rocksdb_kill_odds = 0; 29761: 29761: std::vector rocksdb_kill_exclude_prefixes; 29761: 29761: void TestKillRandom(std::string kill_point, int odds, 29761: const std::string& srcfile, int srcline); 29761: 29761: static KillPoint* GetInstance(); 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: namespace rocksdb { 29761: # 74 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: class SyncPoint { 29761: public: 29761: static SyncPoint* GetInstance(); 29761: 29761: SyncPoint(const SyncPoint&) = delete; 29761: SyncPoint& operator=(const SyncPoint&) = delete; 29761: ~SyncPoint(); 29761: 29761: struct SyncPointPair { 29761: std::string predecessor; 29761: std::string successor; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: void LoadDependency(const std::vector& dependencies); 29761: 29761: 29761: 29761: 29761: 29761: void LoadDependencyAndMarkers(const std::vector& dependencies, 29761: const std::vector& markers); 29761: 29761: 29761: 29761: 29761: void SetCallBack(const std::string& point, 29761: const std::function& callback); 29761: 29761: 29761: void ClearCallBack(const std::string& point); 29761: 29761: 29761: void ClearAllCallBacks(); 29761: 29761: 29761: void EnableProcessing(); 29761: 29761: 29761: void DisableProcessing(); 29761: 29761: 29761: void ClearTrace(); 29761: 29761: 29761: 29761: 29761: void Process(const Slice& point, void* cb_arg = nullptr); 29761: 29761: 29761: 29761: template 29761: void Process(const char (&point)[kLen], void* cb_arg = nullptr) { 29761: static_assert(kLen > 0, "Must not be empty"); 29761: 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29761: (static_cast ( 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: point[kLen - 1] == '\0' 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: "point[kLen - 1] == '\\0'" 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/test_util/sync_point.h" 29761: ; 29761: Process(Slice(point, kLen - 1), cb_arg); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct Data; 29761: 29761: private: 29761: 29761: SyncPoint(); 29761: Data* impl_; 29761: }; 29761: 29761: 29761: 29761: void SetupSyncPointsToMockDirectIO(); 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/compression_context_cache.h" 1 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/compression_context_cache.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: class ZSTDUncompressCachedData; 29761: 29761: class CompressionContextCache { 29761: public: 29761: 29761: static CompressionContextCache* Instance(); 29761: static void InitSingleton(); 29761: CompressionContextCache(const CompressionContextCache&) = delete; 29761: CompressionContextCache& operator=(const CompressionContextCache&) = delete; 29761: 29761: ZSTDUncompressCachedData GetCachedZSTDUncompressData(); 29761: void ReturnCachedZSTDUncompressData(int64_t idx); 29761: 29761: private: 29761: 29761: CompressionContextCache(); 29761: ~CompressionContextCache(); 29761: 29761: class Rep; 29761: Rep* rep_; 29761: }; 29761: 29761: } 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: 29761: std::vector StringSplit(const std::string& arg, char delim); 29761: 29761: 29761: void AppendNumberTo(std::string* str, uint64_t num); 29761: 29761: 29761: 29761: void AppendEscapedStringTo(std::string* str, const Slice& value); 29761: 29761: 29761: 29761: template 29761: inline void PutBaseChars(char** buf, size_t n, uint64_t v, bool uppercase) { 29761: const char* digitChars = uppercase ? "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" 29761: : "0123456789abcdefghijklmnopqrstuvwxyz"; 29761: for (size_t i = n; i > 0; --i) { 29761: (*buf)[i - 1] = digitChars[static_cast(v % kBase)]; 29761: v /= kBase; 29761: } 29761: *buf += n; 29761: } 29761: # 52 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29761: template 29761: inline bool ParseBaseChars(const char** buf, size_t n, uint64_t* v) { 29761: while (n) { 29761: char c = **buf; 29761: *v *= static_cast(kBase); 29761: if (c >= '0' && (kBase >= 10 ? c <= '9' : c < '0' + kBase)) { 29761: *v += static_cast(c - '0'); 29761: } else if (kBase > 10 && c >= 'A' && c < 'A' + kBase - 10) { 29761: *v += static_cast(c - 'A' + 10); 29761: } else if (kBase > 10 && c >= 'a' && c < 'a' + kBase - 10) { 29761: *v += static_cast(c - 'a' + 10); 29761: } else { 29761: return false; 29761: } 29761: --n; 29761: ++*buf; 29761: } 29761: return true; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: std::string NumberToHumanString(int64_t num); 29761: 29761: 29761: 29761: std::string BytesToHumanString(uint64_t bytes); 29761: 29761: 29761: 29761: std::string TimeToHumanString(int unixtime); 29761: 29761: 29761: int AppendHumanMicros(uint64_t micros, char* output, int len, 29761: bool fixed_format); 29761: 29761: 29761: int AppendHumanBytes(uint64_t bytes, char* output, int len); 29761: 29761: 29761: 29761: std::string EscapeString(const Slice& value); 29761: 29761: 29761: 29761: 29761: 29761: bool ConsumeDecimalNumber(Slice* in, uint64_t* val); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool isSpecialChar(const char c); 29761: 29761: 29761: 29761: 29761: char UnescapeChar(const char c); 29761: 29761: 29761: 29761: 29761: char EscapeChar(const char c); 29761: # 130 "/build/reproducible-path/rocksdb-9.10.0/util/string_util.h" 29761: std::string EscapeOptionString(const std::string& raw_string); 29761: 29761: 29761: 29761: 29761: 29761: 29761: std::string UnescapeOptionString(const std::string& escaped_string); 29761: 29761: std::string trim(const std::string& str); 29761: 29761: 29761: bool EndsWith(const std::string& string, const std::string& pattern); 29761: 29761: 29761: bool StartsWith(const std::string& string, const std::string& pattern); 29761: 29761: bool ParseBoolean(const std::string& type, const std::string& value); 29761: 29761: uint8_t ParseUint8(const std::string& value); 29761: 29761: uint32_t ParseUint32(const std::string& value); 29761: 29761: int32_t ParseInt32(const std::string& value); 29761: 29761: uint64_t ParseUint64(const std::string& value); 29761: 29761: int ParseInt(const std::string& value); 29761: 29761: int64_t ParseInt64(const std::string& value); 29761: 29761: double ParseDouble(const std::string& value); 29761: 29761: size_t ParseSizeT(const std::string& value); 29761: 29761: std::vector ParseVectorInt(const std::string& value); 29761: 29761: bool SerializeIntVector(const std::vector& vec, std::string* value); 29761: 29761: 29761: 29761: int ParseTimeStringToSeconds(const std::string& value); 29761: 29761: 29761: 29761: 29761: bool TryParseTimeRangeString(const std::string& value, int& start_time, 29761: int& end_time); 29761: 29761: extern const std::string kNullptrString; 29761: 29761: 29761: 29761: std::string errnoStr(int err); 29761: 29761: } 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: # 1 "/usr/include/snappy.h" 1 3 4 29761: # 42 "/usr/include/snappy.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 43 "/usr/include/snappy.h" 2 3 4 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/snappy-stubs-public.h" 1 3 4 29761: # 41 "/usr/include/snappy-stubs-public.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 2 3 4 29761: 29761: 29761: 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/types/struct_iovec.h" 3 4 29761: struct iovec 29761: { 29761: void *iov_base; 29761: size_t iov_len; 29761: }; 29761: # 24 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: # 41 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 52 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 86 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "preadv64") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __asm__ ("" "pwritev64") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 110 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, 29761: __off64_t __offset) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 123 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, 29761: __off64_t __offset) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 143 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t pwritev2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "pwritev64v2") 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: extern ssize_t preadv2 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset, int __flags) __asm__ ("" "preadv64v2") 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 161 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 3 4 29761: extern ssize_t preadv64v2 (int __fp, const struct iovec *__iovec, 29761: int __count, __off64_t __offset, 29761: int ___flags) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: 29761: 29761: extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, 29761: int __count, __off64_t __offset, 29761: int __flags) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 29761: extern "C" { 29761: 29761: 29761: extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, 29761: unsigned long int __liovcnt, 29761: const struct iovec *__rvec, 29761: unsigned long int __riovcnt, 29761: unsigned long int __flags) 29761: noexcept (true); 29761: 29761: 29761: extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, 29761: unsigned long int __liovcnt, 29761: const struct iovec *__rvec, 29761: unsigned long int __riovcnt, 29761: unsigned long int __flags) 29761: noexcept (true); 29761: # 52 "/usr/include/arm-linux-gnueabihf/bits/uio-ext.h" 3 4 29761: } 29761: # 180 "/usr/include/arm-linux-gnueabihf/sys/uio.h" 2 3 4 29761: # 42 "/usr/include/snappy-stubs-public.h" 2 3 4 29761: # 50 "/usr/include/snappy-stubs-public.h" 3 4 29761: namespace snappy { 29761: # 61 "/usr/include/snappy-stubs-public.h" 3 4 29761: } 29761: # 48 "/usr/include/snappy.h" 2 3 4 29761: 29761: namespace snappy { 29761: class Source; 29761: class Sink; 29761: 29761: struct CompressionOptions { 29761: # 65 "/usr/include/snappy.h" 3 4 29761: int level = DefaultCompressionLevel(); 29761: 29761: constexpr CompressionOptions() = default; 29761: constexpr CompressionOptions(int compression_level) 29761: : level(compression_level) {} 29761: static constexpr int MinCompressionLevel() { return 1; } 29761: static constexpr int MaxCompressionLevel() { return 2; } 29761: static constexpr int DefaultCompressionLevel() { return 1; } 29761: }; 29761: # 82 "/usr/include/snappy.h" 3 4 29761: size_t Compress(Source* reader, Sink* writer); 29761: size_t Compress(Source* reader, Sink* writer, 29761: CompressionOptions options); 29761: # 93 "/usr/include/snappy.h" 3 4 29761: bool GetUncompressedLength(Source* source, uint32_t* result); 29761: # 104 "/usr/include/snappy.h" 3 4 29761: size_t Compress(const char* input, size_t input_length, 29761: std::string* compressed); 29761: size_t Compress(const char* input, size_t input_length, 29761: std::string* compressed, CompressionOptions options); 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 29761: std::string* compressed); 29761: size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt, 29761: std::string* compressed, 29761: CompressionOptions options); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool Uncompress(const char* compressed, size_t compressed_length, 29761: std::string* uncompressed); 29761: 29761: 29761: 29761: 29761: bool Uncompress(Source* compressed, Sink* uncompressed); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t UncompressAsMuchAsPossible(Source* compressed, Sink* uncompressed); 29761: # 161 "/usr/include/snappy.h" 3 4 29761: void RawCompress(const char* input, size_t input_length, char* compressed, 29761: size_t* compressed_length); 29761: void RawCompress(const char* input, size_t input_length, char* compressed, 29761: size_t* compressed_length, CompressionOptions options); 29761: 29761: 29761: 29761: 29761: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 29761: char* compressed, size_t* compressed_length); 29761: void RawCompressFromIOVec(const struct iovec* iov, size_t uncompressed_length, 29761: char* compressed, size_t* compressed_length, 29761: CompressionOptions options); 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool RawUncompress(const char* compressed, size_t compressed_length, 29761: char* uncompressed); 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool RawUncompress(Source* compressed, char* uncompressed); 29761: # 198 "/usr/include/snappy.h" 3 4 29761: bool RawUncompressToIOVec(const char* compressed, size_t compressed_length, 29761: const struct iovec* iov, size_t iov_cnt); 29761: # 209 "/usr/include/snappy.h" 3 4 29761: bool RawUncompressToIOVec(Source* compressed, const struct iovec* iov, 29761: size_t iov_cnt); 29761: 29761: 29761: 29761: size_t MaxCompressedLength(size_t source_bytes); 29761: 29761: 29761: 29761: 29761: 29761: bool GetUncompressedLength(const char* compressed, size_t compressed_length, 29761: size_t* result); 29761: 29761: 29761: 29761: 29761: 29761: bool IsValidCompressedBuffer(const char* compressed, 29761: size_t compressed_length); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool IsValidCompressed(Source* compressed); 29761: # 247 "/usr/include/snappy.h" 3 4 29761: static constexpr int kBlockLog = 16; 29761: static constexpr size_t kBlockSize = 1 << kBlockLog; 29761: 29761: static constexpr int kMinHashTableBits = 8; 29761: static constexpr size_t kMinHashTableSize = 1 << kMinHashTableBits; 29761: 29761: static constexpr int kMaxHashTableBits = 15; 29761: static constexpr size_t kMaxHashTableSize = 1 << kMaxHashTableBits; 29761: } 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: 29761: # 1 "/usr/include/zlib.h" 1 3 4 29761: # 34 "/usr/include/zlib.h" 3 4 29761: # 1 "/usr/include/zconf.h" 1 3 4 29761: # 254 "/usr/include/zconf.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 255 "/usr/include/zconf.h" 2 3 4 29761: typedef size_t z_size_t; 29761: # 393 "/usr/include/zconf.h" 3 4 29761: typedef unsigned char Byte; 29761: 29761: typedef unsigned int uInt; 29761: typedef unsigned long uLong; 29761: 29761: 29761: 29761: 29761: 29761: typedef Byte Bytef; 29761: 29761: typedef char charf; 29761: typedef int intf; 29761: typedef uInt uIntf; 29761: typedef uLong uLongf; 29761: 29761: 29761: typedef void const *voidpc; 29761: typedef void *voidpf; 29761: typedef void *voidp; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29761: # 421 "/usr/include/zconf.h" 2 3 4 29761: # 431 "/usr/include/zconf.h" 3 4 29761: typedef unsigned z_crc_t; 29761: # 484 "/usr/include/zconf.h" 3 4 29761: # 1 "/usr/include/unistd.h" 1 3 4 29761: # 27 "/usr/include/unistd.h" 3 4 29761: extern "C" { 29761: # 202 "/usr/include/unistd.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/posix_opt.h" 1 3 4 29761: # 203 "/usr/include/unistd.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 1 3 4 29761: # 22 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/wordsize.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/environments.h" 2 3 4 29761: # 207 "/usr/include/unistd.h" 2 3 4 29761: # 226 "/usr/include/unistd.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 227 "/usr/include/unistd.h" 2 3 4 29761: # 274 "/usr/include/unistd.h" 3 4 29761: typedef __socklen_t socklen_t; 29761: # 287 "/usr/include/unistd.h" 3 4 29761: extern int access (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: extern int euidaccess (const char *__name, int __type) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int eaccess (const char *__name, int __type) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern int execveat (int __fd, const char *__path, char *const __argv[], 29761: char *const __envp[], int __flags) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int faccessat (int __fd, const char *__file, int __type, int __flag) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 29761: # 342 "/usr/include/unistd.h" 3 4 29761: extern __off64_t lseek (int __fd, __off64_t __offset, int __whence) noexcept (true) __asm__ ("" "lseek64") 29761: 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int close (int __fd); 29761: 29761: 29761: 29761: 29761: extern void closefrom (int __lowfd) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 404 "/usr/include/unistd.h" 3 4 29761: extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 29761: 29761: __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t pwrite (int __fd, const void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pwrite64") 29761: 29761: __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: # 422 "/usr/include/unistd.h" 3 4 29761: extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, 29761: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, 29761: __off64_t __offset) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__read_only__, 2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int pipe (int __pipedes[2]) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int pipe2 (int __pipedes[2], int __flags) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: # 452 "/usr/include/unistd.h" 3 4 29761: extern unsigned int alarm (unsigned int __seconds) noexcept (true); 29761: # 464 "/usr/include/unistd.h" 3 4 29761: extern unsigned int sleep (unsigned int __seconds); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int usleep (__useconds_t __useconds); 29761: # 489 "/usr/include/unistd.h" 3 4 29761: extern int pause (void); 29761: 29761: 29761: 29761: extern int chown (const char *__file, __uid_t __owner, __gid_t __group) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern int fchown (int __fd, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fchownat (int __fd, const char *__file, __uid_t __owner, 29761: __gid_t __group, int __flag) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern int chdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern int fchdir (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: # 531 "/usr/include/unistd.h" 3 4 29761: extern char *getcwd (char *__buf, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern char *get_current_dir_name (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *getwd (char *__buf) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 1))); 29761: 29761: 29761: 29761: 29761: extern int dup (int __fd) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern int dup2 (int __fd, int __fd2) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int dup3 (int __fd, int __fd2, int __flags) noexcept (true); 29761: 29761: 29761: 29761: extern char **__environ; 29761: 29761: extern char **environ; 29761: 29761: 29761: 29761: 29761: 29761: extern int execve (const char *__path, char *const __argv[], 29761: char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: 29761: extern int execv (const char *__path, char *const __argv[]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int execle (const char *__path, const char *__arg, ...) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int execl (const char *__path, const char *__arg, ...) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: extern int execvp (const char *__file, char *const __argv[]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern int execlp (const char *__file, const char *__arg, ...) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: extern int execvpe (const char *__file, char *const __argv[], 29761: char *const __envp[]) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: extern int nice (int __inc) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern void _exit (int __status) __attribute__ ((__noreturn__)); 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/confname.h" 3 4 29761: enum 29761: { 29761: _PC_LINK_MAX, 29761: 29761: _PC_MAX_CANON, 29761: 29761: _PC_MAX_INPUT, 29761: 29761: _PC_NAME_MAX, 29761: 29761: _PC_PATH_MAX, 29761: 29761: _PC_PIPE_BUF, 29761: 29761: _PC_CHOWN_RESTRICTED, 29761: 29761: _PC_NO_TRUNC, 29761: 29761: _PC_VDISABLE, 29761: 29761: _PC_SYNC_IO, 29761: 29761: _PC_ASYNC_IO, 29761: 29761: _PC_PRIO_IO, 29761: 29761: _PC_SOCK_MAXBUF, 29761: 29761: _PC_FILESIZEBITS, 29761: 29761: _PC_REC_INCR_XFER_SIZE, 29761: 29761: _PC_REC_MAX_XFER_SIZE, 29761: 29761: _PC_REC_MIN_XFER_SIZE, 29761: 29761: _PC_REC_XFER_ALIGN, 29761: 29761: _PC_ALLOC_SIZE_MIN, 29761: 29761: _PC_SYMLINK_MAX, 29761: 29761: _PC_2_SYMLINKS 29761: 29761: }; 29761: 29761: 29761: enum 29761: { 29761: _SC_ARG_MAX, 29761: 29761: _SC_CHILD_MAX, 29761: 29761: _SC_CLK_TCK, 29761: 29761: _SC_NGROUPS_MAX, 29761: 29761: _SC_OPEN_MAX, 29761: 29761: _SC_STREAM_MAX, 29761: 29761: _SC_TZNAME_MAX, 29761: 29761: _SC_JOB_CONTROL, 29761: 29761: _SC_SAVED_IDS, 29761: 29761: _SC_REALTIME_SIGNALS, 29761: 29761: _SC_PRIORITY_SCHEDULING, 29761: 29761: _SC_TIMERS, 29761: 29761: _SC_ASYNCHRONOUS_IO, 29761: 29761: _SC_PRIORITIZED_IO, 29761: 29761: _SC_SYNCHRONIZED_IO, 29761: 29761: _SC_FSYNC, 29761: 29761: _SC_MAPPED_FILES, 29761: 29761: _SC_MEMLOCK, 29761: 29761: _SC_MEMLOCK_RANGE, 29761: 29761: _SC_MEMORY_PROTECTION, 29761: 29761: _SC_MESSAGE_PASSING, 29761: 29761: _SC_SEMAPHORES, 29761: 29761: _SC_SHARED_MEMORY_OBJECTS, 29761: 29761: _SC_AIO_LISTIO_MAX, 29761: 29761: _SC_AIO_MAX, 29761: 29761: _SC_AIO_PRIO_DELTA_MAX, 29761: 29761: _SC_DELAYTIMER_MAX, 29761: 29761: _SC_MQ_OPEN_MAX, 29761: 29761: _SC_MQ_PRIO_MAX, 29761: 29761: _SC_VERSION, 29761: 29761: _SC_PAGESIZE, 29761: 29761: 29761: _SC_RTSIG_MAX, 29761: 29761: _SC_SEM_NSEMS_MAX, 29761: 29761: _SC_SEM_VALUE_MAX, 29761: 29761: _SC_SIGQUEUE_MAX, 29761: 29761: _SC_TIMER_MAX, 29761: 29761: 29761: 29761: 29761: _SC_BC_BASE_MAX, 29761: 29761: _SC_BC_DIM_MAX, 29761: 29761: _SC_BC_SCALE_MAX, 29761: 29761: _SC_BC_STRING_MAX, 29761: 29761: _SC_COLL_WEIGHTS_MAX, 29761: 29761: _SC_EQUIV_CLASS_MAX, 29761: 29761: _SC_EXPR_NEST_MAX, 29761: 29761: _SC_LINE_MAX, 29761: 29761: _SC_RE_DUP_MAX, 29761: 29761: _SC_CHARCLASS_NAME_MAX, 29761: 29761: 29761: _SC_2_VERSION, 29761: 29761: _SC_2_C_BIND, 29761: 29761: _SC_2_C_DEV, 29761: 29761: _SC_2_FORT_DEV, 29761: 29761: _SC_2_FORT_RUN, 29761: 29761: _SC_2_SW_DEV, 29761: 29761: _SC_2_LOCALEDEF, 29761: 29761: 29761: _SC_PII, 29761: 29761: _SC_PII_XTI, 29761: 29761: _SC_PII_SOCKET, 29761: 29761: _SC_PII_INTERNET, 29761: 29761: _SC_PII_OSI, 29761: 29761: _SC_POLL, 29761: 29761: _SC_SELECT, 29761: 29761: _SC_UIO_MAXIOV, 29761: 29761: _SC_IOV_MAX = _SC_UIO_MAXIOV, 29761: 29761: _SC_PII_INTERNET_STREAM, 29761: 29761: _SC_PII_INTERNET_DGRAM, 29761: 29761: _SC_PII_OSI_COTS, 29761: 29761: _SC_PII_OSI_CLTS, 29761: 29761: _SC_PII_OSI_M, 29761: 29761: _SC_T_IOV_MAX, 29761: 29761: 29761: 29761: _SC_THREADS, 29761: 29761: _SC_THREAD_SAFE_FUNCTIONS, 29761: 29761: _SC_GETGR_R_SIZE_MAX, 29761: 29761: _SC_GETPW_R_SIZE_MAX, 29761: 29761: _SC_LOGIN_NAME_MAX, 29761: 29761: _SC_TTY_NAME_MAX, 29761: 29761: _SC_THREAD_DESTRUCTOR_ITERATIONS, 29761: 29761: _SC_THREAD_KEYS_MAX, 29761: 29761: _SC_THREAD_STACK_MIN, 29761: 29761: _SC_THREAD_THREADS_MAX, 29761: 29761: _SC_THREAD_ATTR_STACKADDR, 29761: 29761: _SC_THREAD_ATTR_STACKSIZE, 29761: 29761: _SC_THREAD_PRIORITY_SCHEDULING, 29761: 29761: _SC_THREAD_PRIO_INHERIT, 29761: 29761: _SC_THREAD_PRIO_PROTECT, 29761: 29761: _SC_THREAD_PROCESS_SHARED, 29761: 29761: 29761: _SC_NPROCESSORS_CONF, 29761: 29761: _SC_NPROCESSORS_ONLN, 29761: 29761: _SC_PHYS_PAGES, 29761: 29761: _SC_AVPHYS_PAGES, 29761: 29761: _SC_ATEXIT_MAX, 29761: 29761: _SC_PASS_MAX, 29761: 29761: 29761: _SC_XOPEN_VERSION, 29761: 29761: _SC_XOPEN_XCU_VERSION, 29761: 29761: _SC_XOPEN_UNIX, 29761: 29761: _SC_XOPEN_CRYPT, 29761: 29761: _SC_XOPEN_ENH_I18N, 29761: 29761: _SC_XOPEN_SHM, 29761: 29761: 29761: _SC_2_CHAR_TERM, 29761: 29761: _SC_2_C_VERSION, 29761: 29761: _SC_2_UPE, 29761: 29761: 29761: _SC_XOPEN_XPG2, 29761: 29761: _SC_XOPEN_XPG3, 29761: 29761: _SC_XOPEN_XPG4, 29761: 29761: 29761: _SC_CHAR_BIT, 29761: 29761: _SC_CHAR_MAX, 29761: 29761: _SC_CHAR_MIN, 29761: 29761: _SC_INT_MAX, 29761: 29761: _SC_INT_MIN, 29761: 29761: _SC_LONG_BIT, 29761: 29761: _SC_WORD_BIT, 29761: 29761: _SC_MB_LEN_MAX, 29761: 29761: _SC_NZERO, 29761: 29761: _SC_SSIZE_MAX, 29761: 29761: _SC_SCHAR_MAX, 29761: 29761: _SC_SCHAR_MIN, 29761: 29761: _SC_SHRT_MAX, 29761: 29761: _SC_SHRT_MIN, 29761: 29761: _SC_UCHAR_MAX, 29761: 29761: _SC_UINT_MAX, 29761: 29761: _SC_ULONG_MAX, 29761: 29761: _SC_USHRT_MAX, 29761: 29761: 29761: _SC_NL_ARGMAX, 29761: 29761: _SC_NL_LANGMAX, 29761: 29761: _SC_NL_MSGMAX, 29761: 29761: _SC_NL_NMAX, 29761: 29761: _SC_NL_SETMAX, 29761: 29761: _SC_NL_TEXTMAX, 29761: 29761: 29761: _SC_XBS5_ILP32_OFF32, 29761: 29761: _SC_XBS5_ILP32_OFFBIG, 29761: 29761: _SC_XBS5_LP64_OFF64, 29761: 29761: _SC_XBS5_LPBIG_OFFBIG, 29761: 29761: 29761: _SC_XOPEN_LEGACY, 29761: 29761: _SC_XOPEN_REALTIME, 29761: 29761: _SC_XOPEN_REALTIME_THREADS, 29761: 29761: 29761: _SC_ADVISORY_INFO, 29761: 29761: _SC_BARRIERS, 29761: 29761: _SC_BASE, 29761: 29761: _SC_C_LANG_SUPPORT, 29761: 29761: _SC_C_LANG_SUPPORT_R, 29761: 29761: _SC_CLOCK_SELECTION, 29761: 29761: _SC_CPUTIME, 29761: 29761: _SC_THREAD_CPUTIME, 29761: 29761: _SC_DEVICE_IO, 29761: 29761: _SC_DEVICE_SPECIFIC, 29761: 29761: _SC_DEVICE_SPECIFIC_R, 29761: 29761: _SC_FD_MGMT, 29761: 29761: _SC_FIFO, 29761: 29761: _SC_PIPE, 29761: 29761: _SC_FILE_ATTRIBUTES, 29761: 29761: _SC_FILE_LOCKING, 29761: 29761: _SC_FILE_SYSTEM, 29761: 29761: _SC_MONOTONIC_CLOCK, 29761: 29761: _SC_MULTI_PROCESS, 29761: 29761: _SC_SINGLE_PROCESS, 29761: 29761: _SC_NETWORKING, 29761: 29761: _SC_READER_WRITER_LOCKS, 29761: 29761: _SC_SPIN_LOCKS, 29761: 29761: _SC_REGEXP, 29761: 29761: _SC_REGEX_VERSION, 29761: 29761: _SC_SHELL, 29761: 29761: _SC_SIGNALS, 29761: 29761: _SC_SPAWN, 29761: 29761: _SC_SPORADIC_SERVER, 29761: 29761: _SC_THREAD_SPORADIC_SERVER, 29761: 29761: _SC_SYSTEM_DATABASE, 29761: 29761: _SC_SYSTEM_DATABASE_R, 29761: 29761: _SC_TIMEOUTS, 29761: 29761: _SC_TYPED_MEMORY_OBJECTS, 29761: 29761: _SC_USER_GROUPS, 29761: 29761: _SC_USER_GROUPS_R, 29761: 29761: _SC_2_PBS, 29761: 29761: _SC_2_PBS_ACCOUNTING, 29761: 29761: _SC_2_PBS_LOCATE, 29761: 29761: _SC_2_PBS_MESSAGE, 29761: 29761: _SC_2_PBS_TRACK, 29761: 29761: _SC_SYMLOOP_MAX, 29761: 29761: _SC_STREAMS, 29761: 29761: _SC_2_PBS_CHECKPOINT, 29761: 29761: 29761: _SC_V6_ILP32_OFF32, 29761: 29761: _SC_V6_ILP32_OFFBIG, 29761: 29761: _SC_V6_LP64_OFF64, 29761: 29761: _SC_V6_LPBIG_OFFBIG, 29761: 29761: 29761: _SC_HOST_NAME_MAX, 29761: 29761: _SC_TRACE, 29761: 29761: _SC_TRACE_EVENT_FILTER, 29761: 29761: _SC_TRACE_INHERIT, 29761: 29761: _SC_TRACE_LOG, 29761: 29761: 29761: _SC_LEVEL1_ICACHE_SIZE, 29761: 29761: _SC_LEVEL1_ICACHE_ASSOC, 29761: 29761: _SC_LEVEL1_ICACHE_LINESIZE, 29761: 29761: _SC_LEVEL1_DCACHE_SIZE, 29761: 29761: _SC_LEVEL1_DCACHE_ASSOC, 29761: 29761: _SC_LEVEL1_DCACHE_LINESIZE, 29761: 29761: _SC_LEVEL2_CACHE_SIZE, 29761: 29761: _SC_LEVEL2_CACHE_ASSOC, 29761: 29761: _SC_LEVEL2_CACHE_LINESIZE, 29761: 29761: _SC_LEVEL3_CACHE_SIZE, 29761: 29761: _SC_LEVEL3_CACHE_ASSOC, 29761: 29761: _SC_LEVEL3_CACHE_LINESIZE, 29761: 29761: _SC_LEVEL4_CACHE_SIZE, 29761: 29761: _SC_LEVEL4_CACHE_ASSOC, 29761: 29761: _SC_LEVEL4_CACHE_LINESIZE, 29761: 29761: 29761: 29761: _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, 29761: 29761: _SC_RAW_SOCKETS, 29761: 29761: 29761: _SC_V7_ILP32_OFF32, 29761: 29761: _SC_V7_ILP32_OFFBIG, 29761: 29761: _SC_V7_LP64_OFF64, 29761: 29761: _SC_V7_LPBIG_OFFBIG, 29761: 29761: 29761: _SC_SS_REPL_MAX, 29761: 29761: 29761: _SC_TRACE_EVENT_NAME_MAX, 29761: 29761: _SC_TRACE_NAME_MAX, 29761: 29761: _SC_TRACE_SYS_MAX, 29761: 29761: _SC_TRACE_USER_EVENT_MAX, 29761: 29761: 29761: _SC_XOPEN_STREAMS, 29761: 29761: 29761: _SC_THREAD_ROBUST_PRIO_INHERIT, 29761: 29761: _SC_THREAD_ROBUST_PRIO_PROTECT, 29761: 29761: 29761: _SC_MINSIGSTKSZ, 29761: 29761: 29761: _SC_SIGSTKSZ 29761: 29761: }; 29761: 29761: 29761: enum 29761: { 29761: _CS_PATH, 29761: 29761: 29761: _CS_V6_WIDTH_RESTRICTED_ENVS, 29761: 29761: 29761: 29761: _CS_GNU_LIBC_VERSION, 29761: 29761: _CS_GNU_LIBPTHREAD_VERSION, 29761: 29761: 29761: _CS_V5_WIDTH_RESTRICTED_ENVS, 29761: 29761: 29761: 29761: _CS_V7_WIDTH_RESTRICTED_ENVS, 29761: 29761: 29761: 29761: _CS_LFS_CFLAGS = 1000, 29761: 29761: _CS_LFS_LDFLAGS, 29761: 29761: _CS_LFS_LIBS, 29761: 29761: _CS_LFS_LINTFLAGS, 29761: 29761: _CS_LFS64_CFLAGS, 29761: 29761: _CS_LFS64_LDFLAGS, 29761: 29761: _CS_LFS64_LIBS, 29761: 29761: _CS_LFS64_LINTFLAGS, 29761: 29761: 29761: _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, 29761: 29761: _CS_XBS5_ILP32_OFF32_LDFLAGS, 29761: 29761: _CS_XBS5_ILP32_OFF32_LIBS, 29761: 29761: _CS_XBS5_ILP32_OFF32_LINTFLAGS, 29761: 29761: _CS_XBS5_ILP32_OFFBIG_CFLAGS, 29761: 29761: _CS_XBS5_ILP32_OFFBIG_LDFLAGS, 29761: 29761: _CS_XBS5_ILP32_OFFBIG_LIBS, 29761: 29761: _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, 29761: 29761: _CS_XBS5_LP64_OFF64_CFLAGS, 29761: 29761: _CS_XBS5_LP64_OFF64_LDFLAGS, 29761: 29761: _CS_XBS5_LP64_OFF64_LIBS, 29761: 29761: _CS_XBS5_LP64_OFF64_LINTFLAGS, 29761: 29761: _CS_XBS5_LPBIG_OFFBIG_CFLAGS, 29761: 29761: _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, 29761: 29761: _CS_XBS5_LPBIG_OFFBIG_LIBS, 29761: 29761: _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, 29761: 29761: 29761: _CS_POSIX_V6_ILP32_OFF32_CFLAGS, 29761: 29761: _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, 29761: 29761: _CS_POSIX_V6_ILP32_OFF32_LIBS, 29761: 29761: _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, 29761: 29761: _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, 29761: 29761: _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, 29761: 29761: _CS_POSIX_V6_ILP32_OFFBIG_LIBS, 29761: 29761: _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, 29761: 29761: _CS_POSIX_V6_LP64_OFF64_CFLAGS, 29761: 29761: _CS_POSIX_V6_LP64_OFF64_LDFLAGS, 29761: 29761: _CS_POSIX_V6_LP64_OFF64_LIBS, 29761: 29761: _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, 29761: 29761: _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, 29761: 29761: _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, 29761: 29761: _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, 29761: 29761: _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, 29761: 29761: 29761: _CS_POSIX_V7_ILP32_OFF32_CFLAGS, 29761: 29761: _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, 29761: 29761: _CS_POSIX_V7_ILP32_OFF32_LIBS, 29761: 29761: _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, 29761: 29761: _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, 29761: 29761: _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, 29761: 29761: _CS_POSIX_V7_ILP32_OFFBIG_LIBS, 29761: 29761: _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, 29761: 29761: _CS_POSIX_V7_LP64_OFF64_CFLAGS, 29761: 29761: _CS_POSIX_V7_LP64_OFF64_LDFLAGS, 29761: 29761: _CS_POSIX_V7_LP64_OFF64_LIBS, 29761: 29761: _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, 29761: 29761: _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, 29761: 29761: _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, 29761: 29761: _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, 29761: 29761: _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, 29761: 29761: 29761: _CS_V6_ENV, 29761: 29761: _CS_V7_ENV 29761: 29761: }; 29761: # 631 "/usr/include/unistd.h" 2 3 4 29761: 29761: 29761: extern long int pathconf (const char *__path, int __name) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: extern long int fpathconf (int __fd, int __name) noexcept (true); 29761: 29761: 29761: extern long int sysconf (int __name) noexcept (true); 29761: 29761: 29761: 29761: extern size_t confstr (int __name, char *__buf, size_t __len) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: 29761: 29761: extern __pid_t getpid (void) noexcept (true); 29761: 29761: 29761: extern __pid_t getppid (void) noexcept (true); 29761: 29761: 29761: extern __pid_t getpgrp (void) noexcept (true); 29761: 29761: 29761: extern __pid_t __getpgid (__pid_t __pid) noexcept (true); 29761: 29761: extern __pid_t getpgid (__pid_t __pid) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int setpgid (__pid_t __pid, __pid_t __pgid) noexcept (true); 29761: # 682 "/usr/include/unistd.h" 3 4 29761: extern int setpgrp (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __pid_t setsid (void) noexcept (true); 29761: 29761: 29761: 29761: extern __pid_t getsid (__pid_t __pid) noexcept (true); 29761: 29761: 29761: 29761: extern __uid_t getuid (void) noexcept (true); 29761: 29761: 29761: extern __uid_t geteuid (void) noexcept (true); 29761: 29761: 29761: extern __gid_t getgid (void) noexcept (true); 29761: 29761: 29761: extern __gid_t getegid (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int getgroups (int __size, __gid_t __list[]) noexcept (true) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 1))); 29761: 29761: 29761: extern int group_member (__gid_t __gid) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int setuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int setreuid (__uid_t __ruid, __uid_t __euid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int seteuid (__uid_t __uid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int setgid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int setregid (__gid_t __rgid, __gid_t __egid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int setegid (__gid_t __gid) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) 29761: noexcept (true); 29761: 29761: 29761: 29761: extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) 29761: noexcept (true); 29761: 29761: 29761: 29761: extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __pid_t fork (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __pid_t vfork (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern __pid_t _Fork (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern char *ttyname (int __fd) noexcept (true); 29761: 29761: 29761: 29761: extern int ttyname_r (int __fd, char *__buf, size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: 29761: extern int isatty (int __fd) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int ttyslot (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int link (const char *__from, const char *__to) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int linkat (int __fromfd, const char *__from, int __tofd, 29761: const char *__to, int __flags) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern int symlink (const char *__from, const char *__to) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: extern ssize_t readlink (const char *__restrict __path, 29761: char *__restrict __buf, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: 29761: 29761: 29761: 29761: 29761: extern int symlinkat (const char *__from, int __tofd, 29761: const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: extern ssize_t readlinkat (int __fd, const char *__restrict __path, 29761: char *__restrict __buf, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 3, 4))); 29761: 29761: 29761: 29761: extern int unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern int unlinkat (int __fd, const char *__name, int __flag) 29761: noexcept (true) __attribute__ ((__nonnull__ (2))); 29761: 29761: 29761: 29761: extern int rmdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: extern __pid_t tcgetpgrp (int __fd) noexcept (true); 29761: 29761: 29761: extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *getlogin (void); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: 29761: 29761: 29761: 29761: extern int setlogin (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 1 3 4 29761: # 27 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 1 3 4 29761: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char *optarg; 29761: # 50 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29761: extern int optind; 29761: 29761: 29761: 29761: 29761: extern int opterr; 29761: 29761: 29761: 29761: extern int optopt; 29761: # 91 "/usr/include/arm-linux-gnueabihf/bits/getopt_core.h" 3 4 29761: extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))); 29761: 29761: } 29761: # 28 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 2 3 4 29761: 29761: extern "C" { 29761: # 49 "/usr/include/arm-linux-gnueabihf/bits/getopt_posix.h" 3 4 29761: } 29761: # 904 "/usr/include/unistd.h" 2 3 4 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int gethostname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int sethostname (const char *__name, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 29761: 29761: 29761: 29761: extern int sethostid (long int __id) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int getdomainname (char *__name, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int setdomainname (const char *__name, size_t __len) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__read_only__, 1, 2))); 29761: 29761: 29761: 29761: 29761: extern int vhangup (void) noexcept (true); 29761: 29761: 29761: extern int revoke (const char *__file) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int profil (unsigned short int *__sample_buffer, size_t __size, 29761: size_t __offset, unsigned int __scale) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: extern int acct (const char *__name) noexcept (true); 29761: 29761: 29761: 29761: extern char *getusershell (void) noexcept (true); 29761: extern void endusershell (void) noexcept (true); 29761: extern void setusershell (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int daemon (int __nochdir, int __noclose) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int chroot (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int fsync (int __fd); 29761: 29761: 29761: 29761: 29761: 29761: extern int syncfs (int __fd) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern long int gethostid (void); 29761: 29761: 29761: extern void sync (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern int getpagesize (void) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: 29761: 29761: extern int getdtablesize (void) noexcept (true); 29761: # 1030 "/usr/include/unistd.h" 3 4 29761: extern int truncate (const char *__file, __off64_t __length) noexcept (true) __asm__ ("" "truncate64") 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int truncate64 (const char *__file, __off64_t __length) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); 29761: # 1052 "/usr/include/unistd.h" 3 4 29761: extern int ftruncate (int __fd, __off64_t __length) noexcept (true) __asm__ ("" "ftruncate64") 29761: __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int ftruncate64 (int __fd, __off64_t __length) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: # 1070 "/usr/include/unistd.h" 3 4 29761: extern int brk (void *__addr) noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern void *sbrk (intptr_t __delta) noexcept (true); 29761: # 1091 "/usr/include/unistd.h" 3 4 29761: extern long int syscall (long int __sysno, ...) noexcept (true); 29761: # 1117 "/usr/include/unistd.h" 3 4 29761: extern int lockf (int __fd, int __cmd, __off64_t __len) __asm__ ("" "lockf64") 29761: __attribute__ ((__warn_unused_result__)); 29761: 29761: 29761: 29761: 29761: 29761: extern int lockf64 (int __fd, int __cmd, __off64_t __len) __attribute__ ((__warn_unused_result__)); 29761: # 1142 "/usr/include/unistd.h" 3 4 29761: ssize_t copy_file_range (int __infd, __off64_t *__pinoff, 29761: int __outfd, __off64_t *__poutoff, 29761: size_t __length, unsigned int __flags); 29761: 29761: 29761: 29761: 29761: 29761: extern int fdatasync (int __fildes); 29761: # 1162 "/usr/include/unistd.h" 3 4 29761: extern char *crypt (const char *__key, const char *__salt) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern void swab (const void *__restrict __from, void *__restrict __to, 29761: ssize_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) 29761: __attribute__ ((__access__ (__read_only__, 1, 3))) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: # 1201 "/usr/include/unistd.h" 3 4 29761: int getentropy (void *__buffer, size_t __length) __attribute__ ((__warn_unused_result__)) 29761: __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: # 1211 "/usr/include/unistd.h" 3 4 29761: extern int close_range (unsigned int __fd, unsigned int __max_fd, 29761: int __flags) noexcept (true); 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 1 3 4 29761: # 23 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/bits/unistd-decl.h" 3 4 29761: extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, 29761: size_t __buflen) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __read_alias (int __fd, void *__buf, size_t __nbytes) __asm__ ("" "read") 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __read_chk_warn (int __fd, void *__buf, size_t __nbytes, size_t __buflen) __asm__ ("" "__read_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("read called with bigger length than size of " "the destination buffer"))) 29761: ; 29761: 29761: 29761: extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, 29761: __off_t __offset, size_t __bufsize) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, 29761: __off64_t __offset, size_t __bufsize) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __pread_alias (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __asm__ ("" "pread") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __pread64_alias (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __pread_chk_warn (int __fd, void *__buf, size_t __nbytes, __off_t __offset, size_t __bufsize) __asm__ ("" "__pread_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread called with bigger length than size of " "the destination buffer"))) 29761: ; 29761: extern ssize_t __pread64_chk_warn (int __fd, void *__buf, size_t __nbytes, __off64_t __offset, size_t __bufsize) __asm__ ("" "__pread64_chk") 29761: 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("pread64 called with bigger length than size of " "the destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: extern ssize_t __readlink_chk (const char *__restrict __path, 29761: char *__restrict __buf, size_t __len, 29761: size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __readlink_alias (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlink") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern ssize_t __readlink_chk_warn (const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlink_chk") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlink called with bigger length " "than size of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, 29761: char *__restrict __buf, size_t __len, 29761: size_t __buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 29761: extern ssize_t __readlinkat_alias (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __asm__ ("" "readlinkat") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 3, 4))); 29761: extern ssize_t __readlinkat_chk_warn (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__readlinkat_chk") 29761: 29761: 29761: 29761: __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("readlinkat called with bigger " "length than size of destination " "buffer"))) 29761: 29761: ; 29761: 29761: 29761: extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)); 29761: extern char *__getcwd_alias (char *__buf, size_t __size) noexcept (true) __asm__ ("" "getcwd") 29761: __attribute__ ((__warn_unused_result__)); 29761: extern char *__getcwd_chk_warn (char *__buf, size_t __size, size_t __buflen) noexcept (true) __asm__ ("" "__getcwd_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getcwd caller with bigger length than size of " "destination buffer"))) 29761: ; 29761: 29761: 29761: extern char *__getwd_chk (char *__buf, size_t buflen) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern char *__getwd_warn (char *__buf) noexcept (true) __asm__ ("" "getwd") 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("please use getcwd instead, as getwd " "doesn't specify buffer size"))) 29761: ; 29761: 29761: 29761: extern size_t __confstr_chk (int __name, char *__buf, size_t __len, 29761: size_t __buflen) noexcept (true) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern size_t __confstr_alias (int __name, char *__buf, size_t __len) noexcept (true) __asm__ ("" "confstr") 29761: 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern size_t __confstr_chk_warn (int __name, char *__buf, size_t __len, size_t __buflen) noexcept (true) __asm__ ("" "__confstr_chk") 29761: 29761: 29761: __attribute__((__warning__ ("confstr called with bigger length than size of destination " "buffer"))) 29761: ; 29761: 29761: 29761: extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) 29761: noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 29761: extern int __getgroups_alias (int __size, __gid_t __list[]) noexcept (true) __asm__ ("" "getgroups") 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 2, 1))); 29761: extern int __getgroups_chk_warn (int __size, __gid_t __list[], size_t __listlen) noexcept (true) __asm__ ("" "__getgroups_chk") 29761: 29761: 29761: __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getgroups called with bigger group count than what " "can fit into destination buffer"))) 29761: ; 29761: 29761: 29761: extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, 29761: size_t __nreal) noexcept (true) __attribute__ ((__nonnull__ (2))) 29761: __attribute__ ((__access__ (__write_only__, 2, 3))); 29761: extern int __ttyname_r_alias (int __fd, char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "ttyname_r") 29761: 29761: __attribute__ ((__nonnull__ (2))); 29761: extern int __ttyname_r_chk_warn (int __fd, char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__ttyname_r_chk") 29761: 29761: 29761: __attribute__ ((__nonnull__ (2))) __attribute__((__warning__ ("ttyname_r called with bigger buflen than " "size of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __getlogin_r_alias (char *__buf, size_t __buflen) __asm__ ("" "getlogin_r") 29761: __attribute__ ((__nonnull__ (1))); 29761: extern int __getlogin_r_chk_warn (char *__buf, size_t __buflen, size_t __nreal) __asm__ ("" "__getlogin_r_chk") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("getlogin_r called with bigger buflen than " "size of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __gethostname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "gethostname") 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __gethostname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__gethostname_chk") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__((__warning__ ("gethostname called with bigger buflen than " "size of destination buffer"))) 29761: ; 29761: 29761: 29761: 29761: 29761: extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) 29761: noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __getdomainname_alias (char *__buf, size_t __buflen) noexcept (true) __asm__ ("" "getdomainname") 29761: 29761: __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__warn_unused_result__)) __attribute__ ((__access__ (__write_only__, 1, 2))); 29761: extern int __getdomainname_chk_warn (char *__buf, size_t __buflen, size_t __nreal) noexcept (true) __asm__ ("" "__getdomainname_chk") 29761: 29761: 29761: __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)) __attribute__((__warning__ ("getdomainname called with bigger " "buflen than size of destination " "buffer"))) 29761: 29761: ; 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 2 3 4 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29761: read (int __fd, void * __buf, size_t __nbytes) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __read_alias (__fd, __buf, __nbytes) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __read_chk_warn (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)) : __read_chk (__fd, __buf, __nbytes, __builtin_object_size (__buf, 0)))) 29761: 29761: ; 29761: } 29761: # 51 "/usr/include/arm-linux-gnueabihf/bits/unistd.h" 3 4 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29761: pread (int __fd, void * __buf, 29761: size_t __nbytes, __off64_t __offset) 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __pread64_alias (__fd, __buf, __nbytes, __offset) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __pread64_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)) : __pread64_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) ssize_t 29761: pread64 (int __fd, void * __buf, 29761: size_t __nbytes, __off64_t __offset) 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 0)) && (__builtin_object_size (__buf, 0)) == (unsigned int) -1) || (((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char))))) && (((unsigned int) (__nbytes)) <= ((__builtin_object_size (__buf, 0))) / ((sizeof (char)))))) ? __pread64_alias (__fd, __buf, __nbytes, __offset) : ((((__typeof (__nbytes)) 0 < (__typeof (__nbytes)) -1 || (__builtin_constant_p (__nbytes) && (__nbytes) > 0)) && __builtin_constant_p ((((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) && !(((unsigned int) (__nbytes)) <= (__builtin_object_size (__buf, 0)) / (sizeof (char)))) ? __pread64_chk_warn (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)) : __pread64_chk (__fd, __buf, __nbytes, __offset, __builtin_object_size (__buf, 0)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__warn_unused_result__)) ssize_t 29761: __attribute__ ((__leaf__)) readlink (const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __readlink_alias (__path, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __readlink_chk_warn (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __readlink_chk (__path, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__warn_unused_result__)) ssize_t 29761: __attribute__ ((__leaf__)) readlinkat (int __fd, const char *__restrict __path, char * __restrict __buf, size_t __len) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __readlinkat_alias (__fd, __path, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __readlinkat_chk_warn (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __readlinkat_chk (__fd, __path, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__warn_unused_result__)) char * 29761: __attribute__ ((__leaf__)) getcwd (char * __buf, size_t __size) noexcept (true) 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__size)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getcwd_alias (__buf, __size) : ((((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__size)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getcwd_chk_warn (__buf, __size, __builtin_object_size (__buf, 2 > 1)) : __getcwd_chk (__buf, __size, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) __attribute__ ((__nonnull__ (1))) 29761: __attribute__ ((__deprecated__)) __attribute__ ((__warn_unused_result__)) char * 29761: __attribute__ ((__leaf__)) getwd (char * __buf) noexcept (true) 29761: { 29761: if (__builtin_object_size (__buf, 2 > 1) != (size_t) -1) 29761: return __getwd_chk (__buf, __builtin_object_size (__buf, 2 > 1)); 29761: return __getwd_warn (__buf); 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) size_t 29761: __attribute__ ((__leaf__)) confstr (int __name, char * __buf, size_t __len) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__len)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __confstr_alias (__name, __buf, __len) : ((((__typeof (__len)) 0 < (__typeof (__len)) -1 || (__builtin_constant_p (__len) && (__len) > 0)) && __builtin_constant_p ((((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__len)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __confstr_chk_warn (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)) : __confstr_chk (__name, __buf, __len, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) getgroups (int __size, __gid_t * __list) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__list, 2 > 1)) && (__builtin_object_size (__list, 2 > 1)) == (unsigned int) -1) || (((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= ((__builtin_object_size (__list, 2 > 1))) / ((sizeof (__gid_t))))) && (((unsigned int) (__size)) <= ((__builtin_object_size (__list, 2 > 1))) / ((sizeof (__gid_t)))))) ? __getgroups_alias (__size, __list) : ((((__typeof (__size)) 0 < (__typeof (__size)) -1 || (__builtin_constant_p (__size) && (__size) > 0)) && __builtin_constant_p ((((unsigned int) (__size)) <= (__builtin_object_size (__list, 2 > 1)) / (sizeof (__gid_t)))) && !(((unsigned int) (__size)) <= (__builtin_object_size (__list, 2 > 1)) / (sizeof (__gid_t)))) ? __getgroups_chk_warn (__size, __list, __builtin_object_size (__list, 2 > 1)) : __getgroups_chk (__size, __list, __builtin_object_size (__list, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) ttyname_r (int __fd, char * __buf, size_t __buflen) noexcept (true) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __ttyname_r_alias (__fd, __buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __ttyname_r_chk_warn (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __ttyname_r_chk (__fd, __buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: getlogin_r (char * __buf, size_t __buflen) 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getlogin_r_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getlogin_r_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __getlogin_r_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) gethostname (char * __buf, size_t __buflen) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __gethostname_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __gethostname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __gethostname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: 29761: 29761: 29761: 29761: extern __inline __attribute__ ((__always_inline__)) __attribute__ ((__gnu_inline__)) __attribute__ ((__artificial__)) int 29761: __attribute__ ((__leaf__)) getdomainname (char * __buf, size_t __buflen) noexcept (true) 29761: 29761: 29761: 29761: 29761: { 29761: return (((__builtin_constant_p (__builtin_object_size (__buf, 2 > 1)) && (__builtin_object_size (__buf, 2 > 1)) == (unsigned int) -1) || (((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char))))) && (((unsigned int) (__buflen)) <= ((__builtin_object_size (__buf, 2 > 1))) / ((sizeof (char)))))) ? __getdomainname_alias (__buf, __buflen) : ((((__typeof (__buflen)) 0 < (__typeof (__buflen)) -1 || (__builtin_constant_p (__buflen) && (__buflen) > 0)) && __builtin_constant_p ((((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) && !(((unsigned int) (__buflen)) <= (__builtin_object_size (__buf, 2 > 1)) / (sizeof (char)))) ? __getdomainname_chk_warn (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)) : __getdomainname_chk (__buf, __buflen, __builtin_object_size (__buf, 2 > 1)))) 29761: 29761: ; 29761: } 29761: # 1218 "/usr/include/unistd.h" 2 3 4 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 1 3 4 29761: # 34 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 3 4 29761: extern __pid_t gettid (void) noexcept (true); 29761: 29761: 29761: 29761: # 1 "/usr/include/linux/close_range.h" 1 3 4 29761: # 39 "/usr/include/arm-linux-gnueabihf/bits/unistd_ext.h" 2 3 4 29761: # 1222 "/usr/include/unistd.h" 2 3 4 29761: 29761: } 29761: # 485 "/usr/include/zconf.h" 2 3 4 29761: # 35 "/usr/include/zlib.h" 2 3 4 29761: 29761: 29761: extern "C" { 29761: # 81 "/usr/include/zlib.h" 3 4 29761: typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size); 29761: typedef void (*free_func)(voidpf opaque, voidpf address); 29761: 29761: struct internal_state; 29761: 29761: typedef struct z_stream_s { 29761: Bytef *next_in; 29761: uInt avail_in; 29761: uLong total_in; 29761: 29761: Bytef *next_out; 29761: uInt avail_out; 29761: uLong total_out; 29761: 29761: char *msg; 29761: struct internal_state *state; 29761: 29761: alloc_func zalloc; 29761: free_func zfree; 29761: voidpf opaque; 29761: 29761: int data_type; 29761: 29761: uLong adler; 29761: uLong reserved; 29761: } z_stream; 29761: 29761: typedef z_stream *z_streamp; 29761: 29761: 29761: 29761: 29761: 29761: typedef struct gz_header_s { 29761: int text; 29761: uLong time; 29761: int xflags; 29761: int os; 29761: Bytef *extra; 29761: uInt extra_len; 29761: uInt extra_max; 29761: Bytef *name; 29761: uInt name_max; 29761: Bytef *comment; 29761: uInt comm_max; 29761: int hcrc; 29761: int done; 29761: 29761: } gz_header; 29761: 29761: typedef gz_header *gz_headerp; 29761: # 220 "/usr/include/zlib.h" 3 4 29761: extern const char * zlibVersion(void); 29761: # 250 "/usr/include/zlib.h" 3 4 29761: extern int deflate(z_streamp strm, int flush); 29761: # 363 "/usr/include/zlib.h" 3 4 29761: extern int deflateEnd(z_streamp strm); 29761: # 401 "/usr/include/zlib.h" 3 4 29761: extern int inflate(z_streamp strm, int flush); 29761: # 521 "/usr/include/zlib.h" 3 4 29761: extern int inflateEnd(z_streamp strm); 29761: # 611 "/usr/include/zlib.h" 3 4 29761: extern int deflateSetDictionary(z_streamp strm, 29761: const Bytef *dictionary, 29761: uInt dictLength); 29761: # 655 "/usr/include/zlib.h" 3 4 29761: extern int deflateGetDictionary(z_streamp strm, 29761: Bytef *dictionary, 29761: uInt *dictLength); 29761: # 677 "/usr/include/zlib.h" 3 4 29761: extern int deflateCopy(z_streamp dest, 29761: z_streamp source); 29761: # 695 "/usr/include/zlib.h" 3 4 29761: extern int deflateReset(z_streamp strm); 29761: # 706 "/usr/include/zlib.h" 3 4 29761: extern int deflateParams(z_streamp strm, 29761: int level, 29761: int strategy); 29761: # 744 "/usr/include/zlib.h" 3 4 29761: extern int deflateTune(z_streamp strm, 29761: int good_length, 29761: int max_lazy, 29761: int nice_length, 29761: int max_chain); 29761: # 761 "/usr/include/zlib.h" 3 4 29761: extern uLong deflateBound(z_streamp strm, 29761: uLong sourceLen); 29761: # 776 "/usr/include/zlib.h" 3 4 29761: extern int deflatePending(z_streamp strm, 29761: unsigned *pending, 29761: int *bits); 29761: # 791 "/usr/include/zlib.h" 3 4 29761: extern int deflatePrime(z_streamp strm, 29761: int bits, 29761: int value); 29761: # 808 "/usr/include/zlib.h" 3 4 29761: extern int deflateSetHeader(z_streamp strm, 29761: gz_headerp head); 29761: # 888 "/usr/include/zlib.h" 3 4 29761: extern int inflateSetDictionary(z_streamp strm, 29761: const Bytef *dictionary, 29761: uInt dictLength); 29761: # 911 "/usr/include/zlib.h" 3 4 29761: extern int inflateGetDictionary(z_streamp strm, 29761: Bytef *dictionary, 29761: uInt *dictLength); 29761: # 926 "/usr/include/zlib.h" 3 4 29761: extern int inflateSync(z_streamp strm); 29761: # 945 "/usr/include/zlib.h" 3 4 29761: extern int inflateCopy(z_streamp dest, 29761: z_streamp source); 29761: # 961 "/usr/include/zlib.h" 3 4 29761: extern int inflateReset(z_streamp strm); 29761: # 972 "/usr/include/zlib.h" 3 4 29761: extern int inflateReset2(z_streamp strm, 29761: int windowBits); 29761: # 986 "/usr/include/zlib.h" 3 4 29761: extern int inflatePrime(z_streamp strm, 29761: int bits, 29761: int value); 29761: # 1007 "/usr/include/zlib.h" 3 4 29761: extern long inflateMark(z_streamp strm); 29761: # 1035 "/usr/include/zlib.h" 3 4 29761: extern int inflateGetHeader(z_streamp strm, 29761: gz_headerp head); 29761: # 1097 "/usr/include/zlib.h" 3 4 29761: typedef unsigned (*in_func)(void *, 29761: unsigned char * *); 29761: typedef int (*out_func)(void *, unsigned char *, unsigned); 29761: 29761: extern int inflateBack(z_streamp strm, 29761: in_func in, void *in_desc, 29761: out_func out, void *out_desc); 29761: # 1171 "/usr/include/zlib.h" 3 4 29761: extern int inflateBackEnd(z_streamp strm); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern uLong zlibCompileFlags(void); 29761: # 1232 "/usr/include/zlib.h" 3 4 29761: extern int compress(Bytef *dest, uLongf *destLen, 29761: const Bytef *source, uLong sourceLen); 29761: # 1247 "/usr/include/zlib.h" 3 4 29761: extern int compress2(Bytef *dest, uLongf *destLen, 29761: const Bytef *source, uLong sourceLen, 29761: int level); 29761: # 1263 "/usr/include/zlib.h" 3 4 29761: extern uLong compressBound(uLong sourceLen); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int uncompress(Bytef *dest, uLongf *destLen, 29761: const Bytef *source, uLong sourceLen); 29761: # 1288 "/usr/include/zlib.h" 3 4 29761: extern int uncompress2(Bytef *dest, uLongf *destLen, 29761: const Bytef *source, uLong *sourceLen); 29761: # 1305 "/usr/include/zlib.h" 3 4 29761: typedef struct gzFile_s *gzFile; 29761: # 1345 "/usr/include/zlib.h" 3 4 29761: extern gzFile gzdopen(int fd, const char *mode); 29761: # 1368 "/usr/include/zlib.h" 3 4 29761: extern int gzbuffer(gzFile file, unsigned size); 29761: # 1384 "/usr/include/zlib.h" 3 4 29761: extern int gzsetparams(gzFile file, int level, int strategy); 29761: # 1395 "/usr/include/zlib.h" 3 4 29761: extern int gzread(gzFile file, voidp buf, unsigned len); 29761: # 1425 "/usr/include/zlib.h" 3 4 29761: extern z_size_t gzfread(voidp buf, z_size_t size, z_size_t nitems, 29761: gzFile file); 29761: # 1451 "/usr/include/zlib.h" 3 4 29761: extern int gzwrite(gzFile file, voidpc buf, unsigned len); 29761: 29761: 29761: 29761: 29761: 29761: extern z_size_t gzfwrite(voidpc buf, z_size_t size, 29761: z_size_t nitems, gzFile file); 29761: # 1471 "/usr/include/zlib.h" 3 4 29761: extern int gzprintf(gzFile file, const char *format, ...); 29761: # 1486 "/usr/include/zlib.h" 3 4 29761: extern int gzputs(gzFile file, const char *s); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern char * gzgets(gzFile file, char *buf, int len); 29761: # 1508 "/usr/include/zlib.h" 3 4 29761: extern int gzputc(gzFile file, int c); 29761: 29761: 29761: 29761: 29761: 29761: extern int gzgetc(gzFile file); 29761: # 1523 "/usr/include/zlib.h" 3 4 29761: extern int gzungetc(int c, gzFile file); 29761: # 1535 "/usr/include/zlib.h" 3 4 29761: extern int gzflush(gzFile file, int flush); 29761: # 1570 "/usr/include/zlib.h" 3 4 29761: extern int gzrewind(gzFile file); 29761: # 1598 "/usr/include/zlib.h" 3 4 29761: extern int gzeof(gzFile file); 29761: # 1613 "/usr/include/zlib.h" 3 4 29761: extern int gzdirect(gzFile file); 29761: # 1634 "/usr/include/zlib.h" 3 4 29761: extern int gzclose(gzFile file); 29761: # 1647 "/usr/include/zlib.h" 3 4 29761: extern int gzclose_r(gzFile file); 29761: extern int gzclose_w(gzFile file); 29761: # 1659 "/usr/include/zlib.h" 3 4 29761: extern const char * gzerror(gzFile file, int *errnum); 29761: # 1675 "/usr/include/zlib.h" 3 4 29761: extern void gzclearerr(gzFile file); 29761: # 1692 "/usr/include/zlib.h" 3 4 29761: extern uLong adler32(uLong adler, const Bytef *buf, uInt len); 29761: # 1712 "/usr/include/zlib.h" 3 4 29761: extern uLong adler32_z(uLong adler, const Bytef *buf, 29761: z_size_t len); 29761: # 1730 "/usr/include/zlib.h" 3 4 29761: extern uLong crc32(uLong crc, const Bytef *buf, uInt len); 29761: # 1748 "/usr/include/zlib.h" 3 4 29761: extern uLong crc32_z(uLong crc, const Bytef *buf, 29761: z_size_t len); 29761: # 1771 "/usr/include/zlib.h" 3 4 29761: extern uLong crc32_combine_op(uLong crc1, uLong crc2, uLong op); 29761: # 1784 "/usr/include/zlib.h" 3 4 29761: extern int deflateInit_(z_streamp strm, int level, 29761: const char *version, int stream_size); 29761: extern int inflateInit_(z_streamp strm, 29761: const char *version, int stream_size); 29761: extern int deflateInit2_(z_streamp strm, int level, int method, 29761: int windowBits, int memLevel, 29761: int strategy, const char *version, 29761: int stream_size); 29761: extern int inflateInit2_(z_streamp strm, int windowBits, 29761: const char *version, int stream_size); 29761: extern int inflateBackInit_(z_streamp strm, int windowBits, 29761: unsigned char *window, 29761: const char *version, 29761: int stream_size); 29761: # 1837 "/usr/include/zlib.h" 3 4 29761: struct gzFile_s { 29761: unsigned have; 29761: unsigned char *next; 29761: off64_t pos; 29761: }; 29761: extern int gzgetc_(gzFile file); 29761: # 1859 "/usr/include/zlib.h" 3 4 29761: extern gzFile gzopen64(const char *, const char *); 29761: extern off64_t gzseek64(gzFile, off64_t, int); 29761: extern off64_t gztell64(gzFile); 29761: extern off64_t gzoffset64(gzFile); 29761: extern uLong adler32_combine64(uLong, uLong, off64_t); 29761: extern uLong crc32_combine64(uLong, uLong, off64_t); 29761: extern uLong crc32_combine_gen64(off64_t); 29761: # 1914 "/usr/include/zlib.h" 3 4 29761: extern const char * zError(int); 29761: extern int inflateSyncPoint(z_streamp); 29761: extern const z_crc_t * get_crc_table(void); 29761: extern int inflateUndermine(z_streamp, int); 29761: extern int inflateValidate(z_streamp, int); 29761: extern unsigned long inflateCodesUsed(z_streamp); 29761: extern int inflateResetKeep(z_streamp); 29761: extern int deflateResetKeep(z_streamp); 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int gzvprintf(gzFile file, 29761: const char *format, 29761: va_list va); 29761: 29761: 29761: 29761: 29761: } 29761: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: 29761: # 1 "/usr/include/bzlib.h" 1 3 4 29761: # 26 "/usr/include/bzlib.h" 3 4 29761: extern "C" { 29761: # 48 "/usr/include/bzlib.h" 3 4 29761: typedef 29761: struct { 29761: char *next_in; 29761: unsigned int avail_in; 29761: unsigned int total_in_lo32; 29761: unsigned int total_in_hi32; 29761: 29761: char *next_out; 29761: unsigned int avail_out; 29761: unsigned int total_out_lo32; 29761: unsigned int total_out_hi32; 29761: 29761: void *state; 29761: 29761: void *(*bzalloc)(void *,int,int); 29761: void (*bzfree)(void *,void *); 29761: void *opaque; 29761: } 29761: bz_stream; 29761: # 100 "/usr/include/bzlib.h" 3 4 29761: extern int BZ2_bzCompressInit ( 29761: bz_stream* strm, 29761: int blockSize100k, 29761: int verbosity, 29761: int workFactor 29761: ); 29761: 29761: extern int BZ2_bzCompress ( 29761: bz_stream* strm, 29761: int action 29761: ); 29761: 29761: extern int BZ2_bzCompressEnd ( 29761: bz_stream* strm 29761: ); 29761: 29761: extern int BZ2_bzDecompressInit ( 29761: bz_stream *strm, 29761: int verbosity, 29761: int small 29761: ); 29761: 29761: extern int BZ2_bzDecompress ( 29761: bz_stream* strm 29761: ); 29761: 29761: extern int BZ2_bzDecompressEnd ( 29761: bz_stream *strm 29761: ); 29761: # 137 "/usr/include/bzlib.h" 3 4 29761: typedef void BZFILE; 29761: 29761: extern BZFILE* BZ2_bzReadOpen ( 29761: int* bzerror, 29761: FILE* f, 29761: int verbosity, 29761: int small, 29761: void* unused, 29761: int nUnused 29761: ); 29761: 29761: extern void BZ2_bzReadClose ( 29761: int* bzerror, 29761: BZFILE* b 29761: ); 29761: 29761: extern void BZ2_bzReadGetUnused ( 29761: int* bzerror, 29761: BZFILE* b, 29761: void** unused, 29761: int* nUnused 29761: ); 29761: 29761: extern int BZ2_bzRead ( 29761: int* bzerror, 29761: BZFILE* b, 29761: void* buf, 29761: int len 29761: ); 29761: 29761: extern BZFILE* BZ2_bzWriteOpen ( 29761: int* bzerror, 29761: FILE* f, 29761: int blockSize100k, 29761: int verbosity, 29761: int workFactor 29761: ); 29761: 29761: extern void BZ2_bzWrite ( 29761: int* bzerror, 29761: BZFILE* b, 29761: void* buf, 29761: int len 29761: ); 29761: 29761: extern void BZ2_bzWriteClose ( 29761: int* bzerror, 29761: BZFILE* b, 29761: int abandon, 29761: unsigned int* nbytes_in, 29761: unsigned int* nbytes_out 29761: ); 29761: 29761: extern void BZ2_bzWriteClose64 ( 29761: int* bzerror, 29761: BZFILE* b, 29761: int abandon, 29761: unsigned int* nbytes_in_lo32, 29761: unsigned int* nbytes_in_hi32, 29761: unsigned int* nbytes_out_lo32, 29761: unsigned int* nbytes_out_hi32 29761: ); 29761: 29761: 29761: 29761: 29761: 29761: extern int BZ2_bzBuffToBuffCompress ( 29761: char* dest, 29761: unsigned int* destLen, 29761: char* source, 29761: unsigned int sourceLen, 29761: int blockSize100k, 29761: int verbosity, 29761: int workFactor 29761: ); 29761: 29761: extern int BZ2_bzBuffToBuffDecompress ( 29761: char* dest, 29761: unsigned int* destLen, 29761: char* source, 29761: unsigned int sourceLen, 29761: int small, 29761: int verbosity 29761: ); 29761: # 233 "/usr/include/bzlib.h" 3 4 29761: extern const char * BZ2_bzlibVersion ( 29761: void 29761: ); 29761: 29761: 29761: extern BZFILE * BZ2_bzopen ( 29761: const char *path, 29761: const char *mode 29761: ); 29761: 29761: extern BZFILE * BZ2_bzdopen ( 29761: int fd, 29761: const char *mode 29761: ); 29761: 29761: extern int BZ2_bzread ( 29761: BZFILE* b, 29761: void* buf, 29761: int len 29761: ); 29761: 29761: extern int BZ2_bzwrite ( 29761: BZFILE* b, 29761: void* buf, 29761: int len 29761: ); 29761: 29761: extern int BZ2_bzflush ( 29761: BZFILE* b 29761: ); 29761: 29761: extern void BZ2_bzclose ( 29761: BZFILE* b 29761: ); 29761: 29761: extern const char * BZ2_bzerror ( 29761: BZFILE *b, 29761: int *errnum 29761: ); 29761: 29761: 29761: 29761: } 29761: # 42 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: 29761: # 1 "/usr/include/lz4.h" 1 3 4 29761: # 36 "/usr/include/lz4.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 44 "/usr/include/lz4.h" 2 3 4 29761: # 142 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_versionNumber (void); 29761: __attribute__ ((visibility ("default"))) const char* LZ4_versionString (void); 29761: # 191 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity); 29761: # 208 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe (const char* src, char* dst, int compressedSize, int dstCapacity); 29761: # 226 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compressBound(int inputSize); 29761: # 236 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29761: # 245 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_sizeofState(void); 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_extState (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29761: # 272 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_destSize(const char* src, char* dst, int* srcSizePtr, int targetDstSize); 29761: # 308 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_partial (const char* src, char* dst, int srcSize, int targetOutputSize, int dstCapacity); 29761: 29761: 29761: 29761: 29761: 29761: typedef union LZ4_stream_u LZ4_stream_t; 29761: # 331 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_createStream(void); 29761: __attribute__ ((visibility ("default"))) int LZ4_freeStream (LZ4_stream_t* streamPtr); 29761: # 358 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) void LZ4_resetStream_fast (LZ4_stream_t* streamPtr); 29761: # 371 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 29761: # 380 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_loadDictSlow(LZ4_stream_t* streamPtr, const char* dictionary, int dictSize); 29761: # 414 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) void 29761: LZ4_attach_dictionary(LZ4_stream_t* workingStream, 29761: const LZ4_stream_t* dictionaryStream); 29761: # 441 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); 29761: # 450 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_saveDict (LZ4_stream_t* streamPtr, char* safeBuffer, int maxDictSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef union LZ4_streamDecode_u LZ4_streamDecode_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) LZ4_streamDecode_t* LZ4_createStreamDecode(void); 29761: __attribute__ ((visibility ("default"))) int LZ4_freeStreamDecode (LZ4_streamDecode_t* LZ4_stream); 29761: # 477 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize); 29761: # 490 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_decoderRingBufferSize(int maxBlockSize); 29761: # 531 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int 29761: LZ4_decompress_safe_continue (LZ4_streamDecode_t* LZ4_streamDecode, 29761: const char* src, char* dst, 29761: int srcSize, int dstCapacity); 29761: # 545 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) int 29761: LZ4_decompress_safe_usingDict(const char* src, char* dst, 29761: int srcSize, int dstCapacity, 29761: const char* dictStart, int dictSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) int 29761: LZ4_decompress_safe_partial_usingDict(const char* src, char* dst, 29761: int compressedSize, 29761: int targetOutputSize, int maxOutputSize, 29761: const char* dictStart, int dictSize); 29761: # 701 "/usr/include/lz4.h" 3 4 29761: typedef int8_t LZ4_i8; 29761: typedef uint8_t LZ4_byte; 29761: typedef uint16_t LZ4_u16; 29761: typedef uint32_t LZ4_u32; 29761: # 718 "/usr/include/lz4.h" 3 4 29761: typedef struct LZ4_stream_t_internal LZ4_stream_t_internal; 29761: struct LZ4_stream_t_internal { 29761: LZ4_u32 hashTable[(1 << (14 -2))]; 29761: const LZ4_byte* dictionary; 29761: const LZ4_stream_t_internal* dictCtx; 29761: LZ4_u32 currentOffset; 29761: LZ4_u32 tableType; 29761: LZ4_u32 dictSize; 29761: 29761: }; 29761: 29761: 29761: union LZ4_stream_u { 29761: char minStateSize[((1UL << (14)) + 32)]; 29761: LZ4_stream_t_internal internal_donotuse; 29761: }; 29761: # 750 "/usr/include/lz4.h" 3 4 29761: __attribute__ ((visibility ("default"))) LZ4_stream_t* LZ4_initStream (void* stateBuffer, size_t size); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef struct { 29761: const LZ4_byte* externalDict; 29761: const LZ4_byte* prefixEnd; 29761: size_t extDictSize; 29761: size_t prefixSize; 29761: } LZ4_streamDecode_t_internal; 29761: 29761: 29761: union LZ4_streamDecode_u { 29761: char minStateSize[32]; 29761: LZ4_streamDecode_t_internal internal_donotuse; 29761: } ; 29761: # 806 "/usr/include/lz4.h" 3 4 29761: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress (const char* src, char* dest, int srcSize); 29761: [[deprecated("use LZ4_compress_default() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput (const char* src, char* dest, int srcSize, int maxOutputSize); 29761: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_withState (void* state, const char* source, char* dest, int inputSize); 29761: [[deprecated("use LZ4_compress_fast_extState() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput_withState (void* state, const char* source, char* dest, int inputSize, int maxOutputSize); 29761: [[deprecated("use LZ4_compress_fast_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_continue (LZ4_stream_t* LZ4_streamPtr, const char* source, char* dest, int inputSize); 29761: [[deprecated("use LZ4_compress_fast_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compress_limitedOutput_continue (LZ4_stream_t* LZ4_streamPtr, const char* source, char* dest, int inputSize, int maxOutputSize); 29761: 29761: 29761: [[deprecated("use LZ4_decompress_fast() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress (const char* source, char* dest, int outputSize); 29761: [[deprecated("use LZ4_decompress_safe() instead")]] __attribute__ ((visibility ("default"))) int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize); 29761: # 827 "/usr/include/lz4.h" 3 4 29761: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_create (char* inputBuffer); 29761: [[deprecated("Use LZ4_createStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamState(void); 29761: [[deprecated("Use LZ4_resetStream() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamState(void* state, char* inputBuffer); 29761: [[deprecated("Use LZ4_saveDict() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBuffer (void* state); 29761: 29761: 29761: [[deprecated("use LZ4_decompress_safe_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_safe_withPrefix64k (const char* src, char* dst, int compressedSize, int maxDstSize); 29761: [[deprecated("use LZ4_decompress_fast_usingDict() instead")]] __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_withPrefix64k (const char* src, char* dst, int originalSize); 29761: # 862 "/usr/include/lz4.h" 3 4 29761: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_partial() instead")]] 29761: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast (const char* src, char* dst, int originalSize); 29761: [[deprecated("This function is deprecated and unsafe. Consider migrating towards LZ4_decompress_safe_continue() instead. " "Note that the contract will change (requires block's compressed size, instead of decompressed size)")]] 29761: 29761: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_continue (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int originalSize); 29761: [[deprecated("This function is deprecated and unsafe. Consider using LZ4_decompress_safe_partial_usingDict() instead")]] 29761: __attribute__ ((visibility ("default"))) int LZ4_decompress_fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) void LZ4_resetStream (LZ4_stream_t* streamPtr); 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: # 46 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: # 1 "/usr/include/lz4hc.h" 1 3 4 29761: # 38 "/usr/include/lz4hc.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/lz4.h" 1 3 4 29761: # 36 "/usr/include/lz4.h" 3 4 29761: extern "C" { 29761: # 883 "/usr/include/lz4.h" 3 4 29761: } 29761: # 44 "/usr/include/lz4hc.h" 2 3 4 29761: # 66 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 29761: # 79 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_sizeofStateHC(void); 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_extStateHC(void* stateHC, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 29761: # 91 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_destSize(void* stateHC, 29761: const char* src, char* dst, 29761: int* srcSizePtr, int targetDstSize, 29761: int compressionLevel); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef union LZ4_streamHC_u LZ4_streamHC_t; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_createStreamHC(void); 29761: __attribute__ ((visibility ("default"))) int LZ4_freeStreamHC (LZ4_streamHC_t* streamHCPtr); 29761: # 157 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC_fast(LZ4_streamHC_t* streamHCPtr, int compressionLevel); 29761: __attribute__ ((visibility ("default"))) int LZ4_loadDictHC (LZ4_streamHC_t* streamHCPtr, const char* dictionary, int dictSize); 29761: 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue (LZ4_streamHC_t* streamHCPtr, 29761: const char* src, char* dst, 29761: int srcSize, int maxDstSize); 29761: # 174 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) int LZ4_compress_HC_continue_destSize(LZ4_streamHC_t* LZ4_streamHCPtr, 29761: const char* src, char* dst, 29761: int* srcSizePtr, int targetDstSize); 29761: 29761: __attribute__ ((visibility ("default"))) int LZ4_saveDictHC (LZ4_streamHC_t* streamHCPtr, char* safeBuffer, int maxDictSize); 29761: # 205 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) void 29761: LZ4_attach_HC_dictionary(LZ4_streamHC_t* working_stream, 29761: const LZ4_streamHC_t* dictionary_stream); 29761: # 234 "/usr/include/lz4hc.h" 3 4 29761: typedef struct LZ4HC_CCtx_internal LZ4HC_CCtx_internal; 29761: struct LZ4HC_CCtx_internal 29761: { 29761: LZ4_u32 hashTable[(1 << 15)]; 29761: LZ4_u16 chainTable[(1<<16)]; 29761: const LZ4_byte* end; 29761: const LZ4_byte* prefixStart; 29761: const LZ4_byte* dictStart; 29761: LZ4_u32 dictLimit; 29761: LZ4_u32 lowLimit; 29761: LZ4_u32 nextToUpdate; 29761: short compressionLevel; 29761: LZ4_i8 favorDecSpeed; 29761: 29761: LZ4_i8 dirty; 29761: const LZ4HC_CCtx_internal* dictCtx; 29761: }; 29761: 29761: 29761: union LZ4_streamHC_u { 29761: char minStateSize[262200]; 29761: LZ4HC_CCtx_internal internal_donotuse; 29761: }; 29761: # 275 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) LZ4_streamHC_t* LZ4_initStreamHC(void* buffer, size_t size); 29761: # 284 "/usr/include/lz4hc.h" 3 4 29761: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC (const char* source, char* dest, int inputSize); 29761: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput (const char* source, char* dest, int inputSize, int maxOutputSize); 29761: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2 (const char* source, char* dest, int inputSize, int compressionLevel); 29761: [[deprecated("use LZ4_compress_HC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput(const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29761: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_withStateHC (void* state, const char* source, char* dest, int inputSize); 29761: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput_withStateHC (void* state, const char* source, char* dest, int inputSize, int maxOutputSize); 29761: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_withStateHC (void* state, const char* source, char* dest, int inputSize, int compressionLevel); 29761: [[deprecated("use LZ4_compress_HC_extStateHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput_withStateHC(void* state, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29761: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize); 29761: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC_limitedOutput_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize, int maxOutputSize); 29761: # 304 "/usr/include/lz4hc.h" 3 4 29761: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) void* LZ4_createHC (const char* inputBuffer); 29761: [[deprecated("use LZ4_freeStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_freeHC (void* LZ4HC_Data); 29761: 29761: [[deprecated("use LZ4_saveDictHC() instead")]] __attribute__ ((visibility ("default"))) char* LZ4_slideInputBufferHC (void* LZ4HC_Data); 29761: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int compressionLevel); 29761: [[deprecated("use LZ4_compress_HC_continue() instead")]] __attribute__ ((visibility ("default"))) int LZ4_compressHC2_limitedOutput_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel); 29761: [[deprecated("use LZ4_createStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_sizeofStreamStateHC(void); 29761: [[deprecated("use LZ4_initStreamHC() instead")]] __attribute__ ((visibility ("default"))) int LZ4_resetStreamStateHC(void* state, char* inputBuffer); 29761: # 322 "/usr/include/lz4hc.h" 3 4 29761: __attribute__ ((visibility ("default"))) void LZ4_resetStreamHC (LZ4_streamHC_t* streamHCPtr, int compressionLevel); 29761: 29761: 29761: 29761: } 29761: # 47 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: 29761: # 1 "/usr/include/zstd.h" 1 3 4 29761: # 11 "/usr/include/zstd.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/limits.h" 1 3 4 29761: # 19 "/usr/include/zstd.h" 2 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 20 "/usr/include/zstd.h" 2 3 4 29761: # 114 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_versionNumber(void); 29761: # 123 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) const char* ZSTD_versionString(void); 29761: # 155 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compress( void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: int compressionLevel); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress( void* dst, size_t dstCapacity, 29761: const void* src, size_t compressedSize); 29761: # 193 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: [[deprecated("Replaced by ZSTD_getFrameContentSize")]] 29761: __attribute__ ((visibility ("default"))) 29761: unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_findFrameCompressedSize(const void* src, size_t srcSize); 29761: # 233 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compressBound(size_t srcSize); 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_isError(size_t code); 29761: __attribute__ ((visibility ("default"))) const char* ZSTD_getErrorName(size_t code); 29761: __attribute__ ((visibility ("default"))) int ZSTD_minCLevel(void); 29761: __attribute__ ((visibility ("default"))) int ZSTD_maxCLevel(void); 29761: __attribute__ ((visibility ("default"))) int ZSTD_defaultCLevel(void); 29761: # 259 "/usr/include/zstd.h" 3 4 29761: typedef struct ZSTD_CCtx_s ZSTD_CCtx; 29761: __attribute__ ((visibility ("default"))) ZSTD_CCtx* ZSTD_createCCtx(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); 29761: # 271 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: int compressionLevel); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef struct ZSTD_DCtx_s ZSTD_DCtx; 29761: __attribute__ ((visibility ("default"))) ZSTD_DCtx* ZSTD_createDCtx(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize); 29761: # 315 "/usr/include/zstd.h" 3 4 29761: typedef enum { ZSTD_fast=1, 29761: ZSTD_dfast=2, 29761: ZSTD_greedy=3, 29761: ZSTD_lazy=4, 29761: ZSTD_lazy2=5, 29761: ZSTD_btlazy2=6, 29761: ZSTD_btopt=7, 29761: ZSTD_btultra=8, 29761: ZSTD_btultra2=9 29761: 29761: 29761: } ZSTD_strategy; 29761: 29761: typedef enum { 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_compressionLevel=100, 29761: # 347 "/usr/include/zstd.h" 3 4 29761: ZSTD_c_windowLog=101, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_hashLog=102, 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_chainLog=103, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_searchLog=104, 29761: 29761: 29761: 29761: ZSTD_c_minMatch=105, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_targetLength=106, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_strategy=107, 29761: 29761: 29761: 29761: 29761: ZSTD_c_targetCBlockSize=130, 29761: # 407 "/usr/include/zstd.h" 3 4 29761: ZSTD_c_enableLongDistanceMatching=160, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_ldmHashLog=161, 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_ldmMinMatch=162, 29761: 29761: 29761: 29761: ZSTD_c_ldmBucketSizeLog=163, 29761: 29761: 29761: 29761: ZSTD_c_ldmHashRateLog=164, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_contentSizeFlag=200, 29761: 29761: 29761: 29761: ZSTD_c_checksumFlag=201, 29761: ZSTD_c_dictIDFlag=202, 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: ZSTD_c_nbWorkers=400, 29761: # 459 "/usr/include/zstd.h" 3 4 29761: ZSTD_c_jobSize=401, 29761: 29761: 29761: 29761: 29761: ZSTD_c_overlapLog=402, 29761: # 500 "/usr/include/zstd.h" 3 4 29761: ZSTD_c_experimentalParam1=500, 29761: ZSTD_c_experimentalParam2=10, 29761: ZSTD_c_experimentalParam3=1000, 29761: ZSTD_c_experimentalParam4=1001, 29761: ZSTD_c_experimentalParam5=1002, 29761: 29761: ZSTD_c_experimentalParam7=1004, 29761: ZSTD_c_experimentalParam8=1005, 29761: ZSTD_c_experimentalParam9=1006, 29761: ZSTD_c_experimentalParam10=1007, 29761: ZSTD_c_experimentalParam11=1008, 29761: ZSTD_c_experimentalParam12=1009, 29761: ZSTD_c_experimentalParam13=1010, 29761: ZSTD_c_experimentalParam14=1011, 29761: ZSTD_c_experimentalParam15=1012, 29761: ZSTD_c_experimentalParam16=1013, 29761: ZSTD_c_experimentalParam17=1014, 29761: ZSTD_c_experimentalParam18=1015, 29761: ZSTD_c_experimentalParam19=1016 29761: } ZSTD_cParameter; 29761: 29761: typedef struct { 29761: size_t error; 29761: int lowerBound; 29761: int upperBound; 29761: } ZSTD_bounds; 29761: # 534 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam); 29761: # 547 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value); 29761: # 564 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); 29761: 29761: typedef enum { 29761: ZSTD_reset_session_only = 1, 29761: ZSTD_reset_parameters = 2, 29761: ZSTD_reset_session_and_parameters = 3 29761: } ZSTD_ResetDirective; 29761: # 586 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); 29761: # 600 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compress2( ZSTD_CCtx* cctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize); 29761: # 617 "/usr/include/zstd.h" 3 4 29761: typedef enum { 29761: 29761: ZSTD_d_windowLogMax=100, 29761: # 638 "/usr/include/zstd.h" 3 4 29761: ZSTD_d_experimentalParam1=1000, 29761: ZSTD_d_experimentalParam2=1001, 29761: ZSTD_d_experimentalParam3=1002, 29761: ZSTD_d_experimentalParam4=1003, 29761: ZSTD_d_experimentalParam5=1004, 29761: ZSTD_d_experimentalParam6=1005 29761: 29761: } ZSTD_dParameter; 29761: # 654 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam); 29761: # 663 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int value); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset); 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef struct ZSTD_inBuffer_s { 29761: const void* src; 29761: size_t size; 29761: size_t pos; 29761: } ZSTD_inBuffer; 29761: 29761: typedef struct ZSTD_outBuffer_s { 29761: void* dst; 29761: size_t size; 29761: size_t pos; 29761: } ZSTD_outBuffer; 29761: # 753 "/usr/include/zstd.h" 3 4 29761: typedef ZSTD_CCtx ZSTD_CStream; 29761: 29761: 29761: __attribute__ ((visibility ("default"))) ZSTD_CStream* ZSTD_createCStream(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCStream(ZSTD_CStream* zcs); 29761: 29761: 29761: typedef enum { 29761: ZSTD_e_continue=0, 29761: ZSTD_e_flush=1, 29761: 29761: 29761: 29761: ZSTD_e_end=2 29761: 29761: 29761: 29761: 29761: } ZSTD_EndDirective; 29761: # 800 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 29761: ZSTD_outBuffer* output, 29761: ZSTD_inBuffer* input, 29761: ZSTD_EndDirective endOp); 29761: # 819 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamInSize(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CStreamOutSize(void); 29761: # 839 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); 29761: # 880 "/usr/include/zstd.h" 3 4 29761: typedef ZSTD_DCtx ZSTD_DStream; 29761: 29761: 29761: __attribute__ ((visibility ("default"))) ZSTD_DStream* ZSTD_createDStream(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDStream(ZSTD_DStream* zds); 29761: # 896 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_initDStream(ZSTD_DStream* zds); 29761: # 919 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input); 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamInSize(void); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DStreamOutSize(void); 29761: # 935 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingDict(ZSTD_CCtx* ctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: const void* dict,size_t dictSize, 29761: int compressionLevel); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: const void* dict,size_t dictSize); 29761: 29761: 29761: 29761: 29761: 29761: typedef struct ZSTD_CDict_s ZSTD_CDict; 29761: # 970 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 29761: int compressionLevel); 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeCDict(ZSTD_CDict* CDict); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: const ZSTD_CDict* cdict); 29761: 29761: 29761: typedef struct ZSTD_DDict_s ZSTD_DDict; 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_freeDDict(ZSTD_DDict* ddict); 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, 29761: void* dst, size_t dstCapacity, 29761: const void* src, size_t srcSize, 29761: const ZSTD_DDict* ddict); 29761: # 1018 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict); 29761: # 1042 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize); 29761: # 1079 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); 29761: # 1093 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 29761: # 1114 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 29761: const void* prefix, size_t prefixSize); 29761: # 1132 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); 29761: # 1151 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); 29761: # 1169 "/usr/include/zstd.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, 29761: const void* prefix, size_t prefixSize); 29761: 29761: 29761: 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CStream(const ZSTD_CStream* zcs); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DStream(const ZSTD_DStream* zds); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); 29761: __attribute__ ((visibility ("default"))) size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict); 29761: # 3088 "/usr/include/zstd.h" 3 4 29761: } 29761: # 51 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: 29761: 29761: # 1 "/usr/include/zdict.h" 1 3 4 29761: # 12 "/usr/include/zdict.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 20 "/usr/include/zdict.h" 2 3 4 29761: # 210 "/usr/include/zdict.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity, 29761: const void* samplesBuffer, 29761: const size_t* samplesSizes, unsigned nbSamples); 29761: 29761: typedef struct { 29761: int compressionLevel; 29761: unsigned notificationLevel; 29761: unsigned dictID; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } ZDICT_params_t; 29761: # 262 "/usr/include/zdict.h" 3 4 29761: __attribute__ ((visibility ("default"))) size_t ZDICT_finalizeDictionary(void* dstDictBuffer, size_t maxDictSize, 29761: const void* dictContent, size_t dictContentSize, 29761: const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, 29761: ZDICT_params_t parameters); 29761: 29761: 29761: 29761: __attribute__ ((visibility ("default"))) unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); 29761: __attribute__ ((visibility ("default"))) size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize); 29761: __attribute__ ((visibility ("default"))) unsigned ZDICT_isError(size_t errorCode); 29761: __attribute__ ((visibility ("default"))) const char* ZDICT_getErrorName(size_t errorCode); 29761: # 473 "/usr/include/zdict.h" 3 4 29761: } 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 2 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: namespace rocksdb { 29761: # 88 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: class ZSTDUncompressCachedData { 29761: public: 29761: using ZSTDNativeContext = ZSTD_DCtx*; 29761: ZSTDUncompressCachedData() {} 29761: 29761: ZSTDUncompressCachedData(const ZSTDUncompressCachedData& o) = delete; 29761: ZSTDUncompressCachedData& operator=(const ZSTDUncompressCachedData&) = delete; 29761: ZSTDUncompressCachedData(ZSTDUncompressCachedData&& o) noexcept 29761: : ZSTDUncompressCachedData() { 29761: *this = std::move(o); 29761: } 29761: ZSTDUncompressCachedData& operator=(ZSTDUncompressCachedData&& o) noexcept { 29761: 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: zstd_ctx_ == nullptr 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "zstd_ctx_ == nullptr" 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: std::swap(zstd_ctx_, o.zstd_ctx_); 29761: std::swap(cache_idx_, o.cache_idx_); 29761: return *this; 29761: } 29761: ZSTDNativeContext Get() const { return zstd_ctx_; } 29761: int64_t GetCacheIndex() const { return cache_idx_; } 29761: void CreateIfNeeded() { 29761: if (zstd_ctx_ == nullptr) { 29761: 29761: 29761: 29761: 29761: zstd_ctx_ = ZSTD_createDCtx(); 29761: 29761: cache_idx_ = -1; 29761: } 29761: } 29761: void InitFromCache(const ZSTDUncompressCachedData& o, int64_t idx) { 29761: zstd_ctx_ = o.zstd_ctx_; 29761: cache_idx_ = idx; 29761: } 29761: ~ZSTDUncompressCachedData() { 29761: if (zstd_ctx_ != nullptr && cache_idx_ == -1) { 29761: ZSTD_freeDCtx(zstd_ctx_); 29761: } 29761: } 29761: 29761: private: 29761: ZSTDNativeContext zstd_ctx_ = nullptr; 29761: int64_t cache_idx_ = -1; 29761: }; 29761: 29761: } 29761: # 163 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: struct CompressionDict { 29761: 29761: ZSTD_CDict* zstd_cdict_ = nullptr; 29761: 29761: std::string dict_; 29761: 29761: public: 29761: 29761: CompressionDict(std::string dict, CompressionType type, int level) { 29761: 29761: 29761: 29761: dict_ = std::move(dict); 29761: 29761: zstd_cdict_ = nullptr; 29761: if (!dict_.empty() && (type == kZSTD || type == kZSTDNotFinalCompression)) { 29761: if (level == CompressionOptions::kDefaultCompressionLevel) { 29761: 29761: 29761: 29761: 29761: 29761: level = 3; 29761: } 29761: 29761: 29761: zstd_cdict_ = ZSTD_createCDict(dict_.data(), dict_.size(), level); 29761: 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: zstd_cdict_ != nullptr 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "zstd_cdict_ != nullptr" 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 194 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: } 29761: 29761: } 29761: 29761: ~CompressionDict() { 29761: 29761: size_t res = 0; 29761: if (zstd_cdict_ != nullptr) { 29761: res = ZSTD_freeCDict(zstd_cdict_); 29761: } 29761: 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: res == 0 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "res == 0" 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 205 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: (void)res; 29761: 29761: } 29761: 29761: 29761: const ZSTD_CDict* GetDigestedZstdCDict() const { return zstd_cdict_; } 29761: 29761: 29761: Slice GetRawDict() const { return dict_; } 29761: 29761: static const CompressionDict& GetEmptyDict() { 29761: static CompressionDict empty_dict{}; 29761: return empty_dict; 29761: } 29761: 29761: CompressionDict() = default; 29761: 29761: CompressionDict(const CompressionDict&) = delete; 29761: CompressionDict& operator=(const CompressionDict&) = delete; 29761: CompressionDict(CompressionDict&&) = delete; 29761: CompressionDict& operator=(CompressionDict&&) = delete; 29761: }; 29761: 29761: 29761: 29761: struct UncompressionDict { 29761: 29761: 29761: std::string dict_; 29761: 29761: 29761: 29761: 29761: CacheAllocationPtr allocation_; 29761: 29761: 29761: 29761: 29761: Slice slice_; 29761: # 254 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: UncompressionDict(std::string dict, bool ) 29761: 29761: : dict_(std::move(dict)), slice_(dict_) { 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: UncompressionDict(Slice slice, CacheAllocationPtr&& allocation, 29761: bool ) 29761: 29761: : allocation_(std::move(allocation)), slice_(std::move(slice)) { 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: UncompressionDict(UncompressionDict&& rhs) 29761: : dict_(std::move(rhs.dict_)), 29761: allocation_(std::move(rhs.allocation_)), 29761: slice_(std::move(rhs.slice_)) 29761: 29761: 29761: 29761: 29761: { 29761: 29761: 29761: 29761: } 29761: 29761: ~UncompressionDict() { 29761: # 304 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: UncompressionDict& operator=(UncompressionDict&& rhs) { 29761: if (this == &rhs) { 29761: return *this; 29761: } 29761: 29761: dict_ = std::move(rhs.dict_); 29761: allocation_ = std::move(rhs.allocation_); 29761: slice_ = std::move(rhs.slice_); 29761: 29761: 29761: 29761: 29761: 29761: 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: bool own_bytes() const { return !dict_.empty() || allocation_; } 29761: 29761: const Slice& GetRawDict() const { return slice_; } 29761: 29761: 29761: const Slice& ContentSlice() const { return slice_; } 29761: static constexpr CacheEntryRole kCacheEntryRole = CacheEntryRole::kOtherBlock; 29761: static constexpr BlockType kBlockType = BlockType::kCompressionDictionary; 29761: 29761: 29761: 29761: 29761: 29761: static const UncompressionDict& GetEmptyDict() { 29761: static UncompressionDict empty_dict{}; 29761: return empty_dict; 29761: } 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: size_t usage = sizeof(struct UncompressionDict); 29761: usage += dict_.size(); 29761: if (allocation_) { 29761: auto allocator = allocation_.get_deleter().allocator; 29761: if (allocator) { 29761: usage += allocator->UsableSize(allocation_.get(), slice_.size()); 29761: } else { 29761: usage += slice_.size(); 29761: } 29761: } 29761: 29761: 29761: 29761: return usage; 29761: } 29761: 29761: UncompressionDict() = default; 29761: 29761: UncompressionDict(const CompressionDict&) = delete; 29761: UncompressionDict& operator=(const CompressionDict&) = delete; 29761: }; 29761: 29761: class CompressionContext { 29761: private: 29761: 29761: ZSTD_CCtx* zstd_ctx_ = nullptr; 29761: 29761: ZSTD_CCtx* CreateZSTDContext() { 29761: 29761: 29761: 29761: return ZSTD_createCCtx(); 29761: 29761: } 29761: 29761: void CreateNativeContext(CompressionType type, int level, bool checksum) { 29761: if (type == kZSTD || type == kZSTDNotFinalCompression) { 29761: zstd_ctx_ = CreateZSTDContext(); 29761: 29761: if (level == CompressionOptions::kDefaultCompressionLevel) { 29761: 29761: 29761: level = 3; 29761: } 29761: size_t err = 29761: ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_compressionLevel, level); 29761: if (ZSTD_isError(err)) { 29761: 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: false 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "false" 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 393 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: ZSTD_freeCCtx(zstd_ctx_); 29761: zstd_ctx_ = CreateZSTDContext(); 29761: } 29761: if (checksum) { 29761: err = ZSTD_CCtx_setParameter(zstd_ctx_, ZSTD_c_checksumFlag, 1); 29761: if (ZSTD_isError(err)) { 29761: 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: false 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "false" 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 400 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: ZSTD_freeCCtx(zstd_ctx_); 29761: zstd_ctx_ = CreateZSTDContext(); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: } 29761: } 29761: void DestroyNativeContext() { 29761: if (zstd_ctx_ != nullptr) { 29761: ZSTD_freeCCtx(zstd_ctx_); 29761: } 29761: } 29761: 29761: public: 29761: 29761: ZSTD_CCtx* ZSTDPreallocCtx() const { 29761: 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: zstd_ctx_ != nullptr 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "zstd_ctx_ != nullptr" 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 420 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: return zstd_ctx_; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: public: 29761: explicit CompressionContext(CompressionType type, 29761: const CompressionOptions& options) { 29761: CreateNativeContext(type, options.level, options.checksum); 29761: } 29761: ~CompressionContext() { DestroyNativeContext(); } 29761: CompressionContext(const CompressionContext&) = delete; 29761: CompressionContext& operator=(const CompressionContext&) = delete; 29761: }; 29761: 29761: class CompressionInfo { 29761: const CompressionOptions& opts_; 29761: const CompressionContext& context_; 29761: const CompressionDict& dict_; 29761: const CompressionType type_; 29761: const uint64_t sample_for_compression_; 29761: 29761: public: 29761: CompressionInfo(const CompressionOptions& _opts, 29761: const CompressionContext& _context, 29761: const CompressionDict& _dict, CompressionType _type, 29761: uint64_t _sample_for_compression) 29761: : opts_(_opts), 29761: context_(_context), 29761: dict_(_dict), 29761: type_(_type), 29761: sample_for_compression_(_sample_for_compression) {} 29761: 29761: const CompressionOptions& options() const { return opts_; } 29761: const CompressionContext& context() const { return context_; } 29761: const CompressionDict& dict() const { return dict_; } 29761: CompressionType type() const { return type_; } 29761: uint64_t SampleForCompression() const { return sample_for_compression_; } 29761: }; 29761: 29761: class UncompressionContext { 29761: private: 29761: CompressionContextCache* ctx_cache_ = nullptr; 29761: ZSTDUncompressCachedData uncomp_cached_data_; 29761: 29761: public: 29761: explicit UncompressionContext(CompressionType type) { 29761: if (type == kZSTD || type == kZSTDNotFinalCompression) { 29761: ctx_cache_ = CompressionContextCache::Instance(); 29761: uncomp_cached_data_ = ctx_cache_->GetCachedZSTDUncompressData(); 29761: } 29761: } 29761: ~UncompressionContext() { 29761: if (uncomp_cached_data_.GetCacheIndex() != -1) { 29761: 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ctx_cache_ != nullptr 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "ctx_cache_ != nullptr" 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 479 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: ctx_cache_->ReturnCachedZSTDUncompressData( 29761: uncomp_cached_data_.GetCacheIndex()); 29761: } 29761: } 29761: UncompressionContext(const UncompressionContext&) = delete; 29761: UncompressionContext& operator=(const UncompressionContext&) = delete; 29761: 29761: ZSTDUncompressCachedData::ZSTDNativeContext GetZSTDContext() const { 29761: return uncomp_cached_data_.Get(); 29761: } 29761: }; 29761: 29761: class UncompressionInfo { 29761: const UncompressionContext& context_; 29761: const UncompressionDict& dict_; 29761: const CompressionType type_; 29761: 29761: public: 29761: UncompressionInfo(const UncompressionContext& _context, 29761: const UncompressionDict& _dict, CompressionType _type) 29761: : context_(_context), dict_(_dict), type_(_type) {} 29761: 29761: const UncompressionContext& context() const { return context_; } 29761: const UncompressionDict& dict() const { return dict_; } 29761: CompressionType type() const { return type_; } 29761: }; 29761: 29761: inline bool Snappy_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool Zlib_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool BZip2_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool LZ4_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool XPRESS_Supported() { 29761: 29761: 29761: 29761: return false; 29761: 29761: } 29761: 29761: inline bool ZSTD_Supported() { 29761: 29761: 29761: return (ZSTD_versionNumber() >= 800); 29761: 29761: 29761: 29761: } 29761: 29761: inline bool ZSTDNotFinal_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool ZSTD_Streaming_Supported() { 29761: 29761: return true; 29761: 29761: 29761: 29761: } 29761: 29761: inline bool StreamingCompressionTypeSupported( 29761: CompressionType compression_type) { 29761: switch (compression_type) { 29761: case kNoCompression: 29761: return true; 29761: case kZSTD: 29761: return ZSTD_Streaming_Supported(); 29761: default: 29761: return false; 29761: } 29761: } 29761: 29761: inline bool CompressionTypeSupported(CompressionType compression_type) { 29761: switch (compression_type) { 29761: case kNoCompression: 29761: return true; 29761: case kSnappyCompression: 29761: return Snappy_Supported(); 29761: case kZlibCompression: 29761: return Zlib_Supported(); 29761: case kBZip2Compression: 29761: return BZip2_Supported(); 29761: case kLZ4Compression: 29761: return LZ4_Supported(); 29761: case kLZ4HCCompression: 29761: return LZ4_Supported(); 29761: case kXpressCompression: 29761: return XPRESS_Supported(); 29761: case kZSTDNotFinalCompression: 29761: return ZSTDNotFinal_Supported(); 29761: case kZSTD: 29761: return ZSTD_Supported(); 29761: default: 29761: 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: false 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "false" 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 605 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: return false; 29761: } 29761: } 29761: 29761: inline bool DictCompressionTypeSupported(CompressionType compression_type) { 29761: switch (compression_type) { 29761: case kNoCompression: 29761: return false; 29761: case kSnappyCompression: 29761: return false; 29761: case kZlibCompression: 29761: return Zlib_Supported(); 29761: case kBZip2Compression: 29761: return false; 29761: case kLZ4Compression: 29761: case kLZ4HCCompression: 29761: 29761: return LZ4_Supported(); 29761: 29761: 29761: 29761: case kXpressCompression: 29761: return false; 29761: case kZSTDNotFinalCompression: 29761: 29761: return ZSTDNotFinal_Supported(); 29761: 29761: 29761: 29761: case kZSTD: 29761: 29761: return ZSTD_Supported(); 29761: 29761: 29761: 29761: default: 29761: 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: false 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "false" 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 642 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: return false; 29761: } 29761: } 29761: 29761: inline std::string CompressionTypeToString(CompressionType compression_type) { 29761: switch (compression_type) { 29761: case kNoCompression: 29761: return "NoCompression"; 29761: case kSnappyCompression: 29761: return "Snappy"; 29761: case kZlibCompression: 29761: return "Zlib"; 29761: case kBZip2Compression: 29761: return "BZip2"; 29761: case kLZ4Compression: 29761: return "LZ4"; 29761: case kLZ4HCCompression: 29761: return "LZ4HC"; 29761: case kXpressCompression: 29761: return "Xpress"; 29761: case kZSTD: 29761: return "ZSTD"; 29761: case kZSTDNotFinalCompression: 29761: return "ZSTDNotFinal"; 29761: case kDisableCompressionOption: 29761: return "DisableOption"; 29761: default: 29761: 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: false 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "false" 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 670 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: return ""; 29761: } 29761: } 29761: 29761: inline std::string CompressionOptionsToString( 29761: CompressionOptions& compression_options) { 29761: std::string result; 29761: result.reserve(512); 29761: result.append("window_bits=") 29761: .append(std::to_string(compression_options.window_bits)) 29761: .append("; "); 29761: result.append("level=") 29761: .append(std::to_string(compression_options.level)) 29761: .append("; "); 29761: result.append("strategy=") 29761: .append(std::to_string(compression_options.strategy)) 29761: .append("; "); 29761: result.append("max_dict_bytes=") 29761: .append(std::to_string(compression_options.max_dict_bytes)) 29761: .append("; "); 29761: result.append("zstd_max_train_bytes=") 29761: .append(std::to_string(compression_options.zstd_max_train_bytes)) 29761: .append("; "); 29761: result.append("enabled=") 29761: .append(std::to_string(compression_options.enabled)) 29761: .append("; "); 29761: result.append("max_dict_buffer_bytes=") 29761: .append(std::to_string(compression_options.max_dict_buffer_bytes)) 29761: .append("; "); 29761: result.append("use_zstd_dict_trainer=") 29761: .append(std::to_string(compression_options.use_zstd_dict_trainer)) 29761: .append("; "); 29761: return result; 29761: } 29761: # 713 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: inline bool Snappy_Compress(const CompressionInfo& , const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: output->resize(snappy::MaxCompressedLength(length)); 29761: size_t outlen; 29761: snappy::RawCompress(input, length, &(*output)[0], &outlen); 29761: output->resize(outlen); 29761: return true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: inline CacheAllocationPtr Snappy_Uncompress( 29761: const char* input, size_t length, size_t* uncompressed_size, 29761: MemoryAllocator* allocator = nullptr) { 29761: 29761: size_t uncompressed_length = 0; 29761: if (!snappy::GetUncompressedLength(input, length, &uncompressed_length)) { 29761: return nullptr; 29761: } 29761: 29761: CacheAllocationPtr output = AllocateBlock(uncompressed_length, allocator); 29761: 29761: if (!snappy::RawUncompress(input, length, output.get())) { 29761: return nullptr; 29761: } 29761: 29761: *uncompressed_size = uncompressed_length; 29761: 29761: return output; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: namespace compression { 29761: 29761: inline size_t PutDecompressedSizeInfo(std::string* output, uint32_t length) { 29761: PutVarint32(output, length); 29761: return output->size(); 29761: } 29761: 29761: inline bool GetDecompressedSizeInfo(const char** input_data, 29761: size_t* input_length, 29761: uint32_t* output_len) { 29761: auto new_input_data = 29761: GetVarint32Ptr(*input_data, *input_data + *input_length, output_len); 29761: if (new_input_data == nullptr) { 29761: return false; 29761: } 29761: *input_length -= (new_input_data - *input_data); 29761: *input_data = new_input_data; 29761: return true; 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline bool Zlib_Compress(const CompressionInfo& info, 29761: uint32_t compress_format_version, const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: if (length > std::numeric_limits::max()) { 29761: 29761: return false; 29761: } 29761: 29761: size_t output_header_len = 0; 29761: if (compress_format_version == 2) { 29761: output_header_len = compression::PutDecompressedSizeInfo( 29761: output, static_cast(length)); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: static const int memLevel = 8; 29761: int level; 29761: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 29761: level = 29761: # 806 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (-1) 29761: # 806 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: } else { 29761: level = info.options().level; 29761: } 29761: z_stream _stream; 29761: memset(&_stream, 0, sizeof(z_stream)); 29761: int st = 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: deflateInit2_(( 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: &_stream 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ),( 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: level 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ),(8),( 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: info.options().window_bits 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ),( 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: memLevel 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ), ( 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: info.options().strategy 29761: # 812 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ), "1.3.1", (int)sizeof(z_stream)) 29761: 29761: # 813 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: if (st != 29761: # 814 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 814 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: return false; 29761: } 29761: 29761: Slice compression_dict = info.dict().GetRawDict(); 29761: if (compression_dict.size()) { 29761: 29761: st = deflateSetDictionary( 29761: &_stream, reinterpret_cast(compression_dict.data()), 29761: static_cast(compression_dict.size())); 29761: if (st != 29761: # 824 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 824 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: deflateEnd(&_stream); 29761: return false; 29761: } 29761: } 29761: 29761: 29761: size_t upper_bound = 29761: deflateBound(&_stream, static_cast(length)); 29761: output->resize(output_header_len + upper_bound); 29761: 29761: 29761: _stream.next_in = (Bytef*)input; 29761: _stream.avail_in = static_cast(length); 29761: 29761: 29761: _stream.avail_out = static_cast(upper_bound); 29761: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 29761: 29761: bool compressed = false; 29761: st = deflate(&_stream, 29761: # 844 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 4 29761: # 844 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ); 29761: if (st == 29761: # 845 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 1 29761: # 845 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: compressed = true; 29761: output->resize(output->size() - _stream.avail_out); 29761: } 29761: 29761: 29761: 29761: 29761: deflateEnd(&_stream); 29761: return compressed; 29761: # 863 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline CacheAllocationPtr Zlib_Uncompress( 29761: const UncompressionInfo& info, const char* input_data, size_t input_length, 29761: size_t* uncompressed_size, uint32_t compress_format_version, 29761: MemoryAllocator* allocator = nullptr, int windowBits = -14) { 29761: 29761: uint32_t output_len = 0; 29761: if (compress_format_version == 2) { 29761: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29761: &output_len)) { 29761: return nullptr; 29761: } 29761: } else { 29761: 29761: 29761: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 29761: output_len = static_cast( 29761: std::min(proposed_output_len, 29761: static_cast(std::numeric_limits::max()))); 29761: } 29761: 29761: z_stream _stream; 29761: memset(&_stream, 0, sizeof(z_stream)); 29761: 29761: 29761: 29761: 29761: int st = 29761: 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: inflateInit2_(( 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: &_stream 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ), ( 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: windowBits > 0 ? windowBits + 32 : windowBits 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ), "1.3.1", (int)sizeof(z_stream)) 29761: # 898 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: if (st != 29761: # 899 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 899 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: return nullptr; 29761: } 29761: 29761: const Slice& compression_dict = info.dict().GetRawDict(); 29761: if (compression_dict.size()) { 29761: 29761: st = inflateSetDictionary( 29761: &_stream, reinterpret_cast(compression_dict.data()), 29761: static_cast(compression_dict.size())); 29761: if (st != 29761: # 909 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 909 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: return nullptr; 29761: } 29761: } 29761: 29761: _stream.next_in = (Bytef*)input_data; 29761: _stream.avail_in = static_cast(input_length); 29761: 29761: auto output = AllocateBlock(output_len, allocator); 29761: 29761: _stream.next_out = (Bytef*)output.get(); 29761: _stream.avail_out = static_cast(output_len); 29761: 29761: bool done = false; 29761: while (!done) { 29761: st = inflate(&_stream, 29761: # 924 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 2 29761: # 924 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ); 29761: switch (st) { 29761: case 29761: # 926 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 1 29761: # 926 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: : 29761: done = true; 29761: break; 29761: case 29761: # 929 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 929 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: : { 29761: 29761: 29761: 29761: 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: compress_format_version != 2 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "compress_format_version != 2" 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 933 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: size_t old_sz = output_len; 29761: uint32_t output_len_delta = output_len / 5; 29761: output_len += output_len_delta < 10 ? 10 : output_len_delta; 29761: auto tmp = AllocateBlock(output_len, allocator); 29761: memcpy(tmp.get(), output.get(), old_sz); 29761: output = std::move(tmp); 29761: 29761: 29761: _stream.next_out = (Bytef*)(output.get() + old_sz); 29761: _stream.avail_out = static_cast(output_len - old_sz); 29761: break; 29761: } 29761: case 29761: # 946 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (-5) 29761: # 946 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: : 29761: default: 29761: inflateEnd(&_stream); 29761: return nullptr; 29761: } 29761: } 29761: 29761: 29761: 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: compress_format_version != 2 || _stream.avail_out == 0 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "compress_format_version != 2 || _stream.avail_out == 0" 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 954 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: output_len >= _stream.avail_out 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "output_len >= _stream.avail_out" 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 955 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: *uncompressed_size = output_len - _stream.avail_out; 29761: inflateEnd(&_stream); 29761: return output; 29761: # 969 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: inline bool BZip2_Compress(const CompressionInfo& , 29761: uint32_t compress_format_version, const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: if (length > std::numeric_limits::max()) { 29761: 29761: return false; 29761: } 29761: size_t output_header_len = 0; 29761: if (compress_format_version == 2) { 29761: output_header_len = compression::PutDecompressedSizeInfo( 29761: output, static_cast(length)); 29761: } 29761: 29761: 29761: output->resize(output_header_len + length); 29761: 29761: bz_stream _stream; 29761: memset(&_stream, 0, sizeof(bz_stream)); 29761: 29761: 29761: 29761: 29761: int st = BZ2_bzCompressInit(&_stream, 1, 0, 30); 29761: if (st != 29761: # 999 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 999 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: return false; 29761: } 29761: 29761: 29761: _stream.next_in = (char*)input; 29761: _stream.avail_in = static_cast(length); 29761: 29761: 29761: _stream.avail_out = static_cast(length); 29761: _stream.next_out = reinterpret_cast(&(*output)[output_header_len]); 29761: 29761: bool compressed = false; 29761: st = BZ2_bzCompress(&_stream, 29761: # 1012 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 2 29761: # 1012 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ); 29761: if (st == 29761: # 1013 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 4 29761: # 1013 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: compressed = true; 29761: output->resize(output->size() - _stream.avail_out); 29761: } 29761: 29761: 29761: 29761: 29761: BZ2_bzCompressEnd(&_stream); 29761: return compressed; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: inline CacheAllocationPtr BZip2_Uncompress( 29761: const char* input_data, size_t input_length, size_t* uncompressed_size, 29761: uint32_t compress_format_version, MemoryAllocator* allocator = nullptr) { 29761: 29761: uint32_t output_len = 0; 29761: if (compress_format_version == 2) { 29761: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29761: &output_len)) { 29761: return nullptr; 29761: } 29761: } else { 29761: 29761: 29761: size_t proposed_output_len = ((input_length * 5) & (~(4096 - 1))) + 4096; 29761: output_len = static_cast( 29761: std::min(proposed_output_len, 29761: static_cast(std::numeric_limits::max()))); 29761: } 29761: 29761: bz_stream _stream; 29761: memset(&_stream, 0, sizeof(bz_stream)); 29761: 29761: int st = BZ2_bzDecompressInit(&_stream, 0, 0); 29761: if (st != 29761: # 1059 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 1059 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ) { 29761: return nullptr; 29761: } 29761: 29761: _stream.next_in = (char*)input_data; 29761: _stream.avail_in = static_cast(input_length); 29761: 29761: auto output = AllocateBlock(output_len, allocator); 29761: 29761: _stream.next_out = (char*)output.get(); 29761: _stream.avail_out = static_cast(output_len); 29761: 29761: bool done = false; 29761: while (!done) { 29761: st = BZ2_bzDecompress(&_stream); 29761: switch (st) { 29761: case 29761: # 1075 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 4 29761: # 1075 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: : 29761: done = true; 29761: break; 29761: case 29761: # 1078 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: 0 29761: # 1078 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: : { 29761: 29761: 29761: 29761: 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: compress_format_version != 2 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "compress_format_version != 2" 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1082 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: uint32_t old_sz = output_len; 29761: output_len = output_len * 1.2; 29761: auto tmp = AllocateBlock(output_len, allocator); 29761: memcpy(tmp.get(), output.get(), old_sz); 29761: output = std::move(tmp); 29761: 29761: 29761: _stream.next_out = (char*)(output.get() + old_sz); 29761: _stream.avail_out = static_cast(output_len - old_sz); 29761: break; 29761: } 29761: default: 29761: BZ2_bzDecompressEnd(&_stream); 29761: return nullptr; 29761: } 29761: } 29761: 29761: 29761: 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: compress_format_version != 2 || _stream.avail_out == 0 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "compress_format_version != 2 || _stream.avail_out == 0" 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1101 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: output_len >= _stream.avail_out 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "output_len >= _stream.avail_out" 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1102 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: *uncompressed_size = output_len - _stream.avail_out; 29761: BZ2_bzDecompressEnd(&_stream); 29761: return output; 29761: # 1114 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline bool LZ4_Compress(const CompressionInfo& info, 29761: uint32_t compress_format_version, const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: if (length > std::numeric_limits::max()) { 29761: 29761: return false; 29761: } 29761: 29761: size_t output_header_len = 0; 29761: if (compress_format_version == 2) { 29761: 29761: output_header_len = compression::PutDecompressedSizeInfo( 29761: output, static_cast(length)); 29761: } else { 29761: 29761: 29761: output_header_len = 8; 29761: output->resize(output_header_len); 29761: char* p = const_cast(output->c_str()); 29761: memcpy(p, &length, sizeof(length)); 29761: } 29761: int compress_bound = LZ4_compressBound(static_cast(length)); 29761: output->resize(static_cast(output_header_len + compress_bound)); 29761: 29761: int outlen; 29761: 29761: LZ4_stream_t* stream = LZ4_createStream(); 29761: Slice compression_dict = info.dict().GetRawDict(); 29761: if (compression_dict.size()) { 29761: LZ4_loadDict(stream, compression_dict.data(), 29761: static_cast(compression_dict.size())); 29761: } 29761: 29761: int acceleration; 29761: if (info.options().level < 0) { 29761: acceleration = -info.options().level; 29761: } else { 29761: acceleration = 1; 29761: } 29761: outlen = LZ4_compress_fast_continue( 29761: stream, input, &(*output)[output_header_len], static_cast(length), 29761: compress_bound, acceleration); 29761: 29761: 29761: 29761: 29761: 29761: LZ4_freeStream(stream); 29761: 29761: 29761: 29761: 29761: 29761: if (outlen == 0) { 29761: return false; 29761: } 29761: output->resize(static_cast(output_header_len + outlen)); 29761: return true; 29761: # 1189 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline CacheAllocationPtr LZ4_Uncompress(const UncompressionInfo& info, 29761: const char* input_data, 29761: size_t input_length, 29761: size_t* uncompressed_size, 29761: uint32_t compress_format_version, 29761: MemoryAllocator* allocator = nullptr) { 29761: 29761: uint32_t output_len = 0; 29761: if (compress_format_version == 2) { 29761: 29761: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29761: &output_len)) { 29761: return nullptr; 29761: } 29761: } else { 29761: 29761: 29761: if (input_length < 8) { 29761: return nullptr; 29761: } 29761: if (port::kLittleEndian) { 29761: memcpy(&output_len, input_data, sizeof(output_len)); 29761: } else { 29761: memcpy(&output_len, input_data + 4, sizeof(output_len)); 29761: } 29761: input_length -= 8; 29761: input_data += 8; 29761: } 29761: 29761: auto output = AllocateBlock(output_len, allocator); 29761: 29761: int decompress_bytes = 0; 29761: 29761: 29761: LZ4_streamDecode_t* stream = LZ4_createStreamDecode(); 29761: const Slice& compression_dict = info.dict().GetRawDict(); 29761: if (compression_dict.size()) { 29761: LZ4_setStreamDecode(stream, compression_dict.data(), 29761: static_cast(compression_dict.size())); 29761: } 29761: decompress_bytes = LZ4_decompress_safe_continue( 29761: stream, input_data, output.get(), static_cast(input_length), 29761: static_cast(output_len)); 29761: LZ4_freeStreamDecode(stream); 29761: 29761: 29761: 29761: 29761: 29761: 29761: if (decompress_bytes < 0) { 29761: return nullptr; 29761: } 29761: 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: decompress_bytes == static_cast(output_len) 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "decompress_bytes == static_cast(output_len)" 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1250 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: *uncompressed_size = decompress_bytes; 29761: return output; 29761: # 1262 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline bool LZ4HC_Compress(const CompressionInfo& info, 29761: uint32_t compress_format_version, const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: if (length > std::numeric_limits::max()) { 29761: 29761: return false; 29761: } 29761: 29761: size_t output_header_len = 0; 29761: if (compress_format_version == 2) { 29761: 29761: output_header_len = compression::PutDecompressedSizeInfo( 29761: output, static_cast(length)); 29761: } else { 29761: 29761: 29761: output_header_len = 8; 29761: output->resize(output_header_len); 29761: char* p = const_cast(output->c_str()); 29761: memcpy(p, &length, sizeof(length)); 29761: } 29761: int compress_bound = LZ4_compressBound(static_cast(length)); 29761: output->resize(static_cast(output_header_len + compress_bound)); 29761: 29761: int outlen; 29761: int level; 29761: if (info.options().level == CompressionOptions::kDefaultCompressionLevel) { 29761: level = 0; 29761: } else { 29761: level = info.options().level; 29761: } 29761: 29761: LZ4_streamHC_t* stream = LZ4_createStreamHC(); 29761: LZ4_resetStreamHC(stream, level); 29761: Slice compression_dict = info.dict().GetRawDict(); 29761: const char* compression_dict_data = 29761: compression_dict.size() > 0 ? compression_dict.data() : nullptr; 29761: size_t compression_dict_size = compression_dict.size(); 29761: if (compression_dict_data != nullptr) { 29761: LZ4_loadDictHC(stream, compression_dict_data, 29761: static_cast(compression_dict_size)); 29761: } 29761: 29761: 29761: outlen = 29761: LZ4_compress_HC_continue(stream, input, &(*output)[output_header_len], 29761: static_cast(length), compress_bound); 29761: 29761: 29761: 29761: 29761: 29761: LZ4_freeStreamHC(stream); 29761: # 1335 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: if (outlen == 0) { 29761: return false; 29761: } 29761: output->resize(static_cast(output_header_len + outlen)); 29761: return true; 29761: # 1348 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline bool XPRESS_Compress(const char* , size_t , 29761: std::string* ) { 29761: return false; 29761: } 29761: # 1368 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: inline char* XPRESS_Uncompress(const char* , 29761: size_t , 29761: size_t* ) { 29761: return nullptr; 29761: } 29761: 29761: 29761: inline bool ZSTD_Compress(const CompressionInfo& info, const char* input, 29761: size_t length, ::std::string* output) { 29761: 29761: if (length > std::numeric_limits::max()) { 29761: 29761: return false; 29761: } 29761: 29761: size_t output_header_len = compression::PutDecompressedSizeInfo( 29761: output, static_cast(length)); 29761: 29761: size_t compressBound = ZSTD_compressBound(length); 29761: output->resize(static_cast(output_header_len + compressBound)); 29761: size_t outlen = 0; 29761: 29761: ZSTD_CCtx* context = info.context().ZSTDPreallocCtx(); 29761: 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: context != nullptr 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "context != nullptr" 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1391 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: 29761: if (info.dict().GetDigestedZstdCDict() != nullptr) { 29761: ZSTD_CCtx_refCDict(context, info.dict().GetDigestedZstdCDict()); 29761: } else { 29761: ZSTD_CCtx_loadDictionary(context, info.dict().GetRawDict().data(), 29761: info.dict().GetRawDict().size()); 29761: } 29761: 29761: 29761: outlen = ZSTD_compress2(context, &(*output)[output_header_len], compressBound, 29761: input, length); 29761: # 1431 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: if (outlen == 0) { 29761: return false; 29761: } 29761: output->resize(output_header_len + outlen); 29761: return true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline CacheAllocationPtr ZSTD_Uncompress( 29761: const UncompressionInfo& info, const char* input_data, size_t input_length, 29761: size_t* uncompressed_size, MemoryAllocator* allocator = nullptr, 29761: const char** error_message = nullptr) { 29761: 29761: static const char* const kErrorDecodeOutputSize = 29761: "Cannot decode output size."; 29761: static const char* const kErrorOutputLenMismatch = 29761: "Decompressed size does not match header."; 29761: uint32_t output_len = 0; 29761: if (!compression::GetDecompressedSizeInfo(&input_data, &input_length, 29761: &output_len)) { 29761: if (error_message) { 29761: *error_message = kErrorDecodeOutputSize; 29761: } 29761: return nullptr; 29761: } 29761: 29761: CacheAllocationPtr output = AllocateBlock(output_len, allocator); 29761: size_t actual_output_length = 0; 29761: 29761: ZSTD_DCtx* context = info.context().GetZSTDContext(); 29761: 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: context != nullptr 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "context != nullptr" 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1472 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: 29761: 29761: 29761: 29/usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/merge_operator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/merge_operator.cc 761: 29761: 29761: 29761: actual_output_length = ZSTD_decompress_usingDict( 29761: context, output.get(), output_len, input_data, input_length, 29761: info.dict().GetRawDict().data(), info.dict().GetRawDict().size()); 29761: # 1491 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: if (ZSTD_isError(actual_output_length)) { 29761: if (error_message) { 29761: *error_message = ZSTD_getErrorName(actual_output_length); 29761: } 29761: return nullptr; 29761: } else if (actual_output_length != output_len) { 29761: if (error_message) { 29761: *error_message = kErrorOutputLenMismatch; 29761: } 29761: return nullptr; 29761: } 29761: 29761: *uncompressed_size = actual_output_length; 29761: return output; 29761: # 1514 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: inline bool ZSTD_TrainDictionarySupported() { 29761: 29761: 29761: 29761: 29761: return (ZSTD_versionNumber() >= 10103); 29761: 29761: 29761: 29761: } 29761: 29761: inline std::string ZSTD_TrainDictionary(const std::string& samples, 29761: const std::vector& sample_lens, 29761: size_t max_dict_bytes) { 29761: 29761: 29761: 29761: 29761: 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: samples.empty() == sample_lens.empty() 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "samples.empty() == sample_lens.empty()" 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1534 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: if (samples.empty()) { 29761: return ""; 29761: } 29761: std::string dict_data(max_dict_bytes, '\0'); 29761: size_t dict_len = ZDICT_trainFromBuffer( 29761: &dict_data[0], max_dict_bytes, &samples[0], &sample_lens[0], 29761: static_cast(sample_lens.size())); 29761: if (ZDICT_isError(dict_len)) { 29761: return ""; 29761: } 29761: 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: dict_len <= max_dict_bytes 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "dict_len <= max_dict_bytes" 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1545 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: dict_data.resize(dict_len); 29761: return dict_data; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: inline std::string ZSTD_TrainDictionary(const std::string& samples, 29761: size_t sample_len_shift, 29761: size_t max_dict_bytes) { 29761: 29761: 29761: 29761: 29761: size_t num_samples = samples.size() >> sample_len_shift; 29761: std::vector sample_lens(num_samples, size_t(1) << sample_len_shift); 29761: return ZSTD_TrainDictionary(samples, sample_lens, max_dict_bytes); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: } 29761: 29761: inline bool ZSTD_FinalizeDictionarySupported() { 29761: 29761: 29761: return (ZSTD_versionNumber() >= 10405); 29761: 29761: 29761: 29761: } 29761: 29761: inline std::string ZSTD_FinalizeDictionary( 29761: const std::string& samples, const std::vector& sample_lens, 29761: size_t max_dict_bytes, int level) { 29761: 29761: 29761: 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: samples.empty() == sample_lens.empty() 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "samples.empty() == sample_lens.empty()" 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1590 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: if (samples.empty()) { 29761: return ""; 29761: } 29761: if (level == CompressionOptions::kDefaultCompressionLevel) { 29761: 29761: 29761: level = 3; 29761: } 29761: std::string dict_data(max_dict_bytes, '\0'); 29761: size_t dict_len = ZDICT_finalizeDictionary( 29761: dict_data.data(), max_dict_bytes, samples.data(), 29761: std::min(static_cast(samples.size()), max_dict_bytes), 29761: samples.data(), sample_lens.data(), 29761: static_cast(sample_lens.size()), 29761: {level, 0 , 0 }); 29761: if (ZDICT_isError(dict_len)) { 29761: return ""; 29761: } else { 29761: 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: dict_len <= max_dict_bytes 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "dict_len <= max_dict_bytes" 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1609 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: dict_data.resize(dict_len); 29761: return dict_data; 29761: } 29761: # 1621 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: } 29761: 29761: inline bool CompressData(const Slice& raw, 29761: const CompressionInfo& compression_info, 29761: uint32_t compress_format_version, 29761: std::string* compressed_output) { 29761: bool ret = false; 29761: 29761: 29761: 29761: switch (compression_info.type()) { 29761: case kSnappyCompression: 29761: ret = Snappy_Compress(compression_info, raw.data(), raw.size(), 29761: compressed_output); 29761: break; 29761: case kZlibCompression: 29761: ret = Zlib_Compress(compression_info, compress_format_version, raw.data(), 29761: raw.size(), compressed_output); 29761: break; 29761: case kBZip2Compression: 29761: ret = BZip2_Compress(compression_info, compress_format_version, 29761: raw.data(), raw.size(), compressed_output); 29761: break; 29761: case kLZ4Compression: 29761: ret = LZ4_Compress(compression_info, compress_format_version, raw.data(), 29761: raw.size(), compressed_output); 29761: break; 29761: case kLZ4HCCompression: 29761: ret = LZ4HC_Compress(compression_info, compress_format_version, 29761: raw.data(), raw.size(), compressed_output); 29761: break; 29761: case kXpressCompression: 29761: ret = XPRESS_Compress(raw.data(), raw.size(), compressed_output); 29761: break; 29761: case kZSTD: 29761: case kZSTDNotFinalCompression: 29761: ret = ZSTD_Compress(compression_info, raw.data(), raw.size(), 29761: compressed_output); 29761: break; 29761: default: 29761: 29761: break; 29761: } 29761: 29761: rocksdb::SyncPoint::GetInstance()->Process("CompressData:TamperWithReturnValue", static_cast(&ret)) 29761: ; 29761: 29761: return ret; 29761: } 29761: 29761: inline CacheAllocationPtr UncompressData( 29761: const UncompressionInfo& uncompression_info, const char* data, size_t n, 29761: size_t* uncompressed_size, uint32_t compress_format_version, 29761: MemoryAllocator* allocator = nullptr, 29761: const char** error_message = nullptr) { 29761: switch (uncompression_info.type()) { 29761: case kSnappyCompression: 29761: return Snappy_Uncompress(data, n, uncompressed_size, allocator); 29761: case kZlibCompression: 29761: return Zlib_Uncompress(uncompression_info, data, n, uncompressed_size, 29761: compress_format_version, allocator); 29761: case kBZip2Compression: 29761: return BZip2_Uncompress(data, n, uncompressed_size, 29761: compress_format_version, allocator); 29761: case kLZ4Compression: 29761: case kLZ4HCCompression: 29761: return LZ4_Uncompress(uncompression_info, data, n, uncompressed_size, 29761: compress_format_version, allocator); 29761: case kXpressCompression: 29761: 29761: 29761: return CacheAllocationPtr(XPRESS_Uncompress(data, n, uncompressed_size)); 29761: case kZSTD: 29761: case kZSTDNotFinalCompression: 29761: 29761: return ZSTD_Uncompress(uncompression_info, data, n, uncompressed_size, 29761: allocator, error_message); 29761: default: 29761: return CacheAllocationPtr(); 29761: } 29761: } 29761: 29761: 29761: class CompressionTypeRecord { 29761: public: 29761: explicit CompressionTypeRecord(CompressionType compression_type) 29761: : compression_type_(compression_type) {} 29761: 29761: CompressionType GetCompressionType() const { return compression_type_; } 29761: 29761: inline void EncodeTo(std::string* dst) const { 29761: 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: dst != nullptr 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "dst != nullptr" 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1712 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: PutFixed32(dst, compression_type_); 29761: } 29761: 29761: inline Status DecodeFrom(Slice* src) { 29761: constexpr char class_name[] = "CompressionTypeRecord"; 29761: 29761: uint32_t val; 29761: if (!GetFixed32(src, &val)) { 29761: return Status::Corruption(class_name, 29761: "Error decoding WAL compression type"); 29761: } 29761: CompressionType compression_type = static_cast(val); 29761: if (!StreamingCompressionTypeSupported(compression_type)) { 29761: return Status::Corruption(class_name, 29761: "WAL compression type not supported"); 29761: } 29761: compression_type_ = compression_type; 29761: return Status::OK(); 29761: } 29761: 29761: inline std::string DebugString() const { 29761: return "compression_type: " + CompressionTypeToString(compression_type_); 29761: } 29761: 29761: private: 29761: CompressionType compression_type_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class StreamingCompress { 29761: public: 29761: StreamingCompress(CompressionType compression_type, 29761: const CompressionOptions& opts, 29761: uint32_t compress_format_version, size_t max_output_len) 29761: : compression_type_(compression_type), 29761: opts_(opts), 29761: compress_format_version_(compress_format_version), 29761: max_output_len_(max_output_len) {} 29761: virtual ~StreamingCompress() = default; 29761: # 1767 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: virtual int Compress(const char* input, size_t input_size, char* output, 29761: size_t* output_pos) = 0; 29761: 29761: 29761: static StreamingCompress* Create(CompressionType compression_type, 29761: const CompressionOptions& opts, 29761: uint32_t compress_format_version, 29761: size_t max_output_len); 29761: virtual void Reset() = 0; 29761: 29761: protected: 29761: const CompressionType compression_type_; 29761: const CompressionOptions opts_; 29761: const uint32_t compress_format_version_; 29761: const size_t max_output_len_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class StreamingUncompress { 29761: public: 29761: StreamingUncompress(CompressionType compression_type, 29761: uint32_t compress_format_version, size_t max_output_len) 29761: : compression_type_(compression_type), 29761: compress_format_version_(compress_format_version), 29761: max_output_len_(max_output_len) {} 29761: virtual ~StreamingUncompress() = default; 29761: # 1810 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: virtual int Uncompress(const char* input, size_t input_size, char* output, 29761: size_t* output_pos) = 0; 29761: static StreamingUncompress* Create(CompressionType compression_type, 29761: uint32_t compress_format_version, 29761: size_t max_output_len); 29761: virtual void Reset() = 0; 29761: 29761: protected: 29761: CompressionType compression_type_; 29761: uint32_t compress_format_version_; 29761: size_t max_output_len_; 29761: }; 29761: 29761: class ZSTDStreamingCompress final : public StreamingCompress { 29761: public: 29761: explicit ZSTDStreamingCompress(const CompressionOptions& opts, 29761: uint32_t compress_format_version, 29761: size_t max_output_len) 29761: : StreamingCompress(kZSTD, opts, compress_format_version, 29761: max_output_len) { 29761: 29761: cctx_ = ZSTD_createCCtx(); 29761: 29761: ZSTD_CCtx_setParameter(cctx_, ZSTD_c_checksumFlag, 1); 29761: 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: cctx_ != nullptr 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "cctx_ != nullptr" 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1834 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: input_buffer_ = { nullptr, 0, 0}; 29761: 29761: } 29761: ~ZSTDStreamingCompress() override { 29761: 29761: ZSTD_freeCCtx(cctx_); 29761: 29761: } 29761: int Compress(const char* input, size_t input_size, char* output, 29761: size_t* output_pos) override; 29761: void Reset() override; 29761: 29761: ZSTD_CCtx* cctx_; 29761: ZSTD_inBuffer input_buffer_; 29761: 29761: }; 29761: 29761: class ZSTDStreamingUncompress final : public StreamingUncompress { 29761: public: 29761: explicit ZSTDStreamingUncompress(uint32_t compress_format_version, 29761: size_t max_output_len) 29761: : StreamingUncompress(kZSTD, compress_format_version, max_output_len) { 29761: 29761: dctx_ = ZSTD_createDCtx(); 29761: 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: (static_cast ( 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: dctx_ != nullptr 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: "dctx_ != nullptr" 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1859 "/build/reproducible-path/rocksdb-9.10.0/util/compression.h" 29761: ; 29761: input_buffer_ = { nullptr, 0, 0}; 29761: 29761: } 29761: ~ZSTDStreamingUncompress() override { 29761: 29761: ZSTD_freeDCtx(dctx_); 29761: 29761: } 29761: int Uncompress(const char* input, size_t input_size, char* output, 29761: size_t* output_size) override; 29761: void Reset() override; 29761: 29761: private: 29761: 29761: ZSTD_DCtx* dctx_; 29761: ZSTD_inBuffer input_buffer_; 29761: 29761: }; 29761: 29761: } 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: struct ImmutableCFOptions { 29761: public: 29761: static const char* kName() { return "ImmutableCFOptions"; } 29761: explicit ImmutableCFOptions(); 29761: explicit ImmutableCFOptions(const ColumnFamilyOptions& cf_options); 29761: 29761: CompactionStyle compaction_style; 29761: 29761: CompactionPri compaction_pri; 29761: 29761: const Comparator* user_comparator; 29761: InternalKeyComparator internal_comparator; 29761: 29761: std::shared_ptr merge_operator; 29761: 29761: const CompactionFilter* compaction_filter; 29761: 29761: std::shared_ptr compaction_filter_factory; 29761: 29761: int min_write_buffer_number_to_merge; 29761: 29761: int max_write_buffer_number_to_maintain; 29761: 29761: int64_t max_write_buffer_size_to_maintain; 29761: 29761: bool inplace_update_support; 29761: 29761: UpdateStatus (*inplace_callback)(char* existing_value, 29761: uint32_t* existing_value_size, 29761: Slice delta_value, 29761: std::string* merged_value); 29761: 29761: std::shared_ptr memtable_factory; 29761: 29761: Options::TablePropertiesCollectorFactories 29761: table_properties_collector_factories; 29761: 29761: 29761: 29761: uint32_t bloom_locality; 29761: 29761: bool level_compaction_dynamic_level_bytes; 29761: 29761: int num_levels; 29761: 29761: bool optimize_filters_for_hits; 29761: 29761: bool force_consistency_checks; 29761: 29761: Temperature default_temperature; 29761: 29761: std::shared_ptr 29761: memtable_insert_with_hint_prefix_extractor; 29761: 29761: std::vector cf_paths; 29761: 29761: std::shared_ptr compaction_thread_limiter; 29761: 29761: std::shared_ptr sst_partitioner_factory; 29761: 29761: std::shared_ptr blob_cache; 29761: 29761: bool persist_user_defined_timestamps; 29761: }; 29761: 29761: struct ImmutableOptions : public ImmutableDBOptions, public ImmutableCFOptions { 29761: explicit ImmutableOptions(); 29761: explicit ImmutableOptions(const Options& options); 29761: 29761: ImmutableOptions(const DBOptions& db_options, 29761: const ColumnFamilyOptions& cf_options); 29761: 29761: ImmutableOptions(const ImmutableDBOptions& db_options, 29761: const ImmutableCFOptions& cf_options); 29761: 29761: ImmutableOptions(const DBOptions& db_options, 29761: const ImmutableCFOptions& cf_options); 29761: 29761: ImmutableOptions(const ImmutableDBOptions& db_options, 29761: const ColumnFamilyOptions& cf_options); 29761: }; 29761: 29761: struct MutableCFOptions { 29761: static const char* kName() { return "MutableCFOptions"; } 29761: explicit MutableCFOptions(const ColumnFamilyOptions& options) 29761: : write_buffer_size(options.write_buffer_size), 29761: max_write_buffer_number(options.max_write_buffer_number), 29761: arena_block_size(options.arena_block_size), 29761: memtable_prefix_bloom_size_ratio( 29761: options.memtable_prefix_bloom_size_ratio), 29761: memtable_whole_key_filtering(options.memtable_whole_key_filtering), 29761: memtable_huge_page_size(options.memtable_huge_page_size), 29761: max_successive_merges(options.max_successive_merges), 29761: strict_max_successive_merges(options.strict_max_successive_merges), 29761: inplace_update_num_locks(options.inplace_update_num_locks), 29761: prefix_extractor(options.prefix_extractor), 29761: experimental_mempurge_threshold( 29761: options.experimental_mempurge_threshold), 29761: disable_auto_compactions(options.disable_auto_compactions), 29761: table_factory(options.table_factory), 29761: soft_pending_compaction_bytes_limit( 29761: options.soft_pending_compaction_bytes_limit), 29761: hard_pending_compaction_bytes_limit( 29761: options.hard_pending_compaction_bytes_limit), 29761: level0_file_num_compaction_trigger( 29761: options.level0_file_num_compaction_trigger), 29761: level0_slowdown_writes_trigger(options.level0_slowdown_writes_trigger), 29761: level0_stop_writes_trigger(options.level0_stop_writes_trigger), 29761: max_compaction_bytes(options.max_compaction_bytes), 29761: target_file_size_base(options.target_file_size_base), 29761: target_file_size_multiplier(options.target_file_size_multiplier), 29761: max_bytes_for_level_base(options.max_bytes_for_level_base), 29761: max_bytes_for_level_multiplier(options.max_bytes_for_level_multiplier), 29761: ttl(options.ttl), 29761: periodic_compaction_seconds(options.periodic_compaction_seconds), 29761: max_bytes_for_level_multiplier_additional( 29761: options.max_bytes_for_level_multiplier_additional), 29761: compaction_options_fifo(options.compaction_options_fifo), 29761: compaction_options_universal(options.compaction_options_universal), 29761: preclude_last_level_data_seconds( 29761: options.preclude_last_level_data_seconds), 29761: preserve_internal_time_seconds(options.preserve_internal_time_seconds), 29761: enable_blob_files(options.enable_blob_files), 29761: min_blob_size(options.min_blob_size), 29761: blob_file_size(options.blob_file_size), 29761: blob_compression_type(options.blob_compression_type), 29761: enable_blob_garbage_collection(options.enable_blob_garbage_collection), 29761: blob_garbage_collection_age_cutoff( 29761: options.blob_garbage_collection_age_cutoff), 29761: blob_garbage_collection_force_threshold( 29761: options.blob_garbage_collection_force_threshold), 29761: blob_compaction_readahead_size(options.blob_compaction_readahead_size), 29761: blob_file_starting_level(options.blob_file_starting_level), 29761: prepopulate_blob_cache(options.prepopulate_blob_cache), 29761: max_sequential_skip_in_iterations( 29761: options.max_sequential_skip_in_iterations), 29761: paranoid_file_checks(options.paranoid_file_checks), 29761: report_bg_io_stats(options.report_bg_io_stats), 29761: compression(options.compression), 29761: bottommost_compression(options.bottommost_compression), 29761: compression_opts(options.compression_opts), 29761: bottommost_compression_opts(options.bottommost_compression_opts), 29761: last_level_temperature(options.last_level_temperature), 29761: default_write_temperature(options.default_write_temperature), 29761: memtable_protection_bytes_per_key( 29761: options.memtable_protection_bytes_per_key), 29761: block_protection_bytes_per_key(options.block_protection_bytes_per_key), 29761: paranoid_memory_checks(options.paranoid_memory_checks), 29761: sample_for_compression( 29761: options.sample_for_compression), 29761: compression_per_level(options.compression_per_level), 29761: memtable_max_range_deletions(options.memtable_max_range_deletions), 29761: bottommost_file_compaction_delay( 29761: options.bottommost_file_compaction_delay), 29761: uncache_aggressiveness(options.uncache_aggressiveness) { 29761: RefreshDerivedOptions(options.num_levels, options.compaction_style); 29761: } 29761: 29761: MutableCFOptions() 29761: : write_buffer_size(0), 29761: max_write_buffer_number(0), 29761: arena_block_size(0), 29761: memtable_prefix_bloom_size_ratio(0), 29761: memtable_whole_key_filtering(false), 29761: memtable_huge_page_size(0), 29761: max_successive_merges(0), 29761: strict_max_successive_merges(false), 29761: inplace_update_num_locks(0), 29761: prefix_extractor(nullptr), 29761: experimental_mempurge_threshold(0.0), 29761: disable_auto_compactions(false), 29761: soft_pending_compaction_bytes_limit(0), 29761: hard_pending_compaction_bytes_limit(0), 29761: level0_file_num_compaction_trigger(0), 29761: level0_slowdown_writes_trigger(0), 29761: level0_stop_writes_trigger(0), 29761: max_compaction_bytes(0), 29761: target_file_size_base(0), 29761: target_file_size_multiplier(0), 29761: max_bytes_for_level_base(0), 29761: max_bytes_for_level_multiplier(0), 29761: ttl(0), 29761: periodic_compaction_seconds(0), 29761: compaction_options_fifo(), 29761: preclude_last_level_data_seconds(0), 29761: preserve_internal_time_seconds(0), 29761: enable_blob_files(false), 29761: min_blob_size(0), 29761: blob_file_size(0), 29761: blob_compression_type(kNoCompression), 29761: enable_blob_garbage_collection(false), 29761: blob_garbage_collection_age_cutoff(0.0), 29761: blob_garbage_collection_force_threshold(0.0), 29761: blob_compaction_readahead_size(0), 29761: blob_file_starting_level(0), 29761: prepopulate_blob_cache(PrepopulateBlobCache::kDisable), 29761: max_sequential_skip_in_iterations(0), 29761: paranoid_file_checks(false), 29761: report_bg_io_stats(false), 29761: compression(Snappy_Supported() ? kSnappyCompression : kNoCompression), 29761: bottommost_compression(kDisableCompressionOption), 29761: last_level_temperature(Temperature::kUnknown), 29761: default_write_temperature(Temperature::kUnknown), 29761: memtable_protection_bytes_per_key(0), 29761: block_protection_bytes_per_key(0), 29761: paranoid_memory_checks(false), 29761: sample_for_compression(0), 29761: memtable_max_range_deletions(0), 29761: bottommost_file_compaction_delay(0), 29761: uncache_aggressiveness(0) {} 29761: 29761: explicit MutableCFOptions(const Options& options); 29761: 29761: 29761: void RefreshDerivedOptions(int num_levels, CompactionStyle compaction_style); 29761: 29761: void RefreshDerivedOptions(const ImmutableCFOptions& ioptions) { 29761: RefreshDerivedOptions(ioptions.num_levels, ioptions.compaction_style); 29761: } 29761: 29761: int MaxBytesMultiplerAdditional(int level) const { 29761: if (level >= 29761: static_cast(max_bytes_for_level_multiplier_additional.size())) { 29761: return 1; 29761: } 29761: return max_bytes_for_level_multiplier_additional[level]; 29761: } 29761: 29761: void Dump(Logger* log) const; 29761: 29761: 29761: size_t write_buffer_size; 29761: int max_write_buffer_number; 29761: size_t arena_block_size; 29761: double memtable_prefix_bloom_size_ratio; 29761: bool memtable_whole_key_filtering; 29761: size_t memtable_huge_page_size; 29761: size_t max_successive_merges; 29761: bool strict_max_successive_merges; 29761: size_t inplace_update_num_locks; 29761: 29761: 29761: 29761: std::shared_ptr prefix_extractor; 29761: # 281 "/build/reproducible-path/rocksdb-9.10.0/options/cf_options.h" 29761: double experimental_mempurge_threshold; 29761: 29761: 29761: bool disable_auto_compactions; 29761: std::shared_ptr table_factory; 29761: uint64_t soft_pending_compaction_bytes_limit; 29761: uint64_t hard_pending_compaction_bytes_limit; 29761: int level0_file_num_compaction_trigger; 29761: int level0_slowdown_writes_trigger; 29761: int level0_stop_writes_trigger; 29761: uint64_t max_compaction_bytes; 29761: uint64_t target_file_size_base; 29761: int target_file_size_multiplier; 29761: uint64_t max_bytes_for_level_base; 29761: double max_bytes_for_level_multiplier; 29761: uint64_t ttl; 29761: uint64_t periodic_compaction_seconds; 29761: std::vector max_bytes_for_level_multiplier_additional; 29761: CompactionOptionsFIFO compaction_options_fifo; 29761: CompactionOptionsUniversal compaction_options_universal; 29761: uint64_t preclude_last_level_data_seconds; 29761: uint64_t preserve_internal_time_seconds; 29761: 29761: 29761: bool enable_blob_files; 29761: uint64_t min_blob_size; 29761: uint64_t blob_file_size; 29761: CompressionType blob_compression_type; 29761: bool enable_blob_garbage_collection; 29761: double blob_garbage_collection_age_cutoff; 29761: double blob_garbage_collection_force_threshold; 29761: uint64_t blob_compaction_readahead_size; 29761: int blob_file_starting_level; 29761: PrepopulateBlobCache prepopulate_blob_cache; 29761: 29761: 29761: uint64_t max_sequential_skip_in_iterations; 29761: bool paranoid_file_checks; 29761: bool report_bg_io_stats; 29761: CompressionType compression; 29761: CompressionType bottommost_compression; 29761: CompressionOptions compression_opts; 29761: CompressionOptions bottommost_compression_opts; 29761: Temperature last_level_temperature; 29761: Temperature default_write_temperature; 29761: uint32_t memtable_protection_bytes_per_key; 29761: uint8_t block_protection_bytes_per_key; 29761: bool paranoid_memory_checks; 29761: 29761: uint64_t sample_for_compression; 29761: std::vector compression_per_level; 29761: uint32_t memtable_max_range_deletions; 29761: uint32_t bottommost_file_compaction_delay; 29761: uint32_t uncache_aggressiveness; 29761: 29761: 29761: 29761: std::vector max_file_size; 29761: }; 29761: 29761: uint64_t MultiplyCheckOverflow(uint64_t op1, double op2); 29761: 29761: 29761: uint64_t MaxFileSizeForLevel(const MutableCFOptions& cf_options, 29761: int level, CompactionStyle compaction_style, int base_level = 1, 29761: bool level_compaction_dynamic_level_bytes = false); 29761: 29761: 29761: 29761: size_t MaxFileSizeForL0MetaPin(const MutableCFOptions& cf_options); 29761: 29761: Status GetStringFromMutableCFOptions(const ConfigOptions& config_options, 29761: const MutableCFOptions& mutable_opts, 29761: std::string* opt_string); 29761: 29761: Status GetMutableOptionsFromStrings( 29761: const MutableCFOptions& base_options, 29761: const std::unordered_map& options_map, 29761: Logger* info_log, MutableCFOptions* new_options); 29761: 29761: 29761: std::vector TEST_GetImmutableInMutableCFOptions(); 29761: extern bool TEST_allowSetOptionsImmutableInMutable; 29761: 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/malloc.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/port/malloc.h" 29761: 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class RandomAccessFile; 29761: struct ReadOptions; 29761: 29761: bool ShouldReportDetailedTime(Env* env, Statistics* stats); 29761: 29761: 29761: constexpr uint32_t kMagicNumberLengthByte = 8; 29761: 29761: extern const uint64_t kLegacyBlockBasedTableMagicNumber; 29761: extern const uint64_t kBlockBasedTableMagicNumber; 29761: 29761: extern const uint64_t kLegacyPlainTableMagicNumber; 29761: extern const uint64_t kPlainTableMagicNumber; 29761: 29761: extern const uint64_t kCuckooTableMagicNumber; 29761: 29761: 29761: 29761: class BlockHandle { 29761: public: 29761: 29761: 29761: BlockHandle(); 29761: BlockHandle(uint64_t offset, uint64_t size); 29761: 29761: 29761: uint64_t offset() const { return offset_; } 29761: void set_offset(uint64_t _offset) { offset_ = _offset; } 29761: 29761: 29761: uint64_t size() const { return size_; } 29761: void set_size(uint64_t _size) { size_ = _size; } 29761: 29761: void EncodeTo(std::string* dst) const; 29761: char* EncodeTo(char* dst) const; 29761: Status DecodeFrom(Slice* input); 29761: Status DecodeSizeFrom(uint64_t offset, Slice* input); 29761: 29761: 29761: std::string ToString(bool hex = true) const; 29761: 29761: 29761: 29761: bool IsNull() const { return offset_ == 0 && size_ == 0; } 29761: 29761: static const BlockHandle& NullBlockHandle() { return kNullBlockHandle; } 29761: 29761: 29761: static constexpr uint32_t kMaxEncodedLength = 2 * kMaxVarint64Length; 29761: 29761: inline bool operator==(const BlockHandle& rhs) const { 29761: return offset_ == rhs.offset_ && size_ == rhs.size_; 29761: } 29761: inline bool operator!=(const BlockHandle& rhs) const { 29761: return !(*this == rhs); 29761: } 29761: 29761: private: 29761: uint64_t offset_; 29761: uint64_t size_; 29761: 29761: static const BlockHandle kNullBlockHandle; 29761: }; 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: struct IndexValue { 29761: BlockHandle handle; 29761: 29761: Slice first_internal_key; 29761: 29761: IndexValue() = default; 29761: IndexValue(BlockHandle _handle, Slice _first_internal_key) 29761: : handle(_handle), first_internal_key(_first_internal_key) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: void EncodeTo(std::string* dst, bool have_first_key, 29761: const BlockHandle* previous_handle) const; 29761: Status DecodeFrom(Slice* input, bool have_first_key, 29761: const BlockHandle* previous_handle); 29761: 29761: std::string ToString(bool hex, bool have_first_key) const; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline uint32_t ChecksumModifierForContext(uint32_t base_context_checksum, 29761: uint64_t offset) { 29761: 29761: 29761: 29761: 29761: 29761: uint32_t all_or_nothing = uint32_t{0} - (base_context_checksum != 0); 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: uint32_t modifier = 29761: base_context_checksum ^ (Lower32of64(offset) + Upper32of64(offset)); 29761: 29761: return modifier & all_or_nothing; 29761: } 29761: 29761: inline uint32_t GetCompressFormatForVersion(uint32_t format_version) { 29761: 29761: 29761: 29761: return format_version >= 2 ? 2 : 1; 29761: } 29761: 29761: constexpr uint32_t kLatestFormatVersion = 6; 29761: 29761: inline bool IsSupportedFormatVersion(uint32_t version) { 29761: return version <= kLatestFormatVersion; 29761: } 29761: 29761: 29761: inline bool FormatVersionUsesContextChecksum(uint32_t version) { 29761: return version >= 6; 29761: } 29761: 29761: inline bool FormatVersionUsesIndexHandleInFooter(uint32_t version) { 29761: return version < 6; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: class Footer { 29761: public: 29761: 29761: Footer() {} 29761: 29761: void Reset() { 29761: table_magic_number_ = kNullTableMagicNumber; 29761: format_version_ = kInvalidFormatVersion; 29761: base_context_checksum_ = 0; 29761: metaindex_handle_ = BlockHandle::NullBlockHandle(); 29761: index_handle_ = BlockHandle::NullBlockHandle(); 29761: checksum_type_ = kInvalidChecksumType; 29761: block_trailer_size_ = 0; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status DecodeFrom(Slice input, uint64_t input_offset, 29761: uint64_t enforce_table_magic_number = 0); 29761: 29761: 29761: 29761: uint64_t table_magic_number() const { return table_magic_number_; } 29761: 29761: 29761: 29761: 29761: uint32_t format_version() const { return format_version_; } 29761: 29761: 29761: uint32_t base_context_checksum() const { return base_context_checksum_; } 29761: 29761: 29761: const BlockHandle& metaindex_handle() const { return metaindex_handle_; } 29761: 29761: 29761: 29761: const BlockHandle& index_handle() const { return index_handle_; } 29761: 29761: 29761: ChecksumType checksum_type() const { 29761: return static_cast(checksum_type_); 29761: } 29761: 29761: 29761: 29761: 29761: inline size_t GetBlockTrailerSize() const { return block_trailer_size_; } 29761: 29761: 29761: std::string ToString() const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static constexpr uint32_t kVersion0EncodedLength = 29761: 2 * BlockHandle::kMaxEncodedLength + kMagicNumberLengthByte; 29761: static constexpr uint32_t kMinEncodedLength = kVersion0EncodedLength; 29761: 29761: 29761: 29761: 29761: 29761: static constexpr uint32_t kNewVersionsEncodedLength = 29761: 1 + 2 * BlockHandle::kMaxEncodedLength + 4 + kMagicNumberLengthByte; 29761: static constexpr uint32_t kMaxEncodedLength = kNewVersionsEncodedLength; 29761: 29761: static constexpr uint64_t kNullTableMagicNumber = 0; 29761: 29761: static constexpr uint32_t kInvalidFormatVersion = 0xffffffffU; 29761: 29761: private: 29761: static constexpr int kInvalidChecksumType = 29761: (1 << (sizeof(ChecksumType) * 8)) | kNoChecksum; 29761: 29761: uint64_t table_magic_number_ = kNullTableMagicNumber; 29761: uint32_t format_version_ = kInvalidFormatVersion; 29761: uint32_t base_context_checksum_ = 0; 29761: BlockHandle metaindex_handle_; 29761: BlockHandle index_handle_; 29761: int checksum_type_ = kInvalidChecksumType; 29761: uint8_t block_trailer_size_ = 0; 29761: }; 29761: 29761: 29761: class FooterBuilder { 29761: public: 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: Status Build(uint64_t table_magic_number, uint32_t format_version, 29761: uint64_t footer_offset, ChecksumType checksum_type, 29761: const BlockHandle& metaindex_handle, 29761: const BlockHandle& index_handle = BlockHandle::NullBlockHandle(), 29761: uint32_t base_context_checksum = 0); 29761: 29761: 29761: 29761: const Slice& GetSlice() const { 29761: 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29761: (static_cast ( 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: slice_.size() 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: "slice_.size()" 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 302 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: ; 29761: return slice_; 29761: } 29761: 29761: private: 29761: Slice slice_; 29761: std::array data_; 29761: }; 29761: 29761: 29761: 29761: 29761: Status ReadFooterFromFile(const IOOptions& opts, RandomAccessFileReader* file, 29761: FileSystem& fs, FilePrefetchBuffer* prefetch_buffer, 29761: uint64_t file_size, Footer* footer, 29761: uint64_t enforce_table_magic_number = 0, 29761: Statistics* stats = nullptr); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t ComputeBuiltinChecksum(ChecksumType type, const char* data, 29761: size_t size); 29761: uint32_t ComputeBuiltinChecksumWithLastByte(ChecksumType type, const char* data, 29761: size_t size, char last_byte); 29761: # 354 "/build/reproducible-path/rocksdb-9.10.0/table/format.h" 29761: struct BlockContents { 29761: 29761: Slice data; 29761: CacheAllocationPtr allocation; 29761: 29761: 29761: 29761: 29761: bool has_trailer = false; 29761: 29761: 29761: BlockContents() {} 29761: 29761: 29761: BlockContents(const Slice& _data) : data(_data) {} 29761: 29761: 29761: BlockContents(CacheAllocationPtr&& _data, size_t _size) 29761: : data(_data.get(), _size), allocation(std::move(_data)) {} 29761: 29761: 29761: BlockContents(std::unique_ptr&& _data, size_t _size) 29761: : data(_data.get(), _size) { 29761: allocation.reset(_data.release()); 29761: } 29761: 29761: 29761: bool own_bytes() const { return allocation.get() != nullptr; } 29761: 29761: 29761: size_t usable_size() const { 29761: if (allocation.get() != nullptr) { 29761: auto allocator = allocation.get_deleter().allocator; 29761: if (allocator) { 29761: return allocator->UsableSize(allocation.get(), data.size()); 29761: } 29761: 29761: return malloc_usable_size(allocation.get()); 29761: 29761: 29761: 29761: } else { 29761: return 0; 29761: } 29761: } 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: return usable_size() + sizeof(*this); 29761: } 29761: 29761: BlockContents(BlockContents&& other) noexcept { *this = std::move(other); } 29761: 29761: BlockContents& operator=(BlockContents&& other) { 29761: data = std::move(other.data); 29761: allocation = std::move(other.allocation); 29761: 29761: has_trailer = other.has_trailer; 29761: 29761: return *this; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status UncompressSerializedBlock(const UncompressionInfo& info, 29761: const char* data, size_t size, 29761: BlockContents* out_contents, 29761: uint32_t format_version, 29761: const ImmutableOptions& ioptions, 29761: MemoryAllocator* allocator = nullptr); 29761: 29761: 29761: 29761: Status UncompressBlockData(const UncompressionInfo& info, const char* data, 29761: size_t size, BlockContents* out_contents, 29761: uint32_t format_version, 29761: const ImmutableOptions& ioptions, 29761: MemoryAllocator* allocator = nullptr); 29761: 29761: 29761: Status ReifyDbHostIdProperty(Env* env, std::string* db_host_id); 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline BlockHandle::BlockHandle() : BlockHandle(~uint64_t{0}, ~uint64_t{0}) {} 29761: 29761: inline BlockHandle::BlockHandle(uint64_t _offset, uint64_t _size) 29761: : offset_(_offset), size_(_size) {} 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class PinnedIteratorsManager; 29761: 29761: enum class IterBoundCheck : char { 29761: kUnknown = 0, 29761: kOutOfBound, 29761: kInbound, 29761: }; 29761: 29761: struct IterateResult { 29761: Slice key; 29761: IterBoundCheck bound_check_result = IterBoundCheck::kUnknown; 29761: 29761: bool value_prepared = true; 29761: }; 29761: 29761: template 29761: class InternalIteratorBase : public Cleanable { 29761: public: 29761: InternalIteratorBase() {} 29761: 29761: 29761: InternalIteratorBase(const InternalIteratorBase&) = delete; 29761: InternalIteratorBase& operator=(const InternalIteratorBase&) = delete; 29761: 29761: virtual ~InternalIteratorBase() {} 29761: # 55 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: virtual void SetRangeDelReadSeqno(SequenceNumber ) {} 29761: 29761: 29761: 29761: 29761: virtual bool Valid() const = 0; 29761: 29761: 29761: 29761: virtual void SeekToFirst() = 0; 29761: 29761: 29761: 29761: virtual void SeekToLast() = 0; 29761: # 77 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: virtual void Seek(const Slice& target) = 0; 29761: 29761: 29761: 29761: 29761: virtual void SeekForPrev(const Slice& target) = 0; 29761: 29761: 29761: 29761: 29761: virtual void Next() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual bool NextAndGetResult(IterateResult* result) { 29761: Next(); 29761: bool is_valid = Valid(); 29761: if (is_valid) { 29761: result->key = key(); 29761: 29761: 29761: 29761: result->bound_check_result = IterBoundCheck::kUnknown; 29761: result->value_prepared = false; 29761: 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29761: (static_cast ( 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: UpperBoundCheckResult() != IterBoundCheck::kOutOfBound 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: "UpperBoundCheckResult() != IterBoundCheck::kOutOfBound" 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: ; 29761: } 29761: return is_valid; 29761: } 29761: 29761: 29761: 29761: 29761: virtual void Prev() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual Slice key() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual uint64_t write_unix_time() const { 29761: return std::numeric_limits::max(); 29761: } 29761: 29761: 29761: 29761: virtual Slice user_key() const { return ExtractUserKey(key()); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual TValue value() const = 0; 29761: 29761: 29761: 29761: 29761: virtual Status status() const = 0; 29761: # 154 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: virtual bool PrepareValue() { return true; } 29761: 29761: 29761: virtual bool MayBeOutOfLowerBound() { return true; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual IterBoundCheck UpperBoundCheckResult() { 29761: return IterBoundCheck::kUnknown; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void SetPinnedItersMgr(PinnedIteratorsManager* ) { 29761: } 29761: # 184 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: virtual bool IsKeyPinned() const { return false; } 29761: 29761: 29761: 29761: 29761: 29761: virtual bool IsValuePinned() const { return false; } 29761: 29761: virtual Status GetProperty(std::string , std::string* ) { 29761: return Status::NotSupported(""); 29761: } 29761: # 203 "/build/reproducible-path/rocksdb-9.10.0/table/internal_iterator.h" 29761: virtual void GetReadaheadState(ReadaheadFileInfo* ) {} 29761: 29761: 29761: virtual void SetReadaheadState(ReadaheadFileInfo* ) {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool IsDeleteRangeSentinelKey() const { return false; } 29761: 29761: protected: 29761: void SeekForPrevImpl(const Slice& target, const CompareInterface* cmp) { 29761: Seek(target); 29761: if (!Valid()) { 29761: SeekToLast(); 29761: } 29761: while (Valid() && cmp->Compare(target, key()) < 0) { 29761: Prev(); 29761: } 29761: } 29761: }; 29761: 29761: using InternalIterator = InternalIteratorBase; 29761: 29761: 29761: template 29761: InternalIteratorBase* NewEmptyInternalIterator(); 29761: 29761: 29761: template 29761: InternalIteratorBase* NewErrorInternalIterator(const Status& status); 29761: 29761: 29761: template 29761: InternalIteratorBase* NewErrorInternalIterator(const Status& status, 29761: Arena* arena); 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: class PinnedIteratorsManager : public Cleanable { 29761: public: 29761: PinnedIteratorsManager() : pinning_enabled(false) {} 29761: ~PinnedIteratorsManager() { 29761: if (pinning_enabled) { 29761: ReleasePinnedData(); 29761: } 29761: } 29761: 29761: 29761: PinnedIteratorsManager(PinnedIteratorsManager&& other) noexcept = default; 29761: PinnedIteratorsManager& operator=(PinnedIteratorsManager&& other) noexcept = 29761: default; 29761: 29761: 29761: void StartPinning() { 29761: 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: (static_cast ( 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: pinning_enabled == false 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: "pinning_enabled == false" 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: ; 29761: pinning_enabled = true; 29761: } 29761: 29761: 29761: bool PinningEnabled() { return pinning_enabled; } 29761: 29761: 29761: void PinIterator(InternalIterator* iter, bool arena = false) { 29761: if (arena) { 29761: PinPtr(iter, &PinnedIteratorsManager::ReleaseArenaInternalIterator); 29761: } else { 29761: PinPtr(iter, &PinnedIteratorsManager::ReleaseInternalIterator); 29761: } 29761: } 29761: 29761: using ReleaseFunction = void (*)(void* arg1); 29761: void PinPtr(void* ptr, ReleaseFunction release_func) { 29761: 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: (static_cast ( 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: pinning_enabled 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: "pinning_enabled" 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: ; 29761: if (ptr == nullptr) { 29761: return; 29761: } 29761: pinned_ptrs_.emplace_back(ptr, release_func); 29761: } 29761: 29761: 29761: inline void ReleasePinnedData() { 29761: 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: (static_cast ( 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: pinning_enabled == true 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: "pinning_enabled == true" 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 62 "/build/reproducible-path/rocksdb-9.10.0/db/pinned_iterators_manager.h" 29761: ; 29761: pinning_enabled = false; 29761: 29761: 29761: std::sort(pinned_ptrs_.begin(), pinned_ptrs_.end()); 29761: auto unique_end = std::unique(pinned_ptrs_.begin(), pinned_ptrs_.end()); 29761: 29761: for (auto i = pinned_ptrs_.begin(); i != unique_end; ++i) { 29761: void* ptr = i->first; 29761: ReleaseFunction release_func = i->second; 29761: release_func(ptr); 29761: } 29761: pinned_ptrs_.clear(); 29761: 29761: Cleanable::Reset(); 29761: } 29761: 29761: private: 29761: static void ReleaseInternalIterator(void* ptr) { 29761: delete static_cast(ptr); 29761: } 29761: 29761: static void ReleaseArenaInternalIterator(void* ptr) { 29761: static_cast(ptr)->~InternalIterator(); 29761: } 29761: 29761: bool pinning_enabled; 29761: std::vector> pinned_ptrs_; 29761: }; 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: namespace rocksdb { 29761: struct FragmentedRangeTombstoneList { 29761: public: 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: struct RangeTombstoneStack { 29761: RangeTombstoneStack(const Slice& start, const Slice& end, size_t start_idx, 29761: size_t end_idx) 29761: : start_key(start), 29761: end_key(end), 29761: seq_start_idx(start_idx), 29761: seq_end_idx(end_idx) {} 29761: Slice start_key; 29761: Slice end_key; 29761: size_t seq_start_idx; 29761: size_t seq_end_idx; 29761: }; 29761: 29761: 29761: FragmentedRangeTombstoneList( 29761: std::unique_ptr unfragmented_tombstones, 29761: const InternalKeyComparator& icmp, bool for_compaction = false, 29761: const std::vector& snapshots = {}, 29761: const bool tombstone_end_include_ts = true); 29761: 29761: std::vector::const_iterator begin() const { 29761: return tombstones_.begin(); 29761: } 29761: 29761: std::vector::const_iterator end() const { 29761: return tombstones_.end(); 29761: } 29761: 29761: std::vector::const_iterator seq_iter(size_t idx) const { 29761: return std::next(tombstone_seqs_.begin(), idx); 29761: } 29761: 29761: std::vector::const_iterator ts_iter(size_t idx) const { 29761: return std::next(tombstone_timestamps_.begin(), idx); 29761: } 29761: 29761: std::vector::const_iterator seq_begin() const { 29761: return tombstone_seqs_.begin(); 29761: } 29761: 29761: std::vector::const_iterator seq_end() const { 29761: return tombstone_seqs_.end(); 29761: } 29761: 29761: bool empty() const { return tombstones_.empty(); } 29761: 29761: 29761: 29761: 29761: 29761: bool ContainsRange(SequenceNumber lower, SequenceNumber upper); 29761: 29761: uint64_t num_unfragmented_tombstones() const { 29761: return num_unfragmented_tombstones_; 29761: } 29761: 29761: uint64_t total_tombstone_payload_bytes() const { 29761: return total_tombstone_payload_bytes_; 29761: } 29761: 29761: private: 29761: # 101 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: void FragmentTombstones( 29761: std::unique_ptr unfragmented_tombstones, 29761: const InternalKeyComparator& icmp, bool for_compaction, 29761: const std::vector& snapshots); 29761: 29761: std::vector tombstones_; 29761: std::vector tombstone_seqs_; 29761: std::vector tombstone_timestamps_; 29761: std::once_flag seq_set_init_once_flag_; 29761: std::set seq_set_; 29761: std::list pinned_slices_; 29761: PinnedIteratorsManager pinned_iters_mgr_; 29761: uint64_t num_unfragmented_tombstones_; 29761: uint64_t total_tombstone_payload_bytes_; 29761: }; 29761: 29761: struct FragmentedRangeTombstoneListCache { 29761: 29761: std::mutex reader_mutex; 29761: std::unique_ptr tombstones = nullptr; 29761: 29761: std::atomic initialized = false; 29761: }; 29761: # 134 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: class FragmentedRangeTombstoneIterator : public InternalIterator { 29761: public: 29761: FragmentedRangeTombstoneIterator(FragmentedRangeTombstoneList* tombstones, 29761: const InternalKeyComparator& icmp, 29761: SequenceNumber upper_bound, 29761: const Slice* ts_upper_bound = nullptr, 29761: SequenceNumber lower_bound = 0); 29761: FragmentedRangeTombstoneIterator( 29761: const std::shared_ptr& tombstones, 29761: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 29761: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 29761: FragmentedRangeTombstoneIterator( 29761: const std::shared_ptr& tombstones, 29761: const InternalKeyComparator& icmp, SequenceNumber upper_bound, 29761: const Slice* ts_upper_bound = nullptr, SequenceNumber lower_bound = 0); 29761: 29761: void SetRangeDelReadSeqno(SequenceNumber read_seqno) override { 29761: upper_bound_ = read_seqno; 29761: } 29761: 29761: void SeekToFirst() override; 29761: void SeekToLast() override; 29761: 29761: void SeekToTopFirst(); 29761: void SeekToTopLast(); 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: void Seek(const Slice& target) override; 29761: 29761: 29761: 29761: void SeekForPrev(const Slice& target) override; 29761: 29761: void Next() override; 29761: void Prev() override; 29761: 29761: void TopNext(); 29761: void TopPrev(); 29761: 29761: bool Valid() const override; 29761: 29761: 29761: Slice key() const override { 29761: MaybePinKey(); 29761: return current_start_key_.Encode(); 29761: } 29761: Slice value() const override { return pos_->end_key; } 29761: bool IsKeyPinned() const override { return false; } 29761: bool IsValuePinned() const override { return true; } 29761: Status status() const override { return Status::OK(); } 29761: 29761: bool empty() const { return tombstones_->empty(); } 29761: void Invalidate() { 29761: pos_ = tombstones_->end(); 29761: seq_pos_ = tombstones_->seq_end(); 29761: pinned_pos_ = tombstones_->end(); 29761: pinned_seq_pos_ = tombstones_->seq_end(); 29761: } 29761: 29761: RangeTombstone Tombstone() const { 29761: 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29761: (static_cast ( 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: Valid() 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: "Valid()" 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: ; 29761: if (icmp_->user_comparator()->timestamp_size()) { 29761: return RangeTombstone(start_key(), end_key(), seq(), timestamp()); 29761: } 29761: return RangeTombstone(start_key(), end_key(), seq()); 29761: } 29761: 29761: 29761: 29761: 29761: Slice start_key() const { return pos_->start_key; } 29761: Slice end_key() const { return pos_->end_key; } 29761: SequenceNumber seq() const { return *seq_pos_; } 29761: Slice timestamp() const { 29761: 29761: return *tombstones_->ts_iter(seq_pos_ - tombstones_->seq_begin()); 29761: } 29761: 29761: 29761: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 29761: ts_upper_bound_ = ts_upper_bound; 29761: } 29761: 29761: ParsedInternalKey parsed_start_key() const { 29761: return ParsedInternalKey(pos_->start_key, seq(), kTypeRangeDeletion); 29761: } 29761: ParsedInternalKey parsed_end_key() const { 29761: return ParsedInternalKey(pos_->end_key, kMaxSequenceNumber, 29761: kTypeRangeDeletion); 29761: } 29761: 29761: 29761: 29761: 29761: SequenceNumber MaxCoveringTombstoneSeqnum(const Slice& user_key); 29761: # 246 "/build/reproducible-path/rocksdb-9.10.0/db/range_tombstone_fragmenter.h" 29761: std::map> 29761: SplitBySnapshot(const std::vector& snapshots); 29761: 29761: SequenceNumber upper_bound() const { return upper_bound_; } 29761: SequenceNumber lower_bound() const { return lower_bound_; } 29761: 29761: uint64_t num_unfragmented_tombstones() const { 29761: return tombstones_->num_unfragmented_tombstones(); 29761: } 29761: uint64_t total_tombstone_payload_bytes() const { 29761: return tombstones_->total_tombstone_payload_bytes(); 29761: } 29761: 29761: private: 29761: using RangeTombstoneStack = FragmentedRangeTombstoneList::RangeTombstoneStack; 29761: 29761: struct RangeTombstoneStackStartComparator { 29761: explicit RangeTombstoneStackStartComparator(const Comparator* c) : cmp(c) {} 29761: 29761: bool operator()(const RangeTombstoneStack& a, 29761: const RangeTombstoneStack& b) const { 29761: return cmp->CompareWithoutTimestamp(a.start_key, b.start_key) < 0; 29761: } 29761: 29761: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 29761: return cmp->CompareWithoutTimestamp(a.start_key, b) < 0; 29761: } 29761: 29761: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 29761: return cmp->CompareWithoutTimestamp(a, b.start_key) < 0; 29761: } 29761: 29761: const Comparator* cmp; 29761: }; 29761: 29761: struct RangeTombstoneStackEndComparator { 29761: explicit RangeTombstoneStackEndComparator(const Comparator* c) : cmp(c) {} 29761: 29761: bool operator()(const RangeTombstoneStack& a, 29761: const RangeTombstoneStack& b) const { 29761: return cmp->CompareWithoutTimestamp(a.end_key, b.end_key) < 0; 29761: } 29761: 29761: bool operator()(const RangeTombstoneStack& a, const Slice& b) const { 29761: return cmp->CompareWithoutTimestamp(a.end_key, b) < 0; 29761: } 29761: 29761: bool operator()(const Slice& a, const RangeTombstoneStack& b) const { 29761: return cmp->CompareWithoutTimestamp(a, b.end_key) < 0; 29761: } 29761: 29761: const Comparator* cmp; 29761: }; 29761: 29761: void MaybePinKey() const { 29761: if (pos_ != tombstones_->end() && seq_pos_ != tombstones_->seq_end() && 29761: (pinned_pos_ != pos_ || pinned_seq_pos_ != seq_pos_)) { 29761: current_start_key_.Set(pos_->start_key, *seq_pos_, kTypeRangeDeletion); 29761: pinned_pos_ = pos_; 29761: pinned_seq_pos_ = seq_pos_; 29761: } 29761: } 29761: 29761: void SeekToCoveringTombstone(const Slice& key); 29761: void SeekForPrevToCoveringTombstone(const Slice& key); 29761: void ScanForwardToVisibleTombstone(); 29761: void ScanBackwardToVisibleTombstone(); 29761: bool ValidPos() const { 29761: return Valid() && seq_pos_ != tombstones_->seq_iter(pos_->seq_end_idx); 29761: } 29761: 29761: const RangeTombstoneStackStartComparator tombstone_start_cmp_; 29761: const RangeTombstoneStackEndComparator tombstone_end_cmp_; 29761: const InternalKeyComparator* icmp_; 29761: const Comparator* ucmp_; 29761: std::shared_ptr tombstones_ref_; 29761: std::shared_ptr tombstones_cache_ref_; 29761: FragmentedRangeTombstoneList* tombstones_; 29761: SequenceNumber upper_bound_; 29761: SequenceNumber lower_bound_; 29761: 29761: const Slice* ts_upper_bound_; 29761: std::vector::const_iterator pos_; 29761: std::vector::const_iterator seq_pos_; 29761: mutable std::vector::const_iterator pinned_pos_; 29761: mutable std::vector::const_iterator pinned_seq_pos_; 29761: mutable InternalKey current_start_key_; 29761: 29761: 29761: 29761: 29761: 29761: void SetMaxVisibleSeqAndTimestamp() { 29761: seq_pos_ = std::lower_bound(tombstones_->seq_iter(pos_->seq_start_idx), 29761: tombstones_->seq_iter(pos_->seq_end_idx), 29761: upper_bound_, std::greater()); 29761: if (ts_upper_bound_ && !ts_upper_bound_->empty()) { 29761: auto ts_pos = std::lower_bound( 29761: tombstones_->ts_iter(pos_->seq_start_idx), 29761: tombstones_->ts_iter(pos_->seq_end_idx), *ts_upper_bound_, 29761: [this](const Slice& s1, const Slice& s2) { 29761: return ucmp_->CompareTimestamp(s1, s2) > 0; 29761: }); 29761: auto ts_idx = ts_pos - tombstones_->ts_iter(pos_->seq_start_idx); 29761: auto seq_idx = seq_pos_ - tombstones_->seq_iter(pos_->seq_start_idx); 29761: if (seq_idx < ts_idx) { 29761: 29761: 29761: seq_pos_ = tombstones_->seq_iter(pos_->seq_start_idx + ts_idx); 29761: } 29761: } 29761: } 29761: }; 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 2 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_constants.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: constexpr uint64_t kInvalidBlobFileNumber = 0; 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class JSONWriter; 29761: class Slice; 29761: class Status; 29761: 29761: class BlobFileAddition { 29761: public: 29761: BlobFileAddition() = default; 29761: 29761: BlobFileAddition(uint64_t blob_file_number, uint64_t total_blob_count, 29761: uint64_t total_blob_bytes, std::string checksum_method, 29761: std::string checksum_value) 29761: : blob_file_number_(blob_file_number), 29761: total_blob_count_(total_blob_count), 29761: total_blob_bytes_(total_blob_bytes), 29761: checksum_method_(std::move(checksum_method)), 29761: checksum_value_(std::move(checksum_value)) { 29761: 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29761: (static_cast ( 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29761: checksum_method_.empty() == checksum_value_.empty() 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29761: "checksum_method_.empty() == checksum_value_.empty()" 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_addition.h" 29761: ; 29761: } 29761: 29761: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 29761: uint64_t GetTotalBlobCount() const { return total_blob_count_; } 29761: uint64_t GetTotalBlobBytes() const { return total_blob_bytes_; } 29761: const std::string& GetChecksumMethod() const { return checksum_method_; } 29761: const std::string& GetChecksumValue() const { return checksum_value_; } 29761: 29761: void EncodeTo(std::string* output) const; 29761: Status DecodeFrom(Slice* input); 29761: 29761: std::string DebugString() const; 29761: std::string DebugJSON() const; 29761: 29761: private: 29761: enum CustomFieldTags : uint32_t; 29761: 29761: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 29761: uint64_t total_blob_count_ = 0; 29761: uint64_t total_blob_bytes_ = 0; 29761: std::string checksum_method_; 29761: std::string checksum_value_; 29761: }; 29761: 29761: bool operator==(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 29761: bool operator!=(const BlobFileAddition& lhs, const BlobFileAddition& rhs); 29761: 29761: std::ostream& operator<<(std::ostream& os, 29761: const BlobFileAddition& blob_file_addition); 29761: JSONWriter& operator<<(JSONWriter& jw, 29761: const BlobFileAddition& blob_file_addition); 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/blob/blob_file_garbage.h" 29761: namespace rocksdb { 29761: 29761: class JSONWriter; 29761: class Slice; 29761: class Status; 29761: 29761: class BlobFileGarbage { 29761: public: 29761: BlobFileGarbage() = default; 29761: 29761: BlobFileGarbage(uint64_t blob_file_number, uint64_t garbage_blob_count, 29761: uint64_t garbage_blob_bytes) 29761: : blob_file_number_(blob_file_number), 29761: garbage_blob_count_(garbage_blob_count), 29761: garbage_blob_bytes_(garbage_blob_bytes) {} 29761: 29761: uint64_t GetBlobFileNumber() const { return blob_file_number_; } 29761: uint64_t GetGarbageBlobCount() const { return garbage_blob_count_; } 29761: uint64_t GetGarbageBlobBytes() const { return garbage_blob_bytes_; } 29761: 29761: void EncodeTo(std::string* output) const; 29761: Status DecodeFrom(Slice* input); 29761: 29761: std::string DebugString() const; 29761: std::string DebugJSON() const; 29761: 29761: private: 29761: enum CustomFieldTags : uint32_t; 29761: 29761: uint64_t blob_file_number_ = kInvalidBlobFileNumber; 29761: uint64_t garbage_blob_count_ = 0; 29761: uint64_t garbage_blob_bytes_ = 0; 29761: }; 29761: 29761: bool operator==(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 29761: bool operator!=(const BlobFileGarbage& lhs, const BlobFileGarbage& rhs); 29761: 29761: std::ostream& operator<<(std::ostream& os, 29761: const BlobFileGarbage& blob_file_garbage); 29761: JSONWriter& operator<<(JSONWriter& jw, 29761: const BlobFileGarbage& blob_file_garbage); 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/ctime" 1 3 29761: # 39 "/usr/include/c++/14/ctime" 3 29761: 29761: # 40 "/usr/include/c++/14/ctime" 3 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 1 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 1 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 29761: 29761: # 1 "/usr/include/c++/14/cerrno" 1 3 29761: # 39 "/usr/include/c++/14/cerrno" 3 29761: 29761: # 40 "/usr/include/c++/14/cerrno" 3 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/memory/allocator.h" 2 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Logger; 29761: 29761: class Allocator { 29761: public: 29761: virtual ~Allocator() {} 29761: 29761: virtual char* Allocate(size_t bytes) = 0; 29761: virtual char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29761: Logger* logger = nullptr) = 0; 29761: 29761: virtual size_t BlockSize() const = 0; 29761: }; 29761: 29761: class AllocTracker { 29761: public: 29761: explicit AllocTracker(WriteBufferManager* write_buffer_manager); 29761: 29761: AllocTracker(const AllocTracker&) = delete; 29761: void operator=(const AllocTracker&) = delete; 29761: 29761: ~AllocTracker(); 29761: void Allocate(size_t bytes); 29761: 29761: 29761: void DoneAllocating(); 29761: 29761: void FreeMem(); 29761: 29761: bool is_freed() const { return write_buffer_manager_ == nullptr || freed_; } 29761: 29761: private: 29761: WriteBufferManager* write_buffer_manager_; 29761: std::atomic bytes_allocated_; 29761: bool done_allocating_; 29761: bool freed_; 29761: }; 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 1 3 4 29761: # 25 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29761: # 1 "/usr/lib/gcc/arm-linux-gnueabihf/14/include/stddef.h" 1 3 4 29761: # 26 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29761: # 41 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 1 3 4 29761: # 29 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-map-flags-generic.h" 1 3 4 29761: # 30 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 1 3 4 29761: # 135 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 3 4 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 1 3 4 29761: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 29761: 29761: # 51 "/usr/include/arm-linux-gnueabihf/bits/mman-shared.h" 3 4 29761: extern "C" { 29761: 29761: 29761: 29761: int memfd_create (const char *__name, unsigned int __flags) noexcept (true); 29761: 29761: 29761: 29761: int mlock2 (const void *__addr, size_t __length, unsigned int __flags) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: int pkey_alloc (unsigned int __flags, unsigned int __access_rights) noexcept (true); 29761: 29761: 29761: 29761: int pkey_set (int __key, unsigned int __access_rights) noexcept (true); 29761: 29761: 29761: 29761: int pkey_get (int __key) noexcept (true); 29761: 29761: 29761: 29761: int pkey_free (int __key) noexcept (true); 29761: 29761: 29761: 29761: int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) noexcept (true); 29761: 29761: } 29761: # 136 "/usr/include/arm-linux-gnueabihf/bits/mman-linux.h" 2 3 4 29761: # 33 "/usr/include/arm-linux-gnueabihf/bits/mman.h" 2 3 4 29761: # 42 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29761: 29761: 29761: 29761: 29761: extern "C" { 29761: # 61 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29761: extern void * mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off64_t __offset) noexcept (true) __asm__ ("" "mmap64") 29761: 29761: 29761: ; 29761: 29761: 29761: 29761: 29761: 29761: extern void *mmap64 (void *__addr, size_t __len, int __prot, 29761: int __flags, int __fd, __off64_t __offset) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int munmap (void *__addr, size_t __len) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int mprotect (void *__addr, size_t __len, int __prot) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int msync (void *__addr, size_t __len, int __flags); 29761: 29761: 29761: 29761: 29761: extern int madvise (void *__addr, size_t __len, int __advice) noexcept (true); 29761: 29761: 29761: 29761: extern int posix_madvise (void *__addr, size_t __len, int __advice) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int mlock (const void *__addr, size_t __len) noexcept (true); 29761: 29761: 29761: extern int munlock (const void *__addr, size_t __len) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int mlockall (int __flags) noexcept (true); 29761: 29761: 29761: 29761: extern int munlockall (void) noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: extern int mincore (void *__start, size_t __len, unsigned char *__vec) 29761: noexcept (true); 29761: # 133 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 3 4 29761: extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, 29761: int __flags, ...) noexcept (true); 29761: 29761: 29761: 29761: extern int remap_file_pages (void *__start, size_t __size, int __prot, 29761: size_t __pgoff, int __flags) noexcept (true); 29761: 29761: 29761: 29761: 29761: extern int shm_open (const char *__name, int __oflag, mode_t __mode); 29761: 29761: 29761: extern int shm_unlink (const char *__name); 29761: 29761: 29761: # 1 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 1 3 4 29761: # 24 "/usr/include/arm-linux-gnueabihf/bits/mman_ext.h" 3 4 29761: struct iovec; 29761: extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov, 29761: size_t __count, int __advice, 29761: unsigned __flags) 29761: noexcept (true); 29761: 29761: extern int process_mrelease (int pidfd, unsigned int flags) noexcept (true); 29761: # 151 "/usr/include/arm-linux-gnueabihf/sys/mman.h" 2 3 4 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/port/mmap.h" 29761: namespace rocksdb { 29761: 29761: 29761: class MemMapping { 29761: public: 29761: static constexpr bool kHugePageSupported = 29761: 29761: true; 29761: 29761: 29761: 29761: 29761: 29761: static MemMapping AllocateHuge(size_t length); 29761: 29761: 29761: 29761: 29761: 29761: 29761: static MemMapping AllocateLazyZeroed(size_t length); 29761: 29761: 29761: MemMapping(const MemMapping&) = delete; 29761: MemMapping& operator=(const MemMapping&) = delete; 29761: 29761: MemMapping(MemMapping&&) noexcept; 29761: MemMapping& operator=(MemMapping&&) noexcept; 29761: 29761: 29761: ~MemMapping(); 29761: 29761: inline void* Get() const { return addr_; } 29761: inline size_t Length() const { return length_; } 29761: 29761: private: 29761: MemMapping() {} 29761: 29761: 29761: void* addr_ = nullptr; 29761: 29761: size_t length_ = 0; 29761: 29761: 29761: 29761: 29761: 29761: static MemMapping AllocateAnonymous(size_t length, bool huge); 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: class TypedMemMapping : public MemMapping { 29761: public: 29761: TypedMemMapping(MemMapping&& v) noexcept 29761: : MemMapping(std::move(v)) {} 29761: TypedMemMapping& operator=(MemMapping&& v) noexcept { 29761: MemMapping& base = *this; 29761: base = std::move(v); 29761: } 29761: 29761: inline T* Get() const { return static_cast(MemMapping::Get()); } 29761: inline size_t Count() const { return MemMapping::Length() / sizeof(T); } 29761: 29761: inline T& operator[](size_t index) const { return Get()[index]; } 29761: }; 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Arena : public Allocator { 29761: public: 29761: 29761: Arena(const Arena&) = delete; 29761: void operator=(const Arena&) = delete; 29761: 29761: static constexpr size_t kInlineSize = 2048; 29761: static constexpr size_t kMinBlockSize = 4096; 29761: static constexpr size_t kMaxBlockSize = 2u << 30; 29761: 29761: static constexpr unsigned kAlignUnit = alignof(std::max_align_t); 29761: static_assert((kAlignUnit & (kAlignUnit - 1)) == 0, 29761: "Pointer size should be power of 2"); 29761: 29761: 29761: 29761: 29761: explicit Arena(size_t block_size = kMinBlockSize, 29761: AllocTracker* tracker = nullptr, size_t huge_page_size = 0); 29761: ~Arena(); 29761: 29761: char* Allocate(size_t bytes) override; 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29761: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29761: Logger* logger = nullptr) override; 29761: 29761: 29761: 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: return blocks_memory_ + blocks_.size() * sizeof(char*) - 29761: alloc_bytes_remaining_; 29761: } 29761: 29761: size_t MemoryAllocatedBytes() const { return blocks_memory_; } 29761: 29761: size_t AllocatedAndUnused() const { return alloc_bytes_remaining_; } 29761: 29761: 29761: 29761: size_t IrregularBlockNum() const { return irregular_block_num; } 29761: 29761: size_t BlockSize() const override { return kBlockSize; } 29761: 29761: bool IsInInlineBlock() const { 29761: return blocks_.empty() && huge_blocks_.empty(); 29761: } 29761: 29761: 29761: 29761: 29761: static size_t OptimizeBlockSize(size_t block_size); 29761: 29761: private: 29761: alignas(std::max_align_t) char inline_block_[kInlineSize]; 29761: 29761: const size_t kBlockSize; 29761: 29761: std::deque> blocks_; 29761: 29761: std::deque huge_blocks_; 29761: size_t irregular_block_num = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: char* unaligned_alloc_ptr_ = nullptr; 29761: char* aligned_alloc_ptr_ = nullptr; 29761: 29761: size_t alloc_bytes_remaining_ = 0; 29761: 29761: size_t hugetlb_size_ = 0; 29761: 29761: char* AllocateFromHugePage(size_t bytes); 29761: char* AllocateFallback(size_t bytes, bool aligned); 29761: char* AllocateNewBlock(size_t block_bytes); 29761: 29761: 29761: size_t blocks_memory_ = 0; 29761: 29761: AllocTracker* tracker_; 29761: }; 29761: 29761: inline char* Arena::Allocate(size_t bytes) { 29761: 29761: 29761: 29761: 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29761: (static_cast ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29761: bytes > 0 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29761: "bytes > 0" 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/memory/arena.h" 29761: ; 29761: if (bytes <= alloc_bytes_remaining_) { 29761: unaligned_alloc_ptr_ -= bytes; 29761: alloc_bytes_remaining_ -= bytes; 29761: return unaligned_alloc_ptr_; 29761: } 29761: return AllocateFallback(bytes, false ); 29761: } 29761: 29761: 29761: template 29761: struct Destroyer { 29761: void operator()(T* ptr) { ptr->~T(); } 29761: }; 29761: 29761: 29761: 29761: template 29761: using ScopedArenaPtr = std::unique_ptr>; 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 1 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29761: 29761: # 42 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29761: # 1 "/usr/include/arm-linux-gnueabihf/sys/time.h" 1 3 4 29761: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: 29761: # 34 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern "C" { 29761: # 52 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: struct timezone 29761: { 29761: int tz_minuteswest; 29761: int tz_dsttime; 29761: }; 29761: # 71 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern int gettimeofday (struct timeval *__restrict __tv, void *__restrict __tz) noexcept (true) __asm__ ("" "__gettimeofday64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: # 98 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern int settimeofday (const struct timeval *__tv, const struct timezone *__tz) noexcept (true) __asm__ ("" "__settimeofday64") 29761: 29761: ; 29761: 29761: extern int adjtime (const struct timeval *__delta, struct timeval *__olddelta) noexcept (true) __asm__ ("" "__adjtime64") 29761: 29761: ; 29761: # 114 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: enum __itimer_which 29761: { 29761: 29761: ITIMER_REAL = 0, 29761: 29761: 29761: ITIMER_VIRTUAL = 1, 29761: 29761: 29761: 29761: ITIMER_PROF = 2 29761: 29761: }; 29761: 29761: 29761: 29761: struct itimerval 29761: { 29761: 29761: struct timeval it_interval; 29761: 29761: struct timeval it_value; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: typedef int __itimer_which_t; 29761: # 167 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern int getitimer (__itimer_which_t __which, struct itimerval *__value) noexcept (true) __asm__ ("" "__getitimer64") 29761: 29761: ; 29761: 29761: extern int setitimer (__itimer_which_t __which, const struct itimerval *__restrict __new, struct itimerval *__restrict __old) noexcept (true) __asm__ ("" "__setitimer64") 29761: 29761: 29761: ; 29761: 29761: extern int utimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__utimes64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: # 196 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern int lutimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__lutimes64") 29761: 29761: __attribute__ ((__nonnull__ (1))); 29761: 29761: extern int futimes (int __fd, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimes64") 29761: ; 29761: # 218 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: extern int futimesat (int __fd, const char *__file, const struct timeval __tvp[2]) noexcept (true) __asm__ ("" "__futimesat64") 29761: 29761: ; 29761: # 258 "/usr/include/arm-linux-gnueabihf/sys/time.h" 3 4 29761: } 29761: # 43 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 2 29761: 29761: 29761: 29761: # 45 "/build/reproducible-path/rocksdb-9.10.0/port/sys_time.h" 29761: namespace rocksdb { 29761: 29761: namespace port { 29761: 29761: using TimeVal = struct timeval; 29761: 29761: inline void GetTimeOfDay(TimeVal* tv, struct timezone* tz) { 29761: gettimeofday(tv, tz); 29761: } 29761: 29761: inline struct tm* LocalTimeR(const time_t* timep, struct tm* result) { 29761: return localtime_r(timep, result); 29761: } 29761: 29761: } 29761: 29761: } 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/logging/log_buffer.h" 2 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Logger; 29761: 29761: 29761: class LogBuffer { 29761: public: 29761: 29761: 29761: LogBuffer(const InfoLogLevel log_level, Logger* info_log); 29761: 29761: 29761: 29761: void AddLogToBuffer(size_t max_log_size, const char* format, va_list ap); 29761: 29761: size_t IsEmpty() const { return logs_.empty(); } 29761: 29761: 29761: void FlushBufferToLog(); 29761: static const size_t kDefaultMaxLogSize = 512; 29761: 29761: private: 29761: 29761: struct BufferedLog { 29761: port::TimeVal now_tv; 29761: char message[1]; 29761: }; 29761: 29761: const InfoLogLevel log_level_; 29761: Logger* info_log_; 29761: Arena arena_; 29761: autovector logs_; 29761: }; 29761: 29761: 29761: 29761: 29761: void LogToBuffer(LogBuffer* log_buffer, size_t max_log_size, const char* format, 29761: ...); 29761: 29761: void LogToBuffer(LogBuffer* log_buffer, const char* format, ...); 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class JSONWriter { 29761: public: 29761: JSONWriter() : state_(kExpectKey), first_element_(true), in_array_(false) { 29761: stream_ << "{"; 29761: } 29761: 29761: void AddKey(const std::string& key) { 29761: 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectKey 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectKey" 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: if (!first_element_) { 29761: stream_ << ", "; 29761: } 29761: stream_ << "\"" << key << "\": "; 29761: state_ = kExpectValue; 29761: first_element_ = false; 29761: } 29761: 29761: void AddValue(const char* value) { 29761: 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectValue || state_ == kInArray 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectValue || state_ == kInArray" 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: if (state_ == kInArray && !first_element_) { 29761: stream_ << ", "; 29761: } 29761: stream_ << "\"" << value << "\""; 29761: if (state_ != kInArray) { 29761: state_ = kExpectKey; 29761: } 29761: first_element_ = false; 29761: } 29761: 29761: template 29761: void AddValue(const T& value) { 29761: 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectValue || state_ == kInArray 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectValue || state_ == kInArray" 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 48 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: if (state_ == kInArray && !first_element_) { 29761: stream_ << ", "; 29761: } 29761: stream_ << value; 29761: if (state_ != kInArray) { 29761: state_ = kExpectKey; 29761: } 29761: first_element_ = false; 29761: } 29761: 29761: void StartArray() { 29761: 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectValue 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectValue" 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: state_ = kInArray; 29761: in_array_ = true; 29761: stream_ << "["; 29761: first_element_ = true; 29761: } 29761: 29761: void EndArray() { 29761: 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kInArray 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kInArray" 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: state_ = kExpectKey; 29761: in_array_ = false; 29761: stream_ << "]"; 29761: first_element_ = false; 29761: } 29761: 29761: void StartObject() { 29761: 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectValue 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectValue" 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 76 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: state_ = kExpectKey; 29761: stream_ << "{"; 29761: first_element_ = true; 29761: } 29761: 29761: void EndObject() { 29761: 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kExpectKey 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kExpectKey" 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: stream_ << "}"; 29761: first_element_ = false; 29761: } 29761: 29761: void StartArrayedObject() { 29761: 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ == kInArray && in_array_ 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ == kInArray && in_array_" 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: state_ = kExpectValue; 29761: if (!first_element_) { 29761: stream_ << ", "; 29761: } 29761: StartObject(); 29761: } 29761: 29761: void EndArrayedObject() { 29761: 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: in_array_ 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "in_array_" 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 98 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: EndObject(); 29761: state_ = kInArray; 29761: } 29761: 29761: std::string Get() const { return stream_.str(); } 29761: 29761: JSONWriter& operator<<(const char* val) { 29761: if (state_ == kExpectKey) { 29761: AddKey(val); 29761: } else { 29761: AddValue(val); 29761: } 29761: return *this; 29761: } 29761: 29761: JSONWriter& operator<<(const std::string& val) { 29761: return *this << val.c_str(); 29761: } 29761: 29761: template 29761: JSONWriter& operator<<(const T& val) { 29761: 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: (static_cast ( 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: state_ != kExpectKey 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: "state_ != kExpectKey" 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 120 "/build/reproducible-path/rocksdb-9.10.0/logging/event_logger.h" 29761: ; 29761: AddValue(val); 29761: return *this; 29761: } 29761: 29761: private: 29761: enum JSONWriterState { 29761: kExpectKey, 29761: kExpectValue, 29761: kInArray, 29761: kInArrayedObject, 29761: }; 29761: JSONWriterState state_; 29761: bool first_element_; 29761: bool in_array_; 29761: std::ostringstream stream_; 29761: }; 29761: 29761: class EventLoggerStream { 29761: public: 29761: template 29761: EventLoggerStream& operator<<(const T& val) { 29761: MakeStream(); 29761: *json_writer_ << val; 29761: return *this; 29761: } 29761: 29761: void StartArray() { json_writer_->StartArray(); } 29761: void EndArray() { json_writer_->EndArray(); } 29761: void StartObject() { json_writer_->StartObject(); } 29761: void EndObject() { json_writer_->EndObject(); } 29761: 29761: ~EventLoggerStream(); 29761: 29761: private: 29761: void MakeStream() { 29761: if (!json_writer_) { 29761: json_writer_ = new JSONWriter(); 29761: *this << "time_micros" 29761: << std::chrono::duration_cast( 29761: std::chrono::system_clock::now().time_since_epoch()) 29761: .count(); 29761: } 29761: } 29761: friend class EventLogger; 29761: explicit EventLoggerStream(Logger* logger); 29761: explicit EventLoggerStream(LogBuffer* log_buffer, const size_t max_log_size); 29761: 29761: Logger* const logger_; 29761: LogBuffer* const log_buffer_; 29761: const size_t max_log_size_; 29761: 29761: JSONWriter* json_writer_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class EventLogger { 29761: public: 29761: static const char* Prefix() { return "EVENT_LOG_v1"; } 29761: 29761: explicit EventLogger(Logger* logger) : logger_(logger) {} 29761: EventLoggerStream Log() { return EventLoggerStream(logger_); } 29761: EventLoggerStream LogToBuffer(LogBuffer* log_buffer) { 29761: return EventLoggerStream(log_buffer, LogBuffer::kDefaultMaxLogSize); 29761: } 29761: EventLoggerStream LogToBuffer(LogBuffer* log_buffer, 29761: const size_t max_log_size) { 29761: return EventLoggerStream(log_buffer, max_log_size); 29761: } 29761: void Log(const JSONWriter& jwriter); 29761: static void Log(Logger* logger, const JSONWriter& jwriter); 29761: static void LogToBuffer( 29761: LogBuffer* log_buffer, const JSONWriter& jwriter, 29761: const size_t max_log_size = LogBuffer::kDefaultMaxLogSize); 29761: 29761: private: 29761: Logger* logger_; 29761: }; 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 2 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class JSONWriter; 29761: class Slice; 29761: class Status; 29761: 29761: using WalNumber = uint64_t; 29761: 29761: 29761: class WalMetadata { 29761: public: 29761: WalMetadata() = default; 29761: 29761: explicit WalMetadata(uint64_t synced_size_bytes) 29761: : synced_size_bytes_(synced_size_bytes) {} 29761: 29761: bool HasSyncedSize() const { return synced_size_bytes_ != kUnknownWalSize; } 29761: 29761: void SetSyncedSizeInBytes(uint64_t bytes) { synced_size_bytes_ = bytes; } 29761: 29761: uint64_t GetSyncedSizeInBytes() const { return synced_size_bytes_; } 29761: 29761: private: 29761: friend bool operator==(const WalMetadata& lhs, const WalMetadata& rhs); 29761: friend bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs); 29761: 29761: 29761: constexpr static uint64_t kUnknownWalSize = 29761: std::numeric_limits::max(); 29761: 29761: 29761: uint64_t synced_size_bytes_ = kUnknownWalSize; 29761: }; 29761: 29761: inline bool operator==(const WalMetadata& lhs, const WalMetadata& rhs) { 29761: return lhs.synced_size_bytes_ == rhs.synced_size_bytes_; 29761: } 29761: 29761: inline bool operator!=(const WalMetadata& lhs, const WalMetadata& rhs) { 29761: return !(lhs == rhs); 29761: } 29761: 29761: 29761: enum class WalAdditionTag : uint32_t { 29761: 29761: kTerminate = 1, 29761: 29761: kSyncedSize = 2, 29761: 29761: }; 29761: 29761: 29761: class WalAddition { 29761: public: 29761: WalAddition() : number_(0), metadata_() {} 29761: 29761: explicit WalAddition(WalNumber number) : number_(number), metadata_() {} 29761: 29761: WalAddition(WalNumber number, WalMetadata meta) 29761: : number_(number), metadata_(std::move(meta)) {} 29761: 29761: WalNumber GetLogNumber() const { return number_; } 29761: 29761: const WalMetadata& GetMetadata() const { return metadata_; } 29761: 29761: void EncodeTo(std::string* dst) const; 29761: 29761: Status DecodeFrom(Slice* src); 29761: 29761: std::string DebugString() const; 29761: 29761: private: 29761: WalNumber number_; 29761: WalMetadata metadata_; 29761: }; 29761: 29761: std::ostream& operator<<(std::ostream& os, const WalAddition& wal); 29761: JSONWriter& operator<<(JSONWriter& jw, const WalAddition& wal); 29761: 29761: using WalAdditions = std::vector; 29761: 29761: 29761: class WalDeletion { 29761: public: 29761: WalDeletion() : number_(kEmpty) {} 29761: 29761: explicit WalDeletion(WalNumber number) : number_(number) {} 29761: 29761: WalNumber GetLogNumber() const { return number_; } 29761: 29761: void EncodeTo(std::string* dst) const; 29761: 29761: Status DecodeFrom(Slice* src); 29761: 29761: std::string DebugString() const; 29761: 29761: bool IsEmpty() const { return number_ == kEmpty; } 29761: 29761: void Reset() { number_ = kEmpty; } 29761: 29761: private: 29761: static constexpr WalNumber kEmpty = 0; 29761: 29761: WalNumber number_; 29761: }; 29761: 29761: std::ostream& operator<<(std::ostream& os, const WalDeletion& wal); 29761: JSONWriter& operator<<(JSONWriter& jw, const WalDeletion& wal); 29761: # 138 "/build/reproducible-path/rocksdb-9.10.0/db/wal_edit.h" 29761: class WalSet { 29761: public: 29761: 29761: 29761: 29761: 29761: 29761: Status AddWal(const WalAddition& wal); 29761: Status AddWals(const WalAdditions& wals); 29761: 29761: 29761: 29761: Status DeleteWalsBefore(WalNumber wal); 29761: 29761: 29761: void Reset(); 29761: 29761: 29761: WalNumber GetMinWalNumberToKeep() const { return min_wal_number_to_keep_; } 29761: 29761: const std::map& GetWals() const { return wals_; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status CheckWals( 29761: Env* env, 29761: const std::unordered_map& logs_on_disk) const; 29761: 29761: private: 29761: std::map wals_; 29761: 29761: 29761: WalNumber min_wal_number_to_keep_ = 0; 29761: }; 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: namespace rocksdb { 29761: 29761: class Logger; 29761: class SecondaryCacheResultHandle; 29761: class Statistics; 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: class Cache : public Customizable { 29761: public: 29761: 29761: struct Handle {}; 29761: 29761: public: 29761: 29761: 29761: using ObjectPtr = void*; 29761: 29761: 29761: 29761: struct CreateContext {}; 29761: 29761: public: 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: enum class Priority { HIGH, LOW, BOTTOM }; 29761: # 97 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: using SizeCallback = size_t (*)(ObjectPtr obj); 29761: 29761: 29761: 29761: 29761: 29761: using SaveToCallback = Status (*)(ObjectPtr from_obj, size_t from_offset, 29761: size_t length, char* out_buf); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: using DeleterFn = void (*)(ObjectPtr obj, MemoryAllocator* allocator); 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: using CreateCallback = Status (*)(const Slice& data, CompressionType type, 29761: CacheTier source, CreateContext* context, 29761: MemoryAllocator* allocator, 29761: ObjectPtr* out_obj, size_t* out_charge); 29761: 29761: 29761: 29761: 29761: struct CacheItemHelper { 29761: 29761: 29761: 29761: DeleterFn del_cb; 29761: 29761: 29761: 29761: SizeCallback size_cb; 29761: SaveToCallback saveto_cb; 29761: CreateCallback create_cb; 29761: 29761: CacheEntryRole role; 29761: 29761: 29761: 29761: 29761: const CacheItemHelper* without_secondary_compat; 29761: 29761: CacheItemHelper() : CacheItemHelper(CacheEntryRole::kMisc) {} 29761: 29761: 29761: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb = nullptr) 29761: : CacheItemHelper(_role, _del_cb, nullptr, nullptr, nullptr, this) {} 29761: 29761: 29761: explicit CacheItemHelper(CacheEntryRole _role, DeleterFn _del_cb, 29761: SizeCallback _size_cb, SaveToCallback _saveto_cb, 29761: CreateCallback _create_cb, 29761: const CacheItemHelper* _without_secondary_compat) 29761: : del_cb(_del_cb), 29761: size_cb(_size_cb), 29761: saveto_cb(_saveto_cb), 29761: create_cb(_create_cb), 29761: role(_role), 29761: without_secondary_compat(_without_secondary_compat) { 29761: 29761: 29761: 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: (size_cb != nullptr) == (saveto_cb != nullptr) 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "(size_cb != nullptr) == (saveto_cb != nullptr)" 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 170 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; 29761: 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: (size_cb != nullptr) == (create_cb != nullptr) 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "(size_cb != nullptr) == (create_cb != nullptr)" 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; 29761: 29761: 29761: 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: role == without_secondary_compat->role 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "role == without_secondary_compat->role" 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 174 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; 29761: 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: del_cb == without_secondary_compat->del_cb 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "del_cb == without_secondary_compat->del_cb" 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; 29761: 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: !without_secondary_compat->IsSecondaryCacheCompatible() 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "!without_secondary_compat->IsSecondaryCacheCompatible()" 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; 29761: } 29761: inline bool IsSecondaryCacheCompatible() const { 29761: return size_cb != nullptr; 29761: } 29761: }; 29761: 29761: public: 29761: Cache(std::shared_ptr allocator = nullptr) 29761: : memory_allocator_(std::move(allocator)) {} 29761: 29761: Cache(const Cache&) = delete; 29761: Cache& operator=(const Cache&) = delete; 29761: 29761: 29761: virtual ~Cache() {} 29761: 29761: static const char* Type() { return "Cache"; } 29761: # 206 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& value, 29761: std::shared_ptr* result); 29761: 29761: public: 29761: 29761: virtual const char* Name() const = 0; 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual Status Insert( 29761: const Slice& key, ObjectPtr obj, const CacheItemHelper* helper, 29761: size_t charge, Handle** handle = nullptr, 29761: Priority priority = Priority::LOW, const Slice& compressed = Slice(), 29761: CompressionType type = CompressionType::kNoCompression) = 0; 29761: # 277 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 29761: const CacheItemHelper* helper, size_t charge, 29761: bool allow_uncharged) = 0; 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual Handle* Lookup(const Slice& key, 29761: const CacheItemHelper* helper = nullptr, 29761: CreateContext* create_context = nullptr, 29761: Priority priority = Priority::LOW, 29761: Statistics* stats = nullptr) = 0; 29761: 29761: 29761: inline Handle* BasicLookup(const Slice& key, Statistics* stats) { 29761: return Lookup(key, nullptr, nullptr, Priority::LOW, stats); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: virtual bool Ref(Handle* handle) = 0; 29761: # 319 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual bool Release(Handle* handle, bool erase_if_last_ref = false) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual ObjectPtr Value(Handle* handle) = 0; 29761: 29761: 29761: 29761: 29761: virtual void Erase(const Slice& key) = 0; 29761: 29761: 29761: 29761: 29761: virtual uint64_t NewId() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void SetCapacity(size_t capacity) = 0; 29761: 29761: 29761: 29761: virtual void SetStrictCapacityLimit(bool strict_capacity_limit) = 0; 29761: 29761: 29761: 29761: virtual bool HasStrictCapacityLimit() const = 0; 29761: 29761: 29761: virtual size_t GetCapacity() const = 0; 29761: 29761: 29761: virtual size_t GetUsage() const = 0; 29761: 29761: 29761: 29761: 29761: virtual size_t GetOccupancyCount() const { return 29761: # 361 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (4294967295U) 29761: # 361 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; } 29761: 29761: 29761: 29761: 29761: virtual size_t GetTableAddressCount() const { return 0; } 29761: 29761: 29761: virtual size_t GetUsage(Handle* handle) const = 0; 29761: 29761: 29761: virtual size_t GetPinnedUsage() const = 0; 29761: 29761: 29761: virtual size_t GetCharge(Handle* handle) const = 0; 29761: 29761: 29761: virtual const CacheItemHelper* GetCacheItemHelper(Handle* handle) const = 0; 29761: 29761: virtual Status GetSecondaryCacheCapacity(size_t& ) const { 29761: return Status::NotSupported(); 29761: } 29761: 29761: virtual Status GetSecondaryCachePinnedUsage(size_t& ) const { 29761: return Status::NotSupported(); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void DisownData() { 29761: 29761: } 29761: 29761: struct ApplyToAllEntriesOptions { 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t average_entries_per_lock = 256; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: virtual void ApplyToAllEntries( 29761: const std::function& callback, 29761: const ApplyToAllEntriesOptions& opts) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void ApplyToHandle( 29761: Cache* cache, Handle* handle, 29761: const std::function& callback) = 0; 29761: 29761: 29761: virtual void EraseUnRefEntries() = 0; 29761: 29761: virtual std::string GetPrintableOptions() const { return ""; } 29761: 29761: 29761: 29761: 29761: 29761: virtual void ReportProblems( 29761: const std::shared_ptr& ) const {} 29761: 29761: MemoryAllocator* memory_allocator() const { return memory_allocator_.get(); } 29761: 29761: 29761: virtual uint32_t GetHashSeed() const { return 0; } 29761: # 450 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual bool Release(Handle* handle, bool , 29761: bool erase_if_last_ref) { 29761: return Release(handle, erase_if_last_ref); 29761: } 29761: 29761: 29761: 29761: 29761: struct AsyncLookupHandle { 29761: 29761: 29761: 29761: Slice key; 29761: const CacheItemHelper* helper = nullptr; 29761: CreateContext* create_context = nullptr; 29761: Priority priority = Priority::LOW; 29761: Statistics* stats = nullptr; 29761: 29761: AsyncLookupHandle() {} 29761: AsyncLookupHandle(const Slice& _key, const CacheItemHelper* _helper, 29761: CreateContext* _create_context, 29761: Priority _priority = Priority::LOW, 29761: Statistics* _stats = nullptr) 29761: : key(_key), 29761: helper(_helper), 29761: create_context(_create_context), 29761: priority(_priority), 29761: stats(_stats) {} 29761: 29761: 29761: ~AsyncLookupHandle() { 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: (static_cast ( 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: !IsPending() 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: "!IsPending()" 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 480 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: ; } 29761: 29761: 29761: AsyncLookupHandle(const AsyncLookupHandle&) = delete; 29761: AsyncLookupHandle operator=(const AsyncLookupHandle&) = delete; 29761: AsyncLookupHandle(AsyncLookupHandle&&) = delete; 29761: AsyncLookupHandle operator=(AsyncLookupHandle&&) = delete; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool IsReady(); 29761: 29761: 29761: bool IsPending(); 29761: 29761: 29761: 29761: 29761: 29761: Handle* Result(); 29761: 29761: 29761: Handle* result_handle = nullptr; 29761: SecondaryCacheResultHandle* pending_handle = nullptr; 29761: SecondaryCache* pending_cache = nullptr; 29761: bool found_dummy_entry = false; 29761: bool kept_in_sec_cache = false; 29761: }; 29761: # 531 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/advanced_cache.h" 29761: virtual void StartAsyncLookup(AsyncLookupHandle& async_handle); 29761: 29761: 29761: 29761: Handle* Wait(AsyncLookupHandle& async_handle); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void WaitAll(AsyncLookupHandle* , size_t ); 29761: 29761: 29761: 29761: 29761: 29761: using EvictionCallback = 29761: std::function; 29761: 29761: 29761: 29761: void SetEvictionCallback(EvictionCallback&& fn); 29761: 29761: protected: 29761: std::shared_ptr memory_allocator_; 29761: EvictionCallback eviction_callback_; 29761: }; 29761: 29761: 29761: 29761: class CacheWrapper : public Cache { 29761: public: 29761: explicit CacheWrapper(std::shared_ptr target) 29761: : target_(std::move(target)) {} 29761: 29761: 29761: 29761: 29761: Status Insert( 29761: const Slice& key, ObjectPtr value, const CacheItemHelper* helper, 29761: size_t charge, Handle** handle = nullptr, 29761: Priority priority = Priority::LOW, 29761: const Slice& compressed_value = Slice(), 29761: CompressionType type = CompressionType::kNoCompression) override { 29761: return target_->Insert(key, value, helper, charge, handle, priority, 29761: compressed_value, type); 29761: } 29761: 29761: Handle* CreateStandalone(const Slice& key, ObjectPtr obj, 29761: const CacheItemHelper* helper, size_t charge, 29761: bool allow_uncharged) override { 29761: return target_->CreateStandalone(key, obj, helper, charge, allow_uncharged); 29761: } 29761: 29761: Handle* Lookup(const Slice& key, const CacheItemHelper* helper, 29761: CreateContext* create_context, 29761: Priority priority = Priority::LOW, 29761: Statistics* stats = nullptr) override { 29761: return target_->Lookup(key, helper, create_context, priority, stats); 29761: } 29761: 29761: bool Ref(Handle* handle) override { return target_->Ref(handle); } 29761: 29761: using Cache::Release; 29761: bool Release(Handle* handle, bool erase_if_last_ref = false) override { 29761: return target_->Release(handle, erase_if_last_ref); 29761: } 29761: 29761: ObjectPtr Value(Handle* handle) override { return target_->Value(handle); } 29761: 29761: void Erase(const Slice& key) override { target_->Erase(key); } 29761: uint64_t NewId() override { return target_->NewId(); } 29761: 29761: void SetCapacity(size_t capacity) override { target_->SetCapacity(capacity); } 29761: 29761: void SetStrictCapacityLimit(bool strict_capacity_limit) override { 29761: target_->SetStrictCapacityLimit(strict_capacity_limit); 29761: } 29761: 29761: bool HasStrictCapacityLimit() const override { 29761: return target_->HasStrictCapacityLimit(); 29761: } 29761: 29761: size_t GetOccupancyCount() const override { 29761: return target_->GetOccupancyCount(); 29761: } 29761: 29761: size_t GetTableAddressCount() const override { 29761: return target_->GetTableAddressCount(); 29761: } 29761: 29761: size_t GetCapacity() const override { return target_->GetCapacity(); } 29761: 29761: size_t GetUsage() const override { return target_->GetUsage(); } 29761: 29761: size_t GetUsage(Handle* handle) const override { 29761: return target_->GetUsage(handle); 29761: } 29761: 29761: size_t GetPinnedUsage() const override { return target_->GetPinnedUsage(); } 29761: 29761: size_t GetCharge(Handle* handle) const override { 29761: return target_->GetCharge(handle); 29761: } 29761: 29761: const CacheItemHelper* GetCacheItemHelper(Handle* handle) const override { 29761: return target_->GetCacheItemHelper(handle); 29761: } 29761: 29761: void ApplyToAllEntries( 29761: const std::function& callback, 29761: const ApplyToAllEntriesOptions& opts) override { 29761: target_->ApplyToAllEntries(callback, opts); 29761: } 29761: 29761: virtual void ApplyToHandle( 29761: Cache* cache, Handle* handle, 29761: const std::function& callback) 29761: override { 29761: auto cache_ptr = static_cast(cache); 29761: target_->ApplyToHandle(cache_ptr->target_.get(), handle, callback); 29761: } 29761: 29761: void EraseUnRefEntries() override { target_->EraseUnRefEntries(); } 29761: 29761: void StartAsyncLookup(AsyncLookupHandle& async_handle) override { 29761: target_->StartAsyncLookup(async_handle); 29761: } 29761: 29761: void WaitAll(AsyncLookupHandle* async_handles, size_t count) override { 29761: target_->WaitAll(async_handles, count); 29761: } 29761: 29761: uint32_t GetHashSeed() const override { return target_->GetHashSeed(); } 29761: 29761: void ReportProblems(const std::shared_ptr& info_log) const override { 29761: target_->ReportProblems(info_log); 29761: } 29761: 29761: const std::shared_ptr& GetTarget() { return target_; } 29761: 29761: protected: 29761: std::shared_ptr target_; 29761: }; 29761: 29761: 29761: 29761: extern const Cache::CacheItemHelper kNoopCacheItemHelper; 29761: 29761: } 29761: # 25 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class ReadCallback { 29761: public: 29761: explicit ReadCallback(SequenceNumber last_visible_seq) 29761: : max_visible_seq_(last_visible_seq) {} 29761: ReadCallback(SequenceNumber last_visible_seq, SequenceNumber min_uncommitted) 29761: : max_visible_seq_(last_visible_seq), min_uncommitted_(min_uncommitted) {} 29761: 29761: virtual ~ReadCallback() {} 29761: 29761: 29761: 29761: virtual bool IsVisibleFullCheck(SequenceNumber seq) = 0; 29761: 29761: inline bool IsVisible(SequenceNumber seq) { 29761: 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: (static_cast ( 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: min_uncommitted_ > 0 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: "min_uncommitted_ > 0" 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: ; 29761: 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: (static_cast ( 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: min_uncommitted_ >= kMinUnCommittedSeq 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: "min_uncommitted_ >= kMinUnCommittedSeq" 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: ; 29761: if (seq < min_uncommitted_) { 29761: 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: (static_cast ( 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: seq <= max_visible_seq_ 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: "seq <= max_visible_seq_" 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: ; 29761: return true; 29761: } else if (max_visible_seq_ < seq) { 29761: 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: (static_cast ( 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: seq != 0 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: "seq != 0" 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 33 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: ; 29761: return false; 29761: } else { 29761: 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: (static_cast ( 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: seq != 0 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: "seq != 0" 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/db/read_callback.h" 29761: ; 29761: return IsVisibleFullCheck(seq); 29761: } 29761: } 29761: 29761: inline SequenceNumber max_visible_seq() { return max_visible_seq_; } 29761: 29761: 29761: virtual void Refresh(SequenceNumber seq) { max_visible_seq_ = seq; } 29761: 29761: protected: 29761: 29761: 29761: SequenceNumber max_visible_seq_ = kMaxSequenceNumber; 29761: 29761: const SequenceNumber min_uncommitted_ = kMinUnCommittedSeq; 29761: }; 29761: 29761: } 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: class BlobFetcher; 29761: class Comparator; 29761: class Logger; 29761: class MergeContext; 29761: class MergeOperator; 29761: class PinnableWideColumns; 29761: class PinnedIteratorsManager; 29761: class Statistics; 29761: class SystemClock; 29761: struct ParsedInternalKey; 29761: 29761: 29761: 29761: 29761: struct GetContextStats { 29761: uint64_t num_cache_hit = 0; 29761: uint64_t num_cache_index_hit = 0; 29761: uint64_t num_cache_data_hit = 0; 29761: uint64_t num_cache_filter_hit = 0; 29761: uint64_t num_cache_compression_dict_hit = 0; 29761: uint64_t num_cache_index_miss = 0; 29761: uint64_t num_cache_filter_miss = 0; 29761: uint64_t num_cache_data_miss = 0; 29761: uint64_t num_cache_compression_dict_miss = 0; 29761: uint64_t num_cache_bytes_read = 0; 29761: uint64_t num_cache_miss = 0; 29761: uint64_t num_cache_add = 0; 29761: uint64_t num_cache_add_redundant = 0; 29761: uint64_t num_cache_bytes_write = 0; 29761: uint64_t num_cache_index_add = 0; 29761: uint64_t num_cache_index_add_redundant = 0; 29761: uint64_t num_cache_index_bytes_insert = 0; 29761: uint64_t num_cache_data_add = 0; 29761: uint64_t num_cache_data_add_redundant = 0; 29761: uint64_t num_cache_data_bytes_insert = 0; 29761: uint64_t num_cache_filter_add = 0; 29761: uint64_t num_cache_filter_add_redundant = 0; 29761: uint64_t num_cache_filter_bytes_insert = 0; 29761: uint64_t num_cache_compression_dict_add = 0; 29761: uint64_t num_cache_compression_dict_add_redundant = 0; 29761: uint64_t num_cache_compression_dict_bytes_insert = 0; 29761: 29761: uint64_t num_filter_read = 0; 29761: uint64_t num_index_read = 0; 29761: uint64_t num_sst_read = 0; 29761: }; 29761: # 67 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: class GetContext { 29761: public: 29761: 29761: 29761: enum GetState { 29761: kNotFound, 29761: kFound, 29761: kDeleted, 29761: kCorrupt, 29761: kMerge, 29761: kUnexpectedBlobIndex, 29761: kMergeOperatorFailed, 29761: }; 29761: GetContextStats get_context_stats_; 29761: # 102 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 29761: Logger* logger, Statistics* statistics, GetState init_state, 29761: const Slice& user_key, PinnableSlice* value, 29761: PinnableWideColumns* columns, bool* value_found, 29761: MergeContext* merge_context, bool do_merge, 29761: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 29761: SequenceNumber* seq = nullptr, 29761: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 29761: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29761: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 29761: GetContext(const Comparator* ucmp, const MergeOperator* merge_operator, 29761: Logger* logger, Statistics* statistics, GetState init_state, 29761: const Slice& user_key, PinnableSlice* value, 29761: PinnableWideColumns* columns, std::string* timestamp, 29761: bool* value_found, MergeContext* merge_context, bool do_merge, 29761: SequenceNumber* max_covering_tombstone_seq, SystemClock* clock, 29761: SequenceNumber* seq = nullptr, 29761: PinnedIteratorsManager* _pinned_iters_mgr = nullptr, 29761: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29761: uint64_t tracing_get_id = 0, BlobFetcher* blob_fetcher = nullptr); 29761: 29761: GetContext() = delete; 29761: 29761: 29761: 29761: void MarkKeyMayExist(); 29761: # 137 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: bool SaveValue(const ParsedInternalKey& parsed_key, const Slice& value, 29761: bool* matched, Status* read_status, 29761: Cleanable* value_pinner = nullptr); 29761: 29761: 29761: 29761: void SaveValue(const Slice& value, SequenceNumber seq); 29761: 29761: GetState State() const { return state_; } 29761: 29761: SequenceNumber* max_covering_tombstone_seq() { 29761: return max_covering_tombstone_seq_; 29761: } 29761: 29761: bool NeedTimestamp() { return timestamp_ != nullptr; } 29761: 29761: inline size_t TimestampSize() { return ucmp_->timestamp_size(); } 29761: 29761: void SetTimestampFromRangeTombstone(const Slice& timestamp) { 29761: 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29761: (static_cast ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: timestamp_ 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: "timestamp_" 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 156 "/build/reproducible-path/rocksdb-9.10.0/table/get_context.h" 29761: ; 29761: timestamp_->assign(timestamp.data(), timestamp.size()); 29761: ts_from_rangetombstone_ = true; 29761: } 29761: 29761: PinnedIteratorsManager* pinned_iters_mgr() { return pinned_iters_mgr_; } 29761: 29761: 29761: 29761: 29761: void SetReplayLog(std::string* replay_log) { replay_log_ = replay_log; } 29761: 29761: 29761: bool NeedToReadSequence() const { return (seq_ != nullptr); } 29761: 29761: bool sample() const { return sample_; } 29761: 29761: bool CheckCallback(SequenceNumber seq) { 29761: if (callback_) { 29761: return callback_->IsVisible(seq); 29761: } 29761: return true; 29761: } 29761: 29761: void ReportCounters(); 29761: 29761: bool has_callback() const { return callback_ != nullptr; } 29761: 29761: const Slice& ukey_to_get_blob_value() const { 29761: if (!ukey_with_ts_found_.empty()) { 29761: return ukey_with_ts_found_; 29761: } else { 29761: return user_key_; 29761: } 29761: } 29761: 29761: uint64_t get_tracing_get_id() const { return tracing_get_id_; } 29761: 29761: void push_operand(const Slice& value, Cleanable* value_pinner); 29761: 29761: private: 29761: 29761: 29761: void PostprocessMerge(const Status& merge_status); 29761: 29761: 29761: 29761: void MergeWithNoBaseValue(); 29761: void MergeWithPlainBaseValue(const Slice& value); 29761: void MergeWithWideColumnBaseValue(const Slice& entity); 29761: 29761: bool GetBlobValue(const Slice& user_key, const Slice& blob_index, 29761: PinnableSlice* blob_value, Status* read_status); 29761: 29761: void appendToReplayLog(ValueType type, Slice value, Slice ts); 29761: 29761: const Comparator* ucmp_; 29761: const MergeOperator* merge_operator_; 29761: 29761: Logger* logger_; 29761: Statistics* statistics_; 29761: 29761: GetState state_; 29761: Slice user_key_; 29761: 29761: 29761: 29761: PinnableSlice ukey_with_ts_found_; 29761: PinnableSlice* pinnable_val_; 29761: PinnableWideColumns* columns_; 29761: std::string* timestamp_; 29761: bool ts_from_rangetombstone_{false}; 29761: bool* value_found_; 29761: MergeContext* merge_context_; 29761: SequenceNumber* max_covering_tombstone_seq_; 29761: SystemClock* clock_; 29761: 29761: 29761: SequenceNumber* seq_; 29761: std::string* replay_log_; 29761: 29761: PinnedIteratorsManager* pinned_iters_mgr_; 29761: ReadCallback* callback_; 29761: bool sample_; 29761: 29761: 29761: 29761: bool do_merge_; 29761: bool* is_blob_index_; 29761: 29761: 29761: const uint64_t tracing_get_id_; 29761: BlobFetcher* blob_fetcher_; 29761: }; 29761: 29761: 29761: 29761: 29761: Status replayGetContextLog(const Slice& replay_log, const Slice& user_key, 29761: GetContext* get_context, 29761: Cleanable* value_pinner = nullptr, 29761: SequenceNumber seq_no = kMaxSequenceNumber); 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/lookup_key.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/db/lookup_key.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: class LookupKey { 29761: public: 29761: 29761: 29761: LookupKey(const Slice& _user_key, SequenceNumber sequence, 29761: const Slice* ts = nullptr); 29761: 29761: ~LookupKey(); 29761: 29761: 29761: Slice memtable_key() const { 29761: return Slice(start_, static_cast(end_ - start_)); 29761: } 29761: 29761: 29761: Slice internal_key() const { 29761: return Slice(kstart_, static_cast(end_ - kstart_)); 29761: } 29761: 29761: 29761: 29761: 29761: Slice user_key() const { 29761: return Slice(kstart_, static_cast(end_ - kstart_ - 8)); 29761: } 29761: 29761: private: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const char* start_; 29761: const char* kstart_; 29761: const char* end_; 29761: char space_[200]; 29761: 29761: 29761: LookupKey(const LookupKey&); 29761: void operator=(const LookupKey&); 29761: }; 29761: 29761: inline LookupKey::~LookupKey() { 29761: if (start_ != space_) delete[] start_; 29761: } 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/async_file_reader.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/single_thread_executor.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 2 29761: 29761: namespace rocksdb { 29761: class GetContext; 29761: class PinnableWideColumns; 29761: 29761: struct KeyContext { 29761: const Slice* key; 29761: LookupKey* lkey; 29761: Slice ukey_with_ts; 29761: Slice ukey_without_ts; 29761: Slice ikey; 29761: ColumnFamilyHandle* column_family; 29761: Status* s; 29761: MergeContext merge_context; 29761: SequenceNumber max_covering_tombstone_seq; 29761: bool key_exists; 29761: bool is_blob_index; 29761: void* cb_arg; 29761: PinnableSlice* value; 29761: PinnableWideColumns* columns; 29761: std::string* timestamp; 29761: GetContext* get_context; 29761: 29761: KeyContext(ColumnFamilyHandle* col_family, const Slice& user_key, 29761: PinnableSlice* val, PinnableWideColumns* cols, std::string* ts, 29761: Status* stat) 29761: : key(&user_key), 29761: lkey(nullptr), 29761: column_family(col_family), 29761: s(stat), 29761: max_covering_tombstone_seq(0), 29761: key_exists(false), 29761: is_blob_index(false), 29761: cb_arg(nullptr), 29761: value(val), 29761: columns(cols), 29761: timestamp(ts), 29761: get_context(nullptr) {} 29761: }; 29761: # 97 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: class MultiGetContext { 29761: public: 29761: 29761: 29761: 29761: 29761: static const int MAX_BATCH_SIZE = 32; 29761: 29761: 29761: 29761: using Mask = uint64_t; 29761: static_assert(MAX_BATCH_SIZE < sizeof(Mask) * 8); 29761: 29761: MultiGetContext(autovector* sorted_keys, 29761: size_t begin, size_t num_keys, SequenceNumber snapshot, 29761: const ReadOptions& read_opts, FileSystem* fs, 29761: Statistics* stats) 29761: : num_keys_(num_keys), 29761: value_mask_(0), 29761: value_size_(0), 29761: lookup_key_ptr_(reinterpret_cast(lookup_key_stack_buf)) 29761: 29761: 29761: 29761: 29761: 29761: { 29761: (void)fs; 29761: (void)stats; 29761: 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: num_keys <= MAX_BATCH_SIZE 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "num_keys <= MAX_BATCH_SIZE" 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 126 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: if (num_keys > MAX_LOOKUP_KEYS_ON_STACK) { 29761: lookup_key_heap_buf.reset(new char[sizeof(LookupKey) * num_keys]); 29761: lookup_key_ptr_ = reinterpret_cast(lookup_key_heap_buf.get()); 29761: } 29761: 29761: for (size_t iter = 0; iter != num_keys_; ++iter) { 29761: 29761: sorted_keys_[iter] = (*sorted_keys)[begin + iter]; 29761: sorted_keys_[iter]->lkey = new (&lookup_key_ptr_[iter]) 29761: LookupKey(*sorted_keys_[iter]->key, snapshot, read_opts.timestamp); 29761: sorted_keys_[iter]->ukey_with_ts = sorted_keys_[iter]->lkey->user_key(); 29761: sorted_keys_[iter]->ukey_without_ts = StripTimestampFromUserKey( 29761: sorted_keys_[iter]->lkey->user_key(), 29761: read_opts.timestamp == nullptr ? 0 : read_opts.timestamp->size()); 29761: sorted_keys_[iter]->ikey = sorted_keys_[iter]->lkey->internal_key(); 29761: sorted_keys_[iter]->timestamp = (*sorted_keys)[begin + iter]->timestamp; 29761: sorted_keys_[iter]->get_context = 29761: (*sorted_keys)[begin + iter]->get_context; 29761: } 29761: } 29761: 29761: ~MultiGetContext() { 29761: for (size_t i = 0; i < num_keys_; ++i) { 29761: lookup_key_ptr_[i].~LookupKey(); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: private: 29761: static const int MAX_LOOKUP_KEYS_ON_STACK = 16; 29761: alignas( 29761: alignof(LookupKey)) char lookup_key_stack_buf[sizeof(LookupKey) * 29761: MAX_LOOKUP_KEYS_ON_STACK]; 29761: std::array sorted_keys_; 29761: size_t num_keys_; 29761: Mask value_mask_; 29761: uint64_t value_size_; 29761: std::unique_ptr lookup_key_heap_buf; 29761: LookupKey* lookup_key_ptr_; 29761: 29761: 29761: 29761: 29761: 29761: public: 29761: # 186 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: class Range { 29761: public: 29761: 29761: 29761: 29761: class Iterator { 29761: public: 29761: 29761: using self_type = Iterator; 29761: using value_type = KeyContext; 29761: using reference = KeyContext&; 29761: using pointer = KeyContext*; 29761: using difference_type = int; 29761: using iterator_category = std::forward_iterator_tag; 29761: 29761: Iterator(const Range* range, size_t idx) 29761: : range_(range), ctx_(range->ctx_), index_(idx) { 29761: while (index_ < range_->end_ && 29761: (Mask{1} << index_) & 29761: (range_->ctx_->value_mask_ | range_->skip_mask_ | 29761: range_->invalid_mask_)) 29761: index_++; 29761: } 29761: 29761: Iterator(const Iterator&) = default; 29761: 29761: Iterator(const Iterator& other, const Range* range) 29761: : range_(range), ctx_(other.ctx_), index_(other.index_) { 29761: 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: range->ctx_ == other.ctx_ 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "range->ctx_ == other.ctx_" 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: } 29761: Iterator& operator=(const Iterator&) = default; 29761: 29761: Iterator& operator++() { 29761: while (++index_ < range_->end_ && 29761: (Mask{1} << index_) & 29761: (range_->ctx_->value_mask_ | range_->skip_mask_ | 29761: range_->invalid_mask_)) 29761: ; 29761: return *this; 29761: } 29761: 29761: bool operator==(Iterator other) const { 29761: 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: range_->ctx_ == other.range_->ctx_ 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "range_->ctx_ == other.range_->ctx_" 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: return index_ == other.index_; 29761: } 29761: 29761: bool operator!=(Iterator other) const { 29761: 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: range_->ctx_ == other.range_->ctx_ 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "range_->ctx_ == other.range_->ctx_" 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: return index_ != other.index_; 29761: } 29761: 29761: KeyContext& operator*() { 29761: 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: index_ < range_->end_ && index_ >= range_->start_ 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "index_ < range_->end_ && index_ >= range_->start_" 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 238 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: return *(ctx_->sorted_keys_[index_]); 29761: } 29761: 29761: KeyContext* operator->() { 29761: 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: index_ < range_->end_ && index_ >= range_->start_ 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "index_ < range_->end_ && index_ >= range_->start_" 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: return ctx_->sorted_keys_[index_]; 29761: } 29761: 29761: size_t index() { return index_; } 29761: 29761: private: 29761: friend Range; 29761: const Range* range_; 29761: const MultiGetContext* ctx_; 29761: size_t index_; 29761: }; 29761: 29761: Range(const Range& mget_range, const Iterator& first, 29761: const Iterator& last) { 29761: ctx_ = mget_range.ctx_; 29761: if (first == last) { 29761: 29761: 29761: start_ = mget_range.start_; 29761: end_ = start_; 29761: } else { 29761: start_ = first.index_; 29761: end_ = last.index_; 29761: } 29761: skip_mask_ = mget_range.skip_mask_; 29761: invalid_mask_ = mget_range.invalid_mask_; 29761: 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: start_ < 64 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "start_ < 64" 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 270 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: end_ < 64 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "end_ < 64" 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: } 29761: 29761: Range() = default; 29761: 29761: Iterator begin() const { return Iterator(this, start_); } 29761: 29761: Iterator end() const { return Iterator(this, end_); } 29761: 29761: bool empty() const { return RemainingMask() == 0; } 29761: 29761: void SkipIndex(size_t index) { skip_mask_ |= Mask{1} << index; } 29761: 29761: void SkipKey(const Iterator& iter) { SkipIndex(iter.index_); } 29761: 29761: bool IsKeySkipped(const Iterator& iter) const { 29761: return skip_mask_ & (Mask{1} << iter.index_); 29761: } 29761: 29761: 29761: 29761: void MarkKeyDone(Iterator& iter) { 29761: ctx_->value_mask_ |= (Mask{1} << iter.index_); 29761: } 29761: 29761: bool CheckKeyDone(Iterator& iter) const { 29761: return ctx_->value_mask_ & (Mask{1} << iter.index_); 29761: } 29761: 29761: uint64_t KeysLeft() const { return BitsSetToOne(RemainingMask()); } 29761: 29761: void AddSkipsFrom(const Range& other) { 29761: 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ctx_ == other.ctx_ 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "ctx_ == other.ctx_" 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: skip_mask_ |= other.skip_mask_; 29761: } 29761: 29761: uint64_t GetValueSize() { return ctx_->value_size_; } 29761: 29761: void AddValueSize(uint64_t value_size) { ctx_->value_size_ += value_size; } 29761: 29761: MultiGetContext* context() const { return ctx_; } 29761: 29761: Range Suffix(const Range& other) const { 29761: size_t other_last = other.FindLastRemaining(); 29761: size_t my_last = FindLastRemaining(); 29761: 29761: if (my_last > other_last) { 29761: return Range(*this, Iterator(this, other_last), 29761: Iterator(this, my_last)); 29761: } else { 29761: return Range(*this, begin(), begin()); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: Range& operator+=(const Range& rhs) { 29761: 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: rhs.start_ >= end_ 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "rhs.start_ >= end_" 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 330 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: 29761: if (end_ < rhs.start_) { 29761: invalid_mask_ |= RangeMask(end_, rhs.start_); 29761: skip_mask_ |= RangeMask(end_, rhs.start_); 29761: } 29761: start_ = std::min(start_, rhs.start_); 29761: end_ = std::max(end_, rhs.end_); 29761: skip_mask_ |= rhs.skip_mask_ & RangeMask(rhs.start_, rhs.end_); 29761: invalid_mask_ |= (rhs.invalid_mask_ | rhs.skip_mask_) & 29761: RangeMask(rhs.start_, rhs.end_); 29761: 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: start_ < 64 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "start_ < 64" 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 341 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: end_ < 64 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "end_ < 64" 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 342 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: return *this; 29761: } 29761: 29761: 29761: 29761: 29761: Range& operator-=(const Range& rhs) { 29761: 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: start_ <= rhs.start_ && end_ >= rhs.end_ 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "start_ <= rhs.start_ && end_ >= rhs.end_" 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 350 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: skip_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 29761: RangeMask(rhs.start_, rhs.end_); 29761: invalid_mask_ |= (~rhs.skip_mask_ | rhs.invalid_mask_) & 29761: RangeMask(rhs.start_, rhs.end_); 29761: return *this; 29761: } 29761: 29761: 29761: Range operator~() { 29761: Range res = *this; 29761: res.skip_mask_ = ~skip_mask_ & RangeMask(start_, end_); 29761: return res; 29761: } 29761: 29761: private: 29761: friend MultiGetContext; 29761: MultiGetContext* ctx_; 29761: size_t start_; 29761: size_t end_; 29761: Mask skip_mask_; 29761: Mask invalid_mask_; 29761: 29761: Range(MultiGetContext* ctx, size_t num_keys) 29761: : ctx_(ctx), 29761: start_(0), 29761: end_(num_keys), 29761: skip_mask_(0), 29761: invalid_mask_(0) { 29761: 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: (static_cast ( 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: num_keys < 64 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: "num_keys < 64" 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 379 "/build/reproducible-path/rocksdb-9.10.0/table/multiget_context.h" 29761: ; 29761: } 29761: 29761: static Mask RangeMask(size_t start, size_t end) { 29761: return (((Mask{1} << (end - start)) - 1) << start); 29761: } 29761: 29761: Mask RemainingMask() const { 29761: return (((Mask{1} << end_) - 1) & ~((Mask{1} << start_) - 1) & 29761: ~(ctx_->value_mask_ | skip_mask_)); 29761: } 29761: 29761: size_t FindLastRemaining() const { 29761: Mask mask = RemainingMask(); 29761: size_t index = (mask >>= start_) ? start_ : 0; 29761: while (mask >>= 1) { 29761: index++; 29761: } 29761: return index; 29761: } 29761: }; 29761: 29761: 29761: Range GetMultiGetRange() { return Range(this, num_keys_); } 29761: }; 29761: 29761: } 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Iterator; 29761: struct ParsedInternalKey; 29761: class Slice; 29761: class Arena; 29761: struct ReadOptions; 29761: struct TableProperties; 29761: class GetContext; 29761: class MultiGetContext; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class TableReader { 29761: public: 29761: virtual ~TableReader() {} 29761: # 57 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: virtual InternalIterator* NewIterator( 29761: const ReadOptions& read_options, const SliceTransform* prefix_extractor, 29761: Arena* arena, bool skip_filters, TableReaderCaller caller, 29761: size_t compaction_readahead_size = 0, 29761: bool allow_unprepared_value = false) = 0; 29761: 29761: 29761: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29761: const ReadOptions& ) { 29761: return nullptr; 29761: } 29761: 29761: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29761: SequenceNumber , const Slice* ) { 29761: return nullptr; 29761: } 29761: # 85 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: virtual uint64_t ApproximateOffsetOf(const ReadOptions& read_options, 29761: const Slice& key, 29761: TableReaderCaller caller) = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual uint64_t ApproximateSize(const ReadOptions& read_options, 29761: const Slice& start, const Slice& end, 29761: TableReaderCaller caller) = 0; 29761: 29761: struct Anchor { 29761: Anchor(const Slice& _user_key, size_t _range_size) 29761: : user_key(_user_key.ToStringView()), range_size(_range_size) {} 29761: std::string user_key; 29761: size_t range_size; 29761: }; 29761: 29761: 29761: 29761: virtual Status ApproximateKeyAnchors(const ReadOptions& , 29761: std::vector& ) { 29761: return Status::NotSupported("ApproximateKeyAnchors() not supported."); 29761: } 29761: 29761: 29761: 29761: virtual void SetupForCompaction() = 0; 29761: 29761: virtual std::shared_ptr GetTableProperties() const = 0; 29761: 29761: 29761: virtual void Prepare(const Slice& ) {} 29761: 29761: 29761: virtual size_t ApproximateMemoryUsage() const = 0; 29761: # 135 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: virtual Status Get(const ReadOptions& readOptions, const Slice& key, 29761: GetContext* get_context, 29761: const SliceTransform* prefix_extractor, 29761: bool skip_filters = false) = 0; 29761: 29761: 29761: 29761: 29761: virtual Status MultiGetFilter(const ReadOptions& , 29761: const SliceTransform* , 29761: MultiGetContext::Range* ) { 29761: return Status::NotSupported(); 29761: } 29761: 29761: virtual void MultiGet(const ReadOptions& readOptions, 29761: const MultiGetContext::Range* mget_range, 29761: const SliceTransform* prefix_extractor, 29761: bool skip_filters = false) { 29761: for (auto iter = mget_range->begin(); iter != mget_range->end(); ++iter) { 29761: *iter->s = Get(readOptions, iter->ikey, iter->get_context, 29761: prefix_extractor, skip_filters); 29761: } 29761: } 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/table_reader.h" 29761: virtual Status Prefetch(const ReadOptions& , 29761: const Slice* begin = nullptr, 29761: const Slice* end = nullptr) { 29761: (void)begin; 29761: (void)end; 29761: 29761: 29761: return Status::OK(); 29761: } 29761: 29761: 29761: virtual Status DumpTable(WritableFile* ) { 29761: return Status::NotSupported("DumpTable() not supported"); 29761: } 29761: 29761: 29761: virtual Status VerifyChecksum(const ReadOptions& , 29761: TableReaderCaller ) { 29761: return Status::NotSupported("VerifyChecksum() not supported"); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void MarkObsolete(uint32_t ) { 29761: 29761: } 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 29761: Status GetUniqueIdFromTableProperties(const TableProperties &props, 29761: std::string *out_id); 29761: # 47 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/unique_id.h" 29761: Status GetExtendedUniqueIdFromTableProperties(const TableProperties &props, 29761: std::string *out_id); 29761: 29761: 29761: 29761: 29761: std::string UniqueIdToHumanString(const std::string &id); 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: 29761: using UniqueId64x2 = std::array; 29761: 29761: 29761: constexpr UniqueId64x2 kNullUniqueId64x2 = {}; 29761: 29761: 29761: 29761: using UniqueId64x3 = std::array; 29761: 29761: 29761: constexpr UniqueId64x3 kNullUniqueId64x3 = {}; 29761: 29761: 29761: struct UniqueIdPtr { 29761: uint64_t *ptr = nullptr; 29761: bool extended = false; 29761: 29761: UniqueIdPtr(UniqueId64x2 *id) { 29761: ptr = (*id).data(); 29761: extended = false; 29761: } 29761: UniqueIdPtr(UniqueId64x3 *id) { 29761: ptr = (*id).data(); 29761: extended = true; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: Status GetSstInternalUniqueId(const std::string &db_id, 29761: const std::string &db_session_id, 29761: uint64_t file_number, UniqueIdPtr out, 29761: bool force = false); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void InternalUniqueIdToExternal(UniqueIdPtr in_out); 29761: 29761: 29761: 29761: void ExternalUniqueIdToInternal(UniqueIdPtr in_out); 29761: 29761: 29761: std::string EncodeUniqueIdBytes(UniqueIdPtr in); 29761: 29761: 29761: Status DecodeUniqueIdBytes(const std::string &unique_id, UniqueIdPtr out); 29761: 29761: 29761: 29761: std::string InternalUniqueIdToHumanString(UniqueIdPtr in); 29761: # 85 "/build/reproducible-path/rocksdb-9.10.0/table/unique_id_impl.h" 29761: std::string EncodeSessionId(uint64_t upper, uint64_t lower); 29761: 29761: 29761: 29761: 29761: Status DecodeSessionId(const std::string &db_session_id, uint64_t *upper, 29761: uint64_t *lower); 29761: 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: enum Tag : uint32_t { 29761: kComparator = 1, 29761: kLogNumber = 2, 29761: kNextFileNumber = 3, 29761: kLastSequence = 4, 29761: kCompactCursor = 5, 29761: kDeletedFile = 6, 29761: kNewFile = 7, 29761: 29761: kPrevLogNumber = 9, 29761: kMinLogNumberToKeep = 10, 29761: 29761: 29761: kNewFile2 = 100, 29761: kNewFile3 = 102, 29761: kNewFile4 = 103, 29761: kColumnFamily = 200, 29761: kColumnFamilyAdd = 201, 29761: kColumnFamilyDrop = 202, 29761: kMaxColumnFamily = 203, 29761: 29761: kInAtomicGroup = 300, 29761: 29761: kBlobFileAddition = 400, 29761: kBlobFileGarbage, 29761: 29761: 29761: kTagSafeIgnoreMask = 1 << 13, 29761: 29761: 29761: kDbId, 29761: kBlobFileAddition_DEPRECATED, 29761: kBlobFileGarbage_DEPRECATED, 29761: kWalAddition, 29761: kWalDeletion, 29761: kFullHistoryTsLow, 29761: kWalAddition2, 29761: kWalDeletion2, 29761: kPersistUserDefinedTimestamps, 29761: }; 29761: 29761: enum NewFileCustomTag : uint32_t { 29761: kTerminate = 1, 29761: kNeedCompaction = 2, 29761: 29761: 29761: 29761: kMinLogNumberToKeepHack = 3, 29761: kOldestBlobFileNumber = 4, 29761: kOldestAncesterTime = 5, 29761: kFileCreationTime = 6, 29761: kFileChecksum = 7, 29761: kFileChecksumFuncName = 8, 29761: kTemperature = 9, 29761: kMinTimestamp = 10, 29761: kMaxTimestamp = 11, 29761: kUniqueId = 12, 29761: kEpochNumber = 13, 29761: kCompensatedRangeDeletionSize = 14, 29761: kTailSize = 15, 29761: kUserDefinedTimestampsPersisted = 16, 29761: 29761: 29761: 29761: kCustomTagNonSafeIgnoreMask = 1 << 6, 29761: 29761: 29761: kPathId, 29761: }; 29761: 29761: class VersionSet; 29761: 29761: constexpr uint64_t kFileNumberMask = 0x3FFFFFFFFFFFFFFF; 29761: constexpr uint64_t kUnknownOldestAncesterTime = 0; 29761: constexpr uint64_t kUnknownNewestKeyTime = 0; 29761: constexpr uint64_t kUnknownFileCreationTime = 0; 29761: constexpr uint64_t kUnknownEpochNumber = 0; 29761: 29761: 29761: constexpr uint64_t kReservedEpochNumberForFileIngestedBehind = 1; 29761: 29761: uint64_t PackFileNumberAndPathId(uint64_t number, uint64_t path_id); 29761: 29761: 29761: 29761: 29761: 29761: 29761: struct FileDescriptor { 29761: 29761: TableReader* table_reader; 29761: uint64_t packed_number_and_path_id; 29761: uint64_t file_size; 29761: SequenceNumber smallest_seqno; 29761: SequenceNumber largest_seqno; 29761: 29761: FileDescriptor() : FileDescriptor(0, 0, 0) {} 29761: 29761: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size) 29761: : FileDescriptor(number, path_id, _file_size, kMaxSequenceNumber, 0) {} 29761: 29761: FileDescriptor(uint64_t number, uint32_t path_id, uint64_t _file_size, 29761: SequenceNumber _smallest_seqno, SequenceNumber _largest_seqno) 29761: : table_reader(nullptr), 29761: packed_number_and_path_id(PackFileNumberAndPathId(number, path_id)), 29761: file_size(_file_size), 29761: smallest_seqno(_smallest_seqno), 29761: largest_seqno(_largest_seqno) {} 29761: 29761: FileDescriptor(const FileDescriptor& fd) { *this = fd; } 29761: 29761: FileDescriptor& operator=(const FileDescriptor& fd) { 29761: table_reader = fd.table_reader; 29761: packed_number_and_path_id = fd.packed_number_and_path_id; 29761: file_size = fd.file_size; 29761: smallest_seqno = fd.smallest_seqno; 29761: largest_seqno = fd.largest_seqno; 29761: return *this; 29761: } 29761: 29761: uint64_t GetNumber() const { 29761: return packed_number_and_path_id & kFileNumberMask; 29761: } 29761: uint32_t GetPathId() const { 29761: return static_cast(packed_number_and_path_id / 29761: (kFileNumberMask + 1)); 29761: } 29761: uint64_t GetFileSize() const { return file_size; } 29761: }; 29761: 29761: struct FileSampledStats { 29761: FileSampledStats() : num_reads_sampled(0) {} 29761: FileSampledStats(const FileSampledStats& other) { *this = other; } 29761: FileSampledStats& operator=(const FileSampledStats& other) { 29761: num_reads_sampled = other.num_reads_sampled.load(); 29761: return *this; 29761: } 29761: 29761: 29761: mutable std::atomic num_reads_sampled; 29761: }; 29761: 29761: struct FileMetaData { 29761: FileDescriptor fd; 29761: InternalKey smallest; 29761: InternalKey largest; 29761: 29761: 29761: Cache::Handle* table_reader_handle = nullptr; 29761: 29761: FileSampledStats stats; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint64_t compensated_file_size = 0; 29761: 29761: 29761: uint64_t num_entries = 29761: 0; 29761: 29761: uint64_t num_deletions = 0; 29761: uint64_t raw_key_size = 0; 29761: uint64_t raw_value_size = 0; 29761: uint64_t num_range_deletions = 0; 29761: 29761: 29761: 29761: uint64_t compensated_range_deletion_size = 0; 29761: 29761: int refs = 0; 29761: 29761: bool being_compacted = false; 29761: bool init_stats_from_file = false; 29761: 29761: 29761: bool marked_for_compaction = false; 29761: 29761: Temperature temperature = Temperature::kUnknown; 29761: 29761: 29761: 29761: uint64_t oldest_blob_file_number = kInvalidBlobFileNumber; 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: uint64_t oldest_ancester_time = kUnknownOldestAncesterTime; 29761: 29761: 29761: uint64_t file_creation_time = kUnknownFileCreationTime; 29761: 29761: 29761: 29761: 29761: 29761: uint64_t epoch_number = kUnknownEpochNumber; 29761: 29761: 29761: std::string file_checksum = kUnknownFileChecksum; 29761: 29761: 29761: std::string file_checksum_func_name = kUnknownFileChecksumFuncName; 29761: 29761: 29761: UniqueId64x2 unique_id{}; 29761: 29761: 29761: 29761: uint64_t tail_size = 0; 29761: 29761: 29761: 29761: 29761: bool user_defined_timestamps_persisted = true; 29761: 29761: FileMetaData() = default; 29761: 29761: FileMetaData(uint64_t file, uint32_t file_path_id, uint64_t file_size, 29761: const InternalKey& smallest_key, const InternalKey& largest_key, 29761: const SequenceNumber& smallest_seq, 29761: const SequenceNumber& largest_seq, bool marked_for_compact, 29761: Temperature _temperature, uint64_t oldest_blob_file, 29761: uint64_t _oldest_ancester_time, uint64_t _file_creation_time, 29761: uint64_t _epoch_number, const std::string& _file_checksum, 29761: const std::string& _file_checksum_func_name, 29761: UniqueId64x2 _unique_id, 29761: const uint64_t _compensated_range_deletion_size, 29761: uint64_t _tail_size, bool _user_defined_timestamps_persisted) 29761: : fd(file, file_path_id, file_size, smallest_seq, largest_seq), 29761: smallest(smallest_key), 29761: largest(largest_key), 29761: compensated_range_deletion_size(_compensated_range_deletion_size), 29761: marked_for_compaction(marked_for_compact), 29761: temperature(_temperature), 29761: oldest_blob_file_number(oldest_blob_file), 29761: oldest_ancester_time(_oldest_ancester_time), 29761: file_creation_time(_file_creation_time), 29761: epoch_number(_epoch_number), 29761: file_checksum(_file_checksum), 29761: file_checksum_func_name(_file_checksum_func_name), 29761: unique_id(std::move(_unique_id)), 29761: tail_size(_tail_size), 29761: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) { 29761: rocksdb::SyncPoint::GetInstance()->Process("FileMetaData::FileMetaData", this); 29761: } 29761: 29761: 29761: 29761: Status UpdateBoundaries(const Slice& key, const Slice& value, 29761: SequenceNumber seqno, ValueType value_type); 29761: 29761: 29761: 29761: void UpdateBoundariesForRange(const InternalKey& start, 29761: const InternalKey& end, SequenceNumber seqno, 29761: const InternalKeyComparator& icmp) { 29761: if (smallest.size() == 0 || icmp.Compare(start, smallest) < 0) { 29761: smallest = start; 29761: } 29761: if (largest.size() == 0 || icmp.Compare(largest, end) < 0) { 29761: largest = end; 29761: } 29761: 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: icmp.Compare(smallest, largest) <= 0 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "icmp.Compare(smallest, largest) <= 0" 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 309 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: fd.smallest_seqno = std::min(fd.smallest_seqno, seqno); 29761: fd.largest_seqno = std::max(fd.largest_seqno, seqno); 29761: } 29761: 29761: 29761: 29761: 29761: uint64_t TryGetOldestAncesterTime() { 29761: if (oldest_ancester_time != kUnknownOldestAncesterTime) { 29761: return oldest_ancester_time; 29761: } else if (fd.table_reader != nullptr && 29761: fd.table_reader->GetTableProperties() != nullptr) { 29761: return fd.table_reader->GetTableProperties()->creation_time; 29761: } 29761: return kUnknownOldestAncesterTime; 29761: } 29761: 29761: uint64_t TryGetFileCreationTime() { 29761: if (file_creation_time != kUnknownFileCreationTime) { 29761: return file_creation_time; 29761: } else if (fd.table_reader != nullptr && 29761: fd.table_reader->GetTableProperties() != nullptr) { 29761: return fd.table_reader->GetTableProperties()->file_creation_time; 29761: } 29761: return kUnknownFileCreationTime; 29761: } 29761: 29761: 29761: 29761: uint64_t TryGetNewestKeyTime(FileMetaData* prev_file = nullptr) { 29761: if (fd.table_reader != nullptr && 29761: fd.table_reader->GetTableProperties() != nullptr) { 29761: uint64_t newest_key_time = 29761: fd.table_reader->GetTableProperties()->newest_key_time; 29761: if (newest_key_time != kUnknownNewestKeyTime) { 29761: return newest_key_time; 29761: } 29761: } 29761: if (prev_file != nullptr) { 29761: uint64_t prev_oldest_ancestor_time = 29761: prev_file->TryGetOldestAncesterTime(); 29761: if (prev_oldest_ancestor_time != kUnknownOldestAncesterTime) { 29761: return prev_oldest_ancestor_time; 29761: } 29761: } 29761: return kUnknownNewestKeyTime; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: size_t usage = 0; 29761: 29761: usage += malloc_usable_size(const_cast(this)); 29761: 29761: 29761: 29761: usage += smallest.size() + largest.size() + file_checksum.size() + 29761: file_checksum_func_name.size(); 29761: return usage; 29761: } 29761: 29761: 29761: 29761: bool FileIsStandAloneRangeTombstone() const { 29761: bool res = num_range_deletions == 1 && num_entries == num_range_deletions; 29761: 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !res || fd.smallest_seqno == fd.largest_seqno 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!res || fd.smallest_seqno == fd.largest_seqno" 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 380 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: return res; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: struct FdWithKeyRange { 29761: FileDescriptor fd; 29761: FileMetaData* file_metadata; 29761: Slice smallest_key; 29761: Slice largest_key; 29761: 29761: FdWithKeyRange() 29761: : fd(), file_metadata(nullptr), smallest_key(), largest_key() {} 29761: 29761: FdWithKeyRange(FileDescriptor _fd, Slice _smallest_key, Slice _largest_key, 29761: FileMetaData* _file_metadata) 29761: : fd(_fd), 29761: file_metadata(_file_metadata), 29761: smallest_key(_smallest_key), 29761: largest_key(_largest_key) {} 29761: }; 29761: 29761: 29761: 29761: struct LevelFilesBrief { 29761: size_t num_files; 29761: FdWithKeyRange* files; 29761: LevelFilesBrief() { 29761: num_files = 0; 29761: files = nullptr; 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class VersionEdit { 29761: public: 29761: void Clear(); 29761: 29761: void SetDBId(const std::string& db_id) { 29761: has_db_id_ = true; 29761: db_id_ = db_id; 29761: } 29761: bool HasDbId() const { return has_db_id_; } 29761: const std::string& GetDbId() const { return db_id_; } 29761: 29761: void SetComparatorName(const Slice& name) { 29761: has_comparator_ = true; 29761: comparator_ = name.ToString(); 29761: } 29761: bool HasComparatorName() const { return has_comparator_; } 29761: const std::string& GetComparatorName() const { return comparator_; } 29761: 29761: void SetPersistUserDefinedTimestamps(bool persist_user_defined_timestamps) { 29761: has_persist_user_defined_timestamps_ = true; 29761: persist_user_defined_timestamps_ = persist_user_defined_timestamps; 29761: } 29761: bool HasPersistUserDefinedTimestamps() const { 29761: return has_persist_user_defined_timestamps_; 29761: } 29761: bool GetPersistUserDefinedTimestamps() const { 29761: return persist_user_defined_timestamps_; 29761: } 29761: 29761: void SetLogNumber(uint64_t num) { 29761: has_log_number_ = true; 29761: log_number_ = num; 29761: } 29761: bool HasLogNumber() const { return has_log_number_; } 29761: uint64_t GetLogNumber() const { return log_number_; } 29761: 29761: void SetPrevLogNumber(uint64_t num) { 29761: has_prev_log_number_ = true; 29761: prev_log_number_ = num; 29761: } 29761: bool HasPrevLogNumber() const { return has_prev_log_number_; } 29761: uint64_t GetPrevLogNumber() const { return prev_log_number_; } 29761: 29761: void SetNextFile(uint64_t num) { 29761: has_next_file_number_ = true; 29761: next_file_number_ = num; 29761: } 29761: bool HasNextFile() const { return has_next_file_number_; } 29761: uint64_t GetNextFile() const { return next_file_number_; } 29761: 29761: void SetMaxColumnFamily(uint32_t max_column_family) { 29761: has_max_column_family_ = true; 29761: max_column_family_ = max_column_family; 29761: } 29761: bool HasMaxColumnFamily() const { return has_max_column_family_; } 29761: uint32_t GetMaxColumnFamily() const { return max_column_family_; } 29761: 29761: void SetMinLogNumberToKeep(uint64_t num) { 29761: has_min_log_number_to_keep_ = true; 29761: min_log_number_to_keep_ = num; 29761: } 29761: bool HasMinLogNumberToKeep() const { return has_min_log_number_to_keep_; } 29761: uint64_t GetMinLogNumberToKeep() const { return min_log_number_to_keep_; } 29761: 29761: void SetLastSequence(SequenceNumber seq) { 29761: has_last_sequence_ = true; 29761: last_sequence_ = seq; 29761: } 29761: bool HasLastSequence() const { return has_last_sequence_; } 29761: SequenceNumber GetLastSequence() const { return last_sequence_; } 29761: 29761: 29761: void DeleteFile(int level, uint64_t file) { 29761: deleted_files_.emplace(level, file); 29761: } 29761: 29761: 29761: using DeletedFiles = std::set>; 29761: const DeletedFiles& GetDeletedFiles() const { return deleted_files_; } 29761: 29761: 29761: 29761: 29761: 29761: void AddFile(int level, uint64_t file, uint32_t file_path_id, 29761: uint64_t file_size, const InternalKey& smallest, 29761: const InternalKey& largest, const SequenceNumber& smallest_seqno, 29761: const SequenceNumber& largest_seqno, bool marked_for_compaction, 29761: Temperature temperature, uint64_t oldest_blob_file_number, 29761: uint64_t oldest_ancester_time, uint64_t file_creation_time, 29761: uint64_t epoch_number, const std::string& file_checksum, 29761: const std::string& file_checksum_func_name, 29761: const UniqueId64x2& unique_id, 29761: const uint64_t compensated_range_deletion_size, 29761: uint64_t tail_size, bool user_defined_timestamps_persisted) { 29761: 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: smallest_seqno <= largest_seqno 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "smallest_seqno <= largest_seqno" 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 515 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: new_files_.emplace_back( 29761: level, 29761: FileMetaData(file, file_path_id, file_size, smallest, largest, 29761: smallest_seqno, largest_seqno, marked_for_compaction, 29761: temperature, oldest_blob_file_number, oldest_ancester_time, 29761: file_creation_time, epoch_number, file_checksum, 29761: file_checksum_func_name, unique_id, 29761: compensated_range_deletion_size, tail_size, 29761: user_defined_timestamps_persisted)); 29761: files_to_quarantine_.push_back(file); 29761: if (!HasLastSequence() || largest_seqno > GetLastSequence()) { 29761: SetLastSequence(largest_seqno); 29761: } 29761: } 29761: 29761: void AddFile(int level, const FileMetaData& f) { 29761: 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: f.fd.smallest_seqno <= f.fd.largest_seqno 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "f.fd.smallest_seqno <= f.fd.largest_seqno" 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 532 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: new_files_.emplace_back(level, f); 29761: files_to_quarantine_.push_back(f.fd.GetNumber()); 29761: if (!HasLastSequence() || f.fd.largest_seqno > GetLastSequence()) { 29761: SetLastSequence(f.fd.largest_seqno); 29761: } 29761: } 29761: 29761: 29761: using NewFiles = std::vector>; 29761: const NewFiles& GetNewFiles() const { return new_files_; } 29761: 29761: NewFiles& GetMutableNewFiles() { return new_files_; } 29761: 29761: 29761: using CompactCursors = std::vector>; 29761: const CompactCursors& GetCompactCursors() const { return compact_cursors_; } 29761: void AddCompactCursor(int level, const InternalKey& cursor) { 29761: compact_cursors_.push_back(std::make_pair(level, cursor)); 29761: } 29761: void SetCompactCursors( 29761: const std::vector& compact_cursors_by_level) { 29761: compact_cursors_.clear(); 29761: compact_cursors_.reserve(compact_cursors_by_level.size()); 29761: for (int i = 0; i < (int)compact_cursors_by_level.size(); i++) { 29761: if (compact_cursors_by_level[i].Valid()) { 29761: compact_cursors_.push_back( 29761: std::make_pair(i, compact_cursors_by_level[i])); 29761: } 29761: } 29761: } 29761: 29761: 29761: void AddBlobFile(uint64_t blob_file_number, uint64_t total_blob_count, 29761: uint64_t total_blob_bytes, std::string checksum_method, 29761: std::string checksum_value) { 29761: blob_file_additions_.emplace_back( 29761: blob_file_number, total_blob_count, total_blob_bytes, 29761: std::move(checksum_method), std::move(checksum_value)); 29761: files_to_quarantine_.push_back(blob_file_number); 29761: } 29761: 29761: void AddBlobFile(BlobFileAddition blob_file_addition) { 29761: blob_file_additions_.emplace_back(std::move(blob_file_addition)); 29761: files_to_quarantine_.push_back( 29761: blob_file_additions_.back().GetBlobFileNumber()); 29761: } 29761: 29761: 29761: using BlobFileAdditions = std::vector; 29761: const BlobFileAdditions& GetBlobFileAdditions() const { 29761: return blob_file_additions_; 29761: } 29761: 29761: void SetBlobFileAdditions(BlobFileAdditions blob_file_additions) { 29761: 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: blob_file_additions_.empty() 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "blob_file_additions_.empty()" 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 587 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: blob_file_additions_ = std::move(blob_file_additions); 29761: std::for_each( 29761: blob_file_additions_.begin(), blob_file_additions_.end(), 29761: [&](const BlobFileAddition& blob_file) { 29761: files_to_quarantine_.push_back(blob_file.GetBlobFileNumber()); 29761: }); 29761: } 29761: 29761: 29761: 29761: void AddBlobFileGarbage(uint64_t blob_file_number, 29761: uint64_t garbage_blob_count, 29761: uint64_t garbage_blob_bytes) { 29761: blob_file_garbages_.emplace_back(blob_file_number, garbage_blob_count, 29761: garbage_blob_bytes); 29761: } 29761: 29761: void AddBlobFileGarbage(BlobFileGarbage blob_file_garbage) { 29761: blob_file_garbages_.emplace_back(std::move(blob_file_garbage)); 29761: } 29761: 29761: 29761: using BlobFileGarbages = std::vector; 29761: const BlobFileGarbages& GetBlobFileGarbages() const { 29761: return blob_file_garbages_; 29761: } 29761: 29761: void SetBlobFileGarbages(BlobFileGarbages blob_file_garbages) { 29761: 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: blob_file_garbages_.empty() 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "blob_file_garbages_.empty()" 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 616 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: blob_file_garbages_ = std::move(blob_file_garbages); 29761: } 29761: 29761: 29761: 29761: void AddWal(WalNumber number, WalMetadata metadata = WalMetadata()) { 29761: 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: NumEntries() == wal_additions_.size() 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "NumEntries() == wal_additions_.size()" 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 623 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: wal_additions_.emplace_back(number, std::move(metadata)); 29761: } 29761: 29761: 29761: const WalAdditions& GetWalAdditions() const { return wal_additions_; } 29761: 29761: bool IsWalAddition() const { return !wal_additions_.empty(); } 29761: 29761: 29761: 29761: void DeleteWalsBefore(WalNumber number) { 29761: 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: (NumEntries() == 1) == !wal_deletion_.IsEmpty() 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "(NumEntries() == 1) == !wal_deletion_.IsEmpty()" 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 635 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: wal_deletion_ = WalDeletion(number); 29761: } 29761: 29761: const WalDeletion& GetWalDeletion() const { return wal_deletion_; } 29761: 29761: bool IsWalDeletion() const { return !wal_deletion_.IsEmpty(); } 29761: 29761: bool IsWalManipulation() const { 29761: size_t entries = NumEntries(); 29761: return (entries > 0) && ((entries == wal_additions_.size()) || 29761: (entries == !wal_deletion_.IsEmpty())); 29761: } 29761: 29761: 29761: size_t NumEntries() const { 29761: return new_files_.size() + deleted_files_.size() + 29761: blob_file_additions_.size() + blob_file_garbages_.size() + 29761: wal_additions_.size() + !wal_deletion_.IsEmpty(); 29761: } 29761: 29761: void SetColumnFamily(uint32_t column_family_id) { 29761: column_family_ = column_family_id; 29761: } 29761: uint32_t GetColumnFamily() const { return column_family_; } 29761: 29761: const std::string& GetColumnFamilyName() const { return column_family_name_; } 29761: 29761: 29761: void AddColumnFamily(const std::string& name) { 29761: 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !is_column_family_drop_ 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!is_column_family_drop_" 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 665 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !is_column_family_add_ 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!is_column_family_add_" 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 666 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: NumEntries() == 0 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "NumEntries() == 0" 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 667 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: is_column_family_add_ = true; 29761: column_family_name_ = name; 29761: } 29761: 29761: 29761: void DropColumnFamily() { 29761: 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !is_column_family_drop_ 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!is_column_family_drop_" 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 674 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !is_column_family_add_ 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!is_column_family_add_" 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 675 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: NumEntries() == 0 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "NumEntries() == 0" 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 676 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: is_column_family_drop_ = true; 29761: } 29761: 29761: bool IsColumnFamilyManipulation() const { 29761: return is_column_family_add_ || is_column_family_drop_; 29761: } 29761: 29761: bool IsColumnFamilyAdd() const { return is_column_family_add_; } 29761: 29761: bool IsColumnFamilyDrop() const { return is_column_family_drop_; } 29761: 29761: void MarkAtomicGroup(uint32_t remaining_entries) { 29761: is_in_atomic_group_ = true; 29761: remaining_entries_ = remaining_entries; 29761: } 29761: bool IsInAtomicGroup() const { return is_in_atomic_group_; } 29761: void SetRemainingEntries(uint32_t remaining_entries) { 29761: remaining_entries_ = remaining_entries; 29761: } 29761: uint32_t GetRemainingEntries() const { return remaining_entries_; } 29761: 29761: bool HasFullHistoryTsLow() const { return !full_history_ts_low_.empty(); } 29761: const std::string& GetFullHistoryTsLow() const { 29761: 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: HasFullHistoryTsLow() 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "HasFullHistoryTsLow()" 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 700 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: return full_history_ts_low_; 29761: } 29761: void SetFullHistoryTsLow(std::string full_history_ts_low) { 29761: 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: (static_cast ( 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: !full_history_ts_low.empty() 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: "!full_history_ts_low.empty()" 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 704 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: ; 29761: full_history_ts_low_ = std::move(full_history_ts_low); 29761: } 29761: # 718 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: bool EncodeTo(std::string* dst, 29761: std::optional ts_sz = std::nullopt) const; 29761: Status DecodeFrom(const Slice& src); 29761: 29761: const autovector* GetFilesToQuarantineIfCommitFail() const { 29761: return &files_to_quarantine_; 29761: } 29761: 29761: std::string DebugString(bool hex_key = false) const; 29761: std::string DebugJSON(int edit_num, bool hex_key = false) const; 29761: 29761: private: 29761: bool GetLevel(Slice* input, int* level, const char** msg); 29761: 29761: const char* DecodeNewFile4From(Slice* input); 29761: 29761: 29761: 29761: 29761: void EncodeFileBoundaries(std::string* dst, const FileMetaData& meta, 29761: size_t ts_sz) const; 29761: 29761: int max_level_ = 0; 29761: std::string db_id_; 29761: std::string comparator_; 29761: uint64_t log_number_ = 0; 29761: uint64_t prev_log_number_ = 0; 29761: uint64_t next_file_number_ = 0; 29761: uint32_t max_column_family_ = 0; 29761: 29761: uint64_t min_log_number_to_keep_ = 0; 29761: SequenceNumber last_sequence_ = 0; 29761: bool has_db_id_ = false; 29761: bool has_comparator_ = false; 29761: bool has_log_number_ = false; 29761: bool has_prev_log_number_ = false; 29761: bool has_next_file_number_ = false; 29761: bool has_max_column_family_ = false; 29761: bool has_min_log_number_to_keep_ = false; 29761: bool has_last_sequence_ = false; 29761: bool has_persist_user_defined_timestamps_ = false; 29761: 29761: 29761: CompactCursors compact_cursors_; 29761: 29761: DeletedFiles deleted_files_; 29761: NewFiles new_files_; 29761: 29761: BlobFileAdditions blob_file_additions_; 29761: BlobFileGarbages blob_file_garbages_; 29761: 29761: WalAdditions wal_additions_; 29761: WalDeletion wal_deletion_; 29761: 29761: 29761: 29761: uint32_t column_family_ = 0; 29761: 29761: 29761: 29761: bool is_column_family_drop_ = false; 29761: bool is_column_family_add_ = false; 29761: std::string column_family_name_; 29761: 29761: bool is_in_atomic_group_ = false; 29761: uint32_t remaining_entries_ = 0; 29761: 29761: std::string full_history_ts_low_; 29761: bool persist_user_defined_timestamps_ = true; 29761: # 796 "/build/reproducible-path/rocksdb-9.10.0/db/version_edit.h" 29761: autovector files_to_quarantine_; 29761: }; 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/cinttypes" 1 3 29761: # 32 "/usr/include/c++/14/cinttypes" 3 29761: 29761: # 33 "/usr/include/c++/14/cinttypes" 3 29761: # 46 "/usr/include/c++/14/cinttypes" 3 29761: # 1 "/usr/include/inttypes.h" 1 3 4 29761: # 327 "/usr/include/inttypes.h" 3 4 29761: 29761: # 327 "/usr/include/inttypes.h" 3 4 29761: extern "C" { 29761: # 341 "/usr/include/inttypes.h" 3 4 29761: typedef struct 29761: { 29761: __extension__ long long int quot; 29761: __extension__ long long int rem; 29761: } imaxdiv_t; 29761: 29761: 29761: 29761: 29761: 29761: extern intmax_t imaxabs (intmax_t __n) noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) 29761: noexcept (true) __attribute__ ((__const__)); 29761: 29761: 29761: extern intmax_t strtoimax (const char *__restrict __nptr, 29761: char **__restrict __endptr, int __base) noexcept (true); 29761: 29761: 29761: extern uintmax_t strtoumax (const char *__restrict __nptr, 29761: char ** __restrict __endptr, int __base) noexcept (true); 29761: 29761: 29761: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, 29761: wchar_t **__restrict __endptr, int __base) 29761: noexcept (true); 29761: 29761: 29761: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, 29761: wchar_t ** __restrict __endptr, int __base) 29761: noexcept (true); 29761: 29761: 29761: 29761: 29761: 29761: extern intmax_t strtoimax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoimax") 29761: 29761: ; 29761: extern uintmax_t strtoumax (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_strtoumax") 29761: 29761: ; 29761: extern intmax_t wcstoimax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoimax") 29761: 29761: 29761: ; 29761: extern uintmax_t wcstoumax (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true) __asm__ ("" "__isoc23_wcstoumax") 29761: 29761: 29761: ; 29761: # 415 "/usr/include/inttypes.h" 3 4 29761: } 29761: # 47 "/usr/include/c++/14/cinttypes" 2 3 29761: # 55 "/usr/include/c++/14/cinttypes" 3 29761: namespace std 29761: { 29761: 29761: using ::imaxdiv_t; 29761: 29761: 29761: using ::imaxabs; 29761: using ::imaxdiv; 29761: 29761: 29761: 29761: 29761: 29761: using ::strtoimax; 29761: using ::strtoumax; 29761: 29761: 29761: using ::wcstoimax; 29761: using ::wcstoumax; 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 2 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: namespace rocksdb { 29761: 29761: constexpr uint64_t kUnknownTimeBeforeAll = 0; 29761: constexpr SequenceNumber kUnknownSeqnoBeforeAll = 0; 29761: 29761: 29761: 29761: constexpr uint64_t kMaxSeqnoTimePairsPerSST = 100; 29761: # 38 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: constexpr uint64_t kMaxSeqnoTimePairsPerCF = 100; 29761: 29761: constexpr uint64_t kMaxSeqnoToTimeEntries = kMaxSeqnoTimePairsPerCF * 10; 29761: # 68 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: class SeqnoToTimeMapping { 29761: public: 29761: 29761: struct SeqnoTimePair { 29761: SequenceNumber seqno = 0; 29761: uint64_t time = 0; 29761: 29761: SeqnoTimePair() = default; 29761: SeqnoTimePair(SequenceNumber _seqno, uint64_t _time) 29761: : seqno(_seqno), time(_time) {} 29761: 29761: 29761: void Encode(std::string& dest) const; 29761: 29761: 29761: Status Decode(Slice& input); 29761: 29761: 29761: SeqnoTimePair ComputeDelta(const SeqnoTimePair& base) const { 29761: return {seqno - base.seqno, time - base.time}; 29761: } 29761: 29761: 29761: void ApplyDelta(const SeqnoTimePair& delta_or_base) { 29761: seqno += delta_or_base.seqno; 29761: time += delta_or_base.time; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: bool Merge(const SeqnoTimePair& other); 29761: 29761: 29761: bool operator<(const SeqnoTimePair& other) const { 29761: return std::tie(seqno, time) < std::tie(other.seqno, other.time); 29761: } 29761: 29761: bool operator==(const SeqnoTimePair& other) const { 29761: return std::tie(seqno, time) == std::tie(other.seqno, other.time); 29761: } 29761: 29761: static bool SeqnoLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 29761: return a.seqno < b.seqno; 29761: } 29761: 29761: static bool TimeLess(const SeqnoTimePair& a, const SeqnoTimePair& b) { 29761: return a.time < b.time; 29761: } 29761: }; 29761: 29761: 29761: SeqnoToTimeMapping() {} 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: SeqnoToTimeMapping& SetMaxTimeSpan(uint64_t max_time_span); 29761: 29761: 29761: 29761: 29761: 29761: SeqnoToTimeMapping& SetCapacity(uint64_t capacity); 29761: 29761: 29761: 29761: 29761: 29761: bool PrePopulate(SequenceNumber from_seqno, SequenceNumber to_seqno, 29761: uint64_t from_time, uint64_t to_time); 29761: 29761: 29761: 29761: 29761: 29761: 29761: bool Append(SequenceNumber seqno, uint64_t time); 29761: 29761: 29761: 29761: void Clear() { 29761: pairs_.clear(); 29761: enforced_ = true; 29761: } 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: SeqnoToTimeMapping& Enforce(uint64_t now = 0); 29761: 29761: 29761: 29761: 29761: void AddUnenforced(SequenceNumber seqno, uint64_t time); 29761: 29761: 29761: 29761: 29761: Status DecodeFrom(const std::string& pairs_str); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void CopyFromSeqnoRange(const SeqnoToTimeMapping& src, 29761: SequenceNumber from_seqno, 29761: SequenceNumber to_seqno = kMaxSequenceNumber); 29761: void CopyFrom(const SeqnoToTimeMapping& src) { 29761: CopyFromSeqnoRange(src, kUnknownSeqnoBeforeAll, kMaxSequenceNumber); 29761: } 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: uint64_t GetProximalTimeBeforeSeqno(SequenceNumber seqno) const; 29761: # 214 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: SequenceNumber GetProximalSeqnoBeforeTime(uint64_t time) const; 29761: 29761: 29761: 29761: 29761: void GetCurrentTieringCutoffSeqnos( 29761: uint64_t current_time, uint64_t preserve_internal_time_seconds, 29761: uint64_t preclude_last_level_data_seconds, 29761: SequenceNumber* preserve_time_min_seqno, 29761: SequenceNumber* preclude_last_level_min_seqno) const; 29761: 29761: 29761: 29761: 29761: void EncodeTo(std::string& dest) const; 29761: 29761: 29761: size_t Size() const { return pairs_.size(); } 29761: 29761: uint64_t GetCapacity() const { return capacity_; } 29761: 29761: 29761: bool Empty() const { return pairs_.empty(); } 29761: 29761: 29761: 29761: std::string ToHumanString() const; 29761: 29761: 29761: const SeqnoTimePair& TEST_GetLastEntry() const { return pairs_.back(); } 29761: const std::deque& TEST_GetInternalMapping() const { 29761: return pairs_; 29761: } 29761: bool TEST_IsEnforced() const { return enforced_; } 29761: 29761: 29761: private: 29761: uint64_t max_time_span_ = 29761: # 251 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 3 4 29761: (18446744073709551615ULL) 29761: # 251 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: ; 29761: uint64_t capacity_ = 29761: # 252 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 3 4 29761: (18446744073709551615ULL) 29761: # 252 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: ; 29761: 29761: std::deque pairs_; 29761: # 264 "/build/reproducible-path/rocksdb-9.10.0/db/seqno_to_time_mapping.h" 29761: bool enforced_ = true; 29761: 29761: void EnforceMaxTimeSpan(uint64_t now = 0); 29761: void EnforceCapacity(bool strict); 29761: void SortAndMerge(); 29761: 29761: using pair_const_iterator = 29761: std::deque::const_iterator; 29761: pair_const_iterator FindGreaterTime(uint64_t time) const; 29761: pair_const_iterator FindGreaterSeqno(SequenceNumber seqno) const; 29761: pair_const_iterator FindGreaterEqSeqno(SequenceNumber seqno) const; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: Slice PackValueAndWriteTime(const Slice& value, uint64_t unix_write_time, 29761: std::string* buf); 29761: 29761: 29761: 29761: Slice PackValueAndSeqno(const Slice& value, SequenceNumber seqno, 29761: std::string* buf); 29761: 29761: 29761: uint64_t ParsePackedValueForWriteTime(const Slice& value); 29761: 29761: 29761: 29761: std::tuple ParsePackedValueWithWriteTime(const Slice& value); 29761: 29761: 29761: SequenceNumber ParsePackedValueForSeqno(const Slice& value); 29761: 29761: 29761: 29761: std::tuple ParsePackedValueWithSeqno(const Slice& value); 29761: 29761: 29761: 29761: Slice ParsePackedValueForValue(const Slice& value); 29761: 29761: } 29761: # 20 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: namespace rocksdb { 29761: 29761: 29761: class InternalTblPropColl { 29761: public: 29761: virtual ~InternalTblPropColl() {} 29761: virtual Status Finish(UserCollectedProperties* properties) = 0; 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: 29761: virtual Status InternalAdd(const Slice& key, const Slice& value, 29761: uint64_t file_size) = 0; 29761: 29761: virtual void BlockAdd(uint64_t block_uncomp_bytes, 29761: uint64_t block_compressed_bytes_fast, 29761: uint64_t block_compressed_bytes_slow) = 0; 29761: 29761: virtual UserCollectedProperties GetReadableProperties() const = 0; 29761: 29761: virtual bool NeedCompact() const { return false; } 29761: }; 29761: 29761: 29761: class InternalTblPropCollFactory { 29761: public: 29761: virtual ~InternalTblPropCollFactory() {} 29761: 29761: virtual InternalTblPropColl* CreateInternalTblPropColl( 29761: uint32_t column_family_id, int level_at_creation, int num_levels, 29761: SequenceNumber last_level_inclusive_max_seqno_threshold = 29761: kMaxSequenceNumber) = 0; 29761: 29761: 29761: virtual const char* Name() const = 0; 29761: }; 29761: 29761: using InternalTblPropCollFactories = 29761: std::vector>; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class UserKeyTablePropertiesCollector : public InternalTblPropColl { 29761: public: 29761: 29761: explicit UserKeyTablePropertiesCollector(TablePropertiesCollector* collector) 29761: : collector_(collector) {} 29761: 29761: virtual ~UserKeyTablePropertiesCollector() {} 29761: 29761: Status InternalAdd(const Slice& key, const Slice& value, 29761: uint64_t file_size) override; 29761: 29761: void BlockAdd(uint64_t block_uncomp_bytes, 29761: uint64_t block_compressed_bytes_fast, 29761: uint64_t block_compressed_bytes_slow) override; 29761: 29761: Status Finish(UserCollectedProperties* properties) override; 29761: 29761: const char* Name() const override { return collector_->Name(); } 29761: 29761: UserCollectedProperties GetReadableProperties() const override; 29761: 29761: bool NeedCompact() const override { return collector_->NeedCompact(); } 29761: 29761: protected: 29761: std::unique_ptr collector_; 29761: }; 29761: 29761: class UserKeyTablePropertiesCollectorFactory 29761: : public InternalTblPropCollFactory { 29761: public: 29761: explicit UserKeyTablePropertiesCollectorFactory( 29761: std::shared_ptr user_collector_factory) 29761: : user_collector_factory_(user_collector_factory) {} 29761: InternalTblPropColl* CreateInternalTblPropColl( 29761: uint32_t column_family_id, int level_at_creation, int num_levels, 29761: SequenceNumber last_level_inclusive_max_seqno_threshold = 29761: kMaxSequenceNumber) override { 29761: TablePropertiesCollectorFactory::Context context; 29761: context.column_family_id = column_family_id; 29761: context.level_at_creation = level_at_creation; 29761: context.num_levels = num_levels; 29761: context.last_level_inclusive_max_seqno_threshold = 29761: last_level_inclusive_max_seqno_threshold; 29761: TablePropertiesCollector* collector = 29761: user_collector_factory_->CreateTablePropertiesCollector(context); 29761: if (collector) { 29761: return new UserKeyTablePropertiesCollector(collector); 29761: } else { 29761: return nullptr; 29761: } 29761: } 29761: 29761: const char* Name() const override { return user_collector_factory_->Name(); } 29761: 29761: private: 29761: std::shared_ptr user_collector_factory_; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: class TimestampTablePropertiesCollector : public InternalTblPropColl { 29761: public: 29761: explicit TimestampTablePropertiesCollector(const Comparator* cmp) 29761: : cmp_(cmp), 29761: timestamp_min_(kDisableUserTimestamp), 29761: timestamp_max_(kDisableUserTimestamp) {} 29761: 29761: Status InternalAdd(const Slice& key, const Slice& , 29761: uint64_t ) override { 29761: auto user_key = ExtractUserKey(key); 29761: 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: (static_cast ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: cmp_ && cmp_->timestamp_size() > 0 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: "cmp_ && cmp_->timestamp_size() > 0" 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: ; 29761: if (user_key.size() < cmp_->timestamp_size()) { 29761: return Status::Corruption( 29761: "User key size mismatch when comparing to timestamp size."); 29761: } 29761: auto timestamp_in_key = 29761: ExtractTimestampFromUserKey(user_key, cmp_->timestamp_size()); 29761: if (timestamp_max_ == kDisableUserTimestamp || 29761: cmp_->CompareTimestamp(timestamp_in_key, timestamp_max_) > 0) { 29761: timestamp_max_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 29761: } 29761: if (timestamp_min_ == kDisableUserTimestamp || 29761: cmp_->CompareTimestamp(timestamp_min_, timestamp_in_key) > 0) { 29761: timestamp_min_.assign(timestamp_in_key.data(), timestamp_in_key.size()); 29761: } 29761: return Status::OK(); 29761: } 29761: 29761: void BlockAdd(uint64_t , 29761: uint64_t , 29761: uint64_t ) override { 29761: return; 29761: } 29761: 29761: Status Finish(UserCollectedProperties* properties) override { 29761: 29761: 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: (static_cast ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size()) 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: "timestamp_min_.size() == timestamp_max_.size() && (timestamp_min_.empty() || timestamp_max_.size() == cmp_->timestamp_size())" 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: 29761: 29761: # 164 "/build/reproducible-path/rocksdb-9.10.0/db/table_properties_collector.h" 29761: ; 29761: properties->insert({"rocksdb.timestamp_min", timestamp_min_}); 29761: properties->insert({"rocksdb.timestamp_max", timestamp_max_}); 29761: return Status::OK(); 29761: } 29761: 29761: const char* Name() const override { 29761: return "TimestampTablePropertiesCollector"; 29761: } 29761: 29761: UserCollectedProperties GetReadableProperties() const override { 29761: return {{"rocksdb.timestamp_min", Slice(timestamp_min_).ToString(true)}, 29761: {"rocksdb.timestamp_max", Slice(timestamp_max_).ToString(true)}}; 29761: } 29761: 29761: protected: 29761: const Comparator* const cmp_; 29761: std::string timestamp_min_; 29761: std::string timestamp_max_; 29761: }; 29761: 29761: } 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 1 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29761: 29761: # 42 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 1 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: struct OperationInfo { 29761: const ThreadStatus::OperationType type; 29761: const std::string name; 29761: }; 29761: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29761: static OperationInfo global_operation_table[] = { 29761: {ThreadStatus::OP_UNKNOWN, ""}, 29761: {ThreadStatus::OP_COMPACTION, "Compaction"}, 29761: {ThreadStatus::OP_FLUSH, "Flush"}, 29761: {ThreadStatus::OP_DBOPEN, "DBOpen"}, 29761: {ThreadStatus::OP_GET, "Get"}, 29761: {ThreadStatus::OP_MULTIGET, "MultiGet"}, 29761: {ThreadStatus::OP_DBITERATOR, "DBIterator"}, 29761: {ThreadStatus::OP_VERIFY_DB_CHECKSUM, "VerifyDBChecksum"}, 29761: {ThreadStatus::OP_VERIFY_FILE_CHECKSUMS, "VerifyFileChecksums"}, 29761: {ThreadStatus::OP_GETENTITY, "GetEntity"}, 29761: {ThreadStatus::OP_MULTIGETENTITY, "MultiGetEntity"}, 29761: {ThreadStatus::OP_READ_MANIFEST, "ReadManifest"}, 29761: 29761: }; 29761: 29761: struct OperationStageInfo { 29761: const ThreadStatus::OperationStage stage; 29761: const std::string name; 29761: }; 29761: 29761: 29761: 29761: 29761: static OperationStageInfo global_op_stage_table[] = { 29761: {ThreadStatus::STAGE_UNKNOWN, ""}, 29761: {ThreadStatus::STAGE_FLUSH_RUN, "FlushJob::Run"}, 29761: {ThreadStatus::STAGE_FLUSH_WRITE_L0, "FlushJob::WriteLevel0Table"}, 29761: {ThreadStatus::STAGE_COMPACTION_PREPARE, "CompactionJob::Prepare"}, 29761: {ThreadStatus::STAGE_COMPACTION_RUN, "CompactionJob::Run"}, 29761: {ThreadStatus::STAGE_COMPACTION_PROCESS_KV, 29761: "CompactionJob::ProcessKeyValueCompaction"}, 29761: {ThreadStatus::STAGE_COMPACTION_INSTALL, "CompactionJob::Install"}, 29761: {ThreadStatus::STAGE_COMPACTION_SYNC_FILE, 29761: "CompactionJob::FinishCompactionOutputFile"}, 29761: {ThreadStatus::STAGE_PICK_MEMTABLES_TO_FLUSH, 29761: "MemTableList::PickMemtablesToFlush"}, 29761: {ThreadStatus::STAGE_MEMTABLE_ROLLBACK, 29761: "MemTableList::RollbackMemtableFlush"}, 29761: {ThreadStatus::STAGE_MEMTABLE_INSTALL_FLUSH_RESULTS, 29761: "MemTableList::TryInstallMemtableFlushResults"}, 29761: }; 29761: 29761: 29761: struct StateInfo { 29761: const ThreadStatus::StateType type; 29761: const std::string name; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: static StateInfo global_state_table[] = { 29761: {ThreadStatus::STATE_UNKNOWN, ""}, 29761: {ThreadStatus::STATE_MUTEX_WAIT, "Mutex Wait"}, 29761: }; 29761: 29761: struct OperationProperty { 29761: int code; 29761: std::string name; 29761: }; 29761: 29761: static OperationProperty compaction_operation_properties[] = { 29761: {ThreadStatus::COMPACTION_JOB_ID, "JobID"}, 29761: {ThreadStatus::COMPACTION_INPUT_OUTPUT_LEVEL, "InputOutputLevel"}, 29761: {ThreadStatus::COMPACTION_PROP_FLAGS, "Manual/Deletion/Trivial"}, 29761: {ThreadStatus::COMPACTION_TOTAL_INPUT_BYTES, "TotalInputBytes"}, 29761: {ThreadStatus::COMPACTION_BYTES_READ, "BytesRead"}, 29761: {ThreadStatus::COMPACTION_BYTES_WRITTEN, "BytesWritten"}, 29761: }; 29761: 29761: static OperationProperty flush_operation_properties[] = { 29761: {ThreadStatus::FLUSH_JOB_ID, "JobID"}, 29761: {ThreadStatus::FLUSH_BYTES_MEMTABLES, "BytesMemtables"}, 29761: {ThreadStatus::FLUSH_BYTES_WRITTEN, "BytesWritten"}}; 29761: # 123 "/build/reproducible-path/rocksdb-9.10.0/util/thread_operation.h" 29761: } 29761: # 43 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class ColumnFamilyHandle; 29761: 29761: 29761: struct ConstantColumnFamilyInfo { 29761: 29761: public: 29761: ConstantColumnFamilyInfo(const void* _db_key, const std::string& _db_name, 29761: const std::string& _cf_name) 29761: : db_key(_db_key), db_name(_db_name), cf_name(_cf_name) {} 29761: const void* db_key; 29761: const std::string db_name; 29761: const std::string cf_name; 29761: 29761: }; 29761: 29761: 29761: 29761: struct ThreadStatusData { 29761: 29761: explicit ThreadStatusData() { 29761: enable_tracking.store(false); 29761: thread_id.store(0); 29761: thread_type.store(ThreadStatus::USER); 29761: cf_key.store(nullptr); 29761: operation_type.store(ThreadStatus::OP_UNKNOWN); 29761: op_start_time.store(0); 29761: state_type.store(ThreadStatus::STATE_UNKNOWN); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: std::atomic enable_tracking; 29761: 29761: std::atomic thread_id; 29761: std::atomic thread_type; 29761: std::atomic cf_key; 29761: std::atomic operation_type; 29761: std::atomic op_start_time; 29761: std::atomic operation_stage; 29761: std::atomic op_properties[ThreadStatus::kNumOperationProperties]; 29761: std::atomic state_type; 29761: 29761: }; 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29761: class ThreadStatusUpdater { 29761: public: 29761: ThreadStatusUpdater() {} 29761: 29761: 29761: virtual ~ThreadStatusUpdater() {} 29761: 29761: 29761: void UnregisterThread(); 29761: 29761: 29761: 29761: void ResetThreadStatus(); 29761: 29761: 29761: void SetThreadID(uint64_t thread_id); 29761: 29761: 29761: void RegisterThread(ThreadStatus::ThreadType ttype, uint64_t thread_id); 29761: 29761: void SetEnableTracking(bool enable_tracking); 29761: 29761: 29761: 29761: void SetColumnFamilyInfoKey(const void* cf_key); 29761: 29761: 29761: const void* GetColumnFamilyInfoKey(); 29761: 29761: 29761: void SetThreadOperation(const ThreadStatus::OperationType type); 29761: 29761: 29761: ThreadStatus::OperationType GetThreadOperation(); 29761: 29761: 29761: 29761: void SetOperationStartTime(const uint64_t start_time); 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_updater.h" 29761: void SetThreadOperationProperty(int i, uint64_t value); 29761: 29761: 29761: 29761: void IncreaseThreadOperationProperty(int i, uint64_t delta); 29761: 29761: 29761: ThreadStatus::OperationStage SetThreadOperationStage( 29761: const ThreadStatus::OperationStage stage); 29761: 29761: 29761: void ClearThreadOperation(); 29761: 29761: 29761: void ClearThreadOperationProperties(); 29761: 29761: 29761: void SetThreadState(const ThreadStatus::StateType type); 29761: 29761: 29761: void ClearThreadState(); 29761: 29761: 29761: Status GetThreadList(std::vector* thread_list); 29761: 29761: 29761: 29761: 29761: void NewColumnFamilyInfo(const void* db_key, const std::string& db_name, 29761: const void* cf_key, const std::string& cf_name); 29761: 29761: 29761: 29761: 29761: void EraseDatabaseInfo(const void* db_key); 29761: 29761: 29761: 29761: 29761: void EraseColumnFamilyInfo(const void* cf_key); 29761: 29761: 29761: 29761: void TEST_VerifyColumnFamilyInfoMap( 29761: const std::vector& handles, bool check_exist); 29761: 29761: protected: 29761: 29761: 29761: static thread_local ThreadStatusData* thread_status_data_; 29761: 29761: 29761: 29761: ThreadStatusData* GetLocalThreadStatus(); 29761: 29761: 29761: 29761: ThreadStatusData* Get() { return thread_status_data_; } 29761: 29761: 29761: std::mutex thread_list_mutex_; 29761: 29761: 29761: std::unordered_set thread_data_set_; 29761: 29761: 29761: 29761: 29761: 29761: std::unordered_map cf_info_map_; 29761: 29761: 29761: 29761: std::unordered_map> db_key_map_; 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 2 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class ColumnFamilyData; 29761: # 30 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29761: class ThreadStatusUtil { 29761: public: 29761: 29761: static void RegisterThread(const Env* env, 29761: ThreadStatus::ThreadType thread_type); 29761: 29761: 29761: static void UnregisterThread(); 29761: 29761: 29761: 29761: 29761: static void NewColumnFamilyInfo(const DB* db, const ColumnFamilyData* cfd, 29761: const std::string& cf_name, const Env* env); 29761: 29761: 29761: 29761: 29761: static void EraseColumnFamilyInfo(const ColumnFamilyData* cfd); 29761: 29761: 29761: 29761: 29761: static void EraseDatabaseInfo(const DB* db); 29761: 29761: static void SetEnableTracking(bool enable_tracking); 29761: 29761: 29761: 29761: 29761: 29761: static void SetColumnFamily(const ColumnFamilyData* cfd); 29761: 29761: static void SetThreadOperation(ThreadStatus::OperationType type); 29761: 29761: static ThreadStatus::OperationType GetThreadOperation(); 29761: 29761: static ThreadStatus::OperationStage SetThreadOperationStage( 29761: ThreadStatus::OperationStage stage); 29761: 29761: static void SetThreadOperationProperty(int code, uint64_t value); 29761: 29761: static void IncreaseThreadOperationProperty(int code, uint64_t delta); 29761: 29761: static void SetThreadState(ThreadStatus::StateType type); 29761: 29761: static void ResetThreadStatus(); 29761: 29761: 29761: static void TEST_SetStateDelay(const ThreadStatus::StateType state, 29761: int micro); 29761: static void TEST_StateDelay(const ThreadStatus::StateType state); 29761: 29761: static Env::IOActivity TEST_GetExpectedIOActivity( 29761: ThreadStatus::OperationType thread_op); 29761: 29761: 29761: protected: 29761: 29761: 29761: 29761: static bool MaybeInitThreadLocalUpdater(const Env* env); 29761: # 103 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29761: static thread_local bool thread_updater_initialized_; 29761: # 118 "/build/reproducible-path/rocksdb-9.10.0/monitoring/thread_status_util.h" 29761: static thread_local ThreadStatusUpdater* thread_updater_local_cache_; 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: 29761: 29761: 29761: class AutoThreadOperationStageUpdater { 29761: public: 29761: explicit AutoThreadOperationStageUpdater(ThreadStatus::OperationStage stage); 29761: ~AutoThreadOperationStageUpdater(); 29761: 29761: 29761: private: 29761: ThreadStatus::OperationStage prev_stage_; 29761: 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 2 29761: # 26 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 1 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29761: 29761: # 21 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29761: namespace rocksdb { 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29761: using UnrefHandler = void (*)(void* ptr); 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29761: class ThreadLocalPtr { 29761: public: 29761: explicit ThreadLocalPtr(UnrefHandler handler = nullptr); 29761: 29761: ThreadLocalPtr(const ThreadLocalPtr&) = delete; 29761: ThreadLocalPtr& operator=(const ThreadLocalPtr&) = delete; 29761: 29761: ~ThreadLocalPtr(); 29761: 29761: 29761: void* Get() const; 29761: 29761: 29761: void Reset(void* ptr); 29761: 29761: 29761: void* Swap(void* ptr); 29761: 29761: 29761: 29761: 29761: 29761: bool CompareAndSwap(void* ptr, void*& expected); 29761: 29761: 29761: 29761: void Scrape(autovector* ptrs, void* const replacement); 29761: 29761: using FoldFunc = std::function; 29761: 29761: 29761: 29761: 29761: void Fold(FoldFunc func, void* res); 29761: 29761: 29761: 29761: static uint32_t TEST_PeekId(); 29761: # 90 "/build/reproducible-path/rocksdb-9.10.0/util/thread_local.h" 29761: static void InitSingletons(); 29761: 29761: class StaticMeta; 29761: 29761: private: 29761: static StaticMeta* Instance(); 29761: 29761: const uint32_t id_; 29761: }; 29761: 29761: } 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class TestFSWritableFile; 29761: class FaultInjectionTestFS; 29761: 29761: enum class FaultInjectionIOType { 29761: kRead = 0, 29761: kWrite, 29761: kMetadataRead, 29761: kMetadataWrite, 29761: }; 29761: 29761: struct FSFileState { 29761: std::string filename_; 29761: uint64_t pos_at_last_append_ = 0; 29761: uint64_t pos_at_last_sync_ = 0; 29761: std::string buffer_; 29761: 29761: explicit FSFileState(const std::string& filename = {}) 29761: : filename_(filename) {} 29761: 29761: bool IsFullySynced() const { 29761: return pos_at_last_append_ == pos_at_last_sync_; 29761: } 29761: 29761: IOStatus DropUnsyncedData(); 29761: 29761: IOStatus DropRandomUnsyncedData(Random* rand); 29761: }; 29761: 29761: 29761: 29761: class TestFSWritableFile : public FSWritableFile { 29761: public: 29761: explicit TestFSWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr&& f, 29761: FaultInjectionTestFS* fs); 29761: virtual ~TestFSWritableFile(); 29761: IOStatus Append(const Slice& data, const IOOptions&, 29761: IODebugContext*) override; 29761: IOStatus Append(const Slice& data, const IOOptions& options, 29761: const DataVerificationInfo& verification_info, 29761: IODebugContext* dbg) override; 29761: IOStatus Truncate(uint64_t size, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29761: IOStatus Flush(const IOOptions&, IODebugContext*) override; 29761: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29761: IOStatus RangeSync(uint64_t , uint64_t , 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: bool IsSyncThreadSafe() const override { return true; } 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: IOStatus PositionedAppend(const Slice& data, uint64_t offset, 29761: const IOOptions& options, 29761: const DataVerificationInfo& verification_info, 29761: IODebugContext* dbg) override; 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: 29761: uint64_t GetFileSize(const IOOptions& options, IODebugContext* dbg) override { 29761: MutexLock l(&mutex_); 29761: return target_->GetFileSize(options, dbg); 29761: } 29761: 29761: private: 29761: FSFileState state_; 29761: FileOptions file_opts_; 29761: std::unique_ptr target_; 29761: bool writable_file_opened_; 29761: FaultInjectionTestFS* fs_; 29761: port::Mutex mutex_; 29761: const bool unsync_data_loss_; 29761: }; 29761: 29761: 29761: 29761: class TestFSRandomRWFile : public FSRandomRWFile { 29761: public: 29761: explicit TestFSRandomRWFile(const std::string& fname, 29761: std::unique_ptr&& f, 29761: FaultInjectionTestFS* fs); 29761: virtual ~TestFSRandomRWFile(); 29761: IOStatus Write(uint64_t offset, const Slice& data, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override; 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29761: IOStatus Flush(const IOOptions& options, IODebugContext* dbg) override; 29761: IOStatus Sync(const IOOptions& options, IODebugContext* dbg) override; 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: 29761: private: 29761: std::unique_ptr target_; 29761: bool file_opened_; 29761: FaultInjectionTestFS* fs_; 29761: }; 29761: 29761: class TestFSRandomAccessFile : public FSRandomAccessFile { 29761: public: 29761: explicit TestFSRandomAccessFile(const std::string& fname, 29761: std::unique_ptr&& f, 29761: FaultInjectionTestFS* fs); 29761: ~TestFSRandomAccessFile() override {} 29761: IOStatus Read(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) const override; 29761: IOStatus ReadAsync(FSReadRequest& req, const IOOptions& opts, 29761: std::function cb, 29761: void* cb_arg, void** io_handle, IOHandleDeleter* del_fn, 29761: IODebugContext* dbg) override; 29761: IOStatus MultiRead(FSReadRequest* reqs, size_t num_reqs, 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: size_t GetRequiredBufferAlignment() const override { 29761: return target_->GetRequiredBufferAlignment(); 29761: } 29761: bool use_direct_io() const override { return target_->use_direct_io(); } 29761: 29761: size_t GetUniqueId(char* id, size_t max_size) const override; 29761: 29761: private: 29761: std::unique_ptr target_; 29761: FaultInjectionTestFS* fs_; 29761: }; 29761: 29761: class TestFSSequentialFile : public FSSequentialFileOwnerWrapper { 29761: public: 29761: explicit TestFSSequentialFile(std::unique_ptr&& f, 29761: FaultInjectionTestFS* fs, std::string fname) 29761: : FSSequentialFileOwnerWrapper(std::move(f)), 29761: fs_(fs), 29761: fname_(std::move(fname)) {} 29761: IOStatus Read(size_t n, const IOOptions& options, Slice* result, 29761: char* scratch, IODebugContext* dbg) override; 29761: IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& options, 29761: Slice* result, char* scratch, 29761: IODebugContext* dbg) override; 29761: 29761: private: 29761: FaultInjectionTestFS* fs_; 29761: std::string fname_; 29761: uint64_t read_pos_ = 0; 29761: uint64_t target_read_pos_ = 0; 29761: }; 29761: 29761: class TestFSDirectory : public FSDirectory { 29761: public: 29761: explicit TestFSDirectory(FaultInjectionTestFS* fs, std::string dirname, 29761: FSDirectory* dir) 29761: : fs_(fs), dirname_(std::move(dirname)), dir_(dir) {} 29761: ~TestFSDirectory() {} 29761: 29761: IOStatus Fsync(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus Close(const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus FsyncWithDirOptions( 29761: const IOOptions& options, IODebugContext* dbg, 29761: const DirFsyncOptions& dir_fsync_options) override; 29761: 29761: private: 29761: FaultInjectionTestFS* fs_; 29761: std::string dirname_; 29761: std::unique_ptr dir_; 29761: }; 29761: 29761: class FaultInjectionTestFS : public FileSystemWrapper { 29761: public: 29761: explicit FaultInjectionTestFS(const std::shared_ptr& base) 29761: : FileSystemWrapper(base), 29761: filesystem_active_(true), 29761: filesystem_writable_(false), 29761: inject_unsynced_data_loss_(false), 29761: read_unsynced_data_(true), 29761: allow_link_open_file_(false), 29761: injected_thread_local_read_error_(DeleteThreadLocalErrorContext), 29761: injected_thread_local_write_error_(DeleteThreadLocalErrorContext), 29761: injected_thread_local_metadata_read_error_( 29761: DeleteThreadLocalErrorContext), 29761: injected_thread_local_metadata_write_error_( 29761: DeleteThreadLocalErrorContext), 29761: ingest_data_corruption_before_write_(false), 29761: checksum_handoff_func_type_(kCRC32c), 29761: fail_get_file_unique_id_(false) {} 29761: virtual ~FaultInjectionTestFS() override { fs_error_.PermitUncheckedError(); } 29761: 29761: static const char* kClassName() { return "FaultInjectionTestFS"; } 29761: const char* Name() const override { return kClassName(); } 29761: 29761: static bool IsInjectedError(const Status& s) { 29761: 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: !s.ok() 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "!s.ok()" 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 228 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; 29761: return std::strstr(s.getState(), kInjected.c_str()); 29761: } 29761: 29761: static bool IsFailedToWriteToWALError(const Status& s) { 29761: 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: !s.ok() 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "!s.ok()" 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 233 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; 29761: return std::strstr(s.getState(), kFailedToWriteToWAL.c_str()); 29761: } 29761: 29761: IOStatus NewDirectory(const std::string& name, const IOOptions& options, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus FileExists(const std::string& fname, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus GetChildren(const std::string& dir, const IOOptions& options, 29761: std::vector* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus GetChildrenFileAttributes(const std::string& dir, 29761: const IOOptions& options, 29761: std::vector* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus ReopenWritableFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus ReuseWritableFile(const std::string& fname, 29761: const std::string& old_fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewRandomRWFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus NewRandomAccessFile(const std::string& fname, 29761: const FileOptions& file_opts, 29761: std::unique_ptr* result, 29761: IODebugContext* dbg) override; 29761: IOStatus NewSequentialFile(const std::string& f, const FileOptions& file_opts, 29761: std::unique_ptr* r, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus DeleteFile(const std::string& f, const IOOptions& options, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus GetFileSize(const std::string& f, const IOOptions& options, 29761: uint64_t* file_size, IODebugContext* dbg) override; 29761: 29761: IOStatus GetFileModificationTime(const std::string& fname, 29761: const IOOptions& options, 29761: uint64_t* file_mtime, 29761: IODebugContext* dbg) override; 29761: 29761: IOStatus RenameFile(const std::string& s, const std::string& t, 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus LinkFile(const std::string& src, const std::string& target, 29761: const IOOptions& options, IODebugContext* dbg) override; 29761: 29761: IOStatus NumFileLinks(const std::string& fname, const IOOptions& options, 29761: uint64_t* count, IODebugContext* dbg) override; 29761: 29761: IOStatus AreFilesSame(const std::string& first, const std::string& second, 29761: const IOOptions& options, bool* res, 29761: IODebugContext* dbg) override; 29761: IOStatus GetAbsolutePath(const std::string& db_path, const IOOptions& options, 29761: std::string* output_path, 29761: IODebugContext* dbg) override; 29761: 29761: 29761: 29761: IOStatus GetFreeSpace(const std::string& path, const IOOptions& options, 29761: uint64_t* disk_free, IODebugContext* dbg) override { 29761: IOStatus io_s; 29761: if (!IsFilesystemActive() && 29761: fs_error_.subcode() == IOStatus::SubCode::kNoSpace) { 29761: *disk_free = 0; 29761: } else { 29761: io_s = MaybeInjectThreadLocalError(FaultInjectionIOType::kMetadataRead, 29761: options); 29761: if (io_s.ok()) { 29761: io_s = target()->GetFreeSpace(path, options, disk_free, dbg); 29761: } 29761: } 29761: return io_s; 29761: } 29761: 29761: IOStatus IsDirectory(const std::string& path, const IOOptions& options, 29761: bool* is_dir, IODebugContext* dgb) override; 29761: 29761: IOStatus Poll(std::vector& io_handles, 29761: size_t min_completions) override; 29761: 29761: IOStatus AbortIO(std::vector& io_handles) override; 29761: 29761: void WritableFileClosed(const FSFileState& state); 29761: 29761: void WritableFileSynced(const FSFileState& state); 29761: 29761: void WritableFileAppended(const FSFileState& state); 29761: 29761: IOStatus DropUnsyncedFileData(); 29761: 29761: IOStatus DropRandomUnsyncedFileData(Random* rnd); 29761: 29761: IOStatus DeleteFilesCreatedAfterLastDirSync(const IOOptions& options, 29761: IODebugContext* dbg); 29761: 29761: void ResetState(); 29761: 29761: void UntrackFile(const std::string& f); 29761: 29761: void SyncDir(const std::string& dirname) { 29761: MutexLock l(&mutex_); 29761: dir_to_new_files_since_last_sync_.erase(dirname); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: bool IsFilesystemActive() { 29761: MutexLock l(&mutex_); 29761: return filesystem_active_; 29761: } 29761: 29761: 29761: 29761: 29761: bool IsFilesystemDirectWritable() { 29761: MutexLock l(&mutex_); 29761: return filesystem_writable_; 29761: } 29761: void SetFilesystemActiveNoLock( 29761: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 29761: error.PermitUncheckedError(); 29761: filesystem_active_ = active; 29761: if (!active) { 29761: fs_error_ = error; 29761: } 29761: } 29761: void SetFilesystemActive( 29761: bool active, IOStatus error = IOStatus::Corruption("Not active")) { 29761: MutexLock l(&mutex_); 29761: error.PermitUncheckedError(); 29761: SetFilesystemActiveNoLock(active, error); 29761: } 29761: void SetFilesystemDirectWritable(bool writable) { 29761: MutexLock l(&mutex_); 29761: filesystem_writable_ = writable; 29761: } 29761: 29761: 29761: 29761: void SetInjectUnsyncedDataLoss(bool inject) { 29761: MutexLock l(&mutex_); 29761: inject_unsynced_data_loss_ = inject; 29761: } 29761: 29761: bool InjectUnsyncedDataLoss() { 29761: MutexLock l(&mutex_); 29761: return inject_unsynced_data_loss_; 29761: } 29761: # 415 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: void SetReadUnsyncedData(bool read_unsynced_data) { 29761: read_unsynced_data_ = read_unsynced_data; 29761: } 29761: bool ReadUnsyncedData() const { return read_unsynced_data_; } 29761: 29761: 29761: 29761: 29761: void SetAllowLinkOpenFile(bool allow_link_open_file = true) { 29761: allow_link_open_file_ = allow_link_open_file; 29761: } 29761: 29761: bool ShouldIOActivtiesExcludedFromFaultInjection(Env::IOActivity io_activty) { 29761: MutexLock l(&mutex_); 29761: return io_activties_excluded_from_fault_injection.find(io_activty) != 29761: io_activties_excluded_from_fault_injection.end(); 29761: } 29761: 29761: void AssertNoOpenFile() { 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: open_managed_files_.empty() 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "open_managed_files_.empty()" 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 433 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; } 29761: 29761: IOStatus GetError() { return fs_error_; } 29761: 29761: void SetFileSystemIOError(IOStatus io_error) { 29761: MutexLock l(&mutex_); 29761: io_error.PermitUncheckedError(); 29761: fs_error_ = io_error; 29761: } 29761: 29761: 29761: void IngestDataCorruptionBeforeWrite() { 29761: MutexLock l(&mutex_); 29761: ingest_data_corruption_before_write_ = true; 29761: } 29761: 29761: void NoDataCorruptionBeforeWrite() { 29761: MutexLock l(&mutex_); 29761: ingest_data_corruption_before_write_ = false; 29761: } 29761: 29761: bool ShouldDataCorruptionBeforeWrite() { 29761: MutexLock l(&mutex_); 29761: return ingest_data_corruption_before_write_; 29761: } 29761: 29761: void SetChecksumHandoffFuncType(const ChecksumType& func_type) { 29761: MutexLock l(&mutex_); 29761: checksum_handoff_func_type_ = func_type; 29761: } 29761: 29761: const ChecksumType& GetChecksumHandoffFuncType() { 29761: MutexLock l(&mutex_); 29761: return checksum_handoff_func_type_; 29761: } 29761: 29761: void SetFailGetUniqueId(bool flag) { 29761: MutexLock l(&mutex_); 29761: fail_get_file_unique_id_ = flag; 29761: } 29761: 29761: bool ShouldFailGetUniqueId() { 29761: MutexLock l(&mutex_); 29761: return fail_get_file_unique_id_; 29761: } 29761: 29761: 29761: enum ErrorOperation : char { 29761: kRead = 0, 29761: kMultiReadSingleReq = 1, 29761: kMultiRead = 2, 29761: kOpen, 29761: kAppend, 29761: kPositionedAppend, 29761: kUnknown, 29761: }; 29761: 29761: void SetThreadLocalErrorContext(FaultInjectionIOType type, uint32_t seed, 29761: int one_in, bool retryable, 29761: bool has_data_loss) { 29761: struct ErrorContext* new_ctx = new ErrorContext(seed); 29761: new_ctx->one_in = one_in; 29761: new_ctx->count = 0; 29761: new_ctx->retryable = retryable; 29761: new_ctx->has_data_loss = has_data_loss; 29761: 29761: SetErrorContextOfFaultInjectionIOType(type, new_ctx); 29761: } 29761: 29761: static void DeleteThreadLocalErrorContext(void* p) { 29761: ErrorContext* ctx = static_cast(p); 29761: delete ctx; 29761: } 29761: 29761: IOStatus MaybeInjectThreadLocalError( 29761: FaultInjectionIOType type, const IOOptions& io_options, 29761: const std::string& file_name = "", ErrorOperation op = kUnknown, 29761: Slice* slice = nullptr, bool direct_io = false, char* scratch = nullptr, 29761: bool need_count_increase = false, bool* fault_injected = nullptr); 29761: 29761: int GetAndResetInjectedThreadLocalErrorCount(FaultInjectionIOType type) { 29761: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29761: int count = 0; 29761: if (ctx) { 29761: count = ctx->count; 29761: ctx->count = 0; 29761: } 29761: return count; 29761: } 29761: 29761: void SetIOActivtiesExcludedFromFaultInjection( 29761: const std::set& io_activties) { 29761: MutexLock l(&mutex_); 29761: io_activties_excluded_from_fault_injection = io_activties; 29761: } 29761: 29761: void SetFileTypesExcludedFromWriteFaultInjection( 29761: const std::set& types) { 29761: MutexLock l(&mutex_); 29761: file_types_excluded_from_write_fault_injection_ = types; 29761: } 29761: 29761: void EnableThreadLocalErrorInjection(FaultInjectionIOType type) { 29761: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29761: if (ctx) { 29761: ctx->enable_error_injection = true; 29761: } 29761: } 29761: 29761: void EnableAllThreadLocalErrorInjection() { 29761: EnableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 29761: EnableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 29761: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 29761: EnableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 29761: } 29761: 29761: void DisableThreadLocalErrorInjection(FaultInjectionIOType type) { 29761: ErrorContext* ctx = GetErrorContextFromFaultInjectionIOType(type); 29761: if (ctx) { 29761: ctx->enable_error_injection = false; 29761: } 29761: } 29761: 29761: void DisableAllThreadLocalErrorInjection() { 29761: DisableThreadLocalErrorInjection(FaultInjectionIOType::kRead); 29761: DisableThreadLocalErrorInjection(FaultInjectionIOType::kWrite); 29761: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataRead); 29761: DisableThreadLocalErrorInjection(FaultInjectionIOType::kMetadataWrite); 29761: } 29761: 29761: void PrintInjectedThreadLocalErrorBacktrace(FaultInjectionIOType type); 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: void ReadUnsynced(const std::string& fname, uint64_t offset, size_t n, 29761: Slice* result, char* scratch, int64_t* pos_at_last_sync); 29761: 29761: inline static const std::string kInjected = "injected"; 29761: 29761: private: 29761: inline static const std::string kFailedToWriteToWAL = 29761: "failed to write to WAL"; 29761: port::Mutex mutex_; 29761: std::map db_file_state_; 29761: std::set open_managed_files_; 29761: 29761: 29761: 29761: 29761: std::unordered_map> 29761: dir_to_new_files_since_last_sync_; 29761: bool filesystem_active_; 29761: bool filesystem_writable_; 29761: 29761: bool inject_unsynced_data_loss_; 29761: bool read_unsynced_data_; 29761: bool allow_link_open_file_; 29761: IOStatus fs_error_; 29761: 29761: enum ErrorType : int { 29761: kErrorTypeStatus = 0, 29761: kErrorTypeCorruption, 29761: kErrorTypeTruncated, 29761: kErrorTypeMax 29761: }; 29761: 29761: struct ErrorContext { 29761: Random rand; 29761: int one_in; 29761: int count; 29761: bool enable_error_injection; 29761: void* callstack; 29761: std::string message; 29761: int frames; 29761: ErrorType type; 29761: bool retryable; 29761: bool has_data_loss; 29761: 29761: explicit ErrorContext(uint32_t seed) 29761: : rand(seed), 29761: enable_error_injection(false), 29761: callstack(nullptr), 29761: frames(0), 29761: retryable(false), 29761: has_data_loss(false) {} 29761: ~ErrorContext() { 29761: if (callstack) { 29761: free(callstack); 29761: } 29761: } 29761: }; 29761: 29761: std::set file_types_excluded_from_write_fault_injection_; 29761: std::set io_activties_excluded_from_fault_injection; 29761: ThreadLocalPtr injected_thread_local_read_error_; 29761: ThreadLocalPtr injected_thread_local_write_error_; 29761: ThreadLocalPtr injected_thread_local_metadata_read_error_; 29761: ThreadLocalPtr injected_thread_local_metadata_write_error_; 29761: bool ingest_data_corruption_before_write_; 29761: ChecksumType checksum_handoff_func_type_; 29761: bool fail_get_file_unique_id_; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: IOStatus MaybeInjectThreadLocalReadError(const IOOptions& io_options, 29761: ErrorOperation op, Slice* slice, 29761: bool direct_io, char* scratch, 29761: bool need_count_increase, 29761: bool* fault_injected); 29761: 29761: bool ShouldExcludeFromWriteFaultInjection(const std::string& file_name) { 29761: MutexLock l(&mutex_); 29761: FileType file_type = kTempFile; 29761: uint64_t file_number = 0; 29761: if (!TryParseFileName(file_name, &file_number, &file_type)) { 29761: return false; 29761: } 29761: return file_types_excluded_from_write_fault_injection_.find(file_type) != 29761: file_types_excluded_from_write_fault_injection_.end(); 29761: } 29761: 29761: 29761: 29761: bool TryParseFileName(const std::string& file_name, uint64_t* number, 29761: FileType* type); 29761: 29761: ErrorContext* GetErrorContextFromFaultInjectionIOType( 29761: FaultInjectionIOType type) { 29761: ErrorContext* ctx = nullptr; 29761: switch (type) { 29761: case FaultInjectionIOType::kRead: 29761: ctx = static_cast( 29761: injected_thread_local_read_error_.Get()); 29761: break; 29761: case FaultInjectionIOType::kWrite: 29761: ctx = static_cast( 29761: injected_thread_local_write_error_.Get()); 29761: break; 29761: case FaultInjectionIOType::kMetadataRead: 29761: ctx = static_cast( 29761: injected_thread_local_metadata_read_error_.Get()); 29761: break; 29761: case FaultInjectionIOType::kMetadataWrite: 29761: ctx = static_cast( 29761: injected_thread_local_metadata_write_error_.Get()); 29761: break; 29761: default: 29761: 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: false 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "false" 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 688 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; 29761: break; 29761: } 29761: return ctx; 29761: } 29761: 29761: void SetErrorContextOfFaultInjectionIOType(FaultInjectionIOType type, 29761: ErrorContext* new_ctx) { 29761: ErrorContext* old_ctx = nullptr; 29761: switch (type) { 29761: case FaultInjectionIOType::kRead: 29761: old_ctx = static_cast( 29761: injected_thread_local_read_error_.Swap(new_ctx)); 29761: break; 29761: case FaultInjectionIOType::kWrite: 29761: old_ctx = static_cast( 29761: injected_thread_local_write_error_.Swap(new_ctx)); 29761: break; 29761: case FaultInjectionIOType::kMetadataRead: 29761: old_ctx = static_cast( 29761: injected_thread_local_metadata_read_error_.Swap(new_ctx)); 29761: break; 29761: case FaultInjectionIOType::kMetadataWrite: 29761: old_ctx = static_cast( 29761: injected_thread_local_metadata_write_error_.Swap(new_ctx)); 29761: break; 29761: default: 29761: 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: false 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "false" 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 715 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; 29761: break; 29761: } 29761: 29761: if (old_ctx) { 29761: DeleteThreadLocalErrorContext(old_ctx); 29761: } 29761: } 29761: 29761: std::string GetErrorMessage(FaultInjectionIOType type, 29761: const std::string& file_name, ErrorOperation op) { 29761: std::ostringstream msg; 29761: msg << kInjected << " "; 29761: switch (type) { 29761: case FaultInjectionIOType::kRead: 29761: msg << "read error"; 29761: break; 29761: case FaultInjectionIOType::kWrite: 29761: msg << "write error"; 29761: break; 29761: case FaultInjectionIOType::kMetadataRead: 29761: msg << "metadata read error"; 29761: break; 29761: case FaultInjectionIOType::kMetadataWrite: 29761: msg << "metadata write error"; 29761: break; 29761: default: 29761: 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: (static_cast ( 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: false 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: "false" 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 742 "/build/reproducible-path/rocksdb-9.10.0/utilities/fault_injection_fs.h" 29761: ; 29761: break; 29761: } 29761: 29761: if (type == FaultInjectionIOType::kWrite && 29761: (op == ErrorOperation::kOpen || op == ErrorOperation::kAppend || 29761: op == ErrorOperation::kPositionedAppend)) { 29761: FileType file_type = kTempFile; 29761: uint64_t ignore = 0; 29761: if (TryParseFileName(file_name, &ignore, &file_type) && 29761: file_type == FileType::kWalFile) { 29761: msg << " " << kFailedToWriteToWAL; 29761: } 29761: } 29761: return msg.str(); 29761: } 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 2 29761: 29761: 29761: namespace rocksdb { 29761: class Statistics; 29761: class SystemClock; 29761: # 40 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: class WritableFileWriter { 29761: private: 29761: void NotifyOnFileWriteFinish( 29761: uint64_t offset, size_t length, 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status) { 29761: FileOperationInfo info(FileOperationType::kWrite, file_name_, start_ts, 29761: finish_ts, io_status, temperature_); 29761: info.offset = offset; 29761: info.length = length; 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileWriteFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: void NotifyOnFileFlushFinish( 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status) { 29761: FileOperationInfo info(FileOperationType::kFlush, file_name_, start_ts, 29761: finish_ts, io_status, temperature_); 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileFlushFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: void NotifyOnFileSyncFinish( 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status, 29761: FileOperationType type = FileOperationType::kSync) { 29761: FileOperationInfo info(type, file_name_, start_ts, finish_ts, io_status, 29761: temperature_); 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileSyncFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: void NotifyOnFileRangeSyncFinish( 29761: uint64_t offset, size_t length, 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status) { 29761: FileOperationInfo info(FileOperationType::kRangeSync, file_name_, start_ts, 29761: finish_ts, io_status, temperature_); 29761: info.offset = offset; 29761: info.length = length; 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileRangeSyncFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: void NotifyOnFileTruncateFinish( 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status) { 29761: FileOperationInfo info(FileOperationType::kTruncate, file_name_, start_ts, 29761: finish_ts, io_status, temperature_); 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileTruncateFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: void NotifyOnFileCloseFinish( 29761: const FileOperationInfo::StartTimePoint& start_ts, 29761: const FileOperationInfo::FinishTimePoint& finish_ts, 29761: const IOStatus& io_status) { 29761: FileOperationInfo info(FileOperationType::kClose, file_name_, start_ts, 29761: finish_ts, io_status, temperature_); 29761: 29761: for (auto& listener : listeners_) { 29761: listener->OnFileCloseFinish(info); 29761: } 29761: info.status.PermitUncheckedError(); 29761: } 29761: 29761: void NotifyOnIOError(const IOStatus& io_status, FileOperationType operation, 29761: const std::string& file_path, size_t length = 0, 29761: uint64_t offset = 0) { 29761: if (listeners_.empty()) { 29761: return; 29761: } 29761: IOErrorInfo io_error_info(io_status, operation, file_path, length, offset); 29761: for (auto& listener : listeners_) { 29761: listener->OnIOError(io_error_info); 29761: } 29761: io_error_info.io_status.PermitUncheckedError(); 29761: } 29761: 29761: bool ShouldNotifyListeners() const { return !listeners_.empty(); } 29761: void UpdateFileChecksum(const Slice& data); 29761: void Crc32cHandoffChecksumCalculation(const char* data, size_t size, 29761: char* buf); 29761: 29761: std::string file_name_; 29761: FSWritableFilePtr writable_file_; 29761: SystemClock* clock_; 29761: AlignedBuffer buf_; 29761: size_t max_buffer_size_; 29761: 29761: 29761: std::atomic filesize_; 29761: std::atomic flushed_size_; 29761: 29761: 29761: 29761: uint64_t next_write_offset_; 29761: bool pending_sync_; 29761: std::atomic seen_error_; 29761: 29761: std::atomic seen_injected_error_; 29761: 29761: uint64_t last_sync_size_; 29761: uint64_t bytes_per_sync_; 29761: RateLimiter* rate_limiter_; 29761: Statistics* stats_; 29761: Histograms hist_type_; 29761: std::vector> listeners_; 29761: std::unique_ptr checksum_generator_; 29761: bool checksum_finalized_; 29761: bool perform_data_verification_; 29761: uint32_t buffered_data_crc32c_checksum_; 29761: bool buffered_data_with_checksum_; 29761: Temperature temperature_; 29761: 29761: public: 29761: WritableFileWriter( 29761: std::unique_ptr&& file, const std::string& _file_name, 29761: const FileOptions& options, SystemClock* clock = nullptr, 29761: const std::shared_ptr& io_tracer = nullptr, 29761: Statistics* stats = nullptr, 29761: Histograms hist_type = Histograms::HISTOGRAM_ENUM_MAX, 29761: const std::vector>& listeners = {}, 29761: FileChecksumGenFactory* file_checksum_gen_factory = nullptr, 29761: bool perform_data_verification = false, 29761: bool buffered_data_with_checksum = false) 29761: : file_name_(_file_name), 29761: writable_file_(std::move(file), io_tracer, _file_name), 29761: clock_(clock), 29761: buf_(), 29761: max_buffer_size_(options.writable_file_max_buffer_size), 29761: filesize_(0), 29761: flushed_size_(0), 29761: next_write_offset_(0), 29761: pending_sync_(false), 29761: seen_error_(false), 29761: 29761: seen_injected_error_(false), 29761: 29761: last_sync_size_(0), 29761: bytes_per_sync_(options.bytes_per_sync), 29761: rate_limiter_(options.rate_limiter), 29761: stats_(stats), 29761: hist_type_(hist_type), 29761: listeners_(), 29761: checksum_generator_(nullptr), 29761: checksum_finalized_(false), 29761: perform_data_verification_(perform_data_verification), 29761: buffered_data_crc32c_checksum_(0), 29761: buffered_data_with_checksum_(buffered_data_with_checksum) { 29761: temperature_ = options.temperature; 29761: 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29761: (static_cast ( 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: !use_direct_io() || max_buffer_size_ > 0 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: "!use_direct_io() || max_buffer_size_ > 0" 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 207 "/build/reproducible-path/rocksdb-9.10.0/file/writable_file_writer.h" 29761: ; 29761: rocksdb::SyncPoint::GetInstance()->Process("WritableFileWriter::WritableFileWriter:0", reinterpret_cast(max_buffer_size_)) 29761: ; 29761: buf_.Alignment(writable_file_->GetRequiredBufferAlignment()); 29761: buf_.AllocateNewBuffer(std::min((size_t)65536, max_buffer_size_)); 29761: std::for_each(listeners.begin(), listeners.end(), 29761: [this](const std::shared_ptr& e) { 29761: if (e->ShouldBeNotifiedOnFileIO()) { 29761: listeners_.emplace_back(e); 29761: } 29761: }); 29761: if (file_checksum_gen_factory != nullptr) { 29761: FileChecksumGenContext checksum_gen_context; 29761: checksum_gen_context.file_name = _file_name; 29761: checksum_generator_ = 29761: file_checksum_gen_factory->CreateFileChecksumGenerator( 29761: checksum_gen_context); 29761: } 29761: } 29761: 29761: static IOStatus Create(const std::shared_ptr& fs, 29761: const std::string& fname, const FileOptions& file_opts, 29761: std::unique_ptr* writer, 29761: IODebugContext* dbg); 29761: 29761: static IOStatus PrepareIOOptions(const WriteOptions& wo, IOOptions& opts); 29761: 29761: WritableFileWriter(const WritableFileWriter&) = delete; 29761: 29761: WritableFileWriter& operator=(const WritableFileWriter&) = delete; 29761: 29761: ~WritableFileWriter() { 29761: IOOptions io_options; 29761: 29761: 29761: 29761: ThreadStatus::OperationType op_type = 29761: ThreadStatusUtil::GetThreadOperation(); 29761: io_options.io_activity = 29761: ThreadStatusUtil::TEST_GetExpectedIOActivity(op_type); 29761: 29761: auto s = Close(io_options); 29761: s.PermitUncheckedError(); 29761: } 29761: 29761: std::string file_name() const { return file_name_; } 29761: 29761: 29761: 29761: IOStatus Append(const IOOptions& opts, const Slice& data, 29761: uint32_t crc32c_checksum = 0); 29761: 29761: IOStatus Pad(const IOOptions& opts, const size_t pad_bytes); 29761: 29761: IOStatus Flush(const IOOptions& opts); 29761: 29761: IOStatus Close(const IOOptions& opts); 29761: 29761: IOStatus Sync(const IOOptions& opts, bool use_fsync); 29761: 29761: 29761: 29761: 29761: IOStatus SyncWithoutFlush(const IOOptions& opts, bool use_fsync); 29761: 29761: 29761: 29761: uint64_t GetFileSize() const { 29761: return filesize_.load(std::memory_order_acquire); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: uint64_t GetFlushedSize() const { 29761: return flushed_size_.load(std::memory_order_acquire); 29761: } 29761: 29761: IOStatus InvalidateCache(size_t offset, size_t length) { 29761: return writable_file_->InvalidateCache(offset, length); 29761: } 29761: 29761: FSWritableFile* writable_file() const { return writable_file_.get(); } 29761: 29761: bool use_direct_io() { return writable_file_->use_direct_io(); } 29761: 29761: bool BufferIsEmpty() const { return buf_.CurrentSize() == 0; } 29761: 29761: bool IsClosed() const { return writable_file_.get() == nullptr; } 29761: 29761: void TEST_SetFileChecksumGenerator( 29761: FileChecksumGenerator* checksum_generator) { 29761: checksum_generator_.reset(checksum_generator); 29761: } 29761: 29761: std::string GetFileChecksum(); 29761: 29761: const char* GetFileChecksumFuncName() const; 29761: 29761: bool seen_error() const { 29761: return seen_error_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: void reset_seen_error() { 29761: seen_error_.store(false, std::memory_order_relaxed); 29761: 29761: seen_injected_error_.store(false, std::memory_order_relaxed); 29761: 29761: } 29761: void set_seen_error(const Status& s) { 29761: seen_error_.store(true, std::memory_order_relaxed); 29761: (void)s; 29761: 29761: if (s.getState() && std::strstr(s.getState(), "inject")) { 29761: seen_injected_error_.store(true, std::memory_order_relaxed); 29761: } 29761: 29761: } 29761: 29761: bool seen_injected_error() const { 29761: return seen_injected_error_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: 29761: IOStatus GetWriterHasPreviousErrorStatus() { 29761: 29761: if (seen_injected_error_.load(std::memory_order_relaxed)) { 29761: std::stringstream msg; 29761: msg << "Writer has previous " << FaultInjectionTestFS::kInjected 29761: << " error."; 29761: return IOStatus::IOError(msg.str()); 29761: } 29761: 29761: return IOStatus::IOError("Writer has previous error."); 29761: } 29761: 29761: private: 29761: 29761: static Env::IOPriority DecideRateLimiterPriority( 29761: Env::IOPriority writable_file_io_priority, 29761: Env::IOPriority op_rate_limiter_priority); 29761: 29761: 29761: 29761: 29761: IOStatus WriteDirect(const IOOptions& opts); 29761: 29761: IOStatus WriteDirectWithChecksum(const IOOptions& opts); 29761: 29761: 29761: IOStatus WriteBuffered(const IOOptions& opts, const char* data, size_t size); 29761: 29761: IOStatus WriteBufferedWithChecksum(const IOOptions& opts, const char* data, 29761: size_t size); 29761: 29761: IOStatus RangeSync(const IOOptions& opts, uint64_t offset, uint64_t nbytes); 29761: 29761: IOStatus SyncInternal(const IOOptions& opts, bool use_fsync); 29761: IOOptions FinalizeIOOptions(const IOOptions& opts) const; 29761: }; 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 29761: namespace rocksdb { 29761: class Env; 29761: class SystemClock; 29761: 29761: extern const uint64_t kMicrosInSecond; 29761: extern const uint64_t kSecondInMinute; 29761: extern const uint64_t kSecondInHour; 29761: 29761: struct BlockCacheTraceRecord; 29761: 29761: class BlockCacheTraceHelper { 29761: public: 29761: static bool IsGetOrMultiGetOnDataBlock(TraceType block_type, 29761: TableReaderCaller caller); 29761: static bool IsGetOrMultiGet(TableReaderCaller caller); 29761: static bool IsUserAccess(TableReaderCaller caller); 29761: 29761: 29761: static std::string ComputeRowKey(const BlockCacheTraceRecord& access); 29761: 29761: 29761: static uint64_t GetTableId(const BlockCacheTraceRecord& access); 29761: 29761: 29761: static uint64_t GetSequenceNumber(const BlockCacheTraceRecord& access); 29761: 29761: static uint64_t GetBlockOffsetInFile(const BlockCacheTraceRecord& access); 29761: 29761: static const std::string kUnknownColumnFamilyName; 29761: static const uint64_t kReservedGetId; 29761: }; 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/trace_replay/block_cache_tracer.h" 29761: struct BlockCacheLookupContext { 29761: BlockCacheLookupContext(const TableReaderCaller& _caller) : caller(_caller) {} 29761: BlockCacheLookupContext(const TableReaderCaller& _caller, uint64_t _get_id, 29761: bool _get_from_user_specified_snapshot) 29761: : caller(_caller), 29761: get_id(_get_id), 29761: get_from_user_specified_snapshot(_get_from_user_specified_snapshot) {} 29761: const TableReaderCaller caller; 29761: 29761: 29761: 29761: bool is_cache_hit = false; 29761: bool no_insert = false; 29761: TraceType block_type = TraceType::kTraceMax; 29761: uint64_t block_size = 0; 29761: std::string block_key; 29761: uint64_t num_keys_in_block = 0; 29761: 29761: 29761: 29761: uint64_t get_id = 0; 29761: std::string referenced_key; 29761: bool get_from_user_specified_snapshot = false; 29761: 29761: void FillLookupContext(bool _is_cache_hit, bool _no_insert, 29761: TraceType _block_type, uint64_t _block_size, 29761: const std::string& _block_key, 29761: uint64_t _num_keys_in_block) { 29761: is_cache_hit = _is_cache_hit; 29761: no_insert = _no_insert; 29761: block_type = _block_type; 29761: block_size = _block_size; 29761: block_key = _block_key; 29761: num_keys_in_block = _num_keys_in_block; 29761: } 29761: }; 29761: 29761: struct BlockCacheTraceHeader { 29761: uint64_t start_time; 29761: uint32_t rocksdb_major_version; 29761: uint32_t rocksdb_minor_version; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: class BlockCacheTraceWriterImpl : public BlockCacheTraceWriter { 29761: public: 29761: BlockCacheTraceWriterImpl(SystemClock* clock, 29761: const BlockCacheTraceWriterOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: ~BlockCacheTraceWriterImpl() = default; 29761: 29761: BlockCacheTraceWriterImpl(const BlockCacheTraceWriterImpl&) = delete; 29761: BlockCacheTraceWriterImpl& operator=(const BlockCacheTraceWriterImpl&) = 29761: delete; 29761: BlockCacheTraceWriterImpl(BlockCacheTraceWriterImpl&&) = delete; 29761: BlockCacheTraceWriterImpl& operator=(BlockCacheTraceWriterImpl&&) = delete; 29761: 29761: 29761: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29761: const Slice& block_key, const Slice& cf_name, 29761: const Slice& referenced_key) override; 29761: 29761: 29761: 29761: Status WriteHeader() override; 29761: 29761: private: 29761: SystemClock* clock_; 29761: BlockCacheTraceWriterOptions trace_options_; 29761: std::unique_ptr trace_writer_; 29761: }; 29761: 29761: 29761: 29761: 29761: class BlockCacheHumanReadableTraceWriter { 29761: public: 29761: ~BlockCacheHumanReadableTraceWriter(); 29761: 29761: Status NewWritableFile(const std::string& human_readable_trace_file_path, 29761: rocksdb::Env* env); 29761: 29761: Status WriteHumanReadableTraceRecord(const BlockCacheTraceRecord& access, 29761: uint64_t block_id, uint64_t get_key_id); 29761: 29761: private: 29761: char trace_record_buffer_[1024 * 1024]; 29761: std::unique_ptr 29761: human_readable_trace_file_writer_; 29761: }; 29761: 29761: 29761: 29761: class BlockCacheTraceReader { 29761: public: 29761: BlockCacheTraceReader(std::unique_ptr&& reader); 29761: virtual ~BlockCacheTraceReader() = default; 29761: 29761: BlockCacheTraceReader(const BlockCacheTraceReader&) = delete; 29761: BlockCacheTraceReader& operator=(const BlockCacheTraceReader&) = delete; 29761: BlockCacheTraceReader(BlockCacheTraceReader&&) = delete; 29761: BlockCacheTraceReader& operator=(BlockCacheTraceReader&&) = delete; 29761: 29761: Status ReadHeader(BlockCacheTraceHeader* header); 29761: 29761: Status ReadAccess(BlockCacheTraceRecord* record); 29761: 29761: private: 29761: std::unique_ptr trace_reader_; 29761: }; 29761: 29761: 29761: 29761: 29761: class BlockCacheHumanReadableTraceReader : public BlockCacheTraceReader { 29761: public: 29761: BlockCacheHumanReadableTraceReader(const std::string& trace_file_path); 29761: 29761: ~BlockCacheHumanReadableTraceReader(); 29761: 29761: Status ReadHeader(BlockCacheTraceHeader* header); 29761: 29761: Status ReadAccess(BlockCacheTraceRecord* record); 29761: 29761: private: 29761: std::ifstream human_readable_trace_reader_; 29761: }; 29761: 29761: 29761: 29761: 29761: class BlockCacheTracer { 29761: public: 29761: BlockCacheTracer(); 29761: ~BlockCacheTracer(); 29761: 29761: BlockCacheTracer(const BlockCacheTracer&) = delete; 29761: BlockCacheTracer& operator=(const BlockCacheTracer&) = delete; 29761: BlockCacheTracer(BlockCacheTracer&&) = delete; 29761: BlockCacheTracer& operator=(BlockCacheTracer&&) = delete; 29761: 29761: 29761: Status StartTrace(const BlockCacheTraceOptions& trace_options, 29761: std::unique_ptr&& trace_writer); 29761: 29761: 29761: void EndTrace(); 29761: 29761: bool is_tracing_enabled() const { 29761: return writer_.load(std::memory_order_relaxed); 29761: } 29761: 29761: Status WriteBlockAccess(const BlockCacheTraceRecord& record, 29761: const Slice& block_key, const Slice& cf_name, 29761: const Slice& referenced_key); 29761: 29761: 29761: uint64_t NextGetId(); 29761: 29761: private: 29761: BlockCacheTraceOptions trace_options_; 29761: 29761: InstrumentedMutex trace_writer_mutex_; 29761: std::atomic writer_; 29761: std::atomic get_id_counter_; 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class Status; 29761: 29761: struct TableReaderOptions { 29761: 29761: TableReaderOptions( 29761: const ImmutableOptions& _ioptions, 29761: const std::shared_ptr& _prefix_extractor, 29761: const EnvOptions& _env_options, 29761: const InternalKeyComparator& _internal_comparator, 29761: uint8_t _block_protection_bytes_per_key, bool _skip_filters = false, 29761: bool _immortal = false, bool _force_direct_prefetch = false, 29761: int _level = -1, BlockCacheTracer* const _block_cache_tracer = nullptr, 29761: size_t _max_file_size_for_l0_meta_pin = 0, 29761: const std::string& _cur_db_session_id = "", uint64_t _cur_file_num = 0, 29761: UniqueId64x2 _unique_id = {}, SequenceNumber _largest_seqno = 0, 29761: uint64_t _tail_size = 0, bool _user_defined_timestamps_persisted = true) 29761: : ioptions(_ioptions), 29761: prefix_extractor(_prefix_extractor), 29761: env_options(_env_options), 29761: internal_comparator(_internal_comparator), 29761: skip_filters(_skip_filters), 29761: immortal(_immortal), 29761: force_direct_prefetch(_force_direct_prefetch), 29761: level(_level), 29761: largest_seqno(_largest_seqno), 29761: block_cache_tracer(_block_cache_tracer), 29761: max_file_size_for_l0_meta_pin(_max_file_size_for_l0_meta_pin), 29761: cur_db_session_id(_cur_db_session_id), 29761: cur_file_num(_cur_file_num), 29761: unique_id(_unique_id), 29761: block_protection_bytes_per_key(_block_protection_bytes_per_key), 29761: tail_size(_tail_size), 29761: user_defined_timestamps_persisted(_user_defined_timestamps_persisted) {} 29761: 29761: const ImmutableOptions& ioptions; 29761: const std::shared_ptr& prefix_extractor; 29761: const EnvOptions& env_options; 29761: const InternalKeyComparator& internal_comparator; 29761: 29761: bool skip_filters; 29761: 29761: bool immortal; 29761: 29761: 29761: 29761: bool force_direct_prefetch; 29761: 29761: 29761: int level; 29761: 29761: SequenceNumber largest_seqno; 29761: BlockCacheTracer* const block_cache_tracer; 29761: 29761: 29761: const size_t max_file_size_for_l0_meta_pin; 29761: 29761: std::string cur_db_session_id; 29761: 29761: uint64_t cur_file_num; 29761: 29761: 29761: UniqueId64x2 unique_id; 29761: 29761: uint8_t block_protection_bytes_per_key; 29761: 29761: uint64_t tail_size; 29761: 29761: 29761: bool user_defined_timestamps_persisted; 29761: }; 29761: 29761: struct TableBuilderOptions : public TablePropertiesCollectorFactory::Context { 29761: TableBuilderOptions( 29761: const ImmutableOptions& _ioptions, const MutableCFOptions& _moptions, 29761: const ReadOptions& _read_options, const WriteOptions& _write_options, 29761: const InternalKeyComparator& _internal_comparator, 29761: const InternalTblPropCollFactories* _internal_tbl_prop_coll_factories, 29761: CompressionType _compression_type, 29761: const CompressionOptions& _compression_opts, uint32_t _column_family_id, 29761: const std::string& _column_family_name, int _level, 29761: const int64_t _newest_key_time, bool _is_bottommost = false, 29761: TableFileCreationReason _reason = TableFileCreationReason::kMisc, 29761: const int64_t _oldest_key_time = 0, 29761: const uint64_t _file_creation_time = 0, const std::string& _db_id = "", 29761: const std::string& _db_session_id = "", 29761: const uint64_t _target_file_size = 0, const uint64_t _cur_file_num = 0, 29761: const SequenceNumber _last_level_inclusive_max_seqno_threshold = 29761: kMaxSequenceNumber) 29761: : TablePropertiesCollectorFactory::Context( 29761: _column_family_id, _level, _ioptions.num_levels, 29761: _last_level_inclusive_max_seqno_threshold), 29761: ioptions(_ioptions), 29761: moptions(_moptions), 29761: read_options(_read_options), 29761: write_options(_write_options), 29761: internal_comparator(_internal_comparator), 29761: internal_tbl_prop_coll_factories(_internal_tbl_prop_coll_factories), 29761: compression_type(_compression_type), 29761: compression_opts(_compression_opts), 29761: column_family_name(_column_family_name), 29761: oldest_key_time(_oldest_key_time), 29761: newest_key_time(_newest_key_time), 29761: target_file_size(_target_file_size), 29761: file_creation_time(_file_creation_time), 29761: db_id(_db_id), 29761: db_session_id(_db_session_id), 29761: is_bottommost(_is_bottommost), 29761: reason(_reason), 29761: cur_file_num(_cur_file_num) {} 29761: 29761: const ImmutableOptions& ioptions; 29761: const MutableCFOptions& moptions; 29761: const ReadOptions& read_options; 29761: const WriteOptions& write_options; 29761: const InternalKeyComparator& internal_comparator; 29761: const InternalTblPropCollFactories* internal_tbl_prop_coll_factories; 29761: const CompressionType compression_type; 29761: const CompressionOptions& compression_opts; 29761: const std::string& column_family_name; 29761: const int64_t oldest_key_time; 29761: const int64_t newest_key_time; 29761: const uint64_t target_file_size; 29761: const uint64_t file_creation_time; 29761: const std::string db_id; 29761: const std::string db_session_id; 29761: 29761: const bool is_bottommost; 29761: const TableFileCreationReason reason; 29761: 29761: 29761: 29761: 29761: 29761: bool skip_filters = false; 29761: const uint64_t cur_file_num; 29761: }; 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/table_builder.h" 29761: class TableBuilder { 29761: public: 29761: 29761: virtual ~TableBuilder() {} 29761: 29761: 29761: 29761: 29761: virtual void Add(const Slice& key, const Slice& value) = 0; 29761: 29761: 29761: virtual Status status() const = 0; 29761: 29761: 29761: virtual IOStatus io_status() const = 0; 29761: 29761: 29761: 29761: virtual Status Finish() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void Abandon() = 0; 29761: 29761: 29761: virtual uint64_t NumEntries() const = 0; 29761: 29761: 29761: 29761: virtual bool IsEmpty() const { 29761: return NumEntries() == 0 && GetTableProperties().num_range_deletions == 0; 29761: } 29761: 29761: 29761: 29761: virtual uint64_t FileSize() const = 0; 29761: 29761: 29761: 29761: 29761: virtual uint64_t EstimatedFileSize() const { return FileSize(); } 29761: 29761: virtual uint64_t GetTailSize() const { return 0; } 29761: 29761: 29761: 29761: virtual bool NeedCompact() const { return false; } 29761: 29761: 29761: virtual TableProperties GetTableProperties() const = 0; 29761: 29761: 29761: virtual std::string GetFileChecksum() const = 0; 29761: 29761: 29761: virtual const char* GetFileChecksumFuncName() const = 0; 29761: 29761: 29761: 29761: virtual void SetSeqnoTimeTableProperties( 29761: const SeqnoToTimeMapping& , 29761: uint64_t ){} 29761: }; 29761: 29761: } 29761: # 26 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: namespace rocksdb { 29761: # 41 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: template > 29761: class BinaryHeap { 29761: public: 29761: BinaryHeap() {} 29761: explicit BinaryHeap(Compare cmp) : cmp_(std::move(cmp)) {} 29761: 29761: void push(const T& value) { 29761: data_.push_back(value); 29761: upheap(data_.size() - 1); 29761: } 29761: 29761: void push(T&& value) { 29761: data_.push_back(std::move(value)); 29761: upheap(data_.size() - 1); 29761: } 29761: 29761: const T& top() const { 29761: 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: (static_cast ( 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: !empty() 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: "!empty()" 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 58 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: ; 29761: return data_.front(); 29761: } 29761: 29761: void replace_top(const T& value) { 29761: 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: (static_cast ( 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: !empty() 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: "!empty()" 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 63 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: ; 29761: data_.front() = value; 29761: downheap(get_root()); 29761: } 29761: 29761: void replace_top(T&& value) { 29761: 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: (static_cast ( 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: !empty() 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: "!empty()" 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 69 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: ; 29761: data_.front() = std::move(value); 29761: downheap(get_root()); 29761: } 29761: 29761: void pop() { 29761: 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: (static_cast ( 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: !empty() 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: "!empty()" 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 75 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: ; 29761: if (data_.size() > 1) { 29761: 29761: 29761: 29761: data_.front() = std::move(data_.back()); 29761: } 29761: data_.pop_back(); 29761: if (!empty()) { 29761: downheap(get_root()); 29761: } else { 29761: reset_root_cmp_cache(); 29761: } 29761: } 29761: 29761: void swap(BinaryHeap& other) { 29761: std::swap(cmp_, other.cmp_); 29761: data_.swap(other.data_); 29761: std::swap(root_cmp_cache_, other.root_cmp_cache_); 29761: } 29761: 29761: void clear() { 29761: data_.clear(); 29761: reset_root_cmp_cache(); 29761: } 29761: 29761: bool empty() const { return data_.empty(); } 29761: 29761: size_t size() const { return data_.size(); } 29761: 29761: void reset_root_cmp_cache() { 29761: root_cmp_cache_ = std::numeric_limits::max(); 29761: } 29761: 29761: private: 29761: static inline size_t get_root() { return 0; } 29761: static inline size_t get_parent(size_t index) { return (index - 1) / 2; } 29761: static inline size_t get_left(size_t index) { return 2 * index + 1; } 29761: static inline size_t get_right(size_t index) { return 2 * index + 2; } 29761: 29761: void upheap(size_t index) { 29761: T v = std::move(data_[index]); 29761: while (index > get_root()) { 29761: const size_t parent = get_parent(index); 29761: if (!cmp_(data_[parent], v)) { 29761: break; 29761: } 29761: data_[index] = std::move(data_[parent]); 29761: index = parent; 29761: } 29761: data_[index] = std::move(v); 29761: reset_root_cmp_cache(); 29761: } 29761: 29761: void downheap(size_t index) { 29761: T v = std::move(data_[index]); 29761: 29761: size_t picked_child = std::numeric_limits::max(); 29761: while (1) { 29761: const size_t left_child = get_left(index); 29761: if (get_left(index) >= data_.size()) { 29761: break; 29761: } 29761: const size_t right_child = left_child + 1; 29761: 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: (static_cast ( 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: right_child == get_right(index) 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: "right_child == get_right(index)" 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 139 "/build/reproducible-path/rocksdb-9.10.0/util/heap.h" 29761: ; 29761: picked_child = left_child; 29761: if (index == 0 && root_cmp_cache_ < data_.size()) { 29761: picked_child = root_cmp_cache_; 29761: } else if (right_child < data_.size() && 29761: cmp_(data_[left_child], data_[right_child])) { 29761: picked_child = right_child; 29761: } 29761: if (!cmp_(v, data_[picked_child])) { 29761: break; 29761: } 29761: data_[index] = std::move(data_[picked_child]); 29761: index = picked_child; 29761: } 29761: 29761: if (index == 0) { 29761: 29761: 29761: 29761: 29761: root_cmp_cache_ = picked_child; 29761: } else { 29761: 29761: reset_root_cmp_cache(); 29761: } 29761: 29761: data_[index] = std::move(v); 29761: } 29761: 29761: Compare cmp_; 29761: autovector data_; 29761: 29761: size_t root_cmp_cache_ = std::numeric_limits::max(); 29761: }; 29761: 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/kv_map.h" 1 29761: 29761: 29761: 29761: 29761: 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/util/kv_map.h" 29761: namespace rocksdb { 29761: namespace stl_wrappers { 29761: 29761: struct LessOfComparator { 29761: explicit LessOfComparator(const Comparator* c = BytewiseComparator()) 29761: : cmp(c) {} 29761: 29761: bool operator()(const std::string& a, const std::string& b) const { 29761: return cmp->Compare(Slice(a), Slice(b)) < 0; 29761: } 29761: bool operator()(const Slice& a, const Slice& b) const { 29761: return cmp->Compare(a, b) < 0; 29761: } 29761: 29761: const Comparator* cmp; 29761: }; 29761: 29761: using KVMap = std::map; 29761: } 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: class TruncatedRangeDelIterator { 29761: public: 29761: TruncatedRangeDelIterator( 29761: std::unique_ptr iter, 29761: const InternalKeyComparator* icmp, const InternalKey* smallest, 29761: const InternalKey* largest); 29761: 29761: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 29761: iter_->SetRangeDelReadSeqno(read_seqno); 29761: } 29761: 29761: bool Valid() const; 29761: 29761: void Next() { iter_->TopNext(); } 29761: void Prev() { iter_->TopPrev(); } 29761: 29761: void InternalNext() { iter_->Next(); } 29761: 29761: 29761: 29761: 29761: 29761: void Seek(const Slice& target); 29761: 29761: 29761: void SeekInternalKey(const Slice& target); 29761: 29761: 29761: 29761: 29761: void SeekForPrev(const Slice& target); 29761: 29761: void SeekToFirst(); 29761: void SeekToLast(); 29761: 29761: ParsedInternalKey start_key() const { 29761: return (smallest_ == nullptr || 29761: icmp_->Compare(*smallest_, iter_->parsed_start_key()) <= 0) 29761: ? iter_->parsed_start_key() 29761: : *smallest_; 29761: } 29761: 29761: ParsedInternalKey end_key() const { 29761: return (largest_ == nullptr || 29761: icmp_->Compare(iter_->parsed_end_key(), *largest_) <= 0) 29761: ? iter_->parsed_end_key() 29761: : *largest_; 29761: } 29761: 29761: SequenceNumber seq() const { return iter_->seq(); } 29761: Slice timestamp() const { 29761: 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: (static_cast ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: icmp_->user_comparator()->timestamp_size() 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: "icmp_->user_comparator()->timestamp_size()" 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: ; 29761: return iter_->timestamp(); 29761: } 29761: void SetTimestampUpperBound(const Slice* ts_upper_bound) { 29761: iter_->SetTimestampUpperBound(ts_upper_bound); 29761: } 29761: 29761: std::map> 29761: SplitBySnapshot(const std::vector& snapshots); 29761: 29761: SequenceNumber upper_bound() const { return iter_->upper_bound(); } 29761: 29761: SequenceNumber lower_bound() const { return iter_->lower_bound(); } 29761: 29761: private: 29761: std::unique_ptr iter_; 29761: const InternalKeyComparator* icmp_; 29761: const ParsedInternalKey* smallest_ = nullptr; 29761: const ParsedInternalKey* largest_ = nullptr; 29761: std::list pinned_bounds_; 29761: 29761: const InternalKey* smallest_ikey_; 29761: const InternalKey* largest_ikey_; 29761: }; 29761: 29761: struct SeqMaxComparator { 29761: bool operator()(const TruncatedRangeDelIterator* a, 29761: const TruncatedRangeDelIterator* b) const { 29761: return a->seq() > b->seq(); 29761: } 29761: }; 29761: 29761: struct StartKeyMinComparator { 29761: explicit StartKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 29761: 29761: bool operator()(const TruncatedRangeDelIterator* a, 29761: const TruncatedRangeDelIterator* b) const { 29761: return icmp->Compare(a->start_key(), b->start_key()) > 0; 29761: } 29761: 29761: const InternalKeyComparator* icmp; 29761: }; 29761: 29761: class ForwardRangeDelIterator { 29761: public: 29761: explicit ForwardRangeDelIterator(const InternalKeyComparator* icmp); 29761: 29761: bool ShouldDelete(const ParsedInternalKey& parsed); 29761: void Invalidate(); 29761: 29761: void AddNewIter(TruncatedRangeDelIterator* iter, 29761: const ParsedInternalKey& parsed) { 29761: iter->Seek(parsed.user_key); 29761: PushIter(iter, parsed); 29761: 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: (static_cast ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: active_iters_.size() == active_seqnums_.size() 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: "active_iters_.size() == active_seqnums_.size()" 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: ; 29761: } 29761: 29761: size_t UnusedIdx() const { return unused_idx_; } 29761: void IncUnusedIdx() { unused_idx_++; } 29761: 29761: private: 29761: using ActiveSeqSet = 29761: std::multiset; 29761: 29761: struct EndKeyMinComparator { 29761: explicit EndKeyMinComparator(const InternalKeyComparator* c) : icmp(c) {} 29761: 29761: bool operator()(const ActiveSeqSet::const_iterator& a, 29761: const ActiveSeqSet::const_iterator& b) const { 29761: return icmp->Compare((*a)->end_key(), (*b)->end_key()) > 0; 29761: } 29761: 29761: const InternalKeyComparator* icmp; 29761: }; 29761: 29761: void PushIter(TruncatedRangeDelIterator* iter, 29761: const ParsedInternalKey& parsed) { 29761: if (!iter->Valid()) { 29761: 29761: 29761: return; 29761: } 29761: int cmp = icmp_->Compare(parsed, iter->start_key()); 29761: if (cmp < 0) { 29761: PushInactiveIter(iter); 29761: } else { 29761: PushActiveIter(iter); 29761: } 29761: } 29761: 29761: void PushActiveIter(TruncatedRangeDelIterator* iter) { 29761: auto seq_pos = active_seqnums_.insert(iter); 29761: active_iters_.push(seq_pos); 29761: } 29761: 29761: TruncatedRangeDelIterator* PopActiveIter() { 29761: auto active_top = active_iters_.top(); 29761: auto iter = *active_top; 29761: active_iters_.pop(); 29761: active_seqnums_.erase(active_top); 29761: return iter; 29761: } 29761: 29761: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 29761: inactive_iters_.push(iter); 29761: } 29761: 29761: TruncatedRangeDelIterator* PopInactiveIter() { 29761: auto* iter = inactive_iters_.top(); 29761: inactive_iters_.pop(); 29761: return iter; 29761: } 29761: 29761: const InternalKeyComparator* icmp_; 29761: size_t unused_idx_; 29761: ActiveSeqSet active_seqnums_; 29761: BinaryHeap active_iters_; 29761: BinaryHeap inactive_iters_; 29761: }; 29761: 29761: class ReverseRangeDelIterator { 29761: public: 29761: explicit ReverseRangeDelIterator(const InternalKeyComparator* icmp); 29761: 29761: bool ShouldDelete(const ParsedInternalKey& parsed); 29761: void Invalidate(); 29761: 29761: void AddNewIter(TruncatedRangeDelIterator* iter, 29761: const ParsedInternalKey& parsed) { 29761: iter->SeekForPrev(parsed.user_key); 29761: PushIter(iter, parsed); 29761: 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: (static_cast ( 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: active_iters_.size() == active_seqnums_.size() 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: "active_iters_.size() == active_seqnums_.size()" 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 213 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: ; 29761: } 29761: 29761: size_t UnusedIdx() const { return unused_idx_; } 29761: void IncUnusedIdx() { unused_idx_++; } 29761: 29761: private: 29761: using ActiveSeqSet = 29761: std::multiset; 29761: 29761: struct EndKeyMaxComparator { 29761: explicit EndKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 29761: 29761: bool operator()(const TruncatedRangeDelIterator* a, 29761: const TruncatedRangeDelIterator* b) const { 29761: return icmp->Compare(a->end_key(), b->end_key()) < 0; 29761: } 29761: 29761: const InternalKeyComparator* icmp; 29761: }; 29761: struct StartKeyMaxComparator { 29761: explicit StartKeyMaxComparator(const InternalKeyComparator* c) : icmp(c) {} 29761: 29761: bool operator()(const ActiveSeqSet::const_iterator& a, 29761: const ActiveSeqSet::const_iterator& b) const { 29761: return icmp->Compare((*a)->start_key(), (*b)->start_key()) < 0; 29761: } 29761: 29761: const InternalKeyComparator* icmp; 29761: }; 29761: 29761: void PushIter(TruncatedRangeDelIterator* iter, 29761: const ParsedInternalKey& parsed) { 29761: if (!iter->Valid()) { 29761: 29761: 29761: } else if (icmp_->Compare(iter->end_key(), parsed) <= 0) { 29761: PushInactiveIter(iter); 29761: } else { 29761: PushActiveIter(iter); 29761: } 29761: } 29761: 29761: void PushActiveIter(TruncatedRangeDelIterator* iter) { 29761: auto seq_pos = active_seqnums_.insert(iter); 29761: active_iters_.push(seq_pos); 29761: } 29761: 29761: TruncatedRangeDelIterator* PopActiveIter() { 29761: auto active_top = active_iters_.top(); 29761: auto iter = *active_top; 29761: active_iters_.pop(); 29761: active_seqnums_.erase(active_top); 29761: return iter; 29761: } 29761: 29761: void PushInactiveIter(TruncatedRangeDelIterator* iter) { 29761: inactive_iters_.push(iter); 29761: } 29761: 29761: TruncatedRangeDelIterator* PopInactiveIter() { 29761: auto* iter = inactive_iters_.top(); 29761: inactive_iters_.pop(); 29761: return iter; 29761: } 29761: 29761: const InternalKeyComparator* icmp_; 29761: size_t unused_idx_; 29761: ActiveSeqSet active_seqnums_; 29761: BinaryHeap active_iters_; 29761: BinaryHeap inactive_iters_; 29761: }; 29761: 29761: enum class RangeDelPositioningMode { kForwardTraversal, kBackwardTraversal }; 29761: class RangeDelAggregator { 29761: public: 29761: explicit RangeDelAggregator(const InternalKeyComparator* icmp) 29761: : icmp_(icmp) {} 29761: virtual ~RangeDelAggregator() {} 29761: 29761: virtual void AddTombstones( 29761: std::unique_ptr input_iter, 29761: const InternalKey* smallest = nullptr, 29761: const InternalKey* largest = nullptr) = 0; 29761: 29761: bool ShouldDelete(const Slice& ikey, RangeDelPositioningMode mode) { 29761: ParsedInternalKey parsed; 29761: 29761: Status pik_status = 29761: ParseInternalKey(ikey, &parsed, false ); 29761: 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: (static_cast ( 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: pik_status.ok() 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: "pik_status.ok()" 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 303 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: ; 29761: if (!pik_status.ok()) { 29761: return false; 29761: } 29761: 29761: return ShouldDelete(parsed, mode); 29761: } 29761: virtual bool ShouldDelete(const ParsedInternalKey& parsed, 29761: RangeDelPositioningMode mode) = 0; 29761: 29761: virtual void InvalidateRangeDelMapPositions() = 0; 29761: 29761: virtual bool IsEmpty() const = 0; 29761: 29761: bool AddFile(uint64_t file_number) { 29761: return files_seen_.insert(file_number).second; 29761: } 29761: 29761: protected: 29761: class StripeRep { 29761: public: 29761: StripeRep(const InternalKeyComparator* icmp, SequenceNumber upper_bound, 29761: SequenceNumber lower_bound) 29761: : icmp_(icmp), 29761: forward_iter_(icmp), 29761: reverse_iter_(icmp), 29761: upper_bound_(upper_bound), 29761: lower_bound_(lower_bound) {} 29761: 29761: void AddTombstones(std::unique_ptr input_iter) { 29761: iters_.push_back(std::move(input_iter)); 29761: } 29761: 29761: bool IsEmpty() const { return iters_.empty(); } 29761: 29761: bool ShouldDelete(const ParsedInternalKey& parsed, 29761: RangeDelPositioningMode mode); 29761: 29761: void Invalidate() { 29761: if (!IsEmpty()) { 29761: InvalidateForwardIter(); 29761: InvalidateReverseIter(); 29761: } 29761: } 29761: 29761: 29761: 29761: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29761: 29761: private: 29761: bool InStripe(SequenceNumber seq) const { 29761: return lower_bound_ <= seq && seq <= upper_bound_; 29761: } 29761: 29761: void InvalidateForwardIter() { forward_iter_.Invalidate(); } 29761: 29761: void InvalidateReverseIter() { reverse_iter_.Invalidate(); } 29761: 29761: const InternalKeyComparator* icmp_; 29761: std::vector> iters_; 29761: ForwardRangeDelIterator forward_iter_; 29761: ReverseRangeDelIterator reverse_iter_; 29761: SequenceNumber upper_bound_; 29761: SequenceNumber lower_bound_; 29761: }; 29761: 29761: const InternalKeyComparator* icmp_; 29761: 29761: private: 29761: std::set files_seen_; 29761: }; 29761: 29761: class ReadRangeDelAggregator final : public RangeDelAggregator { 29761: public: 29761: ReadRangeDelAggregator(const InternalKeyComparator* icmp, 29761: SequenceNumber upper_bound) 29761: : RangeDelAggregator(icmp), 29761: rep_(icmp, upper_bound, 0 ) {} 29761: ~ReadRangeDelAggregator() override {} 29761: 29761: using RangeDelAggregator::ShouldDelete; 29761: void AddTombstones( 29761: std::unique_ptr input_iter, 29761: const InternalKey* smallest = nullptr, 29761: const InternalKey* largest = nullptr) override; 29761: 29761: bool ShouldDelete(const ParsedInternalKey& parsed, 29761: RangeDelPositioningMode mode) final override { 29761: if (rep_.IsEmpty()) { 29761: return false; 29761: } 29761: return ShouldDeleteImpl(parsed, mode); 29761: } 29761: 29761: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29761: 29761: void InvalidateRangeDelMapPositions() override { rep_.Invalidate(); } 29761: 29761: bool IsEmpty() const override { return rep_.IsEmpty(); } 29761: 29761: private: 29761: StripeRep rep_; 29761: 29761: bool ShouldDeleteImpl(const ParsedInternalKey& parsed, 29761: RangeDelPositioningMode mode); 29761: }; 29761: 29761: class CompactionRangeDelAggregator : public RangeDelAggregator { 29761: public: 29761: CompactionRangeDelAggregator(const InternalKeyComparator* icmp, 29761: const std::vector& snapshots, 29761: const std::string* full_history_ts_low = nullptr, 29761: const std::string* trim_ts = nullptr) 29761: : RangeDelAggregator(icmp), snapshots_(&snapshots) { 29761: if (full_history_ts_low) { 29761: ts_upper_bound_ = *full_history_ts_low; 29761: } 29761: if (trim_ts) { 29761: trim_ts_ = *trim_ts; 29761: 29761: 29761: if (ts_upper_bound_.empty()) { 29761: ts_upper_bound_ = trim_ts_; 29761: } else if (!trim_ts_.empty() && icmp->user_comparator()->CompareTimestamp( 29761: trim_ts_, ts_upper_bound_) < 0) { 29761: ts_upper_bound_ = trim_ts_; 29761: } 29761: } 29761: } 29761: ~CompactionRangeDelAggregator() override {} 29761: 29761: void AddTombstones( 29761: std::unique_ptr input_iter, 29761: const InternalKey* smallest = nullptr, 29761: const InternalKey* largest = nullptr) override; 29761: 29761: using RangeDelAggregator::ShouldDelete; 29761: bool ShouldDelete(const ParsedInternalKey& parsed, 29761: RangeDelPositioningMode mode) override; 29761: 29761: bool IsRangeOverlapped(const Slice& start, const Slice& end); 29761: 29761: void InvalidateRangeDelMapPositions() override { 29761: for (auto& rep : reps_) { 29761: rep.second.Invalidate(); 29761: } 29761: } 29761: 29761: bool IsEmpty() const override { 29761: for (const auto& rep : reps_) { 29761: if (!rep.second.IsEmpty()) { 29761: return false; 29761: } 29761: } 29761: return true; 29761: } 29761: # 468 "/build/reproducible-path/rocksdb-9.10.0/db/range_del_aggregator.h" 29761: std::unique_ptr NewIterator( 29761: const Slice* lower_bound = nullptr, const Slice* upper_bound = nullptr); 29761: 29761: private: 29761: std::vector> parent_iters_; 29761: std::map reps_; 29761: 29761: const std::vector* snapshots_; 29761: 29761: Slice ts_upper_bound_{}; 29761: Slice trim_ts_{}; 29761: }; 29761: 29761: } 29761: # 14 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/snapshot_checker.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: enum class SnapshotCheckerResult : int { 29761: kInSnapshot = 0, 29761: kNotInSnapshot = 1, 29761: 29761: 29761: kSnapshotReleased = 2, 29761: }; 29761: 29761: 29761: class SnapshotChecker { 29761: public: 29761: virtual ~SnapshotChecker() {} 29761: virtual SnapshotCheckerResult CheckInSnapshot( 29761: SequenceNumber sequence, SequenceNumber snapshot_sequence) const = 0; 29761: }; 29761: 29761: class DisableGCSnapshotChecker : public SnapshotChecker { 29761: public: 29761: virtual ~DisableGCSnapshotChecker() {} 29761: SnapshotCheckerResult CheckInSnapshot( 29761: SequenceNumber , 29761: SequenceNumber ) const override { 29761: 29761: return SnapshotCheckerResult::kNotInSnapshot; 29761: } 29761: static DisableGCSnapshotChecker* Instance(); 29761: 29761: protected: 29761: explicit DisableGCSnapshotChecker() {} 29761: }; 29761: 29761: class WritePreparedTxnDB; 29761: 29761: 29761: 29761: class WritePreparedSnapshotChecker : public SnapshotChecker { 29761: public: 29761: explicit WritePreparedSnapshotChecker(WritePreparedTxnDB* txn_db); 29761: virtual ~WritePreparedSnapshotChecker() {} 29761: 29761: SnapshotCheckerResult CheckInSnapshot( 29761: SequenceNumber sequence, SequenceNumber snapshot_sequence) const override; 29761: 29761: private: 29761: const WritePreparedTxnDB* const txn_db_; 29761: }; 29761: 29761: bool DataIsDefinitelyInSnapshot(SequenceNumber seqno, SequenceNumber snapshot, 29761: const SnapshotChecker* snapshot_checker); 29761: 29761: bool DataIsDefinitelyNotInSnapshot(SequenceNumber seqno, 29761: SequenceNumber snapshot, 29761: const SnapshotChecker* snapshot_checker); 29761: 29761: } 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 15 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: # 44 "/build/reproducible-path/rocksdb-9.10.0/db/wide/wide_column_serialization.h" 29761: class WideColumnSerialization { 29761: public: 29761: static Status Serialize(const WideColumns& columns, std::string& output); 29761: 29761: static Status Deserialize(Slice& input, WideColumns& columns); 29761: 29761: static Status GetValueOfDefaultColumn(Slice& input, Slice& value); 29761: 29761: static constexpr uint32_t kCurrentVersion = 1; 29761: }; 29761: 29761: } 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 1 29761: # 9 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: 29761: 29761: # 1 "/usr/include/c++/14/cassert" 1 3 29761: # 41 "/usr/include/c++/14/cassert" 3 29761: 29761: # 42 "/usr/include/c++/14/cassert" 3 29761: 29761: 29761: # 1 "/usr/include/assert.h" 1 3 4 29761: # 45 "/usr/include/c++/14/cassert" 2 3 29761: # 12 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 2 29761: # 23 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class SliceTransform; 29761: # 54 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: class CompactionFilter : public Customizable { 29761: public: 29761: 29761: 29761: enum ValueType { 29761: 29761: kValue, 29761: 29761: kMergeOperand, 29761: 29761: 29761: 29761: 29761: kBlobIndex, 29761: 29761: kWideColumnEntity, 29761: }; 29761: 29761: 29761: 29761: 29761: enum class Decision { 29761: 29761: kKeep, 29761: # 89 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: kRemove, 29761: 29761: 29761: 29761: 29761: 29761: kChangeValue, 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: kRemoveAndSkipUntil, 29761: 29761: 29761: 29761: kChangeBlobIndex, 29761: 29761: 29761: 29761: kIOError, 29761: 29761: 29761: 29761: 29761: 29761: kPurge, 29761: 29761: 29761: 29761: 29761: 29761: 29761: kChangeWideColumnEntity, 29761: # 150 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: kUndetermined, 29761: }; 29761: 29761: 29761: enum class BlobDecision { kKeep, kChangeValue, kCorruption, kIOError }; 29761: 29761: 29761: struct Context { 29761: 29761: 29761: bool is_full_compaction; 29761: 29761: 29761: bool is_manual_compaction; 29761: 29761: 29761: int input_start_level = kUnknownStartLevel; 29761: 29761: uint32_t column_family_id; 29761: 29761: TableFileCreationReason reason; 29761: 29761: 29761: 29761: 29761: TablePropertiesCollection input_table_properties; 29761: 29761: static const int kUnknownStartLevel = -1; 29761: }; 29761: 29761: virtual ~CompactionFilter() {} 29761: static const char* Type() { return "CompactionFilter"; } 29761: static Status CreateFromString(const ConfigOptions& config_options, 29761: const std::string& name, 29761: const CompactionFilter** result); 29761: # 201 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: virtual bool Filter(int , const Slice& , 29761: const Slice& , 29761: std::string* , 29761: bool* ) const { 29761: return false; 29761: } 29761: # 217 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: virtual bool FilterMergeOperand(int , const Slice& , 29761: const Slice& ) const { 29761: return false; 29761: } 29761: # 234 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: virtual Decision FilterV2(int level, const Slice& key, ValueType value_type, 29761: const Slice& existing_value, std::string* new_value, 29761: std::string* ) const { 29761: switch (value_type) { 29761: case ValueType::kValue: { 29761: bool value_changed = false; 29761: bool rv = Filter(level, key, existing_value, new_value, &value_changed); 29761: if (rv) { 29761: return Decision::kRemove; 29761: } 29761: return value_changed ? Decision::kChangeValue : Decision::kKeep; 29761: } 29761: 29761: case ValueType::kMergeOperand: { 29761: bool rv = FilterMergeOperand(level, key, existing_value); 29761: return rv ? Decision::kRemove : Decision::kKeep; 29761: } 29761: 29761: case ValueType::kBlobIndex: 29761: return Decision::kKeep; 29761: 29761: default: 29761: 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: (static_cast ( 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: false 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: "false" 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 256 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: ; 29761: return Decision::kKeep; 29761: } 29761: } 29761: # 281 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: virtual Decision FilterV3( 29761: int level, const Slice& key, ValueType value_type, 29761: const Slice* existing_value, const WideColumns* existing_columns, 29761: std::string* new_value, 29761: std::vector>* , 29761: std::string* skip_until) const { 29761: 29761: 29761: 29761: 29761: 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: (static_cast ( 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: !existing_value || !existing_columns 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: "!existing_value || !existing_columns" 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 291 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: ; 29761: 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: (static_cast ( 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: value_type == ValueType::kWideColumnEntity || existing_value 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: "value_type == ValueType::kWideColumnEntity || existing_value" 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 292 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: ; 29761: 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: (static_cast ( 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: value_type != ValueType::kWideColumnEntity || existing_columns 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: "value_type != ValueType::kWideColumnEntity || existing_columns" 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 293 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: ; 29761: 29761: if (value_type == ValueType::kWideColumnEntity) { 29761: return Decision::kKeep; 29761: } 29761: 29761: return FilterV2(level, key, value_type, *existing_value, new_value, 29761: skip_until); 29761: } 29761: 29761: 29761: virtual BlobDecision PrepareBlobOutput(const Slice& , 29761: const Slice& , 29761: std::string* ) const { 29761: return BlobDecision::kKeep; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool IgnoreSnapshots() const { return true; } 29761: 29761: 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: virtual bool IsStackedBlobDbInternalCompactionFilter() const { return false; } 29761: # 334 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: virtual Decision FilterBlobByKey(int , const Slice& , 29761: std::string* , 29761: std::string* ) const { 29761: return Decision::kUndetermined; 29761: } 29761: }; 29761: # 349 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/compaction_filter.h" 29761: class CompactionFilterFactory : public Customizable { 29761: public: 29761: virtual ~CompactionFilterFactory() {} 29761: static const char* Type() { return "CompactionFilterFactory"; } 29761: static Status CreateFromString( 29761: const ConfigOptions& config_options, const std::string& name, 29761: std::shared_ptr* result); 29761: 29761: 29761: 29761: 29761: virtual bool ShouldFilterTableFileCreation( 29761: TableFileCreationReason reason) const { 29761: 29761: 29761: return reason == TableFileCreationReason::kCompaction; 29761: } 29761: 29761: virtual std::unique_ptr CreateCompactionFilter( 29761: const CompactionFilter::Context& context) = 0; 29761: 29761: 29761: const char* Name() const override = 0; 29761: }; 29761: 29761: } 29761: # 17 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/variant" 1 3 29761: # 32 "/usr/include/c++/14/variant" 3 29761: 29761: # 33 "/usr/include/c++/14/variant" 3 29761: 29761: 29761: 29761: # 1 "/usr/include/c++/14/bits/version.h" 1 3 29761: # 47 "/usr/include/c++/14/bits/version.h" 3 29761: 29761: # 48 "/usr/include/c++/14/bits/version.h" 3 29761: # 37 "/usr/include/c++/14/variant" 2 3 29761: # 59 "/usr/include/c++/14/variant" 3 29761: 29761: # 59 "/usr/include/c++/14/variant" 3 29761: namespace std __attribute__ ((__visibility__ ("default"))) 29761: { 29761: 29761: 29761: template class tuple; 29761: template class variant; 29761: template struct hash; 29761: 29761: template 29761: struct variant_size; 29761: 29761: template 29761: struct variant_size : variant_size<_Variant> {}; 29761: 29761: template 29761: struct variant_size : variant_size<_Variant> {}; 29761: 29761: template 29761: struct variant_size : variant_size<_Variant> {}; 29761: 29761: template 29761: struct variant_size> 29761: : std::integral_constant {}; 29761: 29761: template 29761: inline constexpr size_t variant_size_v = variant_size<_Variant>::value; 29761: 29761: template 29761: inline constexpr size_t 29761: variant_size_v> = sizeof...(_Types); 29761: 29761: template 29761: inline constexpr size_t 29761: variant_size_v> = sizeof...(_Types); 29761: 29761: template 29761: struct variant_alternative; 29761: 29761: template 29761: struct variant_alternative<_Np, variant<_Types...>> 29761: { 29761: static_assert(_Np < sizeof...(_Types)); 29761: 29761: using type = typename _Nth_type<_Np, _Types...>::type; 29761: }; 29761: 29761: template 29761: using variant_alternative_t = 29761: typename variant_alternative<_Np, _Variant>::type; 29761: 29761: template 29761: struct variant_alternative<_Np, const _Variant> 29761: { using type = const variant_alternative_t<_Np, _Variant>; }; 29761: 29761: template 29761: struct variant_alternative<_Np, volatile _Variant> 29761: { using type = volatile variant_alternative_t<_Np, _Variant>; }; 29761: 29761: template 29761: struct variant_alternative<_Np, const volatile _Variant> 29761: { using type = const volatile variant_alternative_t<_Np, _Variant>; }; 29761: 29761: inline constexpr size_t variant_npos = -1; 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>>& 29761: get(variant<_Types...>&); 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 29761: get(variant<_Types...>&&); 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>> const& 29761: get(const variant<_Types...>&); 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>> const&& 29761: get(const variant<_Types...>&&); 29761: 29761: template 29761: constexpr decltype(auto) 29761: __do_visit(_Visitor&& __visitor, _Variants&&... __variants); 29761: 29761: template 29761: 29761: decltype(auto) 29761: __variant_cast(_Tp&& __rhs) 29761: { 29761: if constexpr (is_lvalue_reference_v<_Tp>) 29761: { 29761: if constexpr (is_const_v>) 29761: return static_cast&>(__rhs); 29761: else 29761: return static_cast&>(__rhs); 29761: } 29761: else 29761: return static_cast&&>(__rhs); 29761: } 29761: 29761: namespace __detail 29761: { 29761: namespace __variant 29761: { 29761: 29761: struct __variant_cookie {}; 29761: 29761: struct __variant_idx_cookie { using type = __variant_idx_cookie; }; 29761: 29761: template struct __deduce_visit_result { using type = _Tp; }; 29761: 29761: 29761: template 29761: constexpr void 29761: __raw_visit(_Visitor&& __visitor, _Variants&&... __variants) 29761: { 29761: std::__do_visit<__variant_cookie>(std::forward<_Visitor>(__visitor), 29761: std::forward<_Variants>(__variants)...); 29761: } 29761: 29761: 29761: template 29761: constexpr void 29761: __raw_idx_visit(_Visitor&& __visitor, _Variants&&... __variants) 29761: { 29761: std::__do_visit<__variant_idx_cookie>(std::forward<_Visitor>(__visitor), 29761: std::forward<_Variants>(__variants)...); 29761: } 29761: 29761: 29761: 29761: template 29761: constexpr std::variant<_Types...>& 29761: __as(std::variant<_Types...>& __v) noexcept 29761: { return __v; } 29761: 29761: template 29761: constexpr const std::variant<_Types...>& 29761: __as(const std::variant<_Types...>& __v) noexcept 29761: { return __v; } 29761: 29761: template 29761: constexpr std::variant<_Types...>&& 29761: __as(std::variant<_Types...>&& __v) noexcept 29761: { return std::move(__v); } 29761: 29761: template 29761: constexpr const std::variant<_Types...>&& 29761: __as(const std::variant<_Types...>&& __v) noexcept 29761: { return std::move(__v); } 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template> 29761: struct _Uninitialized; 29761: 29761: template 29761: struct _Uninitialized<_Type, true> 29761: { 29761: template 29761: constexpr 29761: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 29761: : _M_storage(std::forward<_Args>(__args)...) 29761: { } 29761: 29761: constexpr const _Type& _M_get() const & noexcept 29761: { return _M_storage; } 29761: 29761: constexpr _Type& _M_get() & noexcept 29761: { return _M_storage; } 29761: 29761: constexpr const _Type&& _M_get() const && noexcept 29761: { return std::move(_M_storage); } 29761: 29761: constexpr _Type&& _M_get() && noexcept 29761: { return std::move(_M_storage); } 29761: 29761: _Type _M_storage; 29761: }; 29761: 29761: template 29761: struct _Uninitialized<_Type, false> 29761: { 29761: # 279 "/usr/include/c++/14/variant" 3 29761: template 29761: constexpr 29761: _Uninitialized(in_place_index_t<0>, _Args&&... __args) 29761: { 29761: ::new ((void*)std::addressof(_M_storage)) 29761: _Type(std::forward<_Args>(__args)...); 29761: } 29761: 29761: const _Type& _M_get() const & noexcept 29761: { return *_M_storage._M_ptr(); } 29761: 29761: _Type& _M_get() & noexcept 29761: { return *_M_storage._M_ptr(); } 29761: 29761: const _Type&& _M_get() const && noexcept 29761: { return std::move(*_M_storage._M_ptr()); } 29761: 29761: _Type&& _M_get() && noexcept 29761: { return std::move(*_M_storage._M_ptr()); } 29761: 29761: __gnu_cxx::__aligned_membuf<_Type> _M_storage; 29761: 29761: }; 29761: 29761: template 29761: constexpr decltype(auto) 29761: __get_n(_Union&& __u) noexcept 29761: { 29761: if constexpr (_Np == 0) 29761: return std::forward<_Union>(__u)._M_first._M_get(); 29761: else if constexpr (_Np == 1) 29761: return std::forward<_Union>(__u)._M_rest._M_first._M_get(); 29761: else if constexpr (_Np == 2) 29761: return std::forward<_Union>(__u)._M_rest._M_rest._M_first._M_get(); 29761: else 29761: return __variant::__get_n<_Np - 3>( 29761: std::forward<_Union>(__u)._M_rest._M_rest._M_rest); 29761: } 29761: 29761: 29761: template 29761: constexpr decltype(auto) 29761: __get(_Variant&& __v) noexcept 29761: { return __variant::__get_n<_Np>(std::forward<_Variant>(__v)._M_u); } 29761: 29761: 29761: template 29761: constexpr decltype(auto) 29761: __construct_n(_Union& __u) noexcept 29761: { 29761: if constexpr (_Np == 0) 29761: return &__u._M_first; 29761: else if constexpr (_Np == 1) 29761: { 29761: std::_Construct(&__u._M_rest); 29761: return &__u._M_rest._M_first; 29761: } 29761: else if constexpr (_Np == 2) 29761: { 29761: std::_Construct(&__u._M_rest); 29761: std::_Construct(&__u._M_rest._M_rest); 29761: return &__u._M_rest._M_rest._M_first; 29761: } 29761: else 29761: { 29761: std::_Construct(&__u._M_rest); 29761: std::_Construct(&__u._M_rest._M_rest); 29761: std::_Construct(&__u._M_rest._M_rest._M_rest); 29761: return __variant::__construct_n<_Np - 3>(__u._M_rest._M_rest._M_rest); 29761: } 29761: } 29761: 29761: template 29761: struct _Traits 29761: { 29761: static constexpr bool _S_default_ctor = 29761: is_default_constructible_v::type>; 29761: static constexpr bool _S_copy_ctor = 29761: (is_copy_constructible_v<_Types> && ...); 29761: static constexpr bool _S_move_ctor = 29761: (is_move_constructible_v<_Types> && ...); 29761: static constexpr bool _S_copy_assign = 29761: _S_copy_ctor 29761: && (is_copy_assignable_v<_Types> && ...); 29761: static constexpr bool _S_move_assign = 29761: _S_move_ctor 29761: && (is_move_assignable_v<_Types> && ...); 29761: 29761: static constexpr bool _S_trivial_dtor = 29761: (is_trivially_destructible_v<_Types> && ...); 29761: static constexpr bool _S_trivial_copy_ctor = 29761: (is_trivially_copy_constructible_v<_Types> && ...); 29761: static constexpr bool _S_trivial_move_ctor = 29761: (is_trivially_move_constructible_v<_Types> && ...); 29761: static constexpr bool _S_trivial_copy_assign = 29761: _S_trivial_dtor && _S_trivial_copy_ctor 29761: && (is_trivially_copy_assignable_v<_Types> && ...); 29761: static constexpr bool _S_trivial_move_assign = 29761: _S_trivial_dtor && _S_trivial_move_ctor 29761: && (is_trivially_move_assignable_v<_Types> && ...); 29761: 29761: 29761: 29761: static constexpr bool _S_nothrow_default_ctor = 29761: is_nothrow_default_constructible_v< 29761: typename _Nth_type<0, _Types...>::type>; 29761: static constexpr bool _S_nothrow_copy_ctor = false; 29761: static constexpr bool _S_nothrow_move_ctor = 29761: (is_nothrow_move_constructible_v<_Types> && ...); 29761: static constexpr bool _S_nothrow_copy_assign = false; 29761: static constexpr bool _S_nothrow_move_assign = 29761: _S_nothrow_move_ctor 29761: && (is_nothrow_move_assignable_v<_Types> && ...); 29761: }; 29761: 29761: 29761: template 29761: union _Variadic_union 29761: { 29761: _Variadic_union() = default; 29761: 29761: template 29761: _Variadic_union(in_place_index_t<_Np>, _Args&&...) = delete; 29761: }; 29761: 29761: template 29761: union _Variadic_union<__trivially_destructible, _First, _Rest...> 29761: { 29761: constexpr _Variadic_union() : _M_rest() { } 29761: 29761: template 29761: constexpr 29761: _Variadic_union(in_place_index_t<0>, _Args&&... __args) 29761: : _M_first(in_place_index<0>, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Variadic_union(in_place_index_t<_Np>, _Args&&... __args) 29761: : _M_rest(in_place_index<_Np-1>, std::forward<_Args>(__args)...) 29761: { } 29761: # 434 "/usr/include/c++/14/variant" 3 29761: _Uninitialized<_First> _M_first; 29761: _Variadic_union<__trivially_destructible, _Rest...> _M_rest; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: template 29761: struct _Never_valueless_alt 29761: : __and_, is_trivially_copyable<_Tp>> 29761: { }; 29761: # 458 "/usr/include/c++/14/variant" 3 29761: template 29761: constexpr bool __never_valueless() 29761: { 29761: return _Traits<_Types...>::_S_move_assign 29761: && (_Never_valueless_alt<_Types>::value && ...); 29761: } 29761: 29761: 29761: template 29761: struct _Variant_storage; 29761: 29761: template 29761: using __select_index = 29761: typename __select_int::_Select_int_base::type::value_type; 29761: 29761: template 29761: struct _Variant_storage 29761: { 29761: constexpr 29761: _Variant_storage() 29761: : _M_index(static_cast<__index_type>(variant_npos)) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 29761: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 29761: _M_index{_Np} 29761: { } 29761: 29761: constexpr void 29761: _M_reset() 29761: { 29761: if (!_M_valid()) [[__unlikely__]] 29761: return; 29761: 29761: std::__do_visit([](auto&& __this_mem) mutable 29761: { 29761: std::_Destroy(std::__addressof(__this_mem)); 29761: }, __variant_cast<_Types...>(*this)); 29761: 29761: _M_index = static_cast<__index_type>(variant_npos); 29761: } 29761: 29761: 29761: ~_Variant_storage() 29761: { _M_reset(); } 29761: 29761: constexpr bool 29761: _M_valid() const noexcept 29761: { 29761: if constexpr (__variant::__never_valueless<_Types...>()) 29761: return true; 29761: return this->_M_index != __index_type(variant_npos); 29761: } 29761: 29761: _Variadic_union _M_u; 29761: using __index_type = __select_index<_Types...>; 29761: __index_type _M_index; 29761: }; 29761: 29761: template 29761: struct _Variant_storage 29761: { 29761: constexpr 29761: _Variant_storage() 29761: : _M_index(static_cast<__index_type>(variant_npos)) 29761: { } 29761: 29761: template 29761: constexpr 29761: _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) 29761: : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), 29761: _M_index{_Np} 29761: { } 29761: 29761: constexpr void 29761: _M_reset() noexcept 29761: { _M_index = static_cast<__index_type>(variant_npos); } 29761: 29761: constexpr bool 29761: _M_valid() const noexcept 29761: { 29761: if constexpr (__variant::__never_valueless<_Types...>()) 29761: return true; 29761: 29761: 29761: 29761: 29761: 29761: 29761: return this->_M_index != static_cast<__index_type>(variant_npos); 29761: } 29761: 29761: _Variadic_union _M_u; 29761: using __index_type = __select_index<_Types...>; 29761: __index_type _M_index; 29761: }; 29761: 29761: 29761: template 29761: 29761: inline void 29761: __emplace(_Variant_storage<_Triv, _Types...>& __v, _Args&&... __args) 29761: { 29761: __v._M_reset(); 29761: auto* __addr = __variant::__construct_n<_Np>(__v._M_u); 29761: std::_Construct(__addr, in_place_index<0>, 29761: std::forward<_Args>(__args)...); 29761: 29761: __v._M_index = _Np; 29761: } 29761: 29761: template 29761: using _Variant_storage_alias = 29761: _Variant_storage<_Traits<_Types...>::_S_trivial_dtor, _Types...>; 29761: 29761: 29761: 29761: 29761: template 29761: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 29761: { 29761: using _Base = _Variant_storage_alias<_Types...>; 29761: using _Base::_Base; 29761: 29761: 29761: _Copy_ctor_base(const _Copy_ctor_base& __rhs) 29761: noexcept(_Traits<_Types...>::_S_nothrow_copy_ctor) 29761: { 29761: __variant::__raw_idx_visit( 29761: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29761: { 29761: constexpr size_t __j = __rhs_index; 29761: if constexpr (__j != variant_npos) 29761: std::_Construct(std::__addressof(this->_M_u), 29761: in_place_index<__j>, __rhs_mem); 29761: }, __variant_cast<_Types...>(__rhs)); 29761: this->_M_index = __rhs._M_index; 29761: } 29761: 29761: _Copy_ctor_base(_Copy_ctor_base&&) = default; 29761: _Copy_ctor_base& operator=(const _Copy_ctor_base&) = default; 29761: _Copy_ctor_base& operator=(_Copy_ctor_base&&) = default; 29761: }; 29761: 29761: template 29761: struct _Copy_ctor_base : _Variant_storage_alias<_Types...> 29761: { 29761: using _Base = _Variant_storage_alias<_Types...>; 29761: using _Base::_Base; 29761: }; 29761: 29761: template 29761: using _Copy_ctor_alias = 29761: _Copy_ctor_base<_Traits<_Types...>::_S_trivial_copy_ctor, _Types...>; 29761: 29761: template 29761: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 29761: { 29761: using _Base = _Copy_ctor_alias<_Types...>; 29761: using _Base::_Base; 29761: 29761: 29761: _Move_ctor_base(_Move_ctor_base&& __rhs) 29761: noexcept(_Traits<_Types...>::_S_nothrow_move_ctor) 29761: { 29761: __variant::__raw_idx_visit( 29761: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29761: { 29761: constexpr size_t __j = __rhs_index; 29761: if constexpr (__j != variant_npos) 29761: std::_Construct(std::__addressof(this->_M_u), 29761: in_place_index<__j>, 29761: std::forward(__rhs_mem)); 29761: }, __variant_cast<_Types...>(std::move(__rhs))); 29761: this->_M_index = __rhs._M_index; 29761: } 29761: 29761: _Move_ctor_base(const _Move_ctor_base&) = default; 29761: _Move_ctor_base& operator=(const _Move_ctor_base&) = default; 29761: _Move_ctor_base& operator=(_Move_ctor_base&&) = default; 29761: }; 29761: 29761: template 29761: struct _Move_ctor_base : _Copy_ctor_alias<_Types...> 29761: { 29761: using _Base = _Copy_ctor_alias<_Types...>; 29761: using _Base::_Base; 29761: }; 29761: 29761: template 29761: using _Move_ctor_alias = 29761: _Move_ctor_base<_Traits<_Types...>::_S_trivial_move_ctor, _Types...>; 29761: 29761: template 29761: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 29761: { 29761: using _Base = _Move_ctor_alias<_Types...>; 29761: using _Base::_Base; 29761: 29761: 29761: _Copy_assign_base& 29761: operator=(const _Copy_assign_base& __rhs) 29761: noexcept(_Traits<_Types...>::_S_nothrow_copy_assign) 29761: { 29761: __variant::__raw_idx_visit( 29761: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29761: { 29761: constexpr size_t __j = __rhs_index; 29761: if constexpr (__j == variant_npos) 29761: this->_M_reset(); 29761: else if (this->_M_index == __j) 29761: __variant::__get<__j>(*this) = __rhs_mem; 29761: else 29761: { 29761: using _Tj = typename _Nth_type<__j, _Types...>::type; 29761: if constexpr (is_nothrow_copy_constructible_v<_Tj> 29761: || !is_nothrow_move_constructible_v<_Tj>) 29761: __variant::__emplace<__j>(*this, __rhs_mem); 29761: else 29761: { 29761: using _Variant = variant<_Types...>; 29761: _Variant& __self = __variant_cast<_Types...>(*this); 29761: __self = _Variant(in_place_index<__j>, __rhs_mem); 29761: } 29761: } 29761: }, __variant_cast<_Types...>(__rhs)); 29761: return *this; 29761: } 29761: 29761: _Copy_assign_base(const _Copy_assign_base&) = default; 29761: _Copy_assign_base(_Copy_assign_base&&) = default; 29761: _Copy_assign_base& operator=(_Copy_assign_base&&) = default; 29761: }; 29761: 29761: template 29761: struct _Copy_assign_base : _Move_ctor_alias<_Types...> 29761: { 29761: using _Base = _Move_ctor_alias<_Types...>; 29761: using _Base::_Base; 29761: }; 29761: 29761: template 29761: using _Copy_assign_alias = 29761: _Copy_assign_base<_Traits<_Types...>::_S_trivial_copy_assign, _Types...>; 29761: 29761: template 29761: struct _Move_assign_base : _Copy_assign_alias<_Types...> 29761: { 29761: using _Base = _Copy_assign_alias<_Types...>; 29761: using _Base::_Base; 29761: 29761: 29761: _Move_assign_base& 29761: operator=(_Move_assign_base&& __rhs) 29761: noexcept(_Traits<_Types...>::_S_nothrow_move_assign) 29761: { 29761: __variant::__raw_idx_visit( 29761: [this](auto&& __rhs_mem, auto __rhs_index) mutable 29761: { 29761: constexpr size_t __j = __rhs_index; 29761: if constexpr (__j != variant_npos) 29761: { 29761: if (this->_M_index == __j) 29761: __variant::__get<__j>(*this) = std::move(__rhs_mem); 29761: else 29761: { 29761: using _Tj = typename _Nth_type<__j, _Types...>::type; 29761: if constexpr (is_nothrow_move_constructible_v<_Tj>) 29761: __variant::__emplace<__j>(*this, std::move(__rhs_mem)); 29761: else 29761: { 29761: using _Variant = variant<_Types...>; 29761: _Variant& __self = __variant_cast<_Types...>(*this); 29761: __self.template emplace<__j>(std::move(__rhs_mem)); 29761: } 29761: } 29761: } 29761: else 29761: this->_M_reset(); 29761: }, __variant_cast<_Types...>(__rhs)); 29761: return *this; 29761: } 29761: 29761: _Move_assign_base(const _Move_assign_base&) = default; 29761: _Move_assign_base(_Move_assign_base&&) = default; 29761: _Move_assign_base& operator=(const _Move_assign_base&) = default; 29761: }; 29761: 29761: template 29761: struct _Move_assign_base : _Copy_assign_alias<_Types...> 29761: { 29761: using _Base = _Copy_assign_alias<_Types...>; 29761: using _Base::_Base; 29761: }; 29761: 29761: template 29761: using _Move_assign_alias = 29761: _Move_assign_base<_Traits<_Types...>::_S_trivial_move_assign, _Types...>; 29761: 29761: template 29761: struct _Variant_base : _Move_assign_alias<_Types...> 29761: { 29761: using _Base = _Move_assign_alias<_Types...>; 29761: 29761: constexpr 29761: _Variant_base() noexcept(_Traits<_Types...>::_S_nothrow_default_ctor) 29761: : _Variant_base(in_place_index<0>) { } 29761: 29761: template 29761: constexpr explicit 29761: _Variant_base(in_place_index_t<_Np> __i, _Args&&... __args) 29761: : _Base(__i, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: _Variant_base(const _Variant_base&) = default; 29761: _Variant_base(_Variant_base&&) = default; 29761: _Variant_base& operator=(const _Variant_base&) = default; 29761: _Variant_base& operator=(_Variant_base&&) = default; 29761: }; 29761: 29761: template 29761: inline constexpr bool __exactly_once 29761: = std::__find_uniq_type_in_pack<_Tp, _Types...>() < sizeof...(_Types); 29761: 29761: 29761: template struct _Arr { _Ti _M_x[1]; }; 29761: 29761: 29761: template 29761: struct _Build_FUN 29761: { 29761: 29761: 29761: void _S_fun() = delete; 29761: }; 29761: 29761: 29761: template 29761: struct _Build_FUN<_Ind, _Tp, _Ti, 29761: void_t{{std::declval<_Tp>()}})>> 29761: { 29761: 29761: static integral_constant _S_fun(_Ti); 29761: }; 29761: 29761: template>> 29761: struct _Build_FUNs; 29761: 29761: template 29761: struct _Build_FUNs<_Tp, variant<_Ti...>, index_sequence<_Ind...>> 29761: : _Build_FUN<_Ind, _Tp, _Ti>... 29761: { 29761: using _Build_FUN<_Ind, _Tp, _Ti>::_S_fun...; 29761: }; 29761: 29761: 29761: 29761: template 29761: using _FUN_type 29761: = decltype(_Build_FUNs<_Tp, _Variant>::_S_fun(std::declval<_Tp>())); 29761: 29761: 29761: template 29761: inline constexpr size_t 29761: __accepted_index = variant_npos; 29761: 29761: template 29761: inline constexpr size_t 29761: __accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> 29761: = _FUN_type<_Tp, _Variant>::value; 29761: 29761: template> 29761: inline constexpr bool 29761: __extra_visit_slot_needed = false; 29761: 29761: template 29761: inline constexpr bool 29761: __extra_visit_slot_needed<__variant_cookie, _Var, variant<_Types...>> 29761: = !__variant::__never_valueless<_Types...>(); 29761: 29761: template 29761: inline constexpr bool 29761: __extra_visit_slot_needed<__variant_idx_cookie, _Var, variant<_Types...>> 29761: = !__variant::__never_valueless<_Types...>(); 29761: 29761: 29761: template 29761: struct _Multi_array; 29761: 29761: 29761: template 29761: struct _Multi_array<_Tp> 29761: { 29761: template 29761: struct __untag_result 29761: : false_type 29761: { using element_type = _Tp; }; 29761: 29761: #pragma GCC diagnostic push 29761: #pragma GCC diagnostic ignored "-Wignored-qualifiers" 29761: template 29761: struct __untag_result 29761: : false_type 29761: { using element_type = void(*)(_Args...); }; 29761: #pragma GCC diagnostic pop 29761: 29761: template 29761: struct __untag_result<__variant_cookie(*)(_Args...)> 29761: : false_type 29761: { using element_type = void(*)(_Args...); }; 29761: 29761: template 29761: struct __untag_result<__variant_idx_cookie(*)(_Args...)> 29761: : false_type 29761: { using element_type = void(*)(_Args...); }; 29761: 29761: template 29761: struct __untag_result<__deduce_visit_result<_Res>(*)(_Args...)> 29761: : true_type 29761: { using element_type = _Res(*)(_Args...); }; 29761: 29761: using __result_is_deduced = __untag_result<_Tp>; 29761: 29761: constexpr const typename __untag_result<_Tp>::element_type& 29761: _M_access() const 29761: { return _M_data; } 29761: 29761: typename __untag_result<_Tp>::element_type _M_data; 29761: }; 29761: 29761: 29761: template 29761: struct _Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...> 29761: { 29761: static constexpr size_t __index = 29761: sizeof...(_Variants) - sizeof...(__rest) - 1; 29761: 29761: using _Variant = typename _Nth_type<__index, _Variants...>::type; 29761: 29761: static constexpr int __do_cookie = 29761: __extra_visit_slot_needed<_Ret, _Variant> ? 1 : 0; 29761: 29761: using _Tp = _Ret(*)(_Visitor, _Variants...); 29761: 29761: template 29761: constexpr decltype(auto) 29761: _M_access(size_t __first_index, _Args... __rest_indices) const 29761: { 29761: return _M_arr[__first_index + __do_cookie] 29761: ._M_access(__rest_indices...); 29761: } 29761: 29761: _Multi_array<_Tp, __rest...> _M_arr[__first + __do_cookie]; 29761: }; 29761: # 949 "/usr/include/c++/14/variant" 3 29761: template 29761: struct __gen_vtable_impl; 29761: # 959 "/usr/include/c++/14/variant" 3 29761: template 29761: struct __gen_vtable_impl< 29761: _Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>, 29761: std::index_sequence<__indices...>> 29761: { 29761: using _Next = 29761: remove_reference_t::type>; 29761: using _Array_type = 29761: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 29761: __dimensions...>; 29761: 29761: static constexpr _Array_type 29761: _S_apply() 29761: { 29761: _Array_type __vtable{}; 29761: _S_apply_all_alts( 29761: __vtable, make_index_sequence>()); 29761: return __vtable; 29761: } 29761: 29761: template 29761: static constexpr void 29761: _S_apply_all_alts(_Array_type& __vtable, 29761: std::index_sequence<__var_indices...>) 29761: { 29761: if constexpr (__extra_visit_slot_needed<_Result_type, _Next>) 29761: (_S_apply_single_alt( 29761: __vtable._M_arr[__var_indices + 1], 29761: &(__vtable._M_arr[0])), ...); 29761: else 29761: (_S_apply_single_alt( 29761: __vtable._M_arr[__var_indices]), ...); 29761: } 29761: 29761: template 29761: static constexpr void 29761: _S_apply_single_alt(_Tp& __element, _Tp* __cookie_element = nullptr) 29761: { 29761: if constexpr (__do_cookie) 29761: { 29761: __element = __gen_vtable_impl< 29761: _Tp, 29761: std::index_sequence<__indices..., __index>>::_S_apply(); 29761: *__cookie_element = __gen_vtable_impl< 29761: _Tp, 29761: std::index_sequence<__indices..., variant_npos>>::_S_apply(); 29761: } 29761: else 29761: { 29761: auto __tmp_element = __gen_vtable_impl< 29761: remove_reference_t, 29761: std::index_sequence<__indices..., __index>>::_S_apply(); 29761: static_assert(is_same_v<_Tp, decltype(__tmp_element)>, 29761: "std::visit requires the visitor to have the same " 29761: "return type for all alternatives of a variant"); 29761: __element = __tmp_element; 29761: } 29761: } 29761: }; 29761: 29761: 29761: 29761: 29761: template 29761: struct __gen_vtable_impl< 29761: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>, 29761: std::index_sequence<__indices...>> 29761: { 29761: using _Array_type = 29761: _Multi_array<_Result_type (*)(_Visitor, _Variants...)>; 29761: 29761: template 29761: static constexpr decltype(auto) 29761: __element_by_index_or_cookie(_Variant&& __var) noexcept 29761: { 29761: if constexpr (__index != variant_npos) 29761: return __variant::__get<__index>(std::forward<_Variant>(__var)); 29761: else 29761: return __variant_cookie{}; 29761: } 29761: 29761: static constexpr decltype(auto) 29761: __visit_invoke(_Visitor&& __visitor, _Variants... __vars) 29761: { 29761: if constexpr (is_same_v<_Result_type, __variant_idx_cookie>) 29761: 29761: 29761: std::__invoke(std::forward<_Visitor>(__visitor), 29761: __element_by_index_or_cookie<__indices>( 29761: std::forward<_Variants>(__vars))..., 29761: integral_constant()...); 29761: else if constexpr (is_same_v<_Result_type, __variant_cookie>) 29761: 29761: std::__invoke(std::forward<_Visitor>(__visitor), 29761: __element_by_index_or_cookie<__indices>( 29761: std::forward<_Variants>(__vars))...); 29761: else if constexpr (_Array_type::__result_is_deduced::value) 29761: 29761: return std::__invoke(std::forward<_Visitor>(__visitor), 29761: __element_by_index_or_cookie<__indices>( 29761: std::forward<_Variants>(__vars))...); 29761: else 29761: return std::__invoke_r<_Result_type>( 29761: std::forward<_Visitor>(__visitor), 29761: __variant::__get<__indices>(std::forward<_Variants>(__vars))...); 29761: } 29761: 29761: static constexpr auto 29761: _S_apply() 29761: { 29761: if constexpr (_Array_type::__result_is_deduced::value) 29761: { 29761: constexpr bool __visit_ret_type_mismatch = 29761: !is_same_v(), 29761: std::declval<_Variants>()...))>; 29761: if constexpr (__visit_ret_type_mismatch) 29761: { 29761: struct __cannot_match {}; 29761: return __cannot_match{}; 29761: } 29761: else 29761: return _Array_type{&__visit_invoke}; 29761: } 29761: else 29761: return _Array_type{&__visit_invoke}; 29761: } 29761: }; 29761: 29761: template 29761: struct __gen_vtable 29761: { 29761: using _Array_type = 29761: _Multi_array<_Result_type (*)(_Visitor, _Variants...), 29761: variant_size_v>...>; 29761: 29761: static constexpr _Array_type _S_vtable 29761: = __gen_vtable_impl<_Array_type, std::index_sequence<>>::_S_apply(); 29761: }; 29761: 29761: template 29761: struct _Base_dedup : public _Tp { }; 29761: 29761: template 29761: struct _Variant_hash_base; 29761: 29761: template 29761: struct _Variant_hash_base, 29761: std::index_sequence<__indices...>> 29761: : _Base_dedup<__indices, __poison_hash>>... { }; 29761: 29761: 29761: template())), 29761: typename _Tp = variant_alternative_t<_Np, remove_reference_t<_AsV>>> 29761: using __get_t 29761: = __conditional_t, _Tp&, _Tp&&>; 29761: 29761: 29761: template 29761: using __visit_result_t 29761: = invoke_result_t<_Visitor, __get_t<0, _Variants>...>; 29761: 29761: template 29761: constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); 29761: 29761: template 29761: constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) 29761: { 29761: return __same_types< 29761: invoke_result_t<_Visitor, __get_t<_Idxs, _Variant>>... 29761: >; 29761: } 29761: 29761: } 29761: } 29761: 29761: template 29761: constexpr bool 29761: holds_alternative(const variant<_Types...>& __v) noexcept 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: return __v.index() == std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: } 29761: 29761: template 29761: constexpr _Tp& 29761: get(variant<_Types...>& __v) 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get<__n>(__v); 29761: } 29761: 29761: template 29761: constexpr _Tp&& 29761: get(variant<_Types...>&& __v) 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get<__n>(std::move(__v)); 29761: } 29761: 29761: template 29761: constexpr const _Tp& 29761: get(const variant<_Types...>& __v) 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get<__n>(__v); 29761: } 29761: 29761: template 29761: constexpr const _Tp&& 29761: get(const variant<_Types...>&& __v) 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get<__n>(std::move(__v)); 29761: } 29761: 29761: template 29761: constexpr add_pointer_t>> 29761: get_if(variant<_Types...>* __ptr) noexcept 29761: { 29761: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 29761: if (__ptr && __ptr->index() == _Np) 29761: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 29761: return nullptr; 29761: } 29761: 29761: template 29761: constexpr 29761: add_pointer_t>> 29761: get_if(const variant<_Types...>* __ptr) noexcept 29761: { 29761: using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); 29761: if (__ptr && __ptr->index() == _Np) 29761: return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); 29761: return nullptr; 29761: } 29761: 29761: template 29761: constexpr add_pointer_t<_Tp> 29761: get_if(variant<_Types...>* __ptr) noexcept 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get_if<__n>(__ptr); 29761: } 29761: 29761: template 29761: constexpr add_pointer_t 29761: get_if(const variant<_Types...>* __ptr) noexcept 29761: { 29761: static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, 29761: "T must occur exactly once in alternatives"); 29761: static_assert(!is_void_v<_Tp>, "_Tp must not be void"); 29761: constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: return std::get_if<__n>(__ptr); 29761: } 29761: 29761: struct monostate { }; 29761: # 1264 "/usr/include/c++/14/variant" 3 29761: template constexpr bool operator <(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem < __rhs_mem; } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); }, __rhs); return __ret; } 29761: template constexpr bool operator <=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem <= __rhs_mem; } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); }, __rhs); return __ret; } 29761: template constexpr bool operator ==(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem == __rhs_mem; } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); }, __rhs); return __ret; } 29761: template constexpr bool operator !=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem != __rhs_mem; } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); }, __rhs); return __ret; } 29761: template constexpr bool operator >=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem >= __rhs_mem; } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); }, __rhs); return __ret; } 29761: template constexpr bool operator >(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem > __rhs_mem; } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); }, __rhs); return __ret; } 29761: 29761: 29761: 29761: constexpr bool operator==(monostate, monostate) noexcept { return true; } 29761: # 1305 "/usr/include/c++/14/variant" 3 29761: constexpr bool operator!=(monostate, monostate) noexcept { return false; } 29761: constexpr bool operator<(monostate, monostate) noexcept { return false; } 29761: constexpr bool operator>(monostate, monostate) noexcept { return false; } 29761: constexpr bool operator<=(monostate, monostate) noexcept { return true; } 29761: constexpr bool operator>=(monostate, monostate) noexcept { return true; } 29761: 29761: 29761: template 29761: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 29761: visit(_Visitor&&, _Variants&&...); 29761: 29761: template 29761: 29761: inline enable_if_t<(is_move_constructible_v<_Types> && ...) 29761: && (is_swappable_v<_Types> && ...)> 29761: swap(variant<_Types...>& __lhs, variant<_Types...>& __rhs) 29761: noexcept(noexcept(__lhs.swap(__rhs))) 29761: { __lhs.swap(__rhs); } 29761: 29761: template 29761: enable_if_t && ...) 29761: && (is_swappable_v<_Types> && ...))> 29761: swap(variant<_Types...>&, variant<_Types...>&) = delete; 29761: 29761: class bad_variant_access : public exception 29761: { 29761: public: 29761: bad_variant_access() noexcept { } 29761: 29761: const char* what() const noexcept override 29761: { return _M_reason; } 29761: 29761: private: 29761: bad_variant_access(const char* __reason) noexcept : _M_reason(__reason) { } 29761: 29761: 29761: const char* _M_reason = "bad variant access"; 29761: 29761: friend void __throw_bad_variant_access(const char* __what); 29761: }; 29761: 29761: 29761: inline void 29761: __throw_bad_variant_access(const char* __what) 29761: { (throw (bad_variant_access(__what))); } 29761: 29761: inline void 29761: __throw_bad_variant_access(bool __valueless) 29761: { 29761: if (__valueless) [[__unlikely__]] 29761: __throw_bad_variant_access("std::get: variant is valueless"); 29761: else 29761: __throw_bad_variant_access("std::get: wrong index for variant"); 29761: } 29761: 29761: template 29761: class variant 29761: : private __detail::__variant::_Variant_base<_Types...>, 29761: private _Enable_copy_move< 29761: __detail::__variant::_Traits<_Types...>::_S_copy_ctor, 29761: __detail::__variant::_Traits<_Types...>::_S_copy_assign, 29761: __detail::__variant::_Traits<_Types...>::_S_move_ctor, 29761: __detail::__variant::_Traits<_Types...>::_S_move_assign, 29761: variant<_Types...>> 29761: { 29761: private: 29761: template 29761: friend decltype(auto) 29761: __variant_cast(_Tp&&); 29761: 29761: static_assert(sizeof...(_Types) > 0, 29761: "variant must have at least one alternative"); 29761: 29761: 29761: 29761: 29761: static_assert((std::is_object_v<_Types> && ...), 29761: "variant alternatives must be object types"); 29761: 29761: 29761: using _Base = __detail::__variant::_Variant_base<_Types...>; 29761: 29761: template 29761: static constexpr bool __not_self 29761: = !is_same_v<__remove_cvref_t<_Tp>, variant>; 29761: 29761: template 29761: static constexpr bool 29761: __exactly_once = __detail::__variant::__exactly_once<_Tp, _Types...>; 29761: 29761: template 29761: static constexpr size_t __accepted_index 29761: = __detail::__variant::__accepted_index<_Tp, variant>; 29761: 29761: template> 29761: using __to_type = typename _Nth_type<_Np, _Types...>::type; 29761: 29761: template>> 29761: using __accepted_type = __to_type<__accepted_index<_Tp>>; 29761: 29761: template 29761: static constexpr size_t __index_of 29761: = std::__find_uniq_type_in_pack<_Tp, _Types...>(); 29761: 29761: using _Traits = __detail::__variant::_Traits<_Types...>; 29761: 29761: template 29761: struct __is_in_place_tag : false_type { }; 29761: template 29761: struct __is_in_place_tag> : true_type { }; 29761: template 29761: struct __is_in_place_tag> : true_type { }; 29761: 29761: template 29761: static constexpr bool __not_in_place_tag 29761: = !__is_in_place_type_v<__remove_cvref_t<_Tp>> 29761: && !__is_in_place_index_v<__remove_cvref_t<_Tp>>; 29761: 29761: public: 29761: 29761: 29761: 29761: template, 29761: typename = enable_if_t>> 29761: constexpr 29761: variant() noexcept(is_nothrow_default_constructible_v<__to_type<0>>) 29761: { } 29761: 29761: 29761: variant(const variant& __rhs) = default; 29761: variant(variant&&) = default; 29761: variant& operator=(const variant&) = default; 29761: variant& operator=(variant&&) = default; 29761: ~variant() = default; 29761: 29761: template, 29761: typename = enable_if_t<__not_in_place_tag<_Tp>>, 29761: typename _Tj = __accepted_type<_Tp&&>, 29761: typename = enable_if_t<__exactly_once<_Tj> 29761: && is_constructible_v<_Tj, _Tp>>> 29761: constexpr 29761: variant(_Tp&& __t) 29761: noexcept(is_nothrow_constructible_v<_Tj, _Tp>) 29761: : variant(in_place_index<__accepted_index<_Tp>>, 29761: std::forward<_Tp>(__t)) 29761: { } 29761: 29761: template 29761: && is_constructible_v<_Tp, _Args...>>> 29761: constexpr explicit 29761: variant(in_place_type_t<_Tp>, _Args&&... __args) 29761: : variant(in_place_index<__index_of<_Tp>>, 29761: std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: && is_constructible_v<_Tp, 29761: initializer_list<_Up>&, _Args...>>> 29761: constexpr explicit 29761: variant(in_place_type_t<_Tp>, initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : variant(in_place_index<__index_of<_Tp>>, __il, 29761: std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template, 29761: typename = enable_if_t>> 29761: constexpr explicit 29761: variant(in_place_index_t<_Np>, _Args&&... __args) 29761: : _Base(in_place_index<_Np>, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template, 29761: typename = enable_if_t&, 29761: _Args...>>> 29761: constexpr explicit 29761: variant(in_place_index_t<_Np>, initializer_list<_Up> __il, 29761: _Args&&... __args) 29761: : _Base(in_place_index<_Np>, __il, std::forward<_Args>(__args)...) 29761: { } 29761: 29761: template 29761: 29761: enable_if_t<__exactly_once<__accepted_type<_Tp&&>> 29761: && is_constructible_v<__accepted_type<_Tp&&>, _Tp> 29761: && is_assignable_v<__accepted_type<_Tp&&>&, _Tp>, 29761: variant&> 29761: operator=(_Tp&& __rhs) 29761: noexcept(is_nothrow_assignable_v<__accepted_type<_Tp&&>&, _Tp> 29761: && is_nothrow_constructible_v<__accepted_type<_Tp&&>, _Tp>) 29761: { 29761: constexpr auto __index = __accepted_index<_Tp>; 29761: if (index() == __index) 29761: std::get<__index>(*this) = std::forward<_Tp>(__rhs); 29761: else 29761: { 29761: using _Tj = __accepted_type<_Tp&&>; 29761: if constexpr (is_nothrow_constructible_v<_Tj, _Tp> 29761: || !is_nothrow_move_constructible_v<_Tj>) 29761: this->emplace<__index>(std::forward<_Tp>(__rhs)); 29761: else 29761: 29761: 29761: this->emplace<__index>(_Tj(std::forward<_Tp>(__rhs))); 29761: } 29761: return *this; 29761: } 29761: 29761: template 29761: 29761: enable_if_t && __exactly_once<_Tp>, 29761: _Tp&> 29761: emplace(_Args&&... __args) 29761: { 29761: constexpr size_t __index = __index_of<_Tp>; 29761: return this->emplace<__index>(std::forward<_Args>(__args)...); 29761: } 29761: 29761: template 29761: 29761: enable_if_t&, _Args...> 29761: && __exactly_once<_Tp>, 29761: _Tp&> 29761: emplace(initializer_list<_Up> __il, _Args&&... __args) 29761: { 29761: constexpr size_t __index = __index_of<_Tp>; 29761: return this->emplace<__index>(__il, std::forward<_Args>(__args)...); 29761: } 29761: 29761: template 29761: 29761: enable_if_t, _Args...>, 29761: __to_type<_Np>&> 29761: emplace(_Args&&... __args) 29761: { 29761: namespace __variant = std::__detail::__variant; 29761: using type = typename _Nth_type<_Np, _Types...>::type; 29761: 29761: 29761: if constexpr (is_nothrow_constructible_v) 29761: { 29761: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 29761: } 29761: else if constexpr (is_scalar_v) 29761: { 29761: 29761: const type __tmp(std::forward<_Args>(__args)...); 29761: 29761: __variant::__emplace<_Np>(*this, __tmp); 29761: } 29761: else if constexpr (__variant::_Never_valueless_alt() 29761: && _Traits::_S_move_assign) 29761: { 29761: 29761: variant __tmp(in_place_index<_Np>, 29761: std::forward<_Args>(__args)...); 29761: 29761: *this = std::move(__tmp); 29761: } 29761: else 29761: { 29761: 29761: 29761: __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); 29761: } 29761: return std::get<_Np>(*this); 29761: } 29761: 29761: template 29761: 29761: enable_if_t, 29761: initializer_list<_Up>&, _Args...>, 29761: __to_type<_Np>&> 29761: emplace(initializer_list<_Up> __il, _Args&&... __args) 29761: { 29761: namespace __variant = std::__detail::__variant; 29761: using type = typename _Nth_type<_Np, _Types...>::type; 29761: 29761: 29761: if constexpr (is_nothrow_constructible_v&, 29761: _Args...>) 29761: { 29761: __variant::__emplace<_Np>(*this, __il, 29761: std::forward<_Args>(__args)...); 29761: } 29761: else if constexpr (__variant::_Never_valueless_alt() 29761: && _Traits::_S_move_assign) 29761: { 29761: 29761: variant __tmp(in_place_index<_Np>, __il, 29761: std::forward<_Args>(__args)...); 29761: 29761: *this = std::move(__tmp); 29761: } 29761: else 29761: { 29761: 29761: 29761: __variant::__emplace<_Np>(*this, __il, 29761: std::forward<_Args>(__args)...); 29761: } 29761: return std::get<_Np>(*this); 29761: } 29761: 29761: template 29761: enable_if_t emplace(_Args&&...) = delete; 29761: 29761: template 29761: enable_if_t> emplace(_Args&&...) = delete; 29761: 29761: constexpr bool valueless_by_exception() const noexcept 29761: { return !this->_M_valid(); } 29761: 29761: constexpr size_t index() const noexcept 29761: { 29761: using __index_type = typename _Base::__index_type; 29761: if constexpr (__detail::__variant::__never_valueless<_Types...>()) 29761: return this->_M_index; 29761: else if constexpr (sizeof...(_Types) <= __index_type(-1) / 2) 29761: return make_signed_t<__index_type>(this->_M_index); 29761: else 29761: return size_t(__index_type(this->_M_index + 1)) - 1; 29761: } 29761: 29761: 29761: void 29761: swap(variant& __rhs) 29761: noexcept((__is_nothrow_swappable<_Types>::value && ...) 29761: && is_nothrow_move_constructible_v) 29761: { 29761: static_assert((is_move_constructible_v<_Types> && ...)); 29761: 29761: 29761: if (__rhs.valueless_by_exception()) [[__unlikely__]] 29761: { 29761: if (!this->valueless_by_exception()) [[__likely__]] 29761: __rhs.swap(*this); 29761: return; 29761: } 29761: 29761: namespace __variant = __detail::__variant; 29761: 29761: __variant::__raw_idx_visit( 29761: [this, &__rhs](auto&& __rhs_mem, auto __rhs_index) mutable 29761: { 29761: constexpr size_t __j = __rhs_index; 29761: if constexpr (__j != variant_npos) 29761: { 29761: if (this->index() == __j) 29761: { 29761: using std::swap; 29761: swap(std::get<__j>(*this), __rhs_mem); 29761: } 29761: else 29761: { 29761: auto __tmp(std::move(__rhs_mem)); 29761: 29761: if constexpr (_Traits::_S_trivial_move_assign) 29761: __rhs = std::move(*this); 29761: else 29761: __variant::__raw_idx_visit( 29761: [&__rhs](auto&& __this_mem, auto __this_index) mutable 29761: { 29761: constexpr size_t __k = __this_index; 29761: if constexpr (__k != variant_npos) 29761: __variant::__emplace<__k>(__rhs, 29761: std::move(__this_mem)); 29761: }, *this); 29761: 29761: __variant::__emplace<__j>(*this, std::move(__tmp)); 29761: } 29761: } 29761: }, __rhs); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: private: 29761: template 29761: friend constexpr decltype(auto) 29761: __detail::__variant::__get(_Vp&& __v) noexcept; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: template friend constexpr bool operator <(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: template friend constexpr bool operator <=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: template friend constexpr bool operator ==(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: template friend constexpr bool operator !=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: template friend constexpr bool operator >=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: template friend constexpr bool operator >(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); 29761: 29761: 29761: }; 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>>& 29761: get(variant<_Types...>& __v) 29761: { 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: if (__v.index() != _Np) 29761: __throw_bad_variant_access(__v.valueless_by_exception()); 29761: return __detail::__variant::__get<_Np>(__v); 29761: } 29761: 29761: template 29761: constexpr variant_alternative_t<_Np, variant<_Types...>>&& 29761: get(variant<_Types...>&& __v) 29761: { 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: if (__v.index() != _Np) 29761: __throw_bad_variant_access(__v.valueless_by_exception()); 29761: return __detail::__variant::__get<_Np>(std::move(__v)); 29761: } 29761: 29761: template 29761: constexpr const variant_alternative_t<_Np, variant<_Types...>>& 29761: get(const variant<_Types...>& __v) 29761: { 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: if (__v.index() != _Np) 29761: __throw_bad_variant_access(__v.valueless_by_exception()); 29761: return __detail::__variant::__get<_Np>(__v); 29761: } 29761: 29761: template 29761: constexpr const variant_alternative_t<_Np, variant<_Types...>>&& 29761: get(const variant<_Types...>&& __v) 29761: { 29761: static_assert(_Np < sizeof...(_Types), 29761: "The index must be in [0, number of alternatives)"); 29761: if (__v.index() != _Np) 29761: __throw_bad_variant_access(__v.valueless_by_exception()); 29761: return __detail::__variant::__get<_Np>(std::move(__v)); 29761: } 29761: 29761: 29761: template 29761: constexpr decltype(auto) 29761: __do_visit(_Visitor&& __visitor, _Variants&&... __variants) 29761: { 29761: 29761: if constexpr (sizeof...(_Variants) == 0) 29761: { 29761: if constexpr (is_void_v<_Result_type>) 29761: return (void) std::forward<_Visitor>(__visitor)(); 29761: else 29761: return std::forward<_Visitor>(__visitor)(); 29761: } 29761: else 29761: { 29761: constexpr size_t __max = 11; 29761: 29761: 29761: using _V0 = typename _Nth_type<0, _Variants...>::type; 29761: 29761: constexpr auto __n = variant_size_v>; 29761: 29761: if constexpr (sizeof...(_Variants) > 1 || __n > __max) 29761: { 29761: 29761: constexpr auto& __vtable = __detail::__variant::__gen_vtable< 29761: _Result_type, _Visitor&&, _Variants&&...>::_S_vtable; 29761: 29761: auto __func_ptr = __vtable._M_access(__variants.index()...); 29761: return (*__func_ptr)(std::forward<_Visitor>(__visitor), 29761: std::forward<_Variants>(__variants)...); 29761: } 29761: else 29761: { 29761: 29761: _V0& __v0 29761: = [](_V0& __v, ...) -> _V0& { return __v; }(__variants...); 29761: 29761: using __detail::__variant::_Multi_array; 29761: using __detail::__variant::__gen_vtable_impl; 29761: using _Ma = _Multi_array<_Result_type (*)(_Visitor&&, _V0&&)>; 29761: # 1817 "/usr/include/c++/14/variant" 3 29761: switch (__v0.index()) 29761: { 29761: case 0: { if constexpr (0 < __n) { return __gen_vtable_impl<_Ma, index_sequence<0>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 1: { if constexpr (1 < __n) { return __gen_vtable_impl<_Ma, index_sequence<1>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 2: { if constexpr (2 < __n) { return __gen_vtable_impl<_Ma, index_sequence<2>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 3: { if constexpr (3 < __n) { return __gen_vtable_impl<_Ma, index_sequence<3>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 4: { if constexpr (4 < __n) { return __gen_vtable_impl<_Ma, index_sequence<4>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 5: { if constexpr (5 < __n) { return __gen_vtable_impl<_Ma, index_sequence<5>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 6: { if constexpr (6 < __n) { return __gen_vtable_impl<_Ma, index_sequence<6>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 7: { if constexpr (7 < __n) { return __gen_vtable_impl<_Ma, index_sequence<7>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 8: { if constexpr (8 < __n) { return __gen_vtable_impl<_Ma, index_sequence<8>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 9: { if constexpr (9 < __n) { return __gen_vtable_impl<_Ma, index_sequence<9>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case 10: { if constexpr (10 < __n) { return __gen_vtable_impl<_Ma, index_sequence<10>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } 29761: case variant_npos: 29761: using __detail::__variant::__variant_idx_cookie; 29761: using __detail::__variant::__variant_cookie; 29761: if constexpr (is_same_v<_Result_type, __variant_idx_cookie> 29761: || is_same_v<_Result_type, __variant_cookie>) 29761: { 29761: using _Npos = index_sequence; 29761: return __gen_vtable_impl<_Ma, _Npos>:: 29761: __visit_invoke(std::forward<_Visitor>(__visitor), 29761: std::forward<_V0>(__v0)); 29761: } 29761: else 29761: __builtin_unreachable(); 29761: default: 29761: __builtin_unreachable(); 29761: } 29761: 29761: 29761: } 29761: } 29761: } 29761: 29761: 29761: template 29761: constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> 29761: visit(_Visitor&& __visitor, _Variants&&... __variants) 29761: { 29761: namespace __variant = std::__detail::__variant; 29761: 29761: if ((__variant::__as(__variants).valueless_by_exception() || ...)) 29761: __throw_bad_variant_access("std::visit: variant is valueless"); 29761: 29761: using _Result_type 29761: = __detail::__variant::__visit_result_t<_Visitor, _Variants...>; 29761: 29761: using _Tag = __detail::__variant::__deduce_visit_result<_Result_type>; 29761: 29761: if constexpr (sizeof...(_Variants) == 1) 29761: { 29761: using _Vp = decltype(__variant::__as(std::declval<_Variants>()...)); 29761: 29761: constexpr bool __visit_rettypes_match = __detail::__variant:: 29761: __check_visitor_results<_Visitor, _Vp>( 29761: make_index_sequence>>()); 29761: if constexpr (!__visit_rettypes_match) 29761: { 29761: static_assert(__visit_rettypes_match, 29761: "std::visit requires the visitor to have the same " 29761: "return type for all alternatives of a variant"); 29761: return; 29761: } 29761: else 29761: return std::__do_visit<_Tag>( 29761: std::forward<_Visitor>(__visitor), 29761: static_cast<_Vp>(__variants)...); 29761: } 29761: else 29761: return std::__do_visit<_Tag>( 29761: std::forward<_Visitor>(__visitor), 29761: __variant::__as(std::forward<_Variants>(__variants))...); 29761: } 29761: # 1908 "/usr/include/c++/14/variant" 3 29761: template 29761: struct __variant_hash_call_base_impl 29761: { 29761: size_t 29761: operator()(const variant<_Types...>& __t) const 29761: noexcept((is_nothrow_invocable_v>, _Types> && ...)) 29761: { 29761: size_t __ret; 29761: __detail::__variant::__raw_visit( 29761: [&__t, &__ret](auto&& __t_mem) mutable 29761: { 29761: using _Type = __remove_cvref_t; 29761: if constexpr (!is_same_v<_Type, 29761: __detail::__variant::__variant_cookie>) 29761: __ret = std::hash{}(__t.index()) 29761: + std::hash<_Type>{}(__t_mem); 29761: else 29761: __ret = std::hash{}(__t.index()); 29761: }, __t); 29761: return __ret; 29761: } 29761: }; 29761: 29761: template 29761: struct __variant_hash_call_base_impl {}; 29761: 29761: template 29761: using __variant_hash_call_base = 29761: __variant_hash_call_base_impl<(__poison_hash>:: 29761: __enable_hash_call &&...), _Types...>; 29761: 29761: 29761: template 29761: struct hash> 29761: : private __detail::__variant::_Variant_hash_base< 29761: variant<_Types...>, std::index_sequence_for<_Types...>>, 29761: public __variant_hash_call_base<_Types...> 29761: { 29761: using result_type [[__deprecated__]] = size_t; 29761: using argument_type [[__deprecated__]] = variant<_Types...>; 29761: }; 29761: 29761: template<> 29761: struct hash 29761: { 29761: using result_type [[__deprecated__]] = size_t; 29761: using argument_type [[__deprecated__]] = monostate; 29761: 29761: size_t 29761: operator()(const monostate&) const noexcept 29761: { 29761: constexpr size_t __magic_monostate_hash = -7777; 29761: return __magic_monostate_hash; 29761: } 29761: }; 29761: 29761: template 29761: struct __is_fast_hash>> 29761: : bool_constant<(__is_fast_hash<_Types>::value && ...)> 29761: { }; 29761: 29761: 29761: } 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 2 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class Logger; 29761: # 53 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: class MergeOperator : public Customizable { 29761: public: 29761: virtual ~MergeOperator() {} 29761: static const char* Type() { return "MergeOperator"; } 29761: static Status CreateFromString(const ConfigOptions& opts, 29761: const std::string& id, 29761: std::shared_ptr* result); 29761: # 79 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool FullMerge(const Slice& , const Slice* , 29761: const std::deque& , 29761: std::string* , Logger* ) const { 29761: 29761: 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29761: (static_cast ( 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: false 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: "false" 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 83 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: ; 29761: return false; 29761: } 29761: 29761: struct MergeOperationInput { 29761: 29761: explicit MergeOperationInput(const Slice& _key, 29761: const Slice* _existing_value, 29761: const std::vector& _operand_list, 29761: Logger* _logger) 29761: : key(_key), 29761: existing_value(_existing_value), 29761: operand_list(_operand_list), 29761: logger(_logger) {} 29761: 29761: 29761: const Slice& key; 29761: 29761: 29761: const Slice* existing_value; 29761: 29761: const std::vector& operand_list; 29761: 29761: 29761: Logger* logger; 29761: }; 29761: 29761: enum class OpFailureScope { 29761: kDefault, 29761: kTryMerge, 29761: kMustMerge, 29761: kOpFailureScopeMax, 29761: }; 29761: 29761: struct MergeOperationOutput { 29761: explicit MergeOperationOutput(std::string& _new_value, 29761: Slice& _existing_operand) 29761: : new_value(_new_value), existing_operand(_existing_operand) {} 29761: 29761: 29761: std::string& new_value; 29761: 29761: 29761: 29761: Slice& existing_operand; 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 29761: }; 29761: # 161 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool FullMergeV2(const MergeOperationInput& merge_in, 29761: MergeOperationOutput* merge_out) const; 29761: 29761: struct MergeOperationInputV3 { 29761: using ExistingValue = std::variant; 29761: using OperandList = std::vector; 29761: 29761: explicit MergeOperationInputV3(const Slice& _key, 29761: ExistingValue&& _existing_value, 29761: const OperandList& _operand_list, 29761: Logger* _logger) 29761: : key(_key), 29761: existing_value(std::move(_existing_value)), 29761: operand_list(_operand_list), 29761: logger(_logger) {} 29761: 29761: 29761: const Slice& key; 29761: 29761: 29761: 29761: ExistingValue existing_value; 29761: 29761: const OperandList& operand_list; 29761: 29761: Logger* logger; 29761: }; 29761: 29761: struct MergeOperationOutputV3 { 29761: using NewColumns = std::vector>; 29761: using NewValue = std::variant; 29761: 29761: 29761: 29761: 29761: NewValue new_value; 29761: 29761: OpFailureScope op_failure_scope = OpFailureScope::kDefault; 29761: }; 29761: # 209 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool FullMergeV3(const MergeOperationInputV3& merge_in, 29761: MergeOperationOutputV3* merge_out) const; 29761: # 243 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool PartialMerge(const Slice& , const Slice& , 29761: const Slice& , 29761: std::string* , 29761: Logger* ) const { 29761: return false; 29761: } 29761: # 271 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool PartialMergeMulti(const Slice& key, 29761: const std::deque& operand_list, 29761: std::string* new_value, Logger* logger) const; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: const char* Name() const override = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool AllowSingleOperand() const { return false; } 29761: # 300 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool ShouldMerge(const std::vector& ) const { 29761: return false; 29761: } 29761: }; 29761: 29761: 29761: class AssociativeMergeOperator : public MergeOperator { 29761: public: 29761: ~AssociativeMergeOperator() override {} 29761: # 323 "/build/reproducible-path/rocksdb-9.10.0/include/rocksdb/merge_operator.h" 29761: virtual bool Merge(const Slice& key, const Slice* existing_value, 29761: const Slice& value, std::string* new_value, 29761: Logger* logger) const = 0; 29761: 29761: private: 29761: 29761: bool FullMergeV2(const MergeOperationInput& merge_in, 29761: MergeOperationOutput* merge_out) const override; 29761: 29761: bool PartialMerge(const Slice& key, const Slice& left_operand, 29761: const Slice& right_operand, std::string* new_value, 29761: Logger* logger) const override; 29761: }; 29761: 29761: } 29761: # 19 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 2 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Comparator; 29761: class Iterator; 29761: class Logger; 29761: class MergeOperator; 29761: class Statistics; 29761: class SystemClock; 29761: class BlobFetcher; 29761: class PrefetchBufferCollection; 29761: struct CompactionIterationStats; 29761: 29761: class MergeHelper { 29761: public: 29761: MergeHelper(Env* env, const Comparator* user_comparator, 29761: const MergeOperator* user_merge_operator, 29761: const CompactionFilter* compaction_filter, Logger* logger, 29761: bool assert_valid_internal_key, SequenceNumber latest_snapshot, 29761: const SnapshotChecker* snapshot_checker = nullptr, int level = 0, 29761: Statistics* stats = nullptr, 29761: const std::atomic* shutting_down = nullptr); 29761: # 55 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: struct NoBaseValueTag {}; 29761: static constexpr NoBaseValueTag kNoBaseValue{}; 29761: 29761: struct PlainBaseValueTag {}; 29761: static constexpr PlainBaseValueTag kPlainBaseValue{}; 29761: 29761: struct WideBaseValueTag {}; 29761: static constexpr WideBaseValueTag kWideBaseValue{}; 29761: 29761: template 29761: static Status TimedFullMerge(const MergeOperator* merge_operator, 29761: const Slice& key, NoBaseValueTag, 29761: const std::vector& operands, 29761: Logger* logger, Statistics* statistics, 29761: SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, 29761: ResultTs... results) { 29761: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 29761: 29761: return TimedFullMergeImpl( 29761: merge_operator, key, std::move(existing_value), operands, logger, 29761: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29761: } 29761: 29761: template 29761: static Status TimedFullMerge( 29761: const MergeOperator* merge_operator, const Slice& key, PlainBaseValueTag, 29761: const Slice& value, const std::vector& operands, Logger* logger, 29761: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 29761: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(value); 29761: 29761: return TimedFullMergeImpl( 29761: merge_operator, key, std::move(existing_value), operands, logger, 29761: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29761: } 29761: 29761: template 29761: static Status TimedFullMerge( 29761: const MergeOperator* merge_operator, const Slice& key, WideBaseValueTag, 29761: const Slice& entity, const std::vector& operands, Logger* logger, 29761: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, ResultTs... results) { 29761: MergeOperator::MergeOperationInputV3::ExistingValue existing_value; 29761: 29761: Slice entity_copy(entity); 29761: WideColumns existing_columns; 29761: 29761: const Status s = 29761: WideColumnSerialization::Deserialize(entity_copy, existing_columns); 29761: if (!s.ok()) { 29761: return s; 29761: } 29761: 29761: existing_value = std::move(existing_columns); 29761: 29761: return TimedFullMergeImpl( 29761: merge_operator, key, std::move(existing_value), operands, logger, 29761: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29761: } 29761: 29761: template 29761: static Status TimedFullMerge(const MergeOperator* merge_operator, 29761: const Slice& key, WideBaseValueTag, 29761: const WideColumns& columns, 29761: const std::vector& operands, 29761: Logger* logger, Statistics* statistics, 29761: SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, 29761: ResultTs... results) { 29761: MergeOperator::MergeOperationInputV3::ExistingValue existing_value(columns); 29761: 29761: return TimedFullMergeImpl( 29761: merge_operator, key, std::move(existing_value), operands, logger, 29761: statistics, clock, update_num_ops_stats, op_failure_scope, results...); 29761: } 29761: # 168 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: Status MergeUntil(InternalIterator* iter, 29761: CompactionRangeDelAggregator* range_del_agg, 29761: const SequenceNumber stop_before, const bool at_bottom, 29761: const bool allow_data_in_errors, 29761: const BlobFetcher* blob_fetcher, 29761: const std::string* const full_history_ts_low, 29761: PrefetchBufferCollection* prefetch_buffers, 29761: CompactionIterationStats* c_iter_stats); 29761: 29761: 29761: 29761: 29761: 29761: 29761: CompactionFilter::Decision FilterMerge(const Slice& user_key, 29761: const Slice& value_slice); 29761: # 210 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: const std::deque& keys() const { return keys_; } 29761: const std::vector& values() const { 29761: return merge_context_.GetOperands(); 29761: } 29761: uint64_t TotalFilterTime() const { return total_filter_time_; } 29761: bool HasOperator() const { return user_merge_operator_ != nullptr; } 29761: 29761: 29761: 29761: 29761: bool FilteredUntil(Slice* skip_until) const { 29761: if (!has_compaction_filter_skip_until_) { 29761: return false; 29761: } 29761: 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: (static_cast ( 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: compaction_filter_ != nullptr 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: "compaction_filter_ != nullptr" 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 224 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: ; 29761: 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: (static_cast ( 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: skip_until != nullptr 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: "skip_until != nullptr" 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 225 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: ; 29761: 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: (static_cast ( 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: compaction_filter_skip_until_.Valid() 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: "compaction_filter_skip_until_.Valid()" 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 226 "/build/reproducible-path/rocksdb-9.10.0/db/merge_helper.h" 29761: ; 29761: *skip_until = compaction_filter_skip_until_.Encode(); 29761: return true; 29761: } 29761: 29761: private: 29761: Env* env_; 29761: SystemClock* clock_; 29761: const Comparator* user_comparator_; 29761: const MergeOperator* user_merge_operator_; 29761: const CompactionFilter* compaction_filter_; 29761: const std::atomic* shutting_down_; 29761: Logger* logger_; 29761: bool assert_valid_internal_key_; 29761: bool allow_single_operand_; 29761: SequenceNumber latest_snapshot_; 29761: const SnapshotChecker* const snapshot_checker_; 29761: int level_; 29761: 29761: 29761: 29761: 29761: 29761: std::deque keys_; 29761: 29761: mutable MergeContext merge_context_; 29761: 29761: StopWatchNano filter_timer_; 29761: uint64_t total_filter_time_; 29761: Statistics* stats_; 29761: 29761: bool has_compaction_filter_skip_until_ = false; 29761: std::string compaction_filter_value_; 29761: InternalKey compaction_filter_skip_until_; 29761: 29761: bool IsShuttingDown() { 29761: 29761: return shutting_down_ && shutting_down_->load(std::memory_order_relaxed); 29761: } 29761: 29761: template 29761: static Status TimedFullMergeCommonImpl( 29761: const MergeOperator* merge_operator, const Slice& key, 29761: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29761: const std::vector& operands, Logger* logger, 29761: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, Visitor&& visitor); 29761: 29761: 29761: 29761: static Status TimedFullMergeImpl( 29761: const MergeOperator* merge_operator, const Slice& key, 29761: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29761: const std::vector& operands, Logger* logger, 29761: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, std::string* result, 29761: Slice* result_operand, ValueType* result_type); 29761: 29761: 29761: 29761: 29761: 29761: static Status TimedFullMergeImpl( 29761: const MergeOperator* merge_operator, const Slice& key, 29761: MergeOperator::MergeOperationInputV3::ExistingValue&& existing_value, 29761: const std::vector& operands, Logger* logger, 29761: Statistics* statistics, SystemClock* clock, bool update_num_ops_stats, 29761: MergeOperator::OpFailureScope* op_failure_scope, 29761: std::string* result_value, PinnableWideColumns* result_entity); 29761: }; 29761: 29761: 29761: class MergeOutputIterator { 29761: public: 29761: 29761: explicit MergeOutputIterator(const MergeHelper* merge_helper); 29761: 29761: 29761: void SeekToFirst(); 29761: 29761: void Next(); 29761: 29761: Slice key() { return Slice(*it_keys_); } 29761: Slice value() { return Slice(*it_values_); } 29761: bool Valid() { return it_keys_ != merge_helper_->keys().rend(); } 29761: 29761: private: 29761: const MergeHelper* merge_helper_; 29761: std::deque::const_reverse_iterator it_keys_; 29761: std::vector::const_reverse_iterator it_values_; 29761: }; 29761: 29761: } 29761: # 22 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: 29761: # 31 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: namespace rocksdb { 29761: 29761: class Logger; 29761: # 42 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: class ConcurrentArena : public Allocator { 29761: public: 29761: 29761: 29761: 29761: 29761: explicit ConcurrentArena(size_t block_size = Arena::kMinBlockSize, 29761: AllocTracker* tracker = nullptr, 29761: size_t huge_page_size = 0); 29761: 29761: char* Allocate(size_t bytes) override { 29761: return AllocateImpl(bytes, false , 29761: [this, bytes]() { return arena_.Allocate(bytes); }); 29761: } 29761: 29761: char* AllocateAligned(size_t bytes, size_t huge_page_size = 0, 29761: Logger* logger = nullptr) override { 29761: size_t rounded_up = ((bytes - 1) | (sizeof(void*) - 1)) + 1; 29761: 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: (static_cast ( 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: "rounded_up >= bytes && rounded_up < bytes + sizeof(void*) && (rounded_up % sizeof(void*)) == 0" 29761: # 60 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: 29761: # 61 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: ; 29761: 29761: return AllocateImpl(rounded_up, huge_page_size != 0 , 29761: [this, rounded_up, huge_page_size, logger]() { 29761: return arena_.AllocateAligned(rounded_up, 29761: huge_page_size, logger); 29761: }); 29761: } 29761: 29761: size_t ApproximateMemoryUsage() const { 29761: std::unique_lock lock(arena_mutex_, std::defer_lock); 29761: lock.lock(); 29761: return arena_.ApproximateMemoryUsage() - ShardAllocatedAndUnused(); 29761: } 29761: 29761: size_t MemoryAllocatedBytes() const { 29761: return memory_allocated_bytes_.load(std::memory_order_relaxed); 29761: } 29761: 29761: size_t AllocatedAndUnused() const { 29761: return arena_allocated_and_unused_.load(std::memory_order_relaxed) + 29761: ShardAllocatedAndUnused(); 29761: } 29761: 29761: size_t IrregularBlockNum() const { 29761: return irregular_block_num_.load(std::memory_order_relaxed); 29761: } 29761: 29761: size_t BlockSize() const override { return arena_.BlockSize(); } 29761: 29761: private: 29761: struct Shard { 29761: char padding[40] ; 29761: mutable SpinMutex mutex; 29761: char* free_begin_; 29761: std::atomic allocated_and_unused_; 29761: 29761: Shard() : free_begin_(nullptr), allocated_and_unused_(0) {} 29761: }; 29761: 29761: static thread_local size_t tls_cpuid; 29761: 29761: char padding0[56] ; 29761: 29761: size_t shard_block_size_; 29761: 29761: CoreLocalArray shards_; 29761: 29761: Arena arena_; 29761: mutable SpinMutex arena_mutex_; 29761: std::atomic arena_allocated_and_unused_; 29761: std::atomic memory_allocated_bytes_; 29761: std::atomic irregular_block_num_; 29761: 29761: char padding1[56] ; 29761: 29761: Shard* Repick(); 29761: 29761: size_t ShardAllocatedAndUnused() const { 29761: size_t total = 0; 29761: for (size_t i = 0; i < shards_.Size(); ++i) { 29761: total += shards_.AccessAtCore(i)->allocated_and_unused_.load( 29761: std::memory_order_relaxed); 29761: } 29761: return total; 29761: } 29761: 29761: template 29761: char* AllocateImpl(size_t bytes, bool force_arena, const Func& func) { 29761: size_t cpu; 29761: 29761: 29761: 29761: 29761: 29761: std::unique_lock arena_lock(arena_mutex_, std::defer_lock); 29761: if (bytes > shard_block_size_ / 4 || force_arena || 29761: ((cpu = tls_cpuid) == 0 && 29761: !shards_.AccessAtCore(0)->allocated_and_unused_.load( 29761: std::memory_order_relaxed) && 29761: arena_lock.try_lock())) { 29761: if (!arena_lock.owns_lock()) { 29761: arena_lock.lock(); 29761: } 29761: auto rv = func(); 29761: Fixup(); 29761: return rv; 29761: } 29761: 29761: 29761: Shard* s = shards_.AccessAtCore(cpu & (shards_.Size() - 1)); 29761: if (!s->mutex.try_lock()) { 29761: s = Repick(); 29761: s->mutex.lock(); 29761: } 29761: std::unique_lock lock(s->mutex, std::adopt_lock); 29761: 29761: size_t avail = s->allocated_and_unused_.load(std::memory_order_relaxed); 29761: if (avail < bytes) { 29761: 29761: std::lock_guard reload_lock(arena_mutex_); 29761: 29761: 29761: 29761: auto exact = arena_allocated_and_unused_.load(std::memory_order_relaxed); 29761: 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: (static_cast ( 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: exact == arena_.AllocatedAndUnused() 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: "exact == arena_.AllocatedAndUnused()" 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 166 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: ; 29761: 29761: if (exact >= bytes && arena_.IsInInlineBlock()) { 29761: # 177 "/build/reproducible-path/rocksdb-9.10.0/memory/concurrent_arena.h" 29761: auto rv = func(); 29761: Fixup(); 29761: return rv; 29761: } 29761: 29761: avail = exact >= shard_block_size_ / 2 && exact < shard_block_size_ * 2 29761: ? exact 29761: : shard_block_size_; 29761: s->free_begin_ = arena_.AllocateAligned(avail); 29761: Fixup(); 29761: } 29761: s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); 29761: 29761: char* rv; 29761: if ((bytes % sizeof(void*)) == 0) { 29761: 29761: rv = s->free_begin_; 29761: s->free_begin_ += bytes; 29761: } else { 29761: 29761: rv = s->free_begin_ + avail - bytes; 29761: } 29761: return rv; 29761: } 29761: 29761: void Fixup() { 29761: arena_allocated_and_unused_.store(arena_.AllocatedAndUnused(), 29761: std::memory_order_relaxed); 29761: memory_allocated_bytes_.store(arena_.MemoryAllocatedBytes(), 29761: std::memory_order_relaxed); 29761: irregular_block_num_.store(arena_.IrregularBlockNum(), 29761: std::memory_order_relaxed); 29761: } 29761: 29761: ConcurrentArena(const ConcurrentArena&) = delete; 29761: ConcurrentArena& operator=(const ConcurrentArena&) = delete; 29761: }; 29761: 29761: } 29761: # 28 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: 29761: 29761: 29761: 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/cast_util.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: template 29761: inline DestClass* static_cast_with_check(SrcClass* x) { 29761: DestClass* ret = static_cast(x); 29761: 29761: 29761: 29761: return ret; 29761: } 29761: 29761: template 29761: inline std::shared_ptr static_cast_with_check( 29761: std::shared_ptr&& x) { 29761: 29761: 29761: 29761: auto ret = std::static_pointer_cast(std::move(x)); 29761: 29761: 29761: 29761: return ret; 29761: } 29761: 29761: 29761: 29761: 29761: 29761: template 29761: inline To lossless_cast(From x) { 29761: using FromValue = typename std::remove_reference::type; 29761: static_assert( 29761: std::is_integral::value || std::is_enum::value, 29761: "Only works on integral types"); 29761: static_assert(std::is_integral::value || std::is_enum::value, 29761: "Only works on integral types"); 29761: static_assert(sizeof(To) >= sizeof(FromValue), "Must be lossless"); 29761: return static_cast(x); 29761: } 29761: 29761: 29761: 29761: 29761: template 29761: inline const std::initializer_list& List( 29761: const std::initializer_list& list) { 29761: return list; 29761: } 29761: 29761: 29761: 29761: template 29761: class UnownedPtr { 29761: public: 29761: UnownedPtr() = default; 29761: UnownedPtr(std::nullptr_t) {} 29761: UnownedPtr(T* ptr) : ptr_(ptr) {} 29761: UnownedPtr(const UnownedPtr&) = default; 29761: UnownedPtr(UnownedPtr&&) = default; 29761: UnownedPtr& operator=(const UnownedPtr&) = default; 29761: UnownedPtr& operator=(UnownedPtr&&) = default; 29761: 29761: T* get() const { return ptr_; } 29761: T* operator->() const { return ptr_; } 29761: T& operator*() const { return *ptr_; } 29761: operator bool() const { return ptr_ != nullptr; } 29761: 29761: private: 29761: T* ptr_ = nullptr; 29761: }; 29761: 29761: } 29761: # 34 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 18 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29761: namespace rocksdb { 29761: 29761: class Slice; 29761: class Allocator; 29761: class Logger; 29761: # 36 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29761: class DynamicBloom { 29761: public: 29761: # 47 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29761: explicit DynamicBloom(Allocator* allocator, uint32_t total_bits, 29761: uint32_t num_probes = 6, size_t huge_page_tlb_size = 0, 29761: Logger* logger = nullptr); 29761: 29761: ~DynamicBloom() {} 29761: 29761: 29761: void Add(const Slice& key); 29761: 29761: 29761: void AddConcurrently(const Slice& key); 29761: 29761: 29761: void AddHash(uint32_t hash); 29761: 29761: 29761: void AddHashConcurrently(uint32_t hash); 29761: 29761: 29761: bool MayContain(const Slice& key) const; 29761: 29761: void MayContain(int num_keys, Slice* keys, bool* may_match) const; 29761: 29761: 29761: bool MayContainHash(uint32_t hash) const; 29761: 29761: void Prefetch(uint32_t h); 29761: 29761: private: 29761: 29761: 29761: uint32_t kLen; 29761: 29761: 29761: const uint32_t kNumDoubleProbes; 29761: 29761: std::atomic* data_; 29761: 29761: 29761: 29761: template 29761: void AddHash(uint32_t hash, const OrFunc& or_func); 29761: 29761: bool DoubleProbe(uint32_t h32, size_t a) const; 29761: }; 29761: 29761: inline void DynamicBloom::Add(const Slice& key) { AddHash(BloomHash(key)); } 29761: 29761: inline void DynamicBloom::AddConcurrently(const Slice& key) { 29761: AddHashConcurrently(BloomHash(key)); 29761: } 29761: 29761: inline void DynamicBloom::AddHash(uint32_t hash) { 29761: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 29761: ptr->store(ptr->load(std::memory_order_relaxed) | mask, 29761: std::memory_order_relaxed); 29761: }); 29761: } 29761: 29761: inline void DynamicBloom::AddHashConcurrently(uint32_t hash) { 29761: AddHash(hash, [](std::atomic* ptr, uint64_t mask) { 29761: 29761: 29761: 29761: 29761: 29761: if ((mask & ptr->load(std::memory_order_relaxed)) != mask) { 29761: ptr->fetch_or(mask, std::memory_order_relaxed); 29761: } 29761: }); 29761: } 29761: 29761: inline bool DynamicBloom::MayContain(const Slice& key) const { 29761: return (MayContainHash(BloomHash(key))); 29761: } 29761: 29761: inline void DynamicBloom::MayContain(int num_keys, Slice* keys, 29761: bool* may_match) const { 29761: std::array hashes; 29761: std::array byte_offsets; 29761: for (int i = 0; i < num_keys; ++i) { 29761: hashes[i] = BloomHash(keys[i]); 29761: size_t a = FastRange32(hashes[i], kLen); 29761: __builtin_prefetch(data_ + a, 0, 3); 29761: byte_offsets[i] = a; 29761: } 29761: 29761: for (int i = 0; i < num_keys; i++) { 29761: may_match[i] = DoubleProbe(hashes[i], byte_offsets[i]); 29761: } 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline void DynamicBloom::Prefetch(uint32_t h32) { 29761: size_t a = FastRange32(h32, kLen); 29761: __builtin_prefetch(data_ + a, 0, 3); 29761: } 29761: # 173 "/build/reproducible-path/rocksdb-9.10.0/util/dynamic_bloom.h" 29761: inline bool DynamicBloom::MayContainHash(uint32_t h32) const { 29761: size_t a = FastRange32(h32, kLen); 29761: __builtin_prefetch(data_ + a, 0, 3); 29761: return DoubleProbe(h32, a); 29761: } 29761: 29761: inline bool DynamicBloom::DoubleProbe(uint32_t h32, size_t byte_offset) const { 29761: 29761: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 29761: for (unsigned i = 0;; ++i) { 29761: 29761: uint64_t mask = 29761: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 29761: uint64_t val = data_[byte_offset ^ i].load(std::memory_order_relaxed); 29761: if (i + 1 >= kNumDoubleProbes) { 29761: return (val & mask) == mask; 29761: } else if ((val & mask) != mask) { 29761: return false; 29761: } 29761: h = (h >> 12) | (h << 52); 29761: } 29761: } 29761: 29761: template 29761: inline void DynamicBloom::AddHash(uint32_t h32, const OrFunc& or_func) { 29761: size_t a = FastRange32(h32, kLen); 29761: __builtin_prefetch(data_ + a, 0, 3); 29761: 29761: uint64_t h = 0x9e3779b97f4a7c13ULL * h32; 29761: for (unsigned i = 0;; ++i) { 29761: 29761: uint64_t mask = 29761: ((uint64_t)1 << (h & 63)) | ((uint64_t)1 << ((h >> 6) & 63)); 29761: or_func(&data_[a ^ i], mask); 29761: if (i + 1 >= kNumDoubleProbes) { 29761: return; 29761: } 29761: h = (h >> 12) | (h << 52); 29761: } 29761: } 29761: 29761: } 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 1 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 29761: 29761: # 38 "/build/reproducible-path/rocksdb-9.10.0/util/hash_containers.h" 29761: namespace rocksdb { 29761: 29761: template 29761: using UnorderedMap = std::unordered_map; 29761: 29761: template 29761: using UnorderedMapH = std::unordered_map; 29761: 29761: template 29761: using UnorderedSet = std::unordered_set; 29761: 29761: } 29761: # 37 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 2 29761: 29761: namespace rocksdb { 29761: 29761: struct FlushJobInfo; 29761: class Mutex; 29761: class MemTableIterator; 29761: class MergeContext; 29761: class SystemClock; 29761: 29761: struct ImmutableMemTableOptions { 29761: explicit ImmutableMemTableOptions(const ImmutableOptions& ioptions, 29761: const MutableCFOptions& mutable_cf_options); 29761: size_t arena_block_size; 29761: uint32_t memtable_prefix_bloom_bits; 29761: size_t memtable_huge_page_size; 29761: bool memtable_whole_key_filtering; 29761: bool inplace_update_support; 29761: size_t inplace_update_num_locks; 29761: UpdateStatus (*inplace_callback)(char* existing_value, 29761: uint32_t* existing_value_size, 29761: Slice delta_value, 29761: std::string* merged_value); 29761: size_t max_successive_merges; 29761: bool strict_max_successive_merges; 29761: Statistics* statistics; 29761: MergeOperator* merge_operator; 29761: Logger* info_log; 29761: uint32_t protection_bytes_per_key; 29761: bool allow_data_in_errors; 29761: bool paranoid_memory_checks; 29761: }; 29761: 29761: 29761: 29761: 29761: struct MemTablePostProcessInfo { 29761: uint64_t data_size = 0; 29761: uint64_t num_entries = 0; 29761: uint64_t num_deletes = 0; 29761: uint64_t num_range_deletes = 0; 29761: }; 29761: 29761: using MultiGetRange = MultiGetContext::Range; 29761: # 106 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: class ReadOnlyMemTable { 29761: public: 29761: 29761: virtual ~ReadOnlyMemTable() = default; 29761: 29761: virtual const char* Name() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual size_t ApproximateMemoryUsage() = 0; 29761: 29761: 29761: virtual size_t MemoryAllocatedBytes() const = 0; 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: virtual void UniqueRandomSample(const uint64_t& target_sample_size, 29761: std::unordered_set* entries) = 0; 29761: # 153 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: virtual InternalIterator* NewIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, bool for_flush) = 0; 29761: 29761: 29761: 29761: 29761: virtual InternalIterator* NewTimestampStrippingIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, size_t ts_sz) = 0; 29761: # 176 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: virtual FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: bool immutable_memtable) = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual FragmentedRangeTombstoneIterator* 29761: NewTimestampStrippingRangeTombstoneIterator(const ReadOptions& read_options, 29761: SequenceNumber read_seq, 29761: size_t ts_sz) = 0; 29761: # 221 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: virtual bool Get(const LookupKey& key, std::string* value, 29761: PinnableWideColumns* columns, std::string* timestamp, 29761: Status* s, MergeContext* merge_context, 29761: SequenceNumber* max_covering_tombstone_seq, 29761: SequenceNumber* seq, const ReadOptions& read_opts, 29761: bool immutable_memtable, ReadCallback* callback = nullptr, 29761: bool* is_blob_index = nullptr, bool do_merge = true) = 0; 29761: bool Get(const LookupKey& key, std::string* value, 29761: PinnableWideColumns* columns, std::string* timestamp, Status* s, 29761: MergeContext* merge_context, 29761: SequenceNumber* max_covering_tombstone_seq, 29761: const ReadOptions& read_opts, bool immutable_memtable, 29761: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29761: bool do_merge = true) { 29761: SequenceNumber seq; 29761: return Get(key, value, columns, timestamp, s, merge_context, 29761: max_covering_tombstone_seq, &seq, read_opts, immutable_memtable, 29761: callback, is_blob_index, do_merge); 29761: } 29761: 29761: 29761: 29761: 29761: virtual void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29761: ReadCallback* callback, bool immutable_memtable) = 0; 29761: 29761: 29761: 29761: 29761: virtual uint64_t NumEntries() const = 0; 29761: 29761: 29761: 29761: 29761: virtual uint64_t NumDeletion() const = 0; 29761: 29761: 29761: 29761: 29761: virtual uint64_t NumRangeDeletion() const = 0; 29761: 29761: virtual uint64_t GetDataSize() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual SequenceNumber GetFirstSequenceNumber() = 0; 29761: 29761: 29761: 29761: 29761: virtual bool IsEmpty() const = 0; 29761: # 282 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: virtual SequenceNumber GetEarliestSequenceNumber() = 0; 29761: 29761: virtual uint64_t GetMinLogContainingPrepSection() = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual void MarkImmutable() = 0; 29761: 29761: 29761: 29761: 29761: 29761: virtual void MarkFlushed() = 0; 29761: 29761: struct MemTableStats { 29761: uint64_t size; 29761: uint64_t count; 29761: }; 29761: virtual MemTableStats ApproximateStats(const Slice& start_ikey, 29761: const Slice& end_ikey) = 0; 29761: 29761: virtual const InternalKeyComparator& GetInternalKeyComparator() const = 0; 29761: 29761: virtual uint64_t ApproximateOldestKeyTime() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual bool IsFragmentedRangeTombstonesConstructed() const = 0; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: virtual const Slice& GetNewestUDT() const = 0; 29761: 29761: 29761: 29761: 29761: void Ref() { ++refs_; } 29761: 29761: 29761: 29761: 29761: 29761: ReadOnlyMemTable* Unref() { 29761: --refs_; 29761: 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: (static_cast ( 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: refs_ >= 0 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: "refs_ >= 0" 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 336 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: ; 29761: if (refs_ <= 0) { 29761: return this; 29761: } 29761: return nullptr; 29761: } 29761: 29761: 29761: VersionEdit* GetEdits() { return &edit_; } 29761: 29761: 29761: 29761: 29761: 29761: uint64_t GetNextLogNumber() const { return mem_next_logfile_number_; } 29761: 29761: 29761: 29761: 29761: 29761: void SetNextLogNumber(uint64_t num) { mem_next_logfile_number_ = num; } 29761: 29761: 29761: void SetID(uint64_t id) { id_ = id; } 29761: 29761: uint64_t GetID() const { return id_; } 29761: 29761: void SetFlushCompleted(bool completed) { flush_completed_ = completed; } 29761: 29761: uint64_t GetFileNumber() const { return file_number_; } 29761: 29761: void SetFileNumber(uint64_t file_num) { file_number_ = file_num; } 29761: 29761: void SetFlushInProgress(bool in_progress) { 29761: flush_in_progress_ = in_progress; 29761: } 29761: 29761: void SetFlushJobInfo(std::unique_ptr&& info) { 29761: flush_job_info_ = std::move(info); 29761: } 29761: 29761: std::unique_ptr ReleaseFlushJobInfo() { 29761: return std::move(flush_job_info_); 29761: } 29761: 29761: static void HandleTypeValue( 29761: const Slice& lookup_user_key, const Slice& value, bool value_pinned, 29761: bool do_merge, bool merge_in_progress, MergeContext* merge_context, 29761: const MergeOperator* merge_operator, SystemClock* clock, 29761: Statistics* statistics, Logger* info_log, Status* s, 29761: std::string* out_value, PinnableWideColumns* out_columns, 29761: bool* is_blob_index) { 29761: *s = Status::OK(); 29761: 29761: if (!do_merge) { 29761: 29761: 29761: 29761: 29761: merge_context->PushOperand(value, value_pinned); 29761: } else if (merge_in_progress) { 29761: 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: (static_cast ( 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: do_merge 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: "do_merge" 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 397 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: ; 29761: 29761: 29761: 29761: if (out_value || out_columns) { 29761: *s = MergeHelper::TimedFullMerge( 29761: merge_operator, lookup_user_key, MergeHelper::kPlainBaseValue, 29761: value, merge_context->GetOperands(), info_log, statistics, clock, 29761: true, 29761: nullptr, out_value, out_columns); 29761: } 29761: } else if (out_value) { 29761: out_value->assign(value.data(), value.size()); 29761: } else if (out_columns) { 29761: out_columns->SetPlainValue(value); 29761: } 29761: 29761: if (is_blob_index) { 29761: *is_blob_index = false; 29761: } 29761: } 29761: 29761: static void HandleTypeDeletion( 29761: const Slice& lookup_user_key, bool merge_in_progress, 29761: MergeContext* merge_context, const MergeOperator* merge_operator, 29761: SystemClock* clock, Statistics* statistics, Logger* logger, Status* s, 29761: std::string* out_value, PinnableWideColumns* out_columns) { 29761: if (merge_in_progress) { 29761: if (out_value || out_columns) { 29761: 29761: 29761: 29761: *s = MergeHelper::TimedFullMerge( 29761: merge_operator, lookup_user_key, MergeHelper::kNoBaseValue, 29761: merge_context->GetOperands(), logger, statistics, clock, 29761: true, 29761: nullptr, out_value, out_columns); 29761: } else { 29761: 29761: 29761: 29761: *s = Status::OK(); 29761: } 29761: } else { 29761: *s = Status::NotFound(); 29761: } 29761: } 29761: 29761: protected: 29761: friend class MemTableList; 29761: 29761: int refs_{0}; 29761: 29761: 29761: bool flush_in_progress_{false}; 29761: bool flush_completed_{false}; 29761: uint64_t file_number_{0}; 29761: 29761: 29761: 29761: VersionEdit edit_; 29761: 29761: 29761: uint64_t mem_next_logfile_number_{0}; 29761: 29761: 29761: uint64_t id_ = 0; 29761: 29761: 29761: 29761: 29761: 29761: SequenceNumber atomic_flush_seqno_{kMaxSequenceNumber}; 29761: 29761: 29761: std::unique_ptr flush_job_info_; 29761: }; 29761: 29761: class MemTable final : public ReadOnlyMemTable { 29761: public: 29761: struct KeyComparator final : public MemTableRep::KeyComparator { 29761: const InternalKeyComparator comparator; 29761: explicit KeyComparator(const InternalKeyComparator& c) : comparator(c) {} 29761: int operator()(const char* prefix_len_key1, 29761: const char* prefix_len_key2) const override; 29761: int operator()(const char* prefix_len_key, 29761: const DecodedType& key) const override; 29761: }; 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: explicit MemTable(const InternalKeyComparator& comparator, 29761: const ImmutableOptions& ioptions, 29761: const MutableCFOptions& mutable_cf_options, 29761: WriteBufferManager* write_buffer_manager, 29761: SequenceNumber earliest_seq, uint32_t column_family_id); 29761: 29761: MemTable(const MemTable&) = delete; 29761: MemTable& operator=(const MemTable&) = delete; 29761: 29761: ~MemTable() override; 29761: 29761: const char* Name() const override { return "MemTable"; } 29761: 29761: size_t ApproximateMemoryUsage() override; 29761: 29761: 29761: 29761: size_t ApproximateMemoryUsageFast() const { 29761: return approximate_memory_usage_.load(std::memory_order_relaxed); 29761: } 29761: 29761: size_t MemoryAllocatedBytes() const override { 29761: return table_->ApproximateMemoryUsage() + 29761: range_del_table_->ApproximateMemoryUsage() + 29761: arena_.MemoryAllocatedBytes(); 29761: } 29761: 29761: void UniqueRandomSample(const uint64_t& target_sample_size, 29761: std::unordered_set* entries) override { 29761: 29761: 29761: table_->UniqueRandomSample(NumEntries(), target_sample_size, entries); 29761: } 29761: 29761: 29761: 29761: bool ShouldScheduleFlush() const { 29761: return flush_state_.load(std::memory_order_relaxed) == FLUSH_REQUESTED; 29761: } 29761: 29761: 29761: 29761: bool MarkFlushScheduled() { 29761: auto before = FLUSH_REQUESTED; 29761: return flush_state_.compare_exchange_strong(before, FLUSH_SCHEDULED, 29761: std::memory_order_relaxed, 29761: std::memory_order_relaxed); 29761: } 29761: 29761: InternalIterator* NewIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, bool for_flush) override; 29761: 29761: InternalIterator* NewTimestampStrippingIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, size_t ts_sz) override; 29761: 29761: FragmentedRangeTombstoneIterator* NewRangeTombstoneIterator( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: bool immutable_memtable) override; 29761: 29761: FragmentedRangeTombstoneIterator* NewTimestampStrippingRangeTombstoneIterator( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: size_t ts_sz) override; 29761: 29761: Status VerifyEncodedEntry(Slice encoded, 29761: const ProtectionInfoKVOS64& kv_prot_info); 29761: # 572 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: Status Add(SequenceNumber seq, ValueType type, const Slice& key, 29761: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info, 29761: bool allow_concurrent = false, 29761: MemTablePostProcessInfo* post_process_info = nullptr, 29761: void** hint = nullptr); 29761: 29761: using ReadOnlyMemTable::Get; 29761: bool Get(const LookupKey& key, std::string* value, 29761: PinnableWideColumns* columns, std::string* timestamp, Status* s, 29761: MergeContext* merge_context, 29761: SequenceNumber* max_covering_tombstone_seq, SequenceNumber* seq, 29761: const ReadOptions& read_opts, bool immutable_memtable, 29761: ReadCallback* callback = nullptr, bool* is_blob_index = nullptr, 29761: bool do_merge = true) override; 29761: 29761: void MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29761: ReadCallback* callback, bool immutable_memtable) override; 29761: # 600 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: Status Update(SequenceNumber seq, ValueType value_type, const Slice& key, 29761: const Slice& value, const ProtectionInfoKVOS64* kv_prot_info); 29761: # 617 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.h" 29761: Status UpdateCallback(SequenceNumber seq, const Slice& key, 29761: const Slice& delta, 29761: const ProtectionInfoKVOS64* kv_prot_info); 29761: 29761: 29761: 29761: 29761: 29761: size_t CountSuccessiveMergeEntries(const LookupKey& key, size_t limit); 29761: 29761: 29761: 29761: void BatchPostProcess(const MemTablePostProcessInfo& update_counters) { 29761: num_entries_.fetch_add(update_counters.num_entries, 29761: std::memory_order_relaxed); 29761: data_size_.fetch_add(update_counters.data_size, std::memory_order_relaxed); 29761: if (update_counters.num_deletes != 0) { 29761: num_deletes_.fetch_add(update_counters.num_deletes, 29761: std::memory_order_relaxed); 29761: } 29761: if (update_counters.num_range_deletes > 0) { 29761: num_range_deletes_.fetch_add(update_counters.num_range_deletes, 29761: std::memory_order_relaxed); 29761: } 29761: UpdateFlushState(); 29761: } 29761: 29761: uint64_t NumEntries() const override { 29761: return num_entries_.load(std::memory_order_relaxed); 29761: } 29761: 29761: uint64_t NumDeletion() const override { 29761: return num_deletes_.load(std::memory_order_relaxed); 29761: } 29761: 29761: uint64_t NumRangeDeletion() const override { 29761: return num_range_deletes_.load(std::memory_order_relaxed); 29761: } 29761: 29761: uint64_t GetDataSize() const override { 29761: return data_size_.load(std::memory_order_relaxed); 29761: } 29761: 29761: size_t write_buffer_size() const { 29761: return write_buffer_size_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: void UpdateWriteBufferSize(size_t new_write_buffer_size) { 29761: if (bloom_filter_ == nullptr || 29761: new_write_buffer_size < write_buffer_size_) { 29761: write_buffer_size_.store(new_write_buffer_size, 29761: std::memory_order_relaxed); 29761: } 29761: } 29761: 29761: bool IsEmpty() const override { return first_seqno_ == 0; } 29761: 29761: SequenceNumber GetFirstSequenceNumber() override { 29761: return first_seqno_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: void SetFirstSequenceNumber(SequenceNumber first_seqno) { 29761: return first_seqno_.store(first_seqno, std::memory_order_relaxed); 29761: } 29761: 29761: SequenceNumber GetEarliestSequenceNumber() override { 29761: 29761: return earliest_seqno_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: 29761: 29761: 29761: 29761: void SetEarliestSequenceNumber(SequenceNumber earliest_seqno) { 29761: return earliest_seqno_.store(earliest_seqno, std::memory_order_relaxed); 29761: } 29761: 29761: 29761: 29761: SequenceNumber GetCreationSeq() const { return creation_seq_; } 29761: 29761: void SetCreationSeq(SequenceNumber sn) { creation_seq_ = sn; } 29761: 29761: 29761: 29761: 29761: void RefLogContainingPrepSection(uint64_t log); 29761: uint64_t GetMinLogContainingPrepSection() override; 29761: 29761: void MarkImmutable() override { 29761: table_->MarkReadOnly(); 29761: mem_tracker_.DoneAllocating(); 29761: } 29761: 29761: void MarkFlushed() override { table_->MarkFlushed(); } 29761: 29761: 29761: bool IsMergeOperatorSupported() const { 29761: return table_->IsMergeOperatorSupported(); 29761: } 29761: 29761: 29761: 29761: bool IsSnapshotSupported() const { 29761: return table_->IsSnapshotSupported() && !moptions_.inplace_update_support; 29761: } 29761: 29761: MemTableStats ApproximateStats(const Slice& start_ikey, 29761: const Slice& end_ikey) override; 29761: 29761: 29761: port::RWMutex* GetLock(const Slice& key); 29761: 29761: const InternalKeyComparator& GetInternalKeyComparator() const override { 29761: return comparator_.comparator; 29761: } 29761: 29761: const ImmutableMemTableOptions* GetImmutableMemTableOptions() const { 29761: return &moptions_; 29761: } 29761: 29761: uint64_t ApproximateOldestKeyTime() const override { 29761: return oldest_key_time_.load(std::memory_order_relaxed); 29761: } 29761: 29761: 29761: bool ShouldFlushNow(); 29761: 29761: 29761: 29761: 29761: 29761: 29761: void ConstructFragmentedRangeTombstones(); 29761: 29761: bool IsFragmentedRangeTombstonesConstructed() const override { 29761: return fragmented_range_tombstone_list_.get() != nullptr || 29761: is_range_del_table_empty_; 29761: } 29761: 29761: const Slice& GetNewestUDT() const override; 29761: 29761: 29761: static Status VerifyEntryChecksum(const char* entry, 29761: uint32_t protection_bytes_per_key, 29761: bool allow_data_in_errors = false); 29761: 29761: private: 29761: enum FlushStateEnum { FLUSH_NOT_REQUESTED, FLUSH_REQUESTED, FLUSH_SCHEDULED }; 29761: 29761: friend class MemTableIterator; 29761: friend class MemTableBackwardIterator; 29761: friend class MemTableList; 29761: 29761: KeyComparator comparator_; 29761: const ImmutableMemTableOptions moptions_; 29761: const size_t kArenaBlockSize; 29761: AllocTracker mem_tracker_; 29761: ConcurrentArena arena_; 29761: std::unique_ptr table_; 29761: std::unique_ptr range_del_table_; 29761: std::atomic_bool is_range_del_table_empty_; 29761: 29761: 29761: std::atomic data_size_; 29761: std::atomic num_entries_; 29761: std::atomic num_deletes_; 29761: std::atomic num_range_deletes_; 29761: 29761: 29761: std::atomic write_buffer_size_; 29761: 29761: 29761: std::atomic first_seqno_; 29761: 29761: 29761: 29761: std::atomic earliest_seqno_; 29761: 29761: SequenceNumber creation_seq_; 29761: 29761: 29761: 29761: std::atomic min_prep_log_referenced_; 29761: 29761: 29761: std::vector locks_; 29761: 29761: const SliceTransform* const prefix_extractor_; 29761: std::unique_ptr bloom_filter_; 29761: 29761: std::atomic flush_state_; 29761: 29761: SystemClock* clock_; 29761: 29761: 29761: const SliceTransform* insert_with_hint_prefix_extractor_; 29761: 29761: 29761: UnorderedMapH insert_hints_; 29761: 29761: 29761: std::atomic oldest_key_time_; 29761: 29761: 29761: 29761: std::atomic approximate_memory_usage_; 29761: 29761: 29761: 29761: uint32_t memtable_max_range_deletions_ = 0; 29761: 29761: 29761: size_t ts_sz_; 29761: 29761: 29761: bool persist_user_defined_timestamps_; 29761: 29761: 29761: 29761: 29761: 29761: 29761: Slice newest_udt_; 29761: 29761: 29761: void UpdateFlushState(); 29761: 29761: void UpdateOldestKeyTime(); 29761: 29761: void GetFromTable(const LookupKey& key, 29761: SequenceNumber max_covering_tombstone_seq, bool do_merge, 29761: ReadCallback* callback, bool* is_blob_index, 29761: std::string* value, PinnableWideColumns* columns, 29761: std::string* timestamp, Status* s, 29761: MergeContext* merge_context, SequenceNumber* seq, 29761: bool* found_final_value, bool* merge_in_progress); 29761: 29761: 29761: 29761: 29761: 29761: 29761: FragmentedRangeTombstoneIterator* NewRangeTombstoneIteratorInternal( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: bool immutable_memtable); 29761: 29761: 29761: 29761: 29761: std::unique_ptr 29761: fragmented_range_tombstone_list_; 29761: 29761: 29761: 29761: 29761: std::unique_ptr 29761: timestamp_stripping_fragmented_range_tombstone_list_; 29761: 29761: 29761: std::mutex range_del_mutex_; 29761: CoreLocalArray> 29761: cached_range_tombstone_; 29761: 29761: void UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 29761: const Slice& key, const Slice& value, ValueType type, 29761: SequenceNumber s, char* checksum_ptr); 29761: 29761: void MaybeUpdateNewestUDT(const Slice& user_key); 29761: }; 29761: 29761: const char* EncodeKey(std::string* scratch, const Slice& target); 29761: 29761: } 29761: # 11 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29761: # 26 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/logging/logging.h" 1 29761: # 13 "/build/reproducible-path/rocksdb-9.10.0/logging/logging.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: inline const char* RocksLogShorterFileName(const char* file) { 29761: 29761: 29761: return file + (sizeof("./logging/logging.h") > 18 ? sizeof("./logging/logging.h") - 18 : 0); 29761: } 29761: # 27 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29761: 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 1 29761: 29761: 29761: 29761: 29761: 29761: 29761: # 16 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 29761: namespace rocksdb { 29761: 29761: 29761: 29761: template 29761: size_t ApproximateMemoryUsage( 29761: const std::unordered_map& umap) { 29761: using Map = std::unordered_map; 29761: return sizeof(umap) + 29761: 29761: (sizeof(typename Map::value_type) + sizeof(void*)) * umap.size() + 29761: 29761: umap.bucket_count() * sizeof(void*); 29761: } 29761: # 38 "/build/reproducible-path/rocksdb-9.10.0/memory/memory_usage.h" 29761: } 29761: # 29 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29761: # 41 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: 29761: 29761: 29761: 29761: template 29761: class IteratorWrapperBase { 29761: public: 29761: IteratorWrapperBase() : iter_(nullptr), valid_(false) {} 29761: explicit IteratorWrapperBase(InternalIteratorBase* _iter) 29761: : iter_(nullptr) { 29761: Set(_iter); 29761: } 29761: ~IteratorWrapperBase() {} 29761: InternalIteratorBase* iter() const { return iter_; } 29761: void SetRangeDelReadSeqno(SequenceNumber read_seqno) { 29761: if (iter_) { 29761: iter_->SetRangeDelReadSeqno(read_seqno); 29761: } 29761: } 29761: 29761: 29761: 29761: InternalIteratorBase* Set(InternalIteratorBase* _iter) { 29761: InternalIteratorBase* old_iter = iter_; 29761: 29761: iter_ = _iter; 29761: if (iter_ == nullptr) { 29761: valid_ = false; 29761: } else { 29761: Update(); 29761: } 29761: return old_iter; 29761: } 29761: 29761: void DeleteIter(bool is_arena_mode) { 29761: if (iter_) { 29761: # 66 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: if (!is_arena_mode) { 29761: delete iter_; 29761: } else { 29761: iter_->~InternalIteratorBase(); 29761: } 29761: } 29761: } 29761: 29761: 29761: bool Valid() const { 29761: 29761: 29761: 29761: return valid_; 29761: } 29761: Slice key() const { 29761: 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 82 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return result_.key; 29761: } 29761: 29761: uint64_t write_unix_time() const { 29761: 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 87 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->write_unix_time(); 29761: } 29761: 29761: TValue value() const { 29761: 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 92 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->value(); 29761: } 29761: 29761: Status status() const { 29761: 29761: 29761: 29761: 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 100 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->status(); 29761: } 29761: bool PrepareValue() { 29761: 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 104 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: if (result_.value_prepared) { 29761: return true; 29761: } 29761: if (iter_->PrepareValue()) { 29761: result_.value_prepared = true; 29761: result_.key = iter_->key(); 29761: return true; 29761: } 29761: 29761: 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: !iter_->Valid() 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "!iter_->Valid()" 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 114 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: valid_ = false; 29761: return false; 29761: } 29761: void Next() { 29761: 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 119 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: valid_ = iter_->NextAndGetResult(&result_); 29761: 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: !valid_ || iter_->status().ok() 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "!valid_ || iter_->status().ok()" 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: } 29761: bool NextAndGetResult(IterateResult* result) { 29761: 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 124 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: valid_ = iter_->NextAndGetResult(&result_); 29761: *result = result_; 29761: 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: !valid_ || iter_->status().ok() 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "!valid_ || iter_->status().ok()" 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 127 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return valid_; 29761: } 29761: void Prev() { 29761: 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 131 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->Prev(); 29761: Update(); 29761: } 29761: void Seek(const Slice& k) { 29761: 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 136 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->Seek(k); 29761: Update(); 29761: } 29761: void SeekForPrev(const Slice& k) { 29761: 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 141 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->SeekForPrev(k); 29761: Update(); 29761: } 29761: void SeekToFirst() { 29761: 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 146 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->SeekToFirst(); 29761: Update(); 29761: } 29761: void SeekToLast() { 29761: 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 151 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->SeekToLast(); 29761: Update(); 29761: } 29761: 29761: bool MayBeOutOfLowerBound() { 29761: 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 157 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->MayBeOutOfLowerBound(); 29761: } 29761: 29761: IterBoundCheck UpperBoundCheckResult() { 29761: 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 162 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return result_.bound_check_result; 29761: } 29761: 29761: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) { 29761: 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_ 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_" 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 167 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: iter_->SetPinnedItersMgr(pinned_iters_mgr); 29761: } 29761: bool IsKeyPinned() const { 29761: 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 171 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->IsKeyPinned(); 29761: } 29761: bool IsValuePinned() const { 29761: 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 175 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->IsValuePinned(); 29761: } 29761: 29761: bool IsValuePrepared() const { return result_.value_prepared; } 29761: 29761: Slice user_key() const { 29761: 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: Valid() 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "Valid()" 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 182 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: return iter_->user_key(); 29761: } 29761: 29761: void UpdateReadaheadState(InternalIteratorBase* old_iter) { 29761: if (old_iter && iter_) { 29761: ReadaheadFileInfo readahead_file_info; 29761: old_iter->GetReadaheadState(&readahead_file_info); 29761: iter_->SetReadaheadState(&readahead_file_info); 29761: } 29761: } 29761: 29761: bool IsDeleteRangeSentinelKey() const { 29761: return iter_->IsDeleteRangeSentinelKey(); 29761: } 29761: 29761: private: 29761: void Update() { 29761: valid_ = iter_->Valid(); 29761: if (valid_) { 29761: 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: (static_cast ( 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: iter_->status().ok() 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: "iter_->status().ok()" 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 202 "/build/reproducible-path/rocksdb-9.10.0/table/iterator_wrapper.h" 29761: ; 29761: result_.key = iter_->key(); 29761: result_.bound_check_result = IterBoundCheck::kUnknown; 29761: result_.value_prepared = false; 29761: } 29761: } 29761: 29761: InternalIteratorBase* iter_; 29761: IterateResult result_; 29761: bool valid_; 29761: 29761: 29761: 29761: 29761: }; 29761: 29761: using IteratorWrapper = IteratorWrapperBase; 29761: 29761: class Arena; 29761: 29761: template 29761: InternalIteratorBase* NewEmptyInternalIterator(Arena* arena); 29761: 29761: } 29761: # 42 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29761: # 1 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 1 29761: # 10 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29761: 29761: 29761: 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: class Arena; 29761: class ArenaWrappedDBIter; 29761: class InternalKeyComparator; 29761: 29761: template 29761: class InternalIteratorBase; 29761: using InternalIterator = InternalIteratorBase; 29761: # 35 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29761: InternalIterator* NewMergingIterator(const InternalKeyComparator* comparator, 29761: InternalIterator** children, int n, 29761: Arena* arena = nullptr, 29761: bool prefix_seek_mode = false); 29761: 29761: 29761: 29761: 29761: class MergingIterator; 29761: 29761: 29761: 29761: 29761: 29761: class MergeIteratorBuilder { 29761: public: 29761: 29761: 29761: explicit MergeIteratorBuilder(const InternalKeyComparator* comparator, 29761: Arena* arena, bool prefix_seek_mode = false, 29761: const Slice* iterate_upper_bound = nullptr); 29761: ~MergeIteratorBuilder(); 29761: 29761: 29761: void AddIterator(InternalIterator* iter); 29761: # 72 "/build/reproducible-path/rocksdb-9.10.0/table/merging_iterator.h" 29761: void AddPointAndTombstoneIterator( 29761: InternalIterator* point_iter, 29761: std::unique_ptr&& tombstone_iter, 29761: std::unique_ptr** tombstone_iter_ptr = 29761: nullptr); 29761: 29761: 29761: 29761: Arena* GetArena() { return arena; } 29761: 29761: 29761: 29761: 29761: 29761: 29761: InternalIterator* Finish(ArenaWrappedDBIter* db_iter = nullptr); 29761: 29761: private: 29761: MergingIterator* merge_iter; 29761: InternalIterator* first_iter; 29761: bool use_merging_iter; 29761: Arena* arena; 29761: 29761: 29761: std::vector**>> 29761: range_del_iter_ptrs_; 29761: }; 29761: 29761: } 29761: # 43 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 2 29761: 29761: 29761: 29761: 29761: namespace rocksdb { 29761: 29761: ImmutableMemTableOptions::ImmutableMemTableOptions( 29761: const ImmutableOptions& ioptions, 29761: const MutableCFOptions& mutable_cf_options) 29761: : arena_block_size(mutable_cf_options.arena_block_size), 29761: memtable_prefix_bloom_bits( 29761: static_cast( 29761: static_cast(mutable_cf_options.write_buffer_size) * 29761: mutable_cf_options.memtable_prefix_bloom_size_ratio) * 29761: 8u), 29761: memtable_huge_page_size(mutable_cf_options.memtable_huge_page_size), 29761: memtable_whole_key_filtering( 29761: mutable_cf_options.memtable_whole_key_filtering), 29761: inplace_update_support(ioptions.inplace_update_support), 29761: inplace_update_num_locks(mutable_cf_options.inplace_update_num_locks), 29761: inplace_callback(ioptions.inplace_callback), 29761: max_successive_merges(mutable_cf_options.max_successive_merges), 29761: strict_max_successive_merges( 29761: mutable_cf_options.strict_max_successive_merges), 29761: statistics(ioptions.stats), 29761: merge_operator(ioptions.merge_operator.get()), 29761: info_log(ioptions.logger), 29761: protection_bytes_per_key( 29761: mutable_cf_options.memtable_protection_bytes_per_key), 29761: allow_data_in_errors(ioptions.allow_data_in_errors), 29761: paranoid_memory_checks(mutable_cf_options.paranoid_memory_checks) {} 29761: 29761: MemTable::MemTable(const InternalKeyComparator& cmp, 29761: const ImmutableOptions& ioptions, 29761: const MutableCFOptions& mutable_cf_options, 29761: WriteBufferManager* write_buffer_manager, 29761: SequenceNumber latest_seq, uint32_t column_family_id) 29761: : comparator_(cmp), 29761: moptions_(ioptions, mutable_cf_options), 29761: kArenaBlockSize(Arena::OptimizeBlockSize(moptions_.arena_block_size)), 29761: mem_tracker_(write_buffer_manager), 29761: arena_(moptions_.arena_block_size, 29761: (write_buffer_manager != nullptr && 29761: (write_buffer_manager->enabled() || 29761: write_buffer_manager->cost_to_cache())) 29761: ? &mem_tracker_ 29761: : nullptr, 29761: mutable_cf_options.memtable_huge_page_size), 29761: table_(ioptions.memtable_factory->CreateMemTableRep( 29761: comparator_, &arena_, mutable_cf_options.prefix_extractor.get(), 29761: ioptions.logger, column_family_id)), 29761: range_del_table_(SkipListFactory().CreateMemTableRep( 29761: comparator_, &arena_, nullptr , ioptions.logger, 29761: column_family_id)), 29761: is_range_del_table_empty_(true), 29761: data_size_(0), 29761: num_entries_(0), 29761: num_deletes_(0), 29761: num_range_deletes_(0), 29761: write_buffer_size_(mutable_cf_options.write_buffer_size), 29761: first_seqno_(0), 29761: earliest_seqno_(latest_seq), 29761: creation_seq_(latest_seq), 29761: min_prep_log_referenced_(0), 29761: locks_(moptions_.inplace_update_support 29761: ? moptions_.inplace_update_num_locks 29761: : 0), 29761: prefix_extractor_(mutable_cf_options.prefix_extractor.get()), 29761: flush_state_(FLUSH_NOT_REQUESTED), 29761: clock_(ioptions.clock), 29761: insert_with_hint_prefix_extractor_( 29761: ioptions.memtable_insert_with_hint_prefix_extractor.get()), 29761: oldest_key_time_(std::numeric_limits::max()), 29761: approximate_memory_usage_(0), 29761: memtable_max_range_deletions_( 29761: mutable_cf_options.memtable_max_range_deletions) { 29761: UpdateFlushState(); 29761: 29761: 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: !ShouldScheduleFlush() 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "!ShouldScheduleFlush()" 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 121 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: 29761: if ((prefix_extractor_ || moptions_.memtable_whole_key_filtering) && 29761: moptions_.memtable_prefix_bloom_bits > 0) { 29761: bloom_filter_.reset( 29761: new DynamicBloom(&arena_, moptions_.memtable_prefix_bloom_bits, 29761: 6 , 29761: moptions_.memtable_huge_page_size, ioptions.logger)); 29761: } 29761: 29761: 29761: 29761: auto new_cache = std::make_shared(); 29761: size_t size = cached_range_tombstone_.Size(); 29761: for (size_t i = 0; i < size; ++i) { 29761: std::shared_ptr* local_cache_ref_ptr = 29761: cached_range_tombstone_.AccessAtCore(i); 29761: auto new_local_cache_ref = std::make_shared< 29761: const std::shared_ptr>(new_cache); 29761: std::atomic_store_explicit( 29761: local_cache_ref_ptr, 29761: std::shared_ptr(new_local_cache_ref, 29761: new_cache.get()), 29761: std::memory_order_relaxed); 29761: } 29761: const Comparator* ucmp = cmp.user_comparator(); 29761: 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ucmp 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "ucmp" 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 148 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: ts_sz_ = ucmp->timestamp_size(); 29761: persist_user_defined_timestamps_ = ioptions.persist_user_defined_timestamps; 29761: } 29761: 29761: MemTable::~MemTable() { 29761: mem_tracker_.FreeMem(); 29761: 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: refs_ == 0 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "refs_ == 0" 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 155 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: 29761: size_t MemTable::ApproximateMemoryUsage() { 29761: autovector usages = { 29761: arena_.ApproximateMemoryUsage(), table_->ApproximateMemoryUsage(), 29761: range_del_table_->ApproximateMemoryUsage(), 29761: rocksdb::ApproximateMemoryUsage(insert_hints_)}; 29761: size_t total_usage = 0; 29761: for (size_t usage : usages) { 29761: 29761: 29761: if (usage >= std::numeric_limits::max() - total_usage) { 29761: return std::numeric_limits::max(); 29761: } 29761: total_usage += usage; 29761: } 29761: approximate_memory_usage_.store(total_usage, std::memory_order_relaxed); 29761: 29761: return total_usage; 29761: } 29761: 29761: bool MemTable::ShouldFlushNow() { 29761: 29761: 29761: if (memtable_max_range_deletions_ > 0 && 29761: num_range_deletes_.load(std::memory_order_relaxed) >= 29761: static_cast(memtable_max_range_deletions_)) { 29761: return true; 29761: } 29761: 29761: size_t write_buffer_size = write_buffer_size_.load(std::memory_order_relaxed); 29761: 29761: 29761: 29761: 29761: 29761: 29761: const double kAllowOverAllocationRatio = 0.6; 29761: 29761: 29761: 29761: auto allocated_memory = table_->ApproximateMemoryUsage() + 29761: range_del_table_->ApproximateMemoryUsage() + 29761: arena_.MemoryAllocatedBytes(); 29761: 29761: approximate_memory_usage_.store(allocated_memory, std::memory_order_relaxed); 29761: 29761: 29761: 29761: if (allocated_memory + kArenaBlockSize < 29761: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 29761: return false; 29761: } 29761: 29761: 29761: 29761: if (allocated_memory > 29761: write_buffer_size + kArenaBlockSize * kAllowOverAllocationRatio) { 29761: return true; 29761: } 29761: # 242 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: return arena_.AllocatedAndUnused() < kArenaBlockSize / 4; 29761: } 29761: 29761: void MemTable::UpdateFlushState() { 29761: auto state = flush_state_.load(std::memory_order_relaxed); 29761: if (state == FLUSH_NOT_REQUESTED && ShouldFlushNow()) { 29761: 29761: 29761: flush_state_.compare_exchange_strong(state, FLUSH_REQUESTED, 29761: std::memory_order_relaxed, 29761: std::memory_order_relaxed); 29761: } 29761: } 29761: 29761: void MemTable::UpdateOldestKeyTime() { 29761: uint64_t oldest_key_time = oldest_key_time_.load(std::memory_order_relaxed); 29761: if (oldest_key_time == std::numeric_limits::max()) { 29761: int64_t current_time = 0; 29761: auto s = clock_->GetCurrentTime(¤t_time); 29761: if (s.ok()) { 29761: 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: current_time >= 0 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "current_time >= 0" 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 262 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: oldest_key_time_.compare_exchange_strong( 29761: oldest_key_time, static_cast(current_time), 29761: std::memory_order_relaxed, std::memory_order_relaxed); 29761: } 29761: } 29761: } 29761: 29761: Status MemTable::VerifyEntryChecksum(const char* entry, 29761: uint32_t protection_bytes_per_key, 29761: bool allow_data_in_errors) { 29761: if (protection_bytes_per_key == 0) { 29761: return Status::OK(); 29761: } 29761: uint32_t key_length; 29761: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29761: if (key_ptr == nullptr) { 29761: return Status::Corruption("Unable to parse internal key length"); 29761: } 29761: if (key_length < 8) { 29761: return Status::Corruption("Memtable entry internal key length too short."); 29761: } 29761: Slice user_key = Slice(key_ptr, key_length - 8); 29761: 29761: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29761: ValueType type; 29761: SequenceNumber seq; 29761: UnPackSequenceAndType(tag, &seq, &type); 29761: 29761: uint32_t value_length = 0; 29761: const char* value_ptr = GetVarint32Ptr( 29761: key_ptr + key_length, key_ptr + key_length + 5, &value_length); 29761: if (value_ptr == nullptr) { 29761: return Status::Corruption("Unable to parse internal key value"); 29761: } 29761: Slice value = Slice(value_ptr, value_length); 29761: 29761: const char* checksum_ptr = value_ptr + value_length; 29761: bool match = 29761: ProtectionInfo64() 29761: .ProtectKVO(user_key, value, type) 29761: .ProtectS(seq) 29761: .Verify(static_cast(protection_bytes_per_key), checksum_ptr); 29761: if (!match) { 29761: std::string msg( 29761: "Corrupted memtable entry, per key-value checksum verification " 29761: "failed."); 29761: if (allow_data_in_errors) { 29761: msg.append("Unrecognized value type: " + 29761: std::to_string(static_cast(type)) + ". "); 29761: msg.append("User key: " + user_key.ToString( true) + ". "); 29761: msg.append("seq: " + std::to_string(seq) + "."); 29761: } 29761: return Status::Corruption(msg.c_str()); 29761: } 29761: return Status::OK(); 29761: } 29761: 29761: int MemTable::KeyComparator::operator()(const char* prefix_len_key1, 29761: const char* prefix_len_key2) const { 29761: 29761: Slice k1 = GetLengthPrefixedSlice(prefix_len_key1); 29761: Slice k2 = GetLengthPrefixedSlice(prefix_len_key2); 29761: return comparator.CompareKeySeq(k1, k2); 29761: } 29761: 29761: int MemTable::KeyComparator::operator()( 29761: const char* prefix_len_key, const KeyComparator::DecodedType& key) const { 29761: 29761: Slice a = GetLengthPrefixedSlice(prefix_len_key); 29761: return comparator.CompareKeySeq(a, key); 29761: } 29761: 29761: void MemTableRep::InsertConcurrently(KeyHandle ) { 29761: throw std::runtime_error("concurrent insert not supported"); 29761: } 29761: 29761: Slice MemTableRep::UserKey(const char* key) const { 29761: Slice slice = GetLengthPrefixedSlice(key); 29761: return Slice(slice.data(), slice.size() - 8); 29761: } 29761: 29761: KeyHandle MemTableRep::Allocate(const size_t len, char** buf) { 29761: *buf = allocator_->Allocate(len); 29761: return static_cast(*buf); 29761: } 29761: 29761: 29761: 29761: 29761: const char* EncodeKey(std::string* scratch, const Slice& target) { 29761: scratch->clear(); 29761: PutVarint32(scratch, static_cast(target.size())); 29761: scratch->append(target.data(), target.size()); 29761: return scratch->data(); 29761: } 29761: 29761: class MemTableIterator : public InternalIterator { 29761: public: 29761: enum Kind { kPointEntries, kRangeDelEntries }; 29761: MemTableIterator( 29761: Kind kind, const MemTable& mem, const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping = nullptr, 29761: Arena* arena = nullptr, 29761: const SliceTransform* cf_prefix_extractor = nullptr) 29761: : bloom_(nullptr), 29761: prefix_extractor_(mem.prefix_extractor_), 29761: comparator_(mem.comparator_), 29761: seqno_to_time_mapping_(seqno_to_time_mapping), 29761: status_(Status::OK()), 29761: logger_(mem.moptions_.info_log), 29761: ts_sz_(mem.ts_sz_), 29761: protection_bytes_per_key_(mem.moptions_.protection_bytes_per_key), 29761: valid_(false), 29761: value_pinned_( 29761: !mem.GetImmutableMemTableOptions()->inplace_update_support), 29761: arena_mode_(arena != nullptr), 29761: paranoid_memory_checks_(mem.moptions_.paranoid_memory_checks), 29761: allow_data_in_error(mem.moptions_.allow_data_in_errors) { 29761: if (kind == kRangeDelEntries) { 29761: iter_ = mem.range_del_table_->GetIterator(arena); 29761: } else if (prefix_extractor_ != nullptr && 29761: 29761: 29761: prefix_extractor_ == cf_prefix_extractor && 29761: (read_options.prefix_same_as_start || 29761: (!read_options.total_order_seek && 29761: !read_options.auto_prefix_mode))) { 29761: 29761: 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: kind == kPointEntries 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "kind == kPointEntries" 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 392 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: bloom_ = mem.bloom_filter_.get(); 29761: iter_ = mem.table_->GetDynamicPrefixIterator(arena); 29761: } else { 29761: 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: kind == kPointEntries 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "kind == kPointEntries" 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 396 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: iter_ = mem.table_->GetIterator(arena); 29761: } 29761: status_.PermitUncheckedError(); 29761: } 29761: 29761: MemTableIterator(const MemTableIterator&) = delete; 29761: void operator=(const MemTableIterator&) = delete; 29761: 29761: ~MemTableIterator() override { 29761: 29761: 29761: 29761: 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: !pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled() 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "!pinned_iters_mgr_ || !pinned_iters_mgr_->PinningEnabled()" 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 409 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: if (arena_mode_) { 29761: iter_->~Iterator(); 29761: } else { 29761: delete iter_; 29761: } 29761: status_.PermitUncheckedError(); 29761: } 29761: 29761: 29761: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 29761: pinned_iters_mgr_ = pinned_iters_mgr; 29761: } 29761: PinnedIteratorsManager* pinned_iters_mgr_ = nullptr; 29761: 29761: 29761: bool Valid() const override { 29761: 29761: 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: iter_->Valid() || !(valid_ && status_.ok()) 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "iter_->Valid() || !(valid_ && status_.ok())" 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 428 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: return valid_ && status_.ok(); 29761: } 29761: 29761: void Seek(const Slice& k) override { 29761: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: status_ = Status::OK(); 29761: if (bloom_) { 29761: 29761: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 29761: if (prefix_extractor_->InDomain(user_k_without_ts)) { 29761: Slice prefix = prefix_extractor_->Transform(user_k_without_ts); 29761: if (!bloom_->MayContain(prefix)) { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29761: valid_ = false; 29761: return; 29761: } else { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29761: } 29761: } 29761: } 29761: if (paranoid_memory_checks_) { 29761: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 29761: } else { 29761: iter_->Seek(k, nullptr); 29761: } 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: } 29761: void SeekForPrev(const Slice& k) override { 29761: PerfStepTimer perf_step_timer_seek_on_memtable_time(&(perf_context.seek_on_memtable_time)); perf_step_timer_seek_on_memtable_time.Start();; 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.seek_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: status_ = Status::OK(); 29761: if (bloom_) { 29761: Slice user_k_without_ts(ExtractUserKeyAndStripTimestamp(k, ts_sz_)); 29761: if (prefix_extractor_->InDomain(user_k_without_ts)) { 29761: if (!bloom_->MayContain( 29761: prefix_extractor_->Transform(user_k_without_ts))) { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29761: valid_ = false; 29761: return; 29761: } else { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29761: } 29761: } 29761: } 29761: if (paranoid_memory_checks_) { 29761: status_ = iter_->SeekAndValidate(k, nullptr, allow_data_in_error); 29761: } else { 29761: iter_->Seek(k, nullptr); 29761: } 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: if (!Valid() && status().ok()) { 29761: SeekToLast(); 29761: } 29761: while (Valid() && comparator_.comparator.Compare(k, key()) < 0) { 29761: Prev(); 29761: } 29761: } 29761: void SeekToFirst() override { 29761: status_ = Status::OK(); 29761: iter_->SeekToFirst(); 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: } 29761: void SeekToLast() override { 29761: status_ = Status::OK(); 29761: iter_->SeekToLast(); 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: } 29761: void Next() override { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.next_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 503 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (paranoid_memory_checks_) { 29761: status_ = iter_->NextAndValidate(allow_data_in_error); 29761: } else { 29761: iter_->Next(); 29761: rocksdb::SyncPoint::GetInstance()->Process("MemTableIterator::Next:0", iter_); 29761: } 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: } 29761: bool NextAndGetResult(IterateResult* result) override { 29761: Next(); 29761: bool is_valid = Valid(); 29761: if (is_valid) { 29761: result->key = key(); 29761: result->bound_check_result = IterBoundCheck::kUnknown; 29761: result->value_prepared = true; 29761: } 29761: return is_valid; 29761: } 29761: void Prev() override { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.prev_on_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 525 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (paranoid_memory_checks_) { 29761: status_ = iter_->PrevAndValidate(allow_data_in_error); 29761: } else { 29761: iter_->Prev(); 29761: } 29761: valid_ = iter_->Valid(); 29761: VerifyEntryChecksum(); 29761: } 29761: Slice key() const override { 29761: 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 535 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: return GetLengthPrefixedSlice(iter_->key()); 29761: } 29761: 29761: uint64_t write_unix_time() const override { 29761: 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 540 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: ParsedInternalKey pikey; 29761: Status s = ParseInternalKey(key(), &pikey, false); 29761: if (!s.ok()) { 29761: return std::numeric_limits::max(); 29761: } else if (kTypeValuePreferredSeqno == pikey.type) { 29761: return ParsePackedValueForWriteTime(value()); 29761: } else if (!seqno_to_time_mapping_ || seqno_to_time_mapping_->Empty()) { 29761: return std::numeric_limits::max(); 29761: } 29761: return seqno_to_time_mapping_->GetProximalTimeBeforeSeqno(pikey.sequence); 29761: } 29761: 29761: Slice value() const override { 29761: 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 554 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: Slice key_slice = GetLengthPrefixedSlice(iter_->key()); 29761: return GetLengthPrefixedSlice(key_slice.data() + key_slice.size()); 29761: } 29761: 29761: Status status() const override { return status_; } 29761: 29761: bool IsKeyPinned() const override { 29761: 29761: return true; 29761: } 29761: 29761: bool IsValuePinned() const override { 29761: 29761: return value_pinned_; 29761: } 29761: 29761: private: 29761: DynamicBloom* bloom_; 29761: const SliceTransform* const prefix_extractor_; 29761: const MemTable::KeyComparator comparator_; 29761: MemTableRep::Iterator* iter_; 29761: 29761: UnownedPtr seqno_to_time_mapping_; 29761: Status status_; 29761: Logger* logger_; 29761: size_t ts_sz_; 29761: uint32_t protection_bytes_per_key_; 29761: bool valid_; 29761: bool value_pinned_; 29761: bool arena_mode_; 29761: const bool paranoid_memory_checks_; 29761: const bool allow_data_in_error; 29761: 29761: void VerifyEntryChecksum() { 29761: if (protection_bytes_per_key_ > 0 && Valid()) { 29761: status_ = MemTable::VerifyEntryChecksum(iter_->key(), 29761: protection_bytes_per_key_); 29761: if (!status_.ok()) { 29761: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((logger_)), ("[%s:" "593" "] " "In MemtableIterator: %s"), RocksLogShorterFileName("./db/memtable.cc"), status_.getState()); 29761: } 29761: } 29761: } 29761: }; 29761: 29761: InternalIterator* MemTable::NewIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, bool ) { 29761: 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: arena != nullptr 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "arena != nullptr" 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: auto mem = arena->AllocateAligned(sizeof(MemTableIterator)); 29761: return new (mem) 29761: MemTableIterator(MemTableIterator::kPointEntries, *this, read_options, 29761: seqno_to_time_mapping, arena, prefix_extractor); 29761: } 29761: 29761: 29761: 29761: class TimestampStrippingIterator : public InternalIterator { 29761: public: 29761: TimestampStrippingIterator( 29761: MemTableIterator::Kind kind, const MemTable& memtable, 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* cf_prefix_extractor, size_t ts_sz) 29761: : arena_mode_(arena != nullptr), kind_(kind), ts_sz_(ts_sz) { 29761: 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ts_sz_ != 0 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "ts_sz_ != 0" 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 620 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: void* mem = arena ? arena->AllocateAligned(sizeof(MemTableIterator)) : 29761: operator new(sizeof(MemTableIterator)); 29761: iter_ = new (mem) 29761: MemTableIterator(kind, memtable, read_options, seqno_to_time_mapping, 29761: arena, cf_prefix_extractor); 29761: } 29761: 29761: 29761: TimestampStrippingIterator(const TimestampStrippingIterator&) = delete; 29761: void operator=(const TimestampStrippingIterator&) = delete; 29761: 29761: ~TimestampStrippingIterator() override { 29761: if (arena_mode_) { 29761: iter_->~MemTableIterator(); 29761: } else { 29761: delete iter_; 29761: } 29761: } 29761: 29761: void SetPinnedItersMgr(PinnedIteratorsManager* pinned_iters_mgr) override { 29761: iter_->SetPinnedItersMgr(pinned_iters_mgr); 29761: } 29761: 29761: bool Valid() const override { return iter_->Valid(); } 29761: void Seek(const Slice& k) override { 29761: iter_->Seek(k); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: void SeekForPrev(const Slice& k) override { 29761: iter_->SeekForPrev(k); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: void SeekToFirst() override { 29761: iter_->SeekToFirst(); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: void SeekToLast() override { 29761: iter_->SeekToLast(); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: void Next() override { 29761: iter_->Next(); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: bool NextAndGetResult(IterateResult* result) override { 29761: iter_->Next(); 29761: UpdateKeyAndValueBuffer(); 29761: bool is_valid = Valid(); 29761: if (is_valid) { 29761: result->key = key(); 29761: result->bound_check_result = IterBoundCheck::kUnknown; 29761: result->value_prepared = true; 29761: } 29761: return is_valid; 29761: } 29761: void Prev() override { 29761: iter_->Prev(); 29761: UpdateKeyAndValueBuffer(); 29761: } 29761: Slice key() const override { 29761: 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: Valid() 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "Valid()" 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 681 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: return key_buf_; 29761: } 29761: 29761: uint64_t write_unix_time() const override { return iter_->write_unix_time(); } 29761: Slice value() const override { 29761: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29761: return value_buf_; 29761: } 29761: return iter_->value(); 29761: } 29761: Status status() const override { return iter_->status(); } 29761: bool IsKeyPinned() const override { 29761: 29761: return false; 29761: } 29761: bool IsValuePinned() const override { 29761: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29761: return false; 29761: } 29761: return iter_->IsValuePinned(); 29761: } 29761: 29761: private: 29761: void UpdateKeyAndValueBuffer() { 29761: key_buf_.clear(); 29761: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29761: value_buf_.clear(); 29761: } 29761: if (!Valid()) { 29761: return; 29761: } 29761: Slice original_key = iter_->key(); 29761: ReplaceInternalKeyWithMinTimestamp(&key_buf_, original_key, ts_sz_); 29761: if (kind_ == MemTableIterator::Kind::kRangeDelEntries) { 29761: Slice original_value = iter_->value(); 29761: AppendUserKeyWithMinTimestamp(&value_buf_, original_value, ts_sz_); 29761: } 29761: } 29761: bool arena_mode_; 29761: MemTableIterator::Kind kind_; 29761: size_t ts_sz_; 29761: MemTableIterator* iter_; 29761: std::string key_buf_; 29761: std::string value_buf_; 29761: }; 29761: 29761: InternalIterator* MemTable::NewTimestampStrippingIterator( 29761: const ReadOptions& read_options, 29761: UnownedPtr seqno_to_time_mapping, Arena* arena, 29761: const SliceTransform* prefix_extractor, size_t ts_sz) { 29761: 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: arena != nullptr 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "arena != nullptr" 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 732 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: auto mem = arena->AllocateAligned(sizeof(TimestampStrippingIterator)); 29761: return new (mem) TimestampStrippingIterator( 29761: MemTableIterator::kPointEntries, *this, read_options, 29761: seqno_to_time_mapping, arena, prefix_extractor, ts_sz); 29761: } 29761: 29761: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIterator( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: bool immutable_memtable) { 29761: if (read_options.ignore_range_deletions || 29761: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29761: return nullptr; 29761: } 29761: return NewRangeTombstoneIteratorInternal(read_options, read_seq, 29761: immutable_memtable); 29761: } 29761: 29761: FragmentedRangeTombstoneIterator* 29761: MemTable::NewTimestampStrippingRangeTombstoneIterator( 29761: const ReadOptions& read_options, SequenceNumber read_seq, size_t ts_sz) { 29761: if (read_options.ignore_range_deletions || 29761: is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29761: return nullptr; 29761: } 29761: if (!timestamp_stripping_fragmented_range_tombstone_list_) { 29761: 29761: auto* unfragmented_iter = new TimestampStrippingIterator( 29761: MemTableIterator::kRangeDelEntries, *this, ReadOptions(), 29761: nullptr, nullptr, 29761: nullptr, ts_sz); 29761: 29761: timestamp_stripping_fragmented_range_tombstone_list_ = 29761: std::make_unique( 29761: std::unique_ptr(unfragmented_iter), 29761: comparator_.comparator); 29761: } 29761: return new FragmentedRangeTombstoneIterator( 29761: timestamp_stripping_fragmented_range_tombstone_list_.get(), 29761: comparator_.comparator, read_seq, read_options.timestamp); 29761: } 29761: 29761: FragmentedRangeTombstoneIterator* MemTable::NewRangeTombstoneIteratorInternal( 29761: const ReadOptions& read_options, SequenceNumber read_seq, 29761: bool immutable_memtable) { 29761: if (immutable_memtable) { 29761: 29761: 29761: 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: IsFragmentedRangeTombstonesConstructed() 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "IsFragmentedRangeTombstonesConstructed()" 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 780 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: return new FragmentedRangeTombstoneIterator( 29761: fragmented_range_tombstone_list_.get(), comparator_.comparator, 29761: read_seq, read_options.timestamp); 29761: } 29761: 29761: 29761: std::shared_ptr cache = 29761: std::atomic_load_explicit(cached_range_tombstone_.Access(), 29761: std::memory_order_relaxed); 29761: 29761: if (!cache->initialized.load(std::memory_order_acquire)) { 29761: cache->reader_mutex.lock(); 29761: if (!cache->tombstones) { 29761: auto* unfragmented_iter = new MemTableIterator( 29761: MemTableIterator::kRangeDelEntries, *this, read_options); 29761: cache->tombstones.reset(new FragmentedRangeTombstoneList( 29761: std::unique_ptr(unfragmented_iter), 29761: comparator_.comparator)); 29761: cache->initialized.store(true, std::memory_order_release); 29761: } 29761: cache->reader_mutex.unlock(); 29761: } 29761: 29761: auto* fragmented_iter = new FragmentedRangeTombstoneIterator( 29761: cache, comparator_.comparator, read_seq, read_options.timestamp); 29761: return fragmented_iter; 29761: } 29761: 29761: void MemTable::ConstructFragmentedRangeTombstones() { 29761: 29761: 29761: 29761: if (!is_range_del_table_empty_.load(std::memory_order_relaxed)) { 29761: 29761: auto* unfragmented_iter = new MemTableIterator( 29761: MemTableIterator::kRangeDelEntries, *this, ReadOptions()); 29761: 29761: fragmented_range_tombstone_list_ = 29761: std::make_unique( 29761: std::unique_ptr(unfragmented_iter), 29761: comparator_.comparator); 29761: } 29761: } 29761: 29761: port::RWMutex* MemTable::GetLock(const Slice& key) { 29761: return &locks_[GetSliceRangedNPHash(key, locks_.size())]; 29761: } 29761: 29761: ReadOnlyMemTable::MemTableStats MemTable::ApproximateStats( 29761: const Slice& start_ikey, const Slice& end_ikey) { 29761: uint64_t entry_count = table_->ApproximateNumEntries(start_ikey, end_ikey); 29761: entry_count += range_del_table_->ApproximateNumEntries(start_ikey, end_ikey); 29761: if (entry_count == 0) { 29761: return {0, 0}; 29761: } 29761: uint64_t n = num_entries_.load(std::memory_order_relaxed); 29761: if (n == 0) { 29761: return {0, 0}; 29761: } 29761: if (entry_count > n) { 29761: 29761: 29761: 29761: entry_count = n; 29761: } 29761: uint64_t data_size = data_size_.load(std::memory_order_relaxed); 29761: return {entry_count * (data_size / n), entry_count}; 29761: } 29761: 29761: Status MemTable::VerifyEncodedEntry(Slice encoded, 29761: const ProtectionInfoKVOS64& kv_prot_info) { 29761: uint32_t ikey_len = 0; 29761: if (!GetVarint32(&encoded, &ikey_len)) { 29761: return Status::Corruption("Unable to parse internal key length"); 29761: } 29761: if (ikey_len < 8 + ts_sz_) { 29761: return Status::Corruption("Internal key length too short"); 29761: } 29761: if (ikey_len > encoded.size()) { 29761: return Status::Corruption("Internal key length too long"); 29761: } 29761: uint32_t value_len = 0; 29761: const size_t user_key_len = ikey_len - 8; 29761: Slice key(encoded.data(), user_key_len); 29761: encoded.remove_prefix(user_key_len); 29761: 29761: uint64_t packed = DecodeFixed64(encoded.data()); 29761: ValueType value_type = kMaxValue; 29761: SequenceNumber sequence_number = kMaxSequenceNumber; 29761: UnPackSequenceAndType(packed, &sequence_number, &value_type); 29761: encoded.remove_prefix(8); 29761: 29761: if (!GetVarint32(&encoded, &value_len)) { 29761: return Status::Corruption("Unable to parse value length"); 29761: } 29761: if (value_len < encoded.size()) { 29761: return Status::Corruption("Value length too short"); 29761: } 29761: if (value_len > encoded.size()) { 29761: return Status::Corruption("Value length too long"); 29761: } 29761: Slice value(encoded.data(), value_len); 29761: 29761: return kv_prot_info.StripS(sequence_number) 29761: .StripKVO(key, value, value_type) 29761: .GetStatus(); 29761: } 29761: 29761: void MemTable::UpdateEntryChecksum(const ProtectionInfoKVOS64* kv_prot_info, 29761: const Slice& key, const Slice& value, 29761: ValueType type, SequenceNumber s, 29761: char* checksum_ptr) { 29761: if (moptions_.protection_bytes_per_key == 0) { 29761: return; 29761: } 29761: 29761: if (kv_prot_info == nullptr) { 29761: ProtectionInfo64() 29761: .ProtectKVO(key, value, type) 29761: .ProtectS(s) 29761: .Encode(static_cast(moptions_.protection_bytes_per_key), 29761: checksum_ptr); 29761: } else { 29761: kv_prot_info->Encode( 29761: static_cast(moptions_.protection_bytes_per_key), checksum_ptr); 29761: } 29761: } 29761: 29761: Status MemTable::Add(SequenceNumber s, ValueType type, 29761: const Slice& key, 29761: const Slice& value, 29761: const ProtectionInfoKVOS64* kv_prot_info, 29761: bool allow_concurrent, 29761: MemTablePostProcessInfo* post_process_info, void** hint) { 29761: 29761: 29761: 29761: 29761: 29761: 29761: uint32_t key_size = static_cast(key.size()); 29761: uint32_t val_size = static_cast(value.size()); 29761: uint32_t internal_key_size = key_size + 8; 29761: const uint32_t encoded_len = VarintLength(internal_key_size) + 29761: internal_key_size + VarintLength(val_size) + 29761: val_size + moptions_.protection_bytes_per_key; 29761: char* buf = nullptr; 29761: std::unique_ptr& table = 29761: type == kTypeRangeDeletion ? range_del_table_ : table_; 29761: KeyHandle handle = table->Allocate(encoded_len, &buf); 29761: 29761: char* p = EncodeVarint32(buf, internal_key_size); 29761: memcpy(p, key.data(), key_size); 29761: Slice key_slice(p, key_size); 29761: p += key_size; 29761: uint64_t packed = PackSequenceAndType(s, type); 29761: EncodeFixed64(p, packed); 29761: p += 8; 29761: p = EncodeVarint32(p, val_size); 29761: memcpy(p, value.data(), val_size); 29761: 29761: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: (unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len 29761: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "(unsigned)(p + val_size - buf + moptions_.protection_bytes_per_key) == (unsigned)encoded_len" 29761: # 941 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: 29761: # 942 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: UpdateEntryChecksum(kv_prot_info, key, value, type, s, 29761: buf + encoded_len - moptions_.protection_bytes_per_key); 29761: Slice encoded(buf, encoded_len - moptions_.protection_bytes_per_key); 29761: if (kv_prot_info != nullptr) { 29761: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:Encoded", &encoded); 29761: Status status = VerifyEncodedEntry(encoded, *kv_prot_info); 29761: if (!status.ok()) { 29761: return status; 29761: } 29761: } 29761: 29761: Slice key_without_ts = StripTimestampFromUserKey(key, ts_sz_); 29761: 29761: if (!allow_concurrent) { 29761: 29761: 29761: if (table == table_ && insert_with_hint_prefix_extractor_ != nullptr && 29761: insert_with_hint_prefix_extractor_->InDomain(key_slice)) { 29761: Slice prefix = insert_with_hint_prefix_extractor_->Transform(key_slice); 29761: bool res = table->InsertKeyWithHint(handle, &insert_hints_[prefix]); 29761: if ((__builtin_expect((!res), 0))) { 29761: return Status::TryAgain("key+seq exists"); 29761: } 29761: } else { 29761: bool res = table->InsertKey(handle); 29761: if ((__builtin_expect((!res), 0))) { 29761: return Status::TryAgain("key+seq exists"); 29761: } 29761: } 29761: 29761: 29761: 29761: num_entries_.store(num_entries_.load(std::memory_order_relaxed) + 1, 29761: std::memory_order_relaxed); 29761: data_size_.store(data_size_.load(std::memory_order_relaxed) + encoded_len, 29761: std::memory_order_relaxed); 29761: if (type == kTypeDeletion || type == kTypeSingleDeletion || 29761: type == kTypeDeletionWithTimestamp) { 29761: num_deletes_.store(num_deletes_.load(std::memory_order_relaxed) + 1, 29761: std::memory_order_relaxed); 29761: } else if (type == kTypeRangeDeletion) { 29761: uint64_t val = num_range_deletes_.load(std::memory_order_relaxed) + 1; 29761: num_range_deletes_.store(val, std::memory_order_relaxed); 29761: } 29761: 29761: if (bloom_filter_ && prefix_extractor_ && 29761: prefix_extractor_->InDomain(key_without_ts)) { 29761: bloom_filter_->Add(prefix_extractor_->Transform(key_without_ts)); 29761: } 29761: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 29761: bloom_filter_->Add(key_without_ts); 29761: } 29761: 29761: 29761: 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: first_seqno_ == 0 || s >= first_seqno_ 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "first_seqno_ == 0 || s >= first_seqno_" 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 998 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (first_seqno_ == 0) { 29761: first_seqno_.store(s, std::memory_order_relaxed); 29761: 29761: if (earliest_seqno_ == kMaxSequenceNumber) { 29761: earliest_seqno_.store(GetFirstSequenceNumber(), 29761: std::memory_order_relaxed); 29761: } 29761: 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: first_seqno_.load() >= earliest_seqno_.load() 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "first_seqno_.load() >= earliest_seqno_.load()" 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1006 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: post_process_info == nullptr 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "post_process_info == nullptr" 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1008 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: 29761: MaybeUpdateNewestUDT(key_slice); 29761: UpdateFlushState(); 29761: } else { 29761: bool res = (hint == nullptr) 29761: ? table->InsertKeyConcurrently(handle) 29761: : table->InsertKeyWithHintConcurrently(handle, hint); 29761: if ((__builtin_expect((!res), 0))) { 29761: return Status::TryAgain("key+seq exists"); 29761: } 29761: 29761: 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: post_process_info != nullptr 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "post_process_info != nullptr" 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1021 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: post_process_info->num_entries++; 29761: post_process_info->data_size += encoded_len; 29761: if (type == kTypeDeletion) { 29761: post_process_info->num_deletes++; 29761: } 29761: 29761: if (bloom_filter_ && prefix_extractor_ && 29761: prefix_extractor_->InDomain(key_without_ts)) { 29761: bloom_filter_->AddConcurrently( 29761: prefix_extractor_->Transform(key_without_ts)); 29761: } 29761: if (bloom_filter_ && moptions_.memtable_whole_key_filtering) { 29761: bloom_filter_->AddConcurrently(key_without_ts); 29761: } 29761: 29761: 29761: uint64_t cur_seq_num = first_seqno_.load(std::memory_order_relaxed); 29761: while ((cur_seq_num == 0 || s < cur_seq_num) && 29761: !first_seqno_.compare_exchange_weak(cur_seq_num, s)) { 29761: } 29761: uint64_t cur_earliest_seqno = 29761: earliest_seqno_.load(std::memory_order_relaxed); 29761: while ( 29761: (cur_earliest_seqno == kMaxSequenceNumber || s < cur_earliest_seqno) && 29761: !earliest_seqno_.compare_exchange_weak(cur_earliest_seqno, s)) { 29761: } 29761: } 29761: if (type == kTypeRangeDeletion) { 29761: auto new_cache = std::make_shared(); 29761: size_t size = cached_range_tombstone_.Size(); 29761: if (allow_concurrent) { 29761: post_process_info->num_range_deletes++; 29761: range_del_mutex_.lock(); 29761: } 29761: for (size_t i = 0; i < size; ++i) { 29761: std::shared_ptr* local_cache_ref_ptr = 29761: cached_range_tombstone_.AccessAtCore(i); 29761: auto new_local_cache_ref = std::make_shared< 29761: const std::shared_ptr>(new_cache); 29761: 29761: 29761: 29761: 29761: 29761: std::atomic_store_explicit( 29761: local_cache_ref_ptr, 29761: std::shared_ptr( 29761: new_local_cache_ref, new_cache.get()), 29761: std::memory_order_relaxed); 29761: } 29761: 29761: if (allow_concurrent) { 29761: range_del_mutex_.unlock(); 29761: } 29761: is_range_del_table_empty_.store(false, std::memory_order_relaxed); 29761: } 29761: UpdateOldestKeyTime(); 29761: 29761: rocksdb::SyncPoint::GetInstance()->Process("MemTable::Add:BeforeReturn:Encoded", &encoded); 29761: return Status::OK(); 29761: } 29761: 29761: 29761: namespace { 29761: 29761: struct Saver { 29761: Status* status; 29761: const LookupKey* key; 29761: bool* found_final_value; 29761: bool* merge_in_progress; 29761: std::string* value; 29761: PinnableWideColumns* columns; 29761: SequenceNumber seq; 29761: std::string* timestamp; 29761: const MergeOperator* merge_operator; 29761: 29761: MergeContext* merge_context; 29761: SequenceNumber max_covering_tombstone_seq; 29761: MemTable* mem; 29761: Logger* logger; 29761: Statistics* statistics; 29761: bool inplace_update_support; 29761: bool do_merge; 29761: SystemClock* clock; 29761: 29761: ReadCallback* callback_; 29761: bool* is_blob_index; 29761: bool allow_data_in_errors; 29761: uint32_t protection_bytes_per_key; 29761: bool CheckCallback(SequenceNumber _seq) { 29761: if (callback_) { 29761: return callback_->IsVisible(_seq); 29761: } 29761: return true; 29761: } 29761: }; 29761: } 29761: 29761: static bool SaveValue(void* arg, const char* entry) { 29761: Saver* s = static_cast(arg); 29761: 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s != nullptr 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s != nullptr" 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1122 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: !s->value || !s->columns 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "!s->value || !s->columns" 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1123 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: !*(s->found_final_value) 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "!*(s->found_final_value)" 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1124 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s->status->ok() || s->status->IsMergeInProgress() 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s->status->ok() || s->status->IsMergeInProgress()" 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1125 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: MergeContext* merge_context = s->merge_context; 29761: SequenceNumber max_covering_tombstone_seq = s->max_covering_tombstone_seq; 29761: const MergeOperator* merge_operator = s->merge_operator; 29761: 29761: 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: merge_context != nullptr 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "merge_context != nullptr" 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1131 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: 29761: 29761: uint32_t key_length = 0; 29761: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29761: 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: key_length >= 8 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "key_length >= 8" 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1137 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: Slice user_key_slice = Slice(key_ptr, key_length - 8); 29761: const Comparator* user_comparator = 29761: s->mem->GetInternalKeyComparator().user_comparator(); 29761: size_t ts_sz = user_comparator->timestamp_size(); 29761: if (ts_sz && s->timestamp && max_covering_tombstone_seq > 0) { 29761: 29761: 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s->timestamp->size() == ts_sz 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s->timestamp->size() == ts_sz" 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1144 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: if (user_comparator->EqualWithoutTimestamp(user_key_slice, 29761: s->key->user_key())) { 29761: 29761: rocksdb::SyncPoint::GetInstance()->Process("Memtable::SaveValue:Found:entry", &entry); 29761: std::optional read_lock; 29761: if (s->inplace_update_support) { 29761: read_lock.emplace(s->mem->GetLock(s->key->user_key())); 29761: } 29761: 29761: if (s->protection_bytes_per_key > 0) { 29761: *(s->status) = MemTable::VerifyEntryChecksum( 29761: entry, s->protection_bytes_per_key, s->allow_data_in_errors); 29761: if (!s->status->ok()) { 29761: *(s->found_final_value) = true; 29761: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1160" "] " "In SaveValue: %s"), RocksLogShorterFileName("./db/memtable.cc"), s->status->getState()); 29761: 29761: return false; 29761: } 29761: } 29761: 29761: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29761: ValueType type; 29761: SequenceNumber seq; 29761: UnPackSequenceAndType(tag, &seq, &type); 29761: 29761: if (!s->CheckCallback(seq)) { 29761: return true; 29761: } 29761: 29761: if (s->seq == kMaxSequenceNumber) { 29761: s->seq = seq; 29761: if (s->seq > max_covering_tombstone_seq) { 29761: if (ts_sz && s->timestamp != nullptr) { 29761: 29761: 29761: 29761: 29761: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 29761: s->timestamp->assign(ts.data(), ts_sz); 29761: } 29761: } else { 29761: s->seq = max_covering_tombstone_seq; 29761: } 29761: } 29761: 29761: if (ts_sz > 0 && s->timestamp != nullptr) { 29761: if (!s->timestamp->empty()) { 29761: 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ts_sz == s->timestamp->size() 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "ts_sz == s->timestamp->size()" 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1193 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: 29761: const std::string kMaxTs(ts_sz, '\xff'); 29761: if (s->timestamp->empty() || 29761: user_comparator->CompareTimestamp(*(s->timestamp), kMaxTs) == 0) { 29761: Slice ts = ExtractTimestampFromUserKey(user_key_slice, ts_sz); 29761: s->timestamp->assign(ts.data(), ts_sz); 29761: } 29761: } 29761: 29761: if ((type == kTypeValue || type == kTypeMerge || type == kTypeBlobIndex || 29761: type == kTypeWideColumnEntity || type == kTypeDeletion || 29761: type == kTypeSingleDeletion || type == kTypeDeletionWithTimestamp || 29761: type == kTypeValuePreferredSeqno) && 29761: max_covering_tombstone_seq > seq) { 29761: type = kTypeRangeDeletion; 29761: } 29761: switch (type) { 29761: case kTypeBlobIndex: { 29761: if (!s->do_merge) { 29761: *(s->status) = Status::NotSupported( 29761: "GetMergeOperands not supported by stacked BlobDB"); 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: 29761: if (*(s->merge_in_progress)) { 29761: *(s->status) = Status::NotSupported( 29761: "Merge operator not supported by stacked BlobDB"); 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: 29761: if (s->is_blob_index == nullptr) { 29761: rocksdb::Log((InfoLogLevel::ERROR_LEVEL), ((s->logger)), ("[%s:" "1228" "] " "Encountered unexpected blob index."), RocksLogShorterFileName("./db/memtable.cc")); 29761: *(s->status) = Status::NotSupported( 29761: "Encountered unexpected blob index. Please open DB with " 29761: "ROCKSDB_NAMESPACE::blob_db::BlobDB."); 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: 29761: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29761: 29761: *(s->status) = Status::OK(); 29761: 29761: if (s->value) { 29761: s->value->assign(v.data(), v.size()); 29761: } else if (s->columns) { 29761: s->columns->SetPlainValue(v); 29761: } 29761: 29761: *(s->found_final_value) = true; 29761: *(s->is_blob_index) = true; 29761: 29761: return false; 29761: } 29761: case kTypeValue: 29761: case kTypeValuePreferredSeqno: { 29761: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29761: if (type == kTypeValuePreferredSeqno) { 29761: v = ParsePackedValueForValue(v); 29761: } 29761: 29761: ReadOnlyMemTable::HandleTypeValue( 29761: s->key->user_key(), v, s->inplace_update_support == false, 29761: s->do_merge, *(s->merge_in_progress), merge_context, 29761: s->merge_operator, s->clock, s->statistics, s->logger, s->status, 29761: s->value, s->columns, s->is_blob_index); 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: case kTypeWideColumnEntity: { 29761: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29761: 29761: *(s->status) = Status::OK(); 29761: 29761: if (!s->do_merge) { 29761: 29761: 29761: 29761: Slice value_of_default; 29761: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 29761: v, value_of_default); 29761: 29761: if (s->status->ok()) { 29761: merge_context->PushOperand( 29761: value_of_default, 29761: s->inplace_update_support == false ); 29761: } 29761: } else if (*(s->merge_in_progress)) { 29761: 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s->do_merge 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s->do_merge" 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1285 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: 29761: if (s->value || s->columns) { 29761: 29761: 29761: 29761: *(s->status) = MergeHelper::TimedFullMerge( 29761: merge_operator, s->key->user_key(), MergeHelper::kWideBaseValue, 29761: v, merge_context->GetOperands(), s->logger, s->statistics, 29761: s->clock, true, 29761: nullptr, s->value, s->columns); 29761: } 29761: } else if (s->value) { 29761: Slice value_of_default; 29761: *(s->status) = WideColumnSerialization::GetValueOfDefaultColumn( 29761: v, value_of_default); 29761: if (s->status->ok()) { 29761: s->value->assign(value_of_default.data(), value_of_default.size()); 29761: } 29761: } else if (s->columns) { 29761: *(s->status) = s->columns->SetWideColumnValue(v); 29761: } 29761: 29761: *(s->found_final_value) = true; 29761: 29761: if (s->is_blob_index != nullptr) { 29761: *(s->is_blob_index) = false; 29761: } 29761: 29761: return false; 29761: } 29761: case kTypeDeletion: 29761: case kTypeDeletionWithTimestamp: 29761: case kTypeSingleDeletion: 29761: case kTypeRangeDeletion: { 29761: ReadOnlyMemTable::HandleTypeDeletion( 29761: s->key->user_key(), *(s->merge_in_progress), s->merge_context, 29761: s->merge_operator, s->clock, s->statistics, s->logger, s->status, 29761: s->value, s->columns); 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: case kTypeMerge: { 29761: if (!merge_operator) { 29761: *(s->status) = Status::InvalidArgument( 29761: "merge_operator is not properly initialized."); 29761: 29761: 29761: 29761: 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: Slice v = GetLengthPrefixedSlice(key_ptr + key_length); 29761: *(s->merge_in_progress) = true; 29761: merge_context->PushOperand( 29761: v, s->inplace_update_support == false ); 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.internal_merge_point_lookup_count += 1; } static_assert(true, "semicolon required"); 29761: 29761: if (s->do_merge && merge_operator->ShouldMerge( 29761: merge_context->GetOperandsDirectionBackward())) { 29761: if (s->value || s->columns) { 29761: 29761: 29761: 29761: *(s->status) = MergeHelper::TimedFullMerge( 29761: merge_operator, s->key->user_key(), MergeHelper::kNoBaseValue, 29761: merge_context->GetOperands(), s->logger, s->statistics, 29761: s->clock, true, 29761: nullptr, s->value, s->columns); 29761: } 29761: 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: if (merge_context->get_merge_operands_options != nullptr && 29761: merge_context->get_merge_operands_options->continue_cb != nullptr && 29761: !merge_context->get_merge_operands_options->continue_cb(v)) { 29761: 29761: *(s->found_final_value) = true; 29761: return false; 29761: } 29761: 29761: return true; 29761: } 29761: default: { 29761: std::string msg("Corrupted value not expected."); 29761: if (s->allow_data_in_errors) { 29761: msg.append("Unrecognized value type: " + 29761: std::to_string(static_cast(type)) + ". "); 29761: msg.append("User key: " + user_key_slice.ToString( true) + 29761: ". "); 29761: msg.append("seq: " + std::to_string(seq) + "."); 29761: } 29761: *(s->found_final_value) = true; 29761: *(s->status) = Status::Corruption(msg.c_str()); 29761: return false; 29761: } 29761: } 29761: } 29761: 29761: 29761: return false; 29761: } 29761: 29761: bool MemTable::Get(const LookupKey& key, std::string* value, 29761: PinnableWideColumns* columns, std::string* timestamp, 29761: Status* s, MergeContext* merge_context, 29761: SequenceNumber* max_covering_tombstone_seq, 29761: SequenceNumber* seq, const ReadOptions& read_opts, 29761: bool immutable_memtable, ReadCallback* callback, 29761: bool* is_blob_index, bool do_merge) { 29761: 29761: if (IsEmpty()) { 29761: 29761: return false; 29761: } 29761: 29761: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 29761: 29761: std::unique_ptr range_del_iter( 29761: NewRangeTombstoneIterator(read_opts, 29761: GetInternalKeySeqno(key.internal_key()), 29761: immutable_memtable)); 29761: if (range_del_iter != nullptr) { 29761: SequenceNumber covering_seq = 29761: range_del_iter->MaxCoveringTombstoneSeqnum(key.user_key()); 29761: if (covering_seq > *max_covering_tombstone_seq) { 29761: *max_covering_tombstone_seq = covering_seq; 29761: if (timestamp) { 29761: 29761: 29761: timestamp->assign(range_del_iter->timestamp().data(), 29761: range_del_iter->timestamp().size()); 29761: } 29761: } 29761: } 29761: 29761: bool found_final_value = false; 29761: bool merge_in_progress = s->IsMergeInProgress(); 29761: bool may_contain = true; 29761: Slice user_key_without_ts = StripTimestampFromUserKey(key.user_key(), ts_sz_); 29761: bool bloom_checked = false; 29761: if (bloom_filter_) { 29761: 29761: 29761: if (moptions_.memtable_whole_key_filtering) { 29761: may_contain = bloom_filter_->MayContain(user_key_without_ts); 29761: bloom_checked = true; 29761: } else { 29761: 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: prefix_extractor_ 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "prefix_extractor_" 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1435 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (prefix_extractor_->InDomain(user_key_without_ts)) { 29761: may_contain = bloom_filter_->MayContain( 29761: prefix_extractor_->Transform(user_key_without_ts)); 29761: bloom_checked = true; 29761: } 29761: } 29761: } 29761: 29761: if (bloom_filter_ && !may_contain) { 29761: 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29761: *seq = kMaxSequenceNumber; 29761: } else { 29761: if (bloom_checked) { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29761: } 29761: GetFromTable(key, *max_covering_tombstone_seq, do_merge, callback, 29761: is_blob_index, value, columns, timestamp, s, merge_context, 29761: seq, &found_final_value, &merge_in_progress); 29761: } 29761: 29761: 29761: 29761: if (!found_final_value && merge_in_progress) { 29761: if (s->ok()) { 29761: *s = Status::MergeInProgress(); 29761: } else { 29761: 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s->IsMergeInProgress() 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s->IsMergeInProgress()" 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1463 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: } 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: return found_final_value; 29761: } 29761: 29761: void MemTable::GetFromTable(const LookupKey& key, 29761: SequenceNumber max_covering_tombstone_seq, 29761: bool do_merge, ReadCallback* callback, 29761: bool* is_blob_index, std::string* value, 29761: PinnableWideColumns* columns, 29761: std::string* timestamp, Status* s, 29761: MergeContext* merge_context, SequenceNumber* seq, 29761: bool* found_final_value, bool* merge_in_progress) { 29761: Saver saver; 29761: saver.status = s; 29761: saver.found_final_value = found_final_value; 29761: saver.merge_in_progress = merge_in_progress; 29761: saver.key = &key; 29761: saver.value = value; 29761: saver.columns = columns; 29761: saver.timestamp = timestamp; 29761: saver.seq = kMaxSequenceNumber; 29761: saver.mem = this; 29761: saver.merge_context = merge_context; 29761: saver.max_covering_tombstone_seq = max_covering_tombstone_seq; 29761: saver.merge_operator = moptions_.merge_operator; 29761: saver.logger = moptions_.info_log; 29761: saver.inplace_update_support = moptions_.inplace_update_support; 29761: saver.statistics = moptions_.statistics; 29761: saver.clock = clock_; 29761: saver.callback_ = callback; 29761: saver.is_blob_index = is_blob_index; 29761: saver.do_merge = do_merge; 29761: saver.allow_data_in_errors = moptions_.allow_data_in_errors; 29761: saver.protection_bytes_per_key = moptions_.protection_bytes_per_key; 29761: 29761: if (!moptions_.paranoid_memory_checks) { 29761: table_->Get(key, &saver, SaveValue); 29761: } else { 29761: Status check_s = table_->GetAndValidate(key, &saver, SaveValue, 29761: moptions_.allow_data_in_errors); 29761: if (check_s.IsCorruption()) { 29761: *(saver.status) = check_s; 29761: 29761: *(saver.found_final_value) = true; 29761: } 29761: } 29761: 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: s->ok() || s->IsMergeInProgress() || *found_final_value 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "s->ok() || s->IsMergeInProgress() || *found_final_value" 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1512 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: *seq = saver.seq; 29761: } 29761: 29761: void MemTable::MultiGet(const ReadOptions& read_options, MultiGetRange* range, 29761: ReadCallback* callback, bool immutable_memtable) { 29761: 29761: if (IsEmpty()) { 29761: 29761: return; 29761: } 29761: PerfStepTimer perf_step_timer_get_from_memtable_time(&(perf_context.get_from_memtable_time)); perf_step_timer_get_from_memtable_time.Start();; 29761: 29761: 29761: 29761: 29761: bool no_range_del = read_options.ignore_range_deletions || 29761: is_range_del_table_empty_.load(std::memory_order_relaxed); 29761: MultiGetRange temp_range(*range, range->begin(), range->end()); 29761: if (bloom_filter_ && no_range_del) { 29761: bool whole_key = 29761: !prefix_extractor_ || moptions_.memtable_whole_key_filtering; 29761: std::array bloom_keys; 29761: std::array may_match; 29761: std::array range_indexes; 29761: int num_keys = 0; 29761: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 29761: if (whole_key) { 29761: bloom_keys[num_keys] = iter->ukey_without_ts; 29761: range_indexes[num_keys++] = iter.index(); 29761: } else if (prefix_extractor_->InDomain(iter->ukey_without_ts)) { 29761: bloom_keys[num_keys] = 29761: prefix_extractor_->Transform(iter->ukey_without_ts); 29761: range_indexes[num_keys++] = iter.index(); 29761: } 29761: } 29761: bloom_filter_->MayContain(num_keys, bloom_keys.data(), may_match.data()); 29761: for (int i = 0; i < num_keys; ++i) { 29761: if (!may_match[i]) { 29761: temp_range.SkipIndex(range_indexes[i]); 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_miss_count += 1; } static_assert(true, "semicolon required"); 29761: } else { 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.bloom_memtable_hit_count += 1; } static_assert(true, "semicolon required"); 29761: } 29761: } 29761: } 29761: for (auto iter = temp_range.begin(); iter != temp_range.end(); ++iter) { 29761: bool found_final_value{false}; 29761: bool merge_in_progress = iter->s->IsMergeInProgress(); 29761: if (!no_range_del) { 29761: std::unique_ptr range_del_iter( 29761: NewRangeTombstoneIteratorInternal( 29761: read_options, GetInternalKeySeqno(iter->lkey->internal_key()), 29761: immutable_memtable)); 29761: SequenceNumber covering_seq = 29761: range_del_iter->MaxCoveringTombstoneSeqnum(iter->lkey->user_key()); 29761: if (covering_seq > iter->max_covering_tombstone_seq) { 29761: iter->max_covering_tombstone_seq = covering_seq; 29761: if (iter->timestamp) { 29761: 29761: 29761: iter->timestamp->assign(range_del_iter->timestamp().data(), 29761: range_del_iter->timestamp().size()); 29761: } 29761: } 29761: } 29761: SequenceNumber dummy_seq; 29761: GetFromTable(*(iter->lkey), iter->max_covering_tombstone_seq, true, 29761: callback, &iter->is_blob_index, 29761: iter->value ? iter->value->GetSelf() : nullptr, iter->columns, 29761: iter->timestamp, iter->s, &(iter->merge_context), &dummy_seq, 29761: &found_final_value, &merge_in_progress); 29761: 29761: if (!found_final_value && merge_in_progress) { 29761: if (iter->s->ok()) { 29761: *(iter->s) = Status::MergeInProgress(); 29761: } else { 29761: 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: iter->s->IsMergeInProgress() 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "iter->s->IsMergeInProgress()" 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1589 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: } 29761: } 29761: 29761: if (found_final_value || 29761: (!iter->s->ok() && !iter->s->IsMergeInProgress())) { 29761: 29761: 29761: 29761: 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: found_final_value 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "found_final_value" 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1598 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (iter->value) { 29761: iter->value->PinSelf(); 29761: range->AddValueSize(iter->value->size()); 29761: } else { 29761: 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: iter->columns 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "iter->columns" 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1603 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: range->AddValueSize(iter->columns->serialized_size()); 29761: } 29761: 29761: range->MarkKeyDone(iter); 29761: RecordTick(moptions_.statistics, MEMTABLE_HIT); 29761: if (range->GetValueSize() > read_options.value_size_soft_limit) { 29761: 29761: for (auto range_iter = range->begin(); range_iter != range->end(); 29761: ++range_iter) { 29761: range->MarkKeyDone(range_iter); 29761: *(range_iter->s) = Status::Aborted(); 29761: } 29761: break; 29761: } 29761: } 29761: } 29761: if (perf_level >= PerfLevel::kEnableCount) { perf_context.get_from_memtable_count += 1; } static_assert(true, "semicolon required"); 29761: } 29761: 29761: Status MemTable::Update(SequenceNumber seq, ValueType value_type, 29761: const Slice& key, const Slice& value, 29761: const ProtectionInfoKVOS64* kv_prot_info) { 29761: LookupKey lkey(key, seq); 29761: Slice mem_key = lkey.memtable_key(); 29761: 29761: std::unique_ptr iter( 29761: table_->GetDynamicPrefixIterator()); 29761: iter->Seek(lkey.internal_key(), mem_key.data()); 29761: 29761: if (iter->Valid()) { 29761: 29761: 29761: 29761: 29761: const char* entry = iter->key(); 29761: uint32_t key_length = 0; 29761: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29761: if (comparator_.comparator.user_comparator()->Equal( 29761: Slice(key_ptr, key_length - 8), lkey.user_key())) { 29761: 29761: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29761: ValueType type; 29761: SequenceNumber existing_seq; 29761: UnPackSequenceAndType(tag, &existing_seq, &type); 29761: 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: existing_seq != seq 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "existing_seq != seq" 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1648 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (type == value_type) { 29761: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 29761: uint32_t prev_size = static_cast(prev_value.size()); 29761: uint32_t new_size = static_cast(value.size()); 29761: 29761: 29761: if (new_size <= prev_size) { 29761: WriteLock wl(GetLock(lkey.user_key())); 29761: char* p = 29761: EncodeVarint32(const_cast(key_ptr) + key_length, new_size); 29761: memcpy(p, value.data(), value.size()); 29761: 29761: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: (unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size()) 29761: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "(unsigned)((p + value.size()) - entry) == (unsigned)(VarintLength(key_length) + key_length + VarintLength(value.size()) + value.size())" 29761: # 1660 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: 29761: 29761: # 1662 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 29761: if (kv_prot_info != nullptr) { 29761: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29761: 29761: updated_kv_prot_info.UpdateS(seq, existing_seq); 29761: UpdateEntryChecksum(&updated_kv_prot_info, key, value, type, 29761: existing_seq, p + value.size()); 29761: Slice encoded(entry, p + value.size() - entry); 29761: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 29761: } else { 29761: UpdateEntryChecksum(nullptr, key, value, type, existing_seq, 29761: p + value.size()); 29761: } 29761: return Status::OK(); 29761: } 29761: } 29761: } 29761: } 29761: 29761: 29761: return Add(seq, value_type, key, value, kv_prot_info); 29761: } 29761: 29761: Status MemTable::UpdateCallback(SequenceNumber seq, const Slice& key, 29761: const Slice& delta, 29761: const ProtectionInfoKVOS64* kv_prot_info) { 29761: LookupKey lkey(key, seq); 29761: Slice memkey = lkey.memtable_key(); 29761: 29761: std::unique_ptr iter( 29761: table_->GetDynamicPrefixIterator()); 29761: iter->Seek(lkey.internal_key(), memkey.data()); 29761: 29761: if (iter->Valid()) { 29761: 29761: 29761: 29761: 29761: const char* entry = iter->key(); 29761: uint32_t key_length = 0; 29761: const char* key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29761: if (comparator_.comparator.user_comparator()->Equal( 29761: Slice(key_ptr, key_length - 8), lkey.user_key())) { 29761: 29761: const uint64_t tag = DecodeFixed64(key_ptr + key_length - 8); 29761: ValueType type; 29761: uint64_t existing_seq; 29761: UnPackSequenceAndType(tag, &existing_seq, &type); 29761: if (type == kTypeValue) { 29761: Slice prev_value = GetLengthPrefixedSlice(key_ptr + key_length); 29761: uint32_t prev_size = static_cast(prev_value.size()); 29761: 29761: char* prev_buffer = const_cast(prev_value.data()); 29761: uint32_t new_prev_size = prev_size; 29761: 29761: std::string str_value; 29761: WriteLock wl(GetLock(lkey.user_key())); 29761: auto status = moptions_.inplace_callback(prev_buffer, &new_prev_size, 29761: delta, &str_value); 29761: if (status == UpdateStatus::UPDATED_INPLACE) { 29761: 29761: 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: new_prev_size <= prev_size 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "new_prev_size <= prev_size" 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1724 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: if (new_prev_size < prev_size) { 29761: 29761: char* p = EncodeVarint32(const_cast(key_ptr) + key_length, 29761: new_prev_size); 29761: if (VarintLength(new_prev_size) < VarintLength(prev_size)) { 29761: 29761: memcpy(p, prev_buffer, new_prev_size); 29761: prev_buffer = p; 29761: } 29761: } 29761: RecordTick(moptions_.statistics, NUMBER_KEYS_UPDATED); 29761: UpdateFlushState(); 29761: Slice new_value(prev_buffer, new_prev_size); 29761: if (kv_prot_info != nullptr) { 29761: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29761: 29761: updated_kv_prot_info.UpdateS(seq, existing_seq); 29761: updated_kv_prot_info.UpdateV(delta, new_value); 29761: Slice encoded(entry, prev_buffer + new_prev_size - entry); 29761: UpdateEntryChecksum(&updated_kv_prot_info, key, new_value, type, 29761: existing_seq, prev_buffer + new_prev_size); 29761: return VerifyEncodedEntry(encoded, updated_kv_prot_info); 29761: } else { 29761: UpdateEntryChecksum(nullptr, key, new_value, type, existing_seq, 29761: prev_buffer + new_prev_size); 29761: } 29761: return Status::OK(); 29761: } else if (status == UpdateStatus::UPDATED) { 29761: Status s; 29761: if (kv_prot_info != nullptr) { 29761: ProtectionInfoKVOS64 updated_kv_prot_info(*kv_prot_info); 29761: updated_kv_prot_info.UpdateV(delta, str_value); 29761: s = Add(seq, kTypeValue, key, Slice(str_value), 29761: &updated_kv_prot_info); 29761: } else { 29761: s = Add(seq, kTypeValue, key, Slice(str_value), 29761: nullptr ); 29761: } 29761: RecordTick(moptions_.statistics, NUMBER_KEYS_WRITTEN); 29761: UpdateFlushState(); 29761: return s; 29761: } else if (status == UpdateStatus::UPDATE_FAILED) { 29761: 29761: 29761: UpdateFlushState(); 29761: return Status::OK(); 29761: } 29761: } 29761: } 29761: } 29761: 29761: return Status::NotFound(); 29761: } 29761: 29761: size_t MemTable::CountSuccessiveMergeEntries(const LookupKey& key, 29761: size_t limit) { 29761: Slice memkey = key.memtable_key(); 29761: 29761: 29761: 29761: 29761: std::unique_ptr iter( 29761: table_->GetDynamicPrefixIterator()); 29761: iter->Seek(key.internal_key(), memkey.data()); 29761: 29761: size_t num_successive_merges = 0; 29761: 29761: for (; iter->Valid() && num_successive_merges < limit; iter->Next()) { 29761: const char* entry = iter->key(); 29761: uint32_t key_length = 0; 29761: const char* iter_key_ptr = GetVarint32Ptr(entry, entry + 5, &key_length); 29761: if (!comparator_.comparator.user_comparator()->Equal( 29761: Slice(iter_key_ptr, key_length - 8), key.user_key())) { 29761: break; 29761: } 29761: 29761: const uint64_t tag = DecodeFixed64(iter_key_ptr + key_length - 8); 29761: ValueType type; 29761: uint64_t unused; 29761: UnPackSequenceAndType(tag, &unused, &type); 29761: if (type != kTypeMerge) { 29761: break; 29761: } 29761: 29761: ++num_successive_merges; 29761: } 29761: 29761: return num_successive_merges; 29761: } 29761: 29761: void MemTableRep::Get(const LookupKey& k, void* callback_args, 29761: bool (*callback_func)(void* arg, const char* entry)) { 29761: auto iter = GetDynamicPrefixIterator(); 29761: for (iter->Seek(k.internal_key(), k.memtable_key().data()); 29761: iter->Valid() && callback_func(callback_args, iter->key()); 29761: iter->Next()) { 29761: } 29761: } 29761: 29761: void MemTable::RefLogContainingPrepSection(uint64_t log) { 29761: 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: log > 0 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "log > 0" 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1825 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: auto cur = min_prep_log_referenced_.load(); 29761: while ((log < cur || cur == 0) && 29761: !min_prep_log_referenced_.compare_exchange_strong(cur, log)) { 29761: cur = min_prep_log_referenced_.load(); 29761: } 29761: } 29761: 29761: uint64_t MemTable::GetMinLogContainingPrepSection() { 29761: return min_prep_log_referenced_.load(); 29761: } 29761: 29761: void MemTable::MaybeUpdateNewestUDT(const Slice& user_key) { 29761: if (ts_sz_ == 0 || persist_user_defined_timestamps_) { 29761: return; 29761: } 29761: const Comparator* ucmp = GetInternalKeyComparator().user_comparator(); 29761: Slice udt = ExtractTimestampFromUserKey(user_key, ts_sz_); 29761: if (newest_udt_.empty() || ucmp->CompareTimestamp(udt, newest_udt_) > 0) { 29761: newest_udt_ = udt; 29761: } 29761: } 29761: 29761: const Slice& MemTable::GetNewestUDT() const { 29761: 29761: 29761: 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: (static_cast ( 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ts_sz_ > 0 && !persist_user_defined_timestamps_ 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: ) ? void (0) : __assert_fail ( 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: "ts_sz_ > 0 && !persist_user_defined_timestamps_" 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 3 4 29761: , __builtin_FILE (), __builtin_LINE (), __extension__ __PRETTY_FUNCTION__)) 29761: # 1851 "/build/reproducible-path/rocksdb-9.10.0/db/memtable.cc" 29761: ; 29761: return newest_udt_; 29761: } 29761: 29761: } [ 23%] Building CXX object CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o === END GCC DUMP === /usr/bin/c++ -DBZIP2 -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DLZ4 -DOS_LINUX -DROCKSDB_AUXV_GETAUXVAL_PRESENT -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_LIB_IO_POSIX -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DROCKSDB_PTHREAD_ADAPTIVE_MUTEX -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DSNAPPY -DZLIB -DZSTD -Drocksdb_shared_EXPORTS -I/build/reproducible-path/rocksdb-9.10.0 -I/build/reproducible-path/rocksdb-9.10.0/include -isystem /build/reproducible-path/rocksdb-9.10.0/third-party/gtest-1.8.1/fused-src -g -O2 -ffile-prefix-map=/build/reproducible-path/rocksdb-9.10.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -fno-builtin-memcmp -std=gnu++17 -fPIC -MD -MT CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o -MF CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o.d -o CMakeFiles/rocksdb-shared.dir/db/output_validator.cc.o -c /build/reproducible-path/rocksdb-9.10.0/db/output_validator.cc make[3]: *** [CMakeFiles/rocksdb-shared.dir/build.make:1146: CMakeFiles/rocksdb-shared.dir/db/memtable.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make[2]: *** [CMakeFiles/Makefile2:244: CMakeFiles/rocksdb-shared.dir/all] Error 2 make[2]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' make[1]: *** [Makefile:139: all] Error 2 make[1]: Leaving directory '/build/reproducible-path/rocksdb-9.10.0/obj-arm-linux-gnueabihf' dh_auto_build: error: cd obj-arm-linux-gnueabihf && make -j3 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2 make: *** [debian/rules:51: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 I: copying local configuration E: Failed autobuilding of package I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env I: removing directory /srv/workspace/pbuilder/26332 and its subdirectories rocksdb failed to build from source. removed '/var/lib/jenkins/userContent/reproducible/debian/rbuild/trixie/armhf/rocksdb_9.8.4-1.rbuild.log' removed '/var/lib/jenkins/userContent/reproducible/debian/rbuild/trixie/armhf/rocksdb_9.8.4-1.rbuild.log.gz' removed '/var/lib/jenkins/userContent/reproducible/debian/logs/trixie/armhf/rocksdb_9.8.4-1.build1.log.gz' Sat Feb 22 17:59:28 UTC 2025 W: No second build log, what happened? Compressing the 1st log... b1/build.log: 89.0% -- replaced with stdout INSERT 0 1 INSERT 0 1 DELETE 1 [2025-02-22 17:59:31] INFO: Starting at 2025-02-22 17:59:31.547923 [2025-02-22 17:59:31] INFO: Generating the pages of 1 package(s) [2025-02-22 17:59:32] CRITICAL: https://tests.reproducible-builds.org/debian/trixie/armhf/rocksdb didn't produce a buildlog, even though it has been built. [2025-02-22 17:59:32] ERROR: Either /var/lib/jenkins/userContent/reproducible/debian/logs/bookworm/armhf/rocksdb_7.8.3-2.build2.log.gz or /var/lib/jenkins/userContent/reproducible/debian/logdiffs/bookworm/armhf/rocksdb_7.8.3-2.diff.gz is missing [2025-02-22 17:59:32] ERROR: Either /var/lib/jenkins/userContent/reproducible/debian/logs/bullseye/armhf/rocksdb_6.11.4-3+deb11u1.build2.log.gz or /var/lib/jenkins/userContent/reproducible/debian/logdiffs/bullseye/armhf/rocksdb_6.11.4-3+deb11u1.diff.gz is missing [2025-02-22 17:59:32] INFO: Finished at 2025-02-22 17:59:32.093548, took: 0:00:00.545629 Sat Feb 22 17:59:32 UTC 2025 - successfully updated the database and updated https://tests.reproducible-builds.org/debian/rb-pkg/trixie/armhf/rocksdb.html Starting cleanup. /var/lib/jenkins/userContent/reproducible/debian/rbuild/trixie/armhf/rocksdb_9.10.0-1.rbuild.log: 89.0% -- replaced with /var/lib/jenkins/userContent/reproducible/debian/rbuild/trixie/armhf/rocksdb_9.10.0-1.rbuild.log.gz [2025-02-22 17:59:33] INFO: Starting at 2025-02-22 17:59:33.519333 [2025-02-22 17:59:33] INFO: Generating the pages of 1 package(s) [2025-02-22 17:59:33] ERROR: Either /var/lib/jenkins/userContent/reproducible/debian/logs/trixie/armhf/rocksdb_9.10.0-1.build2.log.gz or /var/lib/jenkins/userContent/reproducible/debian/logdiffs/trixie/armhf/rocksdb_9.10.0-1.diff.gz is missing [2025-02-22 17:59:33] ERROR: Either /var/lib/jenkins/userContent/reproducible/debian/logs/bookworm/armhf/rocksdb_7.8.3-2.build2.log.gz or /var/lib/jenkins/userContent/reproducible/debian/logdiffs/bookworm/armhf/rocksdb_7.8.3-2.diff.gz is missing [2025-02-22 17:59:34] ERROR: Either /var/lib/jenkins/userContent/reproducible/debian/logs/bullseye/armhf/rocksdb_6.11.4-3+deb11u1.build2.log.gz or /var/lib/jenkins/userContent/reproducible/debian/logdiffs/bullseye/armhf/rocksdb_6.11.4-3+deb11u1.diff.gz is missing [2025-02-22 17:59:34] INFO: Finished at 2025-02-22 17:59:34.060134, took: 0:00:00.540809 All cleanup done. Sat Feb 22 17:59:34 UTC 2025 - total duration: 0h 23m 45s. Sat Feb 22 17:59:34 UTC 2025 - reproducible_build.sh stopped running as /tmp/jenkins-script-19FtBH0k, removing. Finished with result: success Main processes terminated with: code=exited/status=0 Service runtime: 23min 47.721s CPU time consumed: 9.587s